@intent-hq/web 2.370.0 → 2.370.1
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/{CyWgrZMk.js → 1BRHaRmm.js} +5 -5
- package/web/app/immutable/chunks/{CbRNm5he.js → 2CvTs4Gl.js} +1 -1
- package/web/app/immutable/chunks/{CCrwZkau.js → 2IbSEmAW.js} +1 -1
- package/web/app/immutable/chunks/{BwtGEQS3.js → 2kcdsiKR.js} +1 -1
- package/web/app/immutable/chunks/{DrOwYgbZ.js → 3bNhkT-J.js} +1 -1
- package/web/app/immutable/chunks/{BEV9WkWU.js → 5kePy1TE.js} +1 -1
- package/web/app/immutable/chunks/{1pIqWRUk.js → 711s5WU0.js} +1 -1
- package/web/app/immutable/chunks/{CRY4aELR.js → 7aKXh--T.js} +4 -4
- package/web/app/immutable/chunks/{BSsEOl8-.js → 7i9XTDuo.js} +1 -1
- package/web/app/immutable/chunks/{DcUCHDGY.js → AsFm-iq9.js} +1 -1
- package/web/app/immutable/chunks/{ZIOU9Sxd.js → B1tKRs9e.js} +1 -1
- package/web/app/immutable/chunks/{C_E26DWe.js → B2_coen2.js} +1 -1
- package/web/app/immutable/chunks/{BulBKnVz.js → B3hSlB6y.js} +1 -1
- package/web/app/immutable/chunks/{CaHds95Q.js → B3s08q4i.js} +1 -1
- package/web/app/immutable/chunks/{vLtMR-kj.js → B4rTQlY3.js} +1 -1
- package/web/app/immutable/chunks/{B8_Ff8zl.js → B5LyNSS1.js} +7 -7
- package/web/app/immutable/chunks/{B3Gso1ut.js → B7CIdOn0.js} +1 -1
- package/web/app/immutable/chunks/{CwWm64yZ.js → BBvc0xcX.js} +1 -1
- package/web/app/immutable/chunks/{Cq4X6ptS.js → BE3ifD-D.js} +1 -1
- package/web/app/immutable/chunks/{BSfkjlLx.js → BHCTYYXY.js} +1 -1
- package/web/app/immutable/chunks/{CQ_NwL45.js → BHe6JG_C.js} +2 -2
- package/web/app/immutable/chunks/{DSacn4II.js → BIDxyGuw.js} +1 -1
- package/web/app/immutable/chunks/{DJFAYXyc.js → BIH1E0JD.js} +1 -1
- package/web/app/immutable/chunks/{CYKOPxuJ.js → BIY9btQv.js} +1 -1
- package/web/app/immutable/chunks/{gySpGbnA.js → BJDeJSt-.js} +1 -1
- package/web/app/immutable/chunks/{jG-4Z8qH.js → BKq-hmnE.js} +1 -1
- package/web/app/immutable/chunks/{CCsCF1Mh.js → BKzqt9uo.js} +1 -1
- package/web/app/immutable/chunks/{5lieSvED.js → BL5h9RCy.js} +1 -1
- package/web/app/immutable/chunks/{D6dNunKo.js → BLb6jd9K.js} +1 -1
- package/web/app/immutable/chunks/{BVLa_5Le.js → BNv5miK-.js} +1 -1
- package/web/app/immutable/chunks/{gHT8Z5q-.js → BOHkf2gI.js} +1 -1
- package/web/app/immutable/chunks/{bb5Wjkri.js → BOROIf_S.js} +1 -1
- package/web/app/immutable/chunks/{C2Vj5Vs6.js → BR75pcGU.js} +1 -1
- package/web/app/immutable/chunks/{THdp5Vpk.js → BROVvkEL.js} +1 -1
- package/web/app/immutable/chunks/{BDA31WCY.js → BR_GHabc.js} +1 -1
- package/web/app/immutable/chunks/{DeE0yn_3.js → BSwUOmEO.js} +1 -1
- package/web/app/immutable/chunks/{uCQEgTob.js → BTBYrxZV.js} +1 -1
- package/web/app/immutable/chunks/{Bi0vr71w.js → BU9a7SkD.js} +1 -1
- package/web/app/immutable/chunks/{CQHtdg39.js → BVDDJIsV.js} +1 -1
- package/web/app/immutable/chunks/{CSBGusi9.js → BWn2FCdq.js} +1 -1
- package/web/app/immutable/chunks/{CmW3Zqh6.js → BZWU4mlm.js} +2 -2
- package/web/app/immutable/chunks/Ba5gf06c.js +1 -0
- package/web/app/immutable/chunks/{DZIz7Wk9.js → BaGw_bDr.js} +1 -1
- package/web/app/immutable/chunks/{1GrJvO3a.js → Baepgj8b.js} +1 -1
- package/web/app/immutable/chunks/{CqVZxU_G.js → BalxhI2Q.js} +1 -1
- package/web/app/immutable/chunks/{wgljT0D3.js → Bb3w2fM6.js} +1 -1
- package/web/app/immutable/chunks/{DgMr61cU.js → BeVAskuR.js} +1 -1
- package/web/app/immutable/chunks/{BSD34ZVo.js → Beg3arHH.js} +1 -1
- package/web/app/immutable/chunks/{DtfuSWPd.js → BgnxwWhQ.js} +1 -1
- package/web/app/immutable/chunks/{DIukqb9l.js → BhA_kLCx.js} +1 -1
- package/web/app/immutable/chunks/{DB9n2KBT.js → Bj-9TYLg.js} +1 -1
- package/web/app/immutable/chunks/{BzFy3u2D.js → BlQvrYPa.js} +1 -1
- package/web/app/immutable/chunks/{FtGWFokI.js → BldeOF88.js} +1 -1
- package/web/app/immutable/chunks/{CdOh_Fmv.js → BnA9v3pc.js} +1 -1
- package/web/app/immutable/chunks/{Bg7YNbVH.js → Bo89tkt2.js} +1 -1
- package/web/app/immutable/chunks/{CnztNSaN.js → BoQ8Q7zJ.js} +1 -1
- package/web/app/immutable/chunks/{CiZzqOpk.js → BpyEBWKW.js} +1 -1
- package/web/app/immutable/chunks/{CgS_FiQI.js → BqOLTDDX.js} +1 -1
- package/web/app/immutable/chunks/{Caqml6gj.js → BtrJwCgg.js} +1 -1
- package/web/app/immutable/chunks/{Chnr0_jK.js → Bvf6gH6c.js} +1 -1
- package/web/app/immutable/chunks/{Dekzflbl.js → BxQi83db.js} +1 -1
- package/web/app/immutable/chunks/{CKnpbRTh.js → C-5vE6yh.js} +9 -9
- package/web/app/immutable/chunks/{DUGztmZo.js → C0jW3ncX.js} +1 -1
- package/web/app/immutable/chunks/{Bc7pHsTy.js → C1YR8Gnj.js} +1 -1
- package/web/app/immutable/chunks/{Blu9C_Vv.js → C289w7fG.js} +1 -1
- package/web/app/immutable/chunks/{TE7UDCh6.js → C29Jqwzt.js} +1 -1
- package/web/app/immutable/chunks/{C0wua3Vt.js → C2UYU20O.js} +1 -1
- package/web/app/immutable/chunks/{CgwFGLCK.js → C2wWLl1x.js} +1 -1
- package/web/app/immutable/chunks/{CH7fgKro.js → C6P_twJN.js} +1 -1
- package/web/app/immutable/chunks/{UQXXh4U7.js → C6ROKFdp.js} +1 -1
- package/web/app/immutable/chunks/{YcqSYZ1W.js → C96BAoIR.js} +1 -1
- package/web/app/immutable/chunks/{BnNJN3Ls.js → C9AWL-_E.js} +1 -1
- package/web/app/immutable/chunks/{CzW29tkb.js → CAV1CzzW.js} +1 -1
- package/web/app/immutable/chunks/{CblB0zCN.js → CC-xReBN.js} +1 -1
- package/web/app/immutable/chunks/{DRy2oEmj.js → CC4-q0Fm.js} +1 -1
- package/web/app/immutable/chunks/{CfUtc4-L.js → CDsbSWM0.js} +1 -1
- package/web/app/immutable/chunks/{DZRLhNnQ.js → CENbvXsw.js} +1 -1
- package/web/app/immutable/chunks/{BX9hgO_H.js → CFcZXBVA.js} +6 -6
- package/web/app/immutable/chunks/{eCVtubQ8.js → CFq9q-gu.js} +1 -1
- package/web/app/immutable/chunks/{d1EmVp98.js → CGLbiObk.js} +1 -1
- package/web/app/immutable/chunks/{CbRsc9i4.js → CI4_aI7e.js} +5 -5
- package/web/app/immutable/chunks/{BvZfa6RH.js → CIvyT4T_.js} +1 -1
- package/web/app/immutable/chunks/{C_-WdiR8.js → CKf0K7iH.js} +1 -1
- package/web/app/immutable/chunks/{CBRZjI7P.js → CKfVT02n.js} +2 -2
- package/web/app/immutable/chunks/{BG2RPA7A.js → CNkmihEX.js} +2 -2
- package/web/app/immutable/chunks/{f686-QUd.js → CO9mOa2z.js} +1 -1
- package/web/app/immutable/chunks/CQIdhUGs.js +1 -0
- package/web/app/immutable/chunks/{B-_ROixI.js → CQWMr-uu.js} +2 -2
- package/web/app/immutable/chunks/{MifrdpDQ.js → CT012uiB.js} +1 -1
- package/web/app/immutable/chunks/{B2AfKG58.js → CTKKTfh5.js} +2 -2
- package/web/app/immutable/chunks/{WlqVlpOk.js → CVXKL6ab.js} +1 -1
- package/web/app/immutable/chunks/{Dv0Jc2Nv.js → CVpnQG0j.js} +1 -1
- package/web/app/immutable/chunks/{BinPWBvt.js → C_V6o9Il.js} +1 -1
- package/web/app/immutable/chunks/{DELYEsRi.js → Ca6eVlSm.js} +2 -2
- package/web/app/immutable/chunks/{BhZDGIfe.js → CdYt8dgZ.js} +1 -1
- package/web/app/immutable/chunks/{CmVXj6KK.js → Ce83awb2.js} +2 -2
- package/web/app/immutable/chunks/{ir8Qz45r.js → CkoG9STP.js} +1 -1
- package/web/app/immutable/chunks/{BDcauMkX.js → CllirvEK.js} +1 -1
- package/web/app/immutable/chunks/{BmjF1SON.js → Cmj0JylI.js} +2 -2
- package/web/app/immutable/chunks/{Bvo32SXP.js → CnS7dtdu.js} +1 -1
- package/web/app/immutable/chunks/{9sCF_0su.js → Cnfa9ycD.js} +1 -1
- package/web/app/immutable/chunks/{Db8-C0Zq.js → CoDlIYWp.js} +1 -1
- package/web/app/immutable/chunks/{DwXKCf3Q.js → CplGG62F.js} +1 -1
- package/web/app/immutable/chunks/{1DKpnRTj.js → Cum1dYpM.js} +1 -1
- package/web/app/immutable/chunks/{BHaE4286.js → CvqKGiPA.js} +1 -1
- package/web/app/immutable/chunks/{BCQ1W7zT.js → CxJ0MhK_.js} +3 -3
- package/web/app/immutable/chunks/{BAymCgEX.js → Cz-HgbT1.js} +1 -1
- package/web/app/immutable/chunks/{Cv2YUgTX.js → CzMPk75T.js} +1 -1
- package/web/app/immutable/chunks/{B0SoVMRS.js → Czc9XxQH.js} +1 -1
- package/web/app/immutable/chunks/{BnhOIUmr.js → Czz4CkiM.js} +1 -1
- package/web/app/immutable/chunks/{D9MwZkzV.js → D1_IbOsX.js} +1 -1
- package/web/app/immutable/chunks/{YV53nLSc.js → D2CiBsJQ.js} +1 -1
- package/web/app/immutable/chunks/{DxyI4IUi.js → D2jpdqLS.js} +1 -1
- package/web/app/immutable/chunks/{CQAAihrI.js → D3VYu5tL.js} +1 -1
- package/web/app/immutable/chunks/{CR2m4w2U.js → D4hsFsw4.js} +1 -1
- package/web/app/immutable/chunks/{BqxcrzZH.js → D5CXAAzn.js} +1 -1
- package/web/app/immutable/chunks/{DCW2c0FY.js → D5xUDbUx.js} +1 -1
- package/web/app/immutable/chunks/{BUA7BUyu.js → D6vwIrtC.js} +1 -1
- package/web/app/immutable/chunks/{CUdMuhJF.js → D8Nxo4aC.js} +1 -1
- package/web/app/immutable/chunks/{CRNfAyhd.js → DAfOI1BG.js} +1 -1
- package/web/app/immutable/chunks/{CCSbqNiH.js → DExi1WR7.js} +1 -1
- package/web/app/immutable/chunks/{NqK_XT0y.js → DFrynV0u.js} +1 -1
- package/web/app/immutable/chunks/{EzpfJOSe.js → DG-AKB01.js} +1 -1
- package/web/app/immutable/chunks/{Dawt227W.js → DGQoqGp4.js} +1 -1
- package/web/app/immutable/chunks/{Ev5lig9W.js → DIhsiUIT.js} +1 -1
- package/web/app/immutable/chunks/{DC_1j_gh.js → DM71GnMx.js} +3 -3
- package/web/app/immutable/chunks/{D1V2Et17.js → DMH0w6el.js} +1 -1
- package/web/app/immutable/chunks/{CzS5ny-g.js → DMzReQ-5.js} +1 -1
- package/web/app/immutable/chunks/{B9BjyTgZ.js → DOIzLCtE.js} +1 -1
- package/web/app/immutable/chunks/{Dp9fBXaC.js → DOwDDYVN.js} +1 -1
- package/web/app/immutable/chunks/{C2YH0P-B.js → DPvT-ATr.js} +1 -1
- package/web/app/immutable/chunks/{BRRvOx4M.js → DQLMO9xD.js} +2 -2
- package/web/app/immutable/chunks/{sS3MW5B6.js → DQZlstPH.js} +1 -1
- package/web/app/immutable/chunks/DRRKH4VP.js +1 -0
- package/web/app/immutable/chunks/{qHChsLZZ.js → DRWqzfiQ.js} +1 -1
- package/web/app/immutable/chunks/{CUMRLgxB.js → DSCqJfZ-.js} +1 -1
- package/web/app/immutable/chunks/{zye35u-t.js → DSjbk-ao.js} +1 -1
- package/web/app/immutable/chunks/{B9mj0qwd.js → DUO0KBjx.js} +1 -1
- package/web/app/immutable/chunks/{D6VfSAVQ.js → DUfE7lx2.js} +1 -1
- package/web/app/immutable/chunks/{DkJkWZTE.js → DUl-h1p3.js} +1 -1
- package/web/app/immutable/chunks/{CbyU6cEf.js → DVu7tZ67.js} +1 -1
- package/web/app/immutable/chunks/{CBafvv8h.js → DWC3_76J.js} +1 -1
- package/web/app/immutable/chunks/{BpEHjU4g.js → DXtdMDwl.js} +1 -1
- package/web/app/immutable/chunks/{Bus1Z5ou.js → DYzJKeX7.js} +1 -1
- package/web/app/immutable/chunks/{D-NrCL67.js → D_pS9hme.js} +1 -1
- package/web/app/immutable/chunks/{Cj_UUgNI.js → DaqXt9wp.js} +1 -1
- package/web/app/immutable/chunks/{_EqQOSVK.js → Dax7ITFa.js} +2 -2
- package/web/app/immutable/chunks/{fr0BmHL-.js → DbIuIgjV.js} +1 -1
- package/web/app/immutable/chunks/{R1s5ARST.js → DbN2kVX-.js} +1 -1
- package/web/app/immutable/chunks/{R2N5eDxY.js → Dbrv6RE-.js} +2 -2
- package/web/app/immutable/chunks/{A4nvdmL6.js → DcsxLfDg.js} +1 -1
- package/web/app/immutable/chunks/{CylWx-GB.js → DfJwQVW8.js} +1 -1
- package/web/app/immutable/chunks/{CADQyVDS.js → DfT1buZq.js} +2 -2
- package/web/app/immutable/chunks/{BGT9uvaQ.js → Dg9ZuAkk.js} +5 -5
- package/web/app/immutable/chunks/{BR2t5nsF.js → DhWcN4bx.js} +2 -2
- package/web/app/immutable/chunks/{rB5UfCey.js → DiD2Cn17.js} +1 -1
- package/web/app/immutable/chunks/{B-kUJzil.js → Dk-rIzdO.js} +1 -1
- package/web/app/immutable/chunks/{B1hj1DGj.js → DkL69EQl.js} +1 -1
- package/web/app/immutable/chunks/{BmBa9vQp.js → DkkmguuG.js} +1 -1
- package/web/app/immutable/chunks/{DtHX0_aW.js → DmC2lRsL.js} +2 -2
- package/web/app/immutable/chunks/{D1bivTve.js → DnsVLkb8.js} +2 -2
- package/web/app/immutable/chunks/{CA2ANaNj.js → Dnz4szur.js} +1 -1
- package/web/app/immutable/chunks/{Df-HaYIr.js → Do5lDWBq.js} +1 -1
- package/web/app/immutable/chunks/{D_hG-oZK.js → Dp08eKy3.js} +1 -1
- package/web/app/immutable/chunks/{Bqm2Rf6d.js → Dq9sK6wY.js} +1 -1
- package/web/app/immutable/chunks/{CMLBE7U6.js → DqMtaSxK.js} +1 -1
- package/web/app/immutable/chunks/{D2dAlclh.js → DqZnld6x.js} +3 -3
- package/web/app/immutable/chunks/{DFr6bn5t.js → DqaHaAl1.js} +4 -4
- package/web/app/immutable/chunks/{9-nUCsGi.js → Dr6C4F1X.js} +1 -1
- package/web/app/immutable/chunks/{D0DIS-cT.js → DrMbcJpA.js} +1 -1
- package/web/app/immutable/chunks/{CPlH-52U.js → Ds4DhRwW.js} +7 -7
- package/web/app/immutable/chunks/{qvt-0QTi.js → DsGwNgOu.js} +3 -3
- package/web/app/immutable/chunks/{B_IEMfS6.js → DteD0Nal.js} +3 -3
- package/web/app/immutable/chunks/DwEChUMY.js +1 -0
- package/web/app/immutable/chunks/{Iq8JI4_0.js → ENlRNbf0.js} +1 -1
- package/web/app/immutable/chunks/{UN8KT7fR.js → FhXVX7Hi.js} +1 -1
- package/web/app/immutable/chunks/{Bp098-aN.js → JMqHRN1q.js} +1 -1
- package/web/app/immutable/chunks/{CGzD6XfW.js → JZ27Qh_j.js} +1 -1
- package/web/app/immutable/chunks/{DL1CE4TH.js → JvjGgKob.js} +1 -1
- package/web/app/immutable/chunks/{B-1iBpaq.js → Jx0QEit0.js} +1 -1
- package/web/app/immutable/chunks/{DWEA_zul.js → K2mnFSgK.js} +1 -1
- package/web/app/immutable/chunks/{BgPtjifd.js → KEjNxHSN.js} +1 -1
- package/web/app/immutable/chunks/{CjTGc2Y5.js → KSJAkSbC.js} +2 -2
- package/web/app/immutable/chunks/KvL2D8eF.js +1 -0
- package/web/app/immutable/chunks/L-jTlD15.js +4 -0
- package/web/app/immutable/chunks/{D_r5h8IL.js → NgjMs0r6.js} +1 -1
- package/web/app/immutable/chunks/{DFBd8tOh.js → OK80LzXp.js} +1 -1
- package/web/app/immutable/chunks/{DISyGoja.js → OltbXq5G.js} +1 -1
- package/web/app/immutable/chunks/{cFozej4U.js → PtFvwTVZ.js} +3 -3
- package/web/app/immutable/chunks/{VdR0DXlW.js → Q1s61YDh.js} +47 -47
- package/web/app/immutable/chunks/{tDUnXf7O.js → QFEvVzf2.js} +1 -1
- package/web/app/immutable/chunks/{D_-ztW_Y.js → SLPWQR3F.js} +1 -1
- package/web/app/immutable/chunks/{C1AEP5wW.js → SxNO1NUM.js} +1 -1
- package/web/app/immutable/chunks/{qjcf4Gb9.js → Tygff_sj.js} +1 -1
- package/web/app/immutable/chunks/{CFNJHO2G.js → UO171Id4.js} +1 -1
- package/web/app/immutable/chunks/{CY-vjmpy.js → VcOG8L0Z.js} +1 -1
- package/web/app/immutable/chunks/{BYMXwcID.js → W2c1MO7q.js} +1 -1
- package/web/app/immutable/chunks/{t7yAUuZn.js → XagMlRFc.js} +2 -2
- package/web/app/immutable/chunks/{DbCFTbwM.js → Z-hUD4Ap.js} +1 -1
- package/web/app/immutable/chunks/{CUNx-_2d.js → aitTA173.js} +4 -4
- package/web/app/immutable/chunks/{qi41b1Ac.js → bLKIt_n4.js} +1 -1
- package/web/app/immutable/chunks/{Hd1u2Z-S.js → eNRNxfO0.js} +3 -3
- package/web/app/immutable/chunks/{VJkCr9xp.js → eRIG79tn.js} +1 -1
- package/web/app/immutable/chunks/{1GGKXNxU.js → e_K38tqB.js} +1 -1
- package/web/app/immutable/chunks/{Dsn82AW0.js → gTjyNX6h.js} +1 -1
- package/web/app/immutable/chunks/{D69ZLPjW.js → hSiYrZoo.js} +1 -1
- package/web/app/immutable/chunks/{DvATy2o1.js → hqZSbKVs.js} +1 -1
- package/web/app/immutable/chunks/{DksUdusM.js → nrAGmqbi.js} +2 -2
- package/web/app/immutable/chunks/{BimRiD6s.js → nxYQz1Bp.js} +1 -1
- package/web/app/immutable/chunks/{D5_auhOU.js → pehcYFWW.js} +2 -2
- package/web/app/immutable/chunks/{Cgn_eC9-.js → rIUowGAi.js} +2 -2
- package/web/app/immutable/chunks/{DvrEye74.js → rei1qYSi.js} +1 -1
- package/web/app/immutable/chunks/{BkFHmpuY.js → wK4T9_HO.js} +1 -1
- package/web/app/immutable/chunks/weHhj1in.js +1 -0
- package/web/app/immutable/chunks/{BvKqDQXM.js → xCaPmms8.js} +1 -1
- package/web/app/immutable/chunks/{CqwiFk32.js → yGw_3prC.js} +1 -1
- package/web/app/immutable/chunks/{NQru5r2h.js → yScsjjST.js} +1 -1
- package/web/app/immutable/entry/{app.jT7Rd2u4.js → app.De5C2NS7.js} +2 -2
- package/web/app/immutable/entry/start.BbOZiO5_.js +1 -0
- package/web/app/immutable/nodes/{0.9lwWQtfB.js → 0.D8lcICdy.js} +1 -1
- package/web/app/immutable/nodes/{1.Ck4yEk2l.js → 1.Bcr9Ac6T.js} +1 -1
- package/web/app/immutable/nodes/{10.C4FEQjC7.js → 10.CdYxZNRv.js} +17 -17
- package/web/app/immutable/nodes/{11.C-vXNNmX.js → 11.DTALKQkg.js} +4 -4
- package/web/app/immutable/nodes/{13.DhKVmEQi.js → 13.DTamgdFN.js} +1 -1
- package/web/app/immutable/nodes/{14.INZu_e5k.js → 14.CzznX4mY.js} +1 -1
- package/web/app/immutable/nodes/{15.DdKSdQ-h.js → 15.BuZ5Ykpn.js} +1 -1
- package/web/app/immutable/nodes/{16.Ad-t6nft.js → 16.D1WCmH9D.js} +1 -1
- package/web/app/immutable/nodes/{17.pLS5JsPi.js → 17.DXnAkOJb.js} +1 -1
- package/web/app/immutable/nodes/{18.DIVxEUeB.js → 18.BBYG39nr.js} +1 -1
- package/web/app/immutable/nodes/{19.BB9LuT5j.js → 19.Bwna1DuW.js} +2 -2
- package/web/app/immutable/nodes/{2.Bp80wZmn.js → 2.BCkphmFm.js} +11 -11
- package/web/app/immutable/nodes/{20.BGTcjiLa.js → 20.DyC7cckU.js} +1 -1
- package/web/app/immutable/nodes/{3.DRJnaOSe.js → 3.CJlWKIE-.js} +1 -1
- package/web/app/immutable/nodes/{4.p67SnElB.js → 4.CDSfo4Q5.js} +1 -1
- package/web/app/immutable/nodes/{5.DRmIJA2c.js → 5.B6hsM1cw.js} +1 -1
- package/web/app/immutable/nodes/{6.Bjeibumi.js → 6.DCm27sfe.js} +2 -2
- package/web/app/immutable/nodes/{7.CjIaxqZ1.js → 7.Dd2x1_y1.js} +1 -1
- package/web/app/immutable/nodes/{8.DAlxovqG.js → 8.C0jzmTGW.js} +1 -1
- package/web/app/immutable/nodes/{9.BKQZzsCi.js → 9.Bj88iDsv.js} +11 -11
- package/web/app/version.json +1 -1
- package/web/index.html +12 -12
- package/web/app/immutable/chunks/-7AqlW5j.js +0 -1
- package/web/app/immutable/chunks/B1lYPzEU.js +0 -1
- package/web/app/immutable/chunks/C14Hgf8a.js +0 -1
- package/web/app/immutable/chunks/CK4eAyad.js +0 -1
- package/web/app/immutable/chunks/DBdkAKrm.js +0 -4
- package/web/app/immutable/chunks/UGr2VEtG.js +0 -1
- package/web/app/immutable/chunks/i8PKWJT0.js +0 -1
- package/web/app/immutable/entry/start.CSuXA93h.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ut}from"./DkJkWZTE.js";import{s as Kt}from"./Caqml6gj.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./CUNx-_2d.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
|
|
1
|
+
import{g as Ut}from"./DUl-h1p3.js";import{s as Kt}from"./BtrJwCgg.js";import{b as f,C as Tt,a_ as Zt,V as jt,aZ as Wt,U as qt,b0 as Ht,Y as Qt,X as tt,ay as F,z as Xt,r as Jt,$ as $t,am as te,aU as ee,ab as se,aG as ie,aT as re,p as ae,_ as ne,a1 as oe,aP as ce,aW as le,bh as he}from"./aitTA173.js";var Ct=(function(){var s=f(function(G,n,l,d){for(l=l||{},d=G.length;d--;l[G[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],u=[1,10],y=[1,11],g=[1,12],k=[1,30],C=[1,23],p=[1,24],b=[1,25],A=[1,26],v=[1,27],O=[1,19],N=[1,28],I=[1,29],x=[1,20],D=[1,18],L=[1,21],w=[1,22],Ot=[2,6],h=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],dt=[1,36],pt=[1,37],ft=[1,38],bt=[1,39],gt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],W=[43,51,53,54,55,74,75],q=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],xt=[1,91],At=[6,9,45,50],z=[6,9,12,44,45,50,51,52],at=[1,101],nt=[1,100],ot=[1,99],J=[18,61],It=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],yt=[18,61,64,66],_t={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(n,l,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},s(a,Ot,{1:[2,1]}),s(h,[2,3]),s(h,[2,4]),s(h,[2,5]),s(h,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:dt,70:pt,71:ft,72:bt,73:gt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(h,[2,26]),s(h,[2,27]),s(h,[2,28]),s(h,[2,29]),s(h,[2,30]),s(h,o,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(h,[2,36]),s(h,[2,37]),s(h,[2,38]),s(h,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:O,51:x,53:D,54:L,55:w},{10:51,43:O,51:x,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:O,51:x,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(h,[2,23]),s(h,[2,24]),s(h,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:u,25:y,27:g,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:C,38:p,39:b,40:A,41:v,43:O,46:N,47:I,51:x,53:D,54:L,55:w},{12:q,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:q,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(h,[2,16],{67:35,11:81,16:[1,82],45:B,69:dt,70:pt,71:ft,72:bt,73:gt}),{18:[1,83]},s(h,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:dt,70:pt,71:ft,72:bt,73:gt},s(Nt,[2,82]),s(Nt,[2,83]),s(h,[2,31]),s(h,Ot),{6:st,9:it,35:90,45:xt,50:rt},{43:[1,92],44:[1,93]},s(At,[2,47],{49:94,12:q,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(h,[2,45],{45:B}),{6:st,9:it,35:95,45:xt,50:rt},s(h,[2,32]),{10:97,36:96,43:O,51:x,53:D,54:L,55:w},s(h,[2,51]),s(h,[2,52]),s(h,[2,53]),{13:98,43:at,53:nt,76:ot},{15:102,43:V,44:M},{10:103,43:O,51:x,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(h,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:It,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(h,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(h,[2,40]),{12:q,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(h,[2,46]),{10:115,20:[1,114],43:O,51:x,53:D,54:L,55:w},s(vt,[2,34]),s(h,[2,7]),s(h,[2,84]),s(h,[2,85]),s(h,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(h,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(yt,[2,72]),s(J,[2,75]),s(yt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(At,[2,48],{49:94,12:q,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:at,53:nt,76:ot},{15:127,43:V,44:M},{13:128,43:at,53:nt,76:ot},s(h,[2,12]),s(J,[2,68]),{63:129,65:It},{18:[1,130]},s(h,[2,19]),s(h,[2,22],{16:[1,131],45:B}),s(h,[2,33]),s(h,[2,10]),{12:[1,132],45:B},s(h,[2,9]),s(yt,[2,73]),s(h,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:at,53:nt,76:ot},{18:[1,136]},s(h,[2,20]),s(h,[2,8]),s(h,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),parse:f(function(n){var l=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(Y.yy[kt]=this.yy[kt]);m.setInput(n,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var mt=m.yylloc;t.push(mt);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=l.symbols_[S]||S),S}f(wt,"lex");for(var E,P,T,Et,U={},ht,R,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),T=$[P]&&$[P][E]),typeof T>"u"||!T.length||!T[0]){var St="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?St="Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":St="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(St,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:mt,expected:ut})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(T[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(T[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,mt=m.yylloc;break;case 2:if(R=this.productions_[T[1]][1],U.$=_[_.length-R],U._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Et=this.performAction.apply(U,[e,Dt,lt,Y.yy,T[1],_,t].concat(Yt)),typeof Et<"u")return Et;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[T[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,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:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=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),d.length-1&&(this.yylineno-=d.length-1);var _=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:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var It=Object.defineProperty;var gt=s=>{throw TypeError(s)};var Ft=(s,e,o)=>e in s?It(s,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[e]=o;var se=(s,e,o)=>Ft(s,typeof e!="symbol"?e+"":e,o),ht=(s,e,o)=>e.has(s)||gt("Cannot "+o);var M=(s,e,o)=>(ht(s,e,"read from private field"),o?o.call(s):e.get(s)),re=(s,e,o)=>e.has(s)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,o);var Ve=(s,e,o)=>(ht(s,e,"access private method"),o);import{t as le,bo as t,bw as ue,b as ce,bp as ke,br as tt,bm as Ne}from"./51_h0jm2.js";import{c9 as l,aD as n,bH as ae,bo as rt,bs as ge,a7 as j,ay as B,W as _,bn as he,aA as r,a5 as X,bf as We,bA as Y,aB as W,bS as de,bV as vt,br as Lt,bj as Dt,c5 as Rt,ca as Ht,b_ as Q,be as Xe,b$ as Te,bO as oe,bl as Ue,ai as Et,bk as Mt,aj as At}from"./CJxGDkBm.js";import{c as Ye}from"./DGmOjLYi.js";import{b as Ge,e as J,c as pe,s as T,f as ye,p as Bt}from"./CpPNoOk-.js";import{p as Ot,o as jt,e as Nt}from"./Bjy4ygfJ.js";import{S as Ut}from"./BxwkoIbZ.js";import{i as O}from"./PXCFrn2V.js";import{s as Z}from"./DxvSggY5.js";import{an as at,ay as bt,az as we,av as K,aQ as nt,h as Wt,l as Gt,a6 as Qt,aq as ft,aE as Vt,ar as Xt,aD as Yt,at as Jt,aS as mt,a_ as pt,f as yt}from"./CdOh_Fmv.js";import"./BoIfXiRv.js";import{i as Kt}from"./D-g0wh54.js";import{H as Zt}from"./CfUtc4-L.js";import{z as $t}from"./DSQT151l.js";import"./Cgn_eC9-.js";import"./BGP1lrgu.js";import{d as er,n as tr,m as rr,a as ar}from"./DZIz7Wk9.js";import{b as nr}from"./NtFyWdpR.js";import{t as ir}from"./DAsc1V4f.js";import"./DKn1sQ32.js";import{e as sr}from"./Dukt1CUc.js";const dr=bt({component:"label",parts:["root"]});var Ie;const st=class st{constructor(e){se(this,"opts");se(this,"attachment");re(this,Ie,l(()=>({id:this.opts.id.current,[dr.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=at(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new st(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return n(M(this,Ie))}set props(e){ae(M(this,Ie),e)}};Ie=new WeakMap;let Je=st;var or=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),lr=W("<label><!></label>");function xt(s,e){const o=rt();if(new.target)return le({component:xt,...s});ge(e,!0);let c=t(e,"children",7),h=t(e,"child",7),y=t(e,"id",23,()=>we(o)),x=t(e,"ref",15,null),v=t(e,"for",7),C=ke(e,or);const z=Je.create({id:K(()=>y()),ref:K(()=>x(),d=>x(d))}),w=l(()=>nt(C,z.props,{for:v()}));var b={get children(){return c()},set children(d){c(d),r()},get child(){return h()},set child(d){h(d),r()},get id(){return y()},set id(d=we(o)){y(d),r()},get ref(){return x()},set ref(d=null){x(d),r()},get for(){return v()},set for(d){v(d),r()},$set:ue,$on:(d,g)=>ce(e,d,g)},f=j(),k=B(f);{var q=d=>{var g=j(),P=B(g);Z(P,h,()=>({props:n(w)})),_(d,g)},m=d=>{var g=lr();Ge(g,()=>({...n(w),for:v()}));var P=X(g);Z(P,()=>c()??We),Y(g),_(d,g)};O(k,d=>{h()?d(q):d(m,-1)})}return _(s,f),he(b)}const _t=bt({component:"switch",parts:["root","thumb"]}),it=new Wt("Switch.Root");var Fe,Ze,Le,De,Re;const dt=class dt{constructor(e){re(this,Fe);se(this,"opts");se(this,"attachment");re(this,Le,l(()=>({"data-disabled":ft(this.opts.disabled.current),"data-state":Vt(this.opts.checked.current),"data-required":ft(this.opts.required.current)})));re(this,De,l(()=>({checked:this.opts.checked.current})));re(this,Re,l(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Jt(this.opts.disabled.current),"aria-checked":Yt(this.opts.checked.current,!1),"aria-required":Xt(this.opts.required.current),[_t.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.attachment=at(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return it.set(new dt(e))}onkeydown(e){!(e.key===Gt||e.key===Qt)||this.opts.disabled.current||(e.preventDefault(),Ve(this,Fe,Ze).call(this))}onclick(e){this.opts.disabled.current||Ve(this,Fe,Ze).call(this)}get sharedProps(){return n(M(this,Le))}set sharedProps(e){ae(M(this,Le),e)}get snippetProps(){return n(M(this,De))}set snippetProps(e){ae(M(this,De),e)}get props(){return n(M(this,Re))}set props(e){ae(M(this,Re),e)}};Fe=new WeakSet,Ze=function(){this.opts.checked.current=!this.opts.checked.current},Le=new WeakMap,De=new WeakMap,Re=new WeakMap;let Ke=dt;var He,Ee;const ot=class ot{constructor(e){se(this,"root");re(this,He,l(()=>this.root.opts.name.current!==void 0));re(this,Ee,l(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=e}static create(){return new ot(it.get())}get shouldRender(){return n(M(this,He))}set shouldRender(e){ae(M(this,He),e)}get props(){return n(M(this,Ee))}set props(e){ae(M(this,Ee),e)}};He=new WeakMap,Ee=new WeakMap;let $e=ot;var Me,Ae;const lt=class lt{constructor(e,o){se(this,"opts");se(this,"root");se(this,"attachment");re(this,Me,l(()=>({checked:this.root.opts.checked.current})));re(this,Ae,l(()=>({...this.root.sharedProps,id:this.opts.id.current,[_t.thumb]:"",...this.attachment})));this.opts=e,this.root=o,this.attachment=at(e.ref)}static create(e){return new lt(e,it.get())}get snippetProps(){return n(M(this,Me))}set snippetProps(e){ae(M(this,Me),e)}get props(){return n(M(this,Ae))}set props(e){ae(M(this,Ae),e)}};Me=new WeakMap,Ae=new WeakMap;let et=lt;function wt(s,e){if(new.target)return le({component:wt,...s});ge(e,!1);const o=$e.create();var c={$set:ue,$on:(v,C)=>ce(e,v,C)};Kt();var h=j(),y=B(h);{var x=v=>{Zt(v,tt(()=>o.props))};O(y,v=>{o.shouldRender&&v(x)})}return _(s,h),he(c)}var ur=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),cr=W("<button><!></button>"),gr=W("<!> <!>",1);function kt(s,e){const o=rt();if(new.target)return le({component:kt,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=t(e,"disabled",7,!1),C=t(e,"required",7,!1),z=t(e,"checked",15,!1),w=t(e,"value",7,"on"),b=t(e,"name",7,void 0),f=t(e,"type",7,"button"),k=t(e,"onCheckedChange",7,mt),q=ke(e,ur);const m=Ke.create({checked:K(()=>z(),u=>{z(u),k()?.(u)}),disabled:K(()=>v()??!1),required:K(()=>C()),value:K(()=>w()),name:K(()=>b()),id:K(()=>x()),ref:K(()=>y(),u=>y(u))}),d=l(()=>nt(q,m.props,{type:f()}));var g={get child(){return c()},set child(u){c(u),r()},get children(){return h()},set children(u){h(u),r()},get ref(){return y()},set ref(u=null){y(u),r()},get id(){return x()},set id(u=we(o)){x(u),r()},get disabled(){return v()},set disabled(u=!1){v(u),r()},get required(){return C()},set required(u=!1){C(u),r()},get checked(){return z()},set checked(u=!1){z(u),r()},get value(){return w()},set value(u="on"){w(u),r()},get name(){return b()},set name(u=void 0){b(u),r()},get type(){return f()},set type(u="button"){f(u),r()},get onCheckedChange(){return k()},set onCheckedChange(u=mt){k(u),r()},$set:ue,$on:(u,R)=>ce(e,u,R)},P=gr(),D=B(P);{var E=u=>{var R=j(),V=B(R);{let $=l(()=>({props:n(d),...m.snippetProps}));Z(V,c,()=>n($))}_(u,R)},A=u=>{var R=cr();Ge(R,()=>({...n(d)}));var V=X(R);Z(V,()=>h()??We,()=>m.snippetProps),Y(R),_(u,R)};O(D,u=>{c()?u(E):u(A,-1)})}var G=de(D,2);return wt(G,{}),_(s,P),he(g)}var hr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),fr=W("<span><!></span>");function Ct(s,e){const o=rt();if(new.target)return le({component:Ct,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=ke(e,hr);const C=et.create({id:K(()=>x()),ref:K(()=>y(),m=>y(m))}),z=l(()=>nt(v,C.props));var w={get child(){return c()},set child(m){c(m),r()},get children(){return h()},set children(m){h(m),r()},get ref(){return y()},set ref(m=null){y(m),r()},get id(){return x()},set id(m=we(o)){x(m),r()},$set:ue,$on:(m,d)=>ce(e,m,d)},b=j(),f=B(b);{var k=m=>{var d=j(),g=B(d);{let P=l(()=>({props:n(z),...C.snippetProps}));Z(g,c,()=>n(P))}_(m,d)},q=m=>{var d=fr();Ge(d,()=>({...n(z)}));var g=X(d);Z(g,()=>h()??We,()=>C.snippetProps),Y(d),_(m,d)};O(f,m=>{c()?m(k):m(q,-1)})}return _(s,b),he(w)}var mr=new Set(["$$slots","$$events","$$legacy","ref","size","invalid","class"]);function Pt(s,e){if(new.target)return le({component:Pt,...s});ge(e,!0);const o=pt();let c=t(e,"ref",15,null),h=t(e,"size",7),y=t(e,"invalid",7,!1),x=t(e,"class",7),v=ke(e,mr);const C=l(()=>h()??o);var z={get ref(){return c()},set ref(f=null){c(f),r()},get size(){return h()},set size(f){h(f),r()},get invalid(){return y()},set invalid(f=!1){y(f),r()},get class(){return x()},set class(f){x(f),r()},$set:ue,$on:(f,k)=>ce(e,f,k)},w=j(),b=B(w);{let f=l(()=>y()||void 0),k=l(()=>J("type-caption flex min-w-0 select-none items-center font-medium tracking-normal text-muted-foreground transition-[color] duration-(--spring-fast) group-hover:text-foreground group-focus-within:text-foreground data-[state=hover]:text-foreground data-[state=focus]:text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-60 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-60 group-data-[invalid=true]:text-danger data-[invalid=true]:text-danger motion-reduce:transition-none",n(C)==="compact"?"gap-1.5":"gap-2",x()));Ye(b,()=>xt,(q,m)=>{m(q,tt({"data-slot":"label",get"data-size"(){return n(C)},get"data-invalid"(){return n(f)},get class(){return n(k)}},()=>v,{get ref(){return c()},set ref(d){c(d)}}))})}return _(s,w),he(z)}function vr(){let s=vt(Lt(Ot()));const e=jt(o=>{ae(s,o,!0)});return{get current(){return n(s)},cleanup:e}}function br(s){return new Ut(s,"fast")}function pr(s,e,o=!1){return s.set(e,{instant:o}),s}var yr=new Set(["$$slots","$$events","$$legacy","ref","id","checked","disabled","required","invalid","class","onCheckedChange","size","name","value","ariaLabel","ariaLabelledby","ariaDescribedby"]);function xr(s,e){if(new.target)return le({component:xr,...s});ge(e,!0);let o=t(e,"ref",15,null),c=t(e,"id",7,""),h=t(e,"checked",15,!1),y=t(e,"disabled",7,!1),x=t(e,"required",7,!1),v=t(e,"invalid",7,!1),C=t(e,"class",7,""),z=t(e,"onCheckedChange",7),w=t(e,"size",7,"md"),b=t(e,"name",7),f=t(e,"value",7,"on"),k=t(e,"ariaLabel",7),q=t(e,"ariaLabelledby",7),m=t(e,"ariaDescribedby",7),d=ke(e,yr);const g={xs:{width:24,height:14,padding:2,thumb:10},sm:{width:28,height:16,padding:2,thumb:12},compact:{width:28,height:16,padding:2,thumb:12},md:{width:34,height:20,padding:2,thumb:16},default:{width:34,height:20,padding:2,thumb:16},lg:{width:38,height:22,padding:2,thumb:18}};let P=l(()=>g[w()].width),D=l(()=>g[w()].height),E=l(()=>g[w()].padding),A=l(()=>g[w()].thumb),G=l(()=>n(A));const u=vr();Dt(u.cleanup);const R=br(Rt(()=>n(E))),V=l(()=>h()?n(P)-n(A)-n(E):n(E));Ht(()=>{pr(R,n(V),u.current)});var $={get ref(){return o()},set ref(p=null){o(p),r()},get id(){return c()},set id(p=""){c(p),r()},get checked(){return h()},set checked(p=!1){h(p),r()},get disabled(){return y()},set disabled(p=!1){y(p),r()},get required(){return x()},set required(p=!1){x(p),r()},get invalid(){return v()},set invalid(p=!1){v(p),r()},get class(){return C()},set class(p=""){C(p),r()},get onCheckedChange(){return z()},set onCheckedChange(p){z(p),r()},get size(){return w()},set size(p="md"){w(p),r()},get name(){return b()},set name(p){b(p),r()},get value(){return f()},set value(p="on"){f(p),r()},get ariaLabel(){return k()},set ariaLabel(p){k(p),r()},get ariaLabelledby(){return q()},set ariaLabelledby(p){q(p),r()},get ariaDescribedby(){return m()},set ariaDescribedby(p){m(p),r()},$set:ue,$on:(p,ve)=>ce(e,p,ve)},ne=j(),me=B(ne);{let p=l(()=>v()||void 0),ve=l(()=>J("border-border peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-muted shadow-(--elevation-raised) transition-[background-color,box-shadow,opacity] duration-spring-fast ease-spring-fast after:absolute after:-inset-y-2 after:-inset-x-1 after:content-[''] motion-reduce:transition-none","hover:bg-hover active:bg-active","disabled:cursor-not-allowed disabled:opacity-60","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary data-[state=checked]:active:bg-primary",v()&&"border-danger ring-1 ring-danger/25",C())),H=l(()=>`
|
|
1
|
+
var It=Object.defineProperty;var gt=s=>{throw TypeError(s)};var Ft=(s,e,o)=>e in s?It(s,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[e]=o;var se=(s,e,o)=>Ft(s,typeof e!="symbol"?e+"":e,o),ht=(s,e,o)=>e.has(s)||gt("Cannot "+o);var M=(s,e,o)=>(ht(s,e,"read from private field"),o?o.call(s):e.get(s)),re=(s,e,o)=>e.has(s)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,o);var Ve=(s,e,o)=>(ht(s,e,"access private method"),o);import{t as le,bo as t,bw as ue,b as ce,bp as ke,br as tt,bm as Ne}from"./51_h0jm2.js";import{c9 as l,aD as n,bH as ae,bo as rt,bs as ge,a7 as j,ay as B,W as _,bn as he,aA as r,a5 as X,bf as We,bA as Y,aB as W,bS as de,bV as vt,br as Lt,bj as Dt,c5 as Rt,ca as Ht,b_ as Q,be as Xe,b$ as Te,bO as oe,bl as Ue,ai as Et,bk as Mt,aj as At}from"./CJxGDkBm.js";import{c as Ye}from"./DGmOjLYi.js";import{b as Ge,e as J,c as pe,s as T,f as ye,p as Bt}from"./CpPNoOk-.js";import{p as Ot,o as jt,e as Nt}from"./Bjy4ygfJ.js";import{S as Ut}from"./BxwkoIbZ.js";import{i as O}from"./PXCFrn2V.js";import{s as Z}from"./DxvSggY5.js";import{an as at,ay as bt,az as we,av as K,aQ as nt,h as Wt,l as Gt,a6 as Qt,aq as ft,aE as Vt,ar as Xt,aD as Yt,at as Jt,aS as mt,a_ as pt,f as yt}from"./BnA9v3pc.js";import"./BoIfXiRv.js";import{i as Kt}from"./D-g0wh54.js";import{H as Zt}from"./CDsbSWM0.js";import{z as $t}from"./DSQT151l.js";import"./rIUowGAi.js";import"./BGP1lrgu.js";import{d as er,n as tr,m as rr,a as ar}from"./BaGw_bDr.js";import{b as nr}from"./NtFyWdpR.js";import{t as ir}from"./DAsc1V4f.js";import"./DKn1sQ32.js";import{e as sr}from"./Dukt1CUc.js";const dr=bt({component:"label",parts:["root"]});var Ie;const st=class st{constructor(e){se(this,"opts");se(this,"attachment");re(this,Ie,l(()=>({id:this.opts.id.current,[dr.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=at(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new st(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return n(M(this,Ie))}set props(e){ae(M(this,Ie),e)}};Ie=new WeakMap;let Je=st;var or=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),lr=W("<label><!></label>");function xt(s,e){const o=rt();if(new.target)return le({component:xt,...s});ge(e,!0);let c=t(e,"children",7),h=t(e,"child",7),y=t(e,"id",23,()=>we(o)),x=t(e,"ref",15,null),v=t(e,"for",7),C=ke(e,or);const z=Je.create({id:K(()=>y()),ref:K(()=>x(),d=>x(d))}),w=l(()=>nt(C,z.props,{for:v()}));var b={get children(){return c()},set children(d){c(d),r()},get child(){return h()},set child(d){h(d),r()},get id(){return y()},set id(d=we(o)){y(d),r()},get ref(){return x()},set ref(d=null){x(d),r()},get for(){return v()},set for(d){v(d),r()},$set:ue,$on:(d,g)=>ce(e,d,g)},f=j(),k=B(f);{var q=d=>{var g=j(),P=B(g);Z(P,h,()=>({props:n(w)})),_(d,g)},m=d=>{var g=lr();Ge(g,()=>({...n(w),for:v()}));var P=X(g);Z(P,()=>c()??We),Y(g),_(d,g)};O(k,d=>{h()?d(q):d(m,-1)})}return _(s,f),he(b)}const _t=bt({component:"switch",parts:["root","thumb"]}),it=new Wt("Switch.Root");var Fe,Ze,Le,De,Re;const dt=class dt{constructor(e){re(this,Fe);se(this,"opts");se(this,"attachment");re(this,Le,l(()=>({"data-disabled":ft(this.opts.disabled.current),"data-state":Vt(this.opts.checked.current),"data-required":ft(this.opts.required.current)})));re(this,De,l(()=>({checked:this.opts.checked.current})));re(this,Re,l(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Jt(this.opts.disabled.current),"aria-checked":Yt(this.opts.checked.current,!1),"aria-required":Xt(this.opts.required.current),[_t.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.attachment=at(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}static create(e){return it.set(new dt(e))}onkeydown(e){!(e.key===Gt||e.key===Qt)||this.opts.disabled.current||(e.preventDefault(),Ve(this,Fe,Ze).call(this))}onclick(e){this.opts.disabled.current||Ve(this,Fe,Ze).call(this)}get sharedProps(){return n(M(this,Le))}set sharedProps(e){ae(M(this,Le),e)}get snippetProps(){return n(M(this,De))}set snippetProps(e){ae(M(this,De),e)}get props(){return n(M(this,Re))}set props(e){ae(M(this,Re),e)}};Fe=new WeakSet,Ze=function(){this.opts.checked.current=!this.opts.checked.current},Le=new WeakMap,De=new WeakMap,Re=new WeakMap;let Ke=dt;var He,Ee;const ot=class ot{constructor(e){se(this,"root");re(this,He,l(()=>this.root.opts.name.current!==void 0));re(this,Ee,l(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=e}static create(){return new ot(it.get())}get shouldRender(){return n(M(this,He))}set shouldRender(e){ae(M(this,He),e)}get props(){return n(M(this,Ee))}set props(e){ae(M(this,Ee),e)}};He=new WeakMap,Ee=new WeakMap;let $e=ot;var Me,Ae;const lt=class lt{constructor(e,o){se(this,"opts");se(this,"root");se(this,"attachment");re(this,Me,l(()=>({checked:this.root.opts.checked.current})));re(this,Ae,l(()=>({...this.root.sharedProps,id:this.opts.id.current,[_t.thumb]:"",...this.attachment})));this.opts=e,this.root=o,this.attachment=at(e.ref)}static create(e){return new lt(e,it.get())}get snippetProps(){return n(M(this,Me))}set snippetProps(e){ae(M(this,Me),e)}get props(){return n(M(this,Ae))}set props(e){ae(M(this,Ae),e)}};Me=new WeakMap,Ae=new WeakMap;let et=lt;function wt(s,e){if(new.target)return le({component:wt,...s});ge(e,!1);const o=$e.create();var c={$set:ue,$on:(v,C)=>ce(e,v,C)};Kt();var h=j(),y=B(h);{var x=v=>{Zt(v,tt(()=>o.props))};O(y,v=>{o.shouldRender&&v(x)})}return _(s,h),he(c)}var ur=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]),cr=W("<button><!></button>"),gr=W("<!> <!>",1);function kt(s,e){const o=rt();if(new.target)return le({component:kt,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=t(e,"disabled",7,!1),C=t(e,"required",7,!1),z=t(e,"checked",15,!1),w=t(e,"value",7,"on"),b=t(e,"name",7,void 0),f=t(e,"type",7,"button"),k=t(e,"onCheckedChange",7,mt),q=ke(e,ur);const m=Ke.create({checked:K(()=>z(),u=>{z(u),k()?.(u)}),disabled:K(()=>v()??!1),required:K(()=>C()),value:K(()=>w()),name:K(()=>b()),id:K(()=>x()),ref:K(()=>y(),u=>y(u))}),d=l(()=>nt(q,m.props,{type:f()}));var g={get child(){return c()},set child(u){c(u),r()},get children(){return h()},set children(u){h(u),r()},get ref(){return y()},set ref(u=null){y(u),r()},get id(){return x()},set id(u=we(o)){x(u),r()},get disabled(){return v()},set disabled(u=!1){v(u),r()},get required(){return C()},set required(u=!1){C(u),r()},get checked(){return z()},set checked(u=!1){z(u),r()},get value(){return w()},set value(u="on"){w(u),r()},get name(){return b()},set name(u=void 0){b(u),r()},get type(){return f()},set type(u="button"){f(u),r()},get onCheckedChange(){return k()},set onCheckedChange(u=mt){k(u),r()},$set:ue,$on:(u,R)=>ce(e,u,R)},P=gr(),D=B(P);{var E=u=>{var R=j(),V=B(R);{let $=l(()=>({props:n(d),...m.snippetProps}));Z(V,c,()=>n($))}_(u,R)},A=u=>{var R=cr();Ge(R,()=>({...n(d)}));var V=X(R);Z(V,()=>h()??We,()=>m.snippetProps),Y(R),_(u,R)};O(D,u=>{c()?u(E):u(A,-1)})}var G=de(D,2);return wt(G,{}),_(s,P),he(g)}var hr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id"]),fr=W("<span><!></span>");function Ct(s,e){const o=rt();if(new.target)return le({component:Ct,...s});ge(e,!0);let c=t(e,"child",7),h=t(e,"children",7),y=t(e,"ref",15,null),x=t(e,"id",23,()=>we(o)),v=ke(e,hr);const C=et.create({id:K(()=>x()),ref:K(()=>y(),m=>y(m))}),z=l(()=>nt(v,C.props));var w={get child(){return c()},set child(m){c(m),r()},get children(){return h()},set children(m){h(m),r()},get ref(){return y()},set ref(m=null){y(m),r()},get id(){return x()},set id(m=we(o)){x(m),r()},$set:ue,$on:(m,d)=>ce(e,m,d)},b=j(),f=B(b);{var k=m=>{var d=j(),g=B(d);{let P=l(()=>({props:n(z),...C.snippetProps}));Z(g,c,()=>n(P))}_(m,d)},q=m=>{var d=fr();Ge(d,()=>({...n(z)}));var g=X(d);Z(g,()=>h()??We,()=>C.snippetProps),Y(d),_(m,d)};O(f,m=>{c()?m(k):m(q,-1)})}return _(s,b),he(w)}var mr=new Set(["$$slots","$$events","$$legacy","ref","size","invalid","class"]);function Pt(s,e){if(new.target)return le({component:Pt,...s});ge(e,!0);const o=pt();let c=t(e,"ref",15,null),h=t(e,"size",7),y=t(e,"invalid",7,!1),x=t(e,"class",7),v=ke(e,mr);const C=l(()=>h()??o);var z={get ref(){return c()},set ref(f=null){c(f),r()},get size(){return h()},set size(f){h(f),r()},get invalid(){return y()},set invalid(f=!1){y(f),r()},get class(){return x()},set class(f){x(f),r()},$set:ue,$on:(f,k)=>ce(e,f,k)},w=j(),b=B(w);{let f=l(()=>y()||void 0),k=l(()=>J("type-caption flex min-w-0 select-none items-center font-medium tracking-normal text-muted-foreground transition-[color] duration-(--spring-fast) group-hover:text-foreground group-focus-within:text-foreground data-[state=hover]:text-foreground data-[state=focus]:text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-60 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-60 group-data-[invalid=true]:text-danger data-[invalid=true]:text-danger motion-reduce:transition-none",n(C)==="compact"?"gap-1.5":"gap-2",x()));Ye(b,()=>xt,(q,m)=>{m(q,tt({"data-slot":"label",get"data-size"(){return n(C)},get"data-invalid"(){return n(f)},get class(){return n(k)}},()=>v,{get ref(){return c()},set ref(d){c(d)}}))})}return _(s,w),he(z)}function vr(){let s=vt(Lt(Ot()));const e=jt(o=>{ae(s,o,!0)});return{get current(){return n(s)},cleanup:e}}function br(s){return new Ut(s,"fast")}function pr(s,e,o=!1){return s.set(e,{instant:o}),s}var yr=new Set(["$$slots","$$events","$$legacy","ref","id","checked","disabled","required","invalid","class","onCheckedChange","size","name","value","ariaLabel","ariaLabelledby","ariaDescribedby"]);function xr(s,e){if(new.target)return le({component:xr,...s});ge(e,!0);let o=t(e,"ref",15,null),c=t(e,"id",7,""),h=t(e,"checked",15,!1),y=t(e,"disabled",7,!1),x=t(e,"required",7,!1),v=t(e,"invalid",7,!1),C=t(e,"class",7,""),z=t(e,"onCheckedChange",7),w=t(e,"size",7,"md"),b=t(e,"name",7),f=t(e,"value",7,"on"),k=t(e,"ariaLabel",7),q=t(e,"ariaLabelledby",7),m=t(e,"ariaDescribedby",7),d=ke(e,yr);const g={xs:{width:24,height:14,padding:2,thumb:10},sm:{width:28,height:16,padding:2,thumb:12},compact:{width:28,height:16,padding:2,thumb:12},md:{width:34,height:20,padding:2,thumb:16},default:{width:34,height:20,padding:2,thumb:16},lg:{width:38,height:22,padding:2,thumb:18}};let P=l(()=>g[w()].width),D=l(()=>g[w()].height),E=l(()=>g[w()].padding),A=l(()=>g[w()].thumb),G=l(()=>n(A));const u=vr();Dt(u.cleanup);const R=br(Rt(()=>n(E))),V=l(()=>h()?n(P)-n(A)-n(E):n(E));Ht(()=>{pr(R,n(V),u.current)});var $={get ref(){return o()},set ref(p=null){o(p),r()},get id(){return c()},set id(p=""){c(p),r()},get checked(){return h()},set checked(p=!1){h(p),r()},get disabled(){return y()},set disabled(p=!1){y(p),r()},get required(){return x()},set required(p=!1){x(p),r()},get invalid(){return v()},set invalid(p=!1){v(p),r()},get class(){return C()},set class(p=""){C(p),r()},get onCheckedChange(){return z()},set onCheckedChange(p){z(p),r()},get size(){return w()},set size(p="md"){w(p),r()},get name(){return b()},set name(p){b(p),r()},get value(){return f()},set value(p="on"){f(p),r()},get ariaLabel(){return k()},set ariaLabel(p){k(p),r()},get ariaLabelledby(){return q()},set ariaLabelledby(p){q(p),r()},get ariaDescribedby(){return m()},set ariaDescribedby(p){m(p),r()},$set:ue,$on:(p,ve)=>ce(e,p,ve)},ne=j(),me=B(ne);{let p=l(()=>v()||void 0),ve=l(()=>J("border-border peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-muted shadow-(--elevation-raised) transition-[background-color,box-shadow,opacity] duration-spring-fast ease-spring-fast after:absolute after:-inset-y-2 after:-inset-x-1 after:content-[''] motion-reduce:transition-none","hover:bg-hover active:bg-active","disabled:cursor-not-allowed disabled:opacity-60","data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary data-[state=checked]:active:bg-primary",v()&&"border-danger ring-1 ring-danger/25",C())),H=l(()=>`
|
|
2
2
|
width: ${n(P)}px;
|
|
3
3
|
height: ${n(D)}px;
|
|
4
4
|
`);Ye(me,()=>kt,(xe,N)=>{N(xe,tt({get id(){return c()},get name(){return b()},get value(){return f()},get disabled(){return y()},get required(){return x()},get onCheckedChange(){return z()},type:"button",get"aria-label"(){return k()},get"aria-labelledby"(){return q()},get"aria-describedby"(){return m()},get"aria-invalid"(){return n(p)},get class(){return n(ve)},get style(){return n(H)}},()=>d,{get ref(){return o()},set ref(F){o(F)},get checked(){return h()},set checked(F){h(F)},children:(F,Ce)=>{var _e=j(),Pe=B(_e);{let i=l(()=>J("bg-card pointer-events-none absolute top-1/2 left-0 block rounded-full shadow-(--elevation-raised) ring-0 data-[state=checked]:bg-primary-foreground")),a=l(()=>`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bv as t,ak as c}from"./CJxGDkBm.js";import{O as o}from"./Bqd7fdCF.js";import{
|
|
1
|
+
import{bv as t,ak as c}from"./CJxGDkBm.js";import{O as o}from"./Bqd7fdCF.js";import{J5 as r}from"./CI4_aI7e.js";function u(){try{return r.state.userPreferences?.shortcutOverrides??{}}catch{return{}}}function a(e){return o(e,u())}function h(e){if(typeof r.getReadableState!="function")return t(a(e));try{return c(r.getReadableState(),s=>o(e,s.userPreferences?.shortcutOverrides??{}))}catch{return t(a(e))}}export{h as e,a as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Re,bo as i,bm as n,bw as ze,bs as Oe,bq as Wt,b as Fe}from"./51_h0jm2.js";import{ai as Jt,bo as Kt,bs as Ue,bV as $,br as Vt,ca as _e,aD as e,bj as Gt,bH as a,c5 as nt,a5 as B,bl as N,bS as c,bA as O,b_ as H,bO as h,W as g,bn as Be,c9 as _,aA as d,ay as K,a7 as je,aB as j,bf as rt,aj as Qt,be as X,b$ as Y}from"./CJxGDkBm.js";import{i as Z}from"./PXCFrn2V.js";import{b as Xt}from"./NtFyWdpR.js";import{s as at,c as Yt,e as lt,f as Zt}from"./CpPNoOk-.js";import"./DKn1sQ32.js";import"./BGP1lrgu.js";import"./DxvSggY5.js";import"./Cgn_eC9-.js";import"./CN-6Tr26.js";import{C as en}from"./DvrEye74.js";import{z as ve,J4 as W,hP as pe,sB as tn,hS as st}from"./CbRsc9i4.js";import{g as nn,i as rn}from"./Bjy4ygfJ.js";import{f as J}from"./CdOh_Fmv.js";import{a as an,T as ln,S as sn}from"./d1EmVp98.js";import{I as Ae}from"./DZIz7Wk9.js";import{S as on}from"./DB9n2KBT.js";import"./BCBNqT5t.js";import"./THdp5Vpk.js";/* empty css */import"./ChTqQfQN.js";import"./D0DIS-cT.js";import"./DCv0ZqUq.js";import{C as cn,c as dn,o as un}from"./Df-HaYIr.js";import{J as fn,ab as _n,a5 as pn}from"./CzW29tkb.js";import{i as vn,p as bn}from"./CQAAihrI.js";import{z as mn}from"./sS3MW5B6.js";var gn=j('<span class="size-4 rounded-full border border-muted-foreground/60 bg-background" aria-hidden="true"></span>'),hn=j('<span aria-hidden="true"></span>'),xn=j('<p class="text-xs text-subtle"> </p> <p class="text-xs text-subtle"> <a class="text-primary-ink hover:underline">github.com/intent-hq/intentd</a> </p>',1),yn=j('<div class="space-y-1"><label class="text-xs text-subtle" for="connect-name"> </label> <!></div> <div class="flex min-w-0 items-end gap-4" data-connect-appearance=""><fieldset class="min-w-0 flex-1 space-y-1"><legend class="text-xs text-subtle"> </legend> <div class="flex flex-wrap gap-1"></div></fieldset> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-host"> </label> <!> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-port"> </label> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-token"> </label> <!></div> <!> <!> <!>',1),kn=j('<div class="space-y-1"><span class="text-xs text-subtle"> </span> <p class="font-mono text-xs break-all bg-muted/50 rounded p-2"> </p></div>'),Cn=j('<p class="text-xs text-danger" role="alert"> </p>'),An=j('<div class="space-y-4"><p class="text-sm text-subtle" role="status" aria-live="polite"> </p> <!> <!></div>');function ct(q,l){const p=Kt();if(new.target)return Re({component:ct,...q});Ue(l,!0);const m=()=>Oe(dt,"$workflow$",T),R=()=>Oe(pt,"$hostManagesConnections$",T),w=()=>Oe(_t,"$syncState$",T),[T,z]=Wt(),M=(t,o=rt)=>{{const b=(de,ue=rt)=>{{let Q=_(()=>({...ue(),entry:o(),controlId:o().id}));sn(de,{get entry(){return o()},get context(){return e(Q)}})}};let ne=_(()=>`${o().id}-field`);on(t,{get id(){return e(ne)},get label(){return o().label},get description(){return o().description},get htmlFor(){return o().id},get disabled(){return e(ce)},get busy(){return e(ce)},compact:!0,class:"grid-cols-[minmax(0,1fr)_auto] items-start py-0 first:pt-0 last:pb-0 [&_[data-field-control]]:w-auto",control:b,$$slots:{control:!0}})}};let D=i(l,"active",7),x=i(l,"step",15,"details"),F=i(l,"busy",15,!1),U=i(l,"canContinue",15,!1),L=i(l,"firstInput",15,null),s=i(l,"prefillHost",7,null),y=i(l,"prefillPort",7,null),I=i(l,"prefillLabel",7,null),P=i(l,"prefillAccent",7,void 0),r=i(l,"defaultAccent",7,ve),k=i(l,"showHelp",7,!0),C=i(l,"onDone",7);const v="5181",S="https://github.com/intent-hq/intentd";function qe(t){t.preventDefault(),un(S)}let A=$(""),ee=$(Vt(ve)),se=$("auto"),E=$(""),V=$(v),G=$(""),te=$(null),be=$(!0),oe=$(!0),me=$("");const dt=fn(p),ce=_(()=>!!m()&&m().phase!=="settled");_e(()=>{F(e(ce))});const Me=_(()=>{const t=m()?.outcome;return t?.kind==="error"||t?.kind==="syncError"?t.message:t?.kind==="secretUnavailable"?n.modals_connect_secretUnavailable_error():t?.kind==="captureRejected"?t.statusCode===403?n.modals_connect_wsApiDisabled_error():n.modals_connect_tokenRejected_error():null});Gt(()=>W.dispatch(pe(p))),_e(()=>{const t=m()?.outcome;t?.kind==="captured"?(a(me,t.fingerprint,!0),x("confirm"),W.dispatch(pe(p))):t?.kind==="done"&&nt(()=>{we(),C()()})});const ut=_(()=>dn(P()===void 0?r():P())),ft=typeof window<"u"&&window.electronAPI?.platform==="darwin",_t=_n(),pt=pn(),Se=_(()=>!R()&&(w()?.supported??ft)),vt=_(()=>w()?.enabled??!1),bt=_(()=>({kind:"switch",id:"connect-detect-hosts",label:n.modals_connect_detectHosts_label(),description:n.modals_connect_detectHosts_description(),get:()=>e(be),set:t=>{a(be,t,!0)}})),mt=_(()=>({kind:"switch",id:"connect-save-to-icloud",label:n.modals_connect_saveToICloud_label(),description:n.modals_connect_saveToICloud_description(),get:()=>e(oe),set:t=>{a(oe,t,!0)}})),ie=_(()=>Number(e(V).trim())),We=_(()=>e(A).trim().length>0&&e(E).trim().length>0&&Number.isInteger(e(ie))&&e(ie)>0&&e(ie)<=65535&&e(G).trim().length>0&&!e(ce));_e(()=>{U(e(We))});function we(){x("details"),a(A,""),a(ee,r(),!0),a(se,"auto"),a(E,""),a(V,v),a(G,""),a(te,null),a(be,!0),a(oe,!0),a(me,""),W.dispatch(pe(p))}function gt(t){const o=t.clipboardData?.getData("text")??"";if(!vn(o))return;const b=bn(o);b&&(t.preventDefault(),b.hosts.length>0&&a(E,b.hosts[0],!0),b.port!==null&&a(V,String(b.port),!0),b.token&&a(G,b.token,!0),a(te,b.tcAddress,!0))}function ht(){a(te,mn(e(E))?e(E).trim():null,!0)}function xt(){e(We)&&W.dispatch(st(p,{kind:"capture",params:{host:e(E).trim(),port:e(ie),token:e(G).trim()}}))}function yt(){if(e(Se)&&!e(vt)&&e(oe)){W.dispatch(pe(p)),x("syncConfirm");return}Ie(e(Se)&&!e(oe))}function Ie(t,o={}){const b=e(E).trim();W.dispatch(st(p,{kind:"connect",enableSync:o.enableSyncAfterAdd===!0,params:{label:e(A).trim(),accent:e(ee),deviceIcon:e(se),host:b,port:e(ie),fingerprint:e(me),token:e(G).trim(),...e(te)?{tcAddress:e(te)}:{},detectHosts:e(be),...t?{syncExcluded:!0}:{}}}))}function kt(){Ie(!1,{enableSyncAfterAdd:!0})}function Ct(){Ie(!0)}function At(){x("details"),W.dispatch(pe(p))}const ge="w-full px-3 py-2 bg-background border border-border rounded text-foreground text-sm focus:outline-none focus:border-primary-ink";function St(t){return t===null?n.settings_devices_accentNone_label():{blue:n.settings_devices_accentBlue_label(),indigo:n.settings_devices_accentIndigo_label(),violet:n.settings_devices_accentViolet_label(),rose:n.settings_devices_accentRose_label(),orange:n.settings_devices_accentOrange_label(),emerald:n.settings_devices_accentEmerald_label(),teal:n.settings_devices_accentTeal_label()}[t]}_e(()=>{if(D()&&x()==="details"&&L()){const t=L();requestAnimationFrame(()=>t.focus())}});let Pe=!1;_e(()=>{const t=D()&&!Pe,o=!D()&&Pe;Pe=D(),o&&nt(we),t&&(I()&&e(A)===""&&a(A,I()),a(ee,P()===void 0?r():P(),!0),s()&&e(E)===""&&a(E,s()),y()!=null&&e(V)===v&&a(V,String(y()),!0),W.dispatch(tn()))});var wt={reset:we,capture:xt,confirm:yt,enableSyncAndAdd:kt,declineSync:Ct,back:At,get active(){return D()},set active(t){D(t),d()},get step(){return x()},set step(t="details"){x(t),d()},get busy(){return F()},set busy(t=!1){F(t),d()},get canContinue(){return U()},set canContinue(t=!1){U(t),d()},get firstInput(){return L()},set firstInput(t=null){L(t),d()},get prefillHost(){return s()},set prefillHost(t=null){s(t),d()},get prefillPort(){return y()},set prefillPort(t=null){y(t),d()},get prefillLabel(){return I()},set prefillLabel(t=null){I(t),d()},get prefillAccent(){return P()},set prefillAccent(t=void 0){P(t),d()},get defaultAccent(){return r()},set defaultAccent(t=ve){r(t),d()},get showHelp(){return k()},set showHelp(t=!0){k(t),d()},get onDone(){return C()},set onDone(t){C(t),d()},$set:ze,$on:(t,o)=>Fe(l,t,o)},he=An(),Je=B(he),It=N(Je,!0),Ke=c(Je,2);{var Pt=t=>{var o=yn(),b=K(o),ne=B(b),de=N(ne,!0),ue=c(ne,2);{let u=_(()=>n.modals_connect_name_placeholder());Ae(ue,{id:"connect-name",type:"text",get placeholder(){return e(u)},class:ge,autocomplete:"off",get ref(){return L()},set ref(f){L(f)},get value(){return e(A)},set value(f){a(A,f,!0)}})}O(b);var Q=c(b,2),$e=B(Q),Ve=B($e),Tt=N(Ve,!0),Ge=c(Ve,2);nn(Ge,21,()=>e(ut),rn,(u,f)=>{{let re=_(()=>lt("flex size-8 cursor-pointer items-center justify-center rounded-full border bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e(f)===e(ee)?"border-foreground shadow-[0_0_0_2px_var(--color-background),0_0_0_4px_var(--color-foreground)]":"border-border hover:border-input")),fe=_(()=>n.modals_connect_accentOption_ariaLabel({color:St(e(f))})),ae=_(()=>e(f)===e(ee));J(u,{type:"button",variant:"plain",get class(){return e(re)},get"aria-label"(){return e(fe)},get"aria-pressed"(){return e(ae)},onclick:()=>a(ee,e(f),!0),children:(xe,ye)=>{var ke=je(),Te=K(ke);{var Ee=le=>{var Ce=gn();g(le,Ce)},Ne=le=>{var Ce=hn();H(Mt=>Zt(Ce,1,Mt),[()=>Yt(lt("size-4 rounded-full",cn[e(f)]))]),g(le,Ce)};Z(Te,le=>{e(f)===null?le(Ee):le(Ne,-1)})}g(xe,ke)},$$slots:{default:!0}})}}),O(Ge),O($e);var Et=c($e,2);{let u=_(()=>({deviceIcon:e(se)}));an(Et,{get record(){return e(u)},portal:!0,contentClass:"z-[calc(var(--layer-modal)+1)]",get value(){return e(se)},set value(f){a(se,f,!0)}})}O(Q);var De=c(Q,2),Qe=B(De),Nt=N(Qe,!0),Xe=c(Qe,2);{let u=_(()=>n.modals_connect_host_placeholder());Ae(Xe,{id:"connect-host",type:"text",get placeholder(){return e(u)},class:ge,autocorrect:"off",autocapitalize:"off",spellcheck:"false",onpaste:gt,oninput:ht,get value(){return e(E)},set value(f){a(E,f,!0)}})}var Ot=c(Xe,2);{let u=_(()=>e(te)!==null);ln(Ot,{get relevant(){return e(u)}})}O(De);var He=c(De,2),Ye=B(He),Rt=N(Ye,!0),zt=c(Ye,2);{let u=_(()=>n.modals_connect_port_placeholder());Ae(zt,{id:"connect-port",type:"text",inputmode:"numeric",get placeholder(){return e(u)},class:ge,autocorrect:"off",autocapitalize:"off",spellcheck:"false",get value(){return e(V)},set value(f){a(V,f,!0)}})}O(He);var Le=c(He,2),Ze=B(Le),Ft=N(Ze,!0),Ut=c(Ze,2);{let u=_(()=>n.modals_connect_token_placeholder());Ae(Ut,{id:"connect-token",type:"password",get placeholder(){return e(u)},class:ge,autocorrect:"off",autocapitalize:"off",spellcheck:"false",get value(){return e(G)},set value(f){a(G,f,!0)}})}O(Le);var et=c(Le,2);M(et,()=>e(bt));var tt=c(et,2);{var Bt=u=>{M(u,()=>e(mt))};Z(tt,u=>{e(Se)&&u(Bt)})}var jt=c(tt,2);{var qt=u=>{var f=xn(),re=K(f),fe=N(re,!0),ae=c(re,2),xe=B(ae),ye=c(xe);at(ye,"href",S);var ke=c(ye);O(ae),H((Te,Ee,Ne)=>{h(fe,Te),h(xe,`${Ee??""} `),h(ke,` ${Ne??""}`)},[()=>n.modals_connect_whereToFind_help(),()=>n.modals_connect_headless_before(),()=>n.modals_connect_headless_after()]),Qt("click",ye,qe),g(u,f)};Z(jt,u=>{k()&&u(qt)})}H((u,f,re,fe,ae)=>{h(de,u),h(Tt,f),h(Nt,re),h(Rt,fe),h(Ft,ae)},[()=>n.modals_connect_name_label(),()=>n.settings_devices_accent_label(),()=>n.modals_connect_host_label(),()=>n.modals_connect_port_label(),()=>n.modals_connect_token_label()]),g(t,o)},$t=t=>{var o=kn(),b=B(o),ne=N(b,!0),de=c(b,2),ue=N(de,!0);O(o),H(Q=>{h(ne,Q),h(ue,e(me))},[()=>n.modals_connect_fingerprint_label()]),g(t,o)};Z(Ke,t=>{x()==="details"?t(Pt):x()==="confirm"&&t($t,1)})}var Dt=c(Ke,2);{var Ht=t=>{var o=Cn(),b=N(o,!0);H(()=>h(b,e(Me))),g(t,o)};Z(Dt,t=>{e(Me)&&t(Ht)})}O(he),H(t=>{at(he,"aria-busy",e(ce)),h(It,t)},[()=>x()==="details"?n.modals_connect_details_description():x()==="confirm"?n.modals_connect_confirmStep_description():n.modals_connect_enableSync_description()]),g(q,he);var Lt=Be(wt);return z(),Lt}Jt(["click"]);var ot=j("<!> <!>",1),Sn=j("<!> <!> <!>",1);function it(q,l){if(new.target)return Re({component:it,...q});Ue(l,!0);let p=i(l,"step",7),m=i(l,"busy",7),R=i(l,"canContinue",7),w=i(l,"form",7),T=i(l,"detailsSecondaryLabel",23,()=>n.modals_connect_cancel_label()),z=i(l,"onDetailsSecondary",7);var M={get step(){return p()},set step(s){p(s),d()},get busy(){return m()},set busy(s){m(s),d()},get canContinue(){return R()},set canContinue(s){R(s),d()},get form(){return w()},set form(s){w(s),d()},get detailsSecondaryLabel(){return T()},set detailsSecondaryLabel(s=n.modals_connect_cancel_label()){T(s),d()},get onDetailsSecondary(){return z()},set onDetailsSecondary(s){z(s),d()},$set:ze,$on:(s,y)=>Fe(l,s,y)},D=je(),x=K(D);{var F=s=>{var y=ot(),I=K(y);J(I,{variant:"ghost",get disabled(){return m()},get onclick(){return z()},children:(r,k)=>{X();var C=Y();H(()=>h(C,T())),g(r,C)},$$slots:{default:!0}});var P=c(I,2);{let r=_(()=>!R());J(P,{variant:"secondary",onclick:()=>w()?.capture(),get disabled(){return e(r)},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>m()?n.modals_connect_connecting_label():n.modals_connect_continue_label()]),g(k,v)},$$slots:{default:!0}})}g(s,y)},U=s=>{var y=ot(),I=K(y);J(I,{variant:"ghost",onclick:()=>w()?.back(),get disabled(){return m()},children:(r,k)=>{X();var C=Y();H(v=>h(C,v),[()=>n.modals_connect_back_label()]),g(r,C)},$$slots:{default:!0}});var P=c(I,2);J(P,{variant:"secondary",onclick:()=>w()?.confirm(),get disabled(){return m()},children:(r,k)=>{X();var C=Y();H(v=>h(C,v),[()=>m()?n.modals_connect_connecting_label():n.modals_connect_confirm_label()]),g(r,C)},$$slots:{default:!0}}),g(s,y)},L=s=>{var y=Sn(),I=K(y);J(I,{variant:"ghost",onclick:()=>w()?.back(),get disabled(){return m()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>n.modals_connect_back_label()]),g(k,v)},$$slots:{default:!0}});var P=c(I,2);J(P,{variant:"ghost",onclick:()=>w()?.declineSync(),get disabled(){return m()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>n.modals_connect_enableSync_decline_label()]),g(k,v)},$$slots:{default:!0}});var r=c(P,2);J(r,{variant:"secondary",onclick:()=>w()?.enableSyncAndAdd(),get disabled(){return m()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>m()?n.modals_connect_connecting_label():n.modals_connect_enableSync_confirm_label()]),g(k,v)},$$slots:{default:!0}}),g(s,y)};Z(x,s=>{p()==="details"?s(F):p()==="confirm"?s(U,1):s(L,-1)})}return g(q,D),Be(M)}function wn(q,l){if(new.target)return Re({component:wn,...q});Ue(l,!0);let p=i(l,"open",15,!1),m=i(l,"prefillHost",7,null),R=i(l,"prefillPort",7,null),w=i(l,"prefillLabel",7,null),T=i(l,"prefillAccent",7,void 0),z=i(l,"defaultAccent",7,ve),M=$(void 0),D=$("details"),x=$(!1),F=$(!1),U=$(null);function L(){p(!1)}var s={get open(){return p()},set open(r=!1){p(r),d()},get prefillHost(){return m()},set prefillHost(r=null){m(r),d()},get prefillPort(){return R()},set prefillPort(r=null){R(r),d()},get prefillLabel(){return w()},set prefillLabel(r=null){w(r),d()},get prefillAccent(){return T()},set prefillAccent(r=void 0){T(r),d()},get defaultAccent(){return z()},set defaultAccent(r=ve){z(r),d()},$set:ze,$on:(r,k)=>Fe(l,r,k)},y=je(),I=K(y);{var P=r=>{{const k=S=>{it(S,{get step(){return e(D)},get busy(){return e(x)},get canContinue(){return e(F)},get form(){return e(M)},onDetailsSecondary:L})};let C=_(()=>n.modals_connect_title()),v=_(()=>n.modals_connect_close_ariaLabel());en(r,{get title(){return e(C)},get closeLabel(){return e(v)},get busy(){return e(x)},get initialFocus(){return e(U)},onClose:L,dismissOnInteractOutside:!1,get open(){return p()},set open(S){p(S)},footer:k,children:(S,qe)=>{Xt(ct(S,{get active(){return p()},get prefillHost(){return m()},get prefillPort(){return R()},get prefillLabel(){return w()},get prefillAccent(){return T()},get defaultAccent(){return z()},onDone:L,get step(){return e(D)},set step(A){a(D,A,!0)},get busy(){return e(x)},set busy(A){a(x,A,!0)},get canContinue(){return e(F)},set canContinue(A){a(F,A,!0)},get firstInput(){return e(U)},set firstInput(A){a(U,A,!0)}}),A=>a(M,A,!0),()=>e(M))},$$slots:{footer:!0,default:!0}})}};Z(I,r=>{p()&&r(P)})}return g(q,y),Be(s)}export{it as C,ct as a,wn as b};
|
|
1
|
+
import{t as Re,bo as i,bm as n,bw as ze,bs as Oe,bq as Wt,b as Fe}from"./51_h0jm2.js";import{ai as Jt,bo as Kt,bs as Ue,bV as $,br as Vt,ca as _e,aD as e,bj as Gt,bH as a,c5 as nt,a5 as j,bl as N,bS as c,bA as O,b_ as H,bO as h,W as g,bn as je,c9 as _,aA as d,ay as K,a7 as Be,aB as B,bf as rt,aj as Qt,be as X,b$ as Y}from"./CJxGDkBm.js";import{i as Z}from"./PXCFrn2V.js";import{b as Xt}from"./NtFyWdpR.js";import{s as at,c as Yt,e as lt,f as Zt}from"./CpPNoOk-.js";import"./DKn1sQ32.js";import"./BGP1lrgu.js";import"./DxvSggY5.js";import"./rIUowGAi.js";import"./CN-6Tr26.js";import{C as en}from"./rei1qYSi.js";import{z as ve,J5 as W,hP as pe,sC as tn,hS as st}from"./CI4_aI7e.js";import{g as nn,i as rn}from"./Bjy4ygfJ.js";import{f as J}from"./BnA9v3pc.js";import{a as an,T as ln,S as sn}from"./CGLbiObk.js";import{I as Ae}from"./BaGw_bDr.js";import{S as on}from"./Bj-9TYLg.js";import"./BCBNqT5t.js";import"./BROVvkEL.js";/* empty css */import"./ChTqQfQN.js";import"./DrMbcJpA.js";import"./DCv0ZqUq.js";import{C as cn,c as dn,o as un}from"./Do5lDWBq.js";import{J as fn,ab as _n,a5 as pn}from"./CAV1CzzW.js";import{i as vn,p as bn}from"./D3VYu5tL.js";import{z as mn}from"./DQZlstPH.js";var gn=B('<span class="size-4 rounded-full border border-muted-foreground/60 bg-background" aria-hidden="true"></span>'),hn=B('<span aria-hidden="true"></span>'),xn=B('<p class="text-xs text-subtle"> </p> <p class="text-xs text-subtle"> <a class="text-primary-ink hover:underline">github.com/intent-hq/intentd</a> </p>',1),yn=B('<div class="space-y-1"><label class="text-xs text-subtle" for="connect-name"> </label> <!></div> <div class="flex min-w-0 items-end gap-4" data-connect-appearance=""><fieldset class="min-w-0 flex-1 space-y-1"><legend class="text-xs text-subtle"> </legend> <div class="flex flex-wrap gap-1"></div></fieldset> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-host"> </label> <!> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-port"> </label> <!></div> <div class="space-y-1"><label class="text-xs text-subtle" for="connect-token"> </label> <!></div> <!> <!> <!>',1),kn=B('<div class="space-y-1"><span class="text-xs text-subtle"> </span> <p class="font-mono text-xs break-all bg-muted/50 rounded p-2"> </p></div>'),Cn=B('<p class="text-xs text-danger" role="alert"> </p>'),An=B('<div class="space-y-4"><p class="text-sm text-subtle" role="status" aria-live="polite"> </p> <!> <!></div>');function ct(q,l){const p=Kt();if(new.target)return Re({component:ct,...q});Ue(l,!0);const m=()=>Oe(dt,"$workflow$",T),R=()=>Oe(pt,"$hostManagesConnections$",T),w=()=>Oe(_t,"$syncState$",T),[T,z]=Wt(),M=(t,o=rt)=>{{const b=(de,ue=rt)=>{{let Q=_(()=>({...ue(),entry:o(),controlId:o().id}));sn(de,{get entry(){return o()},get context(){return e(Q)}})}};let ne=_(()=>`${o().id}-field`);on(t,{get id(){return e(ne)},get label(){return o().label},get description(){return o().description},get htmlFor(){return o().id},get disabled(){return e(ce)},get busy(){return e(ce)},compact:!0,class:"grid-cols-[minmax(0,1fr)_auto] items-start py-0 first:pt-0 last:pb-0 [&_[data-field-control]]:w-auto",control:b,$$slots:{control:!0}})}};let D=i(l,"active",7),x=i(l,"step",15,"details"),F=i(l,"busy",15,!1),U=i(l,"canContinue",15,!1),L=i(l,"firstInput",15,null),s=i(l,"prefillHost",7,null),y=i(l,"prefillPort",7,null),I=i(l,"prefillLabel",7,null),P=i(l,"prefillAccent",7,void 0),r=i(l,"defaultAccent",7,ve),k=i(l,"showHelp",7,!0),C=i(l,"onDone",7);const v="5181",S="https://github.com/intent-hq/intentd";function qe(t){t.preventDefault(),un(S)}let A=$(""),ee=$(Vt(ve)),se=$("auto"),E=$(""),V=$(v),G=$(""),te=$(null),be=$(!0),oe=$(!0),me=$("");const dt=fn(p),ce=_(()=>!!m()&&m().phase!=="settled");_e(()=>{F(e(ce))});const Me=_(()=>{const t=m()?.outcome;return t?.kind==="error"||t?.kind==="syncError"?t.message:t?.kind==="secretUnavailable"?n.modals_connect_secretUnavailable_error():t?.kind==="captureRejected"?t.statusCode===403?n.modals_connect_wsApiDisabled_error():n.modals_connect_tokenRejected_error():null});Gt(()=>W.dispatch(pe(p))),_e(()=>{const t=m()?.outcome;t?.kind==="captured"?(a(me,t.fingerprint,!0),x("confirm"),W.dispatch(pe(p))):t?.kind==="done"&&nt(()=>{we(),C()()})});const ut=_(()=>dn(P()===void 0?r():P())),ft=typeof window<"u"&&window.electronAPI?.platform==="darwin",_t=_n(),pt=pn(),Se=_(()=>!R()&&(w()?.supported??ft)),vt=_(()=>w()?.enabled??!1),bt=_(()=>({kind:"switch",id:"connect-detect-hosts",label:n.modals_connect_detectHosts_label(),description:n.modals_connect_detectHosts_description(),get:()=>e(be),set:t=>{a(be,t,!0)}})),mt=_(()=>({kind:"switch",id:"connect-save-to-icloud",label:n.modals_connect_saveToICloud_label(),description:n.modals_connect_saveToICloud_description(),get:()=>e(oe),set:t=>{a(oe,t,!0)}})),ie=_(()=>Number(e(V).trim())),We=_(()=>e(A).trim().length>0&&e(E).trim().length>0&&Number.isInteger(e(ie))&&e(ie)>0&&e(ie)<=65535&&e(G).trim().length>0&&!e(ce));_e(()=>{U(e(We))});function we(){x("details"),a(A,""),a(ee,r(),!0),a(se,"auto"),a(E,""),a(V,v),a(G,""),a(te,null),a(be,!0),a(oe,!0),a(me,""),W.dispatch(pe(p))}function gt(t){const o=t.clipboardData?.getData("text")??"";if(!vn(o))return;const b=bn(o);b&&(t.preventDefault(),b.hosts.length>0&&a(E,b.hosts[0],!0),b.port!==null&&a(V,String(b.port),!0),b.token&&a(G,b.token,!0),a(te,b.tcAddress,!0))}function ht(){a(te,mn(e(E))?e(E).trim():null,!0)}function xt(){e(We)&&W.dispatch(st(p,{kind:"capture",params:{host:e(E).trim(),port:e(ie),token:e(G).trim()}}))}function yt(){if(e(Se)&&!e(vt)&&e(oe)){W.dispatch(pe(p)),x("syncConfirm");return}Ie(e(Se)&&!e(oe))}function Ie(t,o={}){const b=e(E).trim();W.dispatch(st(p,{kind:"connect",enableSync:o.enableSyncAfterAdd===!0,params:{label:e(A).trim(),accent:e(ee),deviceIcon:e(se),host:b,port:e(ie),fingerprint:e(me),token:e(G).trim(),...e(te)?{tcAddress:e(te)}:{},detectHosts:e(be),...t?{syncExcluded:!0}:{}}}))}function kt(){Ie(!1,{enableSyncAfterAdd:!0})}function Ct(){Ie(!0)}function At(){x("details"),W.dispatch(pe(p))}const ge="w-full px-3 py-2 bg-background border border-border rounded text-foreground text-sm focus:outline-none focus:border-primary-ink";function St(t){return t===null?n.settings_devices_accentNone_label():{blue:n.settings_devices_accentBlue_label(),indigo:n.settings_devices_accentIndigo_label(),violet:n.settings_devices_accentViolet_label(),rose:n.settings_devices_accentRose_label(),orange:n.settings_devices_accentOrange_label(),emerald:n.settings_devices_accentEmerald_label(),teal:n.settings_devices_accentTeal_label()}[t]}_e(()=>{if(D()&&x()==="details"&&L()){const t=L();requestAnimationFrame(()=>t.focus())}});let Pe=!1;_e(()=>{const t=D()&&!Pe,o=!D()&&Pe;Pe=D(),o&&nt(we),t&&(I()&&e(A)===""&&a(A,I()),a(ee,P()===void 0?r():P(),!0),s()&&e(E)===""&&a(E,s()),y()!=null&&e(V)===v&&a(V,String(y()),!0),W.dispatch(tn()))});var wt={reset:we,capture:xt,confirm:yt,enableSyncAndAdd:kt,declineSync:Ct,back:At,get active(){return D()},set active(t){D(t),d()},get step(){return x()},set step(t="details"){x(t),d()},get busy(){return F()},set busy(t=!1){F(t),d()},get canContinue(){return U()},set canContinue(t=!1){U(t),d()},get firstInput(){return L()},set firstInput(t=null){L(t),d()},get prefillHost(){return s()},set prefillHost(t=null){s(t),d()},get prefillPort(){return y()},set prefillPort(t=null){y(t),d()},get prefillLabel(){return I()},set prefillLabel(t=null){I(t),d()},get prefillAccent(){return P()},set prefillAccent(t=void 0){P(t),d()},get defaultAccent(){return r()},set defaultAccent(t=ve){r(t),d()},get showHelp(){return k()},set showHelp(t=!0){k(t),d()},get onDone(){return C()},set onDone(t){C(t),d()},$set:ze,$on:(t,o)=>Fe(l,t,o)},he=An(),Je=j(he),It=N(Je,!0),Ke=c(Je,2);{var Pt=t=>{var o=yn(),b=K(o),ne=j(b),de=N(ne,!0),ue=c(ne,2);{let u=_(()=>n.modals_connect_name_placeholder());Ae(ue,{id:"connect-name",type:"text",get placeholder(){return e(u)},class:ge,autocomplete:"off",get ref(){return L()},set ref(f){L(f)},get value(){return e(A)},set value(f){a(A,f,!0)}})}O(b);var Q=c(b,2),$e=j(Q),Ve=j($e),Tt=N(Ve,!0),Ge=c(Ve,2);nn(Ge,21,()=>e(ut),rn,(u,f)=>{{let re=_(()=>lt("flex size-8 cursor-pointer items-center justify-center rounded-full border bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e(f)===e(ee)?"border-foreground shadow-[0_0_0_2px_var(--color-background),0_0_0_4px_var(--color-foreground)]":"border-border hover:border-input")),fe=_(()=>n.modals_connect_accentOption_ariaLabel({color:St(e(f))})),ae=_(()=>e(f)===e(ee));J(u,{type:"button",variant:"plain",get class(){return e(re)},get"aria-label"(){return e(fe)},get"aria-pressed"(){return e(ae)},onclick:()=>a(ee,e(f),!0),children:(xe,ye)=>{var ke=Be(),Te=K(ke);{var Ee=le=>{var Ce=gn();g(le,Ce)},Ne=le=>{var Ce=hn();H(Mt=>Zt(Ce,1,Mt),[()=>Yt(lt("size-4 rounded-full",cn[e(f)]))]),g(le,Ce)};Z(Te,le=>{e(f)===null?le(Ee):le(Ne,-1)})}g(xe,ke)},$$slots:{default:!0}})}}),O(Ge),O($e);var Et=c($e,2);{let u=_(()=>({deviceIcon:e(se)}));an(Et,{get record(){return e(u)},portal:!0,contentClass:"z-[calc(var(--layer-modal)+1)]",get value(){return e(se)},set value(f){a(se,f,!0)}})}O(Q);var De=c(Q,2),Qe=j(De),Nt=N(Qe,!0),Xe=c(Qe,2);{let u=_(()=>n.modals_connect_host_placeholder());Ae(Xe,{id:"connect-host",type:"text",get placeholder(){return e(u)},class:ge,autocorrect:"off",autocapitalize:"off",spellcheck:"false",onpaste:gt,oninput:ht,get value(){return e(E)},set value(f){a(E,f,!0)}})}var Ot=c(Xe,2);{let u=_(()=>e(te)!==null);ln(Ot,{get relevant(){return e(u)}})}O(De);var He=c(De,2),Ye=j(He),Rt=N(Ye,!0),zt=c(Ye,2);{let u=_(()=>n.modals_connect_port_placeholder());Ae(zt,{id:"connect-port",type:"text",inputmode:"numeric",get placeholder(){return e(u)},class:ge,autocorrect:"off",autocapitalize:"off",spellcheck:"false",get value(){return e(V)},set value(f){a(V,f,!0)}})}O(He);var Le=c(He,2),Ze=j(Le),Ft=N(Ze,!0),Ut=c(Ze,2);{let u=_(()=>n.modals_connect_token_placeholder());Ae(Ut,{id:"connect-token",type:"password",get placeholder(){return e(u)},class:ge,autocorrect:"off",autocapitalize:"off",spellcheck:"false",get value(){return e(G)},set value(f){a(G,f,!0)}})}O(Le);var et=c(Le,2);M(et,()=>e(bt));var tt=c(et,2);{var jt=u=>{M(u,()=>e(mt))};Z(tt,u=>{e(Se)&&u(jt)})}var Bt=c(tt,2);{var qt=u=>{var f=xn(),re=K(f),fe=N(re,!0),ae=c(re,2),xe=j(ae),ye=c(xe);at(ye,"href",S);var ke=c(ye);O(ae),H((Te,Ee,Ne)=>{h(fe,Te),h(xe,`${Ee??""} `),h(ke,` ${Ne??""}`)},[()=>n.modals_connect_whereToFind_help(),()=>n.modals_connect_headless_before(),()=>n.modals_connect_headless_after()]),Qt("click",ye,qe),g(u,f)};Z(Bt,u=>{k()&&u(qt)})}H((u,f,re,fe,ae)=>{h(de,u),h(Tt,f),h(Nt,re),h(Rt,fe),h(Ft,ae)},[()=>n.modals_connect_name_label(),()=>n.settings_devices_accent_label(),()=>n.modals_connect_host_label(),()=>n.modals_connect_port_label(),()=>n.modals_connect_token_label()]),g(t,o)},$t=t=>{var o=kn(),b=j(o),ne=N(b,!0),de=c(b,2),ue=N(de,!0);O(o),H(Q=>{h(ne,Q),h(ue,e(me))},[()=>n.modals_connect_fingerprint_label()]),g(t,o)};Z(Ke,t=>{x()==="details"?t(Pt):x()==="confirm"&&t($t,1)})}var Dt=c(Ke,2);{var Ht=t=>{var o=Cn(),b=N(o,!0);H(()=>h(b,e(Me))),g(t,o)};Z(Dt,t=>{e(Me)&&t(Ht)})}O(he),H(t=>{at(he,"aria-busy",e(ce)),h(It,t)},[()=>x()==="details"?n.modals_connect_details_description():x()==="confirm"?n.modals_connect_confirmStep_description():n.modals_connect_enableSync_description()]),g(q,he);var Lt=je(wt);return z(),Lt}Jt(["click"]);var ot=B("<!> <!>",1),Sn=B("<!> <!> <!>",1);function it(q,l){if(new.target)return Re({component:it,...q});Ue(l,!0);let p=i(l,"step",7),m=i(l,"busy",7),R=i(l,"canContinue",7),w=i(l,"form",7),T=i(l,"detailsSecondaryLabel",23,()=>n.modals_connect_cancel_label()),z=i(l,"onDetailsSecondary",7);var M={get step(){return p()},set step(s){p(s),d()},get busy(){return m()},set busy(s){m(s),d()},get canContinue(){return R()},set canContinue(s){R(s),d()},get form(){return w()},set form(s){w(s),d()},get detailsSecondaryLabel(){return T()},set detailsSecondaryLabel(s=n.modals_connect_cancel_label()){T(s),d()},get onDetailsSecondary(){return z()},set onDetailsSecondary(s){z(s),d()},$set:ze,$on:(s,y)=>Fe(l,s,y)},D=Be(),x=K(D);{var F=s=>{var y=ot(),I=K(y);J(I,{variant:"ghost",get disabled(){return m()},get onclick(){return z()},children:(r,k)=>{X();var C=Y();H(()=>h(C,T())),g(r,C)},$$slots:{default:!0}});var P=c(I,2);{let r=_(()=>!R());J(P,{variant:"secondary",onclick:()=>w()?.capture(),get disabled(){return e(r)},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>m()?n.modals_connect_connecting_label():n.modals_connect_continue_label()]),g(k,v)},$$slots:{default:!0}})}g(s,y)},U=s=>{var y=ot(),I=K(y);J(I,{variant:"ghost",onclick:()=>w()?.back(),get disabled(){return m()},children:(r,k)=>{X();var C=Y();H(v=>h(C,v),[()=>n.modals_connect_back_label()]),g(r,C)},$$slots:{default:!0}});var P=c(I,2);J(P,{variant:"secondary",onclick:()=>w()?.confirm(),get disabled(){return m()},children:(r,k)=>{X();var C=Y();H(v=>h(C,v),[()=>m()?n.modals_connect_connecting_label():n.modals_connect_confirm_label()]),g(r,C)},$$slots:{default:!0}}),g(s,y)},L=s=>{var y=Sn(),I=K(y);J(I,{variant:"ghost",onclick:()=>w()?.back(),get disabled(){return m()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>n.modals_connect_back_label()]),g(k,v)},$$slots:{default:!0}});var P=c(I,2);J(P,{variant:"ghost",onclick:()=>w()?.declineSync(),get disabled(){return m()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>n.modals_connect_enableSync_decline_label()]),g(k,v)},$$slots:{default:!0}});var r=c(P,2);J(r,{variant:"secondary",onclick:()=>w()?.enableSyncAndAdd(),get disabled(){return m()},children:(k,C)=>{X();var v=Y();H(S=>h(v,S),[()=>m()?n.modals_connect_connecting_label():n.modals_connect_enableSync_confirm_label()]),g(k,v)},$$slots:{default:!0}}),g(s,y)};Z(x,s=>{p()==="details"?s(F):p()==="confirm"?s(U,1):s(L,-1)})}return g(q,D),je(M)}function wn(q,l){if(new.target)return Re({component:wn,...q});Ue(l,!0);let p=i(l,"open",15,!1),m=i(l,"prefillHost",7,null),R=i(l,"prefillPort",7,null),w=i(l,"prefillLabel",7,null),T=i(l,"prefillAccent",7,void 0),z=i(l,"defaultAccent",7,ve),M=$(void 0),D=$("details"),x=$(!1),F=$(!1),U=$(null);function L(){p(!1)}var s={get open(){return p()},set open(r=!1){p(r),d()},get prefillHost(){return m()},set prefillHost(r=null){m(r),d()},get prefillPort(){return R()},set prefillPort(r=null){R(r),d()},get prefillLabel(){return w()},set prefillLabel(r=null){w(r),d()},get prefillAccent(){return T()},set prefillAccent(r=void 0){T(r),d()},get defaultAccent(){return z()},set defaultAccent(r=ve){z(r),d()},$set:ze,$on:(r,k)=>Fe(l,r,k)},y=Be(),I=K(y);{var P=r=>{{const k=S=>{it(S,{get step(){return e(D)},get busy(){return e(x)},get canContinue(){return e(F)},get form(){return e(M)},onDetailsSecondary:L})};let C=_(()=>n.modals_connect_title()),v=_(()=>n.modals_connect_close_ariaLabel());en(r,{get title(){return e(C)},get closeLabel(){return e(v)},get busy(){return e(x)},get initialFocus(){return e(U)},onClose:L,dismissOnInteractOutside:!1,get open(){return p()},set open(S){p(S)},footer:k,children:(S,qe)=>{Xt(ct(S,{get active(){return p()},get prefillHost(){return m()},get prefillPort(){return R()},get prefillLabel(){return w()},get prefillAccent(){return T()},get defaultAccent(){return z()},onDone:L,get step(){return e(D)},set step(A){a(D,A,!0)},get busy(){return e(x)},set busy(A){a(x,A,!0)},get canContinue(){return e(F)},set canContinue(A){a(F,A,!0)},get firstInput(){return e(U)},set firstInput(A){a(U,A,!0)}}),A=>a(M,A,!0),()=>e(M))},$$slots:{footer:!0,default:!0}})}};Z(I,r=>{p()&&r(P)})}return g(q,y),je(s)}export{it as C,ct as a,wn as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $c=Object.defineProperty;var td=Object.getPrototypeOf;var ed=Reflect.get;var Au=n=>{throw TypeError(n)};var nd=(n,t,e)=>t in n?$c(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var C=(n,t,e)=>nd(n,typeof t!="symbol"?t+"":t,e),Xs=(n,t,e)=>t.has(n)||Au("Cannot "+e);var o=(n,t,e)=>(Xs(n,t,"read from private field"),e?e.call(n):t.get(n)),p=(n,t,e)=>t.has(n)?Au("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),S=(n,t,e,r)=>(Xs(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),E=(n,t,e)=>(Xs(n,t,"access private method"),e);var Pu=(n,t,e,r)=>({set _(i){S(n,t,i,e)},get _(){return o(n,t,r)}}),Eu=(n,t,e)=>ed(td(n),e,t);import{t as ct,bo as l,bw as dt,b as ht,br as Nr,bp as Rn}from"./51_h0jm2.js";import{A as rd,bV as Y,c8 as Iu,ao as Cn,bY as Un,bU as id,b5 as Oo,aD as f,bH as P,aV as Cr,c9 as M,br as Ln,aa as pl,bi as mt,aM as od,aG as na,bI as sd,cb as ad,ca as xt,c5 as _r,c0 as ud,bs as ft,a7 as tt,ay as J,bf as at,W as R,bn as gt,aA as c,aF as ld,bb as cd,c3 as dd,at as ml,bk as hd,bS as Re,aB as At,bo as Ha,a5 as St,bA as wt,b$ as vl,b_ as Wn,bO as ra,bl as fd,be as gd}from"./CJxGDkBm.js";import{i as bt}from"./PXCFrn2V.js";import{s as ot}from"./DxvSggY5.js";import{d as Gs,b as Se,e as mn,c as Wo,f as Dr}from"./CpPNoOk-.js";import{b as bl}from"./NtFyWdpR.js";import{g as pd,I as md}from"./Bjy4ygfJ.js";import{J as vd,f as bd,o as yd,g as wd,n as xd}from"./
|
|
1
|
+
var $c=Object.defineProperty;var td=Object.getPrototypeOf;var ed=Reflect.get;var Au=n=>{throw TypeError(n)};var nd=(n,t,e)=>t in n?$c(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var C=(n,t,e)=>nd(n,typeof t!="symbol"?t+"":t,e),Xs=(n,t,e)=>t.has(n)||Au("Cannot "+e);var o=(n,t,e)=>(Xs(n,t,"read from private field"),e?e.call(n):t.get(n)),p=(n,t,e)=>t.has(n)?Au("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),S=(n,t,e,r)=>(Xs(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),E=(n,t,e)=>(Xs(n,t,"access private method"),e);var Pu=(n,t,e,r)=>({set _(i){S(n,t,i,e)},get _(){return o(n,t,r)}}),Eu=(n,t,e)=>ed(td(n),e,t);import{t as ct,bo as l,bw as dt,b as ht,br as Nr,bp as Rn}from"./51_h0jm2.js";import{A as rd,bV as Y,c8 as Iu,ao as Cn,bY as Un,bU as id,b5 as Oo,aD as f,bH as P,aV as Cr,c9 as M,br as Ln,aa as pl,bi as mt,aM as od,aG as na,bI as sd,cb as ad,ca as xt,c5 as _r,c0 as ud,bs as ft,a7 as tt,ay as J,bf as at,W as R,bn as gt,aA as c,aF as ld,bb as cd,c3 as dd,at as ml,bk as hd,bS as Re,aB as At,bo as Ha,a5 as St,bA as wt,b$ as vl,b_ as Wn,bO as ra,bl as fd,be as gd}from"./CJxGDkBm.js";import{i as bt}from"./PXCFrn2V.js";import{s as ot}from"./DxvSggY5.js";import{d as Gs,b as Se,e as mn,c as Wo,f as Dr}from"./CpPNoOk-.js";import{b as bl}from"./NtFyWdpR.js";import{g as pd,I as md}from"./Bjy4ygfJ.js";import{J as vd,f as bd,o as yd,g as wd,n as xd}from"./rIUowGAi.js";import{c as Or}from"./DGmOjLYi.js";import{k as Cd}from"./C9UsZ4re.js";function Od(){return Symbol(rd)}var ve,re,be,Qo,de,Pr,Po;const su=class su extends Map{constructor(e){super();p(this,de);p(this,ve,new Map);p(this,re,Y(0));p(this,be,Y(0));p(this,Qo,Iu||-1);if(Cn&&(e=new Map(e),Un(o(this,re),"SvelteMap version"),Un(o(this,be),"SvelteMap.size")),e){for(var[r,i]of e)super.set(r,i);o(this,be).v=super.size}}has(e){var r=o(this,ve),i=r.get(e);if(i===void 0)if(super.has(e))i=E(this,de,Pr).call(this,0),Cn&&Un(i,`SvelteMap get(${Oo(e)})`),r.set(e,i);else return f(o(this,re)),!1;return f(i),!0}forEach(e,r){E(this,de,Po).call(this),super.forEach(e,r)}get(e){var r=o(this,ve),i=r.get(e);if(i===void 0)if(super.has(e))i=E(this,de,Pr).call(this,0),Cn&&Un(i,`SvelteMap get(${Oo(e)})`),r.set(e,i);else{f(o(this,re));return}return f(i),super.get(e)}getOrInsert(e,r){return super.has(e)||this.set(e,r),this.get(e)}getOrInsertComputed(e,r){return super.has(e)||this.set(e,r(e)),this.get(e)}set(e,r){var i=o(this,ve),s=i.get(e),a=super.get(e),u=super.set(e,r),d=o(this,re);if(s===void 0)s=E(this,de,Pr).call(this,0),Cn&&Un(s,`SvelteMap get(${Oo(e)})`),i.set(e,s),P(o(this,be),super.size),Cr(d);else if(a!==r){Cr(s);var g=d.reactions===null?null:new Set(d.reactions),m=g===null||!s.reactions?.every(h=>g.has(h));m&&Cr(d)}return u}delete(e){var r=o(this,ve),i=r.get(e),s=super.delete(e);return i!==void 0&&(r.delete(e),P(i,-1)),s&&(P(o(this,be),super.size),Cr(o(this,re))),s}clear(){if(super.size!==0){super.clear();var e=o(this,ve);P(o(this,be),0);for(var r of e.values())P(r,-1);Cr(o(this,re)),e.clear()}}keys(){return f(o(this,re)),super.keys()}values(){return E(this,de,Po).call(this),super.values()}entries(){return E(this,de,Po).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return f(o(this,be)),super.size}};ve=new WeakMap,re=new WeakMap,be=new WeakMap,Qo=new WeakMap,de=new WeakSet,Pr=function(e){return Iu===o(this,Qo)?Y(e):id(e)},Po=function(){f(o(this,re));var e=o(this,ve);if(o(this,be).v!==e.size){for(var r of Eu(su.prototype,this,"keys").call(this))if(!e.has(r)){var i=E(this,de,Pr).call(this,0);Cn&&Un(i,`SvelteMap get(${Oo(r)})`),e.set(r,i)}}for([,i]of o(this,ve))f(i)};let ia=su;function Td(n){return typeof n=="function"}function vo(n){return n!==null&&typeof n=="object"}const Sd=["string","number","bigint","boolean"];function oa(n){return n==null||Sd.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>oa(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const pr=Symbol("box"),_s=Symbol("is-writable");function W(n,t){const e=M(n);return t?{[pr]:!0,[_s]:!0,get current(){return f(e)},set current(r){t(r)}}:{[pr]:!0,get current(){return n()}}}function bo(n){return vo(n)&&pr in n}function Ra(n){return bo(n)&&_s in n}function yl(n){return bo(n)?n:Td(n)?W(n):Zt(n)}function Ad(n){return Object.entries(n).reduce((t,[e,r])=>bo(r)?(Ra(r)?Object.defineProperty(t,e,{get(){return r.current},set(i){r.current=i}}):Object.defineProperty(t,e,{get(){return r.current}}),t):Object.assign(t,{[e]:r}),{})}function Pd(n){return Ra(n)?{[pr]:!0,get current(){return n.current}}:n}function Zt(n){let t=Y(Ln(n));return{[pr]:!0,[_s]:!0,get current(){return f(t)},set current(e){P(t,e,!0)}}}function Vn(n){let t=Y(Ln(n));return{[pr]:!0,[_s]:!0,get current(){return f(t)},set current(e){P(t,e,!0)}}}Vn.from=yl;Vn.with=W;Vn.flatten=Ad;Vn.readonly=Pd;Vn.isBox=bo;Vn.isWritableBox=Ra;function wl(...n){return function(t){for(const e of n)if(e){if(t.defaultPrevented)return;typeof e=="function"?e.call(this,t):e.current?.call(this,t)}}}var Fu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ed=/\n/g,Id=/^\s*/,Fd=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Dd=/^:\s*/,Md=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kd=/^[;\s]*/,Nd=/^\s+|\s+$/g,_d=`
|
|
2
2
|
`,Du="/",Mu="*",On="",Bd="comment",Ld="declaration";function Wd(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(x){var b=x.match(Ed);b&&(e+=b.length);var A=x.lastIndexOf(_d);r=~A?x.length-A:r+x.length}function s(){var x={line:e,column:r};return function(b){return b.position=new a(x),g(),b}}function a(x){this.start=x,this.end={line:e,column:r},this.source=t.source}a.prototype.content=n;function u(x){var b=new Error(t.source+":"+e+":"+r+": "+x);if(b.reason=x,b.filename=t.source,b.line=e,b.column=r,b.source=n,!t.silent)throw b}function d(x){var b=x.exec(n);if(b){var A=b[0];return i(A),n=n.slice(A.length),b}}function g(){d(Id)}function m(x){var b;for(x=x||[];b=h();)b!==!1&&x.push(b);return x}function h(){var x=s();if(!(Du!=n.charAt(0)||Mu!=n.charAt(1))){for(var b=2;On!=n.charAt(b)&&(Mu!=n.charAt(b)||Du!=n.charAt(b+1));)++b;if(b+=2,On===n.charAt(b-1))return u("End of comment missing");var A=n.slice(2,b-2);return r+=2,i(A),n=n.slice(b),r+=2,x({type:Bd,comment:A})}}function v(){var x=s(),b=d(Fd);if(b){if(h(),!d(Dd))return u("property missing ':'");var A=d(Md),D=x({type:Ld,property:ku(b[0].replace(Fu,On)),value:A?ku(A[0].replace(Fu,On)):On});return d(kd),D}}function y(){var x=[];m(x);for(var b;b=v();)b!==!1&&(x.push(b),m(x));return x}return g(),y()}function ku(n){return n?n.replace(Nd,On):On}function Kd(n,t){let e=null;if(!n||typeof n!="string")return e;const r=Wd(n),i=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:u}=s;i?t(a,u,s):u&&(e=e||{},e[a]=u)}),e}const Hd=/\d/,Rd=["-","_","/","."];function Vd(n=""){if(!Hd.test(n))return n!==n.toLowerCase()}function zd(n){const t=[];let e="",r,i;for(const s of n){const a=Rd.includes(s);if(a===!0){t.push(e),e="",r=void 0;continue}const u=Vd(s);if(i===!1){if(r===!1&&u===!0){t.push(e),e=s,r=u;continue}if(r===!0&&u===!1&&e.length>1){const d=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=d+s,r=u;continue}}e+=s,r=u,i=a}return t.push(e),t}function xl(n){return n?zd(n).map(t=>jd(t)).join(""):""}function Ud(n){return Yd(xl(n||""))}function jd(n){return n?n[0].toUpperCase()+n.slice(1):""}function Yd(n){return n?n[0].toLowerCase()+n.slice(1):""}function Er(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[xl(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Ud(r)]=i}return Kd(n,e),t}function Xn(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function Xd(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const Gd=Xd(/[A-Z]/,n=>`-${n.toLowerCase()}`);function qd(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${Gd(t)}: ${n[t]};`).join(`
|
|
3
3
|
`)}function Cl(n={}){return qd(n).replace(`
|
|
4
4
|
`," ")}const Zd=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Jd=new Set(Zd);function Qd(n){return Jd.has(n)}function Te(...n){const t={...n[0]};for(let e=1;e<n.length;e++){const r=n[e];if(r){for(const i of Object.keys(r)){const s=t[i],a=r[i],u=typeof s=="function",d=typeof a=="function";if(u&&Qd(i)){const g=s,m=a;t[i]=wl(g,m)}else if(u&&d)t[i]=Xn(s,a);else if(i==="class"){const g=oa(s),m=oa(a);g&&m?t[i]=Gs(s,a):g?t[i]=Gs(s):m&&(t[i]=Gs(a))}else if(i==="style"){const g=typeof s=="object",m=typeof a=="object",h=typeof s=="string",v=typeof a=="string";if(g&&m)t[i]={...s,...a};else if(g&&v){const y=Er(a);t[i]={...s,...y}}else if(h&&m){const y=Er(s);t[i]={...y,...a}}else if(h&&v){const y=Er(s),x=Er(a);t[i]={...y,...x}}else g?t[i]=s:m?t[i]=a:h?t[i]=s:v&&(t[i]=a)}else t[i]=a!==void 0?a:s}for(const i of Object.getOwnPropertySymbols(r)){const s=t[i],a=r[i];t[i]=a!==void 0?a:s}}}return typeof t.style=="object"&&(t.style=Cl(t.style).replaceAll(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as I}from"./
|
|
1
|
+
import{p as I}from"./2CvTs4Gl.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./aitTA173.js";import{p as U}from"./C0gEyGJV.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J5 as r,b0 as n}from"./CI4_aI7e.js";import{r as a}from"./DxvSggY5.js";import{bm as o}from"./51_h0jm2.js";const l=r.createSelector(e=>e.userPreferences.agentRulesEditor),S=r.createSelector(e=>{const t=l.select(e);return t.content.trim()!==t.originalContent.trim()}),d=r.createSelector(e=>e.userPreferences.agentFontStyle);r.createSelector(e=>{switch(e.userPreferences.agentFontStyle){case"sans":return"Sans-serif";case"monospace":return"Monospace";default:return"Sans-serif"}});const P=r.createSelector(e=>e.userPreferences.agentFontStyle==="monospace"),h=r.createSelector(e=>e.userPreferences.updateChannel),p=r.createSelector(e=>e.userPreferences.spellcheckEnabled),b=r.createSelector(e=>e.userPreferences.zoomFactor),m=r.createSelector(e=>e.userPreferences.showArchived),y=r.createSelector(e=>e.userPreferences.groupByRepo),g=r.createSelector(e=>e.userPreferences.hasCompletedProviderSetup),E=r.createSelector(e=>e.userPreferences?.showReasoningBlocks??!1),F=r.createSelector(e=>e.userPreferences?.chatAuroraEnabled??!0),k=r.createSelector(e=>e.userPreferences?.chatContentWidth??"full"),v=r.createSelector(e=>e.userPreferences?.collapseToolRuns??!0),A=r.createSelector(e=>e.userPreferences?.shellTransparencyEnabled??!0),C=r.createSelector(e=>e.userPreferences?.menuBarAutoHide??!1),R=r.createSelector(e=>e.userPreferences?.reduceMotionOnBattery??!1),L=r.createSelector(e=>e.userPreferences?.pauseAnimationsWhenUnfocused??!1),M=r.createSelector(e=>e.userPreferences?.labsSettingsVisible??!1),T=r.createSelector(e=>e.userPreferences?.labsMultiplayerEnabled??!0),w=r.createSelector(e=>e.userPreferences?.preferencesHydrated===!0),D=r.createSelector(e=>e.userPreferences?.nativeReviewEnabled===!0),B=r.createSelector(e=>e.userPreferences?.labsRemoteAgentsEnabled===!0),N=r.createSelector(e=>e.userPreferences?.labsPlainFolderWorkspacesEnabled===!0),O=r.createSelector(e=>e.userPreferences?.labsTabGroupsEnabled===!0),W=r.createSelector(e=>e.userPreferences?.labsSshMachineSetupEnabled===!0),H=r.createSelector(e=>1/e.userPreferences.zoomFactor),_=r.createSelector(e=>e.userPreferences.noteFontStyle);r.createSelector(e=>{switch(e.userPreferences.noteFontStyle){case"sans":return"Sans-serif";case"serif":return"Serif";case"monospace":return"Monospace";default:return"Sans-serif"}});const U=r.createSelector(e=>e.userPreferences.noteFontStyle==="monospace"),V=r.createSelector(e=>e.userPreferences.codeFontFamily),G=r.createSelector(e=>{const{codeFontFamily:t}=e.userPreferences;return t==="system-default"?n:`'${t}', monospace`});r.createSelector(e=>{const{codeFontFamily:t}=e.userPreferences;return t==="system-default"?o.settings_fonts_systemDefault_label():t});const I=r.createSelector(e=>{const{systemFonts:t}=e.userPreferences,c=[{value:"system-default",get label(){return o.settings_fonts_systemDefault_label()},fontFamily:n}];for(const s of t)c.push({value:s,label:s,fontFamily:`'${s}', monospace`});return c}),z=r.createSelector(e=>e.userPreferences.enabled),x=r.createSelector(e=>e.userPreferences.soundEnabled),J=r.createSelector(e=>e.userPreferences.soundOnlyWhenUnfocused),$=r.createSelector(e=>e.userPreferences.volume),j=r.createSelector(e=>({editId:e.userPreferences.pendingNotificationVolumeEditId,hydrationEpoch:e.userPreferences.notificationVolumeHydrationEpoch})),q=r.createSelector(e=>e.userPreferences.activityLogPresets),K=r.createSelector(e=>e.userPreferences.languagePreference),Q=r.createSelector(e=>e.userPreferences?.githubLinkDefaultAction??"show-choices"),Y=r.createSelector(e=>e.userPreferences.shortcutOverrides),Z=r.createSelector(e=>a(e.userPreferences.languagePreference)),X=r.createSelector(e=>e.userPreferences.dockShortcuts??null),ee=r.createSelector(e=>e.userPreferences.dockShortcutPending??!1),re=r.createSelector(e=>e.userPreferences.dockShortcutCaptureToken??null),te=r.createSelector(e=>e.userPreferences.dockShortcutError??null);export{K as A,C as B,D as C,_ as D,z as E,$ as F,j as G,L as H,R as I,Z as J,A as K,Y as L,m as M,E as N,x as O,J as P,p as Q,h as R,w as S,b as T,d as a,l as b,S as c,F as d,k as e,V as f,G as g,I as h,v as i,H as j,re as k,te as l,ee as m,X as n,Q as o,y as p,g as q,P as r,q as s,U as t,T as u,N as v,B as w,M as x,W as y,O as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as et,bo as h,bw as tt,bs as ee,bq as nt,b as ot,bm as M}from"./51_h0jm2.js";import{bs as it,bk as rt,a7 as Tt,ay as _e,aD as i,W as D,bn as at,c9 as xe,aA as v,a5 as K,bS as $,bl as Ce,bA as Y,b_ as me,bO as re,aB as te,cd as It,ca as P,bH as T,bj as Pt,bV as oe}from"./CJxGDkBm.js";import{i as Q}from"./PXCFrn2V.js";import{b as zt}from"./NtFyWdpR.js";import{ensureMonacoInitialized as Ae,initializeMonaco as He,monaco as Nt}from"./Gr7b8MIr.js";import{defineMonacoThemes as Ue,getActiveMonacoThemeName as ye}from"./ByfLGh4b.js";import{c as At}from"./ChTqQfQN.js";import{g as Ve,f as Vt}from"./CpPNoOk-.js";import{J4 as st}from"./CbRsc9i4.js";import{f as Ge}from"./CdOh_Fmv.js";import"./Cgn_eC9-.js";import{F as Je,bd as Wt,bo as $t}from"./DSQT151l.js";import{i as Xe}from"./CL3a4Hm1.js";import{w as Ze}from"./Bqd7fdCF.js";import{dE as Dt,cy as Ot}from"./CgwFGLCK.js";import{g as Rt}from"./CnztNSaN.js";import{c as jt}from"./D6dNunKo.js";import{d as ie}from"./B0Z-1lwJ.js";import{g as Bt}from"./A4nvdmL6.js";import{g as B,R as Ke,U as Ye}from"./DyHCBf0T.js";const lt=st.createSelector(s=>s.agentFollow.isFollowing),qt=st.createSelector(s=>s.agentFollow.agentColor);var Ht=te('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function ct(s,a){if(new.target)return et({component:ct,...s});it(a,!0);const f=()=>ee(ae,"$isFollowing$",C),k=()=>ee(z,"$agentColor$",C),[C,N]=nt(),ae=lt(),z=qt();let E=h(a,"content",15),l=h(a,"onContentChange",7),A=h(a,"isActive",7,!1),g=null,w=null,pe="";rt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:F,isAddition:S,speed:I=30}=b;R(),S?he(F,I):ve(F,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const F=g.signal,S=c.split("");w=(async()=>{for(let I=0;I<S.length&&!F.aborted;I++){pe+=S[I],E(E()+S[I]),l()(E());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function ve(c,b){g=new AbortController;const F=g.signal,S=E().indexOf(c);if(S===-1)return;const I=E().slice(0,S),V=E().slice(S+c.length);w=(async()=>{for(let H=c.length;H>0&&!F.aborted;H--){const Me=c.slice(0,H-1);E(I+Me+V),l()(E());const ke=b*.7+(Math.random()*5-2.5);await new Promise(Ee=>setTimeout(Ee,ke))}})(),await w}let se=xe(()=>w!==null),x=xe(()=>i(se)?"animate-blink":"");var j={get content(){return E()},set content(c){E(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:tt,$on:(c,b)=>ot(a,c,b)},ne=Tt(),le=_e(ne);{var q=c=>{var b=Ht(),F=K(b),S=$(F,2),I=Ce(S,!0);Y(b),me(V=>{Ve(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Vt(F,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ve(F,`background: ${k()?.start??""};`),Ve(S,`color: ${k()?.start??""};`),re(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};Q(le,c=>{i(se)&&f()&&c(q)})}D(s,ne);var L=at(j);return N(),L}function En(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ut(s,a){return a.map(f=>{const k=Gt(f.type),C=Jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Gt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function Jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Xt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function dt(s){return s.startsWith("/")?s:`/${s}`}function Zt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Kt(s,a){const f=dt(s),k=f.toLowerCase(),C=`.__editor_${Zt(a)}`,N=Xt.find(E=>k.endsWith(E));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ae=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ae?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Yt(s){return dt(s)}var Qe=te("<!> ",1),Qt=te('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),en=te('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),tn=te('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),nn=te('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),on=te('<div class="relative h-full w-full"><!></div>');function rn(s,a){if(new.target)return et({component:rn,...s});it(a,!0);const f=()=>ee(ut,"$workspaceById",z),k=()=>ee(ht,"$isFollowing$",z),C=()=>ee(I,"$isDarkTheme",z),N=()=>ee(S,"$codeFontFamilyCSS",z),ae=()=>ee(ft,"$isWorkspaceHostLocal$",z),[z,E]=nt(),l=At("CodeEditor"),A=500*1024;let g=h(a,"value",15,""),w=h(a,"language",7,"javascript"),pe=h(a,"theme",7,"light"),O=h(a,"readOnly",7,!1),R=h(a,"lineNumbers",7,!0),he=h(a,"highlightActiveLine",7,!0),ve=h(a,"diffMode",7,!1),se=h(a,"originalValue",7,""),x=h(a,"fileName",7,""),j=h(a,"lineWrapping",7,!0),ne=h(a,"jumpTo",7,void 0),le=h(a,"lineChanges",23,()=>[]),q=h(a,"workspaceId",7),L=h(a,"filePath",7),c=h(a,"placeholder",7),b=h(a,"isPanelFocused",7,!0),F=h(a,"externalContentVersion",7,0);const S=Rt(),I=jt(),V=Bt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),Me=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),ke=H?M.layout_panelTabBar_fileManagerExplorer_label():Me?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),Ee=xe(()=>q()??V??void 0),Le=It(q()??V??"");P(()=>{Le.set(q()??V??"")});const ut=Dt(Le),ft=Ot(Le),We=Ze("externalEditors"),$e=Ze("systemFileManager");function De(){return f()}let U=oe(!1),we=oe(0);function gt(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function mt(){if(!L()){l.error("Cannot open file: missing file path");return}let e;if(L().startsWith("/"))e=L();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${L()}`}try{await Xe("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function pt(){if(!L()){l.error("Cannot reveal file: missing file path");return}let e;if(L().startsWith("/"))e=L();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${L()}`}try{await Xe("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=oe(void 0),t=null,G=null,J=oe(!1);const ht=lt();let Fe=xe(k),Oe=oe(0);const vt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let ce=[],Re;function de(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function wt(e){const n=Ye.file(Yt(e));return B.getModel(n)?Ye.file(Kt(e,vt)):n}function Se(e,n){je();const o=L()||x();return o?(G=B.createModel(e,n,wt(o)),G):(G=B.createModel(e,n),G)}function je(){G&&(G.dispose(),G=null)}function Be(){if(t){try{t.dispose()}catch{}t=null,T(J,!1)}je()}let Te=oe(!1);P(()=>{const n=de(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),T(U,!1),T(we,0),T(Te,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),T(U,!0),T(we,n,!0),t&&Be())}),P(()=>{i(Te)&&i(d)&&!t&&!i(U)&&(T(Te,!1),(async()=>{try{const e=de(g());if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Ue();const n=be(w()),o=ye(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Se(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ie("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=de(g()),n=F(),o=n!==i(Oe);if(t){if(t.getValue()!==e&&(!i(Fe)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&T(Oe,n,!0)}}),P(()=>{const e=le();if(!t||!e||e.length===0){t&&ce.length>0&&(ce=t.deltaDecorations(ce,[]));return}const n=Ut(Nt,e);ce=t.deltaDecorations(ce,n)}),P(()=>{if(!t||!i(Fe))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const p=new Ke(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const p=new Ke(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=be(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(ye(e))});function be(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}rt(async()=>{if(!i(d))return;try{const o=de(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),T(U,!0),T(we,o.length,!0);return}if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Ue();const u=be(w()),m=ye(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Se(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ie("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ae();const u=de(g()),m=Se(u,be(w()));t=B.create(i(d),{model:m,theme:ye(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const p=t?.getModel()?.getValueInRange(_)||"";p&&ie("editor:selection-change",{text:p,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),Re=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function bt(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function yt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Pt(()=>{Re?.(),Be()}),P(()=>{const e=ne(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,p={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(p),t.revealPositionInCenterIfOutsideViewport(p,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var _t={focus:bt,runShortcut:yt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return pe()},set theme(e="light"){pe(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return ve()},set diffMode(e=!1){ve(e),v()},get originalValue(){return se()},set originalValue(e=""){se(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ne()},set jumpTo(e=void 0){ne(e),v()},get lineChanges(){return le()},set lineChanges(e=[]){le(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return L()},set filePath(e){L(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return F()},set externalContentVersion(e=0){F(e),v()},$set:tt,$on:(e,n)=>ot(a,e,n)},Ie=on(),Ct=K(Ie);{var xt=e=>{var n=en(),o=K(n),u=K(o),m=$(K(u),2),y=Ce(m,!0),_=$(m,2),r=Ce(_,!0),p=$(_,2);{var W=X=>{var ue=Qt(),qe=K(ue);{var Et=Z=>{Ge(Z,{variant:"secondary",size:"sm",onclick:mt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return Wt},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Pe,fe)},$$slots:{default:!0}})};Q(qe,Z=>{We&&Z(Et)})}var Lt=$(qe,2);{var Ft=Z=>{Ge(Z,{variant:"ghost",size:"sm",onclick:pt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return $t},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:ke})]),D(Pe,fe)},$$slots:{default:!0}})};Q(Lt,Z=>{$e&&Z(Ft)})}Y(ue),D(X,ue)};Q(p,X=>{i(Ee)&&L()&&ae()&&(We||$e)&&X(W)})}Y(u),Y(o),Y(n),me((X,ue)=>{re(y,X),re(r,ue)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:gt(i(we))})]),D(e,n)},Mt=e=>{var n=nn(),o=_e(n);{var u=r=>{ct(r,{onContentChange:p=>g(p),isActive:!0,get content(){return g()},set content(p){g(p)}})};Q(o,r=>{i(Fe)&&r(u)})}var m=$(o,2);zt(m,r=>T(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var p=tn(),W=K(p),X=Ce(W,!0);Y(p),me(()=>re(X,c())),D(r,p)};Q(y,r=>{c()&&!g()&&r(_)})}D(e,n)};Q(Ct,e=>{i(U)?e(xt):e(Mt,-1)})}Y(Ie),D(s,Ie);var kt=at(_t);return E(),kt}export{rn as C,En as p};
|
|
1
|
+
import{t as et,bo as h,bw as tt,bs as ee,bq as nt,b as ot,bm as M}from"./51_h0jm2.js";import{bs as it,bk as rt,a7 as Tt,ay as _e,aD as i,W as D,bn as at,c9 as xe,aA as v,a5 as K,bS as $,bl as Ce,bA as Y,b_ as me,bO as re,aB as te,cd as It,ca as P,bH as T,bj as Pt,bV as oe}from"./CJxGDkBm.js";import{i as Q}from"./PXCFrn2V.js";import{b as zt}from"./NtFyWdpR.js";import{ensureMonacoInitialized as Ae,initializeMonaco as He,monaco as Nt}from"./Gr7b8MIr.js";import{defineMonacoThemes as Ue,getActiveMonacoThemeName as ye}from"./ByfLGh4b.js";import{c as At}from"./ChTqQfQN.js";import{g as Ve,f as Vt}from"./CpPNoOk-.js";import{J5 as st}from"./CI4_aI7e.js";import{f as Ge}from"./BnA9v3pc.js";import"./rIUowGAi.js";import{F as Je,bd as Wt,bo as $t}from"./DSQT151l.js";import{i as Xe}from"./CL3a4Hm1.js";import{w as Ze}from"./Bqd7fdCF.js";import{dE as Dt,cy as Ot}from"./C2wWLl1x.js";import{g as Rt}from"./BoQ8Q7zJ.js";import{c as jt}from"./BLb6jd9K.js";import{d as ie}from"./B0Z-1lwJ.js";import{g as Bt}from"./DcsxLfDg.js";import{g as B,R as Ke,U as Ye}from"./DyHCBf0T.js";const lt=st.createSelector(s=>s.agentFollow.isFollowing),qt=st.createSelector(s=>s.agentFollow.agentColor);var Ht=te('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function ct(s,a){if(new.target)return et({component:ct,...s});it(a,!0);const f=()=>ee(ae,"$isFollowing$",C),k=()=>ee(z,"$agentColor$",C),[C,N]=nt(),ae=lt(),z=qt();let E=h(a,"content",15),l=h(a,"onContentChange",7),A=h(a,"isActive",7,!1),g=null,w=null,pe="";rt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const b=c.detail;if(!b||typeof b.content!="string")return;const{content:F,isAddition:S,speed:I=30}=b;R(),S?he(F,I):ve(F,I)}function R(){g&&(g.abort(),g=null),w=null}async function he(c,b){g=new AbortController;const F=g.signal,S=c.split("");w=(async()=>{for(let I=0;I<S.length&&!F.aborted;I++){pe+=S[I],E(E()+S[I]),l()(E());const V=b+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await w}async function ve(c,b){g=new AbortController;const F=g.signal,S=E().indexOf(c);if(S===-1)return;const I=E().slice(0,S),V=E().slice(S+c.length);w=(async()=>{for(let H=c.length;H>0&&!F.aborted;H--){const Me=c.slice(0,H-1);E(I+Me+V),l()(E());const ke=b*.7+(Math.random()*5-2.5);await new Promise(Ee=>setTimeout(Ee,ke))}})(),await w}let se=xe(()=>w!==null),x=xe(()=>i(se)?"animate-blink":"");var j={get content(){return E()},set content(c){E(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:tt,$on:(c,b)=>ot(a,c,b)},ne=Tt(),le=_e(ne);{var q=c=>{var b=Ht(),F=K(b),S=$(F,2),I=Ce(S,!0);Y(b),me(V=>{Ve(b,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Vt(F,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ve(F,`background: ${k()?.start??""};`),Ve(S,`color: ${k()?.start??""};`),re(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,b)};Q(le,c=>{i(se)&&f()&&c(q)})}D(s,ne);var L=at(j);return N(),L}function En(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ut(s,a){return a.map(f=>{const k=Gt(f.type),C=Jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Gt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function Jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Xt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function dt(s){return s.startsWith("/")?s:`/${s}`}function Zt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Kt(s,a){const f=dt(s),k=f.toLowerCase(),C=`.__editor_${Zt(a)}`,N=Xt.find(E=>k.endsWith(E));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ae=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ae?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Yt(s){return dt(s)}var Qe=te("<!> ",1),Qt=te('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),en=te('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),tn=te('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),nn=te('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),on=te('<div class="relative h-full w-full"><!></div>');function rn(s,a){if(new.target)return et({component:rn,...s});it(a,!0);const f=()=>ee(ut,"$workspaceById",z),k=()=>ee(ht,"$isFollowing$",z),C=()=>ee(I,"$isDarkTheme",z),N=()=>ee(S,"$codeFontFamilyCSS",z),ae=()=>ee(ft,"$isWorkspaceHostLocal$",z),[z,E]=nt(),l=At("CodeEditor"),A=500*1024;let g=h(a,"value",15,""),w=h(a,"language",7,"javascript"),pe=h(a,"theme",7,"light"),O=h(a,"readOnly",7,!1),R=h(a,"lineNumbers",7,!0),he=h(a,"highlightActiveLine",7,!0),ve=h(a,"diffMode",7,!1),se=h(a,"originalValue",7,""),x=h(a,"fileName",7,""),j=h(a,"lineWrapping",7,!0),ne=h(a,"jumpTo",7,void 0),le=h(a,"lineChanges",23,()=>[]),q=h(a,"workspaceId",7),L=h(a,"filePath",7),c=h(a,"placeholder",7),b=h(a,"isPanelFocused",7,!0),F=h(a,"externalContentVersion",7,0);const S=Rt(),I=jt(),V=Bt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),Me=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),ke=H?M.layout_panelTabBar_fileManagerExplorer_label():Me?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),Ee=xe(()=>q()??V??void 0),Le=It(q()??V??"");P(()=>{Le.set(q()??V??"")});const ut=Dt(Le),ft=Ot(Le),We=Ze("externalEditors"),$e=Ze("systemFileManager");function De(){return f()}let U=oe(!1),we=oe(0);function gt(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function mt(){if(!L()){l.error("Cannot open file: missing file path");return}let e;if(L().startsWith("/"))e=L();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${L()}`}try{await Xe("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function pt(){if(!L()){l.error("Cannot reveal file: missing file path");return}let e;if(L().startsWith("/"))e=L();else{const n=De(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${L()}`}try{await Xe("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=oe(void 0),t=null,G=null,J=oe(!1);const ht=lt();let Fe=xe(k),Oe=oe(0);const vt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let ce=[],Re;function de(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function wt(e){const n=Ye.file(Yt(e));return B.getModel(n)?Ye.file(Kt(e,vt)):n}function Se(e,n){je();const o=L()||x();return o?(G=B.createModel(e,n,wt(o)),G):(G=B.createModel(e,n),G)}function je(){G&&(G.dispose(),G=null)}function Be(){if(t){try{t.dispose()}catch{}t=null,T(J,!1)}je()}let Te=oe(!1);P(()=>{const n=de(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),T(U,!1),T(we,0),T(Te,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),T(U,!0),T(we,n,!0),t&&Be())}),P(()=>{i(Te)&&i(d)&&!t&&!i(U)&&(T(Te,!1),(async()=>{try{const e=de(g());if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Ue();const n=be(w()),o=ye(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Se(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ie("editor:selection-change",{text:r,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=de(g()),n=F(),o=n!==i(Oe);if(t){if(t.getValue()!==e&&(!i(Fe)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&T(Oe,n,!0)}}),P(()=>{const e=le();if(!t||!e||e.length===0){t&&ce.length>0&&(ce=t.deltaDecorations(ce,[]));return}const n=Ut(Nt,e);ce=t.deltaDecorations(ce,n)}),P(()=>{if(!t||!i(Fe))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const p=new Ke(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const p=new Ke(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:p,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=w();if(t&&e){const n=be(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(ye(e))});function be(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}rt(async()=>{if(!i(d))return;try{const o=de(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),T(U,!0),T(we,o.length,!0);return}if(await Ae(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await He(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Ue();const u=be(w()),m=ye(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Se(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ie("editor:selection-change",{text:W,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ae();const u=de(g()),m=Se(u,be(w()));t=B.create(i(d),{model:m,theme:ye(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),T(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const p=t?.getModel()?.getValueInRange(_)||"";p&&ie("editor:selection-change",{text:p,file:x(),language:w(),source:"monaco"})}else t?.hasTextFocus()&&ie("editor:selection-change",{text:"",file:x(),language:w(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),Re=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function bt(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function yt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Pt(()=>{Re?.(),Be()}),P(()=>{const e=ne(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||b()&&setTimeout(()=>{if(!t||!b())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,p={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(p),t.revealPositionInCenterIfOutsideViewport(p,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var _t={focus:bt,runShortcut:yt,get value(){return g()},set value(e=""){g(e),v()},get language(){return w()},set language(e="javascript"){w(e),v()},get theme(){return pe()},set theme(e="light"){pe(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return ve()},set diffMode(e=!1){ve(e),v()},get originalValue(){return se()},set originalValue(e=""){se(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ne()},set jumpTo(e=void 0){ne(e),v()},get lineChanges(){return le()},set lineChanges(e=[]){le(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return L()},set filePath(e){L(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return b()},set isPanelFocused(e=!0){b(e),v()},get externalContentVersion(){return F()},set externalContentVersion(e=0){F(e),v()},$set:tt,$on:(e,n)=>ot(a,e,n)},Ie=on(),Ct=K(Ie);{var xt=e=>{var n=en(),o=K(n),u=K(o),m=$(K(u),2),y=Ce(m,!0),_=$(m,2),r=Ce(_,!0),p=$(_,2);{var W=X=>{var ue=Qt(),qe=K(ue);{var Et=Z=>{Ge(Z,{variant:"secondary",size:"sm",onclick:mt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return Wt},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Pe,fe)},$$slots:{default:!0}})};Q(qe,Z=>{We&&Z(Et)})}var Lt=$(qe,2);{var Ft=Z=>{Ge(Z,{variant:"ghost",size:"sm",onclick:pt,children:(Pe,St)=>{var fe=Qe(),ge=_e(fe);Je(ge,{get icon(){return $t},class:"mr-2"});var ze=$(ge);me(Ne=>re(ze,` ${Ne??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:ke})]),D(Pe,fe)},$$slots:{default:!0}})};Q(Lt,Z=>{$e&&Z(Ft)})}Y(ue),D(X,ue)};Q(p,X=>{i(Ee)&&L()&&ae()&&(We||$e)&&X(W)})}Y(u),Y(o),Y(n),me((X,ue)=>{re(y,X),re(r,ue)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:gt(i(we))})]),D(e,n)},Mt=e=>{var n=nn(),o=_e(n);{var u=r=>{ct(r,{onContentChange:p=>g(p),isActive:!0,get content(){return g()},set content(p){g(p)}})};Q(o,r=>{i(Fe)&&r(u)})}var m=$(o,2);zt(m,r=>T(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var p=tn(),W=K(p),X=Ce(W,!0);Y(p),me(()=>re(X,c())),D(r,p)};Q(y,r=>{c()&&!g()&&r(_)})}D(e,n)};Q(Ct,e=>{i(U)?e(xt):e(Mt,-1)})}Y(Ie),D(s,Ie);var kt=at(_t);return E(),kt}export{rn as C,En as p};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{p as re}from"./
|
|
1
|
+
import{p as re}from"./2CvTs4Gl.js";import{Y as oe,b0 as se,aZ as de,U as le,V as ce,a_ as me,b as o,ay as g,X as R,aW as ue,b4 as xe,r as fe,q as ge,W as B,O as he,aV as P,bi as S,m as pe}from"./aitTA173.js";import{p as be,i as ve}from"./C0gEyGJV.js";var D="position frame",N="frame positioned",k="position relation",T="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){w={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...B().eventmodeling}),"getConfig"),w={};function O(){let e=Fe;const{ast:n}=w,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=L(i,n.dataEntities,t);e=v(e,{$kind:D,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:k,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:k,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function W(e){w.ast=void 0;const n=new Set;for(const t of e.frames){if(n.has(t.name)){const i=t.$cstNode?.range.start.line,a=i===void 0?"":` on line ${i+1}`;throw new Error(`Duplicate event modeling frame ID "${t.name}"${a}`)}n.add(t.name)}w.ast=e}o(W,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function I(e){const n=e.split(".");if(n.length===2)return n[0]}o(I,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=I(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function V(e){const{themeVariables:n}=B();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(V,"calculateEntityVisualProps");function L(e,n,t){const i=B(),a=P(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${S(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const p=n.find(y=>y.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
|
|
2
2
|
`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(L,"calculateTextProps");function G(e,n){const t=n,i=V(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:N,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(G,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function Y(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(Y,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function j(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=Y(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p<f.length;p++){const y=f[p],$=f[p-1];y.y=$.y+$.height+s.swimlaneGap}return h}o(j,"evolveFramePositioned");function z(e,n){return e===0&&n.sourceFrames.length===0}o(z,"isFirstFrame");function K(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(K,"hasSourceFrame");function F(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(F,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function Z(e,n){const t=n;if(z(t.index,t.frame))return[];const i=F(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;if(t.sourceFrame)a=F(e.boxes,t.sourceFrame);else{if(ve(t.frame))return[];a=q(e.boxes,i.swimlane.index,t.index-1)}return a===void 0?[]:[{$kind:T,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(Z,"decidePositionRelation");function J(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(J,"evolveRelationPositioned");var Me={[D]:G,[k]:Z},Be={[N]:j,[T]:J};function Q(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Q,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Q(e,n);return ee(e,t)}o(v,"dispatch");var M={getConfig:ke,preserveCommentsWhenParsing:!0,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:W,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),M.setAst(n),re(n,M)},"parse")},Ae=R(),$e=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Re=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
|
|
3
3
|
`,"id:",n,t),!$e)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=R(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),De={draw:Re},Ne=o(e=>"","getStyles"),Te=Ne,Ie={parser:Ee,db:M,renderer:De,styles:Te};export{Ie as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,B as w,ay as x}from"./
|
|
1
|
+
import{b as a,B as w,ay as x}from"./aitTA173.js";var g=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=B(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),B=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{g as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as he,bo as a,bw as be,b as pe,bm as _}from"./51_h0jm2.js";import{bs as me,a7 as w,ay as c,W as l,bn as xe,aA as n,bS as E,aD as M,bH as Ee,a5 as Se,bA as Te,c9 as le,aB as ie,bV as Pe,be as S,b$ as T,b_ as P,bO as k}from"./CJxGDkBm.js";import{i as m}from"./PXCFrn2V.js";import{c as v}from"./DGmOjLYi.js";import{b as ke}from"./CpPNoOk-.js";import{F as Ce,cA as De,be as Fe,ab as We,a9 as Oe,a5 as Me,aU as ze,ce as Ae}from"./DSQT151l.js";import{f as Ve}from"./
|
|
1
|
+
import{t as he,bo as a,bw as be,b as pe,bm as _}from"./51_h0jm2.js";import{bs as me,a7 as w,ay as c,W as l,bn as xe,aA as n,bS as E,aD as M,bH as Ee,a5 as Se,bA as Te,c9 as le,aB as ie,bV as Pe,be as S,b$ as T,b_ as P,bO as k}from"./CJxGDkBm.js";import{i as m}from"./PXCFrn2V.js";import{c as v}from"./DGmOjLYi.js";import{b as ke}from"./CpPNoOk-.js";import{F as Ce,cA as De,be as Fe,ab as We,a9 as Oe,a5 as Me,aU as ze,ce as Ae}from"./DSQT151l.js";import{f as Ve}from"./BnA9v3pc.js";import"./rIUowGAi.js";import{l as ye,d as Le,M as Ie,c as C}from"./rei1qYSi.js";import"./BROVvkEL.js";var Ue=ie("<!> <!> <!> <!> <!> <!>",1),Be=ie("<span><!></span>"),He=ie("<!> <!>",1);function Ne(de,r){if(new.target)return he({component:Ne,...de});me(r,!0);const ge=e=>{var h=Ue(),z=c(h);{var ne=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Fe},get checked(){return R()},closeOnSelect:!1,get onCheckedChange(){return X()},children:(f,O)=>{S();var o=T();P(u=>k(o,u),[()=>_.ui_viewSettings_markdownPreview_label()]),l(f,o)},$$slots:{default:!0}})}),l(t,s)};m(z,t=>{Q()&&t(ne)})}var A=E(z,2);{var D=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return We},get checked(){return Z()},closeOnSelect:!1,get onCheckedChange(){return $()},children:(f,O)=>{S();var o=T();P(u=>k(o,u),[()=>_.ui_viewSettings_allFilesExpanded_label()]),l(f,o)},$$slots:{default:!0}})}),l(t,s)};m(A,t=>{Y()&&t(D)})}var se=E(A,2);{var V=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Oe},get checked(){return L()},closeOnSelect:!1,get onCheckedChange(){return I()},children:(f,O)=>{S();var o=T();P(u=>k(o,u),[()=>_.ui_viewSettings_foldUnchanged_label()]),l(f,o)},$$slots:{default:!0}})}),l(t,s)};m(se,t=>{y()&&t(V)})}var F=E(se,2);{var oe=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Me},get checked(){return B()},closeOnSelect:!1,get onCheckedChange(){return H()},children:(f,O)=>{S();var o=T();P(u=>k(o,u),[()=>_.ui_viewSettings_wrapLines_label()]),l(f,o)},$$slots:{default:!0}})}),l(t,s)};m(F,t=>{U()&&t(oe)})}var x=E(F,2);{var b=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return ze},get checked(){return j()},closeOnSelect:!1,get onCheckedChange(){return q()},children:(f,O)=>{S();var o=T();P(u=>k(o,u),[()=>_.ui_viewSettings_splitView_label()]),l(f,o)},$$slots:{default:!0}})}),l(t,s)};m(x,t=>{N()&&t(b)})}var p=E(x,2);{var W=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Ae},get checked(){return J()},closeOnSelect:!1,get onCheckedChange(){return K()},children:(f,O)=>{S();var o=T();P(u=>k(o,u),[()=>_.ui_viewSettings_diffIndicators_label()]),l(f,o)},$$slots:{default:!0}})}),l(t,s)};m(p,t=>{G()&&t(W)})}l(e,h)};let y=a(r,"showFold",7,!0),L=a(r,"foldEnabled",7,!1),I=a(r,"onToggleFold",7),U=a(r,"showWrap",7,!0),B=a(r,"wrapEnabled",7,!1),H=a(r,"onToggleWrap",7),N=a(r,"showSplit",7,!0),j=a(r,"splitEnabled",7,!1),q=a(r,"onToggleSplit",7),G=a(r,"showDiff",7,!1),J=a(r,"diffEnabled",7,!1),K=a(r,"onToggleDiff",7),Q=a(r,"showPreview",7,!1),R=a(r,"previewEnabled",7,!1),X=a(r,"onTogglePreview",7),Y=a(r,"showExpand",7,!1),Z=a(r,"expanded",7,!1),$=a(r,"onToggleExpand",7),ee=a(r,"class",7,""),te=a(r,"size",7,"xs"),re=a(r,"embedded",7,!1),ae=Pe(!1);const ue={xs:"icon-xs",sm:"icon-sm",md:"icon"};var ce={get showFold(){return y()},set showFold(e=!0){y(e),n()},get foldEnabled(){return L()},set foldEnabled(e=!1){L(e),n()},get onToggleFold(){return I()},set onToggleFold(e){I(e),n()},get showWrap(){return U()},set showWrap(e=!0){U(e),n()},get wrapEnabled(){return B()},set wrapEnabled(e=!1){B(e),n()},get onToggleWrap(){return H()},set onToggleWrap(e){H(e),n()},get showSplit(){return N()},set showSplit(e=!0){N(e),n()},get splitEnabled(){return j()},set splitEnabled(e=!1){j(e),n()},get onToggleSplit(){return q()},set onToggleSplit(e){q(e),n()},get showDiff(){return G()},set showDiff(e=!1){G(e),n()},get diffEnabled(){return J()},set diffEnabled(e=!1){J(e),n()},get onToggleDiff(){return K()},set onToggleDiff(e){K(e),n()},get showPreview(){return Q()},set showPreview(e=!1){Q(e),n()},get previewEnabled(){return R()},set previewEnabled(e=!1){R(e),n()},get onTogglePreview(){return X()},set onTogglePreview(e){X(e),n()},get showExpand(){return Y()},set showExpand(e=!1){Y(e),n()},get expanded(){return Z()},set expanded(e=!1){Z(e),n()},get onToggleExpand(){return $()},set onToggleExpand(e){$(e),n()},get class(){return ee()},set class(e=""){ee(e),n()},get size(){return te()},set size(e="xs"){te(e),n()},get embedded(){return re()},set embedded(e=!1){re(e),n()},$set:be,$on:(e,h)=>pe(r,e,h)},fe=w(),_e=c(fe);{var ve=e=>{ge(e)},we=e=>{var h=w(),z=c(h);v(z,()=>Ie,(ne,A)=>{A(ne,{get open(){return M(ae)},set open(D){Ee(ae,D,!0)},children:(D,se)=>{var V=He(),F=c(V);{const x=(b,p)=>{let W=()=>(p?.()).props;var t=Be();ke(t,()=>({class:"contents",...W()}));var s=Se(t);{let i=le(()=>_.ui_viewSettings_trigger_tooltip()),d=le(()=>_.ui_viewSettings_trigger_tooltip());Ve(s,{variant:"ghost-light",get size(){return ue[te()]},get tooltip(){return M(i)},tooltipSide:"bottom",get"aria-label"(){return M(d)},get"aria-expanded"(){return M(ae)},get class(){return ee()},"data-testid":"view-settings-trigger",children:(g,f)=>{Ce(g,{get icon(){return De},size:"xs"})},$$slots:{default:!0}})}Te(t),l(b,t)};v(F,()=>ye,(b,p)=>{p(b,{child:x,$$slots:{child:!0}})})}var oe=E(F,2);{let x=le(()=>_.ui_dropdownMenu_ariaLabel());v(oe,()=>Le,(b,p)=>{p(b,{align:"end",class:"w-56 p-3!",get"aria-label"(){return M(x)},children:(W,t)=>{ge(W)},$$slots:{default:!0}})})}l(D,V)},$$slots:{default:!0}})}),l(e,h)};m(_e,e=>{re()?e(ve):e(we,-1)})}return l(de,fe),xe(ce)}export{Ne as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as d}from"./DqFWZ_g1.js";import{bm as t}from"./51_h0jm2.js";import{
|
|
1
|
+
import{h as d}from"./DqFWZ_g1.js";import{bm as t}from"./51_h0jm2.js";import{J5 as n,nM as m,p2 as _}from"./CI4_aI7e.js";import{c2 as h,aZ as g}from"./C2wWLl1x.js";import{P as H}from"./DVu7tZ67.js";import{w as f,m as w,e as b}from"./C96BAoIR.js";function u(e){return e.lastBackupAt?d(e.lastBackupAt):""}function k(e){if(e.starting)return t.workspaceHome_starting_label();if(e.state==="moving")return t.workspaceHome_banner_moving();if(e.unknownState)return t.workspaceHome_banner_detachedNoBackup({name:e.name});const o=u(e);return o?t.workspaceHome_banner_detached({name:e.name,time:o}):t.workspaceHome_banner_detachedNoBackup({name:e.name})}function A(e){return e?.unavailable?k(e):null}function y(e){if(e.banner==="detached"||e.banner==="moving")return k(e);if(e.banner!=="backupWarning")return"";const o=u(e);return o?t.workspaceHome_banner_backupWarning({name:e.name,time:o}):t.workspaceHome_banner_backupWarningNoBackup({name:e.name})}function N(e){switch(e.setup?.phase){case"preparing":case"runningSetup":return t.workspaceHome_opening_title({name:e.name});case"openFailed":return t.workspaceHome_openFailed_title({name:e.name});case"setupFailed":return t.remoteAgent_notice_setupFailed_title({machine:e.name});default:return""}}function R(e){const o=e.setup;switch(o?.phase){case"preparing":return t.remoteAgent_status_preparingCheckout();case"runningSetup":return t.remoteAgent_status_runningSetup();case"openFailed":return t.workspaceHome_openFailed_hint({name:e.name});case"setupFailed":return o.exitCode!==null?t.workspaceHome_setupFailed_exitCode({code:String(o.exitCode)}):o.timedOut?t.workspaceHome_setupFailed_timeout():t.workspaceHome_setupFailed_generic();default:return null}}function D(e){const o=e.setup,r=o?.phase==="openFailed"||o?.phase==="setupFailed"?o.error:null;return r&&r.replace(/^[a-z][a-z0-9-]*:\s*/,"").trim()||null}function E(e){return e==="detached"?t.workspaceHome_marker_detached():t.workspaceHome_marker_moving()}function C(e){const o=u(e);return o?t.workspaceHome_header_lastBackup({time:o}):null}function V(e){if(!e.moveWarning)return null;const o=u(e);return o?t.workspaceHome_moveDialog_warning({name:e.name,time:o}):t.workspaceHome_moveDialog_warningNoBackup({name:e.name})}function q(e){switch(e.code){case"forbidden":return t.workspaceHome_moveError_forbidden();case"homes-unsupported":return t.workspaceHome_moveError_homesUnsupported();case"home-moving":return t.workspaceHome_moveError_homeMoving();case"home-target-unavailable":return t.workspaceHome_moveError_targetUnavailable();case"machine-update-required":return t.workspaceHome_moveError_updateRequired();default:return t.workspaceHome_moveError_failed({message:e.message})}}const i=new WeakMap,S=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o),a=r?.home;if(!a)return null;const s=i.get(a);if(s)return s;const c=f(r);return c&&i.set(a,c),c}),L=n.createSelector((e,o)=>w(m(e.workspace.workspaces,o),!h.select(e,o))),F=n.createSelector((e,o)=>{const r=m(e.workspace.workspaces,o)?.home;return r?.setup?.state==="failed"?_(r.homeId,r.setup.finishedAt):""}),U=n.createSelector((e,o)=>{const r=S.select(e,o);if(r?.banner!=="setupFailed")return r;const a=F.select(e,o);if(!a||!e.workspaceHome.dismissedSetupFailures[a])return r;const s=p.get(r);if(s)return s;const c={...r,banner:null};return p.set(r,c),c}),p=new WeakMap,z=n.createSelector((e,o)=>{const r=e.workspaceHome.setupOutputs[o],a=m(e.workspace.workspaces,o)?.home?.homeId;return r&&r.homeId===a?r:null}),I=n.createSelector((e,o)=>e.workspaceHome.waiting[o]===!0),J=n.createSelector(e=>e.workspaceHome.dialogWorkspaceId),K=n.createSelector(e=>e.workspaceHome.moveStatus==="submitting"),P=n.createSelector(e=>e.workspaceHome.moveFailure),W=[],l=new Map,j=n.createSelector((e,o)=>{if(!o)return W;const r=b({agents:g.select(e,o),machineRows:H.select(e)}),a=JSON.stringify(r),s=l.get(o);return s?.key===a?s.options:(l.set(o,{key:a,options:r}),r)}),Z=n.createSelector((e,o)=>m(e.workspace.workspaces,o)!==void 0);export{C as a,E as b,V as c,D as d,A as e,R as f,N as g,y as h,k as i,F as j,z as k,I as l,q as m,J as n,P as o,j as p,K as q,U as r,L as s,S as t,Z as u};
|