igv 2.12.2 → 2.12.3

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/igv.js CHANGED
@@ -20413,6 +20413,12 @@
20413
20413
  complement[t1[i].toLowerCase()] = t2[i].toLowerCase();
20414
20414
  }
20415
20415
 
20416
+ const DEFAULT_HEIGHT = 25;
20417
+ const TRANSLATED_HEIGHT = 115;
20418
+ const SEQUENCE_HEIGHT = 15;
20419
+ const FRAME_HEIGHT = 25;
20420
+ const FRAME_BORDER = 5;
20421
+
20416
20422
  class SequenceTrack {
20417
20423
  constructor(config, browser) {
20418
20424
  this.type = "sequence";
@@ -20423,12 +20429,12 @@
20423
20429
  this.id = "sequence";
20424
20430
  this.sequenceType = config.sequenceType || "dna"; // dna | rna | prot
20425
20431
 
20426
- this.height = 25;
20427
20432
  this.disableButtons = false;
20428
20433
  this.order = config.order || defaultSequenceTrackOrder;
20429
20434
  this.ignoreTrackMenu = false;
20430
- this.reversed = false;
20431
- this.frameTranslate = false;
20435
+ this.reversed = config.reversed === true;
20436
+ this.frameTranslate = config.frameTranslate === true;
20437
+ this.height = this.frameTranslate ? TRANSLATED_HEIGHT : DEFAULT_HEIGHT;
20432
20438
  }
20433
20439
 
20434
20440
  menuItemList() {
@@ -20445,16 +20451,16 @@
20445
20451
 
20446
20452
  if (this.frameTranslate) {
20447
20453
  for (let vp of this.trackView.viewports) {
20448
- vp.setContentHeight(115);
20454
+ vp.setContentHeight(TRANSLATED_HEIGHT);
20449
20455
  }
20450
20456
 
20451
- this.trackView.setTrackHeight(115);
20457
+ this.trackView.setTrackHeight(TRANSLATED_HEIGHT);
20452
20458
  } else {
20453
20459
  for (let vp of this.trackView.viewports) {
20454
- vp.setContentHeight(25);
20460
+ vp.setContentHeight(DEFAULT_HEIGHT);
20455
20461
  }
20456
20462
 
20457
- this.trackView.setTrackHeight(25);
20463
+ this.trackView.setTrackHeight(DEFAULT_HEIGHT);
20458
20464
  }
20459
20465
 
20460
20466
  this.trackView.repaintViews();
@@ -20537,6 +20543,9 @@
20537
20543
  }
20538
20544
 
20539
20545
  async getFeatures(chr, start, end, bpPerPixel) {
20546
+ start = Math.floor(start);
20547
+ end = Math.floor(end);
20548
+
20540
20549
  if (bpPerPixel && bpPerPixel > 1) {
20541
20550
  return null;
20542
20551
  } else {
@@ -20552,33 +20561,35 @@
20552
20561
  const ctx = options.context;
20553
20562
 
20554
20563
  if (options.features) {
20555
- const sequence = options.features.sequence;
20556
- const sequenceBpStart = options.features.bpStart;
20557
- const bpEnd = 1 + options.bpStart + options.pixelWidth * options.bpPerPixel;
20558
- let height = 15;
20564
+ let sequence = options.features.sequence;
20565
+
20566
+ if (this.reversed) {
20567
+ sequence = sequence.split('').map(function (cv) {
20568
+ return complement[cv];
20569
+ }).join('');
20570
+ }
20559
20571
 
20560
- for (let bp = sequenceBpStart; bp <= bpEnd; bp++) {
20561
- let seqOffsetBp = Math.floor(bp - sequenceBpStart);
20572
+ const sequenceBpStart = options.features.bpStart; // genomic position at start of sequence
20562
20573
 
20563
- if (seqOffsetBp < sequence.length) {
20564
- let letter = sequence[seqOffsetBp];
20574
+ const bpEnd = 1 + options.bpStart + options.pixelWidth * options.bpPerPixel;
20565
20575
 
20566
- if (this.reversed) {
20567
- letter = complement[letter] || "";
20568
- }
20576
+ for (let bp = Math.floor(options.bpStart); bp <= bpEnd; bp++) {
20577
+ const seqIdx = Math.floor(bp - sequenceBpStart);
20569
20578
 
20570
- let offsetBP = bp - options.bpStart;
20571
- let aPixel = offsetBP / options.bpPerPixel;
20572
- let bPixel = (offsetBP + 1) / options.bpPerPixel;
20573
- let color = this.fillColor(letter); // IGVGraphics.fillRect(ctx, aPixel, 5, bPixel - aPixel, height - 5, { fillStyle: randomRGBConstantAlpha(150, 255, 0.75) });
20579
+ if (seqIdx >= 0 && seqIdx < sequence.length) {
20580
+ const baseLetter = sequence[seqIdx];
20581
+ const offsetBP = bp - options.bpStart;
20582
+ const aPixel = offsetBP / options.bpPerPixel;
20583
+ const pixelWidth = 1 / options.bpPerPixel;
20584
+ const color = this.fillColor(baseLetter);
20574
20585
 
20575
20586
  if (options.bpPerPixel > 1 / 10) {
20576
- IGVGraphics.fillRect(ctx, aPixel, 5, bPixel - aPixel, height - 5, {
20587
+ IGVGraphics.fillRect(ctx, aPixel, 5, pixelWidth, SEQUENCE_HEIGHT - 5, {
20577
20588
  fillStyle: color
20578
20589
  });
20579
20590
  } else {
20580
- let xPixel = 0.5 * (aPixel + bPixel - ctx.measureText(letter).width);
20581
- IGVGraphics.strokeText(ctx, letter, xPixel, height, {
20591
+ let textPixel = aPixel + 0.5 * (pixelWidth - ctx.measureText(baseLetter).width);
20592
+ IGVGraphics.strokeText(ctx, baseLetter, textPixel, SEQUENCE_HEIGHT, {
20582
20593
  strokeStyle: color
20583
20594
  });
20584
20595
  }
@@ -20586,55 +20597,48 @@
20586
20597
  }
20587
20598
 
20588
20599
  if (this.frameTranslate) {
20589
- let transSeq;
20600
+ let y = SEQUENCE_HEIGHT + 2 * FRAME_BORDER;
20601
+ const translatedSequence = this.translateSequence(sequence);
20590
20602
 
20591
- if (this.reversed) {
20592
- transSeq = sequence.split('').map(function (cv) {
20593
- return complement[cv];
20594
- });
20595
- transSeq = transSeq.join('');
20596
- } else {
20597
- transSeq = sequence;
20598
- }
20603
+ for (let fNum = 0; fNum < translatedSequence.length; fNum++) {
20604
+ // == 3, 1 for each frame
20605
+ const aaSequence = translatedSequence[fNum]; // AA sequence for this frame
20599
20606
 
20600
- let y = height;
20601
- let translatedSequence = this.translateSequence(transSeq);
20602
-
20603
- for (let arr of translatedSequence) {
20604
- let i = translatedSequence.indexOf(arr);
20605
- let fNum = i;
20606
- let h = 25;
20607
- y = i === 0 ? y + 10 : y + 30; //Little less room at first.
20608
-
20609
- for (let cv of arr) {
20610
- let aaS;
20611
- let idx = arr.indexOf(cv);
20612
- let xSeed = idx + fNum + 2 * idx;
20607
+ for (let idx = 0; idx < aaSequence.length; idx++) {
20613
20608
  let color = 0 === idx % 2 ? 'rgb(160,160,160)' : 'rgb(224,224,224)';
20614
- let p0 = Math.floor(xSeed / options.bpPerPixel);
20615
- let p1 = Math.floor((xSeed + 3) / options.bpPerPixel);
20616
- let pc = Math.round((p0 + p1) / 2);
20609
+ const cv = aaSequence[idx];
20610
+ const bpPos = sequenceBpStart + fNum + idx * 3;
20611
+ const bpOffset = bpPos - options.bpStart;
20612
+ const p0 = Math.floor(bpOffset / options.bpPerPixel);
20613
+ const p1 = Math.floor((bpOffset + 3) / options.bpPerPixel);
20614
+ const pc = Math.round((p0 + p1) / 2);
20615
+
20616
+ if (p1 < 0) {
20617
+ continue; // off left edge
20618
+ } else if (p0 > options.pixelWidth) {
20619
+ break; // off right edge
20620
+ }
20621
+
20622
+ let aaLabel = cv.aminoA;
20617
20623
 
20618
20624
  if (cv.aminoA.indexOf('STOP') > -1) {
20619
20625
  color = 'rgb(255, 0, 0)';
20620
- aaS = 'STOP'; //Color blind accessible
20621
- } else {
20622
- aaS = cv.aminoA;
20623
- }
20624
-
20625
- if (cv.aminoA === 'M') {
20626
+ aaLabel = 'STOP'; //Color blind accessible
20627
+ } else if (cv.aminoA === 'M') {
20626
20628
  color = 'rgb(0, 153, 0)';
20627
- aaS = 'START'; //Color blind accessible
20629
+ aaLabel = 'START'; //Color blind accessible
20628
20630
  }
20629
20631
 
20630
- IGVGraphics.fillRect(ctx, p0, y, p1 - p0, h, {
20632
+ IGVGraphics.fillRect(ctx, p0, y, p1 - p0, FRAME_HEIGHT, {
20631
20633
  fillStyle: color
20632
20634
  });
20633
20635
 
20634
20636
  if (options.bpPerPixel <= 1 / 10) {
20635
- IGVGraphics.strokeText(ctx, aaS, pc - ctx.measureText(aaS).width / 2, y + 15);
20637
+ IGVGraphics.strokeText(ctx, aaLabel, pc - ctx.measureText(aaLabel).width / 2, y + 15);
20636
20638
  }
20637
20639
  }
20640
+
20641
+ y += FRAME_HEIGHT + FRAME_BORDER;
20638
20642
  }
20639
20643
  }
20640
20644
  }
@@ -20645,6 +20649,7 @@
20645
20649
  }
20646
20650
 
20647
20651
  computePixelHeight(ignore) {
20652
+ this.height = this.frameTranslate ? TRANSLATED_HEIGHT : DEFAULT_HEIGHT;
20648
20653
  return this.height;
20649
20654
  }
20650
20655
 
@@ -20657,6 +20662,19 @@
20657
20662
  return 'rgb(0, 0, 150)';
20658
20663
  }
20659
20664
  }
20665
+ /**
20666
+ * Return the current state of the track. Used to create sessions and bookmarks.
20667
+ *
20668
+ * @returns {*|{}}
20669
+ */
20670
+
20671
+
20672
+ getState() {
20673
+ const config = typeof super.getState === 'function' ? super.getState() : {};
20674
+ if (this.reversed) config.revealed = true;
20675
+ if (this.frameTranslate) config.frameTranslate = true;
20676
+ return config;
20677
+ }
20660
20678
 
20661
20679
  }
20662
20680
 
@@ -22623,7 +22641,9 @@
22623
22641
  }
22624
22642
 
22625
22643
  async getSequence(chr, start, end) {
22626
- if (!(this.interval && this.interval.contains(chr, start, end))) {
22644
+ const hasCachedSquence = this.interval && this.interval.contains(chr, start, end);
22645
+
22646
+ if (!hasCachedSquence) {
22627
22647
  // Expand query, to minimum of 50kb
22628
22648
  let qstart = start;
22629
22649
  let qend = end;
@@ -23093,7 +23113,7 @@
23093
23113
  }
23094
23114
  };
23095
23115
 
23096
- const _version = "2.12.2";
23116
+ const _version = "2.12.3";
23097
23117
 
23098
23118
  function version$1() {
23099
23119
  return _version;
@@ -23748,6 +23768,19 @@
23748
23768
  this.stopSpinner();
23749
23769
  }
23750
23770
  }
23771
+
23772
+ repaintDimensions() {
23773
+ const isWGV = GenomeUtils.isWholeGenomeView(this.referenceFrame.chr);
23774
+ const pixelWidth = isWGV ? this.$viewport.width() : 3 * this.$viewport.width();
23775
+ const bpPerPixel = this.referenceFrame.bpPerPixel;
23776
+ const startBP = this.referenceFrame.start - (isWGV ? 0 : pixelWidth / 3 * bpPerPixel);
23777
+ const endBP = this.referenceFrame.end + (isWGV ? 0 : pixelWidth / 3 * bpPerPixel);
23778
+ return {
23779
+ startBP,
23780
+ endBP,
23781
+ pixelWidth
23782
+ };
23783
+ }
23751
23784
  /**
23752
23785
  * Repaint the canvas using the cached features
23753
23786
  *
@@ -23765,10 +23798,14 @@
23765
23798
  } = this.featureCache; //this.tile.bpPerPixel = this.referenceFrame.bpPerPixel
23766
23799
  // const isWGV = GenomeUtils.isWholeGenomeView(this.browser.referenceFrameList[0].chr)
23767
23800
 
23768
- const isWGV = GenomeUtils.isWholeGenomeView(this.referenceFrame.chr); // Canvas dimensions. There is no left-right panning for WGV so canvas width is viewport width.
23801
+ GenomeUtils.isWholeGenomeView(this.referenceFrame.chr); // Canvas dimensions. There is no left-right panning for WGV so canvas width is viewport width.
23769
23802
  // For deep tracks we paint a canvas == 3*viewportHeight centered on the current vertical scroll position
23770
23803
 
23771
- const pixelWidth = isWGV ? this.$viewport.width() : 3 * this.$viewport.width();
23804
+ const {
23805
+ startBP,
23806
+ endBP,
23807
+ pixelWidth
23808
+ } = this.repaintDimensions();
23772
23809
  const viewportHeight = this.$viewport.height();
23773
23810
  const contentHeight = this.getContentHeight();
23774
23811
  const minHeight = roiFeatures ? Math.max(contentHeight, viewportHeight) : contentHeight; // Need to fill viewport for ROIs.
@@ -23784,9 +23821,9 @@
23784
23821
  }
23785
23822
 
23786
23823
  const canvasTop = Math.max(0, -this.$content.position().top - viewportHeight);
23787
- const bpPerPixel = this.referenceFrame.bpPerPixel;
23788
- const startBP = this.referenceFrame.start - (isWGV ? 0 : pixelWidth / 3 * bpPerPixel);
23789
- const endBP = this.referenceFrame.end + (isWGV ? 0 : pixelWidth / 3 * bpPerPixel);
23824
+ const bpPerPixel = this.referenceFrame.bpPerPixel; //const startBP = this.referenceFrame.start - (isWGV ? 0 : pixelWidth / 3 * bpPerPixel)
23825
+ //const endBP = this.referenceFrame.end + (isWGV ? 0 : pixelWidth / 3 * bpPerPixel)
23826
+
23790
23827
  const pixelXOffset = Math.round((startBP - this.referenceFrame.start) / bpPerPixel);
23791
23828
  const newCanvas = $$1('<canvas class="igv-canvas">').get(0);
23792
23829
  newCanvas.style.width = pixelWidth + "px";
@@ -24027,10 +24064,12 @@
24027
24064
  if (!this.featureCache) return true;
24028
24065
  const referenceFrame = this.referenceFrame;
24029
24066
  const chr = this.referenceFrame.chr;
24030
- const start = referenceFrame.start;
24031
- const end = start + referenceFrame.toBP($$1(this.contentDiv).width());
24032
24067
  const bpPerPixel = referenceFrame.bpPerPixel;
24033
- return !this.featureCache.containsRange(chr, start, end, bpPerPixel);
24068
+ const {
24069
+ startBP,
24070
+ endBP
24071
+ } = this.repaintDimensions();
24072
+ return !this.featureCache.containsRange(chr, startBP, endBP, bpPerPixel);
24034
24073
  }
24035
24074
 
24036
24075
  createZoomInNotice($parent) {
@@ -24496,7 +24535,7 @@
24496
24535
  }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
24497
24536
 
24498
24537
 
24499
- var global$1 = // eslint-disable-next-line es/no-global-this -- safe
24538
+ var global$1 = // eslint-disable-next-line es-x/no-global-this -- safe
24500
24539
  check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe
24501
24540
  check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
24502
24541
  function () {
@@ -24512,6 +24551,7 @@
24512
24551
  };
24513
24552
 
24514
24553
  var functionBindNative = !fails(function () {
24554
+ // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
24515
24555
  var test = function () {
24516
24556
  /* empty */
24517
24557
  }.bind(); // eslint-disable-next-line no-prototype-builtins -- safe
@@ -24525,11 +24565,11 @@
24525
24565
  return call$2.apply(call$2, arguments);
24526
24566
  };
24527
24567
 
24528
- // eslint-disable-next-line es/no-typed-arrays -- safe
24568
+ // eslint-disable-next-line es-x/no-typed-arrays -- safe
24529
24569
  var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
24530
24570
 
24531
24571
  var descriptors = !fails(function () {
24532
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
24572
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
24533
24573
  return Object.defineProperty({}, 1, {
24534
24574
  get: function () {
24535
24575
  return 7;
@@ -24576,6 +24616,7 @@
24576
24616
 
24577
24617
  var hasOwnProperty = functionUncurryThis({}.hasOwnProperty); // `HasOwnProperty` abstract operation
24578
24618
  // https://tc39.es/ecma262/#sec-hasownproperty
24619
+ // eslint-disable-next-line es-x/no-object-hasown -- safe
24579
24620
 
24580
24621
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
24581
24622
  return hasOwnProperty(toObject(it), key);
@@ -24605,10 +24646,10 @@
24605
24646
  (module.exports = function (key, value) {
24606
24647
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
24607
24648
  })('versions', []).push({
24608
- version: '3.21.1',
24649
+ version: '3.22.0',
24609
24650
  mode: 'global',
24610
24651
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
24611
- license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
24652
+ license: 'https://github.com/zloirock/core-js/blob/v3.22.0/LICENSE',
24612
24653
  source: 'https://github.com/zloirock/core-js'
24613
24654
  });
24614
24655
  });
@@ -24657,7 +24698,7 @@
24657
24698
 
24658
24699
  var engineV8Version = version;
24659
24700
 
24660
- /* eslint-disable es/no-symbol -- required for testing */
24701
+ /* eslint-disable es-x/no-symbol -- required for testing */
24661
24702
 
24662
24703
  var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
24663
24704
  var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion
@@ -24667,7 +24708,7 @@
24667
24708
  !Symbol.sham && engineV8Version && engineV8Version < 41;
24668
24709
  });
24669
24710
 
24670
- /* eslint-disable es/no-symbol -- required for testing */
24711
+ /* eslint-disable es-x/no-symbol -- required for testing */
24671
24712
  var useSymbolAsUid = nativeSymbol && !Symbol.sham && typeof Symbol.iterator == 'symbol';
24672
24713
 
24673
24714
  var WellKnownSymbolsStore = shared('wks');
@@ -24746,7 +24787,7 @@
24746
24787
  };
24747
24788
 
24748
24789
  var ie8DomDefine = !descriptors && !fails(function () {
24749
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
24790
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
24750
24791
  return Object.defineProperty(documentCreateElement('div'), 'a', {
24751
24792
  get: function () {
24752
24793
  return 7;
@@ -24757,7 +24798,7 @@
24757
24798
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
24758
24799
 
24759
24800
  var v8PrototypeDefineBug = descriptors && fails(function () {
24760
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
24801
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
24761
24802
  return Object.defineProperty(function () {
24762
24803
  /* empty */
24763
24804
  }, 'prototype', {
@@ -24836,9 +24877,9 @@
24836
24877
  return isSymbol(key) ? key : key + '';
24837
24878
  };
24838
24879
 
24839
- var TypeError$5 = global$1.TypeError; // eslint-disable-next-line es/no-object-defineproperty -- safe
24880
+ var TypeError$5 = global$1.TypeError; // eslint-disable-next-line es-x/no-object-defineproperty -- safe
24840
24881
 
24841
- var $defineProperty = Object.defineProperty; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
24882
+ var $defineProperty = Object.defineProperty; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
24842
24883
 
24843
24884
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
24844
24885
  var ENUMERABLE = 'enumerable';
@@ -24988,7 +25029,7 @@
24988
25029
  getterFor: getterFor
24989
25030
  };
24990
25031
 
24991
- var FunctionPrototype$1 = Function.prototype; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
25032
+ var FunctionPrototype$1 = Function.prototype; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
24992
25033
 
24993
25034
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
24994
25035
  var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name'); // additional protection from minified / mangled / dropped function names
@@ -25052,7 +25093,7 @@
25052
25093
  /* empty */
25053
25094
  }
25054
25095
 
25055
- F.prototype.constructor = null; // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
25096
+ F.prototype.constructor = null; // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
25056
25097
 
25057
25098
  return Object.getPrototypeOf(new F()) !== F.prototype;
25058
25099
  });
@@ -25085,7 +25126,7 @@
25085
25126
  /* eslint-disable no-proto -- safe */
25086
25127
  // https://tc39.es/ecma262/#sec-object.setprototypeof
25087
25128
  // Works with __proto__ only. Old v8 can't work with null proto objects.
25088
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
25129
+ // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
25089
25130
 
25090
25131
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
25091
25132
  var CORRECT_SETTER = false;
@@ -25093,7 +25134,7 @@
25093
25134
  var setter;
25094
25135
 
25095
25136
  try {
25096
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
25137
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
25097
25138
  setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
25098
25139
  setter(test, []);
25099
25140
  CORRECT_SETTER = test instanceof Array;
@@ -25326,7 +25367,7 @@
25326
25367
  var aTypedArray = arrayBufferViewCore.aTypedArray;
25327
25368
  var exportTypedArrayMethod = arrayBufferViewCore.exportTypedArrayMethod;
25328
25369
  var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails(function () {
25329
- // eslint-disable-next-line es/no-typed-arrays -- required for testing
25370
+ // eslint-disable-next-line es-x/no-typed-arrays -- required for testing
25330
25371
  var array = new Uint8ClampedArray(2);
25331
25372
  functionCall($set, array, {
25332
25373
  length: 1,
@@ -28873,7 +28914,7 @@
28873
28914
 
28874
28915
  }
28875
28916
 
28876
- var $propertyIsEnumerable = {}.propertyIsEnumerable; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
28917
+ var $propertyIsEnumerable = {}.propertyIsEnumerable; // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
28877
28918
 
28878
28919
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug
28879
28920
 
@@ -28984,7 +29025,7 @@
28984
29025
 
28985
29026
  var hiddenKeys = enumBugKeys.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method
28986
29027
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
28987
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
29028
+ // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
28988
29029
 
28989
29030
  var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
28990
29031
  return objectKeysInternal(O, hiddenKeys);
@@ -28994,7 +29035,7 @@
28994
29035
  f: f$1
28995
29036
  };
28996
29037
 
28997
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
29038
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
28998
29039
  var f = Object.getOwnPropertySymbols;
28999
29040
  var objectGetOwnPropertySymbols = {
29000
29041
  f: f
@@ -29096,7 +29137,7 @@
29096
29137
 
29097
29138
  var FunctionPrototype = Function.prototype;
29098
29139
  var apply = FunctionPrototype.apply;
29099
- var call = FunctionPrototype.call; // eslint-disable-next-line es/no-reflect -- safe
29140
+ var call = FunctionPrototype.call; // eslint-disable-next-line es-x/no-reflect -- safe
29100
29141
 
29101
29142
  var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
29102
29143
  return call.apply(apply, arguments);
@@ -29230,20 +29271,28 @@
29230
29271
  clear: clear
29231
29272
  };
29232
29273
 
29233
- var FORCED = !global$1.setImmediate || !global$1.clearImmediate; // http://w3c.github.io/setImmediate/
29274
+ var clearImmediate = task.clear; // `clearImmediate` method
29275
+ // http://w3c.github.io/setImmediate/#si-clearImmediate
29276
+
29277
+ _export({
29278
+ global: true,
29279
+ bind: true,
29280
+ enumerable: true,
29281
+ forced: global$1.clearImmediate !== clearImmediate
29282
+ }, {
29283
+ clearImmediate: clearImmediate
29284
+ });
29285
+
29286
+ var setImmediate = task.set; // `setImmediate` method
29287
+ // http://w3c.github.io/setImmediate/#si-setImmediate
29234
29288
 
29235
29289
  _export({
29236
29290
  global: true,
29237
29291
  bind: true,
29238
29292
  enumerable: true,
29239
- forced: FORCED
29293
+ forced: global$1.setImmediate !== setImmediate
29240
29294
  }, {
29241
- // `setImmediate` method
29242
- // http://w3c.github.io/setImmediate/#si-setImmediate
29243
- setImmediate: task.set,
29244
- // `clearImmediate` method
29245
- // http://w3c.github.io/setImmediate/#si-clearImmediate
29246
- clearImmediate: task.clear
29295
+ setImmediate: setImmediate
29247
29296
  });
29248
29297
 
29249
29298
  const eval2 = eval;