@coana-tech/cli 14.12.39 → 14.12.40
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/cli.mjs +455 -418
- package/package.json +1 -1
- package/repos/coana-tech/alucard/alucard.jar +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
package/cli.mjs
CHANGED
|
@@ -4827,7 +4827,7 @@ var require_ms = __commonJS({
|
|
|
4827
4827
|
var h = m4 * 60;
|
|
4828
4828
|
var d4 = h * 24;
|
|
4829
4829
|
var w = d4 * 7;
|
|
4830
|
-
var
|
|
4830
|
+
var y10 = d4 * 365.25;
|
|
4831
4831
|
module2.exports = function(val2, options) {
|
|
4832
4832
|
options = options || {};
|
|
4833
4833
|
var type = typeof val2;
|
|
@@ -4859,7 +4859,7 @@ var require_ms = __commonJS({
|
|
|
4859
4859
|
case "yrs":
|
|
4860
4860
|
case "yr":
|
|
4861
4861
|
case "y":
|
|
4862
|
-
return n2 *
|
|
4862
|
+
return n2 * y10;
|
|
4863
4863
|
case "weeks":
|
|
4864
4864
|
case "week":
|
|
4865
4865
|
case "w":
|
|
@@ -10069,16 +10069,16 @@ var require_conversions = __commonJS({
|
|
|
10069
10069
|
var b = rgb[2] / 255;
|
|
10070
10070
|
var c4;
|
|
10071
10071
|
var m4;
|
|
10072
|
-
var
|
|
10072
|
+
var y10;
|
|
10073
10073
|
var k2;
|
|
10074
10074
|
k2 = Math.min(1 - r3, 1 - g, 1 - b);
|
|
10075
10075
|
c4 = (1 - r3 - k2) / (1 - k2) || 0;
|
|
10076
10076
|
m4 = (1 - g - k2) / (1 - k2) || 0;
|
|
10077
|
-
|
|
10078
|
-
return [c4 * 100, m4 * 100,
|
|
10077
|
+
y10 = (1 - b - k2) / (1 - k2) || 0;
|
|
10078
|
+
return [c4 * 100, m4 * 100, y10 * 100, k2 * 100];
|
|
10079
10079
|
};
|
|
10080
|
-
function comparativeDistance(x2,
|
|
10081
|
-
return Math.pow(x2[0] -
|
|
10080
|
+
function comparativeDistance(x2, y10) {
|
|
10081
|
+
return Math.pow(x2[0] - y10[0], 2) + Math.pow(x2[1] - y10[1], 2) + Math.pow(x2[2] - y10[2], 2);
|
|
10082
10082
|
}
|
|
10083
10083
|
convert.rgb.keyword = function(rgb) {
|
|
10084
10084
|
var reversed = reverseKeywords[rgb];
|
|
@@ -10110,27 +10110,27 @@ var require_conversions = __commonJS({
|
|
|
10110
10110
|
g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92;
|
|
10111
10111
|
b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
|
|
10112
10112
|
var x2 = r3 * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
10113
|
-
var
|
|
10113
|
+
var y10 = r3 * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
10114
10114
|
var z = r3 * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
10115
|
-
return [x2 * 100,
|
|
10115
|
+
return [x2 * 100, y10 * 100, z * 100];
|
|
10116
10116
|
};
|
|
10117
10117
|
convert.rgb.lab = function(rgb) {
|
|
10118
10118
|
var xyz = convert.rgb.xyz(rgb);
|
|
10119
10119
|
var x2 = xyz[0];
|
|
10120
|
-
var
|
|
10120
|
+
var y10 = xyz[1];
|
|
10121
10121
|
var z = xyz[2];
|
|
10122
10122
|
var l7;
|
|
10123
10123
|
var a5;
|
|
10124
10124
|
var b;
|
|
10125
10125
|
x2 /= 95.047;
|
|
10126
|
-
|
|
10126
|
+
y10 /= 100;
|
|
10127
10127
|
z /= 108.883;
|
|
10128
10128
|
x2 = x2 > 8856e-6 ? Math.pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
|
|
10129
|
-
|
|
10129
|
+
y10 = y10 > 8856e-6 ? Math.pow(y10, 1 / 3) : 7.787 * y10 + 16 / 116;
|
|
10130
10130
|
z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
|
|
10131
|
-
l7 = 116 *
|
|
10132
|
-
a5 = 500 * (x2 -
|
|
10133
|
-
b = 200 * (
|
|
10131
|
+
l7 = 116 * y10 - 16;
|
|
10132
|
+
a5 = 500 * (x2 - y10);
|
|
10133
|
+
b = 200 * (y10 - z);
|
|
10134
10134
|
return [l7, a5, b];
|
|
10135
10135
|
};
|
|
10136
10136
|
convert.hsl.rgb = function(hsl) {
|
|
@@ -10194,10 +10194,10 @@ var require_conversions = __commonJS({
|
|
|
10194
10194
|
var s6 = hsv[1] / 100;
|
|
10195
10195
|
var v = hsv[2] / 100;
|
|
10196
10196
|
var hi = Math.floor(h) % 6;
|
|
10197
|
-
var
|
|
10197
|
+
var f6 = h - Math.floor(h);
|
|
10198
10198
|
var p3 = 255 * v * (1 - s6);
|
|
10199
|
-
var q3 = 255 * v * (1 - s6 *
|
|
10200
|
-
var t4 = 255 * v * (1 - s6 * (1 -
|
|
10199
|
+
var q3 = 255 * v * (1 - s6 * f6);
|
|
10200
|
+
var t4 = 255 * v * (1 - s6 * (1 - f6));
|
|
10201
10201
|
v *= 255;
|
|
10202
10202
|
switch (hi) {
|
|
10203
10203
|
case 0:
|
|
@@ -10237,7 +10237,7 @@ var require_conversions = __commonJS({
|
|
|
10237
10237
|
var ratio = wh + bl;
|
|
10238
10238
|
var i7;
|
|
10239
10239
|
var v;
|
|
10240
|
-
var
|
|
10240
|
+
var f6;
|
|
10241
10241
|
var n2;
|
|
10242
10242
|
if (ratio > 1) {
|
|
10243
10243
|
wh /= ratio;
|
|
@@ -10245,11 +10245,11 @@ var require_conversions = __commonJS({
|
|
|
10245
10245
|
}
|
|
10246
10246
|
i7 = Math.floor(6 * h);
|
|
10247
10247
|
v = 1 - bl;
|
|
10248
|
-
|
|
10248
|
+
f6 = 6 * h - i7;
|
|
10249
10249
|
if ((i7 & 1) !== 0) {
|
|
10250
|
-
|
|
10250
|
+
f6 = 1 - f6;
|
|
10251
10251
|
}
|
|
10252
|
-
n2 = wh +
|
|
10252
|
+
n2 = wh + f6 * (v - wh);
|
|
10253
10253
|
var r3;
|
|
10254
10254
|
var g;
|
|
10255
10255
|
var b;
|
|
@@ -10292,26 +10292,26 @@ var require_conversions = __commonJS({
|
|
|
10292
10292
|
convert.cmyk.rgb = function(cmyk) {
|
|
10293
10293
|
var c4 = cmyk[0] / 100;
|
|
10294
10294
|
var m4 = cmyk[1] / 100;
|
|
10295
|
-
var
|
|
10295
|
+
var y10 = cmyk[2] / 100;
|
|
10296
10296
|
var k2 = cmyk[3] / 100;
|
|
10297
10297
|
var r3;
|
|
10298
10298
|
var g;
|
|
10299
10299
|
var b;
|
|
10300
10300
|
r3 = 1 - Math.min(1, c4 * (1 - k2) + k2);
|
|
10301
10301
|
g = 1 - Math.min(1, m4 * (1 - k2) + k2);
|
|
10302
|
-
b = 1 - Math.min(1,
|
|
10302
|
+
b = 1 - Math.min(1, y10 * (1 - k2) + k2);
|
|
10303
10303
|
return [r3 * 255, g * 255, b * 255];
|
|
10304
10304
|
};
|
|
10305
10305
|
convert.xyz.rgb = function(xyz) {
|
|
10306
10306
|
var x2 = xyz[0] / 100;
|
|
10307
|
-
var
|
|
10307
|
+
var y10 = xyz[1] / 100;
|
|
10308
10308
|
var z = xyz[2] / 100;
|
|
10309
10309
|
var r3;
|
|
10310
10310
|
var g;
|
|
10311
10311
|
var b;
|
|
10312
|
-
r3 = x2 * 3.2406 +
|
|
10313
|
-
g = x2 * -0.9689 +
|
|
10314
|
-
b = x2 * 0.0557 +
|
|
10312
|
+
r3 = x2 * 3.2406 + y10 * -1.5372 + z * -0.4986;
|
|
10313
|
+
g = x2 * -0.9689 + y10 * 1.8758 + z * 0.0415;
|
|
10314
|
+
b = x2 * 0.0557 + y10 * -0.204 + z * 1.057;
|
|
10315
10315
|
r3 = r3 > 31308e-7 ? 1.055 * Math.pow(r3, 1 / 2.4) - 0.055 : r3 * 12.92;
|
|
10316
10316
|
g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92;
|
|
10317
10317
|
b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92;
|
|
@@ -10322,20 +10322,20 @@ var require_conversions = __commonJS({
|
|
|
10322
10322
|
};
|
|
10323
10323
|
convert.xyz.lab = function(xyz) {
|
|
10324
10324
|
var x2 = xyz[0];
|
|
10325
|
-
var
|
|
10325
|
+
var y10 = xyz[1];
|
|
10326
10326
|
var z = xyz[2];
|
|
10327
10327
|
var l7;
|
|
10328
10328
|
var a5;
|
|
10329
10329
|
var b;
|
|
10330
10330
|
x2 /= 95.047;
|
|
10331
|
-
|
|
10331
|
+
y10 /= 100;
|
|
10332
10332
|
z /= 108.883;
|
|
10333
10333
|
x2 = x2 > 8856e-6 ? Math.pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
|
|
10334
|
-
|
|
10334
|
+
y10 = y10 > 8856e-6 ? Math.pow(y10, 1 / 3) : 7.787 * y10 + 16 / 116;
|
|
10335
10335
|
z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
|
|
10336
|
-
l7 = 116 *
|
|
10337
|
-
a5 = 500 * (x2 -
|
|
10338
|
-
b = 200 * (
|
|
10336
|
+
l7 = 116 * y10 - 16;
|
|
10337
|
+
a5 = 500 * (x2 - y10);
|
|
10338
|
+
b = 200 * (y10 - z);
|
|
10339
10339
|
return [l7, a5, b];
|
|
10340
10340
|
};
|
|
10341
10341
|
convert.lab.xyz = function(lab) {
|
|
@@ -10343,21 +10343,21 @@ var require_conversions = __commonJS({
|
|
|
10343
10343
|
var a5 = lab[1];
|
|
10344
10344
|
var b = lab[2];
|
|
10345
10345
|
var x2;
|
|
10346
|
-
var
|
|
10346
|
+
var y10;
|
|
10347
10347
|
var z;
|
|
10348
|
-
|
|
10349
|
-
x2 = a5 / 500 +
|
|
10350
|
-
z =
|
|
10351
|
-
var y22 = Math.pow(
|
|
10348
|
+
y10 = (l7 + 16) / 116;
|
|
10349
|
+
x2 = a5 / 500 + y10;
|
|
10350
|
+
z = y10 - b / 200;
|
|
10351
|
+
var y22 = Math.pow(y10, 3);
|
|
10352
10352
|
var x22 = Math.pow(x2, 3);
|
|
10353
10353
|
var z2 = Math.pow(z, 3);
|
|
10354
|
-
|
|
10354
|
+
y10 = y22 > 8856e-6 ? y22 : (y10 - 16 / 116) / 7.787;
|
|
10355
10355
|
x2 = x22 > 8856e-6 ? x22 : (x2 - 16 / 116) / 7.787;
|
|
10356
10356
|
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
10357
10357
|
x2 *= 95.047;
|
|
10358
|
-
|
|
10358
|
+
y10 *= 100;
|
|
10359
10359
|
z *= 108.883;
|
|
10360
|
-
return [x2,
|
|
10360
|
+
return [x2, y10, z];
|
|
10361
10361
|
};
|
|
10362
10362
|
convert.lab.lch = function(lab) {
|
|
10363
10363
|
var l7 = lab[0];
|
|
@@ -10500,26 +10500,26 @@ var require_conversions = __commonJS({
|
|
|
10500
10500
|
var s6 = hsl[1] / 100;
|
|
10501
10501
|
var l7 = hsl[2] / 100;
|
|
10502
10502
|
var c4 = 1;
|
|
10503
|
-
var
|
|
10503
|
+
var f6 = 0;
|
|
10504
10504
|
if (l7 < 0.5) {
|
|
10505
10505
|
c4 = 2 * s6 * l7;
|
|
10506
10506
|
} else {
|
|
10507
10507
|
c4 = 2 * s6 * (1 - l7);
|
|
10508
10508
|
}
|
|
10509
10509
|
if (c4 < 1) {
|
|
10510
|
-
|
|
10510
|
+
f6 = (l7 - 0.5 * c4) / (1 - c4);
|
|
10511
10511
|
}
|
|
10512
|
-
return [hsl[0], c4 * 100,
|
|
10512
|
+
return [hsl[0], c4 * 100, f6 * 100];
|
|
10513
10513
|
};
|
|
10514
10514
|
convert.hsv.hcg = function(hsv) {
|
|
10515
10515
|
var s6 = hsv[1] / 100;
|
|
10516
10516
|
var v = hsv[2] / 100;
|
|
10517
10517
|
var c4 = s6 * v;
|
|
10518
|
-
var
|
|
10518
|
+
var f6 = 0;
|
|
10519
10519
|
if (c4 < 1) {
|
|
10520
|
-
|
|
10520
|
+
f6 = (v - c4) / (1 - c4);
|
|
10521
10521
|
}
|
|
10522
|
-
return [hsv[0], c4 * 100,
|
|
10522
|
+
return [hsv[0], c4 * 100, f6 * 100];
|
|
10523
10523
|
};
|
|
10524
10524
|
convert.hcg.rgb = function(hcg) {
|
|
10525
10525
|
var h = hcg[0] / 360;
|
|
@@ -10575,11 +10575,11 @@ var require_conversions = __commonJS({
|
|
|
10575
10575
|
var c4 = hcg[1] / 100;
|
|
10576
10576
|
var g = hcg[2] / 100;
|
|
10577
10577
|
var v = c4 + g * (1 - c4);
|
|
10578
|
-
var
|
|
10578
|
+
var f6 = 0;
|
|
10579
10579
|
if (v > 0) {
|
|
10580
|
-
|
|
10580
|
+
f6 = c4 / v;
|
|
10581
10581
|
}
|
|
10582
|
-
return [hcg[0],
|
|
10582
|
+
return [hcg[0], f6 * 100, v * 100];
|
|
10583
10583
|
};
|
|
10584
10584
|
convert.hcg.hsl = function(hcg) {
|
|
10585
10585
|
var c4 = hcg[1] / 100;
|
|
@@ -21380,11 +21380,11 @@ var require_conversions2 = __commonJS({
|
|
|
21380
21380
|
const k2 = Math.min(1 - r3, 1 - g, 1 - b);
|
|
21381
21381
|
const c4 = (1 - r3 - k2) / (1 - k2) || 0;
|
|
21382
21382
|
const m4 = (1 - g - k2) / (1 - k2) || 0;
|
|
21383
|
-
const
|
|
21384
|
-
return [c4 * 100, m4 * 100,
|
|
21383
|
+
const y10 = (1 - b - k2) / (1 - k2) || 0;
|
|
21384
|
+
return [c4 * 100, m4 * 100, y10 * 100, k2 * 100];
|
|
21385
21385
|
};
|
|
21386
|
-
function comparativeDistance(x2,
|
|
21387
|
-
return (x2[0] -
|
|
21386
|
+
function comparativeDistance(x2, y10) {
|
|
21387
|
+
return (x2[0] - y10[0]) ** 2 + (x2[1] - y10[1]) ** 2 + (x2[2] - y10[2]) ** 2;
|
|
21388
21388
|
}
|
|
21389
21389
|
convert.rgb.keyword = function(rgb) {
|
|
21390
21390
|
const reversed = reverseKeywords[rgb];
|
|
@@ -21414,24 +21414,24 @@ var require_conversions2 = __commonJS({
|
|
|
21414
21414
|
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
21415
21415
|
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
21416
21416
|
const x2 = r3 * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
21417
|
-
const
|
|
21417
|
+
const y10 = r3 * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
21418
21418
|
const z = r3 * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
21419
|
-
return [x2 * 100,
|
|
21419
|
+
return [x2 * 100, y10 * 100, z * 100];
|
|
21420
21420
|
};
|
|
21421
21421
|
convert.rgb.lab = function(rgb) {
|
|
21422
21422
|
const xyz = convert.rgb.xyz(rgb);
|
|
21423
21423
|
let x2 = xyz[0];
|
|
21424
|
-
let
|
|
21424
|
+
let y10 = xyz[1];
|
|
21425
21425
|
let z = xyz[2];
|
|
21426
21426
|
x2 /= 95.047;
|
|
21427
|
-
|
|
21427
|
+
y10 /= 100;
|
|
21428
21428
|
z /= 108.883;
|
|
21429
21429
|
x2 = x2 > 8856e-6 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116;
|
|
21430
|
-
|
|
21430
|
+
y10 = y10 > 8856e-6 ? y10 ** (1 / 3) : 7.787 * y10 + 16 / 116;
|
|
21431
21431
|
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
21432
|
-
const l7 = 116 *
|
|
21433
|
-
const a5 = 500 * (x2 -
|
|
21434
|
-
const b = 200 * (
|
|
21432
|
+
const l7 = 116 * y10 - 16;
|
|
21433
|
+
const a5 = 500 * (x2 - y10);
|
|
21434
|
+
const b = 200 * (y10 - z);
|
|
21435
21435
|
return [l7, a5, b];
|
|
21436
21436
|
};
|
|
21437
21437
|
convert.hsl.rgb = function(hsl) {
|
|
@@ -21491,10 +21491,10 @@ var require_conversions2 = __commonJS({
|
|
|
21491
21491
|
const s6 = hsv[1] / 100;
|
|
21492
21492
|
let v = hsv[2] / 100;
|
|
21493
21493
|
const hi = Math.floor(h) % 6;
|
|
21494
|
-
const
|
|
21494
|
+
const f6 = h - Math.floor(h);
|
|
21495
21495
|
const p3 = 255 * v * (1 - s6);
|
|
21496
|
-
const q3 = 255 * v * (1 - s6 *
|
|
21497
|
-
const t4 = 255 * v * (1 - s6 * (1 -
|
|
21496
|
+
const q3 = 255 * v * (1 - s6 * f6);
|
|
21497
|
+
const t4 = 255 * v * (1 - s6 * (1 - f6));
|
|
21498
21498
|
v *= 255;
|
|
21499
21499
|
switch (hi) {
|
|
21500
21500
|
case 0:
|
|
@@ -21531,18 +21531,18 @@ var require_conversions2 = __commonJS({
|
|
|
21531
21531
|
let wh = hwb[1] / 100;
|
|
21532
21532
|
let bl = hwb[2] / 100;
|
|
21533
21533
|
const ratio = wh + bl;
|
|
21534
|
-
let
|
|
21534
|
+
let f6;
|
|
21535
21535
|
if (ratio > 1) {
|
|
21536
21536
|
wh /= ratio;
|
|
21537
21537
|
bl /= ratio;
|
|
21538
21538
|
}
|
|
21539
21539
|
const i7 = Math.floor(6 * h);
|
|
21540
21540
|
const v = 1 - bl;
|
|
21541
|
-
|
|
21541
|
+
f6 = 6 * h - i7;
|
|
21542
21542
|
if ((i7 & 1) !== 0) {
|
|
21543
|
-
|
|
21543
|
+
f6 = 1 - f6;
|
|
21544
21544
|
}
|
|
21545
|
-
const n2 = wh +
|
|
21545
|
+
const n2 = wh + f6 * (v - wh);
|
|
21546
21546
|
let r3;
|
|
21547
21547
|
let g;
|
|
21548
21548
|
let b;
|
|
@@ -21585,23 +21585,23 @@ var require_conversions2 = __commonJS({
|
|
|
21585
21585
|
convert.cmyk.rgb = function(cmyk) {
|
|
21586
21586
|
const c4 = cmyk[0] / 100;
|
|
21587
21587
|
const m4 = cmyk[1] / 100;
|
|
21588
|
-
const
|
|
21588
|
+
const y10 = cmyk[2] / 100;
|
|
21589
21589
|
const k2 = cmyk[3] / 100;
|
|
21590
21590
|
const r3 = 1 - Math.min(1, c4 * (1 - k2) + k2);
|
|
21591
21591
|
const g = 1 - Math.min(1, m4 * (1 - k2) + k2);
|
|
21592
|
-
const b = 1 - Math.min(1,
|
|
21592
|
+
const b = 1 - Math.min(1, y10 * (1 - k2) + k2);
|
|
21593
21593
|
return [r3 * 255, g * 255, b * 255];
|
|
21594
21594
|
};
|
|
21595
21595
|
convert.xyz.rgb = function(xyz) {
|
|
21596
21596
|
const x2 = xyz[0] / 100;
|
|
21597
|
-
const
|
|
21597
|
+
const y10 = xyz[1] / 100;
|
|
21598
21598
|
const z = xyz[2] / 100;
|
|
21599
21599
|
let r3;
|
|
21600
21600
|
let g;
|
|
21601
21601
|
let b;
|
|
21602
|
-
r3 = x2 * 3.2406 +
|
|
21603
|
-
g = x2 * -0.9689 +
|
|
21604
|
-
b = x2 * 0.0557 +
|
|
21602
|
+
r3 = x2 * 3.2406 + y10 * -1.5372 + z * -0.4986;
|
|
21603
|
+
g = x2 * -0.9689 + y10 * 1.8758 + z * 0.0415;
|
|
21604
|
+
b = x2 * 0.0557 + y10 * -0.204 + z * 1.057;
|
|
21605
21605
|
r3 = r3 > 31308e-7 ? 1.055 * r3 ** (1 / 2.4) - 0.055 : r3 * 12.92;
|
|
21606
21606
|
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
21607
21607
|
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
@@ -21612,17 +21612,17 @@ var require_conversions2 = __commonJS({
|
|
|
21612
21612
|
};
|
|
21613
21613
|
convert.xyz.lab = function(xyz) {
|
|
21614
21614
|
let x2 = xyz[0];
|
|
21615
|
-
let
|
|
21615
|
+
let y10 = xyz[1];
|
|
21616
21616
|
let z = xyz[2];
|
|
21617
21617
|
x2 /= 95.047;
|
|
21618
|
-
|
|
21618
|
+
y10 /= 100;
|
|
21619
21619
|
z /= 108.883;
|
|
21620
21620
|
x2 = x2 > 8856e-6 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116;
|
|
21621
|
-
|
|
21621
|
+
y10 = y10 > 8856e-6 ? y10 ** (1 / 3) : 7.787 * y10 + 16 / 116;
|
|
21622
21622
|
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
21623
|
-
const l7 = 116 *
|
|
21624
|
-
const a5 = 500 * (x2 -
|
|
21625
|
-
const b = 200 * (
|
|
21623
|
+
const l7 = 116 * y10 - 16;
|
|
21624
|
+
const a5 = 500 * (x2 - y10);
|
|
21625
|
+
const b = 200 * (y10 - z);
|
|
21626
21626
|
return [l7, a5, b];
|
|
21627
21627
|
};
|
|
21628
21628
|
convert.lab.xyz = function(lab) {
|
|
@@ -21630,21 +21630,21 @@ var require_conversions2 = __commonJS({
|
|
|
21630
21630
|
const a5 = lab[1];
|
|
21631
21631
|
const b = lab[2];
|
|
21632
21632
|
let x2;
|
|
21633
|
-
let
|
|
21633
|
+
let y10;
|
|
21634
21634
|
let z;
|
|
21635
|
-
|
|
21636
|
-
x2 = a5 / 500 +
|
|
21637
|
-
z =
|
|
21638
|
-
const y22 =
|
|
21635
|
+
y10 = (l7 + 16) / 116;
|
|
21636
|
+
x2 = a5 / 500 + y10;
|
|
21637
|
+
z = y10 - b / 200;
|
|
21638
|
+
const y22 = y10 ** 3;
|
|
21639
21639
|
const x22 = x2 ** 3;
|
|
21640
21640
|
const z2 = z ** 3;
|
|
21641
|
-
|
|
21641
|
+
y10 = y22 > 8856e-6 ? y22 : (y10 - 16 / 116) / 7.787;
|
|
21642
21642
|
x2 = x22 > 8856e-6 ? x22 : (x2 - 16 / 116) / 7.787;
|
|
21643
21643
|
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
21644
21644
|
x2 *= 95.047;
|
|
21645
|
-
|
|
21645
|
+
y10 *= 100;
|
|
21646
21646
|
z *= 108.883;
|
|
21647
|
-
return [x2,
|
|
21647
|
+
return [x2, y10, z];
|
|
21648
21648
|
};
|
|
21649
21649
|
convert.lab.lch = function(lab) {
|
|
21650
21650
|
const l7 = lab[0];
|
|
@@ -21780,21 +21780,21 @@ var require_conversions2 = __commonJS({
|
|
|
21780
21780
|
const s6 = hsl[1] / 100;
|
|
21781
21781
|
const l7 = hsl[2] / 100;
|
|
21782
21782
|
const c4 = l7 < 0.5 ? 2 * s6 * l7 : 2 * s6 * (1 - l7);
|
|
21783
|
-
let
|
|
21783
|
+
let f6 = 0;
|
|
21784
21784
|
if (c4 < 1) {
|
|
21785
|
-
|
|
21785
|
+
f6 = (l7 - 0.5 * c4) / (1 - c4);
|
|
21786
21786
|
}
|
|
21787
|
-
return [hsl[0], c4 * 100,
|
|
21787
|
+
return [hsl[0], c4 * 100, f6 * 100];
|
|
21788
21788
|
};
|
|
21789
21789
|
convert.hsv.hcg = function(hsv) {
|
|
21790
21790
|
const s6 = hsv[1] / 100;
|
|
21791
21791
|
const v = hsv[2] / 100;
|
|
21792
21792
|
const c4 = s6 * v;
|
|
21793
|
-
let
|
|
21793
|
+
let f6 = 0;
|
|
21794
21794
|
if (c4 < 1) {
|
|
21795
|
-
|
|
21795
|
+
f6 = (v - c4) / (1 - c4);
|
|
21796
21796
|
}
|
|
21797
|
-
return [hsv[0], c4 * 100,
|
|
21797
|
+
return [hsv[0], c4 * 100, f6 * 100];
|
|
21798
21798
|
};
|
|
21799
21799
|
convert.hcg.rgb = function(hcg) {
|
|
21800
21800
|
const h = hcg[0] / 360;
|
|
@@ -21850,11 +21850,11 @@ var require_conversions2 = __commonJS({
|
|
|
21850
21850
|
const c4 = hcg[1] / 100;
|
|
21851
21851
|
const g = hcg[2] / 100;
|
|
21852
21852
|
const v = c4 + g * (1 - c4);
|
|
21853
|
-
let
|
|
21853
|
+
let f6 = 0;
|
|
21854
21854
|
if (v > 0) {
|
|
21855
|
-
|
|
21855
|
+
f6 = c4 / v;
|
|
21856
21856
|
}
|
|
21857
|
-
return [hcg[0],
|
|
21857
|
+
return [hcg[0], f6 * 100, v * 100];
|
|
21858
21858
|
};
|
|
21859
21859
|
convert.hcg.hsl = function(hcg) {
|
|
21860
21860
|
const c4 = hcg[1] / 100;
|
|
@@ -26407,10 +26407,10 @@ var require_rules = __commonJS({
|
|
|
26407
26407
|
t: "fallback",
|
|
26408
26408
|
chunk: null
|
|
26409
26409
|
};
|
|
26410
|
-
function compareChunksByValue(x2,
|
|
26411
|
-
if (typeof x2.chunk === "string" && typeof
|
|
26410
|
+
function compareChunksByValue(x2, y10) {
|
|
26411
|
+
if (typeof x2.chunk === "string" && typeof y10.chunk === "string") {
|
|
26412
26412
|
const xChunk = x2.chunk;
|
|
26413
|
-
const yChunk =
|
|
26413
|
+
const yChunk = y10.chunk;
|
|
26414
26414
|
if (yChunk < xChunk) {
|
|
26415
26415
|
return 1;
|
|
26416
26416
|
} else if (xChunk < yChunk) {
|
|
@@ -26419,10 +26419,10 @@ var require_rules = __commonJS({
|
|
|
26419
26419
|
}
|
|
26420
26420
|
return 0;
|
|
26421
26421
|
}
|
|
26422
|
-
function compareChunksByInclusion(x2,
|
|
26423
|
-
if (typeof x2.chunk === "string" && typeof
|
|
26422
|
+
function compareChunksByInclusion(x2, y10) {
|
|
26423
|
+
if (typeof x2.chunk === "string" && typeof y10.chunk === "string") {
|
|
26424
26424
|
const xChunk = x2.chunk;
|
|
26425
|
-
const yChunk =
|
|
26425
|
+
const yChunk = y10.chunk;
|
|
26426
26426
|
if (yChunk.startsWith(xChunk)) {
|
|
26427
26427
|
return 1;
|
|
26428
26428
|
} else if (xChunk.startsWith(yChunk)) {
|
|
@@ -26451,8 +26451,8 @@ var require_rules = __commonJS({
|
|
|
26451
26451
|
otherRules.push(rule);
|
|
26452
26452
|
}
|
|
26453
26453
|
}
|
|
26454
|
-
chunkRules.sort((x2,
|
|
26455
|
-
chunkRules.sort((x2,
|
|
26454
|
+
chunkRules.sort((x2, y10) => compareChunksByValue(x2, y10));
|
|
26455
|
+
chunkRules.sort((x2, y10) => compareChunksByInclusion(x2, y10));
|
|
26456
26456
|
const res = [...numberRules, ...chunkRules, ...otherRules, ...fallbackRules];
|
|
26457
26457
|
return res;
|
|
26458
26458
|
}
|
|
@@ -27239,11 +27239,11 @@ var require_lib = __commonJS({
|
|
|
27239
27239
|
inotify_dispatch(listeners[e.id], e);
|
|
27240
27240
|
inotify_dispatch(listeners[EVENT_ALL], e);
|
|
27241
27241
|
},
|
|
27242
|
-
__listener(listeners,
|
|
27242
|
+
__listener(listeners, f6, scope) {
|
|
27243
27243
|
let i7 = listeners.length;
|
|
27244
27244
|
while (--i7 >= 0) {
|
|
27245
27245
|
const l7 = listeners[i7];
|
|
27246
|
-
if (l7[0] ===
|
|
27246
|
+
if (l7[0] === f6 && l7[1] === scope) {
|
|
27247
27247
|
break;
|
|
27248
27248
|
}
|
|
27249
27249
|
}
|
|
@@ -27349,23 +27349,23 @@ var require_lib2 = __commonJS({
|
|
|
27349
27349
|
var getKey = (k2) => typeof k2 === "function" ? k2 : (x2) => x2[k2];
|
|
27350
27350
|
function compareByKey(a5, cmp = compare) {
|
|
27351
27351
|
const k2 = getKey(a5);
|
|
27352
|
-
return (x2,
|
|
27352
|
+
return (x2, y10) => cmp(k2(x2), k2(y10));
|
|
27353
27353
|
}
|
|
27354
27354
|
function compareByKeys2(a5, b, cmpA = compare, cmpB = compare) {
|
|
27355
27355
|
const ka = getKey(a5);
|
|
27356
27356
|
const kb = getKey(b);
|
|
27357
|
-
return (x2,
|
|
27358
|
-
let res = cmpA(ka(x2), ka(
|
|
27359
|
-
return res === 0 ? cmpB(kb(x2), kb(
|
|
27357
|
+
return (x2, y10) => {
|
|
27358
|
+
let res = cmpA(ka(x2), ka(y10));
|
|
27359
|
+
return res === 0 ? cmpB(kb(x2), kb(y10)) : res;
|
|
27360
27360
|
};
|
|
27361
27361
|
}
|
|
27362
27362
|
function compareByKeys3(a5, b, c4, cmpA = compare, cmpB = compare, cmpC = compare) {
|
|
27363
27363
|
const ka = getKey(a5);
|
|
27364
27364
|
const kb = getKey(b);
|
|
27365
27365
|
const kc = getKey(c4);
|
|
27366
|
-
return (x2,
|
|
27367
|
-
let res = cmpA(ka(x2), ka(
|
|
27368
|
-
return res === 0 ? (res = cmpB(kb(x2), kb(
|
|
27366
|
+
return (x2, y10) => {
|
|
27367
|
+
let res = cmpA(ka(x2), ka(y10));
|
|
27368
|
+
return res === 0 ? (res = cmpB(kb(x2), kb(y10))) === 0 ? cmpC(kc(x2), kc(y10)) : res : res;
|
|
27369
27369
|
};
|
|
27370
27370
|
}
|
|
27371
27371
|
function compareByKeys4(a5, b, c4, d4, cmpA = compare, cmpB = compare, cmpC = compare, cmpD = compare) {
|
|
@@ -27373,9 +27373,9 @@ var require_lib2 = __commonJS({
|
|
|
27373
27373
|
const kb = getKey(b);
|
|
27374
27374
|
const kc = getKey(c4);
|
|
27375
27375
|
const kd = getKey(d4);
|
|
27376
|
-
return (x2,
|
|
27377
|
-
let res = cmpA(ka(x2), ka(
|
|
27378
|
-
return res === 0 ? (res = cmpB(kb(x2), kb(
|
|
27376
|
+
return (x2, y10) => {
|
|
27377
|
+
let res = cmpA(ka(x2), ka(y10));
|
|
27378
|
+
return res === 0 ? (res = cmpB(kb(x2), kb(y10))) === 0 ? (res = cmpC(kc(x2), kc(y10))) === 0 ? cmpD(kd(x2), kd(y10)) : res : res : res;
|
|
27379
27379
|
};
|
|
27380
27380
|
}
|
|
27381
27381
|
var compareNumAsc = (a5, b) => a5 - b;
|
|
@@ -27666,7 +27666,7 @@ var require_lib5 = __commonJS({
|
|
|
27666
27666
|
throw new OutOfBoundsError(index2);
|
|
27667
27667
|
};
|
|
27668
27668
|
var ensureIndex = (index2, min, max) => (index2 < min || index2 >= max) && outOfBounds(index2);
|
|
27669
|
-
var ensureIndex2 = (x2,
|
|
27669
|
+
var ensureIndex2 = (x2, y10, maxX, maxY) => (x2 < 0 || x2 >= maxX || y10 < 0 || y10 >= maxY) && outOfBounds([x2, y10]);
|
|
27670
27670
|
var UnsupportedOperationError = defError(() => "unsupported operation");
|
|
27671
27671
|
var unsupported = (msg) => {
|
|
27672
27672
|
throw new UnsupportedOperationError(msg);
|
|
@@ -28277,7 +28277,7 @@ var require_lib8 = __commonJS({
|
|
|
28277
28277
|
return lb;
|
|
28278
28278
|
}
|
|
28279
28279
|
let x2 = 0;
|
|
28280
|
-
let
|
|
28280
|
+
let y10;
|
|
28281
28281
|
let minDist;
|
|
28282
28282
|
let d0;
|
|
28283
28283
|
let d1;
|
|
@@ -28294,8 +28294,8 @@ var require_lib8 = __commonJS({
|
|
|
28294
28294
|
return d02 < d12 || d23 < d12 ? d02 > d23 ? d23 + 1 : d02 + 1 : equiv2(ay2, bx) ? d12 : d12 + 1;
|
|
28295
28295
|
};
|
|
28296
28296
|
const vector = [];
|
|
28297
|
-
for (
|
|
28298
|
-
vector.push(
|
|
28297
|
+
for (y10 = 0; y10 < la; y10++) {
|
|
28298
|
+
vector.push(y10 + 1, a5[offset + y10]);
|
|
28299
28299
|
}
|
|
28300
28300
|
const len = vector.length - 1;
|
|
28301
28301
|
const lb3 = lb - 3;
|
|
@@ -28306,15 +28306,15 @@ var require_lib8 = __commonJS({
|
|
|
28306
28306
|
bx3 = b[offset + (d32 = x2 + 3)];
|
|
28307
28307
|
dd = x2 += 4;
|
|
28308
28308
|
minDist = Infinity;
|
|
28309
|
-
for (
|
|
28310
|
-
dy = vector[
|
|
28311
|
-
ay = vector[
|
|
28309
|
+
for (y10 = 0; y10 < len; y10 += 2) {
|
|
28310
|
+
dy = vector[y10];
|
|
28311
|
+
ay = vector[y10 + 1];
|
|
28312
28312
|
d0 = _min(dy, d0, d1, bx0, ay);
|
|
28313
28313
|
d1 = _min(d0, d1, d22, bx1, ay);
|
|
28314
28314
|
d22 = _min(d1, d22, d32, bx2, ay);
|
|
28315
28315
|
dd = _min(d22, d32, dd, bx3, ay);
|
|
28316
28316
|
dd < minDist && (minDist = dd);
|
|
28317
|
-
vector[
|
|
28317
|
+
vector[y10] = dd;
|
|
28318
28318
|
d32 = d22;
|
|
28319
28319
|
d22 = d1;
|
|
28320
28320
|
d1 = d0;
|
|
@@ -28327,9 +28327,9 @@ var require_lib8 = __commonJS({
|
|
|
28327
28327
|
bx0 = b[offset + (d0 = x2)];
|
|
28328
28328
|
dd = ++x2;
|
|
28329
28329
|
minDist = Infinity;
|
|
28330
|
-
for (
|
|
28331
|
-
dy = vector[
|
|
28332
|
-
vector[
|
|
28330
|
+
for (y10 = 0; y10 < len; y10 += 2) {
|
|
28331
|
+
dy = vector[y10];
|
|
28332
|
+
vector[y10] = dd = _min(dy, d0, dd, bx0, vector[y10 + 1]);
|
|
28333
28333
|
dd < minDist && (minDist = dd);
|
|
28334
28334
|
d0 = dy;
|
|
28335
28335
|
}
|
|
@@ -28344,10 +28344,10 @@ var require_lib8 = __commonJS({
|
|
|
28344
28344
|
};
|
|
28345
28345
|
var first2 = (buf) => buf[0];
|
|
28346
28346
|
var peek = (buf) => buf[buf.length - 1];
|
|
28347
|
-
var swap = (arr, x2,
|
|
28347
|
+
var swap = (arr, x2, y10) => {
|
|
28348
28348
|
const t4 = arr[x2];
|
|
28349
|
-
arr[x2] = arr[
|
|
28350
|
-
arr[
|
|
28349
|
+
arr[x2] = arr[y10];
|
|
28350
|
+
arr[y10] = t4;
|
|
28351
28351
|
};
|
|
28352
28352
|
var multiSwap = (...xs) => {
|
|
28353
28353
|
const [b, c4, d4] = xs;
|
|
@@ -28356,28 +28356,28 @@ var require_lib8 = __commonJS({
|
|
|
28356
28356
|
case 0:
|
|
28357
28357
|
return swap;
|
|
28358
28358
|
case 1:
|
|
28359
|
-
return (a5, x2,
|
|
28360
|
-
swap(a5, x2,
|
|
28361
|
-
swap(b, x2,
|
|
28359
|
+
return (a5, x2, y10) => {
|
|
28360
|
+
swap(a5, x2, y10);
|
|
28361
|
+
swap(b, x2, y10);
|
|
28362
28362
|
};
|
|
28363
28363
|
case 2:
|
|
28364
|
-
return (a5, x2,
|
|
28365
|
-
swap(a5, x2,
|
|
28366
|
-
swap(b, x2,
|
|
28367
|
-
swap(c4, x2,
|
|
28364
|
+
return (a5, x2, y10) => {
|
|
28365
|
+
swap(a5, x2, y10);
|
|
28366
|
+
swap(b, x2, y10);
|
|
28367
|
+
swap(c4, x2, y10);
|
|
28368
28368
|
};
|
|
28369
28369
|
case 3:
|
|
28370
|
-
return (a5, x2,
|
|
28371
|
-
swap(a5, x2,
|
|
28372
|
-
swap(b, x2,
|
|
28373
|
-
swap(c4, x2,
|
|
28374
|
-
swap(d4, x2,
|
|
28370
|
+
return (a5, x2, y10) => {
|
|
28371
|
+
swap(a5, x2, y10);
|
|
28372
|
+
swap(b, x2, y10);
|
|
28373
|
+
swap(c4, x2, y10);
|
|
28374
|
+
swap(d4, x2, y10);
|
|
28375
28375
|
};
|
|
28376
28376
|
default:
|
|
28377
|
-
return (a5, x2,
|
|
28378
|
-
swap(a5, x2,
|
|
28377
|
+
return (a5, x2, y10) => {
|
|
28378
|
+
swap(a5, x2, y10);
|
|
28379
28379
|
for (let i7 = n2; --i7 >= 0; )
|
|
28380
|
-
swap(xs[i7], x2,
|
|
28380
|
+
swap(xs[i7], x2, y10);
|
|
28381
28381
|
};
|
|
28382
28382
|
}
|
|
28383
28383
|
};
|
|
@@ -28434,7 +28434,7 @@ var require_lib8 = __commonJS({
|
|
|
28434
28434
|
return j < 0;
|
|
28435
28435
|
};
|
|
28436
28436
|
var swizzle = (order) => {
|
|
28437
|
-
const [a5, b, c4, d4, e,
|
|
28437
|
+
const [a5, b, c4, d4, e, f6, g, h] = order;
|
|
28438
28438
|
switch (order.length) {
|
|
28439
28439
|
case 0:
|
|
28440
28440
|
return () => [];
|
|
@@ -28449,11 +28449,11 @@ var require_lib8 = __commonJS({
|
|
|
28449
28449
|
case 5:
|
|
28450
28450
|
return (x2) => [x2[a5], x2[b], x2[c4], x2[d4], x2[e]];
|
|
28451
28451
|
case 6:
|
|
28452
|
-
return (x2) => [x2[a5], x2[b], x2[c4], x2[d4], x2[e], x2[
|
|
28452
|
+
return (x2) => [x2[a5], x2[b], x2[c4], x2[d4], x2[e], x2[f6]];
|
|
28453
28453
|
case 7:
|
|
28454
|
-
return (x2) => [x2[a5], x2[b], x2[c4], x2[d4], x2[e], x2[
|
|
28454
|
+
return (x2) => [x2[a5], x2[b], x2[c4], x2[d4], x2[e], x2[f6], x2[g]];
|
|
28455
28455
|
case 8:
|
|
28456
|
-
return (x2) => [x2[a5], x2[b], x2[c4], x2[d4], x2[e], x2[
|
|
28456
|
+
return (x2) => [x2[a5], x2[b], x2[c4], x2[d4], x2[e], x2[f6], x2[g], x2[h]];
|
|
28457
28457
|
default:
|
|
28458
28458
|
return (x2) => {
|
|
28459
28459
|
const res = [];
|
|
@@ -32161,9 +32161,9 @@ var require_tokenizer = __commonJS({
|
|
|
32161
32161
|
function isNonAscii(cp3) {
|
|
32162
32162
|
return 128 <= cp3 && cp3 <= 55295 || 57344 <= cp3 && cp3 <= 1114111;
|
|
32163
32163
|
}
|
|
32164
|
-
function isValidDate(
|
|
32165
|
-
if (
|
|
32166
|
-
const maxDayOfMonth = m4 === 2 ?
|
|
32164
|
+
function isValidDate(y10, m4, d4) {
|
|
32165
|
+
if (y10 >= 0 && m4 <= 12 && m4 >= 1 && d4 >= 1) {
|
|
32166
|
+
const maxDayOfMonth = m4 === 2 ? y10 & 3 || !(y10 % 25) && y10 & 15 ? 28 : 29 : 30 + (m4 + (m4 >> 3) & 1);
|
|
32167
32167
|
return d4 <= maxDayOfMonth;
|
|
32168
32168
|
}
|
|
32169
32169
|
return false;
|
|
@@ -46881,7 +46881,7 @@ var require_ms3 = __commonJS({
|
|
|
46881
46881
|
var h = m4 * 60;
|
|
46882
46882
|
var d4 = h * 24;
|
|
46883
46883
|
var w = d4 * 7;
|
|
46884
|
-
var
|
|
46884
|
+
var y10 = d4 * 365.25;
|
|
46885
46885
|
module2.exports = function(val2, options) {
|
|
46886
46886
|
options = options || {};
|
|
46887
46887
|
var type = typeof val2;
|
|
@@ -46913,7 +46913,7 @@ var require_ms3 = __commonJS({
|
|
|
46913
46913
|
case "yrs":
|
|
46914
46914
|
case "yr":
|
|
46915
46915
|
case "y":
|
|
46916
|
-
return n2 *
|
|
46916
|
+
return n2 * y10;
|
|
46917
46917
|
case "weeks":
|
|
46918
46918
|
case "week":
|
|
46919
46919
|
case "w":
|
|
@@ -48729,11 +48729,11 @@ var require_brace_expansion = __commonJS({
|
|
|
48729
48729
|
function isPadded(el) {
|
|
48730
48730
|
return /^-?0\d/.test(el);
|
|
48731
48731
|
}
|
|
48732
|
-
function lte(i7,
|
|
48733
|
-
return i7 <=
|
|
48732
|
+
function lte(i7, y10) {
|
|
48733
|
+
return i7 <= y10;
|
|
48734
48734
|
}
|
|
48735
|
-
function gte2(i7,
|
|
48736
|
-
return i7 >=
|
|
48735
|
+
function gte2(i7, y10) {
|
|
48736
|
+
return i7 >= y10;
|
|
48737
48737
|
}
|
|
48738
48738
|
function expand2(str, isTop) {
|
|
48739
48739
|
var expansions = [];
|
|
@@ -48775,18 +48775,18 @@ var require_brace_expansion = __commonJS({
|
|
|
48775
48775
|
var N;
|
|
48776
48776
|
if (isSequence) {
|
|
48777
48777
|
var x2 = numeric(n2[0]);
|
|
48778
|
-
var
|
|
48778
|
+
var y10 = numeric(n2[1]);
|
|
48779
48779
|
var width = Math.max(n2[0].length, n2[1].length);
|
|
48780
48780
|
var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
|
|
48781
48781
|
var test2 = lte;
|
|
48782
|
-
var reverse =
|
|
48782
|
+
var reverse = y10 < x2;
|
|
48783
48783
|
if (reverse) {
|
|
48784
48784
|
incr *= -1;
|
|
48785
48785
|
test2 = gte2;
|
|
48786
48786
|
}
|
|
48787
48787
|
var pad = n2.some(isPadded);
|
|
48788
48788
|
N = [];
|
|
48789
|
-
for (var i7 = x2; test2(i7,
|
|
48789
|
+
for (var i7 = x2; test2(i7, y10); i7 += incr) {
|
|
48790
48790
|
var c4;
|
|
48791
48791
|
if (isAlphaSequence) {
|
|
48792
48792
|
c4 = String.fromCharCode(i7);
|
|
@@ -51827,8 +51827,8 @@ var require_includesWith = __commonJS({
|
|
|
51827
51827
|
// ../../node_modules/.pnpm/@pnpm+ramda@0.28.1/node_modules/@pnpm/ramda/src/internal/_functionName.js
|
|
51828
51828
|
var require_functionName = __commonJS({
|
|
51829
51829
|
"../../node_modules/.pnpm/@pnpm+ramda@0.28.1/node_modules/@pnpm/ramda/src/internal/_functionName.js"(exports2, module2) {
|
|
51830
|
-
function _functionName(
|
|
51831
|
-
var match2 = String(
|
|
51830
|
+
function _functionName(f6) {
|
|
51831
|
+
var match2 = String(f6).match(/^function (\w*)/);
|
|
51832
51832
|
return match2 == null ? "" : match2[1];
|
|
51833
51833
|
}
|
|
51834
51834
|
module2.exports = _functionName;
|
|
@@ -59160,7 +59160,7 @@ var require_agent = __commonJS({
|
|
|
59160
59160
|
reqTimeoutListenerCount
|
|
59161
59161
|
);
|
|
59162
59162
|
if (debug.enabled) {
|
|
59163
|
-
debug("timeout listeners: %s", socket.listeners("timeout").map((
|
|
59163
|
+
debug("timeout listeners: %s", socket.listeners("timeout").map((f6) => f6.name).join(", "));
|
|
59164
59164
|
}
|
|
59165
59165
|
agent.timeoutSocketCount++;
|
|
59166
59166
|
const name = agent.getName(options);
|
|
@@ -59303,7 +59303,7 @@ var require_lru_cache = __commonJS({
|
|
|
59303
59303
|
this.aborted = true;
|
|
59304
59304
|
const e = { type, target: this };
|
|
59305
59305
|
this.onabort(e);
|
|
59306
|
-
this._listeners.forEach((
|
|
59306
|
+
this._listeners.forEach((f6) => f6(e), this);
|
|
59307
59307
|
}
|
|
59308
59308
|
}
|
|
59309
59309
|
onabort() {
|
|
@@ -59315,7 +59315,7 @@ var require_lru_cache = __commonJS({
|
|
|
59315
59315
|
}
|
|
59316
59316
|
removeEventListener(ev, fn2) {
|
|
59317
59317
|
if (ev === "abort") {
|
|
59318
|
-
this._listeners = this._listeners.filter((
|
|
59318
|
+
this._listeners = this._listeners.filter((f6) => f6 !== fn2);
|
|
59319
59319
|
}
|
|
59320
59320
|
}
|
|
59321
59321
|
};
|
|
@@ -65578,9 +65578,9 @@ var require_xmap = __commonJS({
|
|
|
65578
65578
|
var _curry2 = require_curry2();
|
|
65579
65579
|
var _xfBase = require_xfBase();
|
|
65580
65580
|
var XMap = /* @__PURE__ */ function() {
|
|
65581
|
-
function XMap2(
|
|
65581
|
+
function XMap2(f6, xf) {
|
|
65582
65582
|
this.xf = xf;
|
|
65583
|
-
this.f =
|
|
65583
|
+
this.f = f6;
|
|
65584
65584
|
}
|
|
65585
65585
|
XMap2.prototype["@@transducer/init"] = _xfBase.init;
|
|
65586
65586
|
XMap2.prototype["@@transducer/result"] = _xfBase.result;
|
|
@@ -65589,8 +65589,8 @@ var require_xmap = __commonJS({
|
|
|
65589
65589
|
};
|
|
65590
65590
|
return XMap2;
|
|
65591
65591
|
}();
|
|
65592
|
-
var _xmap = /* @__PURE__ */ _curry2(function _xmap2(
|
|
65593
|
-
return new XMap(
|
|
65592
|
+
var _xmap = /* @__PURE__ */ _curry2(function _xmap2(f6, xf) {
|
|
65593
|
+
return new XMap(f6, xf);
|
|
65594
65594
|
});
|
|
65595
65595
|
module2.exports = _xmap;
|
|
65596
65596
|
}
|
|
@@ -69513,9 +69513,9 @@ var require_float3 = __commonJS({
|
|
|
69513
69513
|
const node = new Scalar.Scalar(parseFloat(str.replace(/_/g, "")));
|
|
69514
69514
|
const dot = str.indexOf(".");
|
|
69515
69515
|
if (dot !== -1) {
|
|
69516
|
-
const
|
|
69517
|
-
if (
|
|
69518
|
-
node.minFractionDigits =
|
|
69516
|
+
const f6 = str.substring(dot + 1).replace(/_/g, "");
|
|
69517
|
+
if (f6[f6.length - 1] === "0")
|
|
69518
|
+
node.minFractionDigits = f6.length;
|
|
69519
69519
|
}
|
|
69520
69520
|
return node;
|
|
69521
69521
|
},
|
|
@@ -84189,7 +84189,7 @@ var require_lockfile = __commonJS({
|
|
|
84189
84189
|
function(module3, exports3, __webpack_require__) {
|
|
84190
84190
|
"use strict";
|
|
84191
84191
|
var NODE_ENV = process.env.NODE_ENV;
|
|
84192
|
-
var invariant = function(condition, format6, a5, b, c4, d4, e,
|
|
84192
|
+
var invariant = function(condition, format6, a5, b, c4, d4, e, f6) {
|
|
84193
84193
|
if (NODE_ENV !== "production") {
|
|
84194
84194
|
if (format6 === void 0) {
|
|
84195
84195
|
throw new Error("invariant requires an error message argument");
|
|
@@ -84202,7 +84202,7 @@ var require_lockfile = __commonJS({
|
|
|
84202
84202
|
"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
|
|
84203
84203
|
);
|
|
84204
84204
|
} else {
|
|
84205
|
-
var args2 = [a5, b, c4, d4, e,
|
|
84205
|
+
var args2 = [a5, b, c4, d4, e, f6];
|
|
84206
84206
|
var argIndex = 0;
|
|
84207
84207
|
error = new Error(
|
|
84208
84208
|
format6.replace(/%s/g, function() {
|
|
@@ -85781,8 +85781,8 @@ var require_lockfile = __commonJS({
|
|
|
85781
85781
|
minimatch2.match = function(list, pattern, options) {
|
|
85782
85782
|
options = options || {};
|
|
85783
85783
|
var mm = new Minimatch2(pattern, options);
|
|
85784
|
-
list = list.filter(function(
|
|
85785
|
-
return mm.match(
|
|
85784
|
+
list = list.filter(function(f6) {
|
|
85785
|
+
return mm.match(f6);
|
|
85786
85786
|
});
|
|
85787
85787
|
if (mm.options.nonull && !list.length) {
|
|
85788
85788
|
list.push(pattern);
|
|
@@ -85790,28 +85790,28 @@ var require_lockfile = __commonJS({
|
|
|
85790
85790
|
return list;
|
|
85791
85791
|
};
|
|
85792
85792
|
Minimatch2.prototype.match = match2;
|
|
85793
|
-
function match2(
|
|
85794
|
-
this.debug("match",
|
|
85793
|
+
function match2(f6, partial) {
|
|
85794
|
+
this.debug("match", f6, this.pattern);
|
|
85795
85795
|
if (this.comment) return false;
|
|
85796
|
-
if (this.empty) return
|
|
85797
|
-
if (
|
|
85796
|
+
if (this.empty) return f6 === "";
|
|
85797
|
+
if (f6 === "/" && partial) return true;
|
|
85798
85798
|
var options = this.options;
|
|
85799
85799
|
if (path2.sep !== "/") {
|
|
85800
|
-
|
|
85800
|
+
f6 = f6.split(path2.sep).join("/");
|
|
85801
85801
|
}
|
|
85802
|
-
|
|
85803
|
-
this.debug(this.pattern, "split",
|
|
85802
|
+
f6 = f6.split(slashSplit);
|
|
85803
|
+
this.debug(this.pattern, "split", f6);
|
|
85804
85804
|
var set = this.set;
|
|
85805
85805
|
this.debug(this.pattern, "set", set);
|
|
85806
85806
|
var filename;
|
|
85807
85807
|
var i7;
|
|
85808
|
-
for (i7 =
|
|
85809
|
-
filename =
|
|
85808
|
+
for (i7 = f6.length - 1; i7 >= 0; i7--) {
|
|
85809
|
+
filename = f6[i7];
|
|
85810
85810
|
if (filename) break;
|
|
85811
85811
|
}
|
|
85812
85812
|
for (i7 = 0; i7 < set.length; i7++) {
|
|
85813
85813
|
var pattern = set[i7];
|
|
85814
|
-
var file =
|
|
85814
|
+
var file = f6;
|
|
85815
85815
|
if (options.matchBase && pattern.length === 1) {
|
|
85816
85816
|
file = [filename];
|
|
85817
85817
|
}
|
|
@@ -85834,11 +85834,11 @@ var require_lockfile = __commonJS({
|
|
|
85834
85834
|
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
85835
85835
|
this.debug("matchOne loop");
|
|
85836
85836
|
var p3 = pattern[pi];
|
|
85837
|
-
var
|
|
85838
|
-
this.debug(pattern, p3,
|
|
85837
|
+
var f6 = file[fi];
|
|
85838
|
+
this.debug(pattern, p3, f6);
|
|
85839
85839
|
if (p3 === false) return false;
|
|
85840
85840
|
if (p3 === GLOBSTAR2) {
|
|
85841
|
-
this.debug("GLOBSTAR", [pattern, p3,
|
|
85841
|
+
this.debug("GLOBSTAR", [pattern, p3, f6]);
|
|
85842
85842
|
var fr = fi;
|
|
85843
85843
|
var pr = pi + 1;
|
|
85844
85844
|
if (pr === pl) {
|
|
@@ -85872,14 +85872,14 @@ var require_lockfile = __commonJS({
|
|
|
85872
85872
|
var hit;
|
|
85873
85873
|
if (typeof p3 === "string") {
|
|
85874
85874
|
if (options.nocase) {
|
|
85875
|
-
hit =
|
|
85875
|
+
hit = f6.toLowerCase() === p3.toLowerCase();
|
|
85876
85876
|
} else {
|
|
85877
|
-
hit =
|
|
85877
|
+
hit = f6 === p3;
|
|
85878
85878
|
}
|
|
85879
|
-
this.debug("string match", p3,
|
|
85879
|
+
this.debug("string match", p3, f6, hit);
|
|
85880
85880
|
} else {
|
|
85881
|
-
hit =
|
|
85882
|
-
this.debug("pattern match", p3,
|
|
85881
|
+
hit = f6.match(p3);
|
|
85882
|
+
this.debug("pattern match", p3, f6, hit);
|
|
85883
85883
|
}
|
|
85884
85884
|
if (!hit) return false;
|
|
85885
85885
|
}
|
|
@@ -85921,25 +85921,25 @@ var require_lockfile = __commonJS({
|
|
|
85921
85921
|
});
|
|
85922
85922
|
});
|
|
85923
85923
|
function once8(fn2) {
|
|
85924
|
-
var
|
|
85925
|
-
if (
|
|
85926
|
-
|
|
85927
|
-
return
|
|
85924
|
+
var f6 = function() {
|
|
85925
|
+
if (f6.called) return f6.value;
|
|
85926
|
+
f6.called = true;
|
|
85927
|
+
return f6.value = fn2.apply(this, arguments);
|
|
85928
85928
|
};
|
|
85929
|
-
|
|
85930
|
-
return
|
|
85929
|
+
f6.called = false;
|
|
85930
|
+
return f6;
|
|
85931
85931
|
}
|
|
85932
85932
|
function onceStrict(fn2) {
|
|
85933
|
-
var
|
|
85934
|
-
if (
|
|
85935
|
-
throw new Error(
|
|
85936
|
-
|
|
85937
|
-
return
|
|
85933
|
+
var f6 = function() {
|
|
85934
|
+
if (f6.called)
|
|
85935
|
+
throw new Error(f6.onceError);
|
|
85936
|
+
f6.called = true;
|
|
85937
|
+
return f6.value = fn2.apply(this, arguments);
|
|
85938
85938
|
};
|
|
85939
85939
|
var name = fn2.name || "Function wrapped with `once`";
|
|
85940
|
-
|
|
85941
|
-
|
|
85942
|
-
return
|
|
85940
|
+
f6.onceError = name + " shouldn't be called more than once";
|
|
85941
|
+
f6.called = false;
|
|
85942
|
+
return f6;
|
|
85943
85943
|
}
|
|
85944
85944
|
},
|
|
85945
85945
|
,
|
|
@@ -86198,8 +86198,8 @@ var require_lockfile = __commonJS({
|
|
|
86198
86198
|
Glob2.prototype._mark = function(p3) {
|
|
86199
86199
|
return common.mark(this, p3);
|
|
86200
86200
|
};
|
|
86201
|
-
Glob2.prototype._makeAbs = function(
|
|
86202
|
-
return common.makeAbs(this,
|
|
86201
|
+
Glob2.prototype._makeAbs = function(f6) {
|
|
86202
|
+
return common.makeAbs(this, f6);
|
|
86203
86203
|
};
|
|
86204
86204
|
Glob2.prototype.abort = function() {
|
|
86205
86205
|
this.aborted = true;
|
|
@@ -86433,14 +86433,14 @@ var require_lockfile = __commonJS({
|
|
|
86433
86433
|
this.cache[abs] = entries;
|
|
86434
86434
|
return cb(null, entries);
|
|
86435
86435
|
};
|
|
86436
|
-
Glob2.prototype._readdirError = function(
|
|
86436
|
+
Glob2.prototype._readdirError = function(f6, er, cb) {
|
|
86437
86437
|
if (this.aborted)
|
|
86438
86438
|
return;
|
|
86439
86439
|
switch (er.code) {
|
|
86440
86440
|
case "ENOTSUP":
|
|
86441
86441
|
// https://github.com/isaacs/node-glob/issues/205
|
|
86442
86442
|
case "ENOTDIR":
|
|
86443
|
-
var abs = this._makeAbs(
|
|
86443
|
+
var abs = this._makeAbs(f6);
|
|
86444
86444
|
this.cache[abs] = "FILE";
|
|
86445
86445
|
if (abs === this.cwdAbs) {
|
|
86446
86446
|
var error = new Error(er.code + " invalid cwd " + this.cwd);
|
|
@@ -86455,10 +86455,10 @@ var require_lockfile = __commonJS({
|
|
|
86455
86455
|
case "ELOOP":
|
|
86456
86456
|
case "ENAMETOOLONG":
|
|
86457
86457
|
case "UNKNOWN":
|
|
86458
|
-
this.cache[this._makeAbs(
|
|
86458
|
+
this.cache[this._makeAbs(f6)] = false;
|
|
86459
86459
|
break;
|
|
86460
86460
|
default:
|
|
86461
|
-
this.cache[this._makeAbs(
|
|
86461
|
+
this.cache[this._makeAbs(f6)] = false;
|
|
86462
86462
|
if (this.strict) {
|
|
86463
86463
|
this.emit("error", er);
|
|
86464
86464
|
this.abort();
|
|
@@ -86523,10 +86523,10 @@ var require_lockfile = __commonJS({
|
|
|
86523
86523
|
this._emitMatch(index2, prefix);
|
|
86524
86524
|
cb();
|
|
86525
86525
|
};
|
|
86526
|
-
Glob2.prototype._stat = function(
|
|
86527
|
-
var abs = this._makeAbs(
|
|
86528
|
-
var needDir =
|
|
86529
|
-
if (
|
|
86526
|
+
Glob2.prototype._stat = function(f6, cb) {
|
|
86527
|
+
var abs = this._makeAbs(f6);
|
|
86528
|
+
var needDir = f6.slice(-1) === "/";
|
|
86529
|
+
if (f6.length > this.maxLength)
|
|
86530
86530
|
return cb();
|
|
86531
86531
|
if (!this.stat && ownProp(this.cache, abs)) {
|
|
86532
86532
|
var c4 = this.cache[abs];
|
|
@@ -86558,21 +86558,21 @@ var require_lockfile = __commonJS({
|
|
|
86558
86558
|
if (lstat2 && lstat2.isSymbolicLink()) {
|
|
86559
86559
|
return fs.stat(abs, function(er2, stat5) {
|
|
86560
86560
|
if (er2)
|
|
86561
|
-
self2._stat2(
|
|
86561
|
+
self2._stat2(f6, abs, null, lstat2, cb);
|
|
86562
86562
|
else
|
|
86563
|
-
self2._stat2(
|
|
86563
|
+
self2._stat2(f6, abs, er2, stat5, cb);
|
|
86564
86564
|
});
|
|
86565
86565
|
} else {
|
|
86566
|
-
self2._stat2(
|
|
86566
|
+
self2._stat2(f6, abs, er, lstat2, cb);
|
|
86567
86567
|
}
|
|
86568
86568
|
}
|
|
86569
86569
|
};
|
|
86570
|
-
Glob2.prototype._stat2 = function(
|
|
86570
|
+
Glob2.prototype._stat2 = function(f6, abs, er, stat4, cb) {
|
|
86571
86571
|
if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) {
|
|
86572
86572
|
this.statCache[abs] = false;
|
|
86573
86573
|
return cb();
|
|
86574
86574
|
}
|
|
86575
|
-
var needDir =
|
|
86575
|
+
var needDir = f6.slice(-1) === "/";
|
|
86576
86576
|
this.statCache[abs] = stat4;
|
|
86577
86577
|
if (abs.slice(-1) === "/" && stat4 && !stat4.isDirectory())
|
|
86578
86578
|
return cb(null, false, stat4);
|
|
@@ -87721,16 +87721,16 @@ var require_lockfile = __commonJS({
|
|
|
87721
87721
|
}
|
|
87722
87722
|
return m4;
|
|
87723
87723
|
}
|
|
87724
|
-
function makeAbs(self2,
|
|
87725
|
-
var abs =
|
|
87726
|
-
if (
|
|
87727
|
-
abs = path2.join(self2.root,
|
|
87728
|
-
} else if (isAbsolute(
|
|
87729
|
-
abs =
|
|
87724
|
+
function makeAbs(self2, f6) {
|
|
87725
|
+
var abs = f6;
|
|
87726
|
+
if (f6.charAt(0) === "/") {
|
|
87727
|
+
abs = path2.join(self2.root, f6);
|
|
87728
|
+
} else if (isAbsolute(f6) || f6 === "") {
|
|
87729
|
+
abs = f6;
|
|
87730
87730
|
} else if (self2.changedCwd) {
|
|
87731
|
-
abs = path2.resolve(self2.cwd,
|
|
87731
|
+
abs = path2.resolve(self2.cwd, f6);
|
|
87732
87732
|
} else {
|
|
87733
|
-
abs = path2.resolve(
|
|
87733
|
+
abs = path2.resolve(f6);
|
|
87734
87734
|
}
|
|
87735
87735
|
if (process.platform === "win32")
|
|
87736
87736
|
abs = abs.replace(/\\/g, "/");
|
|
@@ -87758,9 +87758,9 @@ var require_lockfile = __commonJS({
|
|
|
87758
87758
|
var fs = __webpack_require__(3);
|
|
87759
87759
|
var _0777 = parseInt("0777", 8);
|
|
87760
87760
|
module3.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
87761
|
-
function mkdirP(p3, opts,
|
|
87761
|
+
function mkdirP(p3, opts, f6, made) {
|
|
87762
87762
|
if (typeof opts === "function") {
|
|
87763
|
-
|
|
87763
|
+
f6 = opts;
|
|
87764
87764
|
opts = {};
|
|
87765
87765
|
} else if (!opts || typeof opts !== "object") {
|
|
87766
87766
|
opts = { mode: opts };
|
|
@@ -87771,7 +87771,7 @@ var require_lockfile = __commonJS({
|
|
|
87771
87771
|
mode = _0777 & ~process.umask();
|
|
87772
87772
|
}
|
|
87773
87773
|
if (!made) made = null;
|
|
87774
|
-
var cb =
|
|
87774
|
+
var cb = f6 || function() {
|
|
87775
87775
|
};
|
|
87776
87776
|
p3 = path2.resolve(p3);
|
|
87777
87777
|
xfs.mkdir(p3, mode, function(er) {
|
|
@@ -88372,11 +88372,11 @@ ${indent2}`);
|
|
|
88372
88372
|
function isPadded(el) {
|
|
88373
88373
|
return /^-?0\d/.test(el);
|
|
88374
88374
|
}
|
|
88375
|
-
function lte(i7,
|
|
88376
|
-
return i7 <=
|
|
88375
|
+
function lte(i7, y10) {
|
|
88376
|
+
return i7 <= y10;
|
|
88377
88377
|
}
|
|
88378
|
-
function gte2(i7,
|
|
88379
|
-
return i7 >=
|
|
88378
|
+
function gte2(i7, y10) {
|
|
88379
|
+
return i7 >= y10;
|
|
88380
88380
|
}
|
|
88381
88381
|
function expand2(str, isTop) {
|
|
88382
88382
|
var expansions = [];
|
|
@@ -88413,18 +88413,18 @@ ${indent2}`);
|
|
|
88413
88413
|
var N;
|
|
88414
88414
|
if (isSequence) {
|
|
88415
88415
|
var x2 = numeric(n2[0]);
|
|
88416
|
-
var
|
|
88416
|
+
var y10 = numeric(n2[1]);
|
|
88417
88417
|
var width = Math.max(n2[0].length, n2[1].length);
|
|
88418
88418
|
var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
|
|
88419
88419
|
var test2 = lte;
|
|
88420
|
-
var reverse =
|
|
88420
|
+
var reverse = y10 < x2;
|
|
88421
88421
|
if (reverse) {
|
|
88422
88422
|
incr *= -1;
|
|
88423
88423
|
test2 = gte2;
|
|
88424
88424
|
}
|
|
88425
88425
|
var pad = n2.some(isPadded);
|
|
88426
88426
|
N = [];
|
|
88427
|
-
for (var i7 = x2; test2(i7,
|
|
88427
|
+
for (var i7 = x2; test2(i7, y10); i7 += incr) {
|
|
88428
88428
|
var c4;
|
|
88429
88429
|
if (isAlphaSequence) {
|
|
88430
88430
|
c4 = String.fromCharCode(i7);
|
|
@@ -88593,16 +88593,16 @@ ${indent2}`);
|
|
|
88593
88593
|
var iterFn = ITERATOR ? function() {
|
|
88594
88594
|
return iterable;
|
|
88595
88595
|
} : getIterFn(iterable);
|
|
88596
|
-
var
|
|
88596
|
+
var f6 = ctx(fn2, that, entries ? 2 : 1);
|
|
88597
88597
|
var index2 = 0;
|
|
88598
88598
|
var length, step, iterator, result;
|
|
88599
88599
|
if (typeof iterFn != "function") throw TypeError(iterable + " is not iterable!");
|
|
88600
88600
|
if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index2; index2++) {
|
|
88601
|
-
result = entries ?
|
|
88601
|
+
result = entries ? f6(anObject(step = iterable[index2])[0], step[1]) : f6(iterable[index2]);
|
|
88602
88602
|
if (result === BREAK || result === RETURN) return result;
|
|
88603
88603
|
}
|
|
88604
88604
|
else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done; ) {
|
|
88605
|
-
result = call(iterator,
|
|
88605
|
+
result = call(iterator, f6, step.value, entries);
|
|
88606
88606
|
if (result === BREAK || result === RETURN) return result;
|
|
88607
88607
|
}
|
|
88608
88608
|
};
|
|
@@ -90102,12 +90102,12 @@ ${indent2}`);
|
|
|
90102
90102
|
this.cache[abs] = entries;
|
|
90103
90103
|
return entries;
|
|
90104
90104
|
};
|
|
90105
|
-
GlobSync.prototype._readdirError = function(
|
|
90105
|
+
GlobSync.prototype._readdirError = function(f6, er) {
|
|
90106
90106
|
switch (er.code) {
|
|
90107
90107
|
case "ENOTSUP":
|
|
90108
90108
|
// https://github.com/isaacs/node-glob/issues/205
|
|
90109
90109
|
case "ENOTDIR":
|
|
90110
|
-
var abs = this._makeAbs(
|
|
90110
|
+
var abs = this._makeAbs(f6);
|
|
90111
90111
|
this.cache[abs] = "FILE";
|
|
90112
90112
|
if (abs === this.cwdAbs) {
|
|
90113
90113
|
var error = new Error(er.code + " invalid cwd " + this.cwd);
|
|
@@ -90121,10 +90121,10 @@ ${indent2}`);
|
|
|
90121
90121
|
case "ELOOP":
|
|
90122
90122
|
case "ENAMETOOLONG":
|
|
90123
90123
|
case "UNKNOWN":
|
|
90124
|
-
this.cache[this._makeAbs(
|
|
90124
|
+
this.cache[this._makeAbs(f6)] = false;
|
|
90125
90125
|
break;
|
|
90126
90126
|
default:
|
|
90127
|
-
this.cache[this._makeAbs(
|
|
90127
|
+
this.cache[this._makeAbs(f6)] = false;
|
|
90128
90128
|
if (this.strict)
|
|
90129
90129
|
throw er;
|
|
90130
90130
|
if (!this.silent)
|
|
@@ -90174,10 +90174,10 @@ ${indent2}`);
|
|
|
90174
90174
|
prefix = prefix.replace(/\\/g, "/");
|
|
90175
90175
|
this._emitMatch(index2, prefix);
|
|
90176
90176
|
};
|
|
90177
|
-
GlobSync.prototype._stat = function(
|
|
90178
|
-
var abs = this._makeAbs(
|
|
90179
|
-
var needDir =
|
|
90180
|
-
if (
|
|
90177
|
+
GlobSync.prototype._stat = function(f6) {
|
|
90178
|
+
var abs = this._makeAbs(f6);
|
|
90179
|
+
var needDir = f6.slice(-1) === "/";
|
|
90180
|
+
if (f6.length > this.maxLength)
|
|
90181
90181
|
return false;
|
|
90182
90182
|
if (!this.stat && ownProp(this.cache, abs)) {
|
|
90183
90183
|
var c4 = this.cache[abs];
|
|
@@ -90222,8 +90222,8 @@ ${indent2}`);
|
|
|
90222
90222
|
GlobSync.prototype._mark = function(p3) {
|
|
90223
90223
|
return common.mark(this, p3);
|
|
90224
90224
|
};
|
|
90225
|
-
GlobSync.prototype._makeAbs = function(
|
|
90226
|
-
return common.makeAbs(this,
|
|
90225
|
+
GlobSync.prototype._makeAbs = function(f6) {
|
|
90226
|
+
return common.makeAbs(this, f6);
|
|
90227
90227
|
};
|
|
90228
90228
|
},
|
|
90229
90229
|
,
|
|
@@ -90326,7 +90326,7 @@ ${indent2}`);
|
|
|
90326
90326
|
var m4 = s6 * 60;
|
|
90327
90327
|
var h = m4 * 60;
|
|
90328
90328
|
var d4 = h * 24;
|
|
90329
|
-
var
|
|
90329
|
+
var y10 = d4 * 365.25;
|
|
90330
90330
|
module3.exports = function(val2, options) {
|
|
90331
90331
|
options = options || {};
|
|
90332
90332
|
var type = typeof val2;
|
|
@@ -90358,7 +90358,7 @@ ${indent2}`);
|
|
|
90358
90358
|
case "yrs":
|
|
90359
90359
|
case "yr":
|
|
90360
90360
|
case "y":
|
|
90361
|
-
return n2 *
|
|
90361
|
+
return n2 * y10;
|
|
90362
90362
|
case "days":
|
|
90363
90363
|
case "day":
|
|
90364
90364
|
case "d":
|
|
@@ -90611,8 +90611,8 @@ ${indent2}`);
|
|
|
90611
90611
|
if (n2 === 0)
|
|
90612
90612
|
return options.rmdir(p3, cb);
|
|
90613
90613
|
var errState;
|
|
90614
|
-
files.forEach(function(
|
|
90615
|
-
rimraf(path2.join(p3,
|
|
90614
|
+
files.forEach(function(f6) {
|
|
90615
|
+
rimraf(path2.join(p3, f6), options, function(er2) {
|
|
90616
90616
|
if (errState)
|
|
90617
90617
|
return;
|
|
90618
90618
|
if (er2)
|
|
@@ -90688,8 +90688,8 @@ ${indent2}`);
|
|
|
90688
90688
|
function rmkidsSync(p3, options) {
|
|
90689
90689
|
assert7(p3);
|
|
90690
90690
|
assert7(options);
|
|
90691
|
-
options.readdirSync(p3).forEach(function(
|
|
90692
|
-
rimrafSync(path2.join(p3,
|
|
90691
|
+
options.readdirSync(p3).forEach(function(f6) {
|
|
90692
|
+
rimrafSync(path2.join(p3, f6), options);
|
|
90693
90693
|
});
|
|
90694
90694
|
var retries = isWindows ? 100 : 1;
|
|
90695
90695
|
var i7 = 0;
|
|
@@ -112993,11 +112993,11 @@ var require_brace_expansion2 = __commonJS({
|
|
|
112993
112993
|
function isPadded(el) {
|
|
112994
112994
|
return /^-?0\d/.test(el);
|
|
112995
112995
|
}
|
|
112996
|
-
function lte(i7,
|
|
112997
|
-
return i7 <=
|
|
112996
|
+
function lte(i7, y10) {
|
|
112997
|
+
return i7 <= y10;
|
|
112998
112998
|
}
|
|
112999
|
-
function gte2(i7,
|
|
113000
|
-
return i7 >=
|
|
112999
|
+
function gte2(i7, y10) {
|
|
113000
|
+
return i7 >= y10;
|
|
113001
113001
|
}
|
|
113002
113002
|
function expand2(str, isTop) {
|
|
113003
113003
|
var expansions = [];
|
|
@@ -113034,18 +113034,18 @@ var require_brace_expansion2 = __commonJS({
|
|
|
113034
113034
|
var N;
|
|
113035
113035
|
if (isSequence) {
|
|
113036
113036
|
var x2 = numeric(n2[0]);
|
|
113037
|
-
var
|
|
113037
|
+
var y10 = numeric(n2[1]);
|
|
113038
113038
|
var width = Math.max(n2[0].length, n2[1].length);
|
|
113039
113039
|
var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
|
|
113040
113040
|
var test2 = lte;
|
|
113041
|
-
var reverse =
|
|
113041
|
+
var reverse = y10 < x2;
|
|
113042
113042
|
if (reverse) {
|
|
113043
113043
|
incr *= -1;
|
|
113044
113044
|
test2 = gte2;
|
|
113045
113045
|
}
|
|
113046
113046
|
var pad = n2.some(isPadded);
|
|
113047
113047
|
N = [];
|
|
113048
|
-
for (var i7 = x2; test2(i7,
|
|
113048
|
+
for (var i7 = x2; test2(i7, y10); i7 += incr) {
|
|
113049
113049
|
var c4;
|
|
113050
113050
|
if (isAlphaSequence) {
|
|
113051
113051
|
c4 = String.fromCharCode(i7);
|
|
@@ -113540,37 +113540,37 @@ var require_minimatch = __commonJS({
|
|
|
113540
113540
|
minimatch2.match = function(list, pattern, options) {
|
|
113541
113541
|
options = options || {};
|
|
113542
113542
|
var mm = new Minimatch2(pattern, options);
|
|
113543
|
-
list = list.filter(function(
|
|
113544
|
-
return mm.match(
|
|
113543
|
+
list = list.filter(function(f6) {
|
|
113544
|
+
return mm.match(f6);
|
|
113545
113545
|
});
|
|
113546
113546
|
if (mm.options.nonull && !list.length) {
|
|
113547
113547
|
list.push(pattern);
|
|
113548
113548
|
}
|
|
113549
113549
|
return list;
|
|
113550
113550
|
};
|
|
113551
|
-
Minimatch2.prototype.match = function match2(
|
|
113551
|
+
Minimatch2.prototype.match = function match2(f6, partial) {
|
|
113552
113552
|
if (typeof partial === "undefined") partial = this.partial;
|
|
113553
|
-
this.debug("match",
|
|
113553
|
+
this.debug("match", f6, this.pattern);
|
|
113554
113554
|
if (this.comment) return false;
|
|
113555
|
-
if (this.empty) return
|
|
113556
|
-
if (
|
|
113555
|
+
if (this.empty) return f6 === "";
|
|
113556
|
+
if (f6 === "/" && partial) return true;
|
|
113557
113557
|
var options = this.options;
|
|
113558
113558
|
if (path2.sep !== "/") {
|
|
113559
|
-
|
|
113559
|
+
f6 = f6.split(path2.sep).join("/");
|
|
113560
113560
|
}
|
|
113561
|
-
|
|
113562
|
-
this.debug(this.pattern, "split",
|
|
113561
|
+
f6 = f6.split(slashSplit);
|
|
113562
|
+
this.debug(this.pattern, "split", f6);
|
|
113563
113563
|
var set = this.set;
|
|
113564
113564
|
this.debug(this.pattern, "set", set);
|
|
113565
113565
|
var filename;
|
|
113566
113566
|
var i7;
|
|
113567
|
-
for (i7 =
|
|
113568
|
-
filename =
|
|
113567
|
+
for (i7 = f6.length - 1; i7 >= 0; i7--) {
|
|
113568
|
+
filename = f6[i7];
|
|
113569
113569
|
if (filename) break;
|
|
113570
113570
|
}
|
|
113571
113571
|
for (i7 = 0; i7 < set.length; i7++) {
|
|
113572
113572
|
var pattern = set[i7];
|
|
113573
|
-
var file =
|
|
113573
|
+
var file = f6;
|
|
113574
113574
|
if (options.matchBase && pattern.length === 1) {
|
|
113575
113575
|
file = [filename];
|
|
113576
113576
|
}
|
|
@@ -113593,11 +113593,11 @@ var require_minimatch = __commonJS({
|
|
|
113593
113593
|
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
113594
113594
|
this.debug("matchOne loop");
|
|
113595
113595
|
var p3 = pattern[pi];
|
|
113596
|
-
var
|
|
113597
|
-
this.debug(pattern, p3,
|
|
113596
|
+
var f6 = file[fi];
|
|
113597
|
+
this.debug(pattern, p3, f6);
|
|
113598
113598
|
if (p3 === false) return false;
|
|
113599
113599
|
if (p3 === GLOBSTAR2) {
|
|
113600
|
-
this.debug("GLOBSTAR", [pattern, p3,
|
|
113600
|
+
this.debug("GLOBSTAR", [pattern, p3, f6]);
|
|
113601
113601
|
var fr = fi;
|
|
113602
113602
|
var pr = pi + 1;
|
|
113603
113603
|
if (pr === pl) {
|
|
@@ -113630,11 +113630,11 @@ var require_minimatch = __commonJS({
|
|
|
113630
113630
|
}
|
|
113631
113631
|
var hit;
|
|
113632
113632
|
if (typeof p3 === "string") {
|
|
113633
|
-
hit =
|
|
113634
|
-
this.debug("string match", p3,
|
|
113633
|
+
hit = f6 === p3;
|
|
113634
|
+
this.debug("string match", p3, f6, hit);
|
|
113635
113635
|
} else {
|
|
113636
|
-
hit =
|
|
113637
|
-
this.debug("pattern match", p3,
|
|
113636
|
+
hit = f6.match(p3);
|
|
113637
|
+
this.debug("pattern match", p3, f6, hit);
|
|
113638
113638
|
}
|
|
113639
113639
|
if (!hit) return false;
|
|
113640
113640
|
}
|
|
@@ -113838,16 +113838,16 @@ var require_common6 = __commonJS({
|
|
|
113838
113838
|
}
|
|
113839
113839
|
return m4;
|
|
113840
113840
|
}
|
|
113841
|
-
function makeAbs(self2,
|
|
113842
|
-
var abs =
|
|
113843
|
-
if (
|
|
113844
|
-
abs = path2.join(self2.root,
|
|
113845
|
-
} else if (isAbsolute(
|
|
113846
|
-
abs =
|
|
113841
|
+
function makeAbs(self2, f6) {
|
|
113842
|
+
var abs = f6;
|
|
113843
|
+
if (f6.charAt(0) === "/") {
|
|
113844
|
+
abs = path2.join(self2.root, f6);
|
|
113845
|
+
} else if (isAbsolute(f6) || f6 === "") {
|
|
113846
|
+
abs = f6;
|
|
113847
113847
|
} else if (self2.changedCwd) {
|
|
113848
|
-
abs = path2.resolve(self2.cwd,
|
|
113848
|
+
abs = path2.resolve(self2.cwd, f6);
|
|
113849
113849
|
} else {
|
|
113850
|
-
abs = path2.resolve(
|
|
113850
|
+
abs = path2.resolve(f6);
|
|
113851
113851
|
}
|
|
113852
113852
|
if (process.platform === "win32")
|
|
113853
113853
|
abs = abs.replace(/\\/g, "/");
|
|
@@ -114099,12 +114099,12 @@ var require_sync = __commonJS({
|
|
|
114099
114099
|
this.cache[abs] = entries;
|
|
114100
114100
|
return entries;
|
|
114101
114101
|
};
|
|
114102
|
-
GlobSync.prototype._readdirError = function(
|
|
114102
|
+
GlobSync.prototype._readdirError = function(f6, er) {
|
|
114103
114103
|
switch (er.code) {
|
|
114104
114104
|
case "ENOTSUP":
|
|
114105
114105
|
// https://github.com/isaacs/node-glob/issues/205
|
|
114106
114106
|
case "ENOTDIR":
|
|
114107
|
-
var abs = this._makeAbs(
|
|
114107
|
+
var abs = this._makeAbs(f6);
|
|
114108
114108
|
this.cache[abs] = "FILE";
|
|
114109
114109
|
if (abs === this.cwdAbs) {
|
|
114110
114110
|
var error = new Error(er.code + " invalid cwd " + this.cwd);
|
|
@@ -114118,10 +114118,10 @@ var require_sync = __commonJS({
|
|
|
114118
114118
|
case "ELOOP":
|
|
114119
114119
|
case "ENAMETOOLONG":
|
|
114120
114120
|
case "UNKNOWN":
|
|
114121
|
-
this.cache[this._makeAbs(
|
|
114121
|
+
this.cache[this._makeAbs(f6)] = false;
|
|
114122
114122
|
break;
|
|
114123
114123
|
default:
|
|
114124
|
-
this.cache[this._makeAbs(
|
|
114124
|
+
this.cache[this._makeAbs(f6)] = false;
|
|
114125
114125
|
if (this.strict)
|
|
114126
114126
|
throw er;
|
|
114127
114127
|
if (!this.silent)
|
|
@@ -114171,10 +114171,10 @@ var require_sync = __commonJS({
|
|
|
114171
114171
|
prefix = prefix.replace(/\\/g, "/");
|
|
114172
114172
|
this._emitMatch(index2, prefix);
|
|
114173
114173
|
};
|
|
114174
|
-
GlobSync.prototype._stat = function(
|
|
114175
|
-
var abs = this._makeAbs(
|
|
114176
|
-
var needDir =
|
|
114177
|
-
if (
|
|
114174
|
+
GlobSync.prototype._stat = function(f6) {
|
|
114175
|
+
var abs = this._makeAbs(f6);
|
|
114176
|
+
var needDir = f6.slice(-1) === "/";
|
|
114177
|
+
if (f6.length > this.maxLength)
|
|
114178
114178
|
return false;
|
|
114179
114179
|
if (!this.stat && ownProp(this.cache, abs)) {
|
|
114180
114180
|
var c4 = this.cache[abs];
|
|
@@ -114219,8 +114219,8 @@ var require_sync = __commonJS({
|
|
|
114219
114219
|
GlobSync.prototype._mark = function(p3) {
|
|
114220
114220
|
return common.mark(this, p3);
|
|
114221
114221
|
};
|
|
114222
|
-
GlobSync.prototype._makeAbs = function(
|
|
114223
|
-
return common.makeAbs(this,
|
|
114222
|
+
GlobSync.prototype._makeAbs = function(f6) {
|
|
114223
|
+
return common.makeAbs(this, f6);
|
|
114224
114224
|
};
|
|
114225
114225
|
}
|
|
114226
114226
|
});
|
|
@@ -114276,25 +114276,25 @@ var require_once2 = __commonJS({
|
|
|
114276
114276
|
});
|
|
114277
114277
|
});
|
|
114278
114278
|
function once8(fn2) {
|
|
114279
|
-
var
|
|
114280
|
-
if (
|
|
114281
|
-
|
|
114282
|
-
return
|
|
114279
|
+
var f6 = function() {
|
|
114280
|
+
if (f6.called) return f6.value;
|
|
114281
|
+
f6.called = true;
|
|
114282
|
+
return f6.value = fn2.apply(this, arguments);
|
|
114283
114283
|
};
|
|
114284
|
-
|
|
114285
|
-
return
|
|
114284
|
+
f6.called = false;
|
|
114285
|
+
return f6;
|
|
114286
114286
|
}
|
|
114287
114287
|
function onceStrict(fn2) {
|
|
114288
|
-
var
|
|
114289
|
-
if (
|
|
114290
|
-
throw new Error(
|
|
114291
|
-
|
|
114292
|
-
return
|
|
114288
|
+
var f6 = function() {
|
|
114289
|
+
if (f6.called)
|
|
114290
|
+
throw new Error(f6.onceError);
|
|
114291
|
+
f6.called = true;
|
|
114292
|
+
return f6.value = fn2.apply(this, arguments);
|
|
114293
114293
|
};
|
|
114294
114294
|
var name = fn2.name || "Function wrapped with `once`";
|
|
114295
|
-
|
|
114296
|
-
|
|
114297
|
-
return
|
|
114295
|
+
f6.onceError = name + " shouldn't be called more than once";
|
|
114296
|
+
f6.called = false;
|
|
114297
|
+
return f6;
|
|
114298
114298
|
}
|
|
114299
114299
|
}
|
|
114300
114300
|
});
|
|
@@ -114510,8 +114510,8 @@ var require_glob = __commonJS({
|
|
|
114510
114510
|
Glob2.prototype._mark = function(p3) {
|
|
114511
114511
|
return common.mark(this, p3);
|
|
114512
114512
|
};
|
|
114513
|
-
Glob2.prototype._makeAbs = function(
|
|
114514
|
-
return common.makeAbs(this,
|
|
114513
|
+
Glob2.prototype._makeAbs = function(f6) {
|
|
114514
|
+
return common.makeAbs(this, f6);
|
|
114515
114515
|
};
|
|
114516
114516
|
Glob2.prototype.abort = function() {
|
|
114517
114517
|
this.aborted = true;
|
|
@@ -114747,14 +114747,14 @@ var require_glob = __commonJS({
|
|
|
114747
114747
|
this.cache[abs] = entries;
|
|
114748
114748
|
return cb(null, entries);
|
|
114749
114749
|
};
|
|
114750
|
-
Glob2.prototype._readdirError = function(
|
|
114750
|
+
Glob2.prototype._readdirError = function(f6, er, cb) {
|
|
114751
114751
|
if (this.aborted)
|
|
114752
114752
|
return;
|
|
114753
114753
|
switch (er.code) {
|
|
114754
114754
|
case "ENOTSUP":
|
|
114755
114755
|
// https://github.com/isaacs/node-glob/issues/205
|
|
114756
114756
|
case "ENOTDIR":
|
|
114757
|
-
var abs = this._makeAbs(
|
|
114757
|
+
var abs = this._makeAbs(f6);
|
|
114758
114758
|
this.cache[abs] = "FILE";
|
|
114759
114759
|
if (abs === this.cwdAbs) {
|
|
114760
114760
|
var error = new Error(er.code + " invalid cwd " + this.cwd);
|
|
@@ -114769,10 +114769,10 @@ var require_glob = __commonJS({
|
|
|
114769
114769
|
case "ELOOP":
|
|
114770
114770
|
case "ENAMETOOLONG":
|
|
114771
114771
|
case "UNKNOWN":
|
|
114772
|
-
this.cache[this._makeAbs(
|
|
114772
|
+
this.cache[this._makeAbs(f6)] = false;
|
|
114773
114773
|
break;
|
|
114774
114774
|
default:
|
|
114775
|
-
this.cache[this._makeAbs(
|
|
114775
|
+
this.cache[this._makeAbs(f6)] = false;
|
|
114776
114776
|
if (this.strict) {
|
|
114777
114777
|
this.emit("error", er);
|
|
114778
114778
|
this.abort();
|
|
@@ -114837,10 +114837,10 @@ var require_glob = __commonJS({
|
|
|
114837
114837
|
this._emitMatch(index2, prefix);
|
|
114838
114838
|
cb();
|
|
114839
114839
|
};
|
|
114840
|
-
Glob2.prototype._stat = function(
|
|
114841
|
-
var abs = this._makeAbs(
|
|
114842
|
-
var needDir =
|
|
114843
|
-
if (
|
|
114840
|
+
Glob2.prototype._stat = function(f6, cb) {
|
|
114841
|
+
var abs = this._makeAbs(f6);
|
|
114842
|
+
var needDir = f6.slice(-1) === "/";
|
|
114843
|
+
if (f6.length > this.maxLength)
|
|
114844
114844
|
return cb();
|
|
114845
114845
|
if (!this.stat && ownProp(this.cache, abs)) {
|
|
114846
114846
|
var c4 = this.cache[abs];
|
|
@@ -114872,21 +114872,21 @@ var require_glob = __commonJS({
|
|
|
114872
114872
|
if (lstat2 && lstat2.isSymbolicLink()) {
|
|
114873
114873
|
return self2.fs.stat(abs, function(er2, stat5) {
|
|
114874
114874
|
if (er2)
|
|
114875
|
-
self2._stat2(
|
|
114875
|
+
self2._stat2(f6, abs, null, lstat2, cb);
|
|
114876
114876
|
else
|
|
114877
|
-
self2._stat2(
|
|
114877
|
+
self2._stat2(f6, abs, er2, stat5, cb);
|
|
114878
114878
|
});
|
|
114879
114879
|
} else {
|
|
114880
|
-
self2._stat2(
|
|
114880
|
+
self2._stat2(f6, abs, er, lstat2, cb);
|
|
114881
114881
|
}
|
|
114882
114882
|
}
|
|
114883
114883
|
};
|
|
114884
|
-
Glob2.prototype._stat2 = function(
|
|
114884
|
+
Glob2.prototype._stat2 = function(f6, abs, er, stat4, cb) {
|
|
114885
114885
|
if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) {
|
|
114886
114886
|
this.statCache[abs] = false;
|
|
114887
114887
|
return cb();
|
|
114888
114888
|
}
|
|
114889
|
-
var needDir =
|
|
114889
|
+
var needDir = f6.slice(-1) === "/";
|
|
114890
114890
|
this.statCache[abs] = stat4;
|
|
114891
114891
|
if (abs.slice(-1) === "/" && stat4 && !stat4.isDirectory())
|
|
114892
114892
|
return cb(null, false, stat4);
|
|
@@ -115085,8 +115085,8 @@ var require_rimraf2 = __commonJS({
|
|
|
115085
115085
|
if (n2 === 0)
|
|
115086
115086
|
return options.rmdir(p3, cb);
|
|
115087
115087
|
let errState;
|
|
115088
|
-
files.forEach((
|
|
115089
|
-
rimraf(path2.join(p3,
|
|
115088
|
+
files.forEach((f6) => {
|
|
115089
|
+
rimraf(path2.join(p3, f6), options, (er2) => {
|
|
115090
115090
|
if (errState)
|
|
115091
115091
|
return;
|
|
115092
115092
|
if (er2)
|
|
@@ -115161,7 +115161,7 @@ var require_rimraf2 = __commonJS({
|
|
|
115161
115161
|
var rmkidsSync = (p3, options) => {
|
|
115162
115162
|
assert7(p3);
|
|
115163
115163
|
assert7(options);
|
|
115164
|
-
options.readdirSync(p3).forEach((
|
|
115164
|
+
options.readdirSync(p3).forEach((f6) => rimrafSync(path2.join(p3, f6), options));
|
|
115165
115165
|
const retries = isWindows ? 100 : 1;
|
|
115166
115166
|
let i7 = 0;
|
|
115167
115167
|
do {
|
|
@@ -143018,9 +143018,9 @@ var require_float6 = __commonJS({
|
|
|
143018
143018
|
const node = new Scalar.Scalar(parseFloat(str.replace(/_/g, "")));
|
|
143019
143019
|
const dot = str.indexOf(".");
|
|
143020
143020
|
if (dot !== -1) {
|
|
143021
|
-
const
|
|
143022
|
-
if (
|
|
143023
|
-
node.minFractionDigits =
|
|
143021
|
+
const f6 = str.substring(dot + 1).replace(/_/g, "");
|
|
143022
|
+
if (f6[f6.length - 1] === "0")
|
|
143023
|
+
node.minFractionDigits = f6.length;
|
|
143024
143024
|
}
|
|
143025
143025
|
return node;
|
|
143026
143026
|
},
|
|
@@ -162977,10 +162977,10 @@ var require_lib28 = __commonJS({
|
|
|
162977
162977
|
function sign(x2) {
|
|
162978
162978
|
return x2 < 0 ? -1 : 1;
|
|
162979
162979
|
}
|
|
162980
|
-
function modulo(x2,
|
|
162981
|
-
const signMightNotMatch = x2 %
|
|
162982
|
-
if (sign(
|
|
162983
|
-
return signMightNotMatch +
|
|
162980
|
+
function modulo(x2, y10) {
|
|
162981
|
+
const signMightNotMatch = x2 % y10;
|
|
162982
|
+
if (sign(y10) !== sign(signMightNotMatch)) {
|
|
162983
|
+
return signMightNotMatch + y10;
|
|
162984
162984
|
}
|
|
162985
162985
|
return signMightNotMatch;
|
|
162986
162986
|
}
|
|
@@ -163104,11 +163104,11 @@ var require_lib28 = __commonJS({
|
|
|
163104
163104
|
if (Object.is(x2, -0)) {
|
|
163105
163105
|
return x2;
|
|
163106
163106
|
}
|
|
163107
|
-
const
|
|
163108
|
-
if (!Number.isFinite(
|
|
163107
|
+
const y10 = Math.fround(x2);
|
|
163108
|
+
if (!Number.isFinite(y10)) {
|
|
163109
163109
|
throw makeException(TypeError, "is outside the range of a single-precision floating-point value", options);
|
|
163110
163110
|
}
|
|
163111
|
-
return
|
|
163111
|
+
return y10;
|
|
163112
163112
|
};
|
|
163113
163113
|
exports2["unrestricted float"] = (value, options = {}) => {
|
|
163114
163114
|
const x2 = toNumber(value, options);
|
|
@@ -189545,8 +189545,8 @@ var require_WebClient = __commonJS({
|
|
|
189545
189545
|
function reject(value) {
|
|
189546
189546
|
resume("throw", value);
|
|
189547
189547
|
}
|
|
189548
|
-
function settle2(
|
|
189549
|
-
if (
|
|
189548
|
+
function settle2(f6, v) {
|
|
189549
|
+
if (f6(v), q3.shift(), q3.length) resume(q3[0][0], q3[0][1]);
|
|
189550
189550
|
}
|
|
189551
189551
|
};
|
|
189552
189552
|
var __asyncValues = exports2 && exports2.__asyncValues || function(o7) {
|
|
@@ -190502,10 +190502,10 @@ function i4(...e) {
|
|
|
190502
190502
|
var p2 = (e, a5) => {
|
|
190503
190503
|
let n2 = /* @__PURE__ */ new Map();
|
|
190504
190504
|
for (let [d4, t4] of e.entries()) {
|
|
190505
|
-
let
|
|
190506
|
-
if (
|
|
190507
|
-
let r3 = n2.get(
|
|
190508
|
-
r3 === void 0 && (r3 = [], n2.set(
|
|
190505
|
+
let y10 = a5(t4, d4, e);
|
|
190506
|
+
if (y10 !== void 0) {
|
|
190507
|
+
let r3 = n2.get(y10);
|
|
190508
|
+
r3 === void 0 && (r3 = [], n2.set(y10, r3)), r3.push(t4);
|
|
190509
190509
|
}
|
|
190510
190510
|
}
|
|
190511
190511
|
return Object.fromEntries(n2);
|
|
@@ -190542,7 +190542,7 @@ function c(n2, e) {
|
|
|
190542
190542
|
let r3 = [...e];
|
|
190543
190543
|
for (let t4 of n2) {
|
|
190544
190544
|
let o7 = false;
|
|
190545
|
-
for (let [s6,
|
|
190545
|
+
for (let [s6, f6] of r3.entries()) if (u3(t4, f6)) {
|
|
190546
190546
|
o7 = true, r3.splice(s6, 1);
|
|
190547
190547
|
break;
|
|
190548
190548
|
}
|
|
@@ -190577,8 +190577,8 @@ function u4(...a5) {
|
|
|
190577
190577
|
return u2(o5, a5, l4);
|
|
190578
190578
|
}
|
|
190579
190579
|
var o5 = (a5, r3) => a5.flatMap(r3);
|
|
190580
|
-
var l4 = (a5) => (r3, t4,
|
|
190581
|
-
let n2 = a5(r3, t4,
|
|
190580
|
+
var l4 = (a5) => (r3, t4, y10) => {
|
|
190581
|
+
let n2 = a5(r3, t4, y10);
|
|
190582
190582
|
return Array.isArray(n2) ? { done: false, hasNext: true, hasMany: true, next: n2 } : { done: false, hasNext: true, next: n2 };
|
|
190583
190583
|
};
|
|
190584
190584
|
|
|
@@ -194396,7 +194396,7 @@ var MavenFixingManager = class {
|
|
|
194396
194396
|
if (pmInfo.packageManager !== "MAVEN") {
|
|
194397
194397
|
throw Error(`fixing data for package manager 'MAVEN' required, got ${pmInfo.packageManager}`);
|
|
194398
194398
|
}
|
|
194399
|
-
const validateFile = (
|
|
194399
|
+
const validateFile = (f6) => f6;
|
|
194400
194400
|
const dependencyTrees = fixingInfo.dependencyTrees;
|
|
194401
194401
|
const workspacePaths = Object.keys(fixes);
|
|
194402
194402
|
const directPatchResults = [];
|
|
@@ -198778,8 +198778,8 @@ var MavenSocketUpgradeManager = class {
|
|
|
198778
198778
|
}
|
|
198779
198779
|
if (shouldAdd) manifestFileSet.add(resolve10(this.rootDir, manifestFile));
|
|
198780
198780
|
}
|
|
198781
|
-
const validateFile = (
|
|
198782
|
-
return manifestFileSet.has(
|
|
198781
|
+
const validateFile = (f6) => {
|
|
198782
|
+
return manifestFileSet.has(f6) ? f6 : void 0;
|
|
198783
198783
|
};
|
|
198784
198784
|
const updatePatchResults = await this.collectUpdatePatches(upgrades, artifacts, rangeStyle, validateFile);
|
|
198785
198785
|
const updatePatchSuccesses = extractSuccessfulPatches(updatePatchResults);
|
|
@@ -200106,54 +200106,54 @@ var minimatch = (p3, pattern, options = {}) => {
|
|
|
200106
200106
|
return new Minimatch(pattern, options).match(p3);
|
|
200107
200107
|
};
|
|
200108
200108
|
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
|
200109
|
-
var starDotExtTest = (ext2) => (
|
|
200110
|
-
var starDotExtTestDot = (ext2) => (
|
|
200109
|
+
var starDotExtTest = (ext2) => (f6) => !f6.startsWith(".") && f6.endsWith(ext2);
|
|
200110
|
+
var starDotExtTestDot = (ext2) => (f6) => f6.endsWith(ext2);
|
|
200111
200111
|
var starDotExtTestNocase = (ext2) => {
|
|
200112
200112
|
ext2 = ext2.toLowerCase();
|
|
200113
|
-
return (
|
|
200113
|
+
return (f6) => !f6.startsWith(".") && f6.toLowerCase().endsWith(ext2);
|
|
200114
200114
|
};
|
|
200115
200115
|
var starDotExtTestNocaseDot = (ext2) => {
|
|
200116
200116
|
ext2 = ext2.toLowerCase();
|
|
200117
|
-
return (
|
|
200117
|
+
return (f6) => f6.toLowerCase().endsWith(ext2);
|
|
200118
200118
|
};
|
|
200119
200119
|
var starDotStarRE = /^\*+\.\*+$/;
|
|
200120
|
-
var starDotStarTest = (
|
|
200121
|
-
var starDotStarTestDot = (
|
|
200120
|
+
var starDotStarTest = (f6) => !f6.startsWith(".") && f6.includes(".");
|
|
200121
|
+
var starDotStarTestDot = (f6) => f6 !== "." && f6 !== ".." && f6.includes(".");
|
|
200122
200122
|
var dotStarRE = /^\.\*+$/;
|
|
200123
|
-
var dotStarTest = (
|
|
200123
|
+
var dotStarTest = (f6) => f6 !== "." && f6 !== ".." && f6.startsWith(".");
|
|
200124
200124
|
var starRE = /^\*+$/;
|
|
200125
|
-
var starTest = (
|
|
200126
|
-
var starTestDot = (
|
|
200125
|
+
var starTest = (f6) => f6.length !== 0 && !f6.startsWith(".");
|
|
200126
|
+
var starTestDot = (f6) => f6.length !== 0 && f6 !== "." && f6 !== "..";
|
|
200127
200127
|
var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
200128
200128
|
var qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
200129
200129
|
const noext = qmarksTestNoExt([$0]);
|
|
200130
200130
|
if (!ext2)
|
|
200131
200131
|
return noext;
|
|
200132
200132
|
ext2 = ext2.toLowerCase();
|
|
200133
|
-
return (
|
|
200133
|
+
return (f6) => noext(f6) && f6.toLowerCase().endsWith(ext2);
|
|
200134
200134
|
};
|
|
200135
200135
|
var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
|
|
200136
200136
|
const noext = qmarksTestNoExtDot([$0]);
|
|
200137
200137
|
if (!ext2)
|
|
200138
200138
|
return noext;
|
|
200139
200139
|
ext2 = ext2.toLowerCase();
|
|
200140
|
-
return (
|
|
200140
|
+
return (f6) => noext(f6) && f6.toLowerCase().endsWith(ext2);
|
|
200141
200141
|
};
|
|
200142
200142
|
var qmarksTestDot = ([$0, ext2 = ""]) => {
|
|
200143
200143
|
const noext = qmarksTestNoExtDot([$0]);
|
|
200144
|
-
return !ext2 ? noext : (
|
|
200144
|
+
return !ext2 ? noext : (f6) => noext(f6) && f6.endsWith(ext2);
|
|
200145
200145
|
};
|
|
200146
200146
|
var qmarksTest = ([$0, ext2 = ""]) => {
|
|
200147
200147
|
const noext = qmarksTestNoExt([$0]);
|
|
200148
|
-
return !ext2 ? noext : (
|
|
200148
|
+
return !ext2 ? noext : (f6) => noext(f6) && f6.endsWith(ext2);
|
|
200149
200149
|
};
|
|
200150
200150
|
var qmarksTestNoExt = ([$0]) => {
|
|
200151
200151
|
const len = $0.length;
|
|
200152
|
-
return (
|
|
200152
|
+
return (f6) => f6.length === len && !f6.startsWith(".");
|
|
200153
200153
|
};
|
|
200154
200154
|
var qmarksTestNoExtDot = ([$0]) => {
|
|
200155
200155
|
const len = $0.length;
|
|
200156
|
-
return (
|
|
200156
|
+
return (f6) => f6.length === len && f6 !== "." && f6 !== "..";
|
|
200157
200157
|
};
|
|
200158
200158
|
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
200159
200159
|
var path = {
|
|
@@ -200220,7 +200220,7 @@ var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe()
|
|
|
200220
200220
|
minimatch.makeRe = makeRe;
|
|
200221
200221
|
var match = (list, pattern, options = {}) => {
|
|
200222
200222
|
const mm = new Minimatch(pattern, options);
|
|
200223
|
-
list = list.filter((
|
|
200223
|
+
list = list.filter((f6) => mm.match(f6));
|
|
200224
200224
|
if (mm.options.nonull && !list.length) {
|
|
200225
200225
|
list.push(pattern);
|
|
200226
200226
|
}
|
|
@@ -200612,13 +200612,13 @@ var Minimatch = class {
|
|
|
200612
200612
|
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
200613
200613
|
this.debug("matchOne loop");
|
|
200614
200614
|
var p3 = pattern[pi];
|
|
200615
|
-
var
|
|
200616
|
-
this.debug(pattern, p3,
|
|
200615
|
+
var f6 = file[fi];
|
|
200616
|
+
this.debug(pattern, p3, f6);
|
|
200617
200617
|
if (p3 === false) {
|
|
200618
200618
|
return false;
|
|
200619
200619
|
}
|
|
200620
200620
|
if (p3 === GLOBSTAR) {
|
|
200621
|
-
this.debug("GLOBSTAR", [pattern, p3,
|
|
200621
|
+
this.debug("GLOBSTAR", [pattern, p3, f6]);
|
|
200622
200622
|
var fr = fi;
|
|
200623
200623
|
var pr = pi + 1;
|
|
200624
200624
|
if (pr === pl) {
|
|
@@ -200654,11 +200654,11 @@ var Minimatch = class {
|
|
|
200654
200654
|
}
|
|
200655
200655
|
let hit;
|
|
200656
200656
|
if (typeof p3 === "string") {
|
|
200657
|
-
hit =
|
|
200658
|
-
this.debug("string match", p3,
|
|
200657
|
+
hit = f6 === p3;
|
|
200658
|
+
this.debug("string match", p3, f6, hit);
|
|
200659
200659
|
} else {
|
|
200660
|
-
hit = p3.test(
|
|
200661
|
-
this.debug("pattern match", p3,
|
|
200660
|
+
hit = p3.test(f6);
|
|
200661
|
+
this.debug("pattern match", p3, f6, hit);
|
|
200662
200662
|
}
|
|
200663
200663
|
if (!hit)
|
|
200664
200664
|
return false;
|
|
@@ -200716,8 +200716,8 @@ var Minimatch = class {
|
|
|
200716
200716
|
let re = set.map((pattern) => {
|
|
200717
200717
|
const pp = pattern.map((p3) => {
|
|
200718
200718
|
if (p3 instanceof RegExp) {
|
|
200719
|
-
for (const
|
|
200720
|
-
flags.add(
|
|
200719
|
+
for (const f6 of p3.flags.split(""))
|
|
200720
|
+
flags.add(f6);
|
|
200721
200721
|
}
|
|
200722
200722
|
return typeof p3 === "string" ? regExpEscape2(p3) : p3 === GLOBSTAR ? GLOBSTAR : p3._src;
|
|
200723
200723
|
});
|
|
@@ -200762,22 +200762,22 @@ var Minimatch = class {
|
|
|
200762
200762
|
return p3.split(/\/+/);
|
|
200763
200763
|
}
|
|
200764
200764
|
}
|
|
200765
|
-
match(
|
|
200766
|
-
this.debug("match",
|
|
200765
|
+
match(f6, partial = this.partial) {
|
|
200766
|
+
this.debug("match", f6, this.pattern);
|
|
200767
200767
|
if (this.comment) {
|
|
200768
200768
|
return false;
|
|
200769
200769
|
}
|
|
200770
200770
|
if (this.empty) {
|
|
200771
|
-
return
|
|
200771
|
+
return f6 === "";
|
|
200772
200772
|
}
|
|
200773
|
-
if (
|
|
200773
|
+
if (f6 === "/" && partial) {
|
|
200774
200774
|
return true;
|
|
200775
200775
|
}
|
|
200776
200776
|
const options = this.options;
|
|
200777
200777
|
if (this.isWindows) {
|
|
200778
|
-
|
|
200778
|
+
f6 = f6.split("\\").join("/");
|
|
200779
200779
|
}
|
|
200780
|
-
const ff = this.slashSplit(
|
|
200780
|
+
const ff = this.slashSplit(f6);
|
|
200781
200781
|
this.debug(this.pattern, "split", ff);
|
|
200782
200782
|
const set = this.set;
|
|
200783
200783
|
this.debug(this.pattern, "set", set);
|
|
@@ -206206,13 +206206,13 @@ var NpmEcosystemFixingManager = class {
|
|
|
206206
206206
|
await this.applySecurityFixesSpecificPackageManager(fixes);
|
|
206207
206207
|
if (directDependenciesToBump.length === 0) return;
|
|
206208
206208
|
await applySeries(["prod", "dev"], async (type) => {
|
|
206209
|
-
const packagesOfType = directDependenciesToBump.filter((
|
|
206209
|
+
const packagesOfType = directDependenciesToBump.filter((f6) => directDependencyToPackageType[f6.dependencyName] === type).map((f6) => `${f6.dependencyName}@${f6.fixedVersion}`);
|
|
206210
206210
|
if (packagesOfType.length === 0) return;
|
|
206211
206211
|
await that.installSpecificPackages(workspacePath, type === "dev", packagesOfType);
|
|
206212
206212
|
});
|
|
206213
206213
|
}
|
|
206214
206214
|
async getDirectDependenciesToBump(_workspacePath, dependencyTree, fix) {
|
|
206215
|
-
return fix.filter((
|
|
206215
|
+
return fix.filter((f6) => dependencyTree.dependencies?.includes(f6.dependencyIdentifier));
|
|
206216
206216
|
}
|
|
206217
206217
|
};
|
|
206218
206218
|
|
|
@@ -206300,7 +206300,7 @@ var PnpmFixingManager = class extends NpmEcosystemFixingManager {
|
|
|
206300
206300
|
return lockFile;
|
|
206301
206301
|
}
|
|
206302
206302
|
async getDirectDependenciesToBump(workspacePath, dependencyTree, fix) {
|
|
206303
|
-
const directDepFixes = fix.filter((
|
|
206303
|
+
const directDepFixes = fix.filter((f6) => dependencyTree.dependencies?.includes(f6.dependencyIdentifier));
|
|
206304
206304
|
const lockFileYaml = await this.getLockFileYaml();
|
|
206305
206305
|
const wsImporters = lockFileYaml.importers[workspacePath];
|
|
206306
206306
|
const directDepsToBump = directDepFixes.filter((fix2) => {
|
|
@@ -206885,14 +206885,14 @@ var Cache = class _Cache {
|
|
|
206885
206885
|
}
|
|
206886
206886
|
// Converts key to lowercase before performing the set if absent
|
|
206887
206887
|
// Returns the associated value
|
|
206888
|
-
computeIfAbsent(key,
|
|
206888
|
+
computeIfAbsent(key, f6) {
|
|
206889
206889
|
const lowerKey = key.toLowerCase();
|
|
206890
|
-
this.cache[lowerKey] ??=
|
|
206890
|
+
this.cache[lowerKey] ??= f6();
|
|
206891
206891
|
return this.cache[lowerKey];
|
|
206892
206892
|
}
|
|
206893
|
-
compute(key,
|
|
206893
|
+
compute(key, f6) {
|
|
206894
206894
|
const lowerKey = key.toLowerCase();
|
|
206895
|
-
this.cache[lowerKey] ??=
|
|
206895
|
+
this.cache[lowerKey] ??= f6(this.cache[lowerKey]);
|
|
206896
206896
|
return this.cache[lowerKey];
|
|
206897
206897
|
}
|
|
206898
206898
|
putIfAbsent(key, value) {
|
|
@@ -207584,7 +207584,7 @@ var NuGetSocketUpgradeManager = class {
|
|
|
207584
207584
|
lockFileMatcher = (0, import_picomatch2.default)("packages.lock.json");
|
|
207585
207585
|
truthyValues = ["true", "yes", "on"];
|
|
207586
207586
|
async applySocketArtifactUpgrades(manifestFiles, upgrades, artifacts, rangeStyle) {
|
|
207587
|
-
if (manifestFiles.find((
|
|
207587
|
+
if (manifestFiles.find((f6) => this.lockFileMatcher(basename5(f6)))) {
|
|
207588
207588
|
throw Error(`Upgrading dependencies currently not supporte for NuGet projets with lockfiles`);
|
|
207589
207589
|
}
|
|
207590
207590
|
const caseInsensitiveManifestFileMap = new TransformMap((key) => key.toLowerCase());
|
|
@@ -207592,8 +207592,8 @@ var NuGetSocketUpgradeManager = class {
|
|
|
207592
207592
|
const fullPath = resolve18(this.rootDir, file);
|
|
207593
207593
|
caseInsensitiveManifestFileMap.set(fullPath, fullPath);
|
|
207594
207594
|
}
|
|
207595
|
-
const validateFile = (
|
|
207596
|
-
return caseInsensitiveManifestFileMap.get(
|
|
207595
|
+
const validateFile = (f6) => {
|
|
207596
|
+
return caseInsensitiveManifestFileMap.get(f6);
|
|
207597
207597
|
};
|
|
207598
207598
|
const preparePatchResults = await this.collectPreparePatches(manifestFiles, validateFile);
|
|
207599
207599
|
const preparePatchSuccesses = extractSuccessfulPatches(preparePatchResults);
|
|
@@ -209859,8 +209859,8 @@ function x(t4, ...o7) {
|
|
|
209859
209859
|
}
|
|
209860
209860
|
let a5 = [];
|
|
209861
209861
|
for (let i7 of n2) if (A(i7, a5, r3)) break;
|
|
209862
|
-
let { isSingle:
|
|
209863
|
-
n2 =
|
|
209862
|
+
let { isSingle: y10 } = r3.at(-1);
|
|
209863
|
+
n2 = y10 ? a5[0] : a5, p3 += r3.length;
|
|
209864
209864
|
}
|
|
209865
209865
|
return n2;
|
|
209866
209866
|
}
|
|
@@ -209868,8 +209868,8 @@ function A(t4, o7, n2) {
|
|
|
209868
209868
|
if (n2.length === 0) return o7.push(t4), false;
|
|
209869
209869
|
let u9 = t4, p3 = s4, e = false;
|
|
209870
209870
|
for (let [r3, a5] of n2.entries()) {
|
|
209871
|
-
let { index:
|
|
209872
|
-
if (i7.push(u9), p3 = a5(u9,
|
|
209871
|
+
let { index: y10, items: i7 } = a5;
|
|
209872
|
+
if (i7.push(u9), p3 = a5(u9, y10, i7), a5.index += 1, p3.hasNext) {
|
|
209873
209873
|
if (p3.hasMany ?? false) {
|
|
209874
209874
|
for (let l7 of p3.next) if (A(l7, o7, n2.slice(r3 + 1))) return true;
|
|
209875
209875
|
return e;
|
|
@@ -209957,9 +209957,9 @@ function m3(r3, n2) {
|
|
|
209957
209957
|
}
|
|
209958
209958
|
function u7(r3, n2, ...e) {
|
|
209959
209959
|
let o7 = typeof r3 == "function" ? r3 : r3[0], a5 = typeof r3 == "function" ? "asc" : r3[1], { [a5]: t4 } = T4, i7 = n2 === void 0 ? void 0 : u7(n2, ...e);
|
|
209960
|
-
return (
|
|
209961
|
-
let l7 = o7(
|
|
209962
|
-
return t4(l7, p3) ? 1 : t4(p3, l7) ? -1 : i7?.(
|
|
209960
|
+
return (y10, c4) => {
|
|
209961
|
+
let l7 = o7(y10), p3 = o7(c4);
|
|
209962
|
+
return t4(l7, p3) ? 1 : t4(p3, l7) ? -1 : i7?.(y10, c4) ?? 0;
|
|
209963
209963
|
};
|
|
209964
209964
|
}
|
|
209965
209965
|
function s5(r3) {
|
|
@@ -209980,14 +209980,29 @@ function c3(n2, r3) {
|
|
|
209980
209980
|
return o7;
|
|
209981
209981
|
}
|
|
209982
209982
|
|
|
209983
|
+
// ../../node_modules/.pnpm/remeda@2.14.0/node_modules/remeda/dist/chunk-RLZQTLGN.js
|
|
209984
|
+
function y8(...t4) {
|
|
209985
|
+
return u6(f5, t4);
|
|
209986
|
+
}
|
|
209987
|
+
function f5(t4, e) {
|
|
209988
|
+
if (!i6(e, 1)) return { ...t4 };
|
|
209989
|
+
if (!i6(e, 2)) {
|
|
209990
|
+
let { [e[0]]: r3, ...m4 } = t4;
|
|
209991
|
+
return m4;
|
|
209992
|
+
}
|
|
209993
|
+
let o7 = { ...t4 };
|
|
209994
|
+
for (let r3 of e) delete o7[r3];
|
|
209995
|
+
return o7;
|
|
209996
|
+
}
|
|
209997
|
+
|
|
209983
209998
|
// ../../node_modules/.pnpm/remeda@2.14.0/node_modules/remeda/dist/chunk-5KH5J3AC.js
|
|
209984
209999
|
function l6(...n2) {
|
|
209985
210000
|
return m3(u8, n2);
|
|
209986
210001
|
}
|
|
209987
|
-
function u8(n2,
|
|
210002
|
+
function u8(n2, y10) {
|
|
209988
210003
|
if (!i6(n2, 2)) return n2[0];
|
|
209989
210004
|
let [e] = n2, [, ...i7] = n2;
|
|
209990
|
-
for (let r3 of i7)
|
|
210005
|
+
for (let r3 of i7) y10(r3, e) < 0 && (e = r3);
|
|
209991
210006
|
return e;
|
|
209992
210007
|
}
|
|
209993
210008
|
|
|
@@ -210391,7 +210406,7 @@ ${vulnerabilityFixes.map((fix) => ` ${fix.dependencyName} (${fix.dependencyIdent
|
|
|
210391
210406
|
}
|
|
210392
210407
|
function computeInfoAboutOutdatedObjects(outdatedFixIds) {
|
|
210393
210408
|
return outdatedFixIds.map(([fix, fixes]) => `The original solution associated with fixId ${prettyStringFixDto(fix)} is outdated. Coana has found the updated solution:
|
|
210394
|
-
${fixes.fix.vulnerabilityFixes.map((
|
|
210409
|
+
${fixes.fix.vulnerabilityFixes.map((f6) => ` - ${f6.dependencyName} from v${f6.currentVersion} to v${f6.fixedVersion}`).join("\n")}`).join("\n\n");
|
|
210395
210410
|
}
|
|
210396
210411
|
async function verifyFixes(fixes, otherModulesCommunicator, rootPath) {
|
|
210397
210412
|
const pathsForEachFixIdData = fixes.map(({ vulnerabilityInstance: v }) => `${v.subprojectPath}/${v.workspacePath}-${v.ecosystem}`);
|
|
@@ -226964,7 +226979,7 @@ var FixesTask = class {
|
|
|
226964
226979
|
);
|
|
226965
226980
|
return {
|
|
226966
226981
|
potentialVersionsForFix,
|
|
226967
|
-
vulnerabilityFixes: vulnerabilityFixes.filter((
|
|
226982
|
+
vulnerabilityFixes: vulnerabilityFixes.filter((f6) => f6.currentVersion !== f6.fixedVersion)
|
|
226968
226983
|
};
|
|
226969
226984
|
}
|
|
226970
226985
|
async chooseFixesFromPotentialVersionsForFix(vulnChainDetails, potentialVersionsForFix) {
|
|
@@ -227551,7 +227566,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
227551
227566
|
}
|
|
227552
227567
|
|
|
227553
227568
|
// dist/version.js
|
|
227554
|
-
var version2 = "14.12.
|
|
227569
|
+
var version2 = "14.12.40";
|
|
227555
227570
|
|
|
227556
227571
|
// dist/cli-core.js
|
|
227557
227572
|
var { mapValues, omit, partition, pick } = import_lodash15.default;
|
|
@@ -228420,7 +228435,8 @@ async function computeFixesAndUpgradePurls(path2, options, logFile) {
|
|
|
228420
228435
|
}
|
|
228421
228436
|
const ghsaToVulnerableArtifactIdsToApply = options.applyFixesTo.includes("all") ? ghsaToVulnerableArtifactIds : Object.fromEntries(Object.entries(ghsaToVulnerableArtifactIds).filter(([ghsa]) => options.applyFixesTo.includes(ghsa)));
|
|
228422
228437
|
const computedFix = await useSocketComputeFixEndpoint(autofixRunId, artifacts, ghsaToVulnerableArtifactIdsToApply, {
|
|
228423
|
-
noMajorUpdates: options.disableMajorUpdates
|
|
228438
|
+
noMajorUpdates: options.disableMajorUpdates,
|
|
228439
|
+
minimumReleaseAgeInMinutes: options.minimumReleaseAgeInMinutes
|
|
228424
228440
|
});
|
|
228425
228441
|
if (computedFix.type !== "success") {
|
|
228426
228442
|
throw new Error(`No fix found for the given vulnerabilities`);
|
|
@@ -228612,7 +228628,7 @@ upgradePurls.name("upgrade-purls").argument("<path>", "File system path to the f
|
|
|
228612
228628
|
});
|
|
228613
228629
|
}).configureHelp({ sortOptions: true });
|
|
228614
228630
|
var computeFixesAndUpgradePurlsCmd = new Command();
|
|
228615
|
-
computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument("<path>", "File system path to the folder containing the project").option("-a, --apply-fixes-to <ghsas...>", 'GHSA IDs to compute fixes for. Use "all" to compute fixes for all vulnerabilities.', []).option("--dry-run", "Show what changes would be made without actually making them", false).option("-g, --glob <pattern>", "Glob pattern to filter workspaces by absolute file path").option("-d, --debug", "Enable debug logging", false).option("-s, --silent", "Silence all debug/warning output", false).option("--silent-spinner", "Silence spinner", "CI" in process.env || !process.stdin.isTTY).option("--range-style <style>", 'Range style to use for the output. Currently only "pin" is supported and it only works for npm.').option("--disable-major-updates", "Do not suggest major updates. If only major update are available, the fix will not be applied.", false).option("-o, --output-file <file>", "Writes output to a JSON file").addOption(new Option("--run-without-docker", "Run package managers without using docker").default(process.env.RUN_WITHOUT_DOCKER === "true").hideHelp()).addOption(new Option("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket. If provided, Socket will be used for computing dependency trees.").hideHelp()).version(version2).action(async (path2, options) => {
|
|
228631
|
+
computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument("<path>", "File system path to the folder containing the project").option("-a, --apply-fixes-to <ghsas...>", 'GHSA IDs to compute fixes for. Use "all" to compute fixes for all vulnerabilities.', []).option("--dry-run", "Show what changes would be made without actually making them", false).option("-g, --glob <pattern>", "Glob pattern to filter workspaces by absolute file path").option("-d, --debug", "Enable debug logging", false).option("-s, --silent", "Silence all debug/warning output", false).option("--silent-spinner", "Silence spinner", "CI" in process.env || !process.stdin.isTTY).option("--range-style <style>", 'Range style to use for the output. Currently only "pin" is supported and it only works for npm.').option("--disable-major-updates", "Do not suggest major updates. If only major update are available, the fix will not be applied.", false).option("-o, --output-file <file>", "Writes output to a JSON file").option("--minimum-release-age <minimumReleaseAge>", "Do not allow upgrades to package versions that are newer than minimumReleaseAge. Format is 2m, 5h, 3d or 1w").addOption(new Option("--run-without-docker", "Run package managers without using docker").default(process.env.RUN_WITHOUT_DOCKER === "true").hideHelp()).addOption(new Option("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket. If provided, Socket will be used for computing dependency trees.").hideHelp()).version(version2).action(async (path2, options) => {
|
|
228616
228632
|
process.env.DOCKER_IMAGE_TAG ??= version2;
|
|
228617
228633
|
if (options.outputFile && !options.outputFile.endsWith(".json")) {
|
|
228618
228634
|
throw new Error("Output file must have a .json extension");
|
|
@@ -228626,7 +228642,11 @@ computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument(
|
|
|
228626
228642
|
await withTmpDirectory("compute-fixes-and-upgrade-purls", async (tmpDir) => {
|
|
228627
228643
|
const logFile = join28(tmpDir, "compute-fixes-and-upgrade-purls.log");
|
|
228628
228644
|
logger.initWinstonLogger(options.debug, logFile);
|
|
228629
|
-
const
|
|
228645
|
+
const optionsToUse = {
|
|
228646
|
+
...y8(options, ["minimumReleaseAge"]),
|
|
228647
|
+
minimumReleaseAgeInMinutes: options.minimumReleaseAge ? parseMinimumReleaseAgeToMinutes(options.minimumReleaseAge) : void 0
|
|
228648
|
+
};
|
|
228649
|
+
const output = await computeFixesAndUpgradePurls(path2, optionsToUse, logFile);
|
|
228630
228650
|
if (options.outputFile) {
|
|
228631
228651
|
const outputFile = resolve31(options.outputFile);
|
|
228632
228652
|
await mkdir3(dirname13(outputFile), { recursive: true });
|
|
@@ -228673,6 +228693,23 @@ var defaultCliOptions = {
|
|
|
228673
228693
|
disableAnalyticsSharing: false,
|
|
228674
228694
|
skipCacheUsage: false
|
|
228675
228695
|
};
|
|
228696
|
+
function parseMinimumReleaseAgeToMinutes(minimumReleaseAge) {
|
|
228697
|
+
const match2 = minimumReleaseAge.match(/^(\d+)([mhdw])$/);
|
|
228698
|
+
if (!match2)
|
|
228699
|
+
throw new Error("Invalid minimum release age. Format is 2m, 5h, 3d or 1w");
|
|
228700
|
+
const value = parseInt(match2[1]);
|
|
228701
|
+
const unit = match2[2];
|
|
228702
|
+
switch (unit) {
|
|
228703
|
+
case "m":
|
|
228704
|
+
return value;
|
|
228705
|
+
case "h":
|
|
228706
|
+
return value * 60;
|
|
228707
|
+
case "d":
|
|
228708
|
+
return value * 60 * 24;
|
|
228709
|
+
case "w":
|
|
228710
|
+
return value * 60 * 24 * 7;
|
|
228711
|
+
}
|
|
228712
|
+
}
|
|
228676
228713
|
export {
|
|
228677
228714
|
defaultCliOptions
|
|
228678
228715
|
};
|