@shopify/cli 4.1.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acorn-LOOAJL3S.js → acorn-7M27BPGP.js} +1 -1
- package/dist/analytics-JH64XI2J.js +1 -0
- package/dist/analytics-MEGKKFGF.js +1 -0
- package/dist/angular-DW5TQVCM.js +4 -0
- package/dist/{babel-URCL33XX.js → babel-I2RLWM7N.js} +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chokidar-G4ONJSK4.js → chokidar-VDIVGBZH.js} +1 -1
- package/dist/chunk-25HJX3L2.js +5 -0
- package/dist/chunk-2EHBJWC6.js +26 -0
- package/dist/chunk-2GAFKG64.js +4 -0
- package/dist/chunk-2GU7OY3H.js +1 -0
- package/dist/{chunk-4IC626OL.js → chunk-2K7FGAT6.js} +1 -1
- package/dist/{chunk-PRVQAHWI.js → chunk-2O22LZKV.js} +1 -1
- package/dist/{chunk-NMBBTTIH.js → chunk-2RBIR3NM.js} +1 -1
- package/dist/chunk-2TMQG2UT.js +1 -0
- package/dist/chunk-2XZBQZ5R.js +7 -0
- package/dist/{chunk-Q4T2T2QE.js → chunk-33OHQUHZ.js} +1 -1
- package/dist/chunk-3AOQKI4B.js +1 -0
- package/dist/{chunk-OBEWZXOQ.js → chunk-3SPDFV5D.js} +1 -1
- package/dist/chunk-3YDYZ232.js +103 -0
- package/dist/chunk-4FFPTEKD.js +1 -0
- package/dist/chunk-4J32OHLY.js +1382 -0
- package/dist/chunk-4QTEPWEJ.js +283 -0
- package/dist/chunk-57PPQKJT.js +15 -0
- package/dist/{chunk-AGNMOFJS.js → chunk-5BKCIDMS.js} +1 -1
- package/dist/{chunk-JUVAGMIH.js → chunk-5C7HDTHJ.js} +1 -1
- package/dist/chunk-5FFHQTRC.js +4 -0
- package/dist/{chunk-2GK56X53.js → chunk-5FVB7JHP.js} +1 -1
- package/dist/{chunk-UYXEA3Y6.js → chunk-5H3VTG77.js} +1 -1
- package/dist/chunk-5O43334U.js +2 -0
- package/dist/chunk-5XDQ76DQ.js +1 -0
- package/dist/{chunk-PD5ZHJWI.js → chunk-636CTEW7.js} +1 -1
- package/dist/chunk-6JKGUQRD.js +1 -0
- package/dist/chunk-6KETAPWL.js +1 -0
- package/dist/{chunk-ULFWK45W.js → chunk-6LWOWDF4.js} +2 -2
- package/dist/chunk-7572RLUP.js +1 -0
- package/dist/chunk-762JWOWJ.js +5 -0
- package/dist/{chunk-IU2ZQ6TE.js → chunk-773TIA5M.js} +1 -1
- package/dist/{chunk-76R52ODR.js → chunk-7D45IAMQ.js} +1 -1
- package/dist/chunk-7FQFEB33.js +370 -0
- package/dist/chunk-7LV55VWE.js +1 -0
- package/dist/{chunk-QUTQDXSL.js → chunk-7UNQOKZW.js} +1 -1
- package/dist/chunk-A27NZMWB.js +1 -0
- package/dist/chunk-A4SBXDZB.js +14 -0
- package/dist/{chunk-4DCQNGUV.js → chunk-A5HKAMAC.js} +10 -10
- package/dist/{chunk-Z35BTAM6.js → chunk-AAK376RT.js} +1 -1
- package/dist/chunk-AERKD4TO.js +3 -0
- package/dist/{chunk-L2MGAEV3.js → chunk-ANBOLDON.js} +2 -2
- package/dist/{chunk-UJVH7FZS.js → chunk-AO3RFGNV.js} +1 -1
- package/dist/{chunk-KHSYW7I4.js → chunk-ATSMK66C.js} +1 -1
- package/dist/chunk-AU5EZQW7.js +5 -0
- package/dist/chunk-AVD3INWF.js +1 -0
- package/dist/chunk-AWEB5AQM.js +1 -0
- package/dist/chunk-AXNAGI32.js +1 -0
- package/dist/chunk-BL46CZ2M.js +2 -0
- package/dist/chunk-BQWK3C47.js +278 -0
- package/dist/chunk-CEHXOWA6.js +3 -0
- package/dist/{chunk-EKXY5COY.js → chunk-CFOXXOO2.js} +1 -1
- package/dist/{chunk-PIBY5DDZ.js → chunk-CRALWNNO.js} +1 -1
- package/dist/chunk-CV5EQGES.js +22 -0
- package/dist/chunk-CX5CC6P5.js +1 -0
- package/dist/chunk-DCLUZFT7.js +2 -0
- package/dist/{chunk-Q33IBIVJ.js → chunk-DNXYKGV2.js} +1 -1
- package/dist/chunk-DTIWUT2T.js +18 -0
- package/dist/{chunk-VICYNG2W.js → chunk-DYNH5SKT.js} +1 -1
- package/dist/chunk-DZQYG32N.js +2 -0
- package/dist/{chunk-FQWB2F75.js → chunk-E7DHELFH.js} +1 -1
- package/dist/chunk-EH7ZTFS4.js +613 -0
- package/dist/{chunk-P6XE4MH5.js → chunk-EJDWYASP.js} +1 -1
- package/dist/chunk-EKVTNWHM.js +1 -0
- package/dist/{chunk-6M3ZYNGO.js → chunk-ET2CGROE.js} +1 -1
- package/dist/chunk-EVZA2TCI.js +3 -0
- package/dist/{chunk-QSTEVZFQ.js → chunk-F3TMLDLC.js} +1 -1
- package/dist/chunk-FIYAECXH.js +28 -0
- package/dist/{chunk-WDC3KIZT.js → chunk-FKIVKNOV.js} +1 -1
- package/dist/chunk-FOFJBRSL.js +11 -0
- package/dist/chunk-FQ5ZZX2G.js +25 -0
- package/dist/chunk-G2LVUM7N.js +6 -0
- package/dist/chunk-G2OHWAY2.js +7 -0
- package/dist/chunk-G3JJLXPH.js +1 -0
- package/dist/chunk-G3RWLAOG.js +1 -0
- package/dist/chunk-G4OQABDT.js +836 -0
- package/dist/{chunk-KLMDWDT2.js → chunk-GB3YC4TI.js} +1 -1
- package/dist/{chunk-OCOY5MV2.js → chunk-GCN4O7HM.js} +1 -1
- package/dist/chunk-GDHD3TGC.js +6 -0
- package/dist/{chunk-JXW374CL.js → chunk-GJXINXSU.js} +11 -11
- package/dist/chunk-GWHV62YT.js +1 -0
- package/dist/chunk-HCTZN7L4.js +2 -0
- package/dist/{chunk-ZSBA6VIC.js → chunk-HDC5V7RY.js} +1 -1
- package/dist/{chunk-7NH7CHVI.js → chunk-HIQHYPLU.js} +1 -1
- package/dist/{chunk-XOTA6JTZ.js → chunk-HOSFU6UP.js} +3 -3
- package/dist/chunk-I22ZTRKK.js +3 -0
- package/dist/chunk-I4R7TML2.js +7 -0
- package/dist/{chunk-EENHXSWU.js → chunk-I5A6BPCP.js} +1 -1
- package/dist/chunk-IWOTLFOY.js +32 -0
- package/dist/{chunk-7UYZQN4V.js → chunk-J3H4LPN6.js} +3 -3
- package/dist/{chunk-XULPJ6UG.js → chunk-J3HX6ZGD.js} +1 -1
- package/dist/chunk-J3JPJCWP.js +1 -0
- package/dist/chunk-J5BRKYGE.js +294 -0
- package/dist/chunk-JAWKLBOB.js +3 -0
- package/dist/{chunk-MCVRONUY.js → chunk-JAWOP4HJ.js} +1 -1
- package/dist/{chunk-ZGK3LGCH.js → chunk-JCIN73BE.js} +1 -1
- package/dist/chunk-JEZ3PGVC.js +1 -0
- package/dist/{chunk-C7BTJ32Z.js → chunk-JJ6RM54S.js} +1 -1
- package/dist/chunk-JK3NIHTX.js +17 -0
- package/dist/chunk-JLE4NBMT.js +1 -0
- package/dist/chunk-JSOGPMWB.js +5 -0
- package/dist/chunk-JUYJZUYU.js +1 -0
- package/dist/chunk-KRQGLK2Q.js +3 -0
- package/dist/{chunk-3VZEETAV.js → chunk-KRZABRYT.js} +1 -1
- package/dist/{chunk-BS3BKORT.js → chunk-L2PC4MUV.js} +1 -1
- package/dist/chunk-LCZDC6EE.js +5 -0
- package/dist/chunk-LXVORHCQ.js +1 -0
- package/dist/chunk-M2YINBHF.js +32 -0
- package/dist/chunk-M7YFD4EV.js +10 -0
- package/dist/chunk-MEIEEENL.js +1 -0
- package/dist/chunk-MIDYZPO4.js +1 -0
- package/dist/chunk-MINZGZ4N.js +1 -0
- package/dist/chunk-MMIHHCMW.js +5 -0
- package/dist/{chunk-PRKBO42R.js → chunk-MPW2YJWU.js} +1 -1
- package/dist/chunk-MRS6LAY7.js +1 -0
- package/dist/chunk-N3CNWCC2.js +19 -0
- package/dist/{chunk-M2D7USAX.js → chunk-N3NE4MVN.js} +1 -1
- package/dist/chunk-N3YTDGFY.js +4 -0
- package/dist/{chunk-MHWV5RQV.js → chunk-N5LVGFDS.js} +2 -2
- package/dist/{chunk-QBSKKQBN.js → chunk-NILXAUUT.js} +1 -1
- package/dist/{chunk-5Y7GIF2W.js → chunk-NJOO5XJV.js} +1 -1
- package/dist/{chunk-ULQG3XQS.js → chunk-NNOSZ447.js} +1 -1
- package/dist/{chunk-6G6TMKXF.js → chunk-NTRAWIEJ.js} +21 -21
- package/dist/chunk-NWXDOCL5.js +1 -0
- package/dist/{chunk-2AJ5FI2K.js → chunk-OU3M32A2.js} +1 -1
- package/dist/chunk-OU4SKQTC.js +5 -0
- package/dist/chunk-OXJBYKMX.js +1 -0
- package/dist/chunk-OZBY45KT.js +1 -0
- package/dist/{chunk-75VPUOC5.js → chunk-P2OI2P2M.js} +1 -1
- package/dist/chunk-PCCK4YTE.js +1 -0
- package/dist/{chunk-6RE2SNCU.js → chunk-PFGYC53K.js} +1 -1
- package/dist/chunk-PMS4MNHB.js +6 -0
- package/dist/chunk-PNP5OKNZ.js +1 -0
- package/dist/{chunk-KN3WTTHZ.js → chunk-PXHY753L.js} +1 -1
- package/dist/chunk-Q73GEVSJ.js +11 -0
- package/dist/{chunk-5WVAHE5E.js → chunk-Q77MM2N2.js} +1 -1
- package/dist/chunk-Q7C44DX5.js +4 -0
- package/dist/chunk-QDVJJKLB.js +1 -0
- package/dist/{chunk-5CH3B62S.js → chunk-RJ5VF3QY.js} +1 -1
- package/dist/{chunk-E3EMHAJB.js → chunk-RKDZGK5K.js} +1 -1
- package/dist/{chunk-TYZXGSHO.js → chunk-RSRYC5ZF.js} +1 -1
- package/dist/chunk-S22NCNAJ.js +1 -0
- package/dist/chunk-S5IFJ737.js +3 -0
- package/dist/chunk-S6B2ADVR.js +8 -0
- package/dist/chunk-S7F5KFQP.js +1 -0
- package/dist/chunk-SSCYLDSX.js +3 -0
- package/dist/{chunk-QFWIDATO.js → chunk-STJ3LWFL.js} +1 -1
- package/dist/chunk-T3ERXB7F.js +8 -0
- package/dist/chunk-T4IV643Z.js +9 -0
- package/dist/chunk-T4NS63K4.js +16 -0
- package/dist/chunk-T6CC5WUU.js +159 -0
- package/dist/{chunk-3TNEIDOD.js → chunk-T7KHS6RF.js} +1 -1
- package/dist/{chunk-QYR5VPQA.js → chunk-TOLPNBZK.js} +1 -1
- package/dist/{chunk-DRFGABEB.js → chunk-TP7E54WN.js} +1 -1
- package/dist/chunk-TPCG6DCA.js +1 -0
- package/dist/{chunk-SXTMSGUE.js → chunk-TRYWVIVJ.js} +1 -1
- package/dist/chunk-TU47HMTL.js +1 -0
- package/dist/chunk-TUNUEOHO.js +3 -0
- package/dist/{chunk-MWY3A7O3.js → chunk-TY6BZTG3.js} +1 -1
- package/dist/chunk-TYMYIUIQ.js +1 -0
- package/dist/chunk-UB26DGTR.js +6 -0
- package/dist/chunk-UC7KMA6W.js +8 -0
- package/dist/chunk-UOHNRH6E.js +7 -0
- package/dist/{chunk-ZR76GGZ6.js → chunk-UQWFDL3F.js} +1 -1
- package/dist/chunk-USLYL5AC.js +1 -0
- package/dist/chunk-UTO4Z6P6.js +567 -0
- package/dist/{chunk-M2ZHFKPN.js → chunk-UU5P2IYU.js} +1 -1
- package/dist/chunk-UYSF234H.js +1 -0
- package/dist/chunk-VE35YELD.js +1 -0
- package/dist/{chunk-WSDN25F5.js → chunk-VI34CKV6.js} +1 -1
- package/dist/chunk-VJ6KDRZI.js +1 -0
- package/dist/{chunk-VBUZWRUL.js → chunk-VJEKDBGZ.js} +1 -1
- package/dist/chunk-VKWPEFWQ.js +1 -0
- package/dist/chunk-VPPWSKOY.js +1 -0
- package/dist/chunk-VRJTLVG3.js +1 -0
- package/dist/chunk-VUMUCNI7.js +1 -0
- package/dist/chunk-W7DDV2EY.js +1 -0
- package/dist/chunk-WA3YC5W4.js +15 -0
- package/dist/chunk-WHNWE7P2.js +1 -0
- package/dist/chunk-WVRGCNBZ.js +1 -0
- package/dist/{chunk-MOA33ZFO.js → chunk-WW7TENNA.js} +1 -1
- package/dist/{chunk-HZA6IAA4.js → chunk-XVUHUA36.js} +1 -1
- package/dist/{chunk-OLZHWPZP.js → chunk-XWPPBOGF.js} +1 -1
- package/dist/chunk-YIRFEW5M.js +1 -0
- package/dist/{chunk-KR6QDE7D.js → chunk-YL3TYQGT.js} +1 -1
- package/dist/{chunk-7MUKLZOL.js → chunk-YLQ3LNNY.js} +3 -3
- package/dist/chunk-YMAWEIUR.js +1 -0
- package/dist/chunk-YPBCSDFQ.js +1 -0
- package/dist/{chunk-KZOBF55B.js → chunk-YSIBRY6C.js} +1 -1
- package/dist/{chunk-KHTV6PBV.js → chunk-YVQXEPHY.js} +1 -1
- package/dist/{chunk-4LNCYIS3.js → chunk-ZDF5N422.js} +1 -1
- package/dist/{chunk-T4M5CWAO.js → chunk-ZG7BVVT2.js} +1 -1
- package/dist/chunk-ZGJ3DFTQ.js +9 -0
- package/dist/{chunk-NKQBEFPS.js → chunk-ZI7LK3LW.js} +1 -1
- package/dist/chunk-ZM75DSIW.js +1 -0
- package/dist/{chunk-URZPVSJZ.js → chunk-ZUKLGZOU.js} +66 -66
- package/dist/cli/commands/app/app-logs/sources.js +1 -2
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -9
- package/dist/cli/commands/app/bulk/status.js +1 -5
- package/dist/cli/commands/app/config/link.js +1 -4
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -3
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -22
- package/dist/cli/commands/app/dev/clean.js +1 -5
- package/dist/cli/commands/app/dev.js +1 -320
- package/dist/cli/commands/app/env/pull.js +1 -11
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -16
- package/dist/cli/commands/app/function/replay.js +1 -5
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -5
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -11
- package/dist/cli/commands/app/init.js +1 -10
- package/dist/cli/commands/app/logs.js +1 -2
- package/dist/cli/commands/app/release.js +1 -4
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -25
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/constants.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +12 -0
- package/dist/cli/commands/doc/fetch.js +1 -0
- package/dist/cli/commands/doc/search.d.ts +13 -0
- package/dist/cli/commands/doc/search.js +1 -0
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.d.ts +4 -0
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -15
- package/dist/cli/commands/theme/delete.js +1 -7
- package/dist/cli/commands/theme/dev.js +1 -26
- package/dist/cli/commands/theme/duplicate.js +1 -32
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -8
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -3
- package/dist/cli/commands/theme/open.js +1 -8
- package/dist/cli/commands/theme/package.js +1 -7
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -3
- package/dist/cli/commands/theme/publish.js +1 -7
- package/dist/cli/commands/theme/pull.js +1 -3
- package/dist/cli/commands/theme/push.js +1 -28
- package/dist/cli/commands/theme/rename.js +1 -6
- package/dist/cli/commands/theme/share.js +1 -3
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
- package/dist/cli/services/commands/doc/fetch.js +45 -0
- package/dist/cli/services/commands/doc/search.d.ts +1 -0
- package/dist/cli/services/commands/doc/search.js +47 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-UY3MDGGA.js +1 -0
- package/dist/configs/all.yml +3 -0
- package/dist/configs/recommended.yml +3 -0
- package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-3AICQCNU.js} +1 -1
- package/dist/data/filters.json +60 -0
- package/dist/data/latest.json +1 -1
- package/dist/data/setting.json +29 -9
- package/dist/data/shopify_system_translations.json +71 -19
- package/dist/data/tags.json +3 -3
- package/dist/deprecations-KNUMDRIU.js +1 -0
- package/dist/{devtools-OLOT2NY4.js → devtools-37DE4MUR.js} +1 -1
- package/dist/{devtools-UFRKBFGI.js → devtools-WAWU5KQL.js} +1 -1
- package/dist/dist-C5IV2YDQ.js +1 -0
- package/dist/dist-VL4KZWV2.js +1 -0
- package/dist/environments-YPRVO2CF.js +1 -0
- package/dist/error-XRBQTNFM.js +1 -0
- package/dist/error-handler-NI7D6GSY.js +1 -0
- package/dist/{estree-KI7NUW53.js → estree-JV5M77BA.js} +2 -2
- package/dist/{flow-MLHT7MTJ.js → flow-N4JYPYMQ.js} +1 -1
- package/dist/fs-LJWVNO4H.js +1 -0
- package/dist/{glimmer-HAJ4HQCW.js → glimmer-JEV3BXHR.js} +1 -1
- package/dist/{graphql-F7IHGXDT.js → graphql-DTF6MHYF.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/html-LVOJ3RQS.js +25 -0
- package/dist/{http-proxy-node16-Q5DZMBHC.js → http-proxy-node16-X2WAMUT5.js} +1 -1
- package/dist/index.js +23 -1175
- package/dist/is-global-W6ALVC5L.js +1 -0
- package/dist/is-wsl-UEMXYJPN.js +1 -0
- package/dist/{latest-version-EFWBOTWM.js → latest-version-32HXMWJ7.js} +1 -1
- package/dist/lib-AIKYSHWL.js +1 -0
- package/dist/lib-O5EZ4NVT.js +1 -0
- package/dist/lib-Q4PWEMFD.js +1 -0
- package/dist/lib-QJDPPAWN.js +1 -0
- package/dist/{local-MTKXSZ3I.js → local-GKEWZAIV.js} +1 -1
- package/dist/local-storage-ZOZMA22B.js +1 -0
- package/dist/{markdown-PLKL4IZK.js → markdown-J6CE6POI.js} +2 -2
- package/dist/{meriyah-AYZQ3BGY.js → meriyah-PNQQZQYI.js} +1 -1
- package/dist/metadata-UEUN64TK.js +1 -0
- package/dist/{morph-EMYAITFM.js → morph-CGOZEPPZ.js} +4 -4
- package/dist/{multipart-parser-Q4QJZK3V.js → multipart-parser-5NSSTW27.js} +1 -1
- package/dist/node-package-manager-4ASQQIIF.js +1 -0
- package/dist/notifications-system-HLXJCAMG.js +1 -0
- package/dist/{npa-ICFSA3NL.js → npa-A4YSCQ5Q.js} +1 -1
- package/dist/{open-VA7TLUIL.js → open-KLSGXBIW.js} +1 -1
- package/dist/out-CDCY25QC.js +1 -0
- package/dist/output-S6E37GJQ.js +1 -0
- package/dist/{path-CWUNINMX.js → path-MBXP7ZIC.js} +1 -1
- package/dist/{postcss-3FJQPJI2.js → postcss-Q36SHOML.js} +2 -2
- package/dist/{prettier-NVRHEAFO.js → prettier-EGVCP5CY.js} +1 -1
- package/dist/{source-map-3K6Y2OMO.js → source-map-E7FCCJL7.js} +1 -1
- package/dist/system-YQZNGSWB.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-5R4Y7PXE.js +1 -0
- package/dist/{typescript-ODJ335NU.js → typescript-WYPDGPSV.js} +1 -1
- package/dist/ui-D2FFWRK7.js +1 -0
- package/dist/upgrade-TVTCFMXM.js +1 -0
- package/dist/version-J6MDN7BZ.js +1 -0
- package/dist/version-RIRW5EXQ.js +1 -0
- package/dist/workerd-QOTT6UCO.js +18 -0
- package/dist/{yaml-BIHS2GQW.js → yaml-6KWCJ64X.js} +1 -1
- package/oclif.manifest.json +442 -9
- package/package.json +18 -12
- package/dist/analytics-5TEIW43T.js +0 -1
- package/dist/analytics-GG7CYCGL.js +0 -1
- package/dist/angular-VRDO2DBE.js +0 -4
- package/dist/chunk-3D4JXJPS.js +0 -2
- package/dist/chunk-3NBK56IK.js +0 -1
- package/dist/chunk-4ZGSSQC6.js +0 -1
- package/dist/chunk-54CAKCYR.js +0 -144
- package/dist/chunk-5UHQVR2Z.js +0 -1
- package/dist/chunk-67MH4AXG.js +0 -1
- package/dist/chunk-6CYMJ76C.js +0 -9
- package/dist/chunk-6HBRBQAN.js +0 -6
- package/dist/chunk-6ITDI2SD.js +0 -1
- package/dist/chunk-6SF3ZETE.js +0 -1
- package/dist/chunk-6WL4GA2M.js +0 -15
- package/dist/chunk-7ESSIN27.js +0 -567
- package/dist/chunk-7QIOUDCX.js +0 -8
- package/dist/chunk-7ZT57XT7.js +0 -2
- package/dist/chunk-AKML26N3.js +0 -7
- package/dist/chunk-C2IK2HY3.js +0 -4
- package/dist/chunk-CBXSPL4W.js +0 -1
- package/dist/chunk-CEIQFLCN.js +0 -1
- package/dist/chunk-CERXUPGC.js +0 -14
- package/dist/chunk-DCPBRWVC.js +0 -1
- package/dist/chunk-DN2IE3VY.js +0 -1
- package/dist/chunk-EQU4MUQJ.js +0 -1
- package/dist/chunk-F2QU6WWX.js +0 -1
- package/dist/chunk-FFQ5EWII.js +0 -294
- package/dist/chunk-FKMC5OFF.js +0 -1
- package/dist/chunk-FUOIGXI4.js +0 -1
- package/dist/chunk-FYFNUDOC.js +0 -19
- package/dist/chunk-G4BPGWJC.js +0 -1
- package/dist/chunk-GVQIPEZT.js +0 -1
- package/dist/chunk-GZS44BUW.js +0 -102
- package/dist/chunk-HIBX234C.js +0 -6
- package/dist/chunk-HRUGYZZ4.js +0 -2
- package/dist/chunk-HUIJMGVJ.js +0 -586
- package/dist/chunk-IX5ICOBV.js +0 -7
- package/dist/chunk-IZ3C5J7G.js +0 -5
- package/dist/chunk-JAO53IH2.js +0 -1
- package/dist/chunk-JCL2RRU6.js +0 -1
- package/dist/chunk-JQJBBXMX.js +0 -17
- package/dist/chunk-K2WUCOQJ.js +0 -32
- package/dist/chunk-K6CTUBFC.js +0 -12
- package/dist/chunk-KKTW6ZCA.js +0 -5
- package/dist/chunk-LDGAHMS7.js +0 -159
- package/dist/chunk-M3RYUB22.js +0 -1
- package/dist/chunk-M56NDIMD.js +0 -1
- package/dist/chunk-MWGBTOO3.js +0 -1
- package/dist/chunk-N5PQPIBF.js +0 -374
- package/dist/chunk-NF2ABOOU.js +0 -1
- package/dist/chunk-NPEVESCV.js +0 -3
- package/dist/chunk-OTY24J2W.js +0 -1
- package/dist/chunk-OY3PNHPZ.js +0 -103
- package/dist/chunk-PAP22IQO.js +0 -264
- package/dist/chunk-PYVAWAUO.js +0 -5
- package/dist/chunk-QA23HIH4.js +0 -1
- package/dist/chunk-S6EJHWJL.js +0 -1
- package/dist/chunk-SIMFNECG.js +0 -1
- package/dist/chunk-T542UQBY.js +0 -1
- package/dist/chunk-TQ6HYDVC.js +0 -1
- package/dist/chunk-UHJYPEY2.js +0 -1
- package/dist/chunk-UJXUSRQK.js +0 -1
- package/dist/chunk-UWJ73J4B.js +0 -1
- package/dist/chunk-UXVZ2P63.js +0 -1411
- package/dist/chunk-VPRTJUIN.js +0 -1
- package/dist/chunk-WFXRSKRK.js +0 -1
- package/dist/chunk-XEFQQPL4.js +0 -1
- package/dist/chunk-XITQULK4.js +0 -3
- package/dist/chunk-XONFGLJQ.js +0 -847
- package/dist/chunk-XR6GMMEU.js +0 -1
- package/dist/chunk-XXVEHDVO.js +0 -1
- package/dist/chunk-Y7JGYGV7.js +0 -1
- package/dist/chunk-YOZNRLFC.js +0 -1
- package/dist/chunk-YTNDFQJT.js +0 -3
- package/dist/chunk-ZBRRJDGW.js +0 -1
- package/dist/chunk-ZTMSBSYD.js +0 -1
- package/dist/conf-store-BMZFATRQ.js +0 -1
- package/dist/deprecations-7LHRXPXU.js +0 -1
- package/dist/dist-LDXPBYSZ.js +0 -1
- package/dist/dist-V63ILV6L.js +0 -1
- package/dist/environments-5X7S2O5U.js +0 -1
- package/dist/error-ZRLNNGIQ.js +0 -1
- package/dist/error-handler-PRZFHPRG.js +0 -1
- package/dist/fs-H7V6IRSH.js +0 -1
- package/dist/html-VSSXOZOQ.js +0 -25
- package/dist/is-global-IOWPCT2U.js +0 -1
- package/dist/is-wsl-FVUIXDOK.js +0 -1
- package/dist/lib-5L7UKDEK.js +0 -1
- package/dist/lib-C3VO2BQW.js +0 -1
- package/dist/lib-QB6I6CTC.js +0 -1
- package/dist/lib-WU3FEA6I.js +0 -1
- package/dist/local-storage-CYEL4MXF.js +0 -1
- package/dist/metadata-NOVBMKLM.js +0 -1
- package/dist/node-package-manager-N5CVNHA3.js +0 -1
- package/dist/notifications-system-YX2GPLDW.js +0 -1
- package/dist/out-WLY6KV4B.js +0 -1
- package/dist/output-Q46DT46U.js +0 -1
- package/dist/system-E6Q3OBX3.js +0 -1
- package/dist/typescript-K5CWIA4V.js +0 -1
- package/dist/ui-WRS2IDPP.js +0 -1
- package/dist/upgrade-TKUN2M5P.js +0 -1
- package/dist/version-5W5RVAPA.js +0 -1
- package/dist/version-BQJ3FPXD.js +0 -1
- package/dist/workerd-GOK6GWEX.js +0 -18
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as U,c as w}from"./chunk-
|
|
1
|
+
import{b as U,c as w}from"./chunk-MPW2YJWU.js";import{g as F}from"./chunk-VKWPEFWQ.js";F();var f=0,t={START_BOUNDARY:f++,HEADER_FIELD_START:f++,HEADER_FIELD:f++,HEADER_VALUE_START:f++,HEADER_VALUE:f++,HEADER_VALUE_ALMOST_DONE:f++,HEADERS_ALMOST_DONE:f++,PART_DATA_START:f++,PART_DATA:f++,END:f++},B=1,_={PART_BOUNDARY:B,LAST_BOUNDARY:B*=2},O=10,g=13,V=32,m=45,Y=58,x=97,C=122,I=u=>u|32,R=()=>{},y=class{constructor(o){this.index=0,this.flags=0,this.onHeaderEnd=R,this.onHeaderField=R,this.onHeadersEnd=R,this.onHeaderValue=R,this.onPartBegin=R,this.onPartData=R,this.onPartEnd=R,this.boundaryChars={},o=`\r
|
|
2
2
|
--`+o;let n=new Uint8Array(o.length);for(let r=0;r<o.length;r++)n[r]=o.charCodeAt(r),this.boundaryChars[n[r]]=!0;this.boundary=n,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=t.START_BOUNDARY}write(o){let n=0,r=o.length,E=this.index,{lookbehind:l,boundary:d,boundaryChars:H,index:e,state:i,flags:A}=this,b=this.boundary.length,p=b-1,N=o.length,a,S,h=c=>{this[c+"Mark"]=n},s=c=>{delete this[c+"Mark"]},D=(c,P,T,k)=>{(P===void 0||P!==T)&&this[c](k&&k.subarray(P,T))},L=(c,P)=>{let T=c+"Mark";T in this&&(P?(D(c,this[T],n,o),delete this[T]):(D(c,this[T],o.length,o),this[T]=0))};for(n=0;n<r;n++)switch(a=o[n],i){case t.START_BOUNDARY:if(e===d.length-2){if(a===m)A|=_.LAST_BOUNDARY;else if(a!==g)return;e++;break}else if(e-1===d.length-2){if(A&_.LAST_BOUNDARY&&a===m)i=t.END,A=0;else if(!(A&_.LAST_BOUNDARY)&&a===O)e=0,D("onPartBegin"),i=t.HEADER_FIELD_START;else return;break}a!==d[e+2]&&(e=-2),a===d[e+2]&&e++;break;case t.HEADER_FIELD_START:i=t.HEADER_FIELD,h("onHeaderField"),e=0;case t.HEADER_FIELD:if(a===g){s("onHeaderField"),i=t.HEADERS_ALMOST_DONE;break}if(e++,a===m)break;if(a===Y){if(e===1)return;L("onHeaderField",!0),i=t.HEADER_VALUE_START;break}if(S=I(a),S<x||S>C)return;break;case t.HEADER_VALUE_START:if(a===V)break;h("onHeaderValue"),i=t.HEADER_VALUE;case t.HEADER_VALUE:a===g&&(L("onHeaderValue",!0),D("onHeaderEnd"),i=t.HEADER_VALUE_ALMOST_DONE);break;case t.HEADER_VALUE_ALMOST_DONE:if(a!==O)return;i=t.HEADER_FIELD_START;break;case t.HEADERS_ALMOST_DONE:if(a!==O)return;D("onHeadersEnd"),i=t.PART_DATA_START;break;case t.PART_DATA_START:i=t.PART_DATA,h("onPartData");case t.PART_DATA:if(E=e,e===0){for(n+=p;n<N&&!(o[n]in H);)n+=b;n-=p,a=o[n]}if(e<d.length)d[e]===a?(e===0&&L("onPartData",!0),e++):e=0;else if(e===d.length)e++,a===g?A|=_.PART_BOUNDARY:a===m?A|=_.LAST_BOUNDARY:e=0;else if(e-1===d.length)if(A&_.PART_BOUNDARY){if(e=0,a===O){A&=~_.PART_BOUNDARY,D("onPartEnd"),D("onPartBegin"),i=t.HEADER_FIELD_START;break}}else A&_.LAST_BOUNDARY&&a===m?(D("onPartEnd"),i=t.END,A=0):e=0;if(e>0)l[e-1]=a;else if(E>0){let c=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);D("onPartData",0,E,c),E=0,h("onPartData"),n--}break;case t.END:break;default:throw new Error(`Unexpected state entered: ${i}`)}L("onHeaderField"),L("onHeaderValue"),L("onPartData"),this.index=e,this.state=i,this.flags=A}end(){if(this.state===t.HEADER_FIELD_START&&this.index===0||this.state===t.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==t.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};function M(u){let o=u.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!o)return;let n=o[2]||o[3]||"",r=n.slice(n.lastIndexOf("\\")+1);return r=r.replace(/%22/g,'"'),r=r.replace(/&#(\d{4});/g,(E,l)=>String.fromCharCode(l)),r}async function Z(u,o){if(!/multipart/i.test(o))throw new TypeError("Failed to fetch");let n=o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)throw new TypeError("no or bad content-type header, no multipart boundary");let r=new y(n[1]||n[2]),E,l,d,H,e,i,A=[],b=new w,p=s=>{d+=h.decode(s,{stream:!0})},N=s=>{A.push(s)},a=()=>{let s=new U(A,i,{type:e});b.append(H,s)},S=()=>{b.append(H,d)},h=new TextDecoder("utf-8");h.decode(),r.onPartBegin=function(){r.onPartData=p,r.onPartEnd=S,E="",l="",d="",H="",e="",i=null,A.length=0},r.onHeaderField=function(s){E+=h.decode(s,{stream:!0})},r.onHeaderValue=function(s){l+=h.decode(s,{stream:!0})},r.onHeaderEnd=function(){if(l+=h.decode(),E=E.toLowerCase(),E==="content-disposition"){let s=l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);s&&(H=s[2]||s[3]||""),i=M(l),i&&(r.onPartData=N,r.onPartEnd=a)}else E==="content-type"&&(e=l);l="",E=""};for await(let s of u)r.write(s);return r.end(),b}export{Z as toFormData};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A,B,C,D,E,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-ANBOLDON.js";import"./chunk-HDC5V7RY.js";import"./chunk-N5LVGFDS.js";import"./chunk-NTRAWIEJ.js";import"./chunk-EJDWYASP.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-RJ5VF3QY.js";import"./chunk-VI34CKV6.js";import"./chunk-TPCG6DCA.js";import"./chunk-636CTEW7.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-3SPDFV5D.js";import"./chunk-7FQFEB33.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-S5IFJ737.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{k as FindUpAndReadPackageJsonNotFoundError,j as PackageJsonNotFoundError,i as UnknownPackageManagerError,z as addNPMDependencies,y as addNPMDependenciesIfNeeded,A as addNPMDependenciesWithoutVersionIfNeeded,C as addResolutionOrOverride,d as bunLockfile,v as checkForCachedNewVersion,u as checkForNewVersion,B as findUpAndReadPackageJson,s as getDependencies,m as getPackageManager,q as getPackageName,r as getPackageVersion,E as inferPackageManager,o as installNPMDependenciesRecursively,p as installNodeModules,f as lockfiles,g as lockfilesByManager,b as npmLockfile,h as packageManager,n as packageManagerBinaryCommandForDirectory,l as packageManagerFromUserAgent,c as pnpmLockfile,e as pnpmWorkspaceFile,x as readAndParsePackageJson,t as usesWorkspaces,w as versionSatisfies,D as writePackageJSON,a as yarnLockfile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f}from"./chunk-E7DHELFH.js";import"./chunk-G4OQABDT.js";import"./chunk-ZDF5N422.js";import"./chunk-ANBOLDON.js";import"./chunk-HDC5V7RY.js";import"./chunk-MPW2YJWU.js";import"./chunk-VPPWSKOY.js";import"./chunk-J3HX6ZGD.js";import"./chunk-T7KHS6RF.js";import"./chunk-N5LVGFDS.js";import"./chunk-WW7TENNA.js";import"./chunk-5C7HDTHJ.js";import"./chunk-NTRAWIEJ.js";import"./chunk-EJDWYASP.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-RJ5VF3QY.js";import"./chunk-VI34CKV6.js";import"./chunk-TPCG6DCA.js";import"./chunk-636CTEW7.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-3SPDFV5D.js";import"./chunk-7FQFEB33.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-S5IFJ737.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{c as fetchNotifications,d as fetchNotificationsInBackground,e as filterNotifications,b as getNotifications,a as showNotificationsIfNeeded,f as stringifyFilters};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as At}from"./chunk-75VPUOC5.js";import{a as vt}from"./chunk-HZA6IAA4.js";import{a as D,c as F,g as y}from"./chunk-VPRTJUIN.js";var st=F(N=>{"use strict";y();Object.defineProperty(N,"__esModule",{value:!0});N.LRUCache=void 0;var T=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tt=new Set,k=typeof process=="object"&&process?process:{},et=(e,t,i,s)=>{typeof k.emitWarning=="function"?k.emitWarning(e,t,i,s):console.error(`[${i}] ${t}: ${e}`)},j=globalThis.AbortController,Q=globalThis.AbortSignal;if(typeof j>"u"){Q=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},j=class{constructor(){t()}signal=new Q;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let e=k.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,et("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Et=e=>!tt.has(e),_=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),it=e=>_(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?z:null:null,z=class extends Array{constructor(t){super(t),this.fill(0)}},M=class e{heap;length;static#n=!1;static create(t){let i=it(t);if(!i)return[];e.#n=!0;let s=new e(t,i);return e.#n=!1,s}constructor(t,i){if(!e.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},q=class e{#n;#l;#e;#g;#x;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#w;#r;#s;#t;#f;#p;#c;#h;#b;#a;#S;#$;#d;#y;#_;#u;static unsafeExposeInternals(t){return{starts:t.#$,ttls:t.#d,sizes:t.#S,keyMap:t.#r,keyList:t.#s,valList:t.#t,next:t.#f,prev:t.#p,get head(){return t.#c},get tail(){return t.#h},free:t.#b,isBackgroundFetch:i=>t.#i(i),backgroundFetch:(i,s,n,r)=>t.#W(i,s,n,r),moveToTail:i=>t.#F(i),indexes:i=>t.#v(i),rindexes:i=>t.#A(i),isStale:i=>t.#m(i)}}get max(){return this.#n}get maxSize(){return this.#l}get calculatedSize(){return this.#w}get size(){return this.#o}get fetchMethod(){return this.#x}get memoMethod(){return this.#T}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(t){let{max:i=0,ttl:s,ttlResolution:n=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:h,dispose:f,disposeAfter:w,noDisposeOnSet:p,noUpdateTTL:m,maxSize:d=0,maxEntrySize:A=0,sizeCalculation:l,fetchMethod:S,memoMethod:c,noDeleteOnFetchRejection:$,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:v,ignoreFetchAbort:W}=t;if(i!==0&&!_(i))throw new TypeError("max option must be a nonnegative integer");let O=i?it(i):Array;if(!O)throw new Error("invalid max value: "+i);if(this.#n=i,this.#l=d,this.maxEntrySize=A||this.#l,this.sizeCalculation=l,this.sizeCalculation){if(!this.#l&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(c!==void 0&&typeof c!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=c,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=S,this.#_=!!S,this.#r=new Map,this.#s=new Array(i).fill(void 0),this.#t=new Array(i).fill(void 0),this.#f=new O(i),this.#p=new O(i),this.#c=0,this.#h=0,this.#b=M.create(i),this.#o=0,this.#w=0,typeof f=="function"&&(this.#e=f),typeof w=="function"?(this.#g=w,this.#a=[]):(this.#g=void 0,this.#a=void 0),this.#y=!!this.#e,this.#u=!!this.#g,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!$,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!W,this.maxEntrySize!==0){if(this.#l!==0&&!_(this.#l))throw new TypeError("maxSize must be a positive integer if specified");if(!_(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=_(n)||n===0?n:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!_(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}if(this.#n===0&&this.ttl===0&&this.#l===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#l){let P="LRU_CACHE_UNBOUNDED";Et(P)&&(tt.add(P),et("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,e))}}getRemainingTTL(t){return this.#r.has(t)?1/0:0}#D(){let t=new z(this.#n),i=new z(this.#n);this.#d=t,this.#$=i,this.#L=(r,o,a=T.now())=>{if(i[r]=o!==0?a:0,t[r]=o,o!==0&&this.ttlAutopurge){let h=setTimeout(()=>{this.#m(r)&&this.#E(this.#s[r],"expire")},o+1);h.unref&&h.unref()}},this.#R=r=>{i[r]=t[r]!==0?T.now():0},this.#O=(r,o)=>{if(t[o]){let a=t[o],h=i[o];if(!a||!h)return;r.ttl=a,r.start=h,r.now=s||n();let f=r.now-h;r.remainingTTL=a-f}};let s=0,n=()=>{let r=T.now();if(this.ttlResolution>0){s=r;let o=setTimeout(()=>s=0,this.ttlResolution);o.unref&&o.unref()}return r};this.getRemainingTTL=r=>{let o=this.#r.get(r);if(o===void 0)return 0;let a=t[o],h=i[o];if(!a||!h)return 1/0;let f=(s||n())-h;return a-f},this.#m=r=>{let o=i[r],a=t[r];return!!a&&!!o&&(s||n())-o>a}}#R=()=>{};#O=()=>{};#L=()=>{};#m=()=>!1;#H(){let t=new z(this.#n);this.#w=0,this.#S=t,this.#C=i=>{this.#w-=t[i],t[i]=0},this.#I=(i,s,n,r)=>{if(this.#i(s))return 0;if(!_(n))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(n=r(s,i),!_(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#z=(i,s,n)=>{if(t[i]=s,this.#l){let r=this.#l-t[i];for(;this.#w>r;)this.#U(!0)}this.#w+=t[i],n&&(n.entrySize=s,n.totalCalculatedSize=this.#w)}}#C=t=>{};#z=(t,i,s)=>{};#I=(t,i,s,n)=>{if(s||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#v({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#h;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#c));)i=this.#p[i]}*#A({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#c;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#h));)i=this.#f[i]}#P(t){return t!==void 0&&this.#r.get(this.#s[t])===t}*entries(){for(let t of this.#v())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*rentries(){for(let t of this.#A())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*keys(){for(let t of this.#v()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*rkeys(){for(let t of this.#A()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*values(){for(let t of this.#v())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#A())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,i={}){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;if(r!==void 0&&t(r,this.#s[s],this))return this.get(this.#s[s],i)}}forEach(t,i=this){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}rforEach(t,i=this){for(let s of this.#A()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}purgeStale(){let t=!1;for(let i of this.#A({allowStale:!0}))this.#m(i)&&(this.#E(this.#s[i],"expire"),t=!0);return t}info(t){let i=this.#r.get(t);if(i===void 0)return;let s=this.#t[i],n=this.#i(s)?s.__staleWhileFetching:s;if(n===void 0)return;let r={value:n};if(this.#d&&this.#$){let o=this.#d[i],a=this.#$[i];if(o&&a){let h=o-(T.now()-a);r.ttl=h,r.start=Date.now()}}return this.#S&&(r.size=this.#S[i]),r}dump(){let t=[];for(let i of this.#v({allowStale:!0})){let s=this.#s[i],n=this.#t[i],r=this.#i(n)?n.__staleWhileFetching:n;if(r===void 0||s===void 0)continue;let o={value:r};if(this.#d&&this.#$){o.ttl=this.#d[i];let a=T.now()-this.#$[i];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[i]),t.unshift([s,o])}return t}load(t){this.clear();for(let[i,s]of t){if(s.start){let n=Date.now()-s.start;s.start=T.now()-n}this.set(i,s.value,s)}}set(t,i,s={}){if(i===void 0)return this.delete(t),this;let{ttl:n=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:h}=s,{noUpdateTTL:f=this.noUpdateTTL}=s,w=this.#I(t,i,s.size||0,a);if(this.maxEntrySize&&w>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.#E(t,"set"),this;let p=this.#o===0?void 0:this.#r.get(t);if(p===void 0)p=this.#o===0?this.#h:this.#b.length!==0?this.#b.pop():this.#o===this.#n?this.#U(!1):this.#o,this.#s[p]=t,this.#t[p]=i,this.#r.set(t,p),this.#f[this.#h]=p,this.#p[p]=this.#h,this.#h=p,this.#o++,this.#z(p,w,h),h&&(h.set="add"),f=!1;else{this.#F(p);let m=this.#t[p];if(i!==m){if(this.#_&&this.#i(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=m;d!==void 0&&!o&&(this.#y&&this.#e?.(d,t,"set"),this.#u&&this.#a?.push([d,t,"set"]))}else o||(this.#y&&this.#e?.(m,t,"set"),this.#u&&this.#a?.push([m,t,"set"]));if(this.#C(p),this.#z(p,w,h),this.#t[p]=i,h){h.set="replace";let d=m&&this.#i(m)?m.__staleWhileFetching:m;d!==void 0&&(h.oldValue=d)}}else h&&(h.set="update")}if(n!==0&&!this.#d&&this.#D(),this.#d&&(f||this.#L(p,n,r),h&&this.#O(h,p)),!o&&this.#u&&this.#a){let m=this.#a,d;for(;d=m?.shift();)this.#g?.(...d)}return this}pop(){try{for(;this.#o;){let t=this.#t[this.#c];if(this.#U(!0),this.#i(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#u&&this.#a){let t=this.#a,i;for(;i=t?.shift();)this.#g?.(...i)}}}#U(t){let i=this.#c,s=this.#s[i],n=this.#t[i];return this.#_&&this.#i(n)?n.__abortController.abort(new Error("evicted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(n,s,"evict"),this.#u&&this.#a?.push([n,s,"evict"])),this.#C(i),t&&(this.#s[i]=void 0,this.#t[i]=void 0,this.#b.push(i)),this.#o===1?(this.#c=this.#h=0,this.#b.length=0):this.#c=this.#f[i],this.#r.delete(s),this.#o--,i}has(t,i={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:n}=i,r=this.#r.get(t);if(r!==void 0){let o=this.#t[r];if(this.#i(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#m(r))n&&(n.has="stale",this.#O(n,r));else return s&&this.#R(r),n&&(n.has="hit",this.#O(n,r)),!0}else n&&(n.has="miss");return!1}peek(t,i={}){let{allowStale:s=this.allowStale}=i,n=this.#r.get(t);if(n===void 0||!s&&this.#m(n))return;let r=this.#t[n];return this.#i(r)?r.__staleWhileFetching:r}#W(t,i,s,n){let r=i===void 0?void 0:this.#t[i];if(this.#i(r))return r;let o=new j,{signal:a}=s;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let h={signal:o.signal,options:s,context:n},f=(l,S=!1)=>{let{aborted:c}=o.signal,$=s.ignoreFetchAbort&&l!==void 0;if(s.status&&(c&&!S?(s.status.fetchAborted=!0,s.status.fetchError=o.signal.reason,$&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),c&&!$&&!S)return p(o.signal.reason);let E=d;return this.#t[i]===d&&(l===void 0?E.__staleWhileFetching?this.#t[i]=E.__staleWhileFetching:this.#E(t,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(t,l,h.options))),l},w=l=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=l),p(l)),p=l=>{let{aborted:S}=o.signal,c=S&&s.allowStaleOnFetchAbort,$=c||s.allowStaleOnFetchRejection,E=$||s.noDeleteOnFetchRejection,b=d;if(this.#t[i]===d&&(!E||b.__staleWhileFetching===void 0?this.#E(t,"fetch"):c||(this.#t[i]=b.__staleWhileFetching)),$)return s.status&&b.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),b.__staleWhileFetching;if(b.__returned===b)throw l},m=(l,S)=>{let c=this.#x?.(t,r,h);c&&c instanceof Promise&&c.then($=>l($===void 0?void 0:$),S),o.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(l(void 0),s.allowStaleOnFetchAbort&&(l=$=>f($,!0)))})};s.status&&(s.status.fetchDispatched=!0);let d=new Promise(m).then(f,w),A=Object.assign(d,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return i===void 0?(this.set(t,A,{...h.options,status:void 0}),i=this.#r.get(t)):this.#t[i]=A,A}#i(t){if(!this.#_)return!1;let i=t;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof j}async fetch(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:h=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:l,forceRefresh:S=!1,status:c,signal:$}=i;if(!this.#_)return c&&(c.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,status:c});let E={allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:a,size:h,sizeCalculation:f,noUpdateTTL:w,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:A,ignoreFetchAbort:d,status:c,signal:$},b=this.#r.get(t);if(b===void 0){c&&(c.fetch="miss");let v=this.#W(t,b,E,l);return v.__returned=v}else{let v=this.#t[b];if(this.#i(v)){let Z=s&&v.__staleWhileFetching!==void 0;return c&&(c.fetch="inflight",Z&&(c.returnedStale=!0)),Z?v.__staleWhileFetching:v.__returned=v}let W=this.#m(b);if(!S&&!W)return c&&(c.fetch="hit"),this.#F(b),n&&this.#R(b),c&&this.#O(c,b),v;let O=this.#W(t,b,E,l),G=O.__staleWhileFetching!==void 0&&s;return c&&(c.fetch=W?"stale":"refresh",G&&W&&(c.returnedStale=!0)),G?O.__staleWhileFetching:O.__returned=O}}async forceFetch(t,i={}){let s=await this.fetch(t,i);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(t,i={}){let s=this.#T;if(!s)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:r,...o}=i,a=this.get(t,o);if(!r&&a!==void 0)return a;let h=s(t,a,{options:o,context:n});return this.set(t,h,o),h}get(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=i,a=this.#r.get(t);if(a!==void 0){let h=this.#t[a],f=this.#i(h);return o&&this.#O(o,a),this.#m(a)?(o&&(o.get="stale"),f?(o&&s&&h.__staleWhileFetching!==void 0&&(o.returnedStale=!0),s?h.__staleWhileFetching:void 0):(r||this.#E(t,"expire"),o&&s&&(o.returnedStale=!0),s?h:void 0)):(o&&(o.get="hit"),f?h.__staleWhileFetching:(this.#F(a),n&&this.#R(a),h))}else o&&(o.get="miss")}#j(t,i){this.#p[i]=t,this.#f[t]=i}#F(t){t!==this.#h&&(t===this.#c?this.#c=this.#f[t]:this.#j(this.#p[t],this.#f[t]),this.#j(this.#h,t),this.#h=t)}delete(t){return this.#E(t,"delete")}#E(t,i){let s=!1;if(this.#o!==0){let n=this.#r.get(t);if(n!==void 0)if(s=!0,this.#o===1)this.#N(i);else{this.#C(n);let r=this.#t[n];if(this.#i(r)?r.__abortController.abort(new Error("deleted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(r,t,i),this.#u&&this.#a?.push([r,t,i])),this.#r.delete(t),this.#s[n]=void 0,this.#t[n]=void 0,n===this.#h)this.#h=this.#p[n];else if(n===this.#c)this.#c=this.#f[n];else{let o=this.#p[n];this.#f[o]=this.#f[n];let a=this.#f[n];this.#p[a]=this.#p[n]}this.#o--,this.#b.push(n)}}if(this.#u&&this.#a?.length){let n=this.#a,r;for(;r=n?.shift();)this.#g?.(...r)}return s}clear(){return this.#N("delete")}#N(t){for(let i of this.#A({allowStale:!0})){let s=this.#t[i];if(this.#i(s))s.__abortController.abort(new Error("deleted"));else{let n=this.#s[i];this.#y&&this.#e?.(s,n,t),this.#u&&this.#a?.push([s,n,t])}}if(this.#r.clear(),this.#t.fill(void 0),this.#s.fill(void 0),this.#d&&this.#$&&(this.#d.fill(0),this.#$.fill(0)),this.#S&&this.#S.fill(0),this.#c=0,this.#h=0,this.#b.length=0,this.#w=0,this.#o=0,this.#u&&this.#a){let i=this.#a,s;for(;s=i?.shift();)this.#g?.(...s)}}};N.LRUCache=q});var ot=F((ee,rt)=>{"use strict";y();var u=(...e)=>e.every(t=>t)?e.join(""):"",g=e=>e?encodeURIComponent(e):"",nt=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Ot={sshtemplate:({domain:e,user:t,project:i,committish:s})=>`git@${e}:${t}/${i}.git${u("#",s)}`,sshurltemplate:({domain:e,user:t,project:i,committish:s})=>`git+ssh://git@${e}/${t}/${i}.git${u("#",s)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n,path:r})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r)}`,browsetemplate:({domain:e,user:t,project:i,committish:s,treepath:n})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s))}`,browsetreetemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:i,committish:s,blobpath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:i,treepath:s,committish:n})=>`https://${e}/${t}/${i}${u("/",s,"/",g(n))}#readme`,httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/raw/${g(s||"HEAD")}/${n}`,shortcuttemplate:({type:e,user:t,project:i,committish:s})=>`${e}:${t}/${i}${u("#",s)}`,pathtemplate:({user:e,project:t,committish:i})=>`${e}/${t}${u("#",i)}`,bugstemplate:({domain:e,user:t,project:i})=>`https://${e}/${t}/${i}/issues`,hashformat:nt},R={};R.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:i,committish:s,path:n})=>`https://${u(e,"@")}raw.githubusercontent.com/${t}/${i}/${g(s||"HEAD")}/${n}`,gittemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://codeload.${e}/${t}/${i}/tar.gz/${g(s||"HEAD")}`,extract:e=>{let[,t,i,s,n]=e.pathname.split("/",5);if(!(s&&s!=="tree")&&(s||(n=e.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:n}}};R.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,editpath:o})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r,o)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/get/${g(s||"HEAD")}.tar.gz`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["get"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};R.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/repository/archive.tar.gz?ref=${g(s||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let i=t.split("/"),s=i.pop();s.endsWith(".git")&&(s=s.slice(0,-4));let n=i.join("/");if(!(!n||!s))return{user:n,project:s,committish:e.hash.slice(1)}}};R.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:i})=>`git@${e}:${t}.git${u("#",i)}`,sshurltemplate:({domain:e,project:t,committish:i})=>`git+ssh://git@${e}/${t}.git${u("#",i)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n})=>`https://${e}/${t}/${i}${u("/",g(s))}/${n}`,browsetemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,browsetreetemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,browseblobtemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,docstemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,httpstemplate:({domain:e,project:t,committish:i})=>`git+https://${e}/${t}.git${u("#",i)}`,filetemplate:({user:e,project:t,committish:i,path:s})=>`https://gist.githubusercontent.com/${e}/${t}/raw${u("/",g(i))}/${s}`,shortcuttemplate:({type:e,project:t,committish:i})=>`${e}:${t}${u("#",i)}`,pathtemplate:({project:e,committish:t})=>`${e}${u("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:i})=>`git://${e}/${t}.git${u("#",i)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${g(t||"HEAD")}`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(s!=="raw"){if(!i){if(!t)return;i=t,t=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:t,project:i,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+nt(e)}};R.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/blob/${g(s)||"HEAD"}/${n}`,httpstemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}.git${u("#",s)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/archive/${g(s)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["archive"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(R))R[e]=Object.assign({},Ot,t);rt.exports=R});var K=F((se,at)=>{y();var _t=D("url"),V=(e,t,i)=>{let s=e.indexOf(i);return e.lastIndexOf(t,s>-1?s:1/0)},ht=e=>{try{return new _t.URL(e)}catch{}},Rt=(e,t)=>{let i=e.indexOf(":"),s=e.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(t,s))return e;let n=e.indexOf("@");return n>-1?n>i?`git+ssh://${e}`:e:e.indexOf("//")===i+1?e:`${e.slice(0,i+1)}//${e.slice(i+1)}`},Ct=e=>{let t=V(e,"@","#"),i=V(e,":","#");return i>t&&(e=e.slice(0,i)+"/"+e.slice(i+1)),V(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};at.exports=(e,t)=>{let i=t?Rt(e,t):e;return ht(i)||ht(Ct(i))}});var ct=F((re,lt)=>{"use strict";y();var Ft=K(),xt=e=>{let t=e.indexOf("#"),i=e.indexOf("/"),s=e.indexOf("/",i+1),n=e.indexOf(":"),r=/\s/.exec(e),o=e.indexOf("@"),a=!r||t>-1&&r.index>t,h=o===-1||t>-1&&o>t,f=n===-1||t>-1&&n>t,w=s===-1||t>-1&&s>t,p=i>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return a&&p&&m&&d&&h&&f&&w};lt.exports=(e,t,{gitHosts:i,protocols:s})=>{if(!e)return;let n=xt(e)?`github:${e}`:e,r=Ft(n,s);if(!r)return;let o=i.byShortcut[r.protocol],a=i.byDomain[r.hostname.startsWith("www.")?r.hostname.slice(4):r.hostname],h=o||a;if(!h)return;let f=i[o||a],w=null;s[r.protocol]?.auth&&(r.username||r.password)&&(w=`${r.username}${r.password?":"+r.password:""}`);let p=null,m=null,d=null,A=null;try{if(o){let l=r.pathname.startsWith("/")?r.pathname.slice(1):r.pathname,S=l.indexOf("@");S>-1&&(l=l.slice(S+1));let c=l.lastIndexOf("/");c>-1?(m=decodeURIComponent(l.slice(0,c)),m||(m=null),d=decodeURIComponent(l.slice(c+1))):d=decodeURIComponent(l),d.endsWith(".git")&&(d=d.slice(0,-4)),r.hash&&(p=decodeURIComponent(r.hash.slice(1))),A="shortcut"}else{if(!f.protocols.includes(r.protocol))return;let l=f.extract(r);if(!l)return;m=l.user&&decodeURIComponent(l.user),d=decodeURIComponent(l.project),p=decodeURIComponent(l.committish),A=s[r.protocol]?.name||r.protocol.slice(0,-1)}}catch(l){if(l instanceof URIError)return;throw l}return[h,m,w,d,p,A,t]}});var ut=F((he,ft)=>{"use strict";y();var{LRUCache:Tt}=st(),zt=ot(),Ut=ct(),Wt=K(),Y=new Tt({max:1e3}),H=class e{constructor(t,i,s,n,r,o,a={}){Object.assign(this,e.#n[t],{type:t,user:i,auth:s,project:n,committish:r,default:o,opts:a})}static#n={byShortcut:{},byDomain:{}};static#l={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,i){e.#n[t]=i,e.#n.byDomain[i.domain]=t,e.#n.byShortcut[`${t}:`]=t,e.#l[`${t}:`]={name:t}}static fromUrl(t,i){if(typeof t!="string")return;let s=t+JSON.stringify(i||{});if(!Y.has(s)){let n=Ut(t,i,{gitHosts:e.#n,protocols:e.#l});Y.set(s,n?new e(...n):void 0)}return Y.get(s)}static parseUrl(t){return Wt(t)}#e(t,i){if(typeof t!="function")return null;let s={...this,...this.opts,...i};s.path||(s.path=""),s.path.startsWith("/")&&(s.path=s.path.slice(1)),s.noCommittish&&(s.committish=null);let n=t(s);return s.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...i){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof i[0]!="string"?this.#e(this.browsetreetemplate,{...i[0],path:t}):this.#e(this.browsetreetemplate,{...i[1],fragment:i[0],path:t})}browseFile(t,...i){return typeof i[0]!="string"?this.#e(this.browseblobtemplate,{...i[0],path:t}):this.#e(this.browseblobtemplate,{...i[1],fragment:i[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,i){return this.#e(this.filetemplate,{...i,path:t})}edit(t,i){return this.#e(this.edittemplate,{...i,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(zt))H.addHost(e,t);ft.exports=H});var dt=F((le,pt)=>{y();var Dt=Symbol("proc-log.meta");pt.exports={META:Dt,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function i(){return process.emit("time","end",e)}if(typeof t=="function"){let s=t();return s&&s.finally?s.finally(i):(i(),s)}return i},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let i=e();return i&&i.finally?i.finally(t):(t(),i)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,i,s=new Promise((n,r)=>{t=n,i=r});return process.emit("input","read",t,i,...e),s}}}});var Jt=F((fe,I)=>{y();I.exports=L;I.exports.resolve=yt;I.exports.toPurl=Ht;I.exports.Result=U;var{URL:x}=D("url"),Lt=ut(),mt=vt(),C=global.FAKE_WINDOWS?D("path").win32:D("path"),bt=At(),{homedir:It}=D("os"),{log:Pt}=dt(),J=process.platform==="win32"||global.FAKE_WINDOWS,St=J?/\\|[/]/:/[/]/,$t=/^(?:git[+])?[a-z]+:/i,jt=/^[^@]+@[^:.]+\.[^:]+:.+$/i,X=/[.](?:tgz|tar.gz|tar)$/i;function L(e,t){let i,s;if(typeof e=="object")return e instanceof U&&(!t||t===e.where)?e:e.name&&e.rawSpec?L.resolve(e.name,e.rawSpec,t||e.where):L(e.raw,t||e.where);let n=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@"),r=n>0?e.slice(0,n):e;return $t.test(e)?s=e:jt.test(e)?s=`git+ssh://${e}`:r[0]!=="@"&&(St.test(r)||X.test(r))?s=e:n>0?(i=r,s=e.slice(n+1)||"*"):bt(e).validForOldPackages?(i=e,s="*"):s=e,yt(i,s,t,e)}var Nt=J?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function yt(e,t,i,s){let n=new U({raw:s,name:e,rawSpec:t,fromArgument:s!=null});if(e&&n.setName(e),t&&(Nt.test(t)||/^file:/i.test(t)))return wt(n,i);if(t&&/^npm:/i.test(t))return Yt(n,i);let r=Lt.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return r?qt(n,r):t&&$t.test(t)?Kt(n):t&&(St.test(t)||X.test(t))?wt(n,i):Bt(n)}var gt="https://registry.npmjs.org";function Ht(e,t=gt){let i=L(e);if(i.type!=="version")throw Mt(i.type,i.raw);let s="pkg:npm/"+i.name.replace(/^@/,"%40")+"@"+i.rawSpec;return t!==gt&&(s+="?repository_url="+t),s}function Gt(e,t,i){let s=new Error(`Invalid package name "${e}" of package "${i}": ${t.errors.join("; ")}.`);return s.code="EINVALIDPACKAGENAME",s}function kt(e,t){let i=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return i.code="EINVALIDTAGNAME",i}function Mt(e,t){let i=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return i.code="EINVALIDPURLTYPE",i}function U(e){this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null?this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec:this.raw=e.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name&&this.setName(e.name),this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}U.prototype.setName=function(e){let t=bt(e);if(!t.validForOldPackages)throw Gt(e,t,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this};U.prototype.toString=function(){let e=[];this.name!=null&&this.name!==""&&e.push(this.name);let t=this.saveSpec||this.fetchSpec||this.rawSpec;return t!=null&&t!==""&&e.push(t),e.length?e.join("@"):this.raw};U.prototype.toJSON=function(){let e=Object.assign({},this);return delete e.hosted,e};function B(e,t){if(!t){e.gitCommittish=null;return}for(let i of t.split("::")){if(!i.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=i;continue}let[s,n]=i.split(":");if(s==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(n);continue}if(s==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${n}`;continue}Pt.warn("npm-package-arg",`ignoring unknown key "${s}"`)}}function wt(e,t){t||(t=process.cwd()),e.type=X.test(e.rawSpec)?"file":"directory",e.where=t;let i,s,r=(/^file:/.test(e.rawSpec)?"":"file:")+e.rawSpec,o=r.replace(/^file:/,"");try{s=new x(r,`file://${C.resolve(t)}/`),i=new x(r)}catch(f){let w=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(w,{raw:e.rawSpec,spec:e,where:t,originalError:f})}if(s.host&&s.host!=="localhost"){let f=e.rawSpec.replace(/^file:\/\//,"file:///");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(o)){let f=e.rawSpec.replace(/^file:\/{1,3}/,"file:");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}let a=decodeURIComponent(i.pathname),h=decodeURIComponent(s.pathname);return J&&(a=a.replace(/^\/+([a-z]:\/)/i,"$1"),h=h.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(a)?(e.saveSpec=`file:${a.substr(1)}`,h=C.resolve(It(),a.substr(3))):C.isAbsolute(o)?e.saveSpec=`file:${C.resolve(h)}`:e.saveSpec=`file:${C.relative(t,h)}`,e.fetchSpec=C.resolve(t,h),e}function qt(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),B(e,t.committish),e}function Vt(e,t){let i=new Error(`Unsupported URL Type "${e}": ${t}`);return i.code="EUNSUPPORTEDPROTOCOL",i}function Kt(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let s=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(s&&!s[1].match(/:[0-9]+\/?.*$/i))return e.type="git",B(e,s[2]),e.fetchSpec=s[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let i=new x(t);switch(i.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",B(e,i.hash.slice(1)),i.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${i.host.toLowerCase()}:${i.pathname}`:(i.hash="",e.fetchSpec=i.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw Vt(i.protocol,t)}return e}function Yt(e,t){let i=L(e.rawSpec.substr(4),t);if(i.type==="alias")throw new Error("nested aliases not supported");if(!i.registry)throw new Error("aliases only work for registry deps");if(!i.name)throw new Error("aliases must have a name");return e.subSpec=i,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function Bt(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let i=mt.valid(t,!0),s=mt.validRange(t,!0);if(i)e.type="version";else if(s)e.type="range";else{if(encodeURIComponent(t)!==t)throw kt(t,e.raw);e.type="tag"}return e}});export default Jt();
|
|
1
|
+
import{a as At}from"./chunk-P2OI2P2M.js";import{a as vt}from"./chunk-CX5CC6P5.js";import{a as D,c as F,g as y}from"./chunk-VKWPEFWQ.js";var st=F(N=>{"use strict";y();Object.defineProperty(N,"__esModule",{value:!0});N.LRUCache=void 0;var T=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tt=new Set,k=typeof process=="object"&&process?process:{},et=(e,t,i,s)=>{typeof k.emitWarning=="function"?k.emitWarning(e,t,i,s):console.error(`[${i}] ${t}: ${e}`)},j=globalThis.AbortController,Q=globalThis.AbortSignal;if(typeof j>"u"){Q=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},j=class{constructor(){t()}signal=new Q;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let e=k.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,et("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Et=e=>!tt.has(e),_=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),it=e=>_(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?z:null:null,z=class extends Array{constructor(t){super(t),this.fill(0)}},M=class e{heap;length;static#n=!1;static create(t){let i=it(t);if(!i)return[];e.#n=!0;let s=new e(t,i);return e.#n=!1,s}constructor(t,i){if(!e.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},q=class e{#n;#l;#e;#g;#x;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#w;#r;#s;#t;#f;#p;#c;#h;#b;#a;#S;#$;#d;#y;#_;#u;static unsafeExposeInternals(t){return{starts:t.#$,ttls:t.#d,sizes:t.#S,keyMap:t.#r,keyList:t.#s,valList:t.#t,next:t.#f,prev:t.#p,get head(){return t.#c},get tail(){return t.#h},free:t.#b,isBackgroundFetch:i=>t.#i(i),backgroundFetch:(i,s,n,r)=>t.#W(i,s,n,r),moveToTail:i=>t.#F(i),indexes:i=>t.#v(i),rindexes:i=>t.#A(i),isStale:i=>t.#m(i)}}get max(){return this.#n}get maxSize(){return this.#l}get calculatedSize(){return this.#w}get size(){return this.#o}get fetchMethod(){return this.#x}get memoMethod(){return this.#T}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(t){let{max:i=0,ttl:s,ttlResolution:n=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:h,dispose:f,disposeAfter:w,noDisposeOnSet:p,noUpdateTTL:m,maxSize:d=0,maxEntrySize:A=0,sizeCalculation:l,fetchMethod:S,memoMethod:c,noDeleteOnFetchRejection:$,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:v,ignoreFetchAbort:W}=t;if(i!==0&&!_(i))throw new TypeError("max option must be a nonnegative integer");let O=i?it(i):Array;if(!O)throw new Error("invalid max value: "+i);if(this.#n=i,this.#l=d,this.maxEntrySize=A||this.#l,this.sizeCalculation=l,this.sizeCalculation){if(!this.#l&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(c!==void 0&&typeof c!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=c,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=S,this.#_=!!S,this.#r=new Map,this.#s=new Array(i).fill(void 0),this.#t=new Array(i).fill(void 0),this.#f=new O(i),this.#p=new O(i),this.#c=0,this.#h=0,this.#b=M.create(i),this.#o=0,this.#w=0,typeof f=="function"&&(this.#e=f),typeof w=="function"?(this.#g=w,this.#a=[]):(this.#g=void 0,this.#a=void 0),this.#y=!!this.#e,this.#u=!!this.#g,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!$,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!W,this.maxEntrySize!==0){if(this.#l!==0&&!_(this.#l))throw new TypeError("maxSize must be a positive integer if specified");if(!_(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=_(n)||n===0?n:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!_(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}if(this.#n===0&&this.ttl===0&&this.#l===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#l){let P="LRU_CACHE_UNBOUNDED";Et(P)&&(tt.add(P),et("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,e))}}getRemainingTTL(t){return this.#r.has(t)?1/0:0}#D(){let t=new z(this.#n),i=new z(this.#n);this.#d=t,this.#$=i,this.#L=(r,o,a=T.now())=>{if(i[r]=o!==0?a:0,t[r]=o,o!==0&&this.ttlAutopurge){let h=setTimeout(()=>{this.#m(r)&&this.#E(this.#s[r],"expire")},o+1);h.unref&&h.unref()}},this.#R=r=>{i[r]=t[r]!==0?T.now():0},this.#O=(r,o)=>{if(t[o]){let a=t[o],h=i[o];if(!a||!h)return;r.ttl=a,r.start=h,r.now=s||n();let f=r.now-h;r.remainingTTL=a-f}};let s=0,n=()=>{let r=T.now();if(this.ttlResolution>0){s=r;let o=setTimeout(()=>s=0,this.ttlResolution);o.unref&&o.unref()}return r};this.getRemainingTTL=r=>{let o=this.#r.get(r);if(o===void 0)return 0;let a=t[o],h=i[o];if(!a||!h)return 1/0;let f=(s||n())-h;return a-f},this.#m=r=>{let o=i[r],a=t[r];return!!a&&!!o&&(s||n())-o>a}}#R=()=>{};#O=()=>{};#L=()=>{};#m=()=>!1;#H(){let t=new z(this.#n);this.#w=0,this.#S=t,this.#C=i=>{this.#w-=t[i],t[i]=0},this.#I=(i,s,n,r)=>{if(this.#i(s))return 0;if(!_(n))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(n=r(s,i),!_(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#z=(i,s,n)=>{if(t[i]=s,this.#l){let r=this.#l-t[i];for(;this.#w>r;)this.#U(!0)}this.#w+=t[i],n&&(n.entrySize=s,n.totalCalculatedSize=this.#w)}}#C=t=>{};#z=(t,i,s)=>{};#I=(t,i,s,n)=>{if(s||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#v({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#h;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#c));)i=this.#p[i]}*#A({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#c;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#h));)i=this.#f[i]}#P(t){return t!==void 0&&this.#r.get(this.#s[t])===t}*entries(){for(let t of this.#v())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*rentries(){for(let t of this.#A())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*keys(){for(let t of this.#v()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*rkeys(){for(let t of this.#A()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*values(){for(let t of this.#v())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#A())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,i={}){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;if(r!==void 0&&t(r,this.#s[s],this))return this.get(this.#s[s],i)}}forEach(t,i=this){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}rforEach(t,i=this){for(let s of this.#A()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}purgeStale(){let t=!1;for(let i of this.#A({allowStale:!0}))this.#m(i)&&(this.#E(this.#s[i],"expire"),t=!0);return t}info(t){let i=this.#r.get(t);if(i===void 0)return;let s=this.#t[i],n=this.#i(s)?s.__staleWhileFetching:s;if(n===void 0)return;let r={value:n};if(this.#d&&this.#$){let o=this.#d[i],a=this.#$[i];if(o&&a){let h=o-(T.now()-a);r.ttl=h,r.start=Date.now()}}return this.#S&&(r.size=this.#S[i]),r}dump(){let t=[];for(let i of this.#v({allowStale:!0})){let s=this.#s[i],n=this.#t[i],r=this.#i(n)?n.__staleWhileFetching:n;if(r===void 0||s===void 0)continue;let o={value:r};if(this.#d&&this.#$){o.ttl=this.#d[i];let a=T.now()-this.#$[i];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[i]),t.unshift([s,o])}return t}load(t){this.clear();for(let[i,s]of t){if(s.start){let n=Date.now()-s.start;s.start=T.now()-n}this.set(i,s.value,s)}}set(t,i,s={}){if(i===void 0)return this.delete(t),this;let{ttl:n=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:h}=s,{noUpdateTTL:f=this.noUpdateTTL}=s,w=this.#I(t,i,s.size||0,a);if(this.maxEntrySize&&w>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.#E(t,"set"),this;let p=this.#o===0?void 0:this.#r.get(t);if(p===void 0)p=this.#o===0?this.#h:this.#b.length!==0?this.#b.pop():this.#o===this.#n?this.#U(!1):this.#o,this.#s[p]=t,this.#t[p]=i,this.#r.set(t,p),this.#f[this.#h]=p,this.#p[p]=this.#h,this.#h=p,this.#o++,this.#z(p,w,h),h&&(h.set="add"),f=!1;else{this.#F(p);let m=this.#t[p];if(i!==m){if(this.#_&&this.#i(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=m;d!==void 0&&!o&&(this.#y&&this.#e?.(d,t,"set"),this.#u&&this.#a?.push([d,t,"set"]))}else o||(this.#y&&this.#e?.(m,t,"set"),this.#u&&this.#a?.push([m,t,"set"]));if(this.#C(p),this.#z(p,w,h),this.#t[p]=i,h){h.set="replace";let d=m&&this.#i(m)?m.__staleWhileFetching:m;d!==void 0&&(h.oldValue=d)}}else h&&(h.set="update")}if(n!==0&&!this.#d&&this.#D(),this.#d&&(f||this.#L(p,n,r),h&&this.#O(h,p)),!o&&this.#u&&this.#a){let m=this.#a,d;for(;d=m?.shift();)this.#g?.(...d)}return this}pop(){try{for(;this.#o;){let t=this.#t[this.#c];if(this.#U(!0),this.#i(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#u&&this.#a){let t=this.#a,i;for(;i=t?.shift();)this.#g?.(...i)}}}#U(t){let i=this.#c,s=this.#s[i],n=this.#t[i];return this.#_&&this.#i(n)?n.__abortController.abort(new Error("evicted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(n,s,"evict"),this.#u&&this.#a?.push([n,s,"evict"])),this.#C(i),t&&(this.#s[i]=void 0,this.#t[i]=void 0,this.#b.push(i)),this.#o===1?(this.#c=this.#h=0,this.#b.length=0):this.#c=this.#f[i],this.#r.delete(s),this.#o--,i}has(t,i={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:n}=i,r=this.#r.get(t);if(r!==void 0){let o=this.#t[r];if(this.#i(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#m(r))n&&(n.has="stale",this.#O(n,r));else return s&&this.#R(r),n&&(n.has="hit",this.#O(n,r)),!0}else n&&(n.has="miss");return!1}peek(t,i={}){let{allowStale:s=this.allowStale}=i,n=this.#r.get(t);if(n===void 0||!s&&this.#m(n))return;let r=this.#t[n];return this.#i(r)?r.__staleWhileFetching:r}#W(t,i,s,n){let r=i===void 0?void 0:this.#t[i];if(this.#i(r))return r;let o=new j,{signal:a}=s;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let h={signal:o.signal,options:s,context:n},f=(l,S=!1)=>{let{aborted:c}=o.signal,$=s.ignoreFetchAbort&&l!==void 0;if(s.status&&(c&&!S?(s.status.fetchAborted=!0,s.status.fetchError=o.signal.reason,$&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),c&&!$&&!S)return p(o.signal.reason);let E=d;return this.#t[i]===d&&(l===void 0?E.__staleWhileFetching?this.#t[i]=E.__staleWhileFetching:this.#E(t,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(t,l,h.options))),l},w=l=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=l),p(l)),p=l=>{let{aborted:S}=o.signal,c=S&&s.allowStaleOnFetchAbort,$=c||s.allowStaleOnFetchRejection,E=$||s.noDeleteOnFetchRejection,b=d;if(this.#t[i]===d&&(!E||b.__staleWhileFetching===void 0?this.#E(t,"fetch"):c||(this.#t[i]=b.__staleWhileFetching)),$)return s.status&&b.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),b.__staleWhileFetching;if(b.__returned===b)throw l},m=(l,S)=>{let c=this.#x?.(t,r,h);c&&c instanceof Promise&&c.then($=>l($===void 0?void 0:$),S),o.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(l(void 0),s.allowStaleOnFetchAbort&&(l=$=>f($,!0)))})};s.status&&(s.status.fetchDispatched=!0);let d=new Promise(m).then(f,w),A=Object.assign(d,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return i===void 0?(this.set(t,A,{...h.options,status:void 0}),i=this.#r.get(t)):this.#t[i]=A,A}#i(t){if(!this.#_)return!1;let i=t;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof j}async fetch(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:h=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:l,forceRefresh:S=!1,status:c,signal:$}=i;if(!this.#_)return c&&(c.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,status:c});let E={allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:a,size:h,sizeCalculation:f,noUpdateTTL:w,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:A,ignoreFetchAbort:d,status:c,signal:$},b=this.#r.get(t);if(b===void 0){c&&(c.fetch="miss");let v=this.#W(t,b,E,l);return v.__returned=v}else{let v=this.#t[b];if(this.#i(v)){let Z=s&&v.__staleWhileFetching!==void 0;return c&&(c.fetch="inflight",Z&&(c.returnedStale=!0)),Z?v.__staleWhileFetching:v.__returned=v}let W=this.#m(b);if(!S&&!W)return c&&(c.fetch="hit"),this.#F(b),n&&this.#R(b),c&&this.#O(c,b),v;let O=this.#W(t,b,E,l),G=O.__staleWhileFetching!==void 0&&s;return c&&(c.fetch=W?"stale":"refresh",G&&W&&(c.returnedStale=!0)),G?O.__staleWhileFetching:O.__returned=O}}async forceFetch(t,i={}){let s=await this.fetch(t,i);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(t,i={}){let s=this.#T;if(!s)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:r,...o}=i,a=this.get(t,o);if(!r&&a!==void 0)return a;let h=s(t,a,{options:o,context:n});return this.set(t,h,o),h}get(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=i,a=this.#r.get(t);if(a!==void 0){let h=this.#t[a],f=this.#i(h);return o&&this.#O(o,a),this.#m(a)?(o&&(o.get="stale"),f?(o&&s&&h.__staleWhileFetching!==void 0&&(o.returnedStale=!0),s?h.__staleWhileFetching:void 0):(r||this.#E(t,"expire"),o&&s&&(o.returnedStale=!0),s?h:void 0)):(o&&(o.get="hit"),f?h.__staleWhileFetching:(this.#F(a),n&&this.#R(a),h))}else o&&(o.get="miss")}#j(t,i){this.#p[i]=t,this.#f[t]=i}#F(t){t!==this.#h&&(t===this.#c?this.#c=this.#f[t]:this.#j(this.#p[t],this.#f[t]),this.#j(this.#h,t),this.#h=t)}delete(t){return this.#E(t,"delete")}#E(t,i){let s=!1;if(this.#o!==0){let n=this.#r.get(t);if(n!==void 0)if(s=!0,this.#o===1)this.#N(i);else{this.#C(n);let r=this.#t[n];if(this.#i(r)?r.__abortController.abort(new Error("deleted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(r,t,i),this.#u&&this.#a?.push([r,t,i])),this.#r.delete(t),this.#s[n]=void 0,this.#t[n]=void 0,n===this.#h)this.#h=this.#p[n];else if(n===this.#c)this.#c=this.#f[n];else{let o=this.#p[n];this.#f[o]=this.#f[n];let a=this.#f[n];this.#p[a]=this.#p[n]}this.#o--,this.#b.push(n)}}if(this.#u&&this.#a?.length){let n=this.#a,r;for(;r=n?.shift();)this.#g?.(...r)}return s}clear(){return this.#N("delete")}#N(t){for(let i of this.#A({allowStale:!0})){let s=this.#t[i];if(this.#i(s))s.__abortController.abort(new Error("deleted"));else{let n=this.#s[i];this.#y&&this.#e?.(s,n,t),this.#u&&this.#a?.push([s,n,t])}}if(this.#r.clear(),this.#t.fill(void 0),this.#s.fill(void 0),this.#d&&this.#$&&(this.#d.fill(0),this.#$.fill(0)),this.#S&&this.#S.fill(0),this.#c=0,this.#h=0,this.#b.length=0,this.#w=0,this.#o=0,this.#u&&this.#a){let i=this.#a,s;for(;s=i?.shift();)this.#g?.(...s)}}};N.LRUCache=q});var ot=F((ee,rt)=>{"use strict";y();var u=(...e)=>e.every(t=>t)?e.join(""):"",g=e=>e?encodeURIComponent(e):"",nt=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Ot={sshtemplate:({domain:e,user:t,project:i,committish:s})=>`git@${e}:${t}/${i}.git${u("#",s)}`,sshurltemplate:({domain:e,user:t,project:i,committish:s})=>`git+ssh://git@${e}/${t}/${i}.git${u("#",s)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n,path:r})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r)}`,browsetemplate:({domain:e,user:t,project:i,committish:s,treepath:n})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s))}`,browsetreetemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:i,committish:s,blobpath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:i,treepath:s,committish:n})=>`https://${e}/${t}/${i}${u("/",s,"/",g(n))}#readme`,httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/raw/${g(s||"HEAD")}/${n}`,shortcuttemplate:({type:e,user:t,project:i,committish:s})=>`${e}:${t}/${i}${u("#",s)}`,pathtemplate:({user:e,project:t,committish:i})=>`${e}/${t}${u("#",i)}`,bugstemplate:({domain:e,user:t,project:i})=>`https://${e}/${t}/${i}/issues`,hashformat:nt},R={};R.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:i,committish:s,path:n})=>`https://${u(e,"@")}raw.githubusercontent.com/${t}/${i}/${g(s||"HEAD")}/${n}`,gittemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://codeload.${e}/${t}/${i}/tar.gz/${g(s||"HEAD")}`,extract:e=>{let[,t,i,s,n]=e.pathname.split("/",5);if(!(s&&s!=="tree")&&(s||(n=e.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:n}}};R.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,editpath:o})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r,o)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/get/${g(s||"HEAD")}.tar.gz`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["get"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};R.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/repository/archive.tar.gz?ref=${g(s||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let i=t.split("/"),s=i.pop();s.endsWith(".git")&&(s=s.slice(0,-4));let n=i.join("/");if(!(!n||!s))return{user:n,project:s,committish:e.hash.slice(1)}}};R.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:i})=>`git@${e}:${t}.git${u("#",i)}`,sshurltemplate:({domain:e,project:t,committish:i})=>`git+ssh://git@${e}/${t}.git${u("#",i)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n})=>`https://${e}/${t}/${i}${u("/",g(s))}/${n}`,browsetemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,browsetreetemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,browseblobtemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,docstemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,httpstemplate:({domain:e,project:t,committish:i})=>`git+https://${e}/${t}.git${u("#",i)}`,filetemplate:({user:e,project:t,committish:i,path:s})=>`https://gist.githubusercontent.com/${e}/${t}/raw${u("/",g(i))}/${s}`,shortcuttemplate:({type:e,project:t,committish:i})=>`${e}:${t}${u("#",i)}`,pathtemplate:({project:e,committish:t})=>`${e}${u("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:i})=>`git://${e}/${t}.git${u("#",i)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${g(t||"HEAD")}`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(s!=="raw"){if(!i){if(!t)return;i=t,t=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:t,project:i,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+nt(e)}};R.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/blob/${g(s)||"HEAD"}/${n}`,httpstemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}.git${u("#",s)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/archive/${g(s)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["archive"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(R))R[e]=Object.assign({},Ot,t);rt.exports=R});var K=F((se,at)=>{y();var _t=D("url"),V=(e,t,i)=>{let s=e.indexOf(i);return e.lastIndexOf(t,s>-1?s:1/0)},ht=e=>{try{return new _t.URL(e)}catch{}},Rt=(e,t)=>{let i=e.indexOf(":"),s=e.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(t,s))return e;let n=e.indexOf("@");return n>-1?n>i?`git+ssh://${e}`:e:e.indexOf("//")===i+1?e:`${e.slice(0,i+1)}//${e.slice(i+1)}`},Ct=e=>{let t=V(e,"@","#"),i=V(e,":","#");return i>t&&(e=e.slice(0,i)+"/"+e.slice(i+1)),V(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};at.exports=(e,t)=>{let i=t?Rt(e,t):e;return ht(i)||ht(Ct(i))}});var ct=F((re,lt)=>{"use strict";y();var Ft=K(),xt=e=>{let t=e.indexOf("#"),i=e.indexOf("/"),s=e.indexOf("/",i+1),n=e.indexOf(":"),r=/\s/.exec(e),o=e.indexOf("@"),a=!r||t>-1&&r.index>t,h=o===-1||t>-1&&o>t,f=n===-1||t>-1&&n>t,w=s===-1||t>-1&&s>t,p=i>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return a&&p&&m&&d&&h&&f&&w};lt.exports=(e,t,{gitHosts:i,protocols:s})=>{if(!e)return;let n=xt(e)?`github:${e}`:e,r=Ft(n,s);if(!r)return;let o=i.byShortcut[r.protocol],a=i.byDomain[r.hostname.startsWith("www.")?r.hostname.slice(4):r.hostname],h=o||a;if(!h)return;let f=i[o||a],w=null;s[r.protocol]?.auth&&(r.username||r.password)&&(w=`${r.username}${r.password?":"+r.password:""}`);let p=null,m=null,d=null,A=null;try{if(o){let l=r.pathname.startsWith("/")?r.pathname.slice(1):r.pathname,S=l.indexOf("@");S>-1&&(l=l.slice(S+1));let c=l.lastIndexOf("/");c>-1?(m=decodeURIComponent(l.slice(0,c)),m||(m=null),d=decodeURIComponent(l.slice(c+1))):d=decodeURIComponent(l),d.endsWith(".git")&&(d=d.slice(0,-4)),r.hash&&(p=decodeURIComponent(r.hash.slice(1))),A="shortcut"}else{if(!f.protocols.includes(r.protocol))return;let l=f.extract(r);if(!l)return;m=l.user&&decodeURIComponent(l.user),d=decodeURIComponent(l.project),p=decodeURIComponent(l.committish),A=s[r.protocol]?.name||r.protocol.slice(0,-1)}}catch(l){if(l instanceof URIError)return;throw l}return[h,m,w,d,p,A,t]}});var ut=F((he,ft)=>{"use strict";y();var{LRUCache:Tt}=st(),zt=ot(),Ut=ct(),Wt=K(),Y=new Tt({max:1e3}),H=class e{constructor(t,i,s,n,r,o,a={}){Object.assign(this,e.#n[t],{type:t,user:i,auth:s,project:n,committish:r,default:o,opts:a})}static#n={byShortcut:{},byDomain:{}};static#l={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,i){e.#n[t]=i,e.#n.byDomain[i.domain]=t,e.#n.byShortcut[`${t}:`]=t,e.#l[`${t}:`]={name:t}}static fromUrl(t,i){if(typeof t!="string")return;let s=t+JSON.stringify(i||{});if(!Y.has(s)){let n=Ut(t,i,{gitHosts:e.#n,protocols:e.#l});Y.set(s,n?new e(...n):void 0)}return Y.get(s)}static parseUrl(t){return Wt(t)}#e(t,i){if(typeof t!="function")return null;let s={...this,...this.opts,...i};s.path||(s.path=""),s.path.startsWith("/")&&(s.path=s.path.slice(1)),s.noCommittish&&(s.committish=null);let n=t(s);return s.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...i){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof i[0]!="string"?this.#e(this.browsetreetemplate,{...i[0],path:t}):this.#e(this.browsetreetemplate,{...i[1],fragment:i[0],path:t})}browseFile(t,...i){return typeof i[0]!="string"?this.#e(this.browseblobtemplate,{...i[0],path:t}):this.#e(this.browseblobtemplate,{...i[1],fragment:i[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,i){return this.#e(this.filetemplate,{...i,path:t})}edit(t,i){return this.#e(this.edittemplate,{...i,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(zt))H.addHost(e,t);ft.exports=H});var dt=F((le,pt)=>{y();var Dt=Symbol("proc-log.meta");pt.exports={META:Dt,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function i(){return process.emit("time","end",e)}if(typeof t=="function"){let s=t();return s&&s.finally?s.finally(i):(i(),s)}return i},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let i=e();return i&&i.finally?i.finally(t):(t(),i)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,i,s=new Promise((n,r)=>{t=n,i=r});return process.emit("input","read",t,i,...e),s}}}});var Jt=F((fe,I)=>{y();I.exports=L;I.exports.resolve=yt;I.exports.toPurl=Ht;I.exports.Result=U;var{URL:x}=D("url"),Lt=ut(),mt=vt(),C=global.FAKE_WINDOWS?D("path").win32:D("path"),bt=At(),{homedir:It}=D("os"),{log:Pt}=dt(),J=process.platform==="win32"||global.FAKE_WINDOWS,St=J?/\\|[/]/:/[/]/,$t=/^(?:git[+])?[a-z]+:/i,jt=/^[^@]+@[^:.]+\.[^:]+:.+$/i,X=/[.](?:tgz|tar.gz|tar)$/i;function L(e,t){let i,s;if(typeof e=="object")return e instanceof U&&(!t||t===e.where)?e:e.name&&e.rawSpec?L.resolve(e.name,e.rawSpec,t||e.where):L(e.raw,t||e.where);let n=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@"),r=n>0?e.slice(0,n):e;return $t.test(e)?s=e:jt.test(e)?s=`git+ssh://${e}`:r[0]!=="@"&&(St.test(r)||X.test(r))?s=e:n>0?(i=r,s=e.slice(n+1)||"*"):bt(e).validForOldPackages?(i=e,s="*"):s=e,yt(i,s,t,e)}var Nt=J?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function yt(e,t,i,s){let n=new U({raw:s,name:e,rawSpec:t,fromArgument:s!=null});if(e&&n.setName(e),t&&(Nt.test(t)||/^file:/i.test(t)))return wt(n,i);if(t&&/^npm:/i.test(t))return Yt(n,i);let r=Lt.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return r?qt(n,r):t&&$t.test(t)?Kt(n):t&&(St.test(t)||X.test(t))?wt(n,i):Bt(n)}var gt="https://registry.npmjs.org";function Ht(e,t=gt){let i=L(e);if(i.type!=="version")throw Mt(i.type,i.raw);let s="pkg:npm/"+i.name.replace(/^@/,"%40")+"@"+i.rawSpec;return t!==gt&&(s+="?repository_url="+t),s}function Gt(e,t,i){let s=new Error(`Invalid package name "${e}" of package "${i}": ${t.errors.join("; ")}.`);return s.code="EINVALIDPACKAGENAME",s}function kt(e,t){let i=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return i.code="EINVALIDTAGNAME",i}function Mt(e,t){let i=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return i.code="EINVALIDPURLTYPE",i}function U(e){this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null?this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec:this.raw=e.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name&&this.setName(e.name),this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}U.prototype.setName=function(e){let t=bt(e);if(!t.validForOldPackages)throw Gt(e,t,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this};U.prototype.toString=function(){let e=[];this.name!=null&&this.name!==""&&e.push(this.name);let t=this.saveSpec||this.fetchSpec||this.rawSpec;return t!=null&&t!==""&&e.push(t),e.length?e.join("@"):this.raw};U.prototype.toJSON=function(){let e=Object.assign({},this);return delete e.hosted,e};function B(e,t){if(!t){e.gitCommittish=null;return}for(let i of t.split("::")){if(!i.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=i;continue}let[s,n]=i.split(":");if(s==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(n);continue}if(s==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${n}`;continue}Pt.warn("npm-package-arg",`ignoring unknown key "${s}"`)}}function wt(e,t){t||(t=process.cwd()),e.type=X.test(e.rawSpec)?"file":"directory",e.where=t;let i,s,r=(/^file:/.test(e.rawSpec)?"":"file:")+e.rawSpec,o=r.replace(/^file:/,"");try{s=new x(r,`file://${C.resolve(t)}/`),i=new x(r)}catch(f){let w=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(w,{raw:e.rawSpec,spec:e,where:t,originalError:f})}if(s.host&&s.host!=="localhost"){let f=e.rawSpec.replace(/^file:\/\//,"file:///");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(o)){let f=e.rawSpec.replace(/^file:\/{1,3}/,"file:");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}let a=decodeURIComponent(i.pathname),h=decodeURIComponent(s.pathname);return J&&(a=a.replace(/^\/+([a-z]:\/)/i,"$1"),h=h.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(a)?(e.saveSpec=`file:${a.substr(1)}`,h=C.resolve(It(),a.substr(3))):C.isAbsolute(o)?e.saveSpec=`file:${C.resolve(h)}`:e.saveSpec=`file:${C.relative(t,h)}`,e.fetchSpec=C.resolve(t,h),e}function qt(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),B(e,t.committish),e}function Vt(e,t){let i=new Error(`Unsupported URL Type "${e}": ${t}`);return i.code="EUNSUPPORTEDPROTOCOL",i}function Kt(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let s=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(s&&!s[1].match(/:[0-9]+\/?.*$/i))return e.type="git",B(e,s[2]),e.fetchSpec=s[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let i=new x(t);switch(i.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",B(e,i.hash.slice(1)),i.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${i.host.toLowerCase()}:${i.pathname}`:(i.hash="",e.fetchSpec=i.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw Vt(i.protocol,t)}return e}function Yt(e,t){let i=L(e.rawSpec.substr(4),t);if(i.type==="alias")throw new Error("nested aliases not supported");if(!i.registry)throw new Error("aliases only work for registry deps");if(!i.name)throw new Error("aliases must have a name");return e.subSpec=i,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function Bt(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let i=mt.valid(t,!0),s=mt.validRange(t,!0);if(i)e.type="version";else if(s)e.type="range";else{if(encodeURIComponent(t)!==t)throw kt(t,e.raw);e.type="tag"}return e}});export default Jt();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _,b as M}from"./chunk-
|
|
1
|
+
import{a as _,b as M}from"./chunk-I5A6BPCP.js";import{a as h,c as A,g as l}from"./chunk-VKWPEFWQ.js";var F=A((G,E)=>{"use strict";l();E.exports=(e,r,t)=>{let o=n=>Object.defineProperty(e,r,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){let n=t();return o(n),n},set(n){o(n)}}),e}});var I=A((N,$)=>{l();var W=h("path"),q=h("child_process"),{promises:d,constants:v}=h("fs"),p=M(),T=_(),x=F(),O=W.join(__dirname,"xdg-open"),{platform:c,arch:C}=process,z=()=>{try{return d.statSync("/run/.containerenv"),!0}catch{return!1}},w;function B(){return w===void 0&&(w=z()||T()),w}var X=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let t="/etc/wsl.conf",o=!1;try{await d.access(t,v.F_OK),o=!0}catch{}if(!o)return e;let n=await d.readFile(t,{encoding:"utf8"}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(n);return a?(r=a.groups.mountPoint.trim(),r=r.endsWith("/")?r:`${r}/`,r):e}})(),S=async(e,r)=>{let t;for(let o of e)try{return await r(o)}catch(n){t=n}throw t},g=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return S(e.app,i=>g({...e,app:i}));let{name:r,arguments:t=[]}=e.app||{};if(t=[...t],Array.isArray(r))return S(r,i=>g({...e,app:{name:i,arguments:t}}));let o,n=[],a={};if(c==="darwin")o="open",e.wait&&n.push("--wait-apps"),e.background&&n.push("--background"),e.newInstance&&n.push("--new"),r&&n.push("-a",r);else if(c==="win32"||p&&!B()&&!r){let i=await X();o=p?`${i}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,n.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),p||(a.windowsVerbatimArguments=!0);let s=["Start"];e.wait&&s.push("-Wait"),r?(s.push(`"\`"${r}\`""`,"-ArgumentList"),e.target&&t.unshift(e.target)):e.target&&s.push(`"${e.target}"`),t.length>0&&(t=t.map(f=>`"\`"${f}\`""`),s.push(t.join(","))),e.target=Buffer.from(s.join(" "),"utf16le").toString("base64")}else{if(r)o=r;else{let i=!__dirname||__dirname==="/",s=!1;try{await d.access(O,v.X_OK),s=!0}catch{}o=process.versions.electron||c==="android"||i||!s?"xdg-open":O}t.length>0&&n.push(...t),e.wait||(a.stdio="ignore",a.detached=!0)}e.target&&n.push(e.target),c==="darwin"&&t.length>0&&n.push("--args",...t);let u=q.spawn(o,n,a);return e.wait?new Promise((i,s)=>{u.once("error",s),u.once("close",f=>{if(!e.allowNonzeroExitCode&&f>0){s(new Error(`Exited with code ${f}`));return}i(u)})}):(u.unref(),u)},y=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return g({...r,target:e})},k=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:t=[]}=r||{};if(t!=null&&!Array.isArray(t))throw new TypeError("Expected `appArguments` as Array type");return g({...r,app:{name:e,arguments:t}})};function b(e){if(typeof e=="string"||Array.isArray(e))return e;let{[C]:r}=e;if(!r)throw new Error(`${C} is not supported`);return r}function P({[c]:e},{wsl:r}){if(r&&p)return b(r);if(!e)throw new Error(`${c} is not supported`);return b(e)}var m={};x(m,"chrome",()=>P({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));x(m,"firefox",()=>P({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));x(m,"edge",()=>P({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));y.apps=m;y.openApp=k;$.exports=y});export default I();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-VKWPEFWQ.js";export default a();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Eb as a,Fb as b,Gb as c,Hb as d,Ib as e,Jb as f,Kb as g,Lb as h,Mb as i,Nb as j,Ob as k,Pb as l,Qb as m,Rb as n,Sb as o,Tb as p,Ub as q,Vb as r,Wb as s,Xb as t}from"./chunk-7FQFEB33.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-S5IFJ737.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{a as TokenizedString,g as clearCollectedLogs,f as collectLog,e as collectedLogs,c as formatPackageManagerCommand,t as formatSection,p as itemToString,k as outputCompleted,d as outputContent,l as outputDebug,i as outputInfo,n as outputNewline,h as outputResult,j as outputSuccess,b as outputToken,m as outputWarn,q as outputWhereAppropriate,s as shouldDisplayColors,o as stringifyMessage,r as unstyled};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q}from"./chunk-
|
|
1
|
+
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q}from"./chunk-773TIA5M.js";import"./chunk-VKWPEFWQ.js";export{g as basename,j as commonParentDirectory,n as cwd,f as dirname,h as extname,e as isAbsolutePath,l as isSubpath,a as joinPath,m as moduleDirectory,b as normalizePath,i as parsePath,d as relativePath,k as relativizePath,c as resolvePath,q as sanitizeRelativePath,p as sniffForJson,o as sniffForPath};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as ns,g as Gt}from"./chunk-
|
|
1
|
+
import{b as ns,g as Gt}from"./chunk-VKWPEFWQ.js";function dn(e){return this[e<0?this.length+e:e]}function vn(e){if(typeof e=="string")return gr;if(Array.isArray(e))return wr;if(!e)return;let{type:s}=e;if(_r.has(s))return s}function wn(e){let s=e===null?"null":typeof e;if(s!=="string"&&s!=="object")return`Unexpected doc '${s}',
|
|
2
2
|
Expected it to be 'string' or 'object'.`;if(Me(e))throw new Error("doc is valid.");let i=Object.prototype.toString.call(e);if(i!=="[object Object]")return`Unexpected doc '${i}'.`;let r=gn([..._r].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
|
|
3
3
|
Expected it to be ${r}.`}function kn(e,s){if(typeof e=="string")return s(e);let i=new Map;return r(e);function r(o){if(i.has(o))return i.get(o);let u=a(o);return i.set(o,u),u}function a(o){switch(Me(o)){case wr:return s(o.map(r));case ot:return s({...o,parts:o.parts.map(r)});case it:return s({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case nt:{let{expandedStates:u,contents:p}=o;return u?(u=u.map(r),p=u[0]):p=r(p),s({...o,contents:p,expandedStates:u})}case Rt:case st:case kr:case Or:case Nt:return s({...o,contents:r(o.contents)});case gr:case br:case xr:case Tr:case _e:case Lt:return s(o);default:throw new xn(o)}}}function Tn(e){return e.type===_e&&!e.hard?e.soft?"":" ":e.type===it?e.flatContents:e}function On(e){return kn(e,Tn)}function Q(e){return de(e),{type:st,contents:e}}function Sn(e,s){return Cn(e),de(s),{type:Rt,contents:s,n:e}}function Ne(e){return Sn(-1,e)}function Ke(e){return _n(e),{type:ot,parts:e}}function Y(e,s={}){return de(e),Wt(s.expandedStates,!0),{type:nt,id:s.id,contents:e,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function Cr(e,s="",i={}){return de(e),s!==""&&de(s),{type:it,breakContents:e,flatContents:s,groupId:i.groupId}}function ce(e,s){de(e),Wt(s);let i=[];for(let r=0;r<s.length;r++)r!==0&&i.push(e),i.push(s[r]);return i}function En(e){return de(e),{type:Nt,contents:e}}function jn(e){return Array.isArray(e)&&e.length>0}function Mn(e,s){let{preferred:i,alternate:r}=s===!0||s==="'"?In:Pn,{length:a}=e,o=0,u=0;for(let p=0;p<a;p++){let y=e.charCodeAt(p);y===i.codePoint?o++:y===r.codePoint&&u++}return(o>u?r:i).character}function Nn(e,s){let i=s==='"'?"'":'"',r=F(0,e,Rn,(a,o,u)=>o?o===i?i:a:u===s?"\\"+u:u);return s+r+s}function Wn(e,s){qe(/^(?<quote>["']).*\k<quote>$/su.test(e));let i=e.slice(1,-1),r=s.parser==="json"||s.parser==="jsonc"||s.parser==="json5"&&s.quoteProps==="preserve"&&!s.singleQuote?'"':s.__isInHtmlAttribute?"'":$n(i,s.singleQuote);return e.charAt(0)===r?e:Ln(i,r)}function qn(e){return!!e?.[jr]}function Dn(e){let s=e.slice(0,Ae);if(s!=="---"&&s!=="+++")return;let i=e.indexOf(`
|
|
4
4
|
`,Ae);if(i===-1)return;let r=e.slice(Ae,i).trim(),a=e.indexOf(`
|
|
@@ -24,7 +24,7 @@ $1 $2
|
|
|
24
24
|
`)?`
|
|
25
25
|
`:`
|
|
26
26
|
|
|
27
|
-
`)+o}function So(e){return e.findAncestor(s=>s.type==="css-decl")?.prop?.toLowerCase()}function Eo(e){return Ao.has(e.toLowerCase())}function jo(e,s){return e.findAncestor(i=>i.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(s.toLowerCase())}function je(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Ye(e,s){return e.findAncestor(i=>i.type==="value-func")?.value?.toLowerCase()===s}function Io(e){return e.hasAncestor(s=>{if(s.type!=="css-rule")return!1;let i=s.raws?.selector;return i&&(i.startsWith(":import")||i.startsWith(":export"))})}function Re(e,s){let i=Array.isArray(s)?s:[s],r=e.findAncestor(a=>a.type==="css-atrule");return r&&i.includes(r.name.toLowerCase())}function Po(e){let{node:s}=e;return s.groups[0]?.value==="url"&&s.groups.length===2&&e.findAncestor(i=>i.type==="css-atrule")?.name==="import"}function Mo(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function $o(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function Ro(e){let{selector:s}=e;return s?typeof s=="string"&&/^@.+:.*$/u.test(s)||s.value&&/^@.+:.*$/u.test(s.value):!1}function No(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function Lo(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function Wo(e){return e.type==="value-word"&&e.value==="in"}function gt(e){return e.type==="value-operator"&&e.value==="*"}function xe(e){return e?.type==="value-operator"&&e.value==="/"}function le(e){return e.type==="value-operator"&&e.value==="+"}function ke(e){return e.type==="value-operator"&&e.value==="-"}function zo(e){return e.type==="value-operator"&&e.value==="%"}function ht(e){return gt(e)||xe(e)||le(e)||ke(e)||zo(e)}function Bo(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function qo(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function wt(e,s){return s.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Zt(e){return e.raws?.params&&/^\(\s*\)$/u.test(e.raws.params)}function ft(e){return e.name.startsWith("prettier-placeholder")}function Do(e){return e.prop.startsWith("@prettier-placeholder")}function Fo(e,s){return e.value==="$$"&&e.type==="value-func"&&s?.type==="value-word"&&!s.raws.before}function Uo(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function Vo(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function ue(e){return e?.raws?.before===""}function Dt(e){return e.type==="value-comma_group"&&e.groups?.[1]?.type==="value-colon"}function dt(e){return e.type==="value-paren_group"&&e.groups?.[0]&&Dt(e.groups[0])}function Dr(e,s){if(s.parser!=="scss")return!1;let{node:i}=e;if(i.groups.length===0)return!1;let r=e.grandparent;return!dt(i)&&!(
|
|
27
|
+
`)+o}function So(e){return e.findAncestor(s=>s.type==="css-decl")?.prop?.toLowerCase()}function Eo(e){return Ao.has(e.toLowerCase())}function jo(e,s){return e.findAncestor(i=>i.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(s.toLowerCase())}function je(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Ye(e,s){return e.findAncestor(i=>i.type==="value-func")?.value?.toLowerCase()===s}function Io(e){return e.hasAncestor(s=>{if(s.type!=="css-rule")return!1;let i=s.raws?.selector;return i&&(i.startsWith(":import")||i.startsWith(":export"))})}function Re(e,s){let i=Array.isArray(s)?s:[s],r=e.findAncestor(a=>a.type==="css-atrule");return r&&i.includes(r.name.toLowerCase())}function Po(e){let{node:s}=e;return s.groups[0]?.value==="url"&&s.groups.length===2&&e.findAncestor(i=>i.type==="css-atrule")?.name==="import"}function Mo(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function $o(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function Ro(e){let{selector:s}=e;return s?typeof s=="string"&&/^@.+:.*$/u.test(s)||s.value&&/^@.+:.*$/u.test(s.value):!1}function No(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function Lo(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function Wo(e){return e.type==="value-word"&&e.value==="in"}function gt(e){return e.type==="value-operator"&&e.value==="*"}function xe(e){return e?.type==="value-operator"&&e.value==="/"}function le(e){return e.type==="value-operator"&&e.value==="+"}function ke(e){return e.type==="value-operator"&&e.value==="-"}function zo(e){return e.type==="value-operator"&&e.value==="%"}function ht(e){return gt(e)||xe(e)||le(e)||ke(e)||zo(e)}function Bo(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function qo(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function wt(e,s){return s.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Zt(e){return e.raws?.params&&/^\(\s*\)$/u.test(e.raws.params)}function ft(e){return e.name.startsWith("prettier-placeholder")}function Do(e){return e.prop.startsWith("@prettier-placeholder")}function Fo(e,s){return e.value==="$$"&&e.type==="value-func"&&s?.type==="value-word"&&!s.raws.before}function Uo(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function Vo(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function ue(e){return e?.raws?.before===""}function Dt(e){return e.type==="value-comma_group"&&e.groups?.[1]?.type==="value-colon"}function dt(e){return e.type==="value-paren_group"&&e.groups?.[0]&&Dt(e.groups[0])}function Dr(e,s){if(s.parser!=="scss")return!1;let{node:i}=e;if(i.groups.length===0)return!1;let r=e.parent;if(r&&r.type==="value-func"&&r.value==="if")return!1;let a=e.grandparent;return!dt(i)&&!(a&&dt(a))?!1:!!(e.findAncestor(o=>o.type==="css-decl")?.prop?.startsWith("$")||dt(a)||a.type==="value-func")}function He(e){return e.type==="value-comment"&&e.inline}function mt(e){return e.type==="value-word"&&e.value==="#"}function Kt(e){return e.type==="value-word"&&e.value==="{"}function yt(e){return e.type==="value-word"&&e.value==="}"}function Je(e){return["value-word","value-atword"].includes(e.type)}function bt(e){return e?.type==="value-colon"}function Go(e,s){if(!Dt(s))return!1;let{groups:i}=s,r=i.indexOf(e);return r===-1?!1:bt(i[r+1])}function Ho(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function Jo(e){return e.type!=="value-func"?!1:Co.has(e.value.toLowerCase())}function Ie(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function Qe(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function Qo(e,s){if(e.open?.value!=="("||e.close?.value!==")"||e.groups.some(i=>i.type!=="value-comma_group"))return!1;if(s.type==="value-comma_group"){let i=s.groups.indexOf(e)-1,r=s.groups[i];if(r?.type==="value-word"&&r.value==="with")return!0}return!1}function Ze(e){return e.type==="value-paren_group"&&e.open?.value==="("&&e.close?.value===")"}function Zo(e,s,i){let{node:r}=e,a=e.parent,o=e.grandparent,u=So(e),p=u&&a.type==="value-value"&&(u==="grid"||u.startsWith("grid-template")),y=e.findAncestor(g=>g.type==="css-atrule"),m=y&&wt(y,s),n=r.groups.some(g=>He(g)),t=e.map(i,"groups"),h=[""],c=Ye(e,"url"),d=!1,l=!1;for(let g=0;g<r.groups.length;++g){let v=r.groups[g-1],f=r.groups[g],w=r.groups[g+1],O=r.groups[g+2];if(He(f)&&!w){h.push([h.pop(),En([" ",t[g]])]);continue}if(h.push([h.pop(),t[g]]),c){(w&&le(w)||le(f))&&h.push([h.pop()," "]);continue}if(Re(e,"forward")&&f.type==="value-word"&&f.value&&v!==void 0&&v.type==="value-word"&&v.value==="as"&&w.type==="value-operator"&&w.value==="*"||Re(e,"utility")&&f.type==="value-word"&&w&&w.type==="value-operator"&&w.value==="*"||!w||f.type==="value-word"&&Qe(w)&&H(f)===G(w))continue;if(f.type==="value-string"&&f.quoted){let A=f.value.lastIndexOf("#{"),I=f.value.lastIndexOf("}");A!==-1&&I!==-1?d=A>I:A!==-1?d=!0:I!==-1&&(d=!1)}if(d||bt(f)||bt(w)||f.type==="value-atword"&&(f.value===""||f.value.endsWith("["))||w.type==="value-word"&&w.value.startsWith("]")||f.value==="~"||s.parser==="less"&&(w?.type==="value-word"&&w.value==="["||f.type==="value-word"&&f.value==="["&&(w?.type==="value-atword"||w?.type==="value-word")||f.type==="value-word"&&f.value==="]["&&w?.type==="value-word")||f.type!=="value-string"&&f.value&&f.value.includes("\\")&&w&&w.type!=="value-comment"||v?.value&&v.value.indexOf("\\")===v.value.length-1&&f.type==="value-operator"&&f.value==="/"||f.value==="\\"||Fo(f,w)||mt(f)||Kt(f)||yt(w)||Kt(w)&&ue(w)||yt(f)&&ue(w)||f.value==="--"&&mt(w))continue;let b=ht(f),T=ht(w);if((b&&mt(w)||T&&yt(f))&&ue(w)||!v&&xe(f)||Ye(e,"calc")&&(le(f)||le(w)||ke(f)||ke(w))&&ue(w))continue;let k=(le(f)||ke(f))&&g===0&&(w.type==="value-number"||w.isHex)&&o&&Jo(o)&&!ue(w);if(s.parser==="scss"&&b&&f.value==="-"&&w.type==="value-func"&&H(f)!==G(w)){h.push([h.pop()," "]);continue}let x=O?.type==="value-func"||O&&Je(O)||f.type==="value-func"||Je(f),C=w.type==="value-func"||Je(w)||v?.type==="value-func"||v&&Je(v);if(!(!(gt(w)||gt(f))&&!Ye(e,"calc")&&!k&&(xe(w)&&!x||xe(f)&&!C||le(w)&&!x||le(f)&&!C||ke(w)||ke(f))&&(ue(w)||b&&(!v||v&&ht(v))))&&!((s.parser==="scss"||s.parser==="less")&&b&&f.value==="-"&&Ze(w)&&H(f)===G(w.open)&&w.open.value==="(")){if(He(f)){if(a.type==="value-paren_group"){h.push(Ne(U),"");continue}h.push(U,"");continue}if(m&&(Bo(w)||qo(w)||Lo(w)||Wo(f)||No(f))){h.push([h.pop()," "]);continue}if(y&&y.name.toLowerCase()==="namespace"){h.push([h.pop()," "]);continue}if(p){f.source&&w.source&&f.source.start.line!==w.source.start.line?(h.push(U,""),l=!0):h.push([h.pop()," "]);continue}if(!(u&&(u==="font"||u.startsWith("--"))&&(xe(w)&&ue(w)&&Yt(f)||xe(f)&&ue(f)&&Yt(v)))){if(T){h.push([h.pop()," "]);continue}if(w?.value!=="..."&&!(Qe(f)&&Qe(w)&&H(f)===G(w))){if(Qe(f)&&Ze(w)&&H(f)===G(w.open)){h.push(K,"");continue}if(f.value==="with"&&Ze(w)){h=[[Ke(h)," "]];continue}if(!(f.value?.endsWith("#")&&w.value==="{"&&Ze(w.group))&&!(He(w)&&!O)){if(!y&&f.type==="value-comment"&&!f.inline&&r.groups.slice(0,g).every(A=>A.type==="value-comment")){h.push(Ne(V),"");continue}h.push(V,"")}}}}}return n&&h.push([h.pop(),zt]),l&&h.unshift("",U),m?Y(Q(h)):Po(e)?Y(Ke(h)):Y(Q(Ke(h)))}function Yt(e){if(e?.type==="value-number")return!0;if(e?.type!=="value-func")return!1;let s=e.value.toLowerCase();return s==="var"||s==="calc"||s==="min"||s==="max"||s==="clamp"||s.startsWith("--")}function Yo(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}function Fr(e){let s=e.toLowerCase();return xt.has(s)?xt.get(s):e}function ee(e,s){return F(0,e,Ur,i=>Er(i,s))}function ni(e,s){let i=s.singleQuote?"'":'"',r="",a=e.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return a&&({value:e,flag:r}=a.groups),(e.includes('"')||e.includes("'")?e:i+e+i)+(r?` ${r}`:"")}function be(e){return F(0,e,si,(s,i,r,a,o)=>!r&&a&&(o??(o=""),o=o.toLowerCase(),!o||o==="n"||xt.has(o))?Vr(a)+(o?Fr(o):""):s)}function Vr(e){return Xo(e).replace(/\.0(?=$|e)/u,"")}function oi(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function ii(e,s,i){let r=!!i?.backwards;if(s===!1)return!1;let a=e.charAt(s);if(r){if(e.charAt(s-1)==="\r"&&a===`
|
|
28
28
|
`)return s-2;if(Xt(a))return s-1}else{if(a==="\r"&&e.charAt(s+1)===`
|
|
29
29
|
`)return s+2;if(Xt(a))return s+1}return s}function ai(e,s,i={}){let r=$r(e,i.backwards?s-1:s,i),a=Gr(e,r,i);return r!==a}function ui(e,s){if(s===!1)return!1;if(e.charAt(s)==="/"&&e.charAt(s+1)==="*"){for(let i=s+2;i<e.length;++i)if(e.charAt(i)==="*"&&e.charAt(i+1)==="/")return i+2}return s}function ci(e,s){return s===!1?!1:e.charAt(s)==="/"&&e.charAt(s+1)==="/"?Rr(e,s):s}function hi(e,s){let i=null,r=s;for(;r!==i;)i=r,r=ro(e,r),r=li(e,r),r=$r(e,r);return r=pi(e,r),r=Gr(e,r),r!==!1&&Hr(e,r)}function fi({node:e,parent:s},i){return!!(e.source&&i.originalText.slice(G(e),G(s.close)).trimEnd().endsWith(","))}function di(e,s){return $o(e.grandparent)&&fi(e,s)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(i=>i.type==="value-comment"))&&oi(s)&&e.callParent(()=>Dr(e,s))?Cr(","):""}function mi(e,s,i){let{node:r,parent:a}=e,o=e.map(({node:c})=>typeof c=="string"?c:i(),"groups");if(a&&Mo(a)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?i("open"):"",ce(",",o),r.close?i("close"):""];if(!r.open){let c=Qr(e);Wt(o);let d=vi(ce(",",o),2),l=ce(c?U:V,d);return Q(c?[U,l]:Y([yi(e)?K:"",Ke(l)]))}let u=e.map(({node:c,isLast:d,index:l})=>{let g=o[l];Dt(c)&&c.type==="value-comma_group"&&c.groups&&c.groups[0].type!=="value-paren_group"&&c.groups[2]?.type==="value-paren_group"&&Me(g)===nt&&Me(g.contents)===st&&Me(g.contents.contents)===ot&&(g=Y(Ne(g)));let v=[g,d?di(e,s):","];if(!d&&c.type==="value-comma_group"&&at(c.groups)){let f=fe(0,c.groups,-1);!f.source&&f.close&&(f=f.close),f.source&&Jr(s.originalText,H(f))&&v.push(U)}return v},"groups"),p=Go(r,a),y=Qo(r,a),m=Dr(e,s),n=y||m&&!p,t=y||p,h=Y([r.open?i("open"):"",Q([K,ce(V,u)]),K,r.close?i("close"):""],{shouldBreak:n});return t?Ne(h):h}function Qr(e){return e.match(s=>s.type==="value-paren_group"&&!s.open&&s.groups.some(i=>i.type==="value-comma_group"),(s,i)=>i==="group"&&s.type==="value-value",(s,i)=>i==="group"&&s.type==="value-root",(s,i)=>i==="value"&&(s.type==="css-decl"&&!s.prop.startsWith("--")||s.type==="css-atrule"&&s.variable))}function yi(e){return e.match(s=>s.type==="value-paren_group"&&!s.open,(s,i)=>i==="group"&&s.type==="value-value",(s,i)=>i==="group"&&s.type==="value-root",(s,i)=>i==="value"&&s.type==="css-decl")}function vi(e,s){let i=[];for(let r=0;r<e.length;r+=s)i.push(e.slice(r,r+s));return i}function gi(e,s,i){let r=[];return e.each(()=>{let{node:a,previous:o}=e;if(o?.type==="css-comment"&&o.text.trim()==="prettier-ignore"?r.push(s.originalText.slice(G(a),H(a))):r.push(i()),e.isLast)return;let{next:u}=e;u.type==="css-comment"&&!Hr(s.originalText,G(u),{backwards:!0})&&!vt(a)||u.type==="css-atrule"&&u.name==="else"&&a.type!=="css-comment"?r.push(" "):(r.push(s.__isHTMLStyleAttribute?V:U),Jr(s.originalText,H(a))&&!vt(a)&&r.push(U))},"nodes"),r}function wi(e,s,i){let{node:r}=e;switch(r.type){case"css-root":{let a=Pe(e,s,i),o=r.raws.after.trim();return o.startsWith(";")&&(o=o.slice(1).trim()),[r.frontMatter?[i("frontMatter"),U,r.nodes.length>0?U:""]:"",a,o?` ${o}`:"",r.nodes.length>0?U:""]}case"css-comment":{let a=r.inline||r.raws.inline,o=s.originalText.slice(G(r),H(r));return a?o.trimEnd():o}case"css-rule":return[i("selector"),r.important?" !important":"",r.nodes?[r.selector?.type==="selector-unknown"&&Ie(r.selector.value)?V:r.selector?" ":"","{",r.nodes.length>0?Q([U,Pe(e,s,i)]):"",U,"}",Ro(r)?";":""]:";"];case"css-decl":{let a=e.parent,{between:o}=r.raws,u=o.trim(),p=u===":",y=typeof r.value=="string"&&/^ *$/u.test(r.value),m=typeof r.value=="string"?r.value:i("value");return m=Uo(r)?On(m):m,!p&&Ie(u)&&!e.call(()=>Qr(e),"value","group","group")&&(m=Q([U,Ne(m)])),[F(0,r.raws.before,/[\s;]/gu,""),a.type==="css-atrule"&&a.variable||Io(e)?r.prop:je(r.prop),u.startsWith("//")?" ":"",u,r.extend||y?"":" ",s.parser==="less"&&r.extend&&r.selector?["extend(",i("selector"),")"]:"",m,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",Q([K,Pe(e,s,i)]),K,"}"]:Do(r)&&!a.raws.semicolon&&s.originalText[H(r)-1]!==";"?"":s.__isHTMLStyleAttribute&&e.isLast?Cr(";"):";"]}case"css-atrule":{let a=e.parent,o=ft(r)&&!a.raws.semicolon&&s.originalText[H(r)-1]!==";";if(s.parser==="less"){if(r.mixin)return[i("selector"),r.important?" !important":"",o?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:i("params"),o?"":";"];if(r.variable)return["@",r.name,": ",r.value?i("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",Q([r.nodes.length>0?K:"",Pe(e,s,i)]),K,"}"]:"",o?"":";"]}let u=r.name==="import"&&r.params?.type==="value-unknown"&&r.params.value.endsWith(";");return["@",Zt(r)||r.name.endsWith(":")||ft(r)?r.name:je(r.name),r.params?[Zt(r)?"":ft(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[U,U]:/^\s*\n/u.test(r.raws.afterName)?U:" ":" ",typeof r.params=="string"?r.params:i("params")]:"",r.selector?Q([" ",i("selector")]):"",r.value?Y([" ",i("value"),wt(r,s)?Vo(r)?" ":V:""]):r.name==="else"?" ":"",r.nodes?[wt(r,s)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Ie(r.selector.value)||!r.selector&&typeof r.params=="string"&&Ie(r.params)?V:" ","{",Q([r.nodes.length>0?K:"",Pe(e,s,i)]),K,"}"]:o||u?"":";"]}case"media-query-list":{let a=[];return e.each(({node:o})=>{o.type==="media-query"&&o.value===""||a.push(i())},"nodes"),Y(Q(ce(V,a)))}case"media-query":return[ce(" ",e.map(i,"nodes")),e.isLast?"":","];case"media-type":return be(ee(r.value,s));case"media-feature-expression":return r.nodes?["(",...e.map(i,"nodes"),")"]:r.value;case"media-feature":return je(ee(F(0,r.value,/ +/gu," "),s));case"media-colon":return[r.value," "];case"media-value":return be(ee(r.value,s));case"media-keyword":return ee(r.value,s);case"media-url":return ee(F(0,F(0,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),s);case"media-unknown":return r.value;case"selector-root":return Y([Re(e,"custom-selector")?[e.findAncestor(a=>a.type==="css-atrule").customSelector,V]:"",ce([",",Re(e,["extend","custom-selector","nest"])?V:U],e.map(i,"nodes"))]);case"selector-selector":{let a=r.nodes.length>2;return Y((a?Q:o=>o)(e.map(i,"nodes")))}case"selector-comment":return r.value;case"selector-string":return ee(r.value,s);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",e.previous?.type==="selector-nesting"?r.value:be(jo(e,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",be(ee(r.value,s))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?ni(ee(r.value.trim(),s),s):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let u=e.parent;return[u.type==="selector-selector"&&u.nodes[0]===r?"":V,r.value,e.isLast?"":" "]}let a=r.value.trim().startsWith("(")?V:"",o=be(ee(r.value.trim(),s))||V;return[a,o]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[je(r.value),at(r.nodes)?Y(["(",Q([K,ce([",",V],e.map(i,"nodes"))]),K,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{if(e.findAncestor(u=>u.type==="css-rule")?.isSCSSNesterProperty)return be(ee(je(r.value),s));let a=e.parent;if(a.raws?.selector){let u=G(a),p=u+a.raws.selector.length;return s.originalText.slice(u,p).trim()}let o=e.grandparent;if(a.type==="value-paren_group"&&o?.type==="value-func"&&o.value==="selector"){let u=H(a.open)+1,p=G(a.close),y=s.originalText.slice(u,p).trim();return Ie(y)?[zt,y]:y}return r.value}case"value-value":case"value-root":return i("group");case"value-comment":return s.originalText.slice(G(r),H(r));case"value-comma_group":return Ko(e,s,i);case"value-paren_group":return mi(e,s,i);case"value-func":return[r.value,Re(e,"supports")&&Ho(r)?" ":"",i("group")];case"value-paren":return r.value;case"value-number":return[Vr(r.value),Fr(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Eo(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:a}=e;return Y([r.value,typeof a?.value=="string"&&a.value.endsWith("\\")||Ye(e,"url")?"":V])}case"value-string":return Er(r.raws.quote+r.value+r.raws.quote,s);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;default:throw new Bn(r,"PostCSS")}}function Ei(e,s){let i=new SyntaxError(e+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(i,s)}function Ii(e){return e!==null&&typeof e=="object"}function De(e,s,i){if(ct(e)){delete e.parent;for(let r in e)De(e[r],s,i),r==="type"&&typeof e[r]=="string"&&!e[r].startsWith(s)&&(!i||!i.test(e[r]))&&(e[r]=s+e[r])}return e}function Kr(e){if(ct(e)){delete e.parent;for(let s in e)Kr(e[s]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}function $i(e){let s;try{s=Mi(e)}catch{return{type:"selector-unknown",value:e}}return De(Kr(s),"media-")}function Li(e){if(/\/[/*]/u.test(F(0,e,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:e.trim()};let s;try{new Ni.default(i=>{s=i}).process(e)}catch{return{type:"selector-unknown",value:e}}return De(s,"selector-")}function Bi(e){return Yr(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}function Di(e){if(at(e)){for(let s=e.length-1;s>0;s--)if(e[s].type==="word"&&e[s].value==="{"&&e[s-1].type==="word"&&e[s-1].value.endsWith("#"))return!0}return!1}function Ui(e){return e.some(s=>s.type==="string"||s.type==="func"&&!s.value.endsWith("\\"))}function Gi(e,s){return!!(s.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}function Ji(e,s){let{nodes:i}=e,r={open:null,close:null,groups:[],type:"paren_group"},a=[r],o=r,u={groups:[],type:"comma_group"},p=[u];for(let y=0;y<i.length;++y){let m=i[y];if(s.parser==="scss"&&m.type==="number"&&m.unit===".."&&m.value.endsWith(".")&&(m.value=m.value.slice(0,-1),m.unit="..."),m.type==="func"&&m.value==="selector"&&(m.group.groups=[he(Yr(e).text.slice(m.group.open.sourceIndex+1,m.group.close.sourceIndex))]),m.type==="func"&&m.value==="url"){let n=m.group?.groups??[],t=[];for(let h=0;h<n.length;h++){let c=n[h];c.type==="comma_group"?t=[...t,...c.groups]:t.push(c)}(Fi(t)||!Vi(t)&&!Hi(t[0],s))&&(m.group.groups=[qi(m)])}if(m.type==="paren"&&m.value==="(")r={open:m,close:null,groups:[],type:"paren_group"},a.push(r),u={groups:[],type:"comma_group"},p.push(u);else if(er(m)){if(u.groups.length>0&&r.groups.push(u),r.close=m,p.length===1)throw new Error("Unbalanced parenthesis");p.pop(),u=fe(0,p,-1),u.groups.push(r),a.pop(),r=fe(0,a,-1)}else if(m.type==="comma"){if(y===i.length-3&&i[y+1].type==="comment"&&er(i[y+2]))continue;r.groups.push(u),u={groups:[],type:"comma_group"},p[p.length-1]=u}else u.groups.push(m)}return u.groups.length>0&&r.groups.push(u),o}function kt(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?kt(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(kt)}:e}function Xr(e,s){if(ct(e))for(let i in e)i!=="parent"&&(Xr(e[i],s),i==="nodes"&&(e.group=kt(Ji(e,s)),delete e[i]));return e}function Qi(e,s){if(s.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let i=null;try{i=new Wi.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}i.text=e;let r=Xr(i,s);return De(r,"value-",/^selector-/u)}function Ki(e){return Zi.has(e)}function Xi(e,s){return s.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}function es(e,s){if(ct(e)){delete e.parent;for(let o in e)es(e[o],s);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let o;if(e.value.trimEnd().endsWith("}")){let u=s.originalText.slice(0,e.source.start.offset),p="a".repeat(e.prop.length)+s.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),y=F(0,u,/[^\n]/gu," ")+p,m;s.parser==="scss"?m=ss:s.parser==="less"?m=rs:m=ts;let n;try{n=m(y,{...s})}catch{}n?.nodes?.length===1&&n.nodes[0].type==="css-rule"&&(o=n.nodes[0].nodes)}return o?e.value={type:"css-rule",nodes:o}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let i="";typeof e.selector=="string"&&(i=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(i+=e.raws.between),e.raws.selector=i);let r="";typeof e.value=="string"&&(r=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=r.trim());let a="";if(typeof e.params=="string"&&(a=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(a=e.raws.afterName+a),e.raws.between&&e.raws.between.trim().length>0&&(a=a+e.raws.between),a=a.trim(),e.raws.params=a),i.trim().length>0)return i.startsWith("@")&&i.endsWith(":")?e:e.mixin?(e.selector=pe(i,s),e):(ea(e,s)&&(e.isSCSSNesterProperty=!0),e.selector=he(i),e);if(r.trim().length>0){let o=r.match(ta);o&&(r=r.slice(0,o.index),e.scssDefault=!0,o[0].trim()!=="!default"&&(e.raws.scssDefault=o[0]));let u=r.match(ra);if(u&&(r=r.slice(0,u.index),e.scssGlobal=!0,u[0].trim()!=="!global"&&(e.raws.scssGlobal=u[0])),r.startsWith("progid:"))return{type:"value-unknown",value:r};e.value=pe(r,s)}if(s.parser==="less"&&e.type==="css-decl"&&r.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=he(r.slice(7,-1)))),e.type==="css-atrule"){if(s.parser==="less"){if(e.mixin){let o=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=he(o),delete e.params,e}if(e.function)return e}if(s.parser==="css"&&e.name==="custom-selector"){let o=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=o,e.selector=he(e.params.slice(o.length).trim()),delete e.params,e}if(s.parser==="less"){if(e.name.includes(":")){e.variable=!0;let o=e.name.split(":");e.name=o[0];let u=o.slice(1).join(":");e.params&&(u+=e.params),e.value=pe(u,s)}if(!["page","nest","keyframes"].includes(e.name)&&e.params?.[0]===":"){e.variable=!0;let o=e.params.slice(1);o&&(e.value=pe(o,s)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&a.length>0){let{name:o}=e,u=e.name.toLowerCase();return o==="warn"||o==="error"?(e.params={type:"media-unknown",value:a},e):o==="extend"||o==="nest"?(e.selector=he(a),delete e.params,e):o==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(a)?e.params=pe(a,s):(e.selector=he(a),delete e.params),e):Yi(u)?(e.import=!0,delete e.filename,e.params=pe(a,s),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(o)?(a=a.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),a=a.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),e.value=pe(a,s),delete e.params,e):["media","custom-media"].includes(u)?a.includes("#{")?{type:"media-unknown",value:a}:(e.params=Ri(a),e):(e.params=a,e)}}return e}function Ft(e,s,i){let{frontMatter:r,content:a}=ut(s),o;try{o=e(a,{map:!1})}catch(u){let{name:p,reason:y,line:m,column:n}=u;throw typeof m!="number"?u:ji(`${p}: ${y}`,{loc:{start:{line:m,column:n}},cause:u})}return i.originalText=s,o=es(De(o,"css-"),i),Wr(o,s),r&&(o.frontMatter={...r,type:"front-matter",source:{startOffset:r.start.index,endOffset:r.end.index}}),o}function ts(e,s={}){return Ft(Ci.default.default,e,s)}function rs(e,s={}){return Ft(i=>Si.default.parse(no(i)),e,s)}function ss(e,s={}){return Ft(Ai.default,e,s)}var os,Tt,is,as,us,ls,E,tr,cs,Te,ps,rr,Ot,_t,Xe,Ct,et,Le,tt,me,hs,fs,or,We,St,ze,ir,At,Et,jt,rt,ds,ms,ys,vs,gs,ws,bs,xs,It,ks,ar,ur,Pt,lr,cr,Ts,Os,Mt,_s,Cs,Ss,As,hr,fr,Es,js,dr,mr,yr,Oe,J,$t,Is,Ps,Be,Ms,$s,Rs,Ns,Ls,Ws,zs,Bs,qs,Ds,Fs,Us,Vs,Gs,te,Z,Hs,Js,Qs,Zs,Ks,Ys,Xs,en,tn,rn,sn,nn,on,an,un,ln,cn,pn,vr,hn,fn,F,mn,fe,yn,qe,gr,wr,br,st,Rt,xr,nt,ot,it,kr,Nt,Tr,_e,Or,Lt,_r,Me,gn,bn,xn,de,Wt,_n,Cn,zt,V,K,An,U,at,Sr,Ar,In,Pn,$n,Rn,Ln,Er,zn,Bn,jr,vt,Ae,ut,Un,Gn,Hn,Ee,Jn,Kn,L,Yn,Xn,eo,Mr,ua,$r,ro,Rr,G,H,oo,io,Br,ao,Ht,uo,Jt,lo,qr,mo,yo,vo,wo,To,Oo,_o,Co,Ao,Ko,Xo,xt,Ur,ei,ti,ri,si,Xt,Gr,Hr,li,pi,Jr,Pe,bi,xi,ki,Ti,Oi,_i,Zr,Ci,Si,Ai,ji,ct,Pi,Mi,Ri,Ni,he,Wi,zi,Yr,qi,Fi,Vi,Hi,er,pe,Zi,Yi,ea,ta,ra,Ut,sa,na,oa,ia,aa=ns(()=>{Gt();os=Object.create,Tt=Object.defineProperty,is=Object.getOwnPropertyDescriptor,as=Object.getOwnPropertyNames,us=Object.getPrototypeOf,ls=Object.prototype.hasOwnProperty,E=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports),tr=(e,s)=>{for(var i in s)Tt(e,i,{get:s[i],enumerable:!0})},cs=(e,s,i,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of as(s))!ls.call(e,a)&&a!==i&&Tt(e,a,{get:()=>s[a],enumerable:!(r=is(s,a))||r.enumerable});return e},Te=(e,s,i)=>(i=e!=null?os(us(e)):{},cs(s||!e||!e.__esModule?Tt(i,"default",{value:e,enumerable:!0}):i,e)),ps=E((e,s)=>{var i=String,r=function(){return{isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i,blackBright:i,redBright:i,greenBright:i,yellowBright:i,blueBright:i,magentaBright:i,cyanBright:i,whiteBright:i,bgBlackBright:i,bgRedBright:i,bgGreenBright:i,bgYellowBright:i,bgBlueBright:i,bgMagentaBright:i,bgCyanBright:i,bgWhiteBright:i}};s.exports=r(),s.exports.createColors=r}),rr=E(()=>{}),Ot=E((e,s)=>{"use strict";var i=ps(),r=rr(),a=class sr extends Error{constructor(u,p,y,m,n,t){super(u),this.name="CssSyntaxError",this.reason=u,n&&(this.file=n),m&&(this.source=m),t&&(this.plugin=t),typeof p<"u"&&typeof y<"u"&&(typeof p=="number"?(this.line=p,this.column=y):(this.line=p.line,this.column=p.column,this.endLine=y.line,this.endColumn=y.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,sr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(u){if(!this.source)return"";let p=this.source;u==null&&(u=i.isColorSupported);let y=l=>l,m=l=>l,n=l=>l;if(u){let{bold:l,gray:g,red:v}=i.createColors(!0);m=f=>l(v(f)),y=f=>g(f),r&&(n=f=>r(f))}let t=p.split(/\r?\n/),h=Math.max(this.line-3,0),c=Math.min(this.line+2,t.length),d=String(c).length;return t.slice(h,c).map((l,g)=>{let v=h+1+g,f=" "+(" "+v).slice(-d)+" | ";if(v===this.line){if(l.length>160){let O=20,b=Math.max(0,this.column-O),T=Math.max(this.column+O,this.endColumn+O),k=l.slice(b,T),x=y(f.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,O-1)).replace(/[^\t]/g," ");return m(">")+y(f)+n(k)+`
|
|
30
30
|
`+x+m("^")}let w=y(f.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return m(">")+y(f)+n(l)+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-YLQ3LNNY.js";import"./chunk-VKWPEFWQ.js";o();export{n as __debug,m as __internal,j as check,k as clearConfigCache,b as default,a as doc,i as format,h as formatWithCursor,e as getFileInfo,l as getSupportInfo,c as resolveConfig,d as resolveConfigFile,g as util,f as version};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as B,c as C,g}from"./chunk-VPRTJUIN.js";var oe=C(re=>{g();var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");re.encode=function(s){if(0<=s&&s<te.length)return te[s];throw new TypeError("Must be between 0 and 63: "+s)}});var U=C(le=>{g();var Ae=oe(),se=5,ie=1<<se,Oe=ie-1,xe=ie;function ve(s){return s<0?(-s<<1)+1:(s<<1)+0}le.encode=function(e){let n="",t,r=ve(e);do t=r&Oe,r>>>=se,r>0&&(t|=xe),n+=Ae.encode(t);while(r>0);return n}});var ce=C((ln,ue)=>{"use strict";g();ue.exports=typeof URL=="function"?URL:B("url").URL});var M=C(S=>{g();var b=ce();function Me(s,e,n){if(e in s)return s[e];if(arguments.length===3)return n;throw new Error('"'+e+'" is a required argument.')}S.getArg=Me;var fe=(function(){return!("__proto__"in Object.create(null))})();function he(s){return s}function Ie(s){return de(s)?"$"+s:s}S.toSetString=fe?he:Ie;function Re(s){return de(s)?s.slice(1):s}S.fromSetString=fe?he:Re;function de(s){if(!s)return!1;let e=s.length;if(e<9||s.charCodeAt(e-1)!==95||s.charCodeAt(e-2)!==95||s.charCodeAt(e-3)!==111||s.charCodeAt(e-4)!==116||s.charCodeAt(e-5)!==111||s.charCodeAt(e-6)!==114||s.charCodeAt(e-7)!==112||s.charCodeAt(e-8)!==95||s.charCodeAt(e-9)!==95)return!1;for(let n=e-10;n>=0;n--)if(s.charCodeAt(n)!==36)return!1;return!0}function ae(s,e){return s===e?0:s===null?1:e===null?-1:s>e?1:-1}function Ne(s,e){let n=s.generatedLine-e.generatedLine;return n!==0||(n=s.generatedColumn-e.generatedColumn,n!==0)||(n=ae(s.source,e.source),n!==0)||(n=s.originalLine-e.originalLine,n!==0)||(n=s.originalColumn-e.originalColumn,n!==0)?n:ae(s.name,e.name)}S.compareByGeneratedPositionsInflated=Ne;function Te(s){return JSON.parse(s.replace(/^\)]}'[^\n]*\n/,""))}S.parseSourceMapInput=Te;var k="http:",x=`${k}//host`;function z(s){return e=>{let n=L(e),t=F(e),r=new b(e,t);s(r);let o=r.toString();return n==="absolute"?o:n==="scheme-relative"?o.slice(k.length):n==="path-absolute"?o.slice(x.length):V(t,o)}}function y(s,e){return new b(s,e).toString()}function Pe(s,e){let n=0;do{let t=s+n++;if(e.indexOf(t)===-1)return t}while(!0)}function F(s){let e=s.split("..").length-1,n=Pe("p",s),t=`${x}/`;for(let r=0;r<e;r++)t+=`${n}/`;return t}var Ge=/^[A-Za-z0-9\+\-\.]+:/;function L(s){return s[0]==="/"?s[1]==="/"?"scheme-relative":"path-absolute":Ge.test(s)?"absolute":"path-relative"}function V(s,e){typeof s=="string"&&(s=new b(s)),typeof e=="string"&&(e=new b(e));let n=e.pathname.split("/"),t=s.pathname.split("/");for(t.length>0&&!t[t.length-1]&&t.pop();n.length>0&&t.length>0&&n[0]===t[0];)n.shift(),t.shift();return t.map(()=>"..").concat(n).join("/")+e.search+e.hash}var qe=z(s=>{s.pathname=s.pathname.replace(/\/?$/,"/")}),De=z(s=>{s.href=new b(".",s.toString()).toString()}),v=z(s=>{});S.normalize=v;function W(s,e){let n=L(e),t=L(s);if(s=qe(s),n==="absolute")return y(e,void 0);if(t==="absolute")return y(e,s);if(n==="scheme-relative")return v(e);if(t==="scheme-relative")return y(e,y(s,x)).slice(k.length);if(n==="path-absolute")return v(e);if(t==="path-absolute")return y(e,y(s,x)).slice(x.length);let r=F(e+s),o=y(e,y(s,r));return V(r,o)}S.join=W;function je(s,e){let n=Be(s,e);return typeof n=="string"?n:v(e)}S.relative=je;function Be(s,e){if(L(s)!==L(e))return null;let t=F(s+e),r=new b(s,t),o=new b(e,t);try{new b("",o.toString())}catch{return null}return o.protocol!==r.protocol||o.user!==r.user||o.password!==r.password||o.hostname!==r.hostname||o.port!==r.port?null:V(r,o)}function Ue(s,e,n){s&&L(e)==="path-absolute"&&(e=e.replace(/^\//,""));let t=v(e||"");return s&&(t=W(s,t)),n&&(t=W(De(n),t)),t}S.computeSourceURL=Ue});var Q=C(ge=>{g();var $=class s{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){let t=new s;for(let r=0,o=e.length;r<o;r++)t.add(e[r],n);return t}size(){return this._set.size}add(e,n){let t=this.has(e),r=this._array.length;(!t||n)&&this._array.push(e),t||this._set.set(e,r)}has(e){return this._set.has(e)}indexOf(e){let n=this._set.get(e);if(n>=0)return n;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)}toArray(){return this._array.slice()}};ge.ArraySet=$});var pe=C(_e=>{g();var me=M();function We(s,e){let n=s.generatedLine,t=e.generatedLine,r=s.generatedColumn,o=e.generatedColumn;return t>n||t==n&&o>=r||me.compareByGeneratedPositionsInflated(s,e)<=0}var J=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,n){this._array.forEach(e,n)}add(e){We(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(me.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};_e.MappingList=J});var K=C(Ce=>{g();var I=U(),m=M(),T=Q().ArraySet,ke=pe().MappingList,P=class s{constructor(e){e||(e={}),this._file=m.getArg(e,"file",null),this._sourceRoot=m.getArg(e,"sourceRoot",null),this._skipValidation=m.getArg(e,"skipValidation",!1),this._sources=new T,this._names=new T,this._mappings=new ke,this._sourcesContents=null}static fromSourceMap(e){let n=e.sourceRoot,t=new s({file:e.file,sourceRoot:n});return e.eachMapping(function(r){let o={generated:{line:r.generatedLine,column:r.generatedColumn}};r.source!=null&&(o.source=r.source,n!=null&&(o.source=m.relative(n,o.source)),o.original={line:r.originalLine,column:r.originalColumn},r.name!=null&&(o.name=r.name)),t.addMapping(o)}),e.sources.forEach(function(r){let o=r;n!=null&&(o=m.relative(n,r)),t._sources.has(o)||t._sources.add(o);let i=e.sourceContentFor(r);i!=null&&t.setSourceContent(r,i)}),t}addMapping(e){let n=m.getArg(e,"generated"),t=m.getArg(e,"original",null),r=m.getArg(e,"source",null),o=m.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,t,r,o),r!=null&&(r=String(r),this._sources.has(r)||this._sources.add(r)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:t&&t.line,originalColumn:t&&t.column,source:r,name:o})}setSourceContent(e,n){let t=e;this._sourceRoot!=null&&(t=m.relative(this._sourceRoot,t)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[m.toSetString(t)]=n):this._sourcesContents&&(delete this._sourcesContents[m.toSetString(t)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))}applySourceMap(e,n,t){let r=n;if(n==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);r=e.file}let o=this._sourceRoot;o!=null&&(r=m.relative(o,r));let i=this._mappings.toArray().length>0?new T:this._sources,c=new T;this._mappings.unsortedForEach(function(u){if(u.source===r&&u.originalLine!=null){let d=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});d.source!=null&&(u.source=d.source,t!=null&&(u.source=m.join(t,u.source)),o!=null&&(u.source=m.relative(o,u.source)),u.originalLine=d.line,u.originalColumn=d.column,d.name!=null&&(u.name=d.name))}let f=u.source;f!=null&&!i.has(f)&&i.add(f);let l=u.name;l!=null&&!c.has(l)&&c.add(l)},this),this._sources=i,this._names=c,e.sources.forEach(function(u){let f=e.sourceContentFor(u);f!=null&&(t!=null&&(u=m.join(t,u)),o!=null&&(u=m.relative(o,u)),this.setSourceContent(u,f))},this)}_validateMapping(e,n,t,r){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r)){if(!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}}_serializeMappings(){let e=0,n=1,t=0,r=0,o=0,i=0,c="",u,f,l,d,p=this._mappings.toArray();for(let a=0,w=p.length;a<w;a++){if(f=p[a],u="",f.generatedLine!==n)for(e=0;f.generatedLine!==n;)u+=";",n++;else if(a>0){if(!m.compareByGeneratedPositionsInflated(f,p[a-1]))continue;u+=","}u+=I.encode(f.generatedColumn-e),e=f.generatedColumn,f.source!=null&&(d=this._sources.indexOf(f.source),u+=I.encode(d-i),i=d,u+=I.encode(f.originalLine-1-r),r=f.originalLine-1,u+=I.encode(f.originalColumn-t),t=f.originalColumn,f.name!=null&&(l=this._names.indexOf(f.name),u+=I.encode(l-o),o=l)),c+=u}return c}_generateSourcesContent(e,n){return e.map(function(t){if(!this._sourcesContents)return null;n!=null&&(t=m.relative(n,t));let r=m.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)}toJSON(){let e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}};P.prototype._version=3;Ce.SourceMapGenerator=P});var we=C(E=>{g();E.GREATEST_LOWER_BOUND=1;E.LEAST_UPPER_BOUND=2;function X(s,e,n,t,r,o){let i=Math.floor((e-s)/2)+s,c=r(n,t[i],!0);return c===0?i:c>0?e-i>1?X(i,e,n,t,r,o):o===E.LEAST_UPPER_BOUND?e<t.length?e:-1:i:i-s>1?X(s,i,n,t,r,o):o==E.LEAST_UPPER_BOUND?i:s<0?-1:s}E.search=function(e,n,t,r){if(n.length===0)return-1;let o=X(-1,n.length,e,n,t,r||E.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&t(n[o],n[o-1],!0)===0;)--o;return o}});var Y=C((wn,Z)=>{"use strict";g();var ze=B("fs"),Fe=B("path");Z.exports=function(){return new Promise((e,n)=>{let t=Fe.join(__dirname,"mappings.wasm");ze.readFile(t,null,(r,o)=>{if(r){n(r);return}e(o.buffer)})})};Z.exports.initialize=s=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}});var ye=C((yn,Se)=>{g();var Ve=Y();function $e(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var R=null;Se.exports=function(){if(R)return R;let e=[];return R=Ve().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(t,r,o,i,c,u,f,l,d,p){let a=new $e;a.generatedLine=t+1,a.generatedColumn=r,o&&(a.lastGeneratedColumn=i-1),c&&(a.source=u,a.originalLine=f+1,a.originalColumn=l,d&&(a.name=p)),e[e.length-1](a)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(t,r)=>{e.push(t);try{r()}finally{e.pop()}}})).then(null,n=>{throw R=null,n}),R}});var be=C(q=>{g();var h=M(),Qe=we(),H=Q().ArraySet,En=U(),Je=Y(),Ke=ye(),ee=Symbol("smcInternal"),_=class s{constructor(e,n){return e==ee?Promise.resolve(this):Xe(e,n)}static initialize(e){Je.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){return Ze(e,n)}static async with(e,n,t){let r=await new s(e,n);try{return await t(r)}finally{r.destroy()}}eachMapping(e,n,t){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}};_.prototype._version=3;_.GENERATED_ORDER=1;_.ORIGINAL_ORDER=2;_.GREATEST_LOWER_BOUND=1;_.LEAST_UPPER_BOUND=2;q.SourceMapConsumer=_;var A=class s extends _{constructor(e,n){return super(ee).then(t=>{let r=e;typeof e=="string"&&(r=h.parseSourceMapInput(e));let o=h.getArg(r,"version"),i=h.getArg(r,"sources").map(String),c=h.getArg(r,"names",[]),u=h.getArg(r,"sourceRoot",null),f=h.getArg(r,"sourcesContent",null),l=h.getArg(r,"mappings"),d=h.getArg(r,"file",null),p=h.getArg(r,"x_google_ignoreList",null);if(o!=t._version)throw new Error("Unsupported version: "+o);return t._sourceLookupCache=new Map,t._names=H.fromArray(c.map(String),!0),t._sources=H.fromArray(i,!0),t._absoluteSources=H.fromArray(t._sources.toArray().map(function(a){return h.computeSourceURL(u,a,n)}),!0),t.sourceRoot=u,t.sourcesContent=f,t._mappings=l,t._sourceMapURL=n,t.file=d,t.x_google_ignoreList=p,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,Ke().then(a=>(t._wasm=a,t))})}_findSourceIndex(e){let n=this._sourceLookupCache.get(e);if(typeof n=="number")return n;let t=h.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(t)){let o=this._absoluteSources.indexOf(t);return this._sourceLookupCache.set(e,o),o}let r=h.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(r)){let o=this._absoluteSources.indexOf(r);return this._sourceLookupCache.set(e,o),o}return-1}static fromSourceMap(e,n){return new s(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return this._mappingsPtr===0&&this._parseMappings(),this._mappingsPtr}_parseMappings(){let e=this._mappings,n=e.length,t=this._wasm.exports.allocate_mappings(n)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,t,n);for(let i=0;i<n;i++)r[i]=e.charCodeAt(i);let o=this._wasm.exports.parse_mappings(t);if(!o){let i=this._wasm.exports.get_last_error(),c=`Error parsing mappings (code ${i}): `;switch(i){case 1:c+="the mappings contained a negative line, column, source index, or name index";break;case 2:c+="the mappings contained a number larger than 2**32";break;case 3:c+="reached EOF while in the middle of parsing a VLQ";break;case 4:c+="invalid base 64 character while parsing a VLQ";break;default:c+="unknown error code";break}throw new Error(c)}this._mappingsPtr=o}eachMapping(e,n,t){let r=n||null,o=t||_.GENERATED_ORDER;this._wasm.withMappingCallback(i=>{i.source!==null&&(i.source=this._absoluteSources.at(i.source),i.name!==null&&(i.name=this._names.at(i.name))),this._computedColumnSpans&&i.lastGeneratedColumn===null&&(i.lastGeneratedColumn=1/0),e.call(r,i)},()=>{switch(o){case _.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case _.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=h.getArg(e,"source"),t=h.getArg(e,"line"),r=e.column||0;if(n=this._findSourceIndex(n),n<0)return[];if(t<1)throw new Error("Line numbers must be >= 1");if(r<0)throw new Error("Column numbers must be >= 0");let o=[];return this._wasm.withMappingCallback(i=>{let c=i.lastGeneratedColumn;this._computedColumnSpans&&c===null&&(c=1/0),o.push({line:i.generatedLine,column:i.generatedColumn,lastColumn:c})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,r)}),o}destroy(){this._mappingsPtr!==0&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){let n={generatedLine:h.getArg(e,"line"),generatedColumn:h.getArg(e,"column")};if(n.generatedLine<1)throw new Error("Line numbers must be >= 1");if(n.generatedColumn<0)throw new Error("Column numbers must be >= 0");let t=h.getArg(e,"bias",_.GREATEST_LOWER_BOUND);t==null&&(t=_.GREATEST_LOWER_BOUND);let r;if(this._wasm.withMappingCallback(o=>r=o,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),n.generatedLine-1,n.generatedColumn,t)}),r&&r.generatedLine===n.generatedLine){let o=h.getArg(r,"source",null);o!==null&&(o=this._absoluteSources.at(o));let i=h.getArg(r,"name",null);return i!==null&&(i=this._names.at(i)),{source:o,line:h.getArg(r,"originalLine",null),column:h.getArg(r,"originalColumn",null),name:i}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1}sourceContentFor(e,n){if(!this.sourcesContent)return null;let t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let n=h.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};let t={source:n,originalLine:h.getArg(e,"line"),originalColumn:h.getArg(e,"column")};if(t.originalLine<1)throw new Error("Line numbers must be >= 1");if(t.originalColumn<0)throw new Error("Column numbers must be >= 0");let r=h.getArg(e,"bias",_.GREATEST_LOWER_BOUND);r==null&&(r=_.GREATEST_LOWER_BOUND);let o;if(this._wasm.withMappingCallback(i=>o=i,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),t.source,t.originalLine-1,t.originalColumn,r)}),o&&o.source===t.source){let i=o.lastGeneratedColumn;return this._computedColumnSpans&&i===null&&(i=1/0),{line:h.getArg(o,"generatedLine",null),column:h.getArg(o,"generatedColumn",null),lastColumn:i}}return{line:null,column:null,lastColumn:null}}};A.prototype.consumer=_;q.BasicSourceMapConsumer=A;var G=class extends _{constructor(e,n){return super(ee).then(t=>{let r=e;typeof e=="string"&&(r=h.parseSourceMapInput(e));let o=h.getArg(r,"version"),i=h.getArg(r,"sections");if(o!=t._version)throw new Error("Unsupported version: "+o);let c={line:-1,column:0};return Promise.all(i.map(u=>{if(u.url)throw new Error("Support for url field in sections not implemented.");let f=h.getArg(u,"offset"),l=h.getArg(f,"line"),d=h.getArg(f,"column");if(l<c.line||l===c.line&&d<c.column)throw new Error("Section offsets must be ordered and non-overlapping.");return c=f,new _(h.getArg(u,"map"),n).then(a=>({generatedOffset:{generatedLine:l+1,generatedColumn:d+1},consumer:a}))})).then(u=>(t._sections=u,t))})}get sources(){let e=[];for(let n=0;n<this._sections.length;n++)for(let t=0;t<this._sections[n].consumer.sources.length;t++)e.push(this._sections[n].consumer.sources[t]);return e}originalPositionFor(e){let n={generatedLine:h.getArg(e,"line"),generatedColumn:h.getArg(e,"column")},t=Qe.search(n,this._sections,function(o,i){let c=o.generatedLine-i.generatedOffset.generatedLine;return c||o.generatedColumn-(i.generatedOffset.generatedColumn-1)}),r=this._sections[t];return r?r.consumer.originalPositionFor({line:n.generatedLine-(r.generatedOffset.generatedLine-1),column:n.generatedColumn-(r.generatedOffset.generatedLine===n.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})}sourceContentFor(e,n){for(let t=0;t<this._sections.length;t++){let o=this._sections[t].consumer.sourceContentFor(e,!0);if(o)return o}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')}_findSectionIndex(e){for(let n=0;n<this._sections.length;n++){let{consumer:t}=this._sections[n];if(t._findSourceIndex(e)!==-1)return n}return-1}generatedPositionFor(e){let n=this._findSectionIndex(h.getArg(e,"source")),t=n>=0?this._sections[n]:null,r=n>=0&&n+1<this._sections.length?this._sections[n+1]:null,o=t&&t.consumer.generatedPositionFor(e);if(o&&o.line!==null){let i=t.generatedOffset.generatedLine-1,c=t.generatedOffset.generatedColumn-1;return o.line===1&&(o.column+=c,typeof o.lastColumn=="number"&&(o.lastColumn+=c)),o.lastColumn===1/0&&r&&o.line===r.generatedOffset.generatedLine&&(o.lastColumn=r.generatedOffset.generatedColumn-2),o.line+=i,o}return{line:null,column:null,lastColumn:null}}allGeneratedPositionsFor(e){let n=this._findSectionIndex(h.getArg(e,"source")),t=n>=0?this._sections[n]:null,r=n>=0&&n+1<this._sections.length?this._sections[n+1]:null;return t?t.consumer.allGeneratedPositionsFor(e).map(o=>{let i=t.generatedOffset.generatedLine-1,c=t.generatedOffset.generatedColumn-1;return o.line===1&&(o.column+=c,typeof o.lastColumn=="number"&&(o.lastColumn+=c)),o.lastColumn===1/0&&r&&o.line===r.generatedOffset.generatedLine&&(o.lastColumn=r.generatedOffset.generatedColumn-2),o.line+=i,o}):[]}eachMapping(e,n,t){this._sections.forEach((r,o)=>{let i=o+1<this._sections.length?this._sections[o+1]:null,{generatedOffset:c}=r,u=c.generatedLine-1,f=c.generatedColumn-1;r.consumer.eachMapping(function(l){l.generatedLine===1&&(l.generatedColumn+=f,typeof l.lastGeneratedColumn=="number"&&(l.lastGeneratedColumn+=f)),l.lastGeneratedColumn===1/0&&i&&l.generatedLine===i.generatedOffset.generatedLine&&(l.lastGeneratedColumn=i.generatedOffset.generatedColumn-2),l.generatedLine+=u,e.call(this,l)},n,t)})}computeColumnSpans(){for(let e=0;e<this._sections.length;e++)this._sections[e].consumer.computeColumnSpans()}destroy(){for(let e=0;e<this._sections.length;e++)this._sections[e].consumer.destroy()}};q.IndexedSourceMapConsumer=G;function Xe(s,e){let n=s;typeof s=="string"&&(n=h.parseSourceMapInput(s));let t=n.sections!=null?new G(n,e):new A(n,e);return Promise.resolve(t)}function Ze(s,e){return A.fromSourceMap(s,e)}});var Le=C(Ee=>{g();var Ye=K().SourceMapGenerator,D=M(),He=/(\r?\n)/,en=10,O="$$$isSourceNode$$$",ne=class s{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=e??null,this.column=n??null,this.source=t??null,this.name=o??null,this[O]=!0,r!=null&&this.add(r)}static fromStringWithSourceMap(e,n,t){let r=new s,o=e.split(He),i=0,c=function(){let a=N(),w=N()||"";return a+w;function N(){return i<o.length?o[i++]:void 0}},u=1,f=0,l=null,d;return n.eachMapping(function(a){if(l!==null)if(u<a.generatedLine)p(l,c()),u++,f=0;else{d=o[i]||"";let w=d.substr(0,a.generatedColumn-f);o[i]=d.substr(a.generatedColumn-f),f=a.generatedColumn,p(l,w),l=a;return}for(;u<a.generatedLine;)r.add(c()),u++;f<a.generatedColumn&&(d=o[i]||"",r.add(d.substr(0,a.generatedColumn)),o[i]=d.substr(a.generatedColumn),f=a.generatedColumn),l=a},this),i<o.length&&(l&&p(l,c()),r.add(o.splice(i).join(""))),n.sources.forEach(function(a){let w=n.sourceContentFor(a);w!=null&&(t!=null&&(a=D.join(t,a)),r.setSourceContent(a,w))}),r;function p(a,w){if(a===null||a.source===void 0)r.add(w);else{let N=t?D.join(t,a.source):a.source;r.add(new s(a.originalLine,a.originalColumn,N,w,a.name))}}}add(e){if(Array.isArray(e))e.forEach(function(n){this.add(n)},this);else if(e[O]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this}prepend(e){if(Array.isArray(e))for(let n=e.length-1;n>=0;n--)this.prepend(e[n]);else if(e[O]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this}walk(e){let n;for(let t=0,r=this.children.length;t<r;t++)n=this.children[t],n[O]?n.walk(e):n!==""&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})}join(e){let n,t,r=this.children.length;if(r>0){for(n=[],t=0;t<r-1;t++)n.push(this.children[t]),n.push(e);n.push(this.children[t]),this.children=n}return this}replaceRight(e,n){let t=this.children[this.children.length-1];return t[O]?t.replaceRight(e,n):typeof t=="string"?this.children[this.children.length-1]=t.replace(e,n):this.children.push("".replace(e,n)),this}setSourceContent(e,n){this.sourceContents[D.toSetString(e)]=n}walkSourceContents(e){for(let t=0,r=this.children.length;t<r;t++)this.children[t][O]&&this.children[t].walkSourceContents(e);let n=Object.keys(this.sourceContents);for(let t=0,r=n.length;t<r;t++)e(D.fromSetString(n[t]),this.sourceContents[n[t]])}toString(){let e="";return this.walk(function(n){e+=n}),e}toStringWithSourceMap(e){let n={code:"",line:1,column:0},t=new Ye(e),r=!1,o=null,i=null,c=null,u=null;return this.walk(function(f,l){n.code+=f,l.source!==null&&l.line!==null&&l.column!==null?((o!==l.source||i!==l.line||c!==l.column||u!==l.name)&&t.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:n.line,column:n.column},name:l.name}),o=l.source,i=l.line,c=l.column,u=l.name,r=!0):r&&(t.addMapping({generated:{line:n.line,column:n.column}}),o=null,r=!1);for(let d=0,p=f.length;d<p;d++)f.charCodeAt(d)===en?(n.line++,n.column=0,d+1===p?(o=null,r=!1):r&&t.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:n.line,column:n.column},name:l.name})):n.column++}),this.walkSourceContents(function(f,l){t.setSourceContent(f,l)}),{code:n.code,map:t}}};Ee.SourceNode=ne});var nn=C(j=>{g();j.SourceMapGenerator=K().SourceMapGenerator;j.SourceMapConsumer=be().SourceMapConsumer;j.SourceNode=Le().SourceNode});export default nn();
|
|
1
|
+
import{a as B,c as C,g}from"./chunk-VKWPEFWQ.js";var oe=C(re=>{g();var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");re.encode=function(s){if(0<=s&&s<te.length)return te[s];throw new TypeError("Must be between 0 and 63: "+s)}});var U=C(le=>{g();var Ae=oe(),se=5,ie=1<<se,Oe=ie-1,xe=ie;function ve(s){return s<0?(-s<<1)+1:(s<<1)+0}le.encode=function(e){let n="",t,r=ve(e);do t=r&Oe,r>>>=se,r>0&&(t|=xe),n+=Ae.encode(t);while(r>0);return n}});var ce=C((ln,ue)=>{"use strict";g();ue.exports=typeof URL=="function"?URL:B("url").URL});var M=C(S=>{g();var b=ce();function Me(s,e,n){if(e in s)return s[e];if(arguments.length===3)return n;throw new Error('"'+e+'" is a required argument.')}S.getArg=Me;var fe=(function(){return!("__proto__"in Object.create(null))})();function he(s){return s}function Ie(s){return de(s)?"$"+s:s}S.toSetString=fe?he:Ie;function Re(s){return de(s)?s.slice(1):s}S.fromSetString=fe?he:Re;function de(s){if(!s)return!1;let e=s.length;if(e<9||s.charCodeAt(e-1)!==95||s.charCodeAt(e-2)!==95||s.charCodeAt(e-3)!==111||s.charCodeAt(e-4)!==116||s.charCodeAt(e-5)!==111||s.charCodeAt(e-6)!==114||s.charCodeAt(e-7)!==112||s.charCodeAt(e-8)!==95||s.charCodeAt(e-9)!==95)return!1;for(let n=e-10;n>=0;n--)if(s.charCodeAt(n)!==36)return!1;return!0}function ae(s,e){return s===e?0:s===null?1:e===null?-1:s>e?1:-1}function Ne(s,e){let n=s.generatedLine-e.generatedLine;return n!==0||(n=s.generatedColumn-e.generatedColumn,n!==0)||(n=ae(s.source,e.source),n!==0)||(n=s.originalLine-e.originalLine,n!==0)||(n=s.originalColumn-e.originalColumn,n!==0)?n:ae(s.name,e.name)}S.compareByGeneratedPositionsInflated=Ne;function Te(s){return JSON.parse(s.replace(/^\)]}'[^\n]*\n/,""))}S.parseSourceMapInput=Te;var k="http:",x=`${k}//host`;function z(s){return e=>{let n=L(e),t=F(e),r=new b(e,t);s(r);let o=r.toString();return n==="absolute"?o:n==="scheme-relative"?o.slice(k.length):n==="path-absolute"?o.slice(x.length):V(t,o)}}function y(s,e){return new b(s,e).toString()}function Pe(s,e){let n=0;do{let t=s+n++;if(e.indexOf(t)===-1)return t}while(!0)}function F(s){let e=s.split("..").length-1,n=Pe("p",s),t=`${x}/`;for(let r=0;r<e;r++)t+=`${n}/`;return t}var Ge=/^[A-Za-z0-9\+\-\.]+:/;function L(s){return s[0]==="/"?s[1]==="/"?"scheme-relative":"path-absolute":Ge.test(s)?"absolute":"path-relative"}function V(s,e){typeof s=="string"&&(s=new b(s)),typeof e=="string"&&(e=new b(e));let n=e.pathname.split("/"),t=s.pathname.split("/");for(t.length>0&&!t[t.length-1]&&t.pop();n.length>0&&t.length>0&&n[0]===t[0];)n.shift(),t.shift();return t.map(()=>"..").concat(n).join("/")+e.search+e.hash}var qe=z(s=>{s.pathname=s.pathname.replace(/\/?$/,"/")}),De=z(s=>{s.href=new b(".",s.toString()).toString()}),v=z(s=>{});S.normalize=v;function W(s,e){let n=L(e),t=L(s);if(s=qe(s),n==="absolute")return y(e,void 0);if(t==="absolute")return y(e,s);if(n==="scheme-relative")return v(e);if(t==="scheme-relative")return y(e,y(s,x)).slice(k.length);if(n==="path-absolute")return v(e);if(t==="path-absolute")return y(e,y(s,x)).slice(x.length);let r=F(e+s),o=y(e,y(s,r));return V(r,o)}S.join=W;function je(s,e){let n=Be(s,e);return typeof n=="string"?n:v(e)}S.relative=je;function Be(s,e){if(L(s)!==L(e))return null;let t=F(s+e),r=new b(s,t),o=new b(e,t);try{new b("",o.toString())}catch{return null}return o.protocol!==r.protocol||o.user!==r.user||o.password!==r.password||o.hostname!==r.hostname||o.port!==r.port?null:V(r,o)}function Ue(s,e,n){s&&L(e)==="path-absolute"&&(e=e.replace(/^\//,""));let t=v(e||"");return s&&(t=W(s,t)),n&&(t=W(De(n),t)),t}S.computeSourceURL=Ue});var Q=C(ge=>{g();var $=class s{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){let t=new s;for(let r=0,o=e.length;r<o;r++)t.add(e[r],n);return t}size(){return this._set.size}add(e,n){let t=this.has(e),r=this._array.length;(!t||n)&&this._array.push(e),t||this._set.set(e,r)}has(e){return this._set.has(e)}indexOf(e){let n=this._set.get(e);if(n>=0)return n;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)}toArray(){return this._array.slice()}};ge.ArraySet=$});var pe=C(_e=>{g();var me=M();function We(s,e){let n=s.generatedLine,t=e.generatedLine,r=s.generatedColumn,o=e.generatedColumn;return t>n||t==n&&o>=r||me.compareByGeneratedPositionsInflated(s,e)<=0}var J=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,n){this._array.forEach(e,n)}add(e){We(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(me.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};_e.MappingList=J});var K=C(Ce=>{g();var I=U(),m=M(),T=Q().ArraySet,ke=pe().MappingList,P=class s{constructor(e){e||(e={}),this._file=m.getArg(e,"file",null),this._sourceRoot=m.getArg(e,"sourceRoot",null),this._skipValidation=m.getArg(e,"skipValidation",!1),this._sources=new T,this._names=new T,this._mappings=new ke,this._sourcesContents=null}static fromSourceMap(e){let n=e.sourceRoot,t=new s({file:e.file,sourceRoot:n});return e.eachMapping(function(r){let o={generated:{line:r.generatedLine,column:r.generatedColumn}};r.source!=null&&(o.source=r.source,n!=null&&(o.source=m.relative(n,o.source)),o.original={line:r.originalLine,column:r.originalColumn},r.name!=null&&(o.name=r.name)),t.addMapping(o)}),e.sources.forEach(function(r){let o=r;n!=null&&(o=m.relative(n,r)),t._sources.has(o)||t._sources.add(o);let i=e.sourceContentFor(r);i!=null&&t.setSourceContent(r,i)}),t}addMapping(e){let n=m.getArg(e,"generated"),t=m.getArg(e,"original",null),r=m.getArg(e,"source",null),o=m.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,t,r,o),r!=null&&(r=String(r),this._sources.has(r)||this._sources.add(r)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:t&&t.line,originalColumn:t&&t.column,source:r,name:o})}setSourceContent(e,n){let t=e;this._sourceRoot!=null&&(t=m.relative(this._sourceRoot,t)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[m.toSetString(t)]=n):this._sourcesContents&&(delete this._sourcesContents[m.toSetString(t)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))}applySourceMap(e,n,t){let r=n;if(n==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);r=e.file}let o=this._sourceRoot;o!=null&&(r=m.relative(o,r));let i=this._mappings.toArray().length>0?new T:this._sources,c=new T;this._mappings.unsortedForEach(function(u){if(u.source===r&&u.originalLine!=null){let d=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});d.source!=null&&(u.source=d.source,t!=null&&(u.source=m.join(t,u.source)),o!=null&&(u.source=m.relative(o,u.source)),u.originalLine=d.line,u.originalColumn=d.column,d.name!=null&&(u.name=d.name))}let f=u.source;f!=null&&!i.has(f)&&i.add(f);let l=u.name;l!=null&&!c.has(l)&&c.add(l)},this),this._sources=i,this._names=c,e.sources.forEach(function(u){let f=e.sourceContentFor(u);f!=null&&(t!=null&&(u=m.join(t,u)),o!=null&&(u=m.relative(o,u)),this.setSourceContent(u,f))},this)}_validateMapping(e,n,t,r){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r)){if(!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}}_serializeMappings(){let e=0,n=1,t=0,r=0,o=0,i=0,c="",u,f,l,d,p=this._mappings.toArray();for(let a=0,w=p.length;a<w;a++){if(f=p[a],u="",f.generatedLine!==n)for(e=0;f.generatedLine!==n;)u+=";",n++;else if(a>0){if(!m.compareByGeneratedPositionsInflated(f,p[a-1]))continue;u+=","}u+=I.encode(f.generatedColumn-e),e=f.generatedColumn,f.source!=null&&(d=this._sources.indexOf(f.source),u+=I.encode(d-i),i=d,u+=I.encode(f.originalLine-1-r),r=f.originalLine-1,u+=I.encode(f.originalColumn-t),t=f.originalColumn,f.name!=null&&(l=this._names.indexOf(f.name),u+=I.encode(l-o),o=l)),c+=u}return c}_generateSourcesContent(e,n){return e.map(function(t){if(!this._sourcesContents)return null;n!=null&&(t=m.relative(n,t));let r=m.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)}toJSON(){let e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}};P.prototype._version=3;Ce.SourceMapGenerator=P});var we=C(E=>{g();E.GREATEST_LOWER_BOUND=1;E.LEAST_UPPER_BOUND=2;function X(s,e,n,t,r,o){let i=Math.floor((e-s)/2)+s,c=r(n,t[i],!0);return c===0?i:c>0?e-i>1?X(i,e,n,t,r,o):o===E.LEAST_UPPER_BOUND?e<t.length?e:-1:i:i-s>1?X(s,i,n,t,r,o):o==E.LEAST_UPPER_BOUND?i:s<0?-1:s}E.search=function(e,n,t,r){if(n.length===0)return-1;let o=X(-1,n.length,e,n,t,r||E.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&t(n[o],n[o-1],!0)===0;)--o;return o}});var Y=C((wn,Z)=>{"use strict";g();var ze=B("fs"),Fe=B("path");Z.exports=function(){return new Promise((e,n)=>{let t=Fe.join(__dirname,"mappings.wasm");ze.readFile(t,null,(r,o)=>{if(r){n(r);return}e(o.buffer)})})};Z.exports.initialize=s=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}});var ye=C((yn,Se)=>{g();var Ve=Y();function $e(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var R=null;Se.exports=function(){if(R)return R;let e=[];return R=Ve().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(t,r,o,i,c,u,f,l,d,p){let a=new $e;a.generatedLine=t+1,a.generatedColumn=r,o&&(a.lastGeneratedColumn=i-1),c&&(a.source=u,a.originalLine=f+1,a.originalColumn=l,d&&(a.name=p)),e[e.length-1](a)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(t,r)=>{e.push(t);try{r()}finally{e.pop()}}})).then(null,n=>{throw R=null,n}),R}});var be=C(q=>{g();var h=M(),Qe=we(),H=Q().ArraySet,En=U(),Je=Y(),Ke=ye(),ee=Symbol("smcInternal"),_=class s{constructor(e,n){return e==ee?Promise.resolve(this):Xe(e,n)}static initialize(e){Je.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){return Ze(e,n)}static async with(e,n,t){let r=await new s(e,n);try{return await t(r)}finally{r.destroy()}}eachMapping(e,n,t){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}};_.prototype._version=3;_.GENERATED_ORDER=1;_.ORIGINAL_ORDER=2;_.GREATEST_LOWER_BOUND=1;_.LEAST_UPPER_BOUND=2;q.SourceMapConsumer=_;var A=class s extends _{constructor(e,n){return super(ee).then(t=>{let r=e;typeof e=="string"&&(r=h.parseSourceMapInput(e));let o=h.getArg(r,"version"),i=h.getArg(r,"sources").map(String),c=h.getArg(r,"names",[]),u=h.getArg(r,"sourceRoot",null),f=h.getArg(r,"sourcesContent",null),l=h.getArg(r,"mappings"),d=h.getArg(r,"file",null),p=h.getArg(r,"x_google_ignoreList",null);if(o!=t._version)throw new Error("Unsupported version: "+o);return t._sourceLookupCache=new Map,t._names=H.fromArray(c.map(String),!0),t._sources=H.fromArray(i,!0),t._absoluteSources=H.fromArray(t._sources.toArray().map(function(a){return h.computeSourceURL(u,a,n)}),!0),t.sourceRoot=u,t.sourcesContent=f,t._mappings=l,t._sourceMapURL=n,t.file=d,t.x_google_ignoreList=p,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,Ke().then(a=>(t._wasm=a,t))})}_findSourceIndex(e){let n=this._sourceLookupCache.get(e);if(typeof n=="number")return n;let t=h.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(t)){let o=this._absoluteSources.indexOf(t);return this._sourceLookupCache.set(e,o),o}let r=h.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(r)){let o=this._absoluteSources.indexOf(r);return this._sourceLookupCache.set(e,o),o}return-1}static fromSourceMap(e,n){return new s(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return this._mappingsPtr===0&&this._parseMappings(),this._mappingsPtr}_parseMappings(){let e=this._mappings,n=e.length,t=this._wasm.exports.allocate_mappings(n)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,t,n);for(let i=0;i<n;i++)r[i]=e.charCodeAt(i);let o=this._wasm.exports.parse_mappings(t);if(!o){let i=this._wasm.exports.get_last_error(),c=`Error parsing mappings (code ${i}): `;switch(i){case 1:c+="the mappings contained a negative line, column, source index, or name index";break;case 2:c+="the mappings contained a number larger than 2**32";break;case 3:c+="reached EOF while in the middle of parsing a VLQ";break;case 4:c+="invalid base 64 character while parsing a VLQ";break;default:c+="unknown error code";break}throw new Error(c)}this._mappingsPtr=o}eachMapping(e,n,t){let r=n||null,o=t||_.GENERATED_ORDER;this._wasm.withMappingCallback(i=>{i.source!==null&&(i.source=this._absoluteSources.at(i.source),i.name!==null&&(i.name=this._names.at(i.name))),this._computedColumnSpans&&i.lastGeneratedColumn===null&&(i.lastGeneratedColumn=1/0),e.call(r,i)},()=>{switch(o){case _.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case _.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=h.getArg(e,"source"),t=h.getArg(e,"line"),r=e.column||0;if(n=this._findSourceIndex(n),n<0)return[];if(t<1)throw new Error("Line numbers must be >= 1");if(r<0)throw new Error("Column numbers must be >= 0");let o=[];return this._wasm.withMappingCallback(i=>{let c=i.lastGeneratedColumn;this._computedColumnSpans&&c===null&&(c=1/0),o.push({line:i.generatedLine,column:i.generatedColumn,lastColumn:c})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,r)}),o}destroy(){this._mappingsPtr!==0&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){let n={generatedLine:h.getArg(e,"line"),generatedColumn:h.getArg(e,"column")};if(n.generatedLine<1)throw new Error("Line numbers must be >= 1");if(n.generatedColumn<0)throw new Error("Column numbers must be >= 0");let t=h.getArg(e,"bias",_.GREATEST_LOWER_BOUND);t==null&&(t=_.GREATEST_LOWER_BOUND);let r;if(this._wasm.withMappingCallback(o=>r=o,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),n.generatedLine-1,n.generatedColumn,t)}),r&&r.generatedLine===n.generatedLine){let o=h.getArg(r,"source",null);o!==null&&(o=this._absoluteSources.at(o));let i=h.getArg(r,"name",null);return i!==null&&(i=this._names.at(i)),{source:o,line:h.getArg(r,"originalLine",null),column:h.getArg(r,"originalColumn",null),name:i}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1}sourceContentFor(e,n){if(!this.sourcesContent)return null;let t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let n=h.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};let t={source:n,originalLine:h.getArg(e,"line"),originalColumn:h.getArg(e,"column")};if(t.originalLine<1)throw new Error("Line numbers must be >= 1");if(t.originalColumn<0)throw new Error("Column numbers must be >= 0");let r=h.getArg(e,"bias",_.GREATEST_LOWER_BOUND);r==null&&(r=_.GREATEST_LOWER_BOUND);let o;if(this._wasm.withMappingCallback(i=>o=i,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),t.source,t.originalLine-1,t.originalColumn,r)}),o&&o.source===t.source){let i=o.lastGeneratedColumn;return this._computedColumnSpans&&i===null&&(i=1/0),{line:h.getArg(o,"generatedLine",null),column:h.getArg(o,"generatedColumn",null),lastColumn:i}}return{line:null,column:null,lastColumn:null}}};A.prototype.consumer=_;q.BasicSourceMapConsumer=A;var G=class extends _{constructor(e,n){return super(ee).then(t=>{let r=e;typeof e=="string"&&(r=h.parseSourceMapInput(e));let o=h.getArg(r,"version"),i=h.getArg(r,"sections");if(o!=t._version)throw new Error("Unsupported version: "+o);let c={line:-1,column:0};return Promise.all(i.map(u=>{if(u.url)throw new Error("Support for url field in sections not implemented.");let f=h.getArg(u,"offset"),l=h.getArg(f,"line"),d=h.getArg(f,"column");if(l<c.line||l===c.line&&d<c.column)throw new Error("Section offsets must be ordered and non-overlapping.");return c=f,new _(h.getArg(u,"map"),n).then(a=>({generatedOffset:{generatedLine:l+1,generatedColumn:d+1},consumer:a}))})).then(u=>(t._sections=u,t))})}get sources(){let e=[];for(let n=0;n<this._sections.length;n++)for(let t=0;t<this._sections[n].consumer.sources.length;t++)e.push(this._sections[n].consumer.sources[t]);return e}originalPositionFor(e){let n={generatedLine:h.getArg(e,"line"),generatedColumn:h.getArg(e,"column")},t=Qe.search(n,this._sections,function(o,i){let c=o.generatedLine-i.generatedOffset.generatedLine;return c||o.generatedColumn-(i.generatedOffset.generatedColumn-1)}),r=this._sections[t];return r?r.consumer.originalPositionFor({line:n.generatedLine-(r.generatedOffset.generatedLine-1),column:n.generatedColumn-(r.generatedOffset.generatedLine===n.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})}sourceContentFor(e,n){for(let t=0;t<this._sections.length;t++){let o=this._sections[t].consumer.sourceContentFor(e,!0);if(o)return o}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')}_findSectionIndex(e){for(let n=0;n<this._sections.length;n++){let{consumer:t}=this._sections[n];if(t._findSourceIndex(e)!==-1)return n}return-1}generatedPositionFor(e){let n=this._findSectionIndex(h.getArg(e,"source")),t=n>=0?this._sections[n]:null,r=n>=0&&n+1<this._sections.length?this._sections[n+1]:null,o=t&&t.consumer.generatedPositionFor(e);if(o&&o.line!==null){let i=t.generatedOffset.generatedLine-1,c=t.generatedOffset.generatedColumn-1;return o.line===1&&(o.column+=c,typeof o.lastColumn=="number"&&(o.lastColumn+=c)),o.lastColumn===1/0&&r&&o.line===r.generatedOffset.generatedLine&&(o.lastColumn=r.generatedOffset.generatedColumn-2),o.line+=i,o}return{line:null,column:null,lastColumn:null}}allGeneratedPositionsFor(e){let n=this._findSectionIndex(h.getArg(e,"source")),t=n>=0?this._sections[n]:null,r=n>=0&&n+1<this._sections.length?this._sections[n+1]:null;return t?t.consumer.allGeneratedPositionsFor(e).map(o=>{let i=t.generatedOffset.generatedLine-1,c=t.generatedOffset.generatedColumn-1;return o.line===1&&(o.column+=c,typeof o.lastColumn=="number"&&(o.lastColumn+=c)),o.lastColumn===1/0&&r&&o.line===r.generatedOffset.generatedLine&&(o.lastColumn=r.generatedOffset.generatedColumn-2),o.line+=i,o}):[]}eachMapping(e,n,t){this._sections.forEach((r,o)=>{let i=o+1<this._sections.length?this._sections[o+1]:null,{generatedOffset:c}=r,u=c.generatedLine-1,f=c.generatedColumn-1;r.consumer.eachMapping(function(l){l.generatedLine===1&&(l.generatedColumn+=f,typeof l.lastGeneratedColumn=="number"&&(l.lastGeneratedColumn+=f)),l.lastGeneratedColumn===1/0&&i&&l.generatedLine===i.generatedOffset.generatedLine&&(l.lastGeneratedColumn=i.generatedOffset.generatedColumn-2),l.generatedLine+=u,e.call(this,l)},n,t)})}computeColumnSpans(){for(let e=0;e<this._sections.length;e++)this._sections[e].consumer.computeColumnSpans()}destroy(){for(let e=0;e<this._sections.length;e++)this._sections[e].consumer.destroy()}};q.IndexedSourceMapConsumer=G;function Xe(s,e){let n=s;typeof s=="string"&&(n=h.parseSourceMapInput(s));let t=n.sections!=null?new G(n,e):new A(n,e);return Promise.resolve(t)}function Ze(s,e){return A.fromSourceMap(s,e)}});var Le=C(Ee=>{g();var Ye=K().SourceMapGenerator,D=M(),He=/(\r?\n)/,en=10,O="$$$isSourceNode$$$",ne=class s{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=e??null,this.column=n??null,this.source=t??null,this.name=o??null,this[O]=!0,r!=null&&this.add(r)}static fromStringWithSourceMap(e,n,t){let r=new s,o=e.split(He),i=0,c=function(){let a=N(),w=N()||"";return a+w;function N(){return i<o.length?o[i++]:void 0}},u=1,f=0,l=null,d;return n.eachMapping(function(a){if(l!==null)if(u<a.generatedLine)p(l,c()),u++,f=0;else{d=o[i]||"";let w=d.substr(0,a.generatedColumn-f);o[i]=d.substr(a.generatedColumn-f),f=a.generatedColumn,p(l,w),l=a;return}for(;u<a.generatedLine;)r.add(c()),u++;f<a.generatedColumn&&(d=o[i]||"",r.add(d.substr(0,a.generatedColumn)),o[i]=d.substr(a.generatedColumn),f=a.generatedColumn),l=a},this),i<o.length&&(l&&p(l,c()),r.add(o.splice(i).join(""))),n.sources.forEach(function(a){let w=n.sourceContentFor(a);w!=null&&(t!=null&&(a=D.join(t,a)),r.setSourceContent(a,w))}),r;function p(a,w){if(a===null||a.source===void 0)r.add(w);else{let N=t?D.join(t,a.source):a.source;r.add(new s(a.originalLine,a.originalColumn,N,w,a.name))}}}add(e){if(Array.isArray(e))e.forEach(function(n){this.add(n)},this);else if(e[O]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this}prepend(e){if(Array.isArray(e))for(let n=e.length-1;n>=0;n--)this.prepend(e[n]);else if(e[O]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this}walk(e){let n;for(let t=0,r=this.children.length;t<r;t++)n=this.children[t],n[O]?n.walk(e):n!==""&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})}join(e){let n,t,r=this.children.length;if(r>0){for(n=[],t=0;t<r-1;t++)n.push(this.children[t]),n.push(e);n.push(this.children[t]),this.children=n}return this}replaceRight(e,n){let t=this.children[this.children.length-1];return t[O]?t.replaceRight(e,n):typeof t=="string"?this.children[this.children.length-1]=t.replace(e,n):this.children.push("".replace(e,n)),this}setSourceContent(e,n){this.sourceContents[D.toSetString(e)]=n}walkSourceContents(e){for(let t=0,r=this.children.length;t<r;t++)this.children[t][O]&&this.children[t].walkSourceContents(e);let n=Object.keys(this.sourceContents);for(let t=0,r=n.length;t<r;t++)e(D.fromSetString(n[t]),this.sourceContents[n[t]])}toString(){let e="";return this.walk(function(n){e+=n}),e}toStringWithSourceMap(e){let n={code:"",line:1,column:0},t=new Ye(e),r=!1,o=null,i=null,c=null,u=null;return this.walk(function(f,l){n.code+=f,l.source!==null&&l.line!==null&&l.column!==null?((o!==l.source||i!==l.line||c!==l.column||u!==l.name)&&t.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:n.line,column:n.column},name:l.name}),o=l.source,i=l.line,c=l.column,u=l.name,r=!0):r&&(t.addMapping({generated:{line:n.line,column:n.column}}),o=null,r=!1);for(let d=0,p=f.length;d<p;d++)f.charCodeAt(d)===en?(n.line++,n.column=0,d+1===p?(o=null,r=!1):r&&t.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:n.line,column:n.column},name:l.name})):n.column++}),this.walkSourceContents(function(f,l){t.setSourceContent(f,l)}),{code:n.code,map:t}}};Ee.SourceNode=ne});var nn=C(j=>{g();j.SourceMapGenerator=K().SourceMapGenerator;j.SourceMapConsumer=be().SourceMapConsumer;j.SourceNode=Le().SourceNode});export default nn();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{J as a,K as b,L as c,M as d,N as e,O as f,P as g,Q as h,R as i,S as j,T as k,U as l,V as m}from"./chunk-NTRAWIEJ.js";import"./chunk-EJDWYASP.js";import"./chunk-7UNQOKZW.js";import"./chunk-GB3YC4TI.js";import"./chunk-RJ5VF3QY.js";import"./chunk-VI34CKV6.js";import"./chunk-TPCG6DCA.js";import"./chunk-636CTEW7.js";import"./chunk-T6CC5WUU.js";import"./chunk-UQWFDL3F.js";import"./chunk-I5A6BPCP.js";import"./chunk-CX5CC6P5.js";import"./chunk-ET2CGROE.js";import"./chunk-TOLPNBZK.js";import"./chunk-3SPDFV5D.js";import"./chunk-7FQFEB33.js";import"./chunk-A4SBXDZB.js";import"./chunk-NJOO5XJV.js";import"./chunk-ZG7BVVT2.js";import"./chunk-2O22LZKV.js";import"./chunk-S5IFJ737.js";import"./chunk-NNOSZ447.js";import"./chunk-773TIA5M.js";import"./chunk-CRALWNNO.js";import"./chunk-VKWPEFWQ.js";export{d as captureCommandWithExitCode,b as captureOutput,c as captureOutputWithExitCode,f as exec,e as execCommand,j as isCI,l as isStdinPiped,k as isWsl,a as openURL,m as readStdinString,g as sleep,h as terminalSupportsHyperlinks,i as terminalSupportsPrompting};
|