@umijs/utils 3.5.20 → 4.0.0-beta.12
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/README.md +2 -0
- package/compiled/address/index.js +1 -0
- package/compiled/address/lib/address.d.ts +28 -0
- package/compiled/address/package.json +1 -0
- package/compiled/axios/LICENSE +19 -0
- package/compiled/axios/index.d.ts +206 -0
- package/compiled/axios/index.js +1 -0
- package/compiled/axios/package.json +1 -0
- package/compiled/chalk/LICENSE +9 -0
- package/compiled/chalk/index.d.ts +415 -0
- package/compiled/chalk/index.js +1 -0
- package/compiled/chalk/package.json +1 -0
- package/compiled/cheerio/LICENSE +21 -0
- package/compiled/cheerio/domelementtype/lib/index.d.ts +48 -0
- package/compiled/cheerio/domhandler/lib/index.d.ts +85 -0
- package/compiled/cheerio/domhandler/lib/node.d.ts +169 -0
- package/compiled/cheerio/htmlparser2/lib/Parser.d.ts +159 -0
- package/compiled/cheerio/htmlparser2/lib/Tokenizer.d.ts +182 -0
- package/compiled/cheerio/htmlparser2/lib/index.d.ts +39 -0
- package/compiled/cheerio/index.js +16 -0
- package/compiled/cheerio/lib/api/attributes.d.ts +317 -0
- package/compiled/cheerio/lib/api/css.d.ts +41 -0
- package/compiled/cheerio/lib/api/forms.d.ts +31 -0
- package/compiled/cheerio/lib/api/manipulation.d.ts +496 -0
- package/compiled/cheerio/lib/api/traversing.d.ts +644 -0
- package/compiled/cheerio/lib/cheerio.d.ts +53 -0
- package/compiled/cheerio/lib/index.d.ts +91 -0
- package/compiled/cheerio/lib/load.d.ts +73 -0
- package/compiled/cheerio/lib/options.d.ts +31 -0
- package/compiled/cheerio/lib/static.d.ts +88 -0
- package/compiled/cheerio/lib/types.d.ts +20 -0
- package/compiled/cheerio/package.json +1 -0
- package/compiled/color/LICENSE +21 -0
- package/compiled/color/color-convert/conversions.d.ts +149 -0
- package/compiled/color/color-convert/index.d.ts +128 -0
- package/compiled/color/color-convert/route.d.ts +294 -0
- package/compiled/color/color-name/index.d.ts +161 -0
- package/compiled/color/index.d.ts +137 -0
- package/compiled/color/index.js +1 -0
- package/compiled/color/package.json +1 -0
- package/compiled/cross-spawn/LICENSE +21 -0
- package/compiled/cross-spawn/index.d.ts +36 -0
- package/compiled/cross-spawn/index.js +1 -0
- package/compiled/cross-spawn/package.json +1 -0
- package/compiled/debug/LICENSE +20 -0
- package/compiled/debug/index.d.ts +54 -0
- package/compiled/debug/index.js +1 -0
- package/compiled/debug/ms/index.d.ts +25 -0
- package/compiled/debug/package.json +1 -0
- package/compiled/deepmerge/index.d.ts +16 -0
- package/compiled/deepmerge/index.js +1 -0
- package/compiled/deepmerge/package.json +1 -0
- package/compiled/execa/LICENSE +9 -0
- package/compiled/execa/index.d.ts +564 -0
- package/compiled/execa/index.js +1 -0
- package/compiled/execa/package.json +1 -0
- package/compiled/fs-extra/LICENSE +15 -0
- package/compiled/fs-extra/index.d.ts +332 -0
- package/compiled/fs-extra/index.js +1 -0
- package/compiled/fs-extra/package.json +1 -0
- package/compiled/glob/LICENSE +21 -0
- package/compiled/glob/index.d.ts +89 -0
- package/compiled/glob/index.js +1 -0
- package/compiled/glob/minimatch/index.d.ts +204 -0
- package/compiled/glob/package.json +1 -0
- package/compiled/import-lazy/LICENSE +9 -0
- package/compiled/import-lazy/index.d.ts +26 -0
- package/compiled/import-lazy/index.js +1 -0
- package/compiled/import-lazy/package.json +1 -0
- package/compiled/lodash/LICENSE +47 -0
- package/compiled/lodash/common/array.d.ts +2126 -0
- package/compiled/lodash/common/collection.d.ts +1930 -0
- package/compiled/lodash/common/common.d.ts +280 -0
- package/compiled/lodash/common/date.d.ts +23 -0
- package/compiled/lodash/common/function.d.ts +1430 -0
- package/compiled/lodash/common/lang.d.ts +1692 -0
- package/compiled/lodash/common/math.d.ts +405 -0
- package/compiled/lodash/common/number.d.ts +131 -0
- package/compiled/lodash/common/object.d.ts +2519 -0
- package/compiled/lodash/common/seq.d.ts +210 -0
- package/compiled/lodash/common/string.d.ts +788 -0
- package/compiled/lodash/common/util.d.ts +1219 -0
- package/compiled/lodash/index.d.ts +46 -0
- package/compiled/lodash/index.js +9 -0
- package/compiled/lodash/package.json +1 -0
- package/compiled/mustache/LICENSE +11 -0
- package/compiled/mustache/index.d.ts +437 -0
- package/compiled/mustache/index.js +5 -0
- package/compiled/mustache/package.json +1 -0
- package/compiled/pkg-up/LICENSE +9 -0
- package/compiled/pkg-up/index.d.ts +48 -0
- package/compiled/pkg-up/index.js +1 -0
- package/compiled/pkg-up/package.json +1 -0
- package/compiled/portfinder/LICENSE +22 -0
- package/compiled/portfinder/index.js +1 -0
- package/compiled/portfinder/lib/portfinder.d.ts +47 -0
- package/compiled/portfinder/package.json +1 -0
- package/compiled/prettier/LICENSE +7 -0
- package/compiled/prettier/index.d.ts +756 -0
- package/compiled/prettier/index.js +263 -0
- package/compiled/prettier/package.json +1 -0
- package/compiled/prompts/LICENSE +21 -0
- package/compiled/prompts/index.d.ts +120 -0
- package/compiled/prompts/index.js +1 -0
- package/compiled/prompts/package.json +1 -0
- package/compiled/resolve/LICENSE +21 -0
- package/compiled/resolve/index.d.ts +166 -0
- package/compiled/resolve/index.js +1 -0
- package/compiled/resolve/package.json +1 -0
- package/compiled/rimraf/LICENSE +15 -0
- package/compiled/rimraf/glob/index.d.ts +89 -0
- package/compiled/rimraf/index.d.ts +49 -0
- package/compiled/rimraf/index.js +1 -0
- package/compiled/rimraf/minimatch/index.d.ts +204 -0
- package/compiled/rimraf/package.json +1 -0
- package/compiled/semver/LICENSE +15 -0
- package/compiled/semver/classes/comparator.d.ts +17 -0
- package/compiled/semver/classes/range.d.ts +21 -0
- package/compiled/semver/classes/semver.d.ts +62 -0
- package/compiled/semver/functions/clean.d.ts +8 -0
- package/compiled/semver/functions/cmp.d.ts +16 -0
- package/compiled/semver/functions/coerce.d.ts +12 -0
- package/compiled/semver/functions/compare-build.d.ts +16 -0
- package/compiled/semver/functions/compare-loose.d.ts +5 -0
- package/compiled/semver/functions/compare.d.ts +20 -0
- package/compiled/semver/functions/diff.d.ts +13 -0
- package/compiled/semver/functions/eq.d.ts +9 -0
- package/compiled/semver/functions/gt.d.ts +9 -0
- package/compiled/semver/functions/gte.d.ts +9 -0
- package/compiled/semver/functions/inc.d.ts +15 -0
- package/compiled/semver/functions/lt.d.ts +9 -0
- package/compiled/semver/functions/lte.d.ts +8 -0
- package/compiled/semver/functions/major.d.ts +9 -0
- package/compiled/semver/functions/minor.d.ts +9 -0
- package/compiled/semver/functions/neq.d.ts +9 -0
- package/compiled/semver/functions/parse.d.ts +12 -0
- package/compiled/semver/functions/patch.d.ts +9 -0
- package/compiled/semver/functions/prerelease.d.ts +12 -0
- package/compiled/semver/functions/rcompare.d.ts +15 -0
- package/compiled/semver/functions/rsort.d.ts +9 -0
- package/compiled/semver/functions/satisfies.d.ts +14 -0
- package/compiled/semver/functions/sort.d.ts +9 -0
- package/compiled/semver/functions/valid.d.ts +11 -0
- package/compiled/semver/index.d.ts +133 -0
- package/compiled/semver/index.js +1 -0
- package/compiled/semver/internals/identifiers.d.ts +13 -0
- package/compiled/semver/package.json +1 -0
- package/compiled/semver/ranges/gtr.d.ts +14 -0
- package/compiled/semver/ranges/intersects.d.ts +13 -0
- package/compiled/semver/ranges/ltr.d.ts +14 -0
- package/compiled/semver/ranges/max-satisfying.d.ts +14 -0
- package/compiled/semver/ranges/min-satisfying.d.ts +14 -0
- package/compiled/semver/ranges/min-version.d.ts +10 -0
- package/compiled/semver/ranges/outside.d.ts +15 -0
- package/compiled/semver/ranges/simplify.d.ts +14 -0
- package/compiled/semver/ranges/subset.d.ts +13 -0
- package/compiled/semver/ranges/to-comparators.d.ts +9 -0
- package/compiled/semver/ranges/valid.d.ts +12 -0
- package/compiled/strip-ansi/LICENSE +9 -0
- package/compiled/strip-ansi/index.d.ts +17 -0
- package/compiled/strip-ansi/index.js +1 -0
- package/compiled/strip-ansi/package.json +1 -0
- package/compiled/yargs-parser/index.d.ts +112 -0
- package/compiled/yargs-parser/index.js +1 -0
- package/compiled/yargs-parser/package.json +1 -0
- package/dist/BaseGenerator/BaseGenerator.d.ts +18 -0
- package/dist/BaseGenerator/BaseGenerator.js +58 -0
- package/dist/BaseGenerator/generateFile.d.ts +8 -0
- package/dist/BaseGenerator/generateFile.js +25 -0
- package/{lib → dist}/Generator/Generator.d.ts +3 -3
- package/dist/Generator/Generator.js +74 -0
- package/dist/importLazy.d.ts +6 -0
- package/dist/importLazy.js +17 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +88 -0
- package/dist/installDeps.d.ts +9 -0
- package/dist/installDeps.js +39 -0
- package/dist/logger.d.ts +14 -0
- package/dist/logger.js +39 -0
- package/dist/npmClient.d.ts +15 -0
- package/dist/npmClient.js +43 -0
- package/dist/randomColor/randomColor.d.ts +6 -0
- package/dist/randomColor/randomColor.js +19 -0
- package/dist/register.d.ts +6 -0
- package/dist/register.js +48 -0
- package/dist/updatePackageJSON.d.ts +5 -0
- package/dist/updatePackageJSON.js +21 -0
- package/dist/winPath.d.ts +1 -0
- package/dist/winPath.js +11 -0
- package/package.json +102 -18
- package/lib/BabelRegister/BabelRegister.d.ts +0 -9
- package/lib/BabelRegister/BabelRegister.js +0 -66
- package/lib/Generator/Generator.js +0 -120
- package/lib/cheerio/cheerio.d.ts +0 -2
- package/lib/cheerio/cheerio.js +0 -37
- package/lib/cleanRequireCache/cleanRequireCache.d.ts +0 -1
- package/lib/cleanRequireCache/cleanRequireCache.js +0 -40
- package/lib/compatESModuleRequire/compatESModuleRequire.d.ts +0 -7
- package/lib/compatESModuleRequire/compatESModuleRequire.js +0 -22
- package/lib/delay/delay.d.ts +0 -1
- package/lib/delay/delay.js +0 -22
- package/lib/getFile/getFile.d.ts +0 -22
- package/lib/getFile/getFile.js +0 -85
- package/lib/index.d.ts +0 -66
- package/lib/index.js +0 -619
- package/lib/isLernaPackage/isLernaPackage.d.ts +0 -1
- package/lib/isLernaPackage/isLernaPackage.js +0 -42
- package/lib/mergeConfig/mergeConfig.d.ts +0 -8
- package/lib/mergeConfig/mergeConfig.js +0 -42
- package/lib/parseRequireDeps/parseRequireDeps.d.ts +0 -1
- package/lib/parseRequireDeps/parseRequireDeps.js +0 -98
- package/lib/randomColor/randomColor.d.ts +0 -6
- package/lib/randomColor/randomColor.js +0 -42
- package/lib/routes.d.ts +0 -11
- package/lib/routes.js +0 -53
- package/lib/ssr.d.ts +0 -12
- package/lib/ssr.js +0 -41
- package/lib/types.d.ts +0 -7
- package/lib/types.js +0 -17
- package/lib/winEOL/winEOL.d.ts +0 -7
- package/lib/winEOL/winEOL.js +0 -39
- package/lib/winPath/winPath.d.ts +0 -1
- package/lib/winPath/winPath.js +0 -28
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// Type definitions for Glob 7.1
|
|
2
|
+
// Project: https://github.com/isaacs/node-glob
|
|
3
|
+
// Definitions by: vvakame <https://github.com/vvakame>
|
|
4
|
+
// voy <https://github.com/voy>
|
|
5
|
+
// Klaus Meinhardt <https://github.com/ajafff>
|
|
6
|
+
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
7
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
8
|
+
|
|
9
|
+
/// <reference types="node" />
|
|
10
|
+
|
|
11
|
+
import events = require('events');
|
|
12
|
+
import minimatch = require('../minimatch');
|
|
13
|
+
|
|
14
|
+
declare function G(pattern: string, cb: (err: Error | null, matches: string[]) => void): G.IGlob;
|
|
15
|
+
declare function G(pattern: string, options: G.IOptions, cb: (err: Error | null, matches: string[]) => void): G.IGlob;
|
|
16
|
+
|
|
17
|
+
declare namespace G {
|
|
18
|
+
function __promisify__(pattern: string, options?: IOptions): Promise<string[]>;
|
|
19
|
+
|
|
20
|
+
function sync(pattern: string, options?: IOptions): string[];
|
|
21
|
+
|
|
22
|
+
function hasMagic(pattern: string, options?: IOptions): boolean;
|
|
23
|
+
|
|
24
|
+
let glob: typeof G;
|
|
25
|
+
let Glob: IGlobStatic;
|
|
26
|
+
let GlobSync: IGlobSyncStatic;
|
|
27
|
+
|
|
28
|
+
interface IOptions extends minimatch.IOptions {
|
|
29
|
+
cwd?: string | undefined;
|
|
30
|
+
root?: string | undefined;
|
|
31
|
+
dot?: boolean | undefined;
|
|
32
|
+
nomount?: boolean | undefined;
|
|
33
|
+
mark?: boolean | undefined;
|
|
34
|
+
nosort?: boolean | undefined;
|
|
35
|
+
stat?: boolean | undefined;
|
|
36
|
+
silent?: boolean | undefined;
|
|
37
|
+
strict?: boolean | undefined;
|
|
38
|
+
cache?: { [path: string]: boolean | 'DIR' | 'FILE' | ReadonlyArray<string> } | undefined;
|
|
39
|
+
statCache?: { [path: string]: false | { isDirectory(): boolean} | undefined } | undefined;
|
|
40
|
+
symlinks?: { [path: string]: boolean | undefined } | undefined;
|
|
41
|
+
realpathCache?: { [path: string]: string } | undefined;
|
|
42
|
+
sync?: boolean | undefined;
|
|
43
|
+
nounique?: boolean | undefined;
|
|
44
|
+
nonull?: boolean | undefined;
|
|
45
|
+
debug?: boolean | undefined;
|
|
46
|
+
nobrace?: boolean | undefined;
|
|
47
|
+
noglobstar?: boolean | undefined;
|
|
48
|
+
noext?: boolean | undefined;
|
|
49
|
+
nocase?: boolean | undefined;
|
|
50
|
+
matchBase?: any;
|
|
51
|
+
nodir?: boolean | undefined;
|
|
52
|
+
ignore?: string | ReadonlyArray<string> | undefined;
|
|
53
|
+
follow?: boolean | undefined;
|
|
54
|
+
realpath?: boolean | undefined;
|
|
55
|
+
nonegate?: boolean | undefined;
|
|
56
|
+
nocomment?: boolean | undefined;
|
|
57
|
+
absolute?: boolean | undefined;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface IGlobStatic extends events.EventEmitter {
|
|
61
|
+
new (pattern: string, cb?: (err: Error | null, matches: string[]) => void): IGlob;
|
|
62
|
+
new (pattern: string, options: IOptions, cb?: (err: Error | null, matches: string[]) => void): IGlob;
|
|
63
|
+
prototype: IGlob;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface IGlobSyncStatic {
|
|
67
|
+
new (pattern: string, options?: IOptions): IGlobBase;
|
|
68
|
+
prototype: IGlobBase;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface IGlobBase {
|
|
72
|
+
minimatch: minimatch.IMinimatch;
|
|
73
|
+
options: IOptions;
|
|
74
|
+
aborted: boolean;
|
|
75
|
+
cache: { [path: string]: boolean | 'DIR' | 'FILE' | ReadonlyArray<string> };
|
|
76
|
+
statCache: { [path: string]: false | { isDirectory(): boolean; } | undefined };
|
|
77
|
+
symlinks: { [path: string]: boolean | undefined };
|
|
78
|
+
realpathCache: { [path: string]: string };
|
|
79
|
+
found: string[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface IGlob extends IGlobBase, events.EventEmitter {
|
|
83
|
+
pause(): void;
|
|
84
|
+
resume(): void;
|
|
85
|
+
abort(): void;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export = G;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Type definitions for rimraf 3.0
|
|
2
|
+
// Project: https://github.com/isaacs/rimraf
|
|
3
|
+
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
|
|
4
|
+
// e-cloud <https://github.com/e-cloud>
|
|
5
|
+
// Ruben Schmidmeister <https://github.com/bash>
|
|
6
|
+
// Oganexon <https://github.com/oganexon>
|
|
7
|
+
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
8
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
9
|
+
|
|
10
|
+
/// <reference types="node" />
|
|
11
|
+
|
|
12
|
+
import glob = require('./glob');
|
|
13
|
+
import fs = require('fs');
|
|
14
|
+
|
|
15
|
+
declare function rimraf(path: string, options: rimraf.Options, callback: (error: Error | null | undefined) => void): void;
|
|
16
|
+
declare function rimraf(path: string, callback: (error: Error | null | undefined) => void): void;
|
|
17
|
+
declare namespace rimraf {
|
|
18
|
+
/**
|
|
19
|
+
* It can remove stuff synchronously, too.
|
|
20
|
+
* But that's not so good. Use the async API.
|
|
21
|
+
* It's better.
|
|
22
|
+
*/
|
|
23
|
+
function sync(path: string, options?: Options): void;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* see {@link https://github.com/isaacs/rimraf/blob/79b933fb362b2c51bedfa448be848e1d7ed32d7e/README.md#options}
|
|
27
|
+
*/
|
|
28
|
+
interface Options {
|
|
29
|
+
maxBusyTries?: number | undefined;
|
|
30
|
+
emfileWait?: number | undefined;
|
|
31
|
+
/** @default false */
|
|
32
|
+
disableGlob?: boolean | undefined;
|
|
33
|
+
glob?: glob.IOptions | false | undefined;
|
|
34
|
+
|
|
35
|
+
unlink?: typeof fs.unlink | undefined;
|
|
36
|
+
chmod?: typeof fs.chmod | undefined;
|
|
37
|
+
stat?: typeof fs.stat | undefined;
|
|
38
|
+
lstat?: typeof fs.lstat | undefined;
|
|
39
|
+
rmdir?: typeof fs.rmdir | undefined;
|
|
40
|
+
readdir?: typeof fs.readdir | undefined;
|
|
41
|
+
unlinkSync?: typeof fs.unlinkSync | undefined;
|
|
42
|
+
chmodSync?: typeof fs.chmodSync | undefined;
|
|
43
|
+
statSync?: typeof fs.statSync | undefined;
|
|
44
|
+
lstatSync?: typeof fs.lstatSync | undefined;
|
|
45
|
+
rmdirSync?: typeof fs.rmdirSync | undefined;
|
|
46
|
+
readdirSync?: typeof fs.readdirSync | undefined;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export = rimraf;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){var t={895:function(t){"use strict";t.exports=balanced;function balanced(t,e,r){if(t instanceof RegExp)t=maybeMatch(t,r);if(e instanceof RegExp)e=maybeMatch(e,r);var i=range(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function maybeMatch(t,e){var r=e.match(t);return r?r[0]:null}balanced.range=range;function range(t,e,r){var i,n,a,s,o;var c=r.indexOf(t);var l=r.indexOf(e,c+1);var h=c;if(c>=0&&l>0){if(t===e){return[c,l]}i=[];a=r.length;while(h>=0&&!o){if(h==c){i.push(h);c=r.indexOf(t,h+1)}else if(i.length==1){o=[i.pop(),l]}else{n=i.pop();if(n<a){a=n;s=l}l=r.indexOf(e,h+1)}h=c<l&&c>=0?c:l}if(i.length){o=[a,s]}}return o}},793:function(t,e,r){var i=r(551);var n=r(895);t.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(a).split("\\{").join(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(t){return t.split(a).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var r=n("{","}",t);if(!r)return t.split(",");var i=r.pre;var a=r.body;var s=r.post;var o=i.split(",");o[o.length-1]+="{"+a+"}";var c=parseCommaParts(s);if(s.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}e.push.apply(e,o);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var a=n("{","}",t);if(!a||/\$$/.test(a.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var l=s||c;var h=a.body.indexOf(",")>=0;if(!l&&!h){if(a.post.match(/,.*\}/)){t=a.pre+"{"+a.body+o+a.post;return expand(t)}return[t]}var u;if(l){u=a.body.split(/\.\./)}else{u=parseCommaParts(a.body);if(u.length===1){u=expand(u[0],false).map(embrace);if(u.length===1){var p=a.post.length?expand(a.post,false):[""];return p.map((function(t){return a.pre+u[0]+t}))}}}var v=a.pre;var p=a.post.length?expand(a.post,false):[""];var d;if(l){var m=numeric(u[0]);var b=numeric(u[1]);var g=Math.max(u[0].length,u[1].length);var y=u.length==3?Math.abs(numeric(u[2])):1;var E=lte;var _=b<m;if(_){y*=-1;E=gte}var w=u.some(isPadded);d=[];for(var k=m;E(k,b);k+=y){var S;if(c){S=String.fromCharCode(k);if(S==="\\")S=""}else{S=String(k);if(w){var O=g-S.length;if(O>0){var x=new Array(O+1).join("0");if(k<0)S="-"+x+S.slice(1);else S=x+S}}}d.push(S)}}else{d=i(u,(function(t){return expand(t,false)}))}for(var A=0;A<d.length;A++){for(var G=0;G<p.length;G++){var j=v+d[A]+p[G];if(!e||l||j)r.push(j)}}return r}},551:function(t){t.exports=function(t,r){var i=[];for(var n=0;n<t.length;n++){var a=r(t[n],n);if(e(a))i.push.apply(i,a);else i.push(a)}return i};var e=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}},899:function(t,e,r){t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(747);var n=i.realpath;var a=i.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var c=r(538);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,r){if(o){return n(t,e,r)}if(typeof e==="function"){r=e;e=null}n(t,e,(function(i,n){if(newError(i)){c.realpath(t,e,r)}else{r(i,n)}}))}function realpathSync(t,e){if(o){return a(t,e)}try{return a(t,e)}catch(r){if(newError(r)){return c.realpathSync(t,e)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=a}},538:function(t,e,r){var i=r(622);var n=process.platform==="win32";var a=r(747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(s){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var o=i.normalize;if(n){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var r=t,s={},o={};var h;var u;var p;var v;start();function start(){var e=l.exec(t);h=e[0].length;u=e[0];p=e[0];v="";if(n&&!o[p]){a.lstatSync(p);o[p]=true}}while(h<t.length){c.lastIndex=h;var d=c.exec(t);v=u;u+=d[0];p=v+d[1];h=c.lastIndex;if(o[p]||e&&e[p]===p){continue}var m;if(e&&Object.prototype.hasOwnProperty.call(e,p)){m=e[p]}else{var b=a.lstatSync(p);if(!b.isSymbolicLink()){o[p]=true;if(e)e[p]=p;continue}var g=null;if(!n){var y=b.dev.toString(32)+":"+b.ino.toString(32);if(s.hasOwnProperty(y)){g=s[y]}}if(g===null){a.statSync(p);g=a.readlinkSync(p)}m=i.resolve(v,g);if(e)e[p]=m;if(!n)s[y]=g}t=i.resolve(m,t.slice(h));start()}if(e)e[r]=t;return t};e.realpath=function realpath(t,e,r){if(typeof r!=="function"){r=maybeCallback(e);e=null}t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return process.nextTick(r.bind(null,null,e[t]))}var s=t,o={},h={};var u;var p;var v;var d;start();function start(){var e=l.exec(t);u=e[0].length;p=e[0];v=e[0];d="";if(n&&!h[v]){a.lstat(v,(function(t){if(t)return r(t);h[v]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(u>=t.length){if(e)e[s]=t;return r(null,t)}c.lastIndex=u;var i=c.exec(t);d=p;p+=i[0];v=d+i[1];u=c.lastIndex;if(h[v]||e&&e[v]===v){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,v)){return gotResolvedLink(e[v])}return a.lstat(v,gotStat)}function gotStat(t,i){if(t)return r(t);if(!i.isSymbolicLink()){h[v]=true;if(e)e[v]=v;return process.nextTick(LOOP)}if(!n){var s=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],v)}}a.stat(v,(function(t){if(t)return r(t);a.readlink(v,(function(t,e){if(!n)o[s]=e;gotTarget(t,e)}))}))}function gotTarget(t,n,a){if(t)return r(t);var s=i.resolve(d,n);if(e)e[a]=s;gotResolvedLink(s)}function gotResolvedLink(e){t=i.resolve(e,t.slice(u));start()}}},374:function(t,e,r){e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var i=r(622);var n=r(707);var a=r(194);var s=n.Minimatch;function alphasort(t,e){return t.localeCompare(e,"en")}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new s(r,{dot:true})}return{matcher:new s(t,{dot:true}),gmatcher:e}}function setopts(t,e,r){if(!r)r={};if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!r.silent;t.pattern=e;t.strict=r.strict!==false;t.realpath=!!r.realpath;t.realpathCache=r.realpathCache||Object.create(null);t.follow=!!r.follow;t.dot=!!r.dot;t.mark=!!r.mark;t.nodir=!!r.nodir;if(t.nodir)t.mark=true;t.sync=!!r.sync;t.nounique=!!r.nounique;t.nonull=!!r.nonull;t.nosort=!!r.nosort;t.nocase=!!r.nocase;t.stat=!!r.stat;t.noprocess=!!r.noprocess;t.absolute=!!r.absolute;t.maxLength=r.maxLength||Infinity;t.cache=r.cache||Object.create(null);t.statCache=r.statCache||Object.create(null);t.symlinks=r.symlinks||Object.create(null);setupIgnores(t,r);t.changedCwd=false;var n=process.cwd();if(!ownProp(r,"cwd"))t.cwd=n;else{t.cwd=i.resolve(r.cwd);t.changedCwd=t.cwd!==n}t.root=r.root||i.resolve(t.cwd,"/");t.root=i.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=a(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;t.minimatch=new s(e,r);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var r=e?[]:Object.create(null);for(var i=0,n=t.matches.length;i<n;i++){var a=t.matches[i];if(!a||Object.keys(a).length===0){if(t.nonull){var s=t.minimatch.globSet[i];if(e)r.push(s);else r[s]=true}}else{var o=Object.keys(a);if(e)r.push.apply(r,o);else o.forEach((function(t){r[t]=true}))}}if(!e)r=Object.keys(r);if(!t.nosort)r=r.sort(alphasort);if(t.mark){for(var i=0;i<r.length;i++){r[i]=t._mark(r[i])}if(t.nodir){r=r.filter((function(e){var r=!/\/$/.test(e);var i=t.cache[e]||t.cache[makeAbs(t,e)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(t.ignore.length)r=r.filter((function(e){return!isIgnored(t,e)}));t.found=r}function mark(t,e){var r=makeAbs(t,e);var i=t.cache[r];var n=e;if(i){var a=i==="DIR"||Array.isArray(i);var s=e.slice(-1)==="/";if(a&&!s)n+="/";else if(!a&&s)n=n.slice(0,-1);if(n!==e){var o=makeAbs(t,n);t.statCache[o]=t.statCache[r];t.cache[o]=t.cache[r]}}return n}function makeAbs(t,e){var r=e;if(e.charAt(0)==="/"){r=i.join(t.root,e)}else if(a(e)||e===""){r=e}else if(t.changedCwd){r=i.resolve(t.cwd,e)}else{r=i.resolve(e)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}))}function childrenIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}))}},938:function(t,e,r){t.exports=glob;var i=r(747);var n=r(899);var a=r(707);var s=a.Minimatch;var o=r(97);var c=r(614).EventEmitter;var l=r(622);var h=r(357);var u=r(194);var p=r(935);var v=r(374);var d=v.setopts;var m=v.ownProp;var b=r(854);var g=r(669);var y=v.childrenIgnored;var E=v.isIgnored;var _=r(39);function glob(t,e,r){if(typeof e==="function")r=e,e={};if(!e)e={};if(e.sync){if(r)throw new TypeError("callback provided to sync glob");return p(t,e)}return new Glob(t,e,r)}glob.sync=p;var w=glob.GlobSync=p.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var r=Object.keys(e);var i=r.length;while(i--){t[r[i]]=e[r[i]]}return t}glob.hasMagic=function(t,e){var r=extend({},e);r.noprocess=true;var i=new Glob(t,r);var n=i.minimatch.set;if(!t)return false;if(n.length>1)return true;for(var a=0;a<n[0].length;a++){if(typeof n[0][a]!=="string")return true}return false};glob.Glob=Glob;o(Glob,c);function Glob(t,e,r){if(typeof e==="function"){r=e;e=null}if(e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(t,e)}if(!(this instanceof Glob))return new Glob(t,e,r);d(this,t,e);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=_(r);this.on("error",r);this.on("end",(function(t){r(null,t)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var a=true;for(var s=0;s<i;s++){this._process(this.minimatch.set[s],s,false,done)}a=false;function done(){--n._processing;if(n._processing<=0){if(a){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){h(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();v.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var t=this.matches.length;if(t===0)return this._finish();var e=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--t===0)e._finish()}};Glob.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var i=Object.keys(r);var a=this;var s=i.length;if(s===0)return e();var o=this.matches[t]=Object.create(null);i.forEach((function(r,i){r=a._makeAbs(r);n.realpath(r,a.realpathCache,(function(i,n){if(!i)o[n]=true;else if(i.syscall==="stat")o[r]=true;else a.emit("error",i);if(--s===0){a.matches[t]=o;e()}}))}))};Glob.prototype._mark=function(t){return v.mark(this,t)};Glob.prototype._makeAbs=function(t){return v.makeAbs(this,t)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var n=i[e];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(t,e,r,i){h(this instanceof Glob);h(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([t,e,r,i]);return}var n=0;while(typeof t[n]==="string"){n++}var s;switch(n){case t.length:this._processSimple(t.join("/"),e,i);return;case 0:s=null;break;default:s=t.slice(0,n).join("/");break}var o=t.slice(n);var c;if(s===null)c=".";else if(u(s)||u(t.join("/"))){if(!s||!u(s))s="/"+s;c=s}else c=s;var l=this._makeAbs(c);if(y(this,c))return i();var p=o[0]===a.GLOBSTAR;if(p)this._processGlobStar(s,c,l,o,e,r,i);else this._processReaddir(s,c,l,o,e,r,i)};Glob.prototype._processReaddir=function(t,e,r,i,n,a,s){var o=this;this._readdir(r,a,(function(c,l){return o._processReaddir2(t,e,r,i,n,a,l,s)}))};Glob.prototype._processReaddir2=function(t,e,r,i,n,a,s,o){if(!s)return o();var c=i[0];var h=!!this.minimatch.negate;var u=c._glob;var p=this.dot||u.charAt(0)===".";var v=[];for(var d=0;d<s.length;d++){var m=s[d];if(m.charAt(0)!=="."||p){var b;if(h&&!t){b=!m.match(c)}else{b=m.match(c)}if(b)v.push(m)}}var g=v.length;if(g===0)return o();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var d=0;d<g;d++){var m=v[d];if(t){if(t!=="/")m=t+"/"+m;else m=t+m}if(m.charAt(0)==="/"&&!this.nomount){m=l.join(this.root,m)}this._emitMatch(n,m)}return o()}i.shift();for(var d=0;d<g;d++){var m=v[d];var y;if(t){if(t!=="/")m=t+"/"+m;else m=t+m}this._process([m].concat(i),n,a,o)}o()};Glob.prototype._emitMatch=function(t,e){if(this.aborted)return;if(E(this,e))return;if(this.paused){this._emitQueue.push([t,e]);return}var r=u(e)?e:this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute)e=r;if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;var n=this.statCache[r];if(n)this.emit("stat",e,n);this.emit("match",e)};Glob.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,false,e);var r="lstat\0"+t;var n=this;var a=b(r,lstatcb_);if(a)i.lstat(t,a);function lstatcb_(r,i){if(r&&r.code==="ENOENT")return e();var a=i&&i.isSymbolicLink();n.symlinks[t]=a;if(!a&&i&&!i.isDirectory()){n.cache[t]="FILE";e()}else n._readdir(t,false,e)}};Glob.prototype._readdir=function(t,e,r){if(this.aborted)return;r=b("readdir\0"+t+"\0"+e,r);if(!r)return;if(e&&!m(this.symlinks,t))return this._readdirInGlobStar(t,r);if(m(this.cache,t)){var n=this.cache[t];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var a=this;i.readdir(t,readdirCb(this,t,r))};function readdirCb(t,e,r){return function(i,n){if(i)t._readdirError(e,i,r);else t._readdirEntries(e,n,r)}}Glob.prototype._readdirEntries=function(t,e,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<e.length;i++){var n=e[i];if(t==="/")n=t+n;else n=t+"/"+n;this.cache[n]=true}}this.cache[t]=e;return r(null,e)};Glob.prototype._readdirError=function(t,e,r){if(this.aborted)return;switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=e.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict){this.emit("error",e);this.abort()}if(!this.silent)console.error("glob error",e);break}return r()};Glob.prototype._processGlobStar=function(t,e,r,i,n,a,s){var o=this;this._readdir(r,a,(function(c,l){o._processGlobStar2(t,e,r,i,n,a,l,s)}))};Glob.prototype._processGlobStar2=function(t,e,r,i,n,a,s,o){if(!s)return o();var c=i.slice(1);var l=t?[t]:[];var h=l.concat(c);this._process(h,n,false,o);var u=this.symlinks[r];var p=s.length;if(u&&a)return o();for(var v=0;v<p;v++){var d=s[v];if(d.charAt(0)==="."&&!this.dot)continue;var m=l.concat(s[v],c);this._process(m,n,true,o);var b=l.concat(s[v],i);this._process(b,n,true,o)}o()};Glob.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,(function(n,a){i._processSimple2(t,e,n,a,r)}))};Glob.prototype._processSimple2=function(t,e,r,i,n){if(!this.matches[e])this.matches[e]=Object.create(null);if(!i)return n();if(t&&u(t)&&!this.nomount){var a=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=l.join(this.root,t)}else{t=l.resolve(this.root,t);if(a)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t);n()};Glob.prototype._stat=function(t,e){var r=this._makeAbs(t);var n=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&m(this.cache,r)){var a=this.cache[r];if(Array.isArray(a))a="DIR";if(!n||a==="DIR")return e(null,a);if(n&&a==="FILE")return e()}var s;var o=this.statCache[r];if(o!==undefined){if(o===false)return e(null,o);else{var c=o.isDirectory()?"DIR":"FILE";if(n&&c==="FILE")return e();else return e(null,c,o)}}var l=this;var h=b("stat\0"+r,lstatcb_);if(h)i.lstat(r,h);function lstatcb_(n,a){if(a&&a.isSymbolicLink()){return i.stat(r,(function(i,n){if(i)l._stat2(t,r,null,a,e);else l._stat2(t,r,i,n,e)}))}else{l._stat2(t,r,n,a,e)}}};Glob.prototype._stat2=function(t,e,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[e]=false;return n()}var a=t.slice(-1)==="/";this.statCache[e]=i;if(e.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var s=true;if(i)s=i.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||s;if(a&&s==="FILE")return n();return n(null,s,i)}},935:function(t,e,r){t.exports=globSync;globSync.GlobSync=GlobSync;var i=r(747);var n=r(899);var a=r(707);var s=a.Minimatch;var o=r(938).Glob;var c=r(669);var l=r(622);var h=r(357);var u=r(194);var p=r(374);var v=p.setopts;var d=p.ownProp;var m=p.childrenIgnored;var b=p.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);v(this,t,e);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){h(this instanceof GlobSync);if(this.realpath){var t=this;this.matches.forEach((function(e,r){var i=t.matches[r]=Object.create(null);for(var a in e){try{a=t._makeAbs(a);var s=n.realpathSync(a,t.realpathCache);i[s]=true}catch(e){if(e.syscall==="stat")i[t._makeAbs(a)]=true;else throw e}}}))}p.finish(this)};GlobSync.prototype._process=function(t,e,r){h(this instanceof GlobSync);var i=0;while(typeof t[i]==="string"){i++}var n;switch(i){case t.length:this._processSimple(t.join("/"),e);return;case 0:n=null;break;default:n=t.slice(0,i).join("/");break}var s=t.slice(i);var o;if(n===null)o=".";else if(u(n)||u(t.join("/"))){if(!n||!u(n))n="/"+n;o=n}else o=n;var c=this._makeAbs(o);if(m(this,o))return;var l=s[0]===a.GLOBSTAR;if(l)this._processGlobStar(n,o,c,s,e,r);else this._processReaddir(n,o,c,s,e,r)};GlobSync.prototype._processReaddir=function(t,e,r,i,n,a){var s=this._readdir(r,a);if(!s)return;var o=i[0];var c=!!this.minimatch.negate;var h=o._glob;var u=this.dot||h.charAt(0)===".";var p=[];for(var v=0;v<s.length;v++){var d=s[v];if(d.charAt(0)!=="."||u){var m;if(c&&!t){m=!d.match(o)}else{m=d.match(o)}if(m)p.push(d)}}var b=p.length;if(b===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var v=0;v<b;v++){var d=p[v];if(t){if(t.slice(-1)!=="/")d=t+"/"+d;else d=t+d}if(d.charAt(0)==="/"&&!this.nomount){d=l.join(this.root,d)}this._emitMatch(n,d)}return}i.shift();for(var v=0;v<b;v++){var d=p[v];var g;if(t)g=[t,d];else g=[d];this._process(g.concat(i),n,a)}};GlobSync.prototype._emitMatch=function(t,e){if(b(this,e))return;var r=this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute){e=r}if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;if(this.stat)this._stat(e)};GlobSync.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,false);var e;var r;var n;try{r=i.lstatSync(t)}catch(t){if(t.code==="ENOENT"){return null}}var a=r&&r.isSymbolicLink();this.symlinks[t]=a;if(!a&&r&&!r.isDirectory())this.cache[t]="FILE";else e=this._readdir(t,false);return e};GlobSync.prototype._readdir=function(t,e){var r;if(e&&!d(this.symlinks,t))return this._readdirInGlobStar(t);if(d(this.cache,t)){var n=this.cache[t];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(t,i.readdirSync(t))}catch(e){this._readdirError(t,e);return null}};GlobSync.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat){for(var r=0;r<e.length;r++){var i=e[r];if(t==="/")i=t+i;else i=t+"/"+i;this.cache[i]=true}}this.cache[t]=e;return e};GlobSync.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=e.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict)throw e;if(!this.silent)console.error("glob error",e);break}};GlobSync.prototype._processGlobStar=function(t,e,r,i,n,a){var s=this._readdir(r,a);if(!s)return;var o=i.slice(1);var c=t?[t]:[];var l=c.concat(o);this._process(l,n,false);var h=s.length;var u=this.symlinks[r];if(u&&a)return;for(var p=0;p<h;p++){var v=s[p];if(v.charAt(0)==="."&&!this.dot)continue;var d=c.concat(s[p],o);this._process(d,n,true);var m=c.concat(s[p],i);this._process(m,n,true)}};GlobSync.prototype._processSimple=function(t,e){var r=this._stat(t);if(!this.matches[e])this.matches[e]=Object.create(null);if(!r)return;if(t&&u(t)&&!this.nomount){var i=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=l.join(this.root,t)}else{t=l.resolve(this.root,t);if(i)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t)};GlobSync.prototype._stat=function(t){var e=this._makeAbs(t);var r=t.slice(-1)==="/";if(t.length>this.maxLength)return false;if(!this.stat&&d(this.cache,e)){var n=this.cache[e];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var a;var s=this.statCache[e];if(!s){var o;try{o=i.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(o&&o.isSymbolicLink()){try{s=i.statSync(e)}catch(t){s=o}}else{s=o}}this.statCache[e]=s;var n=true;if(s)n=s.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(t){return p.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return p.makeAbs(this,t)}},854:function(t,e,r){var i=r(315);var n=Object.create(null);var a=r(39);t.exports=i(inflight);function inflight(t,e){if(n[t]){n[t].push(e);return null}else{n[t]=[e];return makeres(t)}}function makeres(t){return a((function RES(){var e=n[t];var r=e.length;var i=slice(arguments);try{for(var a=0;a<r;a++){e[a].apply(null,i)}}finally{if(e.length>r){e.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[t]}}}))}function slice(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i]=t[i];return r}},97:function(t,e,r){try{var i=r(669);if(typeof i.inherits!=="function")throw"";t.exports=i.inherits}catch(e){t.exports=r(312)}},312:function(t){if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var TempCtor=function(){};TempCtor.prototype=e.prototype;t.prototype=new TempCtor;t.prototype.constructor=t}}}},707:function(t,e,r){t.exports=minimatch;minimatch.Minimatch=Minimatch;var i={sep:"/"};try{i=r(622)}catch(t){}var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var a=r(793);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var c=o+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var h="(?:(?!(?:\\/|^)\\.).)*?";var u=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce((function(t,e){t[e]=true;return t}),{})}var p=/\/+/;minimatch.filter=filter;function filter(t,e){e=e||{};return function(r,i,n){return minimatch(r,t,e)}}function ext(t,e){t=t||{};e=e||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return minimatch;var e=minimatch;var r=function minimatch(r,i,n){return e.minimatch(r,i,ext(t,n))};r.Minimatch=function Minimatch(r,i){return new e.Minimatch(r,ext(t,i))};return r};Minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return Minimatch;return minimatch.defaults(t).Minimatch};function minimatch(t,e,r){if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&e.charAt(0)==="#"){return false}if(e.trim()==="")return t==="";return new Minimatch(e,r).match(t)}function Minimatch(t,e){if(!(this instanceof Minimatch)){return new Minimatch(t,e)}if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!e)e={};t=t.trim();if(i.sep!=="/"){t=t.split(i.sep).join("/")}this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var t=this.pattern;var e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(e.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map((function(t){return t.split(p)}));this.debug(this.pattern,r);r=r.map((function(t,e,r){return t.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(t){return t.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var e=false;var r=this.options;var i=0;if(r.nonegate)return;for(var n=0,a=t.length;n<a&&t.charAt(n)==="!";n++){e=!e;i++}if(i)this.pattern=t.substr(i);this.negate=e}minimatch.braceExpand=function(t,e){return braceExpand(t,e)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(t,e){if(!e){if(this instanceof Minimatch){e=this.options}else{e={}}}t=typeof t==="undefined"?this.pattern:t;if(typeof t==="undefined"){throw new TypeError("undefined pattern")}if(e.nobrace||!t.match(/\{.*\}/)){return[t]}return a(t)}Minimatch.prototype.parse=parse;var v={};function parse(t,e){if(t.length>1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&t==="**")return n;if(t==="")return"";var i="";var a=!!r.nocase;var l=false;var h=[];var p=[];var d;var m=false;var b=-1;var g=-1;var y=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var E=this;function clearStateChar(){if(d){switch(d){case"*":i+=c;a=true;break;case"?":i+=o;a=true;break;default:i+="\\"+d;break}E.debug("clearStateChar %j %j",d,i);d=false}}for(var _=0,w=t.length,k;_<w&&(k=t.charAt(_));_++){this.debug("%s\t%s %s %j",t,_,i,k);if(l&&u[k]){i+="\\"+k;l=false;continue}switch(k){case"/":return false;case"\\":clearStateChar();l=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",t,_,i,k);if(m){this.debug(" in class");if(k==="!"&&_===g+1)k="^";i+=k;continue}E.debug("call clearStateChar %j",d);clearStateChar();d=k;if(r.noext)clearStateChar();continue;case"(":if(m){i+="(";continue}if(!d){i+="\\(";continue}h.push({type:d,start:_-1,reStart:i.length,open:s[d].open,close:s[d].close});i+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,i);d=false;continue;case")":if(m||!h.length){i+="\\)";continue}clearStateChar();a=true;var S=h.pop();i+=S.close;if(S.type==="!"){p.push(S)}S.reEnd=i.length;continue;case"|":if(m||!h.length||l){i+="\\|";l=false;continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(m){i+="\\"+k;continue}m=true;g=_;b=i.length;i+=k;continue;case"]":if(_===g+1||!m){i+="\\"+k;l=false;continue}if(m){var O=t.substring(g+1,_);try{RegExp("["+O+"]")}catch(t){var x=this.parse(O,v);i=i.substr(0,b)+"\\["+x[0]+"\\]";a=a||x[1];m=false;continue}}a=true;m=false;i+=k;continue;default:clearStateChar();if(l){l=false}else if(u[k]&&!(k==="^"&&m)){i+="\\"}i+=k}}if(m){O=t.substr(g+1);x=this.parse(O,v);i=i.substr(0,b)+"\\["+x[0];a=a||x[1]}for(S=h.pop();S;S=h.pop()){var A=i.slice(S.reStart+S.open.length);this.debug("setting tail",i,S);A=A.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(t,e,r){if(!r){r="\\"}return e+e+r+"|"}));this.debug("tail=%j\n %s",A,A,S,i);var G=S.type==="*"?c:S.type==="?"?o:"\\"+S.type;a=true;i=i.slice(0,S.reStart)+G+"\\("+A}clearStateChar();if(l){i+="\\\\"}var j=false;switch(i.charAt(0)){case".":case"[":case"(":j=true}for(var M=p.length-1;M>-1;M--){var T=p[M];var N=i.slice(0,T.reStart);var I=i.slice(T.reStart,T.reEnd-8);var R=i.slice(T.reEnd-8,T.reEnd);var C=i.slice(T.reEnd);R+=C;var L=N.split("(").length-1;var P=C;for(_=0;_<L;_++){P=P.replace(/\)[+*?]?/,"")}C=P;var D="";if(C===""&&e!==v){D="$"}var q=N+I+C+D+R;i=q}if(i!==""&&a){i="(?=.)"+i}if(j){i=y+i}if(e===v){return[i,a]}if(!a){return globUnescape(t)}var $=r.nocase?"i":"";try{var B=new RegExp("^"+i+"$",$)}catch(t){return new RegExp("$.")}B._glob=t;B._src=i;return B}minimatch.makeRe=function(t,e){return new Minimatch(t,e||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var t=this.set;if(!t.length){this.regexp=false;return this.regexp}var e=this.options;var r=e.noglobstar?c:e.dot?l:h;var i=e.nocase?"i":"";var a=t.map((function(t){return t.map((function(t){return t===n?r:typeof t==="string"?regExpEscape(t):t._src})).join("\\/")})).join("|");a="^(?:"+a+")$";if(this.negate)a="^(?!"+a+").*$";try{this.regexp=new RegExp(a,i)}catch(t){this.regexp=false}return this.regexp}minimatch.match=function(t,e,r){r=r||{};var i=new Minimatch(e,r);t=t.filter((function(t){return i.match(t)}));if(i.options.nonull&&!t.length){t.push(e)}return t};Minimatch.prototype.match=match;function match(t,e){this.debug("match",t,this.pattern);if(this.comment)return false;if(this.empty)return t==="";if(t==="/"&&e)return true;var r=this.options;if(i.sep!=="/"){t=t.split(i.sep).join("/")}t=t.split(p);this.debug(this.pattern,"split",t);var n=this.set;this.debug(this.pattern,"set",n);var a;var s;for(s=t.length-1;s>=0;s--){a=t[s];if(a)break}for(s=0;s<n.length;s++){var o=n[s];var c=t;if(r.matchBase&&o.length===1){c=[a]}var l=this.matchOne(c,o,e);if(l){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e});this.debug("matchOne",t.length,e.length);for(var a=0,s=0,o=t.length,c=e.length;a<o&&s<c;a++,s++){this.debug("matchOne loop");var l=e[s];var h=t[a];this.debug(e,l,h);if(l===false)return false;if(l===n){this.debug("GLOBSTAR",[e,l,h]);var u=a;var p=s+1;if(p===c){this.debug("** at the end");for(;a<o;a++){if(t[a]==="."||t[a]===".."||!i.dot&&t[a].charAt(0)===".")return false}return true}while(u<o){var v=t[u];this.debug("\nglobstar while",t,u,e,p,v);if(this.matchOne(t.slice(u),e.slice(p),r)){this.debug("globstar found match!",u,o,v);return true}else{if(v==="."||v===".."||!i.dot&&v.charAt(0)==="."){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue");u++}}if(r){this.debug("\n>>> no match, partial?",t,u,e,p);if(u===o)return true}return false}var d;if(typeof l==="string"){if(i.nocase){d=h.toLowerCase()===l.toLowerCase()}else{d=h===l}this.debug("string match",l,h,d)}else{d=h.match(l);this.debug("pattern match",l,h,d)}if(!d)return false}if(a===o&&s===c){return true}else if(a===o){return r}else if(s===c){var m=a===o-1&&t[a]==="";return m}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},39:function(t,e,r){var i=r(315);t.exports=i(once);t.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(t){var f=function(){if(f.called)return f.value;f.called=true;return f.value=t.apply(this,arguments)};f.called=false;return f}function onceStrict(t){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=t.apply(this,arguments)};var e=t.name||"Function wrapped with `once`";f.onceError=e+" shouldn't be called more than once";f.called=false;return f}},194:function(t){"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=e.exec(t);var i=r[1]||"";var n=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||n)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},828:function(t,e,r){const i=r(357);const n=r(622);const a=r(747);let s=undefined;try{s=r(938)}catch(t){}const o={nosort:true,silent:true};let c=0;const l=process.platform==="win32";const defaults=t=>{const e=["unlink","chmod","stat","lstat","rmdir","readdir"];e.forEach((e=>{t[e]=t[e]||a[e];e=e+"Sync";t[e]=t[e]||a[e]}));t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&s===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||o};const rimraf=(t,e,r)=>{if(typeof e==="function"){r=e;e={}}i(t,"rimraf: missing path");i.equal(typeof t,"string","rimraf: path should be a string");i.equal(typeof r,"function","rimraf: callback function required");i(e,"rimraf: invalid options argument provided");i.equal(typeof e,"object","rimraf: options should be object");defaults(e);let n=0;let a=null;let o=0;const next=t=>{a=a||t;if(--o===0)r(a)};const afterGlob=(t,i)=>{if(t)return r(t);o=i.length;if(o===0)return r();i.forEach((t=>{const CB=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&n<e.maxBusyTries){n++;return setTimeout((()=>rimraf_(t,e,CB)),n*100)}if(r.code==="EMFILE"&&c<e.emfileWait){return setTimeout((()=>rimraf_(t,e,CB)),c++)}if(r.code==="ENOENT")r=null}c=0;next(r)};rimraf_(t,e,CB)}))};if(e.disableGlob||!s.hasMagic(t))return afterGlob(null,[t]);e.lstat(t,((r,i)=>{if(!r)return afterGlob(null,[t]);s(t,e.glob,afterGlob)}))};const rimraf_=(t,e,r)=>{i(t);i(e);i(typeof r==="function");e.lstat(t,((i,n)=>{if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&l)fixWinEPERM(t,e,i,r);if(n&&n.isDirectory())return rmdir(t,e,i,r);e.unlink(t,(i=>{if(i){if(i.code==="ENOENT")return r(null);if(i.code==="EPERM")return l?fixWinEPERM(t,e,i,r):rmdir(t,e,i,r);if(i.code==="EISDIR")return rmdir(t,e,i,r)}return r(i)}))}))};const fixWinEPERM=(t,e,r,n)=>{i(t);i(e);i(typeof n==="function");e.chmod(t,438,(i=>{if(i)n(i.code==="ENOENT"?null:r);else e.stat(t,((i,a)=>{if(i)n(i.code==="ENOENT"?null:r);else if(a.isDirectory())rmdir(t,e,r,n);else e.unlink(t,n)}))}))};const fixWinEPERMSync=(t,e,r)=>{i(t);i(e);try{e.chmodSync(t,438)}catch(t){if(t.code==="ENOENT")return;else throw r}let n;try{n=e.statSync(t)}catch(t){if(t.code==="ENOENT")return;else throw r}if(n.isDirectory())rmdirSync(t,e,r);else e.unlinkSync(t)};const rmdir=(t,e,r,n)=>{i(t);i(e);i(typeof n==="function");e.rmdir(t,(i=>{if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM"))rmkids(t,e,n);else if(i&&i.code==="ENOTDIR")n(r);else n(i)}))};const rmkids=(t,e,r)=>{i(t);i(e);i(typeof r==="function");e.readdir(t,((i,a)=>{if(i)return r(i);let s=a.length;if(s===0)return e.rmdir(t,r);let o;a.forEach((i=>{rimraf(n.join(t,i),e,(i=>{if(o)return;if(i)return r(o=i);if(--s===0)e.rmdir(t,r)}))}))}))};const rimrafSync=(t,e)=>{e=e||{};defaults(e);i(t,"rimraf: missing path");i.equal(typeof t,"string","rimraf: path should be a string");i(e,"rimraf: missing options");i.equal(typeof e,"object","rimraf: options should be object");let r;if(e.disableGlob||!s.hasMagic(t)){r=[t]}else{try{e.lstatSync(t);r=[t]}catch(i){r=s.sync(t,e.glob)}}if(!r.length)return;for(let t=0;t<r.length;t++){const i=r[t];let n;try{n=e.lstatSync(i)}catch(t){if(t.code==="ENOENT")return;if(t.code==="EPERM"&&l)fixWinEPERMSync(i,e,t)}try{if(n&&n.isDirectory())rmdirSync(i,e,null);else e.unlinkSync(i)}catch(t){if(t.code==="ENOENT")return;if(t.code==="EPERM")return l?fixWinEPERMSync(i,e,t):rmdirSync(i,e,t);if(t.code!=="EISDIR")throw t;rmdirSync(i,e,t)}}};const rmdirSync=(t,e,r)=>{i(t);i(e);try{e.rmdirSync(t)}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR")throw r;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")rmkidsSync(t,e)}};const rmkidsSync=(t,e)=>{i(t);i(e);e.readdirSync(t).forEach((r=>rimrafSync(n.join(t,r),e)));const r=l?100:1;let a=0;do{let i=true;try{const n=e.rmdirSync(t,e);i=false;return n}finally{if(++a<r&&i)continue}}while(true)};t.exports=rimraf;rimraf.sync=rimrafSync},315:function(t){t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach((function(e){wrapper[e]=t[e]}));return wrapper;function wrapper(){var e=new Array(arguments.length);for(var r=0;r<e.length;r++){e[r]=arguments[r]}var i=t.apply(this,e);var n=e[e.length-1];if(typeof i==="function"&&i!==n){Object.keys(n).forEach((function(t){i[t]=n[t]}))}return i}}},357:function(t){"use strict";t.exports=require("assert")},614:function(t){"use strict";t.exports=require("events")},747:function(t){"use strict";t.exports=require("fs")},622:function(t){"use strict";t.exports=require("path")},669:function(t){"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var i=e[r];if(i!==undefined){return i.exports}var n=e[r]={exports:{}};var a=true;try{t[r](n,n.exports,__nccwpck_require__);a=false}finally{if(a)delete e[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(828);module.exports=r})();
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// Type definitions for Minimatch 3.0
|
|
2
|
+
// Project: https://github.com/isaacs/minimatch
|
|
3
|
+
// Definitions by: vvakame <https://github.com/vvakame>
|
|
4
|
+
// Shant Marouti <https://github.com/shantmarouti>
|
|
5
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Tests a path against the pattern using the options.
|
|
9
|
+
*/
|
|
10
|
+
declare function M(target: string, pattern: string, options?: M.IOptions): boolean;
|
|
11
|
+
|
|
12
|
+
declare namespace M {
|
|
13
|
+
/**
|
|
14
|
+
* Match against the list of files, in the style of fnmatch or glob.
|
|
15
|
+
* If nothing is matched, and options.nonull is set,
|
|
16
|
+
* then return a list containing the pattern itself.
|
|
17
|
+
*/
|
|
18
|
+
function match(list: ReadonlyArray<string>, pattern: string, options?: IOptions): string[];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Returns a function that tests its supplied argument, suitable for use with Array.filter
|
|
22
|
+
*/
|
|
23
|
+
function filter(pattern: string, options?: IOptions): (element: string, indexed: number, array: ReadonlyArray<string>) => boolean;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Make a regular expression object from the pattern.
|
|
27
|
+
*/
|
|
28
|
+
function makeRe(pattern: string, options?: IOptions): RegExp;
|
|
29
|
+
|
|
30
|
+
let Minimatch: IMinimatchStatic;
|
|
31
|
+
|
|
32
|
+
interface IOptions {
|
|
33
|
+
/**
|
|
34
|
+
* Dump a ton of stuff to stderr.
|
|
35
|
+
*
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
debug?: boolean | undefined;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Do not expand {a,b} and {1..3} brace sets.
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
nobrace?: boolean | undefined;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Disable ** matching against multiple folder names.
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
noglobstar?: boolean | undefined;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Allow patterns to match filenames starting with a period,
|
|
56
|
+
* even if the pattern does not explicitly have a period in that spot.
|
|
57
|
+
*
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
dot?: boolean | undefined;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Disable "extglob" style patterns like +(a|b).
|
|
64
|
+
*
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
noext?: boolean | undefined;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Perform a case-insensitive match.
|
|
71
|
+
*
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
nocase?: boolean | undefined;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* When a match is not found by minimatch.match,
|
|
78
|
+
* return a list containing the pattern itself if this option is set.
|
|
79
|
+
* Otherwise, an empty list is returned if there are no matches.
|
|
80
|
+
*
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
nonull?: boolean | undefined;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* If set, then patterns without slashes will be matched against
|
|
87
|
+
* the basename of the path if it contains slashes.
|
|
88
|
+
*
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
matchBase?: boolean | undefined;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Suppress the behavior of treating #
|
|
95
|
+
* at the start of a pattern as a comment.
|
|
96
|
+
*
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
nocomment?: boolean | undefined;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Suppress the behavior of treating a leading ! character as negation.
|
|
103
|
+
*
|
|
104
|
+
* @default false
|
|
105
|
+
*/
|
|
106
|
+
nonegate?: boolean | undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Returns from negate expressions the same as if they were not negated.
|
|
110
|
+
* (Ie, true on a hit, false on a miss.)
|
|
111
|
+
*
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
flipNegate?: boolean | undefined;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface IMinimatchStatic {
|
|
118
|
+
new(pattern: string, options?: IOptions): IMinimatch;
|
|
119
|
+
prototype: IMinimatch;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface IMinimatch {
|
|
123
|
+
/**
|
|
124
|
+
* The original pattern the minimatch object represents.
|
|
125
|
+
*/
|
|
126
|
+
pattern: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The options supplied to the constructor.
|
|
130
|
+
*/
|
|
131
|
+
options: IOptions;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* A 2-dimensional array of regexp or string expressions.
|
|
135
|
+
*/
|
|
136
|
+
set: any[][]; // (RegExp | string)[][]
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* A single regular expression expressing the entire pattern.
|
|
140
|
+
* Created by the makeRe method.
|
|
141
|
+
*/
|
|
142
|
+
regexp: RegExp;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* True if the pattern is negated.
|
|
146
|
+
*/
|
|
147
|
+
negate: boolean;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* True if the pattern is a comment.
|
|
151
|
+
*/
|
|
152
|
+
comment: boolean;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* True if the pattern is ""
|
|
156
|
+
*/
|
|
157
|
+
empty: boolean;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Generate the regexp member if necessary, and return it.
|
|
161
|
+
* Will return false if the pattern is invalid.
|
|
162
|
+
*/
|
|
163
|
+
makeRe(): RegExp; // regexp or boolean
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Return true if the filename matches the pattern, or false otherwise.
|
|
167
|
+
*/
|
|
168
|
+
match(fname: string): boolean;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Take a /-split filename, and match it against a single row in the regExpSet.
|
|
172
|
+
* This method is mainly for internal use, but is exposed so that it can be used
|
|
173
|
+
* by a glob-walker that needs to avoid excessive filesystem calls.
|
|
174
|
+
*/
|
|
175
|
+
matchOne(files: string[], pattern: string[], partial: boolean): boolean;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated. For internal use.
|
|
179
|
+
*/
|
|
180
|
+
debug(): void;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @deprecated. For internal use.
|
|
184
|
+
*/
|
|
185
|
+
make(): void;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @deprecated. For internal use.
|
|
189
|
+
*/
|
|
190
|
+
parseNegate(): void;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @deprecated. For internal use.
|
|
194
|
+
*/
|
|
195
|
+
braceExpand(pattern: string, options: IOptions): void;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @deprecated. For internal use.
|
|
199
|
+
*/
|
|
200
|
+
parse(pattern: string, isSub?: boolean): void;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export = M;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"rimraf","author":"Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)","license":"ISC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import semver = require('../index');
|
|
2
|
+
import SemVer = require('./semver');
|
|
3
|
+
|
|
4
|
+
declare class Comparator {
|
|
5
|
+
constructor(comp: string | Comparator, optionsOrLoose?: boolean | semver.Options);
|
|
6
|
+
|
|
7
|
+
semver: SemVer;
|
|
8
|
+
operator: '' | '=' | '<' | '>' | '<=' | '>=';
|
|
9
|
+
value: string;
|
|
10
|
+
loose: boolean;
|
|
11
|
+
options: semver.Options;
|
|
12
|
+
parse(comp: string): void;
|
|
13
|
+
test(version: string | SemVer): boolean;
|
|
14
|
+
intersects(comp: Comparator, optionsOrLoose?: boolean | semver.Options): boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export = Comparator;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import semver = require('../index');
|
|
2
|
+
import Comparator = require('./comparator');
|
|
3
|
+
import SemVer = require('./semver');
|
|
4
|
+
|
|
5
|
+
declare class Range {
|
|
6
|
+
constructor(range: string | Range, optionsOrLoose?: boolean | semver.Options);
|
|
7
|
+
|
|
8
|
+
range: string;
|
|
9
|
+
raw: string;
|
|
10
|
+
loose: boolean;
|
|
11
|
+
options: semver.Options;
|
|
12
|
+
includePrerelease: boolean;
|
|
13
|
+
format(): string;
|
|
14
|
+
inspect(): string;
|
|
15
|
+
|
|
16
|
+
set: ReadonlyArray<ReadonlyArray<Comparator>>;
|
|
17
|
+
parseRange(range: string): ReadonlyArray<Comparator>;
|
|
18
|
+
test(version: string | SemVer): boolean;
|
|
19
|
+
intersects(range: Range, optionsOrLoose?: boolean | semver.Options): boolean;
|
|
20
|
+
}
|
|
21
|
+
export = Range;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import semver = require('../index');
|
|
2
|
+
|
|
3
|
+
declare class SemVer {
|
|
4
|
+
constructor(version: string | SemVer, optionsOrLoose?: boolean | semver.Options);
|
|
5
|
+
|
|
6
|
+
raw: string;
|
|
7
|
+
loose: boolean;
|
|
8
|
+
options: semver.Options;
|
|
9
|
+
format(): string;
|
|
10
|
+
inspect(): string;
|
|
11
|
+
|
|
12
|
+
major: number;
|
|
13
|
+
minor: number;
|
|
14
|
+
patch: number;
|
|
15
|
+
version: string;
|
|
16
|
+
build: ReadonlyArray<string>;
|
|
17
|
+
prerelease: ReadonlyArray<string | number>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Compares two versions excluding build identifiers (the bit after `+` in the semantic version string).
|
|
21
|
+
*
|
|
22
|
+
* @return
|
|
23
|
+
* - `0` if `this` == `other`
|
|
24
|
+
* - `1` if `this` is greater
|
|
25
|
+
* - `-1` if `other` is greater.
|
|
26
|
+
*/
|
|
27
|
+
compare(other: string | SemVer): 1 | 0 | -1;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Compares the release portion of two versions.
|
|
31
|
+
*
|
|
32
|
+
* @return
|
|
33
|
+
* - `0` if `this` == `other`
|
|
34
|
+
* - `1` if `this` is greater
|
|
35
|
+
* - `-1` if `other` is greater.
|
|
36
|
+
*/
|
|
37
|
+
compareMain(other: string | SemVer): 1 | 0 | -1;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Compares the prerelease portion of two versions.
|
|
41
|
+
*
|
|
42
|
+
* @return
|
|
43
|
+
* - `0` if `this` == `other`
|
|
44
|
+
* - `1` if `this` is greater
|
|
45
|
+
* - `-1` if `other` is greater.
|
|
46
|
+
*/
|
|
47
|
+
comparePre(other: string | SemVer): 1 | 0 | -1;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Compares the build identifier of two versions.
|
|
51
|
+
*
|
|
52
|
+
* @return
|
|
53
|
+
* - `0` if `this` == `other`
|
|
54
|
+
* - `1` if `this` is greater
|
|
55
|
+
* - `-1` if `other` is greater.
|
|
56
|
+
*/
|
|
57
|
+
compareBuild(other: string | SemVer): 1 | 0 | -1;
|
|
58
|
+
|
|
59
|
+
inc(release: semver.ReleaseType, identifier?: string): SemVer;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export = SemVer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import semver = require('../index');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Returns cleaned (removed leading/trailing whitespace, remove '=v' prefix) and parsed version, or null if version is invalid.
|
|
5
|
+
*/
|
|
6
|
+
declare function clean(version: string, optionsOrLoose?: boolean | semver.Options): string | null;
|
|
7
|
+
|
|
8
|
+
export = clean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import semver = require('../index');
|
|
2
|
+
import SemVer = require('../classes/semver');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Pass in a comparison string, and it'll call the corresponding semver comparison function.
|
|
6
|
+
* "===" and "!==" do simple string comparison, but are included for completeness.
|
|
7
|
+
* Throws if an invalid comparison string is provided.
|
|
8
|
+
*/
|
|
9
|
+
declare function cmp(
|
|
10
|
+
v1: string | SemVer,
|
|
11
|
+
operator: semver.Operator,
|
|
12
|
+
v2: string | SemVer,
|
|
13
|
+
optionsOrLoose?: boolean | semver.Options,
|
|
14
|
+
): boolean;
|
|
15
|
+
|
|
16
|
+
export = cmp;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import semver = require('../index');
|
|
2
|
+
import SemVer = require('../classes/semver');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Coerces a string to SemVer if possible
|
|
6
|
+
*/
|
|
7
|
+
declare function coerce(
|
|
8
|
+
version: string | number | SemVer | null | undefined,
|
|
9
|
+
options?: semver.CoerceOptions,
|
|
10
|
+
): SemVer | null;
|
|
11
|
+
|
|
12
|
+
export = coerce;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import SemVer = require('../classes/semver');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Compares two versions including build identifiers (the bit after `+` in the semantic version string).
|
|
5
|
+
*
|
|
6
|
+
* Sorts in ascending order when passed to `Array.sort()`.
|
|
7
|
+
*
|
|
8
|
+
* @return
|
|
9
|
+
* - `0` if `v1` == `v2`
|
|
10
|
+
* - `1` if `v1` is greater
|
|
11
|
+
* - `-1` if `v2` is greater.
|
|
12
|
+
*
|
|
13
|
+
* @since 6.1.0
|
|
14
|
+
*/
|
|
15
|
+
declare function compareBuild(a: string | SemVer, b: string | SemVer): 1 | 0 | -1;
|
|
16
|
+
export = compareBuild;
|