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