@bleedingdev/modern-js-utils 3.9.0-ultramodern.8 → 3.9.3-ultramodern.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli/applyOptionsChain.js +1 -1
- package/dist/cjs/cli/get/config.js +1 -1
- package/dist/cjs/cli/is/config.js +1 -1
- package/dist/cjs/cli/require.js +3 -7
- package/dist/cjs/compiled.js +28 -34
- package/dist/cjs/fast-glob.js +50 -0
- package/dist/cjs/watch-options.js +18 -0
- package/dist/compiled/address/LICENSE.txt +22 -0
- package/dist/compiled/address/declaration-licenses/address/LICENSE.txt +22 -0
- package/dist/compiled/address/index.d.mts +50 -0
- package/dist/compiled/address/index.d.ts +50 -0
- package/dist/compiled/address/index.js +189 -136
- package/dist/compiled/address/index.mjs +187 -0
- package/dist/compiled/address/licenses-cjs.txt +24 -0
- package/dist/compiled/address/licenses-esm.txt +24 -0
- package/dist/compiled/address/package.json +1 -1
- package/dist/compiled/address/provenance.json +22 -0
- package/dist/compiled/browserslist/LICENSE +20 -0
- package/dist/compiled/browserslist/declaration-licenses/browserslist/LICENSE +20 -0
- package/dist/compiled/browserslist/index.d.ts +51 -5
- package/dist/compiled/browserslist/index.js +1763 -820
- package/dist/compiled/browserslist/licenses-cjs.txt +286 -0
- package/dist/compiled/browserslist/package.json +1 -1
- package/dist/compiled/browserslist/provenance.json +19 -0
- package/dist/compiled/chalk/declaration-licenses/chalk/license +9 -0
- package/dist/compiled/chalk/index.d.mts +677 -0
- package/dist/compiled/chalk/index.d.ts +619 -357
- package/dist/compiled/chalk/index.js +734 -2343
- package/dist/compiled/chalk/index.mjs +761 -0
- package/dist/compiled/chalk/license +1 -1
- package/dist/compiled/chalk/licenses-cjs.txt +11 -0
- package/dist/compiled/chalk/licenses-esm.txt +11 -0
- package/dist/compiled/chalk/package.json +1 -1
- package/dist/compiled/chalk/provenance.json +19 -0
- package/dist/compiled/chokidar/LICENSE +21 -0
- package/dist/compiled/chokidar/declaration-licenses/chokidar/LICENSE +21 -0
- package/dist/compiled/chokidar/declaration-licenses/readdirp/LICENSE +21 -0
- package/dist/compiled/chokidar/index.d.mts +385 -0
- package/dist/compiled/chokidar/index.d.ts +385 -0
- package/dist/compiled/chokidar/index.js +1437 -4099
- package/dist/compiled/chokidar/index.js.LICENSE.txt +1 -41
- package/dist/compiled/chokidar/index.mjs +1492 -0
- package/dist/compiled/chokidar/index.mjs.LICENSE.txt +1 -0
- package/dist/compiled/chokidar/licenses-cjs.txt +48 -0
- package/dist/compiled/chokidar/licenses-esm.txt +48 -0
- package/dist/compiled/chokidar/package.json +1 -1
- package/dist/compiled/chokidar/provenance.json +27 -0
- package/dist/compiled/commander/declaration-licenses/commander/LICENSE +22 -0
- package/dist/compiled/commander/index.d.mts +1116 -0
- package/dist/compiled/commander/index.d.ts +1116 -0
- package/dist/compiled/commander/index.js +1738 -1499
- package/dist/compiled/commander/index.mjs +1778 -2
- package/dist/compiled/commander/licenses-cjs.txt +24 -0
- package/dist/compiled/commander/licenses-esm.txt +24 -0
- package/dist/compiled/commander/package.json +1 -1
- package/dist/compiled/commander/provenance.json +22 -0
- package/dist/compiled/debug/declaration-licenses/@types_ms/LICENSE +21 -0
- package/dist/compiled/debug/index.d.ts +79 -16
- package/dist/compiled/debug/index.js +172 -106
- package/dist/compiled/debug/licenses-cjs.txt +60 -0
- package/dist/compiled/debug/package.json +1 -1
- package/dist/compiled/debug/provenance.json +27 -0
- package/dist/compiled/dotenv-expand/declaration-licenses/dotenv-expand/LICENSE +24 -0
- package/dist/compiled/dotenv-expand/index.d.ts +48 -10
- package/dist/compiled/dotenv-expand/index.js +65 -41
- package/dist/compiled/dotenv-expand/licenses-cjs.txt +25 -0
- package/dist/compiled/dotenv-expand/package.json +1 -1
- package/dist/compiled/dotenv-expand/provenance.json +22 -0
- package/dist/compiled/execa/declaration-licenses/execa/license +9 -0
- package/dist/compiled/execa/index.d.mts +2451 -0
- package/dist/compiled/execa/index.d.ts +2301 -414
- package/dist/compiled/execa/index.js +6485 -1681
- package/dist/compiled/execa/index.mjs +6541 -0
- package/dist/compiled/execa/licenses-cjs.txt +443 -0
- package/dist/compiled/execa/licenses-esm.txt +443 -0
- package/dist/compiled/execa/package.json +1 -1
- package/dist/compiled/execa/provenance.json +19 -0
- package/dist/compiled/filesize/LICENSE +28 -0
- package/dist/compiled/filesize/declaration-licenses/filesize/LICENSE +28 -0
- package/dist/compiled/filesize/index.d.mts +98 -0
- package/dist/compiled/filesize/index.d.ts +98 -0
- package/dist/compiled/filesize/index.js +425 -185
- package/dist/compiled/filesize/index.js.LICENSE.txt +2 -2
- package/dist/compiled/filesize/index.mjs +450 -0
- package/dist/compiled/filesize/index.mjs.LICENSE.txt +7 -0
- package/dist/compiled/filesize/licenses-cjs.txt +29 -0
- package/dist/compiled/filesize/licenses-esm.txt +29 -0
- package/dist/compiled/filesize/package.json +1 -1
- package/dist/compiled/filesize/provenance.json +22 -0
- package/dist/compiled/fs-extra/LICENSE +15 -0
- package/dist/compiled/fs-extra/declaration-licenses/@types_fs-extra/LICENSE +21 -0
- package/dist/compiled/fs-extra/declaration-licenses/@types_jsonfile/LICENSE +21 -0
- package/dist/compiled/fs-extra/index.d.ts +997 -496
- package/dist/compiled/fs-extra/index.js +1142 -1355
- package/dist/compiled/fs-extra/licenses-cjs.txt +79 -0
- package/dist/compiled/fs-extra/package.json +1 -1
- package/dist/compiled/fs-extra/provenance.json +27 -0
- package/dist/compiled/glob/LICENSE.md +63 -0
- package/dist/compiled/glob/declaration-licenses/glob/LICENSE.md +63 -0
- package/dist/compiled/glob/declaration-licenses/lru-cache/LICENSE.md +55 -0
- package/dist/compiled/glob/declaration-licenses/minimatch/LICENSE.md +55 -0
- package/dist/compiled/glob/declaration-licenses/minipass/LICENSE.md +55 -0
- package/dist/compiled/glob/declaration-licenses/path-scurry/LICENSE.md +55 -0
- package/dist/compiled/glob/index.d.mts +3823 -0
- package/dist/compiled/glob/index.d.ts +3823 -91
- package/dist/compiled/glob/index.js +3612 -1937
- package/dist/compiled/glob/index.mjs +3467 -0
- package/dist/compiled/glob/licenses-cjs.txt +65 -0
- package/dist/compiled/glob/licenses-esm.txt +65 -0
- package/dist/compiled/glob/package.json +1 -1
- package/dist/compiled/glob/provenance.json +42 -0
- package/dist/compiled/globby/declaration-licenses/globby/license +9 -0
- package/dist/compiled/globby/index.d.mts +422 -0
- package/dist/compiled/globby/index.d.ts +364 -128
- package/dist/compiled/globby/index.js +4417 -521
- package/dist/compiled/globby/index.js.LICENSE.txt +20 -0
- package/dist/compiled/globby/index.mjs +4572 -0
- package/dist/compiled/globby/index.mjs.LICENSE.txt +20 -0
- package/dist/compiled/globby/license +1 -1
- package/dist/compiled/globby/licenses-cjs.txt +237 -0
- package/dist/compiled/globby/licenses-esm.txt +237 -0
- package/dist/compiled/globby/package.json +1 -1
- package/dist/compiled/globby/provenance.json +19 -0
- package/dist/compiled/gzip-size/declaration-licenses/gzip-size/license +9 -0
- package/dist/compiled/gzip-size/index.d.mts +106 -0
- package/dist/compiled/gzip-size/index.d.ts +91 -81
- package/dist/compiled/gzip-size/index.js +117 -94
- package/dist/compiled/gzip-size/index.mjs +170 -0
- package/dist/compiled/gzip-size/licenses-cjs.txt +33 -0
- package/dist/compiled/gzip-size/licenses-esm.txt +33 -0
- package/dist/compiled/gzip-size/package.json +1 -1
- package/dist/compiled/gzip-size/provenance.json +19 -0
- package/dist/compiled/import-lazy/declaration-licenses/import-lazy/license +9 -0
- package/dist/compiled/import-lazy/index.d.ts +2 -2
- package/dist/compiled/import-lazy/index.js +18 -19
- package/dist/compiled/import-lazy/licenses-cjs.txt +11 -0
- package/dist/compiled/import-lazy/package.json +1 -1
- package/dist/compiled/import-lazy/provenance.json +19 -0
- package/dist/compiled/inquirer/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_checkbox/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_confirm/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_core/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_editor/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_expand/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_external-editor/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_input/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_number/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_password/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_prompts/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_rawlist/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_search/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_select/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_type/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/inquirer/LICENSE +22 -0
- package/dist/compiled/inquirer/index.d.mts +790 -0
- package/dist/compiled/inquirer/index.d.ts +727 -934
- package/dist/compiled/inquirer/index.js +5975 -14467
- package/dist/compiled/inquirer/index.mjs +11624 -0
- package/dist/compiled/inquirer/licenses-cjs.txt +619 -0
- package/dist/compiled/inquirer/licenses-esm.txt +619 -0
- package/dist/compiled/inquirer/package.json +1 -1
- package/dist/compiled/inquirer/provenance.json +92 -0
- package/dist/compiled/js-yaml/declaration-licenses/js-yaml/LICENSE +21 -0
- package/dist/compiled/js-yaml/index.d.mts +1126 -0
- package/dist/compiled/js-yaml/index.d.ts +1114 -142
- package/dist/compiled/js-yaml/index.js +20 -21
- package/dist/compiled/js-yaml/index.js.LICENSE.txt +1 -1
- package/dist/compiled/js-yaml/index.mjs +5 -4
- package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -1
- package/dist/compiled/js-yaml/licenses-cjs.txt +23 -0
- package/dist/compiled/js-yaml/licenses-esm.txt +23 -0
- package/dist/compiled/js-yaml/package.json +1 -1
- package/dist/compiled/js-yaml/provenance.json +19 -0
- package/dist/compiled/json5/LICENSE.md +23 -0
- package/dist/compiled/json5/declaration-licenses/json5/LICENSE.md +23 -0
- package/dist/compiled/json5/index.d.ts +103 -0
- package/dist/compiled/json5/index.js +11 -11
- package/dist/compiled/json5/licenses-cjs.txt +25 -0
- package/dist/compiled/json5/package.json +1 -1
- package/dist/compiled/json5/provenance.json +22 -0
- package/dist/compiled/lodash/add.d.ts +2 -0
- package/dist/compiled/lodash/after.d.ts +2 -0
- package/dist/compiled/lodash/ary.d.ts +2 -0
- package/dist/compiled/lodash/assign.d.ts +2 -0
- package/dist/compiled/lodash/assignIn.d.ts +2 -0
- package/dist/compiled/lodash/assignInWith.d.ts +2 -0
- package/dist/compiled/lodash/assignWith.d.ts +2 -0
- package/dist/compiled/lodash/at.d.ts +2 -0
- package/dist/compiled/lodash/attempt.d.ts +2 -0
- package/dist/compiled/lodash/before.d.ts +2 -0
- package/dist/compiled/lodash/bind.d.ts +2 -0
- package/dist/compiled/lodash/bindAll.d.ts +2 -0
- package/dist/compiled/lodash/bindKey.d.ts +2 -0
- package/dist/compiled/lodash/camelCase.d.ts +2 -0
- package/dist/compiled/lodash/capitalize.d.ts +2 -0
- package/dist/compiled/lodash/castArray.d.ts +2 -0
- package/dist/compiled/lodash/ceil.d.ts +2 -0
- package/dist/compiled/lodash/chain.d.ts +2 -0
- package/dist/compiled/lodash/chunk.d.ts +2 -0
- package/dist/compiled/lodash/clamp.d.ts +2 -0
- package/dist/compiled/lodash/clone.d.ts +2 -0
- package/dist/compiled/lodash/cloneDeep.d.ts +2 -0
- package/dist/compiled/lodash/cloneDeepWith.d.ts +2 -0
- package/dist/compiled/lodash/cloneWith.d.ts +2 -0
- package/dist/compiled/lodash/common/array.d.ts +56 -22
- package/dist/compiled/lodash/common/collection.d.ts +9 -1
- package/dist/compiled/lodash/common/common.d.ts +17 -10
- package/dist/compiled/lodash/common/function.d.ts +10 -1
- package/dist/compiled/lodash/common/lang.d.ts +8 -5
- package/dist/compiled/lodash/common/math.d.ts +3 -1
- package/dist/compiled/lodash/common/object.d.ts +141 -17
- package/dist/compiled/lodash/common/seq.d.ts +2 -2
- package/dist/compiled/lodash/common/string.d.ts +17 -17
- package/dist/compiled/lodash/compact.d.ts +2 -0
- package/dist/compiled/lodash/concat.d.ts +2 -0
- package/dist/compiled/lodash/cond.d.ts +2 -0
- package/dist/compiled/lodash/conforms.d.ts +2 -0
- package/dist/compiled/lodash/conformsTo.d.ts +2 -0
- package/dist/compiled/lodash/constant.d.ts +2 -0
- package/dist/compiled/lodash/countBy.d.ts +2 -0
- package/dist/compiled/lodash/create.d.ts +2 -0
- package/dist/compiled/lodash/curry.d.ts +2 -0
- package/dist/compiled/lodash/curryRight.d.ts +2 -0
- package/dist/compiled/lodash/debounce.d.ts +2 -0
- package/dist/compiled/lodash/deburr.d.ts +2 -0
- package/dist/compiled/lodash/declaration-licenses/@types_lodash/LICENSE +21 -0
- package/dist/compiled/lodash/defaultTo.d.ts +2 -0
- package/dist/compiled/lodash/defaults.d.ts +2 -0
- package/dist/compiled/lodash/defaultsDeep.d.ts +2 -0
- package/dist/compiled/lodash/defer.d.ts +2 -0
- package/dist/compiled/lodash/delay.d.ts +2 -0
- package/dist/compiled/lodash/difference.d.ts +2 -0
- package/dist/compiled/lodash/differenceBy.d.ts +2 -0
- package/dist/compiled/lodash/differenceWith.d.ts +2 -0
- package/dist/compiled/lodash/divide.d.ts +2 -0
- package/dist/compiled/lodash/drop.d.ts +2 -0
- package/dist/compiled/lodash/dropRight.d.ts +2 -0
- package/dist/compiled/lodash/dropRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/dropWhile.d.ts +2 -0
- package/dist/compiled/lodash/each.d.ts +2 -0
- package/dist/compiled/lodash/eachRight.d.ts +2 -0
- package/dist/compiled/lodash/endsWith.d.ts +2 -0
- package/dist/compiled/lodash/entries.d.ts +2 -0
- package/dist/compiled/lodash/entriesIn.d.ts +2 -0
- package/dist/compiled/lodash/eq.d.ts +2 -0
- package/dist/compiled/lodash/escape.d.ts +2 -0
- package/dist/compiled/lodash/escapeRegExp.d.ts +2 -0
- package/dist/compiled/lodash/every.d.ts +2 -0
- package/dist/compiled/lodash/extend.d.ts +2 -0
- package/dist/compiled/lodash/extendWith.d.ts +2 -0
- package/dist/compiled/lodash/fill.d.ts +2 -0
- package/dist/compiled/lodash/filter.d.ts +2 -0
- package/dist/compiled/lodash/find.d.ts +2 -0
- package/dist/compiled/lodash/findIndex.d.ts +2 -0
- package/dist/compiled/lodash/findKey.d.ts +2 -0
- package/dist/compiled/lodash/findLast.d.ts +2 -0
- package/dist/compiled/lodash/findLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/findLastKey.d.ts +2 -0
- package/dist/compiled/lodash/first.d.ts +2 -0
- package/dist/compiled/lodash/flatMap.d.ts +2 -0
- package/dist/compiled/lodash/flatMapDeep.d.ts +2 -0
- package/dist/compiled/lodash/flatMapDepth.d.ts +2 -0
- package/dist/compiled/lodash/flatten.d.ts +2 -0
- package/dist/compiled/lodash/flattenDeep.d.ts +2 -0
- package/dist/compiled/lodash/flattenDepth.d.ts +2 -0
- package/dist/compiled/lodash/flip.d.ts +2 -0
- package/dist/compiled/lodash/floor.d.ts +2 -0
- package/dist/compiled/lodash/flow.d.ts +2 -0
- package/dist/compiled/lodash/flowRight.d.ts +2 -0
- package/dist/compiled/lodash/forEach.d.ts +2 -0
- package/dist/compiled/lodash/forEachRight.d.ts +2 -0
- package/dist/compiled/lodash/forIn.d.ts +2 -0
- package/dist/compiled/lodash/forInRight.d.ts +2 -0
- package/dist/compiled/lodash/forOwn.d.ts +2 -0
- package/dist/compiled/lodash/forOwnRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/F.d.ts +2 -0
- package/dist/compiled/lodash/fp/T.d.ts +2 -0
- package/dist/compiled/lodash/fp/__.d.ts +3 -0
- package/dist/compiled/lodash/fp/add.d.ts +2 -0
- package/dist/compiled/lodash/fp/after.d.ts +2 -0
- package/dist/compiled/lodash/fp/all.d.ts +2 -0
- package/dist/compiled/lodash/fp/allPass.d.ts +2 -0
- package/dist/compiled/lodash/fp/always.d.ts +2 -0
- package/dist/compiled/lodash/fp/any.d.ts +2 -0
- package/dist/compiled/lodash/fp/anyPass.d.ts +2 -0
- package/dist/compiled/lodash/fp/apply.d.ts +2 -0
- package/dist/compiled/lodash/fp/ary.d.ts +2 -0
- package/dist/compiled/lodash/fp/assign.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignInAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignInAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignInWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assoc.d.ts +2 -0
- package/dist/compiled/lodash/fp/assocPath.d.ts +2 -0
- package/dist/compiled/lodash/fp/at.d.ts +2 -0
- package/dist/compiled/lodash/fp/attempt.d.ts +2 -0
- package/dist/compiled/lodash/fp/before.d.ts +2 -0
- package/dist/compiled/lodash/fp/bind.d.ts +2 -0
- package/dist/compiled/lodash/fp/bindAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/bindKey.d.ts +2 -0
- package/dist/compiled/lodash/fp/camelCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/capitalize.d.ts +2 -0
- package/dist/compiled/lodash/fp/castArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/ceil.d.ts +2 -0
- package/dist/compiled/lodash/fp/chunk.d.ts +2 -0
- package/dist/compiled/lodash/fp/clamp.d.ts +2 -0
- package/dist/compiled/lodash/fp/clone.d.ts +2 -0
- package/dist/compiled/lodash/fp/cloneDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/cloneDeepWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/cloneWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/compact.d.ts +2 -0
- package/dist/compiled/lodash/fp/complement.d.ts +2 -0
- package/dist/compiled/lodash/fp/compose.d.ts +2 -0
- package/dist/compiled/lodash/fp/concat.d.ts +2 -0
- package/dist/compiled/lodash/fp/cond.d.ts +2 -0
- package/dist/compiled/lodash/fp/conforms.d.ts +2 -0
- package/dist/compiled/lodash/fp/conformsTo.d.ts +2 -0
- package/dist/compiled/lodash/fp/constant.d.ts +2 -0
- package/dist/compiled/lodash/fp/contains.d.ts +2 -0
- package/dist/compiled/lodash/fp/convert.d.ts +15 -0
- package/dist/compiled/lodash/fp/countBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/create.d.ts +2 -0
- package/dist/compiled/lodash/fp/curry.d.ts +2 -0
- package/dist/compiled/lodash/fp/curryN.d.ts +2 -0
- package/dist/compiled/lodash/fp/curryRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/curryRightN.d.ts +2 -0
- package/dist/compiled/lodash/fp/debounce.d.ts +2 -0
- package/dist/compiled/lodash/fp/deburr.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultTo.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaults.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultsAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultsDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultsDeepAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/defer.d.ts +2 -0
- package/dist/compiled/lodash/fp/delay.d.ts +2 -0
- package/dist/compiled/lodash/fp/difference.d.ts +2 -0
- package/dist/compiled/lodash/fp/differenceBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/differenceWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/dissoc.d.ts +2 -0
- package/dist/compiled/lodash/fp/dissocPath.d.ts +2 -0
- package/dist/compiled/lodash/fp/divide.d.ts +2 -0
- package/dist/compiled/lodash/fp/drop.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropLast.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropLastWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/each.d.ts +2 -0
- package/dist/compiled/lodash/fp/eachRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/endsWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/entries.d.ts +2 -0
- package/dist/compiled/lodash/fp/entriesIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/eq.d.ts +2 -0
- package/dist/compiled/lodash/fp/equals.d.ts +2 -0
- package/dist/compiled/lodash/fp/escape.d.ts +2 -0
- package/dist/compiled/lodash/fp/escapeRegExp.d.ts +2 -0
- package/dist/compiled/lodash/fp/every.d.ts +2 -0
- package/dist/compiled/lodash/fp/extend.d.ts +2 -0
- package/dist/compiled/lodash/fp/extendAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/extendAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/extendWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/fill.d.ts +2 -0
- package/dist/compiled/lodash/fp/filter.d.ts +2 -0
- package/dist/compiled/lodash/fp/find.d.ts +2 -0
- package/dist/compiled/lodash/fp/findFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/findIndexFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findKey.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLast.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastIndexFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastKey.d.ts +2 -0
- package/dist/compiled/lodash/fp/first.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatMapDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatMapDepth.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatten.d.ts +2 -0
- package/dist/compiled/lodash/fp/flattenDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/flattenDepth.d.ts +2 -0
- package/dist/compiled/lodash/fp/flip.d.ts +2 -0
- package/dist/compiled/lodash/fp/floor.d.ts +2 -0
- package/dist/compiled/lodash/fp/flow.d.ts +2 -0
- package/dist/compiled/lodash/fp/flowRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/forEach.d.ts +2 -0
- package/dist/compiled/lodash/fp/forEachRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/forIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/forInRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/forOwn.d.ts +2 -0
- package/dist/compiled/lodash/fp/forOwnRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/fromPairs.d.ts +2 -0
- package/dist/compiled/lodash/fp/functions.d.ts +2 -0
- package/dist/compiled/lodash/fp/functionsIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/get.d.ts +2 -0
- package/dist/compiled/lodash/fp/getOr.d.ts +2 -0
- package/dist/compiled/lodash/fp/groupBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/gt.d.ts +2 -0
- package/dist/compiled/lodash/fp/gte.d.ts +2 -0
- package/dist/compiled/lodash/fp/has.d.ts +2 -0
- package/dist/compiled/lodash/fp/hasIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/head.d.ts +2 -0
- package/dist/compiled/lodash/fp/identical.d.ts +2 -0
- package/dist/compiled/lodash/fp/identity.d.ts +2 -0
- package/dist/compiled/lodash/fp/inRange.d.ts +2 -0
- package/dist/compiled/lodash/fp/includes.d.ts +2 -0
- package/dist/compiled/lodash/fp/includesFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/indexBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/indexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/indexOfFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/init.d.ts +2 -0
- package/dist/compiled/lodash/fp/initial.d.ts +2 -0
- package/dist/compiled/lodash/fp/intersection.d.ts +2 -0
- package/dist/compiled/lodash/fp/intersectionBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/intersectionWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/invert.d.ts +2 -0
- package/dist/compiled/lodash/fp/invertBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/invertObj.d.ts +2 -0
- package/dist/compiled/lodash/fp/invoke.d.ts +2 -0
- package/dist/compiled/lodash/fp/invokeArgs.d.ts +2 -0
- package/dist/compiled/lodash/fp/invokeArgsMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/invokeMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArguments.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArrayBuffer.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArrayLike.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArrayLikeObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/isBoolean.d.ts +2 -0
- package/dist/compiled/lodash/fp/isBuffer.d.ts +2 -0
- package/dist/compiled/lodash/fp/isDate.d.ts +2 -0
- package/dist/compiled/lodash/fp/isElement.d.ts +2 -0
- package/dist/compiled/lodash/fp/isEmpty.d.ts +2 -0
- package/dist/compiled/lodash/fp/isEqual.d.ts +2 -0
- package/dist/compiled/lodash/fp/isEqualWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/isError.d.ts +2 -0
- package/dist/compiled/lodash/fp/isFinite.d.ts +2 -0
- package/dist/compiled/lodash/fp/isFunction.d.ts +2 -0
- package/dist/compiled/lodash/fp/isInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/isLength.d.ts +2 -0
- package/dist/compiled/lodash/fp/isMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/isMatch.d.ts +2 -0
- package/dist/compiled/lodash/fp/isMatchWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNaN.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNative.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNil.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNull.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNumber.d.ts +2 -0
- package/dist/compiled/lodash/fp/isObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/isObjectLike.d.ts +2 -0
- package/dist/compiled/lodash/fp/isPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/isRegExp.d.ts +2 -0
- package/dist/compiled/lodash/fp/isSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/isSet.d.ts +2 -0
- package/dist/compiled/lodash/fp/isString.d.ts +2 -0
- package/dist/compiled/lodash/fp/isSymbol.d.ts +2 -0
- package/dist/compiled/lodash/fp/isTypedArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/isUndefined.d.ts +2 -0
- package/dist/compiled/lodash/fp/isWeakMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/isWeakSet.d.ts +2 -0
- package/dist/compiled/lodash/fp/iteratee.d.ts +2 -0
- package/dist/compiled/lodash/fp/join.d.ts +2 -0
- package/dist/compiled/lodash/fp/juxt.d.ts +2 -0
- package/dist/compiled/lodash/fp/kebabCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/keyBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/keys.d.ts +2 -0
- package/dist/compiled/lodash/fp/keysIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/last.d.ts +2 -0
- package/dist/compiled/lodash/fp/lastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/lastIndexOfFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/lowerCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/lowerFirst.d.ts +2 -0
- package/dist/compiled/lodash/fp/lt.d.ts +2 -0
- package/dist/compiled/lodash/fp/lte.d.ts +2 -0
- package/dist/compiled/lodash/fp/map.d.ts +2 -0
- package/dist/compiled/lodash/fp/mapKeys.d.ts +2 -0
- package/dist/compiled/lodash/fp/mapValues.d.ts +2 -0
- package/dist/compiled/lodash/fp/matches.d.ts +2 -0
- package/dist/compiled/lodash/fp/matchesProperty.d.ts +2 -0
- package/dist/compiled/lodash/fp/max.d.ts +2 -0
- package/dist/compiled/lodash/fp/maxBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/mean.d.ts +2 -0
- package/dist/compiled/lodash/fp/meanBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/memoize.d.ts +2 -0
- package/dist/compiled/lodash/fp/merge.d.ts +2 -0
- package/dist/compiled/lodash/fp/mergeAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/mergeAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/mergeWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/method.d.ts +2 -0
- package/dist/compiled/lodash/fp/methodOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/min.d.ts +2 -0
- package/dist/compiled/lodash/fp/minBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/multiply.d.ts +2 -0
- package/dist/compiled/lodash/fp/nAry.d.ts +2 -0
- package/dist/compiled/lodash/fp/negate.d.ts +2 -0
- package/dist/compiled/lodash/fp/noConflict.d.ts +2 -0
- package/dist/compiled/lodash/fp/noop.d.ts +2 -0
- package/dist/compiled/lodash/fp/now.d.ts +2 -0
- package/dist/compiled/lodash/fp/nth.d.ts +2 -0
- package/dist/compiled/lodash/fp/nthArg.d.ts +2 -0
- package/dist/compiled/lodash/fp/omit.d.ts +2 -0
- package/dist/compiled/lodash/fp/omitAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/omitBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/once.d.ts +2 -0
- package/dist/compiled/lodash/fp/orderBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/over.d.ts +2 -0
- package/dist/compiled/lodash/fp/overArgs.d.ts +2 -0
- package/dist/compiled/lodash/fp/overEvery.d.ts +2 -0
- package/dist/compiled/lodash/fp/overSome.d.ts +2 -0
- package/dist/compiled/lodash/fp/pad.d.ts +2 -0
- package/dist/compiled/lodash/fp/padChars.d.ts +2 -0
- package/dist/compiled/lodash/fp/padCharsEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/padCharsStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/padEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/padStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/parseInt.d.ts +2 -0
- package/dist/compiled/lodash/fp/partial.d.ts +2 -0
- package/dist/compiled/lodash/fp/partialRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/partition.d.ts +2 -0
- package/dist/compiled/lodash/fp/path.d.ts +2 -0
- package/dist/compiled/lodash/fp/pathEq.d.ts +2 -0
- package/dist/compiled/lodash/fp/pathOr.d.ts +2 -0
- package/dist/compiled/lodash/fp/paths.d.ts +2 -0
- package/dist/compiled/lodash/fp/pick.d.ts +2 -0
- package/dist/compiled/lodash/fp/pickAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/pickBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/pipe.d.ts +2 -0
- package/dist/compiled/lodash/fp/placeholder.d.ts +3 -0
- package/dist/compiled/lodash/fp/pluck.d.ts +2 -0
- package/dist/compiled/lodash/fp/prop.d.ts +2 -0
- package/dist/compiled/lodash/fp/propEq.d.ts +2 -0
- package/dist/compiled/lodash/fp/propOr.d.ts +2 -0
- package/dist/compiled/lodash/fp/property.d.ts +2 -0
- package/dist/compiled/lodash/fp/propertyOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/props.d.ts +2 -0
- package/dist/compiled/lodash/fp/pull.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAllBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAt.d.ts +2 -0
- package/dist/compiled/lodash/fp/random.d.ts +2 -0
- package/dist/compiled/lodash/fp/range.d.ts +2 -0
- package/dist/compiled/lodash/fp/rangeRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/rangeStep.d.ts +2 -0
- package/dist/compiled/lodash/fp/rangeStepRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/rearg.d.ts +2 -0
- package/dist/compiled/lodash/fp/reduce.d.ts +2 -0
- package/dist/compiled/lodash/fp/reduceRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/reject.d.ts +2 -0
- package/dist/compiled/lodash/fp/remove.d.ts +2 -0
- package/dist/compiled/lodash/fp/repeat.d.ts +2 -0
- package/dist/compiled/lodash/fp/replace.d.ts +2 -0
- package/dist/compiled/lodash/fp/rest.d.ts +2 -0
- package/dist/compiled/lodash/fp/restFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/result.d.ts +2 -0
- package/dist/compiled/lodash/fp/reverse.d.ts +2 -0
- package/dist/compiled/lodash/fp/round.d.ts +2 -0
- package/dist/compiled/lodash/fp/runInContext.d.ts +2 -0
- package/dist/compiled/lodash/fp/sample.d.ts +2 -0
- package/dist/compiled/lodash/fp/sampleSize.d.ts +2 -0
- package/dist/compiled/lodash/fp/set.d.ts +2 -0
- package/dist/compiled/lodash/fp/setWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/shuffle.d.ts +2 -0
- package/dist/compiled/lodash/fp/size.d.ts +2 -0
- package/dist/compiled/lodash/fp/slice.d.ts +2 -0
- package/dist/compiled/lodash/fp/snakeCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/some.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedLastIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedLastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedUniq.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedUniqBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/split.d.ts +2 -0
- package/dist/compiled/lodash/fp/spread.d.ts +2 -0
- package/dist/compiled/lodash/fp/spreadFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/startCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/startsWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubFalse.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubString.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubTrue.d.ts +2 -0
- package/dist/compiled/lodash/fp/subtract.d.ts +2 -0
- package/dist/compiled/lodash/fp/sum.d.ts +2 -0
- package/dist/compiled/lodash/fp/sumBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/symmetricDifference.d.ts +2 -0
- package/dist/compiled/lodash/fp/symmetricDifferenceBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/symmetricDifferenceWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/tail.d.ts +2 -0
- package/dist/compiled/lodash/fp/take.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeLast.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeLastWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/tap.d.ts +2 -0
- package/dist/compiled/lodash/fp/template.d.ts +2 -0
- package/dist/compiled/lodash/fp/throttle.d.ts +2 -0
- package/dist/compiled/lodash/fp/thru.d.ts +2 -0
- package/dist/compiled/lodash/fp/times.d.ts +2 -0
- package/dist/compiled/lodash/fp/toArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/toFinite.d.ts +2 -0
- package/dist/compiled/lodash/fp/toInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/toLength.d.ts +2 -0
- package/dist/compiled/lodash/fp/toLower.d.ts +2 -0
- package/dist/compiled/lodash/fp/toNumber.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPairs.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPairsIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPath.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/toSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/toString.d.ts +2 -0
- package/dist/compiled/lodash/fp/toUpper.d.ts +2 -0
- package/dist/compiled/lodash/fp/transform.d.ts +2 -0
- package/dist/compiled/lodash/fp/trim.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimChars.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimCharsEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimCharsStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/truncate.d.ts +2 -0
- package/dist/compiled/lodash/fp/unapply.d.ts +2 -0
- package/dist/compiled/lodash/fp/unary.d.ts +2 -0
- package/dist/compiled/lodash/fp/unescape.d.ts +2 -0
- package/dist/compiled/lodash/fp/union.d.ts +2 -0
- package/dist/compiled/lodash/fp/unionBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/unionWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniq.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniqBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniqWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniqueId.d.ts +2 -0
- package/dist/compiled/lodash/fp/unnest.d.ts +2 -0
- package/dist/compiled/lodash/fp/unset.d.ts +2 -0
- package/dist/compiled/lodash/fp/unzip.d.ts +2 -0
- package/dist/compiled/lodash/fp/unzipWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/update.d.ts +2 -0
- package/dist/compiled/lodash/fp/updateWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/upperCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/upperFirst.d.ts +2 -0
- package/dist/compiled/lodash/fp/useWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/values.d.ts +2 -0
- package/dist/compiled/lodash/fp/valuesIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/where.d.ts +2 -0
- package/dist/compiled/lodash/fp/whereEq.d.ts +2 -0
- package/dist/compiled/lodash/fp/without.d.ts +2 -0
- package/dist/compiled/lodash/fp/words.d.ts +2 -0
- package/dist/compiled/lodash/fp/wrap.d.ts +2 -0
- package/dist/compiled/lodash/fp/xor.d.ts +2 -0
- package/dist/compiled/lodash/fp/xorBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/xorWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/zip.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipObj.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipObjectDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipWith.d.ts +2 -0
- package/dist/compiled/lodash/fp.d.ts +4962 -0
- package/dist/compiled/lodash/fromPairs.d.ts +2 -0
- package/dist/compiled/lodash/functions.d.ts +2 -0
- package/dist/compiled/lodash/functionsIn.d.ts +2 -0
- package/dist/compiled/lodash/get.d.ts +2 -0
- package/dist/compiled/lodash/groupBy.d.ts +2 -0
- package/dist/compiled/lodash/gt.d.ts +2 -0
- package/dist/compiled/lodash/gte.d.ts +2 -0
- package/dist/compiled/lodash/has.d.ts +2 -0
- package/dist/compiled/lodash/hasIn.d.ts +2 -0
- package/dist/compiled/lodash/head.d.ts +2 -0
- package/dist/compiled/lodash/identity.d.ts +2 -0
- package/dist/compiled/lodash/inRange.d.ts +2 -0
- package/dist/compiled/lodash/includes.d.ts +2 -0
- package/dist/compiled/lodash/index.d.ts +1 -16
- package/dist/compiled/lodash/indexOf.d.ts +2 -0
- package/dist/compiled/lodash/initial.d.ts +2 -0
- package/dist/compiled/lodash/intersection.d.ts +2 -0
- package/dist/compiled/lodash/intersectionBy.d.ts +2 -0
- package/dist/compiled/lodash/intersectionWith.d.ts +2 -0
- package/dist/compiled/lodash/invert.d.ts +2 -0
- package/dist/compiled/lodash/invertBy.d.ts +2 -0
- package/dist/compiled/lodash/invoke.d.ts +2 -0
- package/dist/compiled/lodash/invokeMap.d.ts +2 -0
- package/dist/compiled/lodash/isArguments.d.ts +2 -0
- package/dist/compiled/lodash/isArray.d.ts +2 -0
- package/dist/compiled/lodash/isArrayBuffer.d.ts +2 -0
- package/dist/compiled/lodash/isArrayLike.d.ts +2 -0
- package/dist/compiled/lodash/isArrayLikeObject.d.ts +2 -0
- package/dist/compiled/lodash/isBoolean.d.ts +2 -0
- package/dist/compiled/lodash/isBuffer.d.ts +2 -0
- package/dist/compiled/lodash/isDate.d.ts +2 -0
- package/dist/compiled/lodash/isElement.d.ts +2 -0
- package/dist/compiled/lodash/isEmpty.d.ts +2 -0
- package/dist/compiled/lodash/isEqual.d.ts +2 -0
- package/dist/compiled/lodash/isEqualWith.d.ts +2 -0
- package/dist/compiled/lodash/isError.d.ts +2 -0
- package/dist/compiled/lodash/isFinite.d.ts +2 -0
- package/dist/compiled/lodash/isFunction.d.ts +2 -0
- package/dist/compiled/lodash/isInteger.d.ts +2 -0
- package/dist/compiled/lodash/isLength.d.ts +2 -0
- package/dist/compiled/lodash/isMap.d.ts +2 -0
- package/dist/compiled/lodash/isMatch.d.ts +2 -0
- package/dist/compiled/lodash/isMatchWith.d.ts +2 -0
- package/dist/compiled/lodash/isNaN.d.ts +2 -0
- package/dist/compiled/lodash/isNative.d.ts +2 -0
- package/dist/compiled/lodash/isNil.d.ts +2 -0
- package/dist/compiled/lodash/isNull.d.ts +2 -0
- package/dist/compiled/lodash/isNumber.d.ts +2 -0
- package/dist/compiled/lodash/isObject.d.ts +2 -0
- package/dist/compiled/lodash/isObjectLike.d.ts +2 -0
- package/dist/compiled/lodash/isPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/isRegExp.d.ts +2 -0
- package/dist/compiled/lodash/isSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/isSet.d.ts +2 -0
- package/dist/compiled/lodash/isString.d.ts +2 -0
- package/dist/compiled/lodash/isSymbol.d.ts +2 -0
- package/dist/compiled/lodash/isTypedArray.d.ts +2 -0
- package/dist/compiled/lodash/isUndefined.d.ts +2 -0
- package/dist/compiled/lodash/isWeakMap.d.ts +2 -0
- package/dist/compiled/lodash/isWeakSet.d.ts +2 -0
- package/dist/compiled/lodash/iteratee.d.ts +2 -0
- package/dist/compiled/lodash/join.d.ts +2 -0
- package/dist/compiled/lodash/kebabCase.d.ts +2 -0
- package/dist/compiled/lodash/keyBy.d.ts +2 -0
- package/dist/compiled/lodash/keys.d.ts +2 -0
- package/dist/compiled/lodash/keysIn.d.ts +2 -0
- package/dist/compiled/lodash/last.d.ts +2 -0
- package/dist/compiled/lodash/lastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/licenses-cjs.txt +49 -0
- package/dist/compiled/lodash/lowerCase.d.ts +2 -0
- package/dist/compiled/lodash/lowerFirst.d.ts +2 -0
- package/dist/compiled/lodash/lt.d.ts +2 -0
- package/dist/compiled/lodash/lte.d.ts +2 -0
- package/dist/compiled/lodash/map.d.ts +2 -0
- package/dist/compiled/lodash/mapKeys.d.ts +2 -0
- package/dist/compiled/lodash/mapValues.d.ts +2 -0
- package/dist/compiled/lodash/matches.d.ts +2 -0
- package/dist/compiled/lodash/matchesProperty.d.ts +2 -0
- package/dist/compiled/lodash/max.d.ts +2 -0
- package/dist/compiled/lodash/maxBy.d.ts +2 -0
- package/dist/compiled/lodash/mean.d.ts +2 -0
- package/dist/compiled/lodash/meanBy.d.ts +2 -0
- package/dist/compiled/lodash/memoize.d.ts +2 -0
- package/dist/compiled/lodash/merge.d.ts +2 -0
- package/dist/compiled/lodash/mergeWith.d.ts +2 -0
- package/dist/compiled/lodash/method.d.ts +2 -0
- package/dist/compiled/lodash/methodOf.d.ts +2 -0
- package/dist/compiled/lodash/min.d.ts +2 -0
- package/dist/compiled/lodash/minBy.d.ts +2 -0
- package/dist/compiled/lodash/mixin.d.ts +2 -0
- package/dist/compiled/lodash/multiply.d.ts +2 -0
- package/dist/compiled/lodash/negate.d.ts +2 -0
- package/dist/compiled/lodash/noConflict.d.ts +2 -0
- package/dist/compiled/lodash/noop.d.ts +2 -0
- package/dist/compiled/lodash/now.d.ts +2 -0
- package/dist/compiled/lodash/nth.d.ts +2 -0
- package/dist/compiled/lodash/nthArg.d.ts +2 -0
- package/dist/compiled/lodash/omit.d.ts +2 -0
- package/dist/compiled/lodash/omitBy.d.ts +2 -0
- package/dist/compiled/lodash/once.d.ts +2 -0
- package/dist/compiled/lodash/orderBy.d.ts +2 -0
- package/dist/compiled/lodash/over.d.ts +2 -0
- package/dist/compiled/lodash/overArgs.d.ts +2 -0
- package/dist/compiled/lodash/overEvery.d.ts +2 -0
- package/dist/compiled/lodash/overSome.d.ts +2 -0
- package/dist/compiled/lodash/package.json +1 -1
- package/dist/compiled/lodash/pad.d.ts +2 -0
- package/dist/compiled/lodash/padEnd.d.ts +2 -0
- package/dist/compiled/lodash/padStart.d.ts +2 -0
- package/dist/compiled/lodash/parseInt.d.ts +2 -0
- package/dist/compiled/lodash/partial.d.ts +2 -0
- package/dist/compiled/lodash/partialRight.d.ts +2 -0
- package/dist/compiled/lodash/partition.d.ts +2 -0
- package/dist/compiled/lodash/pick.d.ts +2 -0
- package/dist/compiled/lodash/pickBy.d.ts +2 -0
- package/dist/compiled/lodash/property.d.ts +2 -0
- package/dist/compiled/lodash/propertyOf.d.ts +2 -0
- package/dist/compiled/lodash/provenance.json +19 -0
- package/dist/compiled/lodash/pull.d.ts +2 -0
- package/dist/compiled/lodash/pullAll.d.ts +2 -0
- package/dist/compiled/lodash/pullAllBy.d.ts +2 -0
- package/dist/compiled/lodash/pullAllWith.d.ts +2 -0
- package/dist/compiled/lodash/pullAt.d.ts +2 -0
- package/dist/compiled/lodash/random.d.ts +2 -0
- package/dist/compiled/lodash/range.d.ts +2 -0
- package/dist/compiled/lodash/rangeRight.d.ts +2 -0
- package/dist/compiled/lodash/rearg.d.ts +2 -0
- package/dist/compiled/lodash/reduce.d.ts +2 -0
- package/dist/compiled/lodash/reduceRight.d.ts +2 -0
- package/dist/compiled/lodash/reject.d.ts +2 -0
- package/dist/compiled/lodash/remove.d.ts +2 -0
- package/dist/compiled/lodash/repeat.d.ts +2 -0
- package/dist/compiled/lodash/replace.d.ts +2 -0
- package/dist/compiled/lodash/rest.d.ts +2 -0
- package/dist/compiled/lodash/result.d.ts +2 -0
- package/dist/compiled/lodash/reverse.d.ts +2 -0
- package/dist/compiled/lodash/round.d.ts +2 -0
- package/dist/compiled/lodash/runInContext.d.ts +2 -0
- package/dist/compiled/lodash/sample.d.ts +2 -0
- package/dist/compiled/lodash/sampleSize.d.ts +2 -0
- package/dist/compiled/lodash/set.d.ts +2 -0
- package/dist/compiled/lodash/setWith.d.ts +2 -0
- package/dist/compiled/lodash/shuffle.d.ts +2 -0
- package/dist/compiled/lodash/size.d.ts +2 -0
- package/dist/compiled/lodash/slice.d.ts +2 -0
- package/dist/compiled/lodash/snakeCase.d.ts +2 -0
- package/dist/compiled/lodash/some.d.ts +2 -0
- package/dist/compiled/lodash/sortBy.d.ts +2 -0
- package/dist/compiled/lodash/sortedIndex.d.ts +2 -0
- package/dist/compiled/lodash/sortedIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/sortedIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/sortedLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/sortedLastIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/sortedLastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/sortedUniq.d.ts +2 -0
- package/dist/compiled/lodash/sortedUniqBy.d.ts +2 -0
- package/dist/compiled/lodash/split.d.ts +2 -0
- package/dist/compiled/lodash/spread.d.ts +2 -0
- package/dist/compiled/lodash/startCase.d.ts +2 -0
- package/dist/compiled/lodash/startsWith.d.ts +2 -0
- package/dist/compiled/lodash/stubArray.d.ts +2 -0
- package/dist/compiled/lodash/stubFalse.d.ts +2 -0
- package/dist/compiled/lodash/stubObject.d.ts +2 -0
- package/dist/compiled/lodash/stubString.d.ts +2 -0
- package/dist/compiled/lodash/stubTrue.d.ts +2 -0
- package/dist/compiled/lodash/subtract.d.ts +2 -0
- package/dist/compiled/lodash/sum.d.ts +2 -0
- package/dist/compiled/lodash/sumBy.d.ts +2 -0
- package/dist/compiled/lodash/tail.d.ts +2 -0
- package/dist/compiled/lodash/take.d.ts +2 -0
- package/dist/compiled/lodash/takeRight.d.ts +2 -0
- package/dist/compiled/lodash/takeRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/takeWhile.d.ts +2 -0
- package/dist/compiled/lodash/tap.d.ts +2 -0
- package/dist/compiled/lodash/template.d.ts +2 -0
- package/dist/compiled/lodash/throttle.d.ts +2 -0
- package/dist/compiled/lodash/thru.d.ts +2 -0
- package/dist/compiled/lodash/times.d.ts +2 -0
- package/dist/compiled/lodash/toArray.d.ts +2 -0
- package/dist/compiled/lodash/toFinite.d.ts +2 -0
- package/dist/compiled/lodash/toInteger.d.ts +2 -0
- package/dist/compiled/lodash/toLength.d.ts +2 -0
- package/dist/compiled/lodash/toLower.d.ts +2 -0
- package/dist/compiled/lodash/toNumber.d.ts +2 -0
- package/dist/compiled/lodash/toPairs.d.ts +2 -0
- package/dist/compiled/lodash/toPairsIn.d.ts +2 -0
- package/dist/compiled/lodash/toPath.d.ts +2 -0
- package/dist/compiled/lodash/toPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/toSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/toString.d.ts +2 -0
- package/dist/compiled/lodash/toUpper.d.ts +2 -0
- package/dist/compiled/lodash/transform.d.ts +2 -0
- package/dist/compiled/lodash/trim.d.ts +2 -0
- package/dist/compiled/lodash/trimEnd.d.ts +2 -0
- package/dist/compiled/lodash/trimStart.d.ts +2 -0
- package/dist/compiled/lodash/truncate.d.ts +2 -0
- package/dist/compiled/lodash/unary.d.ts +2 -0
- package/dist/compiled/lodash/unescape.d.ts +2 -0
- package/dist/compiled/lodash/union.d.ts +2 -0
- package/dist/compiled/lodash/unionBy.d.ts +2 -0
- package/dist/compiled/lodash/unionWith.d.ts +2 -0
- package/dist/compiled/lodash/uniq.d.ts +2 -0
- package/dist/compiled/lodash/uniqBy.d.ts +2 -0
- package/dist/compiled/lodash/uniqWith.d.ts +2 -0
- package/dist/compiled/lodash/uniqueId.d.ts +2 -0
- package/dist/compiled/lodash/unset.d.ts +2 -0
- package/dist/compiled/lodash/unzip.d.ts +2 -0
- package/dist/compiled/lodash/unzipWith.d.ts +2 -0
- package/dist/compiled/lodash/update.d.ts +2 -0
- package/dist/compiled/lodash/updateWith.d.ts +2 -0
- package/dist/compiled/lodash/upperCase.d.ts +2 -0
- package/dist/compiled/lodash/upperFirst.d.ts +2 -0
- package/dist/compiled/lodash/values.d.ts +2 -0
- package/dist/compiled/lodash/valuesIn.d.ts +2 -0
- package/dist/compiled/lodash/without.d.ts +2 -0
- package/dist/compiled/lodash/words.d.ts +2 -0
- package/dist/compiled/lodash/wrap.d.ts +2 -0
- package/dist/compiled/lodash/xor.d.ts +2 -0
- package/dist/compiled/lodash/xorBy.d.ts +2 -0
- package/dist/compiled/lodash/xorWith.d.ts +2 -0
- package/dist/compiled/lodash/zip.d.ts +2 -0
- package/dist/compiled/lodash/zipObject.d.ts +2 -0
- package/dist/compiled/lodash/zipObjectDeep.d.ts +2 -0
- package/dist/compiled/lodash/zipWith.d.ts +2 -0
- package/dist/compiled/mime-types/declaration-licenses/@types_mime-types/LICENSE +21 -0
- package/dist/compiled/mime-types/index.d.ts +15 -12
- package/dist/compiled/mime-types/index.js +74 -28
- package/dist/compiled/mime-types/licenses-cjs.txt +52 -0
- package/dist/compiled/mime-types/package.json +1 -1
- package/dist/compiled/mime-types/provenance.json +19 -0
- package/dist/compiled/minimist/declaration-licenses/@types_minimist/LICENSE +21 -0
- package/dist/compiled/minimist/index.d.ts +3 -11
- package/dist/compiled/minimist/index.js +103 -104
- package/dist/compiled/minimist/licenses-cjs.txt +20 -0
- package/dist/compiled/minimist/package.json +1 -1
- package/dist/compiled/minimist/provenance.json +22 -0
- package/dist/compiled/nanoid/LICENSE +20 -0
- package/dist/compiled/nanoid/declaration-licenses/nanoid/LICENSE +20 -0
- package/dist/compiled/nanoid/index.d.mts +108 -0
- package/dist/compiled/nanoid/index.d.ts +31 -14
- package/dist/compiled/nanoid/index.js +117 -74
- package/dist/compiled/nanoid/index.mjs +98 -48
- package/dist/compiled/nanoid/licenses-cjs.txt +22 -0
- package/dist/compiled/nanoid/licenses-esm.txt +22 -0
- package/dist/compiled/nanoid/package.json +1 -1
- package/dist/compiled/nanoid/provenance.json +19 -0
- package/dist/compiled/ora/declaration-licenses/cli-spinners/license +9 -0
- package/dist/compiled/ora/declaration-licenses/ora/license +9 -0
- package/dist/compiled/ora/index.d.mts +501 -0
- package/dist/compiled/ora/index.d.ts +428 -204
- package/dist/compiled/ora/index.js +2121 -3893
- package/dist/compiled/ora/index.mjs +2155 -0
- package/dist/compiled/ora/licenses-cjs.txt +226 -0
- package/dist/compiled/ora/licenses-esm.txt +226 -0
- package/dist/compiled/ora/package.json +1 -1
- package/dist/compiled/ora/provenance.json +24 -0
- package/dist/compiled/pkg-up/declaration-licenses/@modern-js_compiled-pkg-up/license +9 -0
- package/dist/compiled/pkg-up/index.d.ts +9 -9
- package/dist/compiled/pkg-up/index.js +47 -14
- package/dist/compiled/pkg-up/licenses-cjs.txt +11 -0
- package/dist/compiled/pkg-up/package.json +1 -1
- package/dist/compiled/pkg-up/provenance.json +18 -0
- package/dist/compiled/semver/classes/comparator.d.ts +3 -3
- package/dist/compiled/semver/classes/range.d.ts +6 -6
- package/dist/compiled/semver/classes/semver.d.ts +11 -4
- package/dist/compiled/semver/declaration-licenses/@types_semver/LICENSE +21 -0
- package/dist/compiled/semver/functions/clean.d.ts +1 -1
- package/dist/compiled/semver/functions/cmp.d.ts +2 -2
- package/dist/compiled/semver/functions/coerce.d.ts +2 -2
- package/dist/compiled/semver/functions/compare-build.d.ts +7 -2
- package/dist/compiled/semver/functions/compare-loose.d.ts +4 -1
- package/dist/compiled/semver/functions/compare.d.ts +2 -2
- package/dist/compiled/semver/functions/diff.d.ts +3 -7
- package/dist/compiled/semver/functions/eq.d.ts +2 -2
- package/dist/compiled/semver/functions/gt.d.ts +2 -2
- package/dist/compiled/semver/functions/gte.d.ts +2 -2
- package/dist/compiled/semver/functions/inc.d.ts +15 -4
- package/dist/compiled/semver/functions/lt.d.ts +2 -2
- package/dist/compiled/semver/functions/lte.d.ts +2 -2
- package/dist/compiled/semver/functions/major.d.ts +2 -2
- package/dist/compiled/semver/functions/minor.d.ts +2 -2
- package/dist/compiled/semver/functions/neq.d.ts +2 -2
- package/dist/compiled/semver/functions/parse.d.ts +15 -4
- package/dist/compiled/semver/functions/patch.d.ts +2 -2
- package/dist/compiled/semver/functions/prerelease.d.ts +2 -2
- package/dist/compiled/semver/functions/rcompare.d.ts +2 -2
- package/dist/compiled/semver/functions/rsort.d.ts +2 -2
- package/dist/compiled/semver/functions/satisfies.d.ts +4 -4
- package/dist/compiled/semver/functions/sort.d.ts +2 -2
- package/dist/compiled/semver/functions/truncate.d.ts +10 -0
- package/dist/compiled/semver/functions/valid.d.ts +2 -2
- package/dist/compiled/semver/index.d.ts +82 -77
- package/dist/compiled/semver/index.js +639 -1026
- package/dist/compiled/semver/licenses-cjs.txt +17 -0
- package/dist/compiled/semver/package.json +1 -1
- package/dist/compiled/semver/preload.d.ts +2 -0
- package/dist/compiled/semver/provenance.json +22 -0
- package/dist/compiled/semver/ranges/gtr.d.ts +4 -4
- package/dist/compiled/semver/ranges/intersects.d.ts +3 -3
- package/dist/compiled/semver/ranges/ltr.d.ts +4 -4
- package/dist/compiled/semver/ranges/max-satisfying.d.ts +5 -5
- package/dist/compiled/semver/ranges/min-satisfying.d.ts +5 -5
- package/dist/compiled/semver/ranges/min-version.d.ts +3 -3
- package/dist/compiled/semver/ranges/outside.d.ts +5 -5
- package/dist/compiled/semver/ranges/simplify.d.ts +2 -2
- package/dist/compiled/semver/ranges/subset.d.ts +3 -7
- package/dist/compiled/semver/ranges/to-comparators.d.ts +2 -2
- package/dist/compiled/semver/ranges/valid.d.ts +3 -3
- package/dist/compiled/signale/declaration-licenses/@types_signale/LICENSE +21 -0
- package/dist/compiled/signale/index.d.ts +22 -29
- package/dist/compiled/signale/index.js +2934 -613
- package/dist/compiled/signale/license.md +21 -0
- package/dist/compiled/signale/licenses-cjs.txt +468 -0
- package/dist/compiled/signale/package.json +1 -1
- package/dist/compiled/signale/provenance.json +19 -0
- package/dist/compiled/slash/declaration-licenses/slash/license +9 -0
- package/dist/compiled/slash/index.d.mts +25 -0
- package/dist/compiled/slash/index.d.ts +4 -4
- package/dist/compiled/slash/index.js +31 -27
- package/dist/compiled/slash/index.mjs +25 -0
- package/dist/compiled/slash/license +1 -1
- package/dist/compiled/slash/licenses-cjs.txt +11 -0
- package/dist/compiled/slash/licenses-esm.txt +11 -0
- package/dist/compiled/slash/package.json +1 -1
- package/dist/compiled/slash/provenance.json +19 -0
- package/dist/compiled/strip-ansi/declaration-licenses/strip-ansi/license +9 -0
- package/dist/compiled/strip-ansi/index.d.mts +17 -0
- package/dist/compiled/strip-ansi/index.d.ts +2 -2
- package/dist/compiled/strip-ansi/index.js +39 -29
- package/dist/compiled/strip-ansi/index.mjs +33 -0
- package/dist/compiled/strip-ansi/license +1 -1
- package/dist/compiled/strip-ansi/licenses-cjs.txt +24 -0
- package/dist/compiled/strip-ansi/licenses-esm.txt +24 -0
- package/dist/compiled/strip-ansi/package.json +1 -1
- package/dist/compiled/strip-ansi/provenance.json +19 -0
- package/dist/compiled/tsconfig-paths/declaration-licenses/tsconfig-paths/LICENSE +21 -0
- package/dist/compiled/tsconfig-paths/index.d.mts +115 -0
- package/dist/compiled/tsconfig-paths/index.d.ts +115 -0
- package/dist/compiled/tsconfig-paths/index.js +256 -243
- package/dist/compiled/tsconfig-paths/index.mjs +2 -2
- package/dist/compiled/tsconfig-paths/licenses-cjs.txt +48 -0
- package/dist/compiled/tsconfig-paths/package.json +1 -1
- package/dist/compiled/tsconfig-paths/provenance.json +19 -0
- package/dist/compiled/upath/LICENSE +22 -0
- package/dist/compiled/upath/declaration-licenses/upath/LICENSE +22 -0
- package/dist/compiled/upath/index.d.mts +84 -0
- package/dist/compiled/upath/index.d.ts +84 -0
- package/dist/compiled/upath/index.js +173 -110
- package/dist/compiled/upath/index.mjs +236 -0
- package/dist/compiled/upath/licenses-cjs.txt +24 -0
- package/dist/compiled/upath/licenses-esm.txt +24 -0
- package/dist/compiled/upath/package.json +1 -1
- package/dist/compiled/upath/provenance.json +22 -0
- package/dist/compiled/url-join/declaration-licenses/url-join/LICENSE +21 -0
- package/dist/compiled/url-join/index.d.mts +9 -0
- package/dist/compiled/url-join/index.d.ts +3 -11
- package/dist/compiled/url-join/index.js +55 -55
- package/dist/compiled/url-join/index.mjs +50 -0
- package/dist/compiled/url-join/licenses-cjs.txt +23 -0
- package/dist/compiled/url-join/licenses-esm.txt +23 -0
- package/dist/compiled/url-join/package.json +1 -1
- package/dist/compiled/url-join/provenance.json +22 -0
- package/dist/esm/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm/cli/get/config.mjs +1 -1
- package/dist/esm/cli/is/config.mjs +1 -1
- package/dist/esm/cli/require.mjs +4 -5
- package/dist/esm/compiled.mjs +22 -31
- package/dist/esm/fast-glob.mjs +1 -0
- package/dist/esm/watch-options.mjs +0 -0
- package/dist/esm-node/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm-node/cli/get/config.mjs +1 -1
- package/dist/esm-node/cli/is/config.mjs +1 -1
- package/dist/esm-node/cli/require.mjs +4 -5
- package/dist/esm-node/compiled.mjs +22 -30
- package/dist/esm-node/fast-glob.mjs +2 -0
- package/dist/esm-node/watch-options.mjs +1 -0
- package/dist/types/cli/commands.d.ts +1 -1
- package/dist/types/cli/modulePath.d.ts +1 -1
- package/dist/types/cli/require.d.ts +0 -1
- package/dist/types/compiled.d.ts +30 -29
- package/dist/types/fast-glob.d.ts +1 -0
- package/dist/types/watch-options.d.ts +1 -0
- package/package.json +100 -36
- package/rslib.config.mts +20 -84
- package/dist/compiled/address/lib/address.d.ts +0 -28
- package/dist/compiled/browserslist/license +0 -20
- package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
- package/dist/compiled/chokidar/fsevents.node +0 -0
- package/dist/compiled/chokidar/license +0 -21
- package/dist/compiled/chokidar/types/index.d.ts +0 -188
- package/dist/compiled/commander/typings/index.d.ts +0 -890
- package/dist/compiled/debug/ms/index.d.ts +0 -25
- package/dist/compiled/dotenv/index.js +0 -101
- package/dist/compiled/dotenv/license +0 -23
- package/dist/compiled/dotenv/package.json +0 -1
- package/dist/compiled/dotenv/types/index.d.ts +0 -59
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
- package/dist/compiled/fast-glob/index.js +0 -4665
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +0 -38
- package/dist/compiled/fast-glob/license +0 -21
- package/dist/compiled/fast-glob/out/index.d.ts +0 -27
- package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
- package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
- package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
- package/dist/compiled/fast-glob/package.json +0 -1
- package/dist/compiled/filesize/filesize.d.ts +0 -131
- package/dist/compiled/filesize/license +0 -28
- package/dist/compiled/fs-extra/license +0 -15
- package/dist/compiled/glob/license +0 -21
- package/dist/compiled/glob/minimatch/index.d.ts +0 -204
- package/dist/compiled/inquirer/index.js.LICENSE.txt +0 -7
- package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
- package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
- package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
- package/dist/compiled/inquirer/lib/prompts/base.d.ts +0 -100
- package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +0 -116
- package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +0 -53
- package/dist/compiled/inquirer/lib/prompts/editor.d.ts +0 -101
- package/dist/compiled/inquirer/lib/prompts/expand.d.ts +0 -149
- package/dist/compiled/inquirer/lib/prompts/input.d.ts +0 -82
- package/dist/compiled/inquirer/lib/prompts/list.d.ts +0 -89
- package/dist/compiled/inquirer/lib/prompts/number.d.ts +0 -32
- package/dist/compiled/inquirer/lib/prompts/password.d.ts +0 -82
- package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +0 -111
- package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
- package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
- package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
- package/dist/compiled/inquirer/lib/utils/events.d.ts +0 -72
- package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +0 -23
- package/dist/compiled/inquirer/lib/utils/paginator.d.ts +0 -55
- package/dist/compiled/inquirer/lib/utils/readline.d.ts +0 -56
- package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +0 -90
- package/dist/compiled/inquirer/lib/utils/utils.d.ts +0 -30
- package/dist/compiled/inquirer/license +0 -22
- package/dist/compiled/inquirer/rxjs/LICENSE.txt +0 -202
- package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/index.d.ts +0 -173
- package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +0 -13
- package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +0 -13
- package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +0 -175
- package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +0 -121
- package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +0 -49
- package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +0 -53
- package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +0 -54
- package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +0 -72
- package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +0 -92
- package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +0 -115
- package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +0 -227
- package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +0 -65
- package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +0 -200
- package/dist/compiled/inquirer/rxjs/internal/config.d.ts +0 -73
- package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +0 -42
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +0 -33
- package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +0 -27
- package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +0 -51
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +0 -173
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +0 -76
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +0 -159
- package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +0 -72
- package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +0 -24
- package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +0 -45
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +0 -314
- package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +0 -82
- package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +0 -21
- package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +0 -40
- package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +0 -19
- package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +0 -115
- package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +0 -126
- package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +0 -30
- package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +0 -54
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +0 -46
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +0 -59
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +0 -87
- package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +0 -58
- package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +0 -59
- package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +0 -59
- package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +0 -51
- package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +0 -60
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +0 -51
- package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +0 -47
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +0 -64
- package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +0 -119
- package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +0 -64
- package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +0 -52
- package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +0 -62
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +0 -18
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +0 -68
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +0 -44
- package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +0 -63
- package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +0 -56
- package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +0 -46
- package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +0 -54
- package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +0 -18
- package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +0 -30
- package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +0 -19
- package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +0 -69
- package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +0 -56
- package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +0 -29
- package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +0 -108
- package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +0 -28
- package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +0 -46
- package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +0 -60
- package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +0 -36
- package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +0 -45
- package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +0 -62
- package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +0 -20
- package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +0 -45
- package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +0 -42
- package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +0 -72
- package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +0 -78
- package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +0 -53
- package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +0 -39
- package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +0 -255
- package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +0 -35
- package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +0 -33
- package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +0 -65
- package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +0 -49
- package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +0 -49
- package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +0 -26
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +0 -15
- package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +0 -30
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +0 -24
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +0 -13
- package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +0 -53
- package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +0 -69
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +0 -16
- package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +0 -15
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +0 -88
- package/dist/compiled/inquirer/rxjs/internal/types.d.ts +0 -307
- package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +0 -19
- package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +0 -21
- package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +0 -17
- package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +0 -20
- package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +0 -17
- package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +0 -16
- package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +0 -11
- package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +0 -11
- package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +0 -44
- package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +0 -15
- package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +0 -11
- package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/operators/index.d.ts +0 -114
- package/dist/compiled/inquirer/rxjs/testing/index.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +0 -3
- package/dist/compiled/inquirer/through/index.d.ts +0 -25
- package/dist/compiled/json5/lib/index.d.ts +0 -4
- package/dist/compiled/json5/lib/parse.d.ts +0 -15
- package/dist/compiled/json5/lib/stringify.d.ts +0 -89
- package/dist/compiled/nanoid/license +0 -20
- package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
- package/dist/compiled/ora/index.js.LICENSE.txt +0 -1
- package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
- package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
- package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
- package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
- package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
- package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
- package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
- package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
- package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
- package/dist/compiled/upath/license +0 -22
- package/dist/compiled/upath/upath.d.ts +0 -241
- package/dist/compiled/webpack-chain/index.js +0 -1475
- package/dist/compiled/webpack-chain/license +0 -373
- package/dist/compiled/webpack-chain/package.json +0 -1
- package/dist/compiled/webpack-chain/types/index.d.ts +0 -599
- package/dist/esm/rslib-runtime~1.mjs +0 -12
- /package/dist/compiled/commander/{license → LICENSE} +0 -0
- /package/dist/compiled/debug/{license → LICENSE} +0 -0
- /package/dist/compiled/{inquirer/types-license → debug/declaration-licenses/@types_debug/LICENSE} +0 -0
- /package/dist/compiled/dotenv-expand/{license → LICENSE} +0 -0
- /package/dist/compiled/js-yaml/{license → LICENSE} +0 -0
- /package/dist/compiled/lodash/{license → LICENSE} +0 -0
- /package/dist/compiled/mime-types/{license → LICENSE} +0 -0
- /package/dist/compiled/minimist/{license → LICENSE} +0 -0
- /package/dist/compiled/semver/{license → LICENSE} +0 -0
- /package/dist/compiled/tsconfig-paths/{license → LICENSE} +0 -0
- /package/dist/compiled/url-join/{license → LICENSE} +0 -0
|
@@ -0,0 +1,3467 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
createRequire(import.meta.url);
|
|
3
|
+
import { createRequire as i } from "module";
|
|
4
|
+
var p = {};
|
|
5
|
+
var f = {};
|
|
6
|
+
function __nccwpck_require__(i) {
|
|
7
|
+
var g = f[i];
|
|
8
|
+
if (void 0 !== g) return g.exports;
|
|
9
|
+
var y = f[i] = {
|
|
10
|
+
exports: {}
|
|
11
|
+
};
|
|
12
|
+
var b = true;
|
|
13
|
+
try {
|
|
14
|
+
p[i](y, y.exports, __nccwpck_require__);
|
|
15
|
+
b = false;
|
|
16
|
+
} finally{
|
|
17
|
+
if (b) delete f[i];
|
|
18
|
+
}
|
|
19
|
+
return y.exports;
|
|
20
|
+
}
|
|
21
|
+
if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = decodeURIComponent(new URL(".", import.meta.url).pathname).slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";
|
|
22
|
+
(()=>{
|
|
23
|
+
var i = Object.getPrototypeOf ? (i)=>Object.getPrototypeOf(i) : (i)=>i.__proto__;
|
|
24
|
+
var p;
|
|
25
|
+
__nccwpck_require__.t = function(f, g) {
|
|
26
|
+
if (1 & g) f = this(f);
|
|
27
|
+
if (8 & g) return f;
|
|
28
|
+
if ("object" == typeof f && f) {
|
|
29
|
+
if (4 & g && f.__esModule) return f;
|
|
30
|
+
if (16 & g && "function" == typeof f.then) return f;
|
|
31
|
+
}
|
|
32
|
+
var y = Object.create(null);
|
|
33
|
+
__nccwpck_require__.r(y);
|
|
34
|
+
var b = {};
|
|
35
|
+
p = p || [
|
|
36
|
+
null,
|
|
37
|
+
i({}),
|
|
38
|
+
i([]),
|
|
39
|
+
i(i)
|
|
40
|
+
];
|
|
41
|
+
for(var v = 2 & g && f; "object" == typeof v && !~p.indexOf(v); v = i(v))Object.getOwnPropertyNames(v).forEach((i)=>b[i] = ()=>f[i]);
|
|
42
|
+
b["default"] = ()=>f;
|
|
43
|
+
__nccwpck_require__.d(y, b);
|
|
44
|
+
return y;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
(()=>{
|
|
48
|
+
__nccwpck_require__.d = (i, p)=>{
|
|
49
|
+
for(var f in p)if (__nccwpck_require__.o(p, f) && !__nccwpck_require__.o(i, f)) Object.defineProperty(i, f, {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: p[f]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
})();
|
|
55
|
+
(()=>{
|
|
56
|
+
__nccwpck_require__.o = (i, p)=>Object.prototype.hasOwnProperty.call(i, p);
|
|
57
|
+
})();
|
|
58
|
+
(()=>{
|
|
59
|
+
__nccwpck_require__.r = (i)=>{
|
|
60
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(i, Symbol.toStringTag, {
|
|
61
|
+
value: "Module"
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(i, "__esModule", {
|
|
64
|
+
value: true
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
})();
|
|
68
|
+
var g = {};
|
|
69
|
+
__nccwpck_require__.d(g, {
|
|
70
|
+
fo: ()=>Zi,
|
|
71
|
+
Nt: ()=>zi,
|
|
72
|
+
ih: ()=>tt,
|
|
73
|
+
TI: ()=>Xi,
|
|
74
|
+
nk: ()=>es,
|
|
75
|
+
ue: ()=>Ut,
|
|
76
|
+
lj: ()=>Qe,
|
|
77
|
+
CK: ()=>Bt,
|
|
78
|
+
AZ: ()=>ts,
|
|
79
|
+
qt: ()=>le,
|
|
80
|
+
nl: ()=>Vi,
|
|
81
|
+
qD: ()=>Ki,
|
|
82
|
+
Td: ()=>Qi,
|
|
83
|
+
Qo: ()=>Ji,
|
|
84
|
+
OH: ()=>Yi,
|
|
85
|
+
x4: ()=>W
|
|
86
|
+
});
|
|
87
|
+
const y = i(import.meta.url)("node:url");
|
|
88
|
+
const b = i(import.meta.url)("node:path");
|
|
89
|
+
const v = i(import.meta.url)("fs");
|
|
90
|
+
const S = i(import.meta.url)("node:fs");
|
|
91
|
+
var E = __nccwpck_require__.t(S, 2);
|
|
92
|
+
const k = i(import.meta.url)("node:fs/promises");
|
|
93
|
+
const x = i(import.meta.url)("node:events");
|
|
94
|
+
const _ = i(import.meta.url)("node:stream");
|
|
95
|
+
const C = i(import.meta.url)("node:string_decoder");
|
|
96
|
+
var Gt = (i, p, f)=>{
|
|
97
|
+
let g = i instanceof RegExp ? ce(i, f) : i, y = p instanceof RegExp ? ce(p, f) : p, b = null !== g && null != y && ss(g, y, f);
|
|
98
|
+
return b && {
|
|
99
|
+
start: b[0],
|
|
100
|
+
end: b[1],
|
|
101
|
+
pre: f.slice(0, b[0]),
|
|
102
|
+
body: f.slice(b[0] + g.length, b[1]),
|
|
103
|
+
post: f.slice(b[1] + y.length)
|
|
104
|
+
};
|
|
105
|
+
}, ce = (i, p)=>{
|
|
106
|
+
let f = p.match(i);
|
|
107
|
+
return f ? f[0] : null;
|
|
108
|
+
}, ss = (i, p, f)=>{
|
|
109
|
+
let g, y, b, v, S, E = f.indexOf(i), k = f.indexOf(p, E + 1), x = E;
|
|
110
|
+
if (E >= 0 && k > 0) {
|
|
111
|
+
if (i === p) return [
|
|
112
|
+
E,
|
|
113
|
+
k
|
|
114
|
+
];
|
|
115
|
+
for(g = [], b = f.length; x >= 0 && !S;){
|
|
116
|
+
if (x === E) g.push(x), E = f.indexOf(i, x + 1);
|
|
117
|
+
else if (1 === g.length) {
|
|
118
|
+
let i = g.pop();
|
|
119
|
+
void 0 !== i && (S = [
|
|
120
|
+
i,
|
|
121
|
+
k
|
|
122
|
+
]);
|
|
123
|
+
} else y = g.pop(), void 0 !== y && y < b && (b = y, v = k), k = f.indexOf(p, x + 1);
|
|
124
|
+
x = E < k && E >= 0 ? E : k;
|
|
125
|
+
}
|
|
126
|
+
g.length && void 0 !== v && (S = [
|
|
127
|
+
b,
|
|
128
|
+
v
|
|
129
|
+
]);
|
|
130
|
+
}
|
|
131
|
+
return S;
|
|
132
|
+
};
|
|
133
|
+
var A = "\0SLASH" + Math.random() + "\0", T = "\0OPEN" + Math.random() + "\0", R = "\0CLOSE" + Math.random() + "\0", F = "\0COMMA" + Math.random() + "\0", M = "\0PERIOD" + Math.random() + "\0", P = new RegExp(A, "g"), j = new RegExp(T, "g"), D = new RegExp(R, "g"), L = new RegExp(F, "g"), z = new RegExp(M, "g"), B = /\\\\/g, $ = /\\{/g, U = /\\}/g, I = /\\,/g, G = /\\./g, H = 1e5;
|
|
134
|
+
function Ht(i) {
|
|
135
|
+
return isNaN(i) ? i.charCodeAt(0) : parseInt(i, 10);
|
|
136
|
+
}
|
|
137
|
+
function ps(i) {
|
|
138
|
+
return i.replace(B, A).replace($, T).replace(U, R).replace(I, F).replace(G, M);
|
|
139
|
+
}
|
|
140
|
+
function ms(i) {
|
|
141
|
+
return i.replace(P, "\\").replace(j, "{").replace(D, "}").replace(L, ",").replace(z, ".");
|
|
142
|
+
}
|
|
143
|
+
function me(i) {
|
|
144
|
+
if (!i) return [
|
|
145
|
+
""
|
|
146
|
+
];
|
|
147
|
+
let p = [], f = Gt("{", "}", i);
|
|
148
|
+
if (!f) return i.split(",");
|
|
149
|
+
let { pre: g, body: y, post: b } = f, v = g.split(",");
|
|
150
|
+
v[v.length - 1] += "{" + y + "}";
|
|
151
|
+
let S = me(b);
|
|
152
|
+
return b.length && (v[v.length - 1] += S.shift(), v.push.apply(v, S)), p.push.apply(p, v), p;
|
|
153
|
+
}
|
|
154
|
+
function ge(i, p = {}) {
|
|
155
|
+
if (!i) return [];
|
|
156
|
+
let { max: f = H } = p;
|
|
157
|
+
return "{}" === i.slice(0, 2) && (i = "\\{\\}" + i.slice(2)), ht(ps(i), f, !0).map(ms);
|
|
158
|
+
}
|
|
159
|
+
function gs(i) {
|
|
160
|
+
return "{" + i + "}";
|
|
161
|
+
}
|
|
162
|
+
function ws(i) {
|
|
163
|
+
return /^-?0\d/.test(i);
|
|
164
|
+
}
|
|
165
|
+
function ys(i, p) {
|
|
166
|
+
return i <= p;
|
|
167
|
+
}
|
|
168
|
+
function bs(i, p) {
|
|
169
|
+
return i >= p;
|
|
170
|
+
}
|
|
171
|
+
function ht(i, p, f) {
|
|
172
|
+
let g = [], y = Gt("{", "}", i);
|
|
173
|
+
if (!y) return [
|
|
174
|
+
i
|
|
175
|
+
];
|
|
176
|
+
let b = y.pre, v = y.post.length ? ht(y.post, p, !1) : [
|
|
177
|
+
""
|
|
178
|
+
];
|
|
179
|
+
if (/\$$/.test(y.pre)) for(let i = 0; i < v.length && i < p; i++){
|
|
180
|
+
let p = b + "{" + y.body + "}" + v[i];
|
|
181
|
+
g.push(p);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
let S = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body), E = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body), k = S || E, x = y.body.indexOf(",") >= 0;
|
|
185
|
+
if (!k && !x) return y.post.match(/,(?!,).*\}/) ? (i = y.pre + "{" + y.body + R + y.post, ht(i, p, !0)) : [
|
|
186
|
+
i
|
|
187
|
+
];
|
|
188
|
+
let _;
|
|
189
|
+
if (k) _ = y.body.split(/\.\./);
|
|
190
|
+
else if (_ = me(y.body), 1 === _.length && void 0 !== _[0] && (_ = ht(_[0], p, !1).map(gs), 1 === _.length)) return v.map((i)=>y.pre + _[0] + i);
|
|
191
|
+
let C;
|
|
192
|
+
if (k && void 0 !== _[0] && void 0 !== _[1]) {
|
|
193
|
+
let i = Ht(_[0]), p = Ht(_[1]), f = Math.max(_[0].length, _[1].length), g = 3 === _.length && void 0 !== _[2] ? Math.abs(Ht(_[2])) : 1, y = ys;
|
|
194
|
+
p < i && (g *= -1, y = bs);
|
|
195
|
+
let b = _.some(ws);
|
|
196
|
+
C = [];
|
|
197
|
+
for(let v = i; y(v, p); v += g){
|
|
198
|
+
let i;
|
|
199
|
+
if (E) i = String.fromCharCode(v), "\\" === i && (i = "");
|
|
200
|
+
else if (i = String(v), b) {
|
|
201
|
+
let p = f - i.length;
|
|
202
|
+
if (p > 0) {
|
|
203
|
+
let f = new Array(p + 1).join("0");
|
|
204
|
+
v < 0 ? i = "-" + f + i.slice(1) : i = f + i;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
C.push(i);
|
|
208
|
+
}
|
|
209
|
+
} else {
|
|
210
|
+
C = [];
|
|
211
|
+
for(let i = 0; i < _.length; i++)C.push.apply(C, ht(_[i], p, !1));
|
|
212
|
+
}
|
|
213
|
+
for(let i = 0; i < C.length; i++)for(let y = 0; y < v.length && g.length < p; y++){
|
|
214
|
+
let p = b + C[i] + v[y];
|
|
215
|
+
(!f || k || p) && g.push(p);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return g;
|
|
219
|
+
}
|
|
220
|
+
var at = (i)=>{
|
|
221
|
+
if ("string" != typeof i) throw new TypeError("invalid pattern");
|
|
222
|
+
if (i.length > 65536) throw new TypeError("pattern is too long");
|
|
223
|
+
};
|
|
224
|
+
var Z = {
|
|
225
|
+
"[:alnum:]": [
|
|
226
|
+
"\\p{L}\\p{Nl}\\p{Nd}",
|
|
227
|
+
!0
|
|
228
|
+
],
|
|
229
|
+
"[:alpha:]": [
|
|
230
|
+
"\\p{L}\\p{Nl}",
|
|
231
|
+
!0
|
|
232
|
+
],
|
|
233
|
+
"[:ascii:]": [
|
|
234
|
+
"\\x00-\\x7f",
|
|
235
|
+
!1
|
|
236
|
+
],
|
|
237
|
+
"[:blank:]": [
|
|
238
|
+
"\\p{Zs}\\t",
|
|
239
|
+
!0
|
|
240
|
+
],
|
|
241
|
+
"[:cntrl:]": [
|
|
242
|
+
"\\p{Cc}",
|
|
243
|
+
!0
|
|
244
|
+
],
|
|
245
|
+
"[:digit:]": [
|
|
246
|
+
"\\p{Nd}",
|
|
247
|
+
!0
|
|
248
|
+
],
|
|
249
|
+
"[:graph:]": [
|
|
250
|
+
"\\p{Z}\\p{C}",
|
|
251
|
+
!0,
|
|
252
|
+
!0
|
|
253
|
+
],
|
|
254
|
+
"[:lower:]": [
|
|
255
|
+
"\\p{Ll}",
|
|
256
|
+
!0
|
|
257
|
+
],
|
|
258
|
+
"[:print:]": [
|
|
259
|
+
"\\p{C}",
|
|
260
|
+
!0
|
|
261
|
+
],
|
|
262
|
+
"[:punct:]": [
|
|
263
|
+
"\\p{P}",
|
|
264
|
+
!0
|
|
265
|
+
],
|
|
266
|
+
"[:space:]": [
|
|
267
|
+
"\\p{Z}\\t\\r\\n\\v\\f",
|
|
268
|
+
!0
|
|
269
|
+
],
|
|
270
|
+
"[:upper:]": [
|
|
271
|
+
"\\p{Lu}",
|
|
272
|
+
!0
|
|
273
|
+
],
|
|
274
|
+
"[:word:]": [
|
|
275
|
+
"\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",
|
|
276
|
+
!0
|
|
277
|
+
],
|
|
278
|
+
"[:xdigit:]": [
|
|
279
|
+
"A-Fa-f0-9",
|
|
280
|
+
!1
|
|
281
|
+
]
|
|
282
|
+
}, lt = (i)=>i.replace(/[[\]\\-]/g, "\\$&"), Es = (i)=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), we = (i)=>i.join(""), ye = (i, p)=>{
|
|
283
|
+
let f = p;
|
|
284
|
+
if ("[" !== i.charAt(f)) throw new Error("not in a brace expression");
|
|
285
|
+
let g = [], y = [], b = f + 1, v = !1, S = !1, E = !1, k = !1, x = f, _ = "";
|
|
286
|
+
t: for(; b < i.length;){
|
|
287
|
+
let p = i.charAt(b);
|
|
288
|
+
if (("!" === p || "^" === p) && b === f + 1) {
|
|
289
|
+
k = !0, b++;
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
if ("]" === p && v && !E) {
|
|
293
|
+
x = b + 1;
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
if (v = !0, "\\" === p && !E) {
|
|
297
|
+
E = !0, b++;
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
if ("[" === p && !E) {
|
|
301
|
+
for (let [p, [v, E, k]] of Object.entries(Z))if (i.startsWith(p, b)) {
|
|
302
|
+
if (_) return [
|
|
303
|
+
"$.",
|
|
304
|
+
!1,
|
|
305
|
+
i.length - f,
|
|
306
|
+
!0
|
|
307
|
+
];
|
|
308
|
+
b += p.length, k ? y.push(v) : g.push(v), S = S || E;
|
|
309
|
+
continue t;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if (E = !1, _) {
|
|
313
|
+
p > _ ? g.push(lt(_) + "-" + lt(p)) : p === _ && g.push(lt(p)), _ = "", b++;
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
if (i.startsWith("-]", b + 1)) {
|
|
317
|
+
g.push(lt(p + "-")), b += 2;
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
if (i.startsWith("-", b + 1)) {
|
|
321
|
+
_ = p, b += 2;
|
|
322
|
+
continue;
|
|
323
|
+
}
|
|
324
|
+
g.push(lt(p)), b++;
|
|
325
|
+
}
|
|
326
|
+
if (x < b) return [
|
|
327
|
+
"",
|
|
328
|
+
!1,
|
|
329
|
+
0,
|
|
330
|
+
!1
|
|
331
|
+
];
|
|
332
|
+
if (!g.length && !y.length) return [
|
|
333
|
+
"$.",
|
|
334
|
+
!1,
|
|
335
|
+
i.length - f,
|
|
336
|
+
!0
|
|
337
|
+
];
|
|
338
|
+
if (0 === y.length && 1 === g.length && /^\\?.$/.test(g[0]) && !k) {
|
|
339
|
+
let i = 2 === g[0].length ? g[0].slice(-1) : g[0];
|
|
340
|
+
return [
|
|
341
|
+
Es(i),
|
|
342
|
+
!1,
|
|
343
|
+
x - f,
|
|
344
|
+
!1
|
|
345
|
+
];
|
|
346
|
+
}
|
|
347
|
+
let C = "[" + (k ? "^" : "") + we(g) + "]", A = "[" + (k ? "" : "^") + we(y) + "]";
|
|
348
|
+
return [
|
|
349
|
+
g.length && y.length ? "(" + C + "|" + A + ")" : g.length ? C : A,
|
|
350
|
+
S,
|
|
351
|
+
x - f,
|
|
352
|
+
!0
|
|
353
|
+
];
|
|
354
|
+
};
|
|
355
|
+
var W = (i, { windowsPathsNoEscape: p = !1, magicalBraces: f = !0 } = {})=>f ? p ? i.replace(/\[([^\/\\])\]/g, "$1") : i.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1") : p ? i.replace(/\[([^\/\\{}])\]/g, "$1") : i.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
|
|
356
|
+
var J = new Set([
|
|
357
|
+
"!",
|
|
358
|
+
"?",
|
|
359
|
+
"+",
|
|
360
|
+
"*",
|
|
361
|
+
"@"
|
|
362
|
+
]), be = (i)=>J.has(i), Q = "(?!(?:^|/)\\.\\.?(?:$|/))", K = "(?!\\.)", V = new Set([
|
|
363
|
+
"[",
|
|
364
|
+
"."
|
|
365
|
+
]), Y = new Set([
|
|
366
|
+
"..",
|
|
367
|
+
"."
|
|
368
|
+
]), X = new Set("().*{}+?[]^$\\!"), ks = (i)=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), et = "[^/]", it = et + "*?", st = et + "+?", rt = class n {
|
|
369
|
+
type;
|
|
370
|
+
#t;
|
|
371
|
+
#e;
|
|
372
|
+
#i = !1;
|
|
373
|
+
#s = [];
|
|
374
|
+
#r;
|
|
375
|
+
#h;
|
|
376
|
+
#n;
|
|
377
|
+
#o = !1;
|
|
378
|
+
#a;
|
|
379
|
+
#l;
|
|
380
|
+
#c = !1;
|
|
381
|
+
constructor(i, p, f = {}){
|
|
382
|
+
this.type = i, i && (this.#e = !0), this.#r = p, this.#t = this.#r ? this.#r.#t : this, this.#a = this.#t === this ? f : this.#t.#a, this.#n = this.#t === this ? [] : this.#t.#n, "!" !== i || this.#t.#o || this.#n.push(this), this.#h = this.#r ? this.#r.#s.length : 0;
|
|
383
|
+
}
|
|
384
|
+
get hasMagic() {
|
|
385
|
+
if (void 0 !== this.#e) return this.#e;
|
|
386
|
+
for (let i of this.#s)if ("string" != typeof i && (i.type || i.hasMagic)) return this.#e = !0;
|
|
387
|
+
return this.#e;
|
|
388
|
+
}
|
|
389
|
+
toString() {
|
|
390
|
+
return void 0 !== this.#l ? this.#l : this.type ? this.#l = this.type + "(" + this.#s.map((i)=>String(i)).join("|") + ")" : this.#l = this.#s.map((i)=>String(i)).join("");
|
|
391
|
+
}
|
|
392
|
+
#u() {
|
|
393
|
+
if (this !== this.#t) throw new Error("should only call on root");
|
|
394
|
+
if (this.#o) return this;
|
|
395
|
+
this.toString(), this.#o = !0;
|
|
396
|
+
let i;
|
|
397
|
+
for(; i = this.#n.pop();){
|
|
398
|
+
if ("!" !== i.type) continue;
|
|
399
|
+
let p = i, f = p.#r;
|
|
400
|
+
for(; f;){
|
|
401
|
+
for(let g = p.#h + 1; !f.type && g < f.#s.length; g++)for (let p of i.#s){
|
|
402
|
+
if ("string" == typeof p) throw new Error("string part in extglob AST??");
|
|
403
|
+
p.copyIn(f.#s[g]);
|
|
404
|
+
}
|
|
405
|
+
p = f, f = p.#r;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return this;
|
|
409
|
+
}
|
|
410
|
+
push(...i) {
|
|
411
|
+
for (let p of i)if ("" !== p) {
|
|
412
|
+
if ("string" != typeof p && !(p instanceof n && p.#r === this)) throw new Error("invalid part: " + p);
|
|
413
|
+
this.#s.push(p);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
toJSON() {
|
|
417
|
+
let i = null === this.type ? this.#s.slice().map((i)=>"string" == typeof i ? i : i.toJSON()) : [
|
|
418
|
+
this.type,
|
|
419
|
+
...this.#s.map((i)=>i.toJSON())
|
|
420
|
+
];
|
|
421
|
+
return this.isStart() && !this.type && i.unshift([]), this.isEnd() && (this === this.#t || this.#t.#o && this.#r?.type === "!") && i.push({}), i;
|
|
422
|
+
}
|
|
423
|
+
isStart() {
|
|
424
|
+
if (this.#t === this) return !0;
|
|
425
|
+
if (!this.#r?.isStart()) return !1;
|
|
426
|
+
if (0 === this.#h) return !0;
|
|
427
|
+
let i = this.#r;
|
|
428
|
+
for(let p = 0; p < this.#h; p++){
|
|
429
|
+
let f = i.#s[p];
|
|
430
|
+
if (!(f instanceof n && "!" === f.type)) return !1;
|
|
431
|
+
}
|
|
432
|
+
return !0;
|
|
433
|
+
}
|
|
434
|
+
isEnd() {
|
|
435
|
+
if (this.#t === this || this.#r?.type === "!") return !0;
|
|
436
|
+
if (!this.#r?.isEnd()) return !1;
|
|
437
|
+
if (!this.type) return this.#r?.isEnd();
|
|
438
|
+
let i = this.#r ? this.#r.#s.length : 0;
|
|
439
|
+
return this.#h === i - 1;
|
|
440
|
+
}
|
|
441
|
+
copyIn(i) {
|
|
442
|
+
"string" == typeof i ? this.push(i) : this.push(i.clone(this));
|
|
443
|
+
}
|
|
444
|
+
clone(i) {
|
|
445
|
+
let p = new n(this.type, i);
|
|
446
|
+
for (let i of this.#s)p.copyIn(i);
|
|
447
|
+
return p;
|
|
448
|
+
}
|
|
449
|
+
static #p(i, p, f, g) {
|
|
450
|
+
let y = !1, b = !1, v = -1, S = !1;
|
|
451
|
+
if (null === p.type) {
|
|
452
|
+
let E = f, k = "";
|
|
453
|
+
for(; E < i.length;){
|
|
454
|
+
let f = i.charAt(E++);
|
|
455
|
+
if (y || "\\" === f) {
|
|
456
|
+
y = !y, k += f;
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
if (b) {
|
|
460
|
+
E === v + 1 ? ("^" === f || "!" === f) && (S = !0) : "]" !== f || E === v + 2 && S || (b = !1), k += f;
|
|
461
|
+
continue;
|
|
462
|
+
} else if ("[" === f) {
|
|
463
|
+
b = !0, v = E, S = !1, k += f;
|
|
464
|
+
continue;
|
|
465
|
+
}
|
|
466
|
+
if (!g.noext && be(f) && "(" === i.charAt(E)) {
|
|
467
|
+
p.push(k), k = "";
|
|
468
|
+
let y = new n(f, p);
|
|
469
|
+
E = n.#p(i, y, E, g), p.push(y);
|
|
470
|
+
continue;
|
|
471
|
+
}
|
|
472
|
+
k += f;
|
|
473
|
+
}
|
|
474
|
+
return p.push(k), E;
|
|
475
|
+
}
|
|
476
|
+
let E = f + 1, k = new n(null, p), x = [], _ = "";
|
|
477
|
+
for(; E < i.length;){
|
|
478
|
+
let f = i.charAt(E++);
|
|
479
|
+
if (y || "\\" === f) {
|
|
480
|
+
y = !y, _ += f;
|
|
481
|
+
continue;
|
|
482
|
+
}
|
|
483
|
+
if (b) {
|
|
484
|
+
E === v + 1 ? ("^" === f || "!" === f) && (S = !0) : "]" !== f || E === v + 2 && S || (b = !1), _ += f;
|
|
485
|
+
continue;
|
|
486
|
+
} else if ("[" === f) {
|
|
487
|
+
b = !0, v = E, S = !1, _ += f;
|
|
488
|
+
continue;
|
|
489
|
+
}
|
|
490
|
+
if (be(f) && "(" === i.charAt(E)) {
|
|
491
|
+
k.push(_), _ = "";
|
|
492
|
+
let p = new n(f, k);
|
|
493
|
+
k.push(p), E = n.#p(i, p, E, g);
|
|
494
|
+
continue;
|
|
495
|
+
}
|
|
496
|
+
if ("|" === f) {
|
|
497
|
+
k.push(_), _ = "", x.push(k), k = new n(null, p);
|
|
498
|
+
continue;
|
|
499
|
+
}
|
|
500
|
+
if (")" === f) return "" === _ && 0 === p.#s.length && (p.#c = !0), k.push(_), _ = "", p.push(...x, k), E;
|
|
501
|
+
_ += f;
|
|
502
|
+
}
|
|
503
|
+
return p.type = null, p.#e = void 0, p.#s = [
|
|
504
|
+
i.substring(f - 1)
|
|
505
|
+
], E;
|
|
506
|
+
}
|
|
507
|
+
static fromGlob(i, p = {}) {
|
|
508
|
+
let f = new n(null, void 0, p);
|
|
509
|
+
return n.#p(i, f, 0, p), f;
|
|
510
|
+
}
|
|
511
|
+
toMMPattern() {
|
|
512
|
+
if (this !== this.#t) return this.#t.toMMPattern();
|
|
513
|
+
let i = this.toString(), [p, f, g, y] = this.toRegExpSource();
|
|
514
|
+
if (!(g || this.#e || this.#a.nocase && !this.#a.nocaseMagicOnly && i.toUpperCase() !== i.toLowerCase())) return f;
|
|
515
|
+
let b = (this.#a.nocase ? "i" : "") + (y ? "u" : "");
|
|
516
|
+
return Object.assign(new RegExp(`^${p}$`, b), {
|
|
517
|
+
_src: p,
|
|
518
|
+
_glob: i
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
get options() {
|
|
522
|
+
return this.#a;
|
|
523
|
+
}
|
|
524
|
+
toRegExpSource(i) {
|
|
525
|
+
let p = i ?? !!this.#a.dot;
|
|
526
|
+
if (this.#t === this && this.#u(), !this.type) {
|
|
527
|
+
let f = this.isStart() && this.isEnd() && !this.#s.some((i)=>"string" != typeof i), g = this.#s.map((p)=>{
|
|
528
|
+
let [g, y, b, v] = "string" == typeof p ? n.#f(p, this.#e, f) : p.toRegExpSource(i);
|
|
529
|
+
return this.#e = this.#e || b, this.#i = this.#i || v, g;
|
|
530
|
+
}).join(""), y = "";
|
|
531
|
+
if (this.isStart() && "string" == typeof this.#s[0] && !(1 === this.#s.length && Y.has(this.#s[0]))) {
|
|
532
|
+
let f = V, b = p && f.has(g.charAt(0)) || g.startsWith("\\.") && f.has(g.charAt(2)) || g.startsWith("\\.\\.") && f.has(g.charAt(4)), v = !p && !i && f.has(g.charAt(0));
|
|
533
|
+
y = b ? Q : v ? K : "";
|
|
534
|
+
}
|
|
535
|
+
let b = "";
|
|
536
|
+
return this.isEnd() && this.#t.#o && this.#r?.type === "!" && (b = "(?:$|\\/)"), [
|
|
537
|
+
y + g + b,
|
|
538
|
+
W(g),
|
|
539
|
+
this.#e = !!this.#e,
|
|
540
|
+
this.#i
|
|
541
|
+
];
|
|
542
|
+
}
|
|
543
|
+
let f = "*" === this.type || "+" === this.type, g = "!" === this.type ? "(?:(?!(?:" : "(?:", y = this.#d(p);
|
|
544
|
+
if (this.isStart() && this.isEnd() && !y && "!" !== this.type) {
|
|
545
|
+
let i = this.toString();
|
|
546
|
+
return this.#s = [
|
|
547
|
+
i
|
|
548
|
+
], this.type = null, this.#e = void 0, [
|
|
549
|
+
i,
|
|
550
|
+
W(this.toString()),
|
|
551
|
+
!1,
|
|
552
|
+
!1
|
|
553
|
+
];
|
|
554
|
+
}
|
|
555
|
+
let b = !f || i || p || !K ? "" : this.#d(!0);
|
|
556
|
+
b === y && (b = ""), b && (y = `(?:${y})(?:${b})*?`);
|
|
557
|
+
let v = "";
|
|
558
|
+
if ("!" === this.type && this.#c) v = (this.isStart() && !p ? K : "") + st;
|
|
559
|
+
else {
|
|
560
|
+
let f = "!" === this.type ? "))" + (!this.isStart() || p || i ? "" : K) + it + ")" : "@" === this.type ? ")" : "?" === this.type ? ")?" : "+" === this.type && b ? ")" : "*" === this.type && b ? ")?" : `)${this.type}`;
|
|
561
|
+
v = g + y + f;
|
|
562
|
+
}
|
|
563
|
+
return [
|
|
564
|
+
v,
|
|
565
|
+
W(y),
|
|
566
|
+
this.#e = !!this.#e,
|
|
567
|
+
this.#i
|
|
568
|
+
];
|
|
569
|
+
}
|
|
570
|
+
#d(i) {
|
|
571
|
+
return this.#s.map((p)=>{
|
|
572
|
+
if ("string" == typeof p) throw new Error("string type in extglob ast??");
|
|
573
|
+
let [f, g, y, b] = p.toRegExpSource(i);
|
|
574
|
+
return this.#i = this.#i || b, f;
|
|
575
|
+
}).filter((i)=>!(this.isStart() && this.isEnd()) || !!i).join("|");
|
|
576
|
+
}
|
|
577
|
+
static #f(i, p, f = !1) {
|
|
578
|
+
let g = !1, y = "", b = !1, v = !1;
|
|
579
|
+
for(let S = 0; S < i.length; S++){
|
|
580
|
+
let E = i.charAt(S);
|
|
581
|
+
if (g) {
|
|
582
|
+
g = !1, y += (X.has(E) ? "\\" : "") + E;
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
if ("*" === E) {
|
|
586
|
+
if (v) continue;
|
|
587
|
+
v = !0, y += f && /^[*]+$/.test(i) ? st : it, p = !0;
|
|
588
|
+
continue;
|
|
589
|
+
} else v = !1;
|
|
590
|
+
if ("\\" === E) {
|
|
591
|
+
S === i.length - 1 ? y += "\\\\" : g = !0;
|
|
592
|
+
continue;
|
|
593
|
+
}
|
|
594
|
+
if ("[" === E) {
|
|
595
|
+
let [f, g, v, E] = ye(i, S);
|
|
596
|
+
if (v) {
|
|
597
|
+
y += f, b = b || g, S += v - 1, p = p || E;
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
if ("?" === E) {
|
|
602
|
+
y += et, p = !0;
|
|
603
|
+
continue;
|
|
604
|
+
}
|
|
605
|
+
y += ks(E);
|
|
606
|
+
}
|
|
607
|
+
return [
|
|
608
|
+
y,
|
|
609
|
+
W(i),
|
|
610
|
+
!!p,
|
|
611
|
+
b
|
|
612
|
+
];
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
var tt = (i, { windowsPathsNoEscape: p = !1, magicalBraces: f = !1 } = {})=>f ? p ? i.replace(/[?*()[\]{}]/g, "[$&]") : i.replace(/[?*()[\]\\{}]/g, "\\$&") : p ? i.replace(/[?*()[\]]/g, "[$&]") : i.replace(/[?*()[\]\\]/g, "\\$&");
|
|
616
|
+
var O = (i, p, f = {})=>(at(p), f.nocomment || "#" !== p.charAt(0) ? new Ct(p, f).match(i) : !1), nt = /^\*+([^+@!?\*\[\(]*)$/, Os = (i)=>(p)=>!p.startsWith(".") && p.endsWith(i), Fs = (i)=>(p)=>p.endsWith(i), Ds = (i)=>(i = i.toLowerCase(), (p)=>!p.startsWith(".") && p.toLowerCase().endsWith(i)), Ms = (i)=>(i = i.toLowerCase(), (p)=>p.toLowerCase().endsWith(i)), ot = /^\*+\.\*+$/, _s = (i)=>!i.startsWith(".") && i.includes("."), Ls = (i)=>"." !== i && ".." !== i && i.includes("."), ut = /^\.\*+$/, Ps = (i)=>"." !== i && ".." !== i && i.startsWith("."), pt = /^\*+$/, Is = (i)=>0 !== i.length && !i.startsWith("."), zs = (i)=>0 !== i.length && "." !== i && ".." !== i, ft = /^\?+([^+@!?\*\[\(]*)?$/, Us = ([i, p = ""])=>{
|
|
617
|
+
let f = Ce([
|
|
618
|
+
i
|
|
619
|
+
]);
|
|
620
|
+
return p ? (p = p.toLowerCase(), (i)=>f(i) && i.toLowerCase().endsWith(p)) : f;
|
|
621
|
+
}, $s = ([i, p = ""])=>{
|
|
622
|
+
let f = Te([
|
|
623
|
+
i
|
|
624
|
+
]);
|
|
625
|
+
return p ? (p = p.toLowerCase(), (i)=>f(i) && i.toLowerCase().endsWith(p)) : f;
|
|
626
|
+
}, Gs = ([i, p = ""])=>{
|
|
627
|
+
let f = Te([
|
|
628
|
+
i
|
|
629
|
+
]);
|
|
630
|
+
return p ? (i)=>f(i) && i.endsWith(p) : f;
|
|
631
|
+
}, Hs = ([i, p = ""])=>{
|
|
632
|
+
let f = Ce([
|
|
633
|
+
i
|
|
634
|
+
]);
|
|
635
|
+
return p ? (i)=>f(i) && i.endsWith(p) : f;
|
|
636
|
+
}, Ce = ([i])=>{
|
|
637
|
+
let p = i.length;
|
|
638
|
+
return (i)=>i.length === p && !i.startsWith(".");
|
|
639
|
+
}, Te = ([i])=>{
|
|
640
|
+
let p = i.length;
|
|
641
|
+
return (i)=>i.length === p && "." !== i && ".." !== i;
|
|
642
|
+
}, dt = "object" == typeof process && process ? "object" == typeof process.env && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", gt = {
|
|
643
|
+
win32: {
|
|
644
|
+
sep: "\\"
|
|
645
|
+
},
|
|
646
|
+
posix: {
|
|
647
|
+
sep: "/"
|
|
648
|
+
}
|
|
649
|
+
}, wt = "win32" === dt ? gt.win32.sep : gt.posix.sep;
|
|
650
|
+
O.sep = wt;
|
|
651
|
+
var yt = Symbol("globstar **");
|
|
652
|
+
O.GLOBSTAR = yt;
|
|
653
|
+
var vt = "[^/]", St = vt + "*?", Et = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?", kt = "(?:(?!(?:\\/|^)\\.).)*?", Js = (i, p = {})=>(f)=>O(f, i, p);
|
|
654
|
+
O.filter = Js;
|
|
655
|
+
var N = (i, p = {})=>Object.assign({}, i, p), Zs = (i)=>{
|
|
656
|
+
if (!i || "object" != typeof i || !Object.keys(i).length) return O;
|
|
657
|
+
let p = O;
|
|
658
|
+
return Object.assign((f, g, y = {})=>p(f, g, N(i, y)), {
|
|
659
|
+
Minimatch: class extends p.Minimatch {
|
|
660
|
+
constructor(p, f = {}){
|
|
661
|
+
super(p, N(i, f));
|
|
662
|
+
}
|
|
663
|
+
static defaults(f) {
|
|
664
|
+
return p.defaults(N(i, f)).Minimatch;
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
AST: class extends p.AST {
|
|
668
|
+
constructor(p, f, g = {}){
|
|
669
|
+
super(p, f, N(i, g));
|
|
670
|
+
}
|
|
671
|
+
static fromGlob(f, g = {}) {
|
|
672
|
+
return p.AST.fromGlob(f, N(i, g));
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
unescape: (f, g = {})=>p.unescape(f, N(i, g)),
|
|
676
|
+
escape: (f, g = {})=>p.escape(f, N(i, g)),
|
|
677
|
+
filter: (f, g = {})=>p.filter(f, N(i, g)),
|
|
678
|
+
defaults: (f)=>p.defaults(N(i, f)),
|
|
679
|
+
makeRe: (f, g = {})=>p.makeRe(f, N(i, g)),
|
|
680
|
+
braceExpand: (f, g = {})=>p.braceExpand(f, N(i, g)),
|
|
681
|
+
match: (f, g, y = {})=>p.match(f, g, N(i, y)),
|
|
682
|
+
sep: p.sep,
|
|
683
|
+
GLOBSTAR: yt
|
|
684
|
+
});
|
|
685
|
+
};
|
|
686
|
+
O.defaults = Zs;
|
|
687
|
+
var ke = (i, p = {})=>(at(i), p.nobrace || !/\{(?:(?!\{).)*\}/.test(i) ? [
|
|
688
|
+
i
|
|
689
|
+
] : ge(i, {
|
|
690
|
+
max: p.braceExpandMax
|
|
691
|
+
}));
|
|
692
|
+
O.braceExpand = ke;
|
|
693
|
+
var Qs = (i, p = {})=>new Ct(i, p).makeRe();
|
|
694
|
+
O.makeRe = Qs;
|
|
695
|
+
var ti = (i, p, f = {})=>{
|
|
696
|
+
let g = new Ct(p, f);
|
|
697
|
+
return i = i.filter((i)=>g.match(i)), g.options.nonull && !i.length && i.push(p), i;
|
|
698
|
+
};
|
|
699
|
+
O.match = ti;
|
|
700
|
+
var xt = /[?*]|[+@!]\(.*?\)|\[|\]/, ei = (i)=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Ct = class {
|
|
701
|
+
options;
|
|
702
|
+
set;
|
|
703
|
+
pattern;
|
|
704
|
+
windowsPathsNoEscape;
|
|
705
|
+
nonegate;
|
|
706
|
+
negate;
|
|
707
|
+
comment;
|
|
708
|
+
empty;
|
|
709
|
+
preserveMultipleSlashes;
|
|
710
|
+
partial;
|
|
711
|
+
globSet;
|
|
712
|
+
globParts;
|
|
713
|
+
nocase;
|
|
714
|
+
isWindows;
|
|
715
|
+
platform;
|
|
716
|
+
windowsNoMagicRoot;
|
|
717
|
+
regexp;
|
|
718
|
+
constructor(i, p = {}){
|
|
719
|
+
at(i), p = p || {}, this.options = p, this.pattern = i, this.platform = p.platform || dt, this.isWindows = "win32" === this.platform;
|
|
720
|
+
let f = "allowWindowsEscape";
|
|
721
|
+
this.windowsPathsNoEscape = !!p.windowsPathsNoEscape || !1 === p[f], this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!p.preserveMultipleSlashes, this.regexp = null, this.negate = !1, this.nonegate = !!p.nonegate, this.comment = !1, this.empty = !1, this.partial = !!p.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = void 0 !== p.windowsNoMagicRoot ? p.windowsNoMagicRoot : !!(this.isWindows && this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.make();
|
|
722
|
+
}
|
|
723
|
+
hasMagic() {
|
|
724
|
+
if (this.options.magicalBraces && this.set.length > 1) return !0;
|
|
725
|
+
for (let i of this.set)for (let p of i)if ("string" != typeof p) return !0;
|
|
726
|
+
return !1;
|
|
727
|
+
}
|
|
728
|
+
debug() {}
|
|
729
|
+
make() {
|
|
730
|
+
let i = this.pattern, p = this.options;
|
|
731
|
+
if (!p.nocomment && "#" === i.charAt(0)) {
|
|
732
|
+
this.comment = !0;
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
if (!i) {
|
|
736
|
+
this.empty = !0;
|
|
737
|
+
return;
|
|
738
|
+
}
|
|
739
|
+
this.parseNegate(), this.globSet = [
|
|
740
|
+
...new Set(this.braceExpand())
|
|
741
|
+
], p.debug && (this.debug = (...i)=>console.error(...i)), this.debug(this.pattern, this.globSet);
|
|
742
|
+
let f = this.globSet.map((i)=>this.slashSplit(i));
|
|
743
|
+
this.globParts = this.preprocess(f), this.debug(this.pattern, this.globParts);
|
|
744
|
+
let g = this.globParts.map((i, p, f)=>{
|
|
745
|
+
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
746
|
+
let p = "" === i[0] && "" === i[1] && ("?" === i[2] || !xt.test(i[2])) && !xt.test(i[3]), f = /^[a-z]:/i.test(i[0]);
|
|
747
|
+
if (p) return [
|
|
748
|
+
...i.slice(0, 4),
|
|
749
|
+
...i.slice(4).map((i)=>this.parse(i))
|
|
750
|
+
];
|
|
751
|
+
if (f) return [
|
|
752
|
+
i[0],
|
|
753
|
+
...i.slice(1).map((i)=>this.parse(i))
|
|
754
|
+
];
|
|
755
|
+
}
|
|
756
|
+
return i.map((i)=>this.parse(i));
|
|
757
|
+
});
|
|
758
|
+
if (this.debug(this.pattern, g), this.set = g.filter((i)=>-1 === i.indexOf(!1)), this.isWindows) for(let i = 0; i < this.set.length; i++){
|
|
759
|
+
let p = this.set[i];
|
|
760
|
+
"" === p[0] && "" === p[1] && "?" === this.globParts[i][2] && "string" == typeof p[3] && /^[a-z]:$/i.test(p[3]) && (p[2] = "?");
|
|
761
|
+
}
|
|
762
|
+
this.debug(this.pattern, this.set);
|
|
763
|
+
}
|
|
764
|
+
preprocess(i) {
|
|
765
|
+
if (this.options.noglobstar) for(let p = 0; p < i.length; p++)for(let f = 0; f < i[p].length; f++)"**" === i[p][f] && (i[p][f] = "*");
|
|
766
|
+
let { optimizationLevel: p = 1 } = this.options;
|
|
767
|
+
return p >= 2 ? (i = this.firstPhasePreProcess(i), i = this.secondPhasePreProcess(i)) : p >= 1 ? i = this.levelOneOptimize(i) : i = this.adjascentGlobstarOptimize(i), i;
|
|
768
|
+
}
|
|
769
|
+
adjascentGlobstarOptimize(i) {
|
|
770
|
+
return i.map((i)=>{
|
|
771
|
+
let p = -1;
|
|
772
|
+
for(; -1 !== (p = i.indexOf("**", p + 1));){
|
|
773
|
+
let f = p;
|
|
774
|
+
for(; "**" === i[f + 1];)f++;
|
|
775
|
+
f !== p && i.splice(p, f - p);
|
|
776
|
+
}
|
|
777
|
+
return i;
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
levelOneOptimize(i) {
|
|
781
|
+
return i.map((i)=>(i = i.reduce((i, p)=>{
|
|
782
|
+
let f = i[i.length - 1];
|
|
783
|
+
return "**" === p && "**" === f ? i : ".." === p && f && ".." !== f && "." !== f && "**" !== f ? (i.pop(), i) : (i.push(p), i);
|
|
784
|
+
}, []), 0 === i.length ? [
|
|
785
|
+
""
|
|
786
|
+
] : i));
|
|
787
|
+
}
|
|
788
|
+
levelTwoFileOptimize(i) {
|
|
789
|
+
Array.isArray(i) || (i = this.slashSplit(i));
|
|
790
|
+
let p = !1;
|
|
791
|
+
do {
|
|
792
|
+
if (p = !1, !this.preserveMultipleSlashes) {
|
|
793
|
+
for(let f = 1; f < i.length - 1; f++){
|
|
794
|
+
let g = i[f];
|
|
795
|
+
1 === f && "" === g && "" === i[0] || ("." === g || "" === g) && (p = !0, i.splice(f, 1), f--);
|
|
796
|
+
}
|
|
797
|
+
"." === i[0] && 2 === i.length && ("." === i[1] || "" === i[1]) && (p = !0, i.pop());
|
|
798
|
+
}
|
|
799
|
+
let f = 0;
|
|
800
|
+
for(; -1 !== (f = i.indexOf("..", f + 1));){
|
|
801
|
+
let g = i[f - 1];
|
|
802
|
+
g && "." !== g && ".." !== g && "**" !== g && (p = !0, i.splice(f - 1, 2), f -= 2);
|
|
803
|
+
}
|
|
804
|
+
}while (p);
|
|
805
|
+
return 0 === i.length ? [
|
|
806
|
+
""
|
|
807
|
+
] : i;
|
|
808
|
+
}
|
|
809
|
+
firstPhasePreProcess(i) {
|
|
810
|
+
let p = !1;
|
|
811
|
+
do {
|
|
812
|
+
p = !1;
|
|
813
|
+
for (let f of i){
|
|
814
|
+
let g = -1;
|
|
815
|
+
for(; -1 !== (g = f.indexOf("**", g + 1));){
|
|
816
|
+
let y = g;
|
|
817
|
+
for(; "**" === f[y + 1];)y++;
|
|
818
|
+
y > g && f.splice(g + 1, y - g);
|
|
819
|
+
let b = f[g + 1], v = f[g + 2], S = f[g + 3];
|
|
820
|
+
if (".." !== b || !v || "." === v || ".." === v || !S || "." === S || ".." === S) continue;
|
|
821
|
+
p = !0, f.splice(g, 1);
|
|
822
|
+
let E = f.slice(0);
|
|
823
|
+
E[g] = "**", i.push(E), g--;
|
|
824
|
+
}
|
|
825
|
+
if (!this.preserveMultipleSlashes) {
|
|
826
|
+
for(let i = 1; i < f.length - 1; i++){
|
|
827
|
+
let g = f[i];
|
|
828
|
+
1 === i && "" === g && "" === f[0] || ("." === g || "" === g) && (p = !0, f.splice(i, 1), i--);
|
|
829
|
+
}
|
|
830
|
+
"." === f[0] && 2 === f.length && ("." === f[1] || "" === f[1]) && (p = !0, f.pop());
|
|
831
|
+
}
|
|
832
|
+
let y = 0;
|
|
833
|
+
for(; -1 !== (y = f.indexOf("..", y + 1));){
|
|
834
|
+
let i = f[y - 1];
|
|
835
|
+
if (i && "." !== i && ".." !== i && "**" !== i) {
|
|
836
|
+
p = !0;
|
|
837
|
+
let i = 1 === y && "**" === f[y + 1] ? [
|
|
838
|
+
"."
|
|
839
|
+
] : [];
|
|
840
|
+
f.splice(y - 1, 2, ...i), 0 === f.length && f.push(""), y -= 2;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}while (p);
|
|
845
|
+
return i;
|
|
846
|
+
}
|
|
847
|
+
secondPhasePreProcess(i) {
|
|
848
|
+
for(let p = 0; p < i.length - 1; p++)for(let f = p + 1; f < i.length; f++){
|
|
849
|
+
let g = this.partsMatch(i[p], i[f], !this.preserveMultipleSlashes);
|
|
850
|
+
if (g) {
|
|
851
|
+
i[p] = [], i[f] = g;
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
return i.filter((i)=>i.length);
|
|
856
|
+
}
|
|
857
|
+
partsMatch(i, p, f = !1) {
|
|
858
|
+
let g = 0, y = 0, b = [], v = "";
|
|
859
|
+
for(; g < i.length && y < p.length;)if (i[g] === p[y]) b.push("b" === v ? p[y] : i[g]), g++, y++;
|
|
860
|
+
else if (f && "**" === i[g] && p[y] === i[g + 1]) b.push(i[g]), g++;
|
|
861
|
+
else if (f && "**" === p[y] && i[g] === p[y + 1]) b.push(p[y]), y++;
|
|
862
|
+
else if ("*" === i[g] && p[y] && (this.options.dot || !p[y].startsWith(".")) && "**" !== p[y]) {
|
|
863
|
+
if ("b" === v) return !1;
|
|
864
|
+
v = "a", b.push(i[g]), g++, y++;
|
|
865
|
+
} else {
|
|
866
|
+
if ("*" !== p[y] || !i[g] || !this.options.dot && !!i[g].startsWith(".") || "**" === i[g]) return !1;
|
|
867
|
+
if ("a" === v) return !1;
|
|
868
|
+
v = "b", b.push(p[y]), g++, y++;
|
|
869
|
+
}
|
|
870
|
+
return i.length === p.length && b;
|
|
871
|
+
}
|
|
872
|
+
parseNegate() {
|
|
873
|
+
if (this.nonegate) return;
|
|
874
|
+
let i = this.pattern, p = !1, f = 0;
|
|
875
|
+
for(let g = 0; g < i.length && "!" === i.charAt(g); g++)p = !p, f++;
|
|
876
|
+
f && (this.pattern = i.slice(f)), this.negate = p;
|
|
877
|
+
}
|
|
878
|
+
matchOne(i, p, f = !1) {
|
|
879
|
+
let g = this.options;
|
|
880
|
+
if (this.isWindows) {
|
|
881
|
+
let f = "string" == typeof i[0] && /^[a-z]:$/i.test(i[0]), g = !f && "" === i[0] && "" === i[1] && "?" === i[2] && /^[a-z]:$/i.test(i[3]), y = "string" == typeof p[0] && /^[a-z]:$/i.test(p[0]), b = !y && "" === p[0] && "" === p[1] && "?" === p[2] && "string" == typeof p[3] && /^[a-z]:$/i.test(p[3]), v = g ? 3 : f ? 0 : void 0, S = b ? 3 : y ? 0 : void 0;
|
|
882
|
+
if ("number" == typeof v && "number" == typeof S) {
|
|
883
|
+
let [f, g] = [
|
|
884
|
+
i[v],
|
|
885
|
+
p[S]
|
|
886
|
+
];
|
|
887
|
+
f.toLowerCase() === g.toLowerCase() && (p[S] = f, S > v ? p = p.slice(S) : v > S && (i = i.slice(v)));
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
let { optimizationLevel: y = 1 } = this.options;
|
|
891
|
+
y >= 2 && (i = this.levelTwoFileOptimize(i)), this.debug("matchOne", this, {
|
|
892
|
+
file: i,
|
|
893
|
+
pattern: p
|
|
894
|
+
}), this.debug("matchOne", i.length, p.length);
|
|
895
|
+
for(var b = 0, v = 0, S = i.length, E = p.length; b < S && v < E; b++, v++){
|
|
896
|
+
this.debug("matchOne loop");
|
|
897
|
+
var k = p[v], x = i[b];
|
|
898
|
+
if (this.debug(p, k, x), !1 === k) return !1;
|
|
899
|
+
if (k === yt) {
|
|
900
|
+
this.debug("GLOBSTAR", [
|
|
901
|
+
p,
|
|
902
|
+
k,
|
|
903
|
+
x
|
|
904
|
+
]);
|
|
905
|
+
var _ = b, C = v + 1;
|
|
906
|
+
if (C === E) {
|
|
907
|
+
for(this.debug("** at the end"); b < S; b++)if ("." === i[b] || ".." === i[b] || !g.dot && "." === i[b].charAt(0)) return !1;
|
|
908
|
+
return !0;
|
|
909
|
+
}
|
|
910
|
+
for(; _ < S;){
|
|
911
|
+
var A = i[_];
|
|
912
|
+
if (this.debug(`\nglobstar while`, i, _, p, C, A), this.matchOne(i.slice(_), p.slice(C), f)) return this.debug("globstar found match!", _, S, A), !0;
|
|
913
|
+
if ("." === A || ".." === A || !g.dot && "." === A.charAt(0)) {
|
|
914
|
+
this.debug("dot detected!", i, _, p, C);
|
|
915
|
+
break;
|
|
916
|
+
}
|
|
917
|
+
this.debug("globstar swallow a segment, and continue"), _++;
|
|
918
|
+
}
|
|
919
|
+
return !!(f && (this.debug(`\n>>> no match, partial?`, i, _, p, C), _ === S));
|
|
920
|
+
}
|
|
921
|
+
let y;
|
|
922
|
+
if ("string" == typeof k ? (y = x === k, this.debug("string match", k, x, y)) : (y = k.test(x), this.debug("pattern match", k, x, y)), !y) return !1;
|
|
923
|
+
}
|
|
924
|
+
if (b === S && v === E) return !0;
|
|
925
|
+
if (b === S) return f;
|
|
926
|
+
if (v === E) return b === S - 1 && "" === i[b];
|
|
927
|
+
throw new Error("wtf?");
|
|
928
|
+
}
|
|
929
|
+
braceExpand() {
|
|
930
|
+
return ke(this.pattern, this.options);
|
|
931
|
+
}
|
|
932
|
+
parse(i) {
|
|
933
|
+
at(i);
|
|
934
|
+
let p = this.options;
|
|
935
|
+
if ("**" === i) return yt;
|
|
936
|
+
if ("" === i) return "";
|
|
937
|
+
let f, g = null;
|
|
938
|
+
(f = i.match(pt)) ? g = p.dot ? zs : Is : (f = i.match(nt)) ? g = (p.nocase ? p.dot ? Ms : Ds : p.dot ? Fs : Os)(f[1]) : (f = i.match(ft)) ? g = (p.nocase ? p.dot ? $s : Us : p.dot ? Gs : Hs)(f) : (f = i.match(ot)) ? g = p.dot ? Ls : _s : (f = i.match(ut)) && (g = Ps);
|
|
939
|
+
let y = rt.fromGlob(i, this.options).toMMPattern();
|
|
940
|
+
return g && "object" == typeof y && Reflect.defineProperty(y, "test", {
|
|
941
|
+
value: g
|
|
942
|
+
}), y;
|
|
943
|
+
}
|
|
944
|
+
makeRe() {
|
|
945
|
+
if (this.regexp || !1 === this.regexp) return this.regexp;
|
|
946
|
+
let i = this.set;
|
|
947
|
+
if (!i.length) return this.regexp = !1, this.regexp;
|
|
948
|
+
let p = this.options, f = p.noglobstar ? St : p.dot ? Et : kt, g = new Set(p.nocase ? [
|
|
949
|
+
"i"
|
|
950
|
+
] : []), y = i.map((i)=>{
|
|
951
|
+
let p = i.map((i)=>{
|
|
952
|
+
if (i instanceof RegExp) for (let p of i.flags.split(""))g.add(p);
|
|
953
|
+
return "string" == typeof i ? ei(i) : i === yt ? yt : i._src;
|
|
954
|
+
});
|
|
955
|
+
p.forEach((i, g)=>{
|
|
956
|
+
let y = p[g + 1], b = p[g - 1];
|
|
957
|
+
i !== yt || b === yt || (void 0 === b ? void 0 !== y && y !== yt ? p[g + 1] = "(?:\\/|" + f + "\\/)?" + y : p[g] = f : void 0 === y ? p[g - 1] = b + "(?:\\/|\\/" + f + ")?" : y !== yt && (p[g - 1] = b + "(?:\\/|\\/" + f + "\\/)" + y, p[g + 1] = yt));
|
|
958
|
+
});
|
|
959
|
+
let y = p.filter((i)=>i !== yt);
|
|
960
|
+
if (this.partial && y.length >= 1) {
|
|
961
|
+
let i = [];
|
|
962
|
+
for(let p = 1; p <= y.length; p++)i.push(y.slice(0, p).join("/"));
|
|
963
|
+
return "(?:" + i.join("|") + ")";
|
|
964
|
+
}
|
|
965
|
+
return y.join("/");
|
|
966
|
+
}).join("|"), [b, v] = i.length > 1 ? [
|
|
967
|
+
"(?:",
|
|
968
|
+
")"
|
|
969
|
+
] : [
|
|
970
|
+
"",
|
|
971
|
+
""
|
|
972
|
+
];
|
|
973
|
+
y = "^" + b + y + v + "$", this.partial && (y = "^(?:\\/|" + b + y.slice(1, -1) + v + ")$"), this.negate && (y = "^(?!" + y + ").+$");
|
|
974
|
+
try {
|
|
975
|
+
this.regexp = new RegExp(y, [
|
|
976
|
+
...g
|
|
977
|
+
].join(""));
|
|
978
|
+
} catch {
|
|
979
|
+
this.regexp = !1;
|
|
980
|
+
}
|
|
981
|
+
return this.regexp;
|
|
982
|
+
}
|
|
983
|
+
slashSplit(i) {
|
|
984
|
+
return this.preserveMultipleSlashes ? i.split("/") : this.isWindows && /^\/\/[^\/]+/.test(i) ? [
|
|
985
|
+
"",
|
|
986
|
+
...i.split(/\/+/)
|
|
987
|
+
] : i.split(/\/+/);
|
|
988
|
+
}
|
|
989
|
+
match(i, p = this.partial) {
|
|
990
|
+
if (this.debug("match", i, this.pattern), this.comment) return !1;
|
|
991
|
+
if (this.empty) return "" === i;
|
|
992
|
+
if ("/" === i && p) return !0;
|
|
993
|
+
let f = this.options;
|
|
994
|
+
this.isWindows && (i = i.split("\\").join("/"));
|
|
995
|
+
let g = this.slashSplit(i);
|
|
996
|
+
this.debug(this.pattern, "split", g);
|
|
997
|
+
let y = this.set;
|
|
998
|
+
this.debug(this.pattern, "set", y);
|
|
999
|
+
let b = g[g.length - 1];
|
|
1000
|
+
if (!b) for(let i = g.length - 2; !b && i >= 0; i--)b = g[i];
|
|
1001
|
+
for(let i = 0; i < y.length; i++){
|
|
1002
|
+
let v = y[i], S = g;
|
|
1003
|
+
if (f.matchBase && 1 === v.length && (S = [
|
|
1004
|
+
b
|
|
1005
|
+
]), this.matchOne(S, v, p)) return f.flipNegate ? !0 : !this.negate;
|
|
1006
|
+
}
|
|
1007
|
+
return f.flipNegate ? !1 : this.negate;
|
|
1008
|
+
}
|
|
1009
|
+
static defaults(i) {
|
|
1010
|
+
return O.defaults(i).Minimatch;
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
O.AST = rt;
|
|
1014
|
+
O.Minimatch = Ct;
|
|
1015
|
+
O.escape = tt;
|
|
1016
|
+
O.unescape = W;
|
|
1017
|
+
var Ot = "object" == typeof performance && performance && "function" == typeof performance.now ? performance : Date, At = new Set, Tt = "object" == typeof process && process ? process : {}, Fe = (i, p, f, g)=>{
|
|
1018
|
+
"function" == typeof Tt.emitWarning ? Tt.emitWarning(i, p, f, g) : console.error(`[${f}] ${p}: ${i}`);
|
|
1019
|
+
}, Rt = globalThis.AbortController, Ft = globalThis.AbortSignal;
|
|
1020
|
+
if (typeof Rt > "u") {
|
|
1021
|
+
Ft = class {
|
|
1022
|
+
onabort;
|
|
1023
|
+
_onabort = [];
|
|
1024
|
+
reason;
|
|
1025
|
+
aborted = !1;
|
|
1026
|
+
addEventListener(i, p) {
|
|
1027
|
+
this._onabort.push(p);
|
|
1028
|
+
}
|
|
1029
|
+
}, Rt = class {
|
|
1030
|
+
constructor(){
|
|
1031
|
+
t();
|
|
1032
|
+
}
|
|
1033
|
+
signal = new Ft;
|
|
1034
|
+
abort(i) {
|
|
1035
|
+
if (!this.signal.aborted) {
|
|
1036
|
+
this.signal.reason = i, this.signal.aborted = !0;
|
|
1037
|
+
for (let p of this.signal._onabort)p(i);
|
|
1038
|
+
this.signal.onabort?.(i);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
let i = Tt.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t = ()=>{
|
|
1043
|
+
i && (i = !1, Fe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
var ii = (i)=>!At.has(i);
|
|
1047
|
+
var q = (i)=>i && i === Math.floor(i) && i > 0 && isFinite(i), De = (i)=>q(i) ? i <= Math.pow(2, 8) ? Uint8Array : i <= Math.pow(2, 16) ? Uint16Array : i <= Math.pow(2, 32) ? Uint32Array : i <= Number.MAX_SAFE_INTEGER ? Mt : null : null, Mt = class extends Array {
|
|
1048
|
+
constructor(i){
|
|
1049
|
+
super(i), this.fill(0);
|
|
1050
|
+
}
|
|
1051
|
+
}, Pt = class ct {
|
|
1052
|
+
heap;
|
|
1053
|
+
length;
|
|
1054
|
+
static #t = !1;
|
|
1055
|
+
static create(i) {
|
|
1056
|
+
let p = De(i);
|
|
1057
|
+
if (!p) return [];
|
|
1058
|
+
ct.#t = !0;
|
|
1059
|
+
let f = new ct(i, p);
|
|
1060
|
+
return ct.#t = !1, f;
|
|
1061
|
+
}
|
|
1062
|
+
constructor(i, p){
|
|
1063
|
+
if (!ct.#t) throw new TypeError("instantiate Stack using Stack.create(n)");
|
|
1064
|
+
this.heap = new p(i), this.length = 0;
|
|
1065
|
+
}
|
|
1066
|
+
push(i) {
|
|
1067
|
+
this.heap[this.length++] = i;
|
|
1068
|
+
}
|
|
1069
|
+
pop() {
|
|
1070
|
+
return this.heap[--this.length];
|
|
1071
|
+
}
|
|
1072
|
+
}, Wt = class Me {
|
|
1073
|
+
#t;
|
|
1074
|
+
#e;
|
|
1075
|
+
#i;
|
|
1076
|
+
#s;
|
|
1077
|
+
#r;
|
|
1078
|
+
#h;
|
|
1079
|
+
#n;
|
|
1080
|
+
#o;
|
|
1081
|
+
get perf() {
|
|
1082
|
+
return this.#o;
|
|
1083
|
+
}
|
|
1084
|
+
ttl;
|
|
1085
|
+
ttlResolution;
|
|
1086
|
+
ttlAutopurge;
|
|
1087
|
+
updateAgeOnGet;
|
|
1088
|
+
updateAgeOnHas;
|
|
1089
|
+
allowStale;
|
|
1090
|
+
noDisposeOnSet;
|
|
1091
|
+
noUpdateTTL;
|
|
1092
|
+
maxEntrySize;
|
|
1093
|
+
sizeCalculation;
|
|
1094
|
+
noDeleteOnFetchRejection;
|
|
1095
|
+
noDeleteOnStaleGet;
|
|
1096
|
+
allowStaleOnFetchAbort;
|
|
1097
|
+
allowStaleOnFetchRejection;
|
|
1098
|
+
ignoreFetchAbort;
|
|
1099
|
+
#a;
|
|
1100
|
+
#l;
|
|
1101
|
+
#c;
|
|
1102
|
+
#u;
|
|
1103
|
+
#p;
|
|
1104
|
+
#d;
|
|
1105
|
+
#f;
|
|
1106
|
+
#g;
|
|
1107
|
+
#m;
|
|
1108
|
+
#w;
|
|
1109
|
+
#y;
|
|
1110
|
+
#b;
|
|
1111
|
+
#v;
|
|
1112
|
+
#S;
|
|
1113
|
+
#E;
|
|
1114
|
+
#k;
|
|
1115
|
+
#x;
|
|
1116
|
+
#_;
|
|
1117
|
+
#C;
|
|
1118
|
+
static unsafeExposeInternals(i) {
|
|
1119
|
+
return {
|
|
1120
|
+
starts: i.#v,
|
|
1121
|
+
ttls: i.#S,
|
|
1122
|
+
autopurgeTimers: i.#E,
|
|
1123
|
+
sizes: i.#b,
|
|
1124
|
+
keyMap: i.#c,
|
|
1125
|
+
keyList: i.#u,
|
|
1126
|
+
valList: i.#p,
|
|
1127
|
+
next: i.#d,
|
|
1128
|
+
prev: i.#f,
|
|
1129
|
+
get head () {
|
|
1130
|
+
return i.#g;
|
|
1131
|
+
},
|
|
1132
|
+
get tail () {
|
|
1133
|
+
return i.#m;
|
|
1134
|
+
},
|
|
1135
|
+
free: i.#w,
|
|
1136
|
+
isBackgroundFetch: (p)=>i.#O(p),
|
|
1137
|
+
backgroundFetch: (p, f, g, y)=>i.#A(p, f, g, y),
|
|
1138
|
+
moveToTail: (p)=>i.#T(p),
|
|
1139
|
+
indexes: (p)=>i.#R(p),
|
|
1140
|
+
rindexes: (p)=>i.#F(p),
|
|
1141
|
+
isStale: (p)=>i.#M(p)
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
get max() {
|
|
1145
|
+
return this.#t;
|
|
1146
|
+
}
|
|
1147
|
+
get maxSize() {
|
|
1148
|
+
return this.#e;
|
|
1149
|
+
}
|
|
1150
|
+
get calculatedSize() {
|
|
1151
|
+
return this.#l;
|
|
1152
|
+
}
|
|
1153
|
+
get size() {
|
|
1154
|
+
return this.#a;
|
|
1155
|
+
}
|
|
1156
|
+
get fetchMethod() {
|
|
1157
|
+
return this.#h;
|
|
1158
|
+
}
|
|
1159
|
+
get memoMethod() {
|
|
1160
|
+
return this.#n;
|
|
1161
|
+
}
|
|
1162
|
+
get dispose() {
|
|
1163
|
+
return this.#i;
|
|
1164
|
+
}
|
|
1165
|
+
get onInsert() {
|
|
1166
|
+
return this.#s;
|
|
1167
|
+
}
|
|
1168
|
+
get disposeAfter() {
|
|
1169
|
+
return this.#r;
|
|
1170
|
+
}
|
|
1171
|
+
constructor(i){
|
|
1172
|
+
let { max: p = 0, ttl: f, ttlResolution: g = 1, ttlAutopurge: y, updateAgeOnGet: b, updateAgeOnHas: v, allowStale: S, dispose: E, onInsert: k, disposeAfter: x, noDisposeOnSet: _, noUpdateTTL: C, maxSize: A = 0, maxEntrySize: T = 0, sizeCalculation: R, fetchMethod: F, memoMethod: M, noDeleteOnFetchRejection: P, noDeleteOnStaleGet: j, allowStaleOnFetchRejection: D, allowStaleOnFetchAbort: L, ignoreFetchAbort: z, perf: B } = i;
|
|
1173
|
+
if (void 0 !== B && "function" != typeof B?.now) throw new TypeError("perf option must have a now() method if specified");
|
|
1174
|
+
if (this.#o = B ?? Ot, 0 !== p && !q(p)) throw new TypeError("max option must be a nonnegative integer");
|
|
1175
|
+
let $ = p ? De(p) : Array;
|
|
1176
|
+
if (!$) throw new Error("invalid max value: " + p);
|
|
1177
|
+
if (this.#t = p, this.#e = A, this.maxEntrySize = T || this.#e, this.sizeCalculation = R, this.sizeCalculation) {
|
|
1178
|
+
if (!this.#e && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
1179
|
+
if ("function" != typeof this.sizeCalculation) throw new TypeError("sizeCalculation set to non-function");
|
|
1180
|
+
}
|
|
1181
|
+
if (void 0 !== M && "function" != typeof M) throw new TypeError("memoMethod must be a function if defined");
|
|
1182
|
+
if (this.#n = M, void 0 !== F && "function" != typeof F) throw new TypeError("fetchMethod must be a function if specified");
|
|
1183
|
+
if (this.#h = F, this.#x = !!F, this.#c = new Map, this.#u = new Array(p).fill(void 0), this.#p = new Array(p).fill(void 0), this.#d = new $(p), this.#f = new $(p), this.#g = 0, this.#m = 0, this.#w = Pt.create(p), this.#a = 0, this.#l = 0, "function" == typeof E && (this.#i = E), "function" == typeof k && (this.#s = k), "function" == typeof x ? (this.#r = x, this.#y = []) : (this.#r = void 0, this.#y = void 0), this.#k = !!this.#i, this.#C = !!this.#s, this.#_ = !!this.#r, this.noDisposeOnSet = !!_, this.noUpdateTTL = !!C, this.noDeleteOnFetchRejection = !!P, this.allowStaleOnFetchRejection = !!D, this.allowStaleOnFetchAbort = !!L, this.ignoreFetchAbort = !!z, 0 !== this.maxEntrySize) {
|
|
1184
|
+
if (0 !== this.#e && !q(this.#e)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
1185
|
+
if (!q(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
1186
|
+
this.#P();
|
|
1187
|
+
}
|
|
1188
|
+
if (this.allowStale = !!S, this.noDeleteOnStaleGet = !!j, this.updateAgeOnGet = !!b, this.updateAgeOnHas = !!v, this.ttlResolution = q(g) || 0 === g ? g : 1, this.ttlAutopurge = !!y, this.ttl = f || 0, this.ttl) {
|
|
1189
|
+
if (!q(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
1190
|
+
this.#W();
|
|
1191
|
+
}
|
|
1192
|
+
if (0 === this.#t && 0 === this.ttl && 0 === this.#e) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
1193
|
+
if (!this.ttlAutopurge && !this.#t && !this.#e) {
|
|
1194
|
+
let i = "LRU_CACHE_UNBOUNDED";
|
|
1195
|
+
ii(i) && (At.add(i), Fe("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", i, Me));
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
getRemainingTTL(i) {
|
|
1199
|
+
return this.#c.has(i) ? 1 / 0 : 0;
|
|
1200
|
+
}
|
|
1201
|
+
#W() {
|
|
1202
|
+
let i = new Mt(this.#t), p = new Mt(this.#t);
|
|
1203
|
+
this.#S = i, this.#v = p;
|
|
1204
|
+
let f = this.ttlAutopurge ? new Array(this.#t) : void 0;
|
|
1205
|
+
this.#E = f, this.#j = (g, y, b = this.#o.now())=>{
|
|
1206
|
+
if (p[g] = 0 !== y ? b : 0, i[g] = y, f?.[g] && (clearTimeout(f[g]), f[g] = void 0), 0 !== y && f) {
|
|
1207
|
+
let i = setTimeout(()=>{
|
|
1208
|
+
this.#M(g) && this.#D(this.#u[g], "expire");
|
|
1209
|
+
}, y + 1);
|
|
1210
|
+
i.unref && i.unref(), f[g] = i;
|
|
1211
|
+
}
|
|
1212
|
+
}, this.#L = (f)=>{
|
|
1213
|
+
p[f] = 0 !== i[f] ? this.#o.now() : 0;
|
|
1214
|
+
}, this.#z = (f, y)=>{
|
|
1215
|
+
if (i[y]) {
|
|
1216
|
+
let b = i[y], v = p[y];
|
|
1217
|
+
if (!b || !v) return;
|
|
1218
|
+
f.ttl = b, f.start = v, f.now = g || r();
|
|
1219
|
+
let S = f.now - v;
|
|
1220
|
+
f.remainingTTL = b - S;
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
let g = 0, r = ()=>{
|
|
1224
|
+
let i = this.#o.now();
|
|
1225
|
+
if (this.ttlResolution > 0) {
|
|
1226
|
+
g = i;
|
|
1227
|
+
let p = setTimeout(()=>g = 0, this.ttlResolution);
|
|
1228
|
+
p.unref && p.unref();
|
|
1229
|
+
}
|
|
1230
|
+
return i;
|
|
1231
|
+
};
|
|
1232
|
+
this.getRemainingTTL = (f)=>{
|
|
1233
|
+
let y = this.#c.get(f);
|
|
1234
|
+
if (void 0 === y) return 0;
|
|
1235
|
+
let b = i[y], v = p[y];
|
|
1236
|
+
if (!b || !v) return 1 / 0;
|
|
1237
|
+
let S = (g || r()) - v;
|
|
1238
|
+
return b - S;
|
|
1239
|
+
}, this.#M = (f)=>{
|
|
1240
|
+
let y = p[f], b = i[f];
|
|
1241
|
+
return !!b && !!y && (g || r()) - y > b;
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
#L = ()=>{};
|
|
1245
|
+
#z = ()=>{};
|
|
1246
|
+
#j = ()=>{};
|
|
1247
|
+
#M = ()=>!1;
|
|
1248
|
+
#P() {
|
|
1249
|
+
let i = new Mt(this.#t);
|
|
1250
|
+
this.#l = 0, this.#b = i, this.#N = (p)=>{
|
|
1251
|
+
this.#l -= i[p], i[p] = 0;
|
|
1252
|
+
}, this.#B = (i, p, f, g)=>{
|
|
1253
|
+
if (this.#O(p)) return 0;
|
|
1254
|
+
if (!q(f)) if (g) {
|
|
1255
|
+
if ("function" != typeof g) throw new TypeError("sizeCalculation must be a function");
|
|
1256
|
+
if (f = g(p, i), !q(f)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
1257
|
+
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
1258
|
+
return f;
|
|
1259
|
+
}, this.#$ = (p, f, g)=>{
|
|
1260
|
+
if (i[p] = f, this.#e) {
|
|
1261
|
+
let f = this.#e - i[p];
|
|
1262
|
+
for(; this.#l > f;)this.#U(!0);
|
|
1263
|
+
}
|
|
1264
|
+
this.#l += i[p], g && (g.entrySize = f, g.totalCalculatedSize = this.#l);
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
#N = (i)=>{};
|
|
1268
|
+
#$ = (i, p, f)=>{};
|
|
1269
|
+
#B = (i, p, f, g)=>{
|
|
1270
|
+
if (f || g) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
1271
|
+
return 0;
|
|
1272
|
+
};
|
|
1273
|
+
*#R({ allowStale: i = this.allowStale } = {}) {
|
|
1274
|
+
if (this.#a) for(let p = this.#m; !(!this.#I(p) || ((i || !this.#M(p)) && (yield p), p === this.#g));)p = this.#f[p];
|
|
1275
|
+
}
|
|
1276
|
+
*#F({ allowStale: i = this.allowStale } = {}) {
|
|
1277
|
+
if (this.#a) for(let p = this.#g; !(!this.#I(p) || ((i || !this.#M(p)) && (yield p), p === this.#m));)p = this.#d[p];
|
|
1278
|
+
}
|
|
1279
|
+
#I(i) {
|
|
1280
|
+
return void 0 !== i && this.#c.get(this.#u[i]) === i;
|
|
1281
|
+
}
|
|
1282
|
+
*entries() {
|
|
1283
|
+
for (let i of this.#R())void 0 === this.#p[i] || void 0 === this.#u[i] || this.#O(this.#p[i]) || (yield [
|
|
1284
|
+
this.#u[i],
|
|
1285
|
+
this.#p[i]
|
|
1286
|
+
]);
|
|
1287
|
+
}
|
|
1288
|
+
*rentries() {
|
|
1289
|
+
for (let i of this.#F())void 0 === this.#p[i] || void 0 === this.#u[i] || this.#O(this.#p[i]) || (yield [
|
|
1290
|
+
this.#u[i],
|
|
1291
|
+
this.#p[i]
|
|
1292
|
+
]);
|
|
1293
|
+
}
|
|
1294
|
+
*keys() {
|
|
1295
|
+
for (let i of this.#R()){
|
|
1296
|
+
let p = this.#u[i];
|
|
1297
|
+
void 0 === p || this.#O(this.#p[i]) || (yield p);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
*rkeys() {
|
|
1301
|
+
for (let i of this.#F()){
|
|
1302
|
+
let p = this.#u[i];
|
|
1303
|
+
void 0 === p || this.#O(this.#p[i]) || (yield p);
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
*values() {
|
|
1307
|
+
for (let i of this.#R())void 0 === this.#p[i] || this.#O(this.#p[i]) || (yield this.#p[i]);
|
|
1308
|
+
}
|
|
1309
|
+
*rvalues() {
|
|
1310
|
+
for (let i of this.#F())void 0 === this.#p[i] || this.#O(this.#p[i]) || (yield this.#p[i]);
|
|
1311
|
+
}
|
|
1312
|
+
[Symbol.iterator]() {
|
|
1313
|
+
return this.entries();
|
|
1314
|
+
}
|
|
1315
|
+
[Symbol.toStringTag] = "LRUCache";
|
|
1316
|
+
find(i, p = {}) {
|
|
1317
|
+
for (let f of this.#R()){
|
|
1318
|
+
let g = this.#p[f], y = this.#O(g) ? g.__staleWhileFetching : g;
|
|
1319
|
+
if (void 0 !== y && i(y, this.#u[f], this)) return this.get(this.#u[f], p);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
forEach(i, p = this) {
|
|
1323
|
+
for (let f of this.#R()){
|
|
1324
|
+
let g = this.#p[f], y = this.#O(g) ? g.__staleWhileFetching : g;
|
|
1325
|
+
void 0 !== y && i.call(p, y, this.#u[f], this);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
rforEach(i, p = this) {
|
|
1329
|
+
for (let f of this.#F()){
|
|
1330
|
+
let g = this.#p[f], y = this.#O(g) ? g.__staleWhileFetching : g;
|
|
1331
|
+
void 0 !== y && i.call(p, y, this.#u[f], this);
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
purgeStale() {
|
|
1335
|
+
let i = !1;
|
|
1336
|
+
for (let p of this.#F({
|
|
1337
|
+
allowStale: !0
|
|
1338
|
+
}))this.#M(p) && (this.#D(this.#u[p], "expire"), i = !0);
|
|
1339
|
+
return i;
|
|
1340
|
+
}
|
|
1341
|
+
info(i) {
|
|
1342
|
+
let p = this.#c.get(i);
|
|
1343
|
+
if (void 0 === p) return;
|
|
1344
|
+
let f = this.#p[p], g = this.#O(f) ? f.__staleWhileFetching : f;
|
|
1345
|
+
if (void 0 === g) return;
|
|
1346
|
+
let y = {
|
|
1347
|
+
value: g
|
|
1348
|
+
};
|
|
1349
|
+
if (this.#S && this.#v) {
|
|
1350
|
+
let i = this.#S[p], f = this.#v[p];
|
|
1351
|
+
if (i && f) {
|
|
1352
|
+
let p = i - (this.#o.now() - f);
|
|
1353
|
+
y.ttl = p, y.start = Date.now();
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
return this.#b && (y.size = this.#b[p]), y;
|
|
1357
|
+
}
|
|
1358
|
+
dump() {
|
|
1359
|
+
let i = [];
|
|
1360
|
+
for (let p of this.#R({
|
|
1361
|
+
allowStale: !0
|
|
1362
|
+
})){
|
|
1363
|
+
let f = this.#u[p], g = this.#p[p], y = this.#O(g) ? g.__staleWhileFetching : g;
|
|
1364
|
+
if (void 0 === y || void 0 === f) continue;
|
|
1365
|
+
let b = {
|
|
1366
|
+
value: y
|
|
1367
|
+
};
|
|
1368
|
+
if (this.#S && this.#v) {
|
|
1369
|
+
b.ttl = this.#S[p];
|
|
1370
|
+
let i = this.#o.now() - this.#v[p];
|
|
1371
|
+
b.start = Math.floor(Date.now() - i);
|
|
1372
|
+
}
|
|
1373
|
+
this.#b && (b.size = this.#b[p]), i.unshift([
|
|
1374
|
+
f,
|
|
1375
|
+
b
|
|
1376
|
+
]);
|
|
1377
|
+
}
|
|
1378
|
+
return i;
|
|
1379
|
+
}
|
|
1380
|
+
load(i) {
|
|
1381
|
+
this.clear();
|
|
1382
|
+
for (let [p, f] of i){
|
|
1383
|
+
if (f.start) {
|
|
1384
|
+
let i = Date.now() - f.start;
|
|
1385
|
+
f.start = this.#o.now() - i;
|
|
1386
|
+
}
|
|
1387
|
+
this.set(p, f.value, f);
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
set(i, p, f = {}) {
|
|
1391
|
+
if (void 0 === p) return this.delete(i), this;
|
|
1392
|
+
let { ttl: g = this.ttl, start: y, noDisposeOnSet: b = this.noDisposeOnSet, sizeCalculation: v = this.sizeCalculation, status: S } = f, { noUpdateTTL: E = this.noUpdateTTL } = f, k = this.#B(i, p, f.size || 0, v);
|
|
1393
|
+
if (this.maxEntrySize && k > this.maxEntrySize) return S && (S.set = "miss", S.maxEntrySizeExceeded = !0), this.#D(i, "set"), this;
|
|
1394
|
+
let x = 0 === this.#a ? void 0 : this.#c.get(i);
|
|
1395
|
+
if (void 0 === x) x = 0 === this.#a ? this.#m : 0 !== this.#w.length ? this.#w.pop() : this.#a === this.#t ? this.#U(!1) : this.#a, this.#u[x] = i, this.#p[x] = p, this.#c.set(i, x), this.#d[this.#m] = x, this.#f[x] = this.#m, this.#m = x, this.#a++, this.#$(x, k, S), S && (S.set = "add"), E = !1, this.#C && this.#s?.(p, i, "add");
|
|
1396
|
+
else {
|
|
1397
|
+
this.#T(x);
|
|
1398
|
+
let f = this.#p[x];
|
|
1399
|
+
if (p !== f) {
|
|
1400
|
+
if (this.#x && this.#O(f)) {
|
|
1401
|
+
f.__abortController.abort(new Error("replaced"));
|
|
1402
|
+
let { __staleWhileFetching: p } = f;
|
|
1403
|
+
void 0 !== p && !b && (this.#k && this.#i?.(p, i, "set"), this.#_ && this.#y?.push([
|
|
1404
|
+
p,
|
|
1405
|
+
i,
|
|
1406
|
+
"set"
|
|
1407
|
+
]));
|
|
1408
|
+
} else b || (this.#k && this.#i?.(f, i, "set"), this.#_ && this.#y?.push([
|
|
1409
|
+
f,
|
|
1410
|
+
i,
|
|
1411
|
+
"set"
|
|
1412
|
+
]));
|
|
1413
|
+
if (this.#N(x), this.#$(x, k, S), this.#p[x] = p, S) {
|
|
1414
|
+
S.set = "replace";
|
|
1415
|
+
let i = f && this.#O(f) ? f.__staleWhileFetching : f;
|
|
1416
|
+
void 0 !== i && (S.oldValue = i);
|
|
1417
|
+
}
|
|
1418
|
+
} else S && (S.set = "update");
|
|
1419
|
+
this.#C && this.onInsert?.(p, i, p === f ? "update" : "replace");
|
|
1420
|
+
}
|
|
1421
|
+
if (0 === g || this.#S || this.#W(), this.#S && (E || this.#j(x, g, y), S && this.#z(S, x)), !b && this.#_ && this.#y) {
|
|
1422
|
+
let i = this.#y, p;
|
|
1423
|
+
for(; p = i?.shift();)this.#r?.(...p);
|
|
1424
|
+
}
|
|
1425
|
+
return this;
|
|
1426
|
+
}
|
|
1427
|
+
pop() {
|
|
1428
|
+
try {
|
|
1429
|
+
for(; this.#a;){
|
|
1430
|
+
let i = this.#p[this.#g];
|
|
1431
|
+
if (this.#U(!0), this.#O(i)) {
|
|
1432
|
+
if (i.__staleWhileFetching) return i.__staleWhileFetching;
|
|
1433
|
+
} else if (void 0 !== i) return i;
|
|
1434
|
+
}
|
|
1435
|
+
} finally{
|
|
1436
|
+
if (this.#_ && this.#y) {
|
|
1437
|
+
let i = this.#y, p;
|
|
1438
|
+
for(; p = i?.shift();)this.#r?.(...p);
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
#U(i) {
|
|
1443
|
+
let p = this.#g, f = this.#u[p], g = this.#p[p];
|
|
1444
|
+
return this.#x && this.#O(g) ? g.__abortController.abort(new Error("evicted")) : (this.#k || this.#_) && (this.#k && this.#i?.(g, f, "evict"), this.#_ && this.#y?.push([
|
|
1445
|
+
g,
|
|
1446
|
+
f,
|
|
1447
|
+
"evict"
|
|
1448
|
+
])), this.#N(p), this.#E?.[p] && (clearTimeout(this.#E[p]), this.#E[p] = void 0), i && (this.#u[p] = void 0, this.#p[p] = void 0, this.#w.push(p)), 1 === this.#a ? (this.#g = this.#m = 0, this.#w.length = 0) : this.#g = this.#d[p], this.#c.delete(f), this.#a--, p;
|
|
1449
|
+
}
|
|
1450
|
+
has(i, p = {}) {
|
|
1451
|
+
let { updateAgeOnHas: f = this.updateAgeOnHas, status: g } = p, y = this.#c.get(i);
|
|
1452
|
+
if (void 0 !== y) {
|
|
1453
|
+
let i = this.#p[y];
|
|
1454
|
+
if (this.#O(i) && void 0 === i.__staleWhileFetching) return !1;
|
|
1455
|
+
if (!this.#M(y)) return f && this.#L(y), g && (g.has = "hit", this.#z(g, y)), !0;
|
|
1456
|
+
else g && (g.has = "stale", this.#z(g, y));
|
|
1457
|
+
} else g && (g.has = "miss");
|
|
1458
|
+
return !1;
|
|
1459
|
+
}
|
|
1460
|
+
peek(i, p = {}) {
|
|
1461
|
+
let { allowStale: f = this.allowStale } = p, g = this.#c.get(i);
|
|
1462
|
+
if (void 0 === g || !f && this.#M(g)) return;
|
|
1463
|
+
let y = this.#p[g];
|
|
1464
|
+
return this.#O(y) ? y.__staleWhileFetching : y;
|
|
1465
|
+
}
|
|
1466
|
+
#A(i, p, f, g) {
|
|
1467
|
+
let y = void 0 === p ? void 0 : this.#p[p];
|
|
1468
|
+
if (this.#O(y)) return y;
|
|
1469
|
+
let b = new Rt, { signal: v } = f;
|
|
1470
|
+
v?.addEventListener("abort", ()=>b.abort(v.reason), {
|
|
1471
|
+
signal: b.signal
|
|
1472
|
+
});
|
|
1473
|
+
let S = {
|
|
1474
|
+
signal: b.signal,
|
|
1475
|
+
options: f,
|
|
1476
|
+
context: g
|
|
1477
|
+
}, l = (g, y = !1)=>{
|
|
1478
|
+
let { aborted: v } = b.signal, k = f.ignoreFetchAbort && void 0 !== g, x = f.ignoreFetchAbort || !!(f.allowStaleOnFetchAbort && void 0 !== g);
|
|
1479
|
+
if (f.status && (v && !y ? (f.status.fetchAborted = !0, f.status.fetchError = b.signal.reason, k && (f.status.fetchAbortIgnored = !0)) : f.status.fetchResolved = !0), v && !k && !y) return c(b.signal.reason, x);
|
|
1480
|
+
let _ = E, C = this.#p[p];
|
|
1481
|
+
return (C === E || k && y && void 0 === C) && (void 0 === g ? void 0 !== _.__staleWhileFetching ? this.#p[p] = _.__staleWhileFetching : this.#D(i, "fetch") : (f.status && (f.status.fetchUpdated = !0), this.set(i, g, S.options))), g;
|
|
1482
|
+
}, u = (i)=>(f.status && (f.status.fetchRejected = !0, f.status.fetchError = i), c(i, !1)), c = (g, y)=>{
|
|
1483
|
+
let { aborted: v } = b.signal, S = v && f.allowStaleOnFetchAbort, k = S || f.allowStaleOnFetchRejection, x = k || f.noDeleteOnFetchRejection, _ = E;
|
|
1484
|
+
if (this.#p[p] === E && (x && (y || void 0 !== _.__staleWhileFetching) ? S || (this.#p[p] = _.__staleWhileFetching) : this.#D(i, "fetch")), k) return f.status && void 0 !== _.__staleWhileFetching && (f.status.returnedStale = !0), _.__staleWhileFetching;
|
|
1485
|
+
if (_.__returned === _) throw g;
|
|
1486
|
+
}, d = (p, g)=>{
|
|
1487
|
+
let v = this.#h?.(i, y, S);
|
|
1488
|
+
v && v instanceof Promise && v.then((i)=>p(void 0 === i ? void 0 : i), g), b.signal.addEventListener("abort", ()=>{
|
|
1489
|
+
(!f.ignoreFetchAbort || f.allowStaleOnFetchAbort) && (p(void 0), f.allowStaleOnFetchAbort && (p = (i)=>l(i, !0)));
|
|
1490
|
+
});
|
|
1491
|
+
};
|
|
1492
|
+
f.status && (f.status.fetchDispatched = !0);
|
|
1493
|
+
let E = new Promise(d).then(l, u), k = Object.assign(E, {
|
|
1494
|
+
__abortController: b,
|
|
1495
|
+
__staleWhileFetching: y,
|
|
1496
|
+
__returned: void 0
|
|
1497
|
+
});
|
|
1498
|
+
return void 0 === p ? (this.set(i, k, {
|
|
1499
|
+
...S.options,
|
|
1500
|
+
status: void 0
|
|
1501
|
+
}), p = this.#c.get(i)) : this.#p[p] = k, k;
|
|
1502
|
+
}
|
|
1503
|
+
#O(i) {
|
|
1504
|
+
if (!this.#x) return !1;
|
|
1505
|
+
let p = i;
|
|
1506
|
+
return !!p && p instanceof Promise && p.hasOwnProperty("__staleWhileFetching") && p.__abortController instanceof Rt;
|
|
1507
|
+
}
|
|
1508
|
+
async fetch(i, p = {}) {
|
|
1509
|
+
let { allowStale: f = this.allowStale, updateAgeOnGet: g = this.updateAgeOnGet, noDeleteOnStaleGet: y = this.noDeleteOnStaleGet, ttl: b = this.ttl, noDisposeOnSet: v = this.noDisposeOnSet, size: S = 0, sizeCalculation: E = this.sizeCalculation, noUpdateTTL: k = this.noUpdateTTL, noDeleteOnFetchRejection: x = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: _ = this.allowStaleOnFetchRejection, ignoreFetchAbort: C = this.ignoreFetchAbort, allowStaleOnFetchAbort: A = this.allowStaleOnFetchAbort, context: T, forceRefresh: R = !1, status: F, signal: M } = p;
|
|
1510
|
+
if (!this.#x) return F && (F.fetch = "get"), this.get(i, {
|
|
1511
|
+
allowStale: f,
|
|
1512
|
+
updateAgeOnGet: g,
|
|
1513
|
+
noDeleteOnStaleGet: y,
|
|
1514
|
+
status: F
|
|
1515
|
+
});
|
|
1516
|
+
let P = {
|
|
1517
|
+
allowStale: f,
|
|
1518
|
+
updateAgeOnGet: g,
|
|
1519
|
+
noDeleteOnStaleGet: y,
|
|
1520
|
+
ttl: b,
|
|
1521
|
+
noDisposeOnSet: v,
|
|
1522
|
+
size: S,
|
|
1523
|
+
sizeCalculation: E,
|
|
1524
|
+
noUpdateTTL: k,
|
|
1525
|
+
noDeleteOnFetchRejection: x,
|
|
1526
|
+
allowStaleOnFetchRejection: _,
|
|
1527
|
+
allowStaleOnFetchAbort: A,
|
|
1528
|
+
ignoreFetchAbort: C,
|
|
1529
|
+
status: F,
|
|
1530
|
+
signal: M
|
|
1531
|
+
}, j = this.#c.get(i);
|
|
1532
|
+
if (void 0 === j) {
|
|
1533
|
+
F && (F.fetch = "miss");
|
|
1534
|
+
let p = this.#A(i, j, P, T);
|
|
1535
|
+
return p.__returned = p;
|
|
1536
|
+
} else {
|
|
1537
|
+
let p = this.#p[j];
|
|
1538
|
+
if (this.#O(p)) {
|
|
1539
|
+
let i = f && void 0 !== p.__staleWhileFetching;
|
|
1540
|
+
return F && (F.fetch = "inflight", i && (F.returnedStale = !0)), i ? p.__staleWhileFetching : p.__returned = p;
|
|
1541
|
+
}
|
|
1542
|
+
let y = this.#M(j);
|
|
1543
|
+
if (!R && !y) return F && (F.fetch = "hit"), this.#T(j), g && this.#L(j), F && this.#z(F, j), p;
|
|
1544
|
+
let b = this.#A(i, j, P, T), v = void 0 !== b.__staleWhileFetching && f;
|
|
1545
|
+
return F && (F.fetch = y ? "stale" : "refresh", v && y && (F.returnedStale = !0)), v ? b.__staleWhileFetching : b.__returned = b;
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
async forceFetch(i, p = {}) {
|
|
1549
|
+
let f = await this.fetch(i, p);
|
|
1550
|
+
if (void 0 === f) throw new Error("fetch() returned undefined");
|
|
1551
|
+
return f;
|
|
1552
|
+
}
|
|
1553
|
+
memo(i, p = {}) {
|
|
1554
|
+
let f = this.#n;
|
|
1555
|
+
if (!f) throw new Error("no memoMethod provided to constructor");
|
|
1556
|
+
let { context: g, forceRefresh: y, ...b } = p, v = this.get(i, b);
|
|
1557
|
+
if (!y && void 0 !== v) return v;
|
|
1558
|
+
let S = f(i, v, {
|
|
1559
|
+
options: b,
|
|
1560
|
+
context: g
|
|
1561
|
+
});
|
|
1562
|
+
return this.set(i, S, b), S;
|
|
1563
|
+
}
|
|
1564
|
+
get(i, p = {}) {
|
|
1565
|
+
let { allowStale: f = this.allowStale, updateAgeOnGet: g = this.updateAgeOnGet, noDeleteOnStaleGet: y = this.noDeleteOnStaleGet, status: b } = p, v = this.#c.get(i);
|
|
1566
|
+
if (void 0 !== v) {
|
|
1567
|
+
let p = this.#p[v], S = this.#O(p);
|
|
1568
|
+
return b && this.#z(b, v), this.#M(v) ? (b && (b.get = "stale"), S ? (b && f && void 0 !== p.__staleWhileFetching && (b.returnedStale = !0), f ? p.__staleWhileFetching : void 0) : (y || this.#D(i, "expire"), b && f && (b.returnedStale = !0), f ? p : void 0)) : (b && (b.get = "hit"), S ? p.__staleWhileFetching : (this.#T(v), g && this.#L(v), p));
|
|
1569
|
+
} else b && (b.get = "miss");
|
|
1570
|
+
}
|
|
1571
|
+
#G(i, p) {
|
|
1572
|
+
this.#f[p] = i, this.#d[i] = p;
|
|
1573
|
+
}
|
|
1574
|
+
#T(i) {
|
|
1575
|
+
i !== this.#m && (i === this.#g ? this.#g = this.#d[i] : this.#G(this.#f[i], this.#d[i]), this.#G(this.#m, i), this.#m = i);
|
|
1576
|
+
}
|
|
1577
|
+
delete(i) {
|
|
1578
|
+
return this.#D(i, "delete");
|
|
1579
|
+
}
|
|
1580
|
+
#D(i, p) {
|
|
1581
|
+
let f = !1;
|
|
1582
|
+
if (0 !== this.#a) {
|
|
1583
|
+
let g = this.#c.get(i);
|
|
1584
|
+
if (void 0 !== g) if (this.#E?.[g] && (clearTimeout(this.#E?.[g]), this.#E[g] = void 0), f = !0, 1 === this.#a) this.#q(p);
|
|
1585
|
+
else {
|
|
1586
|
+
this.#N(g);
|
|
1587
|
+
let f = this.#p[g];
|
|
1588
|
+
if (this.#O(f) ? f.__abortController.abort(new Error("deleted")) : (this.#k || this.#_) && (this.#k && this.#i?.(f, i, p), this.#_ && this.#y?.push([
|
|
1589
|
+
f,
|
|
1590
|
+
i,
|
|
1591
|
+
p
|
|
1592
|
+
])), this.#c.delete(i), this.#u[g] = void 0, this.#p[g] = void 0, g === this.#m) this.#m = this.#f[g];
|
|
1593
|
+
else if (g === this.#g) this.#g = this.#d[g];
|
|
1594
|
+
else {
|
|
1595
|
+
let i = this.#f[g];
|
|
1596
|
+
this.#d[i] = this.#d[g];
|
|
1597
|
+
let p = this.#d[g];
|
|
1598
|
+
this.#f[p] = this.#f[g];
|
|
1599
|
+
}
|
|
1600
|
+
this.#a--, this.#w.push(g);
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
if (this.#_ && this.#y?.length) {
|
|
1604
|
+
let i = this.#y, p;
|
|
1605
|
+
for(; p = i?.shift();)this.#r?.(...p);
|
|
1606
|
+
}
|
|
1607
|
+
return f;
|
|
1608
|
+
}
|
|
1609
|
+
clear() {
|
|
1610
|
+
return this.#q("delete");
|
|
1611
|
+
}
|
|
1612
|
+
#q(i) {
|
|
1613
|
+
for (let p of this.#F({
|
|
1614
|
+
allowStale: !0
|
|
1615
|
+
})){
|
|
1616
|
+
let f = this.#p[p];
|
|
1617
|
+
if (this.#O(f)) f.__abortController.abort(new Error("deleted"));
|
|
1618
|
+
else {
|
|
1619
|
+
let g = this.#u[p];
|
|
1620
|
+
this.#k && this.#i?.(f, g, i), this.#_ && this.#y?.push([
|
|
1621
|
+
f,
|
|
1622
|
+
g,
|
|
1623
|
+
i
|
|
1624
|
+
]);
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
if (this.#c.clear(), this.#p.fill(void 0), this.#u.fill(void 0), this.#S && this.#v) {
|
|
1628
|
+
this.#S.fill(0), this.#v.fill(0);
|
|
1629
|
+
for (let i of this.#E ?? [])void 0 !== i && clearTimeout(i);
|
|
1630
|
+
this.#E?.fill(void 0);
|
|
1631
|
+
}
|
|
1632
|
+
if (this.#b && this.#b.fill(0), this.#g = 0, this.#m = 0, this.#w.length = 0, this.#l = 0, this.#a = 0, this.#_ && this.#y) {
|
|
1633
|
+
let i = this.#y, p;
|
|
1634
|
+
for(; p = i?.shift();)this.#r?.(...p);
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
};
|
|
1638
|
+
var jt = "object" == typeof process && process ? process : {
|
|
1639
|
+
stdout: null,
|
|
1640
|
+
stderr: null
|
|
1641
|
+
}, oi = (i)=>!!i && "object" == typeof i && (i instanceof Re || i instanceof _ || hi(i) || ai(i)), hi = (i)=>!!i && "object" == typeof i && i instanceof x.EventEmitter && "function" == typeof i.pipe && i.pipe !== _.Writable.prototype.pipe, ai = (i)=>!!i && "object" == typeof i && i instanceof x.EventEmitter && "function" == typeof i.write && "function" == typeof i.end, Dt = Symbol("EOF"), Lt = Symbol("maybeEmitEnd"), zt = Symbol("emittedEnd"), Nt = Symbol("emittingEnd"), $t = Symbol("emittedError"), It = Symbol("closed"), qt = Symbol("read"), Zt = Symbol("flush"), Jt = Symbol("flushChunk"), Qt = Symbol("encoding"), Kt = Symbol("decoder"), Vt = Symbol("flowing"), Yt = Symbol("paused"), Xt = Symbol("resume"), te = Symbol("buffer"), ee = Symbol("pipes"), se = Symbol("bufferLength"), re = Symbol("bufferPush"), he = Symbol("bufferShift"), ne = Symbol("objectMode"), oe = Symbol("destroyed"), ae = Symbol("error"), ue = Symbol("emitData"), pe = Symbol("emitEnd"), fe = Symbol("emitEnd2"), de = Symbol("async"), ve = Symbol("abort"), Se = Symbol("aborted"), Ee = Symbol("signal"), xe = Symbol("dataListeners"), _e = Symbol("discarded"), mt = (i)=>Promise.resolve().then(i), li = (i)=>i(), ci = (i)=>"end" === i || "finish" === i || "prefinish" === i, fi = (i)=>i instanceof ArrayBuffer || !!i && "object" == typeof i && i.constructor && "ArrayBuffer" === i.constructor.name && i.byteLength >= 0, ui = (i)=>!Buffer.isBuffer(i) && ArrayBuffer.isView(i), Oe = class {
|
|
1642
|
+
src;
|
|
1643
|
+
dest;
|
|
1644
|
+
opts;
|
|
1645
|
+
ondrain;
|
|
1646
|
+
constructor(i, p, f){
|
|
1647
|
+
this.src = i, this.dest = p, this.opts = f, this.ondrain = ()=>i[Xt](), this.dest.on("drain", this.ondrain);
|
|
1648
|
+
}
|
|
1649
|
+
unpipe() {
|
|
1650
|
+
this.dest.removeListener("drain", this.ondrain);
|
|
1651
|
+
}
|
|
1652
|
+
proxyErrors(i) {}
|
|
1653
|
+
end() {
|
|
1654
|
+
this.unpipe(), this.opts.end && this.dest.end();
|
|
1655
|
+
}
|
|
1656
|
+
}, Ae = class extends Oe {
|
|
1657
|
+
unpipe() {
|
|
1658
|
+
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
1659
|
+
}
|
|
1660
|
+
constructor(i, p, f){
|
|
1661
|
+
super(i, p, f), this.proxyErrors = (i)=>this.dest.emit("error", i), i.on("error", this.proxyErrors);
|
|
1662
|
+
}
|
|
1663
|
+
}, di = (i)=>!!i.objectMode, pi = (i)=>!i.objectMode && !!i.encoding && "buffer" !== i.encoding, Re = class extends x.EventEmitter {
|
|
1664
|
+
[Vt] = !1;
|
|
1665
|
+
[Yt] = !1;
|
|
1666
|
+
[ee] = [];
|
|
1667
|
+
[te] = [];
|
|
1668
|
+
[ne];
|
|
1669
|
+
[Qt];
|
|
1670
|
+
[de];
|
|
1671
|
+
[Kt];
|
|
1672
|
+
[Dt] = !1;
|
|
1673
|
+
[zt] = !1;
|
|
1674
|
+
[Nt] = !1;
|
|
1675
|
+
[It] = !1;
|
|
1676
|
+
[$t] = null;
|
|
1677
|
+
[se] = 0;
|
|
1678
|
+
[oe] = !1;
|
|
1679
|
+
[Ee];
|
|
1680
|
+
[Se] = !1;
|
|
1681
|
+
[xe] = 0;
|
|
1682
|
+
[_e] = !1;
|
|
1683
|
+
writable = !0;
|
|
1684
|
+
readable = !0;
|
|
1685
|
+
constructor(...i){
|
|
1686
|
+
let p = i[0] || {};
|
|
1687
|
+
if (super(), p.objectMode && "string" == typeof p.encoding) throw new TypeError("Encoding and objectMode may not be used together");
|
|
1688
|
+
di(p) ? (this[ne] = !0, this[Qt] = null) : pi(p) ? (this[Qt] = p.encoding, this[ne] = !1) : (this[ne] = !1, this[Qt] = null), this[de] = !!p.async, this[Kt] = this[Qt] ? new C.StringDecoder(this[Qt]) : null, p && !0 === p.debugExposeBuffer && Object.defineProperty(this, "buffer", {
|
|
1689
|
+
get: ()=>this[te]
|
|
1690
|
+
}), p && !0 === p.debugExposePipes && Object.defineProperty(this, "pipes", {
|
|
1691
|
+
get: ()=>this[ee]
|
|
1692
|
+
});
|
|
1693
|
+
let { signal: f } = p;
|
|
1694
|
+
f && (this[Ee] = f, f.aborted ? this[ve]() : f.addEventListener("abort", ()=>this[ve]()));
|
|
1695
|
+
}
|
|
1696
|
+
get bufferLength() {
|
|
1697
|
+
return this[se];
|
|
1698
|
+
}
|
|
1699
|
+
get encoding() {
|
|
1700
|
+
return this[Qt];
|
|
1701
|
+
}
|
|
1702
|
+
set encoding(i) {
|
|
1703
|
+
throw new Error("Encoding must be set at instantiation time");
|
|
1704
|
+
}
|
|
1705
|
+
setEncoding(i) {
|
|
1706
|
+
throw new Error("Encoding must be set at instantiation time");
|
|
1707
|
+
}
|
|
1708
|
+
get objectMode() {
|
|
1709
|
+
return this[ne];
|
|
1710
|
+
}
|
|
1711
|
+
set objectMode(i) {
|
|
1712
|
+
throw new Error("objectMode must be set at instantiation time");
|
|
1713
|
+
}
|
|
1714
|
+
get async() {
|
|
1715
|
+
return this[de];
|
|
1716
|
+
}
|
|
1717
|
+
set async(i) {
|
|
1718
|
+
this[de] = this[de] || !!i;
|
|
1719
|
+
}
|
|
1720
|
+
[ve]() {
|
|
1721
|
+
this[Se] = !0, this.emit("abort", this[Ee]?.reason), this.destroy(this[Ee]?.reason);
|
|
1722
|
+
}
|
|
1723
|
+
get aborted() {
|
|
1724
|
+
return this[Se];
|
|
1725
|
+
}
|
|
1726
|
+
set aborted(i) {}
|
|
1727
|
+
write(i, p, f) {
|
|
1728
|
+
if (this[Se]) return !1;
|
|
1729
|
+
if (this[Dt]) throw new Error("write after end");
|
|
1730
|
+
if (this[oe]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), {
|
|
1731
|
+
code: "ERR_STREAM_DESTROYED"
|
|
1732
|
+
})), !0;
|
|
1733
|
+
"function" == typeof p && (f = p, p = "utf8"), p || (p = "utf8");
|
|
1734
|
+
let g = this[de] ? mt : li;
|
|
1735
|
+
if (!this[ne] && !Buffer.isBuffer(i)) {
|
|
1736
|
+
if (ui(i)) i = Buffer.from(i.buffer, i.byteOffset, i.byteLength);
|
|
1737
|
+
else if (fi(i)) i = Buffer.from(i);
|
|
1738
|
+
else if ("string" != typeof i) throw new Error("Non-contiguous data written to non-objectMode stream");
|
|
1739
|
+
}
|
|
1740
|
+
return this[ne] ? (this[Vt] && 0 !== this[se] && this[Zt](!0), this[Vt] ? this.emit("data", i) : this[re](i), 0 !== this[se] && this.emit("readable"), f && g(f), this[Vt]) : i.length ? ("string" == typeof i && (p !== this[Qt] || this[Kt]?.lastNeed) && (i = Buffer.from(i, p)), Buffer.isBuffer(i) && this[Qt] && (i = this[Kt].write(i)), this[Vt] && 0 !== this[se] && this[Zt](!0), this[Vt] ? this.emit("data", i) : this[re](i), 0 !== this[se] && this.emit("readable"), f && g(f), this[Vt]) : (0 !== this[se] && this.emit("readable"), f && g(f), this[Vt]);
|
|
1741
|
+
}
|
|
1742
|
+
read(i) {
|
|
1743
|
+
if (this[oe]) return null;
|
|
1744
|
+
if (this[_e] = !1, 0 === this[se] || 0 === i || i && i > this[se]) return this[Lt](), null;
|
|
1745
|
+
this[ne] && (i = null), this[te].length > 1 && !this[ne] && (this[te] = [
|
|
1746
|
+
this[Qt] ? this[te].join("") : Buffer.concat(this[te], this[se])
|
|
1747
|
+
]);
|
|
1748
|
+
let p = this[qt](i || null, this[te][0]);
|
|
1749
|
+
return this[Lt](), p;
|
|
1750
|
+
}
|
|
1751
|
+
[qt](i, p) {
|
|
1752
|
+
if (this[ne]) this[he]();
|
|
1753
|
+
else {
|
|
1754
|
+
let f = p;
|
|
1755
|
+
i === f.length || null === i ? this[he]() : "string" == typeof f ? (this[te][0] = f.slice(i), p = f.slice(0, i), this[se] -= i) : (this[te][0] = f.subarray(i), p = f.subarray(0, i), this[se] -= i);
|
|
1756
|
+
}
|
|
1757
|
+
return this.emit("data", p), this[te].length || this[Dt] || this.emit("drain"), p;
|
|
1758
|
+
}
|
|
1759
|
+
end(i, p, f) {
|
|
1760
|
+
return "function" == typeof i && (f = i, i = void 0), "function" == typeof p && (f = p, p = "utf8"), void 0 !== i && this.write(i, p), f && this.once("end", f), this[Dt] = !0, this.writable = !1, (this[Vt] || !this[Yt]) && this[Lt](), this;
|
|
1761
|
+
}
|
|
1762
|
+
[Xt]() {
|
|
1763
|
+
this[oe] || (this[xe] || this[ee].length || (this[_e] = !0), this[Yt] = !1, this[Vt] = !0, this.emit("resume"), this[te].length ? this[Zt]() : this[Dt] ? this[Lt]() : this.emit("drain"));
|
|
1764
|
+
}
|
|
1765
|
+
resume() {
|
|
1766
|
+
return this[Xt]();
|
|
1767
|
+
}
|
|
1768
|
+
pause() {
|
|
1769
|
+
this[Vt] = !1, this[Yt] = !0, this[_e] = !1;
|
|
1770
|
+
}
|
|
1771
|
+
get destroyed() {
|
|
1772
|
+
return this[oe];
|
|
1773
|
+
}
|
|
1774
|
+
get flowing() {
|
|
1775
|
+
return this[Vt];
|
|
1776
|
+
}
|
|
1777
|
+
get paused() {
|
|
1778
|
+
return this[Yt];
|
|
1779
|
+
}
|
|
1780
|
+
[re](i) {
|
|
1781
|
+
this[ne] ? this[se] += 1 : this[se] += i.length, this[te].push(i);
|
|
1782
|
+
}
|
|
1783
|
+
[he]() {
|
|
1784
|
+
return this[ne] ? this[se] -= 1 : this[se] -= this[te][0].length, this[te].shift();
|
|
1785
|
+
}
|
|
1786
|
+
[Zt](i = !1) {
|
|
1787
|
+
do ;
|
|
1788
|
+
while (this[Jt](this[he]()) && this[te].length);
|
|
1789
|
+
i || this[te].length || this[Dt] || this.emit("drain");
|
|
1790
|
+
}
|
|
1791
|
+
[Jt](i) {
|
|
1792
|
+
return this.emit("data", i), this[Vt];
|
|
1793
|
+
}
|
|
1794
|
+
pipe(i, p) {
|
|
1795
|
+
if (this[oe]) return i;
|
|
1796
|
+
this[_e] = !1;
|
|
1797
|
+
let f = this[zt];
|
|
1798
|
+
return p = p || {}, i === jt.stdout || i === jt.stderr ? p.end = !1 : p.end = !1 !== p.end, p.proxyErrors = !!p.proxyErrors, f ? p.end && i.end() : (this[ee].push(p.proxyErrors ? new Ae(this, i, p) : new Oe(this, i, p)), this[de] ? mt(()=>this[Xt]()) : this[Xt]()), i;
|
|
1799
|
+
}
|
|
1800
|
+
unpipe(i) {
|
|
1801
|
+
let p = this[ee].find((p)=>p.dest === i);
|
|
1802
|
+
p && (1 === this[ee].length ? (this[Vt] && 0 === this[xe] && (this[Vt] = !1), this[ee] = []) : this[ee].splice(this[ee].indexOf(p), 1), p.unpipe());
|
|
1803
|
+
}
|
|
1804
|
+
addListener(i, p) {
|
|
1805
|
+
return this.on(i, p);
|
|
1806
|
+
}
|
|
1807
|
+
on(i, p) {
|
|
1808
|
+
let f = super.on(i, p);
|
|
1809
|
+
if ("data" === i) this[_e] = !1, this[xe]++, this[ee].length || this[Vt] || this[Xt]();
|
|
1810
|
+
else if ("readable" === i && 0 !== this[se]) super.emit("readable");
|
|
1811
|
+
else if (ci(i) && this[zt]) super.emit(i), this.removeAllListeners(i);
|
|
1812
|
+
else if ("error" === i && this[$t]) {
|
|
1813
|
+
let i = p;
|
|
1814
|
+
this[de] ? mt(()=>i.call(this, this[$t])) : i.call(this, this[$t]);
|
|
1815
|
+
}
|
|
1816
|
+
return f;
|
|
1817
|
+
}
|
|
1818
|
+
removeListener(i, p) {
|
|
1819
|
+
return this.off(i, p);
|
|
1820
|
+
}
|
|
1821
|
+
off(i, p) {
|
|
1822
|
+
let f = super.off(i, p);
|
|
1823
|
+
return "data" === i && (this[xe] = this.listeners("data").length, 0 !== this[xe] || this[_e] || this[ee].length || (this[Vt] = !1)), f;
|
|
1824
|
+
}
|
|
1825
|
+
removeAllListeners(i) {
|
|
1826
|
+
let p = super.removeAllListeners(i);
|
|
1827
|
+
return ("data" === i || void 0 === i) && (this[xe] = 0, this[_e] || this[ee].length || (this[Vt] = !1)), p;
|
|
1828
|
+
}
|
|
1829
|
+
get emittedEnd() {
|
|
1830
|
+
return this[zt];
|
|
1831
|
+
}
|
|
1832
|
+
[Lt]() {
|
|
1833
|
+
this[Nt] || this[zt] || this[oe] || 0 !== this[te].length || !this[Dt] || (this[Nt] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[It] && this.emit("close"), this[Nt] = !1);
|
|
1834
|
+
}
|
|
1835
|
+
emit(i, ...p) {
|
|
1836
|
+
let f = p[0];
|
|
1837
|
+
if ("error" !== i && "close" !== i && i !== oe && this[oe]) return !1;
|
|
1838
|
+
if ("data" === i) return this[ne] || f ? this[de] ? (mt(()=>this[ue](f)), !0) : this[ue](f) : !1;
|
|
1839
|
+
if ("end" === i) return this[pe]();
|
|
1840
|
+
if ("close" === i) {
|
|
1841
|
+
if (this[It] = !0, !this[zt] && !this[oe]) return !1;
|
|
1842
|
+
let i = super.emit("close");
|
|
1843
|
+
return this.removeAllListeners("close"), i;
|
|
1844
|
+
} else if ("error" === i) {
|
|
1845
|
+
this[$t] = f, super.emit(ae, f);
|
|
1846
|
+
let i = !this[Ee] || this.listeners("error").length ? super.emit("error", f) : !1;
|
|
1847
|
+
return this[Lt](), i;
|
|
1848
|
+
} else if ("resume" === i) {
|
|
1849
|
+
let i = super.emit("resume");
|
|
1850
|
+
return this[Lt](), i;
|
|
1851
|
+
} else if ("finish" === i || "prefinish" === i) {
|
|
1852
|
+
let p = super.emit(i);
|
|
1853
|
+
return this.removeAllListeners(i), p;
|
|
1854
|
+
}
|
|
1855
|
+
let g = super.emit(i, ...p);
|
|
1856
|
+
return this[Lt](), g;
|
|
1857
|
+
}
|
|
1858
|
+
[ue](i) {
|
|
1859
|
+
for (let p of this[ee])!1 === p.dest.write(i) && this.pause();
|
|
1860
|
+
let p = this[_e] ? !1 : super.emit("data", i);
|
|
1861
|
+
return this[Lt](), p;
|
|
1862
|
+
}
|
|
1863
|
+
[pe]() {
|
|
1864
|
+
return this[zt] ? !1 : (this[zt] = !0, this.readable = !1, this[de] ? (mt(()=>this[fe]()), !0) : this[fe]());
|
|
1865
|
+
}
|
|
1866
|
+
[fe]() {
|
|
1867
|
+
if (this[Kt]) {
|
|
1868
|
+
let i = this[Kt].end();
|
|
1869
|
+
if (i) {
|
|
1870
|
+
for (let p of this[ee])p.dest.write(i);
|
|
1871
|
+
this[_e] || super.emit("data", i);
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
for (let i of this[ee])i.end();
|
|
1875
|
+
let i = super.emit("end");
|
|
1876
|
+
return this.removeAllListeners("end"), i;
|
|
1877
|
+
}
|
|
1878
|
+
async collect() {
|
|
1879
|
+
let i = Object.assign([], {
|
|
1880
|
+
dataLength: 0
|
|
1881
|
+
});
|
|
1882
|
+
this[ne] || (i.dataLength = 0);
|
|
1883
|
+
let p = this.promise();
|
|
1884
|
+
return this.on("data", (p)=>{
|
|
1885
|
+
i.push(p), this[ne] || (i.dataLength += p.length);
|
|
1886
|
+
}), await p, i;
|
|
1887
|
+
}
|
|
1888
|
+
async concat() {
|
|
1889
|
+
if (this[ne]) throw new Error("cannot concat in objectMode");
|
|
1890
|
+
let i = await this.collect();
|
|
1891
|
+
return this[Qt] ? i.join("") : Buffer.concat(i, i.dataLength);
|
|
1892
|
+
}
|
|
1893
|
+
async promise() {
|
|
1894
|
+
return new Promise((i, p)=>{
|
|
1895
|
+
this.on(oe, ()=>p(new Error("stream destroyed"))), this.on("error", (i)=>p(i)), this.on("end", ()=>i());
|
|
1896
|
+
});
|
|
1897
|
+
}
|
|
1898
|
+
[Symbol.asyncIterator]() {
|
|
1899
|
+
this[_e] = !1;
|
|
1900
|
+
let i = !1, e = async ()=>(this.pause(), i = !0, {
|
|
1901
|
+
value: void 0,
|
|
1902
|
+
done: !0
|
|
1903
|
+
});
|
|
1904
|
+
return {
|
|
1905
|
+
next: ()=>{
|
|
1906
|
+
if (i) return e();
|
|
1907
|
+
let p = this.read();
|
|
1908
|
+
if (null !== p) return Promise.resolve({
|
|
1909
|
+
done: !1,
|
|
1910
|
+
value: p
|
|
1911
|
+
});
|
|
1912
|
+
if (this[Dt]) return e();
|
|
1913
|
+
let f, g, h = (i)=>{
|
|
1914
|
+
this.off("data", a), this.off("end", l), this.off(oe, u), e(), g(i);
|
|
1915
|
+
}, a = (i)=>{
|
|
1916
|
+
this.off("error", h), this.off("end", l), this.off(oe, u), this.pause(), f({
|
|
1917
|
+
value: i,
|
|
1918
|
+
done: !!this[Dt]
|
|
1919
|
+
});
|
|
1920
|
+
}, l = ()=>{
|
|
1921
|
+
this.off("error", h), this.off("data", a), this.off(oe, u), e(), f({
|
|
1922
|
+
done: !0,
|
|
1923
|
+
value: void 0
|
|
1924
|
+
});
|
|
1925
|
+
}, u = ()=>h(new Error("stream destroyed"));
|
|
1926
|
+
return new Promise((i, p)=>{
|
|
1927
|
+
g = p, f = i, this.once(oe, u), this.once("error", h), this.once("end", l), this.once("data", a);
|
|
1928
|
+
});
|
|
1929
|
+
},
|
|
1930
|
+
throw: e,
|
|
1931
|
+
return: e,
|
|
1932
|
+
[Symbol.asyncIterator] () {
|
|
1933
|
+
return this;
|
|
1934
|
+
},
|
|
1935
|
+
[Symbol.asyncDispose]: async ()=>{}
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
[Symbol.iterator]() {
|
|
1939
|
+
this[_e] = !1;
|
|
1940
|
+
let i = !1, e = ()=>(this.pause(), this.off(ae, e), this.off(oe, e), this.off("end", e), i = !0, {
|
|
1941
|
+
done: !0,
|
|
1942
|
+
value: void 0
|
|
1943
|
+
}), s = ()=>{
|
|
1944
|
+
if (i) return e();
|
|
1945
|
+
let p = this.read();
|
|
1946
|
+
return null === p ? e() : {
|
|
1947
|
+
done: !1,
|
|
1948
|
+
value: p
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1951
|
+
return this.once("end", e), this.once(ae, e), this.once(oe, e), {
|
|
1952
|
+
next: s,
|
|
1953
|
+
throw: e,
|
|
1954
|
+
return: e,
|
|
1955
|
+
[Symbol.iterator] () {
|
|
1956
|
+
return this;
|
|
1957
|
+
},
|
|
1958
|
+
[Symbol.dispose]: ()=>{}
|
|
1959
|
+
};
|
|
1960
|
+
}
|
|
1961
|
+
destroy(i) {
|
|
1962
|
+
if (this[oe]) return i ? this.emit("error", i) : this.emit(oe), this;
|
|
1963
|
+
this[oe] = !0, this[_e] = !0, this[te].length = 0, this[se] = 0;
|
|
1964
|
+
let p = this;
|
|
1965
|
+
return "function" != typeof p.close || this[It] || p.close(), i ? this.emit("error", i) : this.emit(oe), this;
|
|
1966
|
+
}
|
|
1967
|
+
static get isStream() {
|
|
1968
|
+
return oi;
|
|
1969
|
+
}
|
|
1970
|
+
};
|
|
1971
|
+
var Pe = v.realpathSync.native, We = {
|
|
1972
|
+
lstatSync: v.lstatSync,
|
|
1973
|
+
readdir: v.readdir,
|
|
1974
|
+
readdirSync: v.readdirSync,
|
|
1975
|
+
readlinkSync: v.readlinkSync,
|
|
1976
|
+
realpathSync: Pe,
|
|
1977
|
+
promises: {
|
|
1978
|
+
lstat: k.lstat,
|
|
1979
|
+
readdir: k.readdir,
|
|
1980
|
+
readlink: k.readlink,
|
|
1981
|
+
realpath: k.realpath
|
|
1982
|
+
}
|
|
1983
|
+
}, Ue = (i)=>i && i !== We && i !== E ? {
|
|
1984
|
+
...We,
|
|
1985
|
+
...i,
|
|
1986
|
+
promises: {
|
|
1987
|
+
...We.promises,
|
|
1988
|
+
...i.promises || {}
|
|
1989
|
+
}
|
|
1990
|
+
} : We, je = /^\\\\\?\\([a-z]:)\\?$/i, Ri = (i)=>i.replace(/\//g, "\\").replace(je, "$1\\"), Le = /[\\\/]/, ze = 0, Ne = 1, Be = 2, $e = 4, Ie = 6, Ge = 8, qe = 10, He = 12, Ze = 15, Ke = ~Ze, Ve = 16, Ye = 32, Xe = 64, si = 128, ri = 256, ni = 512, gi = Xe | si | ni, mi = 1023, ie = (i)=>i.isFile() ? Ge : i.isDirectory() ? $e : i.isSymbolicLink() ? qe : i.isCharacterDevice() ? Be : i.isBlockDevice() ? Ie : i.isSocket() ? He : i.isFIFO() ? Ne : ze, wi = new Wt({
|
|
1991
|
+
max: 4096
|
|
1992
|
+
}), bt = (i)=>{
|
|
1993
|
+
let p = wi.get(i);
|
|
1994
|
+
if (p) return p;
|
|
1995
|
+
let f = i.normalize("NFKD");
|
|
1996
|
+
return wi.set(i, f), f;
|
|
1997
|
+
}, yi = new Wt({
|
|
1998
|
+
max: 4096
|
|
1999
|
+
}), _t = (i)=>{
|
|
2000
|
+
let p = yi.get(i);
|
|
2001
|
+
if (p) return p;
|
|
2002
|
+
let f = bt(i.toLowerCase());
|
|
2003
|
+
return yi.set(i, f), f;
|
|
2004
|
+
}, bi = class extends Wt {
|
|
2005
|
+
constructor(){
|
|
2006
|
+
super({
|
|
2007
|
+
max: 256
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
}, vi = class extends Wt {
|
|
2011
|
+
constructor(i = 16384){
|
|
2012
|
+
super({
|
|
2013
|
+
maxSize: i,
|
|
2014
|
+
sizeCalculation: (i)=>i.length + 1
|
|
2015
|
+
});
|
|
2016
|
+
}
|
|
2017
|
+
}, Si = Symbol("PathScurry setAsCwd"), Ei = class {
|
|
2018
|
+
name;
|
|
2019
|
+
root;
|
|
2020
|
+
roots;
|
|
2021
|
+
parent;
|
|
2022
|
+
nocase;
|
|
2023
|
+
isCWD = !1;
|
|
2024
|
+
#t;
|
|
2025
|
+
#e;
|
|
2026
|
+
get dev() {
|
|
2027
|
+
return this.#e;
|
|
2028
|
+
}
|
|
2029
|
+
#i;
|
|
2030
|
+
get mode() {
|
|
2031
|
+
return this.#i;
|
|
2032
|
+
}
|
|
2033
|
+
#s;
|
|
2034
|
+
get nlink() {
|
|
2035
|
+
return this.#s;
|
|
2036
|
+
}
|
|
2037
|
+
#r;
|
|
2038
|
+
get uid() {
|
|
2039
|
+
return this.#r;
|
|
2040
|
+
}
|
|
2041
|
+
#h;
|
|
2042
|
+
get gid() {
|
|
2043
|
+
return this.#h;
|
|
2044
|
+
}
|
|
2045
|
+
#n;
|
|
2046
|
+
get rdev() {
|
|
2047
|
+
return this.#n;
|
|
2048
|
+
}
|
|
2049
|
+
#o;
|
|
2050
|
+
get blksize() {
|
|
2051
|
+
return this.#o;
|
|
2052
|
+
}
|
|
2053
|
+
#a;
|
|
2054
|
+
get ino() {
|
|
2055
|
+
return this.#a;
|
|
2056
|
+
}
|
|
2057
|
+
#l;
|
|
2058
|
+
get size() {
|
|
2059
|
+
return this.#l;
|
|
2060
|
+
}
|
|
2061
|
+
#c;
|
|
2062
|
+
get blocks() {
|
|
2063
|
+
return this.#c;
|
|
2064
|
+
}
|
|
2065
|
+
#u;
|
|
2066
|
+
get atimeMs() {
|
|
2067
|
+
return this.#u;
|
|
2068
|
+
}
|
|
2069
|
+
#p;
|
|
2070
|
+
get mtimeMs() {
|
|
2071
|
+
return this.#p;
|
|
2072
|
+
}
|
|
2073
|
+
#d;
|
|
2074
|
+
get ctimeMs() {
|
|
2075
|
+
return this.#d;
|
|
2076
|
+
}
|
|
2077
|
+
#f;
|
|
2078
|
+
get birthtimeMs() {
|
|
2079
|
+
return this.#f;
|
|
2080
|
+
}
|
|
2081
|
+
#g;
|
|
2082
|
+
get atime() {
|
|
2083
|
+
return this.#g;
|
|
2084
|
+
}
|
|
2085
|
+
#m;
|
|
2086
|
+
get mtime() {
|
|
2087
|
+
return this.#m;
|
|
2088
|
+
}
|
|
2089
|
+
#w;
|
|
2090
|
+
get ctime() {
|
|
2091
|
+
return this.#w;
|
|
2092
|
+
}
|
|
2093
|
+
#y;
|
|
2094
|
+
get birthtime() {
|
|
2095
|
+
return this.#y;
|
|
2096
|
+
}
|
|
2097
|
+
#b;
|
|
2098
|
+
#v;
|
|
2099
|
+
#S;
|
|
2100
|
+
#E;
|
|
2101
|
+
#k;
|
|
2102
|
+
#x;
|
|
2103
|
+
#_;
|
|
2104
|
+
#C;
|
|
2105
|
+
#W;
|
|
2106
|
+
#L;
|
|
2107
|
+
get parentPath() {
|
|
2108
|
+
return (this.parent || this).fullpath();
|
|
2109
|
+
}
|
|
2110
|
+
get path() {
|
|
2111
|
+
return this.parentPath;
|
|
2112
|
+
}
|
|
2113
|
+
constructor(i, p = ze, f, g, y, b, v){
|
|
2114
|
+
this.name = i, this.#b = y ? _t(i) : bt(i), this.#_ = p & mi, this.nocase = y, this.roots = g, this.root = f || this, this.#C = b, this.#S = v.fullpath, this.#k = v.relative, this.#x = v.relativePosix, this.parent = v.parent, this.parent ? this.#t = this.parent.#t : this.#t = Ue(v.fs);
|
|
2115
|
+
}
|
|
2116
|
+
depth() {
|
|
2117
|
+
return void 0 !== this.#v ? this.#v : this.parent ? this.#v = this.parent.depth() + 1 : this.#v = 0;
|
|
2118
|
+
}
|
|
2119
|
+
childrenCache() {
|
|
2120
|
+
return this.#C;
|
|
2121
|
+
}
|
|
2122
|
+
resolve(i) {
|
|
2123
|
+
if (!i) return this;
|
|
2124
|
+
let p = this.getRootString(i), f = i.substring(p.length).split(this.splitSep);
|
|
2125
|
+
return p ? this.getRoot(p).#z(f) : this.#z(f);
|
|
2126
|
+
}
|
|
2127
|
+
#z(i) {
|
|
2128
|
+
let p = this;
|
|
2129
|
+
for (let f of i)p = p.child(f);
|
|
2130
|
+
return p;
|
|
2131
|
+
}
|
|
2132
|
+
children() {
|
|
2133
|
+
let i = this.#C.get(this);
|
|
2134
|
+
if (i) return i;
|
|
2135
|
+
let p = Object.assign([], {
|
|
2136
|
+
provisional: 0
|
|
2137
|
+
});
|
|
2138
|
+
return this.#C.set(this, p), this.#_ &= ~Ve, p;
|
|
2139
|
+
}
|
|
2140
|
+
child(i, p) {
|
|
2141
|
+
if ("" === i || "." === i) return this;
|
|
2142
|
+
if (".." === i) return this.parent || this;
|
|
2143
|
+
let f = this.children(), g = this.nocase ? _t(i) : bt(i);
|
|
2144
|
+
for (let i of f)if (i.#b === g) return i;
|
|
2145
|
+
let y = this.parent ? this.sep : "", b = this.#S ? this.#S + y + i : void 0, v = this.newChild(i, ze, {
|
|
2146
|
+
...p,
|
|
2147
|
+
parent: this,
|
|
2148
|
+
fullpath: b
|
|
2149
|
+
});
|
|
2150
|
+
return this.canReaddir() || (v.#_ |= si), f.push(v), v;
|
|
2151
|
+
}
|
|
2152
|
+
relative() {
|
|
2153
|
+
if (this.isCWD) return "";
|
|
2154
|
+
if (void 0 !== this.#k) return this.#k;
|
|
2155
|
+
let i = this.name, p = this.parent;
|
|
2156
|
+
if (!p) return this.#k = this.name;
|
|
2157
|
+
let f = p.relative();
|
|
2158
|
+
return f + (f && p.parent ? this.sep : "") + i;
|
|
2159
|
+
}
|
|
2160
|
+
relativePosix() {
|
|
2161
|
+
if ("/" === this.sep) return this.relative();
|
|
2162
|
+
if (this.isCWD) return "";
|
|
2163
|
+
if (void 0 !== this.#x) return this.#x;
|
|
2164
|
+
let i = this.name, p = this.parent;
|
|
2165
|
+
if (!p) return this.#x = this.fullpathPosix();
|
|
2166
|
+
let f = p.relativePosix();
|
|
2167
|
+
return f + (f && p.parent ? "/" : "") + i;
|
|
2168
|
+
}
|
|
2169
|
+
fullpath() {
|
|
2170
|
+
if (void 0 !== this.#S) return this.#S;
|
|
2171
|
+
let i = this.name, p = this.parent;
|
|
2172
|
+
if (!p) return this.#S = this.name;
|
|
2173
|
+
let f = p.fullpath() + (p.parent ? this.sep : "") + i;
|
|
2174
|
+
return this.#S = f;
|
|
2175
|
+
}
|
|
2176
|
+
fullpathPosix() {
|
|
2177
|
+
if (void 0 !== this.#E) return this.#E;
|
|
2178
|
+
if ("/" === this.sep) return this.#E = this.fullpath();
|
|
2179
|
+
if (!this.parent) {
|
|
2180
|
+
let i = this.fullpath().replace(/\\/g, "/");
|
|
2181
|
+
return /^[a-z]:\//i.test(i) ? this.#E = `//?/${i}` : this.#E = i;
|
|
2182
|
+
}
|
|
2183
|
+
let i = this.parent, p = i.fullpathPosix(), f = p + (p && i.parent ? "/" : "") + this.name;
|
|
2184
|
+
return this.#E = f;
|
|
2185
|
+
}
|
|
2186
|
+
isUnknown() {
|
|
2187
|
+
return (this.#_ & Ze) === ze;
|
|
2188
|
+
}
|
|
2189
|
+
isType(i) {
|
|
2190
|
+
return this[`is${i}`]();
|
|
2191
|
+
}
|
|
2192
|
+
getType() {
|
|
2193
|
+
return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
|
|
2194
|
+
}
|
|
2195
|
+
isFile() {
|
|
2196
|
+
return (this.#_ & Ze) === Ge;
|
|
2197
|
+
}
|
|
2198
|
+
isDirectory() {
|
|
2199
|
+
return (this.#_ & Ze) === $e;
|
|
2200
|
+
}
|
|
2201
|
+
isCharacterDevice() {
|
|
2202
|
+
return (this.#_ & Ze) === Be;
|
|
2203
|
+
}
|
|
2204
|
+
isBlockDevice() {
|
|
2205
|
+
return (this.#_ & Ze) === Ie;
|
|
2206
|
+
}
|
|
2207
|
+
isFIFO() {
|
|
2208
|
+
return (this.#_ & Ze) === Ne;
|
|
2209
|
+
}
|
|
2210
|
+
isSocket() {
|
|
2211
|
+
return (this.#_ & Ze) === He;
|
|
2212
|
+
}
|
|
2213
|
+
isSymbolicLink() {
|
|
2214
|
+
return (this.#_ & qe) === qe;
|
|
2215
|
+
}
|
|
2216
|
+
lstatCached() {
|
|
2217
|
+
return this.#_ & Ye ? this : void 0;
|
|
2218
|
+
}
|
|
2219
|
+
readlinkCached() {
|
|
2220
|
+
return this.#W;
|
|
2221
|
+
}
|
|
2222
|
+
realpathCached() {
|
|
2223
|
+
return this.#L;
|
|
2224
|
+
}
|
|
2225
|
+
readdirCached() {
|
|
2226
|
+
let i = this.children();
|
|
2227
|
+
return i.slice(0, i.provisional);
|
|
2228
|
+
}
|
|
2229
|
+
canReadlink() {
|
|
2230
|
+
if (this.#W) return !0;
|
|
2231
|
+
if (!this.parent) return !1;
|
|
2232
|
+
let i = this.#_ & Ze;
|
|
2233
|
+
return !(i !== ze && i !== qe || this.#_ & ri || this.#_ & si);
|
|
2234
|
+
}
|
|
2235
|
+
calledReaddir() {
|
|
2236
|
+
return !!(this.#_ & Ve);
|
|
2237
|
+
}
|
|
2238
|
+
isENOENT() {
|
|
2239
|
+
return !!(this.#_ & si);
|
|
2240
|
+
}
|
|
2241
|
+
isNamed(i) {
|
|
2242
|
+
return this.nocase ? this.#b === _t(i) : this.#b === bt(i);
|
|
2243
|
+
}
|
|
2244
|
+
async readlink() {
|
|
2245
|
+
let i = this.#W;
|
|
2246
|
+
if (i) return i;
|
|
2247
|
+
if (this.canReadlink() && this.parent) try {
|
|
2248
|
+
let i = await this.#t.promises.readlink(this.fullpath()), p = (await this.parent.realpath())?.resolve(i);
|
|
2249
|
+
if (p) return this.#W = p;
|
|
2250
|
+
} catch (i) {
|
|
2251
|
+
this.#F(i.code);
|
|
2252
|
+
return;
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
readlinkSync() {
|
|
2256
|
+
let i = this.#W;
|
|
2257
|
+
if (i) return i;
|
|
2258
|
+
if (this.canReadlink() && this.parent) try {
|
|
2259
|
+
let i = this.#t.readlinkSync(this.fullpath()), p = this.parent.realpathSync()?.resolve(i);
|
|
2260
|
+
if (p) return this.#W = p;
|
|
2261
|
+
} catch (i) {
|
|
2262
|
+
this.#F(i.code);
|
|
2263
|
+
return;
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
#j(i) {
|
|
2267
|
+
this.#_ |= Ve;
|
|
2268
|
+
for(let p = i.provisional; p < i.length; p++){
|
|
2269
|
+
let f = i[p];
|
|
2270
|
+
f && f.#M();
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
#M() {
|
|
2274
|
+
this.#_ & si || (this.#_ = (this.#_ | si) & Ke, this.#P());
|
|
2275
|
+
}
|
|
2276
|
+
#P() {
|
|
2277
|
+
let i = this.children();
|
|
2278
|
+
i.provisional = 0;
|
|
2279
|
+
for (let p of i)p.#M();
|
|
2280
|
+
}
|
|
2281
|
+
#N() {
|
|
2282
|
+
this.#_ |= ni, this.#$();
|
|
2283
|
+
}
|
|
2284
|
+
#$() {
|
|
2285
|
+
if (this.#_ & Xe) return;
|
|
2286
|
+
let i = this.#_;
|
|
2287
|
+
(i & Ze) === $e && (i &= Ke), this.#_ = i | Xe, this.#P();
|
|
2288
|
+
}
|
|
2289
|
+
#B(i = "") {
|
|
2290
|
+
"ENOTDIR" === i || "EPERM" === i ? this.#$() : "ENOENT" === i ? this.#M() : this.children().provisional = 0;
|
|
2291
|
+
}
|
|
2292
|
+
#R(i = "") {
|
|
2293
|
+
"ENOTDIR" === i ? this.parent.#$() : "ENOENT" === i && this.#M();
|
|
2294
|
+
}
|
|
2295
|
+
#F(i = "") {
|
|
2296
|
+
let p = this.#_;
|
|
2297
|
+
p |= ri, "ENOENT" === i && (p |= si), ("EINVAL" === i || "UNKNOWN" === i) && (p &= Ke), this.#_ = p, "ENOTDIR" === i && this.parent && this.parent.#$();
|
|
2298
|
+
}
|
|
2299
|
+
#I(i, p) {
|
|
2300
|
+
return this.#A(i, p) || this.#U(i, p);
|
|
2301
|
+
}
|
|
2302
|
+
#U(i, p) {
|
|
2303
|
+
let f = ie(i), g = this.newChild(i.name, f, {
|
|
2304
|
+
parent: this
|
|
2305
|
+
}), y = g.#_ & Ze;
|
|
2306
|
+
return y !== $e && y !== qe && y !== ze && (g.#_ |= Xe), p.unshift(g), p.provisional++, g;
|
|
2307
|
+
}
|
|
2308
|
+
#A(i, p) {
|
|
2309
|
+
for(let f = p.provisional; f < p.length; f++){
|
|
2310
|
+
let g = p[f];
|
|
2311
|
+
if ((this.nocase ? _t(i.name) : bt(i.name)) === g.#b) return this.#O(i, g, f, p);
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
#O(i, p, f, g) {
|
|
2315
|
+
let y = p.name;
|
|
2316
|
+
return p.#_ = p.#_ & Ke | ie(i), y !== i.name && (p.name = i.name), f !== g.provisional && (f === g.length - 1 ? g.pop() : g.splice(f, 1), g.unshift(p)), g.provisional++, p;
|
|
2317
|
+
}
|
|
2318
|
+
async lstat() {
|
|
2319
|
+
if ((this.#_ & si) === 0) try {
|
|
2320
|
+
return this.#G(await this.#t.promises.lstat(this.fullpath())), this;
|
|
2321
|
+
} catch (i) {
|
|
2322
|
+
this.#R(i.code);
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
lstatSync() {
|
|
2326
|
+
if ((this.#_ & si) === 0) try {
|
|
2327
|
+
return this.#G(this.#t.lstatSync(this.fullpath())), this;
|
|
2328
|
+
} catch (i) {
|
|
2329
|
+
this.#R(i.code);
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
#G(i) {
|
|
2333
|
+
let { atime: p, atimeMs: f, birthtime: g, birthtimeMs: y, blksize: b, blocks: v, ctime: S, ctimeMs: E, dev: k, gid: x, ino: _, mode: C, mtime: A, mtimeMs: T, nlink: R, rdev: F, size: M, uid: P } = i;
|
|
2334
|
+
this.#g = p, this.#u = f, this.#y = g, this.#f = y, this.#o = b, this.#c = v, this.#w = S, this.#d = E, this.#e = k, this.#h = x, this.#a = _, this.#i = C, this.#m = A, this.#p = T, this.#s = R, this.#n = F, this.#l = M, this.#r = P;
|
|
2335
|
+
let j = ie(i);
|
|
2336
|
+
this.#_ = this.#_ & Ke | j | Ye, j !== ze && j !== $e && j !== qe && (this.#_ |= Xe);
|
|
2337
|
+
}
|
|
2338
|
+
#T = [];
|
|
2339
|
+
#D = !1;
|
|
2340
|
+
#q(i) {
|
|
2341
|
+
this.#D = !1;
|
|
2342
|
+
let p = this.#T.slice();
|
|
2343
|
+
this.#T.length = 0, p.forEach((p)=>p(null, i));
|
|
2344
|
+
}
|
|
2345
|
+
readdirCB(i, p = !1) {
|
|
2346
|
+
if (!this.canReaddir()) return void (p ? i(null, []) : queueMicrotask(()=>i(null, [])));
|
|
2347
|
+
let f = this.children();
|
|
2348
|
+
if (this.calledReaddir()) {
|
|
2349
|
+
let g = f.slice(0, f.provisional);
|
|
2350
|
+
p ? i(null, g) : queueMicrotask(()=>i(null, g));
|
|
2351
|
+
return;
|
|
2352
|
+
}
|
|
2353
|
+
if (this.#T.push(i), this.#D) return;
|
|
2354
|
+
this.#D = !0;
|
|
2355
|
+
let g = this.fullpath();
|
|
2356
|
+
this.#t.readdir(g, {
|
|
2357
|
+
withFileTypes: !0
|
|
2358
|
+
}, (i, p)=>{
|
|
2359
|
+
if (i) this.#B(i.code), f.provisional = 0;
|
|
2360
|
+
else {
|
|
2361
|
+
for (let i of p)this.#I(i, f);
|
|
2362
|
+
this.#j(f);
|
|
2363
|
+
}
|
|
2364
|
+
this.#q(f.slice(0, f.provisional));
|
|
2365
|
+
});
|
|
2366
|
+
}
|
|
2367
|
+
#H;
|
|
2368
|
+
async readdir() {
|
|
2369
|
+
if (!this.canReaddir()) return [];
|
|
2370
|
+
let i = this.children();
|
|
2371
|
+
if (this.calledReaddir()) return i.slice(0, i.provisional);
|
|
2372
|
+
let p = this.fullpath();
|
|
2373
|
+
if (this.#H) await this.#H;
|
|
2374
|
+
else {
|
|
2375
|
+
let s = ()=>{};
|
|
2376
|
+
this.#H = new Promise((i)=>s = i);
|
|
2377
|
+
try {
|
|
2378
|
+
for (let f of (await this.#t.promises.readdir(p, {
|
|
2379
|
+
withFileTypes: !0
|
|
2380
|
+
})))this.#I(f, i);
|
|
2381
|
+
this.#j(i);
|
|
2382
|
+
} catch (p) {
|
|
2383
|
+
this.#B(p.code), i.provisional = 0;
|
|
2384
|
+
}
|
|
2385
|
+
this.#H = void 0, s();
|
|
2386
|
+
}
|
|
2387
|
+
return i.slice(0, i.provisional);
|
|
2388
|
+
}
|
|
2389
|
+
readdirSync() {
|
|
2390
|
+
if (!this.canReaddir()) return [];
|
|
2391
|
+
let i = this.children();
|
|
2392
|
+
if (this.calledReaddir()) return i.slice(0, i.provisional);
|
|
2393
|
+
let p = this.fullpath();
|
|
2394
|
+
try {
|
|
2395
|
+
for (let f of this.#t.readdirSync(p, {
|
|
2396
|
+
withFileTypes: !0
|
|
2397
|
+
}))this.#I(f, i);
|
|
2398
|
+
this.#j(i);
|
|
2399
|
+
} catch (p) {
|
|
2400
|
+
this.#B(p.code), i.provisional = 0;
|
|
2401
|
+
}
|
|
2402
|
+
return i.slice(0, i.provisional);
|
|
2403
|
+
}
|
|
2404
|
+
canReaddir() {
|
|
2405
|
+
if (this.#_ & gi) return !1;
|
|
2406
|
+
let i = Ze & this.#_;
|
|
2407
|
+
return i === ze || i === $e || i === qe;
|
|
2408
|
+
}
|
|
2409
|
+
shouldWalk(i, p) {
|
|
2410
|
+
return (this.#_ & $e) === $e && !(this.#_ & gi) && !i.has(this) && (!p || p(this));
|
|
2411
|
+
}
|
|
2412
|
+
async realpath() {
|
|
2413
|
+
if (this.#L) return this.#L;
|
|
2414
|
+
if (!((ni | ri | si) & this.#_)) try {
|
|
2415
|
+
let i = await this.#t.promises.realpath(this.fullpath());
|
|
2416
|
+
return this.#L = this.resolve(i);
|
|
2417
|
+
} catch {
|
|
2418
|
+
this.#N();
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2421
|
+
realpathSync() {
|
|
2422
|
+
if (this.#L) return this.#L;
|
|
2423
|
+
if (!((ni | ri | si) & this.#_)) try {
|
|
2424
|
+
let i = this.#t.realpathSync(this.fullpath());
|
|
2425
|
+
return this.#L = this.resolve(i);
|
|
2426
|
+
} catch {
|
|
2427
|
+
this.#N();
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
[Si](i) {
|
|
2431
|
+
if (i === this) return;
|
|
2432
|
+
i.isCWD = !1, this.isCWD = !0;
|
|
2433
|
+
let p = new Set([]), f = [], g = this;
|
|
2434
|
+
for(; g && g.parent;)p.add(g), g.#k = f.join(this.sep), g.#x = f.join("/"), g = g.parent, f.push("..");
|
|
2435
|
+
for(g = i; g && g.parent && !p.has(g);)g.#k = void 0, g.#x = void 0, g = g.parent;
|
|
2436
|
+
}
|
|
2437
|
+
}, ki = class n extends Ei {
|
|
2438
|
+
sep = "\\";
|
|
2439
|
+
splitSep = Le;
|
|
2440
|
+
constructor(i, p = ze, f, g, y, b, v){
|
|
2441
|
+
super(i, p, f, g, y, b, v);
|
|
2442
|
+
}
|
|
2443
|
+
newChild(i, p = ze, f = {}) {
|
|
2444
|
+
return new n(i, p, this.root, this.roots, this.nocase, this.childrenCache(), f);
|
|
2445
|
+
}
|
|
2446
|
+
getRootString(i) {
|
|
2447
|
+
return b.win32.parse(i).root;
|
|
2448
|
+
}
|
|
2449
|
+
getRoot(i) {
|
|
2450
|
+
if (i = Ri(i.toUpperCase()), i === this.root.name) return this.root;
|
|
2451
|
+
for (let [p, f] of Object.entries(this.roots))if (this.sameRoot(i, p)) return this.roots[i] = f;
|
|
2452
|
+
return this.roots[i] = new Ci(i, this).root;
|
|
2453
|
+
}
|
|
2454
|
+
sameRoot(i, p = this.root.name) {
|
|
2455
|
+
return i = i.toUpperCase().replace(/\//g, "\\").replace(je, "$1\\"), i === p;
|
|
2456
|
+
}
|
|
2457
|
+
}, xi = class n extends Ei {
|
|
2458
|
+
splitSep = "/";
|
|
2459
|
+
sep = "/";
|
|
2460
|
+
constructor(i, p = ze, f, g, y, b, v){
|
|
2461
|
+
super(i, p, f, g, y, b, v);
|
|
2462
|
+
}
|
|
2463
|
+
getRootString(i) {
|
|
2464
|
+
return i.startsWith("/") ? "/" : "";
|
|
2465
|
+
}
|
|
2466
|
+
getRoot(i) {
|
|
2467
|
+
return this.root;
|
|
2468
|
+
}
|
|
2469
|
+
newChild(i, p = ze, f = {}) {
|
|
2470
|
+
return new n(i, p, this.root, this.roots, this.nocase, this.childrenCache(), f);
|
|
2471
|
+
}
|
|
2472
|
+
}, _i = class {
|
|
2473
|
+
root;
|
|
2474
|
+
rootPath;
|
|
2475
|
+
roots;
|
|
2476
|
+
cwd;
|
|
2477
|
+
#t;
|
|
2478
|
+
#e;
|
|
2479
|
+
#i;
|
|
2480
|
+
nocase;
|
|
2481
|
+
#s;
|
|
2482
|
+
constructor(i = process.cwd(), p, f, { nocase: g, childrenCacheSize: b = 16384, fs: v = We } = {}){
|
|
2483
|
+
this.#s = Ue(v), (i instanceof URL || i.startsWith("file://")) && (i = (0, y.fileURLToPath)(i));
|
|
2484
|
+
let S = p.resolve(i);
|
|
2485
|
+
this.roots = Object.create(null), this.rootPath = this.parseRootPath(S), this.#t = new bi, this.#e = new bi, this.#i = new vi(b);
|
|
2486
|
+
let E = S.substring(this.rootPath.length).split(f);
|
|
2487
|
+
if (1 !== E.length || E[0] || E.pop(), void 0 === g) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
|
|
2488
|
+
this.nocase = g, this.root = this.newRoot(this.#s), this.roots[this.rootPath] = this.root;
|
|
2489
|
+
let k = this.root, x = E.length - 1, _ = p.sep, C = this.rootPath, A = !1;
|
|
2490
|
+
for (let i of E){
|
|
2491
|
+
let p = x--;
|
|
2492
|
+
k = k.child(i, {
|
|
2493
|
+
relative: new Array(p).fill("..").join(_),
|
|
2494
|
+
relativePosix: new Array(p).fill("..").join("/"),
|
|
2495
|
+
fullpath: C += (A ? "" : _) + i
|
|
2496
|
+
}), A = !0;
|
|
2497
|
+
}
|
|
2498
|
+
this.cwd = k;
|
|
2499
|
+
}
|
|
2500
|
+
depth(i = this.cwd) {
|
|
2501
|
+
return "string" == typeof i && (i = this.cwd.resolve(i)), i.depth();
|
|
2502
|
+
}
|
|
2503
|
+
childrenCache() {
|
|
2504
|
+
return this.#i;
|
|
2505
|
+
}
|
|
2506
|
+
resolve(...i) {
|
|
2507
|
+
let p = "";
|
|
2508
|
+
for(let f = i.length - 1; f >= 0; f--){
|
|
2509
|
+
let g = i[f];
|
|
2510
|
+
if (!(!g || "." === g) && (p = p ? `${g}/${p}` : g, this.isAbsolute(g))) break;
|
|
2511
|
+
}
|
|
2512
|
+
let f = this.#t.get(p);
|
|
2513
|
+
if (void 0 !== f) return f;
|
|
2514
|
+
let g = this.cwd.resolve(p).fullpath();
|
|
2515
|
+
return this.#t.set(p, g), g;
|
|
2516
|
+
}
|
|
2517
|
+
resolvePosix(...i) {
|
|
2518
|
+
let p = "";
|
|
2519
|
+
for(let f = i.length - 1; f >= 0; f--){
|
|
2520
|
+
let g = i[f];
|
|
2521
|
+
if (!(!g || "." === g) && (p = p ? `${g}/${p}` : g, this.isAbsolute(g))) break;
|
|
2522
|
+
}
|
|
2523
|
+
let f = this.#e.get(p);
|
|
2524
|
+
if (void 0 !== f) return f;
|
|
2525
|
+
let g = this.cwd.resolve(p).fullpathPosix();
|
|
2526
|
+
return this.#e.set(p, g), g;
|
|
2527
|
+
}
|
|
2528
|
+
relative(i = this.cwd) {
|
|
2529
|
+
return "string" == typeof i && (i = this.cwd.resolve(i)), i.relative();
|
|
2530
|
+
}
|
|
2531
|
+
relativePosix(i = this.cwd) {
|
|
2532
|
+
return "string" == typeof i && (i = this.cwd.resolve(i)), i.relativePosix();
|
|
2533
|
+
}
|
|
2534
|
+
basename(i = this.cwd) {
|
|
2535
|
+
return "string" == typeof i && (i = this.cwd.resolve(i)), i.name;
|
|
2536
|
+
}
|
|
2537
|
+
dirname(i = this.cwd) {
|
|
2538
|
+
return "string" == typeof i && (i = this.cwd.resolve(i)), (i.parent || i).fullpath();
|
|
2539
|
+
}
|
|
2540
|
+
async readdir(i = this.cwd, p = {
|
|
2541
|
+
withFileTypes: !0
|
|
2542
|
+
}) {
|
|
2543
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i, i = this.cwd);
|
|
2544
|
+
let { withFileTypes: f } = p;
|
|
2545
|
+
if (!i.canReaddir()) return [];
|
|
2546
|
+
else {
|
|
2547
|
+
let p = await i.readdir();
|
|
2548
|
+
return f ? p : p.map((i)=>i.name);
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
readdirSync(i = this.cwd, p = {
|
|
2552
|
+
withFileTypes: !0
|
|
2553
|
+
}) {
|
|
2554
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i, i = this.cwd);
|
|
2555
|
+
let { withFileTypes: f = !0 } = p;
|
|
2556
|
+
return i.canReaddir() ? f ? i.readdirSync() : i.readdirSync().map((i)=>i.name) : [];
|
|
2557
|
+
}
|
|
2558
|
+
async lstat(i = this.cwd) {
|
|
2559
|
+
return "string" == typeof i && (i = this.cwd.resolve(i)), i.lstat();
|
|
2560
|
+
}
|
|
2561
|
+
lstatSync(i = this.cwd) {
|
|
2562
|
+
return "string" == typeof i && (i = this.cwd.resolve(i)), i.lstatSync();
|
|
2563
|
+
}
|
|
2564
|
+
async readlink(i = this.cwd, { withFileTypes: p } = {
|
|
2565
|
+
withFileTypes: !1
|
|
2566
|
+
}) {
|
|
2567
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i.withFileTypes, i = this.cwd);
|
|
2568
|
+
let f = await i.readlink();
|
|
2569
|
+
return p ? f : f?.fullpath();
|
|
2570
|
+
}
|
|
2571
|
+
readlinkSync(i = this.cwd, { withFileTypes: p } = {
|
|
2572
|
+
withFileTypes: !1
|
|
2573
|
+
}) {
|
|
2574
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i.withFileTypes, i = this.cwd);
|
|
2575
|
+
let f = i.readlinkSync();
|
|
2576
|
+
return p ? f : f?.fullpath();
|
|
2577
|
+
}
|
|
2578
|
+
async realpath(i = this.cwd, { withFileTypes: p } = {
|
|
2579
|
+
withFileTypes: !1
|
|
2580
|
+
}) {
|
|
2581
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i.withFileTypes, i = this.cwd);
|
|
2582
|
+
let f = await i.realpath();
|
|
2583
|
+
return p ? f : f?.fullpath();
|
|
2584
|
+
}
|
|
2585
|
+
realpathSync(i = this.cwd, { withFileTypes: p } = {
|
|
2586
|
+
withFileTypes: !1
|
|
2587
|
+
}) {
|
|
2588
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i.withFileTypes, i = this.cwd);
|
|
2589
|
+
let f = i.realpathSync();
|
|
2590
|
+
return p ? f : f?.fullpath();
|
|
2591
|
+
}
|
|
2592
|
+
async walk(i = this.cwd, p = {}) {
|
|
2593
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i, i = this.cwd);
|
|
2594
|
+
let { withFileTypes: f = !0, follow: g = !1, filter: y, walkFilter: b } = p, v = [];
|
|
2595
|
+
(!y || y(i)) && v.push(f ? i : i.fullpath());
|
|
2596
|
+
let S = new Set, l = (i, p)=>{
|
|
2597
|
+
S.add(i), i.readdirCB((i, E)=>{
|
|
2598
|
+
if (i) return p(i);
|
|
2599
|
+
let k = E.length;
|
|
2600
|
+
if (!k) return p();
|
|
2601
|
+
let w = ()=>{
|
|
2602
|
+
0 === --k && p();
|
|
2603
|
+
};
|
|
2604
|
+
for (let i of E)(!y || y(i)) && v.push(f ? i : i.fullpath()), g && i.isSymbolicLink() ? i.realpath().then((i)=>i?.isUnknown() ? i.lstat() : i).then((i)=>i?.shouldWalk(S, b) ? l(i, w) : w()) : i.shouldWalk(S, b) ? l(i, w) : w();
|
|
2605
|
+
}, !0);
|
|
2606
|
+
}, E = i;
|
|
2607
|
+
return new Promise((i, p)=>{
|
|
2608
|
+
l(E, (f)=>{
|
|
2609
|
+
if (f) return p(f);
|
|
2610
|
+
i(v);
|
|
2611
|
+
});
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
walkSync(i = this.cwd, p = {}) {
|
|
2615
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i, i = this.cwd);
|
|
2616
|
+
let { withFileTypes: f = !0, follow: g = !1, filter: y, walkFilter: b } = p, v = [];
|
|
2617
|
+
(!y || y(i)) && v.push(f ? i : i.fullpath());
|
|
2618
|
+
let S = new Set([
|
|
2619
|
+
i
|
|
2620
|
+
]);
|
|
2621
|
+
for (let i of S){
|
|
2622
|
+
let p = i.readdirSync();
|
|
2623
|
+
for (let i of p){
|
|
2624
|
+
(!y || y(i)) && v.push(f ? i : i.fullpath());
|
|
2625
|
+
let p = i;
|
|
2626
|
+
if (i.isSymbolicLink()) {
|
|
2627
|
+
if (!(g && (p = i.realpathSync()))) continue;
|
|
2628
|
+
p.isUnknown() && p.lstatSync();
|
|
2629
|
+
}
|
|
2630
|
+
p.shouldWalk(S, b) && S.add(p);
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
return v;
|
|
2634
|
+
}
|
|
2635
|
+
[Symbol.asyncIterator]() {
|
|
2636
|
+
return this.iterate();
|
|
2637
|
+
}
|
|
2638
|
+
iterate(i = this.cwd, p = {}) {
|
|
2639
|
+
return "string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i, i = this.cwd), this.stream(i, p)[Symbol.asyncIterator]();
|
|
2640
|
+
}
|
|
2641
|
+
[Symbol.iterator]() {
|
|
2642
|
+
return this.iterateSync();
|
|
2643
|
+
}
|
|
2644
|
+
*iterateSync(i = this.cwd, p = {}) {
|
|
2645
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i, i = this.cwd);
|
|
2646
|
+
let { withFileTypes: f = !0, follow: g = !1, filter: y, walkFilter: b } = p;
|
|
2647
|
+
(!y || y(i)) && (yield f ? i : i.fullpath());
|
|
2648
|
+
let v = new Set([
|
|
2649
|
+
i
|
|
2650
|
+
]);
|
|
2651
|
+
for (let i of v){
|
|
2652
|
+
let p = i.readdirSync();
|
|
2653
|
+
for (let i of p){
|
|
2654
|
+
(!y || y(i)) && (yield f ? i : i.fullpath());
|
|
2655
|
+
let p = i;
|
|
2656
|
+
if (i.isSymbolicLink()) {
|
|
2657
|
+
if (!(g && (p = i.realpathSync()))) continue;
|
|
2658
|
+
p.isUnknown() && p.lstatSync();
|
|
2659
|
+
}
|
|
2660
|
+
p.shouldWalk(v, b) && v.add(p);
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
stream(i = this.cwd, p = {}) {
|
|
2665
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i, i = this.cwd);
|
|
2666
|
+
let { withFileTypes: f = !0, follow: g = !1, filter: y, walkFilter: b } = p, v = new Re({
|
|
2667
|
+
objectMode: !0
|
|
2668
|
+
});
|
|
2669
|
+
(!y || y(i)) && v.write(f ? i : i.fullpath());
|
|
2670
|
+
let S = new Set, E = [
|
|
2671
|
+
i
|
|
2672
|
+
], k = 0, c = ()=>{
|
|
2673
|
+
let i = !1;
|
|
2674
|
+
for(; !i;){
|
|
2675
|
+
let p = E.shift();
|
|
2676
|
+
if (!p) {
|
|
2677
|
+
0 === k && v.end();
|
|
2678
|
+
return;
|
|
2679
|
+
}
|
|
2680
|
+
k++, S.add(p);
|
|
2681
|
+
let m = (p, _, C = !1)=>{
|
|
2682
|
+
if (p) return v.emit("error", p);
|
|
2683
|
+
if (g && !C) {
|
|
2684
|
+
let i = [];
|
|
2685
|
+
for (let p of _)p.isSymbolicLink() && i.push(p.realpath().then((i)=>i?.isUnknown() ? i.lstat() : i));
|
|
2686
|
+
if (i.length) return void Promise.all(i).then(()=>m(null, _, !0));
|
|
2687
|
+
}
|
|
2688
|
+
for (let p of _)p && (!y || y(p)) && (v.write(f ? p : p.fullpath()) || (i = !0));
|
|
2689
|
+
k--;
|
|
2690
|
+
for (let i of _){
|
|
2691
|
+
let p = i.realpathCached() || i;
|
|
2692
|
+
p.shouldWalk(S, b) && E.push(p);
|
|
2693
|
+
}
|
|
2694
|
+
i && !v.flowing ? v.once("drain", c) : x || c();
|
|
2695
|
+
}, x = !0;
|
|
2696
|
+
p.readdirCB(m, !0), x = !1;
|
|
2697
|
+
}
|
|
2698
|
+
};
|
|
2699
|
+
return c(), v;
|
|
2700
|
+
}
|
|
2701
|
+
streamSync(i = this.cwd, p = {}) {
|
|
2702
|
+
"string" == typeof i ? i = this.cwd.resolve(i) : i instanceof Ei || (p = i, i = this.cwd);
|
|
2703
|
+
let { withFileTypes: f = !0, follow: g = !1, filter: y, walkFilter: b } = p, v = new Re({
|
|
2704
|
+
objectMode: !0
|
|
2705
|
+
}), S = new Set;
|
|
2706
|
+
(!y || y(i)) && v.write(f ? i : i.fullpath());
|
|
2707
|
+
let E = [
|
|
2708
|
+
i
|
|
2709
|
+
], k = 0, c = ()=>{
|
|
2710
|
+
let i = !1;
|
|
2711
|
+
for(; !i;){
|
|
2712
|
+
let p = E.shift();
|
|
2713
|
+
if (!p) {
|
|
2714
|
+
0 === k && v.end();
|
|
2715
|
+
return;
|
|
2716
|
+
}
|
|
2717
|
+
k++, S.add(p);
|
|
2718
|
+
let x = p.readdirSync();
|
|
2719
|
+
for (let p of x)(!y || y(p)) && (v.write(f ? p : p.fullpath()) || (i = !0));
|
|
2720
|
+
k--;
|
|
2721
|
+
for (let i of x){
|
|
2722
|
+
let p = i;
|
|
2723
|
+
if (i.isSymbolicLink()) {
|
|
2724
|
+
if (!(g && (p = i.realpathSync()))) continue;
|
|
2725
|
+
p.isUnknown() && p.lstatSync();
|
|
2726
|
+
}
|
|
2727
|
+
p.shouldWalk(S, b) && E.push(p);
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
i && !v.flowing && v.once("drain", c);
|
|
2731
|
+
};
|
|
2732
|
+
return c(), v;
|
|
2733
|
+
}
|
|
2734
|
+
chdir(i = this.cwd) {
|
|
2735
|
+
let p = this.cwd;
|
|
2736
|
+
this.cwd = "string" == typeof i ? this.cwd.resolve(i) : i, this.cwd[Si](p);
|
|
2737
|
+
}
|
|
2738
|
+
}, Ci = class extends _i {
|
|
2739
|
+
sep = "\\";
|
|
2740
|
+
constructor(i = process.cwd(), p = {}){
|
|
2741
|
+
let { nocase: f = !0 } = p;
|
|
2742
|
+
super(i, b.win32, "\\", {
|
|
2743
|
+
...p,
|
|
2744
|
+
nocase: f
|
|
2745
|
+
}), this.nocase = f;
|
|
2746
|
+
for(let i = this.cwd; i; i = i.parent)i.nocase = this.nocase;
|
|
2747
|
+
}
|
|
2748
|
+
parseRootPath(i) {
|
|
2749
|
+
return b.win32.parse(i).root.toUpperCase();
|
|
2750
|
+
}
|
|
2751
|
+
newRoot(i) {
|
|
2752
|
+
return new ki(this.rootPath, $e, void 0, this.roots, this.nocase, this.childrenCache(), {
|
|
2753
|
+
fs: i
|
|
2754
|
+
});
|
|
2755
|
+
}
|
|
2756
|
+
isAbsolute(i) {
|
|
2757
|
+
return i.startsWith("/") || i.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(i);
|
|
2758
|
+
}
|
|
2759
|
+
}, Oi = class extends _i {
|
|
2760
|
+
sep = "/";
|
|
2761
|
+
constructor(i = process.cwd(), p = {}){
|
|
2762
|
+
let { nocase: f = !1 } = p;
|
|
2763
|
+
super(i, b.posix, "/", {
|
|
2764
|
+
...p,
|
|
2765
|
+
nocase: f
|
|
2766
|
+
}), this.nocase = f;
|
|
2767
|
+
}
|
|
2768
|
+
parseRootPath(i) {
|
|
2769
|
+
return "/";
|
|
2770
|
+
}
|
|
2771
|
+
newRoot(i) {
|
|
2772
|
+
return new xi(this.rootPath, $e, void 0, this.roots, this.nocase, this.childrenCache(), {
|
|
2773
|
+
fs: i
|
|
2774
|
+
});
|
|
2775
|
+
}
|
|
2776
|
+
isAbsolute(i) {
|
|
2777
|
+
return i.startsWith("/");
|
|
2778
|
+
}
|
|
2779
|
+
}, Ai = class extends Oi {
|
|
2780
|
+
constructor(i = process.cwd(), p = {}){
|
|
2781
|
+
let { nocase: f = !0 } = p;
|
|
2782
|
+
super(i, {
|
|
2783
|
+
...p,
|
|
2784
|
+
nocase: f
|
|
2785
|
+
});
|
|
2786
|
+
}
|
|
2787
|
+
}, Fi = (process.platform, "win32" === process.platform ? Ci : "darwin" === process.platform ? Ai : Oi);
|
|
2788
|
+
var Di = (i)=>i.length >= 1, Mi = (i)=>i.length >= 1, Pi = Symbol.for("nodejs.util.inspect.custom"), Wi = class n {
|
|
2789
|
+
#t;
|
|
2790
|
+
#e;
|
|
2791
|
+
#i;
|
|
2792
|
+
length;
|
|
2793
|
+
#s;
|
|
2794
|
+
#r;
|
|
2795
|
+
#h;
|
|
2796
|
+
#n;
|
|
2797
|
+
#o;
|
|
2798
|
+
#a;
|
|
2799
|
+
#l = !0;
|
|
2800
|
+
constructor(i, p, f, g){
|
|
2801
|
+
if (!Di(i)) throw new TypeError("empty pattern list");
|
|
2802
|
+
if (!Mi(p)) throw new TypeError("empty glob list");
|
|
2803
|
+
if (p.length !== i.length) throw new TypeError("mismatched pattern list and glob list lengths");
|
|
2804
|
+
if (this.length = i.length, f < 0 || f >= this.length) throw new TypeError("index out of range");
|
|
2805
|
+
if (this.#t = i, this.#e = p, this.#i = f, this.#s = g, 0 === this.#i) {
|
|
2806
|
+
if (this.isUNC()) {
|
|
2807
|
+
let [i, p, f, g, ...y] = this.#t, [b, v, S, E, ...k] = this.#e;
|
|
2808
|
+
"" === y[0] && (y.shift(), k.shift());
|
|
2809
|
+
let x = [
|
|
2810
|
+
i,
|
|
2811
|
+
p,
|
|
2812
|
+
f,
|
|
2813
|
+
g,
|
|
2814
|
+
""
|
|
2815
|
+
].join("/"), _ = [
|
|
2816
|
+
b,
|
|
2817
|
+
v,
|
|
2818
|
+
S,
|
|
2819
|
+
E,
|
|
2820
|
+
""
|
|
2821
|
+
].join("/");
|
|
2822
|
+
this.#t = [
|
|
2823
|
+
x,
|
|
2824
|
+
...y
|
|
2825
|
+
], this.#e = [
|
|
2826
|
+
_,
|
|
2827
|
+
...k
|
|
2828
|
+
], this.length = this.#t.length;
|
|
2829
|
+
} else if (this.isDrive() || this.isAbsolute()) {
|
|
2830
|
+
let [i, ...p] = this.#t, [f, ...g] = this.#e;
|
|
2831
|
+
"" === p[0] && (p.shift(), g.shift());
|
|
2832
|
+
let y = i + "/", b = f + "/";
|
|
2833
|
+
this.#t = [
|
|
2834
|
+
y,
|
|
2835
|
+
...p
|
|
2836
|
+
], this.#e = [
|
|
2837
|
+
b,
|
|
2838
|
+
...g
|
|
2839
|
+
], this.length = this.#t.length;
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
[Pi]() {
|
|
2844
|
+
return "Pattern <" + this.#e.slice(this.#i).join("/") + ">";
|
|
2845
|
+
}
|
|
2846
|
+
pattern() {
|
|
2847
|
+
return this.#t[this.#i];
|
|
2848
|
+
}
|
|
2849
|
+
isString() {
|
|
2850
|
+
return "string" == typeof this.#t[this.#i];
|
|
2851
|
+
}
|
|
2852
|
+
isGlobstar() {
|
|
2853
|
+
return this.#t[this.#i] === yt;
|
|
2854
|
+
}
|
|
2855
|
+
isRegExp() {
|
|
2856
|
+
return this.#t[this.#i] instanceof RegExp;
|
|
2857
|
+
}
|
|
2858
|
+
globString() {
|
|
2859
|
+
return this.#h = this.#h || (0 === this.#i ? this.isAbsolute() ? this.#e[0] + this.#e.slice(1).join("/") : this.#e.join("/") : this.#e.slice(this.#i).join("/"));
|
|
2860
|
+
}
|
|
2861
|
+
hasMore() {
|
|
2862
|
+
return this.length > this.#i + 1;
|
|
2863
|
+
}
|
|
2864
|
+
rest() {
|
|
2865
|
+
return void 0 !== this.#r ? this.#r : this.hasMore() ? (this.#r = new n(this.#t, this.#e, this.#i + 1, this.#s), this.#r.#a = this.#a, this.#r.#o = this.#o, this.#r.#n = this.#n, this.#r) : this.#r = null;
|
|
2866
|
+
}
|
|
2867
|
+
isUNC() {
|
|
2868
|
+
let i = this.#t;
|
|
2869
|
+
return void 0 !== this.#o ? this.#o : this.#o = "win32" === this.#s && 0 === this.#i && "" === i[0] && "" === i[1] && "string" == typeof i[2] && !!i[2] && "string" == typeof i[3] && !!i[3];
|
|
2870
|
+
}
|
|
2871
|
+
isDrive() {
|
|
2872
|
+
let i = this.#t;
|
|
2873
|
+
return void 0 !== this.#n ? this.#n : this.#n = "win32" === this.#s && 0 === this.#i && this.length > 1 && "string" == typeof i[0] && /^[a-z]:$/i.test(i[0]);
|
|
2874
|
+
}
|
|
2875
|
+
isAbsolute() {
|
|
2876
|
+
let i = this.#t;
|
|
2877
|
+
return void 0 !== this.#a ? this.#a : this.#a = "" === i[0] && i.length > 1 || this.isDrive() || this.isUNC();
|
|
2878
|
+
}
|
|
2879
|
+
root() {
|
|
2880
|
+
let i = this.#t[0];
|
|
2881
|
+
return "string" == typeof i && this.isAbsolute() && 0 === this.#i ? i : "";
|
|
2882
|
+
}
|
|
2883
|
+
checkFollowGlobstar() {
|
|
2884
|
+
return !(0 === this.#i || !this.isGlobstar() || !this.#l);
|
|
2885
|
+
}
|
|
2886
|
+
markFollowGlobstar() {
|
|
2887
|
+
return 0 !== this.#i && this.isGlobstar() && this.#l ? (this.#l = !1, !0) : !1;
|
|
2888
|
+
}
|
|
2889
|
+
};
|
|
2890
|
+
var ji = "object" == typeof process && process && "string" == typeof process.platform ? process.platform : "linux", zi = class {
|
|
2891
|
+
relative;
|
|
2892
|
+
relativeChildren;
|
|
2893
|
+
absolute;
|
|
2894
|
+
absoluteChildren;
|
|
2895
|
+
platform;
|
|
2896
|
+
mmopts;
|
|
2897
|
+
constructor(i, { nobrace: p, nocase: f, noext: g, noglobstar: y, platform: b = ji }){
|
|
2898
|
+
this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = b, this.mmopts = {
|
|
2899
|
+
dot: !0,
|
|
2900
|
+
nobrace: p,
|
|
2901
|
+
nocase: f,
|
|
2902
|
+
noext: g,
|
|
2903
|
+
noglobstar: y,
|
|
2904
|
+
optimizationLevel: 2,
|
|
2905
|
+
platform: b,
|
|
2906
|
+
nocomment: !0,
|
|
2907
|
+
nonegate: !0
|
|
2908
|
+
};
|
|
2909
|
+
for (let p of i)this.add(p);
|
|
2910
|
+
}
|
|
2911
|
+
add(i) {
|
|
2912
|
+
let p = new Ct(i, this.mmopts);
|
|
2913
|
+
for(let i = 0; i < p.set.length; i++){
|
|
2914
|
+
let f = p.set[i], g = p.globParts[i];
|
|
2915
|
+
if (!f || !g) throw new Error("invalid pattern object");
|
|
2916
|
+
for(; "." === f[0] && "." === g[0];)f.shift(), g.shift();
|
|
2917
|
+
let y = new Wi(f, g, 0, this.platform), b = new Ct(y.globString(), this.mmopts), v = "**" === g[g.length - 1], S = y.isAbsolute();
|
|
2918
|
+
S ? this.absolute.push(b) : this.relative.push(b), v && (S ? this.absoluteChildren.push(b) : this.relativeChildren.push(b));
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
ignored(i) {
|
|
2922
|
+
let p = i.fullpath(), f = `${p}/`, g = i.relative() || ".", y = `${g}/`;
|
|
2923
|
+
for (let i of this.relative)if (i.match(g) || i.match(y)) return !0;
|
|
2924
|
+
for (let i of this.absolute)if (i.match(p) || i.match(f)) return !0;
|
|
2925
|
+
return !1;
|
|
2926
|
+
}
|
|
2927
|
+
childrenIgnored(i) {
|
|
2928
|
+
let p = i.fullpath() + "/", f = (i.relative() || ".") + "/";
|
|
2929
|
+
for (let i of this.relativeChildren)if (i.match(f)) return !0;
|
|
2930
|
+
for (let i of this.absoluteChildren)if (i.match(p)) return !0;
|
|
2931
|
+
return !1;
|
|
2932
|
+
}
|
|
2933
|
+
};
|
|
2934
|
+
var Ni = class n {
|
|
2935
|
+
store;
|
|
2936
|
+
constructor(i = new Map){
|
|
2937
|
+
this.store = i;
|
|
2938
|
+
}
|
|
2939
|
+
copy() {
|
|
2940
|
+
return new n(new Map(this.store));
|
|
2941
|
+
}
|
|
2942
|
+
hasWalked(i, p) {
|
|
2943
|
+
return this.store.get(i.fullpath())?.has(p.globString());
|
|
2944
|
+
}
|
|
2945
|
+
storeWalked(i, p) {
|
|
2946
|
+
let f = i.fullpath(), g = this.store.get(f);
|
|
2947
|
+
g ? g.add(p.globString()) : this.store.set(f, new Set([
|
|
2948
|
+
p.globString()
|
|
2949
|
+
]));
|
|
2950
|
+
}
|
|
2951
|
+
}, Bi = class {
|
|
2952
|
+
store = new Map;
|
|
2953
|
+
add(i, p, f) {
|
|
2954
|
+
let g = (p ? 2 : 0) | (f ? 1 : 0), y = this.store.get(i);
|
|
2955
|
+
this.store.set(i, void 0 === y ? g : g & y);
|
|
2956
|
+
}
|
|
2957
|
+
entries() {
|
|
2958
|
+
return [
|
|
2959
|
+
...this.store.entries()
|
|
2960
|
+
].map(([i, p])=>[
|
|
2961
|
+
i,
|
|
2962
|
+
!!(2 & p),
|
|
2963
|
+
!!(1 & p)
|
|
2964
|
+
]);
|
|
2965
|
+
}
|
|
2966
|
+
}, $i = class {
|
|
2967
|
+
store = new Map;
|
|
2968
|
+
add(i, p) {
|
|
2969
|
+
if (!i.canReaddir()) return;
|
|
2970
|
+
let f = this.store.get(i);
|
|
2971
|
+
f ? f.find((i)=>i.globString() === p.globString()) || f.push(p) : this.store.set(i, [
|
|
2972
|
+
p
|
|
2973
|
+
]);
|
|
2974
|
+
}
|
|
2975
|
+
get(i) {
|
|
2976
|
+
let p = this.store.get(i);
|
|
2977
|
+
if (!p) throw new Error("attempting to walk unknown path");
|
|
2978
|
+
return p;
|
|
2979
|
+
}
|
|
2980
|
+
entries() {
|
|
2981
|
+
return this.keys().map((i)=>[
|
|
2982
|
+
i,
|
|
2983
|
+
this.store.get(i)
|
|
2984
|
+
]);
|
|
2985
|
+
}
|
|
2986
|
+
keys() {
|
|
2987
|
+
return [
|
|
2988
|
+
...this.store.keys()
|
|
2989
|
+
].filter((i)=>i.canReaddir());
|
|
2990
|
+
}
|
|
2991
|
+
}, Ui = class n {
|
|
2992
|
+
hasWalkedCache;
|
|
2993
|
+
matches = new Bi;
|
|
2994
|
+
subwalks = new $i;
|
|
2995
|
+
patterns;
|
|
2996
|
+
follow;
|
|
2997
|
+
dot;
|
|
2998
|
+
opts;
|
|
2999
|
+
constructor(i, p){
|
|
3000
|
+
this.opts = i, this.follow = !!i.follow, this.dot = !!i.dot, this.hasWalkedCache = p ? p.copy() : new Ni;
|
|
3001
|
+
}
|
|
3002
|
+
processPatterns(i, p) {
|
|
3003
|
+
this.patterns = p;
|
|
3004
|
+
let f = p.map((p)=>[
|
|
3005
|
+
i,
|
|
3006
|
+
p
|
|
3007
|
+
]);
|
|
3008
|
+
for (let [i, p] of f){
|
|
3009
|
+
this.hasWalkedCache.storeWalked(i, p);
|
|
3010
|
+
let f = p.root(), g = p.isAbsolute() && !1 !== this.opts.absolute;
|
|
3011
|
+
if (f) {
|
|
3012
|
+
i = i.resolve("/" === f && void 0 !== this.opts.root ? this.opts.root : f);
|
|
3013
|
+
let g = p.rest();
|
|
3014
|
+
if (g) p = g;
|
|
3015
|
+
else {
|
|
3016
|
+
this.matches.add(i, !0, !1);
|
|
3017
|
+
continue;
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
if (i.isENOENT()) continue;
|
|
3021
|
+
let y, b, v = !1;
|
|
3022
|
+
for(; "string" == typeof (y = p.pattern()) && (b = p.rest());)i = i.resolve(y), p = b, v = !0;
|
|
3023
|
+
if (y = p.pattern(), b = p.rest(), v) {
|
|
3024
|
+
if (this.hasWalkedCache.hasWalked(i, p)) continue;
|
|
3025
|
+
this.hasWalkedCache.storeWalked(i, p);
|
|
3026
|
+
}
|
|
3027
|
+
if ("string" == typeof y) {
|
|
3028
|
+
let p = ".." === y || "" === y || "." === y;
|
|
3029
|
+
this.matches.add(i.resolve(y), g, p);
|
|
3030
|
+
continue;
|
|
3031
|
+
} else if (y === yt) {
|
|
3032
|
+
(!i.isSymbolicLink() || this.follow || p.checkFollowGlobstar()) && this.subwalks.add(i, p);
|
|
3033
|
+
let f = b?.pattern(), y = b?.rest();
|
|
3034
|
+
if (b && ("" !== f && "." !== f || y)) {
|
|
3035
|
+
if (".." === f) {
|
|
3036
|
+
let p = i.parent || i;
|
|
3037
|
+
y ? this.hasWalkedCache.hasWalked(p, y) || this.subwalks.add(p, y) : this.matches.add(p, g, !0);
|
|
3038
|
+
}
|
|
3039
|
+
} else this.matches.add(i, g, "" === f || "." === f);
|
|
3040
|
+
} else y instanceof RegExp && this.subwalks.add(i, p);
|
|
3041
|
+
}
|
|
3042
|
+
return this;
|
|
3043
|
+
}
|
|
3044
|
+
subwalkTargets() {
|
|
3045
|
+
return this.subwalks.keys();
|
|
3046
|
+
}
|
|
3047
|
+
child() {
|
|
3048
|
+
return new n(this.opts, this.hasWalkedCache);
|
|
3049
|
+
}
|
|
3050
|
+
filterEntries(i, p) {
|
|
3051
|
+
let f = this.subwalks.get(i), g = this.child();
|
|
3052
|
+
for (let i of p)for (let p of f){
|
|
3053
|
+
let f = p.isAbsolute(), y = p.pattern(), b = p.rest();
|
|
3054
|
+
y === yt ? g.testGlobstar(i, p, b, f) : y instanceof RegExp ? g.testRegExp(i, y, b, f) : g.testString(i, y, b, f);
|
|
3055
|
+
}
|
|
3056
|
+
return g;
|
|
3057
|
+
}
|
|
3058
|
+
testGlobstar(i, p, f, g) {
|
|
3059
|
+
if ((this.dot || !i.name.startsWith(".")) && (p.hasMore() || this.matches.add(i, g, !1), i.canReaddir() && (this.follow || !i.isSymbolicLink() ? this.subwalks.add(i, p) : i.isSymbolicLink() && (f && p.checkFollowGlobstar() ? this.subwalks.add(i, f) : p.markFollowGlobstar() && this.subwalks.add(i, p)))), f) {
|
|
3060
|
+
let p = f.pattern();
|
|
3061
|
+
if ("string" == typeof p && ".." !== p && "" !== p && "." !== p) this.testString(i, p, f.rest(), g);
|
|
3062
|
+
else if (".." === p) {
|
|
3063
|
+
let p = i.parent || i;
|
|
3064
|
+
this.subwalks.add(p, f);
|
|
3065
|
+
} else p instanceof RegExp && this.testRegExp(i, p, f.rest(), g);
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
testRegExp(i, p, f, g) {
|
|
3069
|
+
p.test(i.name) && (f ? this.subwalks.add(i, f) : this.matches.add(i, g, !1));
|
|
3070
|
+
}
|
|
3071
|
+
testString(i, p, f, g) {
|
|
3072
|
+
i.isNamed(p) && (f ? this.subwalks.add(i, f) : this.matches.add(i, g, !1));
|
|
3073
|
+
}
|
|
3074
|
+
};
|
|
3075
|
+
var Li = (i, p)=>"string" == typeof i ? new zi([
|
|
3076
|
+
i
|
|
3077
|
+
], p) : Array.isArray(i) ? new zi(i, p) : i, Ii = class {
|
|
3078
|
+
path;
|
|
3079
|
+
patterns;
|
|
3080
|
+
opts;
|
|
3081
|
+
seen = new Set;
|
|
3082
|
+
paused = !1;
|
|
3083
|
+
aborted = !1;
|
|
3084
|
+
#t = [];
|
|
3085
|
+
#e;
|
|
3086
|
+
#i;
|
|
3087
|
+
signal;
|
|
3088
|
+
maxDepth;
|
|
3089
|
+
includeChildMatches;
|
|
3090
|
+
constructor(i, p, f){
|
|
3091
|
+
if (this.patterns = i, this.path = p, this.opts = f, this.#i = f.posix || "win32" !== f.platform ? "/" : "\\", this.includeChildMatches = !1 !== f.includeChildMatches, (f.ignore || !this.includeChildMatches) && (this.#e = Li(f.ignore ?? [], f), !this.includeChildMatches && "function" != typeof this.#e.add)) {
|
|
3092
|
+
let i = "cannot ignore child matches, ignore lacks add() method.";
|
|
3093
|
+
throw new Error(i);
|
|
3094
|
+
}
|
|
3095
|
+
this.maxDepth = f.maxDepth || 1 / 0, f.signal && (this.signal = f.signal, this.signal.addEventListener("abort", ()=>{
|
|
3096
|
+
this.#t.length = 0;
|
|
3097
|
+
}));
|
|
3098
|
+
}
|
|
3099
|
+
#s(i) {
|
|
3100
|
+
return this.seen.has(i) || !!this.#e?.ignored?.(i);
|
|
3101
|
+
}
|
|
3102
|
+
#r(i) {
|
|
3103
|
+
return !!this.#e?.childrenIgnored?.(i);
|
|
3104
|
+
}
|
|
3105
|
+
pause() {
|
|
3106
|
+
this.paused = !0;
|
|
3107
|
+
}
|
|
3108
|
+
resume() {
|
|
3109
|
+
if (this.signal?.aborted) return;
|
|
3110
|
+
this.paused = !1;
|
|
3111
|
+
let i;
|
|
3112
|
+
for(; !this.paused && (i = this.#t.shift());)i();
|
|
3113
|
+
}
|
|
3114
|
+
onResume(i) {
|
|
3115
|
+
this.signal?.aborted || (this.paused ? this.#t.push(i) : i());
|
|
3116
|
+
}
|
|
3117
|
+
async matchCheck(i, p) {
|
|
3118
|
+
if (p && this.opts.nodir) return;
|
|
3119
|
+
let f;
|
|
3120
|
+
if (this.opts.realpath) {
|
|
3121
|
+
if (f = i.realpathCached() || await i.realpath(), !f) return;
|
|
3122
|
+
i = f;
|
|
3123
|
+
}
|
|
3124
|
+
let g = i.isUnknown() || this.opts.stat ? await i.lstat() : i;
|
|
3125
|
+
if (this.opts.follow && this.opts.nodir && g?.isSymbolicLink()) {
|
|
3126
|
+
let i = await g.realpath();
|
|
3127
|
+
i && (i.isUnknown() || this.opts.stat) && await i.lstat();
|
|
3128
|
+
}
|
|
3129
|
+
return this.matchCheckTest(g, p);
|
|
3130
|
+
}
|
|
3131
|
+
matchCheckTest(i, p) {
|
|
3132
|
+
return i && (1 / 0 === this.maxDepth || i.depth() <= this.maxDepth) && (!p || i.canReaddir()) && (!this.opts.nodir || !i.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !i.isSymbolicLink() || !i.realpathCached()?.isDirectory()) && !this.#s(i) ? i : void 0;
|
|
3133
|
+
}
|
|
3134
|
+
matchCheckSync(i, p) {
|
|
3135
|
+
if (p && this.opts.nodir) return;
|
|
3136
|
+
let f;
|
|
3137
|
+
if (this.opts.realpath) {
|
|
3138
|
+
if (f = i.realpathCached() || i.realpathSync(), !f) return;
|
|
3139
|
+
i = f;
|
|
3140
|
+
}
|
|
3141
|
+
let g = i.isUnknown() || this.opts.stat ? i.lstatSync() : i;
|
|
3142
|
+
if (this.opts.follow && this.opts.nodir && g?.isSymbolicLink()) {
|
|
3143
|
+
let i = g.realpathSync();
|
|
3144
|
+
i && (i?.isUnknown() || this.opts.stat) && i.lstatSync();
|
|
3145
|
+
}
|
|
3146
|
+
return this.matchCheckTest(g, p);
|
|
3147
|
+
}
|
|
3148
|
+
matchFinish(i, p) {
|
|
3149
|
+
if (this.#s(i)) return;
|
|
3150
|
+
if (!this.includeChildMatches && this.#e?.add) {
|
|
3151
|
+
let p = `${i.relativePosix()}/**`;
|
|
3152
|
+
this.#e.add(p);
|
|
3153
|
+
}
|
|
3154
|
+
let f = void 0 === this.opts.absolute ? p : this.opts.absolute;
|
|
3155
|
+
this.seen.add(i);
|
|
3156
|
+
let g = this.opts.mark && i.isDirectory() ? this.#i : "";
|
|
3157
|
+
if (this.opts.withFileTypes) this.matchEmit(i);
|
|
3158
|
+
else if (f) {
|
|
3159
|
+
let p = this.opts.posix ? i.fullpathPosix() : i.fullpath();
|
|
3160
|
+
this.matchEmit(p + g);
|
|
3161
|
+
} else {
|
|
3162
|
+
let p = this.opts.posix ? i.relativePosix() : i.relative(), f = this.opts.dotRelative && !p.startsWith(".." + this.#i) ? "." + this.#i : "";
|
|
3163
|
+
this.matchEmit(p ? f + p + g : "." + g);
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
async match(i, p, f) {
|
|
3167
|
+
let g = await this.matchCheck(i, f);
|
|
3168
|
+
g && this.matchFinish(g, p);
|
|
3169
|
+
}
|
|
3170
|
+
matchSync(i, p, f) {
|
|
3171
|
+
let g = this.matchCheckSync(i, f);
|
|
3172
|
+
g && this.matchFinish(g, p);
|
|
3173
|
+
}
|
|
3174
|
+
walkCB(i, p, f) {
|
|
3175
|
+
this.signal?.aborted && f(), this.walkCB2(i, p, new Ui(this.opts), f);
|
|
3176
|
+
}
|
|
3177
|
+
walkCB2(i, p, f, g) {
|
|
3178
|
+
if (this.#r(i)) return g();
|
|
3179
|
+
if (this.signal?.aborted && g(), this.paused) return void this.onResume(()=>this.walkCB2(i, p, f, g));
|
|
3180
|
+
f.processPatterns(i, p);
|
|
3181
|
+
let y = 1, o = ()=>{
|
|
3182
|
+
0 === --y && g();
|
|
3183
|
+
};
|
|
3184
|
+
for (let [i, p, g] of f.matches.entries())this.#s(i) || (y++, this.match(i, p, g).then(()=>o()));
|
|
3185
|
+
for (let i of f.subwalkTargets()){
|
|
3186
|
+
if (1 / 0 !== this.maxDepth && i.depth() >= this.maxDepth) continue;
|
|
3187
|
+
y++;
|
|
3188
|
+
let p = i.readdirCached();
|
|
3189
|
+
i.calledReaddir() ? this.walkCB3(i, p, f, o) : i.readdirCB((p, g)=>this.walkCB3(i, g, f, o), !0);
|
|
3190
|
+
}
|
|
3191
|
+
o();
|
|
3192
|
+
}
|
|
3193
|
+
walkCB3(i, p, f, g) {
|
|
3194
|
+
f = f.filterEntries(i, p);
|
|
3195
|
+
let y = 1, o = ()=>{
|
|
3196
|
+
0 === --y && g();
|
|
3197
|
+
};
|
|
3198
|
+
for (let [i, p, g] of f.matches.entries())this.#s(i) || (y++, this.match(i, p, g).then(()=>o()));
|
|
3199
|
+
for (let [i, p] of f.subwalks.entries())y++, this.walkCB2(i, p, f.child(), o);
|
|
3200
|
+
o();
|
|
3201
|
+
}
|
|
3202
|
+
walkCBSync(i, p, f) {
|
|
3203
|
+
this.signal?.aborted && f(), this.walkCB2Sync(i, p, new Ui(this.opts), f);
|
|
3204
|
+
}
|
|
3205
|
+
walkCB2Sync(i, p, f, g) {
|
|
3206
|
+
if (this.#r(i)) return g();
|
|
3207
|
+
if (this.signal?.aborted && g(), this.paused) return void this.onResume(()=>this.walkCB2Sync(i, p, f, g));
|
|
3208
|
+
f.processPatterns(i, p);
|
|
3209
|
+
let y = 1, o = ()=>{
|
|
3210
|
+
0 === --y && g();
|
|
3211
|
+
};
|
|
3212
|
+
for (let [i, p, g] of f.matches.entries())this.#s(i) || this.matchSync(i, p, g);
|
|
3213
|
+
for (let i of f.subwalkTargets()){
|
|
3214
|
+
if (1 / 0 !== this.maxDepth && i.depth() >= this.maxDepth) continue;
|
|
3215
|
+
y++;
|
|
3216
|
+
let p = i.readdirSync();
|
|
3217
|
+
this.walkCB3Sync(i, p, f, o);
|
|
3218
|
+
}
|
|
3219
|
+
o();
|
|
3220
|
+
}
|
|
3221
|
+
walkCB3Sync(i, p, f, g) {
|
|
3222
|
+
f = f.filterEntries(i, p);
|
|
3223
|
+
let y = 1, o = ()=>{
|
|
3224
|
+
0 === --y && g();
|
|
3225
|
+
};
|
|
3226
|
+
for (let [i, p, g] of f.matches.entries())this.#s(i) || this.matchSync(i, p, g);
|
|
3227
|
+
for (let [i, p] of f.subwalks.entries())y++, this.walkCB2Sync(i, p, f.child(), o);
|
|
3228
|
+
o();
|
|
3229
|
+
}
|
|
3230
|
+
}, Gi = class extends Ii {
|
|
3231
|
+
matches = new Set;
|
|
3232
|
+
constructor(i, p, f){
|
|
3233
|
+
super(i, p, f);
|
|
3234
|
+
}
|
|
3235
|
+
matchEmit(i) {
|
|
3236
|
+
this.matches.add(i);
|
|
3237
|
+
}
|
|
3238
|
+
async walk() {
|
|
3239
|
+
if (this.signal?.aborted) throw this.signal.reason;
|
|
3240
|
+
return this.path.isUnknown() && await this.path.lstat(), await new Promise((i, p)=>{
|
|
3241
|
+
this.walkCB(this.path, this.patterns, ()=>{
|
|
3242
|
+
this.signal?.aborted ? p(this.signal.reason) : i(this.matches);
|
|
3243
|
+
});
|
|
3244
|
+
}), this.matches;
|
|
3245
|
+
}
|
|
3246
|
+
walkSync() {
|
|
3247
|
+
if (this.signal?.aborted) throw this.signal.reason;
|
|
3248
|
+
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, ()=>{
|
|
3249
|
+
if (this.signal?.aborted) throw this.signal.reason;
|
|
3250
|
+
}), this.matches;
|
|
3251
|
+
}
|
|
3252
|
+
}, qi = class extends Ii {
|
|
3253
|
+
results;
|
|
3254
|
+
constructor(i, p, f){
|
|
3255
|
+
super(i, p, f), this.results = new Re({
|
|
3256
|
+
signal: this.signal,
|
|
3257
|
+
objectMode: !0
|
|
3258
|
+
}), this.results.on("drain", ()=>this.resume()), this.results.on("resume", ()=>this.resume());
|
|
3259
|
+
}
|
|
3260
|
+
matchEmit(i) {
|
|
3261
|
+
this.results.write(i), this.results.flowing || this.pause();
|
|
3262
|
+
}
|
|
3263
|
+
stream() {
|
|
3264
|
+
let i = this.path;
|
|
3265
|
+
return i.isUnknown() ? i.lstat().then(()=>{
|
|
3266
|
+
this.walkCB(i, this.patterns, ()=>this.results.end());
|
|
3267
|
+
}) : this.walkCB(i, this.patterns, ()=>this.results.end()), this.results;
|
|
3268
|
+
}
|
|
3269
|
+
streamSync() {
|
|
3270
|
+
return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, ()=>this.results.end()), this.results;
|
|
3271
|
+
}
|
|
3272
|
+
};
|
|
3273
|
+
var Hi = "object" == typeof process && process && "string" == typeof process.platform ? process.platform : "linux", Zi = class {
|
|
3274
|
+
absolute;
|
|
3275
|
+
cwd;
|
|
3276
|
+
root;
|
|
3277
|
+
dot;
|
|
3278
|
+
dotRelative;
|
|
3279
|
+
follow;
|
|
3280
|
+
ignore;
|
|
3281
|
+
magicalBraces;
|
|
3282
|
+
mark;
|
|
3283
|
+
matchBase;
|
|
3284
|
+
maxDepth;
|
|
3285
|
+
nobrace;
|
|
3286
|
+
nocase;
|
|
3287
|
+
nodir;
|
|
3288
|
+
noext;
|
|
3289
|
+
noglobstar;
|
|
3290
|
+
pattern;
|
|
3291
|
+
platform;
|
|
3292
|
+
realpath;
|
|
3293
|
+
scurry;
|
|
3294
|
+
stat;
|
|
3295
|
+
signal;
|
|
3296
|
+
windowsPathsNoEscape;
|
|
3297
|
+
withFileTypes;
|
|
3298
|
+
includeChildMatches;
|
|
3299
|
+
opts;
|
|
3300
|
+
patterns;
|
|
3301
|
+
constructor(i, p){
|
|
3302
|
+
if (!p) throw new TypeError("glob options required");
|
|
3303
|
+
if (this.withFileTypes = !!p.withFileTypes, this.signal = p.signal, this.follow = !!p.follow, this.dot = !!p.dot, this.dotRelative = !!p.dotRelative, this.nodir = !!p.nodir, this.mark = !!p.mark, p.cwd ? (p.cwd instanceof URL || p.cwd.startsWith("file://")) && (p.cwd = (0, y.fileURLToPath)(p.cwd)) : this.cwd = "", this.cwd = p.cwd || "", this.root = p.root, this.magicalBraces = !!p.magicalBraces, this.nobrace = !!p.nobrace, this.noext = !!p.noext, this.realpath = !!p.realpath, this.absolute = p.absolute, this.includeChildMatches = !1 !== p.includeChildMatches, this.noglobstar = !!p.noglobstar, this.matchBase = !!p.matchBase, this.maxDepth = "number" == typeof p.maxDepth ? p.maxDepth : 1 / 0, this.stat = !!p.stat, this.ignore = p.ignore, this.withFileTypes && void 0 !== this.absolute) throw new Error("cannot set absolute and withFileTypes:true");
|
|
3304
|
+
if ("string" == typeof i && (i = [
|
|
3305
|
+
i
|
|
3306
|
+
]), this.windowsPathsNoEscape = !!p.windowsPathsNoEscape || !1 === p.allowWindowsEscape, this.windowsPathsNoEscape && (i = i.map((i)=>i.replace(/\\/g, "/"))), this.matchBase) {
|
|
3307
|
+
if (p.noglobstar) throw new TypeError("base matching requires globstar");
|
|
3308
|
+
i = i.map((i)=>i.includes("/") ? i : `./**/${i}`);
|
|
3309
|
+
}
|
|
3310
|
+
if (this.pattern = i, this.platform = p.platform || Hi, this.opts = {
|
|
3311
|
+
...p,
|
|
3312
|
+
platform: this.platform
|
|
3313
|
+
}, p.scurry) {
|
|
3314
|
+
if (this.scurry = p.scurry, void 0 !== p.nocase && p.nocase !== p.scurry.nocase) throw new Error("nocase option contradicts provided scurry option");
|
|
3315
|
+
} else {
|
|
3316
|
+
let i = "win32" === p.platform ? Ci : "darwin" === p.platform ? Ai : p.platform ? Oi : Fi;
|
|
3317
|
+
this.scurry = new i(this.cwd, {
|
|
3318
|
+
nocase: p.nocase,
|
|
3319
|
+
fs: p.fs
|
|
3320
|
+
});
|
|
3321
|
+
}
|
|
3322
|
+
this.nocase = this.scurry.nocase;
|
|
3323
|
+
let f = "darwin" === this.platform || "win32" === this.platform, g = {
|
|
3324
|
+
braceExpandMax: 1e4,
|
|
3325
|
+
...p,
|
|
3326
|
+
dot: this.dot,
|
|
3327
|
+
matchBase: this.matchBase,
|
|
3328
|
+
nobrace: this.nobrace,
|
|
3329
|
+
nocase: this.nocase,
|
|
3330
|
+
nocaseMagicOnly: f,
|
|
3331
|
+
nocomment: !0,
|
|
3332
|
+
noext: this.noext,
|
|
3333
|
+
nonegate: !0,
|
|
3334
|
+
optimizationLevel: 2,
|
|
3335
|
+
platform: this.platform,
|
|
3336
|
+
windowsPathsNoEscape: this.windowsPathsNoEscape,
|
|
3337
|
+
debug: !!this.opts.debug
|
|
3338
|
+
}, b = this.pattern.map((i)=>new Ct(i, g)), [v, S] = b.reduce((i, p)=>(i[0].push(...p.set), i[1].push(...p.globParts), i), [
|
|
3339
|
+
[],
|
|
3340
|
+
[]
|
|
3341
|
+
]);
|
|
3342
|
+
this.patterns = v.map((i, p)=>{
|
|
3343
|
+
let f = S[p];
|
|
3344
|
+
if (!f) throw new Error("invalid pattern object");
|
|
3345
|
+
return new Wi(i, f, 0, this.platform);
|
|
3346
|
+
});
|
|
3347
|
+
}
|
|
3348
|
+
async walk() {
|
|
3349
|
+
return [
|
|
3350
|
+
...await new Gi(this.patterns, this.scurry.cwd, {
|
|
3351
|
+
...this.opts,
|
|
3352
|
+
maxDepth: 1 / 0 !== this.maxDepth ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3353
|
+
platform: this.platform,
|
|
3354
|
+
nocase: this.nocase,
|
|
3355
|
+
includeChildMatches: this.includeChildMatches
|
|
3356
|
+
}).walk()
|
|
3357
|
+
];
|
|
3358
|
+
}
|
|
3359
|
+
walkSync() {
|
|
3360
|
+
return [
|
|
3361
|
+
...new Gi(this.patterns, this.scurry.cwd, {
|
|
3362
|
+
...this.opts,
|
|
3363
|
+
maxDepth: 1 / 0 !== this.maxDepth ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3364
|
+
platform: this.platform,
|
|
3365
|
+
nocase: this.nocase,
|
|
3366
|
+
includeChildMatches: this.includeChildMatches
|
|
3367
|
+
}).walkSync()
|
|
3368
|
+
];
|
|
3369
|
+
}
|
|
3370
|
+
stream() {
|
|
3371
|
+
return new qi(this.patterns, this.scurry.cwd, {
|
|
3372
|
+
...this.opts,
|
|
3373
|
+
maxDepth: 1 / 0 !== this.maxDepth ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3374
|
+
platform: this.platform,
|
|
3375
|
+
nocase: this.nocase,
|
|
3376
|
+
includeChildMatches: this.includeChildMatches
|
|
3377
|
+
}).stream();
|
|
3378
|
+
}
|
|
3379
|
+
streamSync() {
|
|
3380
|
+
return new qi(this.patterns, this.scurry.cwd, {
|
|
3381
|
+
...this.opts,
|
|
3382
|
+
maxDepth: 1 / 0 !== this.maxDepth ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3383
|
+
platform: this.platform,
|
|
3384
|
+
nocase: this.nocase,
|
|
3385
|
+
includeChildMatches: this.includeChildMatches
|
|
3386
|
+
}).streamSync();
|
|
3387
|
+
}
|
|
3388
|
+
iterateSync() {
|
|
3389
|
+
return this.streamSync()[Symbol.iterator]();
|
|
3390
|
+
}
|
|
3391
|
+
[Symbol.iterator]() {
|
|
3392
|
+
return this.iterateSync();
|
|
3393
|
+
}
|
|
3394
|
+
iterate() {
|
|
3395
|
+
return this.stream()[Symbol.asyncIterator]();
|
|
3396
|
+
}
|
|
3397
|
+
[Symbol.asyncIterator]() {
|
|
3398
|
+
return this.iterate();
|
|
3399
|
+
}
|
|
3400
|
+
};
|
|
3401
|
+
var le = (i, p = {})=>{
|
|
3402
|
+
Array.isArray(i) || (i = [
|
|
3403
|
+
i
|
|
3404
|
+
]);
|
|
3405
|
+
for (let f of i)if (new Ct(f, p).hasMagic()) return !0;
|
|
3406
|
+
return !1;
|
|
3407
|
+
};
|
|
3408
|
+
function Bt(i, p = {}) {
|
|
3409
|
+
return new Zi(i, p).streamSync();
|
|
3410
|
+
}
|
|
3411
|
+
function Qe(i, p = {}) {
|
|
3412
|
+
return new Zi(i, p).stream();
|
|
3413
|
+
}
|
|
3414
|
+
function ts(i, p = {}) {
|
|
3415
|
+
return new Zi(i, p).walkSync();
|
|
3416
|
+
}
|
|
3417
|
+
async function Je(i, p = {}) {
|
|
3418
|
+
return new Zi(i, p).walk();
|
|
3419
|
+
}
|
|
3420
|
+
function Ut(i, p = {}) {
|
|
3421
|
+
return new Zi(i, p).iterateSync();
|
|
3422
|
+
}
|
|
3423
|
+
function es(i, p = {}) {
|
|
3424
|
+
return new Zi(i, p).iterate();
|
|
3425
|
+
}
|
|
3426
|
+
var Ji = Bt, Qi = Object.assign(Qe, {
|
|
3427
|
+
sync: Bt
|
|
3428
|
+
}), Ki = Ut, Vi = Object.assign(es, {
|
|
3429
|
+
sync: Ut
|
|
3430
|
+
}), Yi = Object.assign(ts, {
|
|
3431
|
+
stream: Bt,
|
|
3432
|
+
iterate: Ut
|
|
3433
|
+
}), Xi = Object.assign(Je, {
|
|
3434
|
+
glob: Je,
|
|
3435
|
+
globSync: ts,
|
|
3436
|
+
sync: Yi,
|
|
3437
|
+
globStream: Qe,
|
|
3438
|
+
stream: Qi,
|
|
3439
|
+
globStreamSync: Bt,
|
|
3440
|
+
streamSync: Ji,
|
|
3441
|
+
globIterate: es,
|
|
3442
|
+
iterate: Vi,
|
|
3443
|
+
globIterateSync: Ut,
|
|
3444
|
+
iterateSync: Ki,
|
|
3445
|
+
Glob: Zi,
|
|
3446
|
+
hasMagic: le,
|
|
3447
|
+
escape: tt,
|
|
3448
|
+
unescape: W
|
|
3449
|
+
});
|
|
3450
|
+
Xi.glob = Xi;
|
|
3451
|
+
var is = g.fo;
|
|
3452
|
+
var rs = g.Nt;
|
|
3453
|
+
var hs = g.ih;
|
|
3454
|
+
var ns = g.TI;
|
|
3455
|
+
var os = g.nk;
|
|
3456
|
+
var as = g.ue;
|
|
3457
|
+
var ls = g.lj;
|
|
3458
|
+
var cs = g.CK;
|
|
3459
|
+
var us = g.AZ;
|
|
3460
|
+
var fs = g.qt;
|
|
3461
|
+
var ds = g.nl;
|
|
3462
|
+
var vs = g.qD;
|
|
3463
|
+
var Ss = g.Td;
|
|
3464
|
+
var xs = g.Qo;
|
|
3465
|
+
var Cs = g.OH;
|
|
3466
|
+
var As = g.x4;
|
|
3467
|
+
export { is as Glob, rs as Ignore, hs as escape, ns as glob, os as globIterate, as as globIterateSync, ls as globStream, cs as globStreamSync, us as globSync, fs as hasMagic, ds as iterate, vs as iterateSync, Ss as stream, xs as streamSync, Cs as sync, As as unescape };
|