@malloy-publisher/server 0.0.104 → 0.0.106
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/dist/app/assets/{index-6Jnc0Dwt.js → index-Bh1cWMgT.js} +5 -5
- package/dist/app/assets/{index.es249-vQhhZ2LX.js → index.es231-02O061a5.js} +1 -1
- package/dist/app/assets/{index.es250-CksNcviw.js → index.es232-DOZR37hD.js} +1 -1
- package/dist/app/assets/{index.es253-DEUN5ecV.js → index.es235-CwaFVls_.js} +1 -1
- package/dist/app/assets/{index.es24-Cn4yPrhQ.js → index.es24-CDJ3b9GD.js} +1 -1
- package/dist/app/assets/{index.es258-CBBAlEzL.js → index.es240-BXsCiix7.js} +1 -1
- package/dist/app/assets/{index.es266-CtlTbXND.js → index.es248-BBXwDGlH.js} +1 -1
- package/dist/app/assets/{index.es267-DvsB_mYL.js → index.es249-it6O0zLZ.js} +1 -1
- package/dist/app/assets/{index.es270-Cf0xo1Jt.js → index.es252-BU8jndoZ.js} +1 -1
- package/dist/app/assets/{index.es274-B3p031dD.js → index.es256-BvZRwMxf.js} +1 -1
- package/dist/app/assets/{index.es277-CXhkNvQA.js → index.es259-6-xstYpb.js} +1 -1
- package/dist/app/assets/{index.es280-CQqCEkit.js → index.es262-BDUOVoIz.js} +1 -1
- package/dist/app/assets/{index.es281-CQ39VpuA.js → index.es263-CHueaYAb.js} +1 -1
- package/dist/app/assets/{index.es295-CsysVRym.js → index.es277-CbrHqWmX.js} +1 -1
- package/dist/app/assets/{index.es296-C8jPQ3Rr.js → index.es278-CI5gPs5v.js} +1 -1
- package/dist/app/assets/{index.es297-6_Wr58nd.js → index.es279-DH9b__8l.js} +1 -1
- package/dist/app/assets/{index.es299-DZRKfkIp.js → index.es281-CGN0Pl1D.js} +1 -1
- package/dist/app/assets/{index.es304-C22MomE6.js → index.es286-XRt1U2aU.js} +1 -1
- package/dist/app/assets/{index.es306-CikFelEc.js → index.es288-DSszyNly.js} +1 -1
- package/dist/app/assets/{index.es307-DDdo8Cr7.js → index.es289-xrNpklpB.js} +1 -1
- package/dist/app/assets/{index.es312-7wk1sW9I.js → index.es294-B75OnIUq.js} +1 -1
- package/dist/app/assets/{index.es313-DjB156D0.js → index.es295-wxT8LaCU.js} +1 -1
- package/dist/app/assets/{index.es315-CECan3M6.js → index.es297-DCQpwhAH.js} +1 -1
- package/dist/app/assets/{index.es316-BpzAZiXB.js → index.es298-Dtm6S7Te.js} +1 -1
- package/dist/app/assets/{index.es317-B7DYWrJm.js → index.es299-CO3NhjF0.js} +1 -1
- package/dist/app/assets/{index.es320-CIh8KUcG.js → index.es302-BNx4kwZQ.js} +1 -1
- package/dist/app/assets/{index.es322-Cfczm2Bl.js → index.es304-Cslijulp.js} +1 -1
- package/dist/app/assets/{index.es323-CjaPjt8z.js → index.es305-Bj5y75UJ.js} +1 -1
- package/dist/app/assets/{index.es324-DM8bgB31.js → index.es306-BY9A-bfA.js} +1 -1
- package/dist/app/assets/{index.es330-CgQ5IRSZ.js → index.es312-BOpCGR-W.js} +1 -1
- package/dist/app/assets/{index.es331-1Kn64e9h.js → index.es313-j4e0V-ax.js} +1 -1
- package/dist/app/assets/{index.es332-C5S6SaRd.js → index.es314-QPXF8A7X.js} +1 -1
- package/dist/app/assets/{index.es333-DRNI3y8C.js → index.es315-BBht-U5W.js} +1 -1
- package/dist/app/assets/{index.es335-Bky6ujZj.js → index.es317-Ba6bfhqW.js} +1 -1
- package/dist/app/assets/{index.es339-BlKzDsx7.js → index.es321-BzMKJGft.js} +1 -1
- package/dist/app/assets/{index.es340-CV2drMme.js → index.es322-Dsh6cVFT.js} +1 -1
- package/dist/app/assets/{index.es348-RwB794xL.js → index.es330-CwhtB6Ga.js} +1 -1
- package/dist/app/assets/{index.es351-DxXG49oC.js → index.es333-BkIXdkt8.js} +1 -1
- package/dist/app/assets/{index.es354-CblwWSRe.js → index.es336-CDPSHwok.js} +1 -1
- package/dist/app/assets/{index.es357-zGM2IebW.js → index.es339-CpmgqEMA.js} +1 -1
- package/dist/app/assets/{index.es361-CGhlwrAl.js → index.es343-DpQJ0N3s.js} +1 -1
- package/dist/app/assets/{index.es363-BMG8Qu1P.js → index.es345-Cu1t0B48.js} +1 -1
- package/dist/app/assets/{index.es371-DOrO3dlY.js → index.es353-Boayqq8b.js} +1 -1
- package/dist/app/assets/{index.es372-C3qt3nbG.js → index.es354-B25Rulno.js} +1 -1
- package/dist/app/assets/{index.es379-ozNxe-JA.js → index.es361-BbYa_qYT.js} +1 -1
- package/dist/app/assets/{index.es380-D-1e6bJP.js → index.es362-BnUI1TJX.js} +1 -1
- package/dist/app/assets/{index.es390-JWq4SvhU.js → index.es372-Din3gmuj.js} +1 -1
- package/dist/app/assets/{index.es394-BqfF9xAw.js → index.es376-CAM-NFdA.js} +1 -1
- package/dist/app/assets/{index.es400-DFk1u2rb.js → index.es382-r9NT2hns.js} +1 -1
- package/dist/app/assets/{index.es405-B44zXQ2s.js → index.es387-DWtDDVHa.js} +1 -1
- package/dist/app/assets/{index.es406-DtZqlgbp.js → index.es388-Cddokof0.js} +1 -1
- package/dist/app/assets/{index.es408-CMnKExjm.js → index.es390-BgcDic1S.js} +1 -1
- package/dist/app/assets/{index.es412-BUhztRl-.js → index.es394-Cuad4cFu.js} +1 -1
- package/dist/app/assets/{index.es414-BTSAIgvA.js → index.es396-CQcbzzI_.js} +1 -1
- package/dist/app/assets/{index.es416-hhTkRuCJ.js → index.es398-DBUoETTk.js} +1 -1
- package/dist/app/assets/{index.es419-DThbt6Ye.js → index.es401-D7FZbPq9.js} +1 -1
- package/dist/app/assets/{index.es420-BJwAPUTz.js → index.es402-C5ht0e8l.js} +1 -1
- package/dist/app/assets/{index.es424-C0rPM_VP.js → index.es406-pes6PLHN.js} +1 -1
- package/dist/app/assets/{index.es426-RDpd2VRz.js → index.es408-DV2ChDJw.js} +1 -1
- package/dist/app/assets/{index.es433-BhZ0-KPw.js → index.es415-BI_J_S9x.js} +1 -1
- package/dist/app/assets/{index.es435-DZeQaCUO.js → index.es417-BNH1K0F3.js} +1 -1
- package/dist/app/assets/{index.es437-B9GL_sFZ.js → index.es419-DaaHuOeT.js} +1 -1
- package/dist/app/assets/{index.es441-CTE1R4Hu.js → index.es423-BFNF97RC.js} +1 -1
- package/dist/app/assets/{index.es451-kJsmP3kY.js → index.es433-TWQYaV1h.js} +1 -1
- package/dist/app/assets/{index.es452-B31qAn1V.js → index.es434-Dhj89L3U.js} +1 -1
- package/dist/app/assets/{index.es459-CC57CidG.js → index.es441-9pPCdH1i.js} +1 -1
- package/dist/app/assets/{index.es460-Cid_wmHI.js → index.es442-B_JzqX5N.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/server.js +2 -1
- package/package.json +81 -81
- package/src/service/package.ts +6 -1
- /package/dist/app/assets/{index.es238-CG6Dc4jp.js → index.es220-CG6Dc4jp.js} +0 -0
- /package/dist/app/assets/{index.es246-DsBKuouk.js → index.es228-DsBKuouk.js} +0 -0
- /package/dist/app/assets/{index.es247-D_z4Izcz.js → index.es229-D_z4Izcz.js} +0 -0
- /package/dist/app/assets/{index.es248-727ZlQH0.js → index.es230-727ZlQH0.js} +0 -0
- /package/dist/app/assets/{index.es251-Dn00JSTd.js → index.es233-Dn00JSTd.js} +0 -0
- /package/dist/app/assets/{index.es252-COJ4H7py.js → index.es234-COJ4H7py.js} +0 -0
- /package/dist/app/assets/{index.es254-Bu5BbsvL.js → index.es236-Bu5BbsvL.js} +0 -0
- /package/dist/app/assets/{index.es255-7O62HKoU.js → index.es237-7O62HKoU.js} +0 -0
- /package/dist/app/assets/{index.es256-BPT9niGB.js → index.es238-BPT9niGB.js} +0 -0
- /package/dist/app/assets/{index.es257-Dhn9LcZ4.js → index.es239-Dhn9LcZ4.js} +0 -0
- /package/dist/app/assets/{index.es259-eg146-Ew.js → index.es241-eg146-Ew.js} +0 -0
- /package/dist/app/assets/{index.es260-Du268qiB.js → index.es242-Du268qiB.js} +0 -0
- /package/dist/app/assets/{index.es261-fje9CFhw.js → index.es243-fje9CFhw.js} +0 -0
- /package/dist/app/assets/{index.es262-BwXTMy5W.js → index.es244-BwXTMy5W.js} +0 -0
- /package/dist/app/assets/{index.es263-3xVqZejG.js → index.es245-3xVqZejG.js} +0 -0
- /package/dist/app/assets/{index.es264-xW4inM5L.js → index.es246-xW4inM5L.js} +0 -0
- /package/dist/app/assets/{index.es265-DHo0CJ0O.js → index.es247-DHo0CJ0O.js} +0 -0
- /package/dist/app/assets/{index.es268-C3t2pwGQ.js → index.es250-C3t2pwGQ.js} +0 -0
- /package/dist/app/assets/{index.es269-DNquZEk8.js → index.es251-DNquZEk8.js} +0 -0
- /package/dist/app/assets/{index.es271-BHOwM8T6.js → index.es253-BHOwM8T6.js} +0 -0
- /package/dist/app/assets/{index.es272-DxSadP1t.js → index.es254-DxSadP1t.js} +0 -0
- /package/dist/app/assets/{index.es273-DbXoA79R.js → index.es255-DbXoA79R.js} +0 -0
- /package/dist/app/assets/{index.es275-Bp6g37R7.js → index.es257-Bp6g37R7.js} +0 -0
- /package/dist/app/assets/{index.es276-sacFqUAJ.js → index.es258-sacFqUAJ.js} +0 -0
- /package/dist/app/assets/{index.es278-C7gG9l05.js → index.es260-C7gG9l05.js} +0 -0
- /package/dist/app/assets/{index.es279-Dsg_Bt_b.js → index.es261-Dsg_Bt_b.js} +0 -0
- /package/dist/app/assets/{index.es282-D9R-vmeu.js → index.es264-D9R-vmeu.js} +0 -0
- /package/dist/app/assets/{index.es283-BPhBrDlE.js → index.es265-BPhBrDlE.js} +0 -0
- /package/dist/app/assets/{index.es284-C-TU5hQ_.js → index.es266-C-TU5hQ_.js} +0 -0
- /package/dist/app/assets/{index.es285-DtFQj3wx.js → index.es267-DtFQj3wx.js} +0 -0
- /package/dist/app/assets/{index.es286-m2LEI-9-.js → index.es268-m2LEI-9-.js} +0 -0
- /package/dist/app/assets/{index.es287-BoXegm-a.js → index.es269-BoXegm-a.js} +0 -0
- /package/dist/app/assets/{index.es288-B9wLZaAG.js → index.es270-B9wLZaAG.js} +0 -0
- /package/dist/app/assets/{index.es289-ClGRhx96.js → index.es271-ClGRhx96.js} +0 -0
- /package/dist/app/assets/{index.es290-DEIpsLCJ.js → index.es272-DEIpsLCJ.js} +0 -0
- /package/dist/app/assets/{index.es291-BgYniUM_.js → index.es273-BgYniUM_.js} +0 -0
- /package/dist/app/assets/{index.es292-COcR7UxN.js → index.es274-COcR7UxN.js} +0 -0
- /package/dist/app/assets/{index.es293-BjQB5zDj.js → index.es275-BjQB5zDj.js} +0 -0
- /package/dist/app/assets/{index.es294-C-nORZOA.js → index.es276-C-nORZOA.js} +0 -0
- /package/dist/app/assets/{index.es298-BX77sIaO.js → index.es280-BX77sIaO.js} +0 -0
- /package/dist/app/assets/{index.es300-B-DoSBHF.js → index.es282-B-DoSBHF.js} +0 -0
- /package/dist/app/assets/{index.es301-bCA53EVm.js → index.es283-bCA53EVm.js} +0 -0
- /package/dist/app/assets/{index.es302-w-ucz2PV.js → index.es284-w-ucz2PV.js} +0 -0
- /package/dist/app/assets/{index.es303-Dayu4EKP.js → index.es285-Dayu4EKP.js} +0 -0
- /package/dist/app/assets/{index.es305-DKXYxT9g.js → index.es287-DKXYxT9g.js} +0 -0
- /package/dist/app/assets/{index.es308-DfxzS6Rs.js → index.es290-DfxzS6Rs.js} +0 -0
- /package/dist/app/assets/{index.es309-SKMF96pI.js → index.es291-SKMF96pI.js} +0 -0
- /package/dist/app/assets/{index.es310-ajMbGru0.js → index.es292-ajMbGru0.js} +0 -0
- /package/dist/app/assets/{index.es311--30QC5Em.js → index.es293--30QC5Em.js} +0 -0
- /package/dist/app/assets/{index.es314-B430Bg39.js → index.es296-B430Bg39.js} +0 -0
- /package/dist/app/assets/{index.es318-CM8KxXT1.js → index.es300-CM8KxXT1.js} +0 -0
- /package/dist/app/assets/{index.es319-B1SYOhNW.js → index.es301-B1SYOhNW.js} +0 -0
- /package/dist/app/assets/{index.es321-DkBy-JyN.js → index.es303-DkBy-JyN.js} +0 -0
- /package/dist/app/assets/{index.es325-BILxekzW.js → index.es307-BILxekzW.js} +0 -0
- /package/dist/app/assets/{index.es326-C5wWYbrZ.js → index.es308-C5wWYbrZ.js} +0 -0
- /package/dist/app/assets/{index.es327-HzYwdGDm.js → index.es309-HzYwdGDm.js} +0 -0
- /package/dist/app/assets/{index.es328-T-Tgc4AT.js → index.es310-T-Tgc4AT.js} +0 -0
- /package/dist/app/assets/{index.es329-ifBTmRxC.js → index.es311-ifBTmRxC.js} +0 -0
- /package/dist/app/assets/{index.es334-BMj5Y0dO.js → index.es316-BMj5Y0dO.js} +0 -0
- /package/dist/app/assets/{index.es336-BjABl1g7.js → index.es318-BjABl1g7.js} +0 -0
- /package/dist/app/assets/{index.es337-xI-RfyKK.js → index.es319-xI-RfyKK.js} +0 -0
- /package/dist/app/assets/{index.es338-ySlJ1b_l.js → index.es320-ySlJ1b_l.js} +0 -0
- /package/dist/app/assets/{index.es341-BQoSv7ci.js → index.es323-BQoSv7ci.js} +0 -0
- /package/dist/app/assets/{index.es342-w8dY5SsB.js → index.es324-w8dY5SsB.js} +0 -0
- /package/dist/app/assets/{index.es343-TU54ms6u.js → index.es325-TU54ms6u.js} +0 -0
- /package/dist/app/assets/{index.es344-DREVFZK8.js → index.es326-DREVFZK8.js} +0 -0
- /package/dist/app/assets/{index.es345-BfivnA6A.js → index.es327-BfivnA6A.js} +0 -0
- /package/dist/app/assets/{index.es346-P4WzXJd0.js → index.es328-P4WzXJd0.js} +0 -0
- /package/dist/app/assets/{index.es347-BAng5TT0.js → index.es329-BAng5TT0.js} +0 -0
- /package/dist/app/assets/{index.es349-B5lbUyaz.js → index.es331-B5lbUyaz.js} +0 -0
- /package/dist/app/assets/{index.es350-mebxcVVE.js → index.es332-mebxcVVE.js} +0 -0
- /package/dist/app/assets/{index.es352-XBlWyCtg.js → index.es334-XBlWyCtg.js} +0 -0
- /package/dist/app/assets/{index.es353-BfCpw3nA.js → index.es335-BfCpw3nA.js} +0 -0
- /package/dist/app/assets/{index.es355-Cc5clBb7.js → index.es337-Cc5clBb7.js} +0 -0
- /package/dist/app/assets/{index.es356-IuBKFhSY.js → index.es338-IuBKFhSY.js} +0 -0
- /package/dist/app/assets/{index.es358-Du5NY7AG.js → index.es340-Du5NY7AG.js} +0 -0
- /package/dist/app/assets/{index.es359-Bvotw-X0.js → index.es341-Bvotw-X0.js} +0 -0
- /package/dist/app/assets/{index.es360-UIAJJxZW.js → index.es342-UIAJJxZW.js} +0 -0
- /package/dist/app/assets/{index.es362-D9-PGadD.js → index.es344-D9-PGadD.js} +0 -0
- /package/dist/app/assets/{index.es364-sdHcTMYB.js → index.es346-sdHcTMYB.js} +0 -0
- /package/dist/app/assets/{index.es365-Ci6OQyBP.js → index.es347-Ci6OQyBP.js} +0 -0
- /package/dist/app/assets/{index.es366-BC5c_5Pe.js → index.es348-BC5c_5Pe.js} +0 -0
- /package/dist/app/assets/{index.es367-Tz6hzZYG.js → index.es349-Tz6hzZYG.js} +0 -0
- /package/dist/app/assets/{index.es368-DB_GagMm.js → index.es350-DB_GagMm.js} +0 -0
- /package/dist/app/assets/{index.es369-DLbgOhZU.js → index.es351-DLbgOhZU.js} +0 -0
- /package/dist/app/assets/{index.es370-B0XVJmRM.js → index.es352-B0XVJmRM.js} +0 -0
- /package/dist/app/assets/{index.es373-shcSOmrb.js → index.es355-shcSOmrb.js} +0 -0
- /package/dist/app/assets/{index.es374-D4Tzg5kh.js → index.es356-D4Tzg5kh.js} +0 -0
- /package/dist/app/assets/{index.es375-Deuh7S70.js → index.es357-Deuh7S70.js} +0 -0
- /package/dist/app/assets/{index.es376-BUEGK8hf.js → index.es358-BUEGK8hf.js} +0 -0
- /package/dist/app/assets/{index.es377-BNioltXt.js → index.es359-BNioltXt.js} +0 -0
- /package/dist/app/assets/{index.es378-JqZropPD.js → index.es360-JqZropPD.js} +0 -0
- /package/dist/app/assets/{index.es381-LKU2TuZ1.js → index.es363-LKU2TuZ1.js} +0 -0
- /package/dist/app/assets/{index.es382-BFLt1xDp.js → index.es364-BFLt1xDp.js} +0 -0
- /package/dist/app/assets/{index.es383-DKykz6zU.js → index.es365-DKykz6zU.js} +0 -0
- /package/dist/app/assets/{index.es384-B3ZDOciz.js → index.es366-B3ZDOciz.js} +0 -0
- /package/dist/app/assets/{index.es385-CSHBycmS.js → index.es367-CSHBycmS.js} +0 -0
- /package/dist/app/assets/{index.es386-BIEUsx6d.js → index.es368-BIEUsx6d.js} +0 -0
- /package/dist/app/assets/{index.es387-B48N-Iqd.js → index.es369-B48N-Iqd.js} +0 -0
- /package/dist/app/assets/{index.es388-BY-TUvya.js → index.es370-BY-TUvya.js} +0 -0
- /package/dist/app/assets/{index.es389-zocC4JxJ.js → index.es371-zocC4JxJ.js} +0 -0
- /package/dist/app/assets/{index.es391-Cza_XSSt.js → index.es373-Cza_XSSt.js} +0 -0
- /package/dist/app/assets/{index.es392-Bg-kzb6g.js → index.es374-Bg-kzb6g.js} +0 -0
- /package/dist/app/assets/{index.es393-DhUJRlN_.js → index.es375-DhUJRlN_.js} +0 -0
- /package/dist/app/assets/{index.es395-C8lEn-DE.js → index.es377-C8lEn-DE.js} +0 -0
- /package/dist/app/assets/{index.es396-DhMKtDLN.js → index.es378-DhMKtDLN.js} +0 -0
- /package/dist/app/assets/{index.es397-CwjWoCRV.js → index.es379-CwjWoCRV.js} +0 -0
- /package/dist/app/assets/{index.es398-CzouJOBO.js → index.es380-CzouJOBO.js} +0 -0
- /package/dist/app/assets/{index.es399-B1bQXN8T.js → index.es381-B1bQXN8T.js} +0 -0
- /package/dist/app/assets/{index.es401-5LuOXUq_.js → index.es383-5LuOXUq_.js} +0 -0
- /package/dist/app/assets/{index.es402-DWJ3fJO_.js → index.es384-DWJ3fJO_.js} +0 -0
- /package/dist/app/assets/{index.es403-DJlmqQ1C.js → index.es385-DJlmqQ1C.js} +0 -0
- /package/dist/app/assets/{index.es404-QhoSD0DR.js → index.es386-QhoSD0DR.js} +0 -0
- /package/dist/app/assets/{index.es407-Be6lgOlo.js → index.es389-Be6lgOlo.js} +0 -0
- /package/dist/app/assets/{index.es409-BJ4Li9vH.js → index.es391-BJ4Li9vH.js} +0 -0
- /package/dist/app/assets/{index.es410-DQVVAn-B.js → index.es392-DQVVAn-B.js} +0 -0
- /package/dist/app/assets/{index.es411-BJGe-b2p.js → index.es393-BJGe-b2p.js} +0 -0
- /package/dist/app/assets/{index.es413-BLhTXw86.js → index.es395-BLhTXw86.js} +0 -0
- /package/dist/app/assets/{index.es415-atvbtKCR.js → index.es397-atvbtKCR.js} +0 -0
- /package/dist/app/assets/{index.es417-DkLiglaE.js → index.es399-DkLiglaE.js} +0 -0
- /package/dist/app/assets/{index.es418-C1w2a3ep.js → index.es400-C1w2a3ep.js} +0 -0
- /package/dist/app/assets/{index.es421-Cf8iN4DR.js → index.es403-Cf8iN4DR.js} +0 -0
- /package/dist/app/assets/{index.es422-COK4E0Yg.js → index.es404-COK4E0Yg.js} +0 -0
- /package/dist/app/assets/{index.es423-BknIz3MU.js → index.es405-BknIz3MU.js} +0 -0
- /package/dist/app/assets/{index.es425-BeQkCIfX.js → index.es407-BeQkCIfX.js} +0 -0
- /package/dist/app/assets/{index.es427-BSxZ-RaX.js → index.es409-BSxZ-RaX.js} +0 -0
- /package/dist/app/assets/{index.es428-C7L56vO4.js → index.es410-C7L56vO4.js} +0 -0
- /package/dist/app/assets/{index.es429-CUnW07Te.js → index.es411-CUnW07Te.js} +0 -0
- /package/dist/app/assets/{index.es430-C1XDQQGZ.js → index.es412-C1XDQQGZ.js} +0 -0
- /package/dist/app/assets/{index.es431-CQjiPCtT.js → index.es413-CQjiPCtT.js} +0 -0
- /package/dist/app/assets/{index.es432-DQ1-QYvQ.js → index.es414-DQ1-QYvQ.js} +0 -0
- /package/dist/app/assets/{index.es434-BbSNqyBO.js → index.es416-BbSNqyBO.js} +0 -0
- /package/dist/app/assets/{index.es436-CB2ApiWb.js → index.es418-CB2ApiWb.js} +0 -0
- /package/dist/app/assets/{index.es438-B_m7g4N7.js → index.es420-B_m7g4N7.js} +0 -0
- /package/dist/app/assets/{index.es439-B6W0miNI.js → index.es421-B6W0miNI.js} +0 -0
- /package/dist/app/assets/{index.es440-BMR_PYu6.js → index.es422-BMR_PYu6.js} +0 -0
- /package/dist/app/assets/{index.es442-Dj6nwHGl.js → index.es424-Dj6nwHGl.js} +0 -0
- /package/dist/app/assets/{index.es443-BpWG_bgh.js → index.es425-BpWG_bgh.js} +0 -0
- /package/dist/app/assets/{index.es444-BVUVsWT6.js → index.es426-BVUVsWT6.js} +0 -0
- /package/dist/app/assets/{index.es445-CAQ2eGtk.js → index.es427-CAQ2eGtk.js} +0 -0
- /package/dist/app/assets/{index.es446-BFOHcciG.js → index.es428-BFOHcciG.js} +0 -0
- /package/dist/app/assets/{index.es447-CdO5JTpU.js → index.es429-CdO5JTpU.js} +0 -0
- /package/dist/app/assets/{index.es448-CJaU5se_.js → index.es430-CJaU5se_.js} +0 -0
- /package/dist/app/assets/{index.es449-DYoNaHQp.js → index.es431-DYoNaHQp.js} +0 -0
- /package/dist/app/assets/{index.es450-m4uW47V2.js → index.es432-m4uW47V2.js} +0 -0
- /package/dist/app/assets/{index.es453-nyqBNV6O.js → index.es435-nyqBNV6O.js} +0 -0
- /package/dist/app/assets/{index.es454-C6j12Q_x.js → index.es436-C6j12Q_x.js} +0 -0
- /package/dist/app/assets/{index.es455-7A4Fjokl.js → index.es437-7A4Fjokl.js} +0 -0
- /package/dist/app/assets/{index.es456-CB0Krxn9.js → index.es438-CB0Krxn9.js} +0 -0
- /package/dist/app/assets/{index.es457-DCE3LsBG.js → index.es439-DCE3LsBG.js} +0 -0
- /package/dist/app/assets/{index.es458-C3FkfJm5.js → index.es440-C3FkfJm5.js} +0 -0
- /package/dist/app/assets/{index.es461-CVw76BM1.js → index.es443-CVw76BM1.js} +0 -0
- /package/dist/app/assets/{index.es462-HnGAYVZD.js → index.es444-HnGAYVZD.js} +0 -0
- /package/dist/app/assets/{index.es463-BVz_zdnA.js → index.es445-BVz_zdnA.js} +0 -0
- /package/dist/app/assets/{index.es464-C3khCPGq.js → index.es446-C3khCPGq.js} +0 -0
- /package/dist/app/assets/{index.es465-D-2ljcwZ.js → index.es447-D-2ljcwZ.js} +0 -0
- /package/dist/app/assets/{index.es466-Cv9koXgw.js → index.es448-Cv9koXgw.js} +0 -0
- /package/dist/app/assets/{index.es467-CD_QflpE.js → index.es449-CD_QflpE.js} +0 -0
- /package/dist/app/assets/{index.es468-DRW-0cLl.js → index.es450-DRW-0cLl.js} +0 -0
- /package/dist/app/assets/{index.es469-C-_shW-Y.js → index.es451-C-_shW-Y.js} +0 -0
- /package/dist/app/assets/{index.es470-LGGdnPYs.js → index.es452-LGGdnPYs.js} +0 -0
- /package/dist/app/assets/{index.es471-C3mMm8J8.js → index.es453-C3mMm8J8.js} +0 -0
- /package/dist/app/assets/{index.es472-BzJJZx-M.js → index.es454-BzJJZx-M.js} +0 -0
- /package/dist/app/assets/{index.es473-BXkSAIEj.js → index.es455-BXkSAIEj.js} +0 -0
- /package/dist/app/assets/{index.es474-BgDCqdQA.js → index.es456-BgDCqdQA.js} +0 -0
- /package/dist/app/assets/{index.es475-C8M2exoo.js → index.es457-C8M2exoo.js} +0 -0
- /package/dist/app/assets/{index.es476-DHJKELXO.js → index.es458-DHJKELXO.js} +0 -0
- /package/dist/app/assets/{index.es477-Cuk6v7N8.js → index.es459-Cuk6v7N8.js} +0 -0
- /package/dist/app/assets/{index.es478-DH5Ifo-i.js → index.es460-DH5Ifo-i.js} +0 -0
- /package/dist/app/assets/{index.es479-E3gJ1_iC.js → index.es461-E3gJ1_iC.js} +0 -0
- /package/dist/app/assets/{index.es480-DAi9KRSo.js → index.es462-DAi9KRSo.js} +0 -0
- /package/dist/app/assets/{index.es481-D7oLnXFd.js → index.es463-D7oLnXFd.js} +0 -0
- /package/dist/app/assets/{index.es482-BfjtVDDH.js → index.es464-BfjtVDDH.js} +0 -0
- /package/dist/app/assets/{index.es483-DnULxvSX.js → index.es465-DnULxvSX.js} +0 -0
- /package/dist/app/assets/{index.es484-CkXjmgJE.js → index.es466-CkXjmgJE.js} +0 -0
- /package/dist/app/assets/{index.es485-CfQXZHmo.js → index.es467-CfQXZHmo.js} +0 -0
- /package/dist/app/assets/{index.es486-DWedfzmr.js → index.es468-DWedfzmr.js} +0 -0
- /package/dist/app/assets/{index.es487-DUszq2jm.js → index.es469-DUszq2jm.js} +0 -0
- /package/dist/app/assets/{index.es488-B7mTdjB0.js → index.es470-B7mTdjB0.js} +0 -0
- /package/dist/app/assets/{index.es489-D5KoaKCx.js → index.es471-D5KoaKCx.js} +0 -0
- /package/dist/app/assets/{index.es490-BfHTSMKl.js → index.es472-BfHTSMKl.js} +0 -0
- /package/dist/app/assets/{index.es491-B0m2ddpp.js → index.es473-B0m2ddpp.js} +0 -0
- /package/dist/app/assets/{index.es492-CyktbL80.js → index.es474-CyktbL80.js} +0 -0
- /package/dist/app/assets/{index.es493-Csfq5Kiy.js → index.es475-Csfq5Kiy.js} +0 -0
- /package/dist/app/assets/{index.es494-CafNBF8u.js → index.es476-CafNBF8u.js} +0 -0
- /package/dist/app/assets/{index.es495-CTRr51gU.js → index.es477-CTRr51gU.js} +0 -0
- /package/dist/app/assets/{index.es496-D4h5O-jR.js → index.es478-D4h5O-jR.js} +0 -0
- /package/dist/app/assets/{index.es497-C39BiMTA.js → index.es479-C39BiMTA.js} +0 -0
- /package/dist/app/assets/{index.es498-Ddv68eIx.js → index.es480-Ddv68eIx.js} +0 -0
- /package/dist/app/assets/{index.es499-GBQ2dnAY.js → index.es481-GBQ2dnAY.js} +0 -0
- /package/dist/app/assets/{index.es500-PoHY5YXO.js → index.es482-PoHY5YXO.js} +0 -0
- /package/dist/app/assets/{index.es501-3e1v2bzS.js → index.es483-3e1v2bzS.js} +0 -0
- /package/dist/app/assets/{index.es502-CS3Unz2-.js → index.es484-CS3Unz2-.js} +0 -0
- /package/dist/app/assets/{index.es503-bN70gL4F.js → index.es485-bN70gL4F.js} +0 -0
- /package/dist/app/assets/{index.es504-CmCqftbK.js → index.es486-CmCqftbK.js} +0 -0
- /package/dist/app/assets/{index.es505-Ds-gbosJ.js → index.es487-Ds-gbosJ.js} +0 -0
- /package/dist/app/assets/{index.es506-CjDtw9vr.js → index.es488-CjDtw9vr.js} +0 -0
- /package/dist/app/assets/{index.es507-BthQWCQV.js → index.es489-BthQWCQV.js} +0 -0
- /package/dist/app/assets/{index.es508-DqwNpetd.js → index.es490-DqwNpetd.js} +0 -0
- /package/dist/app/assets/{index.es509-Bw305WKR.js → index.es491-Bw305WKR.js} +0 -0
- /package/dist/app/assets/{index.es510-DXbdFlpD.js → index.es492-DXbdFlpD.js} +0 -0
- /package/dist/app/assets/{index.es511-L9t79GZl.js → index.es493-L9t79GZl.js} +0 -0
- /package/dist/app/assets/{index.es512-CbfX1IO0.js → index.es494-CbfX1IO0.js} +0 -0
- /package/dist/app/assets/{index.es513-DBQeEorK.js → index.es495-DBQeEorK.js} +0 -0
- /package/dist/app/assets/{index.es514-BEBZ7ncR.js → index.es496-BEBZ7ncR.js} +0 -0
- /package/dist/app/assets/{index.es515-Bkuqu6BP.js → index.es497-Bkuqu6BP.js} +0 -0
- /package/dist/app/assets/{index.es516-D0r3Knsf.js → index.es498-D0r3Knsf.js} +0 -0
- /package/dist/app/assets/{index.es517-CVO1_9PV.js → index.es499-CVO1_9PV.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es231-02O061a5.js","assets/index.es312-BOpCGR-W.js","assets/index.es320-ySlJ1b_l.js","assets/index.es265-BPhBrDlE.js","assets/index.es232-DOZR37hD.js","assets/index.es394-Cuad4cFu.js","assets/index.es235-CwaFVls_.js","assets/index.es441-9pPCdH1i.js","assets/index.es319-xI-RfyKK.js","assets/index.es323-BQoSv7ci.js","assets/index.es240-BXsCiix7.js","assets/index.es424-Dj6nwHGl.js","assets/index.es366-B3ZDOciz.js","assets/index.es248-BBXwDGlH.js","assets/index.es404-COK4E0Yg.js","assets/index.es249-it6O0zLZ.js","assets/index.es395-BLhTXw86.js","assets/index.es252-BU8jndoZ.js","assets/index.es375-DhUJRlN_.js","assets/index.es256-BvZRwMxf.js","assets/index.es259-6-xstYpb.js","assets/index.es262-BDUOVoIz.js","assets/index.es384-DWJ3fJO_.js","assets/index.es299-CO3NhjF0.js","assets/index.es250-C3t2pwGQ.js","assets/index.es263-CHueaYAb.js","assets/index.es397-atvbtKCR.js","assets/index.es277-CbrHqWmX.js","assets/index.es313-j4e0V-ax.js","assets/index.es278-CI5gPs5v.js","assets/index.es279-DH9b__8l.js","assets/index.es281-CGN0Pl1D.js","assets/index.es388-Cddokof0.js","assets/index.es305-Bj5y75UJ.js","assets/index.es302-BNx4kwZQ.js","assets/index.es329-BAng5TT0.js","assets/index.es421-B6W0miNI.js","assets/index.es339-CpmgqEMA.js","assets/index.es443-CVw76BM1.js","assets/index.es286-XRt1U2aU.js","assets/index.es287-DKXYxT9g.js","assets/index.es288-DSszyNly.js","assets/index.es342-UIAJJxZW.js","assets/index.es289-xrNpklpB.js","assets/index.es291-SKMF96pI.js","assets/index.es290-DfxzS6Rs.js","assets/index.es294-B75OnIUq.js","assets/index.es273-BgYniUM_.js","assets/index.es295-wxT8LaCU.js","assets/index.es297-DCQpwhAH.js","assets/index.es298-Dtm6S7Te.js","assets/index.es304-Cslijulp.js","assets/index.es306-BY9A-bfA.js","assets/index.es314-QPXF8A7X.js","assets/index.es315-BBht-U5W.js","assets/index.es308-C5wWYbrZ.js","assets/index.es317-Ba6bfhqW.js","assets/index.es321-BzMKJGft.js","assets/index.es322-Dsh6cVFT.js","assets/index.es330-CwhtB6Ga.js","assets/index.es379-CwjWoCRV.js","assets/index.es333-BkIXdkt8.js","assets/index.es417-BNH1K0F3.js","assets/index.es336-CDPSHwok.js","assets/index.es343-DpQJ0N3s.js","assets/index.es335-BfCpw3nA.js","assets/index.es345-Cu1t0B48.js","assets/index.es353-Boayqq8b.js","assets/index.es354-B25Rulno.js","assets/index.es361-BbYa_qYT.js","assets/index.es362-BnUI1TJX.js","assets/index.es372-Din3gmuj.js","assets/index.es376-CAM-NFdA.js","assets/index.es382-r9NT2hns.js","assets/index.es264-D9R-vmeu.js","assets/index.es387-DWtDDVHa.js","assets/index.es255-DbXoA79R.js","assets/index.es390-BgcDic1S.js","assets/index.es396-CQcbzzI_.js","assets/index.es311-ifBTmRxC.js","assets/index.es398-DBUoETTk.js","assets/index.es401-D7FZbPq9.js","assets/index.es402-C5ht0e8l.js","assets/index.es422-BMR_PYu6.js","assets/index.es406-pes6PLHN.js","assets/index.es408-DV2ChDJw.js","assets/index.es415-BI_J_S9x.js","assets/index.es301-B1SYOhNW.js","assets/index.es419-DaaHuOeT.js","assets/index.es423-BFNF97RC.js","assets/index.es433-TWQYaV1h.js","assets/index.es434-Dhj89L3U.js","assets/index.es442-B_JzqX5N.js","assets/index.es24-CDJ3b9GD.js","assets/mui-BL9dYvR2.js","assets/vendor-c5ypKtDW.js","assets/index-CvbMKVwx.js","assets/index-SM0qJxoC.js","assets/index.umd-DknWdzGi.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{r as w,a as j2,j as v,T as $e,u as i5,c as o5,b as s5,s as l5,B as Ke,C as c5,d as Wn,e as $l,f as Fl,g as u5,D as No,h as Oo,I as xn,i as Lo,F as d5,k as f5,L as pb,l as fh,m as $u,G as mn,n as Ms,R as Le,P as Lh,o as h5,S as p5,p as U2,q as fa,t as mb,v as td,w as gb,x as ri,y as Ut,z as nd,A as m5,E as hh,H as yb,J as $i,K as g5,M as y5,N as Pn,O as Px,Q as H2,U as Nr,V as b5,W as Ts,X as z2,Y as op,Z as E5,_ as v5,$ as bb,a0 as T5,a1 as _5,a2 as x5,a3 as A5,a4 as S5,a5 as C5,a6 as D5,a7 as k5,a8 as R5}from"./mui-BL9dYvR2.js";import{r as I5,a as w5}from"./vendor-c5ypKtDW.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var z0={exports:{}},cu={},G0={exports:{}},V0={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* scheduler.production.js
|
|
@@ -55,7 +55,7 @@ export default theme;`}const TL=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
|
|
|
55
55
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[NA]=this[NA]={accessors:{}}).accessors,a=this.prototype;function o(l){const c=pu(l);r[c]||(c7(a,l),r[c]=!0)}return de.isArray(t)?t.forEach(o):o(t),this}};Lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(Lr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});de.freezeMethods(Lr);function n1(e,t){const n=this||Bd,r=t||n,a=Lr.from(r.headers);let o=r.data;return de.forEach(e,function(c){o=c.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function YD(e){return!!(e&&e.__CANCEL__)}function ic(e,t,n){ut.call(this,e??"canceled",ut.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(ic,ut,{__CANCEL__:!0});function QD(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function u7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function d7(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,l;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),p=r[o];l||(l=f),n[a]=d,r[a]=f;let m=o,y=0;for(;m!==a;)y+=n[m++],m=m%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),f-l<t)return;const b=p&&f-p;return b?Math.round(y*1e3/b):void 0}}function f7(e,t){let n=0,r=1e3/t,a,o;const l=(f,p=Date.now())=>{n=p,a=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const p=Date.now(),m=p-n;m>=r?l(f,p):(a=f,o||(o=setTimeout(()=>{o=null,l(a)},r-m)))},()=>a&&l(a)]}const pp=(e,t,n=3)=>{let r=0;const a=d7(50,250);return f7(o=>{const l=o.loaded,c=o.lengthComputable?o.total:void 0,d=l-r,f=a(d),p=l<=c;r=l;const m={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&p?(c-l)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},OA=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},LA=e=>(...t)=>de.asap(()=>e(...t)),h7=lr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,lr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(lr.origin),lr.navigator&&/(msie|trident)/i.test(lr.navigator.userAgent)):()=>!0,p7=lr.hasStandardBrowserEnv?{write(e,t,n,r,a,o){const l=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),de.isString(r)&&l.push("path="+r),de.isString(a)&&l.push("domain="+a),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function m7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function g7(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function KD(e,t,n){let r=!m7(t);return e&&(r||n==!1)?g7(e,t):t}const MA=e=>e instanceof Lr?{...e}:e;function ks(e,t){t=t||{};const n={};function r(f,p,m,y){return de.isPlainObject(f)&&de.isPlainObject(p)?de.merge.call({caseless:y},f,p):de.isPlainObject(p)?de.merge({},p):de.isArray(p)?p.slice():p}function a(f,p,m,y){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f,m,y)}else return r(f,p,m,y)}function o(f,p){if(!de.isUndefined(p))return r(void 0,p)}function l(f,p){if(de.isUndefined(p)){if(!de.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function c(f,p,m){if(m in t)return r(f,p);if(m in e)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(f,p,m)=>a(MA(f),MA(p),m,!0)};return de.forEach(Object.keys({...e,...t}),function(p){const m=d[p]||a,y=m(e[p],t[p],p);de.isUndefined(y)&&m!==c||(n[p]=y)}),n}const WD=e=>{const t=ks({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:l,auth:c}=t;t.headers=l=Lr.from(l),t.url=GD(KD(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(de.isFormData(n)){if(lr.hasStandardBrowserEnv||lr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((d=l.getContentType())!==!1){const[f,...p]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(lr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&h7(t.url))){const f=a&&o&&p7.read(o);f&&l.set(a,f)}return t},y7=typeof XMLHttpRequest<"u",b7=y7&&function(e){return new Promise(function(n,r){const a=WD(e);let o=a.data;const l=Lr.from(a.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=a,p,m,y,b,_;function A(){b&&b(),_&&_(),a.cancelToken&&a.cancelToken.unsubscribe(p),a.signal&&a.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function x(){if(!C)return;const S=Lr.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:S,config:e,request:C};QD(function(V){n(V),A()},function(V){r(V),A()},L),C=null}"onloadend"in C?C.onloadend=x:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(x)},C.onabort=function(){C&&(r(new ut("Request aborted",ut.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new ut("Network Error",ut.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let M=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const L=a.transitional||VD;a.timeoutErrorMessage&&(M=a.timeoutErrorMessage),r(new ut(M,L.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,e,C)),C=null},o===void 0&&l.setContentType(null),"setRequestHeader"in C&&de.forEach(l.toJSON(),function(M,L){C.setRequestHeader(L,M)}),de.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),c&&c!=="json"&&(C.responseType=a.responseType),f&&([y,_]=pp(f,!0),C.addEventListener("progress",y)),d&&C.upload&&([m,b]=pp(d),C.upload.addEventListener("progress",m),C.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(p=S=>{C&&(r(!S||S.type?new ic(null,e,C):S),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(p),a.signal&&(a.signal.aborted?p():a.signal.addEventListener("abort",p)));const D=u7(a.url);if(D&&lr.protocols.indexOf(D)===-1){r(new ut("Unsupported protocol "+D+":",ut.ERR_BAD_REQUEST,e));return}C.send(o||null)})},E7=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const o=function(f){if(!a){a=!0,c();const p=f instanceof Error?f:this.reason;r.abort(p instanceof ut?p:new ic(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,o(new ut(`timeout ${t} of ms exceeded`,ut.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>de.asap(c),d}},v7=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},T7=async function*(e,t){for await(const n of _7(e))yield*v7(n,t)},_7=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},PA=(e,t,n,r)=>{const a=T7(e,t);let o=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:p}=await a.next();if(f){c(),d.close();return}let m=p.byteLength;if(n){let y=o+=m;n(y)}d.enqueue(new Uint8Array(p))}catch(f){throw c(f),f}},cancel(d){return c(d),a.return()}},{highWaterMark:2})},om=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",XD=om&&typeof ReadableStream=="function",x7=om&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ZD=(e,...t)=>{try{return!!e(...t)}catch{return!1}},A7=XD&&ZD(()=>{let e=!1;const t=new Request(lr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$A=64*1024,py=XD&&ZD(()=>de.isReadableStream(new Response("").body)),mp={stream:py&&(e=>e.body)};om&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!mp[t]&&(mp[t]=de.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ut(`Response type '${t}' is not supported`,ut.ERR_NOT_SUPPORT,r)})})})(new Response);const S7=async e=>{if(e==null)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e))return(await new Request(lr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(de.isArrayBufferView(e)||de.isArrayBuffer(e))return e.byteLength;if(de.isURLSearchParams(e)&&(e=e+""),de.isString(e))return(await x7(e)).byteLength},C7=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return n??S7(t)},D7=om&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:o,timeout:l,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:p,withCredentials:m="same-origin",fetchOptions:y}=WD(e);f=f?(f+"").toLowerCase():"text";let b=E7([a,o&&o.toAbortSignal()],l),_;const A=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(d&&A7&&n!=="get"&&n!=="head"&&(C=await C7(p,r))!==0){let L=new Request(t,{method:"POST",body:r,duplex:"half"}),I;if(de.isFormData(r)&&(I=L.headers.get("content-type"))&&p.setContentType(I),L.body){const[V,te]=OA(C,pp(LA(d)));r=PA(L.body,$A,V,te)}}de.isString(m)||(m=m?"include":"omit");const x="credentials"in Request.prototype;_=new Request(t,{...y,signal:b,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:x?m:void 0});let D=await fetch(_,y);const S=py&&(f==="stream"||f==="response");if(py&&(c||S&&A)){const L={};["status","statusText","headers"].forEach(Q=>{L[Q]=D[Q]});const I=de.toFiniteNumber(D.headers.get("content-length")),[V,te]=c&&OA(I,pp(LA(c),!0))||[];D=new Response(PA(D.body,$A,V,()=>{te&&te(),A&&A()}),L)}f=f||"text";let M=await mp[de.findKey(mp,f)||"text"](D,e);return!S&&A&&A(),await new Promise((L,I)=>{QD(L,I,{data:M,headers:Lr.from(D.headers),status:D.status,statusText:D.statusText,config:e,request:_})})}catch(x){throw A&&A(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new ut("Network Error",ut.ERR_NETWORK,e,_),{cause:x.cause||x}):ut.from(x,x&&x.code,e,_)}}),my={http:HP,xhr:b7,fetch:D7};de.forEach(my,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const FA=e=>`- ${e}`,k7=e=>de.isFunction(e)||e===null||e===!1,JD={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let o=0;o<t;o++){n=e[o];let l;if(r=n,!k7(n)&&(r=my[(l=String(n)).toLowerCase()],r===void 0))throw new ut(`Unknown adapter '${l}'`);if(r)break;a[l||"#"+o]=r}if(!r){const o=Object.entries(a).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?o.length>1?`since :
|
|
56
56
|
`+o.map(FA).join(`
|
|
57
57
|
`):" "+FA(o[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:my};function r1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ic(null,e)}function BA(e){return r1(e),e.headers=Lr.from(e.headers),e.data=n1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),JD.getAdapter(e.adapter||Bd.adapter)(e).then(function(r){return r1(e),r.data=n1.call(e,e.transformResponse,r),r.headers=Lr.from(r.headers),r},function(r){return YD(r)||(r1(e),r&&r.response&&(r.response.data=n1.call(e,e.transformResponse,r.response),r.response.headers=Lr.from(r.response.headers))),Promise.reject(r)})}const ek="1.11.0",sm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const jA={};sm.transitional=function(t,n,r){function a(o,l){return"[Axios v"+ek+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,c)=>{if(t===!1)throw new ut(a(l," has been removed"+(n?" in "+n:"")),ut.ERR_DEPRECATED);return n&&!jA[l]&&(jA[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,c):!0}};sm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function R7(e,t,n){if(typeof e!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],l=t[o];if(l){const c=e[o],d=c===void 0||l(c,o,e);if(d!==!0)throw new ut("option "+o+" must be "+d,ut.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ut("Unknown option "+o,ut.ERR_BAD_OPTION)}}const Hh={assertOptions:R7,validators:sm},Qa=Hh.validators;let xs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new wA,response:new wA}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
58
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ks(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Hh.assertOptions(r,{silentJSONParsing:Qa.transitional(Qa.boolean),forcedJSONParsing:Qa.transitional(Qa.boolean),clarifyTimeoutError:Qa.transitional(Qa.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:Hh.assertOptions(a,{encode:Qa.function,serialize:Qa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hh.assertOptions(n,{baseUrl:Qa.spelling("baseURL"),withXsrfToken:Qa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&de.merge(o.common,o[n.method]);o&&de.forEach(["delete","get","head","post","put","patch","common"],_=>{delete o[_]}),n.headers=Lr.concat(l,o);const c=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,c.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,y;if(!d){const _=[BA.bind(this),void 0];for(_.unshift(...c),_.push(...f),y=_.length,p=Promise.resolve(n);m<y;)p=p.then(_[m++],_[m++]);return p}y=c.length;let b=n;for(m=0;m<y;){const _=c[m++],A=c[m++];try{b=_(b)}catch(C){A.call(this,C);break}}try{p=BA.call(this,b)}catch(_){return Promise.reject(_)}for(m=0,y=f.length;m<y;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=ks(this.defaults,t);const n=KD(t.baseURL,t.url,t.allowAbsoluteUrls);return GD(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){xs.prototype[t]=function(n,r){return this.request(ks(r||{},{method:t,url:n,data:(r||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(r){return function(o,l,c){return this.request(ks(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}xs.prototype[t]=n(),xs.prototype[t+"Form"]=n(!0)});let I7=class tk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const l=new Promise(c=>{r.subscribe(c),o=c}).then(a);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,c){r.reason||(r.reason=new ic(o,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new tk(function(a){t=a}),cancel:t}}};function w7(e){return function(n){return e.apply(null,n)}}function N7(e){return de.isObject(e)&&e.isAxiosError===!0}const gy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gy).forEach(([e,t])=>{gy[t]=e});function nk(e){const t=new xs(e),n=ND(xs.prototype.request,t);return de.extend(n,xs.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return nk(ks(e,a))},n}const at=nk(Bd);at.Axios=xs;at.CanceledError=ic;at.CancelToken=I7;at.isCancel=YD;at.VERSION=ek;at.toFormData=im;at.AxiosError=ut;at.Cancel=at.CanceledError;at.all=function(t){return Promise.all(t)};at.spread=w7;at.isAxiosError=N7;at.mergeConfig=ks;at.AxiosHeaders=Lr;at.formToJSON=e=>qD(de.isHTMLForm(e)?new FormData(e):e);at.getAdapter=JD.getAdapter;at.HttpStatusCode=gy;at.default=at;const{Axios:vre,AxiosError:Tre,CanceledError:_re,isCancel:xre,CancelToken:Are,VERSION:Sre,all:Cre,Cancel:Dre,isAxiosError:kre,spread:Rre,toFormData:Ire,AxiosHeaders:wre,HttpStatusCode:Nre,formToJSON:Ore,getAdapter:Lre,mergeConfig:Mre}=at,Ht="http://localhost/api/v0".replace(/\/+$/,"");let Uo=class{constructor(t,n=Ht,r=at){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},O7=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const qt={},Yt="https://example.com",tt=function(e,t,n){if(n==null)throw new O7(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function yy(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>yy(e,r,n)):Object.keys(t).forEach(r=>yy(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Qt=function(e,...t){const n=new URLSearchParams(e.search);yy(n,t),e.search=n.toString()},ld=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Kt=function(e){return e.pathname+e.search+e.hash},Wt=function(e,t,n,r){return(a=t,o=n)=>{const l={...e.options,url:(a.defaults.baseURL?"":r?.basePath??o)+e.url};return a.request(l)}},L7=function(e){return{getConnection:async(t,n,r={})=>{tt("getConnection","projectName",t),tt("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},getQuerydata:async(t,n,r,a,o={})=>{tt("getQuerydata","projectName",t),tt("getQuerydata","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.sqlStatement=r),a!==void 0&&(m.options=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},getSqlsource:async(t,n,r,a={})=>{tt("getSqlsource","projectName",t),tt("getSqlsource","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}},getTablesource:async(t,n,r,a,o={})=>{tt("getTablesource","projectName",t),tt("getTablesource","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.tableKey=r),a!==void 0&&(m.tablePath=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},getTemporarytable:async(t,n,r,a={})=>{tt("getTemporarytable","projectName",t),tt("getTemporarytable","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}},listConnections:async(t,n={})=>{tt("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};Qt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Kt(a),options:l}},listSchemas:async(t,n,r={})=>{tt("listSchemas","projectName",t),tt("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},listTables:async(t,n,r,a={})=>{tt("listTables","projectName",t),tt("listTables","connectionName",n),tt("listTables","schemaName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={};Qt(l,{});let p=c&&c.headers?c.headers:{};return d.headers={...f,...p,...a.headers},{url:Kt(l),options:d}},testConnection:async(t,n,r={})=>{tt("testConnection","projectName",t),tt("testConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},testConnectionConfiguration:async(t,n={})=>{tt("testConnectionConfiguration","connection",t);const r="/connections/test",a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...n},c={},d={};c["Content-Type"]="application/json",Qt(a,d);let f=o&&o.headers?o.headers:{};return l.headers={...c,...f,...n.headers},l.data=ld(t,l,e),{url:Kt(a),options:l}}}},Ka=function(e){const t=L7(e);return{async getConnection(n,r,a){const o=await t.getConnection(n,r,a),l=e?.serverIndex??0,c=qt["ConnectionsApi.getConnection"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async getQuerydata(n,r,a,o,l){const c=await t.getQuerydata(n,r,a,o,l),d=e?.serverIndex??0,f=qt["ConnectionsApi.getQuerydata"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async getSqlsource(n,r,a,o){const l=await t.getSqlsource(n,r,a,o),c=e?.serverIndex??0,d=qt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)},async getTablesource(n,r,a,o,l){const c=await t.getTablesource(n,r,a,o,l),d=e?.serverIndex??0,f=qt["ConnectionsApi.getTablesource"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async getTemporarytable(n,r,a,o){const l=await t.getTemporarytable(n,r,a,o),c=e?.serverIndex??0,d=qt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)},async listConnections(n,r){const a=await t.listConnections(n,r),o=e?.serverIndex??0,l=qt["ConnectionsApi.listConnections"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async listSchemas(n,r,a){const o=await t.listSchemas(n,r,a),l=e?.serverIndex??0,c=qt["ConnectionsApi.listSchemas"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async listTables(n,r,a,o){const l=await t.listTables(n,r,a,o),c=e?.serverIndex??0,d=qt["ConnectionsApi.listTables"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)},async testConnection(n,r,a){const o=await t.testConnection(n,r,a),l=e?.serverIndex??0,c=qt["ConnectionsApi.testConnection"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async testConnectionConfiguration(n,r){const a=await t.testConnectionConfiguration(n,r),o=e?.serverIndex??0,l=qt["ConnectionsApi.testConnectionConfiguration"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)}}};let rk=class extends Uo{getConnection(t,n,r){return Ka(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,o){return Ka(this.configuration).getQuerydata(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Ka(this.configuration).getSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTablesource(t,n,r,a,o){return Ka(this.configuration).getTablesource(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Ka(this.configuration).getTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return Ka(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ka(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Ka(this.configuration).listTables(t,n,r,a).then(o=>o(this.axios,this.basePath))}testConnection(t,n,r){return Ka(this.configuration).testConnection(t,n,r).then(a=>a(this.axios,this.basePath))}testConnectionConfiguration(t,n){return Ka(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const M7=function(e){return{listDatabases:async(t,n,r,a={})=>{tt("listDatabases","projectName",t),tt("listDatabases","packageName",n);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},P7=function(e){const t=M7(e);return{async listDatabases(n,r,a,o){const l=await t.listDatabases(n,r,a,o),c=e?.serverIndex??0,d=qt["DatabasesApi.listDatabases"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let $7=class extends Uo{listDatabases(t,n,r,a){return P7(this.configuration).listDatabases(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const F7=function(e){return{getModel:async(t,n,r,a,o={})=>{tt("getModel","projectName",t),tt("getModel","packageName",n),tt("getModel","path",r);const l="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},listModels:async(t,n,r,a={})=>{tt("listModels","projectName",t),tt("listModels","packageName",n);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},UA=function(e){const t=F7(e);return{async getModel(n,r,a,o,l){const c=await t.getModel(n,r,a,o,l),d=e?.serverIndex??0,f=qt["ModelsApi.getModel"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async listModels(n,r,a,o){const l=await t.listModels(n,r,a,o),c=e?.serverIndex??0,d=qt["ModelsApi.listModels"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let lm=class extends Uo{getModel(t,n,r,a,o){return UA(this.configuration).getModel(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,a){return UA(this.configuration).listModels(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const B7=function(e){return{getNotebook:async(t,n,r,a,o={})=>{tt("getNotebook","projectName",t),tt("getNotebook","packageName",n),tt("getNotebook","path",r);const l="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},listNotebooks:async(t,n,r,a={})=>{tt("listNotebooks","projectName",t),tt("listNotebooks","packageName",n);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},HA=function(e){const t=B7(e);return{async getNotebook(n,r,a,o,l){const c=await t.getNotebook(n,r,a,o,l),d=e?.serverIndex??0,f=qt["NotebooksApi.getNotebook"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async listNotebooks(n,r,a,o){const l=await t.listNotebooks(n,r,a,o),c=e?.serverIndex??0,d=qt["NotebooksApi.listNotebooks"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let ak=class extends Uo{getNotebook(t,n,r,a,o){return HA(this.configuration).getNotebook(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listNotebooks(t,n,r,a){return HA(this.configuration).listNotebooks(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const j7=function(e){return{createPackage:async(t,n,r={})=>{tt("createPackage","projectName",t),tt("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...r},d={},f={};d["Content-Type"]="application/json",Qt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=ld(n,c,e),{url:Kt(o),options:c}},deletePackage:async(t,n,r={})=>{tt("deletePackage","projectName",t),tt("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},getPackage:async(t,n,r,a,o={})=>{tt("getPackage","projectName",t),tt("getPackage","packageName",n);const l="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.versionId=r),a!==void 0&&(m.reload=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},listPackages:async(t,n={})=>{tt("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};Qt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Kt(a),options:l}},updatePackage:async(t,n,r,a={})=>{tt("updatePackage","projectName",t),tt("updatePackage","packageName",n),tt("updatePackage","body",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"PATCH",...c,...a},f={},p={};f["Content-Type"]="application/json",Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},d.data=ld(r,d,e),{url:Kt(l),options:d}}}},mu=function(e){const t=j7(e);return{async createPackage(n,r,a){const o=await t.createPackage(n,r,a),l=e?.serverIndex??0,c=qt["PackagesApi.createPackage"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async deletePackage(n,r,a){const o=await t.deletePackage(n,r,a),l=e?.serverIndex??0,c=qt["PackagesApi.deletePackage"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async getPackage(n,r,a,o,l){const c=await t.getPackage(n,r,a,o,l),d=e?.serverIndex??0,f=qt["PackagesApi.getPackage"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async listPackages(n,r){const a=await t.listPackages(n,r),o=e?.serverIndex??0,l=qt["PackagesApi.listPackages"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async updatePackage(n,r,a,o){const l=await t.updatePackage(n,r,a,o),c=e?.serverIndex??0,d=qt["PackagesApi.updatePackage"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let ik=class extends Uo{createPackage(t,n,r){return mu(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return mu(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,o){return mu(this.configuration).getPackage(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listPackages(t,n){return mu(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return mu(this.configuration).updatePackage(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const U7=function(e){return{createProject:async(t,n={})=>{tt("createProject","body",t);const r="/projects",a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...n},c={},d={};c["Content-Type"]="application/json",Qt(a,d);let f=o&&o.headers?o.headers:{};return l.headers={...c,...f,...n.headers},l.data=ld(t,l,e),{url:Kt(a),options:l}},deleteProject:async(t,n={})=>{tt("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...n},c={};Qt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Kt(a),options:l}},getProject:async(t,n,r={})=>{tt("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={},f={};n!==void 0&&(f.reload=n),Qt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},{url:Kt(o),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Yt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},l={};Qt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...l,...c,...t.headers},{url:Kt(r),options:o}},updateProject:async(t,n,r={})=>{tt("updateProject","projectName",t),tt("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"PATCH",...l,...r},d={},f={};d["Content-Type"]="application/json",Qt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=ld(n,c,e),{url:Kt(o),options:c}}}},gu=function(e){const t=U7(e);return{async createProject(n,r){const a=await t.createProject(n,r),o=e?.serverIndex??0,l=qt["ProjectsApi.createProject"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async deleteProject(n,r){const a=await t.deleteProject(n,r),o=e?.serverIndex??0,l=qt["ProjectsApi.deleteProject"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async getProject(n,r,a){const o=await t.getProject(n,r,a),l=e?.serverIndex??0,c=qt["ProjectsApi.getProject"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,o=qt["ProjectsApi.listProjects"]?.[a]?.url;return(l,c)=>Wt(r,at,Ht,e)(l,o||c)},async updateProject(n,r,a){const o=await t.updateProject(n,r,a),l=e?.serverIndex??0,c=qt["ProjectsApi.updateProject"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)}}};let ok=class extends Uo{createProject(t,n){return gu(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return gu(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return gu(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return gu(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return gu(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const H7=function(e){return{executeQuery:async(t,n,r,a,o,l,c,d={})=>{tt("executeQuery","projectName",t),tt("executeQuery","packageName",n),tt("executeQuery","path",r);const f="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(f,Yt);let m;e&&(m=e.baseOptions);const y={method:"GET",...m,...d},b={},_={};a!==void 0&&(_.query=a),o!==void 0&&(_.sourceName=o),l!==void 0&&(_.queryName=l),c!==void 0&&(_.versionId=c),Qt(p,_);let A=m&&m.headers?m.headers:{};return y.headers={...b,...A,...d.headers},{url:Kt(p),options:y}}}},z7=function(e){const t=H7(e);return{async executeQuery(n,r,a,o,l,c,d,f){const p=await t.executeQuery(n,r,a,o,l,c,d,f),m=e?.serverIndex??0,y=qt["QueryresultsApi.executeQuery"]?.[m]?.url;return(b,_)=>Wt(p,at,Ht,e)(b,y||_)}}};let cm=class extends Uo{executeQuery(t,n,r,a,o,l,c,d){return z7(this.configuration).executeQuery(t,n,r,a,o,l,c,d).then(f=>f(this.axios,this.basePath))}};const G7=function(e){return{listSchedules:async(t,n,r,a={})=>{tt("listSchedules","projectName",t),tt("listSchedules","packageName",n);const o="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},V7=function(e){const t=G7(e);return{async listSchedules(n,r,a,o){const l=await t.listSchedules(n,r,a,o),c=e?.serverIndex??0,d=qt["SchedulesApi.listSchedules"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let q7=class extends Uo{listSchedules(t,n,r,a){return V7(this.configuration).listSchedules(t,n,r,a).then(o=>o(this.axios,this.basePath))}},Xn=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};var oc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rs=typeof window>"u"||"Deno"in globalThis;function Er(){}function Y7(e,t){return typeof e=="function"?e(t):e}function by(e){return typeof e=="number"&&e>=0&&e!==1/0}function sk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Io(e,t){return typeof e=="function"?e(t):e}function ma(e,t){return typeof e=="function"?e(t):e}function zA(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==Yb(l,t.options))return!1}else if(!cd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function GA(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Is(t.options.mutationKey)!==Is(o))return!1}else if(!cd(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Yb(e,t){return(t?.queryKeyHashFn||Is)(e)}function Is(e){return JSON.stringify(e,(t,n)=>Ey(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function cd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>cd(e[n],t[n])):!1}function lk(e,t){if(e===t)return e;const n=VA(e)&&VA(t);if(n||Ey(e)&&Ey(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),l=o.length,c=n?[]:{},d=new Set(r);let f=0;for(let p=0;p<l;p++){const m=n?p:o[p];(!n&&d.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(c[m]=void 0,f++):(c[m]=lk(e[m],t[m]),c[m]===e[m]&&e[m]!==void 0&&f++)}return a===l&&f===a?e:c}return t}function gp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function VA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ey(e){if(!qA(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!qA(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qA(e){return Object.prototype.toString.call(e)==="[object Object]"}function Q7(e){return new Promise(t=>{setTimeout(t,e)})}function vy(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?lk(e,t):t}function K7(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function W7(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qb=Symbol();function ck(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Qb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function uk(e,t){return typeof e=="function"?e(...t):!!e}var X7=class extends oc{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Rs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Kb=new X7,Z7=class extends oc{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Rs&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},yp=new Z7;function Ty(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function J7(e){return Math.min(1e3*2**e,3e4)}function dk(e){return(e??"online")==="online"?yp.isOnline():!0}var fk=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function a1(e){return e instanceof fk}function hk(e){let t=!1,n=0,r=!1,a;const o=Ty(),l=A=>{r||(y(new fk(A)),e.abort?.())},c=()=>{t=!0},d=()=>{t=!1},f=()=>Kb.isFocused()&&(e.networkMode==="always"||yp.isOnline())&&e.canRun(),p=()=>dk(e.networkMode)&&e.canRun(),m=A=>{r||(r=!0,e.onSuccess?.(A),a?.(),o.resolve(A))},y=A=>{r||(r=!0,e.onError?.(A),a?.(),o.reject(A))},b=()=>new Promise(A=>{a=C=>{(r||f())&&A(C)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),_=()=>{if(r)return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(x){A=Promise.reject(x)}Promise.resolve(A).then(m).catch(x=>{if(r)return;const D=e.retry??(Rs?0:3),S=e.retryDelay??J7,M=typeof S=="function"?S(n,x):S,L=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,x);if(t||!L){y(x);return}n++,e.onFail?.(n,x),Q7(M).then(()=>f()?void 0:b()).then(()=>{t?y(x):_()})})};return{promise:o,cancel:l,continue:()=>(a?.(),o),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?_():b().then(_),o)}}var e8=e=>setTimeout(e,0);function t8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=e8;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{o(()=>{c(...d)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var Un=t8(),pk=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),by(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Rs?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},n8=class extends pk{#t;#e;#n;#r;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=r8(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=vy(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Er).catch(Er):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>ma(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Io(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!sk(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const d=ck(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const c=d=>{a1(d)&&d.silent||this.#i({type:"error",error:d}),a1(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#a=hk({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(f){c(f);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:c,onFail:(d,f)=>{this.#i({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...mk(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return a1(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Un.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function mk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function r8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var a8=class extends oc{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??Yb(r,t);let o=this.get(a);return o||(o=new n8({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Un.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>zA(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>zA(e,n)):t}notify(e){Un.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Un.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Un.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},i8=class extends pk{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||gk(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=hk({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,o)=>{this.#r({type:"failed",failureCount:a,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Un.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function gk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var o8=class extends oc{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new i8({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=bh(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=bh(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=bh(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=bh(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Un.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>GA(t,n))}findAll(e={}){return this.getAll().filter(t=>GA(e,t))}notify(e){Un.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Un.batch(()=>Promise.all(e.map(t=>t.continue().catch(Er))))}};function bh(e){return e.options.scope?.id}function YA(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const m=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=ck(t.options,t.fetchOptions),b=async(_,A,C)=>{if(p)return Promise.reject();if(A==null&&_.pages.length)return Promise.resolve(_);const D=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return m(I),I})(),S=await y(D),{maxPages:M}=t.options,L=C?W7:K7;return{pages:L(_.pages,S,M),pageParams:L(_.pageParams,A,M)}};if(a&&o.length){const _=a==="backward",A=_?s8:QA,C={pages:o,pageParams:l},x=A(r,C);c=await b(C,x,_)}else{const _=e??o.length;do{const A=d===0?l[0]??r.initialPageParam:QA(r,c);if(d>0&&A==null)break;c=await b(c,A),d++}while(d<_)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function QA(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function s8(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var l8=class{#t;#e;#n;#r;#a;#o;#s;#i;constructor(e={}){this.#t=e.queryCache||new a8,this.#e=e.mutationCache||new o8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=Kb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=yp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Io(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,l=Y7(t,o);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Un.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Un.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Un.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Un.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Er).catch(Er)}invalidateQueries(e,t={}){return Un.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Un.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Er)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Er)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Io(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Er).catch(Er)}fetchInfiniteQuery(e){return e.behavior=YA(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Er).catch(Er)}ensureInfiniteQueryData(e){return e.behavior=YA(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yp.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Is(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{cd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Is(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{cd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Yb(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Qb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},c8=class extends oc{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#s=Ty(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#o;#s;#i;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),KA(this.#e,this.options)?this.#d():this.updateResult(),this.#E())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _y(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _y(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#T(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ma(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),t._defaulted&&!gp(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&WA(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||ma(this.options.enabled,this.#e)!==ma(t.enabled,this.#e)||Io(this.options.staleTime,this.#e)!==Io(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||ma(this.options.enabled,this.#e)!==ma(t.enabled,this.#e)||a!==this.#l)&&this.#b(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return d8(this,n)&&(this.#r=n,this.#o=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#_();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Er)),t}#g(){this.#v();const e=Io(this.options.staleTime,this.#e);if(Rs||this.#r.isStale||!by(e))return;const n=sk(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#T(),this.#l=e,!(Rs||ma(this.options.enabled,this.#e)===!1||!by(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Kb.isFocused())&&this.#d()},this.#l))}#E(){this.#g(),this.#b(this.#y())}#v(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,o=this.#a,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},m=!1,y;if(t._optimisticResults){const te=this.hasListeners(),Q=!te&&KA(e,t),k=te&&WA(e,n,t,r);(Q||k)&&(p={...p,...mk(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:_,status:A}=p;y=p.data;let C=!1;if(t.placeholderData!==void 0&&y===void 0&&A==="pending"){let te;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(te=a.data,C=!0):te=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,te!==void 0&&(A="success",y=vy(a?.data,te,t),m=!0)}if(t.select&&y!==void 0&&!C)if(a&&y===o?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=vy(a?.data,y,t),this.#f=y,this.#i=null}catch(te){this.#i=te}this.#i&&(b=this.#i,y=this.#f,_=Date.now(),A="error");const x=p.fetchStatus==="fetching",D=A==="pending",S=A==="error",M=D&&x,L=y!==void 0,V={status:A,fetchStatus:p.fetchStatus,isPending:D,isSuccess:A==="success",isError:S,isInitialLoading:M,isLoading:M,data:y,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:_,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!D,isLoadingError:S&&!L,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&L,isStale:Wb(e,t),refetch:this.refetch,promise:this.#s,isEnabled:ma(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const te=H=>{V.status==="error"?H.reject(V.error):V.data!==void 0&&H.resolve(V.data)},Q=()=>{const H=this.#s=V.promise=Ty();te(H)},k=this.#s;switch(k.status){case"pending":e.queryHash===n.queryHash&&te(k);break;case"fulfilled":(V.status==="error"||V.data!==k.value)&&Q();break;case"rejected":(V.status!=="error"||V.error!==k.reason)&&Q();break}}return V}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#o=this.options,this.#a.data!==void 0&&(this.#h=this.#e),gp(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const o=new Set(a??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&o.has(c)})};this.#x({listeners:n()})}#_(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#E()}#x(e){Un.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function u8(e,t){return ma(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function KA(e,t){return u8(e,t)||e.state.data!==void 0&&_y(e,t,t.refetchOnMount)}function _y(e,t,n){if(ma(t.enabled,e)!==!1&&Io(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Wb(e,t)}return!1}function WA(e,t,n,r){return(e!==t||ma(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Wb(e,n)}function Wb(e,t){return ma(t.enabled,e)!==!1&&e.isStaleByTime(Io(t.staleTime,e))}function d8(e,t){return!gp(e.getCurrentResult(),t)}var f8=class extends oc{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),gp(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Is(n.mutationKey)!==Is(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#o()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??gk();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Un.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},h8=w.createContext(void 0),yk=e=>{const t=w.useContext(h8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},bk=w.createContext(!1),p8=()=>w.useContext(bk);bk.Provider;function m8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var g8=w.createContext(m8()),y8=()=>w.useContext(g8),b8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},E8=e=>{w.useEffect(()=>{e.clearReset()},[e])},v8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||uk(n,[e.error,r])),T8=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_8=(e,t)=>e.isLoading&&e.isFetching&&!t,x8=(e,t)=>e?.suspense&&t.isPending,XA=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function A8(e,t,n){const r=p8(),a=y8(),o=yk(n),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",T8(l),b8(l,a),E8(a);const c=!o.getQueryCache().get(l.queryHash),[d]=w.useState(()=>new t(o,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(m=>{const y=p?d.subscribe(Un.batchCalls(m)):Er;return d.updateResult(),y},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),w.useEffect(()=>{d.setOptions(l)},[l,d]),x8(l,f))throw XA(l,d,a);if(v8({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!Rs&&_8(f,r)&&(c?XA(l,d,a):o.getQueryCache().get(l.queryHash)?.promise)?.catch(Er).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function S8(e,t){return A8(e,c8,t)}function C8(e,t){const n=yk(t),[r]=w.useState(()=>new f8(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const a=w.useSyncExternalStore(w.useCallback(l=>r.subscribe(Un.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=w.useCallback((l,c)=>{r.mutate(l,c).catch(Er)},[r]);if(a.error&&uk(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const Ek=[{id:"abap",name:"ABAP",import:()=>F(()=>import("./index.es246-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>F(()=>import("./index.es247-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>F(()=>import("./index.es248-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>F(()=>import("./index.es249-vQhhZ2LX.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>F(()=>import("./index.es250-CksNcviw.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>F(()=>import("./index.es251-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>F(()=>import("./index.es252-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>F(()=>import("./index.es253-DEUN5ecV.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>F(()=>import("./index.es254-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>F(()=>import("./index.es255-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>F(()=>import("./index.es256-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>F(()=>import("./index.es257-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>F(()=>import("./index.es258-CBBAlEzL.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>F(()=>import("./index.es259-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>F(()=>import("./index.es260-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>F(()=>import("./index.es261-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>F(()=>import("./index.es262-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>F(()=>import("./index.es263-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>F(()=>import("./index.es264-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>F(()=>import("./index.es265-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>F(()=>import("./index.es266-CtlTbXND.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>F(()=>import("./index.es267-DvsB_mYL.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>F(()=>import("./index.es268-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>F(()=>import("./index.es269-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>F(()=>import("./index.es270-Cf0xo1Jt.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>F(()=>import("./index.es271-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>F(()=>import("./index.es272-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>F(()=>import("./index.es273-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>F(()=>import("./index.es274-B3p031dD.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>F(()=>import("./index.es275-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>F(()=>import("./index.es276-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>F(()=>import("./index.es277-CXhkNvQA.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>F(()=>import("./index.es278-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>F(()=>import("./index.es279-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>F(()=>import("./index.es280-CQqCEkit.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>F(()=>import("./index.es281-CQ39VpuA.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>F(()=>import("./index.es282-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>F(()=>import("./index.es283-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>F(()=>import("./index.es284-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>F(()=>import("./index.es285-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>F(()=>import("./index.es286-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>F(()=>import("./index.es287-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>F(()=>import("./index.es288-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>F(()=>import("./index.es289-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>F(()=>import("./index.es290-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>F(()=>import("./index.es291-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>F(()=>import("./index.es292-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>F(()=>import("./index.es293-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>F(()=>import("./index.es294-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>F(()=>import("./index.es295-CsysVRym.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>F(()=>import("./index.es296-C8jPQ3Rr.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>F(()=>import("./index.es297-6_Wr58nd.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>F(()=>import("./index.es298-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>F(()=>import("./index.es299-DZRKfkIp.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>F(()=>import("./index.es300-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>F(()=>import("./index.es301-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>F(()=>import("./index.es302-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>F(()=>import("./index.es303-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>F(()=>import("./index.es304-C22MomE6.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>F(()=>import("./index.es305-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>F(()=>import("./index.es306-CikFelEc.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>F(()=>import("./index.es307-DDdo8Cr7.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>F(()=>import("./index.es308-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>F(()=>import("./index.es309-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>F(()=>import("./index.es310-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>F(()=>import("./index.es311--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>F(()=>import("./index.es312-7wk1sW9I.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>F(()=>import("./index.es313-DjB156D0.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>F(()=>import("./index.es314-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>F(()=>import("./index.es315-CECan3M6.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>F(()=>import("./index.es316-BpzAZiXB.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>F(()=>import("./index.es317-B7DYWrJm.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>F(()=>import("./index.es318-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>F(()=>import("./index.es319-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>F(()=>import("./index.es320-CIh8KUcG.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>F(()=>import("./index.es321-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>F(()=>import("./index.es322-Cfczm2Bl.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>F(()=>import("./index.es323-CjaPjt8z.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>F(()=>import("./index.es324-DM8bgB31.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>F(()=>import("./index.es325-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>F(()=>import("./index.es326-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>F(()=>import("./index.es327-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>F(()=>import("./index.es328-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>F(()=>import("./index.es329-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>F(()=>import("./index.es330-CgQ5IRSZ.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>F(()=>import("./index.es331-1Kn64e9h.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>F(()=>import("./index.es332-C5S6SaRd.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>F(()=>import("./index.es333-DRNI3y8C.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>F(()=>import("./index.es334-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>F(()=>import("./index.es335-Bky6ujZj.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>F(()=>import("./index.es336-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>F(()=>import("./index.es337-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>F(()=>import("./index.es338-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>F(()=>import("./index.es339-BlKzDsx7.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>F(()=>import("./index.es340-CV2drMme.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>F(()=>import("./index.es341-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>F(()=>import("./index.es342-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>F(()=>import("./index.es343-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>F(()=>import("./index.es344-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>F(()=>import("./index.es345-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>F(()=>import("./index.es346-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>F(()=>import("./index.es347-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>F(()=>import("./index.es348-RwB794xL.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>F(()=>import("./index.es349-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>F(()=>import("./index.es350-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>F(()=>import("./index.es351-DxXG49oC.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>F(()=>import("./index.es352-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>F(()=>import("./index.es353-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>F(()=>import("./index.es354-CblwWSRe.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>F(()=>import("./index.es355-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>F(()=>import("./index.es356-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>F(()=>import("./index.es357-zGM2IebW.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>F(()=>import("./index.es358-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>F(()=>import("./index.es359-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>F(()=>import("./index.es360-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>F(()=>import("./index.es361-CGhlwrAl.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>F(()=>import("./index.es362-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>F(()=>import("./index.es363-BMG8Qu1P.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>F(()=>import("./index.es364-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>F(()=>import("./index.es365-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>F(()=>import("./index.es366-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>F(()=>import("./index.es367-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>F(()=>import("./index.es368-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>F(()=>import("./index.es369-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>F(()=>import("./index.es370-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>F(()=>import("./index.es371-DOrO3dlY.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>F(()=>import("./index.es372-C3qt3nbG.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>F(()=>import("./index.es373-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>F(()=>import("./index.es374-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>F(()=>import("./index.es375-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>F(()=>import("./index.es376-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>F(()=>import("./index.es377-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>F(()=>import("./index.es378-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>F(()=>import("./index.es379-ozNxe-JA.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>F(()=>import("./index.es380-D-1e6bJP.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>F(()=>import("./index.es381-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>F(()=>import("./index.es382-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>F(()=>import("./index.es383-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>F(()=>import("./index.es384-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>F(()=>import("./index.es385-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>F(()=>import("./index.es386-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>F(()=>import("./index.es387-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>F(()=>import("./index.es388-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>F(()=>import("./index.es389-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>F(()=>import("./index.es390-JWq4SvhU.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>F(()=>import("./index.es391-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>F(()=>import("./index.es392-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>F(()=>import("./index.es393-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>F(()=>import("./index.es394-BqfF9xAw.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>F(()=>import("./index.es395-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>F(()=>import("./index.es396-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>F(()=>import("./index.es397-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>F(()=>import("./index.es398-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>F(()=>import("./index.es399-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>F(()=>import("./index.es400-DFk1u2rb.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>F(()=>import("./index.es401-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>F(()=>import("./index.es402-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>F(()=>import("./index.es403-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>F(()=>import("./index.es404-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>F(()=>import("./index.es405-B44zXQ2s.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>F(()=>import("./index.es406-DtZqlgbp.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>F(()=>import("./index.es407-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>F(()=>import("./index.es408-CMnKExjm.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>F(()=>import("./index.es409-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>F(()=>import("./index.es410-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>F(()=>import("./index.es411-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>F(()=>import("./index.es412-BUhztRl-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>F(()=>import("./index.es413-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>F(()=>import("./index.es414-BTSAIgvA.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>F(()=>import("./index.es415-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>F(()=>import("./index.es416-hhTkRuCJ.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>F(()=>import("./index.es417-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>F(()=>import("./index.es418-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>F(()=>import("./index.es419-DThbt6Ye.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>F(()=>import("./index.es420-BJwAPUTz.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>F(()=>import("./index.es421-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>F(()=>import("./index.es422-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>F(()=>import("./index.es423-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>F(()=>import("./index.es424-C0rPM_VP.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>F(()=>import("./index.es425-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>F(()=>import("./index.es426-RDpd2VRz.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>F(()=>import("./index.es427-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>F(()=>import("./index.es428-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>F(()=>import("./index.es429-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>F(()=>import("./index.es430-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>F(()=>import("./index.es431-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>F(()=>import("./index.es432-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>F(()=>import("./index.es433-BhZ0-KPw.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>F(()=>import("./index.es434-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>F(()=>import("./index.es435-DZeQaCUO.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>F(()=>import("./index.es436-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>F(()=>import("./index.es437-B9GL_sFZ.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>F(()=>import("./index.es438-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>F(()=>import("./index.es439-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>F(()=>import("./index.es440-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>F(()=>import("./index.es441-CTE1R4Hu.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>F(()=>import("./index.es442-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>F(()=>import("./index.es443-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>F(()=>import("./index.es444-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>F(()=>import("./index.es445-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>F(()=>import("./index.es446-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>F(()=>import("./index.es447-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>F(()=>import("./index.es448-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>F(()=>import("./index.es449-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>F(()=>import("./index.es450-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>F(()=>import("./index.es451-kJsmP3kY.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>F(()=>import("./index.es452-B31qAn1V.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>F(()=>import("./index.es453-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>F(()=>import("./index.es454-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>F(()=>import("./index.es455-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>F(()=>import("./index.es456-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>F(()=>import("./index.es457-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>F(()=>import("./index.es458-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>F(()=>import("./index.es459-CC57CidG.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>F(()=>import("./index.es460-Cid_wmHI.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>F(()=>import("./index.es461-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>F(()=>import("./index.es462-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>F(()=>import("./index.es463-BVz_zdnA.js"),[])}],D8=Object.fromEntries(Ek.map(e=>[e.id,e.import])),k8=Object.fromEntries(Ek.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),R8={...D8,...k8},I8=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>F(()=>import("./index.es464-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>F(()=>import("./index.es465-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>F(()=>import("./index.es466-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>F(()=>import("./index.es467-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>F(()=>import("./index.es468-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>F(()=>import("./index.es469-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>F(()=>import("./index.es470-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>F(()=>import("./index.es471-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>F(()=>import("./index.es472-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>F(()=>import("./index.es473-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>F(()=>import("./index.es474-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>F(()=>import("./index.es475-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>F(()=>import("./index.es476-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>F(()=>import("./index.es477-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>F(()=>import("./index.es478-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>F(()=>import("./index.es479-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>F(()=>import("./index.es480-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>F(()=>import("./index.es481-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>F(()=>import("./index.es482-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>F(()=>import("./index.es483-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>F(()=>import("./index.es484-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>F(()=>import("./index.es485-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>F(()=>import("./index.es486-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>F(()=>import("./index.es487-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>F(()=>import("./index.es488-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>F(()=>import("./index.es489-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>F(()=>import("./index.es490-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>F(()=>import("./index.es491-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>F(()=>import("./index.es492-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>F(()=>import("./index.es493-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>F(()=>import("./index.es494-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>F(()=>import("./index.es495-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>F(()=>import("./index.es496-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>F(()=>import("./index.es497-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>F(()=>import("./index.es498-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>F(()=>import("./index.es499-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>F(()=>import("./index.es500-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>F(()=>import("./index.es501-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>F(()=>import("./index.es502-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>F(()=>import("./index.es503-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>F(()=>import("./index.es504-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>F(()=>import("./index.es505-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>F(()=>import("./index.es506-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>F(()=>import("./index.es507-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>F(()=>import("./index.es508-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>F(()=>import("./index.es509-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>F(()=>import("./index.es510-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>F(()=>import("./index.es511-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>F(()=>import("./index.es512-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>F(()=>import("./index.es513-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>F(()=>import("./index.es514-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>F(()=>import("./index.es515-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>F(()=>import("./index.es516-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>F(()=>import("./index.es517-CVO1_9PV.js"),[])}],w8=Object.fromEntries(I8.map(e=>[e.id,e.import]));let Bi=class extends Error{constructor(t){super(t),this.name="ShikiError"}},Xb=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function N8(){return 2147483648}function O8(){return typeof performance<"u"?performance.now():Date.now()}const L8=(e,t)=>e+(t-e%t)%t;async function M8(e){let t,n;const r={};function a(b){n=b,r.HEAPU8=new Uint8Array(b),r.HEAPU32=new Uint32Array(b)}function o(b,_,A){r.HEAPU8.copyWithin(b,_,_+A)}function l(b){try{return t.grow(b-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(b){const _=r.HEAPU8.length;b=b>>>0;const A=N8();if(b>A)return!1;for(let C=1;C<=4;C*=2){let x=_*(1+.2/C);x=Math.min(x,b+100663296);const D=Math.min(A,L8(Math.max(b,x),65536));if(l(D))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(b,_,A=1024){const C=_+A;let x=_;for(;b[x]&&!(x>=C);)++x;if(x-_>16&&b.buffer&&d)return d.decode(b.subarray(_,x));let D="";for(;_<x;){let S=b[_++];if(!(S&128)){D+=String.fromCharCode(S);continue}const M=b[_++]&63;if((S&224)===192){D+=String.fromCharCode((S&31)<<6|M);continue}const L=b[_++]&63;if((S&240)===224?S=(S&15)<<12|M<<6|L:S=(S&7)<<18|M<<12|L<<6|b[_++]&63,S<65536)D+=String.fromCharCode(S);else{const I=S-65536;D+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return D}function p(b,_){return b?f(r.HEAPU8,b,_):""}const m={emscripten_get_now:O8,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function y(){const b=await e({env:m,wasi_snapshot_preview1:m});t=b.memory,a(t.buffer),Object.assign(r,b),r.UTF8ToString=p}return await y(),r}var P8=Object.defineProperty,$8=(e,t,n)=>t in e?P8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jn=(e,t,n)=>($8(e,typeof t!="symbol"?t+"":t,n),n);let Qn=null;function F8(e){throw new Xb(e.UTF8ToString(e.getLastOnigError()))}let vk=class Tk{constructor(t){jn(this,"utf16Length"),jn(this,"utf8Length"),jn(this,"utf16Value"),jn(this,"utf8Value"),jn(this,"utf16OffsetToUtf8"),jn(this,"utf8OffsetToUtf16");const n=t.length,r=Tk._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const c=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let m=p,y=!1;if(p>=55296&&p<=56319&&f+1<n){const b=t.charCodeAt(f+1);b>=56320&&b<=57343&&(m=(p-55296<<10)+65536|b-56320,y=!0)}a&&(o[f]=d,y&&(o[f+1]=d),m<=127?l[d+0]=f:m<=2047?(l[d+0]=f,l[d+1]=f):m<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),m<=127?c[d++]=m:m<=2047?(c[d++]=192|(m&1984)>>>6,c[d++]=128|(m&63)>>>0):m<=65535?(c[d++]=224|(m&61440)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0):(c[d++]=240|(m&1835008)>>>18,c[d++]=128|(m&258048)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0),y&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let l=o,c=!1;if(o>=55296&&o<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(o-55296<<10)+65536|d-56320,c=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const Xa=class{constructor(t){if(jn(this,"id",++Xa.LAST_ID),jn(this,"_onigBinding"),jn(this,"content"),jn(this,"utf16Length"),jn(this,"utf8Length"),jn(this,"utf16OffsetToUtf8"),jn(this,"utf8OffsetToUtf16"),jn(this,"ptr"),!Qn)throw new Xb("Must invoke loadWasm first.");this._onigBinding=Qn,this.content=t;const n=new vk(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Xa._sharedPtrInUse?(Xa._sharedPtr||(Xa._sharedPtr=Qn.omalloc(1e4)),Xa._sharedPtrInUse=!0,Qn.HEAPU8.set(n.utf8Value,Xa._sharedPtr),this.ptr=Xa._sharedPtr):this.ptr=n.createString(Qn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Xa._sharedPtr?Xa._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let jd=Xa;jn(jd,"LAST_ID",0);jn(jd,"_sharedPtr",0);jn(jd,"_sharedPtrInUse",!1);let B8=class{constructor(t){if(jn(this,"_onigBinding"),jn(this,"_ptr"),!Qn)throw new Xb("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,d=t.length;c<d;c++){const f=new vk(t[c]);n[c]=f.createString(Qn),r[c]=f.utf8Length}const a=Qn.omalloc(4*t.length);Qn.HEAPU32.set(n,a/4);const o=Qn.omalloc(4*t.length);Qn.HEAPU32.set(r,o/4);const l=Qn.createOnigScanner(a,o,t.length);for(let c=0,d=t.length;c<d;c++)Qn.ofree(n[c]);Qn.ofree(o),Qn.ofree(a),l===0&&F8(Qn),this._onigBinding=Qn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new jd(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const c=o.HEAPU32;let d=l/4;const f=c[d++],p=c[d++],m=[];for(let y=0;y<p;y++){const b=t.convertUtf8OffsetToUtf16(c[d++]),_=t.convertUtf8OffsetToUtf16(c[d++]);m[y]={start:b,end:_,length:_-b}}return{index:f,captureIndices:m}}};function j8(e){return typeof e.instantiator=="function"}function U8(e){return typeof e.default=="function"}function H8(e){return typeof e.data<"u"}function z8(e){return typeof Response<"u"&&e instanceof Response}function G8(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Eh;function V8(e){if(Eh)return Eh;async function t(){Qn=await M8(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),j8(r)?r=await r.instantiator(n):U8(r)?r=await r.default(n):(H8(r)&&(r=r.data),z8(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await q8(r)(n):r=await Y8(r)(n):G8(r)?r=await i1(r)(n):r instanceof WebAssembly.Module?r=await i1(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await i1(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Eh=t(),Eh}function i1(e){return t=>WebAssembly.instantiate(e,t)}function q8(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Y8(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Q8;function K8(){return Q8}async function _k(e){return e&&await V8(e),{createScanner(t){return new B8(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new jd(t)}}}function W8(e){return Zb(e)}function Zb(e){return Array.isArray(e)?X8(e):e instanceof RegExp?e:typeof e=="object"?Z8(e):e}function X8(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Zb(e[n]);return t}function Z8(e){let t={};for(let n in e)t[n]=Zb(e[n]);return t}function xk(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Ak(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Ak(e.substring(0,e.length-1)):e.substr(~t+1)}var o1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,vh=class{static hasCaptures(t){return t===null?!1:(o1.lastIndex=0,o1.test(t))}static replaceCaptures(t,n,r){return t.replace(o1,(a,o,l,c)=>{let d=r[parseInt(o||l,10)];if(d){let f=n.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(c){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return a})}};function Sk(e,t){return e<t?-1:e>t?1:0}function Ck(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=Sk(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function ZA(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Dk(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var kk=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},bp=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(t$(t),n)}static createFromParsedTheme(t,n){return r$(t,n)}_cachedMatchRoot=new kk(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(a=>J8(t.parent,a.parentScopes));return r?new Rk(r.fontStyle,r.foreground,r.background):null}},s1=class zh{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new zh(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new zh(n,t[r]);return n}push(t){return new zh(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function J8(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!e$(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function e$(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Rk=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function t$(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let l=t[a];if(!l.settings)continue;let c;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(l.scope)?c=l.scope:c=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let m=l.settings.fontStyle.split(" ");for(let y=0,b=m.length;y<b;y++)switch(m[y]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&ZA(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&ZA(l.settings.background)&&(p=l.settings.background);for(let m=0,y=c.length;m<y;m++){let b=c[m].trim().split(" "),_=b[b.length-1],A=null;b.length>1&&(A=b.slice(0,b.length-1),A.reverse()),n[r++]=new n$(_,A,a,d,f,p)}}return n}var n$=class{constructor(t,n,r,a,o,l){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=l}},Fi=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Fi||{});function r$(e,t){e.sort((d,f)=>{let p=Sk(d.scope,f.scope);return p!==0||(p=Ck(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let o=new a$(t),l=new Rk(n,o.getId(r),o.getId(a)),c=new o$(new xy(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let p=e[d];c.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new bp(o,l,c)}var a$=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},i$=Object.freeze([]),xy=class Ik{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||i$,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new Ik(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},o$=class Ay{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Ay._cmpBySpecificity),n}insert(t,n,r,a,o,l){if(n===""){this._doInsertHere(t,r,a,o,l);return}let c=n.indexOf("."),d,f;c===-1?(d=n,f=""):(d=n.substring(0,c),f=n.substring(c+1));let p;this._children.hasOwnProperty(d)?p=this._children[d]:(p=new Ay(this._mainRule.clone(),xy.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,a,o,l)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let l=0,c=this._rulesWithParentScopes.length;l<c;l++){let d=this._rulesWithParentScopes[l];if(Ck(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new xy(t,n,r,a,o))}},Xl=class da{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=da.getLanguageId(t),r=da.getTokenType(t),a=da.getFontStyle(t),o=da.getForeground(t),l=da.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,l,c){let d=da.getLanguageId(t),f=da.getTokenType(t),p=da.containsBalancedBrackets(t)?1:0,m=da.getFontStyle(t),y=da.getForeground(t),b=da.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),o!==-1&&(m=o),l!==0&&(y=l),c!==0&&(b=c),(d<<0|f<<8|p<<10|m<<11|y<<15|b<<24)>>>0}};function Ep(e,t){const n=[],r=s$(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const d=o();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=c();return a===")"&&(a=r.next()),d}if(JA(a)){const d=[];do d.push(a),a=r.next();while(JA(a));return f=>t(d,f)}return null}function l(){const d=[];let f=o();for(;f;)d.push(f),f=o();return p=>d.every(m=>m(p))}function c(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return p=>d.some(m=>m(p))}}function JA(e){return!!e&&!!e.match(/[\w\.:]+/)}function s$(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function wk(e){typeof e.dispose=="function"&&e.dispose()}var ud=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},l$=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},c$=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},u$=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ud(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new c$;for(const r of t)d$(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof ud){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function d$(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof ud?Gh({baseGrammar:o,selfGrammar:a},r):Sy(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const c of l)r.add(new ud(c))}function Sy(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];vp([r],t,n)}}function Gh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&vp(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&vp(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function vp(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?xk({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&vp(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const l=Nk(o);switch(l.kind){case 0:Gh({...t,selfGrammar:t.baseGrammar},n);break;case 1:Gh(t,n);break;case 2:Sy(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const d={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};l.kind===4?Sy(l.ruleName,d,n):Gh(d,n)}else l.kind===4?n.add(new l$(l.scopeName,l.ruleName)):n.add(new ud(l.scopeName));break}}}var f$=class{kind=0},h$=class{kind=1},p$=class{constructor(t){this.ruleName=t}kind=2},m$=class{constructor(t){this.scopeName=t}kind=3},g$=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function Nk(e){if(e==="$base")return new f$;if(e==="$self")return new h$;const t=e.indexOf("#");if(t===-1)return new m$(e);if(t===0)return new p$(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new g$(n,r)}}var y$=/\\(\d+)/,eS=/\\(\d+)/g,b$=-1,Ok=-2,Ud=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=vh.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=vh.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Ak(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:vh.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:vh.replaceCaptures(this._contentName,t,n)}},E$=class extends Ud{retokenizeCapturedWithRuleId;constructor(t,n,r,a,o){super(t,n,r,a),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},v$=class extends Ud{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new dd(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tS=class extends Ud{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,a),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Cy=class extends Ud{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o,l,c,d,f,p){super(t,n,r,a),this._begin=new dd(o,this.id),this.beginCaptures=l,this._end=new dd(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=f||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fd;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Tp=class extends Ud{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,o,l,c,d,f){super(t,n,r,a),this._begin=new dd(o,this.id),this.beginCaptures=l,this.whileCaptures=d,this._while=new dd(c,Ok),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fd;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new fd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},Lk=class sr{static createCaptureRule(t,n,r,a,o){return t.registerRule(l=>new E$(n,l,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new v$(t.$vscodeTextmateLocation,t.id,t.name,t.match,sr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=xk({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new tS(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,sr._compilePatterns(o,n,r))}return t.while?new Tp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,sr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,sr._compileCaptures(t.whileCaptures||t.captures,n,r),sr._compilePatterns(t.patterns,n,r)):new Cy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,sr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,sr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,sr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);c>o&&(o=c)}for(let l=0;l<=o;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);let d=0;t[l].patterns&&(d=sr.getCompiledRuleId(t[l],n,r)),a[c]=sr.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,l=t.length;o<l;o++){const c=t[o];let d=-1;if(c.include){const f=Nk(c.include);switch(f.kind){case 0:case 1:d=sr.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=sr.getCompiledRuleId(p,n,r));break;case 3:case 4:const m=f.scopeName,y=f.kind===4?f.ruleName:null,b=n.getExternalGrammar(m,r);if(b)if(y){let _=b.repository[y];_&&(d=sr.getCompiledRuleId(_,n,b.repository))}else d=sr.getCompiledRuleId(b.repository.$self,n,b.repository);break}}else d=sr.getCompiledRuleId(c,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof tS||f instanceof Cy||f instanceof Tp)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},dd=class Mk{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],l=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const d=t.charAt(c+1);d==="z"?(o.push(t.substring(a,c)),o.push("$(?!\\n)(?<!\\n)"),a=c+2):(d==="A"||d==="G")&&(l=!0),c++}this.hasAnchor=l,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=y$.test(this.source):this.hasBackReferences=!1}clone(){return new Mk(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return eS.lastIndex=0,this.source.replace(eS,(a,o)=>Dk(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,l,c,d;for(o=0,l=this.source.length;o<l;o++)c=this.source.charAt(o),t[o]=c,n[o]=c,r[o]=c,a[o]=c,c==="\\"&&o+1<l&&(d=this.source.charAt(o+1),d==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",a[o+1]="A"):d==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",a[o+1]="G"):(t[o+1]=d,n[o+1]=d,r[o+1]=d,a[o+1]=d),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},fd=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new nS(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let a=this._items.map(o=>o.resolveAnchors(n,r));return new nS(t,a,this._items.map(o=>o.ruleId))}},nS=class{constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
|
|
58
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ks(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Hh.assertOptions(r,{silentJSONParsing:Qa.transitional(Qa.boolean),forcedJSONParsing:Qa.transitional(Qa.boolean),clarifyTimeoutError:Qa.transitional(Qa.boolean)},!1),a!=null&&(de.isFunction(a)?n.paramsSerializer={serialize:a}:Hh.assertOptions(a,{encode:Qa.function,serialize:Qa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hh.assertOptions(n,{baseUrl:Qa.spelling("baseURL"),withXsrfToken:Qa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=o&&de.merge(o.common,o[n.method]);o&&de.forEach(["delete","get","head","post","put","patch","common"],_=>{delete o[_]}),n.headers=Lr.concat(l,o);const c=[];let d=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(n)===!1||(d=d&&A.synchronous,c.unshift(A.fulfilled,A.rejected))});const f=[];this.interceptors.response.forEach(function(A){f.push(A.fulfilled,A.rejected)});let p,m=0,y;if(!d){const _=[BA.bind(this),void 0];for(_.unshift(...c),_.push(...f),y=_.length,p=Promise.resolve(n);m<y;)p=p.then(_[m++],_[m++]);return p}y=c.length;let b=n;for(m=0;m<y;){const _=c[m++],A=c[m++];try{b=_(b)}catch(C){A.call(this,C);break}}try{p=BA.call(this,b)}catch(_){return Promise.reject(_)}for(m=0,y=f.length;m<y;)p=p.then(f[m++],f[m++]);return p}getUri(t){t=ks(this.defaults,t);const n=KD(t.baseURL,t.url,t.allowAbsoluteUrls);return GD(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){xs.prototype[t]=function(n,r){return this.request(ks(r||{},{method:t,url:n,data:(r||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(r){return function(o,l,c){return this.request(ks(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}xs.prototype[t]=n(),xs.prototype[t+"Form"]=n(!0)});let I7=class tk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const l=new Promise(c=>{r.subscribe(c),o=c}).then(a);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,c){r.reason||(r.reason=new ic(o,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new tk(function(a){t=a}),cancel:t}}};function w7(e){return function(n){return e.apply(null,n)}}function N7(e){return de.isObject(e)&&e.isAxiosError===!0}const gy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gy).forEach(([e,t])=>{gy[t]=e});function nk(e){const t=new xs(e),n=ND(xs.prototype.request,t);return de.extend(n,xs.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return nk(ks(e,a))},n}const at=nk(Bd);at.Axios=xs;at.CanceledError=ic;at.CancelToken=I7;at.isCancel=YD;at.VERSION=ek;at.toFormData=im;at.AxiosError=ut;at.Cancel=at.CanceledError;at.all=function(t){return Promise.all(t)};at.spread=w7;at.isAxiosError=N7;at.mergeConfig=ks;at.AxiosHeaders=Lr;at.formToJSON=e=>qD(de.isHTMLForm(e)?new FormData(e):e);at.getAdapter=JD.getAdapter;at.HttpStatusCode=gy;at.default=at;const{Axios:vre,AxiosError:Tre,CanceledError:_re,isCancel:xre,CancelToken:Are,VERSION:Sre,all:Cre,Cancel:Dre,isAxiosError:kre,spread:Rre,toFormData:Ire,AxiosHeaders:wre,HttpStatusCode:Nre,formToJSON:Ore,getAdapter:Lre,mergeConfig:Mre}=at,Ht="http://localhost/api/v0".replace(/\/+$/,"");let Uo=class{constructor(t,n=Ht,r=at){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}configuration},O7=class extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}};const qt={},Yt="https://example.com",tt=function(e,t,n){if(n==null)throw new O7(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function yy(e,t,n=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(r=>yy(e,r,n)):Object.keys(t).forEach(r=>yy(e,t[r],`${n}${n!==""?".":""}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const Qt=function(e,...t){const n=new URLSearchParams(e.search);yy(n,t),e.search=n.toString()},ld=function(e,t,n){const r=typeof e!="string";return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Kt=function(e){return e.pathname+e.search+e.hash},Wt=function(e,t,n,r){return(a=t,o=n)=>{const l={...e.options,url:(a.defaults.baseURL?"":r?.basePath??o)+e.url};return a.request(l)}},L7=function(e){return{getConnection:async(t,n,r={})=>{tt("getConnection","projectName",t),tt("getConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},getQuerydata:async(t,n,r,a,o={})=>{tt("getQuerydata","projectName",t),tt("getQuerydata","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.sqlStatement=r),a!==void 0&&(m.options=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},getSqlsource:async(t,n,r,a={})=>{tt("getSqlsource","projectName",t),tt("getSqlsource","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}},getTablesource:async(t,n,r,a,o={})=>{tt("getTablesource","projectName",t),tt("getTablesource","connectionName",n);const l="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.tableKey=r),a!==void 0&&(m.tablePath=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},getTemporarytable:async(t,n,r,a={})=>{tt("getTemporarytable","projectName",t),tt("getTemporarytable","connectionName",n);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.sqlStatement=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}},listConnections:async(t,n={})=>{tt("listConnections","projectName",t);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};Qt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Kt(a),options:l}},listSchemas:async(t,n,r={})=>{tt("listSchemas","projectName",t),tt("listSchemas","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},listTables:async(t,n,r,a={})=>{tt("listTables","projectName",t),tt("listTables","connectionName",n),tt("listTables","schemaName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))).replace("{schemaName}",encodeURIComponent(String(r))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={};Qt(l,{});let p=c&&c.headers?c.headers:{};return d.headers={...f,...p,...a.headers},{url:Kt(l),options:d}},testConnection:async(t,n,r={})=>{tt("testConnection","projectName",t),tt("testConnection","connectionName",n);const a="/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}",encodeURIComponent(String(t))).replace("{connectionName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},testConnectionConfiguration:async(t,n={})=>{tt("testConnectionConfiguration","connection",t);const r="/connections/test",a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...n},c={},d={};c["Content-Type"]="application/json",Qt(a,d);let f=o&&o.headers?o.headers:{};return l.headers={...c,...f,...n.headers},l.data=ld(t,l,e),{url:Kt(a),options:l}}}},Ka=function(e){const t=L7(e);return{async getConnection(n,r,a){const o=await t.getConnection(n,r,a),l=e?.serverIndex??0,c=qt["ConnectionsApi.getConnection"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async getQuerydata(n,r,a,o,l){const c=await t.getQuerydata(n,r,a,o,l),d=e?.serverIndex??0,f=qt["ConnectionsApi.getQuerydata"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async getSqlsource(n,r,a,o){const l=await t.getSqlsource(n,r,a,o),c=e?.serverIndex??0,d=qt["ConnectionsApi.getSqlsource"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)},async getTablesource(n,r,a,o,l){const c=await t.getTablesource(n,r,a,o,l),d=e?.serverIndex??0,f=qt["ConnectionsApi.getTablesource"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async getTemporarytable(n,r,a,o){const l=await t.getTemporarytable(n,r,a,o),c=e?.serverIndex??0,d=qt["ConnectionsApi.getTemporarytable"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)},async listConnections(n,r){const a=await t.listConnections(n,r),o=e?.serverIndex??0,l=qt["ConnectionsApi.listConnections"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async listSchemas(n,r,a){const o=await t.listSchemas(n,r,a),l=e?.serverIndex??0,c=qt["ConnectionsApi.listSchemas"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async listTables(n,r,a,o){const l=await t.listTables(n,r,a,o),c=e?.serverIndex??0,d=qt["ConnectionsApi.listTables"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)},async testConnection(n,r,a){const o=await t.testConnection(n,r,a),l=e?.serverIndex??0,c=qt["ConnectionsApi.testConnection"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async testConnectionConfiguration(n,r){const a=await t.testConnectionConfiguration(n,r),o=e?.serverIndex??0,l=qt["ConnectionsApi.testConnectionConfiguration"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)}}};let rk=class extends Uo{getConnection(t,n,r){return Ka(this.configuration).getConnection(t,n,r).then(a=>a(this.axios,this.basePath))}getQuerydata(t,n,r,a,o){return Ka(this.configuration).getQuerydata(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getSqlsource(t,n,r,a){return Ka(this.configuration).getSqlsource(t,n,r,a).then(o=>o(this.axios,this.basePath))}getTablesource(t,n,r,a,o){return Ka(this.configuration).getTablesource(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}getTemporarytable(t,n,r,a){return Ka(this.configuration).getTemporarytable(t,n,r,a).then(o=>o(this.axios,this.basePath))}listConnections(t,n){return Ka(this.configuration).listConnections(t,n).then(r=>r(this.axios,this.basePath))}listSchemas(t,n,r){return Ka(this.configuration).listSchemas(t,n,r).then(a=>a(this.axios,this.basePath))}listTables(t,n,r,a){return Ka(this.configuration).listTables(t,n,r,a).then(o=>o(this.axios,this.basePath))}testConnection(t,n,r){return Ka(this.configuration).testConnection(t,n,r).then(a=>a(this.axios,this.basePath))}testConnectionConfiguration(t,n){return Ka(this.configuration).testConnectionConfiguration(t,n).then(r=>r(this.axios,this.basePath))}};const M7=function(e){return{listDatabases:async(t,n,r,a={})=>{tt("listDatabases","projectName",t),tt("listDatabases","packageName",n);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},P7=function(e){const t=M7(e);return{async listDatabases(n,r,a,o){const l=await t.listDatabases(n,r,a,o),c=e?.serverIndex??0,d=qt["DatabasesApi.listDatabases"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let $7=class extends Uo{listDatabases(t,n,r,a){return P7(this.configuration).listDatabases(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const F7=function(e){return{getModel:async(t,n,r,a,o={})=>{tt("getModel","projectName",t),tt("getModel","packageName",n),tt("getModel","path",r);const l="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},listModels:async(t,n,r,a={})=>{tt("listModels","projectName",t),tt("listModels","packageName",n);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},UA=function(e){const t=F7(e);return{async getModel(n,r,a,o,l){const c=await t.getModel(n,r,a,o,l),d=e?.serverIndex??0,f=qt["ModelsApi.getModel"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async listModels(n,r,a,o){const l=await t.listModels(n,r,a,o),c=e?.serverIndex??0,d=qt["ModelsApi.listModels"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let lm=class extends Uo{getModel(t,n,r,a,o){return UA(this.configuration).getModel(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listModels(t,n,r,a){return UA(this.configuration).listModels(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const B7=function(e){return{getNotebook:async(t,n,r,a,o={})=>{tt("getNotebook","projectName",t),tt("getNotebook","packageName",n),tt("getNotebook","path",r);const l="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};a!==void 0&&(m.versionId=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},listNotebooks:async(t,n,r,a={})=>{tt("listNotebooks","projectName",t),tt("listNotebooks","packageName",n);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},HA=function(e){const t=B7(e);return{async getNotebook(n,r,a,o,l){const c=await t.getNotebook(n,r,a,o,l),d=e?.serverIndex??0,f=qt["NotebooksApi.getNotebook"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async listNotebooks(n,r,a,o){const l=await t.listNotebooks(n,r,a,o),c=e?.serverIndex??0,d=qt["NotebooksApi.listNotebooks"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let ak=class extends Uo{getNotebook(t,n,r,a,o){return HA(this.configuration).getNotebook(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listNotebooks(t,n,r,a){return HA(this.configuration).listNotebooks(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const j7=function(e){return{createPackage:async(t,n,r={})=>{tt("createPackage","projectName",t),tt("createPackage","body",n);const a="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...r},d={},f={};d["Content-Type"]="application/json",Qt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=ld(n,c,e),{url:Kt(o),options:c}},deletePackage:async(t,n,r={})=>{tt("deletePackage","projectName",t),tt("deletePackage","packageName",n);const a="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...r},d={};Qt(o,{});let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...r.headers},{url:Kt(o),options:c}},getPackage:async(t,n,r,a,o={})=>{tt("getPackage","projectName",t),tt("getPackage","packageName",n);const l="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),c=new URL(l,Yt);let d;e&&(d=e.baseOptions);const f={method:"GET",...d,...o},p={},m={};r!==void 0&&(m.versionId=r),a!==void 0&&(m.reload=a),Qt(c,m);let y=d&&d.headers?d.headers:{};return f.headers={...p,...y,...o.headers},{url:Kt(c),options:f}},listPackages:async(t,n={})=>{tt("listPackages","projectName",t);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...n},c={};Qt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Kt(a),options:l}},updatePackage:async(t,n,r,a={})=>{tt("updatePackage","projectName",t),tt("updatePackage","packageName",n),tt("updatePackage","body",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"PATCH",...c,...a},f={},p={};f["Content-Type"]="application/json",Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},d.data=ld(r,d,e),{url:Kt(l),options:d}}}},mu=function(e){const t=j7(e);return{async createPackage(n,r,a){const o=await t.createPackage(n,r,a),l=e?.serverIndex??0,c=qt["PackagesApi.createPackage"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async deletePackage(n,r,a){const o=await t.deletePackage(n,r,a),l=e?.serverIndex??0,c=qt["PackagesApi.deletePackage"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async getPackage(n,r,a,o,l){const c=await t.getPackage(n,r,a,o,l),d=e?.serverIndex??0,f=qt["PackagesApi.getPackage"]?.[d]?.url;return(p,m)=>Wt(c,at,Ht,e)(p,f||m)},async listPackages(n,r){const a=await t.listPackages(n,r),o=e?.serverIndex??0,l=qt["PackagesApi.listPackages"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async updatePackage(n,r,a,o){const l=await t.updatePackage(n,r,a,o),c=e?.serverIndex??0,d=qt["PackagesApi.updatePackage"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let ik=class extends Uo{createPackage(t,n,r){return mu(this.configuration).createPackage(t,n,r).then(a=>a(this.axios,this.basePath))}deletePackage(t,n,r){return mu(this.configuration).deletePackage(t,n,r).then(a=>a(this.axios,this.basePath))}getPackage(t,n,r,a,o){return mu(this.configuration).getPackage(t,n,r,a,o).then(l=>l(this.axios,this.basePath))}listPackages(t,n){return mu(this.configuration).listPackages(t,n).then(r=>r(this.axios,this.basePath))}updatePackage(t,n,r,a){return mu(this.configuration).updatePackage(t,n,r,a).then(o=>o(this.axios,this.basePath))}};const U7=function(e){return{createProject:async(t,n={})=>{tt("createProject","body",t);const r="/projects",a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...n},c={},d={};c["Content-Type"]="application/json",Qt(a,d);let f=o&&o.headers?o.headers:{};return l.headers={...c,...f,...n.headers},l.data=ld(t,l,e),{url:Kt(a),options:l}},deleteProject:async(t,n={})=>{tt("deleteProject","projectName",t);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),a=new URL(r,Yt);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...n},c={};Qt(a,{});let d=o&&o.headers?o.headers:{};return l.headers={...c,...d,...n.headers},{url:Kt(a),options:l}},getProject:async(t,n,r={})=>{tt("getProject","projectName",t);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...r},d={},f={};n!==void 0&&(f.reload=n),Qt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},{url:Kt(o),options:c}},listProjects:async(t={})=>{const n="/projects",r=new URL(n,Yt);let a;e&&(a=e.baseOptions);const o={method:"GET",...a,...t},l={};Qt(r,{});let c=a&&a.headers?a.headers:{};return o.headers={...l,...c,...t.headers},{url:Kt(r),options:o}},updateProject:async(t,n,r={})=>{tt("updateProject","projectName",t),tt("updateProject","body",n);const a="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(t))),o=new URL(a,Yt);let l;e&&(l=e.baseOptions);const c={method:"PATCH",...l,...r},d={},f={};d["Content-Type"]="application/json",Qt(o,f);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...r.headers},c.data=ld(n,c,e),{url:Kt(o),options:c}}}},gu=function(e){const t=U7(e);return{async createProject(n,r){const a=await t.createProject(n,r),o=e?.serverIndex??0,l=qt["ProjectsApi.createProject"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async deleteProject(n,r){const a=await t.deleteProject(n,r),o=e?.serverIndex??0,l=qt["ProjectsApi.deleteProject"]?.[o]?.url;return(c,d)=>Wt(a,at,Ht,e)(c,l||d)},async getProject(n,r,a){const o=await t.getProject(n,r,a),l=e?.serverIndex??0,c=qt["ProjectsApi.getProject"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)},async listProjects(n){const r=await t.listProjects(n),a=e?.serverIndex??0,o=qt["ProjectsApi.listProjects"]?.[a]?.url;return(l,c)=>Wt(r,at,Ht,e)(l,o||c)},async updateProject(n,r,a){const o=await t.updateProject(n,r,a),l=e?.serverIndex??0,c=qt["ProjectsApi.updateProject"]?.[l]?.url;return(d,f)=>Wt(o,at,Ht,e)(d,c||f)}}};let ok=class extends Uo{createProject(t,n){return gu(this.configuration).createProject(t,n).then(r=>r(this.axios,this.basePath))}deleteProject(t,n){return gu(this.configuration).deleteProject(t,n).then(r=>r(this.axios,this.basePath))}getProject(t,n,r){return gu(this.configuration).getProject(t,n,r).then(a=>a(this.axios,this.basePath))}listProjects(t){return gu(this.configuration).listProjects(t).then(n=>n(this.axios,this.basePath))}updateProject(t,n,r){return gu(this.configuration).updateProject(t,n,r).then(a=>a(this.axios,this.basePath))}};const H7=function(e){return{executeQuery:async(t,n,r,a,o,l,c,d={})=>{tt("executeQuery","projectName",t),tt("executeQuery","packageName",n),tt("executeQuery","path",r);const f="/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))).replace("{path}",encodeURIComponent(String(r))),p=new URL(f,Yt);let m;e&&(m=e.baseOptions);const y={method:"GET",...m,...d},b={},_={};a!==void 0&&(_.query=a),o!==void 0&&(_.sourceName=o),l!==void 0&&(_.queryName=l),c!==void 0&&(_.versionId=c),Qt(p,_);let A=m&&m.headers?m.headers:{};return y.headers={...b,...A,...d.headers},{url:Kt(p),options:y}}}},z7=function(e){const t=H7(e);return{async executeQuery(n,r,a,o,l,c,d,f){const p=await t.executeQuery(n,r,a,o,l,c,d,f),m=e?.serverIndex??0,y=qt["QueryresultsApi.executeQuery"]?.[m]?.url;return(b,_)=>Wt(p,at,Ht,e)(b,y||_)}}};let cm=class extends Uo{executeQuery(t,n,r,a,o,l,c,d){return z7(this.configuration).executeQuery(t,n,r,a,o,l,c,d).then(f=>f(this.axios,this.basePath))}};const G7=function(e){return{listSchedules:async(t,n,r,a={})=>{tt("listSchedules","projectName",t),tt("listSchedules","packageName",n);const o="/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}",encodeURIComponent(String(t))).replace("{packageName}",encodeURIComponent(String(n))),l=new URL(o,Yt);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...a},f={},p={};r!==void 0&&(p.versionId=r),Qt(l,p);let m=c&&c.headers?c.headers:{};return d.headers={...f,...m,...a.headers},{url:Kt(l),options:d}}}},V7=function(e){const t=G7(e);return{async listSchedules(n,r,a,o){const l=await t.listSchedules(n,r,a,o),c=e?.serverIndex??0,d=qt["SchedulesApi.listSchedules"]?.[c]?.url;return(f,p)=>Wt(l,at,Ht,e)(f,d||p)}}};let q7=class extends Uo{listSchedules(t,n,r,a){return V7(this.configuration).listSchedules(t,n,r,a).then(o=>o(this.axios,this.basePath))}},Xn=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(t={}){this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions={...t.baseOptions,headers:{...t.baseOptions?.headers}},this.formDataCtor=t.formDataCtor}isJsonMime(t){const n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(n.test(t)||t.toLowerCase()==="application/json-patch+json")}};var oc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rs=typeof window>"u"||"Deno"in globalThis;function Er(){}function Y7(e,t){return typeof e=="function"?e(t):e}function by(e){return typeof e=="number"&&e>=0&&e!==1/0}function sk(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Io(e,t){return typeof e=="function"?e(t):e}function ma(e,t){return typeof e=="function"?e(t):e}function zA(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==Yb(l,t.options))return!1}else if(!cd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function GA(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Is(t.options.mutationKey)!==Is(o))return!1}else if(!cd(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Yb(e,t){return(t?.queryKeyHashFn||Is)(e)}function Is(e){return JSON.stringify(e,(t,n)=>Ey(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function cd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>cd(e[n],t[n])):!1}function lk(e,t){if(e===t)return e;const n=VA(e)&&VA(t);if(n||Ey(e)&&Ey(t)){const r=n?e:Object.keys(e),a=r.length,o=n?t:Object.keys(t),l=o.length,c=n?[]:{},d=new Set(r);let f=0;for(let p=0;p<l;p++){const m=n?p:o[p];(!n&&d.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(c[m]=void 0,f++):(c[m]=lk(e[m],t[m]),c[m]===e[m]&&e[m]!==void 0&&f++)}return a===l&&f===a?e:c}return t}function gp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function VA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ey(e){if(!qA(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!qA(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qA(e){return Object.prototype.toString.call(e)==="[object Object]"}function Q7(e){return new Promise(t=>{setTimeout(t,e)})}function vy(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?lk(e,t):t}function K7(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function W7(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qb=Symbol();function ck(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Qb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function uk(e,t){return typeof e=="function"?e(...t):!!e}var X7=class extends oc{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Rs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Kb=new X7,Z7=class extends oc{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Rs&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},yp=new Z7;function Ty(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function J7(e){return Math.min(1e3*2**e,3e4)}function dk(e){return(e??"online")==="online"?yp.isOnline():!0}var fk=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function a1(e){return e instanceof fk}function hk(e){let t=!1,n=0,r=!1,a;const o=Ty(),l=A=>{r||(y(new fk(A)),e.abort?.())},c=()=>{t=!0},d=()=>{t=!1},f=()=>Kb.isFocused()&&(e.networkMode==="always"||yp.isOnline())&&e.canRun(),p=()=>dk(e.networkMode)&&e.canRun(),m=A=>{r||(r=!0,e.onSuccess?.(A),a?.(),o.resolve(A))},y=A=>{r||(r=!0,e.onError?.(A),a?.(),o.reject(A))},b=()=>new Promise(A=>{a=C=>{(r||f())&&A(C)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),_=()=>{if(r)return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(x){A=Promise.reject(x)}Promise.resolve(A).then(m).catch(x=>{if(r)return;const D=e.retry??(Rs?0:3),S=e.retryDelay??J7,M=typeof S=="function"?S(n,x):S,L=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,x);if(t||!L){y(x);return}n++,e.onFail?.(n,x),Q7(M).then(()=>f()?void 0:b()).then(()=>{t?y(x):_()})})};return{promise:o,cancel:l,continue:()=>(a?.(),o),cancelRetry:c,continueRetry:d,canStart:p,start:()=>(p()?_():b().then(_),o)}}var e8=e=>setTimeout(e,0);function t8(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=e8;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{o(()=>{c(...d)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var Un=t8(),pk=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),by(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Rs?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},n8=class extends pk{#t;#e;#n;#r;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=r8(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=vy(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Er).catch(Er):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>ma(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Io(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!sk(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const d=ck(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(d,p,this):d(p)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const c=d=>{a1(d)&&d.silent||this.#i({type:"error",error:d}),a1(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#a=hk({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(f){c(f);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:c,onFail:(d,f)=>{this.#i({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...mk(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return a1(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Un.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function mk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dk(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function r8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var a8=class extends oc{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??Yb(r,t);let o=this.get(a);return o||(o=new n8({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Un.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>zA(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>zA(e,n)):t}notify(e){Un.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Un.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Un.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},i8=class extends pk{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||gk(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=hk({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,o)=>{this.#r({type:"failed",failureCount:a,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const o=await this.options.onMutate?.(e);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Un.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function gk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var o8=class extends oc{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new i8({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=bh(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=bh(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=bh(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=bh(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Un.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>GA(t,n))}findAll(e={}){return this.getAll().filter(t=>GA(e,t))}notify(e){Un.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Un.batch(()=>Promise.all(e.map(t=>t.continue().catch(Er))))}};function bh(e){return e.options.scope?.id}function YA(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let p=!1;const m=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},y=ck(t.options,t.fetchOptions),b=async(_,A,C)=>{if(p)return Promise.reject();if(A==null&&_.pages.length)return Promise.resolve(_);const D=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return m(I),I})(),S=await y(D),{maxPages:M}=t.options,L=C?W7:K7;return{pages:L(_.pages,S,M),pageParams:L(_.pageParams,A,M)}};if(a&&o.length){const _=a==="backward",A=_?s8:QA,C={pages:o,pageParams:l},x=A(r,C);c=await b(C,x,_)}else{const _=e??o.length;do{const A=d===0?l[0]??r.initialPageParam:QA(r,c);if(d>0&&A==null)break;c=await b(c,A),d++}while(d<_)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function QA(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function s8(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var l8=class{#t;#e;#n;#r;#a;#o;#s;#i;constructor(e={}){this.#t=e.queryCache||new a8,this.#e=e.mutationCache||new o8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=Kb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=yp.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Io(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,l=Y7(t,o);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Un.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;Un.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return Un.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Un.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Er).catch(Er)}invalidateQueries(e,t={}){return Un.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Un.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Er)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Er)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Io(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Er).catch(Er)}fetchInfiniteQuery(e){return e.behavior=YA(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Er).catch(Er)}ensureInfiniteQueryData(e){return e.behavior=YA(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yp.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Is(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{cd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(Is(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{cd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Yb(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Qb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},c8=class extends oc{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#s=Ty(),this.options.experimental_prefetchInRender||this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#o;#s;#i;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),KA(this.#e,this.options)?this.#d():this.updateResult(),this.#E())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _y(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _y(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#T(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ma(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),t._defaulted&&!gp(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&WA(this.#e,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#e!==n||ma(this.options.enabled,this.#e)!==ma(t.enabled,this.#e)||Io(this.options.staleTime,this.#e)!==Io(t.staleTime,this.#e))&&this.#g();const a=this.#y();r&&(this.#e!==n||ma(this.options.enabled,this.#e)!==ma(t.enabled,this.#e)||a!==this.#l)&&this.#b(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return d8(this,n)&&(this.#r=n,this.#o=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#_();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Er)),t}#g(){this.#v();const e=Io(this.options.staleTime,this.#e);if(Rs||this.#r.isStale||!by(e))return;const n=sk(this.#r.dataUpdatedAt,e)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#T(),this.#l=e,!(Rs||ma(this.options.enabled,this.#e)===!1||!by(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Kb.isFocused())&&this.#d()},this.#l))}#E(){this.#g(),this.#b(this.#y())}#v(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#T(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,o=this.#a,l=this.#o,d=e!==n?e.state:this.#n,{state:f}=e;let p={...f},m=!1,y;if(t._optimisticResults){const te=this.hasListeners(),Q=!te&&KA(e,t),k=te&&WA(e,n,t,r);(Q||k)&&(p={...p,...mk(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:_,status:A}=p;y=p.data;let C=!1;if(t.placeholderData!==void 0&&y===void 0&&A==="pending"){let te;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(te=a.data,C=!0):te=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,te!==void 0&&(A="success",y=vy(a?.data,te,t),m=!0)}if(t.select&&y!==void 0&&!C)if(a&&y===o?.data&&t.select===this.#m)y=this.#f;else try{this.#m=t.select,y=t.select(y),y=vy(a?.data,y,t),this.#f=y,this.#i=null}catch(te){this.#i=te}this.#i&&(b=this.#i,y=this.#f,_=Date.now(),A="error");const x=p.fetchStatus==="fetching",D=A==="pending",S=A==="error",M=D&&x,L=y!==void 0,V={status:A,fetchStatus:p.fetchStatus,isPending:D,isSuccess:A==="success",isError:S,isInitialLoading:M,isLoading:M,data:y,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:_,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!D,isLoadingError:S&&!L,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&L,isStale:Wb(e,t),refetch:this.refetch,promise:this.#s,isEnabled:ma(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const te=H=>{V.status==="error"?H.reject(V.error):V.data!==void 0&&H.resolve(V.data)},Q=()=>{const H=this.#s=V.promise=Ty();te(H)},k=this.#s;switch(k.status){case"pending":e.queryHash===n.queryHash&&te(k);break;case"fulfilled":(V.status==="error"||V.data!==k.value)&&Q();break;case"rejected":(V.status!=="error"||V.error!==k.reason)&&Q();break}}return V}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#o=this.options,this.#a.data!==void 0&&(this.#h=this.#e),gp(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const o=new Set(a??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(l=>{const c=l;return this.#r[c]!==e[c]&&o.has(c)})};this.#x({listeners:n()})}#_(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#E()}#x(e){Un.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function u8(e,t){return ma(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function KA(e,t){return u8(e,t)||e.state.data!==void 0&&_y(e,t,t.refetchOnMount)}function _y(e,t,n){if(ma(t.enabled,e)!==!1&&Io(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Wb(e,t)}return!1}function WA(e,t,n,r){return(e!==t||ma(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Wb(e,n)}function Wb(e,t){return ma(t.enabled,e)!==!1&&e.isStaleByTime(Io(t.staleTime,e))}function d8(e,t){return!gp(e.getCurrentResult(),t)}var f8=class extends oc{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),gp(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Is(n.mutationKey)!==Is(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#o()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??gk();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Un.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},h8=w.createContext(void 0),yk=e=>{const t=w.useContext(h8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},bk=w.createContext(!1),p8=()=>w.useContext(bk);bk.Provider;function m8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var g8=w.createContext(m8()),y8=()=>w.useContext(g8),b8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},E8=e=>{w.useEffect(()=>{e.clearReset()},[e])},v8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||uk(n,[e.error,r])),T8=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},_8=(e,t)=>e.isLoading&&e.isFetching&&!t,x8=(e,t)=>e?.suspense&&t.isPending,XA=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function A8(e,t,n){const r=p8(),a=y8(),o=yk(n),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",T8(l),b8(l,a),E8(a);const c=!o.getQueryCache().get(l.queryHash),[d]=w.useState(()=>new t(o,l)),f=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(m=>{const y=p?d.subscribe(Un.batchCalls(m)):Er;return d.updateResult(),y},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),w.useEffect(()=>{d.setOptions(l)},[l,d]),x8(l,f))throw XA(l,d,a);if(v8({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!Rs&&_8(f,r)&&(c?XA(l,d,a):o.getQueryCache().get(l.queryHash)?.promise)?.catch(Er).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function S8(e,t){return A8(e,c8,t)}function C8(e,t){const n=yk(t),[r]=w.useState(()=>new f8(n,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const a=w.useSyncExternalStore(w.useCallback(l=>r.subscribe(Un.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=w.useCallback((l,c)=>{r.mutate(l,c).catch(Er)},[r]);if(a.error&&uk(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const Ek=[{id:"abap",name:"ABAP",import:()=>F(()=>import("./index.es228-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>F(()=>import("./index.es229-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>F(()=>import("./index.es230-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>F(()=>import("./index.es231-02O061a5.js").then(e=>e.i),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>F(()=>import("./index.es232-DOZR37hD.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>F(()=>import("./index.es233-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>F(()=>import("./index.es234-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>F(()=>import("./index.es235-CwaFVls_.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>F(()=>import("./index.es236-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>F(()=>import("./index.es237-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>F(()=>import("./index.es238-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>F(()=>import("./index.es239-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>F(()=>import("./index.es240-BXsCiix7.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>F(()=>import("./index.es241-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>F(()=>import("./index.es242-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>F(()=>import("./index.es243-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>F(()=>import("./index.es244-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>F(()=>import("./index.es245-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>F(()=>import("./index.es246-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>F(()=>import("./index.es247-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>F(()=>import("./index.es248-BBXwDGlH.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>F(()=>import("./index.es249-it6O0zLZ.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>F(()=>import("./index.es250-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>F(()=>import("./index.es251-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>F(()=>import("./index.es252-BU8jndoZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>F(()=>import("./index.es253-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>F(()=>import("./index.es254-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>F(()=>import("./index.es255-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>F(()=>import("./index.es256-BvZRwMxf.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>F(()=>import("./index.es257-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>F(()=>import("./index.es258-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>F(()=>import("./index.es259-6-xstYpb.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>F(()=>import("./index.es260-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>F(()=>import("./index.es261-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>F(()=>import("./index.es262-BDUOVoIz.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>F(()=>import("./index.es263-CHueaYAb.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>F(()=>import("./index.es264-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>F(()=>import("./index.es265-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>F(()=>import("./index.es266-C-TU5hQ_.js"),[])},{id:"cue",name:"CUE",import:()=>F(()=>import("./index.es267-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>F(()=>import("./index.es268-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>F(()=>import("./index.es269-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>F(()=>import("./index.es270-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>F(()=>import("./index.es271-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>F(()=>import("./index.es272-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>F(()=>import("./index.es273-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>F(()=>import("./index.es274-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>F(()=>import("./index.es275-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>F(()=>import("./index.es276-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>F(()=>import("./index.es277-CbrHqWmX.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>F(()=>import("./index.es278-CI5gPs5v.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>F(()=>import("./index.es279-DH9b__8l.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>F(()=>import("./index.es280-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>F(()=>import("./index.es281-CGN0Pl1D.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>F(()=>import("./index.es282-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>F(()=>import("./index.es283-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>F(()=>import("./index.es284-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>F(()=>import("./index.es285-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>F(()=>import("./index.es286-XRt1U2aU.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>F(()=>import("./index.es287-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>F(()=>import("./index.es288-DSszyNly.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>F(()=>import("./index.es289-xrNpklpB.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>F(()=>import("./index.es290-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>F(()=>import("./index.es291-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>F(()=>import("./index.es292-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>F(()=>import("./index.es293--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>F(()=>import("./index.es294-B75OnIUq.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>F(()=>import("./index.es295-wxT8LaCU.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>F(()=>import("./index.es296-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>F(()=>import("./index.es297-DCQpwhAH.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>F(()=>import("./index.es298-Dtm6S7Te.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>F(()=>import("./index.es299-CO3NhjF0.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>F(()=>import("./index.es300-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>F(()=>import("./index.es301-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>F(()=>import("./index.es302-BNx4kwZQ.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>F(()=>import("./index.es303-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>F(()=>import("./index.es304-Cslijulp.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>F(()=>import("./index.es305-Bj5y75UJ.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>F(()=>import("./index.es306-BY9A-bfA.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>F(()=>import("./index.es307-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>F(()=>import("./index.es308-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>F(()=>import("./index.es309-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>F(()=>import("./index.es310-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>F(()=>import("./index.es311-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>F(()=>import("./index.es312-BOpCGR-W.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>F(()=>import("./index.es313-j4e0V-ax.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>F(()=>import("./index.es314-QPXF8A7X.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>F(()=>import("./index.es315-BBht-U5W.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>F(()=>import("./index.es316-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>F(()=>import("./index.es317-Ba6bfhqW.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>F(()=>import("./index.es318-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>F(()=>import("./index.es319-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>F(()=>import("./index.es320-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>F(()=>import("./index.es321-BzMKJGft.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>F(()=>import("./index.es322-Dsh6cVFT.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>F(()=>import("./index.es323-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>F(()=>import("./index.es324-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>F(()=>import("./index.es325-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>F(()=>import("./index.es326-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>F(()=>import("./index.es327-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>F(()=>import("./index.es328-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>F(()=>import("./index.es329-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>F(()=>import("./index.es330-CwhtB6Ga.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>F(()=>import("./index.es331-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>F(()=>import("./index.es332-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>F(()=>import("./index.es333-BkIXdkt8.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>F(()=>import("./index.es334-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>F(()=>import("./index.es335-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>F(()=>import("./index.es336-CDPSHwok.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>F(()=>import("./index.es337-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>F(()=>import("./index.es338-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>F(()=>import("./index.es339-CpmgqEMA.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>F(()=>import("./index.es340-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>F(()=>import("./index.es341-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>F(()=>import("./index.es342-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>F(()=>import("./index.es343-DpQJ0N3s.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>F(()=>import("./index.es344-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>F(()=>import("./index.es345-Cu1t0B48.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>F(()=>import("./index.es346-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>F(()=>import("./index.es347-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>F(()=>import("./index.es348-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>F(()=>import("./index.es349-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>F(()=>import("./index.es350-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>F(()=>import("./index.es351-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>F(()=>import("./index.es352-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>F(()=>import("./index.es353-Boayqq8b.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>F(()=>import("./index.es354-B25Rulno.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>F(()=>import("./index.es355-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>F(()=>import("./index.es356-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>F(()=>import("./index.es357-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>F(()=>import("./index.es358-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>F(()=>import("./index.es359-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>F(()=>import("./index.es360-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>F(()=>import("./index.es361-BbYa_qYT.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>F(()=>import("./index.es362-BnUI1TJX.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>F(()=>import("./index.es363-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>F(()=>import("./index.es364-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>F(()=>import("./index.es365-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>F(()=>import("./index.es366-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>F(()=>import("./index.es367-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>F(()=>import("./index.es368-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>F(()=>import("./index.es369-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>F(()=>import("./index.es370-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>F(()=>import("./index.es371-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>F(()=>import("./index.es372-Din3gmuj.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>F(()=>import("./index.es373-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>F(()=>import("./index.es374-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>F(()=>import("./index.es375-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>F(()=>import("./index.es376-CAM-NFdA.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>F(()=>import("./index.es377-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>F(()=>import("./index.es378-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>F(()=>import("./index.es379-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>F(()=>import("./index.es380-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>F(()=>import("./index.es381-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>F(()=>import("./index.es382-r9NT2hns.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>F(()=>import("./index.es383-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>F(()=>import("./index.es384-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>F(()=>import("./index.es385-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>F(()=>import("./index.es386-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>F(()=>import("./index.es387-DWtDDVHa.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>F(()=>import("./index.es388-Cddokof0.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>F(()=>import("./index.es389-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>F(()=>import("./index.es390-BgcDic1S.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>F(()=>import("./index.es391-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>F(()=>import("./index.es392-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>F(()=>import("./index.es393-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>F(()=>import("./index.es394-Cuad4cFu.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>F(()=>import("./index.es395-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>F(()=>import("./index.es396-CQcbzzI_.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>F(()=>import("./index.es397-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>F(()=>import("./index.es398-DBUoETTk.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>F(()=>import("./index.es399-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>F(()=>import("./index.es400-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>F(()=>import("./index.es401-D7FZbPq9.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>F(()=>import("./index.es402-C5ht0e8l.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>F(()=>import("./index.es403-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>F(()=>import("./index.es404-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>F(()=>import("./index.es405-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>F(()=>import("./index.es406-pes6PLHN.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>F(()=>import("./index.es407-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>F(()=>import("./index.es408-DV2ChDJw.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>F(()=>import("./index.es409-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>F(()=>import("./index.es410-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>F(()=>import("./index.es411-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>F(()=>import("./index.es412-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>F(()=>import("./index.es413-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>F(()=>import("./index.es414-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>F(()=>import("./index.es415-BI_J_S9x.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>F(()=>import("./index.es416-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>F(()=>import("./index.es417-BNH1K0F3.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>F(()=>import("./index.es418-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>F(()=>import("./index.es419-DaaHuOeT.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>F(()=>import("./index.es420-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>F(()=>import("./index.es421-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>F(()=>import("./index.es422-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>F(()=>import("./index.es423-BFNF97RC.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>F(()=>import("./index.es424-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>F(()=>import("./index.es425-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>F(()=>import("./index.es426-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>F(()=>import("./index.es427-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>F(()=>import("./index.es428-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>F(()=>import("./index.es429-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>F(()=>import("./index.es430-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>F(()=>import("./index.es431-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>F(()=>import("./index.es432-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>F(()=>import("./index.es433-TWQYaV1h.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>F(()=>import("./index.es434-Dhj89L3U.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>F(()=>import("./index.es435-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>F(()=>import("./index.es436-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>F(()=>import("./index.es437-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>F(()=>import("./index.es438-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>F(()=>import("./index.es439-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>F(()=>import("./index.es440-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>F(()=>import("./index.es441-9pPCdH1i.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>F(()=>import("./index.es442-B_JzqX5N.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>F(()=>import("./index.es443-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>F(()=>import("./index.es444-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>F(()=>import("./index.es445-BVz_zdnA.js"),[])}],D8=Object.fromEntries(Ek.map(e=>[e.id,e.import])),k8=Object.fromEntries(Ek.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),R8={...D8,...k8},I8=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>F(()=>import("./index.es446-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>F(()=>import("./index.es447-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>F(()=>import("./index.es448-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>F(()=>import("./index.es449-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>F(()=>import("./index.es450-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>F(()=>import("./index.es451-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>F(()=>import("./index.es452-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>F(()=>import("./index.es453-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>F(()=>import("./index.es454-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>F(()=>import("./index.es455-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>F(()=>import("./index.es456-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>F(()=>import("./index.es457-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>F(()=>import("./index.es458-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>F(()=>import("./index.es459-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>F(()=>import("./index.es460-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>F(()=>import("./index.es461-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>F(()=>import("./index.es462-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>F(()=>import("./index.es463-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>F(()=>import("./index.es464-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>F(()=>import("./index.es465-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>F(()=>import("./index.es466-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>F(()=>import("./index.es467-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>F(()=>import("./index.es468-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>F(()=>import("./index.es469-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>F(()=>import("./index.es470-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>F(()=>import("./index.es471-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>F(()=>import("./index.es472-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>F(()=>import("./index.es473-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>F(()=>import("./index.es474-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>F(()=>import("./index.es475-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>F(()=>import("./index.es476-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>F(()=>import("./index.es477-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>F(()=>import("./index.es478-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>F(()=>import("./index.es479-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>F(()=>import("./index.es480-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>F(()=>import("./index.es481-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>F(()=>import("./index.es482-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>F(()=>import("./index.es483-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>F(()=>import("./index.es484-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>F(()=>import("./index.es485-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>F(()=>import("./index.es486-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>F(()=>import("./index.es487-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>F(()=>import("./index.es488-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>F(()=>import("./index.es489-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>F(()=>import("./index.es490-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>F(()=>import("./index.es491-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>F(()=>import("./index.es492-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>F(()=>import("./index.es493-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>F(()=>import("./index.es494-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>F(()=>import("./index.es495-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>F(()=>import("./index.es496-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>F(()=>import("./index.es497-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>F(()=>import("./index.es498-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>F(()=>import("./index.es499-CVO1_9PV.js"),[])}],w8=Object.fromEntries(I8.map(e=>[e.id,e.import]));let Bi=class extends Error{constructor(t){super(t),this.name="ShikiError"}},Xb=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function N8(){return 2147483648}function O8(){return typeof performance<"u"?performance.now():Date.now()}const L8=(e,t)=>e+(t-e%t)%t;async function M8(e){let t,n;const r={};function a(b){n=b,r.HEAPU8=new Uint8Array(b),r.HEAPU32=new Uint32Array(b)}function o(b,_,A){r.HEAPU8.copyWithin(b,_,_+A)}function l(b){try{return t.grow(b-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function c(b){const _=r.HEAPU8.length;b=b>>>0;const A=N8();if(b>A)return!1;for(let C=1;C<=4;C*=2){let x=_*(1+.2/C);x=Math.min(x,b+100663296);const D=Math.min(A,L8(Math.max(b,x),65536));if(l(D))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(b,_,A=1024){const C=_+A;let x=_;for(;b[x]&&!(x>=C);)++x;if(x-_>16&&b.buffer&&d)return d.decode(b.subarray(_,x));let D="";for(;_<x;){let S=b[_++];if(!(S&128)){D+=String.fromCharCode(S);continue}const M=b[_++]&63;if((S&224)===192){D+=String.fromCharCode((S&31)<<6|M);continue}const L=b[_++]&63;if((S&240)===224?S=(S&15)<<12|M<<6|L:S=(S&7)<<18|M<<12|L<<6|b[_++]&63,S<65536)D+=String.fromCharCode(S);else{const I=S-65536;D+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return D}function p(b,_){return b?f(r.HEAPU8,b,_):""}const m={emscripten_get_now:O8,emscripten_memcpy_big:o,emscripten_resize_heap:c,fd_write:()=>0};async function y(){const b=await e({env:m,wasi_snapshot_preview1:m});t=b.memory,a(t.buffer),Object.assign(r,b),r.UTF8ToString=p}return await y(),r}var P8=Object.defineProperty,$8=(e,t,n)=>t in e?P8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jn=(e,t,n)=>($8(e,typeof t!="symbol"?t+"":t,n),n);let Qn=null;function F8(e){throw new Xb(e.UTF8ToString(e.getLastOnigError()))}let vk=class Tk{constructor(t){jn(this,"utf16Length"),jn(this,"utf8Length"),jn(this,"utf16Value"),jn(this,"utf8Value"),jn(this,"utf16OffsetToUtf8"),jn(this,"utf8OffsetToUtf16");const n=t.length,r=Tk._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const c=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const p=t.charCodeAt(f);let m=p,y=!1;if(p>=55296&&p<=56319&&f+1<n){const b=t.charCodeAt(f+1);b>=56320&&b<=57343&&(m=(p-55296<<10)+65536|b-56320,y=!0)}a&&(o[f]=d,y&&(o[f+1]=d),m<=127?l[d+0]=f:m<=2047?(l[d+0]=f,l[d+1]=f):m<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),m<=127?c[d++]=m:m<=2047?(c[d++]=192|(m&1984)>>>6,c[d++]=128|(m&63)>>>0):m<=65535?(c[d++]=224|(m&61440)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0):(c[d++]=240|(m&1835008)>>>18,c[d++]=128|(m&258048)>>>12,c[d++]=128|(m&4032)>>>6,c[d++]=128|(m&63)>>>0),y&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=c,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let l=o,c=!1;if(o>=55296&&o<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(o-55296<<10)+65536|d-56320,c=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,c&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}};const Xa=class{constructor(t){if(jn(this,"id",++Xa.LAST_ID),jn(this,"_onigBinding"),jn(this,"content"),jn(this,"utf16Length"),jn(this,"utf8Length"),jn(this,"utf16OffsetToUtf8"),jn(this,"utf8OffsetToUtf16"),jn(this,"ptr"),!Qn)throw new Xb("Must invoke loadWasm first.");this._onigBinding=Qn,this.content=t;const n=new vk(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Xa._sharedPtrInUse?(Xa._sharedPtr||(Xa._sharedPtr=Qn.omalloc(1e4)),Xa._sharedPtrInUse=!0,Qn.HEAPU8.set(n.utf8Value,Xa._sharedPtr),this.ptr=Xa._sharedPtr):this.ptr=n.createString(Qn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Xa._sharedPtr?Xa._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let jd=Xa;jn(jd,"LAST_ID",0);jn(jd,"_sharedPtr",0);jn(jd,"_sharedPtrInUse",!1);let B8=class{constructor(t){if(jn(this,"_onigBinding"),jn(this,"_ptr"),!Qn)throw new Xb("Must invoke loadWasm first.");const n=[],r=[];for(let c=0,d=t.length;c<d;c++){const f=new vk(t[c]);n[c]=f.createString(Qn),r[c]=f.utf8Length}const a=Qn.omalloc(4*t.length);Qn.HEAPU32.set(n,a/4);const o=Qn.omalloc(4*t.length);Qn.HEAPU32.set(r,o/4);const l=Qn.createOnigScanner(a,o,t.length);for(let c=0,d=t.length;c<d;c++)Qn.ofree(n[c]);Qn.ofree(o),Qn.ofree(a),l===0&&F8(Qn),this._onigBinding=Qn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new jd(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const c=o.HEAPU32;let d=l/4;const f=c[d++],p=c[d++],m=[];for(let y=0;y<p;y++){const b=t.convertUtf8OffsetToUtf16(c[d++]),_=t.convertUtf8OffsetToUtf16(c[d++]);m[y]={start:b,end:_,length:_-b}}return{index:f,captureIndices:m}}};function j8(e){return typeof e.instantiator=="function"}function U8(e){return typeof e.default=="function"}function H8(e){return typeof e.data<"u"}function z8(e){return typeof Response<"u"&&e instanceof Response}function G8(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Eh;function V8(e){if(Eh)return Eh;async function t(){Qn=await M8(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),j8(r)?r=await r.instantiator(n):U8(r)?r=await r.default(n):(H8(r)&&(r=r.data),z8(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await q8(r)(n):r=await Y8(r)(n):G8(r)?r=await i1(r)(n):r instanceof WebAssembly.Module?r=await i1(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await i1(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Eh=t(),Eh}function i1(e){return t=>WebAssembly.instantiate(e,t)}function q8(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Y8(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let Q8;function K8(){return Q8}async function _k(e){return e&&await V8(e),{createScanner(t){return new B8(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new jd(t)}}}function W8(e){return Zb(e)}function Zb(e){return Array.isArray(e)?X8(e):e instanceof RegExp?e:typeof e=="object"?Z8(e):e}function X8(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Zb(e[n]);return t}function Z8(e){let t={};for(let n in e)t[n]=Zb(e[n]);return t}function xk(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Ak(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Ak(e.substring(0,e.length-1)):e.substr(~t+1)}var o1=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,vh=class{static hasCaptures(t){return t===null?!1:(o1.lastIndex=0,o1.test(t))}static replaceCaptures(t,n,r){return t.replace(o1,(a,o,l,c)=>{let d=r[parseInt(o||l,10)];if(d){let f=n.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(c){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return a})}};function Sk(e,t){return e<t?-1:e>t?1:0}function Ck(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=Sk(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function ZA(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Dk(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var kk=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const n=this.fn(t);return this.cache.set(t,n),n}},bp=class{constructor(t,n,r){this._colorMap=t,this._defaults=n,this._root=r}static createFromRawTheme(t,n){return this.createFromParsedTheme(t$(t),n)}static createFromParsedTheme(t,n){return r$(t,n)}_cachedMatchRoot=new kk(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const n=t.scopeName,r=this._cachedMatchRoot.get(n).find(a=>J8(t.parent,a.parentScopes));return r?new Rk(r.fontStyle,r.foreground,r.background):null}},s1=class zh{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new zh(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new zh(n,t[r]);return n}push(t){return new zh(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function J8(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!e$(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function e$(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Rk=class{constructor(t,n,r){this.fontStyle=t,this.foregroundId=n,this.backgroundId=r}};function t$(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let l=t[a];if(!l.settings)continue;let c;if(typeof l.scope=="string"){let m=l.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),c=m.split(",")}else Array.isArray(l.scope)?c=l.scope:c=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let m=l.settings.fontStyle.split(" ");for(let y=0,b=m.length;y<b;y++)switch(m[y]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&ZA(l.settings.foreground)&&(f=l.settings.foreground);let p=null;typeof l.settings.background=="string"&&ZA(l.settings.background)&&(p=l.settings.background);for(let m=0,y=c.length;m<y;m++){let b=c[m].trim().split(" "),_=b[b.length-1],A=null;b.length>1&&(A=b.slice(0,b.length-1),A.reverse()),n[r++]=new n$(_,A,a,d,f,p)}}return n}var n$=class{constructor(t,n,r,a,o,l){this.scope=t,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=l}},Fi=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Fi||{});function r$(e,t){e.sort((d,f)=>{let p=Sk(d.scope,f.scope);return p!==0||(p=Ck(d.parentScopes,f.parentScopes),p!==0)?p:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let o=new a$(t),l=new Rk(n,o.getId(r),o.getId(a)),c=new o$(new xy(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let p=e[d];c.insert(0,p.scope,p.parentScopes,p.fontStyle,o.getId(p.foreground),o.getId(p.background))}return new bp(o,l,c)}var a$=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let n=0,r=t.length;n<r;n++)this._color2id[t[n]]=n,this._id2color[n]=t[n]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let n=this._color2id[t];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return n=++this._lastColorId,this._color2id[t]=n,this._id2color[n]=t,n}getColorMap(){return this._id2color.slice(0)}},i$=Object.freeze([]),xy=class Ik{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||i$,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new Ik(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},o$=class Ay{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Ay._cmpBySpecificity),n}insert(t,n,r,a,o,l){if(n===""){this._doInsertHere(t,r,a,o,l);return}let c=n.indexOf("."),d,f;c===-1?(d=n,f=""):(d=n.substring(0,c),f=n.substring(c+1));let p;this._children.hasOwnProperty(d)?p=this._children[d]:(p=new Ay(this._mainRule.clone(),xy.cloneArr(this._rulesWithParentScopes)),this._children[d]=p),p.insert(t+1,f,r,a,o,l)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let l=0,c=this._rulesWithParentScopes.length;l<c;l++){let d=this._rulesWithParentScopes[l];if(Ck(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new xy(t,n,r,a,o))}},Xl=class da{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=da.getLanguageId(t),r=da.getTokenType(t),a=da.getFontStyle(t),o=da.getForeground(t),l=da.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,l,c){let d=da.getLanguageId(t),f=da.getTokenType(t),p=da.containsBalancedBrackets(t)?1:0,m=da.getFontStyle(t),y=da.getForeground(t),b=da.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(p=a?1:0),o!==-1&&(m=o),l!==0&&(y=l),c!==0&&(b=c),(d<<0|f<<8|p<<10|m<<11|y<<15|b<<24)>>>0}};function Ep(e,t){const n=[],r=s$(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const d=o();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=c();return a===")"&&(a=r.next()),d}if(JA(a)){const d=[];do d.push(a),a=r.next();while(JA(a));return f=>t(d,f)}return null}function l(){const d=[];let f=o();for(;f;)d.push(f),f=o();return p=>d.every(m=>m(p))}function c(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return p=>d.some(m=>m(p))}}function JA(e){return!!e&&!!e.match(/[\w\.:]+/)}function s$(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function wk(e){typeof e.dispose=="function"&&e.dispose()}var ud=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},l$=class{constructor(t,n){this.scopeName=t,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},c$=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const n=t.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(t))}},u$=class{constructor(t,n){this.repo=t,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ud(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const n=new c$;for(const r of t)d$(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof ud){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function d$(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof ud?Gh({baseGrammar:o,selfGrammar:a},r):Sy(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const c of l)r.add(new ud(c))}function Sy(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];vp([r],t,n)}}function Gh(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&vp(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&vp(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function vp(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?xk({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&vp(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const l=Nk(o);switch(l.kind){case 0:Gh({...t,selfGrammar:t.baseGrammar},n);break;case 1:Gh(t,n);break;case 2:Sy(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const c=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(c){const d={baseGrammar:t.baseGrammar,selfGrammar:c,repository:a};l.kind===4?Sy(l.ruleName,d,n):Gh(d,n)}else l.kind===4?n.add(new l$(l.scopeName,l.ruleName)):n.add(new ud(l.scopeName));break}}}var f$=class{kind=0},h$=class{kind=1},p$=class{constructor(t){this.ruleName=t}kind=2},m$=class{constructor(t){this.scopeName=t}kind=3},g$=class{constructor(t,n){this.scopeName=t,this.ruleName=n}kind=4};function Nk(e){if(e==="$base")return new f$;if(e==="$self")return new h$;const t=e.indexOf("#");if(t===-1)return new m$(e);if(t===0)return new p$(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new g$(n,r)}}var y$=/\\(\d+)/,eS=/\\(\d+)/g,b$=-1,Ok=-2,Ud=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,n,r,a){this.$location=t,this.id=n,this._name=r||null,this._nameIsCapturing=vh.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=vh.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Ak(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,n){return!this._nameIsCapturing||this._name===null||t===null||n===null?this._name:vh.replaceCaptures(this._name,t,n)}getContentName(t,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:vh.replaceCaptures(this._contentName,t,n)}},E$=class extends Ud{retokenizeCapturedWithRuleId;constructor(t,n,r,a,o){super(t,n,r,a),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,a){throw new Error("Not supported!")}},v$=class extends Ud{_match;captures;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,null),this._match=new dd(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tS=class extends Ud{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o){super(t,n,r,a),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new fd,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Cy=class extends Ud{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,n,r,a,o,l,c,d,f,p){super(t,n,r,a),this._begin=new dd(o,this.id),this.beginCaptures=l,this._end=new dd(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=f||!1,this.patterns=p.patterns,this.hasMissingPatterns=p.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fd;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Tp=class extends Ud{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,n,r,a,o,l,c,d,f){super(t,n,r,a),this._begin=new dd(o,this.id),this.beginCaptures=l,this.whileCaptures=d,this._while=new dd(c,Ok),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new fd;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new fd,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},Lk=class sr{static createCaptureRule(t,n,r,a,o){return t.registerRule(l=>new E$(n,l,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new v$(t.$vscodeTextmateLocation,t.id,t.name,t.match,sr._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=xk({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new tS(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,sr._compilePatterns(o,n,r))}return t.while?new Tp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,sr._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,sr._compileCaptures(t.whileCaptures||t.captures,n,r),sr._compilePatterns(t.patterns,n,r)):new Cy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,sr._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,sr._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,sr._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);c>o&&(o=c)}for(let l=0;l<=o;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const c=parseInt(l,10);let d=0;t[l].patterns&&(d=sr.getCompiledRuleId(t[l],n,r)),a[c]=sr.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,l=t.length;o<l;o++){const c=t[o];let d=-1;if(c.include){const f=Nk(c.include);switch(f.kind){case 0:case 1:d=sr.getCompiledRuleId(r[c.include],n,r);break;case 2:let p=r[f.ruleName];p&&(d=sr.getCompiledRuleId(p,n,r));break;case 3:case 4:const m=f.scopeName,y=f.kind===4?f.ruleName:null,b=n.getExternalGrammar(m,r);if(b)if(y){let _=b.repository[y];_&&(d=sr.getCompiledRuleId(_,n,b.repository))}else d=sr.getCompiledRuleId(b.repository.$self,n,b.repository);break}}else d=sr.getCompiledRuleId(c,n,r);if(d!==-1){const f=n.getRule(d);let p=!1;if((f instanceof tS||f instanceof Cy||f instanceof Tp)&&f.hasMissingPatterns&&f.patterns.length===0&&(p=!0),p)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},dd=class Mk{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],l=!1;for(let c=0;c<r;c++)if(t.charAt(c)==="\\"&&c+1<r){const d=t.charAt(c+1);d==="z"?(o.push(t.substring(a,c)),o.push("$(?!\\n)(?<!\\n)"),a=c+2):(d==="A"||d==="G")&&(l=!0),c++}this.hasAnchor=l,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=y$.test(this.source):this.hasBackReferences=!1}clone(){return new Mk(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return eS.lastIndex=0,this.source.replace(eS,(a,o)=>Dk(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,l,c,d;for(o=0,l=this.source.length;o<l;o++)c=this.source.charAt(o),t[o]=c,n[o]=c,r[o]=c,a[o]=c,c==="\\"&&o+1<l&&(d=this.source.charAt(o+1),d==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",a[o+1]="A"):d==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",a[o+1]="G"):(t[o+1]=d,n[o+1]=d,r[o+1]=d,a[o+1]=d),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},fd=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,n){this._items[t].source!==n&&(this._disposeCaches(),this._items[t].setSource(n))}compile(t){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new nS(t,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,n,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,n,r){let a=this._items.map(o=>o.resolveAnchors(n,r));return new nS(t,a,this._items.map(o=>o.ruleId))}},nS=class{constructor(t,n,r){this.regExps=n,this.rules=r,this.scanner=t.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let n=0,r=this.rules.length;n<r;n++)t.push(" - "+this.rules[n]+": "+this.regExps[n]);return t.join(`
|
|
59
59
|
`)}findNextMatchSync(t,n,r){const a=this.scanner.findNextMatchSync(t,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},l1=class{constructor(t,n){this.languageId=t,this.tokenType=n}},T$=class Dy{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new l1(t,8),this._embeddedLanguagesMatcher=new _$(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Dy._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new l1(0,0);_getBasicScopeAttributes=new kk(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new l1(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Dy.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},_$=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const n=t.map(([r,a])=>Dk(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const n=t.match(this.scopesRegExp);if(n)return this.values.get(n[1])}},rS=class{constructor(t,n){this.stack=t,this.stoppedEarly=n}};function Pk(e,t,n,r,a,o,l,c){const d=t.content.length;let f=!1,p=-1;if(l){const b=x$(e,t,n,r,a,o);a=b.stack,r=b.linePos,n=b.isFirstLine,p=b.anchorPosition}const m=Date.now();for(;!f;){if(c!==0&&Date.now()-m>c)return new rS(a,!0);y()}return new rS(a,!1);function y(){const b=A$(e,t,n,r,a,p);if(!b){o.produce(a,d),f=!0;return}const _=b.captureIndices,A=b.matchedRuleId,C=_&&_.length>0?_[0].end>r:!1;if(A===b$){const x=a.getRule(e);o.produce(a,_[0].start),a=a.withContentNameScopesList(a.nameScopesList),Ou(e,t,n,a,o,x.endCaptures,_),o.produce(a,_[0].end);const D=a;if(a=a.parent,p=D.getAnchorPos(),!C&&D.getEnterPos()===r){a=D,o.produce(a,d),f=!0;return}}else{const x=e.getRule(A);o.produce(a,_[0].start);const D=a,S=x.getName(t.content,_),M=a.contentNameScopesList.pushAttributed(S,e);if(a=a.push(A,r,p,_[0].end===d,null,M,M),x instanceof Cy){const L=x;Ou(e,t,n,a,o,L.beginCaptures,_),o.produce(a,_[0].end),p=_[0].end;const I=L.getContentName(t.content,_),V=M.pushAttributed(I,e);if(a=a.withContentNameScopesList(V),L.endHasBackReferences&&(a=a.withEndRule(L.getEndWithResolvedBackReferences(t.content,_))),!C&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,d),f=!0;return}}else if(x instanceof Tp){const L=x;Ou(e,t,n,a,o,L.beginCaptures,_),o.produce(a,_[0].end),p=_[0].end;const I=L.getContentName(t.content,_),V=M.pushAttributed(I,e);if(a=a.withContentNameScopesList(V),L.whileHasBackReferences&&(a=a.withEndRule(L.getWhileWithResolvedBackReferences(t.content,_))),!C&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,d),f=!0;return}}else if(Ou(e,t,n,a,o,x.captures,_),o.produce(a,_[0].end),a=a.pop(),!C){a=a.safePop(),o.produce(a,d),f=!0;return}}_[0].end>r&&(r=_[0].end,n=!1)}}function x$(e,t,n,r,a,o){let l=a.beginRuleCapturedEOL?0:-1;const c=[];for(let d=a;d;d=d.pop()){const f=d.getRule(e);f instanceof Tp&&c.push({rule:f,stack:d})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:f,findOptions:p}=D$(d.rule,e,d.stack.endRule,n,r===l),m=f.findNextMatchSync(t,r,p);if(m){if(m.ruleId!==Ok){a=d.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(o.produce(d.stack,m.captureIndices[0].start),Ou(e,t,n,d.stack,o,d.rule.whileCaptures,m.captureIndices),o.produce(d.stack,m.captureIndices[0].end),l=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function A$(e,t,n,r,a,o){const l=S$(e,t,n,r,a,o),c=e.getInjections();if(c.length===0)return l;const d=C$(c,e,t,n,r,a,o);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:l}function S$(e,t,n,r,a,o){const l=a.getRule(e),{ruleScanner:c,findOptions:d}=$k(l,e,a.endRule,n,r===o),f=c.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function C$(e,t,n,r,a,o,l){let c=Number.MAX_VALUE,d=null,f,p=0;const m=o.contentNameScopesList.getScopeNames();for(let y=0,b=e.length;y<b;y++){const _=e[y];if(!_.matcher(m))continue;const A=t.getRule(_.ruleId),{ruleScanner:C,findOptions:x}=$k(A,t,null,r,a===l),D=C.findNextMatchSync(n,a,x);if(!D)continue;const S=D.captureIndices[0].start;if(!(S>=c)&&(c=S,d=D.captureIndices,f=D.ruleId,p=_.priority,c===a))break}return d?{priorityMatch:p===-1,captureIndices:d,matchedRuleId:f}:null}function $k(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function D$(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Ou(e,t,n,r,a,o,l){if(o.length===0)return;const c=t.content,d=Math.min(o.length,l.length),f=[],p=l[0].end;for(let m=0;m<d;m++){const y=o[m];if(y===null)continue;const b=l[m];if(b.length===0)continue;if(b.start>p)break;for(;f.length>0&&f[f.length-1].endPos<=b.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,b.start):a.produce(r,b.start),y.retokenizeCapturedWithRuleId){const A=y.getName(c,l),C=r.contentNameScopesList.pushAttributed(A,e),x=y.getContentName(c,l),D=C.pushAttributed(x,e),S=r.push(y.retokenizeCapturedWithRuleId,b.start,-1,!1,null,C,D),M=e.createOnigString(c.substring(0,b.end));Pk(e,M,n&&b.start===0,b.start,S,a,!1,0),wk(M);continue}const _=y.getName(c,l);if(_!==null){const A=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(_,e);f.push(new k$(A,b.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var k$=class{scopes;endPos;constructor(t,n){this.scopes=t,this.endPos=n}};function R$(e,t,n,r,a,o,l,c){return new w$(e,t,n,r,a,o,l,c)}function aS(e,t,n,r,a){const o=Ep(t,_p),l=Lk.getCompiledRuleId(n,r,a.repository);for(const c of o)e.push({debugSelector:t,matcher:c.matcher,ruleId:l,grammar:a,priority:c.priority})}function _p(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(I$(t[a],r))return n=a+1,!0;return!1})}function I$(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var w$=class{constructor(t,n,r,a,o,l,c,d){if(this._rootScopeName=t,this.balancedBracketSelectors=l,this._onigLib=d,this._basicScopeAttributesProvider=new T$(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=iS(n,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const f of Object.keys(o)){const p=Ep(f,_p);for(const m of p)this._tokenTypeMatchers.push({matcher:m.matcher,type:o[f]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},n=[],r=this._rootScopeName,a=t.lookup(r);if(a){const o=a.injections;if(o)for(let c in o)aS(n,c,o[c],this,a);const l=this._grammarRepository.injections(r);l&&l.forEach(c=>{const d=this.getExternalGrammar(c);if(d){const f=d.injectionSelector;f&&aS(n,f,d,this,d)}})}return n.sort((o,l)=>o.priority-l.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const n=++this._lastRuleId,r=t(n);return this._ruleId2desc[n]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,n){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=iS(r,n&&n.$base),this._includedGrammars[t]}}tokenizeLine(t,n,r=0){const a=this._tokenize(t,n,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(t,n,r=0){const a=this._tokenize(t,n,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(t,n,r,a){this._rootId===-1&&(this._rootId=Lk.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!n||n===ky.NULL){o=!0;const p=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),y=Xl.set(0,p.languageId,p.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),b=this.getRule(this._rootId).getName(null,null);let _;b?_=Bu.createRootAndLookUpScopeName(b,y,this):_=Bu.createRoot("unknown",y),n=new ky(null,this._rootId,-1,-1,!1,null,_,_)}else o=!1,n.reset();t=t+`
|
|
60
60
|
`;const l=this.createOnigString(t),c=l.content.length,d=new O$(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),f=Pk(this,l,o,0,n,d,!0,a);return wk(l),{lineLength:c,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function iS(e,t){return e=W8(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Bu=class Za{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const o of n)a=s1.push(a,o.scopeNames),r=new Za(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Za(null,new s1(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new s1(null,t),l=r.themeProvider.themeMatch(o),c=Za.mergeAttributes(n,a,l);return new Za(null,o,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Za.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,l=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,l=r.backgroundId),Xl.set(t,n.languageId,n.tokenType,null,a,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Za._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Za._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),c=Za.mergeAttributes(t.tokenAttributes,a,l);return new Za(t,o,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},ky=class ss{constructor(t,n,r,a,o,l,c,d){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=l,this.nameScopesList=c,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new ss(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:ss._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Bu.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ss._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,l,c){return new ss(this,t,n,r,a,o,l,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ss(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Bu.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new ss(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Bu.fromExtension(r,n.contentNameScopesList))}},N$=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,n){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Ep(r,_p).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Ep(r,_p).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const n of this.unbalancedBracketScopes)if(n(t))return!1;for(const n of this.balancedBracketScopes)if(n(t))return!0;return this.allowAny}},O$=class{constructor(t,n,r,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,n){this.produceFromScopes(t.contentNameScopesList,n)}produceFromScopes(t,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=t?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=t?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(l)&&(a=Xl.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(a=Xl.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(t,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let a=0,o=this._binaryTokens.length;a<o;a++)r[a]=this._binaryTokens[a];return r}},L$=class{constructor(t,n){this._onigLib=n,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,n){this._rawGrammars.set(t.scopeName,t),n&&this._injectionGrammars.set(t.scopeName,n)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,n,r,a,o){if(!this._grammars.has(t)){let l=this._rawGrammars.get(t);if(!l)return null;this._grammars.set(t,R$(t,l,n,r,a,o,this,this._onigLib))}return this._grammars.get(t)}},M$=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new L$(bp.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(bp.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new N$(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const l=new u$(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(c=>this._loadSingleGrammar(c.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},Ry=ky.NULL;const Fk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Hd=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Hd.prototype.normal={};Hd.prototype.property={};Hd.prototype.space=void 0;function Bk(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Hd(n,r,t)}function hd(e){return e.toLowerCase()}let Pr=class{constructor(t,n){this.attribute=n,this.property=t}};Pr.prototype.attribute="";Pr.prototype.booleanish=!1;Pr.prototype.boolean=!1;Pr.prototype.commaOrSpaceSeparated=!1;Pr.prototype.commaSeparated=!1;Pr.prototype.defined=!1;Pr.prototype.mustUseProperty=!1;Pr.prototype.number=!1;Pr.prototype.overloadedBoolean=!1;Pr.prototype.property="";Pr.prototype.spaceSeparated=!1;Pr.prototype.space=void 0;let P$=0;const ht=Bs(),On=Bs(),Iy=Bs(),ke=Bs(),en=Bs(),zl=Bs(),Yr=Bs();function Bs(){return 2**++P$}const wy=Object.freeze(Object.defineProperty({__proto__:null,boolean:ht,booleanish:On,commaOrSpaceSeparated:Yr,commaSeparated:zl,number:ke,overloadedBoolean:Iy,spaceSeparated:en},Symbol.toStringTag,{value:"Module"})),c1=Object.keys(wy);let Jb=class extends Pr{constructor(t,n,r,a){let o=-1;if(super(t,n),oS(this,"space",a),typeof r=="number")for(;++o<c1.length;){const l=c1[o];oS(this,c1[o],(r&wy[l])===wy[l])}}};Jb.prototype.defined=!0;function oS(e,t,n){n&&(e[t]=n)}function sc(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new Jb(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[hd(r)]=r,n[hd(o.attribute)]=r}return new Hd(t,n,e.space)}const jk=sc({properties:{ariaActiveDescendant:null,ariaAtomic:On,ariaAutoComplete:null,ariaBusy:On,ariaChecked:On,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:en,ariaCurrent:null,ariaDescribedBy:en,ariaDetails:null,ariaDisabled:On,ariaDropEffect:en,ariaErrorMessage:null,ariaExpanded:On,ariaFlowTo:en,ariaGrabbed:On,ariaHasPopup:null,ariaHidden:On,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:en,ariaLevel:ke,ariaLive:null,ariaModal:On,ariaMultiLine:On,ariaMultiSelectable:On,ariaOrientation:null,ariaOwns:en,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:On,ariaReadOnly:On,ariaRelevant:null,ariaRequired:On,ariaRoleDescription:en,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:On,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Uk(e,t){return t in e?e[t]:t}function Hk(e,t){return Uk(e,t.toLowerCase())}const $$=sc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zl,acceptCharset:en,accessKey:en,action:null,allow:null,allowFullScreen:ht,allowPaymentRequest:ht,allowUserMedia:ht,alt:null,as:null,async:ht,autoCapitalize:null,autoComplete:en,autoFocus:ht,autoPlay:ht,blocking:en,capture:null,charSet:null,checked:ht,cite:null,className:en,cols:ke,colSpan:null,content:null,contentEditable:On,controls:ht,controlsList:en,coords:ke|zl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ht,defer:ht,dir:null,dirName:null,disabled:ht,download:Iy,draggable:On,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ht,formTarget:null,headers:en,height:ke,hidden:Iy,high:ke,href:null,hrefLang:null,htmlFor:en,httpEquiv:en,id:null,imageSizes:null,imageSrcSet:null,inert:ht,inputMode:null,integrity:null,is:null,isMap:ht,itemId:null,itemProp:en,itemRef:en,itemScope:ht,itemType:en,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ht,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:ht,muted:ht,name:null,nonce:null,noModule:ht,noValidate:ht,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ht,optimum:ke,pattern:null,ping:en,placeholder:null,playsInline:ht,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ht,referrerPolicy:null,rel:en,required:ht,reversed:ht,rows:ke,rowSpan:ke,sandbox:en,scope:null,scoped:ht,seamless:ht,selected:ht,shadowRootClonable:ht,shadowRootDelegatesFocus:ht,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:On,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:ht,useMap:null,value:On,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:en,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ht,declare:ht,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:ht,noHref:ht,noShade:ht,noWrap:ht,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:On,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ht,disableRemotePlayback:ht,prefix:null,property:null,results:ke,security:null,unselectable:null},space:"html",transform:Hk}),F$=sc({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Yr,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:en,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:ht,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zl,g2:zl,glyphName:zl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:Yr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:en,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Yr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Yr,rev:Yr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Yr,requiredFeatures:Yr,requiredFonts:Yr,requiredFormats:Yr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:Yr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Yr,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Yr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Uk}),zk=sc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Gk=sc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Hk}),Vk=sc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lc=Bk([jk,$$,zk,Gk,Vk],"html"),zi=Bk([jk,F$,zk,Gk,Vk],"svg"),sS={}.hasOwnProperty;function um(e,t){const n=t||{};function r(a,...o){let l=r.invalid;const c=r.handlers;if(a&&sS.call(a,e)){const d=String(a[e]);l=sS.call(c,d)?c[d]:r.unknown}if(l)return l.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const B$=/["&'<>`]/g,j$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,U$=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,H$=/[|\\{}()[\]^$+*?.]/g,lS=new WeakMap;function z$(e,t){if(e=e.replace(t.subset?G$(t.subset):B$,r),t.subset||t.escapeOnly)return e;return e.replace(j$,n).replace(U$,r);function n(a,o,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(a,o,l){return t.format(a.charCodeAt(0),l.charCodeAt(o+1),t)}}function G$(e){let t=lS.get(e);return t||(t=V$(e),lS.set(e,t)),t}function V$(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(H$,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const q$=/[\dA-Fa-f]/;function Y$(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!q$.test(String.fromCharCode(t))?r:r+";"}const Q$=/\d/;function K$(e,t,n){const r="&#"+String(e);return n&&t&&!Q$.test(String.fromCharCode(t))?r:r+";"}const W$=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],u1={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},X$=["cent","copy","divide","gt","lt","not","para","times"],qk={}.hasOwnProperty,Ny={};let Th;for(Th in u1)qk.call(u1,Th)&&(Ny[u1[Th]]=Th);const Z$=/[^\dA-Za-z]/;function J$(e,t,n,r){const a=String.fromCharCode(e);if(qk.call(Ny,a)){const o=Ny[a],l="&"+o;return n&&W$.includes(o)&&!X$.includes(o)&&(!r||t&&t!==61&&Z$.test(String.fromCharCode(t)))?l:l+";"}return""}function e9(e,t,n){let r=Y$(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=J$(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=K$(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Gl(e,t){return z$(e,Object.assign({format:e9},t))}const t9=/^>|^->|<!--|-->|--!>|<!-$/g,n9=[">"],r9=["<",">"];function a9(e,t,n,r){return r.settings.bogusComments?"<?"+Gl(e.value,Object.assign({},r.settings.characterReferences,{subset:n9}))+">":"<!--"+e.value.replace(t9,a)+"-->";function a(o){return Gl(o,Object.assign({},r.settings.characterReferences,{subset:r9}))}}function i9(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function xp(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function Oy(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(a,r).trim();(l||!o)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function dm(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Ly(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function fm(e){return e.join(" ").trim()}const o9=/[ \t\n\f\r]/g;function zd(e){return typeof e=="object"?e.type==="text"?cS(e.value):!1:cS(e)}function cS(e){return e.replace(o9,"")===""}const Hn=Qk(1),Yk=Qk(-1),s9=[];function Qk(e){return t;function t(n,r,a){const o=n?n.children:s9;let l=(r||0)+e,c=o[l];if(!a)for(;c&&zd(c);)l+=e,c=o[l];return c}}const l9={}.hasOwnProperty;function Kk(e){return t;function t(n,r,a){return l9.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const eE=Kk({body:u9,caption:d1,colgroup:d1,dd:p9,dt:h9,head:d1,html:c9,li:f9,optgroup:m9,option:g9,p:d9,rp:uS,rt:uS,tbody:b9,td:dS,tfoot:E9,th:dS,thead:y9,tr:v9});function d1(e,t,n){const r=Hn(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&zd(r.value.charAt(0)))}function c9(e,t,n){const r=Hn(n,t);return!r||r.type!=="comment"}function u9(e,t,n){const r=Hn(n,t);return!r||r.type!=="comment"}function d9(e,t,n){const r=Hn(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function f9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&r.tagName==="li"}function h9(e,t,n){const r=Hn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function p9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function uS(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function m9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function g9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function y9(e,t,n){const r=Hn(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function b9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function E9(e,t,n){return!Hn(n,t)}function v9(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function dS(e,t,n){const r=Hn(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const T9=Kk({body:A9,colgroup:S9,head:x9,html:_9,tbody:C9});function _9(e){const t=Hn(e,-1);return!t||t.type!=="comment"}function x9(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function A9(e){const t=Hn(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&zd(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function S9(e,t,n){const r=Yk(n,t),a=Hn(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&eE(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function C9(e,t,n){const r=Yk(n,t),a=Hn(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&eE(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const D9=/[A-Z]/g,fS=/-[a-z]/g,k9=/^data[-\w.:]+$/i;function Gd(e,t){const n=hd(t);let r=t,a=Pr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&k9.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(fS,I9);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!fS.test(o)){let l=o.replace(D9,R9);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=Jb}return new a(r,t)}function R9(e){return"-"+e.toLowerCase()}function I9(e){return e.charAt(1).toUpperCase()}const _h={name:[[`
|
|
61
61
|
\f\r &/=>`.split(""),`
|
|
@@ -66,7 +66,7 @@ export default theme;`}const TL=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
|
|
|
66
66
|
\f\r "&'<=>\``.split("")],[`\0
|
|
67
67
|
\f\r "&'<=>\``.split(""),`\0
|
|
68
68
|
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function w9(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const c=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=zi);const f=N9(r,e.properties),p=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,p&&(l=!1),(f||!o||!T9(e,t,n))&&(c.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=f.charAt(f.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&c.push(" "),c.push("/")),c.push(">")),c.push(p),!l&&(!o||!eE(e,t,n))&&c.push("</"+e.tagName+">"),c.join("")}function N9(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=O9(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function O9(e,t,n){const r=Gd(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,c;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const d=Gl(r.attribute,Object.assign({},e.settings.characterReferences,{subset:_h.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?dm:fm)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(c=Gl(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:_h.unquoted[a][o]}))),c!==n&&(e.settings.quoteSmart&&xp(n,l)>xp(n,e.alternative)&&(l=e.alternative),c=l+Gl(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?_h.single:_h.double)[a][o],attribute:!0}))+l),d+(c&&"="+c))}const L9=["<","&"];function Wk(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Gl(e.value,Object.assign({},r.settings.characterReferences,{subset:L9}))}function M9(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Wk(e,t,n,r)}function P9(e,t,n,r){return r.all(e)}const $9=um("type",{invalid:F9,unknown:B9,handlers:{comment:a9,doctype:i9,element:w9,raw:M9,root:P9,text:Wk}});function F9(e){throw new Error("Expected node, not `"+e+"`")}function B9(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const j9={},U9={},H9=[];function z9(e,t){const n=j9,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:G9,all:V9,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Fk,characterReferences:n.characterReferences||U9,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?zi:lc,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function G9(e,t,n){return $9(e,t,n,this)}function V9(e){const t=[],n=e&&e.children||H9;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function q9(e){return Array.isArray(e)?e:[e]}function hm(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let o=0;o<n.length;o+=2){const l=t?n[o]+(n[o+1]||""):n[o];a.push([l,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function tE(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Xk(e){return e==="ansi"||tE(e)}function nE(e){return e==="none"}function Zk(e){return nE(e)}function Jk(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Y9(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function Q9(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,c)=>l-c);return o.length?Y9(a,o):a})):e}async function e3(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Ap(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function gs(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function t3(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Fi.Italic&&(t["font-style"]="italic"),e.fontStyle&Fi.Bold&&(t["font-weight"]="bold"),e.fontStyle&Fi.Underline&&(t["text-decoration"]="underline")),t}function K9(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function W9(e){const t=hm(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,l=0;for(const c of t){if(o<c.length)break;o-=c.length,l++}return{line:l,character:o}}function r(a,o){let l=0;for(let c=0;c<a;c++)l+=t[c].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}let vr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};const n3=new WeakMap;function pm(e,t){n3.set(e,t)}function pd(e){return n3.get(e)}let mm=class r3{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new r3(Object.fromEntries(q9(n).map(r=>[r,Ry])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return hS(this._stacks[this.theme])}getScopes(t=this.theme){return hS(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}};function hS(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function X9(e,t){if(!(e instanceof mm))throw new vr("Invalid grammar state");return e.getInternalStack(t)}function Z9(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new vr(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const c=a.lines[l.line];if(c===void 0)throw new vr(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>c.length)throw new vr(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${c.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=W9(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));J9(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Q9(n,r)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new vr(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(p,m,y,b){const _=a[p];let A="",C=-1,x=-1;if(m===0&&(C=0),y===0&&(x=0),y===Number.POSITIVE_INFINITY&&(x=_.children.length),C===-1||x===-1)for(let S=0;S<_.children.length;S++)A+=a3(_.children[S]),C===-1&&A.length===m&&(C=S+1),x===-1&&A.length===y&&(x=S+1);if(C===-1)throw new vr(`Failed to find start index for decoration ${JSON.stringify(b.start)}`);if(x===-1)throw new vr(`Failed to find end index for decoration ${JSON.stringify(b.end)}`);const D=_.children.slice(C,x);if(!b.alwaysWrap&&D.length===_.children.length)c(_,b,"line");else if(!b.alwaysWrap&&D.length===1&&D[0].type==="element")c(D[0],b,"token");else{const S={type:"element",tagName:"span",properties:{},children:D};c(S,b,"wrapper"),_.children.splice(C,D.length,S)}}function l(p,m){a[p]=c(a[p],m,"line")}function c(p,m,y){const b=m.properties||{},_=m.transform||(A=>A);return p.tagName=m.tagName||"span",p.properties={...p.properties,...b,class:p.properties.class},m.properties?.class&&Jk(p,m.properties.class),p=_(p,y)||p,p}const d=[],f=r.decorations.sort((p,m)=>m.start.offset-p.start.offset);for(const p of f){const{start:m,end:y}=p;if(m.line===y.line)o(m.line,m.character,y.character,p);else if(m.line<y.line){o(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let b=m.line+1;b<y.line;b++)d.unshift(()=>l(b,p));o(y.line,0,y.character,p)}}d.forEach(p=>p())}}}function J9(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new vr(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,c=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||l||c||d){if(l&&l||c&&d)continue;throw new vr(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function a3(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(a3).join(""):""}const eF=[Z9()];function Sp(e){return[...e.transformers||[],...eF]}var ys=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],f1={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function tF(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function pS(e,t){let n=1;const r=e[t+n++];let a;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(l=>Number.parseInt(l));o.length===3&&!o.some(l=>Number.isNaN(l))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[n,a]}function nF(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)f1[a]&&t.push({type:"setDecoration",value:f1[a]});else if(a<=29){const o=f1[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ys[a-30]}});else if(a===38){const[o,l]=pS(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ys[a-40]}});else if(a===48){const[o,l]=pS(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ys[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ys[a-100+8]}})}return t}function rF(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const l=tF(r,o),c=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(c.length>0&&a.push({value:c,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=nF(l.sequence);for(const f of d)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of d)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}o=l.position}while(o<r.length);return a}}}var aF={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function iF(e=aF){function t(c){return e[c]}function n(c){return`#${c.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<ys.length;f++)r.push(t(ys[f]));let c=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)r.push(n([c[f],c[p],c[m]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function o(c){return a()[c]}function l(c){switch(c.type){case"named":return t(c.name);case"rgb":return n(c.rgb);case"table":return o(c.index)}}return{value:l}}function oF(e,t,n){const r=Ap(e,n),a=hm(t),o=iF(Object.fromEntries(ys.map(c=>[c,e.colors?.[`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`]]))),l=rF();return a.map(c=>l.parse(c[0]).map(d=>{let f,p;d.decorations.has("reverse")?(f=d.background?o.value(d.background):e.bg,p=d.foreground?o.value(d.foreground):e.fg):(f=d.foreground?o.value(d.foreground):e.fg,p=d.background?o.value(d.background):void 0),f=gs(f,r),p=gs(p,r),d.decorations.has("dim")&&(f=sF(f));let m=Fi.None;return d.decorations.has("bold")&&(m|=Fi.Bold),d.decorations.has("italic")&&(m|=Fi.Italic),d.decorations.has("underline")&&(m|=Fi.Underline),{content:d.value,offset:c[1],color:f,bgColor:p,fontStyle:m}}))}function sF(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function rE(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(tE(r)||nE(a))return hm(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:o,colorMap:l}=e.setTheme(a);if(r==="ansi")return oF(o,t,n);const c=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==c.name)throw new Bi(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${c.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Bi(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return cF(t,c,o,l,n)}function lF(...e){if(e.length===2)return pd(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(tE(a)||nE(o))throw new Bi("Plain language does not have grammar state");if(a==="ansi")throw new Bi("ANSI language does not have grammar state");const{theme:l,colorMap:c}=t.setTheme(o),d=t.getLanguage(a);return new mm(Cp(n,d,l,c,r).stateStack,d.name,l.name)}function cF(e,t,n,r,a){const o=Cp(e,t,n,r,a),l=new mm(Cp(e,t,n,r,a).stateStack,t.name,n.name);return pm(o.tokens,l),o.tokens}function Cp(e,t,n,r,a){const o=Ap(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:c=500}=a,d=hm(e);let f=a.grammarState?X9(a.grammarState,n.name)??Ry:a.grammarContextCode!=null?Cp(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ry,p=[];const m=[];for(let y=0,b=d.length;y<b;y++){const[_,A]=d[y];if(_===""){p=[],m.push([]);continue}if(l>0&&_.length>=l){p=[],m.push([{content:_,offset:A,color:"",fontStyle:0}]);continue}let C,x,D;a.includeExplanation&&(C=t.tokenizeLine(_,f),x=C.tokens,D=0);const S=t.tokenizeLine2(_,f,c),M=S.tokens.length/2;for(let L=0;L<M;L++){const I=S.tokens[2*L],V=L+1<M?S.tokens[2*L+2]:_.length;if(I===V)continue;const te=S.tokens[2*L+1],Q=gs(r[Xl.getForeground(te)],o),k=Xl.getFontStyle(te),H={content:_.substring(I,V),offset:A+I,color:Q,fontStyle:k};if(a.includeExplanation){const W=[];if(a.includeExplanation!=="scopeName")for(const re of n.settings){let me;switch(typeof re.scope){case"string":me=re.scope.split(/,/).map(G=>G.trim());break;case"object":me=re.scope;break;default:continue}W.push({settings:re,selectors:me.map(G=>G.split(/ /))})}H.explanation=[];let K=0;for(;I+K<V;){const re=x[D],me=_.substring(re.startIndex,re.endIndex);K+=me.length,H.explanation.push({content:me,scopes:a.includeExplanation==="scopeName"?uF(re.scopes):dF(W,re.scopes)}),D+=1}}p.push(H)}m.push(p),p=[],f=S.ruleStack}return{tokens:m,stateStack:f}}function uF(e){return e.map(t=>({scopeName:t}))}function dF(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:hF(e,o,t.slice(0,r))}}return n}function mS(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function fF(e,t,n){if(!mS(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)mS(e[r],n[a])&&(r-=1),a-=1;return r===-1}function hF(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const l of a)if(fF(l,t,n)){r.push(o);break}return r}function i3(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),a=r.map(d=>{const f=rE(e,t,{...n,theme:d.theme}),p=pd(f),m=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:p,theme:m}}),o=pF(...a.map(d=>d.tokens)),l=o[0].map((d,f)=>d.map((p,m)=>{const y={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in n&&n.includeExplanation&&(y.explanation=p.explanation),o.forEach((b,_)=>{const{content:A,explanation:C,offset:x,...D}=b[f][m];y.variants[r[_].color]=D}),y})),c=a[0].state?new mm(Object.fromEntries(a.map(d=>[d.theme,d.state?.getInternalStack(d.theme)])),a[0].state.lang):void 0;return c&&pm(l,c),l}function pF(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),o=t.map(()=>[]);t.forEach((d,f)=>d.push(o[f]));const l=a.map(()=>0),c=a.map(d=>d[0]);for(;c.every(d=>d);){const d=Math.min(...c.map(f=>f.content.length));for(let f=0;f<n;f++){const p=c[f];p.content.length===d?(o[f].push(p),l[f]+=1,c[f]=a[f][l[f]]):(o[f].push({...p,content:p.content.slice(0,d)}),c[f]={...p,content:p.content.slice(d),offset:p.offset+d})}}}return t}function Dp(e,t,n){let r,a,o,l,c,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:p="--shiki-"}=n,m=Object.entries(n.themes).filter(C=>C[1]).map(C=>({color:C[0],theme:C[1]})).sort((C,x)=>C.color===f?-1:x.color===f?1:0);if(m.length===0)throw new Bi("`themes` option must not be empty");const y=i3(e,t,n);if(d=pd(y),f&&!m.find(C=>C.color===f))throw new Bi(`\`themes\` option must contain the defaultColor key \`${f}\``);const b=m.map(C=>e.getTheme(C.theme)),_=m.map(C=>C.color);o=y.map(C=>C.map(x=>mF(x,_,p,f))),d&&pm(o,d);const A=m.map(C=>Ap(C.theme,n));a=m.map((C,x)=>(x===0&&f?"":`${p+C.color}:`)+(gs(b[x].fg,A[x])||"inherit")).join(";"),r=m.map((C,x)=>(x===0&&f?"":`${p+C.color}-bg:`)+(gs(b[x].bg,A[x])||"inherit")).join(";"),l=`shiki-themes ${b.map(C=>C.name).join(" ")}`,c=f?void 0:[a,r].join(";")}else if("theme"in n){const f=Ap(n.theme,n);o=rE(e,t,n);const p=e.getTheme(n.theme);r=gs(p.bg,f),a=gs(p.fg,f),l=p.name,d=pd(o)}else throw new Bi("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:l,rootStyle:c,grammarState:d}}function mF(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(d=>t3(e.variants[d])),l=new Set(o.flatMap(d=>Object.keys(d))),c={};return o.forEach((d,f)=>{for(const p of l){const m=d[p]||"inherit";if(f===0&&r)c[p]=m;else{const y=p==="color"?"":p==="background-color"?"-bg":`-${p}`,b=n+t[f]+(p==="color"?"":y);c[b]=m}}}),a.htmlStyle=c,a}function kp(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>kp(e,a,o),codeToTokens:(a,o)=>Dp(e,a,o)}){let a=t;for(const b of Sp(n))a=b.preprocess?.call(r,a,n)||a;let{tokens:o,fg:l,bg:c,themeName:d,rootStyle:f,grammarState:p}=Dp(e,a,n);const{mergeWhitespaces:m=!0}=n;m===!0?o=yF(o):m==="never"&&(o=bF(o));const y={...r,get source(){return a}};for(const b of Sp(n))o=b.tokens?.call(y,o)||o;return gF(o,{...n,fg:l,bg:c,themeName:d,rootStyle:f},y,p)}function gF(e,t,n,r=pd(e)){const a=Sp(t),o=[],l={type:"root",children:[]},{structure:c="classic",tabindex:d="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...d!==!1&&d!=null?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([_])=>!_.startsWith("_")))},children:[]},p={type:"element",tagName:"code",properties:{},children:o};const m=[],y={...n,structure:c,addClassToHast:Jk,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return p},get lines(){return m}};if(e.forEach((_,A)=>{A&&(c==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):c==="classic"&&o.push({type:"text",value:`
|
|
69
|
-
`}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},x=0;for(const D of _){let S={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const M=K9(D.htmlStyle||t3(D));M&&(S.properties.style=M);for(const L of a)S=L?.span?.call(y,S,A+1,x,C,D)||S;c==="inline"?l.children.push(S):c==="classic"&&C.children.push(S),x+=D.content.length}if(c==="classic"){for(const D of a)C=D?.line?.call(y,C,A+1)||C;m.push(C),o.push(C)}}),c==="classic"){for(const _ of a)p=_?.code?.call(y,p)||p;f.children.push(p);for(const _ of a)f=_?.pre?.call(y,f)||f;l.children.push(f)}let b=l;for(const _ of a)b=_?.root?.call(y,b)||b;return r&&pm(b,r),b}function yF(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,l)=>{const c=!(o.fontStyle&&o.fontStyle&Fi.Underline);c&&o.content.match(/^\s+$/)&&t[l+1]?(a||(a=o.offset),r+=o.content):r?(c?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function bF(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,l]=r;if(!a&&!l)return n;const c=[{...n,offset:n.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:n.offset}),l&&c.push({content:l,offset:n.offset+a.length+o.length}),c}))}function EF(e,t,n){const r={meta:{},options:n,codeToHast:(o,l)=>kp(e,o,l),codeToTokens:(o,l)=>Dp(e,o,l)};let a=z9(kp(e,t,n,r));for(const o of Sp(n))a=o.postprocess?.call(r,a,n)||a;return a}const gS={light:"#333333",dark:"#bbbbbb"},yS={light:"#fffffe",dark:"#1e1e1e"},bS="__shiki_resolved";function aE(e){if(e?.[bS])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?gS.light:gS.dark),n||(n=t.type==="light"?yS.light:yS.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function l(c){if(o.has(c))return o.get(c);a+=1;const d=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?l(c):(o.set(c,d),d)}t.settings=t.settings.map(c=>{const d=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),f=c.settings?.background&&!c.settings.background.startsWith("#");if(!d&&!f)return c;const p={...c,settings:{...c.settings}};if(d){const m=l(c.settings.foreground);t.colorReplacements[m]=c.settings.foreground,p.settings.foreground=m}if(f){const m=l(c.settings.background);t.colorReplacements[m]=c.settings.background,p.settings.background=m}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const d=l(t.colors[c]);t.colorReplacements[d]=t.colors[c],t.colors[c]=d}return Object.defineProperty(t,bS,{enumerable:!1,writable:!1,value:!0}),t}async function o3(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Xk(t)).map(async t=>await e3(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function s3(e){return(await Promise.all(e.map(async t=>Zk(t)?null:aE(await e3(t))))).filter(t=>!!t)}let vF=class extends M${constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=aE(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=bp.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new vr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,l])=>l&&l.embeddedLangs?.some(c=>r.map(([d])=>d).includes(c))).filter(o=>!r.includes(o));throw new vr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}},TF=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}},yu=0;function _F(e){yu+=1,e.warnings!==!1&&yu>=10&&yu%10===0&&console.warn(`[Shiki] ${yu} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new vr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(aE),a=new TF(e.engine,n),o=new vF(a,r,n,e.langAlias);let l;function c(D){C();const S=o.getGrammar(typeof D=="string"?D:D.name);if(!S)throw new vr(`Language \`${D}\` not found, you may need to load it first`);return S}function d(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const S=o.getTheme(D);if(!S)throw new vr(`Theme \`${D}\` not found, you may need to load it first`);return S}function f(D){C();const S=d(D);l!==D&&(o.setTheme(S),l=D);const M=o.getColorMap();return{theme:S,colorMap:M}}function p(){return C(),o.getLoadedThemes()}function m(){return C(),o.getLoadedLanguages()}function y(...D){C(),o.loadLanguages(D.flat(1))}async function b(...D){return y(await o3(D))}function _(...D){C();for(const S of D.flat(1))o.loadTheme(S)}async function A(...D){return C(),_(await s3(D))}function C(){if(t)throw new vr("Shiki instance has been disposed")}function x(){t||(t=!0,o.dispose(),yu-=1)}return{setTheme:f,getTheme:d,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:b,loadLanguageSync:y,loadTheme:A,loadThemeSync:_,dispose:x,[Symbol.dispose]:x}}async function xF(e={}){e.loadWasm;const[t,n,r]=await Promise.all([s3(e.themes||[]),o3(e.langs||[]),e.engine||_k(e.loadWasm||K8())]);return _F({...e,themes:t,langs:n,engine:r})}async function AF(e={}){const t=await xF(e);return{getLastGrammarState:(...n)=>lF(t,...n),codeToTokensBase:(n,r)=>rE(t,n,r),codeToTokensWithThemes:(n,r)=>i3(t,n,r),codeToTokens:(n,r)=>Dp(t,n,r),codeToHast:(n,r)=>kp(t,n,r),codeToHtml:(n,r)=>EF(t,n,r),...t,getInternalContext:()=>t}}function SF(e,t,n){let r,a,o;{const c=e;r=c.langs,a=c.themes,o=c.engine}async function l(c){function d(b){if(typeof b=="string"){if(Xk(b))return[];const _=r[b];if(!_)throw new Bi(`Language \`${b}\` is not included in this bundle. You may want to load it from external source.`);return _}return b}function f(b){if(Zk(b))return"none";if(typeof b=="string"){const _=a[b];if(!_)throw new Bi(`Theme \`${b}\` is not included in this bundle. You may want to load it from external source.`);return _}return b}const p=(c.themes??[]).map(b=>f(b)),m=(c.langs??[]).map(b=>d(b)),y=await AF({engine:c.engine??o(),...c,themes:p,langs:m});return{...y,loadLanguage(...b){return y.loadLanguage(...b.map(d))},loadTheme(...b){return y.loadTheme(...b.map(f))}}}return l}const CF=SF({langs:R8,themes:w8,engine:()=>_k(F(()=>import("./index.es238-CG6Dc4jp.js"),[]))}),h1={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},DF={...h1,patterns:[...h1.patterns,{include:"#docvar"}],repository:{...h1.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},kF={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},l3="github-light",RF=CF({themes:[l3],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...DF},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...kF}]});async function Rp(e,t){return(await RF).codeToHtml(e,{lang:t,theme:l3})}const c3=w.createContext(void 0),Ip=({projectName:e,packageName:t,versionId:n,children:r})=>v.jsx(c3.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function Sa(e=!0){const t=w.useContext(c3);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}const u3=nn(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),md=nn(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),IF=nn(v.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}));function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ds.apply(this,arguments)}const wF=["children","options"],ES=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),vS={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},NF=["style","script","pre"],OF=["src","href","data","formAction","srcDoc","action"],LF=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,MF=/mailto:/i,PF=/\n{2,}$/,TS=/^(\s*>[\s\S]*?)(?=\n\n|$)/,$F=/^ *> ?/gm,FF=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,BF=/^ {2,}\n/,jF=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,_S=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,xS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,UF=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,HF=/^(?:\n *)*\n/,zF=/\r\n?/g,GF=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,VF=/^\[\^([^\]]+)]/,qF=/\f/g,YF=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,QF=/^\s*?\[(x|\s)\]/,AS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,SS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,CS=/^([^\n]+)\n *(=|-){3,} *\n/,p1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,KF=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,DS=/^<!--[\s\S]*?(?:-->)/,WF=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,m1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,XF=/^\{.*\}$/,ZF=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,JF=/^<([^ >]+@[^ >]+)>/,eB=/^<([^ >]+:\/[^ >]+)>/,tB=/-([a-z])?/gi,kS=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,nB=/^[^\n]+(?: \n|\n{2,})/,rB=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,aB=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,iB=/^\[([^\]]*)\] ?\[([^\]]*)\]/,oB=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,sB=/\t/g,lB=/(^ *\||\| *$)/g,cB=/^ *:-+: *$/,uB=/^ *:-+ *$/,dB=/^ *-+: *$/,gm="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",fB=RegExp(`^([*_])\\1${gm}\\1\\1(?!\\1)`),hB=RegExp(`^([*_])${gm}\\1(?!\\1)`),pB=RegExp(`^(==)${gm}\\1`),mB=RegExp(`^(~~)${gm}\\1`),gB=/^(:[a-zA-Z0-9-_]+:)/,yB=/^\\([^0-9A-Za-z\s])/,bB=/\\([^0-9A-Za-z\s])/g,EB=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,vB=/^\n+/,TB=/^([ \t]*)/,_B=/(?:^|\n)( *)$/,iE="(?:\\d+\\.)",oE="(?:[*+-])";function d3(e){return"( *)("+(e===1?iE:oE)+") +"}const f3=d3(1),h3=d3(2);function p3(e){return RegExp("^"+(e===1?f3:h3))}const xB=p3(1),AB=p3(2);function m3(e){return RegExp("^"+(e===1?f3:h3)+"[^\\n]*(?:\\n(?!\\1"+(e===1?iE:oE)+" )[^\\n]*)*(\\n|$)","gm")}const SB=m3(1),CB=m3(2);function g3(e){const t=e===1?iE:oE;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const y3=g3(1),b3=g3(2);function RS(e,t){const n=t===1,r=n?y3:b3,a=n?SB:CB,o=n?xB:AB;return{t:l=>o.test(l),o:Zl(function(l,c){const d=_B.exec(c.prevCapture);return d&&(c.list||!c.inline&&!c.simple)?r.exec(l=d[1]+l):null}),i:1,u(l,c,d){const f=n?+l[2]:void 0,p=l[0].replace(PF,`
|
|
69
|
+
`}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},x=0;for(const D of _){let S={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};D.htmlStyle;const M=K9(D.htmlStyle||t3(D));M&&(S.properties.style=M);for(const L of a)S=L?.span?.call(y,S,A+1,x,C,D)||S;c==="inline"?l.children.push(S):c==="classic"&&C.children.push(S),x+=D.content.length}if(c==="classic"){for(const D of a)C=D?.line?.call(y,C,A+1)||C;m.push(C),o.push(C)}}),c==="classic"){for(const _ of a)p=_?.code?.call(y,p)||p;f.children.push(p);for(const _ of a)f=_?.pre?.call(y,f)||f;l.children.push(f)}let b=l;for(const _ of a)b=_?.root?.call(y,b)||b;return r&&pm(b,r),b}function yF(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,l)=>{const c=!(o.fontStyle&&o.fontStyle&Fi.Underline);c&&o.content.match(/^\s+$/)&&t[l+1]?(a||(a=o.offset),r+=o.content):r?(c?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function bF(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,l]=r;if(!a&&!l)return n;const c=[{...n,offset:n.offset+a.length,content:o}];return a&&c.unshift({content:a,offset:n.offset}),l&&c.push({content:l,offset:n.offset+a.length+o.length}),c}))}function EF(e,t,n){const r={meta:{},options:n,codeToHast:(o,l)=>kp(e,o,l),codeToTokens:(o,l)=>Dp(e,o,l)};let a=z9(kp(e,t,n,r));for(const o of Sp(n))a=o.postprocess?.call(r,a,n)||a;return a}const gS={light:"#333333",dark:"#bbbbbb"},yS={light:"#fffffe",dark:"#1e1e1e"},bS="__shiki_resolved";function aE(e){if(e?.[bS])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const c=t.settings?t.settings.find(d=>!d.name&&!d.scope):void 0;c?.settings?.foreground&&(r=c.settings.foreground),c?.settings?.background&&(n=c.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?gS.light:gS.dark),n||(n=t.type==="light"?yS.light:yS.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function l(c){if(o.has(c))return o.get(c);a+=1;const d=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${d}`]?l(c):(o.set(c,d),d)}t.settings=t.settings.map(c=>{const d=c.settings?.foreground&&!c.settings.foreground.startsWith("#"),f=c.settings?.background&&!c.settings.background.startsWith("#");if(!d&&!f)return c;const p={...c,settings:{...c.settings}};if(d){const m=l(c.settings.foreground);t.colorReplacements[m]=c.settings.foreground,p.settings.foreground=m}if(f){const m=l(c.settings.background);t.colorReplacements[m]=c.settings.background,p.settings.background=m}return p});for(const c of Object.keys(t.colors||{}))if((c==="editor.foreground"||c==="editor.background"||c.startsWith("terminal.ansi"))&&!t.colors[c]?.startsWith("#")){const d=l(t.colors[c]);t.colorReplacements[d]=t.colors[c],t.colors[c]=d}return Object.defineProperty(t,bS,{enumerable:!1,writable:!1,value:!0}),t}async function o3(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Xk(t)).map(async t=>await e3(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function s3(e){return(await Promise.all(e.map(async t=>Zk(t)?null:aE(await e3(t))))).filter(t=>!!t)}let vF=class extends M${constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=aE(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=bp.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new vr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,l])=>l&&l.embeddedLangs?.some(c=>r.map(([d])=>d).includes(c))).filter(o=>!r.includes(o));throw new vr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}},TF=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}},yu=0;function _F(e){yu+=1,e.warnings!==!1&&yu>=10&&yu%10===0&&console.warn(`[Shiki] ${yu} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new vr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(aE),a=new TF(e.engine,n),o=new vF(a,r,n,e.langAlias);let l;function c(D){C();const S=o.getGrammar(typeof D=="string"?D:D.name);if(!S)throw new vr(`Language \`${D}\` not found, you may need to load it first`);return S}function d(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};C();const S=o.getTheme(D);if(!S)throw new vr(`Theme \`${D}\` not found, you may need to load it first`);return S}function f(D){C();const S=d(D);l!==D&&(o.setTheme(S),l=D);const M=o.getColorMap();return{theme:S,colorMap:M}}function p(){return C(),o.getLoadedThemes()}function m(){return C(),o.getLoadedLanguages()}function y(...D){C(),o.loadLanguages(D.flat(1))}async function b(...D){return y(await o3(D))}function _(...D){C();for(const S of D.flat(1))o.loadTheme(S)}async function A(...D){return C(),_(await s3(D))}function C(){if(t)throw new vr("Shiki instance has been disposed")}function x(){t||(t=!0,o.dispose(),yu-=1)}return{setTheme:f,getTheme:d,getLanguage:c,getLoadedThemes:p,getLoadedLanguages:m,loadLanguage:b,loadLanguageSync:y,loadTheme:A,loadThemeSync:_,dispose:x,[Symbol.dispose]:x}}async function xF(e={}){e.loadWasm;const[t,n,r]=await Promise.all([s3(e.themes||[]),o3(e.langs||[]),e.engine||_k(e.loadWasm||K8())]);return _F({...e,themes:t,langs:n,engine:r})}async function AF(e={}){const t=await xF(e);return{getLastGrammarState:(...n)=>lF(t,...n),codeToTokensBase:(n,r)=>rE(t,n,r),codeToTokensWithThemes:(n,r)=>i3(t,n,r),codeToTokens:(n,r)=>Dp(t,n,r),codeToHast:(n,r)=>kp(t,n,r),codeToHtml:(n,r)=>EF(t,n,r),...t,getInternalContext:()=>t}}function SF(e,t,n){let r,a,o;{const c=e;r=c.langs,a=c.themes,o=c.engine}async function l(c){function d(b){if(typeof b=="string"){if(Xk(b))return[];const _=r[b];if(!_)throw new Bi(`Language \`${b}\` is not included in this bundle. You may want to load it from external source.`);return _}return b}function f(b){if(Zk(b))return"none";if(typeof b=="string"){const _=a[b];if(!_)throw new Bi(`Theme \`${b}\` is not included in this bundle. You may want to load it from external source.`);return _}return b}const p=(c.themes??[]).map(b=>f(b)),m=(c.langs??[]).map(b=>d(b)),y=await AF({engine:c.engine??o(),...c,themes:p,langs:m});return{...y,loadLanguage(...b){return y.loadLanguage(...b.map(d))},loadTheme(...b){return y.loadTheme(...b.map(f))}}}return l}const CF=SF({langs:R8,themes:w8,engine:()=>_k(F(()=>import("./index.es220-CG6Dc4jp.js"),[]))}),h1={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},DF={...h1,patterns:[...h1.patterns,{include:"#docvar"}],repository:{...h1.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},kF={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},l3="github-light",RF=CF({themes:[l3],langs:["sql","json","typescript",{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...DF},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...kF}]});async function Rp(e,t){return(await RF).codeToHtml(e,{lang:t,theme:l3})}const c3=w.createContext(void 0),Ip=({projectName:e,packageName:t,versionId:n,children:r})=>v.jsx(c3.Provider,{value:{projectName:e,packageName:t,versionId:n},children:r});function Sa(e=!0){const t=w.useContext(c3);if(!t&&e)throw new Error("usePackage must be used within a PackageProvider");return t}const u3=nn(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),md=nn(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),IF=nn(v.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}));function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ds.apply(this,arguments)}const wF=["children","options"],ES=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),vS={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},NF=["style","script","pre"],OF=["src","href","data","formAction","srcDoc","action"],LF=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,MF=/mailto:/i,PF=/\n{2,}$/,TS=/^(\s*>[\s\S]*?)(?=\n\n|$)/,$F=/^ *> ?/gm,FF=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,BF=/^ {2,}\n/,jF=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,_S=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,xS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,UF=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,HF=/^(?:\n *)*\n/,zF=/\r\n?/g,GF=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,VF=/^\[\^([^\]]+)]/,qF=/\f/g,YF=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,QF=/^\s*?\[(x|\s)\]/,AS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,SS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,CS=/^([^\n]+)\n *(=|-){3,} *\n/,p1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,KF=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,DS=/^<!--[\s\S]*?(?:-->)/,WF=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,m1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,XF=/^\{.*\}$/,ZF=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,JF=/^<([^ >]+@[^ >]+)>/,eB=/^<([^ >]+:\/[^ >]+)>/,tB=/-([a-z])?/gi,kS=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,nB=/^[^\n]+(?: \n|\n{2,})/,rB=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,aB=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,iB=/^\[([^\]]*)\] ?\[([^\]]*)\]/,oB=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,sB=/\t/g,lB=/(^ *\||\| *$)/g,cB=/^ *:-+: *$/,uB=/^ *:-+ *$/,dB=/^ *-+: *$/,gm="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",fB=RegExp(`^([*_])\\1${gm}\\1\\1(?!\\1)`),hB=RegExp(`^([*_])${gm}\\1(?!\\1)`),pB=RegExp(`^(==)${gm}\\1`),mB=RegExp(`^(~~)${gm}\\1`),gB=/^(:[a-zA-Z0-9-_]+:)/,yB=/^\\([^0-9A-Za-z\s])/,bB=/\\([^0-9A-Za-z\s])/g,EB=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,vB=/^\n+/,TB=/^([ \t]*)/,_B=/(?:^|\n)( *)$/,iE="(?:\\d+\\.)",oE="(?:[*+-])";function d3(e){return"( *)("+(e===1?iE:oE)+") +"}const f3=d3(1),h3=d3(2);function p3(e){return RegExp("^"+(e===1?f3:h3))}const xB=p3(1),AB=p3(2);function m3(e){return RegExp("^"+(e===1?f3:h3)+"[^\\n]*(?:\\n(?!\\1"+(e===1?iE:oE)+" )[^\\n]*)*(\\n|$)","gm")}const SB=m3(1),CB=m3(2);function g3(e){const t=e===1?iE:oE;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const y3=g3(1),b3=g3(2);function RS(e,t){const n=t===1,r=n?y3:b3,a=n?SB:CB,o=n?xB:AB;return{t:l=>o.test(l),o:Zl(function(l,c){const d=_B.exec(c.prevCapture);return d&&(c.list||!c.inline&&!c.simple)?r.exec(l=d[1]+l):null}),i:1,u(l,c,d){const f=n?+l[2]:void 0,p=l[0].replace(PF,`
|
|
70
70
|
`).match(a);let m=!1;return{items:p.map(function(y,b){const _=o.exec(y)[0].length,A=RegExp("^ {1,"+_+"}","gm"),C=y.replace(A,"").replace(o,""),x=b===p.length-1,D=C.indexOf(`
|
|
71
71
|
|
|
72
72
|
`)!==-1||x&&m;m=D;const S=d.inline,M=d.list;let L;d.list=!0,D?(d.inline=!1,L=ju(C)+`
|
|
@@ -82,7 +82,7 @@ export default theme;`}const TL=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
|
|
|
82
82
|
`)===-1)return null;let S="";x.split(`
|
|
83
83
|
`).every(L=>(L+=`
|
|
84
84
|
`,!o.some(I=>I.test(L))&&(S+=L,!!L.trim())));const M=ju(S);return M===""?null:[S,,M]}),i:3,u:g1,l:(x,D,S)=>c("p",{key:S.key},D(x.children,S))},22:{t:["["],o:yo(rB),i:0,u:x=>(m[x[1]]={target:x[2],title:x[4]},{}),l:b1},23:{t:["!["],o:bo(aB),i:0,u:x=>({alt:x[1]?Wa(x[1]):void 0,ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("img",{key:S.key,alt:x.alt,src:r(m[x.ref].target,"img","src"),title:m[x.ref].title}):null},24:{t:x=>x[0]==="["&&x.indexOf("](")===-1,o:yo(iB),i:0,u:(x,D,S)=>({children:D(x[1],S),fallbackChildren:x[0],ref:x[2]}),l:(x,D,S)=>m[x.ref]?c("a",{key:S.key,href:r(m[x.ref].target,"a","href"),title:m[x.ref].title},D(x.children,S)):c("span",{key:S.key},x.fallbackChildren)},25:{t:["|"],o:Ii(kS),i:1,u:wB,l(x,D,S){const M=x;return c("table",{key:S.key},c("thead",null,c("tr",null,M.header.map(function(L,I){return c("th",{key:I,style:wS(M,I)},D(L,S))}))),c("tbody",null,M.cells.map(function(L,I){return c("tr",{key:I},L.map(function(V,te){return c("td",{key:te,style:wS(M,te)},D(V,S))}))})))}},27:{o:Zl(function(x,D){let S;return Vh(x,":")&&(S=gB.exec(x)),S||EB.exec(x)}),i:4,u(x){const D=x[0];return{text:D.indexOf("&")===-1?D:D.replace(KF,(S,M)=>t.namedCodesToUnicode[M]||S)}},l:x=>x.text},28:{t:["**","__"],o:bo(fB),i:2,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("strong",{key:S.key},D(x.children,S))},29:{t:x=>{const D=x[0];return(D==="*"||D==="_")&&x[1]!==D},o:bo(hB),i:3,u:(x,D,S)=>({children:D(x[2],S)}),l:(x,D,S)=>c("em",{key:S.key},D(x.children,S))},30:{t:["\\"],o:bo(yB),i:1,u:x=>({text:x[1],type:"27"})},31:{t:["=="],o:bo(pB),i:3,u:g1,l:(x,D,S)=>c("mark",{key:S.key},D(x.children,S))},32:{t:["~~"],o:bo(mB),i:3,u:g1,l:(x,D,S)=>c("del",{key:S.key},D(x.children,S))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const b=function(x){var D=Object.keys(x);function S(M,L){var I=[];if(L.prevCapture=L.prevCapture||"",M.trim())for(;M;)for(var V=0;V<D.length;){var te=D[V],Q=x[te];if(!Q.t||RB(M,L,Q.t)){var k=Q.o(M,L);if(k&&k[0]){M=M.substring(k[0].length);var H=Q.u(k,S,L);L.prevCapture+=k[0],H.type||(H.type=te),I.push(H);break}V++}else V++}return L.prevCapture="",I}return D.sort(function(M,L){return x[M].i-x[L].i||(M<L?-1:1)}),function(M,L){return S(function(I){return I.replace(zF,`
|
|
85
|
-
`).replace(qF,"").replace(sB," ")}(M),L)}}(y),_=(A=function(x,D){return function(S,M,L){const I=x[S.type].l;return D?D(()=>I(S,M,L),S,M,L):I(S,M,L)}}(y,t.renderRule),function x(D,S={}){if(Array.isArray(D)){const M=S.key,L=[];let I=!1;for(let V=0;V<D.length;V++){S.key=V;const te=x(D[V],S),Q=typeof te=="string";Q&&I?L[L.length-1]+=te:te!==null&&L.push(te),I=Q}return S.key=M,L}return A(D,x,S)});var A;const C=d(e);return p.length?c("div",null,C,c("footer",{key:"footer"},p.map(function(x){return c("div",{id:n(x.identifier,bu),key:x.identifier},x.identifier,_(b(x.footnote,{inline:!0})))}))):C}const sE=e=>{let{children:t="",options:n}=e,r=function(a,o){if(a==null)return{};var l,c,d={},f=Object.keys(a);for(c=0;c<f.length;c++)o.indexOf(l=f[c])>=0||(d[l]=a[l]);return d}(e,wF);return w.cloneElement($B(t,n),r)};function E3({open:e,onClose:t,modelPath:n,data:r,title:a="Data Sources",hasValidImport:o=!0,existingQuery:l,initialSelectedSourceIndex:c,onChange:d,onSourceChange:f}){return v.jsxs(No,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a,v.jsx(xn,{onClick:t,sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{children:o?v.jsx(Jw,{modelPath:n,data:r,existingQuery:l,initialSelectedSourceIndex:c,onChange:d,onSourceChange:f}):v.jsx("div",{children:"No valid import statement found in cell"})})]})}const FB=w.lazy(()=>F(()=>import("./index.es24-Cn4yPrhQ.js"),__vite__mapDeps([93,94,95])));function ym({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[a,o]=w.useState(!1),[l,c]=w.useState(0),[d,f]=w.useState(!1),p=w.useRef(null),m=w.useRef(null),[y,b]=w.useState(void 0),[_,A]=w.useState(!1),C=w.useCallback(()=>{const L=a;o(!a),L&&m.current&&setTimeout(()=>{m.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[a]),x=w.useCallback(L=>{c(L)},[]);if(w.useEffect(()=>{if(r){f(!1);return}if(_){f(!0);return}if(l===0){f(!1);return}const L=t-20,I=l>L;l<L&&b(l+20),f(I)},[l,_,t,r]),!e)return null;const D=v.jsx(dr,{text:"Loading...",centered:!0,size:32}),S=_?a?n-40:t-40:void 0,M=y?{minHeight:`${y}px`,height:"100%"}:{height:"100%"};return v.jsx(v.Fragment,{children:v.jsxs(Ke,{ref:m,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${a?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...M},children:[v.jsx(Ke,{ref:p,sx:{flex:1,overflow:"scroll",p:0,pb:d?"40px":1},children:e&&v.jsx(w.Suspense,{fallback:D,children:v.jsx(FB,{result:e,height:S,isFillElement:L=>{A(L)},onSizeChange:x})})||D}),d&&v.jsx(Ke,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx(xn,{size:"small",onClick:C,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:a?"Collapse to original size":"Expand to full size",children:a?v.jsx(d5,{sx:{fontSize:30}}):v.jsx(f5,{sx:{fontSize:30}})})})]})})}function v3({open:e,onClose:t,result:n,title:r="Results"}){return v.jsxs(No,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r,v.jsx(xn,{onClick:t,sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{sx:{height:"calc(95vh - 120px)",overflow:"auto",padding:"0 16px"},children:v.jsx(ym,{result:n,minHeight:800,maxHeight:800,hideToggle:!0})})]})}const T3=nn(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),BB=new ik(new Xn);function jB(){const{projectName:e,packageName:t,versionId:n}=Sa(),{data:r,isSuccess:a,isError:o,error:l}=mr({queryKey:["package",e,t,n],queryFn:c=>BB.getPackage(e,t,n,!1,c)});return v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Package Config"}),v.jsx(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsxs(pb,{dense:!0,disablePadding:!0,children:[v.jsx(fh,{dense:!0,disablePadding:!0,children:v.jsx($u,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!a&&!o&&v.jsx(fh,{children:v.jsx(dr,{text:"Fetching Package Metadata..."})}),a&&(r.data&&v.jsx(fh,{dense:!0,disablePadding:!0,children:v.jsx($u,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||v.jsxs(fh,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[v.jsx(T3,{sx:{color:"grey.600",mr:"10px"}}),v.jsx($u,{primary:"No package manifest"})]})),o&&v.jsx(fr,{error:l,context:`${e} > ${t} > ${n}`})]})})]})})}const UB=new ok(new Xn);function HB(){const{projectName:e}=Vd(),{data:t,isSuccess:n,isError:r,error:a}=mr({queryKey:["about",e],queryFn:o=>UB.getProject(e,!1,o)});return v.jsxs(v.Fragment,{children:[!n&&!r&&v.jsx(dr,{text:"Fetching About..."}),n&&t.data?.readme&&v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Readme"}),v.jsx(Ke,{sx:{mt:1},children:v.jsx(sE,{children:t.data.readme})})]})}),r&&v.jsx(fr,{error:a,context:`${e} > About`})]})}const zB=new ik(new Xn);function GB({navigate:e}){const{projectName:t}=Vd(),{data:n,isSuccess:r,isError:a,error:o}=mr({queryKey:["packages",t],queryFn:l=>zB.listPackages(t,l)});return v.jsxs(v.Fragment,{children:[!r&&!a&&v.jsx(dr,{text:"Fetching Packages..."}),r&&v.jsx(mn,{container:!0,spacing:3,columns:12,children:n.data.sort((l,c)=>l.name.localeCompare(c.name)).map(l=>v.jsx(mn,{size:{xs:12,sm:12,md:12,lg:4},children:v.jsx(Ui,{sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",transform:"translateY(-1px)"}},onClick:c=>e(l.name,c),children:v.jsxs(Hi,{children:[v.jsx($e,{variant:"overline",sx:{fontSize:"12px",fontWeight:"600",color:"primary.main",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"8px",marginTop:"-16px"},children:l.name}),v.jsx(Ms,{sx:{mb:2}}),v.jsx(Ke,{sx:{maxHeight:"120px",overflowY:"auto",mt:2},children:v.jsx($e,{variant:"body2",children:l.description})})]})})},l.name))}),a&&v.jsx(fr,{error:o,context:`${t} > Packages`})]})}const _3=w.createContext(void 0);function Vd(){const e=w.useContext(_3);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function x3({children:e,projectName:t}){return v.jsx(_3.Provider,{value:{projectName:t},children:e})}function VB({navigate:e}){return v.jsx(wD,{children:v.jsxs(mn,{container:!0,spacing:3,columns:12,children:[v.jsx(mn,{size:{xs:12,md:12},children:v.jsx(GB,{navigate:e})}),v.jsx(mn,{size:{xs:12,md:12},children:v.jsx(HB,{})})]})})}const lE=new rk(new Xn);function qB({connectionName:e,schema:t}){const{projectName:n}=Vd(),[r,a]=Le.useState(void 0),[o,l]=Le.useState(t||null),[c,d]=Le.useState(!1),{data:f,isSuccess:p,isError:m,error:y,isLoading:b}=mr({queryKey:["tablePath",n,e],queryFn:_=>lE.listSchemas(n,e,_)});return v.jsxs(mn,{container:!0,spacing:1,children:[!t&&v.jsx(mn,{size:{xs:12,md:4},children:v.jsxs(Lh,{sx:{p:1,m:0},children:[v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[v.jsx($e,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),v.jsx(h5,{control:v.jsx(p5,{checked:c,onChange:_=>d(_.target.checked)}),label:"Hidden Schemas"})]}),v.jsx(Ms,{sx:{mt:"2px"}}),v.jsxs(Ke,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[b&&v.jsx(dr,{text:"Fetching Table Paths..."}),m&&v.jsx(fr,{error:y,context:`${n} > ${e}`}),p&&f.data.length===0&&v.jsx($e,{variant:"body2",children:"No Schemas"}),p&&f.data.length>0&&v.jsx(pb,{dense:!0,disablePadding:!0,children:f.data.filter(({isHidden:_})=>c||!_).sort((_,A)=>_.isDefault===A.isDefault?0:_.isDefault?-1:1).map(_=>{const A=(_.description||"").trim(),C=A!=="",x=C?A.split(/\r?\n/)[0]:void 0,D=v.jsx(U2,{selected:o===_.name,onClick:()=>l(_.name),children:v.jsx($u,{primary:_.name,secondary:x})},_.name);return C?v.jsx(fa,{title:A,arrow:!0,children:D},_.name):D})})]})]})}),v.jsx(mn,{size:{xs:12,md:t?6:4},children:o&&v.jsx(Lh,{sx:{p:1,m:0},children:v.jsx(QB,{connectionName:e,schemaName:o,onTableClick:_=>{a(_)}})})}),v.jsx(mn,{size:{xs:12,md:t?6:4},children:r&&o&&v.jsx(Lh,{sx:{p:1,m:0},children:v.jsx(YB,{connectionName:e,schemaName:o,tableName:r})})})]})}function YB({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=Vd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=mr({queryKey:["tablePathSchema",r,e,t,n],queryFn:f=>lE.getTablesource(r,e,n,`${t}.${n}`,f)});return v.jsxs(v.Fragment,{children:[v.jsxs($e,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),v.jsx(Ms,{}),v.jsxs(Ke,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[d&&v.jsx(dr,{text:"Fetching Table Details..."}),l&&v.jsx(fr,{error:c,context:`${r} > ${e} > ${t}.${n}`}),o&&a&&v.jsx(mb,{children:v.jsxs(td,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[v.jsx(gb,{children:v.jsxs(ri,{children:[v.jsx(Ut,{children:"NAME"}),v.jsx(Ut,{children:"TYPE"})]})}),v.jsx(nd,{children:a.data.columns?.map(f=>v.jsxs(ri,{children:[v.jsx(Ut,{children:f.name}),v.jsx(Ut,{children:f.type})]},f.name))})]})})]})]})}function QB({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Vd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=mr({queryKey:["tablesInSchema",r,e,t],queryFn:f=>lE.listTables(r,e,t,f)});return v.jsxs(v.Fragment,{children:[v.jsxs($e,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),v.jsx(Ms,{}),v.jsxs(Ke,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[d&&v.jsx(dr,{text:"Fetching Tables..."}),l&&v.jsx(fr,{error:c,context:`${r} > ${e} > ${t}`}),o&&a.data.length===0&&v.jsx($e,{variant:"body2",children:"No Tables"}),o&&a.data.length>0&&v.jsx(pb,{dense:!0,disablePadding:!0,children:a.data.map(f=>v.jsx(U2,{onClick:()=>n(f),children:v.jsx($u,{primary:f})},f))})]})]})}const KB=new rk(new Xn);function WB({connection:e,onClick:t}){return v.jsxs(ri,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(Ut,{children:v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx($e,{variant:"body2",children:e.name}),v.jsx(Wl,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(Ut,{children:v.jsx($e,{variant:"body2",children:e.type})})]},e.name)}function XB(){const{projectName:e}=Sa(),[t,n]=w.useState(null),{data:r,isSuccess:a,isError:o,error:l}=mr({queryKey:["connections",e],queryFn:f=>KB.listConnections(e,f)}),c=f=>{n(f)},d=()=>{n(null)};return v.jsxs(x3,{projectName:e,children:[v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Database Connections"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!a&&!o&&v.jsx($e,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),a&&r.data.length>0&&v.jsx(td,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:v.jsxs(nd,{children:[v.jsxs(ri,{children:[v.jsx(Ut,{children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Connection Name"})}),v.jsx(Ut,{children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Type"})})]}),r.data.map(f=>v.jsx(WB,{connection:f,onClick:()=>c(f.name)},f.name))]})}),a&&r.data.length===0&&v.jsx($e,{variant:"body2",children:"No Connections"}),o&&v.jsx(fr,{error:l,context:`${e} > Connections`})]})]})}),v.jsxs(No,{open:t!==null,onClose:d,maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Oo,{children:["Connection Explorer: ",t,v.jsx(xn,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:v.jsx(Ke,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(Lo,{children:t&&v.jsx(qB,{connectionName:t})})]})]})}const ZB=new $7(new Xn);function JB(){const{projectName:e,packageName:t,versionId:n}=Sa(),[r,a]=Le.useState(!1),[o,l]=Le.useState(null),c=_=>{l(_),a(!0)},d=()=>{a(!1),l(null)},{data:f,isError:p,error:m,isSuccess:y}=mr({queryKey:["databases",e,t,n],queryFn:_=>ZB.listDatabases(e,t,n,_)}),b=_=>_>=1024*1024*1024*1024?`${(_/(1024*1024*1024)).toFixed(2)} T`:_>=1024*1024*1024?`${(_/(1024*1024*1024)).toFixed(2)} G`:_>=1024*1024?`${(_/(1024*1024)).toFixed(2)} M`:`${(_/1024).toFixed(2)} K`;return v.jsxs(v.Fragment,{children:[v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Embedded Databases"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!y&&!p&&v.jsx(dr,{text:"Fetching Databases..."}),p&&v.jsx(fr,{error:m,context:`${e} > ${t} > Databases`}),y&&f.data.length>0&&v.jsx(td,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:v.jsxs(nd,{children:[v.jsxs(ri,{children:[v.jsx(Ut,{children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Name"})}),v.jsx(Ut,{align:"right",children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Rows"})})]}),f.data.map(_=>v.jsxs(ri,{onClick:()=>c(_),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(Ut,{component:"th",scope:"row",children:v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx($e,{variant:"body2",children:_.path}),v.jsx(Wl,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(Ut,{align:"right",children:v.jsx($e,{variant:"body2",children:b(_.info.rowCount)})})]},_.path))]})}),y&&f.data.length===0&&v.jsx($e,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),v.jsxs(No,{open:r,onClose:d,maxWidth:"sm",fullWidth:!0,children:[v.jsxs(Oo,{children:[o?.path,v.jsx(xn,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:v.jsx(Ke,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(Lo,{children:o?.info?.columns&&v.jsx(mb,{children:v.jsxs(td,{size:"small",children:[v.jsx(gb,{children:v.jsxs(ri,{children:[v.jsx(Ut,{children:"Column"}),v.jsx(Ut,{children:"Type"})]})}),v.jsx(nd,{children:o.info.columns.map(_=>v.jsxs(ri,{children:[v.jsx(Ut,{component:"th",scope:"row",children:_.name}),v.jsx(Ut,{children:_.type})]},_.name))})]})})})]})]})}function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(null,arguments)}const A3=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},S3=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(t);if(a===0)return n.parentId;let o=a-1;for(;!e.isItemNavigable(r[o])&&o>=0;)o-=1;if(o===-1)return n.parentId==null?null:S3(e,n.parentId);let l=r[o],c=A3(e,e.getItemOrderedChildrenIds(l));for(;e.isItemExpanded(l)&&c!=null;)l=c,c=e.getItemOrderedChildrenIds(l).find(e.isItemNavigable);return l},Yh=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(n.id);if(a<r.length-1){let o=a+1;for(;!e.isItemNavigable(r[o])&&o<r.length-1;)o+=1;if(e.isItemNavigable(r[o]))return r[o]}n=e.getItemMeta(n.parentId)}return null},C3=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=A3(e,n);if(r==null)return t;t=r}return t},gd=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),D3=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),a=e.getItemMeta(n);if(r.parentId===a.id||a.parentId===r.id)return a.parentId===r.id?[r.id,a.id]:[a.id,r.id];const o=[r.id],l=[a.id];let c=r.parentId,d=a.parentId,f=l.indexOf(c)!==-1,p=o.indexOf(d)!==-1,m=!0,y=!0;for(;!p&&!f;)m&&(o.push(c),f=l.indexOf(c)!==-1,m=c!==null,!f&&m&&(c=e.getItemMeta(c).parentId)),y&&!f&&(l.push(d),p=o.indexOf(d)!==-1,y=d!==null,!p&&y&&(d=e.getItemMeta(d).parentId));const b=f?c:d,_=e.getItemOrderedChildrenIds(b),A=o[o.indexOf(b)-1],C=l[l.indexOf(b)-1];return _.indexOf(A)<_.indexOf(C)?[t,n]:[n,t]},ej=(e,t,n)=>{const r=d=>{if(e.isItemExpandable(d)&&e.isItemExpanded(d))return e.getItemOrderedChildrenIds(d)[0];let f=e.getItemMeta(d);for(;f!=null;){const p=e.getItemOrderedChildrenIds(f.parentId),m=e.getItemIndex(f.id);if(m<p.length-1)return p[m+1];f=e.getItemMeta(f.parentId)}throw new Error("Invalid range")},[a,o]=D3(e,t,n),l=[a];let c=a;for(;c!==o;)c=r(c),e.isItemDisabled(c)||l.push(c);return l},tj=e=>{let t=gd(e);const n=[];for(;t!=null;)n.push(t),t=Yh(e,t);return n},yd=(e,t)=>t!==e.closest('*[role="treeitem"]');let NS=0;const nj=()=>(NS+=1,`mui-tree-view-${NS}`),cE=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,k3=w.createContext(null),js=()=>{const e=w.useContext(k3);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
85
|
+
`).replace(qF,"").replace(sB," ")}(M),L)}}(y),_=(A=function(x,D){return function(S,M,L){const I=x[S.type].l;return D?D(()=>I(S,M,L),S,M,L):I(S,M,L)}}(y,t.renderRule),function x(D,S={}){if(Array.isArray(D)){const M=S.key,L=[];let I=!1;for(let V=0;V<D.length;V++){S.key=V;const te=x(D[V],S),Q=typeof te=="string";Q&&I?L[L.length-1]+=te:te!==null&&L.push(te),I=Q}return S.key=M,L}return A(D,x,S)});var A;const C=d(e);return p.length?c("div",null,C,c("footer",{key:"footer"},p.map(function(x){return c("div",{id:n(x.identifier,bu),key:x.identifier},x.identifier,_(b(x.footnote,{inline:!0})))}))):C}const sE=e=>{let{children:t="",options:n}=e,r=function(a,o){if(a==null)return{};var l,c,d={},f=Object.keys(a);for(c=0;c<f.length;c++)o.indexOf(l=f[c])>=0||(d[l]=a[l]);return d}(e,wF);return w.cloneElement($B(t,n),r)};function E3({open:e,onClose:t,modelPath:n,data:r,title:a="Data Sources",hasValidImport:o=!0,existingQuery:l,initialSelectedSourceIndex:c,onChange:d,onSourceChange:f}){return v.jsxs(No,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a,v.jsx(xn,{onClick:t,sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{children:o?v.jsx(Jw,{modelPath:n,data:r,existingQuery:l,initialSelectedSourceIndex:c,onChange:d,onSourceChange:f}):v.jsx("div",{children:"No valid import statement found in cell"})})]})}const FB=w.lazy(()=>F(()=>import("./index.es24-CDJ3b9GD.js"),__vite__mapDeps([93,94,95])));function ym({result:e,minHeight:t,maxHeight:n,hideToggle:r=!1}){const[a,o]=w.useState(!1),[l,c]=w.useState(0),[d,f]=w.useState(!1),p=w.useRef(null),m=w.useRef(null),[y,b]=w.useState(void 0),[_,A]=w.useState(!1),C=w.useCallback(()=>{const L=a;o(!a),L&&m.current&&setTimeout(()=>{m.current?.scrollIntoView({behavior:"smooth",block:"start"})},100)},[a]),x=w.useCallback(L=>{c(L)},[]);if(w.useEffect(()=>{if(r){f(!1);return}if(_){f(!0);return}if(l===0){f(!1);return}const L=t-20,I=l>L;l<L&&b(l+20),f(I)},[l,_,t,r]),!e)return null;const D=v.jsx(dr,{text:"Loading...",centered:!0,size:32}),S=_?a?n-40:t-40:void 0,M=y?{minHeight:`${y}px`,height:"100%"}:{height:"100%"};return v.jsx(v.Fragment,{children:v.jsxs(Ke,{ref:m,sx:{position:"relative",minHeight:`${t}px`,maxHeight:`${a?n:t}px`,border:"0px",borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column",...M},children:[v.jsx(Ke,{ref:p,sx:{flex:1,overflow:"scroll",p:0,pb:d?"40px":1},children:e&&v.jsx(w.Suspense,{fallback:D,children:v.jsx(FB,{result:e,height:S,isFillElement:L=>{A(L)},onSizeChange:x})})||D}),d&&v.jsx(Ke,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"32px",backgroundColor:"rgba(255,255,255,0.75)",display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsx(xn,{size:"small",onClick:C,sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},title:a?"Collapse to original size":"Expand to full size",children:a?v.jsx(d5,{sx:{fontSize:30}}):v.jsx(f5,{sx:{fontSize:30}})})})]})})}function v3({open:e,onClose:t,result:n,title:r="Results"}){return v.jsxs(No,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r,v.jsx(xn,{onClick:t,sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{sx:{height:"calc(95vh - 120px)",overflow:"auto",padding:"0 16px"},children:v.jsx(ym,{result:n,minHeight:800,maxHeight:800,hideToggle:!0})})]})}const T3=nn(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),BB=new ik(new Xn);function jB(){const{projectName:e,packageName:t,versionId:n}=Sa(),{data:r,isSuccess:a,isError:o,error:l}=mr({queryKey:["package",e,t,n],queryFn:c=>BB.getPackage(e,t,n,!1,c)});return v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Package Config"}),v.jsx(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsxs(pb,{dense:!0,disablePadding:!0,children:[v.jsx(fh,{dense:!0,disablePadding:!0,children:v.jsx($u,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:t})}),!a&&!o&&v.jsx(fh,{children:v.jsx(dr,{text:"Fetching Package Metadata..."})}),a&&(r.data&&v.jsx(fh,{dense:!0,disablePadding:!0,children:v.jsx($u,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:r.data.description})})||v.jsxs(fh,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[v.jsx(T3,{sx:{color:"grey.600",mr:"10px"}}),v.jsx($u,{primary:"No package manifest"})]})),o&&v.jsx(fr,{error:l,context:`${e} > ${t} > ${n}`})]})})]})})}const UB=new ok(new Xn);function HB(){const{projectName:e}=Vd(),{data:t,isSuccess:n,isError:r,error:a}=mr({queryKey:["about",e],queryFn:o=>UB.getProject(e,!1,o)});return v.jsxs(v.Fragment,{children:[!n&&!r&&v.jsx(dr,{text:"Fetching About..."}),n&&t.data?.readme&&v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Readme"}),v.jsx(Ke,{sx:{mt:1},children:v.jsx(sE,{children:t.data.readme})})]})}),r&&v.jsx(fr,{error:a,context:`${e} > About`})]})}const zB=new ik(new Xn);function GB({navigate:e}){const{projectName:t}=Vd(),{data:n,isSuccess:r,isError:a,error:o}=mr({queryKey:["packages",t],queryFn:l=>zB.listPackages(t,l)});return v.jsxs(v.Fragment,{children:[!r&&!a&&v.jsx(dr,{text:"Fetching Packages..."}),r&&v.jsx(mn,{container:!0,spacing:3,columns:12,children:n.data.sort((l,c)=>l.name.localeCompare(c.name)).map(l=>v.jsx(mn,{size:{xs:12,sm:12,md:12,lg:4},children:v.jsx(Ui,{sx:{cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",transform:"translateY(-1px)"}},onClick:c=>e(l.name,c),children:v.jsxs(Hi,{children:[v.jsx($e,{variant:"overline",sx:{fontSize:"12px",fontWeight:"600",color:"primary.main",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"8px",marginTop:"-16px"},children:l.name}),v.jsx(Ms,{sx:{mb:2}}),v.jsx(Ke,{sx:{maxHeight:"120px",overflowY:"auto",mt:2},children:v.jsx($e,{variant:"body2",children:l.description})})]})})},l.name))}),a&&v.jsx(fr,{error:o,context:`${t} > Packages`})]})}const _3=w.createContext(void 0);function Vd(){const e=w.useContext(_3);if(!e)throw new Error("useProject must be used within a ProjectProvider");return e}function x3({children:e,projectName:t}){return v.jsx(_3.Provider,{value:{projectName:t},children:e})}function VB({navigate:e}){return v.jsx(wD,{children:v.jsxs(mn,{container:!0,spacing:3,columns:12,children:[v.jsx(mn,{size:{xs:12,md:12},children:v.jsx(GB,{navigate:e})}),v.jsx(mn,{size:{xs:12,md:12},children:v.jsx(HB,{})})]})})}const lE=new rk(new Xn);function qB({connectionName:e,schema:t}){const{projectName:n}=Vd(),[r,a]=Le.useState(void 0),[o,l]=Le.useState(t||null),[c,d]=Le.useState(!1),{data:f,isSuccess:p,isError:m,error:y,isLoading:b}=mr({queryKey:["tablePath",n,e],queryFn:_=>lE.listSchemas(n,e,_)});return v.jsxs(mn,{container:!0,spacing:1,children:[!t&&v.jsx(mn,{size:{xs:12,md:4},children:v.jsxs(Lh,{sx:{p:1,m:0},children:[v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[v.jsx($e,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),v.jsx(h5,{control:v.jsx(p5,{checked:c,onChange:_=>d(_.target.checked)}),label:"Hidden Schemas"})]}),v.jsx(Ms,{sx:{mt:"2px"}}),v.jsxs(Ke,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[b&&v.jsx(dr,{text:"Fetching Table Paths..."}),m&&v.jsx(fr,{error:y,context:`${n} > ${e}`}),p&&f.data.length===0&&v.jsx($e,{variant:"body2",children:"No Schemas"}),p&&f.data.length>0&&v.jsx(pb,{dense:!0,disablePadding:!0,children:f.data.filter(({isHidden:_})=>c||!_).sort((_,A)=>_.isDefault===A.isDefault?0:_.isDefault?-1:1).map(_=>{const A=(_.description||"").trim(),C=A!=="",x=C?A.split(/\r?\n/)[0]:void 0,D=v.jsx(U2,{selected:o===_.name,onClick:()=>l(_.name),children:v.jsx($u,{primary:_.name,secondary:x})},_.name);return C?v.jsx(fa,{title:A,arrow:!0,children:D},_.name):D})})]})]})}),v.jsx(mn,{size:{xs:12,md:t?6:4},children:o&&v.jsx(Lh,{sx:{p:1,m:0},children:v.jsx(QB,{connectionName:e,schemaName:o,onTableClick:_=>{a(_)}})})}),v.jsx(mn,{size:{xs:12,md:t?6:4},children:r&&o&&v.jsx(Lh,{sx:{p:1,m:0},children:v.jsx(YB,{connectionName:e,schemaName:o,tableName:r})})})]})}function YB({connectionName:e,schemaName:t,tableName:n}){const{projectName:r}=Vd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=mr({queryKey:["tablePathSchema",r,e,t,n],queryFn:f=>lE.getTablesource(r,e,n,`${t}.${n}`,f)});return v.jsxs(v.Fragment,{children:[v.jsxs($e,{variant:"overline",fontWeight:"bold",children:["Schema: ",t,".",n]}),v.jsx(Ms,{}),v.jsxs(Ke,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:[d&&v.jsx(dr,{text:"Fetching Table Details..."}),l&&v.jsx(fr,{error:c,context:`${r} > ${e} > ${t}.${n}`}),o&&a&&v.jsx(mb,{children:v.jsxs(td,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[v.jsx(gb,{children:v.jsxs(ri,{children:[v.jsx(Ut,{children:"NAME"}),v.jsx(Ut,{children:"TYPE"})]})}),v.jsx(nd,{children:a.data.columns?.map(f=>v.jsxs(ri,{children:[v.jsx(Ut,{children:f.name}),v.jsx(Ut,{children:f.type})]},f.name))})]})})]})]})}function QB({connectionName:e,schemaName:t,onTableClick:n}){const{projectName:r}=Vd(),{data:a,isSuccess:o,isError:l,error:c,isLoading:d}=mr({queryKey:["tablesInSchema",r,e,t],queryFn:f=>lE.listTables(r,e,t,f)});return v.jsxs(v.Fragment,{children:[v.jsxs($e,{variant:"overline",fontWeight:"bold",children:["Tables in ",t]}),v.jsx(Ms,{}),v.jsxs(Ke,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[d&&v.jsx(dr,{text:"Fetching Tables..."}),l&&v.jsx(fr,{error:c,context:`${r} > ${e} > ${t}`}),o&&a.data.length===0&&v.jsx($e,{variant:"body2",children:"No Tables"}),o&&a.data.length>0&&v.jsx(pb,{dense:!0,disablePadding:!0,children:a.data.map(f=>v.jsx(U2,{onClick:()=>n(f),children:v.jsx($u,{primary:f})},f))})]})]})}const KB=new rk(new Xn);function WB({connection:e,onClick:t}){return v.jsxs(ri,{onClick:t,sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(Ut,{children:v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx($e,{variant:"body2",children:e.name}),v.jsx(Wl,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(Ut,{children:v.jsx($e,{variant:"body2",children:e.type})})]},e.name)}function XB(){const{projectName:e}=Sa(),[t,n]=w.useState(null),{data:r,isSuccess:a,isError:o,error:l}=mr({queryKey:["connections",e],queryFn:f=>KB.listConnections(e,f)}),c=f=>{n(f)},d=()=>{n(null)};return v.jsxs(x3,{projectName:e,children:[v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Database Connections"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!a&&!o&&v.jsx($e,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),a&&r.data.length>0&&v.jsx(td,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:v.jsxs(nd,{children:[v.jsxs(ri,{children:[v.jsx(Ut,{children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Connection Name"})}),v.jsx(Ut,{children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Type"})})]}),r.data.map(f=>v.jsx(WB,{connection:f,onClick:()=>c(f.name)},f.name))]})}),a&&r.data.length===0&&v.jsx($e,{variant:"body2",children:"No Connections"}),o&&v.jsx(fr,{error:l,context:`${e} > Connections`})]})]})}),v.jsxs(No,{open:t!==null,onClose:d,maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Oo,{children:["Connection Explorer: ",t,v.jsx(xn,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:v.jsx(Ke,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(Lo,{children:t&&v.jsx(qB,{connectionName:t})})]})]})}const ZB=new $7(new Xn);function JB(){const{projectName:e,packageName:t,versionId:n}=Sa(),[r,a]=Le.useState(!1),[o,l]=Le.useState(null),c=_=>{l(_),a(!0)},d=()=>{a(!1),l(null)},{data:f,isError:p,error:m,isSuccess:y}=mr({queryKey:["databases",e,t,n],queryFn:_=>ZB.listDatabases(e,t,n,_)}),b=_=>_>=1024*1024*1024*1024?`${(_/(1024*1024*1024)).toFixed(2)} T`:_>=1024*1024*1024?`${(_/(1024*1024*1024)).toFixed(2)} G`:_>=1024*1024?`${(_/(1024*1024)).toFixed(2)} M`:`${(_/1024).toFixed(2)} K`;return v.jsxs(v.Fragment,{children:[v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Embedded Databases"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!y&&!p&&v.jsx(dr,{text:"Fetching Databases..."}),p&&v.jsx(fr,{error:m,context:`${e} > ${t} > Databases`}),y&&f.data.length>0&&v.jsx(td,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:v.jsxs(nd,{children:[v.jsxs(ri,{children:[v.jsx(Ut,{children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Name"})}),v.jsx(Ut,{align:"right",children:v.jsx($e,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Rows"})})]}),f.data.map(_=>v.jsxs(ri,{onClick:()=>c(_),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[v.jsx(Ut,{component:"th",scope:"row",children:v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",gap:1},children:[v.jsx($e,{variant:"body2",children:_.path}),v.jsx(Wl,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),v.jsx(Ut,{align:"right",children:v.jsx($e,{variant:"body2",children:b(_.info.rowCount)})})]},_.path))]})}),y&&f.data.length===0&&v.jsx($e,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),v.jsxs(No,{open:r,onClose:d,maxWidth:"sm",fullWidth:!0,children:[v.jsxs(Oo,{children:[o?.path,v.jsx(xn,{"aria-label":"close",onClick:d,sx:{position:"absolute",right:8,top:8},children:v.jsx(Ke,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),v.jsx(Lo,{children:o?.info?.columns&&v.jsx(mb,{children:v.jsxs(td,{size:"small",children:[v.jsx(gb,{children:v.jsxs(ri,{children:[v.jsx(Ut,{children:"Column"}),v.jsx(Ut,{children:"Type"})]})}),v.jsx(nd,{children:o.info.columns.map(_=>v.jsxs(ri,{children:[v.jsx(Ut,{component:"th",scope:"row",children:_.name}),v.jsx(Ut,{children:_.type})]},_.name))})]})})})]})]})}function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(null,arguments)}const A3=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},S3=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(t);if(a===0)return n.parentId;let o=a-1;for(;!e.isItemNavigable(r[o])&&o>=0;)o-=1;if(o===-1)return n.parentId==null?null:S3(e,n.parentId);let l=r[o],c=A3(e,e.getItemOrderedChildrenIds(l));for(;e.isItemExpanded(l)&&c!=null;)l=c,c=e.getItemOrderedChildrenIds(l).find(e.isItemNavigable);return l},Yh=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(n.id);if(a<r.length-1){let o=a+1;for(;!e.isItemNavigable(r[o])&&o<r.length-1;)o+=1;if(e.isItemNavigable(r[o]))return r[o]}n=e.getItemMeta(n.parentId)}return null},C3=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=A3(e,n);if(r==null)return t;t=r}return t},gd=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),D3=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),a=e.getItemMeta(n);if(r.parentId===a.id||a.parentId===r.id)return a.parentId===r.id?[r.id,a.id]:[a.id,r.id];const o=[r.id],l=[a.id];let c=r.parentId,d=a.parentId,f=l.indexOf(c)!==-1,p=o.indexOf(d)!==-1,m=!0,y=!0;for(;!p&&!f;)m&&(o.push(c),f=l.indexOf(c)!==-1,m=c!==null,!f&&m&&(c=e.getItemMeta(c).parentId)),y&&!f&&(l.push(d),p=o.indexOf(d)!==-1,y=d!==null,!p&&y&&(d=e.getItemMeta(d).parentId));const b=f?c:d,_=e.getItemOrderedChildrenIds(b),A=o[o.indexOf(b)-1],C=l[l.indexOf(b)-1];return _.indexOf(A)<_.indexOf(C)?[t,n]:[n,t]},ej=(e,t,n)=>{const r=d=>{if(e.isItemExpandable(d)&&e.isItemExpanded(d))return e.getItemOrderedChildrenIds(d)[0];let f=e.getItemMeta(d);for(;f!=null;){const p=e.getItemOrderedChildrenIds(f.parentId),m=e.getItemIndex(f.id);if(m<p.length-1)return p[m+1];f=e.getItemMeta(f.parentId)}throw new Error("Invalid range")},[a,o]=D3(e,t,n),l=[a];let c=a;for(;c!==o;)c=r(c),e.isItemDisabled(c)||l.push(c);return l},tj=e=>{let t=gd(e);const n=[];for(;t!=null;)n.push(t),t=Yh(e,t);return n},yd=(e,t)=>t!==e.closest('*[role="treeitem"]');let NS=0;const nj=()=>(NS+=1,`mui-tree-view-${NS}`),cE=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,k3=w.createContext(null),js=()=>{const e=w.useContext(k3);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
86
86
|
`));return e},uE=w.createContext(()=>-1),As=(e,t)=>e.getAvailablePlugins().has(t),rj=({props:e})=>{const{instance:t}=js(),{label:n,itemId:r}=e,[a,o]=w.useState(n),l=t.isItemBeingEdited(r);return w.useEffect(()=>{l||o(n)},[l,n]),{propsEnhancers:{labelInput:({externalEventHandlers:c,interactions:d})=>t.isItemEditable(r)?{value:a??"","data-element":"labelInput",onChange:f=>{c.onChange?.(f),o(f.target.value)},onKeyDown:f=>{if(c.onKeyDown?.(f),f.defaultMuiPrevented)return;const p=f.target;f.key==="Enter"&&p.value?d.handleSaveItemLabel(f,p.value):f.key==="Escape"&&d.handleCancelItemLabelEditing(f)},onBlur:f=>{c.onBlur?.(f),!f.defaultMuiPrevented&&f.target.value&&d.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}},_a=({instance:e,state:t,setState:n,params:r})=>{const a=w.useRef(t.editedItemId),o=m=>a.current===m,l=m=>{n(y=>Ae({},y,{editedItemId:m})),a.current=m},c=m=>m===t.editedItemId,d=!!r.isItemEditable,f=m=>{if(m==null||!d)return!1;const y=e.getItem(m);return y?typeof r.isItemEditable=="function"?r.isItemEditable(y):!!r.isItemEditable:!1},p=(m,y)=>{if(!y)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",m].join(`
|
|
87
87
|
`));n(b=>{const _=b.items.itemMetaMap[m];return _.label!==y?Ae({},b,{items:Ae({},b.items,{itemMetaMap:Ae({},b.items.itemMetaMap,{[m]:Ae({},_,{label:y})})})}):b}),r.onItemLabelChange&&r.onItemLabelChange(m,y)};return{instance:{setEditedItemId:l,isItemBeingEdited:c,updateItemLabel:p,isItemEditable:f,isTreeViewEditable:d,isItemBeingEditedRef:o},publicAPI:{updateItemLabel:p}}};_a.itemPlugin=rj;_a.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return Ae({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};_a.getInitialState=()=>({editedItemId:null});_a.params={onItemLabelChange:!0,isItemEditable:!0};const R3=e=>Array.isArray(e)?e.length>0&&e.some(R3):!!e,aj=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:a}=js(),o={expandable:R3(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},l=p=>{if(o.disabled)return;o.focused||n.focusItem(p,e);const m=r&&(p.shiftKey||p.ctrlKey||p.metaKey);o.expandable&&!(m&&n.isItemExpanded(e))&&n.toggleItemExpansion(p,e)},c=p=>{o.disabled||(!o.focused&&!o.editing&&n.focusItem(p,e),r&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:!0}):n.selectItem({event:p,itemId:e,shouldBeSelected:!0}))},d=p=>{const m=p.nativeEvent.shiftKey;r&&m?n.expandSelectionRange(p,e):n.selectItem({event:p,itemId:e,keepExistingSelection:r,shouldBeSelected:p.target.checked})},f=()=>{As(n,_a)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:l,handleSelection:c,handleCheckboxSelection:d,toggleItemEditing:f,handleSaveItemLabel:(p,m)=>{As(n,_a)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,m),f(),n.focusItem(p,e))},handleCancelItemLabelEditing:p=>{As(n,_a)&&n.isItemBeingEditedRef(e)&&(f(),n.focusItem(p,e))}},status:o,publicAPI:a}};function oi(...e){const t=w.useRef(void 0),n=w.useCallback(r=>{const a=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const l=o,c=l(r);return typeof c=="function"?c:()=>{l(null)}}return o.current=r,()=>{o.current=null}});return()=>{a.forEach(o=>o?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function ha(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}const ij=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:a},selection:{disableSelection:o,checkboxSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f,publicAPI:p}=js(),m=w.useContext(uE),{id:y,itemId:b,label:_,children:A,rootRef:C}=e,{rootRef:x,contentRef:D,propsEnhancers:S}=t(e),{interactions:M,status:L}=aj({itemId:b,children:A}),I=w.useRef(null),V=w.useRef(null),te=oi(C,x,I),Q=oi(D,V),k=w.useRef(null),H=cE({itemId:b,treeId:d,id:y}),W=f.canItemBeTabbed(b)?0:-1,K={rootRefObject:I,contentRefObject:V,interactions:M},re=he=>O=>{if(he.onFocus?.(O),O.defaultMuiPrevented)return;const ce=!L.disabled||r;!L.focused&&ce&&O.currentTarget===O.target&&f.focusItem(O,b)},me=he=>O=>{if(he.onBlur?.(O),O.defaultMuiPrevented)return;const ce=f.getItemDOMElement(b);L.editing||O.relatedTarget&&yd(O.relatedTarget,ce)&&(O.target&&O.target?.dataset?.element==="labelInput"&&yd(O.target,ce)||O.relatedTarget?.dataset?.element==="labelInput")||f.removeFocusedItem()},G=he=>O=>{he.onKeyDown?.(O),!(O.defaultMuiPrevented||O.target?.dataset?.element==="labelInput")&&f.handleItemKeyDown(O,b)},oe=he=>O=>{he.onDoubleClick?.(O),!O.defaultMuiPrevented&&M.toggleItemEditing()},le=he=>O=>{he.onClick?.(O),n?.(O,b),!(O.defaultMuiPrevented||k.current?.contains(O.target))&&(c==="content"&&M.handleExpansion(O),l||M.handleSelection(O))},se=he=>O=>{he.onMouseDown?.(O),!O.defaultMuiPrevented&&(O.shiftKey||O.ctrlKey||O.metaKey||L.disabled)&&O.preventDefault()},P=he=>O=>{he.onChange?.(O),!O.defaultMuiPrevented&&(o||L.disabled||M.handleCheckboxSelection(O))},Ce=he=>O=>{he.onClick?.(O),!O.defaultMuiPrevented&&c==="iconContainer"&&M.handleExpansion(O)};return{getRootProps:(he={})=>{const O=Ae({},ha(e),ha(he));let ce;L.selected?ce=!0:o||L.disabled?ce=void 0:ce=!1;const Ne=Ae({},O,{ref:te,role:"treeitem",tabIndex:W,id:H,"aria-expanded":L.expandable?L.expanded:void 0,"aria-selected":ce,"aria-disabled":L.disabled||void 0},he,{onFocus:re(O),onBlur:me(O),onKeyDown:G(O)});a&&(Ne.style={"--TreeView-itemDepth":typeof m=="function"?m(b):m});const Ie=S.root?.(Ae({},K,{externalEventHandlers:O}))??{};return Ae({},Ne,Ie)},getContentProps:(he={})=>{const O=ha(he),ce=Ae({},O,he,{ref:Q,onClick:le(O),onMouseDown:se(O),status:L});a&&(ce.indentationAtItemLevel=!0);const Ne=S.content?.(Ae({},K,{externalEventHandlers:O}))??{};return Ae({},ce,Ne)},getGroupTransitionProps:(he={})=>{const O=ha(he),ce=Ae({},O,{unmountOnExit:!0,component:"ul",role:"group",in:L.expanded,children:A},he);return a&&(ce.indentationAtItemLevel=!0),ce},getIconContainerProps:(he={})=>{const O=ha(he);return Ae({},O,he,{onClick:Ce(O)})},getCheckboxProps:(he={})=>{const O=ha(he);return Ae({},O,{visible:l,ref:k,checked:L.selected,disabled:o||L.disabled,tabIndex:-1},he,{onChange:P(O)})},getLabelProps:(he={})=>{const O=Ae({},ha(he)),ce=Ae({},O,{children:_},he,{onDoubleClick:oe(O)});return f.isTreeViewEditable&&(ce.editable=L.editable),ce},getLabelInputProps:(he={})=>{const O=ha(he),ce=S.labelInput?.({rootRefObject:I,contentRefObject:V,externalEventHandlers:O,interactions:M})??{};return Ae({},he,ce)},getDragAndDropOverlayProps:(he={})=>{const O=ha(he),ce=S.dragAndDropOverlay?.(Ae({},K,{externalEventHandlers:O}))??{};return Ae({},he,ce)},rootRef:te,status:L,publicAPI:p}},oj=ij,sj=nn(v.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),lj=nn([v.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),v.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]);var dE=Yd(),lt=e=>qd(e,dE),fE=Yd();lt.write=e=>qd(e,fE);var bm=Yd();lt.onStart=e=>qd(e,bm);var hE=Yd();lt.onFrame=e=>qd(e,hE);var pE=Yd();lt.onFinish=e=>qd(e,pE);var Vl=[];lt.setTimeout=(e,t)=>{const n=lt.now()+t,r=()=>{const o=Vl.findIndex(l=>l.cancel==r);~o&&Vl.splice(o,1),Do-=~o?1:0},a={time:n,handler:e,cancel:r};return Vl.splice(I3(n),0,a),Do+=1,w3(),a};var I3=e=>~(~Vl.findIndex(t=>t.time>e)||~Vl.length);lt.cancel=e=>{bm.delete(e),hE.delete(e),pE.delete(e),dE.delete(e),fE.delete(e)};lt.sync=e=>{My=!0,lt.batchedUpdates(e),My=!1};lt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,lt.onStart(n)}return r.handler=e,r.cancel=()=>{bm.delete(n),t=null},r};var mE=typeof window<"u"?window.requestAnimationFrame:()=>{};lt.use=e=>mE=e;lt.now=typeof performance<"u"?()=>performance.now():Date.now;lt.batchedUpdates=e=>e();lt.catch=console.error;lt.frameLoop="always";lt.advance=()=>{lt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):O3()};var Co=-1,Do=0,My=!1;function qd(e,t){My?(t.delete(e),e(0)):(t.add(e),w3())}function w3(){Co<0&&(Co=0,lt.frameLoop!=="demand"&&mE(N3))}function cj(){Co=-1}function N3(){~Co&&(mE(N3),lt.batchedUpdates(O3))}function O3(){const e=Co;Co=lt.now();const t=I3(Co);if(t&&(L3(Vl.splice(0,t),n=>n.handler()),Do-=t),!Do){cj();return}bm.flush(),dE.flush(e?Math.min(64,Co-e):16.667),hE.flush(),fE.flush(),pE.flush()}function Yd(){let e=new Set,t=e;return{add(n){Do+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Do-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Do-=t.size,L3(t,r=>r(n)&&e.add(r)),Do+=e.size,t=e)}}}function L3(e,t){e.forEach(n=>{try{t(n)}catch(r){lt.catch(r)}})}var uj=Object.defineProperty,dj=(e,t)=>{for(var n in t)uj(e,n,{get:t[n],enumerable:!0})},Ma={};dj(Ma,{assign:()=>hj,colors:()=>wo,createStringInterpolator:()=>yE,skipAnimation:()=>P3,to:()=>M3,willAdvance:()=>bE});function Py(){}var fj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),we={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Li(e,t){if(we.arr(e)){if(!we.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var xt=(e,t)=>e.forEach(t);function si(e,t,n){if(we.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Xr=e=>we.und(e)?[]:we.arr(e)?e:[e];function Uu(e,t){if(e.size){const n=Array.from(e);e.clear(),xt(n,t)}}var Lu=(e,...t)=>Uu(e,n=>n(...t)),gE=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),yE,M3,wo=null,P3=!1,bE=Py,hj=e=>{e.to&&(M3=e.to),e.now&&(lt.now=e.now),e.colors!==void 0&&(wo=e.colors),e.skipAnimation!=null&&(P3=e.skipAnimation),e.createStringInterpolator&&(yE=e.createStringInterpolator),e.requestAnimationFrame&<.use(e.requestAnimationFrame),e.batchedUpdates&&(lt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(bE=e.willAdvance),e.frameLoop&&(lt.frameLoop=e.frameLoop)},Hu=new Set,Ta=[],v1=[],wp=0,Em={get idle(){return!Hu.size&&!Ta.length},start(e){wp>e.priority?(Hu.add(e),lt.onStart(pj)):($3(e),lt($y))},advance:$y,sort(e){if(wp)lt.onFrame(()=>Em.sort(e));else{const t=Ta.indexOf(e);~t&&(Ta.splice(t,1),F3(e))}},clear(){Ta=[],Hu.clear()}};function pj(){Hu.forEach($3),Hu.clear(),lt($y)}function $3(e){Ta.includes(e)||F3(e)}function F3(e){Ta.splice(mj(Ta,t=>t.priority>e.priority),0,e)}function $y(e){const t=v1;for(let n=0;n<Ta.length;n++){const r=Ta[n];wp=r.priority,r.idle||(bE(r),r.advance(e),r.idle||t.push(r))}return wp=0,v1=Ta,v1.length=0,Ta=t,Ta.length>0}function mj(e,t){const n=e.findIndex(t);return n<0?e.length:n}var gj={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Na="[-+]?\\d*\\.?\\d+",Np=Na+"%";function vm(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yj=new RegExp("rgb"+vm(Na,Na,Na)),bj=new RegExp("rgba"+vm(Na,Na,Na,Na)),Ej=new RegExp("hsl"+vm(Na,Np,Np)),vj=new RegExp("hsla"+vm(Na,Np,Np,Na)),Tj=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,_j=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,xj=/^#([0-9a-fA-F]{6})$/,Aj=/^#([0-9a-fA-F]{8})$/;function Sj(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=xj.exec(e))?parseInt(t[1]+"ff",16)>>>0:wo&&wo[e]!==void 0?wo[e]:(t=yj.exec(e))?(kl(t[1])<<24|kl(t[2])<<16|kl(t[3])<<8|255)>>>0:(t=bj.exec(e))?(kl(t[1])<<24|kl(t[2])<<16|kl(t[3])<<8|MS(t[4]))>>>0:(t=Tj.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Aj.exec(e))?parseInt(t[1],16)>>>0:(t=_j.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ej.exec(e))?(OS(LS(t[1]),Ah(t[2]),Ah(t[3]))|255)>>>0:(t=vj.exec(e))?(OS(LS(t[1]),Ah(t[2]),Ah(t[3]))|MS(t[4]))>>>0:null}function T1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OS(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,o=T1(a,r,e+1/3),l=T1(a,r,e),c=T1(a,r,e-1/3);return Math.round(o*255)<<24|Math.round(l*255)<<16|Math.round(c*255)<<8}function kl(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function LS(e){return(parseFloat(e)%360+360)%360/360}function MS(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ah(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function PS(e){let t=Sj(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${o})`}var bd=(e,t,n)=>{if(we.fun(e))return e;if(we.arr(e))return bd({range:e,output:t,extrapolate:n});if(we.str(e.output[0]))return yE(e);const r=e,a=r.output,o=r.range||[0,1],l=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",d=r.easing||(f=>f);return f=>{const p=Dj(f,o);return Cj(f,o[p],o[p+1],a[p],a[p+1],d,l,c,r.map)}};function Cj(e,t,n,r,a,o,l,c,d){let f=d?d(e):e;if(f<t){if(l==="identity")return f;l==="clamp"&&(f=t)}if(f>n){if(c==="identity")return f;c==="clamp"&&(f=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?f=-f:n===1/0?f=f-t:f=(f-t)/(n-t),f=o(f),r===-1/0?f=-f:a===1/0?f=f+r:f=f*(a-r)+r,f)}function Dj(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var kj={linear:e=>e},Ed=Symbol.for("FluidValue.get"),Jl=Symbol.for("FluidValue.observers"),ba=e=>!!(e&&e[Ed]),wr=e=>e&&e[Ed]?e[Ed]():e,$S=e=>e[Jl]||null;function Rj(e,t){e.eventObserved?e.eventObserved(t):e(t)}function vd(e,t){const n=e[Jl];n&&n.forEach(r=>{Rj(r,t)})}var B3=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ij(this,e)}},Ij=(e,t)=>j3(e,Ed,t);function cc(e,t){if(e[Ed]){let n=e[Jl];n||j3(e,Jl,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Td(e,t){const n=e[Jl];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Jl]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var j3=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Qh=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,wj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,FS=new RegExp(`(${Qh.source})(%|[a-z]+)`,"i"),Nj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Tm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,U3=e=>{const[t,n]=Oj(e);if(!t||gE())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&Tm.test(n))return U3(n);if(n)return n}return e},Oj=e=>{const t=Tm.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},_1,Lj=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,H3=e=>{_1||(_1=wo?new RegExp(`(${Object.keys(wo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>wr(o).replace(Tm,U3).replace(wj,PS).replace(_1,PS)),n=t.map(o=>o.match(Qh).map(Number)),a=n[0].map((o,l)=>n.map(c=>{if(!(l in c))throw Error('The arity of each "output" value must be equal');return c[l]})).map(o=>bd({...e,output:o}));return o=>{const l=!FS.test(t[0])&&t.find(d=>FS.test(d))?.replace(Qh,"");let c=0;return t[0].replace(Qh,()=>`${a[c++](o)}${l||""}`).replace(Nj,Lj)}},EE="react-spring: ",z3=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${EE}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Mj=z3(console.warn);function Pj(){Mj(`${EE}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $j=z3(console.warn);function Fj(){$j(`${EE}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function _m(e){return we.str(e)&&(e[0]=="#"||/\d/.test(e)||!gE()&&Tm.test(e)||e in(wo||{}))}var vE=gE()?w.useEffect:w.useLayoutEffect,Bj=()=>{const e=w.useRef(!1);return vE(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function G3(){const e=w.useState()[1],t=Bj();return()=>{t.current&&e(Math.random())}}var V3=e=>w.useEffect(e,jj),jj=[];function BS(e){const t=w.useRef(void 0);return w.useEffect(()=>{t.current=e}),t.current}var _d=Symbol.for("Animated:node"),Uj=e=>!!e&&e[_d]===e,ei=e=>e&&e[_d],TE=(e,t)=>fj(e,_d,t),xm=e=>e&&e[_d]&&e[_d].getPayload(),q3=class{constructor(){TE(this,this)}getPayload(){return this.payload||[]}},Am=class Y3 extends q3{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,we.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Y3(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return we.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,we.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Op=class Q3 extends Am{constructor(t){super(0),this._string=null,this._toString=bd({output:[t,t]})}static create(t){return new Q3(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(we.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=bd({output:[this.getValue(),t]})),this._value=0,super.reset()}},Lp={dependencies:null},Sm=class extends q3{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return si(this.source,(n,r)=>{Uj(n)?t[r]=n.getValue(e):ba(n)?t[r]=wr(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xt(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return si(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Lp.dependencies&&ba(e)&&Lp.dependencies.add(e);const t=xm(e);t&&xt(t,n=>this.add(n))}},Hj=class K3 extends Sm{constructor(t){super(t)}static create(t){return new K3(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,a)=>r.setValue(t[a])).some(Boolean):(super.setValue(t.map(zj)),!0)}};function zj(e){return(_m(e)?Op:Am).create(e)}function Fy(e){const t=ei(e);return t?t.constructor:we.arr(e)?Hj:_m(e)?Op:Am}var jS=(e,t)=>{const n=!we.fun(e)||e.prototype&&e.prototype.isReactComponent;return w.forwardRef((r,a)=>{const o=w.useRef(null),l=n&&w.useCallback(_=>{o.current=qj(a,_)},[a]),[c,d]=Vj(r,t),f=G3(),p=()=>{const _=o.current;if(n&&!_)return;(_?t.applyAnimatedValues(_,c.getValue(!0)):!1)===!1&&f()},m=new Gj(p,d),y=w.useRef(void 0);vE(()=>(y.current=m,xt(d,_=>cc(_,m)),()=>{y.current&&(xt(y.current.deps,_=>Td(_,y.current)),lt.cancel(y.current.update))})),w.useEffect(p,[]),V3(()=>()=>{const _=y.current;xt(_.deps,A=>Td(A,_))});const b=t.getComponentProps(c.getValue());return w.createElement(e,{...b,ref:l})})},Gj=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&<.write(this.update)}};function Vj(e,t){const n=new Set;return Lp.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Sm(e),Lp.dependencies=null,[e,n]}function qj(e,t){return e&&(we.fun(e)?e(t):e.current=t),t}var US=Symbol.for("AnimatedComponent"),Yj=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new Sm(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=l=>{const c=HS(l)||"Anonymous";return we.str(l)?l=o[l]||(o[l]=jS(l,a)):l=l[US]||(l[US]=jS(l,a)),l.displayName=`Animated(${c})`,l};return si(e,(l,c)=>{we.arr(e)&&(c=HS(l)),o[c]=o(l)}),{animated:o}},HS=e=>we.str(e)?e:e&&we.str(e.displayName)?e.displayName:we.fun(e)&&e.name||null;function fs(e,...t){return we.fun(e)?e(...t):e}var zu=(e,t)=>e===!0||!!(t&&e&&(we.fun(e)?e(t):Xr(e).includes(t))),W3=(e,t)=>we.obj(e)?t&&e[t]:e,X3=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Qj=e=>e,_E=(e,t=Qj)=>{let n=Kj;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const o=t(e[a],a);we.und(o)||(r[a]=o)}return r},Kj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Wj={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Xj(e){const t={};let n=0;if(si(e,(r,a)=>{Wj[a]||(t[a]=r,n++)}),n)return t}function Z3(e){const t=Xj(e);if(t){const n={to:t};return si(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function xd(e){return e=wr(e),we.arr(e)?e.map(xd):_m(e)?Ma.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Zj(e){for(const t in e)return!0;return!1}function By(e){return we.fun(e)||we.arr(e)&&we.obj(e[0])}function Jj(e,t){e.ref?.delete(e),t?.delete(e)}function eU(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var tU={default:{tension:170,friction:26}},jy={...tU.default,mass:1,damping:1,easing:kj.linear,clamp:!1},nU=class{constructor(){this.velocity=0,Object.assign(this,jy)}};function rU(e,t,n){n&&(n={...n},zS(n,t),t={...n,...t}),zS(e,t),Object.assign(e,t);for(const l in jy)e[l]==null&&(e[l]=jy[l]);let{frequency:r,damping:a}=e;const{mass:o}=e;return we.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*a*o/r),e}function zS(e,t){if(!we.und(t.decay))e.duration=void 0;else{const n=!we.und(t.tension)||!we.und(t.friction);(n||!we.und(t.frequency)||!we.und(t.damping)||!we.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var GS=[],aU=class{constructor(){this.changed=!1,this.values=GS,this.toValues=null,this.fromValues=GS,this.config=new nU,this.immediate=!1}};function J3(e,{key:t,props:n,defaultProps:r,state:a,actions:o}){return new Promise((l,c)=>{let d,f,p=zu(n.cancel??r?.cancel,t);if(p)b();else{we.und(n.pause)||(a.paused=zu(n.pause,t));let _=r?.pause;_!==!0&&(_=a.paused||zu(_,t)),d=fs(n.delay||0,t),_?(a.resumeQueue.add(y),o.pause()):(o.resume(),y())}function m(){a.resumeQueue.add(y),a.timeouts.delete(f),f.cancel(),d=f.time-lt.now()}function y(){d>0&&!Ma.skipAnimation?(a.delayed=!0,f=lt.setTimeout(b,d),a.pauseQueue.add(m),a.timeouts.add(f)):b()}function b(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(m),a.timeouts.delete(f),e<=(a.cancelId||0)&&(p=!0);try{o.start({...n,callId:e,cancel:p},l)}catch(_){c(_)}}})}var xE=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?ql(e.get()):t.every(n=>n.noop)?eR(e.get()):wa(e.get(),t.every(n=>n.finished)),eR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),wa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ql=e=>({value:e,cancelled:!0,finished:!1});function tR(e,t,n,r){const{callId:a,parentId:o,onRest:l}=t,{asyncTo:c,promise:d}=n;return!o&&e===c&&!t.reset?d:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const f=_E(t,(C,x)=>x==="onRest"?void 0:C);let p,m;const y=new Promise((C,x)=>(p=C,m=x)),b=C=>{const x=a<=(n.cancelId||0)&&ql(r)||a!==n.asyncId&&wa(r,!1);if(x)throw C.result=x,m(C),C},_=(C,x)=>{const D=new VS,S=new qS;return(async()=>{if(Ma.skipAnimation)throw Ad(n),S.result=wa(r,!1),m(S),S;b(D);const M=we.obj(C)?{...C}:{...x,to:C};M.parentId=a,si(f,(I,V)=>{we.und(M[V])&&(M[V]=I)});const L=await r.start(M);return b(D),n.paused&&await new Promise(I=>{n.resumeQueue.add(I)}),L})()};let A;if(Ma.skipAnimation)return Ad(n),wa(r,!1);try{let C;we.arr(e)?C=(async x=>{for(const D of x)await _(D)})(e):C=Promise.resolve(e(_,r.stop.bind(r))),await Promise.all([C.then(p),y]),A=wa(r.get(),!0,!1)}catch(C){if(C instanceof VS)A=C.result;else if(C instanceof qS)A=C.result;else throw C}finally{a==n.asyncId&&(n.asyncId=o,n.asyncTo=o?c:void 0,n.promise=o?d:void 0)}return we.fun(l)&<.batchedUpdates(()=>{l(A,r,r.item)}),A})()}function Ad(e,t){Uu(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var VS=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},qS=class extends Error{constructor(){super("SkipAnimationSignal")}},Uy=e=>e instanceof AE,iU=1,AE=class extends B3{constructor(){super(...arguments),this.id=iU++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ei(this);return e&&e.getValue()}to(...e){return Ma.to(this,e)}interpolate(...e){return Pj(),Ma.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){vd(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Em.sort(this),vd(this,{type:"priority",parent:this,priority:e})}},ws=Symbol.for("SpringPhase"),nR=1,Hy=2,zy=4,x1=e=>(e[ws]&nR)>0,Eo=e=>(e[ws]&Hy)>0,Eu=e=>(e[ws]&zy)>0,YS=(e,t)=>t?e[ws]|=Hy|nR:e[ws]&=~Hy,QS=(e,t)=>t?e[ws]|=zy:e[ws]&=~zy,oU=class extends AE{constructor(e,t){if(super(),this.animation=new aU,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!we.und(e)||!we.und(t)){const n=we.obj(e)?{...e}:{...t,from:e};we.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Eo(this)||this._state.asyncTo)||Eu(this)}get goal(){return wr(this.animation.to)}get velocity(){const e=ei(this);return e instanceof Am?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return x1(this)}get isAnimating(){return Eo(this)}get isPaused(){return Eu(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:o}=r,l=xm(r.to);!l&&ba(r.to)&&(a=Xr(wr(r.to))),r.values.forEach((f,p)=>{if(f.done)return;const m=f.constructor==Op?1:l?l[p].lastPosition:a[p];let y=r.immediate,b=m;if(!y){if(b=f.lastPosition,o.tension<=0){f.done=!0;return}let _=f.elapsedTime+=e;const A=r.fromValues[p],C=f.v0!=null?f.v0:f.v0=we.arr(o.velocity)?o.velocity[p]:o.velocity;let x;const D=o.precision||(A==m?.005:Math.min(1,Math.abs(m-A)*.001));if(we.und(o.duration))if(o.decay){const S=o.decay===!0?.998:o.decay,M=Math.exp(-(1-S)*_);b=A+C/(1-S)*(1-M),y=Math.abs(f.lastPosition-b)<=D,x=C*M}else{x=f.lastVelocity==null?C:f.lastVelocity;const S=o.restVelocity||D/10,M=o.clamp?0:o.bounce,L=!we.und(M),I=A==m?f.v0>0:A<m;let V,te=!1;const Q=1,k=Math.ceil(e/Q);for(let H=0;H<k&&(V=Math.abs(x)>S,!(!V&&(y=Math.abs(m-b)<=D,y)));++H){L&&(te=b==m||b>m==I,te&&(x=-x*M,b=m));const W=-o.tension*1e-6*(b-m),K=-o.friction*.001*x,re=(W+K)/o.mass;x=x+re*Q,b=b+x*Q}}else{let S=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,f.durationProgress>0&&(f.elapsedTime=o.duration*f.durationProgress,_=f.elapsedTime+=e)),S=(o.progress||0)+_/this._memoizedDuration,S=S>1?1:S<0?0:S,f.durationProgress=S),b=A+o.easing(S)*(m-A),x=(b-f.lastPosition)/e,y=S==1}f.lastVelocity=x,Number.isNaN(b)&&(console.warn("Got NaN while animating:",this),y=!0)}l&&!l[p].done&&(y=!1),y?f.done=!0:t=!1,f.setValue(b,o.round)&&(n=!0)});const c=ei(this),d=c.getValue();if(t){const f=wr(r.to);(d!==f||n)&&!o.decay?(c.setValue(f),this._onChange(f)):n&&o.decay&&this._onChange(d),this._stop()}else n&&this._onChange(d)}set(e){return lt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Eo(this)){const{to:e,config:t}=this.animation;lt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return we.und(e)?(n=this.queue||[],this.queue=[]):n=[we.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>xE(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ad(this._state,e&&this._lastCallId),lt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=we.obj(n)?n[t]:n,(n==null||By(n))&&(n=void 0),r=we.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return x1(this)||(e.reverse&&([n,r]=[r,n]),r=wr(r),we.und(r)?ei(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,_E(e,(l,c)=>/^on/.test(c)?W3(l,n):l)),WS(this,e,"onProps"),Tu(this,"onProps",e,this);const a=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return J3(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Eu(this)||(QS(this,!0),Lu(o.pauseQueue),Tu(this,"onPause",wa(this,vu(this,this.animation.to)),this))},resume:()=>{Eu(this)&&(QS(this,!1),Eo(this)&&this._resume(),Lu(o.resumeQueue),Tu(this,"onResume",wa(this,vu(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(l=>{if(e.loop&&l.finished&&!(t&&l.noop)){const c=rR(e);if(c)return this._update(c,!0)}return l})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ql(this));const r=!we.und(e.to),a=!we.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(ql(this));const{key:o,defaultProps:l,animation:c}=this,{to:d,from:f}=c;let{to:p=d,from:m=f}=e;a&&!r&&(!t.default||we.und(p))&&(p=m),t.reverse&&([p,m]=[m,p]);const y=!Li(m,f);y&&(c.from=m),m=wr(m);const b=!Li(p,d);b&&this._focus(p);const _=By(t.to),{config:A}=c,{decay:C,velocity:x}=A;(r||a)&&(A.velocity=0),t.config&&!_&&rU(A,fs(t.config,o),t.config!==l.config?fs(l.config,o):void 0);let D=ei(this);if(!D||we.und(p))return n(wa(this,!0));const S=we.und(t.reset)?a&&!t.default:!we.und(m)&&zu(t.reset,o),M=S?m:this.get(),L=xd(p),I=we.num(L)||we.arr(L)||_m(L),V=!_&&(!I||zu(l.immediate||t.immediate,o));if(b){const H=Fy(p);if(H!==D.constructor)if(V)D=this._set(L);else throw Error(`Cannot animate between ${D.constructor.name} and ${H.name}, as the "to" prop suggests`)}const te=D.constructor;let Q=ba(p),k=!1;if(!Q){const H=S||!x1(this)&&y;(b||H)&&(k=Li(xd(M),L),Q=!k),(!Li(c.immediate,V)&&!V||!Li(A.decay,C)||!Li(A.velocity,x))&&(Q=!0)}if(k&&Eo(this)&&(c.changed&&!S?Q=!0:Q||this._stop(d)),!_&&((Q||ba(d))&&(c.values=D.getPayload(),c.toValues=ba(p)?null:te==Op?[1]:Xr(L)),c.immediate!=V&&(c.immediate=V,!V&&!S&&this._set(d)),Q)){const{onRest:H}=c;xt(lU,K=>WS(this,t,K));const W=wa(this,vu(this,d));Lu(this._pendingCalls,W),this._pendingCalls.add(n),c.changed&<.batchedUpdates(()=>{c.changed=!S,H?.(W,this),S?fs(l.onRest,W):c.onStart?.(W,this)})}S&&this._set(M),_?n(tR(t.to,t,this._state,this)):Q?this._start():Eo(this)&&!b?this._pendingCalls.add(n):n(eR(M))}_focus(e){const t=this.animation;e!==t.to&&($S(this)&&this._detach(),t.to=e,$S(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ba(t)&&(cc(t,this),Uy(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ba(e)&&Td(e,this)}_set(e,t=!0){const n=wr(e);if(!we.und(n)){const r=ei(this);if(!r||!Li(n,r.getValue())){const a=Fy(n);!r||r.constructor!=a?TE(this,a.create(n)):r.setValue(n),r&<.batchedUpdates(()=>{this._onChange(n,t)})}}return ei(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Tu(this,"onStart",wa(this,vu(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),fs(this.animation.onChange,e,this)),fs(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ei(this).reset(wr(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Eo(this)||(YS(this,!0),Eu(this)||this._resume())}_resume(){Ma.skipAnimation?this.finish():Em.start(this)}_stop(e,t){if(Eo(this)){YS(this,!1);const n=this.animation;xt(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),vd(this,{type:"idle",parent:this});const r=t?ql(this.get()):wa(this.get(),vu(this,e??n.to));Lu(this._pendingCalls,r),n.changed&&(n.changed=!1,Tu(this,"onRest",r,this))}}};function vu(e,t){const n=xd(t),r=xd(e.get());return Li(r,n)}function rR(e,t=e.loop,n=e.to){const r=fs(t);if(r){const a=r!==!0&&Z3(r),o=(a||e).reverse,l=!a||a.reset;return Sd({...e,loop:t,default:!1,pause:void 0,to:!o||By(n)?n:void 0,from:l?e.from:void 0,reset:l,...a})}}function Sd(e){const{to:t,from:n}=e=Z3(e),r=new Set;return we.obj(t)&&KS(t,r),we.obj(n)&&KS(n,r),e.keys=r.size?Array.from(r):null,e}function sU(e){const t=Sd(e);return we.und(t.default)&&(t.default=_E(t)),t}function KS(e,t){si(e,(n,r)=>n!=null&&t.add(r))}var lU=["onStart","onRest","onChange","onPause","onResume"];function WS(e,t,n){e.animation[n]=t[n]!==X3(t,n)?W3(t[n],e.key):void 0}function Tu(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var cU=["onStart","onChange","onRest"],uU=1,dU=class{constructor(e,t){this.id=uU++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];we.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Sd(e)),this}start(e){let{queue:t}=this;return e?t=Xr(e).map(Sd):this.queue=[],this._flush?this._flush(this,t):(lR(this,t),Gy(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;xt(Xr(t),r=>n[r].stop(!!e))}else Ad(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(we.und(e))this.start({pause:!0});else{const t=this.springs;xt(Xr(e),n=>t[n].pause())}return this}resume(e){if(we.und(e))this.start({pause:!1});else{const t=this.springs;xt(Xr(e),n=>t[n].resume())}return this}each(e){si(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,Uu(e,([c,d])=>{d.value=this.get(),c(d,this,this._item)}));const o=!r&&this._started,l=a||o&&n.size?this.get():null;a&&t.size&&Uu(t,([c,d])=>{d.value=l,c(d,this,this._item)}),o&&(this._started=!1,Uu(n,([c,d])=>{d.value=l,c(d,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;lt.onFrame(this._onFrame)}};function Gy(e,t){return Promise.all(t.map(n=>aR(e,n))).then(n=>xE(e,n))}async function aR(e,t,n){const{keys:r,to:a,from:o,loop:l,onRest:c,onResolve:d}=t,f=we.obj(t.default)&&t.default;l&&(t.loop=!1),a===!1&&(t.to=null),o===!1&&(t.from=null);const p=we.arr(a)||we.fun(a)?a:void 0;p?(t.to=void 0,t.onRest=void 0,f&&(f.onRest=void 0)):xt(cU,A=>{const C=t[A];if(we.fun(C)){const x=e._events[A];t[A]=({finished:D,cancelled:S})=>{const M=x.get(C);M?(D||(M.finished=!1),S&&(M.cancelled=!0)):x.set(C,{value:null,finished:D||!1,cancelled:S||!1})},f&&(f[A]=t[A])}});const m=e._state;t.pause===!m.paused?(m.paused=t.pause,Lu(t.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(t.pause=!0);const y=(r||Object.keys(e.springs)).map(A=>e.springs[A].start(t)),b=t.cancel===!0||X3(t,"cancel")===!0;(p||b&&m.asyncId)&&y.push(J3(++e._lastAsyncId,{props:t,state:m,actions:{pause:Py,resume:Py,start(A,C){b?(Ad(m,e._lastAsyncId),C(ql(e))):(A.onRest=c,C(tR(p,A,m,e)))}}})),m.paused&&await new Promise(A=>{m.resumeQueue.add(A)});const _=xE(e,await Promise.all(y));if(l&&_.finished&&!(n&&_.noop)){const A=rR(t,l,a);if(A)return lR(e,[A]),aR(e,A,!0)}return d&<.batchedUpdates(()=>d(_,e,e.item)),_}function XS(e,t){const n={...e.springs};return t&&xt(Xr(t),r=>{we.und(r.keys)&&(r=Sd(r)),we.obj(r.to)||(r={...r,to:void 0}),sR(n,r,a=>oR(a))}),iR(e,n),n}function iR(e,t){si(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,cc(n,e))})}function oR(e,t){const n=new oU;return n.key=e,t&&cc(n,t),n}function sR(e,t,n){t.keys&&xt(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function lR(e,t){xt(t,n=>{sR(e.springs,n,r=>oR(r,e))})}var fU=w.createContext({pause:!1,immediate:!1}),hU=()=>{const e=[],t=function(r){Fj();const a=[];return xt(e,(o,l)=>{if(we.und(r))a.push(o.start());else{const c=n(r,o,l);c&&a.push(o.start(c))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return xt(e,r=>r.pause(...arguments)),this},t.resume=function(){return xt(e,r=>r.resume(...arguments)),this},t.set=function(r){xt(e,(a,o)=>{const l=we.fun(r)?r(o,a):r;l&&a.set(l)})},t.start=function(r){const a=[];return xt(e,(o,l)=>{if(we.und(r))a.push(o.start());else{const c=this._getProps(r,o,l);c&&a.push(o.start(c))}}),a},t.stop=function(){return xt(e,r=>r.stop(...arguments)),this},t.update=function(r){return xt(e,(a,o)=>a.update(this._getProps(r,a,o))),this};const n=function(r,a,o){return we.fun(r)?r(o,a):r};return t._getProps=n,t};function pU(e,t,n){const r=we.fun(t)&&t;r&&!n&&(n=[]);const a=w.useMemo(()=>r||arguments.length==3?hU():void 0,[]),o=w.useRef(0),l=G3(),c=w.useMemo(()=>({ctrls:[],queue:[],flush(x,D){const S=XS(x,D);return o.current>0&&!c.queue.length&&!Object.keys(S).some(L=>!x.springs[L])?Gy(x,D):new Promise(L=>{iR(x,S),c.queue.push(()=>{L(Gy(x,D))}),l()})}}),[]),d=w.useRef([...c.ctrls]),f=w.useRef([]),p=BS(e)||0;w.useMemo(()=>{xt(d.current.slice(e,p),x=>{Jj(x,a),x.stop(!0)}),d.current.length=e,m(p,e)},[e]),w.useMemo(()=>{m(0,Math.min(p,e))},n);function m(x,D){for(let S=x;S<D;S++){const M=d.current[S]||(d.current[S]=new dU(null,c.flush)),L=r?r(S,M):t[S];L&&(f.current[S]=sU(L))}}const y=d.current.map((x,D)=>XS(x,f.current[D])),b=w.useContext(fU),_=BS(b),A=b!==_&&Zj(b);vE(()=>{o.current++,c.ctrls=d.current;const{queue:x}=c;x.length&&(c.queue=[],xt(x,D=>D())),xt(d.current,(D,S)=>{a?.add(D),A&&D.start({default:b});const M=f.current[S];M&&(eU(D,M.ref),D.ref?D.queue.push(M):D.start(M))})}),V3(()=>()=>{xt(c.ctrls,x=>x.stop(!0))});const C=y.map(x=>({...x}));return a?[C,a]:C}function mU(e,t){const n=we.fun(e),[[r],a]=pU(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}var gU=class extends AE{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=bd(...t);const n=this._get(),r=Fy(n);TE(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Li(t,n)||(ei(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ZS(this._active)&&A1(this)}_get(){const e=we.arr(this.source)?this.source.map(wr):Xr(wr(this.source));return this.calc(...e)}_start(){this.idle&&!ZS(this._active)&&(this.idle=!1,xt(xm(this),e=>{e.done=!1}),Ma.skipAnimation?(lt.batchedUpdates(()=>this.advance()),A1(this)):Em.start(this))}_attach(){let e=1;xt(Xr(this.source),t=>{ba(t)&&cc(t,this),Uy(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xt(Xr(this.source),e=>{ba(e)&&Td(e,this)}),this._active.clear(),A1(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Xr(this.source).reduce((t,n)=>Math.max(t,(Uy(n)?n.priority:0)+1),0))}};function yU(e){return e.idle!==!1}function ZS(e){return!e.size||Array.from(e).every(yU)}function A1(e){e.idle||(e.idle=!0,xt(xm(e),t=>{t.done=!0}),vd(e,{type:"idle",parent:e}))}Ma.assign({createStringInterpolator:H3,to:(e,t)=>new gU(e,t)});var cR=/^--/;function bU(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!cR.test(e)&&!(Gu.hasOwnProperty(e)&&Gu[e])?t+"px":(""+t).trim()}var JS={};function EU(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:a,children:o,scrollTop:l,scrollLeft:c,viewBox:d,...f}=t,p=Object.values(f),m=Object.keys(f).map(y=>n||e.hasAttribute(y)?y:JS[y]||(JS[y]=y.replace(/([A-Z])/g,b=>"-"+b.toLowerCase())));o!==void 0&&(e.textContent=o);for(const y in a)if(a.hasOwnProperty(y)){const b=bU(y,a[y]);cR.test(y)?e.style.setProperty(y,b):e.style[y]=b}m.forEach((y,b)=>{e.setAttribute(y,p[b])}),r!==void 0&&(e.className=r),l!==void 0&&(e.scrollTop=l),c!==void 0&&(e.scrollLeft=c),d!==void 0&&e.setAttribute("viewBox",d)}var Gu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},vU=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),TU=["Webkit","Ms","Moz","O"];Gu=Object.keys(Gu).reduce((e,t)=>(TU.forEach(n=>e[vU(n,t)]=e[t]),e),Gu);var _U=/^(matrix|translate|scale|rotate|skew)/,xU=/^(translate)/,AU=/^(rotate|skew)/,S1=(e,t)=>we.num(e)&&e!==0?e+t:e,Kh=(e,t)=>we.arr(e)?e.every(n=>Kh(n,t)):we.num(e)?e===t:parseFloat(e)===t,SU=class extends Sm{constructor({x:e,y:t,z:n,...r}){const a=[],o=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),o.push(l=>[`translate3d(${l.map(c=>S1(c,"px")).join(",")})`,Kh(l,0)])),si(r,(l,c)=>{if(c==="transform")a.push([l||""]),o.push(d=>[d,d===""]);else if(_U.test(c)){if(delete r[c],we.und(l))return;const d=xU.test(c)?"px":AU.test(c)?"deg":"";a.push(Xr(l)),o.push(c==="rotate3d"?([f,p,m,y])=>[`rotate3d(${f},${p},${m},${S1(y,d)})`,Kh(y,0)]:f=>[`${c}(${f.map(p=>S1(p,d)).join(",")})`,Kh(f,c.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new CU(a,o)),super(r)}},CU=class extends B3{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return xt(this.inputs,(n,r)=>{const a=wr(n[0]),[o,l]=this.transforms[r](we.arr(a)?a:n.map(wr));e+=" "+o,t=t&&l}),t?"none":e}observerAdded(e){e==1&&xt(this.inputs,t=>xt(t,n=>ba(n)&&cc(n,this)))}observerRemoved(e){e==0&&xt(this.inputs,t=>xt(t,n=>ba(n)&&Td(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),vd(this,e)}},DU=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ma.assign({batchedUpdates:j2.unstable_batchedUpdates,createStringInterpolator:H3,colors:gj});var kU=Yj(DU,{applyAnimatedValues:EU,createAnimatedStyle:e=>new SU(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),RU=kU.animated;const IU=nn(v.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),wU=nn(v.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function NU(){const e=m5(jb);return e[Ub]||e}function eC(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function OU(e){return Fo("MuiCollapse",e)}Bo("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);function cr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Vy(e,t)}function uR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vy(e,t)}const tC={disabled:!1},Mp=Le.createContext(null);var LU=function(e){return e.scrollTop},Mu="unmounted",ls="exited",cs="entering",Ml="entered",qy="exiting",Gi=function(e){uR(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var l=a,c=l&&!l.isMounting?r.enter:r.appear,d;return o.appearStatus=null,r.in?c?(d=ls,o.appearStatus=cs):d=Ml:r.unmountOnExit||r.mountOnEnter?d=Mu:d=ls,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(r,a){var o=r.in;return o&&a.status===Mu?{status:ls}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var a=null;if(r!==this.props){var o=this.state.status;this.props.in?o!==cs&&o!==Ml&&(a=cs):(o===cs||o===Ml)&&(a=qy)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,a,o,l;return a=o=l=r,r!=null&&typeof r!="number"&&(a=r.exit,o=r.enter,l=r.appear!==void 0?r.appear:o),{exit:a,enter:o,appear:l}},n.updateStatus=function(r,a){if(r===void 0&&(r=!1),a!==null)if(this.cancelNextCallback(),a===cs){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:hh.findDOMNode(this);o&&LU(o)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ls&&this.setState({status:Mu})},n.performEnter=function(r){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[hh.findDOMNode(this),l],d=c[0],f=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!r&&!o||tC.disabled){this.safeSetState({status:Ml},function(){a.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:cs},function(){a.props.onEntering(d,f),a.onTransitionEnd(m,function(){a.safeSetState({status:Ml},function(){a.props.onEntered(d,f)})})})},n.performExit=function(){var r=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:hh.findDOMNode(this);if(!a||tC.disabled){this.safeSetState({status:ls},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:qy},function(){r.props.onExiting(l),r.onTransitionEnd(o.exit,function(){r.safeSetState({status:ls},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,a){a=this.setNextCallback(a),this.setState(r,a)},n.setNextCallback=function(r){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,r(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(r,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:hh.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Mu)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=cr(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Le.createElement(Mp.Provider,{value:null},typeof o=="function"?o(r,l):Le.cloneElement(Le.Children.only(o),l))},t}(Le.Component);Gi.contextType=Mp;Gi.propTypes={};function Rl(){}Gi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rl,onEntering:Rl,onEntered:Rl,onExit:Rl,onExiting:Rl,onExited:Rl};Gi.UNMOUNTED=Mu;Gi.EXITED=ls;Gi.ENTERING=cs;Gi.ENTERED=Ml;Gi.EXITING=qy;const nC={};function dR(e,t){const n=w.useRef(nC);return n.current===nC&&(n.current=e(t)),n}const MU=[];function PU(e){w.useEffect(e,MU)}let $U=class fR{static create(){return new fR}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function hR(){const e=dR($U.create).current;return PU(e.disposeEffect),e}const FU=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Fs(r,OU,n)},BU=an("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ib(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),jU=an("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),UU=an("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Cd=w.forwardRef(function(e,t){const n=rc({props:e,name:"MuiCollapse"}),{addEndListener:r,children:a,className:o,collapsedSize:l="0px",component:c,easing:d,in:f,onEnter:p,onEntered:m,onEntering:y,onExit:b,onExited:_,onExiting:A,orientation:C="vertical",style:x,timeout:D=_D.standard,TransitionComponent:S=Gi,...M}=n,L={...n,orientation:C,collapsedSize:l},I=FU(L),V=NU(),te=hR(),Q=w.useRef(null),k=w.useRef(),H=typeof l=="number"?`${l}px`:l,W=C==="horizontal",K=W?"width":"height",re=w.useRef(null),me=oi(t,re),G=ce=>Ne=>{if(ce){const Ie=re.current;Ne===void 0?ce(Ie):ce(Ie,Ne)}},oe=()=>Q.current?Q.current[W?"clientWidth":"clientHeight"]:0,le=G((ce,Ne)=>{Q.current&&W&&(Q.current.style.position="absolute"),ce.style[K]=H,p&&p(ce,Ne)}),se=G((ce,Ne)=>{const Ie=oe();Q.current&&W&&(Q.current.style.position="");const{duration:Me,easing:Oe}=eC({style:x,timeout:D,easing:d},{mode:"enter"});if(D==="auto"){const st=V.transitions.getAutoHeightDuration(Ie);ce.style.transitionDuration=`${st}ms`,k.current=st}else ce.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;ce.style[K]=`${Ie}px`,ce.style.transitionTimingFunction=Oe,y&&y(ce,Ne)}),P=G((ce,Ne)=>{ce.style[K]="auto",m&&m(ce,Ne)}),Ce=G(ce=>{ce.style[K]=`${oe()}px`,b&&b(ce)}),he=G(_),O=G(ce=>{const Ne=oe(),{duration:Ie,easing:Me}=eC({style:x,timeout:D,easing:d},{mode:"exit"});if(D==="auto"){const Oe=V.transitions.getAutoHeightDuration(Ne);ce.style.transitionDuration=`${Oe}ms`,k.current=Oe}else ce.style.transitionDuration=typeof Ie=="string"?Ie:`${Ie}ms`;ce.style[K]=H,ce.style.transitionTimingFunction=Me,A&&A(ce)});return v.jsx(S,{in:f,onEnter:le,onEntered:P,onEntering:se,onExit:Ce,onExited:he,onExiting:O,addEndListener:ce=>{D==="auto"&&te.start(k.current||0,ce),r&&r(re.current,ce)},nodeRef:re,timeout:D==="auto"?null:D,...M,children:(ce,{ownerState:Ne,...Ie})=>v.jsx(BU,{as:c,className:Mn(I.root,o,{entered:I.entered,exited:!f&&H==="0px"&&I.hidden}[ce]),style:{[W?"minWidth":"minHeight"]:H,...x},ref:me,ownerState:{...L,state:ce},...Ie,children:v.jsx(jU,{ownerState:{...L,state:ce},className:I.wrapper,ref:Q,children:v.jsx(UU,{ownerState:{...L,state:ce},className:I.wrapperInner,children:a})})})})});Cd&&(Cd.muiSupportAuto=!0);function Cm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C1={exports:{}},D1,rC;function HU(){if(rC)return D1;rC=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return D1=e,D1}var k1,aC;function zU(){if(aC)return k1;aC=1;var e=HU();function t(){}function n(){}return n.resetWarningCache=t,k1=function(){function r(l,c,d,f,p,m){if(m!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},k1}var iC;function GU(){return iC||(iC=1,C1.exports=zU()()),C1.exports}var VU=GU();const oC=Cm(VU);function SE(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:a}=js();return r({children:t,itemId:n,instance:a})}SE.propTypes={children:oC.node,itemId:oC.string.isRequired};const qU=w.createContext(void 0);function YU(){return w.useContext(qU)}function QU(e){return Fo("PrivateSwitchBase",e)}Bo("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);function ti(e,t,n){return typeof e=="function"?e(t,n):e}function sC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function pR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const b=Mn(n?.className,o,a?.className,r?.className),_={...n?.style,...a?.style,...r?.style},A={...n,...a,...r};return b.length>0&&(A.className=b),Object.keys(_).length>0&&(A.style=_),{props:A,internalRef:void 0}}const l=ha({...a,...r}),c=sC(r),d=sC(a),f=t(l),p=Mn(f?.className,n?.className,o,a?.className,r?.className),m={...f?.style,...n?.style,...a?.style,...r?.style},y={...f,...n,...d,...c};return p.length>0&&(y.className=p),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:f.ref}}function KU(e){return typeof e=="string"}function mR(e,t,n){return e===void 0||KU(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Yy(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:o,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=t,{component:f,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...y}=o,b=p[e]||r,_=ti(m[e],a),{props:{component:A,...C},internalRef:x}=pR({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:_}),D=oi(x,_?.ref,t.ref),S=e==="root"?A||f:A,M=mR(b,{...e==="root"&&!f&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...C,...S&&!c&&{as:S},...S&&c&&{component:S},ref:D},a);return[b,M]}function WU(e){const{controlled:t,default:n}=e,{current:r}=w.useRef(t!==void 0),[a,o]=w.useState(n),l=r?t:a,c=w.useCallback(d=>{r||o(d)},[]);return[l,c]}function XU(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:o,rippleSize:l,in:c,onExited:d,timeout:f}=e,[p,m]=w.useState(!1),y=Mn(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:l,height:l,top:-(l/2)+o,left:-(l/2)+a},_=Mn(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&m(!0),w.useEffect(()=>{if(!c&&d!=null){const A=setTimeout(d,f);return()=>{clearTimeout(A)}}},[d,c,f]),v.jsx("span",{className:y,style:b,children:v.jsx("span",{className:_})})}const ga=Bo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function ZU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CE(e,t){var n=function(a){return t&&w.isValidElement(a)?t(a):a},r=Object.create(null);return e&&w.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function JU(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),a=[];for(var o in e)o in t?a.length&&(r[o]=a,a=[]):a.push(o);var l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var f=r[d][l];c[r[d][l]]=n(f)}c[d]=n(d)}for(l=0;l<a.length;l++)c[a[l]]=n(a[l]);return c}function bs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function eH(e,t){return CE(e.children,function(n){return w.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:bs(n,"appear",e),enter:bs(n,"enter",e),exit:bs(n,"exit",e)})})}function tH(e,t,n){var r=CE(e.children),a=JU(t,r);return Object.keys(a).forEach(function(o){var l=a[o];if(w.isValidElement(l)){var c=o in t,d=o in r,f=t[o],p=w.isValidElement(f)&&!f.props.in;d&&(!c||p)?a[o]=w.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:bs(l,"exit",e),enter:bs(l,"enter",e)}):!d&&c&&!p?a[o]=w.cloneElement(l,{in:!1}):d&&c&&w.isValidElement(f)&&(a[o]=w.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:bs(l,"exit",e),enter:bs(l,"enter",e)}))}}),a}var nH=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rH={component:"div",childFactory:function(e){return e}},DE=function(e){uR(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var l=o.handleExited.bind(ZU(o));return o.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,a){var o=a.children,l=a.handleExited,c=a.firstRender;return{children:c?eH(r,l):tH(r,o,l),firstRender:!1}},n.handleExited=function(r,a){var o=CE(this.props.children);r.key in o||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(l){var c=Ae({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,a=r.component,o=r.childFactory,l=cr(r,["component","childFactory"]),c=this.state.contextValue,d=nH(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?Le.createElement(Mp.Provider,{value:c},d):Le.createElement(Mp.Provider,{value:c},Le.createElement(a,l,d))},t}(Le.Component);DE.propTypes={};DE.defaultProps=rH;const Qy=550,aH=80,iH=yb`
|
|
88
88
|
0% {
|
|
@@ -160,7 +160,7 @@ export default theme;`}const TL=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[
|
|
|
160
160
|
`,uH=w.forwardRef(function(e,t){const n=rc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:a={},className:o,...l}=n,[c,d]=w.useState([]),f=w.useRef(0),p=w.useRef(null);w.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=w.useRef(!1),y=hR(),b=w.useRef(null),_=w.useRef(null),A=w.useCallback(S=>{const{pulsate:M,rippleX:L,rippleY:I,rippleSize:V,cb:te}=S;d(Q=>[...Q,v.jsx(cH,{classes:{ripple:Mn(a.ripple,ga.ripple),rippleVisible:Mn(a.rippleVisible,ga.rippleVisible),ripplePulsate:Mn(a.ripplePulsate,ga.ripplePulsate),child:Mn(a.child,ga.child),childLeaving:Mn(a.childLeaving,ga.childLeaving),childPulsate:Mn(a.childPulsate,ga.childPulsate)},timeout:Qy,pulsate:M,rippleX:L,rippleY:I,rippleSize:V},f.current)]),f.current+=1,p.current=te},[a]),C=w.useCallback((S={},M={},L=()=>{})=>{const{pulsate:I=!1,center:V=r||M.pulsate,fakeElement:te=!1}=M;if(S?.type==="mousedown"&&m.current){m.current=!1;return}S?.type==="touchstart"&&(m.current=!0);const Q=te?null:_.current,k=Q?Q.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,W,K;if(V||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)H=Math.round(k.width/2),W=Math.round(k.height/2);else{const{clientX:re,clientY:me}=S.touches&&S.touches.length>0?S.touches[0]:S;H=Math.round(re-k.left),W=Math.round(me-k.top)}if(V)K=Math.sqrt((2*k.width**2+k.height**2)/3),K%2===0&&(K+=1);else{const re=Math.max(Math.abs((Q?Q.clientWidth:0)-H),H)*2+2,me=Math.max(Math.abs((Q?Q.clientHeight:0)-W),W)*2+2;K=Math.sqrt(re**2+me**2)}S?.touches?b.current===null&&(b.current=()=>{A({pulsate:I,rippleX:H,rippleY:W,rippleSize:K,cb:L})},y.start(aH,()=>{b.current&&(b.current(),b.current=null)})):A({pulsate:I,rippleX:H,rippleY:W,rippleSize:K,cb:L})},[r,A,y]),x=w.useCallback(()=>{C({},{pulsate:!0})},[C]),D=w.useCallback((S,M)=>{if(y.clear(),S?.type==="touchend"&&b.current){b.current(),b.current=null,y.start(0,()=>{D(S,M)});return}b.current=null,d(L=>L.length>0?L.slice(1):L),p.current=M},[y]);return w.useImperativeHandle(t,()=>({pulsate:x,start:C,stop:D}),[x,C,D]),v.jsx(lH,{className:Mn(ga.root,a.root,o),ref:_,...l,children:v.jsx(DE,{component:null,exit:!0,children:c})})});function dH(e){return Fo("MuiButtonBase",e)}const fH=Bo("MuiButtonBase",["root","disabled","focusVisible"]);let hH=class Ky{static create(){return new Ky}static use(){const t=dR(Ky.create).current,[n,r]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=r,w.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=mH(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function pH(){return hH.use()}function mH(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}const gH=typeof window<"u"?w.useLayoutEffect:w.useEffect;function ii(e){const t=w.useRef(e);return gH(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}function lC(e){try{return e.matches(":focus-visible")}catch{}return!1}const yH=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,o=Fs({root:["root",t&&"disabled",n&&"focusVisible"]},dH,a);return n&&r&&(o.root+=` ${r}`),o},bH=an("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),EH=w.forwardRef(function(e,t){const n=rc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:a=!1,children:o,className:l,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:b="a",onBlur:_,onClick:A,onContextMenu:C,onDragLeave:x,onFocus:D,onFocusVisible:S,onKeyDown:M,onKeyUp:L,onMouseDown:I,onMouseLeave:V,onMouseUp:te,onTouchEnd:Q,onTouchMove:k,onTouchStart:H,tabIndex:W=0,TouchRippleProps:K,touchRippleRef:re,type:me,...G}=n,oe=w.useRef(null),le=pH(),se=oi(le.ref,re),[P,Ce]=w.useState(!1);d&&P&&Ce(!1),w.useImperativeHandle(r,()=>({focusVisible:()=>{Ce(!0),oe.current.focus()}}),[]);const he=le.shouldMount&&!f&&!d;w.useEffect(()=>{P&&m&&!f&&le.pulsate()},[f,m,P,le]);const O=wi(le,"start",I,p),ce=wi(le,"stop",C,p),Ne=wi(le,"stop",x,p),Ie=wi(le,"stop",te,p),Me=wi(le,"stop",Ye=>{P&&Ye.preventDefault(),V&&V(Ye)},p),Oe=wi(le,"start",H,p),st=wi(le,"stop",Q,p),dt=wi(le,"stop",k,p),Ue=wi(le,"stop",Ye=>{lC(Ye.target)||Ce(!1),_&&_(Ye)},!1),Zt=ii(Ye=>{oe.current||(oe.current=Ye.currentTarget),lC(Ye.target)&&(Ce(!0),S&&S(Ye)),D&&D(Ye)}),wt=()=>{const Ye=oe.current;return c&&c!=="button"&&!(Ye.tagName==="A"&&Ye.href)},Pe=ii(Ye=>{m&&!Ye.repeat&&P&&Ye.key===" "&&le.stop(Ye,()=>{le.start(Ye)}),Ye.target===Ye.currentTarget&&wt()&&Ye.key===" "&&Ye.preventDefault(),M&&M(Ye),Ye.target===Ye.currentTarget&&wt()&&Ye.key==="Enter"&&!d&&(Ye.preventDefault(),A&&A(Ye))}),rr=ii(Ye=>{m&&Ye.key===" "&&P&&!Ye.defaultPrevented&&le.stop(Ye,()=>{le.pulsate(Ye)}),L&&L(Ye),A&&Ye.target===Ye.currentTarget&&wt()&&Ye.key===" "&&!Ye.defaultPrevented&&A(Ye)});let dn=c;dn==="button"&&(G.href||G.to)&&(dn=b);const Ve={};dn==="button"?(Ve.type=me===void 0?"button":me,Ve.disabled=d):(!G.href&&!G.to&&(Ve.role="button"),d&&(Ve["aria-disabled"]=d));const Zn=oi(t,oe),rn={...n,centerRipple:a,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:W,focusVisible:P},on=yH(rn);return v.jsxs(bH,{as:dn,className:Mn(on.root,l),ownerState:rn,onBlur:Ue,onClick:A,onContextMenu:ce,onFocus:Zt,onKeyDown:Pe,onKeyUp:rr,onMouseDown:O,onMouseLeave:Me,onMouseUp:Ie,onDragLeave:Ne,onTouchEnd:st,onTouchMove:dt,onTouchStart:Oe,ref:Zn,tabIndex:d?-1:W,type:me,...Ve,...G,children:[o,he?v.jsx(uH,{ref:se,center:a,...K}):null]})});function wi(e,t,n,r=!1){return ii(a=>(n&&n(a),r||e[t](a),!0))}const vH=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,o={root:["root",n&&"checked",r&&"disabled",a&&`edge${La(a)}`],input:["input"]};return Fs(o,QU,t)},TH=an(EH,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),_H=an("input",{name:"MuiSwitchBase",shouldForwardProp:Hb})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),xH=w.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:p,inputProps:m,inputRef:y,name:b,onBlur:_,onChange:A,onFocus:C,readOnly:x,required:D=!1,tabIndex:S,type:M,value:L,slots:I={},slotProps:V={},...te}=e,[Q,k]=WU({controlled:r,default:!!o}),H=YU(),W=ce=>{C&&C(ce),H&&H.onFocus&&H.onFocus(ce)},K=ce=>{_&&_(ce),H&&H.onBlur&&H.onBlur(ce)},re=ce=>{if(ce.nativeEvent.defaultPrevented)return;const Ne=ce.target.checked;k(Ne),A&&A(ce,Ne)};let me=l;H&&typeof me>"u"&&(me=H.disabled);const G=M==="checkbox"||M==="radio",oe={...e,checked:Q,disabled:me,disableFocusRipple:c,edge:d},le=vH(oe),se={slots:I,slotProps:{input:m,...V}},[P,Ce]=Yy("root",{ref:t,elementType:TH,className:le.root,shouldForwardComponentProp:!0,externalForwardedProps:{...se,component:"span",...te},getSlotProps:ce=>({...ce,onFocus:Ne=>{ce.onFocus?.(Ne),W(Ne)},onBlur:Ne=>{ce.onBlur?.(Ne),K(Ne)}}),ownerState:oe,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:me,role:void 0,tabIndex:null}}),[he,O]=Yy("input",{ref:y,elementType:_H,className:le.input,externalForwardedProps:se,getSlotProps:ce=>({...ce,onChange:Ne=>{ce.onChange?.(Ne),re(Ne)}}),ownerState:oe,additionalProps:{autoFocus:n,checked:r,defaultChecked:o,disabled:me,id:G?p:void 0,name:b,readOnly:x,required:D,tabIndex:S,type:M,...M==="checkbox"&&L===void 0?{}:{value:L}}});return v.jsxs(P,{...Ce,children:[v.jsx(he,{...O}),Q?a:f]})}),AH=nn(v.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),SH=nn(v.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),CH=nn(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function DH(e){return Fo("MuiCheckbox",e)}const R1=Bo("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);function kH(e){return typeof e.main=="string"}function RH(e,t=[]){if(!kH(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function cC(e=[]){return([,t])=>t&&RH(t,e)}function IH(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function wH(e,t){if(!e)return t;function n(l,c){const d={};return Object.keys(c).forEach(f=>{IH(f,c[f])&&typeof l[f]=="function"&&(d[f]=(...p)=>{l[f](...p),c[f](...p)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...c}):e,f=Mn(l?.className,c?.className,d?.className),p=n(d,c);return{...c,...d,...p,...!!f&&{className:f},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,a=n(e,r),o=Mn(r?.className,e?.className);return{...t,...e,...a,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const NH=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,o={root:["root",n&&"indeterminate",`color${La(r)}`,`size${La(a)}`]},l=Fs(o,DH,t);return{...t,...l}},OH=an(xH,{shouldForwardProp:e=>Hb(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${La(n.size)}`],n.color!=="default"&&t[`color${La(n.color)}`]]}})(Ib(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:oy(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(cC()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:oy(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(cC()).map(([t])=>({props:{color:t},style:{[`&.${R1.checked}, &.${R1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${R1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),LH=v.jsx(SH,{}),MH=v.jsx(AH,{}),PH=v.jsx(CH,{}),gR=w.forwardRef(function(e,t){const n=rc({props:e,name:"MuiCheckbox"}),{checkedIcon:r=LH,color:a="primary",icon:o=MH,indeterminate:l=!1,indeterminateIcon:c=PH,inputProps:d,size:f="medium",disableRipple:p=!1,className:m,slots:y={},slotProps:b={},..._}=n,A=l?c:o,C=l?c:r,x={...n,disableRipple:p,color:a,indeterminate:l,size:f},D=NH(x),S=b.input??d,[M,L]=Yy("root",{ref:t,elementType:OH,className:Mn(D.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:b,..._},ownerState:x,additionalProps:{type:"checkbox",icon:w.cloneElement(A,{fontSize:A.props.fontSize??f}),checkedIcon:w.cloneElement(C,{fontSize:C.props.fontSize??f}),disableRipple:p,slots:y,slotProps:{input:wH(typeof S=="function"?S(x):S,{"data-indeterminate":l})}}});return v.jsx(M,{...L,classes:D})}),$H=["visible"],FH=an("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),BH=an("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>Ro(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),jH=an("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>Ro(e)&&e!=="editable"})(({theme:e})=>Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),UH=an("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});an(Cd,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ro(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});an(w.forwardRef((e,t)=>{const{visible:n}=e,r=cr(e,$H);return n?v.jsx(gR,Ae({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function Es(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,l=a?{}:ti(n,r),{props:c,internalRef:d}=pR({...o,externalSlotProps:l}),f=oi(d,l?.ref,e.additionalProps?.ref);return mR(t,{...c,ref:f},r)}const yR=nn(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),bR=nn(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function HH(e){const{slots:t,slotProps:n,status:r}=e,a=js(),o=Ae({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??yR,collapseIcon:a.icons.slots.collapseIcon??bR}),l=a.icons.slotProps;let c;t?.icon?c="icon":r.expandable?r.expanded?c="collapseIcon":c="expandIcon":c="endIcon";const d=t?.[c]??o[c],f=Es({elementType:d,externalSlotProps:p=>Ae({},ti(l[c],p),ti(n?.[c],p)),ownerState:{}});return d?v.jsx(d,Ae({},f)):null}function zH(e){return Fo("MuiRichTreeView",e)}Bo("MuiRichTreeView",["root"]);function GH(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:up(t.components[n].defaultProps,r)}function VH(e){return Object.keys(e).length===0}function qH(e=null){const t=w.useContext(g5);return!t||VH(t)?e:t}const YH=Bb();function QH(e=YH){return qH(e)}function KH({props:e,name:t,defaultTheme:n,themeId:r}){let a=QH(n);return a=a[r]||a,GH({theme:a,name:t,props:e})}function WH({props:e,name:t}){return KH({props:e,name:t,defaultTheme:jb,themeId:Ub})}function ER(e){return WH}const XH=(e,t,n)=>{e.$$publishEvent(t,n)},Bl="__TREE_VIEW_ROOT_PARENT_ID__",ZH=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},JH=["children"],vR=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},o={},l={[Bl]:[]},c=(f,p,m)=>{const y=r?r(f):f.id;if(y==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(f)].join(`
|
|
161
161
|
`));if(a[y]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${y}"`].join(`
|
|
162
162
|
`));const b=n?n(f):f.label;if(b==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(f)].join(`
|
|
163
|
-
`));a[y]={id:y,label:b,parentId:m,idAttribute:void 0,expandable:!!f.children?.length,disabled:t?t(f):!1,depth:p},o[y]=f;const _=m??Bl;l[_]||(l[_]=[]),l[_].push(y),f.children?.forEach(A=>c(A,p+1,y))};e.forEach(f=>c(f,0,null));const d={};return Object.keys(l).forEach(f=>{d[f]=ZH(l[f])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:l,itemChildrenIndexes:d}},Qd=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=w.useCallback(C=>n.items.itemMetaMap[C],[n.items.itemMetaMap]),l=w.useCallback(C=>n.items.itemMap[C],[n.items.itemMap]),c=w.useCallback(()=>{const C=x=>{const D=n.items.itemMap[x],S=cr(D,JH),M=n.items.itemOrderedChildrenIds[x];return M&&(S.children=M.map(C)),S};return n.items.itemOrderedChildrenIds[Bl].map(C)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),d=w.useCallback(C=>{if(C==null)return!1;let x=e.getItemMeta(C);if(!x)return!1;if(x.disabled)return!0;for(;x.parentId!=null;)if(x=e.getItemMeta(x.parentId),x.disabled)return!0;return!1},[e]),f=w.useCallback(C=>{const x=e.getItemMeta(C).parentId??Bl;return n.items.itemChildrenIndexes[x][C]},[e,n.items.itemChildrenIndexes]),p=w.useCallback(C=>n.items.itemOrderedChildrenIds[C??Bl]??[],[n.items.itemOrderedChildrenIds]),m=C=>{const x=e.getItemMeta(C);return x==null?null:document.getElementById(cE({treeId:n.id.treeId,itemId:C,id:x.idAttribute}))},y=C=>t.disabledItemsFocusable?!0:!e.isItemDisabled(C),b=w.useRef(!1),_=w.useCallback(()=>{b.current=!0},[]),A=w.useCallback(()=>b.current,[]);return w.useEffect(()=>{e.areItemUpdatesPrevented()||r(C=>{const x=vR({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(C.items.itemMetaMap).forEach(D=>{x.itemMetaMap[D.id]||XH(e,"removeItem",{id:D.id})}),Ae({},C,{items:x})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:l,getItemDOMElement:m,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:o,getItem:l,getItemTree:c,getItemsToRender:()=>{const C=x=>{const D=n.items.itemMetaMap[x];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[x]?.map(C)}};return n.items.itemOrderedChildrenIds[Bl].map(C)},getItemIndex:f,getItemDOMElement:m,getItemOrderedChildrenIds:p,isItemDisabled:d,isItemNavigable:y,preventItemUpdates:_,areItemUpdatesPrevented:A},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Qd.getInitialState=e=>({items:vR({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Qd.getDefaultizedParams=({params:e})=>Ae({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Qd.wrapRoot=({children:e,instance:t})=>v.jsx(uE.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Qd.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Dm=({instance:e,params:t,models:n})=>{const r=w.useMemo(()=>{const m=new Map;return n.expandedItems.value.forEach(y=>{m.set(y,!0)}),m},[n.expandedItems.value]),a=(m,y)=>{t.onExpandedItemsChange?.(m,y),n.expandedItems.setControlledValue(y)},o=w.useCallback(m=>r.has(m),[r]),l=w.useCallback(m=>!!e.getItemMeta(m)?.expandable,[e]),c=ii((m,y)=>{const b=e.isItemExpanded(y);e.setItemExpansion(m,y,!b)}),d=ii((m,y,b)=>{if(e.isItemExpanded(y)===b)return;let _;b?_=[y].concat(n.expandedItems.value):_=n.expandedItems.value.filter(A=>A!==y),t.onItemExpansionToggle&&t.onItemExpansionToggle(m,y,b),a(m,_)}),f=(m,y)=>{const b=e.getItemMeta(y),_=e.getItemOrderedChildrenIds(b.parentId).filter(C=>e.isItemExpandable(C)&&!e.isItemExpanded(C)),A=n.expandedItems.value.concat(_);_.length>0&&(t.onItemExpansionToggle&&_.forEach(C=>{t.onItemExpansionToggle(m,C,!0)}),a(m,A))},p=w.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:d},instance:{isItemExpanded:o,isItemExpandable:l,setItemExpansion:d,toggleItemExpansion:c,expandAllSiblings:f},contextValue:{expansion:{expansionTrigger:p}}}};Dm.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const ez=[];Dm.getDefaultizedParams=({params:e})=>Ae({},e,{defaultExpandedItems:e.defaultExpandedItems??ez});Dm.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const Wh=e=>Array.isArray(e)?e:e!=null?[e]:[],I1=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},km=({instance:e,params:t,models:n})=>{const r=w.useRef(null),a=w.useRef({}),o=w.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(m=>{p.set(m,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),l=(p,m)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const y=m.filter(_=>!e.isItemSelected(_)),b=n.selectedItems.value.filter(_=>!m.includes(_));y.forEach(_=>{t.onItemSelectionToggle(p,_,!0)}),b.forEach(_=>{t.onItemSelectionToggle(p,_,!1)})}else m!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),m!=null&&t.onItemSelectionToggle(p,m,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,m),n.selectedItems.setControlledValue(m)},c=p=>o.has(p),d=({event:p,itemId:m,keepExistingSelection:y=!1,shouldBeSelected:b})=>{if(t.disableSelection)return;let _;if(y){const A=Wh(n.selectedItems.value),C=e.isItemSelected(m);C&&(b===!1||b==null)?_=A.filter(x=>x!==m):!C&&(b===!0||b==null)?_=[m].concat(A):_=A}else b===!1||b==null&&e.isItemSelected(m)?_=t.multiSelect?[]:null:_=t.multiSelect?[m]:m;l(p,_),r.current=m,a.current={}},f=(p,[m,y])=>{if(t.disableSelection||!t.multiSelect)return;let b=Wh(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(b=b.filter(x=>!a.current[x]));const _=I1(b),A=ej(e,m,y),C=A.filter(x=>!_[x]);b=b.concat(C),l(p,b),a.current=I1(A)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:d},instance:{isItemSelected:c,selectItem:d,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const m=tj(e);l(p,m),a.current=I1(m)},expandSelectionRange:(p,m)=>{if(r.current!=null){const[y,b]=D3(e,m,r.current);f(p,[y,b])}},selectRangeFromStartToItem:(p,m)=>{f(p,[gd(e),m])},selectRangeFromItemToEnd:(p,m)=>{f(p,[m,C3(e)])},selectItemFromArrowNavigation:(p,m,y)=>{if(t.disableSelection||!t.multiSelect)return;let b=Wh(n.selectedItems.value).slice();Object.keys(a.current).length===0?(b.push(y),a.current={[m]:!0,[y]:!0}):(a.current[m]||(a.current={}),a.current[y]?(b=b.filter(_=>_!==m),delete a.current[m]):(b.push(y),a.current[y]=!0)),l(p,b)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};km.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const tz=[];km.getDefaultizedParams=({params:e})=>Ae({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?tz:null)});km.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let nz=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},rz=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},az=class{};function iz(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new rz:new nz);const[o]=w.useState(new az),l=w.useRef(null),c=w.useRef(void 0);c.current=a;const d=w.useRef(null);if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f),t+=1,d.current={cleanupToken:t},e.registry.register(o,()=>{l.current?.(),l.current=null,d.current=null},d.current)}else!c.current&&l.current&&(l.current(),l.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));w.useEffect(()=>{if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{l.current?.(),l.current=null}},[n,r])}}const oz={registry:null},sz=iz(oz),TR=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?TR(t.shadowRoot):t:null};function lz(e){return e&&e.ownerDocument||document}const cz=(e,t)=>{let n=Wh(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=gd(e)),n},kE=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const l=cz(e,a.selectedItems.value),c=ii(C=>{const x=typeof C=="function"?C(n.focusedItemId):C;n.focusedItemId!==x&&r(D=>Ae({},D,{focusedItemId:x}))}),d=w.useCallback(()=>!!o.current&&o.current.contains(TR(lz(o.current))),[o]),f=w.useCallback(C=>n.focusedItemId===C&&d(),[n.focusedItemId,d]),p=C=>{const x=e.getItemMeta(C);return x&&(x.parentId==null||e.isItemExpanded(x.parentId))},m=(C,x)=>{const D=e.getItemDOMElement(x);D&&D.focus(),c(x),t.onItemFocus&&t.onItemFocus(C,x)},y=ii((C,x)=>{p(x)&&m(C,x)}),b=ii(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const C=e.getItemDOMElement(n.focusedItemId);C&&C.blur()}c(null)}}),_=C=>C===l;sz(e,"removeItem",({id:C})=>{n.focusedItemId===C&&m(null,l)});const A=C=>x=>{C.onFocus?.(x),!x.defaultMuiPrevented&&x.target===x.currentTarget&&m(x,l)};return{getRootProps:C=>({onFocus:A(C)}),publicAPI:{focusItem:y},instance:{isItemFocused:f,canItemBeTabbed:_,focusItem:y,removeFocusedItem:b}}};kE.getInitialState=()=>({focusedItemId:null});kE.params={onItemFocus:!0};const uz=w.createContext(),dz=()=>w.useContext(uz)??!1;function fz(e){return!!e&&e.length===1&&!!e.match(/\S/)}const _R=({instance:e,params:t,state:n})=>{const r=dz(),a=w.useRef({}),o=ii(f=>{a.current=f(a.current)});w.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const f={},p=m=>{f[m.id]=m.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=f},[n.items.itemMetaMap,t.getItemId,e]);const l=(f,p)=>{const m=p.toLowerCase(),y=C=>{const x=Yh(e,C);return x===null?gd(e):x};let b=null,_=y(f);const A={};for(;b==null&&!A[_];)a.current[_]===m?b=_:(A[_]=!0,_=y(_));return b},c=f=>!t.disableSelection&&!e.isItemDisabled(f),d=f=>!e.isItemDisabled(f)&&e.isItemExpandable(f);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(f,p)=>{if(f.defaultMuiPrevented||f.altKey||yd(f.target,f.currentTarget))return;const m=f.ctrlKey||f.metaKey,y=f.key;switch(!0){case(y===" "&&c(p)):{f.preventDefault(),t.multiSelect&&f.shiftKey?e.expandSelectionRange(f,p):e.selectItem({event:f,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case y==="Enter":{As(e,_a)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):d(p)?(e.toggleItemExpansion(f,p),f.preventDefault()):c(p)&&(t.multiSelect?(f.preventDefault(),e.selectItem({event:f,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:f,itemId:p}),f.preventDefault()));break}case y==="ArrowDown":{const b=Yh(e,p);b&&(f.preventDefault(),e.focusItem(f,b),t.multiSelect&&f.shiftKey&&c(b)&&e.selectItemFromArrowNavigation(f,p,b));break}case y==="ArrowUp":{const b=S3(e,p);b&&(f.preventDefault(),e.focusItem(f,b),t.multiSelect&&f.shiftKey&&c(b)&&e.selectItemFromArrowNavigation(f,p,b));break}case(y==="ArrowRight"&&!r||y==="ArrowLeft"&&r):{if(m)return;if(e.isItemExpanded(p)){const b=Yh(e,p);b&&(e.focusItem(f,b),f.preventDefault())}else d(p)&&(e.toggleItemExpansion(f,p),f.preventDefault());break}case(y==="ArrowLeft"&&!r||y==="ArrowRight"&&r):{if(m)return;if(d(p)&&e.isItemExpanded(p))e.toggleItemExpansion(f,p),f.preventDefault();else{const b=e.getItemMeta(p).parentId;b&&(e.focusItem(f,b),f.preventDefault())}break}case y==="Home":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromStartToItem(f,p):e.focusItem(f,gd(e)),f.preventDefault();break}case y==="End":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromItemToEnd(f,p):e.focusItem(f,C3(e)),f.preventDefault();break}case y==="*":{e.expandAllSiblings(f,p),f.preventDefault();break}case(String.fromCharCode(f.keyCode)==="A"&&m&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(f),f.preventDefault();break}case(!m&&!f.shiftKey&&fz(y)):{const b=l(p,y);b!=null&&(e.focusItem(f,b),f.preventDefault());break}}}}}};_R.params={};const xR=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});xR.params={};const hz=[Qd,Dm,km,kE,_R,xR,_a];function AR(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:l}}=js(),c=t.isItemExpandable(e),d=t.isItemExpanded(e),f=t.isItemFocused(e),p=t.isItemSelected(e),m=t.isItemDisabled(e),y=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,b=t.isItemEditable?t.isItemEditable(e):!1,_=S=>{if(!m){f||t.focusItem(S,e);const M=r&&(S.shiftKey||S.ctrlKey||S.metaKey);c&&!(M&&t.isItemExpanded(e))&&t.toggleItemExpansion(S,e)}},A=S=>{m||(!f&&!y&&t.focusItem(S,e),r&&(S.shiftKey||S.ctrlKey||S.metaKey)?S.shiftKey?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:!0}):t.selectItem({event:S,itemId:e,shouldBeSelected:!0}))},C=S=>{if(o||m)return;const M=S.nativeEvent.shiftKey;r&&M?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:r,shouldBeSelected:S.target.checked})},x=S=>{(S.shiftKey||S.ctrlKey||S.metaKey||m)&&S.preventDefault()},D=()=>{As(t,_a)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:m,expanded:d,selected:p,focused:f,editable:b,editing:y,disableSelection:o,checkboxSelection:a,handleExpansion:_,handleSelection:A,handleCheckboxSelection:C,handleContentClick:n,preventSelection:x,expansionTrigger:l,toggleItemEditing:D,handleSaveItemLabel:(S,M)=>{As(t,_a)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,M),D(),t.focusItem(S,e))},handleCancelItemLabelEditing:S=>{As(t,_a)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(S,e))}}}const pz=an("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ae({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),mz=an("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>y5(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:$i(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function gz(e){return e.action==null?null:v.jsx(mz,Ae({},e))}const yz=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],SR=w.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:o,icon:l,label:c,itemId:d,onClick:f,onMouseDown:p,dragAndDropOverlayProps:m,labelInputProps:y}=e,b=cr(e,yz),{disabled:_,expanded:A,selected:C,focused:x,editing:D,editable:S,disableSelection:M,checkboxSelection:L,handleExpansion:I,handleSelection:V,handleCheckboxSelection:te,handleContentClick:Q,preventSelection:k,expansionTrigger:H,toggleItemEditing:W}=AR(d),K=l||o||a,re=w.useRef(null),me=le=>{k(le),p&&p(le)},G=le=>{Q?.(le,d),!re.current?.contains(le.target)&&(H==="content"&&I(le),L||V(le),f&&f(le))},oe=le=>{le.defaultMuiPrevented||W()};return v.jsxs("div",Ae({},b,{className:Mn(n.root,r,A&&n.expanded,C&&n.selected,x&&n.focused,_&&n.disabled,D&&n.editing,S&&n.editable),onClick:G,onMouseDown:me,ref:t,children:[v.jsx("div",{className:n.iconContainer,children:K}),L&&v.jsx(gR,{className:n.checkbox,checked:C,onChange:te,disabled:_||M,ref:re,tabIndex:-1}),D?v.jsx(pz,Ae({},y,{className:n.labelInput})):v.jsx("div",Ae({className:n.label},S&&{onDoubleClick:oe},{children:c})),m&&v.jsx(gz,Ae({},m))]}))});function bz(e){return Fo("MuiTreeItem",e)}const Ni=Bo("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Ez=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],vz=["ownerState"],Tz=["ownerState"],_z=["ownerState"],xz=ER(),Az=e=>{const{classes:t}=e;return Fs({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},bz,t)},Sz=an("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Cz=an(SR,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Ni.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Ni.label}`]:t.label}],shouldForwardProp:e=>Ro(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ni.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Ni.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ni.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ni.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Ni.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Ni.label}`]:Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Ni.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Dz=an(Cd,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ro(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),kz=w.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:o},selection:{disableSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f}=js(),p=w.useContext(uE),m=xz({props:e,name:"MuiTreeItem"}),{children:y,className:b,slots:_,slotProps:A,ContentComponent:C=SR,ContentProps:x,itemId:D,id:S,label:M,onClick:L,onMouseDown:I,onBlur:V,onKeyDown:te}=m,Q=cr(m,Ez),{expanded:k,focused:H,selected:W,disabled:K,editing:re,handleExpansion:me,handleCancelItemLabelEditing:G,handleSaveItemLabel:oe}=AR(D),{contentRef:le,rootRef:se,propsEnhancers:P}=r(m),Ce=w.useRef(null),he=w.useRef(null),O=oi(t,se,Ce),ce=oi(x?.ref,le,he),Ne={expandIcon:_?.expandIcon??n.slots.expandIcon??yR,collapseIcon:_?.collapseIcon??n.slots.collapseIcon??bR,endIcon:_?.endIcon??n.slots.endIcon,icon:_?.icon,groupTransition:_?.groupTransition},Ie=Te=>Array.isArray(Te)?Te.length>0&&Te.some(Ie):!!Te,Me=Ie(y),Oe=Ae({},m,{expanded:k,focused:H,selected:W,disabled:K,indentationAtItemLevel:o}),st=Az(Oe),dt=Ne.groupTransition??void 0,Ue=Es({elementType:dt,ownerState:{},externalSlotProps:A?.groupTransition,additionalProps:Ae({unmountOnExit:!0,in:k,component:"ul",role:"group"},o?{indentationAtItemLevel:!0}:{}),className:st.groupTransition}),Zt=Te=>{c==="iconContainer"&&me(Te)},wt=k?Ne.collapseIcon:Ne.expandIcon,Pe=Es({elementType:wt,ownerState:{},externalSlotProps:Te=>k?Ae({},ti(n.slotProps.collapseIcon,Te),ti(A?.collapseIcon,Te)):Ae({},ti(n.slotProps.expandIcon,Te),ti(A?.expandIcon,Te)),additionalProps:{onClick:Zt}}),rr=cr(Pe,vz),dn=Me&&wt?v.jsx(wt,Ae({},rr)):null,Ve=Me?void 0:Ne.endIcon,Zn=Es({elementType:Ve,ownerState:{},externalSlotProps:Te=>Me?{}:Ae({},ti(n.slotProps.endIcon,Te),ti(A?.endIcon,Te))}),rn=cr(Zn,Tz),on=Ve?v.jsx(Ve,Ae({},rn)):null,Ye=Ne.icon,Ct=Es({elementType:Ye,ownerState:{},externalSlotProps:A?.icon}),xr=cr(Ct,_z),Ba=Ye?v.jsx(Ye,Ae({},xr)):null;let Rt;W?Rt=!0:l||K?Rt=void 0:Rt=!1;function ue(Te){!H&&(!K||a)&&Te.currentTarget===Te.target&&f.focusItem(Te,D)}function ve(Te){V?.(Te),!(re||Te.relatedTarget&&yd(Te.relatedTarget,Ce.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&yd(Te.target,Ce.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&f.removeFocusedItem()}const Be=Te=>{te?.(Te),Te.target?.dataset?.element!=="labelInput"&&f.handleItemKeyDown(Te,D)},rt=cE({itemId:D,treeId:d,id:S}),Dt=f.canItemBeTabbed(D)?0:-1,Nt={rootRefObject:Ce,contentRefObject:he,interactions:{handleSaveItemLabel:oe,handleCancelItemLabelEditing:G}},zn=P.root?.(Ae({},Nt,{externalEventHandlers:ha(Q)}))??{},gn=P.content?.(Ae({},Nt,{externalEventHandlers:ha(x)}))??{},An=P.dragAndDropOverlay?.(Ae({},Nt,{externalEventHandlers:{}}))??{},_e=P.labelInput?.(Ae({},Nt,{externalEventHandlers:{}}))??{};return v.jsx(SE,{itemId:D,children:v.jsxs(Sz,Ae({className:Mn(st.root,b),role:"treeitem","aria-expanded":Me?k:void 0,"aria-selected":Rt,"aria-disabled":K||void 0,id:rt,tabIndex:Dt},Q,{ownerState:Oe,onFocus:ue,onBlur:ve,onKeyDown:Be,ref:O,style:o?Ae({},Q.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):Q.style},zn,{children:[v.jsx(Cz,Ae({as:C,classes:{root:st.content,expanded:st.expanded,selected:st.selected,focused:st.focused,disabled:st.disabled,editable:st.editable,editing:st.editing,iconContainer:st.iconContainer,label:st.label,labelInput:st.labelInput,checkbox:st.checkbox},label:M,itemId:D,onClick:L,onMouseDown:I,icon:Ba,expansionIcon:dn,displayIcon:on,ownerState:Oe},x,gn,An.action==null?{}:{dragAndDropOverlayProps:An},_e.value==null?{}:{labelInputProps:_e},{ref:ce})),y&&v.jsx(Dz,Ae({as:dt},Ue,{children:y}))]}))})}),Rz=["ownerState"];function Iz({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const l=e?.item??kz,c=Es({elementType:l,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),d=cr(c,Rz),f=w.useMemo(()=>o?v.jsx(CR,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return v.jsx(l,Ae({},d,{children:f}))}function CR(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return v.jsx(w.Fragment,{children:t.map(a=>v.jsx(Iz,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const wz=(e,t)=>{const n=w.useRef({}),[r,a]=w.useState(()=>{const o={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([c,d])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:d.getDefaultValue},o[c]=d.getDefaultValue(t)})}),o});return Object.fromEntries(Object.entries(n.current).map(([o,l])=>{const c=t[o]??r[o];return[o,{value:c,setControlledValue:d=>{l.isControlled||a(f=>Ae({},f,{[o]:d}))}}]}))},Nz=["slots","slotProps","apiRef","experimentalFeatures"],Oz=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,l=cr(e.props,Nz);const c={};o.forEach(y=>{Object.assign(c,y.params)});const d={},f={};Object.keys(l).forEach(y=>{const b=l[y];c[y]?d[y]=b:f[y]=b});const p=a??{},m=o.reduce((y,b)=>b.getDefaultizedParams?b.getDefaultizedParams({params:y,experimentalFeatures:p}):y,d);return{apiRef:r,forwardedProps:f,pluginParams:m,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Lz=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let o=null,l=null;const c=[],d={};e.forEach(m=>{if(!m.itemPlugin)return;const y=m.itemPlugin({props:a,rootRef:o,contentRef:l});y?.rootRef&&(o=y.rootRef),y?.contentRef&&(l=y.contentRef),y?.propsEnhancers&&(c.push(y.propsEnhancers),Object.keys(y.propsEnhancers).forEach(b=>{d[b]=!0}))});const f=m=>y=>{const b={};return c.forEach(_=>{const A=_[m];A!=null&&Object.assign(b,A(y))}),b},p=Object.fromEntries(Object.keys(d).map(m=>[m,f(m)]));return{contentRef:l,rootRef:o,propsEnhancers:p}},wrapItem:({itemId:a,children:o})=>{let l=o;for(let c=e.length-1;c>=0;c-=1){const d=e[c];d.wrapItem&&(l=d.wrapItem({itemId:a,children:l,instance:t}))}return l},wrapRoot:({children:a})=>{let o=a;for(let l=e.length-1;l>=0;l-=1){const c=e[l];c.wrapRoot&&(o=c.wrapRoot({children:o,instance:t}))}return o},instance:t,rootRef:r,publicAPI:n});let Mz=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const a=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let l=a.length-1;l>=0;l-=1){const c=a[l];r.highPriority.has(c)&&c.apply(this,n)}for(let l=0;l<o.length;l+=1){const c=o[l];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...o){r.removeListener(t,a),n.apply(r,o)})}};const Pz=e=>e.isPropagationStopped!==void 0,DR=()=>{const[e]=w.useState(()=>new Mz),t=w.useCallback((...r)=>{const[a,o,l={}]=r;l.defaultMuiPrevented=!1,!(Pz(l)&&l.isPropagationStopped())&&e.emit(a,o,l)},[e]),n=w.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};DR.params={};const kR=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};kR.params={};const RE=({params:e,state:t,setState:n})=>{w.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ae({},a,{id:Ae({},a.id,{treeId:e.id??nj()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};RE.params={id:!0};RE.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const $z=[DR,kR,RE];function Fz(e){const t=w.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Bz=({plugins:e,rootRef:t,props:n})=>{const r=[...$z,...e],{pluginParams:a,forwardedProps:o,apiRef:l,experimentalFeatures:c,slots:d,slotProps:f}=Oz({plugins:r,props:n}),p=wz(r,a),m=w.useRef({}).current,y=Fz(l),b=w.useRef(null),_=oi(b,t),A=Lz({plugins:r,instance:m,publicAPI:y,rootRef:b}),[C,x]=w.useState(()=>{const M={};return r.forEach(L=>{L.getInitialState&&Object.assign(M,L.getInitialState(a))}),M}),D=[],S=M=>{const L=M({instance:m,params:a,slots:d,slotProps:f,experimentalFeatures:c,state:C,setState:x,rootRef:b,models:p,plugins:r});L.getRootProps&&D.push(L.getRootProps),L.publicAPI&&Object.assign(y,L.publicAPI),L.instance&&Object.assign(m,L.instance),L.contextValue&&Object.assign(A,L.contextValue)};return r.forEach(S),{getRootProps:(M={})=>{const L=Ae({role:"tree"},o,M,{ref:_});return D.forEach(I=>{Object.assign(L,I(M))}),L},rootRef:_,contextValue:A,instance:m}};function jz(e){const{value:t,children:n}=e;return v.jsx(k3.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Uz=ER(),Hz=e=>{const{classes:t}=e;return Fs({root:["root"]},zH,t)},zz=an("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Gz=w.forwardRef(function(e,t){const n=Uz({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:o}=Bz({plugins:hz,rootRef:t,props:n}),{slots:l,slotProps:c}=n,d=Hz(n),f=l?.root??zz,p=Es({elementType:f,externalSlotProps:c?.root,className:d.root,getSlotProps:r,ownerState:n});return v.jsx(jz,{value:a,children:v.jsx(f,Ae({},p,{children:v.jsx(CR,{slots:l,slotProps:c,itemsToRender:o.getItemsToRender()})}))})});function RR({items:e,defaultExpandedItems:t,navigate:n}){return v.jsx(Gz,{items:Kz(e,n),defaultExpandedItems:t,slots:{item:Qz}})}const Vz=RU(Cd);function qz(e){const t=mU({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return v.jsx(Vz,{style:t,...e})}function Yz({item:e,...t}){const n=v.jsxs(jH,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&v.jsx(sj,{})||e.fileType==="notebook"&&v.jsx(lj,{})||e.fileType==="model"&&v.jsx(wU,{})||e.fileType=="database"&&v.jsx(IU,{})||v.jsx(T3,{}),v.jsx($e,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?v.jsx(fa,{title:e.error,placement:"right",children:n}):n}const Qz=w.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:o,disabled:l,...c}=e,{getRootProps:d,getContentProps:f,getLabelProps:p,getIconContainerProps:m,getGroupTransitionProps:y,status:b,publicAPI:_}=oj({id:n,itemId:r,children:o,label:a,disabled:l,rootRef:t}),A=_.getItem(r);return b.selected=!1,b.focused=!1,v.jsx(SE,{itemId:r,children:v.jsxs(FH,{...d(c),children:[v.jsxs(BH,{...f(),...A.link&&{onClick:C=>A.link(C)},sx:{pointerEvents:!A.selectable&&"none"},children:[v.jsx(UH,{...m(),children:v.jsx(HH,{status:b})}),v.jsx(Yz,{...p({item:A})})]}),o&&v.jsx(qz,{...y()})]})})});function Kz(e,t){const n=new Map;return e.map(r=>{let a=n;const o=r.path.split("/");o.forEach((l,c)=>{c===o.length-1?a.set(l,r):(a.has(l)||a.set(l,new Map),a=a.get(l))})}),IR(n,"",t)}function IR(e,t,n){const r=[];return e.forEach((a,o)=>{const l=o.endsWith(".malloy")&&"model"||o.endsWith(".malloynb")&&"notebook"||o.endsWith(".parquet")&&"database"||"unknown";if(l!=="unknown"){const c=a;r.push({id:t+o,label:o,fileType:l,link:l==="model"||l==="notebook"?d=>n(t+o,d):void 0,selectable:l==="model"||l==="notebook",error:"error"in c?c.error:void 0})}else t+=`${o}/`,r.push({id:t,label:o,fileType:"directory",selectable:!0,link:void 0,children:IR(a,t,n)})}),r}const Wz=new lm(new Xn),Xz=["notebooks/","models/"];function Zz({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Sa(),{data:a,isError:o,error:l,isSuccess:c}=mr({queryKey:["models",t,n,r],queryFn:d=>Wz.listModels(t,n,r,d)});return v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Semantic Models"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&v.jsx(dr,{text:"Fetching Models..."}),o&&v.jsx(fr,{error:l,context:`${t} > ${n} > Models`}),c&&a.data.length>0&&v.jsx(RR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),navigate:e,defaultExpandedItems:Xz}),c&&a.data.length===0&&v.jsx($e,{variant:"body2",children:"No models found"})]})]})})}const Jz=new ak(new Xn),eG=["notebooks/"];function tG({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Sa(),{data:a,isError:o,error:l,isSuccess:c}=mr({queryKey:["notebooks",t,n,r],queryFn:d=>Jz.listNotebooks(t,n,r,d)});return v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Notebooks"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&v.jsx(dr,{text:"Fetching Notebooks..."}),o&&v.jsx(fr,{error:l,context:`${t} > ${n} > Notebooks`}),c&&a.data.length>0&&v.jsx(RR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),defaultExpandedItems:eG,navigate:e}),c&&a.data.length===0&&v.jsx($e,{variant:"body2",children:"No notebooks found"})]})]})})}const nG=new q7(new Xn);function rG(){const{projectName:e,packageName:t,versionId:n}=Sa(),{data:r,isError:a,isLoading:o,error:l}=mr({queryKey:["schedules",e,t,n],queryFn:c=>nG.listSchedules(e,t,n,c)});return o?v.jsx(dr,{text:"Fetching Schedules..."}):a?v.jsx(fr,{error:l,context:`${e} > ${t} > Schedules`}):r.data.length?v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Scheduler"}),v.jsx(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsx(mb,{component:Lh,children:v.jsxs(td,{sx:{minWidth:300},size:"small",children:[v.jsx(gb,{children:v.jsxs(ri,{children:[v.jsx(Ut,{align:"left",children:"Resource"}),v.jsx(Ut,{align:"left",children:"Schedule"}),v.jsx(Ut,{align:"left",children:"Action"}),v.jsx(Ut,{align:"left",children:"Connection"}),v.jsx(Ut,{align:"left",children:"Last Run"}),v.jsx(Ut,{align:"left",children:"Status"})]})}),v.jsx(nd,{children:r.data.map(c=>v.jsxs(ri,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[v.jsx(Ut,{align:"left",children:c.resource}),v.jsx(Ut,{align:"left",children:c.schedule}),v.jsx(Ut,{align:"left",children:c.action}),v.jsx(Ut,{align:"left",children:c.connection}),v.jsx(Ut,{align:"left",children:c.lastRunTime?new Date(c.lastRunTime).toLocaleString():"n/a"}),v.jsx(Ut,{align:"left",children:c.lastRunStatus})]},c.resource))})]})})})]})}):null}w.lazy(()=>F(()=>import("./index.es24-Cn4yPrhQ.js"),__vite__mapDeps([93,94,95])));new cm(new Xn);function aG(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}const iG=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/;function oG({cell:e,notebookPath:t,hideCodeCellIcon:n,hideEmbeddingIcon:r}){const[a,o]=Le.useState(!1),[l,c]=Le.useState(!1),[d,f]=Le.useState(!1),[p,m]=Le.useState(),[y,b]=Le.useState(),[_,A]=Le.useState(!1),{packageName:C,projectName:x}=Sa(),D=e.text.match(iG),S=D?D[1]:null,M=!!D,L=aG({modelPath:t,query:e.text,optionalPackageName:C,optionalProjectName:x});return w.useEffect(()=>{e.type==="code"&&Rp(e.text,"malloy").then(I=>{m(I)})},[e]),w.useEffect(()=>{Rp(L,"typescript").then(I=>{b(I)})},[L]),e.type==="markdown"&&v.jsx(cy,{children:v.jsx(Ke,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:v.jsx(sE,{children:e.text})})})||e.type==="code"&&v.jsxs(cy,{children:[(!n||!r&&e.result||e.newSources&&e.newSources.length>0)&&v.jsx(Pn,{sx:{flexDirection:"column",gap:"8px",marginBottom:"16px"},children:e.newSources&&e.newSources.length>0&&M&&v.jsx(uy,{sx:{position:"relative",padding:"0"},children:v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[v.jsx("span",{dangerouslySetInnerHTML:{__html:e.text.length>50?`${p.substring(0,50)}...`:p},style:{fontFamily:"monospace",fontSize:"14px",flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}}),v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>A(!0),children:v.jsx(Wl,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),v.jsx(E3,{open:_,onClose:()=>A(!1),modelPath:S||"",title:"Data Sources",hasValidImport:M}),v.jsxs(No,{open:a,onClose:()=>o(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",v.jsx(xn,{onClick:()=>o(!1),sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{children:v.jsx(Ke,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:"#ffffff"},children:v.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:p}})})})]}),v.jsxs(No,{open:l,onClose:()=>c(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",v.jsx(xn,{onClick:()=>c(!1),sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{children:v.jsxs(Pn,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[v.jsx($e,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:y}}),v.jsx(fa,{title:"Copy Embeddable Code",children:v.jsx(xn,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText(L)},children:v.jsx(IF,{})})})]})})]}),v.jsx(v3,{open:d,onClose:()=>f(!1),result:e.result||"",title:"Results"}),e.result&&v.jsxs(uy,{sx:{position:"relative"},children:[v.jsx(Ke,{sx:{paddingTop:"24px"},children:v.jsx(ym,{result:e.result,minHeight:300,maxHeight:1e3})}),v.jsx(Ke,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, rgba(255, 255, 255, 0.9))",pointerEvents:"none",zIndex:1}}),v.jsxs(Pn,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!n&&v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:I=>{I.stopPropagation(),o(!0)},children:v.jsx(u3,{sx:{fontSize:"18px",color:"#666666"}})}),v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>f(!0),children:v.jsx(Wl,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}const sG=new ak(new Xn);function wR({notebookPath:e}){const{projectName:t,packageName:n,versionId:r}=Sa(),{data:a,isSuccess:o,isError:l,error:c}=mr({queryKey:["notebook",t,n,e,r],queryFn:async d=>(await sG.getNotebook(t,n,e,r,d)).data});return v.jsx(ZM,{children:v.jsx(JM,{children:v.jsxs(Pn,{spacing:3,component:"section",children:[!o&&!l&&v.jsx(dr,{text:"Fetching Notebook..."}),o&&a.notebookCells?.map((d,f)=>v.jsx(oG,{cell:d,notebookPath:e},f)),l&&c.status===404&&v.jsxs($e,{variant:"body2",sx:{color:"#666666"},children:[v.jsx("code",{children:`${t} > ${n} > ${e}`})," ","not found."]}),l&&c.status!==404&&v.jsx(fr,{error:c,context:`${t} > ${n} > ${e}`})]})})})}const lG=new lm(new Xn);function NR(e,t){const{projectName:n,packageName:r,versionId:a}=Sa(),o=t||a;return mr({queryKey:["package",n,r,e,o],queryFn:async l=>(await lG.getModel(n,r,e,o,l)).data})}const cG=nn(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));let uG=class Xh{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Xh(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
|
|
163
|
+
`));a[y]={id:y,label:b,parentId:m,idAttribute:void 0,expandable:!!f.children?.length,disabled:t?t(f):!1,depth:p},o[y]=f;const _=m??Bl;l[_]||(l[_]=[]),l[_].push(y),f.children?.forEach(A=>c(A,p+1,y))};e.forEach(f=>c(f,0,null));const d={};return Object.keys(l).forEach(f=>{d[f]=ZH(l[f])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:l,itemChildrenIndexes:d}},Qd=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=w.useCallback(C=>n.items.itemMetaMap[C],[n.items.itemMetaMap]),l=w.useCallback(C=>n.items.itemMap[C],[n.items.itemMap]),c=w.useCallback(()=>{const C=x=>{const D=n.items.itemMap[x],S=cr(D,JH),M=n.items.itemOrderedChildrenIds[x];return M&&(S.children=M.map(C)),S};return n.items.itemOrderedChildrenIds[Bl].map(C)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),d=w.useCallback(C=>{if(C==null)return!1;let x=e.getItemMeta(C);if(!x)return!1;if(x.disabled)return!0;for(;x.parentId!=null;)if(x=e.getItemMeta(x.parentId),x.disabled)return!0;return!1},[e]),f=w.useCallback(C=>{const x=e.getItemMeta(C).parentId??Bl;return n.items.itemChildrenIndexes[x][C]},[e,n.items.itemChildrenIndexes]),p=w.useCallback(C=>n.items.itemOrderedChildrenIds[C??Bl]??[],[n.items.itemOrderedChildrenIds]),m=C=>{const x=e.getItemMeta(C);return x==null?null:document.getElementById(cE({treeId:n.id.treeId,itemId:C,id:x.idAttribute}))},y=C=>t.disabledItemsFocusable?!0:!e.isItemDisabled(C),b=w.useRef(!1),_=w.useCallback(()=>{b.current=!0},[]),A=w.useCallback(()=>b.current,[]);return w.useEffect(()=>{e.areItemUpdatesPrevented()||r(C=>{const x=vR({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(C.items.itemMetaMap).forEach(D=>{x.itemMetaMap[D.id]||XH(e,"removeItem",{id:D.id})}),Ae({},C,{items:x})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:l,getItemDOMElement:m,getItemTree:c,getItemOrderedChildrenIds:p},instance:{getItemMeta:o,getItem:l,getItemTree:c,getItemsToRender:()=>{const C=x=>{const D=n.items.itemMetaMap[x];return{label:D.label,itemId:D.id,id:D.idAttribute,children:n.items.itemOrderedChildrenIds[x]?.map(C)}};return n.items.itemOrderedChildrenIds[Bl].map(C)},getItemIndex:f,getItemDOMElement:m,getItemOrderedChildrenIds:p,isItemDisabled:d,isItemNavigable:y,preventItemUpdates:_,areItemUpdatesPrevented:A},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Qd.getInitialState=e=>({items:vR({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Qd.getDefaultizedParams=({params:e})=>Ae({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Qd.wrapRoot=({children:e,instance:t})=>v.jsx(uE.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Qd.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Dm=({instance:e,params:t,models:n})=>{const r=w.useMemo(()=>{const m=new Map;return n.expandedItems.value.forEach(y=>{m.set(y,!0)}),m},[n.expandedItems.value]),a=(m,y)=>{t.onExpandedItemsChange?.(m,y),n.expandedItems.setControlledValue(y)},o=w.useCallback(m=>r.has(m),[r]),l=w.useCallback(m=>!!e.getItemMeta(m)?.expandable,[e]),c=ii((m,y)=>{const b=e.isItemExpanded(y);e.setItemExpansion(m,y,!b)}),d=ii((m,y,b)=>{if(e.isItemExpanded(y)===b)return;let _;b?_=[y].concat(n.expandedItems.value):_=n.expandedItems.value.filter(A=>A!==y),t.onItemExpansionToggle&&t.onItemExpansionToggle(m,y,b),a(m,_)}),f=(m,y)=>{const b=e.getItemMeta(y),_=e.getItemOrderedChildrenIds(b.parentId).filter(C=>e.isItemExpandable(C)&&!e.isItemExpanded(C)),A=n.expandedItems.value.concat(_);_.length>0&&(t.onItemExpansionToggle&&_.forEach(C=>{t.onItemExpansionToggle(m,C,!0)}),a(m,A))},p=w.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:d},instance:{isItemExpanded:o,isItemExpandable:l,setItemExpansion:d,toggleItemExpansion:c,expandAllSiblings:f},contextValue:{expansion:{expansionTrigger:p}}}};Dm.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const ez=[];Dm.getDefaultizedParams=({params:e})=>Ae({},e,{defaultExpandedItems:e.defaultExpandedItems??ez});Dm.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const Wh=e=>Array.isArray(e)?e:e!=null?[e]:[],I1=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},km=({instance:e,params:t,models:n})=>{const r=w.useRef(null),a=w.useRef({}),o=w.useMemo(()=>{const p=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(m=>{p.set(m,!0)}):n.selectedItems.value!=null&&p.set(n.selectedItems.value,!0),p},[n.selectedItems.value]),l=(p,m)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const y=m.filter(_=>!e.isItemSelected(_)),b=n.selectedItems.value.filter(_=>!m.includes(_));y.forEach(_=>{t.onItemSelectionToggle(p,_,!0)}),b.forEach(_=>{t.onItemSelectionToggle(p,_,!1)})}else m!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(p,n.selectedItems.value,!1),m!=null&&t.onItemSelectionToggle(p,m,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(p,m),n.selectedItems.setControlledValue(m)},c=p=>o.has(p),d=({event:p,itemId:m,keepExistingSelection:y=!1,shouldBeSelected:b})=>{if(t.disableSelection)return;let _;if(y){const A=Wh(n.selectedItems.value),C=e.isItemSelected(m);C&&(b===!1||b==null)?_=A.filter(x=>x!==m):!C&&(b===!0||b==null)?_=[m].concat(A):_=A}else b===!1||b==null&&e.isItemSelected(m)?_=t.multiSelect?[]:null:_=t.multiSelect?[m]:m;l(p,_),r.current=m,a.current={}},f=(p,[m,y])=>{if(t.disableSelection||!t.multiSelect)return;let b=Wh(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(b=b.filter(x=>!a.current[x]));const _=I1(b),A=ej(e,m,y),C=A.filter(x=>!_[x]);b=b.concat(C),l(p,b),a.current=I1(A)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:d},instance:{isItemSelected:c,selectItem:d,selectAllNavigableItems:p=>{if(t.disableSelection||!t.multiSelect)return;const m=tj(e);l(p,m),a.current=I1(m)},expandSelectionRange:(p,m)=>{if(r.current!=null){const[y,b]=D3(e,m,r.current);f(p,[y,b])}},selectRangeFromStartToItem:(p,m)=>{f(p,[gd(e),m])},selectRangeFromItemToEnd:(p,m)=>{f(p,[m,C3(e)])},selectItemFromArrowNavigation:(p,m,y)=>{if(t.disableSelection||!t.multiSelect)return;let b=Wh(n.selectedItems.value).slice();Object.keys(a.current).length===0?(b.push(y),a.current={[m]:!0,[y]:!0}):(a.current[m]||(a.current={}),a.current[y]?(b=b.filter(_=>_!==m),delete a.current[m]):(b.push(y),a.current[y]=!0)),l(p,b)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};km.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const tz=[];km.getDefaultizedParams=({params:e})=>Ae({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?tz:null)});km.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};let nz=class{constructor(t=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}},rz=class{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}},az=class{};function iz(e){let t=0;return function(n,r,a){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new rz:new nz);const[o]=w.useState(new az),l=w.useRef(null),c=w.useRef(void 0);c.current=a;const d=w.useRef(null);if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f),t+=1,d.current={cleanupToken:t},e.registry.register(o,()=>{l.current?.(),l.current=null,d.current=null},d.current)}else!c.current&&l.current&&(l.current(),l.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));w.useEffect(()=>{if(!l.current&&c.current){const f=(p,m)=>{m.defaultMuiPrevented||c.current?.(p,m)};l.current=n.$$subscribeEvent(r,f)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{l.current?.(),l.current=null}},[n,r])}}const oz={registry:null},sz=iz(oz),TR=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?TR(t.shadowRoot):t:null};function lz(e){return e&&e.ownerDocument||document}const cz=(e,t)=>{let n=Wh(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=gd(e)),n},kE=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const l=cz(e,a.selectedItems.value),c=ii(C=>{const x=typeof C=="function"?C(n.focusedItemId):C;n.focusedItemId!==x&&r(D=>Ae({},D,{focusedItemId:x}))}),d=w.useCallback(()=>!!o.current&&o.current.contains(TR(lz(o.current))),[o]),f=w.useCallback(C=>n.focusedItemId===C&&d(),[n.focusedItemId,d]),p=C=>{const x=e.getItemMeta(C);return x&&(x.parentId==null||e.isItemExpanded(x.parentId))},m=(C,x)=>{const D=e.getItemDOMElement(x);D&&D.focus(),c(x),t.onItemFocus&&t.onItemFocus(C,x)},y=ii((C,x)=>{p(x)&&m(C,x)}),b=ii(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){const C=e.getItemDOMElement(n.focusedItemId);C&&C.blur()}c(null)}}),_=C=>C===l;sz(e,"removeItem",({id:C})=>{n.focusedItemId===C&&m(null,l)});const A=C=>x=>{C.onFocus?.(x),!x.defaultMuiPrevented&&x.target===x.currentTarget&&m(x,l)};return{getRootProps:C=>({onFocus:A(C)}),publicAPI:{focusItem:y},instance:{isItemFocused:f,canItemBeTabbed:_,focusItem:y,removeFocusedItem:b}}};kE.getInitialState=()=>({focusedItemId:null});kE.params={onItemFocus:!0};const uz=w.createContext(),dz=()=>w.useContext(uz)??!1;function fz(e){return!!e&&e.length===1&&!!e.match(/\S/)}const _R=({instance:e,params:t,state:n})=>{const r=dz(),a=w.useRef({}),o=ii(f=>{a.current=f(a.current)});w.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const f={},p=m=>{f[m.id]=m.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(p),a.current=f},[n.items.itemMetaMap,t.getItemId,e]);const l=(f,p)=>{const m=p.toLowerCase(),y=C=>{const x=Yh(e,C);return x===null?gd(e):x};let b=null,_=y(f);const A={};for(;b==null&&!A[_];)a.current[_]===m?b=_:(A[_]=!0,_=y(_));return b},c=f=>!t.disableSelection&&!e.isItemDisabled(f),d=f=>!e.isItemDisabled(f)&&e.isItemExpandable(f);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(f,p)=>{if(f.defaultMuiPrevented||f.altKey||yd(f.target,f.currentTarget))return;const m=f.ctrlKey||f.metaKey,y=f.key;switch(!0){case(y===" "&&c(p)):{f.preventDefault(),t.multiSelect&&f.shiftKey?e.expandSelectionRange(f,p):e.selectItem({event:f,itemId:p,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case y==="Enter":{As(e,_a)&&e.isItemEditable(p)&&!e.isItemBeingEdited(p)?e.setEditedItemId(p):d(p)?(e.toggleItemExpansion(f,p),f.preventDefault()):c(p)&&(t.multiSelect?(f.preventDefault(),e.selectItem({event:f,itemId:p,keepExistingSelection:!0})):e.isItemSelected(p)||(e.selectItem({event:f,itemId:p}),f.preventDefault()));break}case y==="ArrowDown":{const b=Yh(e,p);b&&(f.preventDefault(),e.focusItem(f,b),t.multiSelect&&f.shiftKey&&c(b)&&e.selectItemFromArrowNavigation(f,p,b));break}case y==="ArrowUp":{const b=S3(e,p);b&&(f.preventDefault(),e.focusItem(f,b),t.multiSelect&&f.shiftKey&&c(b)&&e.selectItemFromArrowNavigation(f,p,b));break}case(y==="ArrowRight"&&!r||y==="ArrowLeft"&&r):{if(m)return;if(e.isItemExpanded(p)){const b=Yh(e,p);b&&(e.focusItem(f,b),f.preventDefault())}else d(p)&&(e.toggleItemExpansion(f,p),f.preventDefault());break}case(y==="ArrowLeft"&&!r||y==="ArrowRight"&&r):{if(m)return;if(d(p)&&e.isItemExpanded(p))e.toggleItemExpansion(f,p),f.preventDefault();else{const b=e.getItemMeta(p).parentId;b&&(e.focusItem(f,b),f.preventDefault())}break}case y==="Home":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromStartToItem(f,p):e.focusItem(f,gd(e)),f.preventDefault();break}case y==="End":{c(p)&&t.multiSelect&&m&&f.shiftKey?e.selectRangeFromItemToEnd(f,p):e.focusItem(f,C3(e)),f.preventDefault();break}case y==="*":{e.expandAllSiblings(f,p),f.preventDefault();break}case(String.fromCharCode(f.keyCode)==="A"&&m&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(f),f.preventDefault();break}case(!m&&!f.shiftKey&&fz(y)):{const b=l(p,y);b!=null&&(e.focusItem(f,b),f.preventDefault());break}}}}}};_R.params={};const xR=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});xR.params={};const hz=[Qd,Dm,km,kE,_R,xR,_a];function AR(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:l}}=js(),c=t.isItemExpandable(e),d=t.isItemExpanded(e),f=t.isItemFocused(e),p=t.isItemSelected(e),m=t.isItemDisabled(e),y=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,b=t.isItemEditable?t.isItemEditable(e):!1,_=S=>{if(!m){f||t.focusItem(S,e);const M=r&&(S.shiftKey||S.ctrlKey||S.metaKey);c&&!(M&&t.isItemExpanded(e))&&t.toggleItemExpansion(S,e)}},A=S=>{m||(!f&&!y&&t.focusItem(S,e),r&&(S.shiftKey||S.ctrlKey||S.metaKey)?S.shiftKey?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:!0}):t.selectItem({event:S,itemId:e,shouldBeSelected:!0}))},C=S=>{if(o||m)return;const M=S.nativeEvent.shiftKey;r&&M?t.expandSelectionRange(S,e):t.selectItem({event:S,itemId:e,keepExistingSelection:r,shouldBeSelected:S.target.checked})},x=S=>{(S.shiftKey||S.ctrlKey||S.metaKey||m)&&S.preventDefault()},D=()=>{As(t,_a)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:m,expanded:d,selected:p,focused:f,editable:b,editing:y,disableSelection:o,checkboxSelection:a,handleExpansion:_,handleSelection:A,handleCheckboxSelection:C,handleContentClick:n,preventSelection:x,expansionTrigger:l,toggleItemEditing:D,handleSaveItemLabel:(S,M)=>{As(t,_a)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,M),D(),t.focusItem(S,e))},handleCancelItemLabelEditing:S=>{As(t,_a)&&t.isItemBeingEditedRef(e)&&(D(),t.focusItem(S,e))}}}const pz=an("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>Ae({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),mz=an("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>y5(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:$i(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function gz(e){return e.action==null?null:v.jsx(mz,Ae({},e))}const yz=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],SR=w.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:a,expansionIcon:o,icon:l,label:c,itemId:d,onClick:f,onMouseDown:p,dragAndDropOverlayProps:m,labelInputProps:y}=e,b=cr(e,yz),{disabled:_,expanded:A,selected:C,focused:x,editing:D,editable:S,disableSelection:M,checkboxSelection:L,handleExpansion:I,handleSelection:V,handleCheckboxSelection:te,handleContentClick:Q,preventSelection:k,expansionTrigger:H,toggleItemEditing:W}=AR(d),K=l||o||a,re=w.useRef(null),me=le=>{k(le),p&&p(le)},G=le=>{Q?.(le,d),!re.current?.contains(le.target)&&(H==="content"&&I(le),L||V(le),f&&f(le))},oe=le=>{le.defaultMuiPrevented||W()};return v.jsxs("div",Ae({},b,{className:Mn(n.root,r,A&&n.expanded,C&&n.selected,x&&n.focused,_&&n.disabled,D&&n.editing,S&&n.editable),onClick:G,onMouseDown:me,ref:t,children:[v.jsx("div",{className:n.iconContainer,children:K}),L&&v.jsx(gR,{className:n.checkbox,checked:C,onChange:te,disabled:_||M,ref:re,tabIndex:-1}),D?v.jsx(pz,Ae({},y,{className:n.labelInput})):v.jsx("div",Ae({className:n.label},S&&{onDoubleClick:oe},{children:c})),m&&v.jsx(gz,Ae({},m))]}))});function bz(e){return Fo("MuiTreeItem",e)}const Ni=Bo("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),Ez=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],vz=["ownerState"],Tz=["ownerState"],_z=["ownerState"],xz=ER(),Az=e=>{const{classes:t}=e;return Fs({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},bz,t)},Sz=an("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Cz=an(SR,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Ni.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Ni.label}`]:t.label}],shouldForwardProp:e=>Ro(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ni.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Ni.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ni.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$i(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ni.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Ni.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Ni.label}`]:Ae({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Ni.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Dz=an(Cd,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Ro(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),kz=w.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:a,indentationAtItemLevel:o},selection:{disableSelection:l},expansion:{expansionTrigger:c},treeId:d,instance:f}=js(),p=w.useContext(uE),m=xz({props:e,name:"MuiTreeItem"}),{children:y,className:b,slots:_,slotProps:A,ContentComponent:C=SR,ContentProps:x,itemId:D,id:S,label:M,onClick:L,onMouseDown:I,onBlur:V,onKeyDown:te}=m,Q=cr(m,Ez),{expanded:k,focused:H,selected:W,disabled:K,editing:re,handleExpansion:me,handleCancelItemLabelEditing:G,handleSaveItemLabel:oe}=AR(D),{contentRef:le,rootRef:se,propsEnhancers:P}=r(m),Ce=w.useRef(null),he=w.useRef(null),O=oi(t,se,Ce),ce=oi(x?.ref,le,he),Ne={expandIcon:_?.expandIcon??n.slots.expandIcon??yR,collapseIcon:_?.collapseIcon??n.slots.collapseIcon??bR,endIcon:_?.endIcon??n.slots.endIcon,icon:_?.icon,groupTransition:_?.groupTransition},Ie=Te=>Array.isArray(Te)?Te.length>0&&Te.some(Ie):!!Te,Me=Ie(y),Oe=Ae({},m,{expanded:k,focused:H,selected:W,disabled:K,indentationAtItemLevel:o}),st=Az(Oe),dt=Ne.groupTransition??void 0,Ue=Es({elementType:dt,ownerState:{},externalSlotProps:A?.groupTransition,additionalProps:Ae({unmountOnExit:!0,in:k,component:"ul",role:"group"},o?{indentationAtItemLevel:!0}:{}),className:st.groupTransition}),Zt=Te=>{c==="iconContainer"&&me(Te)},wt=k?Ne.collapseIcon:Ne.expandIcon,Pe=Es({elementType:wt,ownerState:{},externalSlotProps:Te=>k?Ae({},ti(n.slotProps.collapseIcon,Te),ti(A?.collapseIcon,Te)):Ae({},ti(n.slotProps.expandIcon,Te),ti(A?.expandIcon,Te)),additionalProps:{onClick:Zt}}),rr=cr(Pe,vz),dn=Me&&wt?v.jsx(wt,Ae({},rr)):null,Ve=Me?void 0:Ne.endIcon,Zn=Es({elementType:Ve,ownerState:{},externalSlotProps:Te=>Me?{}:Ae({},ti(n.slotProps.endIcon,Te),ti(A?.endIcon,Te))}),rn=cr(Zn,Tz),on=Ve?v.jsx(Ve,Ae({},rn)):null,Ye=Ne.icon,Ct=Es({elementType:Ye,ownerState:{},externalSlotProps:A?.icon}),xr=cr(Ct,_z),Ba=Ye?v.jsx(Ye,Ae({},xr)):null;let Rt;W?Rt=!0:l||K?Rt=void 0:Rt=!1;function ue(Te){!H&&(!K||a)&&Te.currentTarget===Te.target&&f.focusItem(Te,D)}function ve(Te){V?.(Te),!(re||Te.relatedTarget&&yd(Te.relatedTarget,Ce.current)&&(Te.target&&Te.target?.dataset?.element==="labelInput"&&yd(Te.target,Ce.current)||Te.relatedTarget?.dataset?.element==="labelInput"))&&f.removeFocusedItem()}const Be=Te=>{te?.(Te),Te.target?.dataset?.element!=="labelInput"&&f.handleItemKeyDown(Te,D)},rt=cE({itemId:D,treeId:d,id:S}),Dt=f.canItemBeTabbed(D)?0:-1,Nt={rootRefObject:Ce,contentRefObject:he,interactions:{handleSaveItemLabel:oe,handleCancelItemLabelEditing:G}},zn=P.root?.(Ae({},Nt,{externalEventHandlers:ha(Q)}))??{},gn=P.content?.(Ae({},Nt,{externalEventHandlers:ha(x)}))??{},An=P.dragAndDropOverlay?.(Ae({},Nt,{externalEventHandlers:{}}))??{},_e=P.labelInput?.(Ae({},Nt,{externalEventHandlers:{}}))??{};return v.jsx(SE,{itemId:D,children:v.jsxs(Sz,Ae({className:Mn(st.root,b),role:"treeitem","aria-expanded":Me?k:void 0,"aria-selected":Rt,"aria-disabled":K||void 0,id:rt,tabIndex:Dt},Q,{ownerState:Oe,onFocus:ue,onBlur:ve,onKeyDown:Be,ref:O,style:o?Ae({},Q.style,{"--TreeView-itemDepth":typeof p=="function"?p(D):p}):Q.style},zn,{children:[v.jsx(Cz,Ae({as:C,classes:{root:st.content,expanded:st.expanded,selected:st.selected,focused:st.focused,disabled:st.disabled,editable:st.editable,editing:st.editing,iconContainer:st.iconContainer,label:st.label,labelInput:st.labelInput,checkbox:st.checkbox},label:M,itemId:D,onClick:L,onMouseDown:I,icon:Ba,expansionIcon:dn,displayIcon:on,ownerState:Oe},x,gn,An.action==null?{}:{dragAndDropOverlayProps:An},_e.value==null?{}:{labelInputProps:_e},{ref:ce})),y&&v.jsx(Dz,Ae({as:dt},Ue,{children:y}))]}))})}),Rz=["ownerState"];function Iz({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const l=e?.item??kz,c=Es({elementType:l,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),d=cr(c,Rz),f=w.useMemo(()=>o?v.jsx(CR,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return v.jsx(l,Ae({},d,{children:f}))}function CR(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return v.jsx(w.Fragment,{children:t.map(a=>v.jsx(Iz,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const wz=(e,t)=>{const n=w.useRef({}),[r,a]=w.useState(()=>{const o={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([c,d])=>{n.current[c]={isControlled:t[c]!==void 0,getDefaultValue:d.getDefaultValue},o[c]=d.getDefaultValue(t)})}),o});return Object.fromEntries(Object.entries(n.current).map(([o,l])=>{const c=t[o]??r[o];return[o,{value:c,setControlledValue:d=>{l.isControlled||a(f=>Ae({},f,{[o]:d}))}}]}))},Nz=["slots","slotProps","apiRef","experimentalFeatures"],Oz=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,l=cr(e.props,Nz);const c={};o.forEach(y=>{Object.assign(c,y.params)});const d={},f={};Object.keys(l).forEach(y=>{const b=l[y];c[y]?d[y]=b:f[y]=b});const p=a??{},m=o.reduce((y,b)=>b.getDefaultizedParams?b.getDefaultizedParams({params:y,experimentalFeatures:p}):y,d);return{apiRef:r,forwardedProps:f,pluginParams:m,slots:t??{},slotProps:n??{},experimentalFeatures:p}},Lz=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:a=>{let o=null,l=null;const c=[],d={};e.forEach(m=>{if(!m.itemPlugin)return;const y=m.itemPlugin({props:a,rootRef:o,contentRef:l});y?.rootRef&&(o=y.rootRef),y?.contentRef&&(l=y.contentRef),y?.propsEnhancers&&(c.push(y.propsEnhancers),Object.keys(y.propsEnhancers).forEach(b=>{d[b]=!0}))});const f=m=>y=>{const b={};return c.forEach(_=>{const A=_[m];A!=null&&Object.assign(b,A(y))}),b},p=Object.fromEntries(Object.keys(d).map(m=>[m,f(m)]));return{contentRef:l,rootRef:o,propsEnhancers:p}},wrapItem:({itemId:a,children:o})=>{let l=o;for(let c=e.length-1;c>=0;c-=1){const d=e[c];d.wrapItem&&(l=d.wrapItem({itemId:a,children:l,instance:t}))}return l},wrapRoot:({children:a})=>{let o=a;for(let l=e.length-1;l>=0;l-=1){const c=e[l];c.wrapRoot&&(o=c.wrapRoot({children:o,instance:t}))}return o},instance:t,rootRef:r,publicAPI:n});let Mz=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const a=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let l=a.length-1;l>=0;l-=1){const c=a[l];r.highPriority.has(c)&&c.apply(this,n)}for(let l=0;l<o.length;l+=1){const c=o[l];r.regular.has(c)&&c.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...o){r.removeListener(t,a),n.apply(r,o)})}};const Pz=e=>e.isPropagationStopped!==void 0,DR=()=>{const[e]=w.useState(()=>new Mz),t=w.useCallback((...r)=>{const[a,o,l={}]=r;l.defaultMuiPrevented=!1,!(Pz(l)&&l.isPropagationStopped())&&e.emit(a,o,l)},[e]),n=w.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};DR.params={};const kR=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};kR.params={};const RE=({params:e,state:t,setState:n})=>{w.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:Ae({},a,{id:Ae({},a.id,{treeId:e.id??nj()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};RE.params={id:!0};RE.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const $z=[DR,kR,RE];function Fz(e){const t=w.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Bz=({plugins:e,rootRef:t,props:n})=>{const r=[...$z,...e],{pluginParams:a,forwardedProps:o,apiRef:l,experimentalFeatures:c,slots:d,slotProps:f}=Oz({plugins:r,props:n}),p=wz(r,a),m=w.useRef({}).current,y=Fz(l),b=w.useRef(null),_=oi(b,t),A=Lz({plugins:r,instance:m,publicAPI:y,rootRef:b}),[C,x]=w.useState(()=>{const M={};return r.forEach(L=>{L.getInitialState&&Object.assign(M,L.getInitialState(a))}),M}),D=[],S=M=>{const L=M({instance:m,params:a,slots:d,slotProps:f,experimentalFeatures:c,state:C,setState:x,rootRef:b,models:p,plugins:r});L.getRootProps&&D.push(L.getRootProps),L.publicAPI&&Object.assign(y,L.publicAPI),L.instance&&Object.assign(m,L.instance),L.contextValue&&Object.assign(A,L.contextValue)};return r.forEach(S),{getRootProps:(M={})=>{const L=Ae({role:"tree"},o,M,{ref:_});return D.forEach(I=>{Object.assign(L,I(M))}),L},rootRef:_,contextValue:A,instance:m}};function jz(e){const{value:t,children:n}=e;return v.jsx(k3.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Uz=ER(),Hz=e=>{const{classes:t}=e;return Fs({root:["root"]},zH,t)},zz=an("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Gz=w.forwardRef(function(e,t){const n=Uz({props:e,name:"MuiRichTreeView"}),{getRootProps:r,contextValue:a,instance:o}=Bz({plugins:hz,rootRef:t,props:n}),{slots:l,slotProps:c}=n,d=Hz(n),f=l?.root??zz,p=Es({elementType:f,externalSlotProps:c?.root,className:d.root,getSlotProps:r,ownerState:n});return v.jsx(jz,{value:a,children:v.jsx(f,Ae({},p,{children:v.jsx(CR,{slots:l,slotProps:c,itemsToRender:o.getItemsToRender()})}))})});function RR({items:e,defaultExpandedItems:t,navigate:n}){return v.jsx(Gz,{items:Kz(e,n),defaultExpandedItems:t,slots:{item:Qz}})}const Vz=RU(Cd);function qz(e){const t=mU({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return v.jsx(Vz,{style:t,...e})}function Yz({item:e,...t}){const n=v.jsxs(jH,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&v.jsx(sj,{})||e.fileType==="notebook"&&v.jsx(lj,{})||e.fileType==="model"&&v.jsx(wU,{})||e.fileType=="database"&&v.jsx(IU,{})||v.jsx(T3,{}),v.jsx($e,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?v.jsx(fa,{title:e.error,placement:"right",children:n}):n}const Qz=w.forwardRef(function(e,t){const{id:n,itemId:r,label:a,children:o,disabled:l,...c}=e,{getRootProps:d,getContentProps:f,getLabelProps:p,getIconContainerProps:m,getGroupTransitionProps:y,status:b,publicAPI:_}=oj({id:n,itemId:r,children:o,label:a,disabled:l,rootRef:t}),A=_.getItem(r);return b.selected=!1,b.focused=!1,v.jsx(SE,{itemId:r,children:v.jsxs(FH,{...d(c),children:[v.jsxs(BH,{...f(),...A.link&&{onClick:C=>A.link(C)},sx:{pointerEvents:!A.selectable&&"none"},children:[v.jsx(UH,{...m(),children:v.jsx(HH,{status:b})}),v.jsx(Yz,{...p({item:A})})]}),o&&v.jsx(qz,{...y()})]})})});function Kz(e,t){const n=new Map;return e.map(r=>{let a=n;const o=r.path.split("/");o.forEach((l,c)=>{c===o.length-1?a.set(l,r):(a.has(l)||a.set(l,new Map),a=a.get(l))})}),IR(n,"",t)}function IR(e,t,n){const r=[];return e.forEach((a,o)=>{const l=o.endsWith(".malloy")&&"model"||o.endsWith(".malloynb")&&"notebook"||o.endsWith(".parquet")&&"database"||"unknown";if(l!=="unknown"){const c=a;r.push({id:t+o,label:o,fileType:l,link:l==="model"||l==="notebook"?d=>n(t+o,d):void 0,selectable:l==="model"||l==="notebook",error:"error"in c?c.error:void 0})}else t+=`${o}/`,r.push({id:t,label:o,fileType:"directory",selectable:!0,link:void 0,children:IR(a,t,n)})}),r}const Wz=new lm(new Xn),Xz=["notebooks/","models/"];function Zz({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Sa(),{data:a,isError:o,error:l,isSuccess:c}=mr({queryKey:["models",t,n,r],queryFn:d=>Wz.listModels(t,n,r,d)});return v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Semantic Models"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&v.jsx(dr,{text:"Fetching Models..."}),o&&v.jsx(fr,{error:l,context:`${t} > ${n} > Models`}),c&&a.data.length>0&&v.jsx(RR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),navigate:e,defaultExpandedItems:Xz}),c&&a.data.length===0&&v.jsx($e,{variant:"body2",children:"No models found"})]})]})})}const Jz=new ak(new Xn),eG=["notebooks/"];function tG({navigate:e}){const{projectName:t,packageName:n,versionId:r}=Sa(),{data:a,isError:o,error:l,isSuccess:c}=mr({queryKey:["notebooks",t,n,r],queryFn:d=>Jz.listNotebooks(t,n,r,d)});return v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Notebooks"}),v.jsxs(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!c&&!o&&v.jsx(dr,{text:"Fetching Notebooks..."}),o&&v.jsx(fr,{error:l,context:`${t} > ${n} > Notebooks`}),c&&a.data.length>0&&v.jsx(RR,{items:a.data.sort((d,f)=>d.path.localeCompare(f.path)),defaultExpandedItems:eG,navigate:e}),c&&a.data.length===0&&v.jsx($e,{variant:"body2",children:"No notebooks found"})]})]})})}const nG=new q7(new Xn);function rG(){const{projectName:e,packageName:t,versionId:n}=Sa(),{data:r,isError:a,isLoading:o,error:l}=mr({queryKey:["schedules",e,t,n],queryFn:c=>nG.listSchedules(e,t,n,c)});return o?v.jsx(dr,{text:"Fetching Schedules..."}):a?v.jsx(fr,{error:l,context:`${e} > ${t} > Schedules`}):r.data.length?v.jsx(Ui,{children:v.jsxs(Hi,{children:[v.jsx(jo,{children:"Scheduler"}),v.jsx(Ke,{sx:{maxHeight:"200px",overflowY:"auto"},children:v.jsx(mb,{component:Lh,children:v.jsxs(td,{sx:{minWidth:300},size:"small",children:[v.jsx(gb,{children:v.jsxs(ri,{children:[v.jsx(Ut,{align:"left",children:"Resource"}),v.jsx(Ut,{align:"left",children:"Schedule"}),v.jsx(Ut,{align:"left",children:"Action"}),v.jsx(Ut,{align:"left",children:"Connection"}),v.jsx(Ut,{align:"left",children:"Last Run"}),v.jsx(Ut,{align:"left",children:"Status"})]})}),v.jsx(nd,{children:r.data.map(c=>v.jsxs(ri,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[v.jsx(Ut,{align:"left",children:c.resource}),v.jsx(Ut,{align:"left",children:c.schedule}),v.jsx(Ut,{align:"left",children:c.action}),v.jsx(Ut,{align:"left",children:c.connection}),v.jsx(Ut,{align:"left",children:c.lastRunTime?new Date(c.lastRunTime).toLocaleString():"n/a"}),v.jsx(Ut,{align:"left",children:c.lastRunStatus})]},c.resource))})]})})})]})}):null}w.lazy(()=>F(()=>import("./index.es24-CDJ3b9GD.js"),__vite__mapDeps([93,94,95])));new cm(new Xn);function aG(e){const{optionalProjectName:t,optionalPackageName:n}=e;if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}const iG=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/;function oG({cell:e,notebookPath:t,hideCodeCellIcon:n,hideEmbeddingIcon:r}){const[a,o]=Le.useState(!1),[l,c]=Le.useState(!1),[d,f]=Le.useState(!1),[p,m]=Le.useState(),[y,b]=Le.useState(),[_,A]=Le.useState(!1),{packageName:C,projectName:x}=Sa(),D=e.text.match(iG),S=D?D[1]:null,M=!!D,L=aG({modelPath:t,query:e.text,optionalPackageName:C,optionalProjectName:x});return w.useEffect(()=>{e.type==="code"&&Rp(e.text,"malloy").then(I=>{m(I)})},[e]),w.useEffect(()=>{Rp(L,"typescript").then(I=>{b(I)})},[L]),e.type==="markdown"&&v.jsx(cy,{children:v.jsx(Ke,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:v.jsx(sE,{children:e.text})})})||e.type==="code"&&v.jsxs(cy,{children:[(!n||!r&&e.result||e.newSources&&e.newSources.length>0)&&v.jsx(Pn,{sx:{flexDirection:"column",gap:"8px",marginBottom:"16px"},children:e.newSources&&e.newSources.length>0&&M&&v.jsx(uy,{sx:{position:"relative",padding:"0"},children:v.jsxs(Ke,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[v.jsx("span",{dangerouslySetInnerHTML:{__html:e.text.length>50&&p?`${p.substring(0,50)}...`:p},style:{fontFamily:"monospace",fontSize:"14px",flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginRight:"8px"}}),v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>A(!0),children:v.jsx(Wl,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),v.jsx(E3,{open:_,onClose:()=>A(!1),modelPath:S||"",title:"Data Sources",hasValidImport:M}),v.jsxs(No,{open:a,onClose:()=>o(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",v.jsx(xn,{onClick:()=>o(!1),sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{children:v.jsx(Ke,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:"#ffffff"},children:v.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:p}})})})]}),v.jsxs(No,{open:l,onClose:()=>c(!1),maxWidth:"lg",fullWidth:!0,children:[v.jsxs(Oo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",v.jsx(xn,{onClick:()=>c(!1),sx:{color:"#666666"},children:v.jsx(md,{})})]}),v.jsx(Lo,{children:v.jsxs(Pn,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[v.jsx($e,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:y}}),v.jsx(fa,{title:"Copy Embeddable Code",children:v.jsx(xn,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText(L)},children:v.jsx(IF,{})})})]})})]}),v.jsx(v3,{open:d,onClose:()=>f(!1),result:e.result||"",title:"Results"}),e.result&&v.jsxs(uy,{sx:{position:"relative"},children:[v.jsx(Ke,{sx:{paddingTop:"24px"},children:v.jsx(ym,{result:e.result,minHeight:300,maxHeight:1e3})}),v.jsx(Ke,{sx:{position:"absolute",bottom:0,left:0,right:0,height:"40px",background:"linear-gradient(transparent, rgba(255, 255, 255, 0.9))",pointerEvents:"none",zIndex:1}}),v.jsxs(Pn,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!n&&v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:I=>{I.stopPropagation(),o(!0)},children:v.jsx(u3,{sx:{fontSize:"18px",color:"#666666"}})}),v.jsx(xn,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>f(!0),children:v.jsx(Wl,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}const sG=new ak(new Xn);function wR({notebookPath:e}){const{projectName:t,packageName:n,versionId:r}=Sa(),{data:a,isSuccess:o,isError:l,error:c}=mr({queryKey:["notebook",t,n,e,r],queryFn:async d=>(await sG.getNotebook(t,n,e,r,d)).data});return v.jsx(ZM,{children:v.jsx(JM,{children:v.jsxs(Pn,{spacing:3,component:"section",children:[!o&&!l&&v.jsx(dr,{text:"Fetching Notebook..."}),o&&a.notebookCells?.map((d,f)=>v.jsx(oG,{cell:d,notebookPath:e},f)),l&&c.status===404&&v.jsxs($e,{variant:"body2",sx:{color:"#666666"},children:[v.jsx("code",{children:`${t} > ${n} > ${e}`})," ","not found."]}),l&&c.status!==404&&v.jsx(fr,{error:c,context:`${t} > ${n} > ${e}`})]})})})}const lG=new lm(new Xn);function NR(e,t){const{projectName:n,packageName:r,versionId:a}=Sa(),o=t||a;return mr({queryKey:["package",n,r,e,o],queryFn:async l=>(await lG.getModel(n,r,e,o,l)).data})}const cG=nn(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));let uG=class Xh{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new Xh(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
|
|
164
164
|
`+t.value:`>>>malloy
|
|
165
165
|
import {${t.sourceName}}" from '${t.modelPath}'"
|
|
166
166
|
`+t.value+`
|