@putout/bundle 4.6.10 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/putout.js +143 -2493
- package/bundle/putout.min.js +7 -7
- package/package.json +1 -1
package/bundle/putout.js
CHANGED
|
@@ -170,7 +170,7 @@ Item.prototype.run = function () {
|
|
|
170
170
|
};
|
|
171
171
|
var title = 'browser';
|
|
172
172
|
var platform = 'browser';
|
|
173
|
-
var browser
|
|
173
|
+
var browser = true;
|
|
174
174
|
var env = {};
|
|
175
175
|
var argv = [];
|
|
176
176
|
var version = ''; // empty string to avoid regexp issues
|
|
@@ -231,10 +231,10 @@ function uptime() {
|
|
|
231
231
|
return dif / 1000;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
var browser$1
|
|
234
|
+
var browser$1 = {
|
|
235
235
|
nextTick: nextTick,
|
|
236
236
|
title: title,
|
|
237
|
-
browser: browser
|
|
237
|
+
browser: browser,
|
|
238
238
|
env: env,
|
|
239
239
|
argv: argv,
|
|
240
240
|
version: version,
|
|
@@ -262,11 +262,11 @@ var _polyfillNode_process = /*#__PURE__*/Object.freeze({
|
|
|
262
262
|
addListener: addListener,
|
|
263
263
|
argv: argv,
|
|
264
264
|
binding: binding,
|
|
265
|
-
browser: browser
|
|
265
|
+
browser: browser,
|
|
266
266
|
chdir: chdir,
|
|
267
267
|
config: config,
|
|
268
268
|
cwd: cwd,
|
|
269
|
-
default: browser$1
|
|
269
|
+
default: browser$1,
|
|
270
270
|
emit: emit,
|
|
271
271
|
env: env,
|
|
272
272
|
hrtime: hrtime,
|
|
@@ -482,7 +482,7 @@ function write (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
482
482
|
|
|
483
483
|
var toString = {}.toString;
|
|
484
484
|
|
|
485
|
-
var isArray$
|
|
485
|
+
var isArray$f = Array.isArray || function (arr) {
|
|
486
486
|
return toString.call(arr) == '[object Array]';
|
|
487
487
|
};
|
|
488
488
|
|
|
@@ -766,7 +766,7 @@ function fromObject (that, obj) {
|
|
|
766
766
|
return fromArrayLike(that, obj)
|
|
767
767
|
}
|
|
768
768
|
|
|
769
|
-
if (obj.type === 'Buffer' && isArray$
|
|
769
|
+
if (obj.type === 'Buffer' && isArray$f(obj.data)) {
|
|
770
770
|
return fromArrayLike(that, obj.data)
|
|
771
771
|
}
|
|
772
772
|
}
|
|
@@ -783,7 +783,7 @@ function checked (length) {
|
|
|
783
783
|
}
|
|
784
784
|
return length | 0
|
|
785
785
|
}
|
|
786
|
-
Buffer.isBuffer = isBuffer
|
|
786
|
+
Buffer.isBuffer = isBuffer;
|
|
787
787
|
function internalIsBuffer (b) {
|
|
788
788
|
return !!(b != null && b._isBuffer)
|
|
789
789
|
}
|
|
@@ -831,7 +831,7 @@ Buffer.isEncoding = function isEncoding (encoding) {
|
|
|
831
831
|
};
|
|
832
832
|
|
|
833
833
|
Buffer.concat = function concat (list, length) {
|
|
834
|
-
if (!isArray$
|
|
834
|
+
if (!isArray$f(list)) {
|
|
835
835
|
throw new TypeError('"list" argument must be an Array of Buffers')
|
|
836
836
|
}
|
|
837
837
|
|
|
@@ -2249,7 +2249,7 @@ function isnan (val) {
|
|
|
2249
2249
|
// the following is from is-buffer, also by Feross Aboukhadijeh and with same lisence
|
|
2250
2250
|
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
2251
2251
|
// Object.prototype.constructor. Remove this eventually
|
|
2252
|
-
function isBuffer
|
|
2252
|
+
function isBuffer(obj) {
|
|
2253
2253
|
return obj != null && (!!obj._isBuffer || isFastBuffer(obj) || isSlowBuffer(obj))
|
|
2254
2254
|
}
|
|
2255
2255
|
|
|
@@ -2262,764 +2262,6 @@ function isSlowBuffer (obj) {
|
|
|
2262
2262
|
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isFastBuffer(obj.slice(0, 0))
|
|
2263
2263
|
}
|
|
2264
2264
|
|
|
2265
|
-
// MIT lisence
|
|
2266
|
-
// from https://github.com/substack/tty-browserify/blob/1ba769a6429d242f36226538835b4034bf6b7886/index.js
|
|
2267
|
-
|
|
2268
|
-
function isatty() {
|
|
2269
|
-
return false;
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
-
function ReadStream() {
|
|
2273
|
-
throw new Error('tty.ReadStream is not implemented');
|
|
2274
|
-
}
|
|
2275
|
-
|
|
2276
|
-
function WriteStream() {
|
|
2277
|
-
throw new Error('tty.ReadStream is not implemented');
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
var _polyfillNode_tty = {
|
|
2281
|
-
isatty: isatty,
|
|
2282
|
-
ReadStream: ReadStream,
|
|
2283
|
-
WriteStream: WriteStream
|
|
2284
|
-
};
|
|
2285
|
-
|
|
2286
|
-
var _polyfillNode_tty$1 = /*#__PURE__*/Object.freeze({
|
|
2287
|
-
__proto__: null,
|
|
2288
|
-
ReadStream: ReadStream,
|
|
2289
|
-
WriteStream: WriteStream,
|
|
2290
|
-
default: _polyfillNode_tty,
|
|
2291
|
-
isatty: isatty
|
|
2292
|
-
});
|
|
2293
|
-
|
|
2294
|
-
var require$$1$2 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_tty$1);
|
|
2295
|
-
|
|
2296
|
-
var inherits$1;
|
|
2297
|
-
if (typeof Object.create === 'function'){
|
|
2298
|
-
inherits$1 = function inherits(ctor, superCtor) {
|
|
2299
|
-
// implementation from standard node.js 'util' module
|
|
2300
|
-
ctor.super_ = superCtor;
|
|
2301
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
2302
|
-
constructor: {
|
|
2303
|
-
value: ctor,
|
|
2304
|
-
enumerable: false,
|
|
2305
|
-
writable: true,
|
|
2306
|
-
configurable: true
|
|
2307
|
-
}
|
|
2308
|
-
});
|
|
2309
|
-
};
|
|
2310
|
-
} else {
|
|
2311
|
-
inherits$1 = function inherits(ctor, superCtor) {
|
|
2312
|
-
ctor.super_ = superCtor;
|
|
2313
|
-
var TempCtor = function () {};
|
|
2314
|
-
TempCtor.prototype = superCtor.prototype;
|
|
2315
|
-
ctor.prototype = new TempCtor();
|
|
2316
|
-
ctor.prototype.constructor = ctor;
|
|
2317
|
-
};
|
|
2318
|
-
}
|
|
2319
|
-
|
|
2320
|
-
var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors ||
|
|
2321
|
-
function getOwnPropertyDescriptors(obj) {
|
|
2322
|
-
var keys = Object.keys(obj);
|
|
2323
|
-
var descriptors = {};
|
|
2324
|
-
for (var i = 0; i < keys.length; i++) {
|
|
2325
|
-
descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);
|
|
2326
|
-
}
|
|
2327
|
-
return descriptors;
|
|
2328
|
-
};
|
|
2329
|
-
|
|
2330
|
-
var formatRegExp = /%[sdj%]/g;
|
|
2331
|
-
function format(f) {
|
|
2332
|
-
if (!isString$f(f)) {
|
|
2333
|
-
var objects = [];
|
|
2334
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
2335
|
-
objects.push(inspect(arguments[i]));
|
|
2336
|
-
}
|
|
2337
|
-
return objects.join(' ');
|
|
2338
|
-
}
|
|
2339
|
-
|
|
2340
|
-
var i = 1;
|
|
2341
|
-
var args = arguments;
|
|
2342
|
-
var len = args.length;
|
|
2343
|
-
var str = String(f).replace(formatRegExp, function(x) {
|
|
2344
|
-
if (x === '%%') return '%';
|
|
2345
|
-
if (i >= len) return x;
|
|
2346
|
-
switch (x) {
|
|
2347
|
-
case '%s': return String(args[i++]);
|
|
2348
|
-
case '%d': return Number(args[i++]);
|
|
2349
|
-
case '%j':
|
|
2350
|
-
try {
|
|
2351
|
-
return JSON.stringify(args[i++]);
|
|
2352
|
-
} catch (_) {
|
|
2353
|
-
return '[Circular]';
|
|
2354
|
-
}
|
|
2355
|
-
default:
|
|
2356
|
-
return x;
|
|
2357
|
-
}
|
|
2358
|
-
});
|
|
2359
|
-
for (var x = args[i]; i < len; x = args[++i]) {
|
|
2360
|
-
if (isNull$1(x) || !isObject$8(x)) {
|
|
2361
|
-
str += ' ' + x;
|
|
2362
|
-
} else {
|
|
2363
|
-
str += ' ' + inspect(x);
|
|
2364
|
-
}
|
|
2365
|
-
}
|
|
2366
|
-
return str;
|
|
2367
|
-
}
|
|
2368
|
-
|
|
2369
|
-
// Mark that a method should not be used.
|
|
2370
|
-
// Returns a modified function which warns once by default.
|
|
2371
|
-
// If --no-deprecation is set, then it is a no-op.
|
|
2372
|
-
function deprecate(fn, msg) {
|
|
2373
|
-
// Allow for deprecating things in the process of starting up.
|
|
2374
|
-
if (isUndefined$1(global$1.process)) {
|
|
2375
|
-
return function() {
|
|
2376
|
-
return deprecate(fn, msg).apply(this, arguments);
|
|
2377
|
-
};
|
|
2378
|
-
}
|
|
2379
|
-
|
|
2380
|
-
if (browser$1$1.noDeprecation === true) {
|
|
2381
|
-
return fn;
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
var warned = false;
|
|
2385
|
-
function deprecated() {
|
|
2386
|
-
if (!warned) {
|
|
2387
|
-
if (browser$1$1.throwDeprecation) {
|
|
2388
|
-
throw new Error(msg);
|
|
2389
|
-
} else if (browser$1$1.traceDeprecation) {
|
|
2390
|
-
console.trace(msg);
|
|
2391
|
-
} else {
|
|
2392
|
-
console.error(msg);
|
|
2393
|
-
}
|
|
2394
|
-
warned = true;
|
|
2395
|
-
}
|
|
2396
|
-
return fn.apply(this, arguments);
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
return deprecated;
|
|
2400
|
-
}
|
|
2401
|
-
|
|
2402
|
-
var debugs = {};
|
|
2403
|
-
var debugEnviron;
|
|
2404
|
-
function debuglog(set) {
|
|
2405
|
-
if (isUndefined$1(debugEnviron))
|
|
2406
|
-
debugEnviron = browser$1$1.env.NODE_DEBUG || '';
|
|
2407
|
-
set = set.toUpperCase();
|
|
2408
|
-
if (!debugs[set]) {
|
|
2409
|
-
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
2410
|
-
var pid = 0;
|
|
2411
|
-
debugs[set] = function() {
|
|
2412
|
-
var msg = format.apply(null, arguments);
|
|
2413
|
-
console.error('%s %d: %s', set, pid, msg);
|
|
2414
|
-
};
|
|
2415
|
-
} else {
|
|
2416
|
-
debugs[set] = function() {};
|
|
2417
|
-
}
|
|
2418
|
-
}
|
|
2419
|
-
return debugs[set];
|
|
2420
|
-
}
|
|
2421
|
-
|
|
2422
|
-
/**
|
|
2423
|
-
* Echos the value of a value. Trys to print the value out
|
|
2424
|
-
* in the best way possible given the different types.
|
|
2425
|
-
*
|
|
2426
|
-
* @param {Object} obj The object to print out.
|
|
2427
|
-
* @param {Object} opts Optional options object that alters the output.
|
|
2428
|
-
*/
|
|
2429
|
-
/* legacy: obj, showHidden, depth, colors*/
|
|
2430
|
-
function inspect(obj, opts) {
|
|
2431
|
-
// default options
|
|
2432
|
-
var ctx = {
|
|
2433
|
-
seen: [],
|
|
2434
|
-
stylize: stylizeNoColor
|
|
2435
|
-
};
|
|
2436
|
-
// legacy...
|
|
2437
|
-
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
2438
|
-
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
2439
|
-
if (isBoolean(opts)) {
|
|
2440
|
-
// legacy...
|
|
2441
|
-
ctx.showHidden = opts;
|
|
2442
|
-
} else if (opts) {
|
|
2443
|
-
// got an "options" object
|
|
2444
|
-
_extend(ctx, opts);
|
|
2445
|
-
}
|
|
2446
|
-
// set default options
|
|
2447
|
-
if (isUndefined$1(ctx.showHidden)) ctx.showHidden = false;
|
|
2448
|
-
if (isUndefined$1(ctx.depth)) ctx.depth = 2;
|
|
2449
|
-
if (isUndefined$1(ctx.colors)) ctx.colors = false;
|
|
2450
|
-
if (isUndefined$1(ctx.customInspect)) ctx.customInspect = true;
|
|
2451
|
-
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
2452
|
-
return formatValue(ctx, obj, ctx.depth);
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
|
-
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
2456
|
-
inspect.colors = {
|
|
2457
|
-
'bold' : [1, 22],
|
|
2458
|
-
'italic' : [3, 23],
|
|
2459
|
-
'underline' : [4, 24],
|
|
2460
|
-
'inverse' : [7, 27],
|
|
2461
|
-
'white' : [37, 39],
|
|
2462
|
-
'grey' : [90, 39],
|
|
2463
|
-
'black' : [30, 39],
|
|
2464
|
-
'blue' : [34, 39],
|
|
2465
|
-
'cyan' : [36, 39],
|
|
2466
|
-
'green' : [32, 39],
|
|
2467
|
-
'magenta' : [35, 39],
|
|
2468
|
-
'red' : [31, 39],
|
|
2469
|
-
'yellow' : [33, 39]
|
|
2470
|
-
};
|
|
2471
|
-
|
|
2472
|
-
// Don't use 'blue' not visible on cmd.exe
|
|
2473
|
-
inspect.styles = {
|
|
2474
|
-
'special': 'cyan',
|
|
2475
|
-
'number': 'yellow',
|
|
2476
|
-
'boolean': 'yellow',
|
|
2477
|
-
'undefined': 'grey',
|
|
2478
|
-
'null': 'bold',
|
|
2479
|
-
'string': 'green',
|
|
2480
|
-
'date': 'magenta',
|
|
2481
|
-
// "name": intentionally not styling
|
|
2482
|
-
'regexp': 'red'
|
|
2483
|
-
};
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
function stylizeWithColor(str, styleType) {
|
|
2487
|
-
var style = inspect.styles[styleType];
|
|
2488
|
-
|
|
2489
|
-
if (style) {
|
|
2490
|
-
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
2491
|
-
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
2492
|
-
} else {
|
|
2493
|
-
return str;
|
|
2494
|
-
}
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
function stylizeNoColor(str, styleType) {
|
|
2499
|
-
return str;
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
function arrayToHash(array) {
|
|
2504
|
-
var hash = {};
|
|
2505
|
-
|
|
2506
|
-
array.forEach(function(val, idx) {
|
|
2507
|
-
hash[val] = true;
|
|
2508
|
-
});
|
|
2509
|
-
|
|
2510
|
-
return hash;
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
function formatValue(ctx, value, recurseTimes) {
|
|
2515
|
-
// Provide a hook for user-specified inspect functions.
|
|
2516
|
-
// Check that value is an object with an inspect function on it
|
|
2517
|
-
if (ctx.customInspect &&
|
|
2518
|
-
value &&
|
|
2519
|
-
isFunction$8(value.inspect) &&
|
|
2520
|
-
// Filter out the util module, it's inspect function is special
|
|
2521
|
-
value.inspect !== inspect &&
|
|
2522
|
-
// Also filter out any prototype objects using the circular check.
|
|
2523
|
-
!(value.constructor && value.constructor.prototype === value)) {
|
|
2524
|
-
var ret = value.inspect(recurseTimes, ctx);
|
|
2525
|
-
if (!isString$f(ret)) {
|
|
2526
|
-
ret = formatValue(ctx, ret, recurseTimes);
|
|
2527
|
-
}
|
|
2528
|
-
return ret;
|
|
2529
|
-
}
|
|
2530
|
-
|
|
2531
|
-
// Primitive types cannot have properties
|
|
2532
|
-
var primitive = formatPrimitive(ctx, value);
|
|
2533
|
-
if (primitive) {
|
|
2534
|
-
return primitive;
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
// Look up the keys of the object.
|
|
2538
|
-
var keys = Object.keys(value);
|
|
2539
|
-
var visibleKeys = arrayToHash(keys);
|
|
2540
|
-
|
|
2541
|
-
if (ctx.showHidden) {
|
|
2542
|
-
keys = Object.getOwnPropertyNames(value);
|
|
2543
|
-
}
|
|
2544
|
-
|
|
2545
|
-
// IE doesn't make error fields non-enumerable
|
|
2546
|
-
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
2547
|
-
if (isError(value)
|
|
2548
|
-
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
2549
|
-
return formatError(value);
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
// Some type of object without properties can be shortcutted.
|
|
2553
|
-
if (keys.length === 0) {
|
|
2554
|
-
if (isFunction$8(value)) {
|
|
2555
|
-
var name = value.name ? ': ' + value.name : '';
|
|
2556
|
-
return ctx.stylize('[Function' + name + ']', 'special');
|
|
2557
|
-
}
|
|
2558
|
-
if (isRegExp$1(value)) {
|
|
2559
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
2560
|
-
}
|
|
2561
|
-
if (isDate(value)) {
|
|
2562
|
-
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
2563
|
-
}
|
|
2564
|
-
if (isError(value)) {
|
|
2565
|
-
return formatError(value);
|
|
2566
|
-
}
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
var base = '', array = false, braces = ['{', '}'];
|
|
2570
|
-
|
|
2571
|
-
// Make Array say that they are Array
|
|
2572
|
-
if (isArray$f(value)) {
|
|
2573
|
-
array = true;
|
|
2574
|
-
braces = ['[', ']'];
|
|
2575
|
-
}
|
|
2576
|
-
|
|
2577
|
-
// Make functions say that they are functions
|
|
2578
|
-
if (isFunction$8(value)) {
|
|
2579
|
-
var n = value.name ? ': ' + value.name : '';
|
|
2580
|
-
base = ' [Function' + n + ']';
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
// Make RegExps say that they are RegExps
|
|
2584
|
-
if (isRegExp$1(value)) {
|
|
2585
|
-
base = ' ' + RegExp.prototype.toString.call(value);
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
// Make dates with properties first say the date
|
|
2589
|
-
if (isDate(value)) {
|
|
2590
|
-
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
// Make error with message first say the error
|
|
2594
|
-
if (isError(value)) {
|
|
2595
|
-
base = ' ' + formatError(value);
|
|
2596
|
-
}
|
|
2597
|
-
|
|
2598
|
-
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
2599
|
-
return braces[0] + base + braces[1];
|
|
2600
|
-
}
|
|
2601
|
-
|
|
2602
|
-
if (recurseTimes < 0) {
|
|
2603
|
-
if (isRegExp$1(value)) {
|
|
2604
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
2605
|
-
} else {
|
|
2606
|
-
return ctx.stylize('[Object]', 'special');
|
|
2607
|
-
}
|
|
2608
|
-
}
|
|
2609
|
-
|
|
2610
|
-
ctx.seen.push(value);
|
|
2611
|
-
|
|
2612
|
-
var output;
|
|
2613
|
-
if (array) {
|
|
2614
|
-
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
2615
|
-
} else {
|
|
2616
|
-
output = keys.map(function(key) {
|
|
2617
|
-
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
2618
|
-
});
|
|
2619
|
-
}
|
|
2620
|
-
|
|
2621
|
-
ctx.seen.pop();
|
|
2622
|
-
|
|
2623
|
-
return reduceToSingleString(output, base, braces);
|
|
2624
|
-
}
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
function formatPrimitive(ctx, value) {
|
|
2628
|
-
if (isUndefined$1(value))
|
|
2629
|
-
return ctx.stylize('undefined', 'undefined');
|
|
2630
|
-
if (isString$f(value)) {
|
|
2631
|
-
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
2632
|
-
.replace(/'/g, "\\'")
|
|
2633
|
-
.replace(/\\"/g, '"') + '\'';
|
|
2634
|
-
return ctx.stylize(simple, 'string');
|
|
2635
|
-
}
|
|
2636
|
-
if (isNumber$4(value))
|
|
2637
|
-
return ctx.stylize('' + value, 'number');
|
|
2638
|
-
if (isBoolean(value))
|
|
2639
|
-
return ctx.stylize('' + value, 'boolean');
|
|
2640
|
-
// For some reason typeof null is "object", so special case here.
|
|
2641
|
-
if (isNull$1(value))
|
|
2642
|
-
return ctx.stylize('null', 'null');
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
function formatError(value) {
|
|
2647
|
-
return '[' + Error.prototype.toString.call(value) + ']';
|
|
2648
|
-
}
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
2652
|
-
var output = [];
|
|
2653
|
-
for (var i = 0, l = value.length; i < l; ++i) {
|
|
2654
|
-
if (hasOwnProperty(value, String(i))) {
|
|
2655
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
2656
|
-
String(i), true));
|
|
2657
|
-
} else {
|
|
2658
|
-
output.push('');
|
|
2659
|
-
}
|
|
2660
|
-
}
|
|
2661
|
-
keys.forEach(function(key) {
|
|
2662
|
-
if (!key.match(/^\d+$/)) {
|
|
2663
|
-
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
2664
|
-
key, true));
|
|
2665
|
-
}
|
|
2666
|
-
});
|
|
2667
|
-
return output;
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
2672
|
-
var name, str, desc;
|
|
2673
|
-
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
2674
|
-
if (desc.get) {
|
|
2675
|
-
if (desc.set) {
|
|
2676
|
-
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
2677
|
-
} else {
|
|
2678
|
-
str = ctx.stylize('[Getter]', 'special');
|
|
2679
|
-
}
|
|
2680
|
-
} else {
|
|
2681
|
-
if (desc.set) {
|
|
2682
|
-
str = ctx.stylize('[Setter]', 'special');
|
|
2683
|
-
}
|
|
2684
|
-
}
|
|
2685
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
2686
|
-
name = '[' + key + ']';
|
|
2687
|
-
}
|
|
2688
|
-
if (!str) {
|
|
2689
|
-
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
2690
|
-
if (isNull$1(recurseTimes)) {
|
|
2691
|
-
str = formatValue(ctx, desc.value, null);
|
|
2692
|
-
} else {
|
|
2693
|
-
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
2694
|
-
}
|
|
2695
|
-
if (str.indexOf('\n') > -1) {
|
|
2696
|
-
if (array) {
|
|
2697
|
-
str = str.split('\n').map(function(line) {
|
|
2698
|
-
return ' ' + line;
|
|
2699
|
-
}).join('\n').substr(2);
|
|
2700
|
-
} else {
|
|
2701
|
-
str = '\n' + str.split('\n').map(function(line) {
|
|
2702
|
-
return ' ' + line;
|
|
2703
|
-
}).join('\n');
|
|
2704
|
-
}
|
|
2705
|
-
}
|
|
2706
|
-
} else {
|
|
2707
|
-
str = ctx.stylize('[Circular]', 'special');
|
|
2708
|
-
}
|
|
2709
|
-
}
|
|
2710
|
-
if (isUndefined$1(name)) {
|
|
2711
|
-
if (array && key.match(/^\d+$/)) {
|
|
2712
|
-
return str;
|
|
2713
|
-
}
|
|
2714
|
-
name = JSON.stringify('' + key);
|
|
2715
|
-
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
2716
|
-
name = name.substr(1, name.length - 2);
|
|
2717
|
-
name = ctx.stylize(name, 'name');
|
|
2718
|
-
} else {
|
|
2719
|
-
name = name.replace(/'/g, "\\'")
|
|
2720
|
-
.replace(/\\"/g, '"')
|
|
2721
|
-
.replace(/(^"|"$)/g, "'");
|
|
2722
|
-
name = ctx.stylize(name, 'string');
|
|
2723
|
-
}
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
return name + ': ' + str;
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
function reduceToSingleString(output, base, braces) {
|
|
2731
|
-
var length = output.reduce(function(prev, cur) {
|
|
2732
|
-
if (cur.indexOf('\n') >= 0) ;
|
|
2733
|
-
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
2734
|
-
}, 0);
|
|
2735
|
-
|
|
2736
|
-
if (length > 60) {
|
|
2737
|
-
return braces[0] +
|
|
2738
|
-
(base === '' ? '' : base + '\n ') +
|
|
2739
|
-
' ' +
|
|
2740
|
-
output.join(',\n ') +
|
|
2741
|
-
' ' +
|
|
2742
|
-
braces[1];
|
|
2743
|
-
}
|
|
2744
|
-
|
|
2745
|
-
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
2746
|
-
}
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
2750
|
-
// because it is fragile and can be easily faked with `Object.create()`.
|
|
2751
|
-
function isArray$f(ar) {
|
|
2752
|
-
return Array.isArray(ar);
|
|
2753
|
-
}
|
|
2754
|
-
|
|
2755
|
-
function isBoolean(arg) {
|
|
2756
|
-
return typeof arg === 'boolean';
|
|
2757
|
-
}
|
|
2758
|
-
|
|
2759
|
-
function isNull$1(arg) {
|
|
2760
|
-
return arg === null;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
function isNullOrUndefined(arg) {
|
|
2764
|
-
return arg == null;
|
|
2765
|
-
}
|
|
2766
|
-
|
|
2767
|
-
function isNumber$4(arg) {
|
|
2768
|
-
return typeof arg === 'number';
|
|
2769
|
-
}
|
|
2770
|
-
|
|
2771
|
-
function isString$f(arg) {
|
|
2772
|
-
return typeof arg === 'string';
|
|
2773
|
-
}
|
|
2774
|
-
|
|
2775
|
-
function isSymbol(arg) {
|
|
2776
|
-
return typeof arg === 'symbol';
|
|
2777
|
-
}
|
|
2778
|
-
|
|
2779
|
-
function isUndefined$1(arg) {
|
|
2780
|
-
return arg === void 0;
|
|
2781
|
-
}
|
|
2782
|
-
|
|
2783
|
-
function isRegExp$1(re) {
|
|
2784
|
-
return isObject$8(re) && objectToString$1(re) === '[object RegExp]';
|
|
2785
|
-
}
|
|
2786
|
-
|
|
2787
|
-
function isObject$8(arg) {
|
|
2788
|
-
return typeof arg === 'object' && arg !== null;
|
|
2789
|
-
}
|
|
2790
|
-
|
|
2791
|
-
function isDate(d) {
|
|
2792
|
-
return isObject$8(d) && objectToString$1(d) === '[object Date]';
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
-
function isError(e) {
|
|
2796
|
-
return isObject$8(e) &&
|
|
2797
|
-
(objectToString$1(e) === '[object Error]' || e instanceof Error);
|
|
2798
|
-
}
|
|
2799
|
-
|
|
2800
|
-
function isFunction$8(arg) {
|
|
2801
|
-
return typeof arg === 'function';
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
function isPrimitive$1(arg) {
|
|
2805
|
-
return arg === null ||
|
|
2806
|
-
typeof arg === 'boolean' ||
|
|
2807
|
-
typeof arg === 'number' ||
|
|
2808
|
-
typeof arg === 'string' ||
|
|
2809
|
-
typeof arg === 'symbol' || // ES6 symbol
|
|
2810
|
-
typeof arg === 'undefined';
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
-
function isBuffer(maybeBuf) {
|
|
2814
|
-
return Array.isArray(maybeBuf);
|
|
2815
|
-
}
|
|
2816
|
-
|
|
2817
|
-
function objectToString$1(o) {
|
|
2818
|
-
return Object.prototype.toString.call(o);
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
function pad(n) {
|
|
2823
|
-
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
2824
|
-
}
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
2828
|
-
'Oct', 'Nov', 'Dec'];
|
|
2829
|
-
|
|
2830
|
-
// 26 Feb 16:19:34
|
|
2831
|
-
function timestamp() {
|
|
2832
|
-
var d = new Date();
|
|
2833
|
-
var time = [pad(d.getHours()),
|
|
2834
|
-
pad(d.getMinutes()),
|
|
2835
|
-
pad(d.getSeconds())].join(':');
|
|
2836
|
-
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
2837
|
-
}
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
2841
|
-
function log$6() {
|
|
2842
|
-
console.log('%s - %s', timestamp(), format.apply(null, arguments));
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
|
-
function _extend(origin, add) {
|
|
2846
|
-
// Don't do anything if add isn't an object
|
|
2847
|
-
if (!add || !isObject$8(add)) return origin;
|
|
2848
|
-
|
|
2849
|
-
var keys = Object.keys(add);
|
|
2850
|
-
var i = keys.length;
|
|
2851
|
-
while (i--) {
|
|
2852
|
-
origin[keys[i]] = add[keys[i]];
|
|
2853
|
-
}
|
|
2854
|
-
return origin;
|
|
2855
|
-
}
|
|
2856
|
-
function hasOwnProperty(obj, prop) {
|
|
2857
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
2858
|
-
}
|
|
2859
|
-
|
|
2860
|
-
var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;
|
|
2861
|
-
|
|
2862
|
-
function promisify(original) {
|
|
2863
|
-
if (typeof original !== 'function')
|
|
2864
|
-
throw new TypeError('The "original" argument must be of type Function');
|
|
2865
|
-
|
|
2866
|
-
if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
|
|
2867
|
-
var fn = original[kCustomPromisifiedSymbol];
|
|
2868
|
-
if (typeof fn !== 'function') {
|
|
2869
|
-
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
2870
|
-
}
|
|
2871
|
-
Object.defineProperty(fn, kCustomPromisifiedSymbol, {
|
|
2872
|
-
value: fn, enumerable: false, writable: false, configurable: true
|
|
2873
|
-
});
|
|
2874
|
-
return fn;
|
|
2875
|
-
}
|
|
2876
|
-
|
|
2877
|
-
function fn() {
|
|
2878
|
-
var promiseResolve, promiseReject;
|
|
2879
|
-
var promise = new Promise(function (resolve, reject) {
|
|
2880
|
-
promiseResolve = resolve;
|
|
2881
|
-
promiseReject = reject;
|
|
2882
|
-
});
|
|
2883
|
-
|
|
2884
|
-
var args = [];
|
|
2885
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
2886
|
-
args.push(arguments[i]);
|
|
2887
|
-
}
|
|
2888
|
-
args.push(function (err, value) {
|
|
2889
|
-
if (err) {
|
|
2890
|
-
promiseReject(err);
|
|
2891
|
-
} else {
|
|
2892
|
-
promiseResolve(value);
|
|
2893
|
-
}
|
|
2894
|
-
});
|
|
2895
|
-
|
|
2896
|
-
try {
|
|
2897
|
-
original.apply(this, args);
|
|
2898
|
-
} catch (err) {
|
|
2899
|
-
promiseReject(err);
|
|
2900
|
-
}
|
|
2901
|
-
|
|
2902
|
-
return promise;
|
|
2903
|
-
}
|
|
2904
|
-
|
|
2905
|
-
Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
|
|
2906
|
-
|
|
2907
|
-
if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
|
|
2908
|
-
value: fn, enumerable: false, writable: false, configurable: true
|
|
2909
|
-
});
|
|
2910
|
-
return Object.defineProperties(
|
|
2911
|
-
fn,
|
|
2912
|
-
getOwnPropertyDescriptors(original)
|
|
2913
|
-
);
|
|
2914
|
-
}
|
|
2915
|
-
|
|
2916
|
-
promisify.custom = kCustomPromisifiedSymbol;
|
|
2917
|
-
|
|
2918
|
-
function callbackifyOnRejected(reason, cb) {
|
|
2919
|
-
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).
|
|
2920
|
-
// Because `null` is a special error value in callbacks which means "no error
|
|
2921
|
-
// occurred", we error-wrap so the callback consumer can distinguish between
|
|
2922
|
-
// "the promise rejected with null" or "the promise fulfilled with undefined".
|
|
2923
|
-
if (!reason) {
|
|
2924
|
-
var newReason = new Error('Promise was rejected with a falsy value');
|
|
2925
|
-
newReason.reason = reason;
|
|
2926
|
-
reason = newReason;
|
|
2927
|
-
}
|
|
2928
|
-
return cb(reason);
|
|
2929
|
-
}
|
|
2930
|
-
|
|
2931
|
-
function callbackify(original) {
|
|
2932
|
-
if (typeof original !== 'function') {
|
|
2933
|
-
throw new TypeError('The "original" argument must be of type Function');
|
|
2934
|
-
}
|
|
2935
|
-
|
|
2936
|
-
// We DO NOT return the promise as it gives the user a false sense that
|
|
2937
|
-
// the promise is actually somehow related to the callback's execution
|
|
2938
|
-
// and that the callback throwing will reject the promise.
|
|
2939
|
-
function callbackified() {
|
|
2940
|
-
var args = [];
|
|
2941
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
2942
|
-
args.push(arguments[i]);
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2945
|
-
var maybeCb = args.pop();
|
|
2946
|
-
if (typeof maybeCb !== 'function') {
|
|
2947
|
-
throw new TypeError('The last argument must be of type Function');
|
|
2948
|
-
}
|
|
2949
|
-
var self = this;
|
|
2950
|
-
var cb = function() {
|
|
2951
|
-
return maybeCb.apply(self, arguments);
|
|
2952
|
-
};
|
|
2953
|
-
// In true node style we process the callback on `nextTick` with all the
|
|
2954
|
-
// implications (stack, `uncaughtException`, `async_hooks`)
|
|
2955
|
-
original.apply(this, args)
|
|
2956
|
-
.then(function(ret) { browser$1$1.nextTick(cb.bind(null, null, ret)); },
|
|
2957
|
-
function(rej) { browser$1$1.nextTick(callbackifyOnRejected.bind(null, rej, cb)); });
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2960
|
-
Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
|
|
2961
|
-
Object.defineProperties(callbackified, getOwnPropertyDescriptors(original));
|
|
2962
|
-
return callbackified;
|
|
2963
|
-
}
|
|
2964
|
-
|
|
2965
|
-
var _polyfillNode_util = {
|
|
2966
|
-
inherits: inherits$1,
|
|
2967
|
-
_extend: _extend,
|
|
2968
|
-
log: log$6,
|
|
2969
|
-
isBuffer: isBuffer,
|
|
2970
|
-
isPrimitive: isPrimitive$1,
|
|
2971
|
-
isFunction: isFunction$8,
|
|
2972
|
-
isError: isError,
|
|
2973
|
-
isDate: isDate,
|
|
2974
|
-
isObject: isObject$8,
|
|
2975
|
-
isRegExp: isRegExp$1,
|
|
2976
|
-
isUndefined: isUndefined$1,
|
|
2977
|
-
isSymbol: isSymbol,
|
|
2978
|
-
isString: isString$f,
|
|
2979
|
-
isNumber: isNumber$4,
|
|
2980
|
-
isNullOrUndefined: isNullOrUndefined,
|
|
2981
|
-
isNull: isNull$1,
|
|
2982
|
-
isBoolean: isBoolean,
|
|
2983
|
-
isArray: isArray$f,
|
|
2984
|
-
inspect: inspect,
|
|
2985
|
-
deprecate: deprecate,
|
|
2986
|
-
format: format,
|
|
2987
|
-
debuglog: debuglog,
|
|
2988
|
-
promisify: promisify,
|
|
2989
|
-
callbackify: callbackify,
|
|
2990
|
-
};
|
|
2991
|
-
|
|
2992
|
-
var _polyfillNode_util$1 = /*#__PURE__*/Object.freeze({
|
|
2993
|
-
__proto__: null,
|
|
2994
|
-
_extend: _extend,
|
|
2995
|
-
callbackify: callbackify,
|
|
2996
|
-
debuglog: debuglog,
|
|
2997
|
-
default: _polyfillNode_util,
|
|
2998
|
-
deprecate: deprecate,
|
|
2999
|
-
format: format,
|
|
3000
|
-
inherits: inherits$1,
|
|
3001
|
-
inspect: inspect,
|
|
3002
|
-
isArray: isArray$f,
|
|
3003
|
-
isBoolean: isBoolean,
|
|
3004
|
-
isBuffer: isBuffer,
|
|
3005
|
-
isDate: isDate,
|
|
3006
|
-
isError: isError,
|
|
3007
|
-
isFunction: isFunction$8,
|
|
3008
|
-
isNull: isNull$1,
|
|
3009
|
-
isNullOrUndefined: isNullOrUndefined,
|
|
3010
|
-
isNumber: isNumber$4,
|
|
3011
|
-
isObject: isObject$8,
|
|
3012
|
-
isPrimitive: isPrimitive$1,
|
|
3013
|
-
isRegExp: isRegExp$1,
|
|
3014
|
-
isString: isString$f,
|
|
3015
|
-
isSymbol: isSymbol,
|
|
3016
|
-
isUndefined: isUndefined$1,
|
|
3017
|
-
log: log$6,
|
|
3018
|
-
promisify: promisify
|
|
3019
|
-
});
|
|
3020
|
-
|
|
3021
|
-
var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(_polyfillNode_util$1);
|
|
3022
|
-
|
|
3023
2265
|
var __create = Object.create;
|
|
3024
2266
|
var __defProp = Object.defineProperty;
|
|
3025
2267
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -3076,7 +2318,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== 'sy
|
|
|
3076
2318
|
// node_modules/picocolors/picocolors.js
|
|
3077
2319
|
var require_picocolors = __commonJS({
|
|
3078
2320
|
'node_modules/picocolors/picocolors.js'(exports2, module2) {
|
|
3079
|
-
var p = browser$1
|
|
2321
|
+
var p = browser$1 || {};
|
|
3080
2322
|
var argv = p.argv || [];
|
|
3081
2323
|
var env = p.env || {};
|
|
3082
2324
|
var isColorSupported2 = !(!!env.NO_COLOR || argv.includes('--no-color'))
|
|
@@ -4022,912 +3264,16 @@ var require_jsesc = __commonJS({
|
|
|
4022
3264
|
},
|
|
4023
3265
|
});
|
|
4024
3266
|
|
|
4025
|
-
// node_modules/ms/index.js
|
|
4026
|
-
var require_ms = __commonJS({
|
|
4027
|
-
'node_modules/ms/index.js'(exports2, module2) {
|
|
4028
|
-
var s = 1e3;
|
|
4029
|
-
var m = s * 60;
|
|
4030
|
-
var h = m * 60;
|
|
4031
|
-
var d = h * 24;
|
|
4032
|
-
var w = d * 7;
|
|
4033
|
-
var y = d * 365.25;
|
|
4034
|
-
|
|
4035
|
-
module2.exports = function(val, options) {
|
|
4036
|
-
options = options || {};
|
|
4037
|
-
var type = typeof val;
|
|
4038
|
-
|
|
4039
|
-
if (type === 'string' && val.length > 0) {
|
|
4040
|
-
return parse3(val);
|
|
4041
|
-
} else if (type === 'number' && isFinite(val)) {
|
|
4042
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
4043
|
-
}
|
|
4044
|
-
|
|
4045
|
-
throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(val));
|
|
4046
|
-
};
|
|
4047
|
-
function parse3(str) {
|
|
4048
|
-
str = String(str);
|
|
4049
|
-
|
|
4050
|
-
if (str.length > 100) {
|
|
4051
|
-
return;
|
|
4052
|
-
}
|
|
4053
|
-
|
|
4054
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
|
|
4055
|
-
|
|
4056
|
-
if (!match) {
|
|
4057
|
-
return;
|
|
4058
|
-
}
|
|
4059
|
-
|
|
4060
|
-
var n2 = parseFloat(match[1]);
|
|
4061
|
-
var type = (match[2] || 'ms').toLowerCase();
|
|
4062
|
-
|
|
4063
|
-
switch(type) {
|
|
4064
|
-
case 'years':
|
|
4065
|
-
case 'year':
|
|
4066
|
-
case 'yrs':
|
|
4067
|
-
case 'yr':
|
|
4068
|
-
case 'y':
|
|
4069
|
-
return n2 * y;
|
|
4070
|
-
|
|
4071
|
-
case 'weeks':
|
|
4072
|
-
case 'week':
|
|
4073
|
-
case 'w':
|
|
4074
|
-
return n2 * w;
|
|
4075
|
-
|
|
4076
|
-
case 'days':
|
|
4077
|
-
case 'day':
|
|
4078
|
-
case 'd':
|
|
4079
|
-
return n2 * d;
|
|
4080
|
-
|
|
4081
|
-
case 'hours':
|
|
4082
|
-
case 'hour':
|
|
4083
|
-
case 'hrs':
|
|
4084
|
-
case 'hr':
|
|
4085
|
-
case 'h':
|
|
4086
|
-
return n2 * h;
|
|
4087
|
-
|
|
4088
|
-
case 'minutes':
|
|
4089
|
-
case 'minute':
|
|
4090
|
-
case 'mins':
|
|
4091
|
-
case 'min':
|
|
4092
|
-
case 'm':
|
|
4093
|
-
return n2 * m;
|
|
4094
|
-
|
|
4095
|
-
case 'seconds':
|
|
4096
|
-
case 'second':
|
|
4097
|
-
case 'secs':
|
|
4098
|
-
case 'sec':
|
|
4099
|
-
case 's':
|
|
4100
|
-
return n2 * s;
|
|
4101
|
-
|
|
4102
|
-
case 'milliseconds':
|
|
4103
|
-
case 'millisecond':
|
|
4104
|
-
case 'msecs':
|
|
4105
|
-
case 'msec':
|
|
4106
|
-
case 'ms':
|
|
4107
|
-
return n2;
|
|
4108
|
-
|
|
4109
|
-
default:
|
|
4110
|
-
return void 0;
|
|
4111
|
-
}
|
|
4112
|
-
}
|
|
4113
|
-
|
|
4114
|
-
function fmtShort(ms) {
|
|
4115
|
-
var msAbs = Math.abs(ms);
|
|
4116
|
-
|
|
4117
|
-
if (msAbs >= d) {
|
|
4118
|
-
return Math.round(ms / d) + 'd';
|
|
4119
|
-
}
|
|
4120
|
-
|
|
4121
|
-
if (msAbs >= h) {
|
|
4122
|
-
return Math.round(ms / h) + 'h';
|
|
4123
|
-
}
|
|
4124
|
-
|
|
4125
|
-
if (msAbs >= m) {
|
|
4126
|
-
return Math.round(ms / m) + 'm';
|
|
4127
|
-
}
|
|
4128
|
-
|
|
4129
|
-
if (msAbs >= s) {
|
|
4130
|
-
return Math.round(ms / s) + 's';
|
|
4131
|
-
}
|
|
4132
|
-
|
|
4133
|
-
return ms + 'ms';
|
|
4134
|
-
}
|
|
4135
|
-
|
|
4136
|
-
function fmtLong(ms) {
|
|
4137
|
-
var msAbs = Math.abs(ms);
|
|
4138
|
-
|
|
4139
|
-
if (msAbs >= d) {
|
|
4140
|
-
return plural(ms, msAbs, d, 'day');
|
|
4141
|
-
}
|
|
4142
|
-
|
|
4143
|
-
if (msAbs >= h) {
|
|
4144
|
-
return plural(ms, msAbs, h, 'hour');
|
|
4145
|
-
}
|
|
4146
|
-
|
|
4147
|
-
if (msAbs >= m) {
|
|
4148
|
-
return plural(ms, msAbs, m, 'minute');
|
|
4149
|
-
}
|
|
4150
|
-
|
|
4151
|
-
if (msAbs >= s) {
|
|
4152
|
-
return plural(ms, msAbs, s, 'second');
|
|
4153
|
-
}
|
|
4154
|
-
|
|
4155
|
-
return ms + ' ms';
|
|
4156
|
-
}
|
|
4157
|
-
|
|
4158
|
-
function plural(ms, msAbs, n2, name) {
|
|
4159
|
-
var isPlural = msAbs >= n2 * 1.5;
|
|
4160
|
-
return Math.round(ms / n2) + ' ' + name + (isPlural ? 's' : '');
|
|
4161
|
-
}
|
|
4162
|
-
},
|
|
4163
|
-
});
|
|
4164
|
-
|
|
4165
|
-
// node_modules/debug/src/common.js
|
|
4166
|
-
var require_common = __commonJS({
|
|
4167
|
-
'node_modules/debug/src/common.js'(exports2, module2) {
|
|
4168
|
-
function setup2(env) {
|
|
4169
|
-
createDebug.debug = createDebug;
|
|
4170
|
-
createDebug.default = createDebug;
|
|
4171
|
-
createDebug.coerce = coerce;
|
|
4172
|
-
createDebug.disable = disable;
|
|
4173
|
-
createDebug.enable = enable;
|
|
4174
|
-
createDebug.enabled = enabled;
|
|
4175
|
-
createDebug.humanize = require_ms();
|
|
4176
|
-
createDebug.destroy = destroy;
|
|
4177
|
-
Object
|
|
4178
|
-
.keys(env)
|
|
4179
|
-
.forEach((key) => {
|
|
4180
|
-
createDebug[key] = env[key];
|
|
4181
|
-
});
|
|
4182
|
-
createDebug.names = [];
|
|
4183
|
-
createDebug.skips = [];
|
|
4184
|
-
createDebug.formatters = {};
|
|
4185
|
-
function selectColor(namespace) {
|
|
4186
|
-
let hash = 0;
|
|
4187
|
-
|
|
4188
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
4189
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
4190
|
-
hash |= 0;
|
|
4191
|
-
}
|
|
4192
|
-
|
|
4193
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
4194
|
-
}
|
|
4195
|
-
|
|
4196
|
-
createDebug.selectColor = selectColor;
|
|
4197
|
-
function createDebug(namespace) {
|
|
4198
|
-
let prevTime;
|
|
4199
|
-
let enableOverride = null;
|
|
4200
|
-
let namespacesCache;
|
|
4201
|
-
let enabledCache;
|
|
4202
|
-
|
|
4203
|
-
function debug2(...args) {
|
|
4204
|
-
if (!debug2.enabled) {
|
|
4205
|
-
return;
|
|
4206
|
-
}
|
|
4207
|
-
|
|
4208
|
-
const self = debug2;
|
|
4209
|
-
const curr = Number( /* @__PURE__ */new Date());
|
|
4210
|
-
const ms = curr - (prevTime || curr);
|
|
4211
|
-
|
|
4212
|
-
self.diff = ms;
|
|
4213
|
-
self.prev = prevTime;
|
|
4214
|
-
self.curr = curr;
|
|
4215
|
-
prevTime = curr;
|
|
4216
|
-
args[0] = createDebug.coerce(args[0]);
|
|
4217
|
-
|
|
4218
|
-
if (typeof args[0] !== 'string') {
|
|
4219
|
-
args.unshift('%O');
|
|
4220
|
-
}
|
|
4221
|
-
|
|
4222
|
-
let index2 = 0;
|
|
4223
|
-
|
|
4224
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
4225
|
-
if (match === '%%') {
|
|
4226
|
-
return '%';
|
|
4227
|
-
}
|
|
4228
|
-
|
|
4229
|
-
index2++;
|
|
4230
|
-
const formatter = createDebug.formatters[format];
|
|
4231
|
-
|
|
4232
|
-
if (typeof formatter === 'function') {
|
|
4233
|
-
const val = args[index2];
|
|
4234
|
-
|
|
4235
|
-
match = formatter.call(self, val);
|
|
4236
|
-
args.splice(index2, 1);
|
|
4237
|
-
index2--;
|
|
4238
|
-
}
|
|
4239
|
-
|
|
4240
|
-
return match;
|
|
4241
|
-
});
|
|
4242
|
-
createDebug.formatArgs.call(self, args);
|
|
4243
|
-
const logFn = self.log || createDebug.log;
|
|
4244
|
-
logFn.apply(self, args);
|
|
4245
|
-
}
|
|
4246
|
-
|
|
4247
|
-
debug2.namespace = namespace;
|
|
4248
|
-
debug2.useColors = createDebug.useColors();
|
|
4249
|
-
debug2.color = createDebug.selectColor(namespace);
|
|
4250
|
-
debug2.extend = extend;
|
|
4251
|
-
debug2.destroy = createDebug.destroy;
|
|
4252
|
-
Object.defineProperty(debug2, 'enabled', {
|
|
4253
|
-
enumerable: true,
|
|
4254
|
-
configurable: false,
|
|
4255
|
-
get: () => {
|
|
4256
|
-
if (enableOverride !== null) {
|
|
4257
|
-
return enableOverride;
|
|
4258
|
-
}
|
|
4259
|
-
|
|
4260
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
4261
|
-
namespacesCache = createDebug.namespaces;
|
|
4262
|
-
enabledCache = createDebug.enabled(namespace);
|
|
4263
|
-
}
|
|
4264
|
-
|
|
4265
|
-
return enabledCache;
|
|
4266
|
-
},
|
|
4267
|
-
set: (v) => {
|
|
4268
|
-
enableOverride = v;
|
|
4269
|
-
},
|
|
4270
|
-
});
|
|
4271
|
-
|
|
4272
|
-
if (typeof createDebug.init === 'function') {
|
|
4273
|
-
createDebug.init(debug2);
|
|
4274
|
-
}
|
|
4275
|
-
|
|
4276
|
-
return debug2;
|
|
4277
|
-
}
|
|
4278
|
-
|
|
4279
|
-
function extend(namespace, delimiter) {
|
|
4280
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
|
4281
|
-
|
|
4282
|
-
newDebug.log = this.log;
|
|
4283
|
-
return newDebug;
|
|
4284
|
-
}
|
|
4285
|
-
|
|
4286
|
-
function enable(namespaces) {
|
|
4287
|
-
createDebug.save(namespaces);
|
|
4288
|
-
createDebug.namespaces = namespaces;
|
|
4289
|
-
createDebug.names = [];
|
|
4290
|
-
createDebug.skips = [];
|
|
4291
|
-
const split = (typeof namespaces === 'string' ? namespaces : '')
|
|
4292
|
-
.trim()
|
|
4293
|
-
.replace(/\s+/g, ',')
|
|
4294
|
-
.split(',')
|
|
4295
|
-
.filter(Boolean);
|
|
4296
|
-
|
|
4297
|
-
for (const ns of split) {
|
|
4298
|
-
if (ns[0] === '-') {
|
|
4299
|
-
createDebug.skips.push(ns.slice(1));
|
|
4300
|
-
} else {
|
|
4301
|
-
createDebug.names.push(ns);
|
|
4302
|
-
}
|
|
4303
|
-
}
|
|
4304
|
-
}
|
|
4305
|
-
|
|
4306
|
-
function matchesTemplate(search, template) {
|
|
4307
|
-
let searchIndex = 0;
|
|
4308
|
-
let templateIndex = 0;
|
|
4309
|
-
let starIndex = -1;
|
|
4310
|
-
let matchIndex = 0;
|
|
4311
|
-
|
|
4312
|
-
while (searchIndex < search.length) {
|
|
4313
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
|
|
4314
|
-
if (template[templateIndex] === '*') {
|
|
4315
|
-
starIndex = templateIndex;
|
|
4316
|
-
matchIndex = searchIndex;
|
|
4317
|
-
templateIndex++;
|
|
4318
|
-
} else {
|
|
4319
|
-
searchIndex++;
|
|
4320
|
-
templateIndex++;
|
|
4321
|
-
}
|
|
4322
|
-
} else if (starIndex !== -1) {
|
|
4323
|
-
templateIndex = starIndex + 1;
|
|
4324
|
-
matchIndex++;
|
|
4325
|
-
searchIndex = matchIndex;
|
|
4326
|
-
} else {
|
|
4327
|
-
return false;
|
|
4328
|
-
}
|
|
4329
|
-
}
|
|
4330
|
-
|
|
4331
|
-
while (templateIndex < template.length && template[templateIndex] === '*') {
|
|
4332
|
-
templateIndex++;
|
|
4333
|
-
}
|
|
4334
|
-
|
|
4335
|
-
return templateIndex === template.length;
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4338
|
-
function disable() {
|
|
4339
|
-
const namespaces = [
|
|
4340
|
-
...createDebug.names,
|
|
4341
|
-
...createDebug.skips.map((namespace) => '-' + namespace),
|
|
4342
|
-
].join(',');
|
|
4343
|
-
|
|
4344
|
-
createDebug.enable('');
|
|
4345
|
-
return namespaces;
|
|
4346
|
-
}
|
|
4347
|
-
|
|
4348
|
-
function enabled(name) {
|
|
4349
|
-
for (const skip2 of createDebug.skips) {
|
|
4350
|
-
if (matchesTemplate(name, skip2)) {
|
|
4351
|
-
return false;
|
|
4352
|
-
}
|
|
4353
|
-
}
|
|
4354
|
-
|
|
4355
|
-
for (const ns of createDebug.names) {
|
|
4356
|
-
if (matchesTemplate(name, ns)) {
|
|
4357
|
-
return true;
|
|
4358
|
-
}
|
|
4359
|
-
}
|
|
4360
|
-
|
|
4361
|
-
return false;
|
|
4362
|
-
}
|
|
4363
|
-
|
|
4364
|
-
function coerce(val) {
|
|
4365
|
-
if (val instanceof Error) {
|
|
4366
|
-
return val.stack || val.message;
|
|
4367
|
-
}
|
|
4368
|
-
|
|
4369
|
-
return val;
|
|
4370
|
-
}
|
|
4371
|
-
|
|
4372
|
-
function destroy() {
|
|
4373
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
4374
|
-
}
|
|
4375
|
-
|
|
4376
|
-
createDebug.enable(createDebug.load());
|
|
4377
|
-
|
|
4378
|
-
return createDebug;
|
|
4379
|
-
}
|
|
4380
|
-
|
|
4381
|
-
module2.exports = setup2;
|
|
4382
|
-
},
|
|
4383
|
-
});
|
|
4384
|
-
|
|
4385
3267
|
// node_modules/debug/src/browser.js
|
|
4386
|
-
var require_browser =
|
|
4387
|
-
'node_modules/debug/src/browser.js'(exports2, module2) {
|
|
4388
|
-
exports2.formatArgs = formatArgs;
|
|
4389
|
-
exports2.save = save;
|
|
4390
|
-
exports2.load = load;
|
|
4391
|
-
exports2.useColors = useColors;
|
|
4392
|
-
exports2.storage = localstorage();
|
|
4393
|
-
exports2.destroy = /* @__PURE__ */(() => {
|
|
4394
|
-
let warned = false;
|
|
4395
|
-
|
|
4396
|
-
return () => {
|
|
4397
|
-
if (!warned) {
|
|
4398
|
-
warned = true;
|
|
4399
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
4400
|
-
}
|
|
4401
|
-
};
|
|
4402
|
-
})();
|
|
4403
|
-
exports2.colors = [
|
|
4404
|
-
'#0000CC',
|
|
4405
|
-
'#0000FF',
|
|
4406
|
-
'#0033CC',
|
|
4407
|
-
'#0033FF',
|
|
4408
|
-
'#0066CC',
|
|
4409
|
-
'#0066FF',
|
|
4410
|
-
'#0099CC',
|
|
4411
|
-
'#0099FF',
|
|
4412
|
-
'#00CC00',
|
|
4413
|
-
'#00CC33',
|
|
4414
|
-
'#00CC66',
|
|
4415
|
-
'#00CC99',
|
|
4416
|
-
'#00CCCC',
|
|
4417
|
-
'#00CCFF',
|
|
4418
|
-
'#3300CC',
|
|
4419
|
-
'#3300FF',
|
|
4420
|
-
'#3333CC',
|
|
4421
|
-
'#3333FF',
|
|
4422
|
-
'#3366CC',
|
|
4423
|
-
'#3366FF',
|
|
4424
|
-
'#3399CC',
|
|
4425
|
-
'#3399FF',
|
|
4426
|
-
'#33CC00',
|
|
4427
|
-
'#33CC33',
|
|
4428
|
-
'#33CC66',
|
|
4429
|
-
'#33CC99',
|
|
4430
|
-
'#33CCCC',
|
|
4431
|
-
'#33CCFF',
|
|
4432
|
-
'#6600CC',
|
|
4433
|
-
'#6600FF',
|
|
4434
|
-
'#6633CC',
|
|
4435
|
-
'#6633FF',
|
|
4436
|
-
'#66CC00',
|
|
4437
|
-
'#66CC33',
|
|
4438
|
-
'#9900CC',
|
|
4439
|
-
'#9900FF',
|
|
4440
|
-
'#9933CC',
|
|
4441
|
-
'#9933FF',
|
|
4442
|
-
'#99CC00',
|
|
4443
|
-
'#99CC33',
|
|
4444
|
-
'#CC0000',
|
|
4445
|
-
'#CC0033',
|
|
4446
|
-
'#CC0066',
|
|
4447
|
-
'#CC0099',
|
|
4448
|
-
'#CC00CC',
|
|
4449
|
-
'#CC00FF',
|
|
4450
|
-
'#CC3300',
|
|
4451
|
-
'#CC3333',
|
|
4452
|
-
'#CC3366',
|
|
4453
|
-
'#CC3399',
|
|
4454
|
-
'#CC33CC',
|
|
4455
|
-
'#CC33FF',
|
|
4456
|
-
'#CC6600',
|
|
4457
|
-
'#CC6633',
|
|
4458
|
-
'#CC9900',
|
|
4459
|
-
'#CC9933',
|
|
4460
|
-
'#CCCC00',
|
|
4461
|
-
'#CCCC33',
|
|
4462
|
-
'#FF0000',
|
|
4463
|
-
'#FF0033',
|
|
4464
|
-
'#FF0066',
|
|
4465
|
-
'#FF0099',
|
|
4466
|
-
'#FF00CC',
|
|
4467
|
-
'#FF00FF',
|
|
4468
|
-
'#FF3300',
|
|
4469
|
-
'#FF3333',
|
|
4470
|
-
'#FF3366',
|
|
4471
|
-
'#FF3399',
|
|
4472
|
-
'#FF33CC',
|
|
4473
|
-
'#FF33FF',
|
|
4474
|
-
'#FF6600',
|
|
4475
|
-
'#FF6633',
|
|
4476
|
-
'#FF9900',
|
|
4477
|
-
'#FF9933',
|
|
4478
|
-
'#FFCC00',
|
|
4479
|
-
'#FFCC33',
|
|
4480
|
-
];
|
|
4481
|
-
function useColors() {
|
|
4482
|
-
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
|
4483
|
-
return true;
|
|
4484
|
-
}
|
|
4485
|
-
|
|
4486
|
-
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
4487
|
-
return false;
|
|
4488
|
-
}
|
|
4489
|
-
|
|
4490
|
-
let m;
|
|
4491
|
-
|
|
4492
|
-
return typeof document !== 'undefined'
|
|
4493
|
-
&& document.documentElement
|
|
4494
|
-
&& document.documentElement.style
|
|
4495
|
-
&& document.documentElement.style.WebkitAppearance
|
|
4496
|
-
|| // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
4497
|
-
typeof window !== 'undefined'
|
|
4498
|
-
&& window.console
|
|
4499
|
-
&& (window.console.firebug
|
|
4500
|
-
|| window.console.exception
|
|
4501
|
-
&& window.console.table)
|
|
4502
|
-
|| // Is firefox >= v31?
|
|
4503
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
4504
|
-
typeof navigator !== 'undefined'
|
|
4505
|
-
&& navigator.userAgent
|
|
4506
|
-
&& (m = navigator.userAgent
|
|
4507
|
-
.toLowerCase()
|
|
4508
|
-
.match(/firefox\/(\d+)/))
|
|
4509
|
-
&& parseInt(m[1], 10) >= 31
|
|
4510
|
-
|| // Double check webkit in userAgent just in case we are in a worker
|
|
4511
|
-
typeof navigator !== 'undefined'
|
|
4512
|
-
&& navigator.userAgent
|
|
4513
|
-
&& navigator.userAgent
|
|
4514
|
-
.toLowerCase()
|
|
4515
|
-
.match(/applewebkit\/(\d+)/);
|
|
4516
|
-
}
|
|
4517
|
-
|
|
4518
|
-
function formatArgs(args) {
|
|
4519
|
-
args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module2.exports.humanize(this.diff);
|
|
4520
|
-
|
|
4521
|
-
if (!this.useColors) {
|
|
4522
|
-
return;
|
|
4523
|
-
}
|
|
4524
|
-
|
|
4525
|
-
const c = 'color: ' + this.color;
|
|
4526
|
-
args.splice(1, 0, c, 'color: inherit');
|
|
4527
|
-
let index2 = 0;
|
|
4528
|
-
let lastC = 0;
|
|
4529
|
-
|
|
4530
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
4531
|
-
if (match === '%%') {
|
|
4532
|
-
return;
|
|
4533
|
-
}
|
|
4534
|
-
|
|
4535
|
-
index2++;
|
|
4536
|
-
|
|
4537
|
-
if (match === '%c') {
|
|
4538
|
-
lastC = index2;
|
|
4539
|
-
}
|
|
4540
|
-
});
|
|
4541
|
-
args.splice(lastC, 0, c);
|
|
4542
|
-
}
|
|
4543
|
-
|
|
4544
|
-
exports2.log = console.debug || console.log || (() => {});
|
|
4545
|
-
function save(namespaces) {
|
|
4546
|
-
try {
|
|
4547
|
-
if (namespaces) {
|
|
4548
|
-
exports2.storage.setItem('debug', namespaces);
|
|
4549
|
-
} else {
|
|
4550
|
-
exports2.storage.removeItem('debug');
|
|
4551
|
-
}
|
|
4552
|
-
} catch(error) {}
|
|
4553
|
-
}
|
|
4554
|
-
|
|
4555
|
-
function load() {
|
|
4556
|
-
let r;
|
|
4557
|
-
|
|
4558
|
-
try {
|
|
4559
|
-
r = exports2.storage.getItem('debug') || exports2.storage.getItem('DEBUG');
|
|
4560
|
-
} catch(error) {}
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
if (!r && typeof browser$1$1 !== 'undefined' && 'env' in browser$1$1) {
|
|
4564
|
-
r = browser$1$1.env.DEBUG;
|
|
4565
|
-
}
|
|
4566
|
-
|
|
4567
|
-
return r;
|
|
4568
|
-
}
|
|
4569
|
-
|
|
4570
|
-
function localstorage() {
|
|
4571
|
-
try {
|
|
4572
|
-
return localStorage;
|
|
4573
|
-
} catch(error) {}
|
|
4574
|
-
}
|
|
4575
|
-
|
|
4576
|
-
module2.exports = require_common()(exports2);
|
|
4577
|
-
var {formatters} = module2.exports;
|
|
4578
|
-
|
|
4579
|
-
formatters.j = function(v) {
|
|
4580
|
-
try {
|
|
4581
|
-
return JSON.stringify(v);
|
|
4582
|
-
} catch(error) {
|
|
4583
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
4584
|
-
}
|
|
4585
|
-
};
|
|
4586
|
-
},
|
|
4587
|
-
});
|
|
4588
|
-
|
|
4589
|
-
// node_modules/has-flag/index.js
|
|
4590
|
-
var require_has_flag = __commonJS({
|
|
4591
|
-
'node_modules/has-flag/index.js'(exports2, module2) {
|
|
4592
|
-
|
|
4593
|
-
module2.exports = (flag, argv) => {
|
|
4594
|
-
argv = argv || browser$1$1.argv;
|
|
4595
|
-
const prefix2 = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
|
|
4596
|
-
const pos = argv.indexOf(prefix2 + flag);
|
|
4597
|
-
const terminatorPos = argv.indexOf('--');
|
|
4598
|
-
|
|
4599
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
4600
|
-
};
|
|
4601
|
-
},
|
|
4602
|
-
});
|
|
4603
|
-
|
|
4604
|
-
// node_modules/supports-color/index.js
|
|
4605
|
-
var require_supports_color = __commonJS({
|
|
4606
|
-
'node_modules/supports-color/index.js'(exports2, module2) {
|
|
4607
|
-
var hasFlag = require_has_flag();
|
|
4608
|
-
var env = {};
|
|
4609
|
-
var forceColor;
|
|
4610
|
-
|
|
4611
|
-
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false')) {
|
|
4612
|
-
forceColor = false;
|
|
4613
|
-
} else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) {
|
|
4614
|
-
forceColor = true;
|
|
4615
|
-
}
|
|
4616
|
-
|
|
4617
|
-
if ('FORCE_COLOR' in env) {
|
|
4618
|
-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
4619
|
-
}
|
|
4620
|
-
|
|
4621
|
-
function translateLevel(level) {
|
|
4622
|
-
if (level === 0) {
|
|
4623
|
-
return false;
|
|
4624
|
-
}
|
|
4625
|
-
|
|
4626
|
-
return {
|
|
4627
|
-
level,
|
|
4628
|
-
hasBasic: true,
|
|
4629
|
-
has256: level >= 2,
|
|
4630
|
-
has16m: level >= 3,
|
|
4631
|
-
};
|
|
4632
|
-
}
|
|
4633
|
-
|
|
4634
|
-
function supportsColor(stream) {
|
|
4635
|
-
if (forceColor === false) {
|
|
4636
|
-
return 0;
|
|
4637
|
-
}
|
|
4638
|
-
|
|
4639
|
-
if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) {
|
|
4640
|
-
return 3;
|
|
4641
|
-
}
|
|
4642
|
-
|
|
4643
|
-
if (hasFlag('color=256')) {
|
|
4644
|
-
return 2;
|
|
4645
|
-
}
|
|
4646
|
-
|
|
4647
|
-
if (stream && !stream.isTTY && forceColor !== true) {
|
|
4648
|
-
return 0;
|
|
4649
|
-
}
|
|
4650
|
-
|
|
4651
|
-
const min = forceColor ? 1 : 0;
|
|
4652
|
-
|
|
4653
|
-
if ('CI' in env) {
|
|
4654
|
-
if ([
|
|
4655
|
-
'TRAVIS',
|
|
4656
|
-
'CIRCLECI',
|
|
4657
|
-
'APPVEYOR',
|
|
4658
|
-
'GITLAB_CI',
|
|
4659
|
-
].some((sign) => sign in env) || env.CI_NAME === 'codeship') {
|
|
4660
|
-
return 1;
|
|
4661
|
-
}
|
|
4662
|
-
|
|
4663
|
-
return min;
|
|
4664
|
-
}
|
|
4665
|
-
|
|
4666
|
-
if ('TEAMCITY_VERSION' in env) {
|
|
4667
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
4668
|
-
}
|
|
4669
|
-
|
|
4670
|
-
if (env.COLORTERM === 'truecolor') {
|
|
4671
|
-
return 3;
|
|
4672
|
-
}
|
|
4673
|
-
|
|
4674
|
-
if ('TERM_PROGRAM' in env) {
|
|
4675
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || '')
|
|
4676
|
-
.split('.')[0], 10);
|
|
4677
|
-
|
|
4678
|
-
switch(env.TERM_PROGRAM) {
|
|
4679
|
-
case 'iTerm.app':
|
|
4680
|
-
return version >= 3 ? 3 : 2;
|
|
4681
|
-
|
|
4682
|
-
case 'Apple_Terminal':
|
|
4683
|
-
return 2;
|
|
4684
|
-
}
|
|
4685
|
-
}
|
|
4686
|
-
|
|
4687
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
4688
|
-
return 2;
|
|
4689
|
-
}
|
|
4690
|
-
|
|
4691
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
4692
|
-
return 1;
|
|
4693
|
-
}
|
|
4694
|
-
|
|
4695
|
-
if ('COLORTERM' in env) {
|
|
4696
|
-
return 1;
|
|
4697
|
-
}
|
|
4698
|
-
|
|
4699
|
-
if (env.TERM === 'dumb') {
|
|
4700
|
-
return min;
|
|
4701
|
-
}
|
|
4702
|
-
|
|
4703
|
-
return min;
|
|
4704
|
-
}
|
|
4705
|
-
|
|
4706
|
-
function getSupportLevel(stream) {
|
|
4707
|
-
const level = supportsColor(stream);
|
|
4708
|
-
return translateLevel(level);
|
|
4709
|
-
}
|
|
4710
|
-
|
|
4711
|
-
module2.exports = {
|
|
4712
|
-
supportsColor: getSupportLevel,
|
|
4713
|
-
stdout: getSupportLevel(browser$1$1.stdout),
|
|
4714
|
-
stderr: getSupportLevel(browser$1$1.stderr),
|
|
4715
|
-
};
|
|
4716
|
-
},
|
|
4717
|
-
});
|
|
3268
|
+
var require_browser = () => () => {};
|
|
4718
3269
|
|
|
4719
3270
|
// node_modules/debug/src/node.js
|
|
4720
|
-
var require_node =
|
|
4721
|
-
'node_modules/debug/src/node.js'(exports2, module2) {
|
|
4722
|
-
var tty = require$$1$2;
|
|
4723
|
-
var util = require$$2$1;
|
|
4724
|
-
|
|
4725
|
-
exports2.init = init;
|
|
4726
|
-
exports2.log = log;
|
|
4727
|
-
exports2.formatArgs = formatArgs;
|
|
4728
|
-
exports2.save = save;
|
|
4729
|
-
exports2.load = load;
|
|
4730
|
-
exports2.useColors = useColors;
|
|
4731
|
-
exports2.destroy = util.deprecate(() => {}, 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
4732
|
-
exports2.colors = [
|
|
4733
|
-
6,
|
|
4734
|
-
2,
|
|
4735
|
-
3,
|
|
4736
|
-
4,
|
|
4737
|
-
5,
|
|
4738
|
-
1,
|
|
4739
|
-
];
|
|
4740
|
-
try {
|
|
4741
|
-
const supportsColor = require_supports_color();
|
|
4742
|
-
|
|
4743
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
4744
|
-
exports2.colors = [
|
|
4745
|
-
20,
|
|
4746
|
-
21,
|
|
4747
|
-
26,
|
|
4748
|
-
27,
|
|
4749
|
-
32,
|
|
4750
|
-
33,
|
|
4751
|
-
38,
|
|
4752
|
-
39,
|
|
4753
|
-
40,
|
|
4754
|
-
41,
|
|
4755
|
-
42,
|
|
4756
|
-
43,
|
|
4757
|
-
44,
|
|
4758
|
-
45,
|
|
4759
|
-
56,
|
|
4760
|
-
57,
|
|
4761
|
-
62,
|
|
4762
|
-
63,
|
|
4763
|
-
68,
|
|
4764
|
-
69,
|
|
4765
|
-
74,
|
|
4766
|
-
75,
|
|
4767
|
-
76,
|
|
4768
|
-
77,
|
|
4769
|
-
78,
|
|
4770
|
-
79,
|
|
4771
|
-
80,
|
|
4772
|
-
81,
|
|
4773
|
-
92,
|
|
4774
|
-
93,
|
|
4775
|
-
98,
|
|
4776
|
-
99,
|
|
4777
|
-
112,
|
|
4778
|
-
113,
|
|
4779
|
-
128,
|
|
4780
|
-
129,
|
|
4781
|
-
134,
|
|
4782
|
-
135,
|
|
4783
|
-
148,
|
|
4784
|
-
149,
|
|
4785
|
-
160,
|
|
4786
|
-
161,
|
|
4787
|
-
162,
|
|
4788
|
-
163,
|
|
4789
|
-
164,
|
|
4790
|
-
165,
|
|
4791
|
-
166,
|
|
4792
|
-
167,
|
|
4793
|
-
168,
|
|
4794
|
-
169,
|
|
4795
|
-
170,
|
|
4796
|
-
171,
|
|
4797
|
-
172,
|
|
4798
|
-
173,
|
|
4799
|
-
178,
|
|
4800
|
-
179,
|
|
4801
|
-
184,
|
|
4802
|
-
185,
|
|
4803
|
-
196,
|
|
4804
|
-
197,
|
|
4805
|
-
198,
|
|
4806
|
-
199,
|
|
4807
|
-
200,
|
|
4808
|
-
201,
|
|
4809
|
-
202,
|
|
4810
|
-
203,
|
|
4811
|
-
204,
|
|
4812
|
-
205,
|
|
4813
|
-
206,
|
|
4814
|
-
207,
|
|
4815
|
-
208,
|
|
4816
|
-
209,
|
|
4817
|
-
214,
|
|
4818
|
-
215,
|
|
4819
|
-
220,
|
|
4820
|
-
221,
|
|
4821
|
-
];
|
|
4822
|
-
}
|
|
4823
|
-
} catch(error) {}
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
exports2.inspectOpts = Object
|
|
4827
|
-
.keys({})
|
|
4828
|
-
.filter((key) => {
|
|
4829
|
-
return /^debug_/i.test(key);
|
|
4830
|
-
})
|
|
4831
|
-
.reduce((obj, key) => {
|
|
4832
|
-
const prop = key
|
|
4833
|
-
.substring(6)
|
|
4834
|
-
.toLowerCase()
|
|
4835
|
-
.replace(/_([a-z])/g, (_, k) => {
|
|
4836
|
-
return k.toUpperCase();
|
|
4837
|
-
});
|
|
4838
|
-
|
|
4839
|
-
let val = {}[key];
|
|
4840
|
-
|
|
4841
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
4842
|
-
val = true;
|
|
4843
|
-
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
4844
|
-
val = false;
|
|
4845
|
-
} else if (val === 'null') {
|
|
4846
|
-
val = null;
|
|
4847
|
-
} else {
|
|
4848
|
-
val = Number(val);
|
|
4849
|
-
}
|
|
4850
|
-
|
|
4851
|
-
obj[prop] = val;
|
|
4852
|
-
return obj;
|
|
4853
|
-
}, {});
|
|
4854
|
-
function useColors() {
|
|
4855
|
-
return 'colors' in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(browser$1$1.stderr.fd);
|
|
4856
|
-
}
|
|
4857
|
-
|
|
4858
|
-
function formatArgs(args) {
|
|
4859
|
-
const {namespace: name, useColors: useColors2} = this;
|
|
4860
|
-
|
|
4861
|
-
if (useColors2) {
|
|
4862
|
-
const c = this.color;
|
|
4863
|
-
const colorCode = '\x1B[3' + (c < 8 ? c : '8;5;' + c);
|
|
4864
|
-
const prefix2 = ` ${colorCode};1m${name} \x1B[0m`;
|
|
4865
|
-
|
|
4866
|
-
args[0] = prefix2 + args[0]
|
|
4867
|
-
.split('\n')
|
|
4868
|
-
.join('\n' + prefix2);
|
|
4869
|
-
args.push(colorCode + 'm+' + module2.exports.humanize(this.diff) + '\x1B[0m');
|
|
4870
|
-
} else {
|
|
4871
|
-
args[0] = getDate() + name + ' ' + args[0];
|
|
4872
|
-
}
|
|
4873
|
-
}
|
|
4874
|
-
|
|
4875
|
-
function getDate() {
|
|
4876
|
-
if (exports2.inspectOpts.hideDate) {
|
|
4877
|
-
return '';
|
|
4878
|
-
}
|
|
4879
|
-
|
|
4880
|
-
return /* @__PURE__ */new Date().toISOString() + ' ';
|
|
4881
|
-
}
|
|
4882
|
-
|
|
4883
|
-
function log(...args) {
|
|
4884
|
-
return browser$1$1.stderr.write(util.formatWithOptions(exports2.inspectOpts, ...args) + '\n');
|
|
4885
|
-
}
|
|
4886
|
-
|
|
4887
|
-
function save(namespaces) {
|
|
4888
|
-
if (namespaces) {
|
|
4889
|
-
browser$1$1.env.DEBUG = namespaces;
|
|
4890
|
-
} else {
|
|
4891
|
-
delete browser$1$1.env.DEBUG;
|
|
4892
|
-
}
|
|
4893
|
-
}
|
|
4894
|
-
|
|
4895
|
-
function load() {
|
|
4896
|
-
return browser$1$1.env.DEBUG;
|
|
4897
|
-
}
|
|
4898
|
-
|
|
4899
|
-
function init(debug2) {
|
|
4900
|
-
debug2.inspectOpts = {};
|
|
4901
|
-
const keys2 = Object.keys(exports2.inspectOpts);
|
|
4902
|
-
|
|
4903
|
-
for (let i = 0; i < keys2.length; i++) {
|
|
4904
|
-
debug2.inspectOpts[keys2[i]] = exports2.inspectOpts[keys2[i]];
|
|
4905
|
-
}
|
|
4906
|
-
}
|
|
4907
|
-
|
|
4908
|
-
module2.exports = require_common()(exports2);
|
|
4909
|
-
var {formatters} = module2.exports;
|
|
4910
|
-
|
|
4911
|
-
formatters.o = function(v) {
|
|
4912
|
-
this.inspectOpts.colors = this.useColors;
|
|
4913
|
-
return util
|
|
4914
|
-
.inspect(v, this
|
|
4915
|
-
.inspectOpts)
|
|
4916
|
-
.split('\n')
|
|
4917
|
-
.map((str) => str.trim())
|
|
4918
|
-
.join(' ');
|
|
4919
|
-
};
|
|
4920
|
-
formatters.O = function(v) {
|
|
4921
|
-
this.inspectOpts.colors = this.useColors;
|
|
4922
|
-
return util.inspect(v, this.inspectOpts);
|
|
4923
|
-
};
|
|
4924
|
-
},
|
|
4925
|
-
});
|
|
3271
|
+
var require_node = () => () => {};
|
|
4926
3272
|
|
|
4927
3273
|
// node_modules/debug/src/index.js
|
|
4928
3274
|
var require_src = __commonJS({
|
|
4929
3275
|
'node_modules/debug/src/index.js'(exports2, module2) {
|
|
4930
|
-
if (typeof browser$1
|
|
3276
|
+
if (typeof browser$1 === 'undefined' || browser$1.type === 'renderer' || browser$1.browser === true || browser$1.__nwjs) {
|
|
4931
3277
|
module2.exports = require_browser();
|
|
4932
3278
|
} else {
|
|
4933
3279
|
module2.exports = require_node();
|
|
@@ -5714,12 +4060,12 @@ __export(lib_exports, {
|
|
|
5714
4060
|
isAccessor: () => isAccessor,
|
|
5715
4061
|
isAnyTypeAnnotation: () => isAnyTypeAnnotation,
|
|
5716
4062
|
isArgumentPlaceholder: () => isArgumentPlaceholder,
|
|
5717
|
-
isArrayExpression: () => isArrayExpression$
|
|
4063
|
+
isArrayExpression: () => isArrayExpression$a,
|
|
5718
4064
|
isArrayPattern: () => isArrayPattern,
|
|
5719
4065
|
isArrayTypeAnnotation: () => isArrayTypeAnnotation,
|
|
5720
4066
|
isArrowFunctionExpression: () => isArrowFunctionExpression$2,
|
|
5721
4067
|
isAssignmentExpression: () => isAssignmentExpression$3,
|
|
5722
|
-
isAssignmentPattern: () => isAssignmentPattern$
|
|
4068
|
+
isAssignmentPattern: () => isAssignmentPattern$3,
|
|
5723
4069
|
isAwaitExpression: () => isAwaitExpression$1,
|
|
5724
4070
|
isBigIntLiteral: () => isBigIntLiteral,
|
|
5725
4071
|
isBinary: () => isBinary,
|
|
@@ -5869,7 +4215,7 @@ __export(lib_exports, {
|
|
|
5869
4215
|
isNumberLiteralTypeAnnotation: () => isNumberLiteralTypeAnnotation,
|
|
5870
4216
|
isNumberTypeAnnotation: () => isNumberTypeAnnotation,
|
|
5871
4217
|
isNumericLiteral: () => isNumericLiteral,
|
|
5872
|
-
isObjectExpression: () => isObjectExpression$
|
|
4218
|
+
isObjectExpression: () => isObjectExpression$9,
|
|
5873
4219
|
isObjectMember: () => isObjectMember,
|
|
5874
4220
|
isObjectMethod: () => isObjectMethod$1,
|
|
5875
4221
|
isObjectPattern: () => isObjectPattern$3,
|
|
@@ -7669,7 +6015,7 @@ function captureShortStackTrace(skip2, length) {
|
|
|
7669
6015
|
};
|
|
7670
6016
|
}
|
|
7671
6017
|
|
|
7672
|
-
function isArrayExpression$
|
|
6018
|
+
function isArrayExpression$a(node, opts) {
|
|
7673
6019
|
if (!node)
|
|
7674
6020
|
return false;
|
|
7675
6021
|
|
|
@@ -7999,7 +6345,7 @@ function isProgram$5(node, opts) {
|
|
|
7999
6345
|
return opts == null || shallowEqual(node, opts);
|
|
8000
6346
|
}
|
|
8001
6347
|
|
|
8002
|
-
function isObjectExpression$
|
|
6348
|
+
function isObjectExpression$9(node, opts) {
|
|
8003
6349
|
if (!node)
|
|
8004
6350
|
return false;
|
|
8005
6351
|
|
|
@@ -8179,7 +6525,7 @@ function isWithStatement(node, opts) {
|
|
|
8179
6525
|
return opts == null || shallowEqual(node, opts);
|
|
8180
6526
|
}
|
|
8181
6527
|
|
|
8182
|
-
function isAssignmentPattern$
|
|
6528
|
+
function isAssignmentPattern$3(node, opts) {
|
|
8183
6529
|
if (!node)
|
|
8184
6530
|
return false;
|
|
8185
6531
|
|
|
@@ -23251,7 +21597,7 @@ var TokContext = class {
|
|
|
23251
21597
|
}
|
|
23252
21598
|
};
|
|
23253
21599
|
|
|
23254
|
-
var types$
|
|
21600
|
+
var types$18 = {
|
|
23255
21601
|
brace: new TokContext('{'),
|
|
23256
21602
|
j_oTag: new TokContext('<tag'),
|
|
23257
21603
|
j_cTag: new TokContext('</tag'),
|
|
@@ -25685,9 +24031,9 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
25685
24031
|
switch(this.state.type) {
|
|
25686
24032
|
case 5:
|
|
25687
24033
|
node = this.startNode();
|
|
25688
|
-
this.setContext(types$
|
|
24034
|
+
this.setContext(types$18.brace);
|
|
25689
24035
|
this.next();
|
|
25690
|
-
node = this.jsxParseExpressionContainer(node, types$
|
|
24036
|
+
node = this.jsxParseExpressionContainer(node, types$18.j_oTag);
|
|
25691
24037
|
|
|
25692
24038
|
if (node.expression.type === 'JSXEmptyExpression') {
|
|
25693
24039
|
this.raise(JsxErrors.AttributeIsEmpty, node);
|
|
@@ -25712,7 +24058,7 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
25712
24058
|
jsxParseSpreadChild(node) {
|
|
25713
24059
|
this.next();
|
|
25714
24060
|
node.expression = this.parseExpression();
|
|
25715
|
-
this.setContext(types$
|
|
24061
|
+
this.setContext(types$18.j_expr);
|
|
25716
24062
|
this.state.canStartJSXElement = true;
|
|
25717
24063
|
this.expect(8);
|
|
25718
24064
|
return this.finishNode(node, 'JSXSpreadChild');
|
|
@@ -25742,11 +24088,11 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
25742
24088
|
const node = this.startNode();
|
|
25743
24089
|
|
|
25744
24090
|
if (this.match(5)) {
|
|
25745
|
-
this.setContext(types$
|
|
24091
|
+
this.setContext(types$18.brace);
|
|
25746
24092
|
this.next();
|
|
25747
24093
|
this.expect(21);
|
|
25748
24094
|
node.argument = this.parseMaybeAssignAllowIn();
|
|
25749
|
-
this.setContext(types$
|
|
24095
|
+
this.setContext(types$18.j_oTag);
|
|
25750
24096
|
this.state.canStartJSXElement = true;
|
|
25751
24097
|
this.expect(8);
|
|
25752
24098
|
return this.finishNode(node, 'JSXSpreadAttribute');
|
|
@@ -25820,13 +24166,13 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
25820
24166
|
|
|
25821
24167
|
case 5: {
|
|
25822
24168
|
const node2 = this.startNode();
|
|
25823
|
-
this.setContext(types$
|
|
24169
|
+
this.setContext(types$18.brace);
|
|
25824
24170
|
this.next();
|
|
25825
24171
|
|
|
25826
24172
|
if (this.match(21)) {
|
|
25827
24173
|
children.push(this.jsxParseSpreadChild(node2));
|
|
25828
24174
|
} else {
|
|
25829
|
-
children.push(this.jsxParseExpressionContainer(node2, types$
|
|
24175
|
+
children.push(this.jsxParseExpressionContainer(node2, types$18.j_expr));
|
|
25830
24176
|
}
|
|
25831
24177
|
|
|
25832
24178
|
break;
|
|
@@ -25902,12 +24248,12 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
25902
24248
|
getTokenFromCode(code2) {
|
|
25903
24249
|
const context = this.curContext();
|
|
25904
24250
|
|
|
25905
|
-
if (context === types$
|
|
24251
|
+
if (context === types$18.j_expr) {
|
|
25906
24252
|
this.jsxReadToken();
|
|
25907
24253
|
return;
|
|
25908
24254
|
}
|
|
25909
24255
|
|
|
25910
|
-
if (context === types$
|
|
24256
|
+
if (context === types$18.j_oTag || context === types$18.j_cTag) {
|
|
25911
24257
|
if (isIdentifierStart2(code2)) {
|
|
25912
24258
|
this.jsxReadWord();
|
|
25913
24259
|
return;
|
|
@@ -25919,7 +24265,7 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
25919
24265
|
return;
|
|
25920
24266
|
}
|
|
25921
24267
|
|
|
25922
|
-
if ((code2 === 34 || code2 === 39) && context === types$
|
|
24268
|
+
if ((code2 === 34 || code2 === 39) && context === types$18.j_oTag) {
|
|
25923
24269
|
this.jsxReadString(code2);
|
|
25924
24270
|
return;
|
|
25925
24271
|
}
|
|
@@ -25938,18 +24284,18 @@ var jsx$3 = (superClass) => class JSXParserMixin extends superClass {
|
|
|
25938
24284
|
const {context, type} = this.state;
|
|
25939
24285
|
|
|
25940
24286
|
if (type === 56 && prevType === 143) {
|
|
25941
|
-
context.splice(-2, 2, types$
|
|
24287
|
+
context.splice(-2, 2, types$18.j_cTag);
|
|
25942
24288
|
this.state.canStartJSXElement = false;
|
|
25943
24289
|
} else if (type === 143) {
|
|
25944
|
-
context.push(types$
|
|
24290
|
+
context.push(types$18.j_oTag);
|
|
25945
24291
|
} else if (type === 144) {
|
|
25946
24292
|
const out = context[context.length - 1];
|
|
25947
24293
|
|
|
25948
|
-
if (out === types$
|
|
24294
|
+
if (out === types$18.j_oTag && prevType === 56 || out === types$18.j_cTag) {
|
|
25949
24295
|
context.pop();
|
|
25950
|
-
this.state.canStartJSXElement = context[context.length - 1] === types$
|
|
24296
|
+
this.state.canStartJSXElement = context[context.length - 1] === types$18.j_expr;
|
|
25951
24297
|
} else {
|
|
25952
|
-
this.setContext(types$
|
|
24298
|
+
this.setContext(types$18.j_expr);
|
|
25953
24299
|
this.state.canStartJSXElement = true;
|
|
25954
24300
|
}
|
|
25955
24301
|
} else {
|
|
@@ -26428,7 +24774,7 @@ var State$2 = class _State {
|
|
|
26428
24774
|
__publicField(this, 'end', 0);
|
|
26429
24775
|
__publicField(this, 'lastTokEndLoc', null);
|
|
26430
24776
|
__publicField(this, 'lastTokStartLoc', null);
|
|
26431
|
-
__publicField(this, 'context', [types$
|
|
24777
|
+
__publicField(this, 'context', [types$18.brace]);
|
|
26432
24778
|
__publicField(this, 'firstInvalidTemplateEscapePos', null);
|
|
26433
24779
|
__publicField(this, 'strictErrors', /* @__PURE__ */new Map());
|
|
26434
24780
|
__publicField(this, 'tokensLength', 0);
|
|
@@ -30951,7 +29297,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
30951
29297
|
}
|
|
30952
29298
|
|
|
30953
29299
|
tsInTopLevelContext(cb) {
|
|
30954
|
-
if (this.curContext() !== types$
|
|
29300
|
+
if (this.curContext() !== types$18.brace) {
|
|
30955
29301
|
const oldContext = this.state.context;
|
|
30956
29302
|
|
|
30957
29303
|
this.state.context = [oldContext[0]];
|
|
@@ -31383,7 +29729,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
31383
29729
|
|
|
31384
29730
|
if (node.params.length === 0) {
|
|
31385
29731
|
this.raise(TSErrors.EmptyTypeArguments, node);
|
|
31386
|
-
} else if (!this.state.inType && this.curContext() === types$
|
|
29732
|
+
} else if (!this.state.inType && this.curContext() === types$18.brace) {
|
|
31387
29733
|
this.reScan_lt_gt();
|
|
31388
29734
|
}
|
|
31389
29735
|
|
|
@@ -32237,7 +30583,7 @@ var typescript$3 = (superClass) => class TypeScriptParserMixin extends superClas
|
|
|
32237
30583
|
|
|
32238
30584
|
const currentContext = context[context.length - 1];
|
|
32239
30585
|
|
|
32240
|
-
if (currentContext === types$
|
|
30586
|
+
if (currentContext === types$18.j_oTag || currentContext === types$18.j_expr) {
|
|
32241
30587
|
context.pop();
|
|
32242
30588
|
}
|
|
32243
30589
|
}
|
|
@@ -38138,7 +36484,7 @@ var import_picocolors = __toESM(require_picocolors());
|
|
|
38138
36484
|
var import_js_tokens = __toESM(require_js_tokens());
|
|
38139
36485
|
|
|
38140
36486
|
function isColorSupported() {
|
|
38141
|
-
return typeof browser$1
|
|
36487
|
+
return typeof browser$1 === 'object' && (browser$1.env.FORCE_COLOR === '0' || browser$1.env.FORCE_COLOR === 'false') ? false : import_picocolors.default.isColorSupported;
|
|
38142
36488
|
}
|
|
38143
36489
|
|
|
38144
36490
|
var compose = (f, g) => (v) => f(g(v));
|
|
@@ -50514,7 +48860,7 @@ function ensureBlock2() {
|
|
|
50514
48860
|
|
|
50515
48861
|
this.node.body = blockStatement3(statements2);
|
|
50516
48862
|
const parentPath = this.get(stringPath);
|
|
50517
|
-
setup
|
|
48863
|
+
setup.call(body, parentPath, listKey ? parentPath.node[listKey] : parentPath.node, listKey, key);
|
|
50518
48864
|
return this.node;
|
|
50519
48865
|
}
|
|
50520
48866
|
|
|
@@ -52187,7 +50533,7 @@ var NodePath_Final = class NodePath {
|
|
|
52187
50533
|
paths.set(targetNode, path);
|
|
52188
50534
|
}
|
|
52189
50535
|
|
|
52190
|
-
setup
|
|
50536
|
+
setup.call(path, parentPath, container, listKey, key);
|
|
52191
50537
|
return path;
|
|
52192
50538
|
}
|
|
52193
50539
|
|
|
@@ -52893,7 +51239,7 @@ function pushContext(context) {
|
|
|
52893
51239
|
this.setContext(context);
|
|
52894
51240
|
}
|
|
52895
51241
|
|
|
52896
|
-
function setup
|
|
51242
|
+
function setup(parentPath, container, listKey, key) {
|
|
52897
51243
|
this.listKey = listKey;
|
|
52898
51244
|
this.container = container;
|
|
52899
51245
|
this.parentPath = parentPath || this.parentPath;
|
|
@@ -53039,9 +51385,9 @@ var fullstore$3 = (value) => {
|
|
|
53039
51385
|
};
|
|
53040
51386
|
};
|
|
53041
51387
|
|
|
53042
|
-
var types$
|
|
51388
|
+
var types$17 = {};
|
|
53043
51389
|
|
|
53044
|
-
types$
|
|
51390
|
+
types$17.TYPES = {
|
|
53045
51391
|
TOKEN: 'Token',
|
|
53046
51392
|
NEWLINE: 'Newline',
|
|
53047
51393
|
LINEBREAK: 'Linebreak',
|
|
@@ -53061,7 +51407,7 @@ var arrowFunctionExpression = {};
|
|
|
53061
51407
|
|
|
53062
51408
|
var is$3 = {};
|
|
53063
51409
|
|
|
53064
|
-
const {types: types$
|
|
51410
|
+
const {types: types$16} = bundle;
|
|
53065
51411
|
const {
|
|
53066
51412
|
isStringLiteral: isStringLiteral$9,
|
|
53067
51413
|
isIdentifier: isIdentifier$f,
|
|
@@ -53070,10 +51416,10 @@ const {
|
|
|
53070
51416
|
isForOfStatement: isForOfStatement$1,
|
|
53071
51417
|
isVariableDeclaration: isVariableDeclaration$4,
|
|
53072
51418
|
isMemberExpression: isMemberExpression$7,
|
|
53073
|
-
isArrayExpression: isArrayExpression$
|
|
53074
|
-
isObjectExpression: isObjectExpression$
|
|
51419
|
+
isArrayExpression: isArrayExpression$9,
|
|
51420
|
+
isObjectExpression: isObjectExpression$8,
|
|
53075
51421
|
isLabeledStatement: isLabeledStatement$1,
|
|
53076
|
-
} = types$
|
|
51422
|
+
} = types$16;
|
|
53077
51423
|
|
|
53078
51424
|
const isParentProgram$1 = (path) => path.parentPath?.isProgram();
|
|
53079
51425
|
const isParentBlock$3 = (path) => path.parentPath.isBlockStatement();
|
|
@@ -53142,10 +51488,10 @@ function isStringAndIdentifier$2([a, b]) {
|
|
|
53142
51488
|
const checkObject = (elements) => {
|
|
53143
51489
|
let a = elements.at(-1);
|
|
53144
51490
|
|
|
53145
|
-
if (!isObjectExpression$
|
|
51491
|
+
if (!isObjectExpression$8(a))
|
|
53146
51492
|
a = elements.at(-2);
|
|
53147
51493
|
|
|
53148
|
-
if (!isObjectExpression$
|
|
51494
|
+
if (!isObjectExpression$8(a))
|
|
53149
51495
|
return false;
|
|
53150
51496
|
|
|
53151
51497
|
return a.node.properties.length;
|
|
@@ -53178,7 +51524,7 @@ is$3.isStringAndArray = ([a, b]) => {
|
|
|
53178
51524
|
if (!isStringLiteral$9(a))
|
|
53179
51525
|
return false;
|
|
53180
51526
|
|
|
53181
|
-
if (!isArrayExpression$
|
|
51527
|
+
if (!isArrayExpression$9(b))
|
|
53182
51528
|
return false;
|
|
53183
51529
|
|
|
53184
51530
|
return !isStringAndIdentifier$2(b.node.elements);
|
|
@@ -53349,8 +51695,7 @@ commentsPrinter.printLeadingComments = (path, printer, semantics, {currentTraver
|
|
|
53349
51695
|
commentsPrinter.printTrailingComments = (path, printer, semantics, {currentTraverse}) => {
|
|
53350
51696
|
const {print} = printer;
|
|
53351
51697
|
const {
|
|
53352
|
-
trailingComments = []
|
|
53353
|
-
} = path.node;
|
|
51698
|
+
trailingComments = []} = path.node;
|
|
53354
51699
|
|
|
53355
51700
|
const {
|
|
53356
51701
|
printTrailingCommentLine,
|
|
@@ -53377,7 +51722,7 @@ commentsPrinter.printTrailingComments = (path, printer, semantics, {currentTrave
|
|
|
53377
51722
|
}
|
|
53378
51723
|
};
|
|
53379
51724
|
|
|
53380
|
-
const {types: types$
|
|
51725
|
+
const {types: types$15} = bundle;
|
|
53381
51726
|
const {
|
|
53382
51727
|
hasTrailingComment: hasTrailingComment$5,
|
|
53383
51728
|
satisfy: satisfy$3,
|
|
@@ -53403,7 +51748,7 @@ const {
|
|
|
53403
51748
|
isBinaryExpression: isBinaryExpression$1,
|
|
53404
51749
|
isClassMethod: isClassMethod$1,
|
|
53405
51750
|
isDecorator: isDecorator$1,
|
|
53406
|
-
} = types$
|
|
51751
|
+
} = types$15;
|
|
53407
51752
|
|
|
53408
51753
|
const isProperty = satisfy$3([
|
|
53409
51754
|
isObjectProperty$2,
|
|
@@ -53655,7 +52000,7 @@ function build(path) {
|
|
|
53655
52000
|
return prop;
|
|
53656
52001
|
}
|
|
53657
52002
|
|
|
53658
|
-
const {types: types$
|
|
52003
|
+
const {types: types$14} = bundle;
|
|
53659
52004
|
const {chain: chain$2} = chain$3;
|
|
53660
52005
|
const {satisfy: satisfy$2} = is$3;
|
|
53661
52006
|
|
|
@@ -53664,7 +52009,7 @@ const {
|
|
|
53664
52009
|
isIfStatement: isIfStatement$1,
|
|
53665
52010
|
isCallExpression: isCallExpression$8,
|
|
53666
52011
|
isIdentifier: isIdentifier$e,
|
|
53667
|
-
} = types$
|
|
52012
|
+
} = types$14;
|
|
53668
52013
|
|
|
53669
52014
|
const isArgOfCall = (path) => path.parentPath?.isCallExpression() && path.parentPath.get('arguments.0') === path;
|
|
53670
52015
|
const isCall$1 = (a) => a.type === 'CallExpression';
|
|
@@ -53737,7 +52082,7 @@ const isIfUp = (path) => {
|
|
|
53737
52082
|
return is;
|
|
53738
52083
|
};
|
|
53739
52084
|
|
|
53740
|
-
const {types: types$
|
|
52085
|
+
const {types: types$13} = bundle;
|
|
53741
52086
|
|
|
53742
52087
|
const {
|
|
53743
52088
|
isLast: isLast$c,
|
|
@@ -53757,7 +52102,7 @@ const {
|
|
|
53757
52102
|
isMemberExpression: isMemberExpression$6,
|
|
53758
52103
|
isExpressionStatement: isExpressionStatement$6,
|
|
53759
52104
|
isCallExpression: isCallExpression$7,
|
|
53760
|
-
} = types$
|
|
52105
|
+
} = types$13;
|
|
53761
52106
|
|
|
53762
52107
|
const hasBody$1 = (path) => {
|
|
53763
52108
|
if (path.isTSModuleDeclaration())
|
|
@@ -54116,7 +52461,7 @@ arrowFunctionExpression.ArrowFunctionExpression = maybeParens$d((path, printer,
|
|
|
54116
52461
|
|
|
54117
52462
|
var functionDeclaration = {};
|
|
54118
52463
|
|
|
54119
|
-
const {types: types$
|
|
52464
|
+
const {types: types$12} = bundle;
|
|
54120
52465
|
const {markAfter: markAfter$a} = mark;
|
|
54121
52466
|
const {isNext: isNext$m, isNextParent: isNextParent$4} = is$3;
|
|
54122
52467
|
const {printParams: printParams$b} = params;
|
|
@@ -54132,7 +52477,7 @@ const {
|
|
|
54132
52477
|
isExpressionStatement: isExpressionStatement$5,
|
|
54133
52478
|
isFunctionDeclaration: isFunctionDeclaration$2,
|
|
54134
52479
|
isExportDefaultDeclaration,
|
|
54135
|
-
} = types$
|
|
52480
|
+
} = types$12;
|
|
54136
52481
|
|
|
54137
52482
|
const isInsideNamedExport$1 = ({parentPath}) => isExportNamedDeclaration$2(parentPath);
|
|
54138
52483
|
|
|
@@ -54637,7 +52982,7 @@ maybeDeclare$6.maybeDeclare = (visit) => (path, printer, semantics) => {
|
|
|
54637
52982
|
visit(path, printer, semantics);
|
|
54638
52983
|
};
|
|
54639
52984
|
|
|
54640
|
-
const {types: types$
|
|
52985
|
+
const {types: types$11} = bundle;
|
|
54641
52986
|
|
|
54642
52987
|
const {isNext: isNext$j} = is$3;
|
|
54643
52988
|
const {markAfter: markAfter$9} = mark;
|
|
@@ -54653,7 +52998,7 @@ const isInsideTSModuleBlock = (path) => {
|
|
|
54653
52998
|
const {
|
|
54654
52999
|
isFunction: isFunction$6,
|
|
54655
53000
|
isTSModuleBlock: isTSModuleBlock$2,
|
|
54656
|
-
} = types$
|
|
53001
|
+
} = types$11;
|
|
54657
53002
|
|
|
54658
53003
|
const isInsideExport = ({parentPath}) => parentPath.isExportDeclaration();
|
|
54659
53004
|
const isFunctionLike = (path) => isFunction$6(path.parentPath.parentPath);
|
|
@@ -54818,14 +53163,14 @@ function tooLong$1(args) {
|
|
|
54818
53163
|
|
|
54819
53164
|
var newExpression = {};
|
|
54820
53165
|
|
|
54821
|
-
const {types: types
|
|
53166
|
+
const {types: types$10} = bundle;
|
|
54822
53167
|
const {exists: exists$b} = is$3;
|
|
54823
53168
|
const {isMarkedAfter: isMarkedAfter$2} = mark;
|
|
54824
53169
|
|
|
54825
53170
|
const {
|
|
54826
53171
|
isExpressionStatement: isExpressionStatement$4,
|
|
54827
53172
|
isMemberExpression: isMemberExpression$5,
|
|
54828
|
-
} = types
|
|
53173
|
+
} = types$10;
|
|
54829
53174
|
|
|
54830
53175
|
const isInsideExpressionStatement = ({parentPath}) => isExpressionStatement$4(parentPath);
|
|
54831
53176
|
const notFirst = ({parentPath}) => exists$b(parentPath.getPrevSibling());
|
|
@@ -54904,8 +53249,8 @@ var objectExpression$2 = {};
|
|
|
54904
53249
|
|
|
54905
53250
|
var isInsideTuple$1 = {};
|
|
54906
53251
|
|
|
54907
|
-
const {types: types
|
|
54908
|
-
const {isArrayExpression: isArrayExpression$
|
|
53252
|
+
const {types: types$$} = bundle;
|
|
53253
|
+
const {isArrayExpression: isArrayExpression$8} = types$$;
|
|
54909
53254
|
|
|
54910
53255
|
const TYPES$3 = [
|
|
54911
53256
|
'NullLiteral',
|
|
@@ -54916,7 +53261,7 @@ const TYPES$3 = [
|
|
|
54916
53261
|
isInsideTuple$1.isInsideTuple = (path) => {
|
|
54917
53262
|
const {parentPath} = path;
|
|
54918
53263
|
|
|
54919
|
-
if (!isArrayExpression$
|
|
53264
|
+
if (!isArrayExpression$8(parentPath))
|
|
54920
53265
|
return false;
|
|
54921
53266
|
|
|
54922
53267
|
const [first, second] = parentPath.node.elements;
|
|
@@ -54929,15 +53274,15 @@ isInsideTuple$1.isInsideTuple = (path) => {
|
|
|
54929
53274
|
|
|
54930
53275
|
var isThirdObjectInsideArray$1 = {};
|
|
54931
53276
|
|
|
54932
|
-
const {types: types$
|
|
53277
|
+
const {types: types$_} = bundle;
|
|
54933
53278
|
const {
|
|
54934
|
-
isArrayExpression: isArrayExpression$
|
|
53279
|
+
isArrayExpression: isArrayExpression$7,
|
|
54935
53280
|
isCallExpression: isCallExpression$6,
|
|
54936
53281
|
isIdentifier: isIdentifier$d,
|
|
54937
|
-
} = types$
|
|
53282
|
+
} = types$_;
|
|
54938
53283
|
|
|
54939
53284
|
isThirdObjectInsideArray$1.isThirdObjectInsideArray = ({parentPath}) => {
|
|
54940
|
-
if (!isArrayExpression$
|
|
53285
|
+
if (!isArrayExpression$7(parentPath))
|
|
54941
53286
|
return false;
|
|
54942
53287
|
|
|
54943
53288
|
const [, second] = parentPath.node.elements;
|
|
@@ -54945,7 +53290,7 @@ isThirdObjectInsideArray$1.isThirdObjectInsideArray = ({parentPath}) => {
|
|
|
54945
53290
|
return isCallExpression$6(second) && !!isIdentifier$d(second);
|
|
54946
53291
|
};
|
|
54947
53292
|
|
|
54948
|
-
const {types: types$
|
|
53293
|
+
const {types: types$Z} = bundle;
|
|
54949
53294
|
const {
|
|
54950
53295
|
isCoupleLines: isCoupleLines$7,
|
|
54951
53296
|
isForOf: isForOf$3,
|
|
@@ -54964,8 +53309,8 @@ const {isThirdObjectInsideArray} = isThirdObjectInsideArray$1;
|
|
|
54964
53309
|
|
|
54965
53310
|
const {
|
|
54966
53311
|
isStringLiteral: isStringLiteral$8,
|
|
54967
|
-
isArrayExpression: isArrayExpression$
|
|
54968
|
-
} = types$
|
|
53312
|
+
isArrayExpression: isArrayExpression$6,
|
|
53313
|
+
} = types$Z;
|
|
54969
53314
|
|
|
54970
53315
|
const isBodyOfArrow = (path) => path.parentPath.node.body === path.node;
|
|
54971
53316
|
const isLogical = (path) => path.get('argument').isLogicalExpression();
|
|
@@ -54987,10 +53332,10 @@ const isMemberExpressionCallee = ({parentPath}) => {
|
|
|
54987
53332
|
const isInsideCall = ({parentPath}) => parentPath.isCallExpression();
|
|
54988
53333
|
|
|
54989
53334
|
function isInsideNestedArrayCall({parentPath}) {
|
|
54990
|
-
if (!isArrayExpression$
|
|
53335
|
+
if (!isArrayExpression$6(parentPath))
|
|
54991
53336
|
return false;
|
|
54992
53337
|
|
|
54993
|
-
if (!isArrayExpression$
|
|
53338
|
+
if (!isArrayExpression$6(parentPath.parentPath))
|
|
54994
53339
|
return false;
|
|
54995
53340
|
|
|
54996
53341
|
return isInsideCall(parentPath.parentPath);
|
|
@@ -55131,12 +53476,12 @@ var objectProperty$3 = {};
|
|
|
55131
53476
|
|
|
55132
53477
|
var concatenate$1 = {};
|
|
55133
53478
|
|
|
55134
|
-
const {types: types$
|
|
53479
|
+
const {types: types$Y} = bundle;
|
|
55135
53480
|
const {
|
|
55136
53481
|
isStringLiteral: isStringLiteral$7,
|
|
55137
53482
|
isTemplateLiteral: isTemplateLiteral$3,
|
|
55138
53483
|
isBinaryExpression,
|
|
55139
|
-
} = types$
|
|
53484
|
+
} = types$Y;
|
|
55140
53485
|
|
|
55141
53486
|
const isStringLike = (a) => {
|
|
55142
53487
|
if (isStringLiteral$7(a))
|
|
@@ -55183,11 +53528,11 @@ concatenate$1.concatenate = (path, {print, indent}) => {
|
|
|
55183
53528
|
indent.dec();
|
|
55184
53529
|
};
|
|
55185
53530
|
|
|
55186
|
-
const {types: types$
|
|
53531
|
+
const {types: types$X} = bundle;
|
|
55187
53532
|
const {isConcatenation: isConcatenation$2} = concatenate$1;
|
|
55188
53533
|
const {isOneLine} = objectExpression$2;
|
|
55189
53534
|
const {printKey: printKey$4} = printKey$7;
|
|
55190
|
-
const {isTSImportType} = types$
|
|
53535
|
+
const {isTSImportType} = types$X;
|
|
55191
53536
|
const isInsideTSImportType = ({parentPath}) => isTSImportType(parentPath.parentPath);
|
|
55192
53537
|
|
|
55193
53538
|
objectProperty$3.ObjectProperty = (path, printer, semantics) => {
|
|
@@ -55241,11 +53586,11 @@ moreThenMaxPropertiesInOneLine$1.moreThenMaxPropertiesInOneLine = (path, {maxPro
|
|
|
55241
53586
|
|
|
55242
53587
|
var maybeTypeAnnotation$4 = {};
|
|
55243
53588
|
|
|
55244
|
-
const {types: types$
|
|
53589
|
+
const {types: types$W} = bundle;
|
|
55245
53590
|
const {
|
|
55246
53591
|
isMemberExpression: isMemberExpression$4,
|
|
55247
53592
|
isSequenceExpression: isSequenceExpression$1,
|
|
55248
|
-
} = types$
|
|
53593
|
+
} = types$W;
|
|
55249
53594
|
|
|
55250
53595
|
maybeTypeAnnotation$4.maybePrintTypeAnnotation = maybePrintTypeAnnotation$3;
|
|
55251
53596
|
|
|
@@ -55276,11 +53621,11 @@ function maybePrintTypeAnnotation$3(path, printer) {
|
|
|
55276
53621
|
|
|
55277
53622
|
var moreThenMaxPropertiesLengthInOneLine$1 = {};
|
|
55278
53623
|
|
|
55279
|
-
const {types: types$
|
|
53624
|
+
const {types: types$V} = bundle;
|
|
55280
53625
|
const {
|
|
55281
|
-
isAssignmentPattern: isAssignmentPattern$
|
|
53626
|
+
isAssignmentPattern: isAssignmentPattern$2,
|
|
55282
53627
|
isIdentifier: isIdentifier$c,
|
|
55283
|
-
} = types$
|
|
53628
|
+
} = types$V;
|
|
55284
53629
|
|
|
55285
53630
|
function getLength(left, right) {
|
|
55286
53631
|
if (isIdentifier$c(left) && isIdentifier$c(right))
|
|
@@ -55296,7 +53641,7 @@ moreThenMaxPropertiesLengthInOneLine$1.moreThenMaxPropertiesLengthInOneLine = (p
|
|
|
55296
53641
|
const {properties} = path.node;
|
|
55297
53642
|
|
|
55298
53643
|
for (const {key, value} of properties) {
|
|
55299
|
-
if (isAssignmentPattern$
|
|
53644
|
+
if (isAssignmentPattern$2(value)) {
|
|
55300
53645
|
const {left, right} = value;
|
|
55301
53646
|
|
|
55302
53647
|
const length = getLength(left, right);
|
|
@@ -55317,6 +53662,45 @@ moreThenMaxPropertiesLengthInOneLine$1.moreThenMaxPropertiesLengthInOneLine = (p
|
|
|
55317
53662
|
return false;
|
|
55318
53663
|
};
|
|
55319
53664
|
|
|
53665
|
+
var calculateLongAssignPattern = {};
|
|
53666
|
+
|
|
53667
|
+
const {types: types$U} = bundle;
|
|
53668
|
+
const {
|
|
53669
|
+
isAssignmentPattern: isAssignmentPattern$1,
|
|
53670
|
+
isArrayExpression: isArrayExpression$5,
|
|
53671
|
+
isObjectExpression: isObjectExpression$7,
|
|
53672
|
+
} = types$U;
|
|
53673
|
+
|
|
53674
|
+
calculateLongAssignPattern.calculateAssigns = (property, semantics) => {
|
|
53675
|
+
const currentAssign = isLongAssignPattern$1(property, semantics);
|
|
53676
|
+
|
|
53677
|
+
const {right} = property.node.value;
|
|
53678
|
+
const isArrayOrObjectRight = isArrayExpression$5(right) || isComplexObject(right);
|
|
53679
|
+
const complexAssign = currentAssign && isArrayOrObjectRight;
|
|
53680
|
+
|
|
53681
|
+
return {
|
|
53682
|
+
complexAssign,
|
|
53683
|
+
};
|
|
53684
|
+
};
|
|
53685
|
+
|
|
53686
|
+
calculateLongAssignPattern.isLongAssignPattern = isLongAssignPattern$1;
|
|
53687
|
+
|
|
53688
|
+
function isLongAssignPattern$1(path, semantics) {
|
|
53689
|
+
if (!isAssignmentPattern$1(path.node.value))
|
|
53690
|
+
return false;
|
|
53691
|
+
|
|
53692
|
+
const {maxPropertiesLengthInOneLine} = semantics;
|
|
53693
|
+
|
|
53694
|
+
return path.node.key.name.length > maxPropertiesLengthInOneLine;
|
|
53695
|
+
}
|
|
53696
|
+
|
|
53697
|
+
function isComplexObject(node) {
|
|
53698
|
+
if (!isObjectExpression$7(node))
|
|
53699
|
+
return false;
|
|
53700
|
+
|
|
53701
|
+
return node.properties.length;
|
|
53702
|
+
}
|
|
53703
|
+
|
|
55320
53704
|
const {types: types$T} = bundle;
|
|
55321
53705
|
const {wrongShorthand} = wrongShortand;
|
|
55322
53706
|
|
|
@@ -55332,6 +53716,11 @@ const {maybeTypeAnnotation: maybeTypeAnnotation$3} = maybeTypeAnnotation$4;
|
|
|
55332
53716
|
const {moreThenMaxPropertiesLengthInOneLine} = moreThenMaxPropertiesLengthInOneLine$1;
|
|
55333
53717
|
const {printKey: printKey$3} = printKey$7;
|
|
55334
53718
|
|
|
53719
|
+
const {
|
|
53720
|
+
calculateAssigns,
|
|
53721
|
+
isLongAssignPattern,
|
|
53722
|
+
} = calculateLongAssignPattern;
|
|
53723
|
+
|
|
55335
53724
|
const {
|
|
55336
53725
|
isObjectExpression: isObjectExpression$6,
|
|
55337
53726
|
isIdentifier: isIdentifier$b,
|
|
@@ -55459,7 +53848,7 @@ objectPattern$1.ObjectPattern = {
|
|
|
55459
53848
|
});
|
|
55460
53849
|
|
|
55461
53850
|
maybe.indent((prevAssignObject || is) && notInsideFn);
|
|
55462
|
-
maybe.print.breakline(couple);
|
|
53851
|
+
maybe.print.breakline(couple && !isLongAssignPattern(property, semantics));
|
|
55463
53852
|
|
|
55464
53853
|
if (!isAssign && nextAssignObject)
|
|
55465
53854
|
print.breakline();
|
|
@@ -55491,7 +53880,9 @@ objectPattern$1.ObjectPattern = {
|
|
|
55491
53880
|
continue;
|
|
55492
53881
|
}
|
|
55493
53882
|
|
|
55494
|
-
|
|
53883
|
+
const {complexAssign} = calculateAssigns(property, semantics);
|
|
53884
|
+
|
|
53885
|
+
if (!complexAssign && (is || hasObject || prevAssignObject && notInsideFn)) {
|
|
55495
53886
|
print(',');
|
|
55496
53887
|
print.newline();
|
|
55497
53888
|
|
|
@@ -61593,7 +59984,7 @@ function snakeCase(str) {
|
|
|
61593
59984
|
const process$1 = require$$0$2;
|
|
61594
59985
|
const toSnakeCase = justSnakeCase;
|
|
61595
59986
|
const {codeFrameColumns: codeFrameColumns$1} = bundle;
|
|
61596
|
-
const {TYPES: TYPES$2} = types$
|
|
59987
|
+
const {TYPES: TYPES$2} = types$17;
|
|
61597
59988
|
|
|
61598
59989
|
const {stringify: stringify$7} = JSON;
|
|
61599
59990
|
const {
|
|
@@ -61780,7 +60171,7 @@ const initSemantics = (format, semantics = {}) => ({
|
|
|
61780
60171
|
const fullstore$2 = fullstore$3;
|
|
61781
60172
|
|
|
61782
60173
|
const babelTraverse$2 = bundle.traverse;
|
|
61783
|
-
const {TYPES: TYPES$1} = types$
|
|
60174
|
+
const {TYPES: TYPES$1} = types$17;
|
|
61784
60175
|
const baseVisitors = visitors$1;
|
|
61785
60176
|
|
|
61786
60177
|
const {
|
|
@@ -64826,750 +63217,9 @@ lib$1.validateRulesRelations = validateRulesRelations$1;
|
|
|
64826
63217
|
|
|
64827
63218
|
var lib = {};
|
|
64828
63219
|
|
|
64829
|
-
var browser = {exports: {}};
|
|
64830
|
-
|
|
64831
|
-
/**
|
|
64832
|
-
* Helpers.
|
|
64833
|
-
*/
|
|
64834
|
-
|
|
64835
|
-
var ms;
|
|
64836
|
-
var hasRequiredMs;
|
|
64837
|
-
|
|
64838
|
-
function requireMs () {
|
|
64839
|
-
if (hasRequiredMs) return ms;
|
|
64840
|
-
hasRequiredMs = 1;
|
|
64841
|
-
var s = 1000;
|
|
64842
|
-
var m = s * 60;
|
|
64843
|
-
var h = m * 60;
|
|
64844
|
-
var d = h * 24;
|
|
64845
|
-
var w = d * 7;
|
|
64846
|
-
var y = d * 365.25;
|
|
64847
|
-
|
|
64848
|
-
/**
|
|
64849
|
-
* Parse or format the given `val`.
|
|
64850
|
-
*
|
|
64851
|
-
* Options:
|
|
64852
|
-
*
|
|
64853
|
-
* - `long` verbose formatting [false]
|
|
64854
|
-
*
|
|
64855
|
-
* @param {String|Number} val
|
|
64856
|
-
* @param {Object} [options]
|
|
64857
|
-
* @throws {Error} throw an error if val is not a non-empty string or a number
|
|
64858
|
-
* @return {String|Number}
|
|
64859
|
-
* @api public
|
|
64860
|
-
*/
|
|
64861
|
-
|
|
64862
|
-
ms = function (val, options) {
|
|
64863
|
-
options = options || {};
|
|
64864
|
-
var type = typeof val;
|
|
64865
|
-
if (type === 'string' && val.length > 0) {
|
|
64866
|
-
return parse(val);
|
|
64867
|
-
} else if (type === 'number' && isFinite(val)) {
|
|
64868
|
-
return options.long ? fmtLong(val) : fmtShort(val);
|
|
64869
|
-
}
|
|
64870
|
-
throw new Error(
|
|
64871
|
-
'val is not a non-empty string or a valid number. val=' +
|
|
64872
|
-
JSON.stringify(val)
|
|
64873
|
-
);
|
|
64874
|
-
};
|
|
64875
|
-
|
|
64876
|
-
/**
|
|
64877
|
-
* Parse the given `str` and return milliseconds.
|
|
64878
|
-
*
|
|
64879
|
-
* @param {String} str
|
|
64880
|
-
* @return {Number}
|
|
64881
|
-
* @api private
|
|
64882
|
-
*/
|
|
64883
|
-
|
|
64884
|
-
function parse(str) {
|
|
64885
|
-
str = String(str);
|
|
64886
|
-
if (str.length > 100) {
|
|
64887
|
-
return;
|
|
64888
|
-
}
|
|
64889
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
64890
|
-
str
|
|
64891
|
-
);
|
|
64892
|
-
if (!match) {
|
|
64893
|
-
return;
|
|
64894
|
-
}
|
|
64895
|
-
var n = parseFloat(match[1]);
|
|
64896
|
-
var type = (match[2] || 'ms').toLowerCase();
|
|
64897
|
-
switch (type) {
|
|
64898
|
-
case 'years':
|
|
64899
|
-
case 'year':
|
|
64900
|
-
case 'yrs':
|
|
64901
|
-
case 'yr':
|
|
64902
|
-
case 'y':
|
|
64903
|
-
return n * y;
|
|
64904
|
-
case 'weeks':
|
|
64905
|
-
case 'week':
|
|
64906
|
-
case 'w':
|
|
64907
|
-
return n * w;
|
|
64908
|
-
case 'days':
|
|
64909
|
-
case 'day':
|
|
64910
|
-
case 'd':
|
|
64911
|
-
return n * d;
|
|
64912
|
-
case 'hours':
|
|
64913
|
-
case 'hour':
|
|
64914
|
-
case 'hrs':
|
|
64915
|
-
case 'hr':
|
|
64916
|
-
case 'h':
|
|
64917
|
-
return n * h;
|
|
64918
|
-
case 'minutes':
|
|
64919
|
-
case 'minute':
|
|
64920
|
-
case 'mins':
|
|
64921
|
-
case 'min':
|
|
64922
|
-
case 'm':
|
|
64923
|
-
return n * m;
|
|
64924
|
-
case 'seconds':
|
|
64925
|
-
case 'second':
|
|
64926
|
-
case 'secs':
|
|
64927
|
-
case 'sec':
|
|
64928
|
-
case 's':
|
|
64929
|
-
return n * s;
|
|
64930
|
-
case 'milliseconds':
|
|
64931
|
-
case 'millisecond':
|
|
64932
|
-
case 'msecs':
|
|
64933
|
-
case 'msec':
|
|
64934
|
-
case 'ms':
|
|
64935
|
-
return n;
|
|
64936
|
-
default:
|
|
64937
|
-
return undefined;
|
|
64938
|
-
}
|
|
64939
|
-
}
|
|
64940
|
-
|
|
64941
|
-
/**
|
|
64942
|
-
* Short format for `ms`.
|
|
64943
|
-
*
|
|
64944
|
-
* @param {Number} ms
|
|
64945
|
-
* @return {String}
|
|
64946
|
-
* @api private
|
|
64947
|
-
*/
|
|
64948
|
-
|
|
64949
|
-
function fmtShort(ms) {
|
|
64950
|
-
var msAbs = Math.abs(ms);
|
|
64951
|
-
if (msAbs >= d) {
|
|
64952
|
-
return Math.round(ms / d) + 'd';
|
|
64953
|
-
}
|
|
64954
|
-
if (msAbs >= h) {
|
|
64955
|
-
return Math.round(ms / h) + 'h';
|
|
64956
|
-
}
|
|
64957
|
-
if (msAbs >= m) {
|
|
64958
|
-
return Math.round(ms / m) + 'm';
|
|
64959
|
-
}
|
|
64960
|
-
if (msAbs >= s) {
|
|
64961
|
-
return Math.round(ms / s) + 's';
|
|
64962
|
-
}
|
|
64963
|
-
return ms + 'ms';
|
|
64964
|
-
}
|
|
64965
|
-
|
|
64966
|
-
/**
|
|
64967
|
-
* Long format for `ms`.
|
|
64968
|
-
*
|
|
64969
|
-
* @param {Number} ms
|
|
64970
|
-
* @return {String}
|
|
64971
|
-
* @api private
|
|
64972
|
-
*/
|
|
64973
|
-
|
|
64974
|
-
function fmtLong(ms) {
|
|
64975
|
-
var msAbs = Math.abs(ms);
|
|
64976
|
-
if (msAbs >= d) {
|
|
64977
|
-
return plural(ms, msAbs, d, 'day');
|
|
64978
|
-
}
|
|
64979
|
-
if (msAbs >= h) {
|
|
64980
|
-
return plural(ms, msAbs, h, 'hour');
|
|
64981
|
-
}
|
|
64982
|
-
if (msAbs >= m) {
|
|
64983
|
-
return plural(ms, msAbs, m, 'minute');
|
|
64984
|
-
}
|
|
64985
|
-
if (msAbs >= s) {
|
|
64986
|
-
return plural(ms, msAbs, s, 'second');
|
|
64987
|
-
}
|
|
64988
|
-
return ms + ' ms';
|
|
64989
|
-
}
|
|
64990
|
-
|
|
64991
|
-
/**
|
|
64992
|
-
* Pluralization helper.
|
|
64993
|
-
*/
|
|
64994
|
-
|
|
64995
|
-
function plural(ms, msAbs, n, name) {
|
|
64996
|
-
var isPlural = msAbs >= n * 1.5;
|
|
64997
|
-
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
|
64998
|
-
}
|
|
64999
|
-
return ms;
|
|
65000
|
-
}
|
|
65001
|
-
|
|
65002
|
-
/**
|
|
65003
|
-
* This is the common logic for both the Node.js and web browser
|
|
65004
|
-
* implementations of `debug()`.
|
|
65005
|
-
*/
|
|
65006
|
-
|
|
65007
|
-
function setup(env) {
|
|
65008
|
-
createDebug.debug = createDebug;
|
|
65009
|
-
createDebug.default = createDebug;
|
|
65010
|
-
createDebug.coerce = coerce;
|
|
65011
|
-
createDebug.disable = disable;
|
|
65012
|
-
createDebug.enable = enable;
|
|
65013
|
-
createDebug.enabled = enabled;
|
|
65014
|
-
createDebug.humanize = requireMs();
|
|
65015
|
-
createDebug.destroy = destroy;
|
|
65016
|
-
|
|
65017
|
-
Object.keys(env).forEach(key => {
|
|
65018
|
-
createDebug[key] = env[key];
|
|
65019
|
-
});
|
|
65020
|
-
|
|
65021
|
-
/**
|
|
65022
|
-
* The currently active debug mode names, and names to skip.
|
|
65023
|
-
*/
|
|
65024
|
-
|
|
65025
|
-
createDebug.names = [];
|
|
65026
|
-
createDebug.skips = [];
|
|
65027
|
-
|
|
65028
|
-
/**
|
|
65029
|
-
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
65030
|
-
*
|
|
65031
|
-
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
65032
|
-
*/
|
|
65033
|
-
createDebug.formatters = {};
|
|
65034
|
-
|
|
65035
|
-
/**
|
|
65036
|
-
* Selects a color for a debug namespace
|
|
65037
|
-
* @param {String} namespace The namespace string for the debug instance to be colored
|
|
65038
|
-
* @return {Number|String} An ANSI color code for the given namespace
|
|
65039
|
-
* @api private
|
|
65040
|
-
*/
|
|
65041
|
-
function selectColor(namespace) {
|
|
65042
|
-
let hash = 0;
|
|
65043
|
-
|
|
65044
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
65045
|
-
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
|
|
65046
|
-
hash |= 0; // Convert to 32bit integer
|
|
65047
|
-
}
|
|
65048
|
-
|
|
65049
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
65050
|
-
}
|
|
65051
|
-
createDebug.selectColor = selectColor;
|
|
65052
|
-
|
|
65053
|
-
/**
|
|
65054
|
-
* Create a debugger with the given `namespace`.
|
|
65055
|
-
*
|
|
65056
|
-
* @param {String} namespace
|
|
65057
|
-
* @return {Function}
|
|
65058
|
-
* @api public
|
|
65059
|
-
*/
|
|
65060
|
-
function createDebug(namespace) {
|
|
65061
|
-
let prevTime;
|
|
65062
|
-
let enableOverride = null;
|
|
65063
|
-
let namespacesCache;
|
|
65064
|
-
let enabledCache;
|
|
65065
|
-
|
|
65066
|
-
function debug(...args) {
|
|
65067
|
-
// Disabled?
|
|
65068
|
-
if (!debug.enabled) {
|
|
65069
|
-
return;
|
|
65070
|
-
}
|
|
65071
|
-
|
|
65072
|
-
const self = debug;
|
|
65073
|
-
|
|
65074
|
-
// Set `diff` timestamp
|
|
65075
|
-
const curr = Number(new Date());
|
|
65076
|
-
const ms = curr - (prevTime || curr);
|
|
65077
|
-
self.diff = ms;
|
|
65078
|
-
self.prev = prevTime;
|
|
65079
|
-
self.curr = curr;
|
|
65080
|
-
prevTime = curr;
|
|
65081
|
-
|
|
65082
|
-
args[0] = createDebug.coerce(args[0]);
|
|
65083
|
-
|
|
65084
|
-
if (typeof args[0] !== 'string') {
|
|
65085
|
-
// Anything else let's inspect with %O
|
|
65086
|
-
args.unshift('%O');
|
|
65087
|
-
}
|
|
65088
|
-
|
|
65089
|
-
// Apply any `formatters` transformations
|
|
65090
|
-
let index = 0;
|
|
65091
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
65092
|
-
// If we encounter an escaped % then don't increase the array index
|
|
65093
|
-
if (match === '%%') {
|
|
65094
|
-
return '%';
|
|
65095
|
-
}
|
|
65096
|
-
index++;
|
|
65097
|
-
const formatter = createDebug.formatters[format];
|
|
65098
|
-
if (typeof formatter === 'function') {
|
|
65099
|
-
const val = args[index];
|
|
65100
|
-
match = formatter.call(self, val);
|
|
65101
|
-
|
|
65102
|
-
// Now we need to remove `args[index]` since it's inlined in the `format`
|
|
65103
|
-
args.splice(index, 1);
|
|
65104
|
-
index--;
|
|
65105
|
-
}
|
|
65106
|
-
return match;
|
|
65107
|
-
});
|
|
65108
|
-
|
|
65109
|
-
// Apply env-specific formatting (colors, etc.)
|
|
65110
|
-
createDebug.formatArgs.call(self, args);
|
|
65111
|
-
|
|
65112
|
-
const logFn = self.log || createDebug.log;
|
|
65113
|
-
logFn.apply(self, args);
|
|
65114
|
-
}
|
|
65115
|
-
|
|
65116
|
-
debug.namespace = namespace;
|
|
65117
|
-
debug.useColors = createDebug.useColors();
|
|
65118
|
-
debug.color = createDebug.selectColor(namespace);
|
|
65119
|
-
debug.extend = extend;
|
|
65120
|
-
debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
|
|
65121
|
-
|
|
65122
|
-
Object.defineProperty(debug, 'enabled', {
|
|
65123
|
-
enumerable: true,
|
|
65124
|
-
configurable: false,
|
|
65125
|
-
get: () => {
|
|
65126
|
-
if (enableOverride !== null) {
|
|
65127
|
-
return enableOverride;
|
|
65128
|
-
}
|
|
65129
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
65130
|
-
namespacesCache = createDebug.namespaces;
|
|
65131
|
-
enabledCache = createDebug.enabled(namespace);
|
|
65132
|
-
}
|
|
65133
|
-
|
|
65134
|
-
return enabledCache;
|
|
65135
|
-
},
|
|
65136
|
-
set: v => {
|
|
65137
|
-
enableOverride = v;
|
|
65138
|
-
}
|
|
65139
|
-
});
|
|
65140
|
-
|
|
65141
|
-
// Env-specific initialization logic for debug instances
|
|
65142
|
-
if (typeof createDebug.init === 'function') {
|
|
65143
|
-
createDebug.init(debug);
|
|
65144
|
-
}
|
|
65145
|
-
|
|
65146
|
-
return debug;
|
|
65147
|
-
}
|
|
65148
|
-
|
|
65149
|
-
function extend(namespace, delimiter) {
|
|
65150
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
|
65151
|
-
newDebug.log = this.log;
|
|
65152
|
-
return newDebug;
|
|
65153
|
-
}
|
|
65154
|
-
|
|
65155
|
-
/**
|
|
65156
|
-
* Enables a debug mode by namespaces. This can include modes
|
|
65157
|
-
* separated by a colon and wildcards.
|
|
65158
|
-
*
|
|
65159
|
-
* @param {String} namespaces
|
|
65160
|
-
* @api public
|
|
65161
|
-
*/
|
|
65162
|
-
function enable(namespaces) {
|
|
65163
|
-
createDebug.save(namespaces);
|
|
65164
|
-
createDebug.namespaces = namespaces;
|
|
65165
|
-
|
|
65166
|
-
createDebug.names = [];
|
|
65167
|
-
createDebug.skips = [];
|
|
65168
|
-
|
|
65169
|
-
const split = (typeof namespaces === 'string' ? namespaces : '')
|
|
65170
|
-
.trim()
|
|
65171
|
-
.replace(/\s+/g, ',')
|
|
65172
|
-
.split(',')
|
|
65173
|
-
.filter(Boolean);
|
|
65174
|
-
|
|
65175
|
-
for (const ns of split) {
|
|
65176
|
-
if (ns[0] === '-') {
|
|
65177
|
-
createDebug.skips.push(ns.slice(1));
|
|
65178
|
-
} else {
|
|
65179
|
-
createDebug.names.push(ns);
|
|
65180
|
-
}
|
|
65181
|
-
}
|
|
65182
|
-
}
|
|
65183
|
-
|
|
65184
|
-
/**
|
|
65185
|
-
* Checks if the given string matches a namespace template, honoring
|
|
65186
|
-
* asterisks as wildcards.
|
|
65187
|
-
*
|
|
65188
|
-
* @param {String} search
|
|
65189
|
-
* @param {String} template
|
|
65190
|
-
* @return {Boolean}
|
|
65191
|
-
*/
|
|
65192
|
-
function matchesTemplate(search, template) {
|
|
65193
|
-
let searchIndex = 0;
|
|
65194
|
-
let templateIndex = 0;
|
|
65195
|
-
let starIndex = -1;
|
|
65196
|
-
let matchIndex = 0;
|
|
65197
|
-
|
|
65198
|
-
while (searchIndex < search.length) {
|
|
65199
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
|
|
65200
|
-
// Match character or proceed with wildcard
|
|
65201
|
-
if (template[templateIndex] === '*') {
|
|
65202
|
-
starIndex = templateIndex;
|
|
65203
|
-
matchIndex = searchIndex;
|
|
65204
|
-
templateIndex++; // Skip the '*'
|
|
65205
|
-
} else {
|
|
65206
|
-
searchIndex++;
|
|
65207
|
-
templateIndex++;
|
|
65208
|
-
}
|
|
65209
|
-
} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
|
|
65210
|
-
// Backtrack to the last '*' and try to match more characters
|
|
65211
|
-
templateIndex = starIndex + 1;
|
|
65212
|
-
matchIndex++;
|
|
65213
|
-
searchIndex = matchIndex;
|
|
65214
|
-
} else {
|
|
65215
|
-
return false; // No match
|
|
65216
|
-
}
|
|
65217
|
-
}
|
|
65218
|
-
|
|
65219
|
-
// Handle trailing '*' in template
|
|
65220
|
-
while (templateIndex < template.length && template[templateIndex] === '*') {
|
|
65221
|
-
templateIndex++;
|
|
65222
|
-
}
|
|
65223
|
-
|
|
65224
|
-
return templateIndex === template.length;
|
|
65225
|
-
}
|
|
65226
|
-
|
|
65227
|
-
/**
|
|
65228
|
-
* Disable debug output.
|
|
65229
|
-
*
|
|
65230
|
-
* @return {String} namespaces
|
|
65231
|
-
* @api public
|
|
65232
|
-
*/
|
|
65233
|
-
function disable() {
|
|
65234
|
-
const namespaces = [
|
|
65235
|
-
...createDebug.names,
|
|
65236
|
-
...createDebug.skips.map(namespace => '-' + namespace)
|
|
65237
|
-
].join(',');
|
|
65238
|
-
createDebug.enable('');
|
|
65239
|
-
return namespaces;
|
|
65240
|
-
}
|
|
65241
|
-
|
|
65242
|
-
/**
|
|
65243
|
-
* Returns true if the given mode name is enabled, false otherwise.
|
|
65244
|
-
*
|
|
65245
|
-
* @param {String} name
|
|
65246
|
-
* @return {Boolean}
|
|
65247
|
-
* @api public
|
|
65248
|
-
*/
|
|
65249
|
-
function enabled(name) {
|
|
65250
|
-
for (const skip of createDebug.skips) {
|
|
65251
|
-
if (matchesTemplate(name, skip)) {
|
|
65252
|
-
return false;
|
|
65253
|
-
}
|
|
65254
|
-
}
|
|
65255
|
-
|
|
65256
|
-
for (const ns of createDebug.names) {
|
|
65257
|
-
if (matchesTemplate(name, ns)) {
|
|
65258
|
-
return true;
|
|
65259
|
-
}
|
|
65260
|
-
}
|
|
65261
|
-
|
|
65262
|
-
return false;
|
|
65263
|
-
}
|
|
65264
|
-
|
|
65265
|
-
/**
|
|
65266
|
-
* Coerce `val`.
|
|
65267
|
-
*
|
|
65268
|
-
* @param {Mixed} val
|
|
65269
|
-
* @return {Mixed}
|
|
65270
|
-
* @api private
|
|
65271
|
-
*/
|
|
65272
|
-
function coerce(val) {
|
|
65273
|
-
if (val instanceof Error) {
|
|
65274
|
-
return val.stack || val.message;
|
|
65275
|
-
}
|
|
65276
|
-
return val;
|
|
65277
|
-
}
|
|
65278
|
-
|
|
65279
|
-
/**
|
|
65280
|
-
* XXX DO NOT USE. This is a temporary stub function.
|
|
65281
|
-
* XXX It WILL be removed in the next major release.
|
|
65282
|
-
*/
|
|
65283
|
-
function destroy() {
|
|
65284
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
65285
|
-
}
|
|
65286
|
-
|
|
65287
|
-
createDebug.enable(createDebug.load());
|
|
65288
|
-
|
|
65289
|
-
return createDebug;
|
|
65290
|
-
}
|
|
65291
|
-
|
|
65292
|
-
var common = setup;
|
|
65293
|
-
|
|
65294
|
-
(function (module, exports) {
|
|
65295
|
-
/**
|
|
65296
|
-
* This is the web browser implementation of `debug()`.
|
|
65297
|
-
*/
|
|
65298
|
-
|
|
65299
|
-
exports.formatArgs = formatArgs;
|
|
65300
|
-
exports.save = save;
|
|
65301
|
-
exports.load = load;
|
|
65302
|
-
exports.useColors = useColors;
|
|
65303
|
-
exports.storage = localstorage();
|
|
65304
|
-
exports.destroy = (() => {
|
|
65305
|
-
let warned = false;
|
|
65306
|
-
|
|
65307
|
-
return () => {
|
|
65308
|
-
if (!warned) {
|
|
65309
|
-
warned = true;
|
|
65310
|
-
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
|
65311
|
-
}
|
|
65312
|
-
};
|
|
65313
|
-
})();
|
|
65314
|
-
|
|
65315
|
-
/**
|
|
65316
|
-
* Colors.
|
|
65317
|
-
*/
|
|
65318
|
-
|
|
65319
|
-
exports.colors = [
|
|
65320
|
-
'#0000CC',
|
|
65321
|
-
'#0000FF',
|
|
65322
|
-
'#0033CC',
|
|
65323
|
-
'#0033FF',
|
|
65324
|
-
'#0066CC',
|
|
65325
|
-
'#0066FF',
|
|
65326
|
-
'#0099CC',
|
|
65327
|
-
'#0099FF',
|
|
65328
|
-
'#00CC00',
|
|
65329
|
-
'#00CC33',
|
|
65330
|
-
'#00CC66',
|
|
65331
|
-
'#00CC99',
|
|
65332
|
-
'#00CCCC',
|
|
65333
|
-
'#00CCFF',
|
|
65334
|
-
'#3300CC',
|
|
65335
|
-
'#3300FF',
|
|
65336
|
-
'#3333CC',
|
|
65337
|
-
'#3333FF',
|
|
65338
|
-
'#3366CC',
|
|
65339
|
-
'#3366FF',
|
|
65340
|
-
'#3399CC',
|
|
65341
|
-
'#3399FF',
|
|
65342
|
-
'#33CC00',
|
|
65343
|
-
'#33CC33',
|
|
65344
|
-
'#33CC66',
|
|
65345
|
-
'#33CC99',
|
|
65346
|
-
'#33CCCC',
|
|
65347
|
-
'#33CCFF',
|
|
65348
|
-
'#6600CC',
|
|
65349
|
-
'#6600FF',
|
|
65350
|
-
'#6633CC',
|
|
65351
|
-
'#6633FF',
|
|
65352
|
-
'#66CC00',
|
|
65353
|
-
'#66CC33',
|
|
65354
|
-
'#9900CC',
|
|
65355
|
-
'#9900FF',
|
|
65356
|
-
'#9933CC',
|
|
65357
|
-
'#9933FF',
|
|
65358
|
-
'#99CC00',
|
|
65359
|
-
'#99CC33',
|
|
65360
|
-
'#CC0000',
|
|
65361
|
-
'#CC0033',
|
|
65362
|
-
'#CC0066',
|
|
65363
|
-
'#CC0099',
|
|
65364
|
-
'#CC00CC',
|
|
65365
|
-
'#CC00FF',
|
|
65366
|
-
'#CC3300',
|
|
65367
|
-
'#CC3333',
|
|
65368
|
-
'#CC3366',
|
|
65369
|
-
'#CC3399',
|
|
65370
|
-
'#CC33CC',
|
|
65371
|
-
'#CC33FF',
|
|
65372
|
-
'#CC6600',
|
|
65373
|
-
'#CC6633',
|
|
65374
|
-
'#CC9900',
|
|
65375
|
-
'#CC9933',
|
|
65376
|
-
'#CCCC00',
|
|
65377
|
-
'#CCCC33',
|
|
65378
|
-
'#FF0000',
|
|
65379
|
-
'#FF0033',
|
|
65380
|
-
'#FF0066',
|
|
65381
|
-
'#FF0099',
|
|
65382
|
-
'#FF00CC',
|
|
65383
|
-
'#FF00FF',
|
|
65384
|
-
'#FF3300',
|
|
65385
|
-
'#FF3333',
|
|
65386
|
-
'#FF3366',
|
|
65387
|
-
'#FF3399',
|
|
65388
|
-
'#FF33CC',
|
|
65389
|
-
'#FF33FF',
|
|
65390
|
-
'#FF6600',
|
|
65391
|
-
'#FF6633',
|
|
65392
|
-
'#FF9900',
|
|
65393
|
-
'#FF9933',
|
|
65394
|
-
'#FFCC00',
|
|
65395
|
-
'#FFCC33'
|
|
65396
|
-
];
|
|
65397
|
-
|
|
65398
|
-
/**
|
|
65399
|
-
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
65400
|
-
* and the Firebug extension (any Firefox version) are known
|
|
65401
|
-
* to support "%c" CSS customizations.
|
|
65402
|
-
*
|
|
65403
|
-
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
|
65404
|
-
*/
|
|
65405
|
-
|
|
65406
|
-
// eslint-disable-next-line complexity
|
|
65407
|
-
function useColors() {
|
|
65408
|
-
// NB: In an Electron preload script, document will be defined but not fully
|
|
65409
|
-
// initialized. Since we know we're in Chrome, we'll just detect this case
|
|
65410
|
-
// explicitly
|
|
65411
|
-
if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
|
|
65412
|
-
return true;
|
|
65413
|
-
}
|
|
65414
|
-
|
|
65415
|
-
// Internet Explorer and Edge do not support colors.
|
|
65416
|
-
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
65417
|
-
return false;
|
|
65418
|
-
}
|
|
65419
|
-
|
|
65420
|
-
let m;
|
|
65421
|
-
|
|
65422
|
-
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
65423
|
-
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
65424
|
-
// eslint-disable-next-line no-return-assign
|
|
65425
|
-
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
65426
|
-
// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
65427
|
-
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
65428
|
-
// Is firefox >= v31?
|
|
65429
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
65430
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
|
|
65431
|
-
// Double check webkit in userAgent just in case we are in a worker
|
|
65432
|
-
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
|
65433
|
-
}
|
|
65434
|
-
|
|
65435
|
-
/**
|
|
65436
|
-
* Colorize log arguments if enabled.
|
|
65437
|
-
*
|
|
65438
|
-
* @api public
|
|
65439
|
-
*/
|
|
65440
|
-
|
|
65441
|
-
function formatArgs(args) {
|
|
65442
|
-
args[0] = (this.useColors ? '%c' : '') +
|
|
65443
|
-
this.namespace +
|
|
65444
|
-
(this.useColors ? ' %c' : ' ') +
|
|
65445
|
-
args[0] +
|
|
65446
|
-
(this.useColors ? '%c ' : ' ') +
|
|
65447
|
-
'+' + module.exports.humanize(this.diff);
|
|
65448
|
-
|
|
65449
|
-
if (!this.useColors) {
|
|
65450
|
-
return;
|
|
65451
|
-
}
|
|
65452
|
-
|
|
65453
|
-
const c = 'color: ' + this.color;
|
|
65454
|
-
args.splice(1, 0, c, 'color: inherit');
|
|
65455
|
-
|
|
65456
|
-
// The final "%c" is somewhat tricky, because there could be other
|
|
65457
|
-
// arguments passed either before or after the %c, so we need to
|
|
65458
|
-
// figure out the correct index to insert the CSS into
|
|
65459
|
-
let index = 0;
|
|
65460
|
-
let lastC = 0;
|
|
65461
|
-
args[0].replace(/%[a-zA-Z%]/g, match => {
|
|
65462
|
-
if (match === '%%') {
|
|
65463
|
-
return;
|
|
65464
|
-
}
|
|
65465
|
-
index++;
|
|
65466
|
-
if (match === '%c') {
|
|
65467
|
-
// We only are interested in the *last* %c
|
|
65468
|
-
// (the user may have provided their own)
|
|
65469
|
-
lastC = index;
|
|
65470
|
-
}
|
|
65471
|
-
});
|
|
65472
|
-
|
|
65473
|
-
args.splice(lastC, 0, c);
|
|
65474
|
-
}
|
|
65475
|
-
|
|
65476
|
-
/**
|
|
65477
|
-
* Invokes `console.debug()` when available.
|
|
65478
|
-
* No-op when `console.debug` is not a "function".
|
|
65479
|
-
* If `console.debug` is not available, falls back
|
|
65480
|
-
* to `console.log`.
|
|
65481
|
-
*
|
|
65482
|
-
* @api public
|
|
65483
|
-
*/
|
|
65484
|
-
exports.log = console.debug || console.log || (() => {});
|
|
65485
|
-
|
|
65486
|
-
/**
|
|
65487
|
-
* Save `namespaces`.
|
|
65488
|
-
*
|
|
65489
|
-
* @param {String} namespaces
|
|
65490
|
-
* @api private
|
|
65491
|
-
*/
|
|
65492
|
-
function save(namespaces) {
|
|
65493
|
-
try {
|
|
65494
|
-
if (namespaces) {
|
|
65495
|
-
exports.storage.setItem('debug', namespaces);
|
|
65496
|
-
} else {
|
|
65497
|
-
exports.storage.removeItem('debug');
|
|
65498
|
-
}
|
|
65499
|
-
} catch (error) {
|
|
65500
|
-
// Swallow
|
|
65501
|
-
// XXX (@Qix-) should we be logging these?
|
|
65502
|
-
}
|
|
65503
|
-
}
|
|
65504
|
-
|
|
65505
|
-
/**
|
|
65506
|
-
* Load `namespaces`.
|
|
65507
|
-
*
|
|
65508
|
-
* @return {String} returns the previously persisted debug modes
|
|
65509
|
-
* @api private
|
|
65510
|
-
*/
|
|
65511
|
-
function load() {
|
|
65512
|
-
let r;
|
|
65513
|
-
try {
|
|
65514
|
-
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
|
|
65515
|
-
} catch (error) {
|
|
65516
|
-
// Swallow
|
|
65517
|
-
// XXX (@Qix-) should we be logging these?
|
|
65518
|
-
}
|
|
65519
|
-
|
|
65520
|
-
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
65521
|
-
if (!r && typeof browser$1$1 !== 'undefined' && 'env' in browser$1$1) {
|
|
65522
|
-
r = browser$1$1.env.DEBUG;
|
|
65523
|
-
}
|
|
65524
|
-
|
|
65525
|
-
return r;
|
|
65526
|
-
}
|
|
65527
|
-
|
|
65528
|
-
/**
|
|
65529
|
-
* Localstorage attempts to return the localstorage.
|
|
65530
|
-
*
|
|
65531
|
-
* This is necessary because safari throws
|
|
65532
|
-
* when a user disables cookies/localstorage
|
|
65533
|
-
* and you attempt to access it.
|
|
65534
|
-
*
|
|
65535
|
-
* @return {LocalStorage}
|
|
65536
|
-
* @api private
|
|
65537
|
-
*/
|
|
65538
|
-
|
|
65539
|
-
function localstorage() {
|
|
65540
|
-
try {
|
|
65541
|
-
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
|
65542
|
-
// The Browser also has localStorage in the global context.
|
|
65543
|
-
return localStorage;
|
|
65544
|
-
} catch (error) {
|
|
65545
|
-
// Swallow
|
|
65546
|
-
// XXX (@Qix-) should we be logging these?
|
|
65547
|
-
}
|
|
65548
|
-
}
|
|
65549
|
-
|
|
65550
|
-
module.exports = common(exports);
|
|
65551
|
-
|
|
65552
|
-
const {formatters} = module.exports;
|
|
65553
|
-
|
|
65554
|
-
/**
|
|
65555
|
-
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
65556
|
-
*/
|
|
65557
|
-
|
|
65558
|
-
formatters.j = function (v) {
|
|
65559
|
-
try {
|
|
65560
|
-
return JSON.stringify(v);
|
|
65561
|
-
} catch (error) {
|
|
65562
|
-
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
65563
|
-
}
|
|
65564
|
-
};
|
|
65565
|
-
} (browser, browser.exports));
|
|
65566
|
-
|
|
65567
|
-
var browserExports = browser.exports;
|
|
65568
|
-
browserExports.default;
|
|
65569
|
-
|
|
65570
63220
|
var debug$6 = {};
|
|
65571
63221
|
|
|
65572
|
-
const debug$5 =
|
|
63222
|
+
const debug$5 = require$$1$1;
|
|
65573
63223
|
|
|
65574
63224
|
debug$6.createDebug = (namespace) => {
|
|
65575
63225
|
const log = debug$5(namespace);
|
|
@@ -66650,7 +64300,7 @@ var runComparators$1 = {};
|
|
|
66650
64300
|
|
|
66651
64301
|
var log$5 = {exports: {}};
|
|
66652
64302
|
|
|
66653
|
-
const debug$3 =
|
|
64303
|
+
const debug$3 = require$$1$1('putout:compare');
|
|
66654
64304
|
|
|
66655
64305
|
const {isArray: isArray$5} = Array;
|
|
66656
64306
|
const isObject$4 = (a) => a && typeof a === 'object';
|
|
@@ -67832,7 +65482,7 @@ tryThrowWithReason$1.tryThrowWithReason = (fn, ...args) => {
|
|
|
67832
65482
|
|
|
67833
65483
|
var includer = {};
|
|
67834
65484
|
|
|
67835
|
-
const log$2 =
|
|
65485
|
+
const log$2 = require$$1$1('putout:runner:include');
|
|
67836
65486
|
const maybeArray$2 = maybeArray_1;
|
|
67837
65487
|
const {validate} = validate$2;
|
|
67838
65488
|
|
|
@@ -69277,7 +66927,7 @@ const {
|
|
|
69277
66927
|
start,
|
|
69278
66928
|
} = filesystem;
|
|
69279
66929
|
|
|
69280
|
-
const log =
|
|
66930
|
+
const log = require$$1$1('putout:runner:scanner');
|
|
69281
66931
|
|
|
69282
66932
|
const fromSimple = convertSimpleFilesystemToFilesystem;
|
|
69283
66933
|
const toSimple = convertFilesystemToSimpleFilesystem;
|
|
@@ -69428,7 +67078,7 @@ function parseVisitor(visitors) {
|
|
|
69428
67078
|
|
|
69429
67079
|
const {traverse: defaultTraverse} = bundle;
|
|
69430
67080
|
const once = onceExports;
|
|
69431
|
-
const debug =
|
|
67081
|
+
const debug = require$$1$1('putout:runner:find');
|
|
69432
67082
|
|
|
69433
67083
|
const runFix = runFix$3;
|
|
69434
67084
|
const mergeVisitors = mergeVisitors$1;
|