@jsii/runtime 1.108.0 → 1.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/webpack/bin/jsii-runtime.js +1690 -1673
- package/webpack/lib/program.js +15887 -15887
|
@@ -1,4 +1,122 @@
|
|
|
1
1
|
var __webpack_modules__ = {
|
|
2
|
+
268: (__unused_webpack_module, exports, __webpack_require__) => {
|
|
3
|
+
"use strict";
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.NodeRelease = void 0;
|
|
8
|
+
const process = __webpack_require__(932);
|
|
9
|
+
const semver_1 = __webpack_require__(5263);
|
|
10
|
+
const ONE_DAY_IN_MILLISECONDS = 864e5;
|
|
11
|
+
class NodeRelease {
|
|
12
|
+
constructor(majorVersion, opts) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
this.majorVersion = majorVersion;
|
|
15
|
+
this.endOfLifeDate = opts.endOfLife === true ? undefined : opts.endOfLife;
|
|
16
|
+
this.untested = (_a = opts.untested) !== null && _a !== void 0 ? _a : false;
|
|
17
|
+
this.supportedRange = new semver_1.Range((_b = opts.supportedRange) !== null && _b !== void 0 ? _b : `^${majorVersion}.0.0`);
|
|
18
|
+
this.endOfLife = opts.endOfLife === true || opts.endOfLife.getTime() <= Date.now();
|
|
19
|
+
this.deprecated = !this.endOfLife && opts.endOfLife !== true && opts.endOfLife.getTime() - NodeRelease.DEPRECATION_WINDOW_MS <= Date.now();
|
|
20
|
+
this.supported = !this.untested && !this.endOfLife;
|
|
21
|
+
}
|
|
22
|
+
static forThisRuntime() {
|
|
23
|
+
const semver = new semver_1.SemVer(process.version);
|
|
24
|
+
const majorVersion = semver.major;
|
|
25
|
+
for (const nodeRelease of this.ALL_RELEASES) {
|
|
26
|
+
if (nodeRelease.majorVersion === majorVersion) {
|
|
27
|
+
return {
|
|
28
|
+
nodeRelease,
|
|
29
|
+
knownBroken: !nodeRelease.supportedRange.test(semver)
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
nodeRelease: undefined,
|
|
35
|
+
knownBroken: false
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
toString() {
|
|
39
|
+
const eolInfo = this.endOfLifeDate ? ` (Planned end-of-life: ${this.endOfLifeDate.toISOString().slice(0, 10)})` : "";
|
|
40
|
+
return `${this.supportedRange.raw}${eolInfo}`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.NodeRelease = NodeRelease;
|
|
44
|
+
NodeRelease.DEPRECATION_WINDOW_MS = 30 * ONE_DAY_IN_MILLISECONDS;
|
|
45
|
+
NodeRelease.ALL_RELEASES = [ ...[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ].map((majorVersion => new NodeRelease(majorVersion, {
|
|
46
|
+
endOfLife: true
|
|
47
|
+
}))), new NodeRelease(12, {
|
|
48
|
+
endOfLife: new Date("2022-04-30"),
|
|
49
|
+
supportedRange: "^12.7.0"
|
|
50
|
+
}), new NodeRelease(13, {
|
|
51
|
+
endOfLife: new Date("2020-06-01"),
|
|
52
|
+
untested: true
|
|
53
|
+
}), new NodeRelease(14, {
|
|
54
|
+
endOfLife: new Date("2023-04-30"),
|
|
55
|
+
supportedRange: "^14.17.0"
|
|
56
|
+
}), new NodeRelease(15, {
|
|
57
|
+
endOfLife: new Date("2021-06-01"),
|
|
58
|
+
untested: true
|
|
59
|
+
}), new NodeRelease(16, {
|
|
60
|
+
endOfLife: new Date("2023-09-11"),
|
|
61
|
+
supportedRange: "^16.3.0"
|
|
62
|
+
}), new NodeRelease(17, {
|
|
63
|
+
endOfLife: new Date("2022-06-01"),
|
|
64
|
+
supportedRange: "^17.3.0",
|
|
65
|
+
untested: true
|
|
66
|
+
}), new NodeRelease(19, {
|
|
67
|
+
endOfLife: new Date("2023-06-01"),
|
|
68
|
+
untested: true
|
|
69
|
+
}), new NodeRelease(21, {
|
|
70
|
+
endOfLife: new Date("2024-06-01"),
|
|
71
|
+
untested: true
|
|
72
|
+
}), new NodeRelease(18, {
|
|
73
|
+
endOfLife: new Date("2025-04-30")
|
|
74
|
+
}), new NodeRelease(20, {
|
|
75
|
+
endOfLife: new Date("2026-04-30")
|
|
76
|
+
}), new NodeRelease(22, {
|
|
77
|
+
endOfLife: new Date("2027-04-30")
|
|
78
|
+
}) ];
|
|
79
|
+
},
|
|
80
|
+
274: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
81
|
+
const SemVer = __webpack_require__(8038);
|
|
82
|
+
const Range = __webpack_require__(3597);
|
|
83
|
+
const maxSatisfying = (versions, range, options) => {
|
|
84
|
+
let max = null;
|
|
85
|
+
let maxSV = null;
|
|
86
|
+
let rangeObj = null;
|
|
87
|
+
try {
|
|
88
|
+
rangeObj = new Range(range, options);
|
|
89
|
+
} catch (er) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
versions.forEach((v => {
|
|
93
|
+
if (rangeObj.test(v)) {
|
|
94
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
95
|
+
max = v;
|
|
96
|
+
maxSV = new SemVer(max, options);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}));
|
|
100
|
+
return max;
|
|
101
|
+
};
|
|
102
|
+
module.exports = maxSatisfying;
|
|
103
|
+
},
|
|
104
|
+
305: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
105
|
+
const SemVer = __webpack_require__(8038);
|
|
106
|
+
const inc = (version, release, options, identifier, identifierBase) => {
|
|
107
|
+
if (typeof options === "string") {
|
|
108
|
+
identifierBase = identifier;
|
|
109
|
+
identifier = options;
|
|
110
|
+
options = undefined;
|
|
111
|
+
}
|
|
112
|
+
try {
|
|
113
|
+
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
114
|
+
} catch (er) {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
module.exports = inc;
|
|
119
|
+
},
|
|
2
120
|
821: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3
121
|
"use strict";
|
|
4
122
|
module = __webpack_require__.nmd(module);
|
|
@@ -135,389 +253,261 @@ var __webpack_modules__ = {
|
|
|
135
253
|
get: assembleStyles
|
|
136
254
|
});
|
|
137
255
|
},
|
|
138
|
-
|
|
256
|
+
857: module => {
|
|
139
257
|
"use strict";
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
const {
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
258
|
+
module.exports = require("os");
|
|
259
|
+
},
|
|
260
|
+
928: (module, exports, __webpack_require__) => {
|
|
261
|
+
const {MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH} = __webpack_require__(3932);
|
|
262
|
+
const debug = __webpack_require__(4122);
|
|
263
|
+
exports = module.exports = {};
|
|
264
|
+
const re = exports.re = [];
|
|
265
|
+
const safeRe = exports.safeRe = [];
|
|
266
|
+
const src = exports.src = [];
|
|
267
|
+
const safeSrc = exports.safeSrc = [];
|
|
268
|
+
const t = exports.t = {};
|
|
269
|
+
let R = 0;
|
|
270
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
271
|
+
const safeRegexReplacements = [ [ "\\s", 1 ], [ "\\d", MAX_LENGTH ], [ LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH ] ];
|
|
272
|
+
const makeSafeRegex = value => {
|
|
273
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
274
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
149
275
|
}
|
|
150
|
-
|
|
151
|
-
object.level = options.level === undefined ? colorLevel : options.level;
|
|
276
|
+
return value;
|
|
152
277
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
Object.setPrototypeOf(chalk, Chalk.prototype);
|
|
163
|
-
Object.setPrototypeOf(chalk.template, chalk);
|
|
164
|
-
chalk.template.constructor = () => {
|
|
165
|
-
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
166
|
-
};
|
|
167
|
-
chalk.template.Instance = ChalkClass;
|
|
168
|
-
return chalk.template;
|
|
278
|
+
const createToken = (name, value, isGlobal) => {
|
|
279
|
+
const safe = makeSafeRegex(value);
|
|
280
|
+
const index = R++;
|
|
281
|
+
debug(name, index, value);
|
|
282
|
+
t[name] = index;
|
|
283
|
+
src[index] = value;
|
|
284
|
+
safeSrc[index] = safe;
|
|
285
|
+
re[index] = new RegExp(value, isGlobal ? "g" : undefined);
|
|
286
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : undefined);
|
|
169
287
|
};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
288
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
289
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
290
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
291
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})`);
|
|
292
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
293
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
294
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
295
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
296
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
297
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
298
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
299
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
300
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
301
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
302
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
303
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
304
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
305
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
306
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`);
|
|
307
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`);
|
|
308
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
309
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
310
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])" + "(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
311
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
312
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + `(?:$|[^\\d])`);
|
|
313
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
314
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
315
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
316
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
317
|
+
exports.tildeTrimReplace = "$1~";
|
|
318
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
319
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
320
|
+
createToken("LONECARET", "(?:\\^)");
|
|
321
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
322
|
+
exports.caretTrimReplace = "$1^";
|
|
323
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
324
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
325
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
326
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
327
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
328
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
329
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})` + `\\s+-\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\s*$`);
|
|
330
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\s+-\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\s*$`);
|
|
331
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
332
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
333
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
334
|
+
},
|
|
335
|
+
932: module => {
|
|
336
|
+
"use strict";
|
|
337
|
+
module.exports = require("process");
|
|
338
|
+
},
|
|
339
|
+
1005: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
340
|
+
const eq = __webpack_require__(8935);
|
|
341
|
+
const neq = __webpack_require__(8661);
|
|
342
|
+
const gt = __webpack_require__(6670);
|
|
343
|
+
const gte = __webpack_require__(6999);
|
|
344
|
+
const lt = __webpack_require__(5169);
|
|
345
|
+
const lte = __webpack_require__(9746);
|
|
346
|
+
const cmp = (a, op, b, loose) => {
|
|
347
|
+
switch (op) {
|
|
348
|
+
case "===":
|
|
349
|
+
if (typeof a === "object") {
|
|
350
|
+
a = a.version;
|
|
181
351
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
styles.visible = {
|
|
185
|
-
get() {
|
|
186
|
-
const builder = createBuilder(this, this._styler, true);
|
|
187
|
-
Object.defineProperty(this, "visible", {
|
|
188
|
-
value: builder
|
|
189
|
-
});
|
|
190
|
-
return builder;
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
const usedModels = [ "rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256" ];
|
|
194
|
-
for (const model of usedModels) {
|
|
195
|
-
styles[model] = {
|
|
196
|
-
get() {
|
|
197
|
-
const {level} = this;
|
|
198
|
-
return function(...arguments_) {
|
|
199
|
-
const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
|
|
200
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
201
|
-
};
|
|
352
|
+
if (typeof b === "object") {
|
|
353
|
+
b = b.version;
|
|
202
354
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
get() {
|
|
209
|
-
const {level} = this;
|
|
210
|
-
return function(...arguments_) {
|
|
211
|
-
const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
|
|
212
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
213
|
-
};
|
|
355
|
+
return a === b;
|
|
356
|
+
|
|
357
|
+
case "!==":
|
|
358
|
+
if (typeof a === "object") {
|
|
359
|
+
a = a.version;
|
|
214
360
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
const proto = Object.defineProperties((() => {}), {
|
|
218
|
-
...styles,
|
|
219
|
-
level: {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get() {
|
|
222
|
-
return this._generator.level;
|
|
223
|
-
},
|
|
224
|
-
set(level) {
|
|
225
|
-
this._generator.level = level;
|
|
361
|
+
if (typeof b === "object") {
|
|
362
|
+
b = b.version;
|
|
226
363
|
}
|
|
364
|
+
return a !== b;
|
|
365
|
+
|
|
366
|
+
case "":
|
|
367
|
+
case "=":
|
|
368
|
+
case "==":
|
|
369
|
+
return eq(a, b, loose);
|
|
370
|
+
|
|
371
|
+
case "!=":
|
|
372
|
+
return neq(a, b, loose);
|
|
373
|
+
|
|
374
|
+
case ">":
|
|
375
|
+
return gt(a, b, loose);
|
|
376
|
+
|
|
377
|
+
case ">=":
|
|
378
|
+
return gte(a, b, loose);
|
|
379
|
+
|
|
380
|
+
case "<":
|
|
381
|
+
return lt(a, b, loose);
|
|
382
|
+
|
|
383
|
+
case "<=":
|
|
384
|
+
return lte(a, b, loose);
|
|
385
|
+
|
|
386
|
+
default:
|
|
387
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
227
388
|
}
|
|
228
|
-
});
|
|
229
|
-
const createStyler = (open, close, parent) => {
|
|
230
|
-
let openAll;
|
|
231
|
-
let closeAll;
|
|
232
|
-
if (parent === undefined) {
|
|
233
|
-
openAll = open;
|
|
234
|
-
closeAll = close;
|
|
235
|
-
} else {
|
|
236
|
-
openAll = parent.openAll + open;
|
|
237
|
-
closeAll = close + parent.closeAll;
|
|
238
|
-
}
|
|
239
|
-
return {
|
|
240
|
-
open,
|
|
241
|
-
close,
|
|
242
|
-
openAll,
|
|
243
|
-
closeAll,
|
|
244
|
-
parent
|
|
245
|
-
};
|
|
246
389
|
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
390
|
+
module.exports = cmp;
|
|
391
|
+
},
|
|
392
|
+
1380: module => {
|
|
393
|
+
class LRUCache {
|
|
394
|
+
constructor() {
|
|
395
|
+
this.max = 1e3;
|
|
396
|
+
this.map = new Map;
|
|
397
|
+
}
|
|
398
|
+
get(key) {
|
|
399
|
+
const value = this.map.get(key);
|
|
400
|
+
if (value === undefined) {
|
|
401
|
+
return undefined;
|
|
402
|
+
} else {
|
|
403
|
+
this.map.delete(key);
|
|
404
|
+
this.map.set(key, value);
|
|
405
|
+
return value;
|
|
251
406
|
}
|
|
252
|
-
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
253
|
-
};
|
|
254
|
-
Object.setPrototypeOf(builder, proto);
|
|
255
|
-
builder._generator = self;
|
|
256
|
-
builder._styler = _styler;
|
|
257
|
-
builder._isEmpty = _isEmpty;
|
|
258
|
-
return builder;
|
|
259
|
-
};
|
|
260
|
-
const applyStyle = (self, string) => {
|
|
261
|
-
if (self.level <= 0 || !string) {
|
|
262
|
-
return self._isEmpty ? "" : string;
|
|
263
407
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
return string;
|
|
408
|
+
delete(key) {
|
|
409
|
+
return this.map.delete(key);
|
|
267
410
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
411
|
+
set(key, value) {
|
|
412
|
+
const deleted = this.delete(key);
|
|
413
|
+
if (!deleted && value !== undefined) {
|
|
414
|
+
if (this.map.size >= this.max) {
|
|
415
|
+
const firstKey = this.map.keys().next().value;
|
|
416
|
+
this.delete(firstKey);
|
|
417
|
+
}
|
|
418
|
+
this.map.set(key, value);
|
|
273
419
|
}
|
|
420
|
+
return this;
|
|
274
421
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
422
|
+
}
|
|
423
|
+
module.exports = LRUCache;
|
|
424
|
+
},
|
|
425
|
+
1519: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
426
|
+
const parse = __webpack_require__(3770);
|
|
427
|
+
const valid = (version, options) => {
|
|
428
|
+
const v = parse(version, options);
|
|
429
|
+
return v ? v.version : null;
|
|
430
|
+
};
|
|
431
|
+
module.exports = valid;
|
|
432
|
+
},
|
|
433
|
+
1873: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
434
|
+
const cssKeywords = __webpack_require__(2694);
|
|
435
|
+
const reverseKeywords = {};
|
|
436
|
+
for (const key of Object.keys(cssKeywords)) {
|
|
437
|
+
reverseKeywords[cssKeywords[key]] = key;
|
|
438
|
+
}
|
|
439
|
+
const convert = {
|
|
440
|
+
rgb: {
|
|
441
|
+
channels: 3,
|
|
442
|
+
labels: "rgb"
|
|
443
|
+
},
|
|
444
|
+
hsl: {
|
|
445
|
+
channels: 3,
|
|
446
|
+
labels: "hsl"
|
|
447
|
+
},
|
|
448
|
+
hsv: {
|
|
449
|
+
channels: 3,
|
|
450
|
+
labels: "hsv"
|
|
451
|
+
},
|
|
452
|
+
hwb: {
|
|
453
|
+
channels: 3,
|
|
454
|
+
labels: "hwb"
|
|
455
|
+
},
|
|
456
|
+
cmyk: {
|
|
457
|
+
channels: 4,
|
|
458
|
+
labels: "cmyk"
|
|
459
|
+
},
|
|
460
|
+
xyz: {
|
|
461
|
+
channels: 3,
|
|
462
|
+
labels: "xyz"
|
|
463
|
+
},
|
|
464
|
+
lab: {
|
|
465
|
+
channels: 3,
|
|
466
|
+
labels: "lab"
|
|
467
|
+
},
|
|
468
|
+
lch: {
|
|
469
|
+
channels: 3,
|
|
470
|
+
labels: "lch"
|
|
471
|
+
},
|
|
472
|
+
hex: {
|
|
473
|
+
channels: 1,
|
|
474
|
+
labels: [ "hex" ]
|
|
475
|
+
},
|
|
476
|
+
keyword: {
|
|
477
|
+
channels: 1,
|
|
478
|
+
labels: [ "keyword" ]
|
|
479
|
+
},
|
|
480
|
+
ansi16: {
|
|
481
|
+
channels: 1,
|
|
482
|
+
labels: [ "ansi16" ]
|
|
483
|
+
},
|
|
484
|
+
ansi256: {
|
|
485
|
+
channels: 1,
|
|
486
|
+
labels: [ "ansi256" ]
|
|
487
|
+
},
|
|
488
|
+
hcg: {
|
|
489
|
+
channels: 3,
|
|
490
|
+
labels: [ "h", "c", "g" ]
|
|
491
|
+
},
|
|
492
|
+
apple: {
|
|
493
|
+
channels: 3,
|
|
494
|
+
labels: [ "r16", "g16", "b16" ]
|
|
495
|
+
},
|
|
496
|
+
gray: {
|
|
497
|
+
channels: 1,
|
|
498
|
+
labels: [ "gray" ]
|
|
278
499
|
}
|
|
279
|
-
return openAll + string + closeAll;
|
|
280
500
|
};
|
|
281
|
-
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
return strings.join(" ");
|
|
501
|
+
module.exports = convert;
|
|
502
|
+
for (const model of Object.keys(convert)) {
|
|
503
|
+
if (!("channels" in convert[model])) {
|
|
504
|
+
throw new Error("missing channels property: " + model);
|
|
286
505
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
for (let i = 1; i < firstString.length; i++) {
|
|
290
|
-
parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
|
|
506
|
+
if (!("labels" in convert[model])) {
|
|
507
|
+
throw new Error("missing channel labels property: " + model);
|
|
291
508
|
}
|
|
292
|
-
if (
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
return template(chalk, parts.join(""));
|
|
296
|
-
};
|
|
297
|
-
Object.defineProperties(Chalk.prototype, styles);
|
|
298
|
-
const chalk = Chalk();
|
|
299
|
-
chalk.supportsColor = stdoutColor;
|
|
300
|
-
chalk.stderr = Chalk({
|
|
301
|
-
level: stderrColor ? stderrColor.level : 0
|
|
302
|
-
});
|
|
303
|
-
chalk.stderr.supportsColor = stderrColor;
|
|
304
|
-
module.exports = chalk;
|
|
305
|
-
},
|
|
306
|
-
8993: module => {
|
|
307
|
-
"use strict";
|
|
308
|
-
const TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
309
|
-
const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
310
|
-
const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
311
|
-
const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
|
312
|
-
const ESCAPES = new Map([ [ "n", "\n" ], [ "r", "\r" ], [ "t", "\t" ], [ "b", "\b" ], [ "f", "\f" ], [ "v", "\v" ], [ "0", "\0" ], [ "\\", "\\" ], [ "e", "" ], [ "a", "" ] ]);
|
|
313
|
-
function unescape(c) {
|
|
314
|
-
const u = c[0] === "u";
|
|
315
|
-
const bracket = c[1] === "{";
|
|
316
|
-
if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
317
|
-
return String.fromCharCode(parseInt(c.slice(1), 16));
|
|
318
|
-
}
|
|
319
|
-
if (u && bracket) {
|
|
320
|
-
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
|
321
|
-
}
|
|
322
|
-
return ESCAPES.get(c) || c;
|
|
323
|
-
}
|
|
324
|
-
function parseArguments(name, arguments_) {
|
|
325
|
-
const results = [];
|
|
326
|
-
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
327
|
-
let matches;
|
|
328
|
-
for (const chunk of chunks) {
|
|
329
|
-
const number = Number(chunk);
|
|
330
|
-
if (!Number.isNaN(number)) {
|
|
331
|
-
results.push(number);
|
|
332
|
-
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
333
|
-
results.push(matches[2].replace(ESCAPE_REGEX, ((m, escape, character) => escape ? unescape(escape) : character)));
|
|
334
|
-
} else {
|
|
335
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
return results;
|
|
339
|
-
}
|
|
340
|
-
function parseStyle(style) {
|
|
341
|
-
STYLE_REGEX.lastIndex = 0;
|
|
342
|
-
const results = [];
|
|
343
|
-
let matches;
|
|
344
|
-
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
345
|
-
const name = matches[1];
|
|
346
|
-
if (matches[2]) {
|
|
347
|
-
const args = parseArguments(name, matches[2]);
|
|
348
|
-
results.push([ name ].concat(args));
|
|
349
|
-
} else {
|
|
350
|
-
results.push([ name ]);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
return results;
|
|
354
|
-
}
|
|
355
|
-
function buildStyle(chalk, styles) {
|
|
356
|
-
const enabled = {};
|
|
357
|
-
for (const layer of styles) {
|
|
358
|
-
for (const style of layer.styles) {
|
|
359
|
-
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
let current = chalk;
|
|
363
|
-
for (const [styleName, styles] of Object.entries(enabled)) {
|
|
364
|
-
if (!Array.isArray(styles)) {
|
|
365
|
-
continue;
|
|
366
|
-
}
|
|
367
|
-
if (!(styleName in current)) {
|
|
368
|
-
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
369
|
-
}
|
|
370
|
-
current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
|
|
371
|
-
}
|
|
372
|
-
return current;
|
|
373
|
-
}
|
|
374
|
-
module.exports = (chalk, temporary) => {
|
|
375
|
-
const styles = [];
|
|
376
|
-
const chunks = [];
|
|
377
|
-
let chunk = [];
|
|
378
|
-
temporary.replace(TEMPLATE_REGEX, ((m, escapeCharacter, inverse, style, close, character) => {
|
|
379
|
-
if (escapeCharacter) {
|
|
380
|
-
chunk.push(unescape(escapeCharacter));
|
|
381
|
-
} else if (style) {
|
|
382
|
-
const string = chunk.join("");
|
|
383
|
-
chunk = [];
|
|
384
|
-
chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
|
385
|
-
styles.push({
|
|
386
|
-
inverse,
|
|
387
|
-
styles: parseStyle(style)
|
|
388
|
-
});
|
|
389
|
-
} else if (close) {
|
|
390
|
-
if (styles.length === 0) {
|
|
391
|
-
throw new Error("Found extraneous } in Chalk template literal");
|
|
392
|
-
}
|
|
393
|
-
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
|
394
|
-
chunk = [];
|
|
395
|
-
styles.pop();
|
|
396
|
-
} else {
|
|
397
|
-
chunk.push(character);
|
|
398
|
-
}
|
|
399
|
-
}));
|
|
400
|
-
chunks.push(chunk.join(""));
|
|
401
|
-
if (styles.length > 0) {
|
|
402
|
-
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
403
|
-
throw new Error(errMessage);
|
|
404
|
-
}
|
|
405
|
-
return chunks.join("");
|
|
406
|
-
};
|
|
407
|
-
},
|
|
408
|
-
4932: module => {
|
|
409
|
-
"use strict";
|
|
410
|
-
const stringReplaceAll = (string, substring, replacer) => {
|
|
411
|
-
let index = string.indexOf(substring);
|
|
412
|
-
if (index === -1) {
|
|
413
|
-
return string;
|
|
414
|
-
}
|
|
415
|
-
const substringLength = substring.length;
|
|
416
|
-
let endIndex = 0;
|
|
417
|
-
let returnValue = "";
|
|
418
|
-
do {
|
|
419
|
-
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
|
420
|
-
endIndex = index + substringLength;
|
|
421
|
-
index = string.indexOf(substring, endIndex);
|
|
422
|
-
} while (index !== -1);
|
|
423
|
-
returnValue += string.substr(endIndex);
|
|
424
|
-
return returnValue;
|
|
425
|
-
};
|
|
426
|
-
const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
|
427
|
-
let endIndex = 0;
|
|
428
|
-
let returnValue = "";
|
|
429
|
-
do {
|
|
430
|
-
const gotCR = string[index - 1] === "\r";
|
|
431
|
-
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
432
|
-
endIndex = index + 1;
|
|
433
|
-
index = string.indexOf("\n", endIndex);
|
|
434
|
-
} while (index !== -1);
|
|
435
|
-
returnValue += string.substr(endIndex);
|
|
436
|
-
return returnValue;
|
|
437
|
-
};
|
|
438
|
-
module.exports = {
|
|
439
|
-
stringReplaceAll,
|
|
440
|
-
stringEncaseCRLFWithFirstIndex
|
|
441
|
-
};
|
|
442
|
-
},
|
|
443
|
-
1873: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
444
|
-
const cssKeywords = __webpack_require__(2694);
|
|
445
|
-
const reverseKeywords = {};
|
|
446
|
-
for (const key of Object.keys(cssKeywords)) {
|
|
447
|
-
reverseKeywords[cssKeywords[key]] = key;
|
|
448
|
-
}
|
|
449
|
-
const convert = {
|
|
450
|
-
rgb: {
|
|
451
|
-
channels: 3,
|
|
452
|
-
labels: "rgb"
|
|
453
|
-
},
|
|
454
|
-
hsl: {
|
|
455
|
-
channels: 3,
|
|
456
|
-
labels: "hsl"
|
|
457
|
-
},
|
|
458
|
-
hsv: {
|
|
459
|
-
channels: 3,
|
|
460
|
-
labels: "hsv"
|
|
461
|
-
},
|
|
462
|
-
hwb: {
|
|
463
|
-
channels: 3,
|
|
464
|
-
labels: "hwb"
|
|
465
|
-
},
|
|
466
|
-
cmyk: {
|
|
467
|
-
channels: 4,
|
|
468
|
-
labels: "cmyk"
|
|
469
|
-
},
|
|
470
|
-
xyz: {
|
|
471
|
-
channels: 3,
|
|
472
|
-
labels: "xyz"
|
|
473
|
-
},
|
|
474
|
-
lab: {
|
|
475
|
-
channels: 3,
|
|
476
|
-
labels: "lab"
|
|
477
|
-
},
|
|
478
|
-
lch: {
|
|
479
|
-
channels: 3,
|
|
480
|
-
labels: "lch"
|
|
481
|
-
},
|
|
482
|
-
hex: {
|
|
483
|
-
channels: 1,
|
|
484
|
-
labels: [ "hex" ]
|
|
485
|
-
},
|
|
486
|
-
keyword: {
|
|
487
|
-
channels: 1,
|
|
488
|
-
labels: [ "keyword" ]
|
|
489
|
-
},
|
|
490
|
-
ansi16: {
|
|
491
|
-
channels: 1,
|
|
492
|
-
labels: [ "ansi16" ]
|
|
493
|
-
},
|
|
494
|
-
ansi256: {
|
|
495
|
-
channels: 1,
|
|
496
|
-
labels: [ "ansi256" ]
|
|
497
|
-
},
|
|
498
|
-
hcg: {
|
|
499
|
-
channels: 3,
|
|
500
|
-
labels: [ "h", "c", "g" ]
|
|
501
|
-
},
|
|
502
|
-
apple: {
|
|
503
|
-
channels: 3,
|
|
504
|
-
labels: [ "r16", "g16", "b16" ]
|
|
505
|
-
},
|
|
506
|
-
gray: {
|
|
507
|
-
channels: 1,
|
|
508
|
-
labels: [ "gray" ]
|
|
509
|
-
}
|
|
510
|
-
};
|
|
511
|
-
module.exports = convert;
|
|
512
|
-
for (const model of Object.keys(convert)) {
|
|
513
|
-
if (!("channels" in convert[model])) {
|
|
514
|
-
throw new Error("missing channels property: " + model);
|
|
515
|
-
}
|
|
516
|
-
if (!("labels" in convert[model])) {
|
|
517
|
-
throw new Error("missing channel labels property: " + model);
|
|
518
|
-
}
|
|
519
|
-
if (convert[model].labels.length !== convert[model].channels) {
|
|
520
|
-
throw new Error("channel and label counts mismatch: " + model);
|
|
509
|
+
if (convert[model].labels.length !== convert[model].channels) {
|
|
510
|
+
throw new Error("channel and label counts mismatch: " + model);
|
|
521
511
|
}
|
|
522
512
|
const {channels, labels} = convert[model];
|
|
523
513
|
delete convert[model].channels;
|
|
@@ -1161,6 +1151,10 @@ var __webpack_modules__ = {
|
|
|
1161
1151
|
return [ val / 255 * 100 ];
|
|
1162
1152
|
};
|
|
1163
1153
|
},
|
|
1154
|
+
2018: module => {
|
|
1155
|
+
"use strict";
|
|
1156
|
+
module.exports = require("tty");
|
|
1157
|
+
},
|
|
1164
1158
|
2172: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1165
1159
|
const conversions = __webpack_require__(1873);
|
|
1166
1160
|
const route = __webpack_require__(3701);
|
|
@@ -1222,69 +1216,76 @@ var __webpack_modules__ = {
|
|
|
1222
1216
|
}));
|
|
1223
1217
|
module.exports = convert;
|
|
1224
1218
|
},
|
|
1225
|
-
|
|
1226
|
-
const
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1219
|
+
2393: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1220
|
+
const compareBuild = __webpack_require__(8471);
|
|
1221
|
+
const sort = (list, loose) => list.sort(((a, b) => compareBuild(a, b, loose)));
|
|
1222
|
+
module.exports = sort;
|
|
1223
|
+
},
|
|
1224
|
+
2641: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1225
|
+
const SemVer = __webpack_require__(8038);
|
|
1226
|
+
const Comparator = __webpack_require__(3114);
|
|
1227
|
+
const {ANY} = Comparator;
|
|
1228
|
+
const Range = __webpack_require__(3597);
|
|
1229
|
+
const satisfies = __webpack_require__(6336);
|
|
1230
|
+
const gt = __webpack_require__(6670);
|
|
1231
|
+
const lt = __webpack_require__(5169);
|
|
1232
|
+
const lte = __webpack_require__(9746);
|
|
1233
|
+
const gte = __webpack_require__(6999);
|
|
1234
|
+
const outside = (version, range, hilo, options) => {
|
|
1235
|
+
version = new SemVer(version, options);
|
|
1236
|
+
range = new Range(range, options);
|
|
1237
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1238
|
+
switch (hilo) {
|
|
1239
|
+
case ">":
|
|
1240
|
+
gtfn = gt;
|
|
1241
|
+
ltefn = lte;
|
|
1242
|
+
ltfn = lt;
|
|
1243
|
+
comp = ">";
|
|
1244
|
+
ecomp = ">=";
|
|
1245
|
+
break;
|
|
1246
|
+
|
|
1247
|
+
case "<":
|
|
1248
|
+
gtfn = lt;
|
|
1249
|
+
ltefn = gte;
|
|
1250
|
+
ltfn = gt;
|
|
1251
|
+
comp = "<";
|
|
1252
|
+
ecomp = "<=";
|
|
1253
|
+
break;
|
|
1254
|
+
|
|
1255
|
+
default:
|
|
1256
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
1235
1257
|
}
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1258
|
+
if (satisfies(version, range, options)) {
|
|
1259
|
+
return false;
|
|
1260
|
+
}
|
|
1261
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
1262
|
+
const comparators = range.set[i];
|
|
1263
|
+
let high = null;
|
|
1264
|
+
let low = null;
|
|
1265
|
+
comparators.forEach((comparator => {
|
|
1266
|
+
if (comparator.semver === ANY) {
|
|
1267
|
+
comparator = new Comparator(">=0.0.0");
|
|
1268
|
+
}
|
|
1269
|
+
high = high || comparator;
|
|
1270
|
+
low = low || comparator;
|
|
1271
|
+
if (gtfn(comparator.semver, high.semver, options)) {
|
|
1272
|
+
high = comparator;
|
|
1273
|
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
1274
|
+
low = comparator;
|
|
1252
1275
|
}
|
|
1276
|
+
}));
|
|
1277
|
+
if (high.operator === comp || high.operator === ecomp) {
|
|
1278
|
+
return false;
|
|
1253
1279
|
}
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
return function(args) {
|
|
1259
|
-
return to(from(args));
|
|
1260
|
-
};
|
|
1261
|
-
}
|
|
1262
|
-
function wrapConversion(toModel, graph) {
|
|
1263
|
-
const path = [ graph[toModel].parent, toModel ];
|
|
1264
|
-
let fn = conversions[graph[toModel].parent][toModel];
|
|
1265
|
-
let cur = graph[toModel].parent;
|
|
1266
|
-
while (graph[cur].parent) {
|
|
1267
|
-
path.unshift(graph[cur].parent);
|
|
1268
|
-
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
1269
|
-
cur = graph[cur].parent;
|
|
1270
|
-
}
|
|
1271
|
-
fn.conversion = path;
|
|
1272
|
-
return fn;
|
|
1273
|
-
}
|
|
1274
|
-
module.exports = function(fromModel) {
|
|
1275
|
-
const graph = deriveBFS(fromModel);
|
|
1276
|
-
const conversion = {};
|
|
1277
|
-
const models = Object.keys(graph);
|
|
1278
|
-
for (let len = models.length, i = 0; i < len; i++) {
|
|
1279
|
-
const toModel = models[i];
|
|
1280
|
-
const node = graph[toModel];
|
|
1281
|
-
if (node.parent === null) {
|
|
1282
|
-
continue;
|
|
1280
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
|
|
1281
|
+
return false;
|
|
1282
|
+
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
1283
|
+
return false;
|
|
1283
1284
|
}
|
|
1284
|
-
conversion[toModel] = wrapConversion(toModel, graph);
|
|
1285
1285
|
}
|
|
1286
|
-
return
|
|
1286
|
+
return true;
|
|
1287
1287
|
};
|
|
1288
|
+
module.exports = outside;
|
|
1288
1289
|
},
|
|
1289
1290
|
2694: module => {
|
|
1290
1291
|
"use strict";
|
|
@@ -1439,15 +1440,6 @@ var __webpack_modules__ = {
|
|
|
1439
1440
|
yellowgreen: [ 154, 205, 50 ]
|
|
1440
1441
|
};
|
|
1441
1442
|
},
|
|
1442
|
-
9614: module => {
|
|
1443
|
-
"use strict";
|
|
1444
|
-
module.exports = (flag, argv = process.argv) => {
|
|
1445
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
1446
|
-
const position = argv.indexOf(prefix + flag);
|
|
1447
|
-
const terminatorPosition = argv.indexOf("--");
|
|
1448
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
1449
|
-
};
|
|
1450
|
-
},
|
|
1451
1443
|
3114: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1452
1444
|
const ANY = Symbol("SemVer ANY");
|
|
1453
1445
|
class Comparator {
|
|
@@ -1556,6 +1548,151 @@ var __webpack_modules__ = {
|
|
|
1556
1548
|
const SemVer = __webpack_require__(8038);
|
|
1557
1549
|
const Range = __webpack_require__(3597);
|
|
1558
1550
|
},
|
|
1551
|
+
3328: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1552
|
+
const SemVer = __webpack_require__(8038);
|
|
1553
|
+
const parse = __webpack_require__(3770);
|
|
1554
|
+
const {safeRe: re, t} = __webpack_require__(928);
|
|
1555
|
+
const coerce = (version, options) => {
|
|
1556
|
+
if (version instanceof SemVer) {
|
|
1557
|
+
return version;
|
|
1558
|
+
}
|
|
1559
|
+
if (typeof version === "number") {
|
|
1560
|
+
version = String(version);
|
|
1561
|
+
}
|
|
1562
|
+
if (typeof version !== "string") {
|
|
1563
|
+
return null;
|
|
1564
|
+
}
|
|
1565
|
+
options = options || {};
|
|
1566
|
+
let match = null;
|
|
1567
|
+
if (!options.rtl) {
|
|
1568
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
1569
|
+
} else {
|
|
1570
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
1571
|
+
let next;
|
|
1572
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
1573
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
1574
|
+
match = next;
|
|
1575
|
+
}
|
|
1576
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
1577
|
+
}
|
|
1578
|
+
coerceRtlRegex.lastIndex = -1;
|
|
1579
|
+
}
|
|
1580
|
+
if (match === null) {
|
|
1581
|
+
return null;
|
|
1582
|
+
}
|
|
1583
|
+
const major = match[2];
|
|
1584
|
+
const minor = match[3] || "0";
|
|
1585
|
+
const patch = match[4] || "0";
|
|
1586
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
1587
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
1588
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
1589
|
+
};
|
|
1590
|
+
module.exports = coerce;
|
|
1591
|
+
},
|
|
1592
|
+
3360: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1593
|
+
const compare = __webpack_require__(6278);
|
|
1594
|
+
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
1595
|
+
module.exports = rcompare;
|
|
1596
|
+
},
|
|
1597
|
+
3533: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1598
|
+
"use strict";
|
|
1599
|
+
const os = __webpack_require__(857);
|
|
1600
|
+
const tty = __webpack_require__(2018);
|
|
1601
|
+
const hasFlag = __webpack_require__(9614);
|
|
1602
|
+
const {env} = process;
|
|
1603
|
+
let forceColor;
|
|
1604
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
1605
|
+
forceColor = 0;
|
|
1606
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
1607
|
+
forceColor = 1;
|
|
1608
|
+
}
|
|
1609
|
+
if ("FORCE_COLOR" in env) {
|
|
1610
|
+
if (env.FORCE_COLOR === "true") {
|
|
1611
|
+
forceColor = 1;
|
|
1612
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
1613
|
+
forceColor = 0;
|
|
1614
|
+
} else {
|
|
1615
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
function translateLevel(level) {
|
|
1619
|
+
if (level === 0) {
|
|
1620
|
+
return false;
|
|
1621
|
+
}
|
|
1622
|
+
return {
|
|
1623
|
+
level,
|
|
1624
|
+
hasBasic: true,
|
|
1625
|
+
has256: level >= 2,
|
|
1626
|
+
has16m: level >= 3
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
1630
|
+
if (forceColor === 0) {
|
|
1631
|
+
return 0;
|
|
1632
|
+
}
|
|
1633
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
1634
|
+
return 3;
|
|
1635
|
+
}
|
|
1636
|
+
if (hasFlag("color=256")) {
|
|
1637
|
+
return 2;
|
|
1638
|
+
}
|
|
1639
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
1640
|
+
return 0;
|
|
1641
|
+
}
|
|
1642
|
+
const min = forceColor || 0;
|
|
1643
|
+
if (env.TERM === "dumb") {
|
|
1644
|
+
return min;
|
|
1645
|
+
}
|
|
1646
|
+
if (process.platform === "win32") {
|
|
1647
|
+
const osRelease = os.release().split(".");
|
|
1648
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
1649
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
1650
|
+
}
|
|
1651
|
+
return 1;
|
|
1652
|
+
}
|
|
1653
|
+
if ("CI" in env) {
|
|
1654
|
+
if ([ "TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE" ].some((sign => sign in env)) || env.CI_NAME === "codeship") {
|
|
1655
|
+
return 1;
|
|
1656
|
+
}
|
|
1657
|
+
return min;
|
|
1658
|
+
}
|
|
1659
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
1660
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
1661
|
+
}
|
|
1662
|
+
if (env.COLORTERM === "truecolor") {
|
|
1663
|
+
return 3;
|
|
1664
|
+
}
|
|
1665
|
+
if ("TERM_PROGRAM" in env) {
|
|
1666
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
1667
|
+
switch (env.TERM_PROGRAM) {
|
|
1668
|
+
case "iTerm.app":
|
|
1669
|
+
return version >= 3 ? 3 : 2;
|
|
1670
|
+
|
|
1671
|
+
case "Apple_Terminal":
|
|
1672
|
+
return 2;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
1676
|
+
return 2;
|
|
1677
|
+
}
|
|
1678
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
1679
|
+
return 1;
|
|
1680
|
+
}
|
|
1681
|
+
if ("COLORTERM" in env) {
|
|
1682
|
+
return 1;
|
|
1683
|
+
}
|
|
1684
|
+
return min;
|
|
1685
|
+
}
|
|
1686
|
+
function getSupportLevel(stream) {
|
|
1687
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
1688
|
+
return translateLevel(level);
|
|
1689
|
+
}
|
|
1690
|
+
module.exports = {
|
|
1691
|
+
supportsColor: getSupportLevel,
|
|
1692
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
1693
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
1694
|
+
};
|
|
1695
|
+
},
|
|
1559
1696
|
3597: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
1560
1697
|
const SPACE_CHARACTERS = /\s+/g;
|
|
1561
1698
|
class Range {
|
|
@@ -1906,248 +2043,274 @@ var __webpack_modules__ = {
|
|
|
1906
2043
|
return true;
|
|
1907
2044
|
};
|
|
1908
2045
|
},
|
|
1909
|
-
|
|
1910
|
-
const
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
}
|
|
1938
|
-
this.raw = version;
|
|
1939
|
-
this.major = +m[1];
|
|
1940
|
-
this.minor = +m[2];
|
|
1941
|
-
this.patch = +m[3];
|
|
1942
|
-
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
1943
|
-
throw new TypeError("Invalid major version");
|
|
1944
|
-
}
|
|
1945
|
-
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
1946
|
-
throw new TypeError("Invalid minor version");
|
|
1947
|
-
}
|
|
1948
|
-
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
1949
|
-
throw new TypeError("Invalid patch version");
|
|
2046
|
+
3701: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2047
|
+
const conversions = __webpack_require__(1873);
|
|
2048
|
+
function buildGraph() {
|
|
2049
|
+
const graph = {};
|
|
2050
|
+
const models = Object.keys(conversions);
|
|
2051
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
|
2052
|
+
graph[models[i]] = {
|
|
2053
|
+
distance: -1,
|
|
2054
|
+
parent: null
|
|
2055
|
+
};
|
|
2056
|
+
}
|
|
2057
|
+
return graph;
|
|
2058
|
+
}
|
|
2059
|
+
function deriveBFS(fromModel) {
|
|
2060
|
+
const graph = buildGraph();
|
|
2061
|
+
const queue = [ fromModel ];
|
|
2062
|
+
graph[fromModel].distance = 0;
|
|
2063
|
+
while (queue.length) {
|
|
2064
|
+
const current = queue.pop();
|
|
2065
|
+
const adjacents = Object.keys(conversions[current]);
|
|
2066
|
+
for (let len = adjacents.length, i = 0; i < len; i++) {
|
|
2067
|
+
const adjacent = adjacents[i];
|
|
2068
|
+
const node = graph[adjacent];
|
|
2069
|
+
if (node.distance === -1) {
|
|
2070
|
+
node.distance = graph[current].distance + 1;
|
|
2071
|
+
node.parent = current;
|
|
2072
|
+
queue.unshift(adjacent);
|
|
2073
|
+
}
|
|
1950
2074
|
}
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
2075
|
+
}
|
|
2076
|
+
return graph;
|
|
2077
|
+
}
|
|
2078
|
+
function link(from, to) {
|
|
2079
|
+
return function(args) {
|
|
2080
|
+
return to(from(args));
|
|
2081
|
+
};
|
|
2082
|
+
}
|
|
2083
|
+
function wrapConversion(toModel, graph) {
|
|
2084
|
+
const path = [ graph[toModel].parent, toModel ];
|
|
2085
|
+
let fn = conversions[graph[toModel].parent][toModel];
|
|
2086
|
+
let cur = graph[toModel].parent;
|
|
2087
|
+
while (graph[cur].parent) {
|
|
2088
|
+
path.unshift(graph[cur].parent);
|
|
2089
|
+
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
2090
|
+
cur = graph[cur].parent;
|
|
2091
|
+
}
|
|
2092
|
+
fn.conversion = path;
|
|
2093
|
+
return fn;
|
|
2094
|
+
}
|
|
2095
|
+
module.exports = function(fromModel) {
|
|
2096
|
+
const graph = deriveBFS(fromModel);
|
|
2097
|
+
const conversion = {};
|
|
2098
|
+
const models = Object.keys(graph);
|
|
2099
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
|
2100
|
+
const toModel = models[i];
|
|
2101
|
+
const node = graph[toModel];
|
|
2102
|
+
if (node.parent === null) {
|
|
2103
|
+
continue;
|
|
1963
2104
|
}
|
|
1964
|
-
|
|
1965
|
-
this.format();
|
|
2105
|
+
conversion[toModel] = wrapConversion(toModel, graph);
|
|
1966
2106
|
}
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
2107
|
+
return conversion;
|
|
2108
|
+
};
|
|
2109
|
+
},
|
|
2110
|
+
3770: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2111
|
+
const SemVer = __webpack_require__(8038);
|
|
2112
|
+
const parse = (version, options, throwErrors = false) => {
|
|
2113
|
+
if (version instanceof SemVer) {
|
|
2114
|
+
return version;
|
|
2115
|
+
}
|
|
2116
|
+
try {
|
|
2117
|
+
return new SemVer(version, options);
|
|
2118
|
+
} catch (er) {
|
|
2119
|
+
if (!throwErrors) {
|
|
2120
|
+
return null;
|
|
1971
2121
|
}
|
|
1972
|
-
|
|
2122
|
+
throw er;
|
|
1973
2123
|
}
|
|
1974
|
-
|
|
1975
|
-
|
|
2124
|
+
};
|
|
2125
|
+
module.exports = parse;
|
|
2126
|
+
},
|
|
2127
|
+
3932: module => {
|
|
2128
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
2129
|
+
const MAX_LENGTH = 256;
|
|
2130
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
2131
|
+
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
2132
|
+
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
2133
|
+
const RELEASE_TYPES = [ "major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease" ];
|
|
2134
|
+
module.exports = {
|
|
2135
|
+
MAX_LENGTH,
|
|
2136
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
2137
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
2138
|
+
MAX_SAFE_INTEGER,
|
|
2139
|
+
RELEASE_TYPES,
|
|
2140
|
+
SEMVER_SPEC_VERSION,
|
|
2141
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
2142
|
+
FLAG_LOOSE: 2
|
|
2143
|
+
};
|
|
2144
|
+
},
|
|
2145
|
+
3949: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2146
|
+
const compare = __webpack_require__(6278);
|
|
2147
|
+
const compareLoose = (a, b) => compare(a, b, true);
|
|
2148
|
+
module.exports = compareLoose;
|
|
2149
|
+
},
|
|
2150
|
+
4122: module => {
|
|
2151
|
+
const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
2152
|
+
module.exports = debug;
|
|
2153
|
+
},
|
|
2154
|
+
4236: module => {
|
|
2155
|
+
"use strict";
|
|
2156
|
+
module.exports = require("console");
|
|
2157
|
+
},
|
|
2158
|
+
4302: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2159
|
+
const Range = __webpack_require__(3597);
|
|
2160
|
+
const Comparator = __webpack_require__(3114);
|
|
2161
|
+
const {ANY} = Comparator;
|
|
2162
|
+
const satisfies = __webpack_require__(6336);
|
|
2163
|
+
const compare = __webpack_require__(6278);
|
|
2164
|
+
const subset = (sub, dom, options = {}) => {
|
|
2165
|
+
if (sub === dom) {
|
|
2166
|
+
return true;
|
|
1976
2167
|
}
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
2168
|
+
sub = new Range(sub, options);
|
|
2169
|
+
dom = new Range(dom, options);
|
|
2170
|
+
let sawNonNull = false;
|
|
2171
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
2172
|
+
for (const simpleDom of dom.set) {
|
|
2173
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
2174
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
2175
|
+
if (isSub) {
|
|
2176
|
+
continue OUTER;
|
|
1982
2177
|
}
|
|
1983
|
-
other = new SemVer(other, this.options);
|
|
1984
2178
|
}
|
|
1985
|
-
if (
|
|
1986
|
-
return
|
|
2179
|
+
if (sawNonNull) {
|
|
2180
|
+
return false;
|
|
1987
2181
|
}
|
|
1988
|
-
return this.compareMain(other) || this.comparePre(other);
|
|
1989
2182
|
}
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
2183
|
+
return true;
|
|
2184
|
+
};
|
|
2185
|
+
const minimumVersionWithPreRelease = [ new Comparator(">=0.0.0-0") ];
|
|
2186
|
+
const minimumVersion = [ new Comparator(">=0.0.0") ];
|
|
2187
|
+
const simpleSubset = (sub, dom, options) => {
|
|
2188
|
+
if (sub === dom) {
|
|
2189
|
+
return true;
|
|
1995
2190
|
}
|
|
1996
|
-
|
|
1997
|
-
if (
|
|
1998
|
-
|
|
2191
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
2192
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
2193
|
+
return true;
|
|
2194
|
+
} else if (options.includePrerelease) {
|
|
2195
|
+
sub = minimumVersionWithPreRelease;
|
|
2196
|
+
} else {
|
|
2197
|
+
sub = minimumVersion;
|
|
1999
2198
|
}
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
return
|
|
2004
|
-
} else
|
|
2005
|
-
|
|
2199
|
+
}
|
|
2200
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
2201
|
+
if (options.includePrerelease) {
|
|
2202
|
+
return true;
|
|
2203
|
+
} else {
|
|
2204
|
+
dom = minimumVersion;
|
|
2006
2205
|
}
|
|
2007
|
-
let i = 0;
|
|
2008
|
-
do {
|
|
2009
|
-
const a = this.prerelease[i];
|
|
2010
|
-
const b = other.prerelease[i];
|
|
2011
|
-
debug("prerelease compare", i, a, b);
|
|
2012
|
-
if (a === undefined && b === undefined) {
|
|
2013
|
-
return 0;
|
|
2014
|
-
} else if (b === undefined) {
|
|
2015
|
-
return 1;
|
|
2016
|
-
} else if (a === undefined) {
|
|
2017
|
-
return -1;
|
|
2018
|
-
} else if (a === b) {
|
|
2019
|
-
continue;
|
|
2020
|
-
} else {
|
|
2021
|
-
return compareIdentifiers(a, b);
|
|
2022
|
-
}
|
|
2023
|
-
} while (++i);
|
|
2024
2206
|
}
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2207
|
+
const eqSet = new Set;
|
|
2208
|
+
let gt, lt;
|
|
2209
|
+
for (const c of sub) {
|
|
2210
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
2211
|
+
gt = higherGT(gt, c, options);
|
|
2212
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
2213
|
+
lt = lowerLT(lt, c, options);
|
|
2214
|
+
} else {
|
|
2215
|
+
eqSet.add(c.semver);
|
|
2028
2216
|
}
|
|
2029
|
-
let i = 0;
|
|
2030
|
-
do {
|
|
2031
|
-
const a = this.build[i];
|
|
2032
|
-
const b = other.build[i];
|
|
2033
|
-
debug("build compare", i, a, b);
|
|
2034
|
-
if (a === undefined && b === undefined) {
|
|
2035
|
-
return 0;
|
|
2036
|
-
} else if (b === undefined) {
|
|
2037
|
-
return 1;
|
|
2038
|
-
} else if (a === undefined) {
|
|
2039
|
-
return -1;
|
|
2040
|
-
} else if (a === b) {
|
|
2041
|
-
continue;
|
|
2042
|
-
} else {
|
|
2043
|
-
return compareIdentifiers(a, b);
|
|
2044
|
-
}
|
|
2045
|
-
} while (++i);
|
|
2046
2217
|
}
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
case "prerelease":
|
|
2071
|
-
if (this.prerelease.length === 0) {
|
|
2072
|
-
this.inc("patch", identifier, identifierBase);
|
|
2073
|
-
}
|
|
2074
|
-
this.inc("pre", identifier, identifierBase);
|
|
2075
|
-
break;
|
|
2076
|
-
|
|
2077
|
-
case "major":
|
|
2078
|
-
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
2079
|
-
this.major++;
|
|
2080
|
-
}
|
|
2081
|
-
this.minor = 0;
|
|
2082
|
-
this.patch = 0;
|
|
2083
|
-
this.prerelease = [];
|
|
2084
|
-
break;
|
|
2085
|
-
|
|
2086
|
-
case "minor":
|
|
2087
|
-
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
2088
|
-
this.minor++;
|
|
2218
|
+
if (eqSet.size > 1) {
|
|
2219
|
+
return null;
|
|
2220
|
+
}
|
|
2221
|
+
let gtltComp;
|
|
2222
|
+
if (gt && lt) {
|
|
2223
|
+
gtltComp = compare(gt.semver, lt.semver, options);
|
|
2224
|
+
if (gtltComp > 0) {
|
|
2225
|
+
return null;
|
|
2226
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
2227
|
+
return null;
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
for (const eq of eqSet) {
|
|
2231
|
+
if (gt && !satisfies(eq, String(gt), options)) {
|
|
2232
|
+
return null;
|
|
2233
|
+
}
|
|
2234
|
+
if (lt && !satisfies(eq, String(lt), options)) {
|
|
2235
|
+
return null;
|
|
2236
|
+
}
|
|
2237
|
+
for (const c of dom) {
|
|
2238
|
+
if (!satisfies(eq, String(c), options)) {
|
|
2239
|
+
return false;
|
|
2089
2240
|
}
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2241
|
+
}
|
|
2242
|
+
return true;
|
|
2243
|
+
}
|
|
2244
|
+
let higher, lower;
|
|
2245
|
+
let hasDomLT, hasDomGT;
|
|
2246
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
2247
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
2248
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
2249
|
+
needDomLTPre = false;
|
|
2250
|
+
}
|
|
2251
|
+
for (const c of dom) {
|
|
2252
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
2253
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
2254
|
+
if (gt) {
|
|
2255
|
+
if (needDomGTPre) {
|
|
2256
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
2257
|
+
needDomGTPre = false;
|
|
2258
|
+
}
|
|
2097
2259
|
}
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
{
|
|
2103
|
-
const base = Number(identifierBase) ? 1 : 0;
|
|
2104
|
-
if (!identifier && identifierBase === false) {
|
|
2105
|
-
throw new Error("invalid increment argument: identifier is empty");
|
|
2260
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
2261
|
+
higher = higherGT(gt, c, options);
|
|
2262
|
+
if (higher === c && higher !== gt) {
|
|
2263
|
+
return false;
|
|
2106
2264
|
}
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
}
|
|
2116
|
-
}
|
|
2117
|
-
if (i === -1) {
|
|
2118
|
-
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
2119
|
-
throw new Error("invalid increment argument: identifier already exists");
|
|
2120
|
-
}
|
|
2121
|
-
this.prerelease.push(base);
|
|
2122
|
-
}
|
|
2265
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
2266
|
+
return false;
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
if (lt) {
|
|
2270
|
+
if (needDomLTPre) {
|
|
2271
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
2272
|
+
needDomLTPre = false;
|
|
2123
2273
|
}
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
2130
|
-
if (isNaN(this.prerelease[1])) {
|
|
2131
|
-
this.prerelease = prerelease;
|
|
2132
|
-
}
|
|
2133
|
-
} else {
|
|
2134
|
-
this.prerelease = prerelease;
|
|
2135
|
-
}
|
|
2274
|
+
}
|
|
2275
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
2276
|
+
lower = lowerLT(lt, c, options);
|
|
2277
|
+
if (lower === c && lower !== lt) {
|
|
2278
|
+
return false;
|
|
2136
2279
|
}
|
|
2137
|
-
|
|
2280
|
+
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
|
|
2281
|
+
return false;
|
|
2138
2282
|
}
|
|
2139
|
-
|
|
2140
|
-
default:
|
|
2141
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
2142
2283
|
}
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
this.raw += `+${this.build.join(".")}`;
|
|
2284
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
2285
|
+
return false;
|
|
2146
2286
|
}
|
|
2147
|
-
return this;
|
|
2148
2287
|
}
|
|
2149
|
-
|
|
2150
|
-
|
|
2288
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
2289
|
+
return false;
|
|
2290
|
+
}
|
|
2291
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
2292
|
+
return false;
|
|
2293
|
+
}
|
|
2294
|
+
if (needDomGTPre || needDomLTPre) {
|
|
2295
|
+
return false;
|
|
2296
|
+
}
|
|
2297
|
+
return true;
|
|
2298
|
+
};
|
|
2299
|
+
const higherGT = (a, b, options) => {
|
|
2300
|
+
if (!a) {
|
|
2301
|
+
return b;
|
|
2302
|
+
}
|
|
2303
|
+
const comp = compare(a.semver, b.semver, options);
|
|
2304
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
2305
|
+
};
|
|
2306
|
+
const lowerLT = (a, b, options) => {
|
|
2307
|
+
if (!a) {
|
|
2308
|
+
return b;
|
|
2309
|
+
}
|
|
2310
|
+
const comp = compare(a.semver, b.semver, options);
|
|
2311
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
2312
|
+
};
|
|
2313
|
+
module.exports = subset;
|
|
2151
2314
|
},
|
|
2152
2315
|
4592: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2153
2316
|
const parse = __webpack_require__(3770);
|
|
@@ -2157,118 +2320,158 @@ var __webpack_modules__ = {
|
|
|
2157
2320
|
};
|
|
2158
2321
|
module.exports = clean;
|
|
2159
2322
|
},
|
|
2160
|
-
|
|
2323
|
+
4932: module => {
|
|
2324
|
+
"use strict";
|
|
2325
|
+
const stringReplaceAll = (string, substring, replacer) => {
|
|
2326
|
+
let index = string.indexOf(substring);
|
|
2327
|
+
if (index === -1) {
|
|
2328
|
+
return string;
|
|
2329
|
+
}
|
|
2330
|
+
const substringLength = substring.length;
|
|
2331
|
+
let endIndex = 0;
|
|
2332
|
+
let returnValue = "";
|
|
2333
|
+
do {
|
|
2334
|
+
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
|
2335
|
+
endIndex = index + substringLength;
|
|
2336
|
+
index = string.indexOf(substring, endIndex);
|
|
2337
|
+
} while (index !== -1);
|
|
2338
|
+
returnValue += string.substr(endIndex);
|
|
2339
|
+
return returnValue;
|
|
2340
|
+
};
|
|
2341
|
+
const stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
|
2342
|
+
let endIndex = 0;
|
|
2343
|
+
let returnValue = "";
|
|
2344
|
+
do {
|
|
2345
|
+
const gotCR = string[index - 1] === "\r";
|
|
2346
|
+
returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
2347
|
+
endIndex = index + 1;
|
|
2348
|
+
index = string.indexOf("\n", endIndex);
|
|
2349
|
+
} while (index !== -1);
|
|
2350
|
+
returnValue += string.substr(endIndex);
|
|
2351
|
+
return returnValue;
|
|
2352
|
+
};
|
|
2353
|
+
module.exports = {
|
|
2354
|
+
stringReplaceAll,
|
|
2355
|
+
stringEncaseCRLFWithFirstIndex
|
|
2356
|
+
};
|
|
2357
|
+
},
|
|
2358
|
+
5003: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2359
|
+
const parse = __webpack_require__(3770);
|
|
2360
|
+
const prerelease = (version, options) => {
|
|
2361
|
+
const parsed = parse(version, options);
|
|
2362
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
2363
|
+
};
|
|
2364
|
+
module.exports = prerelease;
|
|
2365
|
+
},
|
|
2366
|
+
5063: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2367
|
+
const compareBuild = __webpack_require__(8471);
|
|
2368
|
+
const rsort = (list, loose) => list.sort(((a, b) => compareBuild(b, a, loose)));
|
|
2369
|
+
module.exports = rsort;
|
|
2370
|
+
},
|
|
2371
|
+
5169: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2372
|
+
const compare = __webpack_require__(6278);
|
|
2373
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
2374
|
+
module.exports = lt;
|
|
2375
|
+
},
|
|
2376
|
+
5263: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2377
|
+
const internalRe = __webpack_require__(928);
|
|
2378
|
+
const constants = __webpack_require__(3932);
|
|
2379
|
+
const SemVer = __webpack_require__(8038);
|
|
2380
|
+
const identifiers = __webpack_require__(6741);
|
|
2381
|
+
const parse = __webpack_require__(3770);
|
|
2382
|
+
const valid = __webpack_require__(1519);
|
|
2383
|
+
const clean = __webpack_require__(4592);
|
|
2384
|
+
const inc = __webpack_require__(305);
|
|
2385
|
+
const diff = __webpack_require__(5782);
|
|
2386
|
+
const major = __webpack_require__(6680);
|
|
2387
|
+
const minor = __webpack_require__(7748);
|
|
2388
|
+
const patch = __webpack_require__(6219);
|
|
2389
|
+
const prerelease = __webpack_require__(5003);
|
|
2390
|
+
const compare = __webpack_require__(6278);
|
|
2391
|
+
const rcompare = __webpack_require__(3360);
|
|
2392
|
+
const compareLoose = __webpack_require__(3949);
|
|
2393
|
+
const compareBuild = __webpack_require__(8471);
|
|
2394
|
+
const sort = __webpack_require__(2393);
|
|
2395
|
+
const rsort = __webpack_require__(5063);
|
|
2396
|
+
const gt = __webpack_require__(6670);
|
|
2397
|
+
const lt = __webpack_require__(5169);
|
|
2161
2398
|
const eq = __webpack_require__(8935);
|
|
2162
2399
|
const neq = __webpack_require__(8661);
|
|
2163
|
-
const gt = __webpack_require__(6670);
|
|
2164
2400
|
const gte = __webpack_require__(6999);
|
|
2165
|
-
const lt = __webpack_require__(5169);
|
|
2166
2401
|
const lte = __webpack_require__(9746);
|
|
2167
|
-
const cmp = (
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
if (!options.rtl) {
|
|
2230
|
-
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
2231
|
-
} else {
|
|
2232
|
-
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
2233
|
-
let next;
|
|
2234
|
-
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
2235
|
-
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
2236
|
-
match = next;
|
|
2237
|
-
}
|
|
2238
|
-
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
2239
|
-
}
|
|
2240
|
-
coerceRtlRegex.lastIndex = -1;
|
|
2241
|
-
}
|
|
2242
|
-
if (match === null) {
|
|
2243
|
-
return null;
|
|
2244
|
-
}
|
|
2245
|
-
const major = match[2];
|
|
2246
|
-
const minor = match[3] || "0";
|
|
2247
|
-
const patch = match[4] || "0";
|
|
2248
|
-
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
2249
|
-
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
2250
|
-
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
2251
|
-
};
|
|
2252
|
-
module.exports = coerce;
|
|
2253
|
-
},
|
|
2254
|
-
8471: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2255
|
-
const SemVer = __webpack_require__(8038);
|
|
2256
|
-
const compareBuild = (a, b, loose) => {
|
|
2257
|
-
const versionA = new SemVer(a, loose);
|
|
2258
|
-
const versionB = new SemVer(b, loose);
|
|
2259
|
-
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
2402
|
+
const cmp = __webpack_require__(1005);
|
|
2403
|
+
const coerce = __webpack_require__(3328);
|
|
2404
|
+
const Comparator = __webpack_require__(3114);
|
|
2405
|
+
const Range = __webpack_require__(3597);
|
|
2406
|
+
const satisfies = __webpack_require__(6336);
|
|
2407
|
+
const toComparators = __webpack_require__(9533);
|
|
2408
|
+
const maxSatisfying = __webpack_require__(274);
|
|
2409
|
+
const minSatisfying = __webpack_require__(9304);
|
|
2410
|
+
const minVersion = __webpack_require__(7955);
|
|
2411
|
+
const validRange = __webpack_require__(7348);
|
|
2412
|
+
const outside = __webpack_require__(2641);
|
|
2413
|
+
const gtr = __webpack_require__(7369);
|
|
2414
|
+
const ltr = __webpack_require__(9024);
|
|
2415
|
+
const intersects = __webpack_require__(8474);
|
|
2416
|
+
const simplifyRange = __webpack_require__(6927);
|
|
2417
|
+
const subset = __webpack_require__(4302);
|
|
2418
|
+
module.exports = {
|
|
2419
|
+
parse,
|
|
2420
|
+
valid,
|
|
2421
|
+
clean,
|
|
2422
|
+
inc,
|
|
2423
|
+
diff,
|
|
2424
|
+
major,
|
|
2425
|
+
minor,
|
|
2426
|
+
patch,
|
|
2427
|
+
prerelease,
|
|
2428
|
+
compare,
|
|
2429
|
+
rcompare,
|
|
2430
|
+
compareLoose,
|
|
2431
|
+
compareBuild,
|
|
2432
|
+
sort,
|
|
2433
|
+
rsort,
|
|
2434
|
+
gt,
|
|
2435
|
+
lt,
|
|
2436
|
+
eq,
|
|
2437
|
+
neq,
|
|
2438
|
+
gte,
|
|
2439
|
+
lte,
|
|
2440
|
+
cmp,
|
|
2441
|
+
coerce,
|
|
2442
|
+
Comparator,
|
|
2443
|
+
Range,
|
|
2444
|
+
satisfies,
|
|
2445
|
+
toComparators,
|
|
2446
|
+
maxSatisfying,
|
|
2447
|
+
minSatisfying,
|
|
2448
|
+
minVersion,
|
|
2449
|
+
validRange,
|
|
2450
|
+
outside,
|
|
2451
|
+
gtr,
|
|
2452
|
+
ltr,
|
|
2453
|
+
intersects,
|
|
2454
|
+
simplifyRange,
|
|
2455
|
+
subset,
|
|
2456
|
+
SemVer,
|
|
2457
|
+
re: internalRe.re,
|
|
2458
|
+
src: internalRe.src,
|
|
2459
|
+
tokens: internalRe.t,
|
|
2460
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
2461
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
2462
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
2463
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
2260
2464
|
};
|
|
2261
|
-
module.exports = compareBuild;
|
|
2262
2465
|
},
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
const
|
|
2266
|
-
|
|
2466
|
+
5276: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2467
|
+
"use strict";
|
|
2468
|
+
const index_1 = __webpack_require__(8261);
|
|
2469
|
+
(0, index_1.checkNode)();
|
|
2470
|
+
module.exports = {};
|
|
2267
2471
|
},
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
module.exports = compare;
|
|
2472
|
+
5317: module => {
|
|
2473
|
+
"use strict";
|
|
2474
|
+
module.exports = require("child_process");
|
|
2272
2475
|
},
|
|
2273
2476
|
5782: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2274
2477
|
const parse = __webpack_require__(3770);
|
|
@@ -2288,13 +2491,12 @@ var __webpack_modules__ = {
|
|
|
2288
2491
|
if (!lowVersion.patch && !lowVersion.minor) {
|
|
2289
2492
|
return "major";
|
|
2290
2493
|
}
|
|
2291
|
-
if (highVersion
|
|
2494
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
2495
|
+
if (lowVersion.minor && !lowVersion.patch) {
|
|
2496
|
+
return "minor";
|
|
2497
|
+
}
|
|
2292
2498
|
return "patch";
|
|
2293
2499
|
}
|
|
2294
|
-
if (highVersion.minor) {
|
|
2295
|
-
return "minor";
|
|
2296
|
-
}
|
|
2297
|
-
return "major";
|
|
2298
2500
|
}
|
|
2299
2501
|
const prefix = highHasPre ? "pre" : "";
|
|
2300
2502
|
if (v1.major !== v2.major) {
|
|
@@ -2310,101 +2512,183 @@ var __webpack_modules__ = {
|
|
|
2310
2512
|
};
|
|
2311
2513
|
module.exports = diff;
|
|
2312
2514
|
},
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
const
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
const
|
|
2320
|
-
const
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
const compare = __webpack_require__(6278);
|
|
2325
|
-
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
2326
|
-
module.exports = gte;
|
|
2327
|
-
},
|
|
2328
|
-
305: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2329
|
-
const SemVer = __webpack_require__(8038);
|
|
2330
|
-
const inc = (version, release, options, identifier, identifierBase) => {
|
|
2331
|
-
if (typeof options === "string") {
|
|
2332
|
-
identifierBase = identifier;
|
|
2333
|
-
identifier = options;
|
|
2334
|
-
options = undefined;
|
|
2335
|
-
}
|
|
2336
|
-
try {
|
|
2337
|
-
return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
|
2338
|
-
} catch (er) {
|
|
2339
|
-
return null;
|
|
2515
|
+
6042: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2516
|
+
"use strict";
|
|
2517
|
+
const ansiStyles = __webpack_require__(821);
|
|
2518
|
+
const {stdout: stdoutColor, stderr: stderrColor} = __webpack_require__(3533);
|
|
2519
|
+
const {stringReplaceAll, stringEncaseCRLFWithFirstIndex} = __webpack_require__(4932);
|
|
2520
|
+
const {isArray} = Array;
|
|
2521
|
+
const levelMapping = [ "ansi", "ansi", "ansi256", "ansi16m" ];
|
|
2522
|
+
const styles = Object.create(null);
|
|
2523
|
+
const applyOptions = (object, options = {}) => {
|
|
2524
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
2525
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
2340
2526
|
}
|
|
2527
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
2528
|
+
object.level = options.level === undefined ? colorLevel : options.level;
|
|
2341
2529
|
};
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
const compare = __webpack_require__(6278);
|
|
2346
|
-
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
2347
|
-
module.exports = lt;
|
|
2348
|
-
},
|
|
2349
|
-
9746: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2350
|
-
const compare = __webpack_require__(6278);
|
|
2351
|
-
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
2352
|
-
module.exports = lte;
|
|
2353
|
-
},
|
|
2354
|
-
6680: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2355
|
-
const SemVer = __webpack_require__(8038);
|
|
2356
|
-
const major = (a, loose) => new SemVer(a, loose).major;
|
|
2357
|
-
module.exports = major;
|
|
2358
|
-
},
|
|
2359
|
-
7748: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2360
|
-
const SemVer = __webpack_require__(8038);
|
|
2361
|
-
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
2362
|
-
module.exports = minor;
|
|
2363
|
-
},
|
|
2364
|
-
8661: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2365
|
-
const compare = __webpack_require__(6278);
|
|
2366
|
-
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
2367
|
-
module.exports = neq;
|
|
2368
|
-
},
|
|
2369
|
-
3770: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2370
|
-
const SemVer = __webpack_require__(8038);
|
|
2371
|
-
const parse = (version, options, throwErrors = false) => {
|
|
2372
|
-
if (version instanceof SemVer) {
|
|
2373
|
-
return version;
|
|
2374
|
-
}
|
|
2375
|
-
try {
|
|
2376
|
-
return new SemVer(version, options);
|
|
2377
|
-
} catch (er) {
|
|
2378
|
-
if (!throwErrors) {
|
|
2379
|
-
return null;
|
|
2380
|
-
}
|
|
2381
|
-
throw er;
|
|
2530
|
+
class ChalkClass {
|
|
2531
|
+
constructor(options) {
|
|
2532
|
+
return chalkFactory(options);
|
|
2382
2533
|
}
|
|
2383
|
-
}
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2534
|
+
}
|
|
2535
|
+
const chalkFactory = options => {
|
|
2536
|
+
const chalk = {};
|
|
2537
|
+
applyOptions(chalk, options);
|
|
2538
|
+
chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
|
|
2539
|
+
Object.setPrototypeOf(chalk, Chalk.prototype);
|
|
2540
|
+
Object.setPrototypeOf(chalk.template, chalk);
|
|
2541
|
+
chalk.template.constructor = () => {
|
|
2542
|
+
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
2543
|
+
};
|
|
2544
|
+
chalk.template.Instance = ChalkClass;
|
|
2545
|
+
return chalk.template;
|
|
2546
|
+
};
|
|
2547
|
+
function Chalk(options) {
|
|
2548
|
+
return chalkFactory(options);
|
|
2549
|
+
}
|
|
2550
|
+
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
|
2551
|
+
styles[styleName] = {
|
|
2552
|
+
get() {
|
|
2553
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
|
|
2554
|
+
Object.defineProperty(this, styleName, {
|
|
2555
|
+
value: builder
|
|
2556
|
+
});
|
|
2557
|
+
return builder;
|
|
2558
|
+
}
|
|
2559
|
+
};
|
|
2560
|
+
}
|
|
2561
|
+
styles.visible = {
|
|
2562
|
+
get() {
|
|
2563
|
+
const builder = createBuilder(this, this._styler, true);
|
|
2564
|
+
Object.defineProperty(this, "visible", {
|
|
2565
|
+
value: builder
|
|
2566
|
+
});
|
|
2567
|
+
return builder;
|
|
2568
|
+
}
|
|
2569
|
+
};
|
|
2570
|
+
const usedModels = [ "rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256" ];
|
|
2571
|
+
for (const model of usedModels) {
|
|
2572
|
+
styles[model] = {
|
|
2573
|
+
get() {
|
|
2574
|
+
const {level} = this;
|
|
2575
|
+
return function(...arguments_) {
|
|
2576
|
+
const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
|
|
2577
|
+
return createBuilder(this, styler, this._isEmpty);
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
};
|
|
2581
|
+
}
|
|
2582
|
+
for (const model of usedModels) {
|
|
2583
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
2584
|
+
styles[bgModel] = {
|
|
2585
|
+
get() {
|
|
2586
|
+
const {level} = this;
|
|
2587
|
+
return function(...arguments_) {
|
|
2588
|
+
const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
|
|
2589
|
+
return createBuilder(this, styler, this._isEmpty);
|
|
2590
|
+
};
|
|
2591
|
+
}
|
|
2592
|
+
};
|
|
2593
|
+
}
|
|
2594
|
+
const proto = Object.defineProperties((() => {}), {
|
|
2595
|
+
...styles,
|
|
2596
|
+
level: {
|
|
2597
|
+
enumerable: true,
|
|
2598
|
+
get() {
|
|
2599
|
+
return this._generator.level;
|
|
2600
|
+
},
|
|
2601
|
+
set(level) {
|
|
2602
|
+
this._generator.level = level;
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
});
|
|
2606
|
+
const createStyler = (open, close, parent) => {
|
|
2607
|
+
let openAll;
|
|
2608
|
+
let closeAll;
|
|
2609
|
+
if (parent === undefined) {
|
|
2610
|
+
openAll = open;
|
|
2611
|
+
closeAll = close;
|
|
2612
|
+
} else {
|
|
2613
|
+
openAll = parent.openAll + open;
|
|
2614
|
+
closeAll = close + parent.closeAll;
|
|
2615
|
+
}
|
|
2616
|
+
return {
|
|
2617
|
+
open,
|
|
2618
|
+
close,
|
|
2619
|
+
openAll,
|
|
2620
|
+
closeAll,
|
|
2621
|
+
parent
|
|
2622
|
+
};
|
|
2623
|
+
};
|
|
2624
|
+
const createBuilder = (self, _styler, _isEmpty) => {
|
|
2625
|
+
const builder = (...arguments_) => {
|
|
2626
|
+
if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
|
|
2627
|
+
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
|
2628
|
+
}
|
|
2629
|
+
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
2630
|
+
};
|
|
2631
|
+
Object.setPrototypeOf(builder, proto);
|
|
2632
|
+
builder._generator = self;
|
|
2633
|
+
builder._styler = _styler;
|
|
2634
|
+
builder._isEmpty = _isEmpty;
|
|
2635
|
+
return builder;
|
|
2636
|
+
};
|
|
2637
|
+
const applyStyle = (self, string) => {
|
|
2638
|
+
if (self.level <= 0 || !string) {
|
|
2639
|
+
return self._isEmpty ? "" : string;
|
|
2640
|
+
}
|
|
2641
|
+
let styler = self._styler;
|
|
2642
|
+
if (styler === undefined) {
|
|
2643
|
+
return string;
|
|
2644
|
+
}
|
|
2645
|
+
const {openAll, closeAll} = styler;
|
|
2646
|
+
if (string.indexOf("") !== -1) {
|
|
2647
|
+
while (styler !== undefined) {
|
|
2648
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
2649
|
+
styler = styler.parent;
|
|
2650
|
+
}
|
|
2651
|
+
}
|
|
2652
|
+
const lfIndex = string.indexOf("\n");
|
|
2653
|
+
if (lfIndex !== -1) {
|
|
2654
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
2655
|
+
}
|
|
2656
|
+
return openAll + string + closeAll;
|
|
2657
|
+
};
|
|
2658
|
+
let template;
|
|
2659
|
+
const chalkTag = (chalk, ...strings) => {
|
|
2660
|
+
const [firstString] = strings;
|
|
2661
|
+
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
2662
|
+
return strings.join(" ");
|
|
2663
|
+
}
|
|
2664
|
+
const arguments_ = strings.slice(1);
|
|
2665
|
+
const parts = [ firstString.raw[0] ];
|
|
2666
|
+
for (let i = 1; i < firstString.length; i++) {
|
|
2667
|
+
parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
|
|
2668
|
+
}
|
|
2669
|
+
if (template === undefined) {
|
|
2670
|
+
template = __webpack_require__(8993);
|
|
2671
|
+
}
|
|
2672
|
+
return template(chalk, parts.join(""));
|
|
2673
|
+
};
|
|
2674
|
+
Object.defineProperties(Chalk.prototype, styles);
|
|
2675
|
+
const chalk = Chalk();
|
|
2676
|
+
chalk.supportsColor = stdoutColor;
|
|
2677
|
+
chalk.stderr = Chalk({
|
|
2678
|
+
level: stderrColor ? stderrColor.level : 0
|
|
2679
|
+
});
|
|
2680
|
+
chalk.stderr.supportsColor = stderrColor;
|
|
2681
|
+
module.exports = chalk;
|
|
2682
|
+
},
|
|
2683
|
+
6219: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2387
2684
|
const SemVer = __webpack_require__(8038);
|
|
2388
2685
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
2389
2686
|
module.exports = patch;
|
|
2390
2687
|
},
|
|
2391
|
-
|
|
2392
|
-
const
|
|
2393
|
-
const
|
|
2394
|
-
|
|
2395
|
-
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
2396
|
-
};
|
|
2397
|
-
module.exports = prerelease;
|
|
2398
|
-
},
|
|
2399
|
-
3360: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2400
|
-
const compare = __webpack_require__(6278);
|
|
2401
|
-
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
2402
|
-
module.exports = rcompare;
|
|
2403
|
-
},
|
|
2404
|
-
5063: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2405
|
-
const compareBuild = __webpack_require__(8471);
|
|
2406
|
-
const rsort = (list, loose) => list.sort(((a, b) => compareBuild(b, a, loose)));
|
|
2407
|
-
module.exports = rsort;
|
|
2688
|
+
6278: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2689
|
+
const SemVer = __webpack_require__(8038);
|
|
2690
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
2691
|
+
module.exports = compare;
|
|
2408
2692
|
},
|
|
2409
2693
|
6336: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2410
2694
|
const Range = __webpack_require__(3597);
|
|
@@ -2418,852 +2702,437 @@ var __webpack_modules__ = {
|
|
|
2418
2702
|
};
|
|
2419
2703
|
module.exports = satisfies;
|
|
2420
2704
|
},
|
|
2421
|
-
|
|
2422
|
-
const
|
|
2423
|
-
const
|
|
2424
|
-
module.exports =
|
|
2705
|
+
6670: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2706
|
+
const compare = __webpack_require__(6278);
|
|
2707
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
2708
|
+
module.exports = gt;
|
|
2425
2709
|
},
|
|
2426
|
-
|
|
2427
|
-
const
|
|
2428
|
-
const
|
|
2429
|
-
|
|
2430
|
-
|
|
2710
|
+
6680: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2711
|
+
const SemVer = __webpack_require__(8038);
|
|
2712
|
+
const major = (a, loose) => new SemVer(a, loose).major;
|
|
2713
|
+
module.exports = major;
|
|
2714
|
+
},
|
|
2715
|
+
6741: module => {
|
|
2716
|
+
const numeric = /^[0-9]+$/;
|
|
2717
|
+
const compareIdentifiers = (a, b) => {
|
|
2718
|
+
const anum = numeric.test(a);
|
|
2719
|
+
const bnum = numeric.test(b);
|
|
2720
|
+
if (anum && bnum) {
|
|
2721
|
+
a = +a;
|
|
2722
|
+
b = +b;
|
|
2723
|
+
}
|
|
2724
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
2725
|
+
};
|
|
2726
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
2727
|
+
module.exports = {
|
|
2728
|
+
compareIdentifiers,
|
|
2729
|
+
rcompareIdentifiers
|
|
2431
2730
|
};
|
|
2432
|
-
module.exports = valid;
|
|
2433
2731
|
},
|
|
2434
|
-
|
|
2435
|
-
const
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
const
|
|
2439
|
-
const
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
const compareBuild = __webpack_require__(8471);
|
|
2452
|
-
const sort = __webpack_require__(2393);
|
|
2453
|
-
const rsort = __webpack_require__(5063);
|
|
2454
|
-
const gt = __webpack_require__(6670);
|
|
2455
|
-
const lt = __webpack_require__(5169);
|
|
2456
|
-
const eq = __webpack_require__(8935);
|
|
2457
|
-
const neq = __webpack_require__(8661);
|
|
2458
|
-
const gte = __webpack_require__(6999);
|
|
2459
|
-
const lte = __webpack_require__(9746);
|
|
2460
|
-
const cmp = __webpack_require__(1005);
|
|
2461
|
-
const coerce = __webpack_require__(3328);
|
|
2462
|
-
const Comparator = __webpack_require__(3114);
|
|
2463
|
-
const Range = __webpack_require__(3597);
|
|
2732
|
+
6837: module => {
|
|
2733
|
+
const looseOption = Object.freeze({
|
|
2734
|
+
loose: true
|
|
2735
|
+
});
|
|
2736
|
+
const emptyOpts = Object.freeze({});
|
|
2737
|
+
const parseOptions = options => {
|
|
2738
|
+
if (!options) {
|
|
2739
|
+
return emptyOpts;
|
|
2740
|
+
}
|
|
2741
|
+
if (typeof options !== "object") {
|
|
2742
|
+
return looseOption;
|
|
2743
|
+
}
|
|
2744
|
+
return options;
|
|
2745
|
+
};
|
|
2746
|
+
module.exports = parseOptions;
|
|
2747
|
+
},
|
|
2748
|
+
6927: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2464
2749
|
const satisfies = __webpack_require__(6336);
|
|
2465
|
-
const
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
minVersion,
|
|
2507
|
-
validRange,
|
|
2508
|
-
outside,
|
|
2509
|
-
gtr,
|
|
2510
|
-
ltr,
|
|
2511
|
-
intersects,
|
|
2512
|
-
simplifyRange,
|
|
2513
|
-
subset,
|
|
2514
|
-
SemVer,
|
|
2515
|
-
re: internalRe.re,
|
|
2516
|
-
src: internalRe.src,
|
|
2517
|
-
tokens: internalRe.t,
|
|
2518
|
-
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
2519
|
-
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
2520
|
-
compareIdentifiers: identifiers.compareIdentifiers,
|
|
2521
|
-
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
2750
|
+
const compare = __webpack_require__(6278);
|
|
2751
|
+
module.exports = (versions, range, options) => {
|
|
2752
|
+
const set = [];
|
|
2753
|
+
let first = null;
|
|
2754
|
+
let prev = null;
|
|
2755
|
+
const v = versions.sort(((a, b) => compare(a, b, options)));
|
|
2756
|
+
for (const version of v) {
|
|
2757
|
+
const included = satisfies(version, range, options);
|
|
2758
|
+
if (included) {
|
|
2759
|
+
prev = version;
|
|
2760
|
+
if (!first) {
|
|
2761
|
+
first = version;
|
|
2762
|
+
}
|
|
2763
|
+
} else {
|
|
2764
|
+
if (prev) {
|
|
2765
|
+
set.push([ first, prev ]);
|
|
2766
|
+
}
|
|
2767
|
+
prev = null;
|
|
2768
|
+
first = null;
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
if (first) {
|
|
2772
|
+
set.push([ first, null ]);
|
|
2773
|
+
}
|
|
2774
|
+
const ranges = [];
|
|
2775
|
+
for (const [min, max] of set) {
|
|
2776
|
+
if (min === max) {
|
|
2777
|
+
ranges.push(min);
|
|
2778
|
+
} else if (!max && min === v[0]) {
|
|
2779
|
+
ranges.push("*");
|
|
2780
|
+
} else if (!max) {
|
|
2781
|
+
ranges.push(`>=${min}`);
|
|
2782
|
+
} else if (min === v[0]) {
|
|
2783
|
+
ranges.push(`<=${max}`);
|
|
2784
|
+
} else {
|
|
2785
|
+
ranges.push(`${min} - ${max}`);
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
const simplified = ranges.join(" || ");
|
|
2789
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
2790
|
+
return simplified.length < original.length ? simplified : range;
|
|
2522
2791
|
};
|
|
2523
2792
|
},
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
2528
|
-
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
2529
|
-
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
2530
|
-
const RELEASE_TYPES = [ "major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease" ];
|
|
2531
|
-
module.exports = {
|
|
2532
|
-
MAX_LENGTH,
|
|
2533
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
2534
|
-
MAX_SAFE_BUILD_LENGTH,
|
|
2535
|
-
MAX_SAFE_INTEGER,
|
|
2536
|
-
RELEASE_TYPES,
|
|
2537
|
-
SEMVER_SPEC_VERSION,
|
|
2538
|
-
FLAG_INCLUDE_PRERELEASE: 1,
|
|
2539
|
-
FLAG_LOOSE: 2
|
|
2540
|
-
};
|
|
2793
|
+
6928: module => {
|
|
2794
|
+
"use strict";
|
|
2795
|
+
module.exports = require("path");
|
|
2541
2796
|
},
|
|
2542
|
-
|
|
2543
|
-
const
|
|
2544
|
-
|
|
2797
|
+
6999: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2798
|
+
const compare = __webpack_require__(6278);
|
|
2799
|
+
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
2800
|
+
module.exports = gte;
|
|
2545
2801
|
},
|
|
2546
|
-
|
|
2547
|
-
const
|
|
2548
|
-
const
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
b = +b;
|
|
2802
|
+
7348: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2803
|
+
const Range = __webpack_require__(3597);
|
|
2804
|
+
const validRange = (range, options) => {
|
|
2805
|
+
try {
|
|
2806
|
+
return new Range(range, options).range || "*";
|
|
2807
|
+
} catch (er) {
|
|
2808
|
+
return null;
|
|
2554
2809
|
}
|
|
2555
|
-
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
2556
|
-
};
|
|
2557
|
-
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
2558
|
-
module.exports = {
|
|
2559
|
-
compareIdentifiers,
|
|
2560
|
-
rcompareIdentifiers
|
|
2561
2810
|
};
|
|
2811
|
+
module.exports = validRange;
|
|
2562
2812
|
},
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2813
|
+
7369: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2814
|
+
const outside = __webpack_require__(2641);
|
|
2815
|
+
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
2816
|
+
module.exports = gtr;
|
|
2817
|
+
},
|
|
2818
|
+
7748: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2819
|
+
const SemVer = __webpack_require__(8038);
|
|
2820
|
+
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
2821
|
+
module.exports = minor;
|
|
2822
|
+
},
|
|
2823
|
+
7955: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2824
|
+
const SemVer = __webpack_require__(8038);
|
|
2825
|
+
const Range = __webpack_require__(3597);
|
|
2826
|
+
const gt = __webpack_require__(6670);
|
|
2827
|
+
const minVersion = (range, loose) => {
|
|
2828
|
+
range = new Range(range, loose);
|
|
2829
|
+
let minver = new SemVer("0.0.0");
|
|
2830
|
+
if (range.test(minver)) {
|
|
2831
|
+
return minver;
|
|
2578
2832
|
}
|
|
2579
|
-
|
|
2580
|
-
|
|
2833
|
+
minver = new SemVer("0.0.0-0");
|
|
2834
|
+
if (range.test(minver)) {
|
|
2835
|
+
return minver;
|
|
2581
2836
|
}
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2837
|
+
minver = null;
|
|
2838
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
2839
|
+
const comparators = range.set[i];
|
|
2840
|
+
let setMin = null;
|
|
2841
|
+
comparators.forEach((comparator => {
|
|
2842
|
+
const compver = new SemVer(comparator.semver.version);
|
|
2843
|
+
switch (comparator.operator) {
|
|
2844
|
+
case ">":
|
|
2845
|
+
if (compver.prerelease.length === 0) {
|
|
2846
|
+
compver.patch++;
|
|
2847
|
+
} else {
|
|
2848
|
+
compver.prerelease.push(0);
|
|
2849
|
+
}
|
|
2850
|
+
compver.raw = compver.format();
|
|
2851
|
+
|
|
2852
|
+
case "":
|
|
2853
|
+
case ">=":
|
|
2854
|
+
if (!setMin || gt(compver, setMin)) {
|
|
2855
|
+
setMin = compver;
|
|
2856
|
+
}
|
|
2857
|
+
break;
|
|
2858
|
+
|
|
2859
|
+
case "<":
|
|
2860
|
+
case "<=":
|
|
2861
|
+
break;
|
|
2862
|
+
|
|
2863
|
+
default:
|
|
2864
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
2588
2865
|
}
|
|
2589
|
-
|
|
2866
|
+
}));
|
|
2867
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
2868
|
+
minver = setMin;
|
|
2590
2869
|
}
|
|
2591
|
-
return this;
|
|
2592
|
-
}
|
|
2593
|
-
}
|
|
2594
|
-
module.exports = LRUCache;
|
|
2595
|
-
},
|
|
2596
|
-
6837: module => {
|
|
2597
|
-
const looseOption = Object.freeze({
|
|
2598
|
-
loose: true
|
|
2599
|
-
});
|
|
2600
|
-
const emptyOpts = Object.freeze({});
|
|
2601
|
-
const parseOptions = options => {
|
|
2602
|
-
if (!options) {
|
|
2603
|
-
return emptyOpts;
|
|
2604
2870
|
}
|
|
2605
|
-
if (
|
|
2606
|
-
return
|
|
2871
|
+
if (minver && range.test(minver)) {
|
|
2872
|
+
return minver;
|
|
2607
2873
|
}
|
|
2608
|
-
return
|
|
2874
|
+
return null;
|
|
2609
2875
|
};
|
|
2610
|
-
module.exports =
|
|
2876
|
+
module.exports = minVersion;
|
|
2611
2877
|
},
|
|
2612
|
-
|
|
2613
|
-
const {MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH} = __webpack_require__(3932);
|
|
2878
|
+
8038: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2614
2879
|
const debug = __webpack_require__(4122);
|
|
2615
|
-
|
|
2616
|
-
const re
|
|
2617
|
-
const
|
|
2618
|
-
const
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
return value;
|
|
2628
|
-
};
|
|
2629
|
-
const createToken = (name, value, isGlobal) => {
|
|
2630
|
-
const safe = makeSafeRegex(value);
|
|
2631
|
-
const index = R++;
|
|
2632
|
-
debug(name, index, value);
|
|
2633
|
-
t[name] = index;
|
|
2634
|
-
src[index] = value;
|
|
2635
|
-
re[index] = new RegExp(value, isGlobal ? "g" : undefined);
|
|
2636
|
-
safeRe[index] = new RegExp(safe, isGlobal ? "g" : undefined);
|
|
2637
|
-
};
|
|
2638
|
-
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
2639
|
-
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
2640
|
-
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
2641
|
-
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})\\.` + `(${src[t.NUMERICIDENTIFIER]})`);
|
|
2642
|
-
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
2643
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
2644
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
2645
|
-
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
2646
|
-
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
2647
|
-
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
2648
|
-
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
2649
|
-
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
2650
|
-
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
2651
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
2652
|
-
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
2653
|
-
createToken("GTLT", "((?:<|>)?=?)");
|
|
2654
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
2655
|
-
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
2656
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + `(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?` + `)?)?`);
|
|
2657
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?` + `)?)?`);
|
|
2658
|
-
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
2659
|
-
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
2660
|
-
createToken("COERCEPLAIN", `${"(^|[^\\d])" + "(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
2661
|
-
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
2662
|
-
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?` + `(?:${src[t.BUILD]})?` + `(?:$|[^\\d])`);
|
|
2663
|
-
createToken("COERCERTL", src[t.COERCE], true);
|
|
2664
|
-
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
2665
|
-
createToken("LONETILDE", "(?:~>?)");
|
|
2666
|
-
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
2667
|
-
exports.tildeTrimReplace = "$1~";
|
|
2668
|
-
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
2669
|
-
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
2670
|
-
createToken("LONECARET", "(?:\\^)");
|
|
2671
|
-
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
2672
|
-
exports.caretTrimReplace = "$1^";
|
|
2673
|
-
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
2674
|
-
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
2675
|
-
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
2676
|
-
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
2677
|
-
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
2678
|
-
exports.comparatorTrimReplace = "$1$2$3";
|
|
2679
|
-
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})` + `\\s+-\\s+` + `(${src[t.XRANGEPLAIN]})` + `\\s*$`);
|
|
2680
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + `\\s+-\\s+` + `(${src[t.XRANGEPLAINLOOSE]})` + `\\s*$`);
|
|
2681
|
-
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
2682
|
-
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
2683
|
-
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
2684
|
-
},
|
|
2685
|
-
7369: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2686
|
-
const outside = __webpack_require__(2641);
|
|
2687
|
-
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
2688
|
-
module.exports = gtr;
|
|
2689
|
-
},
|
|
2690
|
-
8474: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2691
|
-
const Range = __webpack_require__(3597);
|
|
2692
|
-
const intersects = (r1, r2, options) => {
|
|
2693
|
-
r1 = new Range(r1, options);
|
|
2694
|
-
r2 = new Range(r2, options);
|
|
2695
|
-
return r1.intersects(r2, options);
|
|
2696
|
-
};
|
|
2697
|
-
module.exports = intersects;
|
|
2698
|
-
},
|
|
2699
|
-
9024: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2700
|
-
const outside = __webpack_require__(2641);
|
|
2701
|
-
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
2702
|
-
module.exports = ltr;
|
|
2703
|
-
},
|
|
2704
|
-
274: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2705
|
-
const SemVer = __webpack_require__(8038);
|
|
2706
|
-
const Range = __webpack_require__(3597);
|
|
2707
|
-
const maxSatisfying = (versions, range, options) => {
|
|
2708
|
-
let max = null;
|
|
2709
|
-
let maxSV = null;
|
|
2710
|
-
let rangeObj = null;
|
|
2711
|
-
try {
|
|
2712
|
-
rangeObj = new Range(range, options);
|
|
2713
|
-
} catch (er) {
|
|
2714
|
-
return null;
|
|
2715
|
-
}
|
|
2716
|
-
versions.forEach((v => {
|
|
2717
|
-
if (rangeObj.test(v)) {
|
|
2718
|
-
if (!max || maxSV.compare(v) === -1) {
|
|
2719
|
-
max = v;
|
|
2720
|
-
maxSV = new SemVer(max, options);
|
|
2721
|
-
}
|
|
2722
|
-
}
|
|
2723
|
-
}));
|
|
2724
|
-
return max;
|
|
2725
|
-
};
|
|
2726
|
-
module.exports = maxSatisfying;
|
|
2727
|
-
},
|
|
2728
|
-
9304: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2729
|
-
const SemVer = __webpack_require__(8038);
|
|
2730
|
-
const Range = __webpack_require__(3597);
|
|
2731
|
-
const minSatisfying = (versions, range, options) => {
|
|
2732
|
-
let min = null;
|
|
2733
|
-
let minSV = null;
|
|
2734
|
-
let rangeObj = null;
|
|
2735
|
-
try {
|
|
2736
|
-
rangeObj = new Range(range, options);
|
|
2737
|
-
} catch (er) {
|
|
2738
|
-
return null;
|
|
2739
|
-
}
|
|
2740
|
-
versions.forEach((v => {
|
|
2741
|
-
if (rangeObj.test(v)) {
|
|
2742
|
-
if (!min || minSV.compare(v) === 1) {
|
|
2743
|
-
min = v;
|
|
2744
|
-
minSV = new SemVer(min, options);
|
|
2745
|
-
}
|
|
2746
|
-
}
|
|
2747
|
-
}));
|
|
2748
|
-
return min;
|
|
2749
|
-
};
|
|
2750
|
-
module.exports = minSatisfying;
|
|
2751
|
-
},
|
|
2752
|
-
7955: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2753
|
-
const SemVer = __webpack_require__(8038);
|
|
2754
|
-
const Range = __webpack_require__(3597);
|
|
2755
|
-
const gt = __webpack_require__(6670);
|
|
2756
|
-
const minVersion = (range, loose) => {
|
|
2757
|
-
range = new Range(range, loose);
|
|
2758
|
-
let minver = new SemVer("0.0.0");
|
|
2759
|
-
if (range.test(minver)) {
|
|
2760
|
-
return minver;
|
|
2761
|
-
}
|
|
2762
|
-
minver = new SemVer("0.0.0-0");
|
|
2763
|
-
if (range.test(minver)) {
|
|
2764
|
-
return minver;
|
|
2765
|
-
}
|
|
2766
|
-
minver = null;
|
|
2767
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
2768
|
-
const comparators = range.set[i];
|
|
2769
|
-
let setMin = null;
|
|
2770
|
-
comparators.forEach((comparator => {
|
|
2771
|
-
const compver = new SemVer(comparator.semver.version);
|
|
2772
|
-
switch (comparator.operator) {
|
|
2773
|
-
case ">":
|
|
2774
|
-
if (compver.prerelease.length === 0) {
|
|
2775
|
-
compver.patch++;
|
|
2776
|
-
} else {
|
|
2777
|
-
compver.prerelease.push(0);
|
|
2778
|
-
}
|
|
2779
|
-
compver.raw = compver.format();
|
|
2780
|
-
|
|
2781
|
-
case "":
|
|
2782
|
-
case ">=":
|
|
2783
|
-
if (!setMin || gt(compver, setMin)) {
|
|
2784
|
-
setMin = compver;
|
|
2785
|
-
}
|
|
2786
|
-
break;
|
|
2787
|
-
|
|
2788
|
-
case "<":
|
|
2789
|
-
case "<=":
|
|
2790
|
-
break;
|
|
2791
|
-
|
|
2792
|
-
default:
|
|
2793
|
-
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
2794
|
-
}
|
|
2795
|
-
}));
|
|
2796
|
-
if (setMin && (!minver || gt(minver, setMin))) {
|
|
2797
|
-
minver = setMin;
|
|
2798
|
-
}
|
|
2799
|
-
}
|
|
2800
|
-
if (minver && range.test(minver)) {
|
|
2801
|
-
return minver;
|
|
2802
|
-
}
|
|
2803
|
-
return null;
|
|
2804
|
-
};
|
|
2805
|
-
module.exports = minVersion;
|
|
2806
|
-
},
|
|
2807
|
-
2641: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2808
|
-
const SemVer = __webpack_require__(8038);
|
|
2809
|
-
const Comparator = __webpack_require__(3114);
|
|
2810
|
-
const {ANY} = Comparator;
|
|
2811
|
-
const Range = __webpack_require__(3597);
|
|
2812
|
-
const satisfies = __webpack_require__(6336);
|
|
2813
|
-
const gt = __webpack_require__(6670);
|
|
2814
|
-
const lt = __webpack_require__(5169);
|
|
2815
|
-
const lte = __webpack_require__(9746);
|
|
2816
|
-
const gte = __webpack_require__(6999);
|
|
2817
|
-
const outside = (version, range, hilo, options) => {
|
|
2818
|
-
version = new SemVer(version, options);
|
|
2819
|
-
range = new Range(range, options);
|
|
2820
|
-
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
2821
|
-
switch (hilo) {
|
|
2822
|
-
case ">":
|
|
2823
|
-
gtfn = gt;
|
|
2824
|
-
ltefn = lte;
|
|
2825
|
-
ltfn = lt;
|
|
2826
|
-
comp = ">";
|
|
2827
|
-
ecomp = ">=";
|
|
2828
|
-
break;
|
|
2829
|
-
|
|
2830
|
-
case "<":
|
|
2831
|
-
gtfn = lt;
|
|
2832
|
-
ltefn = gte;
|
|
2833
|
-
ltfn = gt;
|
|
2834
|
-
comp = "<";
|
|
2835
|
-
ecomp = "<=";
|
|
2836
|
-
break;
|
|
2837
|
-
|
|
2838
|
-
default:
|
|
2839
|
-
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
2840
|
-
}
|
|
2841
|
-
if (satisfies(version, range, options)) {
|
|
2842
|
-
return false;
|
|
2843
|
-
}
|
|
2844
|
-
for (let i = 0; i < range.set.length; ++i) {
|
|
2845
|
-
const comparators = range.set[i];
|
|
2846
|
-
let high = null;
|
|
2847
|
-
let low = null;
|
|
2848
|
-
comparators.forEach((comparator => {
|
|
2849
|
-
if (comparator.semver === ANY) {
|
|
2850
|
-
comparator = new Comparator(">=0.0.0");
|
|
2851
|
-
}
|
|
2852
|
-
high = high || comparator;
|
|
2853
|
-
low = low || comparator;
|
|
2854
|
-
if (gtfn(comparator.semver, high.semver, options)) {
|
|
2855
|
-
high = comparator;
|
|
2856
|
-
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
2857
|
-
low = comparator;
|
|
2858
|
-
}
|
|
2859
|
-
}));
|
|
2860
|
-
if (high.operator === comp || high.operator === ecomp) {
|
|
2861
|
-
return false;
|
|
2862
|
-
}
|
|
2863
|
-
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
|
|
2864
|
-
return false;
|
|
2865
|
-
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
2866
|
-
return false;
|
|
2867
|
-
}
|
|
2868
|
-
}
|
|
2869
|
-
return true;
|
|
2870
|
-
};
|
|
2871
|
-
module.exports = outside;
|
|
2872
|
-
},
|
|
2873
|
-
6927: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2874
|
-
const satisfies = __webpack_require__(6336);
|
|
2875
|
-
const compare = __webpack_require__(6278);
|
|
2876
|
-
module.exports = (versions, range, options) => {
|
|
2877
|
-
const set = [];
|
|
2878
|
-
let first = null;
|
|
2879
|
-
let prev = null;
|
|
2880
|
-
const v = versions.sort(((a, b) => compare(a, b, options)));
|
|
2881
|
-
for (const version of v) {
|
|
2882
|
-
const included = satisfies(version, range, options);
|
|
2883
|
-
if (included) {
|
|
2884
|
-
prev = version;
|
|
2885
|
-
if (!first) {
|
|
2886
|
-
first = version;
|
|
2887
|
-
}
|
|
2888
|
-
} else {
|
|
2889
|
-
if (prev) {
|
|
2890
|
-
set.push([ first, prev ]);
|
|
2891
|
-
}
|
|
2892
|
-
prev = null;
|
|
2893
|
-
first = null;
|
|
2894
|
-
}
|
|
2895
|
-
}
|
|
2896
|
-
if (first) {
|
|
2897
|
-
set.push([ first, null ]);
|
|
2898
|
-
}
|
|
2899
|
-
const ranges = [];
|
|
2900
|
-
for (const [min, max] of set) {
|
|
2901
|
-
if (min === max) {
|
|
2902
|
-
ranges.push(min);
|
|
2903
|
-
} else if (!max && min === v[0]) {
|
|
2904
|
-
ranges.push("*");
|
|
2905
|
-
} else if (!max) {
|
|
2906
|
-
ranges.push(`>=${min}`);
|
|
2907
|
-
} else if (min === v[0]) {
|
|
2908
|
-
ranges.push(`<=${max}`);
|
|
2909
|
-
} else {
|
|
2910
|
-
ranges.push(`${min} - ${max}`);
|
|
2911
|
-
}
|
|
2912
|
-
}
|
|
2913
|
-
const simplified = ranges.join(" || ");
|
|
2914
|
-
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
2915
|
-
return simplified.length < original.length ? simplified : range;
|
|
2916
|
-
};
|
|
2917
|
-
},
|
|
2918
|
-
4302: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
2919
|
-
const Range = __webpack_require__(3597);
|
|
2920
|
-
const Comparator = __webpack_require__(3114);
|
|
2921
|
-
const {ANY} = Comparator;
|
|
2922
|
-
const satisfies = __webpack_require__(6336);
|
|
2923
|
-
const compare = __webpack_require__(6278);
|
|
2924
|
-
const subset = (sub, dom, options = {}) => {
|
|
2925
|
-
if (sub === dom) {
|
|
2926
|
-
return true;
|
|
2927
|
-
}
|
|
2928
|
-
sub = new Range(sub, options);
|
|
2929
|
-
dom = new Range(dom, options);
|
|
2930
|
-
let sawNonNull = false;
|
|
2931
|
-
OUTER: for (const simpleSub of sub.set) {
|
|
2932
|
-
for (const simpleDom of dom.set) {
|
|
2933
|
-
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
2934
|
-
sawNonNull = sawNonNull || isSub !== null;
|
|
2935
|
-
if (isSub) {
|
|
2936
|
-
continue OUTER;
|
|
2937
|
-
}
|
|
2938
|
-
}
|
|
2939
|
-
if (sawNonNull) {
|
|
2940
|
-
return false;
|
|
2941
|
-
}
|
|
2942
|
-
}
|
|
2943
|
-
return true;
|
|
2944
|
-
};
|
|
2945
|
-
const minimumVersionWithPreRelease = [ new Comparator(">=0.0.0-0") ];
|
|
2946
|
-
const minimumVersion = [ new Comparator(">=0.0.0") ];
|
|
2947
|
-
const simpleSubset = (sub, dom, options) => {
|
|
2948
|
-
if (sub === dom) {
|
|
2949
|
-
return true;
|
|
2950
|
-
}
|
|
2951
|
-
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
2952
|
-
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
2953
|
-
return true;
|
|
2954
|
-
} else if (options.includePrerelease) {
|
|
2955
|
-
sub = minimumVersionWithPreRelease;
|
|
2956
|
-
} else {
|
|
2957
|
-
sub = minimumVersion;
|
|
2958
|
-
}
|
|
2959
|
-
}
|
|
2960
|
-
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
2961
|
-
if (options.includePrerelease) {
|
|
2962
|
-
return true;
|
|
2963
|
-
} else {
|
|
2964
|
-
dom = minimumVersion;
|
|
2965
|
-
}
|
|
2966
|
-
}
|
|
2967
|
-
const eqSet = new Set;
|
|
2968
|
-
let gt, lt;
|
|
2969
|
-
for (const c of sub) {
|
|
2970
|
-
if (c.operator === ">" || c.operator === ">=") {
|
|
2971
|
-
gt = higherGT(gt, c, options);
|
|
2972
|
-
} else if (c.operator === "<" || c.operator === "<=") {
|
|
2973
|
-
lt = lowerLT(lt, c, options);
|
|
2974
|
-
} else {
|
|
2975
|
-
eqSet.add(c.semver);
|
|
2976
|
-
}
|
|
2977
|
-
}
|
|
2978
|
-
if (eqSet.size > 1) {
|
|
2979
|
-
return null;
|
|
2980
|
-
}
|
|
2981
|
-
let gtltComp;
|
|
2982
|
-
if (gt && lt) {
|
|
2983
|
-
gtltComp = compare(gt.semver, lt.semver, options);
|
|
2984
|
-
if (gtltComp > 0) {
|
|
2985
|
-
return null;
|
|
2986
|
-
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
2987
|
-
return null;
|
|
2988
|
-
}
|
|
2989
|
-
}
|
|
2990
|
-
for (const eq of eqSet) {
|
|
2991
|
-
if (gt && !satisfies(eq, String(gt), options)) {
|
|
2992
|
-
return null;
|
|
2993
|
-
}
|
|
2994
|
-
if (lt && !satisfies(eq, String(lt), options)) {
|
|
2995
|
-
return null;
|
|
2996
|
-
}
|
|
2997
|
-
for (const c of dom) {
|
|
2998
|
-
if (!satisfies(eq, String(c), options)) {
|
|
2999
|
-
return false;
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
return true;
|
|
3003
|
-
}
|
|
3004
|
-
let higher, lower;
|
|
3005
|
-
let hasDomLT, hasDomGT;
|
|
3006
|
-
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
3007
|
-
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
3008
|
-
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
3009
|
-
needDomLTPre = false;
|
|
3010
|
-
}
|
|
3011
|
-
for (const c of dom) {
|
|
3012
|
-
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
3013
|
-
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
3014
|
-
if (gt) {
|
|
3015
|
-
if (needDomGTPre) {
|
|
3016
|
-
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
3017
|
-
needDomGTPre = false;
|
|
3018
|
-
}
|
|
3019
|
-
}
|
|
3020
|
-
if (c.operator === ">" || c.operator === ">=") {
|
|
3021
|
-
higher = higherGT(gt, c, options);
|
|
3022
|
-
if (higher === c && higher !== gt) {
|
|
3023
|
-
return false;
|
|
3024
|
-
}
|
|
3025
|
-
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
3026
|
-
return false;
|
|
2880
|
+
const {MAX_LENGTH, MAX_SAFE_INTEGER} = __webpack_require__(3932);
|
|
2881
|
+
const {safeRe: re, safeSrc: src, t} = __webpack_require__(928);
|
|
2882
|
+
const parseOptions = __webpack_require__(6837);
|
|
2883
|
+
const {compareIdentifiers} = __webpack_require__(6741);
|
|
2884
|
+
class SemVer {
|
|
2885
|
+
constructor(version, options) {
|
|
2886
|
+
options = parseOptions(options);
|
|
2887
|
+
if (version instanceof SemVer) {
|
|
2888
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
2889
|
+
return version;
|
|
2890
|
+
} else {
|
|
2891
|
+
version = version.version;
|
|
3027
2892
|
}
|
|
2893
|
+
} else if (typeof version !== "string") {
|
|
2894
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
3028
2895
|
}
|
|
3029
|
-
if (
|
|
3030
|
-
|
|
3031
|
-
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
3032
|
-
needDomLTPre = false;
|
|
3033
|
-
}
|
|
3034
|
-
}
|
|
3035
|
-
if (c.operator === "<" || c.operator === "<=") {
|
|
3036
|
-
lower = lowerLT(lt, c, options);
|
|
3037
|
-
if (lower === c && lower !== lt) {
|
|
3038
|
-
return false;
|
|
3039
|
-
}
|
|
3040
|
-
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
|
|
3041
|
-
return false;
|
|
3042
|
-
}
|
|
2896
|
+
if (version.length > MAX_LENGTH) {
|
|
2897
|
+
throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
3043
2898
|
}
|
|
3044
|
-
|
|
3045
|
-
|
|
2899
|
+
debug("SemVer", version, options);
|
|
2900
|
+
this.options = options;
|
|
2901
|
+
this.loose = !!options.loose;
|
|
2902
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
2903
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
2904
|
+
if (!m) {
|
|
2905
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
3046
2906
|
}
|
|
2907
|
+
this.raw = version;
|
|
2908
|
+
this.major = +m[1];
|
|
2909
|
+
this.minor = +m[2];
|
|
2910
|
+
this.patch = +m[3];
|
|
2911
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
2912
|
+
throw new TypeError("Invalid major version");
|
|
2913
|
+
}
|
|
2914
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
2915
|
+
throw new TypeError("Invalid minor version");
|
|
2916
|
+
}
|
|
2917
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
2918
|
+
throw new TypeError("Invalid patch version");
|
|
2919
|
+
}
|
|
2920
|
+
if (!m[4]) {
|
|
2921
|
+
this.prerelease = [];
|
|
2922
|
+
} else {
|
|
2923
|
+
this.prerelease = m[4].split(".").map((id => {
|
|
2924
|
+
if (/^[0-9]+$/.test(id)) {
|
|
2925
|
+
const num = +id;
|
|
2926
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
2927
|
+
return num;
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
return id;
|
|
2931
|
+
}));
|
|
2932
|
+
}
|
|
2933
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
2934
|
+
this.format();
|
|
3047
2935
|
}
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
if (needDomGTPre || needDomLTPre) {
|
|
3055
|
-
return false;
|
|
3056
|
-
}
|
|
3057
|
-
return true;
|
|
3058
|
-
};
|
|
3059
|
-
const higherGT = (a, b, options) => {
|
|
3060
|
-
if (!a) {
|
|
3061
|
-
return b;
|
|
3062
|
-
}
|
|
3063
|
-
const comp = compare(a.semver, b.semver, options);
|
|
3064
|
-
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
3065
|
-
};
|
|
3066
|
-
const lowerLT = (a, b, options) => {
|
|
3067
|
-
if (!a) {
|
|
3068
|
-
return b;
|
|
3069
|
-
}
|
|
3070
|
-
const comp = compare(a.semver, b.semver, options);
|
|
3071
|
-
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
3072
|
-
};
|
|
3073
|
-
module.exports = subset;
|
|
3074
|
-
},
|
|
3075
|
-
9533: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3076
|
-
const Range = __webpack_require__(3597);
|
|
3077
|
-
const toComparators = (range, options) => new Range(range, options).set.map((comp => comp.map((c => c.value)).join(" ").trim().split(" ")));
|
|
3078
|
-
module.exports = toComparators;
|
|
3079
|
-
},
|
|
3080
|
-
7348: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3081
|
-
const Range = __webpack_require__(3597);
|
|
3082
|
-
const validRange = (range, options) => {
|
|
3083
|
-
try {
|
|
3084
|
-
return new Range(range, options).range || "*";
|
|
3085
|
-
} catch (er) {
|
|
3086
|
-
return null;
|
|
3087
|
-
}
|
|
3088
|
-
};
|
|
3089
|
-
module.exports = validRange;
|
|
3090
|
-
},
|
|
3091
|
-
3533: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3092
|
-
"use strict";
|
|
3093
|
-
const os = __webpack_require__(857);
|
|
3094
|
-
const tty = __webpack_require__(2018);
|
|
3095
|
-
const hasFlag = __webpack_require__(9614);
|
|
3096
|
-
const {env} = process;
|
|
3097
|
-
let forceColor;
|
|
3098
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
3099
|
-
forceColor = 0;
|
|
3100
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
3101
|
-
forceColor = 1;
|
|
3102
|
-
}
|
|
3103
|
-
if ("FORCE_COLOR" in env) {
|
|
3104
|
-
if (env.FORCE_COLOR === "true") {
|
|
3105
|
-
forceColor = 1;
|
|
3106
|
-
} else if (env.FORCE_COLOR === "false") {
|
|
3107
|
-
forceColor = 0;
|
|
3108
|
-
} else {
|
|
3109
|
-
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
3110
|
-
}
|
|
3111
|
-
}
|
|
3112
|
-
function translateLevel(level) {
|
|
3113
|
-
if (level === 0) {
|
|
3114
|
-
return false;
|
|
3115
|
-
}
|
|
3116
|
-
return {
|
|
3117
|
-
level,
|
|
3118
|
-
hasBasic: true,
|
|
3119
|
-
has256: level >= 2,
|
|
3120
|
-
has16m: level >= 3
|
|
3121
|
-
};
|
|
3122
|
-
}
|
|
3123
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
3124
|
-
if (forceColor === 0) {
|
|
3125
|
-
return 0;
|
|
3126
|
-
}
|
|
3127
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
3128
|
-
return 3;
|
|
3129
|
-
}
|
|
3130
|
-
if (hasFlag("color=256")) {
|
|
3131
|
-
return 2;
|
|
2936
|
+
format() {
|
|
2937
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
2938
|
+
if (this.prerelease.length) {
|
|
2939
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
2940
|
+
}
|
|
2941
|
+
return this.version;
|
|
3132
2942
|
}
|
|
3133
|
-
|
|
3134
|
-
return
|
|
2943
|
+
toString() {
|
|
2944
|
+
return this.version;
|
|
3135
2945
|
}
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
2946
|
+
compare(other) {
|
|
2947
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
2948
|
+
if (!(other instanceof SemVer)) {
|
|
2949
|
+
if (typeof other === "string" && other === this.version) {
|
|
2950
|
+
return 0;
|
|
2951
|
+
}
|
|
2952
|
+
other = new SemVer(other, this.options);
|
|
2953
|
+
}
|
|
2954
|
+
if (other.version === this.version) {
|
|
2955
|
+
return 0;
|
|
2956
|
+
}
|
|
2957
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
3139
2958
|
}
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2959
|
+
compareMain(other) {
|
|
2960
|
+
if (!(other instanceof SemVer)) {
|
|
2961
|
+
other = new SemVer(other, this.options);
|
|
3144
2962
|
}
|
|
3145
|
-
return
|
|
2963
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
3146
2964
|
}
|
|
3147
|
-
|
|
3148
|
-
if (
|
|
2965
|
+
comparePre(other) {
|
|
2966
|
+
if (!(other instanceof SemVer)) {
|
|
2967
|
+
other = new SemVer(other, this.options);
|
|
2968
|
+
}
|
|
2969
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
2970
|
+
return -1;
|
|
2971
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
3149
2972
|
return 1;
|
|
2973
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
2974
|
+
return 0;
|
|
3150
2975
|
}
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
2976
|
+
let i = 0;
|
|
2977
|
+
do {
|
|
2978
|
+
const a = this.prerelease[i];
|
|
2979
|
+
const b = other.prerelease[i];
|
|
2980
|
+
debug("prerelease compare", i, a, b);
|
|
2981
|
+
if (a === undefined && b === undefined) {
|
|
2982
|
+
return 0;
|
|
2983
|
+
} else if (b === undefined) {
|
|
2984
|
+
return 1;
|
|
2985
|
+
} else if (a === undefined) {
|
|
2986
|
+
return -1;
|
|
2987
|
+
} else if (a === b) {
|
|
2988
|
+
continue;
|
|
2989
|
+
} else {
|
|
2990
|
+
return compareIdentifiers(a, b);
|
|
2991
|
+
}
|
|
2992
|
+
} while (++i);
|
|
3158
2993
|
}
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
case "iTerm.app":
|
|
3163
|
-
return version >= 3 ? 3 : 2;
|
|
3164
|
-
|
|
3165
|
-
case "Apple_Terminal":
|
|
3166
|
-
return 2;
|
|
2994
|
+
compareBuild(other) {
|
|
2995
|
+
if (!(other instanceof SemVer)) {
|
|
2996
|
+
other = new SemVer(other, this.options);
|
|
3167
2997
|
}
|
|
2998
|
+
let i = 0;
|
|
2999
|
+
do {
|
|
3000
|
+
const a = this.build[i];
|
|
3001
|
+
const b = other.build[i];
|
|
3002
|
+
debug("build compare", i, a, b);
|
|
3003
|
+
if (a === undefined && b === undefined) {
|
|
3004
|
+
return 0;
|
|
3005
|
+
} else if (b === undefined) {
|
|
3006
|
+
return 1;
|
|
3007
|
+
} else if (a === undefined) {
|
|
3008
|
+
return -1;
|
|
3009
|
+
} else if (a === b) {
|
|
3010
|
+
continue;
|
|
3011
|
+
} else {
|
|
3012
|
+
return compareIdentifiers(a, b);
|
|
3013
|
+
}
|
|
3014
|
+
} while (++i);
|
|
3168
3015
|
}
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3016
|
+
inc(release, identifier, identifierBase) {
|
|
3017
|
+
if (release.startsWith("pre")) {
|
|
3018
|
+
if (!identifier && identifierBase === false) {
|
|
3019
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
3020
|
+
}
|
|
3021
|
+
if (identifier) {
|
|
3022
|
+
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`);
|
|
3023
|
+
const match = `-${identifier}`.match(r);
|
|
3024
|
+
if (!match || match[1] !== identifier) {
|
|
3025
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
switch (release) {
|
|
3030
|
+
case "premajor":
|
|
3031
|
+
this.prerelease.length = 0;
|
|
3032
|
+
this.patch = 0;
|
|
3033
|
+
this.minor = 0;
|
|
3034
|
+
this.major++;
|
|
3035
|
+
this.inc("pre", identifier, identifierBase);
|
|
3036
|
+
break;
|
|
3037
|
+
|
|
3038
|
+
case "preminor":
|
|
3039
|
+
this.prerelease.length = 0;
|
|
3040
|
+
this.patch = 0;
|
|
3041
|
+
this.minor++;
|
|
3042
|
+
this.inc("pre", identifier, identifierBase);
|
|
3043
|
+
break;
|
|
3044
|
+
|
|
3045
|
+
case "prepatch":
|
|
3046
|
+
this.prerelease.length = 0;
|
|
3047
|
+
this.inc("patch", identifier, identifierBase);
|
|
3048
|
+
this.inc("pre", identifier, identifierBase);
|
|
3049
|
+
break;
|
|
3050
|
+
|
|
3051
|
+
case "prerelease":
|
|
3052
|
+
if (this.prerelease.length === 0) {
|
|
3053
|
+
this.inc("patch", identifier, identifierBase);
|
|
3054
|
+
}
|
|
3055
|
+
this.inc("pre", identifier, identifierBase);
|
|
3056
|
+
break;
|
|
3057
|
+
|
|
3058
|
+
case "release":
|
|
3059
|
+
if (this.prerelease.length === 0) {
|
|
3060
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
3061
|
+
}
|
|
3062
|
+
this.prerelease.length = 0;
|
|
3063
|
+
break;
|
|
3064
|
+
|
|
3065
|
+
case "major":
|
|
3066
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
3067
|
+
this.major++;
|
|
3068
|
+
}
|
|
3069
|
+
this.minor = 0;
|
|
3070
|
+
this.patch = 0;
|
|
3071
|
+
this.prerelease = [];
|
|
3072
|
+
break;
|
|
3073
|
+
|
|
3074
|
+
case "minor":
|
|
3075
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
3076
|
+
this.minor++;
|
|
3077
|
+
}
|
|
3078
|
+
this.patch = 0;
|
|
3079
|
+
this.prerelease = [];
|
|
3080
|
+
break;
|
|
3081
|
+
|
|
3082
|
+
case "patch":
|
|
3083
|
+
if (this.prerelease.length === 0) {
|
|
3084
|
+
this.patch++;
|
|
3085
|
+
}
|
|
3086
|
+
this.prerelease = [];
|
|
3087
|
+
break;
|
|
3088
|
+
|
|
3089
|
+
case "pre":
|
|
3090
|
+
{
|
|
3091
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
3092
|
+
if (this.prerelease.length === 0) {
|
|
3093
|
+
this.prerelease = [ base ];
|
|
3094
|
+
} else {
|
|
3095
|
+
let i = this.prerelease.length;
|
|
3096
|
+
while (--i >= 0) {
|
|
3097
|
+
if (typeof this.prerelease[i] === "number") {
|
|
3098
|
+
this.prerelease[i]++;
|
|
3099
|
+
i = -2;
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3102
|
+
if (i === -1) {
|
|
3103
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
3104
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
3105
|
+
}
|
|
3106
|
+
this.prerelease.push(base);
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
if (identifier) {
|
|
3110
|
+
let prerelease = [ identifier, base ];
|
|
3111
|
+
if (identifierBase === false) {
|
|
3112
|
+
prerelease = [ identifier ];
|
|
3113
|
+
}
|
|
3114
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
3115
|
+
if (isNaN(this.prerelease[1])) {
|
|
3116
|
+
this.prerelease = prerelease;
|
|
3117
|
+
}
|
|
3118
|
+
} else {
|
|
3119
|
+
this.prerelease = prerelease;
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
break;
|
|
3219
3123
|
}
|
|
3124
|
+
|
|
3125
|
+
default:
|
|
3126
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
3220
3127
|
}
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
}
|
|
3225
|
-
|
|
3226
|
-
toString() {
|
|
3227
|
-
const eolInfo = this.endOfLifeDate ? ` (Planned end-of-life: ${this.endOfLifeDate.toISOString().slice(0, 10)})` : "";
|
|
3228
|
-
return `${this.supportedRange.raw}${eolInfo}`;
|
|
3128
|
+
this.raw = this.format();
|
|
3129
|
+
if (this.build.length) {
|
|
3130
|
+
this.raw += `+${this.build.join(".")}`;
|
|
3131
|
+
}
|
|
3132
|
+
return this;
|
|
3229
3133
|
}
|
|
3230
3134
|
}
|
|
3231
|
-
exports
|
|
3232
|
-
NodeRelease.DEPRECATION_WINDOW_MS = 30 * ONE_DAY_IN_MILLISECONDS;
|
|
3233
|
-
NodeRelease.ALL_RELEASES = [ ...[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ].map((majorVersion => new NodeRelease(majorVersion, {
|
|
3234
|
-
endOfLife: true
|
|
3235
|
-
}))), new NodeRelease(12, {
|
|
3236
|
-
endOfLife: new Date("2022-04-30"),
|
|
3237
|
-
supportedRange: "^12.7.0"
|
|
3238
|
-
}), new NodeRelease(13, {
|
|
3239
|
-
endOfLife: new Date("2020-06-01"),
|
|
3240
|
-
untested: true
|
|
3241
|
-
}), new NodeRelease(14, {
|
|
3242
|
-
endOfLife: new Date("2023-04-30"),
|
|
3243
|
-
supportedRange: "^14.17.0"
|
|
3244
|
-
}), new NodeRelease(15, {
|
|
3245
|
-
endOfLife: new Date("2021-06-01"),
|
|
3246
|
-
untested: true
|
|
3247
|
-
}), new NodeRelease(16, {
|
|
3248
|
-
endOfLife: new Date("2023-09-11"),
|
|
3249
|
-
supportedRange: "^16.3.0"
|
|
3250
|
-
}), new NodeRelease(17, {
|
|
3251
|
-
endOfLife: new Date("2022-06-01"),
|
|
3252
|
-
supportedRange: "^17.3.0",
|
|
3253
|
-
untested: true
|
|
3254
|
-
}), new NodeRelease(19, {
|
|
3255
|
-
endOfLife: new Date("2023-06-01"),
|
|
3256
|
-
untested: true
|
|
3257
|
-
}), new NodeRelease(21, {
|
|
3258
|
-
endOfLife: new Date("2024-06-01"),
|
|
3259
|
-
untested: true
|
|
3260
|
-
}), new NodeRelease(18, {
|
|
3261
|
-
endOfLife: new Date("2025-04-30")
|
|
3262
|
-
}), new NodeRelease(20, {
|
|
3263
|
-
endOfLife: new Date("2026-04-30")
|
|
3264
|
-
}), new NodeRelease(22, {
|
|
3265
|
-
endOfLife: new Date("2027-04-30")
|
|
3266
|
-
}) ];
|
|
3135
|
+
module.exports = SemVer;
|
|
3267
3136
|
},
|
|
3268
3137
|
8261: (__unused_webpack_module, exports, __webpack_require__) => {
|
|
3269
3138
|
"use strict";
|
|
@@ -3325,35 +3194,183 @@ var __webpack_modules__ = {
|
|
|
3325
3194
|
}
|
|
3326
3195
|
exports.checkNode = checkNode;
|
|
3327
3196
|
},
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
const
|
|
3331
|
-
|
|
3332
|
-
|
|
3197
|
+
8471: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3198
|
+
const SemVer = __webpack_require__(8038);
|
|
3199
|
+
const compareBuild = (a, b, loose) => {
|
|
3200
|
+
const versionA = new SemVer(a, loose);
|
|
3201
|
+
const versionB = new SemVer(b, loose);
|
|
3202
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
3203
|
+
};
|
|
3204
|
+
module.exports = compareBuild;
|
|
3333
3205
|
},
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3206
|
+
8474: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3207
|
+
const Range = __webpack_require__(3597);
|
|
3208
|
+
const intersects = (r1, r2, options) => {
|
|
3209
|
+
r1 = new Range(r1, options);
|
|
3210
|
+
r2 = new Range(r2, options);
|
|
3211
|
+
return r1.intersects(r2, options);
|
|
3212
|
+
};
|
|
3213
|
+
module.exports = intersects;
|
|
3337
3214
|
},
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3215
|
+
8661: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3216
|
+
const compare = __webpack_require__(6278);
|
|
3217
|
+
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
3218
|
+
module.exports = neq;
|
|
3341
3219
|
},
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3220
|
+
8935: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3221
|
+
const compare = __webpack_require__(6278);
|
|
3222
|
+
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
3223
|
+
module.exports = eq;
|
|
3345
3224
|
},
|
|
3346
|
-
|
|
3225
|
+
8993: module => {
|
|
3347
3226
|
"use strict";
|
|
3348
|
-
|
|
3227
|
+
const TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
3228
|
+
const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
3229
|
+
const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
3230
|
+
const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
|
3231
|
+
const ESCAPES = new Map([ [ "n", "\n" ], [ "r", "\r" ], [ "t", "\t" ], [ "b", "\b" ], [ "f", "\f" ], [ "v", "\v" ], [ "0", "\0" ], [ "\\", "\\" ], [ "e", "" ], [ "a", "" ] ]);
|
|
3232
|
+
function unescape(c) {
|
|
3233
|
+
const u = c[0] === "u";
|
|
3234
|
+
const bracket = c[1] === "{";
|
|
3235
|
+
if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
3236
|
+
return String.fromCharCode(parseInt(c.slice(1), 16));
|
|
3237
|
+
}
|
|
3238
|
+
if (u && bracket) {
|
|
3239
|
+
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
|
3240
|
+
}
|
|
3241
|
+
return ESCAPES.get(c) || c;
|
|
3242
|
+
}
|
|
3243
|
+
function parseArguments(name, arguments_) {
|
|
3244
|
+
const results = [];
|
|
3245
|
+
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
3246
|
+
let matches;
|
|
3247
|
+
for (const chunk of chunks) {
|
|
3248
|
+
const number = Number(chunk);
|
|
3249
|
+
if (!Number.isNaN(number)) {
|
|
3250
|
+
results.push(number);
|
|
3251
|
+
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
3252
|
+
results.push(matches[2].replace(ESCAPE_REGEX, ((m, escape, character) => escape ? unescape(escape) : character)));
|
|
3253
|
+
} else {
|
|
3254
|
+
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
3255
|
+
}
|
|
3256
|
+
}
|
|
3257
|
+
return results;
|
|
3258
|
+
}
|
|
3259
|
+
function parseStyle(style) {
|
|
3260
|
+
STYLE_REGEX.lastIndex = 0;
|
|
3261
|
+
const results = [];
|
|
3262
|
+
let matches;
|
|
3263
|
+
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
3264
|
+
const name = matches[1];
|
|
3265
|
+
if (matches[2]) {
|
|
3266
|
+
const args = parseArguments(name, matches[2]);
|
|
3267
|
+
results.push([ name ].concat(args));
|
|
3268
|
+
} else {
|
|
3269
|
+
results.push([ name ]);
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
return results;
|
|
3273
|
+
}
|
|
3274
|
+
function buildStyle(chalk, styles) {
|
|
3275
|
+
const enabled = {};
|
|
3276
|
+
for (const layer of styles) {
|
|
3277
|
+
for (const style of layer.styles) {
|
|
3278
|
+
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
3279
|
+
}
|
|
3280
|
+
}
|
|
3281
|
+
let current = chalk;
|
|
3282
|
+
for (const [styleName, styles] of Object.entries(enabled)) {
|
|
3283
|
+
if (!Array.isArray(styles)) {
|
|
3284
|
+
continue;
|
|
3285
|
+
}
|
|
3286
|
+
if (!(styleName in current)) {
|
|
3287
|
+
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
3288
|
+
}
|
|
3289
|
+
current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
|
|
3290
|
+
}
|
|
3291
|
+
return current;
|
|
3292
|
+
}
|
|
3293
|
+
module.exports = (chalk, temporary) => {
|
|
3294
|
+
const styles = [];
|
|
3295
|
+
const chunks = [];
|
|
3296
|
+
let chunk = [];
|
|
3297
|
+
temporary.replace(TEMPLATE_REGEX, ((m, escapeCharacter, inverse, style, close, character) => {
|
|
3298
|
+
if (escapeCharacter) {
|
|
3299
|
+
chunk.push(unescape(escapeCharacter));
|
|
3300
|
+
} else if (style) {
|
|
3301
|
+
const string = chunk.join("");
|
|
3302
|
+
chunk = [];
|
|
3303
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
|
3304
|
+
styles.push({
|
|
3305
|
+
inverse,
|
|
3306
|
+
styles: parseStyle(style)
|
|
3307
|
+
});
|
|
3308
|
+
} else if (close) {
|
|
3309
|
+
if (styles.length === 0) {
|
|
3310
|
+
throw new Error("Found extraneous } in Chalk template literal");
|
|
3311
|
+
}
|
|
3312
|
+
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
|
3313
|
+
chunk = [];
|
|
3314
|
+
styles.pop();
|
|
3315
|
+
} else {
|
|
3316
|
+
chunk.push(character);
|
|
3317
|
+
}
|
|
3318
|
+
}));
|
|
3319
|
+
chunks.push(chunk.join(""));
|
|
3320
|
+
if (styles.length > 0) {
|
|
3321
|
+
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
3322
|
+
throw new Error(errMessage);
|
|
3323
|
+
}
|
|
3324
|
+
return chunks.join("");
|
|
3325
|
+
};
|
|
3349
3326
|
},
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3327
|
+
9024: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3328
|
+
const outside = __webpack_require__(2641);
|
|
3329
|
+
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
3330
|
+
module.exports = ltr;
|
|
3353
3331
|
},
|
|
3354
|
-
|
|
3332
|
+
9304: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3333
|
+
const SemVer = __webpack_require__(8038);
|
|
3334
|
+
const Range = __webpack_require__(3597);
|
|
3335
|
+
const minSatisfying = (versions, range, options) => {
|
|
3336
|
+
let min = null;
|
|
3337
|
+
let minSV = null;
|
|
3338
|
+
let rangeObj = null;
|
|
3339
|
+
try {
|
|
3340
|
+
rangeObj = new Range(range, options);
|
|
3341
|
+
} catch (er) {
|
|
3342
|
+
return null;
|
|
3343
|
+
}
|
|
3344
|
+
versions.forEach((v => {
|
|
3345
|
+
if (rangeObj.test(v)) {
|
|
3346
|
+
if (!min || minSV.compare(v) === 1) {
|
|
3347
|
+
min = v;
|
|
3348
|
+
minSV = new SemVer(min, options);
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
}));
|
|
3352
|
+
return min;
|
|
3353
|
+
};
|
|
3354
|
+
module.exports = minSatisfying;
|
|
3355
|
+
},
|
|
3356
|
+
9533: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3357
|
+
const Range = __webpack_require__(3597);
|
|
3358
|
+
const toComparators = (range, options) => new Range(range, options).set.map((comp => comp.map((c => c.value)).join(" ").trim().split(" ")));
|
|
3359
|
+
module.exports = toComparators;
|
|
3360
|
+
},
|
|
3361
|
+
9614: module => {
|
|
3355
3362
|
"use strict";
|
|
3356
|
-
module.exports =
|
|
3363
|
+
module.exports = (flag, argv = process.argv) => {
|
|
3364
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
3365
|
+
const position = argv.indexOf(prefix + flag);
|
|
3366
|
+
const terminatorPosition = argv.indexOf("--");
|
|
3367
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
3368
|
+
};
|
|
3369
|
+
},
|
|
3370
|
+
9746: (module, __unused_webpack_exports, __webpack_require__) => {
|
|
3371
|
+
const compare = __webpack_require__(6278);
|
|
3372
|
+
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
3373
|
+
module.exports = lte;
|
|
3357
3374
|
}
|
|
3358
3375
|
};
|
|
3359
3376
|
|