@intent-hq/web 2.351.0 → 2.352.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/assets/0.Dgd1ZLTR.css +1 -0
- package/web/app/immutable/chunks/{N7G-ZTah.js → -lzAI0Yg.js} +5 -5
- package/web/app/immutable/chunks/{67kYB1lt.js → 3DUg3Vrc.js} +1 -1
- package/web/app/immutable/chunks/{BSkWWR3g.js → 42Hi6Nev.js} +1 -1
- package/web/app/immutable/chunks/{Cw23SInT.js → 4dL6nLyL.js} +1 -1
- package/web/app/immutable/chunks/{CNPNgdra.js → 4fLmPVdQ.js} +1 -1
- package/web/app/immutable/chunks/{zB3SalmM.js → 4gwN8kRi.js} +1 -1
- package/web/app/immutable/chunks/{Bkkc9nPJ.js → 61CqOAVf.js} +3 -3
- package/web/app/immutable/chunks/{D6ncbN-K.js → 6J2j9GGS.js} +1 -1
- package/web/app/immutable/chunks/{DipCXz5L.js → 6cjeTxFJ.js} +1 -1
- package/web/app/immutable/chunks/{CIm0iT4E.js → 6dKWFbhS.js} +1 -1
- package/web/app/immutable/chunks/{Dy3sS5WY.js → 9cOnZvFz.js} +1 -1
- package/web/app/immutable/chunks/{BjVx5o0n.js → 9zOi9r5I.js} +1 -1
- package/web/app/immutable/chunks/A4OD-mjJ.js +1 -0
- package/web/app/immutable/chunks/{ChD6V-mA.js → AnpLuuuk.js} +1 -1
- package/web/app/immutable/chunks/{De70D2Lx.js → B1s_9zgm.js} +2 -2
- package/web/app/immutable/chunks/{XVViy8ZW.js → B32BlPhm.js} +1 -1
- package/web/app/immutable/chunks/{CTvwRPyF.js → B3I1nFXA.js} +1 -1
- package/web/app/immutable/chunks/{bV1WTvQr.js → B3Wey9bw.js} +1 -1
- package/web/app/immutable/chunks/{AyGecNlS.js → B48wzP5i.js} +1 -1
- package/web/app/immutable/chunks/{BrR0973A.js → B4qnea7H.js} +1 -1
- package/web/app/immutable/chunks/{Bpkh7IXN.js → B58e63dk.js} +1 -1
- package/web/app/immutable/chunks/{dvtNrmBJ.js → B5oIPQ5b.js} +1 -1
- package/web/app/immutable/chunks/{Cxn17X4d.js → B6eIRRKX.js} +2 -2
- package/web/app/immutable/chunks/{BuupGai6.js → B6lWPidK.js} +1 -1
- package/web/app/immutable/chunks/{DuPQa1Hv.js → B7oLLIgw.js} +4 -4
- package/web/app/immutable/chunks/{DcxuGfvW.js → B82ywBwW.js} +1 -1
- package/web/app/immutable/chunks/{B6bPIJ1k.js → B87_3X7t.js} +1 -1
- package/web/app/immutable/chunks/{Cy3svQNQ.js → B8PxK7sP.js} +1 -1
- package/web/app/immutable/chunks/{BPIrwIPC.js → B8u7Bszh.js} +1 -1
- package/web/app/immutable/chunks/{UMKs78qL.js → B9Ccf4_O.js} +1 -1
- package/web/app/immutable/chunks/{B-TDUD-n.js → BA4kNZus.js} +1 -1
- package/web/app/immutable/chunks/{vLUkS5Lr.js → BAj9Av-i.js} +1 -1
- package/web/app/immutable/chunks/{VIOarPUD.js → BAkYMES1.js} +1 -1
- package/web/app/immutable/chunks/{C2QAZ2iP.js → BAp1A2ZH.js} +1 -1
- package/web/app/immutable/chunks/{C_akaBgq.js → BEpQx2rq.js} +1 -1
- package/web/app/immutable/chunks/{jyFhDlZn.js → BGkKDEs0.js} +1 -1
- package/web/app/immutable/chunks/{DGaDkdng.js → BIQ14Jou.js} +1 -1
- package/web/app/immutable/chunks/{B0QrNgSj.js → BJ4sw9rR.js} +1 -1
- package/web/app/immutable/chunks/{BTLU_fQH.js → BM7Fn-M6.js} +1 -1
- package/web/app/immutable/chunks/{B-hKl_xx.js → BMQBnpVJ.js} +1 -1
- package/web/app/immutable/chunks/BMYSQl-k.js +19 -0
- package/web/app/immutable/chunks/{B5ekpGAe.js → BO5Pq4fi.js} +1 -1
- package/web/app/immutable/chunks/{C1zdYplM.js → BQYuNS07.js} +1 -1
- package/web/app/immutable/chunks/{Ch2DvoYt.js → BQpZAVZ0.js} +1 -1
- package/web/app/immutable/chunks/{CccgSyFt.js → BR9y4bsr.js} +2 -2
- package/web/app/immutable/chunks/{CKmgmdFa.js → BROObX9U.js} +1 -1
- package/web/app/immutable/chunks/{ClCe1k4i.js → BReF7PxO.js} +1 -1
- package/web/app/immutable/chunks/{Ghm7WpFi.js → BS0GmsgM.js} +1 -1
- package/web/app/immutable/chunks/BUAFIktJ.js +1 -0
- package/web/app/immutable/chunks/{D9XKGcAY.js → BXyNrc2B.js} +1 -1
- package/web/app/immutable/chunks/BYO1ou6X.js +1 -0
- package/web/app/immutable/chunks/{QFwPCSKD.js → B_sYr-qY.js} +1 -1
- package/web/app/immutable/chunks/{Cc0uYvgR.js → BeeeYKV6.js} +1 -1
- package/web/app/immutable/chunks/{jmGUW687.js → Bfba9qCM.js} +1 -1
- package/web/app/immutable/chunks/{C96Cos0M.js → BfmiyhX4.js} +1 -1
- package/web/app/immutable/chunks/{Dv-TQImR.js → BgOj6lPu.js} +1 -1
- package/web/app/immutable/chunks/{BA4L4UPI.js → BgasfqLM.js} +1 -1
- package/web/app/immutable/chunks/{QLXfiC8k.js → BhzNHo5H.js} +1 -1
- package/web/app/immutable/chunks/{BsDTYuK1.js → Bi2Crhsq.js} +1 -1
- package/web/app/immutable/chunks/{DwqB2LW1.js → BlsliAvk.js} +1 -1
- package/web/app/immutable/chunks/{CMWevjI7.js → Bmm9qguf.js} +1 -1
- package/web/app/immutable/chunks/{G1rQ1ZLS.js → BnfhlAnU.js} +1 -1
- package/web/app/immutable/chunks/{4XRamNN4.js → BodHilN5.js} +1 -1
- package/web/app/immutable/chunks/{BoT__Uvu.js → BotG4DRY.js} +1 -1
- package/web/app/immutable/chunks/{C4UmUQ0t.js → Bs7PlXA3.js} +1 -1
- package/web/app/immutable/chunks/{DQjekoSU.js → BszXPYBq.js} +1 -1
- package/web/app/immutable/chunks/{CCw4KHZp.js → Buh7J53B.js} +1 -1
- package/web/app/immutable/chunks/{ClgmQqA9.js → Bvd0DfwC.js} +1 -1
- package/web/app/immutable/chunks/{BJdaIUzQ.js → Bw0E8NsL.js} +1 -1
- package/web/app/immutable/chunks/{CYlvyU3U.js → Bz6dDdb9.js} +1 -1
- package/web/app/immutable/chunks/{CB3bw4PL.js → BzNn-vV2.js} +1 -1
- package/web/app/immutable/chunks/{B043Z8mk.js → C-_Lx3Nm.js} +1 -1
- package/web/app/immutable/chunks/C-d_8VyS.js +2 -0
- package/web/app/immutable/chunks/{DQ8vH0VY.js → C12ljpSn.js} +1 -1
- package/web/app/immutable/chunks/{Sa9G_k7P.js → C1WXXen7.js} +1 -1
- package/web/app/immutable/chunks/{BH-zWM3a.js → C1X9EbCK.js} +3 -3
- package/web/app/immutable/chunks/{0-xAXZgf.js → C1l_AdDU.js} +1 -1
- package/web/app/immutable/chunks/{CWUa486r.js → C2Y-3LOO.js} +1 -1
- package/web/app/immutable/chunks/{BlcZflKW.js → C4rL7fPq.js} +1 -1
- package/web/app/immutable/chunks/C5H4Pe0T.js +1 -0
- package/web/app/immutable/chunks/{C9jK2F--.js → C79qeQUX.js} +1 -1
- package/web/app/immutable/chunks/{BYjUWrg8.js → C7lasS44.js} +1 -1
- package/web/app/immutable/chunks/{CuHfgFFh.js → CDFph9XW.js} +1 -1
- package/web/app/immutable/chunks/{DEVAGsyG.js → CDJiCuQl.js} +1 -1
- package/web/app/immutable/chunks/{D542lbvk.js → CDhg3msv.js} +2 -2
- package/web/app/immutable/chunks/{a6ao35lO.js → CDvr6QES.js} +1 -1
- package/web/app/immutable/chunks/{Bd6Rwh69.js → CGtiJZ6Q.js} +2 -2
- package/web/app/immutable/chunks/{D07rIrLM.js → CGuBCqy6.js} +1 -1
- package/web/app/immutable/chunks/{BXYFidlw.js → CH2B1dsg.js} +1 -1
- package/web/app/immutable/chunks/{NFc5A7UL.js → CLL457e6.js} +1 -1
- package/web/app/immutable/chunks/{D9WrXbf9.js → CLi8c-Jc.js} +1 -1
- package/web/app/immutable/chunks/{BDX4YTR9.js → CMbQPqLg.js} +1 -1
- package/web/app/immutable/chunks/{BdKft7gn.js → CMeXe72Y.js} +1 -1
- package/web/app/immutable/chunks/{C-cC659R.js → CNgwOiTE.js} +1 -1
- package/web/app/immutable/chunks/{BBCbq-hE.js → COO6ldt4.js} +1 -1
- package/web/app/immutable/chunks/{sxpeFI4o.js → CPY58-tp.js} +1 -1
- package/web/app/immutable/chunks/CPjC-KKN.js +1 -0
- package/web/app/immutable/chunks/{B22owOuz.js → CRZhk1kc.js} +1 -1
- package/web/app/immutable/chunks/{CdXmpyDy.js → CRrFC3B8.js} +1 -1
- package/web/app/immutable/chunks/{DjE6Tn4o.js → CSDwAwlx.js} +1 -1
- package/web/app/immutable/chunks/{Dq9dLpt4.js → CUHqJ1Vg.js} +4 -4
- package/web/app/immutable/chunks/{CrkDo76r.js → CUolE7JW.js} +1 -1
- package/web/app/immutable/chunks/{25Qfa38y.js → CVxBES9o.js} +1 -1
- package/web/app/immutable/chunks/CWr4n77L.js +13 -0
- package/web/app/immutable/chunks/{Dy5C9WSY.js → CYYbdMIM.js} +1 -1
- package/web/app/immutable/chunks/{KcC0pRTT.js → CYqtKpzf.js} +1 -1
- package/web/app/immutable/chunks/{fKGM3H1S.js → CZ8DhcrQ.js} +1 -1
- package/web/app/immutable/chunks/{GfKb8O3O.js → CZd1y8kW.js} +1 -1
- package/web/app/immutable/chunks/{SXjX79W0.js → CZkLaz_S.js} +3 -3
- package/web/app/immutable/chunks/{DsewpLhd.js → CZwN60O3.js} +1 -1
- package/web/app/immutable/chunks/{BCQGaqgQ.js → C_Q5e0bX.js} +1 -1
- package/web/app/immutable/chunks/{Dc8XEwi0.js → CaZWRaBD.js} +1 -1
- package/web/app/immutable/chunks/{C4qlKK6F.js → CacD4jQL.js} +1 -1
- package/web/app/immutable/chunks/{D68o263s.js → CbBwTVsV.js} +1 -1
- package/web/app/immutable/chunks/{af7yduyJ.js → CbIRB05A.js} +37 -37
- package/web/app/immutable/chunks/{BHcKnFOT.js → Cbew16AD.js} +1 -1
- package/web/app/immutable/chunks/Ce8ODqPP.js +1 -0
- package/web/app/immutable/chunks/{CA8Jy4WC.js → Cep-BDRS.js} +1 -1
- package/web/app/immutable/chunks/{AOUBMpYk.js → CfdX4Lfl.js} +1 -1
- package/web/app/immutable/chunks/{D6kdeziR.js → CgbHaDpG.js} +1 -1
- package/web/app/immutable/chunks/{uoJ0nI_z.js → ChYZv5SJ.js} +1 -1
- package/web/app/immutable/chunks/{CBtX8-Aa.js → Ci51i12B.js} +1 -1
- package/web/app/immutable/chunks/{Crf39e2Q.js → Cjd2lqUF.js} +1 -1
- package/web/app/immutable/chunks/{DzIV-I7E.js → CltuTtDv.js} +1 -1
- package/web/app/immutable/chunks/{CYyISHjN.js → CmSGn2AH.js} +1 -1
- package/web/app/immutable/chunks/{CuCrpEmq.js → CmpBd6Tg.js} +1 -1
- package/web/app/immutable/chunks/{BhX-5zd9.js → CnTu6sc6.js} +1 -1
- package/web/app/immutable/chunks/{ByQWAkHB.js → Cnntv_QI.js} +1 -1
- package/web/app/immutable/chunks/{CCO5tijn.js → Co5bimwo.js} +1 -1
- package/web/app/immutable/chunks/{D2kFrNtb.js → CrxGBxMK.js} +1 -1
- package/web/app/immutable/chunks/{DvmJXjP_.js → Cs1vro6u.js} +1 -1
- package/web/app/immutable/chunks/{ugjOCd8V.js → Cx8Xjey1.js} +3 -3
- package/web/app/immutable/chunks/{C97vyu8P.js → CzoxGXV9.js} +1 -1
- package/web/app/immutable/chunks/{CrHTQDbT.js → D0ArSCdC.js} +1 -1
- package/web/app/immutable/chunks/{6pSwNbUy.js → D0fcdSwZ.js} +3 -3
- package/web/app/immutable/chunks/{jqiN8Ebl.js → D16yE-CH.js} +2 -2
- package/web/app/immutable/chunks/{DGb_dMRY.js → D1PZlLC_.js} +1 -1
- package/web/app/immutable/chunks/{DRiReCwX.js → D1nX-Mgh.js} +1 -1
- package/web/app/immutable/chunks/{Lx7mQEPN.js → D1z1qVWr.js} +1 -1
- package/web/app/immutable/chunks/{v23yk8Nl.js → D4uvglha.js} +1 -1
- package/web/app/immutable/chunks/{mgh5gPA4.js → D529OnQb.js} +1 -1
- package/web/app/immutable/chunks/{b1qSM27E.js → D5fTH_R4.js} +1 -1
- package/web/app/immutable/chunks/{DwR2QVtr.js → D62BIRhv.js} +1 -1
- package/web/app/immutable/chunks/{BTI1m7l8.js → D6eYnkBB.js} +1 -1
- package/web/app/immutable/chunks/{DtV2WjXp.js → D76YpzZQ.js} +1 -1
- package/web/app/immutable/chunks/{CjafAhxa.js → D7LYGcjf.js} +1 -1
- package/web/app/immutable/chunks/{BDbt9cuZ.js → D8Uhwh7R.js} +1 -1
- package/web/app/immutable/chunks/{BAb3JAL_.js → D8eSz7L_.js} +1 -1
- package/web/app/immutable/chunks/{CbX7A7fn.js → DBGsU6bn.js} +1 -1
- package/web/app/immutable/chunks/{-o555Jq8.js → DCOf4rfq.js} +1 -1
- package/web/app/immutable/chunks/{DPemhAGL.js → DD4J0jul.js} +1 -1
- package/web/app/immutable/chunks/{Cv3VBAcZ.js → DE-3_OpQ.js} +1 -1
- package/web/app/immutable/chunks/{D-fvD02O.js → DEo3brV5.js} +2 -2
- package/web/app/immutable/chunks/{gWaxvgpv.js → DEo5mzFE.js} +4 -4
- package/web/app/immutable/chunks/{hYtFXuM6.js → DF7SJcHw.js} +1 -1
- package/web/app/immutable/chunks/{cKfnoB88.js → DFbFLnMx.js} +1 -1
- package/web/app/immutable/chunks/{5P8mOVWK.js → DHnebSEV.js} +1 -1
- package/web/app/immutable/chunks/DJnc5r8U.js +1 -0
- package/web/app/immutable/chunks/{sHSA98Ae.js → DLHLuX0B.js} +1 -1
- package/web/app/immutable/chunks/{DqKef_Yi.js → DMVl8bez.js} +1 -1
- package/web/app/immutable/chunks/{CramXAJ0.js → DNBLhM9P.js} +1 -1
- package/web/app/immutable/chunks/{X0wrjHux.js → DQuLjWyg.js} +1 -1
- package/web/app/immutable/chunks/{nqpg2Djj.js → DR5IxY_q.js} +1 -1
- package/web/app/immutable/chunks/{Byr2ZhFE.js → DRDTrHX3.js} +1 -1
- package/web/app/immutable/chunks/{Og4xuM7g.js → DS2QhtLm.js} +1 -1
- package/web/app/immutable/chunks/{Bv1i2B5u.js → DTNUQDFX.js} +1 -1
- package/web/app/immutable/chunks/{DL304mi1.js → DUy6xMdY.js} +1 -1
- package/web/app/immutable/chunks/{b8GoMhSt.js → DV_c4cZz.js} +1 -1
- package/web/app/immutable/chunks/{vSLEtuRc.js → DVdgjGW2.js} +1 -1
- package/web/app/immutable/chunks/{B9aafd7C.js → DXBnJ5oH.js} +1 -1
- package/web/app/immutable/chunks/{dAVgSJe8.js → DXIggtiA.js} +1 -1
- package/web/app/immutable/chunks/{B9l9TMyA.js → Da2MW7PY.js} +1 -1
- package/web/app/immutable/chunks/{DUor0DI_.js → Da7V4qRA.js} +1 -1
- package/web/app/immutable/chunks/{CUBdinib.js → DaVLGnNn.js} +1 -1
- package/web/app/immutable/chunks/{BjHlv5EB.js → Db2Jl7w7.js} +1 -1
- package/web/app/immutable/chunks/{DzqZnAgo.js → Dbd3M4VX.js} +4 -4
- package/web/app/immutable/chunks/{BYT1TQGK.js → Dcd40P4V.js} +1 -1
- package/web/app/immutable/chunks/{BI5nb_pF.js → DdSHHwG-.js} +1 -1
- package/web/app/immutable/chunks/{BzXCk-eX.js → DeLItg2s.js} +1 -1
- package/web/app/immutable/chunks/{BJ5nSO_Z.js → DevaRANM.js} +3 -3
- package/web/app/immutable/chunks/{DWgWsm2y.js → Dfo7IcH5.js} +1 -1
- package/web/app/immutable/chunks/{CgfVp9Ef.js → DgGohlQK.js} +1 -1
- package/web/app/immutable/chunks/{RjrC7VFY.js → DhPqduTn.js} +1 -1
- package/web/app/immutable/chunks/{C4oYAvfo.js → DifK42p0.js} +1 -1
- package/web/app/immutable/chunks/{oNlT93oA.js → DjaIRWIW.js} +1 -1
- package/web/app/immutable/chunks/{CjPfyTRR.js → DkkZo56B.js} +1 -1
- package/web/app/immutable/chunks/{ot3p-Y1j.js → DlNogvkm.js} +1 -1
- package/web/app/immutable/chunks/{ZngqFVq2.js → DlySFqed.js} +1 -1
- package/web/app/immutable/chunks/{CKGxulW8.js → DoWpanLy.js} +1 -1
- package/web/app/immutable/chunks/{DhhomoFS.js → DrPWazGq.js} +1 -1
- package/web/app/immutable/chunks/{DfuAejzr.js → DsPTvO1D.js} +1 -1
- package/web/app/immutable/chunks/{D_P8KoFV.js → DyLYtK5N.js} +1 -1
- package/web/app/immutable/chunks/{DGRqvVY1.js → Dzmm4LX6.js} +2 -2
- package/web/app/immutable/chunks/{Bo40L-We.js → EbPgJF03.js} +1 -1
- package/web/app/immutable/chunks/{BahcW9Py.js → GVSL2sGk.js} +1 -1
- package/web/app/immutable/chunks/{CcYKMJWn.js → HZ9TCfKK.js} +1 -1
- package/web/app/immutable/chunks/{BpGfQKt5.js → HpSr1h8y.js} +1 -1
- package/web/app/immutable/chunks/{pA6KCKbP.js → HtolvgCH.js} +1 -1
- package/web/app/immutable/chunks/{ClkbPGx9.js → IH85nSha.js} +1 -1
- package/web/app/immutable/chunks/{SoUJpC1P.js → IsZH9joj.js} +1 -1
- package/web/app/immutable/chunks/{_6UbyZFm.js → JxvzDmDF.js} +1 -1
- package/web/app/immutable/chunks/{R6z5Bqeu.js → Kn9ZbRDu.js} +1 -1
- package/web/app/immutable/chunks/{DdfHQxRr.js → OXVbQQSu.js} +1 -1
- package/web/app/immutable/chunks/{C9OFPDov.js → OyCLeO1d.js} +1 -1
- package/web/app/immutable/chunks/{DE4arwhh.js → Qg7vTeHw.js} +1 -1
- package/web/app/immutable/chunks/{ETkf7dmN.js → Qpp-eumr.js} +1 -1
- package/web/app/immutable/chunks/{Bm0VuPYn.js → SAoHFFQz.js} +1 -1
- package/web/app/immutable/chunks/{FHXrLz5A.js → WSPGY2Jm.js} +1 -1
- package/web/app/immutable/chunks/{Bj0v3XMt.js → XHXZbc0Q.js} +1 -1
- package/web/app/immutable/chunks/{3yYmQx2z.js → XJEHWeE3.js} +1 -1
- package/web/app/immutable/chunks/{BCP62aew.js → _L5AdDNH.js} +1 -1
- package/web/app/immutable/chunks/{CHnA0xpr.js → bl5nff1M.js} +1 -1
- package/web/app/immutable/chunks/{QPRdLPHE.js → ceF1L-gS.js} +1 -1
- package/web/app/immutable/chunks/{CTh4M5uj.js → fEnLQxJ4.js} +1 -1
- package/web/app/immutable/chunks/{Uea955Vz.js → gWBpiwO7.js} +1 -1
- package/web/app/immutable/chunks/{CaPALXDj.js → hQlemDzn.js} +1 -1
- package/web/app/immutable/chunks/{DRRbh3V4.js → hRTaoCvf.js} +1 -1
- package/web/app/immutable/chunks/{DfA_Upom.js → hmNmIDzu.js} +1 -1
- package/web/app/immutable/chunks/{nLyQInj7.js → hwFphMxp.js} +1 -1
- package/web/app/immutable/chunks/{B57wBfTw.js → i4rQF8gq.js} +1 -1
- package/web/app/immutable/chunks/{BuDJvkTk.js → iYz7qSVO.js} +2 -2
- package/web/app/immutable/chunks/{gtyJplKf.js → iqwxOx7o.js} +1 -1
- package/web/app/immutable/chunks/{Ju7PAma1.js → j5tG0B2t.js} +1 -1
- package/web/app/immutable/chunks/{BwzznN4d.js → jK-m9hL8.js} +1 -1
- package/web/app/immutable/chunks/{BEsCIa2p.js → jOuwgRm6.js} +1 -1
- package/web/app/immutable/chunks/{C2pyYkiS.js → lwGMtA_8.js} +1 -1
- package/web/app/immutable/chunks/{BOuXmWAj.js → sbDqysXr.js} +1 -1
- package/web/app/immutable/chunks/{W2yoNJFv.js → tSZXsoGb.js} +1 -1
- package/web/app/immutable/chunks/{CEufllny.js → vJ7Dp7-k.js} +1 -1
- package/web/app/immutable/chunks/{VmRBMU-H.js → vSkHI-FK.js} +2 -2
- package/web/app/immutable/chunks/{73QfWqEv.js → vgvfRyJV.js} +1 -1
- package/web/app/immutable/chunks/{C1ha510g.js → vj4vOyOm.js} +1 -1
- package/web/app/immutable/chunks/{DtWKfIHW.js → xeIBXGKb.js} +1 -1
- package/web/app/immutable/chunks/{BjnapXgD.js → xpT8lZyG.js} +2 -2
- package/web/app/immutable/chunks/{CVDRxz2f.js → ztG-0WIA.js} +1 -1
- package/web/app/immutable/entry/{app.D9kIVkFi.js → app.RSzHSDgw.js} +3 -3
- package/web/app/immutable/entry/start.BVuekftv.js +1 -0
- package/web/app/immutable/nodes/{0.CycxDG0L.js → 0.Da435p_w.js} +1 -1
- package/web/app/immutable/nodes/{1.DBDsO8vk.js → 1.D1nY11Eo.js} +1 -1
- package/web/app/immutable/nodes/{10.DeWMsWJr.js → 10.C15wfgwX.js} +1 -1
- package/web/app/immutable/nodes/{11.D3R05nAN.js → 11.TMR29QT0.js} +1 -1
- package/web/app/immutable/nodes/{12.FwwO1QwE.js → 12.Dkcg23hr.js} +1 -1
- package/web/app/immutable/nodes/{13.BXCK1uUO.js → 13.BANT9s8o.js} +3 -3
- package/web/app/immutable/nodes/{14.CaU020TI.js → 14.DChhRykH.js} +1 -1
- package/web/app/immutable/nodes/{15.DBweoCJ3.js → 15.BXSdgmt8.js} +1 -1
- package/web/app/immutable/nodes/{16.x7FRjB-z.js → 16.Cp3myrhK.js} +1 -1
- package/web/app/immutable/nodes/{17.nVKVEw2j.js → 17.AJ0Z4n7s.js} +1 -1
- package/web/app/immutable/nodes/{18.D8Pypemm.js → 18.BYytq5r4.js} +2 -2
- package/web/app/immutable/nodes/{2.bw2OhfV2.js → 2.B_tahnsH.js} +4 -4
- package/web/app/immutable/nodes/{3.C3rwANJW.js → 3.l2wlNZto.js} +1 -1
- package/web/app/immutable/nodes/{4.D3HKzTPL.js → 4.DSLW-lsR.js} +1 -1
- package/web/app/immutable/nodes/{5.f1pRghhu.js → 5.DaH-2DbB.js} +1 -1
- package/web/app/immutable/nodes/{6.rpNMjH5t.js → 6.CWNY9M3R.js} +1 -1
- package/web/app/immutable/nodes/{7.BSbrbiiB.js → 7.DI6SUPGK.js} +1 -1
- package/web/app/immutable/nodes/8.j51qyATM.js +14 -0
- package/web/app/immutable/nodes/9.C4rF4IYL.js +39 -0
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +19 -19
- package/web/app/immutable/assets/0.C6uvaa87.css +0 -1
- package/web/app/immutable/chunks/41c-5lbJ.js +0 -1
- package/web/app/immutable/chunks/BJwMP_No.js +0 -1
- package/web/app/immutable/chunks/CEpelLfd.js +0 -2
- package/web/app/immutable/chunks/CgXr85TV.js +0 -19
- package/web/app/immutable/chunks/Cj__CwtA.js +0 -1
- package/web/app/immutable/chunks/DLiD3Y7h.js +0 -1
- package/web/app/immutable/chunks/DMIrVtTU.js +0 -1
- package/web/app/immutable/chunks/DQ_x-k0O.js +0 -13
- package/web/app/immutable/chunks/FbHjHDf9.js +0 -1
- package/web/app/immutable/chunks/nbfGErIW.js +0 -1
- package/web/app/immutable/entry/start.CsSnQcM4.js +0 -1
- package/web/app/immutable/nodes/8.DbrZFert.js +0 -14
- package/web/app/immutable/nodes/9.D--sfpfT.js +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Fe}from"./0-xAXZgf.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./gWaxvgpv.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
|
|
1
|
+
import{g as Fe}from"./C1l_AdDU.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./DEo5mzFE.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+H.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(F+1)+": Unexpected "+(N==V?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(te,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:$,expected:H})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+N);switch(v[0]){case 1:l.push(N),E.push(D.yytext),r.push(D.yylloc),l.push(v[1]),N=null,Y=D.yyleng,n=D.yytext,F=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[v[1]][1],M.$=E[E.length-B],M._$={first_line:r[r.length-(B||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(B||1)].first_column,last_column:r[r.length-1].last_column},Re&&(M._$.range=[r[r.length-(B||1)].range[0],r[r.length-1].range[1]]),ee=this.performAction.apply(M,[n,Y,F,z.yy,v[1],E,r].concat(Z)),typeof ee<"u")return ee;B&&(l=l.slice(0,-1*B*2),E=E.slice(0,-1*B),r=r.slice(0,-1*B)),l.push(this.productions_[v[1]][0]),E.push(M.$),r.push(M._$),pe=K[l[l.length-2]][l[l.length-1]],l.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var C={EOF:1,parseError:u(function(i,l){if(this.yy.parser)this.yy.parser.parseError(i,l);else throw new Error(i)},"parseError"),setInput:u(function(d,i){return this.yy=i||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var i=d.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:u(function(d){var i=d.length,l=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(d){this.unput(this.match.slice(d))},"less"),pastInput:u(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var d=this.pastInput(),i=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Y,bq as s,by as G,br as J,b as K}from"./
|
|
1
|
+
import{t as Y,bq as s,by as G,br as J,b as K}from"./BUAFIktJ.js";import{bo as L,bs as Q,ca as U,aD as i,ay as V,bx as X,bS as Z,W as B,bn as $,c9 as n,aA as r,be as ee,b$ as te,b_ as ae,bO as se,aB as re}from"./DYhIMPy1.js";import{i as ie}from"./Bvd0DfwC.js";import{b as ne,e as oe}from"./COO6ldt4.js";import{l as de,o as le,k as ue,t as ce,e as fe,a as ge}from"./DyLYtK5N.js";import{b as me}from"./BaIAhI85.js";import"./Co5bimwo.js";import{a_ as xe}from"./hwFphMxp.js";var he=new Set(["$$slots","$$events","$$legacy","ref","id","class","value","doesExpandToFit","autoResize","minHeight","maxHeight","noFocusStyle","variant","size","message","error","messageId","aria-describedby","aria-invalid"]),be=re("<textarea></textarea> <!>",1);function ve(E,t){const C=L();if(new.target)return Y({component:ve,...E});Q(t,!0);const k=xe();let a=s(t,"ref",15),x=s(t,"id",7),h=s(t,"class",7),c=s(t,"value",15),b=s(t,"doesExpandToFit",7,!1),v=s(t,"autoResize",7,!1),f=s(t,"minHeight",7,80),o=s(t,"maxHeight",7,400),y=s(t,"noFocusStyle",7,!1),g=s(t,"variant",7,"default"),_=s(t,"size",7),z=s(t,"message",7),d=s(t,"error",7),m=s(t,"messageId",23,()=>`${C}-message`),H=s(t,"aria-describedby",7),p=s(t,"aria-invalid",7),M=J(t,he);const I=n(()=>_()??k),l=n(()=>v()||b()),F=n(()=>d()??z()),j=n(()=>[H(),i(F)?m():void 0].filter(Boolean).join(" ")||void 0),A=n(()=>d()?!0:p());function D(){a()?.focus()}function P(){a()?.blur()}function R(){if(!i(l)||!a())return;a(a().style.height="auto",!0);const e=Math.min(Math.max(a().scrollHeight,f()),o());a(a().style.height=`${e}px`,!0),a(a().style.overflowY=a().scrollHeight>o()?"auto":"hidden",!0)}U(()=>{i(l)&&a()&&c()!==void 0&&R()});var q={focus:D,blur:P,get ref(){return a()},set ref(e){a(e),r()},get id(){return x()},set id(e){x(e),r()},get class(){return h()},set class(e){h(e),r()},get value(){return c()},set value(e){c(e),r()},get doesExpandToFit(){return b()},set doesExpandToFit(e=!1){b(e),r()},get autoResize(){return v()},set autoResize(e=!1){v(e),r()},get minHeight(){return f()},set minHeight(e=80){f(e),r()},get maxHeight(){return o()},set maxHeight(e=400){o(e),r()},get noFocusStyle(){return y()},set noFocusStyle(e=!1){y(e),r()},get variant(){return g()},set variant(e="default"){g(e),r()},get size(){return _()},set size(e){_(e),r()},get message(){return z()},set message(e){z(e),r()},get error(){return d()},set error(e){d(e),r()},get messageId(){return m()},set messageId(e=`${C}-message`){m(e),r()},get"aria-describedby"(){return H()},set"aria-describedby"(e){H(e),r()},get"aria-invalid"(){return p()},set"aria-invalid"(e){p(e),r()},$set:G,$on:(e,S)=>K(t,e,S)},T=be(),u=V(T);X(u),ne(u,e=>({id:x(),"data-slot":"textarea","data-size":i(I),"data-variant":g()==="inline"?"inline":void 0,oninput:i(l)?R:void 0,"aria-describedby":i(j),"aria-invalid":i(A),class:e,style:i(l)?`min-height: ${f()}px; max-height: ${o()}px`:void 0,autocorrect:"off",autocapitalize:"off",spellcheck:"false",...M}),[()=>oe(g()==="inline"?le:["type-caption text-foreground placeholder:text-muted-foreground flex w-full rounded-(--radius-medium) border px-3",ue,ce,i(I)==="compact"?"py-1.5":"py-2",i(l)?"resize-none overflow-hidden":"min-h-20"],y()&&de,h())]),me(u,e=>a(e),()=>a());var N=Z(u,2);{var O=e=>{{let S=n(()=>d()?"error":"helper");ge(e,{get id(){return m()},get tone(){return i(S)},children:(W,ye)=>{ee();var w=te();ae(()=>se(w,i(F))),B(W,w)},$$slots:{default:!0}})}};ie(N,e=>{i(F)&&e(O)})}return fe(u,c),B(E,T),$(q)}export{ve as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as I}from"./
|
|
1
|
+
import{p as I}from"./DjaIRWIW.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./DEo5mzFE.js";import{p as U}from"./tSZXsoGb.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
|
|
2
2
|
.radarCurve-${r} {
|
|
3
3
|
color: ${s};
|
|
4
4
|
fill: ${s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as r}from"./
|
|
1
|
+
import{g as r}from"./C1X9EbCK.js";import{l as d}from"./ChTqQfQN.js";let n=!1,t=!1;function c(){if(!n)try{r.defineTheme("app-dark",{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#569cd6"},{token:"string",foreground:"#ce9178"},{token:"number",foreground:"#b5cea8"},{token:"comment",foreground:"#6a9955"}],colors:{"editor.background":"#1B1B23","editor.foreground":"#d4d4d4","editor.selectionBackground":"#264f78","editor.lineHighlightBackground":"#0B0B0E","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#374151","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),r.defineTheme("app-light",{base:"vs",inherit:!0,rules:[{token:"keyword",foreground:"#7c3aed"},{token:"keyword.control",foreground:"#7c3aed"},{token:"keyword.operator",foreground:"#7c3aed"},{token:"operator",foreground:"#374151"},{token:"variable",foreground:"#374151"},{token:"variable.other",foreground:"#374151"},{token:"variable.parameter",foreground:"#374151"},{token:"variable.language",foreground:"#7c3aed"},{token:"type",foreground:"#b45309"},{token:"class",foreground:"#b45309"},{token:"interface",foreground:"#b45309"},{token:"enum",foreground:"#b45309"},{token:"function",foreground:"#1d4ed8"},{token:"function.declaration",foreground:"#1d4ed8"},{token:"function.call",foreground:"#1d4ed8"},{token:"string",foreground:"#047857"},{token:"string.quoted",foreground:"#047857"},{token:"string.quoted.single",foreground:"#047857"},{token:"string.quoted.double",foreground:"#047857"},{token:"number",foreground:"#c2410c"},{token:"comment",foreground:"#6b7280"},{token:"comment.line",foreground:"#6b7280"},{token:"comment.block",foreground:"#6b7280"},{token:"invalid",foreground:"#b91c1c"}],colors:{"editor.background":"#ffffff","editor.foreground":"#1f2937","editor.lineNumbersBackground":"#f9fafb","editor.lineNumbersForeground":"#9ca3af","editor.selectionBackground":"#dbeafe","editor.lineHighlightBackground":"#f3f4f6","editorCursor.foreground":"#1f2937","editorWhitespace.foreground":"#e5e7eb","diffEditor.insertedLineBackground":"#22c55e18","diffEditor.removedLineBackground":"#ef444418","diffEditor.insertedTextBackground":"#22c55e70","diffEditor.removedTextBackground":"#ef444470","diffEditorGutter.insertedLineBackground":"#22c55ecc","diffEditorGutter.removedLineBackground":"#ef4444cc","diffEditor.insertedTextBorder":"#22c55e99","diffEditor.removedTextBorder":"#ef444499","diffEditor.diagonalFill":"#e5e7eb55","diffEditorOverview.insertedForeground":"#22c55ecc","diffEditorOverview.removedForeground":"#ef4444cc"}}),n=!0}catch(e){d.error("Failed to initialize Monaco themes:",e)}}function u(e){try{r.defineTheme("app-custom",e),r.setTheme("app-custom"),t=!0}catch(o){d.error("Failed to apply custom Monaco theme:",o)}}function a(e){try{t=!1,r.setTheme(e?"app-dark":"app-light")}catch(o){d.error("Failed to revert Monaco theme:",o)}}function g(e){return t?"app-custom":e?"app-dark":"app-light"}export{u as applyCustomMonacoTheme,c as defineMonacoThemes,g as getActiveMonacoThemeName,a as revertMonacoTheme};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./
|
|
1
|
+
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,by as nr,b as rr,bu as dn,bs as So,bo as $e}from"./BUAFIktJ.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as je,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./DYhIMPy1.js";import{i as we}from"./Bvd0DfwC.js";import{f as un,g as pi,s as cn}from"./COO6ldt4.js";import{b as ko}from"./p7znhYIU.js";import{b as pn}from"./BaIAhI85.js";import{h as Eo,c as Ye,w as lr,N as O,O as Jt,b2 as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,ab as cr,U as Ro,f as Ao,e as pr,T as Ho,g as To,S as Do,a4 as Ze,a3 as Ve,C as Mo,G as gr,F as Io,I as Fo,A as At,ah as No,$ as Ht,ad as Tt,v as St,a1 as Ti,s as J,r as Ue,an as wt,D as Po,d as zo,aa as mr,b as gn,u as mn,aI as Uo,ap as ct,ac as _o,K as Le,M as Ut,L as Oo,a0 as Dt,E as Bo,al as vr,a6 as Vo,a2 as vn,t as br,af as ft,a5 as kt,ae as ot,ag as Sr,B as gi,a9 as mi,k as Wo,aH as bn}from"./Cx8Xjey1.js";import{g as Go,i as $o}from"./vJ7Dp7-k.js";import{F as vi,c4 as jo,be as qo,at as Ko,as as Xo}from"./CfdX4Lfl.js";import{f as Di}from"./hwFphMxp.js";import"./B1s_9zgm.js";import{g as Yo}from"./Bz6dDdb9.js";import{c as Qo}from"./CRrFC3B8.js";import{P as Jo}from"./CUHqJ1Vg.js";import{t as Sn}from"./DCOf4rfq.js";class Zo extends Eo{constructor(){super(...arguments),this.tokenize=ts}equals(t,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),i.endsWith(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aB as v,b as y}from"./
|
|
1
|
+
import{aB as v,b as y}from"./DEo5mzFE.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as ht,bq as _,bo as g,by as bt,b as xt}from"./
|
|
1
|
+
import{t as ht,bq as _,bo as g,by as bt,b as xt}from"./BUAFIktJ.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as F,bS as u,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./DYhIMPy1.js";import{i as f}from"./Bvd0DfwC.js";import{I as Bt,g as Ct}from"./vJ7Dp7-k.js";import{I as Pt,D as zt}from"./DCOf4rfq.js";import{f as M}from"./hwFphMxp.js";import"./B1s_9zgm.js";import"./COO6ldt4.js";import"./CnTu6sc6.js";import{F as rt,c9 as Rt,cl as St,aq as Wt}from"./CfdX4Lfl.js";import{e as Dt}from"./BR9y4bsr.js";import{D as Lt}from"./B9Ccf4_O.js";import{Iv as $t,uk as qt}from"./iYz7qSVO.js";import{g as Ht}from"./D16yE-CH.js";var Nt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Tt(U,n){if(new.target)return ht({component:Tt,...U});yt(n,!0);let A=_(n,"patches",7),O=_(n,"label",23,()=>g.ui_patchBlock_label()),V=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),L=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),q=_(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),T=y(()=>V()?.status==="success");function st(t){const o=t.split(`
|
|
2
2
|
`);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),G=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(T)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!($()||q()));function ot(){et(j,!e(j))}function lt(){e(T)?q()?.():$()?.()}var it={get patches(){return A()},set patches(t){A(t),h()},get label(){return O()},set label(t=g.ui_patchBlock_label()){O(t),h()},get lastApply(){return V()},set lastApply(t){V(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return L()},set workspaceId(t){L(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return $()},set onApply(t){$(t),h()},get onRevert(){return q()},set onRevert(t){q(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=jt(),v=F(o),b=F(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());M(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:l=>{L()&&$t.dispatch(qt(L(),{agentId:w(),...Ht(l)}))},get title(){return e(c)},children:(l,m)=>{Dt(l,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};f(b,a=>{w()&&a(I)})}var Z=u(b,2);M(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var l=Ft(),m=Q(l);{var B=i=>{rt(i,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};f(m,i=>{w()||i(B)})}var C=u(m,2),s=S(C,!0),d=u(C,2),r=F(d),R=S(r),H=u(r,2),J=S(H);W(d);var K=u(d,2);{var tt=i=>{var N=Nt(),_t=S(N,!0);D(gt=>x(_t,gt),[()=>g.ui_patchBlock_applied_label()]),p(i,N)};f(K,i=>{e(T)&&i(tt)})}D(()=>{x(s,O()),x(R,`+${e(X).addCount??""}`),x(J,`-${e(X).removeCount??""}`)}),p(a,l)},$$slots:{default:!0}});var ut=u(Z,2);{var ft=a=>{M(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:lt,get disabled(){return P()},children:(c,l)=>{var m=Mt(),B=Q(m);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(G).icon},size:"xs"})};f(B,r=>{P()?r(C):e(G).icon&&r(s,1)})}var d=u(B);D(()=>x(d,` ${e(G).label??""}`)),p(c,m)},$$slots:{default:!0}})};f(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=u(v,2);{var mt=a=>{var c=Vt(),l=F(c);{var m=s=>{var d=Ot();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,H)=>{{let J=y(()=>e(H)===e(E)?"default":"ghost-light");M(r,{get variant(){return e(J)},size:"sm",class:"type-caption",onclick:()=>et(E,e(H),!0),children:(K,tt)=>{wt();var i=It();D(N=>x(i,N),[()=>e(R).filePath.split("/").pop()]),p(K,i)},$$slots:{default:!0}})}}),W(d),p(s,d)};f(l,s=>{A().length>1&&s(m)})}var B=u(l,2);{var C=s=>{Lt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};f(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),p(a,c)};f(vt,a=>{e(j)&&a(mt)})}W(o),p(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),p(t,o)};f(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return p(U,Y),At(it)}export{Tt as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./BvFAWM27.js";import{z as i,o as c,aU as s}from"./
|
|
1
|
+
import{a as l}from"./BvFAWM27.js";import{z as i,o as c,aU as s}from"./iYz7qSVO.js";async function b(e){if(!e)throw new Error("Missing required parameter: url");let o;try{o=new URL(e)}catch{throw new Error(`Invalid external URL: ${e}`)}if(!l.EXTERNAL.includes(o.protocol)&&!l.EXTERNAL_EXACT.includes(e))throw new Error(`Refusing to open URL externally (scheme not allowed): ${o.protocol}`);if(typeof window>"u")throw new Error("Unable to open external URL outside a window context");const r=window.electronAPI;if(r&&typeof r.invoke=="function")try{const a=await r.invoke("shell:openExternal",{url:e});if(a&&a.success===!0)return}catch{}const t=window.open(e,"_blank");if(t){t.opener=null;return}const n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener noreferrer",document.body.appendChild(n),n.click(),n.remove()}const p={blue:"bg-blue-600 dark:bg-blue-400",indigo:"bg-indigo-600 dark:bg-indigo-400",violet:"bg-violet-600 dark:bg-violet-400",rose:"bg-rose-600 dark:bg-rose-400",orange:"bg-orange-600 dark:bg-orange-400",emerald:"bg-emerald-600 dark:bg-emerald-400",teal:"bg-teal-600 dark:bg-teal-400"},d={blue:"var(--color-blue-500)",indigo:"var(--color-indigo-500)",violet:"var(--color-violet-500)",rose:"var(--color-rose-500)",orange:"var(--color-orange-500)",emerald:"var(--color-emerald-500)",teal:"var(--color-teal-500)"};function g(e){return e===void 0?i:e}function f(e){return[null,...c.filter(o=>s.includes(o)||o===e)]}function C(e,o){const r=g(e);return o||r===null?"transparent":`color-mix(in srgb, ${d[r]} 7%, transparent)`}function N(e,o){const r=C(e,o);return r==="transparent"?void 0:`linear-gradient(${r} 0 0)`}export{p as C,d as a,N as b,f as c,C as d,b as o,g as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as t}from"./
|
|
1
|
+
import{l as t}from"./C1X9EbCK.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{o as conf,m as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as j,by as q,bu as p,bs as B,b as L}from"./
|
|
1
|
+
import{t as j,by as q,bu as p,bs as B,b as L}from"./BUAFIktJ.js";import{bs as R,ca as c,bk as W,bn as z}from"./DYhIMPy1.js";import{o as h,m,s as y,k as V}from"./IH85nSha.js";import"./COO6ldt4.js";import"./CnTu6sc6.js";import"./B1s_9zgm.js";import"./ChTqQfQN.js";import"./CRrFC3B8.js";import{Iv as t,I1 as b,oD as a,qo as F,j$ as g}from"./iYz7qSVO.js";function G(v,T){if(new.target)return j({component:G,...v});R(T,!0);const r=()=>p(U,"$ownsNotice$",l),D=()=>p(x,"$toastVisible$",l),u=()=>p(O,"$status$",l),S=()=>p(k,"$dismissedAt$",l),[l,N]=B(),o=t.createSelector(s=>{const e=s.machineRail;return!e.enabled||e.shownId===""||e.shownId===s.connections.windowBackendId}),U=o(),x=h(),O=m(),k=y(),A=1440*60*1e3;let i,$;const I=new Set;function _(s){I.add(s),V.dismiss(s)}function f(){if(!o.select(t.state))return;i!==void 0&&_(i);const s=V.update({onDismiss:()=>{i!==s||!o.select(t.state)||(n(),m.select(t.state)==="downloaded"?t.dispatch(g(Date.now())):t.dispatch(a()))},onAutoDismiss:()=>{i!==s||!o.select(t.state)||(n(),t.dispatch(a()))}},{duration:1/0,onDismiss:e=>{if(I.delete(e.id)||i!==e.id||!o.select(t.state))return;if(i=void 0,m.select(t.state)==="downloaded"&&o.select(t.state)){t.dispatch(g(Date.now()));return}t.dispatch(a())}});i=s}function n(){i!==void 0&&(_(i),i=void 0)}c(()=>{r()&&D()&&i===void 0&&f()}),c(()=>{const s=u();if(!r()){n(),$=void 0;return}if(s!==$){if(s==="downloading")i===void 0&&f(),h.select(t.state)||t.dispatch(b());else if(s==="downloaded"){const e=y.select(t.state);e==null||Date.now()-e>=A?(i===void 0&&f(),h.select(t.state)||t.dispatch(b())):(n(),t.dispatch(a()))}s==="idle"&&(n(),t.dispatch(a())),$=s}}),c(()=>{u()==="downloaded"&&!D()&&S()!==null&&n()}),c(()=>{const s=u(),e=S();if(!r()||s!=="downloaded"||e==null)return;const d=Date.now()-e,w=A-d;if(w<=0)return;const E=setTimeout(()=>{m.select(t.state)==="downloaded"&&o.select(t.state)&&(f(),t.dispatch(b()))},w);return()=>clearTimeout(E)}),c(()=>{const s=u();if(r()&&(s==="not-available"||s==="error")){const d=setTimeout(()=>{o.select(t.state)&&(n(),t.dispatch(a()))},s==="error"?5500:3500);return()=>clearTimeout(d)}}),W(()=>(t.dispatch(F()),()=>{n()}));var C={$set:q,$on:(s,e)=>L(T,s,e)},M=z(C);return N(),M}export{G as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as P}from"./
|
|
1
|
+
import{c as P}from"./Cep-BDRS.js";import{c as J,f as Q,C as Y,H as y,g as G,b as X,F as Z,S as $,a as K}from"./ChYZv5SJ.js";import{D as Oe,d as Ie,e as Le,R as Ne,h as Ee,i as Ue,j as De,t as Be,k as Re}from"./ChYZv5SJ.js";import{l as _,g as B}from"./C1X9EbCK.js";const x=120*1e3;class C{constructor(i){this._defaults=i,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=P({moduleId:"vs/language/json/jsonWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/json.worker-Cgaz53LV.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...i){let t;return this._getClient().then(n=>{t=n}).then(n=>{if(this._worker)return this._worker.withSyncedResources(i)}).then(n=>t)}}function ee(e,i=!1){const t=e.length;let n=0,o="",p=0,l=16,u=0,g=0,w=0,v=0,c=0;function O(s,m){let a=0,r=0;for(;a<s;){let f=e.charCodeAt(n);if(f>=48&&f<=57)r=r*16+f-48;else if(f>=65&&f<=70)r=r*16+f-65+10;else if(f>=97&&f<=102)r=r*16+f-97+10;else break;n++,a++}return a<s&&(r=-1),r}function U(s){n=s,o="",p=0,l=16,c=0}function N(){let s=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&T(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&T(e.charCodeAt(n)))for(n++;n<e.length&&T(e.charCodeAt(n));)n++;else return c=3,e.substring(s,n);let m=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&T(e.charCodeAt(n))){for(n++;n<e.length&&T(e.charCodeAt(n));)n++;m=n}else c=3;return e.substring(s,m)}function q(){let s="",m=n;for(;;){if(n>=t){s+=e.substring(m,n),c=2;break}const a=e.charCodeAt(n);if(a===34){s+=e.substring(m,n),n++;break}if(a===92){if(s+=e.substring(m,n),n++,n>=t){c=2;break}switch(e.charCodeAt(n++)){case 34:s+='"';break;case 92:s+="\\";break;case 47:s+="/";break;case 98:s+="\b";break;case 102:s+="\f";break;case 110:s+=`
|
|
2
2
|
`;break;case 114:s+="\r";break;case 116:s+=" ";break;case 117:const f=O(4);f>=0?s+=String.fromCharCode(f):c=4;break;default:c=5}m=n;continue}if(a>=0&&a<=31)if(I(a)){s+=e.substring(m,n),c=2;break}else c=6;n++}return s}function D(){if(o="",c=0,p=n,g=u,v=w,n>=t)return p=t,l=17;let s=e.charCodeAt(n);if(E(s)){do n++,o+=String.fromCharCode(s),s=e.charCodeAt(n);while(E(s));return l=15}if(I(s))return n++,o+=String.fromCharCode(s),s===13&&e.charCodeAt(n)===10&&(n++,o+=`
|
|
3
3
|
`),u++,w=n,l=14;switch(s){case 123:return n++,l=1;case 125:return n++,l=2;case 91:return n++,l=3;case 93:return n++,l=4;case 58:return n++,l=6;case 44:return n++,l=5;case 34:return n++,o=q(),l=10;case 47:const m=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<t&&!I(e.charCodeAt(n));)n++;return o=e.substring(m,n),l=12}if(e.charCodeAt(n+1)===42){n+=2;const a=t-1;let r=!1;for(;n<a;){const f=e.charCodeAt(n);if(f===42&&e.charCodeAt(n+1)===47){n+=2,r=!0;break}n++,I(f)&&(f===13&&e.charCodeAt(n)===10&&n++,u++,w=n)}return r||(n++,c=1),o=e.substring(m,n),l=13}return o+=String.fromCharCode(s),n++,l=16;case 45:if(o+=String.fromCharCode(s),n++,n===t||!T(e.charCodeAt(n)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=N(),l=11;default:for(;n<t&&z(s);)n++,s=e.charCodeAt(n);if(p!==n){switch(o=e.substring(p,n),o){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return o+=String.fromCharCode(s),n++,l=16}}function z(s){if(E(s)||I(s))return!1;switch(s){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function d(){let s;do s=D();while(s>=12&&s<=15);return s}return{setPosition:U,getPosition:()=>n,scan:i?d:D,getToken:()=>l,getTokenValue:()=>o,getTokenOffset:()=>p,getTokenLength:()=>n-p,getTokenStartLine:()=>g,getTokenStartCharacter:()=>p-v,getTokenError:()=>c}}function E(e){return e===32||e===9}function I(e){return e===10||e===13}function T(e){return e>=48&&e<=57}var R;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(R||(R={}));new Array(20).fill(0).map((e,i)=>" ".repeat(i));const A=200;new Array(A).fill(0).map((e,i)=>`
|
|
4
4
|
`+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>"\r"+" ".repeat(i)),new Array(A).fill(0).map((e,i)=>`\r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ar=Object.defineProperty;var cr=s=>{throw TypeError(s)};var Hr=(s,t,e)=>t in s?Ar(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var m=(s,t,e)=>Hr(s,typeof t!="symbol"?t+"":t,e),Ce=(s,t,e)=>t.has(s)||cr("Cannot "+e);var n=(s,t,e)=>(Ce(s,t,"read from private field"),e?e.call(s):t.get(s)),d=(s,t,e)=>t.has(s)?cr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),F=(s,t,e,r)=>(Ce(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e),et=(s,t,e)=>(Ce(s,t,"access private method"),e);import{t as V,bq as v,by as M,b as W,br as k,bt as L}from"./41c-5lbJ.js";import{aD as o,bH as f,bV as T,c9 as y,ca as X,c5 as ht,bs as A,a7 as O,ay as E,W as z,bn as H,aA as S,bf as J,bi as ut,cb as Lr,bo as ie,a5 as nt,bA as it,aB as tt,bS as fe}from"./DYhIMPy1.js";import{i as B}from"./ClgmQqA9.js";import{s as U}from"./BhX-5zd9.js";import{c as ct}from"./Dv-TQImR.js";import{aL as Or,e as kr,aU as Xr,a$ as ur,av as D,aX as ze,h as le,aZ as Ur,an as K,D as Yr,ay as $r,aA as Ir,aQ as Y,aJ as Fr,az as j}from"./nLyQInj7.js";import{b as lt,e as Br,p as jr}from"./BBCbq-hE.js";function qr(s,t){if(Or(s)){const r=s();return r===void 0?t:r}return s===void 0?t:s}function we(s,t){let e=T(null);const r=y(()=>qr(t,250));function i(...l){if(o(e))o(e).timeout&&clearTimeout(o(e).timeout);else{let a,c;const u=new Promise((p,h)=>{a=p,c=h});f(e,{timeout:null,runner:null,promise:u,resolve:a,reject:c},!0)}return o(e).runner=async()=>{if(!o(e))return;const a=o(e);f(e,null);try{a.resolve(await s.apply(this,l))}catch(c){a.reject(c)}},o(e).timeout=setTimeout(o(e).runner,o(r)),o(e).promise}return i.cancel=async()=>{(!o(e)||o(e).timeout===null)&&(await new Promise(l=>setTimeout(l,0)),!o(e)||o(e).timeout===null)||(clearTimeout(o(e).timeout),o(e).reject("Cancelled"),f(e,null))},i.runScheduledNow=async()=>{(!o(e)||!o(e).timeout)&&(await new Promise(l=>setTimeout(l,0)),!o(e)||!o(e).timeout)||(clearTimeout(o(e).timeout),o(e).timeout=null,await o(e).runner?.())},Object.defineProperty(i,"pending",{enumerable:!0,get(){return!!o(e)?.timeout}}),i}var rt;class $e{constructor(){d(this,rt,T(!1));X(()=>(ht(()=>f(n(this,rt),!0)),()=>{f(n(this,rt),!1)}))}get current(){return o(n(this,rt))}}rt=new WeakMap;var dt,ft;class at{constructor(t,e){d(this,dt);d(this,ft);F(this,dt,t),F(this,ft,e),this.handler=this.handler.bind(this),X(this.handler)}handler(){let t=0;const e=n(this,dt).call(this);if(!e)return;const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n(this,ft))});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}dt=new WeakMap,ft=new WeakMap;var pt,Q,bt,Z,q,mt,gt,De;class Gr{constructor(t){d(this,gt);m(this,"opts");m(this,"present");d(this,pt);d(this,Q,T(!1));d(this,bt,!1);d(this,Z,T(void 0));d(this,q,null);d(this,mt,y(()=>o(n(this,Q))));this.opts=t,this.present=this.opts.open,f(n(this,Q),t.open.current,!0),F(this,pt,new kr({ref:this.opts.ref,afterTick:this.opts.open})),Xr(()=>et(this,gt,De).call(this)),ur(()=>this.present.current,e=>{if(!n(this,bt)){F(this,bt,!0);return}et(this,gt,De).call(this),e&&f(n(this,Q),!0),f(n(this,Z),e?"starting":"ending",!0),e&&F(this,q,window.requestAnimationFrame(()=>{F(this,q,null),this.present.current&&f(n(this,Z),void 0)})),n(this,pt).run(()=>{e===this.present.current&&(e||f(n(this,Q),!1),f(n(this,Z),void 0))})})}get isPresent(){return o(n(this,mt))}set isPresent(t){f(n(this,mt),t)}get transitionStatus(){return o(n(this,Z))}}pt=new WeakMap,Q=new WeakMap,bt=new WeakMap,Z=new WeakMap,q=new WeakMap,mt=new WeakMap,gt=new WeakSet,De=function(){n(this,q)!==null&&(window.cancelAnimationFrame(n(this,q)),F(this,q,null))};function ae(s,t){if(new.target)return V({component:ae,...s});A(t,!0);let e=v(t,"open",7),r=v(t,"forceMount",7),i=v(t,"presence",7),l=v(t,"ref",7);const a=new Gr({open:D(()=>e()),ref:l()});var c={get open(){return e()},set open(P){e(P),S()},get forceMount(){return r()},set forceMount(P){r(P),S()},get presence(){return i()},set presence(P){i(P),S()},get ref(){return l()},set ref(P){l(P),S()},$set:M,$on:(P,w)=>W(t,P,w)},u=O(),p=E(u);{var h=P=>{var w=O(),x=E(w);U(x,()=>i()??J,()=>({present:a.isPresent,transitionStatus:a.transitionStatus})),z(P,w)};B(p,P=>{(r()||e()||a.isPresent)&&P(h)})}return z(s,u),H(c)}function Jr(s,t,e){return Math.min(e,Math.max(t,s))}var vt,me,dr;class Qr{constructor(t,e){d(this,me);m(this,"state");d(this,vt);this.state=ze(t),F(this,vt,e),this.dispatch=this.dispatch.bind(this)}dispatch(t){this.state.current=et(this,me,dr).call(this,t)}}vt=new WeakMap,me=new WeakSet,dr=function(t){return n(this,vt)[this.state.current][t]??this.state.current};const ce=$r({component:"scroll-area",parts:["root","viewport","corner","thumb","scrollbar"]}),he=new le("ScrollArea.Root"),ue=new le("ScrollArea.Scrollbar"),Pe=new le("ScrollArea.ScrollbarVisible"),Ie=new le("ScrollArea.ScrollbarAxis"),fr=new le("ScrollArea.ScrollbarShared");var St,wt,Pt,yt,xt,_t,Tt,Nt,Ct,zt;const Be=class Be{constructor(t){m(this,"opts");m(this,"attachment");d(this,St,T(null));d(this,wt,T(null));d(this,Pt,T(null));d(this,yt,T(null));d(this,xt,T(null));d(this,_t,T(0));d(this,Tt,T(0));d(this,Nt,T(!1));d(this,Ct,T(!1));m(this,"domContext");d(this,zt,y(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[ce.root]:"",...this.attachment})));this.opts=t,this.attachment=K(t.ref,e=>this.scrollAreaNode=e),this.domContext=new Yr(t.ref)}static create(t){return he.set(new Be(t))}get scrollAreaNode(){return o(n(this,St))}set scrollAreaNode(t){f(n(this,St),t,!0)}get viewportNode(){return o(n(this,wt))}set viewportNode(t){f(n(this,wt),t,!0)}get contentNode(){return o(n(this,Pt))}set contentNode(t){f(n(this,Pt),t,!0)}get scrollbarXNode(){return o(n(this,yt))}set scrollbarXNode(t){f(n(this,yt),t,!0)}get scrollbarYNode(){return o(n(this,xt))}set scrollbarYNode(t){f(n(this,xt),t,!0)}get cornerWidth(){return o(n(this,_t))}set cornerWidth(t){f(n(this,_t),t,!0)}get cornerHeight(){return o(n(this,Tt))}set cornerHeight(t){f(n(this,Tt),t,!0)}get scrollbarXEnabled(){return o(n(this,Nt))}set scrollbarXEnabled(t){f(n(this,Nt),t,!0)}get scrollbarYEnabled(){return o(n(this,Ct))}set scrollbarYEnabled(t){f(n(this,Ct),t,!0)}get props(){return o(n(this,zt))}set props(t){f(n(this,zt),t)}};St=new WeakMap,wt=new WeakMap,Pt=new WeakMap,yt=new WeakMap,xt=new WeakMap,_t=new WeakMap,Tt=new WeakMap,Nt=new WeakMap,Ct=new WeakMap,zt=new WeakMap;let Ee=Be;var ge,ve,Dt,Et;const je=class je{constructor(t,e){m(this,"opts");m(this,"root");m(this,"attachment");d(this,ge,ze(Ur()));d(this,ve,ze(null));m(this,"contentAttachment",K(n(this,ve),t=>this.root.contentNode=t));d(this,Dt,y(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[ce.viewport]:"",...this.attachment})));d(this,Et,y(()=>({id:n(this,ge).current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0},...this.contentAttachment})));this.opts=t,this.root=e,this.attachment=K(t.ref,r=>this.root.viewportNode=r)}static create(t){return new je(t,he.get())}get props(){return o(n(this,Dt))}set props(t){f(n(this,Dt),t)}get contentProps(){return o(n(this,Et))}set contentProps(t){f(n(this,Et),t)}};ge=new WeakMap,ve=new WeakMap,Dt=new WeakMap,Et=new WeakMap;let Re=je;var Rt,Vt;const qe=class qe{constructor(t,e){m(this,"opts");m(this,"root");d(this,Rt,y(()=>this.opts.orientation.current==="horizontal"));d(this,Vt,T(!1));this.opts=t,this.root=e,ur(()=>this.isHorizontal,r=>r?(this.root.scrollbarXEnabled=!0,()=>{this.root.scrollbarXEnabled=!1}):(this.root.scrollbarYEnabled=!0,()=>{this.root.scrollbarYEnabled=!1}))}static create(t){return ue.set(new qe(t,he.get()))}get isHorizontal(){return o(n(this,Rt))}set isHorizontal(t){f(n(this,Rt),t)}get hasThumb(){return o(n(this,Vt))}set hasThumb(t){f(n(this,Vt),t,!0)}};Rt=new WeakMap,Vt=new WeakMap;let Ve=qe;var Mt,Wt;const Ge=class Ge{constructor(t){m(this,"scrollbar");m(this,"root");d(this,Mt,T(!1));d(this,Wt,y(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root,X(()=>{const e=this.root.scrollAreaNode,r=this.root.opts.scrollHideDelay.current;let i=0;if(!e)return;const l=()=>{this.root.domContext.clearTimeout(i),ht(()=>this.isVisible=!0)},a=()=>{i&&this.root.domContext.clearTimeout(i),i=this.root.domContext.setTimeout(()=>{ht(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},r)},c=Ir(ut(e,"pointerenter",l),ut(e,"pointerleave",a));return()=>{this.root.domContext.getWindow().clearTimeout(i),c()}})}static create(){return new Ge(ue.get())}get isVisible(){return o(n(this,Mt))}set isVisible(t){f(n(this,Mt),t,!0)}get props(){return o(n(this,Wt))}set props(t){f(n(this,Wt),t)}};Mt=new WeakMap,Wt=new WeakMap;let Me=Ge;var At,Ht;const Je=class Je{constructor(t){m(this,"scrollbar");m(this,"root");m(this,"machine",new Qr("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}));d(this,At,y(()=>this.machine.state.current==="hidden"));d(this,Ht,y(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave})));this.scrollbar=t,this.root=t.root;const e=we(()=>this.machine.dispatch("SCROLL_END"),100);X(()=>{const r=this.machine.state.current,i=this.root.opts.scrollHideDelay.current;if(r==="idle"){const l=this.root.domContext.setTimeout(()=>this.machine.dispatch("HIDE"),i);return()=>this.root.domContext.clearTimeout(l)}}),X(()=>{const r=this.root.viewportNode;if(!r)return;const i=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let l=r[i];return ut(r,"scroll",()=>{const u=r[i];l!==u&&(this.machine.dispatch("SCROLL"),e()),l=u})}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}static create(){return new Je(ue.get())}get isHidden(){return o(n(this,At))}set isHidden(t){f(n(this,At),t)}onpointerenter(t){this.machine.dispatch("POINTER_ENTER")}onpointerleave(t){this.machine.dispatch("POINTER_LEAVE")}get props(){return o(n(this,Ht))}set props(t){f(n(this,Ht),t)}};At=new WeakMap,Ht=new WeakMap;let We=Je;var Lt,Ot;const Qe=class Qe{constructor(t){m(this,"scrollbar");m(this,"root");d(this,Lt,T(!1));d(this,Ot,y(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root;const e=we(()=>{const r=this.root.viewportNode;if(!r)return;const i=r.offsetWidth<r.scrollWidth,l=r.offsetHeight<r.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?i:l},10);new at(()=>this.root.viewportNode,e),new at(()=>this.root.contentNode,e)}static create(){return new Qe(ue.get())}get isVisible(){return o(n(this,Lt))}set isVisible(t){f(n(this,Lt),t,!0)}get props(){return o(n(this,Ot))}set props(t){f(n(this,Ot),t)}};Lt=new WeakMap,Ot=new WeakMap;let pe=Qe;var kt,Xt,Ut,Yt,$t,It;const Ze=class Ze{constructor(t){m(this,"scrollbar");m(this,"root");d(this,kt,T(null));d(this,Xt,T(0));d(this,Ut,T({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}));d(this,Yt,y(()=>pr(this.sizes.viewport,this.sizes.content)));d(this,$t,y(()=>this.thumbRatio>0&&this.thumbRatio<1));d(this,It,T(""));this.scrollbar=t,this.root=t.root,X(()=>{this.scrollbar.hasThumb=this.hasThumb}),X(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}static create(){return Pe.set(new Ze(ue.get()))}get thumbNode(){return o(n(this,kt))}set thumbNode(t){f(n(this,kt),t,!0)}get pointerOffset(){return o(n(this,Xt))}set pointerOffset(t){f(n(this,Xt),t,!0)}get sizes(){return o(n(this,Ut))}set sizes(t){f(n(this,Ut),t)}get thumbRatio(){return o(n(this,Yt))}set thumbRatio(t){f(n(this,Yt),t)}get hasThumb(){return o(n(this,$t))}set hasThumb(t){f(n(this,$t),t)}get prevTransformStyle(){return o(n(this,It))}set prevTransformStyle(t){f(n(this,It),t,!0)}setSizes(t){this.sizes=t}getScrollPosition(t,e){return Zr({pointerPos:t,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:e})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(t){this.pointerOffset=t}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollLeft,r=`translate3d(${hr({scrollPos:t,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}xOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=t)}xOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(t,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollTop,r=`translate3d(0, ${hr({scrollPos:t,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}yOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=t)}yOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(t,this.root.opts.dir.current))}};kt=new WeakMap,Xt=new WeakMap,Ut=new WeakMap,Yt=new WeakMap,$t=new WeakMap,It=new WeakMap;let Ae=Ze;var Ft,Bt,jt;const Ke=class Ke{constructor(t,e){m(this,"opts");m(this,"scrollbarVis");m(this,"root");m(this,"scrollbar");m(this,"attachment");d(this,Ft,T());m(this,"onThumbPointerDown",t=>{this.scrollbarVis.onThumbPointerDown(t.x)});m(this,"onDragScroll",t=>{this.scrollbarVis.xOnDragScroll(t.x)});m(this,"onThumbPointerUp",()=>{this.scrollbarVis.onThumbPointerUp()});m(this,"onThumbPositionChange",()=>{this.scrollbarVis.xOnThumbPositionChange()});m(this,"onWheelScroll",(t,e)=>{if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollLeft+t.deltaX;this.scrollbarVis.xOnWheelScroll(r),mr(r,e)&&t.preventDefault()});m(this,"onResize",()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:be(this.computedStyle.paddingLeft),paddingEnd:be(this.computedStyle.paddingRight)}})});d(this,Bt,y(()=>ye(this.scrollbarVis.sizes)));d(this,jt,y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`},...this.attachment})));this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=K(this.scrollbar.opts.ref,r=>this.root.scrollbarXNode=r),X(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),X(()=>{this.onResize()})}static create(t){return Ie.set(new Ke(t,Pe.get()))}get computedStyle(){return o(n(this,Ft))}set computedStyle(t){f(n(this,Ft),t,!0)}get thumbSize(){return o(n(this,Bt))}set thumbSize(t){f(n(this,Bt),t)}get props(){return o(n(this,jt))}set props(t){f(n(this,jt),t)}};Ft=new WeakMap,Bt=new WeakMap,jt=new WeakMap;let He=Ke;var qt,Gt,Jt;const tr=class tr{constructor(t,e){m(this,"opts");m(this,"scrollbarVis");m(this,"root");m(this,"scrollbar");m(this,"attachment");d(this,qt,T());d(this,Gt,y(()=>ye(this.scrollbarVis.sizes)));d(this,Jt,y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{top:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`},...this.attachment})));this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=K(this.scrollbar.opts.ref,r=>this.root.scrollbarYNode=r),X(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),X(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}static create(t){return Ie.set(new tr(t,Pe.get()))}get computedStyle(){return o(n(this,qt))}set computedStyle(t){f(n(this,qt),t,!0)}onThumbPointerDown(t){this.scrollbarVis.onThumbPointerDown(t.y)}onDragScroll(t){this.scrollbarVis.yOnDragScroll(t.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(t,e){if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollTop+t.deltaY;this.scrollbarVis.yOnWheelScroll(r),mr(r,e)&&t.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:be(this.computedStyle.paddingTop),paddingEnd:be(this.computedStyle.paddingBottom)}})}get thumbSize(){return o(n(this,Gt))}set thumbSize(t){f(n(this,Gt),t)}get props(){return o(n(this,Jt))}set props(t){f(n(this,Jt),t)}};qt=new WeakMap,Gt=new WeakMap,Jt=new WeakMap;let Le=tr;var Qt,Zt,Kt,te,ke,ee;const er=class er{constructor(t){d(this,te);m(this,"scrollbarState");m(this,"root");m(this,"scrollbarVis");m(this,"scrollbar");d(this,Qt,T(null));d(this,Zt,T(""));m(this,"handleResize");m(this,"handleThumbPositionChange");m(this,"handleWheelScroll");m(this,"handleThumbPointerDown");m(this,"handleThumbPointerUp");d(this,Kt,y(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport));d(this,ee,y(()=>Y({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[ce.scrollbar]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup,onlostpointercapture:this.onlostpointercapture})));this.scrollbarState=t,this.root=t.root,this.scrollbarVis=t.scrollbarVis,this.scrollbar=t.scrollbarVis.scrollbar,this.handleResize=we(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,X(()=>{const e=this.maxScrollPos,r=this.scrollbar.opts.ref.current;this.root.viewportNode;const i=a=>{const c=a.target;r?.contains(c)&&this.handleWheelScroll(a,e)};return ut(this.root.domContext.getDocument(),"wheel",i,{passive:!1})}),Lr(()=>{this.scrollbarVis.sizes,ht(()=>this.handleThumbPositionChange())}),new at(()=>this.scrollbar.opts.ref.current,this.handleResize),new at(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onlostpointercapture=this.onlostpointercapture.bind(this)}static create(){return fr.set(new er(Ie.get()))}get rect(){return o(n(this,Qt))}set rect(t){f(n(this,Qt),t)}get prevWebkitUserSelect(){return o(n(this,Zt))}set prevWebkitUserSelect(t){f(n(this,Zt),t,!0)}get maxScrollPos(){return o(n(this,Kt))}set maxScrollPos(t){f(n(this,Kt),t)}handleDragScroll(t){if(!this.rect)return;const e=t.clientX-this.rect.left,r=t.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:e,y:r})}onpointerdown(t){if(t.button!==0)return;t.target.setPointerCapture(t.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=this.root.domContext.getDocument().body.style.webkitUserSelect,this.root.domContext.getDocument().body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(t)}onpointermove(t){this.handleDragScroll(t)}onpointerup(t){const e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),et(this,te,ke).call(this)}onlostpointercapture(t){et(this,te,ke).call(this)}get props(){return o(n(this,ee))}set props(t){f(n(this,ee),t)}};Qt=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,te=new WeakSet,ke=function(){this.rect!==null&&(this.root.domContext.getDocument().body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null)},ee=new WeakMap;let Oe=er;var re,G,Se,oe;const rr=class rr{constructor(t,e){m(this,"opts");m(this,"scrollbarState");m(this,"attachment");d(this,re);d(this,G,T());d(this,Se,we(()=>{o(n(this,G))&&(o(n(this,G))(),f(n(this,G),void 0))},100));d(this,oe,y(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[ce.thumb]:"",...this.attachment})));this.opts=t,this.scrollbarState=e,F(this,re,e.root),this.attachment=K(this.opts.ref,r=>this.scrollbarState.scrollbarVis.thumbNode=r),X(()=>{const r=n(this,re).viewportNode;if(!r)return;const i=()=>{if(n(this,Se).call(this),!o(n(this,G))){const a=Kr(r,this.scrollbarState.handleThumbPositionChange);f(n(this,G),a,!0),this.scrollbarState.handleThumbPositionChange()}};return ht(()=>this.scrollbarState.handleThumbPositionChange()),ut(r,"scroll",i)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(t){return new rr(t,fr.get())}onpointerdowncapture(t){const e=t.target;if(!e)return;const r=e.getBoundingClientRect(),i=t.clientX-r.left,l=t.clientY-r.top;this.scrollbarState.handleThumbPointerDown({x:i,y:l})}onpointerup(t){this.scrollbarState.handleThumbPointerUp()}get props(){return o(n(this,oe))}set props(t){f(n(this,oe),t)}};re=new WeakMap,G=new WeakMap,Se=new WeakMap,oe=new WeakMap;let Xe=rr;var ot,st,se,ne;const or=class or{constructor(t,e){m(this,"opts");m(this,"root");m(this,"attachment");d(this,ot,T(0));d(this,st,T(0));d(this,se,y(()=>!!(o(n(this,ot))&&o(n(this,st)))));d(this,ne,y(()=>({id:this.opts.id.current,style:{width:o(n(this,ot)),height:o(n(this,st)),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[ce.corner]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=K(this.opts.ref),new at(()=>this.root.scrollbarXNode,()=>{const r=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=r,f(n(this,st),r,!0)}),new at(()=>this.root.scrollbarYNode,()=>{const r=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=r,f(n(this,ot),r,!0)})}static create(t){return new or(t,he.get())}get hasSize(){return o(n(this,se))}set hasSize(t){f(n(this,se),t)}get props(){return o(n(this,ne))}set props(t){f(n(this,ne),t)}};ot=new WeakMap,st=new WeakMap,se=new WeakMap,ne=new WeakMap;let Ue=or;function be(s){return s?Number.parseInt(s,10):0}function pr(s,t){const e=s/t;return Number.isNaN(e)?0:e}function ye(s){const t=pr(s.viewport,s.content),e=s.scrollbar.paddingStart+s.scrollbar.paddingEnd,r=(s.scrollbar.size-e)*t;return Math.max(r,18)}function Zr({pointerPos:s,pointerOffset:t,sizes:e,dir:r="ltr"}){const i=ye(e),l=i/2,a=t||l,c=i-a,u=e.scrollbar.paddingStart+a,p=e.scrollbar.size-e.scrollbar.paddingEnd-c,h=e.content-e.viewport,P=r==="ltr"?[0,h]:[h*-1,0];return br([u,p],P)(s)}function hr({scrollPos:s,sizes:t,dir:e="ltr"}){const r=ye(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-i,a=t.content-t.viewport,c=l-r,u=e==="ltr"?[0,a]:[a*-1,0],p=Jr(s,u[0],u[1]);return br([0,a],[0,c])(p)}function br(s,t){return e=>{if(s[0]===s[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(s[1]-s[0]);return t[0]+r*(e-s[0])}}function mr(s,t){return s>0&&s<t}function Kr(s,t){let e={left:s.scrollLeft,top:s.scrollTop},r=0;const i=Fr(s);return(function l(){const a={left:s.scrollLeft,top:s.scrollTop},c=e.left!==a.left,u=e.top!==a.top;(c||u)&&t(),e=a,r=i.requestAnimationFrame(l)})(),()=>i.cancelAnimationFrame(r)}var to=new Set(["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]),eo=tt("<div><!></div>");function gr(s,t){const e=ie();if(new.target)return V({component:gr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"type",7,"hover"),a=v(t,"dir",7,"ltr"),c=v(t,"scrollHideDelay",7,600),u=v(t,"children",7),p=v(t,"child",7),h=k(t,to);const P=Ee.create({type:D(()=>l()),dir:D(()=>a()),scrollHideDelay:D(()=>c()),id:D(()=>i()),ref:D(()=>r(),_=>r(_))}),w=y(()=>Y(h,P.props));var x={get ref(){return r()},set ref(_=null){r(_),S()},get id(){return i()},set id(_=j(e)){i(_),S()},get type(){return l()},set type(_="hover"){l(_),S()},get dir(){return a()},set dir(_="ltr"){a(_),S()},get scrollHideDelay(){return c()},set scrollHideDelay(_=600){c(_),S()},get children(){return u()},set children(_){u(_),S()},get child(){return p()},set child(_){p(_),S()},$set:M,$on:(_,$)=>W(t,_,$)},g=O(),C=E(g);{var b=_=>{var $=O(),N=E($);U(N,p,()=>({props:o(w)})),z(_,$)},R=_=>{var $=eo();lt($,()=>({...o(w)}));var N=nt($);U(N,()=>u()??J),it($),z(_,$)};B(C,_=>{p()?_(b):_(R,-1)})}return z(s,g),H(x)}var ro=new Set(["$$slots","$$events","$$legacy","ref","id","children"]),oo=tt("<div><div><!></div></div>");function vr(s,t){const e=ie();if(new.target)return V({component:vr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"children",7),a=k(t,ro);const c=Re.create({id:D(()=>i()),ref:D(()=>r(),g=>r(g))}),u=y(()=>Y(a,c.props)),p=y(()=>Y({},c.contentProps));var h={get ref(){return r()},set ref(g=null){r(g),S()},get id(){return i()},set id(g=j(e)){i(g),S()},get children(){return l()},set children(g){l(g),S()},$set:M,$on:(g,C)=>W(t,g,C)},P=oo();lt(P,()=>({...o(u)}));var w=nt(P);lt(w,()=>({...o(p)}));var x=nt(w);return U(x,()=>l()??J),it(w),it(P),z(s,P),H(h)}var so=new Set(["$$slots","$$events","$$legacy","child","children"]),no=tt("<div><!></div>");function Fe(s,t){if(new.target)return V({component:Fe,...s});A(t,!0);let e=v(t,"child",7),r=v(t,"children",7),i=k(t,so);const l=Oe.create(),a=y(()=>Y(i,l.props));var c={get child(){return e()},set child(w){e(w),S()},get children(){return r()},set children(w){r(w),S()},$set:M,$on:(w,x)=>W(t,w,x)},u=O(),p=E(u);{var h=w=>{var x=O(),g=E(x);U(g,e,()=>({props:o(a)})),z(w,x)},P=w=>{var x=no();lt(x,()=>({...o(a)}));var g=nt(x);U(g,()=>r()??J),it(x),z(w,x)};B(p,w=>{e()?w(h):w(P,-1)})}return z(s,u),H(c)}var io=new Set(["$$slots","$$events","$$legacy"]);function Sr(s,t){if(new.target)return V({component:Sr,...s});A(t,!0);let e=k(t,io);const r=new $e,i=He.create({mounted:D(()=>r.current)}),l=y(()=>Y(e,i.props));var a={$set:M,$on:(c,u)=>W(t,c,u)};return Fe(s,L(()=>o(l))),H(a)}var lo=new Set(["$$slots","$$events","$$legacy"]);function wr(s,t){if(new.target)return V({component:wr,...s});A(t,!0);let e=k(t,lo);const r=new $e,i=Le.create({mounted:D(()=>r.current)}),l=y(()=>Y(e,i.props));var a={$set:M,$on:(c,u)=>W(t,c,u)};return Fe(s,L(()=>o(l))),H(a)}var ao=new Set(["$$slots","$$events","$$legacy"]);function de(s,t){if(new.target)return V({component:de,...s});A(t,!0);let e=k(t,ao);const r=Ae.create();var i={$set:M,$on:(p,h)=>W(t,p,h)},l=O(),a=E(l);{var c=p=>{Sr(p,L(()=>e))},u=p=>{wr(p,L(()=>e))};B(a,p=>{r.scrollbar.opts.orientation.current==="horizontal"?p(c):p(u,-1)})}return z(s,l),H(i)}var co=new Set(["$$slots","$$events","$$legacy","forceMount"]);function Pr(s,t){if(new.target)return V({component:Pr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,co);const i=pe.create(),l=y(()=>Y(r,i.props));var a={get forceMount(){return e()},set forceMount(c=!1){e(c),S()},$set:M,$on:(c,u)=>W(t,c,u)};{const c=p=>{de(p,L(()=>o(l)))};let u=y(()=>e()||i.isVisible);ae(s,{get open(){return o(u)},get ref(){return i.scrollbar.opts.ref},presence:c,$$slots:{presence:!0}})}return H(a)}var ho=new Set(["$$slots","$$events","$$legacy","forceMount"]);function yr(s,t){if(new.target)return V({component:yr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,ho);const i=We.create(),l=y(()=>Y(r,i.props));var a={get forceMount(){return e()},set forceMount(c=!1){e(c),S()},$set:M,$on:(c,u)=>W(t,c,u)};{const c=p=>{de(p,L(()=>o(l)))};let u=y(()=>e()||!i.isHidden);ae(s,L(()=>o(l),{get open(){return o(u)},get ref(){return i.scrollbar.opts.ref},presence:c,$$slots:{presence:!0}}))}return H(a)}var uo=new Set(["$$slots","$$events","$$legacy","forceMount"]);function xr(s,t){if(new.target)return V({component:xr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,uo);const i=Me.create(),l=pe.create(),a=y(()=>Y(r,i.props,l.props,{"data-state":i.isVisible?"visible":"hidden"})),c=y(()=>e()||i.isVisible&&l.isVisible);var u={get forceMount(){return e()},set forceMount(p=!1){e(p),S()},$set:M,$on:(p,h)=>W(t,p,h)};return ae(s,{get open(){return o(c)},get ref(){return l.scrollbar.opts.ref},presence:h=>{de(h,L(()=>o(a)))},$$slots:{presence:!0}}),H(u)}var fo=new Set(["$$slots","$$events","$$legacy","ref","id","orientation"]);function _r(s,t){const e=ie();if(new.target)return V({component:_r,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"orientation",7),a=k(t,fo);const c=Ve.create({orientation:D(()=>l()),id:D(()=>i()),ref:D(()=>r(),b=>r(b))}),u=y(()=>c.root.opts.type.current);var p={get ref(){return r()},set ref(b=null){r(b),S()},get id(){return i()},set id(b=j(e)){i(b),S()},get orientation(){return l()},set orientation(b){l(b),S()},$set:M,$on:(b,R)=>W(t,b,R)},h=O(),P=E(h);{var w=b=>{xr(b,L(()=>a,{get id(){return i()}}))},x=b=>{yr(b,L(()=>a,{get id(){return i()}}))},g=b=>{Pr(b,L(()=>a,{get id(){return i()}}))},C=b=>{de(b,L(()=>a,{get id(){return i()}}))};B(P,b=>{o(u)==="hover"?b(w):o(u)==="scroll"?b(x,1):o(u)==="auto"?b(g,2):o(u)==="always"&&b(C,3)})}return z(s,h),H(p)}var po=new Set(["$$slots","$$events","$$legacy","ref","id","child","children","present"]),bo=tt("<div><!></div>");function Tr(s,t){if(new.target)return V({component:Tr,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"id",7),i=v(t,"child",7),l=v(t,"children",7),a=v(t,"present",7),c=k(t,po);const u=new $e,p=Xe.create({id:D(()=>r()),ref:D(()=>e(),b=>e(b)),mounted:D(()=>u.current)}),h=y(()=>Y(c,p.props,{style:{hidden:!a()}}));var P={get ref(){return e()},set ref(b=null){e(b),S()},get id(){return r()},set id(b){r(b),S()},get child(){return i()},set child(b){i(b),S()},get children(){return l()},set children(b){l(b),S()},get present(){return a()},set present(b){a(b),S()},$set:M,$on:(b,R)=>W(t,b,R)},w=O(),x=E(w);{var g=b=>{var R=O(),_=E(R);U(_,i,()=>({props:o(h)})),z(b,R)},C=b=>{var R=bo();lt(R,()=>({...o(h)}));var _=nt(R);U(_,()=>l()??J),it(R),z(b,R)};B(x,b=>{i()?b(g):b(C,-1)})}return z(s,w),H(P)}var mo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount"]);function Nr(s,t){const e=ie();if(new.target)return V({component:Nr,...s});A(t,!0);let r=v(t,"id",23,()=>j(e)),i=v(t,"ref",15,null),l=v(t,"forceMount",7,!1),a=k(t,mo);const c=Pe.get();var u={get id(){return r()},set id(p=j(e)){r(p),S()},get ref(){return i()},set ref(p=null){i(p),S()},get forceMount(){return l()},set forceMount(p=!1){l(p),S()},$set:M,$on:(p,h)=>W(t,p,h)};{const p=(P,w)=>{let x=()=>(w?.()).present;Tr(P,L(()=>a,{get id(){return r()},get present(){return x()},get ref(){return i()},set ref(g){i(g)}}))};let h=y(()=>l()||c.hasThumb);ae(s,{get open(){return o(h)},get ref(){return c.scrollbar.opts.ref},presence:p,$$slots:{presence:!0}})}return H(u)}var go=new Set(["$$slots","$$events","$$legacy","ref","id","children","child"]),vo=tt("<div><!></div>");function Cr(s,t){if(new.target)return V({component:Cr,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"id",7),i=v(t,"children",7),l=v(t,"child",7),a=k(t,go);const c=Ue.create({id:D(()=>r()),ref:D(()=>e(),g=>e(g))}),u=y(()=>Y(a,c.props));var p={get ref(){return e()},set ref(g=null){e(g),S()},get id(){return r()},set id(g){r(g),S()},get children(){return i()},set children(g){i(g),S()},get child(){return l()},set child(g){l(g),S()},$set:M,$on:(g,C)=>W(t,g,C)},h=O(),P=E(h);{var w=g=>{var C=O(),b=E(C);U(b,l,()=>({props:o(u)})),z(g,C)},x=g=>{var C=vo();lt(C,()=>({...o(u)}));var b=nt(C);U(b,()=>i()??J),it(C),z(g,C)};B(P,g=>{l()?g(w):g(x,-1)})}return z(s,h),H(p)}var So=new Set(["$$slots","$$events","$$legacy","ref","id"]);function zr(s,t){const e=ie();if(new.target)return V({component:zr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=k(t,So);const a=he.get(),c=y(()=>!!(a.scrollbarXNode&&a.scrollbarYNode)),u=y(()=>a.opts.type.current!=="scroll"&&o(c));var p={get ref(){return r()},set ref(x=null){r(x),S()},get id(){return i()},set id(x=j(e)){i(x),S()},$set:M,$on:(x,g)=>W(t,x,g)},h=O(),P=E(h);{var w=x=>{Cr(x,L(()=>l,{get id(){return i()},get ref(){return r()},set ref(g){r(g)}}))};B(P,x=>{o(u)&&x(w)})}return z(s,h),H(p)}var wo=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","children"]),Po=tt("<!> <!>",1);function Ye(s,t){if(new.target)return V({component:Ye,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"class",7),i=v(t,"orientation",7,"vertical"),l=v(t,"children",7),a=k(t,wo);var c={get ref(){return e()},set ref(h=null){e(h),S()},get class(){return r()},set class(h){r(h),S()},get orientation(){return i()},set orientation(h="vertical"){i(h),S()},get children(){return l()},set children(h){l(h),S()},$set:M,$on:(h,P)=>W(t,h,P)},u=O(),p=E(u);return ct(p,()=>_r,(h,P)=>{P(h,L({"data-slot":"scroll-area-scrollbar",get orientation(){return i()},get class(){return r()},forceMount:!0},()=>a,{get ref(){return e()},set ref(w){e(w)},children:(w,x)=>{var g=Po(),C=E(g);U(C,()=>l()??J);var b=fe(C,2);ct(b,()=>Nr,(R,_)=>{_(R,{"data-slot":"scroll-area-thumb"})}),z(w,g)},$$slots:{default:!0}}))}),z(s,u),H(c)}var yo=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","scrollbarXClasses","scrollbarYClasses","fadeEdges","children"]),xo=tt("<!> <!> <!> <!>",1);function _o(s,t){if(new.target)return V({component:_o,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"class",7),i=v(t,"orientation",7,"vertical"),l=v(t,"scrollbarXClasses",7,""),a=v(t,"scrollbarYClasses",7,""),c=v(t,"fadeEdges",7,!0),u=v(t,"children",7),p=k(t,yo),h=T(null),P=T(!0),w=T(!0),x=T(!0),g=T(!0);function C(){o(h)&&(f(P,o(h).scrollTop<=0),f(w,o(h).scrollTop+o(h).clientHeight>=o(h).scrollHeight-1),f(x,o(h).scrollLeft<=0),f(g,o(h).scrollLeft+o(h).clientWidth>=o(h).scrollWidth-1))}let b=y(()=>{if(!c())return;const N=[];return i()!=="horizontal"&&(!o(P)||!o(w))&&N.push(`linear-gradient(to bottom, ${o(P)?"black 0":"transparent 0, black 12px"}, ${o(w)?"black 100%":"black calc(100% - 12px), transparent 100%"})`),i()!=="vertical"&&(!o(x)||!o(g))&&N.push(`linear-gradient(to right, ${o(x)?"black 0":"transparent 0, black 12px"}, ${o(g)?"black 100%":"black calc(100% - 12px), transparent 100%"})`),N.length?N.join(", "):void 0});X(()=>{if(!o(h))return;C();const N=new ResizeObserver(C);return N.observe(o(h)),o(h).firstElementChild&&N.observe(o(h).firstElementChild),()=>N.disconnect()});var R={get ref(){return e()},set ref(N=null){e(N),S()},get class(){return r()},set class(N){r(N),S()},get orientation(){return i()},set orientation(N="vertical"){i(N),S()},get scrollbarXClasses(){return l()},set scrollbarXClasses(N=""){l(N),S()},get scrollbarYClasses(){return a()},set scrollbarYClasses(N=""){a(N),S()},get fadeEdges(){return c()},set fadeEdges(N=!0){c(N),S()},get children(){return u()},set children(N){u(N),S()},$set:M,$on:(N,xe)=>W(t,N,xe)},_=O(),$=E(_);{let N=y(()=>Br("relative overflow-hidden",r()));ct($,()=>gr,(xe,Dr)=>{Dr(xe,L({"data-slot":"scroll-area",get"data-orientation"(){return i()},get class(){return o(N)},type:"scroll"},()=>p,{get ref(){return e()},set ref(_e){e(_e)},children:(_e,No)=>{var sr=xo(),nr=E(sr);{let I=y(()=>o(b)?`mask-image: ${o(b)}; -webkit-mask-image: ${o(b)};`:void 0);ct(nr,()=>vr,(Te,Mr)=>{Mr(Te,{"data-slot":"scroll-area-viewport",tabindex:0,class:"size-full rounded-[inherit] transition-[mask-image] duration-(--motion-fast) focus-visible:outline focus-visible:-outline-offset-1 motion-reduce:transition-none",get style(){return o(I)},onscroll:C,get ref(){return o(h)},set ref(Ne){f(h,Ne,!0)},children:(Ne,Co)=>{var ar=O(),Wr=E(ar);U(Wr,()=>u()??J),z(Ne,ar)},$$slots:{default:!0}})})}var ir=fe(nr,2);{var Er=I=>{Ye(I,{orientation:"vertical",get class(){return a()}})};B(ir,I=>{(i()==="vertical"||i()==="both")&&I(Er)})}var lr=fe(ir,2);{var Rr=I=>{Ye(I,{orientation:"horizontal",get class(){return l()}})};B(lr,I=>{(i()==="horizontal"||i()==="both")&&I(Rr)})}var Vr=fe(lr,2);ct(Vr,()=>zr,(I,Te)=>{Te(I,{})}),z(_e,sr)},$$slots:{default:!0}}))})}return z(s,_),H(R)}const To=[{id:"scroll-area-orientations",title:"Scroll area orientations and overflow",states:["vertical","horizontal","both","keyboard-focus","long-content","no-overflow","scrollbar-resting","scrollbar-scrolling","scrollbar-hover","native-opt-out","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];jr({id:"scroll-area",source:"src/lib/components/ui/scroll-area/index.ts",publicImport:"$lib/components/ui/scroll-area",legacyImports:[],exports:["Root","ScrollArea","ScrollAreaScrollbar","Scrollbar","scrollAreaMetadata"],usage:`<script lang="ts">
|
|
1
|
+
var Ar=Object.defineProperty;var cr=s=>{throw TypeError(s)};var Hr=(s,t,e)=>t in s?Ar(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var m=(s,t,e)=>Hr(s,typeof t!="symbol"?t+"":t,e),Ce=(s,t,e)=>t.has(s)||cr("Cannot "+e);var n=(s,t,e)=>(Ce(s,t,"read from private field"),e?e.call(s):t.get(s)),d=(s,t,e)=>t.has(s)?cr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),F=(s,t,e,r)=>(Ce(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e),et=(s,t,e)=>(Ce(s,t,"access private method"),e);import{t as V,bq as v,by as M,b as W,br as k,bt as L}from"./BUAFIktJ.js";import{aD as o,bH as f,bV as T,c9 as y,ca as X,c5 as ht,bs as A,a7 as O,ay as E,W as z,bn as H,aA as S,bf as J,bi as ut,cb as Lr,bo as ie,a5 as nt,bA as it,aB as tt,bS as fe}from"./DYhIMPy1.js";import{i as B}from"./Bvd0DfwC.js";import{s as U}from"./CnTu6sc6.js";import{c as ct}from"./BgOj6lPu.js";import{aL as Or,e as kr,aU as Xr,a$ as ur,av as D,aX as ze,h as le,aZ as Ur,an as K,D as Yr,ay as $r,aA as Ir,aQ as Y,aJ as Fr,az as j}from"./hwFphMxp.js";import{b as lt,e as Br,p as jr}from"./COO6ldt4.js";function qr(s,t){if(Or(s)){const r=s();return r===void 0?t:r}return s===void 0?t:s}function we(s,t){let e=T(null);const r=y(()=>qr(t,250));function i(...l){if(o(e))o(e).timeout&&clearTimeout(o(e).timeout);else{let a,c;const u=new Promise((p,h)=>{a=p,c=h});f(e,{timeout:null,runner:null,promise:u,resolve:a,reject:c},!0)}return o(e).runner=async()=>{if(!o(e))return;const a=o(e);f(e,null);try{a.resolve(await s.apply(this,l))}catch(c){a.reject(c)}},o(e).timeout=setTimeout(o(e).runner,o(r)),o(e).promise}return i.cancel=async()=>{(!o(e)||o(e).timeout===null)&&(await new Promise(l=>setTimeout(l,0)),!o(e)||o(e).timeout===null)||(clearTimeout(o(e).timeout),o(e).reject("Cancelled"),f(e,null))},i.runScheduledNow=async()=>{(!o(e)||!o(e).timeout)&&(await new Promise(l=>setTimeout(l,0)),!o(e)||!o(e).timeout)||(clearTimeout(o(e).timeout),o(e).timeout=null,await o(e).runner?.())},Object.defineProperty(i,"pending",{enumerable:!0,get(){return!!o(e)?.timeout}}),i}var rt;class $e{constructor(){d(this,rt,T(!1));X(()=>(ht(()=>f(n(this,rt),!0)),()=>{f(n(this,rt),!1)}))}get current(){return o(n(this,rt))}}rt=new WeakMap;var dt,ft;class at{constructor(t,e){d(this,dt);d(this,ft);F(this,dt,t),F(this,ft,e),this.handler=this.handler.bind(this),X(this.handler)}handler(){let t=0;const e=n(this,dt).call(this);if(!e)return;const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n(this,ft))});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}dt=new WeakMap,ft=new WeakMap;var pt,Q,bt,Z,q,mt,gt,De;class Gr{constructor(t){d(this,gt);m(this,"opts");m(this,"present");d(this,pt);d(this,Q,T(!1));d(this,bt,!1);d(this,Z,T(void 0));d(this,q,null);d(this,mt,y(()=>o(n(this,Q))));this.opts=t,this.present=this.opts.open,f(n(this,Q),t.open.current,!0),F(this,pt,new kr({ref:this.opts.ref,afterTick:this.opts.open})),Xr(()=>et(this,gt,De).call(this)),ur(()=>this.present.current,e=>{if(!n(this,bt)){F(this,bt,!0);return}et(this,gt,De).call(this),e&&f(n(this,Q),!0),f(n(this,Z),e?"starting":"ending",!0),e&&F(this,q,window.requestAnimationFrame(()=>{F(this,q,null),this.present.current&&f(n(this,Z),void 0)})),n(this,pt).run(()=>{e===this.present.current&&(e||f(n(this,Q),!1),f(n(this,Z),void 0))})})}get isPresent(){return o(n(this,mt))}set isPresent(t){f(n(this,mt),t)}get transitionStatus(){return o(n(this,Z))}}pt=new WeakMap,Q=new WeakMap,bt=new WeakMap,Z=new WeakMap,q=new WeakMap,mt=new WeakMap,gt=new WeakSet,De=function(){n(this,q)!==null&&(window.cancelAnimationFrame(n(this,q)),F(this,q,null))};function ae(s,t){if(new.target)return V({component:ae,...s});A(t,!0);let e=v(t,"open",7),r=v(t,"forceMount",7),i=v(t,"presence",7),l=v(t,"ref",7);const a=new Gr({open:D(()=>e()),ref:l()});var c={get open(){return e()},set open(P){e(P),S()},get forceMount(){return r()},set forceMount(P){r(P),S()},get presence(){return i()},set presence(P){i(P),S()},get ref(){return l()},set ref(P){l(P),S()},$set:M,$on:(P,w)=>W(t,P,w)},u=O(),p=E(u);{var h=P=>{var w=O(),x=E(w);U(x,()=>i()??J,()=>({present:a.isPresent,transitionStatus:a.transitionStatus})),z(P,w)};B(p,P=>{(r()||e()||a.isPresent)&&P(h)})}return z(s,u),H(c)}function Jr(s,t,e){return Math.min(e,Math.max(t,s))}var vt,me,dr;class Qr{constructor(t,e){d(this,me);m(this,"state");d(this,vt);this.state=ze(t),F(this,vt,e),this.dispatch=this.dispatch.bind(this)}dispatch(t){this.state.current=et(this,me,dr).call(this,t)}}vt=new WeakMap,me=new WeakSet,dr=function(t){return n(this,vt)[this.state.current][t]??this.state.current};const ce=$r({component:"scroll-area",parts:["root","viewport","corner","thumb","scrollbar"]}),he=new le("ScrollArea.Root"),ue=new le("ScrollArea.Scrollbar"),Pe=new le("ScrollArea.ScrollbarVisible"),Ie=new le("ScrollArea.ScrollbarAxis"),fr=new le("ScrollArea.ScrollbarShared");var St,wt,Pt,yt,xt,_t,Tt,Nt,Ct,zt;const Be=class Be{constructor(t){m(this,"opts");m(this,"attachment");d(this,St,T(null));d(this,wt,T(null));d(this,Pt,T(null));d(this,yt,T(null));d(this,xt,T(null));d(this,_t,T(0));d(this,Tt,T(0));d(this,Nt,T(!1));d(this,Ct,T(!1));m(this,"domContext");d(this,zt,y(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[ce.root]:"",...this.attachment})));this.opts=t,this.attachment=K(t.ref,e=>this.scrollAreaNode=e),this.domContext=new Yr(t.ref)}static create(t){return he.set(new Be(t))}get scrollAreaNode(){return o(n(this,St))}set scrollAreaNode(t){f(n(this,St),t,!0)}get viewportNode(){return o(n(this,wt))}set viewportNode(t){f(n(this,wt),t,!0)}get contentNode(){return o(n(this,Pt))}set contentNode(t){f(n(this,Pt),t,!0)}get scrollbarXNode(){return o(n(this,yt))}set scrollbarXNode(t){f(n(this,yt),t,!0)}get scrollbarYNode(){return o(n(this,xt))}set scrollbarYNode(t){f(n(this,xt),t,!0)}get cornerWidth(){return o(n(this,_t))}set cornerWidth(t){f(n(this,_t),t,!0)}get cornerHeight(){return o(n(this,Tt))}set cornerHeight(t){f(n(this,Tt),t,!0)}get scrollbarXEnabled(){return o(n(this,Nt))}set scrollbarXEnabled(t){f(n(this,Nt),t,!0)}get scrollbarYEnabled(){return o(n(this,Ct))}set scrollbarYEnabled(t){f(n(this,Ct),t,!0)}get props(){return o(n(this,zt))}set props(t){f(n(this,zt),t)}};St=new WeakMap,wt=new WeakMap,Pt=new WeakMap,yt=new WeakMap,xt=new WeakMap,_t=new WeakMap,Tt=new WeakMap,Nt=new WeakMap,Ct=new WeakMap,zt=new WeakMap;let Ee=Be;var ge,ve,Dt,Et;const je=class je{constructor(t,e){m(this,"opts");m(this,"root");m(this,"attachment");d(this,ge,ze(Ur()));d(this,ve,ze(null));m(this,"contentAttachment",K(n(this,ve),t=>this.root.contentNode=t));d(this,Dt,y(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[ce.viewport]:"",...this.attachment})));d(this,Et,y(()=>({id:n(this,ge).current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0},...this.contentAttachment})));this.opts=t,this.root=e,this.attachment=K(t.ref,r=>this.root.viewportNode=r)}static create(t){return new je(t,he.get())}get props(){return o(n(this,Dt))}set props(t){f(n(this,Dt),t)}get contentProps(){return o(n(this,Et))}set contentProps(t){f(n(this,Et),t)}};ge=new WeakMap,ve=new WeakMap,Dt=new WeakMap,Et=new WeakMap;let Re=je;var Rt,Vt;const qe=class qe{constructor(t,e){m(this,"opts");m(this,"root");d(this,Rt,y(()=>this.opts.orientation.current==="horizontal"));d(this,Vt,T(!1));this.opts=t,this.root=e,ur(()=>this.isHorizontal,r=>r?(this.root.scrollbarXEnabled=!0,()=>{this.root.scrollbarXEnabled=!1}):(this.root.scrollbarYEnabled=!0,()=>{this.root.scrollbarYEnabled=!1}))}static create(t){return ue.set(new qe(t,he.get()))}get isHorizontal(){return o(n(this,Rt))}set isHorizontal(t){f(n(this,Rt),t)}get hasThumb(){return o(n(this,Vt))}set hasThumb(t){f(n(this,Vt),t,!0)}};Rt=new WeakMap,Vt=new WeakMap;let Ve=qe;var Mt,Wt;const Ge=class Ge{constructor(t){m(this,"scrollbar");m(this,"root");d(this,Mt,T(!1));d(this,Wt,y(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root,X(()=>{const e=this.root.scrollAreaNode,r=this.root.opts.scrollHideDelay.current;let i=0;if(!e)return;const l=()=>{this.root.domContext.clearTimeout(i),ht(()=>this.isVisible=!0)},a=()=>{i&&this.root.domContext.clearTimeout(i),i=this.root.domContext.setTimeout(()=>{ht(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},r)},c=Ir(ut(e,"pointerenter",l),ut(e,"pointerleave",a));return()=>{this.root.domContext.getWindow().clearTimeout(i),c()}})}static create(){return new Ge(ue.get())}get isVisible(){return o(n(this,Mt))}set isVisible(t){f(n(this,Mt),t,!0)}get props(){return o(n(this,Wt))}set props(t){f(n(this,Wt),t)}};Mt=new WeakMap,Wt=new WeakMap;let Me=Ge;var At,Ht;const Je=class Je{constructor(t){m(this,"scrollbar");m(this,"root");m(this,"machine",new Qr("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}}));d(this,At,y(()=>this.machine.state.current==="hidden"));d(this,Ht,y(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave})));this.scrollbar=t,this.root=t.root;const e=we(()=>this.machine.dispatch("SCROLL_END"),100);X(()=>{const r=this.machine.state.current,i=this.root.opts.scrollHideDelay.current;if(r==="idle"){const l=this.root.domContext.setTimeout(()=>this.machine.dispatch("HIDE"),i);return()=>this.root.domContext.clearTimeout(l)}}),X(()=>{const r=this.root.viewportNode;if(!r)return;const i=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let l=r[i];return ut(r,"scroll",()=>{const u=r[i];l!==u&&(this.machine.dispatch("SCROLL"),e()),l=u})}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}static create(){return new Je(ue.get())}get isHidden(){return o(n(this,At))}set isHidden(t){f(n(this,At),t)}onpointerenter(t){this.machine.dispatch("POINTER_ENTER")}onpointerleave(t){this.machine.dispatch("POINTER_LEAVE")}get props(){return o(n(this,Ht))}set props(t){f(n(this,Ht),t)}};At=new WeakMap,Ht=new WeakMap;let We=Je;var Lt,Ot;const Qe=class Qe{constructor(t){m(this,"scrollbar");m(this,"root");d(this,Lt,T(!1));d(this,Ot,y(()=>({"data-state":this.isVisible?"visible":"hidden"})));this.scrollbar=t,this.root=t.root;const e=we(()=>{const r=this.root.viewportNode;if(!r)return;const i=r.offsetWidth<r.scrollWidth,l=r.offsetHeight<r.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?i:l},10);new at(()=>this.root.viewportNode,e),new at(()=>this.root.contentNode,e)}static create(){return new Qe(ue.get())}get isVisible(){return o(n(this,Lt))}set isVisible(t){f(n(this,Lt),t,!0)}get props(){return o(n(this,Ot))}set props(t){f(n(this,Ot),t)}};Lt=new WeakMap,Ot=new WeakMap;let pe=Qe;var kt,Xt,Ut,Yt,$t,It;const Ze=class Ze{constructor(t){m(this,"scrollbar");m(this,"root");d(this,kt,T(null));d(this,Xt,T(0));d(this,Ut,T({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}));d(this,Yt,y(()=>pr(this.sizes.viewport,this.sizes.content)));d(this,$t,y(()=>this.thumbRatio>0&&this.thumbRatio<1));d(this,It,T(""));this.scrollbar=t,this.root=t.root,X(()=>{this.scrollbar.hasThumb=this.hasThumb}),X(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}static create(){return Pe.set(new Ze(ue.get()))}get thumbNode(){return o(n(this,kt))}set thumbNode(t){f(n(this,kt),t,!0)}get pointerOffset(){return o(n(this,Xt))}set pointerOffset(t){f(n(this,Xt),t,!0)}get sizes(){return o(n(this,Ut))}set sizes(t){f(n(this,Ut),t)}get thumbRatio(){return o(n(this,Yt))}set thumbRatio(t){f(n(this,Yt),t)}get hasThumb(){return o(n(this,$t))}set hasThumb(t){f(n(this,$t),t)}get prevTransformStyle(){return o(n(this,It))}set prevTransformStyle(t){f(n(this,It),t,!0)}setSizes(t){this.sizes=t}getScrollPosition(t,e){return Zr({pointerPos:t,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:e})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(t){this.pointerOffset=t}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollLeft,r=`translate3d(${hr({scrollPos:t,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}xOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=t)}xOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(t,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollTop,r=`translate3d(0, ${hr({scrollPos:t,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}yOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=t)}yOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(t,this.root.opts.dir.current))}};kt=new WeakMap,Xt=new WeakMap,Ut=new WeakMap,Yt=new WeakMap,$t=new WeakMap,It=new WeakMap;let Ae=Ze;var Ft,Bt,jt;const Ke=class Ke{constructor(t,e){m(this,"opts");m(this,"scrollbarVis");m(this,"root");m(this,"scrollbar");m(this,"attachment");d(this,Ft,T());m(this,"onThumbPointerDown",t=>{this.scrollbarVis.onThumbPointerDown(t.x)});m(this,"onDragScroll",t=>{this.scrollbarVis.xOnDragScroll(t.x)});m(this,"onThumbPointerUp",()=>{this.scrollbarVis.onThumbPointerUp()});m(this,"onThumbPositionChange",()=>{this.scrollbarVis.xOnThumbPositionChange()});m(this,"onWheelScroll",(t,e)=>{if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollLeft+t.deltaX;this.scrollbarVis.xOnWheelScroll(r),mr(r,e)&&t.preventDefault()});m(this,"onResize",()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:be(this.computedStyle.paddingLeft),paddingEnd:be(this.computedStyle.paddingRight)}})});d(this,Bt,y(()=>ye(this.scrollbarVis.sizes)));d(this,jt,y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`},...this.attachment})));this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=K(this.scrollbar.opts.ref,r=>this.root.scrollbarXNode=r),X(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),X(()=>{this.onResize()})}static create(t){return Ie.set(new Ke(t,Pe.get()))}get computedStyle(){return o(n(this,Ft))}set computedStyle(t){f(n(this,Ft),t,!0)}get thumbSize(){return o(n(this,Bt))}set thumbSize(t){f(n(this,Bt),t)}get props(){return o(n(this,jt))}set props(t){f(n(this,jt),t)}};Ft=new WeakMap,Bt=new WeakMap,jt=new WeakMap;let He=Ke;var qt,Gt,Jt;const tr=class tr{constructor(t,e){m(this,"opts");m(this,"scrollbarVis");m(this,"root");m(this,"scrollbar");m(this,"attachment");d(this,qt,T());d(this,Gt,y(()=>ye(this.scrollbarVis.sizes)));d(this,Jt,y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{top:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`},...this.attachment})));this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=K(this.scrollbar.opts.ref,r=>this.root.scrollbarYNode=r),X(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),X(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}static create(t){return Ie.set(new tr(t,Pe.get()))}get computedStyle(){return o(n(this,qt))}set computedStyle(t){f(n(this,qt),t,!0)}onThumbPointerDown(t){this.scrollbarVis.onThumbPointerDown(t.y)}onDragScroll(t){this.scrollbarVis.yOnDragScroll(t.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(t,e){if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollTop+t.deltaY;this.scrollbarVis.yOnWheelScroll(r),mr(r,e)&&t.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:be(this.computedStyle.paddingTop),paddingEnd:be(this.computedStyle.paddingBottom)}})}get thumbSize(){return o(n(this,Gt))}set thumbSize(t){f(n(this,Gt),t)}get props(){return o(n(this,Jt))}set props(t){f(n(this,Jt),t)}};qt=new WeakMap,Gt=new WeakMap,Jt=new WeakMap;let Le=tr;var Qt,Zt,Kt,te,ke,ee;const er=class er{constructor(t){d(this,te);m(this,"scrollbarState");m(this,"root");m(this,"scrollbarVis");m(this,"scrollbar");d(this,Qt,T(null));d(this,Zt,T(""));m(this,"handleResize");m(this,"handleThumbPositionChange");m(this,"handleWheelScroll");m(this,"handleThumbPointerDown");m(this,"handleThumbPointerUp");d(this,Kt,y(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport));d(this,ee,y(()=>Y({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[ce.scrollbar]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup,onlostpointercapture:this.onlostpointercapture})));this.scrollbarState=t,this.root=t.root,this.scrollbarVis=t.scrollbarVis,this.scrollbar=t.scrollbarVis.scrollbar,this.handleResize=we(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,X(()=>{const e=this.maxScrollPos,r=this.scrollbar.opts.ref.current;this.root.viewportNode;const i=a=>{const c=a.target;r?.contains(c)&&this.handleWheelScroll(a,e)};return ut(this.root.domContext.getDocument(),"wheel",i,{passive:!1})}),Lr(()=>{this.scrollbarVis.sizes,ht(()=>this.handleThumbPositionChange())}),new at(()=>this.scrollbar.opts.ref.current,this.handleResize),new at(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onlostpointercapture=this.onlostpointercapture.bind(this)}static create(){return fr.set(new er(Ie.get()))}get rect(){return o(n(this,Qt))}set rect(t){f(n(this,Qt),t)}get prevWebkitUserSelect(){return o(n(this,Zt))}set prevWebkitUserSelect(t){f(n(this,Zt),t,!0)}get maxScrollPos(){return o(n(this,Kt))}set maxScrollPos(t){f(n(this,Kt),t)}handleDragScroll(t){if(!this.rect)return;const e=t.clientX-this.rect.left,r=t.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:e,y:r})}onpointerdown(t){if(t.button!==0)return;t.target.setPointerCapture(t.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=this.root.domContext.getDocument().body.style.webkitUserSelect,this.root.domContext.getDocument().body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(t)}onpointermove(t){this.handleDragScroll(t)}onpointerup(t){const e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),et(this,te,ke).call(this)}onlostpointercapture(t){et(this,te,ke).call(this)}get props(){return o(n(this,ee))}set props(t){f(n(this,ee),t)}};Qt=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,te=new WeakSet,ke=function(){this.rect!==null&&(this.root.domContext.getDocument().body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null)},ee=new WeakMap;let Oe=er;var re,G,Se,oe;const rr=class rr{constructor(t,e){m(this,"opts");m(this,"scrollbarState");m(this,"attachment");d(this,re);d(this,G,T());d(this,Se,we(()=>{o(n(this,G))&&(o(n(this,G))(),f(n(this,G),void 0))},100));d(this,oe,y(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[ce.thumb]:"",...this.attachment})));this.opts=t,this.scrollbarState=e,F(this,re,e.root),this.attachment=K(this.opts.ref,r=>this.scrollbarState.scrollbarVis.thumbNode=r),X(()=>{const r=n(this,re).viewportNode;if(!r)return;const i=()=>{if(n(this,Se).call(this),!o(n(this,G))){const a=Kr(r,this.scrollbarState.handleThumbPositionChange);f(n(this,G),a,!0),this.scrollbarState.handleThumbPositionChange()}};return ht(()=>this.scrollbarState.handleThumbPositionChange()),ut(r,"scroll",i)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(t){return new rr(t,fr.get())}onpointerdowncapture(t){const e=t.target;if(!e)return;const r=e.getBoundingClientRect(),i=t.clientX-r.left,l=t.clientY-r.top;this.scrollbarState.handleThumbPointerDown({x:i,y:l})}onpointerup(t){this.scrollbarState.handleThumbPointerUp()}get props(){return o(n(this,oe))}set props(t){f(n(this,oe),t)}};re=new WeakMap,G=new WeakMap,Se=new WeakMap,oe=new WeakMap;let Xe=rr;var ot,st,se,ne;const or=class or{constructor(t,e){m(this,"opts");m(this,"root");m(this,"attachment");d(this,ot,T(0));d(this,st,T(0));d(this,se,y(()=>!!(o(n(this,ot))&&o(n(this,st)))));d(this,ne,y(()=>({id:this.opts.id.current,style:{width:o(n(this,ot)),height:o(n(this,st)),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[ce.corner]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=K(this.opts.ref),new at(()=>this.root.scrollbarXNode,()=>{const r=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=r,f(n(this,st),r,!0)}),new at(()=>this.root.scrollbarYNode,()=>{const r=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=r,f(n(this,ot),r,!0)})}static create(t){return new or(t,he.get())}get hasSize(){return o(n(this,se))}set hasSize(t){f(n(this,se),t)}get props(){return o(n(this,ne))}set props(t){f(n(this,ne),t)}};ot=new WeakMap,st=new WeakMap,se=new WeakMap,ne=new WeakMap;let Ue=or;function be(s){return s?Number.parseInt(s,10):0}function pr(s,t){const e=s/t;return Number.isNaN(e)?0:e}function ye(s){const t=pr(s.viewport,s.content),e=s.scrollbar.paddingStart+s.scrollbar.paddingEnd,r=(s.scrollbar.size-e)*t;return Math.max(r,18)}function Zr({pointerPos:s,pointerOffset:t,sizes:e,dir:r="ltr"}){const i=ye(e),l=i/2,a=t||l,c=i-a,u=e.scrollbar.paddingStart+a,p=e.scrollbar.size-e.scrollbar.paddingEnd-c,h=e.content-e.viewport,P=r==="ltr"?[0,h]:[h*-1,0];return br([u,p],P)(s)}function hr({scrollPos:s,sizes:t,dir:e="ltr"}){const r=ye(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-i,a=t.content-t.viewport,c=l-r,u=e==="ltr"?[0,a]:[a*-1,0],p=Jr(s,u[0],u[1]);return br([0,a],[0,c])(p)}function br(s,t){return e=>{if(s[0]===s[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(s[1]-s[0]);return t[0]+r*(e-s[0])}}function mr(s,t){return s>0&&s<t}function Kr(s,t){let e={left:s.scrollLeft,top:s.scrollTop},r=0;const i=Fr(s);return(function l(){const a={left:s.scrollLeft,top:s.scrollTop},c=e.left!==a.left,u=e.top!==a.top;(c||u)&&t(),e=a,r=i.requestAnimationFrame(l)})(),()=>i.cancelAnimationFrame(r)}var to=new Set(["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]),eo=tt("<div><!></div>");function gr(s,t){const e=ie();if(new.target)return V({component:gr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"type",7,"hover"),a=v(t,"dir",7,"ltr"),c=v(t,"scrollHideDelay",7,600),u=v(t,"children",7),p=v(t,"child",7),h=k(t,to);const P=Ee.create({type:D(()=>l()),dir:D(()=>a()),scrollHideDelay:D(()=>c()),id:D(()=>i()),ref:D(()=>r(),_=>r(_))}),w=y(()=>Y(h,P.props));var x={get ref(){return r()},set ref(_=null){r(_),S()},get id(){return i()},set id(_=j(e)){i(_),S()},get type(){return l()},set type(_="hover"){l(_),S()},get dir(){return a()},set dir(_="ltr"){a(_),S()},get scrollHideDelay(){return c()},set scrollHideDelay(_=600){c(_),S()},get children(){return u()},set children(_){u(_),S()},get child(){return p()},set child(_){p(_),S()},$set:M,$on:(_,$)=>W(t,_,$)},g=O(),C=E(g);{var b=_=>{var $=O(),N=E($);U(N,p,()=>({props:o(w)})),z(_,$)},R=_=>{var $=eo();lt($,()=>({...o(w)}));var N=nt($);U(N,()=>u()??J),it($),z(_,$)};B(C,_=>{p()?_(b):_(R,-1)})}return z(s,g),H(x)}var ro=new Set(["$$slots","$$events","$$legacy","ref","id","children"]),oo=tt("<div><div><!></div></div>");function vr(s,t){const e=ie();if(new.target)return V({component:vr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"children",7),a=k(t,ro);const c=Re.create({id:D(()=>i()),ref:D(()=>r(),g=>r(g))}),u=y(()=>Y(a,c.props)),p=y(()=>Y({},c.contentProps));var h={get ref(){return r()},set ref(g=null){r(g),S()},get id(){return i()},set id(g=j(e)){i(g),S()},get children(){return l()},set children(g){l(g),S()},$set:M,$on:(g,C)=>W(t,g,C)},P=oo();lt(P,()=>({...o(u)}));var w=nt(P);lt(w,()=>({...o(p)}));var x=nt(w);return U(x,()=>l()??J),it(w),it(P),z(s,P),H(h)}var so=new Set(["$$slots","$$events","$$legacy","child","children"]),no=tt("<div><!></div>");function Fe(s,t){if(new.target)return V({component:Fe,...s});A(t,!0);let e=v(t,"child",7),r=v(t,"children",7),i=k(t,so);const l=Oe.create(),a=y(()=>Y(i,l.props));var c={get child(){return e()},set child(w){e(w),S()},get children(){return r()},set children(w){r(w),S()},$set:M,$on:(w,x)=>W(t,w,x)},u=O(),p=E(u);{var h=w=>{var x=O(),g=E(x);U(g,e,()=>({props:o(a)})),z(w,x)},P=w=>{var x=no();lt(x,()=>({...o(a)}));var g=nt(x);U(g,()=>r()??J),it(x),z(w,x)};B(p,w=>{e()?w(h):w(P,-1)})}return z(s,u),H(c)}var io=new Set(["$$slots","$$events","$$legacy"]);function Sr(s,t){if(new.target)return V({component:Sr,...s});A(t,!0);let e=k(t,io);const r=new $e,i=He.create({mounted:D(()=>r.current)}),l=y(()=>Y(e,i.props));var a={$set:M,$on:(c,u)=>W(t,c,u)};return Fe(s,L(()=>o(l))),H(a)}var lo=new Set(["$$slots","$$events","$$legacy"]);function wr(s,t){if(new.target)return V({component:wr,...s});A(t,!0);let e=k(t,lo);const r=new $e,i=Le.create({mounted:D(()=>r.current)}),l=y(()=>Y(e,i.props));var a={$set:M,$on:(c,u)=>W(t,c,u)};return Fe(s,L(()=>o(l))),H(a)}var ao=new Set(["$$slots","$$events","$$legacy"]);function de(s,t){if(new.target)return V({component:de,...s});A(t,!0);let e=k(t,ao);const r=Ae.create();var i={$set:M,$on:(p,h)=>W(t,p,h)},l=O(),a=E(l);{var c=p=>{Sr(p,L(()=>e))},u=p=>{wr(p,L(()=>e))};B(a,p=>{r.scrollbar.opts.orientation.current==="horizontal"?p(c):p(u,-1)})}return z(s,l),H(i)}var co=new Set(["$$slots","$$events","$$legacy","forceMount"]);function Pr(s,t){if(new.target)return V({component:Pr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,co);const i=pe.create(),l=y(()=>Y(r,i.props));var a={get forceMount(){return e()},set forceMount(c=!1){e(c),S()},$set:M,$on:(c,u)=>W(t,c,u)};{const c=p=>{de(p,L(()=>o(l)))};let u=y(()=>e()||i.isVisible);ae(s,{get open(){return o(u)},get ref(){return i.scrollbar.opts.ref},presence:c,$$slots:{presence:!0}})}return H(a)}var ho=new Set(["$$slots","$$events","$$legacy","forceMount"]);function yr(s,t){if(new.target)return V({component:yr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,ho);const i=We.create(),l=y(()=>Y(r,i.props));var a={get forceMount(){return e()},set forceMount(c=!1){e(c),S()},$set:M,$on:(c,u)=>W(t,c,u)};{const c=p=>{de(p,L(()=>o(l)))};let u=y(()=>e()||!i.isHidden);ae(s,L(()=>o(l),{get open(){return o(u)},get ref(){return i.scrollbar.opts.ref},presence:c,$$slots:{presence:!0}}))}return H(a)}var uo=new Set(["$$slots","$$events","$$legacy","forceMount"]);function xr(s,t){if(new.target)return V({component:xr,...s});A(t,!0);let e=v(t,"forceMount",7,!1),r=k(t,uo);const i=Me.create(),l=pe.create(),a=y(()=>Y(r,i.props,l.props,{"data-state":i.isVisible?"visible":"hidden"})),c=y(()=>e()||i.isVisible&&l.isVisible);var u={get forceMount(){return e()},set forceMount(p=!1){e(p),S()},$set:M,$on:(p,h)=>W(t,p,h)};return ae(s,{get open(){return o(c)},get ref(){return l.scrollbar.opts.ref},presence:h=>{de(h,L(()=>o(a)))},$$slots:{presence:!0}}),H(u)}var fo=new Set(["$$slots","$$events","$$legacy","ref","id","orientation"]);function _r(s,t){const e=ie();if(new.target)return V({component:_r,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=v(t,"orientation",7),a=k(t,fo);const c=Ve.create({orientation:D(()=>l()),id:D(()=>i()),ref:D(()=>r(),b=>r(b))}),u=y(()=>c.root.opts.type.current);var p={get ref(){return r()},set ref(b=null){r(b),S()},get id(){return i()},set id(b=j(e)){i(b),S()},get orientation(){return l()},set orientation(b){l(b),S()},$set:M,$on:(b,R)=>W(t,b,R)},h=O(),P=E(h);{var w=b=>{xr(b,L(()=>a,{get id(){return i()}}))},x=b=>{yr(b,L(()=>a,{get id(){return i()}}))},g=b=>{Pr(b,L(()=>a,{get id(){return i()}}))},C=b=>{de(b,L(()=>a,{get id(){return i()}}))};B(P,b=>{o(u)==="hover"?b(w):o(u)==="scroll"?b(x,1):o(u)==="auto"?b(g,2):o(u)==="always"&&b(C,3)})}return z(s,h),H(p)}var po=new Set(["$$slots","$$events","$$legacy","ref","id","child","children","present"]),bo=tt("<div><!></div>");function Tr(s,t){if(new.target)return V({component:Tr,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"id",7),i=v(t,"child",7),l=v(t,"children",7),a=v(t,"present",7),c=k(t,po);const u=new $e,p=Xe.create({id:D(()=>r()),ref:D(()=>e(),b=>e(b)),mounted:D(()=>u.current)}),h=y(()=>Y(c,p.props,{style:{hidden:!a()}}));var P={get ref(){return e()},set ref(b=null){e(b),S()},get id(){return r()},set id(b){r(b),S()},get child(){return i()},set child(b){i(b),S()},get children(){return l()},set children(b){l(b),S()},get present(){return a()},set present(b){a(b),S()},$set:M,$on:(b,R)=>W(t,b,R)},w=O(),x=E(w);{var g=b=>{var R=O(),_=E(R);U(_,i,()=>({props:o(h)})),z(b,R)},C=b=>{var R=bo();lt(R,()=>({...o(h)}));var _=nt(R);U(_,()=>l()??J),it(R),z(b,R)};B(x,b=>{i()?b(g):b(C,-1)})}return z(s,w),H(P)}var mo=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount"]);function Nr(s,t){const e=ie();if(new.target)return V({component:Nr,...s});A(t,!0);let r=v(t,"id",23,()=>j(e)),i=v(t,"ref",15,null),l=v(t,"forceMount",7,!1),a=k(t,mo);const c=Pe.get();var u={get id(){return r()},set id(p=j(e)){r(p),S()},get ref(){return i()},set ref(p=null){i(p),S()},get forceMount(){return l()},set forceMount(p=!1){l(p),S()},$set:M,$on:(p,h)=>W(t,p,h)};{const p=(P,w)=>{let x=()=>(w?.()).present;Tr(P,L(()=>a,{get id(){return r()},get present(){return x()},get ref(){return i()},set ref(g){i(g)}}))};let h=y(()=>l()||c.hasThumb);ae(s,{get open(){return o(h)},get ref(){return c.scrollbar.opts.ref},presence:p,$$slots:{presence:!0}})}return H(u)}var go=new Set(["$$slots","$$events","$$legacy","ref","id","children","child"]),vo=tt("<div><!></div>");function Cr(s,t){if(new.target)return V({component:Cr,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"id",7),i=v(t,"children",7),l=v(t,"child",7),a=k(t,go);const c=Ue.create({id:D(()=>r()),ref:D(()=>e(),g=>e(g))}),u=y(()=>Y(a,c.props));var p={get ref(){return e()},set ref(g=null){e(g),S()},get id(){return r()},set id(g){r(g),S()},get children(){return i()},set children(g){i(g),S()},get child(){return l()},set child(g){l(g),S()},$set:M,$on:(g,C)=>W(t,g,C)},h=O(),P=E(h);{var w=g=>{var C=O(),b=E(C);U(b,l,()=>({props:o(u)})),z(g,C)},x=g=>{var C=vo();lt(C,()=>({...o(u)}));var b=nt(C);U(b,()=>i()??J),it(C),z(g,C)};B(P,g=>{l()?g(w):g(x,-1)})}return z(s,h),H(p)}var So=new Set(["$$slots","$$events","$$legacy","ref","id"]);function zr(s,t){const e=ie();if(new.target)return V({component:zr,...s});A(t,!0);let r=v(t,"ref",15,null),i=v(t,"id",23,()=>j(e)),l=k(t,So);const a=he.get(),c=y(()=>!!(a.scrollbarXNode&&a.scrollbarYNode)),u=y(()=>a.opts.type.current!=="scroll"&&o(c));var p={get ref(){return r()},set ref(x=null){r(x),S()},get id(){return i()},set id(x=j(e)){i(x),S()},$set:M,$on:(x,g)=>W(t,x,g)},h=O(),P=E(h);{var w=x=>{Cr(x,L(()=>l,{get id(){return i()},get ref(){return r()},set ref(g){r(g)}}))};B(P,x=>{o(u)&&x(w)})}return z(s,h),H(p)}var wo=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","children"]),Po=tt("<!> <!>",1);function Ye(s,t){if(new.target)return V({component:Ye,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"class",7),i=v(t,"orientation",7,"vertical"),l=v(t,"children",7),a=k(t,wo);var c={get ref(){return e()},set ref(h=null){e(h),S()},get class(){return r()},set class(h){r(h),S()},get orientation(){return i()},set orientation(h="vertical"){i(h),S()},get children(){return l()},set children(h){l(h),S()},$set:M,$on:(h,P)=>W(t,h,P)},u=O(),p=E(u);return ct(p,()=>_r,(h,P)=>{P(h,L({"data-slot":"scroll-area-scrollbar",get orientation(){return i()},get class(){return r()},forceMount:!0},()=>a,{get ref(){return e()},set ref(w){e(w)},children:(w,x)=>{var g=Po(),C=E(g);U(C,()=>l()??J);var b=fe(C,2);ct(b,()=>Nr,(R,_)=>{_(R,{"data-slot":"scroll-area-thumb"})}),z(w,g)},$$slots:{default:!0}}))}),z(s,u),H(c)}var yo=new Set(["$$slots","$$events","$$legacy","ref","class","orientation","scrollbarXClasses","scrollbarYClasses","fadeEdges","children"]),xo=tt("<!> <!> <!> <!>",1);function _o(s,t){if(new.target)return V({component:_o,...s});A(t,!0);let e=v(t,"ref",15,null),r=v(t,"class",7),i=v(t,"orientation",7,"vertical"),l=v(t,"scrollbarXClasses",7,""),a=v(t,"scrollbarYClasses",7,""),c=v(t,"fadeEdges",7,!0),u=v(t,"children",7),p=k(t,yo),h=T(null),P=T(!0),w=T(!0),x=T(!0),g=T(!0);function C(){o(h)&&(f(P,o(h).scrollTop<=0),f(w,o(h).scrollTop+o(h).clientHeight>=o(h).scrollHeight-1),f(x,o(h).scrollLeft<=0),f(g,o(h).scrollLeft+o(h).clientWidth>=o(h).scrollWidth-1))}let b=y(()=>{if(!c())return;const N=[];return i()!=="horizontal"&&(!o(P)||!o(w))&&N.push(`linear-gradient(to bottom, ${o(P)?"black 0":"transparent 0, black 12px"}, ${o(w)?"black 100%":"black calc(100% - 12px), transparent 100%"})`),i()!=="vertical"&&(!o(x)||!o(g))&&N.push(`linear-gradient(to right, ${o(x)?"black 0":"transparent 0, black 12px"}, ${o(g)?"black 100%":"black calc(100% - 12px), transparent 100%"})`),N.length?N.join(", "):void 0});X(()=>{if(!o(h))return;C();const N=new ResizeObserver(C);return N.observe(o(h)),o(h).firstElementChild&&N.observe(o(h).firstElementChild),()=>N.disconnect()});var R={get ref(){return e()},set ref(N=null){e(N),S()},get class(){return r()},set class(N){r(N),S()},get orientation(){return i()},set orientation(N="vertical"){i(N),S()},get scrollbarXClasses(){return l()},set scrollbarXClasses(N=""){l(N),S()},get scrollbarYClasses(){return a()},set scrollbarYClasses(N=""){a(N),S()},get fadeEdges(){return c()},set fadeEdges(N=!0){c(N),S()},get children(){return u()},set children(N){u(N),S()},$set:M,$on:(N,xe)=>W(t,N,xe)},_=O(),$=E(_);{let N=y(()=>Br("relative overflow-hidden",r()));ct($,()=>gr,(xe,Dr)=>{Dr(xe,L({"data-slot":"scroll-area",get"data-orientation"(){return i()},get class(){return o(N)},type:"scroll"},()=>p,{get ref(){return e()},set ref(_e){e(_e)},children:(_e,No)=>{var sr=xo(),nr=E(sr);{let I=y(()=>o(b)?`mask-image: ${o(b)}; -webkit-mask-image: ${o(b)};`:void 0);ct(nr,()=>vr,(Te,Mr)=>{Mr(Te,{"data-slot":"scroll-area-viewport",tabindex:0,class:"size-full rounded-[inherit] transition-[mask-image] duration-(--motion-fast) focus-visible:outline focus-visible:-outline-offset-1 motion-reduce:transition-none",get style(){return o(I)},onscroll:C,get ref(){return o(h)},set ref(Ne){f(h,Ne,!0)},children:(Ne,Co)=>{var ar=O(),Wr=E(ar);U(Wr,()=>u()??J),z(Ne,ar)},$$slots:{default:!0}})})}var ir=fe(nr,2);{var Er=I=>{Ye(I,{orientation:"vertical",get class(){return a()}})};B(ir,I=>{(i()==="vertical"||i()==="both")&&I(Er)})}var lr=fe(ir,2);{var Rr=I=>{Ye(I,{orientation:"horizontal",get class(){return l()}})};B(lr,I=>{(i()==="horizontal"||i()==="both")&&I(Rr)})}var Vr=fe(lr,2);ct(Vr,()=>zr,(I,Te)=>{Te(I,{})}),z(_e,sr)},$$slots:{default:!0}}))})}return z(s,_),H(R)}const To=[{id:"scroll-area-orientations",title:"Scroll area orientations and overflow",states:["vertical","horizontal","both","keyboard-focus","long-content","no-overflow","scrollbar-resting","scrollbar-scrolling","scrollbar-hover","native-opt-out","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];jr({id:"scroll-area",source:"src/lib/components/ui/scroll-area/index.ts",publicImport:"$lib/components/ui/scroll-area",legacyImports:[],exports:["Root","ScrollArea","ScrollAreaScrollbar","Scrollbar","scrollAreaMetadata"],usage:`<script lang="ts">
|
|
2
2
|
import { ScrollArea } from '$lib/components/ui/scroll-area';
|
|
3
3
|
<\/script>
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as z,bq as n,by as D,br as E,b as F}from"./
|
|
1
|
+
import{t as z,bq as n,by as D,br as E,b as F}from"./BUAFIktJ.js";import{bs as G,a5 as s,bS as g,bA as i,W as d,bn as I,aA as o,aB as v}from"./DYhIMPy1.js";import{i as p}from"./Bvd0DfwC.js";import{s as c}from"./CnTu6sc6.js";import{b as J,e as K}from"./COO6ldt4.js";var L=new Set(["$$slots","$$events","$$legacy","title","description","counter","leading","actions","class"]),M=v('<div class="flex shrink-0 items-center"><!></div>'),O=v('<div data-slot="screen-header-counter" class="type-caption mb-1 text-muted-foreground"><!></div>'),Q=v('<div data-slot="screen-header-description" class="mt-1 text-sm text-muted-foreground"><!></div>'),R=v('<div data-slot="screen-header-actions" class="flex shrink-0 items-center gap-1"><!></div>'),T=v('<header><!> <div class="min-w-0 flex-1"><!> <div data-slot="screen-header-title" class="min-w-0"><!></div> <!></div> <!></header>');function U(w,a){if(new.target)return z({component:U,...w});G(a,!0);let h=n(a,"title",7),l=n(a,"description",7),_=n(a,"counter",7),m=n(a,"leading",7),u=n(a,"actions",7),b=n(a,"class",7),A=E(a,L);var C={get title(){return h()},set title(e){h(e),o()},get description(){return l()},set description(e){l(e),o()},get counter(){return _()},set counter(e){_(e),o()},get leading(){return m()},set leading(e){m(e),o()},get actions(){return u()},set actions(e){u(e),o()},get class(){return b()},set class(e){b(e),o()},$set:D,$on:(e,t)=>F(a,e,t)},f=T();J(f,e=>({"data-slot":"screen-header",class:e,...A}),[()=>K("flex min-w-0 shrink-0 items-start gap-3 px-5 pt-5",b())]);var S=s(f);{var q=e=>{var t=M(),r=s(t);c(r,m),i(t),d(e,t)};p(S,e=>{m()&&e(q)})}var x=g(S,2),k=s(x);{var B=e=>{var t=O(),r=s(t);c(r,_),i(t),d(e,t)};p(k,e=>{_()&&e(B)})}var y=g(k,2),H=s(y);c(H,h),i(y);var N=g(y,2);{var P=e=>{var t=Q(),r=s(t);c(r,l),i(t),d(e,t)};p(N,e=>{l()&&e(P)})}i(x);var W=g(x,2);{var j=e=>{var t=R(),r=s(t);c(r,u),i(t),d(e,t)};p(W,e=>{u()&&e(j)})}return i(f),d(w,f),I(C)}export{U as S};
|