@intent-hq/web 2.383.5 → 2.383.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{RFsxwSsB.js → -jC6R53Y.js} +1 -1
- package/web/app/immutable/chunks/{Co4vj0dC.js → 11IPfP64.js} +1 -1
- package/web/app/immutable/chunks/{wqIK2bns.js → 1VDAs3Ud.js} +1 -1
- package/web/app/immutable/chunks/{DnJ4jlPB.js → 2BBUaa8p.js} +1 -1
- package/web/app/immutable/chunks/{Bymbu99U.js → 38BB0grB.js} +1 -1
- package/web/app/immutable/chunks/{Dirmxn0x.js → 3FaPVDTk.js} +1 -1
- package/web/app/immutable/chunks/{D6G8WbHL.js → 51Rp6_AF.js} +1 -1
- package/web/app/immutable/chunks/{Dj14JHUo.js → 5moVT_HQ.js} +1 -1
- package/web/app/immutable/chunks/{B8-Q1tED.js → 6D8I0EJP.js} +1 -1
- package/web/app/immutable/chunks/{DW25C9MI.js → 7da8sugr.js} +2 -2
- package/web/app/immutable/chunks/{CiMmbOsB.js → 7g_E9v8v.js} +1 -1
- package/web/app/immutable/chunks/{DibfmKHg.js → 8MucyzZK.js} +1 -1
- package/web/app/immutable/chunks/{f24VwgrA.js → 90dwRRI_.js} +1 -1
- package/web/app/immutable/chunks/{B5MrjS7j.js → 96gE90DS.js} +1 -1
- package/web/app/immutable/chunks/9KbPq6ne.js +1 -0
- package/web/app/immutable/chunks/9bpkKfDs.js +1 -0
- package/web/app/immutable/chunks/{UMwTu6TE.js → 9p0DyBPU.js} +1 -1
- package/web/app/immutable/chunks/{No1eCFy3.js → B-4NNXpn.js} +1 -1
- package/web/app/immutable/chunks/{D6dlPeEM.js → B0-WaGMs.js} +1 -1
- package/web/app/immutable/chunks/{B8V-jGiS.js → B0SuIES7.js} +1 -1
- package/web/app/immutable/chunks/{BAKPnd3w.js → B2w13ngc.js} +1 -1
- package/web/app/immutable/chunks/{p7SBTgaC.js → B3WV7a-V.js} +1 -1
- package/web/app/immutable/chunks/{-tAyw6ob.js → B3zWdyp-.js} +1 -1
- package/web/app/immutable/chunks/{C6mS8uZB.js → B50rrLDJ.js} +1 -1
- package/web/app/immutable/chunks/{Bg_lZIRf.js → B6ERx__s.js} +2 -2
- package/web/app/immutable/chunks/{BmkXo3Yq.js → B6q3uVQG.js} +1 -1
- package/web/app/immutable/chunks/{GuiAAF9e.js → B7ZVMWBx.js} +1 -1
- package/web/app/immutable/chunks/{B265Nxi3.js → B91a7NqB.js} +1 -1
- package/web/app/immutable/chunks/{L_tYoUCb.js → B9ZFoPLo.js} +1 -1
- package/web/app/immutable/chunks/{Cgxwerkr.js → B9bXgFyu.js} +2 -2
- package/web/app/immutable/chunks/{c5QZsH9t.js → B9qXV8kb.js} +1 -1
- package/web/app/immutable/chunks/{C_KuQ05a.js → BAwmUXtg.js} +1 -1
- package/web/app/immutable/chunks/{BxoyDHGw.js → BB2DpGJV.js} +1 -1
- package/web/app/immutable/chunks/{C7Zl7z5c.js → BBrT6DIB.js} +1 -1
- package/web/app/immutable/chunks/{CO5zWp8I.js → BFPO9C1I.js} +1 -1
- package/web/app/immutable/chunks/{CfiKUG8A.js → BGm3f58g.js} +1 -1
- package/web/app/immutable/chunks/{iN763416.js → BIsdYrnK.js} +1 -1
- package/web/app/immutable/chunks/{3o8kzB3n.js → BM2XSA6g.js} +1 -1
- package/web/app/immutable/chunks/{BxEf7uwl.js → BMF9dBr3.js} +1 -1
- package/web/app/immutable/chunks/{B4WuQori.js → BMWq5Cem.js} +1 -1
- package/web/app/immutable/chunks/{DA5opfEp.js → BPjvgJzJ.js} +1 -1
- package/web/app/immutable/chunks/{CsD5HG3r.js → BUDFO3oC.js} +1 -1
- package/web/app/immutable/chunks/{Cq88mLGj.js → BUchcLc3.js} +3 -3
- package/web/app/immutable/chunks/BWu0YXkV.js +1 -0
- package/web/app/immutable/chunks/{Dp-6l6dc.js → BXMl8g0k.js} +1 -1
- package/web/app/immutable/chunks/{CqcqWJoa.js → BY98dnH8.js} +1 -1
- package/web/app/immutable/chunks/{DqWLkzGY.js → BZ1Q38PM.js} +1 -1
- package/web/app/immutable/chunks/{BjfHx7zJ.js → BbHdeR3v.js} +1 -1
- package/web/app/immutable/chunks/BcQ6Rg0V.js +10 -0
- package/web/app/immutable/chunks/{WGwfzXjP.js → BcUHkjB6.js} +1 -1
- package/web/app/immutable/chunks/{D96pHovR.js → Bf16PEz1.js} +1 -1
- package/web/app/immutable/chunks/{BqRWw-wJ.js → BfSTFUKA.js} +1 -1
- package/web/app/immutable/chunks/{C3upI-xJ.js → BgZpMc5-.js} +1 -1
- package/web/app/immutable/chunks/{u2aKD69u.js → BgjaD_Yy.js} +1 -1
- package/web/app/immutable/chunks/{KEaRLIGy.js → BhcBqtJg.js} +1 -1
- package/web/app/immutable/chunks/{Bs9K_x5H.js → BkPSRIlH.js} +1 -1
- package/web/app/immutable/chunks/{Dlk4BhFg.js → BnG797lq.js} +1 -1
- package/web/app/immutable/chunks/{CDK_hSiv.js → BotfI-oJ.js} +1 -1
- package/web/app/immutable/chunks/{EK6zOAHM.js → BsOWc0fD.js} +1 -1
- package/web/app/immutable/chunks/{DzB2TE-q.js → BtI19qHa.js} +40 -40
- package/web/app/immutable/chunks/{DizKilK3.js → Bwa_PJLB.js} +2 -2
- package/web/app/immutable/chunks/{BwfxdDPw.js → Byb6yuNY.js} +1 -1
- package/web/app/immutable/chunks/{6Bqipt1r.js → C-LBvoL7.js} +1 -1
- package/web/app/immutable/chunks/{ZxEOlEA2.js → C1IZMhCT.js} +1 -1
- package/web/app/immutable/chunks/{ozVAo4aX.js → C1JG3JxG.js} +1 -1
- package/web/app/immutable/chunks/{CApA6QD2.js → C1dPOfxb.js} +4 -4
- package/web/app/immutable/chunks/{BYChQVmd.js → C2BnXWav.js} +1 -1
- package/web/app/immutable/chunks/{DCRuihKm.js → C2jYl_tm.js} +2 -2
- package/web/app/immutable/chunks/{CkA2ItLw.js → C3Cs4xcH.js} +1 -1
- package/web/app/immutable/chunks/{-Q8WHsT1.js → C3KL0Dob.js} +2 -2
- package/web/app/immutable/chunks/{518Fef2L.js → C3kvbgti.js} +1 -1
- package/web/app/immutable/chunks/{C4QKwtCH.js → C429ViPJ.js} +1 -1
- package/web/app/immutable/chunks/{CWdKrGNN.js → C4ItHUxb.js} +1 -1
- package/web/app/immutable/chunks/{Cg871q2J.js → C56HY_cI.js} +1 -1
- package/web/app/immutable/chunks/{DATzIj-C.js → C5H3ErAr.js} +1 -1
- package/web/app/immutable/chunks/{_SYFiE9N.js → C7Q9MjK0.js} +1 -1
- package/web/app/immutable/chunks/{IK5u1LkS.js → C8ZC1xrW.js} +1 -1
- package/web/app/immutable/chunks/{cfdblcWY.js → C91EC830.js} +1 -1
- package/web/app/immutable/chunks/{CHKnj_kH.js → C9fVl7VH.js} +1 -1
- package/web/app/immutable/chunks/{Bty1UglO.js → CAXPT_Gw.js} +1 -1
- package/web/app/immutable/chunks/{DC8keNAk.js → CCjzzCpy.js} +1 -1
- package/web/app/immutable/chunks/{D51XIZYq.js → CDLANF8s.js} +1 -1
- package/web/app/immutable/chunks/{MEqItsKn.js → CE-gn8fg.js} +1 -1
- package/web/app/immutable/chunks/{BYq9VtBF.js → CENp25rd.js} +1 -1
- package/web/app/immutable/chunks/{3vWQiXY2.js → CEOk8g-Q.js} +3 -3
- package/web/app/immutable/chunks/{Du0DJF2z.js → CEl8yEuC.js} +1 -1
- package/web/app/immutable/chunks/{B5YNqIIm.js → CIeXUP7u.js} +1 -1
- package/web/app/immutable/chunks/{DzbS0qCL.js → CKjysSbd.js} +1 -1
- package/web/app/immutable/chunks/{u8znU8zy.js → CLUxyZqF.js} +1 -1
- package/web/app/immutable/chunks/{BHt4i6xN.js → CPIZev3Z.js} +1 -1
- package/web/app/immutable/chunks/{B9YYIjUd.js → CQlHJWbs.js} +3 -3
- package/web/app/immutable/chunks/{BiQUDh4s.js → CQvGDYQV.js} +1 -1
- package/web/app/immutable/chunks/{DsGUBv3k.js → CQwOMyxz.js} +1 -1
- package/web/app/immutable/chunks/{yFcbscNn.js → CRdOY_2z.js} +1 -1
- package/web/app/immutable/chunks/{lzAd2Up3.js → CS3H-hA4.js} +1 -1
- package/web/app/immutable/chunks/{DKHY8q_S.js → CTP1vzdq.js} +1 -1
- package/web/app/immutable/chunks/{nTGBknlr.js → CTYV2WCR.js} +1 -1
- package/web/app/immutable/chunks/{CRZZ_hOy.js → CW0Mb2k4.js} +1 -1
- package/web/app/immutable/chunks/{B2Ym4lhl.js → CYkPVUDx.js} +1 -1
- package/web/app/immutable/chunks/{W0L8GDXP.js → C_1zy40-.js} +1 -1
- package/web/app/immutable/chunks/{Do2giiGP.js → CaCH7xka.js} +1 -1
- package/web/app/immutable/chunks/{Bygq9d8w.js → CaVcxIX_.js} +1 -1
- package/web/app/immutable/chunks/{RWObpdxy.js → Cb9atCGq.js} +1 -1
- package/web/app/immutable/chunks/{DZYWuj4L.js → CdDve0EN.js} +1 -1
- package/web/app/immutable/chunks/{CmrjfWYI.js → Ce1_P2yR.js} +1 -1
- package/web/app/immutable/chunks/{C8y9EItt.js → Chp6TQgb.js} +1 -1
- package/web/app/immutable/chunks/{tZyAiGvb.js → ClIBKxjv.js} +1 -1
- package/web/app/immutable/chunks/{OtomGvb3.js → CmAb18no.js} +1 -1
- package/web/app/immutable/chunks/{Yyy6gahW.js → CmbyIv2W.js} +1 -1
- package/web/app/immutable/chunks/{BaujsV9k.js → Cppy6ZYG.js} +1 -1
- package/web/app/immutable/chunks/{BhSvmxU-.js → Cpw-AI-k.js} +4 -4
- package/web/app/immutable/chunks/{7dpPwFPi.js → CqEyPGwj.js} +1 -1
- package/web/app/immutable/chunks/{BTrqJIJZ.js → Cq_r_CYV.js} +1 -1
- package/web/app/immutable/chunks/{CFUZ-wx4.js → CqhHB0m1.js} +3 -3
- package/web/app/immutable/chunks/{D8UBdXB2.js → CtCH4W1N.js} +1 -1
- package/web/app/immutable/chunks/{Z0_LIT6x.js → CteMcmUe.js} +2 -2
- package/web/app/immutable/chunks/{FzlZUztb.js → CttA-M7l.js} +1 -1
- package/web/app/immutable/chunks/{C9dAybnM.js → Cxb8aRlA.js} +2 -2
- package/web/app/immutable/chunks/{C0cGUVCr.js → Cxs-r6qH.js} +1 -1
- package/web/app/immutable/chunks/{DbZ5HUqx.js → CzMfcD76.js} +2 -2
- package/web/app/immutable/chunks/{DAJnPbZk.js → CzRvdM50.js} +4 -4
- package/web/app/immutable/chunks/{Dac_vP74.js → D14F6Zen.js} +1 -1
- package/web/app/immutable/chunks/{iHxbYHJ6.js → D1Kvaw2U.js} +1 -1
- package/web/app/immutable/chunks/{DTuql3Rj.js → D32iIfZB.js} +1 -1
- package/web/app/immutable/chunks/{D_Xpj-6r.js → D5TRf27k.js} +1 -1
- package/web/app/immutable/chunks/{Djp7mdlG.js → D6x1PvJt.js} +1 -1
- package/web/app/immutable/chunks/{DY-t7Was.js → D8bef7T8.js} +1 -1
- package/web/app/immutable/chunks/{Bvi-fRGz.js → DA3JhNUa.js} +1 -1
- package/web/app/immutable/chunks/{BRJQPxpd.js → DBOkAv2-.js} +1 -1
- package/web/app/immutable/chunks/{fiz8N_zQ.js → DCL0Px6m.js} +1 -1
- package/web/app/immutable/chunks/{5c25JTI1.js → DCzWLn9w.js} +1 -1
- package/web/app/immutable/chunks/{DrIA1Azf.js → DDxtqhsd.js} +1 -1
- package/web/app/immutable/chunks/{CY4fyoCV.js → DEe4pSnF.js} +1 -1
- package/web/app/immutable/chunks/{Dsr4GELp.js → DFUCAM2K.js} +1 -1
- package/web/app/immutable/chunks/{CBB3lnfZ.js → DGP-y2GB.js} +3 -3
- package/web/app/immutable/chunks/{DDfr81XI.js → DGSdOlov.js} +1 -1
- package/web/app/immutable/chunks/{BP5uGGO_.js → DHLXX1td.js} +1 -1
- package/web/app/immutable/chunks/{BypvqIQM.js → DHbAORA3.js} +1 -1
- package/web/app/immutable/chunks/{CqnrQ6ti.js → DITUyjV2.js} +3 -3
- package/web/app/immutable/chunks/{B4SiDSWP.js → DI_O2uCQ.js} +1 -1
- package/web/app/immutable/chunks/{Ctbo6mXV.js → DJcj8WvN.js} +1 -1
- package/web/app/immutable/chunks/{CG-tM1HG.js → DLS35Cs2.js} +2 -2
- package/web/app/immutable/chunks/{Cngzlos4.js → DMVD9ZWm.js} +1 -1
- package/web/app/immutable/chunks/{BpcUO3Xs.js → DOAyQZ8n.js} +1 -1
- package/web/app/immutable/chunks/{CnZI1GOS.js → DQZ6hbu0.js} +1 -1
- package/web/app/immutable/chunks/{SqlvGXMi.js → DT_iJHxn.js} +1 -1
- package/web/app/immutable/chunks/{CHLX1QZz.js → DXn0DuET.js} +1 -1
- package/web/app/immutable/chunks/{eElW3aeh.js → DZ84MPQO.js} +1 -1
- package/web/app/immutable/chunks/{BXCVSrGo.js → D_Fe9jJy.js} +1 -1
- package/web/app/immutable/chunks/{BIQB3Kx5.js → DaLNZosE.js} +1 -1
- package/web/app/immutable/chunks/{DPCOdXX2.js → DbD3dAy_.js} +1 -1
- package/web/app/immutable/chunks/{C0LshS-P.js → Dc0NoKVI.js} +1 -1
- package/web/app/immutable/chunks/{C0o77pad.js → Dd6jkKNK.js} +2 -2
- package/web/app/immutable/chunks/{Bv1ckDXI.js → DggzSry-.js} +1 -1
- package/web/app/immutable/chunks/{BNVrbjR5.js → DgiZ-0Sp.js} +2 -2
- package/web/app/immutable/chunks/{B-MmNWOm.js → DhQSNgxc.js} +1 -1
- package/web/app/immutable/chunks/{QeBH-DWE.js → Dhy-QJgd.js} +1 -1
- package/web/app/immutable/chunks/{KYuLFpkq.js → DiNBgjb1.js} +1 -1
- package/web/app/immutable/chunks/{Dql2ogGT.js → Dj8digI5.js} +1 -1
- package/web/app/immutable/chunks/{C1EvfTg-.js → DjNVz8pO.js} +1 -1
- package/web/app/immutable/chunks/{6-uYidyP.js → DkDSK_05.js} +3 -3
- package/web/app/immutable/chunks/{DCK8dPAL.js → DkME16PR.js} +1 -1
- package/web/app/immutable/chunks/{j65te9ZT.js → Dl2c_Q4j.js} +1 -1
- package/web/app/immutable/chunks/{BWbkCnfm.js → Dl4B5sLX.js} +1 -1
- package/web/app/immutable/chunks/{BmTMWrby.js → DlUZpQ7U.js} +1 -1
- package/web/app/immutable/chunks/{CLkfOjAo.js → DnNC4gf3.js} +3 -3
- package/web/app/immutable/chunks/{CSRYV6LQ.js → Dnp239cR.js} +1 -1
- package/web/app/immutable/chunks/{BfojStRz.js → DpPV7WHr.js} +1 -1
- package/web/app/immutable/chunks/{BP3Sccje.js → DpX9aeiZ.js} +1 -1
- package/web/app/immutable/chunks/{B_JCVgq0.js → DqH-hVUa.js} +1 -1
- package/web/app/immutable/chunks/{Dr8j8hDa.js → DqMZWY-u.js} +2 -2
- package/web/app/immutable/chunks/{BZC6DuKQ.js → Dqhi5681.js} +1 -1
- package/web/app/immutable/chunks/{Cqa6LF3b.js → DrWDRmYR.js} +1 -1
- package/web/app/immutable/chunks/{BYdTf9Vr.js → DsCz_Hld.js} +1 -1
- package/web/app/immutable/chunks/{DrxfcnSy.js → DsffLoT8.js} +1 -1
- package/web/app/immutable/chunks/{CP9Lq5G_.js → DtekCANZ.js} +1 -1
- package/web/app/immutable/chunks/{ClJhkXR5.js → DwDabzpx.js} +1 -1
- package/web/app/immutable/chunks/{BPL5Fo2b.js → Dx3nOa5s.js} +1 -1
- package/web/app/immutable/chunks/{BacafptN.js → DyIsX23v.js} +4 -4
- package/web/app/immutable/chunks/{BcpfdNy8.js → FITmaVUJ.js} +1 -1
- package/web/app/immutable/chunks/{Bj84UPYb.js → FoSxZj2s.js} +1 -1
- package/web/app/immutable/chunks/{CAvYeStH.js → JvS7MGpw.js} +1 -1
- package/web/app/immutable/chunks/{DQ_mNIfK.js → L0wFy8_j.js} +1 -1
- package/web/app/immutable/chunks/{D8ohaX19.js → NE3LtfEb.js} +1 -1
- package/web/app/immutable/chunks/{CpJb1fZG.js → NaXnyxXD.js} +1 -1
- package/web/app/immutable/chunks/{B_kMSQKD.js → NqwdDVdt.js} +1 -1
- package/web/app/immutable/chunks/{B2DRKAdQ.js → Q16zd2xh.js} +1 -1
- package/web/app/immutable/chunks/{C4JbSg3f.js → SB0XkB7s.js} +1 -1
- package/web/app/immutable/chunks/{BKPEtXUT.js → SDBQMo24.js} +1 -1
- package/web/app/immutable/chunks/{DaFpSJap.js → SSdhXyvx.js} +1 -1
- package/web/app/immutable/chunks/{CwTtJpch.js → SnC5sLK-.js} +1 -1
- package/web/app/immutable/chunks/{CMEtJ5i1.js → SwH0lZVC.js} +1 -1
- package/web/app/immutable/chunks/{CbqxWBi7.js → T-y84UQ-.js} +1 -1
- package/web/app/immutable/chunks/{S845NCb3.js → VxaCN40t.js} +1 -1
- package/web/app/immutable/chunks/{C4LrSRW3.js → Y3x17kvu.js} +1 -1
- package/web/app/immutable/chunks/{BxJ6X-Sl.js → ZNxS70ti.js} +1 -1
- package/web/app/immutable/chunks/{ClMg21pU.js → ZtnoAnS2.js} +1 -1
- package/web/app/immutable/chunks/{tr-2J8Mf.js → _LtUY0jS.js} +1 -1
- package/web/app/immutable/chunks/{DwL1A1su.js → _WGu_9si.js} +1 -1
- package/web/app/immutable/chunks/{PIgqsYsQ.js → _Z48PZPG.js} +1 -1
- package/web/app/immutable/chunks/{DtF9DVpp.js → _szCylN8.js} +1 -1
- package/web/app/immutable/chunks/{CwtLM6uA.js → amTgh_yM.js} +1 -1
- package/web/app/immutable/chunks/{WiA7_4AK.js → aoCeefP4.js} +1 -1
- package/web/app/immutable/chunks/{OFhgRaUm.js → bq2jN3Y4.js} +1 -1
- package/web/app/immutable/chunks/{CDjpuJh0.js → c6a4q1y9.js} +1 -1
- package/web/app/immutable/chunks/{Cx37GTsM.js → cWnGUUZk.js} +1 -1
- package/web/app/immutable/chunks/{D37getya.js → ceYukiuF.js} +1 -1
- package/web/app/immutable/chunks/{BaW_cM4B.js → i2uLOz57.js} +1 -1
- package/web/app/immutable/chunks/{BeOwB_6G.js → iDB1itc7.js} +1 -1
- package/web/app/immutable/chunks/{-afdnSwu.js → lFCyJLs0.js} +1 -1
- package/web/app/immutable/chunks/{CJtViYfh.js → lQcc1B6x.js} +1 -1
- package/web/app/immutable/chunks/{DT3Kx0Qe.js → lzc_ALaY.js} +1 -1
- package/web/app/immutable/chunks/{CmVBRNuA.js → m2kIPDiE.js} +1 -1
- package/web/app/immutable/chunks/{CjTo2K46.js → nA0tsFRt.js} +1 -1
- package/web/app/immutable/chunks/{B2nCyo89.js → pQ6IdBCz.js} +1 -1
- package/web/app/immutable/chunks/{BSKFIBj2.js → ram0Xoqf.js} +1 -1
- package/web/app/immutable/chunks/{CCqqosml.js → rpEVAvPW.js} +1 -1
- package/web/app/immutable/chunks/{CSVgdt55.js → sABlNrvu.js} +1 -1
- package/web/app/immutable/chunks/{DMV7vEM7.js → tV0w-z-Q.js} +1 -1
- package/web/app/immutable/chunks/{DFi1P2MD.js → veocPVpA.js} +1 -1
- package/web/app/immutable/chunks/{hHMYoFyG.js → wjh5cuBI.js} +1 -1
- package/web/app/immutable/chunks/{BTv8uh2C.js → xGj0i83D.js} +6 -6
- package/web/app/immutable/entry/{app.Cqjdbldk.js → app.oKB02DpO.js} +2 -2
- package/web/app/immutable/entry/start.MWx9NKvl.js +1 -0
- package/web/app/immutable/nodes/{0.CIMKJ2v2.js → 0.Cj75U9Pb.js} +1 -1
- package/web/app/immutable/nodes/{1.C-zZe4mL.js → 1.COmRB5Gs.js} +1 -1
- package/web/app/immutable/nodes/{10.CRicXMMy.js → 10.B-EGmrBP.js} +5 -5
- package/web/app/immutable/nodes/{11.CFkPUf9W.js → 11.CHJVqhXh.js} +1 -1
- package/web/app/immutable/nodes/{13.CCKyw-_o.js → 13.C6TyTlAm.js} +1 -1
- package/web/app/immutable/nodes/{14.BD92xFv4.js → 14.CHiqNDyF.js} +1 -1
- package/web/app/immutable/nodes/{15.BDAlg-ra.js → 15.DvvqcqqW.js} +1 -1
- package/web/app/immutable/nodes/{16.CVCm-nfj.js → 16.Dyi9KYXl.js} +1 -1
- package/web/app/immutable/nodes/{17.CjKvJw8X.js → 17.CH042Yj8.js} +1 -1
- package/web/app/immutable/nodes/{18.DDY8Eqsn.js → 18.DVg5DSa7.js} +1 -1
- package/web/app/immutable/nodes/{19.DJgRbiNE.js → 19.CFGkesVY.js} +2 -2
- package/web/app/immutable/nodes/{2.Dl71tIky.js → 2.BSKohF8j.js} +4 -4
- package/web/app/immutable/nodes/{20.CLsq1QLL.js → 20.Byg15mRq.js} +1 -1
- package/web/app/immutable/nodes/{3.DNld1BNY.js → 3.CgM283V9.js} +1 -1
- package/web/app/immutable/nodes/{4.Dqn6Xii_.js → 4.pSSQL5ZR.js} +1 -1
- package/web/app/immutable/nodes/{5.B0BP_LYC.js → 5.gjcZy0Yo.js} +1 -1
- package/web/app/immutable/nodes/{6.NwMlYZya.js → 6.mfPH3Xl6.js} +1 -1
- package/web/app/immutable/nodes/{7.CP-QZto7.js → 7.hkLeTg6x.js} +1 -1
- package/web/app/immutable/nodes/{8.BsQgGFet.js → 8.CwwxHkuu.js} +1 -1
- package/web/app/immutable/nodes/{9.DY6xrFrM.js → 9.VYVO4dZo.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +12 -12
- package/web/app/immutable/chunks/BIVeXMBl.js +0 -1
- package/web/app/immutable/chunks/D-zjf2Af.js +0 -1
- package/web/app/immutable/chunks/DH5O4f99.js +0 -1
- package/web/app/immutable/chunks/pUxZXv-3.js +0 -10
- package/web/app/immutable/entry/start.D0BpS8PF.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as gt}from"./BaujsV9k.js";import{nX as pt,bq as vt}from"./tr-2J8Mf.js";import{g as ht}from"./CMiilI_P.js";import{t as Te,bo as h,bw as Ue,b as Re,bm as m,br as _t}from"./C0QTy0Sy.js";import{ai as Ze,bs as Se,cb as bt,ca as ye,aD as e,a7 as ke,ay as oe,W as x,bn as Ne,bV as J,aA as _,a5 as ve,bS as K,bH as k,bA as he,b_ as Q,aj as Me,aw as Fe,bl as Ce,bO as ie,aB as X,c9 as E,be as Ie,b$ as ze,br as Qe}from"./3SdAC2_C.js";import{i as te}from"./bhKPSdq4.js";import{k as wt}from"./-K3ARgq0.js";import{s as Le,e as et,f as tt,g as yt}from"./7UPrdiE9.js";import{b as Oe}from"./Dn334wJv.js";import{c as me}from"./CUkDMZwP.js";import{q as Xe,l as nt,d as rt,e as $e,K as at,h as ot,M as it}from"./fiz8N_zQ.js";import{a as xt}from"./CC7to1B5.js";import{m as we}from"./BmTMWrby.js";import{f as Ee}from"./FzlZUztb.js";import"./DCRuihKm.js";import{l as Be,f as lt,m as kt,a as Ct}from"./CE7dsja4.js";import"./ChTqQfQN.js";import"./B4SiDSWP.js";import"./QeBH-DWE.js";import{bL as He}from"./cfdblcWY.js";import{t as De}from"./CrD0jtXE.js";import{F as Ae,d3 as Lt,bW as Pt,bX as Mt,cq as At,bF as Et,cr as It,aZ as zt,a8 as $t}from"./U9jJmfYa.js";import{S as Tt}from"./CHLX1QZz.js";import{n as Ut,g as Rt}from"./DLwWVKiF.js";import{e as We}from"./B6S6VNu7.js";import{i as St,f as Nt}from"./BAKPnd3w.js";import{P as Ot}from"./CU5jKGma.js";import{h as Kt}from"./-Q8WHsT1.js";import{t as Ft}from"./DAsc1V4f.js";function Bt(a,n){return a?.isExternalLink===!0&&typeof a.workspaceId=="string"&&a.workspaceId?a.workspaceId:n||void 0}function Ht(a,n,o){const u=a.label||a.id||"mention";if(a.type==="member")return gt(u);if(a.type==="note"&&a.id&&o){const s=Bt(a.meta,n),v=s?o(s,a.id)?.trim():void 0;if(v)return v}return u}function Gn(a,n,o){if(typeof document>"u"||!a.includes('data-type="note"'))return a;const u=document.createElement("template");u.innerHTML=a;let s=!1;for(const v of u.content.querySelectorAll('[data-mention][data-type="note"]')){let b=null;try{b=JSON.parse(v.getAttribute("data-meta")||"{}")}catch{b=null}const P=v.textContent??"",M=Ht({type:"note",id:v.getAttribute("data-id"),label:P,meta:b},n,o);M!==P&&(v.textContent=M,s=!0)}return s?u.innerHTML:a}const Jn=(a,n)=>{let o;try{o=ht().state}catch{return}const u=o?.workspaceNotes?.byWorkspaceId?.[a]?.notes;return u?pt(u,n)?.title:void 0};let Ke=null;var jt=X('<p class="mt-2 max-w-[90vw] rounded-md bg-black/60 px-3 py-1.5 text-center text-sm text-white"> </p>'),Dt=X('<div data-media-lightbox-root="" data-image-lightbox-root="" class="fixed inset-0 z-[1000] flex cursor-zoom-out flex-col items-center justify-center bg-black/80 p-4 backdrop-blur-sm" style="pointer-events: auto;" role="dialog" aria-modal="true" tabindex="-1"><div class="absolute right-4 top-4 z-[1002] flex items-center gap-1"><!> <!></div> <div class="flex min-h-0 w-full flex-1 items-center justify-center"><!></div> <!></div>');function Ye(a,n){if(new.target)return Te({component:Ye,...a});Se(n,!0);let o=h(n,"open",15,!1),u=h(n,"ariaLabel",7),s=h(n,"closeLabel",7),v=h(n,"onClose",7),b=h(n,"openerElement",7,null),P=h(n,"children",7),M=h(n,"actions",7),F=h(n,"caption",7),U=h(n,"onKeydown",7),R=h(n,"onCopy",7);const y=St(),f=Nt(()=>N());let A=J(null),S=J(null);const D=Symbol("media-lightbox");let V=!1;function N({handoff:r=!1}={}){o()&&(V=r,Ke?.source===D&&(Ke=null),o(!1),v()?.(),!r&&b()?.isConnected&&b().focus({preventScroll:!0}))}function d(r){Ke={source:D,close:()=>N({handoff:!0})},r.scrollIntoView({block:"nearest"}),r.click()}function B(r,p,L){return V?{duration:0}:Rt(r,{tier:"moderate"},L)}bt(()=>{if(!o())return;const r=Ke;V=r!==null&&r.source!==D,V&&r&&(Ke=null,r.close())});function Y(r){(r.target instanceof Element?r.target:null)?.closest('[data-media-lightbox-content], [role="toolbar"], button, input')||N()}function q(r){if(U()?.(r),r.defaultPrevented||r.key!=="Tab"||!e(A))return;const p=Array.from(e(A).querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),L=p[0],I=p[p.length-1];!L||!I||(r.shiftKey&&document.activeElement===L?(r.preventDefault(),I.focus()):!r.shiftKey&&document.activeElement===I&&(r.preventDefault(),L.focus()))}ye(()=>{if(o())return Xe(()=>N())}),ye(()=>{!o()||!e(S)||requestAnimationFrame(()=>e(S)?.focus())});var g={handOffTo:d,get open(){return o()},set open(r=!1){o(r),_()},get ariaLabel(){return u()},set ariaLabel(r){u(r),_()},get closeLabel(){return s()},set closeLabel(r){s(r),_()},get onClose(){return v()},set onClose(r){v(r),_()},get openerElement(){return b()},set openerElement(r=null){b(r),_()},get children(){return P()},set children(r){P(r),_()},get actions(){return M()},set actions(r){M(r),_()},get caption(){return F()},set caption(r){F(r),_()},get onKeydown(){return U()},set onKeydown(r){U(r),_()},get onCopy(){return R()},set onCopy(r){R(r),_()},$set:Ue,$on:(r,p)=>Re(n,r,p)},i=ke(),w=oe(i);{var l=r=>{{let p=E(()=>y?.target()??"body");Ot(r,{get target(){return e(p)},zIndex:1e3,children:(L,I)=>{var z=Dt(),W=ve(z),ne=ve(W);{var re=C=>{var $=ke(),G=oe($);De(G,M),x(C,$)};te(ne,C=>{M()&&C(re)})}var ue=K(ne,2);Ee(ue,{variant:"ghost",size:"icon",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>N(),get"aria-label"(){return s()},get ref(){return e(S)},set ref(C){k(S,C,!0)},children:(C,$)=>{Ae(C,{get icon(){return Lt},size:"lg"})},$$slots:{default:!0}}),he(W),We(W,C=>f?.(C));var le=K(W,2),xe=ve(le);De(xe,P),he(le),We(le,C=>f?.(C));var se=K(le,2);{var ge=C=>{var $=jt(),G=Ce($,!0);Q(()=>ie(G,F())),x(C,$)};te(se,C=>{F()&&C(ge)})}he(z),Oe(z,C=>k(A,C),()=>e(A)),Q(()=>Le(z,"aria-label",u())),Me("click",z,Y),Me("keydown",z,q),Fe("copy",z,function(...C){R()?.apply(this,C)}),Ut(3,z,()=>B),x(L,z)},$$slots:{default:!0}})}};te(w,r=>{o()&&r(l)})}return x(a,i),Ne(g)}Ze(["click","keydown"]);function qe(a){if(!a.startsWith("workspace-file://"))return null;const o=a.slice(17).split(/[?#]/)[0].split("/"),u=o[0],s=o.slice(1);if(!u||s.length===0)return null;const v=[];for(const b of s){if(!b)return null;try{v.push(decodeURIComponent(b))}catch{return null}}return{workspaceId:u,path:v.join("/")}}function st(a){try{return new URL(a).protocol==="https:"}catch{return!1}}function Ve(a){const n=/^data:([^;,]+);base64,(.*)$/s.exec(a);return n?{mimeType:n[1],base64:n[2]}:null}function je(a){return st(a)||qe(a)!==null||/^workspace-asset:\/\/[^/?#]+/.test(a)||/^data:image\/[a-z0-9.+-]+(?:;[^,]*)?,/i.test(a)}function ct(a){if(a.length===0)return 0;let n=0;return a.endsWith("==")?n=2:a.endsWith("=")&&(n=1),Math.floor(a.length*3/4)-n}function Wt(a,n){const o=atob(a),u=new Uint8Array(o.length);for(let s=0;s<o.length;s++)u[s]=o.charCodeAt(s);return new Blob([u],{type:n})}const Vt={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp"};function Zt(a){if(a.workspacePath){const s=a.workspacePath.split("/").pop();if(s)return s}const n=(a.imageName||"image").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(n))return n;const o=a.mimeType?.split(";")[0].trim().toLowerCase(),u=o&&Vt[o]||"png";return`${n}.${u}`}var Xt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-dimensions"> </div>'),Yt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-size"> </div>'),qt=X("<!> <!> <!>",1),Gt=X("<!> <!> <!> <!>",1),Jt=X("<!> <!>",1);function ut(a,n){if(new.target)return Te({component:ut,...a});Se(n,!0);let o=h(n,"imageUrl",7),u=h(n,"imageName",7),s=h(n,"open",15,!1),v=h(n,"triggerClass",7),b=h(n,"contentClass",7);const P=E(()=>Ve(o())),M=E(()=>qe(o())),F=E(()=>st(o()));let U=J(null),R=J(null),y=null;function f(){if(y===o())return;const l=y=o();k(U,null),k(R,e(P)?ct(e(P).base64):null,!0);const r=new Image;r.onload=()=>{y===l&&k(U,{width:r.naturalWidth,height:r.naturalHeight},!0)},r.src=o(),e(P)||fetch(o()).then(p=>p.ok?p.blob():null).then(p=>{p&&y===l&&k(R,p.size,!0)}).catch(()=>{})}ye(()=>{s()&&f()}),ye(()=>{if(s())return Xe(()=>{s(!1)})});async function A(l=o()){const r=Ve(l);if(r)return Wt(r.base64,r.mimeType);const p=await fetch(l);if(!p.ok)throw new Error(`Image fetch failed: ${p.status}`);return await p.blob()}async function S(){let l=null;try{let r=o(),p=e(P)?.mimeType;if(!e(P)){const I=await A();p=I.type,l=URL.createObjectURL(I),r=l}const L=document.createElement("a");L.href=r,L.download=Zt({workspacePath:e(M)?.path,imageName:u(),mimeType:p}),document.body.appendChild(L);try{L.click()}finally{L.remove()}}catch{we.error(m.ui_imageActionsMenu_downloadFailed_error())}finally{l&&URL.revokeObjectURL(l)}}async function D(){if(e(M))try{await He(e(M).path),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function V(){if(e(F))try{await He(o()),we.success(m.ui_imageActionsMenu_linkCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function N(l){let r,p;try{let L;if(l.type.split(";")[0].trim()==="image/svg+xml"){p=URL.createObjectURL(l);const W=new Image;W.src=p,await W.decode(),L=W}else L=r=await createImageBitmap(l);const I=document.createElement("canvas");I.width=L instanceof HTMLImageElement?L.naturalWidth:L.width,I.height=L instanceof HTMLImageElement?L.naturalHeight:L.height;const z=I.getContext("2d");if(!z)throw new Error("2d canvas context unavailable");return z.drawImage(L,0,0),await new Promise((W,ne)=>{I.toBlob(re=>re?W(re):ne(new Error("canvas toBlob failed")),"image/png")})}finally{r?.close(),p&&URL.revokeObjectURL(p)}}async function d(l=o()){try{let r=await A(l);r.type!=="image/png"&&(r=await N(r)),await navigator.clipboard.write([new ClipboardItem({"image/png":r})]),we.success(m.ui_imageActionsMenu_imageCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function B(l,r=o()){return l.defaultPrevented||!je(r)||l instanceof KeyboardEvent&&(l.key.toLowerCase()!=="c"||!(l.metaKey||l.ctrlKey)||l.altKey||l.shiftKey||l.isComposing)||xt(l.target)||document.getSelection()?.toString()?!1:(l.preventDefault(),l.stopPropagation(),l instanceof KeyboardEvent&&l.repeat||(d(r),s(!1)),!0)}var Y={handleCopy:B,get imageUrl(){return o()},set imageUrl(l){o(l),_()},get imageName(){return u()},set imageName(l){u(l),_()},get open(){return s()},set open(l=!1){s(l),_()},get triggerClass(){return v()},set triggerClass(l){v(l),_()},get contentClass(){return b()},set contentClass(l){b(l),_()},$set:Ue,$on:(l,r)=>Re(n,l,r)},q=ke(),g=oe(q);{var i=l=>{var r=ke(),p=oe(r);me(p,()=>it,(L,I)=>{I(L,{get open(){return s()},set open(z){s(z)},children:(z,W)=>{var ne=Jt(),re=oe(ne);{const le=(se,ge)=>{let C=()=>(ge?.()).props;{let $=E(()=>m.ui_imageActionsMenu_trigger_ariaLabel());Ee(se,_t(C,{variant:"plain",size:"icon-sm",wrapContent:!1,get active(){return s()},get"aria-label"(){return e($)},children:(G,j)=>{at(G,{class:"size-3.5"})},$$slots:{default:!0}}))}};let xe=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",v()));me(re,()=>nt,(se,ge)=>{ge(se,{get class(){return e(xe)},onclick:C=>C.stopPropagation(),onkeydown:C=>B(C),oncopy:C=>B(C),child:le,$$slots:{child:!0}})})}var ue=K(re,2);me(ue,()=>rt,(le,xe)=>{xe(le,{get class(){return b()},align:"end",onkeydown:se=>B(se),oncopy:se=>B(se),children:(se,ge)=>{var C=Gt(),$=oe(C);me($,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void S(),children:(O,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_download_label()]),x(O,ae)},$$slots:{default:!0}})});var G=K($,2);me(G,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void d(),children:(O,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_copyImage_label()]),x(O,ae)},$$slots:{default:!0}})});var j=K(G,2);{var de=H=>{var ee=ke(),O=oe(ee);me(O,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void D(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyPath_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)},_e=H=>{var ee=ke(),O=oe(ee);me(O,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void V(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyLink_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)};te(j,H=>{e(M)?H(de):e(F)&&H(_e,1)})}var fe=K(j,2);{var Pe=H=>{var ee=qt(),O=oe(ee);me(O,()=>ot,(c,T)=>{T(c,{})});var Z=K(O,2);{var ae=c=>{var T=Xt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>m.ui_imageActionsMenu_dimensions_label({width:Be(e(U).width),height:Be(e(U).height)})]),x(c,T)};te(Z,c=>{e(U)&&c(ae)})}var ce=K(Z,2);{var t=c=>{var T=Yt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>lt(e(R))]),x(c,T)};te(ce,c=>{e(R)!==null&&c(t)})}x(H,ee)};te(fe,H=>{(e(U)||e(R)!==null)&&H(Pe)})}x(se,C)},$$slots:{default:!0}})}),x(z,ne)},$$slots:{default:!0}})}),x(l,r)},w=E(()=>je(o()));te(g,l=>{e(w)&&l(i)})}return x(a,q),Ne(Y)}var Qt=X('<div role="application" tabindex="0" data-testid="zoom-pan-viewport"><div class="flex h-full w-full items-center justify-center will-change-transform" data-testid="zoom-pan-content"><!></div> <div class="absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 cursor-default items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 backdrop-blur-sm" role="toolbar" tabindex="-1" data-testid="zoom-pan-controls"><!> <div class="w-36"><!></div> <!> <span class="min-w-12 text-center text-xs tabular-nums text-white/90" data-testid="zoom-pan-percent"> </span> <!></div></div>');function dt(a,n){if(new.target)return Te({component:dt,...a});Se(n,!0);let o=h(n,"children",7),u=h(n,"minZoom",7,.25),s=h(n,"maxZoom",7,8),v=h(n,"onScaleChange",7),b=h(n,"pannable",15,!1);const P=1.25,M=.0015,F=.01,U=4,R=.5;let y=J(1),f=J(0),A=J(0),S=J(!1),D=J(null),V=J(null),N=J(Qe({width:0,height:0})),d=J(Qe({width:0,height:0}));const B=E(()=>e(d).width*e(y)>e(N).width+R),Y=E(()=>e(d).height*e(y)>e(N).height+R);ye(()=>{v()?.(e(y))}),ye(()=>{b(e(B)||e(Y))});function q(){e(D)&&k(N,{width:e(D).clientWidth,height:e(D).clientHeight},!0);const t=e(V)?.firstElementChild;if(t instanceof HTMLElement)k(d,{width:t.offsetWidth,height:t.offsetHeight},!0);else if(t){const c=t.getBoundingClientRect();k(d,{width:c.width/e(y),height:c.height/e(y)},!0)}}function g(t,c,T){const pe=c*(1-e(y))/2,be=T*e(y)-c;return be<=R?pe:Math.min(pe+be/2,Math.max(pe-be/2,t))}function i(){k(f,g(e(f),e(N).width,e(d).width),!0),k(A,g(e(A),e(N).height,e(d).height),!0)}ye(()=>{const t=e(D),c=e(V);if(!t||!c||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>{q(),i()});return T.observe(t),c.firstElementChild&&T.observe(c.firstElementChild),()=>T.disconnect()});let w=null,l=0,r=0,p=0,L=!1;const I=E(()=>kt(e(y),{style:"percent",maximumFractionDigits:0}));function z(t){return Math.min(s(),Math.max(u(),t))}function W(t,c,T){const pe=z(T),be=e(D)?.getBoundingClientRect(),Ge=be?t-be.left:0,Je=be?c-be.top:0;q(),k(f,Ge-(Ge-e(f))/e(y)*pe),k(A,Je-(Je-e(A))/e(y)*pe),k(y,pe,!0),i()}function ne(t){const c=e(D)?.getBoundingClientRect();c?W(c.left+c.width/2,c.top+c.height/2,t):(k(y,z(t),!0),i())}function re(){k(y,1),k(f,0),k(A,0)}function ue(t){t.preventDefault();const c=t.ctrlKey?F:M;W(t.clientX,t.clientY,e(y)*Math.exp(-t.deltaY*c))}ye(()=>{const t=e(D);if(t)return t.addEventListener("wheel",ue,{passive:!1}),()=>t.removeEventListener("wheel",ue)});function le(t){if(t.metaKey||t.ctrlKey||t.altKey)return!1;if(t.key==="+"||t.key==="=")ne(e(y)*P);else if(t.key==="-")ne(e(y)/P);else if(t.key==="0")re();else return!1;return t.preventDefault(),!0}function xe(t){if(t.button>0||(q(),!e(B)&&!e(Y)))return;t.preventDefault(),k(S,!0),w=t.pointerId,l=t.clientX,r=t.clientY,p=0;const c=t.currentTarget;typeof c.setPointerCapture=="function"&&c.setPointerCapture(t.pointerId)}function se(t){if(!e(S)||t.pointerId!==w)return;const c=t.clientX-l,T=t.clientY-r;p+=Math.abs(c)+Math.abs(T),k(f,e(f)+c),k(A,e(A)+T),i(),l=t.clientX,r=t.clientY}function ge(t){if(!e(S)||t.pointerId!==w)return;k(S,!1),w=null,p>U&&(L=!0);const c=t.currentTarget;typeof c.hasPointerCapture=="function"&&typeof c.releasePointerCapture=="function"&&c.hasPointerCapture(t.pointerId)&&c.releasePointerCapture(t.pointerId)}function C(t){L&&(L=!1,t.preventDefault(),t.stopPropagation())}function $(t){const c=Number.parseFloat(t.currentTarget.value);Number.isFinite(c)&&ne(c)}var G={handleKeydown:le,get children(){return o()},set children(t){o(t),_()},get minZoom(){return u()},set minZoom(t=.25){u(t),_()},get maxZoom(){return s()},set maxZoom(t=8){s(t),_()},get onScaleChange(){return v()},set onScaleChange(t){v(t),_()},get pannable(){return b()},set pannable(t=!1){b(t),_()},$set:Ue,$on:(t,c)=>Re(n,t,c)},j=Qt(),de=ve(j),_e=ve(de);De(_e,o),he(de),Oe(de,t=>k(V,t),()=>e(V));var fe=K(de,2),Pe=ve(fe);{let t=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel());Ee(Pe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)/P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Pt}})},$$slots:{default:!0}})}var H=K(Pe,2),ee=ve(H);{let t=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel());Tt(ee,{class:"accent-white",get min(){return u()},get max(){return s()},step:"0.01",get value(){return e(y)},oninput:$,get"aria-label"(){return e(t)},get title(){return e(c)},"data-testid":"zoom-pan-slider"})}he(H);var O=K(H,2);{let t=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel());Ee(O,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)*P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Mt}})},$$slots:{default:!0}})}var Z=K(O,2),ae=Ce(Z,!0),ce=K(Z,2);{let t=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel());Ee(ce,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:re,get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return At}})},$$slots:{default:!0}})}return he(fe),he(j),Oe(j,t=>k(D,t),()=>e(D)),Q((t,c)=>{tt(j,1,`relative h-full w-full touch-none select-none overflow-hidden ${e(S)?"cursor-grabbing":b()?"cursor-grab":""}`),Le(j,"aria-label",t),yt(de,`transform: translate(${e(f)??""}px, ${e(A)??""}px) scale(${e(y)??""}); transform-origin: 0 0;`),Le(fe,"aria-label",c),ie(ae,e(I))},[()=>m.ui_zoomPanViewport_viewport_ariaLabel(),()=>m.ui_zoomPanViewport_controls_ariaLabel()]),Me("pointerdown",j,xe),Me("pointermove",j,se),Me("pointerup",j,ge),Fe("pointercancel",j,ge),Fe("click",j,C,!0),Me("keydown",j,le),Me("pointerdown",fe,t=>t.stopPropagation()),x(a,j),Ne(G)}Ze(["pointerdown","pointermove","pointerup","keydown"]);const en="data-lightbox-gallery",ft="data-lightbox-opener",tn=`[${ft}], .markdown-content img`;function nn(a){return a.hasAttribute(ft)?!(a instanceof HTMLButtonElement&&a.disabled):a instanceof HTMLImageElement&&!a.closest("a")&&je(a.getAttribute("src")||"")}function rn(a,n){const o=a?.closest(`[${en}]`);if(!a||!o)return null;const u=Array.from(o.querySelectorAll(tn)).filter(nn),s=u.findIndex(v=>v===a||v.contains(a));return s<0?null:u[s+n]??null}var an=X('<img data-media-lightbox-content=""/>');function on(a,n){if(new.target)return Te({component:on,...a});Se(n,!0);const o=d=>{var B=ke(),Y=oe(B);{var q=g=>{Oe(ut(g,{get imageUrl(){return s()},get imageName(){return v()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]",get open(){return e(f)},set open(i){k(f,i,!0)}}),i=>k(y,i,!0),()=>e(y))};te(Y,g=>{M()&&g(q)})}x(d,B)};let u=h(n,"open",15,!1),s=h(n,"imageUrl",7),v=h(n,"imageName",23,()=>m.ui_imageLightbox_image_alt()),b=h(n,"onClose",7),P=h(n,"openerElement",7,null),M=h(n,"showActionsMenu",7,!1),F=J(void 0),U=J(void 0),R=J(!1),y=J(void 0),f=J(!1);ye(()=>{u()||k(f,!1)});function A(d){D(d),!d.defaultPrevented&&(e(U)?.handleKeydown(d)||S(d))}function S(d){if(d.key!=="ArrowLeft"&&d.key!=="ArrowRight"||d.metaKey||d.ctrlKey||d.altKey||d.shiftKey||e(f)||d.target instanceof HTMLInputElement)return;const B=rn(P(),d.key==="ArrowLeft"?-1:1);B&&(d.preventDefault(),e(F)?.handOffTo(B))}function D(d){u()&&M()&&e(y)?.handleCopy(d)}function V(d){!M()||!je(s())||(d.preventDefault(),d.stopPropagation(),k(f,!0))}var N={get open(){return u()},set open(d=!1){u(d),_()},get imageUrl(){return s()},set imageUrl(d){s(d),_()},get imageName(){return v()},set imageName(d=m.ui_imageLightbox_image_alt()){v(d),_()},get onClose(){return b()},set onClose(d){b(d),_()},get openerElement(){return P()},set openerElement(d=null){P(d),_()},get showActionsMenu(){return M()},set showActionsMenu(d=!1){M(d),_()},$set:Ue,$on:(d,B)=>Re(n,d,B)};{let d=E(()=>m.ui_imageLightbox_preview_ariaLabel()),B=E(()=>m.ui_imageLightbox_close_ariaLabel());Oe(Ye(a,{get ariaLabel(){return e(d)},get closeLabel(){return e(B)},get onClose(){return b()},get openerElement(){return P()},get actions(){return o},onKeydown:A,onCopy:D,get open(){return u()},set open(Y){u(Y)},children:(Y,q)=>{var g=ke(),i=oe(g);wt(i,s,w=>{Oe(dt(w,{get pannable(){return e(R)},set pannable(l){k(R,l,!0)},children:(l,r)=>{var p=an();Q(()=>{Le(p,"src",s()),Le(p,"alt",v()),tt(p,1,`max-h-[90vh] max-w-[90vw] rounded-lg object-contain ${e(R)?"":"cursor-default"}`),Le(p,"draggable",!e(R))}),Me("contextmenu",p,V),x(l,p)},$$slots:{default:!0}}),l=>k(U,l,!0),()=>e(U))}),x(Y,g)},$$slots:{default:!0}}),Y=>k(F,Y,!0),()=>e(F))}return Ne(N)}Ze(["contextmenu"]);var ln=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-duration"> </div>'),sn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-dimensions"> </div>'),cn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-size"> </div>'),un=X("<!> <!> <!> <!>",1),dn=X("<!> <!> <!>",1),fn=X("<!> <!>",1);function mt(a,n){if(new.target)return Te({component:mt,...a});Se(n,!0);let o=h(n,"videoUrl",7),u=h(n,"videoName",7),s=h(n,"sourceKind",7),v=h(n,"mimeType",7),b=h(n,"open",15,!1),P=h(n,"triggerClass",7),M=h(n,"contentClass",7);const F=E(()=>Ve(o())),U=E(()=>qe(o())),R=E(()=>s()??(e(F)?"inline":e(U)?"workspace":"remote"));let y=J(null),f=J(null),A=J(null),S=null;function D(){if(S===o())return;const g=S=o();k(y,null),k(f,null),k(A,e(F)?ct(e(F).base64):null,!0);const i=document.createElement("video");i.preload="metadata",i.onloadedmetadata=()=>{S===g&&(Number.isFinite(i.duration)&&i.duration>0&&k(y,i.duration,!0),i.videoWidth>0&&i.videoHeight>0&&k(f,{width:i.videoWidth,height:i.videoHeight},!0))},i.src=o(),e(F)||fetch(o()).then(w=>w.ok?w.blob():null).then(w=>{w&&S===g&&k(A,w.size,!0)}).catch(()=>{})}function V(){const g=e(U)?.path.split("/").pop();if(g)return g;const i=(u()||"video").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(i))return i;const w=(v()??e(F)?.mimeType)==="video/webm"?"webm":"mp4";return`${i}.${w}`}async function N(){let g=null;try{let i=o();if(!e(F)){const l=await fetch(o());if(!l.ok)throw new Error(`Video fetch failed: ${l.status}`);g=URL.createObjectURL(await l.blob()),i=g}const w=document.createElement("a");w.href=i,w.download=V(),document.body.appendChild(w),w.click(),w.remove(),g&&URL.revokeObjectURL(g)}catch{g&&URL.revokeObjectURL(g),we.error(m.ui_videoActionsMenu_downloadFailed_error())}}async function d(g,i){try{await He(g),we.success(i)}catch{we.error(m.ui_videoActionsMenu_copyFailed_error())}}ye(()=>{b()&&D()}),ye(()=>{if(b())return Xe(()=>{b(!1)})});var B={get videoUrl(){return o()},set videoUrl(g){o(g),_()},get videoName(){return u()},set videoName(g){u(g),_()},get sourceKind(){return s()},set sourceKind(g){s(g),_()},get mimeType(){return v()},set mimeType(g){v(g),_()},get open(){return b()},set open(g=!1){b(g),_()},get triggerClass(){return P()},set triggerClass(g){P(g),_()},get contentClass(){return M()},set contentClass(g){M(g),_()},$set:Ue,$on:(g,i)=>Re(n,g,i)},Y=ke(),q=oe(Y);return me(q,()=>it,(g,i)=>{i(g,{get open(){return b()},set open(w){b(w)},children:(w,l)=>{var r=fn(),p=oe(r);{let I=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",P())),z=E(()=>m.ui_videoActionsMenu_trigger_ariaLabel());me(p,()=>nt,(W,ne)=>{ne(W,{get class(){return e(I)},get"aria-label"(){return e(z)},onclick:re=>re.stopPropagation(),children:(re,ue)=>{at(re,{class:"size-3.5"})},$$slots:{default:!0}})})}var L=K(p,2);me(L,()=>rt,(I,z)=>{z(I,{get class(){return M()},align:"end",children:(W,ne)=>{var re=dn(),ue=oe(re);me(ue,()=>$e,($,G)=>{G($,{onSelect:()=>void N(),children:(j,de)=>{Ie();var _e=ze();Q(fe=>ie(_e,fe),[()=>m.ui_videoActionsMenu_download_label()]),x(j,_e)},$$slots:{default:!0}})});var le=K(ue,2);{var xe=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(e(U).path,m.ui_videoActionsMenu_pathCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyPath_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)},se=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(o(),m.ui_videoActionsMenu_linkCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyLink_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)};te(le,$=>{e(R)==="workspace"&&e(U)?$(xe):e(R)==="remote"&&$(se,1)})}var ge=K(le,2);{var C=$=>{var G=un(),j=oe(G);me(j,()=>ot,(O,Z)=>{Z(O,{})});var de=K(j,2);{var _e=O=>{var Z=ln(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_duration_label({duration:Ct(e(y)*1e3)})]),x(O,Z)};te(de,O=>{e(y)!==null&&O(_e)})}var fe=K(de,2);{var Pe=O=>{var Z=sn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_dimensions_label({width:Be(e(f).width),height:Be(e(f).height)})]),x(O,Z)};te(fe,O=>{e(f)&&O(Pe)})}var H=K(fe,2);{var ee=O=>{var Z=cn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>lt(e(A))]),x(O,Z)};te(H,O=>{e(A)!==null&&O(ee)})}x($,G)};te(ge,$=>{(e(y)!==null||e(f)||e(A)!==null)&&$(C)})}x(W,re)},$$slots:{default:!0}})}),x(w,r)},$$slots:{default:!0}})}),x(a,Y),Ne(B)}var mn=X('<p class="type-body text-white/80" role="status"> </p>'),gn=X('<div data-media-lightbox-content="" data-video-lightbox-root="" class="flex max-h-[90vh] max-w-[90vw] cursor-default flex-col items-center gap-3"><video controls="" preload="metadata" playsinline="" class="max-h-[85vh] max-w-[90vw] rounded-lg bg-black object-contain shadow-(--elevation-overlay)" data-testid="chat-video-player"> </video> <!></div>',2);function pn(a,n){if(new.target)return Te({component:pn,...a});Se(n,!0);const o=f=>{mt(f,{get videoUrl(){return s()},get videoName(){return v()},get sourceKind(){return P()},get mimeType(){return M()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]"})};let u=h(n,"open",15,!1),s=h(n,"videoUrl",7),v=h(n,"videoName",23,()=>m.chat_videoBlock_fromAgent_label()),b=h(n,"poster",7),P=h(n,"sourceKind",7),M=h(n,"mimeType",7),F=h(n,"openerElement",7,null),U=h(n,"onClose",7),R=J(!1);ye(()=>{!u()||!s()||k(R,!1)});var y={get open(){return u()},set open(f=!1){u(f),_()},get videoUrl(){return s()},set videoUrl(f){s(f),_()},get videoName(){return v()},set videoName(f=m.chat_videoBlock_fromAgent_label()){v(f),_()},get poster(){return b()},set poster(f){b(f),_()},get sourceKind(){return P()},set sourceKind(f){P(f),_()},get mimeType(){return M()},set mimeType(f){M(f),_()},get openerElement(){return F()},set openerElement(f=null){F(f),_()},get onClose(){return U()},set onClose(f){U(f),_()},$set:Ue,$on:(f,A)=>Re(n,f,A)};{let f=E(()=>m.chat_videoBlock_dialog_title({name:v()})),A=E(()=>m.chat_videoBlock_close_ariaLabel());Ye(a,{get ariaLabel(){return e(f)},get closeLabel(){return e(A)},get openerElement(){return F()},get onClose(){return U()},get actions(){return o},get open(){return u()},set open(S){u(S)},children:(S,D)=>{var V=gn(),N=ve(V),d=Ce(N,!0),B=K(N,2);{var Y=q=>{var g=mn(),i=Ce(g,!0);Q(w=>ie(i,w),[()=>m.chat_videoBlock_unavailable_description()]),x(q,g)};te(B,q=>{e(R)&&q(Y)})}he(V),Q(q=>{Le(N,"src",s()),Le(N,"poster",b()),Le(N,"aria-label",v()),ie(d,q)},[()=>m.chat_videoBlock_unsupported_description()]),Fe("error",N,()=>k(R,!0)),x(S,V)},$$slots:{default:!0}})}return Ne(y)}var vn=X('<span class="block truncate text-foreground"> </span>'),hn=X("<!> ",1),_n=X("<!> <!>",1),bn=X('<span class="flex shrink-0 flex-wrap items-center gap-1"><!> <!></span>'),wn=X('<div class="type-caption flex w-fit min-w-0 max-w-full items-center gap-3 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-unavailable"><span class="flex min-w-0 max-w-full flex-1 items-start gap-2"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="min-w-0"><!> <span class="block break-words"> </span></span></span> <!></div>');function yn(a,n){if(new.target)return Te({component:yn,...a});Se(n,!0);let o=h(n,"name",7),u=h(n,"reason",7),s=h(n,"path",7),v=h(n,"workspaceId",7),b=h(n,"onRetry",7);const P=E(()=>u()==="missing"?m.ui_mediaUnavailable_missing_description():u()==="unsupported"?m.ui_mediaUnavailable_unsupported_description():u()==="other-workspace"?m.ui_mediaUnavailable_otherWorkspace_description():u()==="invalid-link"?m.ui_mediaUnavailable_invalidLink_description():m.ui_mediaUnavailable_loadFailed_description());function M(i){i.preventDefault(),i.stopPropagation()}function F(i){M(i),b()?.()}async function U(i){if(M(i),!!s())try{await He(s()),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function R(i){if(M(i),!s()||!v())return;const w=s().split("/").map(encodeURIComponent).join("/");Kt(`intent://local/file/${w}`,{workspaceId:vt(v())})}var y={get name(){return o()},set name(i){o(i),_()},get reason(){return u()},set reason(i){u(i),_()},get path(){return s()},set path(i){s(i),_()},get workspaceId(){return v()},set workspaceId(i){v(i),_()},get onRetry(){return b()},set onRetry(i){b(i),_()},$set:Ue,$on:(i,w)=>Re(n,i,w)},f=wn(),A=ve(f),S=ve(A),D=ve(S);Ae(D,{get icon(){return Et},class:"size-3.5"}),he(S);var V=K(S,2),N=ve(V);{var d=i=>{var w=vn(),l=Ce(w,!0);We(w,(r,p)=>Ft?.(r,p),o),Q(()=>ie(l,o())),x(i,w)};te(N,i=>{o()&&i(d)})}var B=K(N,2),Y=Ce(B,!0);he(V),he(A);var q=K(A,2);{var g=i=>{var w=bn(),l=ve(w);{var r=I=>{{let z=E(()=>m.chat_shared_retry_label());Ee(I,{variant:"ghost",size:"icon-compact",get tooltip(){return e(z)},onclick:F,children:(W,ne)=>{Ae(W,{get icon(){return It},size:"xs"})},$$slots:{default:!0}})}};te(l,I=>{b()&&I(r)})}var p=K(l,2);{var L=I=>{var z=_n(),W=oe(z);{var ne=ue=>{Ee(ue,{variant:"ghost",size:"compact",onclick:R,children:(le,xe)=>{var se=hn(),ge=oe(se);Ae(ge,{get icon(){return $t},size:"xs"});var C=K(ge);Q($=>ie(C,` ${$??""}`),[()=>m.chat_changesPanel_openFile_tooltip()]),x(le,se)},$$slots:{default:!0}})};te(W,ue=>{v()&&u()!=="other-workspace"&&u()!=="invalid-link"&&ue(ne)})}var re=K(W,2);{let ue=E(()=>m.ui_imageActionsMenu_copyPath_label());Ee(re,{variant:"ghost",size:"icon-compact",get tooltip(){return e(ue)},onclick:U,children:(le,xe)=>{Ae(le,{get icon(){return zt},size:"xs"})},$$slots:{default:!0}})}x(I,z)};te(p,I=>{s()&&I(L)})}he(w),x(i,w)};te(q,i=>{(b()||s())&&i(g)})}return he(f),Q(()=>{Le(f,"data-reason",u()),ie(Y,e(P))}),x(a,f),Ne(y)}export{ut as I,Ye as M,mt as V,dt as Z,on as a,yn as b,pn as c,ct as d,Wt as e,je as f,Ht as m,qe as p,Gn as r,Jn as s};
|
|
1
|
+
import{$ as gt}from"./Cppy6ZYG.js";import{nX as pt,bq as vt}from"./_LtUY0jS.js";import{g as ht}from"./CMiilI_P.js";import{t as Te,bo as h,bw as Ue,b as Re,bm as m,br as _t}from"./C0QTy0Sy.js";import{ai as Ze,bs as Se,cb as bt,ca as ye,aD as e,a7 as ke,ay as oe,W as x,bn as Ne,bV as J,aA as _,a5 as ve,bS as K,bH as k,bA as he,b_ as Q,aj as Me,aw as Fe,bl as Ce,bO as ie,aB as X,c9 as E,be as Ie,b$ as ze,br as Qe}from"./3SdAC2_C.js";import{i as te}from"./bhKPSdq4.js";import{k as wt}from"./-K3ARgq0.js";import{s as Le,e as et,f as tt,g as yt}from"./7UPrdiE9.js";import{b as Oe}from"./Dn334wJv.js";import{c as me}from"./CUkDMZwP.js";import{q as Xe,l as nt,d as rt,e as $e,K as at,h as ot,M as it}from"./DCL0Px6m.js";import{a as xt}from"./CC7to1B5.js";import{m as we}from"./DlUZpQ7U.js";import{f as Ee}from"./CttA-M7l.js";import"./C2jYl_tm.js";import{l as Be,f as lt,m as kt,a as Ct}from"./CE7dsja4.js";import"./ChTqQfQN.js";import"./DI_O2uCQ.js";import"./Dhy-QJgd.js";import{bL as He}from"./C91EC830.js";import{t as De}from"./CrD0jtXE.js";import{F as Ae,d3 as Lt,bW as Pt,bX as Mt,cq as At,bF as Et,cr as It,aZ as zt,a8 as $t}from"./U9jJmfYa.js";import{S as Tt}from"./DXn0DuET.js";import{n as Ut,g as Rt}from"./DLwWVKiF.js";import{e as We}from"./B6S6VNu7.js";import{i as St,f as Nt}from"./B2w13ngc.js";import{P as Ot}from"./CU5jKGma.js";import{h as Kt}from"./C3KL0Dob.js";import{t as Ft}from"./DAsc1V4f.js";function Bt(a,n){return a?.isExternalLink===!0&&typeof a.workspaceId=="string"&&a.workspaceId?a.workspaceId:n||void 0}function Ht(a,n,o){const u=a.label||a.id||"mention";if(a.type==="member")return gt(u);if(a.type==="note"&&a.id&&o){const s=Bt(a.meta,n),v=s?o(s,a.id)?.trim():void 0;if(v)return v}return u}function Gn(a,n,o){if(typeof document>"u"||!a.includes('data-type="note"'))return a;const u=document.createElement("template");u.innerHTML=a;let s=!1;for(const v of u.content.querySelectorAll('[data-mention][data-type="note"]')){let b=null;try{b=JSON.parse(v.getAttribute("data-meta")||"{}")}catch{b=null}const P=v.textContent??"",M=Ht({type:"note",id:v.getAttribute("data-id"),label:P,meta:b},n,o);M!==P&&(v.textContent=M,s=!0)}return s?u.innerHTML:a}const Jn=(a,n)=>{let o;try{o=ht().state}catch{return}const u=o?.workspaceNotes?.byWorkspaceId?.[a]?.notes;return u?pt(u,n)?.title:void 0};let Ke=null;var jt=X('<p class="mt-2 max-w-[90vw] rounded-md bg-black/60 px-3 py-1.5 text-center text-sm text-white"> </p>'),Dt=X('<div data-media-lightbox-root="" data-image-lightbox-root="" class="fixed inset-0 z-[1000] flex cursor-zoom-out flex-col items-center justify-center bg-black/80 p-4 backdrop-blur-sm" style="pointer-events: auto;" role="dialog" aria-modal="true" tabindex="-1"><div class="absolute right-4 top-4 z-[1002] flex items-center gap-1"><!> <!></div> <div class="flex min-h-0 w-full flex-1 items-center justify-center"><!></div> <!></div>');function Ye(a,n){if(new.target)return Te({component:Ye,...a});Se(n,!0);let o=h(n,"open",15,!1),u=h(n,"ariaLabel",7),s=h(n,"closeLabel",7),v=h(n,"onClose",7),b=h(n,"openerElement",7,null),P=h(n,"children",7),M=h(n,"actions",7),F=h(n,"caption",7),U=h(n,"onKeydown",7),R=h(n,"onCopy",7);const y=St(),f=Nt(()=>N());let A=J(null),S=J(null);const D=Symbol("media-lightbox");let V=!1;function N({handoff:r=!1}={}){o()&&(V=r,Ke?.source===D&&(Ke=null),o(!1),v()?.(),!r&&b()?.isConnected&&b().focus({preventScroll:!0}))}function d(r){Ke={source:D,close:()=>N({handoff:!0})},r.scrollIntoView({block:"nearest"}),r.click()}function B(r,p,L){return V?{duration:0}:Rt(r,{tier:"moderate"},L)}bt(()=>{if(!o())return;const r=Ke;V=r!==null&&r.source!==D,V&&r&&(Ke=null,r.close())});function Y(r){(r.target instanceof Element?r.target:null)?.closest('[data-media-lightbox-content], [role="toolbar"], button, input')||N()}function q(r){if(U()?.(r),r.defaultPrevented||r.key!=="Tab"||!e(A))return;const p=Array.from(e(A).querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),L=p[0],I=p[p.length-1];!L||!I||(r.shiftKey&&document.activeElement===L?(r.preventDefault(),I.focus()):!r.shiftKey&&document.activeElement===I&&(r.preventDefault(),L.focus()))}ye(()=>{if(o())return Xe(()=>N())}),ye(()=>{!o()||!e(S)||requestAnimationFrame(()=>e(S)?.focus())});var g={handOffTo:d,get open(){return o()},set open(r=!1){o(r),_()},get ariaLabel(){return u()},set ariaLabel(r){u(r),_()},get closeLabel(){return s()},set closeLabel(r){s(r),_()},get onClose(){return v()},set onClose(r){v(r),_()},get openerElement(){return b()},set openerElement(r=null){b(r),_()},get children(){return P()},set children(r){P(r),_()},get actions(){return M()},set actions(r){M(r),_()},get caption(){return F()},set caption(r){F(r),_()},get onKeydown(){return U()},set onKeydown(r){U(r),_()},get onCopy(){return R()},set onCopy(r){R(r),_()},$set:Ue,$on:(r,p)=>Re(n,r,p)},i=ke(),w=oe(i);{var l=r=>{{let p=E(()=>y?.target()??"body");Ot(r,{get target(){return e(p)},zIndex:1e3,children:(L,I)=>{var z=Dt(),W=ve(z),ne=ve(W);{var re=C=>{var $=ke(),G=oe($);De(G,M),x(C,$)};te(ne,C=>{M()&&C(re)})}var ue=K(ne,2);Ee(ue,{variant:"ghost",size:"icon",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>N(),get"aria-label"(){return s()},get ref(){return e(S)},set ref(C){k(S,C,!0)},children:(C,$)=>{Ae(C,{get icon(){return Lt},size:"lg"})},$$slots:{default:!0}}),he(W),We(W,C=>f?.(C));var le=K(W,2),xe=ve(le);De(xe,P),he(le),We(le,C=>f?.(C));var se=K(le,2);{var ge=C=>{var $=jt(),G=Ce($,!0);Q(()=>ie(G,F())),x(C,$)};te(se,C=>{F()&&C(ge)})}he(z),Oe(z,C=>k(A,C),()=>e(A)),Q(()=>Le(z,"aria-label",u())),Me("click",z,Y),Me("keydown",z,q),Fe("copy",z,function(...C){R()?.apply(this,C)}),Ut(3,z,()=>B),x(L,z)},$$slots:{default:!0}})}};te(w,r=>{o()&&r(l)})}return x(a,i),Ne(g)}Ze(["click","keydown"]);function qe(a){if(!a.startsWith("workspace-file://"))return null;const o=a.slice(17).split(/[?#]/)[0].split("/"),u=o[0],s=o.slice(1);if(!u||s.length===0)return null;const v=[];for(const b of s){if(!b)return null;try{v.push(decodeURIComponent(b))}catch{return null}}return{workspaceId:u,path:v.join("/")}}function st(a){try{return new URL(a).protocol==="https:"}catch{return!1}}function Ve(a){const n=/^data:([^;,]+);base64,(.*)$/s.exec(a);return n?{mimeType:n[1],base64:n[2]}:null}function je(a){return st(a)||qe(a)!==null||/^workspace-asset:\/\/[^/?#]+/.test(a)||/^data:image\/[a-z0-9.+-]+(?:;[^,]*)?,/i.test(a)}function ct(a){if(a.length===0)return 0;let n=0;return a.endsWith("==")?n=2:a.endsWith("=")&&(n=1),Math.floor(a.length*3/4)-n}function Wt(a,n){const o=atob(a),u=new Uint8Array(o.length);for(let s=0;s<o.length;s++)u[s]=o.charCodeAt(s);return new Blob([u],{type:n})}const Vt={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp"};function Zt(a){if(a.workspacePath){const s=a.workspacePath.split("/").pop();if(s)return s}const n=(a.imageName||"image").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(n))return n;const o=a.mimeType?.split(";")[0].trim().toLowerCase(),u=o&&Vt[o]||"png";return`${n}.${u}`}var Xt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-dimensions"> </div>'),Yt=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-size"> </div>'),qt=X("<!> <!> <!>",1),Gt=X("<!> <!> <!> <!>",1),Jt=X("<!> <!>",1);function ut(a,n){if(new.target)return Te({component:ut,...a});Se(n,!0);let o=h(n,"imageUrl",7),u=h(n,"imageName",7),s=h(n,"open",15,!1),v=h(n,"triggerClass",7),b=h(n,"contentClass",7);const P=E(()=>Ve(o())),M=E(()=>qe(o())),F=E(()=>st(o()));let U=J(null),R=J(null),y=null;function f(){if(y===o())return;const l=y=o();k(U,null),k(R,e(P)?ct(e(P).base64):null,!0);const r=new Image;r.onload=()=>{y===l&&k(U,{width:r.naturalWidth,height:r.naturalHeight},!0)},r.src=o(),e(P)||fetch(o()).then(p=>p.ok?p.blob():null).then(p=>{p&&y===l&&k(R,p.size,!0)}).catch(()=>{})}ye(()=>{s()&&f()}),ye(()=>{if(s())return Xe(()=>{s(!1)})});async function A(l=o()){const r=Ve(l);if(r)return Wt(r.base64,r.mimeType);const p=await fetch(l);if(!p.ok)throw new Error(`Image fetch failed: ${p.status}`);return await p.blob()}async function S(){let l=null;try{let r=o(),p=e(P)?.mimeType;if(!e(P)){const I=await A();p=I.type,l=URL.createObjectURL(I),r=l}const L=document.createElement("a");L.href=r,L.download=Zt({workspacePath:e(M)?.path,imageName:u(),mimeType:p}),document.body.appendChild(L);try{L.click()}finally{L.remove()}}catch{we.error(m.ui_imageActionsMenu_downloadFailed_error())}finally{l&&URL.revokeObjectURL(l)}}async function D(){if(e(M))try{await He(e(M).path),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function V(){if(e(F))try{await He(o()),we.success(m.ui_imageActionsMenu_linkCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}async function N(l){let r,p;try{let L;if(l.type.split(";")[0].trim()==="image/svg+xml"){p=URL.createObjectURL(l);const W=new Image;W.src=p,await W.decode(),L=W}else L=r=await createImageBitmap(l);const I=document.createElement("canvas");I.width=L instanceof HTMLImageElement?L.naturalWidth:L.width,I.height=L instanceof HTMLImageElement?L.naturalHeight:L.height;const z=I.getContext("2d");if(!z)throw new Error("2d canvas context unavailable");return z.drawImage(L,0,0),await new Promise((W,ne)=>{I.toBlob(re=>re?W(re):ne(new Error("canvas toBlob failed")),"image/png")})}finally{r?.close(),p&&URL.revokeObjectURL(p)}}async function d(l=o()){try{let r=await A(l);r.type!=="image/png"&&(r=await N(r)),await navigator.clipboard.write([new ClipboardItem({"image/png":r})]),we.success(m.ui_imageActionsMenu_imageCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function B(l,r=o()){return l.defaultPrevented||!je(r)||l instanceof KeyboardEvent&&(l.key.toLowerCase()!=="c"||!(l.metaKey||l.ctrlKey)||l.altKey||l.shiftKey||l.isComposing)||xt(l.target)||document.getSelection()?.toString()?!1:(l.preventDefault(),l.stopPropagation(),l instanceof KeyboardEvent&&l.repeat||(d(r),s(!1)),!0)}var Y={handleCopy:B,get imageUrl(){return o()},set imageUrl(l){o(l),_()},get imageName(){return u()},set imageName(l){u(l),_()},get open(){return s()},set open(l=!1){s(l),_()},get triggerClass(){return v()},set triggerClass(l){v(l),_()},get contentClass(){return b()},set contentClass(l){b(l),_()},$set:Ue,$on:(l,r)=>Re(n,l,r)},q=ke(),g=oe(q);{var i=l=>{var r=ke(),p=oe(r);me(p,()=>it,(L,I)=>{I(L,{get open(){return s()},set open(z){s(z)},children:(z,W)=>{var ne=Jt(),re=oe(ne);{const le=(se,ge)=>{let C=()=>(ge?.()).props;{let $=E(()=>m.ui_imageActionsMenu_trigger_ariaLabel());Ee(se,_t(C,{variant:"plain",size:"icon-sm",wrapContent:!1,get active(){return s()},get"aria-label"(){return e($)},children:(G,j)=>{at(G,{class:"size-3.5"})},$$slots:{default:!0}}))}};let xe=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",v()));me(re,()=>nt,(se,ge)=>{ge(se,{get class(){return e(xe)},onclick:C=>C.stopPropagation(),onkeydown:C=>B(C),oncopy:C=>B(C),child:le,$$slots:{child:!0}})})}var ue=K(re,2);me(ue,()=>rt,(le,xe)=>{xe(le,{get class(){return b()},align:"end",onkeydown:se=>B(se),oncopy:se=>B(se),children:(se,ge)=>{var C=Gt(),$=oe(C);me($,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void S(),children:(O,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_download_label()]),x(O,ae)},$$slots:{default:!0}})});var G=K($,2);me(G,()=>$e,(H,ee)=>{ee(H,{onSelect:()=>void d(),children:(O,Z)=>{Ie();var ae=ze();Q(ce=>ie(ae,ce),[()=>m.ui_imageActionsMenu_copyImage_label()]),x(O,ae)},$$slots:{default:!0}})});var j=K(G,2);{var de=H=>{var ee=ke(),O=oe(ee);me(O,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void D(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyPath_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)},_e=H=>{var ee=ke(),O=oe(ee);me(O,()=>$e,(Z,ae)=>{ae(Z,{onSelect:()=>void V(),children:(ce,t)=>{Ie();var c=ze();Q(T=>ie(c,T),[()=>m.ui_imageActionsMenu_copyLink_label()]),x(ce,c)},$$slots:{default:!0}})}),x(H,ee)};te(j,H=>{e(M)?H(de):e(F)&&H(_e,1)})}var fe=K(j,2);{var Pe=H=>{var ee=qt(),O=oe(ee);me(O,()=>ot,(c,T)=>{T(c,{})});var Z=K(O,2);{var ae=c=>{var T=Xt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>m.ui_imageActionsMenu_dimensions_label({width:Be(e(U).width),height:Be(e(U).height)})]),x(c,T)};te(Z,c=>{e(U)&&c(ae)})}var ce=K(Z,2);{var t=c=>{var T=Yt(),pe=Ce(T,!0);Q(be=>ie(pe,be),[()=>lt(e(R))]),x(c,T)};te(ce,c=>{e(R)!==null&&c(t)})}x(H,ee)};te(fe,H=>{(e(U)||e(R)!==null)&&H(Pe)})}x(se,C)},$$slots:{default:!0}})}),x(z,ne)},$$slots:{default:!0}})}),x(l,r)},w=E(()=>je(o()));te(g,l=>{e(w)&&l(i)})}return x(a,q),Ne(Y)}var Qt=X('<div role="application" tabindex="0" data-testid="zoom-pan-viewport"><div class="flex h-full w-full items-center justify-center will-change-transform" data-testid="zoom-pan-content"><!></div> <div class="absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 cursor-default items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 backdrop-blur-sm" role="toolbar" tabindex="-1" data-testid="zoom-pan-controls"><!> <div class="w-36"><!></div> <!> <span class="min-w-12 text-center text-xs tabular-nums text-white/90" data-testid="zoom-pan-percent"> </span> <!></div></div>');function dt(a,n){if(new.target)return Te({component:dt,...a});Se(n,!0);let o=h(n,"children",7),u=h(n,"minZoom",7,.25),s=h(n,"maxZoom",7,8),v=h(n,"onScaleChange",7),b=h(n,"pannable",15,!1);const P=1.25,M=.0015,F=.01,U=4,R=.5;let y=J(1),f=J(0),A=J(0),S=J(!1),D=J(null),V=J(null),N=J(Qe({width:0,height:0})),d=J(Qe({width:0,height:0}));const B=E(()=>e(d).width*e(y)>e(N).width+R),Y=E(()=>e(d).height*e(y)>e(N).height+R);ye(()=>{v()?.(e(y))}),ye(()=>{b(e(B)||e(Y))});function q(){e(D)&&k(N,{width:e(D).clientWidth,height:e(D).clientHeight},!0);const t=e(V)?.firstElementChild;if(t instanceof HTMLElement)k(d,{width:t.offsetWidth,height:t.offsetHeight},!0);else if(t){const c=t.getBoundingClientRect();k(d,{width:c.width/e(y),height:c.height/e(y)},!0)}}function g(t,c,T){const pe=c*(1-e(y))/2,be=T*e(y)-c;return be<=R?pe:Math.min(pe+be/2,Math.max(pe-be/2,t))}function i(){k(f,g(e(f),e(N).width,e(d).width),!0),k(A,g(e(A),e(N).height,e(d).height),!0)}ye(()=>{const t=e(D),c=e(V);if(!t||!c||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>{q(),i()});return T.observe(t),c.firstElementChild&&T.observe(c.firstElementChild),()=>T.disconnect()});let w=null,l=0,r=0,p=0,L=!1;const I=E(()=>kt(e(y),{style:"percent",maximumFractionDigits:0}));function z(t){return Math.min(s(),Math.max(u(),t))}function W(t,c,T){const pe=z(T),be=e(D)?.getBoundingClientRect(),Ge=be?t-be.left:0,Je=be?c-be.top:0;q(),k(f,Ge-(Ge-e(f))/e(y)*pe),k(A,Je-(Je-e(A))/e(y)*pe),k(y,pe,!0),i()}function ne(t){const c=e(D)?.getBoundingClientRect();c?W(c.left+c.width/2,c.top+c.height/2,t):(k(y,z(t),!0),i())}function re(){k(y,1),k(f,0),k(A,0)}function ue(t){t.preventDefault();const c=t.ctrlKey?F:M;W(t.clientX,t.clientY,e(y)*Math.exp(-t.deltaY*c))}ye(()=>{const t=e(D);if(t)return t.addEventListener("wheel",ue,{passive:!1}),()=>t.removeEventListener("wheel",ue)});function le(t){if(t.metaKey||t.ctrlKey||t.altKey)return!1;if(t.key==="+"||t.key==="=")ne(e(y)*P);else if(t.key==="-")ne(e(y)/P);else if(t.key==="0")re();else return!1;return t.preventDefault(),!0}function xe(t){if(t.button>0||(q(),!e(B)&&!e(Y)))return;t.preventDefault(),k(S,!0),w=t.pointerId,l=t.clientX,r=t.clientY,p=0;const c=t.currentTarget;typeof c.setPointerCapture=="function"&&c.setPointerCapture(t.pointerId)}function se(t){if(!e(S)||t.pointerId!==w)return;const c=t.clientX-l,T=t.clientY-r;p+=Math.abs(c)+Math.abs(T),k(f,e(f)+c),k(A,e(A)+T),i(),l=t.clientX,r=t.clientY}function ge(t){if(!e(S)||t.pointerId!==w)return;k(S,!1),w=null,p>U&&(L=!0);const c=t.currentTarget;typeof c.hasPointerCapture=="function"&&typeof c.releasePointerCapture=="function"&&c.hasPointerCapture(t.pointerId)&&c.releasePointerCapture(t.pointerId)}function C(t){L&&(L=!1,t.preventDefault(),t.stopPropagation())}function $(t){const c=Number.parseFloat(t.currentTarget.value);Number.isFinite(c)&&ne(c)}var G={handleKeydown:le,get children(){return o()},set children(t){o(t),_()},get minZoom(){return u()},set minZoom(t=.25){u(t),_()},get maxZoom(){return s()},set maxZoom(t=8){s(t),_()},get onScaleChange(){return v()},set onScaleChange(t){v(t),_()},get pannable(){return b()},set pannable(t=!1){b(t),_()},$set:Ue,$on:(t,c)=>Re(n,t,c)},j=Qt(),de=ve(j),_e=ve(de);De(_e,o),he(de),Oe(de,t=>k(V,t),()=>e(V));var fe=K(de,2),Pe=ve(fe);{let t=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomOut_ariaLabel());Ee(Pe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)/P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Pt}})},$$slots:{default:!0}})}var H=K(Pe,2),ee=ve(H);{let t=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomSlider_ariaLabel());Tt(ee,{class:"accent-white",get min(){return u()},get max(){return s()},step:"0.01",get value(){return e(y)},oninput:$,get"aria-label"(){return e(t)},get title(){return e(c)},"data-testid":"zoom-pan-slider"})}he(H);var O=K(H,2);{let t=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_zoomIn_ariaLabel());Ee(O,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>ne(e(y)*P),get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return Mt}})},$$slots:{default:!0}})}var Z=K(O,2),ae=Ce(Z,!0),ce=K(Z,2);{let t=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel()),c=E(()=>m.ui_zoomPanViewport_resetZoom_ariaLabel());Ee(ce,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:re,get"aria-label"(){return e(t)},get title(){return e(c)},children:(T,pe)=>{Ae(T,{get icon(){return At}})},$$slots:{default:!0}})}return he(fe),he(j),Oe(j,t=>k(D,t),()=>e(D)),Q((t,c)=>{tt(j,1,`relative h-full w-full touch-none select-none overflow-hidden ${e(S)?"cursor-grabbing":b()?"cursor-grab":""}`),Le(j,"aria-label",t),yt(de,`transform: translate(${e(f)??""}px, ${e(A)??""}px) scale(${e(y)??""}); transform-origin: 0 0;`),Le(fe,"aria-label",c),ie(ae,e(I))},[()=>m.ui_zoomPanViewport_viewport_ariaLabel(),()=>m.ui_zoomPanViewport_controls_ariaLabel()]),Me("pointerdown",j,xe),Me("pointermove",j,se),Me("pointerup",j,ge),Fe("pointercancel",j,ge),Fe("click",j,C,!0),Me("keydown",j,le),Me("pointerdown",fe,t=>t.stopPropagation()),x(a,j),Ne(G)}Ze(["pointerdown","pointermove","pointerup","keydown"]);const en="data-lightbox-gallery",ft="data-lightbox-opener",tn=`[${ft}], .markdown-content img`;function nn(a){return a.hasAttribute(ft)?!(a instanceof HTMLButtonElement&&a.disabled):a instanceof HTMLImageElement&&!a.closest("a")&&je(a.getAttribute("src")||"")}function rn(a,n){const o=a?.closest(`[${en}]`);if(!a||!o)return null;const u=Array.from(o.querySelectorAll(tn)).filter(nn),s=u.findIndex(v=>v===a||v.contains(a));return s<0?null:u[s+n]??null}var an=X('<img data-media-lightbox-content=""/>');function on(a,n){if(new.target)return Te({component:on,...a});Se(n,!0);const o=d=>{var B=ke(),Y=oe(B);{var q=g=>{Oe(ut(g,{get imageUrl(){return s()},get imageName(){return v()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]",get open(){return e(f)},set open(i){k(f,i,!0)}}),i=>k(y,i,!0),()=>e(y))};te(Y,g=>{M()&&g(q)})}x(d,B)};let u=h(n,"open",15,!1),s=h(n,"imageUrl",7),v=h(n,"imageName",23,()=>m.ui_imageLightbox_image_alt()),b=h(n,"onClose",7),P=h(n,"openerElement",7,null),M=h(n,"showActionsMenu",7,!1),F=J(void 0),U=J(void 0),R=J(!1),y=J(void 0),f=J(!1);ye(()=>{u()||k(f,!1)});function A(d){D(d),!d.defaultPrevented&&(e(U)?.handleKeydown(d)||S(d))}function S(d){if(d.key!=="ArrowLeft"&&d.key!=="ArrowRight"||d.metaKey||d.ctrlKey||d.altKey||d.shiftKey||e(f)||d.target instanceof HTMLInputElement)return;const B=rn(P(),d.key==="ArrowLeft"?-1:1);B&&(d.preventDefault(),e(F)?.handOffTo(B))}function D(d){u()&&M()&&e(y)?.handleCopy(d)}function V(d){!M()||!je(s())||(d.preventDefault(),d.stopPropagation(),k(f,!0))}var N={get open(){return u()},set open(d=!1){u(d),_()},get imageUrl(){return s()},set imageUrl(d){s(d),_()},get imageName(){return v()},set imageName(d=m.ui_imageLightbox_image_alt()){v(d),_()},get onClose(){return b()},set onClose(d){b(d),_()},get openerElement(){return P()},set openerElement(d=null){P(d),_()},get showActionsMenu(){return M()},set showActionsMenu(d=!1){M(d),_()},$set:Ue,$on:(d,B)=>Re(n,d,B)};{let d=E(()=>m.ui_imageLightbox_preview_ariaLabel()),B=E(()=>m.ui_imageLightbox_close_ariaLabel());Oe(Ye(a,{get ariaLabel(){return e(d)},get closeLabel(){return e(B)},get onClose(){return b()},get openerElement(){return P()},get actions(){return o},onKeydown:A,onCopy:D,get open(){return u()},set open(Y){u(Y)},children:(Y,q)=>{var g=ke(),i=oe(g);wt(i,s,w=>{Oe(dt(w,{get pannable(){return e(R)},set pannable(l){k(R,l,!0)},children:(l,r)=>{var p=an();Q(()=>{Le(p,"src",s()),Le(p,"alt",v()),tt(p,1,`max-h-[90vh] max-w-[90vw] rounded-lg object-contain ${e(R)?"":"cursor-default"}`),Le(p,"draggable",!e(R))}),Me("contextmenu",p,V),x(l,p)},$$slots:{default:!0}}),l=>k(U,l,!0),()=>e(U))}),x(Y,g)},$$slots:{default:!0}}),Y=>k(F,Y,!0),()=>e(F))}return Ne(N)}Ze(["contextmenu"]);var ln=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-duration"> </div>'),sn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-dimensions"> </div>'),cn=X('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-size"> </div>'),un=X("<!> <!> <!> <!>",1),dn=X("<!> <!> <!>",1),fn=X("<!> <!>",1);function mt(a,n){if(new.target)return Te({component:mt,...a});Se(n,!0);let o=h(n,"videoUrl",7),u=h(n,"videoName",7),s=h(n,"sourceKind",7),v=h(n,"mimeType",7),b=h(n,"open",15,!1),P=h(n,"triggerClass",7),M=h(n,"contentClass",7);const F=E(()=>Ve(o())),U=E(()=>qe(o())),R=E(()=>s()??(e(F)?"inline":e(U)?"workspace":"remote"));let y=J(null),f=J(null),A=J(null),S=null;function D(){if(S===o())return;const g=S=o();k(y,null),k(f,null),k(A,e(F)?ct(e(F).base64):null,!0);const i=document.createElement("video");i.preload="metadata",i.onloadedmetadata=()=>{S===g&&(Number.isFinite(i.duration)&&i.duration>0&&k(y,i.duration,!0),i.videoWidth>0&&i.videoHeight>0&&k(f,{width:i.videoWidth,height:i.videoHeight},!0))},i.src=o(),e(F)||fetch(o()).then(w=>w.ok?w.blob():null).then(w=>{w&&S===g&&k(A,w.size,!0)}).catch(()=>{})}function V(){const g=e(U)?.path.split("/").pop();if(g)return g;const i=(u()||"video").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(i))return i;const w=(v()??e(F)?.mimeType)==="video/webm"?"webm":"mp4";return`${i}.${w}`}async function N(){let g=null;try{let i=o();if(!e(F)){const l=await fetch(o());if(!l.ok)throw new Error(`Video fetch failed: ${l.status}`);g=URL.createObjectURL(await l.blob()),i=g}const w=document.createElement("a");w.href=i,w.download=V(),document.body.appendChild(w),w.click(),w.remove(),g&&URL.revokeObjectURL(g)}catch{g&&URL.revokeObjectURL(g),we.error(m.ui_videoActionsMenu_downloadFailed_error())}}async function d(g,i){try{await He(g),we.success(i)}catch{we.error(m.ui_videoActionsMenu_copyFailed_error())}}ye(()=>{b()&&D()}),ye(()=>{if(b())return Xe(()=>{b(!1)})});var B={get videoUrl(){return o()},set videoUrl(g){o(g),_()},get videoName(){return u()},set videoName(g){u(g),_()},get sourceKind(){return s()},set sourceKind(g){s(g),_()},get mimeType(){return v()},set mimeType(g){v(g),_()},get open(){return b()},set open(g=!1){b(g),_()},get triggerClass(){return P()},set triggerClass(g){P(g),_()},get contentClass(){return M()},set contentClass(g){M(g),_()},$set:Ue,$on:(g,i)=>Re(n,g,i)},Y=ke(),q=oe(Y);return me(q,()=>it,(g,i)=>{i(g,{get open(){return b()},set open(w){b(w)},children:(w,l)=>{var r=fn(),p=oe(r);{let I=E(()=>et("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",P())),z=E(()=>m.ui_videoActionsMenu_trigger_ariaLabel());me(p,()=>nt,(W,ne)=>{ne(W,{get class(){return e(I)},get"aria-label"(){return e(z)},onclick:re=>re.stopPropagation(),children:(re,ue)=>{at(re,{class:"size-3.5"})},$$slots:{default:!0}})})}var L=K(p,2);me(L,()=>rt,(I,z)=>{z(I,{get class(){return M()},align:"end",children:(W,ne)=>{var re=dn(),ue=oe(re);me(ue,()=>$e,($,G)=>{G($,{onSelect:()=>void N(),children:(j,de)=>{Ie();var _e=ze();Q(fe=>ie(_e,fe),[()=>m.ui_videoActionsMenu_download_label()]),x(j,_e)},$$slots:{default:!0}})});var le=K(ue,2);{var xe=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(e(U).path,m.ui_videoActionsMenu_pathCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyPath_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)},se=$=>{var G=ke(),j=oe(G);me(j,()=>$e,(de,_e)=>{_e(de,{onSelect:()=>void d(o(),m.ui_videoActionsMenu_linkCopied_label()),children:(fe,Pe)=>{Ie();var H=ze();Q(ee=>ie(H,ee),[()=>m.ui_videoActionsMenu_copyLink_label()]),x(fe,H)},$$slots:{default:!0}})}),x($,G)};te(le,$=>{e(R)==="workspace"&&e(U)?$(xe):e(R)==="remote"&&$(se,1)})}var ge=K(le,2);{var C=$=>{var G=un(),j=oe(G);me(j,()=>ot,(O,Z)=>{Z(O,{})});var de=K(j,2);{var _e=O=>{var Z=ln(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_duration_label({duration:Ct(e(y)*1e3)})]),x(O,Z)};te(de,O=>{e(y)!==null&&O(_e)})}var fe=K(de,2);{var Pe=O=>{var Z=sn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>m.ui_videoActionsMenu_dimensions_label({width:Be(e(f).width),height:Be(e(f).height)})]),x(O,Z)};te(fe,O=>{e(f)&&O(Pe)})}var H=K(fe,2);{var ee=O=>{var Z=cn(),ae=Ce(Z,!0);Q(ce=>ie(ae,ce),[()=>lt(e(A))]),x(O,Z)};te(H,O=>{e(A)!==null&&O(ee)})}x($,G)};te(ge,$=>{(e(y)!==null||e(f)||e(A)!==null)&&$(C)})}x(W,re)},$$slots:{default:!0}})}),x(w,r)},$$slots:{default:!0}})}),x(a,Y),Ne(B)}var mn=X('<p class="type-body text-white/80" role="status"> </p>'),gn=X('<div data-media-lightbox-content="" data-video-lightbox-root="" class="flex max-h-[90vh] max-w-[90vw] cursor-default flex-col items-center gap-3"><video controls="" preload="metadata" playsinline="" class="max-h-[85vh] max-w-[90vw] rounded-lg bg-black object-contain shadow-(--elevation-overlay)" data-testid="chat-video-player"> </video> <!></div>',2);function pn(a,n){if(new.target)return Te({component:pn,...a});Se(n,!0);const o=f=>{mt(f,{get videoUrl(){return s()},get videoName(){return v()},get sourceKind(){return P()},get mimeType(){return M()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]"})};let u=h(n,"open",15,!1),s=h(n,"videoUrl",7),v=h(n,"videoName",23,()=>m.chat_videoBlock_fromAgent_label()),b=h(n,"poster",7),P=h(n,"sourceKind",7),M=h(n,"mimeType",7),F=h(n,"openerElement",7,null),U=h(n,"onClose",7),R=J(!1);ye(()=>{!u()||!s()||k(R,!1)});var y={get open(){return u()},set open(f=!1){u(f),_()},get videoUrl(){return s()},set videoUrl(f){s(f),_()},get videoName(){return v()},set videoName(f=m.chat_videoBlock_fromAgent_label()){v(f),_()},get poster(){return b()},set poster(f){b(f),_()},get sourceKind(){return P()},set sourceKind(f){P(f),_()},get mimeType(){return M()},set mimeType(f){M(f),_()},get openerElement(){return F()},set openerElement(f=null){F(f),_()},get onClose(){return U()},set onClose(f){U(f),_()},$set:Ue,$on:(f,A)=>Re(n,f,A)};{let f=E(()=>m.chat_videoBlock_dialog_title({name:v()})),A=E(()=>m.chat_videoBlock_close_ariaLabel());Ye(a,{get ariaLabel(){return e(f)},get closeLabel(){return e(A)},get openerElement(){return F()},get onClose(){return U()},get actions(){return o},get open(){return u()},set open(S){u(S)},children:(S,D)=>{var V=gn(),N=ve(V),d=Ce(N,!0),B=K(N,2);{var Y=q=>{var g=mn(),i=Ce(g,!0);Q(w=>ie(i,w),[()=>m.chat_videoBlock_unavailable_description()]),x(q,g)};te(B,q=>{e(R)&&q(Y)})}he(V),Q(q=>{Le(N,"src",s()),Le(N,"poster",b()),Le(N,"aria-label",v()),ie(d,q)},[()=>m.chat_videoBlock_unsupported_description()]),Fe("error",N,()=>k(R,!0)),x(S,V)},$$slots:{default:!0}})}return Ne(y)}var vn=X('<span class="block truncate text-foreground"> </span>'),hn=X("<!> ",1),_n=X("<!> <!>",1),bn=X('<span class="flex shrink-0 flex-wrap items-center gap-1"><!> <!></span>'),wn=X('<div class="type-caption flex w-fit min-w-0 max-w-full items-center gap-3 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-unavailable"><span class="flex min-w-0 max-w-full flex-1 items-start gap-2"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="min-w-0"><!> <span class="block break-words"> </span></span></span> <!></div>');function yn(a,n){if(new.target)return Te({component:yn,...a});Se(n,!0);let o=h(n,"name",7),u=h(n,"reason",7),s=h(n,"path",7),v=h(n,"workspaceId",7),b=h(n,"onRetry",7);const P=E(()=>u()==="missing"?m.ui_mediaUnavailable_missing_description():u()==="unsupported"?m.ui_mediaUnavailable_unsupported_description():u()==="other-workspace"?m.ui_mediaUnavailable_otherWorkspace_description():u()==="invalid-link"?m.ui_mediaUnavailable_invalidLink_description():m.ui_mediaUnavailable_loadFailed_description());function M(i){i.preventDefault(),i.stopPropagation()}function F(i){M(i),b()?.()}async function U(i){if(M(i),!!s())try{await He(s()),we.success(m.ui_imageActionsMenu_pathCopied_label())}catch{we.error(m.ui_imageActionsMenu_copyFailed_error())}}function R(i){if(M(i),!s()||!v())return;const w=s().split("/").map(encodeURIComponent).join("/");Kt(`intent://local/file/${w}`,{workspaceId:vt(v())})}var y={get name(){return o()},set name(i){o(i),_()},get reason(){return u()},set reason(i){u(i),_()},get path(){return s()},set path(i){s(i),_()},get workspaceId(){return v()},set workspaceId(i){v(i),_()},get onRetry(){return b()},set onRetry(i){b(i),_()},$set:Ue,$on:(i,w)=>Re(n,i,w)},f=wn(),A=ve(f),S=ve(A),D=ve(S);Ae(D,{get icon(){return Et},class:"size-3.5"}),he(S);var V=K(S,2),N=ve(V);{var d=i=>{var w=vn(),l=Ce(w,!0);We(w,(r,p)=>Ft?.(r,p),o),Q(()=>ie(l,o())),x(i,w)};te(N,i=>{o()&&i(d)})}var B=K(N,2),Y=Ce(B,!0);he(V),he(A);var q=K(A,2);{var g=i=>{var w=bn(),l=ve(w);{var r=I=>{{let z=E(()=>m.chat_shared_retry_label());Ee(I,{variant:"ghost",size:"icon-compact",get tooltip(){return e(z)},onclick:F,children:(W,ne)=>{Ae(W,{get icon(){return It},size:"xs"})},$$slots:{default:!0}})}};te(l,I=>{b()&&I(r)})}var p=K(l,2);{var L=I=>{var z=_n(),W=oe(z);{var ne=ue=>{Ee(ue,{variant:"ghost",size:"compact",onclick:R,children:(le,xe)=>{var se=hn(),ge=oe(se);Ae(ge,{get icon(){return $t},size:"xs"});var C=K(ge);Q($=>ie(C,` ${$??""}`),[()=>m.chat_changesPanel_openFile_tooltip()]),x(le,se)},$$slots:{default:!0}})};te(W,ue=>{v()&&u()!=="other-workspace"&&u()!=="invalid-link"&&ue(ne)})}var re=K(W,2);{let ue=E(()=>m.ui_imageActionsMenu_copyPath_label());Ee(re,{variant:"ghost",size:"icon-compact",get tooltip(){return e(ue)},onclick:U,children:(le,xe)=>{Ae(le,{get icon(){return zt},size:"xs"})},$$slots:{default:!0}})}x(I,z)};te(p,I=>{s()&&I(L)})}he(w),x(i,w)};te(q,i=>{(b()||s())&&i(g)})}return he(f),Q(()=>{Le(f,"data-reason",u()),ie(Y,e(P))}),x(a,f),Ne(y)}export{ut as I,Ye as M,mt as V,dt as Z,on as a,yn as b,pn as c,ct as d,Wt as e,je as f,Ht as m,qe as p,Gn as r,Jn as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as et,bo as c,bw as tt,b as nt,bp as ma,bm as h,br as $n,bq as or,bs as be}from"./C0QTy0Sy.js";import{bs as rt,aD as e,a5 as Q,bS as S,bA as K,W as g,bn as at,c9 as i,aA as d,a7 as ke,ay as ee,be as je,b$ as Ve,aC as mt,ai as Bs,bo as ha,ca as Ue,bH as H,bf as _a,b_ as B,aj as Fs,bV as Ae,bO as q,aB as j,aw as Mt,bl as ue,cb as ba,am as Yr,c5 as Ut,a as En,$ as wa,cd as Yt,c0 as Xt,br as js}from"./3SdAC2_C.js";import{i as U}from"./bhKPSdq4.js";import{k as ya}from"./-K3ARgq0.js";import{c as Ct}from"./CUkDMZwP.js";import{b as xa,f as bt,c as un,s as we,g as Tn}from"./7UPrdiE9.js";import{t as $t,k as Vs}from"./CrD0jtXE.js";import{h as qs}from"./
|
|
1
|
+
import{t as et,bo as c,bw as tt,b as nt,bp as ma,bm as h,br as $n,bq as or,bs as be}from"./C0QTy0Sy.js";import{bs as rt,aD as e,a5 as Q,bS as S,bA as K,W as g,bn as at,c9 as i,aA as d,a7 as ke,ay as ee,be as je,b$ as Ve,aC as mt,ai as Bs,bo as ha,ca as Ue,bH as H,bf as _a,b_ as B,aj as Fs,bV as Ae,bO as q,aB as j,aw as Mt,bl as ue,cb as ba,am as Yr,c5 as Ut,a as En,$ as wa,cd as Yt,c0 as Xt,br as js}from"./3SdAC2_C.js";import{i as U}from"./bhKPSdq4.js";import{k as ya}from"./-K3ARgq0.js";import{c as Ct}from"./CUkDMZwP.js";import{b as xa,f as bt,c as un,s as we,g as Tn}from"./7UPrdiE9.js";import{t as $t,k as Vs}from"./CrD0jtXE.js";import{h as qs}from"./C2jYl_tm.js";import{b as Zs,a as Hs}from"./Dhy-QJgd.js";import{a as Gr,o as Jr,S as Gn,E as Ws,e as Rn}from"./DCL0Px6m.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import"./lJeex2Gh.js";import{r as Ks,e as Xs}from"./90dwRRI_.js";import{m as Gt}from"./DlUZpQ7U.js";import"./ChTqQfQN.js";import"./DI_O2uCQ.js";import{jy as ir,Jv as le,i as Aa,u$ as Qs,bq as Ys,jB as Gs,yV as Js,yX as eo,ju as to,U as ea,V as ta,kc as tr,k8 as Jn,jY as na,kg as no,jL as ro,kd as ao,x4 as so,x5 as oo,x2 as io,jM as lo,kb as ra,k5 as co,jz as uo,nf as go,ne as po,jv as aa,rL as fo,k2 as vo,jA as mo,j$ as ho,jJ as sa,Lu as _o,jG as bo,ka as wo}from"./_LtUY0jS.js";import{a_ as lr,dH as yo,O as xo,cU as Ao}from"./Cppy6ZYG.js";import{E as ka}from"./B9qXV8kb.js";import"./Bsh6nUhU.js";import{m as Sn,bF as ko,B as Io,bE as Ro,e as So,ai as Mo,bD as Co,bL as Po}from"./C91EC830.js";import{u as Ia}from"./B9ZFoPLo.js";import{d1 as Ra,al as Do,c$ as $o,a1 as Eo,bH as nr,be as cr,bj as Sa,bb as To,bk as zo,bA as Uo,by as Oo,bd as Lo,ba as No,cs as Bo,bv as Fo,bx as jo,bI as Vo,bD as qo,bl as Zo,bm as Ma,bL as Ho,bE as Wo,bz as Ko,bh as Xo,bG as Qo,bg as Yo,bn as oa,bi as ia,bf as la,bs as Go}from"./BfSTFUKA.js";import{e as Jo}from"./DB7RVYiL.js";import{h as Ca,e as Pa,g as gt,i as gn,I as Da}from"./B6S6VNu7.js";import{b as Qt}from"./Dn334wJv.js";import{f as Oe,ae as ei}from"./CttA-M7l.js";import{T as ti}from"./CW0Mb2k4.js";import"./BWYuMy_r.js";import{c as ni}from"./D-62MVd3.js";import{P as zn}from"./ujhgjK1k.js";import{l as pn,k as $a,q as rr,i as ri}from"./CE7dsja4.js";import{F as kt,cn as ai,aS as si,bj as oi,Q as ii,cj as Ea,b7 as li,aZ as ci,bY as di,bF as ui,cd as gi,a6 as pi,$ as fi,d3 as vi,ad as mi}from"./U9jJmfYa.js";import{A as fn}from"./wl2qP2wF.js";import{B as Ta}from"./6D8I0EJP.js";import{parseIntentLink as hi}from"./CteMcmUe.js";import{h as _i}from"./C3KL0Dob.js";import{M as bi}from"./CqhHB0m1.js";import{a as wi}from"./lQcc1B6x.js";import{T as za}from"./CDLANF8s.js";import{c as Ua,d as Oa}from"./DHLXX1td.js";import"./DU3vNstz.js";import{i as yi}from"./BjLb7AHW.js";import{a2 as xi}from"./BtI19qHa.js";import{a as Ai,A as ca}from"./CEl8yEuC.js";import{I as ki}from"./B2w13ngc.js";import{S as Ii}from"./BAwmUXtg.js";import{C as Ri}from"./B0-WaGMs.js";import{D as Si,p as Mi}from"./CzMfcD76.js";import{h as da,C as Ci}from"./CEOk8g-Q.js";import{g as Pi}from"./DWGXN6Nr.js";import{u as Di,n as $i}from"./BsOWc0fD.js";const Ei=/^!\[([^\]\n]*)\]\((workspace-asset:\/\/[^\s()]+)\)$/,Ti={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp"};function ar(s,n){const l=s.split(`
|
|
2
2
|
`),r=[];let a=l.length;for(;a>0;){const f=Ei.exec(l[a-1]);if(!f||!Ra(f[2],n))break;r.unshift({name:f[1],url:f[2]}),a--}if(!r.length)return{text:s,images:r};const u=l.slice(0,a).join(`
|
|
3
3
|
`);return{text:u.endsWith(`
|
|
4
4
|
`)?u.slice(0,-1):u,images:r}}function Mn(s,n){if(!n.length)return s;const l=n.map(({name:r,url:a})=>`![${r.replace(/[[\]()\\\n\r]/g,"").trim()||"image"}](${a})`);return s?`${s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as xe}from"./DDfr81XI.js";import{p as be}from"./ZxEOlEA2.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./BhSvmxU-.js";import{p as ze}from"./BFeEPayU.js";import{f as O,o as Q}from"./BWbkCnfm.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
|
|
1
|
+
import{s as xe}from"./DGSdOlov.js";import{p as be}from"./C1IZMhCT.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./Cpw-AI-k.js";import{p as ze}from"./BFeEPayU.js";import{f as O,o as Q}from"./Dl4B5sLX.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${s.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${s.sectionStrokeWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Jv as S,Cp as o,aW as d,aX as l,aY as a}from"./
|
|
1
|
+
import{Jv as S,Cp as o,aW as d,aX as l,aY as a}from"./_LtUY0jS.js";import{i as x,c}from"./CMiilI_P.js";import{w as f}from"./B_QPRXJ5.js";const C=t=>{if(typeof window>"u")return;const e=window;e.intent?.reduxContext&&(e.intent.reduxContext===t&&(e.intent.reduxContext=void 0),Array.isArray(e.intent.reduxContext)&&(e.intent.reduxContext=e.intent.reduxContext.filter(i=>i!==t)))},p=t=>{if(typeof window>"u")return;const e=window;if(e.intent=e.intent||{},e.intent.reduxContext===t)console.log("Context is exposed already");else if(!e.intent.reduxContext)e.intent.reduxContext=t;else{const n=[];e.intent.reduxContext=n.concat(e.intent.reduxContext).concat(t),e.isStorybook?console.log("Multiple Redux stores initialized:",e.intent.reduxContext):console.error("Multiple Redux stores initialized:",e.intent.reduxContext)}e.intent.debug||(e.intent.debug={});const i=n=>{if(n==="true")return!0;if(n==="false")return!1},r=n=>{const g=i(o.getItem(n))??!1;o.setItem(n,String(!g))},u=n=>{o.getItem(n)?o.removeItem(n):o.setItem(n,"true")},s=()=>{console.log("Redux logging preference updated. Reload to take effect.")};e.intent.enableReduxLogging=()=>{o.setItem(d,"true"),s()},e.intent.disableReduxLogging=()=>{o.setItem(d,"false"),s()},e.intent.debug.toggleReduxLogs=()=>{r(d),s()},e.intent.debug.toggleStateReferenceChecks=()=>{u(l)},e.intent.debug.toggleStructuredCloneChecks=()=>{u(a)}},m=(t,e)=>{const i=t.init(f(e)),r={store:t,dispose:()=>{C(r);try{i()}finally{c(t)}}};return p(r),x(t),r};export{m as initAppStore,S as store};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{fU as B,Jv as o,nY as F,mo as K,mf as q,tA as G}from"./
|
|
1
|
+
import{fU as B,Jv as o,nY as F,mo as K,mf as q,tA as G}from"./_LtUY0jS.js";import{H as j,n as V,O as Y,e8 as $,cU as W,dH as I,dS as N,e1 as M,cP as J,aN as z}from"./Cppy6ZYG.js";import{selectCurrentWorkspaceTabId as Q,selectWorkspaceTabsHydrated as X}from"./VxaCN40t.js";import{t as Z}from"./BsOWc0fD.js";function ee(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function m(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function ve(e){const t=e.filter(ee).map(s=>({agent:s,activity:m(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>B(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",E="New chat";function te(e){const t=e?.trim();return!t||t===E||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function se(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?(r.role==="user"?j(r):V(r)).trim():"";return!t||te(t)?c||E:c||t}const re="chief-of-staff",oe=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function ye(e){const t=e?.trim();return t?`${T}
|
|
2
2
|
|
|
3
3
|
${t}`:T}const ne=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?F(s.hooks):[]}),ae=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),L=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??K),Ce=o.createSelector((e,t,s)=>{const r=L.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=o.createSelector((e,t,s)=>{const r=G(t,s);return e.agentSubscriptionUI.entries[r]??q}),ce=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ie=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),le=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Te=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),We=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Ne=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function de(e){return[...new Set(e.filter(Boolean))]}const Me=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of de(n))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((n,a)=>n.createdAt.localeCompare(a.createdAt)||n.id.localeCompare(a.id));for(const n of h)n.delegationGroup?.awaitMode!=="all"&&i(n.actorIds);const g=new Map;for(const n of r.delegationGroups)n.awaitMode==="all"&&g.set(n.groupId,n);for(const n of g.values())i(n.expectedAgentIds);for(const n of h){const a=n.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const n of r.delegationGroups){for(const a of n.completedAgentIds)d.add(a);for(const a of n.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(n.agentStatuses))f==="completed"&&d.add(a)}for(const[n,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(n);const b=e.agentSessions?.byAgentId??{},A=new Set([...d].filter(n=>{const a=b[n];return!a||!Y($(a))})),v=new Map(c.map((n,a)=>[n,a])),y=n=>{const a=b[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(A.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},C=c.filter(n=>!A.has(n)).sort((n,a)=>y(n)-y(a)||(v.get(n)??0)-(v.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:C.length,participantAgentIds:C}}),Ee=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Le=o.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});o.createSelector((e,t,s)=>{const r=le.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Oe=o.createSelector(e=>{const t=Q.select(e);if(!t||!X.select(e))return[];const s=new Set;for(const r of Z.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),O="pinned",pe=64;function k(e){return e.trim().toLocaleLowerCase()}function P(e){return e===O}function Pe(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>pe)return{ok:!1,error:"tooLong"};const r=k(s);return r===O?{ok:!1,error:"reserved"}:t.some(c=>k(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function ue(e){const t=new Map;for(const s of e){if(typeof s!="string"||P(s))continue;const r=s.trim();if(r.length===0)continue;const c=k(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function R(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function _(e){return e.metadata?.specialist===re&&e.metadata?.chiefPromptVersion===oe}function D(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:se(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:D(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function w(e){return R(e).filter(t=>!t.retiredAt)}function H(e,t){return m(t)-m(e)}function U(e,t){const s=r=>new Date(r.lastActivity??r.updatedAt??r.createdAt).getTime()||0;return s(t)-s(e)}const Re=o.createSelector(e=>e.sidebarNav.panelItem),_e=o.createSelector(e=>e.sidebarNav.onboardingActive),De=o.createSelector(e=>e.sidebarNav.showCreateModal),He=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),Ue=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),x=o.createSelector(e=>W.select(e)?.capabilities.workspaceLabels===1),xe=o.createSelector((e,t)=>I.select(e,t)?.label??null),Be=o.createSelector(e=>ue(N.select(e).map(t=>t.label))),ge=["id","label"],Fe=o.createSelector((e,t)=>x.select(e)&&M.select(e,t,ge)!==null),fe=o.createSelector(e=>W.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),he=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Ke=o.createSelector((e,t)=>I.select(e,t)?.autoArchiveDisabled===!0),Se=["id","autoArchiveDisabled"],qe=o.createSelector((e,t)=>{if(!fe.select(e)||!he.select(e))return!1;const s=I.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:M.select(e,t,Se)!==null}),Ge=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),je=o.createSelector(e=>x.select(e)?N.select(e).filter(t=>P(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),Ve=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["people","agents"]),Ye=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),$e=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),Je=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),ze=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),Qe=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=ae.select(e,p)==="ready"?ne.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=J.select(e,p)==="ready"?z.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=L.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ce.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ie.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),Xe=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),me=o.createSelector(e=>w(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||U(t,s)).map(S)),ke=o.createSelector(e=>R(e).filter(t=>!!t.retiredAt).sort(U).map(S)),Ze=o.createSelector(e=>[...me.select(e),...ke.select(e)]),et=o.createSelector(e=>{const t=w(e).filter(_).sort(H)[0];return t?S(t):null}),tt=o.createSelector(e=>{const t=w(e).filter(s=>D(s)===0&&!s.lastMessageId&&_(s)).sort(H)[0];return t?S(t):null});export{_e as A,Re as B,oe as C,E as D,je as E,ke as F,tt as G,L as H,De as I,Xe as J,Ee as K,Le as L,We as M,Ne as N,Ke as O,O as P,$e as Q,Je as R,xe as S,Be as T,Ye as U,Pe as V,pe as W,re as a,p as b,ye as c,ee as d,Me as e,Te as f,ce as g,Ze as h,P as i,Qe as j,ne as k,ae as l,qe as m,Fe as n,ze as o,me as p,Ue as q,ve as r,Ce as s,He as t,et as u,le as v,Oe as w,x,Ge as y,Ve as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var nr=Object.defineProperty;var Re=l=>{throw TypeError(l)};var hr=(l,t,e)=>t in l?nr(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var u=(l,t,e)=>hr(l,typeof t!="symbol"?t+"":t,e),pe=(l,t,e)=>t.has(l)||Re("Cannot "+e);var r=(l,t,e)=>(pe(l,t,"read from private field"),e?e.call(l):t.get(l)),d=(l,t,e)=>t.has(l)?Re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(l):t.set(l,e),ut=(l,t,e,o)=>(pe(l,t,"write to private field"),o?o.call(l,e):t.set(l,e),e),ct=(l,t,e)=>(pe(l,t,"access private method"),e);import{t as ft,bo as p,bw as vt,b as mt,br as Ct,bp as de}from"./C0QTy0Sy.js";import{c9 as c,aD as i,bH as v,bV as V,bi as ar,ca as qe,cb as lr,bs as yt,a7 as E,ay as O,W as S,bn as bt,aA as g,bo as ue,a5 as X,bf as gt,bA as $,aB as se,bS as dr}from"./3SdAC2_C.js";import{i as Z}from"./bhKPSdq4.js";import{H as ur}from"./CbqxWBi7.js";import{au as cr,aI as pr,h as Ne,an as lt,D as ce,i as gr,d as q,a as tt,l as ie,a6 as ge,ac as ne,_ as we,J as Ce,Z as Ie,E as Pe,aR as Ge,aW as Ye,aC as ze,ap as Je,aq as Se,aF as _e,ar as Qe,a$ as at,aN as fr,aU as vr,aH as mr,aG as yr,at as Ve,am as Ze,a2 as br,av as k,ay as Nr,m as je,b as wr,c as Cr,a4 as Ir,C as Pr,g as Sr,A as _r,M as xr,F as kr,r as Hr,s as Tr,t as Ar,u as Mr,v as Or,w as Er,x as Rr,y as Vr,o as Kr,p as Fr,q as Dr,B as Br,az as ot,aS as R,a0 as Xe,$ as $e,aQ as rt,aV as Lr}from"./FzlZUztb.js";import{t as K}from"./CrD0jtXE.js";import{b as et}from"./7UPrdiE9.js";var It,ae;class Ur{constructor(t,e){d(this,It,()=>{});d(this,ae,c(()=>r(this,It).call(this)));let o;e!==void 0&&(o=e),ut(this,It,()=>{try{return o}finally{o=t()}})}get current(){return i(r(this,ae))}}It=new WeakMap,ae=new WeakMap;var Q,nt,j;class Wr{constructor(t){d(this,Q);d(this,nt,c(()=>r(this,Q).candidateValues()));d(this,j);ut(this,Q,t),ut(this,j,cr("",{afterMs:1e3,getWindow:r(this,Q).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!r(this,Q).enabled()||!i(r(this,nt)).length)return;r(this,j).current=r(this,j).current+t;const e=r(this,Q).getCurrentItem(),o=i(r(this,nt)).find(b=>b===e)??"",n=i(r(this,nt)).map(b=>b??""),a=pr(n,r(this,j).current,o),h=i(r(this,nt)).find(b=>b===a);return h&&r(this,Q).onMatch(h),h}resetTypeahead(){r(this,j).current=""}}Q=new WeakMap,nt=new WeakMap,j=new WeakMap;const Ke=[wr,je,Cr,Ir,Pr,Sr,_r,xr,ie,kr,Hr,Tr,Ar,Mr,Or,Er,Rr,Vr,Kr,Fr,Dr],qr=[tt,we,Ce],Gr=[q,Ie,Pe],tr=[...qr,...Gr],Yr=Nr({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),dt=new Ne("Select.Root | Combobox.Root"),er=new Ne("Select.Group | Combobox.Group"),rr=new Ne("Select.Content | Combobox.Content");var Pt,St,_t,xt,kt,Ht,Tt,At,Mt,Ot,Et,Rt;class or{constructor(t){u(this,"opts");d(this,Pt,V(!1));d(this,St,V(null));d(this,_t,V(null));u(this,"contentPresence");d(this,xt,V(null));d(this,kt,V(null));d(this,Ht,V(null));d(this,Tt,V(""));d(this,At,V(null));d(this,Mt,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));d(this,Ot,c(()=>{if(this.highlightedNode)return this.highlightedNode.id}));d(this,Et,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));d(this,Rt,V(!1));u(this,"isUsingKeyboard",!1);u(this,"isCombobox",!1);u(this,"domContext",new ce(()=>null));u(this,"getBitsAttr",t=>Yr.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new br({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),lr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return i(r(this,Pt))}set touchedInput(t){v(r(this,Pt),t,!0)}get inputNode(){return i(r(this,St))}set inputNode(t){v(r(this,St),t,!0)}get contentNode(){return i(r(this,_t))}set contentNode(t){v(r(this,_t),t,!0)}get viewportNode(){return i(r(this,xt))}set viewportNode(t){v(r(this,xt),t,!0)}get triggerNode(){return i(r(this,kt))}set triggerNode(t){v(r(this,kt),t,!0)}get valueNode(){return i(r(this,Ht))}set valueNode(t){v(r(this,Ht),t,!0)}get valueId(){return i(r(this,Tt))}set valueId(t){v(r(this,Tt),t,!0)}get highlightedNode(){return i(r(this,At))}set highlightedNode(t){v(r(this,At),t,!0)}get highlightedValue(){return i(r(this,Mt))}set highlightedValue(t){v(r(this,Mt),t)}get highlightedId(){return i(r(this,Ot))}set highlightedId(t){v(r(this,Ot),t)}get highlightedLabel(){return i(r(this,Et))}set highlightedLabel(t){v(r(this,Et),t)}get contentIsPositioned(){return i(r(this,Rt))}set contentIsPositioned(t){v(r(this,Rt),t,!0)}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const a=n.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const e=this.opts.items.current.find(n=>n.value===t)?.label;if(e!==void 0)return e;const o=this.getNodeByValue(t);if(o){const n=o.getAttribute("data-label");return n!==null&&n!==""?n:o.textContent?.trim()??t}return t}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Pt=new WeakMap,St=new WeakMap,_t=new WeakMap,xt=new WeakMap,kt=new WeakMap,Ht=new WeakMap,Tt=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,Et=new WeakMap,Rt=new WeakMap;var Vt,Kt,Ft,Dt;class zr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!1);d(this,Vt,c(()=>this.opts.value.current!==""));d(this,Kt,c(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":""));d(this,Ft,c(()=>this.opts.items.current.length?this.opts.items.current.filter(o=>!o.disabled).map(o=>o.label):[]));d(this,Dt,c(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Vt))}set hasValue(e){v(r(this,Vt),e)}get currentLabel(){return i(r(this,Kt))}set currentLabel(e){v(r(this,Kt),e)}get candidateLabels(){return i(r(this,Ft))}set candidateLabels(e){v(r(this,Ft),e)}get dataTypeaheadEnabled(){return i(r(this,Dt))}set dataTypeaheadEnabled(e){v(r(this,Dt),e)}includesItem(e){return this.opts.value.current===e}toggleItem(e,o=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=o)}setInitialHighlightedNode(){Ze(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Vt=new WeakMap,Kt=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;var Bt;class Jr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!0);d(this,Bt,c(()=>this.opts.value.current.length>0));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Bt))}set hasValue(e){v(r(this,Bt),e)}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,o=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=o}setInitialHighlightedNode(){Ze(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Bt=new WeakMap;class vo{static create(t){const{type:e,...o}=t,n=e==="single"?new zr(o):new Jr(o);return dt.set(n)}}var Lt;const xe=class xe{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Lt,c(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":Qe(this.root.opts.open.current),"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.inputNode=o),this.root.domContext=new ce(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),at([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,n],[a])=>{n&&(Array.isArray(o)&&Array.isArray(a)?o.length===0&&a.length!==0&&(this.root.opts.inputValue.current=""):o===""&&a!==""&&(this.root.opts.inputValue.current=""))})}static create(t){return new xe(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==je){if((t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(Ke.includes(t.key)||t.key===ne||t.key===Br&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===tt){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===q){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===ne){this.root.handleClose();return}if(t.key===ie&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,n=o?e.indexOf(o):-1,a=this.root.opts.loop.current;let h;if(t.key===tt?h=Ge(e,n,a):t.key===q?h=Ye(e,n,a):t.key===Ie?h=ze(e,n,10,a):t.key===we?h=Je(e,n,10,a):t.key===Ce?h=e[0]:t.key===Pe&&(h=e[e.length-1]),!h)return;this.root.setHighlightedNode(h);return}Ke.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return i(r(this,Lt))}set props(t){v(r(this,Lt),t)}};Lt=new WeakMap;let Fe=xe;var ht,pt,G,sr,fe,ve,Ut;const ke=class ke{constructor(t,e){d(this,G);u(this,"opts");u(this,"root");u(this,"attachment");d(this,ht);d(this,pt);d(this,Ut,c(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qe(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ce(t.ref),ut(this,ht,new gr({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),ut(this,pt,new Wr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(a=>a.label===o);n&&(this.root.opts.value.current=n.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return new ke(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===ie||t.key===ge||t.key===tt||t.key===q)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){r(this,pt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const h=this.root.getCandidateNodes();if(!h.length)return;if(t.key===tt){const b=h[0];this.root.setHighlightedNode(b)}else if(t.key===q){const b=h[h.length-1];this.root.setHighlightedNode(b)}return}if(t.key===ne){this.root.handleClose();return}if((t.key===ie||t.key===ge&&r(this,ht).search==="")&&!t.isComposing&&(t.preventDefault(),ct(this,G,ve).call(this)))return;if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const h=this.root.getCandidateNodes(),b=this.root.highlightedNode,C=b?h.indexOf(b):-1,f=this.root.opts.loop.current;let y;if(t.key===tt?y=Ge(h,C,f):t.key===q?y=Ye(h,C,f):t.key===Ie?y=ze(h,C,10,f):t.key===we?y=Je(h,C,10,f):t.key===Ce?y=h[0]:t.key===Pe&&(y=h[h.length-1]),!y)return;this.root.setHighlightedNode(y);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,n=t.key===ge,a=this.root.getCandidateNodes();if(t.key!==ne){if(!e&&(o||n)){!r(this,ht).handleTypeaheadSearch(t.key,a)&&n&&(t.preventDefault(),ct(this,G,ve).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose()))}get props(){return i(r(this,Ut))}set props(t){v(r(this,Ut),t)}};ht=new WeakMap,pt=new WeakMap,G=new WeakSet,sr=function(){this.root.opts.open.current=!0,r(this,pt).resetTypeahead(),r(this,ht).resetTypeahead()},fe=function(t){ct(this,G,sr).call(this)},ve=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},Ut=new WeakMap;let De=ke;var Wt,le,qt,Gt;const He=class He{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Wt,V(!1));u(this,"domContext");d(this,le,c(()=>mr(this.root.isCombobox?"combobox":"select")));u(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onOpenAutoFocus",t=>{t.preventDefault()});u(this,"onCloseAutoFocus",t=>{t.preventDefault()});d(this,qt,c(()=>({open:this.root.opts.open.current})));d(this,Gt,c(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":_e(this.root.opts.open.current),...yr(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(r(this,le))},onpointermove:this.onpointermove,...this.attachment})));u(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.contentNode=o),this.domContext=new ce(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),vr(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),at(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),at([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return rr.set(new He(t,dt.get()))}get isPositioned(){return i(r(this,Wt))}set isPositioned(t){v(r(this,Wt),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return i(r(this,qt))}set snippetProps(t){v(r(this,qt),t)}get props(){return i(r(this,Gt))}set props(t){v(r(this,Gt),t)}};Wt=new WeakMap,le=new WeakMap,qt=new WeakMap,Gt=new WeakMap;let he=He;var Yt,zt,Jt,Qt,Zt;const Te=class Te{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Yt,c(()=>this.root.includesItem(this.opts.value.current)));d(this,zt,c(()=>this.root.highlightedValue===this.opts.value.current));u(this,"prevHighlighted",new Ur(()=>this.isHighlighted));d(this,Jt,V(!1));d(this,Qt,c(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));d(this,Zt,c(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Se(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref),at([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),at(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(t){return new Te(t,dt.get())}get isSelected(){return i(r(this,Yt))}set isSelected(t){v(r(this,Yt),t)}get isHighlighted(){return i(r(this,zt))}set isHighlighted(t){v(r(this,zt),t)}get mounted(){return i(r(this,Jt))}set mounted(t){v(r(this,Jt),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return i(r(this,Qt))}set snippetProps(t){v(r(this,Qt),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!fr){ar(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return i(r(this,Zt))}set props(t){v(r(this,Zt),t)}};Yt=new WeakMap,zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap;let me=Te;var jt,Xt;const Ae=class Ae{constructor(t,e){u(this,"opts");u(this,"root");d(this,jt,V(null));u(this,"attachment");d(this,Xt,c(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref)}static create(t){return er.set(new Ae(t,dt.get()))}get labelNode(){return i(r(this,jt))}set labelNode(t){v(r(this,jt),t,!0)}get props(){return i(r(this,Xt))}set props(t){v(r(this,Xt),t)}};jt=new WeakMap,Xt=new WeakMap;let Be=Ae;var $t;const Me=class Me{constructor(t,e){u(this,"opts");u(this,"group");u(this,"attachment");d(this,$t,c(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=t,this.group=e,this.attachment=lt(t.ref,o=>this.group.labelNode=o)}static create(t){return new Me(t,er.get())}get props(){return i(r(this,$t))}set props(t){v(r(this,$t),t)}};$t=new WeakMap;let Le=Me;var te,ee;const Oe=class Oe{constructor(t,e){u(this,"opts");u(this,"root");d(this,te,c(()=>this.root.opts.name.current!==""));d(this,ee,c(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}static create(t){return new Oe(t,dt.get())}get shouldRender(){return i(r(this,te))}set shouldRender(t){v(r(this,te),t)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return i(r(this,ee))}set props(t){v(r(this,ee),t)}};te=new WeakMap,ee=new WeakMap;let ye=Oe;var re,oe;const Ee=class Ee{constructor(t,e){u(this,"opts");u(this,"content");u(this,"root");u(this,"attachment");d(this,re,V(0));d(this,oe,c(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=e,this.root=e.root,this.attachment=lt(t.ref,o=>{this.root.viewportNode=o})}static create(t){return new Ee(t,rr.get())}get prevScrollTop(){return i(r(this,re))}set prevScrollTop(t){v(r(this,re),t,!0)}get props(){return i(r(this,oe))}set props(t){v(r(this,oe),t)}};re=new WeakMap,oe=new WeakMap;let be=Ee;function Qr(l,t){if(new.target)return ft({component:Qr,...l});yt(t,!0);let e=p(t,"value",15),o=p(t,"autocomplete",7);const n=ye.create({value:k(()=>e())});var a={get value(){return e()},set value(f){e(f),g()},get autocomplete(){return o()},set autocomplete(f){o(f),g()},$set:vt,$on:(f,y)=>mt(t,f,y)},h=E(),b=O(h);{var C=f=>{ur(f,Ct(()=>n.props,{get autocomplete(){return o()},get value(){return e()},set value(y){e(y)}}))};Z(b,f=>{n.shouldRender&&f(C)})}return S(l,h),bt(a)}var Zr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),Ue=se("<div><div><!></div></div>");function jr(l,t){const e=ue();if(new.target)return ft({component:jr,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"side",7,"bottom"),b=p(t,"onInteractOutside",7,R),C=p(t,"onEscapeKeydown",7,R),f=p(t,"children",7),y=p(t,"child",7),M=p(t,"preventScroll",7,!1),W=p(t,"style",7),w=de(t,Zr);const I=he.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),onInteractOutside:k(()=>b()),onEscapeKeydown:k(()=>C())}),N=c(()=>rt(w,I.props));var H={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get forceMount(){return a()},set forceMount(s=!1){a(s),g()},get side(){return h()},set side(s="bottom"){h(s),g()},get onInteractOutside(){return b()},set onInteractOutside(s=R){b(s),g()},get onEscapeKeydown(){return C()},set onEscapeKeydown(s=R){C(s),g()},get children(){return f()},set children(s){f(s),g()},get child(){return y()},set child(s){y(s),g()},get preventScroll(){return M()},set preventScroll(s=!1){M(s),g()},get style(){return W()},set style(s){W(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},F=E(),Nt=O(F);{var wt=s=>{Xe(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get enabled(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!0,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))},m=s=>{$e(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get open(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!1,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))};Z(Nt,s=>{a()?s(wt):a()||s(m,1)})}return S(l,F),bt(H)}var Xr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),We=se("<div><!></div>");function $r(l,t){const e=ue();if(new.target)return ft({component:$r,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"onInteractOutside",7,R),b=p(t,"onEscapeKeydown",7,R),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"preventScroll",7,!1),M=p(t,"style",7),W=de(t,Xr);const w=he.create({id:k(()=>o()),ref:k(()=>n(),m=>n(m)),onInteractOutside:k(()=>h()),onEscapeKeydown:k(()=>b())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(m=ot(e)){o(m),g()},get ref(){return n()},set ref(m=null){n(m),g()},get forceMount(){return a()},set forceMount(m=!1){a(m),g()},get onInteractOutside(){return h()},set onInteractOutside(m=R){h(m),g()},get onEscapeKeydown(){return b()},set onEscapeKeydown(m=R){b(m),g()},get children(){return C()},set children(m){C(m),g()},get child(){return f()},set child(m){f(m),g()},get preventScroll(){return y()},set preventScroll(m=!1){y(m),g()},get style(){return M()},set style(m){M(m),g()},$set:vt,$on:(m,s)=>mt(t,m,s)},H=E(),F=O(H);{var Nt=m=>{Xe(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get enabled(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!0,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))},wt=m=>{$e(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get open(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!1,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))};Z(F,m=>{a()?m(Nt):a()||m(wt,1)})}return S(l,H),bt(N)}function ir(l,t){if(new.target)return ft({component:ir,...l});yt(t,!0);let e=p(t,"mounted",15,!1),o=p(t,"onMountedChange",7,R);Lr(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)}));var n={get mounted(){return e()},set mounted(a=!1){e(a),g()},get onMountedChange(){return o()},set onMountedChange(a=R){o(a),g()},$set:vt,$on:(a,h)=>mt(t,a,h)};return bt(n)}var to=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),eo=se("<div><!></div>"),ro=se("<!> <!>",1);function oo(l,t){const e=ue();if(new.target)return ft({component:oo,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"value",7),h=p(t,"label",23,a),b=p(t,"disabled",7,!1),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"onHighlight",7,R),M=p(t,"onUnhighlight",7,R),W=de(t,to);const w=me.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),value:k(()=>a()),disabled:k(()=>b()),label:k(()=>h()),onHighlight:k(()=>y()),onUnhighlight:k(()=>M())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get value(){return a()},set value(s){a(s),g()},get label(){return h()},set label(s=a){h(s),g()},get disabled(){return b()},set disabled(s=!1){b(s),g()},get children(){return C()},set children(s){C(s),g()},get child(){return f()},set child(s){f(s),g()},get onHighlight(){return y()},set onHighlight(s=R){y(s),g()},get onUnhighlight(){return M()},set onUnhighlight(s=R){M(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},H=ro(),F=O(H);{var Nt=s=>{var T=E(),D=O(T);{let B=c(()=>({props:i(I),...w.snippetProps}));K(D,f,()=>i(B))}S(s,T)},wt=s=>{var T=eo();et(T,()=>({...i(I)}));var D=X(T);K(D,()=>C()??gt,()=>w.snippetProps),$(T),S(s,T)};Z(F,s=>{f()?s(Nt):s(wt,-1)})}var m=dr(F,2);return ir(m,{get mounted(){return w.mounted},set mounted(s){w.mounted=s}}),S(l,H),bt(N)}var so=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),io=se("<div><!></div>");function no(l,t){const e=ue();if(new.target)return ft({component:no,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"children",7),h=p(t,"child",7),b=de(t,so);const C=be.create({id:k(()=>o()),ref:k(()=>n(),N=>n(N))}),f=c(()=>rt(b,C.props));var y={get id(){return o()},set id(N=ot(e)){o(N),g()},get ref(){return n()},set ref(N=null){n(N),g()},get children(){return a()},set children(N){a(N),g()},get child(){return h()},set child(N){h(N),g()},$set:vt,$on:(N,H)=>mt(t,N,H)},M=E(),W=O(M);{var w=N=>{var H=E(),F=O(H);K(F,h,()=>({props:i(f)})),S(N,H)},I=N=>{var H=io();et(H,()=>({...i(f)}));var F=X(H);K(F,()=>a()??gt),$(H),S(N,H)};Z(W,N=>{h()?N(w):N(I,-1)})}return S(l,M),bt(y)}export{Le as S,Be as a,Fe as b,vo as c,De as d,jr as e,$r as f,Qr as g,oo as h,no as i};
|
|
1
|
+
var nr=Object.defineProperty;var Re=l=>{throw TypeError(l)};var hr=(l,t,e)=>t in l?nr(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var u=(l,t,e)=>hr(l,typeof t!="symbol"?t+"":t,e),pe=(l,t,e)=>t.has(l)||Re("Cannot "+e);var r=(l,t,e)=>(pe(l,t,"read from private field"),e?e.call(l):t.get(l)),d=(l,t,e)=>t.has(l)?Re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(l):t.set(l,e),ut=(l,t,e,o)=>(pe(l,t,"write to private field"),o?o.call(l,e):t.set(l,e),e),ct=(l,t,e)=>(pe(l,t,"access private method"),e);import{t as ft,bo as p,bw as vt,b as mt,br as Ct,bp as de}from"./C0QTy0Sy.js";import{c9 as c,aD as i,bH as v,bV as V,bi as ar,ca as qe,cb as lr,bs as yt,a7 as E,ay as O,W as S,bn as bt,aA as g,bo as ue,a5 as X,bf as gt,bA as $,aB as se,bS as dr}from"./3SdAC2_C.js";import{i as Z}from"./bhKPSdq4.js";import{H as ur}from"./T-y84UQ-.js";import{au as cr,aI as pr,h as Ne,an as lt,D as ce,i as gr,d as q,a as tt,l as ie,a6 as ge,ac as ne,_ as we,J as Ce,Z as Ie,E as Pe,aR as Ge,aW as Ye,aC as ze,ap as Je,aq as Se,aF as _e,ar as Qe,a$ as at,aN as fr,aU as vr,aH as mr,aG as yr,at as Ve,am as Ze,a2 as br,av as k,ay as Nr,m as je,b as wr,c as Cr,a4 as Ir,C as Pr,g as Sr,A as _r,M as xr,F as kr,r as Hr,s as Tr,t as Ar,u as Mr,v as Or,w as Er,x as Rr,y as Vr,o as Kr,p as Fr,q as Dr,B as Br,az as ot,aS as R,a0 as Xe,$ as $e,aQ as rt,aV as Lr}from"./CttA-M7l.js";import{t as K}from"./CrD0jtXE.js";import{b as et}from"./7UPrdiE9.js";var It,ae;class Ur{constructor(t,e){d(this,It,()=>{});d(this,ae,c(()=>r(this,It).call(this)));let o;e!==void 0&&(o=e),ut(this,It,()=>{try{return o}finally{o=t()}})}get current(){return i(r(this,ae))}}It=new WeakMap,ae=new WeakMap;var Q,nt,j;class Wr{constructor(t){d(this,Q);d(this,nt,c(()=>r(this,Q).candidateValues()));d(this,j);ut(this,Q,t),ut(this,j,cr("",{afterMs:1e3,getWindow:r(this,Q).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!r(this,Q).enabled()||!i(r(this,nt)).length)return;r(this,j).current=r(this,j).current+t;const e=r(this,Q).getCurrentItem(),o=i(r(this,nt)).find(b=>b===e)??"",n=i(r(this,nt)).map(b=>b??""),a=pr(n,r(this,j).current,o),h=i(r(this,nt)).find(b=>b===a);return h&&r(this,Q).onMatch(h),h}resetTypeahead(){r(this,j).current=""}}Q=new WeakMap,nt=new WeakMap,j=new WeakMap;const Ke=[wr,je,Cr,Ir,Pr,Sr,_r,xr,ie,kr,Hr,Tr,Ar,Mr,Or,Er,Rr,Vr,Kr,Fr,Dr],qr=[tt,we,Ce],Gr=[q,Ie,Pe],tr=[...qr,...Gr],Yr=Nr({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),dt=new Ne("Select.Root | Combobox.Root"),er=new Ne("Select.Group | Combobox.Group"),rr=new Ne("Select.Content | Combobox.Content");var Pt,St,_t,xt,kt,Ht,Tt,At,Mt,Ot,Et,Rt;class or{constructor(t){u(this,"opts");d(this,Pt,V(!1));d(this,St,V(null));d(this,_t,V(null));u(this,"contentPresence");d(this,xt,V(null));d(this,kt,V(null));d(this,Ht,V(null));d(this,Tt,V(""));d(this,At,V(null));d(this,Mt,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));d(this,Ot,c(()=>{if(this.highlightedNode)return this.highlightedNode.id}));d(this,Et,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));d(this,Rt,V(!1));u(this,"isUsingKeyboard",!1);u(this,"isCombobox",!1);u(this,"domContext",new ce(()=>null));u(this,"getBitsAttr",t=>Yr.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new br({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),lr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return i(r(this,Pt))}set touchedInput(t){v(r(this,Pt),t,!0)}get inputNode(){return i(r(this,St))}set inputNode(t){v(r(this,St),t,!0)}get contentNode(){return i(r(this,_t))}set contentNode(t){v(r(this,_t),t,!0)}get viewportNode(){return i(r(this,xt))}set viewportNode(t){v(r(this,xt),t,!0)}get triggerNode(){return i(r(this,kt))}set triggerNode(t){v(r(this,kt),t,!0)}get valueNode(){return i(r(this,Ht))}set valueNode(t){v(r(this,Ht),t,!0)}get valueId(){return i(r(this,Tt))}set valueId(t){v(r(this,Tt),t,!0)}get highlightedNode(){return i(r(this,At))}set highlightedNode(t){v(r(this,At),t,!0)}get highlightedValue(){return i(r(this,Mt))}set highlightedValue(t){v(r(this,Mt),t)}get highlightedId(){return i(r(this,Ot))}set highlightedId(t){v(r(this,Ot),t)}get highlightedLabel(){return i(r(this,Et))}set highlightedLabel(t){v(r(this,Et),t)}get contentIsPositioned(){return i(r(this,Rt))}set contentIsPositioned(t){v(r(this,Rt),t,!0)}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const a=n.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const e=this.opts.items.current.find(n=>n.value===t)?.label;if(e!==void 0)return e;const o=this.getNodeByValue(t);if(o){const n=o.getAttribute("data-label");return n!==null&&n!==""?n:o.textContent?.trim()??t}return t}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Pt=new WeakMap,St=new WeakMap,_t=new WeakMap,xt=new WeakMap,kt=new WeakMap,Ht=new WeakMap,Tt=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,Et=new WeakMap,Rt=new WeakMap;var Vt,Kt,Ft,Dt;class zr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!1);d(this,Vt,c(()=>this.opts.value.current!==""));d(this,Kt,c(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":""));d(this,Ft,c(()=>this.opts.items.current.length?this.opts.items.current.filter(o=>!o.disabled).map(o=>o.label):[]));d(this,Dt,c(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Vt))}set hasValue(e){v(r(this,Vt),e)}get currentLabel(){return i(r(this,Kt))}set currentLabel(e){v(r(this,Kt),e)}get candidateLabels(){return i(r(this,Ft))}set candidateLabels(e){v(r(this,Ft),e)}get dataTypeaheadEnabled(){return i(r(this,Dt))}set dataTypeaheadEnabled(e){v(r(this,Dt),e)}includesItem(e){return this.opts.value.current===e}toggleItem(e,o=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=o)}setInitialHighlightedNode(){Ze(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Vt=new WeakMap,Kt=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;var Bt;class Jr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!0);d(this,Bt,c(()=>this.opts.value.current.length>0));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Bt))}set hasValue(e){v(r(this,Bt),e)}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,o=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=o}setInitialHighlightedNode(){Ze(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Bt=new WeakMap;class vo{static create(t){const{type:e,...o}=t,n=e==="single"?new zr(o):new Jr(o);return dt.set(n)}}var Lt;const xe=class xe{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Lt,c(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":Qe(this.root.opts.open.current),"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.inputNode=o),this.root.domContext=new ce(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),at([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,n],[a])=>{n&&(Array.isArray(o)&&Array.isArray(a)?o.length===0&&a.length!==0&&(this.root.opts.inputValue.current=""):o===""&&a!==""&&(this.root.opts.inputValue.current=""))})}static create(t){return new xe(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==je){if((t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(Ke.includes(t.key)||t.key===ne||t.key===Br&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===tt){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===q){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===ne){this.root.handleClose();return}if(t.key===ie&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,n=o?e.indexOf(o):-1,a=this.root.opts.loop.current;let h;if(t.key===tt?h=Ge(e,n,a):t.key===q?h=Ye(e,n,a):t.key===Ie?h=ze(e,n,10,a):t.key===we?h=Je(e,n,10,a):t.key===Ce?h=e[0]:t.key===Pe&&(h=e[e.length-1]),!h)return;this.root.setHighlightedNode(h);return}Ke.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return i(r(this,Lt))}set props(t){v(r(this,Lt),t)}};Lt=new WeakMap;let Fe=xe;var ht,pt,G,sr,fe,ve,Ut;const ke=class ke{constructor(t,e){d(this,G);u(this,"opts");u(this,"root");u(this,"attachment");d(this,ht);d(this,pt);d(this,Ut,c(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qe(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ce(t.ref),ut(this,ht,new gr({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),ut(this,pt,new Wr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(a=>a.label===o);n&&(this.root.opts.value.current=n.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return new ke(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===ie||t.key===ge||t.key===tt||t.key===q)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){r(this,pt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const h=this.root.getCandidateNodes();if(!h.length)return;if(t.key===tt){const b=h[0];this.root.setHighlightedNode(b)}else if(t.key===q){const b=h[h.length-1];this.root.setHighlightedNode(b)}return}if(t.key===ne){this.root.handleClose();return}if((t.key===ie||t.key===ge&&r(this,ht).search==="")&&!t.isComposing&&(t.preventDefault(),ct(this,G,ve).call(this)))return;if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const h=this.root.getCandidateNodes(),b=this.root.highlightedNode,C=b?h.indexOf(b):-1,f=this.root.opts.loop.current;let y;if(t.key===tt?y=Ge(h,C,f):t.key===q?y=Ye(h,C,f):t.key===Ie?y=ze(h,C,10,f):t.key===we?y=Je(h,C,10,f):t.key===Ce?y=h[0]:t.key===Pe&&(y=h[h.length-1]),!y)return;this.root.setHighlightedNode(y);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,n=t.key===ge,a=this.root.getCandidateNodes();if(t.key!==ne){if(!e&&(o||n)){!r(this,ht).handleTypeaheadSearch(t.key,a)&&n&&(t.preventDefault(),ct(this,G,ve).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose()))}get props(){return i(r(this,Ut))}set props(t){v(r(this,Ut),t)}};ht=new WeakMap,pt=new WeakMap,G=new WeakSet,sr=function(){this.root.opts.open.current=!0,r(this,pt).resetTypeahead(),r(this,ht).resetTypeahead()},fe=function(t){ct(this,G,sr).call(this)},ve=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},Ut=new WeakMap;let De=ke;var Wt,le,qt,Gt;const He=class He{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Wt,V(!1));u(this,"domContext");d(this,le,c(()=>mr(this.root.isCombobox?"combobox":"select")));u(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onOpenAutoFocus",t=>{t.preventDefault()});u(this,"onCloseAutoFocus",t=>{t.preventDefault()});d(this,qt,c(()=>({open:this.root.opts.open.current})));d(this,Gt,c(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":_e(this.root.opts.open.current),...yr(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(r(this,le))},onpointermove:this.onpointermove,...this.attachment})));u(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.contentNode=o),this.domContext=new ce(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),vr(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),at(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),at([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return rr.set(new He(t,dt.get()))}get isPositioned(){return i(r(this,Wt))}set isPositioned(t){v(r(this,Wt),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return i(r(this,qt))}set snippetProps(t){v(r(this,qt),t)}get props(){return i(r(this,Gt))}set props(t){v(r(this,Gt),t)}};Wt=new WeakMap,le=new WeakMap,qt=new WeakMap,Gt=new WeakMap;let he=He;var Yt,zt,Jt,Qt,Zt;const Te=class Te{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Yt,c(()=>this.root.includesItem(this.opts.value.current)));d(this,zt,c(()=>this.root.highlightedValue===this.opts.value.current));u(this,"prevHighlighted",new Ur(()=>this.isHighlighted));d(this,Jt,V(!1));d(this,Qt,c(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));d(this,Zt,c(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Se(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref),at([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),at(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(t){return new Te(t,dt.get())}get isSelected(){return i(r(this,Yt))}set isSelected(t){v(r(this,Yt),t)}get isHighlighted(){return i(r(this,zt))}set isHighlighted(t){v(r(this,zt),t)}get mounted(){return i(r(this,Jt))}set mounted(t){v(r(this,Jt),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return i(r(this,Qt))}set snippetProps(t){v(r(this,Qt),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!fr){ar(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return i(r(this,Zt))}set props(t){v(r(this,Zt),t)}};Yt=new WeakMap,zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap;let me=Te;var jt,Xt;const Ae=class Ae{constructor(t,e){u(this,"opts");u(this,"root");d(this,jt,V(null));u(this,"attachment");d(this,Xt,c(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref)}static create(t){return er.set(new Ae(t,dt.get()))}get labelNode(){return i(r(this,jt))}set labelNode(t){v(r(this,jt),t,!0)}get props(){return i(r(this,Xt))}set props(t){v(r(this,Xt),t)}};jt=new WeakMap,Xt=new WeakMap;let Be=Ae;var $t;const Me=class Me{constructor(t,e){u(this,"opts");u(this,"group");u(this,"attachment");d(this,$t,c(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=t,this.group=e,this.attachment=lt(t.ref,o=>this.group.labelNode=o)}static create(t){return new Me(t,er.get())}get props(){return i(r(this,$t))}set props(t){v(r(this,$t),t)}};$t=new WeakMap;let Le=Me;var te,ee;const Oe=class Oe{constructor(t,e){u(this,"opts");u(this,"root");d(this,te,c(()=>this.root.opts.name.current!==""));d(this,ee,c(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}static create(t){return new Oe(t,dt.get())}get shouldRender(){return i(r(this,te))}set shouldRender(t){v(r(this,te),t)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return i(r(this,ee))}set props(t){v(r(this,ee),t)}};te=new WeakMap,ee=new WeakMap;let ye=Oe;var re,oe;const Ee=class Ee{constructor(t,e){u(this,"opts");u(this,"content");u(this,"root");u(this,"attachment");d(this,re,V(0));d(this,oe,c(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=e,this.root=e.root,this.attachment=lt(t.ref,o=>{this.root.viewportNode=o})}static create(t){return new Ee(t,rr.get())}get prevScrollTop(){return i(r(this,re))}set prevScrollTop(t){v(r(this,re),t,!0)}get props(){return i(r(this,oe))}set props(t){v(r(this,oe),t)}};re=new WeakMap,oe=new WeakMap;let be=Ee;function Qr(l,t){if(new.target)return ft({component:Qr,...l});yt(t,!0);let e=p(t,"value",15),o=p(t,"autocomplete",7);const n=ye.create({value:k(()=>e())});var a={get value(){return e()},set value(f){e(f),g()},get autocomplete(){return o()},set autocomplete(f){o(f),g()},$set:vt,$on:(f,y)=>mt(t,f,y)},h=E(),b=O(h);{var C=f=>{ur(f,Ct(()=>n.props,{get autocomplete(){return o()},get value(){return e()},set value(y){e(y)}}))};Z(b,f=>{n.shouldRender&&f(C)})}return S(l,h),bt(a)}var Zr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),Ue=se("<div><div><!></div></div>");function jr(l,t){const e=ue();if(new.target)return ft({component:jr,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"side",7,"bottom"),b=p(t,"onInteractOutside",7,R),C=p(t,"onEscapeKeydown",7,R),f=p(t,"children",7),y=p(t,"child",7),M=p(t,"preventScroll",7,!1),W=p(t,"style",7),w=de(t,Zr);const I=he.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),onInteractOutside:k(()=>b()),onEscapeKeydown:k(()=>C())}),N=c(()=>rt(w,I.props));var H={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get forceMount(){return a()},set forceMount(s=!1){a(s),g()},get side(){return h()},set side(s="bottom"){h(s),g()},get onInteractOutside(){return b()},set onInteractOutside(s=R){b(s),g()},get onEscapeKeydown(){return C()},set onEscapeKeydown(s=R){C(s),g()},get children(){return f()},set children(s){f(s),g()},get child(){return y()},set child(s){y(s),g()},get preventScroll(){return M()},set preventScroll(s=!1){M(s),g()},get style(){return W()},set style(s){W(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},F=E(),Nt=O(F);{var wt=s=>{Xe(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get enabled(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!0,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))},m=s=>{$e(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get open(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!1,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))};Z(Nt,s=>{a()?s(wt):a()||s(m,1)})}return S(l,F),bt(H)}var Xr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),We=se("<div><!></div>");function $r(l,t){const e=ue();if(new.target)return ft({component:$r,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"onInteractOutside",7,R),b=p(t,"onEscapeKeydown",7,R),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"preventScroll",7,!1),M=p(t,"style",7),W=de(t,Xr);const w=he.create({id:k(()=>o()),ref:k(()=>n(),m=>n(m)),onInteractOutside:k(()=>h()),onEscapeKeydown:k(()=>b())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(m=ot(e)){o(m),g()},get ref(){return n()},set ref(m=null){n(m),g()},get forceMount(){return a()},set forceMount(m=!1){a(m),g()},get onInteractOutside(){return h()},set onInteractOutside(m=R){h(m),g()},get onEscapeKeydown(){return b()},set onEscapeKeydown(m=R){b(m),g()},get children(){return C()},set children(m){C(m),g()},get child(){return f()},set child(m){f(m),g()},get preventScroll(){return y()},set preventScroll(m=!1){y(m),g()},get style(){return M()},set style(m){M(m),g()},$set:vt,$on:(m,s)=>mt(t,m,s)},H=E(),F=O(H);{var Nt=m=>{Xe(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get enabled(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!0,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))},wt=m=>{$e(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get open(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!1,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))};Z(F,m=>{a()?m(Nt):a()||m(wt,1)})}return S(l,H),bt(N)}function ir(l,t){if(new.target)return ft({component:ir,...l});yt(t,!0);let e=p(t,"mounted",15,!1),o=p(t,"onMountedChange",7,R);Lr(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)}));var n={get mounted(){return e()},set mounted(a=!1){e(a),g()},get onMountedChange(){return o()},set onMountedChange(a=R){o(a),g()},$set:vt,$on:(a,h)=>mt(t,a,h)};return bt(n)}var to=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),eo=se("<div><!></div>"),ro=se("<!> <!>",1);function oo(l,t){const e=ue();if(new.target)return ft({component:oo,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"value",7),h=p(t,"label",23,a),b=p(t,"disabled",7,!1),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"onHighlight",7,R),M=p(t,"onUnhighlight",7,R),W=de(t,to);const w=me.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),value:k(()=>a()),disabled:k(()=>b()),label:k(()=>h()),onHighlight:k(()=>y()),onUnhighlight:k(()=>M())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get value(){return a()},set value(s){a(s),g()},get label(){return h()},set label(s=a){h(s),g()},get disabled(){return b()},set disabled(s=!1){b(s),g()},get children(){return C()},set children(s){C(s),g()},get child(){return f()},set child(s){f(s),g()},get onHighlight(){return y()},set onHighlight(s=R){y(s),g()},get onUnhighlight(){return M()},set onUnhighlight(s=R){M(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},H=ro(),F=O(H);{var Nt=s=>{var T=E(),D=O(T);{let B=c(()=>({props:i(I),...w.snippetProps}));K(D,f,()=>i(B))}S(s,T)},wt=s=>{var T=eo();et(T,()=>({...i(I)}));var D=X(T);K(D,()=>C()??gt,()=>w.snippetProps),$(T),S(s,T)};Z(F,s=>{f()?s(Nt):s(wt,-1)})}var m=dr(F,2);return ir(m,{get mounted(){return w.mounted},set mounted(s){w.mounted=s}}),S(l,H),bt(N)}var so=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),io=se("<div><!></div>");function no(l,t){const e=ue();if(new.target)return ft({component:no,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"children",7),h=p(t,"child",7),b=de(t,so);const C=be.create({id:k(()=>o()),ref:k(()=>n(),N=>n(N))}),f=c(()=>rt(b,C.props));var y={get id(){return o()},set id(N=ot(e)){o(N),g()},get ref(){return n()},set ref(N=null){n(N),g()},get children(){return a()},set children(N){a(N),g()},get child(){return h()},set child(N){h(N),g()},$set:vt,$on:(N,H)=>mt(t,N,H)},M=E(),W=O(M);{var w=N=>{var H=E(),F=O(H);K(F,h,()=>({props:i(f)})),S(N,H)},I=N=>{var H=io();et(H,()=>({...i(f)}));var F=X(H);K(F,()=>a()??gt),$(H),S(N,H)};Z(W,N=>{h()?N(w):N(I,-1)})}return S(l,M),bt(y)}export{Le as S,Be as a,Fe as b,vo as c,De as d,jr as e,$r as f,Qr as g,oo as h,no as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as A,bo as a,bw as T,bp as D,b as E}from"./C0QTy0Sy.js";import{aG as F,bs as G,c5 as J,aD as K,a5 as p,bS as M,bf as P,bA as x,W as S,bn as B,c9 as Q,aA as s,aB as y}from"./3SdAC2_C.js";import{i as U}from"./bhKPSdq4.js";import{t as w}from"./CrD0jtXE.js";import{b as H,e as _}from"./7UPrdiE9.js";import{b as I}from"./Dn334wJv.js";import{u as V,c as N,s as X,b as Y,a as Z}from"./D9tVylVS.js";import{C as $}from"./
|
|
1
|
+
import{t as A,bo as a,bw as T,bp as D,b as E}from"./C0QTy0Sy.js";import{aG as F,bs as G,c5 as J,aD as K,a5 as p,bS as M,bf as P,bA as x,W as S,bn as B,c9 as Q,aA as s,aB as y}from"./3SdAC2_C.js";import{i as U}from"./bhKPSdq4.js";import{t as w}from"./CrD0jtXE.js";import{b as H,e as _}from"./7UPrdiE9.js";import{b as I}from"./Dn334wJv.js";import{u as V,c as N,s as X,b as Y,a as Z}from"./D9tVylVS.js";import{C as $}from"./B9qXV8kb.js";const ee=Symbol("card-group"),te=()=>F(ee);var re=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),ae=y('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),se=y("<div><!> <!></div>");function ne(v,t){if(new.target)return A({component:ne,...v});G(t,!0);let i=a(t,"ref",15,null),o=a(t,"class",7),d=a(t,"inert",7,!1),l=a(t,"interactive",7,!1),m=a(t,"level",7),u=a(t,"border",7),n=a(t,"selected",7,!1),f=a(t,"media",7),r=a(t,"children",7),C=D(t,re);const c=te(),L=Q(()=>u()==="outlined"||u()===void 0&&(!c||c.border==="outlined"&&c.separated)),O=V(),h=N(J(()=>m()??O+1));X(h);const R=N(h+1);var W={get ref(){return i()},set ref(e=null){i(e),s()},get class(){return o()},set class(e){o(e),s()},get inert(){return d()},set inert(e=!1){d(e),s()},get interactive(){return l()},set interactive(e=!1){l(e),s()},get level(){return m()},set level(e){m(e),s()},get border(){return u()},set border(e){u(e),s()},get selected(){return n()},set selected(e=!1){n(e),s()},get media(){return f()},set media(e){f(e),s()},get children(){return r()},set children(e){r(e),s()},$set:T,$on:(e,g)=>E(t,e,g)},b=se();H(b,e=>({"data-slot":"card","data-selected":n()||void 0,"data-orientation":c?.orientation,"data-surface-level":h,"data-inert":d()||void 0,"data-interactive":l()||void 0,inert:d(),class:e,...C}),[()=>_("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",K(L)?c?"border border-border bg-transparent":Z(h):"bg-transparent",n()&&"bg-selected",c?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",c&&"relative",l()?_("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",Y(R)):"",o())]);var k=p(b);{var j=e=>{var g=ae(),z=p(g);w(z,f),x(g),S(e,g)};U(k,e=>{f()&&e(j)})}var q=M(k,2);return w(q,()=>r()??P),x(b),I(b,e=>i(e),()=>i()),S(v,b),B(W)}var ie=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),de=y("<div><!></div>");function le(v,t){if(new.target)return A({component:le,...v});G(t,!0);let i=a(t,"ref",15,null),o=a(t,"class",7),d=a(t,"flush",7,!1),l=a(t,"children",7),m=D(t,ie);var u={get ref(){return i()},set ref(r=null){i(r),s()},get class(){return o()},set class(r){o(r),s()},get flush(){return d()},set flush(r=!1){d(r),s()},get children(){return l()},set children(r){l(r),s()},$set:T,$on:(r,C)=>E(t,r,C)},n=de();H(n,r=>({"data-slot":"card-content","data-flush":d()||void 0,class:r,...m}),[()=>_("type-body min-w-0",d()?"p-0":_($,"py-4 first:pt-4"),o())]);var f=p(n);return w(f,()=>l()??P),x(n),I(n,r=>i(r),()=>i()),S(v,n),B(u)}export{ne as C,le as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bv as f}from"./3SdAC2_C.js";import{W as o}from"./DONrLvvt.js";import{bm as u}from"./C0QTy0Sy.js";import{m as b}from"./
|
|
1
|
+
import{bv as f}from"./3SdAC2_C.js";import{W as o}from"./DONrLvvt.js";import{bm as u}from"./C0QTy0Sy.js";import{m as b}from"./DlUZpQ7U.js";import"./7UPrdiE9.js";import"./CrD0jtXE.js";import"./C2jYl_tm.js";import"./ChTqQfQN.js";import"./DI_O2uCQ.js";import"./_LtUY0jS.js";function l(){return globalThis.electronAPI??null}function i(r){const e=r?.enabled;return typeof e=="boolean"?e:null}const k=f(!1,r=>{const e=l();if(!e)return;let t=!0,s=!1;const c=e.on(o.DOCK_LAB_CHANGED,a=>{if(!t)return;const n=i(a);n!==null&&(s=!0,r(n))});return e.invoke(o.GET_DOCK_LAB,{}).then(a=>{const n=i(a);t&&!s&&n!==null&&r(n)}).catch(()=>{}),()=>{t=!1,e.offById(o.DOCK_LAB_CHANGED,c)}});async function d(r){const e=l();if(!e)return!1;try{const t=await e.invoke(o.SET_DOCK_LAB,{enabled:r});if(i(t)===r)return!0}catch{}return b.error(u.settings_gitWorkspace_saveError()),!1}async function y(r){await d(r)}export{k as d,d as r,y as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./
|
|
1
|
+
import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./Cpw-AI-k.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|