@modern-js/create 1.21.5 → 2.0.0-beta.1
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/dist/index.js +729 -736
- package/package.json +10 -35
package/dist/index.js
CHANGED
|
@@ -25,6 +25,8 @@ __export(stdin_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(stdin_exports);
|
|
26
26
|
var import_path = __toESM(require("path"));
|
|
27
27
|
var import_path2 = __toESM(require("path"));
|
|
28
|
+
var import_os = __toESM(require("os"));
|
|
29
|
+
var import_path3 = __toESM(require("path"));
|
|
28
30
|
var __create2 = Object.create;
|
|
29
31
|
var __defProp2 = Object.defineProperty;
|
|
30
32
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -18882,11 +18884,11 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
18882
18884
|
return isFunction(object[key]);
|
|
18883
18885
|
});
|
|
18884
18886
|
}
|
|
18885
|
-
function baseGet(object,
|
|
18886
|
-
|
|
18887
|
-
var index = 0, length =
|
|
18887
|
+
function baseGet(object, path4) {
|
|
18888
|
+
path4 = castPath(path4, object);
|
|
18889
|
+
var index = 0, length = path4.length;
|
|
18888
18890
|
while (object != null && index < length) {
|
|
18889
|
-
object = object[toKey(
|
|
18891
|
+
object = object[toKey(path4[index++])];
|
|
18890
18892
|
}
|
|
18891
18893
|
return index && index == length ? object : undefined2;
|
|
18892
18894
|
}
|
|
@@ -18950,10 +18952,10 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
18950
18952
|
});
|
|
18951
18953
|
return accumulator;
|
|
18952
18954
|
}
|
|
18953
|
-
function baseInvoke(object,
|
|
18954
|
-
|
|
18955
|
-
object = parent(object,
|
|
18956
|
-
var func = object == null ? object : object[toKey(last(
|
|
18955
|
+
function baseInvoke(object, path4, args) {
|
|
18956
|
+
path4 = castPath(path4, object);
|
|
18957
|
+
object = parent(object, path4);
|
|
18958
|
+
var func = object == null ? object : object[toKey(last(path4))];
|
|
18957
18959
|
return func == null ? undefined2 : apply(func, object, args);
|
|
18958
18960
|
}
|
|
18959
18961
|
function baseIsArguments(value) {
|
|
@@ -19109,13 +19111,13 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
19109
19111
|
return object === source || baseIsMatch(object, source, matchData);
|
|
19110
19112
|
};
|
|
19111
19113
|
}
|
|
19112
|
-
function baseMatchesProperty(
|
|
19113
|
-
if (isKey(
|
|
19114
|
-
return matchesStrictComparable(toKey(
|
|
19114
|
+
function baseMatchesProperty(path4, srcValue) {
|
|
19115
|
+
if (isKey(path4) && isStrictComparable(srcValue)) {
|
|
19116
|
+
return matchesStrictComparable(toKey(path4), srcValue);
|
|
19115
19117
|
}
|
|
19116
19118
|
return function(object) {
|
|
19117
|
-
var objValue = get2(object,
|
|
19118
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn(object,
|
|
19119
|
+
var objValue = get2(object, path4);
|
|
19120
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn(object, path4) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
19119
19121
|
};
|
|
19120
19122
|
}
|
|
19121
19123
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -19212,23 +19214,23 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
19212
19214
|
});
|
|
19213
19215
|
}
|
|
19214
19216
|
function basePick(object, paths) {
|
|
19215
|
-
return basePickBy(object, paths, function(value,
|
|
19216
|
-
return hasIn(object,
|
|
19217
|
+
return basePickBy(object, paths, function(value, path4) {
|
|
19218
|
+
return hasIn(object, path4);
|
|
19217
19219
|
});
|
|
19218
19220
|
}
|
|
19219
19221
|
function basePickBy(object, paths, predicate) {
|
|
19220
19222
|
var index = -1, length = paths.length, result2 = {};
|
|
19221
19223
|
while (++index < length) {
|
|
19222
|
-
var
|
|
19223
|
-
if (predicate(value,
|
|
19224
|
-
baseSet(result2, castPath(
|
|
19224
|
+
var path4 = paths[index], value = baseGet(object, path4);
|
|
19225
|
+
if (predicate(value, path4)) {
|
|
19226
|
+
baseSet(result2, castPath(path4, object), value);
|
|
19225
19227
|
}
|
|
19226
19228
|
}
|
|
19227
19229
|
return result2;
|
|
19228
19230
|
}
|
|
19229
|
-
function basePropertyDeep(
|
|
19231
|
+
function basePropertyDeep(path4) {
|
|
19230
19232
|
return function(object) {
|
|
19231
|
-
return baseGet(object,
|
|
19233
|
+
return baseGet(object, path4);
|
|
19232
19234
|
};
|
|
19233
19235
|
}
|
|
19234
19236
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
@@ -19302,14 +19304,14 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
19302
19304
|
var array = values(collection);
|
|
19303
19305
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
19304
19306
|
}
|
|
19305
|
-
function baseSet(object,
|
|
19307
|
+
function baseSet(object, path4, value, customizer) {
|
|
19306
19308
|
if (!isObject2(object)) {
|
|
19307
19309
|
return object;
|
|
19308
19310
|
}
|
|
19309
|
-
|
|
19310
|
-
var index = -1, length =
|
|
19311
|
+
path4 = castPath(path4, object);
|
|
19312
|
+
var index = -1, length = path4.length, lastIndex = length - 1, nested = object;
|
|
19311
19313
|
while (nested != null && ++index < length) {
|
|
19312
|
-
var key = toKey(
|
|
19314
|
+
var key = toKey(path4[index]), newValue = value;
|
|
19313
19315
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
19314
19316
|
return object;
|
|
19315
19317
|
}
|
|
@@ -19317,7 +19319,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
19317
19319
|
var objValue = nested[key];
|
|
19318
19320
|
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
19319
19321
|
if (newValue === undefined2) {
|
|
19320
|
-
newValue = isObject2(objValue) ? objValue : isIndex(
|
|
19322
|
+
newValue = isObject2(objValue) ? objValue : isIndex(path4[index + 1]) ? [] : {};
|
|
19321
19323
|
}
|
|
19322
19324
|
}
|
|
19323
19325
|
assignValue(nested, key, newValue);
|
|
@@ -19483,13 +19485,13 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
19483
19485
|
}
|
|
19484
19486
|
return result2;
|
|
19485
19487
|
}
|
|
19486
|
-
function baseUnset(object,
|
|
19487
|
-
|
|
19488
|
-
object = parent(object,
|
|
19489
|
-
return object == null || delete object[toKey(last(
|
|
19488
|
+
function baseUnset(object, path4) {
|
|
19489
|
+
path4 = castPath(path4, object);
|
|
19490
|
+
object = parent(object, path4);
|
|
19491
|
+
return object == null || delete object[toKey(last(path4))];
|
|
19490
19492
|
}
|
|
19491
|
-
function baseUpdate(object,
|
|
19492
|
-
return baseSet(object,
|
|
19493
|
+
function baseUpdate(object, path4, updater, customizer) {
|
|
19494
|
+
return baseSet(object, path4, updater(baseGet(object, path4)), customizer);
|
|
19493
19495
|
}
|
|
19494
19496
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
19495
19497
|
var length = array.length, index = fromRight ? length : -1;
|
|
@@ -20350,11 +20352,11 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
20350
20352
|
var match = source.match(reWrapDetails);
|
|
20351
20353
|
return match ? match[1].split(reSplitDetails) : [];
|
|
20352
20354
|
}
|
|
20353
|
-
function hasPath(object,
|
|
20354
|
-
|
|
20355
|
-
var index = -1, length =
|
|
20355
|
+
function hasPath(object, path4, hasFunc) {
|
|
20356
|
+
path4 = castPath(path4, object);
|
|
20357
|
+
var index = -1, length = path4.length, result2 = false;
|
|
20356
20358
|
while (++index < length) {
|
|
20357
|
-
var key = toKey(
|
|
20359
|
+
var key = toKey(path4[index]);
|
|
20358
20360
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
20359
20361
|
break;
|
|
20360
20362
|
}
|
|
@@ -20556,8 +20558,8 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
20556
20558
|
return apply(func, this, otherArgs);
|
|
20557
20559
|
};
|
|
20558
20560
|
}
|
|
20559
|
-
function parent(object,
|
|
20560
|
-
return
|
|
20561
|
+
function parent(object, path4) {
|
|
20562
|
+
return path4.length < 2 ? object : baseGet(object, baseSlice(path4, 0, -1));
|
|
20561
20563
|
}
|
|
20562
20564
|
function reorder(array, indexes) {
|
|
20563
20565
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
@@ -21192,10 +21194,10 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
21192
21194
|
}
|
|
21193
21195
|
return isString2(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
21194
21196
|
}
|
|
21195
|
-
var invokeMap = baseRest(function(collection,
|
|
21196
|
-
var index = -1, isFunc = typeof
|
|
21197
|
+
var invokeMap = baseRest(function(collection, path4, args) {
|
|
21198
|
+
var index = -1, isFunc = typeof path4 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
21197
21199
|
baseEach(collection, function(value) {
|
|
21198
|
-
result2[++index] = isFunc ? apply(
|
|
21200
|
+
result2[++index] = isFunc ? apply(path4, value, args) : baseInvoke(value, path4, args);
|
|
21199
21201
|
});
|
|
21200
21202
|
return result2;
|
|
21201
21203
|
});
|
|
@@ -21847,15 +21849,15 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
21847
21849
|
function functionsIn(object) {
|
|
21848
21850
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
21849
21851
|
}
|
|
21850
|
-
function get2(object,
|
|
21851
|
-
var result2 = object == null ? undefined2 : baseGet(object,
|
|
21852
|
+
function get2(object, path4, defaultValue) {
|
|
21853
|
+
var result2 = object == null ? undefined2 : baseGet(object, path4);
|
|
21852
21854
|
return result2 === undefined2 ? defaultValue : result2;
|
|
21853
21855
|
}
|
|
21854
|
-
function has(object,
|
|
21855
|
-
return object != null && hasPath(object,
|
|
21856
|
+
function has(object, path4) {
|
|
21857
|
+
return object != null && hasPath(object, path4, baseHas);
|
|
21856
21858
|
}
|
|
21857
|
-
function hasIn(object,
|
|
21858
|
-
return object != null && hasPath(object,
|
|
21859
|
+
function hasIn(object, path4) {
|
|
21860
|
+
return object != null && hasPath(object, path4, baseHasIn);
|
|
21859
21861
|
}
|
|
21860
21862
|
var invert = createInverter(function(result2, value, key) {
|
|
21861
21863
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -21908,10 +21910,10 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
21908
21910
|
return result2;
|
|
21909
21911
|
}
|
|
21910
21912
|
var isDeep = false;
|
|
21911
|
-
paths = arrayMap(paths, function(
|
|
21912
|
-
|
|
21913
|
-
isDeep || (isDeep =
|
|
21914
|
-
return
|
|
21913
|
+
paths = arrayMap(paths, function(path4) {
|
|
21914
|
+
path4 = castPath(path4, object);
|
|
21915
|
+
isDeep || (isDeep = path4.length > 1);
|
|
21916
|
+
return path4;
|
|
21915
21917
|
});
|
|
21916
21918
|
copyObject(object, getAllKeysIn(object), result2);
|
|
21917
21919
|
if (isDeep) {
|
|
@@ -21937,19 +21939,19 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
21937
21939
|
return [prop];
|
|
21938
21940
|
});
|
|
21939
21941
|
predicate = getIteratee(predicate);
|
|
21940
|
-
return basePickBy(object, props, function(value,
|
|
21941
|
-
return predicate(value,
|
|
21942
|
+
return basePickBy(object, props, function(value, path4) {
|
|
21943
|
+
return predicate(value, path4[0]);
|
|
21942
21944
|
});
|
|
21943
21945
|
}
|
|
21944
|
-
function result(object,
|
|
21945
|
-
|
|
21946
|
-
var index = -1, length =
|
|
21946
|
+
function result(object, path4, defaultValue) {
|
|
21947
|
+
path4 = castPath(path4, object);
|
|
21948
|
+
var index = -1, length = path4.length;
|
|
21947
21949
|
if (!length) {
|
|
21948
21950
|
length = 1;
|
|
21949
21951
|
object = undefined2;
|
|
21950
21952
|
}
|
|
21951
21953
|
while (++index < length) {
|
|
21952
|
-
var value = object == null ? undefined2 : object[toKey(
|
|
21954
|
+
var value = object == null ? undefined2 : object[toKey(path4[index])];
|
|
21953
21955
|
if (value === undefined2) {
|
|
21954
21956
|
index = length;
|
|
21955
21957
|
value = defaultValue;
|
|
@@ -21958,12 +21960,12 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
21958
21960
|
}
|
|
21959
21961
|
return object;
|
|
21960
21962
|
}
|
|
21961
|
-
function set(object,
|
|
21962
|
-
return object == null ? object : baseSet(object,
|
|
21963
|
+
function set(object, path4, value) {
|
|
21964
|
+
return object == null ? object : baseSet(object, path4, value);
|
|
21963
21965
|
}
|
|
21964
|
-
function setWith(object,
|
|
21966
|
+
function setWith(object, path4, value, customizer) {
|
|
21965
21967
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
21966
|
-
return object == null ? object : baseSet(object,
|
|
21968
|
+
return object == null ? object : baseSet(object, path4, value, customizer);
|
|
21967
21969
|
}
|
|
21968
21970
|
var toPairs = createToPairs(keys);
|
|
21969
21971
|
var toPairsIn = createToPairs(keysIn);
|
|
@@ -21985,15 +21987,15 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
21985
21987
|
});
|
|
21986
21988
|
return accumulator;
|
|
21987
21989
|
}
|
|
21988
|
-
function unset(object,
|
|
21989
|
-
return object == null ? true : baseUnset(object,
|
|
21990
|
+
function unset(object, path4) {
|
|
21991
|
+
return object == null ? true : baseUnset(object, path4);
|
|
21990
21992
|
}
|
|
21991
|
-
function update(object,
|
|
21992
|
-
return object == null ? object : baseUpdate(object,
|
|
21993
|
+
function update(object, path4, updater) {
|
|
21994
|
+
return object == null ? object : baseUpdate(object, path4, castFunction(updater));
|
|
21993
21995
|
}
|
|
21994
|
-
function updateWith(object,
|
|
21996
|
+
function updateWith(object, path4, updater, customizer) {
|
|
21995
21997
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
21996
|
-
return object == null ? object : baseUpdate(object,
|
|
21998
|
+
return object == null ? object : baseUpdate(object, path4, castFunction(updater), customizer);
|
|
21997
21999
|
}
|
|
21998
22000
|
function values(object) {
|
|
21999
22001
|
return object == null ? [] : baseValues(object, keys(object));
|
|
@@ -22371,17 +22373,17 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
22371
22373
|
function matches(source) {
|
|
22372
22374
|
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
|
|
22373
22375
|
}
|
|
22374
|
-
function matchesProperty(
|
|
22375
|
-
return baseMatchesProperty(
|
|
22376
|
+
function matchesProperty(path4, srcValue) {
|
|
22377
|
+
return baseMatchesProperty(path4, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
22376
22378
|
}
|
|
22377
|
-
var method = baseRest(function(
|
|
22379
|
+
var method = baseRest(function(path4, args) {
|
|
22378
22380
|
return function(object) {
|
|
22379
|
-
return baseInvoke(object,
|
|
22381
|
+
return baseInvoke(object, path4, args);
|
|
22380
22382
|
};
|
|
22381
22383
|
});
|
|
22382
22384
|
var methodOf = baseRest(function(object, args) {
|
|
22383
|
-
return function(
|
|
22384
|
-
return baseInvoke(object,
|
|
22385
|
+
return function(path4) {
|
|
22386
|
+
return baseInvoke(object, path4, args);
|
|
22385
22387
|
};
|
|
22386
22388
|
});
|
|
22387
22389
|
function mixin(object, source, options3) {
|
|
@@ -22428,12 +22430,12 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
22428
22430
|
var over = createOver(arrayMap);
|
|
22429
22431
|
var overEvery = createOver(arrayEvery);
|
|
22430
22432
|
var overSome = createOver(arraySome);
|
|
22431
|
-
function property(
|
|
22432
|
-
return isKey(
|
|
22433
|
+
function property(path4) {
|
|
22434
|
+
return isKey(path4) ? baseProperty(toKey(path4)) : basePropertyDeep(path4);
|
|
22433
22435
|
}
|
|
22434
22436
|
function propertyOf(object) {
|
|
22435
|
-
return function(
|
|
22436
|
-
return object == null ? undefined2 : baseGet(object,
|
|
22437
|
+
return function(path4) {
|
|
22438
|
+
return object == null ? undefined2 : baseGet(object, path4);
|
|
22437
22439
|
};
|
|
22438
22440
|
}
|
|
22439
22441
|
var range = createRange();
|
|
@@ -22886,12 +22888,12 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
22886
22888
|
LazyWrapper.prototype.findLast = function(predicate) {
|
|
22887
22889
|
return this.reverse().find(predicate);
|
|
22888
22890
|
};
|
|
22889
|
-
LazyWrapper.prototype.invokeMap = baseRest(function(
|
|
22890
|
-
if (typeof
|
|
22891
|
+
LazyWrapper.prototype.invokeMap = baseRest(function(path4, args) {
|
|
22892
|
+
if (typeof path4 == "function") {
|
|
22891
22893
|
return new LazyWrapper(this);
|
|
22892
22894
|
}
|
|
22893
22895
|
return this.map(function(value) {
|
|
22894
|
-
return baseInvoke(value,
|
|
22896
|
+
return baseInvoke(value, path4, args);
|
|
22895
22897
|
});
|
|
22896
22898
|
});
|
|
22897
22899
|
LazyWrapper.prototype.reject = function(predicate) {
|
|
@@ -30608,13 +30610,13 @@ var require_browsers2 = __commonJSMin((exports, module2) => {
|
|
|
30608
30610
|
module2.exports.browsers = require_browsers();
|
|
30609
30611
|
});
|
|
30610
30612
|
var require_browserVersions = __commonJSMin((exports, module2) => {
|
|
30611
|
-
module2.exports = { "0": "
|
|
30613
|
+
module2.exports = { "0": "27", "1": "28", "2": "29", "3": "30", "4": "31", "5": "32", "6": "33", "7": "34", "8": "35", "9": "36", A: "10", B: "11", C: "12", D: "7", E: "8", F: "9", G: "15", H: "107", I: "4", J: "6", K: "13", L: "14", M: "16", N: "17", O: "18", P: "79", Q: "80", R: "81", S: "83", T: "84", U: "85", V: "86", W: "87", X: "88", Y: "89", Z: "90", a: "91", b: "92", c: "106", d: "72", e: "93", f: "94", g: "95", h: "96", i: "97", j: "98", k: "99", l: "100", m: "101", n: "102", o: "103", p: "104", q: "105", r: "5", s: "19", t: "20", u: "21", v: "22", w: "23", x: "24", y: "25", z: "26", AB: "37", BB: "38", CB: "39", DB: "40", EB: "41", FB: "42", GB: "43", HB: "44", IB: "45", JB: "46", KB: "47", LB: "48", MB: "49", NB: "50", OB: "51", PB: "52", QB: "53", RB: "54", SB: "55", TB: "56", UB: "57", VB: "58", WB: "60", XB: "62", YB: "63", ZB: "64", aB: "65", bB: "66", cB: "67", dB: "68", eB: "69", fB: "70", gB: "71", hB: "73", iB: "74", jB: "75", kB: "76", lB: "77", mB: "78", nB: "11.1", oB: "12.1", pB: "16.0", qB: "3", rB: "59", sB: "61", tB: "82", uB: "108", vB: "109", wB: "3.2", xB: "10.1", yB: "13.1", zB: "15.2-15.3", "0B": "15.4", "1B": "15.5", "2B": "15.6", "3B": "16.1", "4B": "11.5", "5B": "4.2-4.3", "6B": "5.5", "7B": "2", "8B": "3.5", "9B": "3.6", AC: "110", BC: "3.1", CC: "5.1", DC: "6.1", EC: "7.1", FC: "9.1", GC: "14.1", HC: "15.1", IC: "16.2", JC: "TP", KC: "9.5-9.6", LC: "10.0-10.1", MC: "10.5", NC: "10.6", OC: "11.6", PC: "4.0-4.1", QC: "5.0-5.1", RC: "6.0-6.1", SC: "7.0-7.1", TC: "8.1-8.4", UC: "9.0-9.2", VC: "9.3", WC: "10.0-10.2", XC: "10.3", YC: "11.0-11.2", ZC: "11.3-11.4", aC: "12.0-12.1", bC: "12.2-12.5", cC: "13.0-13.1", dC: "13.2", eC: "13.3", fC: "13.4-13.7", gC: "14.0-14.4", hC: "14.5-14.8", iC: "15.0-15.1", jC: "all", kC: "2.1", lC: "2.2", mC: "2.3", nC: "4.1", oC: "4.4", pC: "4.4.3-4.4.4", qC: "13.4", rC: "5.0-5.4", sC: "6.2-6.4", tC: "7.2-7.4", uC: "8.2", vC: "9.2", wC: "11.1-11.2", xC: "12.0", yC: "13.0", zC: "14.0", "0C": "15.0", "1C": "17.0", "2C": "18.0", "3C": "19.0", "4C": "13.18", "5C": "2.5" };
|
|
30612
30614
|
});
|
|
30613
30615
|
var require_browserVersions2 = __commonJSMin((exports, module2) => {
|
|
30614
30616
|
module2.exports.browserVersions = require_browserVersions();
|
|
30615
30617
|
});
|
|
30616
30618
|
var require_agents = __commonJSMin((exports, module2) => {
|
|
30617
|
-
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.0166941, F: 0.038953, A: 556471e-8, B: 0.8514, xB: 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "xB", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { xB: 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 7734e-6, K: 4267e-6, L: 4268e-6, G: 0.058005, M: 3867e-6, N: 7734e-6, O: 0.023202, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 7734e-6, U: 7734e-6, V: 3867e-6, W: 0.011601, Z: 4318e-6, a: 7734e-6, b: 4118e-6, c: 3939e-6, d: 7734e-6, e: 4118e-6, f: 3939e-6, g: 7734e-6, h: 0.011601, i: 0.015468, j: 0.015468, k: 0.054138, l: 0.212685, H: 3.52284, X: 0, m: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "H", "X", "m", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, Z: 161136e4, a: 1614816e3, b: 1618358400, c: 1622073600, d: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, H: 1651190400, X: 1653955200, m: 1655942400 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 8928e-6, "1": 4471e-6, "2": 9284e-6, "3": 4707e-6, "4": 9076e-6, "5": 3867e-6, "6": 4783e-6, "7": 4271e-6, "8": 4783e-6, "9": 487e-5, yB: 4118e-6, mB: 4271e-6, I: 0.019335, n: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7734e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, o: 4443e-6, p: 4283e-6, q: 8322e-6, r: 0.013698, s: 4161e-6, t: 8786e-6, u: 4118e-6, v: 4317e-6, w: 4393e-6, x: 4418e-6, y: 8834e-6, z: 8322e-6, AB: 5029e-6, BB: 47e-4, CB: 0.023202, DB: 7734e-6, EB: 3867e-6, FB: 4525e-6, GB: 4293e-6, HB: 3867e-6, IB: 4538e-6, JB: 8282e-6, KB: 0.011601, LB: 0.069606, MB: 0.011601, NB: 7734e-6, OB: 0.015468, PB: 0.011601, QB: 0.011601, RB: 3939e-6, nB: 7734e-6, SB: 3867e-6, oB: 4356e-6, TB: 4425e-6, UB: 8322e-6, Y: 415e-5, VB: 4267e-6, WB: 3867e-6, XB: 4267e-6, YB: 7734e-6, ZB: 415e-5, aB: 4293e-6, bB: 4425e-6, cB: 3867e-6, dB: 415e-5, eB: 415e-5, fB: 4318e-6, gB: 4356e-6, hB: 3867e-6, iB: 0.042537, P: 7734e-6, Q: 7734e-6, R: 0.011601, pB: 7734e-6, S: 3867e-6, T: 3867e-6, U: 4268e-6, V: 3867e-6, W: 0.011601, Z: 0.011601, a: 7734e-6, b: 7734e-6, c: 0.096675, d: 3867e-6, e: 7734e-6, f: 0.03867, g: 0.011601, h: 0.015468, i: 0.015468, j: 0.034803, k: 0.421503, l: 1.84456, H: 0.023202, X: 0, m: 0, zB: 8786e-6, "0B": 487e-5 }, B: "moz", C: ["yB", "mB", "zB", "0B", "I", "n", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "nB", "SB", "oB", "TB", "UB", "Y", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "hB", "iB", "P", "Q", "R", "pB", "S", "T", "U", "V", "W", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "H", "X", "m", ""], E: "Firefox", F: { "0": 1405987200, "1": 1409616e3, "2": 1413244800, "3": 1417392e3, "4": 1421107200, "5": 1424736e3, "6": 1428278400, "7": 1431475200, "8": 1435881600, "9": 1439251200, yB: 1161648e3, mB: 1213660800, zB: 124632e4, "0B": 1264032e3, I: 1300752e3, n: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, o: 1357603200, p: 1361232e3, q: 1364860800, r: 1368489600, s: 1372118400, t: 1375747200, u: 1379376e3, v: 1386633600, w: 1391472e3, x: 1395100800, y: 1398729600, z: 1402358400, AB: 144288e4, BB: 1446508800, CB: 1450137600, DB: 1453852800, EB: 1457395200, FB: 1461628800, GB: 1465257600, HB: 1470096e3, IB: 1474329600, JB: 1479168e3, KB: 1485216e3, LB: 1488844800, MB: 149256e4, NB: 1497312e3, OB: 1502150400, PB: 1506556800, QB: 1510617600, RB: 1516665600, nB: 1520985600, SB: 1525824e3, oB: 1529971200, TB: 1536105600, UB: 1540252800, Y: 1544486400, VB: 154872e4, WB: 1552953600, XB: 1558396800, YB: 1562630400, ZB: 1567468800, aB: 1571788800, bB: 1575331200, cB: 1578355200, dB: 1581379200, eB: 1583798400, fB: 1586304e3, gB: 1588636800, hB: 1591056e3, iB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, pB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, Z: 1618790400, a: 1622505600, b: 1626134400, c: 1628553600, d: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, H: 1653955200, X: null, m: null } }, D: { A: { "0": 8596e-6, "1": 4566e-6, "2": 4118e-6, "3": 7734e-6, "4": 7878e-6, "5": 4335e-6, "6": 4464e-6, "7": 0.019335, "8": 3867e-6, "9": 0.019335, I: 4706e-6, n: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, o: 8322e-6, p: 4393e-6, q: 4317e-6, r: 7734e-6, s: 8786e-6, t: 3939e-6, u: 4461e-6, v: 4141e-6, w: 4326e-6, x: 47e-4, y: 4538e-6, z: 8322e-6, AB: 7734e-6, BB: 7734e-6, CB: 0.011601, DB: 3867e-6, EB: 3867e-6, FB: 3867e-6, GB: 0.015468, HB: 0.023202, IB: 0.061872, JB: 3867e-6, KB: 7734e-6, LB: 7734e-6, MB: 0.015468, NB: 3867e-6, OB: 7734e-6, PB: 0.027069, QB: 7734e-6, RB: 0.011601, nB: 7734e-6, SB: 0.015468, oB: 0.015468, TB: 0.015468, UB: 0.015468, Y: 7734e-6, VB: 0.015468, WB: 0.027069, XB: 0.023202, YB: 7734e-6, ZB: 0.046404, aB: 0.019335, bB: 0.011601, cB: 0.019335, dB: 7734e-6, eB: 0.023202, fB: 0.058005, gB: 0.073473, hB: 0.011601, iB: 0.030936, P: 0.204951, Q: 0.042537, R: 0.03867, S: 0.131478, T: 0.081207, U: 0.088941, V: 0.092808, W: 0.104409, Z: 0.019335, a: 0.058005, b: 0.034803, c: 0.081207, d: 0.065739, e: 0.054138, f: 0.061872, g: 0.042537, h: 0.143079, i: 0.143079, j: 0.204951, k: 0.351897, l: 4.17636, H: 15.4487, X: 1.5468, m: 0.015468, "1B": 7734e-6, "2B": 0, "3B": 0 }, B: "webkit", C: ["", "", "", "I", "n", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "nB", "SB", "oB", "TB", "UB", "Y", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "hB", "iB", "P", "Q", "R", "S", "T", "U", "V", "W", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "H", "X", "m", "1B", "2B", "3B"], E: "Chrome", F: { "0": 1384214400, "1": 1389657600, "2": 1392940800, "3": 1397001600, "4": 1400544e3, "5": 1405468800, "6": 1409011200, "7": 141264e4, "8": 1416268800, "9": 1421798400, I: 1264377600, n: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, o: 1332892800, p: 133704e4, q: 1340668800, r: 1343692800, s: 1348531200, t: 1352246400, u: 1357862400, v: 1361404800, w: 1364428800, x: 1369094400, y: 1374105600, z: 1376956800, AB: 1425513600, BB: 1429401600, CB: 143208e4, DB: 1437523200, EB: 1441152e3, FB: 1444780800, GB: 1449014400, HB: 1453248e3, IB: 1456963200, JB: 1460592e3, KB: 1464134400, LB: 1469059200, MB: 1472601600, NB: 1476230400, OB: 1480550400, PB: 1485302400, QB: 1489017600, RB: 149256e4, nB: 1496707200, SB: 1500940800, oB: 1504569600, TB: 1508198400, UB: 1512518400, Y: 1516752e3, VB: 1520294400, WB: 1523923200, XB: 1527552e3, YB: 1532390400, ZB: 1536019200, aB: 1539648e3, bB: 1543968e3, cB: 154872e4, dB: 1552348800, eB: 1555977600, fB: 1559606400, gB: 1564444800, hB: 1568073600, iB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, Z: 1611014400, a: 1614556800, b: 1618272e3, c: 1621987200, d: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, H: 1650931200, X: 1653350400, m: 1655769600, "1B": null, "2B": null, "3B": null } }, E: { A: { I: 0, n: 8322e-6, J: 4656e-6, D: 4465e-6, E: 4356e-6, F: 4891e-6, A: 4425e-6, B: 4318e-6, C: 3867e-6, K: 0.034803, L: 0.158547, G: 0.058005, "4B": 0, qB: 8692e-6, "5B": 7734e-6, "6B": 456e-5, "7B": 4283e-6, "8B": 0.015468, rB: 7734e-6, jB: 0.023202, kB: 0.046404, "9B": 0.266823, AC: 0.491109, BC: 0.108276, sB: 0.108276, tB: 1.67054, uB: 0.189483, lB: 0, CC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "4B", "qB", "I", "n", "5B", "J", "6B", "D", "7B", "E", "F", "8B", "A", "rB", "B", "jB", "C", "kB", "K", "9B", "L", "AC", "G", "BC", "sB", "tB", "uB", "lB", "CC", ""], E: "Safari", F: { "4B": 1205798400, qB: 1226534400, I: 1244419200, n: 1275868800, "5B": 131112e4, J: 1343174400, "6B": 13824e5, D: 13824e5, "7B": 1410998400, E: 1413417600, F: 1443657600, "8B": 1458518400, A: 1474329600, rB: 1490572800, B: 1505779200, jB: 1522281600, C: 1537142400, kB: 1553472e3, K: 1568851200, "9B": 1585008e3, L: 1600214400, AC: 1619395200, G: 1632096e3, BC: 1635292800, sB: 1639353600, tB: 1647216e3, uB: 1652745600, lB: null, CC: null } }, F: { A: { "0": 3867e-6, "1": 5152e-6, "2": 5014e-6, "3": 9758e-6, "4": 4879e-6, "5": 3867e-6, "6": 4283e-6, "7": 4367e-6, "8": 4534e-6, "9": 7734e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, o: 6015e-6, p: 4879e-6, q: 6597e-6, r: 6597e-6, s: 0.013434, t: 6702e-6, u: 6015e-6, v: 5595e-6, w: 4393e-6, x: 7734e-6, y: 4879e-6, z: 4879e-6, AB: 4227e-6, BB: 4418e-6, CB: 4161e-6, DB: 4227e-6, EB: 4725e-6, FB: 0.011601, GB: 8942e-6, HB: 4707e-6, IB: 4827e-6, JB: 4707e-6, KB: 4707e-6, LB: 4326e-6, MB: 8922e-6, NB: 0.014349, OB: 4425e-6, PB: 472e-5, QB: 4425e-6, RB: 4425e-6, SB: 472e-5, TB: 4532e-6, UB: 4566e-6, Y: 0.02283, VB: 867e-5, WB: 4656e-6, XB: 4642e-6, YB: 3867e-6, ZB: 944e-5, aB: 4293e-6, bB: 3867e-6, cB: 4298e-6, dB: 0.096692, eB: 4201e-6, fB: 4141e-6, gB: 4257e-6, hB: 3939e-6, iB: 8236e-6, P: 3939e-6, Q: 3939e-6, R: 8514e-6, pB: 3939e-6, S: 3939e-6, T: 7734e-6, U: 0.448572, V: 0.475641, W: 0.027069, DC: 685e-5, EC: 0, FC: 8392e-6, GC: 4706e-6, jB: 6229e-6, vB: 4879e-6, HC: 8786e-6, kB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "DC", "EC", "FC", "GC", "B", "jB", "vB", "HC", "C", "kB", "G", "M", "N", "O", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "Y", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "hB", "iB", "P", "Q", "R", "pB", "S", "T", "U", "V", "W", "", ""], E: "Opera", F: { "0": 1438646400, "1": 1442448e3, "2": 1445904e3, "3": 1449100800, "4": 1454371200, "5": 1457308800, "6": 146232e4, "7": 1465344e3, "8": 1470096e3, "9": 1474329600, F: 1150761600, DC: 1223424e3, EC: 1251763200, FC: 1267488e3, GC: 1277942400, B: 1292457600, jB: 1302566400, vB: 1309219200, HC: 1323129600, C: 1323129600, kB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, o: 1390867200, p: 1393891200, q: 1399334400, r: 1401753600, s: 1405987200, t: 1409616e3, u: 1413331200, v: 1417132800, w: 1422316800, x: 1425945600, y: 1430179200, z: 1433808e3, AB: 1477267200, BB: 1481587200, CB: 1486425600, DB: 1490054400, EB: 1494374400, FB: 1498003200, GB: 1502236800, HB: 1506470400, IB: 1510099200, JB: 1515024e3, KB: 1517961600, LB: 1521676800, MB: 1525910400, NB: 1530144e3, OB: 1534982400, PB: 1537833600, QB: 1543363200, RB: 1548201600, SB: 1554768e3, TB: 1561593600, UB: 1566259200, Y: 1570406400, VB: 1573689600, WB: 1578441600, XB: 1583971200, YB: 1587513600, ZB: 1592956800, aB: 1595894400, bB: 1600128e3, cB: 1603238400, dB: 161352e4, eB: 1612224e3, fB: 1616544e3, gB: 1619568e3, hB: 1623715200, iB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, pB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: null }, D: { F: "o", B: "o", C: "o", DC: "o", EC: "o", FC: "o", GC: "o", jB: "o", vB: "o", HC: "o", kB: "o" } }, G: { A: { E: 0, qB: 303644e-8, IC: 0, wB: 151822e-8, JC: 455466e-8, KC: 455466e-8, LC: 0.0167004, MC: 759111e-8, NC: 0.0197369, OC: 0.0774293, PC: 0.013664, QC: 0.0926115, RC: 0.0379555, SC: 0.0318826, TC: 0.0303644, UC: 0.57996, VC: 0.0288462, WC: 0.0121458, XC: 0.0607288, YC: 0.189778, ZC: 0.592106, aC: 1.50911, bC: 0.513159, sB: 1.20395, tB: 10.1478, uB: 0, lB: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "qB", "IC", "wB", "JC", "KC", "LC", "E", "MC", "NC", "OC", "PC", "QC", "RC", "SC", "TC", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "sB", "tB", "uB", "lB", "", ""], E: "Safari on iOS", F: { qB: 1270252800, IC: 1283904e3, wB: 1299628800, JC: 1331078400, KC: 1359331200, LC: 1394409600, E: 1410912e3, MC: 1413763200, NC: 1442361600, OC: 1458518400, PC: 1473724800, QC: 1490572800, RC: 1505779200, SC: 1522281600, TC: 1537142400, UC: 1553472e3, VC: 1568851200, WC: 1572220800, XC: 1580169600, YC: 1585008e3, ZC: 1600214400, aC: 1619395200, bC: 1632096e3, sB: 1639353600, tB: 1647216e3, uB: 1652659200, lB: null } }, H: { A: { cC: 0.998688 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "cC", "", "", ""], E: "Opera Mini", F: { cC: 1426464e3 } }, I: { A: { mB: 0, I: 0.0149357, H: 0, dC: 0, eC: 0, fC: 0, gC: 0.0199142, wB: 0.0597426, hC: 0, iC: 0.328584 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "dC", "eC", "fC", "mB", "I", "gC", "wB", "hC", "iC", "H", "", "", ""], E: "Android Browser", F: { dC: 1256515200, eC: 1274313600, fC: 1291593600, mB: 1298332800, I: 1318896e3, gC: 1341792e3, wB: 1374624e3, hC: 1386547200, iC: 1401667200, H: 1651017600 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, Y: 0.0111391, jB: 0, vB: 0, kB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "jB", "vB", "C", "kB", "Y", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, jB: 1314835200, vB: 1318291200, C: 1330300800, kB: 1349740800, Y: 1613433600 }, D: { Y: "webkit" } }, L: { A: { X: 41.3354 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "X", "", "", ""], E: "Chrome for Android", F: { X: 1653350400 } }, M: { A: { H: 0.30665 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Firefox for Android", F: { H: 1653955200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { jC: 0.766625 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "jC", "", "", ""], E: "UC Browser for Android", F: { jC: 1471392e3 }, D: { jC: "webkit" } }, P: { A: { I: 0.209346, kC: 0.0103543, lC: 0.010304, mC: 0.0628037, nC: 0.0103584, oC: 0.0104673, rB: 0.0105043, pC: 0.0418691, qC: 0.0209346, rC: 0.0942055, sC: 0.0942055, tC: 0.0942055, lB: 0.889718, uC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "kC", "lC", "mC", "nC", "oC", "rB", "pC", "qC", "rC", "sC", "tC", "lB", "uC", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, kC: 1481846400, lC: 1509408e3, mC: 1528329600, nC: 1546128e3, oC: 1554163200, rB: 1567900800, pC: 1582588800, qC: 1593475200, rC: 1605657600, sC: 1618531200, tC: 1629072e3, lB: 1640736e3, uC: 1651708800 } }, Q: { A: { vC: 0.153325 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "vC", "", "", ""], E: "QQ Browser", F: { vC: 1589846400 } }, R: { A: { wC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "wC", "", "", ""], E: "Baidu Browser", F: { wC: 1491004800 } }, S: { A: { xC: 0.073596 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "xC", "", "", ""], E: "KaiOS Browser", F: { xC: 1527811200 } } };
|
|
30619
|
+
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.0440661, F: 0.0881323, A: 734435e-8, B: 0.440661, "6B": 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6B", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { "6B": 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 7948e-6, K: 4267e-6, L: 4268e-6, G: 3974e-6, M: 3702e-6, N: 3974e-6, O: 0.01987, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 3974e-6, U: 3974e-6, V: 3974e-6, W: 3974e-6, X: 4318e-6, Y: 3974e-6, Z: 4118e-6, a: 3939e-6, b: 7948e-6, e: 4118e-6, f: 3939e-6, g: 3801e-6, h: 3929e-6, i: 3855e-6, j: 3929e-6, k: 3974e-6, l: 3974e-6, m: 0.011922, n: 0.011922, o: 0.035766, p: 0.067558, q: 0.802748, c: 3.07588, H: 0.246388 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, a: 1622073600, b: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, m: 1651190400, n: 1653955200, o: 1655942400, p: 1659657600, q: 1661990400, c: 1664755200, H: 1666915200 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 4393e-6, "1": 4418e-6, "2": 8834e-6, "3": 8322e-6, "4": 8928e-6, "5": 4471e-6, "6": 9284e-6, "7": 4707e-6, "8": 9076e-6, "9": 7948e-6, "7B": 4118e-6, qB: 4271e-6, I: 0.015896, r: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7948e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, s: 4443e-6, t: 4283e-6, u: 8322e-6, v: 0.013698, w: 4161e-6, x: 8786e-6, y: 4118e-6, z: 4317e-6, AB: 4783e-6, BB: 3929e-6, CB: 4783e-6, DB: 487e-5, EB: 5029e-6, FB: 47e-4, GB: 0.015896, HB: 7948e-6, IB: 3867e-6, JB: 4525e-6, KB: 4293e-6, LB: 3702e-6, MB: 4538e-6, NB: 8282e-6, OB: 0.011601, PB: 0.051662, QB: 0.011601, RB: 3929e-6, SB: 3974e-6, TB: 3974e-6, UB: 0.011601, VB: 3939e-6, rB: 3855e-6, WB: 3929e-6, sB: 4356e-6, XB: 4425e-6, YB: 8322e-6, ZB: 415e-5, aB: 4267e-6, bB: 3801e-6, cB: 4267e-6, dB: 7948e-6, eB: 415e-5, fB: 4293e-6, gB: 4425e-6, d: 3974e-6, hB: 415e-5, iB: 415e-5, jB: 4318e-6, kB: 4356e-6, lB: 3974e-6, mB: 0.035766, P: 3974e-6, Q: 7948e-6, R: 7948e-6, tB: 3974e-6, S: 3974e-6, T: 3929e-6, U: 4268e-6, V: 3801e-6, W: 7948e-6, X: 7948e-6, Y: 3974e-6, Z: 3974e-6, a: 0.03974, b: 3801e-6, e: 3855e-6, f: 0.015896, g: 3974e-6, h: 3974e-6, i: 3974e-6, j: 3974e-6, k: 0.011922, l: 7948e-6, m: 0.011922, n: 0.063584, o: 0.043714, p: 0.071532, q: 1.50615, c: 0.679554, H: 7948e-6, uB: 0, vB: 0, "8B": 8786e-6, "9B": 487e-5 }, B: "moz", C: ["7B", "qB", "8B", "9B", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", ""], E: "Firefox", F: { "0": 1391472e3, "1": 1395100800, "2": 1398729600, "3": 1402358400, "4": 1405987200, "5": 1409616e3, "6": 1413244800, "7": 1417392e3, "8": 1421107200, "9": 1424736e3, "7B": 1161648e3, qB: 1213660800, "8B": 124632e4, "9B": 1264032e3, I: 1300752e3, r: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, s: 1357603200, t: 1361232e3, u: 1364860800, v: 1368489600, w: 1372118400, x: 1375747200, y: 1379376e3, z: 1386633600, AB: 1428278400, BB: 1431475200, CB: 1435881600, DB: 1439251200, EB: 144288e4, FB: 1446508800, GB: 1450137600, HB: 1453852800, IB: 1457395200, JB: 1461628800, KB: 1465257600, LB: 1470096e3, MB: 1474329600, NB: 1479168e3, OB: 1485216e3, PB: 1488844800, QB: 149256e4, RB: 1497312e3, SB: 1502150400, TB: 1506556800, UB: 1510617600, VB: 1516665600, rB: 1520985600, WB: 1525824e3, sB: 1529971200, XB: 1536105600, YB: 1540252800, ZB: 1544486400, aB: 154872e4, bB: 1552953600, cB: 1558396800, dB: 1562630400, eB: 1567468800, fB: 1571788800, gB: 1575331200, d: 1578355200, hB: 1581379200, iB: 1583798400, jB: 1586304e3, kB: 1588636800, lB: 1591056e3, mB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, tB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400, Y: 1622505600, Z: 1626134400, a: 1628553600, b: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, m: 1653955200, n: 1656374400, o: 1658793600, p: 1661212800, q: 1663632e3, c: 1666051200, H: 1668470400, uB: null, vB: null } }, D: { A: { "0": 4326e-6, "1": 47e-4, "2": 4538e-6, "3": 8322e-6, "4": 8596e-6, "5": 4566e-6, "6": 4118e-6, "7": 7948e-6, "8": 3702e-6, "9": 4335e-6, I: 4706e-6, r: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, s: 8322e-6, t: 4393e-6, u: 4317e-6, v: 3974e-6, w: 8786e-6, x: 3939e-6, y: 4461e-6, z: 4141e-6, AB: 4464e-6, BB: 0.015896, CB: 3867e-6, DB: 0.015896, EB: 3974e-6, FB: 3974e-6, GB: 7948e-6, HB: 7948e-6, IB: 3974e-6, JB: 3867e-6, KB: 7948e-6, LB: 0.01987, MB: 0.047688, NB: 3867e-6, OB: 3929e-6, PB: 3974e-6, QB: 7948e-6, RB: 3867e-6, SB: 3974e-6, TB: 0.035766, UB: 3974e-6, VB: 3702e-6, rB: 3702e-6, WB: 0.011922, sB: 0.011922, XB: 3974e-6, YB: 7948e-6, ZB: 3929e-6, aB: 0.011922, bB: 0.027818, cB: 7948e-6, dB: 7948e-6, eB: 0.047688, fB: 0.023844, gB: 0.011922, d: 0.03974, hB: 0.011922, iB: 0.031792, jB: 0.043714, kB: 0.035766, lB: 0.011922, mB: 0.031792, P: 0.107298, Q: 0.035766, R: 0.03974, S: 0.067558, T: 0.051662, U: 0.083454, V: 0.083454, W: 0.083454, X: 0.01987, Y: 0.03974, Z: 0.023844, a: 0.055636, b: 0.047688, e: 0.043714, f: 0.035766, g: 0.023844, h: 0.063584, i: 0.05961, j: 0.051662, k: 0.055636, l: 0.151012, m: 0.087428, n: 0.143064, o: 0.421244, p: 0.41727, q: 6.00869, c: 15.7013, H: 0.643788, uB: 0.01987, vB: 0.011922, AC: 0 }, B: "webkit", C: ["", "", "", "", "", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", "AC"], E: "Chrome", F: { "0": 1364428800, "1": 1369094400, "2": 1374105600, "3": 1376956800, "4": 1384214400, "5": 1389657600, "6": 1392940800, "7": 1397001600, "8": 1400544e3, "9": 1405468800, I: 1264377600, r: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, s: 1332892800, t: 133704e4, u: 1340668800, v: 1343692800, w: 1348531200, x: 1352246400, y: 1357862400, z: 1361404800, AB: 1409011200, BB: 141264e4, CB: 1416268800, DB: 1421798400, EB: 1425513600, FB: 1429401600, GB: 143208e4, HB: 1437523200, IB: 1441152e3, JB: 1444780800, KB: 1449014400, LB: 1453248e3, MB: 1456963200, NB: 1460592e3, OB: 1464134400, PB: 1469059200, QB: 1472601600, RB: 1476230400, SB: 1480550400, TB: 1485302400, UB: 1489017600, VB: 149256e4, rB: 1496707200, WB: 1500940800, sB: 1504569600, XB: 1508198400, YB: 1512518400, ZB: 1516752e3, aB: 1520294400, bB: 1523923200, cB: 1527552e3, dB: 1532390400, eB: 1536019200, fB: 1539648e3, gB: 1543968e3, d: 154872e4, hB: 1552348800, iB: 1555977600, jB: 1559606400, kB: 1564444800, lB: 1568073600, mB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, a: 1621987200, b: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, m: 1650931200, n: 1653350400, o: 1655769600, p: 1659398400, q: 1661817600, c: 1664236800, H: 1666656e3, uB: null, vB: null, AC: null } }, E: { A: { I: 0, r: 8322e-6, J: 4656e-6, D: 4465e-6, E: 3974e-6, F: 3929e-6, A: 4425e-6, B: 4318e-6, C: 3801e-6, K: 0.023844, L: 0.11922, G: 0.027818, BC: 0, wB: 8692e-6, CC: 0.011922, DC: 456e-5, EC: 4283e-6, FC: 0.015896, xB: 7948e-6, nB: 0.01987, oB: 0.035766, yB: 0.313946, GC: 0.305998, HC: 0.051662, zB: 0.051662, "0B": 0.131142, "1B": 0.266258, "2B": 1.63331, pB: 0.49675, "3B": 0.071532, IC: 0, JC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "BC", "wB", "I", "r", "CC", "J", "DC", "D", "EC", "E", "F", "FC", "A", "xB", "B", "nB", "C", "oB", "K", "yB", "L", "GC", "G", "HC", "zB", "0B", "1B", "2B", "pB", "3B", "IC", "JC", ""], E: "Safari", F: { BC: 1205798400, wB: 1226534400, I: 1244419200, r: 1275868800, CC: 131112e4, J: 1343174400, DC: 13824e5, D: 13824e5, EC: 1410998400, E: 1413417600, F: 1443657600, FC: 1458518400, A: 1474329600, xB: 1490572800, B: 1505779200, nB: 1522281600, C: 1537142400, oB: 1553472e3, K: 1568851200, yB: 1585008e3, L: 1600214400, GC: 1619395200, G: 1632096e3, HC: 1635292800, zB: 1639353600, "0B": 1647216e3, "1B": 1652745600, "2B": 1658275200, pB: 1662940800, "3B": 1666569600, IC: null, JC: null } }, F: { A: { "0": 4393e-6, "1": 7948e-6, "2": 4879e-6, "3": 4879e-6, "4": 3974e-6, "5": 5152e-6, "6": 5014e-6, "7": 9758e-6, "8": 4879e-6, "9": 3974e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, s: 6015e-6, t: 4879e-6, u: 6597e-6, v: 6597e-6, w: 0.013434, x: 6702e-6, y: 6015e-6, z: 5595e-6, AB: 4283e-6, BB: 4367e-6, CB: 4534e-6, DB: 7948e-6, EB: 4227e-6, FB: 4418e-6, GB: 4161e-6, HB: 4227e-6, IB: 4725e-6, JB: 0.011922, KB: 8942e-6, LB: 4707e-6, MB: 4827e-6, NB: 4707e-6, OB: 4707e-6, PB: 4326e-6, QB: 8922e-6, RB: 0.014349, SB: 4425e-6, TB: 472e-5, UB: 4425e-6, VB: 4425e-6, WB: 472e-5, XB: 4532e-6, YB: 4566e-6, ZB: 0.02283, aB: 867e-5, bB: 4656e-6, cB: 4642e-6, dB: 3929e-6, eB: 944e-5, fB: 4293e-6, gB: 3929e-6, d: 4298e-6, hB: 0.096692, iB: 4201e-6, jB: 4141e-6, kB: 4257e-6, lB: 3939e-6, mB: 8236e-6, P: 3855e-6, Q: 3939e-6, R: 8514e-6, tB: 3939e-6, S: 3939e-6, T: 3702e-6, U: 0.011922, V: 3855e-6, W: 3855e-6, X: 3929e-6, Y: 7948e-6, Z: 0.405348, a: 0.862358, b: 0, KC: 685e-5, LC: 0, MC: 8392e-6, NC: 4706e-6, nB: 6229e-6, "4B": 4879e-6, OC: 8786e-6, oB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "KC", "LC", "MC", "NC", "B", "nB", "4B", "OC", "C", "oB", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "", "", ""], E: "Opera", F: { "0": 1422316800, "1": 1425945600, "2": 1430179200, "3": 1433808e3, "4": 1438646400, "5": 1442448e3, "6": 1445904e3, "7": 1449100800, "8": 1454371200, "9": 1457308800, F: 1150761600, KC: 1223424e3, LC: 1251763200, MC: 1267488e3, NC: 1277942400, B: 1292457600, nB: 1302566400, "4B": 1309219200, OC: 1323129600, C: 1323129600, oB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, s: 1390867200, t: 1393891200, u: 1399334400, v: 1401753600, w: 1405987200, x: 1409616e3, y: 1413331200, z: 1417132800, AB: 146232e4, BB: 1465344e3, CB: 1470096e3, DB: 1474329600, EB: 1477267200, FB: 1481587200, GB: 1486425600, HB: 1490054400, IB: 1494374400, JB: 1498003200, KB: 1502236800, LB: 1506470400, MB: 1510099200, NB: 1515024e3, OB: 1517961600, PB: 1521676800, QB: 1525910400, RB: 1530144e3, SB: 1534982400, TB: 1537833600, UB: 1543363200, VB: 1548201600, WB: 1554768e3, XB: 1561593600, YB: 1566259200, ZB: 1570406400, aB: 1573689600, bB: 1578441600, cB: 1583971200, dB: 1587513600, eB: 1592956800, fB: 1595894400, gB: 1600128e3, d: 1603238400, hB: 161352e4, iB: 1612224e3, jB: 1616544e3, kB: 1619568e3, lB: 1623715200, mB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, tB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: 1660780800, a: 1663113600, b: 1668816e3 }, D: { F: "o", B: "o", C: "o", KC: "o", LC: "o", MC: "o", NC: "o", nB: "o", "4B": "o", OC: "o", oB: "o" } }, G: { A: { E: 0, wB: 0, PC: 0, "5B": 319488e-8, QC: 479232e-8, RC: 319488e-8, SC: 0.014377, TC: 479232e-8, UC: 0.0159744, VC: 0.0607028, WC: 319488e-8, XC: 0.0718849, YC: 0.0255591, ZC: 0.0223642, aC: 0.0223642, bC: 0.408945, cC: 0.0287539, dC: 958465e-8, eC: 0.0383386, fC: 0.119808, gC: 0.354632, hC: 0.773162, iC: 0.201278, zB: 0.28115, "0B": 0.351437, "1B": 0.800318, "2B": 6.71564, pB: 4.55111, "3B": 0.241214 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "wB", "PC", "5B", "QC", "RC", "SC", "E", "TC", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "cC", "dC", "eC", "fC", "gC", "hC", "iC", "zB", "0B", "1B", "2B", "pB", "3B", "", "", ""], E: "Safari on iOS", F: { wB: 1270252800, PC: 1283904e3, "5B": 1299628800, QC: 1331078400, RC: 1359331200, SC: 1394409600, E: 1410912e3, TC: 1413763200, UC: 1442361600, VC: 1458518400, WC: 1473724800, XC: 1490572800, YC: 1505779200, ZC: 1522281600, aC: 1537142400, bC: 1553472e3, cC: 1568851200, dC: 1572220800, eC: 1580169600, fC: 1585008e3, gC: 1600214400, hC: 1619395200, iC: 1632096e3, zB: 1639353600, "0B": 1647216e3, "1B": 1652659200, "2B": 1658275200, pB: 1662940800, "3B": 1666569600 } }, H: { A: { jC: 1.02708 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "jC", "", "", ""], E: "Opera Mini", F: { jC: 1426464e3 } }, I: { A: { qB: 0, I: 0.0223354, H: 0, kC: 0, lC: 0, mC: 0, nC: 0.0297805, "5B": 0.0893414, oC: 0, pC: 0.364811 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "kC", "lC", "mC", "qB", "I", "nC", "5B", "oC", "pC", "H", "", "", ""], E: "Android Browser", F: { kC: 1256515200, lC: 1274313600, mC: 1291593600, qB: 1298332800, I: 1318896e3, nC: 1341792e3, "5B": 1374624e3, oC: 1386547200, pC: 1401667200, H: 1666828800 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, d: 0.0111391, nB: 0, "4B": 0, oB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "nB", "4B", "C", "oB", "d", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, nB: 1314835200, "4B": 1318291200, C: 1330300800, oB: 1349740800, d: 1666828800 }, D: { d: "webkit" } }, L: { A: { H: 40.2785 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Chrome for Android", F: { H: 1666828800 } }, M: { A: { c: 0.283269 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "c", "", "", ""], E: "Firefox for Android", F: { c: 1666051200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { qC: 0.638862 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "qC", "", "", ""], E: "UC Browser for Android", F: { qC: 1634688e3 }, D: { qC: "webkit" } }, P: { A: { I: 0.146868, rC: 0.0103543, sC: 0.010304, tC: 0.0629436, uC: 0.0103584, vC: 0.0104443, xB: 0.0105043, wC: 0.0314718, xC: 0.0104906, yC: 0.052453, zC: 0.052453, "0C": 0.0314718, pB: 0.0944154, "1C": 0.157359, "2C": 2.15057, "3C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "rC", "sC", "tC", "uC", "vC", "xB", "wC", "xC", "yC", "zC", "0C", "pB", "1C", "2C", "3C", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, rC: 1481846400, sC: 1509408e3, tC: 1528329600, uC: 1546128e3, vC: 1554163200, xB: 1567900800, wC: 1582588800, xC: 1593475200, yC: 1605657600, zC: 1618531200, "0C": 1629072e3, pB: 1640736e3, "1C": 1651708800, "2C": 1659657600, "3C": 1667260800 } }, Q: { A: { yB: 0.126567 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "yB", "", "", ""], E: "QQ Browser", F: { yB: 1663718400 } }, R: { A: { "4C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "4C", "", "", ""], E: "Baidu Browser", F: { "4C": 1663027200 } }, S: { A: { "5C": 0.042189 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "5C", "", "", ""], E: "KaiOS Browser", F: { "5C": 1527811200 } } };
|
|
30618
30620
|
});
|
|
30619
30621
|
var require_agents2 = __commonJSMin((exports, module2) => {
|
|
30620
30622
|
"use strict";
|
|
@@ -30622,8 +30624,8 @@ var require_agents2 = __commonJSMin((exports, module2) => {
|
|
|
30622
30624
|
var versions = require_browserVersions2().browserVersions;
|
|
30623
30625
|
var agentsData = require_agents();
|
|
30624
30626
|
function unpackBrowserVersions(versionsData) {
|
|
30625
|
-
return Object.keys(versionsData).reduce((usage,
|
|
30626
|
-
usage[versions[
|
|
30627
|
+
return Object.keys(versionsData).reduce((usage, version5) => {
|
|
30628
|
+
usage[versions[version5]] = versionsData[version5];
|
|
30627
30629
|
return usage;
|
|
30628
30630
|
}, {});
|
|
30629
30631
|
}
|
|
@@ -30633,11 +30635,11 @@ var require_agents2 = __commonJSMin((exports, module2) => {
|
|
|
30633
30635
|
if (entry === "A") {
|
|
30634
30636
|
data.usage_global = unpackBrowserVersions(versionsData[entry]);
|
|
30635
30637
|
} else if (entry === "C") {
|
|
30636
|
-
data.versions = versionsData[entry].reduce((list,
|
|
30637
|
-
if (
|
|
30638
|
+
data.versions = versionsData[entry].reduce((list, version5) => {
|
|
30639
|
+
if (version5 === "") {
|
|
30638
30640
|
list.push(null);
|
|
30639
30641
|
} else {
|
|
30640
|
-
list.push(versions[
|
|
30642
|
+
list.push(versions[version5]);
|
|
30641
30643
|
}
|
|
30642
30644
|
return list;
|
|
30643
30645
|
}, []);
|
|
@@ -30728,7 +30730,7 @@ var require_region = __commonJSMin((exports, module2) => {
|
|
|
30728
30730
|
list[browsers[browser2]] = Object.keys(data).reduce((memo, key) => {
|
|
30729
30731
|
let stats = data[key];
|
|
30730
30732
|
if (key === "_") {
|
|
30731
|
-
stats.split(" ").forEach((
|
|
30733
|
+
stats.split(" ").forEach((version5) => memo[version5] = null);
|
|
30732
30734
|
} else {
|
|
30733
30735
|
memo[key] = stats;
|
|
30734
30736
|
}
|
|
@@ -34558,8 +34560,8 @@ ${stats.stack}` : "";
|
|
|
34558
34560
|
}
|
|
34559
34561
|
function formatWebpackMessages(json) {
|
|
34560
34562
|
var _a, _b, _c;
|
|
34561
|
-
const formattedErrors = (_a = json.errors) === null || _a === void 0 ? void 0 : _a.map(formatMessage);
|
|
34562
|
-
const formattedWarnings = (_b = json.warnings) === null || _b === void 0 ? void 0 : _b.map(formatMessage);
|
|
34563
|
+
const formattedErrors = (_a = json === null || json === void 0 ? void 0 : json.errors) === null || _a === void 0 ? void 0 : _a.map(formatMessage);
|
|
34564
|
+
const formattedWarnings = (_b = json === null || json === void 0 ? void 0 : json.warnings) === null || _b === void 0 ? void 0 : _b.map(formatMessage);
|
|
34563
34565
|
const result = {
|
|
34564
34566
|
errors: formattedErrors || [],
|
|
34565
34567
|
warnings: formattedWarnings || []
|
|
@@ -34941,9 +34943,16 @@ var require_is = __commonJSMin((exports) => {
|
|
|
34941
34943
|
exports.isFastRefresh = exports.isUseSSRBundle = exports.isSSR = exports.isEmpty = exports.isTypescript = exports.isDepExists = void 0;
|
|
34942
34944
|
var fs_1 = __importDefault(__require("fs"));
|
|
34943
34945
|
var path_1 = __importDefault(__require("path"));
|
|
34946
|
+
var debug_1 = require_debug2();
|
|
34944
34947
|
var node_env_1 = require_node_env();
|
|
34948
|
+
var debug = (0, debug_1.createDebugger)("judge-depExists");
|
|
34945
34949
|
var isDepExists = (appDirectory, name4) => {
|
|
34946
|
-
const
|
|
34950
|
+
const pkgPath = path_1.default.resolve(appDirectory, "./package.json");
|
|
34951
|
+
if (!fs_1.default.existsSync(pkgPath)) {
|
|
34952
|
+
debug(`can't find package.json under: %s`, appDirectory);
|
|
34953
|
+
return false;
|
|
34954
|
+
}
|
|
34955
|
+
const json = __require(pkgPath);
|
|
34947
34956
|
const { dependencies: dependencies2 = {}, devDependencies: devDependencies2 = {} } = json;
|
|
34948
34957
|
return dependencies2.hasOwnProperty(name4) || devDependencies2.hasOwnProperty(name4);
|
|
34949
34958
|
};
|
|
@@ -34986,17 +34995,23 @@ var require_compatRequire = __commonJSMin((exports) => {
|
|
|
34986
34995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34987
34996
|
exports.cleanRequireCache = exports.requireExistModule = exports.compatRequire = void 0;
|
|
34988
34997
|
var findExists_1 = require_findExists();
|
|
34989
|
-
var compatRequire = (filePath) => {
|
|
34998
|
+
var compatRequire = (filePath, interop = true) => {
|
|
34990
34999
|
const mod = __require(filePath);
|
|
34991
|
-
|
|
35000
|
+
const rtnESMDefault = interop && (mod === null || mod === void 0 ? void 0 : mod.__esModule);
|
|
35001
|
+
return rtnESMDefault ? mod.default : mod;
|
|
34992
35002
|
};
|
|
34993
35003
|
exports.compatRequire = compatRequire;
|
|
34994
|
-
var requireExistModule = (filename,
|
|
34995
|
-
const
|
|
35004
|
+
var requireExistModule = (filename, opt) => {
|
|
35005
|
+
const final = {
|
|
35006
|
+
extensions: [".ts", ".js"],
|
|
35007
|
+
interop: true,
|
|
35008
|
+
...opt
|
|
35009
|
+
};
|
|
35010
|
+
const exist = (0, findExists_1.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
|
34996
35011
|
if (!exist) {
|
|
34997
35012
|
return null;
|
|
34998
35013
|
}
|
|
34999
|
-
return (0, exports.compatRequire)(exist);
|
|
35014
|
+
return (0, exports.compatRequire)(exist, final.interop);
|
|
35000
35015
|
};
|
|
35001
35016
|
exports.requireExistModule = requireExistModule;
|
|
35002
35017
|
var cleanRequireCache = (filelist) => {
|
|
@@ -35009,7 +35024,7 @@ var require_compatRequire = __commonJSMin((exports) => {
|
|
|
35009
35024
|
var require_constants = __commonJSMin((exports) => {
|
|
35010
35025
|
"use strict";
|
|
35011
35026
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35012
|
-
exports.PLUGIN_SCHEMAS = exports.
|
|
35027
|
+
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.INTERNAL_CLI_PLUGINS = exports.ROUTE_MANIFEST = exports.ROUTE_MINIFEST_FILE = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
|
|
35013
35028
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
|
35014
35029
|
exports.ROUTE_SPEC_FILE = "route.json";
|
|
35015
35030
|
exports.MAIN_ENTRY_NAME = "main";
|
|
@@ -35025,53 +35040,38 @@ var require_constants = __commonJSMin((exports) => {
|
|
|
35025
35040
|
exports.CONFIG_FILE_EXTENSIONS = [".js", ".ts", ".ejs", ".mjs"];
|
|
35026
35041
|
exports.OUTPUT_CONFIG_FILE = "modern.config.json";
|
|
35027
35042
|
exports.DEFAULT_SERVER_CONFIG = "modern.server-runtime.config";
|
|
35028
|
-
exports.
|
|
35029
|
-
|
|
35030
|
-
|
|
35031
|
-
"@modern-js/
|
|
35032
|
-
"@modern-js/
|
|
35033
|
-
"@modern-js/
|
|
35034
|
-
"@modern-js/
|
|
35035
|
-
"@modern-js/
|
|
35036
|
-
"@modern-js/plugin-proxy":
|
|
35037
|
-
"@modern-js/plugin-ssg":
|
|
35038
|
-
"@modern-js/plugin-bff":
|
|
35039
|
-
|
|
35040
|
-
|
|
35041
|
-
|
|
35042
|
-
"@modern-js/plugin-
|
|
35043
|
-
"@modern-js/plugin-
|
|
35044
|
-
"@modern-js/plugin-
|
|
35045
|
-
"@modern-js/plugin-
|
|
35046
|
-
|
|
35047
|
-
|
|
35048
|
-
|
|
35049
|
-
"@modern-js/plugin-
|
|
35050
|
-
|
|
35051
|
-
|
|
35052
|
-
|
|
35053
|
-
"@modern-js/plugin-
|
|
35054
|
-
|
|
35055
|
-
|
|
35056
|
-
|
|
35057
|
-
"@modern-js/plugin-nest":
|
|
35058
|
-
|
|
35059
|
-
|
|
35060
|
-
},
|
|
35061
|
-
"@modern-js/plugin-unbundle": { cli: "@modern-js/plugin-unbundle" },
|
|
35062
|
-
"@modern-js/plugin-server": {
|
|
35063
|
-
cli: "@modern-js/plugin-server/cli",
|
|
35064
|
-
server: "@modern-js/plugin-server/server"
|
|
35065
|
-
},
|
|
35066
|
-
"@modern-js/plugin-garfish": {
|
|
35067
|
-
cli: "@modern-js/plugin-garfish/cli"
|
|
35068
|
-
},
|
|
35069
|
-
"@modern-js/plugin-tailwindcss": { cli: "@modern-js/plugin-tailwindcss/cli" },
|
|
35070
|
-
"@modern-js/plugin-polyfill": {
|
|
35071
|
-
cli: "@modern-js/plugin-polyfill/cli",
|
|
35072
|
-
server: "@modern-js/plugin-polyfill"
|
|
35073
|
-
},
|
|
35074
|
-
"@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
|
|
35043
|
+
exports.ROUTE_MINIFEST_FILE = "routes-manifest.json";
|
|
35044
|
+
exports.ROUTE_MANIFEST = `_MODERNJS_ROUTE_MANIFEST`;
|
|
35045
|
+
exports.INTERNAL_CLI_PLUGINS = {
|
|
35046
|
+
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
|
35047
|
+
"@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
|
|
35048
|
+
"@modern-js/module-tools": "@modern-js/module-tools/cli",
|
|
35049
|
+
"@modern-js/module-tools-v2": "@modern-js/module-tools-v2",
|
|
35050
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
35051
|
+
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
|
35052
|
+
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
|
35053
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/cli",
|
|
35054
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
|
|
35055
|
+
"@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
|
|
35056
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express/cli",
|
|
35057
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg/cli",
|
|
35058
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa/cli",
|
|
35059
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/cli",
|
|
35060
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/cli",
|
|
35061
|
+
"@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
|
|
35062
|
+
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
|
35063
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
|
35064
|
+
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
|
35065
|
+
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
35066
|
+
};
|
|
35067
|
+
exports.INTERNAL_SERVER_PLUGINS = {
|
|
35068
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/server",
|
|
35069
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express",
|
|
35070
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg",
|
|
35071
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa",
|
|
35072
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/server",
|
|
35073
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/server",
|
|
35074
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill"
|
|
35075
35075
|
};
|
|
35076
35076
|
exports.PLUGIN_SCHEMAS = {
|
|
35077
35077
|
"@modern-js/runtime": [
|
|
@@ -35108,24 +35108,6 @@ var require_constants = __commonJSMin((exports) => {
|
|
|
35108
35108
|
}
|
|
35109
35109
|
}
|
|
35110
35110
|
],
|
|
35111
|
-
"@modern-js/plugin-esbuild": [
|
|
35112
|
-
{
|
|
35113
|
-
target: "tools.esbuild",
|
|
35114
|
-
schema: { typeof: ["object"] }
|
|
35115
|
-
}
|
|
35116
|
-
],
|
|
35117
|
-
"@modern-js/plugin-less": [
|
|
35118
|
-
{
|
|
35119
|
-
target: "tools.less",
|
|
35120
|
-
schema: { typeof: ["object", "function"] }
|
|
35121
|
-
}
|
|
35122
|
-
],
|
|
35123
|
-
"@modern-js/plugin-sass": [
|
|
35124
|
-
{
|
|
35125
|
-
target: "tools.sass",
|
|
35126
|
-
schema: { typeof: ["object", "function"] }
|
|
35127
|
-
}
|
|
35128
|
-
],
|
|
35129
35111
|
"@modern-js/plugin-tailwindcss": [
|
|
35130
35112
|
{
|
|
35131
35113
|
target: "tools.tailwindcss",
|
|
@@ -35138,27 +35120,6 @@ var require_constants = __commonJSMin((exports) => {
|
|
|
35138
35120
|
schema: { typeof: ["string", "object"] }
|
|
35139
35121
|
}
|
|
35140
35122
|
],
|
|
35141
|
-
"@modern-js/plugin-unbundle": [
|
|
35142
|
-
{
|
|
35143
|
-
target: "output.disableAutoImportStyle",
|
|
35144
|
-
schema: { type: "boolean" }
|
|
35145
|
-
},
|
|
35146
|
-
{
|
|
35147
|
-
target: "dev.unbundle",
|
|
35148
|
-
schema: {
|
|
35149
|
-
type: "object",
|
|
35150
|
-
properties: {
|
|
35151
|
-
ignore: {
|
|
35152
|
-
type: ["string", "array"],
|
|
35153
|
-
items: { type: "string" }
|
|
35154
|
-
},
|
|
35155
|
-
ignoreModuleCache: { type: "boolean" },
|
|
35156
|
-
clearPdnCache: { type: "boolean" },
|
|
35157
|
-
pdnHost: { type: "string" }
|
|
35158
|
-
}
|
|
35159
|
-
}
|
|
35160
|
-
}
|
|
35161
|
-
],
|
|
35162
35123
|
"@modern-js/plugin-ssg": [
|
|
35163
35124
|
{
|
|
35164
35125
|
target: "output.ssg",
|
|
@@ -35185,6 +35146,10 @@ var require_constants = __commonJSMin((exports) => {
|
|
|
35185
35146
|
{
|
|
35186
35147
|
target: "source.designSystem.supportStyledComponents",
|
|
35187
35148
|
schema: { type: ["boolean"] }
|
|
35149
|
+
},
|
|
35150
|
+
{
|
|
35151
|
+
target: "designSystem",
|
|
35152
|
+
schema: { typeof: ["object"] }
|
|
35188
35153
|
}
|
|
35189
35154
|
],
|
|
35190
35155
|
"@modern-js/plugin-router": [
|
|
@@ -35533,7 +35498,7 @@ var require_path = __commonJSMin((exports) => {
|
|
|
35533
35498
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35534
35499
|
};
|
|
35535
35500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35536
|
-
exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
35501
|
+
exports.splitPathString = exports.getRealTemporaryDirectory = exports.upwardPaths = exports._joinPathParts = exports.compilePathMatcherRegExp = exports.getTemplatePath = exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
|
35537
35502
|
var path_1 = __importDefault(__require("path"));
|
|
35538
35503
|
var os_1 = __importDefault(__require("os"));
|
|
35539
35504
|
var fs_1 = __importDefault(__require("fs"));
|
|
@@ -35554,6 +35519,34 @@ var require_path = __commonJSMin((exports) => {
|
|
|
35554
35519
|
return path_1.default.resolve(...parts);
|
|
35555
35520
|
};
|
|
35556
35521
|
exports.getTemplatePath = getTemplatePath;
|
|
35522
|
+
function compilePathMatcherRegExp(match) {
|
|
35523
|
+
if (typeof match !== "string") {
|
|
35524
|
+
return match;
|
|
35525
|
+
}
|
|
35526
|
+
const escaped = compiled_1.lodash.escapeRegExp(match);
|
|
35527
|
+
return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`);
|
|
35528
|
+
}
|
|
35529
|
+
exports.compilePathMatcherRegExp = compilePathMatcherRegExp;
|
|
35530
|
+
var _joinPathParts = (_part, i, parts) => (0, compiled_1.lodash)(parts).filter((part) => !["/", "\\"].includes(part)).tap((parts2) => parts2.unshift("")).slice(0, i + 2).join("/");
|
|
35531
|
+
exports._joinPathParts = _joinPathParts;
|
|
35532
|
+
function upwardPaths(start) {
|
|
35533
|
+
return (0, compiled_1.lodash)(start).split(/[/\\]/).filter(Boolean).map(exports._joinPathParts).reverse().push("/").value();
|
|
35534
|
+
}
|
|
35535
|
+
exports.upwardPaths = upwardPaths;
|
|
35536
|
+
function getRealTemporaryDirectory() {
|
|
35537
|
+
let ret = null;
|
|
35538
|
+
try {
|
|
35539
|
+
ret = os_1.default.tmpdir();
|
|
35540
|
+
ret = fs_1.default.realpathSync(ret);
|
|
35541
|
+
} catch {
|
|
35542
|
+
}
|
|
35543
|
+
return ret;
|
|
35544
|
+
}
|
|
35545
|
+
exports.getRealTemporaryDirectory = getRealTemporaryDirectory;
|
|
35546
|
+
function splitPathString(str) {
|
|
35547
|
+
return str.split(/[\\/]/);
|
|
35548
|
+
}
|
|
35549
|
+
exports.splitPathString = splitPathString;
|
|
35557
35550
|
});
|
|
35558
35551
|
var require_runtimeExports = __commonJSMin((exports) => {
|
|
35559
35552
|
"use strict";
|
|
@@ -35617,6 +35610,52 @@ var require_readTsConfig = __commonJSMin((exports) => {
|
|
|
35617
35610
|
};
|
|
35618
35611
|
exports.readTsConfigByFile = readTsConfigByFile;
|
|
35619
35612
|
});
|
|
35613
|
+
var require_pathSerializer = __commonJSMin((exports) => {
|
|
35614
|
+
"use strict";
|
|
35615
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
35616
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35617
|
+
};
|
|
35618
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35619
|
+
exports.createDefaultPathMatchers = exports.applyMatcherReplacement = exports.applyPathMatcher = exports.matchUpwardPathsAsUnknown = void 0;
|
|
35620
|
+
var os_1 = __importDefault(__require("os"));
|
|
35621
|
+
var lodash_1 = __importDefault(require_lodash2());
|
|
35622
|
+
var path_1 = require_path();
|
|
35623
|
+
var matchUpwardPathsAsUnknown = (p) => (0, lodash_1.default)((0, path_1.upwardPaths)((0, path_1.normalizeToPosixPath)(p))).map((match) => ({ match, mark: "unknown" })).slice(1, -1).value();
|
|
35624
|
+
exports.matchUpwardPathsAsUnknown = matchUpwardPathsAsUnknown;
|
|
35625
|
+
function applyPathMatcher(matcher, str, options3 = {}) {
|
|
35626
|
+
const regex = (0, path_1.compilePathMatcherRegExp)(matcher.match);
|
|
35627
|
+
const replacer = (substring, ...args) => {
|
|
35628
|
+
if (options3.minPartials && (0, path_1.splitPathString)(substring).length < options3.minPartials) {
|
|
35629
|
+
return substring;
|
|
35630
|
+
}
|
|
35631
|
+
const ret = typeof matcher.mark === "string" ? matcher.mark : matcher.mark(substring, ...args);
|
|
35632
|
+
return `<${lodash_1.default.snakeCase(ret).toUpperCase()}>`;
|
|
35633
|
+
};
|
|
35634
|
+
return str.replace(regex, replacer);
|
|
35635
|
+
}
|
|
35636
|
+
exports.applyPathMatcher = applyPathMatcher;
|
|
35637
|
+
function applyMatcherReplacement(matchers, str, options3 = {}) {
|
|
35638
|
+
return matchers.reduce((ret, matcher) => {
|
|
35639
|
+
return applyPathMatcher(matcher, ret, options3);
|
|
35640
|
+
}, str);
|
|
35641
|
+
}
|
|
35642
|
+
exports.applyMatcherReplacement = applyMatcherReplacement;
|
|
35643
|
+
var createDefaultPathMatchers = (root) => {
|
|
35644
|
+
const ret = [
|
|
35645
|
+
{
|
|
35646
|
+
match: /(?<=\/)(\.pnpm\/.+?\/node_modules)(?=\/)/,
|
|
35647
|
+
mark: "pnpmInner"
|
|
35648
|
+
}
|
|
35649
|
+
];
|
|
35650
|
+
const tmpdir = (0, path_1.getRealTemporaryDirectory)();
|
|
35651
|
+
tmpdir && ret.push({ match: tmpdir, mark: "temp" });
|
|
35652
|
+
ret.push({ match: os_1.default.tmpdir(), mark: "temp" });
|
|
35653
|
+
ret.push({ match: os_1.default.homedir(), mark: "home" });
|
|
35654
|
+
ret.push(...(0, exports.matchUpwardPathsAsUnknown)(root));
|
|
35655
|
+
return ret;
|
|
35656
|
+
};
|
|
35657
|
+
exports.createDefaultPathMatchers = createDefaultPathMatchers;
|
|
35658
|
+
});
|
|
35620
35659
|
var require_generateMetaTags = __commonJSMin((exports) => {
|
|
35621
35660
|
"use strict";
|
|
35622
35661
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -35731,7 +35770,7 @@ var require_alias = __commonJSMin((exports) => {
|
|
|
35731
35770
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35732
35771
|
};
|
|
35733
35772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35734
|
-
exports.getUserAlias = exports.
|
|
35773
|
+
exports.getUserAlias = exports.getAliasConfig = exports.mergeAlias = exports.validAlias = void 0;
|
|
35735
35774
|
var fs_1 = __importDefault(__require("fs"));
|
|
35736
35775
|
var path_1 = __importDefault(__require("path"));
|
|
35737
35776
|
var compiled_1 = require_compiled();
|
|
@@ -35753,33 +35792,33 @@ var require_alias = __commonJSMin((exports) => {
|
|
|
35753
35792
|
return null;
|
|
35754
35793
|
};
|
|
35755
35794
|
exports.validAlias = validAlias;
|
|
35756
|
-
var
|
|
35795
|
+
var mergeAlias = (alias) => (0, applyOptionsChain_1.applyOptionsChain)({}, alias);
|
|
35796
|
+
exports.mergeAlias = mergeAlias;
|
|
35797
|
+
var getAliasConfig = (aliasOption, option) => {
|
|
35757
35798
|
var _a, _b;
|
|
35758
35799
|
const isTsProject = fs_1.default.existsSync(option.tsconfigPath);
|
|
35759
|
-
|
|
35800
|
+
const alias = (0, exports.mergeAlias)(aliasOption);
|
|
35760
35801
|
if (!isTsProject) {
|
|
35761
|
-
|
|
35802
|
+
return {
|
|
35762
35803
|
absoluteBaseUrl: option.appDirectory,
|
|
35763
|
-
paths:
|
|
35804
|
+
paths: alias,
|
|
35764
35805
|
isTsPath: false,
|
|
35765
35806
|
isTsProject
|
|
35766
35807
|
};
|
|
35767
|
-
} else {
|
|
35768
|
-
const tsconfig = (0, readTsConfig_1.readTsConfigByFile)(option.tsconfigPath);
|
|
35769
|
-
const baseUrl = (_a = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl;
|
|
35770
|
-
aliasConfig = {
|
|
35771
|
-
absoluteBaseUrl: baseUrl ? path_1.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
35772
|
-
paths: {
|
|
35773
|
-
...aliasOption || {},
|
|
35774
|
-
...(_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths
|
|
35775
|
-
},
|
|
35776
|
-
isTsPath: true,
|
|
35777
|
-
isTsProject
|
|
35778
|
-
};
|
|
35779
35808
|
}
|
|
35780
|
-
|
|
35809
|
+
const tsconfig = (0, readTsConfig_1.readTsConfigByFile)(option.tsconfigPath);
|
|
35810
|
+
const baseUrl = (_a = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl;
|
|
35811
|
+
return {
|
|
35812
|
+
absoluteBaseUrl: baseUrl ? path_1.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
35813
|
+
paths: {
|
|
35814
|
+
...alias,
|
|
35815
|
+
...(_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths
|
|
35816
|
+
},
|
|
35817
|
+
isTsPath: true,
|
|
35818
|
+
isTsProject
|
|
35819
|
+
};
|
|
35781
35820
|
};
|
|
35782
|
-
exports.
|
|
35821
|
+
exports.getAliasConfig = getAliasConfig;
|
|
35783
35822
|
var getUserAlias = (alias = {}) => Object.keys(alias).reduce((o, k) => {
|
|
35784
35823
|
if (Array.isArray(alias[k])) {
|
|
35785
35824
|
o[k] = alias[k];
|
|
@@ -35824,7 +35863,7 @@ var require_watch = __commonJSMin((exports) => {
|
|
|
35824
35863
|
};
|
|
35825
35864
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35826
35865
|
exports.watch = exports.WatchChangeType = void 0;
|
|
35827
|
-
var
|
|
35866
|
+
var path4 = __importStar(__require("path"));
|
|
35828
35867
|
var compiled_1 = require_compiled();
|
|
35829
35868
|
exports.WatchChangeType = {
|
|
35830
35869
|
ADD: "add",
|
|
@@ -35838,17 +35877,17 @@ var require_watch = __commonJSMin((exports) => {
|
|
|
35838
35877
|
});
|
|
35839
35878
|
watcher.on("ready", () => ready = true);
|
|
35840
35879
|
watcher.on("change", async (filePath) => {
|
|
35841
|
-
const changedFilePath =
|
|
35880
|
+
const changedFilePath = path4.resolve(filePath);
|
|
35842
35881
|
await runTask({ changedFilePath, changeType: exports.WatchChangeType.CHANGE });
|
|
35843
35882
|
});
|
|
35844
35883
|
watcher.on("add", async (filePath) => {
|
|
35845
|
-
const changedFilePath =
|
|
35884
|
+
const changedFilePath = path4.resolve(filePath);
|
|
35846
35885
|
if (ready) {
|
|
35847
35886
|
await runTask({ changedFilePath, changeType: exports.WatchChangeType.ADD });
|
|
35848
35887
|
}
|
|
35849
35888
|
});
|
|
35850
35889
|
watcher.on("unlink", async (filePath) => {
|
|
35851
|
-
const changedFilePath =
|
|
35890
|
+
const changedFilePath = path4.resolve(filePath);
|
|
35852
35891
|
await runTask({ changedFilePath, changeType: exports.WatchChangeType.UNLINK });
|
|
35853
35892
|
});
|
|
35854
35893
|
watcher.on("error", (err) => {
|
|
@@ -35915,11 +35954,11 @@ var require_getServerConfig = __commonJSMin((exports) => {
|
|
|
35915
35954
|
};
|
|
35916
35955
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35917
35956
|
exports.getServerConfig = void 0;
|
|
35918
|
-
var
|
|
35957
|
+
var path4 = __importStar(__require("path"));
|
|
35919
35958
|
var constants_1 = require_constants();
|
|
35920
35959
|
var findExists_1 = require_findExists();
|
|
35921
35960
|
var getServerConfig = async (appDirectory, configFile) => {
|
|
35922
|
-
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) =>
|
|
35961
|
+
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) => path4.resolve(appDirectory, `${configFile}${extension}`)));
|
|
35923
35962
|
return configFilePath;
|
|
35924
35963
|
};
|
|
35925
35964
|
exports.getServerConfig = getServerConfig;
|
|
@@ -36073,10 +36112,10 @@ var require_analyzeProject = __commonJSMin((exports) => {
|
|
|
36073
36112
|
};
|
|
36074
36113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36075
36114
|
exports.isApiOnly = void 0;
|
|
36076
|
-
var
|
|
36115
|
+
var path4 = __importStar(__require("path"));
|
|
36077
36116
|
var compiled_1 = require_compiled();
|
|
36078
36117
|
var isApiOnly = async (appDirectory, entryDir) => {
|
|
36079
|
-
const srcDir =
|
|
36118
|
+
const srcDir = path4.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
|
|
36080
36119
|
const existSrc = await compiled_1.fs.pathExists(srcDir);
|
|
36081
36120
|
const options3 = (0, compiled_1.minimist)(process.argv.slice(2));
|
|
36082
36121
|
return !existSrc || Boolean(options3["api-only"]);
|
|
@@ -36103,7 +36142,8 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36103
36142
|
SVG: "svg",
|
|
36104
36143
|
PUG: "pug",
|
|
36105
36144
|
TOML: "toml",
|
|
36106
|
-
YAML: "yaml"
|
|
36145
|
+
YAML: "yaml",
|
|
36146
|
+
JS_BFF_API: "js-bff-api"
|
|
36107
36147
|
},
|
|
36108
36148
|
ONE_OF: {
|
|
36109
36149
|
JS: "js",
|
|
@@ -36141,9 +36181,11 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36141
36181
|
HTML: "html",
|
|
36142
36182
|
BABEL: "babel",
|
|
36143
36183
|
ESBUILD: "esbuild",
|
|
36184
|
+
SWC: "swc",
|
|
36144
36185
|
STYLE: "style-loader",
|
|
36145
36186
|
POSTCSS: "postcss",
|
|
36146
36187
|
MARKDOWN: "markdown",
|
|
36188
|
+
IGNORE_CSS: "ignore-css",
|
|
36147
36189
|
CSS_MODULES_TS: "css-modules-typescript",
|
|
36148
36190
|
MINI_CSS_EXTRACT: "mini-css-extract"
|
|
36149
36191
|
},
|
|
@@ -36169,12 +36211,14 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36169
36211
|
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
|
36170
36212
|
SUBRESOURCE_INTEGRITY: "subresource-integrity",
|
|
36171
36213
|
ASSETS_RETRY: "ASSETS_RETRY",
|
|
36172
|
-
AUTO_SET_ROOT_SIZE: "auto-set-root-size"
|
|
36214
|
+
AUTO_SET_ROOT_SIZE: "auto-set-root-size",
|
|
36215
|
+
HTML_ASYNC_CHUNK: "html-async-chunk"
|
|
36173
36216
|
},
|
|
36174
36217
|
MINIMIZER: {
|
|
36175
36218
|
JS: "js",
|
|
36176
36219
|
CSS: "css",
|
|
36177
|
-
ESBUILD: "js-css"
|
|
36220
|
+
ESBUILD: "js-css",
|
|
36221
|
+
SWC: "swc"
|
|
36178
36222
|
},
|
|
36179
36223
|
RESOLVE_PLUGIN: {
|
|
36180
36224
|
MODULE_SCOPE: "module-scope",
|
|
@@ -36213,6 +36257,54 @@ var require_version = __commonJSMin((exports) => {
|
|
|
36213
36257
|
};
|
|
36214
36258
|
exports.isReact18 = isReact18;
|
|
36215
36259
|
});
|
|
36260
|
+
var require_plugin = __commonJSMin((exports) => {
|
|
36261
|
+
"use strict";
|
|
36262
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36263
|
+
exports.getInternalPlugins = void 0;
|
|
36264
|
+
var constants_1 = require_constants();
|
|
36265
|
+
var is_1 = require_is();
|
|
36266
|
+
function getInternalPlugins(appDirectory, internalPlugins = constants_1.INTERNAL_CLI_PLUGINS) {
|
|
36267
|
+
return [
|
|
36268
|
+
...Object.keys(internalPlugins).filter((name4) => {
|
|
36269
|
+
const config = internalPlugins[name4];
|
|
36270
|
+
if (typeof config !== "string" && config.forced === true) {
|
|
36271
|
+
return true;
|
|
36272
|
+
}
|
|
36273
|
+
return (0, is_1.isDepExists)(appDirectory, name4);
|
|
36274
|
+
}).map((name4) => {
|
|
36275
|
+
const config = internalPlugins[name4];
|
|
36276
|
+
if (typeof config !== "string") {
|
|
36277
|
+
return config.path;
|
|
36278
|
+
} else {
|
|
36279
|
+
return config;
|
|
36280
|
+
}
|
|
36281
|
+
})
|
|
36282
|
+
];
|
|
36283
|
+
}
|
|
36284
|
+
exports.getInternalPlugins = getInternalPlugins;
|
|
36285
|
+
});
|
|
36286
|
+
var require_routes = __commonJSMin((exports) => {
|
|
36287
|
+
"use strict";
|
|
36288
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
36289
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
36290
|
+
};
|
|
36291
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36292
|
+
exports.getRouteId = exports.getPathWithoutExt = void 0;
|
|
36293
|
+
var path_1 = __importDefault(__require("path"));
|
|
36294
|
+
var path_2 = require_path();
|
|
36295
|
+
var getPathWithoutExt = (filename) => {
|
|
36296
|
+
const extname = path_1.default.extname(filename);
|
|
36297
|
+
return filename.slice(0, -extname.length);
|
|
36298
|
+
};
|
|
36299
|
+
exports.getPathWithoutExt = getPathWithoutExt;
|
|
36300
|
+
var getRouteId = (componentPath, routesDir, entryName) => {
|
|
36301
|
+
const relativePath = (0, path_2.normalizeToPosixPath)(path_1.default.relative(routesDir, componentPath));
|
|
36302
|
+
const pathWithoutExt = (0, exports.getPathWithoutExt)(relativePath);
|
|
36303
|
+
const id = `${entryName}_${pathWithoutExt}`;
|
|
36304
|
+
return id;
|
|
36305
|
+
};
|
|
36306
|
+
exports.getRouteId = getRouteId;
|
|
36307
|
+
});
|
|
36216
36308
|
var require_dist = __commonJSMin((exports) => {
|
|
36217
36309
|
"use strict";
|
|
36218
36310
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -36259,6 +36351,7 @@ var require_dist = __commonJSMin((exports) => {
|
|
|
36259
36351
|
__exportStar(require_runtimeExports(), exports);
|
|
36260
36352
|
__exportStar(require_readTsConfig(), exports);
|
|
36261
36353
|
__exportStar(require_path(), exports);
|
|
36354
|
+
__exportStar(require_pathSerializer(), exports);
|
|
36262
36355
|
__exportStar(require_generateMetaTags(), exports);
|
|
36263
36356
|
__exportStar(require_prettyInstructions(), exports);
|
|
36264
36357
|
__exportStar(require_alias(), exports);
|
|
@@ -36273,6 +36366,8 @@ var require_dist = __commonJSMin((exports) => {
|
|
|
36273
36366
|
__exportStar(require_analyzeProject(), exports);
|
|
36274
36367
|
__exportStar(require_chainId(), exports);
|
|
36275
36368
|
__exportStar(require_version(), exports);
|
|
36369
|
+
__exportStar(require_plugin(), exports);
|
|
36370
|
+
__exportStar(require_routes(), exports);
|
|
36276
36371
|
});
|
|
36277
36372
|
var require_constants2 = __commonJSMin((exports) => {
|
|
36278
36373
|
"use strict";
|
|
@@ -61433,145 +61528,6 @@ var require_dotenv_expand2 = __commonJSMin((exports, module2) => {
|
|
|
61433
61528
|
module2.exports = a;
|
|
61434
61529
|
})();
|
|
61435
61530
|
});
|
|
61436
|
-
var require_browsers3 = __commonJSMin((exports, module2) => {
|
|
61437
|
-
module2.exports = { A: "ie", B: "edge", C: "firefox", D: "chrome", E: "safari", F: "opera", G: "ios_saf", H: "op_mini", I: "android", J: "bb", K: "op_mob", L: "and_chr", M: "and_ff", N: "ie_mob", O: "and_uc", P: "samsung", Q: "and_qq", R: "baidu", S: "kaios" };
|
|
61438
|
-
});
|
|
61439
|
-
var require_browsers4 = __commonJSMin((exports, module2) => {
|
|
61440
|
-
module2.exports.browsers = require_browsers3();
|
|
61441
|
-
});
|
|
61442
|
-
var require_browserVersions3 = __commonJSMin((exports, module2) => {
|
|
61443
|
-
module2.exports = { "0": "30", "1": "31", "2": "32", "3": "33", "4": "34", "5": "35", "6": "36", "7": "37", "8": "38", "9": "39", A: "10", B: "11", C: "12", D: "7", E: "8", F: "9", G: "15", H: "104", I: "4", J: "6", K: "13", L: "14", M: "16", N: "17", O: "18", P: "79", Q: "80", R: "81", S: "83", T: "84", U: "85", V: "86", W: "87", X: "88", Y: "89", Z: "90", a: "101", b: "64", c: "91", d: "92", e: "93", f: "94", g: "95", h: "96", i: "97", j: "98", k: "99", l: "100", m: "102", n: "103", o: "5", p: "19", q: "20", r: "21", s: "22", t: "23", u: "24", v: "25", w: "26", x: "27", y: "28", z: "29", AB: "40", BB: "41", CB: "42", DB: "43", EB: "44", FB: "45", GB: "46", HB: "47", IB: "48", JB: "49", KB: "50", LB: "51", MB: "52", NB: "53", OB: "54", PB: "55", QB: "56", RB: "57", SB: "58", TB: "60", UB: "62", VB: "63", WB: "65", XB: "66", YB: "67", ZB: "68", aB: "69", bB: "70", cB: "71", dB: "72", eB: "73", fB: "74", gB: "75", hB: "76", iB: "77", jB: "78", kB: "11.1", lB: "12.1", mB: "16.0", nB: "3", oB: "59", pB: "61", qB: "82", rB: "105", sB: "3.2", tB: "10.1", uB: "15.2-15.3", vB: "15.4", wB: "15.5", xB: "11.5", yB: "4.2-4.3", zB: "5.5", "0B": "2", "1B": "3.5", "2B": "3.6", "3B": "106", "4B": "107", "5B": "3.1", "6B": "5.1", "7B": "6.1", "8B": "7.1", "9B": "9.1", AC: "13.1", BC: "14.1", CC: "15.1", DC: "15.6", EC: "TP", FC: "9.5-9.6", GC: "10.0-10.1", HC: "10.5", IC: "10.6", JC: "11.6", KC: "4.0-4.1", LC: "5.0-5.1", MC: "6.0-6.1", NC: "7.0-7.1", OC: "8.1-8.4", PC: "9.0-9.2", QC: "9.3", RC: "10.0-10.2", SC: "10.3", TC: "11.0-11.2", UC: "11.3-11.4", VC: "12.0-12.1", WC: "12.2-12.5", XC: "13.0-13.1", YC: "13.2", ZC: "13.3", aC: "13.4-13.7", bC: "14.0-14.4", cC: "14.5-14.8", dC: "15.0-15.1", eC: "all", fC: "2.1", gC: "2.2", hC: "2.3", iC: "4.1", jC: "4.4", kC: "4.4.3-4.4.4", lC: "12.12", mC: "5.0-5.4", nC: "6.2-6.4", oC: "7.2-7.4", pC: "8.2", qC: "9.2", rC: "11.1-11.2", sC: "12.0", tC: "13.0", uC: "14.0", vC: "15.0", wC: "17.0", xC: "10.4", yC: "7.12", zC: "2.5" };
|
|
61444
|
-
});
|
|
61445
|
-
var require_browserVersions4 = __commonJSMin((exports, module2) => {
|
|
61446
|
-
module2.exports.browserVersions = require_browserVersions3();
|
|
61447
|
-
});
|
|
61448
|
-
var require_agents3 = __commonJSMin((exports, module2) => {
|
|
61449
|
-
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.022212, F: 0.059232, A: 556471e-8, B: 0.466452, zB: 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "zB", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { zB: 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 3702e-6, K: 4267e-6, L: 4268e-6, G: 7404e-6, M: 3702e-6, N: 7404e-6, O: 0.022212, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 3702e-6, U: 3702e-6, V: 3801e-6, W: 7404e-6, X: 4318e-6, Y: 3702e-6, Z: 4118e-6, c: 3939e-6, d: 7404e-6, e: 4118e-6, f: 3939e-6, g: 3801e-6, h: 7404e-6, i: 7404e-6, j: 7404e-6, k: 0.011106, l: 0.014808, a: 0.066636, m: 0.12957, n: 3.72421, H: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "a", "m", "n", "H", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, c: 1622073600, d: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, a: 1651190400, m: 1653955200, n: 1655942400, H: 1659657600 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 8322e-6, "1": 8928e-6, "2": 4471e-6, "3": 9284e-6, "4": 4707e-6, "5": 9076e-6, "6": 7404e-6, "7": 4783e-6, "8": 4271e-6, "9": 4783e-6, "0B": 4118e-6, nB: 4271e-6, I: 0.01851, o: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7404e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, p: 4443e-6, q: 4283e-6, r: 8322e-6, s: 0.013698, t: 4161e-6, u: 8786e-6, v: 4118e-6, w: 4317e-6, x: 4393e-6, y: 4418e-6, z: 8834e-6, AB: 487e-5, BB: 5029e-6, CB: 47e-4, DB: 0.09255, EB: 7404e-6, FB: 3867e-6, GB: 4525e-6, HB: 4293e-6, IB: 3702e-6, JB: 4538e-6, KB: 8282e-6, LB: 0.011601, MB: 0.059232, NB: 0.011601, OB: 7602e-6, PB: 3801e-6, QB: 7404e-6, RB: 0.011601, SB: 3939e-6, oB: 3702e-6, TB: 3801e-6, pB: 4356e-6, UB: 4425e-6, VB: 8322e-6, b: 415e-5, WB: 4267e-6, XB: 3801e-6, YB: 4267e-6, ZB: 7404e-6, aB: 415e-5, bB: 4293e-6, cB: 4425e-6, dB: 3702e-6, eB: 415e-5, fB: 415e-5, gB: 4318e-6, hB: 4356e-6, iB: 3702e-6, jB: 0.03702, P: 3702e-6, Q: 3702e-6, R: 0.014808, qB: 3702e-6, S: 3702e-6, T: 3702e-6, U: 4268e-6, V: 3801e-6, W: 7404e-6, X: 0.011106, Y: 7404e-6, Z: 7404e-6, c: 0.085146, d: 3801e-6, e: 3702e-6, f: 0.022212, g: 0.011106, h: 7404e-6, i: 7404e-6, j: 7404e-6, k: 0.022212, l: 0.029616, a: 0.12957, m: 2.01019, n: 0.248034, H: 0, rB: 0, "1B": 8786e-6, "2B": 487e-5 }, B: "moz", C: ["0B", "nB", "1B", "2B", "I", "o", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "oB", "TB", "pB", "UB", "VB", "b", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "hB", "iB", "jB", "P", "Q", "R", "qB", "S", "T", "U", "V", "W", "X", "Y", "Z", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "a", "m", "n", "H", "rB", ""], E: "Firefox", F: { "0": 1402358400, "1": 1405987200, "2": 1409616e3, "3": 1413244800, "4": 1417392e3, "5": 1421107200, "6": 1424736e3, "7": 1428278400, "8": 1431475200, "9": 1435881600, "0B": 1161648e3, nB: 1213660800, "1B": 124632e4, "2B": 1264032e3, I: 1300752e3, o: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, p: 1357603200, q: 1361232e3, r: 1364860800, s: 1368489600, t: 1372118400, u: 1375747200, v: 1379376e3, w: 1386633600, x: 1391472e3, y: 1395100800, z: 1398729600, AB: 1439251200, BB: 144288e4, CB: 1446508800, DB: 1450137600, EB: 1453852800, FB: 1457395200, GB: 1461628800, HB: 1465257600, IB: 1470096e3, JB: 1474329600, KB: 1479168e3, LB: 1485216e3, MB: 1488844800, NB: 149256e4, OB: 1497312e3, PB: 1502150400, QB: 1506556800, RB: 1510617600, SB: 1516665600, oB: 1520985600, TB: 1525824e3, pB: 1529971200, UB: 1536105600, VB: 1540252800, b: 1544486400, WB: 154872e4, XB: 1552953600, YB: 1558396800, ZB: 1562630400, aB: 1567468800, bB: 1571788800, cB: 1575331200, dB: 1578355200, eB: 1581379200, fB: 1583798400, gB: 1586304e3, hB: 1588636800, iB: 1591056e3, jB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, qB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400, Y: 1622505600, Z: 1626134400, c: 1628553600, d: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, a: 1653955200, m: 1656374400, n: 1658793600, H: null, rB: null } }, D: { A: { "0": 8322e-6, "1": 8596e-6, "2": 4566e-6, "3": 4118e-6, "4": 7404e-6, "5": 3702e-6, "6": 4335e-6, "7": 4464e-6, "8": 0.01851, "9": 3867e-6, I: 4706e-6, o: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, p: 8322e-6, q: 4393e-6, r: 4317e-6, s: 7404e-6, t: 8786e-6, u: 3939e-6, v: 4461e-6, w: 4141e-6, x: 4326e-6, y: 47e-4, z: 4538e-6, AB: 0.014808, BB: 3702e-6, CB: 7734e-6, DB: 3702e-6, EB: 3867e-6, FB: 3867e-6, GB: 3867e-6, HB: 0.011106, IB: 0.01851, JB: 0.051828, KB: 3867e-6, LB: 3801e-6, MB: 7404e-6, NB: 0.011106, OB: 3867e-6, PB: 3702e-6, QB: 0.033318, RB: 3702e-6, SB: 3702e-6, oB: 3702e-6, TB: 0.011106, pB: 0.011106, UB: 7404e-6, VB: 0.011106, b: 3702e-6, WB: 0.011106, XB: 0.025914, YB: 0.011106, ZB: 7404e-6, aB: 0.066636, bB: 0.033318, cB: 0.014808, dB: 0.022212, eB: 7404e-6, fB: 0.040722, gB: 0.048126, hB: 0.05553, iB: 0.014808, jB: 0.033318, P: 0.173994, Q: 0.051828, R: 0.03702, S: 0.096252, T: 0.044424, U: 0.07404, V: 0.066636, W: 0.085146, X: 0.022212, Y: 0.044424, Z: 0.029616, c: 0.059232, d: 0.059232, e: 0.044424, f: 0.048126, g: 0.029616, h: 0.085146, i: 0.088848, j: 0.103656, k: 0.103656, l: 0.16659, a: 0.25914, m: 1.23647, n: 18.8913, H: 0.022212, rB: 0.01851, "3B": 7404e-6, "4B": 0 }, B: "webkit", C: ["", "", "", "", "I", "o", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "oB", "TB", "pB", "UB", "VB", "b", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "hB", "iB", "jB", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "a", "m", "n", "H", "rB", "3B", "4B"], E: "Chrome", F: { "0": 1376956800, "1": 1384214400, "2": 1389657600, "3": 1392940800, "4": 1397001600, "5": 1400544e3, "6": 1405468800, "7": 1409011200, "8": 141264e4, "9": 1416268800, I: 1264377600, o: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, p: 1332892800, q: 133704e4, r: 1340668800, s: 1343692800, t: 1348531200, u: 1352246400, v: 1357862400, w: 1361404800, x: 1364428800, y: 1369094400, z: 1374105600, AB: 1421798400, BB: 1425513600, CB: 1429401600, DB: 143208e4, EB: 1437523200, FB: 1441152e3, GB: 1444780800, HB: 1449014400, IB: 1453248e3, JB: 1456963200, KB: 1460592e3, LB: 1464134400, MB: 1469059200, NB: 1472601600, OB: 1476230400, PB: 1480550400, QB: 1485302400, RB: 1489017600, SB: 149256e4, oB: 1496707200, TB: 1500940800, pB: 1504569600, UB: 1508198400, VB: 1512518400, b: 1516752e3, WB: 1520294400, XB: 1523923200, YB: 1527552e3, ZB: 1532390400, aB: 1536019200, bB: 1539648e3, cB: 1543968e3, dB: 154872e4, eB: 1552348800, fB: 1555977600, gB: 1559606400, hB: 1564444800, iB: 1568073600, jB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, c: 1621987200, d: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, a: 1650931200, m: 1653350400, n: 1655769600, H: 1659398400, rB: null, "3B": null, "4B": null } }, E: { A: { I: 0, o: 8322e-6, J: 4656e-6, D: 4465e-6, E: 4356e-6, F: 4891e-6, A: 4425e-6, B: 4318e-6, C: 3801e-6, K: 0.029616, L: 0.125868, G: 0.03702, "5B": 0, sB: 8692e-6, "6B": 7404e-6, "7B": 456e-5, "8B": 4283e-6, "9B": 0.014808, tB: 7404e-6, kB: 0.022212, lB: 0.040722, AC: 0.251736, BC: 0.359094, CC: 0.066636, uB: 0.066636, vB: 0.251736, wB: 1.77696, DC: 0.077742, mB: 0.011106, EC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "5B", "sB", "I", "o", "6B", "J", "7B", "D", "8B", "E", "F", "9B", "A", "tB", "B", "kB", "C", "lB", "K", "AC", "L", "BC", "G", "CC", "uB", "vB", "wB", "DC", "mB", "EC", ""], E: "Safari", F: { "5B": 1205798400, sB: 1226534400, I: 1244419200, o: 1275868800, "6B": 131112e4, J: 1343174400, "7B": 13824e5, D: 13824e5, "8B": 1410998400, E: 1413417600, F: 1443657600, "9B": 1458518400, A: 1474329600, tB: 1490572800, B: 1505779200, kB: 1522281600, C: 1537142400, lB: 1553472e3, K: 1568851200, AC: 1585008e3, L: 1600214400, BC: 1619395200, G: 1632096e3, CC: 1635292800, uB: 1639353600, vB: 1647216e3, wB: 1652745600, DC: 1658275200, mB: null, EC: null } }, F: { A: { "0": 4879e-6, "1": 3702e-6, "2": 5152e-6, "3": 5014e-6, "4": 9758e-6, "5": 4879e-6, "6": 3702e-6, "7": 4283e-6, "8": 4367e-6, "9": 4534e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, p: 6015e-6, q: 4879e-6, r: 6597e-6, s: 6597e-6, t: 0.013434, u: 6702e-6, v: 6015e-6, w: 5595e-6, x: 4393e-6, y: 7404e-6, z: 4879e-6, AB: 7404e-6, BB: 4227e-6, CB: 4418e-6, DB: 4161e-6, EB: 4227e-6, FB: 4725e-6, GB: 0.011106, HB: 8942e-6, IB: 4707e-6, JB: 4827e-6, KB: 4707e-6, LB: 4707e-6, MB: 4326e-6, NB: 8922e-6, OB: 0.014349, PB: 4425e-6, QB: 472e-5, RB: 4425e-6, SB: 4425e-6, TB: 472e-5, UB: 4532e-6, VB: 4566e-6, b: 0.02283, WB: 867e-5, XB: 4656e-6, YB: 4642e-6, ZB: 3867e-6, aB: 944e-5, bB: 4293e-6, cB: 3867e-6, dB: 4298e-6, eB: 0.096692, fB: 4201e-6, gB: 4141e-6, hB: 4257e-6, iB: 3939e-6, jB: 8236e-6, P: 3702e-6, Q: 3939e-6, R: 8514e-6, qB: 3939e-6, S: 3939e-6, T: 3702e-6, U: 0.025914, V: 0.011106, W: 0.029616, X: 0.681168, Y: 0.266544, Z: 0, FC: 685e-5, GC: 0, HC: 8392e-6, IC: 4706e-6, kB: 6229e-6, xB: 4879e-6, JC: 8786e-6, lB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "FC", "GC", "HC", "IC", "B", "kB", "xB", "JC", "C", "lB", "G", "M", "N", "O", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "b", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "hB", "iB", "jB", "P", "Q", "R", "qB", "S", "T", "U", "V", "W", "X", "Y", "Z", "", ""], E: "Opera", F: { "0": 1433808e3, "1": 1438646400, "2": 1442448e3, "3": 1445904e3, "4": 1449100800, "5": 1454371200, "6": 1457308800, "7": 146232e4, "8": 1465344e3, "9": 1470096e3, F: 1150761600, FC: 1223424e3, GC: 1251763200, HC: 1267488e3, IC: 1277942400, B: 1292457600, kB: 1302566400, xB: 1309219200, JC: 1323129600, C: 1323129600, lB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, p: 1390867200, q: 1393891200, r: 1399334400, s: 1401753600, t: 1405987200, u: 1409616e3, v: 1413331200, w: 1417132800, x: 1422316800, y: 1425945600, z: 1430179200, AB: 1474329600, BB: 1477267200, CB: 1481587200, DB: 1486425600, EB: 1490054400, FB: 1494374400, GB: 1498003200, HB: 1502236800, IB: 1506470400, JB: 1510099200, KB: 1515024e3, LB: 1517961600, MB: 1521676800, NB: 1525910400, OB: 1530144e3, PB: 1534982400, QB: 1537833600, RB: 1543363200, SB: 1548201600, TB: 1554768e3, UB: 1561593600, VB: 1566259200, b: 1570406400, WB: 1573689600, XB: 1578441600, YB: 1583971200, ZB: 1587513600, aB: 1592956800, bB: 1595894400, cB: 1600128e3, dB: 1603238400, eB: 161352e4, fB: 1612224e3, gB: 1616544e3, hB: 1619568e3, iB: 1623715200, jB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, qB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: null }, D: { F: "o", B: "o", C: "o", FC: "o", GC: "o", HC: "o", IC: "o", kB: "o", xB: "o", JC: "o", lB: "o" } }, G: { A: { E: 0, sB: 0, KC: 0, yB: 311971e-8, LC: 467956e-8, MC: 467956e-8, NC: 0.0140387, OC: 623942e-8, PC: 0.0187183, QC: 0.074873, RC: 779927e-8, SC: 0.0873518, TC: 0.0421161, UC: 0.0311971, VC: 0.0296372, WC: 0.547509, XC: 0.0233978, YC: 0.0124788, ZC: 0.0545949, aC: 0.180943, bC: 0.508512, cC: 1.15273, dC: 0.355647, uB: 0.608343, vB: 1.01079, wB: 10.4105, mB: 0.0701934 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "sB", "KC", "yB", "LC", "MC", "NC", "E", "OC", "PC", "QC", "RC", "SC", "TC", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "cC", "dC", "uB", "vB", "wB", "mB", "", ""], E: "Safari on iOS", F: { sB: 1270252800, KC: 1283904e3, yB: 1299628800, LC: 1331078400, MC: 1359331200, NC: 1394409600, E: 1410912e3, OC: 1413763200, PC: 1442361600, QC: 1458518400, RC: 1473724800, SC: 1490572800, TC: 1505779200, UC: 1522281600, VC: 1537142400, WC: 1553472e3, XC: 1568851200, YC: 1572220800, ZC: 1580169600, aC: 1585008e3, bC: 1600214400, cC: 1619395200, dC: 1632096e3, uB: 1639353600, vB: 1647216e3, wB: 1652659200, mB: null } }, H: { A: { eC: 0.954006 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "eC", "", "", ""], E: "Opera Mini", F: { eC: 1426464e3 } }, I: { A: { nB: 0, I: 0.0241567, H: 0, fC: 0, gC: 0, hC: 0, iC: 0.0362351, yB: 0.066431, jC: 0, kC: 0.314037 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "fC", "gC", "hC", "nB", "I", "iC", "yB", "jC", "kC", "H", "", "", ""], E: "Android Browser", F: { fC: 1256515200, gC: 1274313600, hC: 1291593600, nB: 1298332800, I: 1318896e3, iC: 1341792e3, yB: 1374624e3, jC: 1386547200, kC: 1401667200, H: 1659484800 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, b: 0.0111391, kB: 0, xB: 0, lB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "kB", "xB", "C", "lB", "b", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, kB: 1314835200, xB: 1318291200, C: 1330300800, lB: 1349740800, b: 1613433600 }, D: { b: "webkit" } }, L: { A: { H: 42.8703 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Chrome for Android", F: { H: 1659484800 } }, M: { A: { a: 0.3149 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "a", "", "", ""], E: "Firefox for Android", F: { a: 1653955200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { lC: 1.01398 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "lC", "", "", ""], E: "UC Browser for Android", F: { lC: 1471392e3 }, D: { lC: "webkit" } }, P: { A: { I: 0.20822, mC: 0.0103543, nC: 0.010304, oC: 0.0728769, pC: 0.0103584, qC: 0.010411, tB: 0.0105043, rC: 0.0416439, sC: 0.020822, tC: 0.0832878, uC: 0.0728769, vC: 0.0832878, mB: 0.166576, wC: 2.30083 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "mC", "nC", "oC", "pC", "qC", "tB", "rC", "sC", "tC", "uC", "vC", "mB", "wC", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, mC: 1481846400, nC: 1509408e3, oC: 1528329600, pC: 1546128e3, qC: 1554163200, tB: 1567900800, rC: 1582588800, sC: 1593475200, tC: 1605657600, uC: 1618531200, vC: 1629072e3, mB: 1640736e3, wC: 1651708800 } }, Q: { A: { xC: 0.239324 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "xC", "", "", ""], E: "QQ Browser", F: { xC: 1589846400 } }, R: { A: { yC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "yC", "", "", ""], E: "Baidu Browser", F: { yC: 1491004800 } }, S: { A: { zC: 0.03149 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "zC", "", "", ""], E: "KaiOS Browser", F: { zC: 1527811200 } } };
|
|
61450
|
-
});
|
|
61451
|
-
var require_agents4 = __commonJSMin((exports, module2) => {
|
|
61452
|
-
"use strict";
|
|
61453
|
-
var browsers = require_browsers4().browsers;
|
|
61454
|
-
var versions = require_browserVersions4().browserVersions;
|
|
61455
|
-
var agentsData = require_agents3();
|
|
61456
|
-
function unpackBrowserVersions(versionsData) {
|
|
61457
|
-
return Object.keys(versionsData).reduce((usage, version4) => {
|
|
61458
|
-
usage[versions[version4]] = versionsData[version4];
|
|
61459
|
-
return usage;
|
|
61460
|
-
}, {});
|
|
61461
|
-
}
|
|
61462
|
-
module2.exports.agents = Object.keys(agentsData).reduce((map, key) => {
|
|
61463
|
-
let versionsData = agentsData[key];
|
|
61464
|
-
map[browsers[key]] = Object.keys(versionsData).reduce((data, entry) => {
|
|
61465
|
-
if (entry === "A") {
|
|
61466
|
-
data.usage_global = unpackBrowserVersions(versionsData[entry]);
|
|
61467
|
-
} else if (entry === "C") {
|
|
61468
|
-
data.versions = versionsData[entry].reduce((list, version4) => {
|
|
61469
|
-
if (version4 === "") {
|
|
61470
|
-
list.push(null);
|
|
61471
|
-
} else {
|
|
61472
|
-
list.push(versions[version4]);
|
|
61473
|
-
}
|
|
61474
|
-
return list;
|
|
61475
|
-
}, []);
|
|
61476
|
-
} else if (entry === "D") {
|
|
61477
|
-
data.prefix_exceptions = unpackBrowserVersions(versionsData[entry]);
|
|
61478
|
-
} else if (entry === "E") {
|
|
61479
|
-
data.browser = versionsData[entry];
|
|
61480
|
-
} else if (entry === "F") {
|
|
61481
|
-
data.release_date = Object.keys(versionsData[entry]).reduce((map2, key2) => {
|
|
61482
|
-
map2[versions[key2]] = versionsData[entry][key2];
|
|
61483
|
-
return map2;
|
|
61484
|
-
}, {});
|
|
61485
|
-
} else {
|
|
61486
|
-
data.prefix = versionsData[entry];
|
|
61487
|
-
}
|
|
61488
|
-
return data;
|
|
61489
|
-
}, {});
|
|
61490
|
-
return map;
|
|
61491
|
-
}, {});
|
|
61492
|
-
});
|
|
61493
|
-
var require_statuses2 = __commonJSMin((exports, module2) => {
|
|
61494
|
-
module2.exports = {
|
|
61495
|
-
1: "ls",
|
|
61496
|
-
2: "rec",
|
|
61497
|
-
3: "pr",
|
|
61498
|
-
4: "cr",
|
|
61499
|
-
5: "wd",
|
|
61500
|
-
6: "other",
|
|
61501
|
-
7: "unoff"
|
|
61502
|
-
};
|
|
61503
|
-
});
|
|
61504
|
-
var require_supported2 = __commonJSMin((exports, module2) => {
|
|
61505
|
-
module2.exports = {
|
|
61506
|
-
y: 1 << 0,
|
|
61507
|
-
n: 1 << 1,
|
|
61508
|
-
a: 1 << 2,
|
|
61509
|
-
p: 1 << 3,
|
|
61510
|
-
u: 1 << 4,
|
|
61511
|
-
x: 1 << 5,
|
|
61512
|
-
d: 1 << 6
|
|
61513
|
-
};
|
|
61514
|
-
});
|
|
61515
|
-
var require_feature2 = __commonJSMin((exports, module2) => {
|
|
61516
|
-
"use strict";
|
|
61517
|
-
var statuses = require_statuses2();
|
|
61518
|
-
var supported = require_supported2();
|
|
61519
|
-
var browsers = require_browsers4().browsers;
|
|
61520
|
-
var versions = require_browserVersions4().browserVersions;
|
|
61521
|
-
var MATH2LOG = Math.log(2);
|
|
61522
|
-
function unpackSupport(cipher) {
|
|
61523
|
-
let stats = Object.keys(supported).reduce((list, support) => {
|
|
61524
|
-
if (cipher & supported[support])
|
|
61525
|
-
list.push(support);
|
|
61526
|
-
return list;
|
|
61527
|
-
}, []);
|
|
61528
|
-
let notes = cipher >> 7;
|
|
61529
|
-
let notesArray = [];
|
|
61530
|
-
while (notes) {
|
|
61531
|
-
let note = Math.floor(Math.log(notes) / MATH2LOG) + 1;
|
|
61532
|
-
notesArray.unshift(`#${note}`);
|
|
61533
|
-
notes -= Math.pow(2, note - 1);
|
|
61534
|
-
}
|
|
61535
|
-
return stats.concat(notesArray).join(" ");
|
|
61536
|
-
}
|
|
61537
|
-
function unpackFeature(packed) {
|
|
61538
|
-
let unpacked = { status: statuses[packed.B], title: packed.C };
|
|
61539
|
-
unpacked.stats = Object.keys(packed.A).reduce((browserStats, key) => {
|
|
61540
|
-
let browser2 = packed.A[key];
|
|
61541
|
-
browserStats[browsers[key]] = Object.keys(browser2).reduce((stats, support) => {
|
|
61542
|
-
let packedVersions = browser2[support].split(" ");
|
|
61543
|
-
let unpacked2 = unpackSupport(support);
|
|
61544
|
-
packedVersions.forEach((v) => stats[versions[v]] = unpacked2);
|
|
61545
|
-
return stats;
|
|
61546
|
-
}, {});
|
|
61547
|
-
return browserStats;
|
|
61548
|
-
}, {});
|
|
61549
|
-
return unpacked;
|
|
61550
|
-
}
|
|
61551
|
-
module2.exports = unpackFeature;
|
|
61552
|
-
module2.exports.default = unpackFeature;
|
|
61553
|
-
});
|
|
61554
|
-
var require_region2 = __commonJSMin((exports, module2) => {
|
|
61555
|
-
"use strict";
|
|
61556
|
-
var browsers = require_browsers4().browsers;
|
|
61557
|
-
function unpackRegion(packed) {
|
|
61558
|
-
return Object.keys(packed).reduce((list, browser2) => {
|
|
61559
|
-
let data = packed[browser2];
|
|
61560
|
-
list[browsers[browser2]] = Object.keys(data).reduce((memo, key) => {
|
|
61561
|
-
let stats = data[key];
|
|
61562
|
-
if (key === "_") {
|
|
61563
|
-
stats.split(" ").forEach((version4) => memo[version4] = null);
|
|
61564
|
-
} else {
|
|
61565
|
-
memo[key] = stats;
|
|
61566
|
-
}
|
|
61567
|
-
return memo;
|
|
61568
|
-
}, {});
|
|
61569
|
-
return list;
|
|
61570
|
-
}, {});
|
|
61571
|
-
}
|
|
61572
|
-
module2.exports = unpackRegion;
|
|
61573
|
-
module2.exports.default = unpackRegion;
|
|
61574
|
-
});
|
|
61575
61531
|
var require_browserslist2 = __commonJSMin((exports, module2) => {
|
|
61576
61532
|
(() => {
|
|
61577
61533
|
var e = { 923: (e2) => {
|
|
@@ -62753,13 +62709,13 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
|
|
|
62753
62709
|
e2.exports = webpackEmptyContext;
|
|
62754
62710
|
}, 768: (e2) => {
|
|
62755
62711
|
"use strict";
|
|
62756
|
-
e2.exports =
|
|
62712
|
+
e2.exports = require_agents2();
|
|
62757
62713
|
}, 711: (e2) => {
|
|
62758
62714
|
"use strict";
|
|
62759
|
-
e2.exports =
|
|
62715
|
+
e2.exports = require_feature();
|
|
62760
62716
|
}, 225: (e2) => {
|
|
62761
62717
|
"use strict";
|
|
62762
|
-
e2.exports =
|
|
62718
|
+
e2.exports = require_region();
|
|
62763
62719
|
}, 147: (e2) => {
|
|
62764
62720
|
"use strict";
|
|
62765
62721
|
e2.exports = __require("fs");
|
|
@@ -65414,7 +65370,6 @@ var require_logger2 = __commonJSMin((exports) => {
|
|
|
65414
65370
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65415
65371
|
exports.logger = exports.Logger = void 0;
|
|
65416
65372
|
var chalk_1 = __importDefault(require_chalk2());
|
|
65417
|
-
var { grey, underline } = chalk_1.default;
|
|
65418
65373
|
var LOG_LEVEL = {
|
|
65419
65374
|
error: 0,
|
|
65420
65375
|
warn: 1,
|
|
@@ -65429,13 +65384,18 @@ var require_logger2 = __commonJSMin((exports) => {
|
|
|
65429
65384
|
level: "error"
|
|
65430
65385
|
},
|
|
65431
65386
|
info: {
|
|
65432
|
-
color: "
|
|
65387
|
+
color: "cyan",
|
|
65433
65388
|
label: "info",
|
|
65434
65389
|
level: "info"
|
|
65435
65390
|
},
|
|
65391
|
+
success: {
|
|
65392
|
+
color: "green",
|
|
65393
|
+
label: "Success",
|
|
65394
|
+
level: "info"
|
|
65395
|
+
},
|
|
65436
65396
|
warn: {
|
|
65437
65397
|
color: "yellow",
|
|
65438
|
-
label: "
|
|
65398
|
+
label: "warn",
|
|
65439
65399
|
level: "warn"
|
|
65440
65400
|
},
|
|
65441
65401
|
debug: {
|
|
@@ -65447,13 +65407,10 @@ var require_logger2 = __commonJSMin((exports) => {
|
|
|
65447
65407
|
};
|
|
65448
65408
|
var DEFAULT_CONFIG = {
|
|
65449
65409
|
displayLabel: true,
|
|
65450
|
-
underlineLabel: true,
|
|
65451
65410
|
uppercaseLabel: false
|
|
65452
65411
|
};
|
|
65453
65412
|
var Logger2 = class {
|
|
65454
65413
|
constructor(options3 = {}) {
|
|
65455
|
-
this.logCount = 200;
|
|
65456
|
-
this.history = {};
|
|
65457
65414
|
this.level = options3.level || LOG_TYPES.log.level;
|
|
65458
65415
|
this.config = { ...DEFAULT_CONFIG, ...options3.config || {} };
|
|
65459
65416
|
this.types = {
|
|
@@ -65465,17 +65422,8 @@ var require_logger2 = __commonJSMin((exports) => {
|
|
|
65465
65422
|
this[type] = this._log.bind(this, type);
|
|
65466
65423
|
});
|
|
65467
65424
|
}
|
|
65468
|
-
retainLog(type, message) {
|
|
65469
|
-
if (!this.history[type]) {
|
|
65470
|
-
this.history[type] = [];
|
|
65471
|
-
}
|
|
65472
|
-
this.history[type].push(message);
|
|
65473
|
-
while (this.history[type].length > this.logCount) {
|
|
65474
|
-
this.history[type].shift();
|
|
65475
|
-
}
|
|
65476
|
-
}
|
|
65477
65425
|
_log(type, message, ...args) {
|
|
65478
|
-
if (message === void 0) {
|
|
65426
|
+
if (message === void 0 || message === null) {
|
|
65479
65427
|
console.log();
|
|
65480
65428
|
return;
|
|
65481
65429
|
}
|
|
@@ -65487,28 +65435,21 @@ var require_logger2 = __commonJSMin((exports) => {
|
|
|
65487
65435
|
const logType = this.types[type];
|
|
65488
65436
|
if (this.config.displayLabel && logType.label) {
|
|
65489
65437
|
label = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
|
65490
|
-
|
|
65491
|
-
|
|
65492
|
-
} else {
|
|
65493
|
-
label = label.padEnd(this.longestLabel.length + 1);
|
|
65494
|
-
}
|
|
65495
|
-
label = logType.color ? chalk_1.default[logType.color](label) : label;
|
|
65438
|
+
label = label.padEnd(this.longestLabel.length);
|
|
65439
|
+
label = chalk_1.default.bold(logType.color ? chalk_1.default[logType.color](label) : label);
|
|
65496
65440
|
}
|
|
65497
65441
|
if (message instanceof Error) {
|
|
65498
65442
|
if (message.stack) {
|
|
65499
65443
|
const [name4, ...rest] = message.stack.split("\n");
|
|
65500
65444
|
text = `${name4}
|
|
65501
|
-
${grey(rest.join("\n"))}`;
|
|
65445
|
+
${chalk_1.default.grey(rest.join("\n"))}`;
|
|
65502
65446
|
} else {
|
|
65503
65447
|
text = message.message;
|
|
65504
65448
|
}
|
|
65505
65449
|
} else {
|
|
65506
65450
|
text = `${message}`;
|
|
65507
65451
|
}
|
|
65508
|
-
|
|
65509
|
-
this.retainLog(type, text);
|
|
65510
|
-
}
|
|
65511
|
-
const log = label.length > 0 ? `${label} ${text}` : text;
|
|
65452
|
+
const log = label.length > 0 ? `${label} ${text}` : text;
|
|
65512
65453
|
console.log(log, ...args);
|
|
65513
65454
|
}
|
|
65514
65455
|
getLongestLabel() {
|
|
@@ -65521,21 +65462,6 @@ ${grey(rest.join("\n"))}`;
|
|
|
65521
65462
|
});
|
|
65522
65463
|
return longestLabel;
|
|
65523
65464
|
}
|
|
65524
|
-
get longestUnderlinedLabel() {
|
|
65525
|
-
return underline(this.longestLabel);
|
|
65526
|
-
}
|
|
65527
|
-
getRetainedLogs(type) {
|
|
65528
|
-
return this.history[type] || [];
|
|
65529
|
-
}
|
|
65530
|
-
clearRetainedLogs(type) {
|
|
65531
|
-
if (type) {
|
|
65532
|
-
if (this.history[type]) {
|
|
65533
|
-
this.history[type] = [];
|
|
65534
|
-
}
|
|
65535
|
-
} else {
|
|
65536
|
-
this.history = {};
|
|
65537
|
-
}
|
|
65538
|
-
}
|
|
65539
65465
|
};
|
|
65540
65466
|
exports.Logger = Logger2;
|
|
65541
65467
|
var logger = new Logger2();
|
|
@@ -66195,10 +66121,13 @@ var require_getPort2 = __commonJSMin((exports) => {
|
|
|
66195
66121
|
var net_1 = __importDefault(__require("net"));
|
|
66196
66122
|
var compiled_1 = require_compiled2();
|
|
66197
66123
|
var logger_1 = require_logger2();
|
|
66198
|
-
var getPort = async (port, tryLimits = 20) => {
|
|
66124
|
+
var getPort = async (port, { tryLimits = 20, strictPort = false } = {}) => {
|
|
66199
66125
|
if (typeof port === "string") {
|
|
66200
66126
|
port = parseInt(port, 10);
|
|
66201
66127
|
}
|
|
66128
|
+
if (strictPort) {
|
|
66129
|
+
tryLimits = 1;
|
|
66130
|
+
}
|
|
66202
66131
|
const original = port;
|
|
66203
66132
|
let found = false;
|
|
66204
66133
|
let attempts = 0;
|
|
@@ -66225,7 +66154,11 @@ var require_getPort2 = __commonJSMin((exports) => {
|
|
|
66225
66154
|
}
|
|
66226
66155
|
}
|
|
66227
66156
|
if (port !== original) {
|
|
66228
|
-
|
|
66157
|
+
if (strictPort) {
|
|
66158
|
+
throw new Error(`Port "${original}" is occupied, please choose another one.`);
|
|
66159
|
+
} else {
|
|
66160
|
+
logger_1.logger.info(`Something is already running on port ${original}. ${compiled_1.chalk.yellow(`Use port ${port} instead.`)}`);
|
|
66161
|
+
}
|
|
66229
66162
|
}
|
|
66230
66163
|
return port;
|
|
66231
66164
|
};
|
|
@@ -66679,7 +66612,7 @@ var require_watch2 = __commonJSMin((exports) => {
|
|
|
66679
66612
|
};
|
|
66680
66613
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66681
66614
|
exports.watch = exports.WatchChangeType = void 0;
|
|
66682
|
-
var
|
|
66615
|
+
var path4 = __importStar(__require("path"));
|
|
66683
66616
|
var compiled_1 = require_compiled2();
|
|
66684
66617
|
exports.WatchChangeType = {
|
|
66685
66618
|
ADD: "add",
|
|
@@ -66693,17 +66626,17 @@ var require_watch2 = __commonJSMin((exports) => {
|
|
|
66693
66626
|
});
|
|
66694
66627
|
watcher.on("ready", () => ready = true);
|
|
66695
66628
|
watcher.on("change", async (filePath) => {
|
|
66696
|
-
const changedFilePath =
|
|
66629
|
+
const changedFilePath = path4.resolve(filePath);
|
|
66697
66630
|
await runTask({ changedFilePath, changeType: exports.WatchChangeType.CHANGE });
|
|
66698
66631
|
});
|
|
66699
66632
|
watcher.on("add", async (filePath) => {
|
|
66700
|
-
const changedFilePath =
|
|
66633
|
+
const changedFilePath = path4.resolve(filePath);
|
|
66701
66634
|
if (ready) {
|
|
66702
66635
|
await runTask({ changedFilePath, changeType: exports.WatchChangeType.ADD });
|
|
66703
66636
|
}
|
|
66704
66637
|
});
|
|
66705
66638
|
watcher.on("unlink", async (filePath) => {
|
|
66706
|
-
const changedFilePath =
|
|
66639
|
+
const changedFilePath = path4.resolve(filePath);
|
|
66707
66640
|
await runTask({ changedFilePath, changeType: exports.WatchChangeType.UNLINK });
|
|
66708
66641
|
});
|
|
66709
66642
|
watcher.on("error", (err) => {
|
|
@@ -66770,11 +66703,11 @@ var require_getServerConfig2 = __commonJSMin((exports) => {
|
|
|
66770
66703
|
};
|
|
66771
66704
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66772
66705
|
exports.getServerConfig = void 0;
|
|
66773
|
-
var
|
|
66706
|
+
var path4 = __importStar(__require("path"));
|
|
66774
66707
|
var constants_1 = require_constants3();
|
|
66775
66708
|
var findExists_1 = require_findExists2();
|
|
66776
66709
|
var getServerConfig = async (appDirectory, configFile) => {
|
|
66777
|
-
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) =>
|
|
66710
|
+
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) => path4.resolve(appDirectory, `${configFile}${extension}`)));
|
|
66778
66711
|
return configFilePath;
|
|
66779
66712
|
};
|
|
66780
66713
|
exports.getServerConfig = getServerConfig;
|
|
@@ -66928,10 +66861,10 @@ var require_analyzeProject2 = __commonJSMin((exports) => {
|
|
|
66928
66861
|
};
|
|
66929
66862
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66930
66863
|
exports.isApiOnly = void 0;
|
|
66931
|
-
var
|
|
66864
|
+
var path4 = __importStar(__require("path"));
|
|
66932
66865
|
var compiled_1 = require_compiled2();
|
|
66933
66866
|
var isApiOnly = async (appDirectory, entryDir) => {
|
|
66934
|
-
const srcDir =
|
|
66867
|
+
const srcDir = path4.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
|
|
66935
66868
|
const existSrc = await compiled_1.fs.pathExists(srcDir);
|
|
66936
66869
|
const options3 = (0, compiled_1.minimist)(process.argv.slice(2));
|
|
66937
66870
|
return !existSrc || Boolean(options3["api-only"]);
|
|
@@ -67037,15 +66970,20 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
|
67037
66970
|
}
|
|
67038
66971
|
};
|
|
67039
66972
|
});
|
|
67040
|
-
var
|
|
66973
|
+
var require_version2 = __commonJSMin((exports) => {
|
|
67041
66974
|
"use strict";
|
|
67042
66975
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
67043
66976
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
67044
66977
|
};
|
|
67045
66978
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67046
|
-
exports.isReact18 = void 0;
|
|
66979
|
+
exports.isReact18 = exports.getPnpmVersion = void 0;
|
|
67047
66980
|
var path_1 = __importDefault(__require("path"));
|
|
67048
66981
|
var compiled_1 = require_compiled2();
|
|
66982
|
+
async function getPnpmVersion() {
|
|
66983
|
+
const { stdout } = await (0, compiled_1.execa)("pnpm", ["--version"]);
|
|
66984
|
+
return stdout;
|
|
66985
|
+
}
|
|
66986
|
+
exports.getPnpmVersion = getPnpmVersion;
|
|
67049
66987
|
var isReact18 = (cwd) => {
|
|
67050
66988
|
const pkgPath = path_1.default.join(cwd, "package.json");
|
|
67051
66989
|
if (!compiled_1.fs.existsSync(pkgPath)) {
|
|
@@ -67122,7 +67060,7 @@ var require_dist2 = __commonJSMin((exports) => {
|
|
|
67122
67060
|
__exportStar(require_tryResolve2(), exports);
|
|
67123
67061
|
__exportStar(require_analyzeProject2(), exports);
|
|
67124
67062
|
__exportStar(require_chainId2(), exports);
|
|
67125
|
-
__exportStar(
|
|
67063
|
+
__exportStar(require_version2(), exports);
|
|
67126
67064
|
});
|
|
67127
67065
|
var require_logger3 = __commonJSMin((exports) => {
|
|
67128
67066
|
"use strict";
|
|
@@ -67300,15 +67238,15 @@ var require_nodeRequire = __commonJSMin((exports) => {
|
|
|
67300
67238
|
value: true
|
|
67301
67239
|
});
|
|
67302
67240
|
exports.nodeRequire = void 0;
|
|
67303
|
-
var nodeRequire = (
|
|
67241
|
+
var nodeRequire = (path4) => {
|
|
67304
67242
|
try {
|
|
67305
|
-
const module2 = __non_webpack_require__(
|
|
67243
|
+
const module2 = __non_webpack_require__(path4);
|
|
67306
67244
|
if (module2 !== null && module2 !== void 0 && module2.default) {
|
|
67307
67245
|
return module2.default;
|
|
67308
67246
|
}
|
|
67309
67247
|
return module2;
|
|
67310
67248
|
} catch (error) {
|
|
67311
|
-
const module2 = __require(
|
|
67249
|
+
const module2 = __require(path4);
|
|
67312
67250
|
if (module2 !== null && module2 !== void 0 && module2.default) {
|
|
67313
67251
|
return module2.default;
|
|
67314
67252
|
}
|
|
@@ -67324,9 +67262,9 @@ var require_fsExists = __commonJSMin((exports) => {
|
|
|
67324
67262
|
});
|
|
67325
67263
|
exports.fsExists = fsExists;
|
|
67326
67264
|
var _utils = require_dist2();
|
|
67327
|
-
async function fsExists(
|
|
67265
|
+
async function fsExists(path4) {
|
|
67328
67266
|
try {
|
|
67329
|
-
await _utils.fs.access(
|
|
67267
|
+
await _utils.fs.access(path4);
|
|
67330
67268
|
return true;
|
|
67331
67269
|
} catch (e) {
|
|
67332
67270
|
return false;
|
|
@@ -67988,14 +67926,14 @@ var require_cookies = __commonJSMin((exports, module2) => {
|
|
|
67988
67926
|
var utils = require_utils();
|
|
67989
67927
|
module2.exports = utils.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
67990
67928
|
return {
|
|
67991
|
-
write: function write(name4, value, expires,
|
|
67929
|
+
write: function write(name4, value, expires, path4, domain, secure) {
|
|
67992
67930
|
var cookie = [];
|
|
67993
67931
|
cookie.push(name4 + "=" + encodeURIComponent(value));
|
|
67994
67932
|
if (utils.isNumber(expires)) {
|
|
67995
67933
|
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
67996
67934
|
}
|
|
67997
|
-
if (utils.isString(
|
|
67998
|
-
cookie.push("path=" +
|
|
67935
|
+
if (utils.isString(path4)) {
|
|
67936
|
+
cookie.push("path=" + path4);
|
|
67999
67937
|
}
|
|
68000
67938
|
if (utils.isString(domain)) {
|
|
68001
67939
|
cookie.push("domain=" + domain);
|
|
@@ -69712,9 +69650,9 @@ var require_validator = __commonJSMin((exports, module2) => {
|
|
|
69712
69650
|
});
|
|
69713
69651
|
var deprecatedWarnings = {};
|
|
69714
69652
|
var currentVerArr = pkg.version.split(".");
|
|
69715
|
-
function isOlderVersion(
|
|
69653
|
+
function isOlderVersion(version5, thanVersion) {
|
|
69716
69654
|
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
69717
|
-
var destVer =
|
|
69655
|
+
var destVer = version5.split(".");
|
|
69718
69656
|
for (var i = 0; i < 3; i++) {
|
|
69719
69657
|
if (pkgVersionArr[i] > destVer[i]) {
|
|
69720
69658
|
return true;
|
|
@@ -69724,18 +69662,18 @@ var require_validator = __commonJSMin((exports, module2) => {
|
|
|
69724
69662
|
}
|
|
69725
69663
|
return false;
|
|
69726
69664
|
}
|
|
69727
|
-
validators.transitional = function transitional(validator,
|
|
69728
|
-
var isDeprecated =
|
|
69665
|
+
validators.transitional = function transitional(validator, version5, message) {
|
|
69666
|
+
var isDeprecated = version5 && isOlderVersion(version5);
|
|
69729
69667
|
function formatMessage(opt, desc) {
|
|
69730
69668
|
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
69731
69669
|
}
|
|
69732
69670
|
return function(value, opt, opts) {
|
|
69733
69671
|
if (validator === false) {
|
|
69734
|
-
throw new Error(formatMessage(opt, " has been removed in " +
|
|
69672
|
+
throw new Error(formatMessage(opt, " has been removed in " + version5));
|
|
69735
69673
|
}
|
|
69736
69674
|
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
69737
69675
|
deprecatedWarnings[opt] = true;
|
|
69738
|
-
console.warn(formatMessage(opt, " has been deprecated since v" +
|
|
69676
|
+
console.warn(formatMessage(opt, " has been deprecated since v" + version5 + " and will be removed in the near future"));
|
|
69739
69677
|
}
|
|
69740
69678
|
return validator ? validator(value, opt, opts) : true;
|
|
69741
69679
|
};
|
|
@@ -71170,10 +71108,10 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
71170
71108
|
throw new Error("need 512 bytes for header");
|
|
71171
71109
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
71172
71110
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
71173
|
-
const
|
|
71111
|
+
const path4 = split[0];
|
|
71174
71112
|
const prefix = split[1];
|
|
71175
71113
|
this.needPax = split[2];
|
|
71176
|
-
this.needPax = encString(buf, off, 100,
|
|
71114
|
+
this.needPax = encString(buf, off, 100, path4) || this.needPax;
|
|
71177
71115
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
71178
71116
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
71179
71117
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -71271,7 +71209,7 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
|
71271
71209
|
var require_pax = __commonJSMin((exports, module2) => {
|
|
71272
71210
|
"use strict";
|
|
71273
71211
|
var Header = require_header();
|
|
71274
|
-
var
|
|
71212
|
+
var path4 = __require("path");
|
|
71275
71213
|
var Pax = class {
|
|
71276
71214
|
constructor(obj, global2) {
|
|
71277
71215
|
this.atime = obj.atime || null;
|
|
@@ -71301,7 +71239,7 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
|
71301
71239
|
for (let i = 0; i < 512; i++)
|
|
71302
71240
|
buf[i] = 0;
|
|
71303
71241
|
new Header({
|
|
71304
|
-
path: ("PaxHeader/" +
|
|
71242
|
+
path: ("PaxHeader/" + path4.basename(this.path)).slice(0, 99),
|
|
71305
71243
|
mode: this.mode || 420,
|
|
71306
71244
|
uid: this.uid || null,
|
|
71307
71245
|
gid: this.gid || null,
|
|
@@ -71408,16 +71346,16 @@ var require_winchars = __commonJSMin((exports, module2) => {
|
|
|
71408
71346
|
});
|
|
71409
71347
|
var require_strip_absolute_path = __commonJSMin((exports, module2) => {
|
|
71410
71348
|
var { isAbsolute, parse } = __require("path").win32;
|
|
71411
|
-
module2.exports = (
|
|
71349
|
+
module2.exports = (path4) => {
|
|
71412
71350
|
let r = "";
|
|
71413
|
-
let parsed = parse(
|
|
71414
|
-
while (isAbsolute(
|
|
71415
|
-
const root =
|
|
71416
|
-
|
|
71351
|
+
let parsed = parse(path4);
|
|
71352
|
+
while (isAbsolute(path4) || parsed.root) {
|
|
71353
|
+
const root = path4.charAt(0) === "/" && path4.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
71354
|
+
path4 = path4.substr(root.length);
|
|
71417
71355
|
r += root;
|
|
71418
|
-
parsed = parse(
|
|
71356
|
+
parsed = parse(path4);
|
|
71419
71357
|
}
|
|
71420
|
-
return [r,
|
|
71358
|
+
return [r, path4];
|
|
71421
71359
|
};
|
|
71422
71360
|
});
|
|
71423
71361
|
var require_mode_fix = __commonJSMin((exports, module2) => {
|
|
@@ -71442,15 +71380,15 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71442
71380
|
var MiniPass = require_minipass();
|
|
71443
71381
|
var Pax = require_pax();
|
|
71444
71382
|
var Header = require_header();
|
|
71445
|
-
var
|
|
71446
|
-
var
|
|
71383
|
+
var fs3 = __require("fs");
|
|
71384
|
+
var path4 = __require("path");
|
|
71447
71385
|
var normPath = require_normalize_windows_path();
|
|
71448
71386
|
var stripSlash = require_strip_trailing_slashes();
|
|
71449
|
-
var prefixPath = (
|
|
71387
|
+
var prefixPath = (path5, prefix) => {
|
|
71450
71388
|
if (!prefix)
|
|
71451
|
-
return normPath(
|
|
71452
|
-
|
|
71453
|
-
return stripSlash(prefix) + "/" +
|
|
71389
|
+
return normPath(path5);
|
|
71390
|
+
path5 = normPath(path5).replace(/^\.(\/|$)/, "");
|
|
71391
|
+
return stripSlash(prefix) + "/" + path5;
|
|
71454
71392
|
};
|
|
71455
71393
|
var maxReadSize = 16 * 1024 * 1024;
|
|
71456
71394
|
var PROCESS = Symbol("process");
|
|
@@ -71519,7 +71457,7 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71519
71457
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
71520
71458
|
p = p.replace(/\\/g, "/");
|
|
71521
71459
|
}
|
|
71522
|
-
this.absolute = normPath(opt.absolute ||
|
|
71460
|
+
this.absolute = normPath(opt.absolute || path4.resolve(this.cwd, p));
|
|
71523
71461
|
if (this.path === "")
|
|
71524
71462
|
this.path = "./";
|
|
71525
71463
|
if (pathWarn) {
|
|
@@ -71539,7 +71477,7 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71539
71477
|
return super.emit(ev, ...data);
|
|
71540
71478
|
}
|
|
71541
71479
|
[LSTAT]() {
|
|
71542
|
-
|
|
71480
|
+
fs3.lstat(this.absolute, (er, stat) => {
|
|
71543
71481
|
if (er)
|
|
71544
71482
|
return this.emit("error", er);
|
|
71545
71483
|
this[ONLSTAT](stat);
|
|
@@ -71569,8 +71507,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71569
71507
|
[MODE](mode) {
|
|
71570
71508
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
71571
71509
|
}
|
|
71572
|
-
[PREFIX](
|
|
71573
|
-
return prefixPath(
|
|
71510
|
+
[PREFIX](path5) {
|
|
71511
|
+
return prefixPath(path5, this.prefix);
|
|
71574
71512
|
}
|
|
71575
71513
|
[HEADER]() {
|
|
71576
71514
|
if (this.type === "Directory" && this.portable)
|
|
@@ -71614,7 +71552,7 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71614
71552
|
this.end();
|
|
71615
71553
|
}
|
|
71616
71554
|
[SYMLINK]() {
|
|
71617
|
-
|
|
71555
|
+
fs3.readlink(this.absolute, (er, linkpath) => {
|
|
71618
71556
|
if (er)
|
|
71619
71557
|
return this.emit("error", er);
|
|
71620
71558
|
this[ONREADLINK](linkpath);
|
|
@@ -71627,7 +71565,7 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71627
71565
|
}
|
|
71628
71566
|
[HARDLINK](linkpath) {
|
|
71629
71567
|
this.type = "Link";
|
|
71630
|
-
this.linkpath = normPath(
|
|
71568
|
+
this.linkpath = normPath(path4.relative(this.cwd, linkpath));
|
|
71631
71569
|
this.stat.size = 0;
|
|
71632
71570
|
this[HEADER]();
|
|
71633
71571
|
this.end();
|
|
@@ -71648,7 +71586,7 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71648
71586
|
this[OPENFILE]();
|
|
71649
71587
|
}
|
|
71650
71588
|
[OPENFILE]() {
|
|
71651
|
-
|
|
71589
|
+
fs3.open(this.absolute, "r", (er, fd) => {
|
|
71652
71590
|
if (er)
|
|
71653
71591
|
return this.emit("error", er);
|
|
71654
71592
|
this[ONOPENFILE](fd);
|
|
@@ -71670,7 +71608,7 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71670
71608
|
}
|
|
71671
71609
|
[READ]() {
|
|
71672
71610
|
const { fd, buf, offset, length, pos } = this;
|
|
71673
|
-
|
|
71611
|
+
fs3.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
71674
71612
|
if (er) {
|
|
71675
71613
|
return this[CLOSE](() => this.emit("error", er));
|
|
71676
71614
|
}
|
|
@@ -71678,7 +71616,7 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71678
71616
|
});
|
|
71679
71617
|
}
|
|
71680
71618
|
[CLOSE](cb) {
|
|
71681
|
-
|
|
71619
|
+
fs3.close(this.fd, cb);
|
|
71682
71620
|
}
|
|
71683
71621
|
[ONREAD](bytesRead) {
|
|
71684
71622
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -71740,19 +71678,19 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71740
71678
|
});
|
|
71741
71679
|
var WriteEntrySync = class extends WriteEntry {
|
|
71742
71680
|
[LSTAT]() {
|
|
71743
|
-
this[ONLSTAT](
|
|
71681
|
+
this[ONLSTAT](fs3.lstatSync(this.absolute));
|
|
71744
71682
|
}
|
|
71745
71683
|
[SYMLINK]() {
|
|
71746
|
-
this[ONREADLINK](
|
|
71684
|
+
this[ONREADLINK](fs3.readlinkSync(this.absolute));
|
|
71747
71685
|
}
|
|
71748
71686
|
[OPENFILE]() {
|
|
71749
|
-
this[ONOPENFILE](
|
|
71687
|
+
this[ONOPENFILE](fs3.openSync(this.absolute, "r"));
|
|
71750
71688
|
}
|
|
71751
71689
|
[READ]() {
|
|
71752
71690
|
let threw = true;
|
|
71753
71691
|
try {
|
|
71754
71692
|
const { fd, buf, offset, length, pos } = this;
|
|
71755
|
-
const bytesRead =
|
|
71693
|
+
const bytesRead = fs3.readSync(fd, buf, offset, length, pos);
|
|
71756
71694
|
this[ONREAD](bytesRead);
|
|
71757
71695
|
threw = false;
|
|
71758
71696
|
} finally {
|
|
@@ -71769,7 +71707,7 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71769
71707
|
cb();
|
|
71770
71708
|
}
|
|
71771
71709
|
[CLOSE](cb) {
|
|
71772
|
-
|
|
71710
|
+
fs3.closeSync(this.fd);
|
|
71773
71711
|
cb();
|
|
71774
71712
|
}
|
|
71775
71713
|
};
|
|
@@ -71848,8 +71786,8 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
|
71848
71786
|
super.write(this.header.block);
|
|
71849
71787
|
readEntry.pipe(this);
|
|
71850
71788
|
}
|
|
71851
|
-
[PREFIX](
|
|
71852
|
-
return prefixPath(
|
|
71789
|
+
[PREFIX](path5) {
|
|
71790
|
+
return prefixPath(path5, this.prefix);
|
|
71853
71791
|
}
|
|
71854
71792
|
[MODE](mode) {
|
|
71855
71793
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -72250,8 +72188,8 @@ var require_yallist = __commonJSMin((exports, module2) => {
|
|
|
72250
72188
|
var require_pack = __commonJSMin((exports, module2) => {
|
|
72251
72189
|
"use strict";
|
|
72252
72190
|
var PackJob = class {
|
|
72253
|
-
constructor(
|
|
72254
|
-
this.path =
|
|
72191
|
+
constructor(path5, absolute) {
|
|
72192
|
+
this.path = path5 || "./";
|
|
72255
72193
|
this.absolute = absolute;
|
|
72256
72194
|
this.entry = null;
|
|
72257
72195
|
this.stat = null;
|
|
@@ -72289,8 +72227,8 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
72289
72227
|
var WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
72290
72228
|
var WRITE = Symbol("write");
|
|
72291
72229
|
var ONDRAIN = Symbol("ondrain");
|
|
72292
|
-
var
|
|
72293
|
-
var
|
|
72230
|
+
var fs3 = __require("fs");
|
|
72231
|
+
var path4 = __require("path");
|
|
72294
72232
|
var warner = require_warn_mixin();
|
|
72295
72233
|
var normPath = require_normalize_windows_path();
|
|
72296
72234
|
var Pack = warner(class Pack extends MiniPass {
|
|
@@ -72339,28 +72277,28 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
72339
72277
|
[WRITE](chunk) {
|
|
72340
72278
|
return super.write(chunk);
|
|
72341
72279
|
}
|
|
72342
|
-
add(
|
|
72343
|
-
this.write(
|
|
72280
|
+
add(path5) {
|
|
72281
|
+
this.write(path5);
|
|
72344
72282
|
return this;
|
|
72345
72283
|
}
|
|
72346
|
-
end(
|
|
72347
|
-
if (
|
|
72348
|
-
this.write(
|
|
72284
|
+
end(path5) {
|
|
72285
|
+
if (path5)
|
|
72286
|
+
this.write(path5);
|
|
72349
72287
|
this[ENDED] = true;
|
|
72350
72288
|
this[PROCESS]();
|
|
72351
72289
|
return this;
|
|
72352
72290
|
}
|
|
72353
|
-
write(
|
|
72291
|
+
write(path5) {
|
|
72354
72292
|
if (this[ENDED])
|
|
72355
72293
|
throw new Error("write after end");
|
|
72356
|
-
if (
|
|
72357
|
-
this[ADDTARENTRY](
|
|
72294
|
+
if (path5 instanceof ReadEntry)
|
|
72295
|
+
this[ADDTARENTRY](path5);
|
|
72358
72296
|
else
|
|
72359
|
-
this[ADDFSENTRY](
|
|
72297
|
+
this[ADDFSENTRY](path5);
|
|
72360
72298
|
return this.flowing;
|
|
72361
72299
|
}
|
|
72362
72300
|
[ADDTARENTRY](p) {
|
|
72363
|
-
const absolute = normPath(
|
|
72301
|
+
const absolute = normPath(path4.resolve(this.cwd, p.path));
|
|
72364
72302
|
if (!this.filter(p.path, p))
|
|
72365
72303
|
p.resume();
|
|
72366
72304
|
else {
|
|
@@ -72373,7 +72311,7 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
72373
72311
|
this[PROCESS]();
|
|
72374
72312
|
}
|
|
72375
72313
|
[ADDFSENTRY](p) {
|
|
72376
|
-
const absolute = normPath(
|
|
72314
|
+
const absolute = normPath(path4.resolve(this.cwd, p));
|
|
72377
72315
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
72378
72316
|
this[PROCESS]();
|
|
72379
72317
|
}
|
|
@@ -72381,7 +72319,7 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
72381
72319
|
job.pending = true;
|
|
72382
72320
|
this[JOBS] += 1;
|
|
72383
72321
|
const stat = this.follow ? "stat" : "lstat";
|
|
72384
|
-
|
|
72322
|
+
fs3[stat](job.absolute, (er, stat2) => {
|
|
72385
72323
|
job.pending = false;
|
|
72386
72324
|
this[JOBS] -= 1;
|
|
72387
72325
|
if (er)
|
|
@@ -72400,7 +72338,7 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
72400
72338
|
[READDIR](job) {
|
|
72401
72339
|
job.pending = true;
|
|
72402
72340
|
this[JOBS] += 1;
|
|
72403
|
-
|
|
72341
|
+
fs3.readdir(job.absolute, (er, entries) => {
|
|
72404
72342
|
job.pending = false;
|
|
72405
72343
|
this[JOBS] -= 1;
|
|
72406
72344
|
if (er)
|
|
@@ -72546,10 +72484,10 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
|
72546
72484
|
}
|
|
72547
72485
|
[STAT](job) {
|
|
72548
72486
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
72549
|
-
this[ONSTAT](job,
|
|
72487
|
+
this[ONSTAT](job, fs3[stat](job.absolute));
|
|
72550
72488
|
}
|
|
72551
72489
|
[READDIR](job, stat) {
|
|
72552
|
-
this[ONREADDIR](job,
|
|
72490
|
+
this[ONREADDIR](job, fs3.readdirSync(job.absolute));
|
|
72553
72491
|
}
|
|
72554
72492
|
[PIPE](job) {
|
|
72555
72493
|
const source = job.entry;
|
|
@@ -72579,8 +72517,8 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72579
72517
|
"use strict";
|
|
72580
72518
|
var MiniPass = require_minipass();
|
|
72581
72519
|
var EE = __require("events").EventEmitter;
|
|
72582
|
-
var
|
|
72583
|
-
var writev =
|
|
72520
|
+
var fs3 = __require("fs");
|
|
72521
|
+
var writev = fs3.writev;
|
|
72584
72522
|
if (!writev) {
|
|
72585
72523
|
const binding = process.binding("fs");
|
|
72586
72524
|
const FSReqWrap = binding.FSReqWrap || binding.FSReqCallback;
|
|
@@ -72620,16 +72558,16 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72620
72558
|
var _defaultFlag = Symbol("_defaultFlag");
|
|
72621
72559
|
var _errored = Symbol("_errored");
|
|
72622
72560
|
var ReadStream = class extends MiniPass {
|
|
72623
|
-
constructor(
|
|
72561
|
+
constructor(path4, opt) {
|
|
72624
72562
|
opt = opt || {};
|
|
72625
72563
|
super(opt);
|
|
72626
72564
|
this.readable = true;
|
|
72627
72565
|
this.writable = false;
|
|
72628
|
-
if (typeof
|
|
72566
|
+
if (typeof path4 !== "string")
|
|
72629
72567
|
throw new TypeError("path must be a string");
|
|
72630
72568
|
this[_errored] = false;
|
|
72631
72569
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
|
72632
|
-
this[_path] =
|
|
72570
|
+
this[_path] = path4;
|
|
72633
72571
|
this[_readSize] = opt.readSize || 16 * 1024 * 1024;
|
|
72634
72572
|
this[_reading] = false;
|
|
72635
72573
|
this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
|
|
@@ -72653,7 +72591,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72653
72591
|
throw new TypeError("this is a readable stream");
|
|
72654
72592
|
}
|
|
72655
72593
|
[_open]() {
|
|
72656
|
-
|
|
72594
|
+
fs3.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
72657
72595
|
}
|
|
72658
72596
|
[_onopen](er, fd) {
|
|
72659
72597
|
if (er)
|
|
@@ -72673,7 +72611,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72673
72611
|
const buf = this[_makeBuf]();
|
|
72674
72612
|
if (buf.length === 0)
|
|
72675
72613
|
return process.nextTick(() => this[_onread](null, 0, buf));
|
|
72676
|
-
|
|
72614
|
+
fs3.read(this[_fd], buf, 0, buf.length, null, (er, br, buf2) => this[_onread](er, br, buf2));
|
|
72677
72615
|
}
|
|
72678
72616
|
}
|
|
72679
72617
|
[_onread](er, br, buf) {
|
|
@@ -72687,7 +72625,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72687
72625
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
72688
72626
|
const fd = this[_fd];
|
|
72689
72627
|
this[_fd] = null;
|
|
72690
|
-
|
|
72628
|
+
fs3.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
72691
72629
|
}
|
|
72692
72630
|
}
|
|
72693
72631
|
[_onerror](er) {
|
|
@@ -72730,7 +72668,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72730
72668
|
[_open]() {
|
|
72731
72669
|
let threw = true;
|
|
72732
72670
|
try {
|
|
72733
|
-
this[_onopen](null,
|
|
72671
|
+
this[_onopen](null, fs3.openSync(this[_path], "r"));
|
|
72734
72672
|
threw = false;
|
|
72735
72673
|
} finally {
|
|
72736
72674
|
if (threw)
|
|
@@ -72744,7 +72682,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72744
72682
|
this[_reading] = true;
|
|
72745
72683
|
do {
|
|
72746
72684
|
const buf = this[_makeBuf]();
|
|
72747
|
-
const br = buf.length === 0 ? 0 :
|
|
72685
|
+
const br = buf.length === 0 ? 0 : fs3.readSync(this[_fd], buf, 0, buf.length, null);
|
|
72748
72686
|
if (!this[_handleChunk](br, buf))
|
|
72749
72687
|
break;
|
|
72750
72688
|
} while (true);
|
|
@@ -72760,13 +72698,13 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72760
72698
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
72761
72699
|
const fd = this[_fd];
|
|
72762
72700
|
this[_fd] = null;
|
|
72763
|
-
|
|
72701
|
+
fs3.closeSync(fd);
|
|
72764
72702
|
this.emit("close");
|
|
72765
72703
|
}
|
|
72766
72704
|
}
|
|
72767
72705
|
};
|
|
72768
72706
|
var WriteStream = class extends EE {
|
|
72769
|
-
constructor(
|
|
72707
|
+
constructor(path4, opt) {
|
|
72770
72708
|
opt = opt || {};
|
|
72771
72709
|
super(opt);
|
|
72772
72710
|
this.readable = false;
|
|
@@ -72776,7 +72714,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72776
72714
|
this[_ended] = false;
|
|
72777
72715
|
this[_needDrain] = false;
|
|
72778
72716
|
this[_queue] = [];
|
|
72779
|
-
this[_path] =
|
|
72717
|
+
this[_path] = path4;
|
|
72780
72718
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
|
72781
72719
|
this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
|
|
72782
72720
|
this[_pos] = typeof opt.start === "number" ? opt.start : null;
|
|
@@ -72807,7 +72745,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72807
72745
|
this.emit("error", er);
|
|
72808
72746
|
}
|
|
72809
72747
|
[_open]() {
|
|
72810
|
-
|
|
72748
|
+
fs3.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
72811
72749
|
}
|
|
72812
72750
|
[_onopen](er, fd) {
|
|
72813
72751
|
if (this[_defaultFlag] && this[_flags] === "r+" && er && er.code === "ENOENT") {
|
|
@@ -72846,7 +72784,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72846
72784
|
return true;
|
|
72847
72785
|
}
|
|
72848
72786
|
[_write](buf) {
|
|
72849
|
-
|
|
72787
|
+
fs3.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
72850
72788
|
}
|
|
72851
72789
|
[_onwrite](er, bw) {
|
|
72852
72790
|
if (er)
|
|
@@ -72885,7 +72823,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72885
72823
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
72886
72824
|
const fd = this[_fd];
|
|
72887
72825
|
this[_fd] = null;
|
|
72888
|
-
|
|
72826
|
+
fs3.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
72889
72827
|
}
|
|
72890
72828
|
}
|
|
72891
72829
|
};
|
|
@@ -72894,7 +72832,7 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72894
72832
|
let fd;
|
|
72895
72833
|
if (this[_defaultFlag] && this[_flags] === "r+") {
|
|
72896
72834
|
try {
|
|
72897
|
-
fd =
|
|
72835
|
+
fd = fs3.openSync(this[_path], this[_flags], this[_mode]);
|
|
72898
72836
|
} catch (er) {
|
|
72899
72837
|
if (er.code === "ENOENT") {
|
|
72900
72838
|
this[_flags] = "w";
|
|
@@ -72903,21 +72841,21 @@ var require_fs_minipass = __commonJSMin((exports) => {
|
|
|
72903
72841
|
throw er;
|
|
72904
72842
|
}
|
|
72905
72843
|
} else
|
|
72906
|
-
fd =
|
|
72844
|
+
fd = fs3.openSync(this[_path], this[_flags], this[_mode]);
|
|
72907
72845
|
this[_onopen](null, fd);
|
|
72908
72846
|
}
|
|
72909
72847
|
[_close]() {
|
|
72910
72848
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
72911
72849
|
const fd = this[_fd];
|
|
72912
72850
|
this[_fd] = null;
|
|
72913
|
-
|
|
72851
|
+
fs3.closeSync(fd);
|
|
72914
72852
|
this.emit("close");
|
|
72915
72853
|
}
|
|
72916
72854
|
}
|
|
72917
72855
|
[_write](buf) {
|
|
72918
72856
|
let threw = true;
|
|
72919
72857
|
try {
|
|
72920
|
-
this[_onwrite](null,
|
|
72858
|
+
this[_onwrite](null, fs3.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
72921
72859
|
threw = false;
|
|
72922
72860
|
} finally {
|
|
72923
72861
|
if (threw)
|
|
@@ -73309,9 +73247,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
73309
73247
|
"use strict";
|
|
73310
73248
|
var hlo = require_high_level_opt();
|
|
73311
73249
|
var Parser = require_parse();
|
|
73312
|
-
var
|
|
73250
|
+
var fs3 = __require("fs");
|
|
73313
73251
|
var fsm = require_fs_minipass();
|
|
73314
|
-
var
|
|
73252
|
+
var path4 = __require("path");
|
|
73315
73253
|
var stripSlash = require_strip_trailing_slashes();
|
|
73316
73254
|
module2.exports = (opt_, files, cb) => {
|
|
73317
73255
|
if (typeof opt_ === "function")
|
|
@@ -73346,8 +73284,8 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
73346
73284
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
73347
73285
|
const filter = opt.filter;
|
|
73348
73286
|
const mapHas = (file, r) => {
|
|
73349
|
-
const root = r ||
|
|
73350
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(
|
|
73287
|
+
const root = r || path4.parse(file).root || ".";
|
|
73288
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path4.dirname(file), root);
|
|
73351
73289
|
map.set(file, ret);
|
|
73352
73290
|
return ret;
|
|
73353
73291
|
};
|
|
@@ -73359,16 +73297,16 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
73359
73297
|
let threw = true;
|
|
73360
73298
|
let fd;
|
|
73361
73299
|
try {
|
|
73362
|
-
const stat =
|
|
73300
|
+
const stat = fs3.statSync(file);
|
|
73363
73301
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
73364
73302
|
if (stat.size < readSize)
|
|
73365
|
-
p.end(
|
|
73303
|
+
p.end(fs3.readFileSync(file));
|
|
73366
73304
|
else {
|
|
73367
73305
|
let pos = 0;
|
|
73368
73306
|
const buf = Buffer.allocUnsafe(readSize);
|
|
73369
|
-
fd =
|
|
73307
|
+
fd = fs3.openSync(file, "r");
|
|
73370
73308
|
while (pos < stat.size) {
|
|
73371
|
-
const bytesRead =
|
|
73309
|
+
const bytesRead = fs3.readSync(fd, buf, 0, readSize, pos);
|
|
73372
73310
|
pos += bytesRead;
|
|
73373
73311
|
p.write(buf.slice(0, bytesRead));
|
|
73374
73312
|
}
|
|
@@ -73378,7 +73316,7 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
73378
73316
|
} finally {
|
|
73379
73317
|
if (threw && fd) {
|
|
73380
73318
|
try {
|
|
73381
|
-
|
|
73319
|
+
fs3.closeSync(fd);
|
|
73382
73320
|
} catch (er) {
|
|
73383
73321
|
}
|
|
73384
73322
|
}
|
|
@@ -73391,7 +73329,7 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
|
73391
73329
|
const p = new Promise((resolve, reject) => {
|
|
73392
73330
|
parse.on("error", reject);
|
|
73393
73331
|
parse.on("end", resolve);
|
|
73394
|
-
|
|
73332
|
+
fs3.stat(file, (er, stat) => {
|
|
73395
73333
|
if (er)
|
|
73396
73334
|
reject(er);
|
|
73397
73335
|
else {
|
|
@@ -73414,7 +73352,7 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
73414
73352
|
var Pack = require_pack();
|
|
73415
73353
|
var fsm = require_fs_minipass();
|
|
73416
73354
|
var t = require_list();
|
|
73417
|
-
var
|
|
73355
|
+
var path4 = __require("path");
|
|
73418
73356
|
module2.exports = (opt_, files, cb) => {
|
|
73419
73357
|
if (typeof files === "function")
|
|
73420
73358
|
cb = files;
|
|
@@ -73456,7 +73394,7 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
73456
73394
|
files.forEach((file) => {
|
|
73457
73395
|
if (file.charAt(0) === "@") {
|
|
73458
73396
|
t({
|
|
73459
|
-
file:
|
|
73397
|
+
file: path4.resolve(p.cwd, file.substr(1)),
|
|
73460
73398
|
sync: true,
|
|
73461
73399
|
noResume: true,
|
|
73462
73400
|
onentry: (entry) => p.add(entry)
|
|
@@ -73471,7 +73409,7 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
|
73471
73409
|
const file = files.shift();
|
|
73472
73410
|
if (file.charAt(0) === "@") {
|
|
73473
73411
|
return t({
|
|
73474
|
-
file:
|
|
73412
|
+
file: path4.resolve(p.cwd, file.substr(1)),
|
|
73475
73413
|
noResume: true,
|
|
73476
73414
|
onentry: (entry) => p.add(entry)
|
|
73477
73415
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -73495,10 +73433,10 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73495
73433
|
"use strict";
|
|
73496
73434
|
var hlo = require_high_level_opt();
|
|
73497
73435
|
var Pack = require_pack();
|
|
73498
|
-
var
|
|
73436
|
+
var fs3 = __require("fs");
|
|
73499
73437
|
var fsm = require_fs_minipass();
|
|
73500
73438
|
var t = require_list();
|
|
73501
|
-
var
|
|
73439
|
+
var path4 = __require("path");
|
|
73502
73440
|
var Header = require_header();
|
|
73503
73441
|
module2.exports = (opt_, files, cb) => {
|
|
73504
73442
|
const opt = hlo(opt_);
|
|
@@ -73518,19 +73456,19 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73518
73456
|
let position;
|
|
73519
73457
|
try {
|
|
73520
73458
|
try {
|
|
73521
|
-
fd =
|
|
73459
|
+
fd = fs3.openSync(opt.file, "r+");
|
|
73522
73460
|
} catch (er) {
|
|
73523
73461
|
if (er.code === "ENOENT")
|
|
73524
|
-
fd =
|
|
73462
|
+
fd = fs3.openSync(opt.file, "w+");
|
|
73525
73463
|
else
|
|
73526
73464
|
throw er;
|
|
73527
73465
|
}
|
|
73528
|
-
const st =
|
|
73466
|
+
const st = fs3.fstatSync(fd);
|
|
73529
73467
|
const headBuf = Buffer.alloc(512);
|
|
73530
73468
|
POSITION:
|
|
73531
73469
|
for (position = 0; position < st.size; position += 512) {
|
|
73532
73470
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
73533
|
-
bytes =
|
|
73471
|
+
bytes = fs3.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
|
73534
73472
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
73535
73473
|
throw new Error("cannot append to compressed archives");
|
|
73536
73474
|
if (!bytes)
|
|
@@ -73551,7 +73489,7 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73551
73489
|
} finally {
|
|
73552
73490
|
if (threw) {
|
|
73553
73491
|
try {
|
|
73554
|
-
|
|
73492
|
+
fs3.closeSync(fd);
|
|
73555
73493
|
} catch (er) {
|
|
73556
73494
|
}
|
|
73557
73495
|
}
|
|
@@ -73571,7 +73509,7 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73571
73509
|
const getPos = (fd, size, cb_) => {
|
|
73572
73510
|
const cb2 = (er, pos) => {
|
|
73573
73511
|
if (er)
|
|
73574
|
-
|
|
73512
|
+
fs3.close(fd, (_) => cb_(er));
|
|
73575
73513
|
else
|
|
73576
73514
|
cb_(null, pos);
|
|
73577
73515
|
};
|
|
@@ -73585,7 +73523,7 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73585
73523
|
return cb2(er);
|
|
73586
73524
|
bufPos += bytes;
|
|
73587
73525
|
if (bufPos < 512 && bytes) {
|
|
73588
|
-
return
|
|
73526
|
+
return fs3.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
|
73589
73527
|
}
|
|
73590
73528
|
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
|
73591
73529
|
return cb2(new Error("cannot append to compressed archives"));
|
|
@@ -73603,9 +73541,9 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73603
73541
|
if (opt.mtimeCache)
|
|
73604
73542
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
73605
73543
|
bufPos = 0;
|
|
73606
|
-
|
|
73544
|
+
fs3.read(fd, headBuf, 0, 512, position, onread);
|
|
73607
73545
|
};
|
|
73608
|
-
|
|
73546
|
+
fs3.read(fd, headBuf, 0, 512, position, onread);
|
|
73609
73547
|
};
|
|
73610
73548
|
const promise = new Promise((resolve, reject) => {
|
|
73611
73549
|
p.on("error", reject);
|
|
@@ -73613,13 +73551,13 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73613
73551
|
const onopen = (er, fd) => {
|
|
73614
73552
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
73615
73553
|
flag = "w+";
|
|
73616
|
-
return
|
|
73554
|
+
return fs3.open(opt.file, flag, onopen);
|
|
73617
73555
|
}
|
|
73618
73556
|
if (er)
|
|
73619
73557
|
return reject(er);
|
|
73620
|
-
|
|
73558
|
+
fs3.fstat(fd, (er2, st) => {
|
|
73621
73559
|
if (er2)
|
|
73622
|
-
return
|
|
73560
|
+
return fs3.close(fd, () => reject(er2));
|
|
73623
73561
|
getPos(fd, st.size, (er3, position) => {
|
|
73624
73562
|
if (er3)
|
|
73625
73563
|
return reject(er3);
|
|
@@ -73634,7 +73572,7 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73634
73572
|
});
|
|
73635
73573
|
});
|
|
73636
73574
|
};
|
|
73637
|
-
|
|
73575
|
+
fs3.open(opt.file, flag, onopen);
|
|
73638
73576
|
});
|
|
73639
73577
|
return cb ? promise.then(cb, cb) : promise;
|
|
73640
73578
|
};
|
|
@@ -73642,7 +73580,7 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73642
73580
|
files.forEach((file) => {
|
|
73643
73581
|
if (file.charAt(0) === "@") {
|
|
73644
73582
|
t({
|
|
73645
|
-
file:
|
|
73583
|
+
file: path4.resolve(p.cwd, file.substr(1)),
|
|
73646
73584
|
sync: true,
|
|
73647
73585
|
noResume: true,
|
|
73648
73586
|
onentry: (entry) => p.add(entry)
|
|
@@ -73657,7 +73595,7 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
|
73657
73595
|
const file = files.shift();
|
|
73658
73596
|
if (file.charAt(0) === "@") {
|
|
73659
73597
|
return t({
|
|
73660
|
-
file:
|
|
73598
|
+
file: path4.resolve(p.cwd, file.substr(1)),
|
|
73661
73599
|
noResume: true,
|
|
73662
73600
|
onentry: (entry) => p.add(entry)
|
|
73663
73601
|
}).then((_) => addFilesAsync(p, files));
|
|
@@ -73687,29 +73625,29 @@ var require_update = __commonJSMin((exports, module2) => {
|
|
|
73687
73625
|
const filter = opt.filter;
|
|
73688
73626
|
if (!opt.mtimeCache)
|
|
73689
73627
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
|
73690
|
-
opt.filter = filter ? (
|
|
73628
|
+
opt.filter = filter ? (path4, stat) => filter(path4, stat) && !(opt.mtimeCache.get(path4) > stat.mtime) : (path4, stat) => !(opt.mtimeCache.get(path4) > stat.mtime);
|
|
73691
73629
|
};
|
|
73692
73630
|
});
|
|
73693
73631
|
var require_opts_arg = __commonJSMin((exports, module2) => {
|
|
73694
73632
|
var { promisify } = __require("util");
|
|
73695
|
-
var
|
|
73633
|
+
var fs3 = __require("fs");
|
|
73696
73634
|
var optsArg = (opts) => {
|
|
73697
73635
|
if (!opts)
|
|
73698
|
-
opts = { mode: 511, fs:
|
|
73636
|
+
opts = { mode: 511, fs: fs3 };
|
|
73699
73637
|
else if (typeof opts === "object")
|
|
73700
|
-
opts = { mode: 511, fs:
|
|
73638
|
+
opts = { mode: 511, fs: fs3, ...opts };
|
|
73701
73639
|
else if (typeof opts === "number")
|
|
73702
|
-
opts = { mode: opts, fs:
|
|
73640
|
+
opts = { mode: opts, fs: fs3 };
|
|
73703
73641
|
else if (typeof opts === "string")
|
|
73704
|
-
opts = { mode: parseInt(opts, 8), fs:
|
|
73642
|
+
opts = { mode: parseInt(opts, 8), fs: fs3 };
|
|
73705
73643
|
else
|
|
73706
73644
|
throw new TypeError("invalid options argument");
|
|
73707
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir ||
|
|
73645
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs3.mkdir;
|
|
73708
73646
|
opts.mkdirAsync = promisify(opts.mkdir);
|
|
73709
|
-
opts.stat = opts.stat || opts.fs.stat ||
|
|
73647
|
+
opts.stat = opts.stat || opts.fs.stat || fs3.stat;
|
|
73710
73648
|
opts.statAsync = promisify(opts.stat);
|
|
73711
|
-
opts.statSync = opts.statSync || opts.fs.statSync ||
|
|
73712
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync ||
|
|
73649
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs3.statSync;
|
|
73650
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs3.mkdirSync;
|
|
73713
73651
|
return opts;
|
|
73714
73652
|
};
|
|
73715
73653
|
module2.exports = optsArg;
|
|
@@ -73717,40 +73655,40 @@ var require_opts_arg = __commonJSMin((exports, module2) => {
|
|
|
73717
73655
|
var require_path_arg = __commonJSMin((exports, module2) => {
|
|
73718
73656
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
73719
73657
|
var { resolve, parse } = __require("path");
|
|
73720
|
-
var pathArg = (
|
|
73721
|
-
if (/\0/.test(
|
|
73658
|
+
var pathArg = (path4) => {
|
|
73659
|
+
if (/\0/.test(path4)) {
|
|
73722
73660
|
throw Object.assign(new TypeError("path must be a string without null bytes"), {
|
|
73723
|
-
path:
|
|
73661
|
+
path: path4,
|
|
73724
73662
|
code: "ERR_INVALID_ARG_VALUE"
|
|
73725
73663
|
});
|
|
73726
73664
|
}
|
|
73727
|
-
|
|
73665
|
+
path4 = resolve(path4);
|
|
73728
73666
|
if (platform === "win32") {
|
|
73729
73667
|
const badWinChars = /[*|"<>?:]/;
|
|
73730
|
-
const { root } = parse(
|
|
73731
|
-
if (badWinChars.test(
|
|
73668
|
+
const { root } = parse(path4);
|
|
73669
|
+
if (badWinChars.test(path4.substr(root.length))) {
|
|
73732
73670
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
73733
|
-
path:
|
|
73671
|
+
path: path4,
|
|
73734
73672
|
code: "EINVAL"
|
|
73735
73673
|
});
|
|
73736
73674
|
}
|
|
73737
73675
|
}
|
|
73738
|
-
return
|
|
73676
|
+
return path4;
|
|
73739
73677
|
};
|
|
73740
73678
|
module2.exports = pathArg;
|
|
73741
73679
|
});
|
|
73742
73680
|
var require_find_made = __commonJSMin((exports, module2) => {
|
|
73743
73681
|
var { dirname } = __require("path");
|
|
73744
|
-
var findMade = (opts, parent,
|
|
73745
|
-
if (
|
|
73682
|
+
var findMade = (opts, parent, path4 = void 0) => {
|
|
73683
|
+
if (path4 === parent)
|
|
73746
73684
|
return Promise.resolve();
|
|
73747
|
-
return opts.statAsync(parent).then((st) => st.isDirectory() ?
|
|
73685
|
+
return opts.statAsync(parent).then((st) => st.isDirectory() ? path4 : void 0, (er) => er.code === "ENOENT" ? findMade(opts, dirname(parent), parent) : void 0);
|
|
73748
73686
|
};
|
|
73749
|
-
var findMadeSync = (opts, parent,
|
|
73750
|
-
if (
|
|
73687
|
+
var findMadeSync = (opts, parent, path4 = void 0) => {
|
|
73688
|
+
if (path4 === parent)
|
|
73751
73689
|
return void 0;
|
|
73752
73690
|
try {
|
|
73753
|
-
return opts.statSync(parent).isDirectory() ?
|
|
73691
|
+
return opts.statSync(parent).isDirectory() ? path4 : void 0;
|
|
73754
73692
|
} catch (er) {
|
|
73755
73693
|
return er.code === "ENOENT" ? findMadeSync(opts, dirname(parent), parent) : void 0;
|
|
73756
73694
|
}
|
|
@@ -73759,21 +73697,21 @@ var require_find_made = __commonJSMin((exports, module2) => {
|
|
|
73759
73697
|
});
|
|
73760
73698
|
var require_mkdirp_manual = __commonJSMin((exports, module2) => {
|
|
73761
73699
|
var { dirname } = __require("path");
|
|
73762
|
-
var mkdirpManual = (
|
|
73700
|
+
var mkdirpManual = (path4, opts, made) => {
|
|
73763
73701
|
opts.recursive = false;
|
|
73764
|
-
const parent = dirname(
|
|
73765
|
-
if (parent ===
|
|
73766
|
-
return opts.mkdirAsync(
|
|
73702
|
+
const parent = dirname(path4);
|
|
73703
|
+
if (parent === path4) {
|
|
73704
|
+
return opts.mkdirAsync(path4, opts).catch((er) => {
|
|
73767
73705
|
if (er.code !== "EISDIR")
|
|
73768
73706
|
throw er;
|
|
73769
73707
|
});
|
|
73770
73708
|
}
|
|
73771
|
-
return opts.mkdirAsync(
|
|
73709
|
+
return opts.mkdirAsync(path4, opts).then(() => made || path4, (er) => {
|
|
73772
73710
|
if (er.code === "ENOENT")
|
|
73773
|
-
return mkdirpManual(parent, opts).then((made2) => mkdirpManual(
|
|
73711
|
+
return mkdirpManual(parent, opts).then((made2) => mkdirpManual(path4, opts, made2));
|
|
73774
73712
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
|
73775
73713
|
throw er;
|
|
73776
|
-
return opts.statAsync(
|
|
73714
|
+
return opts.statAsync(path4).then((st) => {
|
|
73777
73715
|
if (st.isDirectory())
|
|
73778
73716
|
return made;
|
|
73779
73717
|
else
|
|
@@ -73783,12 +73721,12 @@ var require_mkdirp_manual = __commonJSMin((exports, module2) => {
|
|
|
73783
73721
|
});
|
|
73784
73722
|
});
|
|
73785
73723
|
};
|
|
73786
|
-
var mkdirpManualSync = (
|
|
73787
|
-
const parent = dirname(
|
|
73724
|
+
var mkdirpManualSync = (path4, opts, made) => {
|
|
73725
|
+
const parent = dirname(path4);
|
|
73788
73726
|
opts.recursive = false;
|
|
73789
|
-
if (parent ===
|
|
73727
|
+
if (parent === path4) {
|
|
73790
73728
|
try {
|
|
73791
|
-
return opts.mkdirSync(
|
|
73729
|
+
return opts.mkdirSync(path4, opts);
|
|
73792
73730
|
} catch (er) {
|
|
73793
73731
|
if (er.code !== "EISDIR")
|
|
73794
73732
|
throw er;
|
|
@@ -73797,15 +73735,15 @@ var require_mkdirp_manual = __commonJSMin((exports, module2) => {
|
|
|
73797
73735
|
}
|
|
73798
73736
|
}
|
|
73799
73737
|
try {
|
|
73800
|
-
opts.mkdirSync(
|
|
73801
|
-
return made ||
|
|
73738
|
+
opts.mkdirSync(path4, opts);
|
|
73739
|
+
return made || path4;
|
|
73802
73740
|
} catch (er) {
|
|
73803
73741
|
if (er.code === "ENOENT")
|
|
73804
|
-
return mkdirpManualSync(
|
|
73742
|
+
return mkdirpManualSync(path4, opts, mkdirpManualSync(parent, opts, made));
|
|
73805
73743
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
|
73806
73744
|
throw er;
|
|
73807
73745
|
try {
|
|
73808
|
-
if (!opts.statSync(
|
|
73746
|
+
if (!opts.statSync(path4).isDirectory())
|
|
73809
73747
|
throw er;
|
|
73810
73748
|
} catch (_) {
|
|
73811
73749
|
throw er;
|
|
@@ -73818,30 +73756,30 @@ var require_mkdirp_native = __commonJSMin((exports, module2) => {
|
|
|
73818
73756
|
var { dirname } = __require("path");
|
|
73819
73757
|
var { findMade, findMadeSync } = require_find_made();
|
|
73820
73758
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
73821
|
-
var mkdirpNative = (
|
|
73759
|
+
var mkdirpNative = (path4, opts) => {
|
|
73822
73760
|
opts.recursive = true;
|
|
73823
|
-
const parent = dirname(
|
|
73824
|
-
if (parent ===
|
|
73825
|
-
return opts.mkdirAsync(
|
|
73826
|
-
return findMade(opts,
|
|
73761
|
+
const parent = dirname(path4);
|
|
73762
|
+
if (parent === path4)
|
|
73763
|
+
return opts.mkdirAsync(path4, opts);
|
|
73764
|
+
return findMade(opts, path4).then((made) => opts.mkdirAsync(path4, opts).then(() => made).catch((er) => {
|
|
73827
73765
|
if (er.code === "ENOENT")
|
|
73828
|
-
return mkdirpManual(
|
|
73766
|
+
return mkdirpManual(path4, opts);
|
|
73829
73767
|
else
|
|
73830
73768
|
throw er;
|
|
73831
73769
|
}));
|
|
73832
73770
|
};
|
|
73833
|
-
var mkdirpNativeSync = (
|
|
73771
|
+
var mkdirpNativeSync = (path4, opts) => {
|
|
73834
73772
|
opts.recursive = true;
|
|
73835
|
-
const parent = dirname(
|
|
73836
|
-
if (parent ===
|
|
73837
|
-
return opts.mkdirSync(
|
|
73838
|
-
const made = findMadeSync(opts,
|
|
73773
|
+
const parent = dirname(path4);
|
|
73774
|
+
if (parent === path4)
|
|
73775
|
+
return opts.mkdirSync(path4, opts);
|
|
73776
|
+
const made = findMadeSync(opts, path4);
|
|
73839
73777
|
try {
|
|
73840
|
-
opts.mkdirSync(
|
|
73778
|
+
opts.mkdirSync(path4, opts);
|
|
73841
73779
|
return made;
|
|
73842
73780
|
} catch (er) {
|
|
73843
73781
|
if (er.code === "ENOENT")
|
|
73844
|
-
return mkdirpManualSync(
|
|
73782
|
+
return mkdirpManualSync(path4, opts);
|
|
73845
73783
|
else
|
|
73846
73784
|
throw er;
|
|
73847
73785
|
}
|
|
@@ -73849,12 +73787,12 @@ var require_mkdirp_native = __commonJSMin((exports, module2) => {
|
|
|
73849
73787
|
module2.exports = { mkdirpNative, mkdirpNativeSync };
|
|
73850
73788
|
});
|
|
73851
73789
|
var require_use_native = __commonJSMin((exports, module2) => {
|
|
73852
|
-
var
|
|
73853
|
-
var
|
|
73854
|
-
var versArr =
|
|
73790
|
+
var fs3 = __require("fs");
|
|
73791
|
+
var version5 = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;
|
|
73792
|
+
var versArr = version5.replace(/^v/, "").split(".");
|
|
73855
73793
|
var hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
73856
|
-
var useNative = !hasNative ? () => false : (opts) => opts.mkdir ===
|
|
73857
|
-
var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync ===
|
|
73794
|
+
var useNative = !hasNative ? () => false : (opts) => opts.mkdir === fs3.mkdir;
|
|
73795
|
+
var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync === fs3.mkdirSync;
|
|
73858
73796
|
module2.exports = { useNative, useNativeSync };
|
|
73859
73797
|
});
|
|
73860
73798
|
var require_mkdirp = __commonJSMin((exports, module2) => {
|
|
@@ -73863,88 +73801,88 @@ var require_mkdirp = __commonJSMin((exports, module2) => {
|
|
|
73863
73801
|
var { mkdirpNative, mkdirpNativeSync } = require_mkdirp_native();
|
|
73864
73802
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
73865
73803
|
var { useNative, useNativeSync } = require_use_native();
|
|
73866
|
-
var mkdirp = (
|
|
73867
|
-
|
|
73804
|
+
var mkdirp = (path4, opts) => {
|
|
73805
|
+
path4 = pathArg(path4);
|
|
73868
73806
|
opts = optsArg(opts);
|
|
73869
|
-
return useNative(opts) ? mkdirpNative(
|
|
73807
|
+
return useNative(opts) ? mkdirpNative(path4, opts) : mkdirpManual(path4, opts);
|
|
73870
73808
|
};
|
|
73871
|
-
var mkdirpSync = (
|
|
73872
|
-
|
|
73809
|
+
var mkdirpSync = (path4, opts) => {
|
|
73810
|
+
path4 = pathArg(path4);
|
|
73873
73811
|
opts = optsArg(opts);
|
|
73874
|
-
return useNativeSync(opts) ? mkdirpNativeSync(
|
|
73812
|
+
return useNativeSync(opts) ? mkdirpNativeSync(path4, opts) : mkdirpManualSync(path4, opts);
|
|
73875
73813
|
};
|
|
73876
73814
|
mkdirp.sync = mkdirpSync;
|
|
73877
|
-
mkdirp.native = (
|
|
73878
|
-
mkdirp.manual = (
|
|
73879
|
-
mkdirp.nativeSync = (
|
|
73880
|
-
mkdirp.manualSync = (
|
|
73815
|
+
mkdirp.native = (path4, opts) => mkdirpNative(pathArg(path4), optsArg(opts));
|
|
73816
|
+
mkdirp.manual = (path4, opts) => mkdirpManual(pathArg(path4), optsArg(opts));
|
|
73817
|
+
mkdirp.nativeSync = (path4, opts) => mkdirpNativeSync(pathArg(path4), optsArg(opts));
|
|
73818
|
+
mkdirp.manualSync = (path4, opts) => mkdirpManualSync(pathArg(path4), optsArg(opts));
|
|
73881
73819
|
module2.exports = mkdirp;
|
|
73882
73820
|
});
|
|
73883
73821
|
var require_chownr = __commonJSMin((exports, module2) => {
|
|
73884
73822
|
"use strict";
|
|
73885
|
-
var
|
|
73886
|
-
var
|
|
73887
|
-
var LCHOWN =
|
|
73888
|
-
var LCHOWNSYNC =
|
|
73889
|
-
var needEISDIRHandled =
|
|
73890
|
-
var lchownSync = (
|
|
73823
|
+
var fs3 = __require("fs");
|
|
73824
|
+
var path4 = __require("path");
|
|
73825
|
+
var LCHOWN = fs3.lchown ? "lchown" : "chown";
|
|
73826
|
+
var LCHOWNSYNC = fs3.lchownSync ? "lchownSync" : "chownSync";
|
|
73827
|
+
var needEISDIRHandled = fs3.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
73828
|
+
var lchownSync = (path5, uid, gid) => {
|
|
73891
73829
|
try {
|
|
73892
|
-
return
|
|
73830
|
+
return fs3[LCHOWNSYNC](path5, uid, gid);
|
|
73893
73831
|
} catch (er) {
|
|
73894
73832
|
if (er.code !== "ENOENT")
|
|
73895
73833
|
throw er;
|
|
73896
73834
|
}
|
|
73897
73835
|
};
|
|
73898
|
-
var chownSync = (
|
|
73836
|
+
var chownSync = (path5, uid, gid) => {
|
|
73899
73837
|
try {
|
|
73900
|
-
return
|
|
73838
|
+
return fs3.chownSync(path5, uid, gid);
|
|
73901
73839
|
} catch (er) {
|
|
73902
73840
|
if (er.code !== "ENOENT")
|
|
73903
73841
|
throw er;
|
|
73904
73842
|
}
|
|
73905
73843
|
};
|
|
73906
|
-
var handleEISDIR = needEISDIRHandled ? (
|
|
73844
|
+
var handleEISDIR = needEISDIRHandled ? (path5, uid, gid, cb) => (er) => {
|
|
73907
73845
|
if (!er || er.code !== "EISDIR")
|
|
73908
73846
|
cb(er);
|
|
73909
73847
|
else
|
|
73910
|
-
|
|
73848
|
+
fs3.chown(path5, uid, gid, cb);
|
|
73911
73849
|
} : (_, __, ___, cb) => cb;
|
|
73912
|
-
var handleEISDirSync = needEISDIRHandled ? (
|
|
73850
|
+
var handleEISDirSync = needEISDIRHandled ? (path5, uid, gid) => {
|
|
73913
73851
|
try {
|
|
73914
|
-
return lchownSync(
|
|
73852
|
+
return lchownSync(path5, uid, gid);
|
|
73915
73853
|
} catch (er) {
|
|
73916
73854
|
if (er.code !== "EISDIR")
|
|
73917
73855
|
throw er;
|
|
73918
|
-
chownSync(
|
|
73856
|
+
chownSync(path5, uid, gid);
|
|
73919
73857
|
}
|
|
73920
|
-
} : (
|
|
73858
|
+
} : (path5, uid, gid) => lchownSync(path5, uid, gid);
|
|
73921
73859
|
var nodeVersion = process.version;
|
|
73922
|
-
var readdir = (
|
|
73923
|
-
var readdirSync = (
|
|
73860
|
+
var readdir = (path5, options3, cb) => fs3.readdir(path5, options3, cb);
|
|
73861
|
+
var readdirSync = (path5, options3) => fs3.readdirSync(path5, options3);
|
|
73924
73862
|
if (/^v4\./.test(nodeVersion))
|
|
73925
|
-
readdir = (
|
|
73863
|
+
readdir = (path5, options3, cb) => fs3.readdir(path5, cb);
|
|
73926
73864
|
var chown = (cpath, uid, gid, cb) => {
|
|
73927
|
-
|
|
73865
|
+
fs3[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
73928
73866
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
73929
73867
|
}));
|
|
73930
73868
|
};
|
|
73931
73869
|
var chownrKid = (p, child, uid, gid, cb) => {
|
|
73932
73870
|
if (typeof child === "string")
|
|
73933
|
-
return
|
|
73871
|
+
return fs3.lstat(path4.resolve(p, child), (er, stats) => {
|
|
73934
73872
|
if (er)
|
|
73935
73873
|
return cb(er.code !== "ENOENT" ? er : null);
|
|
73936
73874
|
stats.name = child;
|
|
73937
73875
|
chownrKid(p, stats, uid, gid, cb);
|
|
73938
73876
|
});
|
|
73939
73877
|
if (child.isDirectory()) {
|
|
73940
|
-
chownr(
|
|
73878
|
+
chownr(path4.resolve(p, child.name), uid, gid, (er) => {
|
|
73941
73879
|
if (er)
|
|
73942
73880
|
return cb(er);
|
|
73943
|
-
const cpath =
|
|
73881
|
+
const cpath = path4.resolve(p, child.name);
|
|
73944
73882
|
chown(cpath, uid, gid, cb);
|
|
73945
73883
|
});
|
|
73946
73884
|
} else {
|
|
73947
|
-
const cpath =
|
|
73885
|
+
const cpath = path4.resolve(p, child.name);
|
|
73948
73886
|
chown(cpath, uid, gid, cb);
|
|
73949
73887
|
}
|
|
73950
73888
|
};
|
|
@@ -73974,7 +73912,7 @@ var require_chownr = __commonJSMin((exports, module2) => {
|
|
|
73974
73912
|
var chownrKidSync = (p, child, uid, gid) => {
|
|
73975
73913
|
if (typeof child === "string") {
|
|
73976
73914
|
try {
|
|
73977
|
-
const stats =
|
|
73915
|
+
const stats = fs3.lstatSync(path4.resolve(p, child));
|
|
73978
73916
|
stats.name = child;
|
|
73979
73917
|
child = stats;
|
|
73980
73918
|
} catch (er) {
|
|
@@ -73985,8 +73923,8 @@ var require_chownr = __commonJSMin((exports, module2) => {
|
|
|
73985
73923
|
}
|
|
73986
73924
|
}
|
|
73987
73925
|
if (child.isDirectory())
|
|
73988
|
-
chownrSync(
|
|
73989
|
-
handleEISDirSync(
|
|
73926
|
+
chownrSync(path4.resolve(p, child.name), uid, gid);
|
|
73927
|
+
handleEISDirSync(path4.resolve(p, child.name), uid, gid);
|
|
73990
73928
|
};
|
|
73991
73929
|
var chownrSync = (p, uid, gid) => {
|
|
73992
73930
|
let children;
|
|
@@ -74010,14 +73948,14 @@ var require_chownr = __commonJSMin((exports, module2) => {
|
|
|
74010
73948
|
var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74011
73949
|
"use strict";
|
|
74012
73950
|
var mkdirp = require_mkdirp();
|
|
74013
|
-
var
|
|
74014
|
-
var
|
|
73951
|
+
var fs3 = __require("fs");
|
|
73952
|
+
var path4 = __require("path");
|
|
74015
73953
|
var chownr = require_chownr();
|
|
74016
73954
|
var normPath = require_normalize_windows_path();
|
|
74017
73955
|
var SymlinkError = class extends Error {
|
|
74018
|
-
constructor(symlink,
|
|
73956
|
+
constructor(symlink, path5) {
|
|
74019
73957
|
super("Cannot extract through symbolic link");
|
|
74020
|
-
this.path =
|
|
73958
|
+
this.path = path5;
|
|
74021
73959
|
this.symlink = symlink;
|
|
74022
73960
|
}
|
|
74023
73961
|
get name() {
|
|
@@ -74025,9 +73963,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
74025
73963
|
}
|
|
74026
73964
|
};
|
|
74027
73965
|
var CwdError = class extends Error {
|
|
74028
|
-
constructor(
|
|
74029
|
-
super(code + ": Cannot cd into '" +
|
|
74030
|
-
this.path =
|
|
73966
|
+
constructor(path5, code) {
|
|
73967
|
+
super(code + ": Cannot cd into '" + path5 + "'");
|
|
73968
|
+
this.path = path5;
|
|
74031
73969
|
this.code = code;
|
|
74032
73970
|
}
|
|
74033
73971
|
get name() {
|
|
@@ -74037,7 +73975,7 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
74037
73975
|
var cGet = (cache, key) => cache.get(normPath(key));
|
|
74038
73976
|
var cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
74039
73977
|
var checkCwd = (dir, cb) => {
|
|
74040
|
-
|
|
73978
|
+
fs3.stat(dir, (er, st) => {
|
|
74041
73979
|
if (er || !st.isDirectory())
|
|
74042
73980
|
er = new CwdError(dir, er && er.code || "ENOTDIR");
|
|
74043
73981
|
cb(er);
|
|
@@ -74063,7 +74001,7 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
74063
74001
|
if (created && doChown)
|
|
74064
74002
|
chownr(created, uid, gid, (er2) => done(er2));
|
|
74065
74003
|
else if (needChmod)
|
|
74066
|
-
|
|
74004
|
+
fs3.chmod(dir, mode, cb);
|
|
74067
74005
|
else
|
|
74068
74006
|
cb();
|
|
74069
74007
|
}
|
|
@@ -74074,7 +74012,7 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
74074
74012
|
return checkCwd(dir, done);
|
|
74075
74013
|
if (preserve)
|
|
74076
74014
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
|
74077
|
-
const sub = normPath(
|
|
74015
|
+
const sub = normPath(path4.relative(cwd, dir));
|
|
74078
74016
|
const parts = sub.split("/");
|
|
74079
74017
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done);
|
|
74080
74018
|
};
|
|
@@ -74082,24 +74020,24 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
74082
74020
|
if (!parts.length)
|
|
74083
74021
|
return cb(null, created);
|
|
74084
74022
|
const p = parts.shift();
|
|
74085
|
-
const part = normPath(
|
|
74023
|
+
const part = normPath(path4.resolve(base + "/" + p));
|
|
74086
74024
|
if (cGet(cache, part))
|
|
74087
74025
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
74088
|
-
|
|
74026
|
+
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
74089
74027
|
};
|
|
74090
74028
|
var onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
74091
74029
|
if (er) {
|
|
74092
|
-
|
|
74030
|
+
fs3.lstat(part, (statEr, st) => {
|
|
74093
74031
|
if (statEr) {
|
|
74094
74032
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
74095
74033
|
cb(statEr);
|
|
74096
74034
|
} else if (st.isDirectory())
|
|
74097
74035
|
mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
74098
74036
|
else if (unlink) {
|
|
74099
|
-
|
|
74037
|
+
fs3.unlink(part, (er2) => {
|
|
74100
74038
|
if (er2)
|
|
74101
74039
|
return cb(er2);
|
|
74102
|
-
|
|
74040
|
+
fs3.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
74103
74041
|
});
|
|
74104
74042
|
} else if (st.isSymbolicLink())
|
|
74105
74043
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -74115,7 +74053,7 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
74115
74053
|
let ok = false;
|
|
74116
74054
|
let code = "ENOTDIR";
|
|
74117
74055
|
try {
|
|
74118
|
-
ok =
|
|
74056
|
+
ok = fs3.statSync(dir).isDirectory();
|
|
74119
74057
|
} catch (er) {
|
|
74120
74058
|
code = er.code;
|
|
74121
74059
|
} finally {
|
|
@@ -74140,7 +74078,7 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
74140
74078
|
if (created2 && doChown)
|
|
74141
74079
|
chownr.sync(created2, uid, gid);
|
|
74142
74080
|
if (needChmod)
|
|
74143
|
-
|
|
74081
|
+
fs3.chmodSync(dir, mode);
|
|
74144
74082
|
};
|
|
74145
74083
|
if (cache && cGet(cache, dir) === true)
|
|
74146
74084
|
return done();
|
|
@@ -74150,25 +74088,25 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
|
74150
74088
|
}
|
|
74151
74089
|
if (preserve)
|
|
74152
74090
|
return done(mkdirp.sync(dir, mode));
|
|
74153
|
-
const sub = normPath(
|
|
74091
|
+
const sub = normPath(path4.relative(cwd, dir));
|
|
74154
74092
|
const parts = sub.split("/");
|
|
74155
74093
|
let created = null;
|
|
74156
74094
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
74157
|
-
part = normPath(
|
|
74095
|
+
part = normPath(path4.resolve(part));
|
|
74158
74096
|
if (cGet(cache, part))
|
|
74159
74097
|
continue;
|
|
74160
74098
|
try {
|
|
74161
|
-
|
|
74099
|
+
fs3.mkdirSync(part, mode);
|
|
74162
74100
|
created = created || part;
|
|
74163
74101
|
cSet(cache, part, true);
|
|
74164
74102
|
} catch (er) {
|
|
74165
|
-
const st =
|
|
74103
|
+
const st = fs3.lstatSync(part);
|
|
74166
74104
|
if (st.isDirectory()) {
|
|
74167
74105
|
cSet(cache, part, true);
|
|
74168
74106
|
continue;
|
|
74169
74107
|
} else if (unlink) {
|
|
74170
|
-
|
|
74171
|
-
|
|
74108
|
+
fs3.unlinkSync(part);
|
|
74109
|
+
fs3.mkdirSync(part, mode);
|
|
74172
74110
|
created = created || part;
|
|
74173
74111
|
cSet(cache, part, true);
|
|
74174
74112
|
continue;
|
|
@@ -74198,11 +74136,11 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
74198
74136
|
module2.exports = () => {
|
|
74199
74137
|
const queues = /* @__PURE__ */ new Map();
|
|
74200
74138
|
const reservations = /* @__PURE__ */ new Map();
|
|
74201
|
-
const getDirs = (
|
|
74202
|
-
const dirs =
|
|
74139
|
+
const getDirs = (path4) => {
|
|
74140
|
+
const dirs = path4.split("/").slice(0, -1).reduce((set, path5) => {
|
|
74203
74141
|
if (set.length)
|
|
74204
|
-
|
|
74205
|
-
set.push(
|
|
74142
|
+
path5 = join(set[set.length - 1], path5);
|
|
74143
|
+
set.push(path5 || "/");
|
|
74206
74144
|
return set;
|
|
74207
74145
|
}, []);
|
|
74208
74146
|
return dirs;
|
|
@@ -74213,8 +74151,8 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
74213
74151
|
if (!res)
|
|
74214
74152
|
throw new Error("function does not have any path reservations");
|
|
74215
74153
|
return {
|
|
74216
|
-
paths: res.paths.map((
|
|
74217
|
-
dirs: [...res.dirs].map((
|
|
74154
|
+
paths: res.paths.map((path4) => queues.get(path4)),
|
|
74155
|
+
dirs: [...res.dirs].map((path4) => queues.get(path4))
|
|
74218
74156
|
};
|
|
74219
74157
|
};
|
|
74220
74158
|
const check = (fn) => {
|
|
@@ -74233,11 +74171,11 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
74233
74171
|
return false;
|
|
74234
74172
|
const { paths, dirs } = reservations.get(fn);
|
|
74235
74173
|
const next = /* @__PURE__ */ new Set();
|
|
74236
|
-
paths.forEach((
|
|
74237
|
-
const q = queues.get(
|
|
74174
|
+
paths.forEach((path4) => {
|
|
74175
|
+
const q = queues.get(path4);
|
|
74238
74176
|
assert.equal(q[0], fn);
|
|
74239
74177
|
if (q.length === 1)
|
|
74240
|
-
queues.delete(
|
|
74178
|
+
queues.delete(path4);
|
|
74241
74179
|
else {
|
|
74242
74180
|
q.shift();
|
|
74243
74181
|
if (typeof q[0] === "function")
|
|
@@ -74265,12 +74203,12 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
74265
74203
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
74266
74204
|
return normalize(stripSlashes(join(p))).toLowerCase();
|
|
74267
74205
|
});
|
|
74268
|
-
const dirs = new Set(paths.map((
|
|
74206
|
+
const dirs = new Set(paths.map((path4) => getDirs(path4)).reduce((a, b) => a.concat(b)));
|
|
74269
74207
|
reservations.set(fn, { dirs, paths });
|
|
74270
|
-
paths.forEach((
|
|
74271
|
-
const q = queues.get(
|
|
74208
|
+
paths.forEach((path4) => {
|
|
74209
|
+
const q = queues.get(path4);
|
|
74272
74210
|
if (!q)
|
|
74273
|
-
queues.set(
|
|
74211
|
+
queues.set(path4, [fn]);
|
|
74274
74212
|
else
|
|
74275
74213
|
q.push(fn);
|
|
74276
74214
|
});
|
|
@@ -74291,8 +74229,8 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
|
74291
74229
|
var require_get_write_flag = __commonJSMin((exports, module2) => {
|
|
74292
74230
|
var platform = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
74293
74231
|
var isWindows = platform === "win32";
|
|
74294
|
-
var
|
|
74295
|
-
var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } =
|
|
74232
|
+
var fs3 = global.__FAKE_TESTING_FS__ || __require("fs");
|
|
74233
|
+
var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs3.constants;
|
|
74296
74234
|
var fMapEnabled = isWindows && !!UV_FS_O_FILEMAP;
|
|
74297
74235
|
var fMapLimit = 512 * 1024;
|
|
74298
74236
|
var fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
|
|
@@ -74302,9 +74240,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74302
74240
|
"use strict";
|
|
74303
74241
|
var assert = __require("assert");
|
|
74304
74242
|
var Parser = require_parse();
|
|
74305
|
-
var
|
|
74243
|
+
var fs3 = __require("fs");
|
|
74306
74244
|
var fsm = require_fs_minipass();
|
|
74307
|
-
var
|
|
74245
|
+
var path4 = __require("path");
|
|
74308
74246
|
var mkdir = require_mkdir();
|
|
74309
74247
|
var wc = require_winchars();
|
|
74310
74248
|
var pathReservations = require_path_reservations();
|
|
@@ -74341,31 +74279,31 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74341
74279
|
var getFlag = require_get_write_flag();
|
|
74342
74280
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
74343
74281
|
var isWindows = platform === "win32";
|
|
74344
|
-
var unlinkFile = (
|
|
74282
|
+
var unlinkFile = (path5, cb) => {
|
|
74345
74283
|
if (!isWindows)
|
|
74346
|
-
return
|
|
74347
|
-
const name4 =
|
|
74348
|
-
|
|
74284
|
+
return fs3.unlink(path5, cb);
|
|
74285
|
+
const name4 = path5 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
74286
|
+
fs3.rename(path5, name4, (er) => {
|
|
74349
74287
|
if (er)
|
|
74350
74288
|
return cb(er);
|
|
74351
|
-
|
|
74289
|
+
fs3.unlink(name4, cb);
|
|
74352
74290
|
});
|
|
74353
74291
|
};
|
|
74354
|
-
var unlinkFileSync = (
|
|
74292
|
+
var unlinkFileSync = (path5) => {
|
|
74355
74293
|
if (!isWindows)
|
|
74356
|
-
return
|
|
74357
|
-
const name4 =
|
|
74358
|
-
|
|
74359
|
-
|
|
74294
|
+
return fs3.unlinkSync(path5);
|
|
74295
|
+
const name4 = path5 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
|
74296
|
+
fs3.renameSync(path5, name4);
|
|
74297
|
+
fs3.unlinkSync(name4);
|
|
74360
74298
|
};
|
|
74361
74299
|
var uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
|
74362
|
-
var cacheKeyNormalize = (
|
|
74300
|
+
var cacheKeyNormalize = (path5) => normalize(stripSlash(normPath(path5))).toLowerCase();
|
|
74363
74301
|
var pruneCache = (cache, abs) => {
|
|
74364
74302
|
abs = cacheKeyNormalize(abs);
|
|
74365
|
-
for (const
|
|
74366
|
-
const pnorm = cacheKeyNormalize(
|
|
74303
|
+
for (const path5 of cache.keys()) {
|
|
74304
|
+
const pnorm = cacheKeyNormalize(path5);
|
|
74367
74305
|
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
|
74368
|
-
cache.delete(
|
|
74306
|
+
cache.delete(path5);
|
|
74369
74307
|
}
|
|
74370
74308
|
};
|
|
74371
74309
|
var dropCache = (cache) => {
|
|
@@ -74416,7 +74354,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74416
74354
|
this.noMtime = !!opt.noMtime;
|
|
74417
74355
|
this.preservePaths = !!opt.preservePaths;
|
|
74418
74356
|
this.unlink = !!opt.unlink;
|
|
74419
|
-
this.cwd = normPath(
|
|
74357
|
+
this.cwd = normPath(path4.resolve(opt.cwd || process.cwd()));
|
|
74420
74358
|
this.strip = +opt.strip || 0;
|
|
74421
74359
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
74422
74360
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -74470,10 +74408,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74470
74408
|
});
|
|
74471
74409
|
}
|
|
74472
74410
|
}
|
|
74473
|
-
if (
|
|
74474
|
-
entry.absolute = normPath(
|
|
74411
|
+
if (path4.isAbsolute(entry.path))
|
|
74412
|
+
entry.absolute = normPath(path4.resolve(entry.path));
|
|
74475
74413
|
else
|
|
74476
|
-
entry.absolute = normPath(
|
|
74414
|
+
entry.absolute = normPath(path4.resolve(this.cwd, entry.path));
|
|
74477
74415
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
74478
74416
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
74479
74417
|
entry,
|
|
@@ -74486,9 +74424,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74486
74424
|
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
|
74487
74425
|
return false;
|
|
74488
74426
|
if (this.win32) {
|
|
74489
|
-
const { root: aRoot } =
|
|
74427
|
+
const { root: aRoot } = path4.win32.parse(entry.absolute);
|
|
74490
74428
|
entry.absolute = aRoot + wc.encode(entry.absolute.substr(aRoot.length));
|
|
74491
|
-
const { root: pRoot } =
|
|
74429
|
+
const { root: pRoot } = path4.win32.parse(entry.path);
|
|
74492
74430
|
entry.path = pRoot + wc.encode(entry.path.substr(pRoot.length));
|
|
74493
74431
|
}
|
|
74494
74432
|
return true;
|
|
@@ -74557,7 +74495,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74557
74495
|
});
|
|
74558
74496
|
stream.on("error", (er) => {
|
|
74559
74497
|
if (stream.fd)
|
|
74560
|
-
|
|
74498
|
+
fs3.close(stream.fd, () => {
|
|
74561
74499
|
});
|
|
74562
74500
|
stream.write = () => true;
|
|
74563
74501
|
this[ONERROR](er, entry);
|
|
@@ -74567,14 +74505,14 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74567
74505
|
const done = (er) => {
|
|
74568
74506
|
if (er) {
|
|
74569
74507
|
if (stream.fd)
|
|
74570
|
-
|
|
74508
|
+
fs3.close(stream.fd, () => {
|
|
74571
74509
|
});
|
|
74572
74510
|
this[ONERROR](er, entry);
|
|
74573
74511
|
fullyDone();
|
|
74574
74512
|
return;
|
|
74575
74513
|
}
|
|
74576
74514
|
if (--actions === 0) {
|
|
74577
|
-
|
|
74515
|
+
fs3.close(stream.fd, (er2) => {
|
|
74578
74516
|
if (er2)
|
|
74579
74517
|
this[ONERROR](er2, entry);
|
|
74580
74518
|
else
|
|
@@ -74590,13 +74528,13 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74590
74528
|
actions++;
|
|
74591
74529
|
const atime = entry.atime || new Date();
|
|
74592
74530
|
const mtime = entry.mtime;
|
|
74593
|
-
|
|
74531
|
+
fs3.futimes(fd, atime, mtime, (er) => er ? fs3.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
74594
74532
|
}
|
|
74595
74533
|
if (this[DOCHOWN](entry)) {
|
|
74596
74534
|
actions++;
|
|
74597
74535
|
const uid = this[UID](entry);
|
|
74598
74536
|
const gid = this[GID](entry);
|
|
74599
|
-
|
|
74537
|
+
fs3.fchown(fd, uid, gid, (er) => er ? fs3.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
74600
74538
|
}
|
|
74601
74539
|
done();
|
|
74602
74540
|
});
|
|
@@ -74628,11 +74566,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74628
74566
|
};
|
|
74629
74567
|
if (entry.mtime && !this.noMtime) {
|
|
74630
74568
|
actions++;
|
|
74631
|
-
|
|
74569
|
+
fs3.utimes(entry.absolute, entry.atime || new Date(), entry.mtime, done);
|
|
74632
74570
|
}
|
|
74633
74571
|
if (this[DOCHOWN](entry)) {
|
|
74634
74572
|
actions++;
|
|
74635
|
-
|
|
74573
|
+
fs3.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
74636
74574
|
}
|
|
74637
74575
|
done();
|
|
74638
74576
|
});
|
|
@@ -74646,7 +74584,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74646
74584
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
74647
74585
|
}
|
|
74648
74586
|
[HARDLINK](entry, done) {
|
|
74649
|
-
const linkpath = normPath(
|
|
74587
|
+
const linkpath = normPath(path4.resolve(this.cwd, entry.linkpath));
|
|
74650
74588
|
this[LINK](entry, linkpath, "link", done);
|
|
74651
74589
|
}
|
|
74652
74590
|
[PEND]() {
|
|
@@ -74695,7 +74633,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74695
74633
|
};
|
|
74696
74634
|
const start = () => {
|
|
74697
74635
|
if (entry.absolute !== this.cwd) {
|
|
74698
|
-
const parent = normPath(
|
|
74636
|
+
const parent = normPath(path4.dirname(entry.absolute));
|
|
74699
74637
|
if (parent !== this.cwd) {
|
|
74700
74638
|
return this[MKDIR](parent, this.dmode, (er) => {
|
|
74701
74639
|
if (er) {
|
|
@@ -74710,7 +74648,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74710
74648
|
afterMakeParent();
|
|
74711
74649
|
};
|
|
74712
74650
|
const afterMakeParent = () => {
|
|
74713
|
-
|
|
74651
|
+
fs3.lstat(entry.absolute, (lstatEr, st) => {
|
|
74714
74652
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
74715
74653
|
this[SKIP](entry);
|
|
74716
74654
|
done();
|
|
@@ -74724,10 +74662,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74724
74662
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
|
74725
74663
|
if (!needChmod)
|
|
74726
74664
|
return afterChmod();
|
|
74727
|
-
return
|
|
74665
|
+
return fs3.chmod(entry.absolute, entry.mode, afterChmod);
|
|
74728
74666
|
}
|
|
74729
74667
|
if (entry.absolute !== this.cwd) {
|
|
74730
|
-
return
|
|
74668
|
+
return fs3.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
74731
74669
|
}
|
|
74732
74670
|
}
|
|
74733
74671
|
if (entry.absolute === this.cwd)
|
|
@@ -74761,7 +74699,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74761
74699
|
}
|
|
74762
74700
|
}
|
|
74763
74701
|
[LINK](entry, linkpath, link, done) {
|
|
74764
|
-
|
|
74702
|
+
fs3[link](linkpath, entry.absolute, (er) => {
|
|
74765
74703
|
if (er)
|
|
74766
74704
|
this[ONERROR](er, entry);
|
|
74767
74705
|
else {
|
|
@@ -74793,14 +74731,14 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74793
74731
|
this[CHECKED_CWD] = true;
|
|
74794
74732
|
}
|
|
74795
74733
|
if (entry.absolute !== this.cwd) {
|
|
74796
|
-
const parent = normPath(
|
|
74734
|
+
const parent = normPath(path4.dirname(entry.absolute));
|
|
74797
74735
|
if (parent !== this.cwd) {
|
|
74798
74736
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
74799
74737
|
if (mkParent)
|
|
74800
74738
|
return this[ONERROR](mkParent, entry);
|
|
74801
74739
|
}
|
|
74802
74740
|
}
|
|
74803
|
-
const [lstatEr, st] = callSync(() =>
|
|
74741
|
+
const [lstatEr, st] = callSync(() => fs3.lstatSync(entry.absolute));
|
|
74804
74742
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime))
|
|
74805
74743
|
return this[SKIP](entry);
|
|
74806
74744
|
if (lstatEr || this[ISREUSABLE](entry, st))
|
|
@@ -74809,11 +74747,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74809
74747
|
if (entry.type === "Directory") {
|
|
74810
74748
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
74811
74749
|
const [er3] = needChmod ? callSync(() => {
|
|
74812
|
-
|
|
74750
|
+
fs3.chmodSync(entry.absolute, entry.mode);
|
|
74813
74751
|
}) : [];
|
|
74814
74752
|
return this[MAKEFS](er3, entry);
|
|
74815
74753
|
}
|
|
74816
|
-
const [er2] = callSync(() =>
|
|
74754
|
+
const [er2] = callSync(() => fs3.rmdirSync(entry.absolute));
|
|
74817
74755
|
this[MAKEFS](er2, entry);
|
|
74818
74756
|
}
|
|
74819
74757
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -74824,7 +74762,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74824
74762
|
const oner = (er) => {
|
|
74825
74763
|
let closeError;
|
|
74826
74764
|
try {
|
|
74827
|
-
|
|
74765
|
+
fs3.closeSync(fd);
|
|
74828
74766
|
} catch (e) {
|
|
74829
74767
|
closeError = e;
|
|
74830
74768
|
}
|
|
@@ -74834,7 +74772,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74834
74772
|
};
|
|
74835
74773
|
let fd;
|
|
74836
74774
|
try {
|
|
74837
|
-
fd =
|
|
74775
|
+
fd = fs3.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
74838
74776
|
} catch (er) {
|
|
74839
74777
|
return oner(er);
|
|
74840
74778
|
}
|
|
@@ -74845,7 +74783,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74845
74783
|
}
|
|
74846
74784
|
tx.on("data", (chunk) => {
|
|
74847
74785
|
try {
|
|
74848
|
-
|
|
74786
|
+
fs3.writeSync(fd, chunk, 0, chunk.length);
|
|
74849
74787
|
} catch (er) {
|
|
74850
74788
|
oner(er);
|
|
74851
74789
|
}
|
|
@@ -74856,10 +74794,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74856
74794
|
const atime = entry.atime || new Date();
|
|
74857
74795
|
const mtime = entry.mtime;
|
|
74858
74796
|
try {
|
|
74859
|
-
|
|
74797
|
+
fs3.futimesSync(fd, atime, mtime);
|
|
74860
74798
|
} catch (futimeser) {
|
|
74861
74799
|
try {
|
|
74862
|
-
|
|
74800
|
+
fs3.utimesSync(entry.absolute, atime, mtime);
|
|
74863
74801
|
} catch (utimeser) {
|
|
74864
74802
|
er = futimeser;
|
|
74865
74803
|
}
|
|
@@ -74869,10 +74807,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74869
74807
|
const uid = this[UID](entry);
|
|
74870
74808
|
const gid = this[GID](entry);
|
|
74871
74809
|
try {
|
|
74872
|
-
|
|
74810
|
+
fs3.fchownSync(fd, uid, gid);
|
|
74873
74811
|
} catch (fchowner) {
|
|
74874
74812
|
try {
|
|
74875
|
-
|
|
74813
|
+
fs3.chownSync(entry.absolute, uid, gid);
|
|
74876
74814
|
} catch (chowner) {
|
|
74877
74815
|
er = er || fchowner;
|
|
74878
74816
|
}
|
|
@@ -74891,13 +74829,13 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74891
74829
|
}
|
|
74892
74830
|
if (entry.mtime && !this.noMtime) {
|
|
74893
74831
|
try {
|
|
74894
|
-
|
|
74832
|
+
fs3.utimesSync(entry.absolute, entry.atime || new Date(), entry.mtime);
|
|
74895
74833
|
} catch (er2) {
|
|
74896
74834
|
}
|
|
74897
74835
|
}
|
|
74898
74836
|
if (this[DOCHOWN](entry)) {
|
|
74899
74837
|
try {
|
|
74900
|
-
|
|
74838
|
+
fs3.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
74901
74839
|
} catch (er2) {
|
|
74902
74840
|
}
|
|
74903
74841
|
}
|
|
@@ -74924,7 +74862,7 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
|
74924
74862
|
}
|
|
74925
74863
|
[LINK](entry, linkpath, link, done) {
|
|
74926
74864
|
try {
|
|
74927
|
-
|
|
74865
|
+
fs3[link + "Sync"](linkpath, entry.absolute);
|
|
74928
74866
|
done();
|
|
74929
74867
|
entry.resume();
|
|
74930
74868
|
} catch (er) {
|
|
@@ -74939,9 +74877,9 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
74939
74877
|
"use strict";
|
|
74940
74878
|
var hlo = require_high_level_opt();
|
|
74941
74879
|
var Unpack = require_unpack();
|
|
74942
|
-
var
|
|
74880
|
+
var fs3 = __require("fs");
|
|
74943
74881
|
var fsm = require_fs_minipass();
|
|
74944
|
-
var
|
|
74882
|
+
var path4 = __require("path");
|
|
74945
74883
|
var stripSlash = require_strip_trailing_slashes();
|
|
74946
74884
|
module2.exports = (opt_, files, cb) => {
|
|
74947
74885
|
if (typeof opt_ === "function")
|
|
@@ -74967,8 +74905,8 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
74967
74905
|
const map = new Map(files.map((f) => [stripSlash(f), true]));
|
|
74968
74906
|
const filter = opt.filter;
|
|
74969
74907
|
const mapHas = (file, r) => {
|
|
74970
|
-
const root = r ||
|
|
74971
|
-
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(
|
|
74908
|
+
const root = r || path4.parse(file).root || ".";
|
|
74909
|
+
const ret = file === root ? false : map.has(file) ? map.get(file) : mapHas(path4.dirname(file), root);
|
|
74972
74910
|
map.set(file, ret);
|
|
74973
74911
|
return ret;
|
|
74974
74912
|
};
|
|
@@ -74977,7 +74915,7 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
74977
74915
|
var extractFileSync = (opt) => {
|
|
74978
74916
|
const u = new Unpack.Sync(opt);
|
|
74979
74917
|
const file = opt.file;
|
|
74980
|
-
const stat =
|
|
74918
|
+
const stat = fs3.statSync(file);
|
|
74981
74919
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
74982
74920
|
const stream = new fsm.ReadStreamSync(file, {
|
|
74983
74921
|
readSize,
|
|
@@ -74992,7 +74930,7 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
|
74992
74930
|
const p = new Promise((resolve, reject) => {
|
|
74993
74931
|
u.on("error", reject);
|
|
74994
74932
|
u.on("close", resolve);
|
|
74995
|
-
|
|
74933
|
+
fs3.stat(file, (er, stat) => {
|
|
74996
74934
|
if (er)
|
|
74997
74935
|
reject(er);
|
|
74998
74936
|
else {
|
|
@@ -75078,12 +75016,12 @@ var require_getNpmVersion = __commonJSMin((exports) => {
|
|
|
75078
75016
|
var _constants = require_constants6();
|
|
75079
75017
|
async function getNpmVersion(packageName, options3) {
|
|
75080
75018
|
const {
|
|
75081
|
-
version:
|
|
75019
|
+
version: version5,
|
|
75082
75020
|
registryUrl
|
|
75083
75021
|
} = options3 || {};
|
|
75084
75022
|
const params = ["view"];
|
|
75085
|
-
if (
|
|
75086
|
-
params.push(`${packageName}@${
|
|
75023
|
+
if (version5) {
|
|
75024
|
+
params.push(`${packageName}@${version5}`);
|
|
75087
75025
|
} else {
|
|
75088
75026
|
params.push(packageName);
|
|
75089
75027
|
}
|
|
@@ -75171,20 +75109,20 @@ var require_downloadPackage = __commonJSMin((exports) => {
|
|
|
75171
75109
|
registryUrl,
|
|
75172
75110
|
install
|
|
75173
75111
|
} = options3;
|
|
75174
|
-
const
|
|
75112
|
+
const version5 = await (0, _getNpmVersion.getNpmVersion)(pkgName, {
|
|
75175
75113
|
registryUrl,
|
|
75176
75114
|
version: pkgVersion
|
|
75177
75115
|
});
|
|
75178
|
-
if (
|
|
75116
|
+
if (version5 === void 0) {
|
|
75179
75117
|
throw new Error(`package ${pkgName}@${pkgVersion} not found in registry`);
|
|
75180
75118
|
}
|
|
75181
|
-
const targetDir = `${_os.default.tmpdir()}/csmith-generator/${pkgName}@${
|
|
75119
|
+
const targetDir = `${_os.default.tmpdir()}/csmith-generator/${pkgName}@${version5}`;
|
|
75182
75120
|
if (await (0, _fsExists.fsExists)(targetDir) && await isValidCache(targetDir)) {
|
|
75183
75121
|
return targetDir;
|
|
75184
75122
|
}
|
|
75185
75123
|
await _utils.fs.remove(targetDir);
|
|
75186
75124
|
await _utils.fs.mkdirp(targetDir);
|
|
75187
|
-
const tarballPkg = await (0, _getNpmTarballUrl.getNpmTarballUrl)(pkgName,
|
|
75125
|
+
const tarballPkg = await (0, _getNpmTarballUrl.getNpmTarballUrl)(pkgName, version5, {
|
|
75188
75126
|
registryUrl
|
|
75189
75127
|
});
|
|
75190
75128
|
await downloadAndDecompressTargz(tarballPkg, targetDir);
|
|
@@ -75341,9 +75279,9 @@ var require_materials = __commonJSMin((exports) => {
|
|
|
75341
75279
|
async loadRemoteGenerator(generator) {
|
|
75342
75280
|
const {
|
|
75343
75281
|
name: name4,
|
|
75344
|
-
version:
|
|
75282
|
+
version: version5
|
|
75345
75283
|
} = (0, _utils.getPackageInfo)(generator);
|
|
75346
|
-
const localPath = await (0, _utils.downloadPackage)(name4,
|
|
75284
|
+
const localPath = await (0, _utils.downloadPackage)(name4, version5, {
|
|
75347
75285
|
registryUrl: this.registryUrl,
|
|
75348
75286
|
install: true
|
|
75349
75287
|
});
|
|
@@ -75517,8 +75455,9 @@ var require_node = __commonJSMin((exports) => {
|
|
|
75517
75455
|
});
|
|
75518
75456
|
});
|
|
75519
75457
|
});
|
|
75520
|
-
var
|
|
75458
|
+
var import_utils5 = __toESM2(require_dist());
|
|
75521
75459
|
var import_codesmith = __toESM2(require_node());
|
|
75460
|
+
var version4 = "2.0.0-beta.1";
|
|
75522
75461
|
function _classCallCheck(instance, Constructor) {
|
|
75523
75462
|
if (!(instance instanceof Constructor)) {
|
|
75524
75463
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -75652,15 +75591,21 @@ var ZH_LOCALE = {
|
|
|
75652
75591
|
module: "\u4E00\u952E\u521B\u5EFA\u6A21\u5757\u5316\u5E94\u7528(\u4F7F\u7528\u9ED8\u8BA4\u914D\u7F6E)",
|
|
75653
75592
|
monorepo: "\u4E00\u952E\u5E38\u89C1 Monorepo \u5E94\u7528(\u4F7F\u7528\u9ED8\u8BA4\u914D\u7F6E)",
|
|
75654
75593
|
config: "\u521B\u5EFA\u9879\u76EE\u9ED8\u8BA4\u914D\u7F6E(JSON \u5B57\u7B26\u4E32)",
|
|
75594
|
+
generator: "\u4F7F\u7528\u81EA\u5B9A\u4E49\u751F\u6210\u5668",
|
|
75655
75595
|
packages: "\u521B\u5EFA\u9879\u76EE\u6307\u5B9A\u7279\u5B9A\u4F9D\u8D56\u7248\u672C\u4FE1\u606F",
|
|
75656
75596
|
distTag: "\u751F\u6210\u9879\u76EE\u65F6\u751F\u6210\u5668\u4F7F\u7528\u7279\u6B8A\u7684 npm Tag",
|
|
75657
75597
|
registry: "\u5728\u521B\u5EFA\u8FC7\u7A0B\u4E2D\u5B9A\u5236 npm Registry",
|
|
75658
75598
|
debug: "\u5F00\u542F Debug \u6A21\u5F0F\uFF0C\u6253\u5370\u8C03\u8BD5\u65E5\u5FD7\u4FE1\u606F",
|
|
75659
|
-
plugin: "\u4F7F\u7528\u751F\u6210\u5668\u63D2\u4EF6\u521B\u5EFA\u65B0\u7684\u5DE5\u7A0B\u65B9\u6848\u7C7B\u578B\u6216\u5B9A\u5236\u5316 Modern.js \u5DE5\u7A0B\u65B9\u6848"
|
|
75599
|
+
plugin: "\u4F7F\u7528\u751F\u6210\u5668\u63D2\u4EF6\u521B\u5EFA\u65B0\u7684\u5DE5\u7A0B\u65B9\u6848\u7C7B\u578B\u6216\u5B9A\u5236\u5316 Modern.js \u5DE5\u7A0B\u65B9\u6848",
|
|
75600
|
+
noNeedInstall: "\u65E0\u9700\u5B89\u88C5\u4F9D\u8D56",
|
|
75601
|
+
version: "\u5F53\u524D create \u5DE5\u5177\u7248\u672C\u53F7",
|
|
75602
|
+
lang: "\u8BBE\u7F6E create \u5DE5\u5177\u8BED\u8A00(zh \u6216\u8005 en)",
|
|
75603
|
+
cleanCache: "\u6E05\u9664\u672C\u5730\u751F\u6210\u5668\u7F13\u5B58"
|
|
75660
75604
|
},
|
|
75661
75605
|
tooltip: {
|
|
75662
75606
|
dir_entry: `\u4F60\u53EF\u4EE5\u6267\u884C 'cd {dirName}' \u8FDB\u5165\u76EE\u5F55`,
|
|
75663
|
-
dir_exists: `\u76EE\u5F55 '{dirName}' \u5DF2\u7ECF\u5B58\u5728
|
|
75607
|
+
dir_exists: `\u76EE\u5F55 '{dirName}' \u5DF2\u7ECF\u5B58\u5728`,
|
|
75608
|
+
clean_cache_success: "\u6E05\u9664\u751F\u6210\u5668\u7F13\u5B58\u6210\u529F\uFF01"
|
|
75664
75609
|
}
|
|
75665
75610
|
};
|
|
75666
75611
|
var EN_LOCALE = {
|
|
@@ -75674,11 +75619,17 @@ var EN_LOCALE = {
|
|
|
75674
75619
|
distTag: `use specified tag version for it's generator`,
|
|
75675
75620
|
registry: "set npm registry url to run npm command",
|
|
75676
75621
|
debug: "using debug mode to log something",
|
|
75677
|
-
|
|
75622
|
+
generator: "run custom generator",
|
|
75623
|
+
plugin: "use generator plugin to create new solution or customize Modern.js solution",
|
|
75624
|
+
noNeedInstall: "not run install command",
|
|
75625
|
+
version: "show create tools version",
|
|
75626
|
+
lang: "set create tools language(en or zh)",
|
|
75627
|
+
cleanCache: "clean locale generator cache"
|
|
75678
75628
|
},
|
|
75679
75629
|
tooltip: {
|
|
75680
75630
|
dir_entry: `you can execute 'cd {dirName}' to entry the project directory`,
|
|
75681
|
-
dir_exists: `directory '{dirName}' already exists
|
|
75631
|
+
dir_exists: `directory '{dirName}' already exists`,
|
|
75632
|
+
clean_cache_success: "Clean generator cache success!"
|
|
75682
75633
|
}
|
|
75683
75634
|
};
|
|
75684
75635
|
var i18n = new I18n();
|
|
@@ -75733,7 +75684,18 @@ function createDir(dirname, pwd) {
|
|
|
75733
75684
|
}
|
|
75734
75685
|
var REPO_GENERATOR = "@modern-js/repo-generator";
|
|
75735
75686
|
function getDefaultConfig(projectDir = import_path.default.basename(process.cwd()), options3, logger) {
|
|
75736
|
-
const {
|
|
75687
|
+
const {
|
|
75688
|
+
mwa,
|
|
75689
|
+
module: module2,
|
|
75690
|
+
monorepo,
|
|
75691
|
+
config,
|
|
75692
|
+
packages,
|
|
75693
|
+
registry,
|
|
75694
|
+
distTag,
|
|
75695
|
+
plugin,
|
|
75696
|
+
needInstall,
|
|
75697
|
+
lang
|
|
75698
|
+
} = options3;
|
|
75737
75699
|
let initialConfig = {};
|
|
75738
75700
|
try {
|
|
75739
75701
|
if (config) {
|
|
@@ -75745,7 +75707,7 @@ function getDefaultConfig(projectDir = import_path.default.basename(process.cwd(
|
|
|
75745
75707
|
process.exit(1);
|
|
75746
75708
|
}
|
|
75747
75709
|
if (!initialConfig.locale) {
|
|
75748
|
-
initialConfig.locale = getLocaleLanguage();
|
|
75710
|
+
initialConfig.locale = lang || getLocaleLanguage();
|
|
75749
75711
|
}
|
|
75750
75712
|
if (mwa) {
|
|
75751
75713
|
initialConfig.defaultSolution = "mwa";
|
|
@@ -75769,6 +75731,9 @@ function getDefaultConfig(projectDir = import_path.default.basename(process.cwd(
|
|
|
75769
75731
|
if (plugin) {
|
|
75770
75732
|
initialConfig.plugins = plugin;
|
|
75771
75733
|
}
|
|
75734
|
+
if (!needInstall) {
|
|
75735
|
+
initialConfig.noNeedInstall = true;
|
|
75736
|
+
}
|
|
75772
75737
|
try {
|
|
75773
75738
|
if (packages) {
|
|
75774
75739
|
const packagesInfo = JSON.parse(packages);
|
|
@@ -75779,14 +75744,31 @@ function getDefaultConfig(projectDir = import_path.default.basename(process.cwd(
|
|
|
75779
75744
|
logger.debug("parse packages error: ", e);
|
|
75780
75745
|
process.exit(1);
|
|
75781
75746
|
}
|
|
75747
|
+
if (process.env.EDENX_NO_INSTALL) {
|
|
75748
|
+
initialConfig.noNeedInstall = true;
|
|
75749
|
+
}
|
|
75782
75750
|
return initialConfig;
|
|
75783
75751
|
}
|
|
75784
75752
|
async function createAction(projectDir, options3) {
|
|
75785
|
-
const {
|
|
75753
|
+
const {
|
|
75754
|
+
lang,
|
|
75755
|
+
version: version5,
|
|
75756
|
+
debug,
|
|
75757
|
+
registry,
|
|
75758
|
+
distTag,
|
|
75759
|
+
generator: customGenerator
|
|
75760
|
+
} = options3;
|
|
75786
75761
|
const smith = new import_codesmith.CodeSmith({
|
|
75787
75762
|
debug,
|
|
75788
75763
|
registryUrl: registry
|
|
75789
75764
|
});
|
|
75765
|
+
if (lang) {
|
|
75766
|
+
i18n.changeLanguage({ locale: lang });
|
|
75767
|
+
}
|
|
75768
|
+
if (version5) {
|
|
75769
|
+
smith.logger.info("@modern-js/create", `v${version4}`);
|
|
75770
|
+
return;
|
|
75771
|
+
}
|
|
75790
75772
|
smith.logger.debug("@modern-js/create", projectDir || "", options3);
|
|
75791
75773
|
let pwd = process.cwd();
|
|
75792
75774
|
try {
|
|
@@ -75796,11 +75778,11 @@ async function createAction(projectDir, options3) {
|
|
|
75796
75778
|
process.exit(1);
|
|
75797
75779
|
}
|
|
75798
75780
|
const config = getDefaultConfig(projectDir, options3, smith.logger);
|
|
75799
|
-
let generator = REPO_GENERATOR;
|
|
75800
|
-
if (process.env.CODESMITH_ENV === "development") {
|
|
75781
|
+
let generator = customGenerator || REPO_GENERATOR;
|
|
75782
|
+
if (process.env.CODESMITH_ENV === "development" && generator === REPO_GENERATOR) {
|
|
75801
75783
|
generator = __require.resolve(REPO_GENERATOR);
|
|
75802
|
-
} else if (distTag) {
|
|
75803
|
-
generator = `${
|
|
75784
|
+
} else if (!import_path.default.isAbsolute(generator) && distTag) {
|
|
75785
|
+
generator = `${generator}@${distTag}`;
|
|
75804
75786
|
}
|
|
75805
75787
|
const task = [
|
|
75806
75788
|
{
|
|
@@ -75823,12 +75805,23 @@ async function createAction(projectDir, options3) {
|
|
|
75823
75805
|
smith.logger.info(i18n.t(localeKeys.tooltip.dir_entry, { dirName: projectDir }));
|
|
75824
75806
|
}
|
|
75825
75807
|
}
|
|
75808
|
+
var import_utils4 = __toESM2(require_dist());
|
|
75809
|
+
async function cleanCacheAction() {
|
|
75810
|
+
const tmpDir = import_os.default.tmpdir();
|
|
75811
|
+
const spinner = (0, import_utils4.ora)("Loading...").start();
|
|
75812
|
+
spinner.color = "yellow";
|
|
75813
|
+
const cacheDir = import_path3.default.join(tmpDir, "csmith-generator");
|
|
75814
|
+
import_utils4.fs.emptyDirSync(cacheDir);
|
|
75815
|
+
spinner.stop();
|
|
75816
|
+
console.info(`[INFO] ${i18n.t(localeKeys.tooltip.clean_cache_success)}`);
|
|
75817
|
+
}
|
|
75826
75818
|
function src_default() {
|
|
75827
75819
|
i18n.changeLanguage({ locale: getLocaleLanguage() });
|
|
75828
|
-
const program = new
|
|
75829
|
-
program.
|
|
75820
|
+
const program = new import_utils5.Command();
|
|
75821
|
+
program.command("clean-cache").description(i18n.t(localeKeys.command.cleanCache)).action(cleanCacheAction);
|
|
75822
|
+
program.usage("[projectDir]").description(i18n.t(localeKeys.command.description)).argument("[projectDir]").option("-c, --config <config>", i18n.t(localeKeys.command.config), "{}").option("--packages <packages>", i18n.t(localeKeys.command.packages), "{}").option("--mwa", i18n.t(localeKeys.command.mwa), false).option("--module", i18n.t(localeKeys.command.module), false).option("--monorepo", i18n.t(localeKeys.command.monorepo), false).option("--generator <generator>", i18n.t(localeKeys.command.generator)).option("-p, --plugin <plugin>", i18n.t(localeKeys.command.plugin), (val, memo) => {
|
|
75830
75823
|
memo.push(val);
|
|
75831
75824
|
return memo;
|
|
75832
|
-
}, []).option("--dist-tag <distTag>", i18n.t(localeKeys.command.distTag), "").option("--registry <registry>", i18n.t(localeKeys.command.registry), "").option("-d,--debug", i18n.t(localeKeys.command.debug), false).action(createAction);
|
|
75825
|
+
}, []).option("--dist-tag <distTag>", i18n.t(localeKeys.command.distTag), "").option("--registry <registry>", i18n.t(localeKeys.command.registry), "").option("-d,--debug", i18n.t(localeKeys.command.debug), false).option("--no-need-install", i18n.t(localeKeys.command.noNeedInstall), false).option("--lang <lang>", i18n.t(localeKeys.command.lang)).option("--version", i18n.t(localeKeys.command.version)).action(createAction);
|
|
75833
75826
|
program.parse(process.argv);
|
|
75834
75827
|
}
|