@intent-hq/web 2.346.0 → 2.346.2
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/{BgKhYgm8.js → -ATexmb_.js} +1 -1
- package/web/app/immutable/chunks/{DknPpgEW.js → 0h3tB2X7.js} +1 -1
- package/web/app/immutable/chunks/{DcZKw8cP.js → 2_W5MGlF.js} +1 -1
- package/web/app/immutable/chunks/{9XVQ1GVX.js → 3OP-tats.js} +1 -1
- package/web/app/immutable/chunks/{CAdgzoaK.js → 3hAJcdO4.js} +1 -1
- package/web/app/immutable/chunks/{iKgBWWl-.js → 5mNJ4C7j.js} +2 -2
- package/web/app/immutable/chunks/{B79pUPc3.js → 5qgyaXHk.js} +4 -4
- package/web/app/immutable/chunks/{CJ_dtcmM.js → 7HnS2P2A.js} +1 -1
- package/web/app/immutable/chunks/{ahX1JzRb.js → 9PMcLe0B.js} +1 -1
- package/web/app/immutable/chunks/{z_Tdw9N5.js → B-hjApiN.js} +1 -1
- package/web/app/immutable/chunks/B0tYoxIu.js +408 -0
- package/web/app/immutable/chunks/{Y4VeEPHl.js → B1b_Q-DK.js} +1 -1
- package/web/app/immutable/chunks/{BmEcZoA2.js → B47FKnfA.js} +1 -1
- package/web/app/immutable/chunks/{C1osWUn_.js → B4lGG925.js} +1 -1
- package/web/app/immutable/chunks/{CcaAQlGA.js → B6_GAXLX.js} +1 -1
- package/web/app/immutable/chunks/{CFs6uWH2.js → B6hd6-h0.js} +1 -1
- package/web/app/immutable/chunks/{BDDEv5gU.js → B6jO8Woe.js} +1 -1
- package/web/app/immutable/chunks/{DOB2ATTF.js → B8HwWHod.js} +1 -1
- package/web/app/immutable/chunks/{B3D9gAmi.js → BALLinLf.js} +1 -1
- package/web/app/immutable/chunks/{asQ_ruFQ.js → BB4FgpiZ.js} +1 -1
- package/web/app/immutable/chunks/{ftma9Ybn.js → BBhsbqLJ.js} +1 -1
- package/web/app/immutable/chunks/{Big_dnEI.js → BEA1dP-Y.js} +1 -1
- package/web/app/immutable/chunks/{DFs6FJS8.js → BG2eX09y.js} +1 -1
- package/web/app/immutable/chunks/{s0TWEExr.js → BGKCZT2I.js} +1 -1
- package/web/app/immutable/chunks/{DjdPlKc4.js → BGel6u2i.js} +1 -1
- package/web/app/immutable/chunks/{BaYzTmbw.js → BGqL3gJO.js} +1 -1
- package/web/app/immutable/chunks/{B7dTLx8u.js → BGsa1Rn-.js} +1 -1
- package/web/app/immutable/chunks/{Ba1C4iSG.js → BHmRsJkZ.js} +1 -1
- package/web/app/immutable/chunks/{BDzYiKUH.js → BIDATtgj.js} +1 -1
- package/web/app/immutable/chunks/{OPvMR-5p.js → BIWW5pDn.js} +1 -1
- package/web/app/immutable/chunks/{BBlTlRXR.js → BKJdB-rj.js} +1 -1
- package/web/app/immutable/chunks/BKW86yq_.js +1 -0
- package/web/app/immutable/chunks/{-Wo302Zr.js → BMCRnGzk.js} +1 -1
- package/web/app/immutable/chunks/{BO8NImWp.js → BMlW8PWp.js} +1 -1
- package/web/app/immutable/chunks/{BKw5KoGy.js → BMxLlxet.js} +1 -1
- package/web/app/immutable/chunks/{jlJQSpH6.js → BN7h9eAI.js} +1 -1
- package/web/app/immutable/chunks/{DKTqwHrN.js → BO3bzcut.js} +1 -1
- package/web/app/immutable/chunks/{DOCWMdWU.js → BOvPBTkx.js} +1 -1
- package/web/app/immutable/chunks/{ClMg3ew2.js → BPsfqTTH.js} +1 -1
- package/web/app/immutable/chunks/{BQ5F0iVp.js → BQjy1SUJ.js} +1 -1
- package/web/app/immutable/chunks/{BjURBDIt.js → BQk_mrPH.js} +1 -1
- package/web/app/immutable/chunks/{DH-29Rs_.js → BRBkuZqk.js} +3 -3
- package/web/app/immutable/chunks/{CtDj7gZD.js → BUwilubW.js} +1 -1
- package/web/app/immutable/chunks/{B4gIvcP2.js → BW1uSKLL.js} +1 -1
- package/web/app/immutable/chunks/{D492HRYt.js → BXPYDVnQ.js} +1 -1
- package/web/app/immutable/chunks/{DPUWJyjX.js → BYpXsiCq.js} +1 -1
- package/web/app/immutable/chunks/{Clhk_Z-l.js → BZklR_B6.js} +1 -1
- package/web/app/immutable/chunks/{3h5ZjEwa.js → B_ALvSh2.js} +1 -1
- package/web/app/immutable/chunks/{D31IcU1_.js → B_qlaCea.js} +1 -1
- package/web/app/immutable/chunks/{BaYeKXL3.js → B_uWHofm.js} +1 -1
- package/web/app/immutable/chunks/{i2sZiDEq.js → BaDPh7vq.js} +1 -1
- package/web/app/immutable/chunks/{D0I9E6A0.js → Bb6S2E-a.js} +1 -1
- package/web/app/immutable/chunks/{DccrGg38.js → BbMjUd1J.js} +3 -3
- package/web/app/immutable/chunks/{C3NeTp2u.js → BcLSwxTf.js} +1 -1
- package/web/app/immutable/chunks/{Do80Vc58.js → BdnmB6mE.js} +1 -1
- package/web/app/immutable/chunks/{ByLCbaqp.js → Bhz5wZ4Q.js} +1 -1
- package/web/app/immutable/chunks/{DMYKSC8W.js → BjDqyb_W.js} +2 -2
- package/web/app/immutable/chunks/{Dx3sZmi8.js → Bkff-hvs.js} +1 -1
- package/web/app/immutable/chunks/{C3VPe7p1.js → BmooL5Pj.js} +1 -1
- package/web/app/immutable/chunks/{DzejiLWr.js → BqRBAXUd.js} +3 -3
- package/web/app/immutable/chunks/{BpYNQf9o.js → Bqw_xSaW.js} +1 -1
- package/web/app/immutable/chunks/{CNT1n9YR.js → Br-2EMQh.js} +1 -1
- package/web/app/immutable/chunks/{C_EpV6jU.js → Bs7Hg6Iw.js} +1 -1
- package/web/app/immutable/chunks/{DZ3SUe8R.js → BtiDRzyn.js} +1 -1
- package/web/app/immutable/chunks/{CswFIiBb.js → BticJnNL.js} +1 -1
- package/web/app/immutable/chunks/{A8_BT67P.js → BtwtItRa.js} +1 -1
- package/web/app/immutable/chunks/{DByMRbHr.js → BulYm0mb.js} +1 -1
- package/web/app/immutable/chunks/{cATI0wnI.js → BvZcpO0X.js} +1 -1
- package/web/app/immutable/chunks/{C33Dw59E.js → Bw9Opv8X.js} +1 -1
- package/web/app/immutable/chunks/{CmoBwSCp.js → BxyjmPKU.js} +1 -1
- package/web/app/immutable/chunks/{BK64B_Ic.js → ByJd4XYj.js} +1 -1
- package/web/app/immutable/chunks/{BLaIjbEF.js → BywHYLA0.js} +1 -1
- package/web/app/immutable/chunks/{YYacqJ9a.js → BzrasdW9.js} +1 -1
- package/web/app/immutable/chunks/{D7NdkRF-.js → Bzvkqwap.js} +4 -4
- package/web/app/immutable/chunks/{B4XZNQ4a.js → C-6Vv_Md.js} +1 -1
- package/web/app/immutable/chunks/{CP8WYBBE.js → C1Fdolkg.js} +1 -1
- package/web/app/immutable/chunks/{DZyAzxxC.js → C1N6iAP2.js} +1 -1
- package/web/app/immutable/chunks/{DXnd4CJZ.js → C1c28WNI.js} +1 -1
- package/web/app/immutable/chunks/{Cb0zVN4i.js → C1s02RDB.js} +1 -1
- package/web/app/immutable/chunks/{DUQV_xq3.js → C3Pl_e9x.js} +1 -1
- package/web/app/immutable/chunks/{B0-4rCYZ.js → C3RXsOpj.js} +1 -1
- package/web/app/immutable/chunks/{z-RLr2Z1.js → C4EqZepj.js} +1 -1
- package/web/app/immutable/chunks/{BfbZn9QX.js → C4xNNtUj.js} +1 -1
- package/web/app/immutable/chunks/{DzKYjnRy.js → C5GFtLhI.js} +2 -2
- package/web/app/immutable/chunks/{Bxnf75xq.js → C8_z1bbT.js} +1 -1
- package/web/app/immutable/chunks/{fzs92dqr.js → C8d3Ntbq.js} +1 -1
- package/web/app/immutable/chunks/C8ummx7x.js +1 -0
- package/web/app/immutable/chunks/{BMKkyPLo.js → C9u4tXUT.js} +1 -1
- package/web/app/immutable/chunks/{bKyElw3h.js → CAQf2iW_.js} +1 -1
- package/web/app/immutable/chunks/{CgLoJgPR.js → CFFiNWgw.js} +1 -1
- package/web/app/immutable/chunks/{BJZ04Dji.js → CI36mkCP.js} +1 -1
- package/web/app/immutable/chunks/{BlEwAz4v.js → CIDQz_xi.js} +1 -1
- package/web/app/immutable/chunks/{DeCAcSD9.js → CIRZKLVu.js} +1 -1
- package/web/app/immutable/chunks/{CbZEAbX5.js → CIhlsnLM.js} +1 -1
- package/web/app/immutable/chunks/{Bgi2L8Br.js → CJbkgYat.js} +1 -1
- package/web/app/immutable/chunks/{DgHZa_R5.js → CJl18r_J.js} +1 -1
- package/web/app/immutable/chunks/{Dj8J0eqI.js → CK4TIiJZ.js} +1 -1
- package/web/app/immutable/chunks/{CvGEpOsC.js → CKWRbVNZ.js} +1 -1
- package/web/app/immutable/chunks/{71L4lHBq.js → CMG5CVfP.js} +1 -1
- package/web/app/immutable/chunks/{DtAyUyC0.js → CMcMoJJq.js} +1 -1
- package/web/app/immutable/chunks/{C3oF1SK5.js → CNHQ2hz2.js} +1 -1
- package/web/app/immutable/chunks/{B1HPKTBI.js → CNOSe0wO.js} +1 -1
- package/web/app/immutable/chunks/{C4HHXGmJ.js → CNwVL4wn.js} +1 -1
- package/web/app/immutable/chunks/{DukmxKgk.js → CP2XzLLk.js} +1 -1
- package/web/app/immutable/chunks/{zGl9gaL0.js → CPE7SIVP.js} +1 -1
- package/web/app/immutable/chunks/{Chpqmkx4.js → CPo4UsMt.js} +1 -1
- package/web/app/immutable/chunks/{DhHSeQsG.js → CQ5RMFdD.js} +3 -3
- package/web/app/immutable/chunks/{CQbtnalz.js → CS4C4Dqz.js} +1 -1
- package/web/app/immutable/chunks/{7eL9Pgig.js → CSelYXXo.js} +1 -1
- package/web/app/immutable/chunks/{CzcD2H5U.js → CT-2GqFI.js} +1 -1
- package/web/app/immutable/chunks/{IRbjhecv.js → CTMYdigD.js} +1 -1
- package/web/app/immutable/chunks/{ouMKS3MA.js → CTgw4phK.js} +1 -1
- package/web/app/immutable/chunks/{DGmRhalF.js → CUEYQ1xR.js} +1 -1
- package/web/app/immutable/chunks/{T9tywf_e.js → CXZBvyNr.js} +1 -1
- package/web/app/immutable/chunks/{Dto-4yb7.js → CZF99d-A.js} +1 -1
- package/web/app/immutable/chunks/{Dkr_RXdV.js → Cbpbq74u.js} +1 -1
- package/web/app/immutable/chunks/Cbr_yt83.js +2 -0
- package/web/app/immutable/chunks/{C-OtpXcF.js → CcOcBD3s.js} +1 -1
- package/web/app/immutable/chunks/{etVaBLxV.js → Cdb_pBT1.js} +1 -1
- package/web/app/immutable/chunks/{5Ixgq0WC.js → CeboDH9D.js} +1 -1
- package/web/app/immutable/chunks/{CCm1BgPl.js → CeydpcQL.js} +1 -1
- package/web/app/immutable/chunks/{DryyHkNv.js → CiLrRXKC.js} +1 -1
- package/web/app/immutable/chunks/{CvHwMug-.js → CjpBT44D.js} +2 -2
- package/web/app/immutable/chunks/{BQbcEQz0.js → CjxgW2LG.js} +1 -1
- package/web/app/immutable/chunks/{CHfmHJ17.js → Cjyjhytt.js} +1 -1
- package/web/app/immutable/chunks/{Cq8oeEXe.js → CnkXoP0c.js} +1 -1
- package/web/app/immutable/chunks/{DTSEdINd.js → Cp8bbNVk.js} +2 -2
- package/web/app/immutable/chunks/{B55-cQLT.js → CpB9-pxF.js} +1 -1
- package/web/app/immutable/chunks/{CQyjMIYw.js → CpsuxuwM.js} +1 -1
- package/web/app/immutable/chunks/{DMjNjha0.js → CqvGUHnF.js} +1 -1
- package/web/app/immutable/chunks/{Dkva_evl.js → CsvSUZwX.js} +2 -2
- package/web/app/immutable/chunks/{BTNEDHav.js → Cu4yzzG1.js} +1 -1
- package/web/app/immutable/chunks/{DwA_Z_f6.js → Cueu30DH.js} +1 -1
- package/web/app/immutable/chunks/{BDPAYMJ1.js → CvGWJUqA.js} +1 -1
- package/web/app/immutable/chunks/{3DAIKGff.js → Cv_fAsRR.js} +1 -1
- package/web/app/immutable/chunks/{U6cHmbYS.js → CxlqEDL_.js} +3 -3
- package/web/app/immutable/chunks/{DcwC09tE.js → CzGw49VI.js} +1 -1
- package/web/app/immutable/chunks/{W7sv3DY6.js → CzZewxhP.js} +1 -1
- package/web/app/immutable/chunks/{CrjpdU4V.js → D-3gv8KK.js} +1 -1
- package/web/app/immutable/chunks/{BW9EApvt.js → D03v07xA.js} +1 -1
- package/web/app/immutable/chunks/{CXpFRnSj.js → D1J3O3UF.js} +1 -1
- package/web/app/immutable/chunks/{D7dPbXji.js → D1JIts8z.js} +1 -1
- package/web/app/immutable/chunks/D1jZIoRI.js +1 -0
- package/web/app/immutable/chunks/{BM7oCSp5.js → D2D1pbBM.js} +1 -1
- package/web/app/immutable/chunks/{B5HeJKYE.js → D7oCAGaV.js} +1 -1
- package/web/app/immutable/chunks/{Cx31i8ng.js → D9WJ9yaW.js} +1 -1
- package/web/app/immutable/chunks/{eNHX5lds.js → DAP42sSp.js} +1 -1
- package/web/app/immutable/chunks/{CVa6MqnK.js → DCmSz4nS.js} +1 -1
- package/web/app/immutable/chunks/{CguBowm8.js → DFBU68gv.js} +1 -1
- package/web/app/immutable/chunks/{Brqq8vhd.js → DHNaVZzM.js} +4 -4
- package/web/app/immutable/chunks/{dBZS3-kp.js → DIKxUBjo.js} +1 -1
- package/web/app/immutable/chunks/{BDPqCRJm.js → DIYt9yAc.js} +1 -1
- package/web/app/immutable/chunks/{B1U_DCBw.js → DKnPivVx.js} +1 -1
- package/web/app/immutable/chunks/DLzSUn52.js +4 -0
- package/web/app/immutable/chunks/{BOxkenyY.js → DMAPjgGW.js} +1 -1
- package/web/app/immutable/chunks/{D3toWTag.js → DMNf2kIx.js} +4 -4
- package/web/app/immutable/chunks/{CiIELmgj.js → DNMpoEvN.js} +1 -1
- package/web/app/immutable/chunks/{txy0Txom.js → DNQiloiF.js} +1 -1
- package/web/app/immutable/chunks/{DzGNgfrZ.js → DRG7DUhO.js} +1 -1
- package/web/app/immutable/chunks/{BY3nRRgO.js → DRXZoO9N.js} +3 -3
- package/web/app/immutable/chunks/{DDySjsub.js → DRpIoF9f.js} +1 -1
- package/web/app/immutable/chunks/DU8GQiwc.js +13 -0
- package/web/app/immutable/chunks/{DRZKWEq3.js → DUyBdSjv.js} +1 -1
- package/web/app/immutable/chunks/{CjbCpI18.js → DYbBpj-3.js} +1 -1
- package/web/app/immutable/chunks/{Dr45ln4z.js → DaOs4JNK.js} +1 -1
- package/web/app/immutable/chunks/{DNjgs7AU.js → Db5vVNPd.js} +1 -1
- package/web/app/immutable/chunks/{DdVIXVso.js → DbjrS_71.js} +1 -1
- package/web/app/immutable/chunks/{Bgw3O9rE.js → DctMspbi.js} +1 -1
- package/web/app/immutable/chunks/{DOKxXiSI.js → DfZvKQFw.js} +4 -4
- package/web/app/immutable/chunks/{3as4gwP9.js → DfumCvo1.js} +1 -1
- package/web/app/immutable/chunks/{Cq2aackv.js → DghbEZ16.js} +1 -1
- package/web/app/immutable/chunks/{BOyF7pe9.js → DhUnCLhA.js} +1 -1
- package/web/app/immutable/chunks/{DYnCJwSs.js → DhWGSJOr.js} +1 -1
- package/web/app/immutable/chunks/{B0mNIdOb.js → DiKPZGG7.js} +1 -1
- package/web/app/immutable/chunks/{D-i7C44m.js → DiLuZbm3.js} +2 -2
- package/web/app/immutable/chunks/Dk2XuKyL.js +1 -0
- package/web/app/immutable/chunks/{BnkmaA34.js → DkMx9Khd.js} +1 -1
- package/web/app/immutable/chunks/{ChNPgGKQ.js → DlOpwiIn.js} +1 -1
- package/web/app/immutable/chunks/{BYDvuR-h.js → DlQwd6Dz.js} +1 -1
- package/web/app/immutable/chunks/{ACNn9MHT.js → DmDreYHi.js} +2 -2
- package/web/app/immutable/chunks/{CAUaU8Wh.js → DmY0GWNY.js} +1 -1
- package/web/app/immutable/chunks/{C8XrM-qb.js → DoIXHwho.js} +1 -1
- package/web/app/immutable/chunks/{CDbQwqu1.js → DoxU2MH-.js} +1 -1
- package/web/app/immutable/chunks/{SVZRr24P.js → Dsq9SKtm.js} +1 -1
- package/web/app/immutable/chunks/{DKKFIb2l.js → DuA0wXTo.js} +1 -1
- package/web/app/immutable/chunks/{D-TVq_rK.js → DxdbljsN.js} +1 -1
- package/web/app/immutable/chunks/{DHROL4K5.js → DxkncNQp.js} +1 -1
- package/web/app/immutable/chunks/{D1CYDv8t.js → Dy_FWGdw.js} +1 -1
- package/web/app/immutable/chunks/{BeJ5WWx4.js → DzrrFPjR.js} +22 -22
- package/web/app/immutable/chunks/{CrHk5l6X.js → E9kqzP8d.js} +1 -1
- package/web/app/immutable/chunks/{BWTugGQ8.js → EF8Lgcvo.js} +1 -1
- package/web/app/immutable/chunks/{BVURea8L.js → Ewbvp_lS.js} +1 -1
- package/web/app/immutable/chunks/{BqyYlCY3.js → FFimwbkT.js} +1 -1
- package/web/app/immutable/chunks/{DE8QOEZV.js → FIoCaQ2r.js} +1 -1
- package/web/app/immutable/chunks/{Zl17pAXX.js → FXM57FKt.js} +1 -1
- package/web/app/immutable/chunks/{Ckp5dOHW.js → Fas-AZ8u.js} +1 -1
- package/web/app/immutable/chunks/{BDZoh7yg.js → GAq2mIWu.js} +1 -1
- package/web/app/immutable/chunks/{G_wYaln-.js → GTp1YEph.js} +1 -1
- package/web/app/immutable/chunks/{GzTl4Sb0.js → IrTkIWCG.js} +1 -1
- package/web/app/immutable/chunks/{BqBqZaGQ.js → JbkOWTOg.js} +1 -1
- package/web/app/immutable/chunks/{DHGSAfCZ.js → KpAtxVXt.js} +1 -1
- package/web/app/immutable/chunks/{CXVUfxHv.js → L1oXncPn.js} +6 -6
- package/web/app/immutable/chunks/{C1CDOGnh.js → LPERbs3m.js} +1 -1
- package/web/app/immutable/chunks/{euZ22sAu.js → LZaIAE1Y.js} +1 -1
- package/web/app/immutable/chunks/{CiKocWhX.js → MoI4LiSA.js} +1 -1
- package/web/app/immutable/chunks/{BcbQZUsh.js → NhKlePe6.js} +1 -1
- package/web/app/immutable/chunks/O7PQPM4V.js +1 -0
- package/web/app/immutable/chunks/{BrIsEZwT.js → OJa6n6kP.js} +1 -1
- package/web/app/immutable/chunks/{BDtb6AfX.js → P2s61dnl.js} +1 -1
- package/web/app/immutable/chunks/{B-7vt8Nv.js → QcdWHB0v.js} +1 -1
- package/web/app/immutable/chunks/{V9qci_dz.js → RKjwEkJS.js} +1 -1
- package/web/app/immutable/chunks/{1_fC7X8z.js → R_Ru9hwD.js} +1 -1
- package/web/app/immutable/chunks/{BK2lpqz4.js → SrhdBdnO.js} +1 -1
- package/web/app/immutable/chunks/{CSg3z6A2.js → UKn44y3B.js} +1 -1
- package/web/app/immutable/chunks/{D9jvlcNy.js → VVSQHNmC.js} +1 -1
- package/web/app/immutable/chunks/{d-Ep-sfP.js → V_ABjOKq.js} +1 -1
- package/web/app/immutable/chunks/{BZYeogxf.js → W4Nuovgc.js} +1 -1
- package/web/app/immutable/chunks/{DW9MEQey.js → WXiWQWrz.js} +1 -1
- package/web/app/immutable/chunks/{BcgSXbtK.js → _5Vv4dkf.js} +1 -1
- package/web/app/immutable/chunks/{CQB76zlc.js → _8ZvVPLV.js} +1 -1
- package/web/app/immutable/chunks/{BLl22NdQ.js → aEMYrozm.js} +1 -1
- package/web/app/immutable/chunks/{CSQXURhP.js → dT5WNNGq.js} +1 -1
- package/web/app/immutable/chunks/{D_SZXZdx.js → eqxSNkBq.js} +1 -1
- package/web/app/immutable/chunks/{DfjJilaB.js → fYStpNp1.js} +2 -2
- package/web/app/immutable/chunks/{wTgWcOy1.js → hCF4Zu9x.js} +1 -1
- package/web/app/immutable/chunks/{CGcQAX9W.js → k6cZvV27.js} +1 -1
- package/web/app/immutable/chunks/{B83M2_sj.js → k7pV_mI9.js} +1 -1
- package/web/app/immutable/chunks/{B0WVH3Hg.js → m4m_OnCq.js} +1 -1
- package/web/app/immutable/chunks/{BWAGtvpD.js → qvZYvB9N.js} +1 -1
- package/web/app/immutable/chunks/{-UJlOg-6.js → rBb3s3xl.js} +1 -1
- package/web/app/immutable/chunks/{CA6TS0WC.js → sCaWuYEb.js} +1 -1
- package/web/app/immutable/chunks/{CzdMU9Bu.js → t_9JF5Ld.js} +2 -2
- package/web/app/immutable/chunks/{4sUGQp1u.js → tcnXcM0S.js} +1 -1
- package/web/app/immutable/chunks/{WbTmlouE.js → wZNQMR8J.js} +1 -1
- package/web/app/immutable/chunks/{BWZmCaEW.js → yw7dEI88.js} +1 -1
- package/web/app/immutable/chunks/{0qEvU7Aj.js → zqCR6Knb.js} +1 -1
- package/web/app/immutable/entry/{app.BXnRxWvG.js → app.BQtRy4N0.js} +3 -3
- package/web/app/immutable/entry/start.DP05n5bC.js +1 -0
- package/web/app/immutable/nodes/{0.CFk1FXLg.js → 0.YxkIXYW_.js} +1 -1
- package/web/app/immutable/nodes/{1.Bd67D1tA.js → 1.DPIiTcn7.js} +1 -1
- package/web/app/immutable/nodes/{10.CTZ0L3wZ.js → 10.CYSFXPaq.js} +1 -1
- package/web/app/immutable/nodes/{11.CH_h0WbH.js → 11.Bl5UwrS9.js} +1 -1
- package/web/app/immutable/nodes/{12.DhihsAtw.js → 12.CUp8k2-A.js} +1 -1
- package/web/app/immutable/nodes/{13.B727xJXs.js → 13.Ch9aZ9Uv.js} +3 -3
- package/web/app/immutable/nodes/{14.CgITgBOZ.js → 14.BW4XzZI8.js} +1 -1
- package/web/app/immutable/nodes/{15.CCzIPJGf.js → 15.Cto8qDz0.js} +1 -1
- package/web/app/immutable/nodes/{16.CbtJfPHZ.js → 16.SivUu1Ma.js} +1 -1
- package/web/app/immutable/nodes/{17.CelzCwXF.js → 17.Chj8J0QC.js} +1 -1
- package/web/app/immutable/nodes/{18.fqvApY-g.js → 18.BmSdt93l.js} +2 -2
- package/web/app/immutable/nodes/{2.t-1b60vK.js → 2.CL9-Oazw.js} +4 -4
- package/web/app/immutable/nodes/{3.4L0YPvZL.js → 3.6SFTvSLk.js} +1 -1
- package/web/app/immutable/nodes/{4.BLQgcpcU.js → 4.s2OPBDUw.js} +1 -1
- package/web/app/immutable/nodes/{5.Bp_OiOTI.js → 5.BhdLMGJF.js} +1 -1
- package/web/app/immutable/nodes/{6.CcuwCBp4.js → 6.DorNgn-a.js} +1 -1
- package/web/app/immutable/nodes/{7.B-TRUT7o.js → 7.9iHTOKVc.js} +1 -1
- package/web/app/immutable/nodes/{8.CaG5gby5.js → 8.DGrpVVpf.js} +6 -6
- package/web/app/immutable/nodes/9.rNDQpOBQ.js +39 -0
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/2V4-p70U.js +0 -408
- package/web/app/immutable/chunks/BAGVOK-j.js +0 -4
- package/web/app/immutable/chunks/Bbkml6DP.js +0 -1
- package/web/app/immutable/chunks/D9jYN6_J.js +0 -1
- package/web/app/immutable/chunks/DF1uIj8u.js +0 -1
- package/web/app/immutable/chunks/DOPeTAKk.js +0 -13
- package/web/app/immutable/chunks/DgwMMJRI.js +0 -2
- package/web/app/immutable/chunks/TL85KYB9.js +0 -1
- package/web/app/immutable/chunks/ciTxbtqU.js +0 -1
- package/web/app/immutable/entry/start.BX3EKd8C.js +0 -1
- package/web/app/immutable/nodes/9.DosMxTmg.js +0 -39
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var Nh=Object.defineProperty;var zh=(t,e,i)=>e in t?Nh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var P=(t,e,i)=>zh(t,typeof e!="symbol"?e+"":e,i);import{cd as Wh}from"./DYhIMPy1.js";import{bo as Fs,_ as Bn}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DaOs4JNK.js","/app/immutable/chunks/qvZYvB9N.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BKW86yq_.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CSelYXXo.js","/app/immutable/chunks/Bs7Hg6Iw.js","/app/immutable/chunks/D9WJ9yaW.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/zqCR6Knb.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/DctMspbi.js","/app/immutable/chunks/CsvSUZwX.js","/app/immutable/chunks/0h3tB2X7.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C1N6iAP2.js","/app/immutable/chunks/BIWW5pDn.js","/app/immutable/chunks/BW1uSKLL.js","/app/immutable/chunks/CS4C4Dqz.js","/app/immutable/chunks/C4xNNtUj.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/RKjwEkJS.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/DmY0GWNY.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/VVSQHNmC.js","/app/immutable/chunks/BcLSwxTf.js","/app/immutable/chunks/DRG7DUhO.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Nh=Object.defineProperty;var zh=(t,e,i)=>e in t?Nh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var P=(t,e,i)=>zh(t,typeof e!="symbol"?e+"":e,i);import{cd as Wh}from"./DYhIMPy1.js";import{bo as Fs,_ as Bn}from"./BKW86yq_.js";import{a as ji}from"./BdWqymET.js";import{i as Ns}from"./CpHzYkzi.js";import{d as Hh}from"./Cdb_pBT1.js";import{t as Uh}from"./B_uWHofm.js";import{d as Ui}from"./B0Z-1lwJ.js";import{c as Kh}from"./ChTqQfQN.js";import{H as qh}from"./CsvSUZwX.js";import{Iz as _t,JD as An,gm as Vh,BK as Gh,zX as Yh,rF as Xh}from"./C4xNNtUj.js";import{N as Pn,S as On,H as In,B as $n}from"./CEsW1euQ.js";import{g as jh}from"./DUyBdSjv.js";import{f as Zh,l as Jh}from"./CUEYQ1xR.js";/**
|
|
3
3
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
4
4
|
* @license MIT
|
|
5
5
|
*
|
|
@@ -141,6 +141,6 @@ void main() {
|
|
|
141
141
|
`))}},df=class extends Error{constructor(t,e){super(t),this.name="ListenerLeakError",this.stack=e}},uf=class extends Error{constructor(t,e){super(t),this.name="ListenerRefusalError",this.stack=e}},_f=0,ur=class{constructor(t){this.value=t,this.id=_f++}},ff=2,gf,ut=class{constructor(t){this._size=0,this._options=t,this._leakageMon=this._options?.leakWarningThreshold?new lf(t?.onListenerError??dr,this._options?.leakWarningThreshold??hf):void 0,this._perfMon=this._options?._profName?new af(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(t,e,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let o=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(o);let a=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],l=new uf(`${o}. HINT: Stack shows most frequent listener (${a[1]}-times)`,a[0]);return(this._options?.onListenerError||dr)(l),qt.None}if(this._disposed)return qt.None;e&&(t=t.bind(e));let s=new ur(t),r;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(s.stack=cf.create(),r=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof ur?(this._deliveryQueue??=new pf,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;let n=yi(()=>{r?.(),this._removeListener(s)});return i instanceof kn?i.add(n):Array.isArray(i)&&i.push(n),n},this._event}_removeListener(t){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let e=this._listeners,i=e.indexOf(t);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,e[i]=void 0;let s=this._deliveryQueue.current===this;if(this._size*ff<=e.length){let r=0;for(let n=0;n<e.length;n++)e[n]?e[r++]=e[n]:s&&(this._deliveryQueue.end--,r<this._deliveryQueue.i&&this._deliveryQueue.i--);e.length=r}}_deliver(t,e){if(!t)return;let i=this._options?.onListenerError||dr;if(!i){t.value(e);return}try{t.value(e)}catch(s){i(s)}}_deliverQueue(t){let e=t.current._listeners;for(;t.i<t.end;)this._deliver(e[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof ur)this._deliver(this._listeners,t);else{let e=this._deliveryQueue;e.enqueue(this,t,this._listeners.length),this._deliverQueue(e)}this._perfMon?.stop()}hasListeners(){return this._size>0}},pf=class{constructor(){this.i=-1,this.end=0}enqueue(t,e,i){this.i=0,this.end=i,this.current=t,this.value=e}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Oh=Object.freeze(function(t,e){let i=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(i)}}}),mf;(t=>{function e(i){return i===t.None||i===t.Cancelled||i instanceof vf?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:En.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Oh})})(mf||={});var vf=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Oh:(this._emitter||(this._emitter=new ut),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},mi="en",_r=!1,ds,Cs=mi,aa=mi,Sf,Lt,ni=globalThis,Ge;typeof ni.vscode<"u"&&typeof ni.vscode.process<"u"?Ge=ni.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Ge=process);var wf=typeof Ge?.versions?.electron=="string",bf=wf&&Ge?.type==="renderer";if(typeof Ge=="object"){Ge.platform,Ge.platform,_r=Ge.platform==="linux",_r&&Ge.env.SNAP&&Ge.env.SNAP_REVISION,Ge.env.CI||Ge.env.BUILD_ARTIFACTSTAGINGDIRECTORY,ds=mi,Cs=mi;let t=Ge.env.VSCODE_NLS_CONFIG;if(t)try{let e=JSON.parse(t);ds=e.userLocale,aa=e.osLocale,Cs=e.resolvedLanguage||mi,Sf=e.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!bf?(Lt=navigator.userAgent,Lt.indexOf("Windows")>=0,Lt.indexOf("Macintosh")>=0,(Lt.indexOf("Macintosh")>=0||Lt.indexOf("iPad")>=0||Lt.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,_r=Lt.indexOf("Linux")>=0,Lt?.indexOf("Mobi")>=0,Cs=globalThis._VSCODE_NLS_LANGUAGE||mi,ds=navigator.language.toLowerCase(),aa=ds):console.error("Unable to resolve platform.");var vt=Lt,$t=Cs,Cf;(t=>{function e(){return $t}t.value=e;function i(){return $t.length===2?$t==="en":$t.length>=3?$t[0]==="e"&&$t[1]==="n"&&$t[2]==="-":!1}t.isDefaultVariant=i;function s(){return $t==="en"}t.isDefault=s})(Cf||={});var yf=typeof ni.postMessage=="function"&&!ni.importScripts;(()=>{if(yf){let t=[];ni.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let s=0,r=t.length;s<r;s++){let n=t[s];if(n.id===i.data.vscodeScheduleAsyncWork){t.splice(s,1),n.callback();return}}});let e=0;return i=>{let s=++e;t.push({id:s,callback:i}),ni.postMessage({vscodeScheduleAsyncWork:s},"*")}}return t=>setTimeout(t)})();var xf=!!(vt&&vt.indexOf("Chrome")>=0);vt&&vt.indexOf("Firefox")>=0;!xf&&vt&&vt.indexOf("Safari")>=0;vt&&vt.indexOf("Edg/")>=0;vt&&vt.indexOf("Android")>=0;function Ih(t,e=0,i){let s=setTimeout(()=>{t()},e);return yi(()=>{clearTimeout(s)})}var kf;(t=>{async function e(s){let r,n=await Promise.all(s.map(o=>o.then(a=>a,a=>{r||(r=a)})));if(typeof r<"u")throw r;return n}t.settled=e;function i(s){return new Promise(async(r,n)=>{try{await s(r,n)}catch(o){n(o)}})}t.withAsyncBody=i})(kf||={});var ha=class Qe{static fromArray(e){return new Qe(i=>{i.emitMany(e)})}static fromPromise(e){return new Qe(async i=>{i.emitMany(await e)})}static fromPromises(e){return new Qe(async i=>{await Promise.all(e.map(async s=>i.emitOne(await s)))})}static merge(e){return new Qe(async i=>{await Promise.all(e.map(async s=>{for await(let r of s)i.emitOne(r)}))})}constructor(e,i){this._state=0,this._results=[],this._error=null,this._onReturn=i,this._onStateChanged=new ut,queueMicrotask(async()=>{let s={emitOne:r=>this.emitOne(r),emitMany:r=>this.emitMany(r),reject:r=>this.reject(r)};try{await Promise.resolve(e(s)),this.resolve()}catch(r){this.reject(r)}finally{s.emitOne=void 0,s.emitMany=void 0,s.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await En.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,i){return new Qe(async s=>{for await(let r of e)s.emitOne(i(r))})}map(e){return Qe.map(this,e)}static filter(e,i){return new Qe(async s=>{for await(let r of e)i(r)&&s.emitOne(r)})}filter(e){return Qe.filter(this,e)}static coalesce(e){return Qe.filter(e,i=>!!i)}coalesce(){return Qe.coalesce(this)}static async toPromise(e){let i=[];for await(let s of e)i.push(s);return i}toPromise(){return Qe.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};ha.EMPTY=ha.fromArray([]);var Ef=class extends qt{constructor(t){super(),this._terminal=t,this._linesCacheTimeout=this._register(new Rs),this._linesCacheDisposables=this._register(new Rs),this._register(yi(()=>this._destroyLinesCache()))}initLinesCache(){this._linesCache||(this._linesCache=new Array(this._terminal.buffer.active.length),this._linesCacheDisposables.value=Mh(this._terminal.onLineFeed(()=>this._destroyLinesCache()),this._terminal.onCursorMove(()=>this._destroyLinesCache()),this._terminal.onResize(()=>this._destroyLinesCache()))),this._linesCacheTimeout.value=Ih(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeout.clear()}getLineFromCache(t){return this._linesCache?.[t]}setLineInCache(t,e){this._linesCache&&(this._linesCache[t]=e)}translateBufferLineToStringWithWrap(t,e){let i=[],s=[0],r=this._terminal.buffer.active.getLine(t);for(;r;){let n=this._terminal.buffer.active.getLine(t+1),o=n?n.isWrapped:!1,a=r.translateToString(!o&&e);if(o&&n){let l=r.getCell(r.length-1);l&&l.getCode()===0&&l.getWidth()===1&&n.getCell(0)?.getWidth()===2&&(a=a.slice(0,-1))}if(i.push(a),o)s.push(s[s.length-1]+a.length);else break;t++,r=n}return[i.join(""),s]}},Lf=class{get cachedSearchTerm(){return this._cachedSearchTerm}set cachedSearchTerm(t){this._cachedSearchTerm=t}get lastSearchOptions(){return this._lastSearchOptions}set lastSearchOptions(t){this._lastSearchOptions=t}isValidSearchTerm(t){return!!(t&&t.length>0)}didOptionsChange(t){return this._lastSearchOptions?t?this._lastSearchOptions.caseSensitive!==t.caseSensitive||this._lastSearchOptions.regex!==t.regex||this._lastSearchOptions.wholeWord!==t.wholeWord:!1:!0}shouldUpdateHighlighting(t,e){return e?.decorations?this._cachedSearchTerm===void 0||t!==this._cachedSearchTerm||this.didOptionsChange(e):!1}clearCachedTerm(){this._cachedSearchTerm=void 0}reset(){this._cachedSearchTerm=void 0,this._lastSearchOptions=void 0}},Mf=class{constructor(t,e){this._terminal=t,this._lineCache=e}find(t,e,i,s){if(!t||t.length===0){this._terminal.clearSelection();return}if(i>this._terminal.cols)throw new Error(`Invalid col: ${i} to search in terminal of ${this._terminal.cols} cols`);this._lineCache.initLinesCache();let r={startRow:e,startCol:i},n=this._findInLine(t,r,s);if(!n)for(let o=e+1;o<this._terminal.buffer.active.baseY+this._terminal.rows&&(r.startRow=o,r.startCol=0,n=this._findInLine(t,r,s),!n);o++);return n}findNextWithSelection(t,e,i){if(!t||t.length===0){this._terminal.clearSelection();return}let s=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=0,n=0;s&&(i===t?(r=s.end.x,n=s.end.y):(r=s.start.x,n=s.start.y)),this._lineCache.initLinesCache();let o={startRow:n,startCol:r},a=this._findInLine(t,o,e);if(!a)for(let l=n+1;l<this._terminal.buffer.active.baseY+this._terminal.rows&&(o.startRow=l,o.startCol=0,a=this._findInLine(t,o,e),!a);l++);if(!a&&n!==0)for(let l=0;l<n&&(o.startRow=l,o.startCol=0,a=this._findInLine(t,o,e),!a);l++);return!a&&s&&(o.startRow=s.start.y,o.startCol=0,a=this._findInLine(t,o,e)),a}findPreviousWithSelection(t,e,i){if(!t||t.length===0){this._terminal.clearSelection();return}let s=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=this._terminal.buffer.active.baseY+this._terminal.rows-1,n=this._terminal.cols,o=!0;this._lineCache.initLinesCache();let a={startRow:r,startCol:n},l;if(s&&(a.startRow=r=s.start.y,a.startCol=n=s.start.x,i!==t&&(l=this._findInLine(t,a,e,!1),l||(a.startRow=r=s.end.y,a.startCol=n=s.end.x))),l||(l=this._findInLine(t,a,e,o)),!l){a.startCol=Math.max(a.startCol,this._terminal.cols);for(let h=r-1;h>=0&&(a.startRow=h,l=this._findInLine(t,a,e,o),!l);h--);}if(!l&&r!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let h=this._terminal.buffer.active.baseY+this._terminal.rows-1;h>=r&&(a.startRow=h,l=this._findInLine(t,a,e,o),!l);h--);return l}_isWholeWord(t,e,i){return(t===0||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(e[t-1]))&&(t+i.length===e.length||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(e[t+i.length]))}_findInLine(t,e,i={},s=!1){let r=e.startRow,n=e.startCol;if(this._terminal.buffer.active.getLine(r)?.isWrapped){if(s){e.startCol+=this._terminal.cols;return}return e.startRow--,e.startCol+=this._terminal.cols,this._findInLine(t,e,i)}let o=this._lineCache.getLineFromCache(r);o||(o=this._lineCache.translateBufferLineToStringWithWrap(r,!0),this._lineCache.setLineInCache(r,o));let[a,l]=o,h=this._bufferColsToStringOffset(r,n),c=t,d=a;i.regex||(c=i.caseSensitive?t:t.toLowerCase(),d=i.caseSensitive?a:a.toLowerCase());let u=-1;if(i.regex){let f=RegExp(c,i.caseSensitive?"g":"gi"),g;if(s)for(;g=f.exec(d.slice(0,h));)u=f.lastIndex-g[0].length,t=g[0],f.lastIndex-=t.length-1;else g=f.exec(d.slice(h)),g&&g[0].length>0&&(u=h+(f.lastIndex-g[0].length),t=g[0])}else s?h-c.length>=0&&(u=d.lastIndexOf(c,h-c.length)):u=d.indexOf(c,h);if(u>=0){if(i.wholeWord&&!this._isWholeWord(u,d,t))return;let f=0;for(;f<l.length-1&&u>=l[f+1];)f++;let g=f;for(;g<l.length-1&&u+t.length>=l[g+1];)g++;let C=u-l[f],E=u+t.length-l[g],D=this._stringLengthToBufferSize(r+f,C),B=this._stringLengthToBufferSize(r+g,E)-D+this._terminal.cols*(g-f);return{term:t,col:D,row:r+f,size:B}}}_stringLengthToBufferSize(t,e){let i=this._terminal.buffer.active.getLine(t);if(!i)return 0;for(let s=0;s<e;s++){let r=i.getCell(s);if(!r)break;let n=r.getChars();n.length>1&&(e-=n.length-1);let o=i.getCell(s+1);o&&o.getWidth()===0&&e++}return e}_bufferColsToStringOffset(t,e){let i=t,s=0,r=this._terminal.buffer.active.getLine(i);for(;e>0&&r;){for(let n=0;n<e&&n<this._terminal.cols;n++){let o=r.getCell(n);if(!o)break;o.getWidth()&&(s+=o.getCode()===0?1:o.getChars().length)}if(i++,r=this._terminal.buffer.active.getLine(i),r&&!r.isWrapped)break;e-=this._terminal.cols}return s}},Tf=class extends qt{constructor(t){super(),this._terminal=t,this._highlightDecorations=[],this._highlightedLines=new Set,this._register(yi(()=>this.clearHighlightDecorations()))}createHighlightDecorations(t,e){this.clearHighlightDecorations();for(let i of t){let s=this._createResultDecorations(i,e,!1);if(s)for(let r of s)this._storeDecoration(r,i)}}createActiveDecoration(t,e){let i=this._createResultDecorations(t,e,!0);if(i)return{decorations:i,match:t,dispose(){qi(i)}}}clearHighlightDecorations(){qi(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear()}_storeDecoration(t,e){this._highlightedLines.add(t.marker.line),this._highlightDecorations.push({decoration:t,match:e,dispose(){t.dispose()}})}_applyStyles(t,e,i){t.classList.contains("xterm-find-result-decoration")||(t.classList.add("xterm-find-result-decoration"),e&&(t.style.outline=`1px solid ${e}`)),i&&t.classList.add("xterm-find-active-result-decoration")}_createResultDecorations(t,e,i){let s=[],r=t.col,n=t.size,o=-this._terminal.buffer.active.baseY-this._terminal.buffer.active.cursorY+t.row;for(;n>0;){let l=Math.min(this._terminal.cols-r,n);s.push([o,r,l]),r=0,n-=l,o++}let a=[];for(let l of s){let h=this._terminal.registerMarker(l[0]),c=this._terminal.registerDecoration({marker:h,x:l[1],width:l[2],backgroundColor:i?e.activeMatchBackground:e.matchBackground,overviewRulerOptions:this._highlightedLines.has(h.line)?void 0:{color:i?e.activeMatchColorOverviewRuler:e.matchOverviewRuler,position:"center"}});if(c){let d=[];d.push(h),d.push(c.onRender(u=>this._applyStyles(u,i?e.activeMatchBorder:e.matchBorder,!1))),d.push(c.onDispose(()=>qi(d))),a.push(c)}}return a.length===0?void 0:a}},Rf=class extends qt{constructor(){super(...arguments),this._searchResults=[],this._onDidChangeResults=this._register(new ut)}get onDidChangeResults(){return this._onDidChangeResults.event}get searchResults(){return this._searchResults}get selectedDecoration(){return this._selectedDecoration}set selectedDecoration(t){this._selectedDecoration=t}updateResults(t,e){this._searchResults=t.slice(0,e)}clearResults(){this._searchResults=[]}clearSelectedDecoration(){this._selectedDecoration&&(this._selectedDecoration.dispose(),this._selectedDecoration=void 0)}findResultIndex(t){for(let e=0;e<this._searchResults.length;e++){let i=this._searchResults[e];if(i.row===t.row&&i.col===t.col&&i.size===t.size)return e}return-1}fireResultsChanged(t){if(!t)return;let e=-1;this._selectedDecoration&&(e=this.findResultIndex(this._selectedDecoration.match)),this._onDidChangeResults.fire({resultIndex:e,resultCount:this._searchResults.length})}reset(){this.clearSelectedDecoration(),this.clearResults()}},Df=class extends qt{constructor(t){super(),this._highlightTimeout=this._register(new Rs),this._lineCache=this._register(new Rs),this._state=new Lf,this._resultTracker=this._register(new Rf),this._highlightLimit=t?.highlightLimit??1e3}get onDidChangeResults(){return this._resultTracker.onDidChangeResults}activate(t){this._terminal=t,this._lineCache.value=new Ef(t),this._engine=new Mf(t,this._lineCache.value),this._decorationManager=new Tf(t),this._register(this._terminal.onWriteParsed(()=>this._updateMatches())),this._register(this._terminal.onResize(()=>this._updateMatches())),this._register(yi(()=>this.clearDecorations()))}_updateMatches(){this._highlightTimeout.clear(),this._state.cachedSearchTerm&&this._state.lastSearchOptions?.decorations&&(this._highlightTimeout.value=Ih(()=>{let t=this._state.cachedSearchTerm;this._state.clearCachedTerm(),this.findPrevious(t,{...this._state.lastSearchOptions,incremental:!0},{noScroll:!0})},200))}clearDecorations(t){this._resultTracker.clearSelectedDecoration(),this._decorationManager?.clearHighlightDecorations(),this._resultTracker.clearResults(),t||this._state.clearCachedTerm()}clearActiveDecoration(){this._resultTracker.clearSelectedDecoration()}findNext(t,e,i){if(!this._terminal||!this._engine)throw new Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=e,this._state.shouldUpdateHighlighting(t,e)&&this._highlightAllMatches(t,e);let s=this._findNextAndSelect(t,e,i);return this._fireResults(e),this._state.cachedSearchTerm=t,s}_highlightAllMatches(t,e){if(!this._terminal||!this._engine||!this._decorationManager)throw new Error("Cannot use addon until it has been loaded");if(!this._state.isValidSearchTerm(t)){this.clearDecorations();return}this.clearDecorations(!0);let i=[],s,r=this._engine.find(t,0,0,e);for(;r&&(s?.row!==r.row||s?.col!==r.col)&&!(i.length>=this._highlightLimit);)s=r,i.push(s),r=this._engine.find(t,s.col+s.term.length>=this._terminal.cols?s.row+1:s.row,s.col+s.term.length>=this._terminal.cols?0:s.col+1,e);this._resultTracker.updateResults(i,this._highlightLimit),e.decorations&&this._decorationManager.createHighlightDecorations(i,e.decorations)}_findNextAndSelect(t,e,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(t))return this._terminal.clearSelection(),this.clearDecorations(),!1;let s=this._engine.findNextWithSelection(t,e,this._state.cachedSearchTerm);return this._selectResult(s,e?.decorations,i?.noScroll)}findPrevious(t,e,i){if(!this._terminal||!this._engine)throw new Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=e,this._state.shouldUpdateHighlighting(t,e)&&this._highlightAllMatches(t,e);let s=this._findPreviousAndSelect(t,e,i);return this._fireResults(e),this._state.cachedSearchTerm=t,s}_fireResults(t){this._resultTracker.fireResultsChanged(!!t?.decorations)}_findPreviousAndSelect(t,e,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(t))return this._terminal.clearSelection(),this.clearDecorations(),!1;let s=this._engine.findPreviousWithSelection(t,e,this._state.cachedSearchTerm);return this._selectResult(s,e?.decorations,i?.noScroll)}_selectResult(t,e,i){if(!this._terminal||!this._decorationManager)return!1;if(this._resultTracker.clearSelectedDecoration(),!t)return this._terminal.clearSelection(),!1;if(this._terminal.select(t.col,t.row,t.size),e){let s=this._decorationManager.createActiveDecoration(t,e);s&&(this._resultTracker.selectedDecoration=s)}if(!i&&(t.row>=this._terminal.buffer.active.viewportY+this._terminal.rows||t.row<this._terminal.buffer.active.viewportY)){let s=t.row-this._terminal.buffer.active.viewportY;s-=Math.floor(this._terminal.rows/2),this._terminal.scrollLines(s)}return!0}};const Yt=new ji("TerminalStateMachine");var et=(t=>(t.UNINITIALIZED="uninitialized",t.INITIALIZING="initializing",t.CONNECTING="connecting",t.CONNECTED="connected",t.RECONNECTING="reconnecting",t.DISCONNECTED="disconnected",t.ERROR="error",t.DISPOSED="disposed",t))(et||{});class Bf{constructor(e){P(this,"currentState","uninitialized");P(this,"stateListeners",new Map);P(this,"transitionListeners",new Set);P(this,"errorHandlers",new Set);P(this,"transitions",[{from:["uninitialized"],to:"initializing",action:"initialize"},{from:["initializing"],to:"connecting",action:"connect"},{from:["connecting"],to:"connected",action:"connected"},{from:["disconnected","error"],to:"reconnecting",action:"reconnect"},{from:["reconnecting"],to:"connected",action:"reconnected"},{from:["connected","connecting"],to:"disconnected",action:"disconnect"},{from:["initializing","connecting","connected","reconnecting"],to:"error",action:"error"},{from:["uninitialized","initializing","connecting","connected","reconnecting","disconnected","error"],to:"disposed",action:"dispose"}]);this.terminalId=e}getState(){return this.currentState}canTransition(e){const i=this.transitions.find(s=>s.action===e&&s.from.includes(this.currentState));return!(!i||i.guard&&!i.guard())}transition(e){const i=this.transitions.find(r=>r.action===e&&r.from.includes(this.currentState));if(!i)return Yt.warn(`Invalid transition: ${e} from ${this.currentState}`),!1;if(i.guard&&!i.guard())return Yt.warn(`Guard failed for transition: ${e}`),!1;const s=this.currentState;return this.currentState=i.to,Yt.info(`Terminal ${this.terminalId}: ${s} -> ${this.currentState} (${e})`),this.notifyStateListeners(this.currentState),this.notifyTransitionListeners(s,this.currentState),!0}onStateChange(e,i){let s=this.stateListeners.get(e);return s||(s=new Set,this.stateListeners.set(e,s)),s.add(i),()=>{this.stateListeners.get(e)?.delete(i)}}onTransition(e){return this.transitionListeners.add(e),()=>{this.transitionListeners.delete(e)}}onError(e){return this.errorHandlers.add(e),()=>{this.errorHandlers.delete(e)}}reportError(e){Yt.error(`Terminal ${this.terminalId} error:`,e),this.errorHandlers.forEach(i=>{try{i(e)}catch(s){Yt.error("Error handler threw exception:",s)}}),this.currentState!=="disposed"&&this.transition("error")}isHealthy(){return["connected","connecting","reconnecting"].includes(this.currentState)}canAcceptInput(){return this.currentState==="connected"}isDisposed(){return this.currentState==="disposed"}notifyStateListeners(e){this.stateListeners.get(e)?.forEach(i=>{try{i()}catch(s){Yt.error("Error in state listener:",s)}})}notifyTransitionListeners(e,i){this.transitionListeners.forEach(s=>{try{s(e,i)}catch(r){Yt.error("Error in transition listener:",r)}})}dispose(){this.isDisposed()||this.transition("dispose"),this.stateListeners.clear(),this.transitionListeners.clear(),this.errorHandlers.clear()}}const ct=new ji("TerminalBufferManager"),Ln="terminal-buffer-index";let Jt=null,hn=0;const Af=5e3;function Mn(){const t=Date.now();if(Jt&&t-hn<Af)return Jt;try{const e=localStorage.getItem(Ln);if(e){const i=JSON.parse(e);Jt=new Map(i.map(s=>[s.key,s.timestamp]))}else Jt=new Map}catch{Jt=new Map}return hn=t,Jt}function Tn(t){try{const e=Array.from(t.entries()).map(([i,s])=>({key:i,timestamp:s}));localStorage.setItem(Ln,JSON.stringify(e)),Jt=t,hn=Date.now()}catch{}}function la(t,e){const i=Mn();i.set(t,e),Tn(i)}function ca(t){const e=Mn();e.delete(t),Tn(e)}const $e=class $e{constructor(e,i){P(this,"storageKey");P(this,"fallbackStorage",new Map);this.workspaceId=e,this.terminalId=i,this.storageKey=`terminal-buffer-${e}-${i}`}async saveBuffer(e,i,s){try{const n={lines:this.trimBuffer(e),cursorX:i,cursorY:s,timestamp:Date.now(),version:$e.BUFFER_VERSION};if(await this.hasStorageSpace(n))try{return localStorage.setItem(this.storageKey,JSON.stringify(n)),la(this.storageKey,n.timestamp),ct.debug(`Saved buffer for terminal ${this.terminalId}`),!0}catch(o){return ct.warn("localStorage failed, using fallback storage:",o),this.fallbackStorage.set(this.storageKey,n),!0}else{await this.cleanupOldBuffers();try{return localStorage.setItem(this.storageKey,JSON.stringify(n)),la(this.storageKey,n.timestamp),!0}catch{return this.fallbackStorage.set(this.storageKey,n),!0}}}catch(r){return ct.error("Failed to save buffer:",r),!1}}async restoreBuffer(){try{const e=localStorage.getItem(this.storageKey);if(e){const s=JSON.parse(e);if(this.isValidSnapshot(s))return ct.debug(`Restored buffer for terminal ${this.terminalId}`),s;localStorage.removeItem(this.storageKey)}const i=this.fallbackStorage.get(this.storageKey);return i&&this.isValidSnapshot(i)?i:null}catch(e){return ct.error("Failed to restore buffer:",e),null}}async clearBuffer(){try{localStorage.removeItem(this.storageKey),this.fallbackStorage.delete(this.storageKey),ca(this.storageKey)}catch(e){ct.error("Failed to clear buffer:",e)}}trimBuffer(e){for(;e.length>0&&!e[e.length-1].trim();)e.pop();return e.length>$e.MAX_BUFFER_SIZE&&(e=e.slice(-1e4)),e.map(i=>i.length>$e.MAX_LINE_LENGTH?`${i.substring(0,$e.MAX_LINE_LENGTH)}…`:i)}isValidSnapshot(e){return!(e.version!==$e.BUFFER_VERSION||Date.now()-e.timestamp>$e.RETENTION_PERIOD||!Array.isArray(e.lines))}async hasStorageSpace(e){try{const i=JSON.stringify(e).length;if("storage"in navigator&&"estimate"in navigator.storage){const s=await navigator.storage.estimate();return(s.quota||0)-(s.usage||0)>i+$e.STORAGE_QUOTA_BUFFER}return!0}catch{return!0}}async cleanupOldBuffers(){try{const e=[],i=Date.now(),s=Mn();for(const[r,n]of s)i-n>$e.RETENTION_PERIOD&&e.push(r);for(const r of e)localStorage.removeItem(r),ca(r),ct.debug(`Cleaned up old buffer: ${r}`);s.size===0&&await this.rebuildBufferIndex()}catch(e){ct.error("Failed to cleanup old buffers:",e)}}async rebuildBufferIndex(){try{const e=new Map;for(let i=0;i<localStorage.length;i++){const s=localStorage.key(i);if(s?.startsWith("terminal-buffer-")&&s!==Ln)try{const r=localStorage.getItem(s);if(r){const n=JSON.parse(r);e.set(s,n.timestamp)}}catch{}}e.size>0&&(Tn(e),ct.debug(`Rebuilt buffer index with ${e.size} entries`))}catch(e){ct.error("Failed to rebuild buffer index:",e)}}getStats(){try{const e=localStorage.getItem(this.storageKey);if(e){const i=JSON.parse(e);return{size:e.length,lineCount:i.lines.length,age:Date.now()-i.timestamp}}return null}catch{return null}}};P($e,"BUFFER_VERSION",1),P($e,"MAX_BUFFER_SIZE",1e4),P($e,"MAX_LINE_LENGTH",1e3),P($e,"RETENTION_PERIOD",1440*60*1e3),P($e,"STORAGE_QUOTA_BUFFER",100*1024);let Ds=$e;const Oi=new ji("TerminalThemeManager"),Se=class Se{constructor(e){P(this,"currentTheme");P(this,"customTerminalTheme",null);P(this,"themeObserver",null);P(this,"transitionTimeout",null);P(this,"darkModeQuery",null);P(this,"darkModeChangeHandler",null);P(this,"themeChangeHandler",null);this.container=e,this.currentTheme=this.detectSystemTheme(),this.setContainer(this.container??null),this.setupThemeObserver()}setContainer(e){this.transitionTimeout&&(clearTimeout(this.transitionTimeout),this.transitionTimeout=null),this.container&&this.container!==e&&(this.container.style.transition=""),this.container=e,this.container&&(this.container.style.backgroundColor=this.currentTheme.background||"transparent")}getCurrentTheme(){return this.currentTheme}applyTheme(e,i){const s=i||this.detectSystemTheme();if(s.name!==this.currentTheme.name)try{this.container&&(this.container.style.transition=`background-color ${Se.TRANSITION_DURATION}ms ease`),e.options.theme=s,this.container&&(this.container.style.backgroundColor=s.background||"transparent"),e.refresh(0,e.rows-1),this.currentTheme=s,Oi.debug(`Applied theme: ${s.name}`),this.transitionTimeout&&clearTimeout(this.transitionTimeout),this.transitionTimeout=setTimeout(()=>{this.container&&(this.container.style.transition="")},Se.TRANSITION_DURATION)}catch(r){Oi.error("Failed to apply theme:",r)}}detectSystemTheme(){if(this.customTerminalTheme)return this.customTerminalTheme;const e=document.documentElement.classList.contains("dark"),i=document.documentElement.classList.contains("light");if(e)return Se.DARK_THEME;if(i)return Se.LIGHT_THEME;const s=document.documentElement.getAttribute("data-theme");if(s==="dark")return Se.DARK_THEME;if(s==="light")return Se.LIGHT_THEME;const n=getComputedStyle(document.documentElement).getPropertyValue("--background").trim();return n&&this.isColorDark(n)||Uh.isDark()?Se.DARK_THEME:Se.LIGHT_THEME}isColorDark(e){const i=this.colorToRgb(e);return i?(.299*i.r+.587*i.g+.114*i.b)/255<.5:!1}colorToRgb(e){if(e.startsWith("#")){const s=e.slice(1);if(s.length===3)return{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16)};if(s.length===6)return{r:parseInt(s.slice(0,2),16),g:parseInt(s.slice(2,4),16),b:parseInt(s.slice(4,6),16)}}const i=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);return i?{r:parseInt(i[1]),g:parseInt(i[2]),b:parseInt(i[3])}:null}setupThemeObserver(){typeof window>"u"||(this.themeObserver=new MutationObserver(e=>{for(const i of e)if(i.type==="attributes"){const s=i.attributeName;if(s==="class"||s==="data-theme"){const r=this.detectSystemTheme();r.name!==this.currentTheme.name&&(Oi.debug(`Theme change detected: ${this.currentTheme.name} -> ${r.name}`),Ui("terminal-theme-changed",{theme:r}))}}}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),this.darkModeQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.darkModeChangeHandler=()=>{Oi.debug("System theme preference changed");const e=this.detectSystemTheme();e.name!==this.currentTheme.name&&Ui("terminal-theme-changed",{theme:e})},this.darkModeQuery.addEventListener("change",this.darkModeChangeHandler),this.themeChangeHandler=e=>{const i=e.detail?.isDark,s=e.detail?.terminalColors;let r;s&&Object.keys(s).length>0?(r={...i?Se.DARK_THEME:Se.LIGHT_THEME,...s,name:"custom",isDark:i},this.customTerminalTheme=r):(this.customTerminalTheme=null,r=i?Se.DARK_THEME:Se.LIGHT_THEME),(r.name!==this.currentTheme.name||s)&&(Oi.debug(`App theme changed to ${r.name}`),Ui("terminal-theme-changed",{theme:r}))},window.addEventListener("theme-changed",this.themeChangeHandler))}dispose(){this.themeObserver&&(this.themeObserver.disconnect(),this.themeObserver=null),this.darkModeQuery&&this.darkModeChangeHandler&&(this.darkModeQuery.removeEventListener("change",this.darkModeChangeHandler),this.darkModeQuery=null,this.darkModeChangeHandler=null),this.themeChangeHandler&&(window.removeEventListener("theme-changed",this.themeChangeHandler),this.themeChangeHandler=null),this.transitionTimeout&&(clearTimeout(this.transitionTimeout),this.transitionTimeout=null),this.setContainer(null)}};P(Se,"TRANSITION_DURATION",200),P(Se,"DARK_THEME",{name:"sleek-dark",isDark:!0,background:"#0B0B0E",foreground:"#e4e4e7",cursor:"#fbbf24",cursorAccent:"#1a1a1a",selectionBackground:"#3f3f46",selectionForeground:"#F7F7F7",selectionInactiveBackground:"#27272a",black:"#18181b",red:"#ef4444",green:"#22c55e",yellow:"#eab308",blue:"#3b82f6",magenta:"#a855f7",cyan:"#06b6d4",white:"#d4d4d8",brightBlack:"#52525b",brightRed:"#f87171",brightGreen:"#4ade80",brightYellow:"#facc15",brightBlue:"#60a5fa",brightMagenta:"#c084fc",brightCyan:"#22d3ee",brightWhite:"#f4f4f5"}),P(Se,"LIGHT_THEME",{name:"sleek-light",isDark:!1,background:"#F7F7F8",foreground:"#18181b",cursor:"#f59e0b",cursorAccent:"#F7F7F7",selectionBackground:"#e4e4e7",selectionForeground:"#09090b",selectionInactiveBackground:"#f4f4f5",black:"#18181b",red:"#dc2626",green:"#16a34a",yellow:"#ca8a04",blue:"#2563eb",magenta:"#9333ea",cyan:"#0891b2",white:"#e4e4e7",brightBlack:"#71717a",brightRed:"#ef4444",brightGreen:"#22c55e",brightYellow:"#eab308",brightBlue:"#3b82f6",brightMagenta:"#a855f7",brightCyan:"#06b6d4",brightWhite:"#F7F7F7"});let ln=Se;const Ft="***",Pf="(?=[A-Za-z_])[A-Za-z0-9_]*(?:KEY|TOKEN|SECRET|PASSWORD|PASS|CREDENTIAL|AUTH|PWD)[A-Za-z0-9_]*",Of=new RegExp(`((?:^|(?<=\\s)|&&|;|\\|\\|)\\s*(?:export\\s+)?)(${Pf})(=)("(?:[^"\\\\]|\\\\.)*"|'(?:[^'\\\\]|\\\\.)*'|\\\`[^\\\`]*\\\`|\\S+)`,"gi"),If=/(-[Hh]\s+|--header\s+)(['"])(Authorization:\s*)[^'"]*(\2)/gi,$f=/([\w+.-]+:\/\/[^\s@]+):([^\s@]+)@(?=\S)/gi,Ff=/(curl\s+(?:\S+\s+)*(?:-u|--user)[=\s]\s*)(["']?)([^\s"':]+):([^\s"']+)\2/gi,Nf=/(--(?:password|passwd|token|secret|api-key|api-token|auth-token|access-token|client-secret|private-key))(=)("(?:[^"\\\\]|\\\\.)*"|'(?:[^'\\\\]|\\\\.)*'|\S+)/gi,zf=/(--(?:password|passwd|token|secret|api-key|api-token|auth-token|access-token|client-secret|private-key))\s+("(?:[^"\\\\]|\\\\.)*"|'(?:[^'\\\\]|\\\\.)*'|\S+)/gi,Wf=/((?:mysql|mongosh?|redis-cli|sshpass)\s+(?:\S+\s+)*-[pP])\s+(\S+)/gi,Hf=/(mysql\s+(?:\S+\s+)*-[pP])(\S+)/gi;function Ut(t){if(!t)return t;let e=t;return e=e.replace(If,`$1$2Authorization: ${Ft}$4`),e=e.replace(Ff,`$1$2$3:${Ft}$2`),e=e.replace($f,`$1:${Ft}@`),e=e.replace(Nf,`$1$2${Ft}`),e=e.replace(zf,`$1 ${Ft}`),e=e.replace(Wf,`$1 ${Ft}`),e=e.replace(Hf,`$1${Ft}`),e=e.replace(Of,`$1$2$3${Ft}`),e}function $p(t){try{const e=new URL(t);return`${e.origin}${e.pathname}`.substring(0,100)}catch{return""}}const Xt=Kh("TerminalHistoryTracker"),Qt=class Qt{constructor(){P(this,"histories",new Map);P(this,"MAX_HISTORY_SIZE",10);P(this,"MAX_OUTPUT_LENGTH",500);P(this,"STORAGE_PREFIX","terminal-history-");P(this,"_updateCounter",Wh(0));P(this,"updateCounter",{subscribe:this._updateCounter.subscribe});this.loadHistories()}notifyUpdate(){this._updateCounter.update(e=>e+1)}static getInstance(){return Qt.instance||(Qt.instance=new Qt),Qt.instance}getOrCreateHistory(e,i){let s=this.histories.get(e);return s||(s={terminalId:e,workspaceId:i,commands:[],currentOutput:"",isExecuting:!1},this.histories.set(e,s)),s}onCommandStart(e,i,s){const r=this.getOrCreateHistory(e,i),n=Ut(s);r.currentCommand=n,r.currentOutput="",r.isExecuting=!0,r.lastCommand=n,this.notifyUpdate(),Xt.debug(`Command started for terminal ${e}: ${n}`)}onOutput(e,i,s){const r=this.getOrCreateHistory(e,i);r.currentOutput.length<this.MAX_OUTPUT_LENGTH&&(r.currentOutput+=s,r.currentOutput.length>this.MAX_OUTPUT_LENGTH&&(r.currentOutput=`${r.currentOutput.substring(0,this.MAX_OUTPUT_LENGTH)}...`))}onCommandFinish(e,i){const s=this.getOrCreateHistory(e,i);if(s.currentCommand){const r=Ut(s.currentCommand),n={command:r,timestamp:Date.now(),output:s.currentOutput};s.commands.push(n),s.commands.length>this.MAX_HISTORY_SIZE&&(s.commands=s.commands.slice(-this.MAX_HISTORY_SIZE)),s.lastCommand=r,s.lastOutput=s.currentOutput,this.saveHistory(e,s),Xt.debug(`Command finished for terminal ${e}: ${r}`)}s.currentCommand=void 0,s.currentOutput="",s.isExecuting=!1,this.notifyUpdate()}getHistory(e){return this.histories.get(e)}getHistoriesForWorkspace(e){return Array.from(this.histories.values()).filter(i=>i.workspaceId===e)}getLastCommand(e){return this.histories.get(e)?.lastCommand}getLastOutput(e){return this.histories.get(e)?.lastOutput}saveHistory(e,i){try{const s=`${this.STORAGE_PREFIX}${e}`,r={terminalId:i.terminalId,workspaceId:i.workspaceId,commands:i.commands.slice(-5).map(n=>({...n,command:Ut(n.command)})),lastCommand:i.lastCommand?Ut(i.lastCommand):void 0,lastOutput:i.lastOutput?.substring(0,200)};localStorage.setItem(s,JSON.stringify(r))}catch(s){Xt.warn("Failed to save terminal history:",s)}}loadHistories(){try{const e=Object.keys(localStorage).filter(i=>i.startsWith(this.STORAGE_PREFIX));for(const i of e)try{const s=localStorage.getItem(i);if(s){const r=JSON.parse(s);r.terminalId&&this.histories.set(r.terminalId,{...r,currentOutput:"",isExecuting:!1,commands:r.commands||[]})}}catch(s){Xt.warn(`Failed to load terminal history for ${i}:`,s)}Xt.info(`Loaded ${this.histories.size} terminal histories from localStorage`)}catch(e){Xt.error("Failed to load terminal histories:",e)}}clearHistory(e){this.histories.delete(e);try{localStorage.removeItem(`${this.STORAGE_PREFIX}${e}`)}catch(i){Xt.warn("Failed to clear terminal history:",i)}}clearWorkspaceHistories(e){const i=[];for(const[s,r]of this.histories.entries())r.workspaceId===e&&i.push(s);for(const s of i)this.clearHistory(s)}};P(Qt,"instance");let cn=Qt;const Ii=cn.getInstance();function Uf(t,e){return setTimeout(()=>{try{t.dispose()}catch(i){if(e)e(i);else throw i}},0)}const Kf=["panel.focus-next-column","panel.focus-previous-column","global.next-space-alt","global.previous-space-alt","navigation.go-to-tab"];function qf(t,e,i,s=!1){const r=o=>Pn(o,e),n=s?r("navigation.go-to-device"):Pn("navigation.go-to-tab",e)===On["navigation.go-to-tab"]?On["navigation.go-to-device"]:null;return n&&In(t,n,i)>=0&&!$n("navigation.go-to-device",t,r,i)?!0:Kf.some(o=>In(t,r(o),i)>=0&&(o!=="navigation.go-to-tab"||!$n(o,t,r,i)))}const Vf=Df,I=new ji("TerminalAdapter"),Gf=typeof process<"u"&&process.platform==="win32",Yf=100,Ae=class Ae{constructor(e){P(this,"xterm");P(this,"fitAddon");P(this,"searchAddon");P(this,"webLinksAddon");P(this,"webglAddon",null);P(this,"stateMachine");P(this,"bufferManager");P(this,"themeManager");P(this,"terminalId");P(this,"workspaceId");P(this,"container");P(this,"eventListeners",[]);P(this,"resizeObserver",null);P(this,"reattachFitObserver",null);P(this,"reattachFitTimer",null);P(this,"visibilityObserver",null);P(this,"wasVisible",!0);P(this,"isVisible",!0);P(this,"lastFittedSize",null);P(this,"resizeDebounceTimer",null);P(this,"bufferSaveTimer",null);P(this,"dataDisposable",null);P(this,"resizeDisposable",null);P(this,"selectionDisposable",null);P(this,"ipcCleanup",null);P(this,"themeCleanup",null);P(this,"webglContextLostCleanup",null);P(this,"isDisposed",!1);P(this,"isXtermOpened",!1);P(this,"autoReconnectTimer",null);P(this,"autoReconnectAttempts",0);P(this,"heartbeatTimer",null);P(this,"webglRecoveryAttempts",0);P(this,"exitedNormally",!1);P(this,"lastCwd");P(this,"isExecuting",!1);P(this,"startTime",Date.now());P(this,"commandBuffer","");P(this,"currentLineBuffer","");P(this,"isAtPrompt",!1);P(this,"callbacks");P(this,"terminals");this.workspaceId=e.workspaceId,this.terminalId=e.terminalId||`terminal-${Date.now()}-${Math.random().toString(36).substring(2,11)}`,this.container=e.container,this.terminals=(e.appClient??Hh).terminals,this.callbacks={onReady:e.onReady,onExit:e.onExit,onCommandStart:e.onCommandStart,onCommandFinished:e.onCommandFinished,onCwdChanged:e.onCwdChanged,onError:e.onError,onToggleSearch:e.onToggleSearch},this.stateMachine=new Bf(this.terminalId),this.setupStateMachineListeners(),this.bufferManager=new Ds(this.workspaceId,this.terminalId),this.themeManager=new ln(this.container);const i=e.fontFamily??jh.select(_t.state);this.xterm=new au({allowProposedApi:!0,fontFamily:i,fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!0,cursorStyle:"block",cursorWidth:1,scrollback:1e4,allowTransparency:!0,windowsPty:Gf?{backend:"conpty"}:void 0,macOptionIsMeta:!0,rightClickSelectsWord:!0,convertEol:!0,drawBoldTextInBrightColors:!0,scrollSensitivity:1,theme:this.themeManager.getCurrentTheme()}),this.fitAddon=new cu,this.xterm.loadAddon(this.fitAddon),this.webLinksAddon=new pu((s,r)=>{this.handleLinkClick(r)}),this.xterm.loadAddon(this.webLinksAddon),this.searchAddon=new Vf,this.xterm.loadAddon(this.searchAddon),this.searchAddon.onDidChangeResults(s=>{this.callbacks.onSearchResultsChange?.(s.resultIndex,s.resultCount)})}getSearchDecorations(){return{matchBackground:"#515c6a",matchBorder:"#515c6a",matchOverviewRuler:"#515c6a",activeMatchBackground:"#eab308",activeMatchBorder:"#ca8a04",activeMatchColorOverviewRuler:"#eab308"}}setupStateMachineListeners(){this.stateMachine.onTransition((e,i)=>{i===et.ERROR&&this.handleError(new Error(`Terminal entered error state from ${e}`)),(i===et.DISCONNECTED||i===et.ERROR)&&(this.stopHeartbeat(),this.exitedNormally||this.scheduleAutoReconnect()),i===et.CONNECTED&&(this.autoReconnectAttempts=0,this.cancelAutoReconnect(),this.startHeartbeat())}),this.stateMachine.onError(e=>{this.handleError(e)})}async initialize(e=!1){if(this.isDisposed)throw new Error("Cannot initialize disposed terminal");if(!this.container)throw new Error("Cannot initialize terminal without a container");const i=this.container;if(!this.stateMachine.canTransition("initialize"))throw new Error(`Cannot initialize terminal in state ${this.stateMachine.getState()}`);this.stateMachine.transition("initialize");try{this.isXtermOpened?I.warn(`[initialize] XTerm already opened for terminal ${this.terminalId}, skipping open()`):(this.xterm.open(i),this.isXtermOpened=!0,I.info(`[initialize] XTerm opened for terminal ${this.terminalId}`)),this.themeManager.getCurrentTheme().isDark?this.loadWebglAddon():I.debug("[Renderer] Using Canvas renderer for light theme (better anti-aliasing)"),this.themeManager.applyTheme(this.xterm),this.fitTerminalToContainer()||(I.warn("Container has no dimensions, delaying fit"),setTimeout(()=>{this.fitTerminalToContainer()},100)),this.setupResizeObserver(),this.setupXTermEventHandlers(),this.setupThemeChangeListener();const r=this.xterm.cols,n=this.xterm.rows,o=await this.findBackendTerminal(),a=o!==null;if(!e)if(a)try{const l=await this.terminals.getBuffer(this.terminalId,void 0,this.workspaceId);l&&(I.info(`Restoring ${l.length} bytes of buffered output from backend`),this.xterm.write(l),this.parseTerminalOutput(l))}catch(l){I.warn("Could not restore terminal buffer from backend:",l)}else{const l=await this.bufferManager.restoreBuffer();l&&(I.info("Restoring terminal buffer from local storage"),this.restoreFromSnapshot(l))}this.startBufferAutoSave(),this.stateMachine.transition("connect"),a?(this.setupIpcEventHandlers(),this.stateMachine.transition("connected"),this.resize(r,n),o?.isExecuting===!1&&this.hideCursorOnExit(),this.callbacks.onReady?.()):(I.debug(`[initialize] Terminal ${this.terminalId} creating new PTY`),await this.openPtyConnection(r,n)),requestAnimationFrame(()=>{!this.isDisposed&&this.isVisible&&this.xterm.focus()})}catch(s){throw this.stateMachine.reportError(s),s}}async openPtyConnection(e,i){try{const s=await this.terminals.create({workspaceId:this.workspaceId,cols:e,rows:i});if(!s.success)throw new Error(s.error||Fs.terminal_adapter_openFailed_error());s.id&&(this.terminalId=s.id),this.setupIpcEventHandlers(),this.stateMachine.transition("connected"),this.restoreCursor(),this.callbacks.onReady?.()}catch(s){throw this.stateMachine.reportError(s),s}}async findBackendTerminal(){try{const{terminals:e}=await this.terminals.list(this.workspaceId);return e.find(i=>i.id===this.terminalId)??null}catch(e){return I.warn("Could not check terminal existence:",e),null}}async terminalExistsOnBackend(){return await this.findBackendTerminal()!==null}hideCursorOnExit(){this.isDisposed||(this.xterm.options.cursorBlink=!1,this.xterm.write("\x1B[?25l"))}restoreCursor(){this.isDisposed||(this.xterm.options.cursorBlink=!0,this.xterm.write("\x1B[?25h"))}setupXTermEventHandlers(){this.container&&(this.dataDisposable&&(this.dataDisposable.dispose(),this.dataDisposable=null),this.resizeDisposable&&(this.resizeDisposable.dispose(),this.resizeDisposable=null),this.selectionDisposable&&(this.selectionDisposable.dispose(),this.selectionDisposable=null),this.xterm.attachCustomKeyEventHandler(e=>{const i=navigator.platform.toUpperCase().includes("MAC"),s=i?e.metaKey:e.ctrlKey;return e.metaKey&&e.key==="k"&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&this.clear(),!1):s&&e.key==="j"&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&_t.dispatch(An(this.workspaceId)),!1):s&&e.key==="f"&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&this.callbacks.onToggleSearch?.(),!1):s&&(e.key==="t"||e.key==="T")&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&Ui("workspace:new-terminal",{workspaceId:this.workspaceId}),!1):s&&(e.key==="w"||e.key==="W")&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&_t.dispatch(Vh(this.workspaceId)),!1):qf(e,_t.state.userPreferences?.shortcutOverrides??{},i,_t.state.machineRail?.enabled??!1)||s&&e.shiftKey&&!e.altKey&&(e.key==="]"||e.key==="}"||e.key==="["||e.key==="{")?!1:e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.key==="`"||e.key==="~")?(e.type==="keydown"&&(e.shiftKey||e.key==="~"?Ui("workspace:new-terminal",{workspaceId:this.workspaceId}):_t.dispatch(An(this.workspaceId))),!1):!0}),this.dataDisposable=this.xterm.onData(e=>{this.isDisposed||this.write(e)}),this.resizeDisposable=this.xterm.onResize(({cols:e,rows:i})=>{!this.isDisposed&&this.stateMachine.canAcceptInput()&&this.resize(e,i)}),this.selectionDisposable=this.xterm.onSelectionChange(()=>{}))}setupIpcEventHandlers(){this.ipcCleanup&&(this.ipcCleanup(),this.ipcCleanup=null);let e=!1;const i=this.terminals.subscribeEvents(this.terminalId,{onData:({chunk:s})=>{e||this.isDisposed||this.stateMachine.canAcceptInput()&&(this.xterm.write(s),this.parseTerminalOutput(s))},onExit:({exitCode:s})=>{e||this.isDisposed||(this.exitedNormally=!0,this.hideCursorOnExit(),this.callbacks.onExit?.(s),this.stateMachine.transition("disconnect"))},onCwd:({cwd:s})=>{e||this.isDisposed||(this.lastCwd=s,this.callbacks.onCwdChanged?.(s))}},this.workspaceId);this.ipcCleanup=()=>{e=!0;try{i()}catch(s){I.warn("Failed to unsubscribe terminal events:",s)}}}setupResizeObserver(){if(!this.container||!this.isVisible)return;const e=this.container;this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null),this.resizeObserver=new ResizeObserver(()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=setTimeout(()=>{this.fitTerminalToContainer()},100)}),this.resizeObserver.observe(e),this.setupVisibilityObserver()}setupVisibilityObserver(){if(!this.container)return;const e=this.container;this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.visibilityObserver=new IntersectionObserver(i=>{for(const s of i){const r=s.isIntersecting;r&&!this.wasVisible&&(I.debug(`[visibility] Terminal ${this.terminalId} became visible, reconnecting ResizeObserver`),this.resizeObserver||(this.resizeObserver=new ResizeObserver(()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=setTimeout(()=>{this.fitTerminalToContainer()},100)}),this.resizeObserver.observe(e)),this.fitTerminalToContainer()),this.wasVisible=r}}),this.visibilityObserver.observe(e)}loadWebglAddon(){this.disposeWebglAddon();try{this.webglAddon=new Z_,this.xterm.loadAddon(this.webglAddon);const e=this.xterm.element?.querySelector("canvas");if(e){const i=s=>{s.preventDefault(),I.warn(`[WebGL] Context lost for terminal ${this.terminalId}, recovering...`),!this.isDisposed&&(this.disposeWebglAddon(),setTimeout(()=>{if(this.isDisposed)return;if(!this.themeManager.getCurrentTheme().isDark){I.info("[WebGL] Skipping WebGL recovery on light theme, using Canvas renderer");return}if(this.webglRecoveryAttempts>=Ae.MAX_WEBGL_RECOVERY_ATTEMPTS){I.warn(`[WebGL] Max recovery attempts (${Ae.MAX_WEBGL_RECOVERY_ATTEMPTS}) reached for terminal ${this.terminalId}, staying on Canvas renderer`);return}this.webglRecoveryAttempts++;try{this.loadWebglAddon(),I.info(`[WebGL] Successfully recovered from context loss (attempt ${this.webglRecoveryAttempts})`)}catch(n){I.warn("[WebGL] Failed to recover from context loss, falling back to Canvas renderer:",n),this.webglAddon=null}},100))};e.addEventListener("webglcontextlost",i),this.webglContextLostCleanup=()=>{e.removeEventListener("webglcontextlost",i)}}}catch(e){I.warn("Failed to load WebGL renderer, falling back to Canvas renderer:",e),this.webglAddon=null}}disposeWebglAddon(){if(this.webglContextLostCleanup&&(this.webglContextLostCleanup(),this.webglContextLostCleanup=null),this.webglAddon){try{this.webglAddon.dispose()}catch(e){I.warn("Error disposing WebGL addon:",e)}this.webglAddon=null}}setupThemeChangeListener(){this.themeCleanup&&(this.themeCleanup(),this.themeCleanup=null);const e=i=>{const s=i.detail?.theme;s&&this.xterm&&(I.info(`[Theme] Theme changed to: ${s.name} (isDark: ${s.isDark})`),this.themeManager.applyTheme(this.xterm,s),s.isDark?this.webglAddon||this.loadWebglAddon():this.webglAddon&&(this.disposeWebglAddon(),I.info("[WebGL] Disposed WebGL addon for light theme (using Canvas renderer)")))};window.addEventListener("terminal-theme-changed",e),this.themeCleanup=()=>{window.removeEventListener("terminal-theme-changed",e)}}parseTerminalOutput(e){Ii.onOutput(this.terminalId,this.workspaceId,e),e.includes("\x1B]133;C\x07")?(this.isExecuting&&(this.isExecuting=!1,this.callbacks.onCommandFinished?.(),Ii.onCommandFinish(this.terminalId,this.workspaceId)),this.commandBuffer="",this.isAtPrompt=!0):e.includes("\x1B]133;A\x07")&&(this.isExecuting||(this.isExecuting=!0,this.callbacks.onCommandStart?.()),this.isAtPrompt=!0,this.commandBuffer="");const i=/[\$%]\s*$/,s=/^.*[\$%]\s+(.+)$/,r=e.split(/\r?\n/);for(const o of r){const a=o.replace(/\x1b\[[0-9;?]*[a-zA-Z]/g,"").replace(/\x1b\][^\x07]*\x07/g,"").replace(/\x1b\][^\x1b]*\x1b\\/g,"").replace(/\x1b[()][AB0-2]/g,"").replace(/\x1b[=>]/g,"").replace(/\x1b[78]/g,"").replace(/\x1b[DME]/g,"").replace(/\x1b[HZ]/g,"").replace(/\x1b[c]/g,"").replace(/\[\?[0-9;]*[a-zA-Z]/g,"").replace(/\x07/g,"").replace(/\x00-\x08\x0b\x0c\x0e-\x1f/g,"").trim();if(!a||/^\[[\?0-9;]*[a-zA-Z]$/.test(a))continue;const l=a.match(s);if(l&&l[1]){const h=l[1].trim(),c=/^[a-zA-Z0-9.\/~]/.test(h);h.length>0&&!this.isExecuting&&c?(I.info(`[TerminalAdapter] Detected command from output: ${Ut(h)}`),Ii.onCommandStart(this.terminalId,this.workspaceId,h),this.isExecuting=!0,this.callbacks.onCommandStart?.()):h.length>0&&!c&&I.debug(`[TerminalAdapter] Skipping suspicious command detection: ${Ut(h)}`)}i.test(a)&&!l&&(this.isExecuting&&(this.isExecuting=!1,this.callbacks.onCommandFinished?.(),Ii.onCommandFinish(this.terminalId,this.workspaceId),I.debug(`[TerminalAdapter] Command finished, prompt detected: ${Ut(a)}`)),this.isAtPrompt=!0,this.commandBuffer="")}const n=e.match(/\x1b\]7;file:\/\/[^/]*([^\x07]*)\x07/);if(n){const o=decodeURIComponent(n[1]);o!==this.lastCwd&&(this.lastCwd=o,this.callbacks.onCwdChanged?.(o))}}startBufferAutoSave(){this.bufferSaveTimer=setInterval(()=>{this.stateMachine?.canAcceptInput()&&this.saveBuffer()},5e3)}async saveBuffer(){try{const e=this.xterm.buffer.active,i=[];for(let s=0;s<e.length;s++){const r=e.getLine(s);r&&i.push(r.translateToString(!0))}await this.bufferManager.saveBuffer(i,e.cursorX,e.cursorY)}catch(e){I.error("Failed to save buffer:",e)}}restoreFromSnapshot(e){if(e.lines&&e.lines.length>0){this.xterm.clear();const i=[...e.lines];for(;i.length>0&&i[i.length-1].trim()==="";)i.pop();const s=/[\$>#%]\s*$/,r=/@[\w-]+/;if(i.length>0){const n=i[i.length-1],o=i.length>1?i[i.length-2]:"";if(s.test(n)&&r.test(n))i.pop();else if(s.test(n)&&n.trim().length<80)i.pop(),i.length>0&&r.test(i[i.length-1])&&i.pop();else if(i.length>=2){const a=o+n;s.test(a)&&r.test(a)&&(i.pop(),i.pop())}}for(let n=0;n<i.length;n++)n<i.length-1?this.xterm.writeln(i[n]):i[n].trim()&&this.xterm.writeln(i[n]);I.debug(`Restored terminal buffer for ${this.terminalId} with ${i.length} lines (prompt removed)`)}}getCommandFromXtermBuffer(){try{const e=this.xterm.buffer.active,i=e.cursorY+e.baseY,s=e.getLine(i);if(!s)return null;const r=s.translateToString(!0);if(!r||!r.trim())return null;const n=r.replace(/\x1b\[[0-9;?]*[a-zA-Z]/g,"").replace(/\x1b\][^\x07]*\x07/g,"").replace(/\x1b[()][AB0-2]/g,"").replace(/\x07/g,"").trim();if(!n)return null;const o=n.match(/^.*[\$%#❯➜]\s+(.+)$/);return o&&o[1]?o[1].trim():null}catch{return null}}write(e){if(!(this.isDisposed||!this.stateMachine.canAcceptInput())){if(e==="\r"||e===`
|
|
142
142
|
`){const i=this.getCommandFromXtermBuffer(),s=i||this.commandBuffer.trim();s&&(Ii.onCommandStart(this.terminalId,this.workspaceId,s),this.isExecuting=!0,I.debug(`Command executed: ${Ut(s)}${i?" (from xterm buffer)":" (from keystroke buffer)"}`)),this.commandBuffer="",this.currentLineBuffer=""}else e===""||e==="\b"?this.commandBuffer.length>0&&(this.commandBuffer=this.commandBuffer.slice(0,-1)):e===""?(this.commandBuffer="",this.currentLineBuffer=""):e===""?(this.commandBuffer="",this.currentLineBuffer=""):e.match(/[\x00-\x1F\x7F]/)||(this.commandBuffer+=e,this.currentLineBuffer+=e);this.terminals.write(this.terminalId,e,this.workspaceId).then(i=>{i.success||I.error(`[write] Terminal ${this.terminalId}: write failed - ${i.error}`)}).catch(i=>{I.error(`[write] Terminal ${this.terminalId}: transport error - ${i}`),this.isDisposed||this.stateMachine.reportError(i)})}}resize(e,i){this.isDisposed||!this.stateMachine.canAcceptInput()||this.terminals.resize(this.terminalId,e,i,this.workspaceId).catch(s=>{I.error("Failed to resize terminal:",s)})}focus(){!this.isDisposed&&this.isVisible&&this.xterm.focus()}blur(){this.isDisposed||this.xterm.blur()}setVisible(e){if(!(this.isDisposed||this.isVisible===e)){if(this.isVisible=e,this.wasVisible=e,!e){this.xterm.blur(),this.disconnectLayoutObservers();return}this.setupResizeObserver(),requestAnimationFrame(()=>this.fitTerminalToContainer())}}fitTerminalToContainer(){if(this.isDisposed||!this.isVisible||!this.container)return!1;const{width:e,height:i}=this.container.getBoundingClientRect();return e<=0||i<=0?!1:(this.lastFittedSize?.width===e&&this.lastFittedSize.height===i||(this.fitAddon.fit(),this.lastFittedSize={width:e,height:i}),!0)}disconnectLayoutObservers(){this.resizeObserver?.disconnect(),this.resizeObserver=null,this.visibilityObserver?.disconnect(),this.visibilityObserver=null,this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null)}fitAfterReattach(e){if(this.cancelReattachFit(),this.fitReattachedContainer(e))return;const i=new ResizeObserver(()=>{if(this.reattachFitObserver!==i){i.disconnect();return}this.hasReattachedContainerBox(e)&&(this.reattachFitTimer&&clearTimeout(this.reattachFitTimer),this.reattachFitTimer=setTimeout(()=>{this.reattachFitTimer=null,this.fitReattachedContainer(e)&&this.cancelReattachFit()},Yf))});this.reattachFitObserver=i,i.observe(e)}fitReattachedContainer(e){if(this.isDisposed||this.container!==e)return!0;if(!this.hasReattachedContainerBox(e))return!1;const{width:i,height:s}=e.getBoundingClientRect();return this.fitAddon.fit(),this.lastFittedSize={width:i,height:s},this.xterm.refresh(0,this.xterm.rows-1),!0}hasReattachedContainerBox(e){if(!this.isVisible)return!1;const{width:i,height:s}=e.getBoundingClientRect();return i>0&&s>0}cancelReattachFit(){this.reattachFitObserver?.disconnect(),this.reattachFitObserver=null,this.reattachFitTimer&&(clearTimeout(this.reattachFitTimer),this.reattachFitTimer=null)}clear(){this.isDisposed||this.xterm.clear()}async reattach(e){if(this.isDisposed||this.stateMachine.isDisposed())throw new Error("Cannot reattach disposed terminal");this.cancelAutoReconnect(),this.autoReconnectAttempts=0,this.webglRecoveryAttempts=0,this.exitedNormally=!1,this.setupIpcEventHandlers();const i=this.stateMachine.getState();if(i!==et.CONNECTED){I.info(`[reattach] Terminal ${this.terminalId} not in CONNECTED state (${i}), attempting to restore`);const n=await this.findBackendTerminal();n&&(i===et.DISCONNECTED||i===et.ERROR?(this.stateMachine.transition("reconnect"),this.stateMachine.transition("reconnected")):i===et.CONNECTING&&this.stateMachine.transition("connected"),n.isExecuting===!1&&this.hideCursorOnExit(),I.info(`[reattach] Terminal ${this.terminalId} state restored to ${this.stateMachine.getState()}`))}const s=this.xterm.element;if(s){e.appendChild(s),this.container=e,this.themeManager.setContainer(e),this.disposeWebglAddon(),this.themeManager.applyTheme(this.xterm),this.themeManager.getCurrentTheme().isDark?this.loadWebglAddon():I.debug("[Renderer] Using Canvas renderer after move (light theme)"),this.fitAfterReattach(e),this.setupResizeObserver(),this.setupXTermEventHandlers(),this.commandBuffer="",this.currentLineBuffer="",this.isAtPrompt=!1,this.startHeartbeat(),requestAnimationFrame(()=>{!this.isDisposed&&this.isVisible&&this.xterm.focus()});return}I.warn(`Could not move terminal element, recreating for terminal ${this.terminalId}`),this.container&&(this.container.innerHTML=""),this.disposeWebglAddon(),this.dataDisposable&&(this.dataDisposable.dispose(),this.dataDisposable=null),this.container=e,this.themeManager.setContainer(e),this.isXtermOpened&&I.warn(`[reattach] XTerm was already opened for terminal ${this.terminalId}, calling open() again may cause duplicate handlers`),this.xterm.open(e),this.isXtermOpened=!0,this.themeManager.applyTheme(this.xterm),this.themeManager.getCurrentTheme().isDark?this.loadWebglAddon():I.debug("[Renderer] Using Canvas renderer on reattach (light theme)"),this.fitAfterReattach(e),this.setupXTermEventHandlers(),this.setupResizeObserver(),this.commandBuffer="",this.currentLineBuffer="",this.isAtPrompt=!1,this.startHeartbeat(),requestAnimationFrame(()=>{!this.isDisposed&&this.isVisible&&this.xterm.focus()})}updateCallbacks(e){Object.assign(this.callbacks,e)}updateFontFamily(e){this.isDisposed||this.xterm.options.fontFamily!==e&&(this.xterm.options.fontFamily=e)}findNext(e,i){return this.searchAddon.findNext(e,{caseSensitive:i?.caseSensitive??!1,wholeWord:i?.wholeWord??!1,regex:i?.regex??!1,incremental:!1,decorations:this.getSearchDecorations()})}findPrevious(e,i){return this.searchAddon.findPrevious(e,{caseSensitive:i?.caseSensitive??!1,wholeWord:i?.wholeWord??!1,regex:i?.regex??!1,incremental:!1,decorations:this.getSearchDecorations()})}clearSearch(){this.searchAddon.clearDecorations()}getSelection(){return this.xterm.getSelection()}getInfo(){const e=this.bufferManager.getStats();return{id:this.terminalId,workspaceId:this.workspaceId,state:this.stateMachine.getState(),cwd:this.lastCwd,isExecuting:this.isExecuting,stats:e?{bufferSize:e.size,lineCount:e.lineCount,uptime:Date.now()-this.startTime}:void 0}}startHeartbeat(){this.heartbeatTimer||this.isDisposed||(I.debug(`[heartbeat] Starting for terminal ${this.terminalId} (every ${Ae.HEARTBEAT_INTERVAL_MS}ms)`),this.heartbeatTimer=setInterval(()=>{this.performHealthCheck()},Ae.HEARTBEAT_INTERVAL_MS))}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null,I.debug(`[heartbeat] Stopped for terminal ${this.terminalId}`))}async performHealthCheck(){if(this.isDisposed||!this.ipcCleanup||this.stateMachine.getState()!==et.CONNECTED)return;let e=null;try{const i=await Promise.race([this.terminalExistsOnBackend(),new Promise((s,r)=>{e=setTimeout(()=>r(new Error("Heartbeat timeout")),Ae.HEARTBEAT_TIMEOUT_MS)})]);if(e&&clearTimeout(e),this.isDisposed)return;i||(I.warn(`[heartbeat] Terminal ${this.terminalId}: PTY not found on backend, transitioning to DISCONNECTED`),this.stopHeartbeat(),this.stateMachine.transition("disconnect"))}catch(i){if(e&&clearTimeout(e),this.isDisposed)return;I.warn(`[heartbeat] Terminal ${this.terminalId}: health check failed:`,i),this.stopHeartbeat(),this.stateMachine.transition("disconnect")}}scheduleAutoReconnect(){if(this.isDisposed)return;if(this.autoReconnectAttempts>=Ae.MAX_RECONNECT_ATTEMPTS){I.warn(`[auto-reconnect] Terminal ${this.terminalId}: max reconnect attempts (${Ae.MAX_RECONNECT_ATTEMPTS}) reached, giving up`);return}this.cancelAutoReconnect();const e=Ae.BASE_RECONNECT_DELAY_MS*Math.pow(2,this.autoReconnectAttempts);this.autoReconnectAttempts++,I.info(`[auto-reconnect] Terminal ${this.terminalId}: scheduling attempt ${this.autoReconnectAttempts}/${Ae.MAX_RECONNECT_ATTEMPTS} in ${e}ms`),this.autoReconnectTimer=setTimeout(()=>{this.autoReconnectTimer=null,this.attemptAutoReconnect()},e)}cancelAutoReconnect(){this.autoReconnectTimer&&(clearTimeout(this.autoReconnectTimer),this.autoReconnectTimer=null)}async attemptAutoReconnect(){if(this.isDisposed)return;const e=this.stateMachine.getState();if(e!==et.DISCONNECTED&&e!==et.ERROR){I.debug(`[auto-reconnect] Terminal ${this.terminalId}: skipping, state is ${e}`);return}this.exitedNormally=!1,I.info(`[auto-reconnect] Terminal ${this.terminalId}: attempting reconnect (attempt ${this.autoReconnectAttempts})`);try{const i=await this.findBackendTerminal();if(this.isDisposed)return;i?(I.info(`[auto-reconnect] Terminal ${this.terminalId}: PTY exists on backend, re-establishing connection`),this.setupIpcEventHandlers(),this.stateMachine.transition("reconnect"),this.stateMachine.transition("reconnected"),this.xterm.cols&&this.xterm.rows&&this.resize(this.xterm.cols,this.xterm.rows),i.isExecuting===!1&&this.hideCursorOnExit(),this.callbacks.onReady?.(),I.info(`[auto-reconnect] Terminal ${this.terminalId}: reconnected successfully`)):(I.info(`[auto-reconnect] Terminal ${this.terminalId}: PTY not found, creating new PTY`),await this.reconnect(),I.info(`[auto-reconnect] Terminal ${this.terminalId}: new PTY created successfully`))}catch(i){I.error(`[auto-reconnect] Terminal ${this.terminalId}: attempt ${this.autoReconnectAttempts} failed:`,i),this.scheduleAutoReconnect()}}handleError(e){I.error(`Terminal ${this.terminalId} error:`,e),this.callbacks.onError?.(e),this.isDisposed||this.xterm.writeln(`\r
|
|
143
143
|
\x1B[31m${Fs.terminal_adapter_errorLine_label({message:e.message})}\x1B[0m\r
|
|
144
|
-
`)}handleLinkClick(e){try{if(qh(e)){I.debug("GitHub URL detected in terminal, opening in external browser",{uri:e,workspaceId:this.workspaceId}),Ns("shell:openExternal",{url:e});return}Bn(async()=>{const{resolveBrowserLinkForOpen:i}=await import("./
|
|
144
|
+
`)}handleLinkClick(e){try{if(qh(e)){I.debug("GitHub URL detected in terminal, opening in external browser",{uri:e,workspaceId:this.workspaceId}),Ns("shell:openExternal",{url:e});return}Bn(async()=>{const{resolveBrowserLinkForOpen:i}=await import("./DaOs4JNK.js").then(s=>s.b);return{resolveBrowserLinkForOpen:i}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url).then(({resolveBrowserLinkForOpen:i})=>i(e)).catch(()=>({url:e})).then(i=>{Bn(async()=>{const{getPanelLayoutManager:s}=await import("./VVSQHNmC.js").then(r=>r.p);return{getPanelLayoutManager:s}},__vite__mapDeps([31,21,22,5,23,24,3,8,4,25,15,2,32,33]),import.meta.url).then(({getPanelLayoutManager:s})=>{s(this.workspaceId).openBrowserPanel(i.url,void 0,void 0,i.requestedUrl),I.debug("Opened URL in browser panel",{uri:e,resolvedUrl:i.url,workspaceId:this.workspaceId})}).catch(s=>{I.warn("Failed to open URL in browser panel, falling back to external browser",{uri:e,error:s}),Ns("shell:openExternal",{url:i.url})})})}catch(i){I.warn("Failed to handle link click",{uri:e,error:i}),Ns("shell:openExternal",{url:e})}}async reconnect(){if(this.isDisposed)throw new Error("Cannot reconnect disposed terminal");if(!this.stateMachine.canTransition("reconnect"))throw new Error(`Cannot reconnect in state ${this.stateMachine.getState()}`);this.exitedNormally=!1,this.stateMachine.transition("reconnect");try{const e=this.xterm.cols,i=this.xterm.rows,s=await this.terminals.create({workspaceId:this.workspaceId,cols:e,rows:i});if(!s.success)throw new Error(s.error||Fs.terminal_adapter_reconnectFailed_error());s.id&&(this.terminalId=s.id),this.setupIpcEventHandlers(),this.stateMachine.transition("reconnected"),this.restoreCursor(),this.callbacks.onReady?.()}catch(e){throw this.stateMachine.reportError(e),e}}detach(){this.ipcCleanup&&(this.ipcCleanup(),this.ipcCleanup=null),this.stopHeartbeat(),this.cancelAutoReconnect(),this.cancelReattachFit(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null);const e=this.xterm.element;e&&e.parentNode&&e.parentNode.removeChild(e),this.themeManager.setContainer(null),this.container=null}dispose(e={}){if(!(this.isDisposed||this.stateMachine.isDisposed())){if(this.isDisposed=!0,this.cancelAutoReconnect(),this.stopHeartbeat(),this.cancelReattachFit(),this.stateMachine.transition("dispose"),this.saveBuffer().catch(()=>{}),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null),this.bufferSaveTimer&&(clearInterval(this.bufferSaveTimer),this.bufferSaveTimer=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.dataDisposable){try{this.dataDisposable.dispose()}catch(i){I.error("Error disposing data handler:",i)}this.dataDisposable=null}if(this.resizeDisposable){try{this.resizeDisposable.dispose()}catch(i){I.error("Error disposing resize handler:",i)}this.resizeDisposable=null}if(this.selectionDisposable){try{this.selectionDisposable.dispose()}catch(i){I.error("Error disposing selection handler:",i)}this.selectionDisposable=null}if(this.ipcCleanup){try{this.ipcCleanup()}catch(i){I.error("Error cleaning up IPC handlers:",i)}this.ipcCleanup=null}if(this.themeCleanup){try{this.themeCleanup()}catch(i){I.error("Error cleaning up theme listener:",i)}this.themeCleanup=null}this.eventListeners.forEach(i=>{try{i()}catch(s){I.error("Error cleaning up event listener:",s)}}),this.eventListeners=[],e.killPty!==!1&&this.terminals.kill(this.terminalId,this.workspaceId).catch(i=>{I.error("Error killing PTY connection:",i)});try{this.searchAddon?.dispose&&this.searchAddon.dispose(),this.webLinksAddon?.dispose&&this.webLinksAddon.dispose(),this.disposeWebglAddon(),this.fitAddon?.dispose&&this.fitAddon.dispose()}catch(i){I.error("Error disposing addons:",i)}try{this.themeManager.dispose()}catch(i){I.error("Error disposing theme manager:",i)}try{this.stateMachine.dispose()}catch(i){I.error("Error disposing state machine:",i)}Uf(this.xterm,i=>{I.error("Error disposing xterm:",i)})}}};P(Ae,"MAX_RECONNECT_ATTEMPTS",5),P(Ae,"BASE_RECONNECT_DELAY_MS",1e3),P(Ae,"HEARTBEAT_INTERVAL_MS",3e4),P(Ae,"HEARTBEAT_TIMEOUT_MS",1e4),P(Ae,"MAX_WEBGL_RECOVERY_ATTEMPTS",3);let dn=Ae;const le=new ji("TerminalManager");class Xf{constructor(){P(this,"terminals",new Map)}saveTerminalMetadata(e,i,s){try{_t.dispatch(Gh(i,e,s,new Date().toISOString())),le.debug(`[RendererTerminalManager] Saved terminal metadata for ${e}`)}catch(r){le.error("[RendererTerminalManager] Failed to save terminal metadata:",r)}}loadTerminalMetadata(e){try{return Zh.select(_t.state,e).map(i=>({terminalId:i.id,workspaceId:i.workspaceId??e,createdAt:i.createdAt??"",title:i.customName||Jh(i.name)}))}catch(i){le.error("[RendererTerminalManager] Failed to load terminal metadata:",i)}return[]}removeTerminalMetadata(e,i){try{_t.dispatch(Yh(i,e)),le.debug(`[RendererTerminalManager] Removed terminal metadata for ${e}`)}catch(s){le.error("[RendererTerminalManager] Failed to remove terminal metadata:",s)}}hasTerminal(e){return this.terminals.has(e)}async getOrCreateTerminal(e,i,s,r,n=!1){let o=this.terminals.get(e);if(n&&o&&(le.info(`[RendererTerminalManager] Force creating new terminal, disposing existing: ${e}`),this.disposeTerminal(e),o=void 0),o)if(o.workspaceId!==i)le.warn(`[RendererTerminalManager] Terminal ${e} has mismatched workspaceId (has: ${o.workspaceId}, requested: ${i}). Disposing and recreating.`),this.disposeTerminal(e),o=void 0;else return le.info(`[RendererTerminalManager] Reattaching to existing terminal: ${e} (was attached: ${o.isAttached})`),o.container=s,o.isAttached=!0,await o.adapter.reattach(s),r&&(o.adapter.updateCallbacks(r),r.onReady?.()),le.info(`[RendererTerminalManager] Successfully reattached terminal: ${e}`),o.adapter;le.info(`[RendererTerminalManager] Creating new terminal: ${e}`);const a=new dn({workspaceId:i,terminalId:e,container:s,...r});return o={adapter:a,terminalId:e,workspaceId:i,isAttached:!0,container:s},this.terminals.set(e,o),this.saveTerminalMetadata(e,i),await a.initialize(n),a}isAttachedTo(e,i){const s=this.terminals.get(e);return!!s&&s.isAttached&&s.container===i}detachTerminal(e,i){const s=this.terminals.get(e);if(s){if(i&&s.container!==i){le.info(`[RendererTerminalManager] Ignoring detach from a stale surface: ${e}`);return}le.info(`[RendererTerminalManager] Detaching terminal: ${e}`),s.isAttached=!1,s.adapter.detach(),s.container=null}}disposeTerminal(e,i){const s=this.terminals.get(e);s?(le.info(`[RendererTerminalManager] Disposing terminal: ${e}`),s.adapter.dispose(),this.terminals.delete(e),this.removeTerminalMetadata(e,s.workspaceId)):_t.dispatch(Xh(e,i))}disposeExitedTerminal(e){const i=this.terminals.get(e);i&&(le.info(`[RendererTerminalManager] Disposing exited terminal: ${e}`),i.adapter.dispose({killPty:!1}),this.terminals.delete(e))}clearTerminal(e){const i=this.terminals.get(e);i&&(le.info(`[RendererTerminalManager] Clearing terminal: ${e}`),i.adapter.clear())}getTerminalInfo(e){const i=this.terminals.get(e);return i?i.adapter.getInfo():null}async getBufferContent(e,i){const s=this.terminals.get(e);if(s?.adapter)try{const r=s.adapter.xterm;if(r?.buffer?.active){const n=r.buffer.active,o=[];for(let a=0;a<n.length;a++){const l=n.getLine(a);l&&o.push(l.translateToString(!0))}for(;o.length>0&&!o[o.length-1].trim();)o.pop();if(o.length>0)return o.join(`
|
|
145
145
|
`)}}catch(r){le.warn("[RendererTerminalManager] Failed to read live buffer, falling back:",r)}try{const n=await new Ds(i,e).restoreBuffer();if(n&&n.lines.length>0){const o=[...n.lines];for(;o.length>0&&!o[o.length-1].trim();)o.pop();return o.join(`
|
|
146
146
|
`)}}catch(r){le.error("[RendererTerminalManager] Failed to read persisted buffer:",r)}return null}disposeWorkspaceTerminals(e){const i=[];for(const[s,r]of this.terminals)r.workspaceId===e&&i.push(s);if(i.length>0){le.info(`[RendererTerminalManager] Disposing ${i.length} terminals for workspace ${e}`);for(const s of i)try{const r=this.terminals.get(s);r&&(r.adapter.dispose(),this.terminals.delete(s))}catch(r){le.error(`[RendererTerminalManager] Failed to dispose terminal ${s}:`,r)}}}disposeAll(){le.info(`[RendererTerminalManager] Disposing all ${this.terminals.size} terminals`);for(const[e,i]of this.terminals)try{i.adapter.dispose()}catch(s){le.error(`[RendererTerminalManager] Failed to dispose terminal ${e}:`,s)}this.terminals.clear()}}typeof window<"u"&&!window.__terminalManager&&(window.__terminalManager=new Xf);const jf=window.__terminalManager,Fp=Object.freeze(Object.defineProperty({__proto__:null,terminalManager:jf},Symbol.toStringTag,{value:"Module"}));export{au as D,pu as L,ln as T,Uf as a,jf as b,Fp as c,$p as d,cu as o,Ut as s,Ii as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as T,bq as r,by as W,bs as $,b as x,bu as B}from"./
|
|
1
|
+
import{t as T,bq as r,by as W,bs as $,b as x,bu as B}from"./BKW86yq_.js";import{bs as C,cd as S,ca as q,a7 as l,ay as f,W as k,bn as z,aA as o}from"./DYhIMPy1.js";import{i as D}from"./CSelYXXo.js";import{k as H}from"./BIWW5pDn.js";import{a as K}from"./DiKPZGG7.js";import{dr as L}from"./BB4FgpiZ.js";import{Iz as j,gK as E}from"./C4xNNtUj.js";function F(i,t){if(new.target)return T({component:F,...i});C(t,!0);const d=()=>B(v,"$workspace$",b),[b,g]=$();let c=r(t,"tab",7),a=r(t,"workspaceId",7),n=r(t,"layoutId",7),p=r(t,"isActive",7);const m=S(a());q(()=>m.set(a()));const v=L(m);var w={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return a()},set workspaceId(e){a(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:W,$on:(e,s)=>x(t,e,s)},u=l(),y=f(u);{var _=e=>{var s=l(),A=f(s);H(A,a,h=>{K(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>j.dispatch(E(n()??a(),c().id))})}),k(e,s)};D(y,e=>{p()&&d()&&e(_)})}k(i,u);var I=z(w);return g(),I}export{F as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as t,s as r}from"./
|
|
1
|
+
import{c as t,s as r}from"./CIDQz_xi.js";import{b as a}from"./DfZvKQFw.js";var s=a(e=>`${r(e)}
|
|
2
2
|
.swimlane.cluster:not([data-color-id]) rect {
|
|
3
3
|
stroke: ${e.clusterBorder} !important;
|
|
4
4
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b9 as et,an as xe,a2 as tt,as as rt,C as Ee,aR as W,J as Oe,aZ as ot,bG as Tt,aY as st,bZ as Pt,az as _t,t as ee,u as Gt,b as Lt,N as Rt,ao as Nt,aS as Et,aL as Ot,aD as Vt,A as Wt,aI as Bt,bM as Ve,a3 as jt,a_ as Ut,aj as $t,ai as Ft,ac as Ht,Z as Dt,bg as qt,U as Yt,n as Zt,bt as Kt,V as Xt}from"./DYhIMPy1.js";import{_ as ue,o as U,c as Jt,b as P,s as k,l as Qt}from"./CIyUrgF0.js";import{Z as ve}from"./
|
|
1
|
+
import{b9 as et,an as xe,a2 as tt,as as rt,C as Ee,aR as W,J as Oe,aZ as ot,bG as Tt,aY as st,bZ as Pt,az as _t,t as ee,u as Gt,b as Lt,N as Rt,ao as Nt,aS as Et,aL as Ot,aD as Vt,A as Wt,aI as Bt,bM as Ve,a3 as jt,a_ as Ut,aj as $t,ai as Ft,ac as Ht,Z as Dt,bg as qt,U as Yt,n as Zt,bt as Kt,V as Xt}from"./DYhIMPy1.js";import{_ as ue,o as U,c as Jt,b as P,s as k,l as Qt}from"./CIyUrgF0.js";import{Z as ve}from"./D9WJ9yaW.js";function er(e,r){var t=void 0,o;et(()=>{t!==(t=r())&&(o&&(xe(o),o=null),t&&(o=tt(()=>{rt(()=>t(e))})))})}function nt(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=nt(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function it(){for(var e,r,t=0,o="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=nt(e))&&(o&&(o+=" "),o+=r);return o}function tr(e){return typeof e=="object"?it(e):e??""}const We=[...`
|
|
2
2
|
\r\f \v\uFEFF`];function rr(e,r,t){var o=e==null?"":""+e;if(r&&(o=o?o+" "+r:r),t){for(var s of Object.keys(t))if(t[s])o=o?o+" "+s:s;else if(o.length)for(var n=s.length,i=0;(i=o.indexOf(s,i))>=0;){var d=i+n;(i===0||We.includes(o[i-1]))&&(d===o.length||We.includes(o[d]))?o=(i===0?"":o.substring(0,i))+o.substring(d+1):i=d}}return o===""?null:o}function Be(e,r=!1){var t=r?" !important;":";",o="";for(var s of Object.keys(e)){var n=e[s];n!=null&&n!==""&&(o+=" "+s+": "+n+t)}return o}function ke(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function or(e,r){if(r){var t="",o,s;if(Array.isArray(r)?(o=r[0],s=r[1]):o=r,e){e=String(e).replaceAll(/\/\*.*?\*\//g,"").trim();var n=!1,i=0,d=!1,m=[];o&&m.push(...Object.keys(o).map(ke)),s&&m.push(...Object.keys(s).map(ke));var u=0,f=-1;const x=e.length;for(var h=0;h<x;h++){var y=e[h];if(d?y==="/"&&e[h-1]==="*"&&(d=!1):n?n===y&&(n=!1):y==="/"&&e[h+1]==="*"?d=!0:y==='"'||y==="'"?n=y:y==="("?i++:y===")"&&i--,!d&&n===!1&&i===0){if(y===":"&&f===-1)f=h;else if(y===";"||h===x-1){if(f!==-1){var A=ke(e.substring(u,f).trim());if(!m.includes(A)){y!==";"&&h++;var C=e.substring(u,h).trim();t+=" "+C+";"}}u=h+1,f=-1}}}}return o&&(t+=Be(o)),s&&(t+=Be(s,!0)),t=t.trim(),t===""?null:t}return e==null?null:String(e)}function sr(e,r,t,o,s,n){var i=e[Ee];if(W||i!==t||i===void 0){var d=rr(t,o,n);(!W||d!==e.getAttribute("class"))&&(d==null?e.removeAttribute("class"):r?e.className=d:e.setAttribute("class",d)),e[Ee]=t}else if(n&&s!==n)for(var m in n){var u=!!n[m];(s==null||u!==!!s[m])&&e.classList.toggle(m,u)}return n}function we(e,r={},t,o){for(var s in t){var n=t[s];r[s]!==n&&(t[s]==null?e.style.removeProperty(s):e.style.setProperty(s,n,o))}}function nr(e,r,t,o){var s=e[Oe];if(W||s!==r){var n=or(r,o);(!W||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e[Oe]=r}else o&&(Array.isArray(o)?(we(e,t?.[0],o[0]),we(e,t?.[1],o[1],"important")):we(e,t,o));return o}function at(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function je(e,r){var t=!("__defaultValue"in e);!t&&e.__defaultValue===r||(e.__defaultValue=r,lt(e,!t||"__value"in e))}function lt(e,r){var t=e.__defaultValue,o=e.multiple,s=o?t??[]:null;if(!(o&&!ot(s))){var n=e.selectedIndex,i=r&&o?new Set(e.selectedOptions):null;for(var d of e.options){var m=Se(d);at(d,o?s.includes(m):st(m,t))}if(r)if(i!==null)for(d of e.options){var u=i.has(d);d.selected!==u&&(d.selected=u)}else e.selectedIndex!==n&&(e.selectedIndex=n)}}function Ce(e,r,t=!1){if(e.multiple){if(r==null)return;if(!ot(r))return Tt();for(var o of e.options)o.selected=r.includes(Se(o));return}for(o of e.options){var s=Se(o);if(st(s,r)){o.selected=!0;return}}(!t||r!==void 0)&&(e.selectedIndex=-1)}function ir(e){var r=new MutationObserver(t=>{t.every(ar)||("__defaultValue"in e&<(e,!1),"__value"in e&&Ce(e,e.__value))});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Pt(()=>{r.disconnect()})}function Se(e){return"__value"in e?e.__value:e.value}function ar(e){if(e.target.closest("selectedcontent")!==null)return!0;if(e.type==="childList"){var r=[...e.addedNodes,...e.removedNodes];return r.length>0&&r.every(t=>t.nodeName==="SELECTEDCONTENT")}return!1}const K=Symbol("class"),X=Symbol("style"),ct=Symbol("is custom element"),dt=Symbol("is html"),lr=ee?"link":"LINK",Ue=ee?"input":"INPUT",cr=ee?"option":"OPTION",ut=ee?"select":"SELECT",dr=ee?"progress":"PROGRESS";function ur(e){if(W){var r=!1,t=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var o=e.value;Q(e,"value",null),e.value=o}if(e.hasAttribute("checked")){var s=e.checked;Q(e,"checked",null),e.checked=s}}};e[Zt]=t,Kt(t),Xt()}}function Q(e,r,t,o){var s=pt(e);if(W&&(s[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===lr)){o||mr(e,r,t??"");return}var n=s[r];n!==(s[r]=t)&&(r==="loading"&&(e[Gt]=t),t==null?e.removeAttribute(r):typeof t!="string"&&mt(e).has(r)?e[r]=t:W&&(typeof t=="number"||typeof t=="boolean")&&n===String(t)||e.setAttribute(r,t))}function pr(e,r,t,o,s=!1,n=!1){W&&s&&e.nodeName===Ue&&("defaultValue"in t||"defaultChecked"in t||ur(e));var i=pt(e),d=i[ct],m=!i[dt];let u=W&&d;u&&Ve(!1);var f=r||{},h=e.nodeName===cr,y=e.nodeName===ut;try{for(var A in r)!(A in t)&&A[0]+A[1]!=="$$"&&(t[A]=null);t.class?t.class=tr(t.class):(o||t[K])&&(t.class=null),t[X]&&(t.style??=null);var C=mt(e);if(e.nodeName===Ue&&"type"in t&&("value"in t||"__value"in t)){var x=t.type;(x!==f.type||x===void 0&&e.hasAttribute("type"))&&(f.type=x,Q(e,"type",x,n))}for(const v in t){let g=t[v];if(h&&v==="value"&&g==null){e.value=e.__value="",f[v]=g;continue}if(v==="class"){var _=e.namespaceURI==="http://www.w3.org/1999/xhtml";sr(e,_,g,o,r?.[K],t[K]),f[v]=g,f[K]=t[K];continue}if(v==="style"){nr(e,g,r?.[X],t[X]),f[v]=g,f[X]=t[X];continue}var G=f[v];if(!(g===G&&!(g===void 0&&e.hasAttribute(v)))){f[v]=g;var w=v[0]+v[1];if(w!=="$$")if(w==="on"){const a={},z="$$"+v;let T=v.slice(2);var B=jt(T);if(Ut(T)&&(T=T.slice(0,-7),a.capture=!0),!B&&G){if(g!=null)continue;e.removeEventListener(T,f[z],a),f[z]=null}if(B)$t(T,e,g),Ft([T]);else if(g!=null){let te=function(q){f[v].call(this,q)};f[z]=Ht(T,e,te,a)}}else if(v==="style")Q(e,v,g);else if(v==="autofocus")Dt(e,!!g);else if(!d&&(v==="__value"||v==="value"&&g!=null))e.__value=g,(G==null||e.value!==g||g===0&&e.nodeName===dr)&&(e.value=g);else if(v==="selected"&&h)at(e,g);else{var S=v;m||(S=qt(S));var O=S==="defaultValue"||S==="defaultChecked";if(y&&S==="defaultValue")continue;if(g==null&&!d&&!O)if(i[v]=null,S==="value"||S==="checked"){let a=e;const z=r===void 0;if(S==="value"){let T=a.defaultValue;a.removeAttribute(S),a.defaultValue=T,a.value=a.__value=z?T:null}else{let T=a.defaultChecked;a.removeAttribute(S),a.defaultChecked=T,a.checked=z?T:!1}}else e.removeAttribute(v);else O||(d||typeof g!="string")&&C.has(S)?(e[S]=g,S in i&&(i[S]=Yt)):typeof g!="function"&&Q(e,S,g,n)}}}}finally{u&&Ve(!0)}return f}function ko(e,r,t=[],o=[],s=[],n,i=!1,d=!1){_t(s,t,o,m=>{var u=void 0,f={},h=e.nodeName===ut,y=!1;if(et(()=>{var C=r(...m.map(Vt)),x=pr(e,u,C,n,i,d);if(y&&h){var _=e;"defaultValue"in C&&je(_,C.defaultValue),"value"in C&&Ce(_,C.value)}for(let w of Object.getOwnPropertySymbols(f))C[w]||xe(f[w]);for(let w of Object.getOwnPropertySymbols(C)){var G=C[w];w.description===Wt&&(!u||G!==u[w])&&(f[w]&&xe(f[w]),f[w]=tt(()=>er(e,()=>G))),x[w]=G}u=x}),h){var A=e;rt(()=>{var C=u;"defaultValue"in C&&je(A,C.defaultValue),Ce(A,C.value,!0),ir(A)})}y=!0})}function pt(e){return e[Lt]??={[ct]:e.nodeName.includes("-"),[dt]:e.namespaceURI===Rt}}var $e=new Map;function mt(e){var r=e.getAttribute("is")||e.nodeName,t=$e.get(r);if(t)return t;$e.set(r,t=new Set);for(var o,s=e,n=Element.prototype;n!==s;){o=Bt(s);for(var i in o)o[i].set&&i!=="innerHTML"&&i!=="textContent"&&i!=="innerText"&&t.add(i);s=Ot(s)}return t}function mr(e,r,t){Nt&&(r==="srcset"&&fr(e,t)||Ae(e.getAttribute(r)??"",t)||Et(r,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(t)))}function Ae(e,r){return e===r?!0:new URL(e,document.baseURI).href===new URL(r,document.baseURI).href}function Fe(e){return e.split(",").map(r=>r.trim().split(" ").filter(Boolean))}function fr(e,r){var t=Fe(e.srcset),o=Fe(r);return o.length===t.length&&o.every(([s,n],i)=>n===t[i][1]&&(Ae(t[i][0],s)||Ae(s,t[i][0])))}typeof window<"u"&&typeof window.matchMedia!="function"&&(window.matchMedia=e=>({matches:!1,media:e,onchange:null,addListener(){},removeListener(){},addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}));const br=(e,r)=>{const t=new Array(e.length+r.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<r.length;o++)t[e.length+o]=r[o];return t},gr=(e,r)=>({classGroupId:e,validator:r}),ft=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),pe="-",He=[],hr="arbitrary..",vr=e=>{const r=wr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return kr(i);const d=i.split(pe),m=d[0]===""&&d.length>1?1:0;return bt(d,m,r)},getConflictingClassGroupIds:(i,d)=>{if(d){const m=o[i],u=t[i];return m?u?br(u,m):m:u||He}return t[i]||He}}},bt=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const s=e[r],n=t.nextPart.get(s);if(n){const u=bt(e,r+1,n);if(u)return u}const i=t.validators;if(i===null)return;const d=r===0?e.join(pe):e.slice(r).join(pe),m=i.length;for(let u=0;u<m;u++){const f=i[u];if(f.validator(d))return f.classGroupId}},kr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),o=r.slice(0,t);return o?hr+o:void 0})(),wr=e=>{const{theme:r,classGroups:t}=e;return yr(t,r)},yr=(e,r)=>{const t=ft();for(const o in e){const s=e[o];Me(s,t,o,r)}return t},Me=(e,r,t,o)=>{const s=e.length;for(let n=0;n<s;n++){const i=e[n];xr(i,r,t,o)}},xr=(e,r,t,o)=>{if(typeof e=="string"){Cr(e,r,t);return}if(typeof e=="function"){Sr(e,r,t,o);return}Ar(e,r,t,o)},Cr=(e,r,t)=>{const o=e===""?r:gt(r,e);o.classGroupId=t},Sr=(e,r,t,o)=>{if(zr(e)){Me(e(o),r,t,o);return}r.validators===null&&(r.validators=[]),r.validators.push(gr(t,e))},Ar=(e,r,t,o)=>{const s=Object.entries(e),n=s.length;for(let i=0;i<n;i++){const[d,m]=s[i];Me(m,gt(r,d),t,o)}},gt=(e,r)=>{let t=e;const o=r.split(pe),s=o.length;for(let n=0;n<s;n++){const i=o[n];let d=t.nextPart.get(i);d||(d=ft(),t.nextPart.set(i,d)),t=d}return t},zr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ir=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),o=Object.create(null);const s=(n,i)=>{t[n]=i,r++,r>e&&(r=0,o=t,t=Object.create(null))};return{get(n){let i=t[n];if(i!==void 0)return i;if((i=o[n])!==void 0)return s(n,i),i},set(n,i){n in t?t[n]=i:s(n,i)}}},ze="!",De=":",Mr=[],qe=(e,r,t,o,s)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:o,isExternal:s}),Tr=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=s=>{const n=[];let i=0,d=0,m=0,u;const f=s.length;for(let x=0;x<f;x++){const _=s[x];if(i===0&&d===0){if(_===De){n.push(s.slice(m,x)),m=x+1;continue}if(_==="/"){u=x;continue}}_==="["?i++:_==="]"?i--:_==="("?d++:_===")"&&d--}const h=n.length===0?s:s.slice(m);let y=h,A=!1;h.endsWith(ze)?(y=h.slice(0,-1),A=!0):h.startsWith(ze)&&(y=h.slice(1),A=!0);const C=u&&u>m?u-m:void 0;return qe(n,A,y,C)};if(r){const s=r+De,n=o;o=i=>i.startsWith(s)?n(i.slice(s.length)):qe(Mr,!1,i,void 0,!0)}if(t){const s=o;o=n=>t({className:n,parseClassName:s})}return o},Pr=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{r.set(t,1e6+o)}),t=>{const o=[];let s=[];for(let n=0;n<t.length;n++){const i=t[n],d=i[0]==="[",m=r.has(i);d||m?(s.length>0&&(s.sort(),o.push(...s),s=[]),o.push(i)):s.push(i)}return s.length>0&&(s.sort(),o.push(...s)),o}},_r=e=>({cache:Ir(e.cacheSize),parseClassName:Tr(e),sortModifiers:Pr(e),postfixLookupClassGroupIds:Gr(e),...vr(e)}),Gr=e=>{const r=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o<t.length;o++)r[t[o]]=!0;return r},Lr=/\s+/,Rr=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:n,postfixLookupClassGroupIds:i}=r,d=[],m=e.trim().split(Lr);let u="";for(let f=m.length-1;f>=0;f-=1){const h=m[f],{isExternal:y,modifiers:A,hasImportantModifier:C,baseClassName:x,maybePostfixModifierPosition:_}=t(h);if(y){u=h+(u.length>0?" "+u:u);continue}let G=!!_,w;if(G){const g=x.substring(0,_);w=o(g);const a=w&&i[w]?o(x):void 0;a&&a!==w&&(w=a,G=!1)}else w=o(x);if(!w){if(!G){u=h+(u.length>0?" "+u:u);continue}if(w=o(x),!w){u=h+(u.length>0?" "+u:u);continue}G=!1}const B=A.length===0?"":A.length===1?A[0]:n(A).join(":"),S=C?B+ze:B,O=S+w;if(d.indexOf(O)>-1)continue;d.push(O);const v=s(w,G);for(let g=0;g<v.length;++g){const a=v[g];d.push(S+a)}u=h+(u.length>0?" "+u:u)}return u},Nr=(...e)=>{let r=0,t,o,s="";for(;r<e.length;)(t=e[r++])&&(o=ht(t))&&(s&&(s+=" "),s+=o);return s},ht=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ht(e[o]))&&(t&&(t+=" "),t+=r);return t},Ye=(e,...r)=>{let t,o,s,n;const i=m=>{const u=r.reduce((f,h)=>h(f),e());return t=_r(u),o=t.cache.get,s=t.cache.set,n=d,d(m)},d=m=>{const u=o(m);if(u)return u;const f=Rr(m,t);return s(m,f),f};return n=i,(...m)=>n(Nr(...m))},Er=[],I=e=>{const r=t=>t[e]||Er;return r.isThemeGetter=!0,r.themeKey=e,r},vt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Or=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Vr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Br=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,jr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ur=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>Or.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),E=e=>!!e&&Number.isInteger(Number(e)),ye=e=>e.endsWith("%")&&b(e.slice(0,-1)),V=e=>Vr.test(e),wt=()=>!0,$r=e=>Wr.test(e)&&!Br.test(e),Te=()=>!1,Fr=e=>jr.test(e),Hr=e=>Ur.test(e),Dr=e=>!l(e)&&!c(e),qr=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Yr=e=>$(e,Ct,Te),l=e=>vt.test(e),H=e=>$(e,St,$r),Ze=e=>$(e,ro,b),Zr=e=>$(e,zt,wt),Kr=e=>$(e,At,Te),Ke=e=>$(e,yt,Te),Xr=e=>$(e,xt,Hr),ie=e=>$(e,It,Fr),c=e=>kt.test(e),J=e=>D(e,St),Jr=e=>D(e,At),Xe=e=>D(e,yt),Qr=e=>D(e,Ct),eo=e=>D(e,xt),ae=e=>D(e,It,!0),to=e=>D(e,zt,!0),$=(e,r,t)=>{const o=vt.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},D=(e,r,t=!1)=>{const o=kt.exec(e);return o?o[1]?r(o[1]):t:!1},yt=e=>e==="position"||e==="percentage",xt=e=>e==="image"||e==="url",Ct=e=>e==="length"||e==="size"||e==="bg-size",St=e=>e==="length",ro=e=>e==="number",At=e=>e==="family-name",zt=e=>e==="number"||e==="weight",It=e=>e==="shadow",Je=()=>{const e=I("color"),r=I("font"),t=I("text"),o=I("font-weight"),s=I("tracking"),n=I("leading"),i=I("breakpoint"),d=I("container"),m=I("spacing"),u=I("radius"),f=I("shadow"),h=I("inset-shadow"),y=I("text-shadow"),A=I("drop-shadow"),C=I("blur"),x=I("perspective"),_=I("aspect"),G=I("ease"),w=I("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...S(),c,l],v=()=>["auto","hidden","clip","visible","scroll"],g=()=>["auto","contain","none"],a=()=>[c,l,m],z=()=>[j,"full","auto",...a()],T=()=>[E,"none","subgrid",c,l],te=()=>["auto",{span:["full",E,c,l]},E,c,l],q=()=>[E,"auto",c,l],Pe=()=>["auto","min","max","fr",c,l],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...a()],F=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...a()],fe=()=>[d,j,"screen","full","dvw","lvw","svw","min","max","fit",...a()],be=()=>[j,"screen","full","lh","dvh","lvh","svh","min","max","fit",...a()],p=()=>[e,c,l],_e=()=>[...S(),Xe,Ke,{position:[c,l]}],Ge=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Le=()=>["auto","cover","contain",Qr,Yr,{size:[c,l]}],ge=()=>[ye,J,H],L=()=>["","none","full",u,c,l],R=()=>["",b,J,H],re=()=>["solid","dashed","dotted","double"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[b,ye,Xe,Ke],Ne=()=>["","none",C,c,l],oe=()=>["none",b,c,l],se=()=>["none",b,c,l],he=()=>[b,c,l],ne=()=>[j,"full",...a()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[V],breakpoint:[V],color:[wt],container:[V],"drop-shadow":[V],ease:["in","out","in-out"],font:[Dr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[V],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[V],shadow:[V],spacing:["px",b],text:[V],"text-shadow":[V],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,l,c,_]}],container:["container"],"container-type":[{"@container":["","normal","size",c,l]}],"container-named":[qr],columns:[{columns:[b,"auto",l,c,d]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:g()}],"overscroll-x":[{"overscroll-x":g()}],"overscroll-y":[{"overscroll-y":g()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[E,"auto",c,l]}],basis:[{basis:[j,"full","auto",d,...a()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,j,"auto","initial","none",l]}],grow:[{grow:["",b,c,l]}],shrink:[{shrink:["",b,c,l]}],order:[{order:[E,"first","last","none",c,l]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Pe()}],"auto-rows":[{"auto-rows":Pe()}],gap:[{gap:a()}],"gap-x":[{"gap-x":a()}],"gap-y":[{"gap-y":a()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:a()}],px:[{px:a()}],py:[{py:a()}],ps:[{ps:a()}],pe:[{pe:a()}],pbs:[{pbs:a()}],pbe:[{pbe:a()}],pt:[{pt:a()}],pr:[{pr:a()}],pb:[{pb:a()}],pl:[{pl:a()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":a()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":a()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",...be()]}],"min-block-size":[{"min-block":["auto",...be()]}],"max-block-size":[{"max-block":["none",...be()]}],w:[{w:[d,"screen",...F()]}],"min-w":[{"min-w":[d,"screen","none",...F()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh","none",...F()]}],"font-size":[{text:["base",t,J,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,to,Zr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ye,l]}],"font-family":[{font:[Jr,Kr,r]}],"font-features":[{"font-features":[l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,c,l]}],"line-clamp":[{"line-clamp":[b,"none",c,Ze]}],leading:[{leading:["none",n,...a()]}],"list-image":[{"list-image":["none",c,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",c,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",c,H]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[b,"auto",c,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:a()}],"tab-size":[{tab:[E,c,l]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_e()}],"bg-repeat":[{bg:Ge()}],"bg-size":[{bg:Le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},E,c,l],radial:["",c,l],conic:["",E,c,l]},eo,Xr]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-bs":[{"border-bs":p()}],"border-color-be":[{"border-be":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,c,l]}],"outline-w":[{outline:["",b,J,H]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","inner","none",f,ae,ie]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",h,ae,ie]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[b,H]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",y,ae,ie]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[b,c,l]}],"mix-blend":[{"mix-blend":[...Re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[c,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_e()}],"mask-repeat":[{mask:Ge()}],"mask-size":[{mask:Le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",c,l]}],filter:[{filter:["","none",c,l]}],blur:[{blur:Ne()}],brightness:[{brightness:[b,c,l]}],contrast:[{contrast:[b,c,l]}],"drop-shadow":[{"drop-shadow":["","none",A,ae,ie]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",b,c,l]}],"hue-rotate":[{"hue-rotate":[b,c,l]}],invert:[{invert:["",b,c,l]}],saturate:[{saturate:[b,c,l]}],sepia:[{sepia:["",b,c,l]}],"backdrop-filter":[{"backdrop-filter":["","none",c,l]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[b,c,l]}],"backdrop-contrast":[{"backdrop-contrast":[b,c,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,c,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,c,l]}],"backdrop-invert":[{"backdrop-invert":["",b,c,l]}],"backdrop-opacity":[{"backdrop-opacity":[b,c,l]}],"backdrop-saturate":[{"backdrop-saturate":[b,c,l]}],"backdrop-sepia":[{"backdrop-sepia":["",b,c,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":a()}],"border-spacing-x":[{"border-spacing-x":a()}],"border-spacing-y":[{"border-spacing-y":a()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",c,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",c,l]}],ease:[{ease:["linear","initial",G,c,l]}],delay:[{delay:[b,c,l]}],animate:[{animate:["none",w,c,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,c,l]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[c,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"translate-none":["translate-none"],zoom:[{zoom:[E,c,l]}],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":p()}],"scrollbar-track-color":[{"scrollbar-track":p()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":a()}],"scroll-mx":[{"scroll-mx":a()}],"scroll-my":[{"scroll-my":a()}],"scroll-ms":[{"scroll-ms":a()}],"scroll-me":[{"scroll-me":a()}],"scroll-mbs":[{"scroll-mbs":a()}],"scroll-mbe":[{"scroll-mbe":a()}],"scroll-mt":[{"scroll-mt":a()}],"scroll-mr":[{"scroll-mr":a()}],"scroll-mb":[{"scroll-mb":a()}],"scroll-ml":[{"scroll-ml":a()}],"scroll-p":[{"scroll-p":a()}],"scroll-px":[{"scroll-px":a()}],"scroll-py":[{"scroll-py":a()}],"scroll-ps":[{"scroll-ps":a()}],"scroll-pe":[{"scroll-pe":a()}],"scroll-pbs":[{"scroll-pbs":a()}],"scroll-pbe":[{"scroll-pbe":a()}],"scroll-pt":[{"scroll-pt":a()}],"scroll-pr":[{"scroll-pr":a()}],"scroll-pb":[{"scroll-pb":a()}],"scroll-pl":[{"scroll-pl":a()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c,l]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[b,J,H,Ze]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},oo=(e,{cacheSize:r,prefix:t,experimentalParseClassName:o,extend:s={},override:n={}})=>(Z(e,"cacheSize",r),Z(e,"prefix",t),Z(e,"experimentalParseClassName",o),le(e.theme,n.theme),le(e.classGroups,n.classGroups),le(e.conflictingClassGroups,n.conflictingClassGroups),le(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Z(e,"postfixLookupClassGroups",n.postfixLookupClassGroups),Z(e,"orderSensitiveModifiers",n.orderSensitiveModifiers),ce(e.theme,s.theme),ce(e.classGroups,s.classGroups),ce(e.conflictingClassGroups,s.conflictingClassGroups),ce(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Ie(e,s,"postfixLookupClassGroups"),Ie(e,s,"orderSensitiveModifiers"),e),Z=(e,r,t)=>{t!==void 0&&(e[r]=t)},le=(e,r)=>{if(r)for(const t in r)Z(e,t,r[t])},ce=(e,r)=>{if(r)for(const t in r)Ie(e,r,t)},Ie=(e,r,t)=>{const o=r[t];o!==void 0&&(e[t]=e[t]?e[t].concat(o):o)},so=(e,...r)=>typeof e=="function"?Ye(Je,e,...r):Ye(()=>oo(Je(),e),...r),no=so({extend:{classGroups:{"font-size":["type-caption","type-body","type-title","type-display","type-code","text-ui","text-ui-sm","text-xs"],"surface-inverse":["surface-inverse"]},conflictingClassGroups:{"surface-inverse":["bg-color","text-color"],"bg-color":["surface-inverse"]}}});function wo(...e){return no(it(e))}const io=ue(["primitive","pattern","product","deprecated-wrapper","deletion-candidate"]),ao=U({id:k().min(1),title:k().min(1),states:P(k().min(1)).min(1),themes:P(ue(["light","dark","system","high-contrast"])).optional(),viewport:ue(["compact","desktop","both"]).optional(),reducedMotion:Jt().optional()}),Qe=U({value:k().min(1),label:k().min(1),guidance:k().min(1).optional(),iconValue:k().min(1).optional()}),lo=U({prop:k().min(1),alias:k().min(1),replacement:k().min(1)}),co=U({emphasis:P(Qe).min(1),sizes:P(Qe).min(1),compatibilityAliases:P(lo)}),de=k().min(1).refine(e=>!e.includes("\\"),{message:"use a repository-relative POSIX path"}),Mt=U({id:k().regex(/^[a-z0-9][a-z0-9-]*$/),source:de,publicImport:k().startsWith("$lib/components/ui/"),legacyImports:P(k().startsWith("$lib/components/ui/")).default([]),exports:P(k().min(1)).min(1),category:io,owner:k().min(1),callers:P(de),replacement:k().min(1).nullable(),characterizationTest:de.nullable(),removalGate:k().min(1),dynamicImports:P(de),fixtures:P(ao),useWhen:P(k().min(1)).optional(),dontUseWhen:P(k().min(1)).optional(),replaces:P(k().min(1)).optional(),apiGuidance:co.optional(),usage:k().refine(e=>e.trim().length>0).optional()}).superRefine((e,r)=>{["deprecated-wrapper","deletion-candidate"].includes(e.category)&&(e.replacement||r.addIssue({code:ve.custom,path:["replacement"],message:"deprecated and deletion records require a canonical replacement or deletion plan"}),e.characterizationTest||r.addIssue({code:ve.custom,path:["characterizationTest"],message:"deprecated and deletion records require a characterization test"}),e.removalGate.trim()||r.addIssue({code:ve.custom,path:["removalGate"],message:"deprecated and deletion records require a measurable removal gate"}))}),uo=U({implementation:k().min(1),publicModule:k().min(1),metadata:k().min(1),behavioralTest:k().min(1),fixture:k().min(1),variantRecipe:k().min(1).optional()}),po=U({layer:ue(["primitive","pattern","product"]),allowed:P(k().min(1)).min(1),forbidden:P(k().min(1)),repair:k().min(1)});U({version:Qt(1),folderTemplate:uo,dependencyRules:P(po).length(3),components:P(Mt).min(1)});function mo(e,r){const t=r.issues.find(s=>s.path[0]==="id"),o=r.issues.map(s=>`${s.path.join(".")||e}: ${s.message}`).join("; ");return new Error(`${e}${t?` (${t.message})`:""}: ${o}`)}function fo(e){const r=Mt.safeParse(e);if(!r.success){const t=typeof e=="object"&&e!==null&&"id"in e?String(e.id):"unknown";throw mo(`UI component ${t}`,r.error)}return r.data}const bo=[{id:"spinner-state-matrix",title:"Loading indicator states",states:["bloom","pulse","twist","size-16","size-24","size-32","in-button","in-list-row","paused","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];fo({id:"loading-indicator",source:"src/lib/components/ui/indicators/IntentMarkLoader.svelte",publicImport:"$lib/components/ui/indicators",legacyImports:[],exports:["IntentMarkLoader","AgentBadge","IntentMarkVariant","UnsavedIndicator","intentMarkMotionTiming","intentMarkVariants","spinnerMetadata"],category:"pattern",owner:"007-B1",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/daemon-status/DaemonUpdatingOverlay.svelte","src/features/discussions/components/DiscussionMicrophone.svelte","src/features/file-tracking/components/diff/PatchBlockContent.svelte","src/features/home/HomeAssistantThreads.svelte","src/features/machine-rail/MachineRail.svelte","src/features/nodes/PairLinkField.svelte","src/features/onboarding/messages/GitHubRepoTab.svelte","src/features/onboarding/messages/ProviderCard.svelte","src/features/onboarding/steps/OnboardingForgeStep.svelte","src/features/onboarding/steps/OnboardingPromptStep.svelte","src/features/onboarding/steps/OnboardingRequirementsStep.svelte","src/features/remote-machines/AgentPlacementNotice.svelte","src/features/scripts/components/ScriptDetectionControls.svelte","src/features/workspace-home/components/WorkspaceHomeBanner.svelte","src/features/workspace-home/components/WorkspaceHomeLine.svelte","src/features/workspace-home/components/WorkspaceHomePanelNotice.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte","src/lib/components/AuggieSetupGate.svelte","src/lib/components/GitHubAuthBanner.svelte","src/lib/components/GitHubAuthModal.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/agent-overview/AgentHierarchyCard.svelte","src/lib/components/agent-overview/AgentHierarchyGraph.svelte","src/lib/components/browser/EmbeddedBrowser.svelte","src/lib/components/chat/AttachmentPreview.svelte","src/lib/components/chat/AutoCommitStatus.svelte","src/lib/components/chat/ChatChangesPanel.svelte","src/lib/components/chat/ChatMessageNavigator.svelte","src/lib/components/chat/ChatPanel.svelte","src/lib/components/chat/ExecutionPlanCard.svelte","src/lib/components/chat/StreamingTypingIndicator.svelte","src/lib/components/chat/TaskProgressControl.svelte","src/lib/components/chat/ThinkingBlock.svelte","src/lib/components/chat/ToolStatusIcon.svelte","src/lib/components/chat/input/ContextPickerButton.svelte","src/lib/components/chat/input/ModelPicker.svelte","src/lib/components/chat/input/ModelPickerProviderNotice.svelte","src/lib/components/chat/input/SimpleRichInput.svelte","src/lib/components/chat/streaming-status-utils.ts","src/lib/components/code-review/CodeReviewTabContent.svelte","src/lib/components/code-review/walkthrough/CodeWalkthroughSection.svelte","src/lib/components/code-review/walkthrough/WalkthroughCommentThread.svelte","src/lib/components/code-review/walkthrough/WalkthroughInlineComment.svelte","src/lib/components/error/EnhancedErrorBoundary.svelte","src/lib/components/file-explorer/file-explorer-layout.svelte","src/lib/components/file-explorer/file-explorer-sidebar.svelte","src/lib/components/layout/sidebar-nav/cards/ChiefCard.svelte","src/lib/components/modals/BulkTransferModal.svelte","src/lib/components/modals/InviteConsentModal.svelte","src/lib/components/modals/InviteProgressModal.svelte","src/lib/components/modals/SetupScriptModal.svelte","src/lib/components/notes/primitives/AgentActionBlock.svelte","src/lib/components/notes/primitives/CliBlock.svelte","src/lib/components/patterns/form/UnsavedIndicator.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/terminal/QuakeTerminalOverlay.svelte","src/lib/components/tiptap/comments/AgentPeekCard.svelte","src/lib/components/ui/button/button.svelte","src/lib/components/ui/list/ListItem.svelte","src/lib/components/workspace/CheckoutModePill.svelte","src/lib/components/workspace/CompactWorkspaceInitializer.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceShellList.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/initializer/BranchSelector.svelte","src/lib/components/workspace/initializer/GitLabBranchPicker.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/initializer/RepoAndBranchPicker.svelte","src/lib/components/workspace/initializer/RepoSelector.svelte","src/lib/components/workspace/initializer/RepositoryPickerList.svelte","src/lib/components/workspace/initializer/SetupScriptAgent.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/initializer/WorkspaceCreateButton.svelte","src/lib/components/workspace/sidebar/CommitDrawer.svelte","src/lib/components/workspace/sidebar/CommitsTimeline.svelte","src/lib/components/workspace/sidebar/DividerButton.svelte","src/lib/components/workspace/sidebar/FileChangesSection.svelte","src/lib/components/workspace/sidebar/HistoryBoundary.svelte","src/lib/components/workspace/sidebar/MergePanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/PostMergeActions.svelte","src/lib/components/workspace/sidebar/SecondaryRootChangesView.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte","src/lib/components/workspace/sidebar/context-picker/LinearPicker.svelte","src/lib/components/workspace/sidebar/context-picker/SentryPicker.svelte","src/routes/(app)/workspace/creating/+page.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/indicators/IntentMarkLoader.test.ts",removalGate:"Retain IntentMarkLoader as the only indeterminate indicator while canonical callers, deterministic motion tests, and loading catalog coverage pass; AgentBadge and UnsavedIndicator remain internal product exports and are not catalog entries.",dynamicImports:[],fixtures:bo,useWhen:["Use bloom for buttons, list rows, thinking blocks, live-stream phases, typing, hierarchy cards, message navigation, and content previews; streaming status keeps its status-derived bloom, pulse, or twist variant."]});export{K as C,X as S,er as a,ko as b,tr as c,it as d,wo as e,sr as f,nr as g,fo as p,ur as r,Q as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var dt=Object.defineProperty;var je=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||je("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?je("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as U,bq as i,by as W,b as X,br as L,bt as Ne}from"./D9jYN6_J.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as j,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./DYhIMPy1.js";import{i as q}from"./7eL9Pgig.js";import{s as k}from"./Cx31i8ng.js";import{b as Pe}from"./C_EpV6jU.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as E,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./0qEvU7Aj.js";import{c as wt}from"./DZyAzxxC.js";import{s as St}from"./DHROL4K5.js";import{f as xt,E as Nt}from"./B4gIvcP2.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),G=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=G.getOr(null);return G.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,G.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let Ee=Ke;var pe;const qe=class qe{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new qe(e,G.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let ke=qe;var ge;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new ze(e,G.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=ze;var fe,ve;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ge(e,G.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ge;var me,ye;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new Ue(e,G.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=Ue;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function Et(n,e){const r=be();if(new.target)return U({component:Et,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=ke.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>v()??Q),Oe(h),C(t,h)};q(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var kt=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return U({component:Mt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,kt);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));k(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);k(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};q(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};q(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return U({component:Bt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);k(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);k(h,()=>g()??Q),Oe(t),C(o,t)};q(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return U({component:et,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,E),g=i(e,"onOpenChangeComplete",7,E),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=E){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=E){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:W,$on:(p,f)=>X(e,p,f)},m=A(),w=x(m);return k(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),qt=Y("<button><!></button>");function zt(n,e){const r=be();if(new.target)return U({component:zt,...n});j(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=Ee.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=qt();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>s()??Q),Oe(h),C(t,h)};q(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Gt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Ut=Y("<!> <!>",1),Wt=Y("<!> <div><!></div>",1);function Xt(n,e){const r=be();if(new.target)return U({component:Xt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,E),p=i(e,"onOpenAutoFocus",7,E),f=i(e,"onEscapeKeydown",7,E),S=i(e,"onInteractOutside",7,E),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Gt);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=E){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=E){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=E){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=E){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:W,$on:(d,V)=>X(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let We=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var Xe=A(),it=x(Xe);{var at=J=>{var Z=Ut(),$=x(Z);{var ee=z=>{Ve(z,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};q($,z=>{t.root.opts.open.current&&z(ee)})}var Ae=He($,2);{let z=N(()=>({props:B(c(h),We()),...t.snippetProps}));k(Ae,u,()=>c(z))}C(J,Z)},lt=J=>{var Z=Wt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,z=>({...z}),[()=>B(c(h),We())]);var Ae=Ce(ee);k(Ae,()=>g()??Q),Oe(ee),C(J,Z)};q(it,J=>{u()?J(at):J(lt,-1)})}C(st,Xe)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};q(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},jt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...jt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return U({component:Jt,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:W,$on:(f,S)=>X(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);k(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{zt as D,Jt as O,Xt as a,Bt as b,Mt as c,Et as d,hr as e,ur as f,dr as o,cr as u};
|
|
1
|
+
var dt=Object.defineProperty;var je=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||je("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?je("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as U,bq as i,by as W,b as X,br as L,bt as Ne}from"./BKW86yq_.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as j,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./DYhIMPy1.js";import{i as q}from"./CSelYXXo.js";import{s as k}from"./D9WJ9yaW.js";import{b as Pe}from"./Bs7Hg6Iw.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as E,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./zqCR6Knb.js";import{c as wt}from"./C1N6iAP2.js";import{s as St}from"./DxkncNQp.js";import{f as xt,E as Nt}from"./BW1uSKLL.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),G=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=G.getOr(null);return G.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,G.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let Ee=Ke;var pe;const qe=class qe{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new qe(e,G.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let ke=qe;var ge;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new ze(e,G.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=ze;var fe,ve;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ge(e,G.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ge;var me,ye;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new Ue(e,G.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=Ue;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function Et(n,e){const r=be();if(new.target)return U({component:Et,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=ke.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>v()??Q),Oe(h),C(t,h)};q(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var kt=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return U({component:Mt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,kt);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));k(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);k(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};q(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};q(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return U({component:Bt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:W,$on:(o,t)=>X(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);k(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);k(h,()=>g()??Q),Oe(t),C(o,t)};q(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return U({component:et,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,E),g=i(e,"onOpenChangeComplete",7,E),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=E){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=E){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:W,$on:(p,f)=>X(e,p,f)},m=A(),w=x(m);return k(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),qt=Y("<button><!></button>");function zt(n,e){const r=be();if(new.target)return U({component:zt,...n});j(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=Ee.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:W,$on:(t,h)=>X(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);k(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=qt();Pe(h,()=>({...c(f)}));var D=Ce(h);k(D,()=>s()??Q),Oe(h),C(t,h)};q(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Gt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Ut=Y("<!> <!>",1),Wt=Y("<!> <div><!></div>",1);function Xt(n,e){const r=be();if(new.target)return U({component:Xt,...n});j(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,E),p=i(e,"onOpenAutoFocus",7,E),f=i(e,"onEscapeKeydown",7,E),S=i(e,"onInteractOutside",7,E),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Gt);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=E){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=E){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=E){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=E){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:W,$on:(d,V)=>X(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let We=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var Xe=A(),it=x(Xe);{var at=J=>{var Z=Ut(),$=x(Z);{var ee=z=>{Ve(z,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};q($,z=>{t.root.opts.open.current&&z(ee)})}var Ae=He($,2);{let z=N(()=>({props:B(c(h),We()),...t.snippetProps}));k(Ae,u,()=>c(z))}C(J,Z)},lt=J=>{var Z=Wt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,z=>({...z}),[()=>B(c(h),We())]);var Ae=Ce(ee);k(Ae,()=>g()??Q),Oe(ee),C(J,Z)};q(it,J=>{u()?J(at):J(lt,-1)})}C(st,Xe)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};q(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},jt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...jt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return U({component:Jt,...n});j(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:W,$on:(f,S)=>X(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);k(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{zt as D,Jt as O,Xt as a,Bt as b,Mt as c,Et as d,hr as e,ur as f,dr as o,cr as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as C}from"./
|
|
1
|
+
import{D as C}from"./DlOpwiIn.js";import{t as re,bq as y,by as se,b as ae,bo as I}from"./BKW86yq_.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as q,b_ as R,W as E,bn as le,bV as W,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./DYhIMPy1.js";import{i as de}from"./CSelYXXo.js";import{k as ue}from"./BIWW5pDn.js";import{s as D}from"./Bs7Hg6Iw.js";import{a as me}from"./DfZvKQFw.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,u=t[e];if(u===void 0)return{complete:!1};if(u==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(u==="{"||u==="["){const r=u==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:m})=>m)),g=n.filter(m=>m.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:m})=>m)),_=a.filter(m=>m.group===void 0||v.has(m.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),u=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,u,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),u=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!u.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,u))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),u=W(null),r=W(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(u,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(u,null):o&&k(u,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(u):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},m=Se(),A=G(m);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);q(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);ue(w,()=>b(r),S=>{me(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return q(m),R(()=>{D(m,"aria-busy",a()),D(m,"data-diagram-streaming",a())}),E(t,m),le(_)}export{_e as S,Oe as p};
|