1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["2025.4.1-io.12b-fb6fbea074.fTwFJnUV.js","2025.4.1-io.12b-fb6fbea074.BeYfma4O.js","2025.4.1-io.12b-fb6fbea074.CNlFYkEV.js","2025.4.1-io.12b-fb6fbea074.BOv7jZqM.js","2025.4.1-io.12b-fb6fbea074.DOg8h1BU.css","2025.4.1-io.12b-fb6fbea074.BvXKcvfA.css","2025.4.1-io.12b-fb6fbea074.CXvYAtGI.js","2025.4.1-io.12b-fb6fbea074.mJHLLopa.css","2025.4.1-io.12b-fb6fbea074.Dgt4rczE.js","2025.4.1-io.12b-fb6fbea074.B6DJyq78.js","2025.4.1-io.12b-fb6fbea074.CS-XRNdM.css","2025.4.1-io.12b-fb6fbea074.jzs7CU96.css","2025.4.1-io.12b-fb6fbea074.BASsyqnV.js","2025.4.1-io.12b-fb6fbea074.B1wHRxz1.js","2025.4.1-io.12b-fb6fbea074.SmSZNWuS.js","2025.4.1-io.12b-fb6fbea074.CnR_GWqg.js","2025.4.1-io.12b-fb6fbea074.z7tE5Fh2.js","2025.4.1-io.12b-fb6fbea074.CFd294jt.js","2025.4.1-io.12b-fb6fbea074.CUY0doqs.css","2025.4.1-io.12b-fb6fbea074.BI7JM7D4.js","2025.4.1-io.12b-fb6fbea074.DPn1nfH9.css","2025.4.1-io.12b-fb6fbea074.CkfDpO_5.js","2025.4.1-io.12b-fb6fbea074.Hj667yum.js","2025.4.1-io.12b-fb6fbea074.DoDjefrM.js","2025.4.1-io.12b-fb6fbea074.CbLbUK32.js","2025.4.1-io.12b-fb6fbea074.kYgR7sU7.js","2025.4.1-io.12b-fb6fbea074.L3t5KYIp.css","2025.4.1-io.12b-fb6fbea074.Bsiy4ivi.js","2025.4.1-io.12b-fb6fbea074.C7Y3jOGC.css","2025.4.1-io.12b-fb6fbea074.DVvQM9la.css","2025.4.1-io.12b-fb6fbea074.CC_qOTfV.js","2025.4.1-io.12b-fb6fbea074.CbO57Zxo.js","2025.4.1-io.12b-fb6fbea074.uSarLYlv.js","2025.4.1-io.12b-fb6fbea074.kGA23Gq-.css","2025.4.1-io.12b-fb6fbea074.BGuKFZn9.css","2025.4.1-io.12b-fb6fbea074.-y-rQLhE.js","2025.4.1-io.12b-fb6fbea074.IP3zSTJl.css","2025.4.1-io.12b-fb6fbea074.fnVG7xX6.js","2025.4.1-io.12b-fb6fbea074.CnHIZCqU.css","2025.4.1-io.12b-fb6fbea074.DJXgu80D.js","2025.4.1-io.12b-fb6fbea074.CRkt49pW.js","2025.4.1-io.12b-fb6fbea074.QUjFdY_V.css","2025.4.1-io.12b-fb6fbea074.BgiUUhZ3.js","2025.4.1-io.12b-fb6fbea074.BipfojVL.css","2025.4.1-io.12b-fb6fbea074.DAWjhec7.js","2025.4.1-io.12b-fb6fbea074.DD1mWzIV.js","2025.4.1-io.12b-fb6fbea074.DuxqOKa8.css","2025.4.1-io.12b-fb6fbea074.CA54HJ0V.js","2025.4.1-io.12b-fb6fbea074.BeBzrtxc.js","2025.4.1-io.12b-fb6fbea074.B2JCdKfX.css","2025.4.1-io.12b-fb6fbea074.4Ycf_7cR.css","2025.4.1-io.12b-fb6fbea074.B8G6rKXp.js","2025.4.1-io.12b-fb6fbea074.Btip0ovW.css","2025.4.1-io.12b-fb6fbea074.DBOmXo4A.js","2025.4.1-io.12b-fb6fbea074.B1VJY2ss.css","2025.4.1-io.12b-fb6fbea074.CZkmqhmW.js","2025.4.1-io.12b-fb6fbea074.CoKa0wws.css","2025.4.1-io.12b-fb6fbea074.CZofJRCS.js","2025.4.1-io.12b-fb6fbea074.Dc8zfaU6.css","2025.4.1-io.12b-fb6fbea074.DoC8OaKZ.js","2025.4.1-io.12b-fb6fbea074.BDetZkZh.css","2025.4.1-io.12b-fb6fbea074.v0DKbcIJ.js","2025.4.1-io.12b-fb6fbea074.BSDuJFDB.js","2025.4.1-io.12b-fb6fbea074.CFo-Izbf.css","2025.4.1-io.12b-fb6fbea074.BveVbUb8.js","2025.4.1-io.12b-fb6fbea074.Cu3B2Zrd.css","2025.4.1-io.12b-fb6fbea074.CyeyKmGZ.js","2025.4.1-io.12b-fb6fbea074.DmBS8SPU.css","2025.4.1-io.12b-fb6fbea074.DIXKJMoO.js","2025.4.1-io.12b-fb6fbea074.BEkMt3ya.css","2025.4.1-io.12b-fb6fbea074.BjoldxQe.js","2025.4.1-io.12b-fb6fbea074.DYIWXtXE.js","2025.4.1-io.12b-fb6fbea074.BQjyj99Q.js","2025.4.1-io.12b-fb6fbea074.BA7Hxl-0.js","2025.4.1-io.12b-fb6fbea074.D9wdzeMU.js","2025.4.1-io.12b-fb6fbea074.BQ1_FPHf.js","2025.4.1-io.12b-fb6fbea074.C0K0cv1h.js","2025.4.1-io.12b-fb6fbea074.BszEuV3_.css","2025.4.1-io.12b-fb6fbea074.Ch4R63Pd.js","2025.4.1-io.12b-fb6fbea074.BMHsbSNc.js","2025.4.1-io.12b-fb6fbea074.OMVtUdKU.js","2025.4.1-io.12b-fb6fbea074.D8h5MGMo.css","2025.4.1-io.12b-fb6fbea074.CeXVqTK2.js","2025.4.1-io.12b-fb6fbea074.IQ5WRicK.css","2025.4.1-io.12b-fb6fbea074.CKyi7BXX.css","2025.4.1-io.12b-fb6fbea074.B3GzdXsr.js","2025.4.1-io.12b-fb6fbea074.5N4SsQ6V.css","2025.4.1-io.12b-fb6fbea074.D2a05y2a.js","2025.4.1-io.12b-fb6fbea074.DxowwxXh.css","2025.4.1-io.12b-fb6fbea074.CLPttMIC.js","2025.4.1-io.12b-fb6fbea074.DnaUJ8H9.js","2025.4.1-io.12b-fb6fbea074.D9gGWU3e.js","2025.4.1-io.12b-fb6fbea074.C-IJoKjG.css","2025.4.1-io.12b-fb6fbea074.Udy8a8cj.css","2025.4.1-io.12b-fb6fbea074.LjX1237c.js","2025.4.1-io.12b-fb6fbea074.B1RkJKyS.js","2025.4.1-io.12b-fb6fbea074.Z3D33gIh.css","2025.4.1-io.12b-fb6fbea074.CQHW26Rn.js","2025.4.1-io.12b-fb6fbea074.CJDPYDzC.css","2025.4.1-io.12b-fb6fbea074.BRa8P34z.css","2025.4.1-io.12b-fb6fbea074.CpwperJp.js","2025.4.1-io.12b-fb6fbea074.DkXTOGwJ.js","2025.4.1-io.12b-fb6fbea074.Bg8thvjf.css","2025.4.1-io.12b-fb6fbea074.CNMq9ubx.js","2025.4.1-io.12b-fb6fbea074.BKz8gz2y.js","2025.4.1-io.12b-fb6fbea074.QK4SWibX.js","2025.4.1-io.12b-fb6fbea074.Bon0vpaU.css","2025.4.1-io.12b-fb6fbea074.BjQe_UHT.js","2025.4.1-io.12b-fb6fbea074.BpQI0HHk.css","2025.4.1-io.12b-fb6fbea074.VfB1ylty.js","2025.4.1-io.12b-fb6fbea074.BT7E_buA.js","2025.4.1-io.12b-fb6fbea074.BAxCDoik.js","2025.4.1-io.12b-fb6fbea074.DpYpqgbm.js","2025.4.1-io.12b-fb6fbea074.CwPFtob7.css","2025.4.1-io.12b-fb6fbea074.B-byYWNm.css","2025.4.1-io.12b-fb6fbea074.3g71R6PO.js","2025.4.1-io.12b-fb6fbea074.D4oZCWOY.css","2025.4.1-io.12b-fb6fbea074.CNLd_FN1.js","2025.4.1-io.12b-fb6fbea074.B4O1Ijt8.css","2025.4.1-io.12b-fb6fbea074.BaoUgUYw.js","2025.4.1-io.12b-fb6fbea074.Bd_DC0nG.css","2025.4.1-io.12b-fb6fbea074.Cl-97-AQ.js","2025.4.1-io.12b-fb6fbea074.C9RK5227.js","2025.4.1-io.12b-fb6fbea074.BeGBuG9V.css","2025.4.1-io.12b-fb6fbea074.DonvS_Oz.css","2025.4.1-io.12b-fb6fbea074.D562uqRH.js","2025.4.1-io.12b-fb6fbea074.DuS9m_kT.js","2025.4.1-io.12b-fb6fbea074.COyYFlnk.css","2025.4.1-io.12b-fb6fbea074.CiXxftrN.js","2025.4.1-io.12b-fb6fbea074.CX_rAp71.css","2025.4.1-io.12b-fb6fbea074.DriF6uNA.js","2025.4.1-io.12b-fb6fbea074.WyM-yE_N.css","2025.4.1-io.12b-fb6fbea074.DrLmPJ_k.js","2025.4.1-io.12b-fb6fbea074.CMGKxyYW.js","2025.4.1-io.12b-fb6fbea074.CaaVuJk3.css","2025.4.1-io.12b-fb6fbea074.-Z_iyqAA.js","2025.4.1-io.12b-fb6fbea074.BLQrG_wV.
1css","2025.4.1-io.12b-fb6fbea074.K25_c8_v.css","2025.4.1-io.12b-fb6fbea074.CWYeSrrd.js","2025.4.1-io.12b-fb6fbea074.BS325lrC.js","2025.4.1-io.12b-fb6fbea074.DT4Tb52e.js","2025.4.1-io.12b-fb6fbea074.pcEVYsLK.js","2025.4.1-io.12b-fb6fbea074.BmMgfdOp.css","2025.4.1-io.12b-fb6fbea074.CfF7i-8o.css","2025.4.1-io.12b-fb6fbea074.BUpEyVyK.js","2025.4.1-io.12b-fb6fbea074.C3O3oGLb.js","2025.4.1-io.12b-fb6fbea074.5qpbPQMw.js","2025.4.1-io.12b-fb6fbea074.Bq37DU2z.css","2025.4.1-io.12b-fb6fbea074.BiYvR_9r.js","2025.4.1-io.12b-fb6fbea074.zRA-DLb0.js","2025.4.1-io.12b-fb6fbea074.BOz0aXdz.css","2025.4.1-io.12b-fb6fbea074.DkxH5KNW.js","2025.4.1-io.12b-fb6fbea074.yZHe__0T.css","2025.4.1-io.12b-fb6fbea074.CUWSrN04.js","2025.4.1-io.12b-fb6fbea074.DFBfVF9A.js","2025.4.1-io.12b-fb6fbea074.CgWzfz1I.css","2025.4.1-io.12b-fb6fbea074.BCb6DH6s.css","2025.4.1-io.12b-fb6fbea074.DvlUtNun.js","2025.4.1-io.12b-fb6fbea074.C5mZlG8X.css","2025.4.1-io.12b-fb6fbea074.ukUInlHM.js","2025.4.1-io.12b-fb6fbea074.AEMzGW8E.css","2025.4.1-io.12b-fb6fbea074.BZ4rwD2x.js","2025.4.1-io.12b-fb6fbea074.BGgCl6RC.js","2025.4.1-io.12b-fb6fbea074.B-4AlTHu.js","2025.4.1-io.12b-fb6fbea074.Clp4LUaV.css","2025.4.1-io.12b-fb6fbea074.BPp9MNgd.js","2025.4.1-io.12b-fb6fbea074.DRyE7Sv2.js","2025.4.1-io.12b-fb6fbea074.BLljfqPR.css","2025.4.1-io.12b-fb6fbea074.BaM2wOVz.css","2025.4.1-io.12b-fb6fbea074.CBSWwn0G.js","2025.4.1-io.12b-fb6fbea074.Bka55RE5.css","2025.4.1-io.12b-fb6fbea074.-gxod63y.js","2025.4.1-io.12b-fb6fbea074.D6XfszD3.css","2025.4.1-io.12b-fb6fbea074.Bddho9ug.js","2025.4.1-io.12b-fb6fbea074.ccff0FeH.css","2025.4.1-io.12b-fb6fbea074.XKWRPEit.css","2025.4.1-io.12b-fb6fbea074.D0vSN1ju.js","2025.4.1-io.12b-fb6fbea074.BYca6aUS.js","2025.4.1-io.12b-fb6fbea074.CqX0r_ID.css","2025.4.1-io.12b-fb6fbea074.Bc7wQ_gX.css","2025.4.1-io.12b-fb6fbea074.DqEpm2c7.js","2025.4.1-io.12b-fb6fbea074.DHpGWLCO.js","2025.4.1-io.12b-fb6fbea074.BwuX-OUT.css","2025.4.1-io.12b-fb6fbea074.B-jGXYPl.js","2025.4.1-io.12b-fb6fbea074.FGXsPR6M.css","2025.4.1-io.12b-fb6fbea074.Dq8zSwo8.css","2025.4.1-io.12b-fb6fbea074.Cwi46tk6.js","2025.4.1-io.12b-fb6fbea074.Bx6Dt-5H.css","2025.4.1-io.12b-fb6fbea074.TpiQ7v_w.js","2025.4.1-io.12b-fb6fbea074.DCzD2CEy.js","2025.4.1-io.12b-fb6fbea074.DnDuaHON.css","2025.4.1-io.12b-fb6fbea074.C2N8wGWn.js","2025.4.1-io.12b-fb6fbea074.GwLEz5fB.css","2025.4.1-io.12b-fb6fbea074.DeK4OZnM.js","2025.4.1-io.12b-fb6fbea074.uo6X3tG8.js","2025.4.1-io.12b-fb6fbea074.CVdS9rf4.js","2025.4.1-io.12b-fb6fbea074.CGd0S5Yv.css","2025.4.1-io.12b-fb6fbea074.B2r8rtQy.css","2025.4.1-io.12b-fb6fbea074.BUOLk87G.js","2025.4.1-io.12b-fb6fbea074.BI2yTp-2.css","2025.4.1-io.12b-fb6fbea074.ClOZYegL.css","2025.4.1-io.12b-fb6fbea074.CLtI1E0g.js","2025.4.1-io.12b-fb6fbea074.HJFp1Xwj.css","2025.4.1-io.12b-fb6fbea074.8nIQocEr.js","2025.4.1-io.12b-fb6fbea074.DCbdY0D_.js","2025.4.1-io.12b-fb6fbea074.BGze_EwI.css","2025.4.1-io.12b-fb6fbea074.DxljPM7F.js","2025.4.1-io.12b-fb6fbea074.Bnm1cKs6.js","2025.4.1-io.12b-fb6fbea074.DGy6JLcw.js","2025.4.1-io.12b-fb6fbea074.KUdiyy_X.js","2025.4.1-io.12b-fb6fbea074.qwKBPpov.css","2025.4.1-io.12b-fb6fbea074.B9eZsrPx.js","2025.4.1-io.12b-fb6fbea074.nwNmBF04.js","2025.4.1-io.12b-fb6fbea074.CKedmhr6.css","2025.4.1-io.12b-fb6fbea074.zOdlStaw.js","2025.4.1-io.12b-fb6fbea074.Cj-FBp1Q.js","2025.4.1-io.12b-fb6fbea074.D5wiThtb.css","2025.4.1-io.12b-fb6fbea074.Cv5lWxrv.css","2025.4.1-io.12b-fb6fbea074.CE3ZYe2h.js","2025.4.1-io.12b-fb6fbea074.DsfPitrj.js","2025.4.1-io.12b-fb6fbea074.CzPcl5lN.js","2025.4.1-io.12b-fb6fbea074.C2vRfA3I.css","2025.4.1-io.12b-fb6fbea074.BMacJFmx.css","2025.4.1-io.12b-fb6fbea074.DYcrXMgt.js","2025.4.1-io.12b-fb6fbea074.DUvQBrtN.js","2025.4.1-io.12b-fb6fbea074.DFlbF6XU.css","2025.4.1-io.12b-fb6fbea074.BhvqiTUI.js","2025.4.1-io.12b-fb6fbea074.Bv2B76DA.css","2025.4.1-io.12b-fb6fbea074.DQpLC_oo.js","2025.4.1-io.12b-fb6fbea074.DPnTPEtq.js","2025.4.1-io.12b-fb6fbea074.BCmgeCFf.css","2025.4.1-io.12b-fb6fbea074.AaU__W55.js","2025.4.1-io.12b-fb6fbea074.C_bznnUF.js","2025.4.1-io.12b-fb6fbea074.DMNoze3l.css","2025.4.1-io.12b-fb6fbea074.q52qrpde.js","2025.4.1-io.12b-fb6fbea074.Bd3KXpWo.css","2025.4.1-io.12b-fb6fbea074.DRKuzeEv.js","2025.4.1-io.12b-fb6fbea074.DFVMbwgF.css","2025.4.1-io.12b-fb6fbea074.ChM8g6pI.js","2025.4.1-io.12b-fb6fbea074.DGFFq2B2.js","2025.4.1-io.12b-fb6fbea074.DlrXYWi_.css","2025.4.1-io.12b-fb6fbea074.DWR2bFF0.js","2025.4.1-io.12b-fb6fbea074.DLg-F8VF.css","2025.4.1-io.12b-fb6fbea074.CUt3rB7q.js","2025.4.1-io.12b-fb6fbea074.lTbhBtxw.js","2025.4.1-io.12b-fb6fbea074.D8YwIt3g.js","2025.4.1-io.12b-fb6fbea074.Dd4mgRq4.js","2025.4.1-io.12b-fb6fbea074.l_A9QNNt.css","2025.4.1-io.12b-fb6fbea074.C1RW_IuC.js","2025.4.1-io.12b-fb6fbea074.BhTPMMvK.js","2025.4.1-io.12b-fb6fbea074.C1kj3Qw2.js","2025.4.1-io.12b-fb6fbea074.t-hEyIcU.css","2025.4.1-io.12b-fb6fbea074.BOtUUnBh.css","2025.4.1-io.12b-fb6fbea074.CzVcejUT.js","2025.4.1-io.12b-fb6fbea074.Dj2EAKZ5.js","2025.4.1-io.12b-fb6fbea074.DGpYj5Pa.js","2025.4.1-io.12b-fb6fbea074.CKnytVuX.css","2025.4.1-io.12b-fb6fbea074.bjorTRwd.js","2025.4.1-io.12b-fb6fbea074.B8QjzWrC.css","2025.4.1-io.12b-fb6fbea074.DBNw-TJW.js","2025.4.1-io.12b-fb6fbea074.DUm2lwpm.css","2025.4.1-io.12b-fb6fbea074.C6PQybbz.js","2025.4.1-io.12b-fb6fbea074.BWqTak7U.js","2025.4.1-io.12b-fb6fbea074.DATJKBll.js","2025.4.1-io.12b-fb6fbea074._VrkHlvy.js","2025.4.1-io.12b-fb6fbea074.BLi19RvN.css","2025.4.1-io.12b-fb6fbea074.CYQ3RY9T.js","2025.4.1-io.12b-fb6fbea074.DPKxnW4e.js","2025.4.1-io.12b-fb6fbea074.D2OFCmJF.css","2025.4.1-io.12b-fb6fbea074.C0Zwf8Jv.css","2025.4.1-io.12b-fb6fbea074.oXsaTnGK.js","2025.4.1-io.12b-fb6fbea074.xs3YxxfB.js","2025.4.1-io.12b-fb6fbea074.1ubRIZ0W.css","2025.4.1-io.12b-fb6fbea074.gv9sitYl.js","2025.4.1-io.12b-fb6fbea074.DMk1Dxc5.js","2025.4.1-io.12b-fb6fbea074.DDqR-Ez-.css","2025.4.1-io.12b-fb6fbea074.CLwybNEn.css","2025.4.1-io.12b-fb6fbea074.D6o0--6w.js","2025.4.1-io.12b-fb6fbea074.Bi9Bl87C.js","2025.4.1-io.12b-fb6fbea074.CVdmLnOx.js","2025.4.1-io.12b-fb6fbea074.Br0_nlh8.css","2025.4.1-io.12b-fb6fbea074.W8C9Kj1E.js","2025.4.1-io.12b-fb6fbea074.BJ37-8EQ.js","2025.4.1-io.12b-fb6fbea074.dj3kVGiR.js","2025.4.1-io.12b-fb6fbea074.Bic6Hjsm.js","2025.4.1-io.12b-fb6fbea074.BSMVeLMM.js","2025.4.1-io.12b-fb6fbea074.CQLbYODH.css","2025.4.1-io.12b-fb6fbea074.mii4jR8e.js","2025.4.1-io.12b-fb6fbea074.38Le8rmV.css","2025.4.1-io.12b-fb6fbea074.CzSlUN1C.js","2025.4.1-io.12b-fb6fbea074.BpDof7MZ.css","2025.4.1-io.12b-fb6fbea074.C7r9l6qv.js","2025.4.1-io.12b-fb6fbea074.BLWWKWPT.js","2025.4.1-io.12b-fb6fbea074.CqGBVsNC.css","2025.4.1-io.12b-fb6fbea074.DGkUazre.css","2025.4.1-io.12b-fb6fbea074.COhA5zZ6.js","2025.4.1-io.12b-fb6fbea074.CK5qJJeO.css","2025.4.1-io.12b-fb6fbea074.DPji1hpB.js","2025.4.1-io.12b-fb6fbea074.CccLeMki.css","2025.4.1-io.12b-fb6fbea074.DfNv7BzX.js","2025.4.1-io.12b-fb6fbea074.DYCjqfJG.css","2025.4.1-io.12b-fb6fbea074.B-ltEnW3.js","2025.4.1-io.12b-fb6fbea074.C4EO56oN.css","2025.4.1-io.12b-fb6fbea074.CRo3e9t-.js","2025.4.1-io.12b-fb6fbea074.BpKvcR4J.js","2025.4.1-io.12b-fb6fbea074.D4HpMIIC.
1css","2025.4.1-io.12b-fb6fbea074.D9dsIZ9c.js","2025.4.1-io.12b-fb6fbea074.DabwBgo3.css","2025.4.1-io.12b-fb6fbea074.DQz6a_xo.js","2025.4.1-io.12b-fb6fbea074.Bp2L1Wcq.js","2025.4.1-io.12b-fb6fbea074.Bh7xmWzO.css","2025.4.1-io.12b-fb6fbea074.a4Q0oVld.js","2025.4.1-io.12b-fb6fbea074.DeUvsvLd.js","2025.4.1-io.12b-fb6fbea074.-hxtmKEu.css","2025.4.1-io.12b-fb6fbea074.cQFFRVFn.css","2025.4.1-io.12b-fb6fbea074.DPMViwEy.js","2025.4.1-io.12b-fb6fbea074.A2yrLYCd.js","2025.4.1-io.12b-fb6fbea074.DgK8OBvH.css","2025.4.1-io.12b-fb6fbea074.DdMU2-QY.css","2025.4.1-io.12b-fb6fbea074.ScxPTgBz.js","2025.4.1-io.12b-fb6fbea074.BFbSFvYn.css","2025.4.1-io.12b-fb6fbea074.C7ORjOO_.js","2025.4.1-io.12b-fb6fbea074.DB2tz2sJ.js","2025.4.1-io.12b-fb6fbea074.XMSq0Zej.css","2025.4.1-io.12b-fb6fbea074.D5y2ixUK.css","2025.4.1-io.12b-fb6fbea074.CIijKWgu.js","2025.4.1-io.12b-fb6fbea074.nHOOK9Zi.css","2025.4.1-io.12b-fb6fbea074.CjKKwzeS.js","2025.4.1-io.12b-fb6fbea074.DydLemD-.js","2025.4.1-io.12b-fb6fbea074.B3pNbnAV.css","2025.4.1-io.12b-fb6fbea074.DiX96ByP.css","2025.4.1-io.12b-fb6fbea074.DPoIraCe.js","2025.4.1-io.12b-fb6fbea074.8XEOUzTv.js","2025.4.1-io.12b-fb6fbea074.aqNBOM94.css","2025.4.1-io.12b-fb6fbea074.BAjFUDdM.css","2025.4.1-io.12b-fb6fbea074.mN39b9dv.js","2025.4.1-io.12b-fb6fbea074.CRwykf8M.css","2025.4.1-io.12b-fb6fbea074.C3Ncx0su.js","2025.4.1-io.12b-fb6fbea074.BGI7oaLO.js","2025.4.1-io.12b-fb6fbea074.DBotJUBb.js","2025.4.1-io.12b-fb6fbea074.BE079P05.js","2025.4.1-io.12b-fb6fbea074.ClmUnNY5.css","2025.4.1-io.12b-fb6fbea074.B9Ip9njH.js","2025.4.1-io.12b-fb6fbea074.HZqIgIPu.js","2025.4.1-io.12b-fb6fbea074.CCpstr3G.css","2025.4.1-io.12b-fb6fbea074.BSlfRsXU.css","2025.4.1-io.12b-fb6fbea074.CMQM221n.js","2025.4.1-io.12b-fb6fbea074.BlW4eZ8b.js","2025.4.1-io.12b-fb6fbea074.CrX8dN-W.css","2025.4.1-io.12b-fb6fbea074.Bc5KvqF8.js","2025.4.1-io.12b-fb6fbea074.D0GvTBVT.js","2025.4.1-io.12b-fb6fbea074.ByaFE7pL.css","2025.4.1-io.12b-fb6fbea074.G4RSUdWI.js","2025.4.1-io.12b-fb6fbea074.C5cE3H0l.js","2025.4.1-io.12b-fb6fbea074.CZMAxaIA.css","2025.4.1-io.12b-fb6fbea074.BriG5eB7.js","2025.4.1-io.12b-fb6fbea074.CtCkGUeg.js","2025.4.1-io.12b-fb6fbea074.Cd13c4Sh.js","2025.4.1-io.12b-fb6fbea074.CDcnHJNL.css","2025.4.1-io.12b-fb6fbea074.Dh3Ydhz6.js","2025.4.1-io.12b-fb6fbea074.DKyN-ci-.css","2025.4.1-io.12b-fb6fbea074.D7HY0c95.js","2025.4.1-io.12b-fb6fbea074.3jjbaC24.css","2025.4.1-io.12b-fb6fbea074.CBzPvcPm.js","2025.4.1-io.12b-fb6fbea074.DnVOuyI4.css","2025.4.1-io.12b-fb6fbea074.Buc4oOTd.js","2025.4.1-io.12b-fb6fbea074.mrQAIamb.js","2025.4.1-io.12b-fb6fbea074.CQPiJOip.css","2025.4.1-io.12b-fb6fbea074.BWWU84-p.js","2025.4.1-io.12b-fb6fbea074.D6H0RmGU.css","2025.4.1-io.12b-fb6fbea074.BlfYhd__.js","2025.4.1-io.12b-fb6fbea074.B-CSt5D5.css","2025.4.1-io.12b-fb6fbea074.D37N-CYK.js","2025.4.1-io.12b-fb6fbea074.CJUAS28w.js","2025.4.1-io.12b-fb6fbea074.rZXy6YUg.css","2025.4.1-io.12b-fb6fbea074.BhdSY_qE.css","2025.4.1-io.12b-fb6fbea074.aExDmeTv.js","2025.4.1-io.12b-fb6fbea074.ZoZBJLKU.css","2025.4.1-io.12b-fb6fbea074.BxAIcE7Y.js","2025.4.1-io.12b-fb6fbea074.BwX5XZaa.js","2025.4.1-io.12b-fb6fbea074.BZ-hm7gi.js","2025.4.1-io.12b-fb6fbea074.ZDM5ahpT.css","2025.4.1-io.12b-fb6fbea074.HHkBmruT.js","2025.4.1-io.12b-fb6fbea074.EzujihLY.css","2025.4.1-io.12b-fb6fbea074.C_e1-208.js","2025.4.1-io.12b-fb6fbea074.BQuAA0tS.css","2025.4.1-io.12b-fb6fbea074.D5keHvtY.js","2025.4.1-io.12b-fb6fbea074.Bjb2d8dn.js","2025.4.1-io.12b-fb6fbea074.DJBIdMFb.css","2025.4.1-io.12b-fb6fbea074.D16zqAUy.css","2025.4.1-io.12b-fb6fbea074.BKyZ3cMm.js","2025.4.1-io.12b-fb6fbea074.CnqrvfwT.css","2025.4.1-io.12b-fb6fbea074.DH-BB2hk.js","2025.4.1-io.12b-fb6fbea074.NifQiOVM.js","2025.4.1-io.12b-fb6fbea074.C__bdD0f.css","2025.4.1-io.12b-fb6fbea074.D8vUys3-.js","2025.4.1-io.12b-fb6fbea074._sK0TZVt.css","2025.4.1-io.12b-fb6fbea074.DKrOoGA0.js","2025.4.1-io.12b-fb6fbea074.SlWLFE_Y.css","2025.4.1-io.12b-fb6fbea074.Duup0K9O.js","2025.4.1-io.12b-fb6fbea074.Df2oMLvz.css","2025.4.1-io.12b-fb6fbea074.D80bokyi.js","2025.4.1-io.12b-fb6fbea074.DqQhNZu-.js","2025.4.1-io.12b-fb6fbea074.CBPWuq_u.css","2025.4.1-io.12b-fb6fbea074.CaPyOk0-.js","2025.4.1-io.12b-fb6fbea074.Dg7S1Kys.js","2025.4.1-io.12b-fb6fbea074.DIGfZZwk.css","2025.4.1-io.12b-fb6fbea074.Dmlt_ouI.js","2025.4.1-io.12b-fb6fbea074.D4NNWAjC.css","2025.4.1-io.12b-fb6fbea074.C7JJrIIt.js","2025.4.1-io.12b-fb6fbea074.DDDFx_96.css","2025.4.1-io.12b-fb6fbea074.QVMAKKWO.js","2025.4.1-io.12b-fb6fbea074.GLz2RGt6.js","2025.4.1-io.12b-fb6fbea074.BflJvy7g.css","2025.4.1-io.12b-fb6fbea074.CFeoz1TR.js","2025.4.1-io.12b-fb6fbea074.Cqmph3I4.css","2025.4.1-io.12b-fb6fbea074.iJGroeOf.js","2025.4.1-io.12b-fb6fbea074.CAkUfZz4.css","2025.4.1-io.12b-fb6fbea074.fVOHCaO3.js","2025.4.1-io.12b-fb6fbea074.Cj8dw-xc.js","2025.4.1-io.12b-fb6fbea074.Bcrz2lx6.css","2025.4.1-io.12b-fb6fbea074.TuMssrV_.js","2025.4.1-io.12b-fb6fbea074.zIyV7knD.js","2025.4.1-io.12b-fb6fbea074.tbxFw3X3.css","2025.4.1-io.12b-fb6fbea074.C-xmtdUR.js","2025.4.1-io.12b-fb6fbea074.BZSP0TmM.js","2025.4.1-io.12b-fb6fbea074.oub5P9c2.css","2025.4.1-io.12b-fb6fbea074.Dtl_h_zo.js","2025.4.1-io.12b-fb6fbea074.D1lUyGVq.css","2025.4.1-io.12b-fb6fbea074.BawxBvZk.js","2025.4.1-io.12b-fb6fbea074.BL3xrfeX.js","2025.4.1-io.12b-fb6fbea074.CAncAPD6.css","2025.4.1-io.12b-fb6fbea074.B0FhwHZw.js","2025.4.1-io.12b-fb6fbea074.Bsrz-Vah.js","2025.4.1-io.12b-fb6fbea074.DJjD21_c.js","2025.4.1-io.12b-fb6fbea074.BOADpTP8.css","2025.4.1-io.12b-fb6fbea074.CBj8KIUv.js","2025.4.1-io.12b-fb6fbea074.DobqHq5j.js","2025.4.1-io.12b-fb6fbea074.BZlsegSD.css","2025.4.1-io.12b-fb6fbea074.Cn4rFemS.js","2025.4.1-io.12b-fb6fbea074.DuWi7xM8.css","2025.4.1-io.12b-fb6fbea074.pJnhApBE.js","2025.4.1-io.12b-fb6fbea074.CKuFpXfL.css","2025.4.1-io.12b-fb6fbea074.DC87OyWe.js","2025.4.1-io.12b-fb6fbea074.VLgYPpFf.js","2025.4.1-io.12b-fb6fbea074.mTIhaqb4.js","2025.4.1-io.12b-fb6fbea074.nq61kHwB.js","2025.4.1-io.12b-fb6fbea074.CdbLjNzR.css","2025.4.1-io.12b-fb6fbea074.CIQ4PTBe.js","2025.4.1-io.12b-fb6fbea074.Bwl_HDpe.css","2025.4.1-io.12b-fb6fbea074.BvArIZCw.js","2025.4.1-io.12b-fb6fbea074.oG05GaUa.css","2025.4.1-io.12b-fb6fbea074.DeH5Co_C.js","2025.4.1-io.12b-fb6fbea074.DmEK2vy2.js","2025.4.1-io.12b-fb6fbea074.D1MlfsJj.css","2025.4.1-io.12b-fb6fbea074.CXekHOFN.js","2025.4.1-io.12b-fb6fbea074.BMKrlZs8.css","2025.4.1-io.12b-fb6fbea074.DrBGG2v2.js","2025.4.1-io.12b-fb6fbea074.STbDJeWv.js","2025.4.1-io.12b-fb6fbea074.BUF7TwMe.css","2025.4.1-io.12b-fb6fbea074.DZjN8eXc.css","2025.4.1-io.12b-fb6fbea074.RIX93BVb.js","2025.4.1-io.12b-fb6fbea074.C6yuBnwz.css","2025.4.1-io.12b-fb6fbea074.CaZ9uXYR.js","2025.4.1-io.12b-fb6fbea074.D4nqQr0D.js","2025.4.1-io.12b-fb6fbea074.BgXgCYjm.css","2025.4.1-io.12b-fb6fbea074.BURQ93gs.js","2025.4.1-io.12b-fb6fbea074.DbX2GhG5.
1css","2025.4.1-io.12b-fb6fbea074.TXIQu6YC.js","2025.4.1-io.12b-fb6fbea074.B8rp6-TK.js","2025.4.1-io.12b-fb6fbea074.tD8CXkx7.css","2025.4.1-io.12b-fb6fbea074.BrqbhBwn.js","2025.4.1-io.12b-fb6fbea074.CfnFikjF.css","2025.4.1-io.12b-fb6fbea074.BqJUqI0c.js","2025.4.1-io.12b-fb6fbea074.DwrHPNgA.css","2025.4.1-io.12b-fb6fbea074.BnYQjG7v.js","2025.4.1-io.12b-fb6fbea074.BGCf3LL5.css","2025.4.1-io.12b-fb6fbea074.BnKpB8TW.js","2025.4.1-io.12b-fb6fbea074.DDDCTQWq.css","2025.4.1-io.12b-fb6fbea074.uvuNKku3.js","2025.4.1-io.12b-fb6fbea074.B6ksUBPa.css","2025.4.1-io.12b-fb6fbea074.BxoPEH6C.js","2025.4.1-io.12b-fb6fbea074.DyYV46J3.js","2025.4.1-io.12b-fb6fbea074.BwcfQrvG.css","2025.4.1-io.12b-fb6fbea074.BfNyP0cH.js","2025.4.1-io.12b-fb6fbea074.ClaDyyFN.css","2025.4.1-io.12b-fb6fbea074.B_V-QmhV.js","2025.4.1-io.12b-fb6fbea074.C00XO5hI.css","2025.4.1-io.12b-fb6fbea074.wfwyGv4-.css","2025.4.1-io.12b-fb6fbea074.DbZALFZq.js","2025.4.1-io.12b-fb6fbea074.t8-wHYD1.css","2025.4.1-io.12b-fb6fbea074.bHAHxGl6.js","2025.4.1-io.12b-fb6fbea074.DBElgJEC.css","2025.4.1-io.12b-fb6fbea074.DVkMb9cf.js","2025.4.1-io.12b-fb6fbea074.D72CN2m3.css","2025.4.1-io.12b-fb6fbea074.BdnVFo4T.js","2025.4.1-io.12b-fb6fbea074.AwLXYKXM.css","2025.4.1-io.12b-fb6fbea074.CzHrLsUn.js","2025.4.1-io.12b-fb6fbea074.BVOrdiR7.css","2025.4.1-io.12b-fb6fbea074.tImjScCc.js","2025.4.1-io.12b-fb6fbea074.Cy8MJVDO.css","2025.4.1-io.12b-fb6fbea074.MHzXZDNd.js","2025.4.1-io.12b-fb6fbea074.BNa08AMa.css","2025.4.1-io.12b-fb6fbea074.zCnSZZTQ.js","2025.4.1-io.12b-fb6fbea074.BZYCbI5w.css","2025.4.1-io.12b-fb6fbea074.Dv1dTpod.js","2025.4.1-io.12b-fb6fbea074._xKhHkzZ.css","2025.4.1-io.12b-fb6fbea074.CND97Tcl.js","2025.4.1-io.12b-fb6fbea074.nOBoFLWb.css","2025.4.1-io.12b-fb6fbea074.zD7TzwEr.js","2025.4.1-io.12b-fb6fbea074.DnaaalUJ.css","2025.4.1-io.12b-fb6fbea074.CLP2-zet.js","2025.4.1-io.12b-fb6fbea074.CWJoLjXF.css","2025.4.1-io.12b-fb6fbea074.BZJSbdXB.js","2025.4.1-io.12b-fb6fbea074.D7l6N2FY.css"])))=>i.map(i=>d[i]); 2import{d as de,r as To,c as G,a as F,m as Fn,w as le,o as it,b as ne,u as Ee,e as je,n as Pe,f as Ue,g as c,h as q,T as bt,i as f,j as J,k as ve,l as g,p as Ge,q as _,s as y,t as ge,v as Te,x as _t,y as lt,z as we,A as M,B as I,C as W,D as ma,E as tt,F as so,G as Kt,H as ti,I as Mo,J as Ai,K as Pd,L as pe,M as Re,N as ie,O as bl,P as yi,Q as qn,R as wi,S as kt,U as ha,V as Rd,W as Ld,X as jt,Y as Qo,Z as Se,_ as Wt,$ as Jt,a0 as Nd,a1 as Io,a2 as sr,a3 as Od,a4 as Pi,a5 as _l,a6 as kl}from"./2025.4.1-io.12b-fb6fbea074.CNlFYkEV.js";import{P as jd,a as Vd}from"./2025.4.1-io.12b-fb6fbea074.BOv7jZqM.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const zd="modulepreload",Hd=function(e){return"/vite/"+e},ar={},x=function(t,n,i){let o=Promise.resolve();if(n&&n.length>0){let u=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),r=a?.nonce||a?.getAttribute("nonce");o=u(n.map(l=>{if(l=Hd(l),l in ar)return;ar[l]=!0;const d=l.endsWith(".css"),v=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${v}`))return;const p=document.createElement("link");if(p.rel=d?"stylesheet":zd,d||(p.as="script"),p.crossOrigin="",p.href=l,r&&p.setAttribute("nonce",r),document.head.appendChild(p),d)return new Promise((C,D)=>{p.addEventListener("load",C),p.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(a){const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=a,window.dispatchEvent(r),!r.defaultPrevented)throw a}return o.then(a=>{for(const r of a||[])r.status==="rejected"&&s(r.reason);return t().catch(s)})};var Ud=[["ar-SA","Ø§ÙØ¹Ø±Ø¨ÙØ©"],["ca-ES","Català "],["cs-CZ","ÄeÅ¡tina"],["da-DK","Dansk"],["de-DE","Deutsch"],["en-US","English"],["es-ES","Español"],["fr-FR","Français"],["id-ID","Bahasa Indonesia"],["it-IT","Italiano"],["ja-JP","æ¥æ¬èª"],["ja-KS","æ¥æ¬èª (é¢è¥¿å¼)"],["kab-KAB","Taqbaylit"],["kn-IN","à²à²¨à³à²¨à²¡"],["ko-KR","íêµì´"],["nl-NL","Nederlands"],["no-NO","Norsk BokmÃ¥l"],["pl-PL","Polski"],["pt-PT","Português"],["ru-RU","Ð ÑÑÑкий"],["sk-SK","SlovenÄina"],["th-TH","ภาษาà¹à¸à¸¢"],["ug-CN","ÙØ§Ù¾ÙÙÚÛ"],["uk-UA","УкÑаÑнÑÑка"],["vi-VN","Tiếng Viá»t "],["zh-CN","䏿(ç®ä½)"],["zh-TW","ç¹é«ä¸æï¼å°ç£ï¼"]];const So=new URL(document.querySelector('meta[property="instance_url"]')?.content||location.href),Zo=document.querySelector('meta[property="og:site_name"]')?.content,He=So.host,b5=So.hostname,mt=So.origin,_5=So.port,ni=location.origin+"/api",qd=location.origin,$i=localStorage.getItem("lang")??"ja-JP",k5=Ud,rr=localStorage.getItem("locale");let pa=rr?JSON.parse(rr):null;const At="2025.4.1-io.12b-fb6fbea074",lr=Zo==="Misskey"||Zo==null?He:Zo,Ji=localStorage.getItem("ui");localStorage.getItem("debug");function Wd(e){pa=e}function D5(e){let t=e;
2t.startsWith("@")&&(t=t.substring(1));const n=t.split("@",2);return{username:n[0],host:n[1]||null}}function Ps(e){return e.host==null?e.username:`${e.username}@${e.host}`}let ao,ro,lo,uo,co,fo,Dl=!0;try{ao=new RegExp("(?<=n)a","gi"),ro=new RegExp("(?<=morn)ing","gi"),lo=new RegExp("(?<=every)one","gi"),uo=new RegExp("[ë-ë³]","g"),co=new RegExp("(ë¤$)|(ë¤(?= ))|(ë¤(?=!))|(ë¤(?=\\?))|(ë¤(?=\\.))","gm"),fo=new RegExp("(ì¼$)|(ì¼(?= ))|(ì¼(?=!))|(ì¼(?=\\?))|(ì¼(?=\\.))","gm"),Dl=!1}catch{ao=new RegExp("na","gi"),ro=new RegExp("morning","gi"),lo=new RegExp("everyone","gi"),uo=new RegExp("[ë-ë³]","g"),co=new RegExp("ë¤$","gm"),fo=new RegExp("ì¼$","gm")}function Kd(e){return e.replaceAll("ãª","ã«ã").replaceAll("ã","ãã£").replaceAll("ï¾
","ï¾ï½¬").replace(ao,t=>t==="A"?"YA":"ya").replace(ro,t=>t==="ING"?"YAN":"yan").replace(lo,t=>t==="ONE"?"NYAN":"nyan").replace(uo,t=>isNaN(t.charCodeAt(0))?t:String.fromCharCode(t.charCodeAt(0)+45264-45208)).replace(co,"ë¤ë¥").replace(fo,"ë¥")}function Jd(e){return e.replaceAll("ãª","ã«ã").replaceAll("ã","ãã£").replaceAll("ï¾
","ï¾ï½¬").replace(ao,t=>t==="NA"?"NYA":"nya").replace(ro,t=>t==="MORNING"?"MORNYAN":"mornyan").replace(lo,t=>t==="EVERYONE"?"EVERYNYAN":"everynyan").replace(uo,t=>String.fromCharCode(t.charCodeAt(0)+45264-45208)).replace(co,"ë¤ë¥").replaceAll("ë¤ ","ë¤ë¥ ").replaceAll("ë¤!","ë¤ë¥!").replaceAll("ë¤?","ë¤ë¥?").replaceAll("ë¤.","ë¤ë¥.").replace(fo,"ë¥").replaceAll("ì¼ ","ë¥ ").replaceAll("ì¼!","ë¥!").replaceAll("ì¼?","ë¥?").replaceAll("ì¼.","ë¥.")}function es(e){return Dl?Jd(e):Kd(e)}var E5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function El(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function C5(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function i(){var o=!1;try{o=this instanceof i}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),n}var ts={exports:{}},ur;function Gd(){return ur||(ur=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function o(u,l,d){this.fn=u,this.context=l,this.once=d||!1}function s(u,l,d,v,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var C=new o(d,v||u,p),D=n?n+l:l;return u._events[D]?u._events[D].fn?u._events[D]=[u._events[D],C]:u._events[D].push(C):(u._events[D]=C,u._eventsCount++),u}function a(u,l){--u._eventsCount===0?u._events=new i:delete u._events[l]}function r(){this._events=new i,this._eventsCount=0}r.prototype.eventNames=function(){var l=[],d,v;if(this._eventsCount===0)return l;for(v in d=this._events)t.call(d,v)&&l.push(n?v.slice(1):v);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(d)):l},r.prototype.listeners=function(l){var d=n?n+l:l,v=this._events[d];if(!v)return[];if(v.fn)return[v.fn];for(var p=0,C=v.length,D=new Array(C);p<C;p++)D[p]=v[p].fn;return D},r.prototype.listenerCount=function(l){var d=n?n+l:l,v=this._events[d];return v?v.fn?1:v.length:0},r.prototype.emit=function(l,d,v,p,C,D){var m=n?n+l:l;if(!this._events[m])return!1;var k=this._events[m],h=arguments.length,b,E;if(k.fn){switch(k.once&&this.removeListener(l,k.fn,void 0,!0),h){case 1:return k.fn.call(k.context),!0;case 2:return k.fn.call(k.context,d),!0;case 3:return k.fn.call(k.context,d,v),!0;case 4:return k.fn.call(k.context,d,v,p),!0;case 5:return k.fn.call(k.context,d,v,p,C),!0;case 6:return k.fn.call(k.context,d,v,p,C,D),!0}for(E=1,b=new Array(h-1);E<h;E++)b[E-1]=arguments[E];k.fn.apply(k.context,b)}else{var T=k.length,P;for(E=0;E<T;E++)switch(k[E].once&&this.removeListener(l,k[E].fn,void 0,!0),h){case 1:k[E].fn.call(k[E].context);break;case 2:k[E].fn.call(k[E].context,d);break;case 3:k[E].fn.call(k[E].context,d,v);break;case 4:k[E].fn.call(k[E].context,d,v,p);break;default:if(!b)for(P=1,b=new Array(h-1);P<h;P++)b[P-1]=arguments[P];k[E].fn.apply(k[E].context,b)}}return!0},r.prototype.on=function(l,d,v){return s(this,l,d,v,!1)},r.prototype.once=function(l,d,v){return s(this,l,d,v,!0)},r.prototype.removeListener=function(l,d,v,p){var C=n?n+l:l;if(!this._events[C])return this;if(!d)return a(this,C),this;var D=this._events[C];if(D.fn)D.fn===d&&(!p||D.once)&&(!v||D.context===v)&&a(this,C);else{for(var m=0,k=[],h=D.length;m<h;m++)(D[m].fn!==d||p&&!D[m].once||v&&D[m].context!==v)&&k.push(D[m]);k.length?this._events[C]=k.length===1?k[0]:k:a(this,C)}return this},r.prototype.removeAllListeners=function(l){var d;return l?(d=n?n+l:l,this._events[d]&&a(this,d)):(this._events=new i,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prefixed=n,r.EventEmitter=r,e.exports=r})(ts)),ts.exports}var Yd=Gd();const xi=El(Yd);let Cl=class{target;type;constructor(t,n){this.target=n,this.type=t}};class Xd extends Cl{message;error;constructor(t,n){super("error",n),this.message=t.message,this.error=t}}class Qd extends Cl{code;reason;
2wasClean=!0;constructor(t=1e3,n="",i){super("close",i),this.code=t,this.reason=n}}const Zd=()=>{if(typeof WebSocket<"u")return WebSocket},ef=e=>typeof e<"u"&&!!e&&e.CLOSING===2,kn={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0};class mn{_ws;_listeners={error:[],message:[],open:[],close:[]};_retryCount=-1;_uptimeTimeout;_connectTimeout;_shouldReconnect=!0;_connectLock=!1;_binaryType="blob";_closeCalled=!1;_messageQueue=[];_url;_protocols;_options;constructor(t,n,i={}){this._url=t,this._protocols=n,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return mn.CONNECTING}get OPEN(){return mn.OPEN}get CLOSING(){return mn.CLOSING}get CLOSED(){return mn.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)}
2get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce((n,i)=>(typeof i=="string"?n+=i.length:i instanceof Blob?n+=i.size:n+=i.byteLength,n),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?mn.CLOSED:mn.CONNECTING}get url(){return this._ws?this._ws.url:""}onclose=null;onerror=null;onmessage=null;onopen=null;close(t=1e3,n){if(this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,n)}reconnect(t,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,n),this._connect())}send(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{const{maxEnqueuedMessages:n=kn.maxEnqueuedMessages}=this._options;this._messageQueue.length<n&&(this._debug("enqueue",t),this._messageQueue.push(t))}}addEventListener(t,n){this._listeners[t]&&this._listeners[t].push(n)}dispatchEvent(t){const n=this._listeners[t.type];if(n)for(const i of n)this._callEventListener(t,i);return!0}removeEventListener(t,n){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(i=>i!==n))}_debug(...t){this._options.debug&&console.log.apply(console,["RWS>",...t])}_getNextDelay(){const{reconnectionDelayGrowFactor:t=kn.reconnectionDelayGrowFactor,minReconnectionDelay:n=kn.minReconnectionDelay,maxReconnectionDelay:i=kn.maxReconnectionDelay}=this._options;let o=0;return this._retryCount>0&&(o=n*Math.pow(t,this._retryCount-1),o>i&&(o=i)),this._debug("next delay",o),o}_wait(){return new Promise(t=>{setTimeout(t,this._getNextDelay())})}_getNextUrl(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){const n=t();if(typeof n=="string")return Promise.resolve(n);if(n.then)return n}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;
2const{maxRetries:t=kn.maxRetries,connectionTimeout:n=kn.connectionTimeout,WebSocket:i=Zd()}=this._options;if(this._retryCount>=t){this._debug("max retries reached",this._retryCount,">=",t);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!ef(i))throw Error("No valid WebSocket class provided");this._wait().then(()=>this._getNextUrl(this._url)).then(o=>{this._closeCalled||(this._debug("connect",{url:o,protocols:this._protocols}),this._ws=this._protocols?new i(o,this._protocols):new i(o),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout(()=>this._handleTimeout(),n))})}_handleTimeout(){this._debug("timeout event"),this._handleError(new Xd(Error("TIMEOUT"),this))}_disconnect(t=1e3,n){if(this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,n),this._handleClose(new Qd(t,n,this))}catch{}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_callEventListener(t,n){"handleEvent"in n?n.handleEvent(t):n(t)}_handleOpen=t=>{this._debug("open event");const{minUptime:n=kn.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout(()=>this._acceptOpen(),n),this._ws.binaryType=this._binaryType,this._messageQueue.forEach(i=>this._ws.send(i)),this._messageQueue=[],this.onopen&&this.onopen(t),this._listeners.open.forEach(i=>this._callEventListener(t,i))};_handleMessage=t=>{this._debug("message event"),this.onmessage&&this.onmessage(t),this._listeners.message.forEach(n=>this._callEventListener(t,n))};_handleError=t=>{this._debug("error event",t.message),this._disconnect(void 0,t.message==="TIMEOUT"?"timeout":void 0),this.onerror&&this.onerror(t),this._debug("exec error listeners"),this._listeners.error.forEach(n=>this._callEventListener(t,n)),this._connect()};_handleClose=t=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(t),this._listeners.close.forEach(n=>this._callEventListener(t,n))};_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}}function tf(e){const t=Object.entries(e).filter(([,n])=>Array.isArray(n)?n.length:n!==void 0).reduce((n,[i,o])=>(n[i]=o,n),{});return Object.entries(t).map(n=>`${n[0]}=${encodeURIComponent(n[1])}`).join("&")}class nf extends xi{stream;state="initializing";sharedConnectionPools=[];sharedConnections=[];nonSharedConnections=[];idCounter=0;constructor(t,n,i){super(),this.genId=this.genId.bind(this),this.useChannel=this.useChannel.bind(this),this.useSharedConnection=this.useSharedConnection.bind(this),this.removeSharedConnection=this.removeSharedConnection.bind(this),this.removeSharedConnectionPool=this.removeSharedConnectionPool.bind(this),this.connectToChannel=this.connectToChannel.bind(this),this.disconnectToChannel=this.disconnectToChannel.bind(this),this.onOpen=this.onOpen.bind(this),this.onClose=this.onClose.bind(this),this.onMessage=this.onMessage.bind(this),this.send=this.send.bind(this),this.close=this.close.bind(this),i=i??{};const o=tf({i:n?.token,_t:Date.now()}),s=t.replace("http://","ws://").replace("https://","wss://");this.stream=new mn(`${s}/streaming?${o}`,"",{minReconnectionDelay:1,WebSocket:i.WebSocket}),i.binaryType&&(this.stream.binaryType=i.binaryType),this.stream.addEventListener("open",this.onOpen),this.stream.addEventListener("close",this.onClose),this.stream.addEventListener("message",this.onMessage)}genId(){return(++this.idCounter).toString()}
2useChannel(t,n,i){return n?this.connectToChannel(t,n):this.useSharedConnection(t,i)}useSharedConnection(t,n){let i=this.sharedConnectionPools.find(s=>s.channel===t);i==null&&(i=new of(this,t,this.genId()),this.sharedConnectionPools.push(i));const o=new sf(this,t,i,n);return this.sharedConnections.push(o),o}removeSharedConnection(t){this.sharedConnections=this.sharedConnections.filter(n=>n!==t)}removeSharedConnectionPool(t){this.sharedConnectionPools=this.sharedConnectionPools.filter(n=>n!==t)}connectToChannel(t,n){const i=new af(this,t,this.genId(),n);return this.nonSharedConnections.push(i),i}disconnectToChannel(t){this.nonSharedConnections=this.nonSharedConnections.filter(n=>n!==t)}onOpen(){const t=this.state==="reconnecting";if(this.state="connected",this.emit("_connected_"),t){for(const n of this.sharedConnectionPools)n.connect();for(const n of this.nonSharedConnections)n.connect()}}onClose(){this.state==="connected"&&(this.state="reconnecting",this.emit("_disconnected_"))}onMessage(t){const{type:n,body:i}=JSON.parse(t.data);if(n==="channel"){const o=i.id;let s;if(s=this.sharedConnections.filter(a=>a.id===o),s.length===0){const a=this.nonSharedConnections.find(r=>r.id===o);a&&(s=[a])}for(const a of s)a.emit(i.type,i.body),a.inCount++}else this.emit(n,i)}send(t,n){if(typeof t=="string"){this.stream.send(JSON.stringify({type:t,...n===void 0?{}:{body:n}}));return}this.stream.send(JSON.stringify(t))}ping(){this.stream.send("ping")}heartbeat(){this.stream.send("h")}close(){this.stream.close()}}class of{channel;id;stream;users=0;disposeTimerId=null;isConnected=!1;constructor(t,n,i){this.onStreamDisconnected=this.onStreamDisconnected.bind(this),this.inc=this.inc.bind(this),this.dec=this.dec.bind(this),this.connect=this.connect.bind(this),this.disconnect=this.disconnect.bind(this),this.channel=n,this.stream=t,this.id=i,this.stream.on("_disconnected_",this.onStreamDisconnected)}onStreamDisconnected(){this.isConnected=!1}inc(){this.users===0&&!this.isConnected&&this.connect(),this.users++,this.disposeTimerId&&(clearTimeout(this.disposeTimerId),this.disposeTimerId=null)}dec(){this.users--,this.users===0&&(this.disposeTimerId=setTimeout(()=>{this.disconnect()},3e3))}connect(){this.isConnected||(this.isConnected=!0,this.stream.send("connect",{channel:this.channel,id:this.id}))}disconnect(){this.stream.off("_disconnected_",this.onStreamDisconnected),this.stream.send("disconnect",{id:this.id}),this.stream.removeSharedConnectionPool(this)}}class Al extends xi{channel;stream;name;inCount=0;outCount=0;constructor(t,n,i){super(),this.send=this.send.bind(this),this.stream=t,this.channel=n,i!==void 0&&(this.name=i)}send(t,n){this.stream.send("ch",{id:this.id,type:t,body:n}),this.outCount++}}class sf extends Al{pool;get id(){return this.pool.id}constructor(t,n,i,o){super(t,n,o),this.dispose=this.dispose.bind(this),this.pool=i,this.pool.inc()}dispose(){this.pool.dec(),this.removeAllListeners(),this.stream.removeSharedConnection(this)}}class af extends Al{id;params;constructor(t,n,i,o){super(t,n),this.connect=this.connect.bind(this),this.dispose=this.dispose.bind(this),this.params=o,this.id=i,this.connect()}connect(){this.stream.send("connect",{channel:this.channel,id:this.id,params:this.params})}dispose(){this.removeAllListeners(),this.stream.send("disconnect",{id:this.id}),this.stream.disconnectToChannel(this)}}const rf=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,cr=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(rf);
2if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},dr=e=>e==="*"||e==="x"||e==="X",fr=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},lf=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],uf=(e,t)=>{if(dr(e)||dr(t))return 0;const[n,i]=lf(fr(e),fr(t));return n>i?1:n<i?-1:0},mr=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const i=uf(e[n]||"0",t[n]||"0");if(i!==0)return i}return 0},va=(e,t)=>{const n=cr(e),i=cr(t),o=n.pop(),s=i.pop(),a=mr(n,i);return a!==0?a:o&&s?mr(o.split("."),s.split(".")):o||s?o?-1:1:0};var $l="4eea646f-7afa-4645-83e9-83af0333cd37",xl="Mi Light",Tl="syuilo",Ml="Default light theme",Il="light",Sl={bg:"#f9f9f9",fg:"#676767",fgOnWhite:"@accent",divider:"#e8e8e8",header:":alpha<0.7<@panel",navBg:"#fff",panel:"#fff",mentionMe:"rgb(0, 179, 70)"};const mo={id:$l,name:xl,author:Tl,desc:Ml,base:Il,props:Sl},cf=Object.freeze(Object.defineProperty({__proto__:null,author:Tl,base:Il,default:mo,desc:Ml,id:$l,name:xl,props:Sl},Symbol.toStringTag,{value:"Module"}));var Fl="02816013-8107-440f-877e-865083ffe194",Bl="Mi Green+Lime Dark",Pl="syuilo",Rl="dark",Ll={accent:"#b4e900",bg:"#0C1210",fg:"#dee7e4",fgHighlighted:"#fff",fgOnAccent:"#192320",fgOnWhite:"@accent",divider:"#e7fffb24",panel:"#192320",popup:"#293330",renote:"@accent",mentionMe:"#ffaa00",link:"#24d7ce"};const ho={id:Fl,name:Bl,author:Pl,base:Rl,props:Ll},df=Object.freeze(Object.defineProperty({__proto__:null,author:Pl,base:Rl,default:ho,id:Fl,name:Bl,props:Ll},Symbol.toStringTag,{value:"Module"}));function Fo(){return typeof window>"u"||typeof document>"u"}async function ff(e,t){return new Promise((n,i)=>{if(Fo())return n();let o=document.head,s=document.createElement("script");if(s.async=!0,s.src=e,s.type=t?.type??"text/javascript",t?.defer&&(s.defer=!0),t?.nonce&&s.setAttribute("nonce",t.nonce),t?.preconnect){let a=document.createElement("link"),r=new URL(e);a.href=r.origin,a.rel="preconnect",o.appendChild(a)}o.appendChild(s),s.onload=()=>n(),s.onerror=a=>i(a)})}function hr(e){return typeof e=="object"&&!!e&&!Array.isArray(e)}function Nl(e,t){let n={...e};for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)){let o=t[i],s=e[i];hr(o)&&hr(s)?n[i]=Nl(s,o):n[i]=o}return n}function mf(e){if(Fo())return;let t=new URL(window.location.href);t.search="";for(let[n,i]of Object.entries(e))t.searchParams.set(n,i);window.history.replaceState({},"",t.toString())}const Rs="utm_";function hf(e){let t=new URL(e),n={},i=[],o={};t.searchParams.forEach((s,a)=>{a.includes(Rs)?(n[a.replace(Rs,"").replace("campaign","id")]=s,i.push(a)):o[a]=s});for(let s of i)t.searchParams.delete(s);return{utmParams:n,cleanQueryParams:o,cleanUrl:t.toString()}}function pf(e){let t=RegExp(`[?&]${Rs}`);return!!e.match(t)}function vf(e,t){let n=t.endsWith("/")?t:`${t}/`,i=e.startsWith("/")?e.substring(1):e;return`${n}${i}`}const gf={resource:{url:"https://www.googletagmanager.com/gtag/js",inject:!0},dataLayerName:"dataLayer",gtagName:"gtag",groupName:"default",initMode:"auto"};let Ls={...gf};function Tt(){return Ls}function yf(e){Ls=Nl(Ls,e)}function $t(...e){let{dataLayerName:t,gtagName:n}=Tt();Fo()||(window[t]=window[t]||[],window[n]=function(){window[t].push(arguments)},window[n](...e))}function Ol(e){let{tagId:t,additionalAccounts:n}=Tt();if(t&&($t("config",t,e),n))for(let i of n)$t("config",i.tagId,e)}function Bo(e,t){$t("consent",e,t)}function jl(e="default"){Bo(e,{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"})}function Vl(e="default"){Bo(e,{ad_user_data:"denied",ad_personalization:"denied",ad_storage:"denied",analytics_storage:"denied"})}function wf(e){Ol({custom_map:e})}function Po(e,t={}){let{groupName:n,additionalAccounts:i}=Tt();t.send_to===void 0&&i?.length&&(t.send_to=n),$t("event",e,t)}function bf(e,t={}){Po(e,t)}function _f(e){Po("exception",e)}function zl(e){$t("set","linker",e)}function pr(e,t){t?window[e]=t:delete window[e]}function Hl(e,t){let{tagId:n,additionalAccounts:i}=Tt();if(!Fo()&&(pr(`ga-disable-${e??n}`,t),!(!i?.length||e)))for(let o of i)pr(`ga-disable-${o.tagId}`,t)}function kf(e){Hl(e,!0)}function Df(e){Hl(e,void 0)}function ga(...e){$t("set",...e)}function ya(e){let{pageTracker:t}=Tt(),n;if(typeof e=="string")n={page_path:e};else if("path"in e){let i=t?.router.options.history.base??"",o=t?.useRouteFullPath?e.fullPath:e.path;n={...e.name?{page_title:e.name.toString()}:{},page_path:t?.useRouterBasePath?vf(o,i):o}}else n=e;if(n.page_location===void 0&&(n.page_location=window.location.href),n.send_page_view===void 0&&(n.send_page_view=t?.sendPageView??!0),n.page_path!=="/"&&n.page_path?.endsWith("/")&&(n.page_path=n.page_path.slice(0,-1)),pf(n.page_location)){let{utmParam
2s:i,cleanUrl:o,cleanQueryParams:s}=hf(n.page_location);n.page_location=o,mf(s),ga("campaign",i)}$t("event","page_view",n)}function Ul(e){let{appName:t}=Tt(),n={};typeof e=="string"?n.screen_name=e:"path"in e?n.screen_name=e.name??e.path:n=e,t&&n?.app_name===void 0&&(n.app_name=t),$t("event","screen_view",n)}function wa(e){Po("timing_complete",e)}function vr(e={}){return{send_page_view:!1,anonymize_ip:!0,...e}}function Ef(){let{tagId:e,config:t,groupName:n,linker:i,additionalAccounts:o,hooks:s,consentMode:a}=Tt();if(e){if(s?.["config:init:before"]?.(),a==="granted"?jl():a==="denied"&&Vl(),i&&zl(i),$t("js",new Date),$t("config",e,vr(t)),o)for(let r of o)$t("config",r.tagId,vr({groups:n,...r.config}));s?.["config:init:after"]?.()}}function Cf(e){let{pageTracker:t}=Tt();return t?.exclude?typeof t.exclude=="function"?t.exclude(e):t.exclude?.some(({name:n,path:i}={})=>n&&n===e.name||i&&i===e.path):!1}function gr(e){let{pageTracker:t,hooks:n}=Tt();if(Cf(e))return;n?.["router:track:before"]?.(e);let i;if(t?.template&&(i=typeof t.template=="function"?t.template(e):t.template),t?.useScreenview){let o=i&&"screen_name"in i?i:e;Ul(o)}else{let o=i&&"page_path"in i?i:e;ya(o)}n?.["router:track:after"]?.(e)}async function Af(){let{pageTracker:e}=Tt();if(!e?.router)return;let{router:t}=e;await t.isReady(),gr(t.currentRoute.value),t.afterEach((n,i)=>{n.path!==i.path&&gr(n)})}async function ql(){let{resource:e,dataLayerName:t,tagId:n,pageTracker:i,hooks:o}=Tt();if(n&&(Ef(),i?.router&&Af(),e.inject))try{await ff(`${e.url}?id=${n}&l=${t}`,{preconnect:e.preconnect,defer:e.defer,nonce:e.nonce}),o?.["script:loaded"]?.()}catch(s){o?.["script:error"]?.(s)}}function $f(){let{initMode:e}=Tt();e!=="manual"&&ql()}function xf(e){yf(e),$f()}const Tf={config:Ol,consent:Bo,consentDeniedAll:Vl,consentGrantedAll:jl,customMap:wf,ecommerce:bf,event:Po,exception:_f,linker:zl,optIn:Df,optOut:kf,pageview:ya,screenview:Ul,set:ga,time:wa,query:$t};function Mf(e){return xf(e),t=>{t.config.globalProperties.$gtag=Tf}}function If(e){e.component("WidgetProfile",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.fTwFJnUV.js"),__vite__mapDeps([0,1,2,3,4,5])))),e.component("WidgetInstanceInfo",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CXvYAtGI.js"),__vite__mapDeps([6,1,2,3,4,7])))),e.component("WidgetMemo",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Dgt4rczE.js"),__vite__mapDeps([8,2,1,9,10,3,4,11])))),e.component("WidgetNotifications",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BASsyqnV.js"),__vite__mapDeps([12,1,2,9,10,13,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,27,28,29])))),e.component("WidgetTimeline",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CC_qOTfV.js"),__vite__mapDeps([30,1,2,9,10,31,32,27,28,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,33,34])))),e.component("WidgetCalendar",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.-y-rQLhE.js"),__vite__mapDeps([35,1,2,3,4,36])))),e.component("WidgetRss",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.fnVG7xX6.js"),__vite__mapDeps([37,1,2,9,10,3,4,38])))),e.component("WidgetRssTicker",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DJXgu80D.js"),__vite__mapDeps([39,2,1,40,41,9,10,42,3,4,43])))),e.component("WidgetTrends",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DAWjhec7.js"),__vite__mapDeps([44,2,1,9,10,45,3,4,46])))),e.component("WidgetClock",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CA54HJ0V.js"),__vite__mapDeps([47,1,2,9,10,48,49,3,4,50])))),e.component("WidgetActivity",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.B8G6rKXp.js"),__vite__mapDeps([51,2,1,9,10,3,4,52])))),e.component("WidgetPhotos",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DBOmXo4A.js"),__vite__mapDeps([53,1,2,9,10,3,4,54])))),e.component("WidgetDigitalClock",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CZkmqhmW.js"),__vite__mapDeps([55,1,2,48,49,3,4,56])))),e.component("WidgetUnixClock",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CZofJRCS.js"),__vite__mapDeps([57,1,2,3,4,58])))),e.component("WidgetFederation",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DoC8OaKZ.js"),__vite__mapDeps([59,2,1,9,10,45,3,4,60])))),e.component("WidgetPostForm",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.v0DKbcIJ.js"),__vite__mapDeps([61,1,2,3,4])))),e.component("WidgetSlideshow",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BSDuJFDB.js"),__vite__mapDeps([62,1,2,3,4,63])))),e.component("WidgetOnlineUsers",de(()=>x(()=>
2import("./2025.4.1-io.12b-fb6fbea074.BveVbUb8.js"),__vite__mapDeps([64,1,2,3,4,65])))),e.component("WidgetJobQueue",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CyeyKmGZ.js"),__vite__mapDeps([66,1,2,3,4,67])))),e.component("WidgetInstanceCloud",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DIXKJMoO.js"),__vite__mapDeps([68,2,1,9,10,3,4,69])))),e.component("WidgetButton",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BjoldxQe.js"),__vite__mapDeps([70,71,72,73,74,1,2,75,3,4])))),e.component("WidgetAiscript",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C0K0cv1h.js"),__vite__mapDeps([76,2,71,72,73,74,1,9,10,75,3,4,77])))),e.component("WidgetAiscriptApp",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Ch4R63Pd.js"),__vite__mapDeps([78,71,72,73,74,1,2,75,79,80,81,82,83,9,10,3,4,84])))),e.component("WidgetAichan",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.B3GzdXsr.js"),__vite__mapDeps([85,1,2,3,4,86])))),e.component("WidgetUserList",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D2a05y2a.js"),__vite__mapDeps([87,1,2,9,10,3,4,88])))),e.component("WidgetClicker",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CLPttMIC.js"),__vite__mapDeps([89,1,2,9,10,90,91,92,93,3,4])))),e.component("WidgetBirthdayFollowings",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.LjX1237c.js"),__vite__mapDeps([94,1,2,9,10,95,25,96,97,45,98,3,4,99])))),e.component("WidgetChat",de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CpwperJp.js"),__vite__mapDeps([100,1,2,9,10,101,102,3,4]))))}const Sf=["federation","instanceCloud"],$5=["profile","instanceInfo","memo","notifications","timeline","calendar","rss","rssTicker","trends","clock","activity","photos","digitalClock","unixClock","postForm","slideshow","onlineUsers","jobQueue","button","aiscript","aiscriptApp","aichan","userList","clicker","birthdayFollowings","chat",...Sf];var ns;function yr(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof ns>"u"){var t=document.createElement("textarea");t.value=1,ns=!!t.firstChild}return ns}function Gi(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var i=document.execCommand("insertText",!1,t);if(!i){var o=e.selectionStart,s=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var a=document.createRange(),r=document.createTextNode(t);if(yr(e)){var u=e.firstChild;if(!u)e.appendChild(r);else{for(var l=0,d=null,v=null;u&&(d===null||v===null);){var p=u.nodeValue.length;o>=l&&o<=l+p&&a.setStart(d=u,o-l),s>=l&&s<=l+p&&a.setEnd(v=u,s-l),l+=p,u=u.nextSibling}o!==s&&a.deleteContents()}}if(yr(e)&&a.commonAncestorContainer.nodeName==="#text")a.insertNode(r);else{var C=e.value;e.value=C.slice(0,o)+t+C.slice(s)}}e.setSelectionRange(o+t.length,o+t.length);var D=document.createEvent("UIEvent");D.initEvent("input",!0,!1),e.dispatchEvent(D)}}const ee={getItem:e=>window.localStorage.getItem(e),setItem:(e,t)=>{window.localStorage.setItem(e,t)},removeItem:e=>{window.localStorage.removeItem(e)},getItemAsJson:e=>{const t=ee.getItem(e);if(t!==null)return JSON.parse(t)},setItemAsJson:(e,t)=>{ee.setItem(e,JSON.stringify(t))}},wr=ee.getItem("account"),S=wr?To(JSON.parse(wr)):null,xt=S!=null&&(S.isAdmin===!0||S.isModerator===!0),x5=S!=null&&S.isAdmin;function Wl(){if(S==null)throw new Error("signin required");return S}let Kl=S==null?0:S.notesCount;function Ff(){Kl++}const br=["image/png","image/gif","image/jpeg","image/webp","image/avif","image/apng","image/bmp","image/tiff","image/x-icon","audio/opus","video/ogg","audio/ogg","application/ogg","video/quicktime","video/mp4","audio/mp4","video/x-m4v","audio/x-m4a","video/3gpp","video/3gpp2","video/mpeg","audio/mpeg","video/webm","audio/webm","audio/aac","audio/flac","audio/wav","audio/x-flac","audio/vnd.wave"],T5=["note","follow","mention","reply","renote","quote","reaction","pollEnded","receiveFollowRequest","followRequestAccepted","roleAssigned","chatRoomInvitationReceived","achievementEarned","noteScheduled","scheduledNotePosted","scheduledNoteError","sensitiveFlagAssigned","exportCompleted","login","createToken","test","app"],M5=["gtlAvailable","ltlAvailable","canPublicNote","canScheduleNote","scheduleNoteLimit","scheduleNoteMaxDays","canInitiateConversation","canCreateContent","canUpdateContent","canDeleteContent","canPurgeAccount","canUpdateAvatar","canUpdateBanner","mentionLimit","canInvite","inviteLimit","inviteLimitCycle","inviteExpirationTime","canManageCustomEmojis","canManageAvatarDecorations","canSearchNotes","canUseTranslator","canUseDriveFileInSoundSettings","canUseReaction","canHideAds","driveCapacityMb","maxFileSizeMb","alwaysMarkNsfw","canUpdateBioMedia","skipNsfwDetection","pinLimit","antennaLimit","antennaNotesLimit","wordMuteLimit","webhookLimit","clipLimit","noteEachClipsLimit","userListLimit","userEachUserListsLimit","rateLimitFactor","avatarDecorationLimit","canImportAntennas","canImportBlocking","canImportFollowing","canImportMuting","canImportUserLists","mutualLinkSectionLimit","mutualLinkLimit","chatAvailability"],Bf="https://xn--931a.moe/assets/error.jpg",Pf="https://xn--931a.moe/assets/not-found.jpg",Rf="https://xn--931a.moe/assets/info.jpg",Jl=["tada","jelly","twitch","shake","spin","jump","bounce","flip","x2","x3","x4","scale","position","fg","bg","border","font","blur","rainbow","sparkle","rotate","ruby","unixtime"],I
25={tada:["speed=","delay="],jelly:["speed=","delay="],twitch:["speed=","delay="],shake:["speed=","delay="],spin:["speed=","delay=","left","alternate","x","y"],jump:["speed=","delay="],bounce:["speed=","delay="],flip:["h","v"],x2:[],x3:[],x4:[],scale:["x=","y="],position:["x=","y="],fg:["color="],bg:["color="],border:["width=","style=","color=","radius=","noclip"],font:["serif","monospace","cursive","fantasy","emoji","math"],blur:[],rainbow:["speed=","delay="],rotate:["deg="],ruby:[],unixtime:[]},po=window.document.getElementById("misskey_meta");let Gl=ee.getItem("instance")?JSON.parse(ee.getItem("instance")):null,_r=ee.getItem("instanceCachedAt")?parseInt(ee.getItem("instanceCachedAt")):0;const kr=po?.textContent?JSON.parse(po.textContent):null,is=po?.dataset.generatedAt?parseInt(po.dataset.generatedAt):0;is>_r&&(ee.setItem("instance",JSON.stringify(kr)),ee.setItem("instanceCachedAt",is.toString()),Gl=kr,_r=is);const he=To(Gl??{}),Yl=G(()=>he.serverErrorImageUrl??Bf),vo=G(()=>he.infoImageUrl??Rf),S5=G(()=>he.notFoundImageUrl??Pf),Xl=G(()=>he.enableUrlPreview??!0);async function Ql(e=!1){if(!e){const n=ee.getItem("instanceCachedAt")?parseInt(ee.getItem("instanceCachedAt")):0;if(Date.now()-n<1e3*60*60)return he}const t=await Ro("meta",{detail:!0});for(const[n,i]of Object.entries(t))he[n]=i;return ee.setItem("instance",JSON.stringify(he)),ee.setItem("instanceCachedAt",Date.now().toString()),he}const bi=F(0);let dn=ee.getItem("id");function Bn(e){return dn===null&&(dn=crypto.randomUUID().replaceAll("-",""),ee.setItem("id",dn)),dn.includes("-")&&(dn=dn.replaceAll("-",""),ee.setItem("id",dn)),`${dn}-${e}-${crypto.randomUUID().replaceAll("-","")}`}function Zl(e,t){return async n=>{if(n.ok&&n.status!==204){const i=await n.json();e(i)}else if(n.status===204)e(void 0);else{const i=await n.json().catch(()=>({statusCode:n.status,message:n.statusText}));t(typeof i.error=="object"?i.error:i)}}}function Ae(e,t={},n,i,o="misskey"){if(e.includes("://"))throw new Error("invalid endpoint");bi.value++;const s=n||(S?S.token:void 0),a=()=>{bi.value--},r=new Promise((u,l)=>{S&&(t.i=S.token),n!==void 0&&(t.i=n);const d=Date.now();window.fetch(`${ni}/${e}`,{method:"POST",body:JSON.stringify(t),credentials:"include",headers:{"Content-Type":"application/json",Authorization:s?`Bearer ${s}`:"anonymous","X-Client-Transaction-Id":Bn(o)},signal:i}).then(v=>(he.googleAnalyticsId&&wa({event_category:"api",event_label:`/${e}`,value:Date.now()-d}),v)).then(Zl(u,l)).catch(l)});return r.then(a,a),r}function Ro(e,t={},n="misskey"){bi.value++;const i=()=>{bi.value--},o=new URLSearchParams(t),s=new Promise((a,r)=>{const u=Date.now();window.fetch(`${ni}/${e}?${o}`,{method:"GET",credentials:"include",headers:{Authorization:"anonymous","X-Client-Transaction-Id":Bn(n)}}).then(l=>(he.googleAnalyticsId&&wa({event_category:"api-get",event_label:`/${e}?${o}`,value:Date.now()-u}),l)).then(Zl(a,r)).catch(r)});return s.then(i,i),s}class Lf{constructor(t,n=!1){this.locale=t,this.devMode=n,this.t=this.t.bind(this)}tsxCache;devMode;get ts(){if(this.devMode){class t{get(i,o){const s=i[o];if(typeof s=="object")return new Proxy(s,new t);if(typeof s=="string"){const a=Array.from(s.matchAll(/\{(\w+)\}/g),([,r])=>r);return a.length&&console.error(`Missing locale parameters: ${a.join(", ")} at ${String(o)}`),s}return console.error(`Unexpected locale key: ${String(o)}`),o}}return new Proxy(this.locale,new t)}return this.locale}get tsx(){if(this.devMode){if(this.tsxCache)return this.tsxCache;class n{get(o,s){const a=o[s];if(typeof a=="object")return new Proxy(a,new n);if(typeof a=="string"){const r=[],u=[];let l=0;for(;~l;){const d=a.indexOf("{",l);if(!~d){r.push(a.slice(l));break}r.push(a.slice(l,d));const v=a.indexOf("}",d);u.push(a.slice(d+1,v)),l=v+1}return u.length?d=>{let v=r[0];for(let p=0;p<u.length;p++)Object.hasOwn(d,u[p])||console.error(`Missing locale parameters: ${u[p]} at ${String(s)}`),v+=d[u[p]]+r[p+1];return v}:(console.error(`Unexpected locale key: ${String(s)}`),()=>a)}return console.error(`Unexpected locale key: ${String(s)}`),s}}
2return this.tsxCache=new Proxy(this.locale,new n)}if(this.tsxCache)return this.tsxCache;function t(n){const i={};for(const o in n){if(!Object.hasOwn(n,o))continue;const s=n[o];if(typeof s=="object")i[o]=t(s);else if(typeof s=="string"){const a=[],r=[];let u=0;for(;~u;){const l=s.indexOf("{",u);if(!~l){a.push(s.slice(u));break}a.push(s.slice(u,l));const d=s.indexOf("}",l);r.push(s.slice(l+1,d)),u=d+1}if(!r.length)continue;i[o]=l=>{let d=a[0];for(let v=0;v<r.length;v++){const p=l?.[r[v]]??`{${r[v]}}`;d+=p+a[v+1]}return d}}}return new Proxy(i,{get(o,s){if(s in o)return o[s];const a=n[s];if(!a)return()=>String(s);if(typeof a=="object")return o[s]=t(a);if(typeof a=="string"){const r=[],u=[];let l=0;for(;~l;){const v=a.indexOf("{",l);if(!~v){r.push(a.slice(l));break}r.push(a.slice(l,v));const p=a.indexOf("}",v);u.push(a.slice(v+1,p)),l=p+1}if(!u.length)return a;const d=v=>{let p=r[0];for(let C=0;C<u.length;C++){const D=v?.[u[C]]??`{${u[C]}}`;p+=D+r[C+1]}return p};return o[s]=d,d}return()=>String(s)}})}return this.tsxCache=t(this.locale)}t(t,n){let i=this.locale;for(const o of t.split("."))if(i=i[o],this.devMode&&typeof i>"u")return console.error(`Unexpected locale key: ${t}`),t;if(n){if(this.devMode){const o=Array.from(i.matchAll(/\{(\w+)\}/g),([,s])=>s).filter(s=>!Object.hasOwn(n,s));o.length&&console.error(`Missing locale parameters: ${o.join(", ")} at ${t}`)}for(const[o,s]of Object.entries(n)){const a=`{${o}}`;this.devMode&&(i.includes(a)||console.error(`Unexpected locale parameter: ${o} at ${t}`)),i=i.replace(a,s.toString())}}return i}}const w=Fn(new Lf(pa,!1));function Nf(e){w.locale=e}function Dt(e){e&&(navigator.clipboard.writeText(e),NA(w.ts.copiedToClipboard))}const eu=($i??"ja-JP").replace("ja-KS","ja-JP");let Ns;try{Ns=new Intl.DateTimeFormat(eu,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}catch(e){console.warn(e),Ns=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}const tu=Ns,Of=tu.resolvedOptions().timeZone,nu=/^(australia|pacific|antarctica|indian)\//i.test(Of)?"S":"N";let Os;try{Os=new Intl.NumberFormat(eu)}catch(e){console.warn(e),Os=new Intl.NumberFormat("en-US")}const jf=Os;function Vf(e){return e&&typeof e.then=="function"}Promise.resolve(!1);Promise.resolve(!0);var Mn=Promise.resolve();function iu(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function zf(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function ba(){return Math.random().toString(36).substring(2)}var os=0;function Ti(){var e=Date.now()*1e3;return e<=os&&(e=os+1),os=e,e}var Hf=Ti,Uf="native";function qf(e){var t={time:Ti(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function Wf(e){e.bc.close(),e.subFns=[]}function Kf(e,t){try{return e.bc.postMessage(t,!1),Mn}catch(n){return Promise.reject(n)}}function Jf(e,t){e.messagesCallback=t}function Gf(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function Yf(){return 150}var Xf={create:qf,close:Wf,onMessage:Jf,postMessage:Kf,canBeUsed:Gf,type:Uf,averageResponseTime:Yf,microSeconds:Hf};class ou{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){const n=this.map.get(t);return typeof n>"u"?!1:n<js()-this.ttl?(this.map.delete(t),!1):!0}add(t){this.map.delete(t),this.map.set(t,js()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,Qf(this)},0))}clear(){this.map.clear()}}function Qf(e){const t=js()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const i=n.next().value;if(!i)break;const o=i[0];if(i[1]<t)e.map.delete(o);else break}}function js(){return Date.now()}function _a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));
2return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var Zf=Ti,em="pubkey.broadcast-channel-0-",sn="messages",Lo={durability:"relaxed"},tm="idb";function su(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function ka(e){e.commit&&e.commit()}function nm(e){var t=su(),n=em+e,i=t.open(n);return i.onupgradeneeded=function(o){var s=o.target.result;s.createObjectStore(sn,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,s){i.onerror=function(a){return s(a)},i.onsuccess=function(){o(i.result)}})}function im(e,t,n){var i=Date.now(),o={uuid:t,time:i,data:n},s=e.transaction([sn],"readwrite",Lo);return new Promise(function(a,r){s.oncomplete=function(){return a()},s.onerror=function(l){return r(l)};var u=s.objectStore(sn);u.add(o),ka(s)})}function om(e,t){var n=e.transaction(sn,"readonly",Lo),i=n.objectStore(sn),o=[],s=IDBKeyRange.bound(t+1,1/0);if(i.getAll){var a=i.getAll(s);return new Promise(function(u,l){a.onerror=function(d){return l(d)},a.onsuccess=function(d){u(d.target.result)}})}function r(){try{return s=IDBKeyRange.bound(t+1,1/0),i.openCursor(s)}catch{return i.openCursor()}}return new Promise(function(u,l){var d=r();d.onerror=function(v){return l(v)},d.onsuccess=function(v){var p=v.target.result;p?p.value.id<t+1?p.continue(t+1):(o.push(p.value),p.continue()):(ka(n),u(o))}})}function sm(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(sn,"readwrite",Lo),i=n.objectStore(sn);return Promise.all(t.map(function(o){var s=i.delete(o);return new Promise(function(a){s.onsuccess=function(){return a()}})}))}function am(e,t){var n=Date.now()-t,i=e.transaction(sn,"readonly",Lo),o=i.objectStore(sn),s=[];return new Promise(function(a){o.openCursor().onsuccess=function(r){var u=r.target.result;if(u){var l=u.value;l.time<n?(s.push(l),u.continue()):(ka(i),a(s))}else a(s)}})}function rm(e){return am(e.db,e.options.idb.ttl).then(function(t){return sm(e,t.map(function(n){return n.id}))})}function lm(e,t){return t=_a(t),nm(e).then(function(n){var i={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:ba(),eMIs:new ou(t.idb.ttl*2),writeBlockPromise:Mn,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){i.closed=!0,t.idb.onclose&&t.idb.onclose()},au(i),i})}function au(e){e.closed||ru(e).then(function(){return iu(e.options.idb.fallbackInterval)}).then(function(){return au(e)})}function um(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function ru(e){return e.closed||!e.messagesCallback?Mn:om(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(i){return!!i}).map(function(i){return i.id>e.lastCursorId&&(e.lastCursorId=i.id),i}).filter(function(i){return um(i,e)}).sort(function(i,o){return i.time-o.time});return n.forEach(function(i){e.messagesCallback&&(e.eMIs.add(i.id),e.messagesCallback(i.data))}),Mn})}function cm(e){e.closed=!0,e.db.close()}function dm(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return im(e.db,e.uuid,t)}).then(function(){zf(0,10)===0&&rm(e)}),e.writeBlockPromise}function fm(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,ru(e)}function mm(){return!!su()}function hm(e){return e.idb.fallbackInterval*2}var pm={create:lm,close:cm,onMessage:fm,postMessage:dm,canBeUsed:mm,type:tm,averageResponseTime:hm,microSeconds:Zf},vm=Ti,gm="pubkey.broadcastChannel-",ym="localstorage";function lu(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function uu(e){return gm+e}function wm(e,t){return new Promise(function(n){iu().then(function(){var i=uu(e.channelName),o={token:ba(),time:Date.now(),data:t,uuid:e.uuid},s=JSON.stringify(o);lu().setItem(i,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=i,a.newValue=s,window.dispatchEvent(a),n()})})}function bm(e,t){var n=uu(e),i=function(s){s.key===n&&t(JSON.parse(s.newValue))};
2return window.addEventListener("storage",i),i}function _m(e){window.removeEventListener("storage",e)}function km(e,t){if(t=_a(t),!cu())throw new Error("BroadcastChannel: localstorage cannot be used");var n=ba(),i=new ou(t.localstorage.removeTimeout),o={channelName:e,uuid:n,eMIs:i};return o.listener=bm(e,function(s){o.messagesCallback&&s.uuid!==n&&(!s.token||i.has(s.token)||s.data.time&&s.data.time<o.messagesCallbackTime||(i.add(s.token),o.messagesCallback(s.data)))}),o}function Dm(e){_m(e.listener)}function Em(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function cu(){var e=lu();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function Cm(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var Am={create:km,close:Dm,onMessage:Em,postMessage:wm,canBeUsed:cu,type:ym,averageResponseTime:Cm,microSeconds:vm},du=Ti,$m="simulate",Da=new Set;function xm(e){var t={time:du(),name:e,messagesCallback:null};return Da.add(t),t}function Tm(e){Da.delete(e)}var fu=5;function Mm(e,t){return new Promise(function(n){return setTimeout(function(){var i=Array.from(Da);i.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),n()},fu)})}function Im(e,t){e.messagesCallback=t}function Sm(){return!0}function Fm(){return fu}var Bm={create:xm,close:Tm,onMessage:Im,postMessage:Mm,canBeUsed:Sm,type:$m,averageResponseTime:Fm,microSeconds:du},Dr=[Xf,pm,Am];function Pm(e){var t=[].concat(e.methods,Dr).filter(Boolean);if(e.type){if(e.type==="simulate")return Bm;var n=t.find(function(o){return o.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var i=t.find(function(o){return o.canBeUsed()});if(i)return i;throw new Error("No usable method found in "+JSON.stringify(Dr.map(function(o){return o.type})))}var mu=new Set,Rm=0,No=function(t,n){this.id=Rm++,mu.add(this),this.name=t,this.options=_a(n),this.method=Pm(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,Lm(this)};No._pubkey=!0;No.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return Er(this,"message",t)},postInternal:function(t){return Er(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};Ar(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,Cr(this,"message",n)):this._onML=null},addEventListener:function(t,n){var i=this.method.microSeconds(),o={time:i,fn:n};Cr(this,t,o)},removeEventListener:function(t,n){var i=this._addEL[t].find(function(o){return o.fn===n});Ar(this,t,i)},close:function(){var t=this;if(!this.closed){mu.delete(this),this.closed=!0;var n=this._prepP?this._prepP:Mn;return this._onML=null,this._addEL.message=[],n.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(i){return i()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function Er(e,t,n){var i=e.method.microSeconds(),o={time:i,type:t,data:n},s=e._prepP?e._prepP:Mn;return s.then(function(){var a=e.method.postMessage(e._state,o);return e._uMP.add(a),a.catch().then(function(){return e._uMP.delete(a)}),a})}function Lm(e){var t=e.method.create(e.name,e.options);Vf(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function hu(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function Cr(e,t,n){e._addEL[t].push(n),Nm(e)}function Ar(e,t,n){e._addEL[t]=e._addEL[t].filter(function(i){return i!==n}),Om(e)}function Nm(e){if(!e._iL&&hu(e)){var t=function(o){e._addEL[o.type].forEach(function(s){o.time>=s.time&&s.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}
2function Om(e){if(e._iL&&!hu(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}function Mi(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function jm(e,t){let n;const i=()=>{if(n)return n;const o=indexedDB.open(e);return o.onupgradeneeded=()=>o.result.createObjectStore(t),n=Mi(o),n.then(s=>{s.onclose=()=>n=void 0},()=>{}),n};return(o,s)=>i().then(a=>s(a.transaction(t,o).objectStore(t)))}let ss;function Ea(){return ss||(ss=jm("keyval-store","keyval")),ss}function Vm(e,t=Ea()){return t("readonly",n=>Mi(n.get(e)))}function pu(e,t,n=Ea()){return n("readwrite",i=>(i.put(t,e),Mi(i.transaction)))}function zm(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},Mi(e.transaction)}function Hm(e=Ea()){return e("readonly",t=>{if(t.getAllKeys)return Mi(t.getAllKeys());const n=[];return zm(t,i=>n.push(i.key)).then(()=>n)})}const Ca=e=>`idbfallback::${e}`;let Yn=typeof window<"u"?!!(window.indexedDB&&typeof window.indexedDB.open=="function"):!0;window.Cypress&&(Yn=!1,console.log("Cypress detected. It will use localStorage."));Yn?await pu("idb-test","test").catch(e=>{console.error("idb error",e),console.error("indexedDB is unavailable. It will use localStorage."),Yn=!1}):console.error("indexedDB is unavailable. It will use localStorage.");async function zt(e){return Yn?Vm(e):JSON.parse(window.localStorage.getItem(Ca(e)))}async function wt(e,t){return Yn?pu(e,t):window.localStorage.setItem(Ca(e),JSON.stringify(t))}async function Um(e){return Yn?(await Hm()).includes(e):window.localStorage.getItem(Ca(e))!==null}const Vs=1e3*60;let $n=null,Wn=null,vu=0;function Xn(){return $n||($n=Fn(new nf(qd,S?{token:S.token}:null)),Wn&&window.clearTimeout(Wn),Wn=window.setTimeout(zs,Vs),window.document.addEventListener("visibilitychange",()=>{!$n||window.document.visibilityState!=="visible"||Date.now()-vu<Vs||zs()}),$n)}function zs(){$n!=null&&window.document.visibilityState==="visible"&&$n.heartbeat(),vu=Date.now(),Wn&&window.clearTimeout(Wn),Wn=window.setTimeout(zs,Vs)}function gn(e){if(typeof e=="object"){if(e===null)return e;if(Array.isArray(e))return e.map(gn);const t={};for(const[n,i]of Object.entries(e))t[n]=i===void 0?void 0:gn(i);return t}else return e}function Ri(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function gu(e,t){if(Ri(e)&&Ri(t)){const n=gn(e);for(const[i,o]of Object.entries(t))if(!Object.hasOwn(e,i)||e[i]===void 0)n[i]=o;else if(Ri(o)&&Ri(n[i])){const s=gn(n[i]);n[i]=gu(s,o)}return n}throw new Error("deepMerge: value and def must be pure objects")}class yu{ready;loaded;key;deviceStateKeyName;deviceAccountStateKeyName;registryCacheKeyName;def;s;r;pizzaxChannel;currentIdbJob=Promise.resolve();addIdbSetJob(t){const n=this.currentIdbJob.then(t,i=>(console.error("Pizzax failed to save data to idb!",i),t()));return this.currentIdbJob=n,n}constructor(t,n){this.key=t,this.deviceStateKeyName=`pizzax::${t}`,this.deviceAccountStateKeyName=S?`pizzax::${t}::${S.id}`:"",this.registryCacheKeyName=S?`pizzax::${t}::cache::${S.id}`:"",this.def=n,this.pizzaxChannel=new No(`pizzax::${t}`),this.s={},this.r={};for(const[i,o]of Object.entries(n))this.s[i]=o.default,this.r[i]=F(o.default);this.ready=this.init(),this.loaded=this.ready.then(()=>this.load())}isPureObject(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}mergeState(t,n){return this.isPureObject(t)&&this.isPureObject(n)?gu(t,n):t}async init(){await this.migrate();const t=await zt(this.deviceStateKeyName)||{},n=S?await zt(this.deviceAccountStateKeyName)||{}:{},i=S?await zt(this.registryCacheKeyName)||{}:{};for(const[o,s]of Object.entries(this.def))s.where==="device"&&Object.prototype.hasOwnProperty.call(t,o)?this.r[o].value=this.s[o]=this.mergeState(t[o],s.default):s.where==="account"&&S&&Object.prototype.hasOwnProperty.call(i,o)?this.r[o].value=this.s[o]=this.mergeState(i[o],s.default):s.where==="deviceAccount"&&Object.prototype.hasOwnProperty.call(n,o)?this.r[o].value=this.s[o]=this.mergeState(n[o],s.default):this.r[o].value=this.s[o]=s.default;this.pizzaxChannel.addEventListener("message",({where:o,key:s,value:a,userId:r})=>{o==="deviceAccount"&&!(S&&r!==S.id)||(this.r[s].value=this.s[s]=a)}),S&&Xn().useChannel("main").on("registryUpdated",({scope:s,key:a,value:r})=>{!s||s.length!==2||s[0]!=="client"||s[1]!==this.key||this.s[a]===r||(this.r[a].value=this.s[a]=r,this.addIdbSetJob(async()=>{const u=await zt(this.registryCacheKeyName);u[a]!==r&&(u[a]=r,await wt(this.registryCacheKeyName,u))}))})}load(){return new Promise((t,n)=>{S?window.setTimeout(async()=>{await z.ready,Ae("i/registry/get-all",{scope:["client",this.key]}).then(i=>{const o={};for(const[s,a]of Object.entries(this.def))a.where==="account"&&(Object.prototype.hasOwnProperty.call(i,s)?(this.r[s].value=this.s[s]=i[s],o[s]=i[s]):this.r[s].value=this.s[s]=a.default);return wt(this.registryCacheKeyName,o)}).then(()=>t())},1):t()})}set(t,n){const i=gn(n);return this.r[t].value=this.s[t]=i,this.addIdbSetJob(async()=>{switch(this.def[t].where){case"device":{this.pizzaxChannel.postMessage({where:"device",key:t,value:i});const o=await zt(this.deviceStateKeyName)||{};o[t]=i,await wt(this.deviceStateKeyName,o);break}case"deviceAccount":{if(S==null)break;this.pizzaxChannel.postMessage({where:"deviceAccount",key:t,value:i,userId:S.id});const o=await zt(this.deviceAccountStateKeyName)||{};o[t]=i,await wt(this.deviceAccountStateKeyName,o);break}case"account":{if(S==null)break;const o=await zt(this.registryCacheKeyName)||{};o[t]=i,await wt(this.registryCacheKeyName,o),await Ae("i/registry/set",{scope:["client",this.key],key:t.toString(),value:i});break}}})}push(t,n){const i=this.s[t];this.set(t,[...i,n])}reset(t){return this.set(t,this.def[t].default),this.def[t].default}makeGetterSetter(t,n,i){const o=F(this.s[t]),s=le(this.r[t],a=>{o.value=a});return it(()=>{s()}),{get:()=>n?n(o.value):o.value,set:a=>{const r=i?i(a):a;this.set(t,r),o.value=r}}}async migrate(){const t=localStorage.getItem(this.deviceStateKeyName);t&&(await wt(this.deviceStateKeyName,JSON.parse(t)),localStorage.removeItem(this.deviceStateKeyName));const n=S&&localStorage.getItem(this.deviceAccountStateKeyName);S&&n&&(await wt(this.deviceAccountStateKeyName,JSON.parse(n)),localStorage.removeItem(this.deviceAccountStateKeyName));const i=S&&localStorage.getItem(this.registryCacheKeyName);S&&i&&(await wt(this.registryCacheKeyName,JSON.parse(i)),localStorage.removeItem(this.registryCacheKeyName))}}const Hs=navigator.userAgent.toLowerCase(),wu=/ipad/.test(Hs)||/mobile|iphone|android/.test(Hs)&&window.innerWidth>700,qm=!wu&&/mobile|iphone|android/.test(Hs),Aa=qm?"smartphone":wu?"tablet":"desktop";let Qn=Aa;function Wm(e){Qn=e??Aa}const z=Fn(new yu("base",{accountSetupWizard:{where:"account",default:0},timelineTutorials:{where:"account",default:{home:!1,local:!1,social:!1,global:!1}},abusesTutorial:{where:"account",default:!1},readDriveTip:{where:"account",default:!1},memo:{where:"account",default:null},reactionAcceptance:{where:"account",default:"nonSensitiveOnly"},mutedAds:{where:"account",default:[]},visibility:{where:"deviceAccount",default:"public"},localOnly:{where:"deviceAccount",default:!1},showPreview:{where:"device",default:!1},tl:{where:"deviceAccount",default:{src:"home",userList:null,filter:{withReplies:!0,withRenotes:!0,withSensitive:!0,onlyFiles:!1},dimensionBySrc:{}}},darkMode:{where:"device",default:!1},recentlyUsedEmojis:{where:"device",default:[]},recentlyUsedUsers:{where:"device",default:[]},menuDisplay:{where:"device",default:"sideFull"},postFormWithHashtags:{where:"device",default:!1},postFormHashtags:{where:"device",default:""},additionalUnicodeEmojiIndexes:{where:"device",default:{}},pluginTokens:{where:"deviceAccount",default:{}},accountTokens:{where:"device",default:{}},accountInfos:{where:"device",default:{}},enablePreferencesAutoCloudBackup:{where:"device",default:!1},showPreferencesAutoCloudBackupSuggestion:{where:"device",default:!0},defaultWithReplies:{where:"account",default:!1},reactions:{where:"account",default:["ð","â¤ï¸","ð","ð¤","ð®","ð","ð¢","ð¥","ð","ð®"]},pinnedEmojis:{where:"account",default:[]},widgets:{where:"account",default:[]},overridedDeviceKind:{where:"device",default:null},defaultSideView:{where:"device",default:!1},defaultNoteVisibility:{where:"account",default:"public"},defaultNoteLocalOnly:{where:"account",default:!1},keepCw:{where:"account",default:!0},collapseRenotes:{where:"account",default:!0},rememberNoteVisibility:{where:"account",default:!1},uploadFolder:{where:"account",default:null},keepOriginalUploading:{where:"account",default:!1},menu:{where:"deviceAccount",default:["notifications","clips","drive","followRequests","-","explore","announcements","search","-","supp
2ort","ui"]},statusbars:{where:"deviceAccount",default:[]},pinnedUserLists:{where:"deviceAccount",default:[]},serverDisconnectedBehavior:{where:"device",default:"quiet"},nsfw:{where:"device",default:"respect"},highlightSensitiveMedia:{where:"device",default:!1},animation:{where:"device",default:!window.matchMedia("(prefers-reduced-motion)").matches},animatedMfm:{where:"device",default:!window.matchMedia("(prefers-reduced-motion)").matches},advancedMfm:{where:"device",default:!0},showReactionsCount:{where:"device",default:!1},enableQuickAddMfmFunction:{where:"device",default:!1},loadRawImages:{where:"device",default:!1},imageNewTab:{where:"device",default:!1},disableShowingAnimatedImages:{where:"device",default:window.matchMedia("(prefers-reduced-motion)").matches},emojiStyle:{where:"device",default:"twemoji"},menuStyle:{where:"device",default:"auto"},useBlurEffectForModal:{where:"device",default:!1},useBlurEffect:{where:"device",default:!1},showFixedPostForm:{where:"device",default:!1},showFixedPostFormInChannel:{where:"device",default:!1},autoloadDrafts:{where:"device",default:!0},enableInfiniteScroll:{where:"device",default:!0},useReactionPickerForContextMenu:{where:"device",default:!1},showGapBetweenNotesInTimeline:{where:"device",default:!1},instanceTicker:{where:"device",default:"remote"},emojiPickerScale:{where:"device",default:1},emojiPickerWidth:{where:"device",default:1},emojiPickerHeight:{where:"device",default:2},emojiPickerStyle:{where:"device",default:"auto"},reportError:{where:"device",default:!1},squareAvatars:{where:"device",default:!1},showAvatarDecorations:{where:"device",default:!0},numberOfPageCache:{where:"device",default:3},showNoteActionsOnlyHover:{where:"device",default:!1},showClipButtonInNoteFooter:{where:"device",default:!1},reactionsDisplaySize:{where:"device",default:"medium"},limitWidthOfReaction:{where:"device",default:!0},forceShowAds:{where:"device",default:!0},aiChanMode:{where:"device",default:!1},devMode:{where:"device",default:!1},mediaListWithOneImageAppearance:{where:"device",default:"expand"},notificationPosition:{where:"device",default:"rightBottom"},notificationStackAxis:{where:"device",default:"horizontal"},enableCondensedLine:{where:"device",default:!0},keepScreenOn:{where:"device",default:!1},hideMutedNotes:{where:"device",default:!1},disableStreamingTimeline:{where:"device",default:!1},useGroupedNotifications:{where:"device",default:!0},dataSaver:{where:"device",default:{media:!1,avatar:!1,urlPreview:!1,code:!1}},enableSeasonalScreenEffect:{where:"device",default:!1},enableHorizontalSwipe:{where:"device",default:!0},useNativeUIForVideoAudioPlayer:{where:"device",default:!1},keepOriginalFilename:{where:"device",default:!0},alwaysConfirmFollow:{where:"device",default:!0},confirmWhenRevealingSensitiveMedia:{where:"device",default:!1},contextMenu:{where:"device",default:"app"},skipNoteRender:{where:"device",default:!0},showSoftWordMutedWord:{where:"device",default:!1},confirmOnReact:{where:"device",default:!1},hemisphere:{where:"device",default:nu},sound_masterVolume:{where:"device",default:.3},sound_notUseSound:{where:"device",default:!1},sound_useSoundOnlyWhenActive:{where:"device",default:!1},sound_note:{where:"device",default:{type:null,volume:1}},sound_noteMy:{where:"device",default:{type:"syuilo/n-cea-4va",volume:1}},sound_notification:{where:"device",default:{type:"syuilo/n-ea",volume:1}},sound_reaction:{where:"device",default:{type:"syuilo/bubble2",volume:1}},dropAndFusion:{where:"device",default:{bgmVolume:.25,sfxVolume:1}},mutedReactions:{where:"account",default:[]}})),as="miux:";class tn{static default={lightTheme:mo,darkTheme:ho,syncDeviceDarkMode:!0,plugins:[]};static watchers=[];static get(t){const n=ee.getItem(`${as}${t}`);return n==null?tn.default[t]:JSON.parse(n)}static getAll(){return Object.keys(this.default).reduce((t,n)=>{const i=localStorage.getItem(as+n);return i!=null&&(t[n]=JSON.parse(i)),t},{})}static set(t,n){if(n===void 0){console.error(`attempt to store undefined value for key '${t}'`);return}ee.setItem(`${as}${t}`,JSON.stringify(n));for(const i of this.watchers)i.key===t&&i.callback(n)}static watch(t,n){this.watchers.push({key:t,callback:n})}static ref(t){const n=tn.get(t),i=F(n);return this.watch(t,o=>{i.value=o}),i}static makeGetterSetter(t){const n=tn.ref(t);return{get:()=>n.value,set:i=>{const o=i;tn.set(t,o)}}}}const go=new No("reload");function an(e){e!==void 0?(go.postMessage(e),window.location.href=e):(go.postMessage(null),window.location.reload())}function yo(){return A.profile.name!=null&&A.profile.name.trim()!==""}function F5(){const e=F(z.s.enablePreferencesAutoCloudBackup);le(e,()=>{if(e.value){if(!yo()){e.value=!1,et({type:"warning",title:w.ts._preferencesBackup.youNeedToNameYourProfileToEnableAutoBackup});return}z.set("enablePreferencesAutoCloudBackup",!0)}else z.set("enablePreferencesAutoCloudBackup",!1)});const t=[{type:"label",text:A.profile.name||`(${w.ts.noName})`},{text:w.ts.rename,icon:"ti ti-pencil",action:()=>{bu()}},{type:"switch",icon:"ti ti-cloud-up",text:w.ts._preferencesBackup.autoBackup,ref:e},{text:w.ts.export,icon:"ti ti-download",action:()=>{Km()}}
2,{type:"divider"},{text:w.ts._preferencesBackup.restoreFromBackup,icon:"ti ti-cloud-down",action:()=>{Gm()}},{text:w.ts.import,icon:"ti ti-upload",action:()=>{Jm()}}];return A.s.devMode&&t.push({type:"divider"},{text:"Copy profile as text",icon:"ti ti-clipboard",action:()=>{Dt(JSON.stringify(A.profile,null," "))}}),t}async function bu(){const{canceled:e,result:t}=await qo({title:w.ts._preferencesProfile.profileName,text:w.ts._preferencesProfile.profileNameDescription+` 3`+w.ts._preferencesProfile.profileNameDescription2,placeholder:A.profile.name||null,default:A.profile.name||null});e||t==null||t.trim()===""||A.renameProfile(t)}function Km(){const e=A.profile,t=new Blob([JSON.stringify(e)],{type:"text/plain"}),n=window.document.createElement("a");n.href=URL.createObjectURL(t),n.download=`${e.name||e.id}.misskeypreferences`,n.click()}function Jm(){const e=window.document.createElement("input");e.type="file",e.accept=".misskeypreferences",e.onchange=async()=>{if(e.files==null||e.files.length===0)return;const n=await e.files[0].text(),i=JSON.parse(n);ee.setItem("preferences",JSON.stringify(i)),ee.setItem("hidePreferencesRestoreSuggestion","true"),Oo.value=!1,an()},e.click()}async function _u(){if(S!=null){if(!yo())throw new Error("Profile name is not set");await Ae("i/registry/set",{scope:["client","preferences","backups"],key:A.profile.name,value:A.profile})}}async function Gm(){if(S==null)return;const e=await Ae("i/registry/keys",{scope:["client","preferences","backups"]});if(e.length===0){et({type:"warning",title:w.ts._preferencesBackup.noBackupsFoundTitle,text:w.ts._preferencesBackup.noBackupsFoundDescription});return}const t=await Wo({title:w.ts._preferencesBackup.selectBackupToRestore,items:e.map(i=>({text:i,value:i}))});if(t.canceled||t.result==null)return;const n=await Ae("i/registry/get",{scope:["client","preferences","backups"],key:t.result});ee.setItem("preferences",JSON.stringify(n)),ee.setItem("hidePreferencesRestoreSuggestion","true"),z.set("enablePreferencesAutoCloudBackup",!0),Oo.value=!1,an()}async function B5(){yo()||await bu(),yo()&&z.set("enablePreferencesAutoCloudBackup",!0)}const Oo=F(!1);S!=null&&(new Date(S.createdAt).getTime()>Date.now()-1e3*60*30?ee.setItem("hidePreferencesRestoreSuggestion","true"):ee.getItem("hidePreferencesRestoreSuggestion")!=="true"&&Ae("i/registry/keys",{scope:["client","preferences","backups"]}).then(e=>{e.length===0?ee.setItem("hidePreferencesRestoreSuggestion","true"):Oo.value=!0}));function P5(){ee.setItem("hidePreferencesRestoreSuggestion","true"),Oo.value=!1}const rt=[];for(let e=0;e<256;++e)rt.push((e+256).toString(16).slice(1));function Ym(e,t=0){return(rt[e[t+0]]+rt[e[t+1]]+rt[e[t+2]]+rt[e[t+3]]+"-"+rt[e[t+4]]+rt[e[t+5]]+"-"+rt[e[t+6]]+rt[e[t+7]]+"-"+rt[e[t+8]]+rt[e[t+9]]+"-"+rt[e[t+10]]+rt[e[t+11]]+rt[e[t+12]]+rt[e[t+13]]+rt[e[t+14]]+rt[e[t+15]]).toLowerCase()}let rs;const Xm=new Uint8Array(16);function Qm(){if(!rs){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");rs=crypto.getRandomValues.bind(crypto)}return rs(Xm)}const Zm=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$r={randomUUID:Zm};function eh(e,t,n){e=e||{};const i=e.random??e.rng?.()??Qm();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Ym(i)}function Ii(e,t,n){return $r.randomUUID&&!e?$r.randomUUID():eh(e)}const Rt={accounts:{default:[]},pinnedUserLists:{accountDependent:!0,default:[]},uploadFolder:{accountDependent:!0,default:null},widgets:{accountDependent:!0,default:[{name:"calendar",id:"a",place:"right",data:{}},{name:"notifications",id:"b",place:"right",data:{}},{name:"trends",id:"c",place:"right",data:{}}]},"deck.profile":{accountDependent:!0,default:null},"deck.profiles":{accountDependent:!0,default:[]},emojiPalettes:{serverDependent:!0,default:[{id:"a",name:"",emojis:["ð","â¤ï¸","ð","ð¤","ð®","ð","ð¢","ð¥","ð","ð®"]}]},emojiPaletteForReaction:{serverDependent:!0,default:null},emojiPaletteForMain:{serverDependent:!0,default:null},overridedDeviceKind:{default:null},themes:{default:[]},lightTheme:{default:null},darkTheme:{default:null},syncDeviceDarkMode:{default:!0},defaultNoteVisibility:{default:"public"},defaultNoteLocalOnly:{default:!1},keepCw:{default:!0},rememberNoteVisibility:{default:!1},reportError:{default:!1},collapseRenotes:{default:!0},menu:{default:["notifications","clips","drive","followRequests","chat","-","explore","announcements","channels","search","-","ui"]},statusbars:{default:[]},serverDisconnectedBehavior:{default:"quiet"},nsfw:{default:"respect"},highlightSensitiveMedia:{default:!1},animation:{default:!window.matchMedia("(prefers-reduced-motion)").matches},animatedMfm:{default:!window.matchMedia("(prefers-reduced-motion)").matches},advancedMfm:{default:!0},showReactionsCount:{default:!1},showRepliesCount:{default:!0},showRenotesCount:{default:!0},enableQuickAddMfmFunction:{default:!1},loadRawImages:{default:!1},imageNewTab:{default:!1},disableShowingAnimatedImages:{default:window.matchMedia("(prefers-reduced-motion)").matches},emojiStyle:{default:"twemoji"},menuStyle:{default:"auto"},useBlurEffectForModal:{default:!1},useBlurEffect:{default:!1},useStickyIcons:{default:!0},showFixedPostForm:{default:!1},showFixedPostFormInChannel:{default:!1},autoloadDrafts:{default:!0},enableInfiniteScroll:{default:!0},useReactionPickerForContextMenu:{default:!1},showGapBetweenNotesInTimeline:{default:!1},instanceTicker:{default:"remote"},emojiPickerScale:{default:2},emojiPickerWidth:{default:2},emojiPickerHeight:{default:3},emojiPickerStyle:{default:"auto"},squareAvatars:{default:!1},showAvatarDecorations:{default:!0},numberOfPageCache:{default:3},showNoteActionsOnlyHover:{default:!1},showClipButtonInNoteFooter:{default:!1},reactionsDisplaySize:{default:"medium"},limitWidthOfReaction:{default:!0},forceShowAds:{default:!1},displayOfSensitiveAds:{default:"hidden"},aiChanMode:{default:!1},devMode:{default:!1}
3,mediaListWithOneImageAppearance:{default:"expand"},notificationPosition:{default:"rightBottom"},notificationStackAxis:{default:"horizontal"},enableCondensedLine:{default:!0},keepScreenOn:{default:!1},disableStreamingTimeline:{default:!1},dimension:{accountDependent:!0,default:0},useGroupedNotifications:{default:!0},dataSaver:{default:{media:!1,avatar:!1,urlPreview:!1,code:!1}},hemisphere:{default:nu},enableSeasonalScreenEffect:{default:!1},enableHorizontalSwipe:{default:!0},useNativeUiForVideoAudioPlayer:{default:!1},keepOriginalFilename:{default:!0},alwaysConfirmFollow:{default:!0},confirmWhenRevealingSensitiveMedia:{default:!1},contextMenu:{default:"app"},skipNoteRender:{default:!0},hideMutedNotes:{default:!1},showSoftWordMutedWord:{default:!1},confirmOnReact:{default:!1},defaultFollowWithReplies:{default:!1},makeEveryTextElementsSelectable:{default:Aa==="desktop"},showNavbarSubButtons:{default:!0},showTitlebar:{default:!1},plugins:{default:[]},trustedExternalWebsites:{default:[]},"sound.masterVolume":{default:.3},"sound.notUseSound":{default:!1},"sound.useSoundOnlyWhenActive":{default:!1},"sound.on.note":{default:{type:"syuilo/n-aec",volume:1}},"sound.on.noteMy":{default:{type:"syuilo/n-cea-4va",volume:1}},"sound.on.notification":{default:{type:"syuilo/n-ea",volume:1}},"sound.on.reaction":{default:{type:"syuilo/bubble2",volume:1}},"sound.on.chatMessage":{default:{type:"syuilo/waon",volume:1}},"deck.alwaysShowMainColumn":{default:!0},"deck.navWindow":{default:!0},"deck.useSimpleUiForNonRootPages":{default:!0},"deck.columnAlign":{default:"center"},"deck.columnGap":{default:6},"deck.menuPosition":{default:"bottom"},"deck.navbarPosition":{default:"left"},"deck.wallpaper":{default:null},"chat.showSenderName":{default:!1},"chat.sendOnEnter":{default:!1},"game.dropAndFusion":{default:{bgmVolume:.25,sfxVolume:1}},"experimental.stackingRouterView":{default:!1}};function qt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e===null)return t===null;if(e===void 0)return t===void 0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}else if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,i]of e)if(!qt(i,t.get(n)))return!1;return!0}else if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let o=0;o<n.length;o++){const s=n[o];if(!qt(e[s],t[s]))return!1}return!0}return!1}function Ct(e){return{server:e.server??null,account:e.account??null,device:e.device??null}}function li(e){const t={};return e.server!=null&&(t.server=e.server),e.account!=null&&(t.account=e.account),e.device!=null&&(t.device=e.device),t}function xr(e,t){return e.server==t.server&&e.account==t.account&&e.device==t.device}class Yi{storageProvider;profile;cloudReady;s={};r={};constructor(t,n){this.profile=t,this.storageProvider=n;const i=this.genStates();for(const o in i)this.s[o]=i[o],this.r[o]=F(this.s[o]);this.cloudReady=this.fetchCloudValues()}isAccountDependentKey(t){return Rt[t].accountDependent===!0}isServerDependentKey(t){return Rt[t].serverDependent===!0}rewriteRawState(t,n){const i=JSON.parse(JSON.stringify(n));this.r[t].value=this.s[t]=i}commit(t,n){const i=JSON.parse(JSON.stringify(n));if(qt(this.s[t],i))return;this.rewriteRawState(t,i);const o=this.getMatchedRecordOf(t);if(Ct(o[0]).account==null&&this.isAccountDependentKey(t)){this.profile.preferences[t].push([li({server:He,account:S.id}),i,{}]),this.save();return}if(Ct(o[0]).server==null&&this.isServerDependentKey(t)){this.profile.preferences[t].push([li({server:He}),i,{}]),this.save();return}o[1]=i,this.save(),o[2].sync&&this.storageProvider.cloudSet({key:t,scope:o[0],value:o[1]})}model(t,n,i){const o=F(this.s[t]),s=le(this.r[t],a=>{o.value=a});return it(()=>{s()}),G({get:()=>n?n(o.value):o.value,set:a=>{const r=i?i(a):a;this.commit(t,r),o.value=r}})}genStates(){const t={};for(const n in Rt){const i=n,o=this.getMatchedRecordOf(i);t[i]=o[1]}return t}async fetchCloudValues(){const t=[];for(const i in Rt){const o=i,s=this.getMatchedRecordOf(o);s[2].sync&&t.push({key:o,scope:s[0]})}const n=await this.storageProvider.cloudGets({needs:t});for(const i in Rt){const o=i,s=this.getMatchedRecordOf(o);if(s[2].sync&&Object.hasOwn(n,o)&&n[o]!==void 0){const a=n[o];
3qt(a,s[1])||(this.rewriteRawState(o,a),s[1]=a)}}this.save()}static newProfile(){const t={};for(const n in Rt)t[n]=[[li({}),Rt[n].default,{}]];return{id:Ii(),version:At,type:"main",modifiedAt:Date.now(),name:"",preferences:t}}static normalizeProfile(t){const n={};for(const i in Rt){const o=t.preferences[i];if(o==null||o.length===0){n[i]=[[li({}),Rt[i].default,{}]];continue}else{n[i]=o;for(const s of n[i])s.length===2&&s.push({})}}return{...t,preferences:n}}save(){this.profile.modifiedAt=Date.now(),this.profile.version=At,this.storageProvider.save({profile:this.profile})}getMatchedRecordOf(t){const n=this.profile.preferences[t];if(S==null)return n.find(([a,r])=>Ct(a).account==null);const i=n.find(([a,r])=>Ct(a).server===He&&Ct(a).account===S.id);if(i)return i;const o=n.find(([a,r])=>Ct(a).server===He&&Ct(a).account==null);return o||n.find(([a,r])=>Ct(a).account==null)}isAccountOverrided(t){return S==null?!1:this.profile.preferences[t].some(([n,i])=>Ct(n).server===He&&Ct(n).account===S.id)??!1}setAccountOverride(t){if(S==null)return;if(this.isAccountDependentKey(t))throw new Error("already account-dependent");if(this.isAccountOverrided(t))return;this.profile.preferences[t].push([li({server:He,account:S.id}),this.s[t],{}]),this.save()}clearAccountOverride(t){if(S==null)return;if(this.isAccountDependentKey(t))throw new Error("cannot clear override for this account-dependent property");const n=this.profile.preferences[t],i=n.findIndex(([o,s])=>Ct(o).server===He&&Ct(o).account===S.id);i!==-1&&(n.splice(i,1),this.rewriteRawState(t,this.getMatchedRecordOf(t)[1]),this.save())}isSyncEnabled(t){return this.getMatchedRecordOf(t)[2].sync??!1}async enableSync(t){if(this.isSyncEnabled(t))return Promise.resolve(null);const n=this.getMatchedRecordOf(t),i=await this.storageProvider.cloudGet({key:t,scope:n[0]});if(i!=null&&!qt(i.value,n[1])){const{canceled:o,result:s}=await Wo({title:w.ts.preferenceSyncConflictTitle,text:w.ts.preferenceSyncConflictText,items:[{text:w.ts.preferenceSyncConflictChoiceServer,value:"remote"},{text:w.ts.preferenceSyncConflictChoiceDevice,value:"local"},{text:w.ts.preferenceSyncConflictChoiceCancel,value:null}],default:"remote"});if(o||s==null)return{enabled:!1};s==="remote"&&this.commit(t,i.value)}return n[2].sync=!0,this.save(),this.storageProvider.cloudSet({key:t,scope:n[0],value:this.s[t]}),{enabled:!0}}disableSync(t){if(!this.isSyncEnabled(t))return;const n=this.getMatchedRecordOf(t);delete n[2].sync,this.save()}renameProfile(t){this.profile.name=t,this.save()}rewriteProfile(t){this.profile=t;const n=this.genStates();for(const i in n){const o=i;this.rewriteRawState(o,n[o])}this.fetchCloudValues()}getPerPrefMenu(t){const n=F(this.isAccountOverrided(t));le(n,()=>{n.value?this.setAccountOverride(t):this.clearAccountOverride(t)});const i=F(this.isSyncEnabled(t));return le(i,()=>{i.value?this.enableSync(t).then(o=>{o!=null&&(o.enabled||(i.value=!1))}):this.disableSync(t)}),[{icon:"ti ti-copy",text:w.ts.copyPreferenceId,action:()=>{Dt(t)}},{icon:"ti ti-refresh",text:w.ts.resetToDefaultValue,danger:!0,action:()=>{this.commit(t,Rt[t].default)}},{type:"divider"},{type:"switch",icon:"ti ti-user-cog",text:w.ts.overrideByAccount,ref:n},{type:"switch",icon:"ti ti-cloud-cog",text:w.ts.syncBetweenDevices,ref:i}]}}const $a=window.sessionStorage.getItem("TAB_ID")??Ii();window.sessionStorage.setItem("TAB_ID",$a);function th(e){let t;const n=ee.getItem("preferences");return n==null?(t=Yi.newProfile(),ee.setItem("preferences",JSON.stringify(t))):t=Yi.normalizeProfile(JSON.parse(n)),new Yi(t,e)}const ls="default",ku={save:e=>{ee.setItem("preferences",JSON.stringify(e.profile)),ee.setItem("latestPreferencesUpdate",`${$a}/${Date.now()}`)},cloudGet:async e=>{try{const n=(await Ae("i/registry/get",{scope:["client","preferences","sync"],key:ls+":"+e.key})).find(([i])=>xr(i,e.scope));return n==null?null:{value:n[1]}}catch(t){if(t.code==="NO_SUCH_KEY")return null;throw t}},cloudSet:async e=>{let t=[];try{t=await Ae("i/registry/get",{scope:["client","preferences","sync"],key:ls+":"+e.key})}catch(i){if(i.code==="NO_SUCH_KEY")t=[];else throw i}const n=t.findIndex(([i])=>xr(i,e.scope));n===-1?t.push([e.scope,e.value]):t[n]=[e.scope,e.value],await Ae("i/registry/set",{scope:["client","preferences","sync"],key:ls+":"+e.key,value:t})},cloudGets:async e=>{const t=e.needs.map(o=>ku.cloudGet(o).then(s=>[o.key,s])),n=await Promise.all(t),i={};for(const o of n)o[1]!=null&&(i[o[0]]=o[1].value);return i}},A=th(ku);let Tr=Date.now();function Du(){const e=ee.getItem("latestPreferencesUpdate");if(e==null)return;const t=e.split("/")[0],n=parseInt(e.split("/")[1]);t!==$a&&(n<=Tr||(A.rewriteProfile(Yi.normalizeProfile(JSON.parse(ee.getItem("preferences")))),Tr=Date.now()))}window.setInterval(Du,5e3);window.document.addEventListener("visibilitychange",()=>{window.document.visibilityState==="visible"&&Du()});let Mr=0;window.setInterval(()=>{S!=null&&z.s.enablePreferencesAutoCloudBackup&&window.document.visibilityState==="visible"&&(A.profile.modifiedAt<=Mr||_u().then(()=>{Mr=Date.now()}))},1e3*60*3);const nh="maxTouchPoints"in navigator&&navigator.maxTouchPoints>0;let rn=Qn==="tablet"||Qn==="smartphone";nh&&!rn&&window.addEventListener("touchstart",()=>{rn=!0},{passive:!0});const Li=F(!1),Us=e=>e instanceof Node?e:null,Eu=e=>e instanceof Element?e:null,In=e=>e instanceof HTMLElement?e:null,Kn=new Set,Cu=["script","style"];function ih(e){return Array.from(Kn).some(t=>e.contains(t))}function Au(e){const t=parseInt(window.getComputedStyle(e).zIndex||"0",10);return isNaN(t)?0:t}function $u(){let e=null,t=-1/0;return Kn.forEach(n=>{const i=Au(n);i>t&&(t=i,e=n)}),e==null?null:{el:e,zIndex:t}}function qs(e){Kn.delete(e),e.inert===!0&&(e.inert=!1);const t=$u();e.parentElement!=null&&e!==window.document.body&&(e.parentElement.childNodes.forEac
3h(n=>{const i=In(n);i&&(i!==e&&(t==null||i===t.el||i.contains(t.el))?i.inert=!1:t!=null&&i!==t.el&&!i.contains(t.el)&&!Cu.includes(i.tagName.toLowerCase())?i.inert=!0:i.inert=!1)}),qs(e.parentElement))}function Ws(e,t=!1,n=!1){const i=$u(),o=i==null?-1/0:i.zIndex,s=Au(e);if(!n&&s<o)return Kn.add(e),i&&Ws(i.el,t),{release:()=>{qs(e)}};if(e.inert===!0&&(e.inert=!1),e.parentElement!=null&&e!==window.document.body&&(e.parentElement.childNodes.forEach(a=>{const r=In(a);if(!r)return;const u=t&&r.hasAttribute("data-focus-trap-interactable");if(r!==e&&u){r.inert=!1;return}r!==e&&(t===!1||!Kn.has(r)&&!ih(r))&&!Cu.includes(r.tagName.toLowerCase())&&(r.inert=!0)}),Ws(e.parentElement,t,!0)),!n)return Kn.add(e),{release:()=>{qs(e)}}}function ln(e){if(e==null||e.tagName==="HTML")return null;const t=window.getComputedStyle(e).getPropertyValue("overflow-y");return t==="scroll"||t==="auto"?e:ln(e.parentElement)}function wo(e,t=null,n=0){if(!e.parentElement)return n;const i=e.dataset.stickyContainerHeaderHeight,o=i?Number(i)+n:n;return e===t?o:wo(e.parentElement,t,o)}function xu(e,t=null,n=0){if(!e.parentElement)return n;const i=e.dataset.stickyContainerFooterHeight,o=i?Number(i)+n:n;return e===t?o:xu(e.parentElement,t,o)}function Tu(e){const t=ln(e);return t==null?window.scrollY:t.scrollTop}function oh(e,t,n=1,i=!1){const o=Ks(e);if(e.isConnected&&o&&(t(o),i))return null;const s=ln(e)??window;let a=o;const r=()=>{if(!document.body.contains(e))return;const l=Ks(e,n);l!==a&&(a=l,t(l),i&&u())};function u(){s.removeEventListener("scroll",r)}return s.addEventListener("scroll",r,{passive:!0}),u}function sh(e,t,n=1,i=!1){const o=ln(e);if(e.isConnected&&Js(e,n,o)&&(t(),i))return null;const s=o??window,a=()=>{document.body.contains(e)&&Js(e,1,o)&&(t(),i&&r())};function r(){s.removeEventListener("scroll",a)}return s.addEventListener("scroll",a,{passive:!0}),r}function xa(e,t){const n=ln(e);n==null?window.scroll(t):n.scroll(t)}function ah(e,t={}){xa(e,{top:0,...t})}function rh(e,t={},n=ln(e)){n?n.scroll({top:e.scrollHeight-n.clientHeight+wo(e,n)||0,...t}):window.scroll({top:e.scrollHeight-window.innerHeight+wo(e,n)+(window.innerWidth<=500?96:0)||0,...t})}function Ks(e,t=1){return Tu(e)<=t}function Js(e,t=1,n=ln(e)){return n?e.scrollHeight<=n.clientHeight+Math.abs(n.scrollTop)+t:e.scrollHeight<=window.innerHeight+window.scrollY+t}function Ir(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)}const Jn=e=>{if(e==null||!(e instanceof HTMLElement)||e.tabIndex<0||"disabled"in e&&e.disabled===!0||"readonly"in e&&e.readonly===!0||!e.ownerDocument.contains(e))return!1;const t=window.getComputedStyle(e);return!(t.display==="none"||t.visibility==="hidden"||t.opacity==="0"||t.pointerEvents==="none")},lh=(e,t=!1,n=!0)=>{const i=t?e:Eu(e)?.previousElementSibling;i!=null&&(Jn(i)?Ta(i,n):lh(i,!1,n))},uh=(e,t=!1,n=!0)=>{const i=t?e:Eu(e)?.nextElementSibling;i!=null&&(Jn(i)?Ta(i,n):uh(i,!1,n))},_i=(e,t=!1,n=!0)=>{const i=t?e:Us(e)?.parentElement;i!=null&&(Jn(i)?Ta(i,n):_i(i,!1,n))},Ta=(e,t)=>{if(t){const n=ln(e)??window.document.documentElement,i=Tu(n),o=wo(e,n
3),s=xu(e,n),a=e.getBoundingClientRect().top,r=e.getBoundingClientRect().bottom;let u=i;a<o?u+=a-o:r>window.innerHeight-s&&(u+=r-window.innerHeight+s),n.scrollTo({top:u,behavior:"instant"})}window.document.activeElement!==e&&e.focus({preventScroll:!0})},ze={routerCurrentDepth:Symbol(),router:Symbol(),mock:Symbol(),pageMetadata:Symbol(),viewId:Symbol(),currentStickyTop:Symbol(),currentStickyBottom:Symbol(),mfmEmojiReactCallback:Symbol(),inModal:Symbol(),inAppSearchMarkerId:Symbol()},ch=["data-cy-transparent"],Bt=16,Vt=16,dh=ne({__name:"MkModal",props:{manualShowing:{type:[Boolean,null],default:null},anchor:{default:()=>({x:"center",y:"bottom"})},src:{default:null},preferType:{default:"auto"},zPriority:{default:"low"},noOverlap:{type:Boolean,default:!0},transparentBg:{type:Boolean,default:!1},hasInteractionWithOtherFocusTrappedEls:{type:Boolean,default:!1},returnFocusTo:{default:null}},emits:["opening","opened","click","esc","close","closed"],setup(e,{expose:t,emit:n}){function i(Z){return Z==null||Z.tagName==="BODY"?null:window.getComputedStyle(Z).getPropertyValue("position")==="fixed"?Z:i(Z.parentElement)}const o=e,s=n;lt(ze.inModal,!0);const a=F(),r=F(!1),u=F("center"),l=F(!0),d=Ee("modalRootEl"),v=Ee("content"),p=si(o.zPriority),C=F(!1),D=G(()=>o.preferType==="auto"?A.s.menuStyle==="drawer"||A.s.menuStyle==="auto"&&rn&&Qn==="smartphone"?"drawer":o.src!=null?"popup":"dialog":o.preferType),m=G(()=>o.transparentBg&&D.value==="popup"),k=G((()=>A.s.animation?C.value?"send":D.value==="drawer"?"modal-drawer":D.value==="popup"?"modal-popup":"modal":"")),h=G((()=>k.value==="send"?400:k.value==="modal-popup"?100:k.value==="modal"||k.value==="modal-drawer"?200:0));let b=null,E=!1;function T(Z={}){Z.useSendAnimation&&(C.value=!0),o.src&&(o.src.style.pointerEvents="auto"),l.value=!1,s("close")}function P(){E||s("click")}D.value==="drawer"&&(a.value=window.innerHeight/1.5);const H={esc:{allowRepeat:!0,callback:()=>s("esc")}},L=()=>
3{if(o.src==null||D.value==="drawer"||D.value==="dialog"||v.value==null)return;const Z=o.src.getBoundingClientRect(),oe=v.value.offsetWidth,be=v.value.offsetHeight;let ue,ce;const Fe=Z.left+(r.value?0:window.scrollX),j=Z.top+(r.value?0:window.scrollY);if(o.anchor.x==="center"?ue=Fe+o.src.offsetWidth/2-oe/2:o.anchor.x==="left"||o.anchor.x==="right"&&(ue=Fe+o.src.offsetWidth),o.anchor.y==="center"?ce=j-be/2:o.anchor.y==="top"||o.anchor.y==="bottom"&&(ce=j+o.src.offsetHeight),r.value){ue+oe>window.innerWidth-Vt&&(ue=window.innerWidth-Vt-oe);const X=window.innerHeight-Vt-Bt-ce,te=Z.top-Bt;ce+be>window.innerHeight-Vt-Bt?o.noOverlap&&o.anchor.x==="center"?X>=te/3?a.value=X:(a.value=te,ce=te+Bt-be):ce=window.innerHeight-Vt-Bt-be:a.value=X}else{ue+oe-window.scrollX>window.innerWidth-Vt&&(ue=window.innerWidth-Vt-oe+window.scrollX-1);const X=window.innerHeight-Vt-Bt-(ce-window.scrollY),te=Z.top-Bt;ce+be-window.scrollY>window.innerHeight-Vt-Bt?o.noOverlap&&o.anchor.x==="center"?X>=te/3?a.value=X:(a.value=te,ce=window.scrollY+(te+Bt-be)):ce=window.innerHeight-Vt-Bt-be+window.scrollY-1:a.value=X}ce<0&&(ce=Bt),ue<0&&(ue=0);let me="center",Me="center";ce>=Z.top+o.src.offsetHeight+(r.value?0:window.scrollY)?Me="top":ce+be<=Z.top+(r.value?0:window.scrollY)&&(Me="bottom"),ue>=Z.left+o.src.offsetWidth+(r.value?0:window.scrollX)?me="left":ue+oe<=Z.left+(r.value?0:window.scrollX)&&(me="right"),u.value=`${me} ${Me}`,v.value.style.left=ue+"px",v.value.style.top=ce+"px"},R=()=>{s("opened"),Pe(()=>{if(v.value==null)return;v.value.children[0].addEventListener("mousedown",oe=>{E=!0,window.addEventListener("mouseup",be=>{window.setTimeout(()=>{E=!1},100)},{passive:!0,once:!0})},{passive:!0})})},Q=new ResizeObserver((Z,oe)=>{L()});return je(()=>{le(()=>o.src,async()=>{o.src&&(o.src.style.pointerEvents="none"),r.value=D.value==="drawer"||i(o.src)!=null,await Pe(),L()},{immediate:!0}),le([l,()=>o.manualShowing],([Z,oe])=>{if(oe===!0||oe==null&&Z===!0){if(d.value!=null){const{release:be}=Ws(d.value,o.hasInteractionWithOtherFocusTrappedEls);b=be,d.value.focus()}}else b?.(),_i(o.returnFocusTo??o.src,!0,!1)},{immediate:!0}),Pe(()=>{Q.observe(v.value)})}),it(()=>{Q.disconnect()}),t({close:T}),(Z,oe)=>{const be=Ue("hotkey");return c(),q(bt,{name:k.value,enterActiveClass:f({[Z.$style.transition_modalDrawer_enterActive]:k.value==="modal-drawer",[Z.$style.transition_modalPopup_enterActive]:k.value==="modal-popup",[Z.$style.transition_modal_enterActive]:k.value==="modal",[Z.$style.transition_send_enterActive]:k.value==="send"}),leaveActiveClass:f({[Z.$style.transition_modalDrawer_leaveActive]:k.value==="modal-drawer",[Z.$style.transition_modalPopup_leaveActive]:k.value==="modal-popup",[Z.$style.transition_modal_leaveActive]:k.value==="modal",[Z.$style.transition_send_leaveActive]:k.value==="send"}),enterFromClass:f({[Z.$style.transition_modalDrawer_enterFrom]:k.value==="modal-drawer",[Z.$style.transition_modalPopup_enterFrom]:k.value==="modal-popup",[Z.$style.transition_modal_enterFrom]:k.value==="modal",[Z.$style.transition_send_enterFrom]:k.value==="send"}),leaveToClass:f({[Z.$style.transition_modalDrawer_leaveTo]:k.value==="modal-drawer",[Z.$style.transition_modalPopup_leaveTo]:k.value==="modal-popup",[Z.$style.transition_modal_leaveTo]:k.value==="modal",[Z.$style.transition_send_leaveTo]:k.value==="send"}),duration:h.value,appear:"",onAfterLeave:oe[0]||(oe[0]=ue=>s("closed")),onEnter:oe[1]||(oe[1]=ue=>s("opening")),onAfterEnter:R},{default:J(()=>[ve((c(),g("div",{ref_key:"modalRootEl",ref:d,class:f([Z.$style.root,{[Z.$style.drawer]:D.value==="drawer",[Z.$style.dialog]:D.value==="dialog",[Z.$style.popup]:D.value==="popup"}]),style:Ge({zIndex:_(p),pointerEvents:(e.manualShowing!=null?e.manualShowing:l.value)?"auto":"none","--transformOrigin":u.value})},[y("div",{"data-cy-bg":"","data-cy-transparent":m.value,class:f(["_modalBg",[Z.$style.bg,{[Z.$style.bgTransparent]:m.value}]]),style:Ge({zIndex:_(p)}),onClick:P,onMousedown:P,onContextmenu:ge(()=>{},["prevent","stop"])},null,46,ch),y("div",{ref_key:"content",ref:v,class:f([Z.$style.content,{[Z.$style.fixed]:r.value}]),style:Ge({zIndex:_(p)}),onClick:ge(P,["self"])},[Te(Z.$slots,"default",{maxHeight:a.value,type:D.value})],6)],6)),[[_t,e.manualShowing!=null?e.manualShowing:l.value],[be,H,void 0,{global:!0}]])]),_:3}
3,8,["name","enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass","duration"])}}}),fh="xm2ih",mh="xfLhG",hh="xw1Cv",ph="xr8AW",vh="xjKae",gh="xi3lA",yh="xnO1Z",wh="xwDkx",bh="xfIJQ",_h="xzhL2",kh="xdflJ",Dh="xogLu",Eh="xqaDC",Ch="xxHuc",Ah="xEfJP",$h="xied9",xh="xAU4X",Th="xmmQV",Mh="xc6MI",Ih="xfC1o",Sh="xEzLL",Fh="xzO6v",Bh="x7RPt",Ph="xtIzE",Rh={transition_send_enterActive:fh,bg:mh,transition_send_leaveActive:hh,content:ph,transition_send_enterFrom:vh,transition_send_leaveTo:gh,transition_modal_enterActive:yh,transition_modal_leaveActive:wh,transition_modal_enterFrom:bh,transition_modal_leaveTo:_h,transition_modalPopup_enterActive:kh,transition_modalPopup_leaveActive:Dh,transition_modalPopup_enterFrom:Eh,transition_modalPopup_leaveTo:Ch,transition_modalDrawer_enterActive:Ah,transition_modalDrawer_leaveActive:$h,transition_modalDrawer_enterFrom:xh,transition_modalDrawer_leaveTo:Th,root:Mh,dialog:Ih,popup:Sh,fixed:Fh,drawer:Bh,bgTransparent:Ph},re=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Lh={$style:Rh},Si=re(dh,[["__cssModules",Lh]]);var us={},vt={},Dn={},gt={},Ni={},Sr;function Nh(){return Sr||(Sr=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=/(?:\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83e\udef1\ud83c\udffb\u200d\ud83e\udef2\ud83c[\udffc-\udfff]|\ud83e\udef1\ud83c\udffc\u200d\ud83e\udef2\ud83c[\udffb\udffd-\udfff]|\ud83e\udef1\ud83c\udffd\u200d\ud83e\udef2\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\udef1\ud83c\udffe\u200d\ud83e\udef2\ud83c[\udffb-\udffd\udfff]|\ud83e\udef1\ud83c\udfff\u200d\ud83e\udef2\ud83c[\udffb-\udffe]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83e\uddd1\u200d\ud83e\udd1d\u200d\ud83e\uddd1|\ud83d\udc6b\ud83c[\udffb-\udfff]|\ud83d\udc6c\ud83c[\udffb-\udfff]|\ud83d\udc6d\ud83c[\udffb-\udfff]|\ud83d\udc8f\ud83c[\udffb-\udfff]|\ud83d\udc91\ud83c[\udffb-\udfff]|\ud83e\udd1d\ud83c[\udffb-\udfff]|\ud83d[\udc6b-\udc6d\udc8f\udc91]|\ud83e\udd1d)|(?:\ud83d[\udc68\udc69]|\ud83e\uddd1)(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])(?:\u200d\u27a1\ufe0f)?|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f(?:\u200d\u27a1\ufe0f)?)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f(?:\u200d\u27a1\ufe0f)?|(?:\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83e\uddd1\u200d\ud83e\uddd1\u200d\ud83e\uddd2\u200d\ud83e\uddd2|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83e\uddd1\u200d\ud83e\uddd1\u200d\ud83e\uddd2|\ud83e\uddd1\u200d\ud83e\uddd2\u200d\ud83e\uddd2|\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|\u26d3\ufe0f\u200d\ud83d\udca5|\u2764\ufe0f\u200d\ud83d\udd25|\u2764\ufe0f\u200d\ud83e\ude79|\ud83c\udf44\u200d\ud83d\udfeb|\ud83c\udf4b\u200d\ud83d\udfe9|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc15\u200d\ud83e\uddba|\ud83d\udc26\u200d\ud83d\udd25|\ud83d\udc3b\u200d\u2744\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude35\u200d\ud83d\udcab|\ud83d\ude42\u200d\u2194\ufe0f|\ud83d\ude42\u200d\u2195\ufe0f|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddd1\u200d\ud83e\uddd2|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f|\ud83d\udc08\u200d\u2b1b|\ud83d\udc26\u200d\u2b1b)|[#*0-9]\ufe0f?\u20e3|(?:[©®\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u23
31a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26a7\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|\ud83e\udef0|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c\udfc3|\ud83d\udeb6|\ud83e\uddce)(?:\ud83c[\udffb-\udfff])?(?:\u200d\u27a1\ufe0f)?|(?:\ud83c[\udf85\udfc2\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4\udeb5\udec0\udecc]|\ud83e[\udd0c\udd0f\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\udd77\uddb5\uddb6\uddb8\uddb9\uddbb\uddcd\uddcf\uddd1-\udddd\udec3-\udec5\udef1-\udef8]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udc8e\udc90\udc92-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\uded5-\uded7\udedc-\udedf\udeeb\udeec\udef4-\udefc\udfe0-\udfeb\udff0]|\ud83e[\udd0d\udd0e\udd10-\udd17\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd3f-\udd45\udd47-\udd76\udd78-\uddb4\uddb7\uddba\uddbc-\uddcc\uddd0\uddde-\uddff\ude70-\ude7c\ude80-\ude89\ude8f-\udec2\udec6\udece-\udedc\udedf-\udee9]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g),Ni}var cs={},Fr;function Oh(){return Fr||(Fr=1,(function(e){Object.defineProperty(e,"__esMo
3dule",{value:!0}),e.createLanguage=e.lazy=e.lineEnd=e.lineBegin=e.char=e.newline=e.crlf=e.lf=e.cr=e.notMatch=e.alt=e.seq=e.regexp=e.str=e.Parser=e.failure=e.success=void 0;function t(p,C){return{success:!0,value:C,index:p}}e.success=t;function n(){return{success:!1}}e.failure=n;class i{constructor(C,D){this.handler=(m,k,h)=>{if(h.trace&&this.name!=null){const b=`${k}`;console.log(`${b.padEnd(6," ")}enter ${this.name}`);const E=C(m,k,h);if(E.success){const T=`${k}:${E.index}`;console.log(`${T.padEnd(6," ")}match ${this.name}`)}else{const T=`${k}`;console.log(`${T.padEnd(6," ")}fail ${this.name}`)}return E}return C(m,k,h)},this.name=D}map(C){return new i((D,m,k)=>{const h=this.handler(D,m,k);return h.success?t(h.index,C(h.value)):h})}text(){return new i((C,D,m)=>{const k=this.handler(C,D,m);if(!k.success)return k;const h=C.slice(D,k.index);return t(k.index,h)})}many(C){return new i((D,m,k)=>{let h,b=m;const E=[];for(;b<D.length&&(h=this.handler(D,b,k),!!h.success);)b=h.index,E.push(h.value);return E.length<C?n():t(b,E)})}sep(C,D){if(D<1)throw new Error('"min" must be a value greater than or equal to 1.');return a(this,a(C,this).select(1).many(D-1)).map(m=>[m[0],...m[1]])}select(C){return this.map(D=>D[C])}option(){return r([this,u(null)])}}e.Parser=i;function o(p){return new i((C,D,m)=>C.length-D<p.length||C.substr(D,p.length)!==p?n():t(D+p.length,p))}e.str=o;function s(p){const C=RegExp(`^(?:${p.source})`,p.flags);return new i((D,m,k)=>{const h=D.slice(m),b=C.exec(h);return b==null?n():t(m+b[0].length,b[0])})}e.regexp=s;function a(...p){return new i((C,D,m)=>{let k,h=D;const b=[];for(let E=0;E<p.length;E++){if(k=p[E].handler(C,h,m),!k.success)return k;h=k.index,b.push(k.value)}return t(h,b)})}e.seq=a;function r(p){return new i((C,D,m)=>{for(let k=0;k<p.length;k++){const b=p[k].handler(C,D,m);if(b.success)return b}return n()})}e.alt=r;function u(p){return new i((C,D,m)=>t(D,p))}function l(p){return new i((C,D,m)=>p.handler(C,D,m).success?n():t(D,null))}e.notMatch=l,e.cr=o("\r"),e.lf=o(` 4`),e.crlf=o(`\r 5`),e.newline=r([e.crlf,e.cr,e.lf]),e.char=new i((p,C,D)=>{if(p.length-C<1)return n();const m=p.charAt(C);return t(C+1,m)}),e.lineBegin=new i((p,C,D)=>C===0||e.cr.handler(p,C-1,D).success||e.lf.handler(p,C-1,D).success?t(C,null):n()),e.lineEnd=new i((p,C,D)=>C===p.length||e.cr.handler(p,C,D).success||e.lf.handler(p,C,D).success?t(C,null):n());function d(p){const C=new i((D,m,k)=>(C.handler=p().handler,C.handler(D,m,k)));return C}e.lazy=d;function v(p){const C={};for(const D of Object.keys(p))C[D]=d(()=>{const m=p[D](C);if(m==null)throw new Error("syntax must return a parser.");return m.name=D,m});return C}e.createLanguage=v})(cs)),cs}var Pt={},ds={},Br;function Mu(){return Br||(Br=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TEXT=e.PLAIN=e.FN=e.LINK=e.N_URL=e.HASHTAG=e.MENTION=e.MATH_INLINE=e.INLINE_CODE=e.STRIKE=e.ITALIC=e.SMALL=e.BOLD=e.EMOJI_CODE=e.UNI_EMOJI=e.CENTER=e.MATH_BLOCK=e.CODE_BLOCK=e.SEARCH=e.QUOTE=e.isMfmBlock=void 0;const t=["quote","search","blockCode","mathBlock","center"];function n(L){return t.includes(L.type)}e.isMfmBlock=n;const i=L=>({type:"quote",children:L});e.QUOTE=i;const o=(L,R)=>({type:"search",props:{query:L,content:R}});e.SEARCH=o;const s=(L,R)=>({type:"blockCode",props:{code:L,lang:R}});e.CODE_BLOCK=s;const a=L=>({type:"mathBlock",props:{formula:L}});e.MATH_BLOCK=a;const r=L=>({type:"center",children:L});e.CENTER=r;const u=L=>({type:"unicodeEmoji",props:{emoji:L}});e.UNI_EMOJI=u;const l=L=>({type:"emojiCode",props:{name:L}});e.EMOJI_CODE=l;const d=L=>({type:"bold",children:L});e.BOLD=d;const v=L=>({type:"small",children:L});e.SMALL=v;const p=L=>({type:"italic",children:L});e.ITALIC=p;const C=L=>({type:"strike",children:L});e.STRIKE=C;const D=L=>({type:"inlineCode",props:{code:L}});e.INLINE_CODE=D;const m=L=>({type:"mathInline",props:{formula:L}});e.MATH_INLINE=m;const k=(L,R,Q)=>({type:"mention",props:{username:L,host:R,acct:Q}});e.MENTION=k;const h=L=>({type:"hashtag",props:{hashtag:L}});e.HASHTAG=h;const b=(L,R)=>{const Q={type:"url",props:{url:L}};return R&&(Q.props.brackets=R),Q};e.N_URL=b;const E=(L,R,Q)=>({type:"link",props:{silent:L,url:R},children:Q});e.LINK=E;const T=(L,R,Q)=>({type:"fn",props:{name:L,args:R},children:Q});e.FN=T;const P=L=>({type:"plain",children:[(0,e.TEXT)(L)]});e.PLAIN=P;const H=L=>({type:"text",props:{text:L}});e.TEXT=H})(ds)),ds}var Pr;function Ma(){if(Pr)return Pt;
5Pr=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.inspectOne=Pt.stringifyTree=Pt.stringifyNode=Pt.mergeText=void 0;const e=Mu();function t(a){const r=[],u=[];function l(){u.length>0&&(r.push((0,e.TEXT)(u.join(""))),u.length=0)}const d=a.flat(1);for(const v of d)typeof v=="string"?u.push(v):!Array.isArray(v)&&v.type==="text"?u.push(v.props.text):(l(),r.push(v));return l(),r}Pt.mergeText=t;function n(a){var r;switch(a.type){case"quote":return o(a.children).split(` 6`).map(u=>`> ${u}`).join(` 7`);case"search":return a.props.content;case"blockCode":return`\`\`\`${(r=a.props.lang)!==null&&r!==void 0?r:""} 8${a.props.code} 9\`\`\``;case"mathBlock":return`\\[ 10${a.props.formula} 11\\]`;case"center":return`<center> 12${o(a.children)} 13</center>`;case"emojiCode":return`:${a.props.name}:`;case"unicodeEmoji":return a.props.emoji;case"bold":return`**${o(a.children)}**`;case"small":return`<small>${o(a.children)}</small>`;case"italic":return`<i>${o(a.children)}</i>`;case"strike":return`~~${o(a.children)}~~`;case"inlineCode":return`\`${a.props.code}\``;case"mathInline":return`\\(${a.props.formula}\\)`;case"mention":return a.props.acct;case"hashtag":return`#${a.props.hashtag}`;case"url":return a.props.brackets?`<${a.props.url}>`:a.props.url;case"link":return`${a.props.silent?"?":""}[${o(a.children)}](${a.props.url})`;case"fn":{const u=Object.keys(a.props.args).map(d=>{const v=a.props.args[d];return v===!0?d:`${d}=${v}`}),l=u.length>0?"."+u.join(","):"";return`$[${a.props.name}${l} ${o(a.children)}]`}case"plain":return`<plain> 14${o(a.children)} 15</plain>`;case"text":return a.props.text}throw new Error("unknown mfm node")}Pt.stringifyNode=n;var i;(function(a){a[a.none=0]="none",a[a.inline=1]="inline",a[a.block=2]="block"})(i||(i={}));function o(a){const r=[];let u=i.none;for(const l of a){let d=!0;(0,e.isMfmBlock)(l)?(u===i.none&&(d=!1),u=i.block):((u===i.none||u===i.inline)&&(d=!1),u=i.inline),d&&r.push((0,e.TEXT)(` 16`)),r.push(l)}return r.map(l=>n(l)).join("")}Pt.stringifyTree=o;function s(a,r){if(r(a),a.children!=null)for(const u of a.children)s(u,r)}return Pt.inspectOne=s,Pt}var Rr;function jh(){if(Rr)return gt;Rr=1;var e=gt&>.__createBinding||(Object.create?(function(m,k,h,b){b===void 0&&(b=h);var E=Object.getOwnPropertyDescriptor(k,h);(!E||("get"in E?!k.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return k[h]}}),Object.defineProperty(m,b,E)}):(function(m,k,h,b){b===void 0&&(b=h),m[b]=k[h]})),t=gt&>.__setModuleDefault||(Object.create?(function(m,k){Object.defineProperty(m,"default",{enumerable:!0,value:k})}):function(m,k){m.default=k}),n=gt&>.__importStar||function(m){if(m&&m.__esModule)return m;var k={};if(m!=null)for(var h in m)h!=="default"&&Object.prototype.hasOwnProperty.call(m,h)&&e(k,m,h);return t(k,m),k},i=gt&>.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(gt,"__esModule",{value:!0}),gt.language=void 0;const o=i(Nh()),s=n(Iu()),a=n(Oh()),r=Ma(),u=a.regexp(/[\u0020\u3000\t]/),l=a.regexp(/[a-z0-9]/i),d=a.alt([a.crlf,a.cr,a.lf]);function v(...m){return new a.Parser((k,h,b)=>{const E=[];let T=h;for(let P=0;P<m.length;P++){const H=m[P].handler(k,T,b);if(!H.success)return T===h?a.failure():a.success(T,k.slice(h,T));E.push(H.value),T=H.index}return a.success(T,E)})}const p=new a.Parser((m,k,h)=>h.linkLabel?a.failure():a.success(k,null)),C=new a.Parser((m,k,h)=>h.depth<h.nestLimit?a.success(k,null):a.failure());function D(m,k){const h=a.alt([a.seq(C,m).select(1),k??a.char]);return new a.Parser((b,E,T)=>{T.depth++;const P=h.handler(b,E,T);return T.depth--,P})}return gt.language=a.createLanguage({fullParser:m=>m.full.many(0),simpleParser:m=>m.simple.many(0),full:m=>a.alt([m.unicodeEmoji,m.centerTag,m.smallTag,m.plainTag,m.boldTag,m.italicTag,m.strikeTag,m.urlAlt,m.big,m.boldAsta,m.italicAsta,m.boldUnder,m.italicUnder,m.codeBlock,m.inlineCode,m.quote,m.mathBlock,m.mathInline,m.strikeWave,m.fn,m.mention,m.hashtag,m.emojiCode,m.link,m.url,m.search,m.text]),simple:m=>a.alt([m.unicodeEmoji,m.emojiCode,m.plainTag,m.text]),inline:m=>a.alt([m.unicodeEmoji,m.smallTag,m.plainTag,m.boldTag,m.italicTag,m.strikeTag,m.urlAlt,m.big,m.boldAsta,m.
16italicAsta,m.boldUnder,m.italicUnder,m.inlineCode,m.mathInline,m.strikeWave,m.fn,m.mention,m.hashtag,m.emojiCode,m.link,m.url,m.text]),quote:m=>{const k=a.seq(a.str(">"),u.option(),a.seq(a.notMatch(d),a.char).select(1).many(0).text()).select(2).sep(d,1),h=a.seq(d.option(),d.option(),a.lineBegin,k,d.option(),d.option()).select(3);return new a.Parser((b,E,T)=>{let P;if(P=h.handler(b,E,T),!P.success)return P;const H=P.value,L=P.index;return H.length===1&&H[0].length===0?a.failure():(P=D(m.fullParser).many(0).handler(H.join(` 17`),0,T),P.success?a.success(L,s.QUOTE((0,r.mergeText)(P.value))):P)})},codeBlock:()=>{const m=a.str("```");return a.seq(d.option(),a.lineBegin,m,a.seq(a.notMatch(d),a.char).select(1).many(0),d,a.seq(a.notMatch(a.seq(d,m,a.lineEnd)),a.char).select(1).many(1),d,m,a.lineEnd,d.option()).map(k=>{const h=k[3].join("").trim(),b=k[5].join("");return s.CODE_BLOCK(b,h.length>0?h:null)})},mathBlock:()=>{const m=a.str("\\["),k=a.str("\\]");return a.seq(d.option(),a.lineBegin,m,d.option(),a.seq(a.notMatch(a.seq(d.option(),k)),a.char).select(1).many(1),d.option(),k,a.lineEnd,d.option()).map(h=>{const b=h[4].join("");return s.MATH_BLOCK(b)})},centerTag:m=>{const k=a.str("<center>"),h=a.str("</center>");return a.seq(d.option(),a.lineBegin,k,d.option(),a.seq(a.notMatch(a.seq(d.option(),h)),D(m.inline)).select(1).many(1),d.option(),h,a.lineEnd,d.option()).map(b=>s.CENTER((0,r.mergeText)(b[4])))},big:m=>{const k=a.str("***");return v(k,a.seq(a.notMatch(k),D(m.inline)).select(1).many(1),k).map(h=>typeof h=="string"?h:s.FN("tada",{},(0,r.mergeText)(h[1])))},boldAsta:m=>{const k=a.str("**");return v(k,a.seq(a.notMatch(k),D(m.inline)).select(1).many(1),k).map(h=>typeof h=="string"?h:s.BOLD((0,r.mergeText)(h[1])))},boldTag:m=>{const k=a.str("<b>"),h=a.str("</b>");return v(k,a.seq(a.notMatch(h),D(m.inline)).select(1).many(1),h).map(b=>typeof b=="string"?b:s.BOLD((0,r.mergeText)(b[1])))},boldUnder:()=>{const m=a.str("__");return a.seq(m,a.alt([l,u]).many(1),m).map(k=>s.BOLD((0,r.mergeText)(k[1])))},smallTag:m=>{const k=a.str("<small>"),h=a.str("</small>");return v(k,a.seq(a.notMatch(h),D(m.inline)).select(1).many(1),h).map(b=>typeof b=="string"?b:s.SMALL((0,r.mergeText)(b[1])))},italicTag:m=>{const k=a.str("<i>"),h=a.str("</i>");return v(k,a.seq(a.notMatch(h),D(m.inline)).select(1).many(1),h).map(b=>typeof b=="string"?b:s.ITALIC((0,r.mergeText)(b[1])))},italicAsta:()=>{const m=a.str("*"),k=a.seq(m,a.alt([l,u]).many(1),m);return new a.Parser((h,b,E)=>{const T=k.handler(h,b,E);if(!T.success)return a.failure();const P=h.slice(0,b);return/[a-z0-9]$/i.test(P)?a.failure():a.success(T.index,s.ITALIC((0,r.mergeText)(T.value[1])))})},italicUnder:()=>{const m=a.str("_"),k=a.seq(m,a.alt([l,u]).many(1),m);return new a.Parser((h,b,E)=>{const T=k.handler(h,b,E);if(!T.success)return a.failure();const P=h.slice(0,b);return/[a-z0-9]$/i.test(P)?a.failure():a.success(T.index,s.ITALIC((0,r.mergeText)(T.value[1])))})},strikeTag:m=>{const k=a.str("<s>"),h=a.str("</s>");return v(k,a.seq(a.notMatch(h),D(m.inline)).select(1).many(1),h).map(b=>typeof b=="string"?b:s.STRIKE((0,r.mergeText)(b[1])))},strikeWave:m=>{const k=a.str("~~");return v(k,a.seq(a.notMatch(a.alt([k,d])),D(m.inline)).select(1).many(1),k).map(h=>typeof h=="string"?h:s.STRIKE((0,r.mergeText)(h[1])))},unicodeEmoji:()=>{const m=RegExp(o.default.source);return a.regexp(m).map(k=>k==="ï¸"?k:s.UNI_EMOJI(k))},plainTag:()=>{const m=a.str("<plain>"),k=a.str("</plain>");return a.seq(m,d.option(),a.seq(a.notMatch(a.seq(d.option(),k)),a.char).select(1).many(1).text(),d.option(),k).select(2).map(h=>s.PLAIN(h))},fn:m=>{const k=new a.Parser((T,P,H)=>{const L=a.regexp(/[a-z0-9_]+/i).handler(T,P,H);return L.success?a.success(L.index,L.value):L}),h=a.seq(a.regexp(/[a-z0-9_]+/i),a.seq(a.str("="),a.regexp(/[a-z0-9_.-]+/i)).select(1).option()).map(T=>({k:T[0],v:T[1]!=null?T[1]:!0})),b=a.seq(a.str("."),h.sep(a.str(","),1)).select(1).map(T=>{const P={};for(const H of T)P[H.k]=H.v;return P}),E=a.str("]");return v(a.str("$["),k,b.option(),a.str(" "),a.seq(a.notMatch(E),D(m.inline)).select(1).many(1),E).map(T=>{if(typeof T=="string")return T;const P=T[1],H=T[2]||{},L=T[4];return s.FN(P,H,(0,r.mergeText)(L))})},inlineCode:()=>{const m=a.str("`");
17return a.seq(m,a.seq(a.notMatch(a.alt([m,a.str("´"),d])),a.char).select(1).many(1),m).map(k=>s.INLINE_CODE(k[1].join("")))},mathInline:()=>{const m=a.str("\\("),k=a.str("\\)");return a.seq(m,a.seq(a.notMatch(a.alt([k,d])),a.char).select(1).many(1),k).map(h=>s.MATH_INLINE(h[1].join("")))},mention:()=>{const m=a.seq(p,a.str("@"),a.regexp(/[a-z0-9_.-]+/i),a.seq(a.str("@"),a.regexp(/[a-z0-9_.-]+/i)).select(1).option());return new a.Parser((k,h,b)=>{let E;if(E=m.handler(k,h,b),!E.success)return a.failure();const T=k.slice(0,h);if(/[a-z0-9]$/i.test(T))return a.failure();let P=!1;const H=E.index,L=E.value[2],R=E.value[3];let Q=R;R!=null&&(E=/[.-]+$/.exec(R),E!=null&&(Q=R.slice(0,-1*E[0].length),Q.length===0&&(P=!0,Q=null)));let Z=L;if(E=/[.-]+$/.exec(L),E!=null&&(Q==null?Z=L.slice(0,-1*E[0].length):P=!0),(Z.length===0||/^[.-]/.test(Z))&&(P=!0),Q!=null&&/^[.-]/.test(Q)&&(P=!0),P)return a.success(H,k.slice(h,H));const oe=Q!=null?`@${Z}@${Q}`:`@${Z}`;return a.success(h+oe.length,s.MENTION(Z,Q,oe))})},hashtag:()=>{const m=a.str("#"),k=a.seq(a.notMatch(a.alt([a.regexp(/[ \u3000\t.,!?'"#:/[\]ãã()ããï¼ï¼<>]/),u,d])),a.char).select(1),h=a.lazy(()=>a.alt([a.seq(a.str("("),D(h,k).many(0),a.str(")")),a.seq(a.str("["),D(h,k).many(0),a.str("]")),a.seq(a.str("ã"),D(h,k).many(0),a.str("ã")),a.seq(a.str("ï¼"),D(h,k).many(0),a.str("ï¼")),k])),b=a.seq(p,m,h.many(1).text()).select(2);return new a.Parser((E,T,P)=>{const H=b.handler(E,T,P);if(!H.success)return a.failure();const L=E.slice(0,T);if(/[a-z0-9]$/i.test(L))return a.failure();const R=H.index,Q=H.value;return/^[0-9]+$/.test(Q)?a.failure():a.success(R,s.HASHTAG(Q))})},emojiCode:()=>{const m=a.notMatch(a.regexp(/[a-z0-9]/i)),k=a.str(":");return a.seq(a.alt([a.lineBegin,m]),k,a.regexp(/[a-z0-9_+-]+/i),k,a.alt([a.lineEnd,m])).select(2).map(h=>s.EMOJI_CODE(h))},link:m=>{const k=new a.Parser((E,T,P)=>{P.linkLabel=!0;const H=m.inline.handler(E,T,P);return P.linkLabel=!1,H}),h=a.str("]"),b=a.seq(p,a.alt([a.str("?["),a.str("[")]),a.seq(a.notMatch(a.alt([h,d])),D(k)).select(1).many(1),h,a.str("("),a.alt([m.urlAlt,m.url]),a.str(")"));return new a.Parser((E,T,P)=>{const H=b.handler(E,T,P);if(!H.success)return a.failure();const[,L,R,,,Q]=H.value,Z=L==="?[";return typeof Q=="string"?a.failure():a.success(H.index,s.LINK(Z,Q.props.url,(0,r.mergeText)(R)))})},url:()=>{const m=a.regexp(/[.,a-z0-9_/:%#@$&?!~=+-]/i),k=a.lazy(()=>a.alt([a.seq(a.str("("),D(k,m).many(0),a.str(")")),a.seq(a.str("["),D(k,m).many(0),a.str("]")),m])),h=a.seq(p,a.regexp(/https?:\/\//),k.many(1).text());return new a.Parser((b,E,T)=>{let P;if(P=h.handler(b,E,T),!P.success)return a.failure();const H=P.index;let L=H;const R=P.value[1];let Q=P.value[2];return P=/[.,]+$/.exec(Q),P!=null&&(L-=P[0].length,Q=Q.slice(0,-1*P[0].length),Q.length===0)?a.success(H,b.slice(E,H)):a.success(L,s.N_URL(R+Q,!1))})},urlAlt:()=>{const m=a.str("<"),k=a.str(">"),h=a.seq(p,m,a.regexp(/https?:\/\//),a.seq(a.notMatch(a.alt([k,u])),a.char).select(1).many(1),k).text();return new a.Parser((b,E,T)=>{const P=h.handler(b,E,T);if(!P.success)return a.failure();const H=P.value.slice(1,P.value.length-1);return a.success(P.index,s.N_URL(H,!0))})},search:()=>{const m=a.alt([a.regexp(/\[(æ¤ç´¢|search)\]/i),a.regexp(/(æ¤ç´¢|search)/i)]);return a.seq(d.option(),a.lineBegin,a.seq(a.notMatch(a.alt([d,a.seq(u,m,a.lineEnd)])),a.char).select(1).many(1),u,m,a.lineEnd,d.option()).map(k=>{const h=k[2].join("");return s.SEARCH(h,`${h}${k[3]}${k[4]}`)})},text:()=>a.char}),gt}var Lr;function Vh(){if(Lr)return Dn;Lr=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.simpleParser=Dn.fullParser=void 0;const e=jh(),t=Ma();function n(o,s){const a=e.language.fullParser.handler(o,0,{nestLimit:s.nestLimit!=null?s.nestLimit:20,depth:0,linkLabel:!1,trace:!1});if(!a.success)throw new Error("Unexpected parse error");return(0,t.mergeText)(a.value)}Dn.fullParser=n;function i(o){const s=e.language.simpleParser.handler(o,0,{depth:0,nestLimit:1/0});if(!s.success)throw new Error("Unexpected parse error");return(0,t.mergeText)(s.value)}return Dn.simpleParser=i,Dn}var Nr;function zh(){if(Nr)return vt;
17Nr=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.extract=vt.inspect=vt.toString=vt.parseSimple=vt.parse=void 0;const e=Vh(),t=Ma();function n(r,u={}){return(0,e.fullParser)(r,{nestLimit:u.nestLimit})}vt.parse=n;function i(r){return(0,e.simpleParser)(r)}vt.parseSimple=i;function o(r){return Array.isArray(r)?(0,t.stringifyTree)(r):(0,t.stringifyNode)(r)}vt.toString=o;function s(r,u){if(Array.isArray(r))for(const l of r)(0,t.inspectOne)(l,u);else(0,t.inspectOne)(r,u)}vt.inspect=s;function a(r,u){const l=[];return s(r,d=>{u(d)&&l.push(d)}),l}return vt.extract=a,vt}var Or;function Iu(){return Or||(Or=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TEXT=e.PLAIN=e.FN=e.LINK=e.N_URL=e.HASHTAG=e.MENTION=e.MATH_INLINE=e.INLINE_CODE=e.STRIKE=e.ITALIC=e.SMALL=e.BOLD=e.EMOJI_CODE=e.UNI_EMOJI=e.CENTER=e.MATH_BLOCK=e.CODE_BLOCK=e.SEARCH=e.QUOTE=e.extract=e.inspect=e.toString=e.parseSimple=e.parse=void 0;var t=zh();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return t.parse}}),Object.defineProperty(e,"parseSimple",{enumerable:!0,get:function(){return t.parseSimple}}),Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return t.toString}}),Object.defineProperty(e,"inspect",{enumerable:!0,get:function(){return t.inspect}}),Object.defineProperty(e,"extract",{enumerable:!0,get:function(){return t.extract}});var n=Mu();Object.defineProperty(e,"QUOTE",{enumerable:!0,get:function(){return n.QUOTE}}),Object.defineProperty(e,"SEARCH",{enumerable:!0,get:function(){return n.SEARCH}}),Object.defineProperty(e,"CODE_BLOCK",{enumerable:!0,get:function(){return n.CODE_BLOCK}}),Object.defineProperty(e,"MATH_BLOCK",{enumerable:!0,get:function(){return n.MATH_BLOCK}}),Object.defineProperty(e,"CENTER",{enumerable:!0,get:function(){return n.CENTER}}),Object.defineProperty(e,"UNI_EMOJI",{enumerable:!0,get:function(){return n.UNI_EMOJI}}),Object.defineProperty(e,"EMOJI_CODE",{enumerable:!0,get:function(){return n.EMOJI_CODE}}),Object.defineProperty(e,"BOLD",{enumerable:!0,get:function(){return n.BOLD}}),Object.defineProperty(e,"SMALL",{enumerable:!0,get:function(){return n.SMALL}}),Object.defineProperty(e,"ITALIC",{enumerable:!0,get:function(){return n.ITALIC}}),Object.defineProperty(e,"STRIKE",{enumerable:!0,get:function(){return n.STRIKE}}),Object.defineProperty(e,"INLINE_CODE",{enumerable:!0,get:function(){return n.INLINE_CODE}}),Object.defineProperty(e,"MATH_INLINE",{enumerable:!0,get:function(){return n.MATH_INLINE}}),Object.defineProperty(e,"MENTION",{enumerable:!0,get:function(){return n.MENTION}}),Object.defineProperty(e,"HASHTAG",{enumerable:!0,get:function(){return n.HASHTAG}}),Object.defineProperty(e,"N_URL",{enumerable:!0,get:function(){return n.N_URL}}),Object.defineProperty(e,"LINK",{enumerable:!0,get:function(){return n.LINK}}),Object.defineProperty(e,"FN",{enumerable:!0,get:function(){return n.FN}}),Object.defineProperty(e,"PLAIN",{enumerable:!0,get:function(){return n.PLAIN}}),Object.defineProperty(e,"TEXT",{enumerable:!0,get:function(){return n.TEXT}})})(us)),us}var xn=Iu();const Gn=2147483647,Ht=36,Ia=1,ki=26,Hh=38,Uh=700,Su=72,Fu=128,Bu="-",qh=/^xn--/,Wh=/[^\0-\x7F]/,Kh=/[\x2E\u3002\uFF0E\uFF61]/g,Jh={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fs=Ht-Ia,Ut=Math.floor,ms=String.fromCharCode;function hn(e){throw new RangeError(Jh[e])}function Gh(e,t){const n=[];let i=e.length;for(;i--;)n[i]=t(e[i]);return n}function Pu(e,t){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(Kh,".");const o=e.split("."),s=Gh(o,t).join(".");return i+s}function Yh(e){const t=[];let n=0;const i=e.length;for(;n<i;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<i){const s=e.charCodeAt(n++);(s&64512)==56320?t.push(((o&1023)<<10)+(s&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const Xh=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Ht},jr=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ru=function(e,t,n){let i=0;for(e=n?Ut(e/Uh):e>>1,e+=Ut(e/t);e>fs*ki>>1;i+=Ht)e=Ut(e/fs);return Ut(i+(fs+1)*e/(e+Hh))},Qh=function(e){const t=[],n=e.length;let i=0,o=Fu,s=Su,a=e.lastIndexOf(Bu);a<0&&(a=0);for(let r=0;r<a;++r)e.charCodeAt(r)>=128&&hn("not-basic"),t.push(e.charCodeAt(r));for(let r=a>0?a+1:0;r<n;){const u=i;for(let d=1,v=Ht;;v+=Ht){r>=n&&hn("invalid-input");const p=Xh(e.charCodeAt(r++));p>=Ht&&hn("invalid-input"),p>Ut((Gn-i)/d)&&hn("overflow"),i+=p*d;const C=v<=s?Ia:v>=s+ki?ki:v-s;if(p<C)break;const D=Ht-C;d>Ut(Gn/D)&&hn("overflow"),d*=D}const l=t.length+1;s=Ru(i-u,l,u==0),Ut(i/l)>Gn-o&&hn("overflow"),o+=Ut(i/l),i%=l,t.splice(i++,0,o)}return String.fromCodePoint(...t)},Zh=function(e){const t=[];e=Yh(e);const n=e.length;let i=Fu,o=0,s=Su;for(const u of e)u<128&&t.push(ms(u));const a=t.length;let r=a;
17for(a&&t.push(Bu);r<n;){let u=Gn;for(const d of e)d>=i&&d<u&&(u=d);const l=r+1;u-i>Ut((Gn-o)/l)&&hn("overflow"),o+=(u-i)*l,i=u;for(const d of e)if(d<i&&++o>Gn&&hn("overflow"),d===i){let v=o;for(let p=Ht;;p+=Ht){const C=p<=s?Ia:p>=s+ki?ki:p-s;if(v<C)break;const D=v-C,m=Ht-C;t.push(ms(jr(C+D%m,0))),v=Ut(D/m)}t.push(ms(jr(v,0))),s=Ru(o,l,r===a),o=0,++r}++o,++i}return t.join("")},zn=function(e){return Pu(e,function(t){return qh.test(t)?Qh(t.slice(4).toLowerCase()):t})},fi=function(e){return Pu(e,function(t){return Wh.test(t)?"xn--"+Zh(t):t})};function ep(e){return[].concat(...e)}function tp(e,t){return t.filter(n=>n!==e)}function np(e){return[...new Set(e)]}function R5(e,t){const n=new Map;for(const i of e){const o=t(i);n.has(o)||n.set(o,i)}return[...n.values()]}function ip(e){return e.reduce((t,n)=>t+n,0)}const op=["type","name","value","disabled"],sp=["data-children-class"],ap=["data-children-class"],rp=ne({__name:"MkButton",props:{type:{},primary:{type:Boolean},gradate:{type:Boolean},rounded:{type:Boolean},inline:{type:Boolean},link:{type:Boolean},to:{},linkBehavior:{},autofocus:{type:Boolean},wait:{type:Boolean},danger:{type:Boolean},full:{type:Boolean},small:{type:Boolean},large:{type:Boolean},transparent:{type:Boolean},asLike:{type:Boolean},name:{},value:{},disabled:{type:Boolean},iconOnly:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,i=t,o=Ee("el"),s=Ee("ripples");je(()=>{n.autofocus&&Pe(()=>{o.value.focus()})});function a(l,d){return Math.hypot(l.x-d.x,l.y-d.y)}function r(l,d,v,p){const C={x:v,y:p},D=a({x:0,y:0},C),m=a({x:l,y:0},C),k=a({x:0,y:d},C),h=a({x:l,y:d},C);return Math.max(D,m,k,h)*2}function u(l){const d=l.target,v=d.getBoundingClientRect(),p=window.document.createElement("div");p.classList.add(s.value.dataset.childrenClass),p.style.top=(l.clientY-v.top-1).toString()+"px",p.style.left=(l.clientX-v.left-1).toString()+"px",s.value.appendChild(p);const C=l.clientX-v.left,D=l.clientY-v.top,m=r(d.clientWidth,d.clientHeight,C,D);window.setTimeout(()=>{p.style.transform="scale("+m/2+")"},1),window.setTimeout(()=>{p.style.transition="all 1s ease",p.style.opacity="0"},1e3),window.setTimeout(()=>{s.value&&s.value.removeChild(p)},2e3)}return(l,d)=>{const v=we("MkA");return e.link?(c(),q(v,{key:1,class:f(["_button",[l.$style.root,{[l.$style.inline]:e.inline,[l.$style.primary]:e.primary,[l.$style.gradate]:e.gradate,[l.$style.danger]:e.danger,[l.$style.rounded]:e.rounded,[l.$style.full]:e.full,[l.$style.small]:e.small,[l.$style.large]:e.large,[l.$style.transparent]:e.transparent,[l.$style.asLike]:e.asLike,[l.$style.iconOnly]:e.iconOnly,[l.$style.wait]:e.wait}]]),to:e.to??"#",behavior:e.linkBehavior,onMousedown:u},{default:J(()=>[y("div",{ref_key:"ripples",ref:s,class:f(l.$style.ripples),"data-children-class":l.$style.ripple},null,10,ap),y("div",{class:f(l.$style.content)},[Te(l.$slots,"default")],2)]),_:3},8,["class","to","behavior"])):(c(),g("button",{key:0,ref_key:"el",ref:o,class:f(["_button",[l.$style.root,{[l.$style.inline]:e.inline,[l.$style.primary]:e.primary,[l.$style.gradate]:e.gradate,[l.$style.danger]:e.danger,[l.$style.rounded]:e.rounded,[l.$style.full]:e.full,[l.$style.small]:e.small,[l.$style.large]:e.large,[l.$style.transparent]:e.transparent,[l.$style.asLike]:e.asLike,[l.$style.iconOnly]:e.iconOnly,[l.$style.wait]:e.wait}]]),type:e.type,name:e.name,value:e.value,disabled:e.disabled||e.wait,onClick:d[0]||(d[0]=p=>i("click",p)),onMousedown:u},[y("div",{ref_key:"ripples",ref:s,class:f(l.$style.ripples),"data-children-class":l.$style.ripple},null,10,sp),y("div",{class:f(l.$style.content)},[Te(l.$slots,"default")],2)],42,op))}}}),lp="xbaFh",up="xm5Tm",cp="xrmjY",dp="x3MCF",fp="xdt0l",mp="xlA8v",hp="x2hCn",pp="xzgmv",vp="xDPWR",gp="x4uZY",yp="xxs1Q",wp="xze7V",bp="xB0oK",_p="xpr1U",kp="xfjt2",Dp="xossv",Ep={root:lp,iconOnly:up,small:cp,large:dp,full:fp,rounded:mp,primary:hp,asLike:pp,ripples:vp,ripple:gp,transparent:yp,gradate:wp,danger:bp,wait:_p,inline:kp,content:Dp},Cp={$style:Ep},dt=re(rp,[["__cssModules",Cp]]),Ap=ne({__name:"MkCwButton",props:{modelValue:{type:Boolean},text:{},renote:{},files:{},poll:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=G(()=>ep([n.text?[w.tsx._cw.chars({count:n.text.length})]:[],n.renote?[w.ts.quote]:[],n.files&&n.files.length!==0?[w.tsx._cw.files({count:n.files.length})]:[],n.poll!=null?[w.ts.poll]:[]]).join(" / "));function s(){i("update:modelValue",!n.modelValue)}return(a,r)=>(c(),q(dt,{rounded:"",full:"",small:"",onClick:s},{default:J(()=>[y("b",null,M(e.modelValue?_(w).ts._cw.hide:_(w).ts._cw.show),1),e.modelValue?I("",!0):(c(),g("span",{key:0,class:f(a.$style.label)},M(o.value),3))]),_:1}))}}),$p="x4iKD",xp={label:$p},Tp={$style:xp},Lu=re(Ap,[["__cssModules",Tp]]),Mp=ne({__name:"MkNotePreview",props:{text:{},files:{},poll:{},useCw:{type:Boolean},cw:{},user:{}},setup(e){const t=F(!1);return(n,i)=>{const o=we("MkAvatar"),s=we("MkUserName"),a=we("Mfm");return c(),g("div",{class:f(n.$style.root)},[W(o,{class:f(n.$style.avatar),user:e.user},null,8,["class","user"]),y("div",{class:f(n.$style.main)},[y("div",{class:f(n.$style.header)},[W(s,{user:e.user,nowrap:!0},null,8,["user"])],2),y("div",null,[e.useCw?(c(),g("p",{key:0,class:f(n.$style.cw)},[e.cw!=null&&e.cw!=""?(c(),q(a,{key:0,text:e.cw,author:e.user,nyaize:"respect",i:e.user,style:{"margin-right":"8px"}},null,8,["text","author","i"])):I("",!0),W(Lu,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=r=>t.value=r),text:e.text.trim(),files:e.files,poll:e.poll,style:{margin:"4px 0"}},null,8,["modelValue","text","files","poll"])],2)):I("",!0),ve(y("div",null,[W(a,{text:e.text.trim(),author:e.user,nyaize:"respect",i:e.user},null,8,["text","author","i"])],512),[[_t,!e.useCw||t.value]])])],2)],2)}}}
17),Ip="xEd72",Sp="xlPkH",Fp="xi18j",Bp="xhY0o",Pp="xct11",Rp={root:Ip,avatar:Sp,main:Fp,cw:Bp,header:Pp},Lp={$style:Rp},Np=re(Mp,[["__cssModules",Lp]]);function Oi(e){let t=0;for(let n=0;n<e.length;n++)t=t*83+"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~".indexOf(e[n]);return t}function Vr(e,t){return Math.cos(Math.PI*e/t)}function Op(e,t){t[0]=hs(e>>16),t[1]=hs(e>>8&255),t[2]=hs(e&255)}function hs(e){const t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function jp(e,t,n){t[0]=ps(Math.floor(e/361))*n,t[1]=ps(Math.floor(e/19)%19)*n,t[2]=ps(e%19)*n}function ps(e){const t=(e-9)/9;return Math.sign(t)*Math.abs(t)**2}function Vp(e,t,n=1){const i=Oi(e[0]),o=i%9+1,s=(i-o+1)/9+1,a=(Oi(e[1])+1)/166*n,r=new Float32Array(3*o*s);for(let E=0;E<o*s;E++)E?jp(Oi(e.slice(E*2+4,E*2+6)),r.subarray(E*3,(E+1)*3),a):Op(Oi(e.slice(2,6)),r.subarray(0,3));const u=new Float32Array(o*s*3);for(let E=0;E<o*s;E++){const T=E%o,P=s-1-(E-T)/o,H=u.subarray(E*3,(E+1)*3);for(let L=0;L<s;L++){const R=Vr(L*P,s);for(let Q=0;Q<o;Q++){const Z=R*Vr(Q*T,o),oe=r.subarray(L*o*3+Q*3,L*o*3+(Q+1)*3);for(let be=0;be<3;be++)H[be]+=oe[be]*Z}}}const l=t.getContext("webgl2"),d=l.createShader(l.VERTEX_SHADER);l.shaderSource(d,`#version 300 es 18in vec2 a;in vec2 b;out vec2 c;void main(){gl_Position=vec4(a,0.,1.);c=b;}`),l.compileShader(d);const v=l.createShader(l.FRAGMENT_SHADER);l.shaderSource(v,`#version 300 es 19precision mediump float;in vec2 c;uniform sampler2D d;out vec4 e;vec3 f(vec3 a,vec3 b,vec3 c,vec3 d,float e){float f=e*e,g=f*e;return(d/2.-c*3./2.+b*3./2.-a/2.)*g+(a-b*5./2.+c*2.-d/2.)*f+(c/2.-a/2.)*e+b;}void main(){vec2 g=vec2(${o},${s}),h=c*g+vec2(1.,0.),i=fract(h);h=(floor(h)-.5)/g;vec3 k=f(f(texture(d,h+vec2(-1.)/g).rgb,texture(d,h+vec2(0.,-1.)/g).rgb,texture(d,h+vec2(1.,-1.)/g).rgb,texture(d,h+vec2(2.,-1.)/g).rgb,i.x),f(texture(d,h+vec2(-1.,0.)/g).rgb,texture(d,h).rgb,texture(d,h+vec2(1.,0.)/g).rgb,texture(d,h+vec2(2.,0.)/g).rgb,i.x),f(texture(d,h+vec2(-1.,1.)/g).rgb,texture(d,h+vec2(0.,1.)/g).rgb,texture(d,h+vec2(1.)/g).rgb,texture(d,h+vec2(2.,1.)/g).rgb,i.x),f(texture(d,h+vec2(-1.,2.)/g).rgb,texture(d,h+vec2(0.,2.)/g).rgb,texture(d,h+vec2(1.,2.)/g).rgb,texture(d,h+vec2(2.)/g).rgb,i.x),i.y),l=pow(abs(k),vec3(1./2.4))*1.055-vec3(.055);l=mix(k*12.92,l,step(.0031308,k));e=vec4(l,1.);}`),l.compileShader(v);const p=l.createProgram();l.attachShader(p,d),l.attachShader(p,v),l.linkProgram(p),l.useProgram(p);const C=l.createBuffer();l.bindBuffer(l.ARRAY_BUFFER,C),l.bufferData(l.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),l.STATIC_DRAW);const D=l.createBuffer();l.bindBuffer(l.ARRAY_BUFFER,D),l.bufferData(l.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),l.STATIC_DRAW);const m=l.getAttribLocation(p,"a");l.enableVertexAttribArray(m),l.bindBuffer(l.ARRAY_BUFFER,C),l.vertexAttribPointer(m,2,l.FLOAT,!1,0,0);const k=l.getAttribLocation(p,"b");l.enableVertexAttribArray(k),l.bindBuffer(l.ARRAY_BUFFER,D),l.vertexAttribPointer(k,2,l.FLOAT,!1,0,0);const h=l.createTexture();l.bindTexture(l.TEXTURE_2D,h),l.pixelStorei(l.UNPACK_ALIGNMENT,1),l.texImage2D(l.TEXTURE_2D,0,l.RGB16F,o,s,0,l.RGB,l.FLOAT,u),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_S,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_WRAP_T,l.CLAMP_TO_EDGE),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MIN_FILTER,l.LINEAR),l.texParameteri(l.TEXTURE_2D,l.TEXTURE_MAG_FILTER,l.LINEAR);const b=l.getUniformLocation(p,"d");l.uniform1i(b,0),l.drawArrays(l.TRIANGLE_STRIP,0,4)}function zp(e){return new Worker("/vite/draw-blurhash-Bp1JgrMM.js",{type:"module",name:e?.name})}function Hp(e){return new Worker("/vite/test-webgl2-pGpJeZwo.js",{type:"module",name:e?.name})}function Up(e){return e+1}class Xi{symbol=Symbol("WorkerMultiDispatch");workers=[];terminated=!1;prevWorkerNumber=0;getUseWorkerNumber;finalizationRegistry;constructor(t,n,i=Up){this.getUseWorkerNumber=i;for(let o=0;o<n;o++)this.workers.push(t());this.finalizationRegistry=new FinalizationRegistry(()=>{this.terminate()}),this.finalizationRegistry.register(this,this.symbol)}postMessage(t,n,i=this.getUseWorkerNumber){let o=i(this.prevWorkerNumber,this.workers.length);return o=Math.abs(Math.round(o))%this.workers.length,this.prevWorkerNumber=o,n===void 0?this.workers[o].postMessage(t):Array.isArray(n)?this.workers[o].postMessage(t,n):this.workers[o].postMessage(t,n),o}
19addListener(t,n){this.workers.forEach(i=>{i.addEventListener("message",t,n)})}removeListener(t,n){this.workers.forEach(i=>{i.removeEventListener("message",t,n)})}terminate(){this.terminated=!0,this.workers.forEach(t=>{t.terminate()}),this.workers=[],this.finalizationRegistry.unregister(this)}isTerminated(){return this.terminated}getWorkers(){return this.workers}getSymbol(){return this.symbol}}function Nu(e){return typeof e=="string"?"#"+[...e.slice(2,6)].map(t=>"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~".indexOf(t)).reduce((t,n)=>t*83+n,0).toString(16).padStart(6,"0"):void 0}const qp=["title"],Wp=["width","height","title"],Kp=["height","width","src","title","alt"],vs=new Promise(e=>{const t=new Hp;t.addEventListener("message",n=>{if(n.data.result){const i=new Xi(()=>new zp,Math.min(navigator.hardwareConcurrency-1,4));e(i)}else{const i=window.document.createElement("canvas");i.width=64,i.height=64,e(i)}t.terminate()})}),Jp=ne({__name:"MkImgWithBlurhash",props:{transition:{default:null},src:{default:null},hash:{},alt:{default:""},title:{default:null},height:{default:64},width:{default:64},cover:{type:Boolean,default:!0},forceBlurhash:{type:Boolean,default:!1},onlyAvgColor:{type:Boolean,default:!1}},setup(e){const t=e,n=Ii(),i=Ee("canvas"),o=Ee("root"),s=Ee("img"),a=F(!1),r=F(64),u=F(64),l=F(t.width),d=F(t.height),v=F(),p=G(()=>!a.value||t.forceBlurhash);function C(){t.src!=null&&t.src!==""?Pe().then(()=>s.value?.decode()).then(()=>{a.value=!0},b=>{console.log("Error occurred during decoding image",s.value,b)}):a.value=!1}le([()=>t.width,()=>t.height,o],()=>{const b=t.width/t.height;b>1?(r.value=Math.round(64*b),u.value=64):(r.value=64,u.value=Math.round(64/b));const E=o.value?.clientWidth??300;l.value=E,d.value=Math.round(E/b)},{immediate:!0});function D(b){if(!i.value){v.value=b;return}v.value=void 0;const E=i.value.getContext("2d");E&&E.drawImage(b,0,0,r.value,u.value)}function m(){if(!i.value)return;const b=t.hash!=null&&Nu(t.hash)||"#888",E=i.value.getContext("2d");E&&(E.beginPath(),E.fillStyle=b,E.fillRect(0,0,r.value,u.value))}async function k(){if(m(),t.hash==null||t.onlyAvgColor)return;const b=await vs;if(b instanceof Xi)b.postMessage({id:n,hash:t.hash},void 0);else try{Vp(t.hash,b),D(b)}catch(E){console.error("Error occurred during drawing blurhash",E)}}function h(b){b.data.id===n&&D(b.data.bitmap)}return vs.then(b=>{b instanceof Xi&&b.addListener(h),k()}),le(()=>t.src,()=>{C()}),le(()=>t.hash,()=>{k()}),je(()=>{v.value&&D(v.value),C()}),it(()=>{vs.then(b=>{b instanceof Xi&&b.removeListener(h)})}),(b,E)=>(c(),g("div",{ref_key:"root",ref:o,class:f(["chromatic-ignore",b.$style.root,{[b.$style.cover]:e.cover}]),title:e.title??""},[W(ma,{duration:_(A).s.animation&&t.transition?.duration||void 0,enterActiveClass:_(A).s.animation&&t.transition?.enterActiveClass||void 0,leaveActiveClass:_(A).s.animation&&(t.transition?.leaveActiveClass??b.$style.transition_leaveActive)||void 0,enterFromClass:_(A).s.animation&&t.transition?.enterFromClass||void 0,leaveToClass:_(A).s.animation&&t.transition?.leaveToClass||void 0,enterToClass:_(A).s.animation&&t.transition?.enterToClass||void 0,leaveFromClass:_(A).s.animation&&t.transition?.leaveFromClass||void 0},{default:J(()=>[ve(y("canvas",{key:"canvas",ref_key:"canvas",ref:i,class:f(b.$style.canvas),width:r.value,height:u.value,title:e.title??void 0,draggable:"false",tabindex:"-1",style:{"-webkit-user-drag":"none"}},null,10,Wp),[[_t,p.value]]),ve(y("img",{key:"img",ref_key:"img",ref:s,height:d.value??void 0,width:l.value??void 0,class:f(b.$style.img),src:e.src??void 0,title:e.title??void 0,alt:e.alt??void 0,loading:"eager",decoding:"async",draggable:"false",tabindex:"-1",style:{"-webkit-user-drag":"none"}},null,10,Kp),[[_t,!p.value]])]),_:1},8,["duration","enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass","enterToClass","leaveFromClass"])],10,qp))}}),Gp="x9KMt",Yp="xEFF2",Xp="x2pHm",Qp="x4Rm8",Zp="xkJBF",ev={transition_leaveActive:Gp,root:Yp,cover:Xp,canvas:Qp,img:Zp},tv={$style:ev},jo=re(Jp,[["__cssModules",tv]]),nv=["src","alt","title"],iv=ne({__name:"MkDriveFileThumbn
19ail",props:{file:{},fit:{},highlightWhenSensitive:{type:Boolean},forceBlurhash:{type:Boolean},large:{type:Boolean}},setup(e){const t=e,n=F(!1),i=F(!1);function o(){n.value=!0}function s(){i.value=!0}const a=G(()=>t.file.type.startsWith("image/")?"image":t.file.type.startsWith("video/")?"video":t.file.type==="audio/midi"?"midi":t.file.type.startsWith("audio/")?"audio":t.file.type.endsWith("/csv")?"csv":t.file.type.endsWith("/pdf")?"pdf":t.file.type.startsWith("text/")?"textfile":["application/zip","application/x-cpio","application/x-bzip","application/x-bzip2","application/java-archive","application/x-rar-compressed","application/x-tar","application/gzip","application/x-7z-compressed"].some(d=>d===t.file.type)?"archive":"unknown"),r=G(()=>t.file.thumbnailUrl?a.value==="image"||a.value==="video":!1),u=G(()=>r.value&&!n.value),l=G(()=>r.value&&n.value&&!i.value);return(d,v)=>{const p=Ue("panel");return ve((c(),g("div",{class:f([d.$style.root,{[d.$style.sensitiveHighlight]:e.highlightWhenSensitive&&e.file.isSensitive,[d.$style.large]:e.large}])},[u.value?(c(),q(jo,{key:0,hash:e.file.blurhash,src:e.file.thumbnailUrl,alt:e.file.name,title:e.file.name,cover:e.fit!=="contain",forceBlurhash:e.forceBlurhash,onError:o},null,8,["hash","src","alt","title","cover","forceBlurhash"])):l.value?(c(),g("img",{key:1,src:e.file.thumbnailUrl,alt:e.file.name,title:e.file.name,class:f([d.$style.plainImage,{[d.$style.cover]:e.fit!=="contain"}]),onError:s},null,42,nv)):a.value==="image"?(c(),g("i",{key:2,class:f(["ti ti-photo",d.$style.icon])},null,2)):a.value==="video"?(c(),g("i",{key:3,class:f(["ti ti-video",d.$style.icon])},null,2)):a.value==="audio"||a.value==="midi"?(c(),g("i",{key:4,class:f(["ti ti-file-music",d.$style.icon])},null,2)):a.value==="csv"?(c(),g("i",{key:5,class:f(["ti ti-file-text",d.$style.icon])},null,2)):a.value==="pdf"?(c(),g("i",{key:6,class:f(["ti ti-file-text",d.$style.icon])},null,2)):a.value==="textfile"?(c(),g("i",{key:7,class:f(["ti ti-file-text",d.$style.icon])},null,2)):a.value==="archive"?(c(),g("i",{key:8,class:f(["ti ti-file-zip",d.$style.icon])},null,2)):(c(),g("i",{key:9,class:f(["ti ti-file",d.$style.icon])},null,2)),u.value&&a.value==="video"?(c(),g("i",{key:10,class:f(["ti ti-video",d.$style.iconSub])},null,2)):I("",!0)],2)),[[p]])}}}),ov="xt5SL",sv="xsxob",av="x6Y9U",rv="x5JE1",lv="xvLcs",uv="x61jQ",cv="xDaOF",dv={root:ov,sensitiveHighlight:sv,iconSub:av,icon:rv,large:lv,plainImage:uv,cover:cv},fv={$style:dv},mv=re(iv,[["__cssModules",fv]]),hv=["onClick","onKeydown","onContextmenu"],pv=ne({__name:"MkPostFormAttaches",props:{modelValue:{},detachMediaFn:{type:Function}},emits:["update:modelValue","detach","changeSensitive","changeName","replaceFile"],setup(e,{emit:t}){const n=de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CNMq9ubx.js").then(D=>D.v),__vite__mapDeps([103,2])).then(D=>D.default)),i=e,o=tt(ze.mock,!1),s=t;let a=!1;function r(D){o||(i.detachMediaFn?i.detachMediaFn(D):s("detach",D))}async function u(D){if(o)return;r(D.id);const{canceled:m}=await ft({type:"warning",text:w.tsx.driveFileDeleteConfirm({name:D.name})});m||oi("drive/files/delete",{fileId:D.id})}function l(D){if(o){s("changeSensitive",D,!D.isSensitive);return}Ae("drive/files/update",{fileId:D.id,isSensitive:!D.isSensitive}).then(()=>{s("changeSensitive",D,!D.isSensitive)})}async function d(D){if(o)return;const{canceled:m,result:k}=await qo({title:w.ts.enterFileName,default:D.name,minLength:1});m||Ae("drive/files/update",{fileId:D.id,name:k}).then(()=>{s("changeName",D,k),D.name=k})}async function v(D){o||await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BKz8gz2y.js"),__vite__mapDeps([104,2,3,4]))),{default:D.comment!==null?D.comment:"",file:D},{done:m=>{let k=m.length===0?null:m;Ae("drive/files/update",{fileId:D.id,comment:k}).then(()=>{D.comment=k})}},"closed")}async function p(D){if(o)return;const m=await UA(D,{aspectRatio:NaN});s("replaceFile",D,m)}function C(D,m){if(a)return;const k=D.type.startsWith("image/"),h=[];h.push({text:w.ts.renameFile,icon:"ti ti-forms",action:()=>{d(D)}},{text:D.isSensitive?w.ts.unmarkAsSensitive:w.ts.markAsSensitive,icon:D.isSensitive?"ti ti-eye":"ti ti-eye-exclamation",action:()=>{l(D)}},{text:w.ts.describeFile,icon:"ti ti-text-caption",action:()=>{v(D)}}),k&&h.push({text:w.ts.cropImage,icon:"ti ti-crop",action:()=>{p(D)}},{text:w.ts.preview,icon:"ti ti-photo-search",action:async()=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.QK4SWibX.js"),__vite__mapDeps([105,2,3,4,106]))),{file:
19D})}}),h.push({type:"divider"},{text:w.ts.attachCancel,icon:"ti ti-circle-x",action:()=>{r(D.id)}},{text:w.ts.deleteFile,icon:"ti ti-trash",danger:!0,action:()=>{u(D)}}),A.s.devMode&&h.push({type:"divider"},{icon:"ti ti-hash",text:w.ts.copyFileId,action:()=>{Dt(D.id)}}),st(h,m.currentTarget??m.target).then(()=>a=!1),a=!0}return(D,m)=>ve((c(),g("div",{class:f(D.$style.root)},[W(_(n),{modelValue:i.modelValue,class:f(D.$style.files),itemKey:"id",animation:150,delay:100,delayOnTouchOnly:!0,"onUpdate:modelValue":m[0]||(m[0]=k=>s("update:modelValue",k))},{item:J(({element:k})=>[y("div",{class:f(D.$style.file),role:"button",tabindex:"0",onClick:h=>C(k,h),onKeydown:so(h=>C(k,h),["space","enter"]),onContextmenu:ge(h=>C(k,h),["prevent"])},[W(mv,{"data-id":k.id,class:f(D.$style.thumbnail),file:k,fit:"cover"},null,8,["data-id","class","file"]),k.isSensitive?(c(),g("div",{key:0,class:f(D.$style.sensitive)},[...m[1]||(m[1]=[y("i",{class:"ti ti-eye-exclamation",style:{margin:"auto"}},null,-1)])],2)):I("",!0)],42,hv)]),_:1},8,["modelValue","class"]),y("p",{class:f([D.$style.remain,{[D.$style.exceeded]:i.modelValue.length>16}])},M(i.modelValue.length)+"/16 ",3)],2)),[[_t,i.modelValue.length!=0]])}}),vv="xj7LU",gv="xogvv",yv="xtEVP",wv="xCSUB",bv="x3bJu",_v="xeJ9I",kv="xavsh",Dv={root:vv,files:gv,file:yv,thumbnail:wv,sensitive:bv,remain:_v,exceeded:kv},Ev={$style:Dv},Cv=re(pv,[["__cssModules",Ev]]);function Ou(e,t,n){var i=n||{},o=i.noTrailing,s=o===void 0?!1:o,a=i.noLeading,r=a===void 0?!1:a,u=i.debounceMode,l=u===void 0?void 0:u,d,v=!1,p=0;function C(){d&&clearTimeout(d)}function D(k){var h=k||{},b=h.upcomingOnly,E=b===void 0?!1:b;C(),v=!E}function m(){for(var k=arguments.length,h=new Array(k),b=0;b<k;b++)h[b]=arguments[b];var E=this,T=Date.now()-p;if(v)return;function P(){p=Date.now(),t.apply(E,h)}function H(){d=void 0}!r&&l&&!d&&P(),C(),l===void 0&&T>e?r?(p=Date.now(),s||(d=setTimeout(l?H:P,e))):P():s!==!0&&(d=setTimeout(l?H:P,l===void 0?e-T:e))}return m.cancel=D,m}function ju(e,t,n){var i={},o=i.atBegin,s=o===void 0?!1:o;return Ou(e,t,{debounceMode:s!==!1})}function Sa(e,t,n){if(Number.isNaN(t))return;let i=null;n.afterMounted?je(()=>{n.immediate&&e(),i=window.setInterval(e,t)}):(n.immediate&&e(),i=window.setInterval(e,t));const o=()=>{i&&window.clearInterval(i),i=null};return Kt(()=>{i||(n.immediate&&e(),i=window.setInterval(e,t))}),ti(()=>{o()}),it(()=>{o()}),o}var gs={exports:{}},zr;function Av(){return zr||(zr=1,(function(e){(function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=typeof window<"u",i=n&&window.mozInnerScreenX!=null;function o(s,a,r){if(!n)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var u=r&&r.debug||!1;if(u){var l=document.querySelector("#input-textarea-caret-position-mirror-div");l&&l.parentNode.removeChild(l)}var d=document.createElement("div");d.id="input-textarea-caret-position-mirror-div",document.body.appendChild(d);var v=d.style,p=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,C=s.nodeName==="INPUT";v.whiteSpace="pre-wrap",C||(v.wordWrap="break-word"),v.position="absolute",u||(v.visibility="hidden"),t.forEach(function(k){C&&k==="lineHeight"?v.lineHeight=p.height:v[k]=p[k]}),i?s.scrollHeight>parseInt(p.height)&&(v.overflowY="scroll"):v.overflow="hidden",d.textContent=s.value.substring(0,a),C&&(d.textContent=d.textContent.replace(/\s/g,"Â "));var D=document.createElement("span");D.textContent=s.value.substring(a)||".",d.appendChild(D);var m={top:D.offsetTop+parseInt(p.borderTopWidth),left:D.offsetLeft+parseInt(p.borderLeftWidth),height:parseInt(p.lineHeight)};return u?D.style.backgroundColor="#aaa":document.body.removeChild(d),m}e.exports=o})()})(gs)),gs.exports}var $v=Av();const xv=El($v);class vi{suggestion;textarea;currentType;textRef;opening;onlyType;get text(){return this.textarea.value}set text(t){this.textRef.value=t}constructor(t,n,i){this.onInput=this.onInput.bind(this),this.complete=this.complete.bind(this),this.close=this.close.bind(this),this.suggestion=null,this.textarea=t,this.textRef=n,this.opening=!1,this.onlyType=i??["user","hashtag","emoji","mfmTag","mfmParam"],this.attach()}attach(){this.textarea.addEventListener("input",this.onInput)}detach(){this.textarea.removeEventListener("input",this.onInput),this.close()}onInput(){const t=Number(this.textarea.selectionStart),n=this.text.substring(0,t).split(` 20`).pop(),i=n.lastIndexOf("@"),o=n.lastIndexOf("#"),s=n.lastIndexOf(":"),a=n.lastIndexOf("$"),r=n.lastIndexOf(".");if(Math.max(i,o,s,a)===-1){this.close();return}const l=n.split(/\$\[[a-zA-Z]+/).pop(),d=i!==-1,v=o!==-1,p=r!==-1&&l?.includes(".")&&!l.includes(" "),C=a!==-1&&!p,D=s!==-1&&n.split(/:[a-z0-9_+\-]+:/).pop().includes(":"),m=!D&&s===n.length-1;let k=!1;if(d&&this.onlyType.includes("user")){const h=n.lastIndexOf("@",i-1),b=h===-1?n.substring(i+1):n.substring(h+1);b!==""&&b.match(/^[a-zA-Z0-9_@.]+$/)?(this.open("user",b),k=!0):b===""&&(this.open("user",null),k=!0)}if(v&&!k&&this.onlyType.includes("hashtag")){const h=n.substring(o+1);h.includes(" ")||(this.open("hashtag",h),k=!0)}if(D&&!k&&this.onlyType.includes("emoji")){const h=n.substring(s+1);h.includes(" ")||(this.open("emoji",h),k=!0)}if(m&&!k&&this.onlyType.includes("emoji")){const h=n.substring(n.lastIndexOf(":",n.length-2)+1,n.length-1);h.includes(" ")||(this.open("emojiComplete",h),k=!0)}if(C&&!k&&this.onlyType.includes("mfmTag")){const h=n.substring(a+1);h.includes(" ")||(this.open("mfmTag",h.replace("[","")),k=!0)}if(p&&!k&&this.onlyType.includes("mfmParam")){const h=n.substring(r+1);h.includes(" ")||(this.open("mfmParam",{tag:n.substring(a+2,r),params:h.split(",")}),k=!0)}k||this.close()}async open(t,n){if(t!==this.currentType&&this.close(),this.opening)return;this.opening=!0,this.currentType=t;const i=xv(this.textarea,this.textarea.selectionStart),o=this.textarea.getBoundingClientRect(),s=o.left+i.left-this.textarea.scrollLeft,a=o.top+i.top-this.textarea.scrollTop;if(this.suggestion)this.suggestion.x.value=s,this.suggestion.y.value=a,this.suggestion.q.value=n,this.opening=!1;else{const r=F(s),u=F(a),l=F(n),{dispose:d}=await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BjQe_UHT.js"),__vite__mapDeps([107,2,73,3,4,108]))),{textarea:this.textarea,close:this.close,type:t,q:l,x:r,y:u},{done:v=>{this.complete(v)}});this.suggestion={q:l,x:r,y:u,close:()=>d()},this.opening=!1}}close(){this.suggestion!=null&&(this.suggestion.close(),this.suggestion=null,this.textarea.focus())}complete({type:t,value:n}){this.close();const i=Number(this.textarea.selectionStart);if(t==="user"){const o=this.text,s=o.substring(0,i),a=s.substring(0,s.lastIndexOf("@")),r=o.substring(i),u=n.host===null?n.username:`${n.username}@${fi(n.host)}`;this.text=`${a}@${u} ${r}
20`,Pe(()=>{this.textarea.focus();const l=a.length+(u.length+2);this.textarea.setSelectionRange(l,l)})}else if(t==="hashtag"){const o=this.text,s=o.substring(0,i),a=s.substring(0,s.lastIndexOf("#")),r=o.substring(i);this.text=`${a}#${n} ${r}`,Pe(()=>{this.textarea.focus();const u=a.length+(n.length+2);this.textarea.setSelectionRange(u,u)})}else if(t==="emoji"){const o=this.text,s=o.substring(0,i),a=s.substring(0,s.lastIndexOf(":")),r=o.substring(i);this.text=a+n+r,Pe(()=>{this.textarea.focus();const u=a.length+n.length;this.textarea.setSelectionRange(u,u)})}else if(t==="emojiComplete"){const o=this.text,s=o.substring(0,i),a=s.substring(0,s.lastIndexOf(":",s.length-2)),r=o.substring(i);this.text=a+n+r,Pe(()=>{this.textarea.focus();const u=a.length+n.length;this.textarea.setSelectionRange(u,u)})}else if(t==="mfmTag"){const o=this.text,s=o.substring(0,i),a=s.substring(0,s.lastIndexOf("$")),r=o.substring(i);this.text=`${a}$[${n} ]${r}`,Pe(()=>{this.textarea.focus();const u=a.length+(n.length+3);this.textarea.setSelectionRange(u,u)})}else if(t==="mfmParam"){const o=this.text,s=o.substring(0,i),a=s.substring(0,s.lastIndexOf(".")),r=o.substring(i);this.text=`${a}.${n}${r}`,Pe(()=>{this.textarea.focus();const u=a.length+(n.length+1);this.textarea.setSelectionRange(u,u)})}}}const Tv={class:"_selectable"},Mv=["type","disabled","required","readonly","placeholder","pattern","autocomplete","autocapitalize","spellcheck","inputmode","step","list","min","max"],Iv=["id"],Sv=["value"],Fv=ne({__name:"MkInput",props:{modelValue:{},type:{},required:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},pattern:{},placeholder:{},autofocus:{type:Boolean},autocomplete:{},mfmAutocomplete:{type:[Boolean,Array]},autocapitalize:{},spellcheck:{type:Boolean},inputmode:{},step:{},datalist:{},min:{},max:{},inline:{type:Boolean},debounce:{type:Boolean},manualSave:{type:Boolean},small:{type:Boolean},large:{type:Boolean},code:{type:Boolean}},emits:["change","keydown","enter","update:modelValue"],setup(e,{expose:t,emit:n}){Mo(R=>({v994bfc08:_(k)+"px"}));const i=e,o=n,{modelValue:s,type:a,autofocus:r}=Ai(i),u=F(s.value),l=Math.random().toString(),d=F(!1),v=F(!1),p=F(!1),C=Ee("inputEl"),D=Ee("prefixEl"),m=Ee("suffixEl"),k=i.small?33:i.large?39:36;let h=null;const b=()=>C.value?.focus(),E=R=>{const Q=R;v.value=!0,o("change",Q)},T=R=>{R.isComposing||R.key==="Process"||R.keyCode===229||(o("keydown",R),R.code==="Enter"&&o("enter",R))},P=()=>{i.readonly||i.disabled||(d.value=!0)},H=()=>{v.value=!1,a.value==="number"?o("update:modelValue",typeof u.value=="number"?u.value:parseFloat(u.value??"0")):o("update:modelValue",u.value??"")},L=ju(1e3,H);return le(s,R=>{u.value=R}),le(u,()=>{i.manualSave||(i.debounce?L():H()),p.value=C.value?.validity.badInput??!0}),Sa(()=>{C.value!=null&&(D.value&&D.value.offsetWidth&&(C.value.style.paddingLeft=D.value.offsetWidth+"px"),m.value&&m.value.offsetWidth&&(C.value.style.paddingRight=m.value.offsetWidth+"px"))},100,{immediate:!0,afterMounted:!0}),je(()=>{Pe(()=>{r.value&&b()}),i.mfmAutocomplete&&C.value&&(h=new vi(C.value,u,i.mfmAutocomplete===!0?void 0:i.mfmAutocomplete))}),it(()=>{h&&h.detach()}),t({focus:b,inputEl:C}),(R,Q)=>{const Z=Ue("adaptive-border");return c(),g("div",Tv,[y("div",{class:f(R.$style.label),onClick:b},[Te(R.$slots,"label")],2),y("div",{class:f([R.$style.input,{[R.$style.inline]:e.inline,[R.$style.disabled]:e.disabled,[R.$style.focused]:d.value}])},[y("div",{ref_key:"prefixEl",ref:D,class:f(R.$style.prefix)},[Te(R.$slots,"prefix")],2),ve(y("input",{ref_key:"inputEl",ref:C,"onUpdate:modelValue":Q[0]||(Q[0]=oe=>u.value=oe),class:f([`mk-input-${_(a)}`,R.$style.inputCore,{_monospace:e.code}]),type:_(a),disabled:e.disabled,required:e.required,readonly:e.readonly,placeholder:e.placeholder,pattern:e.pattern,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,spellcheck:e.spellcheck,inputmode:e.inputmode,step:e.step,list:_(l),min:e.min,max:e.max,onFocus:P,onBlur:Q[1]||(Q[1]=oe=>d.value=!1),onKeydown:Q[2]||(Q[2]=oe=>T(oe)),onInput:E},null,42,Mv),[[Pd,u.value],[Z]]),e.datalist?(c(),g("datalist",{key:0,id:_(l)},[(c(!0),g(pe,null,Re(e.datalist,oe=>(c(),g("option",{key:oe,value:oe},null,8,Sv))),128))],8,Iv)):I("",!0),y("div",{ref_key:"suffixEl",ref:m,class:f(R.$style.suffix)},[Te(R.$slots,"suffix")],2)],2),y("div",{class:f(R.$style.caption)},[Te(R.$slots,"caption")],2),e.manualSave&&v.value?(c(),q(dt,{key:0,primary:"",class:f(R.$style.save),onClick:H},{default:J(()=>[Q[3]||(Q[3]=y("i",{class:"ti ti-check"},null,-1)),ie(" "+M(_(w).ts.save),1)]),_:1},8,["class"])):I("",!0)])}}}),Bv="xzokp",Pv="x5HNp",Rv="xbo7Y",Lv="xaxTj",Nv="x2NNv",Ov="xndfW",jv="x7Qq
20w",Vv="xfi6L",zv="x5MWw",Hv="xtB8o",Uv={label:Bv,caption:Pv,input:Rv,inline:Lv,focused:Nv,inputCore:Ov,disabled:jv,prefix:Vv,suffix:zv,save:Hv},qv={$style:Uv},mi=re(Fv,[["__cssModules",qv]]),Wv={style:{"pointer-events":"none"}},Kv={style:{display:"none"}},Jv=ne({__name:"MkSelect",props:{modelValue:{},required:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},placeholder:{},autofocus:{type:Boolean},inline:{type:Boolean},small:{type:Boolean},large:{type:Boolean},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){Mo(h=>({v457873fe:_(D)+"px"}));const n=e,i=t,o=bl(),{modelValue:s,autofocus:a}=Ai(n),r=F(!1),u=F(!1),l=F(null),d=Ee("inputEl"),v=Ee("prefixEl"),p=Ee("suffixEl"),C=Ee("container"),D=n.small?33:n.large?39:36,m=()=>C.value?.focus();Sa(()=>{d.value!=null&&(v.value&&v.value.offsetWidth&&(d.value.style.paddingLeft=v.value.offsetWidth+"px"),p.value&&p.value.offsetWidth&&(d.value.style.paddingRight=p.value.offsetWidth+"px"))},100,{immediate:!0,afterMounted:!0}),je(()=>{Pe(()=>{a.value&&m()})}),le([s,()=>n.items],()=>{if(n.items){let b=null;for(const E of n.items)if(E.type==="group"){for(const T of E.items)if(T.value===s.value){b=T;break}}else if(E.value===s.value){b=E;break}b&&(l.value=b.label);return}const h=b=>{for(const E of b)if(!(typeof E!="object"||E===null||Array.isArray(E))){if(E.type==="optgroup"){const T=E;Array.isArray(T.children)&&h(T.children)}else if(Array.isArray(E.children)){const T=E;Array.isArray(T.children)&&h(T.children)}else if(E.props!=null){const T=E;if(T.props?.value===s.value){l.value=T.children;break}}}};h(o.default())},{immediate:!0,deep:!0});function k(){if(!d.value||u.value||n.readonly||n.disabled)return;r.value=!0,u.value=!0;const h=[];if(n.items)for(const b of n.items)if(b.type==="group"){h.push({type:"label",text:b.label});for(const E of b.items)h.push({text:E.label,active:G(()=>s.value===E.value),action:()=>{i("update:modelValue",E.value)}})}else h.push({text:b.label,active:G(()=>s.value===b.value),action:()=>{i("update:modelValue",b.value)}});else{let b=o.default();m();const E=P=>{h.push({text:P.children,active:G(()=>s.value===P.props?.value),action:()=>{i("update:modelValue",P.props?.value)}})},T=P=>{for(const H of P)if(!(typeof H!="object"||H===null||Array.isArray(H)))if(H.type==="optgroup"){const L=H;h.push({type:"label",text:L.props?.label}),Array.isArray(L.children)&&T(L.children)}else if(Array.isArray(H.children)){const L=H;Array.isArray(L.children)&&T(L.children)}else H.props==null||E(H)};T(b)}st(h,C.value,{width:C.value?.offsetWidth,onClosing:()=>{u.value=!1}})}return(h,b)=>{const E=Ue("adaptive-border");return c(),g("div",null,[y("div",{class:f(h.$style.label),onClick:m},[Te(h.$slots,"label")],2),y("div",{ref_key:"container",ref:C,tabindex:"0",class:f([h.$style.input,{[h.$style.inline]:e.inline,[h.$style.disabled]:e.disabled,[h.$style.focused]:r.value||u.value}]),onFocus:b[0]||(b[0]=T=>r.value=!0),onBlur:b[1]||(b[1]=T=>r.value=!1),onMousedown:ge(k,["prevent"]),onKeydown:so(k,["space","enter"])},[y("div",{ref_key:"prefixEl",ref:v,class:f(h.$style.prefix)},[Te(h.$slots,"prefix")],2),ve((c(),g("div",{ref_key:"inputEl",ref:d,tabindex:"-1",class:f(h.$style.inputCore),onMousedown:ge(()=>{},["prevent"]),onKeydown:ge(()=>{},["prevent"])},[y("div",Wv,M(l.value??""),1),y("div",Kv,[Te(h.$slots,"default")])],34)),[[E]]),y("div",{ref_key:"suffixEl",ref:p,class:f(h.$style.suffix)},[y("i",{class:f(["ti ti-chevron-down",[h.$style.chevron,{[h.$style.chevronOpening]:u.value}]])},null,2)],2)],34),y("div",{class:f(h.$style.caption)},[Te(h.$slots,"caption")],2)])}}}),Gv="x85Kr",Yv="xlwzG",Xv="xlc7p",Qv="xCVUs",Zv="xnYBl",eg="xwGUJ",tg="xc0tk",ng="x98ie",ig="xyxj5",og="xjbJ1",sg="x9iNl",ag="xwE7z",rg={label:Gv,caption:Yv,input:Xv,inline:Qv,focused:Zv,inputCore:eg,disabled:tg,prefix:ng,suffix:ig,save:og,chevron:sg,chevronOpening:ag},lg={$style:rg},Gs=re(Jv,[["__cssModules",lg]]),ug=ne({__name:"MkSwitch.button",props:{checked:{type:[Boolean,Object]},disabled:{type:[Boolean,Object],default:!1}},emits:["toggle"],setup(e,{emit:t}){const n=e,i=t,o=Ai(n).checked,s=()=>{i("toggle")};return(a,r)=>{const u=Ue("tooltip");return ve((c(),g("span",{class:f({[a.$style.button]:!0,[a.$style.buttonChecked]:_(o),[a.$style.buttonDisabled]:n.disabled}),"data-cy-switch-toggle":"",onClick:ge(s,["prevent","stop"])},[y("div",{class:f({[a.$style.knob]:!0,[a.$style.knobChecked]:_(o)})},null,2)],2)),[[u,_(o)?_(w).ts.itsOn:_(w).ts.itsOff]])}}}),cg="xbIy7",dg="xezk7",fg="x73Cp",mg="x3kAx",hg="xo7KL",pg={button:cg,buttonChecked:dg,buttonDisabled:fg,knob:mg,knobChecked:hg},vg={$style:pg},Ys=re(ug,[["__cssModules",vg]]),gg=["disabled"],yg=ne({__name:"MkSwitch",props:{modelValue:{type:[Boolean,Object]},disabled:{type:Boolean},helpText:{},noBody:{type:Boolean}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=e,i=t,o=Ai(n).modelValue,s=()=>{n.disabled||(i("update:modelValue",!o.value),i("change",!o.value))};return(a,r)=>{const u=Ue("tooltip");return c(),g("div",{class:f([a.$style.root,{[a.$style.disabled]:e.disabled}])}
20,[y("input",{ref:"input",class:f(["mk-input-checkbox",a.$style.input]),type:"checkbox",disabled:e.disabled,onClick:s},null,10,gg),W(Ys,{class:f(a.$style.toggle),checked:_(o),disabled:e.disabled,onToggle:s},null,8,["class","checked","disabled"]),e.noBody?I("",!0):(c(),g("span",{key:0,class:f(a.$style.body)},[y("span",{class:f(a.$style.label)},[y("span",{onClick:s},[Te(a.$slots,"label"),Te(a.$slots,"default")]),e.helpText?ve((c(),g("span",{key:0,class:f(["_button _help",a.$style.help])},[...r[0]||(r[0]=[y("i",{class:"ti ti-help-circle"},null,-1)])],2)),[[u,e.helpText,"dialog"]]):I("",!0)],2),y("p",{class:f(a.$style.caption)},[Te(a.$slots,"caption")],2)],2))],2)}}}),wg="x1kPZ",bg="x9dHI",_g="xqcs3",kg="x6eY1",Dg="xEZjz",Eg="x9TaQ",Cg="xDJmg",Ag="xekRM",$g="xedBk",xg={root:wg,button:bg,disabled:_g,input:kg,toggle:Dg,body:Eg,label:Cg,caption:Ag,help:$g},Tg={$style:xg},Vu=re(yg,[["__cssModules",Tg]]),Mg={weekday:"narrow",era:"narrow",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"};function Ig(e,t){return t.replace(/\{\{(\w+)(:(\w+))?\}\}/g,(n,i,o,s)=>["weekday","era","year","month","day","hour","minute","second","timeZoneName"].includes(i)?e.toLocaleString(window.navigator.language,{[i]:s||Mg[i]}):n)}function Qi(e,t){return t.replace(/yyyy/g,e.getFullYear().toString()).replace(/yy/g,e.getFullYear().toString().slice(-2)).replace(/MMMM/g,e.toLocaleString(window.navigator.language,{month:"long"})).replace(/MMM/g,e.toLocaleString(window.navigator.language,{month:"short"})).replace(/MM/g,`0${e.getMonth()+1}`.slice(-2)).replace(/M/g,(e.getMonth()+1).toString()).replace(/dd/g,`0${e.getDate()}`.slice(-2)).replace(/d/g,e.getDate().toString()).replace(/HH/g,`0${e.getHours()}`.slice(-2)).replace(/H/g,e.getHours().toString()).replace(/hh/g,`0${e.getHours()%12||12}`.slice(-2)).replace(/h/g,(e.getHours()%12||12).toString()).replace(/mm/g,`0${e.getMinutes()}`.slice(-2)).replace(/m/g,e.getMinutes().toString()).replace(/ss/g,`0${e.getSeconds()}`.slice(-2)).replace(/s/g,e.getSeconds().toString()).replace(/tt/g,e.getHours()>=12?"PM":"AM")}function Hr(e,t){return t.replace(/\[(([^\[]|\[\])*)\]|(([yMdHhmst])\4{0,3})/g,(n,i,o,s)=>i?Ig(e,i):s?Qi(e,s):n)}const Sg={day:864e5,hour:36e5,ms:1};function Fg(e,t,n="ms"){return new Date(e.getTime()+t*Sg[n])}const Bg={class:"zmdxowus"},Pg={key:0,class:"caution"},Rg=["onClick"],Lg={value:"infinite"},Ng={value:"at"},Og={value:"after"},jg={key:0},Vg={key:1},zg={value:"second"},Hg={value:"minute"},Ug={value:"hour"},qg={value:"day"},Wg=ne({__name:"MkPollEditor",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,o=F(n.modelValue.choices),s=F(n.modelValue.multiple),a=F("infinite"),r=F(Qi(Fg(new Date,1,"day"),"yyyy-MM-dd")),u=F("00:00"),l=F(0),d=F("second");if(n.modelValue.expiresAt){a.value="at";const m=new Date(n.modelValue.expiresAt);r.value=Qi(m,"yyyy-MM-dd"),u.value=Qi(m,"HH:mm")}else typeof n.modelValue.expiredAfter=="number"?(a.value="after",l.value=n.modelValue.expiredAfter/1e3):a.value="infinite";function v(m,k){o.value[m]=k}function p(){o.value.push("")}function C(m){o.value=o.value.filter((k,h)=>h!==m)}function D(){const m=()=>new Date(`${r.value} ${u.value}`).getTime(),k=()=>{let h=Number.parseInt(l.value.toString());switch(d.value){case"day":h*=24;case"hour":h*=60;case"minute":h*=60;case"second":return h*=1e3;default:return null}};return{choices:o.value,multiple:s.value,expiresAt:a.value==="at"?m():null,expiredAfter:a.value==="after"?k():null}}return le([o,s,a,r,u,l,d],()=>i("update:modelValue",D()),{deep:!0}),(m,k)=>(c(),g("div",Bg,[o.value.length<2?(c(),g("p",Pg,[k[6]||(k[6]=y("i",{class:"ti ti-alert-triangle"},null,-1)),ie(M(_(w).ts._poll.noOnlyOneChoice),1)])):I("",!0),y("ul",null,[(c(!0),g(pe,null,Re(o.value,(h,b)=>(c(),g("li",{key:b},[W(mi,{class:"input",small:"",modelValue:h,placeholder:_(w).tsx._poll.choiceN({n:b+1}),"onUpdate:modelValue":E=>v(b,E)},null,8,["modelValue","placeholder","onUpdate:modelValue"]),y("button",{class:"_button",onClick:E=>C(b)},[...k[7]||(k[7]=[y("i",{class:"ti ti-x"},null,-1)])],8,Rg)]))),128))]),o.value.length<10?(c(),q(dt,{key:1,class:"add",onClick:p},{default:J(()=>[ie(M(_(w).ts.add),1)]),_:1})):(c(),q(dt,{key:2,class:"add",disabled:""},{default:J(()=>
20[ie(M(_(w).ts._poll.noMore),1)]),_:1})),W(Vu,{modelValue:s.value,"onUpdate:modelValue":k[0]||(k[0]=h=>s.value=h)},{default:J(()=>[ie(M(_(w).ts._poll.canMultipleVote),1)]),_:1},8,["modelValue"]),y("section",null,[y("div",null,[W(Gs,{modelValue:a.value,"onUpdate:modelValue":k[1]||(k[1]=h=>a.value=h),small:""},{label:J(()=>[ie(M(_(w).ts._poll.expiration),1)]),default:J(()=>[y("option",Lg,M(_(w).ts._poll.infinite),1),y("option",Ng,M(_(w).ts._poll.at),1),y("option",Og,M(_(w).ts._poll.after),1)]),_:1},8,["modelValue"]),a.value==="at"?(c(),g("section",jg,[W(mi,{modelValue:r.value,"onUpdate:modelValue":k[2]||(k[2]=h=>r.value=h),small:"",type:"date",class:"input"},{label:J(()=>[ie(M(_(w).ts._poll.deadlineDate),1)]),_:1},8,["modelValue"]),W(mi,{modelValue:u.value,"onUpdate:modelValue":k[3]||(k[3]=h=>u.value=h),small:"",type:"time",class:"input"},{label:J(()=>[ie(M(_(w).ts._poll.deadlineTime),1)]),_:1},8,["modelValue"])])):a.value==="after"?(c(),g("section",Vg,[W(mi,{modelValue:l.value,"onUpdate:modelValue":k[4]||(k[4]=h=>l.value=h),small:"",type:"number",min:"1",class:"input"},{label:J(()=>[ie(M(_(w).ts._poll.duration),1)]),_:1},8,["modelValue"]),W(Gs,{modelValue:d.value,"onUpdate:modelValue":k[5]||(k[5]=h=>d.value=h),small:""},{default:J(()=>[y("option",zg,M(_(w).ts._time.second),1),y("option",Hg,M(_(w).ts._time.minute),1),y("option",Ug,M(_(w).ts._time.hour),1),y("option",qg,M(_(w).ts._time.day),1)]),_:1},8,["modelValue"])])):I("",!0)])])]))}}),Kg=re(Wg,[["__scopeId","data-v-368c4295"]]);function Jg(e,t){return e.cw!=null?!1:!!(e.text!=null&&(e.text.includes("$[x2")||e.text.includes("$[x3")||e.text.includes("$[x4")||e.text.includes("$[scale")||e.text.split(` 21`).length>9||e.text.length>500)||t.length>=4||e.files!=null&&e.files.length>=5)}const Zn=(e,t=0)=>{if(e==null)return"?";const n=["B","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];if(e===0)return"0";const i=e<0;i&&(e=-e);const o=Math.floor(Math.log(e)/Math.log(1024));return(i?"-":"")+(e/Math.pow(1024,o)).toFixed(t).replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")+(n[o]??`e+${o*3}B`)};function zu(e,t){const n={textFormat:"colon",enableSeconds:!0,enableMs:!1,...t},i={};let o=Math.floor(e/1e3);const s=e-o*1e3,a=Math.floor(o/3600);i.h=ji(a),o%=3600;const r=Math.floor(o/60);return i.m=ji(r),o%=60,o=o%60,i.s=ji(o),i.ms=ji(Math.floor(s/10)),n.textFormat==="locale"&&(i.h+=w.ts._time.hour,i.m+=w.ts._time.minute,i.s+=w.ts._time.second),[i.h.startsWith("00")?void 0:i.h,i.m,n.enableSeconds?i.s:void 0].filter(u=>u!==void 0).join(n.textFormat==="colon"?":":" ")+(n.enableMs?n.textFormat==="colon"?`.${i.ms}`:` ${i.ms}`:"")}function ji(e){return e.toString().padStart(2,"0")}const Gg=["value"],Yg=ne({__name:"MkMediaRange",props:wi({buffer:{default:void 0},sliderBgWhite:{type:Boolean,default:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:wi(["dragEnded"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=yi(e,"modelValue"),o=G({get:()=>typeof i.value=="number"?i.value:parseFloat(i.value),set:s=>{i.value=s}});return(s,a)=>(c(),g("div",{style:Ge(e.sliderBgWhite?"--sliderBg: rgba(255,255,255,.25);":"--sliderBg: var(--MI_THEME-scrollbarHandle);")},[y("div",{class:f(s.$style.controlsSeekbar)},[e.buffer!==void 0?(c(),g("progress",{key:0,class:f(s.$style.buffer),value:isNaN(e.buffer)?0:e.buffer,min:"0",max:"1"},M(Math.round(e.buffer*100))+"% buffered",11,Gg)):I("",!0),ve(y("input",{"onUpdate:modelValue":a[0]||(a[0]=r=>i.value=r),class:f(["mk-input-range",s.$style.seek]),style:Ge(`--value: ${o.value*100}%;`),type:"range",min:"0",max:"1",step:"any",onChange:a[1]||(a[1]=r=>n("dragEnded",o.value))},null,38),[[qn,i.value]])],2)],4))}}),Xg="xtPd0",Qg="xtPDf",Zg="xzx3O",e0={controlsSeekbar:Xg,seek:Qg,buffer:Zg},t0={$style:e0},bo=re(Yg,[["__cssModules",t0]]);async function Pn(e={}){if(S)return;let t;throw e.openOnRemote!=null&&(he.federation!=="none"||e.openOnRemote.type==="share")&&(t=e.openOnRemote),await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.VfB1ylty.js"),__vite__mapDeps([109,110,2,111,112,113,3,4,114]))),{autoSet:!0,message:e.message??(t?w.ts.signinOrContinueOnRemote:w.ts.signinRequired),openOnRemote:t},{cancelled:()=>{e.path&&(window.location.href=e.path)}},"closed"),new Error("signin required")}const Hu="sensitiveContentConsent";function n0(){const e=ee.getItem(Hu);return e==="true"?!0:e==="false"?!1:null}const Xe=F(n0());function L5(e){const t=e?"true":"false";ee.setItem(Hu,t),Xe.value=e}async function Uu(){return await new Promise(async e=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.3g71R6PO.js"),__vite__mapDeps([115,2,80,81,3,4,116]))),{},{decided:t=>{e(t)}},"closed")})}async function Fi(){return Xe.value!==null?Xe.value:await Uu()}async function N5(){return await Uu()}const i0={key:0,style:{display:"block"}},o0={key:1,style:{display:"block"}},s0={style:{display:"block"}},a0=["src"],r0={key:2},l0=["src"],u0={key:0,class:"ti-filled ti-filled-player-pause"}
21,c0={key:1,class:"ti-filled ti-filled-player-play"},d0={key:0,class:"ti ti-volume-3"},f0={key:1,class:"ti ti-volume"},m0=ne({__name:"MkMediaAudio",props:{audio:{},user:{}},setup(e){const t=de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CNLd_FN1.js"),__vite__mapDeps([117,2,3,4,118]))),n=e,i=G(()=>n.audio.isSensitive&&Xe.value===!1),o={up:{allowRepeat:!0,callback:()=>{s()&&r.value&&(oe.value=Math.min(oe.value+.1,1))}},down:{allowRepeat:!0,callback:()=>{s()&&r.value&&(oe.value=Math.max(oe.value-.1,0))}},left:{allowRepeat:!0,callback:()=>{s()&&r.value&&(r.value.currentTime=Math.max(r.value.currentTime-5,0))}},right:{allowRepeat:!0,callback:()=>{s()&&r.value&&(r.value.currentTime=Math.min(r.value.currentTime+5,r.value.duration))}},space:()=>{s()&&j()}};function s(){return a.value?a.value===window.document.activeElement||a.value.contains(window.document.activeElement):!1}const a=Ee("playerEl"),r=Ee("audioEl"),u=F();function l(){return A.s.nsfw==="force"||A.s.dataSaver.media||n.audio.isSensitive&&Xe.value!==!0?!0:n.audio.isSensitive&&A.s.nsfw!=="ignore"}const d=F(l()),v=F(!1);function p(K){const $=[{type:"switch",text:w.ts._mediaControls.loop,icon:"ti ti-repeat",ref:ue},{type:"radio",text:w.ts._mediaControls.playbackRate,icon:"ti ti-clock-play",ref:be,options:{"0.25x":.25,"0.5x":.5,"0.75x":.75,"1.0x":1,"1.25x":1.25,"1.5x":1.5,"2.0x":2}},{type:"divider"},{text:w.ts.hide,icon:"ti ti-eye-off",action:()=>{d.value=!0}}];(S?.id===n.audio.userId||xt)&&$.push({type:"divider"}),xt&&($.push({text:n.audio.isSensitive?w.ts.unmarkAsSensitive:w.ts.markAsSensitive,icon:n.audio.isSensitive?"ti ti-eye":"ti ti-eye-exclamation",danger:!0,action:()=>D(n.audio)}),S?.id!==n.audio.userId&&$.push({type:"link",text:w.ts._fileViewer.title,icon:"ti ti-info-circle",to:`/admin/file/${n.audio.id}`}));const O=[];S?.id===n.audio.userId&&O.push({type:"link",text:w.ts._fileViewer.title,icon:"ti ti-info-circle",to:`/my/drive/file/${n.audio.id}`}),xt&&O.push({type:"link",text:w.ts.moderation,icon:"ti ti-photo-exclamation",to:`/admin/file/${n.audio.id}`}),O.length>0&&$.push({type:"divider"},...O),A.s.devMode&&$.push({type:"divider"},{icon:"ti ti-hash",text:w.ts.copyFileId,action:()=>{Dt(n.audio.id)}}),v.value=!0,st($,K.currentTarget??K.target,{align:"right",onClosing:()=>{v.value=!1}})}async function C(K){if(d.value){if(K.preventDefault(),K.stopPropagation(),n.audio.isSensitive&&!S){await Pn();return}if(!(n.audio.isSensitive&&Xe.value!==!0&&!await Fi())){if(n.audio.isSensitive&&A.s.confirmWhenRevealingSensitiveMedia){const{canceled:$}=await ft({type:"question",text:w.ts.sensitiveMediaRevealConfirm});if($)return}d.value=!1}}}async function D(K){const{canceled:$}=await ft({type:"warning",text:K.isSensitive?w.ts.unmarkAsSensitiveConfirm:w.ts.markAsSensitiveConfirm});$||oi("drive/files/update",{fileId:K.id,isSensitive:!K.isSensitive})}const m=F(!1),k=F(!1),h=F(!1),b=F(!1),E=F(0),T=F(0),P=F(null),H=F(null),L=F(null),R=F(null),Q=F(null),Z=G({get:()=>E.value/T.value||0,set:K=>{r.value&&(r.value.currentTime=K*T.value/1e3)}}),oe=F(.25),be=F(1),ue=F(!1),ce=F(0),Fe=G(()=>r.value?ce.value/r.value.duration:0);function j(){!k.value||!r.value||(H.value||(P.value=new(window.AudioContext||window.webkitAudioContext),H.value=P.value.createMediaElementSource(r.value),R.value=P.value.createGain(),L.value=P.value.createGain(),Q.value=P.value.createAnalyser(),H.value.connect(R.value),R.value.connect(Q.value),Q.value.connect(L.value),L.value.connect(P.value.destination),Q.value.fftSize=2048,R.value.gain.setValueAtTime(.8,P.value.currentTime),L.value.gain.setValueAtTime(oe.value,P.value.currentTime)),h.value?(r.value.pause(),u.value?.pauseAnimation(),h.value=!1):(r.value.play(),u.value?.resumeAnimation(),h.value=!0,m.value=!0))}function me(){oe.value===0?oe.value=.25:oe.value=0}let Me=!1,X=null,te;function se(){Me||(Me=!0,te=le(r,()=>{if(r.value){let K=function(){if(r.value){try{ce.value=r.value.buffered.end(0)}catch{ce.value=0}E.value=r.value.currentTime*1e3,r.value.loop!==ue.value&&(ue.value=r.value.loop)}X=window.requestAnimationFrame(K)};k.value=!0,K(),r.value.addEventListener("play",()=>{b.value=!0}),r.value.addEventListener("pause",()=>{b.value=!1,h.value=!1}),r.value.addEventListener("ended",()=>{m.value=!1,b.value=!1,h.value=!1,u.value?.pauseAnimation()}),T.value=r.value.duration*1e3,r.value.addEventListener("durationchange",()=>{r.value&&(T.value=r.value.duration*1e3)}),L.value?.gain.setValueAtTime(oe.value,P.value?.currentTime)}},{immediate:!0}))}return le(oe,K=>{r.value&&L.value?.gain.setValueAtTime(K,P.value?.currentTime)}),le(be,K=>{r.value&&(r.value.playbackRate=K)}),le(ue,K=>{r.value&&(r.value.loop=K)}),je(()=>{se()}),Kt(()=>{se()}),ti(()=>{k.value=!1,h.value=!1,b.value=!1,E.value=0,T.value=0,ce.value=0,d.value=l(),te(),Me=!1,X&&(window.cancelAnimationFrame(X),X=null)}),(K,$)=>{const O=Ue("hotkey");return i.value?I("",!0):ve((c(),g("div",{key:0,ref_key:"playerEl",ref:a,tabindex:"0",class:f([K.$style.audioContainer,e.audio.isSensitive&&_(A).s.highlightSensitiveMedia&&K.$style.sensitive]),onContextmenu:$[3]||($[3]=ge(()=>{},["stop"])),onKeydown:$[4]||($[4]=ge(()=>{},["stop"]))},[d.value?(c(),g("button",{key:0,class:f(K.$style.hidden),onClick:C},[y("div",{class:f(K.$style.hiddenTextWrapper)},[e.audio.isSensitive?(c(),g("b",i0,[$[5]||($[5]=y("i",{class:"ti ti-eye-exclamation"},null,-1)),ie(" "+M(_(w).ts.sensitive)+M(_(A).s.dataSaver.media?` (${_(w).ts.audio}${e.audio.size?" "+_(Zn)(e.audio.size):""})`:""),1)])):(c(),g("b",o0,[$[6]||($[6]=y("i",{class:"ti ti-music"},null,-1)),ie(" "+M(_(A).s.dataSaver.media&&e.audio.size?_(Zn)(e.audio.size):_(w).ts.audio),1)])),y("span",s0,M(_(w).ts.clickToShow),1)],2)],2)):_(A).s.useNativeUiForVideoAudioPlayer?(c(),g("div",{key:1,class:f(K.$style.nativeAudioContainer)},[y("audio",{ref_key:"audioEl",ref:r,preload:"metadata",crossorigin:"anonymous",controls:"",class:f(K.$style.nativeAudio),onKeydown:$[0]||($[0]=ge(()=>{},["prevent"]))},[y("source",{src:e.audio.url},null,8,a0)],34)],2)):(c(),g("div",r0,[e.user?(c(),q(_(t),{key:0,ref_key:"audioVisualizer",ref:u,audioEl:r.value,analyser:Q.value,user:e.user,profileImage:e.user.avatarUrl},null,8,["audioEl","analyser","user","profileImage"])):I("",!0),y("div",{class:f(K.$style.audioControl
21s)},[y("audio",{ref_key:"audioEl",ref:r,preload:"metadata",crossorigin:"anonymous",onKeydown:ge(()=>{},["prevent"])},[y("source",{src:e.audio.url},null,8,l0)],544),y("div",{class:f([K.$style.controlsChild,K.$style.controlsLeft])},[y("button",{class:f(["_button",["_button",K.$style.controlButton]]),tabindex:"-1",onClick:ge(j,["prevent","stop"])},[h.value?(c(),g("i",u0)):(c(),g("i",c0))],2)],2),y("div",{class:f([K.$style.controlsChild,K.$style.controlsRight])},[y("button",{class:f(["_button",["_button",K.$style.controlButton]]),tabindex:"-1",onClick:ge(p,["prevent","stop"])},[...$[7]||($[7]=[y("i",{class:"ti ti-settings"},null,-1)])],2)],2),y("div",{class:f([K.$style.controlsChild,K.$style.controlsTime])},M(_(zu)(E.value)),3),y("div",{class:f([K.$style.controlsChild,K.$style.controlsVolume])},[y("button",{class:f(["_button",["_button",K.$style.controlButton]]),tabindex:"-1",onClick:ge(me,["prevent","stop"])},[oe.value===0?(c(),g("i",d0)):(c(),g("i",f0))],2),W(bo,{modelValue:oe.value,"onUpdate:modelValue":$[1]||($[1]=Le=>oe.value=Le),class:f(K.$style.volumeSeekbar)},null,8,["modelValue","class"])],2),W(bo,{modelValue:Z.value,"onUpdate:modelValue":$[2]||($[2]=Le=>Z.value=Le),class:f(K.$style.seekbarRoot),buffer:Fe.value},null,8,["modelValue","class","buffer"])],2)]))],34)),[[O,o]])}}}),h0="x6Ija",p0="xutdY",v0="xtlBI",g0="xri4E",y0="xEb1w",w0="xf0pQ",b0="xfV8T",_0="xF43l",k0="xxEXD",D0="xxtkE",E0="xlwDE",C0="xBCFu",A0="xap6W",$0="x7bst",x0="xnbqR",T0={audioContainer:h0,sensitive:p0,hidden:v0,hiddenTextWrapper:g0,audioControls:y0,controlsChild:w0,controlButton:b0,controlsLeft:_0,controlsRight:k0,controlsTime:D0,controlsVolume:E0,volumeSeekbar:C0,seekbarRoot:A0,nativeAudioContainer:$0,nativeAudio:x0},M0={$style:T0},I0=re(m0,[["__cssModules",M0]]),S0=["href","title","download"],F0=ne({__name:"MkMediaBanner",props:{media:{},user:{}},setup(e){const t=e,n=G(()=>t.media.isSensitive&&Xe.value===!1);function i(){return A.s.nsfw==="force"||A.s.dataSaver.media||t.media.isSensitive&&Xe.value!==!0?!0:t.media.isSensitive&&A.s.nsfw!=="ignore"}const o=F(i());async function s(a){if(o.value){if(a.preventDefault(),a.stopPropagation(),t.media.isSensitive&&!S){await Pn();return}if(!(t.media.isSensitive&&Xe.value!==!0&&!await Fi())){if(t.media.isSensitive&&A.s.confirmWhenRevealingSensitiveMedia){const{canceled:r}=await ft({type:"question",text:w.ts.sensitiveMediaRevealConfirm});if(r)return}o.value=!1}}}return(a,r)=>n.value?I("",!0):(c(),g("div",{key:0,class:f(a.$style.root)},[e.media.isSensitive&&o.value?(c(),g("div",{key:0,class:f(a.$style.sensitive),onClick:s},[r[0]||(r[0]=y("span",{style:{"font-size":"1.6em"}},[y("i",{class:"ti ti-alert-triangle"})],-1)),y("b",null,M(_(w).ts.sensitive),1),y("span",null,M(_(w).ts.clickToShow),1)],2)):e.media.type.startsWith("audio")&&e.media.type!=="audio/midi"?(c(),q(I0,{key:1,audio:e.media,user:e.user},null,8,["audio","user"])):(c(),g("a",{key:2,class:f(a.$style.download),href:e.media.url,title:e.media.name,download:e.media.name},[r[1]||(r[1]=y("span",{style:{"font-size":"1.6em"}},[y("i",{class:"ti ti-download"})],-1)),y("b",null,M(e.media.name),1)],10,S0))],2))}}),B0="xnlnd",P0="xhOcC",R0="xaXVa",L0="xhZFh",N0={root:B0,download:P0,sensitive:R0,audio:L0},O0={$style:N0},j0=re(F0,[["__cssModules",O0]]);function Ur(e){const t=Object.entries(e).filter(([,n])=>Array.isArray(n)?n.length:n!==void 0).reduce((n,[i,o])=>(n[i]=o,n),{});return Object.entries(t).map(n=>`${n[0]}=${encodeURIComponent(n[1])}`).join("&")}function Xs(e,t){return`${e}${/\?/.test(e)?e.endsWith("?")?"":"&":"?"}${t}`}function O5(e){const t=e.match(/^(?:https?:)?(?:\/\/)?(?:[^@\n]+@)?([^:\/\n]+)/im);return t?t[1]:null}function qr(e){return e.startsWith("https://")?e.slice(8):e.startsWith("https%3A%2F%2F")?e.slice(14):e}function qu(e,t){try{const n=new URL(t),i=new URL(e);return i.origin===n.origin?i.pathname+i.search+i.hash:e}catch{return""}}class Fa{serverMetadata;url;constructor(t,n){this.serverMetadata=t,this.url=n}getProxiedImageUrl(t,n,i=!1,o=!1){const s=`${this.url}/proxy`;let a=t;if(t.startsWith(this.serverMetadata.mediaProxy+"/")||t.startsWith("/proxy/")||t.startsWith(s+"/")){const r=new
21URL(t).searchParams.get("url");r?a=r:t.startsWith(this.serverMetadata.mediaProxy+"/")?a=t.slice(this.serverMetadata.mediaProxy.length+1):t.startsWith("/proxy/")?a=t.slice(7):t.startsWith(s+"/")&&(a=t.slice(s.length+1))}return Xs(`${i?s:this.serverMetadata.mediaProxy}/${n==="preview"?"preview":"image"}/${encodeURIComponent(qr(a))}`,Ur({...o?{}:{fallback:"1"},...n?{[n]:"1"}:{},...i?{origin:"1"}:{}}))}getProxiedImageUrlNullable(t,n){return t==null?null:this.getProxiedImageUrl(t,n)}getStaticImageUrl(t){const n=t.startsWith("http")?new URL(t):new URL(t,this.url);return n.href.startsWith(`${this.url}/emoji/`)||n.href.startsWith(this.serverMetadata.mediaProxy+"/")?(n.searchParams.set("static","1"),n.href):Xs(`${this.serverMetadata.mediaProxy}/static/${encodeURIComponent(qr(n.href))}`,Ur({static:"1"}))}}let nn=null;function V0(...e){return nn==null&&(nn=new Fa(he,mt)),nn.getProxiedImageUrl(...e)}function j5(...e){return nn==null&&(nn=new Fa(he,mt)),nn.getProxiedImageUrlNullable(...e)}function Di(...e){return nn==null&&(nn=new Fa(he,mt)),nn.getStaticImageUrl(...e)}const z0={key:0,style:{display:"block"}},H0={key:1,style:{display:"block"}},U0={key:2,style:{display:"block"}},q0=["title"],W0=ne({__name:"MkMediaImage",props:{image:{},raw:{type:Boolean},cover:{type:Boolean,default:!1},disableImageLink:{type:Boolean,default:!1},controls:{type:Boolean,default:!0}},setup(e){const t=e;function n(){return A.s.nsfw==="force"||A.s.dataSaver.media||t.image.isSensitive&&Xe.value!==!0?!0:t.image.isSensitive&&A.s.nsfw!=="ignore"}const i=F(n()),o=G(()=>t.image.isSensitive&&Xe.value===!1),s=G(()=>t.raw||A.s.loadRawImages?t.image.url:A.s.disableShowingAnimatedImages?Di(t.image.url):t.image.thumbnailUrl);function a(l){const d=[];d.push({text:w.ts.hide,icon:"ti ti-eye-off",action:()=>{i.value=!0}}),S&&S.id!==t.image.userId&&d.push({text:w.ts.saveThisFile,icon:"ti ti-cloud-upload",action:()=>{HA(!1).then(async p=>{Ae("drive/files/upload-from-url",{url:t.image.url,folderId:p[0]?.id})})}}),(S?.id===t.image.userId||xt)&&d.push({type:"divider"}),xt&&(d.push({text:t.image.isSensitive?w.ts.unmarkAsSensitive:w.ts.markAsSensitive,icon:t.image.isSensitive?"ti ti-eye":"ti ti-eye-exclamation",danger:!0,action:()=>u(t.image)}),S?.id!==t.image.userId&&d.push({type:"link",text:w.ts._fileViewer.title,icon:"ti ti-info-circle",to:`/admin/file/${t.image.id}`}));const v=[];S?.id===t.image.userId&&v.push({type:"link",text:w.ts._fileViewer.title,icon:"ti ti-info-circle",to:`/my/drive/file/${t.image.id}`}),xt&&v.push({type:"link",text:w.ts.moderation,icon:"ti ti-photo-exclamation",to:`/admin/file/${t.image.id}`}),v.length>0&&d.push({type:"divider"},...v),A.s.devMode&&d.push({type:"divider"},{icon:"ti ti-hash",text:w.ts.copyFileId,action:()=>{Dt(t.image.id)}}),st(d,l.currentTarget??l.target)}async function r(l){if(!(!t.controls||!i.value)){if(l.preventDefault(),l.stopPropagation(),t.image.isSensitive&&!S){await Pn();return}if(!(t.image.isSensitive&&Xe.value!==!0&&!await Fi())){if(t.image.isSensitive&&A.s.confirmWhenRevealingSensitiveMedia){const{canceled:d}=await ft({type:"question",text:w.ts.sensitiveMediaRevealConfirm});if(d)return}i.value=!1}}}function u(l){oi("drive/files/update",{fileId:l.id,isSensitive:!l.isSensitive})}return le(()=>t.image,()=>{i.value=n()},{deep:!0,immediate:!0}),(l,d)=>o.value?I("",!0):(c(),g("div",{key:0,class:f([i.value?l.$style.hidden:l.$style.visible,e.image.isSensitive&&_(A).s.highlightSensitiveMedia&&l.$style.sensitive]),onClick:r},[(c(),q(kt(e.image.isSensitive&&!_(S)||e.disableImageLink?"div":"a"),ha(Rd(e.image.isSensitive&&!_(S)||e.disableImageLink?{title:e.image.name,class:l.$style.imageContainer}:{title:e.image.name,class:l.$style.imageContainer,href:e.image.url,style:"cursor: zoom-in;"})),{default:J(()=>[W(jo,{hash:e.image.blurhash,src:e.image.isSensitive&&!_(S)||_(A).s.dataSaver.media&&i.value?null:s.value,forceBlurhash:i.value,cover:i.value||e.cover,alt:e.image.comment||e.image.name,title:e.image.comment||e.image.name,width:e.image.properties.width,height:e.image.properties.height,style:Ge(i.value?"filter: brightness(0.7);":null)},null,8,["hash","src","forceBlurhash","cover","alt","title","width","height","style"])]),_:1},16)),i.value?(c(),g("div",{key:0,class:f(l.$style.hiddenText)},[y("div",{class:f(l.$style.hiddenTextWrapper)},[e.image.isSensitive?(c(),g("b",z0,[d[1]||(d[1]=y("i",{class:"ti ti-eye-exclamation"},null,-1)),ie(" "+M(_(w).ts.sensitive)+M(_(A).s.dataSaver.media?` (${_(w).ts.image}${e.image.size?" "+_(Zn)(e.image.size):""})`:""),1)])):(c(),g("b",H0,[d[2]||(d[2]=y("i",{class:"ti ti-photo"},null,-1)),ie(" "+M(_(A).s.dataSaver.media&&e.image.size?_(Zn)(e.image.size):_(w).ts.image),1)])),e.controls?(c(),g("span",U0,M(_(w).ts.clickToShow),1)):I("",!0)],2)],2)):e.controls?(c(),g(pe,{key:1},[y("div",{class:f(l.$style.indicators)}
21,[["image/gif","image/apng"].includes(e.image.type)?(c(),g("div",{key:0,class:f(l.$style.indicator)},"GIF",2)):I("",!0),e.image.comment?(c(),g("div",{key:1,class:f(l.$style.indicator)},"ALT",2)):I("",!0),e.image.isSensitive?(c(),g("div",{key:2,class:f(l.$style.indicator),style:{color:"var(--MI_THEME-warn)"},title:_(w).ts.sensitive},[...d[3]||(d[3]=[y("i",{class:"ti ti-eye-exclamation"},null,-1)])],10,q0)):I("",!0)],2),y("button",{class:f([l.$style.menu,"_button"]),onClick:ge(a,["prevent","stop"])},[...d[4]||(d[4]=[y("i",{class:"ti ti-dots",style:{"vertical-align":"middle"}},null,-1)])],2),y("i",{class:f(["ti ti-eye-off",l.$style.hide]),onClick:d[0]||(d[0]=ge(v=>i.value=!0,["prevent","stop"]))},null,2)],64)):I("",!0)],2))}}),K0="xuA87",J0="xihe4",G0="xmylE",Y0="xlnR0",X0="xBp91",Q0="xnU59",Z0="xEvDK",ey="xcKaF",ty="x4RFf",ny="xt7Nj",iy={hidden:K0,sensitive:J0,hiddenText:G0,hide:Y0,hiddenTextWrapper:X0,visible:Q0,menu:Z0,imageContainer:ey,indicators:ty,indicator:ny},oy={$style:iy},sy=re(W0,[["__cssModules",oy]]),ay=({videoEl:e,playerEl:t,options:n})=>{if(t.requestFullscreen!=null){t.requestFullscreen(n??void 0);return}if(e.webkitEnterFullscreen!=null){e.webkitEnterFullscreen();return}},Wr=({videoEl:e})=>{if(window.document.exitFullscreen!=null){window.document.exitFullscreen();return}if(e.webkitExitFullscreen!=null){e.webkitExitFullscreen();return}};async function ry(e){const t=e.cloneNode();t.muted=t.playsInline=!0,t.play(),await new Promise(i=>t.addEventListener("playing",i));const n=!!t.audioTracks?.length||t.mozHasAudio||!!t.webkitAudioDecodedByteCount;return t.remove(),n}const ly={key:0,style:{display:"block"}},uy={key:1,style:{display:"block"}},cy={style:{display:"block"}},dy=["poster","title","alt"],fy=["src"],my=["title"],hy=["poster","title","alt"],py=["src"],vy=["title"],gy={key:0,class:"ti-filled ti-filled-player-pause"},yy={key:1,class:"ti-filled ti-filled-player-play"},wy={key:0,class:"ti ti-arrows-minimize"},by={key:1,class:"ti ti-arrows-maximize"},_y={key:0,class:"ti ti-volume-3"},ky={key:1,class:"ti ti-volume"},Dy=ne({__name:"MkMediaVideo",props:{video:{},videoControls:{type:Boolean,default:!0}},setup(e){const t=e,n=G(()=>t.video.isSensitive&&Xe.value===!1),i={up:{allowRepeat:!0,callback:()=>{o()&&v.value&&(R.value=Math.min(R.value+.1,1))}},down:{allowRepeat:!0,callback:()=>{o()&&v.value&&(R.value=Math.max(R.value-.1,0))}},left:{allowRepeat:!0,callback:()=>{o()&&v.value&&(v.value.currentTime=Math.max(v.value.currentTime-5,0))}},right:{allowRepeat:!0,callback:()=>{o()&&v.value&&(v.value.currentTime=Math.min(v.value.currentTime+5,v.value.duration))}},space:()=>{o()&&Fe()}};function o(){return p.value?p.value===window.document.activeElement||p.value.contains(window.document.activeElement):!1}function s(){return A.s.nsfw==="force"||A.s.dataSaver.media||t.video.isSensitive&&Xe.value!==!0?!0:t.video.isSensitive&&A.s.nsfw!=="ignore"}const a=F(s()),r=F(!1);function u($){const O=[{type:"switch",text:w.ts._mediaControls.loop,icon:"ti ti-repeat",ref:Z},{type:"radio",text:w.ts._mediaControls.playbackRate,icon:"ti ti-clock-play",ref:Q,options:{"0.25x":.25,"0.5x":.5,"0.75x":.75,"1.0x":1,"1.25x":1.25,"1.5x":1.5,"2.0x":2}},...window.document.pictureInPictureEnabled?[{text:w.ts._mediaControls.pip,icon:"ti ti-picture-in-picture",action:me}]:[],{type:"divider"},{text:w.ts.hide,icon:"ti ti-eye-off",action:()=>{a.value=!0}}];(S?.id===t.video.userId||xt)&&O.push({type:"divider"}),xt&&(O.push({text:t.video.isSensitive?w.ts.unmarkAsSensitive:w.ts.markAsSensitive,icon:t.video.isSensitive?"ti ti-eye":"ti ti-eye-exclamation",danger:!0,action:()=>d(t.video)}),S?.id!==t.video.userId&&O.push({type:"link",text:w.ts._fileViewer.title,icon:"ti ti-info-circle",to:`/admin/file/${t.video.id}`}));const Le=[];S?.id===t.video.userId&&Le.push({type:"link",text:w.ts._fileViewer.title,icon:"ti ti-info-circle",to:`/my/drive/file/${t.video.id}`}),xt&&Le.push({type:"link",text:w.ts.moderation,icon:"ti ti-photo-exclamation",to:`/admin/file/${t.video.id}`}),Le.length>0&&O.push({type:"divider"},...Le),A.s.devMode&&O.push({type:"divider"},{icon:"ti ti-hash",text:w.ts.copyFileId,action:()=>{Dt(t.video.id)}}),r.value=!0,st(O,$.currentTarget??$.target,{align:"right",onClosing:()=>{r.value=!1}})}async function l($){if(a.value){if($.preventDefault(),$.stopPropagation(),t.video.isSensitive&&!S){await Pn();return}if(!(t.video.isSensitive&&Xe.value!==!0&&!await Fi())){if(t.video.isSensitive&&A.s.confirmWhenRevealingSensitiveMedia){const{canceled:O}=await ft({type:"question",text:w.ts.sensitiveMediaRevealConfirm});if(O)return}a.value=!1}}}async function d($){const{canceled:O}=await ft({type:"warning",text:$.isSensitive?w.ts.unmarkAsSensitiveConfirm:w.ts.markAsSensitiveConfirm});O||oi("drive/files/update",{fileId:$.id,isSensitive:!$.isSensitive})}const v=Ee("videoEl"),p=Ee("playerEl"),C=F(!1),D=G(()=>!!(!h.value||C.value||r.value)),m=F(!1);let k;const h=F(!1),b=F(!1),E=F(!1),T=F(!1),P=F(0),H=F(0),L=G({get:()=>P.value/H.value||0,set:$=>{v.value&&(v.value.currentTime=$*H.value/1e3)}}),R=F(.25),Q=F(1),Z=F(!1),oe=F(0),be=G(()=>v.value?oe.value/v.value.duration:0);function ue(){k&&window.clearTimeout(k),C.value=!0}function ce(){k=window.setTimeout(()=>{C.value=!1},100)}function Fe(){!b.value||!v.value||(E.value?(v.value.pause(),E.value=!1):(v.value.play(),E.value=!0,h.value=!0))}function j(){p.value==null||v.value==null||(m.value?(Wr({videoEl:v.value}),m.value=!1):(ay({videoEl:v.value,playerEl:p.value,options:{navigationUI:"hide"}}),m.value=!0))}function me(){v.value&&(window.document.pictureInPictureElement?window.document.exitPictureInPicture():v.value.requestPictureInPicture())}function Me(){R.value===0?R.value=.25:R.value=0}let X=!1,te=null,se;function K(){X||(X=!0,se=le(v,()=>{if(v.value){let $=function(){if(v.value){try{oe.value=v.value.buffered.end(0)}catch{oe.value=0}P.value=v.value.currentTime*1e3,v.value.loop!==Z.value&&(Z.value=v.value.loop)}te=window.requestAnimationFrame($)};b.value=!0,$(),v.value.addEventListener("play",()=>{T.value=!0}),v.value.addEventListener("pause",()=>{T.value=!1,E.value=!1}),v.value.addEventListener("ended",()=>{h.value=!1,T.value=!1,E.value=!1}),H.value=v.value.duration*1e3,v.value.addEventListener("durationchange",()=>{v.value&&(H.value=v.value.duration*1e3)}),v.value.volume=R.value,ry(v.value).then(O=>{!O&&v.value&&(v.value.loop=v.value.muted=!0,v.value.play())})}},{immediate:!0}))}return le(R,$=>{v.value&&(v.value.volume=$)}),le(Q,$=>{v.value&&(v.value.playbackRate=$)}),le(Z,$=>{v.value&&(v.value.loop=$)}),le(a,$=>{v.value&&$&&m.value&&(Wr({videoEl:v.value}),m.value=!1)}),je(()=>{K()}),Kt(()=>{K()}),ti(()=>{b.value=!1,E.value=!1,T.value=!1,P.value=0,H.value=0,oe.value=0,a.value=s(),se(),X=!1,te&&(window.cancelAnimationFrame(te),te=null)}),($,O)=>{const Le=we("MkLoading"),V=Ue("hotkey");return n.value?I("",!0):ve((c(),g("div",{key:0,ref_key:"playerEl",ref:p,tabindex:"0",class:f([$.$style.videoContainer,D.value&&$.$style.active,e.video.isSensitive&&_(A).s.highlightSensitiveMedia&&$.$style.sensitive]),onMouseover:ue,onMouseleave:ce,onContextmenu:O[6]||(O[6]=ge(()=>{},["stop"])),onKeydown:O[7]||(O[7]=ge(()=>{},["stop"]))},[a.value?(c(),g("button",{key:0,class:f($.$style.hidden),onClick:l},[y("div",{class:f($.$style.hiddenTextWrapper)},[e.video.isSensitive?(c(),g("b",ly,[O[8]||(O[8]=y("i",{class:"ti ti-eye-exclamation"},null,-1)),ie(" "+M(_(w).ts.sensitive)+M(_(A).s.dataSaver.media?` (${_(w).ts.video}${e.video.size?" "+_(Zn)(e.video.size):""})`:""),1)])):(c(),g("b",uy,[O[9]||(O[9]=y("i",{class:"ti ti-movie"},null,-1)),ie(" "+M(_(A).s.dataSaver.media&&e.video.size?_(Zn)(e.video.size):_(w).ts.video),1)])),y("span",cy,M(_(w).ts.clickToShow),1)],2)],2)):_(A).s.useNativeUiForVideoAudioPlayer?(c(),g("div",{key:1,class:f($.$style.videoRoot)},[y("video",{ref_key:"videoEl",ref:v,class:f($.$style.video),poster:e.video.thumbnailUrl??void 0,title:e.video.comment??void 0,alt:e.video.comment,preload:"metadata",crossorigin:"anonymous",controls:"",onKeydown:O[0]||(O[0]=ge(()=>{},["prevent"]))},[y("source",{src:e.video.url}
21,null,8,fy)],42,dy),y("i",{class:f(["ti ti-eye-off",$.$style.hide]),onClick:O[1]||(O[1]=ae=>a.value=!0)},null,2),y("div",{class:f($.$style.indicators)},[e.video.comment?(c(),g("div",{key:0,class:f($.$style.indicator)},"ALT",2)):I("",!0),e.video.isSensitive?(c(),g("div",{key:1,class:f($.$style.indicator),style:{color:"var(--MI_THEME-warn)"},title:_(w).ts.sensitive},[...O[10]||(O[10]=[y("i",{class:"ti ti-eye-exclamation"},null,-1)])],10,my)):I("",!0)],2)],2)):(c(),g("div",{key:2,class:f($.$style.videoRoot)},[y("video",{ref_key:"videoEl",ref:v,class:f($.$style.video),poster:e.video.thumbnailUrl??void 0,title:e.video.comment??void 0,alt:e.video.comment,preload:"metadata",crossorigin:"anonymous",playsinline:"",onKeydown:O[2]||(O[2]=ge(()=>{},["prevent"])),onClick:ge(Fe,["self"])},[y("source",{src:e.video.url},null,8,py)],42,hy),b.value&&!E.value?(c(),g("button",{key:0,class:f(["_button",$.$style.videoOverlayPlayButton]),onClick:Fe},[...O[11]||(O[11]=[y("i",{class:"ti-filled ti-filled-player-play"},null,-1)])],2)):T.value?I("",!0):(c(),g("div",{key:1,class:f($.$style.videoLoading)},[W(Le)],2)),y("div",{class:f($.$style.indicators)},[e.video.comment?(c(),g("div",{key:0,class:f($.$style.indicator)},"ALT",2)):I("",!0),e.video.isSensitive?(c(),g("div",{key:1,class:f($.$style.indicator),style:{color:"var(--MI_THEME-warn)"},title:_(w).ts.sensitive},[...O[12]||(O[12]=[y("i",{class:"ti ti-eye-exclamation"},null,-1)])],10,vy)):I("",!0)],2),e.videoControls?I("",!0):(c(),g("button",{key:2,class:f([$.$style.menu,"_button"]),onClick:ge(u,["prevent","stop"])},[...O[13]||(O[13]=[y("i",{class:"ti ti-dots",style:{"vertical-align":"middle"}},null,-1)])],2)),y("i",{class:f(["ti ti-eye-off",$.$style.hide]),onClick:O[3]||(O[3]=ge(ae=>a.value=!0,["prevent","stop"]))},null,2),e.videoControls?(c(),g("div",{key:3,class:f($.$style.videoControls),onClick:ge(Fe,["self"])},[y("div",{class:f([$.$style.controlsChild,$.$style.controlsLeft])},[y("button",{class:f(["_button",$.$style.controlButton]),onClick:ge(Fe,["prevent","stop"])},[E.value?(c(),g("i",gy)):(c(),g("i",yy))],2)],2),y("div",{class:f([$.$style.controlsChild,$.$style.controlsRight])},[y("button",{class:f(["_button",$.$style.controlButton]),onClick:ge(u,["prevent","stop"])},[...O[14]||(O[14]=[y("i",{class:"ti ti-settings"},null,-1)])],2),y("button",{class:f(["_button",$.$style.controlButton]),onClick:ge(j,["prevent","stop"])},[m.value?(c(),g("i",wy)):(c(),g("i",by))],2)],2),y("div",{class:f([$.$style.controlsChild,$.$style.controlsTime])},M(_(zu)(P.value)),3),y("div",{class:f([$.$style.controlsChild,$.$style.controlsVolume])},[y("button",{class:f(["_button",$.$style.controlButton]),onClick:ge(Me,["prevent","stop"])},[R.value===0?(c(),g("i",_y)):(c(),g("i",ky))],2),W(bo,{modelValue:R.value,"onUpdate:modelValue":O[4]||(O[4]=ae=>R.value=ae),sliderBgWhite:!0,class:f($.$style.volumeSeekbar)},null,8,["modelValue","class"])],2),W(bo,{modelValue:L.value,"onUpdate:modelValue":O[5]||(O[5]=ae=>L.value=ae),sliderBgWhite:!0,class:f($.$style.seekbarRoot),buffer:be.value},null,8,["modelValue","class","buffer"])],2)):I("",!0)],2))],34)),[[V,i]])}}}),Ey="xcZgn",Cy="xsf0q",Ay="xzxGY",$y="xck6g",xy="xdz7H",Ty="xrG87",My="xose6",Iy="xzKaU",Sy="x1mBH",Fy="xgOc8",By="xdln5",Py="xkv9W",Ry="xlZvR",Ly="xvyPH",Ny="x1lq9",Oy="xolaw",jy="xutQw",Vy="xEiBA",zy="xeQHk",Hy="xcjfb",Uy="xq9dn",qy="xuoIG",Wy={videoContainer:Ey,sensitive:Cy,indicators:Ay,indicator:$y,hide:xy,hidden:Ty,hiddenTextWrapper:My,menu:Iy,videoRoot:Sy,video:Fy,videoOverlayPlayButton:By,videoLoading:Py,videoControls:Ry,active:Ly,controlsChild:Ny,controlButton:Oy,controlsLeft:jy,controlsRight:Vy,controlsTime:zy,controlsVolume:Hy,volumeSeekbar:Uy,seekbarRoot:qy},Ky={$style:Wy},Jy=re(Dy,[["__cssModules",Ky]]),Gy=ne({__name:"MkMediaList",props:{mediaList:{},user:{},raw:{type:Boolean}},setup(e,{expose:t}){const n=e,i=Ee("gallery"),o=si("middle");window.document.documentElement.style.setProperty("--mk-pswp-root-z-index",o.toString());const s=h=>h.isSensitive&&Xe.value===!1,a=G(()=>n.mediaList.filter(h=>!m(h)&&!s(h))),r=G(()=>n.mediaList.filter(h=>m(h)&&!s(h))),u=G(()=>r.value.length),l=G(()=>r.value.filter(h=>h.type==="image/svg+xml"?!0:h.type.startsWith("image")&&br.includes(h.type)));let d=null,v=null;const p=()=>
21{d?.pswp&&d.pswp.isOpen===!0&&d.pswp.close()};async function C(){if(!i.value)return;const h=r.value[0];if(u.value!==1||!h||!(h.properties.width&&h.properties.height)){i.value.style.aspectRatio="";return}const b=E=>h.properties.width==null||h.properties.height==null?"":`${Math.max(E,h.properties.width/h.properties.height).toString()} / 1`;switch(A.s.mediaListWithOneImageAppearance){case"16_9":i.value.style.aspectRatio=b(16/9);break;case"1_1":i.value.style.aspectRatio=b(1);break;case"2_3":i.value.style.aspectRatio=b(2/3);break;default:i.value.style.aspectRatio="";break}}const D=()=>{if(!i.value||l.value.length===0)return null;const h=new jd({dataSource:l.value.map(b=>{const E={src:b.url,w:b.properties.width,h:b.properties.height,alt:b.comment??b.name,comment:b.comment??b.name};return b.properties.orientation!=null&&b.properties.orientation>=5&&([E.w,E.h]=[E.h,E.w]),E}),gallery:i.value,mainClass:"pswp",children:".image",thumbSelector:".image",loop:!1,padding:window.innerWidth>500?{top:32,bottom:90,left:32,right:32}:{top:0,bottom:78,left:0,right:0},imageClickAction:"close",tapAction:"close",bgOpacity:1,showAnimationDuration:100,hideAnimationDuration:100,returnFocus:!1,pswpModule:Vd});return h.addFilter("itemData",b=>{const{element:E}=b,T=E?.dataset.id,P=T!=null?l.value.find(H=>H.id===T):null;return P&&(b.src=P.url,b.w=Number(P.properties.width),b.h=Number(P.properties.height),P.properties.orientation!=null&&P.properties.orientation>=5&&([b.w,b.h]=[b.h,b.w]),b.msrc=P.thumbnailUrl??void 0,b.alt=P.comment??P.name,b.comment=P.comment??P.name,b.thumbCropped=!0),b}),h.on("uiRegister",()=>{h.pswp?.ui?.registerElement({name:"altText",className:"pswp__alt-text-container",appendTo:"wrapper",onInit:(b,E)=>{const T=window.document.createElement("p");T.className="pswp__alt-text _acrylic",b.appendChild(T),E.on("change",()=>{T.textContent=E.currSlide?.data.comment})}})}),h.on("afterInit",()=>{v=window.document.activeElement instanceof HTMLElement?window.document.activeElement:null,_i(v,!0,!0),h.pswp?.element?.focus({preventScroll:!0}),window.history.pushState(null,"","#pswp")}),h.on("destroy",()=>{_i(v,!0,!1),v=null,window.location.hash==="#pswp"&&window.history.back()}),h};je(()=>{C(),window.addEventListener("popstate",p),d=D(),d?.init()}),it(()=>{window.removeEventListener("popstate",p),d?.destroy(),d=null,v=null});const m=h=>h.type==="image/svg+xml"?!0:(h.type.startsWith("video")||h.type.startsWith("image"))&&br.includes(h.type),k=()=>{l.value.length!==0&&(d||(d=D(),d?.init()),d?.loadAndOpen(0))};return le(u,()=>{C()},{flush:"post"}),le(l,()=>
21{d?.pswp&&d.pswp.isOpen===!0&&d.pswp.close(),d?.destroy(),d=D(),d?.init()},{flush:"post"}),t({openGallery:k}),(h,b)=>(c(),g("div",null,[(c(!0),g(pe,null,Re(a.value,E=>(c(),q(j0,{key:E.id,media:E,user:e.user},null,8,["media","user"]))),128)),u.value>0?(c(),g("div",{key:0,class:f(h.$style.container)},[y("div",{ref_key:"gallery",ref:i,class:f([h.$style.medias,u.value===1?[h.$style.n1,{[h.$style.n116_9]:_(A).s.mediaListWithOneImageAppearance==="16_9",[h.$style.n11_1]:_(A).s.mediaListWithOneImageAppearance==="1_1",[h.$style.n12_3]:_(A).s.mediaListWithOneImageAppearance==="2_3"}]:u.value===2?h.$style.n2:u.value===3?h.$style.n3:u.value===4?h.$style.n4:h.$style.nMany])},[(c(!0),g(pe,null,Re(r.value,E=>(c(),g(pe,null,[E.type.startsWith("video")?(c(),q(Jy,{key:`video:${E.id}`,class:f(h.$style.media),video:E},null,8,["class","video"])):E.type.startsWith("image")?(c(),q(sy,{key:`image:${E.id}`,class:f([h.$style.media,"image"]),"data-id":E.id,image:E,raw:e.raw},null,8,["class","data-id","image","raw"])):I("",!0)],64))),256))],2)],2)):I("",!0)]))}}),Yy="xbIzI",Xy="xutAY",Qy="xsfFg",Zy="xkfNk",ew="xrbFI",tw="x7QUJ",nw="xihRJ",iw="xCjAS",ow="xesxE",sw="xqN41",aw="xCVRx",rw={container:Yy,medias:Xy,n1:Qy,n116_9:Zy,n11_1:ew,n12_3:tw,n2:nw,n3:iw,media:ow,n4:sw,nMany:aw},lw={$style:rw},uw=re(Gy,[["__cssModules",lw]]),cw=["onClick"],dw={key:0,class:"ti ti-check",style:{"margin-right":"4px",color:"var(--MI_THEME-accent)"}},fw={key:1,style:{"margin-left":"4px",opacity:"0.7"}},mw={key:1},hw={key:2},pw={key:3},vw=ne({__name:"MkPoll",props:{noteId:{},poll:{},readOnly:{type:Boolean},emojiUrls:{},author:{}},setup(e){const t=e,n=F(-1),i=G(()=>ip(t.poll.choices.map(d=>d.votes))),o=G(()=>n.value===0),s=G(()=>!t.poll.multiple&&t.poll.choices.some(d=>d.isVoted)),a=G(()=>w.tsx._poll[n.value>=86400?"remainingDays":n.value>=3600?"remainingHours":n.value>=60?"remainingMinutes":"remainingSeconds"]({s:Math.floor(n.value%60),m:Math.floor(n.value/60)%60,h:Math.floor(n.value/3600)%24,d:Math.floor(n.value/86400)})),r=F(t.readOnly||s.value),u=G(()=>({type:"lookup",url:`https://${He}/notes/${t.noteId}`}));t.poll.expiresAt&&Sa(()=>{n.value=Math.floor(Math.max(new Date(t.poll.expiresAt).getTime()-Date.now(),0)/1e3),n.value===0&&(r.value=!0)},3e3,{immediate:!0,afterMounted:!1});const l=async d=>{if(t.readOnly||o.value||s.value)return;await Pn({openOnRemote:u.value});const{canceled:v}=await ft({type:"question",text:w.tsx.voteConfirm({choice:t.poll.choices[d].text})});v||(await Ae("notes/polls/vote",{noteId:t.noteId,choice:d}),r.value||(r.value=!t.poll.multiple))};return(d,v)=>{const p=we("Mfm");return c(),g("div",{class:f({[d.$style.done]:o.value||s.value})},[y("ul",{class:f(d.$style.choices)},[(c(!0),g(pe,null,Re(e.poll.choices,(C,D)=>(c(),g("li",{key:D,class:f(d.$style.choice),onClick:m=>l(D)},[y("div",{class:f(d.$style.bg),style:Ge({width:`${r.value?C.votes/i.value*100:0}%`})},null,6),y("span",{class:f(d.$style.fg)},[C.isVoted?(c(),g("i",dw)):I("",!0),W(p,{text:C.text,plain:!0,author:e.author,emojiUrls:e.emojiUrls},null,8,["text","author","emojiUrls"]),r.value?(c(),g("span",fw,"("+M(_(w).tsx._poll.votesCount({n:C.votes}))+")",1)):I("",!0)],2)],10,cw))),128))],2),e.readOnly?I("",!0):(c(),g("p",{key:0,class:f(d.$style.info)},[y("span",null,M(_(w).tsx._poll.totalVotes({n:i.value})),1),v[1]||(v[1]=y("span",null," · ",-1)),!o.value&&!s.value?(c(),g("a",{key:0,style:{color:"inherit"},onClick:v[0]||(v[0]=C=>r.value=!r.value)},M(r.value?_(w).ts._poll.vote:_(w).ts._poll.showResult),1)):I("",!0),s.value?(c(),g("span",mw,M(_(w).ts._poll.voted),1)):o.value?(c(),g("span",hw,M(_(w).ts._poll.closed),1)):I("",!0),n.value>0?(c(),g("span",pw," · "+M(a.value),1)):I("",!0)],2))],2)}}}),gw="xeybi",yw="xeGSn",ww="x7SOO",bw="xrXMJ",_w="xyDwL",kw="x2CfQ",Dw={choices:gw,choice:yw,bg:ww,fg:bw,info:_w,done:kw},Ew={$style:Dw},Cw=re(vw,[["__cssModules",Ew]]),Aw={key:0,style:{opacity:"0.5"}},$w={key:1,style:{opacity:"0.5"}},xw={key:0},Tw={key:1},Mw=ne({__name:"MkSubNoteContent",props:{note:{}},setup(e){const n=Jg(e.note,[]),i=F(n);return(o,s)=>{const a=we("MkA"),r=we("Mfm");return c(),g("div",{class:f([o.$style.root,{[o.$style.collapsed]:i.value}])},[y("div",null,[e.note.isHidden?(c(),g("span",Aw,"("+M(_(w).ts.private)+")",1)):I("",!0),e.note.deletedAt?(c(),g("span",$w,"("+M(_(w).ts.deletedNote)+")",1)):I("",!0),e.note.replyId?(c(),q(a,{key:2,class:f(o.$style.reply),to:`/notes/${e.note.replyId}`},{default:J(()=>[...s[2]||(s[2]=[y("i",{class:"ti ti-arrow-back-up"},null,-1)])]),_:1},8,["class","to"])):I("",!0),e.note.text?(c(),q(r,{key:3,text:e.note.text,author:e.note.user,nyaize:"respect",emojiUrls:e.note.emojis},null,8,["text","author","emojiUrls"])):I("",!0),e.note.renoteId?(c(),q(a,{key:4,class:f(o.$style.rp),to:`/notes/${e.note.renoteId}`},{default:J(()=>[...s[3]||(s[3]=[ie("RN: ...",-1)])]),_:1},8,["class","to"])):I("",!0)]),e.note.files&&e.note.files.length>0?(c(),g("details",xw,[y("summary",null,"("+M(_(w).tsx.withNFiles({n:e.note.files.length}))+")",1),W(uw,{mediaList:e.note.files,user:e.note.user},null,8,["mediaList","user"])])):I("",!0),e.note.poll?(c(),g("details",Tw,[y("summary",null,M(_(w).ts.poll),1),W(Cw,{noteId:e.note.id,poll:e.note.poll,author:e.note.user,emojiUrls:e.note.emojis},null,8,["noteId","poll","author","emojiUrls"])])):I("",!0),_(n)&&i.value?(c(),g("button",{key:2,class:f([o.$style.fade,"_button"]),onClick:s[0]||(s[0]=u=>i.value=!1)},[y("span",{class:f(o.$style.fadeLabel)},M(_(w).ts.showMore),3)],2)):_(n)&&!i.value?(c(),g("button",{key:3,class:f([o.$style.showLess,"_button"]),onClick:s[1]||(s[1]=u=>i.value=!0)},[y("span",{class:f(o.$style.showLessLabel)},M(_(w).ts.showLess),3)],2)):I("",!0)],2)}}}),Iw="xpUJO",Sw="xmj6Q",Fw="xnQD5",Bw="xzqug",Pw="x8ivL",Rw="xgLl8",Lw="xtAtd",Nw="xik0L",Ow={root:Iw,collapsed:Sw,fade:Fw,fadeLabel:Bw,reply:Pw,rp:Rw,showLess:Lw,showLessLabel:Nw},jw={$style:Ow},Qs=re(Mw,[["__cssModules",jw]]),Vw=["disabled"],zw=ne({__name:"MkModalWindow",props:{withOkButton:{type:Boolean,default:!1},withCloseButton:{type:Boolean,default:!0},okButtonDisabled:{type:Boolean,default:!1},escKeyDisabled:{type:Boolean,default:!1},width:{default:400},height:{default:500}},emits:["click","close","closed","ok","esc"],setup(e,{expose:t,emit:n}){const i=n,o=Ee("modal"),s=Ee("rootEl"),a=Ee("headerEl"),r=F(0),u=F(0);function l(){o.value?.close()}function d(){i("click")}const v=new ResizeObserver((p,C)=>{s.value==null||a.value==null||(r.value=s.value.offsetWidth,u.value=s.value.offsetHeight-a.value.offsetHeight)});return je(()=>{s.value==null||a.value==null||(r.value=s.value.offsetWidth,u.value=s.value.offsetHeight-a.value.offsetHeight,v.observe(s.value))}),it(()=>{v.disconnect()}),t({close:l}),(p,C)=>(c(),q(Si,{ref_key:"modal",ref:o,hasInteractionWithOtherFocusTrappedEls:"",preferType:"dialog",onClick:d,onClosed:C[3]||(C[3]=D=>i("closed")),onEsc:C[4]||(C[4]=D=>i("esc"))},{default:J(()=>[y("div",{ref_key:"rootEl",ref:s,class:f(p.$style.root),style:Ge({width:`${e.width}px`,height:`min(${e.height}px, 100%)`})},[y("div",{ref_key:"headerEl",ref:a,class:f(p.$style.header)},[e.withOkButton&&e.withCloseButton?(c(),g("button",{key:0,class:f([p.$style.headerButton,"_button"]),onClick:C[0]||(C[0]=D=>i("close"))},[...C[5]||(C[5]=[y("i",{class:"ti ti-x"},null,-1)])],2)):I("",!0),y("span",{class:f(p.$style.title)},[Te(p.$slots,"header")],2),!e.withOkButton&&e.withCloseButton?(c(),g("button",{key:1,class:f([p.$style.headerButton,"_button"]),"data-cy-modal-window-close":"",onClick:C[1]||(C[1]=D=>i("close"))},[...C[6]||(C[6]=[y("i",{class:"ti ti-x"},null,-1)])],2)):I("",!0),e.withOkButton?(c(),g("button",{key:2,class:f([p.$style.headerButton,"_button"]),disabled:e.okButtonDisabled,onClick:C[2]||(C[2]=D=>i("ok"))},[...C[7]||(C[7]=[y("i",{class:"ti ti-check"},null,-1)])],10,Vw)):I("",!0)],2),y("div",{class:f(p.$style.body)},[Te(p.$slots,"default",{width:r.value,height:u.value})],2)],6)]),_:3},512))}}),Hw="xEAqs",Uw="xbAsX",qw="x8VpB",Ww="xDxWK",Kw="xlH8n",Jw={root:Hw,header:Uw,headerButton:qw,title:Ww,body:Kw},Gw={$style:Jw},Wu=re(zw,[["__cssModules",Gw]]);function Yw(){const e=F(document.visibilityState),t=()=>{e.value=document.visibilityState};return je(()=>{document.addEventListener("visibilitychange",t)}),it(()=>{document.removeEventListener("visibilitychange",t)}),e}const Xw={key:"_empty_"},Qw={class:"_fullinfo"},Zw=["src"],eb={key:"_more_"},tb={key:"_more_"},Kr=30,ys=16,nb=ne({__name:"MkPagination",props:{pagination:{},disableAutoLoad:{type:Boolean},displayLimit:{default:20},filter:{}},emits:["queue","status"],setup(e,{expose:t,emit:n}){const i=e,o=n,s=Ee("rootEl"),a=F(!1),r=F(null),u=F([]),l=F([]),d=F(!0),v=F(!1),p=F(!1),C=F(!1),D=G(()=>u.value.length===0),m=F(!1),{enableInfiniteScroll:k}=A.r,h=G(()=>s.value?ln(s.value):window.document.body),b=Yw();let E=!1,T=null;const P=10,H=F();le([()=>i.pagination.prepend,h],()=>{H.value&&H.value.disconnect(),H.value=new IntersectionObserver(se=>{a.value=se[0].isIntersecting},{root:h.value,rootMargin:i.pagination.prepend?"-100% 0px 100% 0px":"100% 0p
21x -100% 0px",threshold:.01})},{immediate:!0}),le(s,()=>{H.value?.disconnect(),Pe(()=>{s.value&&H.value?.observe(s.value)})}),le([a,s],()=>{if(a.value)r.value&&r.value(),r.value=null;else{if(!s.value)return;r.value=i.pagination.prepend?sh(s.value,Fe,ys):oh(s.value,se=>{se&&Fe()},ys)}}),le(()=>[i.pagination.endpoint,i.pagination.params],L,{deep:!0}),le(l,(se,K)=>{se.length===0&&K.length===0||o("queue",l.value.length)},{deep:!0}),le(m,(se,K)=>{se!==K&&o("status",se)});async function L(){l.value=[],d.value=!0;const se=i.pagination.params?Qo(i.pagination.params)?i.pagination.params.value:i.pagination.params:{};await Ae(i.pagination.endpoint,{...se,limit:i.pagination.limit??10,allowPartial:!0}).then(K=>{K=K.filter($=>!i.filter||i.filter($));for(let $=0;$<K.length;$++){const O=K[$];$===3&&(O._shouldInsertAd_=!0)}K.length===0||i.pagination.noPaging?(u.value=K,p.value=!1):(i.pagination.prepend&&(v.value=!0),u.value=K,p.value=!0),m.value=!1,d.value=!1},K=>{m.value=!0,d.value=!1})}const R=()=>(u.value=[],L()),Q=()=>{u.value=[]},Z=async()=>{if(!p.value||d.value||v.value||u.value.length===0)return;v.value=!0;const se=i.pagination.params?Qo(i.pagination.params)?i.pagination.params.value:i.pagination.params:{};await Ae(i.pagination.endpoint,{...se,limit:Kr,...i.pagination.offsetMode?{offset:u.value.length}:{untilId:u.value[u.value.length-1].id}}).then(K=>{K=K.filter(O=>!i.filter||i.filter(O));for(let O=0;O<K.length;O++){const Le=K[O];O===10&&(Le._shouldInsertAd_=!0)}const $=O=>{const Le=h.value?h.value.scrollHeight:Ir(),V=h.value?h.value.scrollTop:window.scrollY;return u.value=u.value.concat(O),Pe(()=>(h.value?xa(h.value,{top:V+(h.value.scrollHeight-Le),behavior:"instant"}):window.scroll({top:V+(Ir()-Le),behavior:"instant"}),Pe()))};K.length===0?i.pagination.prepend?$(K).then(()=>{p.value=!1,v.value=!1}):(u.value=u.value.concat(K),p.value=!1,v.value=!1):i.pagination.prepend?$(K).then(()=>{p.value=!0,v.value=!1}):(u.value=u.value.concat(K),p.value=!0,v.value=!1)},K=>{v.value=!1})},oe=async()=>{if(!p.value||d.value||v.value||u.value.length===0)return;v.value=!0;const se=i.pagination.params?Qo(i.pagination.params)?i.pagination.params.value:i.pagination.params:{};await Ae(i.pagination.endpoint,{...se,limit:Kr,...i.pagination.offsetMode?{offset:u.value.length}:{sinceId:u.value[0].id}}).then(K=>{K=K.filter($=>!i.filter||i.filter($)),K.length===0?(u.value=K.concat(u.value),p.value=!1):(u.value=K.concat(u.value),p.value=!0),v.value=!1},K=>{v.value=!1})},be=()=>C.value||(i.pagination.prepend?Js:Ks)(s.value,ys);le(b,()=>{b.value==="hidden"?T=window.setTimeout(()=>{E=!0,T=null},P*1e3):T?(window.clearTimeout(T),T=null):(E=!1,be()&&Fe())});const ue=se=>{if(!s.value){u.value.unshift(se);return}be()&&!E?ce([se]):j(se)};function ce(se){const K=se.length+u.value.length;u.value=[...se,...u.value].slice(0,i.displayLimit),K>=i.displayLimit&&(p.value=!0)}function Fe(){l.value.length!==0&&(ce(l.value),l.value=[])}function j(se){l.value.unshift(se),l.value.length>=i.displayLimit&&l.value.pop()}const me=se=>{u.value.push(se)},Me=se=>{const K=u.value.findIndex(se);u.value.splice(K,1)},X=(se,K)=>{const $=u.value.findIndex(O=>O.id===se);u.value[$]=K(u.value[$])};Kt(()=>{C.value=!1}),ti(()=>{C.value=i.pagination.prepend?window.scrollY>=(s.value?s.value.scrollHeight-window.innerHeight:0):window.scrollY===0});function te(){rh(s.value)}return Ld(()=>{L().then(()=>{i.pagination.prepend&&Pe(()=>{window.setTimeout(te,800),window.setTimeout(()=>{v.value=!1},2e3)})})}),jt(()=>{T&&(window.clearTimeout(T),T=null),H.value?.disconnect()}),t({items:u,queue:l,backed:a.value,more:p,reload:R,prepend:ue,deleteItem:Q,append:me,removeItem:Me,updateItem:X,isHead:be,stopFetch:()=>{p.value=!1},startFetch:()=>{p.value=!0}}),(se,K)=>{const $=we("MkLoading"),O=we("MkError"),Le=Ue("appear");return c(),q(bt,{enterActiveClass:_(A).s.animation?se.$style.transition_fade_enterActive:"",leaveActiveClass:_(A).s.animation?se.$style.transition_fade_leaveActive:"",enterFromClass:_(A).s.animation?se.$style.transition_fade_enterFrom:"",leaveToClass:_(A).s.animation?se.$style.transition_fade_leaveTo:"",mode:"out-in"},{default:J(()=>[d.value?(c(),q($,{key:0})):m.value?(c(),q(O,{key:1,onRetry:K[0]||(K[0]=V=>L())})):D.value?(c(),g("div",Xw,[Te(se.$slots,"empty",{},()=>[y("div",Qw,[y("img",{src:_(vo),draggable:"false"},null,8,Zw),y("div",null,M(_(w).ts.nothing),1)])])])):(c(),g("div",{key:3,ref_key:"rootEl",ref:s,class:"_gaps"},[ve(y("div",eb,[v.value?(c(),q($,{key:1})):ve((c(),q(dt,{key:0,class:f(se.$style.more),wait:v.value,primary:"",rounded:"",onClick:oe},{default:J(()=>
21[ie(M(_(w).ts.loadMore),1)]),_:1},8,["class","wait"])),[[Le,_(k)&&!i.disableAutoLoad?oe:null]])],512),[[_t,e.pagination.prepend&&p.value]]),Te(se.$slots,"default",{items:u.value,fetching:d.value||v.value}),ve(y("div",tb,[v.value?(c(),q($,{key:1})):ve((c(),q(dt,{key:0,class:f(se.$style.more),wait:v.value,primary:"",rounded:"",onClick:Z},{default:J(()=>[ie(M(_(w).ts.loadMore),1)]),_:1},8,["class","wait"])),[[Le,_(k)&&!i.disableAutoLoad?Z:null]])],512),[[_t,!e.pagination.prepend&&p.value]])],512))]),_:3},8,["enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass"])}}}),ib="xCNNu",ob="xBRPm",sb="xn9Co",ab="xnOjY",rb="xc3QJ",lb={transition_fade_enterActive:ib,transition_fade_leaveActive:ob,transition_fade_enterFrom:sb,transition_fade_leaveTo:ab,more:rb},ub={$style:lb},cb=re(nb,[["__cssModules",ub]]),db=ne({props:{modelValue:{required:!0}},setup(e,{emit:t,slots:n}){const i=n.default?.()??[];return()=>Se("div",{class:"pxhvhrfw"},i.map(o=>ve(Se("button",{class:["_button",{active:e.modelValue===o.props?.value}],key:o.key,disabled:e.modelValue===o.props?.value,onClick:()=>{t("update:modelValue",o.props?.value)}},o.children??[]),[[Ue("click-anime")]])))}}),Ba={ach:{nativeName:"Lwo"},ady:{nativeName:"ÐдÑгÑбзÑ"},af:{nativeName:"Afrikaans"},"af-NA":{nativeName:"Afrikaans (Namibia)"},"af-ZA":{nativeName:"Afrikaans (South Africa)"},ak:{nativeName:"TÉÉ¥i"},ar:{nativeName:"Ø§ÙØ¹Ø±Ø¨ÙØ©"},"ar-AR":{nativeName:"Ø§ÙØ¹Ø±Ø¨ÙØ©"},"ar-MA":{nativeName:"Ø§ÙØ¹Ø±Ø¨ÙØ©"},"ar-SA":{nativeName:"Ø§ÙØ¹Ø±Ø¨ÙØ© (Ø§ÙØ³Ø¹ÙØ¯ÙØ©)"},"ay-BO":{nativeName:"Aymar aru"},az:{nativeName:"AzÉrbaycan dili"},"az-AZ":{nativeName:"AzÉrbaycan dili"},"be-BY":{nativeName:"ÐелаÑÑÑкаÑ"},bg:{nativeName:"ÐÑлгаÑÑки"},"bg-BG":{nativeName:"ÐÑлгаÑÑки"},bn:{nativeName:"বাà¦à¦²à¦¾"},"bn-IN":{nativeName:"বাà¦à¦²à¦¾ (à¦à¦¾à¦°à¦¤)"},"bn-BD":{nativeName:"বাà¦à¦²à¦¾(বাà¦à¦²à¦¾à¦¦à§à¦¶)"},br:{nativeName:"Brezhoneg"},"bs-BA":{nativeName:"Bosanski"},ca:{nativeName:"Català "},"ca-ES":{nativeName:"Català "},cak:{nativeName:"Maya Kaqchikel"},"ck-US":{nativeName:"á£á³á© (tsalagi)"},cs:{nativeName:"ÄeÅ¡tina"},"cs-CZ":{nativeName:"ÄeÅ¡tina"},cy:{nativeName:"Cymraeg"},"cy-GB":{nativeName:"Cymraeg"},da:{nativeName:"Dansk"},"da-DK":{nativeName:"Dansk"},de:{nativeName:"Deutsch"},"de-AT":{nativeName:"Deutsch (Ãsterreich)"},"de-DE":{nativeName:"Deutsch (Deutschland)"},"de-CH":{nativeName:"Deutsch (Schweiz)"},dsb:{nativeName:"DolnoserbÅ¡Äina"},el:{nativeName:"Îλληνικά"},"el-GR":{nativeName:"Îλληνικά"},en:{nativeName:"English"},"en-GB":{nativeName:"English (UK)"},"en-AU":{nativeName:"English (Australia)"},"en-CA":{nativeName:"English (Canada)"},"en-IE":{nativeName:"English (Ireland)"},"en-IN":{nativeName:"English (India)"},"en-PI":{nativeName:"English (Pirate)"},"en-SG":{nativeName:"English (Singapore)"},"en-UD":{nativeName:"English (Upside Down)"},"en-US":{nativeName:"English (US)"},"en-ZA":{nativeName:"English (South Africa)"},"en@pirate":{nativeName:"English (Pirate)"},eo:{nativeName:"Esperanto"},"eo-EO":{nativeName:"Esperanto"},es:{nativeName:"Español"},"es-AR":{nativeName:"Español (Argentine)"},"es-419":{nativeName:"Español (Latinoamérica)"},"es-CL":{nativeName:"Español (Chile)"},"es-CO":{nativeName:"Español (Colombia)"},"es-EC":{nativeName:"Español (Ecuador)"},"es-ES":{nativeName:"Español (España)"},"es-LA":{nativeName:"Español (Latinoamérica)"},"es-NI":{nativeName:"Español (Nicaragua)"},"es-MX":{nativeName:"Español (México)"},"es-US":{nativeName:"Español (Estados Unidos)"},"es-VE":{nativeName:"Español (Venezuela)"},et:{nativeName:"eesti keel"},"et-EE":{nativeName:"Eesti (Estonia)"},eu:{nativeName:"Euskara"},"eu-ES":{nativeName:"Euskara"},fa:{nativeName:"ÙØ§Ø±Ø³Û"},"fa-IR":{nativeName:"ÙØ§Ø±Ø³Û"},"fb-LT":{nativeName:"Leet Speak"},ff:{nativeName:"Fulah"},fi:{nativeName:"Suomi"},"fi-FI":{nativeName:"Suomi"},fo:{nativeName:"Føroyskt"},"fo-FO":{nativeName:"Føroyskt (Færeyjar)"},fr:{nativeName:"Français"},"fr-CA":{nativeName:"Français (Canada)"},"fr-FR":{nativeName:"Français (France)"},"fr-BE":{nativeName:"Français (Belgique)"},"fr-CH":{nativeName:"Français (Suisse)"},"fy-NL":{nativeName:"Frysk"},ga:{nativeName:"Gaeilge"},"ga-IE":{nativeName:"Gaeilge"},gd:{nativeName:"Gà idhlig"},gl:{nativeName:"Galego"},"gl-ES":{nativeName:"Galego"},"gn-PY":{nativeName:"Avañe'ẽ"},"gu-IN":{nativeName:"àªà«àªàª°àª¾àª¤à«"},gv:{nativeName:"Gaelg"},"gx-GR":{nativeName:"á¼Î»Î»Î·Î½Î¹ÎºÎ® á¼ÏÏαία"},he:{nativeName:"×¢×ר×תâ"},"he-IL":{nativeName:"×¢×ר×תâ"},hi:{nativeName:"हिनà¥à¤¦à¥"},"hi-IN":{nativeName:"हिनà¥à¤¦à¥"},hr:{nativeName:"Hrvatski"},"hr-HR":{nativeName:"Hrvatski"},hsb:{nativeName:"HornjoserbÅ¡Äina"},ht:{nativeName:"Kreyòl"},hu:{nativeName:"Magyar"},"hu-HU":{nativeName:"Magyar"},hy:{nativeName:"ÕÕ¡ÕµÕ¥ÖÕ¥Õ¶"},"hy-AM":{nativeName:"ÕÕ¡ÕµÕ¥ÖÕ¥Õ¶ (ÕÕ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶)"},id:{nativeName:"Bahasa Indonesia"},"id-ID":{nativeName:"Bahasa Indonesia"},is:{nativeName:"Ãslenska"},"is-IS":{nativeName:"Ãslenska (Iceland)"},it:{nativeName:"Italiano"},"it-IT":{nativeName:"Italiano"},ja:{nativeName:"æ¥æ¬èª"},"ja-JP":{nativeName:"æ¥æ¬èª (æ¥æ¬)"},"jv-ID":{nativeName:"Basa Jawa"},"ka-GE":{nativeName:"á¥áá áá£áá"},"kk-KZ":{nativeName:"ÒазаÒÑа"},km:{nativeName:"áá¶áá¶ááááá"},kl:{nativeName:"kalaallisut"},"km-KH":{nativeName:"áá¶áá¶ááááá"},kab:{nativeName:"Taqbaylit"},kn:{nativeName:"à²à²¨à³à²¨à²¡"},"kn-IN":{nativeName:"à²à²¨à³à²¨à²¡ (India)"},ko:{nativeName:"íêµì´"},"ko-KR":{nativeName:"íêµì´ (íêµ)"},"ku-TR":{nativeName:"Kurdî"},kw:{nativeName:"Kernewek"},la:{nativeName:"Latin"},"la-VA":{nativeName:"Latin"},lb:{nativeName:"Lëtzebuergesch"},"li-NL":{nativeName:"Lèmbörgs"},lt:{nativeName:"Lietuvių"},"lt-LT":{nativeName:"Lietuvių"},lv:{nativeName:"LatvieÅ¡u"},"lv-LV":{nativeName:"LatvieÅ¡u"},mai:{nativeName:"मà¥à¤¥à¤¿à¤²à¥, মà§à¦¥à¦¿à¦²à§"},"mg-MG":{nativeName:"Malagasy"},mk:{nativeName:"ÐакедонÑки"},"mk-MK":{nativeName:"ÐакедонÑки (ÐакедонÑки)"},ml:{nativeName:"മലയാളà´"},"ml-IN":{nativeName:"മലയാളà´"},"mn-MN":{nativeName:"Ðонгол"},mr:{nativeName:"मराठà¥"},"mr-IN":{nativeName:"मराठà¥"},ms:{nativeName:"Bahasa Melayu"}
21,"ms-MY":{nativeName:"Bahasa Melayu"},mt:{nativeName:"Malti"},"mt-MT":{nativeName:"Malti"},my:{nativeName:"ááá¬á
áá¬"},no:{nativeName:"Norsk"},nb:{nativeName:"Norsk (bokmÃ¥l)"},"nb-NO":{nativeName:"Norsk (bokmÃ¥l)"},ne:{nativeName:"नà¥à¤ªà¤¾à¤²à¥"},"ne-NP":{nativeName:"नà¥à¤ªà¤¾à¤²à¥"},nl:{nativeName:"Nederlands"},"nl-BE":{nativeName:"Nederlands (België)"},"nl-NL":{nativeName:"Nederlands (Nederland)"},"nn-NO":{nativeName:"Norsk (nynorsk)"},oc:{nativeName:"Occitan"},"or-IN":{nativeName:"à¬à¬¡à¬¼à¬¿à¬"},pa:{nativeName:"ਪੰà¨à¨¾à¨¬à©"},"pa-IN":{nativeName:"ਪੰà¨à¨¾à¨¬à© (à¨à¨¾à¨°à¨¤ ਨà©à©°)"},pl:{nativeName:"Polski"},"pl-PL":{nativeName:"Polski"},"ps-AF":{nativeName:"Ù¾ÚØªÙ"},pt:{nativeName:"Português"},"pt-BR":{nativeName:"Português (Brasil)"},"pt-PT":{nativeName:"Português (Portugal)"},"qu-PE":{nativeName:"Qhichwa"},"rm-CH":{nativeName:"Rumantsch"},ro:{nativeName:"RomânÄ"},"ro-RO":{nativeName:"RomânÄ"},ru:{nativeName:"Ð ÑÑÑкий"},"ru-RU":{nativeName:"Ð ÑÑÑкий"},"sa-IN":{nativeName:"सà¤à¤¸à¥à¤à¥à¤¤à¤®à¥"},"se-NO":{nativeName:"Davvisámegiella"},sh:{nativeName:"ÑÑпÑкоÑ
ÑваÑÑки"},"si-LK":{nativeName:"à·à·à¶à·à¶½"},sk:{nativeName:"SlovenÄina"},"sk-SK":{nativeName:"SlovenÄina (Slovakia)"},sl:{nativeName:"SlovenÅ¡Äina"},"sl-SI":{nativeName:"SlovenÅ¡Äina"},"so-SO":{nativeName:"Soomaaliga"},sq:{nativeName:"Shqip"},"sq-AL":{nativeName:"Shqip"},sr:{nativeName:"СÑпÑки"},"sr-RS":{nativeName:"СÑпÑки (Serbia)"},su:{nativeName:"Basa Sunda"},sv:{nativeName:"Svenska"},"sv-SE":{nativeName:"Svenska"},sw:{nativeName:"Kiswahili"},"sw-KE":{nativeName:"Kiswahili"},ta:{nativeName:"தமிழà¯"},"ta-IN":{nativeName:"தமிழà¯"},te:{nativeName:"à°¤à±à°²à±à°à±"},"te-IN":{nativeName:"à°¤à±à°²à±à°à±"},tg:{nativeName:"забоÌни ÑоҷикӣÌ"},"tg-TJ":{nativeName:"Ñоҷикӣ"},th:{nativeName:"ภาษาà¹à¸à¸¢"},"th-TH":{nativeName:"ภาษาà¹à¸à¸¢ (à¸à¸£à¸°à¹à¸à¸¨à¹à¸à¸¢)"},fil:{nativeName:"Filipino"},tlh:{nativeName:"tlhIngan-Hol"},tr:{nativeName:"Türkçe"},"tr-TR":{nativeName:"Türkçe"},"tt-RU":{nativeName:"ÑаÑаÑÑа"},uk:{nativeName:"УкÑаÑнÑÑка"},"uk-UA":{nativeName:"УкÑаÑнÑÑка"},ur:{nativeName:"اردÙ"},"ur-PK":{nativeName:"اردÙ"},uz:{nativeName:"O'zbek"},"uz-UZ":{nativeName:"O'zbek"},vi:{nativeName:"Tiếng Viá»t"},"vi-VN":{nativeName:"Tiếng Viá»t"},"xh-ZA":{nativeName:"isiXhosa"},yi:{nativeName:"××Ö´××ש"},"yi-DE":{nativeName:"××Ö´××ש (German)"},zh:{nativeName:"䏿"},"zh-Hans":{nativeName:"䏿ç®ä½"},"zh-Hant":{nativeName:"䏿ç¹é«"},"zh-CN":{nativeName:"䏿ï¼ä¸å½å¤§éï¼"},"zh-HK":{nativeName:"䏿ï¼é¦æ¸¯ï¼"},"zh-SG":{nativeName:"ä¸æï¼æ°å å¡ï¼"},"zh-TW":{nativeName:"䏿ï¼å°ç£ï¼"},"zu-ZA":{nativeName:"isiZulu"}},fb=["ja-JP","ko-KR","other"],mb={value:"unsent"},hb={value:"scheduled"},pb={key:1,style:{display:"flex","flex-direction":"column"}},vb={key:0,class:"empty"},gb={class:"_fullinfo"},yb=["src"],wb=["onClick"],bb={key:0,style:{opacity:"0.7","padding-right":"0.5em"}},_b={key:1},kb={key:2},Db={key:3},Eb={style:{display:"flex",gap:"4px"}},Cb={key:0,style:{display:"flex",opacity:"0.6"}},Ab=["title"],$b=["title"],xb=["title"],Tb={key:0,class:"ti ti-home"},Mb={key:1,class:"ti ti-lock"},Ib=["title"],Sb=["title"],Fb=["onClick"],Bb={class:"_fullinfo"},Pb=["src"],Rb={key:0,style:{opacity:"0.7","padding-right":"0.5em"}},Lb={key:1},Nb={key:2},Ob={key:3},jb={style:{display:"flex",gap:"4px"}},Vb={key:0,style:{display:"flex",opacity:"0.6"}},zb={key:1,style:{display:"flex",opacity:"0.6"}},Hb=["title"],Ub=["title"],qb=["title"],Wb={key:0,class:"ti ti-home"},Kb={key:1,class:"ti ti-lock"},Jb=["title"],Gb=["title"],Yb={key:1,style:{opacity:"0.6","margin-top":"4px"}},Xb=["onClick"],Qb=["onClick"],Zb=ne({__name:"MkDraftsDialog",emits:["done","closed"],setup(e,{emit:t}){const n=t,i=Wt(),o=F("unsent"),s=F([]);je(r),Kt(r);function a(h,b){return{...h.data,id:b??h.id,createdAt:h.updatedAt,scheduledAt:h.scheduledAt,reason:h.reason,channel:h.channel,renote:h.renote,reply:h.reply,user:S}}function r(){const h=JSON.parse(ee.getItem("drafts")??"{}");s.value=Object.keys(h).map(b=>a(h[b],b))}function u(h){return h?h==="other"?w.ts.other:Ba[h]?.nativeName??h:""}function l(h){return h?`${w.ts.postingLanguage}: ${u(h)}`:""}function d(h){D(!1,h)}function v(h){const b=JSON.parse(ee.getItem("drafts")??"{}");delete b[h],ee.setItem("drafts",JSON.stringify(b)),r()}function p(h){const b=m.value.items.find(P=>P.id===h);if(!b)return;
21let E=b.channel?`channel:${b.channel.id}`:"";b.renote?E+=`renote:${b.renote.id}`:b.reply?E+=`reply:${b.reply.id}`:E+=`note:${b.id}`;const T=JSON.parse(ee.getItem("drafts")??"{}");T[E]=b,ee.setItem("drafts",JSON.stringify(T)),C(b.id),r(),o.value="unsent"}function C(h){oi("notes/scheduled/cancel",{draftId:h}).then(()=>{m.value?.reload()})}function D(h,b){n("done",{canceled:h,selected:b}),i.value?.close()}const m=F(),k={endpoint:"notes/scheduled/list",offsetMode:!0,limit:10,params:{}};return(h,b)=>{const E=we("MkAcct"),T=we("MkTime"),P=we("Mfm"),H=Ue("tooltip");return c(),q(Wu,{ref_key:"dialog",ref:i,height:500,width:800,onClick:b[1]||(b[1]=L=>D(!0)),onClose:b[2]||(b[2]=L=>D(!0)),onClosed:b[3]||(b[3]=L=>n("closed"))},{header:J(()=>[ie(M(_(w).ts.drafts),1)]),default:J(()=>[_(S).policies.canScheduleNote?(c(),q(db,{key:0,modelValue:o.value,"onUpdate:modelValue":b[0]||(b[0]=L=>o.value=L),style:{"margin-bottom":"var(--MI-margin)"}},{default:J(()=>[y("option",mb,M(_(w).ts.unsent),1),y("option",hb,M(_(w).ts.scheduled),1)]),_:1},8,["modelValue"])):I("",!0),o.value==="unsent"?(c(),g("div",pb,[s.value.length===0?(c(),g("div",vb,[y("div",gb,[y("img",{src:_(vo),class:"_ghost"},null,8,yb),y("div",null,M(_(w).ts.nothing),1)])])):I("",!0),(c(!0),g(pe,null,Re(s.value,L=>(c(),g("div",{key:L.id,class:f([h.$style.draftItem,h.$style.draftItemHover])},[y("div",{class:f(h.$style.draftNote),onClick:R=>d(L.id)},[y("div",{class:f(h.$style.draftNoteHeader)},[y("div",{class:f(h.$style.draftNoteDestination)},[L.channel?(c(),g("span",bb,[b[4]||(b[4]=y("i",{class:"ti ti-device-tv"},null,-1)),ie(" "+M(L.channel.name),1)])):I("",!0),L.renote?(c(),g("span",_b,[b[5]||(b[5]=y("i",{class:"ti ti-quote"},null,-1)),b[6]||(b[6]=ie()),W(E,{user:L.renote.user},null,8,["user"]),b[7]||(b[7]=ie()),y("span",null,M(L.renote.text),1)])):L.reply?(c(),g("span",kb,[b[8]||(b[8]=y("i",{class:"ti ti-arrow-back-up"},null,-1)),b[9]||(b[9]=ie()),W(E,{user:L.reply.user},null,8,["user"]),b[10]||(b[10]=ie()),y("span",null,M(L.reply.text),1)])):(c(),g("span",Db,[...b[11]||(b[11]=[y("i",{class:"ti ti-pencil"},null,-1)])]))],2),y("div",{class:f(h.$style.draftNoteInfo)},[y("div",Eb,[L.scheduledAt?(c(),g("div",Cb,[b[12]||(b[12]=y("span",null,[y("i",{class:"ti ti-calendar-clock",style:{"margin-right":"4px"}})],-1)),W(T,{time:L.scheduledAt}
21,null,8,["time"])])):I("",!0),W(T,{time:L.createdAt,colored:""},null,8,["time"])]),typeof L.dimension=="number"&&L.dimension>0?(c(),g("span",{key:0,class:f(h.$style.draftNoteMeta),title:_(w).tsx.dimensionWithNumber({dimension:L.dimension})},[b[13]||(b[13]=y("i",{class:"ti ti-cube"},null,-1)),y("span",null,M(L.dimension),1)],10,Ab)):I("",!0),L.lang?(c(),g("span",{key:1,class:f(h.$style.draftNoteMeta),title:l(L.lang)},[b[14]||(b[14]=y("i",{class:"ti ti-language"},null,-1)),y("span",null,M(L.lang),1)],10,$b)):I("",!0),L.visibility!=="public"?(c(),g("span",{key:2,title:_(w).ts._visibility[L.visibility]},[L.visibility==="home"?(c(),g("i",Tb)):L.visibility==="followers"?(c(),g("i",Mb)):L.visibility==="specified"?(c(),g("i",{key:2,ref_for:!0,ref:"specified",class:"ti ti-mail"},null,512)):I("",!0)],8,xb)):I("",!0),L.localOnly?(c(),g("span",{key:3,title:_(w).ts._visibility.disableFederation},[...b[15]||(b[15]=[y("i",{class:"ti ti-rocket-off"},null,-1)])],8,Ib)):I("",!0),L.channel?(c(),g("span",{key:4,title:L.channel.name},[...b[16]||(b[16]=[y("i",{class:"ti ti-device-tv"},null,-1)])],8,Sb)):I("",!0)],2)],2),y("div",null,[L.cw?(c(),g("p",{key:0,class:f(h.$style.draftNoteCw)},[W(P,{text:L.cw},null,8,["text"])],2)):I("",!0),W(Qs,{class:f(h.$style.draftNoteText),note:L},null,8,["class","note"])])],10,wb),ve((c(),g("button",{class:f([h.$style.button,"_button"]),onClick:R=>v(L.id)},[...b[17]||(b[17]=[y("i",{class:"ti ti-trash"},null,-1)])],10,Fb)),[[H,_(w).ts.delete]])],2))),128))])):I("",!0),o.value==="scheduled"?(c(),q(cb,{key:2,ref_key:"scheduledPaginationEl",ref:m,pagination:k},{empty:J(()=>[y("div",Bb,[y("img",{src:_(vo),class:"_ghost"},null,8,Pb),y("div",null,M(_(w).ts.nothing),1)])]),default:J(({items:L})=>[(c(!0),g(pe,null,Re(L.map(R=>a(R)),R=>(c(),g("div",{key:R.id,class:f(h.$style.draftItem)},[y("div",{class:f(h.$style.draftNote)},[y("div",{class:f(h.$style.draftNoteHeader)},[y("div",{class:f(h.$style.draftNoteDestination)},[R.channel?(c(),g("span",Rb,[b[18]||(b[18]=y("i",{class:"ti ti-device-tv"},null,-1)),ie(" "+M(R.channel.name),1)])):I("",!0),R.renote?(c(),g("span",Lb,[b[19]||(b[19]=y("i",{class:"ti ti-quote"},null,-1)),b[20]||(b[20]=ie()),W(E,{user:R.renote.user},null,8,["user"]),b[21]||(b[21]=ie()),y("span",null,M(R.renote.text),1)])):R.reply?(c(),g("span",Nb,[b[22]||(b[22]=y("i",{class:"ti ti-arrow-back-up"},null,-1)),b[23]||(b[23]=ie()),W(E,{user:R.reply.user},null,8,["user"]),b[24]||(b[24]=ie()),y("span",null,M(R.reply.text),1)])):(c(),g("span",Ob,[...b[25]||(b[25]=[y("i",{class:"ti ti-pencil"},null,-1)])]))],2),y("div",{class:f(h.$style.draftNoteInfo)},[y("div",jb,[R.scheduledAt?(c(),g("div",Vb,[b[26]||(b[26]=y("span",null,[y("i",{class:"ti ti-calendar-clock",style:{"margin-right":"4px"}})],-1)),W(T,{time:R.scheduledAt}
21,null,8,["time"])])):(c(),g("div",zb,[...b[27]||(b[27]=[y("span",null,[y("i",{class:"ti ti-exclamation-circle"})],-1)])])),W(T,{time:R.createdAt,colored:""},null,8,["time"])]),typeof R.dimension=="number"&&R.dimension>0?(c(),g("span",{key:0,class:f(h.$style.draftNoteMeta),title:_(w).tsx.dimensionWithNumber({dimension:R.dimension})},[b[28]||(b[28]=y("i",{class:"ti ti-cube"},null,-1)),y("span",null,M(R.dimension),1)],10,Hb)):I("",!0),R.lang?(c(),g("span",{key:1,class:f(h.$style.draftNoteMeta),title:l(R.lang)},[b[29]||(b[29]=y("i",{class:"ti ti-language"},null,-1)),y("span",null,M(R.lang),1)],10,Ub)):I("",!0),R.visibility!=="public"?(c(),g("span",{key:2,title:_(w).ts._visibility[R.visibility]},[R.visibility==="home"?(c(),g("i",Wb)):R.visibility==="followers"?(c(),g("i",Kb)):R.visibility==="specified"?(c(),g("i",{key:2,ref_for:!0,ref:"specified",class:"ti ti-mail"},null,512)):I("",!0)],8,qb)):I("",!0),R.localOnly?(c(),g("span",{key:3,title:_(w).ts._visibility.disableFederation},[...b[30]||(b[30]=[y("i",{class:"ti ti-rocket-off"},null,-1)])],8,Jb)):I("",!0),R.channel?(c(),g("span",{key:4,title:R.channel.name},[...b[31]||(b[31]=[y("i",{class:"ti ti-device-tv"},null,-1)])],8,Gb)):I("",!0)],2)],2),y("div",null,[R.cw?(c(),g("p",{key:0,class:f(h.$style.draftNoteCw)},[W(P,{text:R.cw},null,8,["text"])],2)):I("",!0),W(Qs,{class:f(h.$style.draftNoteText),note:R},null,8,["class","note"]),R.reason?(c(),g("div",Yb,M(_(w).ts.error)+": "+M(R.reason),1)):I("",!0)])],2),ve((c(),g("button",{class:f([h.$style.button,"_button"]),onClick:Q=>p(R.id)},[...b[32]||(b[32]=[y("i",{class:"ti ti-calendar-x"},null,-1)])],10,Xb)),[[H,_(w).ts.unschedule]]),ve((c(),g("button",{class:f([h.$style.button,"_button"]),onClick:Q=>C(R.id)},[...b[33]||(b[33]=[y("i",{class:"ti ti-trash"},null,-1)])],10,Qb)),[[H,_(w).ts.delete]])],2))),128))]),_:1},512)):I("",!0)]),_:1},512)}}}),e1="xzKUw",t1="xa3mv",n1="xrTkw",i1="xyHie",o1="xKjdY",s1="xkZ0V",a1="xdg1X",r1="xCf47",l1="xnSX8",u1="x88O2",c1={draftItem:e1,draftItemHover:t1,draftNote:n1,draftNoteHeader:i1,draftNoteDestination:o1,draftNoteInfo:s1,draftNoteMeta:a1,draftNoteCw:r1,draftNoteText:l1,button:u1},d1={$style:c1},f1=re(Zb,[["__cssModules",d1]]),Jr=e=>e==null?"N/A":jf.format(e),m1=ne({__name:"MkPostForm.TextCounter",props:{textLength:{}},setup(e){Mo(o=>({v6d9ad105:Math.min(100,i.value)+"%"}));const t=e,n=G(()=>he?he.maxNoteTextLength:1e3),i=G(()=>t.textLength/n.value*100);return(o,s)=>(c(),g("div",{class:f([o.$style.textCountRoot])},[y("div",{class:f(o.$style.textCountLabel)},M(_(w).ts.textCount),3),y("div",{class:f([o.$style.textCount,{[o.$style.danger]:i.value>100},{[o.$style.warning]:i.value>90&&i.value<=100}])},[y("div",{class:f(o.$style.textCountGraph)},null,2),y("div",null,[y("span",{class:f(o.$style.textCountCurrent)},M(_(Jr)(e.textLength)),3),ie(" / "+M(_(Jr)(n.value)),1)])],2)],2))}}),h1="xd9Do",p1="x1W09",v1="x1BUx",g1="xv90r",y1="xbzwI",w1="xoDpL",b1="x3Jqs",_1={textCountRoot:h1,textCountLabel:p1,textCount:v1,danger:g1,warning:y1,textCountGraph:w1,textCountCurrent:b1},k1={$style:_1},D1=re(m1,[["__cssModules",k1]]),Qt=e=>`/notes/${e.id}`,Ku=e=>Ps(e),V5=e=>e.name||e.username,Pa=(e,t,n=!1)=>`${n?mt:""}/@${Ku(e)}${t?`/${t}`:""}`;function Vo(e,t,n=300){let i=!1,o=!1,s,a,r;const u=()=>{if(l(),!i||e.value==null)return;const m=e.value instanceof Element?e.value:e.value.$el;if(!window.document.body.contains(m))return;const k=F(!0);t(k),a=()=>{k.value=!1},r=window.setInterval(()=>{if(e.value==null||!window.document.body.contains(e.value instanceof Element?e.value:e.value.$el)){if(!i)return;i=!1,window.clearTimeout(s),l(),window.clearInterval(r)}},1e3)},l=()=>{a!=null&&(a(),a=null)},d=()=>{i||o||(i=!0,s=window.setTimeout(u,n))},v=()=>{i&&(i=!1,window.clearTimeout(s),window.clearInterval(r),l())},p=()=>{o=!0,!i&&(i=!0,s=window.setTimeout(u,n))},C=()=>{i&&(i=!1,window.clearTimeout(s),window.clearInterval(r),l())},D=le(e,()=>{if(e.value){D();const m=e.value instanceof Element?e.value:e.value.$el;m.addEventListener("mouseover",d,{passive:!0}),m.addEventListener("mouseleave",v,{passive:!0}),m.addEventListener("touchstart",p,{passive:!0}),m.addEventListener("touchend",C,{passive:!0}),m.addEventListener("click",l,{passive:!0})}},{immediate:!0,flush:"post"});it(()=>{l()})}const E1=["src"],C1=ne({__name:"MkRoleBadgeIcon",props:{userId:{},role:{}},setup(e){const t=e,n=F(),i=F(null);async function o(){if(!he.enableSkebStatus||t.role.behavior!=="skeb"){i.value=null;return}try{i.value=await Ro("users/get-skeb-status",{userId:t.userId})}catch{i.value=null}}t.role.behavior==="skeb"&&Vo(n,async r=>{i.value===null&&await o(),i.value!==null&&await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BaoUgUYw.js"),__vite__mapDeps([119,2,17,3,4,120]))),{showing:r,skebStatus:i.value,source:n.value instanceof HTMLElement?n.value:n.value?.$el},{},"closed")});const s=G(()=>{if(t.role.behavior==="skeb"&&i.value!==null)return"cursor: pointer;"});async function a(r){r.behavior==="skeb"&&(i.value===null&&await o(),i.value!==null&&window.open(`https://skeb.jp/@${i.value.screenName}`,"_blank","noopener"))}return(r,u)=>
21(c(),g("img",{ref_key:"el",ref:n,src:e.role.iconUrl,style:Ge(s.value),onClick:u[0]||(u[0]=l=>a(e.role))},null,12,E1))}}),A1=["title"],$1={key:1},x1=["title"],T1={key:0,class:"ti ti-home"},M1={key:1,class:"ti ti-lock"},I1={key:2,ref:"specified",class:"ti ti-mail"},S1=["title"],F1=["title"],B1=ne({__name:"MkNoteHeader",props:{note:{}},setup(e){const t=tt(ze.mock,!1);return(n,i)=>{const o=we("MkUserName"),s=we("MkA"),a=we("MkAcct"),r=we("MkTime"),u=Ue("user-preview"),l=Ue("tooltip");return c(),g("header",{class:f(n.$style.root)},[_(t)?(c(),g("div",{key:0,class:f(n.$style.name)},[W(o,{user:e.note.user},null,8,["user"])],2)):ve((c(),q(s,{key:1,class:f(n.$style.name),to:_(Pa)(e.note.user)},{default:J(()=>[W(o,{user:e.note.user},null,8,["user"])]),_:1},8,["class","to"])),[[u,e.note.user.id]]),e.note.user.isBot?(c(),g("div",{key:2,class:f(n.$style.isBot)},"bot",2)):I("",!0),y("div",{class:f(n.$style.username)},[W(a,{user:e.note.user},null,8,["user"])],2),e.note.user.badgeRoles?(c(),g("div",{key:3,class:f(n.$style.badgeRoles)},[(c(!0),g(pe,null,Re(e.note.user.badgeRoles,(d,v)=>ve((c(),q(C1,{key:v,userId:e.note.user.id,role:d,class:f(n.$style.badgeRole)},null,8,["userId","role","class"])),[[l,d.name]])),128))],2)):I("",!0),y("div",{class:f(n.$style.info)},[e.note.dimension?(c(),g("span",{key:0,style:{opacity:"0.75"},title:_(w).tsx.dimensionWithNumber({dimension:e.note.dimension})},[y("span",null,M(e.note.dimension),1),i[0]||(i[0]=y("i",{class:"ti ti-cube",style:{"margin-left":"0.25em"}},null,-1))],8,A1)):I("",!0),_(t)?(c(),g("div",$1,[W(r,{time:e.note.createdAt,colored:""}
21,null,8,["time"])])):(c(),q(s,{key:2,to:_(Qt)(e.note)},{default:J(()=>[W(r,{time:e.note.createdAt,colored:""},null,8,["time"])]),_:1},8,["to"])),e.note.visibility!=="public"?(c(),g("span",{key:3,title:_(w).ts._visibility[e.note.visibility]},[e.note.visibility==="home"?(c(),g("i",T1)):e.note.visibility==="followers"?(c(),g("i",M1)):e.note.visibility==="specified"?(c(),g("i",I1,null,512)):I("",!0)],8,x1)):I("",!0),e.note.localOnly?(c(),g("span",{key:4,title:_(w).ts._visibility.disableFederation},[...i[1]||(i[1]=[y("i",{class:"ti ti-rocket-off"},null,-1)])],8,S1)):I("",!0),e.note.channel?(c(),g("span",{key:5,title:e.note.channel.name},[...i[2]||(i[2]=[y("i",{class:"ti ti-device-tv"},null,-1)])],8,F1)):I("",!0)],2)],2)}}}),P1="xCPfz",R1="xngrp",L1="xEKlD",N1="xBLVI",O1="xAtlm",j1="x5vC9",V1="xks9Y",z1={root:P1,name:R1,isBot:L1,username:N1,info:O1,badgeRoles:j1,badgeRole:V1},H1={$style:z1},U1=re(B1,[["__cssModules",H1]]),q1=ne({__name:"MkNoteSimple",props:{note:{}},setup(e){const t=F(!1);return(n,i)=>{const o=we("MkAvatar"),s=we("Mfm");return c(),g("div",{class:f(n.$style.root)},[W(o,{class:f(n.$style.avatar),user:e.note.user,link:"",preview:""},null,8,["class","user"]),y("div",{class:f(n.$style.main)},[W(U1,{class:f(n.$style.header),note:e.note,mini:!0},null,8,["class","note"]),y("div",null,[e.note.cw!=null?(c(),g("p",{key:0,class:f(n.$style.cw)},[e.note.cw!=""?(c(),q(s,{key:0,style:{"margin-right":"8px"},text:e.note.cw,author:e.note.user,nyaize:"respect",emojiUrls:e.note.emojis},null,8,["text","author","emojiUrls"])):I("",!0),W(Lu,{modelValue:t.value,"onUpdate:modelValue":i[0]||(i[0]=a=>t.value=a),text:e.note.text,files:e.note.files,poll:e.note.poll},null,8,["modelValue","text","files","poll"])],2)):I("",!0),ve(y("div",null,[W(Qs,{class:f(n.$style.text),note:e.note},null,8,["class","note"])],512),[[_t,e.note.cw==null||t.value]])])],2)],2)}}}),W1="xynJn",K1="xCcjq",J1="xfZLP",G1="xhuTd",Y1="xDYPO",X1="xpf5j",Q1={root:W1,avatar:K1,main:J1,header:G1,cw:Y1,text:X1},Z1={$style:Q1},Gr=re(q1,[["__cssModules",Z1]]);function ws(e){return xn.extract(e,i=>i.type==="mention").map(i=>i.props)}function e_(e,t,n){function i(L,R,Q,Z,oe,be){let ue=1-oe,ce=1-be;return L*ue*ce+R*oe*ce+Q*ue*be+Z*oe*be}let o,s,a,r,u,l,d,v,p,C,D,m,k,h,b,E,T,P,H;for(o=0;o<t.height;++o)for(a=o/n,r=Math.floor(a),u=Math.ceil(a)>e.height-1?e.height-1:Math.ceil(a),s=0;s<t.width;++s)l=s/n,d=Math.floor(l),v=Math.ceil(l)>e.width-1?e.width-1:Math.ceil(l),p=(s+t.width*o)*4,C=(d+e.width*r)*4,D=(v+e.width*r)*4,m=(d+e.width*u)*4,k=(v+e.width*u)*4,h=l-d,b=a-r,E=i(e.data[C],e.data[D],e.data[m],e.data[k],h,b),t.data[p]=E,T=i(e.data[C+1],e.data[D+1],e.data[m+1],e.data[k+1],h,b),t.data[p+1]=T,P=i(e.data[C+2],e.data[D+2],e.data[m+2],e.data[k+2],h,b),t.data[p+2]=P,H=i(e.data[C+3],e.data[D+3],e.data[m+3],e.data[k+3],h,b),t.data[p+3]=H}var _o;function Ju(){return typeof navigator>"u"||!navigator.userAgent?!1:/iPad|iPhone|iPod/.test(navigator.userAgent)}function Gu(e,t,n){return Math.min(Math.floor(e*t),n.maxHeight)}function t_(e,t){const n=t.width/t.height;let i=Math.min(t.width,e.maxWidth,n*e.maxHeight);e.maxSize&&e.maxSize>0&&e.maxSize<t.width*t.height/1e3&&(i=Math.min(i,Math.floor(e.maxSize*1e3/t.height))),e.scaleRatio&&(i=Math.min(i,Math.floor(e.scaleRatio*t.width)));const o=Gu(t.height,i/t.width,e);if(e.debug&&(console.log("browser-image-resizer: original image size = "+t.width+" px (width) X "+t.height+" px (height)"),console.log("browser-image-resizer: scaled image size = "+i+" px (width) X "+o+" px (height)")),i<=0&&(i=1,console.warn("browser-image-resizer: image size is too small")),Ju()&&i*o>167777216)throw console.error("browser-image-resizer: image size is too large for iOS WebKit.",i,o),new Error("browser-image-resizer: image size is too large for iOS WebKit.");return i}function Zs(e,t){const n=e?.getContext("2d")?.getImageData(0,0,e.width,e.height),i=t?.getContext("2d")?.createImageData(t.width,t.height);if(!n||!i)throw Error("Canvas is empty (scaleCanvasWithAlgorithm). You should run this script after the document is ready.");return{srcImgData:n,destImgData:i}}function Yr(){_o||(_o=new s_)}async function n_(e,t){const n=t.outputWidth/e.width,i=new OffscreenCanvas(Math.floor(t.outputWidth),Gu(e.height,n,t));switch(t.argorithm){case"hermite":{Yr(),await _o.resampleAuto(e,i,t);break}case"hermite_single":{const{srcImgData:o,destImgData:s}=Zs(e,i);Yr(),_o.resampleSingle(o,s,t),i?.getContext("2d")?.putImageData(s,0,0);break}case"bilinear":{const{srcImgData:o,destImgData:s}=Zs(e,i);e_(o,s,n),i?.getContext("2d")?.putImageData(s,0,0);break}default:{i.getContext("2d")?.drawImage(e,0,0,i.width,i.height);break}}return i}function i_(e){const t=new OffscreenCanvas(e.width/2,e.height/2);return t?.getContext("2d")?.drawImage(e,0,0,t.width,t.height),t}async function o_({img:e,config:t}){t.debug&&console.log("browser-image-resizer: Scale: Started",e);let n;if(e instanceof OffscreenCanvas)n=e;else{const s=await createImageBitmap(e);if(Ju()&&s.width*s.height>16777216){const a=Math.sqrt(16777216/(s.width*s.height));t.debug&&console.log("browser-image-resizer: scale: Image is too large in iOS WebKit"),n=new OffscreenCanvas(Math.floor(s.width*a),Math.floor(s.height*a)),n.getContext("2d")?.drawImage(s,0,0,n.width,n.height)}else n=new OffscreenCanvas(s.width,s.height),n.getContext("2d")?.drawImage(s,0,0)}if(!n?.getContext("2d"))throw Error("browser-image-resizer: Canvas Context is empty.");const i=t_(t,n);if(!i)throw Error(`browser-image-resizer: maxWidth is ${i}!!`);for(t.debug&&console.log(`browser-image-resizer: scale: maxWidth is ${i}`);t.processByHalf&&n.width>=2*i;)t.debug&&console.log(`browser-image-resizer: scale: Scaling canvas by half from ${n.width}`),n=i_(n);return n.width>i&&(t.debug&&console.log(`browser-image-resizer: scale: Scaling canvas by ${t.argorithm} from ${n.width} to ${i}`),n=await n_(n,Object.assign(t,{outputWidth:i}))),t.mimeType===null?n:await n.convertToBlob({type:t.mimeType,quality:t.quality})}var s_=class{constructor(){this.workersArchive=[],this.cores=Math.min(navigator.hardwareConcurrency||4,4),this.workerBlobURL=globalThis.URL.createObjectURL(new Blob(["(",function(){onmessage=function(e){e.data.debug&&(console.log("browser-image-resizer: hermite worker: start",e.data.core,e.data),console.time("work"));const t=e.data.core,n=e.data.srcWidth,i=e.data.srcHeight,o=e.data.destWidth,s=e.data.destHeight,a=n/o,r=i/s,u=Math.ceil(a/2),l=Math.ceil(r/2),d=new Uint8ClampedArray(e.data.source),v=o*s*4,p=new ArrayBuffer(v),C=new Uint8ClampedArray(p,0,v);for(let m=0;m<s;m++)for(let k=0;k<o;k++){const h=(k+m*o)*4;let b=0,E=0,T=0,P=0,H=0,L=0,R=0;const Q=m*r,Z=Math.floor(k*a),oe=Math.min(Math.ceil((k+1)*a),n),be=Math.floor(m*r),ue=Math.min(Math.ceil((m+1)*r),i);for(let ce=be;ce<ue;ce++){let Fe=Math.abs(Q-ce)/l,j=k*a,me=Fe*Fe;for(let Me=Z;Me<oe;Me++){let X=Math.abs(j-Me)/u,te=Math.sqrt(me+X*X);if(te>=1)continue;b=2*te*te*te-3*te*te+1;let se=4*(Me+ce*n);R+=b*d[se+3],T+=b,d[se+3]<255&&(b=b*d[se+3]/250),P+=b*d[se],H+=b*d[se+1],L+=b*d[se+2],E+=b}}C[h]=P/E,C[h+1]=H/E,C[h+2]=L/E,C[h+3]=R/T}const D={core:t,target:C};globalThis.postMessage(D,[C.buffer]),e.data.debug&&(console.timeEnd("work"),console.log("browser-image-resizer: Worker: end",e.data.core))}}.toString(),")()"],{type:"application/javascript"}))}resampleAuto(e,t,n){if(globalThis.Worker&&this.cores>1&&n?.argorithm!=="hermite_single")return this.resample(e,t,n);{const{srcImgData:i,destImgData:o}=Zs(e,t);this.resampleSingle(i,o,n),t.getContext("2d").putImageData(o,0,0);return}}async resample(e,t,n){return new Promise((i,o)=>{n.debug&&console.time("hermite_multi");const s=e.height/t.height;if(this.workersArchive.length>0)for(let p=0;p<this.cores;p++)this.workersArchive[p]!=null&&(this.workersArchive[p].terminate(),delete this.workersArchive[p]);
21this.workersArchive=new Array(this.cores);const a=e.getContext("2d");if(!a)return o("Canvas is empty (resample)");n.debug&&(console.log("browser-image-resizer: hermite_multi: ",this.cores,"cores"),console.log("browser-image-resizer: source size: ",e.width,e.height,"ratio_h: ",s),console.log("browser-image-resizer: target size: ",t.width,t.height));const r=[],u=Math.ceil(e.height/this.cores/2)*2;let l=-1;for(let p=0;p<this.cores;p++){const C=l+1;if(C>=e.height)continue;l=Math.min(C+u-1,e.height-1);const D=Math.min(u,e.height-C);n.debug&&console.log("browser-image-resizer: source split: ","#"+p,C,l,"height: "+D),r.push({source:a.getImageData(0,C,e.width,u),startY:Math.ceil(C/s),height:D})}const d=t.getContext("2d");if(!d)return o("Canvas is empty (resample dest)");let v=r.length;for(let p=0;p<r.length;p++){const C=new Worker(this.workerBlobURL);this.workersArchive[p]=C,C.onmessage=m=>{v--;const k=m.data.core,h=Math.ceil(r[k].height/s),b=d.createImageData(t.width,h);b.data.set(m.data.target),d.putImageData(b,0,r[k].startY),v<=0&&(i(),n.debug&&console.timeEnd("hermite_multi")),this.workersArchive[k].terminate(),delete this.workersArchive[k]},C.onerror=m=>o(m);const D={srcWidth:e.width,srcHeight:r[p].height,destWidth:t.width,destHeight:Math.ceil(r[p].height/s),core:p,source:r[p].source.data.buffer,debug:n.debug};C.postMessage(D,[D.source])}})}resampleSingle(e,t,n){const i=e.width/t.width,o=e.height/t.height,s=Math.ceil(i/2),a=Math.ceil(o/2),r=e.data,u=t.data;n.debug&&(console.log("browser-image-resizer: source size: ",e.width,e.height,"ratio_h: ",o),console.log("browser-image-resizer: target size: ",t.width,t.height),console.time("hermite_single"));for(let l=0;l<t.height;l++)for(let d=0;d<t.width;d++){const v=(d+l*t.width)*4;let p=0,C=0,D=0,m=0,k=0,h=0,b=0;const E=l*o,T=Math.floor(d*i),P=Math.min(Math.ceil((d+1)*i),e.width),H=Math.floor(l*o),L=Math.min(Math.ceil((l+1)*o),e.height);for(let R=H;R<L;R++){let Q=Math.abs(E-R)/a,Z=d*i,oe=Q*Q;for(let be=T;be<P;be++){let ue=Math.abs(Z-be)/s,ce=Math.sqrt(oe+ue*ue);if(ce>=1)continue;p=2*ce*ce*ce-3*ce*ce+1;let Fe=4*(be+R*e.width);b+=p*r[Fe+3],D+=p,r[Fe+3]<255&&(p=p*r[Fe+3]/250),m+=p*r[Fe],k+=p*r[Fe+1],h+=p*r[Fe+2],C+=p}}u[v]=m/C,u[v+1]=k/C,u[v+2]=h/C,u[v+3]=b/D}n.debug&&console.timeEnd("hermite_single")}},a_={argorithm:"null",processByHalf:!0,quality:.5,maxWidth:800,maxHeight:600,debug:!1,mimeType:"image/jpeg"};async function r_(e,t){const n=Object.assign({},a_,t);return o_({img:e,config:n})}class l_{constructor(t){this.source=t}async size(){return(await this.source.stat()).size}async read(t,n){const i=new Uint8Array(n);return await this.source.read({buffer:i,position:t,length:n}),i}}class u_{constructor(t){this.source=t}async size(){return this.source.size}async read(t,n){return new Uint8Array(await this.source.slice(t,t+n).arrayBuffer())}}function ii(e){if(e instanceof Blob)return new u_(e);if(!e||e.constructor.name!=="FileHandle")throw new Error(`Unknown source type: ${e.constructor.name}. Please pass an instance of Blob or FileHandle if in Node.js.`);return new l_(e)}async function Zi(e,t){return(await e.read(t,1))[0]}async function Xr(e,t){for(var n=0;;){const i=await Zi(e,t+n);if(!i)break;n+=i+1}return n+1}async function Yu(e){const t=ii(e);var i=new TextDecoder().decode(await t.read(0,3));return i==="GIF"}async function c_(e){var t,n,i,o=0,s=0;if(!await Yu(e))return!1;const a=ii(e),r=await a.size();for(t=await Zi(a,10),n=t&128,i=t&7,o+=6,o+=7,o+=n?3*Math.pow(2,i+1):0;s<2&&o<r;)switch(await Zi(a,o)){case 44:s+=1,t=await Zi(a,o+9),n=t&128,i=t&7,o+=10,o+=n?3*Math.pow(2,i+1):0,o+=await Xr(a,o+1)+1;break;case 33:o+=2,o+=await Xr(a,o);break;case 59:o=r;break;default:o=r;break}return s>1}async function Xu(e){var n=[...await ii(e).read(0,8)].map(i=>i.toString(16).padStart(2,"0")).join("");return n==="89504e470d0a1a0a"}function d_(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}async function f_(e){if(!await Xu(e))return!1;var t=!1,n=!1,i=!1,o=null,s=8;const a=ii(e),r=await a.size(),u=new TextDecoder;for(;s<r&&(!t||!n||!i);){var l=d_(await a.read(s,4)).getUint32(0),d=u.decode(await a.read(s+4,4));switch(d){case"acTL":t=!0;break;case"IDAT":if(!t||o!=="fcTL"&&o!=="IDAT")return!1;n=!0;break;case"fdAT":if(!n||o!=="fcTL"&&o!=="fdAT")return!1;i=!0;break}o=d,s+=8+l+4}return t&&n&&i}async function Qu(e){const t=ii(e),n=new TextDecoder;return n.decode(await t.read(0,4))==="RIFF"&&n.decode(await t.read(8,4))==="WEBP"}async function m_(e){if(!await Qu(e))return!1;const t=ii(e),n=new TextDecoder;return["VP8 ","VP8X"].includes(n.decode(await t.read(12,4)))?n.decode(await t.read(30,4))==="ANIM":!1}async function h_(e){return await Yu(e)?await c_(e):await Xu(e)?await f_(e):await Qu(e)?await m_(e):!1}let bs;function p_(){if(bs===void 0){const e=window.document.createElement("canvas");e.width=1,e.height=1,bs=e.toDataURL("image/webp").startsWith("data:image/webp")}return bs}const v_={"image/jpeg":{quality:.9,mimeType:"image/webp"},"image/png":{quality:1,mimeType:"image/webp"},"image/webp":{quality:.9,mimeType:"image/webp"},"image/svg+xml":{quality:1,mimeType:"image/webp"}},g_={"image/jpeg":{quality:.85,mimeType:"image/jpeg"},"image/png":{quality:1,mimeType:"image/png"},"image/webp":{quality:.85,mimeType:"image/jpeg"},"image/svg+xml":{quality:1,mimeType:"image/png"}};async function y_(e){const t=(p_()?v_:g_)[e.type];if(!(!t||await h_(e)))return{maxWidth:4096,maxHeight:4096,debug:!0,...t}}
21const On=F([]),w_={"image/webp":"webp","image/jpeg":"jpg","image/png":"png"};function Zu(e,t,n,i=!1){if(S==null)throw new Error("Not logged in");const o=typeof t=="string"?t:t?.id;return e.size>he.maxFileSize||e.size>S.policies.maxFileSizeMb*1024*1024?(et({type:"error",title:w.ts.failedToUpload,text:w.ts.cannotUploadBecauseExceedsFileSizeLimit}),Promise.reject()):new Promise((s,a)=>{const r=Ii(),u=new FileReader;u.onload=async()=>{const l=n??e.name??"untitled",d=l.split(".").length>1?"."+l.split(".").pop():"",v=To({id:r,name:A.s.keepOriginalFilename?l:r+d,progressMax:void 0,progressValue:void 0,img:window.URL.createObjectURL(e)});On.value.push(v);const p=i?void 0:await y_(e);let C;if(p)try{const h=await r_(e,p);(h.size<e.size||e.type==="image/webp")&&(C=h),v.name=e.type!==p.mimeType?`${v.name}.${w_[p.mimeType]}`:v.name}catch(h){console.error("Failed to resize image",h)}const D=v.name.trim()||"untitled",m=new FormData;m.append("force","true"),v.name=D,m.append("file",C??e,D),m.append("name",D),o&&m.append("folderId",o);const k=new XMLHttpRequest;k.open("POST",ni+"/drive/files/create",!0),k.withCredentials=!0,k.setRequestHeader("Authorization",`Bearer ${S.token}`),k.setRequestHeader("X-Client-Transaction-Id",Bn("upload")),k.onload=(h=>{if(k.status!==200||h.target==null||h.target.response==null){if(On.value=On.value.filter(E=>E.id!==r),k.status===413)et({type:"error",title:w.ts.failedToUpload,text:w.ts.cannotUploadBecauseExceedsFileSizeLimit});else if(k.status===524)et({type:"error",title:w.ts.failedToUpload,text:w.ts.cannotUploadBecauseTimeout});else if(h.target?.response){const E=JSON.parse(h.target.response);E.error?.id==="bec5bd69-fba3-43c9-b4fb-2894b66ad5d2"?et({type:"error",title:w.ts.failedToUpload,text:w.ts.cannotUploadBecauseInappropriate}):E.error?.id==="d08dbc37-a6a9-463a-8c47-96c32ab5f064"?et({type:"error",title:w.ts.failedToUpload,text:w.ts.cannotUploadBecauseNoFreeSpace}):et({type:"error",title:w.ts.failedToUpload,text:`${E.error?.message} 22${E.error?.code} 23${E.error?.id}`})}else et({type:"error",title:"Failed to upload",text:`${JSON.stringify(h.target?.response)}, ${JSON.stringify(k.response)}`});a();return}const b=JSON.parse(h.target.response);s(b),On.value=On.value.filter(E=>E.id!==r)}),k.upload.onprogress=h=>{h.lengthComputable&&(v.progressMax=h.total,v.progressValue=h.loaded)},k.send(m)},u.readAsArrayBuffer(e)})}function Qr(e,t){const n=t?.uploadFolder??A.s.uploadFolder,i=t?.keepOriginal??!1,o=t?.nameConverter??(()=>{});return new Promise((s,a)=>{const r=window.document.createElement("input");r.type="file",r.multiple=e,r.onchange=()=>{if(!r.files)return s([]);const u=Array.from(r.files,l=>Zu(l,n,o(l),i));Promise.all(u).then(l=>{s(l)}).catch(l=>{}),window.__misskey_input_ref__=null},window.__misskey_input_ref__=r,r.click()})}function b_(e){return new Promise((t,n)=>{zA(e).then(i=>{t(i)})})}function __(){return new Promise((e,t)=>{qo({title:w.ts.uploadFromUrl,type:"url",placeholder:w.ts.uploadFromUrlDescription}).then(({canceled:n,result:i})=>{if(n)return;const o=Math.random().toString(),s=Xn().useChannel("main");s.on("urlUploadFinished",a=>{a.marker===o&&(e(a.file),s.dispose())}),Ae("drive/files/upload-from-url",{url:i,folderId:A.s.uploadFolder,marker:o}),et({title:w.ts.uploadFromUrlRequested,text:w.ts.uploadFromUrlMayTakeTime})})})}function ec(e,t,n){return new Promise((i,o)=>{st([t?{text:t,type:"label"}:void 0,{text:w.ts.upload+" ("+w.ts.compress+")",icon:"ti ti-upload",action:()=>Qr(n,{keepOriginal:!1}).then(s=>i(s))},{text:w.ts.upload,icon:"ti ti-upload",action:()=>Qr(n,{keepOriginal:!0}).then(s=>i(s))},{text:w.ts.fromDrive,icon:"ti ti-cloud",action:()=>b_(n).then(s=>i(s))},{text:w.ts.fromUrl,icon:"ti ti-link",action:()=>__().then(s=>i([s]))}],e)})}function z5(e,t=null){return ec(e,t,!1).then(n=>n[0])}function k_(e,t=null){return ec(e,t,!0)}const D_=ne({__name:"MkInfo",props:{warn:{type:Boolean},closable:{type:Boolean},rounded:{type:Boolean,default:!0}},emits:["close"],setup(e,{emit:t}){const n=t;function i(){n("close")}return(o,s)=>(c(),g("div",{class:f([[o.$style.root,{[o.$style.warn]:e.warn,[o.$style.rounded]:e.rounded}],"_selectable"])},[e.warn?(c(),g("i",{key:0,class:f(["ti ti-alert-triangle",o.$style.i])},null,2)):(c(),g("i",{key:1,class:f(["ti ti-info-circle",o.$style.i])},null,2)),y("div",null,[Te(o.$slots,"default")]),e.closable?(c(),g("button",{key:2,class:f([o.$style.button,"_button"]),onClick:s[0]||(s[0]=a=>i())},[...s[1]||(s[1]=[y("i",{class:"ti ti-x"},null,-1)])],2)):I("",!0)],2))}}),E_="x3kc0",C_="xyYHu",A_="xwhxh",$_="xDtUw",x_="xCev1",T_={root:E_,warn:C_,rounded:A_,i:$_,button:x_},M_={$style:T_},_s=re(D_,[["__cssModules",M_]]);function I_(){return et({type:"error",title:w.ts.yourAccountSuspendedTitle,text:w.ts.yourAccountSuspendedDescription})}async function ko(){const e=z.s.accountTokens,t=z.s.accountInfos;
23return A.s.accounts.map(([i,o])=>({host:i,id:o.id,username:o.username,user:t[i+"/"+o.id],token:e[i+"/"+o.id]??null}))}async function Ra(e,t,n){const i=e+"/"+t.id;z.set("accountTokens",{...z.s.accountTokens,[i]:n}),z.set("accountInfos",{...z.s.accountInfos,[i]:t}),A.s.accounts.some(o=>o[0]===e&&o[1].id===t.id)||A.commit("accounts",[...A.s.accounts,[e,{id:t.id,username:t.username}]])}async function tc(e,t){const n=JSON.parse(JSON.stringify(z.s.accountTokens));delete n[e+"/"+t],z.set("accountTokens",n);const i=JSON.parse(JSON.stringify(z.s.accountInfos));delete i[e+"/"+t],z.set("accountInfos",i),A.commit("accounts",A.s.accounts.filter(o=>o[0]!==e||o[1].id!==t))}const La=Symbol("isAccountDeleted");async function S_(e){const t=Object.entries(z.s.accountTokens).find(([,a])=>a===e);if(!t)return;const[n]=t,i=n.lastIndexOf("/");if(i===-1)return;const o=n.slice(0,i),s=n.slice(i+1);await tc(o,s)}function Na(e,t,n){return new Promise((i,o)=>{window.fetch(`${ni}/i`,{method:"POST",body:JSON.stringify({i:e}),credentials:"include",headers:{"Content-Type":"application/json","X-Client-Transaction-Id":Bn("accounts")}}).then(s=>new Promise((a,r)=>{if(s.status>=500&&s.status<600)return r(s);s.json().then(a,r)})).then(async s=>{"error"in s?(s.error.id==="a8c724b3-6e9c-4b46-b1a8-bc3ed6258370"?(n||S&&(e===S.token||t===S.id))&&await I_():s.error.id==="e5b3b9f0-2b8f-4b9f-9c1f-8c5c1b2e1b1a"?(n||S&&(e===S.token||t===S.id))&&await et({type:"error",title:w.ts.accountDeleted,text:w.ts.accountDeletedDescription}):s.error.id==="b0a7f5f8-dc2f-4171-b91f-de88ad238e14"?(n||S&&(e===S.token||t===S.id))&&await et({type:"error",title:w.ts.tokenRevoked,text:w.ts.tokenRevokedDescription}):await et({type:"error",title:w.ts.failedToFetchAccountInformation,text:JSON.stringify(s.error)}),o(La)):i(s)}).catch(o)})}function F_(e){if(!S)return;const t=S.token;for(const n of Object.keys(S))delete S[n];for(const[n,i]of Object.entries(e))S[n]=i;z.set("accountInfos",{...z.s.accountInfos,[He+"/"+S.id]:S}),S.token=t,ee.setItem("account",JSON.stringify(S))}function jn(e){if(S){for(const[t,n]of Object.entries(e))S[t]=n;z.set("accountInfos",{...z.s.accountInfos,[He+"/"+S.id]:S}),ee.setItem("account",JSON.stringify(S))}}async function B_(){if(S)return Na(S.token,S.id).then(F_).catch(async e=>{if(e===La){const{signout:t}=await x(async()=>{const{signout:n}=await Promise.resolve().then(()=>l6);return{signout:n}},void 0);await t()}})}async function Sn(e,t){const n=F(!0);await De(de(()=>x(()=>Promise.resolve().then(()=>Sk),void 0)),{success:!1,showing:n},{},"closed");const i=await Na(e,void 0,!0).catch(async o=>{throw o===La&&await S_(e),n.value=!1,o});if(ee.setItem("account",JSON.stringify({...i,token:e})),window.document.cookie=`token=${e}; path=/; max-age=31536000`,await Ra(He,i,e),t){go.postMessage(null),window.location.href=t;return}an()}async function Zr(e,t){const n=z.s.accountTokens[e+"/"+t];n?Sn(n):await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.VfB1ylty.js"),__vite__mapDeps([109,110,2,111,112,113,3,4,114]))),{},{done:async i=>{Sn(i.i)}},"closed")}async function Oa(e,t){if(!S)return;async function n(u){const d=(await ko()).find(v=>v.id===u.id);if(d?.token){Sn(d.token);return}d&&await Zr(d.host,d.id)}function i(u){Sn(u)}const o=await ko().then(u=>u.filter(l=>l.id!==S.id)),s=o.length>0?Ae("users/show",{userIds:o.map(u=>u.id)}):Promise.resolve([]);function a(u){return{type:"user",user:u,active:e.active!=null?e.active===u.id:!1,action:()=>{e.onChoose?e.onChoose(u):n(u)}}}const r=o.map(u=>new Promise(l=>{s.then(d=>{const v=d.find(p=>p.id===u.id);if(v==null)return l({type:"button",text:u.username??u.id,active:e.active!=null?e.active===u.id:!1,action:()=>{u.token?i(u.token):Zr(u.host,u.id)}});l(a(v))})}));e.withExtraOperation?st([{type:"link",text:w.ts.profile,to:`/@${S.username}`,avatar:S},{type:"divider"},...e.includeCurrentAccount?[a(S)]:[],...r,{type:"parent",icon:"ti ti-plus",text:w.ts.addAccount,children:[{text:w.ts.existingAccount,action:()=>{P_().then(u=>{u!=null&&qa()})}},{text:w.ts.createAccount,action:()=>{R_().then(u=>{u!=null&&i(u.token)})}}]},{type:"link",icon:"ti ti-users",text:w.ts.manageAccounts,to:"/settings/accounts"}],t.currentTarget??t.target,{align:"left"}):st([...e.includeCurrentAccount?[a(S)]:[],...r],t.currentTarget??t.target,{align:"left"})}function P_(){return new Promise(async e=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.VfB1ylty.js"),__vite__mapDeps([109,110,2,111,112,113,3,4,114]))),{},{done:async t=>{const n=await Na(t.i,t.id,!0);await Ra(He,n,t.i),e({id:t.id,token:t.i})},cancelled:()=>{e(null)}},"closed")})}function R_(){return new Promise(async e=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Cl-97-AQ.js"),__vite__mapDeps([121,2,122,123,112,80,81,3,4,124]))),{},{done:async t=>{const n=JSON.parse(JSON.stringify(t));delete n.token,await Ra(He,n,t.token),e({id:t.id,token:t.token})},cancelled:()=>{e(null)}},"closed")})}const L_={width:"128",height:"128",viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg"},N_={fill:"none","fill-rule":"evenodd"},O_=["fill"],j_=["values"],V_=["values"],z_=["values"],Vi=64,H_=ne({__name:"MkRippleEffect",props:{x:{},y:{},particle:{type:Boolean,default:!0}},emits:["end"],setup(e,{emit:t}){const n=e,i=t,o=[],s=["#FF1493","#00FFFF","#FFE202"],a=si("high");if(n.particle)for(let r=0;r<12;r++){const u=Math.random()*(Math.PI*2),l=Math.random()*16,d=16+Math.random()*48;o.push({size:4+Math.random()*8,xA:Vi+Math.sin(u)*l,yA:Vi+Math.cos(u)*l,xB:Vi+Math.sin(u)*(l+d),yB:Vi+Math.cos(u)*(l+d),color:s[Math.floor(Math.random()*s.length)]})}return je(()=>{window.setTimeout(()=>{i("end")},1100)}),(r,u)=>(c(),g("div",{class:f(r.$style.root),style:Ge({zIndex:_(a),top:`${e.y-64}px`,left:`${e.x-64}px`})},[(c(),g("svg",L_,[u[0]||(u[0]=y("circle",{fill:"none",cx:"64",cy:"64",style:{stroke:"var(--MI_THEME-accent)"}},[y("animate",{attributeName:"r",begin:"0s",dur:"0.5s",values:"4; 32",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"1"}),y("animate",{attributeName:"stroke-width",begin:"0s",dur:"0.5s",values:"16; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"1"})],-1)),y("g",N_,[(c(),g(pe,null,Re(o,(l,d)=>y("circle",{key:d,fill:l.color,style:{stroke:"var(--MI_THEME-accent)"}},[y("animate",{attributeName:"r",begin:"0s",dur:"0.8s",values:`${l.size}; 0`,calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"1"},null,8,j_),y("animate",{attributeName:"cx",begin:"0s",dur:"0.8s",values:`${l.xA}; ${l.xB}`,calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"1"},null,8,V_),y("animate",{attributeName:"cy",begin:"0s",dur:"0.8s",values:`${l.yA}; ${l.yB}`,calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"1"},null,8,z_)],8,O_)),64))])]))],6))}}),U_="xnV39",q_={root:U_},W_={$style:q_}
23,ja=re(H_,[["__cssModules",W_]]),nc=($i??"ja-JP").replace("ja-KS","ja-JP");let ea;try{ea=new Intl.DateTimeFormat(nc,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}catch(e){console.warn(e),ea=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}const ic=ea;ic.resolvedOptions().timeZone;let el;try{el=new Intl.NumberFormat(nc)}catch(e){console.warn(e),el=new Intl.NumberFormat("en-US")}const H5=["notes1","notes10","notes100","notes500","notes1000","notes5000","notes10000","notes20000","notes30000","notes40000","notes50000","notes60000","notes70000","notes80000","notes90000","notes100000","login3","login7","login15","login30","login60","login100","login200","login300","login400","login500","login600","login700","login800","login900","login1000","passedSinceAccountCreated1","passedSinceAccountCreated2","passedSinceAccountCreated3","loggedInOnBirthday","loggedInOnNewYearsDay","noteClipped1","noteFavorited1","myNoteFavorited1","profileFilled","markedAsCat","following1","following10","following50","following100","following300","followers1","followers10","followers50","followers100","followers300","followers500","followers1000","collectAchievements30","viewAchievements3min","iLoveMisskey","foundTreasure","client30min","client60min","noteDeletedWithin1min","postedAtLateNight","postedAt0min0sec","selfQuote","htl20npm","viewInstanceChart","outputHelloWorldOnScratchpad","open3windows","driveFolderCircularReference","reactWithoutRead","clickedClickHere","justPlainLucky","setNameToSyuilo","cookieClicked","brainDiver","smashTestNotificationButton","tutorialCompleted","sensitiveContentConsentResponded","postingLanguageConfigured","viewingLanguagesConfigured","dimensionConfigured","bubbleGameExplodingHead","bubbleGameDoubleExplodingHead"],U5={notes1:{img:"/fluent-emoji/1f4dd.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},notes10:{img:"/fluent-emoji/1f4d1.png",bg:null,frame:"bronze"},notes100:{img:"/fluent-emoji/1f4d2.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},notes500:{img:"/fluent-emoji/1f4da.png",bg:null,frame:"bronze"},notes1000:{img:"/fluent-emoji/1f5c3.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},notes5000:{img:"/fluent-emoji/1f304.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},notes10000:{img:"/fluent-emoji/1f3d9.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"silver"},notes20000:{img:"/fluent-emoji/1f307.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"silver"},notes30000:{img:"/fluent-emoji/1f306.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"silver"},notes40000:{img:"/fluent-emoji/1f303.png",bg:"linear-gradient(0deg, rgb(197 69 192), rgb(2 112 155))",frame:"silver"},notes50000:{img:"/fluent-emoji/1fa90.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"gold"},notes60000:{img:"/fluent-emoji/2604.png",bg:"linear-gradient(0deg, rgb(197 69 192), rgb(2 112 155))",frame:"gold"},notes70000:{img:"/fluent-emoji/1f30c.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"gold"},notes80000:{img:"/fluent-emoji/1f30c.png",bg:"linear-gradient(0deg, rgb(197 69 192), rgb(2 112 155))",frame:"gold"},notes90000:{img:"/fluent-emoji/1f30c.png",bg:"linear-gradient(0deg, rgb(255 232 119), rgb(255 140 41))",frame:"gold"},notes100000:{img:"/fluent-emoji/267e.png",bg:"linear-gradient(0deg, rgb(255 232 119), rgb(255 140 41))",frame:"platinum"},login3:{img:"/fluent-emoji/1f331.png",bg:null,frame:"bronze"},login7:{img:"/fluent-emoji/1f331.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},login15:{img:"/fluent-emoji/1f331.png",bg:"linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))",frame:"bronze"},login30:{img:"/fluent-emoji/1fab4.png",bg:null,frame:"bronze"},login60:{img:"/fluent-emoji/1fab4.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},login100:{img:"/fluent-emoji/1fab4.png",bg:"linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))",frame:"silver"},login200:{img:"/fluent-emoji/1f333.png",bg:null,frame:"silver"},login300:{img:"/fluent-emoji/1f333.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"silver"},login400:{img:"/fluent-emoji/1f333.png",bg:"linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))",frame:"silver"},login500:{img:"/fluent-emoji/1f304.png",bg:null,frame:"silver"},login600:{img:"/fluent-emoji/1f304.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"gold"},login700:{img:"/fluent-emoji/1f304.png",bg:"linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))",frame:"gold"},login800:{img:"/fluent-emoji/1f307.png",bg:null,frame:"gold"},login900:{img:"/fluent-emoji/1f307.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"gold"},login1000:{img:"/fluent-emoji/1f307.png",bg:"linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))",frame:"platinum"},noteClipped1:{img:"/fluent-emoji/1f587.png",bg:null,frame:"bronze"},noteFavorited1:{img:"/fluent-emoji/1f31f.png",bg:null,frame:"bronze"},myNoteFavorited1:{img:"/fluent-emoji/1f320.png",bg:null,frame:"silver"},profileFilled:{img:"/fluent-emoji/1f44c.png",bg:"linear-gradient(0deg, rgb(187 183 59), rgb(255 143 77))",frame:"bronze"},markedAsCat:{img:"/fluent-emoji/1f408.png",bg:"linear-gradient(0deg, rgb(187 183 59), rgb(255 143 77))",frame:"bronze"},following1:{img:"/fluent-emoji/2618.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},following10:{img:"/fluent-emoji/1f6b8.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},following50:{img:"/fluent-emoji/1f91d.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},following100:{img:"/fluent-emoji/1f4af.png",bg:"linear-gradient(0deg, rgb(255 53 184), rgb(255 206 69))",frame:"silver"},following300:{img:"/fluent-emoji/1f970.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"silver"},followers1:{img:"/fluent-emoji/2618.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},followers10:{img:"/fluent-emoji/1f44b.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},followers50:{img:"/fluent-emoji/1f411.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"bronze"},followers100:{img:"/fluent-emoji/1f60e.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"silver"},followers300:{img:"/fluent-emoji/1f3c6.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"silver"},followers500:{img:"/fluent-emoji/1f4e1.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"gold"},followers1000:{img:"/fluent-emoji/1f451.png",bg:"linear-gradient(0deg, rgb(255 232 119), rgb(255 140 41))",frame:"platinum"},collectAchievements30:{img:"/fluent-emoji/1f3c5.png",bg:"linear-gradient(0deg, rgb(255 77 77), rgb(247 155 214))",frame:"silver"},viewAchievements3min:{img:"/fluent-emoji/1f3c5.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"bronze"},iLoveMisskey:{img:"/fluent-emoji/2764.png",bg:"linear-gradient(0deg, rgb(255 77 77), rgb(247 155 214))",frame:"silver"},foundTreasure:{img:"/fluent-emoji/1f3c6.png",bg:"linear-gradient(0deg, rgb(197 69 192), rgb(2 112 155))",frame:"gold"},client30min:{img:"/fluent-emoji/1f552.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"bronze"},client60min:{img:"/fluent-emoji/1f552.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"silver"},noteDeletedWithin1min:{img:"/fluent-emoji/1f5d1.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"bronze"},postedAtLateNight:{img:"/fluent-emoji/1f319.png",bg:"linear-gradient(0deg, rgb(197 69 192), rgb(2 112 155))",frame:"bronze"},postedAt0min0sec:{img:"/fluent-emoji/1f55b.png",bg:"linear-gradient(0deg, rgb(58 231 198), rgb(37 194 255))",frame:"bronze"},selfQuote:{img:"/fluent-emoji/1f4dd.png",bg:null,frame:"bronze"},htl20npm:{img:"/fluent-emoji/1f30a.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"bronze"},viewInstanceChart:{img:"/fluent-emoji/1f4ca.png",bg:"linear-gradient(0deg, rgb(58 231 198), rgb(37 194 255))",frame:"bronze"},outputHelloWorldOnScratchpad:{img:"/fluent-emoji/1f530.png",bg:"linear-gradient(0deg, rgb(58 231 198), rgb(37 194 255))",frame:"bronze"},open3windows:{img:"/fluent-emoji/1f5a5.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"bronze"},driveFolderCircularReference:{img:"/fluent-emoji/1f4c2.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"bronze"},reactWithoutRead:{img:"/fluent-emoji/2753.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"bronze"},clickedClickHere:{img:"/fluent-emoji/2757.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"bronze"},justPlainLucky:{img:"/fluent-emoji/1f340.png",bg:"linear-gradient(0deg, rgb(187 183 59), rgb(255 143 77))",frame:"silver"},setNameToSyuilo:{img:"/fluent-emoji/1f36e.png",bg:"linear-gradient(0deg, rgb(187 183 59), rgb(255 143 77))",frame:"bronze"},passedSinceAccountCreated1:{img:"/fluent-emoji/0031-20e3.png",bg:null,frame:"bronze"},passedSinceAccountCreated2:{img:"/fluent-emoji/0032-20e3.png",bg:null,frame:"silver"},passedSinceAccountCreated3:{img:"/fluent-emoji/0033-20e3.png",bg:null,frame:"gold"},loggedInOnBirthday:{img:"/fluent-emoji/1f382.png",bg:"linear-gradient(0deg, rgb(255 77 77), rgb(247 155 214))",frame:"silver"},loggedInOnNewYearsDay:{img:"/fluent-emoji/1f38d.png",bg:"linear-gradient(0deg, rgb(255 144 144), rgb(255 232 168))",frame:"silver"},cookieClicked:{img:"/fluent-emoji/1f36a.png",bg:"linear-gradient(0deg, rgb(187 183 59), rgb(255 143 77))",frame:"bronze"},brainDiver:{img:"/fluent-emoji/1f9e0.png",bg:"linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))",frame:"bronze"},smashTestNotificationButton:{img:"/fluent-emoji/1f514.png",bg:"linear-gradient(0deg, rgb(187 183 59), rgb(255 143 77))",frame:"bronze"},tutorialCompleted:{img:"/fluent-emoji/1f393.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"bronze"},sensitiveContentConsentResponded:{img:"/fluent-emoji/1f51e.png",bg:"linear-gradient(0deg, rgb(255 144 144), rgb(255 232 168))",frame:"bronze"},postingLanguageConfigured:{img:"/fluent-emoji/1f4ac.png",bg:"linear-gradient(0deg, rgb(144 224 255), rgb(255 168 252))",frame:"bronze"},viewingLanguagesConfigured:{img:"/fluent-emoji/1f4d6.png",bg:"linear-gradient(0deg, rgb(59 187 116), rgb(199 211 102))",frame:"bronze"},dimensionConfigured:{img:"/fluent-emoji/1f300.png",bg:"linear-gradient(0deg, rgb(220 223 225), rgb(172 192 207))",frame:"bronze"},bubbleGameExplodingHead:{img:"/fluent-emoji/1f92f.png",bg:"linear-gradient(0deg, rgb(255 77 77), rgb(247 155 214))",frame:"bronze"},bubbleGameDoubleExplodingHead:{img:"/fluent-emoji/1f92f.png",bg:"linear-gradient(0deg, rgb(255 77 77), rgb(247 155 214))",frame:"silver"}},Hn=S&&S.achievements?S.achievements.map(e=>e.name):[],ks=new Set;async function ye(e){S!=null&&(S.movedTo||Hn.includes(e)||(ks.add(e),Hn.push(e),await new Promise(t=>window.setTimeout(t,(ks.size-1)*500)),window.setTimeout(()=>{ks.delete(e)},500),Ae("i/claim-achievement",{name:e})))}function K_(e,t,n){st([{text:w.ts.addMfmFunction,type:"label"},...J_(t,n)],e)}function J_(e,t){return Jl.map(n=>({text:n,icon:"ti ti-icons",action:()=>G_(e,t,n)}))}function G_(e,t,n){const i=e.selectionStart,o=e.selectionEnd;Jl.forEach(r=>{if(n===r)if(i===o){const u=`${t.value.substring(0,i)}$[${n} ]${t.value.substring(o)}`;t.value=u}else{const u=`${t.value.substring(0,i)}$[${n} ${t.value.substring(i,o)}]${t.value.substring(o)}`;t.value=u}});const s=i+3+n.length,a=o+3+n.length;Pe(()=>{e.focus(),e.setSelectionRange(s,a)})}async function Y_(e){const t=Math.max(he.dimensions??1,1)-1,{canceled:n,result:i}=await OA({title:w.ts.dimension,default:e??A.r.dimension.value,min:0,max:t,step:1});if(!(n||i==null))return i}const X_=fb.map(e=>({value:e,text:e==="other"?w.ts.other:Ba[e]?.nativeName??e}));async function Q_(e){const{canceled:t,result:n}=await Wo({title:w.ts.postingLanguage,items:X_,default:e??null});if(!t)return n}function Z_(e){if(e){const t=e.toLowerCase();if(t.startsWith("ko"))return"ko-KR";if(t.startsWith("ja"))return"ja-JP"}return"ja-JP"}function e2(e){return Array.from(new Set([e,"ja-JP","unknown","remote"]))}const t2=9466848e5;let eo=Math.floor(Math.random()*1e4);function n2(e){return e=e-t2,e<0&&(e=0),e.toString(36).padStart(8,"0")}function i2(){return eo.toString(36).padStart(2,"0").slice(-2)}function o2(){return eo=eo>=9999?0:eo+1,n2(Date.now())+i2()}let tl=null;async function oc(){const{Parser:e}=await x(async()=>{const{Parser:t}=await import("./2025.4.1-io.12b-fb6fbea074.D562uqRH.js");return{Parser:t}},__vite__mapDeps([125,71,72,73,74,2,3,4]));return tl??=new e,tl}function s2(e){try{return va(e,"0.12.0")>=0}catch{return!1}}async function a2(e){if(!e)throw new Error("code is required");const{Interpreter:t,utils:n}=await x(async()=>{const{Interpreter:C,utils:D}=await import("./2025.4.1-io.12b-fb6fbea074.D562uqRH.js");return{Interpreter:C,utils:D}},__vite__mapDeps([125,71,72,73,74,2,3,4])),i=n.getLangVersion(e);if(i==null)throw new Error("No language version annotation found");if(!s2(i))throw new Error(`Aiscript version '${i}' is not supported`);let o;try{o=(await oc()).parse(e)}catch{throw new Error("Aiscript syntax error")}const s=t.collectMetadata(o);if(s==null)throw new Error("Meta block not found");const a=s.get(null);if(a==null||typeof a!="object"||Array.isArray(a))throw new Error("Metadata not found or invalid");const{name:r,version:u,author:l,description:d,permissions:v,config:p}=a;if(r==null||u==null||l==null)throw new Error("Required property not found");return{name:r,version:u,author:l,description:d,permissions:v,config:p}}async function sc(e){if(e.permissions==null||e.permissions.length===0||Object.hasOwn(z.s.pluginTokens,e.installId))return;const t=await new Promise(async(n,i)=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DuS9m_kT.js"),__vite__mapDeps([126,82,2,3,4,127]))),{title:w.ts.tokenRequested,information:w.ts.pluginTokenRequestedDescription,initialName:e.name,initialPermissions:e.permissions},{done:async o=>{const{name:s,permissions:a}=o,{token:r}=await Ae("miauth/gen-token",{session:null,name:s,permission:a});n(r)}},"closed")});z.set("pluginTokens",{...z.s.pluginTokens,[e.installId]:t})}async function q5(e,t){if(!e)return;let n;if(t?n=t:n=await a2(e),A.s.plugins.some(s=>s.name===n.name))throw new Error("Plugin already installed");const i=o2(),o={...n,config:n.config??{},installId:i,active:!0,configData:{},src:e};A.commit("plugins",A.s.plugins.concat(o)),await sc(o),await zo(i)}async function W5(e){if(Va(e),A.commit("plugins",A.s.plugins.filter(t=>t.installId!==e.installId)),Object.keys(window.localStorage).forEach(t=>{t.startsWith("aiscript:plugins:"+e.installId)&&window.localStorage.removeItem(t)}),Object.hasOwn(z.s.pluginTokens,e.installId)){await oi("i/revoke-token",{token:z.s.pluginTokens[e.installId]});const t={...z.s.pluginTokens}
23;delete t[e.installId],z.set("pluginTokens",t)}}const Do=new Map,Un=F(new Map);let Eo=[];function Ln(e,t,n){Un.value.get(e).push({at:Date.now(),isSystem:!0,message:`Handler registered: ${t}`}),Eo.push({pluginInstallId:e,type:t,ctx:n})}function r2(){return Promise.all(A.s.plugins.map(e=>e.active?zo(e.installId):Promise.resolve()))}async function zo(e){const t=A.s.plugins.find(u=>u.installId===e);if(!t||t.src==null)return;Un.value.set(t.installId,[]);function n(u,l=!1){Un.value.get(t.installId)?.push({at:Date.now(),isSystem:!0,message:u,isError:l})}n("Starting plugin..."),await sc(t);const{Interpreter:i,utils:o}=await x(async()=>{const{Interpreter:u,utils:l}=await import("./2025.4.1-io.12b-fb6fbea074.D562uqRH.js");return{Interpreter:u,utils:l}},__vite__mapDeps([125,71,72,73,74,2,3,4])),{aiScriptReadline:s}=await x(async()=>{const{aiScriptReadline:u}=await import("./2025.4.1-io.12b-fb6fbea074.BQ1_FPHf.js").then(l=>l.d);return{aiScriptReadline:u}},__vite__mapDeps([75,71,72,73])),a=new i(await u2({plugin:t,storageKey:"plugins:"+t.installId}),{in:s,out:u=>{Un.value.get(t.installId).push({at:Date.now(),message:o.reprValue(u)})},log:()=>{},err:u=>{throw Un.value.get(t.installId).push({at:Date.now(),message:`${u}`,isError:!0}),u}});Do.set(t.installId,a);const r=await oc();await a.exec(r.parse(t.src)).then(()=>{console.info("Plugin installed:",t.name,"v"+t.version),n("Plugin started")},u=>{throw console.error("Plugin install failed:",t.name,"v"+t.version),n(`${u}`,!0),u})}function Va(e){const t=Do.get(e.installId);t&&(t.abort(),Do.delete(e.installId),Un.value.delete(e.installId),Eo=Eo.filter(n=>n.pluginInstallId!==e.installId))}function l2(e){Va(e),zo(e.installId)}async function K5(e){if(e.config==null)throw new Error("This plugin does not have a config");const t=e.config;for(const o in e.configData)t[o].default=e.configData[o];const{canceled:n,result:i}=await VA(e.name,t);n||(A.commit("plugins",A.s.plugins.map(o=>o.installId===e.installId?{...o,configData:i}:o)),l2(e))}function J5(e,t){A.commit("plugins",A.s.plugins.map(n=>n.installId===e.installId?{...n,active:t}:n)),t?zo(e.installId):Va(e)}async function u2(e){const t=e.plugin.installId,n=await x(()=>import("./2025.4.1-io.12b-fb6fbea074.D562uqRH.js"),__vite__mapDeps([125,71,72,73,74,2,3,4])),i=n.values,o=n.utils,{createAiScriptEnv:s}=await x(async()=>{const{createAiScriptEnv:l}=await import("./2025.4.1-io.12b-fb6fbea074.BQ1_FPHf.js").then(d=>d.d);return{createAiScriptEnv:l}},__vite__mapDeps([75,71,72,73])),a=new Map;for(const[l,d]of Object.entries(e.plugin.config??{}))a.set(l,o.jsToVal(typeof e.plugin.configData[l]<"u"?e.plugin.configData[l]:d.default));function r(l){const d=Do.get(t);if(!d)throw new Error("Plugin context not found");return l(d)}const u={...s({...e,token:z.s.pluginTokens[t]}),"Plugin:register:post_form_action":i.FN_NATIVE(([l,d])=>{o.assertString(l),o.assertFunction(d),Ln(t,"post_form_action",{title:l.value,handler:(v,p)=>r(C=>{C.execFn(d,[o.jsToVal(v),i.FN_NATIVE(([D,m])=>{!D||!m||p(o.valToJs(D),o.valToJs(m))})])})})}),"Plugin:register:user_action":i.FN_NATIVE(([l,d])=>{o.assertString(l),o.assertFunction(d),Ln(t,"user_action",{title:l.value,handler:v=>r(p=>{p.execFn(d,[o.jsToVal(v)])})})}),"Plugin:register:note_action":i.FN_NATIVE(([l,d])=>{o.assertString(l),o.assertFunction(d),Ln(t,"note_action",{title:l.value,handler:v=>r(p=>{p.execFn(d,[o.jsToVal(v)])})})}),"Plugin:register:note_view_interruptor":i.FN_NATIVE(([l])=>{o.assertFunction(l),Ln(t,"note_view_interruptor",{handler:d=>r(v=>o.valToJs(v.execFnSync(l,[o.jsToVal(d)])))})}),"Plugin:register:note_post_interruptor":i.FN_NATIVE(([l])=>{o.assertFunction(l),Ln(t,"note_post_interruptor",{handler:d=>r(v=>o.valToJs(v.execFnSync(l,[o.jsToVal(d)])))})}),"Plugin:register:page_view_interruptor":i.FN_NATIVE(([l])=>{o.assertFunction(l),Ln(t,"page_view_interruptor",{handler:d=>r(v=>o.valToJs(v.execFnSync(l,[o.jsToVal(d)])))})}),"Plugin:open_url":i.FN_NATIVE(([l])=>{o.assertString(l),window.open(l.value,"_blank","noopener")}),"Plugin:config":i.OBJ(a)};return u["Plugin:register_post_form_action"]=u["Plugin:register:post_form_action"],u["Plugin:register_user_action"]=u["Plugin:register:user_action"],u["Plugin:register_note_action"]=u["Plugin:register:note_action"],u["Plugin:register_note_view_interruptor"]=u["Plugin:register:note_view_interruptor"],u["Plugin:register_note_post_interruptor"]=u["Plugin:register:note_post_interruptor"],u["Plugin:register_page_view_interruptor"]=u["Plugin:register:page_view_interruptor"],u}function nl(e){return Eo.filter(t=>t.type===e).map(t=>t.ctx)}const c2={key:0},d2={key:1},f2={key:2},m2={key:3},h2=["disabled"],p2={key:0},v2={key:1},g2=["disabled"],y2={style:{"margin-right":"8px"}},w2=["onClick"],b2=["placeholder"],_2=["disabled","readonly","placeholder"],k2=["placeholder"],D2={key:0,style:{display:"flex",gap:"4px","margin-top":"4px",color:"var(--MI_THEME-infoWarnFg)"}},E2={key:10,style:{padding:"8px 16px"}},C2={id:"hashtags"},A2=["value"],zi=100,il="yyyy-MM-dd HH-mm-ss [{{number}}]",$2=ne({__name:"MkPostForm",props:{reply:{},renote:{},channel:{},mention:{},specified:{},initialText:{},initialCw:{},initialVisibility:{},initialFiles:{},initialLocalOnly:{type:Boolean,default:void 0},initialDimension:{},initialVisibleUsers:{default:()=>[]},initialNote:{},instant:{type:Boolean},fixed:{type:Boolean},autofocus:{type:Boolean,default:!0},freezeAfterPosted:{type:Boolean},mock:{type:Boolean,default:!1}},emits:["posting","posted","postError","cancel","esc","fileChangeSensitive"],setup(e,{expose:t,emit:n}){const i=Wl(),o=tt(ze.inModal,!1),s=e;lt(ze.mock,s.mock);const a=n,r=Ee("textareaEl"),u=Ee("cwInputEl"),l=Ee("hashtagsInputEl"),d=Ee("visibilityButton"),v=Ee("otherSettingsButton"),p=F(!1),C=F(!1),D=F(Date.now().toString()),m=F(s.reply??null),k=Wt(s.renote??null),h=F(s.channel??null),b=F(s.initialText??""),E=F(s.initialFiles??[]),T=F(null),P=F(!!s.initialCw),H=F(z.s.showPreview);le(H,()=>z.set("showPreview",H.value));const L=F(A.s.enableQuickAddMfmFunction);le(L,()=>A.commit("enableQuickAddMfmFunction",L.value));const R=F(s.initialCw??null),Q=F(s.initialLocalOnly??(A.s.rememberNoteVisibility?z.s.localOnly:A.s.defaultNoteLocalOnly)),Z=F(s.initialDimension??z.r.tl.value?.dimensionBySrc?.[z.r.tl.value.src]??A.s.dimension),oe=G(()=>Z.value>=1e3),be=F(null),ue=F(s.initialVisibility??(A.s.rememberNoteVisibility?z.s.visibility:A.s.defaultNoteVisibility)),ce=F([]);
23s.initialVisibleUsers&&s.initialVisibleUsers.forEach(B=>cn(B));const Fe=F(z.s.reactionAcceptance),j=F(null),me=G(()=>j.value?(j.value.getTime()-Date.now())/864e5>i.policies.scheduleNoteMaxDays:!1),Me=F(null),X=F(null),te=F(null),se=F(!1),K=F(null),$=F(!1),O=F(JSON.parse(ee.getItem("hashtags")??"[]")),Le=F(""),V=F(!1),ae=F(!1),$e=F(!1),Ce=Wt(s.renote),Ve=nl("post_form_action"),Ye=G(()=>{let B=h.value?`channel:${h.value.id}`:"";return k.value?B+=`renote:${k.value.id}`:m.value?B+=`reply:${m.value.id}`:B+=`note:${D.value}`,B}),at=G(()=>{if(k.value)return w.ts._postForm.quotePlaceholder;if(m.value)return w.ts._postForm.replyPlaceholder;if(h.value)return w.ts._postForm.channelPlaceholder;{const B=[w.ts._postForm._placeholders.a,w.ts._postForm._placeholders.b,w.ts._postForm._placeholders.c,w.ts._postForm._placeholders.d,w.ts._postForm._placeholders.e,w.ts._postForm._placeholders.f];return B[Math.floor(Math.random()*B.length)]}}),Mt=G(()=>j.value?w.ts.schedule:k.value?w.ts.quote:m.value?w.ts.reply:w.ts.note),Gt=G(()=>(b.value+Le.value).length),wn=G(()=>he?he.maxNoteTextLength:1e3),bn=G(()=>R.value?.length??0),ai=G(()=>!s.mock&&!p.value&&!C.value&&(1<=Gt.value||1<=E.value.length||T.value!=null||k.value!=null||m.value!=null&&K.value!=null)&&(P.value?R.value!=null&&R.value.trim()!==""&&bn.value<=zi:!0)&&Gt.value<=wn.value&&(!T.value||T.value.choices.length>=2)&&!me.value),un=G(z.makeGetterSetter("postFormWithHashtags")),It=G(z.makeGetterSetter("postFormHashtags"));if(le(b,()=>{St()},{immediate:!0}),le([oe,Q],([B,N])=>{B&&!N&&(Q.value=!0)},{immediate:!0}),le(ue,()=>{St()},{immediate:!0}),le(ce,()=>{St()},{deep:!0}),le(()=>s.initialDimension,B=>{const N=B??z.r.tl.value?.dimensionBySrc?.[z.r.tl.value.src]??A.s.dimension;Z.value!==N&&(Z.value=N)},{immediate:!0}),s.mention&&(b.value=s.mention.host?`@${s.mention.username}@${fi(s.mention.host)}`:`@${s.mention.username}`,b.value+=" "),m.value&&(m.value.user.username!==i.username||m.value.user.host!=null&&m.value.user.host!==He)&&(b.value=`@${m.value.user.username}${m.value.user.host!=null?"@"+fi(m.value.user.host):""} `),m.value&&m.value.text!=null){const B=xn.parse(m.value.text),N=m.value.user.host;for(const fe of ws(B)){const xe=fe.host?`@${fe.username}@${fi(fe.host)}`:N==null||N===He?`@${fe.username}`:`@${fe.username}@${fi(N)}`;i.username===fe.username&&(fe.host==null||fe.host===He)||b.value.includes(`${xe} `)||(b.value+=`${xe} `)}}i.isSilenced&&ue.value==="public"&&(ue.value="home"),h.value&&(ue.value="public",Q.value=!0),m.value&&["home","followers","specified"].includes(m.value.visibility)&&(m.value.visibility==="home"&&ue.value==="followers"?ue.value="followers":["home","followers"].includes(m.value.visibility)&&ue.value==="specified"?ue.value="specified":ue.value=m.value.visibility,ue.value==="specified"&&(m.value.visibleUserIds&&Ae("users/show",{userIds:m.value.visibleUserIds.filter(B=>B!==i.id&&B!==m.value?.userId)}).then(B=>{B.forEach(N=>cn(N))}),m.value.userId!==i.id&&Ae("users/show",{userId:m.value.userId}).then(B=>{cn(B)}))),s.specified&&(ue.value="specified",cn(s.specified)),A.s.keepCw&&m.value?.cw&&(P.value=!0,R.value=m.value.cw);function ri(){le(b,()=>Et()),le(P,()=>Et()),le(R,()=>Et()),le(T,()=>Et()),le(E,()=>Et(),{deep:!0}),le(ue,()=>Et()),le(Q,()=>Et()),le(be,()=>Et()),le(Z,()=>Et()),le(K,()=>Et()),le(Fe,()=>Et()),le(j,()=>Et())}function St(){if(ue.value==="specified"){const B=xn.parse(b.value);for(const N of ws(B))if(!ce.value.some(fe=>fe.username===N.username&&fe.host===N.host)){$.value=!0;return}}$.value=!1}function _n(){const B=xn.parse(b.value);for(const N of ws(B))ce.value.some(fe=>fe.username===N.username&&fe.host===N.host)||Ae("users/show",{username:N.username,host:N.host}).then(fe=>{cn(fe)})}function sd(){T.value?T.value=null:T.value={choices:["",""],multiple:!1,expiresAt:null,expiredAfter:null}}function Xa(){r.value&&(r.value.focus(),r.value.setSelectionRange(r.value.value.length,r.value.value.length))}function ad(B){s.mock||k_(B.currentTarget??B.target,w.ts.attachFile).then(N=>{for(const fe of N.filter(xe=>xe?.id))E.value.push(fe)})}function rd(B){E.value=E.value.filter(N=>N.id!==B)}function ld(B,N){s.mock&&a("fileChangeSensitive",B.id,N),E.value[E.value.findIndex(fe=>fe.id===B.id)].isSensitive=N}function ud(B,N){E.value[E.value.findIndex(fe=>fe.id===B.id)].name=N}function cd(B,N){E.value[E.value.findIndex(fe=>fe.id===B.id)]=N}function Go(B,N){s.mock||Zu(B,A.s.uploadFolder,N).then(fe=>{fe.id&&E.value.push(fe)})}async function dd(){if(h.value){ue.value="public",Q.value=!0;return}await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CiXxftrN.js"),__vite__mapDeps([128,2,3,4,129]))),{currentVisibility:ue.value,isSilenced:i.isSilenced,localOnly:Q.value,src:d.value,...m.value?{isReplyVisibilitySpecified:m.value.visibility==="specified"}:{}},{changeVisibility:B=>{ue.value=B,A.s.rememberNoteVisibility&&z.set("visibility",ue.value)}},"closed")}async function fd(){if(h.value){ue.value="public",Q.value=!0;return}if(oe.value)return;const B=ee.getItem("neverShowLocalOnlyInfo");if(!Q.value&&B!=="true"){const N=await ia({type:"question",title:w.ts.disableFederationConfirm,text:w.ts.disableFederationConfirmWarn,actions:[{value:"yes",text:w.ts.disableFederationOk,primary:!0},{value:"neverShow",text:`${w.ts.disableFederationOk} (${w.ts.neverShow})`,danger:!0},{value:"no",text:w.ts.cancel}]});if(N.canceled||N.result==="no")return;N.result==="neverShow"&&ee.setItem("neverShowLocalOnlyInfo","true")}Q.value=!Q.value,A.s.rememberNoteVisibility&&z.set("localOnly",Q.value)}async function md(){const B=await Wo({title:w.ts.reactionAcceptance,items:[{value:null,text:w.ts.all},{value:"likeOnlyForRemote",text:w.ts.likeOnlyForRemote},{value:"nonSensitiveOnly",text:w.ts.nonSensitiveOnly},{value:"nonSensitiveOnlyForLocalLikeOnlyForRemote",text:w.ts.nonSensitiveOnlyForLocalLikeOnlyForRemote},{value:"likeOnly",text:w.ts.likeOnly}],default:Fe.value});B.canceled||(Fe.value=B.result)}async function hd(){const B=await Q_(be.value??null);B!==void 0&&(be.value=B)}async function pd(){const B=await Y_(Z.value);
23B!==void 0&&(Z.value=B)}function vd(){let B="ti ti-icons";Fe.value==="likeOnly"?B="ti ti-heart _love":Fe.value==="likeOnlyForRemote"&&(B="ti ti-heart-plus");const N=be.value!=null?be.value==="other"?w.ts.other:Ba[be.value]?.nativeName??be.value:w.ts.default,fe=[{type:"component",component:D1,props:{textLength:Gt}},{type:"divider"},{icon:"ti ti-cube",text:w.tsx.dimensionWithNumber({dimension:Z.value}),action:pd},{icon:"ti ti-language",text:w.ts.postingLanguage,caption:N,action:hd},{type:"divider"},{icon:B,text:w.ts.reactionAcceptance,action:()=>{md()}},{type:"divider"},{icon:"ti ti-trash",text:w.ts.reset,danger:!0,action:async()=>{if(s.mock)return;const{canceled:xe}=await ft({type:"question",text:w.ts.resetAreYouSure});xe||Yo()}}];st(fe,v.value)}function cn(B){ce.value.some(N=>N.username===B.username&&N.host===B.host)||ce.value.push(B)}function gd(){rl().then(B=>{cn(B),b.value.toLowerCase().includes(`@${B.username.toLowerCase()}`)||(b.value=`@${Ps(B)} ${b.value}`)})}function yd(B){ce.value=tp(B,ce.value)}async function wd(){const{canceled:B,result:N}=await jA({title:w.ts.setScheduledTime,default:j.value??void 0});B||(j.value=N)}function Yo(){b.value="",P.value=!1,R.value=null,ue.value=z.s.rememberNoteVisibility?z.s.visibility:z.s.defaultNoteVisibility,Q.value=z.s.rememberNoteVisibility?z.s.localOnly:z.s.defaultNoteLocalOnly,be.value=null,Z.value=s.initialDimension??z.r.tl.value?.dimensionBySrc?.[z.r.tl.value.src]??A.s.dimension,E.value=[],T.value=null,ce.value=[],j.value=null,K.value=null}function Qa(B){B.key==="Enter"&&(B.ctrlKey||B.metaKey)&&ai.value&&ir(),B.key==="Escape"&&!$e.value&&!B.isComposing&&a("esc")}function Za(B){$e.value=!1}function bd(B){Le.value=B.data}function er(B){Le.value="",$e.value=!0}async function _d(B){if(s.mock||!B.clipboardData)return;for(const{item:fe,i:xe}of Array.from(B.clipboardData.items,(ke,Ne)=>({item:ke,i:Ne})))if(fe.kind==="file"){const ke=fe.getAsFile();if(!ke)continue;const Ne=ke.name.lastIndexOf("."),Ft=Ne>=0?ke.name.slice(Ne):"",Qe=`${Hr(new Date(ke.lastModified),il).replace(/{{number}}/g,`${xe+1}`)}${Ft}`;Go(ke,Qe)}const N=B.clipboardData.getData("text");!k.value&&!K.value&&N.startsWith(mt+"/notes/")&&(B.preventDefault(),ft({type:"info",text:w.ts.quoteQuestion}).then(({canceled:fe})=>{if(fe){Gi(r.value,N);return}K.value=RegExp(/^\/notes\/(.+?)\/?$/).exec(N.substring(mt.length))?.[1]??null})),N.length>1e3&&(B.preventDefault(),ft({type:"info",text:w.ts.attachAsFileQuestion}).then(({canceled:fe})=>{if(fe){Gi(r.value,N);return}const xe=Hr(new Date,il).replace(/{{number}}/g,"0"),ke=new File([N],`${xe}.txt`,{type:"text/plain"});Go(ke,`${xe}.txt`)}))}function kd(B){if(!B.dataTransfer.items[0])return;const N=B.dataTransfer.items[0].kind==="file",fe=B.dataTransfer.types[0]==="mk_drive_file";if(N||fe)switch(B.preventDefault(),se.value=!0,B.dataTransfer.effectAllowed){case"all":case"uninitialized":case"copy":case"copyLink":case"copyMove":B.dataTransfer.dropEffect="copy";break;case"linkMove":case"move":B.dataTransfer.dropEffect="move";break;default:B.dataTransfer.dropEffect="none";break}}function Dd(){se.value=!0}function Ed(){se.value=!1}function Cd(B){if(se.value=!1,B.dataTransfer&&B.dataTransfer.files.length>0){B.preventDefault();for(const fe of Array.from(B.dataTransfer.files))Go(fe);return}const N=B.dataTransfer?.getData("mk_drive_file");if(N!=null&&N!==""){const fe=JSON.parse(N);fe?.id&&E.value.push(fe),B.preventDefault()}}function Et(){if(s.instant||s.mock)return;let B=j.value??null;B&&(isNaN(B.getTime())||B.getTime()<Date.now())&&(B=null);const N=JSON.parse(ee.getItem("drafts")??"{}");N[Ye.value]={updatedAt:new Date().toISOString(),scheduledAt:B?.toISOString()??null,channel:h.value?{id:h.value.id,name:h.value.name}:void 0,renote:k.value?{id:k.value.id,text:(k.value.cw??k.value.text)?.substring(0,100),user:{id:k.value.userId,username:k.value.user.username,host:k.value.user.host}}:void 0,reply:m.value?{id:m.value.id,text:(m.value.cw??m.value.text)?.substring(0,100),user:{id:m.value.userId,username:m.value.user.username,host:m.value.user.host}}:void 0,data:{text:b.value,useCw:P.value,cw:R.value,visibility:ue.value,localOnly:Q.value,lang:be.value,dimension:Z.value,files:E.value.filter(fe=>fe?.id&&fe.type&&fe.name),poll:T.value,visibleUserIds:ue.value==="specified"?ce.value.map(fe=>fe.id):void 0,quoteId:K.value,reactionAcceptance:Fe.value}},ee.setItem("drafts",JSON.stringify(N))}function Ad(){const B=JSON.parse(ee.getItem("drafts")??"{}");delete B[Ye.value],D.value=Date.now().toString(),ee.setItem("drafts",JSON.stringify(B))}function tr(B){return B.includes("$[x2")||B.includes("$[x3")||B.includes("$[x4")||B.includes("$[scale")||B.includes("$[position")}async function $d(){const{canceled:B,selected:N}=await new Promise(async fe=>{await De(f1,{},{done:xe=>
23{fe(typeof xe.selected=="string"?xe:{canceled:!0,selected:void 0})}},"closed")});if(!B&&N){const fe=N.startsWith("channel:")?N.match(/channel:(.+?)(renote|reply|note):/)?.[1]:void 0,xe=N.includes("renote:")?N.match(/renote:(.+)/)?.[1]:void 0,ke=N.includes("reply:")?N.match(/reply:(.+)/)?.[1]:void 0;h.value=fe?await Ae("channels/show",{channelId:fe}):null,k.value=xe?await Ae("notes/show",{noteId:xe}):null,m.value=ke?await Ae("notes/show",{noteId:ke}):null,!k.value&&!m.value?D.value=N.match(/note:(.+)/)?.[1]??Date.now().toString():D.value=Date.now().toString(),nr(!0)}}function nr(B=!1){const N=JSON.parse(ee.getItem("drafts")??"{}"),fe=B?Ye.value:Ye.value.replace(`note:${D.value}`,"note:"),xe=Object.entries(N).filter(([ke])=>ke.startsWith(fe)).map(ke=>({key:ke[0],value:{...ke[1],updatedAt:new Date(ke[1].updatedAt).getTime()}})).sort((ke,Ne)=>Ne.value.updatedAt-ke.value.updatedAt).at(0);xe&&(fe!==xe.key&&(D.value=xe.key.replace(fe,"")),j.value=xe.value.scheduledAt?new Date(xe.value.scheduledAt):null,j.value&&(isNaN(j.value.getTime())||j.value.getTime()<Date.now())&&(j.value=null),b.value=xe.value.data.text??"",P.value=xe.value.data.useCw,R.value=xe.value.data.cw,ue.value=xe.value.data.visibility,Q.value=xe.value.data.localOnly,be.value=xe.value.data.lang,Z.value=xe.value.data.dimension??A.s.dimension,E.value=xe.value.data.files?.filter(ke=>ke?.id&&ke.type&&ke.name)||[],xe.value.data.poll&&(T.value=xe.value.data.poll),xe.value.data.visibleUserIds&&Ae("users/show",{userIds:xe.value.data.visibleUserIds}).then(ke=>{ke.forEach(Ne=>cn(Ne))}))}async function ir(B){if(B){const ke=B.currentTarget??B.target;if(ke&&A.s.animation){const Ne=ke.getBoundingClientRect(),Ft=Ne.left+ke.offsetWidth/2,Qe=Ne.top+ke.offsetHeight/2;De(ja,{x:Ft,y:Qe},{},"end")}}if(s.mock)return;if(ue.value==="public"&&(P.value&&R.value!=null&&R.value.trim()!==""&&tr(R.value)||(!P.value||R.value==null||R.value.trim()==="")&&b.value!=null&&b.value.trim()!==""&&tr(b.value))){const{canceled:ke,result:Ne}=await ia({type:"warning",text:w.ts.thisPostMayBeAnnoying,actions:[{value:"home",text:w.ts.thisPostMayBeAnnoyingHome,primary:!0},{value:"cancel",text:w.ts.thisPostMayBeAnnoyingCancel},{value:"ignore",text:w.ts.thisPostMayBeAnnoyingIgnore}]});if(ke||Ne==="cancel")return;Ne==="home"&&(ue.value="home")}let N={text:b.value===""?null:b.value,fileIds:E.value.length>0?E.value.filter(ke=>ke?.id).map(ke=>ke.id):void 0,replyId:m.value?m.value.id:void 0,renoteId:k.value?k.value.id:K.value?K.value:void 0,channelId:h.value?h.value.id:void 0,poll:T.value,cw:P.value?R.value??"":null,localOnly:Q.value,dimension:Z.value,visibility:ue.value,visibleUserIds:ue.value==="specified"?ce.value.map(ke=>ke.id):void 0,reactionAcceptance:Fe.value,scheduledAt:j.value?.getTime()??void 0,lang:be.value??void 0,noCreatedNote:!0};if(un.value&&It.value&&It.value.trim()!==""){const ke=It.value.trim().split(" ").map(Ne=>Ne.startsWith("#")?Ne:"#"+Ne).join(" ");if(!N.text)N.text=ke;else{const Ne=N.text.split(` 24`);Ne[Ne.length-1].trim()===""?Ne[Ne.length-1]+=ke:Ne[Ne.length-1]+=" "+ke,N.text=Ne.join(` 25`)}}const fe=nl("note_post_interruptor");if(fe.length>0)for(const ke of fe)try{N=await ke.handler(gn(N))}catch(Ne){console.error(Ne)}let xe;Yt.value&&(xe=(await ko()).find(Ne=>Ne.id===Yt.value?.id)?.token),p.value=!0,Ae("notes/create",N,xe).then(()=>{s.freezeAfterPosted?C.value=!0:Yo(),Pe(()=>{if(Ad(),a("posted"),N.text&&N.text!==""){const Xo=xn.parse(N.text).map(Bi=>Bi.type==="hashtag"&&Bi.props.hashtag).filter(Bi=>Bi),Bd=JSON.parse(ee.getItem("hashtags")??"[]");ee.setItem("hashtags",JSON.stringify(np(Xo.concat(Bd))))}p.value=!1,Yt.value=null,Ff(),Kl===1&&ye("notes1");const ke=N.text??"",Ne=ke.toLowerCase();(Ne.includes("love")||Ne.includes("â¤"))&&Ne.includes("misskey")&&ye("iLoveMisskey"),["https://youtu.be/Efrlqw8ytg4","https://www.youtube.com/watch?v=Efrlqw8ytg4","https://m.youtube.com/watch?v=Efrlqw8ytg4","https://youtu.be/XVCwzwxdHuA","https://www.youtube.com/watch?v=XVCwzwxdHuA","https://m.youtube.com/watch?v=XVCwzwxdHuA","https://open.spotify.com/track/3Cuj0mZrlLoXx9nydNi7RB","https://open.spotify.com/track/7anfcaNPQWlWCwyCHmZqNy","https://open.spotify.com/track/5Odr16TvEN4my22K9nbH7l","https://open.spotify.com/album/5bOlxyl4igOrp2DwVQxBco"].some(Xo=>ke.includes(Xo))&&ye("brainDiver"),k.value&&k.value.userId===i.id&&ke.length>0&&ye("selfQuote");const Ft=new Date,Qe=Ft.getHours(),qe=Ft.getMinutes(),or=Ft.getSeconds();Qe>=0&&Qe<=3&&ye("postedAtLateNight"),qe===0&&or===0&&ye("postedAt0min0sec")})}).catch(ke=>{p.value=!1,et({type:"error",text:ke.message+` 26`+ke.id}),a("postError")}),a("posting")}function xd(){a("cancel")}function Td(){rl({localOnly:Q.value,includeSelf:!0}).then(B=>{Gi(r.value,"@"+Ps(B)+" ")})}async function Md(B){qA(B.currentTarget??B.target,{asReactionPicker:!1},r.value)}async function Id(B){r.value!=null&&K_(B.currentTarget??B.target,r.value,b)}function Sd(B){st(Ve.map(N=>({text:N.title,action:()=>{N.handler({text:b.value,cw:R.value},(fe,xe)=>{typeof fe!="string"||typeof xe!="string"||(fe==="text"&&(b.value=xe),fe==="cw"&&(P.value=xe!==null,R.value=xe))})}})),B.currentTarget??B.target)}const Yt=F(null);function Fd(B){s.mock||Oa({withExtraOperation:!1,includeCurrentAccount:!0,active:Yt.value!=null?Yt.value.id:i.id,onChoose:N=>{N.id===i.id?Yt.value=null:Yt.value=N}},B)}return je(()=>{s.autofocus&&(Xa(),Pe(()=>{Xa()})),Me.value=new vi(r.value,b),X.value=new vi(u.value,R),te.value=new vi(l.value,It),Pe(()=>{if(!s.instant&&!s.mention&&!s.specified&&!s.mock&&A.s.autoloadDrafts&&nr(),s.initialNote){const B=s.initialNote;
26b.value=B.text?B.text:"",E.value=B.files?.filter(N=>N?.id&&N.type&&N.name)??[],R.value=B.cw??null,P.value=B.cw!=null,R.value=B.cw??null,ue.value=B.visibility,Q.value=B.localOnly??!1,be.value=B.lang??null,Z.value=B.dimension??s.initialDimension??z.r.tl.value?.dimensionBySrc?.[z.r.tl.value.src]??A.s.dimension,E.value=B.files??[],B.poll&&(T.value={choices:B.poll.choices.map(N=>N.text),multiple:B.poll.multiple,expiresAt:B.poll.expiresAt?new Date(B.poll.expiresAt).getTime():null,expiredAfter:null}),B.visibleUserIds&&Ae("users/show",{userIds:B.visibleUserIds}).then(N=>{N.forEach(fe=>cn(fe))}),K.value=B.renote?B.renote.id:null,j.value=null,Fe.value=B.reactionAcceptance}Pe(()=>ri())})}),it(()=>{Me.value?.detach(),Me.value=null,X.value?.detach(),X.value=null,te.value?.detach(),te.value=null}),t({clear:Yo}),(B,N)=>{const fe=we("MkAvatar"),xe=we("MkEllipsis"),ke=we("Mfm"),Ne=we("MkAcct"),Ft=Ue("click-anime"),Qe=Ue("tooltip");return c(),g("div",{class:f([B.$style.root,{[B.$style.modal]:_(o),_popup:_(o)}]),onDragover:ge(kd,["stop"]),onDragenter:Dd,onDragleave:Ed,onDrop:ge(Cd,["stop"])},[y("header",{class:f(B.$style.header)},[y("div",{class:f(B.$style.headerLeft)},[e.fixed?I("",!0):(c(),g("button",{key:0,class:f([B.$style.cancel,"_button"]),onClick:xd},[...N[12]||(N[12]=[y("i",{class:"ti ti-x"},null,-1)])],2)),ve((c(),g("button",{class:f([B.$style.account,"_button"]),onClick:Fd},[W(fe,{user:Yt.value??_(i),class:f(B.$style.avatar)},null,8,["user","class"])],2)),[[Ft],[Qe,_(w).ts.switchAccount]])],2),y("div",{class:f(B.$style.headerRight)},[h.value!=null&&e.fixed?I("",!0):(c(),g(pe,{key:0},[h.value==null?ve((c(),g("button",{key:0,ref_key:"visibilityButton",ref:d,class:f(["_button",B.$style.headerRightItem,B.$style.visibility]),onClick:dd},[ue.value==="public"?(c(),g("span",c2,[...N[13]||(N[13]=[y("i",{class:"ti ti-world"},null,-1)])])):I("",!0),ue.value==="home"?(c(),g("span",d2,[...N[14]||(N[14]=[y("i",{class:"ti ti-home"},null,-1)])])):I("",!0),ue.value==="followers"?(c(),g("span",f2,[...N[15]||(N[15]=[y("i",{class:"ti ti-lock"},null,-1)])])):I("",!0),ue.value==="specified"?(c(),g("span",m2,[...N[16]||(N[16]=[y("i",{class:"ti ti-mail"},null,-1)])])):I("",!0),y("span",{class:f(B.$style.headerRightButtonText)},M(_(w).ts._visibility[ue.value]),3)],2)),[[Qe,_(w).ts.visibility]]):(c(),g("button",{key:1,class:f(["_button",[B.$style.headerRightItem,B.$style.visibility]]),disabled:""},[N[17]||(N[17]=y("span",null,[y("i",{class:"ti ti-device-tv"})],-1)),y("span",{class:f(B.$style.headerRightButtonText)},M(h.value.name),3)],2))],64)),ve((c(),g("button",{class:f(["_button",[B.$style.headerRightItem,{[B.$style.danger]:Q.value}]]),disabled:h.value!=null||ue.value==="specified"||oe.value,onClick:fd},[Q.value?(c(),g("span",v2,[...N[19]||(N[19]=[y("i",{class:"ti ti-rocket-off"},null,-1)])])):(c(),g("span",p2,[...N[18]||(N[18]=[y("i",{class:"ti ti-rocket"},null,-1)])]))],10,h2)),[[Qe,_(w).ts._visibility.disableFederation]]),ve((c(),g("button",{ref_key:"otherSettingsButton",ref:v,class:f(["_button",B.$style.headerRightItem]),onClick:vd},[...N[20]||(N[20]=[y("i",{class:"ti ti-dots"},null,-1)])],2)),[[Qe,_(w).ts.other]]),s.instant?I("",!0):ve((c(),g("button",{key:1,class:f(["_button",B.$style.headerRightItem]),onClick:$d},[...N[21]||(N[21]=[y("i",{class:"ti ti-pencil"},null,-1)])],2)),[[Ft],[Qe,_(w).ts.drafts]]),ve((c(),g("button",{class:f(["_button",B.$style.submit]),disabled:!ai.value,"data-cy-open-post-form-submit":"",onClick:ir},[y("div",{class:f(B.$style.submitInner)},[C.value?(c(),g(pe,{key:0},[],64)):p.value?(c(),q(xe,{key:1})):(c(),g("span",{key:2,class:f(B.$style.submitButtonText)},M(Mt.value),3)),y("span",null,[y("i",{class:f(C.value?"ti ti-check":m.value?"ti ti-arrow-back-up":Ce.value?"ti ti-quote":"ti ti-send")},null,2)])],2)],10,g2)),[[Ft]])],2)],2),oe.value?(c(),q(_s,{key:0,warn:"",style:{"margin-top":"8px"}},{default:J(()=>[W(ke,{text:_(w).tsx._postForm.dimensionPrivateNotice({dimension:Z.value})},null,8,["text"])]),_:1})):I("",!0),m.value?(c(),q(Gr,{key:1,class:f(B.$style.targetNote),note:m.value},null,8,["class","note"])):I("",!0),Ce.value?(c(),q(Gr,{key:2,class:f(B.$style.targetNote),note:Ce.value},null,8,["class","note"])):I("",!0),K.value?(c(),g("div",{key:3,class:f(B.$style.withQuote)},[N[23]||(N[23]=y("i",{class:"ti ti-quote"},null,-1)),ie(" "+M(_(w).ts.quoteAttached),1),y("button",{onClick:N[0]||(N[0]=qe=>{K.value=null,Ce.value=null})},[...N[22]||(N[22]=[y("i",{class:"ti ti-x"},null,-1)])])],2)):I("",!0),ue.value==="specified"?(c(),g("div",{key:4,class:f(B.$style.toSpecified)},[y("span",y2,M(_(w).ts.recipient),1),y("div",{class:f(B.$style.visibleUsers)},[(c(!0),g(pe,null,Re(ce.value,qe=>(c(),g("span",{key:qe.id,class:f(B.$style.visibleUser)},[W(Ne,{user:qe},null,8,["user"]),y("button",{class:"_button",style:{padding:"4px 8px"},onClick:or=>yd(qe)},[...N[24]||(N[24]=[y("i",{class:"ti ti-x"},null,-1)])],8,w2)],2))),128)),y("button",{class:"_buttonPrimary",style:{padding:"4px","border-radius":"8px"},onClick:gd},[...N[25]||(N[25]=[y("i",{class:"ti ti-plus ti-fw"},null,-1)])])],2)],2)):I("",!0),$.value?(c(),q(_s,{key:5,warn:"",class:f(B.$style.hasNotSpecifiedMentions)},{default:J(()=>[ie(M(_(w).ts.notSpecifiedMentionWarning)+" - ",1),y("button",{class:"_textButton",onClick:N[1]||(N[1]=qe=>_n())},M(_(w).ts.add),1)]),_:1},8,["class"])):I("",!0),ve(y("div",{class:f(B.$style.cwOuter)},[ve(y("input",{ref_key:"cwInputEl",ref:u,"onUpdate:modelValue":N[2]||(N[2]=qe=>R.value=qe),class:f(["mk-input-text",B.$style.cw]),placeholder:_(w).ts.annotation,onKeydown:Qa,onKeyup:Za,onCompositionend:er},null,42,b2),[[qn,R.value]]),zi-bn.value<20?(c(),g("div",{key:0,class:f(["_acrylic",B.$style.cwTextCount,{[B.$style.cwTextOver]:bn.value>zi}])},M(zi-bn.value),3)):I("",!0)],2),[[_t,P.value]]),y("div",{class:f([B.$style.textOuter,{[B.$style.withCw]:P.value}])},[h.value?(c(),g("div",{key:0,class:f(B.$style.colorBar),style:Ge({background:h.value.color})},null,6)):I("",!0),ve(y("textarea",{ref_key:"textareaEl",ref:r,"onUpdate:modelValue":N[3]||(N[3]=qe=>b.value=qe),class:f([B.$style.text]),disabled:p.value||C.value,readonly:ae.value,placeholder:at.value,"data-cy-post-form-text":"",onKeydown:Qa,onKeyup:Za,onPaste:_d,onCompositionupdate:bd,onCompositionend:er},null,42,_2),[[qn,b.value]]),wn.value-Gt.value<100?(c(),g("div",{key:1,class:f(["_acrylic",B.$style.textCount,{[B.$style.textOver]:Gt.value>wn.value}])},M(wn.value-Gt.value),3)):I("",!0)],2),ve(y("input",{ref_key:"hashtagsInputEl",ref:l,"onUpdate:modelValue":N[4]||(N[4]=qe=>It.value=qe),class:f(["mk-input-text",B.$style.hashtags]),placeholder:_(w).ts.hashtags,list:"hashtags"},null,10,k2),[[_t,un.value],[qn,It.value]]),j.value?(c(),g("div",{key:6,class:f(B.$style.scheduledTime)},[y("div",null,[y("div",{style:Ge([{display:"flex",gap:"4px"},me.value?"color: var(--MI_THEME-error)":void 0])},[N[26]||(N[26]=y("span",{style:{"margin-right":"4px"}},[y("i",{class:"ti ti-calendar-clock"})],-1)),(c(),q(kt(me.value?"del":"span"),{style:Ge(me.value?"opacity: 0.6":void 0)},{default:J(()=>[ie(M(_(w).tsx.willBePostedAt({x:_(ic).format(j.value)})),1)]),_:1},8,["style"]))],4),me.value?(c(),g("div",D2,[N[27]||(N[27]=y("span",{style:{"margin-right":"4px"}},[y("i",{class:"ti ti-exclamation-circle"})],-1)),W(ke,{text:_(w).tsx._postForm.policyScheduleNoteMaxDaysExceeded({max:_(i).policies.scheduleNoteMaxDays}
26)},null,8,["text"])])):I("",!0)]),y("button",{class:"_button",style:{"margin-left":"auto"},onClick:N[5]||(N[5]=qe=>j.value=null)},[...N[28]||(N[28]=[y("i",{class:"ti ti-x"},null,-1)])])],2)):I("",!0),E.value.length>0&&_(he).tosUrl?(c(),q(_s,{key:7,warn:"",style:{"margin-top":"8px"},rounded:!1},{default:J(()=>[W(ke,{text:_(w).tsx._postForm.tosAndGuidelinesInfo({tosUrl:_(he).tosUrl})},null,8,["text"])]),_:1})):I("",!0),W(Cv,{modelValue:E.value,"onUpdate:modelValue":N[6]||(N[6]=qe=>E.value=qe),onDetach:rd,onChangeSensitive:ld,onChangeName:ud,onReplaceFile:cd},null,8,["modelValue"]),T.value?(c(),q(Kg,{key:8,modelValue:T.value,"onUpdate:modelValue":N[7]||(N[7]=qe=>T.value=qe),onDestroyed:N[8]||(N[8]=qe=>T.value=null)},null,8,["modelValue"])):I("",!0),H.value?(c(),q(Np,{key:9,class:f(B.$style.preview),text:b.value,files:E.value,poll:T.value??void 0,useCw:P.value,cw:R.value,user:Yt.value??_(i)},null,8,["class","text","files","poll","useCw","cw","user"])):I("",!0),V.value?(c(),g("div",E2)):I("",!0),y("footer",{class:f(B.$style.footer)},[y("div",{class:f(B.$style.footerLeft)},[ve((c(),g("button",{class:f(["_button",B.$style.footerButton]),onClick:ad},[...N[29]||(N[29]=[y("i",{class:"ti ti-photo-plus"},null,-1)])],2)),[[Qe,_(w).ts.attachFile]]),ve((c(),g("button",{class:f(["_button",[B.$style.footerButton,{[B.$style.footerButtonActive]:T.value}]]),onClick:sd},[...N[30]||(N[30]=[y("i",{class:"ti ti-chart-arrows"},null,-1)])],2)),[[Qe,_(w).ts.poll]]),ve((c(),g("button",{class:f(["_button",[B.$style.footerButton,{[B.$style.footerButtonActive]:P.value}]]),onClick:N[9]||(N[9]=qe=>P.value=!P.value)},[...N[31]||(N[31]=[y("i",{class:"ti ti-eye-off"},null,-1)])],2)),[[Qe,_(w).ts.useCw]]),ve((c(),g("button",{class:f(["_button",B.$style.footerButton]),onClick:Td},[...N[32]||(N[32]=[y("i",{class:"ti ti-at"},null,-1)])],2)),[[Qe,_(w).ts.mention]]),ve((c(),g("button",{class:f(["_button",[B.$style.footerButton,{[B.$style.footerButtonActive]:un.value}]]),onClick:N[10]||(N[10]=qe=>un.value=!un.value)},[...N[33]||(N[33]=[y("i",{class:"ti ti-hash"},null,-1)])],2)),[[Qe,_(w).ts.hashtags]]),_(i).policies.canScheduleNote?ve((c(),g("button",{key:0,class:f(["_button",B.$style.footerButton]),onClick:wd},[...N[34]||(N[34]=[y("i",{class:"ti ti-calendar-clock"},null,-1)])],2)),[[Qe,_(w).ts.setScheduledTime]]):I("",!0),_(Ve).length>0?ve((c(),g("button",{key:1,class:f(["_button",B.$style.footerButton]),onClick:Sd},[...N[35]||(N[35]=[y("i",{class:"ti ti-plug"},null,-1)])],2)),[[Qe,_(w).ts.plugins]]):I("",!0),ve((c(),g("button",{class:f(["_button",B.$style.footerButton]),onClick:Md},[...N[36]||(N[36]=[y("i",{class:"ti ti-mood-happy"},null,-1)])],2)),[[Qe,_(w).ts.emoji]]),L.value?ve((c(),g("button",{key:2,class:f(["_button",B.$style.footerButton]),onClick:Id},[...N[37]||(N[37]=[y("i",{class:"ti ti-palette"},null,-1)])],2)),[[Qe,_(w).ts.addMfmFunction]]):I("",!0)],2),y("div",{class:f(B.$style.footerRight)},[ve((c(),g("button",{class:f(["_button",[B.$style.footerButton,{[B.$style.previewButtonActive]:H.value}]]),onClick:N[11]||(N[11]=qe=>H.value=!H.value)},[...N[38]||(N[38]=[y("i",{class:"ti ti-eye"},null,-1)])],2)),[[Qe,_(w).ts.previewNoteText]])],2)],2),y("datalist",C2,[(c(!0),g(pe,null,Re(O.value,qe=>(c(),g("option",{key:qe,value:qe},null,8,A2))),128))])],34)}}}),x2="xpDI4",T2="xxtDg",M2="x6ccQ",I2="xCpWa",S2="xjSpm",F2="xBWPT",B2="xdKUg",P2="x1Ye0",R2="xBTsK",L2="xiS7Q",N2="xlHOl",O2="x6HLb",j2="x9WHn",V2="x6GzG",z2="xbDCc",H2="xrrzA",U2="xoGjR",q2="xhv1G",W2="xy4gH",K2="x9eP3",J2="x8ZVp",G2="xfPy3",Y2="xeg2G",X2="xxQx9",Q2="xqwIh",Z2="x8B0D",ek="xDrbJ",tk="xrlSO",nk="xAM9h",ik="xnEld",ok="xu6Ni",sk="xoS7Y",ak="xukGL",rk="xcyut",lk="xkr7J",uk="xwaYk",ck="xizQe",dk="xjAub",fk="xfRaq",mk="xF7YY",hk="xADxW",pk={root:x2,modal:T2,header:M2,headerLeft:I2,cancel:S2,account:F2,avatar:B2,headerRight:P2,submit:R2,submitInner:L2,posting:N2,colorBar:O2,headerRightItem:j2,danger:V2,headerRightButtonText:z2,visibility:H2,preview:U2,targetNote:q2,withQuote:W2,toSpecified:K2,visibleUsers:J2,visibleUser:G2,hasNotSpecifiedMentions:Y2,cw:X2,hashtags:Q2,text:Z2,cwOuter:ek,cwTextCount:tk,cwTextOver:nk,textOuter:ik,withCw:ok,textCount:sk,textOver:ak,scheduledTime:rk,footer:lk,footerLeft:uk,footerRight:ck,footerButton:dk,footerButtonActive:fk,previewButtonActive:mk,submitButtonText:hk},vk={$style:pk},gk=re($2,[["__cssModules",vk]]),yk=ne({__name:"MkPostFormDialog",props:{reply:{},renote:{},channel:{},mention:{},specified:{},initialText:{},initialCw:{},initialVisibility:{},initialFiles:{},initialLocalOnly:{type:Boolean,default:void 0},initialDimension:{},initialVisibleUsers:{},initialNote:{},instant:{type:Boolean},fixed:{type:Boolean},autofocus:{type:Boolean}},emits:["closed"],setup(e,{emit:t}){const n=e,i=t,o=Ee("modal");function s(){o.value?.close({useSendAnimation:!0})}function a(){Ci()}function r(){i("closed")}return(u,l)=>(c(),q(Si,{ref_key:"modal",ref:o,preferType:"dialog",hasInteractionWithOtherFocusTrappedEls:!0,onClick:l[2]||(l[2]=d=>o.value?.close()),onClosed:l[3]||(l[3]=d=>r()),onEsc:l[4]||(l[4]=d=>o.value?.close())},{default:J(()=>[W(gk,Jt({ref:"form",class:u.$style.form},n,{autofocus:"",freezeAfterPosted:"",onPosting:s,onPostError:a,onCancel:l[0]||(l[0]=d=>o.value?.close()),onEsc:l[1]||(l[1]=d=>o.value?.close())}),null,16,["class"])]),_:1},512))}}),wk="xxski",bk={form:wk},_k={$style:bk}
26,kk=re(yk,[["__cssModules",_k]]),Dk=ne({__name:"MkWaitingDialog",props:{success:{type:Boolean},showing:{type:Boolean},text:{}},emits:["done","closed"],setup(e,{emit:t}){const n=Ee("modal"),i=e,o=t;function s(){o("done"),n.value?.close()}return le(()=>i.showing,()=>{i.showing||s()}),(a,r)=>{const u=we("MkLoading"),l=we("MkEllipsis");return c(),q(Si,{ref_key:"modal",ref:n,preferType:"dialog",zPriority:"high",onClick:r[0]||(r[0]=d=>e.success?s():()=>{}),onClosed:r[1]||(r[1]=d=>o("closed"))},{default:J(()=>[y("div",{class:f([a.$style.root,{[a.$style.iconOnly]:e.text==null||e.success}])},[e.success?(c(),g("i",{key:0,class:f([[a.$style.icon,a.$style.success],"ti ti-check"])},null,2)):(c(),q(u,{key:1,class:f([a.$style.icon,a.$style.waiting]),em:!0},null,8,["class"])),e.text&&!e.success?(c(),g("div",{key:2,class:f(a.$style.text)},[ie(M(e.text),1),W(l)],2)):I("",!0)],2)]),_:1},512)}}}),Ek="x56Ev",Ck="xkW4j",Ak="xiIhY",$k="xjFsq",xk="xt0yC",Tk="xBKDx",Mk={root:Ek,iconOnly:Ck,icon:Ak,success:$k,waiting:xk,text:Tk},Ik={$style:Mk},Ho=re(Dk,[["__cssModules",Ik]]),Sk=Object.freeze(Object.defineProperty({__proto__:null,default:Ho},Symbol.toStringTag,{value:"Module"})),Fk={};function Bk(e,t){const n=we("MkLoading");return c(),q(n)}const Uo=re(Fk,[["render",Bk]]),Pk="abcdefghijklmnopqrstuvwxyz";function Rk(e=32,t=Pk){let n="";const i=t.length;for(let o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*i));return n}const ei=new xi,Lk=ne({__name:"RouterView",props:{router:{}},setup(e){const n=e.router??tt(ze.router);if(n==null)throw new Error("no router provided");const i=Rk();lt(ze.viewId,i);const o=tt(ze.routerCurrentDepth,0);lt(ze.routerCurrentDepth,o+1);const s=n.current,a=Wt("component"in s.route?s.route.component:Uo),r=F(s.props);let u=s.route.path;const l=F(n.getCurrentPath());n.useListener("change",({resolved:v})=>{if(v==null||"redirect"in v.route||v.route.path===u&&qt(v.props,r.value))return;function p(){a.value=v.route.component,r.value=v.props,l.value=n.getCurrentPath(),u=v.route.path}p(),Pe(()=>{d.value&&(d.value=!1)})});const d=F(!1);return ei.on("requestClearPageCache",()=>{d.value||(d.value=!0)}),jt(()=>{}),(v,p)=>{const C=we("MkLoading");return c(),g("div",{class:f(["_pageContainer",v.$style.root])},[(c(),q(Nd,{max:_(A).s.numberOfPageCache},[(c(),q(Io,{timeout:0},{fallback:J(()=>[W(C)]),default:J(()=>[(c(),q(kt(a.value),Jt({key:l.value},Object.fromEntries(r.value)),null,16))]),_:1}))],1032,["max"]))],2)}}}),Nk="xmvLQ",Ok={root:Nk},jk={$style:Ok},ac=re(Lk,[["__cssModules",jk]]),rc=(e,t,n=!0)=>{if(n&&e===t)return!0;let i=t.parentNode;for(;i;){if(i===e)return!0;i=i.parentNode}return!1},Vk=["data-focus-trap-interactable"],zk=["onClick"],Hk=["onClick"],ui=50,Nn=250,Uk=ne({__name:"MkWindow",props:{initialWidth:{default:400},initialHeight:{default:null},canResize:{type:Boolean,default:!1},closeButton:{type:Boolean,default:!0},mini:{type:Boolean,default:!1},front:{type:Boolean,default:!1},contextmenu:{default:null},buttonsLeft:{default:()=>[]},buttonsRight:{default:()=>[]},allowFocusTrapInteraction:{type:Boolean,default:!1}},emits:["closed"],setup(e,{expose:t,emit:n}){function i(V){window.addEventListener("mousemove",V),window.addEventListener("touchmove",V),window.addEventListener("mouseleave",o.bind(null,V)),window.addEventListener("mouseup",o.bind(null,V)),window.addEventListener("touchend",o.bind(null,V))}function o(V){window.removeEventListener("mousemove",V),window.removeEventListener("touchmove",V),window.removeEventListener("mouseleave",o),window.removeEventListener("mouseup",o),window.removeEventListener("touchend",o)}const s=e,a=n;lt("inWindow",!0);const r=Ee("rootEl"),u=F(!0);let l=0;const d=F(!1),v=F(!1);let p="",C="",D="",m="";function k(){u.value=!1}function h(V){V.which===27&&(V.preventDefault(),V.stopPropagation(),k())}function b(V){s.contextmenu&&bc(s.contextmenu,V)}function E(){r.value&&(r.value.style.zIndex=si(s.front?"middle":"low").toString())}function T(){r.value!=null&&(d.value=!0,p=r.value.style.top,C=r.value.style.left,D=r.value.style.width,m=r.value.style.height,r.value.style.top="0",r.value.style.left="0",r.value.style.width="100%",r.value.style.height="100%")}function P(){r.value!=null&&(d.value=!1,r.value.style.top=p,r.value.style.left=C,r.value.style.width=D,r.value.style.height=m)}function H(){r.value!=null&&(v.value=!0,D=r.value.style.width,m=r.value.style.height,r.value.style.width=Nn+"px",r.value.style.height=s.mini?"32px":"39px")}function L(){if(r.value==null)return;const V=r.value;v.value=!1,r.value.style.width=D,r.value.style.height=m;const ae=window.innerWidth,$e=window.innerHeight,Ce=V.offsetWidth,Ve=V.offsetHeight,Ye=V.getBoundingClientRect();Ye.top+Ve>$e&&(V.style.top=$e-Ve+"px"),Ye.left+Ce>ae&&(V.style.left=ae-Ce+"px")}function R(){E()}function Q(){v.value?L():T()}function Z(V){return"touches"in V&&V.touches.length>0?V.touches[0].clientX:"clientX"in V?V.clientX:0}function oe(V){return"touches"in V&&V.touches.length>
260?V.touches[0].clientY:"clientY"in V?V.clientY:0}function be(V){if("button"in V&&V.button===2)return;let ae=!1;if(d.value&&(ae=!0,P()),Date.now()-l<300){l=Date.now(),Q();return}l=Date.now();const $e=r.value;if($e==null)return;rc($e,window.document.activeElement)||$e.focus();const Ce=$e.getBoundingClientRect(),Ve=Z(V),Ye=oe(V),at=ae?parseInt(D,10)/2:Ve-Ce.left,Mt=ae?20:Ye-Ce.top,Gt=window.innerWidth,wn=window.innerHeight,bn=$e.offsetWidth,ai=$e.offsetHeight;function un(It,ri){let St=It-at,_n=ri-Mt;_n+ai>wn&&(_n=wn-ai),St<0&&(St=0),_n<0&&(_n=0),St+bn>Gt&&(St=Gt-bn),r.value&&(r.value.style.left=St+"px",r.value.style.top=_n+"px")}ae&&un(Ve,Ye),i(It=>{const ri=Z(It),St=oe(It);un(ri,St)})}function ue(V){const ae=r.value;if(ae==null)return;const $e=oe(V),Ce=parseInt(getComputedStyle(ae,"").height,10),Ve=parseInt(getComputedStyle(ae,"").top,10);i(Ye=>{const at=oe(Ye)-$e;Ve+at>0?Ce+-at>ui?(se(Ce+-at),$(Ve+at)):(se(ui),$(Ve+(Ce-ui))):(se(Ve+Ce),$(0))})}function ce(V){const ae=r.value;if(ae==null)return;const $e=Z(V),Ce=parseInt(getComputedStyle(ae,"").width,10),Ve=parseInt(getComputedStyle(ae,"").left,10),Ye=window.innerWidth;i(at=>{const Mt=Z(at)-$e;Ve+Ce+Mt<Ye?Ce+Mt>Nn?K(Ce+Mt):K(Nn):K(Ye-Ve)})}function Fe(V){const ae=r.value;if(ae==null)return;const $e=oe(V),Ce=parseInt(getComputedStyle(ae,"").height,10),Ve=parseInt(getComputedStyle(ae,"").top,10),Ye=window.innerHeight;i(at=>{const Mt=oe(at)-$e;Ve+Ce+Mt<Ye?Ce+Mt>ui?se(Ce+Mt):se(ui):se(Ye-Ve)})}function j(V){const ae=r.value;if(ae==null)return;const $e=Z(V),Ce=parseInt(getComputedStyle(ae,"").width,10),Ve=parseInt(getComputedStyle(ae,"").left,10);i(Ye=>{const at=Z(Ye)-$e;Ve+at>0?Ce+-at>Nn?(K(Ce+-at),O(Ve+at)):(K(Nn),O(Ve+(Ce-Nn))):(K(Ve+Ce),O(0))})}function me(V){ue(V),j(V)}function Me(V){ue(V),ce(V)}function X(V){Fe(V),ce(V)}function te(V){Fe(V),j(V)}function se(V){V>window.innerHeight&&(V=window.innerHeight),r.value&&(r.value.style.height=V+"px")}function K(V){V>window.innerWidth&&(V=window.innerWidth),r.value&&(r.value.style.width=V+"px")}function $(V){r.value&&(r.value.style.top=V+"px")}function O(V){r.value&&(r.value.style.left=V+"px")}function Le(){const V=r.value;if(V==null)return;const ae=V.getBoundingClientRect(),$e=window.innerWidth,Ce=window.innerHeight,Ve=V.offsetWidth,Ye=V.offsetHeight;ae.left<0&&(V.style.left="0"),ae.top+Ye>Ce&&(V.style.top=Ce-Ye+"px"),ae.left+Ve>$e&&(V.style.left=$e-Ve+"px"),ae.top<0&&(V.style.top="0")}return je(()=>{K(s.initialWidth),s.initialHeight&&se(s.initialHeight),r.value&&($(window.innerHeight/2-r.value.offsetHeight/2),O(window.innerWidth/2-r.value.offsetWidth/2)),E(),window.addEventListener("resize",Le)}),jt(()=>{window.removeEventListener("resize",Le)}),t({close:k}),(V,ae)=>{const $e=Ue("tooltip");return c(),q(bt,{enterActiveClass:_(A).s.animation?V.$style.transition_window_enterActive:"",leaveActiveClass:_(A).s.animation?V.$style.transition_window_leaveActive:"",enterFromClass:_(A).s.animation?V.$style.transition_window_enterFrom:"",leaveToClass:_(A).s.animation?V.$style.transition_window_leaveTo:"",appear:"",onAfterLeave:ae[5]||(ae[5]=Ce=>a("closed"))},{default:J(()=>[u.value?(c(),g("div",{key:0,ref_key:"rootEl",ref:r,class:f([V.$style.root,{[V.$style.maximized]:d.value}]),"data-focus-trap-interactable":e.allowFocusTrapInteraction?"":null},[y("div",{class:f([V.$style.body,"_shadow"]),onMousedown:R,onKeydown:h},[y("div",{class:f([V.$style.header,{[V.$style.mini]:e.mini}]),onContextmenu:ge(b,["prevent","stop"])},[y("span",{class:f(V.$style.headerLeft)},[v.value?I("",!0):(c(!0),g(pe,{key:0},Re(e.buttonsLeft,Ce=>ve((c(),g("button",{class:f(["_button",[V.$style.headerButton,{[V.$style.highlighted]:Ce.highlighted}]]),onClick:Ce.onClick},[y("i",{class:f(Ce.icon)},null,2)],10,zk)),[[$e,Ce.title]])),256))],2),y("span",{class:f(V.$style.headerTitle),onMousedown:ge(be,["prevent"]),onTouchstart:ge(be,["prevent"])},[Te(V.$slots,"header")],34),y("span",{class:f(V.$style.headerRight)},[v.value?I("",!0):(c(!0),g(pe,{key:0},Re(e.buttonsRight,Ce=>ve((c(),g("button",{class:f(["_button",[V.$style.headerButton,{[V.$style.highlighted]:Ce.highlighted}]]),onClick:Ce.onClick},[y("i",{class:f(Ce.icon)},null,2)],10,Hk)),[[$e,Ce.title]])),256)),e.canResize&&v.value?ve((c(),g("button",{key:1,class:f(["_button",V.$style.headerButton]),onClick:ae[0]||(ae[0]=Ce=>L())},[...ae[6]||(ae[6]=[y("i",{class:"ti ti-maximize"},null,-1)])],2)),[[$e,_(w).ts.windowRestore]]):e.canResize&&!d.value?ve((c(),g("button",{key:2,class:f(["_button",V.$style.headerButton]),onClick:ae[1]||(ae[1]=Ce=>H())},[...ae[7]||(ae[7]=[y("i",{class:"ti ti-minimize"},null,-1)])],2)),[[$e,_(w).ts.windowMinimize]]):I("",!0),e.canResize&&d.value?ve((c(),g("button",{key:3,class:f(["_button",V.$style.headerButton]),onClick:ae[2]||(ae[2]=Ce=>P())},[...ae[8]||(ae[8]=[y("i",{class:"ti ti-picture-in-picture"},null,-1)])],2)),[[$e,_(w).ts.windowRestore]]):e.canResize&&!d.value&&!v.value?ve((c(),g("button",{key:4,class:f(["_button",V.$style.headerButton]),onClick:ae[3]||(ae[3]=Ce=>T())},[...ae[9]||(ae[9]=[y("i",{class:"ti ti-rectangle"},null,-1)])],2)),[[$e,_(w).ts.windowMaximize]]):I("",!0),e.closeButton?ve((c(),g("button",{key:5,class:f(["_button",V.$style.headerButton]),onClick:ae[4]||(ae[4]=Ce=>k())},[...ae[10]||(ae[10]=[y("i",{class:"ti ti-x"},null,-1)])],2)),[[$e,_(w).ts.close]]):I("",!0)],2)],34),y("div",{class:f(V.$style.content)},[Te(V.$slots,"default")],2)],34),e.canResize&&!v.value?(c(),g(pe,{key:0},[y("div",{class:f(V.$style.handleTop),onMousedown:ge(ue,["prevent"])},null,34),y("div",{class:f(V.$style.handleRight),onMousedown:ge(ce,["prevent"])},null,34),y("div",{class:f(V.$style.handleBottom),onMousedown:ge(Fe,["prevent"])},null,34),y("div",{class:f(V.$style.handleLeft),onMousedown:ge(j,["prevent"])},null,34),y("div",{class:f(V.$style.handleTopLeft),onMousedown:ge(me,["prevent"])},null,34),y("div",{class:f(V.$style.handleTopRight),onMousedown:ge(Me,["prevent"])},null,34),y("div",{class:f(V.$style.handleBottomRight),onMousedown:ge(X,["prevent"])},null,34),y("div",{class:f(V.$style.handleBottomLeft),onMousedown:ge(te,["prevent"])},null,34)],64)):I("",!0)],10,Vk)):I("",!0)]),_:3}
26,8,["enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass"])}}}),qk="xAyR3",Wk="xCCbe",Kk="xeaYl",Jk="x1xGm",Gk="xpAOc",Yk="xwAht",Xk="xnMEB",Qk="xbt7a",Zk="xnNqM",eD="x7LLr",tD="xD8eR",nD="xF9hE",iD="xaEYs",oD="x3FS8",sD="xfc6t",aD="xe7xr",rD="x6GRm xe7xr",lD="xpwnF xe7xr",uD="xnqRB xe7xr",cD="xuyYZ xe7xr",dD="xawgF xe7xr",fD="x6Jrb xe7xr",mD="xviz9 xe7xr",hD="xij7W xe7xr",pD={transition_window_enterActive:qk,transition_window_leaveActive:Wk,transition_window_enterFrom:Kk,transition_window_leaveTo:Jk,root:Gk,maximized:Yk,body:Xk,header:Qk,mini:Zk,headerButton:eD,highlighted:tD,headerLeft:nD,headerRight:iD,headerTitle:oD,content:sD,handle:aD,handleTop:rD,handleRight:lD,handleBottom:uD,handleLeft:cD,handleTopLeft:dD,handleTopRight:fD,handleBottomRight:mD,handleBottomLeft:hD},vD={$style:pD},lc=re(Uk,[["__cssModules",vD]]);function gD(e,t){let n=e.startsWith("http://")||e.startsWith("https://")?e:mt+e;if(n=Xs(n,"zen"),t){const i=t.getBoundingClientRect(),o=parseInt(getComputedStyle(t,"").width,10),s=parseInt(getComputedStyle(t,"").height,10),a=window.screenX+i.left,r=window.screenY+i.top;window.open(n,n,`width=${o}, height=${s}, top=${r}, left=${a}`)}else{const s=window.top.outerHeight/2+window.top.screenY-250,a=window.top.outerWidth/2+window.top.screenX-400/2;window.open(n,n,`width=400, height=500, top=${s}, left=${a}`)}}const uc=Symbol("ReceiverKey"),yD=e=>{lt(uc,e)},wD=()=>tt(uc),bD=Symbol("MetadataKey"),_D=e=>{lt(bD,e)},kD=e=>{const t=F(sr(e)),n=()=>t.value,i=wD();i?.(n),jt(le(()=>sr(e),o=>{t.value=o,i?.(n)},{deep:!0})),Kt(()=>{i?.(n)}),lt(ze.pageMetadata,t)},cc=e=>{yD(e)},dc=e=>{_D(e)},DD=/^(https?:\/\/|\/\/)?([^@/\s]+@)?(www\.)?([^:/\s]+)/i,ED=/^\/(.+)\/(.*)$/;async function fc(e,t){const n=DD.exec(t)?.[4],i=!n||t.startsWith(mt),o=i||he.wellKnownWebsites.some(a=>{const r=ED.exec(a);return r?new RegExp(r[1],r[2]).test(t):a.includes(" ")?a.split(" ").every(u=>t.includes(u)):n.endsWith(a)}),s=A.r.trustedExternalWebsites.value.includes(n);if(!i&&!o&&!s){e.preventDefault(),e.stopPropagation();const a=await ft({type:"warning",title:w.ts.warningRedirectingExternalWebsiteTitle,text:w.tsx.warningRedirectingExternalWebsiteDescription({url:`\`\`\` 27${t} 28\`\`\``}),switchLabel:w.ts.warningRedirectingExternalWebsiteTrustThisSite});if(a.canceled)return!1;a.toggle&&await A.commit("trustedExternalWebsites",[...A.r.trustedExternalWebsites.value,n]),window.open(t,"_blank","noopener")}return!0}const CD=ne({__name:"MkLink",props:{url:{},rel:{},navigationBehavior:{},hideIcon:{type:Boolean,default:!1}},setup(e){const t=e,n=qu(t.url,mt),i=n!==t.url,o=i?"to":"href",s=i?null:"_blank",a=F();return Xl.value&&Vo(a,async r=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DriF6uNA.js"),__vite__mapDeps([130,2,19,20,3,4,131]))),{showing:r,url:t.url,source:a.value instanceof HTMLElement?a.value:a.value?.$el},{},"closed")}),(r,u)=>(c(),q(kt(i?"MkA":"a"),ha({ref_key:"el",ref:a,style:{"word-break":"break-all"},class:"_link",[_(o)||""]:_(n),rel:e.rel??"nofollow noopener",target:_(s),behavior:t.navigationBehavior,title:e.url,onClick:u[0]||(u[0]=l=>_(fc)(l,e.url))}),{default:J(()=>[Te(r.$slots,"default"),_(s)==="_blank"&&!e.hideIcon?(c(),g("i",{key:0,class:f(["ti ti-external-link",r.$style.icon])},null,2)):I("",!0)]),_:3},16,["rel","target","behavior","title"]))}}),AD="xyxFI",$D={icon:AD},xD={$style:$D},za=re(CD,[["__cssModules",xD]]),TD=["src"],MD={class:"_gaps"},ID={key:0},SD={key:1},FD={key:3,style:{opacity:"0.7"}},BD=ne({__name:"_error_",props:{error:{}},setup(e){const t=F(!1),n=F(!1),i=F(null);Ae("meta",{detail:!1}).then(s=>{t.value=!0,n.value=!1,i.value=s,ee.setItem("v",s.version)},()=>{t.value=!0,n.value=!0});function o(){an()}return kD(()=>({title:w.ts.error,icon:"ti ti-alert-triangle"})),(s,a)=>{const r=we("MkLoading");return c(),g(pe,null,[t.value?I("",!0):(c(),q(r,{key:0})),W(bt,{name:_(A).s.animation?"_transition_zoom":"",appear:""},{default:J(()=>[ve(y("div",{class:f(s.$style.root)},[y("img",{src:_(Yl),draggable:"false",class:f(s.$style.img)},null,10,TD),y("div",MD,[y("div",null,[y("b",null,[a[0]||(a[0]=y("i",{class:"ti ti-alert-triangle"},null,-1)),ie(" "+M(_(w).ts.pageLoadError),1)])]),i.value&&_(At)===i.value.version?(c(),g("div",ID,M(_(w).ts.pageLoadErrorDescription),1)):n.value?(c(),g("div",SD,M(_(w).ts.serverIsDead),1)):(c(),g(pe,{key:2},[y("div",null,M(_(w).ts.newVersionOfClientAvailable),1),y("div",null,M(_(w).ts.you
28ShouldUpgradeClient),1),W(dt,{style:{margin:"8px auto"},onClick:o},{default:J(()=>[ie(M(_(w).ts.reload),1)]),_:1})],64)),y("div",null,[W(za,{url:"https://misskey-hub.net/docs/for-users/resources/troubleshooting/",target:"_blank"},{default:J(()=>[ie(M(_(w).ts.troubleshooting),1)]),_:1})]),e.error?(c(),g("div",FD,"ERROR: "+M(e.error),1)):I("",!0)])],2),[[_t,t.value]])]),_:1},8,["name"])],64)}}}),PD="xiqec",RD="xAD11",LD={root:PD,img:RD},ND={$style:LD},OD=re(BD,[["__cssModules",ND]]),U=e=>de({loader:e,loadingComponent:Uo,errorComponent:OD}),jD=[{path:"/@:username/pages/:pageName(*)",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DrLmPJ_k.js").then(e=>e.p),__vite__mapDeps([132,2,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,133,97,45,98,134,9,10,135,136,137])))},{path:"/@:acct/following",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CWYeSrrd.js"),__vite__mapDeps([138,2,139,140,141,142,143,3,4])))},{path:"/@:acct/followers",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BUpEyVyK.js"),__vite__mapDeps([144,2,139,140,141,142,143,3,4])))},{name:"user",path:"/@:acct/:page?",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C3O3oGLb.js"),__vite__mapDeps([145,2,146,3,4,147])))},{name:"note",path:"/notes/:noteId/:initialTab?",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BiYvR_9r.js"),__vite__mapDeps([148,2,133,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,97,45,98,134,149,150,151,152,153,154,155,146,156])))},{name:"list",path:"/list/:listId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DvlUtNun.js"),__vite__mapDeps([157,97,45,2,98,3,4,158])))},{path:"/clips/:clipId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.ukUInlHM.js"),__vite__mapDeps([159,149,14,2,15,16,17,3,4,18,19,20,21,22,23,24,25,26,150,146,160])))},{path:"/instance-info/:host",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BZ4rwD2x.js"),__vite__mapDeps([161,162,163,16,2,17,3,4,18,164,165,153,166,167,168,169,170,171,172,173,174,97,45,98,175])))},{name:"settings",path:"/settings",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D0vSN1ju.js"),__vite__mapDeps([176,177,2,178,3,4,179]))),loginRequired:!0,children:[{path:"/profile",name:"profile",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DqEpm2c7.js"),__vite__mapDeps([180,181,2,182,80,81,183,184,3,4,185])))},{path:"/avatar-decoration",name:"avatarDecoration",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Cwi46tk6.js"),__vite__mapDeps([186,2,3,4,187])))},{path:"/privacy",name:"privacy",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.TpiQ7v_w.js"),__vite__mapDeps([188,173,2,174,80,81,189,190,191,192,3,4])))},{path:"/emoji-palette",name:"emoji-palette",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DeK4OZnM.js"),__vite__mapDeps([193,103,2,80,81,194,195,196,197,173,174,198,199,3,4,200])))},{path:"/drive",name:"drive",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CLtI1E0g.js"),__vite__mapDeps([201,171,2,172,173,174,181,182,162,163,16,17,3,4,18,164,165,153,166,167,168,198,199,191,192,202])))},{path:"/drive/cleaner",name:"drive",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.8nIQocEr.js"),__vite__mapDeps([203,2,204,3,4,205])))},{path:"/notifications",name:"notifications",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DxljPM7F.js"),__vite__mapDeps([206,2,171,172,173,174,80,81,207,191,192,3,4])))},{path:"/email",name:"email",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DGy6JLcw.js"),__vite__mapDeps([208,173,2,174,189,190,3,4])))},{path:"/security",name:"security",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.KUdiyy_X.js"),__vite__mapDeps([209,111,173,2,174,80,81,183,184,122,123,191,192,3,4,210])))},{path:"/preferences",name:"preferences",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.B9eZsrPx.js"),__vite__mapDeps([211,194,195,2,196,197,212,213,80,81,171,172,214,198,199,191,192,215,216,3,4,217])))},{path:"/theme/install",name:"theme",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CE3ZYe2h.js"),__vite__mapDeps([218,219,2,220,3,4,221,222])))},{path:"/theme/manage",name:"theme",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DYcrXMgt.js"),__vite__mapDeps([223,2,3,4])))},{path:"/theme",name:"theme",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DUvQBrtN.js"),__vite__mapDeps([224,2,173,174,171,172,80,81,3,4,225])))},{path:"/navbar",name:"navbar",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BhvqiTUI.js"),__vite__mapDeps([226,194,195,2,196,197,183,184,9,10,198,199,3,4,227])))},{path:"/statusbar",name:"statusbar",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DQpLC_oo.js"),__vite__mapDeps([228,194,195,2,196,197,212,213,80,81,3,4])))},{path:"/sounds",name:"sounds",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DPnTPEtq.js"),__vite__mapDeps([229,212,2,213,173,174,80,81,198,199,191,192,3,4,230])))},{path:"/plugin/install",name:"plugin",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.AaU__W55.js"),__vite__mapDeps([231,219,2,220,3,4,221,222])))},{path:"/plugin",name:"plugin",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C_bznnUF.js"),__vite__mapDeps([232,171,2,172,173,174,80,81,191,192,3,4,233])))},{path:"/account-data",name:"account-data",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.q52qrpde.js"),__vite__mapDeps([234,80,2,81,191,192,3,4,235])))},{path:"/mute-block",name:"mute-block",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DRKuzeEv.js"),__vite__mapDeps([236,2,97,45,98,80,81,191,192,214,3,4,237])))},{path:"/connect",name:"connect",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.ChM8g6pI.js"),__vite__mapDeps([238,173,2,174,171,172,191,192,80,81,3,4])))},{path:"/apps",name:"connect",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DGFFq2B2.js"),__vite__mapDeps([239,80,2,81,3,4,240])))},{path:"/webhook/edit/:webhookId",name:"connect",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DWR2bFF0.js"),__vite__mapDeps([241,173,2,174,3,4,242])))},{path:"/webhook/new",name:"connect",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CUt3rB7q.js"),__vite__mapDeps([243,173,2,174,3,4])))},{path:"/deck",name:"deck",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.lTbhBtxw.js"),__vite__mapDeps([244,194,195,2,196,197,212,213,198,199,214,3,4])))},{path:"/custom-css",name:"preferences",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D8YwIt3g.js"),__vite__mapDeps([245,219,2,220,3,4,221,222])))},{path:"/accounts",name:"accounts",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Dd4mgRq4.js"),__vite__mapDeps([246,2,97,45,98,3,4,247])))},{path:"/account-stats",name:"other",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C1RW_IuC.js"),__vite__mapDeps([248,173,2,174,3,4])))},{path:"/other",name:"other",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BhTPMMvK.js"),__vite__mapDeps([249,80,2,81,140,141,142,171,172,183,184,214,250,251,3,4,252])))},{path:"/",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CzVcejUT.js"),__vite__mapDeps([253,2])))}]},{path:"/reset-password/:token?",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Dj2EAKZ5.js"),__vite__mapDeps([254,122,2,123,3,4])))},{path:"/signup-complete/:code",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DGpYj5Pa.js"),__vite__mapDeps([255,2,3,4,256])))},{path:"/announcements",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.bjorTRwd.js"),__vite__mapDeps([257,2,3,4,258])))},{path:"/announcements/:announcementId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DBNw-TJW.js"),__vite__mapDeps([259,2,3,4,260])))},{path:"/about",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C6PQybbz.js"),__vite__mapDeps([261,2,3,4]))),hash:"initialTab"},{path:"/contact",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BWqTak7U.js"),__vite__mapDeps([262,2,3,4])))},{path:"/about-misskey",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DATJKBll.js"),__vite__mapDeps([263,171,2,172,173,174,264,3,4,265])))},{path:"/invite",name:"invite",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CYQ3RY9T.js"),__vite__mapDeps([266,267,80,2,81,268,3,4,269])))},{path:"/ads",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.oXsaTnGK.js"),__vite__mapDeps([270,2,3,4])))},{path:"/theme-editor",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.xs3YxxfB.js"),__vite__mapDeps([271,219,2,220,3,4,221,222,80,81,272]))),loginRequired:!0},{path:"/roles/:roleId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.gv9sitYl.js"),__vite__mapDeps([273,274,140,141,2,142,275,31,32,27,28,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,33,276])))},{path:"/user-tags/:tag",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D6o0--6w.js"),__vite__mapDeps([277,274,140,141,2,142,275,3,4])))},{path:"/explore",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Bi9Bl87C.js"),__vite__mapDeps([278,149,14,2,15,16,17,3,4,18,19,20,21,22,23,24,25,26,150,274,140,141,142,275,279,280,250,251]))),hash:"initialTab"},{path:"/search",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.W8C9Kj1E.js"),__vite__mapDeps([281,22,2,3,4]))),query:{q:"query",userId:"userId",username:"username",host:"host",channel:"channel",type:"type",origin:"origin"}},{path:"/authorize-follow",redirect:"/lookup",loginRequired:!0},{path:"/authorize_interaction",redirect:"/lookup",loginRequired:!0},{path:"/lookup",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BJ37-8EQ.js"),__vite__mapDeps([282,2,3,4]))),loginRequired:!0},{path:"/share",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.dj3kVGiR.js"),__vite__mapDeps([283,82,2,3,4]))),loginRequired:!0},{path:"/api-console",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Bic6Hjsm.js"),__vite__mapDeps([284,2,3,4]))),loginRequired:!0},{path:"/scratchpad",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BSMVeLMM.js"),__vite__mapDeps([285,71,72,73,74,9,2,10,219,220,3,4,221,222,75,79,80,81,82,83,286])))},{path:"/preview",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.mii4jR8e.js"),__vite__mapDeps([287,195,2,196,3,4,288])))},{path:"/auth/:token",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CzSlUN1C.js"),__vite__mapDeps([289,2,110,111,112,113,3,4,290])))},{path:"/miauth/:session",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C7r9l6qv.js"),__vite__mapDeps([291,82,292,2,293,3,4,294]))),query:{callback:"callback",name:"name",icon:"icon",permission:"permission"}},{path:"/oauth/authorize",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.COhA5zZ6.js"),__vite__mapDeps([295,82,292,2,293,3,4,296])))},{path:"/sso/:kind/:serviceId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DPji1hpB.js"),__vite__mapDeps([297,292,2,293,3,4,298])))},{path:"/tags/:tag",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DfNv7BzX.js"),__vite__mapDeps([299,149,14,2,15,16,17,3,4,18,19,20,21,22,23,24,25,26,150,300])))},{path:"/pages/new",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.B-ltEnW3.js"),__vite__mapDeps([301,2,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,133,97,45,98,134,302]))),loginRequired:!0},{path:"/pages/edit/:initPageId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.B-ltEnW3.js"),__vite__mapDeps([301,2,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,133,97,45,98,134,302]))),loginRequired:!0},{path:"/pages",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CRo3e9t-.js"),__vite__mapDeps([303,135,2,136,3,4])))},{path:"/play/:id/edit",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BpKvcR4J.js"),__vite__mapDeps([304,71,72,73,219,2,220,3,4,221,222,305]))),loginRequired:!0},{path:"/play/new",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BpKvcR4J.js"),__vite__mapDeps([304,71,72,73,219,2,220,3,4,221,222,305]))),loginRequired:!0},{path:"/play/:id",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D9dsIZ9c.js"),__vite__mapDeps([306,2,79,80,81,71,72,73,82,75,83,24,3,4,307])))},{path:"/play",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DQz6a_xo.js"),__vite__mapDeps([308,309,2,310,3,4])))},{path:"/gallery/:postId/edit",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.a4Q0oVld.js"),__vite__mapDeps([311,312,2,313,3,4,314]))),loginRequired:!0},{path:"/gallery/new",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.a4Q0oVld.js"),__vite__mapDeps([311,312,2,313,3,4,314]))),loginRequired:!0},{path:"/gallery/:postId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DPMViwEy.js"),__vite__mapDeps([315,2,9,10,316,317,24,3,4,318])))},{path:"/gallery",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.ScxPTgBz.js"),__vite__mapDeps([319,279,2,280,316,317,3,4,320])))},{path:"/channels/:channelId/edit",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C7ORjOO_.js"),__vite__mapDeps([321,322,2,323,80,81,3,4,324]))),loginRequired:!0},{path:"/channels/new",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C7ORjOO_.js"),__vite__mapDeps([321,322,2,323,80,81,3,4,324]))),loginRequired:!0},{path:"/channels/:channelId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CIijKWgu.js"),__vite__mapDeps([325,31,2,32,27,28,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,33,149,150,279,280,326])))},{path:"/channels",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CjKKwzeS.js"),__vite__mapDeps([327,328,2,329,194,195,196,197,279,280,3,4,330])))},{path:"/custom-emojis-manager",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DPoIraCe.js"),__vite__mapDeps([331,332,2,333,181,182,3,4,334])))},{path:"/avatar-decorations",name:"avatarDecorations",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.mN39b9dv.js"),__vite__mapDeps([335,2,3,4,336])))},{path:"/registry/keys/:domain/:path(*)?",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C3Ncx0su.js"),__vite__mapDeps([337,171,2,172,173,174,181,182,3,4])))},{path:"/registry/value/:domain/:path(*)?",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BGI7oaLO.js"),__vite__mapDeps([338,219,2,220,3,4,221,222,181,182])))},{path:"/registry",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DBotJUBb.js"),__vite__mapDeps([339,171,2,172,173,174,3,4])))},{path:"/install-extentions",redirect:"/install-extensions",loginRequired:!0},{path:"/install-extensions",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BE079P05.js"),__vite__mapDeps([340,181,2,182,80,81,173,174,3,4,341]))),loginRequired:!0},{path:"/admin/user/:userId",component:U(xt?()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.B9Ip9njH.js"),__vite__mapDeps([342,162,163,16,2,17,3,4,18,164,165,153,166,167,168,169,170,171,172,173,174,80,81,312,313,343,344,250,251,345])):()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CMQM221n.js"),__vite__mapDeps([346,2,3,4])))},{path:"/admin/file/:fileId",component:U(xt?()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BlW4eZ8b.js"),__vite__mapDeps([347,169,2,170,173,174,97,45,98,3,4,348])):()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CMQM221n.js"),__vite__mapDeps([346,2,3,4])))},{path:"/admin",component:U(xt?()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Bc5KvqF8.js"),__vite__mapDeps([349,177,2,178,350,3,4,351])):()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CMQM221n.js"),__vite__mapDeps([346,2,3,4]))),children:[{path:"/overview",name:"overview",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.G4RSUdWI.js"),__vite__mapDeps([352,2,163,16,17,3,4,18,164,353,45,354,165,97,98,355,356,357,279,280,358])))},{path:"/users",name:"users",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Dh3Ydhz6.js"),__vite__mapDeps([359,350,97,45,2,98,153,3,4,360])))},{path:"/emojis",name:"emojis",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DPoIraCe.js"),__vite__mapDeps([331,332,2,333,181,182,3,4,334])))},{path:"/emojis2",name:"emojis2",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D7HY0c95.js").then(e=>e.c),__vite__mapDeps([361,2,332,333,80,81,215,216,362])))},{path:"/avatar-decorations",name:"avatarDecorations",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.mN39b9dv.js"),__vite__mapDeps([335,2,3,4,336])))},{path:"/queue",name:"queue",component:U(()=>x(()=>import("./2025.4.1-io.12b
28-fb6fbea074.CBzPvcPm.js"),__vite__mapDeps([363,163,16,2,17,3,4,18,164,165,80,81,364])))},{path:"/files",name:"files",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Buc4oOTd.js"),__vite__mapDeps([365,343,153,2,344,350,3,4])))},{path:"/federation",name:"federation",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.mrQAIamb.js"),__vite__mapDeps([366,353,45,2,354,181,182,3,4,367])))},{path:"/announcements",name:"announcements",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BWWU84-p.js"),__vite__mapDeps([368,194,195,2,196,197,80,81,97,45,98,3,4,369])))},{path:"/ads",name:"ads",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BlfYhd__.js"),__vite__mapDeps([370,194,195,2,196,197,80,81,181,182,3,4,371])))},{path:"/roles/:id/edit",name:"roles",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D37N-CYK.js"),__vite__mapDeps([372,373,23,2,322,323,80,81,212,213,183,184,374,3,4,375])))},{path:"/roles/new",name:"roles",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D37N-CYK.js"),__vite__mapDeps([372,373,23,2,322,323,80,81,212,213,183,184,374,3,4,375])))},{path:"/roles/:id",name:"roles",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.aExDmeTv.js"),__vite__mapDeps([376,373,23,2,322,323,80,81,212,213,183,184,374,97,45,98,3,4,377])))},{path:"/roles",name:"roles",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BxAIcE7Y.js"),__vite__mapDeps([378,80,2,81,212,213,250,251,279,280,3,4])))},{path:"/database",name:"database",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BwX5XZaa.js"),__vite__mapDeps([379,312,2,313,3,4])))},{path:"/abuses",name:"abuses",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BZ-hm7gi.js"),__vite__mapDeps([380,80,2,81,3,4,381])))},{path:"/modlog",name:"modlog",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.HHkBmruT.js"),__vite__mapDeps([382,82,2,80,81,3,4,383])))},{path:"/useraccountmovelog",name:"useraccountmovelog",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C_e1-208.js"),__vite__mapDeps([384,80,2,81,3,4,385])))},{path:"/settings",name:"settings",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D5keHvtY.js"),__vite__mapDeps([386,181,2,182,80,81,387,388,194,195,196,197,3,4,389])))},{path:"/branding",name:"branding",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BKyZ3cMm.js"),__vite__mapDeps([390,312,2,313,322,323,3,4,391])))},{path:"/moderation",name:"moderation",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DH-BB2hk.js"),__vite__mapDeps([392,312,2,313,171,172,80,81,3,4])))},{path:"/email-settings",name:"email-settings",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.NifQiOVM.js"),__vite__mapDeps([393,312,2,313,181,182,173,174,3,4,394])))},{path:"/object-storage",name:"object-storage",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D8vUys3-.js"),__vite__mapDeps([395,312,2,313,181,182,3,4,396])))},{path:"/security",name:"security",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DKrOoGA0.js"),__vite__mapDeps([397,194,195,2,196,197,183,184,387,388,80,81,212,213,3,4,398])))},{path:"/relays",name:"relays",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Duup0K9O.js"),__vite__mapDeps([399,2,3,4,400])))},{path:"/instance-block",name:"instance-block",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D80bokyi.js"),__vite__mapDeps([401,312,2,313,3,4])))},{path:"/external-services",name:"external-services",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DqQhNZu-.js"),__vite__mapDeps([402,312,2,313,80,81,3,4,403])))},{path:"/performance",name:"performance",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CaPyOk0-.js"),__vite__mapDeps([404,80,2,81,387,388,3,4])))},{path:"/server-rules",name:"server-rules",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Dg7S1Kys.js"),__vite__mapDeps([405,2,3,4,406])))},{path:"/invites",name:"invites",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Dmlt_ouI.js"),__vite__mapDeps([407,80,2,81,267,268,3,4,408])))},{path:"/abuse-report-notification-recipient",name:"abuse-report-notification-recipient",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C7JJrIIt.js").then(e=>e.n),__vite__mapDeps([409,2,410])))},{path:"/system-webhook",name:"system-webhook",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.QVMAKKWO.js"),__vite__mapDeps([411,80,2,81,173,174,412,3,4,413])))},{path:"/",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CzVcejUT.js"),__vite__mapDeps([253,2])))}]},{path:"/my/notifications",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CFeoz1TR.js"),__vite__mapDeps([414,13,2,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,27,28,29,149,150,415])
28)),loginRequired:!0},{path:"/my/favorites",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.iJGroeOf.js"),__vite__mapDeps([416,14,2,15,16,17,3,4,18,19,20,21,22,23,24,25,26,95,96,417]))),loginRequired:!0},{path:"/my/achievements",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.fVOHCaO3.js"),__vite__mapDeps([418,419,2,420,3,4]))),loginRequired:!0},{path:"/my/drive/folder/:folder",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.TuMssrV_.js"),__vite__mapDeps([421,422,2,204,423,3,4]))),loginRequired:!0},{path:"/my/drive",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.TuMssrV_.js"),__vite__mapDeps([421,422,2,204,423,3,4]))),loginRequired:!0},{path:"/my/drive/file/:fileId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C-xmtdUR.js"),__vite__mapDeps([424,2,3,4]))),loginRequired:!0},{path:"/my/follow-requests",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BZSP0TmM.js"),__vite__mapDeps([425,2,3,4,426]))),loginRequired:!0},{path:"/my/lists/:listId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Dtl_h_zo.js"),__vite__mapDeps([427,97,45,2,98,80,81,23,3,4,428]))),loginRequired:!0},{path:"/my/lists",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BawxBvZk.js"),__vite__mapDeps([429,430,2,23,3,4,431]))),loginRequired:!0},{path:"/my/clips",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.B0FhwHZw.js"),__vite__mapDeps([432,154,2,155,23,3,4]))),loginRequired:!0},{path:"/my/antennas/create",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Bsrz-Vah.js"),__vite__mapDeps([433,23,2,434,435,3,4]))),loginRequired:!0},{path:"/my/antennas/:antennaId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CBj8KIUv.js"),__vite__mapDeps([436,434,2,435,23,3,4]))),loginRequired:!0},{path:"/my/antennas",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DobqHq5j.js"),__vite__mapDeps([437,23,2,3,4,438]))),loginRequired:!0},{path:"/timeline/list/:listId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Cn4rFemS.js"),__vite__mapDeps([439,31,2,32,27,28,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,33,440]))),loginRequired:!0},{path:"/timeline/antenna/:antennaId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.pJnhApBE.js"),__vite__mapDeps([441,31,2,32,27,28,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,33,442]))),loginRequired:!0},{path:"/clicker",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DC87OyWe.js"),__vite__mapDeps([443,90,91,2,92,93,3,4]))),loginRequired:!0},{path:"/games",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.VLgYPpFf.js"),__vite__mapDeps([444,445,446,328,2,329,3,4,447]))),loginRequired:!1},{path:"/bubble-game",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CIQ4PTBe.js"),__vite__mapDeps([448,2,445,264,72,73,355,91,92,212,213,3,4,449]))),loginRequired:!0},{path:"/reversi",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BvArIZCw.js"),__vite__mapDeps([450,446,80,2,81,3,4,451]))),loginRequired:!1},{path:"/reversi/g/:gameId",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DeH5Co_C.js"),__vite__mapDeps([452,194,195,2,196,197,80,81,446,453,3,4,454]))),loginRequired:!1},{path:"/timeline",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CXekHOFN.js"),__vite__mapDeps([455,32,31,2,27,28,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,33,456])))},{name:"index",path:"/",component:U(S?()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CXekHOFN.js"),__vite__mapDeps([455,32,31,2,27,28,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,33,456])):()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DrBGG2v2.js"),__vite__mapDeps([457,2,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,458,109,110,111,112,113,114,121,122,123,80,81,124,31,32,27,28,33,355,163,164,459,40,41,460])))},{path:"/redirect-test",redirect:S?`@${S.username}`:"/",loginRequired:!0},{path:"/:(*)",component:U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CMQM221n.js"),__vite__mapDeps([346,2,3,4])))}];function ci(e){try{return decodeURIComponent(e)}catch{return e}}function VD(e){const t=[];e=e.substring(1);for(const n of e.split("/"))if(n.includes(":")){const i=n.substring(0,n.indexOf(":")),o=n.substring(n.indexOf(":")+1),s=o.includes("(*)"),a=o.endsWith("?");t.push({name:o.replace("(*)","").replace("?",""),startsWith:i!==""?i:void 0,wildcard:s,optional:a})}else n.length!==0&&t.push(n);return t}class zD extends xi{current;currentRef;currentRoute;navHook=null;afterHooks=[];routes;currentPath;isLoggedIn;notFoundPageComponent;currentKey=Date.now().toString();redirectCount=0;constructor(t,n,i,o){super(),this.routes=t,this.current=this.resolve(n),this.currentRef=Wt(this.current),this.currentRoute=Wt(this.current.route),this.currentPath=n,this.isLoggedIn=i,this.notFoundPageComponent=o}init(){const t=this.navigate(this.currentPath,null,!1);
28this.emit("replace",{path:t._parsedRoute.fullPath,key:this.currentKey})}resolve(t){const n=t;let i=null,o=null;t[0]==="/"&&(t=t.substring(1)),t.includes("#")&&(o=t.substring(t.indexOf("#")+1),t=t.substring(0,t.indexOf("#"))),t.includes("?")&&(i=t.substring(t.indexOf("?")+1),t=t.substring(0,t.indexOf("?")));const s={fullPath:n,queryString:i,hash:o};function a(u,l){e:for(const d of u){let v=[...l];const p=new Map;t:for(const C of VD(d.path))if(typeof C=="string")if(C===v[0])v.shift();else continue e;else{if(v[0]==null&&!C.optional)continue e;if(C.wildcard){v.length!==0&&(p.set(C.name,ci(v.join("/"))),v=[]);break t}else if(C.startsWith){if(v[0]==null||!v[0].startsWith(C.startsWith))continue e;p.set(C.name,ci(v[0].substring(C.startsWith.length))),v.shift()}else v[0]&&p.set(C.name,ci(v[0])),v.shift()}if(v.length===0){if(d.children){const C=a(d.children,[]);if(C)return{route:d,props:p,child:C,_parsedRoute:s};continue e}if(d.hash!=null&&o!=null&&p.set(d.hash,ci(o)),d.query!=null&&i!=null){const C=[...new URLSearchParams(i).entries()].reduce((D,m)=>({...D,[m[0]]:m[1]}),{});for(const D in d.query){const m=d.query[D];C[D]&&p.set(m,ci(C[D]))}}return{route:d,props:p,_parsedRoute:s}}else if(d.children){const C=a(d.children,v);if(C)return{route:d,props:p,child:C,_parsedRoute:s};continue e}else continue e}return null}const r=t.split("/").filter(u=>u.length!==0);return a(this.routes,r)}isReady(){return Promise.resolve(!0)}getCurrentPath(){return this.currentPath}getCurrentKey(){return this.currentKey}afterEach(t){return this.afterHooks.push(t),()=>{const n=this.afterHooks.indexOf(t);if(n!==-1)return this.afterHooks.splice(n,1)}}push(t,n){const i=this.currentPath;if(t===i){this.emit("same");return}if(this.navHook&&this.navHook(t,n))return;const o=this.navigate(t,null);o.route.path==="/:(*)"?window.location.href=t:this.emit("push",{beforePath:i,path:o._parsedRoute.fullPath,route:o.route,props:o.props,key:this.currentKey})}replace(t,n){const i=this.navigate(t,n);this.emit("replace",{path:i._parsedRoute.fullPath,key:this.currentKey})}useListener(t,n,i){this.addListener(t,n,i),jt(()=>{this.removeListener(t,n,i)})}navigate(t,n,i=!0,o=!1){const s=this.currentPath,a=this.currentRoute.value;this.currentPath=t;const r=this.resolve(this.currentPath);if(r==null)throw new Error("no route found for: "+t);for(let l=r;l;l=l.child)if("redirect"in l.route){let d;if(typeof l.route.redirect=="function"?d=l.route.redirect(l.props):d=l.route.redirect+(l._parsedRoute.queryString?"?"+l._parsedRoute.queryString:"")+(l._parsedRoute.hash?"#"+l._parsedRoute.hash:""),o&&this.redirectCount++>10)throw new Error("redirect loop detected");return this.navigate(d,null,i,!0)}if(r.route.loginRequired&&!this.isLoggedIn&&(r.route.component=this.notFoundPageComponent,r.props.set("showLoginPopup",!0)),s===t&&n==null&&(n=this.currentKey),this.current=r,this.currentRef.value=r,this.currentRoute.value=r.route,this.currentKey=r.route.globalCacheKey??n??t,i&&r.route.path!=="/:(*)"&&this.emit("change",{beforePath:s,path:t,resolved:r,key:this.currentKey}),this.afterHooks.length>0)for(const l of this.afterHooks)l&&l(r.route,a);return this.redirectCount=0,{...r,redirected:o}}}function mc(e){return new zD(jD,e,!!S,U(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CMQM221n.js"),__vite__mapDeps([346,2,3,4]))))}const pt=mc(window.location.pathname+window.location.search+window.location.hash);window.addEventListener("popstate",e=>{pt.replace(window.location.pathname+window.location.search+window.location.hash)});pt.addListener("push",e=>{window.history.pushState({},"",e.path)});pt.addListener("replace",e=>{window.history.replaceState({},"",e.path)});pt.addListener("change",e=>{});pt.init();function hc(){return tt(ze.router,null)??pt}const HD=ne({__name:"MkPageWindow",props:{initialPath:{}},emits:["closed"],setup(e,{expose:t,emit:n}){const i=e,o=n,s=mc(i.initialPath),a=F(null),r=Ee("windowEl"),u=F([{path:s.getCurrentPath()}]),l=G(()=>{const T=[];return u.value.length>1&&T.push({title:w.ts.goBack,icon:"ti ti-arrow-left",onClick:m}),T}),d=G(()=>[{icon:"ti ti-reload",title:w.ts.reload,onClick:k},{icon:"ti ti-player-eject",title:w.ts.showInPage,onClick:b}]),v=F(0);function p(T){const P=T.split("#")[1];return P??null}const C=F(p(i.initialPath));s.addListener("push",T=>{u.value.push({path:T.path})}),s.addListener("replace",T=>{u.value.pop(),u.value.push({path:T.path})}),s.addListener("change",T=>{C.value=p(T.path),he.googleAnalyticsId&&Pe(()=>ya({page_title:a.value?.title,page_path:T.path}))}),s.init(),lt(ze.router,s),lt(ze.inAppSearchMarkerId,C),cc(T=>{const P=T();a.value=P}),dc(a),lt("shouldOmitHeaderTitle",!0),lt("shouldHeaderThin",!0);const D=G(()=>[{icon:"ti ti-player-eject",text:w.ts.showInPage,action:b},{icon:"ti ti-window-maximize",text:w.ts.popout,action:E},{icon:"ti ti-external-link",text:w.ts.openInNewTab,action:()=>{window.open(mt+s.getCurrentPath(),"_blank","noopener"),r.value?.close()}},{icon:"ti ti-link",text:w.ts.copyLink,action:()=>{Dt(mt+s.getCurrentPath())}}]);function m(){u.value.pop(),s.replace(u.value.at(-1).path)}function k(){v.value++}function h(){r.value?.close()}function b(){pt.push(s.getCurrentPath(),"forcePage"),r.value?.close()}function E(){gD(s.getCurrentPath(),r.value?.$el),r.value?.close()}return je(()=>{Cs.value++,Cs.value>=3&&ye("open3windows")}),it(()=>{Cs.value--}),t({close:h}),(T,P)=>{const H=we("StackingRouterView");return c(),q(lc,{ref_key:"windowEl",ref:r,initialWidth:500,initialHeight:500,canResize:!0,closeButton:!0,buttonsLeft:l.value,buttonsRight:d.value,contextmenu:D.value,onClosed:P[0]||(P[0]=L=>o("closed"))},{header:J(()=>[a.value?(c(),g(pe,{key:0},[a.value.icon?(c(),g("i",{key:0,class:f(a.value.icon),style:{"margin-right":"0.5em"}}
28,null,2)):I("",!0),y("span",null,M(a.value.title),1)],64)):I("",!0)]),default:J(()=>[(c(),g("div",{key:v.value,class:f([T.$style.root,"_forceShrinkSpacer"])},[_(A).s["experimental.stackingRouterView"]?(c(),q(H,{key:0,router:_(s)},null,8,["router"])):(c(),q(ac,{key:1,router:_(s)},null,8,["router"]))],2))]),_:1},8,["buttonsLeft","buttonsRight","contextmenu"])}}}),UD="xyMov",qD={root:UD},WD={$style:qD},KD=re(HD,[["__cssModules",WD]]),JD={style:{padding:"16px 24px"}},GD=ne({__name:"MkToast",props:{message:{}},emits:["closed"],setup(e,{emit:t}){const n=t,i=si("high"),o=F(!0);return je(()=>{window.setTimeout(()=>{o.value=!1},4e3)}),(s,a)=>(c(),g("div",null,[W(bt,{enterActiveClass:_(A).s.animation?s.$style.transition_toast_enterActive:"",leaveActiveClass:_(A).s.animation?s.$style.transition_toast_leaveActive:"",enterFromClass:_(A).s.animation?s.$style.transition_toast_enterFrom:"",leaveToClass:_(A).s.animation?s.$style.transition_toast_leaveTo:"",appear:"",onAfterLeave:a[0]||(a[0]=r=>n("closed"))},{default:J(()=>[o.value?(c(),g("div",{key:0,class:f(["_acrylic",s.$style.root]),style:Ge({zIndex:_(i)})},[y("div",JD,M(e.message),1)],6)):I("",!0)]),_:1},8,["enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass"])]))}}),YD="xAk08",XD="xoHyk",QD="xt2qE",ZD="xaiPV",eE="x5ckv",tE={transition_toast_enterActive:YD,transition_toast_leaveActive:XD,transition_toast_enterFrom:QD,transition_toast_leaveTo:ZD,root:eE},nE={$style:tE},iE=re(GD,[["__cssModules",nE]]),oE={class:"_selectable"},sE=["disabled","required","readonly","placeholder","pattern","autocomplete","spellcheck"],aE=ne({__name:"MkTextarea",props:{modelValue:{},required:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},pattern:{},placeholder:{},autofocus:{type:Boolean},autocomplete:{},mfmAutocomplete:{type:[Boolean,Array]},mfmPreview:{type:Boolean},spellcheck:{type:Boolean},debounce:{type:Boolean},manualSave:{type:Boolean},code:{type:Boolean},tall:{type:Boolean},pre:{type:Boolean}},emits:["change","keydown","enter","update:modelValue"],setup(e,{expose:t,emit:n}){const i=e,o=n,{modelValue:s,autofocus:a}=Ai(i),r=F(s.value??""),u=F(!1),l=F(!1),d=F(!1),v=Ee("inputEl"),p=F(!1);let C=null;const D=()=>v.value?.focus(),m=E=>{l.value=!0,o("change",E)},k=E=>{if(!(E.isComposing||E.key==="Process"||E.keyCode===229)&&(o("keydown",E),E.code==="Enter"&&o("enter"),i.code&&E.key==="Tab")){const T=v.value?.selectionStart??0,P=v.value?.selectionEnd??r.value.length;r.value=r.value.slice(0,T)+" "+r.value.slice(P),Pe(()=>{v.value?.setSelectionRange(T+1,T+1)}),E.preventDefault()}},h=()=>{l.value=!1,o("update:modelValue",r.value??"")},b=ju(1e3,h);return le(s,E=>{r.value=E??""}),le(r,()=>{i.manualSave||(i.debounce?b():h()),d.value=v.value?.validity.badInput??!0}),je(()=>{Pe(()=>{a.value&&D()}),i.mfmAutocomplete&&v.value&&(C=new vi(v.value,r,i.mfmAutocomplete===!0?void 0:i.mfmAutocomplete))}),it(()=>{C&&C.detach()}),t({focus:D,inputEl:v}),(E,T)=>{const P=we("Mfm"),H=Ue("adaptive-border"),L=Ue("panel");return c(),g("div",oE,[y("div",{class:f(E.$style.label),onClick:D},[Te(E.$slots,"label")],2),y("div",{class:f({[E.$style.disabled]:e.disabled,[E.$style.focused]:u.value,[E.$style.tall]:e.tall,[E.$style.pre]:e.pre}),style:{position:"relative"}},[ve(y("textarea",{ref_key:"inputEl",ref:v,"onUpdate:modelValue":T[0]||(T[0]=R=>r.value=R),class:f([E.$style.textarea,{_monospace:e.code}]),disabled:e.disabled,required:e.required,readonly:e.readonly,placeholder:e.placeholder,pattern:e.pattern,autocomplete:e.autocomplete,spellcheck:e.spellcheck,onFocus:T[1]||(T[1]=R=>u.value=!0),onBlur:T[2]||(T[2]=R=>u.value=!1),onKeydown:T[3]||(T[3]=R=>k(R)),onInput:m},null,42,sE),[[qn,r.value],[H]])],2),y("div",{class:f(E.$style.caption)},[Te(E.$slots,"caption")],2),e.mfmPreview?(c(),g("button",{key:0,style:{"font-size":"0.85em"},class:"_textButton",type:"button",onClick:T[4]||(T[4]=R=>p.value=!p.value)},M(_(w).ts.preview),1)):I("",!0),e.mfmPreview?ve((c(),g("div",{key:1,class:f(E.$style.mfmPreview)},[W(P,{text:r.value},null,8,["text"])],2)),[[_t,p.value],[L]]):I("",!0),e.manualSave&&l.value?(c(),q(dt,{key:2,primary:"",class:f(E.$style.save),onClick:h},{default:J(()=>[T[5]||(T[5]=y("i",{class:"ti ti-device-floppy"},null,-1)),ie(" "+M(_(w).ts.save),1)]),_:1},8,["class"])):I("",!0)])}}}),rE="x7Ceb",lE="xtIxP",uE="xj1il",cE="xBnh9",dE="xca1Y",fE="xr7ya",mE="xyXiK",hE="x7eak",pE="x9X6G",vE={label:rE,caption:lE,textarea:uE,focused:cE,disabled:dE,tall:fE,pre:mE,save:hE,mfmPreview:pE},gE={$style:vE},yE=re(aE,[["__cssModules",gE]]),wE=ne({__name:"MkKeyValue",props:{copy:{default:null},oneline:{type:Boolean,default:!1}},setup(e){const t=e,n=()=>{Dt(t.copy)};return(i,o)=>{const s=Ue("tooltip");return c(),g("div",{class:f([i.$style.root,{[i.$style.oneline]:e.oneline}])},[y("div",{class:f(i.$style.key)}
28,[Te(i.$slots,"key")],2),y("div",{class:f([i.$style.value,"_selectable"])},[Te(i.$slots,"value"),e.copy?ve((c(),g("button",{key:0,class:"_textButton",style:{"margin-left":"0.5em"},onClick:n},[...o[0]||(o[0]=[y("i",{class:"ti ti-copy"},null,-1)])])),[[s,_(w).ts.copy]]):I("",!0)],2)],2)}}}),bE="x5Eyz",_E="xpgKk",kE="xzSZ0",DE="xrVvR",EE={root:bE,oneline:_E,key:kE,value:DE},CE={$style:EE},fn=re(wE,[["__cssModules",CE]]),AE=["textContent"],$E=["textContent"],xE=["textContent"],TE=["textContent"],ME=["textContent"],IE=["textContent"],SE=["textContent"],FE=["textContent"],BE=["textContent"],PE=["textContent"],RE=["label"],LE=["value"],NE=["value"],OE={key:7,class:"_acrylic",style:{margin:"1em 0"}},jE={class:"_gaps_s",style:{"text-align":"initial"}},VE={key:0},zE=ne({__name:"MkDialog",props:{type:{default:"info"},icon:{default:void 0},title:{default:void 0},text:{default:void 0},input:{default:void 0},select:{default:void 0},switchLabel:{default:void 0},details:{default:void 0},actions:{default:void 0},showOkButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},cancelableByBgClick:{type:Boolean,default:!0},okText:{default:void 0},okWaitInitiate:{default:void 0},okWaitDuration:{default:0},cancelText:{default:void 0}},emits:["done","closed"],setup(e,{emit:t}){const n=e,i=t,o=Ee("modal"),s=Ee("inputComponent"),a=F(n.input?.default??null),r=F(n.select?.default??null),u=F(!1),l=F(n.okWaitDuration),d=G(()=>n.okWaitInitiate==="dialog"?!0:n.okWaitInitiate==="input"?a.value!==null:n.okWaitInitiate==="switch"?u.value:!1),v=G(()=>l.value>0),p=G(()=>{if(n.input){if(n.input.type==="number"){const b=a.value,E=typeof b=="number"?b:b===""||b==null?null:Number(b);if(E!=null&&Number.isFinite(E)){if(n.input.min!=null&&E<n.input.min)return"numberBelow";if(n.input.max!=null&&E>n.input.max)return"numberAbove"}else if(E!=null)return"invalid";if(s.value&&!s.value.inputEl.validity.valid)return"invalid"}if(n.input.minLength&&(a.value==null||a.value.length<n.input.minLength))return"charactersBelow";if(n.input.maxLength&&a.value&&a.value.length>n.input.maxLength)return"charactersExceeded"}return null});function C(b,E,T){i("done",{canceled:b,result:E,toggle:T}),o.value?.close()}async function D(){if(!n.showOkButton)return;const b=n.input?a.value:n.select?r.value:!0;C(!1,b,u.value)}function m(){C(!0)}function k(b){b.key==="Escape"&&m()}function h(b){b.key==="Enter"&&!v.value&&p.value===null&&(b.preventDefault(),b.stopPropagation(),D())}return le(d,()=>{l.value=n.okWaitDuration}),je(()=>{if(window.document.addEventListener("keydown",k),l.value=n.okWaitDuration,l.value>0){const b=window.setInterval(()=>{d.value&&(l.value<0&&window.clearInterval(b),l.value=l.value-1)},1e3)}}),jt(()=>{window.document.removeEventListener("keydown",k)}),(b,E)=>{const T=we("MkLoading"),P=we("Mfm");return c(),q(Si,{ref_key:"modal",ref:o,preferType:"dialog",zPriority:"high",onClick:E[4]||(E[4]=H=>C(!0)),onClosed:E[5]||(E[5]=H=>i("closed")),onEsc:E[6]||(E[6]=H=>m())},{default:J(()=>[y("div",{class:f(b.$style.root)},[e.icon?(c(),g("div",{key:0,class:f(b.$style.icon)},[y("i",{class:f(e.icon)},null,2)],2)):!e.input&&!e.select?(c(),g("div",{key:1,class:f([b.$style.icon,{[b.$style.type_success]:e.type==="success",[b.$style.type_error]:e.type==="error",[b.$style.type_warning]:e.type==="warning",[b.$style.type_info]:e.type==="info"}])},[e.type==="success"?(c(),g("i",{key:0,class:f([b.$style.iconInner,"ti ti-check"])},null,2)):e.type==="error"?(c(),g("i",{key:1,class:f([b.$style.iconInner,"ti ti-circle-x"])},null,2)):e.type==="warning"?(c(),g("i",{key:2,class:f([b.$style.iconInner,"ti ti-alert-triangle"])},null,2)):e.type==="info"?(c(),g("i",{key:3,class:f([b.$style.iconInner,"ti ti-info-circle"])},null,2)):e.type==="question"?(c(),g("i",{key:4,class:f([b.$style.iconInner,"ti ti-help-circle"])},null,2)):e.type==="waiting"?(c(),q(T,{key:5,class:f(b.$style.iconInner),em:!0},null,8,["class"])):I("",!0)],2)):I("",!0),e.title?(c(),g("header",{key:2,class:f([b.$style.title,"_selectable"])},[W(P,{text:e.title},null,8,["text"])],2)):I("",!0),e.text?(c(),g("div",{key:3,class:f([b.$style.text,"_selectable"])},[W(P,{text:e.text}
28,null,8,["text"])],2)):I("",!0),e.input?(c(),g(pe,{key:4},[e.input.type!=="textarea"?(c(),q(mi,{key:0,ref_key:"inputComponent",ref:s,modelValue:a.value,"onUpdate:modelValue":E[0]||(E[0]=H=>a.value=H),autofocus:"",type:e.input.type||"text",placeholder:e.input.placeholder||void 0,autocomplete:e.input.autocomplete,min:e.input.min,max:e.input.max,step:e.input.step,onKeydown:h},Od({caption:J(()=>[p.value==="charactersExceeded"?(c(),g("span",{key:0,textContent:M(_(w).tsx._dialog.charactersExceeded({current:a.value?.length??0,max:e.input.maxLength??"NaN"}))},null,8,AE)):p.value==="charactersBelow"?(c(),g("span",{key:1,textContent:M(_(w).tsx._dialog.charactersBelow({current:a.value?.length??0,min:e.input.minLength??"NaN"}))},null,8,$E)):p.value==="numberBelow"?(c(),g("span",{key:2,textContent:M(_(w).tsx._dialog.numberBelow({current:a.value??"NaN",min:e.input.min??"NaN"}))},null,8,xE)):p.value==="numberAbove"?(c(),g("span",{key:3,textContent:M(_(w).tsx._dialog.numberAbove({current:a.value??"NaN",max:e.input.max??"NaN"}))},null,8,TE)):p.value==="invalid"?(c(),g("span",{key:4,textContent:M(_(w).tsx._dialog.invalid({current:a.value??"NaN"}))},null,8,ME)):I("",!0)]),_:2},[e.input.type==="password"?{name:"prefix",fn:J(()=>[E[7]||(E[7]=y("i",{class:"ti ti-lock"},null,-1))]),key:"0"}:void 0]),1032,["modelValue","type","placeholder","autocomplete","min","max","step"])):I("",!0),e.input.type==="textarea"?(c(),q(yE,{key:1,modelValue:a.value,"onUpdate:modelValue":E[1]||(E[1]=H=>a.value=H),placeholder:e.input.placeholder||void 0,autocomplete:e.input.autocomplete},{label:J(()=>[ie(M(e.input.placeholder),1)]),caption:J(()=>[p.value==="charactersExceeded"?(c(),g("span",{key:0,textContent:M(_(w).tsx._dialog.charactersExceeded({current:a.value?.length??0,max:e.input.maxLength??"NaN"}))},null,8,IE)):p.value==="charactersBelow"?(c(),g("span",{key:1,textContent:M(_(w).tsx._dialog.charactersBelow({current:a.value?.length??0,min:e.input.minLength??"NaN"}))},null,8,SE)):p.value==="numberBelow"?(c(),g("span",{key:2,textContent:M(_(w).tsx._dialog.numberBelow({current:a.value??"NaN",min:e.input.min??"NaN"}))},null,8,FE)):p.value==="numberAbove"?(c(),g("span",{key:3,textContent:M(_(w).tsx._dialog.numberAbove({current:a.value??"NaN",max:e.input.max??"NaN"}))},null,8,BE)):p.value==="invalid"?(c(),g("span",{key:4,textContent:M(_(w).tsx._dialog.invalid({current:a.value??"NaN"}))},null,8,PE)):I("",!0)]),_:1},8,["modelValue","placeholder","autocomplete"])):I("",!0)],64)):I("",!0),e.select?(c(),q(Gs,{key:5,modelValue:r.value,"onUpdate:modelValue":E[2]||(E[2]=H=>r.value=H),autofocus:""},{default:J(()=>[e.select.items?(c(!0),g(pe,{key:0},Re(e.select.items,H=>(c(),g(pe,null,["sectionTitle"in H?(c(),g("optgroup",{key:0,label:H.sectionTitle},[(c(!0),g(pe,null,Re(H.items,L=>(c(),g("option",{value:L.value},M(L.text),9,LE))),256))],8,RE)):(c(),g("option",{key:1,value:H.value},M(H.text),9,NE))],64))),256)):I("",!0)]),_:1},8,["modelValue"])):I("",!0),e.switchLabel?(c(),q(Vu,{key:6,modelValue:u.value,"onUpdate:modelValue":E[3]||(E[3]=H=>u.value=H),style:{display:"flex",margin:"1em 0","justify-content":"center"}},{default:J(()=>[ie(M(e.switchLabel),1)]),_:1},8,["modelValue"])):I("",!0),e.details?(c(),g("details",OE,[y("summary",null,M(_(w).ts.details),1),y("div",jE,[(c(!0),g(pe,null,Re(e.details,(H,L)=>(c(),q(fn,{key:L,value:H},{key:J(()=>[ie(M(L),1)]),value:J(()=>[ie(M(H),1)]),_:2},1032,["value"]))),128))])])):I("",!0),(e.showOkButton||e.showCancelButton)&&!e.actions?(c(),g("div",{key:8,class:f(b.$style.buttons)},[e.showOkButton?(c(),q(dt,{key:0,"data-cy-modal-dialog-ok":"",inline:"",primary:"",rounded:"",autofocus:!e.input&&!e.select,disabled:v.value||p.value!=null,onClick:D},{default:J(()=>[ie(M(e.okText??(e.showCancelButton||e.input||e.select?_(w).ts.ok:_(w).ts.gotIt)),1),v.value&&d.value?(c(),g("span",VE," ("+M(l.value)+")",1)):I("",!0)]),_:1},8,["autofocus","disabled"])):I("",!0),e.showCancelButton||e.input||e.select?(c(),q(dt,{key:1,"data-cy-modal-dialog-cancel":"",inline:"",rounded:"",onClick:m},{default:J(()=>[ie(M(e.cancelText??_(w).ts.cancel),1)]),_:1})):I("",!0)],2)):I("",!0),e.actions?(c(),g("div",{key:9,class:f(b.$style.buttons)},[(c(!0),g(pe,null,Re(e.actions,H=>(c(),q(dt,{key:H.text,inline:"",rounded:"",primary:H.primary,danger:H.danger,onClick:()=>{H.callback(),o.value?.close()}},{default:J(()=>[ie(M(H.text),1)]),_:2},1032,["primary","danger","onClick"]))),128))],2)):I("",!0)],2)]),_:1},512)}}}),HE="xa5A4",UE="xd7w2",qE="xorK6",WE="xyPAY",KE="xs0D6",JE="xmA0T",GE="xviEG",YE="xxlnX",XE="xtrPf",QE="xDuoJ",ZE={root:HE,icon:UE,title:qE,iconInner:WE,type_info:KE,type_success:JE,type_error:GE,type_warning:YE,text:XE,buttons:QE}
28,eC={$style:ZE},Rn=re(zE,[["__cssModules",eC]]),pc=JSON.parse('[["ð","grinning",0],["ð¬","grimacing",0],["ð","grin",0],["ð","joy",0],["ð¤£","rofl",0],["ð¥³","partying",0],["ð","smiley",0],["ð","smile",0],["ð
","sweat_smile",0],["ð¥²","smiling_face_with_tear",0],["ð","laughing",0],["ð","innocent",0],["ð","wink",0],["ð","blush",0],["ð","slightly_smiling_face",0],["ð","upside_down_face",0],["âºï¸","relaxed",0],["ð","yum",0],["ð","relieved",0],["ð","heart_eyes",0],["ð¥°","smiling_face_with_three_hearts",0],["ð","kissing_heart",0],["ð","kissing",0],["ð","kissing_smiling_eyes",0],["ð","kissing_closed_eyes",0],["ð","stuck_out_tongue_winking_eye",0],["ð¤ª","zany",0],["ð¤¨","raised_eyebrow",0],["ð§","monocle",0],["ð","stuck_out_tongue_closed_eyes",0],["ð","stuck_out_tongue",0],["ð¤","money_mouth_face",0],["ð¤","nerd_face",0],["ð¥¸","disguised_face",0],["ð","sunglasses",0],["ð¤©","star_struck",0],["ð¤¡","clown_face",0],["ð¤ ","cowboy_hat_face",0],["ð¤","hugs",0],["ð","smirk",0],["ð¶","no_mouth",0],["ð","neutral_face",0],["ð","expressionless",0],["ð","unamused",0],["ð","roll_eyes",0],["ð¤","thinking",0],["ð¤¥","lying_face",0],["ð¤","hand_over_mouth",0],["ð¤«","shushing",0],["ð¤¬","symbols_over_mouth",0],["ð¤¯","exploding_head",0],["ð³","flushed",0],["ð","disappointed",0],["ð","worried",0],["ð ","angry",0],["ð¡","rage",0],["ð","pensive",0],["ð","confused",0],["ð","slightly_frowning_face",0],["â¹","frowning_face",0],["ð£","persevere",0],["ð","confounded",0],["ð«","tired_face",0],["ð©","weary",0],["ð¥º","pleading",0],["ð¤","triumph",0],["ð®","open_mouth",0],["ð±","scream",0],["ð¨","fearful",0],["ð°","cold_sweat",0],["ð¯","hushed",0],["ð¦","frowning",0],["ð§","anguished",0],["ð¢","cry",0],["ð¥","disappointed_relieved",0],["ð¤¤","drooling_face",0],["ðª","sleepy",0],["ð","sweat",0],["ð¥µ","hot",0],["ð¥¶","cold",0],["ð","sob",0],["ðµ","dizzy_face",0],["ð²","astonished",0],["ð¤","zipper_mouth_face",0],["ð¤¢","nauseated_face",0],["ð¤§","sneezing_face",0],["ð¤®","vomiting",0],["ð·","mask",0],["ð¤","face_with_thermometer",0],["ð¤","face_with_head_bandage",0],["ð¥´","woozy",0],["ð¥±","yawning",0],["ð´","sleeping",0],["ð¤","zzz",0],["ð¶âð«ï¸","face_in_clouds",0],["ð®âð¨","face_exhaling",0],["ðµâð«","face_with_spiral_eyes",0],["ð« ","melting_face",0],["ð«¢","face_with_open_eyes_and_hand_over_mouth",0],["ð«£","face_with_peeking_eye",0],["ð«¡","saluting_face",0],["ð«¥","dotted_line_face",0],["ð«¤","face_with_diagonal_mouth",0],["ð¥¹","face_holding_back_tears",0],["ð«¨","shaking_face",0],["ð©","poop",0],["ð","smiling_imp",0],["ð¿","imp",0],["ð¹","japanese_ogre",0],["ðº","japanese_goblin",0],["ð","skull",0],["ð»","ghost",0],["ð½","alien",0],["ð¤","robot",0],["ðº","smiley_cat",0],["ð¸","smile_cat",0],["ð¹","joy_cat",0],["ð»","heart_eyes_cat",0],["ð¼","smirk_cat",0],["ð½","kissing_cat",0],["ð","scream_cat",0],["ð¿","crying_cat_face",0],["ð¾","pouting_cat",0],["ð¤²","palms_up",1],["ð","raised_hands",1],["ð","clap",1],["ð","wave",1],["ð¤","call_me_hand",1],["ð","+1",1],["ð","-1",1],["ð","facepunch",1],["â","fist",1],["ð¤","fist_left",1],["ð¤","fist_right",1],["ð«·","leftwards_pushing_hand",1],["ð«¸","rightwards_pushing_hand",1],["â","v",1],["ð","ok_hand",1],["â","raised_hand",1],["ð¤","raised_back_of_hand",1],["ð","open_hands",1],["ðª","muscle",1],["ð¦¾","mechanical_arm",1],["ð","pray",1],["ð¦¶","foot",1],["ð¦µ","leg",1],["ð¦¿","mechanical_leg",1],["ð¤","handshake",1],["â","point_up",1],["ð","point_up_2",1],["ð","point_down",1],["ð","point_left",1],["ð","point_right",1],["ð","fu",1],["ð","raised_hand_with_fingers_splayed",1],["ð¤","love_you",1],["ð¤","metal",1],["ð¤","crossed_fingers",1],["ð","vulcan_salute",1],["â","writing_hand",1],["ð«°","hand_with_index_finger_and_thumb_crossed",1],["ð«±","rightwards_hand",1],["ð«²","leftwards_hand",1],["ð«³","palm_down_hand",1],["ð«´","palm_up_hand",1],["ð«µ","index_pointing_at_the_viewer",1],["ð«¶","heart_hands",1],["ð¤","pinching_hand",1],["ð¤","pinched_fingers",1],["ð¤³","selfie",1],["ð
","nail_care",1],["ð","lips",1],["ð«¦","biting_lip",1],["ð¦·","tooth",1],["ð
","tongue",1],["ð","ear",1],["ð¦
28»","ear_with_hearing_aid",1],["ð","nose",1],["ð","eye",1],["ð","eyes",1],["ð§ ","brain",1],["ð«","anatomical_heart",1],["ð«","lungs",1],["ð¤","bust_in_silhouette",1],["ð¥","busts_in_silhouette",1],["ð£","speaking_head",1],["ð¶","baby",1],["ð§","child",1],["ð¦","boy",1],["ð§","girl",1],["ð§","adult",1],["ð¨","man",1],["ð©","woman",1],["ð§âð¦±","curly_hair",1],["ð©âð¦±","curly_hair_woman",1],["ð¨âð¦±","curly_hair_man",1],["ð§âð¦°","red_hair",1],["ð©âð¦°","red_hair_woman",1],["ð¨âð¦°","red_hair_man",1],["ð±ââï¸","blonde_woman",1],["ð±","blonde_man",1],["ð§âð¦³","white_hair",1],["ð©âð¦³","white_hair_woman",1],["ð¨âð¦³","white_hair_man",1],["ð§âð¦²","bald",1],["ð©âð¦²","bald_woman",1],["ð¨âð¦²","bald_man",1],["ð§","bearded_person",1],["ð§","older_adult",1],["ð´","older_man",1],["ðµ","older_woman",1],["ð²","man_with_gua_pi_mao",1],["ð§","woman_with_headscarf",1],["ð³ââï¸","woman_with_turban",1],["ð³","man_with_turban",1],["ð®ââï¸","policewoman",1],["ð®","policeman",1],["ð·ââï¸","construction_worker_woman",1],["ð·","construction_worker_man",1],["ðââï¸","guardswoman",1],["ð","guardsman",1],["ðµï¸ââï¸","female_detective",1],["ðµ","male_detective",1],["ð§ââï¸","health_worker",1],["ð©ââï¸","woman_health_worker",1],["ð¨ââï¸","man_health_worker",1],["ð§âð¾","farmer",1],["ð©âð¾","woman_farmer",1],["ð¨âð¾","man_farmer",1],["ð§âð³","cook",1],["ð©âð³","woman_cook",1],["ð¨âð³","man_cook",1],["ð§âð","student",1],["ð©âð","woman_student",1],["ð¨âð","man_student",1],["ð§âð¤","singer",1],["ð©âð¤","woman_singer",1],["ð¨âð¤","man_singer",1],["ð§âð«","teacher",1],["ð©âð«","woman_teacher",1],["ð¨âð«","man_teacher",1],["ð§âð","factory_worker",1],["ð©âð","woman_factory_worker",1],["ð¨âð","man_factory_worker",1],["ð§âð»","technologist",1],["ð©âð»","woman_technologist",1],["ð¨âð»","man_technologist",1],["ð§âð¼","office_worker",1],["ð©âð¼","woman_office_worker",1],["ð¨âð¼","man_office_worker",1],["ð§âð§","mechanic",1],["ð©âð§","woman_mechanic",1],["ð¨âð§","man_mechanic",1],["ð§âð¬","scientist",1],["ð©âð¬","woman_scientist",1],["ð¨âð¬","man_scientist",1],["ð§âð¨","artist",1],["ð©âð¨","woman_artist",1],["ð¨âð¨","man_artist",1],["ð§âð","firefighter",1],["ð©âð","woman_firefighter",1],["ð¨âð","man_firefighter",1],["ð§ââï¸","pilot",1],["ð©ââï¸","woman_pilot",1],["ð¨ââï¸","man_pilot",1],["ð§âð","astronaut",1],["ð©âð","woman_astronaut",1],["ð¨âð","man_astronaut",1],["ð§ââï¸","judge",1],["ð©ââï¸","woman_judge",1],["ð¨ââï¸","man_judge",1],["ð¦¸ââï¸","woman_superhero",1],["ð¦¸ââï¸","man_superhero",1],["ð¦¹ââï¸","woman_supervillain",1],["ð¦¹ââï¸","man_supervillain",1],["ð¤¶","mrs_claus",1],["ð§âð","mx_claus",1],["ð
","santa",1],["ð¥·","ninja",1],["ð§ââï¸","sorceress",1],["ð§ââï¸","wizard",1],["ð§ââï¸","woman_elf",1],["ð§ââï¸","man_elf",1],["ð§ââï¸","woman_vampire",1],["ð§ââï¸","man_vampire",1],["ð§ââï¸","woman_zombie",1],["ð§ââï¸","man_zombie",1],["ð§ââï¸","woman_genie",1],["ð§ââï¸","man_genie",1],["ð§ââï¸","mermaid",1],["ð§ââï¸","merman",1],["ð§ââï¸","woman_fairy",1],["ð§ââï¸","man_fairy",1],["ð¼","angel",1],["ð§","troll",1],["ð¤°","pregnant_woman",1],["ð«","pregnant_man",1],["ð«","pregnant_person",1],["ð«
","person_with_crown",1],["ð¤±","breastfeeding",1],["ð©âð¼","woman_feeding_baby",1],["ð¨âð¼","man_feeding_baby",1],["ð§âð¼","person_feeding_baby",1],["ð¸","princess",1],["ð¤´","prince",1],["ð°","person_with_veil",1],["ð°","bride_with_veil",1],["ð¤µ","person_in_tuxedo",1],["ð¤µ","man_in_tuxedo",1],["ðââï¸","running_woman",1],["ð","running_man",1],["ð¶ââï¸","walking_woman",1],["ð¶","walking_man",1],["ð","dancer",1],["ðº","man_dancing",1],["ð¯","dancing_women",1],["ð¯ââï¸","dancing_men",1],["ð«","couple",1],["ð§âð¤âð§","people_holding_hands",1],["ð¬","two_men_holding_hands",1],["ð","two_women_holding_hands",1],["ð«","people_hugging",1],["ðââï¸","bowing_woman",1],["ð","bowing_man",1],["ð¤¦ââï¸","man_facepalming",1],["ð¤¦ââï¸","woman_facepalming",1],["ð¤·","woman_shrugging",1],["ð¤·ââï¸","man_shrugging",1],["ð","tipping_hand_woman",1],["ðââï¸","tipping_hand_man",1],["ð
","no_good_w
28oman",1],["ð
ââï¸","no_good_man",1],["ð","ok_woman",1],["ðââï¸","ok_man",1],["ð","raising_hand_woman",1],["ðââï¸","raising_hand_man",1],["ð","pouting_woman",1],["ðââï¸","pouting_man",1],["ð","frowning_woman",1],["ðââï¸","frowning_man",1],["ð","haircut_woman",1],["ðââï¸","haircut_man",1],["ð","massage_woman",1],["ðââï¸","massage_man",1],["ð§ââï¸","woman_in_steamy_room",1],["ð§ââï¸","man_in_steamy_room",1],["ð§ââï¸","woman_deaf",1],["ð§ââï¸","man_deaf",1],["ð§ââï¸","woman_standing",1],["ð§ââï¸","man_standing",1],["ð§ââï¸","woman_kneeling",1],["ð§ââï¸","man_kneeling",1],["ð§âð¦¯","person_with_probing_cane",1],["ð©âð¦¯","woman_with_probing_cane",1],["ð¨âð¦¯","man_with_probing_cane",1],["ð§âð¦¼","person_in_motorized_wheelchair",1],["ð©âð¦¼","woman_in_motorized_wheelchair",1],["ð¨âð¦¼","man_in_motorized_wheelchair",1],["ð§âð¦½","person_in_manual_wheelchair",1],["ð©âð¦½","woman_in_manual_wheelchair",1],["ð¨âð¦½","man_in_manual_wheelchair",1],["ð","couple_with_heart_woman_man",1],["ð©ââ¤ï¸âð©","couple_with_heart_woman_woman",1],["ð¨ââ¤ï¸âð¨","couple_with_heart_man_man",1],["ð","couplekiss_man_woman",1],["ð©ââ¤ï¸âðâð©","couplekiss_woman_woman",1],["ð¨ââ¤ï¸âðâð¨","couplekiss_man_man",1],["ðª","family_man_woman_boy",1],["ð¨âð©âð§","family_man_woman_girl",1],["ð¨âð©âð§âð¦","family_man_woman_girl_boy",1],["ð¨âð©âð¦âð¦","family_man_woman_boy_boy",1],["ð¨âð©âð§âð§","family_man_woman_girl_girl",1],["ð©âð©âð¦","family_woman_woman_boy",1],["ð©âð©âð§","family_woman_woman_girl",1],["ð©âð©âð§âð¦","family_woman_woman_girl_boy",1],["ð©âð©âð¦âð¦","family_woman_woman_boy_boy",1],["ð©âð©âð§âð§","family_woman_woman_girl_girl",1],["ð¨âð¨âð¦","family_man_man_boy",1],["ð¨âð¨âð§","family_man_man_girl",1],["ð¨âð¨âð§âð¦","family_man_man_girl_boy",1],["ð¨âð¨âð¦âð¦","family_man_man_boy_boy",1],["ð¨âð¨âð§âð§","family_man_man_girl_girl",1],["ð©âð¦","family_woman_boy",1],["ð©âð§","family_woman_girl",1],["ð©âð§âð¦","family_woman_girl_boy",1],["ð©âð¦âð¦","family_woman_boy_boy",1],["ð©âð§âð§","family_woman_girl_girl",1],["ð¨âð¦","family_man_boy",1],["ð¨âð§","family_man_girl",1],["ð¨âð§âð¦","family_man_girl_boy",1],["ð¨âð¦âð¦","family_man_boy_boy",1],["ð¨âð§âð§","family_man_girl_girl",1],["ð§¶","yarn",1],["ð§µ","thread",1],["ð§¥","coat",1],["ð¥¼","labcoat",1],["ð","womans_clothes",1],["ð","tshirt",1],["ð","jeans",1],["ð","necktie",1],["ð","dress",1],["ð","bikini",1],["ð©±","one_piece_swimsuit",1],["ð","kimono",1],["ð¥»","sari",1],["ð©²","briefs",1],["ð©³","shorts",1],["ð","lipstick",1],["ð","kiss",1],["ð£","footprints",1],["ð¥¿","flat_shoe",1],["ð ","high_heel",1],["ð¡","sandal",1],["ð¢","boot",1],["ð","mans_shoe",1],["ð","athletic_shoe",1],["ð©´","thong_sandal",1],["ð©°","ballet_shoes",1],["ð§¦","socks",1],["ð§¤","gloves",1],["ð§£","scarf",1],["ð","womans_hat",1],["ð©","tophat",1],["ð§¢","billed_hat",1],["â","rescue_worker_helmet",1],["ðª","military_helmet",1],["ð","mortar_board",1],["ð","crown",1],["ð","school_satchel",1],["ð§³","luggage",1],["ð","pouch",1],["ð","purse",1],["ð","handbag",1],["ð¼","briefcase",1],["ð","eyeglasses",1],["ð¶","dark_sunglasses",1],["ð¥½","goggles",1],["ð","ring",1],["ð","closed_umbrella",1],["ð¶","dog",2],["ð±","cat",2],["ðââ¬","black_cat",2],["ð","mouse",2],["ð¹","hamster",2],["ð°","rabbit",2],["ð¦","fox_face",2],["ð»","bear",2],["ð¼","panda_face",2],["ð¨","koala",2],["ð¯","tiger",2],["ð¦","lion",2],["ð®","cow",2],["ð·","pig",2],["ð½","pig_nose",2],["ð¸","frog",2],["ð¦","squid",2],["ð","octopus",2],["ðª¼","jellyfish",2],["ð¦","shrimp",2],["ðµ","monkey_face",2],["ð¦","gorilla",2],["ð","see_no_evil",2],["ð","hear_no_evil",2],["ð","speak_no_evil",2],["ð","monkey",2],["ð","chicken",2],["ð§","penguin",2],["ð¦","bird",2],["ð¤","baby_chick",2],["ð£","hatching_chick",2],["ð¥","hatched_chick",2],["ðª¿","goose",2],["ð¦","duck",2],["ð¦ââ¬","black_bird",2],["ð¦
","eagle",2],["ð¦","owl",2],["ð¦","bat",2],["ðº","wolf",2],["ð","boar",2],["ð´","horse",2],["ð¦","unicorn",2],["ð«","moose",2],["ð","honeybee",2],["ð","bug",2],["ð¦","butterfly",2],["ð","snail",2],["ð","lady_beetle",2],["ð","ant",2],["ð¦","grasshopper",2],["ð·","spider",2],["ðª²","beetle",2],["ðª³","cockroach",2],["ðª°","fly",2],["ðª±","worm",2],["ð¦","scorpion",2],["ð¦","crab",2],["ð","snake",2],["ð¦","lizard",2],["ð¦","t-rex",2],["ð¦","sauropod",2],["ð¢","turtle",2],["ð ","tropical_fish",2],["ð","fish",2],["ð¡","blowfish",2],["ð¬","dolphin",2],["ð¦","shark",2],["ð³","whale",2],["ð","whale2",2],["ð","crocodile",2],["ð","leopard",2],["ð¦","zebra",2],["ð
","tiger2",2],["ð","water_buffalo",2],["ð","ox",2],["ð","cow2",2],["ð¦","deer",2],["ðª","dromedary_camel",2],["ð«","camel",2],["ð¦","giraffe",2],["ð","elephant",2],["ð¦","rhinoceros",2],["ð","goat",2],["ð","ram",2],["ð","sheep",2],["ð«","donkey",2],["ð","racehorse",2],["ð","pig2",2],["ð","rat",2],["ð","mouse2",2],["ð","rooster",2],["ð¦","turkey",2],["ð","dove",2],["ð","dog2",2],["ð©","poodle",2],["ð","cat2",2],["ð","rabbit2",2],["ð¿","chipmunk",2],["ð¦","hedgehog",2],["ð¦","raccoon",2],["ð¦","llama",2],["ð¦","hippopotamus",2],["ð¦","kangaroo",2],["ð¦¡","badger",2],["ð¦¢","swan",2],["ð¦","peacock",2],["ð¦","parrot",2],["ð¦","lobster",2],["ð¦ ","microbe",2],["ð¦","mosquito",2],["ð¦¬","bison",2],["ð¦£","mammoth",2],["ð¦«","beaver",2],["ð»ââï¸","polar_bear",2],["ð¦¤","dodo",2],["ðª¶","feather",2],["ðª½","wing",2],["ð¦","seal",2],["ð¾","paw_prints",2],["ð","dragon",2],["ð²","dragon_face",2],["ð¦§","orangutan",2],["ð¦®","guide_dog",2],["ðâð¦º","service_dog",2],["ð¦¥","sloth",2],["ð¦¦","otter",2],["ð¦¨","skunk",2],["ð¦©","flamingo",2],["ðµ","cactus",2],["ð","christmas_tree",2],["ð²","evergreen_tree",2],["ð³","deciduous_tree",2],["ð´","palm_tree",2],["ð±","seedling",2],["ð¿","herb",2],["â","shamrock",2],["ð","four_leaf_clover",2],["ð","bamboo",2],["ð","tanabata_tree",2],["ð","leaves",2],["ð","fallen_leaf",2],["ð","maple_leaf",2],["ð¾","ear_of_rice",2],["ðº","hibiscus",2],["ð»","sunflower",2],["ð¹","rose",2],["ð¥","wilted_flower",2],["ðª»","hyacinth",2],["ð·","tulip",2],["ð¼","blossom",2],["ð¸","cherry_blossom",2],["ð","bouquet",2],["ð","mushroom",2],["ðª´","potted_plant",2],["ð°","chestnut",2],["ð","jack_o_lantern",2],["ð","shell",2],["ð¸","spider_web",2],["ð","earth_americas",2],["ð","earth_africa",2],["ð","earth_asia",2],["ðª","ringed_planet",2],["ð","full_moon",2],["ð","waning_gibbous_moon",2],["ð","last_quarter_moon",2],["ð","waning_crescent_moon",2],["ð","new_moon",2],["ð","waxing_crescent_moon",2],["ð","first_quarter_moon",2],["ð","waxing_gibbous_moon",2],["ð","new_moon_
28with_face",2],["ð","full_moon_with_face",2],["ð","first_quarter_moon_with_face",2],["ð","last_quarter_moon_with_face",2],["ð","sun_with_face",2],["ð","crescent_moon",2],["â","star",2],["ð","star2",2],["ð«","dizzy",2],["â¨","sparkles",2],["â","comet",2],["âï¸","sunny",2],["ð¤","sun_behind_small_cloud",2],["â
","partly_sunny",2],["ð¥","sun_behind_large_cloud",2],["ð¦","sun_behind_rain_cloud",2],["âï¸","cloud",2],["ð§","cloud_with_rain",2],["â","cloud_with_lightning_and_rain",2],["ð©","cloud_with_lightning",2],["â¡","zap",2],["ð¥","fire",2],["ð¥","boom",2],["âï¸","snowflake",2],["ð¨","cloud_with_snow",2],["â","snowman",2],["â","snowman_with_snow",2],["ð¬","wind_face",2],["ð¨","dash",2],["ðª","tornado",2],["ð«","fog",2],["â","open_umbrella",2],["â","umbrella",2],["ð§","droplet",2],["ð¦","sweat_drops",2],["ð","ocean",2],["ðª·","lotus",2],["ðª¸","coral",2],["ðª¹","empty_nest",2],["ðªº","nest_with_eggs",2],["ð","green_apple",3],["ð","apple",3],["ð","pear",3],["ð","tangerine",3],["ð","lemon",3],["ð","banana",3],["ð","watermelon",3],["ð","grapes",3],["ð","strawberry",3],["ð","melon",3],["ð","cherries",3],["ð","peach",3],["ð","pineapple",3],["ð¥¥","coconut",3],["ð¥","kiwi_fruit",3],["ð¥","mango",3],["ð¥","avocado",3],["ð«","pea_pod",3],["ð¥¦","broccoli",3],["ð
","tomato",3],["ð","eggplant",3],["ð¥","cucumber",3],["ð«","blueberries",3],["ð«","olive",3],["ð«","bell_pepper",3],["ð¥","carrot",3],["ð¶","hot_pepper",3],["ð¥","potato",3],["ð½","corn",3],["ð¥¬","leafy_greens",3],["ð ","sweet_potato",3],["ð«","ginger_root",3],["ð¥","peanuts",3],["ð§","garlic",3],["ð§
","onion",3],["ð¯","honey_pot",3],["ð¥","croissant",3],["ð","bread",3],["ð¥","baguette_bread",3],["ð¥¯","bagel",3],["ð¥¨","pretzel",3],["ð§","cheese",3],["ð¥","egg",3],["ð¥","bacon",3],["ð¥©","steak",3],["ð¥","pancakes",3],["ð","poultry_leg",3],["ð","meat_on_bone",3],["ð¦´","bone",3],["ð¤","fried_shrimp",3],["ð³","fried_egg",3],["ð","hamburger",3],["ð","fries",3],["ð¥","stuffed_flatbread",3],["ð","hotdog",3],["ð","pizza",3],["ð¥ª","sandwich",3],["ð¥«","canned_food",3],["ð","spaghetti",3],["ð®","taco",3],["ð¯","burrito",3],["ð¥","green_salad",3],["ð¥","shallow_pan_of_food",3],["ð","ramen",3],["ð²","stew",3],["ð¥","fish_cake",3],["ð¥ ","fortune_cookie",3],["ð£","sushi",3],["ð±","bento",3],["ð","curry",3],["ð","rice_ball",3],["ð","rice",3],["ð","rice_cracker",3],["ð¢","oden",3],["ð¡","dango",3],["ð§","shaved_ice",3],["ð¨","ice_cream",3],["ð¦","icecream",3],["ð¥§","pie",3],["ð°","cake",3],["ð§","cupcake",3],["ð¥®","moon_cake",3],["ð","birthday",3],["ð®","custard",3],["ð¬","candy",3],["ð","lollipop",3],["ð«","chocolate_bar",3],["ð¿","popcorn",3],["ð¥","dumpling",3],["ð©","doughnut",3],["ðª","cookie",3],["ð§","waffle",3],["ð§","falafel",3],["ð§","butter",3],["ð¦ª","oyster",3],["ð«","flatbread",3],["ð«","tamale",3],["ð«","fondue",3],["ð¥","milk_glass",3],["ðº","beer",3],["ð»","beers",3],["ð¥","clinking_glasses",3],["ð·","wine_glass",3],["ð¥","tumbler_glass",3],["ð¸","cocktail",3],["ð¹","tropical_drink",3],["ð¾","champagne",3],["ð¶","sake",3],["ðµ","tea",3],["ð¥¤","cup_with_straw",3],["â","coffee",3],["ð«","teapot",3],["ð§","bubble_tea",3],["ð¼","baby_bottle",3],["ð§","beverage_box",3],["ð§","mate",3],["ð§","ice_cube",3],["ð§","salt",3],["ð¥","spoon",3],["ð´","fork_and_knife",3],["ð½","plate_with_cutlery",3],["ð¥£","bowl_with_spoon",3],["ð¥¡","takeout_box",3],["ð¥¢","chopsticks",3],["ð«","pouring_liquid",3],["ð«","beans",3],["ð«","jar",3],["â½","soccer",4],["ð","basketball",4],["ð","football",4],["â¾","baseball",4],["ð¥","softball",4],["ð¾","tennis",4],["ð","volleyball",4],["ð","rugby_football",4],["ð¥","flying_disc",4],["ð±","8ball",4],["â³","golf",4],["ðï¸ââï¸","golfing_woman",4],["ð","golfing_man",4],["ð","ping_pong",4],["ð¸","badminton",4],["ð¥
","goal_net",4],["ð","ice_hockey",4],["ð","field_hockey",4],["ð¥","lacrosse",4],["ð","cricket",4],["ð¿","ski",4],["â·","skier",4],["ð","snowboarder",4],["ð¤º","person_fencing",4],["ð¤¼ââï¸","women_wrestling",4],["ð¤¼ââï¸","men_wrestling",4],["ð¤¸ââï¸","woman_cartwheeling",4],["ð¤¸ââï¸","man_cartwheeling",4],["ð¤¾ââï¸","woman_playing_handball",4],["ð¤¾ââï¸","man_playing_handball",4],["â¸","ice_skate",4],["ð¥","curling_stone",4],["ð¹","skateboard",4],["ð·","sled",4],["ð¹","bow_and_arrow",4],["ð£","fishing_pole_and_fish",4],["ð¥","boxing_glove",4],["ð¥","martial_arts_uniform",4],["ð£ââï¸","rowing_woman",4],["ð£","rowing_man",4],["ð§ââï¸","climbing_woman",4],["ð§ââï¸","climbing_man",4],["ðââï¸","swimming_woman",4],["ð","swimming_man",4],["ð¤½ââï¸","woman_playing_water_polo",4],["ð¤½ââï¸","man_playing_water_polo",4],["ð§ââï¸","woman_in_lotus_position",4],["ð§ââï¸","man_in_lotus_position",4],["ðââï¸","surfing_woman",4],["ð","surfing_man",4],["ð","bath",4],["â¹ï¸ââï¸","basketball_woman",4],["â¹","basketball_man",4],["ðï¸ââï¸","weight_lifting_woman",4],["ð","weight_lifting_man",4],["ð´ââï¸","biking_woman",4],["ð´","biking_man",4],["ðµââï¸","mountain_biking_woman",4],["ðµ","mountain_biking_man",4],["ð","horse_racing",4],["ð¤¿","diving_mask",4],["ðª","yo_yo",4],["ðª","kite",4],["ð¦º","safety_vest",4],["ðª¡","sewing_needle",4],["ðª¢","knot",4],["ð´","business_suit_levitating",4],["ð","trophy",4],["ð½","running_shirt_with_sash",4],["ð
","medal_sports",4],["ð","medal_military",4],["ð¥","1st_place_medal",4],["ð¥","2nd_place_medal",4],["ð¥","3rd_place_medal",4],["ð","reminder_ribbon",4],["ðµ","rosette",4],["ð«","ticket",4],["ð","tickets",4],["ð","performing_arts",4],["ð¨","art",4],["ðª","circus_tent",4],["ð¤¹ââï¸","woman_juggling",4],["ð¤¹ââï¸","man_juggling",4],["ð¤","microphone",4],["ð§","headphones",4],["ð¼","musical_score",4],["ð¹","musical_keyboard",4],["ðª","maracas",4],["ð¥","drum",4],["ð·","saxophone",4],["ðº","trumpet",4],["ðª","flute",4],["ð¸","guitar",4],["ð»","violin",4],["ðª","banjo",4],["ðª","accordion",4],["ðª","long_drum",4],["ð¬","clapper",4],["ð®","video_game",4],["ð¾","space_invader",4],["ð¯","dart",4],["ð²","game_die",4],["âï¸","chess_pawn",4],["ð°","slot_machine",4],["ð§©","jigsaw",4],["ð³","bowling",4],["ðª","magic_wand",4],["ðª
","pinata",4],["ðª","nesting_dolls",4],["ðª¬","hamsa",4],["ðª©","mirror_ball",4],["ð","red_car",5],["ð","taxi",5],["ð","blue_car",5],["ð","bus",5],["ð","trolleybus",5],["ð","racing_car",5],["ð","police_car",5],["ð","ambulance",5],["ð","fire_engine",5],["ð","minibus",5],["ð","truck",5],["ð","articulated_lorry",5],["ð","tractor",5],["ð´","kick_scooter",5],["ð","motorcycle",5],["ð²","bike",5],["ðµ","motor_scooter",5],["ð¦½","manual_wheelchair",5],["ð¦¼","motorized_wheelchair",5],["ðº","auto_rickshaw",5],["ðª","parachute",5],["ð¨","rotating_light",5],["ð","oncoming_police_car",5],["ð","oncoming_bus",5],["ð","oncoming_automobile",5],["ð","oncoming_taxi",5],["ð¡","aerial_tramway",5],["ð ","mountain_cableway",5],["ð","suspension_railway",5],["ð","railway_car",5],["ð","train",5],["ð","monorail",5],["ð","bullettrain_side",5],["ð
","bullettrain_front",5],["ð","light_rail",5],["ð","mountain_railway",5],["ð","steam_locomotive",5],["ð","train2",5],["ð","metro",5],["ð","tram",5],["ð","station",5],["ð¸","flying_saucer",5],["ð","helicopter",5],["ð©","small_airplane",5],["âï¸","airplane",5],["ð«","flight_departure",5],["ð¬","flight_arrival",5],["âµ","sailboat",5],["ð¥","motor_boat",5],["ð¤","speedboat",5],["â´","ferry",5],["ð³","passenger_ship",5],["ð","rocket",5],["ð°","artificial_satellite",5],["ð»","pickup_truck",5],["ð¼","roller_skate",5],["ðº","seat",5],["ð¶","canoe",5],["â","anchor",5],["ð§","construction",5],["â½","fuelpump",5],["ð","busstop",5],["ð¦","vertical_traffic_light",5],["ð¥","traffic_light",5],["ð","checkered_flag",5],["ð¢","ship",5],["ð¡","ferris_wheel",5],["ð¢","roller_coaster",5],["ð ","carousel_horse",5],["ð","building_construction",5],["ð","foggy",5],["ð","factory",5],["â²","fountain",5],["ð","rice_scene",5],["â°","mountain",5],["ð","mountain_snow",5],["ð»","mount_fuji",5],["ð","volcano",5],["ð¾","japan",5],["ð","camping",5],["âº","tent",5],["ð","national_park",5],["ð£","motorway",5],["ð¤","railway_track",5],["ð
","sunrise",5],["ð","sunrise_over_mountains",5],["ð","desert",5],["ð","beach_umbrella",5],["ð","desert_island",5],["ð","city_sunrise",5],["ð","city_sunset",5],["ð","cityscape",5],["ð","night_with_stars",5],["ð","bridge_at_night",5],["ð","milky_way",5],["ð ","stars",5],["ð","sparkler",5],["ð","fireworks",5],["ð","rainbow",5],["ð","houses",5],["ð°","european_castle",5],["ð¯","japanese_castle",5],["ð¼","tokyo_tower",5],["î","shibuya_109",5],["ð","stadium",5],["ð½","statue_of_liberty",5],["ð ","house",5],["ð¡","house_with_garden",5],["ð","derelict_house",5],["ð¢","office",5],["ð¬","department_store",5],["ð£","post_office",5],["ð¤","european_post_office",5],["ð¥","hospital",5],["ð¦","bank",5],["ð¨","hotel",5],["ðª","convenience_store",5],["ð«","school",5],["ð©","love_hotel",5],["ð","wedding",5],["ð","classical_building",5],["âª","church",5],["ð","mosque",5],["ð","synagogue",5],["ð","kaaba",5],["â©","shinto_shrine",5],["ð","hindu_temple",5],["ðª¨","rock",5],["ðªµ","wood",5],["ð","hut",5],["ð","playground_slide",5],["ð","wheel",5],["ð","ring_buoy",5],["â","watch",6],["ð±","iphone",6],["ð²","calling",6],["ð»","computer",6],["â¨","keyboard",6],["ð¥","desktop_computer",6],["ð¨","printer",6],["ð±","computer_mouse",6],["ð²","trackball",6],["ð¹","joystick",6],["ð","clamp",6],["ð½","minidisc",6],["ð¾","floppy_disk",6],["ð¿","cd",6],["ð","dvd",6],["ð¼","vhs",6],["ð·","camera",6],["ð¸","camera_flash",6],["ð¹","video_camera",6],["ð¥","movie_camera",6],["ð½","film_projector",6],["ð","film_strip",6],["ð","telephone_receiver",6],["âï¸","phone",6],["ð","pager",6],["ð ","fax",6],["ðº","tv",6],["ð»","radio",6],["ð","studio_microphone",6],["ð","level_slider",6],["ð","control_knobs",6],["ð§","compass",6],["â±","stopwatch",6],["â²","timer_clock",6],["â°","alarm_clock",6],["ð°","mantelpiece_clock",6],["â³","hourglass_flowing_sand",6],["â","hourglass",6],["ð¡","satellite",6],["ð","battery",6],["ðª«","low_battery",6],["ð","electric_plug",6],["ð¡","bulb",6],["ð¦","flashlight",6],["ð¯","candle",6],["ð§¯","fire_extinguisher",6],["ð","wastebasket",6],["ð¢","oil_drum",6],["ð¸","money_with_wings",6],["ðµ","dollar",6],["ð´","yen",6],["ð¶","euro",6],["ð·","pound",6],["ð°","moneybag",6],["ðª","coin",6],["ð³","credit_card",6],["ðªª","identification_card",6],["ð","gem",6],["â","balance_scale",6],["ð§°","toolbox",6],["ð§","wrench",6],["ð¨","hammer",6],["â","hammer_and_pick",6],["ð ","hammer_and_wrench",6],["â","pick",6],["ðª","axe",6],["ð¦¯","probing_cane",6],["ð©","nut_and_bolt",6],["â","gear",6],["ðª","boomerang",6],["ðª","carpentry_saw",6],["ðª","screwdriver",6],["ðª","hook",6],["ðª","ladder",6],["ð§
28±","brick",6],["â","chains",6],["ð§²","magnet",6],["ð«","gun",6],["ð£","bomb",6],["ð§¨","firecracker",6],["ðª","hocho",6],["ð¡","dagger",6],["â","crossed_swords",6],["ð¡","shield",6],["ð¬","smoking",6],["â ","skull_and_crossbones",6],["â°","coffin",6],["â±","funeral_urn",6],["ðº","amphora",6],["ð®","crystal_ball",6],["ð¿","prayer_beads",6],["ð§¿","nazar_amulet",6],["ð","barber",6],["â","alembic",6],["ð","telescope",6],["ð¬","microscope",6],["ð³","hole",6],["ð","pill",6],["ð","syringe",6],["ð©¸","drop_of_blood",6],["ð©¹","adhesive_bandage",6],["ð©º","stethoscope",6],["ðª","razor",6],["ðª®","hair_pick",6],["ð©»","xray",6],["ð©¼","crutch",6],["ð§¬","dna",6],["ð§«","petri_dish",6],["ð§ª","test_tube",6],["ð¡","thermometer",6],["ð§¹","broom",6],["ð§º","basket",6],["ð§»","toilet_paper",6],["ð·","label",6],["ð","bookmark",6],["ð½","toilet",6],["ð¿","shower",6],["ð","bathtub",6],["ð§¼","soap",6],["ð§½","sponge",6],["ð§´","lotion_bottle",6],["ð","key",6],["ð","old_key",6],["ð","couch_and_lamp",6],["ðª","diya_Lamp",6],["ð","sleeping_bed",6],["ð","bed",6],["ðª","door",6],["ðª","chair",6],["ð","bellhop_bell",6],["ð§¸","teddy_bear",6],["ð¼","framed_picture",6],["ðº","world_map",6],["ð","elevator",6],["ðª","mirror",6],["ðª","window",6],["ðª ","plunger",6],["ðª¤","mouse_trap",6],["ðª£","bucket",6],["ðª¥","toothbrush",6],["ð«§","bubbles",6],["â±","parasol_on_ground",6],["ð¿","moyai",6],["ð","shopping",6],["ð","shopping_cart",6],["ð","balloon",6],["ð","flags",6],["ð","ribbon",6],["ð","gift",6],["ð","confetti_ball",6],["ð","tada",6],["ð","dolls",6],["ðª","folding_hand_fan",6],["ð","wind_chime",6],["ð","crossed_flags",6],["ð®","izakaya_lantern",6],["ð§§","red_envelope",6],["âï¸","email",6],["ð©","envelope_with_arrow",6],["ð¨","incoming_envelope",6],["ð§","e-mail",6],["ð","love_letter",6],["ð®","postbox",6],["ðª","mailbox_closed",6],["ð«","mailbox",6],["ð¬","mailbox_with_mail",6],["ð","mailbox_with_no_mail",6],["ð¦","package",6],["ð¯","postal_horn",6],["ð¥","inbox_tray",6],["ð¤","outbox_tray",6],["ð","scroll",6],["ð","page_with_curl",6],["ð","bookmark_tabs",6],["ð§¾","receipt",6],["ð","bar_chart",6],["ð","chart_with_upwards_trend",6],["ð","chart_with_downwards_trend",6],["ð","page_facing_up",6],["ð
","date",6],["ð","calendar",6],["ð","spiral_calendar",6],["ð","card_index",6],["ð","card_file_box",6],["ð³","ballot_box",6],["ð","file_cabinet",6],["ð","clipboard",6],["ð","spiral_notepad",6],["ð","file_folder",6],["ð","open_file_folder",6],["ð","card_index_dividers",6],["ð","newspaper_roll",6],["ð°","newspaper",6],["ð","notebook",6],["ð","closed_book",6],["ð","green_book",6],["ð","blue_book",6],["ð","orange_book",6],["ð","notebook_with_decorative_cover",6],["ð","ledger",6],["ð","books",6],["ð","open_book",6],["ð§·","safety_pin",6],["ð","link",6],["ð","paperclip",6],["ð","paperclips",6],["âï¸","scissors",6],["ð","triangular_ruler",6],["ð","straight_ruler",6],["ð§®","abacus",6],["ð","pushpin",6],["ð","round_pushpin",6],["ð©","triangular_flag_on_post",6],["ð³","white_flag",6],["ð´","black_flag",6],["ð³ï¸âð","rainbow_flag",6],["ð³ï¸ââ§ï¸","transgender_flag",6],["ð","closed_lock_with_key",6],["ð","lock",6],["ð","unlock",6],["ð","lock_with_ink_pen",6],["ð","pen",6],["ð","fountain_pen",6],["âï¸","black_nib",6],["ð","memo",6],["âï¸","pencil2",6],["ð","crayon",6],["ð","paintbrush",6],["ð","mag",6],["ð","mag_right",6],["ðª¦","headstone",6],["ðª§","placard",6],["ð¯","100",7],["ð¢","1234",7],["ð©·","pink_heart",7],["â¤ï¸","heart",7],["ð§¡","orange_heart",7],["ð","yellow_heart",7],["ð","green_heart",7],["ð©µ","light_blue_heart",7],["ð","blue_heart",7],["ð","purple_heart",7],["ð¤","brown_heart",7],["ð¤","black_heart",7],["ð©¶","grey_heart",7],["ð¤","white_heart",7],["ð","broken_heart",7],["â£","heavy_heart_exclamation",7],["ð","two_hearts",7],["ð","revolving_hearts",7],["ð","heartbeat",7],["ð","heartpulse",7],["ð","sparkling_heart",7],["ð","cupid",7],["ð","gift_heart",7],["ð","heart_decoration",7],["â¤ï¸âð¥","heart_on_fire",7],["â¤ï¸âð©¹","mending_heart",7],["â®","peace_symbol",7],["â","latin_cross",7],["âª","star_and_crescent",7],["ð","om",7],["â¸","wheel_of_dharma",7],["ðª¯","khanda",7],["â¡","star_of_david",7],["ð¯","six_pointed_star",7],["ð","menorah",7],["â¯","yin_y
28ang",7],["â¦","orthodox_cross",7],["ð","place_of_worship",7],["â","ophiuchus",7],["â","aries",7],["â","taurus",7],["â","gemini",7],["â","cancer",7],["â","leo",7],["â","virgo",7],["â","libra",7],["â","scorpius",7],["â","sagittarius",7],["â","capricorn",7],["â","aquarius",7],["â","pisces",7],["ð","id",7],["â","atom_symbol",7],["â§ï¸","transgender_symbol",7],["ð³","u7a7a",7],["ð¹","u5272",7],["â¢","radioactive",7],["â£","biohazard",7],["ð´","mobile_phone_off",7],["ð³","vibration_mode",7],["ð¶","u6709",7],["ð","u7121",7],["ð¸","u7533",7],["ðº","u55b6",7],["ð·ï¸","u6708",7],["â´ï¸","eight_pointed_black_star",7],["ð","vs",7],["ð","accept",7],["ð®","white_flower",7],["ð","ideograph_advantage",7],["ãï¸","secret",7],["ãï¸","congratulations",7],["ð´","u5408",7],["ðµ","u6e80",7],["ð²","u7981",7],["ð
°ï¸","a",7],["ð
±ï¸","b",7],["ð","ab",7],["ð","cl",7],["ð
¾ï¸","o2",7],["ð","sos",7],["â","no_entry",7],["ð","name_badge",7],["ð«","no_entry_sign",7],["â","x",7],["â","o",7],["ð","stop_sign",7],["ð¢","anger",7],["â¨ï¸","hotsprings",7],["ð·","no_pedestrians",7],["ð¯","do_not_litter",7],["ð³","no_bicycles",7],["ð±","non-potable_water",7],["ð","underage",7],["ðµ","no_mobile_phones",7],["â","exclamation",7],["â","grey_exclamation",7],["â","question",7],["â","grey_question",7],["â¼ï¸","bangbang",7],["âï¸","interrobang",7],["ð
","low_brightness",7],["ð","high_brightness",7],["ð±","trident",7],["â","fleur_de_lis",7],["ã½ï¸","part_alternation_mark",7],["â ï¸","warning",7],["ð¸","children_crossing",7],["ð°","beginner",7],["â»ï¸","recycle",7],["ð¯","u6307",7],["ð¹","chart",7],["âï¸","sparkle",7],["â³ï¸","eight_spoked_asterisk",7],["â","negative_squared_cross_mark",7],["â
","white_check_mark",7],["ð ","diamond_shape_with_a_dot_inside",7],["ð","cyclone",7],["â¿","loop",7],["ð","globe_with_meridians",7],["âï¸","m",7],["ð§","atm",7],["ðï¸","sa",7],["ð","passport_control",7],["ð","customs",7],["ð","baggage_claim",7],["ð
","left_luggage",7],["ð","wireless",7],["â¿","wheelchair",7],["ð","no_smoking",7],["ð¾","wc",7],["ð
¿ï¸","parking",7],["ð°","potable_water",7],["ð¹","mens",7],["ðº","womens",7],["ð¼","baby_symbol",7],["ð»","restroom",7],["ð®","put_litter_in_its_place",7],["ð¦","cinema",7],["ð¶","signal_strength",7],["ð","koko",7],["ð","ng",7],["ð","ok",7],["ð","up",7],["ð","cool",7],["ð","new",7],["ð","free",7],["0ï¸â£","zero",7],["1ï¸â£","one",7],["2ï¸â£","two",7],["3ï¸â£","three",7],["4ï¸â£","four",7],["5ï¸â£","five",7],["6ï¸â£","six",7],["7ï¸â£","seven",7],["8ï¸â£","eight",7],["9ï¸â£","nine",7],["ð","keycap_ten",7],["*â£","asterisk",7],["âï¸","eject_button",7],["â¶ï¸","arrow_forward",7],["â¸","pause_button",7],["â","next_track_button",7],["â¹","stop_button",7],["âº","record_button",7],["â¯","play_or_pause_button",7],["â®","previous_track_button",7],["â©","fast_forward",7],["âª","rewind",7],["ð","twisted_rightwards_arrows",7],["ð","repeat",7],["ð","repeat_one",7],["âï¸","arrow_backward",7],["ð¼","arrow_up_small",7],["ð½","arrow_down_small",7],["â«","arrow_double_up",7],["â¬","arrow_double_down",7],["â¡ï¸","arrow_right",7],["â¬
ï¸","arrow_left",7],["â¬ï¸","arrow_up",7],["â¬ï¸","arrow_down",7],["âï¸","arrow_upper_right",7],["âï¸","arrow_lower_right",7],["âï¸","arrow_lower_left",7],["âï¸","arrow_upper_left",7],["âï¸","arrow_up_down",7],["âï¸","left_right_arrow",7],["ð","arrows_counterclockwise",7],["âªï¸","arrow_right_hook",7],["â©ï¸","leftwards_arrow_with_hook",7],["⤴ï¸","arrow_heading_up",7],["⤵ï¸","arrow_heading_down",7],["#ï¸â£","hash",7],["â¹ï¸","information_source",7],["ð¤","abc",7],["ð¡","abcd",7],["ð ","capital_abcd",7],["ð£","symbols",7],["ðµ","musical_note",7],["ð¶","notes",7],["ã°ï¸","wavy_dash",7],["â°","curly_loop",7],["âï¸","heavy_check_mark",7],["ð","arrows_clockwise",7],["â","heavy_plus_sign",7],["â","heavy_minus_sign",7],["â","heavy_division_sign",7],["âï¸","heavy_multiplication_x",7],["ð°","heavy_equals_sign",7],["â¾","infinity",7],["ð²","heavy_dollar_sign",7],["ð±","currency_exchange",7],["©ï¸","copyright",7],["®ï¸","registered",7],["â¢ï¸","tm",7],["ð","end",7],["ð","back",7],["ð","on",7],["ð","top",7],["ð","soon",7],["âï¸","ballot_box_with_check",7],["ð","radio_button",7],["â«","black_circle",7],["âª","white_circle",7],["ð´","red_circle",7],["ð ","orange_circle",7],["ð¡","yellow_circle",7],["ð¢","green_circle",7],["ðµ","large_blue_circle",7],["ð£","purple_circle",7],["ð¤","brown_circle",7],["ð¸","small_orange_diamond",7],["ð¹","small_blue_diamond",7],["ð¶","large_orange_diamond",7],["ð·","large_blue_diamond",7],["ðº","small_red_triangle",7],["âªï¸","black_small_square",7],["â«ï¸","white_small_square",7],["â¬","black_large_square",7],["â¬","white_large_square",7],["ð¥","red_square",7],["ð§","orange_square",7],["ð¨","yellow_square",7],["ð©","green_square",7],["ð¦","blue_square",7],["ðª","purple_square",7],["ð«","brown_square",7],["ð»","small_red_triangle_down",7],["â¼ï¸","black_medium_square",7],["â»ï¸","white_medium_square",7],["â¾","black_medium_small_square",7],["â½","white_medium_small_square",7],["ð²","black_square_button",7],["ð³","white_square_button",7],["ð","speaker",7],["ð","sound",7],["ð","loud_sound",7],["ð","mute",7],["ð£","mega",7],["ð¢","loudspeaker",7],["ð","bell",7],["ð","no_bell",7],["ð","black_joker",7],["ð","mahjong",7],["â ï¸","spades",7],["â£ï¸","clubs",7],["â¥ï¸","hearts",7],["â¦ï¸","diamonds",7],["ð´","flower_playing_cards",7],["ð","thought_balloon",7],["ð¯","right_anger_bubble",7],["ð¬","speech_balloon",7],["ð¨","left_speech_bubble",7],["ð","clock1",7],["ð","clock2",7],["ð","clock3",7],["ð","clock4",7],["ð","clock5",7],["ð","clock6",7],["ð","clock7",7],["ð","clock8",7],["ð","clock9",7],["ð","clock10",7],["ð","clock11",7],["ð","clock12",7],["ð","clock130",7],["ð","clock230",7],["ð","clock330",7],["ð","clock430",7],["ð ","clock530",7],["ð¡","clock630",7],["ð¢","clock730",7],["ð£","clock830",7],["ð¤","clock930",7],["ð¥","clock1030",7],["ð¦","clock1130",7],["ð§","clock1230",7],["ð¦ð«","afghanistan",8],["ð¦ð½","aland_islands",8],["ð¦ð±","albania",8],["ð©ð¿","alger
28ia",8],["ð¦ð¸","american_samoa",8],["ð¦ð©","andorra",8],["ð¦ð´","angola",8],["ð¦ð®","anguilla",8],["ð¦ð¶","antarctica",8],["ð¦ð¬","antigua_barbuda",8],["ð¦ð·","argentina",8],["ð¦ð²","armenia",8],["ð¦ð¼","aruba",8],["ð¦ð¨","ascension_island",8],["ð¦ðº","australia",8],["ð¦ð¹","austria",8],["ð¦ð¿","azerbaijan",8],["ð§ð¸","bahamas",8],["ð§ð","bahrain",8],["ð§ð©","bangladesh",8],["ð§ð§","barbados",8],["ð§ð¾","belarus",8],["ð§ðª","belgium",8],["ð§ð¿","belize",8],["ð§ð¯","benin",8],["ð§ð²","bermuda",8],["ð§ð¹","bhutan",8],["ð§ð´","bolivia",8],["ð§ð¶","caribbean_netherlands",8],["ð§ð¦","bosnia_herzegovina",8],["ð§ð¼","botswana",8],["ð§ð·","brazil",8],["ð®ð´","british_indian_ocean_territory",8],["ð»ð¬","british_virgin_islands",8],["ð§ð³","brunei",8],["ð§ð¬","bulgaria",8],["ð§ð«","burkina_faso",8],["ð§ð®","burundi",8],["ð¨ð»","cape_verde",8],["ð°ð","cambodia",8],["ð¨ð²","cameroon",8],["ð¨ð¦","canada",8],["ð®ð¨","canary_islands",8],["ð°ð¾","cayman_islands",8],["ð¨ð«","central_african_republic",8],["ð¹ð©","chad",8],["ð¨ð±","chile",8],["ð¨ð³","cn",8],["ð¨ð½","christmas_island",8],["ð¨ð¨","cocos_islands",8],["ð¨ð´","colombia",8],["ð°ð²","comoros",8],["ð¨ð¬","congo_brazzaville",8],["ð¨ð©","congo_kinshasa",8],["ð¨ð°","cook_islands",8],["ð¨ð·","costa_rica",8],["ðð·","croatia",8],["ð¨ðº","cuba",8],["ð¨ð¼","curacao",8],["ð¨ð¾","cyprus",8],["ð¨ð¿","czech_republic",8],["ð©ð°","denmark",8],["ð©ð¯","djibouti",8],["ð©ð²","dominica",8],["ð©ð´","dominican_republic",8],["ðªð¨","ecuador",8],["ðªð¬","egypt",8],["ð¸ð»","el_salvador",8],["ð¬ð¶","equatorial_guinea",8],["ðªð·","eritrea",8],["ðªðª","estonia",8],["ðªð¹","ethiopia",8],["ðªðº","eu",8],["ð«ð°","falkland_islands",8],["ð«ð´","faroe_islands",8],["ð«ð¯","fiji",8],["ð«ð®","finland",8],["ð«ð·","fr",8],["ð¬ð«","french_guiana",8],["ðµð«","french_polynesia",8],["ð¹ð«","french_southern_territories",8],["ð¬ð¦","gabon",8],["ð¬ð²","gambia",8],["ð¬ðª","georgia",8],["ð©ðª","de",8],["ð¬ð","ghana",8],["ð¬ð®","gibraltar",8],["ð¬ð·","greece",8],["ð¬ð±","greenland",8],["ð¬ð©","grenada",8],["ð¬ðµ","guadeloupe",8],["ð¬ðº","guam",8],["ð¬ð¹","guatemala",8],["ð¬ð¬","guer
28nsey",8],["ð¬ð³","guinea",8],["ð¬ð¼","guinea_bissau",8],["ð¬ð¾","guyana",8],["ðð¹","haiti",8],["ðð³","honduras",8],["ðð°","hong_kong",8],["ððº","hungary",8],["ð®ð¸","iceland",8],["ð®ð³","india",8],["ð®ð©","indonesia",8],["ð®ð·","iran",8],["ð®ð¶","iraq",8],["ð®ðª","ireland",8],["ð®ð²","isle_of_man",8],["ð®ð±","israel",8],["ð®ð¹","it",8],["ð¨ð®","cote_divoire",8],["ð¯ð²","jamaica",8],["ð¯ðµ","jp",8],["ð¯ðª","jersey",8],["ð¯ð´","jordan",8],["ð°ð¿","kazakhstan",8],["ð°ðª","kenya",8],["ð°ð®","kiribati",8],["ð½ð°","kosovo",8],["ð°ð¼","kuwait",8],["ð°ð¬","kyrgyzstan",8],["ð±ð¦","laos",8],["ð±ð»","latvia",8],["ð±ð§","lebanon",8],["ð±ð¸","lesotho",8],["ð±ð·","liberia",8],["ð±ð¾","libya",8],["ð±ð®","liechtenstein",8],["ð±ð¹","lithuania",8],["ð±ðº","luxembourg",8],["ð²ð´","macau",8],["ð²ð°","macedonia",8],["ð²ð¬","madagascar",8],["ð²ð¼","malawi",8],["ð²ð¾","malaysia",8],["ð²ð»","maldives",8],["ð²ð±","mali",8],["ð²ð¹","malta",8],["ð²ð","marshall_islands",8],["ð²ð¶","martinique",8],["ð²ð·","mauritania",8],["ð²ðº","mauritius",8],["ð¾ð¹","mayotte",8],["ð²ð½","mexico",8],["ð«ð²","micronesia",8],["ð²ð©","moldova",8],["ð²ð¨","monaco",8],["ð²ð³","mongolia",8],["ð²ðª","montenegro",8],["ð²ð¸","montserrat",8],["ð²ð¦","morocco",8],["ð²ð¿","mozambique",8],["ð²ð²","myanmar",8],["ð³ð¦","namibia",8],["ð³ð·","nauru",8],["ð³ðµ","nepal",8],["ð³ð±","netherlands",8],["ð³ð¨","new_caledonia",8],["ð³ð¿","new_zealand",8],["ð³ð®","nicaragua",8],["ð³ðª","niger",8],["ð³ð¬","nigeria",8],["ð³ðº","niue",8],["ð³ð«","norfolk_island",8],["ð²ðµ","northern_mariana_islands",8],["ð°ðµ","north_korea",8],["ð³ð´","norway",8],["ð´ð²","oman",8],["ðµð°","pakistan",8],["ðµð¼","palau",8],["ðµð¸","palestinian_territories",8],["ðµð¦","panama",8],["ðµð¬","papua_new_guinea",8],["ðµð¾","paraguay",8],["ðµðª","peru",8],["ðµð","philippines",8],["ðµð³","pitcairn_islands",8],["ðµð±","poland",8],["ðµð¹","portugal",8],["ðµð·","puerto_rico",8],["ð¶ð¦","qatar",8],["ð·ðª","reunion",8],["ð·ð´","romania",8],["ð·ðº","ru",8],["ð·ð¼","rwanda",8],["ð§ð±","st_barthelemy",8],["ð¸ð","st_helena",8],["ð°ð³","st_kitts_nevis",8],["ð±ð¨","st_lucia",8],["ðµð²","st_pierre_miquelon",8],["ð»ð¨","st_vincent_grenadines",8],["ð¼ð¸","samoa",8],["ð¸ð²","san_marino",8],["ð¸ð¹","sao_tome_principe",8],["ð¸ð¦","saudi_arabia",8],["ð¸ð³","senegal",8],["ð·ð¸","serbia",8],["ð¸ð¨","seychelles",8],["ð¸ð±","sierra_leone",8],["ð¸ð¬","singapore",8],["ð¸ð½","sint_maarten",8],["ð¸ð°","slovakia",8],["ð¸ð®","slovenia",8],["ð¸ð§","solomon_islands",8],["ð¸ð´","somalia",8],["ð¿ð¦","south_africa",8],["ð¬ð¸","south_georgia_south_sandwich_islands",8],["ð°ð·","kr",8],["ð¸ð¸","south_sudan",8],["ðªð¸","es",8],["ð±ð°","sri_lanka",8],["ð¸ð©","sudan",8],["ð¸ð·","suriname",8],["ð¸ð¿","swaziland",8],["ð¸ðª","sweden",8],["ð¨ð","switzerland",8],["ð¸ð¾","syria",8],["ð¹ð¼","taiwan",8],["ð¹ð¯","tajikistan",8],["ð¹ð¿","tanzania",8],["ð¹ð","thailand",8],["ð¹ð±","timor_leste",8],["ð¹ð¬","togo",8],["ð¹ð°","tokelau",8],["ð¹ð´","tonga",8],["ð¹ð¹","trinidad_tobago",8],["ð¹ð¦","tristan_da_cunha",8],["ð¹ð³","tunisia",8],["ð¹ð·","tr",8],["ð¹ð²","turkmenistan",8],["ð¹ð¨","turks_caicos_islands",8],["ð¹ð»","tuvalu",8],["ðºð¬","uganda",8],["ðºð¦","ukraine",8],["ð¦ðª","united_arab_emirates",8],["ð¬ð§","uk",8],["ð´ó §ó ¢ó ¥ó ®ó §ó ¿","england",8],["ð´ó §ó ¢ó ³ó £ó ´ó ¿","scotland",8],["ð´ó §ó ¢ó ·ó ¬ó ³ó ¿","wales",8],["ðºð¸","us",8],["ð»ð®","us_virgin_islands",8],["ðºð¾","uruguay",8],["ðºð¿","uzbekistan",8],["ð»ðº","vanuatu",8],["ð»ð¦","vatican_city",8],["ð»ðª","venezuela",8],["ð»ð³","vietnam",8],["ð¼ð«","wallis_futuna",8],["ðªð","western_sahara",8],["ð¾ðª","yemen",8],["ð¿ð²","zambia",8],["ð¿ð¼","zimbabwe",8],["ðºð³","united_nations",8],["ð´ââ ï¸","pirate_flag",8]]'),Ha=["face","people","animals_and_nature","food_and_drink","activity","travel_and_places","objects","symbols","flags"];new Map(pc.map(e=>[e[0],{char:e[0],name:e[1],category:Ha[e[2]]}]));const Ei=pc.map(e=>({name:e[1],char:e[0],category:Ha[e[2]]})),ta=new Map,to=new Map;for(let e=0;e<Ei.length;e++){const t=Ei[e];ta.set(t.char,e),to.has(t.category)?to.get(t.category)?.push(t.char):to.set(t.category,[t.char])}const tC=to;function Ua(e){const t=ta.get(vc(e))??ta.get(e);return t===void 0?e:Ei[t].name}function vc(e){return e.length===1?`${e}ï¸`:e}const ol=await zt("emojis"),ut=Wt(Array.isArray(ol)?ol:[]),nC=G(()=>{const e=new Set;for(const t of ut.value)t.category&&t.category!=="null"&&e.add(t.category);return Fn([...Array.from(e),null])}),Tn=new Map;le(ut,e=>{Tn.clear();for(const t of e)Tn.set(t.name,t)},{immediate:!0});function iC(e){ut.value=[e,...ut.value],wt("emojis",ut.value)}function oC(e){ut.value=ut.value.map(t=>e.find(n=>n.name===t.name)??t),wt("emojis",ut.value)}function sC(e){ut.value=ut.value.filter(t=>!e.some(n=>n.name===t.name)),wt("emojis",ut.value)}async function gc(e=!1){const t=Date.now();let n;if(e)n=await Ae("emojis",{});else{const i=await Um("emojis"),o=await zt("lastEmojisFetchedAt");if(o&&t-o<1e3*60*60&&i)return;n=await Ro("emojis",{})}ut.value=n.emojis,wt("emojis",n.emojis),wt("lastEmojisFetchedAt",t)}let Ds;function G5(){if(Ds)return Ds;const e=new Set;for(const n of ut.value)for(const i of n.aliases)e.add(i);const t=Array.from(e);return Ds=t,t}const aC={key:0,style:{"border-radius":"6px","border-bottom":"0.5px solid var(--MI_THEME-div
28ider)"}},rC={key:0,class:"body"},lC=["data-emoji","disabled","onClick"],uC={key:1,style:{"border-radius":"6px","border-bottom":"0.5px solid var(--MI_THEME-divider)"}},cC={key:0,style:{"padding-left":"9px"}},dC={key:1,class:"body"},fC=["data-emoji","disabled","onClick"],na=ne({__name:"MkEmojiPicker.section",props:{emojis:{},disabledEmojis:{},initialShown:{type:Boolean},hasChildSection:{type:Boolean},customEmojiTree:{}},emits:["chosen"],setup(e,{emit:t}){const n=e,i=t,o=G(()=>Array.isArray(n.emojis)?n.emojis:n.emojis.value),s=F(!!n.initialShown);function a(u){const l=u.target,d=l.dataset.emoji;l.title=Ua(d)}function r(u,l){i("chosen",u,l)}return(u,l)=>{const d=we("MkCustomEmoji"),v=we("MkEmoji"),p=Ue("panel");return e.hasChildSection?ve((c(),g("section",uC,[y("header",{class:"_acrylic",onClick:l[1]||(l[1]=C=>s.value=!s.value)},[y("i",{class:f(["toggle ti-fw",s.value?"ti ti-chevron-down":"ti ti-chevron-up"])},null,2),l[5]||(l[5]=ie()),Te(u.$slots,"default"),l[6]||(l[6]=ie(" (",-1)),l[7]||(l[7]=y("i",{class:"ti ti-folder ti-fw"},null,-1)),ie(":"+M(e.customEmojiTree?.length)+" ",1),l[8]||(l[8]=y("i",{class:"ti ti-icons ti-fw"},null,-1)),ie(":"+M(o.value.length)+") ",1)]),s.value?(c(),g("div",cC,[(c(!0),g(pe,null,Re(e.customEmojiTree,C=>(c(),q(na,{key:`custom:${C.category}`,initialShown:e.initialShown,emojis:G(()=>_(ut).filter(D=>D.category===C.category).map(D=>`:${D.name}:`)),hasChildSection:C.children.length!==0,customEmojiTree:C.children,onChosen:r},{default:J(()=>[ie(M(C.category||_(w).ts.other),1)]),_:2},1032,["initialShown","emojis","hasChildSection","customEmojiTree"]))),128))])):I("",!0),s.value?(c(),g("div",dC,[(c(!0),g(pe,null,Re(o.value,C=>(c(),g("button",{key:C,"data-emoji":C,class:"_button item",disabled:e.disabledEmojis?.value.includes(C),onPointerenter:a,onClick:D=>i("chosen",C,D)},[C[0]===":"?(c(),q(d,{key:0,class:"emoji",name:C,normal:!0},null,8,["name"])):(c(),q(v,{key:1,class:"emoji",emoji:C,normal:!0},null,8,["emoji"]))],40,fC))),128))])):I("",!0)])),[[p]]):ve((c(),g("section",aC,[y("header",{class:"_acrylic",onClick:l[0]||(l[0]=C=>s.value=!s.value)},[y("i",{class:f(["toggle ti-fw",s.value?"ti ti-chevron-down":"ti ti-chevron-up"])},null,2),l[2]||(l[2]=ie()),Te(u.$slots,"default"),l[3]||(l[3]=ie(" (",-1)),l[4]||(l[4]=y("i",{class:"ti ti-icons"},null,-1)),ie(":"+M(o.value.length)+") ",1)]),s.value?(c(),g("div",rC,[(c(!0),g(pe,null,Re(o.value,C=>(c(),g("button",{key:C,"data-emoji":C,class:"_button item",disabled:e.disabledEmojis?.value.includes(C),onPointerenter:a,onClick:D=>i("chosen",C,D)},[C[0]===":"?(c(),q(d,{key:0,class:"emoji",name:C,normal:!0},null,8,["name"])):(c(),q(v,{key:1,class:"emoji",emoji:C,normal:!0},null,8,["emoji"]))],40,lC))),128))])):I("",!0)])),[[p]])}}});function mC(e,t,n){if(typeof n=="string"||"char"in n)return!0;const i=n.roleIdsThatCanBeUsedThisEmojiAsReaction??[],o=n.roleIdsThatCanNotBeUsedThisEmojiAsReaction??[];return!(n.localOnly&&t.user.host!==e.host)&&!(n.isSensitive&&(t.reactionAcceptance==="nonSensitiveOnly"||t.reactionAcceptance==="nonSensitiveOnlyForLocalLikeOnlyForRemote"))&&(i.length===0||e.roles.some(s=>i.includes(s.id)))&&(o.length===0||!e.roles.some(s=>o.includes(s.id)))}const hC=["value","placeholder"],pC={class:"result"},vC={key:0,class:"body"},gC=["disabled","title","onClick"],yC={key:1,class:"body"},wC=["title","onClick"],bC={key:0,class:"group index"},_C={key:0},kC={class:"body"},DC=["data-emoji","disabled","onClick"],EC={class:"_acrylic"},CC={class:"body"},AC=["disabled","data-emoji","onClick"],$C={class:"_acrylic"},xC={class:"_acrylic"},TC={class:"tabs"},MC=ne({__name:"MkEmojiPicker",props:{showPinned:{type:Boolean,default:!0},pinnedEmojis:{},maxHeight:{},asDrawer:{type:Boolean},asWindow:{type:Boolean},asReactionPicker:{type:Boolean},targetNote:{}},emits:["chosen","esc"],setup(e,{expose:t,emit:n}){const i=e,o=n,s=Ee("searchEl"),a=Ee("emojisEl"),{emojiPickerScale:r,emojiPickerWidth:u,emojiPickerHeight:l}=A.r,d=z.r.recentlyUsedEmojis,v=G(()=>d.value.map(be).filter(X=>X!==null)),p=G(()=>C.value?.map(be).filter(X=>X!==null)??[]),C=G(()=>i.pinnedEmojis),D=G(()=>r.value),m=G(()=>u.value),k=G(()=>l.value),h=F(""),b=F([]),E=F([]),T=F("index"),P={category:"",children:[]};
28function H(X,te){const se=(X&&X!=="null"?X:"").split(" / ");let K=te;for(const $ of se){const O=K.category?`${K.category} / ${$}`:$;let Le=K.children.find(V=>V.category===O);if(!Le){const V={category:O,children:[]};K.children.push(V),Le=V}K=Le}return K}nC.value.forEach(X=>{X!==null&&H(X,P)}),H("",P),le(h,()=>{if(a.value&&(a.value.scrollTop=0),h.value===""){b.value=[],E.value=[];return}const X=h.value.replace(/:/g,"").toLowerCase(),te=()=>{const $=ut.value,O=new Set,Le=$.find(V=>V.name===X);if(Le&&O.add(Le),X.includes(" ")){const V=X.split(" ");for(const ae of $)if(V.every($e=>ae.name.includes($e))&&(O.add(ae),O.size>=100))break;if(O.size>=100)return O;for(const ae of $)if(V.every($e=>ae.name.includes($e)||ae.aliases.some(Ce=>Ce.includes($e)))&&(O.add(ae),O.size>=100))break}else{if(Tn.has(X)&&O.add(Tn.get(X)),O.size>=100)return O;for(const V of $)if(V.aliases.some(ae=>ae===X)&&(O.add(V),O.size>=100))break;if(O.size>=100)return O;for(const V of $)if(V.name.startsWith(X)&&(O.add(V),O.size>=100))break;if(O.size>=100)return O;for(const V of $)if(V.aliases.some(ae=>ae.startsWith(X))&&(O.add(V),O.size>=100))break;if(O.size>=100)return O;for(const V of $)if(V.name.includes(X)&&(O.add(V),O.size>=100))break;if(O.size>=100)return O;for(const V of $)if(V.aliases.some(ae=>ae.includes(X))&&(O.add(V),O.size>=100))break}return O},se=()=>{const $=Ei,O=new Set,Le=$.find(V=>V.name===X);if(Le&&O.add(Le),X.includes(" ")){const V=X.split(" ");for(const ae of $)if(V.every($e=>ae.name.includes($e))&&(O.add(ae),O.size>=100))break;if(O.size>=100)return O;for(const ae of Object.values(z.s.additionalUnicodeEmojiIndexes))for(const $e of $)if(V.every(Ce=>ae[$e.char].some(Ve=>Ve.includes(Ce)))&&(O.add($e),O.size>=100))break}else{for(const V of $)if(V.name.startsWith(X)&&(O.add(V),O.size>=100))break;if(O.size>=100)return O;for(const V of Object.values(z.s.additionalUnicodeEmojiIndexes))for(const ae of $)if(V[ae.char].some($e=>$e.startsWith(X))&&(O.add(ae),O.size>=100))break;for(const V of $)if(V.name.includes(X)&&(O.add(V),O.size>=100))break;if(O.size>=100)return O;for(const V of Object.values(z.s.additionalUnicodeEmojiIndexes))for(const ae of $)if(V[ae.char].some($e=>$e.includes(X))&&(O.add(ae),O.size>=100))break}return O};b.value=Array.from(te()),E.value=Array.from(se())});function L(X){return!i.targetNote||typeof X=="string"||Object.hasOwn(X,"char")||mC(S,i.targetNote,X)}function R(X,te){return te===""?X.category==="null"||!X.category:X.category===te}function Q(){!["smartphone","tablet"].includes(Qn)&&!rn&&s.value?.focus({preventScroll:!0})}function Z(){a.value&&(a.value.scrollTop=0),h.value=""}function oe(X){return typeof X=="string"?X:Object.hasOwn(X,"char")?X.char:`:${X.name}:`}function be(X){if(X.includes(":")){const te=X.replaceAll(":","");return Tn.get(te)??null}else return X}function ue(X){const te=X.target,se=te.dataset.emoji;te.title=Ua(se)}function ce(X,te){const se=te&&(te.currentTarget??te.target);if(se&&A.s.animation){const $=se.getBoundingClientRect(),O=$.left+se.offsetWidth/2,Le=$.top+se.offsetHeight/2;De(ja,{x:O,y:Le},{},"end")}const K=oe(X);if(o("chosen",K),!C.value?.includes(K)){let $=z.s.recentlyUsedEmojis;$=$.filter(O=>O!==K),$.unshift(K),z.set("recentlyUsedEmojis",$.splice(0,32))}}function Fe(){h.value=s.value?.value.trim()??""}function j(X){const te=X.clipboardData?.getData("text")??"";Me(te)&&X.preventDefault()}function me(X){X.isComposing||X.key==="Process"||X.keyCode===229||(X.key==="Enter"&&(X.preventDefault(),X.stopPropagation(),Me()),X.key==="Escape"&&(X.preventDefault(),X.stopPropagation(),o("esc")))}function Me(X){if(X==null&&(X=h.value),X==null||typeof X!="string")return;const te=X.replace(/:/g,""),se=Tn.get(te);if(se)return ce(se),!0;const K=Ei.find($=>$.char===te||$.name===te);if(K)return ce(K),!0;if(b.value.length>0)return ce(b.value[0]),!0;if(E.value.length>0)return ce(E.value[0]),!0}return je(()=>{Q()}),t({focus:Q,reset:Z}),(X,te)=>{const se=we("MkCustomEmoji"),K=we("MkEmoji");return c(),g("div",{class:f(["omfetrab",["s"+D.value,"w"+m.value,"h"+k.value,{asDrawer:e.asDrawer,asWindow:e.asWindow}]]),style:Ge({maxHeight:e.maxHeight?e.maxHeight+"px":void 0})},[y("input",{ref_key:"searchEl",ref:s,value:h.value,class:f(["mk-input-search search",{filled:h.value!=null&&h.value!=""}]),"data-prevent-emoji-insert":"",placeholder:_(w).ts.search,type:"text",autocapitalize:"off",onInput:te[0]||(te[0]=$=>Fe()),onPaste:ge(j,["stop"]),onKeydown:me}
28,null,42,hC),y("div",{ref_key:"emojisEl",ref:a,class:"emojis",tabindex:"-1"},[y("section",pC,[b.value.length>0?(c(),g("div",vC,[(c(!0),g(pe,null,Re(b.value,$=>(c(),g("button",{key:$.name,class:"_button item",disabled:!L($),title:$.name,tabindex:"0",onClick:O=>ce($,O)},[W(se,{class:"emoji",name:$.name},null,8,["name"])],8,gC))),128))])):I("",!0),E.value.length>0?(c(),g("div",yC,[(c(!0),g(pe,null,Re(E.value,$=>(c(),g("button",{key:$.name,class:"_button item",title:$.name,tabindex:"0",onClick:O=>ce($,O)},[W(K,{class:"emoji",emoji:$.char},null,8,["emoji"])],8,wC))),128))])):I("",!0)]),T.value==="index"?(c(),g("div",bC,[e.showPinned&&C.value&&C.value.length>0?(c(),g("section",_C,[y("div",kC,[(c(!0),g(pe,null,Re(p.value,$=>(c(),g("button",{key:oe($),"data-emoji":oe($),class:"_button item",disabled:!L($),tabindex:"0",onPointerenter:ue,onClick:O=>ce($,O)},[typeof $!="string"&&!Object.hasOwn($,"char")?(c(),q(se,{key:0,class:"emoji",name:oe($),normal:!0},null,8,["name"])):(c(),q(K,{key:1,class:"emoji",emoji:oe($),normal:!0},null,8,["emoji"]))],40,DC))),128))])])):I("",!0),y("section",null,[y("header",EC,[te[7]||(te[7]=y("i",{class:"ti ti-clock ti-fw"},null,-1)),ie(" "+M(_(w).ts.recentUsed),1)]),y("div",CC,[(c(!0),g(pe,null,Re(v.value,$=>(c(),g("button",{key:oe($),class:"_button item",disabled:!L($),"data-emoji":oe($),onPointerenter:ue,onClick:O=>ce($,O)},[typeof $!="string"&&!Object.hasOwn($,"char")?(c(),q(se,{key:0,class:"emoji",name:oe($),normal:!0},null,8,["name"])):(c(),q(K,{key:1,class:"emoji",emoji:oe($),normal:!0},null,8,["emoji"]))],40,AC))),128))])])])):I("",!0),te[1]||(Pi(-1,!0),(te[1]=y("div",{class:"group"},[y("header",$C,M(_(w).ts.customEmojis),1),(c(!0),g(pe,null,Re(P.children,$=>(c(),q(na,{key:`custom:${$.category}`,initialShown:!1,emojis:G(()=>_(ut).filter(O=>R(O,$.category)).map(O=>`:${O.name}:`)),disabledEmojis:G(()=>_(ut).filter(O=>R(O,$.category)).filter(O=>!L(O)).map(O=>`:${O.name}:`)),hasChildSection:$.children.length!==0,customEmojiTree:$.children,onChosen:ce},{default:J(()=>[ie(M($.category||_(w).ts.other),1)]),_:2},1032,["emojis","disabledEmojis","hasChildSection","customEmojiTree"]))),128))])).cacheIndex=1,Pi(1),te[1]),te[2]||(Pi(-1,!0),(te[2]=y("div",{class:"group"},[y("header",xC,M(_(w).ts.emoji),1),(c(!0),g(pe,null,Re(_(Ha),$=>(c(),q(na,{key:$,emojis:_(tC).get($)??[],hasChildSection:!1,onChosen:ce},{default:J(()=>[ie(M($),1)]),_:2},1032,["emojis"]))),128))])).cacheIndex=2,Pi(1),te[2])],512),y("div",TC,[y("button",{class:f(["_button tab",{active:T.value==="index"}]),onClick:te[3]||(te[3]=$=>T.value="index")},[...te[8]||(te[8]=[y("i",{class:"ti ti-asterisk ti-fw"},null,-1)])],2),y("button",{class:f(["_button tab",{active:T.value==="custom"}]),onClick:te[4]||(te[4]=$=>T.value="custom")},[...te[9]||(te[9]=[y("i",{class:"ti ti-mood-happy ti-fw"},null,-1)])],2),y("button",{class:f(["_button tab",{active:T.value==="unicode"}]),onClick:te[5]||(te[5]=$=>T.value="unicode")},[...te[10]||(te[10]=[y("i",{class:"ti ti-leaf ti-fw"},null,-1)])],2),y("button",{class:f(["_button tab",{active:T.value==="tags"}]),onClick:te[6]||(te[6]=$=>T.value="tags")},[...te[11]||(te[11]=[y("i",{class:"ti ti-hash ti-fw"},null,-1)])],2)])],6)}}}),IC=re(MC,[["__scopeId","data-v-44cafd71"]]),SC=ne({__name:"MkEmojiPickerWindow",props:{src:{},showPinned:{type:Boolean,default:!0},pinnedEmojis:{},asReactionPicker:{type:Boolean},targetNote:{}},emits:["chosen","closed"],setup(e,{emit:t}){const n=t;function i(o){n("chosen",o)}return(o,s)=>(c(),q(lc,{ref:"window",initialWidth:300,initialHeight:290,canResize:!0,mini:!0,front:!0,allowFocusTrapInteraction:"",onClosed:s[0]||(s[0]=a=>n("closed"))},{default:J(()=>[W(IC,{class:f(o.$style.picker),showPinned:e.showPinned,pinnedEmojis:e.pinnedEmojis,asReactionPicker:e.asReactionPicker,targetNote:e.targetNote,asWindow:"",onChosen:i},null,8,["class","showPinned","pinnedEmojis","asReactionPicker","targetNote"])]),_:1},512))}}),FC="xm3jc",BC={picker:FC},PC={$style:BC},RC=re(SC,[["__cssModules",PC]]),LC=["href","target","rel","download"],NC=["onClick"],OC=["disabled","onClick"],jC=["disabled","onMouseenter","onKeydown","onClick"],VC=["onClick"],zC=["onMouseenter","onKeydown","onClick"],HC=["onClick"],UC={ke
28y:0},Es=new WeakMap,qC=ne({__name:"MkMenu",props:{items:{},asDrawer:{type:Boolean},align:{},width:{},maxHeight:{}},emits:["close","hide"],setup(e,{emit:t}){const n=de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.RIX93BVb.js"),__vite__mapDeps([461,2,3,4,462]))),i=e,o=t,s=rn,a=tt("isNestingMenu",!1),r=Ee("itemsEl"),u=F(),l=Ee("child"),d={"up|k|shift+tab":{allowRepeat:!0,callback:()=>Q()},"down|j|tab":{allowRepeat:!0,callback:()=>Z()},esc:{allowRepeat:!0,callback:()=>L(!1)}},v=F();let p=rn||i.asDrawer;le(()=>i.items,()=>{const j=[...i.items].filter(me=>me!==void 0);for(let me=0;me<j.length;me++){const Me=j[me];"then"in Me&&(j[me]={type:"pending"},Me.then(X=>{u.value?.[me]&&(u.value[me]=X)}))}u.value=j},{immediate:!0});const C=F(),D=Wt();function m(){C.value=null,v.value=null}function k(){m(),L(!0)}let h=null;function b(){h=window.setTimeout(()=>{m()},300)}function E(){h&&window.clearTimeout(h)}async function T(j,me){const Me=Object.keys(j.options).map(X=>{const te=j.options[X];return{type:"radioOption",text:X,action:()=>{j.ref=te},active:G(()=>j.ref===te)}});i.asDrawer?(st(Me,me.currentTarget??me.target).finally(()=>{L(!1)}),o("hide")):(D.value=me.currentTarget??me.target,C.value=Me,v.value=j)}async function P(j,me){me.stopPropagation();const Me=await(async()=>Es.has(j)?Es.get(j):typeof j.children=="function"?Promise.resolve(j.children()):j.children)();Es.set(j,Me),i.asDrawer?(st(Me,me.currentTarget??me.target).finally(()=>{L(!1)}),o("hide")):(D.value=me.currentTarget??me.target,C.value=Me,v.value=j)}function H(j,me,Me=!0){j(me),Me&&L(!0)}function L(j=!1){Fe(),Pe(()=>{m(),o("close",j)})}function R(j){j.disabled!==void 0&&(typeof j.disabled=="boolean"?j.disabled:j.disabled.value)||(j.ref=!j.ref)}function Q(){if(ce||!r.value?.contains(window.document.activeElement))return;const j=Array.from(r.value.children).filter(Jn),me=j.findIndex(te=>te===window.document.activeElement),Me=me!==-1&&me!==0?me-1:j.length-1;(j.at(Me)??r.value).focus()}function Z(){if(ce||!r.value?.contains(window.document.activeElement))return;const j=Array.from(r.value.children).filter(Jn),me=j.findIndex(te=>te===window.document.activeElement),Me=me!==-1&&me!==j.length-1?me+1:0;(j.at(Me)??r.value).focus()}const oe=j=>{ce||r.value?.parentElement?.contains(Us(j.target))||Pe(()=>{r.value!=null&&Jn(r.value)&&(r.value.focus({preventScroll:!0}),Pe(()=>Z()))})},be=j=>{ce||D.value?.contains(Us(j.target))||l.value?.checkHit(j)||m()},ue=()=>{a||window.document.addEventListener("focusin",oe,{passive:!0}),window.document.addEventListener("mousedown",be,{passive:!0})};let ce=!1;const Fe=()=>{ce=!0,a||window.document.removeEventListener("focusin",oe),window.document.removeEventListener("mousedown",be)};return je(()=>{ue(),a||Pe(()=>r.value?.focus({preventScroll:!0}))}),jt(()=>{Fe()}),(j,me)=>{const Me=we("MkEllipsis"),X=we("MkAvatar"),te=we("MkA"),se=we("MkUserName"),K=Ue("hotkey");return c(),g("div",{role:"menu",class:f({[j.$style.root]:!0,[j.$style.center]:e.align==="center",[j.$style.big]:_(s),[j.$style.asDrawer]:e.asDrawer,[j.$style.widthSpecified]:e.width!=null}),onFocusinPassive:ge(()=>{},["stop"])},[ve((c(),g("div",{ref_key:"itemsEl",ref:r,tabindex:"0",class:f(["_popup _shadow",j.$style.menu]),style:Ge({width:e.width&&!e.asDrawer?`${e.width}px`:"",maxHeight:e.maxHeight?`min(${e.maxHeight}px, calc(100dvh - 32px))`:"calc(100dvh - 32px)"}),onKeydown:ge(()=>{},["stop"]),onContextmenu:ge(()=>{},["self","prevent"])},[(c(!0),g(pe,null,Re(u.value??[],$=>(c(),g(pe,null,[$.type==="divider"?(c(),g("div",{key:0,role:"separator",tabindex:"-1",class:f(j.$style.divider)},null,2)):$.type==="label"?(c(),g("div",{key:1,role:"menuitem",tabindex:"-1",class:f([j.$style.label])},[y("span",null,M($.text),1)],2)):$.type==="pending"?(c(),g("span",{key:2,role:"menuitem",tabindex:"0",class:f([j.$style.pending,j.$style.item])},[y("span",null,[W(Me)])],2)):$.type==="component"?(c(),g("div",{key:3,role:"menuitem",tabindex:"-1",class:f([j.$style.componentItem])},[(c(),q(kt($.component),Jt({ref_for:!0},$.props),null,16))],2)):$.type==="link"?(c(),q(te,{key:4,role:"menuitem",tabindex:"0",class:f(["_button",j.$style.item]),to:$.to,onClickPassive:me[0]||(me[0]=O=>L(!0)),onMouseenterPassive:b,onMouseleavePassive:E},{default:J(()=>[$.icon?(c(),g("i",{key:0,class:f(["ti-fw",[j.$style.icon,$.icon]])},null,2)):I("",!0),$.avatar?(c(),q(X,{key:1,user:$.avatar,class:f(j.$style.avatar)},null,8,["user","class"])):I("",!0),y("div",{class:f(j.$style.item_content)},[y("div",{class:f(j.$style.item_content_text)},[y("div",{class:f(j.$style.item_content_text_title)},M($.text),3),$.caption?(c(),g("div",{key:0,class:f(j.$style.item_content_text_caption)},M($.caption),3)):I("",!0)],2),$.indicate?(c(),g("span",{key:0,class:f([j.$style.indicator,"_blink"])},[...me[2]||(me[2]=[y("i",{class:"_indicatorCircle"},null,-1)])],2)):I("",!0)],2)]),_:2},1032,["class","to"])):$.type==="a"?(c(),g("a",{key:5,role:"menuitem",tabindex:"0",class:f(["_button",j.$style.item]),href:$.href,target:$.target,rel:$.target==="_blank"?"noopener noreferrer":void 0,download:$.download,onClickPassive:me[1]||(me[1]=O=>L(!0)),onMouseenterPassive:b,onMouseleavePassive:E},[$.icon?(c(),g("i",{key:0,class:f(["ti-fw",[j.$style.icon,$.icon]])},null,2)):I("",!0),y("div",{class:f(j.$style.item_content)},[y("div",{class:f(j.$style.item_content_text)},[y("div",{class:f(j.$style.item_content_text_title)},M($.text),3),$.caption?(c(),g("div",{key:0,class:f(j.$style.item_content_text_caption)},M($.caption),3)):I("",!0)],2),$.indicate?(c(),g("span",{key:0,class:f([j.$style.indicator,"_blink"])},[...me[3]||(me[3]=[y("i",{class:"_indicatorCircle"},null,-1)])],2)):I("",!0)],2)],42,LC)):$.type==="user"?(c(),g("button",{key:6,role:"menuitem",tabindex:"0",class:f(["_button",j.$style.item,{[j.$style.active]:$.active}]),onClick:ge(O=>$.active?L(!1):H($.action,O),["prevent"]),onMouseenterPassive:b,onMouseleavePassive:E},[W(X,{user:$.user,class:f(j.$style.avatar)},null,8,["user","class"]),W(se,{user:$.user},null,8,["user"]),$.indicate?(c(),g("div",{key:0,class:f(j.$style.item_content)},[y("span",{class:f([j.$style.indicator,"_blink"])},[...me[4]||(me[4]=[y("i",{class:"_indicatorCircle"},null,-1)])],2)],2)):I("",!0)],42,NC)):$.type==="switch"?(c(),g("button",{key:7,role:"menuitemcheckbox",tabindex:"0",class:f(["_button",j.$style.item]),disabled:_($.disabled),onClick:ge(O=>R($),["prevent"]),onMouseenterPassive:b,onMouseleavePassive:E},[$.icon?(c(),g("i",{key:0,class:f(["ti-fw",[j.$style.icon,$.icon]])},null,2)):(c(),q(Ys,{key:1,class:f(j.$style.switchButton),checked:$.ref,disabled:$.disabled,onToggle:O=>R($)},null,8,["class","checked","disabled","onToggle"])),y("div",{class:f(j.$style.item_content)},[y("div",{class:f([j.$style.item_content_text,{[j.$style.switchText]:!$.icon}])},[y("div",{class:f(j.$style.item_content_text_title)},M($.text),3),$.caption?(c(),g("div",{key:0,class:f(j.$style.item_content_text_caption)},M($.caption),3)):I("",!0)],2),$.icon?(c(),q(Ys,{key:0,class:f([j.$style.switchButton,j.$style.caret]),checked:$.ref,disabled:$.disabled,onToggle:O=>R($)},null,8,["class","checked","disabled","onToggle"])):I("",!0)],2)],42,OC)):$.type==="radio"?(c(),g("button",{key:8,role:"menuitem",tabindex:"0",class:f(["_button",j.$style.item,j.$style.parent,{[j.$style.active]:v.value===$}]),disabled:_($.disabled),onMouseenter:ge(O=>_(p)?null:T($,O),["prevent"]),onKeydown:so(ge(O=>_(p)?null:T($,O),["prevent"]),["enter"]),onClick:ge(O=>_(p)?T($,O):null,["prevent"])},[$.icon?(c(),g("i",{key:0,class:f(["ti-fw",[j.$style.icon,$.icon]]),style:{"pointer-events":"none"}},null,2)):I("",!0),y("div",{class:f(j.$style.item_content)},[y("div",{class:f(j.$style.item_content_text),style:{"pointer-events":"none"}},[y("div",{class:f(j.$style.item_content_text_title)},M($.text),3),$.caption?(c(),g("div",{key:0,class:f(j.$style.item_content_text_caption)},M($.caption),3)):I("",!0)],2),y("span",{class:f(j.$style.caret),style:{"pointer-events":"none"}},[...me[5]||(me[5]=[y("i",{class:"ti ti-chevron-right ti-fw"}
28,null,-1)])],2)],2)],42,jC)):$.type==="radioOption"?(c(),g("button",{key:9,role:"menuitemradio",tabindex:"0",class:f(["_button",j.$style.item,j.$style.radio,{[j.$style.active]:_($.active)}]),onClick:ge(O=>_($.active)?null:H($.action,O,!1),["prevent"]),onMouseenterPassive:b,onMouseleavePassive:E},[y("div",{class:f(j.$style.icon)},[y("span",{class:f([j.$style.radioIcon,{[j.$style.radioChecked]:_($.active)}])},null,2)],2),y("div",{class:f(j.$style.item_content)},[y("div",{class:f(j.$style.item_content_text)},[y("div",{class:f(j.$style.item_content_text_title)},M($.text),3),$.caption?(c(),g("div",{key:0,class:f(j.$style.item_content_text_caption)},M($.caption),3)):I("",!0)],2)],2)],42,VC)):$.type==="parent"?(c(),g("button",{key:10,role:"menuitem",tabindex:"0",class:f(["_button",j.$style.item,j.$style.parent,{[j.$style.active]:v.value===$}]),onMouseenter:ge(O=>_(p)?null:P($,O),["prevent"]),onKeydown:so(ge(O=>_(p)?null:P($,O),["prevent"]),["enter"]),onClick:ge(O=>_(p)?P($,O):null,["prevent"])},[$.icon?(c(),g("i",{key:0,class:f(["ti-fw",[j.$style.icon,$.icon]]),style:{"pointer-events":"none"}},null,2)):I("",!0),y("div",{class:f(j.$style.item_content)},[y("div",{class:f(j.$style.item_content_text),style:{"pointer-events":"none"}},[y("div",{class:f(j.$style.item_content_text_title)},M($.text),3),$.caption?(c(),g("div",{key:0,class:f(j.$style.item_content_text_caption)},M($.caption),3)):I("",!0)],2),y("span",{class:f(j.$style.caret),style:{"pointer-events":"none"}},[...me[6]||(me[6]=[y("i",{class:"ti ti-chevron-right ti-fw"},null,-1)])],2)],2)],42,zC)):(c(),g("button",{key:11,role:"menuitem",tabindex:"0",class:f(["_button",j.$style.item,{[j.$style.danger]:$.danger,[j.$style.active]:_($.active)}]),onClick:ge(O=>_($.active)?L(!1):H($.action,O),["prevent"]),onMouseenterPassive:b,onMouseleavePassive:E},[$.icon?(c(),g("i",{key:0,class:f(["ti-fw",[j.$style.icon,$.icon]])},null,2)):I("",!0),$.avatar?(c(),q(X,{key:1,user:$.avatar,class:f(j.$style.avatar)},null,8,["user","class"])):I("",!0),y("div",{class:f(j.$style.item_content)},[y("div",{class:f(j.$style.item_content_text)},[y("div",{class:f(j.$style.item_content_text_title)},M($.text),3),$.caption?(c(),g("div",{key:0,class:f(j.$style.item_content_text_caption)},M($.caption),3)):I("",!0)],2),$.indicate?(c(),g("span",{key:0,class:f([j.$style.indicator,"_blink"])},[...me[7]||(me[7]=[y("i",{class:"_indicatorCircle"},null,-1)])],2)):I("",!0)],2)],42,HC))],64))),256)),u.value==null||u.value.length===0?(c(),g("span",{key:0,tabindex:"-1",class:f([j.$style.none,j.$style.item])},[y("span",null,M(_(w).ts.none),1)],2)):I("",!0)],38)),[[K,d]]),C.value?(c(),g("div",UC,[W(_(n),{ref_key:"child",ref:l,items:C.value,targetElement:D.value,rootElement:r.value,onActioned:k,onClosed:m},null,8,["items","targetElement","rootElement"])])):I("",!0)],34)}}}),WC="x7rzo",KC="xkCzm",JC="xinY1",GC="xunvs",YC="xoBDM",XC="xBCwC",QC="xqTmZ",ZC="xh8pZ",eA="xzo34",tA="x3tcY",nA="xlW0E",iA="x3wP5",oA="xlXev",sA="xbLwJ",aA="x6Ns0",rA="xD1rz",lA="xwnRi",uA="xgh84",cA="xhJ9v",dA="xEbZQ",fA="xzElu",mA="xzypW",hA="xw5W9",pA="x853c",vA="xpxDN",gA="xkpm0",yA="x5sBw",wA={root:WC,center:KC,menu:JC,item:GC,asDrawer:YC,widthSpecified:XC,big:QC,icon:ZC,divider:eA,active:tA,danger:nA,radio:iA,parent:oA,pending:sA,none:aA,item_content:rA,item_content_text:lA,item_content_text_title:uA,item_content_text_caption:cA,switchButton:dA,switchText:fA,caret:mA,avatar:hA,indicator:pA,label:vA,radioIcon:gA,radioChecked:yA},bA={$style:wA},yc=re(qC,[["__cssModules",bA]]),_A=ne({__name:"MkPopupMenu",props:{items:{},align:{},width:{},src:{},returnFocusTo:{}},emits:["closed","closing"],setup(e,{emit:t}){const n=t,i=Ee("modal"),o=F(!0),s=F(!1);function a(){v()}function r(){n("closing")}function u(){v(),s.value&&n("closed")}function l(){s.value||n("closed")}function d(){o.value=!1,s.value=!0,i.value?.close()}function v(){o.value=!1,i.value?.close()}return(p,C)=>(c(),q(Si,{ref_key:"modal",ref:i,manualShowing:o.value,zPriority:"high",src:e.src,transparentBg:!0,returnFocusTo:e.returnFocusTo,onClick:a,onClose:r,onClosed:l},{default:J(({type:D,maxHeight:m})=>
28[W(yc,{items:e.items,align:e.align,width:e.width,"max-height":m,asDrawer:D==="drawer",returnFocusTo:e.returnFocusTo,class:f({[p.$style.drawer]:D==="drawer"}),onClose:u,onHide:d},null,8,["items","align","width","max-height","asDrawer","returnFocusTo","class"])]),_:1},8,["manualShowing","src","returnFocusTo"]))}}),kA="xhVuk",DA={drawer:kA},EA={$style:DA},CA=re(_A,[["__cssModules",EA]]),Hi=16,AA=ne({__name:"MkContextMenu",props:{items:{},ev:{}},emits:["closed"],setup(e,{emit:t}){const n=e,i=t,o=Ee("rootEl"),s=F(si("high"));je(()=>{let r=n.ev.pageX+1,u=n.ev.pageY+1;const l=o.value.offsetWidth,d=o.value.offsetHeight;r+l-window.scrollX>=window.innerWidth-Hi&&(r=window.innerWidth-Hi-l+window.scrollX),u+d-window.scrollY>=window.innerHeight-Hi&&(u=window.innerHeight-Hi-d+window.scrollY),u<0&&(u=0),r<0&&(r=0),o.value&&(o.value.style.top=`${u}px`,o.value.style.left=`${r}px`),window.document.body.addEventListener("mousedown",a)}),jt(()=>{window.document.body.removeEventListener("mousedown",a)});function a(r){!rc(o.value,r.target)&&o.value!==r.target&&i("closed")}return(r,u)=>(c(),q(bt,{appear:"",enterActiveClass:_(A).s.animation?r.$style.transition_fade_enterActive:"",leaveActiveClass:_(A).s.animation?r.$style.transition_fade_leaveActive:"",enterFromClass:_(A).s.animation?r.$style.transition_fade_enterFrom:"",leaveToClass:_(A).s.animation?r.$style.transition_fade_leaveTo:""},{default:J(()=>[y("div",{ref_key:"rootEl",ref:o,class:f(r.$style.root),style:Ge({zIndex:s.value}),onContextmenu:ge(()=>{},["prevent","stop"])},[W(yc,{items:e.items,align:"left",onClose:u[0]||(u[0]=l=>i("closed"))},null,8,["items"])],38)]),_:1},8,["enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass"]))}}),$A="xlU4G",xA="xms3Z",TA="xg6wD",MA="xl6Jd",IA="xsGnU",SA={transition_fade_enterActive:$A,transition_fade_leaveActive:xA,transition_fade_enterFrom:TA,transition_fade_leaveTo:MA,root:IA},FA={$style:SA},BA=re(AA,[["__cssModules",FA]]);function PA(){if(S&&S.movedTo)throw et({type:"error",title:w.ts.accountMovedShort,text:w.ts.operationForbidden}),new Error("account moved")}const Cs=F(0),oi=((e,t={},n,i,o,s)=>{const a=Ae(e,t,n);return wc(a,i,(r=>RA(r,e,s))),a});async function RA(e,t,n){let i,o=e.message+` 29`+e.id;if(e.code==="INTERNAL_ERROR"){i=w.ts.internalServerError,o=w.ts.internalServerErrorDescription;const s=new Date().toISOString(),{result:a}=await ia({type:"error",title:i,text:o,details:e.info,actions:[{value:"ok",text:w.ts.gotIt,primary:!0},{value:"copy",text:w.ts.copyErrorInfo}]});a==="copy"&&(Dt(`Endpoint: ${t} 30Info: ${JSON.stringify(e.info)} 31Date: ${s}`),qa());return}else e.code==="RATE_LIMIT_EXCEEDED"?(i=w.ts.cannotPerformTemporary,o=w.ts.cannotPerformTemporaryDescription):e.code==="INVALID_PARAM"?(i=w.ts.invalidParamError,o=w.ts.invalidParamErrorDescription):e.code==="ROLE_PERMISSION_DENIED"?(i=w.ts.permissionDeniedError,o=w.ts.permissionDeniedErrorDescription):e.code?.startsWith("TOO_MANY_")&&(i=w.ts.youCannotCreateAnymore,o=`${w.ts.error}: ${e.id}`);!e.id&&(e.statusCode??0)>499?(i=w.ts.gotInvalidResponseError,o=w.ts.gotInvalidResponseErrorDescription):n&&n[e.id]!=null&&(i=n[e.id].title,o=n[e.id].text),e.id&&!i?i=w.ts.somethingHappened:i||(i=w.ts.somethingHappened,o=e.message),et({type:"error",title:i,text:o,details:e.id?e.info:e})}function wc(e,t,n,i){const o=F(!0),s=F(!1);return e.then(a=>{t?(o.value=!1,t(a)):(s.value=!0,window.setTimeout(()=>{o.value=!1},1e3))}).catch(a=>{o.value=!1,n?n(a):et({type:"error",title:a.message,text:a.id,details:a.info})}),De(Ho,{success:s,showing:o,text:i},{},"closed"),e}let LA=0;const no=F([]),sl={veryLow:5e5,low:1e6,middle:2e6,high:3e6};function si(e="low"){return sl[e]+=100,sl[e]}async function De(e,t,n={},i){Fn(e);const o=++LA,s=()=>{window.setTimeout(()=>{no.value=no.value.filter(r=>r.id!==o)},0)},a={component:e,props:t,events:i?{...n,[i]:s}:n,id:o};return no.value.push(a),{dispose:s}}function al(e){De(KD,{initialPath:e},{},"closed")}function NA(e){De(iE,{message:e},{},"closed")}function et(e){return new Promise(async t=>{await De(Rn,e,{done:()=>{t()}},"closed")})}function ft(e){return new Promise(async t=>{await De(Rn,{...e,showCancelButton:!0},{done:n=>{t(n||{canceled:!0})}},"closed")})}function ia(e){return new Promise(async t=>{await De(Rn,{...e,actions:e.actions.map(n=>({text:n.text,primary:n.primary,danger:n.danger,callback:()=>{t({canceled:!1,result:n.value})}}))},{done:n=>{t(n||{canceled:!0})}},"closed")})}function qo(e){return new Promise(async t=>{await De(Rn,{title:e.title??void 0,text:e.text??void 0,input:{type:e.type,placeholder:e.placeholder,autocomplete:e.autocomplete,default:e.default??null,minLength:e.minLength,maxLength:e.maxLength}},{done:n=>{t(typeof n.result=="string"?n:{canceled:!0,result:void 0})}},"closed")})}function OA(e){return new Promise(async t=>{await De(Rn,{title:e.title??void 0,text:e.text??void 0,input:{type:"number",placeholder:e.placeholder,autocomplete:e.autocomplete,default:e.default??null,min:e.min,max:e.max,step:e.step}},{done:n=>{t(n||{canceled:!0})}},"closed")})}function jA(e){const t=e.default??new Date;return t.setMinutes(t.getMinutes()-t.getTimezoneOffset()),new Promise(async n=>{await De(Rn,{title:e.title??void 0,text:e.text??void 0,input:{type:"datetime-local",placeholder:e.placeholder,default:t.toISOString().slice(0,-5)}},{done:i=>{const o=i?new Date(i.result):void 0;o&&!isNaN(o.getTime())?n({result:o,canceled:!1}):n({result:void 0,canceled:!0})}},"closed")})}function Y5(){return new Promise(async e=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CaZ9uXYR.js"),__vite__mapDeps([463,2,3,4]))),{},{done:t=>{e(t?{canceled:!1,result:t}:{canceled:!0,result:void 0})}},"closed")})}function Wo(e){return new Promise(async t=>{await De(Rn,{title:e.title??void 0,text:e.text??void 0,select:{items:e.items.filter(n=>n!==void 0),default:e.default??null}},{done:n=>{t(n||{canceled:!0})}},"closed")})}function qa(){return new Promise(async e=>{const t=F(!0);window.setTimeout(()=>{t.value=!1},1e3),await De(Ho,{success:!0,showing:t},{done:()=>e()},"closed")})}function Wa(e){return new Promise(async t=>{const n=F(!0);await De(Ho,{success:!1,showing:n,text:e},{done:()=>t()},"closed")})}function VA(e,t){return new Promise(async n=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.D4nqQr0D.js"),__vite__mapDeps([464,212,2,213,194,195,196,197,3,4,465]))),{title:e,form:t},{done:i=>{n(i)}},"closed")})}async function rl(e={}){return new Promise(async t=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BURQ93gs.js"),__vite__mapDeps([466,181,2,182,3,4,467]))),{includeSelf:e.includeSelf,localOnly:e.localOnly},{ok:n=>{t(n)}},"closed")})}async function zA(e){return new Promise(async t=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.TXIQu6YC.js"),__vite__mapDeps([468,422,2,204,423,3,4]))),{type:"file",multiple:e},{done:n=>{n&&t(n)}},"closed")})}async function HA(e){return new Promise(async t=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.TXIQu6YC.js"),__vite__mapDeps([468,422,2,204,423,3,4]))),{type:"folder",multiple:e},{done:n=>{n&&t(n)}},"closed")})}async function X5(e){return new Promise(async t=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.B8rp6-TK.js"),__vite__mapDeps([469,250,2,251,3,4,470]))),e,{done:n=>{t({canceled:!1,result:n})},close:()=>{t({canceled:!0,result:void 0})}},"closed")})}async function Q5(e,t){return new Promise(async n=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BrqbhBwn.js"),__vite__mapDeps([471,2,3,4,472]))),{src:e,...t},{done:i=>{n(i)}},"closed")})}async function UA(e,t){return new Promise(async n=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BqJUqI0c.js"),__vite__mapDeps([473,2,3,4,474]))),{file:e,aspectRatio:t.aspectRatio,uploadFolder:t.uploadFolder},{ok:i=>
31{n(i)}},"closed")})}let Ui=null,di=null;async function qA(e,t,n){if(Ui)return;di=n;const i=G(()=>{const s=A.r.emojiPalettes.value;if(s.length===0)return[];const a=(t.asReactionPicker?A.r.emojiPaletteForReaction:A.r.emojiPaletteForMain).value;return(a==null?s[0]:s.find(u=>u.id===a)??s[0])?.emojis??[]});for(const s of Array.from(window.document.querySelectorAll("textarea, input")))s.addEventListener("focus",()=>{di=s});const o=new MutationObserver(s=>{for(const a of s)for(const r of Array.from(a.addedNodes).filter(u=>u instanceof HTMLElement))for(const u of Array.from(r.querySelectorAll("textarea, input")).filter(l=>l.dataset.preventEmojiInsert==null))window.document.activeElement===u&&(di=u),u.addEventListener("focus",()=>{di=u})});o.observe(window.document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1}),Ui=await De(RC,{src:e,pinnedEmojis:i,...t},{chosen:s=>{Gi(di,s)},closed:()=>{Ui.dispose(),Ui=null,o.disconnect()}})}function st(e,t,n){t instanceof HTMLElement||(t=null);let i=In(t)??In(window.document.activeElement);return new Promise(o=>Pe(async()=>{const{dispose:s}=await De(CA,{items:e,src:t,width:n?.width,align:n?.align,viaKeyboard:n?.viaKeyboard,returnFocusTo:i},{closed:()=>{o(),s(),i=null},closing:()=>{n?.onClosing?.()}})}))}function bc(e,t){if(A.s.contextMenu==="native"||A.s.contextMenu==="appWithShift"&&!t.shiftKey)return Promise.resolve();let n=In(t.currentTarget??t.target)??In(window.document.activeElement);return t.preventDefault(),new Promise(i=>Pe(async()=>{const{dispose:o}=await De(BA,{items:e,ev:t},{closed:()=>{i(),o(),n!=null&&(_i(n,!0,!1),n=null)}})}))}async function Ci(e={}){return await Pn({openOnRemote:e.initialText||e.initialNote?{type:"share",params:{text:e.initialText??e.initialNote?.text??"",visibility:e.initialVisibility??e.initialNote?.visibility??"public",localOnly:e.initialLocalOnly||e.initialNote?.localOnly?"1":"0"}}:void 0}),PA(),new Promise(async t=>{const{dispose:n}=await De(kk,e,{closed:()=>{t(),n()}})})}const Z5=new xi;class WA{el;user;showTimer;hideTimer;checkTimer;promise;constructor(t,n){this.el=t,this.user=n,this.show=this.show.bind(this),this.close=this.close.bind(this),this.onMouseover=this.onMouseover.bind(this),this.onMouseleave=this.onMouseleave.bind(this),this.onClick=this.onClick.bind(this),this.attach=this.attach.bind(this),this.detach=this.detach.bind(this),this.attach()}async show(){if(!window.document.body.contains(this.el)||this.promise)return;const t=F(!0);await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BnYQjG7v.js"),__vite__mapDeps([475,2,21,22,23,141,3,4,476]))),{showing:t,q:this.user,source:this.el},{mouseover:()=>{window.clearTimeout(this.hideTimer)},mouseleave:()=>{window.clearTimeout(this.showTimer),this.hideTimer=window.setTimeout(this.close,500)}},"closed"),this.promise={cancel:()=>{t.value=!1}},this.checkTimer=window.setInterval(()=>{window.document.body.contains(this.el)||(window.clearTimeout(this.showTimer),window.clearTimeout(this.hideTimer),this.close())},1e3)}close(){this.promise&&(window.clearInterval(this.checkTimer),this.promise.cancel(),this.promise=null)}onMouseover(){window.clearTimeout(this.showTimer),window.clearTimeout(this.hideTimer),this.showTimer=window.setTimeout(this.show,500)}onMouseleave(){window.clearTimeout(this.showTimer),window.clearTimeout(this.hideTimer),this.hideTimer=window.setTimeout(this.close,500)}onClick(){window.clearTimeout(this.showTimer),this.close()}attach(){this.el.addEventListener("mouseover",this.onMouseover),this.el.addEventListener("mouseleave",this.onMouseleave),this.el.addEventListener("click",this.onClick)}detach(){this.el.removeEventListener("mouseover",this.onMouseover),this.el.removeEventListener("mouseleave",this.onMouseleave),this.el.removeEventListener("click",this.onClick)}}const ll={mounted(e,t,n){if(t.value==null||rn)return;const i=e._userPreviewDirective_={};i.preview=new WA(e,t.value)},unmounted(e,t,n){if(t.value==null)return;e._userPreviewDirective_.preview.detach()}},io=new Map;function oa(e){const t=io.get(e),n=e.clientHeight,i=e.clientWidth;if(t){if(!n){t.intersection||(t.intersection=new IntersectionObserver(o=>{o.some(s=>s.isIntersecting)&&oa(e)})),t.intersection.observe(e);return}t.intersection&&(t.intersection.disconnect(),delete t.intersection),t.fn(i,n)}}const KA={mounted(e,t,n){const i=new ResizeObserver((o,s)=>{oa(e)});i.observe(e),io.set(e,{resize:i,fn:t.value}),oa(e)},unmounted(e,t,n){t.value(0,0);const i=io.get(e);i&&(i.resize.disconnect(),i.intersection&&i.intersection.disconnect(),io.delete(e))}},JA={mounted(e,t,n){t.value!==!1&&A.s.animation&&e.addEventListener("click",()=>{const i=e.getBoundingClientRect(),o=i.left+e.offsetWidth/2,s=i.top+e.offsetHeight/2;De(ja,{x:o,y:s},{},"end")})}}
31,GA=rn?"touchstart":"mouseenter",YA=rn?"touchend":"mouseleave",XA={mounted(e,t,n){const i=t.modifiers.noDelay?0:100,o=e._tooltipDirective_={};o.text=t.value,o._close=null,o.showTimer=null,o.hideTimer=null,o.checkTimer=null,o.close=()=>{o._close&&(window.clearInterval(o.checkTimer),o._close(),o._close=null)},t.arg==="dialog"&&e.addEventListener("click",s=>(s.preventDefault(),s.stopPropagation(),et({type:"info",text:t.value}),!1)),o.show=async()=>{if(!window.document.body.contains(e)||o._close||o.text==null)return;const s=F(!0);await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.z7tE5Fh2.js"),__vite__mapDeps([16,2,17,3,4,18]))),{showing:s,text:o.text,asMfm:t.modifiers.mfm,direction:t.modifiers.left?"left":t.modifiers.right?"right":t.modifiers.top?"top":t.modifiers.bottom?"bottom":"top",targetElement:e},{},"closed"),o._close=()=>{s.value=!1}},e.addEventListener("selectstart",s=>{s.preventDefault()}),e.addEventListener(GA,s=>{window.clearTimeout(o.showTimer),window.clearTimeout(o.hideTimer),i===0?o.show():o.showTimer=window.setTimeout(o.show,i)},{passive:!0}),e.addEventListener(YA,()=>{window.clearTimeout(o.showTimer),window.clearTimeout(o.hideTimer),i===0?o.close():o.hideTimer=window.setTimeout(o.close,i)},{passive:!0}),e.addEventListener("click",()=>{window.clearTimeout(o.showTimer),o.close()})},updated(e,t){const n=e._tooltipDirective_;n.text=t.value},unmounted(e,t,n){const i=e._tooltipDirective_;window.clearInterval(i.checkTimer)}},QA={esc:"Escape",enter:"Enter",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",plus:["+",";"]},ZA=["ctrl","alt","shift"],e3=["input","textarea"];let pn=null;const _c=e=>{const t=t3(e);return n=>{if(!("pswp"in window&&window.pswp!=null)&&!(window.document.activeElement!=null&&(e3.includes(window.document.activeElement.tagName.toLowerCase())||In(window.document.activeElement)?.isContentEditable)))for(const i of t)s3(n,i)&&(n.preventDefault(),n.stopPropagation(),i.callback(n),a3(n,i.callback))}},t3=e=>Object.entries(e).map(([t,n])=>{const i=n3(t),o=i3(n),s=o3(n);return{patterns:i,callback:o,options:s}}),n3=e=>e.split("|").map(t=>{const n=t.split("+").map(sa),i=r3(n.findLast(r=>!ZA.includes(r))),o=n.includes("ctrl"),s=n.includes("alt"),a=n.includes("shift");return{which:i,ctrl:o,alt:s,shift:a}}),i3=e=>typeof e=="object"?e.callback:e,o3=e=>{const t={allowRepeat:!1};if(typeof e=="object"){const{callback:n,...i}=e;return{...{...t,...i}}}return{...t}},s3=(e,t)=>{const{patterns:n,options:i,callback:o}=t;if(e.repeat&&!i.allowRepeat)return!1;const s=e.key.toLowerCase();return n.some(({which:a,ctrl:r,shift:u,alt:l})=>!(i.allowRepeat===!1&&pn!=null&&pn.which.includes(s)&&pn.ctrl===r&&pn.alt===l&&pn.shift===u&&pn.callback===o||!a.includes(s)||r!==(e.ctrlKey||e.metaKey)||l!==e.altKey||u!==e.shiftKey))};let As=null;const a3=(e,t)=>{As!=null&&window.clearTimeout(As),pn={which:[e.key.toLowerCase()],ctrl:e.ctrlKey||e.metaKey,alt:e.altKey,shift:e.shiftKey,callback:t},As=window.setTimeout(()=>{pn=null},500)},r3=e=>{if(e==null)return[];const t=l3(QA,e);return t==null?[e]:typeof t=="string"?[sa(t)]:t.map(sa)},l3=(e,t)=>e[t],sa=e=>e.trim().toLowerCase(),u3={mounted(e,t){e._hotkey_global=t.modifiers.global===!0,e._keyHandler=_c(t.value),e._hotkey_global?window.document.addEventListener("keydown",e._keyHandler,{passive:!1}):e.addEventListener("keydown",e._keyHandler,{passive:!1})},unmounted(e){e._hotkey_global?window.document.removeEventListener("keydown",e._keyHandler):e.removeEventListener("keydown",e._keyHandler)}},c3={mounted(e,t,n){const i=t.value;if(i==null)return;const o=new IntersectionObserver(s=>{s.some(a=>a.isIntersecting)&&i()});o.observe(e),e._observer_=o},unmounted(e,t,n){e._observer_&&e._observer_.disconnect()}},d3={beforeMount(e,t,n){e.style.opacity="0",e.style.transform="scale(0.9)",e.classList.add("_zoom")},mounted(e,t,n){window.setTimeout(()=>{e.style.opacity="1",e.style.transform="none"},1)}},f3={mounted(e,t,n){if(!A.s.animation)return;const i=e.children[0];i!=null&&(i.classList.add("_anime_bounce_standBy"),e.addEventListener("mousedown",()=>{i.classList.remove("_anime_bounce"),i.classList.add("_anime_bounce_standBy"),i.classList.add("_anime_bounce_ready"),i.addEventListener("mouseleave",()=>{i.classList.remove("_anime_bounce_ready")})}),e.addEventListener("click",()=>{i.classList.add("_anime_bounce"),i.classList.remove("_anime_bounce_ready")}),e.addEventListener("animationend",()=>{i.classList.remove("_anime_bounce"),i.classList.add("_anime_bounce_standBy")}))}};function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}var m3=/^\s+/,h3=/\s+$/;function _e(e,t){if(e=e||"",t=t||{},e instanceof _e)return e;if(!(this instanceof _e))return new _e(e,t);var n=p3(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}_e.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,i,o,s,a,r;return n=t.r/255,i=t.g/255,o=t.b/255,n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),.2126*s+.7152*a+.0722*r},setAlpha:function(t){return this._a=kc(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=cl(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=cl(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+i+"%, "+o+"%)":"hsva("+n+", "+i+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=ul(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ul(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+i+"%, "+o+"%)":"hsla("+n+", "+i+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return dl(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return w3(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Je(this._r,255)*100)+"%",g:Math.round(Je(this._g,255)*100)+"%",b:Math.round(Je(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Je(this._r,255)*100)+"%, "+Math.round(Je(this._g,255)*100)+"%, "+Math.round(Je(this._b,255)*100)+"%)":"rgba("+Math.round(Je(this._r,255)*100)+"%, "+Math.round(Je(this._g,255)*100)+"%, "+Math.round(Je(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I3[dl(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+fl(this._r,this._g,this._b,this._a),i=n,o=this._gradientType?"GradientType = 1, ":"";if(t){var s=_e(t);i="#"+fl(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+i+")"},toString:function(t){var n=!!t;t=t||this._format;var i=!1,o=this._a<1&&this._a>=0,s=!n&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return s?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return _e(this.toString())},_applyModification:function(t,n){var i=t.apply(null,[this].concat([].slice.call(n)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(D3,arguments)},brighten:function(){return this._applyModification(E3,arguments)},darken:function(){return this._applyModification(C3,arguments)},desaturate:function(){return this._applyModification(b3,arguments)},saturate:function(){return this._applyModification(_3,arguments)},greyscale:function(){return this._applyModification(k3,arguments)},spin:function(){return this._applyModification(A3,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(T3,arguments)},complement:function(){return this._applyCombination($3,arguments)},monochromatic:function(){return this._applyCombination(M3,arguments)},splitcomplement:function(){return this._applyCombination(x3,arguments)},triad:function(){return this._applyCombination(ml,[3])},tetrad:function(){return this._applyCombination(ml,[4])}};_e.fromRatio=function(e,t){if(Co(e)=="object"){var n={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?n[i]=e[i]:n[i]=hi(e[i]));e=n}return _e(e,t)};function p3(e){var t={r:0,g:0,b:0},n=1,i=null,o=null,s=null,a=!1,r=!1;return typeof e=="string"&&(e=P3(e)),Co(e)=="object"&&(Xt(e.r)&&Xt(e.g)&&Xt(e.b)?(t=v3(e.r,e.g,e.b),a=!0,r=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Xt(e.h)&&Xt(e.s)&&Xt(e.v)?(i=hi(e.s),o=hi(e.v),t=y3(e.h,i,o),a=!0,r="hsv"):Xt(e.h)&&Xt(e.s)&&Xt(e.l)&&(i=hi(e.s),s=hi(e.l),t=g3(e.h,i,s),a=!0,r="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=kc(n),{ok:a,format:e.format||r,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function v3(e,t,n){return{r:Je(e,255)*255,g:Je(t,255)*255,b:Je(n,255)*255}}function ul(e,t,n){e=Je(e,255),t=Je(t,255),n=Je(n,255);
31var i=Math.max(e,t,n),o=Math.min(e,t,n),s,a,r=(i+o)/2;if(i==o)s=a=0;else{var u=i-o;switch(a=r>.5?u/(2-i-o):u/(i+o),i){case e:s=(t-n)/u+(t<n?6:0);break;case t:s=(n-e)/u+2;break;case n:s=(e-t)/u+4;break}s/=6}return{h:s,s:a,l:r}}function g3(e,t,n){var i,o,s;e=Je(e,360),t=Je(t,100),n=Je(n,100);function a(l,d,v){return v<0&&(v+=1),v>1&&(v-=1),v<1/6?l+(d-l)*6*v:v<1/2?d:v<2/3?l+(d-l)*(2/3-v)*6:l}if(t===0)i=o=s=n;else{var r=n<.5?n*(1+t):n+t-n*t,u=2*n-r;i=a(u,r,e+1/3),o=a(u,r,e),s=a(u,r,e-1/3)}return{r:i*255,g:o*255,b:s*255}}function cl(e,t,n){e=Je(e,255),t=Je(t,255),n=Je(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),s,a,r=i,u=i-o;if(a=i===0?0:u/i,i==o)s=0;else{switch(i){case e:s=(t-n)/u+(t<n?6:0);break;case t:s=(n-e)/u+2;break;case n:s=(e-t)/u+4;break}s/=6}return{h:s,s:a,v:r}}function y3(e,t,n){e=Je(e,360)*6,t=Je(t,100),n=Je(n,100);var i=Math.floor(e),o=e-i,s=n*(1-t),a=n*(1-o*t),r=n*(1-(1-o)*t),u=i%6,l=[n,a,s,s,r,n][u],d=[r,n,n,a,s,s][u],v=[s,s,r,n,n,a][u];return{r:l*255,g:d*255,b:v*255}}function dl(e,t,n,i){var o=[Nt(Math.round(e).toString(16)),Nt(Math.round(t).toString(16)),Nt(Math.round(n).toString(16))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function w3(e,t,n,i,o){var s=[Nt(Math.round(e).toString(16)),Nt(Math.round(t).toString(16)),Nt(Math.round(n).toString(16)),Nt(Dc(i))];return o&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function fl(e,t,n,i){var o=[Nt(Dc(i)),Nt(Math.round(e).toString(16)),Nt(Math.round(t).toString(16)),Nt(Math.round(n).toString(16))];return o.join("")}_e.equals=function(e,t){return!e||!t?!1:_e(e).toRgbString()==_e(t).toRgbString()};_e.random=function(){return _e.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function b3(e,t){t=t===0?0:t||10;var n=_e(e).toHsl();return n.s-=t/100,n.s=Ko(n.s),_e(n)}function _3(e,t){t=t===0?0:t||10;var n=_e(e).toHsl();return n.s+=t/100,n.s=Ko(n.s),_e(n)}function k3(e){return _e(e).desaturate(100)}function D3(e,t){t=t===0?0:t||10;var n=_e(e).toHsl();return n.l+=t/100,n.l=Ko(n.l),_e(n)}function E3(e,t){t=t===0?0:t||10;var n=_e(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),_e(n)}function C3(e,t){t=t===0?0:t||10;var n=_e(e).toHsl();return n.l-=t/100,n.l=Ko(n.l),_e(n)}function A3(e,t){var n=_e(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,_e(n)}function $3(e){var t=_e(e).toHsl();return t.h=(t.h+180)%360,_e(t)}function ml(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=_e(e).toHsl(),i=[_e(e)],o=360/t,s=1;s<t;s++)i.push(_e({h:(n.h+s*o)%360,s:n.s,l:n.l}));return i}function x3(e){var t=_e(e).toHsl(),n=t.h;return[_e(e),_e({h:(n+72)%360,s:t.s,l:t.l}),_e({h:(n+216)%360,s:t.s,l:t.l})]}function T3(e,t,n){t=t||6,n=n||30;var i=_e(e).toHsl(),o=360/n,s=[_e(e)];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,s.push(_e(i));return s}function M3(e,t){t=t||6;for(var n=_e(e).toHsv(),i=n.h,o=n.s,s=n.v,a=[],r=1/t;t--;)a.push(_e({h:i,s:o,v:s})),s=(s+r)%1;return a}_e.mix=function(e,t,n){n=n===0?0:n||50;var i=_e(e).toRgb(),o=_e(t).toRgb(),s=n/100,a={r:(o.r-i.r)*s+i.r,g:(o.g-i.g)*s+i.g,b:(o.b-i.b)*s+i.b,a:(o.a-i.a)*s+i.a};return _e(a)};_e.readability=function(e,t){var n=_e(e),i=_e(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)};_e.isReadable=function(e,t,n){var i=_e.readability(e,t),o,s;switch(s=!1,o=R3(n),o.level+o.size){case"AAsmall":case"AAAlarge":s=i>=4.5;break;case"AAlarge":s=i>=3;break;case"AAAsmall":s=i>=7;break}return s};_e.mostReadable=function(e,t,n){var i=null,o=0,s,a,r,u;n=n||{},a=n.includeFallbackColors,r=n.level,u=n.size;for(var l=0;l<t.length;l++)s=_e.readability(e,t[l]),s>o&&(o=s,i=_e(t[l]));return _e.isReadable(e,i,{level:r,size:u})||!a?i:(n.includeFallbackColors=!1,_e.mostReadable(e,["#fff","#000"],n))};var aa=_e.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
310",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I3=_e.hexNames=S3(aa);function S3(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function kc(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Je(e,t){F3(e)&&(e="100%");var n=B3(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Ko(e){return Math.min(1,Math.max(0,e))}function yt(e){return parseInt(e,16)}function F3(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function B3(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Nt(e){return e.length==1?"0"+e:""+e}function hi(e){return e<=1&&(e=e*100+"%"),e}function Dc(e){return Math.round(parseFloat(e)*255).toString(16)}function hl(e){return yt(e)/255}var Lt=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"
31+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Xt(e){return!!Lt.CSS_UNIT.exec(e)}function P3(e){e=e.replace(m3,"").replace(h3,"").toLowerCase();var t=!1;if(aa[e])e=aa[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Lt.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Lt.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Lt.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Lt.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Lt.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Lt.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Lt.hex8.exec(e))?{r:yt(n[1]),g:yt(n[2]),b:yt(n[3]),a:hl(n[4]),format:t?"name":"hex8"}:(n=Lt.hex6.exec(e))?{r:yt(n[1]),g:yt(n[2]),b:yt(n[3]),format:t?"name":"hex"}:(n=Lt.hex4.exec(e))?{r:yt(n[1]+""+n[1]),g:yt(n[2]+""+n[2]),b:yt(n[3]+""+n[3]),a:hl(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Lt.hex3.exec(e))?{r:yt(n[1]+""+n[1]),g:yt(n[2]+""+n[2]),b:yt(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function R3(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const Jo=e=>{if(e==null)return null;const{backgroundColor:t}=window.getComputedStyle(e);return t&&_e(t).getAlpha()!==0?t:Jo(e.parentElement)},L3={mounted(e,t,n){const i=Jo(e.parentElement)??"transparent",o=getComputedStyle(window.document.documentElement).getPropertyValue("--MI_THEME-panel");i===o?e.style.backgroundColor="var(--MI_THEME-bg)":e.style.backgroundColor="var(--MI_THEME-panel)"}},pl=new WeakMap,N3={mounted(e,t,n){function i(){const o=Jo(e.parentElement)??"transparent",s=window.getComputedStyle(e).backgroundColor;o===s?e.style.borderColor="var(--MI_THEME-divider)":e.style.borderColor=s}pl.set(e,i),i(),ei.on("themeChanged",i)},unmounted(e,t,n){ei.off("themeChanged",pl.get(e))}},O3={mounted(e,t,n){const i=Jo(e.parentElement)??"transparent",o=window.getComputedStyle(e).backgroundColor;i===o?e.style.backgroundColor="var(--MI_THEME-bg)":e.style.backgroundColor=o}};function j3(e){for(const[t,n]of Object.entries(V3))e.directive(t,n)}const V3={userPreview:ll,"user-preview":ll,"get-size":KA,ripple:JA,tooltip:XA,hotkey:u3,appear:c3,anim:d3,"click-anime":f3,panel:L3,"adaptive-border":N3,"adaptive-bg":O3},z3={key:0},H3=ne({__name:"MkUrl",props:{url:{},rel:{},showUrlPreview:{type:Boolean,default:!0},navigationBehavior:{}},setup(e){function t(m){try{return decodeURIComponent(m)}catch{return m}}const n=e,i=qu(n.url,mt),o=i!==n.url,s=new URL(n.url);if(!["http:","https:"].includes(s.protocol))throw new Error("invalid url");const a=F();n.showUrlPreview&&Xl.value&&Vo(a,m=>{De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DriF6uNA.js"),__vite__mapDeps([130,2,19,20,3,4,131]))),{showing:m,url:n.url,source:a.value instanceof HTMLElement?a.value:a.value?.$el},{},"closed")});const r=s.protocol,u=zn(s.hostname),l=s.port,d=t(s.pathname),v=t(s.search),p=t(s.hash),C=o?"to":"href",D=o?null:"_blank";return(m,k)=>(c(),q(kt(o?"MkA":"a"),ha({ref_key:"el",ref:a,class:[m.$style.root,"_link"],[_(C)||""]:_(i),rel:e.rel??"nofollow noopener",target:_(D),behavior:n.navigationBehavior,onClick:k[0]||(k[0]=h=>_(fc)(h,n.url)),onContextmenu:ge(()=>{},["stop"])}),{default:J(()=>[o?I("",!0):(c(),g(pe,{key:0},[y("span",{class:f(m.$style.schema)},M(_(r))+"//",3),y("span",{class:f(m.$style.hostname)},M(_(u)),3),_(l)!=""?(c(),g("span",z3,":"+M(_(l)),1)):I("",!0)],64)),_(d)==="/"&&o?(c(),g("span",{key:1,class:f(m.$style.self)},M(_(u)),3)):I("",!0),_(d)!=""?(c(),g("span",{key:2,class:f(m.$style.pathname)},M(o?_(d).substring(1):_(d)),3)):I("",!0),y("span",{class:f(m.$style.query)},M(_(v)),3),y("span",{class:f(m.$style.hash)},M(_(p)),3),_(D)==="_blank"?(c(),g("i",{key:3,class:f([m.$style.icon,"ti ti-external-link"])},null,2)):I("",!0)]),_:1},16,["class","rel","target","behavior"]))}}),U3="xxhr0",q3="xBRDw",W3="xxROy",K3="xkUmz",J3="xCaDo",G3="xEycU",Y3="xc
31FJE",X3="xx5Ft",Q3={root:U3,icon:q3,self:W3,schema:K3,hostname:J3,pathname:G3,query:Y3,hash:X3},Z3={$style:Q3},Ec=re(H3,[["__cssModules",Z3]]),e$=["title"],t$=ne({__name:"MkTime",props:{time:{},origin:{default:null},mode:{default:"relative"},colored:{type:Boolean}},setup(e){const t=e;function n(p){try{return p instanceof Date?p:new Date(p)}catch{return{getTime:()=>NaN}}}const i=t.time==null?NaN:n(t.time).getTime(),o=Number.isNaN(i),s=o?w.ts._ago.invalid:tu.format(i),a=F(t.origin?.getTime()??Date.now()),r=G(()=>(a.value-i)/1e3),u=G(()=>t.mode==="absolute"?"":o?w.ts._ago.invalid:r.value>=31536e3?w.tsx._ago.yearsAgo({n:Math.round(r.value/31536e3).toString()}):r.value>=2592e3?w.tsx._ago.monthsAgo({n:Math.round(r.value/2592e3).toString()}):r.value>=604800?w.tsx._ago.weeksAgo({n:Math.round(r.value/604800).toString()}):r.value>=86400?w.tsx._ago.daysAgo({n:Math.round(r.value/86400).toString()}):r.value>=3600?w.tsx._ago.hoursAgo({n:Math.round(r.value/3600).toString()}):r.value>=60?w.tsx._ago.minutesAgo({n:(~~(r.value/60)).toString()}):r.value>=10?w.tsx._ago.secondsAgo({n:(~~(r.value%60)).toString()}):r.value>=-3?w.ts._ago.justNow:r.value<-31536e3?w.tsx._timeIn.years({n:Math.round(-r.value/31536e3).toString()}):r.value<-2592e3?w.tsx._timeIn.months({n:Math.round(-r.value/2592e3).toString()}):r.value<-604800?w.tsx._timeIn.weeks({n:Math.round(-r.value/604800).toString()}):r.value<-86400?w.tsx._timeIn.days({n:Math.round(-r.value/86400).toString()}):r.value<-3600?w.tsx._timeIn.hours({n:Math.round(-r.value/3600).toString()}):r.value<-60?w.tsx._timeIn.minutes({n:(~~(-r.value/60)).toString()}):w.tsx._timeIn.seconds({n:(~~(-r.value%60)).toString()}));let l,d;function v(){a.value=Date.now();const p=r.value<60?1e4:r.value<3600?6e4:18e4;d!==p&&(l&&window.clearInterval(l),d=p,l=window.setInterval(v,p))}return!o&&t.origin===null&&(t.mode==="relative"||t.mode==="detail")&&(je(()=>{v()}),it(()=>{l&&window.clearInterval(l)})),(p,C)=>(c(),g("time",{title:_(s),class:f({[p.$style.old1]:e.colored&&r.value>3600*24*90,[p.$style.old2]:e.colored&&r.value>3600*24*180})},[_(o)?(c(),g(pe,{key:0},[ie(M(_(w).ts._ago.invalid),1)],64)):e.mode==="relative"?(c(),g(pe,{key:1},[ie(M(u.value),1)],64)):e.mode==="absolute"?(c(),g(pe,{key:2},[ie(M(_(s)),1)],64)):e.mode==="detail"?(c(),g(pe,{key:3},[ie(M(_(s))+" ("+M(u.value)+")",1)],64)):I("",!0)],10,e$))}}),n$="x82N4",i$="xf65g",o$={old1:n$,old2:i$},s$={$style:o$},Cc=re(t$,[["__cssModules",s$]]),a$=["src"],r$=ne({__name:"MkMention",props:{username:{},host:{},navigationBehavior:{}},setup(e){const t=e,n=t.host===He?`@${t.username}`:`@${t.username}@${zn(t.host)}`,i=`/${n}`,o=S&&`@${t.username}@${zn(t.host)}`===`@${S.username}@${zn(He)}`.toLowerCase(),s=G(()=>A.s.disableShowingAnimatedImages||A.s.dataSaver.avatar?Di(`/avatar/@${t.username}@${t.host}`):`/avatar/@${t.username}@${t.host}`);return(a,r)=>{const u=we("MkA"),l=Ue("user-preview");return ve((c(),q(u,{class:f([a.$style.root,{[a.$style.isMe]:_(o)}]),to:i,behavior:e.navigationBehavior},{default:J(()=>[y("img",{class:f(a.$style.icon),src:s.value,alt:""},null,10,a$),y("span",null,[y("span",null,"@"+M(e.username),1),e.host!=_(He)?(c(),g("span",{key:0,class:f(a.$style.host)},"@"+M(_(zn)(e.host)),3)):I("",!0)])]),_:1},8,["class","behavior"])),[[l,_(n)]])}}}),l$="x6gsV",u$="xuRbo",c$="xdJCj",d$="x4Wga",f$={root:l$,isMe:u$,icon:c$,host:d$},m$={$style:f$},h$=re(r$,[["__cssModules",m$]]),p$="/twemoji",v$="/fluent-emoji";function Ac(e){let t=Array.from(e,i=>i.codePointAt(0)?.toString(16));t.includes("200d")||(t=t.filter(i=>i!=="fe0f")),t=t.filter(i=>i&&i.length);const n=t.join("-");return`${p$}/${n}.svg`}function g$(e){let t=Array.from(e,i=>i.codePointAt(0)?.toString(16));if(t[0]?.startsWith("1f1"))return Ac(e);t.includes("200d")||(t=t.filter(i=>i!=="fe0f")),t=t.filter(i=>i!=null&&i.length>0);const n=t.map(i=>i.padStart(4,"0")).join("-");return`${v$}/${n}.png`}const y$=["src","alt"],w$=["alt"],b$=ne({__name:"MkEmoji",props:{emoji:{},menu:{type:Boolean},menuReaction:{type:Boolean}},setup(e){const t=e,n=tt(ze.mfmEmojiReactCallback,null),i=A.s.emojiStyle==="twemoji"?Ac:g$,o=G(()=>A.s.emojiStyle==="native"),s=G(()=>i(t.emoji)),a=G(()=>vc(t.emoji));function r(l){l.target.title=Ua(t.emoji)}function u(l){if(t.menu){const d=[];d.push({type:"label",text:t.emoji},{text:w.ts.copy,icon:"ti ti-copy",action:()=>{Dt(t.emoji)}}),t.menuReaction&&n&&d.push({text:w.ts.doReaction,icon:"ti ti-plus",action:()=>{n(t.emoji)}}),st(d,l.currentTarget??l.target)}}return(l,d)=>o.value?(c(),g("span",{key:1,alt:t.emoji,onPointerenter:r,onClick:u},M(a.value),41,w$)):(c(),g("img",{key:0,class:f(l.$style.root),src:s.value,alt:t.emoji,decoding:"async",onPointerenter:r,onClick:u},null,42,y$))}}),_$="xagin",k$={root:_$},D$={$style:k$},$c=re(b$,[["__cssModules",D$]]),E$="/vite/2025.4.1-io.12b-fb6fbea074.Cqq1W_WT.png",C$={class:"_spacer"},A$={style:{display:"flex","flex-direction":"column",gap:"1em"}},$$={key:0},x$=ne({__name:"MkCustomEmojiDetailedDialog",props:{emoji:{}},emits:["ok","cancel","closed"],setup(e,{emit:t}){const n=t,i=Ee("dialogEl");function o(){n("cancel"),i.value.close()}return(s,a)=>{const r=we("MkCustomEmoji"),u=we("Mfm");return c(),q(Wu,{ref_key:"dialogEl",ref:i,onClose:a[0]||(a[0]=l=>o()),onClosed:a[1]||(a[1]=l=>n("closed"))},{header:J(()=>[ie(":"+M(e.emoji.name)+":",1)]),default:J(()=>[y("div",C$,[y("div",A$,[y("div",{class:f(s.$style.emojiImgWrapper)},[W(r,{name:e.emoji.name,normal:!0,useOriginalSize:!0,style:{height:"100%"}},null,8,["name"])],2),W(fn,{copy:`:${e.emoji.name}:`},{key:J(()=>[ie(M(_(w).ts.name),1)]),value:J(()=>[ie(M(e.emoji.name),1)]),_:1},8,["copy"]),W(fn,null,{key:J(()=>[ie(M(_(w).ts.tags),1)]),value:J(()=>[e.emoji.aliases.length===0?(c(),g("div",$$,M(_(w).ts.none),1)):(c(),g("div",{key:1,class:f(s.$style.aliases)},[(c(!0),g(pe,null,Re(e.emoji.aliases,l=>(c(),g("span",{key:l,class:f(s.$style.alias)},M(l),3))),128))],2))]),_:1}),W(fn,null,{key:J(()=>[ie(M(_(w).ts.category),1)]),value:J(()=>[ie(M(e.emoji.category??_(w).ts.none),1)]),_:1}),W(fn,null,{key:J(()=>[ie(M(_(w).ts.sensitive),1)]),value:J(()=>[ie(M(e.emoji.isSensitive?_(w).ts.yes:_(w).ts.no),1)]),_:1}),W(fn,null,{key:J(()=>[ie(M(_(w).ts.localOnly),1)]),value:J(()=>[ie(M(e.emoji.localOnly?_(w).ts.yes:_(w).ts.no),1)]),_:1}),W(fn,null,{key:J(()=>[ie(M(_(w).ts.license),1)]),value:J(()=>[W(u,{text:e.emoji.license??_(w).ts.none},null,8,["text"])]),_:1}),W(fn,{copy:e.emoji.url},{key:J(()=>[ie(M(_(w).ts.emojiUrl),1)]),value:J(()=>[W(za,{url:e.emoji.url,target:"_blank"},{default:J(()=>[ie(M(e.emoji.url),1)]),_:1},8,["url"])]),_:1},8,["copy"])])])]),_:1},512)}}}),T$="x1aDf",M$="xlHld",I$="x6O1I",S$={emojiImgWrapper:T$,aliases:M$,alias:I$},F$={$style:S$},B$=re(x$,[["__cssModules",F$]]),P$={key:0},R$=["alt","title"],L$=["src","alt","title"],N$=ne({__name:"MkCustomEmoji",props:{name:{},normal:{type:Boolean},noStyle:{type:Boolean},host:{},url:{},useOriginalSize:{type:Boolean},menu:{type:Boolean},menuReaction:{type:Boolean},fallbackToImage:{type:Boolean}},setup(e){const t=e,n=tt(ze.mfmEmojiReactCallback),i=G(()=>(t.name[0]===":"?t.name.substring(1,t.name.length-1):t.name).replace("@.","")),o=G(()=>!t.host&&(i.value.endsWith("@.")||!i.value.includes("@"))),s=G(()=>t.url?t.url:o.value?Tn.get(i.value)?.url??null:t.host?`/emoji/${i.value}@${t.host}.webp`:`/emoji/${i.value}.webp`),a=G(()=>{if(s.value==null)return;const v=s.value.startsWith("/emoji/")||t.useOriginalSize&&o.value?s.value:V0(s.value,t.useOriginalSize?void 0:"emoji",!1,!0);
31return A.s.disableShowingAnimatedImages?Di(v):v});le(a,v=>{u.value=v===void 0});const r=G(()=>`:${i.value}:`),u=F(a.value==null);function l(v){if(t.menu){const p=[];p.push({type:"label",text:`:${t.name}:`},{text:w.ts.copy,icon:"ti ti-copy",action:()=>{Dt(`:${t.name}:`)}}),t.menuReaction&&n&&p.push({text:w.ts.doReaction,icon:"ti ti-plus",action:()=>{n(`:${t.name}:`)}}),p.push({text:w.ts.info,icon:"ti ti-info-circle",action:async()=>{De(B$,{emoji:await Ro("emoji",{name:i.value})},{},"closed")}}),(S?.isModerator??S?.isAdmin)&&p.push({text:w.ts.edit,icon:"ti ti-pencil",action:async()=>{await d(t.name)}}),st(p,v.currentTarget??v.target)}}async function d(v){const p=await Ae("emoji",{name:v});De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BnKpB8TW.js"),__vite__mapDeps([477,80,2,81,250,251,3,4,478]))),{emoji:p},{},"closed")}return(v,p)=>u.value&&!e.fallbackToImage?(c(),g("span",P$,":"+M(i.value)+":",1)):u.value?(c(),g("img",{key:1,src:E$,alt:r.value,title:r.value,decoding:"async",style:{"-webkit-user-drag":"none"},class:f([v.$style.root,{[v.$style.normal]:e.normal,[v.$style.noStyle]:e.noStyle}])},null,10,R$)):(c(),g("img",{key:2,class:f([v.$style.root,{[v.$style.normal]:e.normal,[v.$style.noStyle]:e.noStyle}]),src:a.value,alt:r.value,title:r.value,decoding:"async",draggable:"false",onError:p[0]||(p[0]=C=>u.value=!0),onLoad:p[1]||(p[1]=C=>u.value=!1),onClick:l},null,42,L$))}}),O$="xeJ4G",j$="x5kTm",V$="xhB9k",z$={root:O$,normal:j$,noStyle:V$},H$={$style:z$},ra=re(N$,[["__cssModules",H$]]),U$=ne({__name:"MkLoading",props:{static:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},colored:{type:Boolean,default:!0},mini:{type:Boolean,default:!1},em:{type:Boolean,default:!1}},setup(e){return(t,n)=>(c(),g("div",{class:f([t.$style.root,{[t.$style.inline]:e.inline,[t.$style.colored]:e.colored,[t.$style.mini]:e.mini,[t.$style.em]:e.em}])},[y("div",{class:f(t.$style.container)},[(c(),g("svg",{class:f([t.$style.spinner,t.$style.bg]),viewBox:"0 0 168 168",xmlns:"http://www.w3.org/2000/svg"},[...n[0]||(n[0]=[y("g",{transform:"matrix(1.125,0,0,1.125,12,12)"},[y("circle",{cx:"64",cy:"64",r:"64",style:{fill:"none",stroke:"currentColor","stroke-width":"21.33px"}})],-1)])],2)),(c(),g("svg",{class:f([t.$style.spinner,t.$style.fg,{[t.$style.static]:e.static}]),viewBox:"0 0 168 168",xmlns:"http://www.w3.org/2000/svg"},[...n[1]||(n[1]=[y("g",{transform:"matrix(1.125,0,0,1.125,12,12)"},[y("path",{d:"M128,64C128,28.654 99.346,0 64,0C99.346,0 128,28.654 128,64Z",style:{fill:"none",stroke:"currentColor","stroke-width":"21.33px"}})],-1)])],2))],2)],2))}}),q$="x7Mqg",W$="xCV4l",K$="xDIRy",J$="xsTcv",G$="xAx8H",Y$="xECzB",X$="xl0hB",Q$="xyWIE",Z$="xhZ9d",e8={root:q$,colored:W$,inline:K$,mini:J$,em:G$,container:Y$,spinner:X$,bg:Q$,fg:Z$,static:"xFb0N"},t8={$style:e8},xc=re(U$,[["__cssModules",t8]]),n8=ne({__name:"MkCode",props:{code:{},forceShow:{type:Boolean,default:!1},copyButton:{type:Boolean,default:!0},lang:{}},setup(e){const t=e,n=F(t.forceShow===!0?!0:!A.s.dataSaver.code),i=de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CzPcl5lN.js"),__vite__mapDeps([220,2,3,4,221])));function o(){Dt(t.code)}return(s,a)=>(c(),g("div",{class:f(s.$style.codeBlockRoot)},[e.copyButton?(c(),g("button",{key:0,class:f([s.$style.codeBlockCopyButton,"_button"]),onClick:o},[...a[1]||(a[1]=[y("i",{class:"ti ti-copy"},null,-1)])],2)):I("",!0),(c(),q(Io,null,{fallback:J(()=>[W(xc)]),default:J(()=>[n.value&&e.lang?(c(),q(_(i),{key:0,code:e.code,lang:e.lang},null,8,["code","lang"])):n.value?(c(),g("pre",{key:1,class:f(s.$style.codeBlockFallbackRoot)},[y("code",{class:f(s.$style.codeBlockFallbackCode)},M(e.code),3)],2)):(c(),g("button",{key:2,class:f(s.$style.codePlaceholderRoot),onClick:a[0]||(a[0]=r=>n.value=!0)},[y("div",{class:f(s.$style.codePlaceholderContainer)},[y("div",null,[a[2]||(a[2]=y("i",{class:"ti ti-code"},null,-1)),ie(" "+M(_(w).ts.code),1)]),y("div",null,M(_(w).ts.clickToShow),1)],2)],2))]),_:1}))],2))}}),i8="xtKTk",o8="xEJxC",s8="xxaMP",a8="xANNA",r8="xvUDZ",l8="xzyld",u8={codeBlockRoot:i8,codeBlockCopyButton:o8,codeBlockFallbackRoot:s8,codeBlockFallbackCode:
31a8,codePlaceholderRoot:r8,codePlaceholderContainer:l8},c8={$style:u8},d8=re(n8,[["__cssModules",c8]]),f8=ne({__name:"MkCodeInline",props:{code:{}},setup(e){return(t,n)=>(c(),g("code",{class:f(t.$style.root)},M(e.code),3))}}),m8="xhJsU",h8={root:m8},p8={$style:h8},v8=re(f8,[["__cssModules",p8]]),g8=["placeholder"],y8=ne({__name:"MkGoogle",props:{q:{}},setup(e){const n=F(e.q),i=()=>{const o=new URLSearchParams;o.append("q",n.value),window.open(`https://www.google.com/search?${o.toString()}`,"_blank","noopener")};return(o,s)=>(c(),g("div",{class:f(o.$style.root)},[ve(y("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>n.value=a),class:f(["mk-input-search",o.$style.input]),type:"text",placeholder:e.q},null,10,g8),[[qn,n.value]]),y("button",{class:f(o.$style.button),onClick:i},[s[1]||(s[1]=y("i",{class:"ti ti-search"},null,-1)),ie(" "+M(_(w).ts.searchByGoogle),1)],2)],2))}}),w8="xe0Us",b8="xaIb4",_8="xj804",k8={root:w8,input:b8,button:_8},D8={$style:k8},E8=re(y8,[["__cssModules",D8]]),C8=["width","height","viewBox"],A8=["fill"],$8=ne({__name:"MkSparkle",setup(e){const t=F([]),n=Ee("el"),i=F(0),o=F(0),s=["#FF1493","#00FFFF","#FFE202","#FFE202","#FFE202"];let a=!1,r;return je(()=>{r=new ResizeObserver((l,d)=>{n.value!=null&&(i.value=n.value.offsetWidth+64,o.value=n.value.offsetHeight+64)}),n.value&&r.observe(n.value);const u=()=>{if(a)return;const l=Math.random()*(i.value-64),d=Math.random()*(o.value-64),v=Math.random(),p={id:Math.random().toString(),x:l,y:d,size:.2+v/10*3,dur:1e3+v*1e3,color:s[Math.floor(Math.random()*s.length)]};t.value.push(p),window.setTimeout(()=>{t.value=t.value.filter(C=>C.id!==p.id)},p.dur-100),window.setTimeout(()=>{u()},500+Math.random()*500)};u()}),it(()=>{r&&r.disconnect(),a=!0}),(u,l)=>(c(),g("span",{class:f(u.$style.root)},[y("span",{ref_key:"el",ref:n,style:{display:"inline-block"}},[Te(u.$slots,"default")],512),(c(!0),g(pe,null,Re(t.value,d=>(c(),g("svg",{key:d.id,width:i.value,height:o.value,viewBox:`0 0 ${i.value} ${o.value}`,xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:"-32px",left:"-32px","pointer-events":"none"}},[y("path",{style:Ge({"--translateX":d.x+"px","--translateY":d.y+"px","--duration":d.dur+"ms","--size":d.size}),class:f(u.$style.particle),fill:d.color,d:"M29.427,2.011C29.721,0.83 30.782,0 32,0C33.218,0 34.279,0.83 34.573,2.011L39.455,21.646C39.629,22.347 39.991,22.987 40.502,23.498C41.013,24.009 41.653,24.371 42.354,24.545L61.989,29.427C63.17,29.721 64,30.782 64,32C64,33.218 63.17,34.279 61.989,34.573L42.354,39.455C41.653,39.629 41.013,39.991 40.502,40.502C39.991,41.013 39.629,41.653 39.455,42.354L34.573,61.989C34.279,63.17 33.218,64 32,64C30.782,64 29.721,63.17 29.427,61.989L24.545,42.354C24.371,41.653 24.009,41.013 23.498,40.502C22.987,39.991 22.347,39.629 21.646,39.455L2.011,34.573C0.83,34.279 0,33.218 0,32C0,30.782 0.83,29.721 2.011,29.427L21.646,24.545C22.347,24.371 22.987,24.009 23.498,23.498C24.009,22.987 24.371,22.347 24.545,21.646L29.427,2.011Z"},null,14,A8)],8,C8))),128))],2))}}),x8="xx8Ek",T8="xtxS0",M8="xEe5O",I8={root:x8,particle:T8,particleAnimation:M8},S8={$style:I8},F8=re($8,[["__cssModules",S8]]),B8=["href"],Ka=ne({__name:"MkA",props:{to:{},activeClass:{default:null},behavior:{default:null}},setup(e,{expose:t}){const n=e,i=n.behavior??tt("linkNavigationBehavior",null),o=Ee("el");t({$el:o});const s=hc(),a=G(()=>{if(n.activeClass==null)return!1;const d=s.resolve(n.to);return d==null?!1:d.route.path===s.currentRoute.value.path?!0:d.route.name==null||s.currentRoute.value.name==null?!1:d.route.name===s.currentRoute.value.name});function r(d){const v=window.getSelection();v&&v.toString()!==""||bc([{type:"label",text:n.to},{icon:"ti ti-app-window",text:w.ts.openInWindow,action:()=>{al(n.to)}},{icon:"ti ti-player-eject",text:w.ts.showInPage,action:()=>{s.push(n.to,"forcePage")}},{type:"divider"},{icon:"ti ti-external-link",text:w.ts.openInNewTab,action:()=>{window.open(n.to,"_blank","noopener")}},{icon:"ti ti-link",text:w.ts.copyLink,action:()=>{Dt(`${mt}${n.to}`)}}],d)}function u(){al(n.to)}function l(d){if(i==="browser"){window.location.href=n.to;return}if(i==="window"||d.shiftKey)return u();s.push(n.to,d.ctrlKey?"forcePage":null)}return(d,v)=>(c(),g("a",{ref_key:"el",ref:o,href:e.to,class:f(a.value?e.activeClass:null),onClick:ge(l,["prevent"]),onContextmenu:ge(r,["prevent","stop"])},[Te(d.$slots,"default")],42,B8))}});function En(e){if(typeof e!="string"||e==="")return null;const t=parseFloat(e);return isNaN(t)?null:t}const vl=` 32display: block; 33margin: 8px; 34padding: 6px 0 6px 12px; 35color: var(--MI_THEME-fg); 36border-left: solid 3px var(--MI_THEME-fg); 37opacity: 0.7; 38`.split(` 39`).join(" ");function P8(e,{emit:t}){const n=e.isNote??!0,i=e.nyaize&&e.nyaize==="respect"?e.author?.isCat:!1;if(e.text==null||e.text==="")return;const o=e.parsedNodes??(e.plain?xn.parseSimple:xn.parse)(e.text),s=l=>l==null||typeof l=="boolean"?null:RegExp(/^\-?[0-9.]+s$/).exec(l)?l:null,a=l=>typeof l!="string"?null:RegExp(/^[0-9a-f]{3,6}$/i).exec(l)?l:null,r=A.s.advancedMfm&&A.s.animatedMfm,u=(l,d,v=!1)=>l.map(p=>{switch(p.type){case"text":{let C=p.props.text.replace(/(\r\n|\n|\r)/g,` 40`);if(!v&&i&&(C=es(C)),e.plain)return[C.replace(/\n/g," ")];{const D=[];for(const m of C.split(` 41`))D.push(Se("br")),D.push(m);return D.shift(),D}}case"bold":return[Se("b",u(p.children,d))];case"strike":return[Se("del",u(p.children,d))];case"italic":return Se("i",{style:"font-style: oblique;"},u(p.children,d));case"fn":{let C;switch(p.props.name){case"tada":{const D=s(p.props.args.speed)??"1s",m=s(p.props.args.delay)??"0s";C="font-size: 150%;"+(r?`animation: global-tada ${D} linear infinite both; animation-delay: ${m};`:"");break}case"jelly":{const D=s(p.props.args.speed)??"1s",m=s(p.props.args.delay)??"0s";C=r?`animation: mfm-rubberBand ${D} linear infinite both; animation-delay: ${m};`:"";break}case"twitch":{const D=s(p.props.args.speed)??"0.5s",m=s(p.props.args.delay)??"0s";C=r?`animation: mfm-twitch ${D} ease infinite; animation-delay: ${m};`:"";break}case"shake":{const D=s(p.props.args.speed)??"0.5s",m=s(p.props.args.delay)??"0s";C=r?`animation: mfm-shake ${D} ease infinite; animation-delay: ${m};`:"";break}case"spin":{const D=p.props.args.left?"reverse":p.props.args.alternate?"alternate":"normal",m=p.props.args.x?"mfm-spinX":p.props.args.y?"mfm-spinY":"mfm-spin",k=s(p.props.args.speed)??"1.5s",h=s(p.props.args.delay)??"0s";C=r?`animation: ${m} ${k} linear infinite; animation-direction: ${D}; animation-delay: ${h};`:"";break}case"jump":{const D=s(p.props.args.speed)??"0.75s",m=s(p.props.args.delay)??"0s";C=r?`animation: mfm-jump ${D} linear infinite; animation-delay: ${m};`:"";break}case"bounce":{const D=s(p.props.args.speed)??"0.75s",m=s(p.props.args.delay)??"0s";C=r?`animation: mfm-bounce ${D} linear infinite; transform-origin: center bottom; animation-delay: ${m};`:"";break}case"flip":{C=`transform: ${p.props.args.h&&p.props.args.v?"scale(-1, -1)":p.props.args.v?"scaleY(-1)":"scaleX(-1)"};`;break}case"x2":return Se("span",{class:A.s.advancedMfm?"mfm-x2":""},u(p.children,d*2));case"x3":return Se("span",{class:A.s.advancedMfm?"mfm-x3":""},u(p.children,d*3));case"x4":return Se("span",{class:A.s.advancedMfm?"mfm-x4":""},u(p.children,d*4));case"font":{const D=p.props.args.serif?"serif":p.props.args.monospace?"monospace":p.props.args.cursive?"cursive":p.props.args.fantasy?"fantasy":p.props.args.emoji?"emoji":p.props.args.math?"math":null;D&&(C=`font-family: ${D};`);break}case"blur":return Se("span",{class:"_mfm_blur_"},u(p.children,d));case"rainbow":{if(!r)return Se("span",{class:"_mfm_rainbow_fallback_"},u(p.children,d));const D=s(p.props.args.speed)??"1s",m=s(p.props.args.delay)??"0s";C=`animation: mfm-rainbow ${D} linear infinite; animation-delay: ${m};`;break}case"sparkle":return r?Se(F8,{},u(p.children,d)):u(p.children,d);case"rotate":{C=`transform: rotate(${En(p.props.args.deg)??90}deg); transform-origin: center center;`;break}case"position":{if(!A.s.advancedMfm)break;const D=En(p.props.args.x)??0,m=En(p.props.args.y)??0;C=`transform: translateX(${D}em) translateY(${m}em);`;break}case"scale":{if(!A.s.advancedMfm){C="";break}const D=Math.min(En(p.props.args.x)??1,5),m=Math.min(En(p.props.args.y)??1,5);C=`transform: scale(${D}, ${m});`,d=d*Math.max(D,m);break}case"fg":{let D=a(p.props.args.color);D=D??"f00",C=`color: #${D};
41 overflow-wrap: anywhere;`;break}case"bg":{let D=a(p.props.args.color);D=D??"f00",C=`background-color: #${D}; overflow-wrap: anywhere;`;break}case"border":{let D=a(p.props.args.color);D=D?`#${D}`:"var(--MI_THEME-accent)";let m=p.props.args.style;(typeof m!="string"||!["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"].includes(m))&&(m="solid");const k=En(p.props.args.width)??1,h=En(p.props.args.radius)??0;C=`border: ${k}px ${m} ${D}; border-radius: ${h}px;${p.props.args.noclip?"":" overflow: clip;"}`;break}case"ruby":if(p.children.length===1){const D=p.children[0];let m=D.type==="text"?D.props.text:"";return!v&&i&&(m=es(m)),Se("ruby",{},[m.split(" ")[0],Se("rt",m.split(" ")[1])])}else{const D=p.children.at(-1);let m=D.type==="text"?D.props.text:"";return!v&&i&&(m=es(m)),Se("ruby",{},[...u(p.children.slice(0,p.children.length-1),d),Se("rt",m.trim())])}case"unixtime":{const D=p.children[0],m=parseInt(D.type==="text"?D.props.text:"");return Se("span",{style:"display: inline-block; font-size: 90%; border: solid 1px var(--MI_THEME-divider); border-radius: 999px; padding: 4px 10px 4px 6px;"},[Se("i",{class:"ti ti-clock",style:"margin-right: 0.25em;"}),Se(Cc,{key:Math.random(),time:m*1e3,mode:"detail"})])}case"clickable":return Se("span",{onClick(D){D.stopPropagation(),D.preventDefault();const m=typeof p.props.args.ev=="string"?p.props.args.ev:"";t("clickEv",m)}},u(p.children,d))}return C===void 0?Se("span",{},["$[",p.props.name," ",...u(p.children,d),"]"]):Se("span",{style:"display: inline-block; "+C},u(p.children,d))}case"small":return[Se("small",{style:"opacity: 0.7;"},u(p.children,d))];case"center":return[Se("div",{style:"text-align:center;"},u(p.children,d))];case"url":return[Se(Ec,{key:Math.random(),url:p.props.url,rel:"nofollow noopener",navigationBehavior:e.linkNavigationBehavior})];case"link":return[Se(za,{key:Math.random(),url:p.props.url,rel:"nofollow noopener",navigationBehavior:e.linkNavigationBehavior},u(p.children,d,!0))];case"mention":return[Se(h$,{key:Math.random(),host:(p.props.host==null&&e.author?.host?e.author.host:p.props.host)??He,username:p.props.username,navigationBehavior:e.linkNavigationBehavior})];case"hashtag":return[Se(Ka,{key:Math.random(),to:n?`/tags/${encodeURIComponent(p.props.hashtag)}`:`/user-tags/${encodeURIComponent(p.props.hashtag)}`,style:"color:var(--MI_THEME-hashtag);",behavior:e.linkNavigationBehavior},`#${p.props.hashtag}`)];case"blockCode":return[Se(d8,{key:Math.random(),code:p.props.code,lang:p.props.lang??void 0})];case"inlineCode":return[Se(v8,{key:Math.random(),code:p.props.code})];case"quote":return e.nowrap?[Se("span",{style:vl},u(p.children,d,!0))]:[Se("div",{style:vl},u(p.children,d,!0))];case"emojiCode":return e.author?.host==null?[Se(ra,{key:Math.random(),name:p.props.name,normal:e.plain,host:null,useOriginalSize:d>=2.5,menu:e.enableEmojiMenu,menuReaction:e.enableEmojiMenuReaction})]:e.emojiUrls&&e.emojiUrls[p.props.name]==null?[Se("span",`:${p.props.name}:`)]:[Se(ra,{key:Math.random(),name:p.props.name,url:e.emojiUrls&&e.emojiUrls[p.props.name],normal:e.plain,host:e.author.host,useOriginalSize:d>=2.5})];case"unicodeEmoji":return[Se($c,{key:Math.random(),emoji:p.props.emoji,menu:e.enableEmojiMenu,menuReaction:e.enableEmojiMenuReaction})];case"mathInline":return[Se("code",p.props.formula)];case"mathBlock":return[Se("code",p.props.formula)];case"search":return[Se(E8,{key:Math.random(),q:p.props.query})];case"plain":return[Se("span",u(p.children,d,!0))];default:return console.error("unrecognized ast type:",p.type),[]}}).flat(1/0);return Se("span",{style:e.nowrap?"white-space: pre; word-wrap: normal; overflow: hidden; text-overflow: ellipsis;":"white-space: pre-wrap;"},u(o,e.rootScale??1))}const R8={key:0,style:{opacity:"0.5"}},L8=ne({__name:"MkAcct",props:{user:{},detail:{type:Boolean}},setup(e){const t=zn(He);return(n,i)=>(c(),g("span",null,[y("span",null,"@"+M(e.user.username),1),e.user.host||e.detail?(c(),g("span",R8,"@"+M(e.user.host||_(t)),1)):I("",!0)]))}}),N8=ne({__name:"MkUserOnlineIndicator",props:{user:{}},setup(e){const t=e,n=G(()=>{switch(t.user.onlineStatus){case"online":return w.ts.online;case"active":return w.ts.active;case"offline":return w.ts.offline;case"unknown":return w.ts.unknown}});return(i,o)=>{const s=Ue("tooltip");return ve((c(),g("div",{class:f([i.$style.root,{[i.$style.status_online]:e.user.onlineStatus==="online",[i.$style.status_active]:e.user.onlineStatus==="active",[i.$style.status_offline]:e.user.onlineStatus==="offline",[i.$style.status_unknown]:e.user.onlineStatus==="unknown"}])},null,2)),[[s,n.value]])}}}),O8="xiuv3",j8="xoFOX",V8="xqniu",z8="xsxUh",H8="xfup6",U8={root:O8,status_online:j8,status_active:V8,status_offline:z8,status_unknown:H8},q8={$style:U8},W8=re(N8,[["__cssModules",q8]]),K8=["src"],J8=ne({__name:"MkAvatar",props:{user:{},target:{default:null},link:{type:Boolean,default:!1},preview:{type:Boolean,default:!1},indicator:{type:Boolean,default:!1},decorations:{default:void 0},forceShowDecoration:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=F(A.s.animation),i=F(A.s.squareAvatars),o=e,s=t,a=o.forceShowDecoration||A.s.showAvatarDecorations,r=G(()=>o.link?{to:Pa(o.user),target:o.target}:{}),u=G(()=>o.user.avatarUrl==null?null:A.s.disableShowingAnimatedImages||A.s.dataSaver.avatar?Di(o.user.avatarUrl):o.user.avatarUrl);function l(m){o.link||s("click",m)}
41function d(m){return A.s.disableShowingAnimatedImages||A.s.dataSaver.avatar?Di(m.url):m.url}function v(m){const k=m.angle??0;return k===0?void 0:`${k*360}deg`}function p(m){const k=m.flipH?-1:1;return k===1?void 0:`${k} 1`}function C(m){const k=m.offsetX??0,h=m.offsetY??0;return k===0&&h===0?void 0:`${k*100}% ${h*100}%`}const D=F();return le(()=>o.user.avatarBlurhash,()=>{o.user.avatarBlurhash!=null&&(D.value=Nu(o.user.avatarBlurhash))},{immediate:!0}),(m,k)=>{const h=Ue("user-preview");return ve((c(),q(kt(e.link?Ka:"span"),Jt(r.value,{class:["_noSelect",[m.$style.root,{[m.$style.animation]:n.value,[m.$style.cat]:e.user.isCat,[m.$style.square]:i.value}]],style:{color:D.value},title:_(Ku)(e.user),onClick:l}),{default:J(()=>[W(jo,{class:f(m.$style.inner),src:u.value,hash:e.user.avatarBlurhash,cover:!0,onlyAvgColor:!0},null,8,["class","src","hash"]),e.indicator?(c(),q(W8,{key:0,class:f(m.$style.indicator),user:e.user},null,8,["class","user"])):I("",!0),e.user.isCat?(c(),g("div",{key:1,class:f([m.$style.ears])},[y("div",{class:f(m.$style.earLeft)},[I("",!0)],2),y("div",{class:f(m.$style.earRight)},[I("",!0)],2)],2)):I("",!0),_(a)?(c(!0),g(pe,{key:2},Re(e.decorations??e.user.avatarDecorations,b=>(c(),g("img",{class:f([m.$style.decoration,{[m.$style.decorationBlink]:b.blink}]),src:d(b),style:Ge([{rotate:v(b),scale:p(b),translate:C(b)},{"-webkit-user-drag":"none"}]),alt:"",draggable:"false"},null,14,K8))),256)):I("",!0)]),_:1},16,["class","style","title"])),[[h,e.preview?e.user.id:void 0]])}}}),G8="x6tH3",Y8="xraw1",X8="xa2Cc",Q8="x9gtQ",Z8="xyRmg",ex="xbyxl",tx="xhUxx",nx="xudJZ",ix="xdE5q",ox="xbKMu",sx="xtWgn",ax="xzoAW",rx="x7I3Z",lx="x1fJq",ux="xl1ot",cx="x89sY",dx="xfFGo",fx="xF0Qs",mx={root:G8,inner:Y8,indicator:X8,square:Q8,cat:Z8,ears:ex,earLeft:tx,earRight:nx,layer:ix,plot:ox,animation:sx,earwiggleleft:ax,earwiggleright:rx,decoration:lx,decorationBlink:ux,blink:cx,eartightleft:dx,eartightright:fx},hx={$style:mx},px=re(J8,[["__cssModules",hx]]),Ao=Symbol(),qi=new ResizeObserver(e=>{const t=[];for(const n of e){const i=n.target[Ao]?n.target:n.target.firstElementChild,o=i[Ao],s=i.parentElement,a=i.getBoundingClientRect().width,r=s.getBoundingClientRect().width;t.push({container:s,transform:`scaleX(${Math.max(o.minScale,Math.min(1,r/a))})`})}for(const n of t)n.container.style.transform=n.transform}),vx=ne({__name:"MkCondensedLine",props:{minScale:{default:0}},setup(e){const t=e,n=F();return le(n,(i,o)=>{o&&(delete o[Ao],qi.unobserve(o),o.parentElement&&qi.unobserve(o.parentElement)),i&&(i[Ao]=t,qi.observe(i),i.parentElement&&qi.observe(i.parentElement))}),(i,o)=>(c(),g("span",{class:f(i.$style.container)},[y("span",{ref_key:"content",ref:n,class:f(i.$style.content),style:Ge({maxWidth:`${100/e.minScale}%`})},[Te(i.$slots,"default")],6)],2))}}),gx="xhkmR",yx="xsu0t",wx={container:gx,content:yx},bx={$style:wx},_x=re(vx,[["__cssModules",bx]]),kx=ne({__name:"MkUserName",props:{user:{},nowrap:{type:Boolean,default:!0}},setup(e){return(t,n)=>{const i=we("Mfm");return c(),q(i,{text:e.user.name??e.user.username,author:e.user,plain:!0,nowrap:e.nowrap,emojiUrls:e.user.emojis},null,8,["text","author","nowrap","emojiUrls"])}}}),Dx=ne({__name:"MkEllipsis",props:{static:{type:Boolean,default:!1}},setup(e){return(t,n)=>(c(),g("span",{class:f([t.$style.root,{[t.$style.static]:e.static}])},[y("span",{class:f(t.$style.dot)},".",2),y("span",{class:f(t.$style.dot)},".",2),y("span",{class:f(t.$style.dot)},".",2)],2))}}),Ex="xkGTh",Cx="xcntq",Ax="xcrHt",$x={root:Ex,static:"xAAJG",dot:Cx,ellipsis:Ax},xx={$style:$x},Tx=re(Dx,[["__cssModules",xx]]),Mx=ne({__name:"I18n",props:{src:{},tag:{default:"span"},textTag:{}},setup(e){const t=e,n=bl(),i=G(()=>{let s=t.src;const a=[];for(;;){const r=s.indexOf("{"),u=s.indexOf("}");if(r===-1){a.push(s);break}else r>0&&a.push(s.substring(0,r)),a.push({arg:s.substring(r+1,u)});s=s.substring(u+1)}return a}),o=()=>Se(t.tag,i.value.map(s=>typeof s=="string"?t.textTag?Se(t.textTag,s):s:n[s.arg]()));return(s,a)=>(c(),q(o))}}),Ix=ne({__name:"NestedRouterView",props:{router:{}},setup(e){const n=e.router??tt(ze.router);if(n==null)throw new Error("no router provided");const i=tt(ze.routerCurrentDepth,0);lt(ze.routerCurrentDepth,i+1);function o(l,d=0){return d===i?l:l.child?o(l.child,d+1):null}const s=o(n.current),a=Wt("component"in s.route?s.route.component:Uo),r
41=F(s.props),u=F(n.getCurrentPath());return n.useListener("change",({resolved:l})=>{const d=o(l);d==null||"redirect"in d.route||(a.value=d.route.component,r.value=d.props,u.value=n.getCurrentPath())}),(l,d)=>{const v=we("MkLoading");return c(),q(Io,{timeout:0},{fallback:J(()=>[W(v)]),default:J(()=>[(c(),q(kt(a.value),Jt({key:u.value},Object.fromEntries(r.value)),null,16))]),_:1})}}}),Sx=ne({__name:"StackingRouterView",props:{router:{}},setup(e){const n=e.router??tt(ze.router);if(n==null)throw new Error("no router provided");const i=tt(ze.routerCurrentDepth,0);lt(ze.routerCurrentDepth,i+1);const o=Wt([{fullPath:n.getCurrentPath(),routePath:n.current.route.path,component:"component"in n.current.route?n.current.route.component:Uo,props:n.current.props}]);function s(){const r=o.value[o.value.length-1];o.value=[r]}function a(){const r=o.value[o.value.length-2];o.value=[...o.value.slice(0,o.value.length-1)],n.replace(r.fullPath)}return n.useListener("change",({resolved:r})=>{const u=o.value[o.value.length-1],l=r.route.path;if(r==null||"redirect"in r.route||r.route.path===u.routePath&&qt(r.props,u.props))return;const d=n.getCurrentPath();if(o.value.some(v=>v.routePath===l&&qt(r.props,v.props))){const v=[];for(const p of o.value)if(v.push(p),p.routePath===l&&qt(r.props,p.props))break;o.value=v;return}o.value=o.value.length>=A.s.numberOfPageCache?[...o.value.slice(1),{fullPath:d,routePath:l,component:r.route.component,props:r.props}]:[...o.value,{fullPath:d,routePath:l,component:r.route.component,props:r.props}]}),n.useListener("replace",({path:r})=>{const u=o.value[o.value.length-1];u.fullPath=r,o.value=[...o.value.slice(0,o.value.length-1),u]}),(r,u)=>{const l=we("MkLoading");return c(),q(ma,{enterActiveClass:_(A).s.animation?r.$style.transition_x_enterActive:"",leaveActiveClass:_(A).s.animation?r.$style.transition_x_leaveActive:"",enterFromClass:_(A).s.animation?r.$style.transition_x_enterFrom:"",leaveToClass:_(A).s.animation?r.$style.transition_x_leaveTo:"",moveClass:_(A).s.animation?r.$style.transition_x_move:"",duration:200,tag:"div",class:f(r.$style.tabs)},{default:J(()=>[(c(!0),g(pe,null,Re(o.value,(d,v)=>(c(),g("div",{key:d.fullPath,class:f(r.$style.tab),style:Ge({"--i":v-1})},[v>0?(c(),g("div",{key:0,class:f(r.$style.tabBg),onClick:u[0]||(u[0]=p=>a())},null,2)):I("",!0),y("div",{class:f(r.$style.tabFg),onClick:u[2]||(u[2]=ge(p=>a(),["stop"]))},[v>0?(c(),g("div",{key:0,class:f(r.$style.tabMenu)},[(c(),g("svg",{class:f(r.$style.tabMenuShape),viewBox:"0 0 24 16"},[...u[3]||(u[3]=[y("g",{transform:"matrix(2.04108e-17,-0.333333,0.222222,1.36072e-17,21.3333,15.9989)"},[y("path",{d:"M23.997,-42C47.903,-23.457 47.997,12 47.997,12L-0.003,12L-0.003,-96C-0.003,-96 0.091,-60.543 23.997,-42Z",style:{fill:"var(--MI_THEME-panel)"}})],-1)])],2)),y("button",{class:f([r.$style.tabMenuButton,"_button"]),onClick:ge(s,["stop"])},[...u[4]||(u[4]=[y("i",{class:"ti ti-rectangle"},null,-1)])],2),y("button",{class:f([r.$style.tabMenuButton,"_button"]),onClick:ge(a,["stop"])},[...u[5]||(u[5]=[y("i",{class:"ti ti-x"},null,-1)])],2)],2)):I("",!0),v>0?(c(),g("div",{key:1,class:f(r.$style.tabBorder)},null,2)):I("",!0),y("div",{class:f([r.$style.tabContent,"_pageContainer"]),onClick:u[1]||(u[1]=ge(()=>{},["stop"]))},[(c(),q(Io,{timeout:0},{fallback:J(()=>[W(l)]),default:J(()=>[(c(),q(kt(d.component),Jt({ref_for:!0},Object.fromEntries(d.props)),null,16))]),_:2},1024))],2)],2)],6))),128))]),_:1},8,["enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass","moveClass","class"])}}}),Fx="x8jTS",Bx="xnJSE",Px="xsceQ",Rx="x3ud5",Lx="xnS8n",Nx="xBQM4",Ox="xexNU",jx="xvZGv",Vx="xA1Ua",zx="xCxew",Hx="x332l",Ux="xDLTE",qx="xu4pt",Wx="xnzwq",Kx={transition_x_move:Fx,tabBg:Bx,transition_x_enterActive:Px,transition_x_leaveActive:Rx,tabFg:Lx,transition_x_enterFrom:Nx,transition_x_leaveTo:Ox,tabs:jx,tab:Vx,tabContent:zx,tabMenu:Hx,tabMenuShape:Ux,tabBorder:qx,tabMenuButton:Wx},Jx={$style:Kx},Gx=re(Sx,[["__cssModules",Jx]]),Yx=["src"],Xx=ne({__name:"MkError",emits:["retry"],setup(e,{emit:t}){const n=t;return(i,o)=>(c(),q(bt,{name:_(A).s.animation?"_transition_zoom":"",appear:""},{default:J(()=>[y("div",{class:f(i.$style.root)},[y("img",{class:f(i.$style.img),src:_(Yl),draggable:"false"},null,10,Yx),y("p",{class:f(i.$style.text)},[o[1]||(o[1]=y("i",{class:"ti ti-alert-triangle"},null,-1)),ie(" "+M(_(w).ts.somethingHappened),1)],2),W(dt,{class:f(i.$style.button),onClick:o[0]||(o[0]=()=>n("retry"))},{default:J(()=>[ie(M(_(w).ts.retry),1)]),_:1},8,["class"])],2)]),_:1},8,["name"]))}}),Qx="xDkv3",Zx="x1Khc",eT="xmEJE",tT="xkFcG",nT={root:Qx,text:Zx,button:eT,img:tT},iT={$style:nT},oT=re(Xx,[["__cssModules",iT]]);let Tc=!he.googleAnalyticsId;const sT=1e3,oo=[];let la=null;function $s(e){Tc||(oo.push(e),la===null&&(la=window.setTimeout(()=>{aT()},sT)))}function aT(){if(oo.length===0)return;const e=oo.splice(0,oo.length);la=null;const t=ee.getItemAsJson("gtagConsent");if(!t||t.ad_user_data!=="granted"){console.log("Usage report is not sent because the user has not consented to sharing data about ad interactions."),Tc=!0;return}const n=()=>{window.fetch("/api/usage",{method:"POST",body:JSON.stringify(e),cache:"no-cache",credentials:"include",keepalive:!0,headers:{"Content-Type":"application/json","X-Client-Transaction-Id":Bn("misskey")}})};
41if("serviceWorker"in navigator){if(navigator.serviceWorker.controller){navigator.serviceWorker.controller.postMessage({type:"usage-report",payload:e});return}navigator.serviceWorker.ready.then(i=>{if(!i.active){n();return}i.active.postMessage({type:"usage-report",payload:e})}).catch(()=>{n()});return}n()}const rT={key:0},lT={style:{display:"block"}},uT={style:{display:"block"}},cT=ne({__name:"MkAd",props:{preferForms:{},specify:{}},setup(e){const t=e,n=F(!1),i=()=>{n.value=!n.value},o=G(()=>A.s.displayOfSensitiveAds==="filtered"||Xe.value===!1),s=()=>{if(t.specify)return t.specify;const k=(o.value?he.ads.filter(R=>!R.isSensitive):he.ads).map(R=>z.s.mutedAds.includes(R.id)?{...R,ratio:0}:R),h=k.filter(R=>R.ratio!==0),b=k.filter(R=>R.ratio===0);let E;const T=h.filter(R=>t.preferForms.includes(R.place));if(T.length!==0?E=T:E=b.filter(R=>t.preferForms.includes(R.place)),E.length===0){const R=h.filter(Q=>!t.preferForms.includes(Q.place));R.length!==0?E=R:E=b.filter(Q=>!t.preferForms.includes(Q.place))}if(E.length===0)return null;const P=E.reduce((R,Q)=>R+Q.ratio,0);if(P===0)return E[Math.floor(Math.random()*E.length)];const H=Math.random()*P;let L=0;for(const R of E){if(H>=L&&H<=L+R.ratio)return R;L+=R.ratio}return null},a=F(s()),r=G(()=>a.value?.url.startsWith(mt)),u=G(()=>!A.s.forceShowAds&&S&&S.policies.canHideAds&&t.specify==null?!0:a.value?.isSensitive?A.s.displayOfSensitiveAds==="filtered"?!0:Xe.value===!1:!1),l=G(()=>{switch(a.value?.place){case"horizontal":return{width:600,height:80};case"horizontal-big":return{width:600,height:250};case"vertical":return{width:300,height:450};default:return{width:300,height:300}}});function d(){return a.value?.isSensitive?Xe.value!==!0?!0:A.s.displayOfSensitiveAds!=="always":!1}const v=F(d());le(a,()=>{v.value=d()}),le([()=>A.s.displayOfSensitiveAds,()=>Xe.value],()=>{v.value=d()}),le([o,a],()=>{t.specify==null&&o.value&&a.value?.isSensitive&&(a.value=s(),n.value=!1)},{immediate:!0});function p(){a.value!=null&&(z.s.mutedAds.includes(a.value.id)||(z.push("mutedAds",a.value.id),qa(),a.value=s(),n.value=!1))}function C(){a.value!=null&&$s({t:Math.floor(Date.now()/1e3),e:"a",i:a.value.id,a:"c"})}async function D(m){if(v.value&&!(a.value==null||!a.value.isSensitive)&&(m.preventDefault(),m.stopPropagation(),A.s.displayOfSensitiveAds!=="filtered")){if(Xe.value!==!0&&!await Fi()){t.specify==null&&(a.value=s(),n.value=!1);return}v.value=!1}}return je(()=>{u.value||a.value==null||$s({t:Math.floor(Date.now()/1e3),e:"a",i:a.value.id,a:"v"})}),Kt(()=>{u.value||a.value==null||$s({t:Math.floor(Date.now()/1e3),e:"a",i:a.value.id,a:"v"})}),(m,k)=>a.value&&!u.value?(c(),g("div",rT,[n.value?(c(),g("div",{key:1,class:f(m.$style.menu)},[y("div",null,"Ads by "+M(_(He)),1),a.value.ratio!==0?(c(),q(dt,{key:0,class:f(m.$style.menuButton),onClick:p},{default:J(()=>[ie(M(_(w).ts._ad.reduceFrequencyOfThisAd),1)]),_:1},8,["class"])):I("",!0),y("button",{class:"_textButton",onClick:i},M(_(w).ts._ad.back),1)],2)):(c(),g("div",{key:0,class:f([m.$style.main,{[m.$style.form_square]:a.value.place==="square",[m.$style.form_horizontal]:a.value.place==="horizontal",[m.$style.form_horizontalBig]:a.value.place==="horizontal-big",[m.$style.form_vertical]:a.value.place==="vertical"}])},[(c(),q(kt(r.value?"MkA":"a"),Jt({class:m.$style.link},r.value?{to:a.value.url.substring(_(mt).length)}:{href:a.value.url,rel:"nofollow noopener",target:"_blank"},{onClick:k[0]||(k[0]=h=>v.value?D(h):C())}),{default:J(()=>[y("div",{class:f([m.$style.imgBox,a.value.isSensitive&&_(A).s.highlightSensitiveMedia&&m.$style.sensitive])},[W(jo,{class:f(m.$style.img),hash:a.value.imageBlurhash,src:v.value?null:a.value.imageUrl,forceBlurhash:v.value,cover:!1,width:l.value.width,height:l.value.height,style:Ge(v.value?"filter: brightness(0.7);":null)},null,8,["class","hash","src","forceBlurhash","width","height","style"]),v.value?(c(),g("div",{key:0,class:f(m.$style.hiddenText)},[y("div",{class:f(m.$style.hiddenTextWrapper)},[y("b",lT,[k[1]||(k[1]=y("i",{class:"ti ti-eye-exclamation"},null,-1)),ie(" "+M(_(w).ts.sensitiveAd),1)]),y("span",uT,M(_(w).ts.clickToShow),1)],2)],2)):I("",!0)],2),y("button",{class:f(["_button",m.$style.i]),onClick:ge(i,["prevent","stop"])},[y("i",{class:f([m.$style.iIcon,"ti ti-info-circle"])},null,2)],2)]),_:1},16,["class"]))],2))])):I("",!0)}}),dT="x6MSe",fT="xuHnP",mT="xbe9n",hT="xfRuI",pT="xnli4",vT="x9AXF",gT="xAvxQ",yT="x3LVL",wT="xwubl",bT="xtQ2b",_T="xsHfl",kT="x7qz0",DT="xBNDX",ET="xv7mu",CT="xlaHL",AT={main:dT,form_square:fT,link:mT,imgBox:hT,form_horizontal:pT,form_horizontalBig:vT,form_vertical:gT,img:yT,i:wT,iIcon:bT,hiddenText:_T,hiddenTextWrapper:kT,sensitive:DT,menu:ET,menuButton:CT},$T={$style:AT},xT=re(cT,[["__cssModules",$T]]),TT=["onMousedown","onClick"],MT=ne({__name:"MkPageHeader.tabs",props:{tabs:{default:()=>[]},tab:{},rootEl:{}},emits:["update:tab","tabClick"],setup(e,{emit:t}){const n=e,i=t,o=Ee("el"),s=Ee("tabHighlightEl"),a={};function r(h,b){h.key&&i("update:tab",h.key)}function u(h,b){i("tabClick",h.key),h.onClick&&(b.preventDefault(),b.stopPropagation(),h.onClick(b)),h.key&&i("update:tab",h.key)}function l(){const h=n.tab?a[n.tab]:void 0;if(h&&s.value?.parentElement){const b=s.value.parentElement.getBoundingClientRect(),E=h.getBoundingClientRect();s.value.style.width=E.width+"px",s.value.style.left=E.left-b.left+s.value.parentElement.scrollLeft+"px"}}function d(h){return h.deltaY!==0&&h.deltaX===0&&(h.preventDefault(),h.stopPropagation(),h.currentTarget.scrollBy({left:h.deltaY,behavior:"instant"})),!1}let v=!1;async function p(h){if(!(h instanceof HTMLElement))return;v=!0;const b=h.getBoundingClientRect().width;h.style.width="0",h.style.paddingLeft="0",h.offsetWidth,h.style.width=`${b}px`,h.style.paddingLeft="",Pe(()=>{v=!1}),window.setTimeout(l,170)}function C(h){h instanceof HTMLElement}async function D(h){if(!(h instanceof HTMLElement))return;const b=h.getBoundingClientRect().width;h.style.width=`${b}px`,h.style.paddingLeft="",h.offsetWidth,h.style.width="0",h.style.paddingLeft="0"}function m(h){h instanceof HTMLElement&&(h.style.width="")}let k;return je(()=>{le([()=>n.tab,()=>n.tabs],()=>{Pe(()=>{v||l()})},{immediate:!0}),n.rootEl&&(k=new ResizeObserver((h,b)=>{window.document.body.contains(o.value)&&Pe(()=>l())}),k.observe(n.rootEl))}),it(()=>{k&&k.disconnect()}),(h,b)=>{const E=Ue("tooltip");return c(),g("div",{ref_key:"el",ref:o,class:f(h.$style.tabs),onWheel:d},[y("div",{class:f(h.$style.tabsInner)},[(c(!0),g(pe,null,Re(e.tabs,T=>ve((c(),g("button",{ref_for:!0,ref:P=>a[T.key]=P,class:f(["_button",[h.$style.tab,{[h.$style.active]:T.key!=null&&T.key===n.tab,[h.$style.animate]:_(A).s.animation}]]),onMousedown:P=>r(T),onClick:P=>u(T,P)},[y("div",{class:f(h.$style.tabInner)},[T.icon?(c(),g("i",{key:0,class:f([h.$style.tabIcon,T.icon])},null,2)):I("",!0),!T.iconOnly||!_(A).s.animation&&T.key===e.tab?(c(),g("div",{key:1,class:f(h.$style.tabTitle)},M(T.title),3)):(c(),q(bt,{key:2,mode:"in-out",onEnter:p,onAfterEnter:C,onLeave:D,onAfterLeave:m},{default:J(()=>[ve(y("div",{class:f([h.$style.tabTitle,h.$style.animate])},M(T.title),3),[[_t,T.key===e.tab]])]),_:2},1024))],2)],42,TT)),[[E,T.title,void 0,{noDelay:!0}]])),256))],2),y("div",{ref_key:"tabHighlightEl",ref:s,class:f([h.$style.tabHighlight,{[h.$style.animate]:_(A).s.animation}])},null,2)],34)}}}),IT="xveNq",ST="x5vNM",FT="xo5lq",BT="xj7PE",PT="xvOIQ",RT="xjQuN",LT="xn4Pz",NT="xqAei",OT="xjgqg",jT={tabs:IT,tabsInner:ST,tab:FT,active:BT,animate:PT,tabInner:RT,tabIcon:LT,tabTitle:NT,tabHighlight:OT},VT={$style:jT},gl=re(MT,[["__cssModules",VT]]),zT={key:1},HT=["onClick"],UT={key:0},qT=ne({__name:"MkPageHeader",props:{overridePageMetadata:{},tabs:{default:()=>[]},tab:{},actions:{},thin:{type:Boolean},hideTitle:{type:Boolean},displayMyAvatar:{type:Boolean}},emits:["update:tab"],setup(e,{emit:t}){const n=e,i=t,o=tt(ze.pageMetadata,F(null)),s=G(()=>n.overridePageMetadata??o.value),a=G(()=>tt("shouldOmitHeaderTitle",!1)||n.hideTitle),r=n.thin||tt("shouldHeaderThin",!1),u=Ee("el"),l=F(!1),d=G(()=>n.tabs.length>0),v=G(()=>n.actions?l.value?n.actions.filter(E=>!E.hideWhenNarrow):n.actions:[]),p=G(()=>v.value.length>0),C=G(()=>!a.value||d.value||p.value),D=E=>{E.stopPropagation()},m=()=>{u.value&&ah(u.value,{behavior:"smooth"})};function k(E){Oa({withExtraOperation:!0},E)}function h(){m()}let b;return je(()=>{u.value&&u.value.parentElement&&(l.value=u.value.parentElement.offsetWidth<500,b=new ResizeObserver((E,T)=>{u.value&&u.value.parentElement&&window.document.body.contains(u.value)&&(l.value=u.value.parentElement.offsetWidth<500)}),b.observe(u.value.parentElement))}),it(()=>{b&&b.disconnect()}),(E,T)=>{const P=we("MkAvatar"),H=we("MkUserName"),L=Ue("tooltip");return C.value?(c(),g("div",{key:0,ref_key:"el",ref:u,class:f([E.$style.root])},[y("div",{class:f([E.$style.upper,{[E.$style.slim]:l.value,[E.$style.thin]:_(r)}])},[!_(r)&&l.value&&n.displayMyAvatar&&_(S)?(c(),g("div",{key:0,class:f(["_button",E.$style.buttonsLeft]),onClick:k},[W(P,{class:f(E.$style.avatar),user:_(S)},null,8,["class","user"])],2)):!_(r)&&l.value&&!a.value?(c(),g("div",{key:1,class:f(E.$style.buttonsLeft)},null,2)):I("",!0),s.value?(c(),g(pe,{key:2},[a.value?I("",!0):(c(),g("div",{key:0,class:f(E.$style.titleContainer),onClick:m},[s.value.avatar?(c(),g("div",{key:0,class:f(E.$style.titleAvatarContainer)},[W(P,{class:f(E.$style.titleAvatar),user:s.value.avatar,indicator:""},null,8,["class","user"])],2)):s.value.icon?(c(),g("i",{key:1,class:f([E.$style.titleIcon,s.value.icon])},null,2)):I("",!0),y("div",{class:f(E.$style.title)},[s.value.userName?(c(),q(H,{key:0,user:s.value.userName,nowrap:!0},null,8,["user"])):s.value.title?(c(),g("div",zT,M(s.value.title),
411)):I("",!0),s.value.subtitle?(c(),g("div",{key:2,class:f(E.$style.subtitle)},M(s.value.subtitle),3)):I("",!0)],2)],2)),!l.value||a.value?(c(),q(gl,{key:1,class:f(E.$style.tabs),tab:e.tab,tabs:e.tabs,rootEl:u.value,"onUpdate:tab":T[0]||(T[0]=R=>i("update:tab",R)),onTabClick:h},null,8,["class","tab","tabs","rootEl"])):I("",!0)],64)):I("",!0),!_(r)&&l.value&&!a.value||p.value?(c(),g("div",{key:3,class:f(E.$style.buttonsRight)},[(c(!0),g(pe,null,Re(v.value,R=>ve((c(),g("button",{class:f(["_button",[E.$style.button,{[E.$style.highlighted]:R.highlighted}]]),onClick:ge(R.handler,["stop"]),onTouchstart:D},[R.label?(c(),g("span",UT,M(R.label),1)):I("",!0),y("i",{class:f(R.icon)},null,2)],42,HT)),[[L,R.text,void 0,{noDelay:!0}]])),256))],2)):I("",!0)],2),l.value&&!a.value&&d.value?(c(),g("div",{key:0,class:f([E.$style.lower,{[E.$style.slim]:l.value,[E.$style.thin]:_(r)}])},[W(gl,{class:f(E.$style.tabs),tab:e.tab,tabs:e.tabs,rootEl:u.value,"onUpdate:tab":T[1]||(T[1]=R=>i("update:tab",R)),onTabClick:h},null,8,["class","tab","tabs","rootEl"])],2)):I("",!0)],2)):I("",!0)}}}),WT="x5oMj",KT="xeHR5",JT="xjond",GT="xzevE",YT="xkPjN",XT="xbw4c",QT="x58RN",ZT="xxPg1",eM="xlwg4",tM="xfMTE xbw4c",nM="x5oN2 xbw4c",iM="x3w6Z",oM="xbyfy",sM="xpDZS",aM="xy0IK",rM="xxK6k",lM="xsM5u",uM="xfdH7",cM="xpJo5",dM="xck82",fM="xqdIZ",mM={root:WT,upper:KT,lower:JT,tabs:GT,thin:YT,buttons:XT,button:QT,slim:ZT,titleContainer:eM,buttonsLeft:tM,buttonsRight:nM,avatar:iM,highlighted:oM,fullButton:sM,titleAvatarContainer:aM,titleAvatar:rM,titleIcon:lM,title:uM,subtitle:cM,activeTab:dM,chevron:fM},hM={$style:mM},pM=re(qT,[["__cssModules",hM]]),vM=["data-sticky-container-header-height","data-sticky-container-footer-height"],gM=ne({__name:"MkStickyContainer",setup(e,{expose:t}){Mo(C=>({v1b64da5c:a.value+"px",v7bcdb088:l.value+"px"}));const n=Ee("rootEl"),i=Ee("headerEl"),o=Ee("footerEl"),s=F(),a=F(0),r=tt(ze.currentStickyTop,F(0));lt(ze.currentStickyTop,a);const u=F(),l=F(0),d=tt(ze.currentStickyBottom,F(0));lt(ze.currentStickyBottom,l);const v=()=>{i.value!=null&&(a.value=r.value+i.value.offsetHeight,s.value=i.value.offsetHeight.toString()),o.value!=null&&(l.value=d.value+o.value.offsetHeight,u.value=o.value.offsetHeight.toString())},p=new ResizeObserver(()=>{window.setTimeout(()=>{v()},100)});return je(()=>{v(),le([r,d],v),i.value!=null&&p.observe(i.value),o.value!=null&&p.observe(o.value)}),it(()=>{p.disconnect()}),t({rootEl:n}),(C,D)=>(c(),g("div",{ref_key:"rootEl",ref:n},[y("div",{ref_key:"headerEl",ref:i,class:f(C.$style.header)},[Te(C.$slots,"header")],2),y("div",{class:f(C.$style.body),"data-sticky-container-header-height":s.value,"data-sticky-container-footer-height":u.value},[Te(C.$slots,"default")],10,vM),y("div",{ref_key:"footerEl",ref:o,class:f(C.$style.footer)},[Te(C.$slots,"footer")],2)],512))}}),yM="xbIyY",wM="xzVgg",bM="xy5pl",_M={body:yM,header:wM,footer:bM},kM={$style:_M},DM=re(gM,[["__cssModules",kM]]),EM=ne({__name:"MkLazy",setup(e){const t=Ee("rootEl"),n=F(!1),i=new IntersectionObserver(o=>{o.some(s=>s.isIntersecting)&&(n.value=!0)});return je(()=>{Pe(()=>{i.observe(t.value)})}),Kt(()=>{Pe(()=>{i.observe(t.value)})}),jt(()=>{i.disconnect()}),(o,s)=>(c(),g("div",{ref_key:"rootEl",ref:t,class:f(o.$style.root)},[n.value?Te(o.$slots,"default",{key:1}):(c(),g("div",{key:0,class:f(o.$style.placeholder)},null,2))],2))}}),CM="xuz3q",AM="xjkxc",$M={root:CM,placeholder:AM},xM={$style:$M},TM=re(EM,[["__cssModules",xM]]);function MM(e){let t=null,n=!0;le(e,o=>{if(!o)return;const s=()=>
41{if(!o||!n)return;const r=o.getBoundingClientRect().height/2,u=o.querySelectorAll("[data-scroll-anchor]");for(let l=u.length-1;l>-1;l--){const d=u[l],v=d.getBoundingClientRect(),p=v.top,C=v.bottom;if(p<=r&&C>=r){t=d.getAttribute("data-scroll-anchor");break}}};o.addEventListener("scroll",Ou(1e3,s),{passive:!0})},{immediate:!0});const i=()=>{if(!t)return;const o=e.value;if(!o)return;const s=o.querySelector(`[data-scroll-anchor="${t}"]`);s&&s.scrollIntoView({behavior:"instant",block:"center",inline:"center"})};ti(()=>{n=!1}),Kt(()=>{i(),Pe(()=>{i(),window.setTimeout(()=>{i(),n=!0},100)})})}const IM=20,SM=70,FM=75,BM=120,PM=ne({__name:"MkSwiper",props:wi({tabs:{}},{tab:{},tabModifiers:{}}),emits:wi(["swiped"],["update:tab"]),setup(e,{emit:t}){const n=Ee("rootEl"),i=yi(e,"tab"),o=e,s=t,a=G(()=>A.r.enableHorizontalSwipe.value||A.r.animation.value);let r=null,u=null;const l=G(()=>o.tabs.findIndex(b=>b.key===i.value)),d=F(0),v=F(!1);let p=!1;function C(b){A.r.enableHorizontalSwipe.value&&b.touches.length===1&&(k(b.target)||(r=b.touches[0].screenX,u=b.touches[0].screenY))}function D(b){if(!A.r.enableHorizontalSwipe.value||b.touches.length!==1||r==null||u==null||p||k(b.target))return;let E=b.touches[0].screenX-r,T=b.touches[0].screenY-u;if(Math.abs(T)>FM){p=!0,d.value=0,Li.value=!1,window.setTimeout(()=>{v.value=!1},400);return}Math.abs(E)<IM||Math.abs(E)>BM||((l.value===0||o.tabs[l.value-1].onClick)&&(E=Math.min(E,0)),(l.value===o.tabs.length-1||o.tabs[l.value+1].onClick)&&(E=Math.max(E,0)),E!==0&&(Li.value=!0,v.value=!0,Pe(()=>{Math.abs(E-d.value)<1.5||(d.value=E)})))}function m(b){if(p){p=!1;return}if(!A.r.enableHorizontalSwipe.value||b.touches.length!==0||r==null||!Li.value||k(b.target))return;const E=b.changedTouches[0].screenX-r;Math.abs(E)>SM&&(E>0?o.tabs[l.value-1]&&!o.tabs[l.value-1].onClick&&(i.value=o.tabs[l.value-1].key,s("swiped",o.tabs[l.value-1].key,"right")):o.tabs[l.value+1]&&!o.tabs[l.value+1].onClick&&(i.value=o.tabs[l.value+1].key,s("swiped",o.tabs[l.value+1].key,"left"))),d.value=0,Li.value=!1,window.setTimeout(()=>{v.value=!1},400)}function k(b){if(["INPUT","TEXTAREA"].includes(b.tagName)||b.isContentEditable||b.scrollWidth>b.clientWidth)return!0;const E=window.getComputedStyle(b);return["absolute","fixed","sticky"].includes(E.position)||["scroll","auto"].includes(E.overflowX)||E.touchAction==="pan-x"?!0:b.parentElement&&b.parentElement!==n.value?k(b.parentElement):!1}const h=F(void 0);return le(i,(b,E)=>{const T=o.tabs.findIndex(H=>H.key===b),P=o.tabs.findIndex(H=>H.key===E);P>=0&&T&&P<T?h.value="swipeAnimationLeft":h.value="swipeAnimationRight",window.setTimeout(()=>{h.value=void 0},400)}),(b,E)=>(c(),g("div",{ref_key:"rootEl",ref:n,class:f([b.$style.transitionRoot,{[b.$style.enableAnimation]:a.value}]),onTouchstartPassive:C,onTouchmovePassive:D,onTouchendPassive:m},[W(bt,{class:f([b.$style.transitionChildren,{[b.$style.swiping]:v.value}]),enterActiveClass:b.$style.swipeAnimation_enterActive,leaveActiveClass:b.$style.swipeAnimation_leaveActive,enterFromClass:h.value==="swipeAnimationLeft"?b.$style.swipeAnimationLeft_enterFrom:b.$style.swipeAnimationRight_enterFrom,leaveToClass:h.value==="swipeAnimationLeft"?b.$style.swipeAnimationLeft_leaveTo:b.$style.swipeAnimationRight_leaveTo,style:Ge(`--swipe: ${d.value}px;`)},{default:J(()=>[(c(),g("div",{key:i.value},[Te(b.$slots,"default")]))]),_:3},8,["class","enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass","style"])],34))}}),RM="x3PCG",LM="xzaI0",NM="xxHbJ",OM="xgkxN",jM="xoBpq",VM="xxDq2",zM="xlDKY",HM="x8aON",UM="xarAT",qM="xa3PH",WM={transitionRoot:RM,transitionChildren:LM,enableAnimation:NM,swipeAnimation_enterActive:OM,swipeAnimation_leaveActive:jM,swipeAnimationRight_leaveTo:VM,swipeAnimationLeft_enterFrom:zM,swipeAnimationRight_enterFrom:HM,swipeAnimationLeft_leaveTo:UM,swiping:qM},KM={$style:WM},JM=re(PM,[["__cssModules",KM]]),GM=ne({__name:"PageWithHeader",props:wi({overridePageMetadata:{},tabs:{},tab:{},actions:{},thin:{type:Boolean},hideTitle:{type:Boolean},displayMyAvatar:{type:Boolean},reversed:{type:Boolean,default:!1},swipable:{type:Boolean,default:!0}},{tab:{},tabModifiers:{}}),emits:["update:tab"],setup(e,{expose:t}){const n=e,i=G(()=>{const{reversed:u,...l}=n;return l}),o=yi(e,"tab"),s=Ee("rootEl");MM(s),hc().useListener("same",()=>{r()});function r(){s.value&&xa(s.value,{top:0,behavior:"smooth"})}return t({scrollToTop:r}),(u,l)=>{const d=we("MkPageHeader"),v=we("MkStickyContainer");return c(),g("div",{ref_key:"rootEl",ref:s,class:f([u.$style.root,e.reversed?"_pageScrollableReversed":"_pageScrollable"])},[W(v,null,{header:J(()=>[W(d,Jt({tab:o.value,"onUpdate:tab":l[0]||(l[0]=p=>o.value=p)},i.value),null,16,["tab"])]),footer:J(()=>[Te(u.$slots,"footer")]),default:J(()=>[y("div",{class:f(u.$style.body)},[e.swipable&&(n.tabs?.length??1)>1?(c(),q(JM,{key:0,tab:o.value,"onUpdate:tab":l[1]||(l[1]=p=>o.value=p),class:f(u.$style.swiper),tabs:n.tabs},{default:J(()=>[Te(u.$slots,"default")]),_:3},8,["tab","class","tabs"])):Te(u.$slots,"default",{key:1})],2)]),_:3})],2)}}}),YM="xfYNC",XM="xmahJ",QM={body:YM,swiper:XM},ZM={$style:QM},eI=re(GM,[["__cssModules",ZM]]),tI=ne({__name:"MkAnimBg",props:{scale:{default:1},focus:{default:1}},setup(e){const t=Ee("canvasEl"),n=e;function i(a,r,u){const l=a.createShader(r);if(l==null)return null;try{a.shaderSource(l,u),a.compileShader(l)}catch(d){return alert(`failed to compile shader: ${d} ${a.getShaderInfoLog(l)}`),a.deleteShader(l),null}return a.getShaderParameter(l,a.COMPILE_STATUS)?l:(alert(`falied to compile shader: ${a.getShaderInfoLog(l)}`),a.deleteShader(l),null)}function o(a,r,u){const l=i(a,a.VERTEX_SHADER,r),d=i(a,a.FRAGMENT_SHADER,u),v=a.createProgram();return v==null||l==null||d==null?null:(a.attachShader(v,l),a.attachShader(v,d),a.linkProgram(v),a.getProgramParameter(v,a.LINK_STATUS)?v:(alert(`failed to init shader: ${a.getProgramInfoLog(v)}`),null))}let s=null;return je(()=>{const a=t.value;let r=a.offsetWidth,u=a.offsetHeight;a.width=r,a.height=u;const l=a.getContext("webgl",{premultipliedAlpha:!0});if(l==null)return;l.clearColor(0,0,0,0),l.clear(l.COLOR_BUFFER_BIT);const d=l.createBuffer();l.bindBuffer(l.ARRAY_BUFFER,d);const v=o(l,` 42 attribute vec2 vertex; 43 44 uniform vec2 u_scale; 45 46 varying vec2 v_pos; 47 48 void main() { 49 gl_Position = vec4(vertex, 0.0, 1.0); 50 v_pos = vertex / u_scale; 51 } 52 `,` 53 precision mediump float; 54 55 vec3 mod289(vec3 x) { 56 return x - floor(x * (1.0 / 289.0)) * 289.0; 57 } 58
59 vec2 mod289(vec2 x) { 60 return x - floor(x * (1.0 / 289.0)) * 289.0; 61 } 62 63 vec3 permute(vec3 x) { 64 return mod289(((x*34.0)+1.0)*x); 65 } 66 67 float snoise(vec2 v) { 68 const vec4 C = vec4(0.211324865405187, 69 0.366025403784439, 70 -0.577350269189626, 71 0.024390243902439); 72 73 vec2 i = floor(v + dot(v, C.yy) ); 74 vec2 x0 = v - i + dot(i, C.xx); 75 76 vec2 i1; 77 i1 = (x0.x > x0.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0); 78 vec4 x12 = x0.xyxy + C.xxzz; 79 x12.xy -= i1; 80 81 i = mod289(i); 82 vec3 p = permute( permute( i.y + vec3(0.0, i1.y, 1.0 )) 83 + i.x + vec3(0.0, i1.x, 1.0 )); 84 85 vec3 m = max(0.5 - vec3(dot(x0,x0), dot(x12.xy,x12.xy), dot(x12.zw,x12.zw)), 0.0); 86 m = m*m ; 87 m = m*m ; 88 89 vec3 x = 2.0 * fract(p * C.www) - 1.0; 90 vec3 h = abs(x) - 0.5; 91 vec3 ox = floor(x + 0.5); 92 vec3 a0 = x - ox; 93 94 m *= 1.79284291400159 - 0.85373472095314 * ( a0*a0 + h*h ); 95 96 vec3 g; 97 g.x = a0.x * x0.x + h.x * x0.y; 98 g.yz = a0.yz * x12.xz + h.yz * x12.yw; 99 return 130.0 * dot(m, g); 100 } 101 102 uniform float u_time; 103 uniform vec2 u_resolution; 104 uniform float u_spread; 105 uniform float u_speed; 106 uniform float u_warp; 107 uniform float u_focus; 108 uniform float u_itensity; 109 110 varying vec2 v_pos; 111 112 float circle( in vec2 _pos, in vec2 _origin, in float _radius ) { 113 float SPREAD = 0.7 * u_spread; 114 float SPEED = 0.00055 * u_speed; 115 float WARP = 1.5 * u_warp; 116 float FOCUS = 1.15 * u_focus; 117 118 vec2 dist = _pos - _origin; 119 120 float distortion = snoise( vec2( 121 _pos.x * 1.587 * WARP + u_time * SPEED * 0.5, 122 _pos.y * 1.192 * WARP + u_time * SPEED * 0.3 123 ) ) * 0.5 + 0.5; 124 125 float feather = 0.01 + SPREAD * pow( distortion, FOCUS ); 126 127 return 1.0 - smoothstep( 128 _radius - ( _radius * feather ), 129 _radius + ( _radius * feather ), 130 dot( dist, dist ) * 4.0 131 ); 132 } 133 134 void main() { 135 vec3 green = vec3( 1.0 ) - vec3( 153.0 / 255.0, 211.0 / 255.0, 221.0 / 255.0 ); 136 vec3 purple = vec3( 1.0 ) - vec3( 195.0 / 255.0, 165.0 / 255.0, 242.0 / 255.0 ); 137 vec3 orange = vec3( 1.0 ) - vec3( 255.0 / 255.0, 156.0 / 255.0, 136.0 / 255.0 ); 138 139 float ratio = u_resolution.x / u_resolution.y; 140 141 vec2 uv = vec2( v_pos.x, v_pos.y / ratio ) * 0.5 + 0.5; 142 143 vec3 color = vec3( 0.0 ); 144 145 float greenMix = snoise( v_pos * 1.31 + u_time * 0.8 * 0.00017 ) * 0.5 + 0.5; 146 float purpleMix = snoise( v_pos * 1.26 + u_time * 0.8 * -0.0001 ) * 0.5 + 0.5; 147 float orangeMix = snoise( v_pos * 1.34 + u_time * 0.8 * 0.00015 ) * 0.5 + 0.5; 148 149 float alphaOne = 0.35 + 0.65 * pow( snoise( vec2( u_time * 0.00012, uv.x ) ) * 0.5 + 0.5, 1.2 ); 150 float alphaTwo = 0.35 + 0.65 * pow( snoise( vec2( ( u_time + 1561.0 ) * 0.00014, uv.x ) ) * 0.5 + 0.5, 1.2 ); 151 float alphaThree = 0.35 + 0.65 * pow( snoise( vec2( ( u_time + 3917.0 ) * 0.00013, uv.x ) ) * 0.5 + 0.5, 1.2 ); 152 153 color += vec3( circle( uv, vec2( 0.22 + sin( u_time * 0.000201 ) * 0.06, 0.80 + cos( u_time * 0.000151 ) * 0.06 ), 0.15 ) ) * alphaOne * ( purple * purpleMix + orange * orangeMix ); 154 color += vec3( circle( uv, vec2( 0.90 + cos( u_time * 0.000166 ) * 0.06, 0.42 + sin( u_time * 0.000138 ) * 0.06 ), 0.18 ) ) * alphaTwo * ( green * greenMix + purple * purpleMix ); 155 color += vec3( circle( uv, vec2( 0.19 + sin( u_time * 0.000112 ) * 0.06, 0.25 + sin( u_time * 0.000192 ) * 0.06 ), 0.09 ) ) * alphaThree * ( orange * orangeMix ); 156 157 color *= u_itensity + 1.0 * pow( snoise( vec2( v_pos.y + u_time * 0.00013, v_pos.x + u_time * -0.00009 ) ) * 0.5 + 0.5, 2.0 ); 158 159 vec3 inverted = vec3( 1.0 ) - color; 160 gl_FragColor = vec4( color, max(max(color.x, color.y), color.z) ); 161 } 162 `);if(v==null)return;l.useProgram(v);const p=l.getUniformLocation(v,"u_resolution"),C=l.getUniformLocation(v,"u_time"),D=l.getUniformLocation(v,"u_spread"),m=l.getUniformLocation(v,"u_speed"),k=l.getUniformLocation(v,"u_warp"),h=l.getUniformLocation(v,"u_focus"),b=l.getUniformLocation(v,"u_itensity"),E=l.getUniformLocation(v,"u_scale");l.uniform2fv(p,[a.width,a.height]),l.uniform1f(D,1),l.uniform1f(m,1),l.uniform1f(k,1),l.uniform1f(h,n.focus),l.uniform1f(b,.5),l.uniform2fv(E,[n.scale,n.scale]);const T=l.getAttribLocation(v,"vertex");l.enableVertexAttribArray(T),l.vertexAttribPointer(T,2,l.FLOAT,!1,0,0);const P=[1,1,-1,1,1,-1,-1,-1];l.bufferData(l.ARRAY_BUFFER,new Float32Array(P),l.DYNAMIC_DRAW);{let H=function(L){let R=!1;Math.abs(u-a.offsetHeight)>2&&(u=a.offsetHeight,a.height=u,R=!0),Math.abs(r-a.offsetWidth)>2&&(r=a.offsetWidth,a.width=r,R=!0),R&&l&&(l.uniform2fv(p,[r,u]),l.viewport(0,0,r,u)),l.uniform1f(C,L),l.drawArrays(l.TRIANGLE_STRIP,0,4),s=window.requestAnimationFrame(H)};s=window.requestAnimationFrame(H)}}),it(()=>{s&&window.cancelAnimationFrame(s)}),(a,r)=>(c(),g("canvas",{ref_key:"canvasEl",ref:t,style:{display:"block",width:"100%",height:"100%","pointer-events":"none"}},null,512))}}),nI=ne({__name:"PageWithAnimBg",setup(e){return(t,n)=>(c(),g("div",null,[W(tI,{style:{position:"absolute"}}),y("div",{class:f(["_pageScrollable",t.$style.body])},[Te(t.$slots,"default")],2)]))}}),iI="xwJyN",oI={body:iI},sI={$style:oI},aI=re(nI,[["__cssModules",sI]]),rI=ne({__name:"SearchMarker",props:{markerId:{},label:{},icon:{},keywords:{},children:{},inlining:{}},setup(e){const t=e,n=Ee("root"),i=new MutationObserver(()=>{u()}),o=tt(ze.inAppSearchMarkerId,null),s=G(()=>o?.value??window.location.hash.slice(1)),a=F(t.markerId===s.value),r=G(()=>t.children?.includes(s.value));function u(){if(r.value){const v=window.document.querySelector(`[data-in-app-search-marker-id="${s.value}"]`);a.value=v==null}}le([s,()=>t.children],()=>{t.children!=null&&t.children.length>0&&u()},{flush:"post"});function l(){u(),a.value&&n.value?.scrollIntoView({behavior:"smooth",block:"center"}),n.value!=null&&i.observe(n.value,{childList:!0,subtree:!0})}function d(){i.disconnect()}return je(l),Kt(l),ti(d),jt(d),(v,p)=>(c(),g("div",{ref:"root",class:f([v.$style.root,{[v.$style.highlighted]:a.value}])},[Te(v.$slots,"default",{isParentOfTarget:r.value})],2))}}),lI="x7Bb0",uI="x45Tr",cI="xanNi",dI={root:lI,highlighted:uI,blink:cI},fI={$style:dI},mI=re(rI,[["__cssModules",fI]]),hI={};function pI(e,t){return Te(e.$slots,"default")}const vI=re(hI,[["render",pI]]),gI={};function yI(e,t){return Te(e.$slots,"default")}
162const wI=re(gI,[["render",yI]]),bI={};function _I(e,t){return Te(e.$slots,"default")}const kI=re(bI,[["render",_I]]);function DI(e){for(const[t,n]of Object.entries(EI))e.component(t,n)}const EI={I18n:Mx,RouterView:ac,NestedRouterView:Ix,StackingRouterView:Gx,Mfm:P8,MkA:Ka,MkAcct:L8,MkAvatar:px,MkEmoji:$c,MkCondensedLine:_x,MkCustomEmoji:ra,MkUserName:kx,MkEllipsis:Tx,MkTime:Cc,MkUrl:Ec,MkLoading:xc,MkError:oT,MkAd:xT,MkPageHeader:pM,MkStickyContainer:DM,MkLazy:TM,PageWithHeader:eI,PageWithAnimBg:aI,SearchMarker:mI,SearchLabel:vI,SearchKeyword:wI,SearchIcon:kI},CI=(e,t,n)=>{const i=e[t];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((o,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})};var Mc="light",Ic="Light",Sc="syuilo",Fc="Default light theme",Bc="light",Pc={accent:"#86b300",accentedBg:":alpha<0.15<@accent",love:"#dd2e44",focus:":alpha<0.3<@accent",bg:"#fff",fg:"#5f5f5f",fgHighlighted:":darken<3<@fg",fgOnAccent:"#fff",fgOnWhite:"#333",divider:"rgba(0, 0, 0, 0.1)",indicator:"@accent",panel:":lighten<3<@bg",panelHighlight:":darken<3<@panel",panelHeaderBg:":lighten<3<@panel",panelHeaderFg:"@fg",panelBorder:'" solid 1px var(--MI_THEME-divider)',windowHeader:":alpha<0.85<@panel",popup:":lighten<3<@panel",shadow:"rgba(0, 0, 0, 0.1)",header:":alpha<0.7<@panel",navBg:"@panel",navFg:"@fg",navActive:"@accent",navIndicator:"@indicator",pageHeaderBg:"@bg",pageHeaderFg:"@fg",link:"#44a4c1",hashtag:"#ff9156",mention:"@accent",mentionMe:"@mention",renote:"#229e82",modalBg:"rgba(0, 0, 0, 0.3)",scrollbarHandle:"rgba(0, 0, 0, 0.2)",scrollbarHandleHover:"rgba(0, 0, 0, 0.4)",dateLabelFg:"@fg",infoBg:"#e5f5ff",infoFg:"#72818a",infoWarnBg:"#fff0db",infoWarnFg:"#8f6e31",folderHeaderBg:"rgba(0, 0, 0, 0.05)",folderHeaderHoverBg:"rgba(0, 0, 0, 0.1)",buttonBg:":darken<5<@panel",buttonHoverBg:":darken<10<@panel",buttonGradateA:"@accent",buttonGradateB:":hue<20<@accent",switchBg:"rgba(0, 0, 0, 0.15)",switchOffBg:"rgba(0, 0, 0, 0.1)",switchOffFg:"@panel",switchOnBg:"@accent",switchOnFg:"@fgOnAccent",inputBorder:"rgba(0, 0, 0, 0.1)",inputBorderHover:"rgba(0, 0, 0, 0.2)",driveFolderBg:":alpha<0.3<@accent",badge:"#31b1ce",messageBg:"@bg",success:"#86b300",error:"#ec4137",warn:"#ecb637",codeString:"#b98710",codeNumber:"#0fbbbb",codeBoolean:"#62b70c",deckBg:":darken<3<@bg",htmlThemeColor:"@bg"},Rc={base:"catppuccin-latte"};const Ja={id:Mc,name:Ic,author:Sc,desc:Fc,kind:Bc,props:Pc,codeHighlighter:Rc},AI=Object.freeze(Object.defineProperty({__proto__:null,author:Sc,codeHighlighter:Rc,default:Ja,desc:Fc,id:Mc,kind:Bc,name:Ic,props:Pc},Symbol.toStringTag,{value:"Module"}));var Lc="dark",Nc="Dark",Oc="syuilo",jc="Default dark theme",Vc="dark",zc={accent:"#86b300",accentedBg:":alpha<0.15<@accent",love:"#dd2e44",focus:":alpha<0.3<@accent",bg:"#000",fg:"#dadada",fgHighlighted:":lighten<3<@fg",fgOnAccent:"#fff",fgOnWhite:"#333",divider:"rgba(255, 255, 255, 0.1)",indicator:"@accent",panel:":lighten<3<@bg",panelHighlight:":lighten<3<@panel",panelHeaderBg:":lighten<3<@panel",panelHeaderFg:"@fg",panelBorder:'" solid 1px var(--MI_THEME-divider)',windowHeader:":alpha<0.85<@panel",popup:":lighten<3<@panel",shadow:"rgba(0, 0, 0, 0.3)",header:":alpha<0.7<@panel",navBg:"@panel",navFg:"@fg",navActive:"@accent",navIndicator:"@indicator",pageHeaderBg:"@bg",pageHeaderFg:"@fg",link:"#44a4c1",hashtag:"#ff9156",mention:"@accent",mentionMe:"@mention",renote:"#229e82",modalBg:"rgba(0, 0, 0, 0.5)",scrollbarHandle:"rgba(255, 255, 255, 0.2)",scrollbarHandleHover:"rgba(255, 255, 255, 0.4)",dateLabelFg:"@fg",infoBg:"#253142",infoFg:"#fff",infoWarnBg:"#42321c",infoWarnFg:"#ffbd3e",folderHeaderBg:"rgba(255, 255, 255, 0.05)",folderHeaderHoverBg:"rgba(255, 255, 255, 0.1)",buttonBg:":lighten<5<@panel",buttonHoverBg:":lighten<10<@panel",buttonGradateA:"@accent",buttonGradateB:":hue<20<@accent",switchBg:"rgba(255, 255, 255, 0.15)",switchOffBg:"rgba(255, 255, 255, 0.1)",switchOffFg:":alpha<0.8<@fg",switchOnBg:"@accentedBg",switchOnFg:"@accent",inputBorder:"rgba(255, 255, 255, 0.1)",inputBorderHover:"rgba(255, 255, 255, 0.2)",driveFolderBg:":alpha<0.3<@accent",badge:"#31b1ce",messageBg:"@bg",success:"#86b300",error:"#ec4137",warn:"#ecb637",codeString:"#ffb675",codeNumber:"#cfff9e",codeBoolean:"#c59eff",deckBg:"#000",htmlThemeColor:"@bg"},Hc={base:"one-dark-pro"};const Uc={id:Lc,name:Nc,author:Oc,desc:jc,kind:Vc,props:zc,codeHighlighter:Hc},$I=Object.freeze(Object.defineProperty({__proto__:null,author:Oc,codeHighlighter:Hc,default:Uc,desc:jc,id:Lc,kind:Vc,name:Nc,props:zc},Symbol.toStringTag,{value:"Module"}));var xI=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,TI=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u
1620EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,MI=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
162D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,xs={Space_Separator:xI,ID_Start:TI,ID_Continue:MI},Ze={isSpaceSeparator(e){return typeof e=="string"&&xs.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||xs.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="â"||e==="â"||xs.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}};let ua,ct,en,$o,yn,Ot,ot,Ga,gi;var II=function(t,n){ua=String(t),ct="start",en=[],$o=0,yn=1,Ot=0,ot=void 0,Ga=void 0,gi=void 0;do ot=SI(),PI[ct]();while(ot.type!=="eof");return typeof n=="function"?ca({"":gi},"",n):gi};function ca(e,t,n){const i=e[t];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let o=0;o<i.length;o++){const s=String(o),a=ca(i,s,n);a===void 0?delete i[s]:Object.defineProperty(i,s,{value:a,writable:!0,enumerable:!0,configurable:!0})}else for(const o in i){const s=ca(i,o,n);s===void 0?delete i[o]:Object.defineProperty(i,o,{value:s,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,i)}let Be,Ie,pi,Zt,Oe;function SI(){for(Be="default",Ie="",pi=!1,Zt=1;;){Oe=on();const e=qc[Be]();if(e)return e}}
162function on(){if(ua[$o])return String.fromCodePoint(ua.codePointAt($o))}function Y(){const e=on();return e===` 163`?(yn++,Ot=0):e?Ot+=e.length:Ot++,e&&($o+=e.length),e}const qc={default(){switch(Oe){case" ":case"\v":case"\f":case" ":case"Â ":case"\uFEFF":case` 164`:case"\r":case"\u2028":case"\u2029":Y();return;case"/":Y(),Be="comment";return;case void 0:return Y(),We("eof")}if(Ze.isSpaceSeparator(Oe)){Y();return}return qc[ct]()},comment(){switch(Oe){case"*":Y(),Be="multiLineComment";return;case"/":Y(),Be="singleLineComment";return}throw Ke(Y())},multiLineComment(){switch(Oe){case"*":Y(),Be="multiLineCommentAsterisk";return;case void 0:throw Ke(Y())}Y()},multiLineCommentAsterisk(){switch(Oe){case"*":Y();return;case"/":Y(),Be="default";return;case void 0:throw Ke(Y())}Y(),Be="multiLineComment"},singleLineComment(){switch(Oe){case` 165`:case"\r":case"\u2028":case"\u2029":Y(),Be="default";return;case void 0:return Y(),We("eof")}Y()},value(){switch(Oe){case"{":case"[":return We("punctuator",Y());case"n":return Y(),Cn("ull"),We("null",null);case"t":return Y(),Cn("rue"),We("boolean",!0);case"f":return Y(),Cn("alse"),We("boolean",!1);case"-":case"+":Y()==="-"&&(Zt=-1),Be="sign";return;case".":Ie=Y(),Be="decimalPointLeading";return;case"0":Ie=Y(),Be="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Ie=Y(),Be="decimalInteger";return;case"I":return Y(),Cn("nfinity"),We("numeric",1/0);case"N":return Y(),Cn("aN"),We("numeric",NaN);case'"':case"'":pi=Y()==='"',Ie="",Be="string";return}throw Ke(Y())},identifierNameStartEscape(){if(Oe!=="u")throw Ke(Y());Y();const e=da();switch(e){case"$":case"_":break;default:if(!Ze.isIdStartChar(e))throw yl();break}Ie+=e,Be="identifierName"},identifierName(){switch(Oe){case"$":case"_":case"â":case"â":Ie+=Y();return;case"\\":Y(),Be="identifierNameEscape";return}if(Ze.isIdContinueChar(Oe)){Ie+=Y();return}return We("identifier",Ie)},identifierNameEscape(){if(Oe!=="u")throw Ke(Y());Y();const e=da();switch(e){case"$":case"_":case"â":case"â":break;default:if(!Ze.isIdContinueChar(e))throw yl();break}Ie+=e,Be="identifierName"},sign(){switch(Oe){case".":Ie=Y(),Be="decimalPointLeading";return;case"0":Ie=Y(),Be="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Ie=Y(),Be="decimalInteger";return;case"I":return Y(),Cn("nfinity"),We("numeric",Zt*(1/0));case"N":return Y(),Cn("aN"),We("numeric",NaN)}throw Ke(Y())},zero(){switch(Oe){case".":Ie+=Y(),Be="decimalPoint";return;case"e":case"E":Ie+=Y(),Be="decimalExponent";return;case"x":case"X":Ie+=Y(),Be="hexadecimal";return}return We("numeric",Zt*0)},decimalInteger(){switch(Oe){case".":Ie+=Y(),Be="decimalPoint";return;case"e":case"E":Ie+=Y(),Be="decimalExponent";return}if(Ze.isDigit(Oe)){Ie+=Y();return}return We("numeric",Zt*Number(Ie))},decimalPointLeading(){if(Ze.isDigit(Oe)){Ie+=Y(),Be="decimalFraction";return}throw Ke(Y())},decimalPoint(){switch(Oe){case"e":case"E":Ie+=Y(),Be="decimalExponent";return}if(Ze.isDigit(Oe)){Ie+=Y(),Be="decimalFraction";return}return We("numeric",Zt*Number(Ie))},decimalFraction(){switch(Oe){case"e":case"E":Ie+=Y(),Be="decimalExponent";return}if(Ze.isDigit(Oe)){Ie+=Y();return}return We("numeric",Zt*Number(Ie))},decimalExponent(){switch(Oe){case"+":case"-":Ie+=Y(),Be="decimalExponentSign";return}if(Ze.isDigit(Oe)){Ie+=Y(),Be="decimalExponentInteger";return}throw Ke(Y())},decimalExponentSign(){if(Ze.isDigit(Oe)){Ie+=Y(),Be="decimalExponentInteger";return}throw Ke(Y())},decimalExponentInteger(){if(Ze.isDigit(Oe)){Ie+=Y();return}return We("numeric",Zt*Number(Ie))},hexadecimal(){if(Ze.isHexDigit(Oe)){Ie+=Y(),Be="hexadecimalInteger";return}throw Ke(Y())},hexadecimalInteger(){if(Ze.isHexDigit(Oe)){Ie+=Y();return}return We("numeric",Zt*Number(Ie))},string(){switch(Oe){case"\\":Y(),Ie+=FI();return;case'"':if(pi)return Y(),We("string",Ie);Ie+=Y();return;case"'":if(!pi)return Y(),We("string",Ie);Ie+=Y();return;case` 166`:case"\r":throw Ke(Y());case"\u2028":case"\u2029":RI(Oe);break;case void 0:throw Ke(Y())}Ie+=Y()},start(){switch(Oe){case"{":case"[":return We("punctuator",Y())}Be="value"}
166,beforePropertyName(){switch(Oe){case"$":case"_":Ie=Y(),Be="identifierName";return;case"\\":Y(),Be="identifierNameStartEscape";return;case"}":return We("punctuator",Y());case'"':case"'":pi=Y()==='"',Be="string";return}if(Ze.isIdStartChar(Oe)){Ie+=Y(),Be="identifierName";return}throw Ke(Y())},afterPropertyName(){if(Oe===":")return We("punctuator",Y());throw Ke(Y())},beforePropertyValue(){Be="value"},afterPropertyValue(){switch(Oe){case",":case"}":return We("punctuator",Y())}throw Ke(Y())},beforeArrayValue(){if(Oe==="]")return We("punctuator",Y());Be="value"},afterArrayValue(){switch(Oe){case",":case"]":return We("punctuator",Y())}throw Ke(Y())},end(){throw Ke(Y())}};function We(e,t){return{type:e,value:t,line:yn,column:Ot}}function Cn(e){for(const t of e){if(on()!==t)throw Ke(Y());Y()}}function FI(){switch(on()){case"b":return Y(),"\b";case"f":return Y(),"\f";case"n":return Y(),` 167`;case"r":return Y(),"\r";case"t":return Y()," ";case"v":return Y(),"\v";case"0":if(Y(),Ze.isDigit(on()))throw Ke(Y());return"\0";case"x":return Y(),BI();case"u":return Y(),da();case` 168`:case"\u2028":case"\u2029":return Y(),"";case"\r":return Y(),on()===` 169`&&Y(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Ke(Y());case void 0:throw Ke(Y())}return Y()}function BI(){let e="",t=on();if(!Ze.isHexDigit(t)||(e+=Y(),t=on(),!Ze.isHexDigit(t)))throw Ke(Y());return e+=Y(),String.fromCodePoint(parseInt(e,16))}function da(){let e="",t=4;for(;t-- >0;){const n=on();if(!Ze.isHexDigit(n))throw Ke(Y());e+=Y()}return String.fromCodePoint(parseInt(e,16))}const PI={start(){if(ot.type==="eof")throw An();Ts()},beforePropertyName(){switch(ot.type){case"identifier":case"string":Ga=ot.value,ct="afterPropertyName";return;case"punctuator":Wi();return;case"eof":throw An()}},afterPropertyName(){if(ot.type==="eof")throw An();ct="beforePropertyValue"},beforePropertyValue(){if(ot.type==="eof")throw An();Ts()},beforeArrayValue(){if(ot.type==="eof")throw An();if(ot.type==="punctuator"&&ot.value==="]"){Wi();return}Ts()},afterPropertyValue(){if(ot.type==="eof")throw An();switch(ot.value){case",":ct="beforePropertyName";return;case"}":Wi()}},afterArrayValue(){if(ot.type==="eof")throw An();switch(ot.value){case",":ct="beforeArrayValue";return;case"]":Wi()}},end(){}};function Ts(){let e;switch(ot.type){case"punctuator":switch(ot.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=ot.value;break}if(gi===void 0)gi=e;else{const t=en[en.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Ga,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")en.push(e),Array.isArray(e)?ct="beforeArrayValue":ct="beforePropertyName";else{const t=en[en.length-1];t==null?ct="end":Array.isArray(t)?ct="afterArrayValue":ct="afterPropertyValue"}}function Wi(){en.pop();const e=en[en.length-1];e==null?ct="end":Array.isArray(e)?ct="afterArrayValue":ct="afterPropertyValue"}function Ke(e){return xo(e===void 0?`JSON5: invalid end of input at ${yn}:${Ot}`:`JSON5: invalid character '${Wc(e)}' at ${yn}:${Ot}`)}function An(){return xo(`JSON5: invalid end of input at ${yn}:${Ot}`)}function yl(){return Ot-=5,xo(`JSON5: invalid identifier character at ${yn}:${Ot}`)}function RI(e){console.warn(`JSON5: '${Wc(e)}' in strings is not valid ECMAScript; consider escaping`)}function Wc(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function xo(e){const t=new SyntaxError(e);return t.lineNumber=yn,t.columnNumber=Ot,t}var LI=function(t,n,i){const o=[];let s="",a,r,u="",l;if(n!=null&&typeof n=="object"&&!Array.isArray(n)&&(i=n.space,l=n.quote,n=n.replacer),typeof n=="function")r=n;else if(Array.isArray(n)){a=[];for(const m of n){let k;typeof m=="string"?k=m:(typeof m=="number"||m instanceof String||m instanceof Number)&&(k=String(m)),k!==void 0&&a.indexOf(k)<0&&a.push(k)}}return i instanceof Number?i=Number(i):i instanceof String&&(i=String(i)),typeof i=="number"?i>0&&(i=Math.min(10,Math.floor(i)),u=" ".substr(0,i)):typeof i=="string"&&(u=i.substr(0,10)),d("",{"":t});function d(m,k){let h=k[m];switch(h!=null&&(typeof h.toJSON5=="function"?h=h.toJSON5(m):typeof h.toJSON=="function"&&(h=h.toJSON(m))),r&&(h=r.call(k,m,h)),h instanceof Number?h=Number(h):h instanceof String?h=String(h):h instanceof Boolean&&(h=h.valueOf()),h){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof h=="string")return v(h);if(typeof h=="number")return String(h);if(typeof h=="object")return Array.isArray(h)?D(h):p(h)}function v(m){const k={"'":.1,'"':.2},h={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let b="";for(let T=0;T<m.length;T++){const P=m[T];switch(P){case"'":case'"':k[P]++,b+=P;continue;case"\0":if(Ze.isDigit(m[T+1])){b+="\\x00";continue}}if(h[P]){b+=h[P];continue}if(P<" "){let H=P.charCodeAt(0).toString(16);b+="\\x"+("00"+H).substring(H.length);continue}b+=P}const E=l||Object.keys(k).reduce((T,P)=>k[T]<k[P]?T:P);return b=b.replace(new RegExp(E,"g"),h[E]),E+b+E}function p(m){if(o.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");o.push(m);let k=s;s=s+u;let h=a||Object.keys(m),b=[];for(const T of h){const P=d(T,m);if(P!==void 0){let H=C(T)+":";u!==""&&(H+=" "),H+=P,b.push(H)}}let E;if(b.length===0)E="{}";else{let T;if(u==="")T=b.join(","),E="{"+T+"}";else{let P=`, 170`+s;T=b.join(P),E=`{ 171`+s+T+`, 172`+k+"}"}}return o.pop(),s=k,E}function C(m){if(m.length===0)return v(m);const k=String.fromCodePoint(m.codePointAt(0));if(!Ze.isIdStartChar(k))return v(m);for(let h=k.length;h<m.length;h++)if(!Ze.isIdContinueChar(String.fromCodePoint(m.codePointAt(h))))return v(m);return m}function D(m){if(o.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");o.push(m);let k=s;s=s+u;let h=[];for(let E=0;E<m.length;E++){const T=d(String(E),m);h.push(T!==void 0?T:"null")}let b;if(h.length===0)b="[]";else if(u==="")b="["+h.join(",")+"]";else{let E=`, 173`+s,T=h.join(E);b=`[ 174`+s+T+`, 175`+k+"]"}return o.pop(),s=k,b}};const NI={parse:II,stringify:LI};var OI=NI;Object.keys(Ja.props).filter(e=>!e.startsWith("X"));const Kc=()=>Promise.all(["l-light","l-coffee","l-apricot","l-rainy","l-botanical","l-vivid","l-cherry","l-sushi","l-u0","d-dark","d-persimmon","d-astro","d-future","d-botanical","d-green-lime","d-green-orange","d-cherry","d-ice","d-u0"].map(e=>CI(Object.assign({"../../frontend-shared/themes/_dark.json5":()=>x(()=>Promise.resolve().then(()=>$I),void 0),"../../frontend-shared/themes/_light.json5":()=>x(()=>Promise.resolve().then(()=>AI),void 0),"../../frontend-shared/themes/d-astro.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DvoSMZZD.js"),[]),"../../frontend-shared/themes/d-botanical.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CsBBddrR.js"),[]),"../../frontend-shared/themes/d-cherry.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CZ4d1ohW.js"),[]),"../../frontend-shared/themes/d-dark.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.cH_TpVh8.js"),[]),"../../frontend-shared/themes/d-future.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BjDQ_IUT.js"),[]),"../../frontend-shared/themes/d-green-lime.json5":()=>x(()=>Promise.resolve().then(()=>df),void 0),"../../frontend-shared/themes/d-green-orange.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CUQQWgfx.js"),[]),"../../frontend-shared/themes/d-ice.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.B8yte85G.js"),[]),"../../frontend-shared/themes/d-persimmon.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.C80rEmU8.js"),[]),"../../frontend-shared/themes/d-u0.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DhW8Liay.js"),[]),"../../frontend-shared/themes/l-apricot.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BRj-Uxvn.js"),[]),"../../frontend-shared/themes/l-botanical.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DSG63HS6.js"),[]),"../../frontend-shared/themes/l-cherry.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DGeRjCx8.js"),[]),"../../frontend-shared/themes/l-coffee.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.yOcX9Xxh.js"),[]),"../../frontend-shared/themes/l-light.json5":()=>x(()=>Promise.resolve().then(()=>cf),void 0),"../../frontend-shared/themes/l-rainy.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DjDhICZv.js"),[]),"../../frontend-shared/themes/l-sushi.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.sCHhTkqB.js"),[]),"../../frontend-shared/themes/l-u0.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Bl_jrJwi.js"),[]),"../../frontend-shared/themes/l-vivid.json5":()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DaAJrMeL.js"),[])}),`../../frontend-shared/themes/${e}.json5`,5).then(({default:t})=>t)));function e4(){const e=F([]);return Kc().then(t=>e.value=t),e}function t4(){return A.r.themes}async function jI(e){if(S==null)return;if((await Kc()).some(i=>i.id===e.id))throw new Error("builtin theme");const n=A.s.themes;if(n.some(i=>i.id===e.id))throw new Error("already exists");A.commit("themes",[...n,e])}async function n4(e){if(S==null)return;const t=A.s.themes.filter(n=>n.id!==e.id);A.commit("themes",t)}let Ms=null;
175function Vn(e,t=!0){Ms&&window.clearTimeout(Ms),window.document.documentElement.classList.add("_themeChanging_"),Ms=window.setTimeout(()=>{window.document.documentElement.classList.remove("_themeChanging_"),ei.emit("themeChanged")},1e3);const n=e.base==="dark"?"dark":"light";window.document.documentElement.dataset.colorScheme=n;const i=gn(e);if(i.base){const s=[Ja,Uc].find(a=>a.id===i.base);s&&(i.props=Object.assign({},s.props,i.props))}const o=VI(i);for(const s of window.document.head.children)if(s.tagName==="META"&&s.getAttribute("name")==="theme-color"){s.setAttribute("content",o.htmlThemeColor);break}for(const[s,a]of Object.entries(o))window.document.documentElement.style.setProperty(`--MI_THEME-${s}`,a.toString());window.document.documentElement.style.setProperty("color-scheme",n),t&&(ee.setItem("theme",JSON.stringify(o)),ee.setItem("themeId",e.id),ee.setItem("colorScheme",n)),ei.emit("themeChanging")}function VI(e){function t(i){if(i[0]==="@")return t(e.props[i.substring(1)]);if(i[0]==="$")return t(e.props[i]);if(i[0]===":"){const o=i.split("<"),s=o.shift().substring(1),a=parseFloat(o.shift()),r=t(o.join("<"));switch(s){case"darken":return r.darken(a);case"lighten":return r.lighten(a);case"alpha":return r.setAlpha(a);case"hue":return r.spin(a);case"saturate":return r.saturate(a)}}return _e(i)}const n={};for(const[i,o]of Object.entries(e.props))i.startsWith("$")||(n[i]=o.startsWith('"')?o.replace(/^"\s*/,""):zI(t(o)));return n}function zI(e){return e.toRgbString()}function HI(e){return!(e.id==null||typeof e.id!="string"||e.name==null||typeof e.name!="string"||e.base==null||!["light","dark"].includes(e.base)||e.props==null||typeof e.props!="object")}function Jc(e){let t;try{t=OI.parse(e)}catch{throw new Error("Failed to parse theme json")}if(!HI(t))throw new Error("This theme is invaild");if(A.s.themes.some(n=>n.id===t.id))throw new Error("This theme is already installed");return t}function i4(e){const t=Jc(e);t&&Vn(t,!1)}async function o4(e){const t=Jc(e);t&&await jI(t)}function UI(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function qI(e){const t=new URL(e);return t.searchParams.delete("loginId"),t.toString()}async function Gc(e){const t=await zt("accounts");return t||console.log("Accounts are not recorded"),t.find(n=>n.id===e)}const Yc=Fn(new yu("deck",{profile:{where:"deviceAccount",default:"default"},columns:{where:"deviceAccount",default:[]},layout:{where:"deviceAccount",default:[]}}));function WI(){return Bn("tracking-user").split("-")[0]}function KI(e){if(!he.googleAnalyticsId&&!he.sentryForFrontend)return;const t=ee.getItemAsJson("gtagConsent");he.googleAnalyticsId&&t?.ad_user_data==="granted"&&ga({user_properties:e}),he.sentryForFrontend&&x(()=>import("./2025.4.1-io.12b-fb6fbea074.r00kaPlm.js"),[]).then(n=>{n.setUser({...e})}).catch(()=>{})}async function Xc(e){console.info(`Misskey v${At}`);let t=!1;const n=ee.getItem("lastVersion");if(n!==At){ee.setItem("lastVersion",At),ee.removeItem("theme");try{n!=null&&va(At,n)===1&&(t=!0)}catch{}}if(window.document.addEventListener("touchend",()=>{},{passive:!0}),window.location.hash==="#pswp"&&window.history.replaceState(null,"",window.location.href.replace("#pswp","")),window.location.hash==="#pswp"&&window.history.replaceState(null,"",window.location.href.replace("#pswp","")),go.addEventListener("message",p=>{p!==null?window.location.href=p:window.location.reload()}),["smartphone","tablet"].includes(Qn)){const p=window.document.getElementsByName("viewport").item(0);p.setAttribute("content",`${p.getAttribute("content")}, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover`)}if(window.document.documentElement.setAttribute("lang",$i),await z.ready,await Yc.ready,S&&!(S.postingLang!=null||(S.viewingLangs?.length??0)>0)){const C=typeof navigator>"u"?null:navigator.language,D=Z_(C),m=e2(D);try{const k=await Ae("i/update",{postingLang:D,viewingLangs:m});jn({postingLang:k.postingLang,viewingLangs:k.viewingLangs,showMediaInAllLanguages:k.showMediaInAllLanguages,showHashtagsInAllLanguages:k.showHashtagsInAllLanguages}),ee.setItem("postingLangAutoDetected",D),C?ee.setItem("postingLangAutoDetectBase",C):ee.removeItem("postingLangAutoDetectBase")}catch(k){console.warn("Failed to set default language config",k)}}const o=Ql();o.then(()=>{ee.setItem("v",he.version)});const s=new URLSearchParams(window.location.search),a=s.get("loginId");if(a){const p=qI(window.location.href);if(!S||S.id!==a){const C=await Gc(a);C&&await Sn(C.token,p)}window.history.replaceState({misskey:"loginId"},"",p)}if(s.has("kawaii")||s.has("uwu")){const p=s.get("kawaii")??s.get("uwu");p==="false"||p==="0"||p==="no"||p==="off"?ee.removeItem("kawaii"):ee.setItem("kawaii","true")}le(z.r.darkMode,p=>{Vn(p?A.s.darkTheme??ho:A.s.lightTheme??mo)},{immediate:ee.getItem("theme")==null}),window.document.documentElement.dataset.colorScheme=z.s.darkMode?"dark":"light";const r=A.model("darkTheme"),u=A.model("lightTheme");le(r,p=>{z.s.darkMode&&Vn(p??ho)}),le(u,p=>{z.s.darkMode||Vn(p??mo)}),A.s.syncDeviceDarkMode&&z.set("darkMode",UI()),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",p=>{A.s.syncDeviceDarkMode&&z.set("darkMode",p.matches)}),A.s.darkTheme&&z.s.darkMode?ee.getItem("themeId")!==A.s.darkTheme.id&&Vn(A.s.darkTheme):A.s.lightTheme&&!z.s.darkMode&&ee.getItem("themeId")!==A.s.lightTheme.id&&Vn(A.s.lightTheme),o.then(()=>{A.s.lightTheme==null&&he.defaultLightTheme!=null&&A.commit("lightTheme",JSON.parse(he.defaultLightTheme)),A.s.darkTheme==null&&he.defaultDar
175kTheme!=null&&A.commit("darkTheme",JSON.parse(he.defaultDarkTheme))}),le(A.r.overridedDeviceKind,p=>{Wm(p)},{immediate:!0}),le(A.r.useBlurEffectForModal,p=>{window.document.documentElement.style.setProperty("--MI-modalBgFilter",p?"blur(4px)":"none")},{immediate:!0}),le(A.r.useBlurEffect,p=>{p?window.document.documentElement.style.removeProperty("--MI-blur"):window.document.documentElement.style.setProperty("--MI-blur","none")},{immediate:!0});const l=()=>window.document.addEventListener("visibilitychange",()=>{window.document.visibilityState==="visible"&&navigator.wakeLock.request("screen")});if(A.s.keepScreenOn&&"wakeLock"in navigator&&navigator.wakeLock.request("screen").then(l).catch(()=>{window.document.addEventListener("click",()=>navigator.wakeLock.request("screen").then(l),{once:!0})}),A.s.makeEveryTextElementsSelectable)window.document.documentElement.classList.add("forceSelectableAll");else{const p=C=>{if(C.button!==0&&C.pointerType!=="touch"&&C.pointerType!=="pen")return;const D=window.getSelection();if(!D||D.isCollapsed)return;const m=typeof C.composedPath=="function"?C.composedPath():[];let k=null;for(const h of m)if(h instanceof Element){k=h;break}if(!k){const h=C.target;h instanceof Element?k=h:h instanceof Node&&(k=h.parentElement)}k?.closest('textarea, input, [contenteditable]:not([contenteditable="false"]), ._selectable, ._selectableAtomic')||D.removeAllRanges()};window.addEventListener("pointerdown",p,{capture:!0})}S&&S.token&&B_();try{await gc()}catch{}const d=await e();if(If(d),j3(d),DI(d),he.googleAnalyticsId){d.use(Mf({tagId:he.googleAnalyticsId,config:{anonymize_ip:!1,send_page_view:!0},pageTracker:{router:pt,useScreenview:!0},initMode:"manual",appName:`Misskey v${At}`}));const p=ee.getItemAsJson("gtagConsent")??{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted"};ee.setItemAsJson("gtagConsent",p),Bo("default",p),ee.getItem("gaConsent")==="true"&&ql()}const v=(()=>{const p="misskey_app",C=window.document.getElementById(p);if(C)return console.warn("multiple import detected"),C;const D=window.document.createElement("div");return D.id=p,window.document.body.appendChild(D),D})();if(he.sentryForFrontend){const p=await x(()=>import("./2025.4.1-io.12b-fb6fbea074.r00kaPlm.js"),[]);p.init({app:d,release:At,integrations:[...he.sentryForFrontend.vueIntegration!==void 0?[p.vueIntegration(he.sentryForFrontend.vueIntegration??void 0)]:[],...he.sentryForFrontend.browserTracingIntegration!==void 0?[p.browserTracingIntegration(he.sentryForFrontend.browserTracingIntegration??void 0)]:[],...he.sentryForFrontend.replayIntegration!==void 0?[p.replayIntegration(he.sentryForFrontend.replayIntegration??void 0)]:[]],tracesSampleRate:1,...he.sentryForFrontend.browserTracingIntegration!==void 0?{tracePropagationTargets:[ni]}:{},...he.sentryForFrontend.replayIntegration!==void 0?{replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1}:{},...he.sentryForFrontend.options})}if(he.sentryForFrontend||he.googleAnalyticsId){const p=Xe.value===null?"unset":String(Xe.value);KI({deviceId:WI(),sensitiveContentConsent:p,displayOfSensitiveAds:String(A.s.displayOfSensitiveAds)})}return d.mount(v),window.onerror=null,window.onunhandledrejection=null,JI(),console.log(`%c${w.ts._selfXssPrevention.warning}`,"color: #f00; background-color: #ff0; font-size: 36px; padding: 4px;"),console.log(`%c${w.ts._selfXssPrevention.title}`,'color: #f00; font-weight: 900; font-family: "Hiragino Sans W9", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 24px;'),console.log(`%c${w.ts._selfXssPrevention.description1}`,"font-size: 16px; font-weight: 700;"),console.log(`%c${w.ts._selfXssPrevention.description2}`,"font-size: 16px;","font-size: 20px; font-weight: 700; color: #f00;"),console.log(w.tsx._selfXssPrevention.description3({link:"https://misskey-hub.net/docs/for-users/resources/self-xss/"})),{isClientUpdated:t,lastVersion:n,app:d}}function JI(){const e=window.document.getElementById("splash");e&&(e.style.opacity="0",e.style.pointerEvents="none",window.setTimeout(()=>{e.remove()},1e3))}const GI=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ki=()=>GI.now(),YI=e=>!!e&&e===Math.floor(e)&&e>0&&isFinite(e),Is=e=>e===1/0||YI(e),XI=2**31-1;class Ya{expirations=Object.create(null);data=new Map;expirationMap=new Map;ttl;max;updateAgeOnGet;updateAgeOnHas;noUpdateTTL;
175noDisposeOnSet;checkAgeOnGet;checkAgeOnHas;dispose;timer;timerExpiration;immortalKeys=new Set;constructor({max:t=1/0,ttl:n,updateAgeOnGet:i=!1,checkAgeOnGet:o=!1,updateAgeOnHas:s=!1,checkAgeOnHas:a=!1,noUpdateTTL:r=!1,dispose:u,noDisposeOnSet:l=!1}={}){if(n!==void 0&&!Is(n))throw new TypeError("ttl must be positive integer or Infinity if set");if(!Is(t))throw new TypeError("max must be positive integer or Infinity");if(this.ttl=n,this.max=t,this.updateAgeOnGet=!!i,this.checkAgeOnGet=!!o,this.updateAgeOnHas=!!s,this.checkAgeOnHas=!!a,this.noUpdateTTL=!!r,this.noDisposeOnSet=!!l,u!==void 0){if(typeof u!="function")throw new TypeError("dispose must be function if set");this.dispose=u}else this.dispose=(d,v,p)=>{};this.timer=void 0,this.timerExpiration=void 0}setTimer(t,n){if(this.timerExpiration&&this.timerExpiration<t)return;this.timer&&clearTimeout(this.timer);const i=setTimeout(()=>{this.timer=void 0,this.timerExpiration=void 0,this.purgeStale();for(const o in this.expirations){const s=Number(o);this.setTimer(s,s-Ki());break}},Math.min(XI,Math.max(0,n)));i.unref&&i.unref(),this.timerExpiration=t,this.timer=i}cancelTimer(){this.timer&&(clearTimeout(this.timer),this.timerExpiration=void 0,this.timer=void 0)}cancelTimers(){return process.emitWarning('TTLCache.cancelTimers has been renamed to TTLCache.cancelTimer (no "s"), and will be removed in the next major version update'),this.cancelTimer()}clear(){const t=this.dispose!==Ya.prototype.dispose?[...this]:[];this.data.clear(),this.expirationMap.clear(),this.cancelTimer(),this.expirations=Object.create(null);for(const[n,i]of t)this.dispose(i,n,"delete")}setTTL(t,n=this.ttl){const i=this.expirationMap.get(t);if(i!==void 0){const o=this.expirations[i];!o||o.length<=1?delete this.expirations[i]:this.expirations[i]=o.filter(s=>s!==t)}if(n&&n!==1/0){this.immortalKeys.delete(t);const o=Math.floor(Ki()+n);this.expirationMap.set(t,o),this.expirations[o]||(this.expirations[o]=[],this.setTimer(o,n)),this.expirations[o].push(t)}else this.immortalKeys.add(t),this.expirationMap.set(t,1/0)}set(t,n,{ttl:i=this.ttl,noUpdateTTL:o=this.noUpdateTTL,noDisposeOnSet:s=this.noDisposeOnSet}={}){if(!Is(i))throw new TypeError("ttl must be positive integer or Infinity");if(this.expirationMap.has(t)){o||this.setTTL(t,i);const a=this.data.get(t),r=!s&&this.data.has(t);a!==n&&(this.data.set(t,n),r&&this.dispose(a,t,"set"))}else this.setTTL(t,i),this.data.set(t,n);for(;this.size>this.max;)this.purgeToCapacity();return this}has(t,{checkAgeOnHas:n=this.checkAgeOnHas,ttl:i=this.ttl,updateAgeOnHas:o=this.updateAgeOnHas}={}){return this.data.has(t)?n&&this.getRemainingTTL(t)===0?(this.delete(t),!1):(o&&this.setTTL(t,i),!0):!1}getRemainingTTL(t){const n=this.expirationMap.get(t);return n===1/0?n:n!==void 0?Math.max(0,Math.ceil(n-Ki())):0}get(t,{updateAgeOnGet:n=this.updateAgeOnGet,ttl:i=this.ttl,checkAgeOnGet:o=this.checkAgeOnGet}={}){const s=this.data.get(t);if(o&&this.getRemainingTTL(t)===0){this.delete(t);return}return n&&this.setTTL(t,i),s}delete(t){const n=this.expirationMap.get(t);if(n!==void 0){const i=this.data.get(t);this.data.delete(t),this.expirationMap.delete(t),this.immortalKeys.delete(t);const o=this.expirations[n];return o&&(o.length<=1?delete this.expirations[n]:this.expirations[n]=o.filter(s=>s!==t)),this.dispose(i,t,"delete"),this.size===0&&this.cancelTimer(),!0}return!1}purgeToCapacity(){for(const t in this.expirations){const n=this.expirations[t];if(this.size-n.length>=this.max){delete this.expirations[t];const i=[];for(const o of n)i.push([o,this.data.get(o)]),this.data.delete(o),this.expirationMap.delete(o);for(const[o,s]of i)this.dispose(s,o,"evict")}else{const i=this.size-this.max,o=[];for(const s of n.splice(0,i))o.push([s,this.data.get(s)]),this.data.delete(s),this.expirationMap.delete(s);for(const[s,a]of o)this.dispose(a,s,"evict");return}}}get size(){return this.data.size}purgeStale(){const t=Math.ceil(Ki());for(const n in this.expirations){if(n==="Infinity"||Number(n)>t)return;const i=[...this.expirations[n]||[]],o=[];delete this.expirations[n];for(const s of i)o.push([s,this.data.get(s)]),this.data.delete(s),this.expirationMap.delete(s);for(const[s,a]of o)this.dispose(a,s,"stale")}this.size===0&&this.cancelTimer()}*entries(){for(const t in this.expirations)for(const n of this.expirations[t])yield[n,this.data.get(n)];for(const t of this.immortalKeys)yield[t,this.data.get(t)]}*keys(){for(const t in this.expirations)for(const n of this.expirations[t])yield n;for(const t of this.immortalKeys)yield t}*values(){for(const t in this.expirations)for(const n of this.expirations[t])yield this.data.get(n);for(const t of this.immortalKeys)yield this.data.get(t)}[Symbol.iterator](){return this.entries()}}class QI extends Ya{onEmpty;constructor(t){super(t),this.onEmpty=t.onEmpty}purgeStale(){const t=super.purgeStale();return this.size===0&&t&&this.onEmpty(),t}}class ZI extends Map{duration;max;constructor(t){super(),this.duration=t.duration,this.max=t.max}hit(t){const n=super.get(t)??new QI({ttl:this.duration,onEmpty:()=>this.delete(t)});return this.set(t,n),n.size>this.max?!1:(n.set(performance.now(),!0),!0)}count(t){const n=super.get(t);return n?n.size:0}}let vn;const Ss=new Map;let Fs=!0;function e6(e){try{return new URL(e),!0}catch{return!1}}const s4=[null,...S?.policies.canUseDriveFileInSoundSettings?["_driveFile_"]:[],"syuilo/n-aec","syuilo/n-aec-4va","syuilo/n-aec-4vb","syuilo/n-aec-8va","syuilo/n-aec-8vb","syuilo/n-cea","syuilo/n-cea-4va","syuilo/n-cea-4vb","syuilo/n-cea-8va","syuilo/n-cea-8vb","syuilo/n-eca","syuilo/n-eca-4va","syuilo/n-eca-4vb","syuilo/n-eca-8va","syuilo/n-eca-8vb","syuilo/n-ea","syuilo/n-ea-4va","syuilo/n-ea-4vb","syuilo/n-ea-8va","syuilo/n-ea-8vb","syuilo/n-ea-harmony","syuilo/up","syuilo/down","syuilo/pope1","syuilo/pope2","syuilo/waon","syuilo/popo","syuilo/triple","syuilo/bubble1","syuilo/bubble2","syuilo/poi1","syuilo/poi2","syuilo/pirori","syuilo/pirori-wet","syuilo/pirori-square-wet","syuilo/square-pico","syuilo/reverved","syuilo/ryukyu","syuilo/kick","syuilo/snare","syuilo/queue-jammed","ais
175ha/1","aisha/2","aisha/3","noizenecio/kick_gaba1","noizenecio/kick_gaba2","noizenecio/kick_gaba3","noizenecio/kick_gaba4","noizenecio/kick_gaba5","noizenecio/kick_gaba6","noizenecio/kick_gaba7","Copyright_Misskey.io/HazumiAi/VoiceTypeA_Antenna","Copyright_Misskey.io/HazumiAi/VoiceTypeA_Channel","Copyright_Misskey.io/HazumiAi/VoiceTypeA_Chat","Copyright_Misskey.io/HazumiAi/VoiceTypeA_Note1","Copyright_Misskey.io/HazumiAi/VoiceTypeA_Note2","Copyright_Misskey.io/HazumiAi/VoiceTypeA_Notification","Copyright_Misskey.io/HazumiAi/VoiceTypeA_Send1","Copyright_Misskey.io/HazumiAi/VoiceTypeA_Send2","Copyright_Misskey.io/HazumiAi/VoiceTypeB_Antenna","Copyright_Misskey.io/HazumiAi/VoiceTypeB_Channel","Copyright_Misskey.io/HazumiAi/VoiceTypeB_Chat","Copyright_Misskey.io/HazumiAi/VoiceTypeB_Note1","Copyright_Misskey.io/HazumiAi/VoiceTypeB_Note2","Copyright_Misskey.io/HazumiAi/VoiceTypeB_Notification","Copyright_Misskey.io/HazumiAi/VoiceTypeB_Send","Copyright_Misskey.io/HazumiAi/VoiceTypeC_Antenna","Copyright_Misskey.io/HazumiAi/VoiceTypeC_Channel","Copyright_Misskey.io/HazumiAi/VoiceTypeC_Chat","Copyright_Misskey.io/HazumiAi/VoiceTypeC_Note","Copyright_Misskey.io/HazumiAi/VoiceTypeC_Notification","Copyright_Misskey.io/HazumiAi/VoiceTypeC_Send","Copyright_Misskey.io/HazumiAi/VoiceTypeD_Antenna","Copyright_Misskey.io/HazumiAi/VoiceTypeD_Channel","Copyright_Misskey.io/HazumiAi/VoiceTypeD_Chat","Copyright_Misskey.io/HazumiAi/VoiceTypeD_Note","Copyright_Misskey.io/HazumiAi/VoiceTypeD_Notification","Copyright_Misskey.io/HazumiAi/VoiceTypeD_Send","Copyright_Misskey.io/HazumiAi/VoiceTypeE_Antenna","Copyright_Misskey.io/HazumiAi/VoiceTypeE_Channel","Copyright_Misskey.io/HazumiAi/VoiceTypeE_Chat","Copyright_Misskey.io/HazumiAi/VoiceTypeE_Note","Copyright_Misskey.io/HazumiAi/VoiceTypeE_Notification","Copyright_Misskey.io/HazumiAi/VoiceTypeE_Send","Copyright_Misskey.io/HazumiAi/VoiceTypeF_Antenna","Copyright_Misskey.io/HazumiAi/VoiceTypeF_Channel","Copyright_Misskey.io/HazumiAi/VoiceTypeF_Chat","Copyright_Misskey.io/HazumiAi/VoiceTypeF_Note","Copyright_Misskey.io/HazumiAi/VoiceTypeF_Notification","Copyright_Misskey.io/HazumiAi/VoiceTypeF_Send","Copyright_Misskey.io/ThinaticSystem/mata_hazukashiikoto_itteru","Copyright_Misskey.io/ThinaticSystem/akemashite_omedetou_gozaimasu","Copyright_Misskey.io/ThinaticSystem/bibi","Copyright_Misskey.io/ThinaticSystem/doya1","Copyright_Misskey.io/ThinaticSystem/doya2","Copyright_Misskey.io/ThinaticSystem/doya3","Copyright_Misskey.io/ThinaticSystem/gege_ltu_win3.1","Copyright_Misskey.io/ThinaticSystem/hekuchi","Copyright_Misskey.io/ThinaticSystem/moresou","Copyright_Misskey.io/ThinaticSystem/muzumuzu_suru","Copyright_Misskey.io/ThinaticSystem/nsho","Copyright_Misskey.io/ThinaticSystem/pepo","Copyright_Misskey.io/ThinaticSystem/picco_n","Copyright_Misskey.io/ThinaticSystem/tenor_sax","Copyright_Misskey.io/ThinaticSystem/topo","Copyright_Misskey.io/ThinaticSystem/tsukapekepinpa","Copyright_Misskey.io/ThinaticSystem/vun_clean","Copyright_Misskey.io/ThinaticSystem/vun_dirty","Copyright_Misskey.io/ThinaticSystem/wa","Copyright_Misskey.io/ThinaticSystem/yonderuzo1","Copyright_Misskey.io/ThinaticSystem/yonderuzo2","Copyright_Misskey.io/ThinaticSystem/yonderuzo3"],a4=["noteMy","note","notification","reaction","chatMessage"];async function Qc(e,t){if(vn==null&&(vn=new AudioContext,window.addEventListener("beforeunload",()=>{vn.close()})),Ss.has(e))return Ss.get(e);let n;try{n=await window.fetch(e)}catch{return}const i=await n.arrayBuffer(),o=await vn.decodeAudioData(i);return Ss.set(e,o),o}function Zc(e){const t=A.s[`sound.on.${e}`];t6(t).then(n=>{if(!n&&t.type==="_driveFile_"){const i=Rt[`sound_${e}`].default.type;ed({type:i,volume:t.volume})}})}async function t6(e){return!Fs||"userActivation"in navigator&&!navigator.userActivation.hasBeenActive||e.type===null||e.type==="_driveFile_"&&!e.fileUrl?!1:(Fs=!1,await ed(e).finally(()=>{window.setTimeout(()=>{Fs=!0},25)}))}const n6=new ZI({duration:50,max:1});async function ed(e){if(e.type===null||e.type==="_driveFile_"&&(!S?.policies.canUseDriveFileInSoundSettings||!e.fileUrl))return!1;const t=A.s["sound.masterVolume"];if(i6()||t===0||e.volume===0)return!0;const n=e.type==="_driveFile_"?e.fileUrl:`/client-assets/sounds/${e.type}.mp3`,i=await Qc(n).catch(()=>{});if(!i||!n6.hit(n))return!1;const o=e.volume*t;return td(i,{volume:o}).soundSource.start(),!0}async function r4(e,t){if(t.volume===0)return;const n=await Qc(e);n&&td(n,t).soundSource.start()}function td(e,t){const n=vn.createStereoPanner();n.pan.value=t.pan??0;const i=vn.createGain();i.gain.value=t.volume??1;const o=vn.createBufferSource();return o.buffer=e,o.playbackRate.value=t.playbackRate??1,o.connect(n).connect(i).c
175onnect(vn.destination),{soundSource:o,panNode:n,gainNode:i}}async function l4(e){const t=window.document.createElement("audio");return t.src=e6(e)?e:"",new Promise((n,i)=>{if(!t.src){i(new Error("Invalid URL"));return}const o=window.setInterval(()=>{t.readyState>0&&(n(t.duration*1e3),window.clearInterval(o),t.remove())},100)})}function i6(){return!!(A.s["sound.notUseSound"]||A.s["sound.useSoundOnlyWhenActive"]&&window.document.visibilityState==="hidden")}class o6{src=F(null);manualShowing=F(!1);targetNote=F(null);onChosen;onClosed;constructor(){}async init(){const t=F([]);le([A.r.emojiPaletteForReaction,A.r.emojiPalettes],()=>{t.value=A.s.emojiPaletteForReaction==null?A.s.emojiPalettes[0].emojis:A.s.emojiPalettes.find(n=>n.id===A.s.emojiPaletteForReaction)?.emojis??[]},{immediate:!0}),await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BrqbhBwn.js"),__vite__mapDeps([471,2,3,4,472]))),{src:this.src,pinnedEmojis:t,asReactionPicker:!0,targetNote:this.targetNote,manualShowing:this.manualShowing},{done:n=>{this.onChosen&&this.onChosen(n)},close:()=>{this.manualShowing.value=!1},closed:()=>{this.src.value=null,this.onClosed&&this.onClosed()}})}show(t,n,i,o){this.src.value=t,this.targetNote.value=n,this.manualShowing.value=!0,this.onChosen=i,this.onClosed=o}}const s6=new o6;async function a6(){"serviceWorker"in navigator&&(navigator.serviceWorker.register("/sw.js",{scope:"/",type:"classic"}),navigator.serviceWorker.ready.then(e=>{e.active?.postMessage({msg:"initialize",lang:$i})}))}class r6{src=F(null);manualShowing=F(!1);onChosen;onClosed;constructor(){}async init(){const t=F([]);le([A.r.emojiPaletteForMain,A.r.emojiPalettes],()=>{t.value=A.s.emojiPaletteForMain==null?A.s.emojiPalettes[0].emojis:A.s.emojiPalettes.find(n=>n.id===A.s.emojiPaletteForMain)?.emojis??[]},{immediate:!0}),await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BrqbhBwn.js"),__vite__mapDeps([471,2,3,4,472]))),{src:this.src,pinnedEmojis:t,asReactionPicker:!1,manualShowing:this.manualShowing,choseAndClose:!1},{done:n=>{this.onChosen&&this.onChosen(n)},close:()=>{this.manualShowing.value=!1},closed:()=>{this.src.value=null,this.onClosed&&this.onClosed()}})}show(t,n,i){this.src.value=t,this.manualShowing.value=!0,this.onChosen=n,this.onClosed=i}}const nd=new r6;async function id(){if(!S)return;Wa(),z.s.enablePreferencesAutoCloudBackup&&await _u(),window.document.cookie.split(";").forEach(n=>{const i=n.split("=")[0].trim();i==="token"&&(window.document.cookie=`${i}=; max-age=0; path=/`)}),ee.removeItem("account"),await tc(He,S.id);const t=(await ko()).find(n=>n.token!=null);try{if(navigator.serviceWorker.controller){const i=await(await navigator.serviceWorker.ready).pushManager.getSubscription();i&&await window.fetch(`${ni}/sw/unregister`,{method:"POST",body:JSON.stringify({i:S.token,endpoint:i.endpoint}),credentials:"include",headers:{"Content-Type":"application/json","X-Client-Transaction-Id":Bn("service-worker")}})}t||await navigator.serviceWorker.getRegistrations().then(n=>Promise.all(n.map(i=>i.unregister())))}catch{}t?.token?await Sn(t.token):an("/")}const l6=Object.freeze(Object.defineProperty({__proto__:null,signout:id},Symbol.toStringTag,{value:"Module"}));function u6(){Wa(w.ts.settingsMigrating),z.loaded.then(async()=>{Ae("i/registry/get",{scope:["client"],key:"themes"}).catch(()=>[]).then(t=>{t.length>0&&A.commit("themes",t)});const e=tn.get("plugins");A.commit("plugins",e.map(t=>({...t,installId:t.id,id:void 0}))),A.commit("deck.profile",Yc.s.profile),Ae("i/registry/keys",{scope:["client","deck","profiles"]}).then(async t=>{const n=[];for(const i of t){const o=await Ae("i/registry/get",{scope:["client","deck","profiles"],key:i});n.push({id:Ii(),name:i,columns:o.columns,layout:o.layout})}A.commit("deck.profiles",n)}),A.commit("lightTheme",tn.get("lightTheme")),A.commit("darkTheme",tn.get("darkTheme")),A.commit("syncDeviceDarkMode",tn.get("syncDeviceDarkMode")),A.commit("emojiPalettes",[{id:"reactions",name:"",emojis:z.s.reactions},{id:"pinnedEmojis",name:"",emojis:z.s.pinnedEmojis}]),A.commit("emojiPaletteForMain","pinnedEmojis"),A.commit("emojiPaletteForReaction","reactions"),A.commit("overridedDeviceKind",z.s.overridedDeviceKind),A.commit("widgets",z.s.widgets),A.commit("keepCw",z.s.keepCw),A.commit("collapseRenotes",z.s.collapseRenotes),A.commit("rememberNoteVisibility",z.s.rememberNoteVisibility),A.commit("uploadFolder",z.s.uploadFolder),A.commit("menu",[...z.s.menu,"chat"]),A.commit("statusbars",z.s.statusbars),A.commit("pinnedUserLists",z.s.pinnedUserLists),A.commit("serverDisconnectedBehavior",z.s.serverDisconnectedBehavior),A.commit("nsfw",z.s.nsfw),A.commit("highlightSensitiveMedia",z.s.highlightSensitiveMedia),A.commit("animation",z.s.animation),A.commit("animatedMfm",z.s.animatedMfm),A.commit("advancedMfm",z.s.advancedMfm),A.commit("showReactionsCount",z.s.showReactionsCount),A.commit("enableQuickAddMfmFunction",z.s.enableQuickAddMfmFunction),A.commit("loadRawImages",z.s.loadRawImages),A.commit("imageNewTab",z.s.imageNewTab),A.commit("disableShowingAnimatedImages",z.s.disableShowingAnimatedImages),A.commit("emojiStyle",z.s.emojiStyle),A.commit("menuStyle",z.s.menuStyle),A.commit("useBlurEffectForModal",z.s.useBlurEffectForModal),A.commit("useBlurEffect",z.s.useBlurEffect),A.commit("showFixedPostForm",z.s.showFixedPostForm),A.commit("showFixedPostFormInChannel",z.s.showFixedPostFormInChannel),A.commit("autoloadDrafts",z.s.autoloadDrafts),A.commit("enableInfiniteScroll",z.s.enableInfiniteScroll),A.commit("useReactionPickerForContextMenu",z.s.useReactionPickerForContextMenu),A.commit("showGapBetweenNotesInTimeline",z.s.showGapBetweenNotesInTimeline),A.commit("instanceTicker",z.s.instanceTicker),A.commit("emojiPickerScale",z.s.emojiPickerScale),A.commit("emojiPickerWidth",z.s.emojiPickerWidth),A.commit("emojiPickerHeight",z.s.emojiPickerHeight),A.commit("emojiPickerStyle",z.s.emojiPickerStyle),A.commit("reportError",z.s.reportError),A.commit("squareAvatars",z.s.squareAvatars),A.commit("showAvatarDecorations",z.s.showAvatarDecorations),A.commit("numberOfPageCache",z.s.numberOfPageCache),A.commit("showNoteActionsOnlyHover",z.s.showNoteActionsOnlyHover),A.commit("showClipButtonInNoteFooter",z.s.showClipButtonInNoteFooter),A.commit("reactionsDisplaySize",z.s.reactionsDisplaySize),A.commit("limitWidthOfReaction",z.s.limitWidthOfReaction),A.commit("forceShowAds",z.s.forceShowAds),A.commit("aiChanMode",z.s.aiChanMode),A.commit("devMode",z.s.devMode),A.commit("mediaListWithOneImageAppearance",z.s.mediaListWithOneImageAppearance),A.commit("notificationPosition",z.s.notificationPosition),A.commit("notificationStackAxis",z.s.notificationStackAxis),A.commit("enableCondensedLine",z.s.enableCondensedLine),A.commit("keepScreenOn",z.s.keepScreenOn),A.commit("disableStreamingTimeline",z.s.disableStreamingTimeline),A.commit("useGroupedNotifications",z.s.useGroupedNotifications),A.commit("dataSaver",z.s.dataSaver),A.commit("enableSeasonalScreenEffect",z.s.enableSeasonalScreenEffect),A.commit("enableHorizontalSwipe",z.s.enableHorizontalSwipe),A.commit("useNativeUiForVideoAudioPlayer",z.s.useNativeU
175IForVideoAudioPlayer),A.commit("keepOriginalFilename",z.s.keepOriginalFilename),A.commit("alwaysConfirmFollow",z.s.alwaysConfirmFollow),A.commit("confirmWhenRevealingSensitiveMedia",z.s.confirmWhenRevealingSensitiveMedia),A.commit("contextMenu",z.s.contextMenu),A.commit("skipNoteRender",z.s.skipNoteRender),A.commit("showSoftWordMutedWord",z.s.showSoftWordMutedWord),A.commit("confirmOnReact",z.s.confirmOnReact),A.commit("defaultFollowWithReplies",z.s.defaultWithReplies),A.commit("sound.masterVolume",z.s.sound_masterVolume),A.commit("sound.notUseSound",z.s.sound_notUseSound),A.commit("sound.useSoundOnlyWhenActive",z.s.sound_useSoundOnlyWhenActive),A.commit("sound.on.note",z.s.sound_note),A.commit("sound.on.noteMy",z.s.sound_noteMy),A.commit("sound.on.notification",z.s.sound_notification),A.commit("sound.on.reaction",z.s.sound_reaction),A.commit("defaultNoteVisibility",z.s.defaultNoteVisibility),A.commit("defaultNoteLocalOnly",z.s.defaultNoteLocalOnly),window.setTimeout(()=>{an()},1e4)})}async function c6(){const e=ee.getItem("localeVersion");if(e==null||e!==At||pa==null){const r=await window.fetch(`/assets/locales/${$i}.${At}.json`);if(r.status===200){const u=await r.text(),l=JSON.parse(u);ee.setItem("locale",u),ee.setItem("localeVersion",At),Wd(l),Nf(l)}}const{isClientUpdated:n,lastVersion:i}=await Xc(async()=>{let r=Ji;const u=new URLSearchParams(window.location.search);S||(r="visitor"),u.has("zen")&&(r="zen"),r==="deck"&&A.s["deck.useSimpleUiForNonRootPages"]&&window.location.pathname!=="/"&&(r="zen"),u.has("ui")&&(r=u.get("ui"));let l;switch(r){case"zen":l=await x(()=>import("./2025.4.1-io.12b-fb6fbea074.uvuNKku3.js"),__vite__mapDeps([479,2,3,4,480])).then(d=>d.default);break;case"deck":l=await x(()=>import("./2025.4.1-io.12b-fb6fbea074.BxoPEH6C.js"),__vite__mapDeps([481,2,482,3,4,483,484,485,15,31,32,27,28,14,16,17,18,19,20,21,22,23,24,25,26,33,13,29,486,487,149,150,101,102,488])).then(d=>d.default);break;case"visitor":l=await x(()=>import("./2025.4.1-io.12b-fb6fbea074.DbZALFZq.js"),__vite__mapDeps([489,458,109,110,2,111,112,113,3,4,114,121,122,123,80,81,124,31,32,27,28,14,15,16,17,18,19,20,21,22,23,24,25,26,33,355,163,164,459,490])).then(d=>d.default);break;default:l=await x(()=>import("./2025.4.1-io.12b-fb6fbea074.bHAHxGl6.js"),__vite__mapDeps([491,2,15,484,485,3,4,492])).then(d=>d.default);break}return _l(l)});s6.init(),nd.init(),n&&S&&(await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.DVkMb9cf.js"),__vite__mapDeps([493,453,2,3,4,494]))),{},{},"closed"),i&&va("2025.3.2-alpha.0",i)===1&&(console.log("Preferences migration"),u6()));const o=Xn();let s=!1;o.on("_disconnected_",async()=>{if(A.s.serverDisconnectedBehavior==="reload")window.location.reload();else if(A.s.serverDisconnectedBehavior==="dialog"){if(s)return;s=!0;const{canceled:r}=await ft({type:"warning",title:w.ts.disconnectedFromServer,text:w.ts.reloadConfirm});s=!1,r||window.location.reload()}}),o.on("emojiAdded",r=>{iC(r.emoji)}),o.on("emojiUpdated",r=>{oC(r.emojis)}),o.on("emojiDeleted",r=>{sC(r.emojis)}),r2();try{if(A.s.enableSeasonalScreenEffect){const r=new Date().getMonth()+1;if(A.s.hemisphere==="S"){if(r===7||r===8){const u=(await x(async()=>{const{SnowfallEffect:l}=await import("./2025.4.1-io.12b-fb6fbea074.v03ZcS8i.js");return{SnowfallEffect:l}},[])).SnowfallEffect;new u({}).render()}}else if(r===12||r===1){const u=(await x(async()=>{const{SnowfallEffect:l}=await import("./2025.4.1-io.12b-fb6fbea074.v03ZcS8i.js");return{SnowfallEffect:l}},[])).SnowfallEffect;new u({}).render()}else if(r===3||r===4){const u=(await x(async()=>{const{SnowfallEffect:l}=await import("./2025.4.1-io.12b-fb6fbea074.v03ZcS8i.js");return{SnowfallEffect:l}},[])).SnowfallEffect;new u({sakura:!0}).render()}}}catch(r){console.error("Failed to initialise the seasonal screen effect canvas context:",r)}if(S){z.loaded.then(async()=>{z.s.accountSetupWizard!==-1&&await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BdnVFo4T.js"),__vite__mapDeps([495,2,97,45,98,183,184,80,81,207,3,4,496]))),{},{},"closed")});for(const D of(S.unreadAnnouncements??[]).filter(m=>m.display==="dialog"))await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CzHrLsUn.js"),__vite__mapDeps([497,2,3,4,498]))),{announcement:D},{},"closed");async function r(D){const m=D.announcement;m.display==="dialog"&&await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CzHrLsUn.js"),__vite__mapDeps([497,2,3,4,498]))),{announcement:m},{},"closed")}
175S.isDeleted&&et({type:"warning",text:w.ts.accountDeletionInProgress});const u=new Date,l=u.getMonth()+1,d=u.getDate();if(S.birthday){const D=parseInt(S.birthday.split("-")[1]),m=parseInt(S.birthday.split("-")[2]);l===D&&d===m&&ye("loggedInOnBirthday")}l===1&&d===1&&ye("loggedInOnNewYearsDay"),S.loggedInDays>=3&&ye("login3"),S.loggedInDays>=7&&ye("login7"),S.loggedInDays>=15&&ye("login15"),S.loggedInDays>=30&&ye("login30"),S.loggedInDays>=60&&ye("login60"),S.loggedInDays>=100&&ye("login100"),S.loggedInDays>=200&&ye("login200"),S.loggedInDays>=300&&ye("login300"),S.loggedInDays>=400&&ye("login400"),S.loggedInDays>=500&&ye("login500"),S.loggedInDays>=600&&ye("login600"),S.loggedInDays>=700&&ye("login700"),S.loggedInDays>=800&&ye("login800"),S.loggedInDays>=900&&ye("login900"),S.loggedInDays>=1e3&&ye("login1000"),S.notesCount>0&&ye("notes1"),S.notesCount>=10&&ye("notes10"),S.notesCount>=100&&ye("notes100"),S.notesCount>=500&&ye("notes500"),S.notesCount>=1e3&&ye("notes1000"),S.notesCount>=5e3&&ye("notes5000"),S.notesCount>=1e4&&ye("notes10000"),S.notesCount>=2e4&&ye("notes20000"),S.notesCount>=3e4&&ye("notes30000"),S.notesCount>=4e4&&ye("notes40000"),S.notesCount>=5e4&&ye("notes50000"),S.notesCount>=6e4&&ye("notes60000"),S.notesCount>=7e4&&ye("notes70000"),S.notesCount>=8e4&&ye("notes80000"),S.notesCount>=9e4&&ye("notes90000"),S.notesCount>=1e5&&ye("notes100000"),S.followersCount>0&&ye("followers1"),S.followersCount>=10&&ye("followers10"),S.followersCount>=50&&ye("followers50"),S.followersCount>=100&&ye("followers100"),S.followersCount>=300&&ye("followers300"),S.followersCount>=500&&ye("followers500"),S.followersCount>=1e3&&ye("followers1000");const v=new Date(S.createdAt),p=new Date(S.createdAt);if(p.setFullYear(p.getFullYear()+3),u>=p)ye("passedSinceAccountCreated3"),ye("passedSinceAccountCreated2"),ye("passedSinceAccountCreated1");else{const D=new Date(S.createdAt);if(D.setFullYear(D.getFullYear()+2),u>=D)ye("passedSinceAccountCreated2"),ye("passedSinceAccountCreated1");else{const m=new Date(S.createdAt);m.setFullYear(m.getFullYear()+1),u>=m&&ye("passedSinceAccountCreated1")}}if(Hn.length>=30&&ye("collectAchievements30"),!Hn.includes("justPlainLucky")){let D=function(){if(window.document.visibilityState!=="visible"){m!=null&&window.clearTimeout(m);return}Math.floor(Math.random()*2e4)===0?ye("justPlainLucky"):m=window.setTimeout(D,1e4)},m=null,k=Date.now();window.addEventListener("visibilitychange",()=>{const h=Date.now();window.document.visibilityState==="visible"?h-k<1e3*10?m=window.setTimeout(D,1e3*10):D():m!=null&&(window.clearTimeout(m),m=null),k=h},{passive:!0}),D()}if(Hn.includes("client30min")||window.setTimeout(()=>{ye("client30min")},1e3*60*30),Hn.includes("client60min")||window.setTimeout(()=>{ye("client60min")},1e3*60*60),!window.location.pathname.startsWith("/miauth")&&!window.location.pathname.startsWith("/sso")&&!window.location.pathname.startsWith("/oauth")){const D=ee.getItem("latestDonationInfoShownAt");ee.getItem("neverShowDonationInfo")!=="true"&&v.getTime()<Date.now()-1e3*60*60*24*3&&(D==null||new Date(D).getTime()<Date.now()-1e3*60*60*24*30)&&await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.tImjScCc.js"),__vite__mapDeps([499,2,3,4,500]))),{},{},"closed"),he.googleAnalyticsId&&ee.getItem("gaConsent")===null&&await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.MHzXZDNd.js"),__vite__mapDeps([501,2,80,81,3,4,502]))),{},{},"closed")}"Notification"in window&&Notification.permission==="default"&&Notification.requestPermission();const C=Fn(o.useChannel("main",null,"System"));C.on("meUpdated",D=>{jn(D)}),C.on("announcementCreated",r),C.on("readAllNotifications",()=>{jn({hasUnreadNotification:!1,unreadNotificationsCount:0})}),C.on("unreadNotification",()=>{const D=(S?.unreadNotificationsCount??0)+1;jn({hasUnreadNotification:!0,unreadNotificationsCount:D})}),C.on("newChatMessage",()=>{jn({hasUnreadChatMessages:!0}),Zc("chatMessage")}),C.on("readAllAnnouncements",()=>{jn({hasUnreadAnnouncement:!1,unreadAnnouncements:[]})}),C.on("announcementCreated",r),C.on("myTokenRegenerated",()=>{id()})}const a={"p|n":()=>{S!=null&&Ci()},d:()=>{z.set("darkMode",!z.s.darkMode)},s:()=>{pt.push("/search")}};window.document.addEventListener("keydown",_c(a),{passive:!1}),a6()}function d6(){navigator.serviceWorker.addEventListener("message",async e=>{if(e.data.type==="order"){if(e.data.loginId&&e.data.loginId!==S?.id)return Gc(e.data.loginId).then(t=>{if(t)return Sn(t.token,e.data.url)});switch(e.data.order){case"post":{const t=gn(e.data.options);return t.reply&&(t.reply=await Ae("notes/show",{noteId:t.reply.id})),t.renote&&(t.renote=await Ae("notes/show",{noteId:t.renote.id})),Ci(t)}case"push":return pt.currentRoute.value.path===e.data.url?window.scroll({top:0,behavior:"smooth"}):pt.push(e.data.url);default:return}}})}const f6="/vite/2025.4.1-io.12b-fb6fbea074.D9fmf5cq.png",wl=ne({__name:"MkReactionIcon",props:{reaction:{},noStyle:{type:Boolean},emojiUrl:{},withTooltip:{type:Boolean}},setup(e){const t=e,n=Ee("elRef");
175return t.withTooltip&&Vo(n,async i=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.zCnSZZTQ.js"),__vite__mapDeps([503,16,2,17,3,4,18,504]))),{showing:i,reaction:t.reaction.replace(/^:(\w+):$/,":$1@.:"),targetElement:n.value.$el},{},"closed")}),(i,o)=>{const s=we("MkCustomEmoji"),a=we("MkEmoji");return e.reaction[0]===":"?(c(),q(s,{key:0,ref_key:"elRef",ref:n,name:e.reaction,normal:!0,noStyle:e.noStyle,url:e.emojiUrl,fallbackToImage:!0},null,8,["name","noStyle","url"])):(c(),q(a,{key:1,ref_key:"elRef",ref:n,emoji:e.reaction,normal:!0,noStyle:e.noStyle},null,8,["emoji","noStyle"]))}}}),m6=["disabled"],h6=ne({__name:"MkFollowButton",props:{user:{},full:{type:Boolean,default:!1},large:{type:Boolean,default:!1}},emits:["update:user"],setup(e,{emit:t}){const n=e,i=t,o=F(n.user),s=F(n.user.isLocked===void 0),a=Xn().useChannel("main");o.value.isLocked===void 0&&Ae("users/show",{userId:n.user.id}).then(r).then(()=>{s.value=!1});function r(l){l.id===n.user.id&&(o.value=l)}async function u(){await Pn({openOnRemote:{type:"web",path:`/@${n.user.username}@${n.user.host??He}`}}),s.value=!0;try{if(o.value.isFollowing){const{canceled:l}=await ft({type:"warning",text:w.tsx.unfollowConfirm({name:(o.value.name||o.value.username)??w.ts.user})});if(l){s.value=!1;return}await Ae("following/delete",{userId:n.user.id})}else{if(A.s.alwaysConfirmFollow){const{canceled:l}=await ft({type:"question",text:w.tsx.followConfirm({name:n.user.name||n.user.username})});if(l){s.value=!1;return}}if(o.value.hasPendingFollowRequestFromYou)await Ae("following/requests/cancel",{userId:n.user.id}),o.value.hasPendingFollowRequestFromYou=!1;else{if(await Ae("following/create",{userId:n.user.id,withReplies:A.s.defaultFollowWithReplies}),i("update:user",{...o.value,withReplies:A.s.defaultFollowWithReplies}),o.value.hasPendingFollowRequestFromYou=!0,S==null){s.value=!1;return}ye("following1"),S.followingCount>=10&&ye("following10"),S.followingCount>=50&&ye("following50"),S.followingCount>=100&&ye("following100"),S.followingCount>=300&&ye("following300")}}}catch(l){console.error(l)}finally{s.value=!1}}return je(()=>{a.on("follow",r),a.on("unfollow",r)}),jt(()=>{a.dispose()}),(l,d)=>{const v=we("MkLoading");return c(),g("button",{class:f(["_button",[l.$style.root,{[l.$style.wait]:s.value,[l.$style.active]:o.value.isFollowing||o.value.hasPendingFollowRequestFromYou,[l.$style.full]:e.full,[l.$style.large]:e.large}]]),disabled:s.value,onClick:u},[s.value?(c(),g(pe,{key:1},[e.full?(c(),g("span",{key:0,class:f(l.$style.text)},M(_(w).ts.processing),3)):I("",!0),W(v,{em:!0,colored:!1})],64)):(c(),g(pe,{key:0},[o.value.hasPendingFollowRequestFromYou&&o.value.isLocked?(c(),g(pe,{key:0},[e.full?(c(),g("span",{key:0,class:f(l.$style.text)},M(_(w).ts.followRequestPending),3)):I("",!0),d[0]||(d[0]=y("i",{class:"ti ti-hourglass-empty"},null,-1))],64)):o.value.hasPendingFollowRequestFromYou&&!o.value.isLocked?(c(),g(pe,{key:1},[e.full?(c(),g("span",{key:0,class:f(l.$style.text)},M(_(w).ts.processing),3)):I("",!0),W(v,{em:!0,colored:!1})],64)):o.value.isFollowing?(c(),g(pe,{key:2},[e.full?(c(),g("span",{key:0,class:f(l.$style.text)},M(_(w).ts.youFollowing),3)):I("",!0),d[1]||(d[1]=y("i",{class:"ti ti-minus"},null,-1))],64)):!o.value.isFollowing&&o.value.isLocked?(c(),g(pe,{key:3},[e.full?(c(),g("span",{key:0,class:f(l.$style.text)},M(_(w).ts.followRequest),3)):I("",!0),d[2]||(d[2]=y("i",{class:"ti ti-plus"},null,-1))],64)):!o.value.isFollowing&&!o.value.isLocked?(c(),g(pe,{key:4},[e.full?(c(),g("span",{key:0,class:f(l.$style.text)},M(_(w).ts.follow),3)):I("",!0),d[3]||(d[3]=y("i",{class:"ti ti-plus"},null,-1))],64)):I("",!0)],64))],10,m6)}}}),p6="x88qx",v6="xfS58",g6="x6zcp",y6="x9Qgw",w6="xnCyR",b6="xDA3n",_6={root:p6,full:v6,large:g6,active:y6,wait:w6,text:b6},k6={$style:_6},D6=re(h6,[["__cssModules",k6]]),nt=e=>{if(e==null)return"";if(e.deletedAt)return`(${w.ts.deletedNote})`;if(e.isHidden)return`(${w.ts.invisibleNote})`;let t="";return e.cw!=null?t+=e.cw:t+=e.text?e.text:"",(e.files||[]).length!==0&&(t+=` (${w.tsx.withNFiles({n:e.files.length})})`),e.poll&&(t+=` (${w.ts.poll})`),e.replyId&&(e.reply?t+=` 176
177RE: ${nt(e.reply)}`:t+=` 178 179RE: ...`),e.renoteId&&(e.renote?t+=` 180 181RN: ${nt(e.renote)}`:t+=` 182 183RN: ...`),t.trim()},E6=["src"],C6=["src"],A6={key:0,class:"ti ti-plus"},$6={key:1,class:"ti ti-clock"},x6={key:2,class:"ti ti-check"},T6={key:3,class:"ti ti-repeat"},M6={key:4,class:"ti ti-arrow-back-up"},I6={key:5,class:"ti ti-at"},S6={key:6,class:"ti ti-quote"},F6={key:7,class:"ti ti-chart-arrows"},B6={key:8,class:"ti ti-medal"},P6={key:9,class:"ti ti-calendar-clock"},R6={key:10,class:"ti ti-calendar-check"},L6={key:11,class:"ti ti-calendar-exclamation"},N6={key:12,class:"ti ti-archive"},O6={key:13,class:"ti ti-login-2"},j6={key:14,class:"ti ti-key"},V6={key:15,class:"ti ti-messages"},z6=["src"],H6={key:1,class:"ti ti-badges"},U6={key:11},q6={key:13},W6={key:0},K6={key:20},J6={key:21},G6=ne({__name:"MkNotification",props:{notification:{},withTime:{type:Boolean,default:!1},full:{type:Boolean,default:!1}},setup(e){const t=Wl(),n=e,i={antenna:w.ts.antennas,blocking:w.ts.blockedUsers,clip:w.ts.clips,customEmoji:w.ts.customEmojis,favorite:w.ts.favorites,following:w.ts.following,muting:w.ts.mutedUsers,note:w.ts.notes,userList:w.ts.lists},o=F(!1),s=()=>{"user"in n.notification&&(o.value=!0,Ae("following/requests/accept",{userId:n.notification.user.id}))},a=()=>{"user"in n.notification&&(o.value=!0,Ae("following/requests/reject",{userId:n.notification.user.id}))};function r(u){return u.type!=="reaction:grouped"?0:new Set(u.reactions.map(l=>l.user.id)).size}return(u,l)=>{const d=we("MkAvatar"),v=we("MkUserName"),p=we("MkA"),C=we("MkTime"),D=we("Mfm"),m=Ue("user-preview");return c(),g("div",{class:f(u.$style.root)},[y("div",{class:f(u.$style.head)},[["pollEnded","note"].includes(e.notification.type)&&e.notification.note?(c(),q(d,{key:0,class:f(u.$style.icon),user:e.notification.note.user,link:"",preview:""},null,8,["class","user"])):["roleAssigned","achievementEarned","exportCompleted","login","noteScheduled","scheduledNotePosted","scheduledNoteError","createToken"].includes(e.notification.type)?(c(),q(d,{key:1,class:f(u.$style.icon),user:_(t),link:"",preview:""},null,8,["class","user"])):e.notification.type==="sensitiveFlagAssigned"?(c(),g("div",{key:2,class:f(u.$style.iconFrame)},[y("div",{class:f([u.$style.iconInner])},[y("img",{class:f(u.$style.iconImg),src:f6},null,2)],2)],2)):e.notification.type==="reaction:grouped"&&e.notification.note.reactionAcceptance==="likeOnly"?(c(),g("div",{key:3,class:f([u.$style.icon,u.$style.icon_reactionGroupHeart])},[...l[2]||(l[2]=[y("i",{class:"ti ti-heart",style:{"line-height":"1"}},null,-1)])],2)):e.notification.type==="reaction:grouped"?(c(),g("div",{key:4,class:f([u.$style.icon,u.$style.icon_reactionGroup])},[...l[3]||(l[3]=[y("i",{class:"ti ti-plus",style:{"line-height":"1"}},null,-1)])],2)):e.notification.type==="renote:grouped"?(c(),g("div",{key:5,class:f([u.$style.icon,u.$style.icon_renoteGroup])},[...l[4]||(l[4]=[y("i",{class:"ti ti-repeat",style:{"line-height":"1"}},null,-1)])],2)):e.notification.type==="test"?(c(),g("img",{key:6,class:f(u.$style.icon),src:_(vo)},null,10,E6)):"user"in e.notification?(c(),q(d,{key:7,class:f(u.$style.icon),user:e.notification.user,link:"",preview:""},null,8,["class","user"])):"icon"in e.notification&&e.notification.icon!=null?(c(),g("img",{key:8,class:f([u.$style.icon,u.$style.icon_app]),src:e.notification.icon,alt:""},null,10,C6)):I("",!0),y("div",{class:f([u.$style.subIcon,{[u.$style.t_follow]:e.notification.type==="follow",[u.$style.t_followRequestAccepted]:e.notification.type==="followRequestAccepted",[u.$style.t_receiveFollowRequest]:e.notification.type==="receiveFollowRequest",[u.$style.t_renote]:e.notification.type==="renote",[u.$style.t_reply]:e.notification.type==="reply",[u.$style.t_mention]:e.notification.type==="mention",[u.$style.t_quote]:e.notification.type==="quote",[u.$style.t_pollEnded]:e.notification.type==="pollEnded",[u.$style.t_achievementEarned]:e.notification.type==="achievementEarned",[u.$style.t_exportCompleted]:e.notification.type==="exportCompleted",[u.$style.t_login]:e.notification.type==="login",[u.$style.t_noteScheduled]:e.notification.type==="noteScheduled",[u.$style.t_scheduledNotePosted]:e.notification.type==="scheduledNotePosted",[u.$style.t_scheduledNoteError]:e.notification.type==="scheduledNoteError",[u.$style.t_createToken]:e.notification.type==="createToken",[u.$style.t_chatRoomInvitationReceived]:e.notification.type==="chatRoomInvitationReceived",[u.$style.t_roleAssigned]:e.notification.type==="roleAssigned"&&e.notification.role.iconUrl==null}])},[e.notification.type==="follow"?(c(),g("i",A6)):e.notification.type==="receiveFollowRequest"?(c(),g("i",$6)):e.notification.type==="followRequestAccepted"?(c(),g("i",x6)):e.notification.type==="renote"?(c(),g("i",T6)):e.notification.type==="reply"?(c(),g("i",M6)):e.notification.type==="mention"?(c(),g("i",I6)):e.notification.type==="quote"?(c(),g("i",S6)):e.notification.type==="pollEnded"?(c(),g("i",F6)):e.notification.type==="achievementEarned"?(c(),g("i",B6)):e.notification.type==="noteScheduled"?(c(),g("i",P6)):e.notification.type==="scheduledNotePosted"?(c(),g("i",R6)):e.notification.type==="scheduledNoteError"?(c(),g("i",L6)):e.notification.type==="exportCompleted"?(c(),g("i",N6)):e.notification.type==="login"?(c(),g("i",O6)):e.notification.type==="createToken"?(c(),g("i",j6)):e.notification.type==="chatRoomInvitationReceived"?(c(),g("i",V6)):e.notification.type==="roleAssigned"?(c(),g(pe,{key:16},[e.notification.role.iconUrl?(c(),g("img",{key:0,style:{height:"1.3em","vertical-align":"-22%"},src:e.notification.role.iconUrl,alt:""},null,8,z6)):(c(),g("i",H6))],64)):e.notification.type==="reaction"?(c(),q(wl,{key:17,withTooltip:!0,reaction:e.notification.reaction.replace(/^:(\w+):$/,":$1@.:"),noStyle:!0,style:{width:"100%",height:"100% !important","object-fit":"contain"}},null,8,["reaction"])):I("",!0)],2)],2),y("div",{class:f(u.$style.tail)},[y("header",{class:f(u.$style.header)},[e.notification.type==="pollEnded"?(c(),g("span",{key:0,class:f(u.$style.headerName)},M(_(w).ts._notification.pollEnded),3)):e.notification.type==="note"?(c(),g("span",{key:1,class:f(u.$style.headerName)},[ie(M(_(w).ts._notification.newNote)+": ",1),W(v,{user:e.notification.note.user},null,8,["user"])],2)):e.notification.type==="roleAssigned"?(c(),g("span",{key:2,class:f(u.$style.headerName)},M(_(w).ts._notification.roleAssigned),3)):e.notification.type==="chatRoomInvitationReceived"?(c(),g("span",{key:3,class:f(u.$style.headerName)},M(_(w).ts._notification.chatRoomInvitationReceived),3)):e.notification.type==="achievementEarned"?(c(),g("span",{key:4,class:f(u.$style.headerName)},M(_(w).ts._notification.achievementEarned),3)):e.notification.type==="noteScheduled"?(c(),g("span",{key:5,class:f(u.$style.headerName)},M(_(w).ts._notification.noteScheduled),3)):e.notification.type==="scheduledNotePosted"?(c(),g("span",{key:6,class:f(u.$style.headerName)},M(_(w).ts._notification.scheduledNotePosted),3)):e.notification.type==="scheduledNoteError"?(c(),g("span",{key:7,class:f(u.$style.headerName)},M(_(w).ts._notification.scheduledNoteError),3)):e.notification.type==="login"?(c(),g("span",{key:8,class:f(u.$style.headerName)},M(_(w).ts._notification.login),3)):e.notification.type==="createToken"?(c(),g("span",{key:9,class:f(u.$style.headerName)},M(_(w).ts._notification.createToken),3)):e.notification.type==="test"?(c(),g("span",{key:10,class:f(u.$style.headerName)},M(_(w).ts._notification.testNotification),3)):e.notification.type==="exportCompleted"?(c(),g("span",{key:11,class:f(u.$style.headerName)},M(_(w).tsx._notification.exportOfXCompleted({x:i[e.notification.exportedEntity]})),3)):e.notification.type==="follow"||e.notification.type==="mention"||e.notification.type==="reply"||e.notification.type==="renote"||e.notification.type==="quote"||e.notification.type==="reaction"||e.notification.type==="receiveFollowRequest"||e.notification.type==="followRequestAccepted"?ve((c(),q(p,{key:12,class:f(u.$style.headerName),to:_(Pa)(e.notification.user)},{default:J(()=>[W(v,{user:e.notification.user},null,8,["user"])]),_:1},8,["class","to"])),[[m,e.notification.user.id]]):e.notification.type==="reaction:grouped"&&e.notification.note.reactionAcceptance==="likeOnly"?(c(),g("span",{key:13,class:f(u.$style.headerName)},M(_(w).tsx._notification.likedBySomeUsers({n:r(e.notification)})),3)):e.notification.type==="reaction:grouped"?(c(),g("span",{key:14,class:f(u.$style.headerName)},M(_(w).tsx._notification.reactedBySomeUsers({n:r(e.notification)})),3)):e.notification.type==="renote:grouped"?(c(),g("span",{key:15,class:f(u.$style.headerName)},M(_(w).tsx._notification.renotedBySomeUsers({n:e.notification.users.length})),3)):e.notification.type==="app"?(c(),g("span",{key:16,class:f(u.$style.headerName)},M(e.notification.header),3)):e.notification.type==="sensitiveFlagAssigned"?(c(),q(p,{key:17,to:"/my/drive/file/"+e.notification.fileId,class:f(u.$style.headerName)},{default:J(()=>[ie(M(_(w).ts._notification.sensitiveFlagAssigned),1)]),_:1},8,["to","class"])):I("",!0),e.withTime?(c(),q(C,{key:18,time:e.notification.createdAt,class:f(u.$style.headerTime)},null,8,["time","class"])):I("",!0)],2),y("div",null,[e.notification.type==="reaction"||e.notification.type==="reaction:grouped"?(c(),q(p,{key:0,class:f(u.$style.text),to:_(Qt)(e.notification.note),title:_(nt)(e.notification.note)},{default:J(()=>[y("i",{class:f(["ti ti-quote",u.$style.quote])},null,2),W(D,{text:_(nt)(e.notification.note),plain:!0,nowrap:!0,author:e.notification.note.user},null,8,["text","author"]),y("i",{class:f(["ti ti-quote",u.$style.quote])},null,2)]),_:1},8,["class","to","title"])):e.notification.type==="renote"||e.notification.type==="renote:grouped"?(c(),q(p,{key:1,class:f(u.$style.text),to:_(Qt)(e.notification.note),title:_(nt)(e.notification.note.renote)},{default:J(()=>[y("i",{class:f(["ti ti-quote",u.$style.quote])},null,2),W(D,{text:_(nt)(e.notification.note.renote),plain:!0,nowrap:!0,author:e.notification.note.renote?.user},null,8,["text","author"]),y("i",{class:f(["ti ti-quote",u.$style.quote])},null,2)]),_:1},8,["class","to","title"])):e.notification.type==="reply"?(c(),q(p,{key:2,class:f(u.$style.text),to:_(Qt)(e.notification.note),title:_(nt)(e.notification.note)},{default:J(()=>[W(D,{text:_(nt)(e.notification.note),plain:!0,nowrap:!0,author:e.notification.note.user},null,8,["text","author"])]),_:1},8,["class","to","title"])):e.notification.type==="mention"?(c(),q(p,{key:3,class:f(u.$style.text),to:_(Qt)(e.notification.note),title:_(nt)(e.notification.note)},{default:J(()=>[W(D,{text:_(nt)(e.notification.note),plain:!0,nowrap:!0,author:e.notification.note.user},null,8,["text","author"])]),_:1},8,["class","to","title"])):e.notification.type==="quote"?(c(),q(p,{key:4,class:f(u.$style.text),to:_(Qt)(e.notification.note),title:_(nt)(e.notification.note)},{default:J(()=>[W(D,{text:_(nt)(e.notification.note),plain:!0,nowrap:!0,author:e.notification.note.user},null,8,["text","author"])]),_:1},8,["class","to","title"])):e.notification.type==="note"?(c(),q(p,{key:5,class:f(u.$style.text),to:_(Qt)(e.notification.note),title:_(nt)(e.notification.note)},{default:J(()=>[W(D,{text:_(nt)(e.notification.note),plain:!0,nowrap:!0,author:e.notification.note.user},null,8,["text","author"])]),_:1},8,["class","to","title"])):e.notification.type==="pollEnded"?(c(),q(p,{key:6,class:f(u.$style.text),to:_(Qt)(e.notification.note),title:_(nt)(e.notification.note)},{default:J(()=>[y("i",{class:f(["ti ti-quote",u.$style.quote])},null,2),W(D,{text:_(nt)(e.notification.note),plain:!0,nowrap:!0,author:e.notification.note.user},null,8,["text","author"]),y("i",{class:f(["ti ti-quote",u.$style.quote])},null,2)]),_:1},8,["class","to","title"])):e.notification.type==="roleAssigned"?(c(),g("div",{key:7,class:f(u.$style.text)},M(e.notification.role.name),3)):e.notification.type==="chatRoomInvitationReceived"?(c(),g("div",{key:8,class:f(u.$style.text)},M(e.notification.invitation.room.name),3)):e.notification.type==="achievementEarned"?(c(),q(p,{key:9,class:f(u.$style.text),to:"/my/achievements"},{default:J(()=>[ie(M(_(w).ts._achievements._types["_"+e.notification.achievement].title),1)]),_:1},8,["class"])):e.notification.type==="exportCompleted"?(c(),q(p,{key:10,class:f(u.$style.text),to:`/my/drive/file/${e.notification.fileId}`},{default:J(()=>[ie(M(_(w).ts.showFile),1)]),_:1},8,["class","to"])):e.notification.type==="noteScheduled"?(c(),g("div",U6,[W(D,{class:f(u.$style.text),text:_(nt)(e.notification.draft.data),plain:!0,nowrap:!0},null,8,["class","text"]),e.notification.draft.scheduledAt?(c(),g("div",{key:0,class:f(u.$style.text),style:{opacity:"0.6"}},[l[5]||(l[5]=y("span",null,[y("i",{class:"ti ti-calendar-clock",style:{"margin-right":"4px"}})],-1)),W(C,{time:e.notification.draft.scheduledAt},null,8,["time"])],2)):I("",!0)])):e.notification.type==="scheduledNotePosted"?(c(),q(p,{key:12,class:f(u.$style.text),to:_(Qt)(e.notification.note),title:_(nt)(e.notification.note)},{default:J(()=>[W(D,{text:_(nt)(e.notification.note),plain:!0,nowrap:!0,author:e.notification.note.user},null,8,["text","author"])]),_:1},8,["class","to","title"])):e.notification.type==="scheduledNoteError"?(c(),g("div",q6,[W(D,{class:f(u.$style.text),text:_(nt)(e.notification.draft.data),plain:!0,nowrap:!0},null,8,["class","text"]),e.notification.draft.reason?(c(),g("div",{key:0,class:f(u.$style.text),style:{opacity:"0.6"}},[l[6]||(l[6]=y("span",null,[y("i",{class:"ti ti-exclamation-circle",style:{"margin-right":"4px"}})],-1)),ie(" "+M(e.notification.draft.reason),1)],2)):I("",!0)])):e.notification.type==="createToken"?(c(),q(p,{key:14,class:f(u.$style.text),to:"/settings/apps"},{default:J(()=>[W(D,{text:_(w).tsx._notification.createTokenDescription({text:_(w).ts.manageAccessTokens}
183)},null,8,["text"])]),_:1},8,["class"])):e.notification.type==="follow"?(c(),g(pe,{key:15},[y("span",{class:f(u.$style.text),style:{opacity:"0.6"}},M(_(w).ts.youGotNewFollower),3),e.full?(c(),g("div",W6,[W(D6,{user:e.notification.user,full:!0},null,8,["user"])])):I("",!0)],64)):e.notification.type==="followRequestAccepted"?(c(),g(pe,{key:16},[y("div",{class:f(u.$style.text),style:{opacity:"0.6"}},M(_(w).ts.followRequestAccepted),3),e.notification.message?(c(),g("div",{key:0,class:f(u.$style.text),style:{opacity:"0.6","font-style":"oblique"}},[y("i",{class:f(["ti ti-quote",u.$style.quote])},null,2),y("span",null,M(e.notification.message),1),y("i",{class:f(["ti ti-quote",u.$style.quote])},null,2)],2)):I("",!0)],64)):e.notification.type==="receiveFollowRequest"?(c(),g(pe,{key:17},[y("span",{class:f(u.$style.text),style:{opacity:"0.6"}},M(_(w).ts.receiveFollowRequest),3),e.full&&!o.value?(c(),g("div",{key:0,class:f(u.$style.followRequestCommands)},[W(dt,{class:f(u.$style.followRequestCommandButton),rounded:"",primary:"",onClick:l[0]||(l[0]=k=>s())},{default:J(()=>[l[7]||(l[7]=y("i",{class:"ti ti-check"},null,-1)),ie(" "+M(_(w).ts.accept),1)]),_:1},8,["class"]),W(dt,{class:f(u.$style.followRequestCommandButton),rounded:"",danger:"",onClick:l[1]||(l[1]=k=>a())},{default:J(()=>[l[8]||(l[8]=y("i",{class:"ti ti-x"},null,-1)),ie(" "+M(_(w).ts.reject),1)]),_:1},8,["class"])],2)):I("",!0)],64)):e.notification.type==="test"?(c(),g("span",{key:18,class:f(u.$style.text)},M(_(w).ts._notification.notificationWillBeDisplayedLikeThis),3)):e.notification.type==="app"?(c(),g("span",{key:19,class:f(u.$style.text)},[W(D,{text:e.notification.body,nowrap:!1},null,8,["text"])],2)):I("",!0),e.notification.type==="reaction:grouped"?(c(),g("div",K6,[(c(!0),g(pe,null,Re(e.notification.reactions,k=>(c(),g("div",{key:k.user.id+k.reaction,class:f(u.$style.reactionsItem)},[W(d,{class:f(u.$style.reactionsItemAvatar),user:k.user,link:"",preview:""},null,8,["class","user"]),y("div",{class:f(u.$style.reactionsItemReaction)},[W(wl,{withTooltip:!0,reaction:k.reaction.replace(/^:(\w+):$/,":$1@.:"),noStyle:!0,style:{width:"100%",height:"100% !important","object-fit":"contain"}},null,8,["reaction"])],2)],2))),128))])):e.notification.type==="renote:grouped"?(c(),g("div",J6,[(c(!0),g(pe,null,Re(e.notification.users,k=>(c(),g("div",{key:k.id,class:f(u.$style.reactionsItem)},[W(d,{class:f(u.$style.reactionsItemAvatar),user:k,link:"",preview:""},null,8,["class","user"])],2))),128))])):e.notification.type==="sensitiveFlagAssigned"?(c(),q(D,{key:22,text:_(w).ts.sensitiveByModerator},null,8,["text"])):I("",!0),["sensitiveFlagAssigned"].includes(e.notification.type)?(c(),g("span",{key:23,class:f(u.$style.text),style:{opacity:"0.6"}},M(_(w).ts.thisInfoIsNotVisibleOtherUser),3)):I("",!0)])],2)],2)}}}),Y6="x9Bba",X6="xwUec",Q6="xlX0H",Z6="xat0T",eS="xzgzR",tS="xhnfP",nS="x4fon",iS="xAV2R",oS="xrsWF",sS="xs0lq",aS="xeJpD",rS="xpz4J",lS="xxWPs",uS="x3wBU",cS="xaGn2",dS="xyZo0",fS="xbTJI",mS="xlZy2",hS="xeuJm",pS="xkK42",vS="xAyt5",gS="xevB7",yS="xe8a4",wS="xiDlO",bS="x4sHQ",_S="xqYy8",kS="xkPP6",DS="xEPBi",ES="x4ZLV",CS="xtktr",AS="xi4PS",$S="x4jMg",xS="xC3zn",TS="xwj0z",MS="xENB4",IS="xdYXp",SS="x1z66",FS="xEX6r",BS="xqPr5",PS="xoqMg",RS={root:Y6,head:X6,icon:Q6,icon_reactionGroup:Z6,icon_reactionGroupHeart:eS,icon_renoteGroup:tS,icon_app:nS,subIcon:iS,t_follow:oS,t_followRequestAccepted:sS,t_receiveFollowRequest:aS,t_renote:rS,t_quote:lS,t_reply:uS,t_mention:cS,t_pollEnded:dS,t_achievementEarned:fS,t_exportCompleted:mS,t_noteScheduled:hS,t_scheduledNotePosted:pS,t_scheduledNoteError:vS,t_roleAssigned:gS,t_login:yS,t_sensitiveFlagAssigned:wS,t_createToken:bS,t_chatRoomInvitationReceived:_S,tail:kS,header:DS,headerName:ES,headerTime:CS,text:AS,quote:$S,followRequestCommands:xS,followRequestCommandButton:TS,reactionsItem:MS,reactionsItemAvatar:IS,reactionsItemReaction:SS,iconFrame:FS,iconImg:BS,iconInner:PS},LS={$style:RS},NS=re(G6,[["__cssModules",LS]]),OS=ne({__name:"notification",props:{notification:{}},setup(e){return(t,n)=>(c(),g("div",{class:f(t.$style.root)},[W(NS,{notification:e.notification,class:"notification _acrylic",full:!1},null,8,["notification"])],2))}}),jS="x7tOU",VS={root:jS},zS={$style:VS},HS=re(OS,[["__cssModules",zS]]);
183function US(e){switch(e.type){case"reaction":if(z.s.mutedReactions.includes(e.reaction.replace("@.","")))return!1;break;case"reaction:grouped":if(e.reactions=e.reactions.filter(t=>!z.s.mutedReactions.includes(t.reaction.replace("@.",""))),e.reactions.length===0)return!1;break}return!0}const qS="/vite/2025.4.1-io.12b-fb6fbea074.CkvuSS1W.png";function od(){return[{type:"link",to:"/scratchpad",text:w.ts.scratchpad,icon:"ti ti-terminal-2"},{type:"link",to:"/api-console",text:"API Console",icon:"ti ti-terminal-2"},{type:"link",to:"/clicker",text:"ðªð",icon:"ti ti-cookie"},S&&(S.isAdmin||S.policies.canManageCustomEmojis)?{type:"link",to:"/custom-emojis-manager",text:w.ts.manageCustomEmojis,icon:"ti ti-icons"}:void 0,S&&(S.isAdmin||S.policies.canManageAvatarDecorations)?{type:"link",to:"/avatar-decorations",text:w.ts.manageAvatarDecorations,icon:"ti ti-sparkles"}:void 0]}function fa(e){const t=[];t.push({text:he.name??He,type:"label"},{type:"link",text:w.ts.instanceInfo,icon:"ti ti-info-circle",to:"/about"},{type:"link",text:w.ts.customEmojis,icon:"ti ti-icons",to:"/about#emojis"}),he.federation!=="none"&&t.push({type:"link",text:w.ts.federation,icon:"ti ti-whirl",to:"/about#federation"}),t.push({type:"link",text:w.ts.charts,icon:"ti ti-chart-line",to:"/about#charts"},{type:"divider"},{type:"link",text:w.ts.ads,icon:"ti ti-ad",to:"/ads"}),S&&(S.isAdmin||S.policies.canInvite)&&he.disableRegistration&&t.push({type:"link",to:"/invite",text:w.ts.invite,icon:"ti ti-user-plus"}),t.push({type:"parent",text:w.ts.tools,icon:"ti ti-tool",children:od()},{type:"divider"},{type:"link",text:w.ts.inquiry,icon:"ti ti-help-circle",to:"/contact"}),he.impressumUrl&&t.push({type:"a",text:w.ts.impressum,icon:"ti ti-file-invoice",href:he.impressumUrl,target:"_blank"}),he.tosUrl&&t.push({type:"a",text:w.ts.termsOfService,icon:"ti ti-notebook",href:he.tosUrl,target:"_blank"}),he.privacyPolicyUrl&&t.push({type:"a",text:w.ts.privacyPolicy,icon:"ti ti-shield-lock",href:he.privacyPolicyUrl,target:"_blank"}),(he.impressumUrl!=null||he.tosUrl!=null||he.privacyPolicyUrl!=null)&&t.push({type:"divider"}),t.push({type:"a",text:w.ts.document,icon:"ti ti-bulb",href:"https://misskey-hub.net/docs/for-users/",target:"_blank"}),S&&t.push({text:w.ts._initialTutorial.launchTutorial,icon:"ti ti-presentation",action:async()=>{await De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.Dv1dTpod.js"),__vite__mapDeps([505,2,14,15,16,17,3,4,18,19,20,21,22,23,24,25,26,32,173,174,80,81,506]))),{},{},"closed")}}),t.push({type:"link",text:w.ts.aboutMisskey,to:"/about-misskey"}),st(t,e.currentTarget??e.target,{align:"left"})}function WS(e){st(od(),e.currentTarget??e.target,{align:"left"})}async function KS(){Wa(),ee.removeItem("instance"),ee.removeItem("instanceCachedAt"),ee.removeItem("locale"),ee.removeItem("localeVersion"),ee.removeItem("theme"),ee.removeItem("emojis"),ee.removeItem("lastEmojisFetchedAt"),await Ql(!0),await gc(!0),an()}async function JS(e){const t=pt,{canceled:n,result:i}=await qo({title:w.ts.lookup}),o=i?i.trim():"";if(!(n||o.length<=1)){if(o.startsWith("@")&&!o.includes(" ")){t.push(`/${o}`);return}if(o.startsWith("#")){t.push(`/tags/${encodeURIComponent(o.substring(1))}`);return}if(o.startsWith("https://")){const s=await GS(o);s.type==="User"?t.push(`/@${s.object.username}@${s.object.host}`):s.type==="Note"&&t.push(`/notes/${s.object.id}`);return}}}async function GS(e){const t=Ae("ap/show",{uri:e});return wc(t,null,n=>{let i=w.ts.somethingHappened,o=n.message+` 184`+n.id;switch(n.id){case"974b799e-1a29-4889-b706-18d4dd93e266":i=w.ts._remoteLookupErrors._federationNotAllowed.title,o=w.ts._remoteLookupErrors._federationNotAllowed.description;break;case"1a5eab56-e47b-48c2-8d5e-217b897d70db":i=w.ts._remoteLookupErrors._uriInvalid.title,o=w.ts._remoteLookupErrors._uriInvalid.description;break;case"81b539cf-4f57-4b29-bc98-032c33c0792e":i=w.ts._remoteLookupErrors._requestFailed.title,o=w.ts._remoteLookupErrors._requestFailed.description;break;case"70193c39-54f3-4813-82f0-70a680f7495b":i=w.ts._remoteLookupErrors._responseInvalid.title,o=w.ts._remoteLookupErrors._responseInvalid.description;break;case"dc94d745-1262-4e63-a17d-fecaa57efc82":i=w.ts._remoteLookupErrors._noSuchObject.title,o=w.ts._remoteLookupErrors._noSuchObject.description;break}et({type:"error",title:i,text:o})},w.ts.fetchingAsApObject),await t}const Bs=ee.getItem("kawaii")==="true",ht=To({notifications:{title:w.ts.notifications,icon:"ti ti-bell",show:G(()=>S!=null),indicated:G(()=>S!=null&&S.hasUnreadNotification),indicateValue:G(()=>!S||S.unreadNotificationsCount===0?"":S.unreadNotificationsCount>99?"99+":S.unreadNotificationsCount.toString()),to:"/my/notifications"},drive:{title:w.ts.drive,icon:"ti ti-cloud",show:G(()=>S!=null),to:"/my/drive"},followRequests:{title:w.ts.followRequests,icon:"ti ti-user-plus",indicated:G(()=>S!=null&&S.hasPendingReceivedFollowRequest),to:"/my/follow-requests"},explore:{title:w.ts.explore,icon:"ti ti-hash",to:"/explore"},announcements:{title:w.ts.announcements,icon:"ti ti-speakerphone",indicated:G(()=>S!=null&&S.hasUnreadAnnouncement),to:"/announcements"},search:{title:w.ts.search,icon:"ti ti-search",to:"/search"},lookup:{title:w.ts.lookup,icon:"ti ti-world-search",action:e=>{JS()}},lists:{title:w.ts.lists,icon:"ti ti-list",show:G(()=>S!=null),to:"/my/lists"},antennas:{title:w.ts.antennas,icon:"ti ti-antenna",show:G(()=>S!=null),to:"/my/antennas"},favorites:{title:w.ts.favorites,icon:"ti ti-star",show:G(()=>S!=null),to:"/my/favorites"},pages:{title:w.ts.pages,icon:"ti ti-news",to:"/pages"},play:{title:"Play",icon:"ti ti-player-play",to:"/play"},gallery:{title:w.ts.gallery,icon:"ti ti-icons",to:"/gallery"},clips:{title:w.ts.clip,icon:"ti ti-paperclip",show:G(()=>S!=null),to:"/my/clips"},channels:{title:w.ts.channel,icon:"ti ti-device-tv",to:"/channels"},achievements:{title:w.ts.achievements,icon:"ti ti-medal",show:G(()=>S!=null),to:"/my/achievements"},games:{title:"Misskey Games",icon:"ti ti-device-gamepad",to:"/games"},ui:{title:w.ts.switchUi,icon:"ti ti-devices",action:e=>{st([{text:w.ts.default,active:Ji==="default"||Ji===null,action:()=>{ee.setItem("ui","default"),an()}},{text:w.ts.deck,active:Ji==="deck",action:()=>{ee.setItem("ui","deck"),an()}}],e.currentTarget??e.target)}},about:{title:w.ts.about,icon:"ti ti-info-circle",action:e=>{fa(e)}},tools:{title:w.ts.tools,icon:"ti ti-tool",action:e=>{WS(e)}},reload:{title:w.ts.reload,icon:"ti ti-refresh",action:e=>{window.location.reload()}},profile:{title:w.ts.profile,icon:"ti ti-user",show:G(()=>S!=null),to:`/@${S?.username}`},kawaii:{title:Bs?"no uwu plz":"uwu?",icon:Bs?"ti ti-mood-smile":"ti ti-mood-wink",action:e=>{Bs?ee.removeItem("kawaii"):ee.setItem("kawaii","true"),window.location.reload()}},support:{title:w.tsx.supportThisInstance({name:he.name??He}),icon:"ti ti-pig-money",action:e=>{window.open("https://go.misskey.io/donate","_blank","noopener")}},cacheClear:{title:w.ts.clearCache,icon:"ti ti-trash",action:e=>{KS()}}}),YS=["src"],XS={key:1,class:"_indicatorCircle"},QS={style:{position:"relative"}}
184,ZS=ne({__name:"navbar-for-mobile",setup(e){const t=ee.getItem("kawaii")==="true",n=G(()=>{for(const s in ht)if(!A.r.menu.value.includes(s)&&ht[s].indicated)return!0;return!1});function i(s){Oa({withExtraOperation:!0},s)}function o(){De(de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CND97Tcl.js"),__vite__mapDeps([507,2,3,4,508]))),{},{},"closed")}return(s,a)=>{const r=we("MkA"),u=we("MkAvatar"),l=we("MkAcct");return c(),g("div",{class:f(s.$style.root)},[y("div",{class:f(s.$style.top)},[y("div",{class:f(s.$style.banner),style:Ge({backgroundImage:`url(${_(he).bannerUrl})`})},null,6),y("button",{class:f(["_button",s.$style.instance]),onClick:a[0]||(a[0]=(...d)=>_(fa)&&_(fa)(...d))},[t?(c(),g("img",{key:0,src:qS,alt:"",class:f(s.$style.instanceIconAlt)},null,2)):(c(),g("img",{key:1,src:_(he).iconUrl||_(he).faviconUrl||"/favicon.ico",alt:"",class:f(s.$style.instanceIcon)},null,10,YS))],2)],2),y("div",{class:f(s.$style.middle)},[W(r,{class:f(s.$style.item),activeClass:s.$style.active,to:"/",exact:""},{default:J(()=>[y("i",{class:f([s.$style.itemIcon,"ti ti-home ti-fw"])},null,2),y("span",{class:f(s.$style.itemText)},M(_(w).ts.timeline),3)]),_:1},8,["class","activeClass"]),(c(!0),g(pe,null,Re(_(A).r.menu.value,d=>(c(),g(pe,null,[d==="-"?(c(),g("div",{key:0,class:f(s.$style.divider)},null,2)):_(ht)[d]&&_(ht)[d].show!==!1?(c(),q(kt(_(ht)[d].to?"MkA":"button"),Jt({key:1,class:["_button",[s.$style.item,{[s.$style.active]:_(ht)[d].active}]],activeClass:s.$style.active,to:_(ht)[d].to},kl(_(ht)[d].action?{click:_(ht)[d].action}:{})),{default:J(()=>[y("i",{class:f(["ti-fw",[s.$style.itemIcon,_(ht)[d].icon]])},null,2),y("span",{class:f(s.$style.itemText)},M(_(ht)[d].title),3),_(ht)[d].indicated?(c(),g("span",{key:0,class:f([s.$style.itemIndicator,"_blink"])},[_(ht)[d].indicateValue?(c(),g("span",{key:0,class:f(["_indicateCounter",s.$style.itemIndicateValueIcon])},M(_(ht)[d].indicateValue),3)):(c(),g("i",XS))],2)):I("",!0)]),_:2},1040,["class","activeClass","to"])):I("",!0)],64))),256)),y("div",{class:f(s.$style.divider)},null,2),_(S).isAdmin||_(S).isModerator?(c(),q(r,{key:0,class:f(s.$style.item),activeClass:s.$style.active,to:"/admin"},{default:J(()=>[y("i",{class:f([s.$style.itemIcon,"ti ti-dashboard ti-fw"])},null,2),y("span",{class:f(s.$style.itemText)},M(_(w).ts.controlPanel),3)]),_:1},8,["class","activeClass"])):I("",!0),y("button",{class:f([s.$style.item,"_button"]),onClick:o},[y("i",{class:f([s.$style.itemIcon,"ti ti-grid-dots ti-fw"])},null,2),y("span",{class:f(s.$style.itemText)},M(_(w).ts.more),3),n.value?(c(),g("span",{key:0,class:f([s.$style.itemIndicator,"_blink"])},[...a[2]||(a[2]=[y("i",{class:"_indicatorCircle"},null,-1)])],2)):I("",!0)],2),W(r,{class:f(s.$style.item),activeClass:s.$style.active,to:"/settings"},{default:J(()=>[y("i",{class:f([s.$style.itemIcon,"ti ti-settings ti-fw"])},null,2),y("span",{class:f(s.$style.itemText)},M(_(w).ts.settings),3)]),_:1},8,["class","activeClass"])],2),y("div",{class:f(s.$style.bottom)},[y("button",{class:f(["_button",s.$style.post]),"data-cy-open-post-form":"",onClick:a[1]||(a[1]=(...d)=>Ci&&Ci(...d))},[y("i",{class:f([s.$style.postIcon,"ti ti-pencil ti-fw"])},null,2),y("span",QS,M(_(w).ts.note),1)],2),y("button",{class:f(["_button",s.$style.account]),onClick:i},[W(u,{user:_(S),class:f(s.$style.avatar)},null,8,["user","class"]),W(l,{class:f([s.$style.acct,"_nowrap"]),user:_(S)},null,8,["class","user"])],2)],2)],2)}}}),eF="x9879",tF="x8gy9",nF="xvAuD",iF="x3QVp",oF="x8H98",sF="xdVE8",aF="x219z",rF="xau59",lF="xq8mD",uF="xE53E",cF="x8N8U",dF="x78u9",fF="x3axN",mF="xpmTH",hF="xkDcK",pF="xgjv7",vF="x5dUE",gF="x9yS1",yF="x1xDZ",wF="xfzGn",bF={root:eF,top:tF,banner:nF,instance:iF,instanceIcon:oF,instanceIconAlt:sF,bottom:aF,post:rF,active:lF,postIcon:uF,account:cF,avatar:dF,acct:fF,middle:mF,divider:hF,item:pF,itemIcon:vF,itemIndicator:gF,itemIndicateValueIcon:yF,itemText:wF},_F={$style:bF},kF=re(ZS,[["__cssModules",_F]]),DF={key:1,id:"wait"},EF={key:2,id:"devTicker"},CF={key:3,id:"botWarn"},AF={style:{animation:"dev-ticker-blink 2s infinite"}},$F=ne({__name:"common",props:{drawerMenuShowing:{type:Boolean},drawerMenuShowingModifiers:{},widgetsShowing:{type:Boolean},widgetsShowingModifiers:{}},emits:["update:drawerMenuShowing","update:widgetsShowing"],setup(e){const t=de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.zD7TzwEr.js"),__vite__mapDeps([509,2,3,4,510]))),n=de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.CLP2-zet.js"),__vite__mapDeps([511,2,3,4,512]))),i=de(()=>x(()=>import("./2025.4.1-io.12b-fb6fbea074.BZJSbdXB.js"),__vite__mapDeps([513,486,2,15,487,3,4,514]))),o=yi(e,"drawerMenuShowing"),s=yi(e,"widgetsShowing"),a=!1,r=F([]);function u(l,d=!1){if(window.document.visibilityState==="visible"){if(!d&&l.type!=="test"&&Xn().send("readNotification"),!US(l))return;r.value.unshift(l),window.setTimeout(()=>{r.value.length>3&&r.value.pop()},500),window.setTimeout(()=>{r.value=r.value.filter(v=>v.id!==l.id)},6e3)}Zc("notification")}return S&&(Xn().useChannel("main",null,"UI").on("notification",u),ei.on("clientNotification",d=>
184u(d,!0)),"serviceWorker"in navigator&&d6()),(l,d)=>(c(),g(pe,null,[W(bt,{enterActiveClass:_(A).s.animation?l.$style.transition_menuDrawerBg_enterActive:"",leaveActiveClass:_(A).s.animation?l.$style.transition_menuDrawerBg_leaveActive:"",enterFromClass:_(A).s.animation?l.$style.transition_menuDrawerBg_enterFrom:"",leaveToClass:_(A).s.animation?l.$style.transition_menuDrawerBg_leaveTo:""},{default:J(()=>[o.value?(c(),g("div",{key:0,class:f([l.$style.menuDrawerBg,"_modalBg"]),onClick:d[0]||(d[0]=v=>o.value=!1),onTouchstartPassive:d[1]||(d[1]=v=>o.value=!1)},null,34)):I("",!0)]),_:1},8,["enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass"]),W(bt,{enterActiveClass:_(A).s.animation?l.$style.transition_menuDrawer_enterActive:"",leaveActiveClass:_(A).s.animation?l.$style.transition_menuDrawer_leaveActive:"",enterFromClass:_(A).s.animation?l.$style.transition_menuDrawer_enterFrom:"",leaveToClass:_(A).s.animation?l.$style.transition_menuDrawer_leaveTo:""},{default:J(()=>[o.value?(c(),g("div",{key:0,class:f(l.$style.menuDrawer)},[W(kF)],2)):I("",!0)]),_:1},8,["enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass"]),W(bt,{enterActiveClass:_(A).s.animation?l.$style.transition_widgetsDrawerBg_enterActive:"",leaveActiveClass:_(A).s.animation?l.$style.transition_widgetsDrawerBg_leaveActive:"",enterFromClass:_(A).s.animation?l.$style.transition_widgetsDrawerBg_enterFrom:"",leaveToClass:_(A).s.animation?l.$style.transition_widgetsDrawerBg_leaveTo:""},{default:J(()=>[s.value?(c(),g("div",{key:0,class:f([l.$style.widgetsDrawerBg,"_modalBg"]),onClick:d[2]||(d[2]=v=>s.value=!1),onTouchstartPassive:d[3]||(d[3]=v=>s.value=!1)},null,34)):I("",!0)]),_:1},8,["enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass"]),W(bt,{enterActiveClass:_(A).s.animation?l.$style.transition_widgetsDrawer_enterActive:"",leaveActiveClass:_(A).s.animation?l.$style.transition_widgetsDrawer_leaveActive:"",enterFromClass:_(A).s.animation?l.$style.transition_widgetsDrawer_enterFrom:"",leaveToClass:_(A).s.animation?l.$style.transition_widgetsDrawer_leaveTo:""},{default:J(()=>[s.value?(c(),g("div",{key:0,class:f(l.$style.widgetsDrawer)},[y("button",{class:f(["_button",l.$style.widgetsCloseButton]),onClick:d[4]||(d[4]=v=>s.value=!1)},[...d[5]||(d[5]=[y("i",{class:"ti ti-x"},null,-1)])],2),W(_(i))],2)):I("",!0)]),_:1},8,["enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass"]),(c(!0),g(pe,null,Re(_(no),v=>(c(),q(kt(v.component),Jt({key:v.id},{ref_for:!0},v.props,kl(v.events)),null,16))),128)),_(On).length>0?(c(),q(_(n),{key:0})):I("",!0),(c(),q(kt(_(A).s.animation?ma:"div"),{tag:"div",class:f([l.$style.notifications,{[l.$style.notificationsPosition_leftTop]:_(A).s.notificationPosition==="leftTop",[l.$style.notificationsPosition_leftBottom]:_(A).s.notificationPosition==="leftBottom",[l.$style.notificationsPosition_rightTop]:_(A).s.notificationPosition==="rightTop",[l.$style.notificationsPosition_rightBottom]:_(A).s.notificationPosition==="rightBottom",[l.$style.notificationsStackAxis_vertical]:_(A).s.notificationStackAxis==="vertical",[l.$style.notificationsStackAxis_horizontal]:_(A).s.notificationStackAxis==="horizontal"}]),moveClass:l.$style.transition_notification_move,enterActiveClass:l.$style.transition_notification_enterActive,leaveActiveClass:l.$style.transition_notification_leaveActive,enterFromClass:l.$style.transition_notification_enterFrom,leaveToClass:l.$style.transition_notification_leaveTo},{default:J(()=>[(c(!0),g(pe,null,Re(r.value,v=>(c(),g("div",{key:v.id,class:f(l.$style.notification)},[W(HS,{notification:v},null,8,["notification"])],2))),128))]),_:1},8,["class","moveClass","enterActiveClass","leaveActiveClass","enterFromClass","leaveToClass"])),W(_(t)),_(bi)>0?(c(),g("div",DF)):I("",!0),_(a)?(c(),g("div",EF,[...d[6]||(d[6]=[y("span",{style:{animation:"dev-ticker-blink 2s infinite"}},"DEV BUILD",-1)])])):I("",!0),_(S)&&_(S).isBot?(c(),g("div",CF,[y("span",AF,M(_(w).ts.loggedInAsBot),1)])):I("",!0)],64))}}),xF="x7qAC",TF="xhGPG",MF="x5Y1m",IF="xozga",SF="x4nRt",FF="xdH3w",BF="x47Ey",PF="xmzHC",RF="x7Mez",LF="xd8y5",NF="xCogR",OF="x9Qqm",jF="xbxUu",VF="xDdqY",zF="xiHl6",HF="xmDQu",
184UF="xyx1x",qF="xnusG",WF="xgPrw",KF="xtbCC",JF="xrmR2",GF="xaRBP",YF="x6wbo",XF="xuU9G",QF="xa8HC",ZF="xEV9p",e5="xpjbG",t5="xAphT",n5="xmeJN",i5="xjsv5",o5="xqdFD",s5="xnpTD",a5="xr2R3",r5="xax7e",l5={transition_menuDrawerBg_enterActive:xF,transition_menuDrawerBg_leaveActive:TF,transition_menuDrawerBg_enterFrom:MF,transition_menuDrawerBg_leaveTo:IF,transition_menuDrawer_enterActive:SF,transition_menuDrawer_leaveActive:FF,transition_menuDrawer_enterFrom:BF,transition_menuDrawer_leaveTo:PF,transition_widgetsDrawerBg_enterActive:RF,transition_widgetsDrawerBg_leaveActive:LF,transition_widgetsDrawerBg_enterFrom:NF,transition_widgetsDrawerBg_leaveTo:OF,transition_widgetsDrawer_enterActive:jF,transition_widgetsDrawer_leaveActive:VF,transition_widgetsDrawer_enterFrom:zF,transition_widgetsDrawer_leaveTo:HF,transition_notification_move:UF,transition_notification_enterActive:qF,transition_notification_leaveActive:WF,transition_notification_enterFrom:KF,transition_notification_leaveTo:JF,menuDrawerBg:GF,menuDrawer:YF,widgetsDrawerBg:XF,widgetsDrawer:QF,widgetsCloseButton:ZF,notifications:e5,notificationsPosition_leftTop:t5,notificationsPosition_rightTop:n5,notificationsPosition_leftBottom:i5,notificationsPosition_rightBottom:o5,notificationsStackAxis_vertical:s5,notification:a5,notificationsStackAxis_horizontal:r5},u5={$style:l5},c5=re($F,[["__cssModules",u5]]),d5=ne({__name:"minimum",setup(e){const t=G(()=>pt.currentRoute.value.name==="index"),n=F(null);return lt(ze.router,pt),cc(i=>{const o=i();n.value=o,n.value&&(t.value&&n.value.title===lr?window.document.title=n.value.title:window.document.title=`${n.value.title} | ${lr}`)}),dc(n),(i,o)=>{const s=we("RouterView");return c(),g("div",{class:f(i.$style.root)},[W(s),W(c5)],2)}}}),f5="xxpSa",m5={root:f5},h5={$style:m5},p5=re(d5,[["__cssModules",h5]]);async function v5(){const{isClientUpdated:e}=await Xc(async()=>_l(p5));nd.init()}const g5=["/share","/auth","/miauth","/oauth","/sso","/signup-complete","/install-extensions"];g5.some(e=>window.location.pathname===e||window.location.pathname.startsWith(e+"/"))?v5():c6();export{S as $,s4 as A,Wo as B,ye as C,ze as D,Y_ as E,Ae as F,oi as G,qa as H,Qn as I,Gm as J,P5 as K,ee as L,dt as M,Oo as N,He as O,F8 as P,At as Q,Si as R,Wl as S,_s as T,mi as U,yE as V,Vu as W,c5 as X,Qr as Y,UA as Z,re as _,dc as a,nt as a$,rl as a0,cb as a1,z as a2,tI as a3,Wu as a4,jn as a5,si as a6,za as a7,Bo as a8,ql as a9,Sa as aA,$5 as aB,Sf as aC,ln as aD,Li as aE,U1 as aF,Lu as aG,Qs as aH,Qt as aI,wl as aJ,Ua as aK,Vo as aL,Ro as aM,B$ as aN,mC as aO,Tn as aP,j5 as aQ,xn as aR,np as aS,ja as aT,NA as aU,Dt as aV,nl as aW,mt as aX,i6 as aY,r4 as aZ,Jg as a_,ga as aa,z5 as ab,Gs as ac,vo as ad,b5 as ae,Jr as af,xc as ag,IC as ah,V0 as ai,_e as aj,ni as ak,Bn as al,wc as am,P
184n as an,kD as ao,S5 as ap,x5 as aq,Pa as ar,hc as as,qS as at,In as au,Xn as av,gu as aw,Zc as ax,NS as ay,US as az,lr as b,T5 as b$,uw as b0,Cw as b1,Xl as b2,Gr as b3,PA as b4,s6 as b5,lh as b6,uh as b7,qu as b8,eu as b9,Qc as bA,td as bB,o2 as bC,xT as bD,Xe as bE,Rt as bF,L5 as bG,KI as bH,WI as bI,jo as bJ,sy as bK,D6 as bL,V5 as bM,D5 as bN,Yl as bO,tu as bP,fn as bQ,B5 as bR,F5 as bS,KS as bT,id as bU,Ba as bV,an as bW,ra as bX,$c as bY,Q5 as bZ,nd as b_,fc as ba,xt as bb,zn as bc,Sn as bd,Ur as be,O5 as bf,I_ as bg,El as bh,Jo as bi,ko as bj,Ku as bk,rn as bl,HA as bm,mv as bn,Zn as bo,On as bp,Zu as bq,C5 as br,ZI as bs,ut as bt,es as bu,$i as bv,Ou as bw,ei as bx,Di as by,gk as bz,A as c,Jl as c$,Y5 as c0,Z_ as c1,e2 as c2,k5 as c3,fb as c4,N5 as c5,i4 as c6,Jc as c7,o4 as c8,ju as c9,E5 as cA,Vn as cB,jI as cC,db as cD,zA as cE,vi as cF,k_ as cG,lc as cH,Ec as cI,a2 as cJ,JS as cK,xi as cL,X5 as cM,b_ as cN,qA as cO,M5 as cP,Ql as cQ,mc as cR,ac as cS,U5 as cT,H5 as cU,JM as cV,xa as cW,jA as cX,nC as cY,yc as cZ,Ei as c_,mo as ca,ho as cb,Ja as cc,Uc as cd,t4 as ce,e4 as cf,OI as cg,n4 as ch,VI as ci,UI as cj,R5 as ck,a4 as cl,q5 as cm,Un as cn,d8 as co,W5 as cp,l2 as cq,K5 as cr,J5 as cs,Zr as ct,tc as cu,P_ as cv,R_ as cw,Ps as cx,u6 as cy,Hn as cz,he as d,I5 as d0,rc as d1,Ac as d2,g$ as d3,h$ as d4,Tu as d5,Fi as d6,DM as d7,_5 as d8,G5 as d9,GS as da,Ci as e,De as f,x as g,Oa as h,w as i,gn as j,qo as k,st as l,pt as m,ht as n,fa as o,cc as p,Z5 as q,bc as r,VA as s,al as t,Ji as u,Ii as v,t6 as w,et as x,l4 as y,ft as z}; 185//# sourceMappingURL=2025.4.1-io.12b-fb6fbea074.YfCF2PUN.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.