@hot-updater/plugin-core 0.16.2 → 0.16.4
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/createBlobDatabasePlugin.d.ts +42 -0
- package/dist/createBlobDatabasePlugin.spec.d.ts +1 -0
- package/dist/index.cjs +1271 -1479
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1236 -1477
- package/dist/makeEnv.spec.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1103,7 +1103,7 @@ var __webpack_modules__ = {
|
|
|
1103
1103
|
function encodedMappings(map) {
|
|
1104
1104
|
var _a;
|
|
1105
1105
|
var _b;
|
|
1106
|
-
return null
|
|
1106
|
+
return null != (_a = (_b = cast(map))._encoded) ? _a : _b._encoded = sourcemapCodec.encode(cast(map)._decoded);
|
|
1107
1107
|
}
|
|
1108
1108
|
function decodedMappings(map) {
|
|
1109
1109
|
var _a;
|
|
@@ -1330,10 +1330,7 @@ var __webpack_modules__ = {
|
|
|
1330
1330
|
const settings_1 = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js");
|
|
1331
1331
|
exports1.Settings = settings_1.default;
|
|
1332
1332
|
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
|
1333
|
-
if ('function' == typeof optionsOrSettingsOrCallback)
|
|
1334
|
-
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
1335
|
-
return;
|
|
1336
|
-
}
|
|
1333
|
+
if ('function' == typeof optionsOrSettingsOrCallback) return void async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
1337
1334
|
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
1338
1335
|
}
|
|
1339
1336
|
exports1.scandir = scandir;
|
|
@@ -1359,10 +1356,7 @@ var __webpack_modules__ = {
|
|
|
1359
1356
|
const utils = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js");
|
|
1360
1357
|
const common = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js");
|
|
1361
1358
|
function read(directory, settings, callback) {
|
|
1362
|
-
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES)
|
|
1363
|
-
readdirWithFileTypes(directory, settings, callback);
|
|
1364
|
-
return;
|
|
1365
|
-
}
|
|
1359
|
+
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return void readdirWithFileTypes(directory, settings, callback);
|
|
1366
1360
|
readdir(directory, settings, callback);
|
|
1367
1361
|
}
|
|
1368
1362
|
exports1.read = read;
|
|
@@ -1370,25 +1364,16 @@ var __webpack_modules__ = {
|
|
|
1370
1364
|
settings.fs.readdir(directory, {
|
|
1371
1365
|
withFileTypes: true
|
|
1372
1366
|
}, (readdirError, dirents)=>{
|
|
1373
|
-
if (null !== readdirError)
|
|
1374
|
-
callFailureCallback(callback, readdirError);
|
|
1375
|
-
return;
|
|
1376
|
-
}
|
|
1367
|
+
if (null !== readdirError) return void callFailureCallback(callback, readdirError);
|
|
1377
1368
|
const entries = dirents.map((dirent)=>({
|
|
1378
1369
|
dirent,
|
|
1379
1370
|
name: dirent.name,
|
|
1380
1371
|
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
|
1381
1372
|
}));
|
|
1382
|
-
if (!settings.followSymbolicLinks)
|
|
1383
|
-
callSuccessCallback(callback, entries);
|
|
1384
|
-
return;
|
|
1385
|
-
}
|
|
1373
|
+
if (!settings.followSymbolicLinks) return void callSuccessCallback(callback, entries);
|
|
1386
1374
|
const tasks = entries.map((entry)=>makeRplTaskEntry(entry, settings));
|
|
1387
1375
|
rpl(tasks, (rplError, rplEntries)=>{
|
|
1388
|
-
if (null !== rplError)
|
|
1389
|
-
callFailureCallback(callback, rplError);
|
|
1390
|
-
return;
|
|
1391
|
-
}
|
|
1376
|
+
if (null !== rplError) return void callFailureCallback(callback, rplError);
|
|
1392
1377
|
callSuccessCallback(callback, rplEntries);
|
|
1393
1378
|
});
|
|
1394
1379
|
});
|
|
@@ -1396,16 +1381,10 @@ var __webpack_modules__ = {
|
|
|
1396
1381
|
exports1.readdirWithFileTypes = readdirWithFileTypes;
|
|
1397
1382
|
function makeRplTaskEntry(entry, settings) {
|
|
1398
1383
|
return (done)=>{
|
|
1399
|
-
if (!entry.dirent.isSymbolicLink())
|
|
1400
|
-
done(null, entry);
|
|
1401
|
-
return;
|
|
1402
|
-
}
|
|
1384
|
+
if (!entry.dirent.isSymbolicLink()) return void done(null, entry);
|
|
1403
1385
|
settings.fs.stat(entry.path, (statError, stats)=>{
|
|
1404
1386
|
if (null !== statError) {
|
|
1405
|
-
if (settings.throwErrorOnBrokenSymbolicLink)
|
|
1406
|
-
done(statError);
|
|
1407
|
-
return;
|
|
1408
|
-
}
|
|
1387
|
+
if (settings.throwErrorOnBrokenSymbolicLink) return void done(statError);
|
|
1409
1388
|
done(null, entry);
|
|
1410
1389
|
return;
|
|
1411
1390
|
}
|
|
@@ -1416,18 +1395,12 @@ var __webpack_modules__ = {
|
|
|
1416
1395
|
}
|
|
1417
1396
|
function readdir(directory, settings, callback) {
|
|
1418
1397
|
settings.fs.readdir(directory, (readdirError, names)=>{
|
|
1419
|
-
if (null !== readdirError)
|
|
1420
|
-
callFailureCallback(callback, readdirError);
|
|
1421
|
-
return;
|
|
1422
|
-
}
|
|
1398
|
+
if (null !== readdirError) return void callFailureCallback(callback, readdirError);
|
|
1423
1399
|
const tasks = names.map((name)=>{
|
|
1424
1400
|
const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
1425
1401
|
return (done)=>{
|
|
1426
1402
|
fsStat.stat(path, settings.fsStatSettings, (error, stats)=>{
|
|
1427
|
-
if (null !== error)
|
|
1428
|
-
done(error);
|
|
1429
|
-
return;
|
|
1430
|
-
}
|
|
1403
|
+
if (null !== error) return void done(error);
|
|
1431
1404
|
const entry = {
|
|
1432
1405
|
name,
|
|
1433
1406
|
path,
|
|
@@ -1439,10 +1412,7 @@ var __webpack_modules__ = {
|
|
|
1439
1412
|
};
|
|
1440
1413
|
});
|
|
1441
1414
|
rpl(tasks, (rplError, entries)=>{
|
|
1442
|
-
if (null !== rplError)
|
|
1443
|
-
callFailureCallback(callback, rplError);
|
|
1444
|
-
return;
|
|
1445
|
-
}
|
|
1415
|
+
if (null !== rplError) return void callFailureCallback(callback, rplError);
|
|
1446
1416
|
callSuccessCallback(callback, entries);
|
|
1447
1417
|
});
|
|
1448
1418
|
});
|
|
@@ -1608,10 +1578,7 @@ var __webpack_modules__ = {
|
|
|
1608
1578
|
const settings_1 = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js");
|
|
1609
1579
|
exports1.Settings = settings_1.default;
|
|
1610
1580
|
function stat(path, optionsOrSettingsOrCallback, callback) {
|
|
1611
|
-
if ('function' == typeof optionsOrSettingsOrCallback)
|
|
1612
|
-
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
1613
|
-
return;
|
|
1614
|
-
}
|
|
1581
|
+
if ('function' == typeof optionsOrSettingsOrCallback) return void async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
1615
1582
|
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
1616
1583
|
}
|
|
1617
1584
|
exports1.stat = stat;
|
|
@@ -1633,20 +1600,11 @@ var __webpack_modules__ = {
|
|
|
1633
1600
|
exports1.read = void 0;
|
|
1634
1601
|
function read(path, settings, callback) {
|
|
1635
1602
|
settings.fs.lstat(path, (lstatError, lstat)=>{
|
|
1636
|
-
if (null !== lstatError)
|
|
1637
|
-
|
|
1638
|
-
return;
|
|
1639
|
-
}
|
|
1640
|
-
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
1641
|
-
callSuccessCallback(callback, lstat);
|
|
1642
|
-
return;
|
|
1643
|
-
}
|
|
1603
|
+
if (null !== lstatError) return void callFailureCallback(callback, lstatError);
|
|
1604
|
+
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return void callSuccessCallback(callback, lstat);
|
|
1644
1605
|
settings.fs.stat(path, (statError, stat)=>{
|
|
1645
1606
|
if (null !== statError) {
|
|
1646
|
-
if (settings.throwErrorOnBrokenSymbolicLink)
|
|
1647
|
-
callFailureCallback(callback, statError);
|
|
1648
|
-
return;
|
|
1649
|
-
}
|
|
1607
|
+
if (settings.throwErrorOnBrokenSymbolicLink) return void callFailureCallback(callback, statError);
|
|
1650
1608
|
callSuccessCallback(callback, lstat);
|
|
1651
1609
|
return;
|
|
1652
1610
|
}
|
|
@@ -1715,10 +1673,7 @@ var __webpack_modules__ = {
|
|
|
1715
1673
|
const settings_1 = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js");
|
|
1716
1674
|
exports1.Settings = settings_1.default;
|
|
1717
1675
|
function walk(directory, optionsOrSettingsOrCallback, callback) {
|
|
1718
|
-
if ('function' == typeof optionsOrSettingsOrCallback)
|
|
1719
|
-
new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
|
|
1720
|
-
return;
|
|
1721
|
-
}
|
|
1676
|
+
if ('function' == typeof optionsOrSettingsOrCallback) return void new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
|
|
1722
1677
|
new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
|
|
1723
1678
|
}
|
|
1724
1679
|
exports1.walk = walk;
|
|
@@ -1886,10 +1841,7 @@ var __webpack_modules__ = {
|
|
|
1886
1841
|
}
|
|
1887
1842
|
_worker(item, done) {
|
|
1888
1843
|
this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries)=>{
|
|
1889
|
-
if (null !== error)
|
|
1890
|
-
done(error, void 0);
|
|
1891
|
-
return;
|
|
1892
|
-
}
|
|
1844
|
+
if (null !== error) return void done(error, void 0);
|
|
1893
1845
|
for (const entry of entries)this._handleEntry(entry, item.base);
|
|
1894
1846
|
done(null, void 0);
|
|
1895
1847
|
});
|
|
@@ -2389,10 +2341,7 @@ var __webpack_modules__ = {
|
|
|
2389
2341
|
const src = data.src, dest = data.dest;
|
|
2390
2342
|
const onFresh = data.onFresh || noop;
|
|
2391
2343
|
const onDone = data.onDone || noop;
|
|
2392
|
-
if (files.has(dest.toLowerCase()))
|
|
2393
|
-
onDone();
|
|
2394
|
-
return;
|
|
2395
|
-
}
|
|
2344
|
+
if (files.has(dest.toLowerCase())) return void onDone();
|
|
2396
2345
|
files.add(dest.toLowerCase());
|
|
2397
2346
|
if (events.ignoreBasenames.indexOf((_path || _load_path()).default.basename(src)) >= 0) return;
|
|
2398
2347
|
const srcStat = yield lstat(src);
|
|
@@ -3544,10 +3493,9 @@ var __webpack_modules__ = {
|
|
|
3544
3493
|
SafeBuffer.alloc = function(size, fill, encoding) {
|
|
3545
3494
|
if ('number' != typeof size) throw new TypeError('Argument must be a number');
|
|
3546
3495
|
var buf = Buffer1(size);
|
|
3547
|
-
if (void 0 !== fill)
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
} else buf.fill(0);
|
|
3496
|
+
if (void 0 !== fill) if ('string' == typeof encoding) buf.fill(fill, encoding);
|
|
3497
|
+
else buf.fill(fill);
|
|
3498
|
+
else buf.fill(0);
|
|
3551
3499
|
return buf;
|
|
3552
3500
|
};
|
|
3553
3501
|
SafeBuffer.allocUnsafe = function(size) {
|
|
@@ -3939,12 +3887,10 @@ var __webpack_modules__ = {
|
|
|
3939
3887
|
function checkData(data, sri, opts) {
|
|
3940
3888
|
opts = opts || {};
|
|
3941
3889
|
sri = parse(sri, opts);
|
|
3942
|
-
if (!Object.keys(sri).length)
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
});
|
|
3947
|
-
}
|
|
3890
|
+
if (!Object.keys(sri).length) if (!opts.error) return false;
|
|
3891
|
+
else throw Object.assign(new Error('No valid integrity hashes to check against'), {
|
|
3892
|
+
code: 'EINTEGRITY'
|
|
3893
|
+
});
|
|
3948
3894
|
const algorithm = sri.pickAlgorithm(opts);
|
|
3949
3895
|
const digest = crypto.createHash(algorithm).update(data).digest('base64');
|
|
3950
3896
|
const newSri = parse({
|
|
@@ -4799,12 +4745,10 @@ var __webpack_modules__ = {
|
|
|
4799
4745
|
sync = false;
|
|
4800
4746
|
function done() {
|
|
4801
4747
|
--self1._processing;
|
|
4802
|
-
if (self1._processing <= 0) {
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
else self1._finish();
|
|
4807
|
-
}
|
|
4748
|
+
if (self1._processing <= 0) if (sync) process.nextTick(function() {
|
|
4749
|
+
self1._finish();
|
|
4750
|
+
});
|
|
4751
|
+
else self1._finish();
|
|
4808
4752
|
}
|
|
4809
4753
|
}
|
|
4810
4754
|
Glob.prototype._finish = function() {
|
|
@@ -4836,10 +4780,9 @@ var __webpack_modules__ = {
|
|
|
4836
4780
|
found.forEach(function(p, i) {
|
|
4837
4781
|
p = self1._makeAbs(p);
|
|
4838
4782
|
rp.realpath(p, self1.realpathCache, function(er, real) {
|
|
4839
|
-
if (er)
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
} else set[real] = true;
|
|
4783
|
+
if (er) if ('stat' === er.syscall) set[p] = true;
|
|
4784
|
+
else self1.emit('error', er);
|
|
4785
|
+
else set[real] = true;
|
|
4843
4786
|
if (0 === --n) {
|
|
4844
4787
|
self1.matches[index] = set;
|
|
4845
4788
|
cb();
|
|
@@ -4891,15 +4834,12 @@ var __webpack_modules__ = {
|
|
|
4891
4834
|
assert('function' == typeof cb);
|
|
4892
4835
|
if (this.aborted) return;
|
|
4893
4836
|
this._processing++;
|
|
4894
|
-
if (this.paused)
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
]);
|
|
4901
|
-
return;
|
|
4902
|
-
}
|
|
4837
|
+
if (this.paused) return void this._processQueue.push([
|
|
4838
|
+
pattern,
|
|
4839
|
+
index,
|
|
4840
|
+
inGlobStar,
|
|
4841
|
+
cb
|
|
4842
|
+
]);
|
|
4903
4843
|
var n = 0;
|
|
4904
4844
|
while('string' == typeof pattern[n])n++;
|
|
4905
4845
|
var prefix;
|
|
@@ -4973,13 +4913,10 @@ var __webpack_modules__ = {
|
|
|
4973
4913
|
Glob.prototype._emitMatch = function(index, e) {
|
|
4974
4914
|
if (this.aborted) return;
|
|
4975
4915
|
if (isIgnored(this, e)) return;
|
|
4976
|
-
if (this.paused)
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
]);
|
|
4981
|
-
return;
|
|
4982
|
-
}
|
|
4916
|
+
if (this.paused) return void this._emitQueue.push([
|
|
4917
|
+
index,
|
|
4918
|
+
e
|
|
4919
|
+
]);
|
|
4983
4920
|
var abs = isAbsolute(e) ? e : this._makeAbs(e);
|
|
4984
4921
|
if (this.mark) e = this._mark(e);
|
|
4985
4922
|
if (this.absolute) e = abs;
|
|
@@ -5090,7 +5027,7 @@ var __webpack_modules__ = {
|
|
|
5090
5027
|
if (isSym && inGlobStar) return cb();
|
|
5091
5028
|
for(var i = 0; i < len; i++){
|
|
5092
5029
|
var e = entries[i];
|
|
5093
|
-
if ('.' !== e.charAt(0) ||
|
|
5030
|
+
if ('.' !== e.charAt(0) || this.dot) {
|
|
5094
5031
|
var instead = gspref.concat(entries[i], remainWithoutGlobStar);
|
|
5095
5032
|
this._process(instead, index, true, cb);
|
|
5096
5033
|
var below = gspref.concat(entries[i], remain);
|
|
@@ -5131,8 +5068,8 @@ var __webpack_modules__ = {
|
|
|
5131
5068
|
if (needDir && 'FILE' === c) return cb();
|
|
5132
5069
|
}
|
|
5133
5070
|
var stat = this.statCache[abs];
|
|
5134
|
-
if (void 0 !== stat)
|
|
5135
|
-
|
|
5071
|
+
if (void 0 !== stat) if (false === stat) return cb(null, stat);
|
|
5072
|
+
else {
|
|
5136
5073
|
var type = stat.isDirectory() ? 'DIR' : 'FILE';
|
|
5137
5074
|
if (needDir && 'FILE' === type) return cb();
|
|
5138
5075
|
return cb(null, type, stat);
|
|
@@ -5276,15 +5213,14 @@ var __webpack_modules__ = {
|
|
|
5276
5213
|
chop++;
|
|
5277
5214
|
}
|
|
5278
5215
|
yield buildToken(TOKEN_TYPES.comment, val);
|
|
5279
|
-
} else if (' ' === input[0]) {
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
} else if ('"' === input[0]) {
|
|
5216
|
+
} else if (' ' === input[0]) if (lastNewline) {
|
|
5217
|
+
let indent = '';
|
|
5218
|
+
for(let i = 0; ' ' === input[i]; i++)indent += input[i];
|
|
5219
|
+
if (indent.length % 2) throw new TypeError('Invalid number of spaces');
|
|
5220
|
+
chop = indent.length;
|
|
5221
|
+
yield buildToken(TOKEN_TYPES.indent, indent.length / 2);
|
|
5222
|
+
} else chop++;
|
|
5223
|
+
else if ('"' === input[0]) {
|
|
5288
5224
|
let val = '';
|
|
5289
5225
|
for(let i = 0;; i++){
|
|
5290
5226
|
const currentChar = input[i];
|
|
@@ -5383,10 +5319,9 @@ var __webpack_modules__ = {
|
|
|
5383
5319
|
if (nextToken.type !== TOKEN_TYPES.indent) break;
|
|
5384
5320
|
if (nextToken.value === indent) this.next();
|
|
5385
5321
|
else break;
|
|
5386
|
-
} else if (propToken.type === TOKEN_TYPES.indent)
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
} else if (propToken.type === TOKEN_TYPES.eof) break;
|
|
5322
|
+
} else if (propToken.type === TOKEN_TYPES.indent) if (propToken.value === indent) this.next();
|
|
5323
|
+
else break;
|
|
5324
|
+
else if (propToken.type === TOKEN_TYPES.eof) break;
|
|
5390
5325
|
else if (propToken.type === TOKEN_TYPES.string) {
|
|
5391
5326
|
const key = propToken.value;
|
|
5392
5327
|
(0, (_invariant || _load_invariant()).default)(key, 'Expected a key');
|
|
@@ -5947,7 +5882,7 @@ var __webpack_modules__ = {
|
|
|
5947
5882
|
var i;
|
|
5948
5883
|
var split = ('string' == typeof namespaces ? namespaces : '').split(/[\s,]+/);
|
|
5949
5884
|
var len = split.length;
|
|
5950
|
-
for(i = 0; i < len; i++)if (
|
|
5885
|
+
for(i = 0; i < len; i++)if (split[i]) {
|
|
5951
5886
|
namespaces = split[i].replace(/\*/g, '.*?');
|
|
5952
5887
|
if ('-' === namespaces[0]) exports1.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
|
5953
5888
|
else exports1.names.push(new RegExp('^' + namespaces + '$'));
|
|
@@ -8069,7 +8004,7 @@ var __webpack_modules__ = {
|
|
|
8069
8004
|
function missingCallback(err) {
|
|
8070
8005
|
if (err) {
|
|
8071
8006
|
if (process.throwDeprecation) throw err;
|
|
8072
|
-
if (!process.noDeprecation) {
|
|
8007
|
+
else if (!process.noDeprecation) {
|
|
8073
8008
|
var msg = 'fs: missing callback ' + (err.stack || err.message);
|
|
8074
8009
|
if (process.traceDeprecation) console.trace(msg);
|
|
8075
8010
|
else console.error(msg);
|
|
@@ -8426,7 +8361,7 @@ var __webpack_modules__ = {
|
|
|
8426
8361
|
if (isSym && inGlobStar) return;
|
|
8427
8362
|
for(var i = 0; i < len; i++){
|
|
8428
8363
|
var e = entries[i];
|
|
8429
|
-
if ('.' !== e.charAt(0) ||
|
|
8364
|
+
if ('.' !== e.charAt(0) || this.dot) {
|
|
8430
8365
|
var instead = gspref.concat(entries[i], remainWithoutGlobStar);
|
|
8431
8366
|
this._process(instead, index, true);
|
|
8432
8367
|
var below = gspref.concat(entries[i], remain);
|
|
@@ -8984,16 +8919,16 @@ var __webpack_modules__ = {
|
|
|
8984
8919
|
return new RegExp(pattern, onlyFirst ? void 0 : 'g');
|
|
8985
8920
|
};
|
|
8986
8921
|
},
|
|
8987
|
-
"../../node_modules/.pnpm/braces@3.0.
|
|
8922
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
8988
8923
|
"use strict";
|
|
8989
|
-
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
8990
|
-
const compile = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
8991
|
-
const expand = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
8992
|
-
const parse = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
8924
|
+
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
8925
|
+
const compile = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js");
|
|
8926
|
+
const expand = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js");
|
|
8927
|
+
const parse = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js");
|
|
8993
8928
|
const braces = (input, options = {})=>{
|
|
8994
8929
|
let output = [];
|
|
8995
|
-
if (Array.isArray(input)) for (
|
|
8996
|
-
|
|
8930
|
+
if (Array.isArray(input)) for (const pattern of input){
|
|
8931
|
+
const result = braces.create(pattern, options);
|
|
8997
8932
|
if (Array.isArray(result)) output.push(...result);
|
|
8998
8933
|
else output.push(result);
|
|
8999
8934
|
}
|
|
@@ -9029,43 +8964,47 @@ var __webpack_modules__ = {
|
|
|
9029
8964
|
};
|
|
9030
8965
|
module.exports = braces;
|
|
9031
8966
|
},
|
|
9032
|
-
"../../node_modules/.pnpm/braces@3.0.
|
|
8967
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9033
8968
|
"use strict";
|
|
9034
|
-
const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.
|
|
9035
|
-
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
8969
|
+
const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js");
|
|
8970
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
|
|
9036
8971
|
const compile = (ast, options = {})=>{
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
8972
|
+
const walk = (node, parent = {})=>{
|
|
8973
|
+
const invalidBlock = utils.isInvalidBrace(parent);
|
|
8974
|
+
const invalidNode = true === node.invalid && true === options.escapeInvalid;
|
|
8975
|
+
const invalid = true === invalidBlock || true === invalidNode;
|
|
8976
|
+
const prefix = true === options.escapeInvalid ? '\\' : '';
|
|
9042
8977
|
let output = '';
|
|
9043
8978
|
if (true === node.isOpen) return prefix + node.value;
|
|
9044
|
-
if (true === node.isClose)
|
|
8979
|
+
if (true === node.isClose) {
|
|
8980
|
+
console.log('node.isClose', prefix, node.value);
|
|
8981
|
+
return prefix + node.value;
|
|
8982
|
+
}
|
|
9045
8983
|
if ('open' === node.type) return invalid ? prefix + node.value : '(';
|
|
9046
8984
|
if ('close' === node.type) return invalid ? prefix + node.value : ')';
|
|
9047
8985
|
if ('comma' === node.type) return 'comma' === node.prev.type ? '' : invalid ? node.value : '|';
|
|
9048
8986
|
if (node.value) return node.value;
|
|
9049
8987
|
if (node.nodes && node.ranges > 0) {
|
|
9050
|
-
|
|
9051
|
-
|
|
8988
|
+
const args = utils.reduce(node.nodes);
|
|
8989
|
+
const range = fill(...args, {
|
|
9052
8990
|
...options,
|
|
9053
8991
|
wrap: false,
|
|
9054
|
-
toRegex: true
|
|
8992
|
+
toRegex: true,
|
|
8993
|
+
strictZeros: true
|
|
9055
8994
|
});
|
|
9056
8995
|
if (0 !== range.length) return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
9057
8996
|
}
|
|
9058
|
-
if (node.nodes) for (
|
|
8997
|
+
if (node.nodes) for (const child of node.nodes)output += walk(child, node);
|
|
9059
8998
|
return output;
|
|
9060
8999
|
};
|
|
9061
9000
|
return walk(ast);
|
|
9062
9001
|
};
|
|
9063
9002
|
module.exports = compile;
|
|
9064
9003
|
},
|
|
9065
|
-
"../../node_modules/.pnpm/braces@3.0.
|
|
9004
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js": function(module) {
|
|
9066
9005
|
"use strict";
|
|
9067
9006
|
module.exports = {
|
|
9068
|
-
MAX_LENGTH:
|
|
9007
|
+
MAX_LENGTH: 10000,
|
|
9069
9008
|
CHAR_0: '0',
|
|
9070
9009
|
CHAR_9: '9',
|
|
9071
9010
|
CHAR_UPPERCASE_A: 'A',
|
|
@@ -9112,18 +9051,18 @@ var __webpack_modules__ = {
|
|
|
9112
9051
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF'
|
|
9113
9052
|
};
|
|
9114
9053
|
},
|
|
9115
|
-
"../../node_modules/.pnpm/braces@3.0.
|
|
9054
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9116
9055
|
"use strict";
|
|
9117
|
-
const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.
|
|
9118
|
-
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
9119
|
-
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
9056
|
+
const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js");
|
|
9057
|
+
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
9058
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
|
|
9120
9059
|
const append = (queue = '', stash = '', enclose = false)=>{
|
|
9121
|
-
|
|
9060
|
+
const result = [];
|
|
9122
9061
|
queue = [].concat(queue);
|
|
9123
9062
|
stash = [].concat(stash);
|
|
9124
9063
|
if (!stash.length) return queue;
|
|
9125
9064
|
if (!queue.length) return enclose ? utils.flatten(stash).map((ele)=>`{${ele}}`) : stash;
|
|
9126
|
-
for (
|
|
9065
|
+
for (const item of queue)if (Array.isArray(item)) for (const value1 of item)result.push(append(value1, stash, enclose));
|
|
9127
9066
|
else for (let ele of stash){
|
|
9128
9067
|
if (true === enclose && 'string' == typeof ele) ele = `{${ele}}`;
|
|
9129
9068
|
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
@@ -9131,8 +9070,8 @@ var __webpack_modules__ = {
|
|
|
9131
9070
|
return utils.flatten(result);
|
|
9132
9071
|
};
|
|
9133
9072
|
const expand = (ast, options = {})=>{
|
|
9134
|
-
|
|
9135
|
-
|
|
9073
|
+
const rangeLimit = void 0 === options.rangeLimit ? 1000 : options.rangeLimit;
|
|
9074
|
+
const walk = (node, parent = {})=>{
|
|
9136
9075
|
node.queue = [];
|
|
9137
9076
|
let p = parent;
|
|
9138
9077
|
let q = parent.queue;
|
|
@@ -9140,18 +9079,12 @@ var __webpack_modules__ = {
|
|
|
9140
9079
|
p = p.parent;
|
|
9141
9080
|
q = p.queue;
|
|
9142
9081
|
}
|
|
9143
|
-
if (node.invalid || node.dollar)
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) {
|
|
9148
|
-
q.push(append(q.pop(), [
|
|
9149
|
-
'{}'
|
|
9150
|
-
]));
|
|
9151
|
-
return;
|
|
9152
|
-
}
|
|
9082
|
+
if (node.invalid || node.dollar) return void q.push(append(q.pop(), stringify(node, options)));
|
|
9083
|
+
if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) return void q.push(append(q.pop(), [
|
|
9084
|
+
'{}'
|
|
9085
|
+
]));
|
|
9153
9086
|
if (node.nodes && node.ranges > 0) {
|
|
9154
|
-
|
|
9087
|
+
const args = utils.reduce(node.nodes);
|
|
9155
9088
|
if (utils.exceedsLimit(...args, options.step, rangeLimit)) throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.');
|
|
9156
9089
|
let range = fill(...args, options);
|
|
9157
9090
|
if (0 === range.length) range = stringify(node, options);
|
|
@@ -9159,7 +9092,7 @@ var __webpack_modules__ = {
|
|
|
9159
9092
|
node.nodes = [];
|
|
9160
9093
|
return;
|
|
9161
9094
|
}
|
|
9162
|
-
|
|
9095
|
+
const enclose = utils.encloseBrace(node);
|
|
9163
9096
|
let queue = node.queue;
|
|
9164
9097
|
let block = node;
|
|
9165
9098
|
while('brace' !== block.type && 'root' !== block.type && block.parent){
|
|
@@ -9167,7 +9100,7 @@ var __webpack_modules__ = {
|
|
|
9167
9100
|
queue = block.queue;
|
|
9168
9101
|
}
|
|
9169
9102
|
for(let i = 0; i < node.nodes.length; i++){
|
|
9170
|
-
|
|
9103
|
+
const child = node.nodes[i];
|
|
9171
9104
|
if ('comma' === child.type && 'brace' === node.type) {
|
|
9172
9105
|
if (1 === i) queue.push('');
|
|
9173
9106
|
queue.push('');
|
|
@@ -9189,27 +9122,27 @@ var __webpack_modules__ = {
|
|
|
9189
9122
|
};
|
|
9190
9123
|
module.exports = expand;
|
|
9191
9124
|
},
|
|
9192
|
-
"../../node_modules/.pnpm/braces@3.0.
|
|
9125
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9193
9126
|
"use strict";
|
|
9194
|
-
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
9195
|
-
const { MAX_LENGTH, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA, CHAR_DOT, CHAR_LEFT_PARENTHESES, CHAR_RIGHT_PARENTHESES, CHAR_LEFT_CURLY_BRACE, CHAR_RIGHT_CURLY_BRACE, CHAR_LEFT_SQUARE_BRACKET, CHAR_RIGHT_SQUARE_BRACKET, CHAR_DOUBLE_QUOTE, CHAR_SINGLE_QUOTE, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
9127
|
+
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
9128
|
+
const { MAX_LENGTH, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA, CHAR_DOT, CHAR_LEFT_PARENTHESES, CHAR_RIGHT_PARENTHESES, CHAR_LEFT_CURLY_BRACE, CHAR_RIGHT_CURLY_BRACE, CHAR_LEFT_SQUARE_BRACKET, CHAR_RIGHT_SQUARE_BRACKET, CHAR_DOUBLE_QUOTE, CHAR_SINGLE_QUOTE, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js");
|
|
9196
9129
|
const parse = (input, options = {})=>{
|
|
9197
9130
|
if ('string' != typeof input) throw new TypeError('Expected a string');
|
|
9198
|
-
|
|
9199
|
-
|
|
9131
|
+
const opts = options || {};
|
|
9132
|
+
const max = 'number' == typeof opts.maxLength ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
9200
9133
|
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
9201
|
-
|
|
9134
|
+
const ast = {
|
|
9202
9135
|
type: 'root',
|
|
9203
9136
|
input,
|
|
9204
9137
|
nodes: []
|
|
9205
9138
|
};
|
|
9206
|
-
|
|
9139
|
+
const stack = [
|
|
9207
9140
|
ast
|
|
9208
9141
|
];
|
|
9209
9142
|
let block = ast;
|
|
9210
9143
|
let prev = ast;
|
|
9211
9144
|
let brackets = 0;
|
|
9212
|
-
|
|
9145
|
+
const length = input.length;
|
|
9213
9146
|
let index = 0;
|
|
9214
9147
|
let depth = 0;
|
|
9215
9148
|
let value1;
|
|
@@ -9300,7 +9233,7 @@ var __webpack_modules__ = {
|
|
|
9300
9233
|
continue;
|
|
9301
9234
|
}
|
|
9302
9235
|
if (value1 === CHAR_DOUBLE_QUOTE || value1 === CHAR_SINGLE_QUOTE || value1 === CHAR_BACKTICK) {
|
|
9303
|
-
|
|
9236
|
+
const open = value1;
|
|
9304
9237
|
let next;
|
|
9305
9238
|
if (true !== options.keepQuotes) value1 = '';
|
|
9306
9239
|
while(index < length && (next = advance())){
|
|
@@ -9322,8 +9255,8 @@ var __webpack_modules__ = {
|
|
|
9322
9255
|
}
|
|
9323
9256
|
if (value1 === CHAR_LEFT_CURLY_BRACE) {
|
|
9324
9257
|
depth++;
|
|
9325
|
-
|
|
9326
|
-
|
|
9258
|
+
const dollar = prev.value && '$' === prev.value.slice(-1) || true === block.dollar;
|
|
9259
|
+
const brace = {
|
|
9327
9260
|
type: 'brace',
|
|
9328
9261
|
open: true,
|
|
9329
9262
|
close: false,
|
|
@@ -9349,7 +9282,7 @@ var __webpack_modules__ = {
|
|
|
9349
9282
|
});
|
|
9350
9283
|
continue;
|
|
9351
9284
|
}
|
|
9352
|
-
|
|
9285
|
+
const type = 'close';
|
|
9353
9286
|
block = stack.pop();
|
|
9354
9287
|
block.close = true;
|
|
9355
9288
|
push({
|
|
@@ -9363,7 +9296,7 @@ var __webpack_modules__ = {
|
|
|
9363
9296
|
if (value1 === CHAR_COMMA && depth > 0) {
|
|
9364
9297
|
if (block.ranges > 0) {
|
|
9365
9298
|
block.ranges = 0;
|
|
9366
|
-
|
|
9299
|
+
const open = block.nodes.shift();
|
|
9367
9300
|
block.nodes = [
|
|
9368
9301
|
open,
|
|
9369
9302
|
{
|
|
@@ -9380,7 +9313,7 @@ var __webpack_modules__ = {
|
|
|
9380
9313
|
continue;
|
|
9381
9314
|
}
|
|
9382
9315
|
if (value1 === CHAR_DOT && depth > 0 && 0 === block.commas) {
|
|
9383
|
-
|
|
9316
|
+
const siblings = block.nodes;
|
|
9384
9317
|
if (0 === depth || 0 === siblings.length) {
|
|
9385
9318
|
push({
|
|
9386
9319
|
type: 'text',
|
|
@@ -9404,7 +9337,7 @@ var __webpack_modules__ = {
|
|
|
9404
9337
|
}
|
|
9405
9338
|
if ('range' === prev.type) {
|
|
9406
9339
|
siblings.pop();
|
|
9407
|
-
|
|
9340
|
+
const before = siblings[siblings.length - 1];
|
|
9408
9341
|
before.value += prev.value + value1;
|
|
9409
9342
|
prev = before;
|
|
9410
9343
|
block.ranges--;
|
|
@@ -9432,8 +9365,8 @@ var __webpack_modules__ = {
|
|
|
9432
9365
|
node.invalid = true;
|
|
9433
9366
|
}
|
|
9434
9367
|
});
|
|
9435
|
-
|
|
9436
|
-
|
|
9368
|
+
const parent = stack[stack.length - 1];
|
|
9369
|
+
const index = parent.nodes.indexOf(block);
|
|
9437
9370
|
parent.nodes.splice(index, 1, ...block.nodes);
|
|
9438
9371
|
}
|
|
9439
9372
|
}while (stack.length > 0);
|
|
@@ -9444,26 +9377,26 @@ var __webpack_modules__ = {
|
|
|
9444
9377
|
};
|
|
9445
9378
|
module.exports = parse;
|
|
9446
9379
|
},
|
|
9447
|
-
"../../node_modules/.pnpm/braces@3.0.
|
|
9380
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9448
9381
|
"use strict";
|
|
9449
|
-
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
9382
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
|
|
9450
9383
|
module.exports = (ast, options = {})=>{
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9384
|
+
const stringify = (node, parent = {})=>{
|
|
9385
|
+
const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
9386
|
+
const invalidNode = true === node.invalid && true === options.escapeInvalid;
|
|
9454
9387
|
let output = '';
|
|
9455
9388
|
if (node.value) {
|
|
9456
9389
|
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) return '\\' + node.value;
|
|
9457
9390
|
return node.value;
|
|
9458
9391
|
}
|
|
9459
9392
|
if (node.value) return node.value;
|
|
9460
|
-
if (node.nodes) for (
|
|
9393
|
+
if (node.nodes) for (const child of node.nodes)output += stringify(child);
|
|
9461
9394
|
return output;
|
|
9462
9395
|
};
|
|
9463
9396
|
return stringify(ast);
|
|
9464
9397
|
};
|
|
9465
9398
|
},
|
|
9466
|
-
"../../node_modules/.pnpm/braces@3.0.
|
|
9399
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js": function(__unused_webpack_module, exports1) {
|
|
9467
9400
|
"use strict";
|
|
9468
9401
|
exports1.isInteger = (num)=>{
|
|
9469
9402
|
if ('number' == typeof num) return Number.isInteger(num);
|
|
@@ -9477,7 +9410,7 @@ var __webpack_modules__ = {
|
|
|
9477
9410
|
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
9478
9411
|
};
|
|
9479
9412
|
exports1.escapeNode = (block, n = 0, type)=>{
|
|
9480
|
-
|
|
9413
|
+
const node = block.nodes[n];
|
|
9481
9414
|
if (!node) return;
|
|
9482
9415
|
if (type && node.type === type || 'open' === node.type || 'close' === node.type) {
|
|
9483
9416
|
if (true !== node.escaped) {
|
|
@@ -9520,8 +9453,12 @@ var __webpack_modules__ = {
|
|
|
9520
9453
|
const result = [];
|
|
9521
9454
|
const flat = (arr)=>{
|
|
9522
9455
|
for(let i = 0; i < arr.length; i++){
|
|
9523
|
-
|
|
9524
|
-
Array.isArray(ele)
|
|
9456
|
+
const ele = arr[i];
|
|
9457
|
+
if (Array.isArray(ele)) {
|
|
9458
|
+
flat(ele);
|
|
9459
|
+
continue;
|
|
9460
|
+
}
|
|
9461
|
+
if (void 0 !== ele) result.push(ele);
|
|
9525
9462
|
}
|
|
9526
9463
|
return result;
|
|
9527
9464
|
};
|
|
@@ -9841,16 +9778,15 @@ var __webpack_modules__ = {
|
|
|
9841
9778
|
let templateIndex = 0;
|
|
9842
9779
|
let starIndex = -1;
|
|
9843
9780
|
let matchIndex = 0;
|
|
9844
|
-
while(searchIndex < search.length)if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || '*' === template[templateIndex])) {
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
templateIndex++;
|
|
9849
|
-
} else {
|
|
9850
|
-
searchIndex++;
|
|
9851
|
-
templateIndex++;
|
|
9852
|
-
}
|
|
9781
|
+
while(searchIndex < search.length)if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || '*' === template[templateIndex])) if ('*' === template[templateIndex]) {
|
|
9782
|
+
starIndex = templateIndex;
|
|
9783
|
+
matchIndex = searchIndex;
|
|
9784
|
+
templateIndex++;
|
|
9853
9785
|
} else {
|
|
9786
|
+
searchIndex++;
|
|
9787
|
+
templateIndex++;
|
|
9788
|
+
}
|
|
9789
|
+
else {
|
|
9854
9790
|
if (-1 === starIndex) return false;
|
|
9855
9791
|
templateIndex = starIndex + 1;
|
|
9856
9792
|
matchIndex++;
|
|
@@ -10708,7 +10644,7 @@ var __webpack_modules__ = {
|
|
|
10708
10644
|
for (const pattern of patterns){
|
|
10709
10645
|
const filepath = this._getFullEntryPath(pattern);
|
|
10710
10646
|
const entry = this._getEntry(filepath, pattern, options);
|
|
10711
|
-
if (null !== entry &&
|
|
10647
|
+
if (null !== entry && options.entryFilter(entry)) entries.push(entry);
|
|
10712
10648
|
}
|
|
10713
10649
|
return entries;
|
|
10714
10650
|
}
|
|
@@ -10916,7 +10852,7 @@ var __webpack_modules__ = {
|
|
|
10916
10852
|
exports1.removeDuplicateSlashes = exports1.matchAny = exports1.convertPatternsToRe = exports1.makeRe = exports1.getPatternParts = exports1.expandBraceExpansion = exports1.expandPatternsWithBraceExpansion = exports1.isAffectDepthOfReadingPattern = exports1.endsWithSlashGlobStar = exports1.hasGlobStar = exports1.getBaseDirectory = exports1.isPatternRelatedToParentDirectory = exports1.getPatternsOutsideCurrentDirectory = exports1.getPatternsInsideCurrentDirectory = exports1.getPositivePatterns = exports1.getNegativePatterns = exports1.isPositivePattern = exports1.isNegativePattern = exports1.convertToNegativePattern = exports1.convertToPositivePattern = exports1.isDynamicPattern = exports1.isStaticPattern = void 0;
|
|
10917
10853
|
const path = __webpack_require__("path");
|
|
10918
10854
|
const globParent = __webpack_require__("../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js");
|
|
10919
|
-
const micromatch = __webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
10855
|
+
const micromatch = __webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js");
|
|
10920
10856
|
const GLOBSTAR = '**';
|
|
10921
10857
|
const ESCAPE_SYMBOL = '\\';
|
|
10922
10858
|
const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
|
|
@@ -11158,16 +11094,15 @@ var __webpack_modules__ = {
|
|
|
11158
11094
|
current.value = value1;
|
|
11159
11095
|
current.callback = done || noop;
|
|
11160
11096
|
current.errorHandler = errorHandler;
|
|
11161
|
-
if (_running === self1.concurrency || self1.paused) {
|
|
11162
|
-
|
|
11163
|
-
|
|
11164
|
-
queueTail = current;
|
|
11165
|
-
} else {
|
|
11166
|
-
queueHead = current;
|
|
11167
|
-
queueTail = current;
|
|
11168
|
-
self1.saturated();
|
|
11169
|
-
}
|
|
11097
|
+
if (_running === self1.concurrency || self1.paused) if (queueTail) {
|
|
11098
|
+
queueTail.next = current;
|
|
11099
|
+
queueTail = current;
|
|
11170
11100
|
} else {
|
|
11101
|
+
queueHead = current;
|
|
11102
|
+
queueTail = current;
|
|
11103
|
+
self1.saturated();
|
|
11104
|
+
}
|
|
11105
|
+
else {
|
|
11171
11106
|
_running++;
|
|
11172
11107
|
worker.call(context, current.value, current.worked);
|
|
11173
11108
|
}
|
|
@@ -11178,16 +11113,15 @@ var __webpack_modules__ = {
|
|
|
11178
11113
|
current.release = release;
|
|
11179
11114
|
current.value = value1;
|
|
11180
11115
|
current.callback = done || noop;
|
|
11181
|
-
if (_running === self1.concurrency || self1.paused) {
|
|
11182
|
-
|
|
11183
|
-
|
|
11184
|
-
queueHead = current;
|
|
11185
|
-
} else {
|
|
11186
|
-
queueHead = current;
|
|
11187
|
-
queueTail = current;
|
|
11188
|
-
self1.saturated();
|
|
11189
|
-
}
|
|
11116
|
+
if (_running === self1.concurrency || self1.paused) if (queueHead) {
|
|
11117
|
+
current.next = queueHead;
|
|
11118
|
+
queueHead = current;
|
|
11190
11119
|
} else {
|
|
11120
|
+
queueHead = current;
|
|
11121
|
+
queueTail = current;
|
|
11122
|
+
self1.saturated();
|
|
11123
|
+
}
|
|
11124
|
+
else {
|
|
11191
11125
|
_running++;
|
|
11192
11126
|
worker.call(context, current.value, current.worked);
|
|
11193
11127
|
}
|
|
@@ -11195,16 +11129,15 @@ var __webpack_modules__ = {
|
|
|
11195
11129
|
function release(holder) {
|
|
11196
11130
|
if (holder) cache.release(holder);
|
|
11197
11131
|
var next = queueHead;
|
|
11198
|
-
if (next)
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
} else if (0 === --_running) self1.drain();
|
|
11132
|
+
if (next) if (self1.paused) _running--;
|
|
11133
|
+
else {
|
|
11134
|
+
if (queueTail === queueHead) queueTail = null;
|
|
11135
|
+
queueHead = next.next;
|
|
11136
|
+
next.next = null;
|
|
11137
|
+
worker.call(context, next.value, next.worked);
|
|
11138
|
+
if (null === queueTail) self1.empty();
|
|
11139
|
+
}
|
|
11140
|
+
else if (0 === --_running) self1.drain();
|
|
11208
11141
|
}
|
|
11209
11142
|
function kill() {
|
|
11210
11143
|
queueHead = null;
|
|
@@ -11262,10 +11195,7 @@ var __webpack_modules__ = {
|
|
|
11262
11195
|
function push(value1) {
|
|
11263
11196
|
var p = new Promise(function(resolve, reject) {
|
|
11264
11197
|
pushCb(value1, function(err, result) {
|
|
11265
|
-
if (err)
|
|
11266
|
-
reject(err);
|
|
11267
|
-
return;
|
|
11268
|
-
}
|
|
11198
|
+
if (err) return void reject(err);
|
|
11269
11199
|
resolve(result);
|
|
11270
11200
|
});
|
|
11271
11201
|
});
|
|
@@ -11275,10 +11205,7 @@ var __webpack_modules__ = {
|
|
|
11275
11205
|
function unshift(value1) {
|
|
11276
11206
|
var p = new Promise(function(resolve, reject) {
|
|
11277
11207
|
unshiftCb(value1, function(err, result) {
|
|
11278
|
-
if (err)
|
|
11279
|
-
reject(err);
|
|
11280
|
-
return;
|
|
11281
|
-
}
|
|
11208
|
+
if (err) return void reject(err);
|
|
11282
11209
|
resolve(result);
|
|
11283
11210
|
});
|
|
11284
11211
|
});
|
|
@@ -11302,7 +11229,7 @@ var __webpack_modules__ = {
|
|
|
11302
11229
|
module.exports = fastqueue;
|
|
11303
11230
|
module.exports.promise = queueAsPromised;
|
|
11304
11231
|
},
|
|
11305
|
-
"../../node_modules/.pnpm/fill-range@7.
|
|
11232
|
+
"../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11306
11233
|
"use strict";
|
|
11307
11234
|
/*!
|
|
11308
11235
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
@@ -11345,15 +11272,15 @@ var __webpack_modules__ = {
|
|
|
11345
11272
|
while(input.length < maxLength)input = '0' + input;
|
|
11346
11273
|
return negative ? '-' + input : input;
|
|
11347
11274
|
};
|
|
11348
|
-
const toSequence = (parts, options)=>{
|
|
11275
|
+
const toSequence = (parts, options, maxLen)=>{
|
|
11349
11276
|
parts.negatives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11350
11277
|
parts.positives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11351
11278
|
let prefix = options.capture ? '' : '?:';
|
|
11352
11279
|
let positives = '';
|
|
11353
11280
|
let negatives = '';
|
|
11354
11281
|
let result;
|
|
11355
|
-
if (parts.positives.length) positives = parts.positives.join('|');
|
|
11356
|
-
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.join('|')})`;
|
|
11282
|
+
if (parts.positives.length) positives = parts.positives.map((v)=>toMaxLen(String(v), maxLen)).join('|');
|
|
11283
|
+
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.map((v)=>toMaxLen(String(v), maxLen)).join('|')})`;
|
|
11357
11284
|
result = positives && negatives ? `${positives}|${negatives}` : positives || negatives;
|
|
11358
11285
|
if (options.wrap) return `(${prefix}${result})`;
|
|
11359
11286
|
return result;
|
|
@@ -11423,7 +11350,7 @@ var __webpack_modules__ = {
|
|
|
11423
11350
|
a = descending ? a - step : a + step;
|
|
11424
11351
|
index++;
|
|
11425
11352
|
}
|
|
11426
|
-
if (true === options.toRegex) return step > 1 ? toSequence(parts, options) : toRegex(range, null, {
|
|
11353
|
+
if (true === options.toRegex) return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, {
|
|
11427
11354
|
wrap: false,
|
|
11428
11355
|
...options
|
|
11429
11356
|
});
|
|
@@ -11476,7 +11403,7 @@ var __webpack_modules__ = {
|
|
|
11476
11403
|
},
|
|
11477
11404
|
"../../node_modules/.pnpm/git-up@7.0.0/node_modules/git-up/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11478
11405
|
"use strict";
|
|
11479
|
-
var parseUrl = __webpack_require__("../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js"), isSsh = __webpack_require__("../../node_modules/.pnpm/is-ssh@1.4.
|
|
11406
|
+
var parseUrl = __webpack_require__("../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js"), isSsh = __webpack_require__("../../node_modules/.pnpm/is-ssh@1.4.1/node_modules/is-ssh/lib/index.js");
|
|
11480
11407
|
function gitUp(input) {
|
|
11481
11408
|
var output = parseUrl(input);
|
|
11482
11409
|
output.token = "";
|
|
@@ -11743,37 +11670,36 @@ var __webpack_modules__ = {
|
|
|
11743
11670
|
"use strict";
|
|
11744
11671
|
var Mutation = global.MutationObserver || global.WebKitMutationObserver;
|
|
11745
11672
|
var scheduleDrain;
|
|
11746
|
-
if (process.browser) {
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11673
|
+
if (process.browser) if (Mutation) {
|
|
11674
|
+
var called = 0;
|
|
11675
|
+
var observer = new Mutation(nextTick);
|
|
11676
|
+
var element = global.document.createTextNode('');
|
|
11677
|
+
observer.observe(element, {
|
|
11678
|
+
characterData: true
|
|
11679
|
+
});
|
|
11680
|
+
scheduleDrain = function() {
|
|
11681
|
+
element.data = called = ++called % 2;
|
|
11682
|
+
};
|
|
11683
|
+
} else if (global.setImmediate || void 0 === global.MessageChannel) scheduleDrain = 'document' in global && 'onreadystatechange' in global.document.createElement("script") ? function() {
|
|
11684
|
+
var scriptEl = global.document.createElement("script");
|
|
11685
|
+
scriptEl.onreadystatechange = function() {
|
|
11686
|
+
nextTick();
|
|
11687
|
+
scriptEl.onreadystatechange = null;
|
|
11688
|
+
scriptEl.parentNode.removeChild(scriptEl);
|
|
11689
|
+
scriptEl = null;
|
|
11690
|
+
};
|
|
11691
|
+
global.document.documentElement.appendChild(scriptEl);
|
|
11692
|
+
} : function() {
|
|
11693
|
+
setTimeout(nextTick, 0);
|
|
11694
|
+
};
|
|
11695
|
+
else {
|
|
11696
|
+
var channel = new global.MessageChannel();
|
|
11697
|
+
channel.port1.onmessage = nextTick;
|
|
11698
|
+
scheduleDrain = function() {
|
|
11699
|
+
channel.port2.postMessage(0);
|
|
11768
11700
|
};
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
channel.port1.onmessage = nextTick;
|
|
11772
|
-
scheduleDrain = function() {
|
|
11773
|
-
channel.port2.postMessage(0);
|
|
11774
|
-
};
|
|
11775
|
-
}
|
|
11776
|
-
} else scheduleDrain = function() {
|
|
11701
|
+
}
|
|
11702
|
+
else scheduleDrain = function() {
|
|
11777
11703
|
process.nextTick(nextTick);
|
|
11778
11704
|
};
|
|
11779
11705
|
var draining;
|
|
@@ -11962,9 +11888,9 @@ var __webpack_modules__ = {
|
|
|
11962
11888
|
return false;
|
|
11963
11889
|
};
|
|
11964
11890
|
},
|
|
11965
|
-
"../../node_modules/.pnpm/is-ssh@1.4.
|
|
11891
|
+
"../../node_modules/.pnpm/is-ssh@1.4.1/node_modules/is-ssh/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11966
11892
|
"use strict";
|
|
11967
|
-
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.
|
|
11893
|
+
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js");
|
|
11968
11894
|
function isSsh(input) {
|
|
11969
11895
|
if (Array.isArray(input)) return -1 !== input.indexOf("ssh") || -1 !== input.indexOf("rsync");
|
|
11970
11896
|
if ("string" != typeof input) return false;
|
|
@@ -12197,10 +12123,9 @@ var __webpack_modules__ = {
|
|
|
12197
12123
|
}
|
|
12198
12124
|
if (i === path.length - 1) check_if_can_be_placed(path[i], data, void 0 === value1);
|
|
12199
12125
|
var new_key = !(path[i] in data);
|
|
12200
|
-
if (void 0 === value1)
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
} else data[path[i]] = value1;
|
|
12126
|
+
if (void 0 === value1) if (Array.isArray(data)) data.pop();
|
|
12127
|
+
else delete data[path[i]];
|
|
12128
|
+
else data[path[i]] = value1;
|
|
12204
12129
|
}
|
|
12205
12130
|
if (!this._tokens.length) this._tokens = [
|
|
12206
12131
|
{
|
|
@@ -12313,32 +12238,30 @@ var __webpack_modules__ = {
|
|
|
12313
12238
|
change([], self1._data, value1);
|
|
12314
12239
|
return self1;
|
|
12315
12240
|
function change(path, old_data, new_data) {
|
|
12316
|
-
if (isObject(new_data) && isObject(old_data))
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
change(path, old_data[i], new_data[i]);
|
|
12333
|
-
path.pop();
|
|
12334
|
-
}
|
|
12335
|
-
for(var i in old_data)if (!(i in new_data)) {
|
|
12336
|
-
path.push(String(i));
|
|
12337
|
-
change(path, old_data[i], new_data[i]);
|
|
12338
|
-
path.pop();
|
|
12339
|
-
}
|
|
12241
|
+
if (isObject(new_data) && isObject(old_data)) if (Array.isArray(new_data) != Array.isArray(old_data)) self1.set(path, new_data);
|
|
12242
|
+
else if (Array.isArray(new_data)) if (new_data.length > old_data.length) for(var i = 0; i < new_data.length; i++){
|
|
12243
|
+
path.push(String(i));
|
|
12244
|
+
change(path, old_data[i], new_data[i]);
|
|
12245
|
+
path.pop();
|
|
12246
|
+
}
|
|
12247
|
+
else for(var i = old_data.length - 1; i >= 0; i--){
|
|
12248
|
+
path.push(String(i));
|
|
12249
|
+
change(path, old_data[i], new_data[i]);
|
|
12250
|
+
path.pop();
|
|
12251
|
+
}
|
|
12252
|
+
else {
|
|
12253
|
+
for(var i in new_data){
|
|
12254
|
+
path.push(String(i));
|
|
12255
|
+
change(path, old_data[i], new_data[i]);
|
|
12256
|
+
path.pop();
|
|
12340
12257
|
}
|
|
12341
|
-
|
|
12258
|
+
for(var i in old_data)if (!(i in new_data)) {
|
|
12259
|
+
path.push(String(i));
|
|
12260
|
+
change(path, old_data[i], new_data[i]);
|
|
12261
|
+
path.pop();
|
|
12262
|
+
}
|
|
12263
|
+
}
|
|
12264
|
+
else if (new_data !== old_data) self1.set(path, new_data);
|
|
12342
12265
|
}
|
|
12343
12266
|
};
|
|
12344
12267
|
Document.prototype.toString = function() {
|
|
@@ -12377,7 +12300,7 @@ var __webpack_modules__ = {
|
|
|
12377
12300
|
var result = msg + ' at ' + (lineno + 1) + ':' + (column + 1), tmppos = position - column - 1, srcline = '', underline = '';
|
|
12378
12301
|
var isLineTerminator = json5 ? Uni.isLineTerminator : Uni.isLineTerminatorJSON;
|
|
12379
12302
|
if (tmppos < position - 70) tmppos = position - 70;
|
|
12380
|
-
while(
|
|
12303
|
+
while(1){
|
|
12381
12304
|
var chr = input[++tmppos];
|
|
12382
12305
|
if (isLineTerminator(chr) || tmppos === input.length) {
|
|
12383
12306
|
if (position >= tmppos) underline += '^';
|
|
@@ -12527,16 +12450,10 @@ var __webpack_modules__ = {
|
|
|
12527
12450
|
while(position < length){
|
|
12528
12451
|
var chr = input[position++];
|
|
12529
12452
|
if (isLineTerminator(chr)) {
|
|
12530
|
-
if (!multi)
|
|
12531
|
-
position--;
|
|
12532
|
-
return;
|
|
12533
|
-
}
|
|
12453
|
+
if (!multi) return void position--;
|
|
12534
12454
|
newline(chr);
|
|
12535
12455
|
} else if ('*' === chr && multi) {
|
|
12536
|
-
if ('/' === input[position])
|
|
12537
|
-
position++;
|
|
12538
|
-
return;
|
|
12539
|
-
}
|
|
12456
|
+
if ('/' === input[position]) return void position++;
|
|
12540
12457
|
}
|
|
12541
12458
|
}
|
|
12542
12459
|
if (multi) fail('Unclosed multiline comment');
|
|
@@ -12702,13 +12619,12 @@ var __webpack_modules__ = {
|
|
|
12702
12619
|
chr = String.fromCharCode(parseInt(input.substr(position + 1, 4), 16));
|
|
12703
12620
|
position += 5;
|
|
12704
12621
|
}
|
|
12705
|
-
if (result.length)
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
} else {
|
|
12622
|
+
if (result.length) if (Uni.isIdentifierPart(chr)) result += chr;
|
|
12623
|
+
else {
|
|
12624
|
+
position--;
|
|
12625
|
+
return result;
|
|
12626
|
+
}
|
|
12627
|
+
else {
|
|
12712
12628
|
if (!Uni.isIdentifierStart(chr)) return;
|
|
12713
12629
|
result += chr;
|
|
12714
12630
|
}
|
|
@@ -12843,10 +12759,9 @@ var __webpack_modules__ = {
|
|
|
12843
12759
|
if (!Uni.isIdentifierPart(key[i])) return _stringify_str(key);
|
|
12844
12760
|
} else if (!Uni.isIdentifierStart(key[i])) return _stringify_str(key);
|
|
12845
12761
|
var chr = key.charCodeAt(i);
|
|
12846
|
-
if (options.ascii)
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
} else if (escapable.exec(key[i])) result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
|
|
12762
|
+
if (options.ascii) if (chr < 0x80) result += key[i];
|
|
12763
|
+
else result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
|
|
12764
|
+
else if (escapable.exec(key[i])) result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
|
|
12850
12765
|
else result += key[i];
|
|
12851
12766
|
}
|
|
12852
12767
|
return result;
|
|
@@ -12857,27 +12772,22 @@ var __webpack_modules__ = {
|
|
|
12857
12772
|
var result = '';
|
|
12858
12773
|
for(var i = 0; i < key.length; i++){
|
|
12859
12774
|
var chr = key.charCodeAt(i);
|
|
12860
|
-
if (chr < 0x10)
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
else result += '\\u00' + chr.toString(16);
|
|
12877
|
-
} else if (chr < 0x1000) result += '\\u0' + chr.toString(16);
|
|
12878
|
-
else if (chr < 0x10000) result += '\\u' + chr.toString(16);
|
|
12879
|
-
else throw Error('weird codepoint');
|
|
12880
|
-
} else result += key[i];
|
|
12775
|
+
if (chr < 0x10) if (0 === chr && json5) result += '\\0';
|
|
12776
|
+
else if (chr >= 8 && chr <= 13 && (json5 || 11 !== chr)) result += special_chars[chr];
|
|
12777
|
+
else if (json5) result += '\\x0' + chr.toString(16);
|
|
12778
|
+
else result += '\\u000' + chr.toString(16);
|
|
12779
|
+
else if (chr < 0x20) if (json5) result += '\\x' + chr.toString(16);
|
|
12780
|
+
else result += '\\u00' + chr.toString(16);
|
|
12781
|
+
else if (chr >= 0x20 && chr < 0x80) if (47 === chr && i && '<' === key[i - 1]) result += '\\' + key[i];
|
|
12782
|
+
else if (92 === chr) result += '\\\\';
|
|
12783
|
+
else if (chr === quoteChr) result += '\\' + quote;
|
|
12784
|
+
else result += key[i];
|
|
12785
|
+
else if (options.ascii || Uni.isLineTerminator(key[i]) || escapable.exec(key[i])) if (chr < 0x100) if (json5) result += '\\x' + chr.toString(16);
|
|
12786
|
+
else result += '\\u00' + chr.toString(16);
|
|
12787
|
+
else if (chr < 0x1000) result += '\\u0' + chr.toString(16);
|
|
12788
|
+
else if (chr < 0x10000) result += '\\u' + chr.toString(16);
|
|
12789
|
+
else throw Error('weird codepoint');
|
|
12790
|
+
else result += key[i];
|
|
12881
12791
|
}
|
|
12882
12792
|
return quote + result + quote;
|
|
12883
12793
|
}
|
|
@@ -12977,10 +12887,9 @@ var __webpack_modules__ = {
|
|
|
12977
12887
|
if ('object' == typeof options.indent) {
|
|
12978
12888
|
if (options.indent.constructor === Number || options.indent.constructor === Boolean || options.indent.constructor === String) options.indent = options.indent.valueOf();
|
|
12979
12889
|
}
|
|
12980
|
-
if ('number' == typeof options.indent)
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
} else if ('string' == typeof options.indent) options.indent = options.indent.substr(0, 10);
|
|
12890
|
+
if ('number' == typeof options.indent) if (options.indent >= 0) options.indent = Array(Math.min(~~options.indent, 10) + 1).join(' ');
|
|
12891
|
+
else options.indent = false;
|
|
12892
|
+
else if ('string' == typeof options.indent) options.indent = options.indent.substr(0, 10);
|
|
12984
12893
|
if (null == options._splitMin) options._splitMin = 50;
|
|
12985
12894
|
if (null == options._splitMax) options._splitMax = 70;
|
|
12986
12895
|
return _stringify(object, options, 0, '');
|
|
@@ -13488,10 +13397,10 @@ var __webpack_modules__ = {
|
|
|
13488
13397
|
objectKey = objectKeyList[index];
|
|
13489
13398
|
objectValue = object[objectKey];
|
|
13490
13399
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
13491
|
-
if (
|
|
13400
|
+
if (writeNode(state, level, objectKey, false, false)) {
|
|
13492
13401
|
if (state.dump.length > 1024) pairBuffer += '? ';
|
|
13493
13402
|
pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
|
|
13494
|
-
if (
|
|
13403
|
+
if (writeNode(state, level, objectValue, false, false)) {
|
|
13495
13404
|
pairBuffer += state.dump;
|
|
13496
13405
|
_result += pairBuffer;
|
|
13497
13406
|
}
|
|
@@ -13511,15 +13420,13 @@ var __webpack_modules__ = {
|
|
|
13511
13420
|
objectKey = objectKeyList[index];
|
|
13512
13421
|
objectValue = object[objectKey];
|
|
13513
13422
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
13514
|
-
if (
|
|
13423
|
+
if (writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
13515
13424
|
explicitPair = null !== state.tag && '?' !== state.tag || state.dump && state.dump.length > 1024;
|
|
13516
|
-
if (explicitPair)
|
|
13517
|
-
|
|
13518
|
-
else pairBuffer += '? ';
|
|
13519
|
-
}
|
|
13425
|
+
if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += '?';
|
|
13426
|
+
else pairBuffer += '? ';
|
|
13520
13427
|
pairBuffer += state.dump;
|
|
13521
13428
|
if (explicitPair) pairBuffer += generateNextLine(state, level);
|
|
13522
|
-
if (
|
|
13429
|
+
if (writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
13523
13430
|
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += ':';
|
|
13524
13431
|
else pairBuffer += ': ';
|
|
13525
13432
|
pairBuffer += state.dump;
|
|
@@ -13536,10 +13443,9 @@ var __webpack_modules__ = {
|
|
|
13536
13443
|
for(index = 0, length = typeList.length; index < length; index += 1){
|
|
13537
13444
|
type = typeList[index];
|
|
13538
13445
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || 'object' == typeof object && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
13539
|
-
if (explicit)
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
} else state.tag = '?';
|
|
13446
|
+
if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
|
|
13447
|
+
else state.tag = type.tag;
|
|
13448
|
+
else state.tag = '?';
|
|
13543
13449
|
if (type.represent) {
|
|
13544
13450
|
style = state.styleMap[type.tag] || type.defaultStyle;
|
|
13545
13451
|
if ('[object Function]' === _toString.call(type.represent)) _result = type.represent(object, style);
|
|
@@ -13569,23 +13475,21 @@ var __webpack_modules__ = {
|
|
|
13569
13475
|
if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = '*ref_' + duplicateIndex;
|
|
13570
13476
|
else {
|
|
13571
13477
|
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
|
|
13572
|
-
if ('[object Object]' === type) {
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
if (
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
}
|
|
13588
|
-
} else if ('[object String]' === type) {
|
|
13478
|
+
if ('[object Object]' === type) if (block && 0 !== Object.keys(state.dump).length) {
|
|
13479
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
13480
|
+
if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
|
|
13481
|
+
} else {
|
|
13482
|
+
writeFlowMapping(state, level, state.dump);
|
|
13483
|
+
if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
|
|
13484
|
+
}
|
|
13485
|
+
else if ('[object Array]' === type) if (block && 0 !== state.dump.length) {
|
|
13486
|
+
state.noArrayIndent && !isblockseq && level > 0 ? writeBlockSequence(state, level - 1, state.dump, compact) : writeBlockSequence(state, level, state.dump, compact);
|
|
13487
|
+
if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
|
|
13488
|
+
} else {
|
|
13489
|
+
writeFlowSequence(state, level, state.dump);
|
|
13490
|
+
if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
|
|
13491
|
+
}
|
|
13492
|
+
else if ('[object String]' === type) {
|
|
13589
13493
|
if ('?' !== state.tag) writeScalar(state, state.dump, level, iskey, inblock);
|
|
13590
13494
|
} else {
|
|
13591
13495
|
if ('[object Undefined]' === type) return false;
|
|
@@ -13826,10 +13730,9 @@ var __webpack_modules__ = {
|
|
|
13826
13730
|
if ('object' == typeof keyNode && '[object Object]' === _class(keyNode)) keyNode = '[object Object]';
|
|
13827
13731
|
keyNode = String(keyNode);
|
|
13828
13732
|
if (null === _result) _result = {};
|
|
13829
|
-
if ('tag:yaml.org,2002:merge' === keyTag)
|
|
13830
|
-
|
|
13831
|
-
|
|
13832
|
-
} else {
|
|
13733
|
+
if ('tag:yaml.org,2002:merge' === keyTag) if (Array.isArray(valueNode)) for(index = 0, quantity = valueNode.length; index < quantity; index += 1)mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
13734
|
+
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
13735
|
+
else {
|
|
13833
13736
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
13834
13737
|
state.line = startLine || state.line;
|
|
13835
13738
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -13981,40 +13884,37 @@ var __webpack_modules__ = {
|
|
|
13981
13884
|
state.result = '';
|
|
13982
13885
|
state.position++;
|
|
13983
13886
|
captureStart = captureEnd = state.position;
|
|
13984
|
-
while(0 !== (ch = state.input.charCodeAt(state.position))){
|
|
13985
|
-
|
|
13986
|
-
|
|
13887
|
+
while(0 !== (ch = state.input.charCodeAt(state.position)))if (0x22 === ch) {
|
|
13888
|
+
captureSegment(state, captureStart, state.position, true);
|
|
13889
|
+
state.position++;
|
|
13890
|
+
return true;
|
|
13891
|
+
} else if (0x5C === ch) {
|
|
13892
|
+
captureSegment(state, captureStart, state.position, true);
|
|
13893
|
+
ch = state.input.charCodeAt(++state.position);
|
|
13894
|
+
if (is_EOL(ch)) skipSeparationSpace(state, false, nodeIndent);
|
|
13895
|
+
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
13896
|
+
state.result += simpleEscapeMap[ch];
|
|
13987
13897
|
state.position++;
|
|
13988
|
-
|
|
13989
|
-
|
|
13990
|
-
|
|
13991
|
-
|
|
13992
|
-
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
13997
|
-
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
13998
|
-
hexLength = tmp;
|
|
13999
|
-
hexResult = 0;
|
|
14000
|
-
for(; hexLength > 0; hexLength--){
|
|
14001
|
-
ch = state.input.charCodeAt(++state.position);
|
|
14002
|
-
if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
|
|
14003
|
-
else throwError(state, 'expected hexadecimal character');
|
|
14004
|
-
}
|
|
14005
|
-
state.result += charFromCodepoint(hexResult);
|
|
14006
|
-
state.position++;
|
|
14007
|
-
} else throwError(state, 'unknown escape sequence');
|
|
14008
|
-
captureStart = captureEnd = state.position;
|
|
14009
|
-
} else if (is_EOL(ch)) {
|
|
14010
|
-
captureSegment(state, captureStart, captureEnd, true);
|
|
14011
|
-
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
14012
|
-
captureStart = captureEnd = state.position;
|
|
14013
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, 'unexpected end of the document within a double quoted scalar');
|
|
14014
|
-
else {
|
|
13898
|
+
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
13899
|
+
hexLength = tmp;
|
|
13900
|
+
hexResult = 0;
|
|
13901
|
+
for(; hexLength > 0; hexLength--){
|
|
13902
|
+
ch = state.input.charCodeAt(++state.position);
|
|
13903
|
+
if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
|
|
13904
|
+
else throwError(state, 'expected hexadecimal character');
|
|
13905
|
+
}
|
|
13906
|
+
state.result += charFromCodepoint(hexResult);
|
|
14015
13907
|
state.position++;
|
|
14016
|
-
|
|
14017
|
-
|
|
13908
|
+
} else throwError(state, 'unknown escape sequence');
|
|
13909
|
+
captureStart = captureEnd = state.position;
|
|
13910
|
+
} else if (is_EOL(ch)) {
|
|
13911
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
13912
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
13913
|
+
captureStart = captureEnd = state.position;
|
|
13914
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, 'unexpected end of the document within a double quoted scalar');
|
|
13915
|
+
else {
|
|
13916
|
+
state.position++;
|
|
13917
|
+
captureEnd = state.position;
|
|
14018
13918
|
}
|
|
14019
13919
|
throwError(state, 'unexpected end of the stream within a double quoted scalar');
|
|
14020
13920
|
}
|
|
@@ -14096,17 +13996,15 @@ var __webpack_modules__ = {
|
|
|
14096
13996
|
state.result = '';
|
|
14097
13997
|
while(0 !== ch){
|
|
14098
13998
|
ch = state.input.charCodeAt(++state.position);
|
|
14099
|
-
if (0x2B === ch || 0x2D === ch)
|
|
14100
|
-
|
|
14101
|
-
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
|
|
14107
|
-
|
|
14108
|
-
}
|
|
14109
|
-
} else break;
|
|
13999
|
+
if (0x2B === ch || 0x2D === ch) if (CHOMPING_CLIP === chomping) chomping = 0x2B === ch ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
14000
|
+
else throwError(state, 'repeat of a chomping mode identifier');
|
|
14001
|
+
else if ((tmp = fromDecimalCode(ch)) >= 0) if (0 === tmp) throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
|
|
14002
|
+
else if (detectedIndent) throwError(state, 'repeat of an indentation width identifier');
|
|
14003
|
+
else {
|
|
14004
|
+
textIndent = nodeIndent + tmp - 1;
|
|
14005
|
+
detectedIndent = true;
|
|
14006
|
+
}
|
|
14007
|
+
else break;
|
|
14110
14008
|
}
|
|
14111
14009
|
if (is_WHITE_SPACE(ch)) {
|
|
14112
14010
|
do ch = state.input.charCodeAt(++state.position);
|
|
@@ -14134,17 +14032,16 @@ var __webpack_modules__ = {
|
|
|
14134
14032
|
}
|
|
14135
14033
|
break;
|
|
14136
14034
|
}
|
|
14137
|
-
if (folding) {
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
} else state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
|
|
14035
|
+
if (folding) if (is_WHITE_SPACE(ch)) {
|
|
14036
|
+
atMoreIndented = true;
|
|
14037
|
+
state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
|
|
14038
|
+
} else if (atMoreIndented) {
|
|
14039
|
+
atMoreIndented = false;
|
|
14040
|
+
state.result += common.repeat('\n', emptyLines + 1);
|
|
14041
|
+
} else if (0 === emptyLines) {
|
|
14042
|
+
if (didReadContent) state.result += ' ';
|
|
14043
|
+
} else state.result += common.repeat('\n', emptyLines);
|
|
14044
|
+
else state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
|
|
14148
14045
|
didReadContent = true;
|
|
14149
14046
|
detectedIndent = true;
|
|
14150
14047
|
emptyLines = 0;
|
|
@@ -14259,10 +14156,8 @@ var __webpack_modules__ = {
|
|
|
14259
14156
|
_keyLineStart = state.lineStart;
|
|
14260
14157
|
_keyPos = state.position;
|
|
14261
14158
|
}
|
|
14262
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
14263
|
-
|
|
14264
|
-
else valueNode = state.result;
|
|
14265
|
-
}
|
|
14159
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) if (atExplicitKey) keyNode = state.result;
|
|
14160
|
+
else valueNode = state.result;
|
|
14266
14161
|
if (!atExplicitKey) {
|
|
14267
14162
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
14268
14163
|
keyTag = keyNode = valueNode = null;
|
|
@@ -14306,14 +14201,12 @@ var __webpack_modules__ = {
|
|
|
14306
14201
|
} else throwError(state, 'unexpected end of the stream within a verbatim tag');
|
|
14307
14202
|
} else {
|
|
14308
14203
|
while(0 !== ch && !is_WS_OR_EOL(ch)){
|
|
14309
|
-
if (0x21 === ch)
|
|
14310
|
-
|
|
14311
|
-
|
|
14312
|
-
|
|
14313
|
-
|
|
14314
|
-
|
|
14315
|
-
_position = state.position + 1;
|
|
14316
|
-
}
|
|
14204
|
+
if (0x21 === ch) if (isNamed) throwError(state, 'tag suffix cannot contain exclamation marks');
|
|
14205
|
+
else {
|
|
14206
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
14207
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, 'named tag handle cannot contain such characters');
|
|
14208
|
+
isNamed = true;
|
|
14209
|
+
_position = state.position + 1;
|
|
14317
14210
|
}
|
|
14318
14211
|
ch = state.input.charCodeAt(++state.position);
|
|
14319
14212
|
}
|
|
@@ -14386,20 +14279,19 @@ var __webpack_modules__ = {
|
|
|
14386
14279
|
if (1 === indentStatus || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
14387
14280
|
flowIndent = CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext ? parentIndent : parentIndent + 1;
|
|
14388
14281
|
blockIndent = state.position - state.lineStart;
|
|
14389
|
-
if (1 === indentStatus)
|
|
14390
|
-
|
|
14391
|
-
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
if (null === state.tag) state.tag = '?';
|
|
14399
|
-
}
|
|
14400
|
-
if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
|
|
14282
|
+
if (1 === indentStatus) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
14283
|
+
else {
|
|
14284
|
+
if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
14285
|
+
else if (readAlias(state)) {
|
|
14286
|
+
hasContent = true;
|
|
14287
|
+
if (null !== state.tag || null !== state.anchor) throwError(state, 'alias node should not have any properties');
|
|
14288
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
14289
|
+
hasContent = true;
|
|
14290
|
+
if (null === state.tag) state.tag = '?';
|
|
14401
14291
|
}
|
|
14402
|
-
|
|
14292
|
+
if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
|
|
14293
|
+
}
|
|
14294
|
+
else if (0 === indentStatus) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
14403
14295
|
}
|
|
14404
14296
|
if (null === state.tag) {
|
|
14405
14297
|
if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
|
|
@@ -15122,10 +15014,8 @@ var __webpack_modules__ = {
|
|
|
15122
15014
|
pair = object[index];
|
|
15123
15015
|
pairHasKey = false;
|
|
15124
15016
|
if ('[object Object]' !== _toString.call(pair)) return false;
|
|
15125
|
-
for(pairKey in pair)if (_hasOwnProperty.call(pair, pairKey))
|
|
15126
|
-
|
|
15127
|
-
pairHasKey = true;
|
|
15128
|
-
}
|
|
15017
|
+
for(pairKey in pair)if (_hasOwnProperty.call(pair, pairKey)) if (pairHasKey) return false;
|
|
15018
|
+
else pairHasKey = true;
|
|
15129
15019
|
if (!pairHasKey) return false;
|
|
15130
15020
|
if (-1 !== objectKeys.indexOf(pairKey)) return false;
|
|
15131
15021
|
objectKeys.push(pairKey);
|
|
@@ -16177,13 +16067,12 @@ var __webpack_modules__ = {
|
|
|
16177
16067
|
return result;
|
|
16178
16068
|
},
|
|
16179
16069
|
file: function(name, data, o) {
|
|
16180
|
-
if (1 === arguments.length) {
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
return
|
|
16184
|
-
|
|
16185
|
-
|
|
16186
|
-
}
|
|
16070
|
+
if (1 === arguments.length) if (isRegExp(name)) {
|
|
16071
|
+
var regexp = name;
|
|
16072
|
+
return this.filter(function(relativePath, file) {
|
|
16073
|
+
return !file.dir && regexp.test(relativePath);
|
|
16074
|
+
});
|
|
16075
|
+
} else {
|
|
16187
16076
|
var obj = this.files[this.root + name];
|
|
16188
16077
|
if (obj && !obj.dir) return obj;
|
|
16189
16078
|
return null;
|
|
@@ -16647,7 +16536,7 @@ var __webpack_modules__ = {
|
|
|
16647
16536
|
return this;
|
|
16648
16537
|
},
|
|
16649
16538
|
mergeStreamInfo: function() {
|
|
16650
|
-
for(var key in this.extraStreamInfo)if (
|
|
16539
|
+
for(var key in this.extraStreamInfo)if (Object.prototype.hasOwnProperty.call(this.extraStreamInfo, key)) this.streamInfo[key] = this.extraStreamInfo[key];
|
|
16651
16540
|
},
|
|
16652
16541
|
lock: function() {
|
|
16653
16542
|
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
|
|
@@ -16906,10 +16795,8 @@ var __webpack_modules__ = {
|
|
|
16906
16795
|
utf16buf[out++] = 0xdc00 | 0x3ff & c;
|
|
16907
16796
|
}
|
|
16908
16797
|
}
|
|
16909
|
-
if (utf16buf.length !== out)
|
|
16910
|
-
|
|
16911
|
-
else utf16buf.length = out;
|
|
16912
|
-
}
|
|
16798
|
+
if (utf16buf.length !== out) if (utf16buf.subarray) utf16buf = utf16buf.subarray(0, out);
|
|
16799
|
+
else utf16buf.length = out;
|
|
16913
16800
|
return utils.applyFromCharCode(utf16buf);
|
|
16914
16801
|
};
|
|
16915
16802
|
exports1.utf8encode = function(str) {
|
|
@@ -16939,14 +16826,12 @@ var __webpack_modules__ = {
|
|
|
16939
16826
|
}
|
|
16940
16827
|
var nextBoundary = utf8border(data);
|
|
16941
16828
|
var usableData = data;
|
|
16942
|
-
if (nextBoundary !== data.length) {
|
|
16943
|
-
|
|
16944
|
-
|
|
16945
|
-
|
|
16946
|
-
|
|
16947
|
-
|
|
16948
|
-
this.leftOver = data.slice(nextBoundary, data.length);
|
|
16949
|
-
}
|
|
16829
|
+
if (nextBoundary !== data.length) if (support.uint8array) {
|
|
16830
|
+
usableData = data.subarray(0, nextBoundary);
|
|
16831
|
+
this.leftOver = data.subarray(nextBoundary, data.length);
|
|
16832
|
+
} else {
|
|
16833
|
+
usableData = data.slice(0, nextBoundary);
|
|
16834
|
+
this.leftOver = data.slice(nextBoundary, data.length);
|
|
16950
16835
|
}
|
|
16951
16836
|
this.push({
|
|
16952
16837
|
data: exports1.utf8decode(usableData),
|
|
@@ -17145,10 +17030,8 @@ var __webpack_modules__ = {
|
|
|
17145
17030
|
var result = [];
|
|
17146
17031
|
for(var index = 0; index < parts.length; index++){
|
|
17147
17032
|
var part = parts[index];
|
|
17148
|
-
if ("." !== part && ("" !== part || 0 === index || index === parts.length - 1))
|
|
17149
|
-
|
|
17150
|
-
else result.push(part);
|
|
17151
|
-
}
|
|
17033
|
+
if ("." !== part && ("" !== part || 0 === index || index === parts.length - 1)) if (".." === part) result.pop();
|
|
17034
|
+
else result.push(part);
|
|
17152
17035
|
}
|
|
17153
17036
|
return result.join("/");
|
|
17154
17037
|
};
|
|
@@ -17372,7 +17255,7 @@ var __webpack_modules__ = {
|
|
|
17372
17255
|
var MADE_BY_DOS = 0x00;
|
|
17373
17256
|
var MADE_BY_UNIX = 0x03;
|
|
17374
17257
|
var findCompression = function(compressionMethod) {
|
|
17375
|
-
for(var method in compressions)if (
|
|
17258
|
+
for(var method in compressions)if (Object.prototype.hasOwnProperty.call(compressions, method)) {
|
|
17376
17259
|
if (compressions[method].magic === compressionMethod) return compressions[method];
|
|
17377
17260
|
}
|
|
17378
17261
|
return null;
|
|
@@ -17814,10 +17697,7 @@ var __webpack_modules__ = {
|
|
|
17814
17697
|
if (merging) return;
|
|
17815
17698
|
merging = true;
|
|
17816
17699
|
let streams = streamsQueue.shift();
|
|
17817
|
-
if (!streams)
|
|
17818
|
-
process.nextTick(endStream);
|
|
17819
|
-
return;
|
|
17820
|
-
}
|
|
17700
|
+
if (!streams) return void process.nextTick(endStream);
|
|
17821
17701
|
if (!Array.isArray(streams)) streams = [
|
|
17822
17702
|
streams
|
|
17823
17703
|
];
|
|
@@ -17872,13 +17752,17 @@ var __webpack_modules__ = {
|
|
|
17872
17752
|
return streams;
|
|
17873
17753
|
}
|
|
17874
17754
|
},
|
|
17875
|
-
"../../node_modules/.pnpm/micromatch@4.0.
|
|
17755
|
+
"../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
17876
17756
|
"use strict";
|
|
17877
17757
|
const util = __webpack_require__("util");
|
|
17878
|
-
const braces = __webpack_require__("../../node_modules/.pnpm/braces@3.0.
|
|
17758
|
+
const braces = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js");
|
|
17879
17759
|
const picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js");
|
|
17880
17760
|
const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js");
|
|
17881
|
-
const isEmptyString = (
|
|
17761
|
+
const isEmptyString = (v)=>'' === v || './' === v;
|
|
17762
|
+
const hasBraces = (v)=>{
|
|
17763
|
+
const index = v.indexOf('{');
|
|
17764
|
+
return index > -1 && v.indexOf('}', index) > -1;
|
|
17765
|
+
};
|
|
17882
17766
|
const micromatch = (list, patterns, options)=>{
|
|
17883
17767
|
patterns = [].concat(patterns);
|
|
17884
17768
|
list = [].concat(list);
|
|
@@ -17900,12 +17784,10 @@ var __webpack_modules__ = {
|
|
|
17900
17784
|
for (let item of list){
|
|
17901
17785
|
let matched = isMatch(item, true);
|
|
17902
17786
|
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
17903
|
-
if (
|
|
17904
|
-
|
|
17905
|
-
|
|
17906
|
-
|
|
17907
|
-
keep.add(matched.output);
|
|
17908
|
-
}
|
|
17787
|
+
if (match) if (negated) omit.add(matched.output);
|
|
17788
|
+
else {
|
|
17789
|
+
omit.delete(matched.output);
|
|
17790
|
+
keep.add(matched.output);
|
|
17909
17791
|
}
|
|
17910
17792
|
}
|
|
17911
17793
|
}
|
|
@@ -17999,7 +17881,7 @@ var __webpack_modules__ = {
|
|
|
17999
17881
|
};
|
|
18000
17882
|
micromatch.braces = (pattern, options)=>{
|
|
18001
17883
|
if ('string' != typeof pattern) throw new TypeError('Expected a string');
|
|
18002
|
-
if (options && true === options.nobrace ||
|
|
17884
|
+
if (options && true === options.nobrace || !hasBraces(pattern)) return [
|
|
18003
17885
|
pattern
|
|
18004
17886
|
];
|
|
18005
17887
|
return braces(pattern, options);
|
|
@@ -18011,6 +17893,7 @@ var __webpack_modules__ = {
|
|
|
18011
17893
|
expand: true
|
|
18012
17894
|
});
|
|
18013
17895
|
};
|
|
17896
|
+
micromatch.hasBraces = hasBraces;
|
|
18014
17897
|
module.exports = micromatch;
|
|
18015
17898
|
},
|
|
18016
17899
|
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": function(module) {
|
|
@@ -18178,10 +18061,8 @@ var __webpack_modules__ = {
|
|
|
18178
18061
|
this.ended = true;
|
|
18179
18062
|
return false;
|
|
18180
18063
|
}
|
|
18181
|
-
if (0 === strm.avail_out || 0 === strm.avail_in && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH))
|
|
18182
|
-
|
|
18183
|
-
else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
|
|
18184
|
-
}
|
|
18064
|
+
if (0 === strm.avail_out || 0 === strm.avail_in && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH)) if ('string' === this.options.to) this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));
|
|
18065
|
+
else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
|
|
18185
18066
|
}while ((strm.avail_in > 0 || 0 === strm.avail_out) && status !== Z_STREAM_END);
|
|
18186
18067
|
if (_mode === Z_FINISH) {
|
|
18187
18068
|
status = zlib_deflate.deflateEnd(this.strm);
|
|
@@ -18199,10 +18080,8 @@ var __webpack_modules__ = {
|
|
|
18199
18080
|
this.chunks.push(chunk);
|
|
18200
18081
|
};
|
|
18201
18082
|
Deflate.prototype.onEnd = function(status) {
|
|
18202
|
-
if (status === Z_OK)
|
|
18203
|
-
|
|
18204
|
-
else this.result = utils.flattenChunks(this.chunks);
|
|
18205
|
-
}
|
|
18083
|
+
if (status === Z_OK) if ('string' === this.options.to) this.result = this.chunks.join('');
|
|
18084
|
+
else this.result = utils.flattenChunks(this.chunks);
|
|
18206
18085
|
this.chunks = [];
|
|
18207
18086
|
this.err = status;
|
|
18208
18087
|
this.msg = this.strm.msg;
|
|
@@ -18305,17 +18184,15 @@ var __webpack_modules__ = {
|
|
|
18305
18184
|
return false;
|
|
18306
18185
|
}
|
|
18307
18186
|
if (strm.next_out) {
|
|
18308
|
-
if (0 === strm.avail_out || status === c.Z_STREAM_END || 0 === strm.avail_in && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH)) {
|
|
18309
|
-
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
|
|
18313
|
-
|
|
18314
|
-
|
|
18315
|
-
|
|
18316
|
-
|
|
18317
|
-
} else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
|
|
18318
|
-
}
|
|
18187
|
+
if (0 === strm.avail_out || status === c.Z_STREAM_END || 0 === strm.avail_in && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH)) if ('string' === this.options.to) {
|
|
18188
|
+
next_out_utf8 = strings.utf8border(strm.output, strm.next_out);
|
|
18189
|
+
tail = strm.next_out - next_out_utf8;
|
|
18190
|
+
utf8str = strings.buf2string(strm.output, next_out_utf8);
|
|
18191
|
+
strm.next_out = tail;
|
|
18192
|
+
strm.avail_out = chunkSize - tail;
|
|
18193
|
+
if (tail) utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0);
|
|
18194
|
+
this.onData(utf8str);
|
|
18195
|
+
} else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
|
|
18319
18196
|
}
|
|
18320
18197
|
if (0 === strm.avail_in && 0 === strm.avail_out) allowBufError = true;
|
|
18321
18198
|
}while ((strm.avail_in > 0 || 0 === strm.avail_out) && status !== c.Z_STREAM_END);
|
|
@@ -18336,10 +18213,8 @@ var __webpack_modules__ = {
|
|
|
18336
18213
|
this.chunks.push(chunk);
|
|
18337
18214
|
};
|
|
18338
18215
|
Inflate.prototype.onEnd = function(status) {
|
|
18339
|
-
if (status === c.Z_OK)
|
|
18340
|
-
|
|
18341
|
-
else this.result = utils.flattenChunks(this.chunks);
|
|
18342
|
-
}
|
|
18216
|
+
if (status === c.Z_OK) if ('string' === this.options.to) this.result = this.chunks.join('');
|
|
18217
|
+
else this.result = utils.flattenChunks(this.chunks);
|
|
18343
18218
|
this.chunks = [];
|
|
18344
18219
|
this.err = status;
|
|
18345
18220
|
this.msg = this.strm.msg;
|
|
@@ -18384,10 +18259,7 @@ var __webpack_modules__ = {
|
|
|
18384
18259
|
};
|
|
18385
18260
|
var fnTyped = {
|
|
18386
18261
|
arraySet: function(dest, src, src_offs, len, dest_offs) {
|
|
18387
|
-
if (src.subarray && dest.subarray)
|
|
18388
|
-
dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
|
|
18389
|
-
return;
|
|
18390
|
-
}
|
|
18262
|
+
if (src.subarray && dest.subarray) return void dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
|
|
18391
18263
|
for(var i = 0; i < len; i++)dest[dest_offs + i] = src[src_offs + i];
|
|
18392
18264
|
},
|
|
18393
18265
|
flattenChunks: function(chunks) {
|
|
@@ -19212,127 +19084,117 @@ var __webpack_modules__ = {
|
|
|
19212
19084
|
s.strm = strm;
|
|
19213
19085
|
old_flush = s.last_flush;
|
|
19214
19086
|
s.last_flush = flush;
|
|
19215
|
-
if (s.status === INIT_STATE) {
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
|
|
19219
|
-
|
|
19220
|
-
|
|
19221
|
-
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
s.status = EXTRA_STATE;
|
|
19236
|
-
} else {
|
|
19237
|
-
put_byte(s, 0);
|
|
19238
|
-
put_byte(s, 0);
|
|
19239
|
-
put_byte(s, 0);
|
|
19240
|
-
put_byte(s, 0);
|
|
19241
|
-
put_byte(s, 0);
|
|
19242
|
-
put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
|
|
19243
|
-
put_byte(s, OS_CODE);
|
|
19244
|
-
s.status = BUSY_STATE;
|
|
19245
|
-
}
|
|
19087
|
+
if (s.status === INIT_STATE) if (2 === s.wrap) {
|
|
19088
|
+
strm.adler = 0;
|
|
19089
|
+
put_byte(s, 31);
|
|
19090
|
+
put_byte(s, 139);
|
|
19091
|
+
put_byte(s, 8);
|
|
19092
|
+
if (s.gzhead) {
|
|
19093
|
+
put_byte(s, (s.gzhead.text ? 1 : 0) + (s.gzhead.hcrc ? 2 : 0) + (s.gzhead.extra ? 4 : 0) + (s.gzhead.name ? 8 : 0) + (s.gzhead.comment ? 16 : 0));
|
|
19094
|
+
put_byte(s, 0xff & s.gzhead.time);
|
|
19095
|
+
put_byte(s, s.gzhead.time >> 8 & 0xff);
|
|
19096
|
+
put_byte(s, s.gzhead.time >> 16 & 0xff);
|
|
19097
|
+
put_byte(s, s.gzhead.time >> 24 & 0xff);
|
|
19098
|
+
put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
|
|
19099
|
+
put_byte(s, 0xff & s.gzhead.os);
|
|
19100
|
+
if (s.gzhead.extra && s.gzhead.extra.length) {
|
|
19101
|
+
put_byte(s, 0xff & s.gzhead.extra.length);
|
|
19102
|
+
put_byte(s, s.gzhead.extra.length >> 8 & 0xff);
|
|
19103
|
+
}
|
|
19104
|
+
if (s.gzhead.hcrc) strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
|
|
19105
|
+
s.gzindex = 0;
|
|
19106
|
+
s.status = EXTRA_STATE;
|
|
19246
19107
|
} else {
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19108
|
+
put_byte(s, 0);
|
|
19109
|
+
put_byte(s, 0);
|
|
19110
|
+
put_byte(s, 0);
|
|
19111
|
+
put_byte(s, 0);
|
|
19112
|
+
put_byte(s, 0);
|
|
19113
|
+
put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
|
|
19114
|
+
put_byte(s, OS_CODE);
|
|
19253
19115
|
s.status = BUSY_STATE;
|
|
19254
|
-
putShortMSB(s, header);
|
|
19255
|
-
if (0 !== s.strstart) {
|
|
19256
|
-
putShortMSB(s, strm.adler >>> 16);
|
|
19257
|
-
putShortMSB(s, 0xffff & strm.adler);
|
|
19258
|
-
}
|
|
19259
|
-
strm.adler = 1;
|
|
19260
19116
|
}
|
|
19261
|
-
}
|
|
19262
|
-
|
|
19263
|
-
|
|
19264
|
-
|
|
19265
|
-
|
|
19117
|
+
} else {
|
|
19118
|
+
var header = Z_DEFLATED + (s.w_bits - 8 << 4) << 8;
|
|
19119
|
+
var level_flags = -1;
|
|
19120
|
+
level_flags = s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 0 : s.level < 6 ? 1 : 6 === s.level ? 2 : 3;
|
|
19121
|
+
header |= level_flags << 6;
|
|
19122
|
+
if (0 !== s.strstart) header |= PRESET_DICT;
|
|
19123
|
+
header += 31 - header % 31;
|
|
19124
|
+
s.status = BUSY_STATE;
|
|
19125
|
+
putShortMSB(s, header);
|
|
19126
|
+
if (0 !== s.strstart) {
|
|
19127
|
+
putShortMSB(s, strm.adler >>> 16);
|
|
19128
|
+
putShortMSB(s, 0xffff & strm.adler);
|
|
19129
|
+
}
|
|
19130
|
+
strm.adler = 1;
|
|
19131
|
+
}
|
|
19132
|
+
if (s.status === EXTRA_STATE) if (s.gzhead.extra) {
|
|
19133
|
+
beg = s.pending;
|
|
19134
|
+
while(s.gzindex < (0xffff & s.gzhead.extra.length)){
|
|
19135
|
+
if (s.pending === s.pending_buf_size) {
|
|
19136
|
+
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
19137
|
+
flush_pending(strm);
|
|
19138
|
+
beg = s.pending;
|
|
19139
|
+
if (s.pending === s.pending_buf_size) break;
|
|
19140
|
+
}
|
|
19141
|
+
put_byte(s, 0xff & s.gzhead.extra[s.gzindex]);
|
|
19142
|
+
s.gzindex++;
|
|
19143
|
+
}
|
|
19144
|
+
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
19145
|
+
if (s.gzindex === s.gzhead.extra.length) {
|
|
19146
|
+
s.gzindex = 0;
|
|
19147
|
+
s.status = NAME_STATE;
|
|
19148
|
+
}
|
|
19149
|
+
} else s.status = NAME_STATE;
|
|
19150
|
+
if (s.status === NAME_STATE) if (s.gzhead.name) {
|
|
19151
|
+
beg = s.pending;
|
|
19152
|
+
do {
|
|
19153
|
+
if (s.pending === s.pending_buf_size) {
|
|
19154
|
+
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
19155
|
+
flush_pending(strm);
|
|
19156
|
+
beg = s.pending;
|
|
19266
19157
|
if (s.pending === s.pending_buf_size) {
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
beg = s.pending;
|
|
19270
|
-
if (s.pending === s.pending_buf_size) break;
|
|
19158
|
+
val = 1;
|
|
19159
|
+
break;
|
|
19271
19160
|
}
|
|
19272
|
-
put_byte(s, 0xff & s.gzhead.extra[s.gzindex]);
|
|
19273
|
-
s.gzindex++;
|
|
19274
|
-
}
|
|
19275
|
-
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
19276
|
-
if (s.gzindex === s.gzhead.extra.length) {
|
|
19277
|
-
s.gzindex = 0;
|
|
19278
|
-
s.status = NAME_STATE;
|
|
19279
19161
|
}
|
|
19280
|
-
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
if (s.gzhead.
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
|
|
19289
|
-
|
|
19290
|
-
|
|
19291
|
-
|
|
19292
|
-
|
|
19293
|
-
|
|
19294
|
-
|
|
19295
|
-
|
|
19296
|
-
put_byte(s, val);
|
|
19297
|
-
}while (0 !== val);
|
|
19298
|
-
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
19299
|
-
if (0 === val) {
|
|
19300
|
-
s.gzindex = 0;
|
|
19301
|
-
s.status = COMMENT_STATE;
|
|
19302
|
-
}
|
|
19303
|
-
} else s.status = COMMENT_STATE;
|
|
19304
|
-
}
|
|
19305
|
-
if (s.status === COMMENT_STATE) {
|
|
19306
|
-
if (s.gzhead.comment) {
|
|
19307
|
-
beg = s.pending;
|
|
19308
|
-
do {
|
|
19162
|
+
val = s.gzindex < s.gzhead.name.length ? 0xff & s.gzhead.name.charCodeAt(s.gzindex++) : 0;
|
|
19163
|
+
put_byte(s, val);
|
|
19164
|
+
}while (0 !== val);
|
|
19165
|
+
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
19166
|
+
if (0 === val) {
|
|
19167
|
+
s.gzindex = 0;
|
|
19168
|
+
s.status = COMMENT_STATE;
|
|
19169
|
+
}
|
|
19170
|
+
} else s.status = COMMENT_STATE;
|
|
19171
|
+
if (s.status === COMMENT_STATE) if (s.gzhead.comment) {
|
|
19172
|
+
beg = s.pending;
|
|
19173
|
+
do {
|
|
19174
|
+
if (s.pending === s.pending_buf_size) {
|
|
19175
|
+
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
19176
|
+
flush_pending(strm);
|
|
19177
|
+
beg = s.pending;
|
|
19309
19178
|
if (s.pending === s.pending_buf_size) {
|
|
19310
|
-
|
|
19311
|
-
|
|
19312
|
-
beg = s.pending;
|
|
19313
|
-
if (s.pending === s.pending_buf_size) {
|
|
19314
|
-
val = 1;
|
|
19315
|
-
break;
|
|
19316
|
-
}
|
|
19179
|
+
val = 1;
|
|
19180
|
+
break;
|
|
19317
19181
|
}
|
|
19318
|
-
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
}
|
|
19325
|
-
if (s.status === HCRC_STATE) {
|
|
19326
|
-
if (s.
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
} else s.status = BUSY_STATE;
|
|
19335
|
-
}
|
|
19182
|
+
}
|
|
19183
|
+
val = s.gzindex < s.gzhead.comment.length ? 0xff & s.gzhead.comment.charCodeAt(s.gzindex++) : 0;
|
|
19184
|
+
put_byte(s, val);
|
|
19185
|
+
}while (0 !== val);
|
|
19186
|
+
if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
|
|
19187
|
+
if (0 === val) s.status = HCRC_STATE;
|
|
19188
|
+
} else s.status = HCRC_STATE;
|
|
19189
|
+
if (s.status === HCRC_STATE) if (s.gzhead.hcrc) {
|
|
19190
|
+
if (s.pending + 2 > s.pending_buf_size) flush_pending(strm);
|
|
19191
|
+
if (s.pending + 2 <= s.pending_buf_size) {
|
|
19192
|
+
put_byte(s, 0xff & strm.adler);
|
|
19193
|
+
put_byte(s, strm.adler >> 8 & 0xff);
|
|
19194
|
+
strm.adler = 0;
|
|
19195
|
+
s.status = BUSY_STATE;
|
|
19196
|
+
}
|
|
19197
|
+
} else s.status = BUSY_STATE;
|
|
19336
19198
|
if (0 !== s.pending) {
|
|
19337
19199
|
flush_pending(strm);
|
|
19338
19200
|
if (0 === strm.avail_out) {
|
|
@@ -21641,9 +21503,9 @@ var __webpack_modules__ = {
|
|
|
21641
21503
|
}
|
|
21642
21504
|
module.exports = ZStream;
|
|
21643
21505
|
},
|
|
21644
|
-
"../../node_modules/.pnpm/parse-path@7.0.
|
|
21506
|
+
"../../node_modules/.pnpm/parse-path@7.0.1/node_modules/parse-path/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21645
21507
|
"use strict";
|
|
21646
|
-
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.
|
|
21508
|
+
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js");
|
|
21647
21509
|
function parsePath(url) {
|
|
21648
21510
|
var output = {
|
|
21649
21511
|
protocols: [],
|
|
@@ -21695,7 +21557,7 @@ var __webpack_modules__ = {
|
|
|
21695
21557
|
},
|
|
21696
21558
|
"../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21697
21559
|
"use strict";
|
|
21698
|
-
var parsePath = __webpack_require__("../../node_modules/.pnpm/parse-path@7.0.
|
|
21560
|
+
var parsePath = __webpack_require__("../../node_modules/.pnpm/parse-path@7.0.1/node_modules/parse-path/lib/index.js");
|
|
21699
21561
|
function _interopDefaultLegacy(e) {
|
|
21700
21562
|
return e && 'object' == typeof e && 'default' in e ? e : {
|
|
21701
21563
|
default: e
|
|
@@ -23407,7 +23269,7 @@ var __webpack_modules__ = {
|
|
|
23407
23269
|
}
|
|
23408
23270
|
}
|
|
23409
23271
|
},
|
|
23410
|
-
"../../node_modules/.pnpm/protocols@2.0.
|
|
23272
|
+
"../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js": function(module) {
|
|
23411
23273
|
"use strict";
|
|
23412
23274
|
module.exports = function(input, first) {
|
|
23413
23275
|
if (true === first) first = 0;
|
|
@@ -23539,13 +23401,12 @@ var __webpack_modules__ = {
|
|
|
23539
23401
|
];
|
|
23540
23402
|
function prependListener(emitter, event, fn) {
|
|
23541
23403
|
if ('function' == typeof emitter.prependListener) return emitter.prependListener(event, fn);
|
|
23542
|
-
if (emitter._events && emitter._events[event])
|
|
23543
|
-
|
|
23544
|
-
|
|
23545
|
-
|
|
23546
|
-
|
|
23547
|
-
|
|
23548
|
-
} else emitter.on(event, fn);
|
|
23404
|
+
if (emitter._events && emitter._events[event]) if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);
|
|
23405
|
+
else emitter._events[event] = [
|
|
23406
|
+
fn,
|
|
23407
|
+
emitter._events[event]
|
|
23408
|
+
];
|
|
23409
|
+
else emitter.on(event, fn);
|
|
23549
23410
|
}
|
|
23550
23411
|
function ReadableState(options, stream) {
|
|
23551
23412
|
Duplex = Duplex || __webpack_require__("../../node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_duplex.js");
|
|
@@ -23640,10 +23501,9 @@ var __webpack_modules__ = {
|
|
|
23640
23501
|
if (er) stream.emit('error', er);
|
|
23641
23502
|
else if (state.objectMode || chunk && chunk.length > 0) {
|
|
23642
23503
|
if ('string' != typeof chunk && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer1.prototype) chunk = _uint8ArrayToBuffer(chunk);
|
|
23643
|
-
if (addToFront)
|
|
23644
|
-
|
|
23645
|
-
|
|
23646
|
-
} else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
|
|
23504
|
+
if (addToFront) if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));
|
|
23505
|
+
else addChunk(stream, state, chunk, true);
|
|
23506
|
+
else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
|
|
23647
23507
|
else {
|
|
23648
23508
|
state.reading = false;
|
|
23649
23509
|
if (state.decoder && !encoding) {
|
|
@@ -23702,10 +23562,8 @@ var __webpack_modules__ = {
|
|
|
23702
23562
|
function howMuchToRead(n, state) {
|
|
23703
23563
|
if (n <= 0 || 0 === state.length && state.ended) return 0;
|
|
23704
23564
|
if (state.objectMode) return 1;
|
|
23705
|
-
if (n !== n)
|
|
23706
|
-
|
|
23707
|
-
return state.length;
|
|
23708
|
-
}
|
|
23565
|
+
if (n !== n) if (state.flowing && state.length) return state.buffer.head.data.length;
|
|
23566
|
+
else return state.length;
|
|
23709
23567
|
if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
|
|
23710
23568
|
if (n <= state.length) return n;
|
|
23711
23569
|
if (!state.ended) {
|
|
@@ -24587,15 +24445,13 @@ var __webpack_modules__ = {
|
|
|
24587
24445
|
});
|
|
24588
24446
|
}
|
|
24589
24447
|
function prefinish(stream, state) {
|
|
24590
|
-
if (!state.prefinished && !state.finalCalled) {
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
stream.emit('prefinish');
|
|
24598
|
-
}
|
|
24448
|
+
if (!state.prefinished && !state.finalCalled) if ('function' == typeof stream._final) {
|
|
24449
|
+
state.pendingcb++;
|
|
24450
|
+
state.finalCalled = true;
|
|
24451
|
+
pna.nextTick(callFinal, stream, state);
|
|
24452
|
+
} else {
|
|
24453
|
+
state.prefinished = true;
|
|
24454
|
+
stream.emit('prefinish');
|
|
24599
24455
|
}
|
|
24600
24456
|
}
|
|
24601
24457
|
function finishMaybe(stream, state) {
|
|
@@ -24612,10 +24468,8 @@ var __webpack_modules__ = {
|
|
|
24612
24468
|
function endWritable(stream, state, cb) {
|
|
24613
24469
|
state.ending = true;
|
|
24614
24470
|
finishMaybe(stream, state);
|
|
24615
|
-
if (cb)
|
|
24616
|
-
|
|
24617
|
-
else stream.once('finish', cb);
|
|
24618
|
-
}
|
|
24471
|
+
if (cb) if (state.finished) pna.nextTick(cb);
|
|
24472
|
+
else stream.once('finish', cb);
|
|
24619
24473
|
state.ended = true;
|
|
24620
24474
|
stream.writable = false;
|
|
24621
24475
|
}
|
|
@@ -24732,27 +24586,24 @@ var __webpack_modules__ = {
|
|
|
24732
24586
|
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
24733
24587
|
if (readableDestroyed || writableDestroyed) {
|
|
24734
24588
|
if (cb) cb(err);
|
|
24735
|
-
else if (err) {
|
|
24736
|
-
if (this._writableState) {
|
|
24737
|
-
|
|
24738
|
-
|
|
24739
|
-
|
|
24740
|
-
|
|
24741
|
-
} else pna.nextTick(emitErrorNT, this, err);
|
|
24742
|
-
}
|
|
24589
|
+
else if (err) if (this._writableState) {
|
|
24590
|
+
if (!this._writableState.errorEmitted) {
|
|
24591
|
+
this._writableState.errorEmitted = true;
|
|
24592
|
+
pna.nextTick(emitErrorNT, this, err);
|
|
24593
|
+
}
|
|
24594
|
+
} else pna.nextTick(emitErrorNT, this, err);
|
|
24743
24595
|
return this;
|
|
24744
24596
|
}
|
|
24745
24597
|
if (this._readableState) this._readableState.destroyed = true;
|
|
24746
24598
|
if (this._writableState) this._writableState.destroyed = true;
|
|
24747
24599
|
this._destroy(err || null, function(err) {
|
|
24748
|
-
if (!cb && err) {
|
|
24749
|
-
if (_this._writableState) {
|
|
24750
|
-
|
|
24751
|
-
|
|
24752
|
-
|
|
24753
|
-
|
|
24754
|
-
|
|
24755
|
-
} else if (cb) cb(err);
|
|
24600
|
+
if (!cb && err) if (_this._writableState) {
|
|
24601
|
+
if (!_this._writableState.errorEmitted) {
|
|
24602
|
+
_this._writableState.errorEmitted = true;
|
|
24603
|
+
pna.nextTick(emitErrorNT, _this, err);
|
|
24604
|
+
}
|
|
24605
|
+
} else pna.nextTick(emitErrorNT, _this, err);
|
|
24606
|
+
else if (cb) cb(err);
|
|
24756
24607
|
});
|
|
24757
24608
|
return this;
|
|
24758
24609
|
}
|
|
@@ -24857,18 +24708,17 @@ var __webpack_modules__ = {
|
|
|
24857
24708
|
results[i] = result;
|
|
24858
24709
|
if (0 === --pending || err) done(err);
|
|
24859
24710
|
}
|
|
24860
|
-
if (pending) {
|
|
24861
|
-
|
|
24862
|
-
|
|
24863
|
-
each(key, err, result);
|
|
24864
|
-
});
|
|
24711
|
+
if (pending) if (keys) keys.forEach(function(key) {
|
|
24712
|
+
tasks[key](function(err, result) {
|
|
24713
|
+
each(key, err, result);
|
|
24865
24714
|
});
|
|
24866
|
-
|
|
24867
|
-
|
|
24868
|
-
|
|
24869
|
-
|
|
24715
|
+
});
|
|
24716
|
+
else tasks.forEach(function(task, i) {
|
|
24717
|
+
task(function(err, result) {
|
|
24718
|
+
each(i, err, result);
|
|
24870
24719
|
});
|
|
24871
|
-
}
|
|
24720
|
+
});
|
|
24721
|
+
else done(null);
|
|
24872
24722
|
isSync = false;
|
|
24873
24723
|
}
|
|
24874
24724
|
},
|
|
@@ -24894,10 +24744,9 @@ var __webpack_modules__ = {
|
|
|
24894
24744
|
SafeBuffer.alloc = function(size, fill, encoding) {
|
|
24895
24745
|
if ('number' != typeof size) throw new TypeError('Argument must be a number');
|
|
24896
24746
|
var buf = Buffer1(size);
|
|
24897
|
-
if (void 0 !== fill)
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
} else buf.fill(0);
|
|
24747
|
+
if (void 0 !== fill) if ('string' == typeof encoding) buf.fill(fill, encoding);
|
|
24748
|
+
else buf.fill(fill);
|
|
24749
|
+
else buf.fill(0);
|
|
24901
24750
|
return buf;
|
|
24902
24751
|
};
|
|
24903
24752
|
SafeBuffer.allocUnsafe = function(size) {
|
|
@@ -25190,10 +25039,8 @@ var __webpack_modules__ = {
|
|
|
25190
25039
|
if (--j < i || -2 === nb) return 0;
|
|
25191
25040
|
nb = utf8CheckByte(buf[j]);
|
|
25192
25041
|
if (nb >= 0) {
|
|
25193
|
-
if (nb > 0)
|
|
25194
|
-
|
|
25195
|
-
else self1.lastNeed = nb - 3;
|
|
25196
|
-
}
|
|
25042
|
+
if (nb > 0) if (2 === nb) nb = 0;
|
|
25043
|
+
else self1.lastNeed = nb - 3;
|
|
25197
25044
|
return nb;
|
|
25198
25045
|
}
|
|
25199
25046
|
return 0;
|
|
@@ -26423,7 +26270,7 @@ var __webpack_modules__ = {
|
|
|
26423
26270
|
});
|
|
26424
26271
|
exports1.createPackageGraph = void 0;
|
|
26425
26272
|
const createDependencyMap_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/graph/createDependencyMap.js");
|
|
26426
|
-
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
26273
|
+
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
|
|
26427
26274
|
function createPackageGraph(packages, filters) {
|
|
26428
26275
|
const packageSet = new Set();
|
|
26429
26276
|
const edges = [];
|
|
@@ -27028,7 +26875,7 @@ var __webpack_modules__ = {
|
|
|
27028
26875
|
value: true
|
|
27029
26876
|
});
|
|
27030
26877
|
exports1.getScopedPackages = void 0;
|
|
27031
|
-
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
26878
|
+
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
|
|
27032
26879
|
function getScopedPackages(search, packages) {
|
|
27033
26880
|
const packageNames = Array.isArray(packages) ? packages : Object.keys(packages);
|
|
27034
26881
|
const results = new Set();
|
|
@@ -27172,7 +27019,7 @@ var __webpack_modules__ = {
|
|
|
27172
27019
|
value: true
|
|
27173
27020
|
});
|
|
27174
27021
|
exports1.getPackagesByFiles = void 0;
|
|
27175
|
-
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
27022
|
+
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
|
|
27176
27023
|
const path_1 = __importDefault(__webpack_require__("path"));
|
|
27177
27024
|
const getWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/getWorkspaces.js");
|
|
27178
27025
|
function getPackagesByFiles(workspaceRoot, files, ignoreGlobs = [], returnAllPackagesOnNoMatch = false) {
|
|
@@ -27264,7 +27111,7 @@ var __webpack_modules__ = {
|
|
|
27264
27111
|
const utils = (0, implementations_1.getWorkspaceUtilities)(cwd);
|
|
27265
27112
|
if (!utils) return [];
|
|
27266
27113
|
if (!utils.getWorkspacePackagePathsAsync) {
|
|
27267
|
-
const managerName = implementations_1.getWorkspaceManagerAndRoot(cwd)?.manager;
|
|
27114
|
+
const managerName = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
|
|
27268
27115
|
throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
|
|
27269
27116
|
}
|
|
27270
27117
|
return utils.getWorkspacePackagePathsAsync(cwd);
|
|
@@ -27279,7 +27126,7 @@ var __webpack_modules__ = {
|
|
|
27279
27126
|
exports1.getWorkspaceRoot = void 0;
|
|
27280
27127
|
const implementations_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/index.js");
|
|
27281
27128
|
function getWorkspaceRoot(cwd, preferredManager) {
|
|
27282
|
-
return implementations_1.getWorkspaceManagerAndRoot(cwd, void 0, preferredManager)?.root;
|
|
27129
|
+
return (0, implementations_1.getWorkspaceManagerAndRoot)(cwd, void 0, preferredManager)?.root;
|
|
27283
27130
|
}
|
|
27284
27131
|
exports1.getWorkspaceRoot = getWorkspaceRoot;
|
|
27285
27132
|
},
|
|
@@ -27299,7 +27146,7 @@ var __webpack_modules__ = {
|
|
|
27299
27146
|
const utils = (0, implementations_1.getWorkspaceUtilities)(cwd);
|
|
27300
27147
|
if (!utils) return [];
|
|
27301
27148
|
if (!utils.getWorkspacesAsync) {
|
|
27302
|
-
const managerName = implementations_1.getWorkspaceManagerAndRoot(cwd)?.manager;
|
|
27149
|
+
const managerName = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
|
|
27303
27150
|
throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
|
|
27304
27151
|
}
|
|
27305
27152
|
return utils.getWorkspacesAsync(cwd);
|
|
@@ -27357,7 +27204,7 @@ var __webpack_modules__ = {
|
|
|
27357
27204
|
exports1.getWorkspaceUtilities = void 0;
|
|
27358
27205
|
const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
|
|
27359
27206
|
function getWorkspaceUtilities(cwd) {
|
|
27360
|
-
const manager = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd)?.manager;
|
|
27207
|
+
const manager = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
|
|
27361
27208
|
switch(manager){
|
|
27362
27209
|
case "yarn":
|
|
27363
27210
|
return __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/yarn.js");
|
|
@@ -27413,7 +27260,7 @@ var __webpack_modules__ = {
|
|
|
27413
27260
|
const logging_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/logging.js");
|
|
27414
27261
|
const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
|
|
27415
27262
|
function getLernaWorkspaceRoot(cwd) {
|
|
27416
|
-
const root = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd, void 0, "lerna")?.root;
|
|
27263
|
+
const root = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "lerna")?.root;
|
|
27417
27264
|
if (!root) throw new Error("Could not find lerna workspace root from " + cwd);
|
|
27418
27265
|
return root;
|
|
27419
27266
|
}
|
|
@@ -27461,7 +27308,7 @@ var __webpack_modules__ = {
|
|
|
27461
27308
|
const _1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/index.js");
|
|
27462
27309
|
const packageJsonWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/packageJsonWorkspaces.js");
|
|
27463
27310
|
function getNpmWorkspaceRoot(cwd) {
|
|
27464
|
-
const root = _1.getWorkspaceManagerAndRoot(cwd, void 0, "npm")?.root;
|
|
27311
|
+
const root = (0, _1.getWorkspaceManagerAndRoot)(cwd, void 0, "npm")?.root;
|
|
27465
27312
|
if (!root) throw new Error("Could not find npm workspace root from " + cwd);
|
|
27466
27313
|
return root;
|
|
27467
27314
|
}
|
|
@@ -27576,7 +27423,7 @@ var __webpack_modules__ = {
|
|
|
27576
27423
|
const logging_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/logging.js");
|
|
27577
27424
|
const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
|
|
27578
27425
|
function getPnpmWorkspaceRoot(cwd) {
|
|
27579
|
-
const root = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd, void 0, "pnpm")?.root;
|
|
27426
|
+
const root = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "pnpm")?.root;
|
|
27580
27427
|
if (!root) throw new Error("Could not find pnpm workspace root from " + cwd);
|
|
27581
27428
|
return root;
|
|
27582
27429
|
}
|
|
@@ -27634,7 +27481,7 @@ var __webpack_modules__ = {
|
|
|
27634
27481
|
const logging_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/logging.js");
|
|
27635
27482
|
const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
|
|
27636
27483
|
function getRushWorkspaceRoot(cwd) {
|
|
27637
|
-
const root = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd, void 0, "rush")?.root;
|
|
27484
|
+
const root = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "rush")?.root;
|
|
27638
27485
|
if (!root) throw new Error("Could not find rush workspace root from " + cwd);
|
|
27639
27486
|
return root;
|
|
27640
27487
|
}
|
|
@@ -27684,7 +27531,7 @@ var __webpack_modules__ = {
|
|
|
27684
27531
|
const _1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/index.js");
|
|
27685
27532
|
const packageJsonWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/packageJsonWorkspaces.js");
|
|
27686
27533
|
function getYarnWorkspaceRoot(cwd) {
|
|
27687
|
-
const root = _1.getWorkspaceManagerAndRoot(cwd, void 0, "yarn")?.root;
|
|
27534
|
+
const root = (0, _1.getWorkspaceManagerAndRoot)(cwd, void 0, "yarn")?.root;
|
|
27688
27535
|
if (!root) throw new Error("Could not find yarn workspace root from " + cwd);
|
|
27689
27536
|
return root;
|
|
27690
27537
|
}
|
|
@@ -27868,33 +27715,31 @@ var __webpack_modules__ = {
|
|
|
27868
27715
|
const markerLines = {};
|
|
27869
27716
|
if (lineDiff) for(let i = 0; i <= lineDiff; i++){
|
|
27870
27717
|
const lineNumber = i + startLine;
|
|
27871
|
-
if (startColumn) {
|
|
27872
|
-
|
|
27873
|
-
|
|
27874
|
-
|
|
27875
|
-
|
|
27876
|
-
|
|
27877
|
-
|
|
27878
|
-
|
|
27718
|
+
if (startColumn) if (0 === i) {
|
|
27719
|
+
const sourceLength = source[lineNumber - 1].length;
|
|
27720
|
+
markerLines[lineNumber] = [
|
|
27721
|
+
startColumn,
|
|
27722
|
+
sourceLength - startColumn + 1
|
|
27723
|
+
];
|
|
27724
|
+
} else if (i === lineDiff) markerLines[lineNumber] = [
|
|
27725
|
+
0,
|
|
27726
|
+
endColumn
|
|
27727
|
+
];
|
|
27728
|
+
else {
|
|
27729
|
+
const sourceLength = source[lineNumber - i].length;
|
|
27730
|
+
markerLines[lineNumber] = [
|
|
27879
27731
|
0,
|
|
27880
|
-
|
|
27732
|
+
sourceLength
|
|
27881
27733
|
];
|
|
27882
|
-
|
|
27883
|
-
|
|
27884
|
-
markerLines[lineNumber] = [
|
|
27885
|
-
0,
|
|
27886
|
-
sourceLength
|
|
27887
|
-
];
|
|
27888
|
-
}
|
|
27889
|
-
} else markerLines[lineNumber] = true;
|
|
27734
|
+
}
|
|
27735
|
+
else markerLines[lineNumber] = true;
|
|
27890
27736
|
}
|
|
27891
|
-
else if (startColumn === endColumn)
|
|
27892
|
-
|
|
27893
|
-
|
|
27894
|
-
|
|
27895
|
-
|
|
27896
|
-
|
|
27897
|
-
} else markerLines[startLine] = [
|
|
27737
|
+
else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [
|
|
27738
|
+
startColumn,
|
|
27739
|
+
0
|
|
27740
|
+
];
|
|
27741
|
+
else markerLines[startLine] = true;
|
|
27742
|
+
else markerLines[startLine] = [
|
|
27898
27743
|
startColumn,
|
|
27899
27744
|
endColumn - startColumn
|
|
27900
27745
|
];
|
|
@@ -28185,10 +28030,7 @@ var __webpack_modules__ = {
|
|
|
28185
28030
|
return 0 !== this._queueCursor || !!this._last;
|
|
28186
28031
|
}
|
|
28187
28032
|
exactSource(loc, cb) {
|
|
28188
|
-
if (!this._map)
|
|
28189
|
-
cb();
|
|
28190
|
-
return;
|
|
28191
|
-
}
|
|
28033
|
+
if (!this._map) return void cb();
|
|
28192
28034
|
this.source("start", loc);
|
|
28193
28035
|
const identifierName = loc.identifierName;
|
|
28194
28036
|
const sourcePos = this._sourcePosition;
|
|
@@ -28294,15 +28136,11 @@ var __webpack_modules__ = {
|
|
|
28294
28136
|
const unescapedDoubleQuoteRE = /(?:^|[^\\])(?:\\\\)*"/;
|
|
28295
28137
|
function DirectiveLiteral(node) {
|
|
28296
28138
|
const raw = this.getPossibleRaw(node);
|
|
28297
|
-
if (!this.format.minified && void 0 !== raw)
|
|
28298
|
-
this.token(raw);
|
|
28299
|
-
return;
|
|
28300
|
-
}
|
|
28139
|
+
if (!this.format.minified && void 0 !== raw) return void this.token(raw);
|
|
28301
28140
|
const { value: value1 } = node;
|
|
28302
|
-
if (unescapedDoubleQuoteRE.test(value1))
|
|
28303
|
-
|
|
28304
|
-
|
|
28305
|
-
} else this.token(`"${value1}"`);
|
|
28141
|
+
if (unescapedDoubleQuoteRE.test(value1)) if (unescapedSingleQuoteRE.test(value1)) throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");
|
|
28142
|
+
else this.token(`'${value1}'`);
|
|
28143
|
+
else this.token(`"${value1}"`);
|
|
28306
28144
|
}
|
|
28307
28145
|
function InterpreterDirective(node) {
|
|
28308
28146
|
this.token(`#!${node.value}`);
|
|
@@ -28519,10 +28357,7 @@ var __webpack_modules__ = {
|
|
|
28519
28357
|
},
|
|
28520
28358
|
DecimalLiteral (node) {
|
|
28521
28359
|
const raw = this.getPossibleRaw(node);
|
|
28522
|
-
if (!this.format.minified && void 0 !== raw)
|
|
28523
|
-
this.word(raw);
|
|
28524
|
-
return;
|
|
28525
|
-
}
|
|
28360
|
+
if (!this.format.minified && void 0 !== raw) return void this.word(raw);
|
|
28526
28361
|
this.word(node.value + "m");
|
|
28527
28362
|
}
|
|
28528
28363
|
};
|
|
@@ -29886,10 +29721,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
29886
29721
|
const useAssertKeyword = "assert" === importAttributesKeyword || !importAttributesKeyword && assertions;
|
|
29887
29722
|
this.word(useAssertKeyword ? "assert" : "with");
|
|
29888
29723
|
this.space();
|
|
29889
|
-
if (!useAssertKeyword && "with" !== importAttributesKeyword)
|
|
29890
|
-
this.printList(attributes || assertions);
|
|
29891
|
-
return;
|
|
29892
|
-
}
|
|
29724
|
+
if (!useAssertKeyword && "with" !== importAttributesKeyword) return void this.printList(attributes || assertions);
|
|
29893
29725
|
const occurrenceCount = hasPreviousBrace ? 1 : 0;
|
|
29894
29726
|
this.token("{", null, occurrenceCount);
|
|
29895
29727
|
this.space();
|
|
@@ -30441,10 +30273,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
30441
30273
|
this.print(node.key);
|
|
30442
30274
|
this.tokenChar(93);
|
|
30443
30275
|
} else {
|
|
30444
|
-
if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name)
|
|
30445
|
-
this.print(node.value);
|
|
30446
|
-
return;
|
|
30447
|
-
}
|
|
30276
|
+
if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) return void this.print(node.value);
|
|
30448
30277
|
this.print(node.key);
|
|
30449
30278
|
if (node.shorthand && isIdentifier(node.key) && isIdentifier(node.value) && node.key.name === node.value.name) return;
|
|
30450
30279
|
}
|
|
@@ -30532,19 +30361,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
30532
30361
|
}
|
|
30533
30362
|
function StringLiteral(node) {
|
|
30534
30363
|
const raw = this.getPossibleRaw(node);
|
|
30535
|
-
if (!this.format.minified && void 0 !== raw)
|
|
30536
|
-
this.token(raw);
|
|
30537
|
-
return;
|
|
30538
|
-
}
|
|
30364
|
+
if (!this.format.minified && void 0 !== raw) return void this.token(raw);
|
|
30539
30365
|
const val = _jsesc(node.value, this.format.jsescOption);
|
|
30540
30366
|
this.token(val);
|
|
30541
30367
|
}
|
|
30542
30368
|
function BigIntLiteral(node) {
|
|
30543
30369
|
const raw = this.getPossibleRaw(node);
|
|
30544
|
-
if (!this.format.minified && void 0 !== raw)
|
|
30545
|
-
this.word(raw);
|
|
30546
|
-
return;
|
|
30547
|
-
}
|
|
30370
|
+
if (!this.format.minified && void 0 !== raw) return void this.word(raw);
|
|
30548
30371
|
this.word(node.value + "n");
|
|
30549
30372
|
}
|
|
30550
30373
|
const validTopicTokenSet = new Set([
|
|
@@ -30719,10 +30542,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
30719
30542
|
maybePrintTrailingCommaOrSemicolon(this, node);
|
|
30720
30543
|
}
|
|
30721
30544
|
function maybePrintTrailingCommaOrSemicolon(printer, node) {
|
|
30722
|
-
if (!printer.tokenMap || !node.start || !node.end)
|
|
30723
|
-
printer.semicolon();
|
|
30724
|
-
return;
|
|
30725
|
-
}
|
|
30545
|
+
if (!printer.tokenMap || !node.start || !node.end) return void printer.semicolon();
|
|
30726
30546
|
if (printer.tokenMap.endMatches(node, ",")) printer.token(",");
|
|
30727
30547
|
else if (printer.tokenMap.endMatches(node, ";")) printer.semicolon();
|
|
30728
30548
|
}
|
|
@@ -31095,10 +30915,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
31095
30915
|
this.space();
|
|
31096
30916
|
}
|
|
31097
30917
|
this.print(id);
|
|
31098
|
-
if (!node.body)
|
|
31099
|
-
this.semicolon();
|
|
31100
|
-
return;
|
|
31101
|
-
}
|
|
30918
|
+
if (!node.body) return void this.semicolon();
|
|
31102
30919
|
let body = node.body;
|
|
31103
30920
|
while("TSModuleDeclaration" === body.type){
|
|
31104
30921
|
this.tokenChar(46);
|
|
@@ -32000,10 +31817,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32000
31817
|
if (i <= 0) return;
|
|
32001
31818
|
if (!force) {
|
|
32002
31819
|
if (this.format.retainLines || this.format.compact) return;
|
|
32003
|
-
if (this.format.concise)
|
|
32004
|
-
this.space();
|
|
32005
|
-
return;
|
|
32006
|
-
}
|
|
31820
|
+
if (this.format.concise) return void this.space();
|
|
32007
31821
|
}
|
|
32008
31822
|
if (i > 2) i = 2;
|
|
32009
31823
|
i -= this._buf.getNewlineCount();
|
|
@@ -32022,10 +31836,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32022
31836
|
this._buf.removeTrailingNewline();
|
|
32023
31837
|
}
|
|
32024
31838
|
exactSource(loc, cb) {
|
|
32025
|
-
if (!loc)
|
|
32026
|
-
cb();
|
|
32027
|
-
return;
|
|
32028
|
-
}
|
|
31839
|
+
if (!loc) return void cb();
|
|
32029
31840
|
this._catchUp("start", loc);
|
|
32030
31841
|
this._buf.exactSource(loc, cb);
|
|
32031
31842
|
}
|
|
@@ -32249,7 +32060,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32249
32060
|
const len = nodes.length;
|
|
32250
32061
|
for(let i = 0; i < len; i++){
|
|
32251
32062
|
const node = nodes[i];
|
|
32252
|
-
if (
|
|
32063
|
+
if (node) {
|
|
32253
32064
|
if (statement) this._printNewline(0 === i, newlineOpts);
|
|
32254
32065
|
this.print(node, void 0, trailingCommentsLineOffset || 0);
|
|
32255
32066
|
null == iterator || iterator(node, i);
|
|
@@ -32331,19 +32142,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32331
32142
|
_printNewline(newLine, opts) {
|
|
32332
32143
|
const format = this.format;
|
|
32333
32144
|
if (format.retainLines || format.compact) return;
|
|
32334
|
-
if (format.concise)
|
|
32335
|
-
this.space();
|
|
32336
|
-
return;
|
|
32337
|
-
}
|
|
32145
|
+
if (format.concise) return void this.space();
|
|
32338
32146
|
if (!newLine) return;
|
|
32339
32147
|
const startLine = opts.nextNodeStartLine;
|
|
32340
32148
|
const lastCommentLine = this._lastCommentLine;
|
|
32341
32149
|
if (startLine > 0 && lastCommentLine > 0) {
|
|
32342
32150
|
const offset = startLine - lastCommentLine;
|
|
32343
|
-
if (offset >= 0)
|
|
32344
|
-
this.newline(offset || 1);
|
|
32345
|
-
return;
|
|
32346
|
-
}
|
|
32151
|
+
if (offset >= 0) return void this.newline(offset || 1);
|
|
32347
32152
|
}
|
|
32348
32153
|
if (this._buf.hasContent()) this.newline(1);
|
|
32349
32154
|
}
|
|
@@ -32520,22 +32325,20 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32520
32325
|
var _originalMapping;
|
|
32521
32326
|
this._rawMappings = void 0;
|
|
32522
32327
|
let originalMapping;
|
|
32523
|
-
if (null != line) {
|
|
32524
|
-
|
|
32525
|
-
|
|
32526
|
-
|
|
32527
|
-
|
|
32528
|
-
|
|
32529
|
-
|
|
32530
|
-
|
|
32531
|
-
|
|
32532
|
-
|
|
32533
|
-
|
|
32534
|
-
|
|
32535
|
-
|
|
32536
|
-
|
|
32537
|
-
};
|
|
32538
|
-
}
|
|
32328
|
+
if (null != line) if (this._inputMap) {
|
|
32329
|
+
originalMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, {
|
|
32330
|
+
line,
|
|
32331
|
+
column
|
|
32332
|
+
});
|
|
32333
|
+
if (!originalMapping.name && identifierNamePos) {
|
|
32334
|
+
const originalIdentifierMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, identifierNamePos);
|
|
32335
|
+
if (originalIdentifierMapping.name) identifierName = originalIdentifierMapping.name;
|
|
32336
|
+
}
|
|
32337
|
+
} else originalMapping = {
|
|
32338
|
+
source: (null == filename ? void 0 : filename.replace(/\\/g, "/")) || this._sourceFileName,
|
|
32339
|
+
line: line,
|
|
32340
|
+
column: column
|
|
32341
|
+
};
|
|
32539
32342
|
(0, _genMapping.maybeAddMapping)(this._map, {
|
|
32540
32343
|
name: identifierName,
|
|
32541
32344
|
generated,
|
|
@@ -32709,10 +32512,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32709
32512
|
const keys = VISITOR_KEYS[node.type];
|
|
32710
32513
|
for (const key of keys){
|
|
32711
32514
|
const child = node[key];
|
|
32712
|
-
if (
|
|
32713
|
-
|
|
32714
|
-
else yield child;
|
|
32715
|
-
}
|
|
32515
|
+
if (child) if (Array.isArray(child)) yield* child;
|
|
32516
|
+
else yield child;
|
|
32716
32517
|
}
|
|
32717
32518
|
}
|
|
32718
32519
|
},
|
|
@@ -32785,15 +32586,14 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32785
32586
|
++pos;
|
|
32786
32587
|
++curLine;
|
|
32787
32588
|
lineStart = pos;
|
|
32788
|
-
} else if (10 === ch || 13 === ch) {
|
|
32789
|
-
|
|
32790
|
-
|
|
32791
|
-
|
|
32792
|
-
|
|
32793
|
-
|
|
32794
|
-
|
|
32795
|
-
|
|
32796
|
-
} else ++pos;
|
|
32589
|
+
} else if (10 === ch || 13 === ch) if ("template" === type) {
|
|
32590
|
+
out += input.slice(chunkStart, pos) + "\n";
|
|
32591
|
+
++pos;
|
|
32592
|
+
if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
|
|
32593
|
+
++curLine;
|
|
32594
|
+
chunkStart = lineStart = pos;
|
|
32595
|
+
} else errors.unterminated(initialPos, initialLineStart, initialCurLine);
|
|
32596
|
+
else ++pos;
|
|
32797
32597
|
}
|
|
32798
32598
|
return {
|
|
32799
32599
|
pos,
|
|
@@ -32867,10 +32667,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32867
32667
|
}
|
|
32868
32668
|
pos += octalStr.length - 1;
|
|
32869
32669
|
const next = input.charCodeAt(pos);
|
|
32870
|
-
if ("0" !== octalStr || 56 === next || 57 === next)
|
|
32871
|
-
|
|
32872
|
-
errors.strictNumericEscape(startPos, lineStart, curLine);
|
|
32873
|
-
}
|
|
32670
|
+
if ("0" !== octalStr || 56 === next || 57 === next) if (inTemplate) return res(null);
|
|
32671
|
+
else errors.strictNumericEscape(startPos, lineStart, curLine);
|
|
32874
32672
|
return res(String.fromCharCode(octal));
|
|
32875
32673
|
}
|
|
32876
32674
|
return res(String.fromCharCode(ch));
|
|
@@ -32880,10 +32678,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32880
32678
|
const initialPos = pos;
|
|
32881
32679
|
let n;
|
|
32882
32680
|
({ n, pos } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
|
|
32883
|
-
if (null === n)
|
|
32884
|
-
|
|
32885
|
-
else pos = initialPos - 1;
|
|
32886
|
-
}
|
|
32681
|
+
if (null === n) if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
|
|
32682
|
+
else pos = initialPos - 1;
|
|
32887
32683
|
return {
|
|
32888
32684
|
code: n,
|
|
32889
32685
|
pos
|
|
@@ -32920,17 +32716,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32920
32716
|
continue;
|
|
32921
32717
|
}
|
|
32922
32718
|
val = code >= 97 ? code - 97 + 10 : code >= 65 ? code - 65 + 10 : _isDigit(code) ? code - 48 : 1 / 0;
|
|
32923
|
-
if (val >= radix) {
|
|
32924
|
-
|
|
32925
|
-
|
|
32926
|
-
|
|
32927
|
-
|
|
32928
|
-
|
|
32929
|
-
|
|
32930
|
-
|
|
32931
|
-
|
|
32932
|
-
} else break;
|
|
32933
|
-
}
|
|
32719
|
+
if (val >= radix) if (val <= 9 && bailOnError) return {
|
|
32720
|
+
n: null,
|
|
32721
|
+
pos
|
|
32722
|
+
};
|
|
32723
|
+
else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
|
|
32724
|
+
else if (forceLen) {
|
|
32725
|
+
val = 0;
|
|
32726
|
+
invalid = true;
|
|
32727
|
+
} else break;
|
|
32934
32728
|
++pos;
|
|
32935
32729
|
total = total * radix + val;
|
|
32936
32730
|
}
|
|
@@ -32950,13 +32744,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
32950
32744
|
++pos;
|
|
32951
32745
|
({ code, pos } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
|
|
32952
32746
|
++pos;
|
|
32953
|
-
if (null !== code && code > 0x10ffff) {
|
|
32954
|
-
|
|
32955
|
-
|
|
32956
|
-
|
|
32957
|
-
|
|
32958
|
-
errors.invalidCodePoint(pos, lineStart, curLine);
|
|
32959
|
-
}
|
|
32747
|
+
if (null !== code && code > 0x10ffff) if (!throwOnInvalid) return {
|
|
32748
|
+
code: null,
|
|
32749
|
+
pos
|
|
32750
|
+
};
|
|
32751
|
+
else errors.invalidCodePoint(pos, lineStart, curLine);
|
|
32960
32752
|
} else ({ code, pos } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
|
|
32961
32753
|
return {
|
|
32962
32754
|
code,
|
|
@@ -36946,15 +36738,14 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
36946
36738
|
++pos;
|
|
36947
36739
|
++curLine;
|
|
36948
36740
|
lineStart = pos;
|
|
36949
|
-
} else if (10 === ch || 13 === ch) {
|
|
36950
|
-
|
|
36951
|
-
|
|
36952
|
-
|
|
36953
|
-
|
|
36954
|
-
|
|
36955
|
-
|
|
36956
|
-
|
|
36957
|
-
} else ++pos;
|
|
36741
|
+
} else if (10 === ch || 13 === ch) if ("template" === type) {
|
|
36742
|
+
out += input.slice(chunkStart, pos) + "\n";
|
|
36743
|
+
++pos;
|
|
36744
|
+
if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
|
|
36745
|
+
++curLine;
|
|
36746
|
+
chunkStart = lineStart = pos;
|
|
36747
|
+
} else errors.unterminated(initialPos, initialLineStart, initialCurLine);
|
|
36748
|
+
else ++pos;
|
|
36958
36749
|
}
|
|
36959
36750
|
return {
|
|
36960
36751
|
pos,
|
|
@@ -37028,10 +36819,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37028
36819
|
}
|
|
37029
36820
|
pos += octalStr.length - 1;
|
|
37030
36821
|
const next = input.charCodeAt(pos);
|
|
37031
|
-
if ("0" !== octalStr || 56 === next || 57 === next)
|
|
37032
|
-
|
|
37033
|
-
errors.strictNumericEscape(startPos, lineStart, curLine);
|
|
37034
|
-
}
|
|
36822
|
+
if ("0" !== octalStr || 56 === next || 57 === next) if (inTemplate) return res(null);
|
|
36823
|
+
else errors.strictNumericEscape(startPos, lineStart, curLine);
|
|
37035
36824
|
return res(String.fromCharCode(octal));
|
|
37036
36825
|
}
|
|
37037
36826
|
return res(String.fromCharCode(ch));
|
|
@@ -37041,10 +36830,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37041
36830
|
const initialPos = pos;
|
|
37042
36831
|
let n;
|
|
37043
36832
|
({ n, pos } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
|
|
37044
|
-
if (null === n)
|
|
37045
|
-
|
|
37046
|
-
else pos = initialPos - 1;
|
|
37047
|
-
}
|
|
36833
|
+
if (null === n) if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
|
|
36834
|
+
else pos = initialPos - 1;
|
|
37048
36835
|
return {
|
|
37049
36836
|
code: n,
|
|
37050
36837
|
pos
|
|
@@ -37081,17 +36868,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37081
36868
|
continue;
|
|
37082
36869
|
}
|
|
37083
36870
|
val = code >= 97 ? code - 97 + 10 : code >= 65 ? code - 65 + 10 : _isDigit(code) ? code - 48 : 1 / 0;
|
|
37084
|
-
if (val >= radix) {
|
|
37085
|
-
|
|
37086
|
-
|
|
37087
|
-
|
|
37088
|
-
|
|
37089
|
-
|
|
37090
|
-
|
|
37091
|
-
|
|
37092
|
-
|
|
37093
|
-
} else break;
|
|
37094
|
-
}
|
|
36871
|
+
if (val >= radix) if (val <= 9 && bailOnError) return {
|
|
36872
|
+
n: null,
|
|
36873
|
+
pos
|
|
36874
|
+
};
|
|
36875
|
+
else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
|
|
36876
|
+
else if (forceLen) {
|
|
36877
|
+
val = 0;
|
|
36878
|
+
invalid = true;
|
|
36879
|
+
} else break;
|
|
37095
36880
|
++pos;
|
|
37096
36881
|
total = total * radix + val;
|
|
37097
36882
|
}
|
|
@@ -37111,13 +36896,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37111
36896
|
++pos;
|
|
37112
36897
|
({ code, pos } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
|
|
37113
36898
|
++pos;
|
|
37114
|
-
if (null !== code && code > 0x10ffff) {
|
|
37115
|
-
|
|
37116
|
-
|
|
37117
|
-
|
|
37118
|
-
|
|
37119
|
-
errors.invalidCodePoint(pos, lineStart, curLine);
|
|
37120
|
-
}
|
|
36899
|
+
if (null !== code && code > 0x10ffff) if (!throwOnInvalid) return {
|
|
36900
|
+
code: null,
|
|
36901
|
+
pos
|
|
36902
|
+
};
|
|
36903
|
+
else errors.invalidCodePoint(pos, lineStart, curLine);
|
|
37121
36904
|
} else ({ code, pos } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
|
|
37122
36905
|
return {
|
|
37123
36906
|
code,
|
|
@@ -37278,10 +37061,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37278
37061
|
this.skipSpace();
|
|
37279
37062
|
this.state.start = this.state.pos;
|
|
37280
37063
|
if (!this.isLookahead) this.state.startLoc = this.state.curPosition();
|
|
37281
|
-
if (this.state.pos >= this.length)
|
|
37282
|
-
this.finishToken(140);
|
|
37283
|
-
return;
|
|
37284
|
-
}
|
|
37064
|
+
if (this.state.pos >= this.length) return void this.finishToken(140);
|
|
37285
37065
|
this.getTokenFromCode(this.codePointAtPos(this.state.pos));
|
|
37286
37066
|
}
|
|
37287
37067
|
skipBlockComment(commentEnd) {
|
|
@@ -37439,10 +37219,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37439
37219
|
}
|
|
37440
37220
|
readToken_dot() {
|
|
37441
37221
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
37442
|
-
if (next >= 48 && next <= 57)
|
|
37443
|
-
this.readNumber(true);
|
|
37444
|
-
return;
|
|
37445
|
-
}
|
|
37222
|
+
if (next >= 48 && next <= 57) return void this.readNumber(true);
|
|
37446
37223
|
if (46 === next && 46 === this.input.charCodeAt(this.state.pos + 2)) {
|
|
37447
37224
|
this.state.pos += 3;
|
|
37448
37225
|
this.finishToken(21);
|
|
@@ -37490,10 +37267,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37490
37267
|
return;
|
|
37491
37268
|
}
|
|
37492
37269
|
if (124 === code) {
|
|
37493
|
-
if (62 === next)
|
|
37494
|
-
this.finishOp(39, 2);
|
|
37495
|
-
return;
|
|
37496
|
-
}
|
|
37270
|
+
if (62 === next) return void this.finishOp(39, 2);
|
|
37497
37271
|
if (this.hasPlugin("recordAndTuple") && 125 === next) {
|
|
37498
37272
|
if ("bar" !== this.getPluginOption("recordAndTuple", "syntaxType")) throw this.raise(Errors.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
|
|
37499
37273
|
this.state.pos += 2;
|
|
@@ -37507,27 +37281,23 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37507
37281
|
return;
|
|
37508
37282
|
}
|
|
37509
37283
|
}
|
|
37510
|
-
if (61 === next)
|
|
37511
|
-
this.finishOp(30, 2);
|
|
37512
|
-
return;
|
|
37513
|
-
}
|
|
37284
|
+
if (61 === next) return void this.finishOp(30, 2);
|
|
37514
37285
|
this.finishOp(124 === code ? 43 : 45, 1);
|
|
37515
37286
|
}
|
|
37516
37287
|
readToken_caret() {
|
|
37517
37288
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
37518
|
-
if (61 !== next || this.state.inType)
|
|
37519
|
-
|
|
37520
|
-
|
|
37521
|
-
|
|
37522
|
-
|
|
37523
|
-
|
|
37524
|
-
|
|
37525
|
-
|
|
37526
|
-
|
|
37527
|
-
|
|
37528
|
-
|
|
37529
|
-
|
|
37530
|
-
} else this.finishOp(32, 2);
|
|
37289
|
+
if (61 !== next || this.state.inType) if (94 === next && this.hasPlugin([
|
|
37290
|
+
"pipelineOperator",
|
|
37291
|
+
{
|
|
37292
|
+
proposal: "hack",
|
|
37293
|
+
topicToken: "^^"
|
|
37294
|
+
}
|
|
37295
|
+
])) {
|
|
37296
|
+
this.finishOp(37, 2);
|
|
37297
|
+
const lookaheadCh = this.input.codePointAt(this.state.pos);
|
|
37298
|
+
if (94 === lookaheadCh) this.unexpected();
|
|
37299
|
+
} else this.finishOp(44, 1);
|
|
37300
|
+
else this.finishOp(32, 2);
|
|
37531
37301
|
}
|
|
37532
37302
|
readToken_atSign() {
|
|
37533
37303
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
@@ -37542,10 +37312,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37542
37312
|
}
|
|
37543
37313
|
readToken_plus_min(code) {
|
|
37544
37314
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
37545
|
-
if (next === code)
|
|
37546
|
-
this.finishOp(34, 2);
|
|
37547
|
-
return;
|
|
37548
|
-
}
|
|
37315
|
+
if (next === code) return void this.finishOp(34, 2);
|
|
37549
37316
|
if (61 === next) this.finishOp(30, 2);
|
|
37550
37317
|
else this.finishOp(53, 1);
|
|
37551
37318
|
}
|
|
@@ -37553,17 +37320,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37553
37320
|
const { pos } = this.state;
|
|
37554
37321
|
const next = this.input.charCodeAt(pos + 1);
|
|
37555
37322
|
if (60 === next) {
|
|
37556
|
-
if (61 === this.input.charCodeAt(pos + 2))
|
|
37557
|
-
this.finishOp(30, 3);
|
|
37558
|
-
return;
|
|
37559
|
-
}
|
|
37323
|
+
if (61 === this.input.charCodeAt(pos + 2)) return void this.finishOp(30, 3);
|
|
37560
37324
|
this.finishOp(51, 2);
|
|
37561
37325
|
return;
|
|
37562
37326
|
}
|
|
37563
|
-
if (61 === next)
|
|
37564
|
-
this.finishOp(49, 2);
|
|
37565
|
-
return;
|
|
37566
|
-
}
|
|
37327
|
+
if (61 === next) return void this.finishOp(49, 2);
|
|
37567
37328
|
this.finishOp(47, 1);
|
|
37568
37329
|
}
|
|
37569
37330
|
readToken_gt() {
|
|
@@ -37571,25 +37332,16 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37571
37332
|
const next = this.input.charCodeAt(pos + 1);
|
|
37572
37333
|
if (62 === next) {
|
|
37573
37334
|
const size = 62 === this.input.charCodeAt(pos + 2) ? 3 : 2;
|
|
37574
|
-
if (61 === this.input.charCodeAt(pos + size))
|
|
37575
|
-
this.finishOp(30, size + 1);
|
|
37576
|
-
return;
|
|
37577
|
-
}
|
|
37335
|
+
if (61 === this.input.charCodeAt(pos + size)) return void this.finishOp(30, size + 1);
|
|
37578
37336
|
this.finishOp(52, size);
|
|
37579
37337
|
return;
|
|
37580
37338
|
}
|
|
37581
|
-
if (61 === next)
|
|
37582
|
-
this.finishOp(49, 2);
|
|
37583
|
-
return;
|
|
37584
|
-
}
|
|
37339
|
+
if (61 === next) return void this.finishOp(49, 2);
|
|
37585
37340
|
this.finishOp(48, 1);
|
|
37586
37341
|
}
|
|
37587
37342
|
readToken_eq_excl(code) {
|
|
37588
37343
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
37589
|
-
if (61 === next)
|
|
37590
|
-
this.finishOp(46, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2);
|
|
37591
|
-
return;
|
|
37592
|
-
}
|
|
37344
|
+
if (61 === next) return void this.finishOp(46, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2);
|
|
37593
37345
|
if (61 === code && 62 === next) {
|
|
37594
37346
|
this.state.pos += 2;
|
|
37595
37347
|
this.finishToken(19);
|
|
@@ -37600,10 +37352,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37600
37352
|
readToken_question() {
|
|
37601
37353
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
37602
37354
|
const next2 = this.input.charCodeAt(this.state.pos + 2);
|
|
37603
|
-
if (63 === next)
|
|
37604
|
-
|
|
37605
|
-
|
|
37606
|
-
} else if (46 !== next || next2 >= 48 && next2 <= 57) {
|
|
37355
|
+
if (63 === next) if (61 === next2) this.finishOp(30, 3);
|
|
37356
|
+
else this.finishOp(40, 2);
|
|
37357
|
+
else if (46 !== next || next2 >= 48 && next2 <= 57) {
|
|
37607
37358
|
++this.state.pos;
|
|
37608
37359
|
this.finishToken(17);
|
|
37609
37360
|
} else {
|
|
@@ -37676,18 +37427,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37676
37427
|
case 48:
|
|
37677
37428
|
{
|
|
37678
37429
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
37679
|
-
if (120 === next || 88 === next)
|
|
37680
|
-
|
|
37681
|
-
|
|
37682
|
-
}
|
|
37683
|
-
if (111 === next || 79 === next) {
|
|
37684
|
-
this.readRadixNumber(8);
|
|
37685
|
-
return;
|
|
37686
|
-
}
|
|
37687
|
-
if (98 === next || 66 === next) {
|
|
37688
|
-
this.readRadixNumber(2);
|
|
37689
|
-
return;
|
|
37690
|
-
}
|
|
37430
|
+
if (120 === next || 88 === next) return void this.readRadixNumber(16);
|
|
37431
|
+
if (111 === next || 79 === next) return void this.readRadixNumber(8);
|
|
37432
|
+
if (98 === next || 66 === next) return void this.readRadixNumber(2);
|
|
37691
37433
|
}
|
|
37692
37434
|
case 49:
|
|
37693
37435
|
case 50:
|
|
@@ -37745,10 +37487,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37745
37487
|
this.readWord();
|
|
37746
37488
|
return;
|
|
37747
37489
|
default:
|
|
37748
|
-
if (isIdentifierStart(code))
|
|
37749
|
-
this.readWord(code);
|
|
37750
|
-
return;
|
|
37751
|
-
}
|
|
37490
|
+
if (isIdentifierStart(code)) return void this.readWord(code);
|
|
37752
37491
|
}
|
|
37753
37492
|
throw this.raise(Errors.InvalidOrUnexpectedToken, this.state.curPosition(), {
|
|
37754
37493
|
unexpected: String.fromCodePoint(code)
|
|
@@ -37874,14 +37613,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
37874
37613
|
}
|
|
37875
37614
|
if (isIdentifierStart(this.codePointAtPos(this.state.pos))) throw this.raise(Errors.NumberIdentifier, this.state.curPosition());
|
|
37876
37615
|
const str = this.input.slice(start, this.state.pos).replace(/[_mn]/g, "");
|
|
37877
|
-
if (isBigInt)
|
|
37878
|
-
|
|
37879
|
-
return;
|
|
37880
|
-
}
|
|
37881
|
-
if (isDecimal) {
|
|
37882
|
-
this.finishToken(137, str);
|
|
37883
|
-
return;
|
|
37884
|
-
}
|
|
37616
|
+
if (isBigInt) return void this.finishToken(136, str);
|
|
37617
|
+
if (isDecimal) return void this.finishToken(137, str);
|
|
37885
37618
|
const val = isOctal ? parseInt(str, 8) : parseFloat(str);
|
|
37886
37619
|
this.finishToken(135, val);
|
|
37887
37620
|
}
|
|
@@ -38582,11 +38315,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
38582
38315
|
addComment(comment) {
|
|
38583
38316
|
if (void 0 === this.flowPragma) {
|
|
38584
38317
|
const matches = FLOW_PRAGMA_REGEX.exec(comment.value);
|
|
38585
|
-
if (matches)
|
|
38586
|
-
|
|
38587
|
-
|
|
38588
|
-
else throw new Error("Unexpected flow pragma");
|
|
38589
|
-
}
|
|
38318
|
+
if (matches) if ("flow" === matches[1]) this.flowPragma = "flow";
|
|
38319
|
+
else if ("noflow" === matches[1]) this.flowPragma = "noflow";
|
|
38320
|
+
else throw new Error("Unexpected flow pragma");
|
|
38590
38321
|
}
|
|
38591
38322
|
super.addComment(comment);
|
|
38592
38323
|
}
|
|
@@ -38658,8 +38389,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
38658
38389
|
if (this.match(80)) return this.flowParseDeclareClass(node);
|
|
38659
38390
|
if (this.match(68)) return this.flowParseDeclareFunction(node);
|
|
38660
38391
|
if (this.match(74)) return this.flowParseDeclareVariable(node);
|
|
38661
|
-
if (this.eatContextual(127))
|
|
38662
|
-
|
|
38392
|
+
if (this.eatContextual(127)) if (this.match(16)) return this.flowParseDeclareModuleExports(node);
|
|
38393
|
+
else {
|
|
38663
38394
|
if (insideModule) this.raise(FlowErrors.NestedDeclareModule, this.state.lastTokStartLoc);
|
|
38664
38395
|
return this.flowParseDeclareModule(node);
|
|
38665
38396
|
}
|
|
@@ -39282,12 +39013,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
39282
39013
|
{
|
|
39283
39014
|
const node = this.startNode();
|
|
39284
39015
|
this.next();
|
|
39285
|
-
if (!this.match(11) && !this.match(21)) {
|
|
39286
|
-
|
|
39287
|
-
|
|
39288
|
-
|
|
39289
|
-
} else isGroupedType = true;
|
|
39290
|
-
}
|
|
39016
|
+
if (!this.match(11) && !this.match(21)) if (tokenIsIdentifier(this.state.type) || this.match(78)) {
|
|
39017
|
+
const token = this.lookahead().type;
|
|
39018
|
+
isGroupedType = 17 !== token && 14 !== token;
|
|
39019
|
+
} else isGroupedType = true;
|
|
39291
39020
|
if (isGroupedType) {
|
|
39292
39021
|
this.state.noAnonFunctionType = false;
|
|
39293
39022
|
type = this.flowParseType();
|
|
@@ -39468,10 +39197,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
39468
39197
|
return variance;
|
|
39469
39198
|
}
|
|
39470
39199
|
parseFunctionBody(node, allowExpressionBody, isMethod = false) {
|
|
39471
|
-
if (allowExpressionBody)
|
|
39472
|
-
this.forwardNoArrowParamsConversionAt(node, ()=>super.parseFunctionBody(node, true, isMethod));
|
|
39473
|
-
return;
|
|
39474
|
-
}
|
|
39200
|
+
if (allowExpressionBody) return void this.forwardNoArrowParamsConversionAt(node, ()=>super.parseFunctionBody(node, true, isMethod));
|
|
39475
39201
|
super.parseFunctionBody(node, false, isMethod);
|
|
39476
39202
|
}
|
|
39477
39203
|
parseFunctionBodyAndFinish(node, type, isMethod = false) {
|
|
@@ -39505,8 +39231,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
39505
39231
|
if (this.match(80) || tokenIsIdentifier(this.state.type) || this.match(68) || this.match(74) || this.match(82)) return this.flowParseDeclare(node);
|
|
39506
39232
|
} else if (tokenIsIdentifier(this.state.type)) {
|
|
39507
39233
|
if ("interface" === expr.name) return this.flowParseInterface(node);
|
|
39508
|
-
if ("type" === expr.name) return this.flowParseTypeAlias(node);
|
|
39509
|
-
if ("opaque" === expr.name) return this.flowParseOpaqueType(node, false);
|
|
39234
|
+
else if ("type" === expr.name) return this.flowParseTypeAlias(node);
|
|
39235
|
+
else if ("opaque" === expr.name) return this.flowParseOpaqueType(node, false);
|
|
39510
39236
|
}
|
|
39511
39237
|
}
|
|
39512
39238
|
return super.parseExpressionStatement(node, expr, decorators);
|
|
@@ -39717,10 +39443,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
39717
39443
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
39718
39444
|
if (123 === code && 124 === next) this.finishOp(6, 2);
|
|
39719
39445
|
else if (this.state.inType && (62 === code || 60 === code)) this.finishOp(62 === code ? 48 : 47, 1);
|
|
39720
|
-
else if (this.state.inType && 63 === code)
|
|
39721
|
-
|
|
39722
|
-
|
|
39723
|
-
} else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) {
|
|
39446
|
+
else if (this.state.inType && 63 === code) if (46 === next) this.finishOp(18, 2);
|
|
39447
|
+
else this.finishOp(17, 1);
|
|
39448
|
+
else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) {
|
|
39724
39449
|
this.state.pos += 2;
|
|
39725
39450
|
this.readIterator();
|
|
39726
39451
|
} else super.getTokenFromCode(code);
|
|
@@ -40117,10 +39842,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
40117
39842
|
}
|
|
40118
39843
|
readToken_pipe_amp(code) {
|
|
40119
39844
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
40120
|
-
if (124 === code && 125 === next)
|
|
40121
|
-
this.finishOp(9, 2);
|
|
40122
|
-
return;
|
|
40123
|
-
}
|
|
39845
|
+
if (124 === code && 125 === next) return void this.finishOp(9, 2);
|
|
40124
39846
|
super.readToken_pipe_amp(code);
|
|
40125
39847
|
}
|
|
40126
39848
|
parseTopLevel(file, program) {
|
|
@@ -40387,22 +40109,21 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
40387
40109
|
const strsLen = members.stringMembers.length;
|
|
40388
40110
|
const defaultedLen = members.defaultedMembers.length;
|
|
40389
40111
|
if (!boolsLen && !numsLen && !strsLen && !defaultedLen) return empty();
|
|
40390
|
-
if (boolsLen || numsLen) {
|
|
40391
|
-
|
|
40392
|
-
|
|
40393
|
-
|
|
40394
|
-
|
|
40395
|
-
|
|
40396
|
-
|
|
40397
|
-
|
|
40398
|
-
|
|
40399
|
-
|
|
40400
|
-
|
|
40401
|
-
|
|
40402
|
-
|
|
40403
|
-
|
|
40404
|
-
|
|
40405
|
-
}
|
|
40112
|
+
if (boolsLen || numsLen) if (numsLen || strsLen || !(boolsLen >= defaultedLen)) if (boolsLen || strsLen || !(numsLen >= defaultedLen)) {
|
|
40113
|
+
this.raise(FlowErrors.EnumInconsistentMemberValues, nameLoc, {
|
|
40114
|
+
enumName
|
|
40115
|
+
});
|
|
40116
|
+
return empty();
|
|
40117
|
+
} else {
|
|
40118
|
+
for (const member of members.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(member.loc.start, {
|
|
40119
|
+
enumName,
|
|
40120
|
+
memberName: member.id.name
|
|
40121
|
+
});
|
|
40122
|
+
node.members = members.numberMembers;
|
|
40123
|
+
this.expect(8);
|
|
40124
|
+
return this.finishNode(node, "EnumNumberBody");
|
|
40125
|
+
}
|
|
40126
|
+
else {
|
|
40406
40127
|
for (const member of members.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(member.loc.start, {
|
|
40407
40128
|
enumName,
|
|
40408
40129
|
memberName: member.id.name
|
|
@@ -41019,24 +40740,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
41019
40740
|
}
|
|
41020
40741
|
getTokenFromCode(code) {
|
|
41021
40742
|
const context = this.curContext();
|
|
41022
|
-
if (context === types.j_expr)
|
|
41023
|
-
this.jsxReadToken();
|
|
41024
|
-
return;
|
|
41025
|
-
}
|
|
40743
|
+
if (context === types.j_expr) return void this.jsxReadToken();
|
|
41026
40744
|
if (context === types.j_oTag || context === types.j_cTag) {
|
|
41027
|
-
if (isIdentifierStart(code))
|
|
41028
|
-
this.jsxReadWord();
|
|
41029
|
-
return;
|
|
41030
|
-
}
|
|
40745
|
+
if (isIdentifierStart(code)) return void this.jsxReadWord();
|
|
41031
40746
|
if (62 === code) {
|
|
41032
40747
|
++this.state.pos;
|
|
41033
40748
|
this.finishToken(144);
|
|
41034
40749
|
return;
|
|
41035
40750
|
}
|
|
41036
|
-
if ((34 === code || 39 === code) && context === types.j_oTag)
|
|
41037
|
-
this.jsxReadString(code);
|
|
41038
|
-
return;
|
|
41039
|
-
}
|
|
40751
|
+
if ((34 === code || 39 === code) && context === types.j_oTag) return void this.jsxReadString(code);
|
|
41040
40752
|
}
|
|
41041
40753
|
if (60 === code && this.state.canStartJSXElement && 33 !== this.input.charCodeAt(this.state.pos + 1)) {
|
|
41042
40754
|
++this.state.pos;
|
|
@@ -41133,10 +40845,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
41133
40845
|
}
|
|
41134
40846
|
return true;
|
|
41135
40847
|
}
|
|
41136
|
-
if (128 & bindingType && (8 & type) > 0)
|
|
41137
|
-
|
|
41138
|
-
return false;
|
|
41139
|
-
}
|
|
40848
|
+
if (128 & bindingType && (8 & type) > 0) if (2 & scope.names.get(name)) return !!(1 & bindingType);
|
|
40849
|
+
else return false;
|
|
41140
40850
|
if (2 & bindingType && (1 & type) > 0) return true;
|
|
41141
40851
|
return super.isRedeclaredInScope(scope, name, bindingType);
|
|
41142
40852
|
}
|
|
@@ -41219,7 +40929,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
41219
40929
|
const end = exprList.length - 1;
|
|
41220
40930
|
for(let i = 0; i <= end; i++){
|
|
41221
40931
|
const elt = exprList[i];
|
|
41222
|
-
if (
|
|
40932
|
+
if (elt) {
|
|
41223
40933
|
if ("SpreadElement" === elt.type) {
|
|
41224
40934
|
elt.type = "RestElement";
|
|
41225
40935
|
const arg = elt.argument;
|
|
@@ -41398,10 +41108,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
41398
41108
|
if ("Identifier" === type) {
|
|
41399
41109
|
this.checkIdentifier(expression, binding, strictModeChanged);
|
|
41400
41110
|
const { name } = expression;
|
|
41401
|
-
if (checkClashes)
|
|
41402
|
-
|
|
41403
|
-
else checkClashes.add(name);
|
|
41404
|
-
}
|
|
41111
|
+
if (checkClashes) if (checkClashes.has(name)) this.raise(Errors.ParamDupe, expression);
|
|
41112
|
+
else checkClashes.add(name);
|
|
41405
41113
|
return;
|
|
41406
41114
|
}
|
|
41407
41115
|
const validity = this.isValidLVal(type, !(hasParenthesizedAncestor || null != (_expression$extra = expression.extra) && _expression$extra.parenthesized) && "AssignmentExpression" === ancestor.type, binding);
|
|
@@ -41427,14 +41135,12 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
41427
41135
|
} else if (val) this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
|
|
41428
41136
|
}
|
|
41429
41137
|
checkIdentifier(at, bindingType, strictModeChanged = false) {
|
|
41430
|
-
if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) {
|
|
41431
|
-
|
|
41432
|
-
|
|
41433
|
-
|
|
41434
|
-
|
|
41435
|
-
|
|
41436
|
-
});
|
|
41437
|
-
}
|
|
41138
|
+
if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) if (64 === bindingType) this.raise(Errors.StrictEvalArguments, at, {
|
|
41139
|
+
referenceName: at.name
|
|
41140
|
+
});
|
|
41141
|
+
else this.raise(Errors.StrictEvalArgumentsBinding, at, {
|
|
41142
|
+
bindingName: at.name
|
|
41143
|
+
});
|
|
41438
41144
|
if (8192 & bindingType && "let" === at.name) this.raise(Errors.LetInLexicalBinding, at);
|
|
41439
41145
|
if (!(64 & bindingType)) this.declareNameFromIdentifier(at, bindingType);
|
|
41440
41146
|
}
|
|
@@ -41662,17 +41368,16 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
41662
41368
|
const { startLoc } = this.state;
|
|
41663
41369
|
const modifier = this.tsParseModifier(allowedModifiers.concat(null != disallowedModifiers ? disallowedModifiers : []), stopOnStartOfClassStaticBlock);
|
|
41664
41370
|
if (!modifier) break;
|
|
41665
|
-
if (tsIsAccessModifier(modifier)) {
|
|
41666
|
-
|
|
41667
|
-
|
|
41668
|
-
|
|
41669
|
-
|
|
41670
|
-
|
|
41671
|
-
|
|
41672
|
-
|
|
41673
|
-
|
|
41674
|
-
|
|
41675
|
-
} else if (tsIsVarianceAnnotations(modifier)) {
|
|
41371
|
+
if (tsIsAccessModifier(modifier)) if (modified.accessibility) this.raise(TSErrors.DuplicateAccessibilityModifier, startLoc, {
|
|
41372
|
+
modifier
|
|
41373
|
+
});
|
|
41374
|
+
else {
|
|
41375
|
+
enforceOrder(startLoc, modifier, modifier, "override");
|
|
41376
|
+
enforceOrder(startLoc, modifier, modifier, "static");
|
|
41377
|
+
enforceOrder(startLoc, modifier, modifier, "readonly");
|
|
41378
|
+
modified.accessibility = modifier;
|
|
41379
|
+
}
|
|
41380
|
+
else if (tsIsVarianceAnnotations(modifier)) {
|
|
41676
41381
|
if (modified[modifier]) this.raise(TSErrors.DuplicateModifier, startLoc, {
|
|
41677
41382
|
modifier
|
|
41678
41383
|
});
|
|
@@ -41739,10 +41444,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
41739
41444
|
return result;
|
|
41740
41445
|
}
|
|
41741
41446
|
tsParseBracketedList(kind, parseElement, bracket, skipFirstToken, refTrailingCommaPos) {
|
|
41742
|
-
if (!skipFirstToken)
|
|
41743
|
-
|
|
41744
|
-
else this.expect(47);
|
|
41745
|
-
}
|
|
41447
|
+
if (!skipFirstToken) if (bracket) this.expect(0);
|
|
41448
|
+
else this.expect(47);
|
|
41746
41449
|
const result = this.tsParseDelimitedList(kind, parseElement, refTrailingCommaPos);
|
|
41747
41450
|
if (bracket) this.expect(3);
|
|
41748
41451
|
else this.expect(48);
|
|
@@ -41768,14 +41471,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
41768
41471
|
}
|
|
41769
41472
|
tsParseEntityName(flags) {
|
|
41770
41473
|
let entity;
|
|
41771
|
-
if (1 & flags && this.match(78))
|
|
41772
|
-
|
|
41773
|
-
|
|
41774
|
-
|
|
41775
|
-
|
|
41776
|
-
|
|
41777
|
-
|
|
41778
|
-
} else entity = this.parseIdentifier(!!(1 & flags));
|
|
41474
|
+
if (1 & flags && this.match(78)) if (2 & flags) entity = this.parseIdentifier(true);
|
|
41475
|
+
else {
|
|
41476
|
+
const node = this.startNode();
|
|
41477
|
+
this.next();
|
|
41478
|
+
entity = this.finishNode(node, "ThisExpression");
|
|
41479
|
+
}
|
|
41480
|
+
else entity = this.parseIdentifier(!!(1 & flags));
|
|
41779
41481
|
while(this.eat(16)){
|
|
41780
41482
|
const node = this.startNodeAtNode(entity);
|
|
41781
41483
|
node.left = entity;
|
|
@@ -42688,7 +42390,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
42688
42390
|
case "module":
|
|
42689
42391
|
if (this.tsCheckLineTerminator(next)) {
|
|
42690
42392
|
if (this.match(134)) return this.tsParseAmbientExternalModuleDeclaration(node);
|
|
42691
|
-
if (tokenIsIdentifier(this.state.type)) {
|
|
42393
|
+
else if (tokenIsIdentifier(this.state.type)) {
|
|
42692
42394
|
node.kind = "module";
|
|
42693
42395
|
return this.tsParseModuleOrNamespaceDeclaration(node);
|
|
42694
42396
|
}
|
|
@@ -42996,7 +42698,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
42996
42698
|
const { isAmbientContext } = this.state;
|
|
42997
42699
|
const declaration = super.parseVarStatement(node, kind, allowMissingInitializer || isAmbientContext);
|
|
42998
42700
|
if (!isAmbientContext) return declaration;
|
|
42999
|
-
for (const { id, init } of declaration.declarations)if (
|
|
42701
|
+
for (const { id, init } of declaration.declarations)if (init) {
|
|
43000
42702
|
if ("const" !== kind || id.typeAnnotation) this.raise(TSErrors.InitializerNotAllowedInAmbientContext, init);
|
|
43001
42703
|
else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) this.raise(TSErrors.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, init);
|
|
43002
42704
|
}
|
|
@@ -43410,14 +43112,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
43410
43112
|
}
|
|
43411
43113
|
getTokenFromCode(code) {
|
|
43412
43114
|
if (this.state.inType) {
|
|
43413
|
-
if (62 === code)
|
|
43414
|
-
|
|
43415
|
-
return;
|
|
43416
|
-
}
|
|
43417
|
-
if (60 === code) {
|
|
43418
|
-
this.finishOp(47, 1);
|
|
43419
|
-
return;
|
|
43420
|
-
}
|
|
43115
|
+
if (62 === code) return void this.finishOp(48, 1);
|
|
43116
|
+
if (60 === code) return void this.finishOp(47, 1);
|
|
43421
43117
|
}
|
|
43422
43118
|
super.getTokenFromCode(code);
|
|
43423
43119
|
}
|
|
@@ -43726,14 +43422,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
43726
43422
|
this.next();
|
|
43727
43423
|
const oldStrict = this.state.strict;
|
|
43728
43424
|
const placeholder = this.parsePlaceholder("Identifier");
|
|
43729
|
-
if (placeholder)
|
|
43730
|
-
|
|
43731
|
-
|
|
43732
|
-
|
|
43733
|
-
|
|
43734
|
-
|
|
43735
|
-
|
|
43736
|
-
} else this.parseClassId(node, isStatement, optionalId);
|
|
43425
|
+
if (placeholder) if (this.match(81) || this.match(133) || this.match(5)) node.id = placeholder;
|
|
43426
|
+
else if (optionalId || !isStatement) {
|
|
43427
|
+
node.id = null;
|
|
43428
|
+
node.body = this.finishPlaceholder(placeholder, "ClassBody");
|
|
43429
|
+
return this.finishNode(node, type);
|
|
43430
|
+
} else throw this.raise(PlaceholderErrors.ClassNameIsRequired, this.state.startLoc);
|
|
43431
|
+
else this.parseClassId(node, isStatement, optionalId);
|
|
43737
43432
|
super.parseClassSuper(node);
|
|
43738
43433
|
node.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!node.superClass, oldStrict);
|
|
43739
43434
|
return this.finishNode(node, type);
|
|
@@ -43912,15 +43607,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
43912
43607
|
const key = prop.key;
|
|
43913
43608
|
const name = "Identifier" === key.type ? key.name : key.value;
|
|
43914
43609
|
if ("__proto__" === name) {
|
|
43915
|
-
if (isRecord)
|
|
43916
|
-
|
|
43917
|
-
|
|
43918
|
-
}
|
|
43919
|
-
if (protoRef.used) {
|
|
43920
|
-
if (refExpressionErrors) {
|
|
43921
|
-
if (null === refExpressionErrors.doubleProtoLoc) refExpressionErrors.doubleProtoLoc = key.loc.start;
|
|
43922
|
-
} else this.raise(Errors.DuplicateProto, key);
|
|
43923
|
-
}
|
|
43610
|
+
if (isRecord) return void this.raise(Errors.RecordNoProto, key);
|
|
43611
|
+
if (protoRef.used) if (refExpressionErrors) {
|
|
43612
|
+
if (null === refExpressionErrors.doubleProtoLoc) refExpressionErrors.doubleProtoLoc = key.loc.start;
|
|
43613
|
+
} else this.raise(Errors.DuplicateProto, key);
|
|
43924
43614
|
protoRef.used = true;
|
|
43925
43615
|
}
|
|
43926
43616
|
}
|
|
@@ -44338,10 +44028,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
44338
44028
|
node = this.startNode();
|
|
44339
44029
|
this.next();
|
|
44340
44030
|
if (this.match(16)) return this.parseImportMetaProperty(node);
|
|
44341
|
-
if (this.match(10))
|
|
44342
|
-
|
|
44343
|
-
return this.finishNode(node, "Import");
|
|
44344
|
-
}
|
|
44031
|
+
if (this.match(10)) if (256 & this.optionFlags) return this.parseImportCall(node);
|
|
44032
|
+
else return this.finishNode(node, "Import");
|
|
44345
44033
|
this.raise(Errors.UnsupportedImport, this.state.lastTokStartLoc);
|
|
44346
44034
|
return this.finishNode(node, "Import");
|
|
44347
44035
|
case 78:
|
|
@@ -44447,10 +44135,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
44447
44135
|
this.next();
|
|
44448
44136
|
return this.parseAsyncFunctionExpression(this.startNodeAtNode(id));
|
|
44449
44137
|
}
|
|
44450
|
-
if (tokenIsIdentifier(type))
|
|
44451
|
-
|
|
44452
|
-
return id;
|
|
44453
|
-
}
|
|
44138
|
+
if (tokenIsIdentifier(type)) if (61 === this.lookaheadCharCode()) return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id));
|
|
44139
|
+
else return id;
|
|
44454
44140
|
if (90 === type) {
|
|
44455
44141
|
this.resetPreviousNodeTrailingComments(id);
|
|
44456
44142
|
return this.parseDo(this.startNodeAtNode(id), true);
|
|
@@ -44487,12 +44173,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
44487
44173
|
return this.finishTopicReference(node, startLoc, pipeProposal, tokenType);
|
|
44488
44174
|
}
|
|
44489
44175
|
finishTopicReference(node, startLoc, pipeProposal, tokenType) {
|
|
44490
|
-
if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) {
|
|
44491
|
-
if (
|
|
44492
|
-
|
|
44493
|
-
|
|
44494
|
-
|
|
44495
|
-
}
|
|
44176
|
+
if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) if ("hack" === pipeProposal) {
|
|
44177
|
+
if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PipeTopicUnbound, startLoc);
|
|
44178
|
+
this.registerTopicReference();
|
|
44179
|
+
return this.finishNode(node, "TopicReference");
|
|
44180
|
+
} else {
|
|
44496
44181
|
if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PrimaryTopicNotAllowed, startLoc);
|
|
44497
44182
|
this.registerTopicReference();
|
|
44498
44183
|
return this.finishNode(node, "PipelinePrimaryTopicReference");
|
|
@@ -45114,39 +44799,21 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
45114
44799
|
checkReservedWord(word, startLoc, checkKeywords, isBinding) {
|
|
45115
44800
|
if (word.length > 10) return;
|
|
45116
44801
|
if (!canBeReservedWord(word)) return;
|
|
45117
|
-
if (checkKeywords && isKeyword(word)) {
|
|
45118
|
-
|
|
45119
|
-
|
|
45120
|
-
});
|
|
45121
|
-
return;
|
|
45122
|
-
}
|
|
44802
|
+
if (checkKeywords && isKeyword(word)) return void this.raise(Errors.UnexpectedKeyword, startLoc, {
|
|
44803
|
+
keyword: word
|
|
44804
|
+
});
|
|
45123
44805
|
const reservedTest = this.state.strict ? isBinding ? isStrictBindReservedWord : isStrictReservedWord : isReservedWord;
|
|
45124
|
-
if (reservedTest(word, this.inModule)) {
|
|
45125
|
-
|
|
45126
|
-
|
|
45127
|
-
});
|
|
45128
|
-
return;
|
|
45129
|
-
}
|
|
44806
|
+
if (reservedTest(word, this.inModule)) return void this.raise(Errors.UnexpectedReservedWord, startLoc, {
|
|
44807
|
+
reservedWord: word
|
|
44808
|
+
});
|
|
45130
44809
|
if ("yield" === word) {
|
|
45131
|
-
if (this.prodParam.hasYield)
|
|
45132
|
-
this.raise(Errors.YieldBindingIdentifier, startLoc);
|
|
45133
|
-
return;
|
|
45134
|
-
}
|
|
44810
|
+
if (this.prodParam.hasYield) return void this.raise(Errors.YieldBindingIdentifier, startLoc);
|
|
45135
44811
|
} else if ("await" === word) {
|
|
45136
|
-
if (this.prodParam.hasAwait)
|
|
45137
|
-
|
|
45138
|
-
return;
|
|
45139
|
-
}
|
|
45140
|
-
if (this.scope.inStaticBlock) {
|
|
45141
|
-
this.raise(Errors.AwaitBindingIdentifierInStaticBlock, startLoc);
|
|
45142
|
-
return;
|
|
45143
|
-
}
|
|
44812
|
+
if (this.prodParam.hasAwait) return void this.raise(Errors.AwaitBindingIdentifier, startLoc);
|
|
44813
|
+
if (this.scope.inStaticBlock) return void this.raise(Errors.AwaitBindingIdentifierInStaticBlock, startLoc);
|
|
45144
44814
|
this.expressionScope.recordAsyncArrowParametersError(startLoc);
|
|
45145
44815
|
} else if ("arguments" === word) {
|
|
45146
|
-
if (this.scope.inClassAndNotInNonArrowFunction)
|
|
45147
|
-
this.raise(Errors.ArgumentsInClass, startLoc);
|
|
45148
|
-
return;
|
|
45149
|
-
}
|
|
44816
|
+
if (this.scope.inClassAndNotInNonArrowFunction) return void this.raise(Errors.ArgumentsInClass, startLoc);
|
|
45150
44817
|
}
|
|
45151
44818
|
}
|
|
45152
44819
|
recordAwaitIfAllowed() {
|
|
@@ -45158,10 +44825,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
45158
44825
|
const node = this.startNodeAt(startLoc);
|
|
45159
44826
|
this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter, node);
|
|
45160
44827
|
if (this.eat(55)) this.raise(Errors.ObsoleteAwaitStar, node);
|
|
45161
|
-
if (!this.scope.inFunction && !(1 & this.optionFlags))
|
|
45162
|
-
|
|
45163
|
-
else this.sawUnambiguousESM = true;
|
|
45164
|
-
}
|
|
44828
|
+
if (!this.scope.inFunction && !(1 & this.optionFlags)) if (this.isAmbiguousAwait()) this.ambiguousScriptDifferentAst = true;
|
|
44829
|
+
else this.sawUnambiguousESM = true;
|
|
45165
44830
|
if (!this.state.soloAwait) node.argument = this.parseMaybeUnary(null, true);
|
|
45166
44831
|
return this.finishNode(node, "AwaitExpression");
|
|
45167
44832
|
}
|
|
@@ -46075,15 +45740,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
46075
45740
|
const decl = this.startNode();
|
|
46076
45741
|
this.parseVarId(decl, kind);
|
|
46077
45742
|
decl.init = this.eat(29) ? isFor ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null;
|
|
46078
|
-
if (null === decl.init && !allowMissingInitializer) {
|
|
46079
|
-
if ("
|
|
46080
|
-
|
|
46081
|
-
kind
|
|
46082
|
-
});
|
|
46083
|
-
} else this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
|
|
46084
|
-
kind: "destructuring"
|
|
45743
|
+
if (null === decl.init && !allowMissingInitializer) if ("Identifier" === decl.id.type || isFor && (this.match(58) || this.isContextual(102))) {
|
|
45744
|
+
if (("const" === kind || "using" === kind || "await using" === kind) && !(this.match(58) || this.isContextual(102))) this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
|
|
45745
|
+
kind
|
|
46085
45746
|
});
|
|
46086
|
-
}
|
|
45747
|
+
} else this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
|
|
45748
|
+
kind: "destructuring"
|
|
45749
|
+
});
|
|
46087
45750
|
declarations.push(this.finishNode(decl, "VariableDeclarator"));
|
|
46088
45751
|
if (!this.eat(12)) break;
|
|
46089
45752
|
}
|
|
@@ -46225,10 +45888,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
46225
45888
|
const isStatic = this.isContextual(106);
|
|
46226
45889
|
if (isStatic) {
|
|
46227
45890
|
if (this.parseClassMemberFromModifier(classBody, member)) return;
|
|
46228
|
-
if (this.eat(5))
|
|
46229
|
-
this.parseClassStaticBlock(classBody, member);
|
|
46230
|
-
return;
|
|
46231
|
-
}
|
|
45891
|
+
if (this.eat(5)) return void this.parseClassStaticBlock(classBody, member);
|
|
46232
45892
|
}
|
|
46233
45893
|
this.parseClassMemberWithIsStatic(classBody, member, state, isStatic);
|
|
46234
45894
|
}
|
|
@@ -46246,10 +45906,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
46246
45906
|
method.kind = "method";
|
|
46247
45907
|
const isPrivateName = this.match(139);
|
|
46248
45908
|
this.parseClassElementName(method);
|
|
46249
|
-
if (isPrivateName)
|
|
46250
|
-
this.pushClassPrivateMethod(classBody, privateMethod, true, false);
|
|
46251
|
-
return;
|
|
46252
|
-
}
|
|
45909
|
+
if (isPrivateName) return void this.pushClassPrivateMethod(classBody, privateMethod, true, false);
|
|
46253
45910
|
if (this.isNonstaticConstructor(publicMethod)) this.raise(Errors.ConstructorIsGenerator, publicMethod.key);
|
|
46254
45911
|
this.pushClassMethod(classBody, publicMethod, true, false, false, false);
|
|
46255
45912
|
return;
|
|
@@ -46262,10 +45919,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
46262
45919
|
this.parsePostMemberNameModifiers(publicMember);
|
|
46263
45920
|
if (this.isClassMethod()) {
|
|
46264
45921
|
method.kind = "method";
|
|
46265
|
-
if (isPrivate)
|
|
46266
|
-
this.pushClassPrivateMethod(classBody, privateMethod, false, false);
|
|
46267
|
-
return;
|
|
46268
|
-
}
|
|
45922
|
+
if (isPrivate) return void this.pushClassPrivateMethod(classBody, privateMethod, false, false);
|
|
46269
45923
|
const isConstructor = this.isNonstaticConstructor(publicMethod);
|
|
46270
45924
|
let allowsDirectSuper = false;
|
|
46271
45925
|
if (isConstructor) {
|
|
@@ -46276,36 +45930,31 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
46276
45930
|
allowsDirectSuper = state.hadSuperClass;
|
|
46277
45931
|
}
|
|
46278
45932
|
this.pushClassMethod(classBody, publicMethod, false, false, isConstructor, allowsDirectSuper);
|
|
46279
|
-
} else if (this.isClassProperty())
|
|
46280
|
-
|
|
46281
|
-
|
|
46282
|
-
|
|
46283
|
-
|
|
46284
|
-
|
|
46285
|
-
|
|
46286
|
-
|
|
46287
|
-
|
|
46288
|
-
|
|
46289
|
-
|
|
46290
|
-
|
|
46291
|
-
|
|
46292
|
-
|
|
46293
|
-
|
|
46294
|
-
|
|
46295
|
-
|
|
46296
|
-
|
|
46297
|
-
|
|
46298
|
-
|
|
46299
|
-
|
|
46300
|
-
this.parseClassElementName(publicMethod);
|
|
46301
|
-
if (isPrivate) this.pushClassPrivateMethod(classBody, privateMethod, false, false);
|
|
46302
|
-
else {
|
|
46303
|
-
if (this.isNonstaticConstructor(publicMethod)) this.raise(Errors.ConstructorIsAccessor, publicMethod.key);
|
|
46304
|
-
this.pushClassMethod(classBody, publicMethod, false, false, false, false);
|
|
46305
|
-
}
|
|
46306
|
-
this.checkGetterSetterParams(publicMethod);
|
|
45933
|
+
} else if (this.isClassProperty()) if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
|
|
45934
|
+
else this.pushClassProperty(classBody, publicProp);
|
|
45935
|
+
else if ("async" !== maybeContextualKw || this.isLineTerminator()) if ("get" !== maybeContextualKw && "set" !== maybeContextualKw || this.match(55) && this.isLineTerminator()) if ("accessor" !== maybeContextualKw || this.isLineTerminator()) if (this.isLineTerminator()) if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
|
|
45936
|
+
else this.pushClassProperty(classBody, publicProp);
|
|
45937
|
+
else this.unexpected();
|
|
45938
|
+
else {
|
|
45939
|
+
this.expectPlugin("decoratorAutoAccessors");
|
|
45940
|
+
this.resetPreviousNodeTrailingComments(key);
|
|
45941
|
+
const isPrivate = this.match(139);
|
|
45942
|
+
this.parseClassElementName(publicProp);
|
|
45943
|
+
this.pushClassAccessorProperty(classBody, accessorProp, isPrivate);
|
|
45944
|
+
}
|
|
45945
|
+
else {
|
|
45946
|
+
this.resetPreviousNodeTrailingComments(key);
|
|
45947
|
+
method.kind = maybeContextualKw;
|
|
45948
|
+
const isPrivate = this.match(139);
|
|
45949
|
+
this.parseClassElementName(publicMethod);
|
|
45950
|
+
if (isPrivate) this.pushClassPrivateMethod(classBody, privateMethod, false, false);
|
|
45951
|
+
else {
|
|
45952
|
+
if (this.isNonstaticConstructor(publicMethod)) this.raise(Errors.ConstructorIsAccessor, publicMethod.key);
|
|
45953
|
+
this.pushClassMethod(classBody, publicMethod, false, false, false, false);
|
|
46307
45954
|
}
|
|
46308
|
-
|
|
45955
|
+
this.checkGetterSetterParams(publicMethod);
|
|
45956
|
+
}
|
|
45957
|
+
else {
|
|
46309
45958
|
this.resetPreviousNodeTrailingComments(key);
|
|
46310
45959
|
const isGenerator = this.eat(55);
|
|
46311
45960
|
if (publicMember.optional) this.unexpected(maybeQuestionTokenStartLoc);
|
|
@@ -46635,12 +46284,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
46635
46284
|
else if ("AssignmentPattern" === node.type) this.checkDeclaration(node.left);
|
|
46636
46285
|
}
|
|
46637
46286
|
checkDuplicateExports(node, exportName) {
|
|
46638
|
-
if (this.exportedIdentifiers.has(exportName))
|
|
46639
|
-
|
|
46640
|
-
|
|
46641
|
-
|
|
46642
|
-
});
|
|
46643
|
-
}
|
|
46287
|
+
if (this.exportedIdentifiers.has(exportName)) if ("default" === exportName) this.raise(Errors.DuplicateDefaultExport, node);
|
|
46288
|
+
else this.raise(Errors.DuplicateExport, node, {
|
|
46289
|
+
exportName
|
|
46290
|
+
});
|
|
46644
46291
|
this.exportedIdentifiers.add(exportName);
|
|
46645
46292
|
}
|
|
46646
46293
|
parseExportSpecifiers(isInTypeExport) {
|
|
@@ -47406,13 +47053,12 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
47406
47053
|
if ("string" == typeof replacement) replacement = stringLiteral(replacement);
|
|
47407
47054
|
if (!replacement || !isStringLiteral(replacement)) throw new Error("Expected string substitution");
|
|
47408
47055
|
} else if ("statement" === placeholder.type) {
|
|
47409
|
-
if (void 0 === index) {
|
|
47410
|
-
if (replacement)
|
|
47411
|
-
|
|
47412
|
-
|
|
47413
|
-
|
|
47414
|
-
|
|
47415
|
-
} else if (replacement && !Array.isArray(replacement)) {
|
|
47056
|
+
if (void 0 === index) if (replacement) {
|
|
47057
|
+
if (Array.isArray(replacement)) replacement = blockStatement(replacement);
|
|
47058
|
+
else if ("string" == typeof replacement) replacement = expressionStatement(identifier(replacement));
|
|
47059
|
+
else if (!isStatement(replacement)) replacement = expressionStatement(replacement);
|
|
47060
|
+
} else replacement = emptyStatement();
|
|
47061
|
+
else if (replacement && !Array.isArray(replacement)) {
|
|
47416
47062
|
if ("string" == typeof replacement) replacement = identifier(replacement);
|
|
47417
47063
|
if (!isStatement(replacement)) replacement = expressionStatement(replacement);
|
|
47418
47064
|
}
|
|
@@ -47437,11 +47083,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
47437
47083
|
set(parent, key, replacement);
|
|
47438
47084
|
} else {
|
|
47439
47085
|
const items = parent[key].slice();
|
|
47440
|
-
if ("statement" === placeholder.type || "param" === placeholder.type)
|
|
47441
|
-
|
|
47442
|
-
|
|
47443
|
-
|
|
47444
|
-
} else set(items, index, replacement);
|
|
47086
|
+
if ("statement" === placeholder.type || "param" === placeholder.type) if (null == replacement) items.splice(index, 1);
|
|
47087
|
+
else if (Array.isArray(replacement)) items.splice(index, 1, ...replacement);
|
|
47088
|
+
else set(items, index, replacement);
|
|
47089
|
+
else set(items, index, replacement);
|
|
47445
47090
|
validate(parent, key, items);
|
|
47446
47091
|
parent[key] = items;
|
|
47447
47092
|
}
|
|
@@ -47543,10 +47188,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
47543
47188
|
});
|
|
47544
47189
|
}
|
|
47545
47190
|
maybeQueue(path, notPriority) {
|
|
47546
|
-
if (this.queue)
|
|
47547
|
-
|
|
47548
|
-
else this.priorityQueue.push(path);
|
|
47549
|
-
}
|
|
47191
|
+
if (this.queue) if (notPriority) this.queue.push(path);
|
|
47192
|
+
else this.priorityQueue.push(path);
|
|
47550
47193
|
}
|
|
47551
47194
|
visitMultiple(container, parent, listKey) {
|
|
47552
47195
|
if (0 === container.length) return false;
|
|
@@ -47786,10 +47429,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
47786
47429
|
lastCommonIndex = i;
|
|
47787
47430
|
lastCommon = shouldMatch;
|
|
47788
47431
|
}
|
|
47789
|
-
if (lastCommon)
|
|
47790
|
-
|
|
47791
|
-
return lastCommon;
|
|
47792
|
-
}
|
|
47432
|
+
if (lastCommon) if (filter) return filter(lastCommon, lastCommonIndex, ancestries);
|
|
47433
|
+
else return lastCommon;
|
|
47793
47434
|
throw new Error("Couldn't find intersection");
|
|
47794
47435
|
}
|
|
47795
47436
|
function getAncestry() {
|
|
@@ -47991,14 +47632,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
47991
47632
|
if (!this.container) return;
|
|
47992
47633
|
if (this.node === this.container[this.key]) return;
|
|
47993
47634
|
if (Array.isArray(this.container)) {
|
|
47994
|
-
for(let i = 0; i < this.container.length; i++)if (this.container[i] === this.node)
|
|
47995
|
-
|
|
47996
|
-
return;
|
|
47997
|
-
}
|
|
47998
|
-
} else for (const key of Object.keys(this.container))if (this.container[key] === this.node) {
|
|
47999
|
-
setKey.call(this, key);
|
|
48000
|
-
return;
|
|
48001
|
-
}
|
|
47635
|
+
for(let i = 0; i < this.container.length; i++)if (this.container[i] === this.node) return void setKey.call(this, i);
|
|
47636
|
+
} else for (const key of Object.keys(this.container))if (this.container[key] === this.node) return void setKey.call(this, key);
|
|
48002
47637
|
this.key = null;
|
|
48003
47638
|
}
|
|
48004
47639
|
function _resyncList() {
|
|
@@ -48168,14 +47803,12 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
48168
47803
|
const inConstructor = thisEnvFn.isClassMethod({
|
|
48169
47804
|
kind: "constructor"
|
|
48170
47805
|
});
|
|
48171
|
-
if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty())
|
|
48172
|
-
|
|
48173
|
-
|
|
48174
|
-
|
|
48175
|
-
|
|
48176
|
-
|
|
48177
|
-
} else throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");
|
|
48178
|
-
}
|
|
47806
|
+
if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty()) if (arrowParent) thisEnvFn = arrowParent;
|
|
47807
|
+
else if (allowInsertArrow) {
|
|
47808
|
+
fnPath.replaceWith(callExpression(arrowFunctionExpression([], toExpression(fnPath.node)), []));
|
|
47809
|
+
thisEnvFn = fnPath.get("callee");
|
|
47810
|
+
fnPath = thisEnvFn.get("body");
|
|
47811
|
+
} else throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");
|
|
48179
47812
|
const { thisPaths, argumentsPaths, newTargetPaths, superProps, superCalls } = getScopeInformation(fnPath);
|
|
48180
47813
|
if (inConstructor && superCalls.length > 0) {
|
|
48181
47814
|
if (!allowInsertArrow) throw superCalls[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");
|
|
@@ -48408,10 +48041,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
48408
48041
|
})) return;
|
|
48409
48042
|
let curr = child.scope;
|
|
48410
48043
|
do {
|
|
48411
|
-
if (curr.hasOwnBinding("arguments"))
|
|
48412
|
-
curr.rename("arguments");
|
|
48413
|
-
return;
|
|
48414
|
-
}
|
|
48044
|
+
if (curr.hasOwnBinding("arguments")) return void curr.rename("arguments");
|
|
48415
48045
|
if (curr.path.isFunction() && !curr.path.isArrowFunctionExpression()) break;
|
|
48416
48046
|
}while (curr = curr.parent);
|
|
48417
48047
|
argumentsPaths.push(child);
|
|
@@ -48615,8 +48245,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
48615
48245
|
if (seen.has(node)) {
|
|
48616
48246
|
const existing = seen.get(node);
|
|
48617
48247
|
if (existing.resolved) return existing.value;
|
|
48618
|
-
deopt(path, state);
|
|
48619
|
-
return;
|
|
48248
|
+
return void deopt(path, state);
|
|
48620
48249
|
}
|
|
48621
48250
|
{
|
|
48622
48251
|
const item = {
|
|
@@ -48672,10 +48301,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
48672
48301
|
if (path.isReferencedIdentifier()) {
|
|
48673
48302
|
const binding = path.scope.getBinding(path.node.name);
|
|
48674
48303
|
if (binding) {
|
|
48675
|
-
if (binding.constantViolations.length > 0 || path.node.start < binding.path.node.end)
|
|
48676
|
-
deopt(binding.path, state);
|
|
48677
|
-
return;
|
|
48678
|
-
}
|
|
48304
|
+
if (binding.constantViolations.length > 0 || path.node.start < binding.path.node.end) return void deopt(binding.path, state);
|
|
48679
48305
|
if (binding.hasValue) return binding.value;
|
|
48680
48306
|
}
|
|
48681
48307
|
const name = path.node.name;
|
|
@@ -48685,9 +48311,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
48685
48311
|
return;
|
|
48686
48312
|
}
|
|
48687
48313
|
const resolved = path.resolve();
|
|
48688
|
-
if (resolved
|
|
48689
|
-
|
|
48690
|
-
return;
|
|
48314
|
+
if (resolved === path) return void deopt(path, state);
|
|
48315
|
+
return evaluateCached(resolved, state);
|
|
48691
48316
|
}
|
|
48692
48317
|
if (path.isUnaryExpression({
|
|
48693
48318
|
prefix: true
|
|
@@ -48715,11 +48340,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
48715
48340
|
const elems = path.get("elements");
|
|
48716
48341
|
for (const elem of elems){
|
|
48717
48342
|
const elemValue = elem.evaluate();
|
|
48718
|
-
if (elemValue.confident)
|
|
48719
|
-
|
|
48720
|
-
deopt(elemValue.deopt, state);
|
|
48721
|
-
return;
|
|
48722
|
-
}
|
|
48343
|
+
if (!elemValue.confident) return void deopt(elemValue.deopt, state);
|
|
48344
|
+
arr.push(elemValue.value);
|
|
48723
48345
|
}
|
|
48724
48346
|
return arr;
|
|
48725
48347
|
}
|
|
@@ -48727,26 +48349,17 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
48727
48349
|
const obj = {};
|
|
48728
48350
|
const props = path.get("properties");
|
|
48729
48351
|
for (const prop of props){
|
|
48730
|
-
if (prop.isObjectMethod() || prop.isSpreadElement())
|
|
48731
|
-
deopt(prop, state);
|
|
48732
|
-
return;
|
|
48733
|
-
}
|
|
48352
|
+
if (prop.isObjectMethod() || prop.isSpreadElement()) return void deopt(prop, state);
|
|
48734
48353
|
const keyPath = prop.get("key");
|
|
48735
48354
|
let key;
|
|
48736
48355
|
if (prop.node.computed) {
|
|
48737
48356
|
key = keyPath.evaluate();
|
|
48738
|
-
if (!key.confident)
|
|
48739
|
-
deopt(key.deopt, state);
|
|
48740
|
-
return;
|
|
48741
|
-
}
|
|
48357
|
+
if (!key.confident) return void deopt(key.deopt, state);
|
|
48742
48358
|
key = key.value;
|
|
48743
48359
|
} else key = keyPath.isIdentifier() ? keyPath.node.name : keyPath.node.value;
|
|
48744
48360
|
const valuePath = prop.get("value");
|
|
48745
48361
|
let value1 = valuePath.evaluate();
|
|
48746
|
-
if (!value1.confident)
|
|
48747
|
-
deopt(value1.deopt, state);
|
|
48748
|
-
return;
|
|
48749
|
-
}
|
|
48362
|
+
if (!value1.confident) return void deopt(value1.deopt, state);
|
|
48750
48363
|
value1 = value1.value;
|
|
48751
48364
|
obj[key] = value1;
|
|
48752
48365
|
}
|
|
@@ -48951,10 +48564,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
48951
48564
|
completions.forEach((c)=>{
|
|
48952
48565
|
if (c.path.isBreakStatement({
|
|
48953
48566
|
label: null
|
|
48954
|
-
}))
|
|
48955
|
-
|
|
48956
|
-
else c.path.remove();
|
|
48957
|
-
}
|
|
48567
|
+
})) if (reachable) c.path.replaceWith(unaryExpression("void", numericLiteral(0)));
|
|
48568
|
+
else c.path.remove();
|
|
48958
48569
|
});
|
|
48959
48570
|
}
|
|
48960
48571
|
function getStatementListCompletion(paths, context) {
|
|
@@ -49443,15 +49054,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
49443
49054
|
const typeAnnotationInferringNodes = new WeakSet();
|
|
49444
49055
|
function _getTypeAnnotation() {
|
|
49445
49056
|
const node = this.node;
|
|
49446
|
-
if (!node)
|
|
49447
|
-
|
|
49448
|
-
|
|
49449
|
-
|
|
49450
|
-
|
|
49451
|
-
|
|
49452
|
-
|
|
49453
|
-
return voidTypeAnnotation();
|
|
49454
|
-
}
|
|
49057
|
+
if (!node) if (!("init" === this.key && this.parentPath.isVariableDeclarator())) return;
|
|
49058
|
+
else {
|
|
49059
|
+
const declar = this.parentPath.parentPath;
|
|
49060
|
+
const declarParent = declar.parentPath;
|
|
49061
|
+
if ("left" === declar.key && declarParent.isForInStatement()) return stringTypeAnnotation();
|
|
49062
|
+
if ("left" === declar.key && declarParent.isForOfStatement()) return anyTypeAnnotation();
|
|
49063
|
+
return voidTypeAnnotation();
|
|
49455
49064
|
}
|
|
49456
49065
|
if (node.typeAnnotation) return node.typeAnnotation;
|
|
49457
49066
|
if (typeAnnotationInferringNodes.has(node)) return;
|
|
@@ -49475,10 +49084,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
49475
49084
|
if ("boolean" === baseName) return isBooleanTypeAnnotation(type);
|
|
49476
49085
|
if ("any" === baseName) return isAnyTypeAnnotation(type);
|
|
49477
49086
|
if ("mixed" === baseName) return isMixedTypeAnnotation(type);
|
|
49478
|
-
if ("empty" === baseName) return isEmptyTypeAnnotation(type);
|
|
49479
|
-
if ("void" === baseName) return isVoidTypeAnnotation(type);
|
|
49480
|
-
if (soft) return false;
|
|
49481
|
-
throw new Error(`Unknown base type ${baseName}`);
|
|
49087
|
+
else if ("empty" === baseName) return isEmptyTypeAnnotation(type);
|
|
49088
|
+
else if ("void" === baseName) return isVoidTypeAnnotation(type);
|
|
49089
|
+
else if (soft) return false;
|
|
49090
|
+
else throw new Error(`Unknown base type ${baseName}`);
|
|
49482
49091
|
}
|
|
49483
49092
|
function couldBeBaseType(name) {
|
|
49484
49093
|
const type = this.getTypeAnnotation();
|
|
@@ -49517,10 +49126,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
49517
49126
|
function _default(node) {
|
|
49518
49127
|
if (!this.isReferenced()) return;
|
|
49519
49128
|
const binding = this.scope.getBinding(node.name);
|
|
49520
|
-
if (binding)
|
|
49521
|
-
|
|
49522
|
-
return getTypeAnnotationBindingConstantViolations(binding, this, node.name);
|
|
49523
|
-
}
|
|
49129
|
+
if (binding) if (binding.identifier.typeAnnotation) return binding.identifier.typeAnnotation;
|
|
49130
|
+
else return getTypeAnnotationBindingConstantViolations(binding, this, node.name);
|
|
49524
49131
|
if ("undefined" === node.name) return voidTypeAnnotation();
|
|
49525
49132
|
if ("NaN" === node.name || "Infinity" === node.name) return numberTypeAnnotation();
|
|
49526
49133
|
node.name;
|
|
@@ -49793,10 +49400,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
49793
49400
|
callee = callee.resolve();
|
|
49794
49401
|
if (callee.isFunction()) {
|
|
49795
49402
|
const { node } = callee;
|
|
49796
|
-
if (node.async)
|
|
49797
|
-
|
|
49798
|
-
return genericTypeAnnotation(identifier("Promise"));
|
|
49799
|
-
}
|
|
49403
|
+
if (node.async) if (node.generator) return genericTypeAnnotation(identifier("AsyncIterator"));
|
|
49404
|
+
else return genericTypeAnnotation(identifier("Promise"));
|
|
49800
49405
|
if (node.generator) return genericTypeAnnotation(identifier("Iterator"));
|
|
49801
49406
|
if (callee.node.returnType) return callee.node.returnType;
|
|
49802
49407
|
}
|
|
@@ -50215,14 +49820,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
50215
49820
|
const scopes = this.scopes;
|
|
50216
49821
|
const scope = scopes.pop();
|
|
50217
49822
|
if (!scope) return;
|
|
50218
|
-
if (scope.path.isFunction())
|
|
50219
|
-
|
|
50220
|
-
|
|
50221
|
-
|
|
50222
|
-
|
|
50223
|
-
|
|
50224
|
-
|
|
50225
|
-
} else if (scope.path.isProgram()) return this.getNextScopeAttachmentParent();
|
|
49823
|
+
if (scope.path.isFunction()) if (!this.hasOwnParamBindings(scope)) return this.getNextScopeAttachmentParent();
|
|
49824
|
+
else {
|
|
49825
|
+
if (this.scope === scope) return;
|
|
49826
|
+
const bodies = scope.path.get("body").get("body");
|
|
49827
|
+
for(let i = 0; i < bodies.length; i++)if (!bodies[i].node._blockHoist) return bodies[i];
|
|
49828
|
+
}
|
|
49829
|
+
else if (scope.path.isProgram()) return this.getNextScopeAttachmentParent();
|
|
50226
49830
|
}
|
|
50227
49831
|
getNextScopeAttachmentParent() {
|
|
50228
49832
|
const scope = this.scopes.pop();
|
|
@@ -50329,7 +49933,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
50329
49933
|
const { node, parent } = this;
|
|
50330
49934
|
if (!isIdentifier(node, opts) && !isJSXMemberExpression(parent, opts)) {
|
|
50331
49935
|
if (!isJSXIdentifier(node, opts)) return false;
|
|
50332
|
-
if (isCompatTag(node.name)) return false;
|
|
49936
|
+
else if (isCompatTag(node.name)) return false;
|
|
50333
49937
|
}
|
|
50334
49938
|
return nodeIsReferenced(node, parent, this.parentPath.parent);
|
|
50335
49939
|
}
|
|
@@ -50602,12 +50206,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
50602
50206
|
for(let i = 0; i < nodes.length; i++){
|
|
50603
50207
|
const node = nodes[i];
|
|
50604
50208
|
let msg;
|
|
50605
|
-
if (node)
|
|
50606
|
-
|
|
50607
|
-
|
|
50608
|
-
|
|
50609
|
-
|
|
50610
|
-
} else msg = "has falsy node";
|
|
50209
|
+
if (node) if ("object" != typeof node) msg = "contains a non-object node";
|
|
50210
|
+
else if (node.type) {
|
|
50211
|
+
if (node instanceof _index.default) msg = "has a NodePath when it expected a raw object";
|
|
50212
|
+
} else msg = "without a type";
|
|
50213
|
+
else msg = "has falsy node";
|
|
50611
50214
|
if (msg) {
|
|
50612
50215
|
const type = Array.isArray(node) ? "array" : typeof node;
|
|
50613
50216
|
throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`);
|
|
@@ -50668,10 +50271,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
50668
50271
|
var _this$opts;
|
|
50669
50272
|
_assertUnremoved.call(this);
|
|
50670
50273
|
_context.resync.call(this);
|
|
50671
|
-
if (_callRemovalHooks.call(this))
|
|
50672
|
-
_markRemoved.call(this);
|
|
50673
|
-
return;
|
|
50674
|
-
}
|
|
50274
|
+
if (_callRemovalHooks.call(this)) return void _markRemoved.call(this);
|
|
50675
50275
|
if (!(null != (_this$opts = this.opts) && _this$opts.noScope)) _removeFromScope.call(this);
|
|
50676
50276
|
this.shareCommentsWithSiblings();
|
|
50677
50277
|
_remove.call(this);
|
|
@@ -51754,10 +51354,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
51754
51354
|
Scope (path, state) {
|
|
51755
51355
|
if (!path.scope.bindingIdentifierEquals(state.oldName, state.binding.identifier)) {
|
|
51756
51356
|
path.skip();
|
|
51757
|
-
if (path.isMethod())
|
|
51758
|
-
|
|
51759
|
-
else _context.requeueComputedKeyAndDecorators.call(path);
|
|
51760
|
-
}
|
|
51357
|
+
if (path.isMethod()) if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
|
|
51358
|
+
else _context.requeueComputedKeyAndDecorators.call(path);
|
|
51761
51359
|
}
|
|
51762
51360
|
},
|
|
51763
51361
|
ObjectProperty ({ node, scope }, state) {
|
|
@@ -51975,7 +51573,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
51975
51573
|
"exit"
|
|
51976
51574
|
]){
|
|
51977
51575
|
let fns = oldVisitor[phase];
|
|
51978
|
-
if (
|
|
51576
|
+
if (Array.isArray(fns)) {
|
|
51979
51577
|
fns = fns.map(function(fn) {
|
|
51980
51578
|
let newFn = fn;
|
|
51981
51579
|
if (state) newFn = function(path) {
|
|
@@ -52027,16 +51625,14 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
52027
51625
|
for (const phase of [
|
|
52028
51626
|
"enter",
|
|
52029
51627
|
"exit"
|
|
52030
|
-
])if (
|
|
51628
|
+
])if (src[phase]) dest[phase] = [].concat(dest[phase] || [], src[phase]);
|
|
52031
51629
|
}
|
|
52032
51630
|
const _environmentVisitor = {
|
|
52033
51631
|
FunctionParent (path) {
|
|
52034
51632
|
if (path.isArrowFunctionExpression()) return;
|
|
52035
51633
|
path.skip();
|
|
52036
|
-
if (path.isMethod())
|
|
52037
|
-
|
|
52038
|
-
else _context.requeueComputedKeyAndDecorators.call(path);
|
|
52039
|
-
}
|
|
51634
|
+
if (path.isMethod()) if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
|
|
51635
|
+
else _context.requeueComputedKeyAndDecorators.call(path);
|
|
52040
51636
|
},
|
|
52041
51637
|
Property (path) {
|
|
52042
51638
|
if (path.isObjectProperty()) return;
|
|
@@ -57850,15 +57446,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
57850
57446
|
if (hasOwn(node, "typeAnnotation")) newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
|
|
57851
57447
|
if (hasOwn(node, "decorators")) newNode.decorators = deep ? cloneIfNodeOrArray(node.decorators, true, withoutLoc, commentsCache) : node.decorators;
|
|
57852
57448
|
} else if (hasOwn(_index.NODE_FIELDS, type)) {
|
|
57853
|
-
for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field))
|
|
57854
|
-
|
|
57855
|
-
else newNode[field] = node[field];
|
|
57856
|
-
}
|
|
57449
|
+
for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field)) if (deep) newNode[field] = (0, _index2.isFile)(node) && "comments" === field ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
|
|
57450
|
+
else newNode[field] = node[field];
|
|
57857
57451
|
} else throw new Error(`Unknown node type: "${type}"`);
|
|
57858
|
-
if (hasOwn(node, "loc"))
|
|
57859
|
-
|
|
57860
|
-
else newNode.loc = node.loc;
|
|
57861
|
-
}
|
|
57452
|
+
if (hasOwn(node, "loc")) if (withoutLoc) newNode.loc = null;
|
|
57453
|
+
else newNode.loc = node.loc;
|
|
57862
57454
|
if (hasOwn(node, "leadingComments")) newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
|
|
57863
57455
|
if (hasOwn(node, "innerComments")) newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
|
|
57864
57456
|
if (hasOwn(node, "trailingComments")) newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
|
|
@@ -57918,10 +57510,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
57918
57510
|
function addComments(node, type, comments) {
|
|
57919
57511
|
if (!comments || !node) return node;
|
|
57920
57512
|
const key = `${type}Comments`;
|
|
57921
|
-
if (node[key])
|
|
57922
|
-
|
|
57923
|
-
|
|
57924
|
-
} else node[key] = comments;
|
|
57513
|
+
if (node[key]) if ("leading" === type) node[key] = comments.concat(node[key]);
|
|
57514
|
+
else node[key].push(...comments);
|
|
57515
|
+
else node[key] = comments;
|
|
57925
57516
|
return node;
|
|
57926
57517
|
}
|
|
57927
57518
|
},
|
|
@@ -58363,10 +57954,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
58363
57954
|
newType = "FunctionDeclaration";
|
|
58364
57955
|
} else if ((0, _index.isAssignmentExpression)(node)) return (0, _index2.expressionStatement)(node);
|
|
58365
57956
|
if (mustHaveId && !node.id) newType = false;
|
|
58366
|
-
if (!newType)
|
|
58367
|
-
|
|
58368
|
-
throw new Error(`cannot turn ${node.type} to a statement`);
|
|
58369
|
-
}
|
|
57957
|
+
if (!newType) if (ignore) return false;
|
|
57958
|
+
else throw new Error(`cannot turn ${node.type} to a statement`);
|
|
58370
57959
|
node.type = newType;
|
|
58371
57960
|
return node;
|
|
58372
57961
|
}
|
|
@@ -63003,10 +62592,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
63003
62592
|
}
|
|
63004
62593
|
function assertNodeType(...types) {
|
|
63005
62594
|
function validate(node, key, val) {
|
|
63006
|
-
for (const type of types)if ((0, _is.default)(type, val))
|
|
63007
|
-
(0, _validate.validateChild)(node, key, val);
|
|
63008
|
-
return;
|
|
63009
|
-
}
|
|
62595
|
+
for (const type of types)if ((0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
|
|
63010
62596
|
throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null == val ? void 0 : val.type)}`);
|
|
63011
62597
|
}
|
|
63012
62598
|
validate.oneOfNodeTypes = types;
|
|
@@ -63014,10 +62600,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
63014
62600
|
}
|
|
63015
62601
|
function assertNodeOrValueType(...types) {
|
|
63016
62602
|
function validate(node, key, val) {
|
|
63017
|
-
for (const type of types)if (getType(val) === type || (0, _is.default)(type, val))
|
|
63018
|
-
(0, _validate.validateChild)(node, key, val);
|
|
63019
|
-
return;
|
|
63020
|
-
}
|
|
62603
|
+
for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
|
|
63021
62604
|
throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null == val ? void 0 : val.type)}`);
|
|
63022
62605
|
}
|
|
63023
62606
|
validate.oneOfNodeOrValueTypes = types;
|
|
@@ -63775,36 +63358,37 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
63775
63358
|
const types = [];
|
|
63776
63359
|
for(let i = 0; i < nodes.length; i++){
|
|
63777
63360
|
const node = nodes[i];
|
|
63778
|
-
if (
|
|
63779
|
-
if (types.includes(node))
|
|
63780
|
-
|
|
63781
|
-
|
|
63782
|
-
|
|
63783
|
-
|
|
63784
|
-
|
|
63785
|
-
|
|
63786
|
-
}
|
|
63787
|
-
if ((0, _index.isUnionTypeAnnotation)(node)) {
|
|
63788
|
-
if (!typeGroups.has(node.types)) {
|
|
63789
|
-
nodes.push(...node.types);
|
|
63790
|
-
typeGroups.add(node.types);
|
|
63361
|
+
if (node) {
|
|
63362
|
+
if (!types.includes(node)) {
|
|
63363
|
+
if ((0, _index.isAnyTypeAnnotation)(node)) return [
|
|
63364
|
+
node
|
|
63365
|
+
];
|
|
63366
|
+
if ((0, _index.isFlowBaseAnnotation)(node)) {
|
|
63367
|
+
bases.set(node.type, node);
|
|
63368
|
+
continue;
|
|
63791
63369
|
}
|
|
63792
|
-
|
|
63793
|
-
|
|
63794
|
-
|
|
63795
|
-
|
|
63796
|
-
|
|
63797
|
-
|
|
63798
|
-
|
|
63799
|
-
|
|
63800
|
-
|
|
63801
|
-
|
|
63802
|
-
|
|
63803
|
-
|
|
63804
|
-
|
|
63805
|
-
|
|
63370
|
+
if ((0, _index.isUnionTypeAnnotation)(node)) {
|
|
63371
|
+
if (!typeGroups.has(node.types)) {
|
|
63372
|
+
nodes.push(...node.types);
|
|
63373
|
+
typeGroups.add(node.types);
|
|
63374
|
+
}
|
|
63375
|
+
continue;
|
|
63376
|
+
}
|
|
63377
|
+
if ((0, _index.isGenericTypeAnnotation)(node)) {
|
|
63378
|
+
const name = getQualifiedName(node.id);
|
|
63379
|
+
if (generics.has(name)) {
|
|
63380
|
+
let existing = generics.get(name);
|
|
63381
|
+
if (existing.typeParameters) {
|
|
63382
|
+
if (node.typeParameters) {
|
|
63383
|
+
existing.typeParameters.params.push(...node.typeParameters.params);
|
|
63384
|
+
existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
|
|
63385
|
+
}
|
|
63386
|
+
} else existing = node.typeParameters;
|
|
63387
|
+
} else generics.set(name, node);
|
|
63388
|
+
continue;
|
|
63389
|
+
}
|
|
63390
|
+
types.push(node);
|
|
63806
63391
|
}
|
|
63807
|
-
types.push(node);
|
|
63808
63392
|
}
|
|
63809
63393
|
}
|
|
63810
63394
|
for (const [, baseType] of bases)types.push(baseType);
|
|
@@ -63902,36 +63486,37 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
63902
63486
|
const types = [];
|
|
63903
63487
|
for(let i = 0; i < nodes.length; i++){
|
|
63904
63488
|
const node = nodes[i];
|
|
63905
|
-
if (
|
|
63906
|
-
if (types.includes(node))
|
|
63907
|
-
|
|
63908
|
-
|
|
63909
|
-
|
|
63910
|
-
|
|
63911
|
-
|
|
63912
|
-
|
|
63913
|
-
}
|
|
63914
|
-
if ((0, _index.isTSUnionType)(node)) {
|
|
63915
|
-
if (!typeGroups.has(node.types)) {
|
|
63916
|
-
nodes.push(...node.types);
|
|
63917
|
-
typeGroups.add(node.types);
|
|
63489
|
+
if (node) {
|
|
63490
|
+
if (!types.includes(node)) {
|
|
63491
|
+
if ((0, _index.isTSAnyKeyword)(node)) return [
|
|
63492
|
+
node
|
|
63493
|
+
];
|
|
63494
|
+
if ((0, _index.isTSBaseType)(node)) {
|
|
63495
|
+
bases.set(node.type, node);
|
|
63496
|
+
continue;
|
|
63918
63497
|
}
|
|
63919
|
-
|
|
63920
|
-
|
|
63921
|
-
|
|
63922
|
-
|
|
63923
|
-
|
|
63924
|
-
|
|
63925
|
-
|
|
63926
|
-
|
|
63927
|
-
|
|
63928
|
-
|
|
63929
|
-
|
|
63930
|
-
|
|
63931
|
-
|
|
63932
|
-
|
|
63498
|
+
if ((0, _index.isTSUnionType)(node)) {
|
|
63499
|
+
if (!typeGroups.has(node.types)) {
|
|
63500
|
+
nodes.push(...node.types);
|
|
63501
|
+
typeGroups.add(node.types);
|
|
63502
|
+
}
|
|
63503
|
+
continue;
|
|
63504
|
+
}
|
|
63505
|
+
if ((0, _index.isTSTypeReference)(node) && node.typeParameters) {
|
|
63506
|
+
const name = getQualifiedName(node.typeName);
|
|
63507
|
+
if (generics.has(name)) {
|
|
63508
|
+
let existing = generics.get(name);
|
|
63509
|
+
if (existing.typeParameters) {
|
|
63510
|
+
if (node.typeParameters) {
|
|
63511
|
+
existing.typeParameters.params.push(...node.typeParameters.params);
|
|
63512
|
+
existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
|
|
63513
|
+
}
|
|
63514
|
+
} else existing = node.typeParameters;
|
|
63515
|
+
} else generics.set(name, node);
|
|
63516
|
+
continue;
|
|
63517
|
+
}
|
|
63518
|
+
types.push(node);
|
|
63933
63519
|
}
|
|
63934
|
-
types.push(node);
|
|
63935
63520
|
}
|
|
63936
63521
|
}
|
|
63937
63522
|
for (const [, baseType] of bases)types.push(baseType);
|
|
@@ -64020,10 +63605,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
64020
63605
|
if (keys) for(let i = 0; i < keys.length; i++){
|
|
64021
63606
|
const key = keys[i];
|
|
64022
63607
|
const nodes = id[key];
|
|
64023
|
-
if (nodes)
|
|
64024
|
-
|
|
64025
|
-
else search.push(nodes);
|
|
64026
|
-
}
|
|
63608
|
+
if (nodes) if (Array.isArray(nodes)) search.push(...nodes);
|
|
63609
|
+
else search.push(nodes);
|
|
64027
63610
|
}
|
|
64028
63611
|
}
|
|
64029
63612
|
return ids;
|
|
@@ -64232,7 +63815,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
64232
63815
|
const subNode = node[key];
|
|
64233
63816
|
if (Array.isArray(subNode)) for(let i = 0; i < subNode.length; i++){
|
|
64234
63817
|
const child = subNode[i];
|
|
64235
|
-
if (
|
|
63818
|
+
if (child) {
|
|
64236
63819
|
ancestors.push({
|
|
64237
63820
|
node,
|
|
64238
63821
|
key,
|
|
@@ -73417,15 +73000,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
73417
73000
|
if (hasOwn(node, "typeAnnotation")) newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
|
|
73418
73001
|
if (hasOwn(node, "decorators")) newNode.decorators = deep ? cloneIfNodeOrArray(node.decorators, true, withoutLoc, commentsCache) : node.decorators;
|
|
73419
73002
|
} else if (hasOwn(_index.NODE_FIELDS, type)) {
|
|
73420
|
-
for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field))
|
|
73421
|
-
|
|
73422
|
-
else newNode[field] = node[field];
|
|
73423
|
-
}
|
|
73003
|
+
for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field)) if (deep) newNode[field] = (0, _index2.isFile)(node) && "comments" === field ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
|
|
73004
|
+
else newNode[field] = node[field];
|
|
73424
73005
|
} else throw new Error(`Unknown node type: "${type}"`);
|
|
73425
|
-
if (hasOwn(node, "loc"))
|
|
73426
|
-
|
|
73427
|
-
else newNode.loc = node.loc;
|
|
73428
|
-
}
|
|
73006
|
+
if (hasOwn(node, "loc")) if (withoutLoc) newNode.loc = null;
|
|
73007
|
+
else newNode.loc = node.loc;
|
|
73429
73008
|
if (hasOwn(node, "leadingComments")) newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
|
|
73430
73009
|
if (hasOwn(node, "innerComments")) newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
|
|
73431
73010
|
if (hasOwn(node, "trailingComments")) newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
|
|
@@ -73485,10 +73064,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
73485
73064
|
function addComments(node, type, comments) {
|
|
73486
73065
|
if (!comments || !node) return node;
|
|
73487
73066
|
const key = `${type}Comments`;
|
|
73488
|
-
if (node[key])
|
|
73489
|
-
|
|
73490
|
-
|
|
73491
|
-
} else node[key] = comments;
|
|
73067
|
+
if (node[key]) if ("leading" === type) node[key] = comments.concat(node[key]);
|
|
73068
|
+
else node[key].push(...comments);
|
|
73069
|
+
else node[key] = comments;
|
|
73492
73070
|
return node;
|
|
73493
73071
|
}
|
|
73494
73072
|
},
|
|
@@ -73933,10 +73511,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
73933
73511
|
newType = "FunctionDeclaration";
|
|
73934
73512
|
} else if ((0, _index.isAssignmentExpression)(node)) return (0, _index2.expressionStatement)(node);
|
|
73935
73513
|
if (mustHaveId && !node.id) newType = false;
|
|
73936
|
-
if (!newType)
|
|
73937
|
-
|
|
73938
|
-
throw new Error(`cannot turn ${node.type} to a statement`);
|
|
73939
|
-
}
|
|
73514
|
+
if (!newType) if (ignore) return false;
|
|
73515
|
+
else throw new Error(`cannot turn ${node.type} to a statement`);
|
|
73940
73516
|
node.type = newType;
|
|
73941
73517
|
return node;
|
|
73942
73518
|
}
|
|
@@ -78645,10 +78221,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
78645
78221
|
}
|
|
78646
78222
|
function assertNodeType(...types) {
|
|
78647
78223
|
function validate(node, key, val) {
|
|
78648
|
-
for (const type of types)if ((0, _is.default)(type, val))
|
|
78649
|
-
(0, _validate.validateChild)(node, key, val);
|
|
78650
|
-
return;
|
|
78651
|
-
}
|
|
78224
|
+
for (const type of types)if ((0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
|
|
78652
78225
|
throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null == val ? void 0 : val.type)}`);
|
|
78653
78226
|
}
|
|
78654
78227
|
validate.oneOfNodeTypes = types;
|
|
@@ -78656,10 +78229,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
78656
78229
|
}
|
|
78657
78230
|
function assertNodeOrValueType(...types) {
|
|
78658
78231
|
function validate(node, key, val) {
|
|
78659
|
-
for (const type of types)if (getType(val) === type || (0, _is.default)(type, val))
|
|
78660
|
-
(0, _validate.validateChild)(node, key, val);
|
|
78661
|
-
return;
|
|
78662
|
-
}
|
|
78232
|
+
for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
|
|
78663
78233
|
throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null == val ? void 0 : val.type)}`);
|
|
78664
78234
|
}
|
|
78665
78235
|
validate.oneOfNodeOrValueTypes = types;
|
|
@@ -79406,36 +78976,37 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
79406
78976
|
const types = [];
|
|
79407
78977
|
for(let i = 0; i < nodes.length; i++){
|
|
79408
78978
|
const node = nodes[i];
|
|
79409
|
-
if (
|
|
79410
|
-
if (types.includes(node))
|
|
79411
|
-
|
|
79412
|
-
|
|
79413
|
-
|
|
79414
|
-
|
|
79415
|
-
|
|
79416
|
-
|
|
79417
|
-
}
|
|
79418
|
-
if ((0, _index.isUnionTypeAnnotation)(node)) {
|
|
79419
|
-
if (!typeGroups.has(node.types)) {
|
|
79420
|
-
nodes.push(...node.types);
|
|
79421
|
-
typeGroups.add(node.types);
|
|
78979
|
+
if (node) {
|
|
78980
|
+
if (!types.includes(node)) {
|
|
78981
|
+
if ((0, _index.isAnyTypeAnnotation)(node)) return [
|
|
78982
|
+
node
|
|
78983
|
+
];
|
|
78984
|
+
if ((0, _index.isFlowBaseAnnotation)(node)) {
|
|
78985
|
+
bases.set(node.type, node);
|
|
78986
|
+
continue;
|
|
79422
78987
|
}
|
|
79423
|
-
|
|
79424
|
-
|
|
79425
|
-
|
|
79426
|
-
|
|
79427
|
-
|
|
79428
|
-
|
|
79429
|
-
|
|
79430
|
-
|
|
79431
|
-
|
|
79432
|
-
|
|
79433
|
-
|
|
79434
|
-
|
|
79435
|
-
|
|
79436
|
-
|
|
78988
|
+
if ((0, _index.isUnionTypeAnnotation)(node)) {
|
|
78989
|
+
if (!typeGroups.has(node.types)) {
|
|
78990
|
+
nodes.push(...node.types);
|
|
78991
|
+
typeGroups.add(node.types);
|
|
78992
|
+
}
|
|
78993
|
+
continue;
|
|
78994
|
+
}
|
|
78995
|
+
if ((0, _index.isGenericTypeAnnotation)(node)) {
|
|
78996
|
+
const name = getQualifiedName(node.id);
|
|
78997
|
+
if (generics.has(name)) {
|
|
78998
|
+
let existing = generics.get(name);
|
|
78999
|
+
if (existing.typeParameters) {
|
|
79000
|
+
if (node.typeParameters) {
|
|
79001
|
+
existing.typeParameters.params.push(...node.typeParameters.params);
|
|
79002
|
+
existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
|
|
79003
|
+
}
|
|
79004
|
+
} else existing = node.typeParameters;
|
|
79005
|
+
} else generics.set(name, node);
|
|
79006
|
+
continue;
|
|
79007
|
+
}
|
|
79008
|
+
types.push(node);
|
|
79437
79009
|
}
|
|
79438
|
-
types.push(node);
|
|
79439
79010
|
}
|
|
79440
79011
|
}
|
|
79441
79012
|
for (const [, baseType] of bases)types.push(baseType);
|
|
@@ -79651,10 +79222,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
79651
79222
|
if (keys) for(let i = 0; i < keys.length; i++){
|
|
79652
79223
|
const key = keys[i];
|
|
79653
79224
|
const nodes = id[key];
|
|
79654
|
-
if (nodes)
|
|
79655
|
-
|
|
79656
|
-
else search.push(nodes);
|
|
79657
|
-
}
|
|
79225
|
+
if (nodes) if (Array.isArray(nodes)) search.push(...nodes);
|
|
79226
|
+
else search.push(nodes);
|
|
79658
79227
|
}
|
|
79659
79228
|
}
|
|
79660
79229
|
return ids;
|
|
@@ -79866,7 +79435,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
|
|
|
79866
79435
|
const subNode = node[key];
|
|
79867
79436
|
if (Array.isArray(subNode)) for(let i = 0; i < subNode.length; i++){
|
|
79868
79437
|
const child = subNode[i];
|
|
79869
|
-
if (
|
|
79438
|
+
if (child) {
|
|
79870
79439
|
ancestors.push({
|
|
79871
79440
|
node,
|
|
79872
79441
|
key,
|
|
@@ -83266,6 +82835,7 @@ var __webpack_exports__ = {};
|
|
|
83266
82835
|
makeEnv: ()=>makeEnv,
|
|
83267
82836
|
printBanner: ()=>printBanner,
|
|
83268
82837
|
link: ()=>banner_link,
|
|
82838
|
+
createBlobDatabasePlugin: ()=>createBlobDatabasePlugin,
|
|
83269
82839
|
createZip: ()=>createZip,
|
|
83270
82840
|
getCwd: ()=>getCwd,
|
|
83271
82841
|
transformTsEnv: ()=>transformTsEnv,
|
|
@@ -83298,13 +82868,11 @@ var __webpack_exports__ = {};
|
|
|
83298
82868
|
const key = sourceKeys[i];
|
|
83299
82869
|
const sourceValue = source[key];
|
|
83300
82870
|
const targetValue = target[key];
|
|
83301
|
-
if (Array.isArray(sourceValue))
|
|
83302
|
-
|
|
83303
|
-
|
|
83304
|
-
|
|
83305
|
-
|
|
83306
|
-
else target[key] = merge({}, sourceValue);
|
|
83307
|
-
} else if (void 0 === targetValue || void 0 !== sourceValue) target[key] = sourceValue;
|
|
82871
|
+
if (Array.isArray(sourceValue)) if (Array.isArray(targetValue)) target[key] = merge(targetValue, sourceValue);
|
|
82872
|
+
else target[key] = merge([], sourceValue);
|
|
82873
|
+
else if (isPlainObject(sourceValue)) if (isPlainObject(targetValue)) target[key] = merge(targetValue, sourceValue);
|
|
82874
|
+
else target[key] = merge({}, sourceValue);
|
|
82875
|
+
else if (void 0 === targetValue || void 0 !== sourceValue) target[key] = sourceValue;
|
|
83308
82876
|
}
|
|
83309
82877
|
return target;
|
|
83310
82878
|
}
|
|
@@ -84902,12 +84470,10 @@ var __webpack_exports__ = {};
|
|
|
84902
84470
|
} else updatedLines.push(line);
|
|
84903
84471
|
} else updatedLines.push(line);
|
|
84904
84472
|
}
|
|
84905
|
-
for (const [key, val] of Object.entries(newEnvVars))if (!processedKeys.has(key)) {
|
|
84906
|
-
|
|
84907
|
-
|
|
84908
|
-
|
|
84909
|
-
} else updatedLines.push(`${key}=${val}`);
|
|
84910
|
-
}
|
|
84473
|
+
for (const [key, val] of Object.entries(newEnvVars))if (!processedKeys.has(key)) if ("object" == typeof val && null !== val) {
|
|
84474
|
+
updatedLines.push(`# ${val.comment}`);
|
|
84475
|
+
updatedLines.push(`${key}=${val.value}`);
|
|
84476
|
+
} else updatedLines.push(`${key}=${val}`);
|
|
84911
84477
|
const updatedContent = updatedLines.join("\n");
|
|
84912
84478
|
await promises_default().writeFile(filePath, updatedContent, "utf-8");
|
|
84913
84479
|
return updatedContent;
|
|
@@ -84997,9 +84563,235 @@ var __webpack_exports__ = {};
|
|
|
84997
84563
|
await promises_default().writeFile(outfile, content);
|
|
84998
84564
|
return outfile;
|
|
84999
84565
|
};
|
|
84566
|
+
function compareValues(a, b, order) {
|
|
84567
|
+
if (a < b) return 'asc' === order ? -1 : 1;
|
|
84568
|
+
if (a > b) return 'asc' === order ? 1 : -1;
|
|
84569
|
+
return 0;
|
|
84570
|
+
}
|
|
84571
|
+
function orderBy(arr, criteria, orders) {
|
|
84572
|
+
return arr.slice().sort((a, b)=>{
|
|
84573
|
+
const ordersLength = orders.length;
|
|
84574
|
+
for(let i = 0; i < criteria.length; i++){
|
|
84575
|
+
const order = ordersLength > i ? orders[i] : orders[ordersLength - 1];
|
|
84576
|
+
const criterion = criteria[i];
|
|
84577
|
+
const criterionIsFunction = 'function' == typeof criterion;
|
|
84578
|
+
const valueA = criterionIsFunction ? criterion(a) : a[criterion];
|
|
84579
|
+
const valueB = criterionIsFunction ? criterion(b) : b[criterion];
|
|
84580
|
+
const result = compareValues(valueA, valueB, order);
|
|
84581
|
+
if (0 !== result) return result;
|
|
84582
|
+
}
|
|
84583
|
+
return 0;
|
|
84584
|
+
});
|
|
84585
|
+
}
|
|
84586
|
+
function removeBundleInternalKeys(bundle) {
|
|
84587
|
+
const { _updateJsonKey, _oldUpdateJsonKey, ...pureBundle } = bundle;
|
|
84588
|
+
return pureBundle;
|
|
84589
|
+
}
|
|
84590
|
+
const createBlobDatabasePlugin = ({ name, listObjects, loadObject, uploadObject, deleteObject, invalidatePaths, hooks })=>{
|
|
84591
|
+
const bundlesMap = new Map();
|
|
84592
|
+
const pendingBundlesMap = new Map();
|
|
84593
|
+
const PLATFORMS = [
|
|
84594
|
+
"ios",
|
|
84595
|
+
"android"
|
|
84596
|
+
];
|
|
84597
|
+
async function reloadBundles() {
|
|
84598
|
+
bundlesMap.clear();
|
|
84599
|
+
const platformPromises = PLATFORMS.map(async (platform)=>{
|
|
84600
|
+
const keys = await listUpdateJsonKeys(platform);
|
|
84601
|
+
const filePromises = keys.map(async (key)=>{
|
|
84602
|
+
const bundlesData = await loadObject(key) ?? [];
|
|
84603
|
+
return bundlesData.map((bundle)=>({
|
|
84604
|
+
...bundle,
|
|
84605
|
+
_updateJsonKey: key
|
|
84606
|
+
}));
|
|
84607
|
+
});
|
|
84608
|
+
const results = await Promise.all(filePromises);
|
|
84609
|
+
return results.flat();
|
|
84610
|
+
});
|
|
84611
|
+
const allBundles = (await Promise.all(platformPromises)).flat();
|
|
84612
|
+
for (const bundle of allBundles)bundlesMap.set(bundle.id, bundle);
|
|
84613
|
+
for (const [id, bundle] of pendingBundlesMap.entries())bundlesMap.set(id, bundle);
|
|
84614
|
+
return orderBy(allBundles, [
|
|
84615
|
+
(v)=>v.id
|
|
84616
|
+
], [
|
|
84617
|
+
"desc"
|
|
84618
|
+
]);
|
|
84619
|
+
}
|
|
84620
|
+
async function updateTargetVersionsForPlatform(platform) {
|
|
84621
|
+
const pattern = new RegExp(`^[^/]+/${platform}/[^/]+/update\\.json$`);
|
|
84622
|
+
const keys = (await listObjects("")).filter((key)=>pattern.test(key));
|
|
84623
|
+
const keysByChannel = keys.reduce((acc, key)=>{
|
|
84624
|
+
const parts = key.split("/");
|
|
84625
|
+
const channel = parts[0];
|
|
84626
|
+
acc[channel] = acc[channel] || [];
|
|
84627
|
+
acc[channel].push(key);
|
|
84628
|
+
return acc;
|
|
84629
|
+
}, {});
|
|
84630
|
+
const updatedTargetFiles = new Set();
|
|
84631
|
+
for (const channel of Object.keys(keysByChannel)){
|
|
84632
|
+
const updateKeys = keysByChannel[channel];
|
|
84633
|
+
const targetKey = `${channel}/${platform}/target-app-versions.json`;
|
|
84634
|
+
const currentVersions = updateKeys.map((key)=>key.split("/")[2]);
|
|
84635
|
+
const oldTargetVersions = await loadObject(targetKey) ?? [];
|
|
84636
|
+
const newTargetVersions = oldTargetVersions.filter((v)=>currentVersions.includes(v));
|
|
84637
|
+
for (const v of currentVersions)if (!newTargetVersions.includes(v)) newTargetVersions.push(v);
|
|
84638
|
+
if (JSON.stringify(oldTargetVersions) !== JSON.stringify(newTargetVersions)) {
|
|
84639
|
+
await uploadObject(targetKey, newTargetVersions);
|
|
84640
|
+
updatedTargetFiles.add(`/${targetKey}`);
|
|
84641
|
+
}
|
|
84642
|
+
}
|
|
84643
|
+
return updatedTargetFiles;
|
|
84644
|
+
}
|
|
84645
|
+
async function listUpdateJsonKeys(platform, channel) {
|
|
84646
|
+
const prefix = channel ? platform ? `${channel}/${platform}/` : `${channel}/` : "";
|
|
84647
|
+
const pattern = channel ? platform ? new RegExp(`^${channel}/${platform}/[^/]+/update\\.json$`) : new RegExp(`^${channel}/[^/]+/[^/]+/update\\.json$`) : platform ? new RegExp(`^[^/]+/${platform}/[^/]+/update\\.json$`) : /^[^\/]+\/[^\/]+\/[^\/]+\/update\.json$/;
|
|
84648
|
+
return listObjects(prefix).then((keys)=>keys.filter((key)=>pattern.test(key)));
|
|
84649
|
+
}
|
|
84650
|
+
return createDatabasePlugin(name, {
|
|
84651
|
+
async getBundleById (bundleId) {
|
|
84652
|
+
const pendingBundle = pendingBundlesMap.get(bundleId);
|
|
84653
|
+
if (pendingBundle) return removeBundleInternalKeys(pendingBundle);
|
|
84654
|
+
const bundle = bundlesMap.get(bundleId);
|
|
84655
|
+
if (bundle) return removeBundleInternalKeys(bundle);
|
|
84656
|
+
const bundles = await reloadBundles();
|
|
84657
|
+
return bundles.find((bundle)=>bundle.id === bundleId) ?? null;
|
|
84658
|
+
},
|
|
84659
|
+
async getBundles (options) {
|
|
84660
|
+
let bundles = await reloadBundles();
|
|
84661
|
+
const { where, limit, offset = 0 } = options ?? {};
|
|
84662
|
+
if (where) bundles = bundles.filter((bundle)=>Object.entries(where).every(([key, value1])=>null == value1 || bundle[key] === value1));
|
|
84663
|
+
if (offset > 0) bundles = bundles.slice(offset);
|
|
84664
|
+
if (limit) bundles = bundles.slice(0, limit);
|
|
84665
|
+
return bundles.map(removeBundleInternalKeys);
|
|
84666
|
+
},
|
|
84667
|
+
async getChannels () {
|
|
84668
|
+
const allBundles = await this.getBundles();
|
|
84669
|
+
return [
|
|
84670
|
+
...new Set(allBundles.map((bundle)=>bundle.channel))
|
|
84671
|
+
];
|
|
84672
|
+
},
|
|
84673
|
+
async commitBundle ({ changedSets }) {
|
|
84674
|
+
if (0 === changedSets.length) return;
|
|
84675
|
+
const changedBundlesByKey = {};
|
|
84676
|
+
const removalsByKey = {};
|
|
84677
|
+
const pathsToInvalidate = new Set();
|
|
84678
|
+
for (const { operation, data } of changedSets){
|
|
84679
|
+
if ("insert" === operation) {
|
|
84680
|
+
const key = `${data.channel}/${data.platform}/${data.targetAppVersion}/update.json`;
|
|
84681
|
+
const bundleWithKey = {
|
|
84682
|
+
...data,
|
|
84683
|
+
_updateJsonKey: key
|
|
84684
|
+
};
|
|
84685
|
+
bundlesMap.set(data.id, bundleWithKey);
|
|
84686
|
+
pendingBundlesMap.set(data.id, bundleWithKey);
|
|
84687
|
+
changedBundlesByKey[key] = changedBundlesByKey[key] || [];
|
|
84688
|
+
changedBundlesByKey[key].push(removeBundleInternalKeys(bundleWithKey));
|
|
84689
|
+
pathsToInvalidate.add(`/${key}`);
|
|
84690
|
+
continue;
|
|
84691
|
+
}
|
|
84692
|
+
let bundle = pendingBundlesMap.get(data.id);
|
|
84693
|
+
if (!bundle) bundle = bundlesMap.get(data.id);
|
|
84694
|
+
if (!bundle) throw new Error("targetBundleId not found");
|
|
84695
|
+
if ("update" === operation) {
|
|
84696
|
+
const newChannel = void 0 !== data.channel ? data.channel : bundle.channel;
|
|
84697
|
+
const newPlatform = void 0 !== data.platform ? data.platform : bundle.platform;
|
|
84698
|
+
const newTargetAppVersion = void 0 !== data.targetAppVersion ? data.targetAppVersion : bundle.targetAppVersion;
|
|
84699
|
+
const newKey = `${newChannel}/${newPlatform}/${newTargetAppVersion}/update.json`;
|
|
84700
|
+
if (newKey !== bundle._updateJsonKey) {
|
|
84701
|
+
const oldKey = bundle._updateJsonKey;
|
|
84702
|
+
removalsByKey[oldKey] = removalsByKey[oldKey] || [];
|
|
84703
|
+
removalsByKey[oldKey].push(bundle.id);
|
|
84704
|
+
changedBundlesByKey[newKey] = changedBundlesByKey[newKey] || [];
|
|
84705
|
+
const updatedBundle = {
|
|
84706
|
+
...bundle,
|
|
84707
|
+
...data
|
|
84708
|
+
};
|
|
84709
|
+
updatedBundle._oldUpdateJsonKey = oldKey;
|
|
84710
|
+
updatedBundle._updateJsonKey = newKey;
|
|
84711
|
+
bundlesMap.set(data.id, updatedBundle);
|
|
84712
|
+
pendingBundlesMap.set(data.id, updatedBundle);
|
|
84713
|
+
changedBundlesByKey[newKey].push(removeBundleInternalKeys(updatedBundle));
|
|
84714
|
+
pathsToInvalidate.add(`/${oldKey}`);
|
|
84715
|
+
pathsToInvalidate.add(`/${newKey}`);
|
|
84716
|
+
continue;
|
|
84717
|
+
}
|
|
84718
|
+
const currentKey = bundle._updateJsonKey;
|
|
84719
|
+
const updatedBundle = {
|
|
84720
|
+
...bundle,
|
|
84721
|
+
...data
|
|
84722
|
+
};
|
|
84723
|
+
bundlesMap.set(data.id, updatedBundle);
|
|
84724
|
+
pendingBundlesMap.set(data.id, updatedBundle);
|
|
84725
|
+
changedBundlesByKey[currentKey] = changedBundlesByKey[currentKey] || [];
|
|
84726
|
+
changedBundlesByKey[currentKey].push(removeBundleInternalKeys(updatedBundle));
|
|
84727
|
+
pathsToInvalidate.add(`/${currentKey}`);
|
|
84728
|
+
}
|
|
84729
|
+
}
|
|
84730
|
+
for (const oldKey of Object.keys(removalsByKey))await (async ()=>{
|
|
84731
|
+
const currentBundles = await loadObject(oldKey) ?? [];
|
|
84732
|
+
const updatedBundles = currentBundles.filter((b)=>!removalsByKey[oldKey].includes(b.id));
|
|
84733
|
+
updatedBundles.sort((a, b)=>b.id.localeCompare(a.id));
|
|
84734
|
+
if (0 === updatedBundles.length) await deleteObject(oldKey);
|
|
84735
|
+
else await uploadObject(oldKey, updatedBundles);
|
|
84736
|
+
})();
|
|
84737
|
+
for (const key of Object.keys(changedBundlesByKey))await (async ()=>{
|
|
84738
|
+
const currentBundles = await loadObject(key) ?? [];
|
|
84739
|
+
const pureBundles = changedBundlesByKey[key].map((bundle)=>bundle);
|
|
84740
|
+
for (const changedBundle of pureBundles){
|
|
84741
|
+
const index = currentBundles.findIndex((b)=>b.id === changedBundle.id);
|
|
84742
|
+
if (index >= 0) currentBundles[index] = changedBundle;
|
|
84743
|
+
else currentBundles.push(changedBundle);
|
|
84744
|
+
}
|
|
84745
|
+
currentBundles.sort((a, b)=>b.id.localeCompare(a.id));
|
|
84746
|
+
await uploadObject(key, currentBundles);
|
|
84747
|
+
})();
|
|
84748
|
+
const updatedTargetFilePaths = new Set();
|
|
84749
|
+
for (const platform of PLATFORMS){
|
|
84750
|
+
const updatedPaths = await updateTargetVersionsForPlatform(platform);
|
|
84751
|
+
for (const path of updatedPaths)updatedTargetFilePaths.add(path);
|
|
84752
|
+
}
|
|
84753
|
+
for (const path of updatedTargetFilePaths)pathsToInvalidate.add(path);
|
|
84754
|
+
await invalidatePaths(Array.from(pathsToInvalidate));
|
|
84755
|
+
pendingBundlesMap.clear();
|
|
84756
|
+
hooks?.onDatabaseUpdated?.();
|
|
84757
|
+
}
|
|
84758
|
+
}, hooks);
|
|
84759
|
+
};
|
|
85000
84760
|
})();
|
|
85001
|
-
|
|
85002
|
-
|
|
85003
|
-
|
|
84761
|
+
exports.banner = __webpack_exports__.banner;
|
|
84762
|
+
exports.copyDirToTmp = __webpack_exports__.copyDirToTmp;
|
|
84763
|
+
exports.createBlobDatabasePlugin = __webpack_exports__.createBlobDatabasePlugin;
|
|
84764
|
+
exports.createDatabasePlugin = __webpack_exports__.createDatabasePlugin;
|
|
84765
|
+
exports.createZip = __webpack_exports__.createZip;
|
|
84766
|
+
exports.createZipTargetFiles = __webpack_exports__.createZipTargetFiles;
|
|
84767
|
+
exports.getCwd = __webpack_exports__.getCwd;
|
|
84768
|
+
exports.link = __webpack_exports__.link;
|
|
84769
|
+
exports.loadConfig = __webpack_exports__.loadConfig;
|
|
84770
|
+
exports.loadConfigSync = __webpack_exports__.loadConfigSync;
|
|
84771
|
+
exports.log = __webpack_exports__.log;
|
|
84772
|
+
exports.makeEnv = __webpack_exports__.makeEnv;
|
|
84773
|
+
exports.printBanner = __webpack_exports__.printBanner;
|
|
84774
|
+
exports.transformEnv = __webpack_exports__.transformEnv;
|
|
84775
|
+
exports.transformTemplate = __webpack_exports__.transformTemplate;
|
|
84776
|
+
exports.transformTsEnv = __webpack_exports__.transformTsEnv;
|
|
84777
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
84778
|
+
"banner",
|
|
84779
|
+
"copyDirToTmp",
|
|
84780
|
+
"createBlobDatabasePlugin",
|
|
84781
|
+
"createDatabasePlugin",
|
|
84782
|
+
"createZip",
|
|
84783
|
+
"createZipTargetFiles",
|
|
84784
|
+
"getCwd",
|
|
84785
|
+
"link",
|
|
84786
|
+
"loadConfig",
|
|
84787
|
+
"loadConfigSync",
|
|
84788
|
+
"log",
|
|
84789
|
+
"makeEnv",
|
|
84790
|
+
"printBanner",
|
|
84791
|
+
"transformEnv",
|
|
84792
|
+
"transformTemplate",
|
|
84793
|
+
"transformTsEnv"
|
|
84794
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
84795
|
+
Object.defineProperty(exports, '__esModule', {
|
|
85004
84796
|
value: true
|
|
85005
84797
|
});
|