@hot-updater/plugin-core 0.16.3 → 0.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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 !== (_a = (_b = cast(map))._encoded) && void 0 !== _a ? _a : _b._encoded = sourcemapCodec.encode(cast(map)._decoded);
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
- callFailureCallback(callback, lstatError);
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
- if ('string' == typeof encoding) buf.fill(fill, encoding);
3549
- else buf.fill(fill);
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
- if (!opts.error) return false;
3944
- throw Object.assign(new Error('No valid integrity hashes to check against'), {
3945
- code: 'EINTEGRITY'
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
- if (sync) process.nextTick(function() {
4804
- self1._finish();
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
- if ('stat' === er.syscall) set[p] = true;
4841
- else self1.emit('error', er);
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
- this._processQueue.push([
4896
- pattern,
4897
- index,
4898
- inGlobStar,
4899
- cb
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
- this._emitQueue.push([
4978
- index,
4979
- e
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) || !!this.dot) {
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
- if (false === stat) return cb(null, stat);
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
- if (lastNewline) {
5281
- let indent = '';
5282
- for(let i = 0; ' ' === input[i]; i++)indent += input[i];
5283
- if (indent.length % 2) throw new TypeError('Invalid number of spaces');
5284
- chop = indent.length;
5285
- yield buildToken(TOKEN_TYPES.indent, indent.length / 2);
5286
- } else chop++;
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
- if (propToken.value === indent) this.next();
5388
- else break;
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 (!!split[i]) {
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) || !!this.dot) {
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);
@@ -9140,16 +9075,10 @@ var __webpack_modules__ = {
9140
9075
  p = p.parent;
9141
9076
  q = p.queue;
9142
9077
  }
9143
- if (node.invalid || node.dollar) {
9144
- q.push(append(q.pop(), stringify(node, options)));
9145
- return;
9146
- }
9147
- if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) {
9148
- q.push(append(q.pop(), [
9149
- '{}'
9150
- ]));
9151
- return;
9152
- }
9078
+ if (node.invalid || node.dollar) return void q.push(append(q.pop(), stringify(node, options)));
9079
+ if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) return void q.push(append(q.pop(), [
9080
+ '{}'
9081
+ ]));
9153
9082
  if (node.nodes && node.ranges > 0) {
9154
9083
  let args = utils.reduce(node.nodes);
9155
9084
  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.');
@@ -9689,16 +9618,10 @@ var __webpack_modules__ = {
9689
9618
  p = p.parent;
9690
9619
  q = p.queue;
9691
9620
  }
9692
- if (node.invalid || node.dollar) {
9693
- q.push(append(q.pop(), stringify(node, options)));
9694
- return;
9695
- }
9696
- if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) {
9697
- q.push(append(q.pop(), [
9698
- '{}'
9699
- ]));
9700
- return;
9701
- }
9621
+ if (node.invalid || node.dollar) return void q.push(append(q.pop(), stringify(node, options)));
9622
+ if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) return void q.push(append(q.pop(), [
9623
+ '{}'
9624
+ ]));
9702
9625
  if (node.nodes && node.ranges > 0) {
9703
9626
  const args = utils.reduce(node.nodes);
9704
9627
  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.');
@@ -10394,16 +10317,15 @@ var __webpack_modules__ = {
10394
10317
  let templateIndex = 0;
10395
10318
  let starIndex = -1;
10396
10319
  let matchIndex = 0;
10397
- while(searchIndex < search.length)if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || '*' === template[templateIndex])) {
10398
- if ('*' === template[templateIndex]) {
10399
- starIndex = templateIndex;
10400
- matchIndex = searchIndex;
10401
- templateIndex++;
10402
- } else {
10403
- searchIndex++;
10404
- templateIndex++;
10405
- }
10320
+ while(searchIndex < search.length)if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || '*' === template[templateIndex])) if ('*' === template[templateIndex]) {
10321
+ starIndex = templateIndex;
10322
+ matchIndex = searchIndex;
10323
+ templateIndex++;
10406
10324
  } else {
10325
+ searchIndex++;
10326
+ templateIndex++;
10327
+ }
10328
+ else {
10407
10329
  if (-1 === starIndex) return false;
10408
10330
  templateIndex = starIndex + 1;
10409
10331
  matchIndex++;
@@ -11261,7 +11183,7 @@ var __webpack_modules__ = {
11261
11183
  for (const pattern of patterns){
11262
11184
  const filepath = this._getFullEntryPath(pattern);
11263
11185
  const entry = this._getEntry(filepath, pattern, options);
11264
- if (null !== entry && !!options.entryFilter(entry)) entries.push(entry);
11186
+ if (null !== entry && options.entryFilter(entry)) entries.push(entry);
11265
11187
  }
11266
11188
  return entries;
11267
11189
  }
@@ -11711,16 +11633,15 @@ var __webpack_modules__ = {
11711
11633
  current.value = value1;
11712
11634
  current.callback = done || noop;
11713
11635
  current.errorHandler = errorHandler;
11714
- if (_running === self1.concurrency || self1.paused) {
11715
- if (queueTail) {
11716
- queueTail.next = current;
11717
- queueTail = current;
11718
- } else {
11719
- queueHead = current;
11720
- queueTail = current;
11721
- self1.saturated();
11722
- }
11636
+ if (_running === self1.concurrency || self1.paused) if (queueTail) {
11637
+ queueTail.next = current;
11638
+ queueTail = current;
11723
11639
  } else {
11640
+ queueHead = current;
11641
+ queueTail = current;
11642
+ self1.saturated();
11643
+ }
11644
+ else {
11724
11645
  _running++;
11725
11646
  worker.call(context, current.value, current.worked);
11726
11647
  }
@@ -11731,16 +11652,15 @@ var __webpack_modules__ = {
11731
11652
  current.release = release;
11732
11653
  current.value = value1;
11733
11654
  current.callback = done || noop;
11734
- if (_running === self1.concurrency || self1.paused) {
11735
- if (queueHead) {
11736
- current.next = queueHead;
11737
- queueHead = current;
11738
- } else {
11739
- queueHead = current;
11740
- queueTail = current;
11741
- self1.saturated();
11742
- }
11655
+ if (_running === self1.concurrency || self1.paused) if (queueHead) {
11656
+ current.next = queueHead;
11657
+ queueHead = current;
11743
11658
  } else {
11659
+ queueHead = current;
11660
+ queueTail = current;
11661
+ self1.saturated();
11662
+ }
11663
+ else {
11744
11664
  _running++;
11745
11665
  worker.call(context, current.value, current.worked);
11746
11666
  }
@@ -11748,16 +11668,15 @@ var __webpack_modules__ = {
11748
11668
  function release(holder) {
11749
11669
  if (holder) cache.release(holder);
11750
11670
  var next = queueHead;
11751
- if (next) {
11752
- if (self1.paused) _running--;
11753
- else {
11754
- if (queueTail === queueHead) queueTail = null;
11755
- queueHead = next.next;
11756
- next.next = null;
11757
- worker.call(context, next.value, next.worked);
11758
- if (null === queueTail) self1.empty();
11759
- }
11760
- } else if (0 === --_running) self1.drain();
11671
+ if (next) if (self1.paused) _running--;
11672
+ else {
11673
+ if (queueTail === queueHead) queueTail = null;
11674
+ queueHead = next.next;
11675
+ next.next = null;
11676
+ worker.call(context, next.value, next.worked);
11677
+ if (null === queueTail) self1.empty();
11678
+ }
11679
+ else if (0 === --_running) self1.drain();
11761
11680
  }
11762
11681
  function kill() {
11763
11682
  queueHead = null;
@@ -11815,10 +11734,7 @@ var __webpack_modules__ = {
11815
11734
  function push(value1) {
11816
11735
  var p = new Promise(function(resolve, reject) {
11817
11736
  pushCb(value1, function(err, result) {
11818
- if (err) {
11819
- reject(err);
11820
- return;
11821
- }
11737
+ if (err) return void reject(err);
11822
11738
  resolve(result);
11823
11739
  });
11824
11740
  });
@@ -11828,10 +11744,7 @@ var __webpack_modules__ = {
11828
11744
  function unshift(value1) {
11829
11745
  var p = new Promise(function(resolve, reject) {
11830
11746
  unshiftCb(value1, function(err, result) {
11831
- if (err) {
11832
- reject(err);
11833
- return;
11834
- }
11747
+ if (err) return void reject(err);
11835
11748
  resolve(result);
11836
11749
  });
11837
11750
  });
@@ -12468,37 +12381,36 @@ var __webpack_modules__ = {
12468
12381
  "use strict";
12469
12382
  var Mutation = global.MutationObserver || global.WebKitMutationObserver;
12470
12383
  var scheduleDrain;
12471
- if (process.browser) {
12472
- if (Mutation) {
12473
- var called = 0;
12474
- var observer = new Mutation(nextTick);
12475
- var element = global.document.createTextNode('');
12476
- observer.observe(element, {
12477
- characterData: true
12478
- });
12479
- scheduleDrain = function() {
12480
- element.data = called = ++called % 2;
12481
- };
12482
- } else if (global.setImmediate || void 0 === global.MessageChannel) scheduleDrain = 'document' in global && 'onreadystatechange' in global.document.createElement("script") ? function() {
12483
- var scriptEl = global.document.createElement("script");
12484
- scriptEl.onreadystatechange = function() {
12485
- nextTick();
12486
- scriptEl.onreadystatechange = null;
12487
- scriptEl.parentNode.removeChild(scriptEl);
12488
- scriptEl = null;
12489
- };
12490
- global.document.documentElement.appendChild(scriptEl);
12491
- } : function() {
12492
- setTimeout(nextTick, 0);
12384
+ if (process.browser) if (Mutation) {
12385
+ var called = 0;
12386
+ var observer = new Mutation(nextTick);
12387
+ var element = global.document.createTextNode('');
12388
+ observer.observe(element, {
12389
+ characterData: true
12390
+ });
12391
+ scheduleDrain = function() {
12392
+ element.data = called = ++called % 2;
12393
+ };
12394
+ } else if (global.setImmediate || void 0 === global.MessageChannel) scheduleDrain = 'document' in global && 'onreadystatechange' in global.document.createElement("script") ? function() {
12395
+ var scriptEl = global.document.createElement("script");
12396
+ scriptEl.onreadystatechange = function() {
12397
+ nextTick();
12398
+ scriptEl.onreadystatechange = null;
12399
+ scriptEl.parentNode.removeChild(scriptEl);
12400
+ scriptEl = null;
12401
+ };
12402
+ global.document.documentElement.appendChild(scriptEl);
12403
+ } : function() {
12404
+ setTimeout(nextTick, 0);
12405
+ };
12406
+ else {
12407
+ var channel = new global.MessageChannel();
12408
+ channel.port1.onmessage = nextTick;
12409
+ scheduleDrain = function() {
12410
+ channel.port2.postMessage(0);
12493
12411
  };
12494
- else {
12495
- var channel = new global.MessageChannel();
12496
- channel.port1.onmessage = nextTick;
12497
- scheduleDrain = function() {
12498
- channel.port2.postMessage(0);
12499
- };
12500
- }
12501
- } else scheduleDrain = function() {
12412
+ }
12413
+ else scheduleDrain = function() {
12502
12414
  process.nextTick(nextTick);
12503
12415
  };
12504
12416
  var draining;
@@ -12922,10 +12834,9 @@ var __webpack_modules__ = {
12922
12834
  }
12923
12835
  if (i === path.length - 1) check_if_can_be_placed(path[i], data, void 0 === value1);
12924
12836
  var new_key = !(path[i] in data);
12925
- if (void 0 === value1) {
12926
- if (Array.isArray(data)) data.pop();
12927
- else delete data[path[i]];
12928
- } else data[path[i]] = value1;
12837
+ if (void 0 === value1) if (Array.isArray(data)) data.pop();
12838
+ else delete data[path[i]];
12839
+ else data[path[i]] = value1;
12929
12840
  }
12930
12841
  if (!this._tokens.length) this._tokens = [
12931
12842
  {
@@ -13038,32 +12949,30 @@ var __webpack_modules__ = {
13038
12949
  change([], self1._data, value1);
13039
12950
  return self1;
13040
12951
  function change(path, old_data, new_data) {
13041
- if (isObject(new_data) && isObject(old_data)) {
13042
- if (Array.isArray(new_data) != Array.isArray(old_data)) self1.set(path, new_data);
13043
- else if (Array.isArray(new_data)) {
13044
- if (new_data.length > old_data.length) for(var i = 0; i < new_data.length; i++){
13045
- path.push(String(i));
13046
- change(path, old_data[i], new_data[i]);
13047
- path.pop();
13048
- }
13049
- else for(var i = old_data.length - 1; i >= 0; i--){
13050
- path.push(String(i));
13051
- change(path, old_data[i], new_data[i]);
13052
- path.pop();
13053
- }
13054
- } else {
13055
- for(var i in new_data){
13056
- path.push(String(i));
13057
- change(path, old_data[i], new_data[i]);
13058
- path.pop();
13059
- }
13060
- for(var i in old_data)if (!(i in new_data)) {
13061
- path.push(String(i));
13062
- change(path, old_data[i], new_data[i]);
13063
- path.pop();
13064
- }
12952
+ if (isObject(new_data) && isObject(old_data)) if (Array.isArray(new_data) != Array.isArray(old_data)) self1.set(path, new_data);
12953
+ else if (Array.isArray(new_data)) if (new_data.length > old_data.length) for(var i = 0; i < new_data.length; i++){
12954
+ path.push(String(i));
12955
+ change(path, old_data[i], new_data[i]);
12956
+ path.pop();
12957
+ }
12958
+ else for(var i = old_data.length - 1; i >= 0; i--){
12959
+ path.push(String(i));
12960
+ change(path, old_data[i], new_data[i]);
12961
+ path.pop();
12962
+ }
12963
+ else {
12964
+ for(var i in new_data){
12965
+ path.push(String(i));
12966
+ change(path, old_data[i], new_data[i]);
12967
+ path.pop();
13065
12968
  }
13066
- } else if (new_data !== old_data) self1.set(path, new_data);
12969
+ for(var i in old_data)if (!(i in new_data)) {
12970
+ path.push(String(i));
12971
+ change(path, old_data[i], new_data[i]);
12972
+ path.pop();
12973
+ }
12974
+ }
12975
+ else if (new_data !== old_data) self1.set(path, new_data);
13067
12976
  }
13068
12977
  };
13069
12978
  Document.prototype.toString = function() {
@@ -13102,7 +13011,7 @@ var __webpack_modules__ = {
13102
13011
  var result = msg + ' at ' + (lineno + 1) + ':' + (column + 1), tmppos = position - column - 1, srcline = '', underline = '';
13103
13012
  var isLineTerminator = json5 ? Uni.isLineTerminator : Uni.isLineTerminatorJSON;
13104
13013
  if (tmppos < position - 70) tmppos = position - 70;
13105
- while(true){
13014
+ while(1){
13106
13015
  var chr = input[++tmppos];
13107
13016
  if (isLineTerminator(chr) || tmppos === input.length) {
13108
13017
  if (position >= tmppos) underline += '^';
@@ -13252,16 +13161,10 @@ var __webpack_modules__ = {
13252
13161
  while(position < length){
13253
13162
  var chr = input[position++];
13254
13163
  if (isLineTerminator(chr)) {
13255
- if (!multi) {
13256
- position--;
13257
- return;
13258
- }
13164
+ if (!multi) return void position--;
13259
13165
  newline(chr);
13260
13166
  } else if ('*' === chr && multi) {
13261
- if ('/' === input[position]) {
13262
- position++;
13263
- return;
13264
- }
13167
+ if ('/' === input[position]) return void position++;
13265
13168
  }
13266
13169
  }
13267
13170
  if (multi) fail('Unclosed multiline comment');
@@ -13427,13 +13330,12 @@ var __webpack_modules__ = {
13427
13330
  chr = String.fromCharCode(parseInt(input.substr(position + 1, 4), 16));
13428
13331
  position += 5;
13429
13332
  }
13430
- if (result.length) {
13431
- if (Uni.isIdentifierPart(chr)) result += chr;
13432
- else {
13433
- position--;
13434
- return result;
13435
- }
13436
- } else {
13333
+ if (result.length) if (Uni.isIdentifierPart(chr)) result += chr;
13334
+ else {
13335
+ position--;
13336
+ return result;
13337
+ }
13338
+ else {
13437
13339
  if (!Uni.isIdentifierStart(chr)) return;
13438
13340
  result += chr;
13439
13341
  }
@@ -13568,10 +13470,9 @@ var __webpack_modules__ = {
13568
13470
  if (!Uni.isIdentifierPart(key[i])) return _stringify_str(key);
13569
13471
  } else if (!Uni.isIdentifierStart(key[i])) return _stringify_str(key);
13570
13472
  var chr = key.charCodeAt(i);
13571
- if (options.ascii) {
13572
- if (chr < 0x80) result += key[i];
13573
- else result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
13574
- } else if (escapable.exec(key[i])) result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
13473
+ if (options.ascii) if (chr < 0x80) result += key[i];
13474
+ else result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
13475
+ else if (escapable.exec(key[i])) result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
13575
13476
  else result += key[i];
13576
13477
  }
13577
13478
  return result;
@@ -13582,27 +13483,22 @@ var __webpack_modules__ = {
13582
13483
  var result = '';
13583
13484
  for(var i = 0; i < key.length; i++){
13584
13485
  var chr = key.charCodeAt(i);
13585
- if (chr < 0x10) {
13586
- if (0 === chr && json5) result += '\\0';
13587
- else if (chr >= 8 && chr <= 13 && (json5 || 11 !== chr)) result += special_chars[chr];
13588
- else if (json5) result += '\\x0' + chr.toString(16);
13589
- else result += '\\u000' + chr.toString(16);
13590
- } else if (chr < 0x20) {
13591
- if (json5) result += '\\x' + chr.toString(16);
13592
- else result += '\\u00' + chr.toString(16);
13593
- } else if (chr >= 0x20 && chr < 0x80) {
13594
- if (47 === chr && i && '<' === key[i - 1]) result += '\\' + key[i];
13595
- else if (92 === chr) result += '\\\\';
13596
- else if (chr === quoteChr) result += '\\' + quote;
13597
- else result += key[i];
13598
- } else if (options.ascii || Uni.isLineTerminator(key[i]) || escapable.exec(key[i])) {
13599
- if (chr < 0x100) {
13600
- if (json5) result += '\\x' + chr.toString(16);
13601
- else result += '\\u00' + chr.toString(16);
13602
- } else if (chr < 0x1000) result += '\\u0' + chr.toString(16);
13603
- else if (chr < 0x10000) result += '\\u' + chr.toString(16);
13604
- else throw Error('weird codepoint');
13605
- } else result += key[i];
13486
+ if (chr < 0x10) if (0 === chr && json5) result += '\\0';
13487
+ else if (chr >= 8 && chr <= 13 && (json5 || 11 !== chr)) result += special_chars[chr];
13488
+ else if (json5) result += '\\x0' + chr.toString(16);
13489
+ else result += '\\u000' + chr.toString(16);
13490
+ else if (chr < 0x20) if (json5) result += '\\x' + chr.toString(16);
13491
+ else result += '\\u00' + chr.toString(16);
13492
+ else if (chr >= 0x20 && chr < 0x80) if (47 === chr && i && '<' === key[i - 1]) result += '\\' + key[i];
13493
+ else if (92 === chr) result += '\\\\';
13494
+ else if (chr === quoteChr) result += '\\' + quote;
13495
+ else result += key[i];
13496
+ else if (options.ascii || Uni.isLineTerminator(key[i]) || escapable.exec(key[i])) if (chr < 0x100) if (json5) result += '\\x' + chr.toString(16);
13497
+ else result += '\\u00' + chr.toString(16);
13498
+ else if (chr < 0x1000) result += '\\u0' + chr.toString(16);
13499
+ else if (chr < 0x10000) result += '\\u' + chr.toString(16);
13500
+ else throw Error('weird codepoint');
13501
+ else result += key[i];
13606
13502
  }
13607
13503
  return quote + result + quote;
13608
13504
  }
@@ -13702,10 +13598,9 @@ var __webpack_modules__ = {
13702
13598
  if ('object' == typeof options.indent) {
13703
13599
  if (options.indent.constructor === Number || options.indent.constructor === Boolean || options.indent.constructor === String) options.indent = options.indent.valueOf();
13704
13600
  }
13705
- if ('number' == typeof options.indent) {
13706
- if (options.indent >= 0) options.indent = Array(Math.min(~~options.indent, 10) + 1).join(' ');
13707
- else options.indent = false;
13708
- } else if ('string' == typeof options.indent) options.indent = options.indent.substr(0, 10);
13601
+ if ('number' == typeof options.indent) if (options.indent >= 0) options.indent = Array(Math.min(~~options.indent, 10) + 1).join(' ');
13602
+ else options.indent = false;
13603
+ else if ('string' == typeof options.indent) options.indent = options.indent.substr(0, 10);
13709
13604
  if (null == options._splitMin) options._splitMin = 50;
13710
13605
  if (null == options._splitMax) options._splitMax = 70;
13711
13606
  return _stringify(object, options, 0, '');
@@ -14213,10 +14108,10 @@ var __webpack_modules__ = {
14213
14108
  objectKey = objectKeyList[index];
14214
14109
  objectValue = object[objectKey];
14215
14110
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
14216
- if (!!writeNode(state, level, objectKey, false, false)) {
14111
+ if (writeNode(state, level, objectKey, false, false)) {
14217
14112
  if (state.dump.length > 1024) pairBuffer += '? ';
14218
14113
  pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
14219
- if (!!writeNode(state, level, objectValue, false, false)) {
14114
+ if (writeNode(state, level, objectValue, false, false)) {
14220
14115
  pairBuffer += state.dump;
14221
14116
  _result += pairBuffer;
14222
14117
  }
@@ -14236,15 +14131,13 @@ var __webpack_modules__ = {
14236
14131
  objectKey = objectKeyList[index];
14237
14132
  objectValue = object[objectKey];
14238
14133
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
14239
- if (!!writeNode(state, level + 1, objectKey, true, true, true)) {
14134
+ if (writeNode(state, level + 1, objectKey, true, true, true)) {
14240
14135
  explicitPair = null !== state.tag && '?' !== state.tag || state.dump && state.dump.length > 1024;
14241
- if (explicitPair) {
14242
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += '?';
14243
- else pairBuffer += '? ';
14244
- }
14136
+ if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += '?';
14137
+ else pairBuffer += '? ';
14245
14138
  pairBuffer += state.dump;
14246
14139
  if (explicitPair) pairBuffer += generateNextLine(state, level);
14247
- if (!!writeNode(state, level + 1, objectValue, true, explicitPair)) {
14140
+ if (writeNode(state, level + 1, objectValue, true, explicitPair)) {
14248
14141
  if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += ':';
14249
14142
  else pairBuffer += ': ';
14250
14143
  pairBuffer += state.dump;
@@ -14261,10 +14154,9 @@ var __webpack_modules__ = {
14261
14154
  for(index = 0, length = typeList.length; index < length; index += 1){
14262
14155
  type = typeList[index];
14263
14156
  if ((type.instanceOf || type.predicate) && (!type.instanceOf || 'object' == typeof object && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
14264
- if (explicit) {
14265
- if (type.multi && type.representName) state.tag = type.representName(object);
14266
- else state.tag = type.tag;
14267
- } else state.tag = '?';
14157
+ if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
14158
+ else state.tag = type.tag;
14159
+ else state.tag = '?';
14268
14160
  if (type.represent) {
14269
14161
  style = state.styleMap[type.tag] || type.defaultStyle;
14270
14162
  if ('[object Function]' === _toString.call(type.represent)) _result = type.represent(object, style);
@@ -14294,23 +14186,21 @@ var __webpack_modules__ = {
14294
14186
  if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = '*ref_' + duplicateIndex;
14295
14187
  else {
14296
14188
  if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
14297
- if ('[object Object]' === type) {
14298
- if (block && 0 !== Object.keys(state.dump).length) {
14299
- writeBlockMapping(state, level, state.dump, compact);
14300
- if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
14301
- } else {
14302
- writeFlowMapping(state, level, state.dump);
14303
- if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
14304
- }
14305
- } else if ('[object Array]' === type) {
14306
- if (block && 0 !== state.dump.length) {
14307
- state.noArrayIndent && !isblockseq && level > 0 ? writeBlockSequence(state, level - 1, state.dump, compact) : writeBlockSequence(state, level, state.dump, compact);
14308
- if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
14309
- } else {
14310
- writeFlowSequence(state, level, state.dump);
14311
- if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
14312
- }
14313
- } else if ('[object String]' === type) {
14189
+ if ('[object Object]' === type) if (block && 0 !== Object.keys(state.dump).length) {
14190
+ writeBlockMapping(state, level, state.dump, compact);
14191
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
14192
+ } else {
14193
+ writeFlowMapping(state, level, state.dump);
14194
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
14195
+ }
14196
+ else if ('[object Array]' === type) if (block && 0 !== state.dump.length) {
14197
+ state.noArrayIndent && !isblockseq && level > 0 ? writeBlockSequence(state, level - 1, state.dump, compact) : writeBlockSequence(state, level, state.dump, compact);
14198
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
14199
+ } else {
14200
+ writeFlowSequence(state, level, state.dump);
14201
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
14202
+ }
14203
+ else if ('[object String]' === type) {
14314
14204
  if ('?' !== state.tag) writeScalar(state, state.dump, level, iskey, inblock);
14315
14205
  } else {
14316
14206
  if ('[object Undefined]' === type) return false;
@@ -14551,10 +14441,9 @@ var __webpack_modules__ = {
14551
14441
  if ('object' == typeof keyNode && '[object Object]' === _class(keyNode)) keyNode = '[object Object]';
14552
14442
  keyNode = String(keyNode);
14553
14443
  if (null === _result) _result = {};
14554
- if ('tag:yaml.org,2002:merge' === keyTag) {
14555
- if (Array.isArray(valueNode)) for(index = 0, quantity = valueNode.length; index < quantity; index += 1)mergeMappings(state, _result, valueNode[index], overridableKeys);
14556
- else mergeMappings(state, _result, valueNode, overridableKeys);
14557
- } else {
14444
+ 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);
14445
+ else mergeMappings(state, _result, valueNode, overridableKeys);
14446
+ else {
14558
14447
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
14559
14448
  state.line = startLine || state.line;
14560
14449
  state.lineStart = startLineStart || state.lineStart;
@@ -14706,40 +14595,37 @@ var __webpack_modules__ = {
14706
14595
  state.result = '';
14707
14596
  state.position++;
14708
14597
  captureStart = captureEnd = state.position;
14709
- while(0 !== (ch = state.input.charCodeAt(state.position))){
14710
- if (0x22 === ch) {
14711
- captureSegment(state, captureStart, state.position, true);
14598
+ while(0 !== (ch = state.input.charCodeAt(state.position)))if (0x22 === ch) {
14599
+ captureSegment(state, captureStart, state.position, true);
14600
+ state.position++;
14601
+ return true;
14602
+ } else if (0x5C === ch) {
14603
+ captureSegment(state, captureStart, state.position, true);
14604
+ ch = state.input.charCodeAt(++state.position);
14605
+ if (is_EOL(ch)) skipSeparationSpace(state, false, nodeIndent);
14606
+ else if (ch < 256 && simpleEscapeCheck[ch]) {
14607
+ state.result += simpleEscapeMap[ch];
14712
14608
  state.position++;
14713
- return true;
14714
- }
14715
- if (0x5C === ch) {
14716
- captureSegment(state, captureStart, state.position, true);
14717
- ch = state.input.charCodeAt(++state.position);
14718
- if (is_EOL(ch)) skipSeparationSpace(state, false, nodeIndent);
14719
- else if (ch < 256 && simpleEscapeCheck[ch]) {
14720
- state.result += simpleEscapeMap[ch];
14721
- state.position++;
14722
- } else if ((tmp = escapedHexLen(ch)) > 0) {
14723
- hexLength = tmp;
14724
- hexResult = 0;
14725
- for(; hexLength > 0; hexLength--){
14726
- ch = state.input.charCodeAt(++state.position);
14727
- if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
14728
- else throwError(state, 'expected hexadecimal character');
14729
- }
14730
- state.result += charFromCodepoint(hexResult);
14731
- state.position++;
14732
- } else throwError(state, 'unknown escape sequence');
14733
- captureStart = captureEnd = state.position;
14734
- } else if (is_EOL(ch)) {
14735
- captureSegment(state, captureStart, captureEnd, true);
14736
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
14737
- captureStart = captureEnd = state.position;
14738
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, 'unexpected end of the document within a double quoted scalar');
14739
- else {
14609
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
14610
+ hexLength = tmp;
14611
+ hexResult = 0;
14612
+ for(; hexLength > 0; hexLength--){
14613
+ ch = state.input.charCodeAt(++state.position);
14614
+ if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
14615
+ else throwError(state, 'expected hexadecimal character');
14616
+ }
14617
+ state.result += charFromCodepoint(hexResult);
14740
14618
  state.position++;
14741
- captureEnd = state.position;
14742
- }
14619
+ } else throwError(state, 'unknown escape sequence');
14620
+ captureStart = captureEnd = state.position;
14621
+ } else if (is_EOL(ch)) {
14622
+ captureSegment(state, captureStart, captureEnd, true);
14623
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
14624
+ captureStart = captureEnd = state.position;
14625
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, 'unexpected end of the document within a double quoted scalar');
14626
+ else {
14627
+ state.position++;
14628
+ captureEnd = state.position;
14743
14629
  }
14744
14630
  throwError(state, 'unexpected end of the stream within a double quoted scalar');
14745
14631
  }
@@ -14821,17 +14707,15 @@ var __webpack_modules__ = {
14821
14707
  state.result = '';
14822
14708
  while(0 !== ch){
14823
14709
  ch = state.input.charCodeAt(++state.position);
14824
- if (0x2B === ch || 0x2D === ch) {
14825
- if (CHOMPING_CLIP === chomping) chomping = 0x2B === ch ? CHOMPING_KEEP : CHOMPING_STRIP;
14826
- else throwError(state, 'repeat of a chomping mode identifier');
14827
- } else if ((tmp = fromDecimalCode(ch)) >= 0) {
14828
- if (0 === tmp) throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
14829
- else if (detectedIndent) throwError(state, 'repeat of an indentation width identifier');
14830
- else {
14831
- textIndent = nodeIndent + tmp - 1;
14832
- detectedIndent = true;
14833
- }
14834
- } else break;
14710
+ if (0x2B === ch || 0x2D === ch) if (CHOMPING_CLIP === chomping) chomping = 0x2B === ch ? CHOMPING_KEEP : CHOMPING_STRIP;
14711
+ else throwError(state, 'repeat of a chomping mode identifier');
14712
+ 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');
14713
+ else if (detectedIndent) throwError(state, 'repeat of an indentation width identifier');
14714
+ else {
14715
+ textIndent = nodeIndent + tmp - 1;
14716
+ detectedIndent = true;
14717
+ }
14718
+ else break;
14835
14719
  }
14836
14720
  if (is_WHITE_SPACE(ch)) {
14837
14721
  do ch = state.input.charCodeAt(++state.position);
@@ -14859,17 +14743,16 @@ var __webpack_modules__ = {
14859
14743
  }
14860
14744
  break;
14861
14745
  }
14862
- if (folding) {
14863
- if (is_WHITE_SPACE(ch)) {
14864
- atMoreIndented = true;
14865
- state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
14866
- } else if (atMoreIndented) {
14867
- atMoreIndented = false;
14868
- state.result += common.repeat('\n', emptyLines + 1);
14869
- } else if (0 === emptyLines) {
14870
- if (didReadContent) state.result += ' ';
14871
- } else state.result += common.repeat('\n', emptyLines);
14872
- } else state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
14746
+ if (folding) if (is_WHITE_SPACE(ch)) {
14747
+ atMoreIndented = true;
14748
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
14749
+ } else if (atMoreIndented) {
14750
+ atMoreIndented = false;
14751
+ state.result += common.repeat('\n', emptyLines + 1);
14752
+ } else if (0 === emptyLines) {
14753
+ if (didReadContent) state.result += ' ';
14754
+ } else state.result += common.repeat('\n', emptyLines);
14755
+ else state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
14873
14756
  didReadContent = true;
14874
14757
  detectedIndent = true;
14875
14758
  emptyLines = 0;
@@ -14984,10 +14867,8 @@ var __webpack_modules__ = {
14984
14867
  _keyLineStart = state.lineStart;
14985
14868
  _keyPos = state.position;
14986
14869
  }
14987
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
14988
- if (atExplicitKey) keyNode = state.result;
14989
- else valueNode = state.result;
14990
- }
14870
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) if (atExplicitKey) keyNode = state.result;
14871
+ else valueNode = state.result;
14991
14872
  if (!atExplicitKey) {
14992
14873
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
14993
14874
  keyTag = keyNode = valueNode = null;
@@ -15031,14 +14912,12 @@ var __webpack_modules__ = {
15031
14912
  } else throwError(state, 'unexpected end of the stream within a verbatim tag');
15032
14913
  } else {
15033
14914
  while(0 !== ch && !is_WS_OR_EOL(ch)){
15034
- if (0x21 === ch) {
15035
- if (isNamed) throwError(state, 'tag suffix cannot contain exclamation marks');
15036
- else {
15037
- tagHandle = state.input.slice(_position - 1, state.position + 1);
15038
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, 'named tag handle cannot contain such characters');
15039
- isNamed = true;
15040
- _position = state.position + 1;
15041
- }
14915
+ if (0x21 === ch) if (isNamed) throwError(state, 'tag suffix cannot contain exclamation marks');
14916
+ else {
14917
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
14918
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, 'named tag handle cannot contain such characters');
14919
+ isNamed = true;
14920
+ _position = state.position + 1;
15042
14921
  }
15043
14922
  ch = state.input.charCodeAt(++state.position);
15044
14923
  }
@@ -15111,20 +14990,19 @@ var __webpack_modules__ = {
15111
14990
  if (1 === indentStatus || CONTEXT_BLOCK_OUT === nodeContext) {
15112
14991
  flowIndent = CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext ? parentIndent : parentIndent + 1;
15113
14992
  blockIndent = state.position - state.lineStart;
15114
- if (1 === indentStatus) {
15115
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
15116
- else {
15117
- if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
15118
- else if (readAlias(state)) {
15119
- hasContent = true;
15120
- if (null !== state.tag || null !== state.anchor) throwError(state, 'alias node should not have any properties');
15121
- } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
15122
- hasContent = true;
15123
- if (null === state.tag) state.tag = '?';
15124
- }
15125
- if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
14993
+ if (1 === indentStatus) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
14994
+ else {
14995
+ if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
14996
+ else if (readAlias(state)) {
14997
+ hasContent = true;
14998
+ if (null !== state.tag || null !== state.anchor) throwError(state, 'alias node should not have any properties');
14999
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
15000
+ hasContent = true;
15001
+ if (null === state.tag) state.tag = '?';
15126
15002
  }
15127
- } else if (0 === indentStatus) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
15003
+ if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
15004
+ }
15005
+ else if (0 === indentStatus) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
15128
15006
  }
15129
15007
  if (null === state.tag) {
15130
15008
  if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
@@ -15847,10 +15725,8 @@ var __webpack_modules__ = {
15847
15725
  pair = object[index];
15848
15726
  pairHasKey = false;
15849
15727
  if ('[object Object]' !== _toString.call(pair)) return false;
15850
- for(pairKey in pair)if (_hasOwnProperty.call(pair, pairKey)) {
15851
- if (pairHasKey) return false;
15852
- pairHasKey = true;
15853
- }
15728
+ for(pairKey in pair)if (_hasOwnProperty.call(pair, pairKey)) if (pairHasKey) return false;
15729
+ else pairHasKey = true;
15854
15730
  if (!pairHasKey) return false;
15855
15731
  if (-1 !== objectKeys.indexOf(pairKey)) return false;
15856
15732
  objectKeys.push(pairKey);
@@ -16902,13 +16778,12 @@ var __webpack_modules__ = {
16902
16778
  return result;
16903
16779
  },
16904
16780
  file: function(name, data, o) {
16905
- if (1 === arguments.length) {
16906
- if (isRegExp(name)) {
16907
- var regexp = name;
16908
- return this.filter(function(relativePath, file) {
16909
- return !file.dir && regexp.test(relativePath);
16910
- });
16911
- }
16781
+ if (1 === arguments.length) if (isRegExp(name)) {
16782
+ var regexp = name;
16783
+ return this.filter(function(relativePath, file) {
16784
+ return !file.dir && regexp.test(relativePath);
16785
+ });
16786
+ } else {
16912
16787
  var obj = this.files[this.root + name];
16913
16788
  if (obj && !obj.dir) return obj;
16914
16789
  return null;
@@ -17372,7 +17247,7 @@ var __webpack_modules__ = {
17372
17247
  return this;
17373
17248
  },
17374
17249
  mergeStreamInfo: function() {
17375
- for(var key in this.extraStreamInfo)if (!!Object.prototype.hasOwnProperty.call(this.extraStreamInfo, key)) this.streamInfo[key] = this.extraStreamInfo[key];
17250
+ for(var key in this.extraStreamInfo)if (Object.prototype.hasOwnProperty.call(this.extraStreamInfo, key)) this.streamInfo[key] = this.extraStreamInfo[key];
17376
17251
  },
17377
17252
  lock: function() {
17378
17253
  if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
@@ -17631,10 +17506,8 @@ var __webpack_modules__ = {
17631
17506
  utf16buf[out++] = 0xdc00 | 0x3ff & c;
17632
17507
  }
17633
17508
  }
17634
- if (utf16buf.length !== out) {
17635
- if (utf16buf.subarray) utf16buf = utf16buf.subarray(0, out);
17636
- else utf16buf.length = out;
17637
- }
17509
+ if (utf16buf.length !== out) if (utf16buf.subarray) utf16buf = utf16buf.subarray(0, out);
17510
+ else utf16buf.length = out;
17638
17511
  return utils.applyFromCharCode(utf16buf);
17639
17512
  };
17640
17513
  exports1.utf8encode = function(str) {
@@ -17664,14 +17537,12 @@ var __webpack_modules__ = {
17664
17537
  }
17665
17538
  var nextBoundary = utf8border(data);
17666
17539
  var usableData = data;
17667
- if (nextBoundary !== data.length) {
17668
- if (support.uint8array) {
17669
- usableData = data.subarray(0, nextBoundary);
17670
- this.leftOver = data.subarray(nextBoundary, data.length);
17671
- } else {
17672
- usableData = data.slice(0, nextBoundary);
17673
- this.leftOver = data.slice(nextBoundary, data.length);
17674
- }
17540
+ if (nextBoundary !== data.length) if (support.uint8array) {
17541
+ usableData = data.subarray(0, nextBoundary);
17542
+ this.leftOver = data.subarray(nextBoundary, data.length);
17543
+ } else {
17544
+ usableData = data.slice(0, nextBoundary);
17545
+ this.leftOver = data.slice(nextBoundary, data.length);
17675
17546
  }
17676
17547
  this.push({
17677
17548
  data: exports1.utf8decode(usableData),
@@ -17870,10 +17741,8 @@ var __webpack_modules__ = {
17870
17741
  var result = [];
17871
17742
  for(var index = 0; index < parts.length; index++){
17872
17743
  var part = parts[index];
17873
- if ("." !== part && ("" !== part || 0 === index || index === parts.length - 1)) {
17874
- if (".." === part) result.pop();
17875
- else result.push(part);
17876
- }
17744
+ if ("." !== part && ("" !== part || 0 === index || index === parts.length - 1)) if (".." === part) result.pop();
17745
+ else result.push(part);
17877
17746
  }
17878
17747
  return result.join("/");
17879
17748
  };
@@ -18097,7 +17966,7 @@ var __webpack_modules__ = {
18097
17966
  var MADE_BY_DOS = 0x00;
18098
17967
  var MADE_BY_UNIX = 0x03;
18099
17968
  var findCompression = function(compressionMethod) {
18100
- for(var method in compressions)if (!!Object.prototype.hasOwnProperty.call(compressions, method)) {
17969
+ for(var method in compressions)if (Object.prototype.hasOwnProperty.call(compressions, method)) {
18101
17970
  if (compressions[method].magic === compressionMethod) return compressions[method];
18102
17971
  }
18103
17972
  return null;
@@ -18539,10 +18408,7 @@ var __webpack_modules__ = {
18539
18408
  if (merging) return;
18540
18409
  merging = true;
18541
18410
  let streams = streamsQueue.shift();
18542
- if (!streams) {
18543
- process.nextTick(endStream);
18544
- return;
18545
- }
18411
+ if (!streams) return void process.nextTick(endStream);
18546
18412
  if (!Array.isArray(streams)) streams = [
18547
18413
  streams
18548
18414
  ];
@@ -18625,12 +18491,10 @@ var __webpack_modules__ = {
18625
18491
  for (let item of list){
18626
18492
  let matched = isMatch(item, true);
18627
18493
  let match = negated ? !matched.isMatch : matched.isMatch;
18628
- if (!!match) {
18629
- if (negated) omit.add(matched.output);
18630
- else {
18631
- omit.delete(matched.output);
18632
- keep.add(matched.output);
18633
- }
18494
+ if (match) if (negated) omit.add(matched.output);
18495
+ else {
18496
+ omit.delete(matched.output);
18497
+ keep.add(matched.output);
18634
18498
  }
18635
18499
  }
18636
18500
  }
@@ -18770,12 +18634,10 @@ var __webpack_modules__ = {
18770
18634
  for (let item of list){
18771
18635
  let matched = isMatch(item, true);
18772
18636
  let match = negated ? !matched.isMatch : matched.isMatch;
18773
- if (!!match) {
18774
- if (negated) omit.add(matched.output);
18775
- else {
18776
- omit.delete(matched.output);
18777
- keep.add(matched.output);
18778
- }
18637
+ if (match) if (negated) omit.add(matched.output);
18638
+ else {
18639
+ omit.delete(matched.output);
18640
+ keep.add(matched.output);
18779
18641
  }
18780
18642
  }
18781
18643
  }
@@ -19049,10 +18911,8 @@ var __webpack_modules__ = {
19049
18911
  this.ended = true;
19050
18912
  return false;
19051
18913
  }
19052
- if (0 === strm.avail_out || 0 === strm.avail_in && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH)) {
19053
- if ('string' === this.options.to) this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));
19054
- else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
19055
- }
18914
+ 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)));
18915
+ else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
19056
18916
  }while ((strm.avail_in > 0 || 0 === strm.avail_out) && status !== Z_STREAM_END);
19057
18917
  if (_mode === Z_FINISH) {
19058
18918
  status = zlib_deflate.deflateEnd(this.strm);
@@ -19070,10 +18930,8 @@ var __webpack_modules__ = {
19070
18930
  this.chunks.push(chunk);
19071
18931
  };
19072
18932
  Deflate.prototype.onEnd = function(status) {
19073
- if (status === Z_OK) {
19074
- if ('string' === this.options.to) this.result = this.chunks.join('');
19075
- else this.result = utils.flattenChunks(this.chunks);
19076
- }
18933
+ if (status === Z_OK) if ('string' === this.options.to) this.result = this.chunks.join('');
18934
+ else this.result = utils.flattenChunks(this.chunks);
19077
18935
  this.chunks = [];
19078
18936
  this.err = status;
19079
18937
  this.msg = this.strm.msg;
@@ -19176,17 +19034,15 @@ var __webpack_modules__ = {
19176
19034
  return false;
19177
19035
  }
19178
19036
  if (strm.next_out) {
19179
- if (0 === strm.avail_out || status === c.Z_STREAM_END || 0 === strm.avail_in && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH)) {
19180
- if ('string' === this.options.to) {
19181
- next_out_utf8 = strings.utf8border(strm.output, strm.next_out);
19182
- tail = strm.next_out - next_out_utf8;
19183
- utf8str = strings.buf2string(strm.output, next_out_utf8);
19184
- strm.next_out = tail;
19185
- strm.avail_out = chunkSize - tail;
19186
- if (tail) utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0);
19187
- this.onData(utf8str);
19188
- } else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
19189
- }
19037
+ 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) {
19038
+ next_out_utf8 = strings.utf8border(strm.output, strm.next_out);
19039
+ tail = strm.next_out - next_out_utf8;
19040
+ utf8str = strings.buf2string(strm.output, next_out_utf8);
19041
+ strm.next_out = tail;
19042
+ strm.avail_out = chunkSize - tail;
19043
+ if (tail) utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0);
19044
+ this.onData(utf8str);
19045
+ } else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
19190
19046
  }
19191
19047
  if (0 === strm.avail_in && 0 === strm.avail_out) allowBufError = true;
19192
19048
  }while ((strm.avail_in > 0 || 0 === strm.avail_out) && status !== c.Z_STREAM_END);
@@ -19207,10 +19063,8 @@ var __webpack_modules__ = {
19207
19063
  this.chunks.push(chunk);
19208
19064
  };
19209
19065
  Inflate.prototype.onEnd = function(status) {
19210
- if (status === c.Z_OK) {
19211
- if ('string' === this.options.to) this.result = this.chunks.join('');
19212
- else this.result = utils.flattenChunks(this.chunks);
19213
- }
19066
+ if (status === c.Z_OK) if ('string' === this.options.to) this.result = this.chunks.join('');
19067
+ else this.result = utils.flattenChunks(this.chunks);
19214
19068
  this.chunks = [];
19215
19069
  this.err = status;
19216
19070
  this.msg = this.strm.msg;
@@ -19255,10 +19109,7 @@ var __webpack_modules__ = {
19255
19109
  };
19256
19110
  var fnTyped = {
19257
19111
  arraySet: function(dest, src, src_offs, len, dest_offs) {
19258
- if (src.subarray && dest.subarray) {
19259
- dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
19260
- return;
19261
- }
19112
+ if (src.subarray && dest.subarray) return void dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
19262
19113
  for(var i = 0; i < len; i++)dest[dest_offs + i] = src[src_offs + i];
19263
19114
  },
19264
19115
  flattenChunks: function(chunks) {
@@ -20083,127 +19934,117 @@ var __webpack_modules__ = {
20083
19934
  s.strm = strm;
20084
19935
  old_flush = s.last_flush;
20085
19936
  s.last_flush = flush;
20086
- if (s.status === INIT_STATE) {
20087
- if (2 === s.wrap) {
20088
- strm.adler = 0;
20089
- put_byte(s, 31);
20090
- put_byte(s, 139);
20091
- put_byte(s, 8);
20092
- if (s.gzhead) {
20093
- 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));
20094
- put_byte(s, 0xff & s.gzhead.time);
20095
- put_byte(s, s.gzhead.time >> 8 & 0xff);
20096
- put_byte(s, s.gzhead.time >> 16 & 0xff);
20097
- put_byte(s, s.gzhead.time >> 24 & 0xff);
20098
- put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
20099
- put_byte(s, 0xff & s.gzhead.os);
20100
- if (s.gzhead.extra && s.gzhead.extra.length) {
20101
- put_byte(s, 0xff & s.gzhead.extra.length);
20102
- put_byte(s, s.gzhead.extra.length >> 8 & 0xff);
20103
- }
20104
- if (s.gzhead.hcrc) strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
20105
- s.gzindex = 0;
20106
- s.status = EXTRA_STATE;
20107
- } else {
20108
- put_byte(s, 0);
20109
- put_byte(s, 0);
20110
- put_byte(s, 0);
20111
- put_byte(s, 0);
20112
- put_byte(s, 0);
20113
- put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
20114
- put_byte(s, OS_CODE);
20115
- s.status = BUSY_STATE;
20116
- }
19937
+ if (s.status === INIT_STATE) if (2 === s.wrap) {
19938
+ strm.adler = 0;
19939
+ put_byte(s, 31);
19940
+ put_byte(s, 139);
19941
+ put_byte(s, 8);
19942
+ if (s.gzhead) {
19943
+ 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));
19944
+ put_byte(s, 0xff & s.gzhead.time);
19945
+ put_byte(s, s.gzhead.time >> 8 & 0xff);
19946
+ put_byte(s, s.gzhead.time >> 16 & 0xff);
19947
+ put_byte(s, s.gzhead.time >> 24 & 0xff);
19948
+ put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
19949
+ put_byte(s, 0xff & s.gzhead.os);
19950
+ if (s.gzhead.extra && s.gzhead.extra.length) {
19951
+ put_byte(s, 0xff & s.gzhead.extra.length);
19952
+ put_byte(s, s.gzhead.extra.length >> 8 & 0xff);
19953
+ }
19954
+ if (s.gzhead.hcrc) strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
19955
+ s.gzindex = 0;
19956
+ s.status = EXTRA_STATE;
20117
19957
  } else {
20118
- var header = Z_DEFLATED + (s.w_bits - 8 << 4) << 8;
20119
- var level_flags = -1;
20120
- level_flags = s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 0 : s.level < 6 ? 1 : 6 === s.level ? 2 : 3;
20121
- header |= level_flags << 6;
20122
- if (0 !== s.strstart) header |= PRESET_DICT;
20123
- header += 31 - header % 31;
19958
+ put_byte(s, 0);
19959
+ put_byte(s, 0);
19960
+ put_byte(s, 0);
19961
+ put_byte(s, 0);
19962
+ put_byte(s, 0);
19963
+ put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
19964
+ put_byte(s, OS_CODE);
20124
19965
  s.status = BUSY_STATE;
20125
- putShortMSB(s, header);
20126
- if (0 !== s.strstart) {
20127
- putShortMSB(s, strm.adler >>> 16);
20128
- putShortMSB(s, 0xffff & strm.adler);
20129
- }
20130
- strm.adler = 1;
20131
19966
  }
20132
- }
20133
- if (s.status === EXTRA_STATE) {
20134
- if (s.gzhead.extra) {
20135
- beg = s.pending;
20136
- while(s.gzindex < (0xffff & s.gzhead.extra.length)){
19967
+ } else {
19968
+ var header = Z_DEFLATED + (s.w_bits - 8 << 4) << 8;
19969
+ var level_flags = -1;
19970
+ level_flags = s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 0 : s.level < 6 ? 1 : 6 === s.level ? 2 : 3;
19971
+ header |= level_flags << 6;
19972
+ if (0 !== s.strstart) header |= PRESET_DICT;
19973
+ header += 31 - header % 31;
19974
+ s.status = BUSY_STATE;
19975
+ putShortMSB(s, header);
19976
+ if (0 !== s.strstart) {
19977
+ putShortMSB(s, strm.adler >>> 16);
19978
+ putShortMSB(s, 0xffff & strm.adler);
19979
+ }
19980
+ strm.adler = 1;
19981
+ }
19982
+ if (s.status === EXTRA_STATE) if (s.gzhead.extra) {
19983
+ beg = s.pending;
19984
+ while(s.gzindex < (0xffff & s.gzhead.extra.length)){
19985
+ if (s.pending === s.pending_buf_size) {
19986
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19987
+ flush_pending(strm);
19988
+ beg = s.pending;
19989
+ if (s.pending === s.pending_buf_size) break;
19990
+ }
19991
+ put_byte(s, 0xff & s.gzhead.extra[s.gzindex]);
19992
+ s.gzindex++;
19993
+ }
19994
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19995
+ if (s.gzindex === s.gzhead.extra.length) {
19996
+ s.gzindex = 0;
19997
+ s.status = NAME_STATE;
19998
+ }
19999
+ } else s.status = NAME_STATE;
20000
+ if (s.status === NAME_STATE) if (s.gzhead.name) {
20001
+ beg = s.pending;
20002
+ do {
20003
+ if (s.pending === s.pending_buf_size) {
20004
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20005
+ flush_pending(strm);
20006
+ beg = s.pending;
20137
20007
  if (s.pending === s.pending_buf_size) {
20138
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20139
- flush_pending(strm);
20140
- beg = s.pending;
20141
- if (s.pending === s.pending_buf_size) break;
20008
+ val = 1;
20009
+ break;
20142
20010
  }
20143
- put_byte(s, 0xff & s.gzhead.extra[s.gzindex]);
20144
- s.gzindex++;
20145
- }
20146
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20147
- if (s.gzindex === s.gzhead.extra.length) {
20148
- s.gzindex = 0;
20149
- s.status = NAME_STATE;
20150
20011
  }
20151
- } else s.status = NAME_STATE;
20152
- }
20153
- if (s.status === NAME_STATE) {
20154
- if (s.gzhead.name) {
20155
- beg = s.pending;
20156
- do {
20157
- if (s.pending === s.pending_buf_size) {
20158
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20159
- flush_pending(strm);
20160
- beg = s.pending;
20161
- if (s.pending === s.pending_buf_size) {
20162
- val = 1;
20163
- break;
20164
- }
20165
- }
20166
- val = s.gzindex < s.gzhead.name.length ? 0xff & s.gzhead.name.charCodeAt(s.gzindex++) : 0;
20167
- put_byte(s, val);
20168
- }while (0 !== val);
20169
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20170
- if (0 === val) {
20171
- s.gzindex = 0;
20172
- s.status = COMMENT_STATE;
20173
- }
20174
- } else s.status = COMMENT_STATE;
20175
- }
20176
- if (s.status === COMMENT_STATE) {
20177
- if (s.gzhead.comment) {
20178
- beg = s.pending;
20179
- do {
20012
+ val = s.gzindex < s.gzhead.name.length ? 0xff & s.gzhead.name.charCodeAt(s.gzindex++) : 0;
20013
+ put_byte(s, val);
20014
+ }while (0 !== val);
20015
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20016
+ if (0 === val) {
20017
+ s.gzindex = 0;
20018
+ s.status = COMMENT_STATE;
20019
+ }
20020
+ } else s.status = COMMENT_STATE;
20021
+ if (s.status === COMMENT_STATE) if (s.gzhead.comment) {
20022
+ beg = s.pending;
20023
+ do {
20024
+ if (s.pending === s.pending_buf_size) {
20025
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20026
+ flush_pending(strm);
20027
+ beg = s.pending;
20180
20028
  if (s.pending === s.pending_buf_size) {
20181
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20182
- flush_pending(strm);
20183
- beg = s.pending;
20184
- if (s.pending === s.pending_buf_size) {
20185
- val = 1;
20186
- break;
20187
- }
20029
+ val = 1;
20030
+ break;
20188
20031
  }
20189
- val = s.gzindex < s.gzhead.comment.length ? 0xff & s.gzhead.comment.charCodeAt(s.gzindex++) : 0;
20190
- put_byte(s, val);
20191
- }while (0 !== val);
20192
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20193
- if (0 === val) s.status = HCRC_STATE;
20194
- } else s.status = HCRC_STATE;
20195
- }
20196
- if (s.status === HCRC_STATE) {
20197
- if (s.gzhead.hcrc) {
20198
- if (s.pending + 2 > s.pending_buf_size) flush_pending(strm);
20199
- if (s.pending + 2 <= s.pending_buf_size) {
20200
- put_byte(s, 0xff & strm.adler);
20201
- put_byte(s, strm.adler >> 8 & 0xff);
20202
- strm.adler = 0;
20203
- s.status = BUSY_STATE;
20204
- }
20205
- } else s.status = BUSY_STATE;
20206
- }
20032
+ }
20033
+ val = s.gzindex < s.gzhead.comment.length ? 0xff & s.gzhead.comment.charCodeAt(s.gzindex++) : 0;
20034
+ put_byte(s, val);
20035
+ }while (0 !== val);
20036
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
20037
+ if (0 === val) s.status = HCRC_STATE;
20038
+ } else s.status = HCRC_STATE;
20039
+ if (s.status === HCRC_STATE) if (s.gzhead.hcrc) {
20040
+ if (s.pending + 2 > s.pending_buf_size) flush_pending(strm);
20041
+ if (s.pending + 2 <= s.pending_buf_size) {
20042
+ put_byte(s, 0xff & strm.adler);
20043
+ put_byte(s, strm.adler >> 8 & 0xff);
20044
+ strm.adler = 0;
20045
+ s.status = BUSY_STATE;
20046
+ }
20047
+ } else s.status = BUSY_STATE;
20207
20048
  if (0 !== s.pending) {
20208
20049
  flush_pending(strm);
20209
20050
  if (0 === strm.avail_out) {
@@ -24410,13 +24251,12 @@ var __webpack_modules__ = {
24410
24251
  ];
24411
24252
  function prependListener(emitter, event, fn) {
24412
24253
  if ('function' == typeof emitter.prependListener) return emitter.prependListener(event, fn);
24413
- if (emitter._events && emitter._events[event]) {
24414
- if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);
24415
- else emitter._events[event] = [
24416
- fn,
24417
- emitter._events[event]
24418
- ];
24419
- } else emitter.on(event, fn);
24254
+ if (emitter._events && emitter._events[event]) if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);
24255
+ else emitter._events[event] = [
24256
+ fn,
24257
+ emitter._events[event]
24258
+ ];
24259
+ else emitter.on(event, fn);
24420
24260
  }
24421
24261
  function ReadableState(options, stream) {
24422
24262
  Duplex = Duplex || __webpack_require__("../../node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_duplex.js");
@@ -24511,10 +24351,9 @@ var __webpack_modules__ = {
24511
24351
  if (er) stream.emit('error', er);
24512
24352
  else if (state.objectMode || chunk && chunk.length > 0) {
24513
24353
  if ('string' != typeof chunk && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer1.prototype) chunk = _uint8ArrayToBuffer(chunk);
24514
- if (addToFront) {
24515
- if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));
24516
- else addChunk(stream, state, chunk, true);
24517
- } else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
24354
+ if (addToFront) if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));
24355
+ else addChunk(stream, state, chunk, true);
24356
+ else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
24518
24357
  else {
24519
24358
  state.reading = false;
24520
24359
  if (state.decoder && !encoding) {
@@ -24573,10 +24412,8 @@ var __webpack_modules__ = {
24573
24412
  function howMuchToRead(n, state) {
24574
24413
  if (n <= 0 || 0 === state.length && state.ended) return 0;
24575
24414
  if (state.objectMode) return 1;
24576
- if (n !== n) {
24577
- if (state.flowing && state.length) return state.buffer.head.data.length;
24578
- return state.length;
24579
- }
24415
+ if (n !== n) if (state.flowing && state.length) return state.buffer.head.data.length;
24416
+ else return state.length;
24580
24417
  if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
24581
24418
  if (n <= state.length) return n;
24582
24419
  if (!state.ended) {
@@ -25458,15 +25295,13 @@ var __webpack_modules__ = {
25458
25295
  });
25459
25296
  }
25460
25297
  function prefinish(stream, state) {
25461
- if (!state.prefinished && !state.finalCalled) {
25462
- if ('function' == typeof stream._final) {
25463
- state.pendingcb++;
25464
- state.finalCalled = true;
25465
- pna.nextTick(callFinal, stream, state);
25466
- } else {
25467
- state.prefinished = true;
25468
- stream.emit('prefinish');
25469
- }
25298
+ if (!state.prefinished && !state.finalCalled) if ('function' == typeof stream._final) {
25299
+ state.pendingcb++;
25300
+ state.finalCalled = true;
25301
+ pna.nextTick(callFinal, stream, state);
25302
+ } else {
25303
+ state.prefinished = true;
25304
+ stream.emit('prefinish');
25470
25305
  }
25471
25306
  }
25472
25307
  function finishMaybe(stream, state) {
@@ -25483,10 +25318,8 @@ var __webpack_modules__ = {
25483
25318
  function endWritable(stream, state, cb) {
25484
25319
  state.ending = true;
25485
25320
  finishMaybe(stream, state);
25486
- if (cb) {
25487
- if (state.finished) pna.nextTick(cb);
25488
- else stream.once('finish', cb);
25489
- }
25321
+ if (cb) if (state.finished) pna.nextTick(cb);
25322
+ else stream.once('finish', cb);
25490
25323
  state.ended = true;
25491
25324
  stream.writable = false;
25492
25325
  }
@@ -25603,27 +25436,24 @@ var __webpack_modules__ = {
25603
25436
  var writableDestroyed = this._writableState && this._writableState.destroyed;
25604
25437
  if (readableDestroyed || writableDestroyed) {
25605
25438
  if (cb) cb(err);
25606
- else if (err) {
25607
- if (this._writableState) {
25608
- if (!this._writableState.errorEmitted) {
25609
- this._writableState.errorEmitted = true;
25610
- pna.nextTick(emitErrorNT, this, err);
25611
- }
25612
- } else pna.nextTick(emitErrorNT, this, err);
25613
- }
25439
+ else if (err) if (this._writableState) {
25440
+ if (!this._writableState.errorEmitted) {
25441
+ this._writableState.errorEmitted = true;
25442
+ pna.nextTick(emitErrorNT, this, err);
25443
+ }
25444
+ } else pna.nextTick(emitErrorNT, this, err);
25614
25445
  return this;
25615
25446
  }
25616
25447
  if (this._readableState) this._readableState.destroyed = true;
25617
25448
  if (this._writableState) this._writableState.destroyed = true;
25618
25449
  this._destroy(err || null, function(err) {
25619
- if (!cb && err) {
25620
- if (_this._writableState) {
25621
- if (!_this._writableState.errorEmitted) {
25622
- _this._writableState.errorEmitted = true;
25623
- pna.nextTick(emitErrorNT, _this, err);
25624
- }
25625
- } else pna.nextTick(emitErrorNT, _this, err);
25626
- } else if (cb) cb(err);
25450
+ if (!cb && err) if (_this._writableState) {
25451
+ if (!_this._writableState.errorEmitted) {
25452
+ _this._writableState.errorEmitted = true;
25453
+ pna.nextTick(emitErrorNT, _this, err);
25454
+ }
25455
+ } else pna.nextTick(emitErrorNT, _this, err);
25456
+ else if (cb) cb(err);
25627
25457
  });
25628
25458
  return this;
25629
25459
  }
@@ -25728,18 +25558,17 @@ var __webpack_modules__ = {
25728
25558
  results[i] = result;
25729
25559
  if (0 === --pending || err) done(err);
25730
25560
  }
25731
- if (pending) {
25732
- if (keys) keys.forEach(function(key) {
25733
- tasks[key](function(err, result) {
25734
- each(key, err, result);
25735
- });
25561
+ if (pending) if (keys) keys.forEach(function(key) {
25562
+ tasks[key](function(err, result) {
25563
+ each(key, err, result);
25736
25564
  });
25737
- else tasks.forEach(function(task, i) {
25738
- task(function(err, result) {
25739
- each(i, err, result);
25740
- });
25565
+ });
25566
+ else tasks.forEach(function(task, i) {
25567
+ task(function(err, result) {
25568
+ each(i, err, result);
25741
25569
  });
25742
- } else done(null);
25570
+ });
25571
+ else done(null);
25743
25572
  isSync = false;
25744
25573
  }
25745
25574
  },
@@ -25765,10 +25594,9 @@ var __webpack_modules__ = {
25765
25594
  SafeBuffer.alloc = function(size, fill, encoding) {
25766
25595
  if ('number' != typeof size) throw new TypeError('Argument must be a number');
25767
25596
  var buf = Buffer1(size);
25768
- if (void 0 !== fill) {
25769
- if ('string' == typeof encoding) buf.fill(fill, encoding);
25770
- else buf.fill(fill);
25771
- } else buf.fill(0);
25597
+ if (void 0 !== fill) if ('string' == typeof encoding) buf.fill(fill, encoding);
25598
+ else buf.fill(fill);
25599
+ else buf.fill(0);
25772
25600
  return buf;
25773
25601
  };
25774
25602
  SafeBuffer.allocUnsafe = function(size) {
@@ -26061,10 +25889,8 @@ var __webpack_modules__ = {
26061
25889
  if (--j < i || -2 === nb) return 0;
26062
25890
  nb = utf8CheckByte(buf[j]);
26063
25891
  if (nb >= 0) {
26064
- if (nb > 0) {
26065
- if (2 === nb) nb = 0;
26066
- else self1.lastNeed = nb - 3;
26067
- }
25892
+ if (nb > 0) if (2 === nb) nb = 0;
25893
+ else self1.lastNeed = nb - 3;
26068
25894
  return nb;
26069
25895
  }
26070
25896
  return 0;
@@ -28135,7 +27961,7 @@ var __webpack_modules__ = {
28135
27961
  const utils = (0, implementations_1.getWorkspaceUtilities)(cwd);
28136
27962
  if (!utils) return [];
28137
27963
  if (!utils.getWorkspacePackagePathsAsync) {
28138
- const managerName = implementations_1.getWorkspaceManagerAndRoot(cwd)?.manager;
27964
+ const managerName = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
28139
27965
  throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
28140
27966
  }
28141
27967
  return utils.getWorkspacePackagePathsAsync(cwd);
@@ -28150,7 +27976,7 @@ var __webpack_modules__ = {
28150
27976
  exports1.getWorkspaceRoot = void 0;
28151
27977
  const implementations_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/index.js");
28152
27978
  function getWorkspaceRoot(cwd, preferredManager) {
28153
- return implementations_1.getWorkspaceManagerAndRoot(cwd, void 0, preferredManager)?.root;
27979
+ return (0, implementations_1.getWorkspaceManagerAndRoot)(cwd, void 0, preferredManager)?.root;
28154
27980
  }
28155
27981
  exports1.getWorkspaceRoot = getWorkspaceRoot;
28156
27982
  },
@@ -28170,7 +27996,7 @@ var __webpack_modules__ = {
28170
27996
  const utils = (0, implementations_1.getWorkspaceUtilities)(cwd);
28171
27997
  if (!utils) return [];
28172
27998
  if (!utils.getWorkspacesAsync) {
28173
- const managerName = implementations_1.getWorkspaceManagerAndRoot(cwd)?.manager;
27999
+ const managerName = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
28174
28000
  throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
28175
28001
  }
28176
28002
  return utils.getWorkspacesAsync(cwd);
@@ -28228,7 +28054,7 @@ var __webpack_modules__ = {
28228
28054
  exports1.getWorkspaceUtilities = void 0;
28229
28055
  const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
28230
28056
  function getWorkspaceUtilities(cwd) {
28231
- const manager = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd)?.manager;
28057
+ const manager = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
28232
28058
  switch(manager){
28233
28059
  case "yarn":
28234
28060
  return __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/yarn.js");
@@ -28284,7 +28110,7 @@ var __webpack_modules__ = {
28284
28110
  const logging_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/logging.js");
28285
28111
  const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
28286
28112
  function getLernaWorkspaceRoot(cwd) {
28287
- const root = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd, void 0, "lerna")?.root;
28113
+ const root = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "lerna")?.root;
28288
28114
  if (!root) throw new Error("Could not find lerna workspace root from " + cwd);
28289
28115
  return root;
28290
28116
  }
@@ -28332,7 +28158,7 @@ var __webpack_modules__ = {
28332
28158
  const _1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/index.js");
28333
28159
  const packageJsonWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/packageJsonWorkspaces.js");
28334
28160
  function getNpmWorkspaceRoot(cwd) {
28335
- const root = _1.getWorkspaceManagerAndRoot(cwd, void 0, "npm")?.root;
28161
+ const root = (0, _1.getWorkspaceManagerAndRoot)(cwd, void 0, "npm")?.root;
28336
28162
  if (!root) throw new Error("Could not find npm workspace root from " + cwd);
28337
28163
  return root;
28338
28164
  }
@@ -28447,7 +28273,7 @@ var __webpack_modules__ = {
28447
28273
  const logging_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/logging.js");
28448
28274
  const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
28449
28275
  function getPnpmWorkspaceRoot(cwd) {
28450
- const root = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd, void 0, "pnpm")?.root;
28276
+ const root = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "pnpm")?.root;
28451
28277
  if (!root) throw new Error("Could not find pnpm workspace root from " + cwd);
28452
28278
  return root;
28453
28279
  }
@@ -28505,7 +28331,7 @@ var __webpack_modules__ = {
28505
28331
  const logging_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/logging.js");
28506
28332
  const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
28507
28333
  function getRushWorkspaceRoot(cwd) {
28508
- const root = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd, void 0, "rush")?.root;
28334
+ const root = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "rush")?.root;
28509
28335
  if (!root) throw new Error("Could not find rush workspace root from " + cwd);
28510
28336
  return root;
28511
28337
  }
@@ -28555,7 +28381,7 @@ var __webpack_modules__ = {
28555
28381
  const _1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/index.js");
28556
28382
  const packageJsonWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/packageJsonWorkspaces.js");
28557
28383
  function getYarnWorkspaceRoot(cwd) {
28558
- const root = _1.getWorkspaceManagerAndRoot(cwd, void 0, "yarn")?.root;
28384
+ const root = (0, _1.getWorkspaceManagerAndRoot)(cwd, void 0, "yarn")?.root;
28559
28385
  if (!root) throw new Error("Could not find yarn workspace root from " + cwd);
28560
28386
  return root;
28561
28387
  }
@@ -28739,33 +28565,31 @@ var __webpack_modules__ = {
28739
28565
  const markerLines = {};
28740
28566
  if (lineDiff) for(let i = 0; i <= lineDiff; i++){
28741
28567
  const lineNumber = i + startLine;
28742
- if (startColumn) {
28743
- if (0 === i) {
28744
- const sourceLength = source[lineNumber - 1].length;
28745
- markerLines[lineNumber] = [
28746
- startColumn,
28747
- sourceLength - startColumn + 1
28748
- ];
28749
- } else if (i === lineDiff) markerLines[lineNumber] = [
28568
+ if (startColumn) if (0 === i) {
28569
+ const sourceLength = source[lineNumber - 1].length;
28570
+ markerLines[lineNumber] = [
28571
+ startColumn,
28572
+ sourceLength - startColumn + 1
28573
+ ];
28574
+ } else if (i === lineDiff) markerLines[lineNumber] = [
28575
+ 0,
28576
+ endColumn
28577
+ ];
28578
+ else {
28579
+ const sourceLength = source[lineNumber - i].length;
28580
+ markerLines[lineNumber] = [
28750
28581
  0,
28751
- endColumn
28582
+ sourceLength
28752
28583
  ];
28753
- else {
28754
- const sourceLength = source[lineNumber - i].length;
28755
- markerLines[lineNumber] = [
28756
- 0,
28757
- sourceLength
28758
- ];
28759
- }
28760
- } else markerLines[lineNumber] = true;
28584
+ }
28585
+ else markerLines[lineNumber] = true;
28761
28586
  }
28762
- else if (startColumn === endColumn) {
28763
- if (startColumn) markerLines[startLine] = [
28764
- startColumn,
28765
- 0
28766
- ];
28767
- else markerLines[startLine] = true;
28768
- } else markerLines[startLine] = [
28587
+ else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [
28588
+ startColumn,
28589
+ 0
28590
+ ];
28591
+ else markerLines[startLine] = true;
28592
+ else markerLines[startLine] = [
28769
28593
  startColumn,
28770
28594
  endColumn - startColumn
28771
28595
  ];
@@ -29056,10 +28880,7 @@ var __webpack_modules__ = {
29056
28880
  return 0 !== this._queueCursor || !!this._last;
29057
28881
  }
29058
28882
  exactSource(loc, cb) {
29059
- if (!this._map) {
29060
- cb();
29061
- return;
29062
- }
28883
+ if (!this._map) return void cb();
29063
28884
  this.source("start", loc);
29064
28885
  const identifierName = loc.identifierName;
29065
28886
  const sourcePos = this._sourcePosition;
@@ -29165,15 +28986,11 @@ var __webpack_modules__ = {
29165
28986
  const unescapedDoubleQuoteRE = /(?:^|[^\\])(?:\\\\)*"/;
29166
28987
  function DirectiveLiteral(node) {
29167
28988
  const raw = this.getPossibleRaw(node);
29168
- if (!this.format.minified && void 0 !== raw) {
29169
- this.token(raw);
29170
- return;
29171
- }
28989
+ if (!this.format.minified && void 0 !== raw) return void this.token(raw);
29172
28990
  const { value: value1 } = node;
29173
- if (unescapedDoubleQuoteRE.test(value1)) {
29174
- if (unescapedSingleQuoteRE.test(value1)) throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");
29175
- this.token(`'${value1}'`);
29176
- } else this.token(`"${value1}"`);
28991
+ 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.");
28992
+ else this.token(`'${value1}'`);
28993
+ else this.token(`"${value1}"`);
29177
28994
  }
29178
28995
  function InterpreterDirective(node) {
29179
28996
  this.token(`#!${node.value}`);
@@ -29390,10 +29207,7 @@ var __webpack_modules__ = {
29390
29207
  },
29391
29208
  DecimalLiteral (node) {
29392
29209
  const raw = this.getPossibleRaw(node);
29393
- if (!this.format.minified && void 0 !== raw) {
29394
- this.word(raw);
29395
- return;
29396
- }
29210
+ if (!this.format.minified && void 0 !== raw) return void this.word(raw);
29397
29211
  this.word(node.value + "m");
29398
29212
  }
29399
29213
  };
@@ -30757,10 +30571,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
30757
30571
  const useAssertKeyword = "assert" === importAttributesKeyword || !importAttributesKeyword && assertions;
30758
30572
  this.word(useAssertKeyword ? "assert" : "with");
30759
30573
  this.space();
30760
- if (!useAssertKeyword && "with" !== importAttributesKeyword) {
30761
- this.printList(attributes || assertions);
30762
- return;
30763
- }
30574
+ if (!useAssertKeyword && "with" !== importAttributesKeyword) return void this.printList(attributes || assertions);
30764
30575
  const occurrenceCount = hasPreviousBrace ? 1 : 0;
30765
30576
  this.token("{", null, occurrenceCount);
30766
30577
  this.space();
@@ -31312,10 +31123,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
31312
31123
  this.print(node.key);
31313
31124
  this.tokenChar(93);
31314
31125
  } else {
31315
- if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) {
31316
- this.print(node.value);
31317
- return;
31318
- }
31126
+ if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) return void this.print(node.value);
31319
31127
  this.print(node.key);
31320
31128
  if (node.shorthand && isIdentifier(node.key) && isIdentifier(node.value) && node.key.name === node.value.name) return;
31321
31129
  }
@@ -31403,19 +31211,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
31403
31211
  }
31404
31212
  function StringLiteral(node) {
31405
31213
  const raw = this.getPossibleRaw(node);
31406
- if (!this.format.minified && void 0 !== raw) {
31407
- this.token(raw);
31408
- return;
31409
- }
31214
+ if (!this.format.minified && void 0 !== raw) return void this.token(raw);
31410
31215
  const val = _jsesc(node.value, this.format.jsescOption);
31411
31216
  this.token(val);
31412
31217
  }
31413
31218
  function BigIntLiteral(node) {
31414
31219
  const raw = this.getPossibleRaw(node);
31415
- if (!this.format.minified && void 0 !== raw) {
31416
- this.word(raw);
31417
- return;
31418
- }
31220
+ if (!this.format.minified && void 0 !== raw) return void this.word(raw);
31419
31221
  this.word(node.value + "n");
31420
31222
  }
31421
31223
  const validTopicTokenSet = new Set([
@@ -31590,10 +31392,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
31590
31392
  maybePrintTrailingCommaOrSemicolon(this, node);
31591
31393
  }
31592
31394
  function maybePrintTrailingCommaOrSemicolon(printer, node) {
31593
- if (!printer.tokenMap || !node.start || !node.end) {
31594
- printer.semicolon();
31595
- return;
31596
- }
31395
+ if (!printer.tokenMap || !node.start || !node.end) return void printer.semicolon();
31597
31396
  if (printer.tokenMap.endMatches(node, ",")) printer.token(",");
31598
31397
  else if (printer.tokenMap.endMatches(node, ";")) printer.semicolon();
31599
31398
  }
@@ -31966,10 +31765,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
31966
31765
  this.space();
31967
31766
  }
31968
31767
  this.print(id);
31969
- if (!node.body) {
31970
- this.semicolon();
31971
- return;
31972
- }
31768
+ if (!node.body) return void this.semicolon();
31973
31769
  let body = node.body;
31974
31770
  while("TSModuleDeclaration" === body.type){
31975
31771
  this.tokenChar(46);
@@ -32871,10 +32667,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32871
32667
  if (i <= 0) return;
32872
32668
  if (!force) {
32873
32669
  if (this.format.retainLines || this.format.compact) return;
32874
- if (this.format.concise) {
32875
- this.space();
32876
- return;
32877
- }
32670
+ if (this.format.concise) return void this.space();
32878
32671
  }
32879
32672
  if (i > 2) i = 2;
32880
32673
  i -= this._buf.getNewlineCount();
@@ -32893,10 +32686,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32893
32686
  this._buf.removeTrailingNewline();
32894
32687
  }
32895
32688
  exactSource(loc, cb) {
32896
- if (!loc) {
32897
- cb();
32898
- return;
32899
- }
32689
+ if (!loc) return void cb();
32900
32690
  this._catchUp("start", loc);
32901
32691
  this._buf.exactSource(loc, cb);
32902
32692
  }
@@ -33120,7 +32910,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
33120
32910
  const len = nodes.length;
33121
32911
  for(let i = 0; i < len; i++){
33122
32912
  const node = nodes[i];
33123
- if (!!node) {
32913
+ if (node) {
33124
32914
  if (statement) this._printNewline(0 === i, newlineOpts);
33125
32915
  this.print(node, void 0, trailingCommentsLineOffset || 0);
33126
32916
  null == iterator || iterator(node, i);
@@ -33202,19 +32992,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
33202
32992
  _printNewline(newLine, opts) {
33203
32993
  const format = this.format;
33204
32994
  if (format.retainLines || format.compact) return;
33205
- if (format.concise) {
33206
- this.space();
33207
- return;
33208
- }
32995
+ if (format.concise) return void this.space();
33209
32996
  if (!newLine) return;
33210
32997
  const startLine = opts.nextNodeStartLine;
33211
32998
  const lastCommentLine = this._lastCommentLine;
33212
32999
  if (startLine > 0 && lastCommentLine > 0) {
33213
33000
  const offset = startLine - lastCommentLine;
33214
- if (offset >= 0) {
33215
- this.newline(offset || 1);
33216
- return;
33217
- }
33001
+ if (offset >= 0) return void this.newline(offset || 1);
33218
33002
  }
33219
33003
  if (this._buf.hasContent()) this.newline(1);
33220
33004
  }
@@ -33391,22 +33175,20 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
33391
33175
  var _originalMapping;
33392
33176
  this._rawMappings = void 0;
33393
33177
  let originalMapping;
33394
- if (null != line) {
33395
- if (this._inputMap) {
33396
- originalMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, {
33397
- line,
33398
- column
33399
- });
33400
- if (!originalMapping.name && identifierNamePos) {
33401
- const originalIdentifierMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, identifierNamePos);
33402
- if (originalIdentifierMapping.name) identifierName = originalIdentifierMapping.name;
33403
- }
33404
- } else originalMapping = {
33405
- source: (null == filename ? void 0 : filename.replace(/\\/g, "/")) || this._sourceFileName,
33406
- line: line,
33407
- column: column
33408
- };
33409
- }
33178
+ if (null != line) if (this._inputMap) {
33179
+ originalMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, {
33180
+ line,
33181
+ column
33182
+ });
33183
+ if (!originalMapping.name && identifierNamePos) {
33184
+ const originalIdentifierMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, identifierNamePos);
33185
+ if (originalIdentifierMapping.name) identifierName = originalIdentifierMapping.name;
33186
+ }
33187
+ } else originalMapping = {
33188
+ source: (null == filename ? void 0 : filename.replace(/\\/g, "/")) || this._sourceFileName,
33189
+ line: line,
33190
+ column: column
33191
+ };
33410
33192
  (0, _genMapping.maybeAddMapping)(this._map, {
33411
33193
  name: identifierName,
33412
33194
  generated,
@@ -33580,10 +33362,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
33580
33362
  const keys = VISITOR_KEYS[node.type];
33581
33363
  for (const key of keys){
33582
33364
  const child = node[key];
33583
- if (!!child) {
33584
- if (Array.isArray(child)) yield* child;
33585
- else yield child;
33586
- }
33365
+ if (child) if (Array.isArray(child)) yield* child;
33366
+ else yield child;
33587
33367
  }
33588
33368
  }
33589
33369
  },
@@ -33656,15 +33436,14 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
33656
33436
  ++pos;
33657
33437
  ++curLine;
33658
33438
  lineStart = pos;
33659
- } else if (10 === ch || 13 === ch) {
33660
- if ("template" === type) {
33661
- out += input.slice(chunkStart, pos) + "\n";
33662
- ++pos;
33663
- if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
33664
- ++curLine;
33665
- chunkStart = lineStart = pos;
33666
- } else errors.unterminated(initialPos, initialLineStart, initialCurLine);
33667
- } else ++pos;
33439
+ } else if (10 === ch || 13 === ch) if ("template" === type) {
33440
+ out += input.slice(chunkStart, pos) + "\n";
33441
+ ++pos;
33442
+ if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
33443
+ ++curLine;
33444
+ chunkStart = lineStart = pos;
33445
+ } else errors.unterminated(initialPos, initialLineStart, initialCurLine);
33446
+ else ++pos;
33668
33447
  }
33669
33448
  return {
33670
33449
  pos,
@@ -33738,10 +33517,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
33738
33517
  }
33739
33518
  pos += octalStr.length - 1;
33740
33519
  const next = input.charCodeAt(pos);
33741
- if ("0" !== octalStr || 56 === next || 57 === next) {
33742
- if (inTemplate) return res(null);
33743
- errors.strictNumericEscape(startPos, lineStart, curLine);
33744
- }
33520
+ if ("0" !== octalStr || 56 === next || 57 === next) if (inTemplate) return res(null);
33521
+ else errors.strictNumericEscape(startPos, lineStart, curLine);
33745
33522
  return res(String.fromCharCode(octal));
33746
33523
  }
33747
33524
  return res(String.fromCharCode(ch));
@@ -33751,10 +33528,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
33751
33528
  const initialPos = pos;
33752
33529
  let n;
33753
33530
  ({ n, pos } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
33754
- if (null === n) {
33755
- if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
33756
- else pos = initialPos - 1;
33757
- }
33531
+ if (null === n) if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
33532
+ else pos = initialPos - 1;
33758
33533
  return {
33759
33534
  code: n,
33760
33535
  pos
@@ -33791,17 +33566,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
33791
33566
  continue;
33792
33567
  }
33793
33568
  val = code >= 97 ? code - 97 + 10 : code >= 65 ? code - 65 + 10 : _isDigit(code) ? code - 48 : 1 / 0;
33794
- if (val >= radix) {
33795
- if (val <= 9 && bailOnError) return {
33796
- n: null,
33797
- pos
33798
- };
33799
- if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
33800
- else if (forceLen) {
33801
- val = 0;
33802
- invalid = true;
33803
- } else break;
33804
- }
33569
+ if (val >= radix) if (val <= 9 && bailOnError) return {
33570
+ n: null,
33571
+ pos
33572
+ };
33573
+ else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
33574
+ else if (forceLen) {
33575
+ val = 0;
33576
+ invalid = true;
33577
+ } else break;
33805
33578
  ++pos;
33806
33579
  total = total * radix + val;
33807
33580
  }
@@ -33821,13 +33594,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
33821
33594
  ++pos;
33822
33595
  ({ code, pos } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
33823
33596
  ++pos;
33824
- if (null !== code && code > 0x10ffff) {
33825
- if (!throwOnInvalid) return {
33826
- code: null,
33827
- pos
33828
- };
33829
- errors.invalidCodePoint(pos, lineStart, curLine);
33830
- }
33597
+ if (null !== code && code > 0x10ffff) if (!throwOnInvalid) return {
33598
+ code: null,
33599
+ pos
33600
+ };
33601
+ else errors.invalidCodePoint(pos, lineStart, curLine);
33831
33602
  } else ({ code, pos } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
33832
33603
  return {
33833
33604
  code,
@@ -37817,15 +37588,14 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37817
37588
  ++pos;
37818
37589
  ++curLine;
37819
37590
  lineStart = pos;
37820
- } else if (10 === ch || 13 === ch) {
37821
- if ("template" === type) {
37822
- out += input.slice(chunkStart, pos) + "\n";
37823
- ++pos;
37824
- if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
37825
- ++curLine;
37826
- chunkStart = lineStart = pos;
37827
- } else errors.unterminated(initialPos, initialLineStart, initialCurLine);
37828
- } else ++pos;
37591
+ } else if (10 === ch || 13 === ch) if ("template" === type) {
37592
+ out += input.slice(chunkStart, pos) + "\n";
37593
+ ++pos;
37594
+ if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
37595
+ ++curLine;
37596
+ chunkStart = lineStart = pos;
37597
+ } else errors.unterminated(initialPos, initialLineStart, initialCurLine);
37598
+ else ++pos;
37829
37599
  }
37830
37600
  return {
37831
37601
  pos,
@@ -37899,10 +37669,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37899
37669
  }
37900
37670
  pos += octalStr.length - 1;
37901
37671
  const next = input.charCodeAt(pos);
37902
- if ("0" !== octalStr || 56 === next || 57 === next) {
37903
- if (inTemplate) return res(null);
37904
- errors.strictNumericEscape(startPos, lineStart, curLine);
37905
- }
37672
+ if ("0" !== octalStr || 56 === next || 57 === next) if (inTemplate) return res(null);
37673
+ else errors.strictNumericEscape(startPos, lineStart, curLine);
37906
37674
  return res(String.fromCharCode(octal));
37907
37675
  }
37908
37676
  return res(String.fromCharCode(ch));
@@ -37912,10 +37680,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37912
37680
  const initialPos = pos;
37913
37681
  let n;
37914
37682
  ({ n, pos } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
37915
- if (null === n) {
37916
- if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
37917
- else pos = initialPos - 1;
37918
- }
37683
+ if (null === n) if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
37684
+ else pos = initialPos - 1;
37919
37685
  return {
37920
37686
  code: n,
37921
37687
  pos
@@ -37952,17 +37718,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37952
37718
  continue;
37953
37719
  }
37954
37720
  val = code >= 97 ? code - 97 + 10 : code >= 65 ? code - 65 + 10 : _isDigit(code) ? code - 48 : 1 / 0;
37955
- if (val >= radix) {
37956
- if (val <= 9 && bailOnError) return {
37957
- n: null,
37958
- pos
37959
- };
37960
- if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
37961
- else if (forceLen) {
37962
- val = 0;
37963
- invalid = true;
37964
- } else break;
37965
- }
37721
+ if (val >= radix) if (val <= 9 && bailOnError) return {
37722
+ n: null,
37723
+ pos
37724
+ };
37725
+ else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
37726
+ else if (forceLen) {
37727
+ val = 0;
37728
+ invalid = true;
37729
+ } else break;
37966
37730
  ++pos;
37967
37731
  total = total * radix + val;
37968
37732
  }
@@ -37982,13 +37746,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37982
37746
  ++pos;
37983
37747
  ({ code, pos } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
37984
37748
  ++pos;
37985
- if (null !== code && code > 0x10ffff) {
37986
- if (!throwOnInvalid) return {
37987
- code: null,
37988
- pos
37989
- };
37990
- errors.invalidCodePoint(pos, lineStart, curLine);
37991
- }
37749
+ if (null !== code && code > 0x10ffff) if (!throwOnInvalid) return {
37750
+ code: null,
37751
+ pos
37752
+ };
37753
+ else errors.invalidCodePoint(pos, lineStart, curLine);
37992
37754
  } else ({ code, pos } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
37993
37755
  return {
37994
37756
  code,
@@ -38149,10 +37911,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38149
37911
  this.skipSpace();
38150
37912
  this.state.start = this.state.pos;
38151
37913
  if (!this.isLookahead) this.state.startLoc = this.state.curPosition();
38152
- if (this.state.pos >= this.length) {
38153
- this.finishToken(140);
38154
- return;
38155
- }
37914
+ if (this.state.pos >= this.length) return void this.finishToken(140);
38156
37915
  this.getTokenFromCode(this.codePointAtPos(this.state.pos));
38157
37916
  }
38158
37917
  skipBlockComment(commentEnd) {
@@ -38310,10 +38069,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38310
38069
  }
38311
38070
  readToken_dot() {
38312
38071
  const next = this.input.charCodeAt(this.state.pos + 1);
38313
- if (next >= 48 && next <= 57) {
38314
- this.readNumber(true);
38315
- return;
38316
- }
38072
+ if (next >= 48 && next <= 57) return void this.readNumber(true);
38317
38073
  if (46 === next && 46 === this.input.charCodeAt(this.state.pos + 2)) {
38318
38074
  this.state.pos += 3;
38319
38075
  this.finishToken(21);
@@ -38361,10 +38117,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38361
38117
  return;
38362
38118
  }
38363
38119
  if (124 === code) {
38364
- if (62 === next) {
38365
- this.finishOp(39, 2);
38366
- return;
38367
- }
38120
+ if (62 === next) return void this.finishOp(39, 2);
38368
38121
  if (this.hasPlugin("recordAndTuple") && 125 === next) {
38369
38122
  if ("bar" !== this.getPluginOption("recordAndTuple", "syntaxType")) throw this.raise(Errors.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
38370
38123
  this.state.pos += 2;
@@ -38378,27 +38131,23 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38378
38131
  return;
38379
38132
  }
38380
38133
  }
38381
- if (61 === next) {
38382
- this.finishOp(30, 2);
38383
- return;
38384
- }
38134
+ if (61 === next) return void this.finishOp(30, 2);
38385
38135
  this.finishOp(124 === code ? 43 : 45, 1);
38386
38136
  }
38387
38137
  readToken_caret() {
38388
38138
  const next = this.input.charCodeAt(this.state.pos + 1);
38389
- if (61 !== next || this.state.inType) {
38390
- if (94 === next && this.hasPlugin([
38391
- "pipelineOperator",
38392
- {
38393
- proposal: "hack",
38394
- topicToken: "^^"
38395
- }
38396
- ])) {
38397
- this.finishOp(37, 2);
38398
- const lookaheadCh = this.input.codePointAt(this.state.pos);
38399
- if (94 === lookaheadCh) this.unexpected();
38400
- } else this.finishOp(44, 1);
38401
- } else this.finishOp(32, 2);
38139
+ if (61 !== next || this.state.inType) if (94 === next && this.hasPlugin([
38140
+ "pipelineOperator",
38141
+ {
38142
+ proposal: "hack",
38143
+ topicToken: "^^"
38144
+ }
38145
+ ])) {
38146
+ this.finishOp(37, 2);
38147
+ const lookaheadCh = this.input.codePointAt(this.state.pos);
38148
+ if (94 === lookaheadCh) this.unexpected();
38149
+ } else this.finishOp(44, 1);
38150
+ else this.finishOp(32, 2);
38402
38151
  }
38403
38152
  readToken_atSign() {
38404
38153
  const next = this.input.charCodeAt(this.state.pos + 1);
@@ -38413,10 +38162,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38413
38162
  }
38414
38163
  readToken_plus_min(code) {
38415
38164
  const next = this.input.charCodeAt(this.state.pos + 1);
38416
- if (next === code) {
38417
- this.finishOp(34, 2);
38418
- return;
38419
- }
38165
+ if (next === code) return void this.finishOp(34, 2);
38420
38166
  if (61 === next) this.finishOp(30, 2);
38421
38167
  else this.finishOp(53, 1);
38422
38168
  }
@@ -38424,17 +38170,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38424
38170
  const { pos } = this.state;
38425
38171
  const next = this.input.charCodeAt(pos + 1);
38426
38172
  if (60 === next) {
38427
- if (61 === this.input.charCodeAt(pos + 2)) {
38428
- this.finishOp(30, 3);
38429
- return;
38430
- }
38173
+ if (61 === this.input.charCodeAt(pos + 2)) return void this.finishOp(30, 3);
38431
38174
  this.finishOp(51, 2);
38432
38175
  return;
38433
38176
  }
38434
- if (61 === next) {
38435
- this.finishOp(49, 2);
38436
- return;
38437
- }
38177
+ if (61 === next) return void this.finishOp(49, 2);
38438
38178
  this.finishOp(47, 1);
38439
38179
  }
38440
38180
  readToken_gt() {
@@ -38442,25 +38182,16 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38442
38182
  const next = this.input.charCodeAt(pos + 1);
38443
38183
  if (62 === next) {
38444
38184
  const size = 62 === this.input.charCodeAt(pos + 2) ? 3 : 2;
38445
- if (61 === this.input.charCodeAt(pos + size)) {
38446
- this.finishOp(30, size + 1);
38447
- return;
38448
- }
38185
+ if (61 === this.input.charCodeAt(pos + size)) return void this.finishOp(30, size + 1);
38449
38186
  this.finishOp(52, size);
38450
38187
  return;
38451
38188
  }
38452
- if (61 === next) {
38453
- this.finishOp(49, 2);
38454
- return;
38455
- }
38189
+ if (61 === next) return void this.finishOp(49, 2);
38456
38190
  this.finishOp(48, 1);
38457
38191
  }
38458
38192
  readToken_eq_excl(code) {
38459
38193
  const next = this.input.charCodeAt(this.state.pos + 1);
38460
- if (61 === next) {
38461
- this.finishOp(46, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2);
38462
- return;
38463
- }
38194
+ if (61 === next) return void this.finishOp(46, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2);
38464
38195
  if (61 === code && 62 === next) {
38465
38196
  this.state.pos += 2;
38466
38197
  this.finishToken(19);
@@ -38471,10 +38202,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38471
38202
  readToken_question() {
38472
38203
  const next = this.input.charCodeAt(this.state.pos + 1);
38473
38204
  const next2 = this.input.charCodeAt(this.state.pos + 2);
38474
- if (63 === next) {
38475
- if (61 === next2) this.finishOp(30, 3);
38476
- else this.finishOp(40, 2);
38477
- } else if (46 !== next || next2 >= 48 && next2 <= 57) {
38205
+ if (63 === next) if (61 === next2) this.finishOp(30, 3);
38206
+ else this.finishOp(40, 2);
38207
+ else if (46 !== next || next2 >= 48 && next2 <= 57) {
38478
38208
  ++this.state.pos;
38479
38209
  this.finishToken(17);
38480
38210
  } else {
@@ -38547,18 +38277,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38547
38277
  case 48:
38548
38278
  {
38549
38279
  const next = this.input.charCodeAt(this.state.pos + 1);
38550
- if (120 === next || 88 === next) {
38551
- this.readRadixNumber(16);
38552
- return;
38553
- }
38554
- if (111 === next || 79 === next) {
38555
- this.readRadixNumber(8);
38556
- return;
38557
- }
38558
- if (98 === next || 66 === next) {
38559
- this.readRadixNumber(2);
38560
- return;
38561
- }
38280
+ if (120 === next || 88 === next) return void this.readRadixNumber(16);
38281
+ if (111 === next || 79 === next) return void this.readRadixNumber(8);
38282
+ if (98 === next || 66 === next) return void this.readRadixNumber(2);
38562
38283
  }
38563
38284
  case 49:
38564
38285
  case 50:
@@ -38616,10 +38337,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38616
38337
  this.readWord();
38617
38338
  return;
38618
38339
  default:
38619
- if (isIdentifierStart(code)) {
38620
- this.readWord(code);
38621
- return;
38622
- }
38340
+ if (isIdentifierStart(code)) return void this.readWord(code);
38623
38341
  }
38624
38342
  throw this.raise(Errors.InvalidOrUnexpectedToken, this.state.curPosition(), {
38625
38343
  unexpected: String.fromCodePoint(code)
@@ -38745,14 +38463,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38745
38463
  }
38746
38464
  if (isIdentifierStart(this.codePointAtPos(this.state.pos))) throw this.raise(Errors.NumberIdentifier, this.state.curPosition());
38747
38465
  const str = this.input.slice(start, this.state.pos).replace(/[_mn]/g, "");
38748
- if (isBigInt) {
38749
- this.finishToken(136, str);
38750
- return;
38751
- }
38752
- if (isDecimal) {
38753
- this.finishToken(137, str);
38754
- return;
38755
- }
38466
+ if (isBigInt) return void this.finishToken(136, str);
38467
+ if (isDecimal) return void this.finishToken(137, str);
38756
38468
  const val = isOctal ? parseInt(str, 8) : parseFloat(str);
38757
38469
  this.finishToken(135, val);
38758
38470
  }
@@ -39453,11 +39165,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
39453
39165
  addComment(comment) {
39454
39166
  if (void 0 === this.flowPragma) {
39455
39167
  const matches = FLOW_PRAGMA_REGEX.exec(comment.value);
39456
- if (matches) {
39457
- if ("flow" === matches[1]) this.flowPragma = "flow";
39458
- else if ("noflow" === matches[1]) this.flowPragma = "noflow";
39459
- else throw new Error("Unexpected flow pragma");
39460
- }
39168
+ if (matches) if ("flow" === matches[1]) this.flowPragma = "flow";
39169
+ else if ("noflow" === matches[1]) this.flowPragma = "noflow";
39170
+ else throw new Error("Unexpected flow pragma");
39461
39171
  }
39462
39172
  super.addComment(comment);
39463
39173
  }
@@ -39529,8 +39239,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
39529
39239
  if (this.match(80)) return this.flowParseDeclareClass(node);
39530
39240
  if (this.match(68)) return this.flowParseDeclareFunction(node);
39531
39241
  if (this.match(74)) return this.flowParseDeclareVariable(node);
39532
- if (this.eatContextual(127)) {
39533
- if (this.match(16)) return this.flowParseDeclareModuleExports(node);
39242
+ if (this.eatContextual(127)) if (this.match(16)) return this.flowParseDeclareModuleExports(node);
39243
+ else {
39534
39244
  if (insideModule) this.raise(FlowErrors.NestedDeclareModule, this.state.lastTokStartLoc);
39535
39245
  return this.flowParseDeclareModule(node);
39536
39246
  }
@@ -40153,12 +39863,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
40153
39863
  {
40154
39864
  const node = this.startNode();
40155
39865
  this.next();
40156
- if (!this.match(11) && !this.match(21)) {
40157
- if (tokenIsIdentifier(this.state.type) || this.match(78)) {
40158
- const token = this.lookahead().type;
40159
- isGroupedType = 17 !== token && 14 !== token;
40160
- } else isGroupedType = true;
40161
- }
39866
+ if (!this.match(11) && !this.match(21)) if (tokenIsIdentifier(this.state.type) || this.match(78)) {
39867
+ const token = this.lookahead().type;
39868
+ isGroupedType = 17 !== token && 14 !== token;
39869
+ } else isGroupedType = true;
40162
39870
  if (isGroupedType) {
40163
39871
  this.state.noAnonFunctionType = false;
40164
39872
  type = this.flowParseType();
@@ -40339,10 +40047,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
40339
40047
  return variance;
40340
40048
  }
40341
40049
  parseFunctionBody(node, allowExpressionBody, isMethod = false) {
40342
- if (allowExpressionBody) {
40343
- this.forwardNoArrowParamsConversionAt(node, ()=>super.parseFunctionBody(node, true, isMethod));
40344
- return;
40345
- }
40050
+ if (allowExpressionBody) return void this.forwardNoArrowParamsConversionAt(node, ()=>super.parseFunctionBody(node, true, isMethod));
40346
40051
  super.parseFunctionBody(node, false, isMethod);
40347
40052
  }
40348
40053
  parseFunctionBodyAndFinish(node, type, isMethod = false) {
@@ -40376,8 +40081,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
40376
40081
  if (this.match(80) || tokenIsIdentifier(this.state.type) || this.match(68) || this.match(74) || this.match(82)) return this.flowParseDeclare(node);
40377
40082
  } else if (tokenIsIdentifier(this.state.type)) {
40378
40083
  if ("interface" === expr.name) return this.flowParseInterface(node);
40379
- if ("type" === expr.name) return this.flowParseTypeAlias(node);
40380
- if ("opaque" === expr.name) return this.flowParseOpaqueType(node, false);
40084
+ else if ("type" === expr.name) return this.flowParseTypeAlias(node);
40085
+ else if ("opaque" === expr.name) return this.flowParseOpaqueType(node, false);
40381
40086
  }
40382
40087
  }
40383
40088
  return super.parseExpressionStatement(node, expr, decorators);
@@ -40588,10 +40293,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
40588
40293
  const next = this.input.charCodeAt(this.state.pos + 1);
40589
40294
  if (123 === code && 124 === next) this.finishOp(6, 2);
40590
40295
  else if (this.state.inType && (62 === code || 60 === code)) this.finishOp(62 === code ? 48 : 47, 1);
40591
- else if (this.state.inType && 63 === code) {
40592
- if (46 === next) this.finishOp(18, 2);
40593
- else this.finishOp(17, 1);
40594
- } else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) {
40296
+ else if (this.state.inType && 63 === code) if (46 === next) this.finishOp(18, 2);
40297
+ else this.finishOp(17, 1);
40298
+ else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) {
40595
40299
  this.state.pos += 2;
40596
40300
  this.readIterator();
40597
40301
  } else super.getTokenFromCode(code);
@@ -40988,10 +40692,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
40988
40692
  }
40989
40693
  readToken_pipe_amp(code) {
40990
40694
  const next = this.input.charCodeAt(this.state.pos + 1);
40991
- if (124 === code && 125 === next) {
40992
- this.finishOp(9, 2);
40993
- return;
40994
- }
40695
+ if (124 === code && 125 === next) return void this.finishOp(9, 2);
40995
40696
  super.readToken_pipe_amp(code);
40996
40697
  }
40997
40698
  parseTopLevel(file, program) {
@@ -41258,22 +40959,21 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
41258
40959
  const strsLen = members.stringMembers.length;
41259
40960
  const defaultedLen = members.defaultedMembers.length;
41260
40961
  if (!boolsLen && !numsLen && !strsLen && !defaultedLen) return empty();
41261
- if (boolsLen || numsLen) {
41262
- if (numsLen || strsLen || !(boolsLen >= defaultedLen)) {
41263
- if (boolsLen || strsLen || !(numsLen >= defaultedLen)) {
41264
- this.raise(FlowErrors.EnumInconsistentMemberValues, nameLoc, {
41265
- enumName
41266
- });
41267
- return empty();
41268
- }
41269
- for (const member of members.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(member.loc.start, {
41270
- enumName,
41271
- memberName: member.id.name
41272
- });
41273
- node.members = members.numberMembers;
41274
- this.expect(8);
41275
- return this.finishNode(node, "EnumNumberBody");
41276
- }
40962
+ if (boolsLen || numsLen) if (numsLen || strsLen || !(boolsLen >= defaultedLen)) if (boolsLen || strsLen || !(numsLen >= defaultedLen)) {
40963
+ this.raise(FlowErrors.EnumInconsistentMemberValues, nameLoc, {
40964
+ enumName
40965
+ });
40966
+ return empty();
40967
+ } else {
40968
+ for (const member of members.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(member.loc.start, {
40969
+ enumName,
40970
+ memberName: member.id.name
40971
+ });
40972
+ node.members = members.numberMembers;
40973
+ this.expect(8);
40974
+ return this.finishNode(node, "EnumNumberBody");
40975
+ }
40976
+ else {
41277
40977
  for (const member of members.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(member.loc.start, {
41278
40978
  enumName,
41279
40979
  memberName: member.id.name
@@ -41890,24 +41590,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
41890
41590
  }
41891
41591
  getTokenFromCode(code) {
41892
41592
  const context = this.curContext();
41893
- if (context === types.j_expr) {
41894
- this.jsxReadToken();
41895
- return;
41896
- }
41593
+ if (context === types.j_expr) return void this.jsxReadToken();
41897
41594
  if (context === types.j_oTag || context === types.j_cTag) {
41898
- if (isIdentifierStart(code)) {
41899
- this.jsxReadWord();
41900
- return;
41901
- }
41595
+ if (isIdentifierStart(code)) return void this.jsxReadWord();
41902
41596
  if (62 === code) {
41903
41597
  ++this.state.pos;
41904
41598
  this.finishToken(144);
41905
41599
  return;
41906
41600
  }
41907
- if ((34 === code || 39 === code) && context === types.j_oTag) {
41908
- this.jsxReadString(code);
41909
- return;
41910
- }
41601
+ if ((34 === code || 39 === code) && context === types.j_oTag) return void this.jsxReadString(code);
41911
41602
  }
41912
41603
  if (60 === code && this.state.canStartJSXElement && 33 !== this.input.charCodeAt(this.state.pos + 1)) {
41913
41604
  ++this.state.pos;
@@ -42004,10 +41695,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
42004
41695
  }
42005
41696
  return true;
42006
41697
  }
42007
- if (128 & bindingType && (8 & type) > 0) {
42008
- if (2 & scope.names.get(name)) return !!(1 & bindingType);
42009
- return false;
42010
- }
41698
+ if (128 & bindingType && (8 & type) > 0) if (2 & scope.names.get(name)) return !!(1 & bindingType);
41699
+ else return false;
42011
41700
  if (2 & bindingType && (1 & type) > 0) return true;
42012
41701
  return super.isRedeclaredInScope(scope, name, bindingType);
42013
41702
  }
@@ -42090,7 +41779,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
42090
41779
  const end = exprList.length - 1;
42091
41780
  for(let i = 0; i <= end; i++){
42092
41781
  const elt = exprList[i];
42093
- if (!!elt) {
41782
+ if (elt) {
42094
41783
  if ("SpreadElement" === elt.type) {
42095
41784
  elt.type = "RestElement";
42096
41785
  const arg = elt.argument;
@@ -42269,10 +41958,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
42269
41958
  if ("Identifier" === type) {
42270
41959
  this.checkIdentifier(expression, binding, strictModeChanged);
42271
41960
  const { name } = expression;
42272
- if (checkClashes) {
42273
- if (checkClashes.has(name)) this.raise(Errors.ParamDupe, expression);
42274
- else checkClashes.add(name);
42275
- }
41961
+ if (checkClashes) if (checkClashes.has(name)) this.raise(Errors.ParamDupe, expression);
41962
+ else checkClashes.add(name);
42276
41963
  return;
42277
41964
  }
42278
41965
  const validity = this.isValidLVal(type, !(hasParenthesizedAncestor || null != (_expression$extra = expression.extra) && _expression$extra.parenthesized) && "AssignmentExpression" === ancestor.type, binding);
@@ -42298,14 +41985,12 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
42298
41985
  } else if (val) this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
42299
41986
  }
42300
41987
  checkIdentifier(at, bindingType, strictModeChanged = false) {
42301
- if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) {
42302
- if (64 === bindingType) this.raise(Errors.StrictEvalArguments, at, {
42303
- referenceName: at.name
42304
- });
42305
- else this.raise(Errors.StrictEvalArgumentsBinding, at, {
42306
- bindingName: at.name
42307
- });
42308
- }
41988
+ if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) if (64 === bindingType) this.raise(Errors.StrictEvalArguments, at, {
41989
+ referenceName: at.name
41990
+ });
41991
+ else this.raise(Errors.StrictEvalArgumentsBinding, at, {
41992
+ bindingName: at.name
41993
+ });
42309
41994
  if (8192 & bindingType && "let" === at.name) this.raise(Errors.LetInLexicalBinding, at);
42310
41995
  if (!(64 & bindingType)) this.declareNameFromIdentifier(at, bindingType);
42311
41996
  }
@@ -42533,17 +42218,16 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
42533
42218
  const { startLoc } = this.state;
42534
42219
  const modifier = this.tsParseModifier(allowedModifiers.concat(null != disallowedModifiers ? disallowedModifiers : []), stopOnStartOfClassStaticBlock);
42535
42220
  if (!modifier) break;
42536
- if (tsIsAccessModifier(modifier)) {
42537
- if (modified.accessibility) this.raise(TSErrors.DuplicateAccessibilityModifier, startLoc, {
42538
- modifier
42539
- });
42540
- else {
42541
- enforceOrder(startLoc, modifier, modifier, "override");
42542
- enforceOrder(startLoc, modifier, modifier, "static");
42543
- enforceOrder(startLoc, modifier, modifier, "readonly");
42544
- modified.accessibility = modifier;
42545
- }
42546
- } else if (tsIsVarianceAnnotations(modifier)) {
42221
+ if (tsIsAccessModifier(modifier)) if (modified.accessibility) this.raise(TSErrors.DuplicateAccessibilityModifier, startLoc, {
42222
+ modifier
42223
+ });
42224
+ else {
42225
+ enforceOrder(startLoc, modifier, modifier, "override");
42226
+ enforceOrder(startLoc, modifier, modifier, "static");
42227
+ enforceOrder(startLoc, modifier, modifier, "readonly");
42228
+ modified.accessibility = modifier;
42229
+ }
42230
+ else if (tsIsVarianceAnnotations(modifier)) {
42547
42231
  if (modified[modifier]) this.raise(TSErrors.DuplicateModifier, startLoc, {
42548
42232
  modifier
42549
42233
  });
@@ -42610,10 +42294,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
42610
42294
  return result;
42611
42295
  }
42612
42296
  tsParseBracketedList(kind, parseElement, bracket, skipFirstToken, refTrailingCommaPos) {
42613
- if (!skipFirstToken) {
42614
- if (bracket) this.expect(0);
42615
- else this.expect(47);
42616
- }
42297
+ if (!skipFirstToken) if (bracket) this.expect(0);
42298
+ else this.expect(47);
42617
42299
  const result = this.tsParseDelimitedList(kind, parseElement, refTrailingCommaPos);
42618
42300
  if (bracket) this.expect(3);
42619
42301
  else this.expect(48);
@@ -42639,14 +42321,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
42639
42321
  }
42640
42322
  tsParseEntityName(flags) {
42641
42323
  let entity;
42642
- if (1 & flags && this.match(78)) {
42643
- if (2 & flags) entity = this.parseIdentifier(true);
42644
- else {
42645
- const node = this.startNode();
42646
- this.next();
42647
- entity = this.finishNode(node, "ThisExpression");
42648
- }
42649
- } else entity = this.parseIdentifier(!!(1 & flags));
42324
+ if (1 & flags && this.match(78)) if (2 & flags) entity = this.parseIdentifier(true);
42325
+ else {
42326
+ const node = this.startNode();
42327
+ this.next();
42328
+ entity = this.finishNode(node, "ThisExpression");
42329
+ }
42330
+ else entity = this.parseIdentifier(!!(1 & flags));
42650
42331
  while(this.eat(16)){
42651
42332
  const node = this.startNodeAtNode(entity);
42652
42333
  node.left = entity;
@@ -43559,7 +43240,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
43559
43240
  case "module":
43560
43241
  if (this.tsCheckLineTerminator(next)) {
43561
43242
  if (this.match(134)) return this.tsParseAmbientExternalModuleDeclaration(node);
43562
- if (tokenIsIdentifier(this.state.type)) {
43243
+ else if (tokenIsIdentifier(this.state.type)) {
43563
43244
  node.kind = "module";
43564
43245
  return this.tsParseModuleOrNamespaceDeclaration(node);
43565
43246
  }
@@ -43867,7 +43548,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
43867
43548
  const { isAmbientContext } = this.state;
43868
43549
  const declaration = super.parseVarStatement(node, kind, allowMissingInitializer || isAmbientContext);
43869
43550
  if (!isAmbientContext) return declaration;
43870
- for (const { id, init } of declaration.declarations)if (!!init) {
43551
+ for (const { id, init } of declaration.declarations)if (init) {
43871
43552
  if ("const" !== kind || id.typeAnnotation) this.raise(TSErrors.InitializerNotAllowedInAmbientContext, init);
43872
43553
  else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) this.raise(TSErrors.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, init);
43873
43554
  }
@@ -44281,14 +43962,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
44281
43962
  }
44282
43963
  getTokenFromCode(code) {
44283
43964
  if (this.state.inType) {
44284
- if (62 === code) {
44285
- this.finishOp(48, 1);
44286
- return;
44287
- }
44288
- if (60 === code) {
44289
- this.finishOp(47, 1);
44290
- return;
44291
- }
43965
+ if (62 === code) return void this.finishOp(48, 1);
43966
+ if (60 === code) return void this.finishOp(47, 1);
44292
43967
  }
44293
43968
  super.getTokenFromCode(code);
44294
43969
  }
@@ -44597,14 +44272,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
44597
44272
  this.next();
44598
44273
  const oldStrict = this.state.strict;
44599
44274
  const placeholder = this.parsePlaceholder("Identifier");
44600
- if (placeholder) {
44601
- if (this.match(81) || this.match(133) || this.match(5)) node.id = placeholder;
44602
- else if (optionalId || !isStatement) {
44603
- node.id = null;
44604
- node.body = this.finishPlaceholder(placeholder, "ClassBody");
44605
- return this.finishNode(node, type);
44606
- } else throw this.raise(PlaceholderErrors.ClassNameIsRequired, this.state.startLoc);
44607
- } else this.parseClassId(node, isStatement, optionalId);
44275
+ if (placeholder) if (this.match(81) || this.match(133) || this.match(5)) node.id = placeholder;
44276
+ else if (optionalId || !isStatement) {
44277
+ node.id = null;
44278
+ node.body = this.finishPlaceholder(placeholder, "ClassBody");
44279
+ return this.finishNode(node, type);
44280
+ } else throw this.raise(PlaceholderErrors.ClassNameIsRequired, this.state.startLoc);
44281
+ else this.parseClassId(node, isStatement, optionalId);
44608
44282
  super.parseClassSuper(node);
44609
44283
  node.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!node.superClass, oldStrict);
44610
44284
  return this.finishNode(node, type);
@@ -44783,15 +44457,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
44783
44457
  const key = prop.key;
44784
44458
  const name = "Identifier" === key.type ? key.name : key.value;
44785
44459
  if ("__proto__" === name) {
44786
- if (isRecord) {
44787
- this.raise(Errors.RecordNoProto, key);
44788
- return;
44789
- }
44790
- if (protoRef.used) {
44791
- if (refExpressionErrors) {
44792
- if (null === refExpressionErrors.doubleProtoLoc) refExpressionErrors.doubleProtoLoc = key.loc.start;
44793
- } else this.raise(Errors.DuplicateProto, key);
44794
- }
44460
+ if (isRecord) return void this.raise(Errors.RecordNoProto, key);
44461
+ if (protoRef.used) if (refExpressionErrors) {
44462
+ if (null === refExpressionErrors.doubleProtoLoc) refExpressionErrors.doubleProtoLoc = key.loc.start;
44463
+ } else this.raise(Errors.DuplicateProto, key);
44795
44464
  protoRef.used = true;
44796
44465
  }
44797
44466
  }
@@ -45209,10 +44878,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
45209
44878
  node = this.startNode();
45210
44879
  this.next();
45211
44880
  if (this.match(16)) return this.parseImportMetaProperty(node);
45212
- if (this.match(10)) {
45213
- if (256 & this.optionFlags) return this.parseImportCall(node);
45214
- return this.finishNode(node, "Import");
45215
- }
44881
+ if (this.match(10)) if (256 & this.optionFlags) return this.parseImportCall(node);
44882
+ else return this.finishNode(node, "Import");
45216
44883
  this.raise(Errors.UnsupportedImport, this.state.lastTokStartLoc);
45217
44884
  return this.finishNode(node, "Import");
45218
44885
  case 78:
@@ -45318,10 +44985,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
45318
44985
  this.next();
45319
44986
  return this.parseAsyncFunctionExpression(this.startNodeAtNode(id));
45320
44987
  }
45321
- if (tokenIsIdentifier(type)) {
45322
- if (61 === this.lookaheadCharCode()) return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id));
45323
- return id;
45324
- }
44988
+ if (tokenIsIdentifier(type)) if (61 === this.lookaheadCharCode()) return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id));
44989
+ else return id;
45325
44990
  if (90 === type) {
45326
44991
  this.resetPreviousNodeTrailingComments(id);
45327
44992
  return this.parseDo(this.startNodeAtNode(id), true);
@@ -45358,12 +45023,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
45358
45023
  return this.finishTopicReference(node, startLoc, pipeProposal, tokenType);
45359
45024
  }
45360
45025
  finishTopicReference(node, startLoc, pipeProposal, tokenType) {
45361
- if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) {
45362
- if ("hack" === pipeProposal) {
45363
- if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PipeTopicUnbound, startLoc);
45364
- this.registerTopicReference();
45365
- return this.finishNode(node, "TopicReference");
45366
- }
45026
+ if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) if ("hack" === pipeProposal) {
45027
+ if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PipeTopicUnbound, startLoc);
45028
+ this.registerTopicReference();
45029
+ return this.finishNode(node, "TopicReference");
45030
+ } else {
45367
45031
  if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PrimaryTopicNotAllowed, startLoc);
45368
45032
  this.registerTopicReference();
45369
45033
  return this.finishNode(node, "PipelinePrimaryTopicReference");
@@ -45985,39 +45649,21 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
45985
45649
  checkReservedWord(word, startLoc, checkKeywords, isBinding) {
45986
45650
  if (word.length > 10) return;
45987
45651
  if (!canBeReservedWord(word)) return;
45988
- if (checkKeywords && isKeyword(word)) {
45989
- this.raise(Errors.UnexpectedKeyword, startLoc, {
45990
- keyword: word
45991
- });
45992
- return;
45993
- }
45652
+ if (checkKeywords && isKeyword(word)) return void this.raise(Errors.UnexpectedKeyword, startLoc, {
45653
+ keyword: word
45654
+ });
45994
45655
  const reservedTest = this.state.strict ? isBinding ? isStrictBindReservedWord : isStrictReservedWord : isReservedWord;
45995
- if (reservedTest(word, this.inModule)) {
45996
- this.raise(Errors.UnexpectedReservedWord, startLoc, {
45997
- reservedWord: word
45998
- });
45999
- return;
46000
- }
45656
+ if (reservedTest(word, this.inModule)) return void this.raise(Errors.UnexpectedReservedWord, startLoc, {
45657
+ reservedWord: word
45658
+ });
46001
45659
  if ("yield" === word) {
46002
- if (this.prodParam.hasYield) {
46003
- this.raise(Errors.YieldBindingIdentifier, startLoc);
46004
- return;
46005
- }
45660
+ if (this.prodParam.hasYield) return void this.raise(Errors.YieldBindingIdentifier, startLoc);
46006
45661
  } else if ("await" === word) {
46007
- if (this.prodParam.hasAwait) {
46008
- this.raise(Errors.AwaitBindingIdentifier, startLoc);
46009
- return;
46010
- }
46011
- if (this.scope.inStaticBlock) {
46012
- this.raise(Errors.AwaitBindingIdentifierInStaticBlock, startLoc);
46013
- return;
46014
- }
45662
+ if (this.prodParam.hasAwait) return void this.raise(Errors.AwaitBindingIdentifier, startLoc);
45663
+ if (this.scope.inStaticBlock) return void this.raise(Errors.AwaitBindingIdentifierInStaticBlock, startLoc);
46015
45664
  this.expressionScope.recordAsyncArrowParametersError(startLoc);
46016
45665
  } else if ("arguments" === word) {
46017
- if (this.scope.inClassAndNotInNonArrowFunction) {
46018
- this.raise(Errors.ArgumentsInClass, startLoc);
46019
- return;
46020
- }
45666
+ if (this.scope.inClassAndNotInNonArrowFunction) return void this.raise(Errors.ArgumentsInClass, startLoc);
46021
45667
  }
46022
45668
  }
46023
45669
  recordAwaitIfAllowed() {
@@ -46029,10 +45675,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
46029
45675
  const node = this.startNodeAt(startLoc);
46030
45676
  this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter, node);
46031
45677
  if (this.eat(55)) this.raise(Errors.ObsoleteAwaitStar, node);
46032
- if (!this.scope.inFunction && !(1 & this.optionFlags)) {
46033
- if (this.isAmbiguousAwait()) this.ambiguousScriptDifferentAst = true;
46034
- else this.sawUnambiguousESM = true;
46035
- }
45678
+ if (!this.scope.inFunction && !(1 & this.optionFlags)) if (this.isAmbiguousAwait()) this.ambiguousScriptDifferentAst = true;
45679
+ else this.sawUnambiguousESM = true;
46036
45680
  if (!this.state.soloAwait) node.argument = this.parseMaybeUnary(null, true);
46037
45681
  return this.finishNode(node, "AwaitExpression");
46038
45682
  }
@@ -46946,15 +46590,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
46946
46590
  const decl = this.startNode();
46947
46591
  this.parseVarId(decl, kind);
46948
46592
  decl.init = this.eat(29) ? isFor ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null;
46949
- if (null === decl.init && !allowMissingInitializer) {
46950
- if ("Identifier" === decl.id.type || isFor && (this.match(58) || this.isContextual(102))) {
46951
- if (("const" === kind || "using" === kind || "await using" === kind) && !(this.match(58) || this.isContextual(102))) this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
46952
- kind
46953
- });
46954
- } else this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
46955
- kind: "destructuring"
46593
+ if (null === decl.init && !allowMissingInitializer) if ("Identifier" === decl.id.type || isFor && (this.match(58) || this.isContextual(102))) {
46594
+ if (("const" === kind || "using" === kind || "await using" === kind) && !(this.match(58) || this.isContextual(102))) this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
46595
+ kind
46956
46596
  });
46957
- }
46597
+ } else this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
46598
+ kind: "destructuring"
46599
+ });
46958
46600
  declarations.push(this.finishNode(decl, "VariableDeclarator"));
46959
46601
  if (!this.eat(12)) break;
46960
46602
  }
@@ -47096,10 +46738,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47096
46738
  const isStatic = this.isContextual(106);
47097
46739
  if (isStatic) {
47098
46740
  if (this.parseClassMemberFromModifier(classBody, member)) return;
47099
- if (this.eat(5)) {
47100
- this.parseClassStaticBlock(classBody, member);
47101
- return;
47102
- }
46741
+ if (this.eat(5)) return void this.parseClassStaticBlock(classBody, member);
47103
46742
  }
47104
46743
  this.parseClassMemberWithIsStatic(classBody, member, state, isStatic);
47105
46744
  }
@@ -47117,10 +46756,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47117
46756
  method.kind = "method";
47118
46757
  const isPrivateName = this.match(139);
47119
46758
  this.parseClassElementName(method);
47120
- if (isPrivateName) {
47121
- this.pushClassPrivateMethod(classBody, privateMethod, true, false);
47122
- return;
47123
- }
46759
+ if (isPrivateName) return void this.pushClassPrivateMethod(classBody, privateMethod, true, false);
47124
46760
  if (this.isNonstaticConstructor(publicMethod)) this.raise(Errors.ConstructorIsGenerator, publicMethod.key);
47125
46761
  this.pushClassMethod(classBody, publicMethod, true, false, false, false);
47126
46762
  return;
@@ -47133,10 +46769,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47133
46769
  this.parsePostMemberNameModifiers(publicMember);
47134
46770
  if (this.isClassMethod()) {
47135
46771
  method.kind = "method";
47136
- if (isPrivate) {
47137
- this.pushClassPrivateMethod(classBody, privateMethod, false, false);
47138
- return;
47139
- }
46772
+ if (isPrivate) return void this.pushClassPrivateMethod(classBody, privateMethod, false, false);
47140
46773
  const isConstructor = this.isNonstaticConstructor(publicMethod);
47141
46774
  let allowsDirectSuper = false;
47142
46775
  if (isConstructor) {
@@ -47147,36 +46780,31 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47147
46780
  allowsDirectSuper = state.hadSuperClass;
47148
46781
  }
47149
46782
  this.pushClassMethod(classBody, publicMethod, false, false, isConstructor, allowsDirectSuper);
47150
- } else if (this.isClassProperty()) {
47151
- if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
47152
- else this.pushClassProperty(classBody, publicProp);
47153
- } else if ("async" !== maybeContextualKw || this.isLineTerminator()) {
47154
- if ("get" !== maybeContextualKw && "set" !== maybeContextualKw || this.match(55) && this.isLineTerminator()) {
47155
- if ("accessor" !== maybeContextualKw || this.isLineTerminator()) {
47156
- if (this.isLineTerminator()) {
47157
- if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
47158
- else this.pushClassProperty(classBody, publicProp);
47159
- } else this.unexpected();
47160
- } else {
47161
- this.expectPlugin("decoratorAutoAccessors");
47162
- this.resetPreviousNodeTrailingComments(key);
47163
- const isPrivate = this.match(139);
47164
- this.parseClassElementName(publicProp);
47165
- this.pushClassAccessorProperty(classBody, accessorProp, isPrivate);
47166
- }
47167
- } else {
47168
- this.resetPreviousNodeTrailingComments(key);
47169
- method.kind = maybeContextualKw;
47170
- const isPrivate = this.match(139);
47171
- this.parseClassElementName(publicMethod);
47172
- if (isPrivate) this.pushClassPrivateMethod(classBody, privateMethod, false, false);
47173
- else {
47174
- if (this.isNonstaticConstructor(publicMethod)) this.raise(Errors.ConstructorIsAccessor, publicMethod.key);
47175
- this.pushClassMethod(classBody, publicMethod, false, false, false, false);
47176
- }
47177
- this.checkGetterSetterParams(publicMethod);
46783
+ } else if (this.isClassProperty()) if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
46784
+ else this.pushClassProperty(classBody, publicProp);
46785
+ 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);
46786
+ else this.pushClassProperty(classBody, publicProp);
46787
+ else this.unexpected();
46788
+ else {
46789
+ this.expectPlugin("decoratorAutoAccessors");
46790
+ this.resetPreviousNodeTrailingComments(key);
46791
+ const isPrivate = this.match(139);
46792
+ this.parseClassElementName(publicProp);
46793
+ this.pushClassAccessorProperty(classBody, accessorProp, isPrivate);
46794
+ }
46795
+ else {
46796
+ this.resetPreviousNodeTrailingComments(key);
46797
+ method.kind = maybeContextualKw;
46798
+ const isPrivate = this.match(139);
46799
+ this.parseClassElementName(publicMethod);
46800
+ if (isPrivate) this.pushClassPrivateMethod(classBody, privateMethod, false, false);
46801
+ else {
46802
+ if (this.isNonstaticConstructor(publicMethod)) this.raise(Errors.ConstructorIsAccessor, publicMethod.key);
46803
+ this.pushClassMethod(classBody, publicMethod, false, false, false, false);
47178
46804
  }
47179
- } else {
46805
+ this.checkGetterSetterParams(publicMethod);
46806
+ }
46807
+ else {
47180
46808
  this.resetPreviousNodeTrailingComments(key);
47181
46809
  const isGenerator = this.eat(55);
47182
46810
  if (publicMember.optional) this.unexpected(maybeQuestionTokenStartLoc);
@@ -47506,12 +47134,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47506
47134
  else if ("AssignmentPattern" === node.type) this.checkDeclaration(node.left);
47507
47135
  }
47508
47136
  checkDuplicateExports(node, exportName) {
47509
- if (this.exportedIdentifiers.has(exportName)) {
47510
- if ("default" === exportName) this.raise(Errors.DuplicateDefaultExport, node);
47511
- else this.raise(Errors.DuplicateExport, node, {
47512
- exportName
47513
- });
47514
- }
47137
+ if (this.exportedIdentifiers.has(exportName)) if ("default" === exportName) this.raise(Errors.DuplicateDefaultExport, node);
47138
+ else this.raise(Errors.DuplicateExport, node, {
47139
+ exportName
47140
+ });
47515
47141
  this.exportedIdentifiers.add(exportName);
47516
47142
  }
47517
47143
  parseExportSpecifiers(isInTypeExport) {
@@ -48277,13 +47903,12 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48277
47903
  if ("string" == typeof replacement) replacement = stringLiteral(replacement);
48278
47904
  if (!replacement || !isStringLiteral(replacement)) throw new Error("Expected string substitution");
48279
47905
  } else if ("statement" === placeholder.type) {
48280
- if (void 0 === index) {
48281
- if (replacement) {
48282
- if (Array.isArray(replacement)) replacement = blockStatement(replacement);
48283
- else if ("string" == typeof replacement) replacement = expressionStatement(identifier(replacement));
48284
- else if (!isStatement(replacement)) replacement = expressionStatement(replacement);
48285
- } else replacement = emptyStatement();
48286
- } else if (replacement && !Array.isArray(replacement)) {
47906
+ if (void 0 === index) if (replacement) {
47907
+ if (Array.isArray(replacement)) replacement = blockStatement(replacement);
47908
+ else if ("string" == typeof replacement) replacement = expressionStatement(identifier(replacement));
47909
+ else if (!isStatement(replacement)) replacement = expressionStatement(replacement);
47910
+ } else replacement = emptyStatement();
47911
+ else if (replacement && !Array.isArray(replacement)) {
48287
47912
  if ("string" == typeof replacement) replacement = identifier(replacement);
48288
47913
  if (!isStatement(replacement)) replacement = expressionStatement(replacement);
48289
47914
  }
@@ -48308,11 +47933,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48308
47933
  set(parent, key, replacement);
48309
47934
  } else {
48310
47935
  const items = parent[key].slice();
48311
- if ("statement" === placeholder.type || "param" === placeholder.type) {
48312
- if (null == replacement) items.splice(index, 1);
48313
- else if (Array.isArray(replacement)) items.splice(index, 1, ...replacement);
48314
- else set(items, index, replacement);
48315
- } else set(items, index, replacement);
47936
+ if ("statement" === placeholder.type || "param" === placeholder.type) if (null == replacement) items.splice(index, 1);
47937
+ else if (Array.isArray(replacement)) items.splice(index, 1, ...replacement);
47938
+ else set(items, index, replacement);
47939
+ else set(items, index, replacement);
48316
47940
  validate(parent, key, items);
48317
47941
  parent[key] = items;
48318
47942
  }
@@ -48414,10 +48038,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48414
48038
  });
48415
48039
  }
48416
48040
  maybeQueue(path, notPriority) {
48417
- if (this.queue) {
48418
- if (notPriority) this.queue.push(path);
48419
- else this.priorityQueue.push(path);
48420
- }
48041
+ if (this.queue) if (notPriority) this.queue.push(path);
48042
+ else this.priorityQueue.push(path);
48421
48043
  }
48422
48044
  visitMultiple(container, parent, listKey) {
48423
48045
  if (0 === container.length) return false;
@@ -48657,10 +48279,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48657
48279
  lastCommonIndex = i;
48658
48280
  lastCommon = shouldMatch;
48659
48281
  }
48660
- if (lastCommon) {
48661
- if (filter) return filter(lastCommon, lastCommonIndex, ancestries);
48662
- return lastCommon;
48663
- }
48282
+ if (lastCommon) if (filter) return filter(lastCommon, lastCommonIndex, ancestries);
48283
+ else return lastCommon;
48664
48284
  throw new Error("Couldn't find intersection");
48665
48285
  }
48666
48286
  function getAncestry() {
@@ -48862,14 +48482,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48862
48482
  if (!this.container) return;
48863
48483
  if (this.node === this.container[this.key]) return;
48864
48484
  if (Array.isArray(this.container)) {
48865
- for(let i = 0; i < this.container.length; i++)if (this.container[i] === this.node) {
48866
- setKey.call(this, i);
48867
- return;
48868
- }
48869
- } else for (const key of Object.keys(this.container))if (this.container[key] === this.node) {
48870
- setKey.call(this, key);
48871
- return;
48872
- }
48485
+ for(let i = 0; i < this.container.length; i++)if (this.container[i] === this.node) return void setKey.call(this, i);
48486
+ } else for (const key of Object.keys(this.container))if (this.container[key] === this.node) return void setKey.call(this, key);
48873
48487
  this.key = null;
48874
48488
  }
48875
48489
  function _resyncList() {
@@ -49039,14 +48653,12 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49039
48653
  const inConstructor = thisEnvFn.isClassMethod({
49040
48654
  kind: "constructor"
49041
48655
  });
49042
- if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty()) {
49043
- if (arrowParent) thisEnvFn = arrowParent;
49044
- else if (allowInsertArrow) {
49045
- fnPath.replaceWith(callExpression(arrowFunctionExpression([], toExpression(fnPath.node)), []));
49046
- thisEnvFn = fnPath.get("callee");
49047
- fnPath = thisEnvFn.get("body");
49048
- } else throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");
49049
- }
48656
+ if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty()) if (arrowParent) thisEnvFn = arrowParent;
48657
+ else if (allowInsertArrow) {
48658
+ fnPath.replaceWith(callExpression(arrowFunctionExpression([], toExpression(fnPath.node)), []));
48659
+ thisEnvFn = fnPath.get("callee");
48660
+ fnPath = thisEnvFn.get("body");
48661
+ } else throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");
49050
48662
  const { thisPaths, argumentsPaths, newTargetPaths, superProps, superCalls } = getScopeInformation(fnPath);
49051
48663
  if (inConstructor && superCalls.length > 0) {
49052
48664
  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.");
@@ -49279,10 +48891,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49279
48891
  })) return;
49280
48892
  let curr = child.scope;
49281
48893
  do {
49282
- if (curr.hasOwnBinding("arguments")) {
49283
- curr.rename("arguments");
49284
- return;
49285
- }
48894
+ if (curr.hasOwnBinding("arguments")) return void curr.rename("arguments");
49286
48895
  if (curr.path.isFunction() && !curr.path.isArrowFunctionExpression()) break;
49287
48896
  }while (curr = curr.parent);
49288
48897
  argumentsPaths.push(child);
@@ -49486,8 +49095,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49486
49095
  if (seen.has(node)) {
49487
49096
  const existing = seen.get(node);
49488
49097
  if (existing.resolved) return existing.value;
49489
- deopt(path, state);
49490
- return;
49098
+ return void deopt(path, state);
49491
49099
  }
49492
49100
  {
49493
49101
  const item = {
@@ -49543,10 +49151,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49543
49151
  if (path.isReferencedIdentifier()) {
49544
49152
  const binding = path.scope.getBinding(path.node.name);
49545
49153
  if (binding) {
49546
- if (binding.constantViolations.length > 0 || path.node.start < binding.path.node.end) {
49547
- deopt(binding.path, state);
49548
- return;
49549
- }
49154
+ if (binding.constantViolations.length > 0 || path.node.start < binding.path.node.end) return void deopt(binding.path, state);
49550
49155
  if (binding.hasValue) return binding.value;
49551
49156
  }
49552
49157
  const name = path.node.name;
@@ -49556,9 +49161,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49556
49161
  return;
49557
49162
  }
49558
49163
  const resolved = path.resolve();
49559
- if (resolved !== path) return evaluateCached(resolved, state);
49560
- deopt(path, state);
49561
- return;
49164
+ if (resolved === path) return void deopt(path, state);
49165
+ return evaluateCached(resolved, state);
49562
49166
  }
49563
49167
  if (path.isUnaryExpression({
49564
49168
  prefix: true
@@ -49586,11 +49190,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49586
49190
  const elems = path.get("elements");
49587
49191
  for (const elem of elems){
49588
49192
  const elemValue = elem.evaluate();
49589
- if (elemValue.confident) arr.push(elemValue.value);
49590
- else {
49591
- deopt(elemValue.deopt, state);
49592
- return;
49593
- }
49193
+ if (!elemValue.confident) return void deopt(elemValue.deopt, state);
49194
+ arr.push(elemValue.value);
49594
49195
  }
49595
49196
  return arr;
49596
49197
  }
@@ -49598,26 +49199,17 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49598
49199
  const obj = {};
49599
49200
  const props = path.get("properties");
49600
49201
  for (const prop of props){
49601
- if (prop.isObjectMethod() || prop.isSpreadElement()) {
49602
- deopt(prop, state);
49603
- return;
49604
- }
49202
+ if (prop.isObjectMethod() || prop.isSpreadElement()) return void deopt(prop, state);
49605
49203
  const keyPath = prop.get("key");
49606
49204
  let key;
49607
49205
  if (prop.node.computed) {
49608
49206
  key = keyPath.evaluate();
49609
- if (!key.confident) {
49610
- deopt(key.deopt, state);
49611
- return;
49612
- }
49207
+ if (!key.confident) return void deopt(key.deopt, state);
49613
49208
  key = key.value;
49614
49209
  } else key = keyPath.isIdentifier() ? keyPath.node.name : keyPath.node.value;
49615
49210
  const valuePath = prop.get("value");
49616
49211
  let value1 = valuePath.evaluate();
49617
- if (!value1.confident) {
49618
- deopt(value1.deopt, state);
49619
- return;
49620
- }
49212
+ if (!value1.confident) return void deopt(value1.deopt, state);
49621
49213
  value1 = value1.value;
49622
49214
  obj[key] = value1;
49623
49215
  }
@@ -49822,10 +49414,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49822
49414
  completions.forEach((c)=>{
49823
49415
  if (c.path.isBreakStatement({
49824
49416
  label: null
49825
- })) {
49826
- if (reachable) c.path.replaceWith(unaryExpression("void", numericLiteral(0)));
49827
- else c.path.remove();
49828
- }
49417
+ })) if (reachable) c.path.replaceWith(unaryExpression("void", numericLiteral(0)));
49418
+ else c.path.remove();
49829
49419
  });
49830
49420
  }
49831
49421
  function getStatementListCompletion(paths, context) {
@@ -50314,15 +49904,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
50314
49904
  const typeAnnotationInferringNodes = new WeakSet();
50315
49905
  function _getTypeAnnotation() {
50316
49906
  const node = this.node;
50317
- if (!node) {
50318
- if (!("init" === this.key && this.parentPath.isVariableDeclarator())) return;
50319
- {
50320
- const declar = this.parentPath.parentPath;
50321
- const declarParent = declar.parentPath;
50322
- if ("left" === declar.key && declarParent.isForInStatement()) return stringTypeAnnotation();
50323
- if ("left" === declar.key && declarParent.isForOfStatement()) return anyTypeAnnotation();
50324
- return voidTypeAnnotation();
50325
- }
49907
+ if (!node) if (!("init" === this.key && this.parentPath.isVariableDeclarator())) return;
49908
+ else {
49909
+ const declar = this.parentPath.parentPath;
49910
+ const declarParent = declar.parentPath;
49911
+ if ("left" === declar.key && declarParent.isForInStatement()) return stringTypeAnnotation();
49912
+ if ("left" === declar.key && declarParent.isForOfStatement()) return anyTypeAnnotation();
49913
+ return voidTypeAnnotation();
50326
49914
  }
50327
49915
  if (node.typeAnnotation) return node.typeAnnotation;
50328
49916
  if (typeAnnotationInferringNodes.has(node)) return;
@@ -50346,10 +49934,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
50346
49934
  if ("boolean" === baseName) return isBooleanTypeAnnotation(type);
50347
49935
  if ("any" === baseName) return isAnyTypeAnnotation(type);
50348
49936
  if ("mixed" === baseName) return isMixedTypeAnnotation(type);
50349
- if ("empty" === baseName) return isEmptyTypeAnnotation(type);
50350
- if ("void" === baseName) return isVoidTypeAnnotation(type);
50351
- if (soft) return false;
50352
- throw new Error(`Unknown base type ${baseName}`);
49937
+ else if ("empty" === baseName) return isEmptyTypeAnnotation(type);
49938
+ else if ("void" === baseName) return isVoidTypeAnnotation(type);
49939
+ else if (soft) return false;
49940
+ else throw new Error(`Unknown base type ${baseName}`);
50353
49941
  }
50354
49942
  function couldBeBaseType(name) {
50355
49943
  const type = this.getTypeAnnotation();
@@ -50388,10 +49976,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
50388
49976
  function _default(node) {
50389
49977
  if (!this.isReferenced()) return;
50390
49978
  const binding = this.scope.getBinding(node.name);
50391
- if (binding) {
50392
- if (binding.identifier.typeAnnotation) return binding.identifier.typeAnnotation;
50393
- return getTypeAnnotationBindingConstantViolations(binding, this, node.name);
50394
- }
49979
+ if (binding) if (binding.identifier.typeAnnotation) return binding.identifier.typeAnnotation;
49980
+ else return getTypeAnnotationBindingConstantViolations(binding, this, node.name);
50395
49981
  if ("undefined" === node.name) return voidTypeAnnotation();
50396
49982
  if ("NaN" === node.name || "Infinity" === node.name) return numberTypeAnnotation();
50397
49983
  node.name;
@@ -50664,10 +50250,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
50664
50250
  callee = callee.resolve();
50665
50251
  if (callee.isFunction()) {
50666
50252
  const { node } = callee;
50667
- if (node.async) {
50668
- if (node.generator) return genericTypeAnnotation(identifier("AsyncIterator"));
50669
- return genericTypeAnnotation(identifier("Promise"));
50670
- }
50253
+ if (node.async) if (node.generator) return genericTypeAnnotation(identifier("AsyncIterator"));
50254
+ else return genericTypeAnnotation(identifier("Promise"));
50671
50255
  if (node.generator) return genericTypeAnnotation(identifier("Iterator"));
50672
50256
  if (callee.node.returnType) return callee.node.returnType;
50673
50257
  }
@@ -51086,14 +50670,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
51086
50670
  const scopes = this.scopes;
51087
50671
  const scope = scopes.pop();
51088
50672
  if (!scope) return;
51089
- if (scope.path.isFunction()) {
51090
- if (!this.hasOwnParamBindings(scope)) return this.getNextScopeAttachmentParent();
51091
- {
51092
- if (this.scope === scope) return;
51093
- const bodies = scope.path.get("body").get("body");
51094
- for(let i = 0; i < bodies.length; i++)if (!bodies[i].node._blockHoist) return bodies[i];
51095
- }
51096
- } else if (scope.path.isProgram()) return this.getNextScopeAttachmentParent();
50673
+ if (scope.path.isFunction()) if (!this.hasOwnParamBindings(scope)) return this.getNextScopeAttachmentParent();
50674
+ else {
50675
+ if (this.scope === scope) return;
50676
+ const bodies = scope.path.get("body").get("body");
50677
+ for(let i = 0; i < bodies.length; i++)if (!bodies[i].node._blockHoist) return bodies[i];
50678
+ }
50679
+ else if (scope.path.isProgram()) return this.getNextScopeAttachmentParent();
51097
50680
  }
51098
50681
  getNextScopeAttachmentParent() {
51099
50682
  const scope = this.scopes.pop();
@@ -51200,7 +50783,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
51200
50783
  const { node, parent } = this;
51201
50784
  if (!isIdentifier(node, opts) && !isJSXMemberExpression(parent, opts)) {
51202
50785
  if (!isJSXIdentifier(node, opts)) return false;
51203
- if (isCompatTag(node.name)) return false;
50786
+ else if (isCompatTag(node.name)) return false;
51204
50787
  }
51205
50788
  return nodeIsReferenced(node, parent, this.parentPath.parent);
51206
50789
  }
@@ -51473,12 +51056,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
51473
51056
  for(let i = 0; i < nodes.length; i++){
51474
51057
  const node = nodes[i];
51475
51058
  let msg;
51476
- if (node) {
51477
- if ("object" != typeof node) msg = "contains a non-object node";
51478
- else if (node.type) {
51479
- if (node instanceof _index.default) msg = "has a NodePath when it expected a raw object";
51480
- } else msg = "without a type";
51481
- } else msg = "has falsy node";
51059
+ if (node) if ("object" != typeof node) msg = "contains a non-object node";
51060
+ else if (node.type) {
51061
+ if (node instanceof _index.default) msg = "has a NodePath when it expected a raw object";
51062
+ } else msg = "without a type";
51063
+ else msg = "has falsy node";
51482
51064
  if (msg) {
51483
51065
  const type = Array.isArray(node) ? "array" : typeof node;
51484
51066
  throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`);
@@ -51539,10 +51121,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
51539
51121
  var _this$opts;
51540
51122
  _assertUnremoved.call(this);
51541
51123
  _context.resync.call(this);
51542
- if (_callRemovalHooks.call(this)) {
51543
- _markRemoved.call(this);
51544
- return;
51545
- }
51124
+ if (_callRemovalHooks.call(this)) return void _markRemoved.call(this);
51546
51125
  if (!(null != (_this$opts = this.opts) && _this$opts.noScope)) _removeFromScope.call(this);
51547
51126
  this.shareCommentsWithSiblings();
51548
51127
  _remove.call(this);
@@ -52625,10 +52204,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
52625
52204
  Scope (path, state) {
52626
52205
  if (!path.scope.bindingIdentifierEquals(state.oldName, state.binding.identifier)) {
52627
52206
  path.skip();
52628
- if (path.isMethod()) {
52629
- if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
52630
- else _context.requeueComputedKeyAndDecorators.call(path);
52631
- }
52207
+ if (path.isMethod()) if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
52208
+ else _context.requeueComputedKeyAndDecorators.call(path);
52632
52209
  }
52633
52210
  },
52634
52211
  ObjectProperty ({ node, scope }, state) {
@@ -52846,7 +52423,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
52846
52423
  "exit"
52847
52424
  ]){
52848
52425
  let fns = oldVisitor[phase];
52849
- if (!!Array.isArray(fns)) {
52426
+ if (Array.isArray(fns)) {
52850
52427
  fns = fns.map(function(fn) {
52851
52428
  let newFn = fn;
52852
52429
  if (state) newFn = function(path) {
@@ -52898,16 +52475,14 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
52898
52475
  for (const phase of [
52899
52476
  "enter",
52900
52477
  "exit"
52901
- ])if (!!src[phase]) dest[phase] = [].concat(dest[phase] || [], src[phase]);
52478
+ ])if (src[phase]) dest[phase] = [].concat(dest[phase] || [], src[phase]);
52902
52479
  }
52903
52480
  const _environmentVisitor = {
52904
52481
  FunctionParent (path) {
52905
52482
  if (path.isArrowFunctionExpression()) return;
52906
52483
  path.skip();
52907
- if (path.isMethod()) {
52908
- if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
52909
- else _context.requeueComputedKeyAndDecorators.call(path);
52910
- }
52484
+ if (path.isMethod()) if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
52485
+ else _context.requeueComputedKeyAndDecorators.call(path);
52911
52486
  },
52912
52487
  Property (path) {
52913
52488
  if (path.isObjectProperty()) return;
@@ -58721,15 +58296,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
58721
58296
  if (hasOwn(node, "typeAnnotation")) newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
58722
58297
  if (hasOwn(node, "decorators")) newNode.decorators = deep ? cloneIfNodeOrArray(node.decorators, true, withoutLoc, commentsCache) : node.decorators;
58723
58298
  } else if (hasOwn(_index.NODE_FIELDS, type)) {
58724
- for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field)) {
58725
- if (deep) newNode[field] = (0, _index2.isFile)(node) && "comments" === field ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
58726
- else newNode[field] = node[field];
58727
- }
58299
+ 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);
58300
+ else newNode[field] = node[field];
58728
58301
  } else throw new Error(`Unknown node type: "${type}"`);
58729
- if (hasOwn(node, "loc")) {
58730
- if (withoutLoc) newNode.loc = null;
58731
- else newNode.loc = node.loc;
58732
- }
58302
+ if (hasOwn(node, "loc")) if (withoutLoc) newNode.loc = null;
58303
+ else newNode.loc = node.loc;
58733
58304
  if (hasOwn(node, "leadingComments")) newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
58734
58305
  if (hasOwn(node, "innerComments")) newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
58735
58306
  if (hasOwn(node, "trailingComments")) newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
@@ -58789,10 +58360,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
58789
58360
  function addComments(node, type, comments) {
58790
58361
  if (!comments || !node) return node;
58791
58362
  const key = `${type}Comments`;
58792
- if (node[key]) {
58793
- if ("leading" === type) node[key] = comments.concat(node[key]);
58794
- else node[key].push(...comments);
58795
- } else node[key] = comments;
58363
+ if (node[key]) if ("leading" === type) node[key] = comments.concat(node[key]);
58364
+ else node[key].push(...comments);
58365
+ else node[key] = comments;
58796
58366
  return node;
58797
58367
  }
58798
58368
  },
@@ -59234,10 +58804,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
59234
58804
  newType = "FunctionDeclaration";
59235
58805
  } else if ((0, _index.isAssignmentExpression)(node)) return (0, _index2.expressionStatement)(node);
59236
58806
  if (mustHaveId && !node.id) newType = false;
59237
- if (!newType) {
59238
- if (ignore) return false;
59239
- throw new Error(`cannot turn ${node.type} to a statement`);
59240
- }
58807
+ if (!newType) if (ignore) return false;
58808
+ else throw new Error(`cannot turn ${node.type} to a statement`);
59241
58809
  node.type = newType;
59242
58810
  return node;
59243
58811
  }
@@ -63874,10 +63442,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
63874
63442
  }
63875
63443
  function assertNodeType(...types) {
63876
63444
  function validate(node, key, val) {
63877
- for (const type of types)if ((0, _is.default)(type, val)) {
63878
- (0, _validate.validateChild)(node, key, val);
63879
- return;
63880
- }
63445
+ for (const type of types)if ((0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
63881
63446
  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)}`);
63882
63447
  }
63883
63448
  validate.oneOfNodeTypes = types;
@@ -63885,10 +63450,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
63885
63450
  }
63886
63451
  function assertNodeOrValueType(...types) {
63887
63452
  function validate(node, key, val) {
63888
- for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) {
63889
- (0, _validate.validateChild)(node, key, val);
63890
- return;
63891
- }
63453
+ for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
63892
63454
  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)}`);
63893
63455
  }
63894
63456
  validate.oneOfNodeOrValueTypes = types;
@@ -64646,36 +64208,37 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
64646
64208
  const types = [];
64647
64209
  for(let i = 0; i < nodes.length; i++){
64648
64210
  const node = nodes[i];
64649
- if (!!node) {
64650
- if (types.includes(node)) continue;
64651
- if ((0, _index.isAnyTypeAnnotation)(node)) return [
64652
- node
64653
- ];
64654
- if ((0, _index.isFlowBaseAnnotation)(node)) {
64655
- bases.set(node.type, node);
64656
- continue;
64657
- }
64658
- if ((0, _index.isUnionTypeAnnotation)(node)) {
64659
- if (!typeGroups.has(node.types)) {
64660
- nodes.push(...node.types);
64661
- typeGroups.add(node.types);
64211
+ if (node) {
64212
+ if (!types.includes(node)) {
64213
+ if ((0, _index.isAnyTypeAnnotation)(node)) return [
64214
+ node
64215
+ ];
64216
+ if ((0, _index.isFlowBaseAnnotation)(node)) {
64217
+ bases.set(node.type, node);
64218
+ continue;
64662
64219
  }
64663
- continue;
64664
- }
64665
- if ((0, _index.isGenericTypeAnnotation)(node)) {
64666
- const name = getQualifiedName(node.id);
64667
- if (generics.has(name)) {
64668
- let existing = generics.get(name);
64669
- if (existing.typeParameters) {
64670
- if (node.typeParameters) {
64671
- existing.typeParameters.params.push(...node.typeParameters.params);
64672
- existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
64673
- }
64674
- } else existing = node.typeParameters;
64675
- } else generics.set(name, node);
64676
- continue;
64220
+ if ((0, _index.isUnionTypeAnnotation)(node)) {
64221
+ if (!typeGroups.has(node.types)) {
64222
+ nodes.push(...node.types);
64223
+ typeGroups.add(node.types);
64224
+ }
64225
+ continue;
64226
+ }
64227
+ if ((0, _index.isGenericTypeAnnotation)(node)) {
64228
+ const name = getQualifiedName(node.id);
64229
+ if (generics.has(name)) {
64230
+ let existing = generics.get(name);
64231
+ if (existing.typeParameters) {
64232
+ if (node.typeParameters) {
64233
+ existing.typeParameters.params.push(...node.typeParameters.params);
64234
+ existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
64235
+ }
64236
+ } else existing = node.typeParameters;
64237
+ } else generics.set(name, node);
64238
+ continue;
64239
+ }
64240
+ types.push(node);
64677
64241
  }
64678
- types.push(node);
64679
64242
  }
64680
64243
  }
64681
64244
  for (const [, baseType] of bases)types.push(baseType);
@@ -64773,36 +64336,37 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
64773
64336
  const types = [];
64774
64337
  for(let i = 0; i < nodes.length; i++){
64775
64338
  const node = nodes[i];
64776
- if (!!node) {
64777
- if (types.includes(node)) continue;
64778
- if ((0, _index.isTSAnyKeyword)(node)) return [
64779
- node
64780
- ];
64781
- if ((0, _index.isTSBaseType)(node)) {
64782
- bases.set(node.type, node);
64783
- continue;
64784
- }
64785
- if ((0, _index.isTSUnionType)(node)) {
64786
- if (!typeGroups.has(node.types)) {
64787
- nodes.push(...node.types);
64788
- typeGroups.add(node.types);
64339
+ if (node) {
64340
+ if (!types.includes(node)) {
64341
+ if ((0, _index.isTSAnyKeyword)(node)) return [
64342
+ node
64343
+ ];
64344
+ if ((0, _index.isTSBaseType)(node)) {
64345
+ bases.set(node.type, node);
64346
+ continue;
64789
64347
  }
64790
- continue;
64791
- }
64792
- if ((0, _index.isTSTypeReference)(node) && node.typeParameters) {
64793
- const name = getQualifiedName(node.typeName);
64794
- if (generics.has(name)) {
64795
- let existing = generics.get(name);
64796
- if (existing.typeParameters) {
64797
- if (node.typeParameters) {
64798
- existing.typeParameters.params.push(...node.typeParameters.params);
64799
- existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
64800
- }
64801
- } else existing = node.typeParameters;
64802
- } else generics.set(name, node);
64803
- continue;
64348
+ if ((0, _index.isTSUnionType)(node)) {
64349
+ if (!typeGroups.has(node.types)) {
64350
+ nodes.push(...node.types);
64351
+ typeGroups.add(node.types);
64352
+ }
64353
+ continue;
64354
+ }
64355
+ if ((0, _index.isTSTypeReference)(node) && node.typeParameters) {
64356
+ const name = getQualifiedName(node.typeName);
64357
+ if (generics.has(name)) {
64358
+ let existing = generics.get(name);
64359
+ if (existing.typeParameters) {
64360
+ if (node.typeParameters) {
64361
+ existing.typeParameters.params.push(...node.typeParameters.params);
64362
+ existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
64363
+ }
64364
+ } else existing = node.typeParameters;
64365
+ } else generics.set(name, node);
64366
+ continue;
64367
+ }
64368
+ types.push(node);
64804
64369
  }
64805
- types.push(node);
64806
64370
  }
64807
64371
  }
64808
64372
  for (const [, baseType] of bases)types.push(baseType);
@@ -64891,10 +64455,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
64891
64455
  if (keys) for(let i = 0; i < keys.length; i++){
64892
64456
  const key = keys[i];
64893
64457
  const nodes = id[key];
64894
- if (nodes) {
64895
- if (Array.isArray(nodes)) search.push(...nodes);
64896
- else search.push(nodes);
64897
- }
64458
+ if (nodes) if (Array.isArray(nodes)) search.push(...nodes);
64459
+ else search.push(nodes);
64898
64460
  }
64899
64461
  }
64900
64462
  return ids;
@@ -65103,7 +64665,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
65103
64665
  const subNode = node[key];
65104
64666
  if (Array.isArray(subNode)) for(let i = 0; i < subNode.length; i++){
65105
64667
  const child = subNode[i];
65106
- if (!!child) {
64668
+ if (child) {
65107
64669
  ancestors.push({
65108
64670
  node,
65109
64671
  key,
@@ -74288,15 +73850,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
74288
73850
  if (hasOwn(node, "typeAnnotation")) newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
74289
73851
  if (hasOwn(node, "decorators")) newNode.decorators = deep ? cloneIfNodeOrArray(node.decorators, true, withoutLoc, commentsCache) : node.decorators;
74290
73852
  } else if (hasOwn(_index.NODE_FIELDS, type)) {
74291
- for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field)) {
74292
- if (deep) newNode[field] = (0, _index2.isFile)(node) && "comments" === field ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
74293
- else newNode[field] = node[field];
74294
- }
73853
+ 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);
73854
+ else newNode[field] = node[field];
74295
73855
  } else throw new Error(`Unknown node type: "${type}"`);
74296
- if (hasOwn(node, "loc")) {
74297
- if (withoutLoc) newNode.loc = null;
74298
- else newNode.loc = node.loc;
74299
- }
73856
+ if (hasOwn(node, "loc")) if (withoutLoc) newNode.loc = null;
73857
+ else newNode.loc = node.loc;
74300
73858
  if (hasOwn(node, "leadingComments")) newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
74301
73859
  if (hasOwn(node, "innerComments")) newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
74302
73860
  if (hasOwn(node, "trailingComments")) newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
@@ -74356,10 +73914,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
74356
73914
  function addComments(node, type, comments) {
74357
73915
  if (!comments || !node) return node;
74358
73916
  const key = `${type}Comments`;
74359
- if (node[key]) {
74360
- if ("leading" === type) node[key] = comments.concat(node[key]);
74361
- else node[key].push(...comments);
74362
- } else node[key] = comments;
73917
+ if (node[key]) if ("leading" === type) node[key] = comments.concat(node[key]);
73918
+ else node[key].push(...comments);
73919
+ else node[key] = comments;
74363
73920
  return node;
74364
73921
  }
74365
73922
  },
@@ -74804,10 +74361,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
74804
74361
  newType = "FunctionDeclaration";
74805
74362
  } else if ((0, _index.isAssignmentExpression)(node)) return (0, _index2.expressionStatement)(node);
74806
74363
  if (mustHaveId && !node.id) newType = false;
74807
- if (!newType) {
74808
- if (ignore) return false;
74809
- throw new Error(`cannot turn ${node.type} to a statement`);
74810
- }
74364
+ if (!newType) if (ignore) return false;
74365
+ else throw new Error(`cannot turn ${node.type} to a statement`);
74811
74366
  node.type = newType;
74812
74367
  return node;
74813
74368
  }
@@ -79516,10 +79071,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
79516
79071
  }
79517
79072
  function assertNodeType(...types) {
79518
79073
  function validate(node, key, val) {
79519
- for (const type of types)if ((0, _is.default)(type, val)) {
79520
- (0, _validate.validateChild)(node, key, val);
79521
- return;
79522
- }
79074
+ for (const type of types)if ((0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
79523
79075
  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)}`);
79524
79076
  }
79525
79077
  validate.oneOfNodeTypes = types;
@@ -79527,10 +79079,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
79527
79079
  }
79528
79080
  function assertNodeOrValueType(...types) {
79529
79081
  function validate(node, key, val) {
79530
- for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) {
79531
- (0, _validate.validateChild)(node, key, val);
79532
- return;
79533
- }
79082
+ for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
79534
79083
  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)}`);
79535
79084
  }
79536
79085
  validate.oneOfNodeOrValueTypes = types;
@@ -80277,36 +79826,37 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
80277
79826
  const types = [];
80278
79827
  for(let i = 0; i < nodes.length; i++){
80279
79828
  const node = nodes[i];
80280
- if (!!node) {
80281
- if (types.includes(node)) continue;
80282
- if ((0, _index.isAnyTypeAnnotation)(node)) return [
80283
- node
80284
- ];
80285
- if ((0, _index.isFlowBaseAnnotation)(node)) {
80286
- bases.set(node.type, node);
80287
- continue;
80288
- }
80289
- if ((0, _index.isUnionTypeAnnotation)(node)) {
80290
- if (!typeGroups.has(node.types)) {
80291
- nodes.push(...node.types);
80292
- typeGroups.add(node.types);
79829
+ if (node) {
79830
+ if (!types.includes(node)) {
79831
+ if ((0, _index.isAnyTypeAnnotation)(node)) return [
79832
+ node
79833
+ ];
79834
+ if ((0, _index.isFlowBaseAnnotation)(node)) {
79835
+ bases.set(node.type, node);
79836
+ continue;
80293
79837
  }
80294
- continue;
80295
- }
80296
- if ((0, _index.isGenericTypeAnnotation)(node)) {
80297
- const name = getQualifiedName(node.id);
80298
- if (generics.has(name)) {
80299
- let existing = generics.get(name);
80300
- if (existing.typeParameters) {
80301
- if (node.typeParameters) {
80302
- existing.typeParameters.params.push(...node.typeParameters.params);
80303
- existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
80304
- }
80305
- } else existing = node.typeParameters;
80306
- } else generics.set(name, node);
80307
- continue;
79838
+ if ((0, _index.isUnionTypeAnnotation)(node)) {
79839
+ if (!typeGroups.has(node.types)) {
79840
+ nodes.push(...node.types);
79841
+ typeGroups.add(node.types);
79842
+ }
79843
+ continue;
79844
+ }
79845
+ if ((0, _index.isGenericTypeAnnotation)(node)) {
79846
+ const name = getQualifiedName(node.id);
79847
+ if (generics.has(name)) {
79848
+ let existing = generics.get(name);
79849
+ if (existing.typeParameters) {
79850
+ if (node.typeParameters) {
79851
+ existing.typeParameters.params.push(...node.typeParameters.params);
79852
+ existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
79853
+ }
79854
+ } else existing = node.typeParameters;
79855
+ } else generics.set(name, node);
79856
+ continue;
79857
+ }
79858
+ types.push(node);
80308
79859
  }
80309
- types.push(node);
80310
79860
  }
80311
79861
  }
80312
79862
  for (const [, baseType] of bases)types.push(baseType);
@@ -80522,10 +80072,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
80522
80072
  if (keys) for(let i = 0; i < keys.length; i++){
80523
80073
  const key = keys[i];
80524
80074
  const nodes = id[key];
80525
- if (nodes) {
80526
- if (Array.isArray(nodes)) search.push(...nodes);
80527
- else search.push(nodes);
80528
- }
80075
+ if (nodes) if (Array.isArray(nodes)) search.push(...nodes);
80076
+ else search.push(nodes);
80529
80077
  }
80530
80078
  }
80531
80079
  return ids;
@@ -80737,7 +80285,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
80737
80285
  const subNode = node[key];
80738
80286
  if (Array.isArray(subNode)) for(let i = 0; i < subNode.length; i++){
80739
80287
  const child = subNode[i];
80740
- if (!!child) {
80288
+ if (child) {
80741
80289
  ancestors.push({
80742
80290
  node,
80743
80291
  key,
@@ -84137,6 +83685,7 @@ var __webpack_exports__ = {};
84137
83685
  makeEnv: ()=>makeEnv,
84138
83686
  printBanner: ()=>printBanner,
84139
83687
  link: ()=>banner_link,
83688
+ createBlobDatabasePlugin: ()=>createBlobDatabasePlugin,
84140
83689
  createZip: ()=>createZip,
84141
83690
  getCwd: ()=>getCwd,
84142
83691
  transformTsEnv: ()=>transformTsEnv,
@@ -84169,13 +83718,11 @@ var __webpack_exports__ = {};
84169
83718
  const key = sourceKeys[i];
84170
83719
  const sourceValue = source[key];
84171
83720
  const targetValue = target[key];
84172
- if (Array.isArray(sourceValue)) {
84173
- if (Array.isArray(targetValue)) target[key] = merge(targetValue, sourceValue);
84174
- else target[key] = merge([], sourceValue);
84175
- } else if (isPlainObject(sourceValue)) {
84176
- if (isPlainObject(targetValue)) target[key] = merge(targetValue, sourceValue);
84177
- else target[key] = merge({}, sourceValue);
84178
- } else if (void 0 === targetValue || void 0 !== sourceValue) target[key] = sourceValue;
83721
+ if (Array.isArray(sourceValue)) if (Array.isArray(targetValue)) target[key] = merge(targetValue, sourceValue);
83722
+ else target[key] = merge([], sourceValue);
83723
+ else if (isPlainObject(sourceValue)) if (isPlainObject(targetValue)) target[key] = merge(targetValue, sourceValue);
83724
+ else target[key] = merge({}, sourceValue);
83725
+ else if (void 0 === targetValue || void 0 !== sourceValue) target[key] = sourceValue;
84179
83726
  }
84180
83727
  return target;
84181
83728
  }
@@ -85773,12 +85320,10 @@ var __webpack_exports__ = {};
85773
85320
  } else updatedLines.push(line);
85774
85321
  } else updatedLines.push(line);
85775
85322
  }
85776
- for (const [key, val] of Object.entries(newEnvVars))if (!processedKeys.has(key)) {
85777
- if ("object" == typeof val && null !== val) {
85778
- updatedLines.push(`# ${val.comment}`);
85779
- updatedLines.push(`${key}=${val.value}`);
85780
- } else updatedLines.push(`${key}=${val}`);
85781
- }
85323
+ for (const [key, val] of Object.entries(newEnvVars))if (!processedKeys.has(key)) if ("object" == typeof val && null !== val) {
85324
+ updatedLines.push(`# ${val.comment}`);
85325
+ updatedLines.push(`${key}=${val.value}`);
85326
+ } else updatedLines.push(`${key}=${val}`);
85782
85327
  const updatedContent = updatedLines.join("\n");
85783
85328
  await promises_default().writeFile(filePath, updatedContent, "utf-8");
85784
85329
  return updatedContent;
@@ -85868,9 +85413,235 @@ var __webpack_exports__ = {};
85868
85413
  await promises_default().writeFile(outfile, content);
85869
85414
  return outfile;
85870
85415
  };
85416
+ function compareValues(a, b, order) {
85417
+ if (a < b) return 'asc' === order ? -1 : 1;
85418
+ if (a > b) return 'asc' === order ? 1 : -1;
85419
+ return 0;
85420
+ }
85421
+ function orderBy(arr, criteria, orders) {
85422
+ return arr.slice().sort((a, b)=>{
85423
+ const ordersLength = orders.length;
85424
+ for(let i = 0; i < criteria.length; i++){
85425
+ const order = ordersLength > i ? orders[i] : orders[ordersLength - 1];
85426
+ const criterion = criteria[i];
85427
+ const criterionIsFunction = 'function' == typeof criterion;
85428
+ const valueA = criterionIsFunction ? criterion(a) : a[criterion];
85429
+ const valueB = criterionIsFunction ? criterion(b) : b[criterion];
85430
+ const result = compareValues(valueA, valueB, order);
85431
+ if (0 !== result) return result;
85432
+ }
85433
+ return 0;
85434
+ });
85435
+ }
85436
+ function removeBundleInternalKeys(bundle) {
85437
+ const { _updateJsonKey, _oldUpdateJsonKey, ...pureBundle } = bundle;
85438
+ return pureBundle;
85439
+ }
85440
+ const createBlobDatabasePlugin = ({ name, listObjects, loadObject, uploadObject, deleteObject, invalidatePaths, hooks })=>{
85441
+ const bundlesMap = new Map();
85442
+ const pendingBundlesMap = new Map();
85443
+ const PLATFORMS = [
85444
+ "ios",
85445
+ "android"
85446
+ ];
85447
+ async function reloadBundles() {
85448
+ bundlesMap.clear();
85449
+ const platformPromises = PLATFORMS.map(async (platform)=>{
85450
+ const keys = await listUpdateJsonKeys(platform);
85451
+ const filePromises = keys.map(async (key)=>{
85452
+ const bundlesData = await loadObject(key) ?? [];
85453
+ return bundlesData.map((bundle)=>({
85454
+ ...bundle,
85455
+ _updateJsonKey: key
85456
+ }));
85457
+ });
85458
+ const results = await Promise.all(filePromises);
85459
+ return results.flat();
85460
+ });
85461
+ const allBundles = (await Promise.all(platformPromises)).flat();
85462
+ for (const bundle of allBundles)bundlesMap.set(bundle.id, bundle);
85463
+ for (const [id, bundle] of pendingBundlesMap.entries())bundlesMap.set(id, bundle);
85464
+ return orderBy(allBundles, [
85465
+ (v)=>v.id
85466
+ ], [
85467
+ "desc"
85468
+ ]);
85469
+ }
85470
+ async function updateTargetVersionsForPlatform(platform) {
85471
+ const pattern = new RegExp(`^[^/]+/${platform}/[^/]+/update\\.json$`);
85472
+ const keys = (await listObjects("")).filter((key)=>pattern.test(key));
85473
+ const keysByChannel = keys.reduce((acc, key)=>{
85474
+ const parts = key.split("/");
85475
+ const channel = parts[0];
85476
+ acc[channel] = acc[channel] || [];
85477
+ acc[channel].push(key);
85478
+ return acc;
85479
+ }, {});
85480
+ const updatedTargetFiles = new Set();
85481
+ for (const channel of Object.keys(keysByChannel)){
85482
+ const updateKeys = keysByChannel[channel];
85483
+ const targetKey = `${channel}/${platform}/target-app-versions.json`;
85484
+ const currentVersions = updateKeys.map((key)=>key.split("/")[2]);
85485
+ const oldTargetVersions = await loadObject(targetKey) ?? [];
85486
+ const newTargetVersions = oldTargetVersions.filter((v)=>currentVersions.includes(v));
85487
+ for (const v of currentVersions)if (!newTargetVersions.includes(v)) newTargetVersions.push(v);
85488
+ if (JSON.stringify(oldTargetVersions) !== JSON.stringify(newTargetVersions)) {
85489
+ await uploadObject(targetKey, newTargetVersions);
85490
+ updatedTargetFiles.add(`/${targetKey}`);
85491
+ }
85492
+ }
85493
+ return updatedTargetFiles;
85494
+ }
85495
+ async function listUpdateJsonKeys(platform, channel) {
85496
+ const prefix = channel ? platform ? `${channel}/${platform}/` : `${channel}/` : "";
85497
+ const pattern = channel ? platform ? new RegExp(`^${channel}/${platform}/[^/]+/update\\.json$`) : new RegExp(`^${channel}/[^/]+/[^/]+/update\\.json$`) : platform ? new RegExp(`^[^/]+/${platform}/[^/]+/update\\.json$`) : /^[^\/]+\/[^\/]+\/[^\/]+\/update\.json$/;
85498
+ return listObjects(prefix).then((keys)=>keys.filter((key)=>pattern.test(key)));
85499
+ }
85500
+ return createDatabasePlugin(name, {
85501
+ async getBundleById (bundleId) {
85502
+ const pendingBundle = pendingBundlesMap.get(bundleId);
85503
+ if (pendingBundle) return removeBundleInternalKeys(pendingBundle);
85504
+ const bundle = bundlesMap.get(bundleId);
85505
+ if (bundle) return removeBundleInternalKeys(bundle);
85506
+ const bundles = await reloadBundles();
85507
+ return bundles.find((bundle)=>bundle.id === bundleId) ?? null;
85508
+ },
85509
+ async getBundles (options) {
85510
+ let bundles = await reloadBundles();
85511
+ const { where, limit, offset = 0 } = options ?? {};
85512
+ if (where) bundles = bundles.filter((bundle)=>Object.entries(where).every(([key, value1])=>null == value1 || bundle[key] === value1));
85513
+ if (offset > 0) bundles = bundles.slice(offset);
85514
+ if (limit) bundles = bundles.slice(0, limit);
85515
+ return bundles.map(removeBundleInternalKeys);
85516
+ },
85517
+ async getChannels () {
85518
+ const allBundles = await this.getBundles();
85519
+ return [
85520
+ ...new Set(allBundles.map((bundle)=>bundle.channel))
85521
+ ];
85522
+ },
85523
+ async commitBundle ({ changedSets }) {
85524
+ if (0 === changedSets.length) return;
85525
+ const changedBundlesByKey = {};
85526
+ const removalsByKey = {};
85527
+ const pathsToInvalidate = new Set();
85528
+ for (const { operation, data } of changedSets){
85529
+ if ("insert" === operation) {
85530
+ const key = `${data.channel}/${data.platform}/${data.targetAppVersion}/update.json`;
85531
+ const bundleWithKey = {
85532
+ ...data,
85533
+ _updateJsonKey: key
85534
+ };
85535
+ bundlesMap.set(data.id, bundleWithKey);
85536
+ pendingBundlesMap.set(data.id, bundleWithKey);
85537
+ changedBundlesByKey[key] = changedBundlesByKey[key] || [];
85538
+ changedBundlesByKey[key].push(removeBundleInternalKeys(bundleWithKey));
85539
+ pathsToInvalidate.add(`/${key}`);
85540
+ continue;
85541
+ }
85542
+ let bundle = pendingBundlesMap.get(data.id);
85543
+ if (!bundle) bundle = bundlesMap.get(data.id);
85544
+ if (!bundle) throw new Error("targetBundleId not found");
85545
+ if ("update" === operation) {
85546
+ const newChannel = void 0 !== data.channel ? data.channel : bundle.channel;
85547
+ const newPlatform = void 0 !== data.platform ? data.platform : bundle.platform;
85548
+ const newTargetAppVersion = void 0 !== data.targetAppVersion ? data.targetAppVersion : bundle.targetAppVersion;
85549
+ const newKey = `${newChannel}/${newPlatform}/${newTargetAppVersion}/update.json`;
85550
+ if (newKey !== bundle._updateJsonKey) {
85551
+ const oldKey = bundle._updateJsonKey;
85552
+ removalsByKey[oldKey] = removalsByKey[oldKey] || [];
85553
+ removalsByKey[oldKey].push(bundle.id);
85554
+ changedBundlesByKey[newKey] = changedBundlesByKey[newKey] || [];
85555
+ const updatedBundle = {
85556
+ ...bundle,
85557
+ ...data
85558
+ };
85559
+ updatedBundle._oldUpdateJsonKey = oldKey;
85560
+ updatedBundle._updateJsonKey = newKey;
85561
+ bundlesMap.set(data.id, updatedBundle);
85562
+ pendingBundlesMap.set(data.id, updatedBundle);
85563
+ changedBundlesByKey[newKey].push(removeBundleInternalKeys(updatedBundle));
85564
+ pathsToInvalidate.add(`/${oldKey}`);
85565
+ pathsToInvalidate.add(`/${newKey}`);
85566
+ continue;
85567
+ }
85568
+ const currentKey = bundle._updateJsonKey;
85569
+ const updatedBundle = {
85570
+ ...bundle,
85571
+ ...data
85572
+ };
85573
+ bundlesMap.set(data.id, updatedBundle);
85574
+ pendingBundlesMap.set(data.id, updatedBundle);
85575
+ changedBundlesByKey[currentKey] = changedBundlesByKey[currentKey] || [];
85576
+ changedBundlesByKey[currentKey].push(removeBundleInternalKeys(updatedBundle));
85577
+ pathsToInvalidate.add(`/${currentKey}`);
85578
+ }
85579
+ }
85580
+ for (const oldKey of Object.keys(removalsByKey))await (async ()=>{
85581
+ const currentBundles = await loadObject(oldKey) ?? [];
85582
+ const updatedBundles = currentBundles.filter((b)=>!removalsByKey[oldKey].includes(b.id));
85583
+ updatedBundles.sort((a, b)=>b.id.localeCompare(a.id));
85584
+ if (0 === updatedBundles.length) await deleteObject(oldKey);
85585
+ else await uploadObject(oldKey, updatedBundles);
85586
+ })();
85587
+ for (const key of Object.keys(changedBundlesByKey))await (async ()=>{
85588
+ const currentBundles = await loadObject(key) ?? [];
85589
+ const pureBundles = changedBundlesByKey[key].map((bundle)=>bundle);
85590
+ for (const changedBundle of pureBundles){
85591
+ const index = currentBundles.findIndex((b)=>b.id === changedBundle.id);
85592
+ if (index >= 0) currentBundles[index] = changedBundle;
85593
+ else currentBundles.push(changedBundle);
85594
+ }
85595
+ currentBundles.sort((a, b)=>b.id.localeCompare(a.id));
85596
+ await uploadObject(key, currentBundles);
85597
+ })();
85598
+ const updatedTargetFilePaths = new Set();
85599
+ for (const platform of PLATFORMS){
85600
+ const updatedPaths = await updateTargetVersionsForPlatform(platform);
85601
+ for (const path of updatedPaths)updatedTargetFilePaths.add(path);
85602
+ }
85603
+ for (const path of updatedTargetFilePaths)pathsToInvalidate.add(path);
85604
+ await invalidatePaths(Array.from(pathsToInvalidate));
85605
+ pendingBundlesMap.clear();
85606
+ hooks?.onDatabaseUpdated?.();
85607
+ }
85608
+ }, hooks);
85609
+ };
85871
85610
  })();
85872
- var __webpack_export_target__ = exports;
85873
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
85874
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
85611
+ exports.banner = __webpack_exports__.banner;
85612
+ exports.copyDirToTmp = __webpack_exports__.copyDirToTmp;
85613
+ exports.createBlobDatabasePlugin = __webpack_exports__.createBlobDatabasePlugin;
85614
+ exports.createDatabasePlugin = __webpack_exports__.createDatabasePlugin;
85615
+ exports.createZip = __webpack_exports__.createZip;
85616
+ exports.createZipTargetFiles = __webpack_exports__.createZipTargetFiles;
85617
+ exports.getCwd = __webpack_exports__.getCwd;
85618
+ exports.link = __webpack_exports__.link;
85619
+ exports.loadConfig = __webpack_exports__.loadConfig;
85620
+ exports.loadConfigSync = __webpack_exports__.loadConfigSync;
85621
+ exports.log = __webpack_exports__.log;
85622
+ exports.makeEnv = __webpack_exports__.makeEnv;
85623
+ exports.printBanner = __webpack_exports__.printBanner;
85624
+ exports.transformEnv = __webpack_exports__.transformEnv;
85625
+ exports.transformTemplate = __webpack_exports__.transformTemplate;
85626
+ exports.transformTsEnv = __webpack_exports__.transformTsEnv;
85627
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
85628
+ "banner",
85629
+ "copyDirToTmp",
85630
+ "createBlobDatabasePlugin",
85631
+ "createDatabasePlugin",
85632
+ "createZip",
85633
+ "createZipTargetFiles",
85634
+ "getCwd",
85635
+ "link",
85636
+ "loadConfig",
85637
+ "loadConfigSync",
85638
+ "log",
85639
+ "makeEnv",
85640
+ "printBanner",
85641
+ "transformEnv",
85642
+ "transformTemplate",
85643
+ "transformTsEnv"
85644
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
85645
+ Object.defineProperty(exports, '__esModule', {
85875
85646
  value: true
85876
85647
  });