@visulima/vis 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/LICENSE.md +5760 -4562
- package/dashboard/dist/index.html +12 -12
- package/dist/bin.js +1 -1
- package/dist/binx.js +2 -2
- package/dist/config/index.js +1 -1
- package/dist/packem_chunks/CONFIG_FILES.js +6 -6
- package/dist/packem_chunks/DEFAULT_CLEAN_KEEP.js +1 -1
- package/dist/packem_chunks/agent-instructions.js +7 -7
- package/dist/packem_chunks/bloom-status.js +2 -2
- package/dist/packem_chunks/bloom-sync.js +2 -2
- package/dist/packem_chunks/cache-attestation.js +1 -1
- package/dist/packem_chunks/catalog-detector.js +1 -1
- package/dist/packem_chunks/catalog.js +87 -111
- package/dist/packem_chunks/cli-exec.js +1 -1
- package/dist/packem_chunks/cli-main.js +192 -217
- package/dist/packem_chunks/defineReleasePlugin.js +3 -3
- package/dist/packem_chunks/detect.js +8 -3
- package/dist/packem_chunks/devtools.js +1 -1
- package/dist/packem_chunks/discord.js +4 -4
- package/dist/packem_chunks/dispatch.js +4 -4
- package/dist/packem_chunks/doctor-probe.js +2 -2
- package/dist/packem_chunks/extra-files.js +3 -3
- package/dist/packem_chunks/fix.js +11 -11
- package/dist/packem_chunks/git.js +3 -3
- package/dist/packem_chunks/group-tags.js +1 -1
- package/dist/packem_chunks/handler.js +1 -1
- package/dist/packem_chunks/handler10.js +5 -5
- package/dist/packem_chunks/handler11.js +1 -1
- package/dist/packem_chunks/handler12.js +16 -16
- package/dist/packem_chunks/handler13.js +5 -5
- package/dist/packem_chunks/handler14.js +1 -1
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler16.js +1 -1
- package/dist/packem_chunks/handler17.js +1 -1
- package/dist/packem_chunks/handler18.js +1 -1
- package/dist/packem_chunks/handler19.js +5 -5
- package/dist/packem_chunks/handler2.js +1 -1
- package/dist/packem_chunks/handler20.js +2 -2
- package/dist/packem_chunks/handler21.js +2 -2
- package/dist/packem_chunks/handler22.js +8 -8
- package/dist/packem_chunks/handler23.js +1 -1
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler25.js +1 -1
- package/dist/packem_chunks/handler26.js +5 -5
- package/dist/packem_chunks/handler27.js +1 -1
- package/dist/packem_chunks/handler28.js +3 -3
- package/dist/packem_chunks/handler29.js +1 -1
- package/dist/packem_chunks/handler3.js +2 -2
- package/dist/packem_chunks/handler30.js +1 -1
- package/dist/packem_chunks/handler31.js +2 -2
- package/dist/packem_chunks/handler32.js +2 -2
- package/dist/packem_chunks/handler33.js +2 -2
- package/dist/packem_chunks/handler34.js +3 -3
- package/dist/packem_chunks/handler35.js +5 -5
- package/dist/packem_chunks/handler36.js +1 -1
- package/dist/packem_chunks/handler37.js +2 -2
- package/dist/packem_chunks/handler38.js +6 -6
- package/dist/packem_chunks/handler39.js +8 -8
- package/dist/packem_chunks/handler4.js +4 -4
- package/dist/packem_chunks/handler40.js +34 -34
- package/dist/packem_chunks/handler41.js +5 -5
- package/dist/packem_chunks/handler42.js +4 -4
- package/dist/packem_chunks/handler43.js +3 -3
- package/dist/packem_chunks/handler44.js +2 -2
- package/dist/packem_chunks/handler45.js +1 -1
- package/dist/packem_chunks/handler46.js +1 -1
- package/dist/packem_chunks/handler47.js +1 -1
- package/dist/packem_chunks/handler48.js +3 -3
- package/dist/packem_chunks/handler49.js +1 -1
- package/dist/packem_chunks/handler5.js +6 -6
- package/dist/packem_chunks/handler50.js +6 -6
- package/dist/packem_chunks/handler51.js +13 -13
- package/dist/packem_chunks/handler52.js +3 -3
- package/dist/packem_chunks/handler53.js +5 -5
- package/dist/packem_chunks/handler54.js +2 -2
- package/dist/packem_chunks/handler55.js +1 -1
- package/dist/packem_chunks/handler56.js +4 -4
- package/dist/packem_chunks/handler57.js +5 -5
- package/dist/packem_chunks/handler58.js +5 -5
- package/dist/packem_chunks/handler59.js +8 -8
- package/dist/packem_chunks/handler6.js +7 -7
- package/dist/packem_chunks/handler60.js +3 -3
- package/dist/packem_chunks/handler61.js +21 -21
- package/dist/packem_chunks/handler62.js +12 -12
- package/dist/packem_chunks/handler63.js +3 -3
- package/dist/packem_chunks/handler64.js +5 -5
- package/dist/packem_chunks/handler65.js +8 -8
- package/dist/packem_chunks/handler66.js +2 -2
- package/dist/packem_chunks/handler67.js +25 -24
- package/dist/packem_chunks/handler68.js +153 -25
- package/dist/packem_chunks/handler69.js +10 -153
- package/dist/packem_chunks/handler7.js +1 -1
- package/dist/packem_chunks/handler70.js +22 -10
- package/dist/packem_chunks/handler71.js +17 -17
- package/dist/packem_chunks/handler72.js +104 -104
- package/dist/packem_chunks/handler73.js +20 -20
- package/dist/packem_chunks/handler74.js +45 -45
- package/dist/packem_chunks/handler75.js +27 -3
- package/dist/packem_chunks/handler76.js +3 -27
- package/dist/packem_chunks/handler77.js +68 -68
- package/dist/packem_chunks/handler78.js +30 -30
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/handler9.js +1 -1
- package/dist/packem_chunks/heal-accept.js +9 -9
- package/dist/packem_chunks/heal.js +11 -11
- package/dist/packem_chunks/help-command.js +7 -63
- package/dist/packem_chunks/index.js +1 -1
- package/dist/packem_chunks/index2.js +48 -804
- package/dist/packem_chunks/index3.js +3 -7
- package/dist/packem_chunks/index4.js +801 -134
- package/dist/packem_chunks/index5.js +7 -73
- package/dist/packem_chunks/index6.js +73 -0
- package/dist/packem_chunks/index7.js +135 -0
- package/dist/packem_chunks/interface.js +2 -2
- package/dist/packem_chunks/keys-refresh.js +4 -4
- package/dist/packem_chunks/lean.js +3 -3
- package/dist/packem_chunks/list.js +3 -3
- package/dist/packem_chunks/loader.js +4 -4
- package/dist/packem_chunks/loader2.js +1 -1
- package/dist/packem_chunks/orchestrator.js +27 -27
- package/dist/packem_chunks/pre-mode.js +2 -2
- package/dist/packem_chunks/print-config.js +1 -1
- package/dist/packem_chunks/prompts.js +7 -7
- package/dist/packem_chunks/prune.js +3 -3
- package/dist/packem_chunks/publish-guards.js +1 -1
- package/dist/packem_chunks/resolveFormatter.js +5 -5
- package/dist/packem_chunks/run.js +1 -1
- package/dist/packem_chunks/security.js +1 -1
- package/dist/packem_chunks/shell-runner.js +1 -1
- package/dist/packem_chunks/slack.js +2 -2
- package/dist/packem_chunks/snapshot.js +2 -2
- package/dist/packem_chunks/stage-publisher.js +1 -1
- package/dist/packem_chunks/staged-registry.js +2 -2
- package/dist/packem_chunks/state.js +3 -3
- package/dist/packem_chunks/status.js +2 -2
- package/dist/packem_chunks/success-walk.js +4 -4
- package/dist/packem_chunks/sync.js +2 -2
- package/dist/packem_chunks/sync2.js +2 -2
- package/dist/packem_chunks/tar.js +3 -3
- package/dist/packem_chunks/tripwire.js +2 -2
- package/dist/packem_chunks/ts-loader.js +5 -9
- package/dist/packem_chunks/verify-lockfile.js +2 -2
- package/dist/packem_chunks/version-resolver.js +2 -2
- package/dist/packem_chunks/webhook.js +1 -1
- package/dist/packem_chunks/workflow-templates.js +5 -5
- package/dist/packem_chunks/workspace.js +2 -2
- package/dist/packem_shared/ReleaseClient-DAvbxCdo.js +1 -0
- package/dist/packem_shared/Table-DyORjLji-CC9cYgCG.js +11 -0
- package/dist/packem_shared/{VisReleaseError-DMGRBTNO.js → VisReleaseError-DZtgcKf8.js} +1 -1
- package/dist/packem_shared/_commonjsHelpers-DTfxOvZk.js +1 -0
- package/dist/packem_shared/advisories-DZd1uGqa.js +1 -0
- package/dist/packem_shared/affected-selection-CoRXp5H4.js +1 -0
- package/dist/packem_shared/affected-shas-Dd0P7fGD.js +1 -0
- package/dist/packem_shared/ai-analysis-DSQQDFU9.js +68 -0
- package/dist/packem_shared/ai-fix-6nXZbecQ.js +43 -0
- package/dist/packem_shared/augment-COAiXSIx.js +4 -0
- package/dist/packem_shared/bin-C2eYtJ_N.js +1 -0
- package/dist/packem_shared/build-scripts-pdVmqXRm.js +1 -0
- package/dist/packem_shared/clean-DRiLimTx.js +1 -0
- package/dist/packem_shared/command-runtime-CiLVo4ED.js +1 -0
- package/dist/packem_shared/{compile-cache-B_Vf_WxT.js → compile-cache-DoMHRsRZ.js} +1 -1
- package/dist/packem_shared/createAdapter-F7GidOzU.js +1 -0
- package/dist/packem_shared/createVersionActions-ByaJ1Nbv.js +1 -0
- package/dist/packem_shared/cyclonedx-B1vzerwP.js +4 -0
- package/dist/packem_shared/dependency-scan-DBH2Qo4I.js +1 -0
- package/dist/packem_shared/docker-Bex05Qcn.js +59 -0
- package/dist/packem_shared/failure-log-D92tM0ie.js +2 -0
- package/dist/packem_shared/formatBytes-BHAzNIrn-DFIppnY0.js +4 -0
- package/dist/packem_shared/getRandomSpinner-4ZEcbTYv-DCyIuj19.js +1 -0
- package/dist/packem_shared/giget-D8Kwb0kD.js +2 -0
- package/dist/packem_shared/glob-Cyk1H9ZL-ox19CSsT.js +1 -0
- package/dist/packem_shared/index-B4AjSxHU.js +1 -0
- package/dist/packem_shared/index-BisalDCf.js +39 -0
- package/dist/packem_shared/{index-BWl4DbMp.js → index-BjdW45xX.js} +1 -1
- package/dist/packem_shared/index-DHD8wb6Z.js +22 -0
- package/dist/packem_shared/index-DXPSWMbG.js +1 -0
- package/dist/packem_shared/index.server-BAjDJSEu.js +2 -0
- package/dist/packem_shared/isAccessibleSync-DYKTrrvc-CSnBISfV.js +1 -0
- package/dist/packem_shared/license-DvlYdo6T.js +1 -0
- package/dist/packem_shared/lifecycle-CfTZQHOG.js +2 -0
- package/dist/packem_shared/lockfile-35RFsJDs.js +1 -0
- package/dist/packem_shared/lockfile-DhHAaHN5.js +1 -0
- package/dist/packem_shared/main-BP-w-K-6.js +1 -0
- package/dist/packem_shared/manifests-BNSmpPF_.js +1 -0
- package/dist/packem_shared/min-release-age-ChzTC7_I.js +34 -0
- package/dist/packem_shared/missing-package-json-C0keIt78.js +1 -0
- package/dist/packem_shared/native-config-sync-BSzU4qUO.js +21 -0
- package/dist/packem_shared/osv-bloom-1JS__1or.js +2 -0
- package/dist/packem_shared/otelPlugin-D8LL2-4L.js +1 -0
- package/dist/packem_shared/package-version-Bb7KGF36.js +4 -0
- package/dist/packem_shared/packument-C55kVxcQ.js +1 -0
- package/dist/packem_shared/{peer-warnings-BXAzXqY3.js → peer-warnings-CmYSxvql.js} +1 -1
- package/dist/packem_shared/pm-runner-de-jCq8q.js +1 -0
- package/dist/packem_shared/project-name-filter-DYaIbrXa.js +7 -0
- package/dist/packem_shared/{prompt-BSAy8SMH.js → prompt-DMzaQEVa.js} +1 -1
- package/dist/packem_shared/provenance-CvfQEJPQ.js +1 -0
- package/dist/packem_shared/readJsonSync-CbryXYxN-B2aSeDpC.js +1 -0
- package/dist/packem_shared/registry-keys-DmBrAlhg.js +1 -0
- package/dist/packem_shared/resolve-explicit-DYaHAVDg.js +5 -0
- package/dist/packem_shared/resolve-runtime-C7NBCA1C.js +1 -0
- package/dist/packem_shared/run-file-jMngGQhs.js +1 -0
- package/dist/packem_shared/runtime-check-BklgEMkC.js +1 -0
- package/dist/packem_shared/s1ngularity-C8sva2SO.js +1 -0
- package/dist/packem_shared/scan-progress-aVHGZYWf.js +2 -0
- package/dist/packem_shared/selectors-B7lSFz7l.js +3 -0
- package/dist/packem_shared/signatures-oZ_2IneN.js +2 -0
- package/dist/packem_shared/{slug-DoueYuLo.js → slug-OBHcH7wV.js} +1 -1
- package/dist/packem_shared/spinner-CbJfWYwB.js +1 -0
- package/dist/packem_shared/sticky-comment-DjhyCIZt.js +1 -0
- package/dist/packem_shared/subtree-DtmcKAJK.js +2 -0
- package/dist/packem_shared/symbols-BXDZ_sKt.js +1 -0
- package/dist/packem_shared/tabs-BilwonkM.js +1 -0
- package/dist/packem_shared/target-merge-DCGow6Kw.js +4 -0
- package/dist/packem_shared/target-options-d_rIrLyq.js +1 -0
- package/dist/packem_shared/toolchain-DY11tPCw.js +5 -0
- package/dist/packem_shared/typosquats-Cdsnf6aN.js +1 -0
- package/dist/packem_shared/use-measured-height-BPQg2q_p.js +1 -0
- package/dist/packem_shared/utils-DQFHJn72.js +1 -0
- package/dist/packem_shared/verify-D8wYvB85.js +1 -0
- package/dist/packem_shared/vis-update-app-ngwL2mRv.js +1 -0
- package/dist/packem_shared/vis-user-error-CAu9wIbe.js +30 -0
- package/dist/packem_shared/watch-Dswvj6Zp.js +1 -0
- package/dist/packem_shared/watch-loop-COWvvSbR.js +11 -0
- package/dist/packem_shared/writeFileSync-DJoHk3Ks-CgQ-VNNT.js +1 -0
- package/dist/release/core/changelog/index.d.ts +62 -2
- package/dist/release/core/package-managers/index.d.ts +25 -1
- package/dist/release/core/package-managers/index.js +1 -1
- package/dist/release/core/version-actions/index.d.ts +47 -2
- package/dist/release/core/version-actions/index.js +1 -1
- package/dist/release/index.d.ts +100 -1
- package/dist/release/index.js +1 -1
- package/dist/release/plugin-sdk.d.ts +16 -1
- package/dist/release/plugin-sdk.js +1 -1
- package/dist/release/presets.js +1 -1
- package/dist/release/types.js +1 -1
- package/dist/runtime/preload.js +1 -1
- package/index.js +26 -26
- package/package.json +14 -14
- package/dist/packem_chunks/detect2.js +0 -8
- package/dist/packem_chunks/registry.js +0 -48
- package/dist/packem_shared/ReleaseClient-BY4OZNCK.js +0 -1
- package/dist/packem_shared/_commonjsHelpers-B5Y90VFO.js +0 -1
- package/dist/packem_shared/advisories-DsXRmIA5.js +0 -1
- package/dist/packem_shared/affected-selection-BE6VFCDV.js +0 -1
- package/dist/packem_shared/affected-shas-BKEu4RZc.js +0 -1
- package/dist/packem_shared/ai-analysis-DikAj6rX.js +0 -68
- package/dist/packem_shared/ai-fix-bfWo0cZX.js +0 -43
- package/dist/packem_shared/augment-BkJxi_GW.js +0 -4
- package/dist/packem_shared/bin-B-TytgzW.js +0 -1
- package/dist/packem_shared/build-scripts-DWypBQ--.js +0 -1
- package/dist/packem_shared/clean-DWjQl14S.js +0 -1
- package/dist/packem_shared/command-runtime-DQ7ZpLYL.js +0 -1
- package/dist/packem_shared/createAdapter-bU4DIP3F.js +0 -1
- package/dist/packem_shared/createVersionActions-BK43SNDH.js +0 -1
- package/dist/packem_shared/cyclonedx-DLBi65MV.js +0 -4
- package/dist/packem_shared/dependency-scan-ZLOuLkGN.js +0 -1
- package/dist/packem_shared/docker-B4zAZCZG.js +0 -59
- package/dist/packem_shared/en-BDYMmM2_.js +0 -27
- package/dist/packem_shared/failure-log-DyhWPqno.js +0 -2
- package/dist/packem_shared/giget-CAxjpwew.js +0 -2
- package/dist/packem_shared/glob-BUjyjdE8-Dp_QcayW.js +0 -1
- package/dist/packem_shared/index-BAe6e0XE.js +0 -1
- package/dist/packem_shared/index-BLtnel38.js +0 -35
- package/dist/packem_shared/index-CuKDxOCI.js +0 -1
- package/dist/packem_shared/index-tNFGWxc0.js +0 -39
- package/dist/packem_shared/index.server-CusjRLCh.js +0 -2
- package/dist/packem_shared/license-t5KnNX6v.js +0 -1
- package/dist/packem_shared/lifecycle-KY9umOg6.js +0 -2
- package/dist/packem_shared/lockfile-YAuZf1gh.js +0 -1
- package/dist/packem_shared/main-D_cam4hv.js +0 -1
- package/dist/packem_shared/manifests-BwTn_1ad.js +0 -1
- package/dist/packem_shared/min-release-age-6avfn81h.js +0 -34
- package/dist/packem_shared/missing-package-json-Cl0vdz6K.js +0 -1
- package/dist/packem_shared/native-config-sync-CHMCJx7H.js +0 -21
- package/dist/packem_shared/osv-bloom-DdqDnLCt.js +0 -2
- package/dist/packem_shared/otelPlugin-DmKDBaPo.js +0 -1
- package/dist/packem_shared/package-version-BNRJ3o9C.js +0 -4
- package/dist/packem_shared/packument-B9-WqReu.js +0 -1
- package/dist/packem_shared/pm-runner-DRybtzOV.js +0 -1
- package/dist/packem_shared/project-name-filter-Dw0fC6IO.js +0 -7
- package/dist/packem_shared/provenance-CLxuqCfL.js +0 -1
- package/dist/packem_shared/readJsonSync-DweZd5ZA-CtrDlqpb.js +0 -1
- package/dist/packem_shared/registry-keys-cTN24144.js +0 -1
- package/dist/packem_shared/resolve-explicit-Uw6WQl9R.js +0 -5
- package/dist/packem_shared/resolve-runtime-DztanwkZ.js +0 -1
- package/dist/packem_shared/run-file-CaE5_xBY.js +0 -1
- package/dist/packem_shared/runtime-check-C32yE57I.js +0 -1
- package/dist/packem_shared/s1ngularity-BIYhg82u.js +0 -1
- package/dist/packem_shared/scan-progress-DWfY4zkp.js +0 -2
- package/dist/packem_shared/selectors-D2j4M9Ul.js +0 -3
- package/dist/packem_shared/signatures-C8iQ5fUq.js +0 -2
- package/dist/packem_shared/sticky-comment-D6_7-w8T.js +0 -1
- package/dist/packem_shared/subtree-DSm0QEoE.js +0 -2
- package/dist/packem_shared/symbols-DPTlrJ3B.js +0 -1
- package/dist/packem_shared/target-merge-DLxJTcxn.js +0 -11
- package/dist/packem_shared/target-options-3t4-2F-F.js +0 -1
- package/dist/packem_shared/toolchain-BPzbahcQ.js +0 -5
- package/dist/packem_shared/typosquats-BWrmhh36.js +0 -1
- package/dist/packem_shared/use-measured-height-BwAwGHjw.js +0 -1
- package/dist/packem_shared/utils-CRueU43T.js +0 -1
- package/dist/packem_shared/verify-CzUPT6Uk.js +0 -1
- package/dist/packem_shared/vis-update-app-D6Wq8ZHM.js +0 -1
- package/dist/packem_shared/vis-user-error-CfM4_ORo.js +0 -30
- package/dist/packem_shared/watch-D_oAxW_Z.js +0 -1
- package/dist/packem_shared/watch-loop-BrjblOz5.js +0 -11
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import{createRequire as Xs}from"node:module";import{e as Ie,a as to,m as _i}from"./index-DHD8wb6Z.js";import{h as so,S as oo}from"./index-BisalDCf.js";import{y as fo}from"./isAccessibleSync-DYKTrrvc-CSnBISfV.js";import{p as ns}from"./readJsonSync-CbryXYxN-B2aSeDpC.js";import{U as ut,h as lo}from"./writeFileSync-DJoHk3Ks-CgQ-VNNT.js";let Zs;const eo=a=>(Zs??=Xs(import.meta.url))(a),zr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ro=a=>{if(typeof zr<"u"&&zr.versions&&zr.versions.node){const[g,C]=zr.versions.node.split(".").map(Number);if(g>22||g===22&&C>=3||g===20&&C>=16)return zr.getBuiltinModule(a)}return eo(a)},{rmSync:ki,existsSync:es,readFileSync:at,cpSync:rs,lstatSync:no,readdirSync:io}=ro("node:fs");class er extends Error{constructor(g){super(g),this.name="LockfilePruneError"}}const is=a=>{let g=a.startsWith("/")?a.slice(1):a;const C=g.indexOf("(");return C!==-1&&(g=g.slice(0,C)),g},co=(a,g)=>{if(!(g.startsWith("link:")||g.startsWith("file:")||g.startsWith("workspace:")))return`${a}@${g}`},ao=a=>{const g=[];for(const C of[a.dependencies,a.devDependencies,a.optionalDependencies])if(C)for(const[s,h]of Object.entries(C))h?.version&&g.push({name:s,version:h.version});return g},pt=a=>{const g=[];for(const C of[a.dependencies,a.optionalDependencies])if(C)for(const[s,h]of Object.entries(C))typeof h=="string"&&g.push({name:s,version:h});return g},ht=a=>{const g=new Map;if(!a)return g;for(const C of Object.keys(a)){const s=is(C),h=g.get(s);h?h.push(C):g.set(s,[C])}return g},ts=a=>{const g=a.displayName??"pnpm-lock.yaml",C=typeof a.lockfileContent=="string"?a.lockfileContent:a.lockfileContent.toString("utf8");let s;try{s=so(C)}catch(J){throw new er(`${g}: parse failed — ${J.message}`)}const h=J=>J.packages?Object.keys(J.packages).length:0;let e;for(const J of s){const[re]=J.errors;if(re)throw new er(`${g}: parse failed — ${re.message}`);const M=J.toJS();if(!M||typeof M!="object")continue;const le=M;(e===void 0||h(le)>h(e))&&(e=le)}if(e===void 0)throw new er(`${g}: top-level value is not an object`);const d=e.importers??{},b=ht(e.packages),m=ht(e.snapshots),w=new Set(["."]);for(const J of a.closure)w.add(J.relativeRoot===""?".":J.relativeRoot);const k={};for(const[J,re]of Object.entries(d))w.has(J)&&(k[J]=re);const Y=new Set,y=new Set,A=[];for(const J of Object.values(k))for(const re of ao(J))A.push(re);for(;A.length>0;){const{name:J,version:re}=A.shift(),M=co(J,re);if(!M)continue;const le=is(M),we=m.get(le)??m.get(M)??[];for(const ve of we){if(y.has(ve))continue;y.add(ve);const Ee=e.snapshots?.[ve];if(Ee)for(const Oe of pt(Ee))A.push(Oe)}const de=b.get(le)??b.get(M)??[];for(const ve of de){if(Y.has(ve))continue;Y.add(ve);const Ee=e.packages?.[ve];if(Ee&&!e.snapshots)for(const Oe of pt(Ee))A.push(Oe)}}const $={lockfileVersion:e.lockfileVersion};for(const J of["settings","overrides","patchedDependencies","catalogs"])e[J]!==void 0&&($[J]=e[J]);if($.importers=k,e.packages){const J={};for(const re of Object.keys(e.packages))Y.has(re)&&(J[re]=e.packages[re]);$.packages=J}if(e.snapshots){const J={};for(const re of Object.keys(e.snapshots))y.has(re)&&(J[re]=e.snapshots[re]);$.snapshots=J}const D=Object.keys(e.packages??{}).length,ne=Object.keys($.packages??{}).length,oe=D-ne,O=Object.keys(d).length-Object.keys(k).length;return{content:oo($,{lineWidth:0}),message:`${g}: kept ${ne}/${D} packages and ${Object.keys(k).length} importers (dropped ${oe} packages, ${O} importers)`,status:"pruned"}},uo=a=>ts({...a,displayName:a.displayName??"aube-lock.yaml"}),po=a=>{let g="",C=!1,s=!1,h=!1;for(let e=0;e<a.length;e+=1){const d=a[e],b=a[e+1];if(s){d===`
|
|
2
|
+
`&&(s=!1,g+=d);continue}if(h){d==="*"&&b==="/"&&(h=!1,e+=1);continue}if(C){if(d==="\\"){g+=d,b!==void 0&&(g+=b,e+=1);continue}d==='"'&&(C=!1),g+=d;continue}if(d==='"'){C=!0,g+=d;continue}if(d==="/"&&b==="/"){s=!0,e+=1;continue}if(d==="/"&&b==="*"){h=!0,e+=1;continue}g+=d}return g},ho=a=>{const g=[];for(const C of[a.dependencies,a.devDependencies,a.optionalDependencies,a.peerDependencies])if(C)for(const[s,h]of Object.entries(C))typeof h=="string"&&g.push({name:s,spec:h});return g},go=a=>{for(const g of a)if(typeof g=="object"&&!Array.isArray(g))return g},mo=a=>{if(!a)return[];const g=[];for(const C of["dependencies","optionalDependencies","peerDependencies"]){const s=a[C];s!==null&&typeof s=="object"&&!Array.isArray(s)&&g.push(...Object.keys(s))}return g},yo=a=>{if(Buffer.isBuffer(a.lockfileContent))return{message:"bun.lockb is binary; run `bun install --save-text-lockfile` to regenerate as bun.lock, then rerun `vis docker scaffold`.",status:"skipped"};const g=po(a.lockfileContent);let C;try{C=JSON.parse(g)}catch(D){throw new er(`bun.lock: parse failed — ${D.message}`)}if(!C||typeof C!="object")throw new er("bun.lock: top-level value is not an object");const s=C.workspaces??{},h=C.packages??{},e=new Set([""]);for(const D of a.closure)e.add(D.relativeRoot===""?"":D.relativeRoot);const d={},b=[];for(const[D,ne]of Object.entries(s))e.has(D)&&(d[D]=ne,b.push(...ho(ne)));const m=new Set;for(const{name:D}of b)m.add(D);const w=[...m];for(;w.length>0;){const D=w.shift();for(const ne of Object.keys(h)){if(ne.split("/")[0]!==D&&ne!==D)continue;const O=go(h[ne]);for(const J of mo(O))m.has(J)||(m.add(J),w.push(J))}}const k={};for(const[D,ne]of Object.entries(h)){const oe=D.split("/")[0];(m.has(oe)||m.has(D))&&(k[D]=ne)}const Y={...C,packages:k,workspaces:d},y=Object.keys(h).length,A=Object.keys(k).length,$=y-A;return{content:`${JSON.stringify(Y,null,2)}
|
|
3
|
+
`,message:`bun.lock: kept ${A}/${y} packages (dropped ${$})`,status:"pruned"}},Jn="node_modules/",$o=(a,g,C)=>{let s=g;for(;;){const h=s===""?`${Jn}${C}`:`${s}/${Jn}${C}`;if(a[h]!==void 0)return h;if(s==="")return;const e=s.lastIndexOf(`/${Jn.slice(0,-1)}/`);s=e===-1?"":s.slice(0,e)}},vo=a=>{const g=[];for(const C of[a.dependencies,a.devDependencies,a.optionalDependencies,a.peerDependencies])if(C)for(const s of Object.keys(C))g.push(s);return g},Ao=a=>{const g=a.displayName??"package-lock.json",C=typeof a.lockfileContent=="string"?a.lockfileContent:a.lockfileContent.toString("utf8");let s;try{s=JSON.parse(C)}catch($){throw new er(`${g}: parse failed — ${$.message}`)}if(!s||typeof s!="object")throw new er(`${g}: top-level value is not an object`);const h=s.packages??{},e=new Set([""]);for(const $ of a.closure)$.relativeRoot!==""&&e.add($.relativeRoot);const d=new Set,b=[];for(const $ of Object.keys(h))e.has($)&&(d.add($),b.push($));for(const[$,D]of Object.entries(h))D.link===!0&&typeof D.resolved=="string"&&e.has(D.resolved)&&d.add($);for(;b.length>0;){const $=b.shift(),D=h[$];if(D)for(const ne of vo(D)){const oe=$o(h,$,ne);if(!oe||d.has(oe))continue;d.add(oe);const O=h[oe];O.link===!0&&typeof O.resolved=="string"&&h[O.resolved]!==void 0&&!d.has(O.resolved)?(d.add(O.resolved),b.push(O.resolved)):b.push(oe)}}const m={};for(const $ of Object.keys(h))d.has($)&&(m[$]=h[$]);const w=m[""];w&&Array.isArray(w.workspaces)&&(w.workspaces=w.workspaces.filter($=>{if(typeof $!="string")return!1;const D=$.replace(/\/?\*+$/,"").replace(/\/$/,"");if(D===""||D==="*")return!0;for(const ne of e)if(ne===$||ne===D||ne.startsWith(`${D}/`))return!0;return!1}));const k={...s,packages:m};delete k.dependencies;const Y=Object.keys(h).length,y=Object.keys(m).length,A=Y-y;return{content:`${JSON.stringify(k,null,2)}
|
|
4
|
+
`,message:`${g}: kept ${y}/${Y} entries (dropped ${A})`,status:"pruned"}};var Qn={},Le={},zn,gt;function wo(){if(gt)return zn;gt=1;function a(s,h){function e(){this.constructor=s}e.prototype=h.prototype,s.prototype=new e}function g(s,h,e,d){this.message=s,this.expected=h,this.found=e,this.location=d,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,g)}a(g,Error),g.buildMessage=function(s,h){var e={literal:function(y){return'"'+b(y.text)+'"'},class:function(y){var A="",$;for($=0;$<y.parts.length;$++)A+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+A+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function d(y){return y.charCodeAt(0).toString(16).toUpperCase()}function b(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function w(y){return e[y.type](y)}function k(y){var A=new Array(y.length),$,D;for($=0;$<y.length;$++)A[$]=w(y[$]);if(A.sort(),A.length>0){for($=1,D=1;$<A.length;$++)A[$-1]!==A[$]&&(A[D]=A[$],D++);A.length=D}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}}function Y(y){return y?'"'+b(y)+'"':"end of input"}return"Expected "+k(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={Start:Vi},b=Vi,m=function(r){return r||[]},w=function(r,t,o){return[{command:r,type:t}].concat(o||[])},k=function(r,t){return[{command:r,type:t||";"}]},Y=function(r){return r},y=";",A=ce(";",!1),$="&",D=ce("&",!1),ne=function(r,t){return t?{chain:r,then:t}:{chain:r}},oe=function(r,t){return{type:r,line:t}},O="&&",J=ce("&&",!1),re="||",M=ce("||",!1),le=function(r,t){return t?{...r,then:t}:r},we=function(r,t){return{type:r,chain:t}},de="|&",ve=ce("|&",!1),Ee="|",Oe=ce("|",!1),Fe="=",Be=ce("=",!1),ye=function(r,t){return{name:r,args:[t]}},Pe=function(r){return{name:r,args:[]}},Qe="(",xe=ce("(",!1),ee=")",Ne=ce(")",!1),qe=function(r,t){return{type:"subshell",subshell:r,args:t}},Te="{",De=ce("{",!1),be="}",K=ce("}",!1),B=function(r,t){return{type:"group",group:r,args:t}},te=function(r,t){return{type:"command",args:t,envs:r}},$e=function(r){return{type:"envs",envs:r}},Ve=function(r){return r},ze=function(r){return r},Me=/^[0-9]/,Ye=Ke([["0","9"]],!1,!1),rr=function(r,t,o){return{type:"redirection",subtype:t,fd:r!==null?parseInt(r):null,args:[o]}},nr=">>",wr=ce(">>",!1),fr=">&",lr=ce(">&",!1),br=">",Ue=ce(">",!1),hr="<<<",Xe=ce("<<<",!1),Ge="<&",gr=ce("<&",!1),Cr="<",dr=ce("<",!1),n=function(r){return{type:"argument",segments:[].concat(...r)}},E=function(r){return r},R="$'",Q=ce("$'",!1),I="'",l=ce("'",!1),v=function(r){return[{type:"text",text:r}]},_='""',T=ce('""',!1),P=function(){return{type:"text",text:""}},U='"',j=ce('"',!1),z=function(r){return r},W=function(r){return{type:"arithmetic",arithmetic:r,quoted:!0}},ie=function(r){return{type:"shell",shell:r,quoted:!0}},ge=function(r){return{type:"variable",...r,quoted:!0}},ae=function(r){return{type:"text",text:r}},ke=function(r){return{type:"arithmetic",arithmetic:r,quoted:!1}},En=function(r){return{type:"shell",shell:r,quoted:!1}},kn=function(r){return{type:"variable",...r,quoted:!1}},tn=function(r){return{type:"glob",pattern:r}},jr=/^[^']/,Fr=Ke(["'"],!0,!1),mr=function(r){return r.join("")},sn=/^[^$"]/,on=Ke(["$",'"'],!0,!1),Ur=`\\
|
|
5
|
+
`,xn=ce(`\\
|
|
6
|
+
`,!1),_n=function(){return""},yr="\\",$r=ce("\\",!1),On=/^[\\$"`]/,fn=Ke(["\\","$",'"',"`"],!1,!1),Ze=function(r){return r},Hr="\\a",Tn=ce("\\a",!1),Rn=function(){return"a"},ln="\\b",jn=ce("\\b",!1),Fn=function(){return"\b"},u=/^[Ee]/,he=Ke(["E","e"],!1,!1),Lr=function(){return"\x1B"},He="\\f",Kr=ce("\\f",!1),Z=function(){return"\f"},Sr="\\n",cn=ce("\\n",!1),Ae=function(){return`
|
|
7
|
+
`},ir="\\r",Ln=ce("\\r",!1),In=function(){return"\r"},Er="\\t",an=ce("\\t",!1),un=function(){return" "},se="\\v",Nn=ce("\\v",!1),pn=function(){return"\v"},Pn=/^[\\'"?]/,hn=Ke(["\\","'",'"',"?"],!1,!1),Ir=function(r){return String.fromCharCode(parseInt(r,16))},Wr="\\x",Nr=ce("\\x",!1),vr="\\u",Dn=ce("\\u",!1),Vr="\\U",gn=ce("\\U",!1),Mn=function(r){return String.fromCodePoint(parseInt(r,16))},kr=/^[0-7]/,qn=Ke([["0","7"]],!1,!1),Yn=/^[0-9a-fA-f]/,dn=Ke([["0","9"],["a","f"],["A","f"]],!1,!1),tr=Rs(),xr="{}",mn=ce("{}",!1),_r=function(){return"{}"},Pr="-",Or=ce("-",!1),cr="+",Ce=ce("+",!1),ar=".",ur=ce(".",!1),yn=function(r,t,o){return{type:"number",value:(r==="-"?-1:1)*parseFloat(t.join("")+"."+o.join(""))}},Dr=function(r,t){return{type:"number",value:(r==="-"?-1:1)*parseInt(t.join(""))}},f=function(r){return{type:"variable",...r}},p=function(r){return{type:"variable",name:r}},x=function(r){return r},H="*",q=ce("*",!1),X="/",ue=ce("/",!1),me=function(r,t,o){return{type:t==="*"?"multiplication":"division",right:o}},pr=function(r,t){return t.reduce((o,c)=>({left:o,...c}),r)},Oi=function(r,t,o){return{type:t==="+"?"addition":"subtraction",right:o}},Ti="$((",cs=ce("$((",!1),Ri="))",as=ce("))",!1),us=function(r){return r},ji="$(",ps=ce("$(",!1),hs=function(r){return r},sr="${",Gr=ce("${",!1),Fi=":-",gs=ce(":-",!1),ds=function(r,t){return{name:r,defaultValue:t}},Li=":-}",ms=ce(":-}",!1),ys=function(r){return{name:r,defaultValue:[]}},Ii=":+",$s=ce(":+",!1),vs=function(r,t){return{name:r,alternativeValue:t}},Ni=":+}",As=ce(":+}",!1),ws=function(r){return{name:r,alternativeValue:[]}},Pi=function(r){return{name:r}},bs="$",Cs=ce("$",!1),Ss=function(r){return h.isGlobPattern(r)},Es=function(r){return r},Di=/^[a-zA-Z0-9_]/,Mi=Ke([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),qi=function(){return Ts()},Yi=/^[$@*?#a-zA-Z0-9_\-]/,Bi=Ke(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),ks=/^[()}<>$|&; \t"']/,xs=Ke(["(",")","}","<",">","$","|","&",";"," "," ",'"',"'"],!1,!1),_s=/^[<>&; \t"']/,Os=Ke(["<",">","&",";"," "," ",'"',"'"],!1,!1),Ui=/^[ \t]/,Hi=Ke([" "," "],!1,!1),i=0,G=0,$n=[{line:1,column:1}],or=0,Bn=[],F=0,vn;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');b=d[h.startRule]}function Ts(){return s.substring(G,i)}function ce(r,t){return{type:"literal",text:r,ignoreCase:t}}function Ke(r,t,o){return{type:"class",parts:r,inverted:t,ignoreCase:o}}function Rs(){return{type:"any"}}function js(){return{type:"end"}}function Ki(r){var t=$n[r],o;if(t)return t;for(o=r-1;!$n[o];)o--;for(t=$n[o],t={line:t.line,column:t.column};o<r;)s.charCodeAt(o)===10?(t.line++,t.column=1):t.column++,o++;return $n[r]=t,t}function Wi(r,t){var o=Ki(r),c=Ki(t);return{start:{offset:r,line:o.line,column:o.column},end:{offset:t,line:c.line,column:c.column}}}function N(r){i<or||(i>or&&(or=i,Bn=[]),Bn.push(r))}function Fs(r,t,o){return new g(g.buildMessage(r,t),r,t,o)}function Vi(){var r,t,o;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();return t!==e?(o=Jr(),o===e&&(o=null),o!==e?(G=r,t=m(o),r=t):(i=r,r=e)):(i=r,r=e),r}function Jr(){var r,t,o,c,S;if(r=i,t=Un(),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();o!==e?(c=Gi(),c!==e?(S=Ls(),S===e&&(S=null),S!==e?(G=r,t=w(t,c,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;if(r===e)if(r=i,t=Un(),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();o!==e?(c=Gi(),c===e&&(c=null),c!==e?(G=r,t=k(t,c),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;return r}function Ls(){var r,t,o,c,S;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(o=Jr(),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=Y(o),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;return r}function Gi(){var r;return s.charCodeAt(i)===59?(r=y,i++):(r=e,F===0&&N(A)),r===e&&(s.charCodeAt(i)===38?(r=$,i++):(r=e,F===0&&N(D))),r}function Un(){var r,t,o;return r=i,t=Ji(),t!==e?(o=Is(),o===e&&(o=null),o!==e?(G=r,t=ne(t,o),r=t):(i=r,r=e)):(i=r,r=e),r}function Is(){var r,t,o,c,S,L,fe;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(o=Ns(),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Un(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();L!==e?(G=r,t=oe(o,S),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;return r}function Ns(){var r;return s.substr(i,2)===O?(r=O,i+=2):(r=e,F===0&&N(J)),r===e&&(s.substr(i,2)===re?(r=re,i+=2):(r=e,F===0&&N(M))),r}function Ji(){var r,t,o;return r=i,t=Ms(),t!==e?(o=Ps(),o===e&&(o=null),o!==e?(G=r,t=le(t,o),r=t):(i=r,r=e)):(i=r,r=e),r}function Ps(){var r,t,o,c,S,L,fe;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(o=Ds(),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Ji(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();L!==e?(G=r,t=we(o,S),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;return r}function Ds(){var r;return s.substr(i,2)===de?(r=de,i+=2):(r=e,F===0&&N(ve)),r===e&&(s.charCodeAt(i)===124?(r=Ee,i++):(r=e,F===0&&N(Oe))),r}function An(){var r,t,o,c,S,L;if(r=i,t=ft(),t!==e)if(s.charCodeAt(i)===61?(o=Fe,i++):(o=e,F===0&&N(Be)),o!==e)if(c=Xi(),c!==e){for(S=[],L=V();L!==e;)S.push(L),L=V();S!==e?(G=r,t=ye(t,c),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;else i=r,r=e;if(r===e)if(r=i,t=ft(),t!==e)if(s.charCodeAt(i)===61?(o=Fe,i++):(o=e,F===0&&N(Be)),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=Pe(t),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e;return r}function Ms(){var r,t,o,c,S,L,fe,pe,_e,Re,Je;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(s.charCodeAt(i)===40?(o=Qe,i++):(o=e,F===0&&N(xe)),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Jr(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();if(L!==e)if(s.charCodeAt(i)===41?(fe=ee,i++):(fe=e,F===0&&N(Ne)),fe!==e){for(pe=[],_e=V();_e!==e;)pe.push(_e),_e=V();if(pe!==e){for(_e=[],Re=Qr();Re!==e;)_e.push(Re),Re=Qr();if(_e!==e){for(Re=[],Je=V();Je!==e;)Re.push(Je),Je=V();Re!==e?(G=r,t=qe(S,_e),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;if(r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e)if(s.charCodeAt(i)===123?(o=Te,i++):(o=e,F===0&&N(De)),o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e)if(S=Jr(),S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();if(L!==e)if(s.charCodeAt(i)===125?(fe=be,i++):(fe=e,F===0&&N(K)),fe!==e){for(pe=[],_e=V();_e!==e;)pe.push(_e),_e=V();if(pe!==e){for(_e=[],Re=Qr();Re!==e;)_e.push(Re),Re=Qr();if(_e!==e){for(Re=[],Je=V();Je!==e;)Re.push(Je),Je=V();Re!==e?(G=r,t=B(S,_e),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e}else i=r,r=e;else i=r,r=e;if(r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e){for(o=[],c=An();c!==e;)o.push(c),c=An();if(o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();if(c!==e){if(S=[],L=zi(),L!==e)for(;L!==e;)S.push(L),L=zi();else S=e;if(S!==e){for(L=[],fe=V();fe!==e;)L.push(fe),fe=V();L!==e?(G=r,t=te(o,S),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}else i=r,r=e}else i=r,r=e;if(r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e){if(o=[],c=An(),c!==e)for(;c!==e;)o.push(c),c=An();else o=e;if(o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=$e(o),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e}}}return r}function Qi(){var r,t,o,c,S;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e){if(o=[],c=wn(),c!==e)for(;c!==e;)o.push(c),c=wn();else o=e;if(o!==e){for(c=[],S=V();S!==e;)c.push(S),S=V();c!==e?(G=r,t=Ve(o),r=t):(i=r,r=e)}else i=r,r=e}else i=r,r=e;return r}function zi(){var r,t,o;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();if(t!==e?(o=Qr(),o!==e?(G=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e),r===e){for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();t!==e?(o=wn(),o!==e?(G=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e)}return r}function Qr(){var r,t,o,c,S;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();return t!==e?(Me.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Ye)),o===e&&(o=null),o!==e?(c=qs(),c!==e?(S=wn(),S!==e?(G=r,t=rr(o,c,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function qs(){var r;return s.substr(i,2)===nr?(r=nr,i+=2):(r=e,F===0&&N(wr)),r===e&&(s.substr(i,2)===fr?(r=fr,i+=2):(r=e,F===0&&N(lr)),r===e&&(s.charCodeAt(i)===62?(r=br,i++):(r=e,F===0&&N(Ue)),r===e&&(s.substr(i,3)===hr?(r=hr,i+=3):(r=e,F===0&&N(Xe)),r===e&&(s.substr(i,2)===Ge?(r=Ge,i+=2):(r=e,F===0&&N(gr)),r===e&&(s.charCodeAt(i)===60?(r=Cr,i++):(r=e,F===0&&N(dr))))))),r}function wn(){var r,t,o;for(r=i,t=[],o=V();o!==e;)t.push(o),o=V();return t!==e?(o=Xi(),o!==e?(G=r,t=ze(o),r=t):(i=r,r=e)):(i=r,r=e),r}function Xi(){var r,t,o;if(r=i,t=[],o=Zi(),o!==e)for(;o!==e;)t.push(o),o=Zi();else t=e;return t!==e&&(G=r,t=n(t)),r=t,r}function Zi(){var r,t;return r=i,t=Ys(),t!==e&&(G=r,t=E(t)),r=t,r===e&&(r=i,t=Bs(),t!==e&&(G=r,t=E(t)),r=t,r===e&&(r=i,t=Us(),t!==e&&(G=r,t=E(t)),r=t,r===e&&(r=i,t=Hs(),t!==e&&(G=r,t=E(t)),r=t))),r}function Ys(){var r,t,o,c;return r=i,s.substr(i,2)===R?(t=R,i+=2):(t=e,F===0&&N(Q)),t!==e?(o=Vs(),o!==e?(s.charCodeAt(i)===39?(c=I,i++):(c=e,F===0&&N(l)),c!==e?(G=r,t=v(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Bs(){var r,t,o,c;return r=i,s.charCodeAt(i)===39?(t=I,i++):(t=e,F===0&&N(l)),t!==e?(o=Ks(),o!==e?(s.charCodeAt(i)===39?(c=I,i++):(c=e,F===0&&N(l)),c!==e?(G=r,t=v(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Us(){var r,t,o,c;if(r=i,s.substr(i,2)===_?(t=_,i+=2):(t=e,F===0&&N(T)),t!==e&&(G=r,t=P()),r=t,r===e)if(r=i,s.charCodeAt(i)===34?(t=U,i++):(t=e,F===0&&N(j)),t!==e){for(o=[],c=et();c!==e;)o.push(c),c=et();o!==e?(s.charCodeAt(i)===34?(c=U,i++):(c=e,F===0&&N(j)),c!==e?(G=r,t=z(o),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;return r}function Hs(){var r,t,o;if(r=i,t=[],o=rt(),o!==e)for(;o!==e;)t.push(o),o=rt();else t=e;return t!==e&&(G=r,t=z(t)),r=t,r}function et(){var r,t;return r=i,t=st(),t!==e&&(G=r,t=W(t)),r=t,r===e&&(r=i,t=ot(),t!==e&&(G=r,t=ie(t)),r=t,r===e&&(r=i,t=Vn(),t!==e&&(G=r,t=ge(t)),r=t,r===e&&(r=i,t=Ws(),t!==e&&(G=r,t=ae(t)),r=t))),r}function rt(){var r,t;return r=i,t=st(),t!==e&&(G=r,t=ke(t)),r=t,r===e&&(r=i,t=ot(),t!==e&&(G=r,t=En(t)),r=t,r===e&&(r=i,t=Vn(),t!==e&&(G=r,t=kn(t)),r=t,r===e&&(r=i,t=Qs(),t!==e&&(G=r,t=tn(t)),r=t,r===e&&(r=i,t=Js(),t!==e&&(G=r,t=ae(t)),r=t)))),r}function Ks(){var r,t,o;for(r=i,t=[],jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr));o!==e;)t.push(o),jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr));return t!==e&&(G=r,t=mr(t)),r=t,r}function Ws(){var r,t,o;if(r=i,t=[],o=nt(),o===e&&(sn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(on))),o!==e)for(;o!==e;)t.push(o),o=nt(),o===e&&(sn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(on)));else t=e;return t!==e&&(G=r,t=mr(t)),r=t,r}function nt(){var r,t,o;return r=i,s.substr(i,2)===Ur?(t=Ur,i+=2):(t=e,F===0&&N(xn)),t!==e&&(G=r,t=_n()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(On.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(fn)),o!==e?(G=r,t=Ze(o),r=t):(i=r,r=e)):(i=r,r=e)),r}function Vs(){var r,t,o;for(r=i,t=[],o=it(),o===e&&(jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr)));o!==e;)t.push(o),o=it(),o===e&&(jr.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Fr)));return t!==e&&(G=r,t=mr(t)),r=t,r}function it(){var r,t,o;return r=i,s.substr(i,2)===Hr?(t=Hr,i+=2):(t=e,F===0&&N(Tn)),t!==e&&(G=r,t=Rn()),r=t,r===e&&(r=i,s.substr(i,2)===ln?(t=ln,i+=2):(t=e,F===0&&N(jn)),t!==e&&(G=r,t=Fn()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(u.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(he)),o!==e?(G=r,t=Lr(),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===He?(t=He,i+=2):(t=e,F===0&&N(Kr)),t!==e&&(G=r,t=Z()),r=t,r===e&&(r=i,s.substr(i,2)===Sr?(t=Sr,i+=2):(t=e,F===0&&N(cn)),t!==e&&(G=r,t=Ae()),r=t,r===e&&(r=i,s.substr(i,2)===ir?(t=ir,i+=2):(t=e,F===0&&N(Ln)),t!==e&&(G=r,t=In()),r=t,r===e&&(r=i,s.substr(i,2)===Er?(t=Er,i+=2):(t=e,F===0&&N(an)),t!==e&&(G=r,t=un()),r=t,r===e&&(r=i,s.substr(i,2)===se?(t=se,i+=2):(t=e,F===0&&N(Nn)),t!==e&&(G=r,t=pn()),r=t,r===e&&(r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(Pn.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(hn)),o!==e?(G=r,t=Ze(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=Gs()))))))))),r}function Gs(){var r,t,o,c,S,L,fe,pe,_e,Re,Je,Gn;return r=i,s.charCodeAt(i)===92?(t=yr,i++):(t=e,F===0&&N($r)),t!==e?(o=Hn(),o!==e?(G=r,t=Ir(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===Wr?(t=Wr,i+=2):(t=e,F===0&&N(Nr)),t!==e?(o=i,c=i,S=Hn(),S!==e?(L=We(),L!==e?(S=[S,L],c=S):(i=c,c=e)):(i=c,c=e),c===e&&(c=Hn()),c!==e?o=s.substring(o,i):o=c,o!==e?(G=r,t=Ir(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===vr?(t=vr,i+=2):(t=e,F===0&&N(Dn)),t!==e?(o=i,c=i,S=We(),S!==e?(L=We(),L!==e?(fe=We(),fe!==e?(pe=We(),pe!==e?(S=[S,L,fe,pe],c=S):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e),c!==e?o=s.substring(o,i):o=c,o!==e?(G=r,t=Ir(o),r=t):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===Vr?(t=Vr,i+=2):(t=e,F===0&&N(gn)),t!==e?(o=i,c=i,S=We(),S!==e?(L=We(),L!==e?(fe=We(),fe!==e?(pe=We(),pe!==e?(_e=We(),_e!==e?(Re=We(),Re!==e?(Je=We(),Je!==e?(Gn=We(),Gn!==e?(S=[S,L,fe,pe,_e,Re,Je,Gn],c=S):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e)):(i=c,c=e),c!==e?o=s.substring(o,i):o=c,o!==e?(G=r,t=Mn(o),r=t):(i=r,r=e)):(i=r,r=e)))),r}function Hn(){var r;return kr.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(qn)),r}function We(){var r;return Yn.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(dn)),r}function Js(){var r,t,o,c,S;if(r=i,t=[],o=i,s.charCodeAt(i)===92?(c=yr,i++):(c=e,F===0&&N($r)),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e),o===e&&(o=i,s.substr(i,2)===xr?(c=xr,i+=2):(c=e,F===0&&N(mn)),c!==e&&(G=o,c=_r()),o=c,o===e&&(o=i,c=i,F++,S=lt(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e))),o!==e)for(;o!==e;)t.push(o),o=i,s.charCodeAt(i)===92?(c=yr,i++):(c=e,F===0&&N($r)),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e),o===e&&(o=i,s.substr(i,2)===xr?(c=xr,i+=2):(c=e,F===0&&N(mn)),c!==e&&(G=o,c=_r()),o=c,o===e&&(o=i,c=i,F++,S=lt(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e)));else t=e;return t!==e&&(G=r,t=mr(t)),r=t,r}function Kn(){var r,t,o,c,S,L;if(r=i,s.charCodeAt(i)===45?(t=Pr,i++):(t=e,F===0&&N(Or)),t===e&&(s.charCodeAt(i)===43?(t=cr,i++):(t=e,F===0&&N(Ce))),t===e&&(t=null),t!==e){if(o=[],Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye)),c!==e)for(;c!==e;)o.push(c),Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye));else o=e;if(o!==e)if(s.charCodeAt(i)===46?(c=ar,i++):(c=e,F===0&&N(ur)),c!==e){if(S=[],Me.test(s.charAt(i))?(L=s.charAt(i),i++):(L=e,F===0&&N(Ye)),L!==e)for(;L!==e;)S.push(L),Me.test(s.charAt(i))?(L=s.charAt(i),i++):(L=e,F===0&&N(Ye));else S=e;S!==e?(G=r,t=yn(t,o,S),r=t):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;if(r===e){if(r=i,s.charCodeAt(i)===45?(t=Pr,i++):(t=e,F===0&&N(Or)),t===e&&(s.charCodeAt(i)===43?(t=cr,i++):(t=e,F===0&&N(Ce))),t===e&&(t=null),t!==e){if(o=[],Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye)),c!==e)for(;c!==e;)o.push(c),Me.test(s.charAt(i))?(c=s.charAt(i),i++):(c=e,F===0&&N(Ye));else o=e;o!==e?(G=r,t=Dr(t,o),r=t):(i=r,r=e)}else i=r,r=e;if(r===e&&(r=i,t=Vn(),t!==e&&(G=r,t=f(t)),r=t,r===e&&(r=i,t=Tr(),t!==e&&(G=r,t=p(t)),r=t,r===e)))if(r=i,s.charCodeAt(i)===40?(t=Qe,i++):(t=e,F===0&&N(xe)),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();if(o!==e)if(c=tt(),c!==e){for(S=[],L=V();L!==e;)S.push(L),L=V();S!==e?(s.charCodeAt(i)===41?(L=ee,i++):(L=e,F===0&&N(Ne)),L!==e?(G=r,t=x(c),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e}return r}function Wn(){var r,t,o,c,S,L,fe,pe;if(r=i,t=Kn(),t!==e){for(o=[],c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===42?(L=H,i++):(L=e,F===0&&N(q)),L===e&&(s.charCodeAt(i)===47?(L=X,i++):(L=e,F===0&&N(ue))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Kn(),pe!==e?(G=c,S=me(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e;for(;c!==e;){for(o.push(c),c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===42?(L=H,i++):(L=e,F===0&&N(q)),L===e&&(s.charCodeAt(i)===47?(L=X,i++):(L=e,F===0&&N(ue))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Kn(),pe!==e?(G=c,S=me(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e}o!==e?(G=r,t=pr(t,o),r=t):(i=r,r=e)}else i=r,r=e;return r}function tt(){var r,t,o,c,S,L,fe,pe;if(r=i,t=Wn(),t!==e){for(o=[],c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===43?(L=cr,i++):(L=e,F===0&&N(Ce)),L===e&&(s.charCodeAt(i)===45?(L=Pr,i++):(L=e,F===0&&N(Or))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Wn(),pe!==e?(G=c,S=Oi(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e;for(;c!==e;){for(o.push(c),c=i,S=[],L=V();L!==e;)S.push(L),L=V();if(S!==e)if(s.charCodeAt(i)===43?(L=cr,i++):(L=e,F===0&&N(Ce)),L===e&&(s.charCodeAt(i)===45?(L=Pr,i++):(L=e,F===0&&N(Or))),L!==e){for(fe=[],pe=V();pe!==e;)fe.push(pe),pe=V();fe!==e?(pe=Wn(),pe!==e?(G=c,S=Oi(t,L,pe),c=S):(i=c,c=e)):(i=c,c=e)}else i=c,c=e;else i=c,c=e}o!==e?(G=r,t=pr(t,o),r=t):(i=r,r=e)}else i=r,r=e;return r}function st(){var r,t,o,c,S,L;if(r=i,s.substr(i,3)===Ti?(t=Ti,i+=3):(t=e,F===0&&N(cs)),t!==e){for(o=[],c=V();c!==e;)o.push(c),c=V();if(o!==e)if(c=tt(),c!==e){for(S=[],L=V();L!==e;)S.push(L),L=V();S!==e?(s.substr(i,2)===Ri?(L=Ri,i+=2):(L=e,F===0&&N(as)),L!==e?(G=r,t=us(c),r=t):(i=r,r=e)):(i=r,r=e)}else i=r,r=e;else i=r,r=e}else i=r,r=e;return r}function ot(){var r,t,o,c;return r=i,s.substr(i,2)===ji?(t=ji,i+=2):(t=e,F===0&&N(ps)),t!==e?(o=Jr(),o!==e?(s.charCodeAt(i)===41?(c=ee,i++):(c=e,F===0&&N(Ne)),c!==e?(G=r,t=hs(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r}function Vn(){var r,t,o,c,S,L;return r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,2)===Fi?(c=Fi,i+=2):(c=e,F===0&&N(gs)),c!==e?(S=Qi(),S!==e?(s.charCodeAt(i)===125?(L=be,i++):(L=e,F===0&&N(K)),L!==e?(G=r,t=ds(o,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,3)===Li?(c=Li,i+=3):(c=e,F===0&&N(ms)),c!==e?(G=r,t=ys(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,2)===Ii?(c=Ii,i+=2):(c=e,F===0&&N($s)),c!==e?(S=Qi(),S!==e?(s.charCodeAt(i)===125?(L=be,i++):(L=e,F===0&&N(K)),L!==e?(G=r,t=vs(o,S),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.substr(i,3)===Ni?(c=Ni,i+=3):(c=e,F===0&&N(As)),c!==e?(G=r,t=ws(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.substr(i,2)===sr?(t=sr,i+=2):(t=e,F===0&&N(Gr)),t!==e?(o=Tr(),o!==e?(s.charCodeAt(i)===125?(c=be,i++):(c=e,F===0&&N(K)),c!==e?(G=r,t=Pi(o),r=t):(i=r,r=e)):(i=r,r=e)):(i=r,r=e),r===e&&(r=i,s.charCodeAt(i)===36?(t=bs,i++):(t=e,F===0&&N(Cs)),t!==e?(o=Tr(),o!==e?(G=r,t=Pi(o),r=t):(i=r,r=e)):(i=r,r=e)))))),r}function Qs(){var r,t,o;return r=i,t=zs(),t!==e?(G=i,o=Ss(t),o?o=void 0:o=e,o!==e?(G=r,t=Es(t),r=t):(i=r,r=e)):(i=r,r=e),r}function zs(){var r,t,o,c,S;if(r=i,t=[],o=i,c=i,F++,S=ct(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e),o!==e)for(;o!==e;)t.push(o),o=i,c=i,F++,S=ct(),F--,S===e?c=void 0:(i=c,c=e),c!==e?(s.length>i?(S=s.charAt(i),i++):(S=e,F===0&&N(tr)),S!==e?(G=o,c=Ze(S),o=c):(i=o,o=e)):(i=o,o=e);else t=e;return t!==e&&(G=r,t=mr(t)),r=t,r}function ft(){var r,t,o;if(r=i,t=[],Di.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Mi)),o!==e)for(;o!==e;)t.push(o),Di.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Mi));else t=e;return t!==e&&(G=r,t=qi()),r=t,r}function Tr(){var r,t,o;if(r=i,t=[],Yi.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Bi)),o!==e)for(;o!==e;)t.push(o),Yi.test(s.charAt(i))?(o=s.charAt(i),i++):(o=e,F===0&&N(Bi));else t=e;return t!==e&&(G=r,t=qi()),r=t,r}function lt(){var r;return ks.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(xs)),r}function ct(){var r;return _s.test(s.charAt(i))?(r=s.charAt(i),i++):(r=e,F===0&&N(Os)),r}function V(){var r,t;if(r=[],Ui.test(s.charAt(i))?(t=s.charAt(i),i++):(t=e,F===0&&N(Hi)),t!==e)for(;t!==e;)r.push(t),Ui.test(s.charAt(i))?(t=s.charAt(i),i++):(t=e,F===0&&N(Hi));else r=e;return r}if(vn=b(),vn!==e&&i===s.length)return vn;throw vn!==e&&i<s.length&&N(js()),Fs(Bn,or<s.length?s.charAt(or):null,or<s.length?Wi(or,or+1):Wi(or,or))}return zn={SyntaxError:g,parse:C},zn}var dt;function bo(){if(dt)return Le;dt=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.parseShell=g,Le.stringifyShellLine=C,Le.stringifyShell=C,Le.stringifyCommandLine=s,Le.stringifyCommandLineThen=h,Le.stringifyCommandChain=e,Le.stringifyCommandChainThen=d,Le.stringifyCommand=b,Le.stringifyEnvSegment=m,Le.stringifyArgument=w,Le.stringifyRedirectArgument=k,Le.stringifyValueArgument=Y,Le.stringifyArgumentSegment=ne,Le.stringifyArithmeticExpression=oe;const a=wo();function g(O,J={isGlobPattern:()=>!1}){try{return(0,a.parse)(O,J)}catch(re){throw re.location&&(re.message=re.message.replace(/(\.)?$/,` (line ${re.location.start.line}, column ${re.location.start.column})$1`)),re}}function C(O,{endSemicolon:J=!1}={}){return O.map(({command:re,type:M},le)=>`${s(re)}${M===";"?le!==O.length-1||J?";":"":" &"}`).join(" ")}function s(O){return`${e(O.chain)}${O.then?` ${h(O.then)}`:""}`}function h(O){return`${O.type} ${s(O.line)}`}function e(O){return`${b(O)}${O.then?` ${d(O.then)}`:""}`}function d(O){return`${O.type} ${e(O.chain)}`}function b(O){switch(O.type){case"command":return`${O.envs.length>0?`${O.envs.map(J=>m(J)).join(" ")} `:""}${O.args.map(J=>w(J)).join(" ")}`;case"subshell":return`(${C(O.subshell)})${O.args.length>0?` ${O.args.map(J=>k(J)).join(" ")}`:""}`;case"group":return`{ ${C(O.group,{endSemicolon:!0})} }${O.args.length>0?` ${O.args.map(J=>k(J)).join(" ")}`:""}`;case"envs":return O.envs.map(J=>m(J)).join(" ");default:throw new Error(`Unsupported command type: "${O.type}"`)}}function m(O){return`${O.name}=${O.args[0]?Y(O.args[0]):""}`}function w(O){switch(O.type){case"redirection":return k(O);case"argument":return Y(O);default:throw new Error(`Unsupported argument type: "${O.type}"`)}}function k(O){return`${O.subtype} ${O.args.map(J=>Y(J)).join(" ")}`}function Y(O){return O.segments.map(J=>ne(J)).join("")}const y=new Map([["\f","\\f"],[`
|
|
8
|
+
`,"\\n"],["\r","\\r"],[" ","\\t"],["\v","\\v"],["\0","\\0"]]),A=new Map([["\\","\\\\"],["$","\\$"],['"','\\"'],...Array.from(y,([O,J])=>[O,`"$'${J}'"`])]),$=O=>y.get(O)??`\\x${O.charCodeAt(0).toString(16).padStart(2,"0")}`,D=O=>A.get(O)??`"$'${$(O)}'"`;function ne(O){const J=(M,le)=>le?`"${M}"`:M,re=M=>M===""?"''":M.match(/[()}<>$|&;"'\n\t ]/)?M.match(/['\t\p{C}]/u)?M.match(/'/)?`"${M.replace(/["$\t\p{C}]/u,D)}"`:`$'${M.replace(/[\t\p{C}]/u,$)}'`:`'${M}'`:M;switch(O.type){case"text":return re(O.text);case"glob":return O.pattern;case"shell":return J(`$(${C(O.shell)})`,O.quoted);case"variable":return J(typeof O.defaultValue>"u"?typeof O.alternativeValue>"u"?`\${${O.name}}`:O.alternativeValue.length===0?`\${${O.name}:+}`:`\${${O.name}:+${O.alternativeValue.map(M=>Y(M)).join(" ")}}`:O.defaultValue.length===0?`\${${O.name}:-}`:`\${${O.name}:-${O.defaultValue.map(M=>Y(M)).join(" ")}}`,O.quoted);case"arithmetic":return`$(( ${oe(O.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${O.type}"`)}}function oe(O){const J=le=>{switch(le){case"addition":return"+";case"subtraction":return"-";case"multiplication":return"*";case"division":return"/";default:throw new Error(`Can't extract operator from arithmetic expression of type "${le}"`)}},re=(le,we)=>we?`( ${le} )`:le,M=le=>re(oe(le),!["number","variable"].includes(le.type));switch(O.type){case"number":return String(O.value);case"variable":return O.name;default:return`${M(O.left)} ${J(O.type)} ${M(O.right)}`}}return Le}var Xr={},Xn,mt;function Co(){if(mt)return Xn;mt=1;function a(s,h){function e(){this.constructor=s}e.prototype=h.prototype,s.prototype=new e}function g(s,h,e,d){this.message=s,this.expected=h,this.found=e,this.location=d,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,g)}a(g,Error),g.buildMessage=function(s,h){var e={literal:function(y){return'"'+b(y.text)+'"'},class:function(y){var A="",$;for($=0;$<y.parts.length;$++)A+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+A+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function d(y){return y.charCodeAt(0).toString(16).toUpperCase()}function b(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function w(y){return e[y.type](y)}function k(y){var A=new Array(y.length),$,D;for($=0;$<y.length;$++)A[$]=w(y[$]);if(A.sort(),A.length>0){for($=1,D=1;$<A.length;$++)A[$-1]!==A[$]&&(A[D]=A[$],D++);A.length=D}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}}function Y(y){return y?'"'+b(y)+'"':"end of input"}return"Expected "+k(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={resolution:Ne},b=Ne,m="/",w=Fe("/",!1),k=function(K,B){return{from:K,descriptor:B}},Y=function(K){return{descriptor:K}},y="@",A=Fe("@",!1),$=function(K,B){return{fullName:K,description:B}},D=function(K){return{fullName:K}},ne=function(){return Oe()},oe=/^[^\/@]/,O=Be(["/","@"],!0,!1),J=/^[^\/]/,re=Be(["/"],!0,!1),M=0,le=0,we=[{line:1,column:1}],de=0,ve=[],Ee;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');b=d[h.startRule]}function Oe(){return s.substring(le,M)}function Fe(K,B){return{type:"literal",text:K,ignoreCase:B}}function Be(K,B,te){return{type:"class",parts:K,inverted:B,ignoreCase:te}}function ye(){return{type:"end"}}function Pe(K){var B=we[K],te;if(B)return B;for(te=K-1;!we[te];)te--;for(B=we[te],B={line:B.line,column:B.column};te<K;)s.charCodeAt(te)===10?(B.line++,B.column=1):B.column++,te++;return we[K]=B,B}function Qe(K,B){var te=Pe(K),$e=Pe(B);return{start:{offset:K,line:te.line,column:te.column},end:{offset:B,line:$e.line,column:$e.column}}}function xe(K){M<de||(M>de&&(de=M,ve=[]),ve.push(K))}function ee(K,B,te){return new g(g.buildMessage(K,B),K,B,te)}function Ne(){var K,B,te,$e;return K=M,B=qe(),B!==e?(s.charCodeAt(M)===47?(te=m,M++):(te=e,xe(w)),te!==e?($e=qe(),$e!==e?(le=K,B=k(B,$e),K=B):(M=K,K=e)):(M=K,K=e)):(M=K,K=e),K===e&&(K=M,B=qe(),B!==e&&(le=K,B=Y(B)),K=B),K}function qe(){var K,B,te,$e;return K=M,B=Te(),B!==e?(s.charCodeAt(M)===64?(te=y,M++):(te=e,xe(A)),te!==e?($e=be(),$e!==e?(le=K,B=$(B,$e),K=B):(M=K,K=e)):(M=K,K=e)):(M=K,K=e),K===e&&(K=M,B=Te(),B!==e&&(le=K,B=D(B)),K=B),K}function Te(){var K,B,te,$e,Ve;return K=M,s.charCodeAt(M)===64?(B=y,M++):(B=e,xe(A)),B!==e?(te=De(),te!==e?(s.charCodeAt(M)===47?($e=m,M++):($e=e,xe(w)),$e!==e?(Ve=De(),Ve!==e?(le=K,B=ne(),K=B):(M=K,K=e)):(M=K,K=e)):(M=K,K=e)):(M=K,K=e),K===e&&(K=M,B=De(),B!==e&&(le=K,B=ne()),K=B),K}function De(){var K,B,te;if(K=M,B=[],oe.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(O)),te!==e)for(;te!==e;)B.push(te),oe.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(O));else B=e;return B!==e&&(le=K,B=ne()),K=B,K}function be(){var K,B,te;if(K=M,B=[],J.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(re)),te!==e)for(;te!==e;)B.push(te),J.test(s.charAt(M))?(te=s.charAt(M),M++):(te=e,xe(re));else B=e;return B!==e&&(le=K,B=ne()),K=B,K}if(Ee=b(),Ee!==e&&M===s.length)return Ee;throw Ee!==e&&M<s.length&&xe(ye()),ee(ve,de<s.length?s.charAt(de):null,de<s.length?Qe(de,de+1):Qe(de,de))}return Xn={SyntaxError:g,parse:C},Xn}var yt;function So(){if(yt)return Xr;yt=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.parseResolution=g,Xr.stringifyResolution=C;const a=Co();function g(s){const h=s.match(/^\*{1,2}\/(.*)/);if(h)throw new Error(`The override for '${s}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${h[1]}' instead.`);try{return(0,a.parse)(s)}catch(e){throw e.location&&(e.message=e.message.replace(/(\.)?$/,` (line ${e.location.start.line}, column ${e.location.start.column})$1`)),e}}function C(s){let h="";return s.from&&(h+=s.from.fullName,s.from.description&&(h+=`@${s.from.description}`),h+="/"),h+=s.descriptor.fullName,s.descriptor.description&&(h+=`@${s.descriptor.description}`),h}return Xr}var Rr={},Se={},Mr={},Ar={},$t;function Yr(){if($t)return Ar;$t=1;function a(d){return typeof d>"u"||d===null}function g(d){return typeof d=="object"&&d!==null}function C(d){return Array.isArray(d)?d:a(d)?[]:[d]}function s(d,b){var m,w,k,Y;if(b)for(Y=Object.keys(b),m=0,w=Y.length;m<w;m+=1)k=Y[m],d[k]=b[k];return d}function h(d,b){var m="",w;for(w=0;w<b;w+=1)m+=d;return m}function e(d){return d===0&&Number.NEGATIVE_INFINITY===1/d}return Ar.isNothing=a,Ar.isObject=g,Ar.toArray=C,Ar.repeat=h,Ar.isNegativeZero=e,Ar.extend=s,Ar}var Zn,vt;function nn(){if(vt)return Zn;vt=1;function a(g,C){Error.call(this),this.name="YAMLException",this.reason=g,this.mark=C,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(C){var s=this.name+": ";return s+=this.reason||"(unknown reason)",!C&&this.mark&&(s+=" "+this.mark.toString()),s},Zn=a,Zn}var ei,At;function Eo(){if(At)return ei;At=1;var a=Yr();function g(C,s,h,e,d){this.name=C,this.buffer=s,this.position=h,this.line=e,this.column=d}return g.prototype.getSnippet=function(s,h){var e,d,b,m,w;if(!this.buffer)return null;for(s=s||4,h=h||75,e="",d=this.position;d>0&&`\0\r
|
|
9
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(d-1))===-1;)if(d-=1,this.position-d>h/2-1){e=" ... ",d+=5;break}for(b="",m=this.position;m<this.buffer.length&&`\0\r
|
|
10
|
+
\u2028\u2029`.indexOf(this.buffer.charAt(m))===-1;)if(m+=1,m-this.position>h/2-1){b=" ... ",m-=5;break}return w=this.buffer.slice(d,m),a.repeat(" ",s)+e+w+b+`
|
|
11
|
+
`+a.repeat(" ",s+this.position-d+e.length)+"^"},g.prototype.toString=function(s){var h,e="";return this.name&&(e+='in "'+this.name+'" '),e+="at line "+(this.line+1)+", column "+(this.column+1),s||(h=this.getSnippet(),h&&(e+=`:
|
|
12
|
+
`+h)),e},ei=g,ei}var ri,wt;function je(){if(wt)return ri;wt=1;var a=nn(),g=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],C=["scalar","sequence","mapping"];function s(e){var d={};return e!==null&&Object.keys(e).forEach(function(b){e[b].forEach(function(m){d[String(m)]=b})}),d}function h(e,d){if(d=d||{},Object.keys(d).forEach(function(b){if(g.indexOf(b)===-1)throw new a('Unknown option "'+b+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=d.kind||null,this.resolve=d.resolve||function(){return!0},this.construct=d.construct||function(b){return b},this.instanceOf=d.instanceOf||null,this.predicate=d.predicate||null,this.represent=d.represent||null,this.defaultStyle=d.defaultStyle||null,this.styleAliases=s(d.styleAliases||null),C.indexOf(this.kind)===-1)throw new a('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}return ri=h,ri}var ni,bt;function Br(){if(bt)return ni;bt=1;var a=Yr(),g=nn(),C=je();function s(d,b,m){var w=[];return d.include.forEach(function(k){m=s(k,b,m)}),d[b].forEach(function(k){m.forEach(function(Y,y){Y.tag===k.tag&&Y.kind===k.kind&&w.push(y)}),m.push(k)}),m.filter(function(k,Y){return w.indexOf(Y)===-1})}function h(){var d={scalar:{},sequence:{},mapping:{},fallback:{}},b,m;function w(k){d[k.kind][k.tag]=d.fallback[k.tag]=k}for(b=0,m=arguments.length;b<m;b+=1)arguments[b].forEach(w);return d}function e(d){this.include=d.include||[],this.implicit=d.implicit||[],this.explicit=d.explicit||[],this.implicit.forEach(function(b){if(b.loadKind&&b.loadKind!=="scalar")throw new g("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=h(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var b,m;switch(arguments.length){case 1:b=e.DEFAULT,m=arguments[0];break;case 2:b=arguments[0],m=arguments[1];break;default:throw new g("Wrong number of arguments for Schema.create function")}if(b=a.toArray(b),m=a.toArray(m),!b.every(function(w){return w instanceof e}))throw new g("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!m.every(function(w){return w instanceof C}))throw new g("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:b,explicit:m})},ni=e,ni}var ii,Ct;function ko(){if(Ct)return ii;Ct=1;var a=je();return ii=new a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(g){return g!==null?g:""}}),ii}var ti,St;function xo(){if(St)return ti;St=1;var a=je();return ti=new a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(g){return g!==null?g:[]}}),ti}var si,Et;function _o(){if(Et)return si;Et=1;var a=je();return si=new a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(g){return g!==null?g:{}}}),si}var oi,kt;function xi(){if(kt)return oi;kt=1;var a=Br();return oi=new a({explicit:[ko(),xo(),_o()]}),oi}var fi,xt;function Oo(){if(xt)return fi;xt=1;var a=je();function g(h){if(h===null)return!0;var e=h.length;return e===1&&h==="~"||e===4&&(h==="null"||h==="Null"||h==="NULL")}function C(){return null}function s(h){return h===null}return fi=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:g,construct:C,predicate:s,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),fi}var li,_t;function To(){if(_t)return li;_t=1;var a=je();function g(h){if(h===null)return!1;var e=h.length;return e===4&&(h==="true"||h==="True"||h==="TRUE")||e===5&&(h==="false"||h==="False"||h==="FALSE")}function C(h){return h==="true"||h==="True"||h==="TRUE"}function s(h){return Object.prototype.toString.call(h)==="[object Boolean]"}return li=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:g,construct:C,predicate:s,represent:{lowercase:function(h){return h?"true":"false"},uppercase:function(h){return h?"TRUE":"FALSE"},camelcase:function(h){return h?"True":"False"}},defaultStyle:"lowercase"}),li}var ci,Ot;function Ro(){if(Ot)return ci;Ot=1;var a=Yr(),g=je();function C(m){return 48<=m&&m<=57||65<=m&&m<=70||97<=m&&m<=102}function s(m){return 48<=m&&m<=55}function h(m){return 48<=m&&m<=57}function e(m){if(m===null)return!1;var w=m.length,k=0,Y=!1,y;if(!w)return!1;if(y=m[k],(y==="-"||y==="+")&&(y=m[++k]),y==="0"){if(k+1===w)return!0;if(y=m[++k],y==="b"){for(k++;k<w;k++)if(y=m[k],y!=="_"){if(y!=="0"&&y!=="1")return!1;Y=!0}return Y&&y!=="_"}if(y==="x"){for(k++;k<w;k++)if(y=m[k],y!=="_"){if(!C(m.charCodeAt(k)))return!1;Y=!0}return Y&&y!=="_"}for(;k<w;k++)if(y=m[k],y!=="_"){if(!s(m.charCodeAt(k)))return!1;Y=!0}return Y&&y!=="_"}if(y==="_")return!1;for(;k<w;k++)if(y=m[k],y!=="_"){if(y===":")break;if(!h(m.charCodeAt(k)))return!1;Y=!0}return!Y||y==="_"?!1:y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(m.slice(k))}function d(m){var w=m,k=1,Y,y,A=[];return w.indexOf("_")!==-1&&(w=w.replace(/_/g,"")),Y=w[0],(Y==="-"||Y==="+")&&(Y==="-"&&(k=-1),w=w.slice(1),Y=w[0]),w==="0"?0:Y==="0"?w[1]==="b"?k*parseInt(w.slice(2),2):w[1]==="x"?k*parseInt(w,16):k*parseInt(w,8):w.indexOf(":")!==-1?(w.split(":").forEach(function($){A.unshift(parseInt($,10))}),w=0,y=1,A.forEach(function($){w+=$*y,y*=60}),k*w):k*parseInt(w,10)}function b(m){return Object.prototype.toString.call(m)==="[object Number]"&&m%1===0&&!a.isNegativeZero(m)}return ci=new g("tag:yaml.org,2002:int",{kind:"scalar",resolve:e,construct:d,predicate:b,represent:{binary:function(m){return m>=0?"0b"+m.toString(2):"-0b"+m.toString(2).slice(1)},octal:function(m){return m>=0?"0"+m.toString(8):"-0"+m.toString(8).slice(1)},decimal:function(m){return m.toString(10)},hexadecimal:function(m){return m>=0?"0x"+m.toString(16).toUpperCase():"-0x"+m.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ci}var ai,Tt;function jo(){if(Tt)return ai;Tt=1;var a=Yr(),g=je(),C=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(m){return!(m===null||!C.test(m)||m[m.length-1]==="_")}function h(m){var w,k,Y,y;return w=m.replace(/_/g,"").toLowerCase(),k=w[0]==="-"?-1:1,y=[],"+-".indexOf(w[0])>=0&&(w=w.slice(1)),w===".inf"?k===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:w===".nan"?NaN:w.indexOf(":")>=0?(w.split(":").forEach(function(A){y.unshift(parseFloat(A,10))}),w=0,Y=1,y.forEach(function(A){w+=A*Y,Y*=60}),k*w):k*parseFloat(w,10)}var e=/^[-+]?[0-9]+e/;function d(m,w){var k;if(isNaN(m))switch(w){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(w){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(w){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(m))return"-0.0";return k=m.toString(10),e.test(k)?k.replace("e",".e"):k}function b(m){return Object.prototype.toString.call(m)==="[object Number]"&&(m%1!==0||a.isNegativeZero(m))}return ai=new g("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:h,predicate:b,represent:d,defaultStyle:"lowercase"}),ai}var ui,Rt;function ss(){if(Rt)return ui;Rt=1;var a=Br();return ui=new a({include:[xi()],implicit:[Oo(),To(),Ro(),jo()]}),ui}var pi,jt;function os(){if(jt)return pi;jt=1;var a=Br();return pi=new a({include:[ss()]}),pi}var hi,Ft;function Fo(){if(Ft)return hi;Ft=1;var a=je(),g=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),C=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function s(d){return d===null?!1:g.exec(d)!==null||C.exec(d)!==null}function h(d){var b,m,w,k,Y,y,A,$=0,D=null,ne,oe,O;if(b=g.exec(d),b===null&&(b=C.exec(d)),b===null)throw new Error("Date resolve error");if(m=+b[1],w=+b[2]-1,k=+b[3],!b[4])return new Date(Date.UTC(m,w,k));if(Y=+b[4],y=+b[5],A=+b[6],b[7]){for($=b[7].slice(0,3);$.length<3;)$+="0";$=+$}return b[9]&&(ne=+b[10],oe=+(b[11]||0),D=(ne*60+oe)*6e4,b[9]==="-"&&(D=-D)),O=new Date(Date.UTC(m,w,k,Y,y,A,$)),D&&O.setTime(O.getTime()-D),O}function e(d){return d.toISOString()}return hi=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:s,construct:h,instanceOf:Date,represent:e}),hi}var gi,Lt;function Lo(){if(Lt)return gi;Lt=1;var a=je();function g(C){return C==="<<"||C===null}return gi=new a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:g}),gi}function fs(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var di,It;function Io(){if(It)return di;It=1;var a;try{var g=fs;a=g("buffer").Buffer}catch{}var C=je(),s=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
13
|
+
\r`;function h(m){if(m===null)return!1;var w,k,Y=0,y=m.length,A=s;for(k=0;k<y;k++)if(w=A.indexOf(m.charAt(k)),!(w>64)){if(w<0)return!1;Y+=6}return Y%8===0}function e(m){var w,k,Y=m.replace(/[\r\n=]/g,""),y=Y.length,A=s,$=0,D=[];for(w=0;w<y;w++)w%4===0&&w&&(D.push($>>16&255),D.push($>>8&255),D.push($&255)),$=$<<6|A.indexOf(Y.charAt(w));return k=y%4*6,k===0?(D.push($>>16&255),D.push($>>8&255),D.push($&255)):k===18?(D.push($>>10&255),D.push($>>2&255)):k===12&&D.push($>>4&255),a?a.from?a.from(D):new a(D):D}function d(m){var w="",k=0,Y,y,A=m.length,$=s;for(Y=0;Y<A;Y++)Y%3===0&&Y&&(w+=$[k>>18&63],w+=$[k>>12&63],w+=$[k>>6&63],w+=$[k&63]),k=(k<<8)+m[Y];return y=A%3,y===0?(w+=$[k>>18&63],w+=$[k>>12&63],w+=$[k>>6&63],w+=$[k&63]):y===2?(w+=$[k>>10&63],w+=$[k>>4&63],w+=$[k<<2&63],w+=$[64]):y===1&&(w+=$[k>>2&63],w+=$[k<<4&63],w+=$[64],w+=$[64]),w}function b(m){return a&&a.isBuffer(m)}return di=new C("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h,construct:e,predicate:b,represent:d}),di}var mi,Nt;function No(){if(Nt)return mi;Nt=1;var a=je(),g=Object.prototype.hasOwnProperty,C=Object.prototype.toString;function s(e){if(e===null)return!0;var d={},b,m,w,k,Y,y=e;for(b=0,m=y.length;b<m;b+=1){if(w=y[b],Y=!1,C.call(w)!=="[object Object]")return!1;for(k in w)if(g.call(w,k))if(!Y)Y=!0;else return!1;if(!Y||g.call(d,k))return!1;Object.defineProperty(d,k,{value:!0})}return!0}function h(e){return e!==null?e:[]}return mi=new a("tag:yaml.org,2002:omap",{kind:"sequence",resolve:s,construct:h}),mi}var yi,Pt;function Po(){if(Pt)return yi;Pt=1;var a=je(),g=Object.prototype.toString;function C(h){if(h===null)return!0;var e,d,b,m,w,k=h;for(w=new Array(k.length),e=0,d=k.length;e<d;e+=1){if(b=k[e],g.call(b)!=="[object Object]"||(m=Object.keys(b),m.length!==1))return!1;w[e]=[m[0],b[m[0]]]}return!0}function s(h){if(h===null)return[];var e,d,b,m,w,k=h;for(w=new Array(k.length),e=0,d=k.length;e<d;e+=1)b=k[e],m=Object.keys(b),w[e]=[m[0],b[m[0]]];return w}return yi=new a("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:C,construct:s}),yi}var $i,Dt;function Do(){if(Dt)return $i;Dt=1;var a=je(),g=Object.prototype.hasOwnProperty;function C(h){if(h===null)return!0;var e,d=h;for(e in d)if(g.call(d,e)&&d[e]!==null)return!1;return!0}function s(h){return h!==null?h:{}}return $i=new a("tag:yaml.org,2002:set",{kind:"mapping",resolve:C,construct:s}),$i}var vi,Mt;function rn(){if(Mt)return vi;Mt=1;var a=Br();return vi=new a({include:[os()],implicit:[Fo(),Lo()],explicit:[Io(),No(),Po(),Do()]}),vi}var Ai,qt;function Mo(){if(qt)return Ai;qt=1;var a=je();function g(){return!0}function C(){}function s(){return""}function h(e){return typeof e>"u"}return Ai=new a("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:g,construct:C,predicate:h,represent:s}),Ai}var wi,Yt;function qo(){if(Yt)return wi;Yt=1;var a=je();function g(e){if(e===null||e.length===0)return!1;var d=e,b=/\/([gim]*)$/.exec(e),m="";return!(d[0]==="/"&&(b&&(m=b[1]),m.length>3||d[d.length-m.length-1]!=="/"))}function C(e){var d=e,b=/\/([gim]*)$/.exec(e),m="";return d[0]==="/"&&(b&&(m=b[1]),d=d.slice(1,d.length-m.length-1)),new RegExp(d,m)}function s(e){var d="/"+e.source+"/";return e.global&&(d+="g"),e.multiline&&(d+="m"),e.ignoreCase&&(d+="i"),d}function h(e){return Object.prototype.toString.call(e)==="[object RegExp]"}return wi=new a("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:g,construct:C,predicate:h,represent:s}),wi}var bi,Bt;function Yo(){if(Bt)return bi;Bt=1;var a;try{var g=fs;a=g("esprima")}catch{typeof window<"u"&&(a=window.esprima)}var C=je();function s(b){if(b===null)return!1;try{var m="("+b+")",w=a.parse(m,{range:!0});return!(w.type!=="Program"||w.body.length!==1||w.body[0].type!=="ExpressionStatement"||w.body[0].expression.type!=="ArrowFunctionExpression"&&w.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function h(b){var m="("+b+")",w=a.parse(m,{range:!0}),k=[],Y;if(w.type!=="Program"||w.body.length!==1||w.body[0].type!=="ExpressionStatement"||w.body[0].expression.type!=="ArrowFunctionExpression"&&w.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return w.body[0].expression.params.forEach(function(y){k.push(y.name)}),Y=w.body[0].expression.body.range,w.body[0].expression.body.type==="BlockStatement"?new Function(k,m.slice(Y[0]+1,Y[1]-1)):new Function(k,"return "+m.slice(Y[0],Y[1]))}function e(b){return b.toString()}function d(b){return Object.prototype.toString.call(b)==="[object Function]"}return bi=new C("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:s,construct:h,predicate:d,represent:e}),bi}var Ci,Ut;function Sn(){if(Ut)return Ci;Ut=1;var a=Br();return Ci=a.DEFAULT=new a({include:[rn()],explicit:[Mo(),qo(),Yo()]}),Ci}var Ht;function Bo(){if(Ht)return Mr;Ht=1;var a=Yr(),g=nn(),C=Eo(),s=rn(),h=Sn(),e=Object.prototype.hasOwnProperty,d=1,b=2,m=3,w=4,k=1,Y=2,y=3,A=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$=/[\x85\u2028\u2029]/,D=/[,\[\]\{\}]/,ne=/^(?:!|!!|![a-z\-]+!)$/i,oe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function O(n){return Object.prototype.toString.call(n)}function J(n){return n===10||n===13}function re(n){return n===9||n===32}function M(n){return n===9||n===32||n===10||n===13}function le(n){return n===44||n===91||n===93||n===123||n===125}function we(n){var E;return 48<=n&&n<=57?n-48:(E=n|32,97<=E&&E<=102?E-97+10:-1)}function de(n){return n===120?2:n===117?4:n===85?8:0}function ve(n){return 48<=n&&n<=57?n-48:-1}function Ee(n){return n===48?"\0":n===97?"\x07":n===98?"\b":n===116||n===9?" ":n===110?`
|
|
14
|
+
`:n===118?"\v":n===102?"\f":n===114?"\r":n===101?"\x1B":n===32?" ":n===34?'"':n===47?"/":n===92?"\\":n===78?"
":n===95?" ":n===76?"\u2028":n===80?"\u2029":""}function Oe(n){return n<=65535?String.fromCharCode(n):String.fromCharCode((n-65536>>10)+55296,(n-65536&1023)+56320)}function Fe(n,E,R){E==="__proto__"?Object.defineProperty(n,E,{configurable:!0,enumerable:!0,writable:!0,value:R}):n[E]=R}for(var Be=new Array(256),ye=new Array(256),Pe=0;Pe<256;Pe++)Be[Pe]=Ee(Pe)?1:0,ye[Pe]=Ee(Pe);function Qe(n,E){this.input=n,this.filename=E.filename||null,this.schema=E.schema||h,this.onWarning=E.onWarning||null,this.legacy=E.legacy||!1,this.json=E.json||!1,this.listener=E.listener||null,this.maxTotalMergeKeys=typeof E.maxTotalMergeKeys=="number"?E.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.totalMergeKeys=0,this.documents=[]}function xe(n,E){return new g(E,new C(n.filename,n.input,n.position,n.line,n.position-n.lineStart))}function ee(n,E){throw xe(n,E)}function Ne(n,E){n.onWarning&&n.onWarning.call(null,xe(n,E))}var qe={YAML:function(E,R,Q){var I,l,v;E.version!==null&&ee(E,"duplication of %YAML directive"),Q.length!==1&&ee(E,"YAML directive accepts exactly one argument"),I=/^([0-9]+)\.([0-9]+)$/.exec(Q[0]),I===null&&ee(E,"ill-formed argument of the YAML directive"),l=parseInt(I[1],10),v=parseInt(I[2],10),l!==1&&ee(E,"unacceptable YAML version of the document"),E.version=Q[0],E.checkLineBreaks=v<2,v!==1&&v!==2&&Ne(E,"unsupported YAML version of the document")},TAG:function(E,R,Q){var I,l;Q.length!==2&&ee(E,"TAG directive accepts exactly two arguments"),I=Q[0],l=Q[1],ne.test(I)||ee(E,"ill-formed tag handle (first argument) of the TAG directive"),e.call(E.tagMap,I)&&ee(E,'there is a previously declared suffix for "'+I+'" tag handle'),oe.test(l)||ee(E,"ill-formed tag prefix (second argument) of the TAG directive"),E.tagMap[I]=l}};function Te(n,E,R,Q){var I,l,v,_;if(E<R){if(_=n.input.slice(E,R),Q)for(I=0,l=_.length;I<l;I+=1)v=_.charCodeAt(I),v===9||32<=v&&v<=1114111||ee(n,"expected valid JSON character");else A.test(_)&&ee(n,"the stream contains non-printable characters");n.result+=_}}function De(n,E,R,Q){var I,l,v,_;for(a.isObject(R)||ee(n,"cannot merge mappings; the provided source object is unacceptable"),I=Object.keys(R),v=0,_=I.length;v<_;v+=1)l=I[v],n.maxTotalMergeKeys!==-1&&++n.totalMergeKeys>n.maxTotalMergeKeys&&ee(n,"merge keys exceeded maxTotalMergeKeys ("+n.maxTotalMergeKeys+")"),e.call(E,l)||(Fe(E,l,R[l]),Q[l]=!0)}function be(n,E,R,Q,I,l,v,_){var T,P;if(Array.isArray(I))for(I=Array.prototype.slice.call(I),T=0,P=I.length;T<P;T+=1)Array.isArray(I[T])&&ee(n,"nested arrays are not supported inside keys"),typeof I=="object"&&O(I[T])==="[object Object]"&&(I[T]="[object Object]");if(typeof I=="object"&&O(I)==="[object Object]"&&(I="[object Object]"),I=String(I),E===null&&(E={}),Q==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(T=0,P=l.length;T<P;T+=1)De(n,E,l[T],R);else De(n,E,l,R);else!n.json&&!e.call(R,I)&&e.call(E,I)&&(n.line=v||n.line,n.position=_||n.position,ee(n,"duplicated mapping key")),Fe(E,I,l),delete R[I];return E}function K(n){var E;E=n.input.charCodeAt(n.position),E===10?n.position++:E===13?(n.position++,n.input.charCodeAt(n.position)===10&&n.position++):ee(n,"a line break is expected"),n.line+=1,n.lineStart=n.position}function B(n,E,R){for(var Q=0,I=n.input.charCodeAt(n.position);I!==0;){for(;re(I);)I=n.input.charCodeAt(++n.position);if(E&&I===35)do I=n.input.charCodeAt(++n.position);while(I!==10&&I!==13&&I!==0);if(J(I))for(K(n),I=n.input.charCodeAt(n.position),Q++,n.lineIndent=0;I===32;)n.lineIndent++,I=n.input.charCodeAt(++n.position);else break}return R!==-1&&Q!==0&&n.lineIndent<R&&Ne(n,"deficient indentation"),Q}function te(n){var E=n.position,R;return R=n.input.charCodeAt(E),!!((R===45||R===46)&&R===n.input.charCodeAt(E+1)&&R===n.input.charCodeAt(E+2)&&(E+=3,R=n.input.charCodeAt(E),R===0||M(R)))}function $e(n,E){E===1?n.result+=" ":E>1&&(n.result+=a.repeat(`
|
|
15
|
+
`,E-1))}function Ve(n,E,R){var Q,I,l,v,_,T,P,U,j=n.kind,z=n.result,W;if(W=n.input.charCodeAt(n.position),M(W)||le(W)||W===35||W===38||W===42||W===33||W===124||W===62||W===39||W===34||W===37||W===64||W===96||(W===63||W===45)&&(I=n.input.charCodeAt(n.position+1),M(I)||R&&le(I)))return!1;for(n.kind="scalar",n.result="",l=v=n.position,_=!1;W!==0;){if(W===58){if(I=n.input.charCodeAt(n.position+1),M(I)||R&&le(I))break}else if(W===35){if(Q=n.input.charCodeAt(n.position-1),M(Q))break}else{if(n.position===n.lineStart&&te(n)||R&&le(W))break;if(J(W))if(T=n.line,P=n.lineStart,U=n.lineIndent,B(n,!1,-1),n.lineIndent>=E){_=!0,W=n.input.charCodeAt(n.position);continue}else{n.position=v,n.line=T,n.lineStart=P,n.lineIndent=U;break}}_&&(Te(n,l,v,!1),$e(n,n.line-T),l=v=n.position,_=!1),re(W)||(v=n.position+1),W=n.input.charCodeAt(++n.position)}return Te(n,l,v,!1),n.result?!0:(n.kind=j,n.result=z,!1)}function ze(n,E){var R,Q,I;if(R=n.input.charCodeAt(n.position),R!==39)return!1;for(n.kind="scalar",n.result="",n.position++,Q=I=n.position;(R=n.input.charCodeAt(n.position))!==0;)if(R===39)if(Te(n,Q,n.position,!0),R=n.input.charCodeAt(++n.position),R===39)Q=n.position,n.position++,I=n.position;else return!0;else J(R)?(Te(n,Q,I,!0),$e(n,B(n,!1,E)),Q=I=n.position):n.position===n.lineStart&&te(n)?ee(n,"unexpected end of the document within a single quoted scalar"):(n.position++,I=n.position);ee(n,"unexpected end of the stream within a single quoted scalar")}function Me(n,E){var R,Q,I,l,v,_;if(_=n.input.charCodeAt(n.position),_!==34)return!1;for(n.kind="scalar",n.result="",n.position++,R=Q=n.position;(_=n.input.charCodeAt(n.position))!==0;){if(_===34)return Te(n,R,n.position,!0),n.position++,!0;if(_===92){if(Te(n,R,n.position,!0),_=n.input.charCodeAt(++n.position),J(_))B(n,!1,E);else if(_<256&&Be[_])n.result+=ye[_],n.position++;else if((v=de(_))>0){for(I=v,l=0;I>0;I--)_=n.input.charCodeAt(++n.position),(v=we(_))>=0?l=(l<<4)+v:ee(n,"expected hexadecimal character");n.result+=Oe(l),n.position++}else ee(n,"unknown escape sequence");R=Q=n.position}else J(_)?(Te(n,R,Q,!0),$e(n,B(n,!1,E)),R=Q=n.position):n.position===n.lineStart&&te(n)?ee(n,"unexpected end of the document within a double quoted scalar"):(n.position++,Q=n.position)}ee(n,"unexpected end of the stream within a double quoted scalar")}function Ye(n,E){var R=!0,Q,I=n.tag,l,v=n.anchor,_,T,P,U,j,z={},W,ie,ge,ae;if(ae=n.input.charCodeAt(n.position),ae===91)T=93,j=!1,l=[];else if(ae===123)T=125,j=!0,l={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=l),ae=n.input.charCodeAt(++n.position);ae!==0;){if(B(n,!0,E),ae=n.input.charCodeAt(n.position),ae===T)return n.position++,n.tag=I,n.anchor=v,n.kind=j?"mapping":"sequence",n.result=l,!0;R||ee(n,"missed comma between flow collection entries"),ie=W=ge=null,P=U=!1,ae===63&&(_=n.input.charCodeAt(n.position+1),M(_)&&(P=U=!0,n.position++,B(n,!0,E))),Q=n.line,Ue(n,E,d,!1,!0),ie=n.tag,W=n.result,B(n,!0,E),ae=n.input.charCodeAt(n.position),(U||n.line===Q)&&ae===58&&(P=!0,ae=n.input.charCodeAt(++n.position),B(n,!0,E),Ue(n,E,d,!1,!0),ge=n.result),j?be(n,l,z,ie,W,ge):P?l.push(be(n,null,z,ie,W,ge)):l.push(W),B(n,!0,E),ae=n.input.charCodeAt(n.position),ae===44?(R=!0,ae=n.input.charCodeAt(++n.position)):R=!1}ee(n,"unexpected end of the stream within a flow collection")}function rr(n,E){var R,Q,I=k,l=!1,v=!1,_=E,T=0,P=!1,U,j;if(j=n.input.charCodeAt(n.position),j===124)Q=!1;else if(j===62)Q=!0;else return!1;for(n.kind="scalar",n.result="";j!==0;)if(j=n.input.charCodeAt(++n.position),j===43||j===45)k===I?I=j===43?y:Y:ee(n,"repeat of a chomping mode identifier");else if((U=ve(j))>=0)U===0?ee(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):v?ee(n,"repeat of an indentation width identifier"):(_=E+U-1,v=!0);else break;if(re(j)){do j=n.input.charCodeAt(++n.position);while(re(j));if(j===35)do j=n.input.charCodeAt(++n.position);while(!J(j)&&j!==0)}for(;j!==0;){for(K(n),n.lineIndent=0,j=n.input.charCodeAt(n.position);(!v||n.lineIndent<_)&&j===32;)n.lineIndent++,j=n.input.charCodeAt(++n.position);if(!v&&n.lineIndent>_&&(_=n.lineIndent),J(j)){T++;continue}if(n.lineIndent<_){I===y?n.result+=a.repeat(`
|
|
16
|
+
`,l?1+T:T):I===k&&l&&(n.result+=`
|
|
17
|
+
`);break}for(Q?re(j)?(P=!0,n.result+=a.repeat(`
|
|
18
|
+
`,l?1+T:T)):P?(P=!1,n.result+=a.repeat(`
|
|
19
|
+
`,T+1)):T===0?l&&(n.result+=" "):n.result+=a.repeat(`
|
|
20
|
+
`,T):n.result+=a.repeat(`
|
|
21
|
+
`,l?1+T:T),l=!0,v=!0,T=0,R=n.position;!J(j)&&j!==0;)j=n.input.charCodeAt(++n.position);Te(n,R,n.position,!1)}return!0}function nr(n,E){var R,Q=n.tag,I=n.anchor,l=[],v,_=!1,T;for(n.anchor!==null&&(n.anchorMap[n.anchor]=l),T=n.input.charCodeAt(n.position);T!==0&&!(T!==45||(v=n.input.charCodeAt(n.position+1),!M(v)));){if(_=!0,n.position++,B(n,!0,-1)&&n.lineIndent<=E){l.push(null),T=n.input.charCodeAt(n.position);continue}if(R=n.line,Ue(n,E,m,!1,!0),l.push(n.result),B(n,!0,-1),T=n.input.charCodeAt(n.position),(n.line===R||n.lineIndent>E)&&T!==0)ee(n,"bad indentation of a sequence entry");else if(n.lineIndent<E)break}return _?(n.tag=Q,n.anchor=I,n.kind="sequence",n.result=l,!0):!1}function wr(n,E,R){var Q,I,l,v,_=n.tag,T=n.anchor,P={},U={},j=null,z=null,W=null,ie=!1,ge=!1,ae;for(n.anchor!==null&&(n.anchorMap[n.anchor]=P),ae=n.input.charCodeAt(n.position);ae!==0;){if(Q=n.input.charCodeAt(n.position+1),l=n.line,v=n.position,(ae===63||ae===58)&&M(Q))ae===63?(ie&&(be(n,P,U,j,z,null),j=z=W=null),ge=!0,ie=!0,I=!0):ie?(ie=!1,I=!0):ee(n,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),n.position+=1,ae=Q;else if(Ue(n,R,b,!1,!0))if(n.line===l){for(ae=n.input.charCodeAt(n.position);re(ae);)ae=n.input.charCodeAt(++n.position);if(ae===58)ae=n.input.charCodeAt(++n.position),M(ae)||ee(n,"a whitespace character is expected after the key-value separator within a block mapping"),ie&&(be(n,P,U,j,z,null),j=z=W=null),ge=!0,ie=!1,I=!1,j=n.tag,z=n.result;else if(ge)ee(n,"can not read an implicit mapping pair; a colon is missed");else return n.tag=_,n.anchor=T,!0}else if(ge)ee(n,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.tag=_,n.anchor=T,!0;else break;if((n.line===l||n.lineIndent>E)&&(Ue(n,E,w,!0,I)&&(ie?z=n.result:W=n.result),ie||(be(n,P,U,j,z,W,l,v),j=z=W=null),B(n,!0,-1),ae=n.input.charCodeAt(n.position)),n.lineIndent>E&&ae!==0)ee(n,"bad indentation of a mapping entry");else if(n.lineIndent<E)break}return ie&&be(n,P,U,j,z,null),ge&&(n.tag=_,n.anchor=T,n.kind="mapping",n.result=P),ge}function fr(n){var E,R=!1,Q=!1,I,l,v;if(v=n.input.charCodeAt(n.position),v!==33)return!1;if(n.tag!==null&&ee(n,"duplication of a tag property"),v=n.input.charCodeAt(++n.position),v===60?(R=!0,v=n.input.charCodeAt(++n.position)):v===33?(Q=!0,I="!!",v=n.input.charCodeAt(++n.position)):I="!",E=n.position,R){do v=n.input.charCodeAt(++n.position);while(v!==0&&v!==62);n.position<n.length?(l=n.input.slice(E,n.position),v=n.input.charCodeAt(++n.position)):ee(n,"unexpected end of the stream within a verbatim tag")}else{for(;v!==0&&!M(v);)v===33&&(Q?ee(n,"tag suffix cannot contain exclamation marks"):(I=n.input.slice(E-1,n.position+1),ne.test(I)||ee(n,"named tag handle cannot contain such characters"),Q=!0,E=n.position+1)),v=n.input.charCodeAt(++n.position);l=n.input.slice(E,n.position),D.test(l)&&ee(n,"tag suffix cannot contain flow indicator characters")}return l&&!oe.test(l)&&ee(n,"tag name cannot contain such characters: "+l),R?n.tag=l:e.call(n.tagMap,I)?n.tag=n.tagMap[I]+l:I==="!"?n.tag="!"+l:I==="!!"?n.tag="tag:yaml.org,2002:"+l:ee(n,'undeclared tag handle "'+I+'"'),!0}function lr(n){var E,R;if(R=n.input.charCodeAt(n.position),R!==38)return!1;for(n.anchor!==null&&ee(n,"duplication of an anchor property"),R=n.input.charCodeAt(++n.position),E=n.position;R!==0&&!M(R)&&!le(R);)R=n.input.charCodeAt(++n.position);return n.position===E&&ee(n,"name of an anchor node must contain at least one character"),n.anchor=n.input.slice(E,n.position),!0}function br(n){var E,R,Q;if(Q=n.input.charCodeAt(n.position),Q!==42)return!1;for(Q=n.input.charCodeAt(++n.position),E=n.position;Q!==0&&!M(Q)&&!le(Q);)Q=n.input.charCodeAt(++n.position);return n.position===E&&ee(n,"name of an alias node must contain at least one character"),R=n.input.slice(E,n.position),e.call(n.anchorMap,R)||ee(n,'unidentified alias "'+R+'"'),n.result=n.anchorMap[R],B(n,!0,-1),!0}function Ue(n,E,R,Q,I){var l,v,_,T=1,P=!1,U=!1,j,z,W,ie,ge;if(n.listener!==null&&n.listener("open",n),n.tag=null,n.anchor=null,n.kind=null,n.result=null,l=v=_=w===R||m===R,Q&&B(n,!0,-1)&&(P=!0,n.lineIndent>E?T=1:n.lineIndent===E?T=0:n.lineIndent<E&&(T=-1)),T===1)for(;fr(n)||lr(n);)B(n,!0,-1)?(P=!0,_=l,n.lineIndent>E?T=1:n.lineIndent===E?T=0:n.lineIndent<E&&(T=-1)):_=!1;if(_&&(_=P||I),(T===1||w===R)&&(d===R||b===R?ie=E:ie=E+1,ge=n.position-n.lineStart,T===1?_&&(nr(n,ge)||wr(n,ge,ie))||Ye(n,ie)?U=!0:(v&&rr(n,ie)||ze(n,ie)||Me(n,ie)?U=!0:br(n)?(U=!0,(n.tag!==null||n.anchor!==null)&&ee(n,"alias node should not have any properties")):Ve(n,ie,d===R)&&(U=!0,n.tag===null&&(n.tag="?")),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):T===0&&(U=_&&nr(n,ge))),n.tag!==null&&n.tag!=="!")if(n.tag==="?"){for(n.result!==null&&n.kind!=="scalar"&&ee(n,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+n.kind+'"'),j=0,z=n.implicitTypes.length;j<z;j+=1)if(W=n.implicitTypes[j],W.resolve(n.result)){n.result=W.construct(n.result),n.tag=W.tag,n.anchor!==null&&(n.anchorMap[n.anchor]=n.result);break}}else e.call(n.typeMap[n.kind||"fallback"],n.tag)?(W=n.typeMap[n.kind||"fallback"][n.tag],n.result!==null&&W.kind!==n.kind&&ee(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+W.kind+'", not "'+n.kind+'"'),W.resolve(n.result)?(n.result=W.construct(n.result),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):ee(n,"cannot resolve a node with !<"+n.tag+"> explicit tag")):ee(n,"unknown tag !<"+n.tag+">");return n.listener!==null&&n.listener("close",n),n.tag!==null||n.anchor!==null||U}function hr(n){var E=n.position,R,Q,I,l=!1,v;for(n.version=null,n.checkLineBreaks=n.legacy,n.tagMap={},n.anchorMap={};(v=n.input.charCodeAt(n.position))!==0&&(B(n,!0,-1),v=n.input.charCodeAt(n.position),!(n.lineIndent>0||v!==37));){for(l=!0,v=n.input.charCodeAt(++n.position),R=n.position;v!==0&&!M(v);)v=n.input.charCodeAt(++n.position);for(Q=n.input.slice(R,n.position),I=[],Q.length<1&&ee(n,"directive name must not be less than one character in length");v!==0;){for(;re(v);)v=n.input.charCodeAt(++n.position);if(v===35){do v=n.input.charCodeAt(++n.position);while(v!==0&&!J(v));break}if(J(v))break;for(R=n.position;v!==0&&!M(v);)v=n.input.charCodeAt(++n.position);I.push(n.input.slice(R,n.position))}v!==0&&K(n),e.call(qe,Q)?qe[Q](n,Q,I):Ne(n,'unknown document directive "'+Q+'"')}if(B(n,!0,-1),n.lineIndent===0&&n.input.charCodeAt(n.position)===45&&n.input.charCodeAt(n.position+1)===45&&n.input.charCodeAt(n.position+2)===45?(n.position+=3,B(n,!0,-1)):l&&ee(n,"directives end mark is expected"),Ue(n,n.lineIndent-1,w,!1,!0),B(n,!0,-1),n.checkLineBreaks&&$.test(n.input.slice(E,n.position))&&Ne(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&te(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,B(n,!0,-1));return}if(n.position<n.length-1)ee(n,"end of the stream or a document separator is expected");else return}function Xe(n,E){n=String(n),E=E||{},n.length!==0&&(n.charCodeAt(n.length-1)!==10&&n.charCodeAt(n.length-1)!==13&&(n+=`
|
|
22
|
+
`),n.charCodeAt(0)===65279&&(n=n.slice(1)));var R=new Qe(n,E),Q=n.indexOf("\0");for(Q!==-1&&(R.position=Q,ee(R,"null byte is not allowed in input")),R.input+="\0";R.input.charCodeAt(R.position)===32;)R.lineIndent+=1,R.position+=1;for(;R.position<R.length-1;)hr(R);return R.documents}function Ge(n,E,R){E!==null&&typeof E=="object"&&typeof R>"u"&&(R=E,E=null);var Q=Xe(n,R);if(typeof E!="function")return Q;for(var I=0,l=Q.length;I<l;I+=1)E(Q[I])}function gr(n,E){var R=Xe(n,E);if(R.length!==0){if(R.length===1)return R[0];throw new g("expected a single document in the stream, but found more")}}function Cr(n,E,R){return typeof E=="object"&&E!==null&&typeof R>"u"&&(R=E,E=null),Ge(n,E,a.extend({schema:s},R))}function dr(n,E){return gr(n,a.extend({schema:s},E))}return Mr.loadAll=Ge,Mr.load=gr,Mr.safeLoadAll=Cr,Mr.safeLoad=dr,Mr}var bn={},Kt;function Uo(){if(Kt)return bn;Kt=1;var a=Yr(),g=nn(),C=Sn(),s=rn(),h=Object.prototype.toString,e=Object.prototype.hasOwnProperty,d=9,b=10,m=13,w=32,k=33,Y=34,y=35,A=37,$=38,D=39,ne=42,oe=44,O=45,J=58,re=61,M=62,le=63,we=64,de=91,ve=93,Ee=96,Oe=123,Fe=124,Be=125,ye={};ye[0]="\\0",ye[7]="\\a",ye[8]="\\b",ye[9]="\\t",ye[10]="\\n",ye[11]="\\v",ye[12]="\\f",ye[13]="\\r",ye[27]="\\e",ye[34]='\\"',ye[92]="\\\\",ye[133]="\\N",ye[160]="\\_",ye[8232]="\\L",ye[8233]="\\P";var Pe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Qe(l,v){var _,T,P,U,j,z,W;if(v===null)return{};for(_={},T=Object.keys(v),P=0,U=T.length;P<U;P+=1)j=T[P],z=String(v[j]),j.slice(0,2)==="!!"&&(j="tag:yaml.org,2002:"+j.slice(2)),W=l.compiledTypeMap.fallback[j],W&&e.call(W.styleAliases,z)&&(z=W.styleAliases[z]),_[j]=z;return _}function xe(l){var v,_,T;if(v=l.toString(16).toUpperCase(),l<=255)_="x",T=2;else if(l<=65535)_="u",T=4;else if(l<=4294967295)_="U",T=8;else throw new g("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+_+a.repeat("0",T-v.length)+v}function ee(l){this.schema=l.schema||C,this.indent=Math.max(1,l.indent||2),this.noArrayIndent=l.noArrayIndent||!1,this.skipInvalid=l.skipInvalid||!1,this.flowLevel=a.isNothing(l.flowLevel)?-1:l.flowLevel,this.styleMap=Qe(this.schema,l.styles||null),this.sortKeys=l.sortKeys||!1,this.lineWidth=l.lineWidth||80,this.noRefs=l.noRefs||!1,this.noCompatMode=l.noCompatMode||!1,this.condenseFlow=l.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ne(l,v){for(var _=a.repeat(" ",v),T=0,P=-1,U="",j,z=l.length;T<z;)P=l.indexOf(`
|
|
23
|
+
`,T),P===-1?(j=l.slice(T),T=z):(j=l.slice(T,P+1),T=P+1),j.length&&j!==`
|
|
24
|
+
`&&(U+=_),U+=j;return U}function qe(l,v){return`
|
|
25
|
+
`+a.repeat(" ",l.indent*v)}function Te(l,v){var _,T,P;for(_=0,T=l.implicitTypes.length;_<T;_+=1)if(P=l.implicitTypes[_],P.resolve(v))return!0;return!1}function De(l){return l===w||l===d}function be(l){return 32<=l&&l<=126||161<=l&&l<=55295&&l!==8232&&l!==8233||57344<=l&&l<=65533&&l!==65279||65536<=l&&l<=1114111}function K(l){return be(l)&&!De(l)&&l!==65279&&l!==m&&l!==b}function B(l,v){return be(l)&&l!==65279&&l!==oe&&l!==de&&l!==ve&&l!==Oe&&l!==Be&&l!==J&&(l!==y||v&&K(v))}function te(l){return be(l)&&l!==65279&&!De(l)&&l!==O&&l!==le&&l!==J&&l!==oe&&l!==de&&l!==ve&&l!==Oe&&l!==Be&&l!==y&&l!==$&&l!==ne&&l!==k&&l!==Fe&&l!==re&&l!==M&&l!==D&&l!==Y&&l!==A&&l!==we&&l!==Ee}function $e(l){var v=/^\n* /;return v.test(l)}var Ve=1,ze=2,Me=3,Ye=4,rr=5;function nr(l,v,_,T,P){var U,j,z,W=!1,ie=!1,ge=T!==-1,ae=-1,ke=te(l.charCodeAt(0))&&!De(l.charCodeAt(l.length-1));if(v)for(U=0;U<l.length;U++){if(j=l.charCodeAt(U),!be(j))return rr;z=U>0?l.charCodeAt(U-1):null,ke=ke&&B(j,z)}else{for(U=0;U<l.length;U++){if(j=l.charCodeAt(U),j===b)W=!0,ge&&(ie=ie||U-ae-1>T&&l[ae+1]!==" ",ae=U);else if(!be(j))return rr;z=U>0?l.charCodeAt(U-1):null,ke=ke&&B(j,z)}ie=ie||ge&&U-ae-1>T&&l[ae+1]!==" "}return!W&&!ie?ke&&!P(l)?Ve:ze:_>9&&$e(l)?rr:ie?Ye:Me}function wr(l,v,_,T){l.dump=(function(){if(v.length===0)return"''";if(!l.noCompatMode&&Pe.indexOf(v)!==-1)return"'"+v+"'";var P=l.indent*Math.max(1,_),U=l.lineWidth===-1?-1:Math.max(Math.min(l.lineWidth,40),l.lineWidth-P),j=T||l.flowLevel>-1&&_>=l.flowLevel;function z(W){return Te(l,W)}switch(nr(v,j,l.indent,U,z)){case Ve:return v;case ze:return"'"+v.replace(/'/g,"''")+"'";case Me:return"|"+fr(v,l.indent)+lr(Ne(v,P));case Ye:return">"+fr(v,l.indent)+lr(Ne(br(v,U),P));case rr:return'"'+hr(v)+'"';default:throw new g("impossible error: invalid scalar style")}})()}function fr(l,v){var _=$e(l)?String(v):"",T=l[l.length-1]===`
|
|
26
|
+
`,P=T&&(l[l.length-2]===`
|
|
27
|
+
`||l===`
|
|
28
|
+
`),U=P?"+":T?"":"-";return _+U+`
|
|
29
|
+
`}function lr(l){return l[l.length-1]===`
|
|
30
|
+
`?l.slice(0,-1):l}function br(l,v){for(var _=/(\n+)([^\n]*)/g,T=(function(){var ie=l.indexOf(`
|
|
31
|
+
`);return ie=ie!==-1?ie:l.length,_.lastIndex=ie,Ue(l.slice(0,ie),v)})(),P=l[0]===`
|
|
32
|
+
`||l[0]===" ",U,j;j=_.exec(l);){var z=j[1],W=j[2];U=W[0]===" ",T+=z+(!P&&!U&&W!==""?`
|
|
33
|
+
`:"")+Ue(W,v),P=U}return T}function Ue(l,v){if(l===""||l[0]===" ")return l;for(var _=/ [^ ]/g,T,P=0,U,j=0,z=0,W="";T=_.exec(l);)z=T.index,z-P>v&&(U=j>P?j:z,W+=`
|
|
34
|
+
`+l.slice(P,U),P=U+1),j=z;return W+=`
|
|
35
|
+
`,l.length-P>v&&j>P?W+=l.slice(P,j)+`
|
|
36
|
+
`+l.slice(j+1):W+=l.slice(P),W.slice(1)}function hr(l){for(var v="",_,T,P,U=0;U<l.length;U++){if(_=l.charCodeAt(U),_>=55296&&_<=56319&&(T=l.charCodeAt(U+1),T>=56320&&T<=57343)){v+=xe((_-55296)*1024+T-56320+65536),U++;continue}P=ye[_],v+=!P&&be(_)?l[U]:P||xe(_)}return v}function Xe(l,v,_){var T="",P=l.tag,U,j;for(U=0,j=_.length;U<j;U+=1)n(l,v,_[U],!1,!1)&&(U!==0&&(T+=","+(l.condenseFlow?"":" ")),T+=l.dump);l.tag=P,l.dump="["+T+"]"}function Ge(l,v,_,T){var P="",U=l.tag,j,z;for(j=0,z=_.length;j<z;j+=1)n(l,v+1,_[j],!0,!0)&&((!T||j!==0)&&(P+=qe(l,v)),l.dump&&b===l.dump.charCodeAt(0)?P+="-":P+="- ",P+=l.dump);l.tag=U,l.dump=P||"[]"}function gr(l,v,_){var T="",P=l.tag,U=Object.keys(_),j,z,W,ie,ge;for(j=0,z=U.length;j<z;j+=1)ge="",j!==0&&(ge+=", "),l.condenseFlow&&(ge+='"'),W=U[j],ie=_[W],n(l,v,W,!1,!1)&&(l.dump.length>1024&&(ge+="? "),ge+=l.dump+(l.condenseFlow?'"':"")+":"+(l.condenseFlow?"":" "),n(l,v,ie,!1,!1)&&(ge+=l.dump,T+=ge));l.tag=P,l.dump="{"+T+"}"}function Cr(l,v,_,T){var P="",U=l.tag,j=Object.keys(_),z,W,ie,ge,ae,ke;if(l.sortKeys===!0)j.sort();else if(typeof l.sortKeys=="function")j.sort(l.sortKeys);else if(l.sortKeys)throw new g("sortKeys must be a boolean or a function");for(z=0,W=j.length;z<W;z+=1)ke="",(!T||z!==0)&&(ke+=qe(l,v)),ie=j[z],ge=_[ie],n(l,v+1,ie,!0,!0,!0)&&(ae=l.tag!==null&&l.tag!=="?"||l.dump&&l.dump.length>1024,ae&&(l.dump&&b===l.dump.charCodeAt(0)?ke+="?":ke+="? "),ke+=l.dump,ae&&(ke+=qe(l,v)),n(l,v+1,ge,!0,ae)&&(l.dump&&b===l.dump.charCodeAt(0)?ke+=":":ke+=": ",ke+=l.dump,P+=ke));l.tag=U,l.dump=P||"{}"}function dr(l,v,_){var T,P,U,j,z,W;for(P=_?l.explicitTypes:l.implicitTypes,U=0,j=P.length;U<j;U+=1)if(z=P[U],(z.instanceOf||z.predicate)&&(!z.instanceOf||typeof v=="object"&&v instanceof z.instanceOf)&&(!z.predicate||z.predicate(v))){if(l.tag=_?z.tag:"?",z.represent){if(W=l.styleMap[z.tag]||z.defaultStyle,h.call(z.represent)==="[object Function]")T=z.represent(v,W);else if(e.call(z.represent,W))T=z.represent[W](v,W);else throw new g("!<"+z.tag+'> tag resolver accepts not "'+W+'" style');l.dump=T}return!0}return!1}function n(l,v,_,T,P,U){l.tag=null,l.dump=_,dr(l,_,!1)||dr(l,_,!0);var j=h.call(l.dump);T&&(T=l.flowLevel<0||l.flowLevel>v);var z=j==="[object Object]"||j==="[object Array]",W,ie;if(z&&(W=l.duplicates.indexOf(_),ie=W!==-1),(l.tag!==null&&l.tag!=="?"||ie||l.indent!==2&&v>0)&&(P=!1),ie&&l.usedDuplicates[W])l.dump="*ref_"+W;else{if(z&&ie&&!l.usedDuplicates[W]&&(l.usedDuplicates[W]=!0),j==="[object Object]")T&&Object.keys(l.dump).length!==0?(Cr(l,v,l.dump,P),ie&&(l.dump="&ref_"+W+l.dump)):(gr(l,v,l.dump),ie&&(l.dump="&ref_"+W+" "+l.dump));else if(j==="[object Array]"){var ge=l.noArrayIndent&&v>0?v-1:v;T&&l.dump.length!==0?(Ge(l,ge,l.dump,P),ie&&(l.dump="&ref_"+W+l.dump)):(Xe(l,ge,l.dump),ie&&(l.dump="&ref_"+W+" "+l.dump))}else if(j==="[object String]")l.tag!=="?"&&wr(l,l.dump,v,U);else{if(l.skipInvalid)return!1;throw new g("unacceptable kind of an object to dump "+j)}l.tag!==null&&l.tag!=="?"&&(l.dump="!<"+l.tag+"> "+l.dump)}return!0}function E(l,v){var _=[],T=[],P,U;for(R(l,_,T),P=0,U=T.length;P<U;P+=1)v.duplicates.push(_[T[P]]);v.usedDuplicates=new Array(U)}function R(l,v,_){var T,P,U;if(l!==null&&typeof l=="object")if(P=v.indexOf(l),P!==-1)_.indexOf(P)===-1&&_.push(P);else if(v.push(l),Array.isArray(l))for(P=0,U=l.length;P<U;P+=1)R(l[P],v,_);else for(T=Object.keys(l),P=0,U=T.length;P<U;P+=1)R(l[T[P]],v,_)}function Q(l,v){v=v||{};var _=new ee(v);return _.noRefs||E(l,_),n(_,0,l,!0,!0)?_.dump+`
|
|
37
|
+
`:""}function I(l,v){return Q(l,a.extend({schema:s},v))}return bn.dump=Q,bn.safeDump=I,bn}var Wt;function Ho(){if(Wt)return Se;Wt=1;var a=Bo(),g=Uo();function C(s){return function(){throw new Error("Function "+s+" is deprecated and cannot be used.")}}return Se.Type=je(),Se.Schema=Br(),Se.FAILSAFE_SCHEMA=xi(),Se.JSON_SCHEMA=ss(),Se.CORE_SCHEMA=os(),Se.DEFAULT_SAFE_SCHEMA=rn(),Se.DEFAULT_FULL_SCHEMA=Sn(),Se.load=a.load,Se.loadAll=a.loadAll,Se.safeLoad=a.safeLoad,Se.safeLoadAll=a.safeLoadAll,Se.dump=g.dump,Se.safeDump=g.safeDump,Se.YAMLException=nn(),Se.MINIMAL_SCHEMA=xi(),Se.SAFE_SCHEMA=rn(),Se.DEFAULT_SCHEMA=Sn(),Se.scan=C("scan"),Se.parse=C("parse"),Se.compose=C("compose"),Se.addConstructor=C("addConstructor"),Se}var Si,Vt;function Ko(){if(Vt)return Si;Vt=1;var a=Ho();return Si=a,Si}var Ei,Gt;function Wo(){if(Gt)return Ei;Gt=1;function a(s,h){function e(){this.constructor=s}e.prototype=h.prototype,s.prototype=new e}function g(s,h,e,d){this.message=s,this.expected=h,this.found=e,this.location=d,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,g)}a(g,Error),g.buildMessage=function(s,h){var e={literal:function(y){return'"'+b(y.text)+'"'},class:function(y){var A="",$;for($=0;$<y.parts.length;$++)A+=y.parts[$]instanceof Array?m(y.parts[$][0])+"-"+m(y.parts[$][1]):m(y.parts[$]);return"["+(y.inverted?"^":"")+A+"]"},any:function(y){return"any character"},end:function(y){return"end of input"},other:function(y){return y.description}};function d(y){return y.charCodeAt(0).toString(16).toUpperCase()}function b(y){return y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function m(y){return y.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(A){return"\\x0"+d(A)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(A){return"\\x"+d(A)})}function w(y){return e[y.type](y)}function k(y){var A=new Array(y.length),$,D;for($=0;$<y.length;$++)A[$]=w(y[$]);if(A.sort(),A.length>0){for($=1,D=1;$<A.length;$++)A[$-1]!==A[$]&&(A[D]=A[$],D++);A.length=D}switch(A.length){case 1:return A[0];case 2:return A[0]+" or "+A[1];default:return A.slice(0,-1).join(", ")+", or "+A[A.length-1]}}function Y(y){return y?'"'+b(y)+'"':"end of input"}return"Expected "+k(s)+" but "+Y(h)+" found."};function C(s,h){h=h!==void 0?h:{};var e={},d={Start:pn},b=pn,m=function(f){return[].concat(...f)},w="-",k=Ae("-",!1),Y=function(f){return f},y=function(f){return Object.assign({},...f)},A="#",$=Ae("#",!1),D=Ln(),ne=function(){return{}},oe=":",O=Ae(":",!1),J=function(f,p){return{[f]:p}},re=",",M=Ae(",",!1),le=function(f,p){return p},we=function(f,p,x){return Object.assign({},...[f].concat(p).map(H=>({[H]:x})))},de=function(f){return f},ve=function(f){return f},Ee=Er("correct indentation"),Oe=" ",Fe=Ae(" ",!1),Be=function(f){return f.length===Dr*yn},ye=function(f){return f.length===(Dr+1)*yn},Pe=function(){return Dr++,!0},Qe=function(){return Dr--,!0},xe=function(){return cn()},ee=Er("pseudostring"),Ne=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,qe=ir(["\r",`
|
|
38
|
+
`," "," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],!0,!1),Te=/^[^\r\n\t ,\][{}:#"']/,De=ir(["\r",`
|
|
39
|
+
`," "," ",",","]","[","{","}",":","#",'"',"'"],!0,!1),be=function(){return cn().replace(/^ *| *$/g,"")},K="--",B=Ae("--",!1),te=/^[a-zA-Z\/0-9]/,$e=ir([["a","z"],["A","Z"],"/",["0","9"]],!1,!1),Ve=/^[^\r\n\t :,]/,ze=ir(["\r",`
|
|
40
|
+
`," "," ",":",","],!0,!1),Me="null",Ye=Ae("null",!1),rr=function(){return null},nr="true",wr=Ae("true",!1),fr=function(){return!0},lr="false",br=Ae("false",!1),Ue=function(){return!1},hr=Er("string"),Xe='"',Ge=Ae('"',!1),gr=function(){return""},Cr=function(f){return f},dr=function(f){return f.join("")},n=/^[^"\\\0-\x1F\x7F]/,E=ir(['"',"\\",["\0",""],""],!0,!1),R='\\"',Q=Ae('\\"',!1),I=function(){return'"'},l="\\\\",v=Ae("\\\\",!1),_=function(){return"\\"},T="\\/",P=Ae("\\/",!1),U=function(){return"/"},j="\\b",z=Ae("\\b",!1),W=function(){return"\b"},ie="\\f",ge=Ae("\\f",!1),ae=function(){return"\f"},ke="\\n",En=Ae("\\n",!1),kn=function(){return`
|
|
41
|
+
`},tn="\\r",jr=Ae("\\r",!1),Fr=function(){return"\r"},mr="\\t",sn=Ae("\\t",!1),on=function(){return" "},Ur="\\u",xn=Ae("\\u",!1),_n=function(f,p,x,H){return String.fromCharCode(parseInt(`0x${f}${p}${x}${H}`))},yr=/^[0-9a-fA-F]/,$r=ir([["0","9"],["a","f"],["A","F"]],!1,!1),On=Er("blank space"),fn=/^[ \t]/,Ze=ir([" "," "],!1,!1),Hr=`\r
|
|
42
|
+
`,Tn=Ae(`\r
|
|
43
|
+
`,!1),Rn=`
|
|
44
|
+
`,ln=Ae(`
|
|
45
|
+
`,!1),jn="\r",Fn=Ae("\r",!1),u=0,he=0,Lr=[{line:1,column:1}],He=0,Kr=[],Z=0,Sr;if("startRule"in h){if(!(h.startRule in d))throw new Error(`Can't start parsing from rule "`+h.startRule+'".');b=d[h.startRule]}function cn(){return s.substring(he,u)}function Ae(f,p){return{type:"literal",text:f,ignoreCase:p}}function ir(f,p,x){return{type:"class",parts:f,inverted:p,ignoreCase:x}}function Ln(){return{type:"any"}}function In(){return{type:"end"}}function Er(f){return{type:"other",description:f}}function an(f){var p=Lr[f],x;if(p)return p;for(x=f-1;!Lr[x];)x--;for(p=Lr[x],p={line:p.line,column:p.column};x<f;)s.charCodeAt(x)===10?(p.line++,p.column=1):p.column++,x++;return Lr[f]=p,p}function un(f,p){var x=an(f),H=an(p);return{start:{offset:f,line:x.line,column:x.column},end:{offset:p,line:H.line,column:H.column}}}function se(f){u<He||(u>He&&(He=u,Kr=[]),Kr.push(f))}function Nn(f,p,x){return new g(g.buildMessage(f,p),f,p,x)}function pn(){var f;return f=Ir(),f}function Pn(){var f,p,x;for(f=u,p=[],x=hn();x!==e;)p.push(x),x=hn();return p!==e&&(he=f,p=m(p)),f=p,f}function hn(){var f,p,x,H,q;return f=u,p=vr(),p!==e?(s.charCodeAt(u)===45?(x=w,u++):(x=e,Z===0&&se(k)),x!==e?(H=Ce(),H!==e?(q=Nr(),q!==e?(he=f,p=Y(q),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f}function Ir(){var f,p,x;for(f=u,p=[],x=Wr();x!==e;)p.push(x),x=Wr();return p!==e&&(he=f,p=y(p)),f=p,f}function Wr(){var f,p,x,H,q,X,ue,me,pr;if(f=u,p=Ce(),p===e&&(p=null),p!==e){if(x=u,s.charCodeAt(u)===35?(H=A,u++):(H=e,Z===0&&se($)),H!==e){if(q=[],X=u,ue=u,Z++,me=ur(),Z--,me===e?ue=void 0:(u=ue,ue=e),ue!==e?(s.length>u?(me=s.charAt(u),u++):(me=e,Z===0&&se(D)),me!==e?(ue=[ue,me],X=ue):(u=X,X=e)):(u=X,X=e),X!==e)for(;X!==e;)q.push(X),X=u,ue=u,Z++,me=ur(),Z--,me===e?ue=void 0:(u=ue,ue=e),ue!==e?(s.length>u?(me=s.charAt(u),u++):(me=e,Z===0&&se(D)),me!==e?(ue=[ue,me],X=ue):(u=X,X=e)):(u=X,X=e);else q=e;q!==e?(H=[H,q],x=H):(u=x,x=e)}else u=x,x=e;if(x===e&&(x=null),x!==e){if(H=[],q=ar(),q!==e)for(;q!==e;)H.push(q),q=ar();else H=e;H!==e?(he=f,p=ne(),f=p):(u=f,f=e)}else u=f,f=e}else u=f,f=e;if(f===e&&(f=u,p=vr(),p!==e?(x=Mn(),x!==e?(H=Ce(),H===e&&(H=null),H!==e?(s.charCodeAt(u)===58?(q=oe,u++):(q=e,Z===0&&se(O)),q!==e?(X=Ce(),X===e&&(X=null),X!==e?(ue=Nr(),ue!==e?(he=f,p=J(x,ue),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,p=vr(),p!==e?(x=kr(),x!==e?(H=Ce(),H===e&&(H=null),H!==e?(s.charCodeAt(u)===58?(q=oe,u++):(q=e,Z===0&&se(O)),q!==e?(X=Ce(),X===e&&(X=null),X!==e?(ue=Nr(),ue!==e?(he=f,p=J(x,ue),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e))){if(f=u,p=vr(),p!==e)if(x=kr(),x!==e)if(H=Ce(),H!==e)if(q=Yn(),q!==e){if(X=[],ue=ar(),ue!==e)for(;ue!==e;)X.push(ue),ue=ar();else X=e;X!==e?(he=f,p=J(x,q),f=p):(u=f,f=e)}else u=f,f=e;else u=f,f=e;else u=f,f=e;else u=f,f=e;if(f===e)if(f=u,p=vr(),p!==e)if(x=kr(),x!==e){if(H=[],q=u,X=Ce(),X===e&&(X=null),X!==e?(s.charCodeAt(u)===44?(ue=re,u++):(ue=e,Z===0&&se(M)),ue!==e?(me=Ce(),me===e&&(me=null),me!==e?(pr=kr(),pr!==e?(he=q,X=le(x,pr),q=X):(u=q,q=e)):(u=q,q=e)):(u=q,q=e)):(u=q,q=e),q!==e)for(;q!==e;)H.push(q),q=u,X=Ce(),X===e&&(X=null),X!==e?(s.charCodeAt(u)===44?(ue=re,u++):(ue=e,Z===0&&se(M)),ue!==e?(me=Ce(),me===e&&(me=null),me!==e?(pr=kr(),pr!==e?(he=q,X=le(x,pr),q=X):(u=q,q=e)):(u=q,q=e)):(u=q,q=e)):(u=q,q=e);else H=e;H!==e?(q=Ce(),q===e&&(q=null),q!==e?(s.charCodeAt(u)===58?(X=oe,u++):(X=e,Z===0&&se(O)),X!==e?(ue=Ce(),ue===e&&(ue=null),ue!==e?(me=Nr(),me!==e?(he=f,p=we(x,H,me),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)}else u=f,f=e;else u=f,f=e}return f}function Nr(){var f,p,x,H,q,X,ue;if(f=u,p=u,Z++,x=u,H=ur(),H!==e?(q=Dn(),q!==e?(s.charCodeAt(u)===45?(X=w,u++):(X=e,Z===0&&se(k)),X!==e?(ue=Ce(),ue!==e?(H=[H,q,X,ue],x=H):(u=x,x=e)):(u=x,x=e)):(u=x,x=e)):(u=x,x=e),Z--,x!==e?(u=p,p=void 0):p=e,p!==e?(x=ar(),x!==e?(H=Vr(),H!==e?(q=Pn(),q!==e?(X=gn(),X!==e?(he=f,p=de(q),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,p=ur(),p!==e?(x=Vr(),x!==e?(H=Ir(),H!==e?(q=gn(),q!==e?(he=f,p=de(H),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e),f===e))if(f=u,p=qn(),p!==e){if(x=[],H=ar(),H!==e)for(;H!==e;)x.push(H),H=ar();else x=e;x!==e?(he=f,p=ve(p),f=p):(u=f,f=e)}else u=f,f=e;return f}function vr(){var f,p,x;for(Z++,f=u,p=[],s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Fe));x!==e;)p.push(x),s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Fe));return p!==e?(he=u,x=Be(p),x?x=void 0:x=e,x!==e?(p=[p,x],f=p):(u=f,f=e)):(u=f,f=e),Z--,f===e&&(p=e,Z===0&&se(Ee)),f}function Dn(){var f,p,x;for(f=u,p=[],s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Fe));x!==e;)p.push(x),s.charCodeAt(u)===32?(x=Oe,u++):(x=e,Z===0&&se(Fe));return p!==e?(he=u,x=ye(p),x?x=void 0:x=e,x!==e?(p=[p,x],f=p):(u=f,f=e)):(u=f,f=e),f}function Vr(){var f;return he=u,f=Pe(),f?f=void 0:f=e,f}function gn(){var f;return he=u,f=Qe(),f?f=void 0:f=e,f}function Mn(){var f;return f=_r(),f===e&&(f=dn()),f}function kr(){var f,p,x;if(f=_r(),f===e){if(f=u,p=[],x=tr(),x!==e)for(;x!==e;)p.push(x),x=tr();else p=e;p!==e&&(he=f,p=xe()),f=p}return f}function qn(){var f;return f=xr(),f===e&&(f=mn(),f===e&&(f=_r(),f===e&&(f=dn()))),f}function Yn(){var f;return f=xr(),f===e&&(f=_r(),f===e&&(f=tr())),f}function dn(){var f,p,x,H,q,X;if(Z++,f=u,Ne.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,Z===0&&se(qe)),p!==e){for(x=[],H=u,q=Ce(),q===e&&(q=null),q!==e?(Te.test(s.charAt(u))?(X=s.charAt(u),u++):(X=e,Z===0&&se(De)),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);H!==e;)x.push(H),H=u,q=Ce(),q===e&&(q=null),q!==e?(Te.test(s.charAt(u))?(X=s.charAt(u),u++):(X=e,Z===0&&se(De)),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);x!==e?(he=f,p=be(),f=p):(u=f,f=e)}else u=f,f=e;return Z--,f===e&&(p=e,Z===0&&se(ee)),f}function tr(){var f,p,x,H,q;if(f=u,s.substr(u,2)===K?(p=K,u+=2):(p=e,Z===0&&se(B)),p===e&&(p=null),p!==e)if(te.test(s.charAt(u))?(x=s.charAt(u),u++):(x=e,Z===0&&se($e)),x!==e){for(H=[],Ve.test(s.charAt(u))?(q=s.charAt(u),u++):(q=e,Z===0&&se(ze));q!==e;)H.push(q),Ve.test(s.charAt(u))?(q=s.charAt(u),u++):(q=e,Z===0&&se(ze));H!==e?(he=f,p=be(),f=p):(u=f,f=e)}else u=f,f=e;else u=f,f=e;return f}function xr(){var f,p;return f=u,s.substr(u,4)===Me?(p=Me,u+=4):(p=e,Z===0&&se(Ye)),p!==e&&(he=f,p=rr()),f=p,f}function mn(){var f,p;return f=u,s.substr(u,4)===nr?(p=nr,u+=4):(p=e,Z===0&&se(wr)),p!==e&&(he=f,p=fr()),f=p,f===e&&(f=u,s.substr(u,5)===lr?(p=lr,u+=5):(p=e,Z===0&&se(br)),p!==e&&(he=f,p=Ue()),f=p),f}function _r(){var f,p,x,H;return Z++,f=u,s.charCodeAt(u)===34?(p=Xe,u++):(p=e,Z===0&&se(Ge)),p!==e?(s.charCodeAt(u)===34?(x=Xe,u++):(x=e,Z===0&&se(Ge)),x!==e?(he=f,p=gr(),f=p):(u=f,f=e)):(u=f,f=e),f===e&&(f=u,s.charCodeAt(u)===34?(p=Xe,u++):(p=e,Z===0&&se(Ge)),p!==e?(x=Pr(),x!==e?(s.charCodeAt(u)===34?(H=Xe,u++):(H=e,Z===0&&se(Ge)),H!==e?(he=f,p=Cr(x),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)),Z--,f===e&&(p=e,Z===0&&se(hr)),f}function Pr(){var f,p,x;if(f=u,p=[],x=Or(),x!==e)for(;x!==e;)p.push(x),x=Or();else p=e;return p!==e&&(he=f,p=dr(p)),f=p,f}function Or(){var f,p,x,H,q,X;return n.test(s.charAt(u))?(f=s.charAt(u),u++):(f=e,Z===0&&se(E)),f===e&&(f=u,s.substr(u,2)===R?(p=R,u+=2):(p=e,Z===0&&se(Q)),p!==e&&(he=f,p=I()),f=p,f===e&&(f=u,s.substr(u,2)===l?(p=l,u+=2):(p=e,Z===0&&se(v)),p!==e&&(he=f,p=_()),f=p,f===e&&(f=u,s.substr(u,2)===T?(p=T,u+=2):(p=e,Z===0&&se(P)),p!==e&&(he=f,p=U()),f=p,f===e&&(f=u,s.substr(u,2)===j?(p=j,u+=2):(p=e,Z===0&&se(z)),p!==e&&(he=f,p=W()),f=p,f===e&&(f=u,s.substr(u,2)===ie?(p=ie,u+=2):(p=e,Z===0&&se(ge)),p!==e&&(he=f,p=ae()),f=p,f===e&&(f=u,s.substr(u,2)===ke?(p=ke,u+=2):(p=e,Z===0&&se(En)),p!==e&&(he=f,p=kn()),f=p,f===e&&(f=u,s.substr(u,2)===tn?(p=tn,u+=2):(p=e,Z===0&&se(jr)),p!==e&&(he=f,p=Fr()),f=p,f===e&&(f=u,s.substr(u,2)===mr?(p=mr,u+=2):(p=e,Z===0&&se(sn)),p!==e&&(he=f,p=on()),f=p,f===e&&(f=u,s.substr(u,2)===Ur?(p=Ur,u+=2):(p=e,Z===0&&se(xn)),p!==e?(x=cr(),x!==e?(H=cr(),H!==e?(q=cr(),q!==e?(X=cr(),X!==e?(he=f,p=_n(x,H,q,X),f=p):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)):(u=f,f=e)))))))))),f}function cr(){var f;return yr.test(s.charAt(u))?(f=s.charAt(u),u++):(f=e,Z===0&&se($r)),f}function Ce(){var f,p;if(Z++,f=[],fn.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,Z===0&&se(Ze)),p!==e)for(;p!==e;)f.push(p),fn.test(s.charAt(u))?(p=s.charAt(u),u++):(p=e,Z===0&&se(Ze));else f=e;return Z--,f===e&&(p=e,Z===0&&se(On)),f}function ar(){var f,p,x,H,q,X;if(f=u,p=ur(),p!==e){for(x=[],H=u,q=Ce(),q===e&&(q=null),q!==e?(X=ur(),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);H!==e;)x.push(H),H=u,q=Ce(),q===e&&(q=null),q!==e?(X=ur(),X!==e?(q=[q,X],H=q):(u=H,H=e)):(u=H,H=e);x!==e?(p=[p,x],f=p):(u=f,f=e)}else u=f,f=e;return f}function ur(){var f;return s.substr(u,2)===Hr?(f=Hr,u+=2):(f=e,Z===0&&se(Tn)),f===e&&(s.charCodeAt(u)===10?(f=Rn,u++):(f=e,Z===0&&se(ln)),f===e&&(s.charCodeAt(u)===13?(f=jn,u++):(f=e,Z===0&&se(Fn)))),f}const yn=2;let Dr=0;if(Sr=b(),Sr!==e&&u===s.length)return Sr;throw Sr!==e&&u<s.length&&se(In()),Nn(Kr,He<s.length?s.charAt(He):null,He<s.length?un(He,He+1):un(He,He))}return Ei={SyntaxError:g,parse:C},Ei}var Jt;function Vo(){if(Jt)return Rr;Jt=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.PreserveOrdering=void 0,Rr.stringifySyml=m,Rr.parseSyml=y;const a=Ko(),g=Wo(),C=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/,s=["__metadata","version","resolution","dependencies","peerDependencies","dependenciesMeta","peerDependenciesMeta","binaries"];class h{constructor($){this.data=$}}Rr.PreserveOrdering=h;function e(A){return A.match(C)?A:JSON.stringify(A)}function d(A){return typeof A>"u"?!0:typeof A=="object"&&A!==null&&!Array.isArray(A)?Object.keys(A).every($=>d(A[$])):!1}function b(A,$,D){if(A===null)return`null
|
|
46
|
+
`;if(typeof A=="number"||typeof A=="boolean")return`${A.toString()}
|
|
47
|
+
`;if(typeof A=="string")return`${e(A)}
|
|
48
|
+
`;if(Array.isArray(A)){if(A.length===0)return`[]
|
|
49
|
+
`;const ne=" ".repeat($);return`
|
|
50
|
+
${A.map(O=>`${ne}- ${b(O,$+1,!1)}`).join("")}`}if(typeof A=="object"&&A){const[ne,oe]=A instanceof h?[A.data,!1]:[A,!0],O=" ".repeat($),J=Object.keys(ne);oe&&J.sort((M,le)=>{const we=s.indexOf(M),de=s.indexOf(le);return we===-1&&de===-1?M<le?-1:M>le?1:0:we!==-1&&de===-1?-1:we===-1&&de!==-1?1:we-de});const re=J.filter(M=>!d(ne[M])).map((M,le)=>{const we=ne[M],de=e(M),ve=b(we,$+1,!0),Ee=le>0||D?O:"",Oe=de.length>1024?`? ${de}
|
|
51
|
+
${Ee}:`:`${de}:`,Fe=ve.startsWith(`
|
|
52
|
+
`)?ve:` ${ve}`;return`${Ee}${Oe}${Fe}`}).join($===0?`
|
|
53
|
+
`:"")||`
|
|
54
|
+
`;return D?`
|
|
55
|
+
${re}`:`${re}`}throw new Error(`Unsupported value type (${A})`)}function m(A){try{const $=b(A,0,!1);return $!==`
|
|
56
|
+
`?$:""}catch($){throw $.location&&($.message=$.message.replace(/(\.)?$/,` (line ${$.location.start.line}, column ${$.location.start.column})$1`)),$}}m.PreserveOrdering=h;function w(A){return A.endsWith(`
|
|
57
|
+
`)||(A+=`
|
|
58
|
+
`),(0,g.parse)(A)}const k=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function Y(A){if(k.test(A))return w(A);const $=(0,a.load)(A,{schema:a.FAILSAFE_SCHEMA,json:!0});if($==null)return{};if(typeof $!="object")throw new Error(`Expected an indexed object, got a ${typeof $} instead. Does your file follow Yaml's rules?`);if(Array.isArray($))throw new Error("Expected an indexed object, got an array instead. Does your file follow Yaml's rules?");return $}function y(A){return Y(A)}return Rr}var Qt;function Go(){return Qt||(Qt=1,(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.stringifySyml=a.parseSyml=a.stringifyResolution=a.parseResolution=a.stringifyValueArgument=a.stringifyShellLine=a.stringifyRedirectArgument=a.stringifyEnvSegment=a.stringifyCommandLineThen=a.stringifyCommandLine=a.stringifyCommandChainThen=a.stringifyCommandChain=a.stringifyCommand=a.stringifyArithmeticExpression=a.stringifyArgumentSegment=a.stringifyArgument=a.stringifyShell=a.parseShell=void 0;var g=bo();Object.defineProperty(a,"parseShell",{enumerable:!0,get:function(){return g.parseShell}}),Object.defineProperty(a,"stringifyShell",{enumerable:!0,get:function(){return g.stringifyShell}}),Object.defineProperty(a,"stringifyArgument",{enumerable:!0,get:function(){return g.stringifyArgument}}),Object.defineProperty(a,"stringifyArgumentSegment",{enumerable:!0,get:function(){return g.stringifyArgumentSegment}}),Object.defineProperty(a,"stringifyArithmeticExpression",{enumerable:!0,get:function(){return g.stringifyArithmeticExpression}}),Object.defineProperty(a,"stringifyCommand",{enumerable:!0,get:function(){return g.stringifyCommand}}),Object.defineProperty(a,"stringifyCommandChain",{enumerable:!0,get:function(){return g.stringifyCommandChain}}),Object.defineProperty(a,"stringifyCommandChainThen",{enumerable:!0,get:function(){return g.stringifyCommandChainThen}}),Object.defineProperty(a,"stringifyCommandLine",{enumerable:!0,get:function(){return g.stringifyCommandLine}}),Object.defineProperty(a,"stringifyCommandLineThen",{enumerable:!0,get:function(){return g.stringifyCommandLineThen}}),Object.defineProperty(a,"stringifyEnvSegment",{enumerable:!0,get:function(){return g.stringifyEnvSegment}}),Object.defineProperty(a,"stringifyRedirectArgument",{enumerable:!0,get:function(){return g.stringifyRedirectArgument}}),Object.defineProperty(a,"stringifyShellLine",{enumerable:!0,get:function(){return g.stringifyShellLine}}),Object.defineProperty(a,"stringifyValueArgument",{enumerable:!0,get:function(){return g.stringifyValueArgument}});var C=So();Object.defineProperty(a,"parseResolution",{enumerable:!0,get:function(){return C.parseResolution}}),Object.defineProperty(a,"stringifyResolution",{enumerable:!0,get:function(){return C.stringifyResolution}});var s=Vo();Object.defineProperty(a,"parseSyml",{enumerable:!0,get:function(){return s.parseSyml}}),Object.defineProperty(a,"stringifySyml",{enumerable:!0,get:function(){return s.stringifySyml}})})(Qn)),Qn}var zt=Go();const Zr="__metadata",Jo=a=>{const g=a.trim();if(g==="")return;const C=g.startsWith("@")?1:0,s=g.indexOf("@",C);if(s!==-1)return{name:g.slice(0,s),spec:g.slice(s+1)}},Qo=a=>a.split(",").map(g=>Jo(g)).filter(g=>g!==void 0),zo=a=>{const g=new Map;for(const C of Object.keys(a)){if(C==="__metadata")continue;const s=Qo(C),h=new Map;for(const{name:e,spec:d}of s){const b=h.get(e);b?b.push(d):h.set(e,[d])}for(const[e,d]of h){const b=g.get(e);b?b.push({key:C,specs:d}):g.set(e,[{key:C,specs:d}])}}return g},Xt=(a,g,C)=>{const s=a.get(g);if(!s)return[];const h=new Set([C]);return C.includes(":")?C.startsWith("npm:")&&h.add(C.slice(4)):h.add(`npm:${C}`),s.filter(d=>d.specs.some(b=>h.has(b))).map(d=>d.key)},Xo=(a,g)=>{const C=new Set,s=new Set(g.map(h=>h.relativeRoot).filter(h=>h!==""));for(const[h,e]of Object.entries(a)){if(h==="__metadata")continue;const{resolution:d}=e;if(typeof d!="string"||!d.includes("@workspace:"))continue;const b=d.split("@workspace:")[1];b!==void 0&&(b==="."||s.has(b))&&C.add(h)}return C},Zo=a=>{const g=[];for(const C of[a.dependencies,a.optionalDependencies])if(C)for(const[s,h]of Object.entries(C))typeof h=="string"&&g.push({name:s,spec:h});return g},ef=a=>{const g=typeof a.lockfileContent=="string"?a.lockfileContent:a.lockfileContent.toString("utf8");let C;try{C=zt.parseSyml(g)}catch(y){throw new er(`yarn.lock: parse failed — ${y.message}`)}if(!C||typeof C!="object")throw new er("yarn.lock: top-level value is not an object");const s=zo(C),h=new Set;C[Zr]!==void 0&&h.add(Zr);const e=Xo(C,a.closure);for(const y of e)h.add(y);for(const y of a.closure)if(y.deps)for(const[A,$]of Object.entries(y.deps)){if(typeof $!="string"||$.startsWith("workspace:")||$.startsWith("link:")||$.startsWith("portal:"))continue;const D=Xt(s,A,$);for(const ne of D)h.add(ne)}const d=[...h];for(;d.length>0;){const y=d.shift();if(y==="__metadata")continue;const A=C[y];if(A)for(const{name:$,spec:D}of Zo(A)){if(D.startsWith("workspace:")||D.startsWith("link:")||D.startsWith("portal:"))continue;const ne=Xt(s,$,D);for(const oe of ne)h.has(oe)||(h.add(oe),d.push(oe))}}const b={};for(const y of Object.keys(C))h.has(y)&&(b[y]=C[y]);const m=Object.keys(C).length-(C[Zr]===void 0?0:1),w=h.size-(h.has(Zr)?1:0),k=m-w,Y=C[Zr]!==void 0;return{content:zt.stringifySyml(b),message:`yarn.lock (${Y?"berry":"classic"}): kept ${w}/${m} entries (dropped ${k})`,status:"pruned"}},rf=a=>{switch(a.packageManager){case"aube":return uo(a);case"bun":return yo(a);case"npm":return Ao(a);case"pnpm":return ts(a);case"yarn":return ef(a);default:{const g=a.packageManager;throw new er(`Unsupported package manager: ${g}`)}}},nf=(a,g)=>{const C=new Set,s=[a],h=new Set([a]);for(;s.length>0;){const e=s.shift(),d=g.dependencies[e]??[];for(const b of d)h.has(b.target)||(h.add(b.target),C.add(b.target),s.push(b.target))}return C},Cn="vis-docker-manifest.json",tf=["package.json","project.json"],sf=[{file:"bun.lock",manager:"bun"},{file:"bun.lockb",manager:"bun"},{file:"npm-shrinkwrap.json",manager:"npm"},{file:"package-lock.json",manager:"npm"},{file:"pnpm-lock.yaml",manager:"pnpm"},{file:"yarn.lock",manager:"yarn"}],of=["package.json","pnpm-workspace.yaml",".npmrc","vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],ff=(a,g)=>{const C=new Set(a);for(const s of a){const h=nf(s,g);for(const e of h)C.add(e)}return C},qr=a=>{lo(a)},en=(a,g)=>{try{return qr(_i(g)),rs(a,g),!0}catch(C){if(C.code==="ENOENT")return!1;throw C}},ls=(a,g)=>{let C;try{C=no(a)}catch{return}if(!C.isSymbolicLink()){if(C.isFile()){qr(_i(g)),rs(a,g);return}qr(g);for(const s of io(a,{withFileTypes:!0}))s.name==="node_modules"||s.name===".git"||s.isSymbolicLink()||ls(Ie(a,s.name),Ie(g,s.name))}},Zt=a=>{if(!es(a))return;let g;try{g=ns(a)}catch{return}const C={};for(const s of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){const h=g[s];if(!(h===null||typeof h!="object"||Array.isArray(h)))for(const[e,d]of Object.entries(h))typeof d=="string"&&(C[e]=d)}return{deps:C,name:typeof g.name=="string"?g.name:void 0}},gf=a=>{const{focus:g,includeSources:C=!1,log:s=D=>{console.log(D)},outDir:h,projectGraph:e,pruneLockfile:d=!0,workspace:b,workspaceRoot:m}=a,w=g.filter(D=>b.projects[D]===void 0);if(w.length>0)throw new Error(`Unknown focus project(s): ${w.join(", ")}. Check project names in your workspace.`);const k=ff(g,e),Y=Ie(h,"workspace"),y=Ie(h,"sources");ki(Y,{force:!0,recursive:!0}),ki(y,{force:!0,recursive:!0}),qr(Y);for(const D of of)en(Ie(m,D),Ie(Y,D));const A=Zt(Ie(m,"package.json")),$=[{deps:A?.deps,name:A?.name,relativeRoot:""}];for(const D of k){const ne=b.projects[D];if(!ne?.root)continue;for(const O of tf)en(Ie(m,ne.root,O),Ie(Y,ne.root,O));const oe=Zt(Ie(m,ne.root,"package.json"));$.push({deps:oe?.deps,name:oe?.name,relativeRoot:ne.root})}for(const{file:D,manager:ne}of sf){const oe=Ie(m,D);if(!es(oe))continue;const O=Ie(Y,D);if(!d){en(oe,O);continue}const J=D.endsWith(".lockb")?at(oe):at(oe,"utf8");try{const re=rf({closure:$,displayName:D,lockfileContent:J,packageManager:ne});re.status==="pruned"&&re.content!==void 0?(qr(_i(O)),ut(O,re.content)):en(oe,O),s(re.message)}catch(re){if(re instanceof er)s(`${D}: pruning failed (${re.message}); copying verbatim`),en(oe,O);else throw re}}if(C){qr(y);for(const D of g){const ne=b.projects[D];ne?.root&&ls(Ie(m,ne.root),Ie(y,ne.root))}}return ut(Ie(h,Cn),`${JSON.stringify({focus:g,projects:[...k].sort()},null,2)}
|
|
59
|
+
`),{projects:[...k]}},df=a=>{const{contextRoot:g,workspace:C,workspaceRoot:s}=a,h=Ie(g,Cn);if(!fo(h))throw new Error(`No ${Cn} at ${g}. Run \`vis docker scaffold\` first.`);const e=ns(h);if(!Array.isArray(e.projects))throw new TypeError(`Invalid ${Cn}: "projects" must be an array.`);const d=new Set(e.projects),b=[];for(const[m,w]of Object.entries(C.projects)){if(d.has(m)||!w.root)continue;const k=Ie(s,w.root),Y=to(s,k);Y===""||Y==="."||Y.startsWith("..")||(ki(k,{force:!0,recursive:!0}),b.push(Y))}return{removed:b}};export{df as p,ff as r,gf as s};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as p}from"node:module";import{e as j}from"./index-DHD8wb6Z.js";import{a as F}from"./formatBytes-BHAzNIrn-DFIppnY0.js";let h;const m=t=>(h??=p(import.meta.url))(t),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,c=t=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,r]=s.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return s.getBuiltinModule(t)}return m(t)},{mkdirSync:f,writeFileSync:y,readdirSync:g}=c("node:fs"),{readFile:_}=c("node:fs/promises"),i=t=>F(t),a=(t,e)=>j(i(t),`${encodeURIComponent(e)}.json`);class R{#e;#t;constructor(e,r){this.#e=e,this.#t=r}printTaskTerminalOutput(e,r,o){if(r!=="failure")return;const n=i(this.#e);try{f(n,{recursive:!0})}catch{return}const u=e.overrides.command,d=e.projectRoot,l={command:u,cwd:d,exitCode:void 0,hash:e.hash,runId:this.#t,status:r,taskId:e.id,terminalOutput:o,timestamp:new Date().toISOString()};try{y(a(this.#e,e.id),`${JSON.stringify(l,void 0,2)}
|
|
2
|
+
`,"utf8")}catch{}}}const S=async(t,e)=>{const r=a(t,e);try{const o=await _(r,"utf8");return JSON.parse(o)}catch{return}},w=t=>{const e=i(t);let r;try{r=g(e)}catch{return[]}const o=[];for(const n of r)if(n.endsWith(".json"))try{o.push(decodeURIComponent(n.slice(0,-5)))}catch{}return o};export{R as F,S as a,w as l};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{createRequire as st}from"node:module";import{e as f}from"./index-DHD8wb6Z.js";import{y as G}from"./isAccessibleSync-DYKTrrvc-CSnBISfV.js";import{p as ht}from"./readJsonSync-CbryXYxN-B2aSeDpC.js";import{h as dt}from"./writeFileSync-DJoHk3Ks-CgQ-VNNT.js";let nt;const ot=t=>(nt??=st(import.meta.url))(t),E=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,I=t=>{if(typeof E<"u"&&E.versions&&E.versions.node){const[s,e]=E.versions.node.split(".").map(Number);if(s>22||s===22&&e>=3||s===20&&e>=16)return E.getBuiltinModule(t)}return ot(t)},{existsSync:it,readdirSync:z,statSync:rt,rmSync:Y,writeFileSync:at}=I("node:fs"),{spawn:F}=I("node:child_process"),{createHash:ct}=I("node:crypto"),{platform:lt,homedir:ut}=I("node:os"),pt=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ft=12288,gt=65510,mt=[12288,12288,65281,65376,65504,65510],wt=8361,bt=65518,yt=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],$t=32,St=10630,Et=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],xt=4352,Mt=262141,V=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],x=(t,s)=>{let e=0,n=Math.floor(t.length/2)-1;for(;e<=n;){const r=Math.floor((e+n)/2),c=r*2;if(s<t[c])n=r-1;else if(s>t[c+1])e=r+1;else return!0}return!1},j=19968,[kt,vt]=Bt(V);function Bt(t){let s=t[0],e=t[1];for(let n=0;n<t.length;n+=2){const r=t[n],c=t[n+1];if(j>=r&&j<=c)return[r,c];c-r>e-s&&(s=r,e=c)}return[s,e]}const Rt=t=>t<161||t>1114109?!1:x(pt,t),Tt=t=>t<ft||t>gt?!1:x(mt,t),It=t=>t<wt||t>bt?!1:x(yt,t),Wt=t=>t<$t||t>St?!1:x(Et,t),_t=t=>t>=kt&&t<=vt?!0:t<xt||t>Mt?!1:x(V,t);function Ct(t){return Rt(t)?"ambiguous":Tt(t)?"fullwidth":It(t)?"halfwidth":Wt(t)?"narrow":_t(t)?"wide":"neutral"}function At(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}function Z(t){return At(t),Ct(t)}const H=String.raw,D=H`\p{Emoji}(?:\p{EMod}|[\u{E0020}-\u{E007E}]+\u{E007F}|\uFE0F?\u20E3?)`,Nt=()=>new RegExp(H`\p{RI}{2}|(?)${D}(?:\u200D${D})*`,"gu"),fe=new Set(["\x1B",""]),Ft="\x07",jt="[",ge="m",Dt="]8;;",me=39,we=/[\u200B\uFEFF\u2060-\u2064]/g,be=new RegExp(`(?:\\${jt}(?<code>\\d+)m|\\${Dt}(?<uri>.*)${Ft})`),ye=Object.freeze(new Map([[0,0],[1,22],[2,22],[3,23],[4,24],[7,27],[8,28],[9,29],[30,39],[31,39],[32,39],[33,39],[34,39],[35,39],[36,39],[37,39],[40,49],[41,49],[42,49],[43,49],[44,49],[45,49],[46,49],[47,49],[90,39]])),U=/[\u001B\u009B](?:[[()#;?]{0,10}(?:\d{1,4}(?:;\d{0,4})*)?[0-9A-ORZcf-nqry=><]|\]8;;[^\u0007\u001B]{0,100}(?:\u0007|\u001B\\))/g,$e=/\u001B\[[\d;]*m[^\u001B]*(?:\u001B\[[\d;]*m|$)/g,Se=/\u001B\]8;[^\u0007\u001B]*(?:\u0007|\u001B\\)[^\u001B]*\u001B\]8;;(?:\u0007|\u001B\\)/g,B=/[\u0000-\u0008\n-\u001F\u007F-\u009F]{1,1000}/y,q=Nt(),Ee=/[-_./\s]+/g,xe=/(\u001B\[[0-9;]*[a-z])/i,Me=new RegExp("\\p{Script=Arabic}","u"),ke=new RegExp("\\p{Script=Bengali}","u"),ve=new RegExp("\\p{Script=Cyrillic}","u"),Be=new RegExp("\\p{Script=Devanagari}","u"),Re=new RegExp("\\p{Script=Ethiopic}","u"),Te=new RegExp("\\p{Script=Greek}","u"),Ie=new RegExp("\\p{Script=Greek}+|\\p{Script=Latin}+|[^\\p{Script=Greek}\\p{Script=Latin}]+","gu"),We=new RegExp("\\p{Script=Gujarati}","u"),_e=new RegExp("\\p{Script=Gurmukhi}","u"),Ce=new RegExp("\\p{Script=Hangul}","u"),Ae=new RegExp("\\p{Script=Hebrew}","u"),Ne=new RegExp("\\p{Script=Hiragana}","u"),Fe=new RegExp("\\p{Script=Han}","u"),je=new RegExp("\\p{Script=Kannada}","u"),De=new RegExp("\\p{Script=Katakana}","u"),Oe=new RegExp("\\p{Script=Khmer}","u"),Pe=new RegExp("\\p{Script=Lao}","u"),Ke=new RegExp("\\p{Script=Latin}","u"),Le=new RegExp("\\p{Script=Malayalam}","u"),ze=new RegExp("\\p{Script=Myanmar}","u"),Ye=new RegExp("\\p{Script=Oriya}","u"),Ge=new RegExp("\\p{Script=Sinhala}","u"),Ve=new RegExp("\\p{Script=Tamil}","u"),Ze=new RegExp("\\p{Script=Telugu}","u"),He=new RegExp("\\p{Script=Thai}","u"),Ue=new RegExp("\\p{Script=Tibetan}","u"),qe=/[\u02BB\u02BC\u0027]/u,Je=t=>t.replace(q,""),O=new Map,Ot=t=>[t.ambiguousIsNarrow?1:0,t.control,t.fullWidth,t.regular,t.wide].join("|"),Pt=t=>{const s=Ot(t.width);let e=O.get(s);return e||(e=new Map,O.set(s,e)),e},R=new RegExp(U.source,"y"),_=new RegExp(q.source,"uy"),T=/(?:[\u0020-\u007E\u00A0-\u00FF](?!\uFE0F)){1,1000}/y,J=t=>t>=32&&t<=126?"latin":t===8203||t===8204||t===8205||t===8288?"zero":t<=31||t>=127&&t<=159?"control":t>=160&&t<=255||t>=9472&&t<=9599?"latin":t>=4352&&t<=4607||t>=11904&&t<=40959||t>=44032&&t<=55215||t>=63744&&t<=64255||t>=65280&&t<=65519&&!(t>=65377&&t<=65439)||t>=12352&&t<=12543?"wide":t===8230?"latin":"other",Kt=(t,s)=>{const e=Pt(s),n=Math.floor(t/65536),r=t%65536;let c=e.get(n);if(c||(c=new Map,e.set(n,c)),c.has(r))return c.get(r);let o;switch(J(t)){case"control":{o=s.width.control;break}case"latin":{o=s.width.regular;break}case"wide":{o=s.width.wide;break}case"zero":{o=0;break}default:switch(Z(t)){case"ambiguous":{o=s.width.ambiguousIsNarrow?s.width.regular:s.width.wide;break}case"fullwidth":{o=s.width.fullWidth;break}case"wide":{o=s.width.wide;break}default:o=s.width.regular}}return c.set(r,o),o},Lt=t=>t>=768&&t<=879||t>=6832&&t<=6911||t>=7616&&t<=7679||t>=8400&&t<=8447||t>=65056&&t<=65071||t>=917760&&t<=917999||t>=65024&&t<=65039||t>=3633&&t<=3642||t>=3655&&t<=3662||t>=3761&&t<=3769||t>=3771&&t<=3772||t>=3784&&t<=3789||t>=2304&&t<=2307||t>=2362&&t<=2383||t>=2385&&t<=2391||t>=2402&&t<=2403||t>=2433&&t<=2435||t>=2492&&t<=2500||t>=2509&&t<=2509||t>=2561&&t<=2563||t>=2620&&t<=2637||t>=1611&&t<=1631||t>=1648&&t<=1648||t>=1750&&t<=1773||t>=2276&&t<=2302||t>=1425&&t<=1469||t>=1471&&t<=1471||t>=1473&&t<=1474||t>=1476&&t<=1477||t>=1479&&t<=1479||t>=3893&&t<=3893||t>=3895&&t<=3895||t>=3897&&t<=3897||t>=3953&&t<=3966||t>=3968&&t<=3972||t>=3974&&t<=3975?!0:t>=768&&t<=777||t>=803&&t<=803,C=(t,s={})=>{if(!t||t.length===0)return{ellipsed:!1,index:0,truncated:!1,width:0};const e={truncation:{countAnsiEscapeCodes:s.countAnsiEscapeCodes??!1,ellipsis:s.ellipsis??"",ellipsisWidth:s.ellipsisWidth??(s.ellipsis?C(s.ellipsis,{...s,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width:0),limit:s.limit??Number.POSITIVE_INFINITY},width:{ambiguousIsNarrow:s.ambiguousIsNarrow??!1,ansi:s.ansiWidth??0,control:s.controlWidth??0,emoji:s.emojiWidth??2,fullWidth:s.fullWidth??2,halfWidth:s.halfWidth??1,regular:s.regularWidth??1,tab:s.tabWidth??8,wide:s.wideWidth??2}},n=Math.max(0,e.truncation.limit-e.truncation.ellipsisWidth),{length:r}=t,c=r>1e4;let o=0,i=0,a=r,l=!1;const p=t.includes("\x1B")||t.includes("");for(;o<r;){if(p&&(t[o]==="\x1B"||t[o]==="")){if(t.startsWith("\x1B]8;;",o)){const d="\x1B]8;;\x07",w=d.length,y=t.indexOf("\x07",o+5);if(y!==-1){const $=t.indexOf(d,y+1);if($!==-1){const k=$+w,W=t.slice(y+1,$).replace(U,""),v=C(W,{ambiguousIsNarrow:e.width.ambiguousIsNarrow,ansiWidth:e.width.ansi,controlWidth:e.width.control,countAnsiEscapeCodes:!1,ellipsis:e.truncation.ellipsis,ellipsisWidth:e.truncation.ellipsisWidth,emojiWidth:e.width.emoji,fullWidth:e.width.fullWidth,halfWidth:e.width.halfWidth,limit:Math.max(0,n-i),regularWidth:e.width.regular,tabWidth:e.width.tab,wideWidth:e.width.wide}),S=v.width;if(v.truncated)l=!0,a=Math.min(a,o);else if(i+S>n&&(a=Math.min(a,o),l=!0,i+S>e.truncation.limit))break;if(i+=S,o=k,l&&i>=e.truncation.limit)break;continue}}}if(R.lastIndex=o,R.test(t)){const d=R.lastIndex-o,w=e.truncation.countAnsiEscapeCodes?d:e.width.ansi;if(i+w>n&&(a=Math.min(a,o),i+w>e.truncation.limit)){l=!0;break}i+=w,o=R.lastIndex;continue}}const u=t.codePointAt(o);if(u===8203||u===65279||u>=8288&&u<=8292){o+=1;continue}if(u===9){if(i+e.width.tab>n&&(a=Math.min(a,o),i+e.width.tab>e.truncation.limit)){l=!0;break}i+=e.width.tab,o+=1;continue}if(T.lastIndex=o,T.test(t)){const d=(T.lastIndex-o)*e.width.regular;if(i+d>n){const w=e.width.regular>0?Math.floor((n-i)/e.width.regular):0;if(a=Math.min(a,o+w),i+d>e.truncation.limit){l=!0;break}}i+=d,o=T.lastIndex;continue}if((u<=31||u>=127&&u<=159)&&(B.lastIndex=o,B.test(t))){const d=(B.lastIndex-o)*e.width.control;if(i+d>n){const w=e.width.control>0?Math.floor((n-i)/e.width.control):0;if(a=Math.min(a,o+w),i+d>e.truncation.limit){l=!0;break}}i+=d,o=B.lastIndex;continue}if(_.lastIndex=o,_.test(t)){if(i+e.width.emoji>n&&(a=Math.min(a,o),i+e.width.emoji>e.truncation.limit)){l=!0;break}i+=e.width.emoji,o=_.lastIndex;continue}const m=t.codePointAt(o)??0;if(Lt(m)){o+=m>65535?2:1;continue}let h;if(c)h=Kt(m,e);else switch(J(m)){case"control":{h=e.width.control;break}case"latin":{h=e.width.regular;break}case"wide":{h=e.width.wide;break}case"zero":{h=0;break}default:switch(Z(m)){case"ambiguous":{h=e.width.ambiguousIsNarrow?e.width.regular:e.width.wide;break}case"fullwidth":{h=e.width.fullWidth;break}case"wide":{h=e.width.wide;break}default:h=e.width.regular}}if(i+h>n&&(a=Math.min(a,o),i+h>e.truncation.limit)){l=!0;break}i+=h,o+=m>65535?2:1}let g=i,b=!1;return l&&e.truncation.limit>=e.truncation.ellipsisWidth&&(g=e.truncation.limit,b=!0),{ellipsed:b,index:l?a:r,truncated:l,width:g}},Xe=(t,s={})=>C(t,{...s,ellipsis:"",ellipsisWidth:0,limit:Number.POSITIVE_INFINITY}).width,A=()=>f(ut(),".vis"),zt=()=>f(A(),"cache"),Qe=()=>f(A(),"state"),Yt=t=>ct("sha256").update(t).digest("hex").slice(0,12),ts=t=>f(A(),"workspaces",Yt(t)),Gt=".vis",N=t=>f(t,Gt),es="node_modules/.cache/vis",ss=t=>f(N(t),"runs"),ns=t=>f(N(t),"last-summary.json"),os=t=>f(N(t),"last-failures"),is=t=>{const s=lt()==="win32";for(const e of[".task-runner",".task-runner-cache"]){const n=f(t,e);if(it(n))try{const r=s?F("cmd.exe",["/c","rmdir","/s","/q",n],{detached:!0,stdio:"ignore"}):F("rm",["-rf",n],{detached:!0,stdio:"ignore"});r.on("error",()=>{}),r.unref()}catch{}}},Vt="https://api.socket.dev/v0/purl?alerts=true",M=()=>f(zt(),"socket-security"),Zt=3600*1e3,X=.4,P=100,Ht=t=>typeof t=="object"&&t!==null&&"id"in t&&"type"in t&&"name"in t&&"version"in t&&"alerts"in t&&"score"in t&&t.type==="npm",Ut=()=>{dt(M())},Q=(t,s)=>`${encodeURIComponent(t)}@${encodeURIComponent(s)}`,qt=(t,s)=>{const e=Q(t,s),n=f(M(),`${e}.json`);try{const r=ht(n);if(Date.now()-r.createdAt>r.ttlMs){Y(n,{force:!0});return}return r.report}catch{return}},Jt=(t,s,e,n)=>{const r=Q(t,s),c={createdAt:Date.now(),report:e,ttlMs:n};at(f(M(),`${r}.json`),JSON.stringify(c),"utf8")},Xt=t=>{const s=[t.license,t.maintenance,t.quality,t.supplyChain,t.vulnerability];return Number((s.reduce((e,n)=>e+n,0)/s.length).toFixed(2))},Qt=async(t,s={})=>{const{apiToken:e,cacheTtlMs:n=Zt,timeoutMs:r=15e3}=s,c=new Map;if(t.length===0||!e)return c;const o=[];for(const l of t){const p=qt(l.name,l.version);p?c.set(`${l.name}@${l.version}`,p):o.push(l)}if(o.length===0)return c;const i=`Basic ${Buffer.from(`${e}:`).toString("base64")}`;Ut();const a=[];for(let l=0;l<o.length;l+=P)a.push(o.slice(l,l+P));for(const l of a){const p=l.map(u=>({purl:`pkg:npm/${u.name}@${u.version}`})),g=new AbortController,b=setTimeout(()=>{g.abort()},r);try{const u=await fetch(Vt,{body:JSON.stringify({components:p}),headers:{Authorization:i,"Content-Type":"application/json","User-Agent":"@visulima/vis"},method:"POST",signal:g.signal});if(!u.ok)continue;const m=await u.text();te(m,l,c,n)}catch{}finally{clearTimeout(b)}}return c},te=(t,s,e,n)=>{const r=new Map;for(const o of s)r.set(`${o.name}@${o.version}`,o);const c=t.split(`}
|
|
2
|
+
`);for(const o of c){const i=o.trim();if(i)try{const a=JSON.parse(i.endsWith("}")?i:`${i}}`),p=`${a.namespace?`${a.namespace}/`:""}${a.name}`,g=`${p}@${a.version}`;if(!r.has(g))continue;const b=a.score.overall??Xt(a.score),u={alerts:a.alerts,author:a.author,id:a.id,license:a.license,name:a.name,score:{...a.score,overall:b},size:a.size,type:"npm",version:a.version};a.namespace&&(u.namespace=a.namespace),Ht(u)&&(e.set(g,u),Jt(p,a.version,u,n))}catch{}}},ee=t=>t.namespace?`${t.namespace}/${t.name}`:t.name,rs=t=>t>=.8?"excellent":t>=.6?"good":t>=.4?"fair":t>=.2?"poor":"critical",as=t=>t>=.6?"green":t>=.4?"yellow":"red",cs=t=>{const s=ee(t),e=`score: ${String(Math.round(t.score.overall*100))}%`,n=t.alerts.length,r=n>0?`${String(n)} alert${n===1?"":"s"}`:"no alerts";return`${s}@${t.version} (${e}, ${r})`},ls=(t,s=X)=>{if(t.size===0)return"";let e=0,n=0,r=0,c=0,o=0,i=0;for(const l of t.values()){for(const p of l.alerts)switch(e++,p.severity){case"critical":{n++;break}case"high":{r++;break}case"medium":{c++;break}default:o++}l.score.overall<s&&i++}const a=[`Socket.dev: scanned ${String(t.size)} package${t.size===1?"":"s"}`];if(e>0){const l=[];n>0&&l.push(`${String(n)} critical`),r>0&&l.push(`${String(r)} high`),c>0&&l.push(`${String(c)} medium`),o>0&&l.push(`${String(o)} low`),a.push(` Alerts: ${String(e)} total (${l.join(", ")})`)}else a.push(" No security alerts found.");if(i>0){const l=Math.round(s*100);a.push(` ${String(i)} package${i===1?"":"s"} with low security score (<${String(l)}%)`)}return a.join(`
|
|
3
|
+
`)},se=()=>{const t=M();if(!G(t))return 0;const s=z(t).filter(e=>e.endsWith(".json"));for(const e of s)Y(f(t,e),{force:!0});return s.length},ne=()=>{const t=M();if(!G(t))return{entries:0,newestEntry:void 0,oldestEntry:void 0,totalSizeBytes:0};const s=z(t).filter(c=>c.endsWith(".json"));let e=0,n,r;for(const c of s){const o=rt(f(t,c));e+=o.size;const{mtimeMs:i}=o;(n===void 0||i<n)&&(n=i),(r===void 0||i>r)&&(r=i)}return{entries:s.length,newestEntry:r,oldestEntry:n,totalSizeBytes:e}},oe=(t,s)=>t?.enabled?{apiToken:t.apiToken??process.env.VIS_SOCKET_TOKEN,cacheTtlMs:t.cacheTtlMs,minimumScore:s??X,timeoutMs:t.timeoutMs}:void 0,us=(t,s,e,n)=>{if(!e)return;const r=Date.now(),c=i=>{if(i.expiresAt){const a=Date.parse(i.expiresAt);if(!Number.isNaN(a)&&a<r)return!1}return!(n&&i.policies&&!i.policies.includes(n))},o=`${t}@${s}`;if(e[o]&&c(e[o]))return e[o];if(e[t]&&c(e[t]))return e[t];for(const[i,a]of Object.entries(e))if(i.endsWith("*")&&t.startsWith(i.slice(0,-1))&&c(a))return a},hs=(t,s,e,n)=>[" // Add to security.acceptedRisks in vis.config.ts:",` ${`"${t}"`}: {`,` reason: "${n}",`,` acceptedAt: "${new Date().toISOString()}",`,` acceptedScore: ${String(e)},`,' policies: ["score"],'," },"].join(`
|
|
4
|
+
`),ds=(t,s={})=>{const e=oe(t,s.minimumScore);if(e)return{clearCache:se,displayName:"Socket.dev",fetchReports:n=>Qt(n,e),getCacheStats:ne,id:"socket"}},ps=t=>{if(t===void 0)return!1;const s=t.trim().toLowerCase();return s!==""&&s!=="0"&&s!=="false"&&s!=="no"},tt={iec:[{long:"Bytes",short:"B"},{long:"Kibibytes",short:"KiB"},{long:"Mebibytes",short:"MiB"},{long:"Gibibytes",short:"GiB"},{long:"Tebibytes",short:"TiB"},{long:"Pebibytes",short:"PiB"},{long:"Exbibytes",short:"EiB"},{long:"Zebibytes",short:"ZiB"},{long:"Yobibytes",short:"YiB"}],iec_octet:[{long:"Octets",short:"o"},{long:"Kibioctets",short:"Kio"},{long:"Mebioctets",short:"Mio"},{long:"Gibioctets",short:"Gio"},{long:"Tebioctets",short:"Tio"},{long:"Pebioctets",short:"Pio"},{long:"Exbioctets",short:"Eio"},{long:"Zebioctets",short:"Zio"},{long:"Yobioctets",short:"Yio"}],metric:[{long:"Bytes",short:"Bytes"},{long:"Kilobytes",short:"KB"},{long:"Megabytes",short:"MB"},{long:"Gigabytes",short:"GB"},{long:"Terabytes",short:"TB"},{long:"Petabytes",short:"PB"},{long:"Exabytes",short:"EB"},{long:"Zettabytes",short:"ZB"},{long:"Yottabytes",short:"YB"}],metric_octet:[{long:"Octets",short:"o"},{long:"Kilo-octets",short:"ko"},{long:"Mega-octets",short:"Mo"},{long:"Giga-octets",short:"Go"},{long:"Tera-octets",short:"To"},{long:"Peta-octets",short:"Po"},{long:"Exa-octets",short:"Eo"},{long:"Zetta-octets",short:"Zo"},{long:"Yotta-octets",short:"Yo"}]},ie=[{long:"bits",short:"bit"},{long:"Kilobits",short:"kbit"},{long:"Megabits",short:"Mbit"},{long:"Gigabits",short:"Gbit"},{long:"Terabits",short:"Tbit"},{long:"Petabits",short:"Pbit"},{long:"Exabits",short:"Ebit"},{long:"Zettabits",short:"Zbit"},{long:"Yottabits",short:"Ybit"}],K=new Map,L=(t,s)=>{const e=`${t}\0${JSON.stringify(s)}`;let n=K.get(e);return n===void 0&&(n=new Intl.NumberFormat(t,s),K.set(e,n)),n},re=t=>{switch(t){case 2:return 1024;case 10:return 1e3;default:throw new Error("Unsupported base.")}},ae=(t,s,e)=>({maximumFractionDigits:t,minimumFractionDigits:t,...s,...e}),ce=(t,s,e,n)=>{if(t===void 0)return-1;const r=s.findIndex(c=>c.short===t);return r===-1&&n?tt[e].findIndex(c=>c.short===t):r},fs=(t,s)=>{if(typeof t!="number"||!Number.isFinite(t))throw new TypeError("Bytesize is not a number.");const{base:e,bits:n,decimals:r,locale:c,long:o,signed:i,unit:a,units:l,...p}={base:2,bits:!1,decimals:0,locale:"en-US",long:!1,signed:!1,units:"metric",...s},g=re(e),b=n?t*8:t,u=Math.abs(b),m=s?.space??!0?" ":"",h=n?ie:tt[l],d=ce(a,h,l,n),w=r<0?void 0:r,y=i?{signDisplay:"exceptZero"}:{};if(b===0){const S=d===-1?0:Math.min(d,h.length-1),et=h[S][o?"long":"short"];return L(c,{...y,...p}).format(0)+m+et}const $=Math.max(0,Math.min(Math.floor(Math.log(u)/Math.log(g)),h.length-1)),k=d===-1?$:d,W=h[k][o?"long":"short"],v=b/g**k;return L(c,ae(w,y,p)).format(v)+m+W};export{fs as $,Le as A,Ge as B,Me as C,X as D,He as E,Te as F,ke as G,xe as H,Pe as I,Ue as J,ze as K,Re as L,ve as M,Oe as N,Ee as O,We as P,qe as Q,is as R,$e as S,Se as T,Fe as U,Ye as V,Ce as W,Je as X,De as Y,Ze as Z,U as _,os as a,C as a0,Tt as a1,_t as a2,we as a3,fe as a4,Dt as a5,Ft as a6,ge as a7,be as a8,ye as a9,jt as aa,me as ab,ds as ac,ls as ad,es as ae,ne as af,se as ag,ns as ah,A as b,N as c,ss as d,ee as e,us as f,zt as g,cs as h,rs as i,hs as j,ps as k,Qe as l,Xt as m,Qt as n,Xe as o,ts as p,q,Ke as r,as as s,Ie as t,Ne as u,Ae as v,Be as w,_e as x,je as y,Ve as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _={interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},e={interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},v={interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},s={interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},t={interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},l={interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},n={interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},i={interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},m={interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},f={interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},o={interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},g={interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},c={interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},d={interval:80,frames:["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},b={interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},u={interval:80,frames:["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},p={interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},w={interval:130,frames:["-","\\","|","/"]},h={interval:100,frames:["⠂","-","–","—","–","-"]},k={interval:80,frames:["/ "," - "," \\ "," |"," |"," \\ "," - ","/ "]},B={interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},y={interval:400,frames:[". ",".. ","..."," "]},x={interval:200,frames:[". ",".. ","..."," .."," ."," "]},q={interval:70,frames:["✶","✸","✹","✺","✹","✷"]},O={interval:80,frames:["+","x","*"]},D={interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},H={interval:100,frames:["☱","☲","☴"]},P={interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},S={interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},C={interval:140,frames:[" ",".","o","O","@","*"," "]},W={interval:120,frames:[".","o","O","°","O","o","."]},j={interval:100,frames:["▓","▒","░"]},z={interval:120,frames:["⠁","⠂","⠄","⠂"]},F={interval:120,frames:["▖","▘","▝","▗"]},I={interval:100,frames:["▌","▀","▐","▄"]},L={interval:50,frames:["◢","◣","◤","◥"]},Q={interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},R={interval:100,frames:["◜","◠","◝","◞","◡","◟"]},T={interval:120,frames:["◡","⊙","◠"]},V={interval:180,frames:["◰","◳","◲","◱"]},A={interval:120,frames:["◴","◷","◶","◵"]},M={interval:50,frames:["◐","◓","◑","◒"]},N={interval:100,frames:["╫","╪"]},E={interval:250,frames:["⊶","⊷"]},G={interval:80,frames:["▫","▪"]},J={interval:120,frames:["□","■"]},K={interval:100,frames:["■","□","▪","▫"]},U={interval:100,frames:["▮","▯"]},X={interval:300,frames:["ဝ","၀"]},Y={interval:80,frames:["⦾","⦿"]},Z={interval:100,frames:["◍","◌"]},$={interval:100,frames:["◉","◎"]},rr={interval:100,frames:["㊂","㊀","㊁"]},ar={interval:50,frames:["⧇","⧆"]},_r={interval:120,frames:["☗","☖"]},er={interval:80,frames:["=","*","-"]},vr={interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},sr={interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},tr={interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},lr={interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},nr={interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},ir={interval:200,frames:["😄 ","😝 "]},mr={interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},fr={interval:100,frames:["💛 ","💙 ","💜 ","💚 ","💗 "]},or={interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},gr={interval:180,frames:["🌍 ","🌎 ","🌏 "]},cr={interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},dr={interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},br={interval:140,frames:["🚶 ","🏃 "]},ur={interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},pr={interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},wr={interval:100,frames:["d","q","p","b"]},hr={interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},kr={interval:400,frames:["🌲","🎄"]},Br={interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},yr={interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},xr={interval:150,frames:["-","=","≡"]},qr={interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},Or={interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},Dr={interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},Hr={interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},Pr={interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},Sr={interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},Cr={interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},Wr={interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},jr={interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},zr={interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},Fr={interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},Ir={interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]},Lr={interval:80,frames:["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","º> ~~~~~~~~~~~~~~~~~","(º> ~~~~~~~~~~~~~~~~","((º> ~~~~~~~~~~~~~~~","<((º> ~~~~~~~~~~~~~~","><((º> ~~~~~~~~~~~~~"," ><((º> ~~~~~~~~~~~~","~ ><((º> ~~~~~~~~~~~","~~ <>((º> ~~~~~~~~~~","~~~ ><((º> ~~~~~~~~~","~~~~ <>((º> ~~~~~~~~","~~~~~ ><((º> ~~~~~~~","~~~~~~ <>((º> ~~~~~~","~~~~~~~ ><((º> ~~~~~","~~~~~~~~ <>((º> ~~~~","~~~~~~~~~ ><((º> ~~~","~~~~~~~~~~ <>((º> ~~","~~~~~~~~~~~ ><((º> ~","~~~~~~~~~~~~ <>((º> ","~~~~~~~~~~~~~ ><((º>","~~~~~~~~~~~~~~ <>((º","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]};const Qr={dots:_,dots2:e,dots3:v,dots4:s,dots5:t,dots6:l,dots7:n,dots8:i,dots9:m,dots10:f,dots11:o,dots12:g,dots13:c,dots14:d,dots8Bit:b,dotsCircle:u,sand:p,line:w,line2:h,rollingLine:k,pipe:B,simpleDots:y,simpleDotsScrolling:x,star:q,star2:O,flip:D,hamburger:H,growVertical:P,growHorizontal:S,balloon:C,balloon2:W,noise:j,bounce:z,boxBounce:F,boxBounce2:I,triangle:L,binary:Q,arc:R,circle:T,squareCorners:V,circleQuarters:A,circleHalves:M,squish:N,toggle:E,toggle2:G,toggle3:J,toggle4:K,toggle5:U,toggle6:X,toggle7:Y,toggle8:Z,toggle9:$,toggle10:rr,toggle11:ar,toggle12:_r,toggle13:er,arrow:vr,arrow2:sr,arrow3:tr,bouncingBar:lr,bouncingBall:nr,smiley:ir,monkey:mr,hearts:fr,clock:or,earth:gr,material:cr,moon:dr,runner:br,pong:ur,shark:pr,dqpb:wr,weather:hr,christmas:kr,grenade:Br,point:yr,layer:xr,betaWave:qr,fingerDance:Or,fistBump:Dr,soccerHeader:Hr,mindblown:Pr,speaker:Sr,orangePulse:Cr,bluePulse:Wr,orangeBluePulse:jr,timeTravel:zr,aesthetic:Fr,dwarfFortress:Ir,fish:Lr},Rr={breathe:{frames:["⠀","⠂","⠌","⡑","⢕","⢝","⣫","⣟","⣿","⣟","⣫","⢝","⢕","⡑","⠌","⠂","⠀"],interval:100},cascade:{frames:["⠀⠀⠀⠀","⠁⠀⠀⠀","⠋⠀⠀⠀","⠞⠁⠀⠀","⡴⠋⠀⠀","⣠⠞⠁⠀","⢀⡴⠋⠀","⠀⣠⠞⠁","⠀⢀⡴⠋","⠀⠀⣠⠞","⠀⠀⢀⡴","⠀⠀⠀⣠","⠀⠀⠀⢀"],interval:60},checkerboard:{frames:["⢕⢕⢕","⡪⡪⡪","⢊⠔⡡","⡡⢊⠔"],interval:250},columns:{frames:["⡀⠀⠀","⡄⠀⠀","⡆⠀⠀","⡇⠀⠀","⣇⠀⠀","⣧⠀⠀","⣷⠀⠀","⣿⠀⠀","⣿⡀⠀","⣿⡄⠀","⣿⡆⠀","⣿⡇⠀","⣿⣇⠀","⣿⣧⠀","⣿⣷⠀","⣿⣿⠀","⣿⣿⡀","⣿⣿⡄","⣿⣿⡆","⣿⣿⡇","⣿⣿⣇","⣿⣿⣧","⣿⣿⣷","⣿⣿⣿","⣿⣿⣿","⠀⠀⠀"],interval:60},diagSwipe:{frames:["⠁⠀","⠋⠀","⠟⠁","⡿⠋","⣿⠟","⣿⡿","⣿⣿","⣿⣿","⣾⣿","⣴⣿","⣠⣾","⢀⣴","⠀⣠","⠀⢀","⠀⠀","⠀⠀"],interval:60},dna:{frames:["⠋⠉⠙⠚","⠉⠙⠚⠒","⠙⠚⠒⠂","⠚⠒⠂⠂","⠒⠂⠂⠒","⠂⠂⠒⠲","⠂⠒⠲⠴","⠒⠲⠴⠤","⠲⠴⠤⠄","⠴⠤⠄⠋","⠤⠄⠋⠉","⠄⠋⠉⠙"],interval:80},doubleArrow:{frames:["⇐","⇖","⇑","⇗","⇒","⇘","⇓","⇙"],interval:100},fillSweep:{frames:["⣀⣀","⣤⣤","⣶⣶","⣿⣿","⣿⣿","⣿⣿","⣶⣶","⣤⣤","⣀⣀","⠀⠀","⠀⠀"],interval:100},helix:{frames:["⢌⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉","⢎⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉","⢎⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉","⢎⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉"],interval:80},infinity:{frames:["⢎⡱⣉⠆","⢎⡱⣈⠆","⢎⡱⣀⠆","⢎⡱⣀⠄","⢎⡱⣀ ","⢎⡱⡀ ","⢎⡱ ","⢎⡱ ","⢎⡡ ","⢎⡠ ","⢆⡠ ","⢄⡠ ","⢀⡠ "," ⡠ "," ⠠ "," ⠰ "," ⠐ "," ⠐⠁ "," ⠐⠉ "," ⠐⠉⠂"," ⠐⠉⠆"," ⠐⢉⠆"," ⠐⣉⠆"," ⠰⣉⠆"," ⠰⣉⠆"," ⠱⣉⠆","⠈⠱⣉⠆","⠊⠱⣉⠆","⠎⠱⣉⠆","⢎⠱⣉⠆","⢎⡱⣉⠆","⢎⡱⣉⠆"],interval:60},orbit:{frames:["⠃","⠉","⠘","⠰","⢠","⣀","⡄","⠆"],interval:100},pulse:{frames:["⠀⠶⠀","⠰⣿⠆","⢾⣉⡷","⣏⠀⣹","⡁⠀⢈"],interval:180},rain:{frames:["⢁⠂⠔⠈","⠂⠌⡠⠐","⠄⡐⢀⠡","⡈⠠⠀⢂","⠐⢀⠁⠄","⠠⠁⠊⡀","⢁⠂⠔⠈","⠂⠌⡠⠐","⠄⡐⢀⠡","⡈⠠⠀⢂","⠐⢀⠁⠄","⠠⠁⠊⡀"],interval:100},scan:{frames:["⠀⠀⠀⠀","⡇⠀⠀⠀","⣿⠀⠀⠀","⢸⡇⠀⠀","⠀⣿⠀⠀","⠀⢸⡇⠀","⠀⠀⣿⠀","⠀⠀⢸⡇","⠀⠀⠀⣿","⠀⠀⠀⢸"],interval:70},scanline:{frames:["⠉⠉⠉","⠓⠓⠓","⠦⠦⠦","⣄⣄⣄","⠦⠦⠦","⠓⠓⠓"],interval:120},snake:{frames:["⣁⡀","⣉⠀","⡉⠁","⠉⠉","⠈⠙","⠀⠛","⠐⠚","⠒⠒","⠖⠂","⠶⠀","⠦⠄","⠤⠤","⠠⢤","⠀⣤","⢀⣠","⣀⣀"],interval:80},sparkle:{frames:["⡡⠊⢔⠡","⠊⡰⡡⡘","⢔⢅⠈⢢","⡁⢂⠆⡍","⢔⠨⢑⢐","⠨⡑⡠⠊"],interval:150},wave:{frames:["⠁⠂⠄⡀","⠂⠄⡀⢀","⠄⡀⢀⠠","⡀⢀⠠⠐","⢀⠠⠐⠈","⠠⠐⠈⠁","⠐⠈⠁⠂","⠈⠁⠂⠄"],interval:100},waveRows:{frames:["⠖⠉⠉⠑","⡠⠖⠉⠉","⣠⡠⠖⠉","⣄⣠⡠⠖","⠢⣄⣠⡠","⠙⠢⣄⣠","⠉⠙⠢⣄","⠊⠉⠙⠢","⠜⠊⠉⠙","⡤⠜⠊⠉","⣀⡤⠜⠊","⢤⣀⡤⠜","⠣⢤⣀⡤","⠑⠣⢤⣀","⠉⠑⠣⢤","⠋⠉⠑⠣"],interval:90}},r={...Qr,...Rr},Tr=a=>r[a],Vr=()=>Object.keys(r);export{Vr as I,Tr as W};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as le}from"node:module";let ue;const de=t=>(ue??=le(import.meta.url))(t),y=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,v=t=>{if(typeof y<"u"&&y.versions&&y.versions.node){const[e,r]=y.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return y.getBuiltinModule(t)}return de(t)},{existsSync:g,openSync:he,readSync:fe,closeSync:pe,statSync:me,createWriteStream:V,readdirSync:ge,renameSync:we}=v("node:fs"),{readFile:X,mkdir:O,rm:x,writeFile:ve,mkdtemp:be}=v("node:fs/promises"),{PassThrough:q,Readable:I,pipeline:_e}=v("node:stream"),{pipeline:J}=v("node:stream/promises"),{spawn:Y}=v("node:child_process"),{basename:$e,normalize:ye,delimiter:T,resolve:K,dirname:M,join:j}=v("node:path"),{cwd:Z}=y,ke=v("node:readline"),{homedir:Ee,tmpdir:Q}=v("node:os"),{promisify:xe}=v("node:util");var F=Object.defineProperty,Te=(t,e)=>{let r={};for(var n in t)F(r,n,{get:t[n],enumerable:!0});return F(r,Symbol.toStringTag,{value:"Module"}),r};const Ce=/^[A-Za-z]:\//;function C(t=""){return t&&t.replace(/\\/g,"/").replace(Ce,e=>e.toUpperCase())}const Ae=/^[/\\]{2}/,Se=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ee=/^[A-Za-z]:$/,te=function(t){if(t.length===0)return".";t=C(t);let e=t.match(Ae),r=k(t),n=t[t.length-1]==="/";return t=re(t,!r),t.length===0?r?"/":n?"./":".":(n&&(t+="/"),ee.test(t)&&(t+="/"),e?r?`//${t}`:`//./${t}`:r&&!k(t)?`/${t}`:t)},D=function(...t){let e="";for(let r of t)if(r)if(e.length>0){let n=e[e.length-1]==="/",s=r[0]==="/";n&&s?e+=r.slice(1):e+=n||s?r:`/${r}`}else e+=r;return te(e)};function Oe(){return typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const m=function(...t){t=t.map(n=>C(n));let e="",r=!1;for(let n=t.length-1;n>=-1&&!r;n--){let s=n>=0?t[n]:Oe();!s||s.length===0||(e=`${s}/${e}`,r=k(s))}return e=re(e,!r),r&&!k(e)?`/${e}`:e.length>0?e:"."};function re(t,e){let r="",n=0,s=-1,i=0,o=null;for(let a=0;a<=t.length;++a){if(a<t.length)o=t[a];else{if(o==="/")break;o="/"}if(o==="/"){if(s!==a-1&&i!==1)if(i===2){if(r.length<2||n!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){let c=r.lastIndexOf("/");c===-1?(r="",n=0):(r=r.slice(0,c),n=r.length-1-r.lastIndexOf("/")),s=a,i=0;continue}else if(r.length>0){r="",n=0,s=a,i=0;continue}}e&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${t.slice(s+1,a)}`:r=t.slice(s+1,a),n=a-s-1;s=a,i=0}else o==="."&&i!==-1?++i:i=-1}return r}const k=function(t){return Se.test(t)},ne=function(t){let e=C(t).replace(/\/$/,"").split("/").slice(0,-1);return e.length===1&&ee.test(e[0])&&(e[0]+="/"),e.join("/")||(k(t)?"/":".")},se=function(t,e){let r=C(t).split("/"),n="";for(let s=r.length-1;s>=0;s--){let i=r[s];if(i){n=i;break}}return n},ze=/^path$/i,P={key:"PATH",value:""};function ie(t){for(let e in t){if(!Object.prototype.hasOwnProperty.call(t,e)||!ze.test(e))continue;let r=t[e];return r?{key:e,value:r}:P}return P}function Ie(t,e){let r=e.value.split(T),n=[],s=t,i;do n.push(K(s,"node_modules",".bin")),i=s,s=M(s);while(s!==i);n.push(M(process.execPath));let o=n.concat(r).join(T);return{key:e.key,value:o}}function Me(t,e,r=!0){let n={...process.env,...e};if(!r)return n;let s=Ie(t,ie(n));return n[s.key]=s.value,n}const je=t=>{let e=t.length,r=new q,n=()=>{--e===0&&r.end()};for(let s of t)J(s,r,{end:!1}).then(n).catch(n);return r},S=/([()\][%!^"`<>&|;, *?])/g,Fe=/^#!\s*(.+)/,De=/\.(?:com|exe)$/i,Pe=/node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i,Ge=process.platform==="win32",Re=[".EXE",".CMD",".BAT",".COM"];function Be(t,e=[],r={}){if(r.shell===!0||!Ge)return{command:t,args:e,options:r};let n=G(t,r),s=null;if(n!==null){let i=Buffer.alloc(150),o=null;try{o=he(n,"r"),fe(o,i,0,150,0)}catch{}finally{o!==null&&pe(o)}let a=i.toString().match(Fe);if(a!==null){let c=a[1].trim(),d=c.indexOf(" "),l=d===-1?c:c.slice(0,d),f=d===-1?"":c.slice(d+1),h=$e(l);s=h==="env"?f||null:h}}if(s!==null&&n!==null&&(e=[n,...e],t=s,n=G(t,r)),n===null||!De.test(n)){let i=n!==null&&Pe.test(n);t=ye(t),t=t.replace(S,"^$1"),e=e.map(o=>(o=o.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),o=o.replace(/(?=(\\+?)?)\1$/,"$1$1"),o=`"${o}"`,o=o.replace(S,"^$1"),i&&(o=o.replace(S,"^$1")),o)),e=["/d","/s","/c",`"${[t,...e].join(" ")}"`],t=r.env?.comspec??"cmd.exe",r={...r,windowsVerbatimArguments:!0}}return{command:t,args:e,options:r}}function G(t,e){let r=(e.cwd??Z()).toString(),n=e.env??process.env,s=ie(n).value,i=t.includes("/")||t.includes("\\")?[""]:[r,...s.split(T)],o=n.PATHEXT?n.PATHEXT.split(T):Re;t.includes(".")&&o[0]!==""&&o.unshift("");for(let a of i){let c=K(r,a.startsWith('"')&&a.endsWith('"')&&a.length>1?a.slice(1,-1):a,t);for(let d of o){let l=c+d;try{if(me(l).isFile())return l}catch{}}}return null}var R=class extends Error{result;output;get exitCode(){if(this.result.exitCode!==null)return this.result.exitCode}constructor(t,e){super(`Process exited with non-zero status (${t.exitCode})`),this.result=t,this.output=e}};const Ue={timeout:void 0,persist:!1},He={windowsHide:!0};function Ne(t){let e=new AbortController;for(let r of t){if(r.aborted)return e.abort(),r;r.addEventListener("abort",()=>{e.abort(r.reason)},{signal:e.signal})}return e.signal}async function B(t){let e="";try{for await(let r of t)e+=r.toString()}catch{}return e}var Le=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&this._process.exitCode!==null)return this._process.exitCode}constructor(t,e,r){this._options={...Ue,...r},this._command=t,this._args=e??[],this._processClosed=new Promise(n=>{this._resolveClose=n})}kill(t){return this._process?.kill(t)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(t,e,r){return We(t,e,{...r,stdin:this})}async*[Symbol.asyncIterator](){let t=this._process;if(!t)return;let e=[];this._streamErr&&e.push(this._streamErr),this._streamOut&&e.push(this._streamOut);let r=je(e),n=ke.createInterface({input:r});for await(let s of n)yield s.toString();if(await this._processClosed,t.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new R(this)}async _waitForOutput(){let t=this._process;if(!t)throw Error("No process was started");let[e,r]=await Promise.all([this._streamOut?B(this._streamOut):"",this._streamErr?B(this._streamErr):""]);await this._processClosed;let{stdin:n}=this._options;if(n&&typeof n!="string"&&await n,t.removeAllListeners(),this._thrownError)throw this._thrownError;let s={stderr:r,stdout:e,exitCode:this.exitCode};if(this._options.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new R(this,s);return s}then(t,e){return this._waitForOutput().then(t,e)}_streamOut;_streamErr;spawn(){let t=Z(),e=this._options,r={...He,...e.nodeOptions},n=[];this._resetState(),e.timeout!==void 0&&n.push(AbortSignal.timeout(e.timeout)),e.signal!==void 0&&n.push(e.signal),e.persist===!0&&(r.detached=!0),n.length>0&&(r.signal=Ne(n)),r.env=Me(t,r.env,e.nodePath);let s=Be(this._command,this._args,r),i=Y(s.command,s.args,s.options);if(i.stderr&&(this._streamErr=i.stderr),i.stdout&&(this._streamOut=i.stdout),this._process=i,i.once("error",this._onError),i.once("close",this._onClose),i.stdin){let{stdin:o}=e;typeof o=="string"?i.stdin.end(o):o?.process?.stdout?.pipe(i.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(t=>{this._resolveClose=t}),this._thrownError=void 0}_onError=t=>{if(t.name==="AbortError"&&(!(t.cause instanceof Error)||t.cause.name!=="TimeoutError")){this._aborted=!0;return}this._thrownError=t};_onClose=()=>{this._resolveClose&&this._resolveClose()}};const z=(t,e,r)=>{let n=new Le(t,e,r);return n.spawn(),n},We=z;var Ve=Te({detectPackageManager:()=>ae,installDependencies:()=>et,packageManagers:()=>w});async function Xe(t,e,r={}){let n=te(t).split("/");for(;n.length>0;){let s=await e(n.join("/")||"/");if(s||!r.includeParentDirs)return s;n.pop()}}function qe(t){let e;return()=>(e===void 0&&(e=t().then(r=>(e=r,e))),e)}const Je=qe(async()=>{if(globalThis.process?.versions?.webcontainer)return!1;try{let{exitCode:t}=await z("corepack",["--version"]);return t===0}catch{return!1}});async function Ye(t,e,r={}){let n=t!=="npm"&&t!=="bun"&&t!=="deno"&&t!=="aube"&&t!=="nub"&&r.corepack!==!1&&await Je()?["corepack",[t,...e]]:[t,e],{exitCode:s,stdout:i,stderr:o}=await z(n[0],n[1],{nodeOptions:{cwd:m(r.cwd||process.cwd()),env:r.env,stdio:r.silent?"pipe":"inherit"}});if(s!==0)throw Error(`\`${n.flat().join(" ")}\` failed.${r.silent?["",i,o].join(`
|
|
2
|
+
`):""}`)}async function Ke(t={}){let e=t.cwd||process.cwd(),r={...process.env,...t.env},n=(typeof t.packageManager=="string"?w.find(s=>s.name===t.packageManager):t.packageManager)||await ae(t.cwd||process.cwd());if(!n)throw Error("No package manager auto-detected.");return{cwd:e,env:r,silent:t.silent??!1,packageManager:n,dev:t.dev??!1,workspace:t.workspace,global:t.global??!1,dry:t.dry??!1,corepack:t.corepack??!0}}const oe=/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/;function Ze(t){let[e,r]=(t||"").split("@"),[n,s]=r?.split("+")||[];if(e&&e!=="-"&&oe.test(e))return{name:e,version:n,buildMeta:s};let i=(e||"").replace(/\W+/g,"");return{name:i,version:n,buildMeta:s,warnings:[`Abnormal characters found in \`packageManager\` field, sanitizing from \`${e}\` to \`${i}\``]}}function Qe(t){let e=t?.packageManager,r=Array.isArray(e)?e[0]:e,n=typeof r?.name=="string"?r.name:void 0,s=typeof r?.version=="string"?r.version:void 0;if(!n)return{};if(!oe.test(n)){let i=n.replace(/\W+/g,"");return{name:i,version:s,warnings:[`Abnormal characters found in \`devEngines.packageManager\` field, sanitizing from \`${n}\` to \`${i}\``]}}return{name:n,version:s}}const w=[{name:"npm",command:"npm",lockFile:"package-lock.json"},{name:"aube",command:"aube",lockFile:"aube-lock.yaml"},{name:"nub",command:"nub"},{name:"pnpm",command:"pnpm",lockFile:"pnpm-lock.yaml",files:["pnpm-workspace.yaml"]},{name:"bun",command:"bun",lockFile:["bun.lockb","bun.lock"]},{name:"yarn",command:"yarn",lockFile:"yarn.lock",files:[".yarnrc.yml"]},{name:"deno",command:"deno",lockFile:"deno.lock",files:["deno.json"]}];async function ae(t,e={}){let r=await Xe(m(t||"."),async n=>{if(!e.ignorePackageJSON){let s=D(n,"package.json");if(g(s)){let i=JSON.parse(await X(s,"utf8"));if(i?.packageManager){let{name:a,version:c="0.0.0",buildMeta:d,warnings:l}=Ze(i.packageManager);if(a){let f=c.split(".")[0],h=w.find(p=>p.name===a&&p.majorVersion===f)||w.find(p=>p.name===a);return{name:a,command:a,version:c,majorVersion:f,buildMeta:d,warnings:l,files:h?.files,lockFile:h?.lockFile}}}let o=Qe(i?.devEngines);if(o.name){let{name:a,version:c,warnings:d}=o,l=c?.match(/\d+/)?.[0],f=w.find(h=>h.name===a&&h.majorVersion===l)||w.find(h=>h.name===a);return{name:a,command:a,version:c,majorVersion:l,warnings:d,files:f?.files,lockFile:f?.lockFile}}}if(g(D(n,"deno.json")))return w.find(i=>i.name==="deno")}if(!e.ignoreLockFile){for(let s of w)if([s.lockFile,s.files].flat().filter(Boolean).some(i=>g(m(n,i))))return{...s}}},{includeParentDirs:e.includeParentDirs??!0});if(!r&&!e.ignoreArgv){let n=process.argv[1];if(n){for(let s of w)if(RegExp(`[/\\\\]\\.?${s.command}`).test(n))return s}}return r}async function et(t={}){let e=await Ke(t),r=t.frozenLockFile?{npm:["ci"],yarn:["install","--immutable"],bun:["install","--frozen-lockfile"],pnpm:["install","--frozen-lockfile"],deno:["install","--frozen"],aube:["install","--frozen-lockfile"],nub:["install","--frozen-lockfile"]}[e.packageManager.name]:["install"];return t.ignoreWorkspace&&e.packageManager.name==="pnpm"&&r.push("--ignore-workspace"),e.dry||await Ye(e.packageManager.command,r,{cwd:e.cwd,silent:e.silent,corepack:e.corepack}),{exec:{command:e.packageManager.command,args:r}}}const tt=Object.defineProperty({__proto__:null,basename:se,dirname:ne,dist_exports:Ve,resolve:m},Symbol.toStringTag,{value:"Module"});async function rt(t,e,r={}){const n=e+".json",s=JSON.parse(await X(n,"utf8").catch(()=>"{}")),i=(await E(t,{method:"HEAD",headers:r.headers}).catch(()=>{}))?.headers.get("etag");if(s.etag===i&&g(e))return;typeof i=="string"&&(s.etag=i);const o=await E(t,{headers:r.headers});if(o.status>=400)throw new Error(`Failed to download ${t}: ${o.status} ${o.statusText}`);const a=V(e);await xe(_e)(o.body,a),await ve(n,JSON.stringify(s),"utf8")}const nt=/^(?<repo>[-\w.]+\/[-\w.]+)(?<subdir>[^#]+)?(?<ref>#[-\w./@]+)?/,st=/^(?<repo>[-\w.]+(?:\/[-\w.]+)+?)(?:::(?<subdir>[^#]*))?(?<ref>#[-\w./@]+)?$/;function A(t,e){const r=e?.expandRepo||t.includes("::"),n=t.match(r?st:nt)?.groups||{},s=r?n.subdir?"/"+n.subdir:"/":n.subdir||"/";return{repo:n.repo||"",subdir:s,ref:n.ref?n.ref.slice(1):"main"}}function b(...t){process.env.DEBUG&&console.debug("[giget]",...t)}async function E(t,e={}){e.headers?.["sec-fetch-mode"]&&(e.mode=e.headers["sec-fetch-mode"]);const r=await fetch(t,{...e,headers:ce(e.headers)}).catch(n=>{throw new Error(`Failed to download ${t}: ${n}`,{cause:n})});if(e.validateStatus&&r.status>=400)throw new Error(`Failed to fetch ${t}: ${r.status} ${r.statusText}`);return r}function it(){const t=process.env.XDG_CACHE_HOME?m(process.env.XDG_CACHE_HOME,"giget"):m(Ee(),".cache/giget");if(process.platform==="win32"){const e=m(Q(),"giget");if(!g(e)&&g(t))try{we(t,e)}catch{}return e}return t}function ce(t={}){const e={};for(const[r,n]of Object.entries(t))n&&(e[r.toLowerCase()]=n);return e}const ot=(t,e)=>{const r=at(t);return{name:r.name,version:r.subdir?`${r.version||"default"}-${r.subdir.replaceAll("/","-")}`:r.version,tar:({auth:n}={})=>ct(r,n??e.auth)}};function at(t,e={}){const r=e.cwd??process.cwd();let n=t.replace(/#.*$/,""),s;if(/^[./]/.test(t))n=m(r,n);else if(/^https?:\/\//.test(n)){const l=/^(https?:\/\/[^/]+)\/([\w.-]+\/[\w.-]+?)(?:\.git)?(?:\/(.+))?$/.exec(n);if(l){const[,f,h,p]=l;n=`${f}/${h}`,p&&(s=p)}}else if(n.includes("@")){const l=/^(.*?:[\w.-]+\/[\w.-]+?)(?:\.git)?(?:\/(.+))?$/.exec(n);if(l){const[,f,h]=l;n=f,h&&(s=h)}}else{const l={"github:":"https://github.com/","gh:":"https://github.com/","gitlab:":"https://gitlab.com/","bitbucket:":"https://bitbucket.org/","sourcehut:":"https://git.sr.ht/~"},f=/^(.+?:)/.exec(n)?.at(1);f&&l[f]?n=n.replace(f,l[f]):f||(n=`${(process.env.GIGET_GIT_HOST||"https://github.com/").replace(/\/$/,"")}/${n}`);const h=/^(https?:\/\/[^/]+\/~?[\w.-]+\/[\w.-]+?)(?:\.git)?(?:\/(.+))?$/.exec(n);if(h){const[,p,u]=h;n=p,u&&(s=u)}}const i=n.replace(/^https?:\/\//,"").replace(/^.+@/,"").replace(/(\.git)?(#.*)?$/,"").replace(/^\W+/,"").replaceAll(/[:/]/g,"-"),[o,a]=/#(.+)$/.exec(t)?.at(1)?.split(":")??[],c=o||void 0,d=a||s;return{uri:n,name:i,...c&&{version:c},...d&&{subdir:d}}}async function ct(t,e){const r=await be(j(Q(),"giget-git-"));if(e&&/[\r\n]/.test(e))throw new Error("Auth token must not contain newline characters");const n={...process.env,GIT_TERMINAL_PROMPT:"0"};e&&(n.GIT_CONFIG_COUNT="1",n.GIT_CONFIG_KEY_0="http.extraHeader",n.GIT_CONFIG_VALUE_0=`Authorization: Bearer ${e}`);const s={env:n,timeout:6e4},i=lt(),o=c=>H(c,s,i),a=c=>H(c,{...s,cwd:r},i);try{const c=["clone","--progress","--depth","1"];t.subdir&&c.push("--filter=blob:none","--sparse","--no-checkout"),t.version&&c.push("--branch",t.version),c.push("--",t.uri,r);try{i.update("Cloning..."),await o(c),i.update("Cloned.")}catch(u){if(!t.version)throw u;b("Shallow clone failed, falling back to full clone:",u),i.update("Shallow clone failed, cloning..."),await x(r,{recursive:!0,force:!0}),await O(r,{recursive:!0}),await a(["init"]),await a(["remote","add","origin",t.uri]),await a(["fetch","origin"]),await a(["checkout",t.version]),i.update("Fetched.")}t.subdir&&(i.update(`Sparse checkout ${t.subdir}...`),await a(["sparse-checkout","set",t.subdir]),await a(["checkout"])),i.update("Packing...");const d=t.subdir?j(r,t.subdir):r,{create:l}=await import("../packem_chunks/tar.js").then(u=>u.index_min_exports);i.done();const f=l({gzip:!0,cwd:d,filter:u=>!u.startsWith(".git/")&&u!==".git"&&!u.startsWith("./.git/")&&u!=="./.git"},["."]).pipe(new q);let h=!1;const p=()=>{h||(h=!0,x(r,{recursive:!0,force:!0}))};return f.on("end",p),f.on("error",p),f.on("close",p),f}catch(c){throw i.done(),await x(r,{recursive:!0,force:!0}),c}}const U=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"];function H(t,e,r){return new Promise((n,s)=>{const i=Y("git",t,{...e,stdio:["ignore","pipe","pipe"]});i.stdout.resume();let o="";i.stderr?.on("data",a=>{const c=a.toString();for(const d of c.split(/[\r\n]/)){const l=d.trim();l&&(o=l)}r&&r.update(o)}),i.on("close",a=>{a===0?n(o):s(new Error(`git ${t[0]} exited with code ${a}. Is git installed?`))}),i.on("error",a=>{a.code==="ENOENT"?s(new Error("git is not installed or not found in PATH")):s(a)})})}function lt(){if(!process.stderr.isTTY)return{update(s){},done(){}};let t="",e=0;const r=()=>{const s=U[e%U.length];e++,process.stderr.write(`\x1B[2K\r\x1B[2m${s} ${t}\x1B[0m`)},n=setInterval(r,80);return{update(s){t=s,r()},done(){clearInterval(n),process.stderr.write("\x1B[2K\r")}}}const N=async(t,e)=>{if(t.endsWith(".json"))return await L(t,e);const r=new URL(t);let n=se(r.pathname);try{const s=await E(r.href,{method:"HEAD",validateStatus:!0,headers:{authorization:e.auth?`Bearer ${e.auth}`:void 0}});if((s.headers.get("content-type")||"").includes("application/json"))return await L(t,e);const i=s.headers.get("content-disposition")?.match(/filename="?(.+)"?/)?.[1];i&&(n=i.split(".")[0])}catch(s){b(`Failed to fetch HEAD for ${r.href}:`,s)}return{name:`${n}-${r.href.slice(0,8)}`,version:"",subdir:"",tar:r.href,defaultDir:n,headers:{Authorization:e.auth?`Bearer ${e.auth}`:void 0}}},L=async(t,e)=>{const r=await(await E(t,{validateStatus:!0,headers:{authorization:e.auth?`Bearer ${e.auth}`:void 0}})).json();if(!r.tar||!r.name)throw new Error(`Invalid template info from ${t}. name or tar fields are missing!`);return r},W=(t,e)=>{const r=A(t),n=process.env.GIGET_GITHUB_URL||"https://api.github.com";return{name:r.repo.replace("/","-"),version:r.ref,subdir:r.subdir,headers:{Authorization:e.auth?`Bearer ${e.auth}`:void 0,Accept:"application/vnd.github+json","X-GitHub-Api-Version":"2022-11-28"},url:`${n.replace("api.github.com","github.com")}/${r.repo}/tree/${r.ref}${r.subdir}`,tar:`${n}/repos/${r.repo}/tarball/${r.ref}`}},ut=(t,e)=>{const r=A(t,{expandRepo:!0}),n=process.env.GIGET_GITLAB_URL||"https://gitlab.com";return{name:r.repo.replace("/","-"),version:r.ref,subdir:r.subdir,headers:{authorization:e.auth?`Bearer ${e.auth}`:void 0,"sec-fetch-mode":"same-origin"},url:`${n}/${r.repo}/tree/${r.ref}${r.subdir}`,tar:`${n}/${r.repo}/-/archive/${r.ref}.tar.gz`}},dt=(t,e)=>{const r=A(t);return{name:r.repo.replace("/","-"),version:r.ref,subdir:r.subdir,headers:{authorization:e.auth?`Bearer ${e.auth}`:void 0},url:`https://bitbucket.com/${r.repo}/src/${r.ref}${r.subdir}`,tar:`https://bitbucket.org/${r.repo}/get/${r.ref}.tar.gz`}},ht=(t,e)=>{const r=A(t);return{name:r.repo.replace("/","-"),version:r.ref,subdir:r.subdir,headers:{authorization:e.auth?`Bearer ${e.auth}`:void 0},url:`https://git.sr.ht/~${r.repo}/tree/${r.ref}/item${r.subdir}`,tar:`https://git.sr.ht/~${r.repo}/archive/${r.ref}.tar.gz`}},ft={http:N,https:N,git:ot,github:W,gh:W,gitlab:ut,bitbucket:dt,sourcehut:ht},pt="https://raw.githubusercontent.com/unjs/giget/main/templates",mt=(t=pt,e={})=>(async r=>{const n=Date.now(),s=`${t}/${r}.json`,i=await E(s,{headers:{authorization:e.auth?`Bearer ${e.auth}`:void 0}});if(i.status>=400)throw new Error(`Failed to download ${r} template info from ${s}: ${i.status} ${i.statusText}`);const o=await i.json();if(!o.tar||!o.name)throw new Error(`Invalid template info from ${s}. name or tar fields are missing!`);return b(`Fetched ${r} template info from ${s} in ${Date.now()-n}ms`),o}),gt=/^([\w+-.]+):/;function wt(t){if(!t)return;if(typeof t=="function")return t;const e=globalThis.process.getBuiltinModule?.("node:path")?.matchesGlob;if(typeof e!="function")throw new TypeError("Ignore patterns require `path.matchesGlob` which is supported in Node.js v22.5.0, v20.17.0 or later.");return r=>t.some(n=>e(r,n))}async function bt(t,e={}){const r=wt(e.ignore);e.registry=process.env.GIGET_REGISTRY??e.registry,e.auth=process.env.GIGET_AUTH??e.auth;const n=e.registry===!1?void 0:mt(e.registry,{auth:e.auth});let s=e.provider||(n?"registry":"github"),i=t;const o=t.match(gt);o&&(s=o[1],i=t.slice(o[0].length),(s==="http"||s==="https")&&(i=t)),s.endsWith("+git")&&(i=`${s.slice(0,-4)}:${i}`,s="git");const a=e.providers?.[s]||ft[s]||n;if(!a)throw new Error(`Unsupported provider: ${s}`);const c=await Promise.resolve().then(()=>a(i,{auth:e.auth})).catch(u=>{throw new Error(`Failed to download template from ${s}: ${u.message}`)});if(!c)throw new Error(`Failed to resolve template from ${s}`);c.name=(c.name||"template").replace(/[^\da-z-]/gi,"-"),c.defaultDir=(c.defaultDir||c.name).replace(/[^\da-z-]/gi,"-");const d=m(m(it(),s,c.name),(c.version||c.name)+".tar.gz");if(e.preferOffline&&g(d)&&(e.offline=!0),!e.offline){await O(ne(d),{recursive:!0});const u=Date.now();if(typeof c.tar=="function"){const _=c.tar;await(async()=>{const $=await _({auth:e.auth});await J($ instanceof I?$:I.fromWeb($),V(d))})().catch($=>{if(!g(d))throw $;b("Download error. Using cached version:",$),e.offline=!0})}else await rt(c.tar,d,{headers:{Authorization:e.auth?`Bearer ${e.auth}`:void 0,...ce(c.headers)}}).catch(_=>{if(!g(d))throw _;b("Download error. Using cached version:",_),e.offline=!0});b(`Downloaded to ${d} in ${Date.now()-u}ms`)}if(!g(d))throw new Error(`Tarball not found: ${d} (offline: ${e.offline})`);const l=m(m(e.cwd||"."),e.dir||c.defaultDir);if(e.forceClean&&await x(l,{recursive:!0,force:!0}),!e.force&&g(l)&&ge(l).length>0)throw new Error(`Destination ${l} already exists.`);await O(l,{recursive:!0});const f=Date.now(),h=c.subdir?.replace(/^\//,"")||"",{extract:p}=await import("../packem_chunks/tar.js").then(u=>u.index_min_exports);if(await p({file:d,cwd:l,onReadEntry(u){u.path=u.path.split("/").splice(1).join("/"),h&&(u.path.startsWith(h+"/")?u.path=u.path.slice(h.length):u.path=""),r&&u.path&&r(u.path.replace(/^\//,""))&&(u.path="")}}),b(`Extracted to ${l} in ${Date.now()-f}ms`),e.install){b("Installing dependencies...");const{installDependencies:u}=await Promise.resolve().then(()=>tt).then(_=>_.dist_exports);await u({cwd:l,silent:e.silent,...typeof e.install=="object"?e.install:{}})}return{...c,source:i,dir:l}}export{Te as _,bt as d};
|