@unbrained/pm-cli 2026.12.1 → 2026.12.3
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/.claude-plugin/marketplace.json +1 -1
- package/dist/cli/commander-usage.js +4 -4
- package/dist/cli/expected-revisions.js +1 -1
- package/dist/cli/extension-command-help.js +4 -4
- package/dist/cli/main.js +5 -5
- package/dist/cli/runtime/invocation-rewrites.js +1 -1
- package/dist/cli/runtime-field-commands.js +2 -0
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-3ESBFEQC.js +2 -0
- package/dist/cli-bundle/chunks/chunk-46AZP5QW.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-OBPO6V7H.js → chunk-5WTBF4M4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3KEMIPKG.js → chunk-6TOZQ5BQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4YYFY33T.js → chunk-AHVOEE7F.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-CQHB3ZZH.js +2 -0
- package/dist/cli-bundle/chunks/chunk-DZPOS3YT.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-OKEJ4U2I.js → chunk-E5ADC3HT.js} +65 -65
- package/dist/cli-bundle/chunks/{chunk-SY5C3U32.js → chunk-E5HO7HWP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3HKPVOAN.js → chunk-EDJ3KR2H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XME6GIFQ.js → chunk-FWQNWPIV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CWPR234D.js → chunk-H4U3LEOD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MZZ4ZJ5Z.js → chunk-HNMED75Y.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-U7RBJGLF.js → chunk-HPCMM74Q.js} +22 -22
- package/dist/cli-bundle/chunks/{chunk-WSEIEDEK.js → chunk-ITM4AMVM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q6K7HWZ7.js → chunk-IW4A3I4N.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4YQMQOUO.js → chunk-JJ73G5UT.js} +52 -52
- package/dist/cli-bundle/chunks/chunk-L4HMFRHB.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-YSVOXCYH.js → chunk-LTQWPQ7H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q6GLSAJY.js → chunk-MRT3ADO4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZL6J6JYT.js → chunk-PBMLIV74.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NA6D75V5.js → chunk-PJMGWJKU.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-Q2HMDV56.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-OXC5KBIQ.js → chunk-RRBNCL63.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CBUC4X7Q.js → chunk-TDOF7BKO.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-UXEZXGAD.js +113 -0
- package/dist/cli-bundle/chunks/{chunk-PCDTWL6V.js → chunk-W7HA65EO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-I4SPJQQI.js → chunk-XGNUDSCG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-AHV3CSQG.js → chunk-XKJ5NWQ7.js} +2 -2
- package/dist/cli-bundle/chunks/{field-option-collisions-BBGTV7AD.js → field-option-collisions-DXKTKW6J.js} +2 -2
- package/dist/cli-bundle/chunks/item-revision-DXEF4XBU.js +2 -0
- package/dist/cli-bundle/chunks/item-transaction-EANA7V4W.js +2 -0
- package/dist/cli-bundle/chunks/{linked-resource-value-list-E2DX52LY.js → linked-resource-value-list-5JRGUDUB.js} +2 -2
- package/dist/cli-bundle/chunks/{mutation-actor-NHN33ITJ.js → mutation-actor-S5G7FMNG.js} +2 -2
- package/dist/cli-bundle/chunks/{mutation-admission-PGKJTCG6.js → mutation-admission-HQVNPOXV.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-7S5QWDTI.js → register-list-query-SQF5PSJ4.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-2F6JUBST.js → register-mutation-4AQ4CEBL.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-ET3UKPYK.js → register-operations-76P7OM4P.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-I63QTFCU.js → register-setup-T6OEOZK3.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-4ZCF74G4.js → stage-KUICZHSF.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-4SCFAWAW.js → chunk-3LHBKFPD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-4DDXERKN.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-JPZGC3W4.js → chunk-4YU75CWI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TXTPAFHJ.js → chunk-5JQVPQMN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KNBGHCIP.js → chunk-5Z4DXYBZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-7DOP5HEZ.js +44 -0
- package/dist/cli-bundle/focused-chunks/{chunk-TR22GU7M.js → chunk-AX4RBJ7B.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-7A6SEZEY.js → chunk-BEHQCHQV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-BUIF6CMZ.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-E2IWEJL5.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-GBU7GKNJ.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-EQCQTYKO.js → chunk-K35KTBDZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-VQIC3UZB.js → chunk-KNST4PGF.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-P2H3GTJK.js → chunk-L2XJB5PK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-L6NOGC4N.js +100 -0
- package/dist/cli-bundle/focused-chunks/{chunk-VK3IE3TS.js → chunk-LWIIDPAV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6IY5CVGJ.js → chunk-M54BMYG4.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6BKT6XQN.js → chunk-NEK7RX3N.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-BHNBPCHP.js → chunk-OKGWIW6C.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-2DGKVXFT.js → chunk-RFDSSOTZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-SSX5YBDC.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-OG57ESZK.js → chunk-TIEQVIFN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SQ72CVUH.js → chunk-VEUBDQDP.js} +54 -54
- package/dist/cli-bundle/focused-chunks/{chunk-2UWKU2BQ.js → chunk-WDHNPNHX.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{field-option-collisions-2C6DLUC4.js → field-option-collisions-32X7FP3H.js} +2 -2
- package/dist/cli-bundle/focused-chunks/item-revision-GUYSVVQD.js +2 -0
- package/dist/cli-bundle/focused-chunks/{item-transaction-2K4SFLJ7.js → item-transaction-MLKHZPL7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-actor-DJMZUIZI.js → mutation-actor-RDZJTRW2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-SDWQVVHN.js → mutation-admission-IQB6XL75.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-QBZIK3T5.js → stage-AA7LORZ2.js} +2 -2
- package/dist/cli-bundle/main.js +27 -27
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +63 -63
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +9 -9
- package/dist/core/extensions/loader.d.ts +8 -0
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/item/actionability.js +1 -1
- package/dist/core/output/output.js +16 -16
- package/dist/mcp/server.js +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +25 -1
- package/dist/sdk/cli-contracts/enum-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/context-intent-contracts.js +1 -1
- package/dist/sdk/extension/install-sources.d.ts +2 -2
- package/dist/sdk/extension/install-sources.js +5 -5
- package/dist/sdk/lifecycle/expect-hash-admission.d.ts +27 -8
- package/dist/sdk/lifecycle/expect-hash-admission.js +1 -1
- package/dist/sdk/lifecycle/item-revision.d.ts +12 -4
- package/dist/sdk/lifecycle/item-revision.js +1 -1
- package/dist/sdk/output-projection.d.ts +1 -1
- package/dist/sdk/output-projection.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/read-output/surfaces.js +1 -1
- package/dist/sdk/runtime/schema.js +1 -1
- package/dist/sdk/runtime-input.d.ts +6 -0
- package/dist/sdk/runtime-input.js +1 -1
- package/dist/sdk/runtime-primitives.d.ts +1 -1
- package/dist/sdk/runtime-primitives.js +1 -1
- package/dist/sdk/runtime.js +1 -1
- package/docs/COMMANDS.md +23 -5
- package/docs/EXTENSIONS.md +1 -1
- package/docs/SDK.md +15 -2
- package/marketplace.json +1 -1
- package/node_modules/tar/README.md +1792 -1147
- package/node_modules/tar/dist/commonjs/bytes.d.ts +21 -0
- package/node_modules/tar/dist/commonjs/bytes.js +83 -0
- package/node_modules/tar/dist/commonjs/codec.d.ts +53 -0
- package/node_modules/tar/dist/commonjs/codec.js +35 -0
- package/node_modules/tar/dist/commonjs/concat.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/concat.js +20 -0
- package/node_modules/tar/dist/commonjs/create.d.ts +39 -2
- package/node_modules/tar/dist/commonjs/create.js +150 -64
- package/node_modules/tar/dist/commonjs/dealias.d.ts +79 -0
- package/node_modules/tar/dist/commonjs/dealias.js +50 -0
- package/node_modules/tar/dist/commonjs/delete.d.ts +19 -0
- package/node_modules/tar/dist/commonjs/delete.js +121 -0
- package/node_modules/tar/dist/commonjs/entries.d.ts +82 -0
- package/node_modules/tar/dist/commonjs/entries.js +398 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +14 -2
- package/node_modules/tar/dist/commonjs/extract.js +40 -81
- package/node_modules/tar/dist/commonjs/fs.d.ts +201 -0
- package/node_modules/tar/dist/commonjs/fs.js +5 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +4 -4
- package/node_modules/tar/dist/commonjs/header.js +71 -53
- package/node_modules/tar/dist/commonjs/index.d.ts +25 -18
- package/node_modules/tar/dist/commonjs/index.js +46 -18
- package/node_modules/tar/dist/commonjs/index.min.js +2 -3
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +2 -2
- package/node_modules/tar/dist/commonjs/large-numbers.js +4 -4
- package/node_modules/tar/dist/commonjs/list.d.ts +23 -6
- package/node_modules/tar/dist/commonjs/list.js +99 -138
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +16 -11
- package/node_modules/tar/dist/commonjs/mkdir.js +121 -159
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +9 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +284 -513
- package/node_modules/tar/dist/commonjs/options.js +20 -61
- package/node_modules/tar/dist/commonjs/pack.d.ts +150 -96
- package/node_modules/tar/dist/commonjs/pack.js +752 -445
- package/node_modules/tar/dist/commonjs/parser.d.ts +98 -0
- package/node_modules/tar/dist/commonjs/parser.js +452 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +17 -7
- package/node_modules/tar/dist/commonjs/path-reservations.js +110 -140
- package/node_modules/tar/dist/commonjs/path.d.ts +19 -0
- package/node_modules/tar/dist/commonjs/path.js +90 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +3 -1
- package/node_modules/tar/dist/commonjs/pax.js +67 -36
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +97 -11
- package/node_modules/tar/dist/commonjs/read-entry.js +251 -97
- package/node_modules/tar/dist/commonjs/read-file.d.ts +22 -0
- package/node_modules/tar/dist/commonjs/read-file.js +104 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +45 -1
- package/node_modules/tar/dist/commonjs/replace.js +164 -211
- package/node_modules/tar/dist/commonjs/server/codecs.d.ts +38 -0
- package/node_modules/tar/dist/commonjs/server/codecs.js +252 -0
- package/node_modules/tar/dist/commonjs/server/index.d.ts +115 -0
- package/node_modules/tar/dist/commonjs/server/index.js +166 -0
- package/node_modules/tar/dist/commonjs/server/index.min.js +3 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +17 -20
- package/node_modules/tar/dist/commonjs/to-stream.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/to-stream.js +22 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +4 -3
- package/node_modules/tar/dist/commonjs/types.js +4 -3
- package/node_modules/tar/dist/commonjs/unpack.d.ts +143 -89
- package/node_modules/tar/dist/commonjs/unpack.js +780 -725
- package/node_modules/tar/dist/commonjs/update.d.ts +11 -1
- package/node_modules/tar/dist/commonjs/update.js +37 -28
- package/node_modules/tar/dist/commonjs/warn.d.ts +27 -0
- package/node_modules/tar/dist/commonjs/warn.js +36 -0
- package/node_modules/tar/dist/commonjs/win32-path.d.ts +16 -0
- package/node_modules/tar/dist/commonjs/win32-path.js +67 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +64 -111
- package/node_modules/tar/dist/commonjs/write-entry.js +108 -672
- package/node_modules/tar/dist/commonjs/write-flag.d.ts +18 -0
- package/node_modules/tar/dist/commonjs/write-flag.js +29 -0
- package/node_modules/tar/dist/esm/bytes.d.ts +21 -0
- package/node_modules/tar/dist/esm/bytes.js +72 -0
- package/node_modules/tar/dist/esm/codec.d.ts +53 -0
- package/node_modules/tar/dist/esm/codec.js +32 -0
- package/node_modules/tar/dist/esm/concat.d.ts +3 -0
- package/node_modules/tar/dist/esm/concat.js +16 -0
- package/node_modules/tar/dist/esm/create.d.ts +39 -2
- package/node_modules/tar/dist/esm/create.js +144 -61
- package/node_modules/tar/dist/esm/dealias.d.ts +79 -0
- package/node_modules/tar/dist/esm/dealias.js +46 -0
- package/node_modules/tar/dist/esm/delete.d.ts +19 -0
- package/node_modules/tar/dist/esm/delete.js +117 -0
- package/node_modules/tar/dist/esm/entries.d.ts +82 -0
- package/node_modules/tar/dist/esm/entries.js +388 -0
- package/node_modules/tar/dist/esm/extract.d.ts +14 -2
- package/node_modules/tar/dist/esm/extract.js +37 -44
- package/node_modules/tar/dist/esm/fs.d.ts +201 -0
- package/node_modules/tar/dist/esm/fs.js +4 -0
- package/node_modules/tar/dist/esm/header.d.ts +4 -4
- package/node_modules/tar/dist/esm/header.js +71 -53
- package/node_modules/tar/dist/esm/index.d.ts +25 -18
- package/node_modules/tar/dist/esm/index.js +23 -18
- package/node_modules/tar/dist/esm/index.min.js +2 -3
- package/node_modules/tar/dist/esm/large-numbers.d.ts +2 -2
- package/node_modules/tar/dist/esm/large-numbers.js +4 -4
- package/node_modules/tar/dist/esm/list.d.ts +23 -6
- package/node_modules/tar/dist/esm/list.js +96 -101
- package/node_modules/tar/dist/esm/mkdir.d.ts +16 -11
- package/node_modules/tar/dist/esm/mkdir.js +119 -154
- package/node_modules/tar/dist/esm/normalize-unicode.js +9 -0
- package/node_modules/tar/dist/esm/options.d.ts +284 -513
- package/node_modules/tar/dist/esm/options.js +17 -51
- package/node_modules/tar/dist/esm/pack.d.ts +150 -96
- package/node_modules/tar/dist/esm/pack.js +750 -441
- package/node_modules/tar/dist/esm/parser.d.ts +98 -0
- package/node_modules/tar/dist/esm/parser.js +448 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +17 -7
- package/node_modules/tar/dist/esm/path-reservations.js +110 -140
- package/node_modules/tar/dist/esm/path.d.ts +19 -0
- package/node_modules/tar/dist/esm/path.js +80 -0
- package/node_modules/tar/dist/esm/pax.d.ts +3 -1
- package/node_modules/tar/dist/esm/pax.js +66 -35
- package/node_modules/tar/dist/esm/read-entry.d.ts +97 -11
- package/node_modules/tar/dist/esm/read-entry.js +248 -96
- package/node_modules/tar/dist/esm/read-file.d.ts +22 -0
- package/node_modules/tar/dist/esm/read-file.js +99 -0
- package/node_modules/tar/dist/esm/replace.d.ts +45 -1
- package/node_modules/tar/dist/esm/replace.js +160 -207
- package/node_modules/tar/dist/esm/server/codecs.d.ts +38 -0
- package/node_modules/tar/dist/esm/server/codecs.js +214 -0
- package/node_modules/tar/dist/esm/server/index.d.ts +115 -0
- package/node_modules/tar/dist/esm/server/index.js +102 -0
- package/node_modules/tar/dist/esm/server/index.min.js +3 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +8 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +17 -20
- package/node_modules/tar/dist/esm/to-stream.d.ts +7 -0
- package/node_modules/tar/dist/esm/to-stream.js +18 -0
- package/node_modules/tar/dist/esm/types.d.ts +4 -3
- package/node_modules/tar/dist/esm/types.js +4 -3
- package/node_modules/tar/dist/esm/unpack.d.ts +143 -89
- package/node_modules/tar/dist/esm/unpack.js +776 -719
- package/node_modules/tar/dist/esm/update.d.ts +11 -1
- package/node_modules/tar/dist/esm/update.js +35 -28
- package/node_modules/tar/dist/esm/warn.d.ts +27 -0
- package/node_modules/tar/dist/esm/warn.js +31 -0
- package/node_modules/tar/dist/esm/win32-path.d.ts +16 -0
- package/node_modules/tar/dist/esm/win32-path.js +60 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +64 -111
- package/node_modules/tar/dist/esm/write-entry.js +107 -633
- package/node_modules/tar/dist/esm/write-flag.d.ts +18 -0
- package/node_modules/tar/dist/esm/write-flag.js +25 -0
- package/node_modules/tar/package.json +68 -224
- package/package.json +2 -2
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-A5ZEMOVR.js +0 -2
- package/dist/cli-bundle/chunks/chunk-AJLU6KLW.js +0 -2
- package/dist/cli-bundle/chunks/chunk-C6WM6ZN4.js +0 -9
- package/dist/cli-bundle/chunks/chunk-HZZLSBIJ.js +0 -2
- package/dist/cli-bundle/chunks/chunk-L2ZSSMYY.js +0 -2
- package/dist/cli-bundle/chunks/chunk-NRQCBUYD.js +0 -113
- package/dist/cli-bundle/chunks/chunk-QDV7S2QS.js +0 -2
- package/dist/cli-bundle/chunks/item-revision-3LENTXYF.js +0 -2
- package/dist/cli-bundle/chunks/item-transaction-66RDV7PH.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-HTDYNY4L.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-N64AC5G6.js +0 -100
- package/dist/cli-bundle/focused-chunks/chunk-PT7RT3T6.js +0 -44
- package/dist/cli-bundle/focused-chunks/chunk-QZRYGYTI.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-SQMOF65W.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-T3ILWAEV.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-W4JMV7GF.js +0 -3
- package/dist/cli-bundle/focused-chunks/item-revision-723XCQPS.js +0 -2
- package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
- package/node_modules/@isaacs/fs-minipass/README.md +0 -71
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
- package/node_modules/@isaacs/fs-minipass/package.json +0 -72
- package/node_modules/chownr/LICENSE.md +0 -63
- package/node_modules/chownr/README.md +0 -3
- package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
- package/node_modules/chownr/dist/commonjs/index.js +0 -93
- package/node_modules/chownr/dist/commonjs/package.json +0 -3
- package/node_modules/chownr/dist/esm/index.d.ts +0 -3
- package/node_modules/chownr/dist/esm/index.js +0 -85
- package/node_modules/chownr/dist/esm/package.json +0 -3
- package/node_modules/chownr/package.json +0 -69
- package/node_modules/minipass/LICENSE.md +0 -55
- package/node_modules/minipass/README.md +0 -825
- package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
- package/node_modules/minipass/dist/commonjs/index.js +0 -1038
- package/node_modules/minipass/dist/commonjs/package.json +0 -3
- package/node_modules/minipass/dist/esm/index.d.ts +0 -545
- package/node_modules/minipass/dist/esm/index.js +0 -1020
- package/node_modules/minipass/dist/esm/package.json +0 -3
- package/node_modules/minipass/package.json +0 -77
- package/node_modules/minizlib/LICENSE +0 -26
- package/node_modules/minizlib/README.md +0 -64
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
- package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
- package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
- package/node_modules/minizlib/dist/commonjs/index.js +0 -416
- package/node_modules/minizlib/dist/commonjs/package.json +0 -3
- package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
- package/node_modules/minizlib/dist/esm/constants.js +0 -117
- package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
- package/node_modules/minizlib/dist/esm/index.js +0 -363
- package/node_modules/minizlib/dist/esm/package.json +0 -3
- package/node_modules/minizlib/package.json +0 -80
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
- package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
- package/node_modules/tar/dist/commonjs/make-command.js +0 -52
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
- package/node_modules/tar/dist/commonjs/parse.d.ts +0 -92
- package/node_modules/tar/dist/commonjs/parse.js +0 -655
- package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
- package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
- package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
- package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
- package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
- package/node_modules/tar/dist/esm/make-command.js +0 -48
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
- package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
- package/node_modules/tar/dist/esm/parse.d.ts +0 -92
- package/node_modules/tar/dist/esm/parse.js +0 -651
- package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
- package/node_modules/tar/dist/esm/process-umask.js +0 -3
- package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
- package/node_modules/tar/dist/esm/warn-method.js +0 -27
- package/node_modules/yallist/LICENSE.md +0 -63
- package/node_modules/yallist/README.md +0 -205
- package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
- package/node_modules/yallist/dist/commonjs/index.js +0 -384
- package/node_modules/yallist/dist/commonjs/package.json +0 -3
- package/node_modules/yallist/dist/esm/index.d.ts +0 -39
- package/node_modules/yallist/dist/esm/index.js +0 -379
- package/node_modules/yallist/dist/esm/package.json +0 -3
- package/node_modules/yallist/package.json +0 -68
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";var w=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var W=w(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.writeAscii=v.encodeUtf8Into=v.decodeUtf8=v.utf8Length=v.isReadableStream=v.isBlob=v.isArrayBuffer=v.isUint8Array=void 0;var Wn=i=>ArrayBuffer.isView(i)&&i[Symbol.toStringTag]==="Uint8Array";v.isUint8Array=Wn;var Gn=i=>Object.prototype.toString.call(i)==="[object ArrayBuffer]";v.isArrayBuffer=Gn;var Yn=i=>typeof i?.size=="number"&&typeof i.stream=="function";v.isBlob=Yn;var Kn=i=>typeof i?.getReader=="function";v.isReadableStream=Kn;var Vn=new TextDecoder("utf-8",{ignoreBOM:!0}),Xn=new TextEncoder,Jn=i=>{let e=i.length;for(let t=0;t<i.length;t++){let n=i.charCodeAt(t);n<128||(n<2048?e+=1:n>=55296&&n<=56319&&(i.charCodeAt(t+1)&64512)===56320?(e+=2,t++):e+=2)}return e};v.utf8Length=Jn;var Zn=(i,e=0,t=i.length)=>{let n="";for(let r=e;r<t;r++){let s=i[r];if(s>=128)return Vn.decode(i.subarray(e,t));n+=String.fromCharCode(s)}return n};v.decodeUtf8=Zn;var Qn=(i,e,t,n)=>{let{written:r}=Xn.encodeInto(i,e.subarray(t,t+n));e.fill(0,t+r,t+n)};v.encodeUtf8Into=Qn;var er=(i,e,t)=>{for(let n=0;n<i.length;n++)e[t+n]=i.charCodeAt(n)};v.writeAscii=er});var di=w(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.parse=ie.encode=void 0;var tr=(i,e)=>{if(Number.isSafeInteger(i))i<0?nr(i,e):ir(i,e);else throw Error("cannot encode number outside of javascript safe integer range");return e};ie.encode=tr;var ir=(i,e)=>{e[0]=128;for(var t=e.length;t>1;t--)e[t-1]=i&255,i=Math.floor(i/256)},nr=(i,e)=>{e[0]=255;var t=!1;i=i*-1;for(var n=e.length;n>1;n--){var r=i&255;i=Math.floor(i/256),t?e[n-1]=li(r):r===0?e[n-1]=0:(t=!0,e[n-1]=hi(r))}},rr=i=>{let e=i[0],t=e===128?or(i.subarray(1,i.length)):e===255?sr(i):null;if(t===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(t))throw Error("parsed number outside of javascript safe integer range");return t};ie.parse=rr;var sr=i=>{for(var e=i.length,t=0,n=!1,r=e-1;r>-1;r--){var s=Number(i[r]),o;n?o=li(s):s===0?o=s:(n=!0,o=hi(s)),o!==0&&(t-=o*Math.pow(256,e-r-1))}return t},or=i=>{for(var e=i.length,t=0,n=e-1;n>-1;n--){var r=Number(i[n]);r!==0&&(t+=r*Math.pow(256,e-n-1))}return t},li=i=>(255^i)&255,hi=i=>(255^i)+1&255});var D=w(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.relative=g.resolve=g.isAbsolute=g.basename=g.dirname=g.join=g.normalize=void 0;var ar=i=>{let e=i.charCodeAt(0)===47,t=[];for(let s of i.split("/"))s===""||s==="."||(s!==".."?t.push(s):t.length&&t[t.length-1]!==".."?t.pop():e||t.push(s));let n=t.length&&i.charCodeAt(i.length-1)===47,r=t.join("/")+(n?"/":"");return e?"/"+r:r||(i.endsWith("/")?"./":".")};g.normalize=ar;var cr=(...i)=>(0,g.normalize)(i.filter(e=>e).join("/"));g.join=cr;var lr=i=>{let e=i.length;for(;e>1&&i.charCodeAt(e-1)===47;)e--;let t=i.lastIndexOf("/",e-1);return t===-1?".":t===0?"/":t===1&&i.charCodeAt(0)===47?"//":i.slice(0,t)};g.dirname=lr;var hr=i=>{let e=i.length;for(;e>0&&i.charCodeAt(e-1)===47;)e--;return i.slice(i.lastIndexOf("/",e-1)+1,e)};g.basename=hr;var dr=i=>i.charCodeAt(0)===47;g.isAbsolute=dr;var ur=(...i)=>{let e="";for(let n=i.length-1;n>=0&&!(0,g.isAbsolute)(e);n--){let r=i[n];r&&(e=e?r+"/"+e:r)}let t=(0,g.normalize)(e);return t.length>1&&t.endsWith("/")?t.slice(0,-1):t};g.resolve=ur;var fr=(i,e)=>{let t=(0,g.resolve)(i).split("/"),n=(0,g.resolve)(e).split("/");t[t.length-1]||t.pop(),n[n.length-1]||n.pop();let r=0;for(;r<t.length&&r<n.length&&t[r]===n[r];)r++;return[...Array.from({length:t.length-r},()=>".."),...n.slice(r)].join("/")};g.relative=fr});var gt=w(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.code=O.name=O.normalFsTypes=O.isName=O.isCode=void 0;var pr=i=>O.name.has(i);O.isCode=pr;var mr=i=>O.code.has(i);O.isName=mr;O.normalFsTypes=new Set(["0","","1","2","3","4","5","6","7","D"]);O.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);O.code=new Map(Array.from(O.name).map(i=>[i[1],i[0]]))});var ne=w(q=>{"use strict";var yr=q&&q.__createBinding||(Object.create?(function(i,e,t,n){n===void 0&&(n=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,n,r)}):(function(i,e,t,n){n===void 0&&(n=t),i[n]=e[t]})),wr=q&&q.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),ui=q&&q.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=i(e),r=0;r<n.length;r++)n[r]!=="default"&&yr(t,e,n[r]);return wr(t,e),t}})();Object.defineProperty(q,"__esModule",{value:!0});q.Header=void 0;var A=W(),fi=ui(di()),we=D(),_e=ui(gt()),_r=i=>i===void 0||i<0?void 0:i,St=class{cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#e="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(e,t=0,n,r){(0,A.isUint8Array)(e)?this.decode(e,t||0,n,r):e&&this.#t(e)}decode(e,t,n,r){if(t||(t=0),!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");let s=C(e,t+156,1),o=/^[xgXLK]$/.test(s),a=o?void 0:n,c=o?void 0:r;if(this.path=a?.path??C(e,t,100),this.mode=a?.mode??c?.mode??N(e,t+100,8),this.uid=a?.uid??c?.uid??N(e,t+108,8),this.gid=a?.gid??c?.gid??N(e,t+116,8),this.size=_r(a?.size??Sr(e,t+124)),this.mtime=a?.mtime??c?.mtime??bt(e,t+136,12),this.cksum=N(e,t+148,12),c&&this.#t(c,!0),a&&this.#t(a),_e.isCode(s)&&(this.#e=s||"0"),this.#e==="0"&&this.path.slice(-1)==="/"&&(this.#e="5"),this.#e==="5"&&(this.size=0),this.linkpath=C(e,t+157,100),(0,A.decodeUtf8)(e,t+257,t+265)==="ustar\x0000")if(this.uname=a?.uname??c?.uname??C(e,t+265,32),this.gname=a?.gname??c?.gname??C(e,t+297,32),this.devmaj=a?.devmaj??c?.devmaj??N(e,t+329,8)??0,this.devmin=a?.devmin??c?.devmin??N(e,t+337,8)??0,e[t+475]!==0){let h=C(e,t+345,155);this.path=h+"/"+this.path}else{let h=C(e,t+345,130);h&&(this.path=h+"/"+this.path),this.atime=n?.atime??r?.atime??bt(e,t+476,12),this.ctime=n?.ctime??r?.ctime??bt(e,t+488,12)}let l=256;for(let h=t;h<t+148;h++)l+=e[h];for(let h=t+156;h<t+512;h++)l+=e[h];this.cksumValid=l===this.cksum,this.cksum===void 0&&l===256&&(this.nullBlock=!0)}#t(e,t=!1){Object.assign(this,Object.fromEntries(Object.entries(e).filter(([n,r])=>!(r==null||n==="size"&&(t||Number(r)<0)||n==="path"&&t||n==="linkpath"&&t||n==="global"))))}encode(e,t=0){if(e||(e=this.block=new Uint8Array(512)),this.#e==="Unsupported"&&(this.#e="0"),!(e.length>=t+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,r=gr(this.path||"",n),s=r[0],o=r[1];this.needPax=!!r[2],this.needPax=G(e,t,100,s)||this.needPax,this.needPax=L(e,t+100,8,this.mode)||this.needPax,this.needPax=L(e,t+108,8,this.uid)||this.needPax,this.needPax=L(e,t+116,8,this.gid)||this.needPax,this.needPax=L(e,t+124,12,this.size)||this.needPax,this.needPax=vt(e,t+136,12,this.mtime)||this.needPax,e[t+156]=Number(this.#e.codePointAt(0)),this.needPax=G(e,t+157,100,this.linkpath)||this.needPax,(0,A.writeAscii)("ustar\x0000",e,t+257),this.needPax=G(e,t+265,32,this.uname)||this.needPax,this.needPax=G(e,t+297,32,this.gname)||this.needPax,this.needPax=L(e,t+329,8,this.devmaj)||this.needPax,this.needPax=L(e,t+337,8,this.devmin)||this.needPax,this.needPax=G(e,t+345,n,o)||this.needPax,e[t+475]!==0?this.needPax=G(e,t+345,155,o)||this.needPax:(this.needPax=G(e,t+345,130,o)||this.needPax,this.needPax=vt(e,t+476,12,this.atime)||this.needPax,this.needPax=vt(e,t+488,12,this.ctime)||this.needPax);let a=256;for(let c=t;c<t+148;c++)a+=e[c];for(let c=t+156;c<t+512;c++)a+=e[c];return this.cksum=a,L(e,t+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return this.#e==="Unsupported"?this.#e:_e.name.get(this.#e)}get typeKey(){return this.#e}set type(e){let t=String(_e.code.get(e));if(_e.isCode(t)||t==="Unsupported")this.#e=t;else if(_e.isCode(e))this.#e=e;else throw new TypeError("invalid entry type: "+e)}};q.Header=St;var gr=(i,e)=>{let n=i,r="",s,o=i.charAt(0)==="/"?"/":".";if((0,A.utf8Length)(n)<100)s=[n,r,!1];else{r=(0,we.dirname)(n),n=(0,we.basename)(n);do(0,A.utf8Length)(n)<=100&&(0,A.utf8Length)(r)<=e?s=[n,r,!1]:(0,A.utf8Length)(n)>100&&(0,A.utf8Length)(r)<=e?s=[n.slice(0,99),r,!0]:(n=(0,we.join)((0,we.basename)(r),n),r=(0,we.dirname)(r));while(r!==o&&s===void 0);s||(s=[i.slice(0,99),"",!0])}return s},C=(i,e,t)=>{let n=e,r=Math.min(e+t,i.length);for(;n<r&&i[n]!==0;)n++;return(0,A.decodeUtf8)(i,e,n)},bt=(i,e,t)=>br(N(i,e,t)),br=i=>i===void 0?void 0:new Date(i*1e3),N=(i,e,t)=>Number(i[e])&128?vr(i.subarray(e,e+t)):jr(i,e,t),vr=i=>{try{return fi.parse(i)}catch{return}},Sr=(i,e)=>{if(Number(i[e])&128)return N(i,e,12);let t=C(i,e,12);return/^ *[0-7]* *$/.test(t)&&i.subarray(e+t.length,e+12).every(n=>n===0)?parseInt(t,8)||0:void 0},kr=i=>isNaN(i)?void 0:i,jr=(i,e,t)=>kr(parseInt(C(i,e,t).trim(),8)),Or={12:8589934591,8:2097151},L=(i,e,t,n)=>n===void 0?!1:n>Or[t]||n<0?(fi.encode(n,i.subarray(e,e+t)),!0):(Pr(i,e,t,n),!1),Pr=(i,e,t,n)=>(0,A.writeAscii)(Er(n,t),i,e),Er=(i,e)=>Rr(Math.floor(i).toString(8),e),Rr=(i,e)=>(i.length===e-1?i:"0".repeat(e-i.length-2)+i+" ")+"\0",vt=(i,e,t,n)=>n===void 0?!1:L(i,e,t,n.getTime()/1e3),G=(i,e,t,n)=>n===void 0?!1:((0,A.encodeUtf8Into)(n,i,e,t),n.length!==(0,A.utf8Length)(n)||n.length>t)});var ze=w(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.Pax=void 0;var xr=ne(),ge=W(),Ar=D(),pi=/^\d+$/,kt=class i{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(e,t=!1){this.atime=e.atime,this.charset=e.charset,this.comment=e.comment,this.ctime=e.ctime,this.dev=e.dev,this.gid=e.gid,this.global=t,this.gname=e.gname,this.ino=e.ino,this.linkpath=e.linkpath,this.mtime=e.mtime,this.nlink=e.nlink,this.path=e.path,this.size=e.size,this.uid=e.uid,this.uname=e.uname}encode(){let e=this.encodeBody();if(e==="")return new Uint8Array(0);let t=(0,ge.utf8Length)(e),n=512*Math.ceil(1+t/512),r=new Uint8Array(n);return new xr.Header({path:("PaxHeader/"+(0,Ar.basename)(this.path??"")).slice(0,99),mode:this.mode||420,uid:this.uid,gid:this.gid,size:t,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(r),(0,ge.encodeUtf8Into)(e,r,512,t),r}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===void 0)return"";let t=this[e],n=typeof t=="object"?t.getTime()/1e3:t,r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+n+`
|
|
2
|
+
`,s=(0,ge.utf8Length)(r),o=Math.floor(Math.log(s)/Math.log(10))+1;return s+o>=Math.pow(10,o)&&(o+=1),o+s+r}static parse(e,t,n=!1){return i.parseBytes(new TextEncoder().encode(e),t,n)}static parseBytes(e,t,n=!1){return new i(Tr(qr(e),t),n)}};Me.Pax=kt;var Tr=(i,e)=>e?Object.assign({},e,i):i,qr=i=>{let e=Object.create(null),t=0;for(;t<i.length&&i[t]!==0;){let n=t;for(;n<i.length&&i[n]>=48&&i[n]<=57;)n++;let r=t+Number((0,ge.decodeUtf8)(i,t,n));if(n===t||i[n]!==32||r<=n+1||r>i.length||i[r-1]!==10)throw new Error("invalid PAX record");Mr(e,(0,ge.decodeUtf8)(i,n+1,r-1)),t=r}return e},Mr=(i,e)=>{let t=e.split("=");if(t.length===1)throw new Error("invalid PAX record");let n=t.shift();if(!n)return i;let r=n.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),s=t.join("="),o=s.indexOf("\0"),a=o===-1?s:s.slice(0,o);switch(r){case"path":case"linkpath":case"type":case"charset":case"comment":case"gname":case"uname":i[r]=a;break;case"ctime":case"atime":case"mtime":let c=new Date(Number(a)*1e3);isNaN(c.getTime())||(i[r]=c);break;case"size":if(!pi.test(s)||!Number.isSafeInteger(+s))throw new Error("invalid PAX size");i[r]=+s;break;case"gid":case"uid":case"dev":case"ino":case"nlink":case"mode":if(!pi.test(a.trim()))break;let l=+a;if(!Number.isSafeInteger(l))break;i[r]=l;break}return i}});var re=w(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.gzip=void 0;Fe.gzip={name:"gzip",headLength:2,detect:i=>i[0]===31&&i[1]===139,decompress:()=>new DecompressionStream("gzip"),compress:i=>{let e=new CompressionStream("gzip");if(!i?.portable)return e;let t=0;return{writable:e.writable,readable:e.readable.pipeThrough(new TransformStream({transform:(n,r)=>{t<=9&&t+n.length>9&&(n[9-t]=255),t+=n.length,r.enqueue(n)}}))}}}});var B=w(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.dealias=Y.aliases=void 0;Y.aliases={C:"cwd",f:"file",z:"gzip",P:"preservePaths",U:"unlink","strip-components":"strip",stripComponents:"strip","keep-newer":"newer",keepNewer:"newer","keep-newer-files":"newer",keepNewerFiles:"newer",k:"keep","keep-existing":"keep",keepExisting:"keep",m:"noMtime","no-mtime":"noMtime",p:"preserveOwner",L:"follow",h:"follow",onentry:"onEntry",onReadEntry:"onEntry"};var zr=i=>{let e=Object.assign(Object.create(null),i);for(let[t,n]of Object.entries(Y.aliases))e[t]!==void 0&&(e[n]??=e[t]),delete e[t];return e.noChmod===!1&&(e.chmod??=!0),delete e.noChmod,e};Y.dealias=zr});var Ue=w(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.concat=void 0;var Fr=i=>{if(i.length===1)return i[0].slice();let e=0;for(let r of i)e+=r.length;let t=new Uint8Array(e),n=0;for(let r of i)t.set(r,n),n+=r.length;return t};Ce.concat=Fr});var K=w(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.countOption=se.ownOptions=void 0;var Cr=(i,e)=>Object.assign(Object.create(null),i,e);se.ownOptions=Cr;var Ur=(i,e,t)=>{if(e==null||e===0)return t;if(e===1/0||Number.isInteger(e)&&Number(e)>0)return e;throw new TypeError(`${i} must be a positive integer`)};se.countOption=Ur});var ve=w(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.ReadEntrySync=I.ReadEntry=I.EntryData=void 0;var yi=Ue(),Dr=new Set(["File","OldFile","Link","SymbolicLink","CharacterDevice","BlockDevice","Directory","FIFO","ContiguousFile","GNUDumpDir"]),De=i=>i.replaceAll("\\","/"),be=class{header;extended;globalExtended;type;path;mode;uid;gid;uname;gname;size;mtime;atime;ctime;linkpath;devmaj;devmin;dev;ino;nlink;absolute;ignore;invalid=!1;unsupported=!1;constructor(e,t,n,r=!1){if(!e.path)throw new Error("no path provided for tar.ReadEntry");this.header=e,this.extended=t,this.globalExtended=n,this.type=e.type,this.ignore=!Dr.has(this.type),this.path=r?De(e.path):e.path,this.mode=e.mode&&e.mode&4095,this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size??0,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime;let s=this.type==="Link"||this.type==="SymbolicLink";this.linkpath=s&&e.linkpath?r?De(e.linkpath):e.linkpath:void 0,this.devmaj=e.devmaj,this.devmin=e.devmin,n&&this.#e(n),t&&(this.#e(t),t.path!=null&&(this.path=r?De(t.path):t.path),s&&t.linkpath!=null&&(this.linkpath=r?De(t.linkpath):t.linkpath))}#e(e){e.uid!=null&&(this.uid=e.uid),e.gid!=null&&(this.gid=e.gid),e.uname!=null&&(this.uname=e.uname),e.gname!=null&&(this.gname=e.gname),e.mtime!=null&&(this.mtime=e.mtime),e.atime!=null&&(this.atime=e.atime),e.ctime!=null&&(this.ctime=e.ctime),e.dev!=null&&(this.dev=e.dev),e.ino!=null&&(this.ino=e.ino),e.nlink!=null&&(this.nlink=e.nlink)}};I.EntryData=be;var mi=new TextDecoder,wi=i=>{let e="";for(let t of i)e+=mi.decode(t,{stream:!0});return e+mi.decode()},_i=()=>new TypeError("Body has already been consumed"),jt=class extends be{#e;#t=!1;#i;constructor(e,t,n,r,s){super(e,t,n,r),this.#e=s}get bodyUsed(){return this.#t}get body(){if(this.#i)return this.#i;let e=!1;return this.#i=new ReadableStream({pull:async t=>{e||(this.#n(),e=!0);let[n]=await this.#r(1);n?t.enqueue(n):t.close()}},{highWaterMark:0})}#n(){if(this.#t)throw _i();this.#t=!0}#s(e,t=1/0){let n=this.#e;for(;n&&e.length<t;){let r=n.readBody(this);if(r===null)break;if(r===void 0)return!1;e.push(r)}return!0}async#r(e){let t=[];for(;!this.#s(t,e);)await this.#e?.fill();return t}async bytes(){this.#n();let e=[];for(;!this.#s(e);)await this.#e?.fill();return(0,yi.concat)(e)}async arrayBuffer(){return(await this.bytes()).buffer}async text(){return this.#n(),wi(await this.#r())}async blob(){return this.#n(),new Blob(await this.#r())}};I.ReadEntry=jt;var Ot=class extends be{#e;#t=!1;#i;constructor(e,t,n,r,s){super(e,t,n,r),this.#e=s}get bodyUsed(){return this.#t}get body(){return this.#i??=this.#n()}*#n(){this.#s();for(let e;e=this.#e?.readBody(this);)yield e}#s(){if(this.#t)throw _i();this.#t=!0}#r(){this.#s();let e=[];for(let t;t=this.#e?.readBody(this);)e.push(t);return e}bytes(){return(0,yi.concat)(this.#r())}arrayBuffer(){return this.bytes().buffer}text(){return wi(this.#r())}};I.ReadEntrySync=Ot});var oe=w(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.warn=V.tarError=void 0;var gi=(i,e,t,n)=>(i.file&&(n.file=i.file),n.code=typeof t=="object"&&t.code||e,n.tarCode=e,n),Lr=(i,e,t,n={})=>Object.assign(typeof t=="object"?t:new Error(`${e}: ${t}`),gi(i,e,t,n));V.tarError=Lr;var Nr=(i,e,t,n={})=>{let r=Object.hasOwn(n,"recoverable")&&n.recoverable===!1;if(i.strict||r)throw(0,V.tarError)(i,e,t,n);gi(i,e,t,n),typeof t=="object"&&(n=Object.assign(t,n),t=t.message),i.onwarn?.(e,t,n)};V.warn=Nr});var Ie=w(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.Parser=void 0;var Br=W(),Ir=ne(),Hr=ze(),$r=K(),Wr=ve(),bi=oe(),vi=0,X=1,Le=2,Ne=3,Si=4,Pt={type:"entryEnd"},Gr={type:"end"},Yr=new Set(["ExtendedHeader","OldExtendedHeader","GlobalExtendedHeader","NextFileHasLongPath","NextFileHasLongLinkpath"]),Kr=new Set(["Link","SymbolicLink","CharacterDevice","BlockDevice","FIFO","TapeVolumeHeader"]),ki=i=>{let e=i.indexOf(0);return(0,Br.decodeUtf8)(i,0,e===-1?i.length:e)},Et=class{maxMetaEntrySize;position=0;offset=0;#e;#t;#i;#n=[];#s;#r=0;#a;#o=0;#c=vi;#l;#d;#y;#g=0;#u=0;#h=0;#f;#w;#k;#j;#b=!1;#_;#v=!1;#p=!1;#S=0;constructor(e={},t){e=this.#e=(0,$r.ownOptions)(e),this.maxMetaEntrySize=e.maxMetaEntrySize||1024*1024,this.#t=e.filter;let n=e.platform==="win32";this.#i=t??((r,s,o)=>new Wr.EntryData(r,s,o,n))}warn(e,t,n){(0,bi.warn)(this.#e,e,t,n)}push(e){this.#b||this.#n.push(e)}end(){this.#b=!0}get bodyRemain(){let e=this.#s,t=this.#c;return t!==Le&&t!==Ne||this.#n.length||e&&this.#r<e.length?0:this.#h}skipBody(){this.#p=this.#c===Le,this.offset+=this.#h,this.#u=this.#h=0,this.#O()}next(){if(this.#p)return this.#p=!1,Pt;for(;;){let e=this.#s,t=this.#r;if(!e||t===e.length){if(e=this.#s=this.#n.shift(),t=this.#r=0,!e){if(!this.#b||this.#S===2)return;let h=this.#R();if(h)return h}continue}let n=e.length-t,r=this.#c;if(r<=X){let h;if(this.#o===0&&n>=512)this.#r=t+512,h=this.#E(e,t);else{let d=this.#a??=new Uint8Array(512),f=Math.min(512-this.#o,n);if(d.set(e.subarray(t,t+f),this.#o),this.#r=t+f,this.#o+=f,this.#o<512)continue;this.#o=0,h=this.#E(d,0)}if(h)return h;continue}let s=this.#h,o=n<s?n:s,a=this.#u,c=o<a?o:a;this.#r=t+o,this.offset+=o,this.#h=s-o,this.#u=a-c;let l=o===s;if(r===Si){let h=this.#y;h.set(e.subarray(t,t+c),this.#g),this.#g+=c,l&&(this.#O(),this.#x(h));continue}if(l&&this.#O(),r!==Ne){if(c===0){if(l)return Pt;continue}return this.#p=l,{type:"body",data:c===e.length?e:e.subarray(t,t+c)}}}}#O(){let e=this.#l;e&&(this.position=this.offset,this.#l=void 0),!e?.invalid&&!this.#v&&(this.#_=!0),this.#v=!1,this.#c=X}#R(){let e=this.#c;if(e>X){let t=this.#l,n=(512-this.#h%512)%512,r=this.#h+n;this.#l=void 0,this.#y=void 0,this.#c=X,!t?.invalid&&!this.#v&&(this.#_=!0),this.#v=!1,this.#p=e===Le,this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${r} more bytes, only ${n} available)`,{entry:t,header:this.#d});return}return this.#p?(this.#p=!1,Pt):(this.#S===0&&(this.#S=1,(e===vi||this.#_===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")),this.#S=2,Gr)}#E(e,t){this.offset+=512,this.#_===void 0&&(this.#_=!1);let n=this.#f,r=this.#w,s=this.#k;(r!==void 0||s!==void 0)&&(n=Object.assign(Object.create(null),n),n.path??=r,n.linkpath??=s);let o=new Ir.Header(e,t,n,this.#j);if(o.nullBlock){this.#b=!0,this.#s=void 0,this.#n.length=0,this.#o=0,this.#c=X;return}let a=o.type,c=Yr.has(a);if(!o.cksumValid){this.#P(o,"checksum failure",!1);return}let l=o.size;if(l===void 0&&this.#m("invalid size",o),(l&&Kr.has(a)||a==="Directory"&&n?.size)&&this.#m(`${a} entry with a body`,o),!o.path&&!c){this.#P(o,"path is required",!0);return}if((a==="Link"||a==="SymbolicLink")&&!(n?.linkpath??o.linkpath)){this.#P(o,"linkpath required",!0);return}if(this.#d=o,this.#u=l,this.#h=512*Math.ceil(l/512),l||(this.#_=!0),c){l>this.maxMetaEntrySize&&this.#m(`${a} entry larger than maxMetaEntrySize`,o),(a==="NextFileHasLongPath"?r!==void 0:a==="NextFileHasLongLinkpath"?s!==void 0:a!=="GlobalExtendedHeader"&&this.#f)&&this.#m(`two ${a} entries for one entry`,o),this.#f&&a.startsWith("NextFile")&&this.#m(`${a} entry after a PAX header`,o),l>0&&(this.#y=new Uint8Array(l),this.#g=0,this.#c=Si);return}this.#f=this.#w=this.#k=void 0;let h=this.#i(o,n,this.#j);return!h.ignore&&this.#t&&!this.#t(h.path,h)&&(h.ignore=!0),l?(this.#l=h,this.#c=h.ignore?Ne:Le):(this.#c=X,this.position=this.offset,this.#p=!h.ignore),{type:"entry",entry:h}}#P(e,t,n){this.#f=this.#w=this.#k=void 0;let r=n?e.size:0;r&&(this.#d=e,this.#u=r,this.#h=512*Math.ceil(r/512),this.#c=Ne,this.#v=!0),this.warn("TAR_ENTRY_INVALID",t,{header:e})}#m(e,t){throw this.#b=!0,this.#s=this.#y=void 0,this.#n.length=0,this.#o=0,this.#c=X,this.#S=2,(0,bi.tarError)(this.#e,"TAR_BAD_ARCHIVE",e,{header:t,recoverable:!1})}#x(e){let t=this.#d,n=t.type;if(n==="NextFileHasLongPath"){this.#w=ki(e);return}if(n==="NextFileHasLongLinkpath"){this.#k=ki(e);return}let r=n==="GlobalExtendedHeader",s;try{s=Hr.Pax.parseBytes(e,r?this.#j:void 0,r)}catch(o){this.#m(o.message,t)}if(!r){this.#f=s;return}(s.size!==void 0||s.path!==void 0||s.linkpath!==void 0)&&this.#m("size or path in a global PAX header",t),this.#j=s}};Be.Parser=Et});var ae=w(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.readFileSync=M.readFile=M.SKIP=void 0;var Vr=K(),Xr=16*1024*1024,ji=64*1024,Jr=1024*1024;M.SKIP=Symbol.for("tar.readFile.skip");var He=class{pos=0;size=0;#e;#t=ji;constructor(e){this.#e=(0,Vr.countOption)("maxReadSize",e,Xr)}next(){let e=Math.min(this.#t,this.#e,this.size-this.pos);return this.#t*=2,e}skip(e){return e<Jr||this.pos+e>this.size?!1:(this.pos+=e,this.#t=ji,!0)}};async function*Zr(i,e,t){let n=await i.open(e,"r");try{t.size=(await n.stat()).size;for(let r;r=t.next();){let s=new Uint8Array(r),{bytesRead:o}=await n.read(s,0,r,t.pos);if(!o)break;t.pos+=o,yield o<r?s.subarray(0,o):s}}finally{await n.close().catch(()=>{})}}function*Qr(i,e,t){let n=i.openSync(e,"r");try{t.size=i.fstatSync(n).size;for(let r;r=t.next();){let s=new Uint8Array(r),o=i.readSync(n,s,0,r,t.pos);if(!o)break;t.pos+=o,yield o<r?s.subarray(0,o):s}}finally{try{i.closeSync(n)}catch{}}}var es=(i,e,t)=>{let n=new He(t);return Object.assign(Zr(i,e,n),{[M.SKIP]:r=>n.skip(r)})};M.readFile=es;var ts=(i,e,t)=>{let n=new He(t);return Object.assign(Qr(i,e,n),{[M.SKIP]:r=>n.skip(r)})};M.readFileSync=ts});var H=w(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.entriesSync=b.entries=b.TarReaderSync=b.TarReader=b.EntryCursor=b.findCodec=b.headLength=void 0;var ce=W(),is=ne(),Oi=re(),xt=Ue(),Pi=K(),Ei=Ie(),Ri=ve(),ns=ae(),rs=oe(),Rt=()=>{},ss=i=>Math.max(512,...i.map(e=>e.headLength));b.headLength=ss;var os=i=>{try{let e=new is.Header(i);return e.cksumValid||e.nullBlock}catch{return!1}},as=(i,e,t="")=>i.find(n=>n.detect(e))??(os(e)?void 0:i.find(n=>n.extensions?.some(r=>t.endsWith(r))));b.findCodec=as;var xi=i=>typeof i.maxDecompressionRatio=="number"?i.maxDecompressionRatio:1e3,$e=(i,e)=>(0,rs.tarError)(i,"TAR_ABORT",e,{recoverable:!1}),Ai=(i,e,t)=>$e(i,new Error(`max decompression ratio exceeded: ${e.toFixed(2)} > ${t}`)),cs=()=>new TypeError("The body of an entry cannot be read after a later entry"),Se=class{parser;current;ended=!1;constructor(e){this.parser=e}entry(){if(this.current=void 0,this.ended)return null;for(let e;e=this.parser.next();){if(e.type==="end")return this.ended=!0,null;if(e.type==="entry"&&!e.entry.ignore)return this.current=e.entry}}body(e){if(e!==this.current)throw cs();let t=this.parser.next();if(t)return t.type==="body"?t.data:(this.current=void 0,null)}};b.EntryCursor=Se;var Ti=(i,e)=>{if(i.current)return;let t=i.parser.bodyRemain;t&&e[ns.SKIP]?.(t)&&i.parser.skipBody()},ls=i=>{if((0,ce.isUint8Array)(i))return[i].values();if((0,ce.isArrayBuffer)(i))return[new Uint8Array(i)].values();if((0,ce.isBlob)(i)&&(i=i.stream()),(0,ce.isReadableStream)(i)){let e=i.getReader();return{next:()=>e.read(),return:()=>e.cancel()}}return Symbol.asyncIterator in i?i[Symbol.asyncIterator]():i[Symbol.iterator]()},We=class{parser;#e;#t;#i;#n;#s;#r;#a=!1;constructor(e,t={}){t=(0,Pi.ownOptions)(t);let n=t.platform==="win32";this.parser=new Ei.Parser(t,(r,s,o)=>new Ri.ReadEntry(r,s,o,n,this)),this.#e=new Se(this.parser),this.#t=t,this.#i=ls(e)}poll(){return this.#a?null:this.#e.entry()}readBody(e){return this.#e.body(e)}fill(){return this.#r??=this.#o()}async#o(){try{let e=this.#n??=await this.#c(this.#i),t=this.#s;this.#s=void 0,e===this.#i&&Ti(this.#e,e);let n=t?{value:t,done:!1}:await e.next();n.done?this.parser.end():this.parser.push(n.value)}finally{this.#r=void 0}}async#c(e){let t=this.#t,n=[...t.codecs??[],Oi.gzip],r=(0,b.headLength)(n),s;for(;!s||s.length<r;){let y=await e.next();if(y.done)break;s=s?(0,xt.concat)([s,y.value]):y.value}let o=s&&(0,b.findCodec)(n,s,t.file);if(!o)return this.#s=s,e;let a=0,c=0,{readable:l,writable:h}=o.decompress(),d=h.getWriter(),f=l.getReader(),p=!1;(async()=>{try{for(;;){if(await d.ready,p)return;let y=s?{value:s,done:!1}:await e.next();if(s=void 0,p)return;if(y.done)return await d.close();a+=y.value.length,await d.write(y.value)}}catch(y){p||await d.abort(y).catch(Rt)}})();let m=xi(t);return{next:async()=>{let y=await f.read().catch(j=>{throw $e(t,j)});if(!y.done){c+=y.value.length;let j=c/a;if(j>m)throw Ai(t,j,m)}return y},return:async()=>(p=!0,await f.cancel().catch(Rt),await d.abort().catch(Rt),await e.return?.(),{value:void 0,done:!0})}}async next(){try{for(;;){let e=this.poll();if(e)return{value:e,done:!1};if(e===null)break;await this.fill()}}catch(e){throw await this.return(),e}return this.return()}async return(){return this.#a||(this.#a=!0,this.#e.current=void 0,await(this.#n??this.#i).return?.()),{value:void 0,done:!0}}[Symbol.asyncIterator](){return this}};b.TarReader=We;var Ge=class{parser;#e;#t;#i;#n;#s;#r=!1;constructor(e,t={}){t=(0,Pi.ownOptions)(t);let n=t.platform==="win32";this.parser=new Ei.Parser(t,(r,s,o)=>new Ri.ReadEntrySync(r,s,o,n,this)),this.#e=new Se(this.parser),this.#t=t,this.#i=(0,ce.isUint8Array)(e)?[e].values():(0,ce.isArrayBuffer)(e)?[new Uint8Array(e)].values():e[Symbol.iterator]()}readBody(e){for(;;){let t=this.#e.body(e);if(t!==void 0)return t;this.#a()}}#a(){let e=this.#n??=this.#o(this.#i),t=this.#s;this.#s=void 0,e===this.#i&&Ti(this.#e,e);let n=t?{value:t,done:!1}:e.next();n.done?this.parser.end():this.parser.push(n.value)}#o(e){let t=this.#t,n=[...t.codecs??[],Oi.gzip],r=(0,b.headLength)(n),s,o;for(;(!s||s.length<r)&&!(o=e.next()).done;)s=s?(0,xt.concat)([s,o.value]):o.value;let a=s&&(0,b.findCodec)(n,s,t.file);if(!s||!a)return this.#s=s,e;let{decompressSync:c}=a;if(!c)throw $e(t,new Error(`the ${a.name} codec has no decompressSync function`));let l=[s];for(;!(o=e.next()).done;)l.push(o.value);let h=(0,xt.concat)(l),d=xi(t),f;try{f=c(h,{maxOutputLength:h.length*d})}catch(_){throw $e(t,_)}let p=f.length/h.length;if(p>d)throw Ai(t,p,d);return[f].values()}next(){try{for(;;){let e=this.#r?null:this.#e.entry();if(e)return{value:e,done:!1};if(e===null)break;this.#a()}}catch(e){throw this.return(),e}return this.return()}return(){return this.#r||(this.#r=!0,this.#e.current=void 0,(this.#n??this.#i).return?.()),{value:void 0,done:!0}}[Symbol.iterator](){return this}};b.TarReaderSync=Ge;var hs=(i,e)=>new We(i,e);b.entries=hs;var ds=(i,e)=>new Ge(i,e);b.entriesSync=ds});var qi=w(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.modeFix=void 0;var us=(i,e,t)=>(i&=4095,t&&(i=(i|384)&-19),e&&(i&256&&(i|=64),i&32&&(i|=8),i&4&&(i|=1)),i);Ye.modeFix=us});var Tt=w(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.decode=le.encode=void 0;var Ke=["|","<",">","?",":"],At=Ke.map(i=>String.fromCodePoint(61440+Number(i.codePointAt(0)))),fs=new Map(Ke.map((i,e)=>[i,At[e]])),ps=new Map(At.map((i,e)=>[i,Ke[e]])),ms=i=>Ke.reduce((e,t)=>e.split(t).join(fs.get(t)),i);le.encode=ms;var ys=i=>At.reduce((e,t)=>e.split(t).join(ps.get(t)),i);le.decode=ys});var Ve=w(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.win32Dirname=E.win32Resolve=E.win32IsAbsolute=E.win32Root=void 0;var Mi=D(),J=i=>i===47||i===92,ws=i=>i>=65&&i<=90||i>=97&&i<=122,_s=i=>{let e=i.length,t=0;if(J(i.charCodeAt(0))){if(t=1,J(i.charCodeAt(1))){let n=2,r=n;for(;n<e&&!J(i.charCodeAt(n));)n++;if(n<e&&n!==r){for(r=n;n<e&&J(i.charCodeAt(n));)n++;if(n<e&&n!==r){for(r=n;n<e&&!J(i.charCodeAt(n));)n++;n===e?t=n:n!==r&&(t=n+1)}}}}else ws(i.charCodeAt(0))&&i.charCodeAt(1)===58&&(t=J(i.charCodeAt(2))?3:2);return i.slice(0,t)};E.win32Root=_s;var gs=i=>J(i.charCodeAt(0))||(0,E.win32Root)(i).length===3;E.win32IsAbsolute=gs;var bs=(i,e)=>{let t=(0,E.win32IsAbsolute)(e)?e:i+"/"+e,n=(0,E.win32Root)(t);return n+(0,Mi.resolve)("/",t.slice(n.length)).slice(1)};E.win32Resolve=bs;var vs=i=>{let e=(0,E.win32Root)(i),t=(0,Mi.dirname)(i.slice(e.length));return t==="."?e:e+t};E.win32Dirname=vs});var qt=w(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.stripAbsolutePath=void 0;var Ss=Ve(),ks=i=>{let e="";for(let t;t=(0,Ss.win32Root)(i);)i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"&&(t="/"),i=i.slice(t.length),e+=t;return[e,i]};Xe.stripAbsolutePath=ks});var Mt=w(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.toStream=void 0;var js=i=>new ReadableStream({pull:async e=>{let t=await i.next();t.done?e.close():e.enqueue(t.value)},cancel:async()=>{await i.return?.()}},{highWaterMark:0});Je.toStream=js});var Qe=w(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.stripTrailingSlashes=void 0;var Os=i=>{let e=i.length-1,t=-1;for(;e>-1&&i.charAt(e)==="/";)t=e,e--;return t===-1?i:i.slice(0,t)};Ze.stripTrailingSlashes=Os});var Ft=w(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.WriteEntry=void 0;var et=W(),Ps=ne(),Es=K(),Rs=ze(),xs=Qe(),As=new TextEncoder,zi=(i,e)=>e?(0,xs.stripTrailingSlashes)(e)+"/"+i.replace(/^\.(\/|$)/,""):i,zt=class{path;type;mode;uid;gid;uname;gname;size;mtime;atime;ctime;linkpath;dev;ino;nlink;body;absolute;header;constructor(e,t){if(e.type==="Unsupported")throw new Error("writing entry that should be ignored");if(typeof t=="string"&&(t=As.encode(t)),this.path=e.path,this.type=e.type??"File",this.mode=e.mode,this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,e.size===void 0&&t!==void 0&&!(0,et.isUint8Array)(t)&&!(0,et.isBlob)(t))throw new TypeError("a stream body needs the size option");this.size=e.size??((0,et.isUint8Array)(t)?t.length:(0,et.isBlob)(t)?t.size:0),this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=e.linkpath,this.dev=e.dev,this.ino=e.ino,this.nlink=e.nlink,this.body=t}encode(e={},t=new Uint8Array(512)){e=(0,Es.ownOptions)(e);let n=zi(this.path,e.prefix),r=this.type==="Link"&&this.linkpath!==void 0?zi(this.linkpath,e.prefix):this.linkpath,{uid:s,gid:o,uname:a,gname:c,size:l,mtime:h,atime:d,ctime:f}=this;if(this.header=new Ps.Header({path:n,linkpath:r,mode:this.mode,uid:s,gid:o,size:l,mtime:h,type:this.type,uname:a,gname:c,atime:d,ctime:f}),!this.header.encode(t)||e.noPax)return[t];let{dev:p,ino:_,nlink:m}=this;return[new Rs.Pax({atime:d,ctime:f,gid:o,gname:c,mtime:h,path:n,linkpath:r,size:l,uid:s,uname:a,dev:p,ino:_,nlink:m}).encode(),t]}};tt.WriteEntry=zt});var rt=w(k=>{"use strict";var Ts=k&&k.__createBinding||(Object.create?(function(i,e,t,n){n===void 0&&(n=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,n,r)}):(function(i,e,t,n){n===void 0&&(n=t),i[n]=e[t]})),qs=k&&k.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Ms=k&&k.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=i(e),r=0;r<n.length;r++)n[r]!=="default"&&Ts(t,e,n[r]);return qs(t,e),t}})();Object.defineProperty(k,"__esModule",{value:!0});k.PackSync=k.Pack=k.PackBase=k.PackJob=void 0;var je=W(),zs=qi(),Fs=Ms(Tt()),Cs=re(),Us=Ue(),Dt=K(),Ct=D(),Ds=qt(),Ls=Mt(),ke=oe(),Fi=Ve(),Ci=Ft(),Ns=16*1024*1024,z=()=>{},Oe=i=>512*Math.ceil(i/512),Z=i=>i.replaceAll("\\","/"),Ut=i=>`${i.dev}:${i.ino}`,it={bigint:!0},Bs=({dev:i,ino:e})=>!Number.isSafeInteger(i)||!Number.isSafeInteger(e),nt=(i,e)=>i.dev===e.dev&&i.ino===e.ino,Bt=(i,e)=>Object.assign(new Error(i),{path:e,syscall:"read",code:"EOF"}),Bi=(i,e)=>Bt(`encountered unexpected EOF: ${i} has fewer than the ${e} bytes of its stat`,i),Ii=(i,e)=>Bt(`did not encounter expected EOF: ${i} has more than the ${e} bytes of its stat`,i),Hi=i=>i.absolute??i.path,Is=i=>Object.assign(new Error("writing more data than expected"),{path:Hi(i)}),$i=i=>Symbol.asyncIterator in i||Symbol.iterator in i,Hs=i=>typeof i.encode=="function",U=class{path;absolute;up;linkpath;ready;constructor(e,t){this.path=e,this.absolute=t}};k.PackJob=U;var Pe=class{opt;fs;cwd;win32;maxReadSize;header;codec;codecOptions;ended=!1;head;tail;wake;#e=new Map;constructor(e,t){e=this.opt=(0,Dt.ownOptions)(e),this.fs=e.fs,this.win32=e.platform==="win32",this.maxReadSize=(0,Dt.countOption)("maxReadSize",e.maxReadSize,Ns);let{prefix:n,noPax:r}=e;this.header={prefix:n&&this.win32?Z(n):n,noPax:r};let s=e.cwd&&(this.win32?Z(e.cwd):e.cwd);if(s&&!(this.win32?Fi.win32IsAbsolute:Ct.isAbsolute)(s))throw new TypeError("cwd must be an absolute path");this.cwd=s&&this.#t(s,"");let o=e,a=["gzip","brotli","zstd","compress"].filter(l=>o[l]);if(a.length>1)throw new TypeError(`${a.join(", ")} are mutually exclusive`);let[c]=a;if(c){let l=e.compress,[h,d]=l?Array.isArray(l)?l:[l]:[[...e.codecs??[],Cs.gzip].find(f=>f.name===c),o[c]];if(!h?.[t])throw new TypeError(`no codec named ${h?.name??c} has a ${t} function`);this.codec=h,this.codecOptions={...typeof d=="object"?d:void 0,...h.name==="gzip"&&e.portable?{portable:!0}:void 0}}}#t(e,t){return this.win32?(0,Fi.win32Resolve)(e,t):(0,Ct.resolve)(e,t)}resolve(e){if(!this.cwd||!this.fs)throw new TypeError("a path needs the cwd and fs options");return this.#t(this.cwd,this.win32?Z(e):e)}add(e){if(this.ended)throw new Error("write after end");if(typeof e!="string")this.push(e);else{let t=this.win32?Z(e):e;this.push(new U(t||"./",this.resolve(t)))}return this}end(){return this.ended=!0,this.wake?.(),this}push(e){let t={item:e};this.tail?this.tail.next=t:this.head=t,this.tail=t,this.wake?.()}shift(){this.head=this.head?.next,this.head||(this.tail=void 0)}needsExact(e){return Bs(e)&&(e.isDirectory()?!!this.opt.follow:e.isFile()&&e.nlink>1)}plan(e,t,n){let{filter:r}=this.opt;if(!(r&&!r(e.path,t))){if(t.isDirectory()){for(let s=e.up;s;s=s.up)if(s.key===Ut(n)){(0,ke.warn)(this.opt,"TAR_ENTRY_ERROR","directory is its own ancestor",{path:e.path,absolute:e.absolute});return}return"Directory"}if(t.isSymbolicLink())return"SymbolicLink";if(!t.isFile()){(0,ke.warn)(this.opt,"TAR_ENTRY_UNSUPPORTED","unsupported file type",{path:e.path,absolute:e.absolute});return}if(t.nlink>1){let s=Ut(n),o=this.#e.get(s),a=this.cwd;if(o!==e.absolute&&o?.startsWith(a.endsWith("/")?a:a+"/"))return e.linkpath=(0,Ct.relative)(a,o),"Link";this.#e.set(s,e.absolute)}return"File"}}children(e,t,n){let r=e.path==="./"?"":e.path.replace(/\/*$/,"/"),s=e.absolute.endsWith("/")?e.absolute:e.absolute+"/",o=this.opt.follow?{key:Ut(n),up:e.up}:void 0;return[...t].sort().map(a=>{let c=new U(r+a,s+a);return c.up=o,c})}missing(e,t){if(t?.code!=="ENOENT")throw t;(0,ke.warn)(this.opt,"TAR_ENTRY_ERROR",t,{path:e.path,absolute:e.absolute})}changed(e,t){(0,ke.warn)(this.opt,"TAR_ENTRY_ERROR",t==="Directory"?"directory changed between lstat and readdir":"file changed between lstat and open",{path:e.path,absolute:e.absolute})}pathEntry(e,t,n,r,s){let{processUid:o,processUname:a=""}=this.opt,c=new Ci.WriteEntry({path:e.path,type:n,mode:t.mode,uid:t.uid,gid:t.gid,uname:t.uid===o?a:"",size:n==="File"?t.size:0,mtime:t.mtime,atime:t.atime,ctime:t.ctime,linkpath:r&&this.win32?Z(r):r,dev:t.dev,ino:t.ino,nlink:t.nlink},s);return c.absolute=e.absolute,this.#i(c,!0)}addedEntry(e){if(Hs(e))return this.#i(e,!1);let{filter:t}=this.opt;if(!(t&&!t(e.path,e)))return this.#i(new Ci.WriteEntry(e,e.body),!1)}#i(e,t){let{opt:n,win32:r}=this,s=e.type==="Directory";r&&!t&&(e.path=Z(e.path),e.linkpath&&(e.linkpath=Z(e.linkpath)));let[o,a]=n.preservePaths?["",e.path]:(0,Ds.stripAbsolutePath)(e.path);return e.path=a,t&&(r&&(e.path=Fs.decode(e.path)),e.path===""&&(e.path="./")),o&&(0,ke.warn)(n,"TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:e,path:o+e.path}),t&&s&&!e.path.endsWith("/")&&(e.path+="/"),n.portable&&(e.uid=e.gid=e.dev=e.ino=e.nlink=void 0,e.uname=e.gname=void 0,e.atime=e.ctime=void 0),e.mode!==void 0&&(e.mode=(0,zs.modeFix)(e.mode,s,!!n.portable)),e.mtime=n.noMtime||n.portable&&s?void 0:n.mtime||e.mtime,e}};k.PackBase=Pe;var Ui=async(i,e,t,n,r,s)=>{for(;t<e.length&&n<r;){let{bytesRead:o}=await i.read(e,t,e.length-t,n);if(o<=0)throw Bi(s,r);if(o>r-n)throw Ii(s,r);t+=o,n+=o}return n},Di=(i,e,t,n,r,s,o)=>{for(;n<t.length&&r<s;){let a=i.readSync(e,t,n,t.length-n,r);if(a<=0)throw Bi(o,s);if(a>s-r)throw Ii(o,s);n+=a,r+=a}return r};async function*$s(i){if((0,je.isUint8Array)(i))yield i;else if((0,je.isBlob)(i)||(0,je.isReadableStream)(i)){let e=((0,je.isBlob)(i)?i.stream():i).getReader();try{for(;;){let t=await e.read();if(t.done)break;yield t.value}}finally{await e.cancel().catch(z)}}else i&&(yield*i)}function*Ws(i){if((0,je.isUint8Array)(i))yield i;else if(i&&Symbol.iterator in i)yield*i;else if(i)throw new TypeError("PackSync needs a body that is a string, a Uint8Array, or an iterable")}var Wi=(i,e,t)=>{if(t.length>e)throw Is(i);return e-t.length},Gi=(i,e)=>{if(e)throw Bt("encountered unexpected EOF",Hi(i));return new Uint8Array(Oe(i.size)-i.size)};async function*Li(i){if(!i.size)return;let e=i.size;for await(let n of $s(i.body))e=Wi(i,e,n),yield n;let t=Gi(i,e);t.length&&(yield t)}function*Ni(i){if(!i.size)return;let e=i.size;for(let n of Ws(i.body))e=Wi(i,e,n),yield n;let t=Gi(i,e);t.length&&(yield t)}var Lt=class extends Pe{jobs;#e;#t=Promise.resolve();constructor(e={}){super(e,"compress"),this.jobs=(0,Dt.countOption)("jobs",this.opt.jobs,4)}async next(){let e=await(this.#e??=this.#i()).next();return e.done?{value:void 0,done:!0}:e}async return(){return this.end(),await this.#e?.return(),{value:void 0,done:!0}}[Symbol.asyncIterator](){return this}#i(){let{codec:e}=this;return e?.compress?this.#n(e.compress(this.codecOptions)):this.#s()}async*#n(e){let t=this.#s(),n,r=(0,Ls.toStream)({next:()=>t.next().catch(s=>{throw n={er:s},r.cancel().catch(z),s})}).pipeThrough(e).getReader();try{for(;;){let s=await r.read();if(n)throw n.er;if(s.done)break;yield s.value}}finally{await r.cancel().catch(z),await t.return()}}async*#s(){try{for(;;){let e=this.head;if(!e){if(this.ended)break;await new Promise(n=>this.wake=n);continue}this.#r();let{item:t}=e;if(t instanceof U)yield*this.#c(t);else if(!$i(t))yield*this.#d(t);else for await(let n of t)yield*this.#d(n);this.shift()}yield new Uint8Array(1024)}finally{for(let e=this.head;e;e=e.next){let{item:t}=e;if(!(t instanceof U)||!t.ready)break;await(await t.ready.catch(z))?.handle?.close().catch(z)}}}#r(){let e=this.fs,t=this.head;for(let n=0;t&&n<this.jobs;n++,t=t.next){let r=t.item;if(!(r instanceof U))break;if(r.ready)continue;let s=this.#a(e,r.absolute);s.catch(z);let o=this.#t.then(()=>s).then(([a,c])=>{let l=this.plan(r,a,c);return l&&{load:this.#o(e,r,a,c,l)}},a=>this.missing(r,a));this.#t=o.catch(z),r.ready=o.then(a=>a?.load),r.ready.catch(z)}}async#a(e,t){let{follow:n}=this.opt,r=await(n?e.stat(t):e.lstat(t)),s=this.needsExact(r)?await(n?e.stat(t,it):e.lstat(t,it)):r;return[r,s]}async#o(e,t,n,r,s){let{absolute:o}=t,{follow:a,noDirRecurse:c}=this.opt,l={stat:n,id:r,type:s};if(s==="SymbolicLink")l.linkpath=await e.readlink(o);else if(s==="Directory"&&!c)l.names=await e.readdir(o),l.changed=!a&&!nt(n,await e.lstat(o));else if(s==="File"&&n.size){let h=await e.open(o,"r");try{let{size:d}=n,f=Oe(d);!a&&!nt(n,await h.stat())?l.changed=!0:f>this.maxReadSize?l.handle=h:(l.buf=new Uint8Array(512+f),await Ui(h,l.buf,512,0,d,o))}catch(d){throw await h.close().catch(z),d}l.handle||await h.close()}return l}async*#c(e){let t=await e.ready;if(!t)return;let{stat:n,id:r,type:s,names:o,buf:a,handle:c}=t;if(t.changed)return this.changed(e,s);let l=!1;try{let h=a?a.subarray(512,512+n.size):c&&this.#l(c,n.size,e.absolute),d=this.pathEntry(e,n,s,t.linkpath??e.linkpath,h);if(o)for(let p of this.children(e,o,r))this.push(p);await this.opt.onWriteEntry?.(d);let f=a&&d.body===h&&d.size===n.size;yield*d.encode(this.header,f?a:void 0),f||(yield*Li(d)),l=!0}finally{if(c){t.handle=void 0;let h=c.close();await(l?h:h.catch(z))}}}async*#l(e,t,n){let r=Oe(t);for(let s=0;s<t;){let o=new Uint8Array(Math.min(r-s,this.maxReadSize)),a=await Ui(e,o,0,s,t,n);yield o.subarray(0,a-s),s=a}}async*#d(e){let t=this.addedEntry(e);t&&(await this.opt.onWriteEntry?.(t),yield*t.encode(this.header),yield*Li(t))}};k.Pack=Lt;var Nt=class extends Pe{#e;constructor(e={}){super(e,"compressSync")}next(){let e=(this.#e??=this.#t()).next();return e.done?{value:void 0,done:!0}:e}return(){return this.ended=!0,this.#e?.return(),{value:void 0,done:!0}}[Symbol.iterator](){return this}*#t(){let{codec:e}=this;if(!e?.compressSync)return yield*this.#i();yield e.compressSync((0,Us.concat)([...this.#i()]),this.codecOptions)}*#i(){for(let e;e=this.head;this.shift()){let{item:t}=e;if(t instanceof U){let n=[t];for(let r of n)yield*this.#n(r,n)}else if(!$i(t))yield*this.#r(t);else for(let n of t)yield*this.#r(n)}this.ended=!0,yield new Uint8Array(1024)}*#n(e,t){let n=this.fs,{absolute:r}=e,{follow:s,noDirRecurse:o}=this.opt,a;try{a=s?n.statSync(r):n.lstatSync(r)}catch(m){return this.missing(e,m)}let c=this.needsExact(a)?s?n.statSync(r,it):n.lstatSync(r,it):a,l=this.plan(e,a,c);if(!l)return;let{linkpath:h}=e,d,f,p,_=!1;try{if(l==="SymbolicLink")h=n.readlinkSync(r);else if(l==="Directory"&&!o){let j=n.readdirSync(r);if(!s&&!nt(a,n.lstatSync(r)))return this.changed(e,l);t.push(...this.children(e,j,c))}else if(l==="File"&&a.size){let{size:j}=a,ci=Oe(j);if(p=n.openSync(r,"r"),!s&&!nt(a,n.fstatSync(p)))return this.changed(e,l);ci>this.maxReadSize?f=this.#s(n,p,j,r):(d=new Uint8Array(512+ci),Di(n,p,d,512,0,j,r),f=d.subarray(512,512+j))}let m=this.pathEntry(e,a,l,h,f);this.opt.onWriteEntry?.(m);let y=d&&m.body===f&&m.size===a.size;yield*m.encode(this.header,y?d:void 0),y||(yield*Ni(m)),_=!0}finally{if(p!==void 0&&!_)try{n.closeSync(p)}catch{}}p!==void 0&&n.closeSync(p)}*#s(e,t,n,r){let s=Oe(n);for(let o=0;o<n;){let a=new Uint8Array(Math.min(s-o,this.maxReadSize)),c=Di(e,t,a,0,o,n,r);yield a.subarray(0,c-o),o=c}}*#r(e){let t=this.addedEntry(e);t&&(this.opt.onWriteEntry?.(t),yield*t.encode(this.header),yield*Ni(t))}};k.PackSync=Nt});var Re=w(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.packFilesSync=S.packFiles=S.writeChunksSync=S.writeChunks=void 0;S.create=Qs;S.createSync=eo;var Ki=B(),Vi=H(),Xi=rt(),Ji=ae(),Gs=Mt(),Ee=64*1024,st=4*Ee,Ys=()=>{},It=(i,e)=>{if(!e?.length)throw new TypeError("no paths specified to add to archive");if(i.file&&!i.fs)throw new TypeError("the file option needs the fs option")},Yi=async(i,e,t,n)=>{for(let r=0;r<t;)r+=(await i.write(e,r,t-r,n+r)).bytesWritten},Ks=async(i,e,t)=>{let n=new Uint8Array(st),r=0,s=async()=>{await Yi(i,n,r,t),t+=r,r=0};for await(let o of e)(r+o.length>st||o.length>=Ee)&&await s(),o.length>=Ee?(await Yi(i,o,o.length,t),t+=o.length):(n.set(o,r),r+=o.length);await s()};S.writeChunks=Ks;var Vs=(i,e,t,n)=>{let r=new Uint8Array(st),s=0,o=(a,c)=>{for(let l=0;l<c;)l+=i.writeSync(e,a,l,c-l,n+l);n+=c};for(let a of t)(s+a.length>st||a.length>=Ee)&&(o(r,s),s=0),a.length>=Ee?o(a,a.length):(r.set(a,s),s+=a.length);o(r,s)};S.writeChunksSync=Vs;var Xs=async(i,e,t,n)=>{let r=await e.open(t,"w",n),s=!1;try{await(0,S.writeChunks)(r,i,0),s=!0}finally{let o=r.close();await(s?o:o.catch(Ys))}},Js=(i,e)=>{let{fs:t,strict:n,onwarn:r,codecs:s,platform:o}=i,a=new Xi.Pack(i);for(let c of e)if(typeof c!="string"||c.charAt(0)!=="@")a.add(c);else{let l=a.resolve(c.slice(1));a.add(new Vi.TarReader((0,Ji.readFile)(t,l,i.maxReadSize),{strict:n,onwarn:r,codecs:s,platform:o,file:l}))}return a.end()};S.packFiles=Js;var Zs=(i,e)=>{let{strict:t,onwarn:n,codecs:r,platform:s}=i,o=new Xi.PackSync(i);for(let a of e)if(typeof a!="string"||a.charAt(0)!=="@")o.add(a);else{let c=o.resolve(a.slice(1));o.add(new Vi.TarReaderSync((0,Ji.readFileSync)(i.fs,c,i.maxReadSize),{strict:t,onwarn:n,codecs:r,platform:s,file:c}))}return o};S.packFilesSync=Zs;function Qs(i,e){let t=(0,Ki.dealias)(i);if(!t.file)return It(t,e),(0,Gs.toStream)((0,S.packFiles)(t,e));try{return It(t,e),Xs((0,S.packFiles)(t,e),t.fs,t.file,t.mode||438)}catch(n){return Promise.reject(n)}}function eo(i,e){let t=(0,Ki.dealias)(i);It(t,e);let{file:n}=t,r=t.fs,s=(0,S.packFilesSync)(t,e);if(!n)return s;let o=r.openSync(n,"w",t.mode||438);try{(0,S.writeChunksSync)(r,o,s,0)}catch(a){try{r.closeSync(o)}catch{}throw a}r.closeSync(o)}});var xe=w(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.listSync=F.list=F.filesFilter=void 0;var Zi=Qe(),Qi=B(),en=H(),tn=ae(),to=oe(),io=(i,e)=>{let t=new Set(i.map(o=>(0,Zi.stripTrailingSlashes)(o))),n=new Set(t),r=0;for(let o of t)r=Math.max(r,o.length);let s=o=>{let a=(0,Zi.stripTrailingSlashes)(o),c=a.charAt(0)==="/"?"/":".",l=!1;for(let h=a.length;h>0;h=a.lastIndexOf("/",h-1)){if(h>r)continue;let d=a.slice(0,h);if(!(d===c||!t.has(d))&&(l=!0,n.delete(d),!n.size))break}return l};return[(o,a)=>{let c=!e||e(o,a);return s(o)&&c},o=>{for(let a of n)(0,to.warn)(o,"TAR_ENTRY_ERROR",`${a}: not found in archive`,{path:a})}]};F.filesFilter=io;var nn=()=>new TypeError("list needs input, or file and fs"),no=async(i,e)=>{let t=(0,Qi.dealias)(i),{input:n,file:r,fs:s,onEntry:o}=t,a=n??(r&&s?(0,tn.readFile)(s,r,t.maxReadSize):void 0);if(!a)throw nn();let[c,l]=e?.length?(0,F.filesFilter)(e,t.filter):[];c&&(t.filter=c);let h=new en.TarReader(a,t);try{for(;;){let d=h.poll();if(d===null)break;d===void 0?await h.fill():o&&await o(d)}}finally{await h.return()}l?.(t)};F.list=no;var ro=(i,e)=>{let t=(0,Qi.dealias)(i),{input:n,file:r,fs:s,onEntry:o}=t,a=n??(r&&s?(0,tn.readFileSync)(s,r,t.maxReadSize):void 0);if(!a)throw nn();let[c,l]=e?.length?(0,F.filesFilter)(e,t.filter):[];c&&(t.filter=c);let h=new en.TarReaderSync(a,t);for(let d of h)o?.(d);l?.(t)};F.listSync=ro});var Ht=w(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.delete=de.deleteSync=void 0;var so=re(),rn=Re(),sn=B(),he=H(),oo=xe(),on=ae(),ao=()=>{},an=(i,e)=>{if(!i.file)throw new TypeError("file is required");if(!i.fs)throw new TypeError("the file option needs the fs option");let t=[...i.codecs??[],so.gzip];if(e?.length)return[t,...(0,oo.filesFilter)(e,i.filter)];if(i.filter)return[t,i.filter];throw new TypeError("no paths specified to delete")},cn=i=>`${i}.${Math.random().toString(36).slice(2)}.tmp`,co=async(i,e)=>{let t=(0,sn.dealias)(i),[n,r,s]=an(t,e),{fs:o,file:a,filter:c,maxReadSize:l,...h}=t,d=new Uint8Array((0,he.headLength)(n)),f=0,p=await o.open(a,"r");try{for(let y=1;y>0&&f<d.length;f+=y)y=(await p.read(d,f,d.length-f,f)).bytesRead}finally{await p.close()}let{mode:_}=await o.stat(a),m=cn(a);try{await(0,rn.create)({...h,fs:o,file:m,mode:_&511,compress:(0,he.findCodec)(n,d.subarray(0,f),a),preservePaths:!0,filter:(y,j)=>!r(y,j)},[new he.TarReader((0,on.readFile)(o,a,l),{...h,file:a})]),s?.(t),await o.rename(m,a)}catch(y){throw await o.unlink(m).catch(ao),y}};de.delete=co;var lo=(i,e)=>{let t=(0,sn.dealias)(i),[n,r,s]=an(t,e),{fs:o,file:a,filter:c,maxReadSize:l,...h}=t,d=new Uint8Array((0,he.headLength)(n)),f=0,p=o.openSync(a,"r");try{for(let y=1;y>0&&f<d.length;f+=y)y=o.readSync(p,d,f,d.length-f,f)}finally{o.closeSync(p)}let{mode:_}=o.statSync(a),m=cn(a);try{(0,rn.createSync)({...h,fs:o,file:m,mode:_&511,compress:(0,he.findCodec)(n,d.subarray(0,f),a),preservePaths:!0,filter:(y,j)=>!r(y,j)},[new he.TarReaderSync((0,on.readFileSync)(o,a,l),{...h,file:a})]),s?.(t),o.renameSync(m,a)}catch(y){try{o.unlinkSync(m)}catch{}throw y}};de.deleteSync=lo});var Wt=w(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.CwdError=void 0;var $t=class extends Error{path;code;syscall="chdir";constructor(e,t){super(`${t}: Cannot cd into '${e}'`),this.path=e,this.code=t}get name(){return"CwdError"}};ot.CwdError=$t});var ct=w(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.SymlinkError=void 0;var Gt=class extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(e,t){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=e,this.path=t}get name(){return"SymlinkError"}};at.SymlinkError=Gt});var mn=w(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.mkdirSync=ue.mkdir=void 0;var ln=Wt(),hn=ct(),dn=D(),un=i=>{let e=i.mode|448,{uid:t,gid:n}=i;return{mode:e,needChmod:(e&i.umask)!==0,owner:typeof t=="number"&&typeof n=="number"&&(t!==i.processUid||n!==i.processGid)?{uid:t,gid:n}:void 0}},fn=(i,e)=>i.endsWith("/")?i+e:i+"/"+e,pn=(i,e)=>{let t=i.replaceAll("\\","/"),n=[e];for(let r=e.length;!t.endsWith(e.slice(0,r));){if(r=e.lastIndexOf("/",r-1),r<=0)return[e];n.push(e.slice(0,r))}return n},ho=async(i,e,t)=>{let{mode:n,needChmod:r,owner:s}=un(t),{cwd:o}=t,a=[];if(e===o){let c="ENOTDIR";if(!await i.stat(e).then(h=>h.isDirectory(),h=>(c=h?.code||c,!1)))throw new ln.CwdError(e,c)}else if(t.preserve){let c=await i.mkdir(e,{mode:n,recursive:!0});c&&(a=pn(c,e))}else{let c=(0,dn.relative)(o,e).split("/"),l=o;for(let h=0;h<c.length;h++){l=fn(l,c[h]);try{await i.mkdir(l,{mode:n})}catch(d){let f=await i.lstat(l);if(f.isDirectory())continue;if(!t.unlink)throw f.isSymbolicLink()?new hn.SymlinkError(l,l+"/"+c.slice(h+1).join("/")):d;await i.unlink(l),await i.mkdir(l,{mode:n})}a.push(l)}}if(s)for(let c of a)await i.lchown(c,s.uid,s.gid);r&&await i.chmod(e,n)};ue.mkdir=ho;var uo=(i,e,t)=>{let{mode:n,needChmod:r,owner:s}=un(t),{cwd:o}=t,a=[];if(e===o){let c="ENOTDIR",l=!1;try{l=i.statSync(e).isDirectory()}catch(h){c=h?.code||c}if(!l)throw new ln.CwdError(e,c)}else if(t.preserve){let c=i.mkdirSync(e,{mode:n,recursive:!0});c&&(a=pn(c,e))}else{let c=(0,dn.relative)(o,e).split("/"),l=o;for(let h=0;h<c.length;h++){l=fn(l,c[h]);try{i.mkdirSync(l,{mode:n})}catch(d){let f=i.lstatSync(l);if(f.isDirectory())continue;if(!t.unlink)throw f.isSymbolicLink()?new hn.SymlinkError(l,l+"/"+c.slice(h+1).join("/")):d;i.unlinkSync(l),i.mkdirSync(l,{mode:n})}a.push(l)}}if(s)for(let c of a)i.lchownSync(c,s.uid,s.gid);r&&i.chmodSync(e,n)};ue.mkdirSync=uo});var wn=w(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.normalizeUnicode=void 0;var Yt=Object.create(null),yn=1e4,fe=new Set,fo=256,po=i=>{if(i.length>fo)return i.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en");fe.has(i)?fe.delete(i):Yt[i]=i.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"),fe.add(i);let e=Yt[i],t=fe.size-yn;if(t>yn/10){for(let n of fe)if(fe.delete(n),delete Yt[n],--t<=0)break}return e};lt.normalizeUnicode=po});var Vt=w(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.PathReservations=void 0;var mo=wn(),yo=Qe(),wo=D(),Kt=class{#e={queue:[],name:""};#t=new Map;#i=new Set;#n;constructor(e=!1){this.#n=e}reserve(e,t){return new Promise((n,r)=>{let s=()=>{t().then(()=>{this.#a(s),n()},o=>{this.#a(s),r(o)})};this.#s(e,s)})}#s(e,t){let n=this.#e,r=new Set,s=new Set;for(let o of this.#n?["win32 parallelization disabled"]:e){let a=this.#n?o:(0,yo.stripTrailingSlashes)((0,wo.join)((0,mo.normalizeUnicode)(o))),c=n;for(let l of a.split("/")){c!==n&&s.add(c);let h=c.kids??=new Map,d=h.get(l);d||h.set(l,d={queue:[],name:l,up:c}),c=d}r.add(c)}for(let o of r)s.delete(o);this.#t.set(t,{dirs:s,paths:r});for(let o of r)o.queue.push(t);for(let{queue:o}of s){let a=o[o.length-1];a instanceof Set?a.add(t):o.push(new Set([t]))}this.#r(t)}#r(e){let{paths:t,dirs:n}=this.#t.get(e);for(let r of t)if(r.queue[0]!==e)return;for(let{queue:r}of n){let s=r[0];if(!(s instanceof Set)||!s.has(e))return}this.#i.add(e),e()}#a(e){let{paths:t,dirs:n}=this.#t.get(e),r=new Set;for(let{queue:s}of t){s.shift();let o=s[0];if(typeof o=="function")r.add(o);else if(o)for(let a of o)r.add(a)}for(let{queue:s}of n){let o=s[0];o.size>1?o.delete(e):(s.shift(),s.length&&r.add(s[0]))}for(let s of t)for(;s.up&&!s.queue.length&&!s.kids?.size;)s.up.kids?.delete(s.name),s=s.up;this.#i.delete(e),this.#t.delete(e);for(let s of r)this.#r(s)}};ht.PathReservations=Kt});var _n=w(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.writeFlags=void 0;var _o=512*1024,go=(i,e)=>{if(!i)return()=>"w";let{O_CREAT:t,O_TRUNC:n,O_WRONLY:r,O_NOFOLLOW:s,UV_FS_O_FILEMAP:o}=i,a=n|t|r;if(!e){let l=typeof s=="number"?s|a:"w";return()=>l}if(!o)return()=>"w";let c=o|a;return l=>l<_o?c:"w"};dt.writeFlags=go});var ft=w(R=>{"use strict";var bo=R&&R.__createBinding||(Object.create?(function(i,e,t,n){n===void 0&&(n=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,n,r)}):(function(i,e,t,n){n===void 0&&(n=t),i[n]=e[t]})),vo=R&&R.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),So=R&&R.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=i(e),r=0;r<n.length;r++)n[r]!=="default"&&bo(t,e,n[r]);return vo(t,e),t}})();Object.defineProperty(R,"__esModule",{value:!0});R.UnpackSync=R.Unpack=R.UnpackBase=void 0;var ko=ct(),gn=So(Tt()),Sn=H(),kn=mn(),Xt=K(),jo=Vt(),T=D(),Oo=qt(),Po=oe(),Ae=Ve(),Eo=_n(),Ro=1024,bn=32768,xo=16,ut=new Set(["File","OldFile","ContiguousFile"]),pe=new Set(["Directory","GNUDumpDir"]),Ao=new Set(["Link","SymbolicLink"]),vn=(i,e,t)=>i!==void 0?i:e!==void 0&&e===e>>>0?e:t,Te=class{opt;cwd;win32;strip;maxDepth;preservePaths;unlink;keep;newer;noMtime;chmod;uid;gid;preserveOwner;forceChown;processUid;processGid;processUmask;umask;dmode;fmode;writeFlag;resolve;dirname;fatal;constructor(e){let t=this.opt=(0,Xt.ownOptions)(e),n=this.win32=t.platform==="win32";if(this.resolve=n?Ae.win32Resolve:T.resolve,this.dirname=n?Ae.win32Dirname:T.dirname,typeof t.cwd!="string")throw new TypeError("cwd is required");let r=n?t.cwd.replaceAll("\\","/"):t.cwd;if(!(n?Ae.win32IsAbsolute:T.isAbsolute)(r))throw new TypeError("cwd must be an absolute path");if(this.cwd=this.resolve(r,""),typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.uid!==t.uid>>>0||t.gid!==t.gid>>>0)throw new TypeError("uid and gid must be unsigned 32-bit integers");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid}this.processUid=t.processUid,this.processGid=t.processGid,this.preserveOwner=t.preserveOwner===void 0&&typeof t.uid!="number"?t.processUid===0:!!t.preserveOwner,this.forceChown=t.forceChown===!0,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:Ro,this.strip=Number(t.strip)||0,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.keep=!!t.keep,this.newer=!!t.newer,this.noMtime=!!t.noMtime,this.chmod=!!t.chmod,this.processUmask=this.chmod?typeof t.processUmask=="number"?t.processUmask:18:0,this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.writeFlag=(0,Eo.writeFlags)(t.fs.constants,n)}warn(e,t,n={}){(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),n.cwd=this.cwd,(0,Po.warn)(this.opt,e,t,n)}readerOptions(){return(0,Xt.ownOptions)(this.opt,{strict:!1,onwarn:(e,t,n)=>this.warn(e,t,n)})}entryError(e,t){if(this.fatal?.error===e||e?.name==="CwdError")throw e;this.warn("TAR_ENTRY_ERROR",e,{entry:t})}fail(e){return this.fatal??={error:e},e}#e(e,t){let n=e[t];if(!n||this.preservePaths)return!0;let[r,s]=(0,Oo.stripAbsolutePath)(n),o=s.replaceAll("\\","/").split("/");if(o.includes("..")){if(t==="path"||e.type==="Link")return this.warn("TAR_ENTRY_ERROR",`${t} contains '..'`,{entry:e,[t]:n}),!1;let a=o.findIndex(h=>h!==".."&&h!=="."&&h!=="");if(a!==-1&&o.includes("..",a))return this.warn("TAR_ENTRY_ERROR",`${t} contains '..' after a path portion`,{entry:e,[t]:n}),!1;let c=(0,T.dirname)((0,T.normalize)(e.path)),l=(0,T.normalize)((0,T.join)(c,o.join("/")));if(l.startsWith("../")||l==="..")return this.warn("TAR_ENTRY_ERROR",`${t} escapes extraction directory`,{entry:e,[t]:n}),!1}return r&&(e[t]=s,this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute ${t}`,{entry:e,[t]:n})),!0}check(e){let t=e.path,n=t.split("/");if(this.strip){if(n.length<this.strip)return!1;if(e.type==="Link"){let c=String(e.linkpath).split("/");if(c.length<this.strip)return!1;e.linkpath=c.slice(this.strip).join("/")}if(n.splice(0,this.strip),n.every(c=>c===""))return!1;e.path=n.join("/")}let{maxDepth:r}=this;if(isFinite(r)&&n.length>r)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:e,path:t,depth:n.length,maxDepth:r}),!1;let{linkpath:s}=e;if(s&&isFinite(r)&&s.split("/").length>r)return this.warn("TAR_ENTRY_ERROR","linkpath excessively deep",{entry:e,path:t,linkpath:s,maxDepth:r}),!1;for(let c of["path","linkpath"]){let{length:l}=e[c]??"";if(l>bn)return this.warn("TAR_ENTRY_ERROR",`${c} excessively long`,{entry:e,path:t,length:l,maxLength:bn}),!1}if(!this.#e(e,"path")||!this.#e(e,"linkpath"))return!1;let{cwd:o}=this,a=this.resolve(o,e.path);if(!this.preservePaths&&a!==o&&!a.startsWith(o.endsWith("/")?o:o+"/"))return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:e.path,resolvedPath:a,cwd:o}),!1;if(a===o&&!pe.has(e.type))return!1;if(this.win32){let c=(0,Ae.win32Root)(a);a=c+gn.encode(a.slice(c.length));let l=(0,Ae.win32Root)(e.path);e.path=l+gn.encode(e.path.slice(l.length))}if(e.absolute=a,typeof e.mode=="number"&&(e.mode&=511),pe.has(e.type))e.mode&&(e.mode|=448);else if(!ut.has(e.type)&&!Ao.has(e.type))return e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),!1;return!0}reservedPaths(e){let{path:t,linkpath:n}=e;return n?[t,e.type==="SymbolicLink"&&!(0,T.isAbsolute)(n)?(0,T.join)((0,T.dirname)(t),n):n]:[t]}mkdirOptions(e){return{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:e}}owner(e){let t=this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid,n=vn(this.uid,e.uid,this.processUid),r=vn(this.gid,e.gid,this.processGid);return t&&typeof n=="number"&&typeof r=="number"?{uid:n,gid:r}:void 0}times(e){return e.mtime&&!this.noMtime?{atime:e.atime||new Date,mtime:e.mtime}:void 0}skip(e,t){return this.keep||this.newer&&t.mtime>(e.mtime??t.mtime)}isReusable(e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&!this.win32}linkParts(e,t){let n=String(e.linkpath);return e.type==="Link"?n.split("/"):(0,T.relative)(this.cwd,this.resolve(this.dirname(t),n)).split("/")}parentParts(e){let{cwd:t}=this,n=e===t?t:this.dirname(e);return n===t?[]:(0,T.relative)(t,n).split("/")}symlinkError(e,t){return new ko.SymlinkError(e,this.resolve(this.cwd,t.join("/")))}};R.UnpackBase=Te;var jn=i=>i+".DELETE."+Array.from(crypto.getRandomValues(new Uint8Array(16)),e=>e.toString(16).padStart(2,"0")).join(""),Jt=class extends Te{#e;#t;#i;#n=0;#s;#r=!1;#a;constructor(e){super(e),this.#e=this.opt.fs,this.#t=new jo.PathReservations(this.win32),this.#i=(0,Xt.countOption)("jobs",this.opt.jobs,xo)}async extract(e){let t=new Sn.TarReader(e,this.readerOptions()),{onEntry:n}=this.opt,r=!!this.opt.transform;try{for(;!this.fatal;){let s=t.poll();if(s===null)break;if(s===void 0){await t.fill();continue}if(n&&await n(s),s.bodyUsed||!this.check(s))continue;let o=[],a=!r;if(a&&ut.has(s.type))for(;;){let l=t.readBody(s);if(l===null)break;if(l===void 0){a=!1;break}o.push(l)}let c=this.#c(s,o,a?void 0:t);for(a||await c;this.#n>=this.#i;)await this.#o()}}catch(s){this.fail(s)}for(await t.return().catch(s=>this.fail(s));this.#n>0;)await this.#o();if(this.fatal){let{error:s}=this.fatal;throw s&&typeof s=="object"&&"tarCode"in s&&Object.assign(s,{cwd:this.cwd}),s}}#o(){return new Promise(e=>{this.#s=e})}#c(e,t,n){return this.#n++,this.#t.reserve(this.reservedPaths(e),async()=>{try{this.fatal||await this.#y(e,t,n)}catch(r){try{this.entryError(r,e)}catch(s){this.fail(s)}}this.#n--,this.#s?.()})}#l(e,t){return(0,kn.mkdir)(this.#e,e,this.mkdirOptions(t))}#d(){return this.#a??=this.#l(this.cwd,this.dmode).then(()=>{this.#r=!0},e=>{throw this.#a=void 0,e})}async#y(e,t,n){let r=this.#e,s=e.absolute,{cwd:o}=this;if(this.#r||await this.#d(),s!==o){let c=this.dirname(s);c!==o&&await this.#l(c,this.dmode)}let a=await r.lstat(s).catch(()=>{});if(!(a&&this.skip(e,a))){if(a&&!this.isReusable(e,a)&&(a.isDirectory()&&pe.has(e.type)?this.chmod&&e.mode&&(a.mode&4095)!==e.mode&&await r.chmod(s,e.mode):s!==o&&(a.isDirectory()?await r.rmdir(s):await this.#g(s))),ut.has(e.type))return this.#f(e,s,t,n);if(pe.has(e.type))await this.#h(e,s);else{await this.#u(this.linkParts(e,s));let c=String(e.linkpath);e.type==="Link"?await r.link(this.resolve(o,c),s):await r.symlink(c,s)}await this.#u(this.parentParts(s))}}async#g(e){let t=this.#e;if(!this.win32)return t.unlink(e);let n=jn(e);await t.rename(e,n),await t.unlink(n)}async#u(e){if(this.preservePaths)return;let t=this.cwd;for(let n of e){t=this.resolve(t,n);let r=await this.#e.lstat(t).catch(()=>{});if(!r)return;if(r.isSymbolicLink())throw this.symlinkError(t,e)}}async#h(e,t){let n=this.#e;await this.#l(t,e.mode??this.dmode);let r=this.times(e);r&&await n.lutimes(t,r.atime,r.mtime).catch(()=>{});let s=this.owner(e);s&&await n.lchown(t,s.uid,s.gid).catch(()=>{})}async#f(e,t,n,r){let s=this.#e,o=await s.open(t,this.writeFlag(e.size),e.mode??this.fmode);try{if(await this.#u(this.parentParts(t)),r)await this.#w(e,n,r,o);else for(let l of n)await o.write(l);let a=this.times(e);if(a){let{atime:l,mtime:h}=a;await o.utimes(l,h).catch(async d=>{await s.utimes(t,l,h).catch(()=>{throw d})})}let c=this.owner(e);if(c){let{uid:l,gid:h}=c;await o.chown(l,h).catch(async d=>{await s.chown(t,l,h).catch(()=>{throw d})})}}catch(a){throw await o.close().catch(()=>{}),a}await o.close()}async#w(e,t,n,r){let s=0,o=async()=>{if(s<t.length)return t[s++];try{for(;;){let p=n.readBody(e);if(p!==void 0)return p;await n.fill()}}catch(p){throw this.fail(p)}},a=this.opt.transform?.(e);if(!a){let p,_;try{for(let m;(m=await o())&&(await p,!_);)p=r.write(m).then(()=>{},y=>{_={error:y}})}finally{await p}if(_)throw _.error;return}let c=a.writable.getWriter(),l=a.readable.getReader(),h,d=async p=>{h??={error:p},await l.cancel(p).catch(()=>{}),await c.abort(p).catch(()=>{})},f=(async()=>{try{for(let p;p=await o();)await c.write(p);await c.close()}catch(p){await d(p)}})();try{for(;;){let{done:p,value:_}=await l.read();if(p)break;await r.write(_)}}catch(p){await d(p)}if(await f,h)throw h.error}};R.Unpack=Jt;var Zt=class extends Te{#e;#t=!1;constructor(e){super(e),this.#e=this.opt.fs}extract(e){let t=new Sn.TarReaderSync(e,this.readerOptions()),{onEntry:n}=this.opt;try{for(let r of t)if(n?.(r),!r.bodyUsed&&this.check(r))try{this.#n(r,t)}catch(s){this.entryError(s,r)}}catch(r){throw r&&typeof r=="object"&&"tarCode"in r&&Object.assign(r,{cwd:this.cwd}),r}}#i(e,t){(0,kn.mkdirSync)(this.#e,e,this.mkdirOptions(t))}#n(e,t){let n=this.#e,r=e.absolute,{cwd:s}=this;if(this.#t||(this.#i(s,this.dmode),this.#t=!0),r!==s){let a=this.dirname(r);a!==s&&this.#i(a,this.dmode)}let o;try{o=n.lstatSync(r)}catch{}if(!(o&&this.skip(e,o))){if(o&&!this.isReusable(e,o)&&(o.isDirectory()&&pe.has(e.type)?this.chmod&&e.mode&&(o.mode&4095)!==e.mode&&n.chmodSync(r,e.mode):r!==s&&(o.isDirectory()?n.rmdirSync(r):this.#s(r))),ut.has(e.type))return this.#o(e,r,t);if(pe.has(e.type))this.#a(e,r);else{this.#r(this.linkParts(e,r));let a=String(e.linkpath);e.type==="Link"?n.linkSync(this.resolve(s,a),r):n.symlinkSync(a,r)}this.#r(this.parentParts(r))}}#s(e){let t=this.#e;if(!this.win32)return t.unlinkSync(e);let n=jn(e);t.renameSync(e,n),t.unlinkSync(n)}#r(e){if(this.preservePaths)return;let t=this.cwd;for(let n of e){t=this.resolve(t,n);let r;try{r=this.#e.lstatSync(t)}catch{return}if(r.isSymbolicLink())throw this.symlinkError(t,e)}}#a(e,t){let n=this.#e;this.#i(t,e.mode??this.dmode);let r=this.times(e);if(r)try{n.lutimesSync(t,r.atime,r.mtime)}catch{}let s=this.owner(e);if(s)try{n.lchownSync(t,s.uid,s.gid)}catch{}}#o(e,t,n){let r=this.#e,s=r.openSync(t,this.writeFlag(e.size),e.mode??this.fmode);try{this.#r(this.parentParts(t));let o=this.opt.transform?.(e);for(;;){let l;try{l=n.readBody(e)}catch(h){throw this.fail(h)}if(!l)break;r.writeSync(s,o?o(l):l)}let a=this.times(e);if(a){let{atime:l,mtime:h}=a;try{r.futimesSync(s,l,h)}catch(d){try{r.utimesSync(t,l,h)}catch{throw d}}}let c=this.owner(e);if(c){let{uid:l,gid:h}=c;try{r.fchownSync(s,l,h)}catch(d){try{r.chownSync(t,l,h)}catch{throw d}}}}catch(o){try{r.closeSync(s)}catch{}throw o}r.closeSync(s)}};R.UnpackSync=Zt});var Qt=w(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.extractSync=me.extract=void 0;var On=B(),Pn=xe(),En=ae(),Rn=ft(),xn=()=>new TypeError("extract needs input or file"),To=async(i,e)=>{let t=(0,On.dealias)(i),n=t.input??(t.file?(0,En.readFile)(t.fs,t.file,t.maxReadSize):void 0);if(!n)throw xn();let[r,s]=e?.length?(0,Pn.filesFilter)(e,t.filter):[];r&&(t.filter=r),await new Rn.Unpack(t).extract(n),s?.(t)};me.extract=To;var qo=(i,e)=>{let t=(0,On.dealias)(i),n=t.input??(t.file?(0,En.readFileSync)(t.fs,t.file,t.maxReadSize):void 0);if(!n)throw xn();let[r,s]=e?.length?(0,Pn.filesFilter)(e,t.filter):[];r&&(t.filter=r),new Rn.UnpackSync(t).extract(n),s?.(t)};me.extractSync=qo});var yt=w($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.replaceSync=$.replace=$.AppendScan=void 0;var Mo=re(),qn=B(),pt=Re(),zo=Ie(),An=64*1024,Tn={},Fo=()=>{},mt=()=>new Error("cannot append to compressed archives"),Mn=(i,e)=>{let{file:t}=i;if(!t)throw new TypeError("file is required");if(i.gzip||i.brotli||i.zstd||t.endsWith(".br")||t.endsWith(".tbr"))throw new TypeError(mt().message);if(!e?.length)throw new TypeError("no paths specified to add/replace")},qe=class{buf=new Uint8Array(An);pos=0;#e;#t;#i;#n;constructor(e,t=[],n){this.#e=e,this.#i=[...t,Mo.gzip],this.#n=n,this.#t=new zo.Parser({filter:()=>!1,onwarn:()=>{throw Tn}})}get position(){return this.#t.position}get want(){return Math.min(An,this.#e-this.pos)}push(e){let t=this.buf.subarray(0,e);if(this.pos===0&&this.#i.some(s=>s.detect(t)))throw mt();let n=this.#t;this.pos+=e;let r=0;n.push(t);try{for(let s;s=n.next();){if(s.type!=="entry")return!1;let{entry:o}=s;if(r=n.offset+512*Math.ceil(o.size/512),r>this.#e)return!1;o.mtime&&this.#n?.set(o.path,o.mtime)}this.pos<r&&(n.skipBody(),this.pos=r)}catch(s){if(s!==Tn)throw s;return!1}return e>0&&this.pos<this.#e}};$.AppendScan=qe;var Co=async(i,e)=>{let t=(0,qn.dealias)(i);Mn(t,e);let{fs:n,file:r}=t,s=(0,pt.packFiles)(t,e);if(s.codec)throw new TypeError(mt().message);let o=await n.open(r,"r+").catch(c=>{if(c?.code!=="ENOENT")throw c;return n.open(r,"w+",t.mode||438)}),a=!1;try{let{size:c}=await o.stat(),l=new qe(c,t.codecs,t.mtimeCache);for(;l.push((await o.read(l.buf,0,l.want,l.pos)).bytesRead););await(0,pt.writeChunks)(o,s,l.position),a=!0}finally{let c=o.close();await(a?c:c.catch(Fo))}};$.replace=Co;var Uo=(i,e)=>{let t=(0,qn.dealias)(i);Mn(t,e);let{fs:n,file:r}=t,s=(0,pt.packFilesSync)(t,e);if(s.codec)throw new TypeError(mt().message);let o;try{o=n.openSync(r,"r+")}catch(a){if(a?.code!=="ENOENT")throw a;o=n.openSync(r,"w+",t.mode||438)}try{let{size:a}=n.fstatSync(o),c=new qe(a,t.codecs,t.mtimeCache);for(;c.push(n.readSync(o,c.buf,0,c.want,c.pos)););(0,pt.writeChunksSync)(n,o,s,c.position)}catch(a){try{n.closeSync(o)}catch{}throw a}n.closeSync(o)};$.replaceSync=Uo});var ei=w(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.updateSync=ye.update=void 0;var zn=yt(),Do=(i,e)=>{let t=e.getTime(),n=i.getTime();return(t%1e3===0?n-n%1e3:n)>t},Fn=i=>{let{filter:e}=i,t=i.mtimeCache??new Map;return{...i,mtimeCache:t,filter:(n,r)=>{if(e&&!e(n,r))return!1;if("isDirectory"in r&&r.isDirectory())return!0;let s=t.get(n);return!s||!r.mtime||Do(r.mtime,s)}}},Lo=(i,e)=>(0,zn.replace)(Fn(i),e);ye.update=Lo;var No=(i,e)=>(0,zn.replaceSync)(Fn(i),e);ye.updateSync=No});var ri=w(u=>{"use strict";var Bo=u&&u.__createBinding||(Object.create?(function(i,e,t,n){n===void 0&&(n=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,n,r)}):(function(i,e,t,n){n===void 0&&(n=t),i[n]=e[t]})),Io=u&&u.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),Ho=u&&u.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=i(e),r=0;r<n.length;r++)n[r]!=="default"&&Bo(t,e,n[r]);return Io(t,e),t}})();Object.defineProperty(u,"__esModule",{value:!0});u.WriteEntry=u.u=u.update=u.UnpackBase=u.Unpack=u.SymlinkError=u.r=u.replace=u.AppendScan=u.ReadEntry=u.EntryData=u.PathReservations=u.Parser=u.PackJob=u.PackBase=u.Pack=u.t=u.list=u.x=u.extract=u.TarReader=u.EntryCursor=u.entries=u.aliases=u.CwdError=u.delete=u.c=u.create=u.gzip=u.types=u.Pax=u.Header=void 0;var $o=ne();Object.defineProperty(u,"Header",{enumerable:!0,get:function(){return $o.Header}});var Wo=ze();Object.defineProperty(u,"Pax",{enumerable:!0,get:function(){return Wo.Pax}});u.types=Ho(gt());var Go=re();Object.defineProperty(u,"gzip",{enumerable:!0,get:function(){return Go.gzip}});var Cn=Re();Object.defineProperty(u,"create",{enumerable:!0,get:function(){return Cn.create}});Object.defineProperty(u,"c",{enumerable:!0,get:function(){return Cn.create}});var Yo=Ht();Object.defineProperty(u,"delete",{enumerable:!0,get:function(){return Yo.delete}});var Ko=Wt();Object.defineProperty(u,"CwdError",{enumerable:!0,get:function(){return Ko.CwdError}});var Vo=B();Object.defineProperty(u,"aliases",{enumerable:!0,get:function(){return Vo.aliases}});var ti=H();Object.defineProperty(u,"entries",{enumerable:!0,get:function(){return ti.entries}});Object.defineProperty(u,"EntryCursor",{enumerable:!0,get:function(){return ti.EntryCursor}});Object.defineProperty(u,"TarReader",{enumerable:!0,get:function(){return ti.TarReader}});var Un=Qt();Object.defineProperty(u,"extract",{enumerable:!0,get:function(){return Un.extract}});Object.defineProperty(u,"x",{enumerable:!0,get:function(){return Un.extract}});var Dn=xe();Object.defineProperty(u,"list",{enumerable:!0,get:function(){return Dn.list}});Object.defineProperty(u,"t",{enumerable:!0,get:function(){return Dn.list}});var ii=rt();Object.defineProperty(u,"Pack",{enumerable:!0,get:function(){return ii.Pack}});Object.defineProperty(u,"PackBase",{enumerable:!0,get:function(){return ii.PackBase}});Object.defineProperty(u,"PackJob",{enumerable:!0,get:function(){return ii.PackJob}});var Xo=Ie();Object.defineProperty(u,"Parser",{enumerable:!0,get:function(){return Xo.Parser}});var Jo=Vt();Object.defineProperty(u,"PathReservations",{enumerable:!0,get:function(){return Jo.PathReservations}});var Ln=ve();Object.defineProperty(u,"EntryData",{enumerable:!0,get:function(){return Ln.EntryData}});Object.defineProperty(u,"ReadEntry",{enumerable:!0,get:function(){return Ln.ReadEntry}});var ni=yt();Object.defineProperty(u,"AppendScan",{enumerable:!0,get:function(){return ni.AppendScan}});Object.defineProperty(u,"replace",{enumerable:!0,get:function(){return ni.replace}});Object.defineProperty(u,"r",{enumerable:!0,get:function(){return ni.replace}});var Zo=ct();Object.defineProperty(u,"SymlinkError",{enumerable:!0,get:function(){return Zo.SymlinkError}});var Nn=ft();Object.defineProperty(u,"Unpack",{enumerable:!0,get:function(){return Nn.Unpack}});Object.defineProperty(u,"UnpackBase",{enumerable:!0,get:function(){return Nn.UnpackBase}});var Bn=ei();Object.defineProperty(u,"update",{enumerable:!0,get:function(){return Bn.update}});Object.defineProperty(u,"u",{enumerable:!0,get:function(){return Bn.update}});var Qo=Ft();Object.defineProperty(u,"WriteEntry",{enumerable:!0,get:function(){return Qo.WriteEntry}})});var oi=w(P=>{"use strict";var ea=P&&P.__createBinding||(Object.create?(function(i,e,t,n){n===void 0&&(n=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,n,r)}):(function(i,e,t,n){n===void 0&&(n=t),i[n]=e[t]})),ta=P&&P.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),ia=P&&P.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=i(e),r=0;r<n.length;r++)n[r]!=="default"&&ea(t,e,n[r]);return ta(t,e),t}})();Object.defineProperty(P,"__esModule",{value:!0});P.zlibCodecs=P.codecStream=void 0;var na=require("node:buffer"),ra=ia(require("node:zlib")),wt=64*1024,sa=(i,e=!1,t)=>{let n,r,s=!1,o=!1,a,c,l=e?new Uint8Array(wt):void 0,h=0,d=m=>new Promise(y=>{a=y,i.write(m,()=>y())}),f=async m=>{h&&await d(m.subarray(0,h)),h=0},p=()=>{o=!0,a?.(),c?.()},_=()=>{p(),i.destroy()};return i.pause(),i.on("data",m=>{t?.(m),t=void 0,s=!1,i.pause(),n.enqueue(m)}),i.on("end",()=>{o||n.close()}),i.on("error",m=>{n.error(m),r.error(m),p()}),i.on("close",p),{readable:new ReadableStream({start:m=>{n=m},pull:()=>{s=!0,c?.(),i.resume()},cancel:m=>{r.error(m),_()}},{highWaterMark:0}),writable:new WritableStream({start:m=>{r=m;let{signal:y}=m;y.addEventListener("abort",()=>{n.error(y.reason),_()})},write:async m=>{l?(h+m.length>wt&&await f(l),m.length>wt?await d(m):(l.set(m,h),h+=m.length)):await d(m),!s&&!o&&await new Promise(y=>c=y)},close:async()=>{l&&await f(l),await new Promise(m=>{a=m,i.end()})}})}};P.codecStream=sa;var oa=i=>i>=na.constants.MAX_LENGTH?{}:{maxOutputLength:Math.max(1,Math.floor(i))},si=(i,e,t,n,r)=>({...i,decompress:()=>(0,P.codecStream)(t({chunkSize:wt})),compress:s=>(0,P.codecStream)(e(s),!0),decompressSync:(s,{maxOutputLength:o})=>{try{return r(s,oa(o))}catch(a){throw a?.code!=="ERR_BUFFER_TOO_LARGE"?a:new Error(`max decompression ratio exceeded: the output is larger than ${o} bytes`)}},compressSync:n}),In=i=>{i[9]=255},aa=(i=ra)=>{let{createBrotliCompress:e,createBrotliDecompress:t,brotliCompressSync:n,brotliDecompressSync:r,createZstdCompress:s,createZstdDecompress:o,zstdCompressSync:a,zstdDecompressSync:c}=i,h=[{...si({name:"gzip",headLength:2,detect:d=>d[0]===31&&d[1]===139},i.createGzip,i.createGunzip,i.gzipSync,i.gunzipSync),compress:({portable:d,...f}={})=>(0,P.codecStream)(i.createGzip(f),!0,d?In:void 0),compressSync:(d,{portable:f,...p}={})=>{let _=i.gzipSync(d,p);return f&&In(_),_}}];return e&&t&&n&&r&&h.push(si({name:"brotli",headLength:0,detect:()=>!1,extensions:[".tar.br",".tbr"]},e,t,n,r)),s&&o&&a&&c&&h.push(si({name:"zstd",headLength:4,detect:d=>d[0]===40&&d[1]===181&&d[2]===47&&d[3]===253},s,o,a,c)),h};P.zlibCodecs=aa});var Hn=exports&&exports.__createBinding||(Object.create?(function(i,e,t,n){n===void 0&&(n=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,n,r)}):(function(i,e,t,n){n===void 0&&(n=t),i[n]=e[t]})),ca=exports&&exports.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),ai=exports&&exports.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},i(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=i(e),r=0;r<n.length;r++)n[r]!=="default"&&Hn(t,e,n[r]);return ca(t,e),t}})(),la=exports&&exports.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Hn(e,i,t)};Object.defineProperty(exports,"__esModule",{value:!0});exports.u=exports.r=exports.t=exports.x=exports.delete=exports.deleteSync=exports.updateSync=exports.update=exports.replaceSync=exports.replace=exports.extractSync=exports.extract=exports.listSync=exports.list=exports.entriesSync=exports.entries=exports.codecStream=exports.zlibCodecs=exports.UnpackSync=exports.ReadEntrySync=exports.PackSync=exports.TarReaderSync=void 0;exports.create=_t;exports.c=_t;exports.createSync=za;exports.create=_t;exports.c=_t;var ha=ai(require("node:fs")),da=ai(require("node:fs/promises")),ua=require("node:path"),Q=ai(ri()),fa=Re(),pa=Ht(),ma=B(),ya=H(),wa=Qt(),_a=xe(),ga=yt(),ba=ei(),va=oi();la(ri(),exports);var Sa=H();Object.defineProperty(exports,"TarReaderSync",{enumerable:!0,get:function(){return Sa.TarReaderSync}});var ka=rt();Object.defineProperty(exports,"PackSync",{enumerable:!0,get:function(){return ka.PackSync}});var ja=ve();Object.defineProperty(exports,"ReadEntrySync",{enumerable:!0,get:function(){return ja.ReadEntrySync}});var Oa=ft();Object.defineProperty(exports,"UnpackSync",{enumerable:!0,get:function(){return Oa.UnpackSync}});var $n=oi();Object.defineProperty(exports,"zlibCodecs",{enumerable:!0,get:function(){return $n.zlibCodecs}});Object.defineProperty(exports,"codecStream",{enumerable:!0,get:function(){return $n.codecStream}});var ee=da,te=ha,Pa=process.platform==="win32"?"win32":"posix",Ea=(0,va.zlibCodecs)(),x=(i,e,t)=>{let n=(0,ma.dealias)(i);return n.fs??=e,n.platform??=Pa,n.codecs=[...n.codecs??[],...Ea],t&&(n.cwd=(0,ua.resolve)(n.cwd??""),n.processUid??=process.getuid?.(),n.processGid??=process.getgid?.(),n.processUname??=process.env.USER,n.chmod&&(n.processUmask??=process.umask())),n},Ra=(i,e={})=>Q.entries(i,x(e,ee,!1));exports.entries=Ra;var xa=(i,e={})=>(0,ya.entriesSync)(i,x(e,te,!1));exports.entriesSync=xa;var Aa=(i,e)=>Q.list(x(i,ee,!1),e);exports.list=Aa;exports.t=exports.list;var Ta=(i,e)=>(0,_a.listSync)(x(i,te,!1),e);exports.listSync=Ta;var qa=(i,e)=>Q.extract(x(i,ee,!0),e);exports.extract=qa;exports.x=exports.extract;var Ma=(i,e)=>(0,wa.extractSync)(x(i,te,!0),e);exports.extractSync=Ma;function _t(i,e){return Q.create(x(i,ee,!0),e)}function za(i,e){return(0,fa.createSync)(x(i,te,!0),e)}var Fa=(i,e)=>Q.replace(x(i,ee,!0),e);exports.replace=Fa;exports.r=exports.replace;var Ca=(i,e)=>(0,ga.replaceSync)(x(i,te,!0),e);exports.replaceSync=Ca;var Ua=(i,e)=>Q.update(x(i,ee,!0),e);exports.update=Ua;exports.u=exports.update;var Da=(i,e)=>(0,ba.updateSync)(x(i,te,!0),e);exports.updateSync=Da;var La=(i,e)=>Q.delete(x(i,ee,!1),e);exports.delete=La;var Na=(i,e)=>(0,pa.deleteSync)(x(i,te,!1),e);exports.deleteSync=Na;
|
|
3
|
+
//# sourceMappingURL=index.min.js.map
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remove each root from the start of a path. Returns the roots and
|
|
3
|
+
* the rest of the path.
|
|
4
|
+
*
|
|
5
|
+
* A POSIX absolute path is also absolute on Windows, so the rules of
|
|
6
|
+
* Windows are used on each platform. A path that is relative to a
|
|
7
|
+
* drive loses the drive: `c:../foo` gives `['c:', '../foo']`.
|
|
8
|
+
*/
|
|
1
9
|
export declare const stripAbsolutePath: (path: string) => [string, string];
|
|
2
10
|
//# sourceMappingURL=strip-absolute-path.d.ts.map
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stripAbsolutePath = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
const win32_path_js_1 = require("./win32-path.js");
|
|
5
|
+
/**
|
|
6
|
+
* Remove each root from the start of a path. Returns the roots and
|
|
7
|
+
* the rest of the path.
|
|
8
|
+
*
|
|
9
|
+
* A POSIX absolute path is also absolute on Windows, so the rules of
|
|
10
|
+
* Windows are used on each platform. A path that is relative to a
|
|
11
|
+
* drive loses the drive: `c:../foo` gives `['c:', '../foo']`.
|
|
12
|
+
*/
|
|
13
13
|
const stripAbsolutePath = (path) => {
|
|
14
|
-
let
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
//
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'/'
|
|
21
|
-
: parsed.root;
|
|
14
|
+
let roots = '';
|
|
15
|
+
for (let root; (root = (0, win32_path_js_1.win32Root)(path));) {
|
|
16
|
+
// Windows reads `//x/y/` as the root of `//x/y/z`. Remove only the
|
|
17
|
+
// first slash, but remove all of `//?/c:/`.
|
|
18
|
+
if (path.charAt(0) === '/' && path.slice(0, 4) !== '//?/')
|
|
19
|
+
root = '/';
|
|
22
20
|
path = path.slice(root.length);
|
|
23
|
-
|
|
24
|
-
parsed = parse(path);
|
|
21
|
+
roots += root;
|
|
25
22
|
}
|
|
26
|
-
return [
|
|
23
|
+
return [roots, path];
|
|
27
24
|
};
|
|
28
25
|
exports.stripAbsolutePath = stripAbsolutePath;
|
|
29
26
|
//# sourceMappingURL=strip-absolute-path.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make a stream of the chunks of an iterator. It asks the iterator
|
|
3
|
+
* for a chunk only when a consumer reads the stream. A cancel of the
|
|
4
|
+
* stream calls `return()` of the iterator.
|
|
5
|
+
*/
|
|
6
|
+
export declare const toStream: (chunks: AsyncIterator<Uint8Array, unknown>) => ReadableStream<Uint8Array>;
|
|
7
|
+
//# sourceMappingURL=to-stream.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toStream = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Make a stream of the chunks of an iterator. It asks the iterator
|
|
6
|
+
* for a chunk only when a consumer reads the stream. A cancel of the
|
|
7
|
+
* stream calls `return()` of the iterator.
|
|
8
|
+
*/
|
|
9
|
+
const toStream = (chunks) => new ReadableStream({
|
|
10
|
+
pull: async (controller) => {
|
|
11
|
+
const res = await chunks.next();
|
|
12
|
+
if (res.done)
|
|
13
|
+
controller.close();
|
|
14
|
+
else
|
|
15
|
+
controller.enqueue(res.value);
|
|
16
|
+
},
|
|
17
|
+
cancel: async () => {
|
|
18
|
+
await chunks.return?.();
|
|
19
|
+
},
|
|
20
|
+
}, { highWaterMark: 0 });
|
|
21
|
+
exports.toStream = toStream;
|
|
22
|
+
//# sourceMappingURL=to-stream.js.map
|
|
@@ -5,10 +5,11 @@ export type EntryTypeName = 'File' | 'OldFile' | 'Link' | 'SymbolicLink' | 'Char
|
|
|
5
5
|
/**
|
|
6
6
|
* types that are a normal file system entry, not metadata.
|
|
7
7
|
*
|
|
8
|
-
* These can be the subject of extended/globalExtended headers, long
|
|
9
|
-
* names, long linkpath names, etc.
|
|
8
|
+
* These can be the subject of extended/globalExtended headers, long
|
|
9
|
+
* path names, long linkpath names, etc.
|
|
10
10
|
*
|
|
11
|
-
* Any other types are meta, and cannot be
|
|
11
|
+
* Any other types are meta, and cannot be targeted by extended PAX
|
|
12
|
+
* headers.
|
|
12
13
|
*/
|
|
13
14
|
export declare const normalFsTypes: Set<EntryTypeCode>;
|
|
14
15
|
export declare const name: Map<EntryTypeCode, EntryTypeName>;
|
|
@@ -8,10 +8,11 @@ exports.isName = isName;
|
|
|
8
8
|
/**
|
|
9
9
|
* types that are a normal file system entry, not metadata.
|
|
10
10
|
*
|
|
11
|
-
* These can be the subject of extended/globalExtended headers, long
|
|
12
|
-
* names, long linkpath names, etc.
|
|
11
|
+
* These can be the subject of extended/globalExtended headers, long
|
|
12
|
+
* path names, long linkpath names, etc.
|
|
13
13
|
*
|
|
14
|
-
* Any other types are meta, and cannot be
|
|
14
|
+
* Any other types are meta, and cannot be targeted by extended PAX
|
|
15
|
+
* headers.
|
|
15
16
|
*/
|
|
16
17
|
exports.normalFsTypes = new Set([
|
|
17
18
|
'0',
|
|
@@ -1,101 +1,155 @@
|
|
|
1
|
-
import { type Stats } from 'node:fs';
|
|
2
|
-
import type { MkdirError } from './mkdir.js';
|
|
3
|
-
import { Parser } from './parse.js';
|
|
4
|
-
import type { TarOptions } from './options.js';
|
|
5
|
-
import { PathReservations } from './path-reservations.js';
|
|
6
|
-
import type { ReadEntry } from './read-entry.js';
|
|
7
|
-
import type { WarnData } from './warn-method.js';
|
|
8
1
|
import { SymlinkError } from './symlink-error.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
declare
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
writable: true;
|
|
42
|
-
readable: false;
|
|
2
|
+
import type { ExtractStats } from './fs.js';
|
|
3
|
+
import { type MkdirOptions } from './mkdir.js';
|
|
4
|
+
import { type ExtractOptions, type ExtractOptionsSync, type ReadOptions, type TarInput, type TarInputSync, type UnpackOptions } from './options.js';
|
|
5
|
+
import type { EntryData, ReadEntry, ReadEntrySync } from './read-entry.js';
|
|
6
|
+
import { type WarnData } from './warn.js';
|
|
7
|
+
import { type OpenConstants } from './write-flag.js';
|
|
8
|
+
/** The options that `UnpackBase` reads. */
|
|
9
|
+
export type UnpackBaseOptions<E extends EntryData> = ReadOptions<E> & UnpackOptions & {
|
|
10
|
+
fs: {
|
|
11
|
+
constants?: OpenConstants;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The parts of the extraction that do not use the file system: the
|
|
16
|
+
* options, the checks of each entry, and the warnings. `Unpack` and
|
|
17
|
+
* `UnpackSync` add the file system work.
|
|
18
|
+
*/
|
|
19
|
+
export declare class UnpackBase<E extends EntryData, O extends UnpackBaseOptions<E> = UnpackBaseOptions<E>> {
|
|
20
|
+
#private;
|
|
21
|
+
/** The options, with no prototype. */
|
|
22
|
+
opt: O;
|
|
23
|
+
/** The absolute path of the extraction directory. */
|
|
24
|
+
cwd: string;
|
|
25
|
+
win32: boolean;
|
|
26
|
+
strip: number;
|
|
27
|
+
maxDepth: number;
|
|
28
|
+
preservePaths: boolean;
|
|
29
|
+
unlink: boolean;
|
|
30
|
+
keep: boolean;
|
|
31
|
+
newer: boolean;
|
|
32
|
+
noMtime: boolean;
|
|
33
|
+
chmod: boolean;
|
|
43
34
|
uid?: number;
|
|
44
35
|
gid?: number;
|
|
45
|
-
setOwner: boolean;
|
|
46
36
|
preserveOwner: boolean;
|
|
47
|
-
processGid?: number;
|
|
48
|
-
processUid?: number;
|
|
49
|
-
maxDepth: number;
|
|
50
37
|
forceChown: boolean;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
keep: boolean;
|
|
54
|
-
noMtime: boolean;
|
|
55
|
-
preservePaths: boolean;
|
|
56
|
-
unlink: boolean;
|
|
57
|
-
cwd: string;
|
|
58
|
-
strip: number;
|
|
38
|
+
processUid?: number;
|
|
39
|
+
processGid?: number;
|
|
59
40
|
processUmask: number;
|
|
60
41
|
umask: number;
|
|
61
42
|
dmode: number;
|
|
62
43
|
fmode: number;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
44
|
+
/** Gives the `open` flag for a new file of a given size. */
|
|
45
|
+
writeFlag: (size: number) => string | number;
|
|
46
|
+
/** Resolve a path from an absolute path. */
|
|
47
|
+
resolve: (base: string, path: string) => string;
|
|
48
|
+
/** The parent directory of an absolute path. */
|
|
49
|
+
dirname: (path: string) => string;
|
|
50
|
+
/** Set when an error stops the extraction. */
|
|
51
|
+
fatal?: {
|
|
52
|
+
error: unknown;
|
|
53
|
+
};
|
|
54
|
+
constructor(options: O);
|
|
55
|
+
/**
|
|
56
|
+
* Report a problem to `onwarn`, or throw it if `strict` is set. A
|
|
57
|
+
* damaged archive is always an error here, because the extraction
|
|
58
|
+
* cannot be complete.
|
|
59
|
+
*/
|
|
60
|
+
warn(code: string, message: string | Error, data?: WarnData): void;
|
|
61
|
+
/** The options for the reader. Its warnings go to `warn()`. */
|
|
62
|
+
readerOptions(): ReadOptions<E>;
|
|
63
|
+
/**
|
|
64
|
+
* Report the failure of one entry as a `TAR_ENTRY_ERROR` warning.
|
|
65
|
+
* Throws the error if it stops the extraction: the extraction
|
|
66
|
+
* directory is not usable, the archive cannot be read, or `strict`
|
|
67
|
+
* is set.
|
|
68
|
+
*/
|
|
69
|
+
entryError(er: unknown, entry: E): void;
|
|
70
|
+
/** Record the error that stops the extraction. Returns it. */
|
|
71
|
+
fail(error: unknown): unknown;
|
|
72
|
+
/**
|
|
73
|
+
* Check the entry, with no use of the file system. Set its
|
|
74
|
+
* `absolute` path, and change its `path`, `linkpath`, and `mode` to
|
|
75
|
+
* the values to extract. False if the entry must not be extracted.
|
|
76
|
+
*/
|
|
77
|
+
check(entry: E): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* The paths that the entry must have for itself while it is made.
|
|
80
|
+
* A link also reserves its target, so that an entry that makes the
|
|
81
|
+
* target, and an entry that goes through the link, do not run at
|
|
82
|
+
* the same time as the link.
|
|
83
|
+
*/
|
|
84
|
+
reservedPaths(entry: E): string[];
|
|
85
|
+
/** The options to make a directory with a mode. */
|
|
86
|
+
mkdirOptions(mode: number): MkdirOptions;
|
|
87
|
+
/**
|
|
88
|
+
* The owner to set on the entry, if it needs one: with
|
|
89
|
+
* `preserveOwner`, when the owner in the archive is not the process
|
|
90
|
+
* owner, and with `uid` and `gid`, when they are not the process
|
|
91
|
+
* owner.
|
|
92
|
+
*/
|
|
93
|
+
owner(entry: E): {
|
|
94
|
+
uid: number;
|
|
95
|
+
gid: number;
|
|
96
|
+
} | undefined;
|
|
97
|
+
/** The times to set on the entry, if it needs them. */
|
|
98
|
+
times(entry: E): {
|
|
99
|
+
atime: Date;
|
|
100
|
+
mtime: Date;
|
|
101
|
+
} | undefined;
|
|
102
|
+
/** True if the object on disk at the path of the entry must stay. */
|
|
103
|
+
skip(entry: E, st: ExtractStats): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* True if the entry can be written into the file that is on disk.
|
|
106
|
+
* A file with more than one link is not used, because the write
|
|
107
|
+
* would change the other links. Windows does not report a useful
|
|
108
|
+
* link count.
|
|
109
|
+
*/
|
|
110
|
+
isReusable(entry: E, st: ExtractStats): boolean;
|
|
111
|
+
/**
|
|
112
|
+
* The parts of the path from the extraction directory to the
|
|
113
|
+
* target of a link entry. None of them can be a symbolic link.
|
|
114
|
+
*/
|
|
115
|
+
linkParts(entry: E, absolute: string): string[];
|
|
116
|
+
/**
|
|
117
|
+
* The parts of the path from the extraction directory to the
|
|
118
|
+
* parent directory of an entry. The extraction checks them again
|
|
119
|
+
* after it makes the entry: none of them can be a symbolic link
|
|
120
|
+
* then. So a directory that another process replaced with a
|
|
121
|
+
* symbolic link during the extraction is an error of the entry.
|
|
122
|
+
*/
|
|
123
|
+
parentParts(absolute: string): string[];
|
|
124
|
+
/** The error for a link target that goes through a symbolic link. */
|
|
125
|
+
symlinkError(symlink: string, parts: string[]): SymlinkError;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Extracts the entries of an archive with async file system
|
|
129
|
+
* functions.
|
|
130
|
+
*
|
|
131
|
+
* Several entries are extracted at one time. Entries that use the
|
|
132
|
+
* same path, or a path and a directory above it, are extracted in
|
|
133
|
+
* the order of the archive.
|
|
134
|
+
*/
|
|
135
|
+
export declare class Unpack extends UnpackBase<ReadEntry, ExtractOptions> {
|
|
136
|
+
#private;
|
|
137
|
+
constructor(opt: ExtractOptions);
|
|
138
|
+
/**
|
|
139
|
+
* Extract the archive. The promise settles when all the file
|
|
140
|
+
* system work is done. It rejects with the first error that stops
|
|
141
|
+
* the extraction.
|
|
142
|
+
*/
|
|
143
|
+
extract(input: TarInput): Promise<void>;
|
|
89
144
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
145
|
+
/**
|
|
146
|
+
* Extracts the entries of an archive with sync file system
|
|
147
|
+
* functions, one entry at a time.
|
|
148
|
+
*/
|
|
149
|
+
export declare class UnpackSync extends UnpackBase<ReadEntrySync, ExtractOptionsSync> {
|
|
150
|
+
#private;
|
|
151
|
+
constructor(opt: ExtractOptionsSync);
|
|
152
|
+
/** Extract the archive. Throws the first error that stops it. */
|
|
153
|
+
extract(input: TarInputSync): void;
|
|
99
154
|
}
|
|
100
|
-
export {};
|
|
101
155
|
//# sourceMappingURL=unpack.d.ts.map
|