bootstrap-table-rails 1.20.0 → 1.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bootstrap-table-rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/.DS_Store +0 -0
  4. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +75 -56
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +82 -61
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +82 -61
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +6 -6
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +217 -143
  9. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +114 -87
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +84 -64
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +111 -75
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +84 -64
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +84 -64
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +75 -56
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +84 -63
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +93 -68
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +426 -367
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +104 -72
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +80 -60
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +85 -65
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +83 -62
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +87 -61
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +105 -73
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +79 -59
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +76 -57
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +92 -66
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +79 -59
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +80 -57
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +75 -56
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +79 -59
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +96 -69
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +76 -57
  33. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +75 -56
  34. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +75 -56
  35. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +75 -56
  36. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +75 -56
  37. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +75 -56
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +75 -56
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +75 -56
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +75 -56
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +75 -56
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +75 -56
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +75 -56
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +75 -56
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +75 -56
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +75 -56
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +75 -56
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +75 -56
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +75 -56
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +75 -56
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +75 -56
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +75 -56
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +75 -56
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +75 -56
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +75 -56
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +75 -56
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +75 -56
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +75 -56
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +75 -56
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +75 -56
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +75 -56
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +75 -56
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +75 -56
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +75 -56
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +75 -56
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +75 -56
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +75 -56
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +75 -56
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +75 -56
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +75 -56
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +75 -56
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +75 -56
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +75 -56
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +75 -56
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +75 -56
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +75 -56
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +75 -56
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +75 -56
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +75 -56
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +75 -56
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +75 -56
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +75 -56
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +75 -56
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +75 -56
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +75 -56
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +75 -56
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +75 -56
  88. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +5 -5
  89. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +85 -59
  90. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +5 -5
  91. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +85 -59
  92. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +5 -5
  93. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +85 -59
  94. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +5 -5
  95. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +85 -59
  96. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +5 -5
  97. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +85 -59
  98. metadata +1 -2
  99. data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
@@ -202,7 +202,7 @@
202
202
 
203
203
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
204
204
  var global_1 =
205
- // eslint-disable-next-line es/no-global-this -- safe
205
+ // eslint-disable-next-line es-x/no-global-this -- safe
206
206
  check(typeof globalThis == 'object' && globalThis) ||
207
207
  check(typeof window == 'object' && window) ||
208
208
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -221,11 +221,12 @@
221
221
 
222
222
  // Detect IE8's incomplete defineProperty implementation
223
223
  var descriptors = !fails(function () {
224
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
224
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
225
225
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
226
226
  });
227
227
 
228
228
  var functionBindNative = !fails(function () {
229
+ // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
229
230
  var test = (function () { /* empty */ }).bind();
230
231
  // eslint-disable-next-line no-prototype-builtins -- safe
231
232
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -238,7 +239,7 @@
238
239
  };
239
240
 
240
241
  var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
241
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
242
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
242
243
  var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
243
244
 
244
245
  // Nashorn ~ JDK8 bug
@@ -336,8 +337,8 @@
336
337
  var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
337
338
 
338
339
  var process$3 = global_1.process;
339
- var Deno = global_1.Deno;
340
- var versions = process$3 && process$3.versions || Deno && Deno.version;
340
+ var Deno$1 = global_1.Deno;
341
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
341
342
  var v8 = versions && versions.v8;
342
343
  var match, version;
343
344
 
@@ -360,11 +361,11 @@
360
361
 
361
362
  var engineV8Version = version;
362
363
 
363
- /* eslint-disable es/no-symbol -- required for testing */
364
+ /* eslint-disable es-x/no-symbol -- required for testing */
364
365
 
365
366
 
366
367
 
367
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
368
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
368
369
  var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
369
370
  var symbol = Symbol();
370
371
  // Chrome 38 Symbol has incorrect toString conversion
@@ -374,7 +375,7 @@
374
375
  !Symbol.sham && engineV8Version && engineV8Version < 41;
375
376
  });
376
377
 
377
- /* eslint-disable es/no-symbol -- required for testing */
378
+ /* eslint-disable es-x/no-symbol -- required for testing */
378
379
 
379
380
 
380
381
  var useSymbolAsUid = nativeSymbol
@@ -427,7 +428,7 @@
427
428
  throw TypeError$f("Can't convert object to primitive value");
428
429
  };
429
430
 
430
- // eslint-disable-next-line es/no-object-defineproperty -- safe
431
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
431
432
  var defineProperty$2 = Object.defineProperty;
432
433
 
433
434
  var setGlobal = function (key, value) {
@@ -447,10 +448,10 @@
447
448
  (module.exports = function (key, value) {
448
449
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
449
450
  })('versions', []).push({
450
- version: '3.21.1',
451
+ version: '3.22.4',
451
452
  mode: 'global',
452
453
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
453
- license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
454
+ license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
454
455
  source: 'https://github.com/zloirock/core-js'
455
456
  });
456
457
  });
@@ -467,6 +468,7 @@
467
468
 
468
469
  // `HasOwnProperty` abstract operation
469
470
  // https://tc39.es/ecma262/#sec-hasownproperty
471
+ // eslint-disable-next-line es-x/no-object-hasown -- safe
470
472
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
471
473
  return hasOwnProperty(toObject(it), key);
472
474
  };
@@ -533,13 +535,13 @@
533
535
 
534
536
  // Thanks to IE8 for its funny defineProperty
535
537
  var ie8DomDefine = !descriptors && !fails(function () {
536
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
538
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
537
539
  return Object.defineProperty(documentCreateElement('div'), 'a', {
538
540
  get: function () { return 7; }
539
541
  }).a != 7;
540
542
  });
541
543
 
542
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
544
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
543
545
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
544
546
 
545
547
  // `Object.getOwnPropertyDescriptor` method
@@ -560,7 +562,7 @@
560
562
  // V8 ~ Chrome 36-
561
563
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
562
564
  var v8PrototypeDefineBug = descriptors && fails(function () {
563
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
565
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
564
566
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
565
567
  value: 42,
566
568
  writable: false
@@ -577,9 +579,9 @@
577
579
  };
578
580
 
579
581
  var TypeError$c = global_1.TypeError;
580
- // eslint-disable-next-line es/no-object-defineproperty -- safe
582
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
581
583
  var $defineProperty = Object.defineProperty;
582
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
584
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
583
585
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
584
586
  var ENUMERABLE = 'enumerable';
585
587
  var CONFIGURABLE$1 = 'configurable';
@@ -625,6 +627,21 @@
625
627
  return object;
626
628
  };
627
629
 
630
+ var FunctionPrototype$1 = Function.prototype;
631
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
632
+ var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
633
+
634
+ var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
635
+ // additional protection from minified / mangled / dropped function names
636
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
637
+ var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
638
+
639
+ var functionName = {
640
+ EXISTS: EXISTS,
641
+ PROPER: PROPER,
642
+ CONFIGURABLE: CONFIGURABLE
643
+ };
644
+
628
645
  var functionToString = functionUncurryThis(Function.toString);
629
646
 
630
647
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
@@ -708,50 +725,56 @@
708
725
  getterFor: getterFor
709
726
  };
710
727
 
711
- var FunctionPrototype$1 = Function.prototype;
712
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
713
- var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
714
-
715
- var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
716
- // additional protection from minified / mangled / dropped function names
717
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
718
- var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
728
+ var makeBuiltIn_1 = createCommonjsModule(function (module) {
729
+ var defineProperty = objectDefineProperty.f;
730
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
719
731
 
720
- var functionName = {
721
- EXISTS: EXISTS,
722
- PROPER: PROPER,
723
- CONFIGURABLE: CONFIGURABLE
724
- };
725
732
 
726
- var redefine = createCommonjsModule(function (module) {
727
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
728
733
 
729
- var getInternalState = internalState.get;
730
734
  var enforceInternalState = internalState.enforce;
735
+ var getInternalState = internalState.get;
736
+
737
+ var CONFIGURABLE_LENGTH = !fails(function () {
738
+ return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
739
+ });
740
+
731
741
  var TEMPLATE = String(String).split('String');
732
742
 
733
- (module.exports = function (O, key, value, options) {
743
+ var makeBuiltIn = module.exports = function (value, name, options) {
744
+ if (String(name).slice(0, 7) === 'Symbol(') {
745
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
746
+ }
747
+ if (options && options.getter) name = 'get ' + name;
748
+ if (options && options.setter) name = 'set ' + name;
749
+ if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
750
+ defineProperty(value, 'name', { value: name, configurable: true });
751
+ }
752
+ if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
753
+ defineProperty(value, 'length', { value: options.arity });
754
+ }
755
+ var state = enforceInternalState(value);
756
+ if (!hasOwnProperty_1(state, 'source')) {
757
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
758
+ } return value;
759
+ };
760
+
761
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
762
+ // eslint-disable-next-line no-extend-native -- required
763
+ Function.prototype.toString = makeBuiltIn(function toString() {
764
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
765
+ }, 'toString');
766
+ });
767
+
768
+ var defineBuiltIn = function (O, key, value, options) {
734
769
  var unsafe = options ? !!options.unsafe : false;
735
770
  var simple = options ? !!options.enumerable : false;
736
771
  var noTargetGet = options ? !!options.noTargetGet : false;
737
772
  var name = options && options.name !== undefined ? options.name : key;
738
- var state;
739
- if (isCallable(value)) {
740
- if (String(name).slice(0, 7) === 'Symbol(') {
741
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
742
- }
743
- if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
744
- createNonEnumerableProperty(value, 'name', name);
745
- }
746
- state = enforceInternalState(value);
747
- if (!state.source) {
748
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
749
- }
750
- }
773
+ if (isCallable(value)) makeBuiltIn_1(value, name, options);
751
774
  if (O === global_1) {
752
775
  if (simple) O[key] = value;
753
776
  else setGlobal(key, value);
754
- return;
777
+ return O;
755
778
  } else if (!unsafe) {
756
779
  delete O[key];
757
780
  } else if (!noTargetGet && O[key]) {
@@ -759,11 +782,8 @@
759
782
  }
760
783
  if (simple) O[key] = value;
761
784
  else createNonEnumerableProperty(O, key, value);
762
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
763
- })(Function.prototype, 'toString', function toString() {
764
- return isCallable(this) && getInternalState(this).source || inspectSource(this);
765
- });
766
- });
785
+ return O;
786
+ };
767
787
 
768
788
  var ceil = Math.ceil;
769
789
  var floor$2 = Math.floor;
@@ -863,7 +883,7 @@
863
883
 
864
884
  // `Object.getOwnPropertyNames` method
865
885
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
866
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
886
+ // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
867
887
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
868
888
  return objectKeysInternal(O, hiddenKeys);
869
889
  };
@@ -872,7 +892,7 @@
872
892
  f: f$3
873
893
  };
874
894
 
875
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
895
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
876
896
  var f$2 = Object.getOwnPropertySymbols;
877
897
 
878
898
  var objectGetOwnPropertySymbols = {
@@ -970,8 +990,7 @@
970
990
  if (options.sham || (targetProperty && targetProperty.sham)) {
971
991
  createNonEnumerableProperty(sourceProperty, 'sham', true);
972
992
  }
973
- // extend global
974
- redefine(target, key, sourceProperty, options);
993
+ defineBuiltIn(target, key, sourceProperty, options);
975
994
  }
976
995
  };
977
996
 
@@ -987,7 +1006,7 @@
987
1006
 
988
1007
  // `IsArray` abstract operation
989
1008
  // https://tc39.es/ecma262/#sec-isarray
990
- // eslint-disable-next-line es/no-array-isarray -- safe
1009
+ // eslint-disable-next-line es-x/no-array-isarray -- safe
991
1010
  var isArray = Array.isArray || function isArray(argument) {
992
1011
  return classofRaw(argument) == 'Array';
993
1012
  };
@@ -1200,12 +1219,12 @@
1200
1219
  // `Object.prototype.toString` method
1201
1220
  // https://tc39.es/ecma262/#sec-object.prototype.tostring
1202
1221
  if (!toStringTagSupport) {
1203
- redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1222
+ defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
1204
1223
  }
1205
1224
 
1206
1225
  // `Object.keys` method
1207
1226
  // https://tc39.es/ecma262/#sec-object.keys
1208
- // eslint-disable-next-line es/no-object-keys -- safe
1227
+ // eslint-disable-next-line es-x/no-object-keys -- safe
1209
1228
  var objectKeys = Object.keys || function keys(O) {
1210
1229
  return objectKeysInternal(O, enumBugKeys);
1211
1230
  };
@@ -1248,12 +1267,12 @@
1248
1267
  return spreadable !== undefined ? !!spreadable : isArray(O);
1249
1268
  };
1250
1269
 
1251
- var FORCED$3 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1270
+ var FORCED$2 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1252
1271
 
1253
1272
  // `Array.prototype.concat` method
1254
1273
  // https://tc39.es/ecma262/#sec-array.prototype.concat
1255
1274
  // with adding support of @@isConcatSpreadable and @@species
1256
- _export({ target: 'Array', proto: true, forced: FORCED$3 }, {
1275
+ _export({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
1257
1276
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1258
1277
  concat: function concat(arg) {
1259
1278
  var O = toObject(this);
@@ -1278,7 +1297,7 @@
1278
1297
 
1279
1298
  // `Object.defineProperties` method
1280
1299
  // https://tc39.es/ecma262/#sec-object.defineproperties
1281
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1300
+ // eslint-disable-next-line es-x/no-object-defineproperties -- safe
1282
1301
  var f$1 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
1283
1302
  anObject(O);
1284
1303
  var props = toIndexedObject(Properties);
@@ -1367,6 +1386,7 @@
1367
1386
 
1368
1387
  // `Object.create` method
1369
1388
  // https://tc39.es/ecma262/#sec-object.create
1389
+ // eslint-disable-next-line es-x/no-object-create -- safe
1370
1390
  var objectCreate = Object.create || function create(O, Properties) {
1371
1391
  var result;
1372
1392
  if (O !== null) {
@@ -1399,9 +1419,15 @@
1399
1419
  var $includes = arrayIncludes.includes;
1400
1420
 
1401
1421
 
1422
+
1423
+ // FF99+ bug
1424
+ var BROKEN_ON_SPARSE = fails(function () {
1425
+ return !Array(1).includes();
1426
+ });
1427
+
1402
1428
  // `Array.prototype.includes` method
1403
1429
  // https://tc39.es/ecma262/#sec-array.prototype.includes
1404
- _export({ target: 'Array', proto: true }, {
1430
+ _export({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1405
1431
  includes: function includes(el /* , fromIndex = 0 */) {
1406
1432
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1407
1433
  }
@@ -1523,7 +1549,7 @@
1523
1549
  // https://tc39.es/ecma262/#sec-array.prototype.foreach
1524
1550
  var arrayForEach = !STRICT_METHOD$3 ? function forEach(callbackfn /* , thisArg */) {
1525
1551
  return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1526
- // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1552
+ // eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
1527
1553
  } : [].forEach;
1528
1554
 
1529
1555
  var handlePrototype = function (CollectionPrototype) {
@@ -1591,6 +1617,7 @@
1591
1617
  var regexpFlags = function () {
1592
1618
  var that = anObject(this);
1593
1619
  var result = '';
1620
+ if (that.hasIndices) result += 'd';
1594
1621
  if (that.global) result += 'g';
1595
1622
  if (that.ignoreCase) result += 'i';
1596
1623
  if (that.multiline) result += 'm';
@@ -1600,8 +1627,15 @@
1600
1627
  return result;
1601
1628
  };
1602
1629
 
1603
- var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
1630
+ var RegExpPrototype$2 = RegExp.prototype;
1604
1631
 
1632
+ var regexpGetFlags = function (R) {
1633
+ var flags = R.flags;
1634
+ return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwnProperty_1(R, 'flags') && objectIsPrototypeOf(RegExpPrototype$2, R)
1635
+ ? functionCall(regexpFlags, R) : flags;
1636
+ };
1637
+
1638
+ var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
1605
1639
 
1606
1640
 
1607
1641
 
@@ -1611,7 +1645,6 @@
1611
1645
  var TO_STRING = 'toString';
1612
1646
  var RegExpPrototype$1 = RegExp.prototype;
1613
1647
  var n$ToString = RegExpPrototype$1[TO_STRING];
1614
- var getFlags = functionUncurryThis(regexpFlags);
1615
1648
 
1616
1649
  var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1617
1650
  // FF44- RegExp#toString has a wrong name
@@ -1620,16 +1653,15 @@
1620
1653
  // `RegExp.prototype.toString` method
1621
1654
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1622
1655
  if (NOT_GENERIC || INCORRECT_NAME) {
1623
- redefine(RegExp.prototype, TO_STRING, function toString() {
1656
+ defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
1624
1657
  var R = anObject(this);
1625
- var p = toString_1(R.source);
1626
- var rf = R.flags;
1627
- var f = toString_1(rf === undefined && objectIsPrototypeOf(RegExpPrototype$1, R) && !('flags' in RegExpPrototype$1) ? getFlags(R) : rf);
1628
- return '/' + p + '/' + f;
1658
+ var pattern = toString_1(R.source);
1659
+ var flags = toString_1(regexpGetFlags(R));
1660
+ return '/' + pattern + '/' + flags;
1629
1661
  }, { unsafe: true });
1630
1662
  }
1631
1663
 
1632
- /* eslint-disable es/no-array-prototype-indexof -- required for testing */
1664
+ /* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
1633
1665
 
1634
1666
 
1635
1667
  var $IndexOf = arrayIncludes.indexOf;
@@ -1706,7 +1738,7 @@
1706
1738
 
1707
1739
 
1708
1740
 
1709
- var getInternalState$1 = internalState.get;
1741
+ var getInternalState = internalState.get;
1710
1742
 
1711
1743
 
1712
1744
 
@@ -1736,7 +1768,7 @@
1736
1768
  if (PATCH) {
1737
1769
  patchedExec = function exec(string) {
1738
1770
  var re = this;
1739
- var state = getInternalState$1(re);
1771
+ var state = getInternalState(re);
1740
1772
  var str = toString_1(string);
1741
1773
  var raw = state.raw;
1742
1774
  var result, reCopy, lastIndex, match, i, object, group;
@@ -1859,13 +1891,13 @@
1859
1891
  var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
1860
1892
  var hex = /^[+-]?0x/i;
1861
1893
  var exec$1 = functionUncurryThis(hex.exec);
1862
- var FORCED$2 = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
1894
+ var FORCED$1 = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
1863
1895
  // MS Edge 18- broken with boxed symbols
1864
1896
  || (ITERATOR$3 && !fails(function () { $parseInt(Object(ITERATOR$3)); }));
1865
1897
 
1866
1898
  // `parseInt` method
1867
1899
  // https://tc39.es/ecma262/#sec-parseint-string-radix
1868
- var numberParseInt = FORCED$2 ? function parseInt(string, radix) {
1900
+ var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
1869
1901
  var S = trim(toString_1(string));
1870
1902
  return $parseInt(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
1871
1903
  } : $parseInt;
@@ -1876,9 +1908,9 @@
1876
1908
  parseInt: numberParseInt
1877
1909
  });
1878
1910
 
1879
- // eslint-disable-next-line es/no-object-assign -- safe
1911
+ // eslint-disable-next-line es-x/no-object-assign -- safe
1880
1912
  var $assign = Object.assign;
1881
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1913
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
1882
1914
  var defineProperty$1 = Object.defineProperty;
1883
1915
  var concat$1 = functionUncurryThis([].concat);
1884
1916
 
@@ -1898,7 +1930,7 @@
1898
1930
  // should work with symbols and should have deterministic property order (V8 bug)
1899
1931
  var A = {};
1900
1932
  var B = {};
1901
- // eslint-disable-next-line es/no-symbol -- safe
1933
+ // eslint-disable-next-line es-x/no-symbol -- safe
1902
1934
  var symbol = Symbol();
1903
1935
  var alphabet = 'abcdefghijklmnopqrst';
1904
1936
  A[symbol] = 7;
@@ -1925,8 +1957,8 @@
1925
1957
 
1926
1958
  // `Object.assign` method
1927
1959
  // https://tc39.es/ecma262/#sec-object.assign
1928
- // eslint-disable-next-line es/no-object-assign -- required for testing
1929
- _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
1960
+ // eslint-disable-next-line es-x/no-object-assign -- required for testing
1961
+ _export({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== objectAssign }, {
1930
1962
  assign: objectAssign
1931
1963
  });
1932
1964
 
@@ -1950,12 +1982,7 @@
1950
1982
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1951
1983
  addToUnscopables(FIND);
1952
1984
 
1953
- var nativePromiseConstructor = global_1.Promise;
1954
-
1955
- var redefineAll = function (target, src, options) {
1956
- for (var key in src) redefine(target, key, src[key], options);
1957
- return target;
1958
- };
1985
+ var engineIsNode = classofRaw(global_1.process) == 'process';
1959
1986
 
1960
1987
  var String$2 = global_1.String;
1961
1988
  var TypeError$8 = global_1.TypeError;
@@ -1973,13 +2000,13 @@
1973
2000
  // `Object.setPrototypeOf` method
1974
2001
  // https://tc39.es/ecma262/#sec-object.setprototypeof
1975
2002
  // Works with __proto__ only. Old v8 can't work with null proto objects.
1976
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
2003
+ // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
1977
2004
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1978
2005
  var CORRECT_SETTER = false;
1979
2006
  var test = {};
1980
2007
  var setter;
1981
2008
  try {
1982
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2009
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
1983
2010
  setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1984
2011
  setter(test, []);
1985
2012
  CORRECT_SETTER = test instanceof Array;
@@ -2027,150 +2054,12 @@
2027
2054
  throw TypeError$7('Incorrect invocation');
2028
2055
  };
2029
2056
 
2030
- var iterators = {};
2031
-
2032
- var ITERATOR$2 = wellKnownSymbol('iterator');
2033
- var ArrayPrototype = Array.prototype;
2034
-
2035
- // check on default Array iterator
2036
- var isArrayIteratorMethod = function (it) {
2037
- return it !== undefined && (iterators.Array === it || ArrayPrototype[ITERATOR$2] === it);
2038
- };
2039
-
2040
- var ITERATOR$1 = wellKnownSymbol('iterator');
2041
-
2042
- var getIteratorMethod = function (it) {
2043
- if (it != undefined) return getMethod(it, ITERATOR$1)
2044
- || getMethod(it, '@@iterator')
2045
- || iterators[classof(it)];
2046
- };
2047
-
2048
2057
  var TypeError$6 = global_1.TypeError;
2049
2058
 
2050
- var getIterator = function (argument, usingIterator) {
2051
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
2052
- if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
2053
- throw TypeError$6(tryToString(argument) + ' is not iterable');
2054
- };
2055
-
2056
- var iteratorClose = function (iterator, kind, value) {
2057
- var innerResult, innerError;
2058
- anObject(iterator);
2059
- try {
2060
- innerResult = getMethod(iterator, 'return');
2061
- if (!innerResult) {
2062
- if (kind === 'throw') throw value;
2063
- return value;
2064
- }
2065
- innerResult = functionCall(innerResult, iterator);
2066
- } catch (error) {
2067
- innerError = true;
2068
- innerResult = error;
2069
- }
2070
- if (kind === 'throw') throw value;
2071
- if (innerError) throw innerResult;
2072
- anObject(innerResult);
2073
- return value;
2074
- };
2075
-
2076
- var TypeError$5 = global_1.TypeError;
2077
-
2078
- var Result = function (stopped, result) {
2079
- this.stopped = stopped;
2080
- this.result = result;
2081
- };
2082
-
2083
- var ResultPrototype = Result.prototype;
2084
-
2085
- var iterate = function (iterable, unboundFunction, options) {
2086
- var that = options && options.that;
2087
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2088
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2089
- var INTERRUPTED = !!(options && options.INTERRUPTED);
2090
- var fn = functionBindContext(unboundFunction, that);
2091
- var iterator, iterFn, index, length, result, next, step;
2092
-
2093
- var stop = function (condition) {
2094
- if (iterator) iteratorClose(iterator, 'normal', condition);
2095
- return new Result(true, condition);
2096
- };
2097
-
2098
- var callFn = function (value) {
2099
- if (AS_ENTRIES) {
2100
- anObject(value);
2101
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2102
- } return INTERRUPTED ? fn(value, stop) : fn(value);
2103
- };
2104
-
2105
- if (IS_ITERATOR) {
2106
- iterator = iterable;
2107
- } else {
2108
- iterFn = getIteratorMethod(iterable);
2109
- if (!iterFn) throw TypeError$5(tryToString(iterable) + ' is not iterable');
2110
- // optimisation for array iterators
2111
- if (isArrayIteratorMethod(iterFn)) {
2112
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2113
- result = callFn(iterable[index]);
2114
- if (result && objectIsPrototypeOf(ResultPrototype, result)) return result;
2115
- } return new Result(false);
2116
- }
2117
- iterator = getIterator(iterable, iterFn);
2118
- }
2119
-
2120
- next = iterator.next;
2121
- while (!(step = functionCall(next, iterator)).done) {
2122
- try {
2123
- result = callFn(step.value);
2124
- } catch (error) {
2125
- iteratorClose(iterator, 'throw', error);
2126
- }
2127
- if (typeof result == 'object' && result && objectIsPrototypeOf(ResultPrototype, result)) return result;
2128
- } return new Result(false);
2129
- };
2130
-
2131
- var ITERATOR = wellKnownSymbol('iterator');
2132
- var SAFE_CLOSING = false;
2133
-
2134
- try {
2135
- var called = 0;
2136
- var iteratorWithReturn = {
2137
- next: function () {
2138
- return { done: !!called++ };
2139
- },
2140
- 'return': function () {
2141
- SAFE_CLOSING = true;
2142
- }
2143
- };
2144
- iteratorWithReturn[ITERATOR] = function () {
2145
- return this;
2146
- };
2147
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2148
- Array.from(iteratorWithReturn, function () { throw 2; });
2149
- } catch (error) { /* empty */ }
2150
-
2151
- var checkCorrectnessOfIteration = function (exec, SKIP_CLOSING) {
2152
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2153
- var ITERATION_SUPPORT = false;
2154
- try {
2155
- var object = {};
2156
- object[ITERATOR] = function () {
2157
- return {
2158
- next: function () {
2159
- return { done: ITERATION_SUPPORT = true };
2160
- }
2161
- };
2162
- };
2163
- exec(object);
2164
- } catch (error) { /* empty */ }
2165
- return ITERATION_SUPPORT;
2166
- };
2167
-
2168
- var TypeError$4 = global_1.TypeError;
2169
-
2170
2059
  // `Assert: IsConstructor(argument) is true`
2171
2060
  var aConstructor = function (argument) {
2172
2061
  if (isConstructor(argument)) return argument;
2173
- throw TypeError$4(tryToString(argument) + ' is not a constructor');
2062
+ throw TypeError$6(tryToString(argument) + ' is not a constructor');
2174
2063
  };
2175
2064
 
2176
2065
  var SPECIES$2 = wellKnownSymbol('species');
@@ -2187,24 +2076,22 @@
2187
2076
  var apply = FunctionPrototype.apply;
2188
2077
  var call = FunctionPrototype.call;
2189
2078
 
2190
- // eslint-disable-next-line es/no-reflect -- safe
2079
+ // eslint-disable-next-line es-x/no-reflect -- safe
2191
2080
  var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
2192
2081
  return call.apply(apply, arguments);
2193
2082
  });
2194
2083
 
2195
2084
  var arraySlice = functionUncurryThis([].slice);
2196
2085
 
2197
- var TypeError$3 = global_1.TypeError;
2086
+ var TypeError$5 = global_1.TypeError;
2198
2087
 
2199
2088
  var validateArgumentsLength = function (passed, required) {
2200
- if (passed < required) throw TypeError$3('Not enough arguments');
2089
+ if (passed < required) throw TypeError$5('Not enough arguments');
2201
2090
  return passed;
2202
2091
  };
2203
2092
 
2204
2093
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(engineUserAgent);
2205
2094
 
2206
- var engineIsNode = classofRaw(global_1.process) == 'process';
2207
-
2208
2095
  var set = global_1.setImmediate;
2209
2096
  var clear = global_1.clearImmediate;
2210
2097
  var process$2 = global_1.process;
@@ -2376,7 +2263,7 @@
2376
2263
  // for other environments - macrotask based on:
2377
2264
  // - setImmediate
2378
2265
  // - MessageChannel
2379
- // - window.postMessag
2266
+ // - window.postMessage
2380
2267
  // - onreadystatechange
2381
2268
  // - setTimeout
2382
2269
  } else {
@@ -2397,36 +2284,6 @@
2397
2284
  } last = task;
2398
2285
  };
2399
2286
 
2400
- var PromiseCapability = function (C) {
2401
- var resolve, reject;
2402
- this.promise = new C(function ($$resolve, $$reject) {
2403
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
2404
- resolve = $$resolve;
2405
- reject = $$reject;
2406
- });
2407
- this.resolve = aCallable(resolve);
2408
- this.reject = aCallable(reject);
2409
- };
2410
-
2411
- // `NewPromiseCapability` abstract operation
2412
- // https://tc39.es/ecma262/#sec-newpromisecapability
2413
- var f = function (C) {
2414
- return new PromiseCapability(C);
2415
- };
2416
-
2417
- var newPromiseCapability$1 = {
2418
- f: f
2419
- };
2420
-
2421
- var promiseResolve = function (C, x) {
2422
- anObject(C);
2423
- if (isObject(x) && x.constructor === C) return x;
2424
- var promiseCapability = newPromiseCapability$1.f(C);
2425
- var resolve = promiseCapability.resolve;
2426
- resolve(x);
2427
- return promiseCapability.promise;
2428
- };
2429
-
2430
2287
  var hostReportErrors = function (a, b) {
2431
2288
  var console = global_1.console;
2432
2289
  if (console && console.error) {
@@ -2466,39 +2323,92 @@
2466
2323
 
2467
2324
  var queue = Queue;
2468
2325
 
2469
- var engineIsBrowser = typeof window == 'object';
2326
+ var promiseNativeConstructor = global_1.Promise;
2470
2327
 
2471
- var task = task$1.set;
2328
+ var engineIsBrowser = typeof window == 'object' && typeof Deno != 'object';
2472
2329
 
2330
+ promiseNativeConstructor && promiseNativeConstructor.prototype;
2331
+ var SPECIES$1 = wellKnownSymbol('species');
2332
+ var SUBCLASSING = false;
2333
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable(global_1.PromiseRejectionEvent);
2473
2334
 
2335
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced_1('Promise', function () {
2336
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(promiseNativeConstructor);
2337
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(promiseNativeConstructor);
2338
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2339
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2340
+ // We can't detect it synchronously, so just check versions
2341
+ if (!GLOBAL_CORE_JS_PROMISE && engineV8Version === 66) return true;
2342
+ // We can't use @@species feature detection in V8 since it causes
2343
+ // deoptimization and performance degradation
2344
+ // https://github.com/zloirock/core-js/issues/679
2345
+ if (engineV8Version >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
2346
+ // Detect correctness of subclassing with @@species support
2347
+ var promise = new promiseNativeConstructor(function (resolve) { resolve(1); });
2348
+ var FakePromise = function (exec) {
2349
+ exec(function () { /* empty */ }, function () { /* empty */ });
2350
+ };
2351
+ var constructor = promise.constructor = {};
2352
+ constructor[SPECIES$1] = FakePromise;
2353
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2354
+ if (!SUBCLASSING) return true;
2355
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2356
+ return !GLOBAL_CORE_JS_PROMISE && engineIsBrowser && !NATIVE_PROMISE_REJECTION_EVENT$1;
2357
+ });
2474
2358
 
2359
+ var promiseConstructorDetection = {
2360
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2361
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2362
+ SUBCLASSING: SUBCLASSING
2363
+ };
2475
2364
 
2365
+ var PromiseCapability = function (C) {
2366
+ var resolve, reject;
2367
+ this.promise = new C(function ($$resolve, $$reject) {
2368
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
2369
+ resolve = $$resolve;
2370
+ reject = $$reject;
2371
+ });
2372
+ this.resolve = aCallable(resolve);
2373
+ this.reject = aCallable(reject);
2374
+ };
2476
2375
 
2376
+ // `NewPromiseCapability` abstract operation
2377
+ // https://tc39.es/ecma262/#sec-newpromisecapability
2378
+ var f = function (C) {
2379
+ return new PromiseCapability(C);
2380
+ };
2477
2381
 
2382
+ var newPromiseCapability$1 = {
2383
+ f: f
2384
+ };
2478
2385
 
2386
+ var task = task$1.set;
2479
2387
 
2480
2388
 
2481
2389
 
2482
2390
 
2483
2391
 
2484
2392
 
2485
- var SPECIES$1 = wellKnownSymbol('species');
2486
- var PROMISE = 'Promise';
2487
2393
 
2488
- var getInternalState = internalState.getterFor(PROMISE);
2489
- var setInternalState = internalState.set;
2394
+
2395
+
2396
+ var PROMISE = 'Promise';
2397
+ var FORCED_PROMISE_CONSTRUCTOR$4 = promiseConstructorDetection.CONSTRUCTOR;
2398
+ var NATIVE_PROMISE_REJECTION_EVENT = promiseConstructorDetection.REJECTION_EVENT;
2399
+ var NATIVE_PROMISE_SUBCLASSING = promiseConstructorDetection.SUBCLASSING;
2490
2400
  var getInternalPromiseState = internalState.getterFor(PROMISE);
2491
- var NativePromisePrototype = nativePromiseConstructor && nativePromiseConstructor.prototype;
2492
- var PromiseConstructor = nativePromiseConstructor;
2493
- var PromisePrototype = NativePromisePrototype;
2494
- var TypeError$2 = global_1.TypeError;
2401
+ var setInternalState = internalState.set;
2402
+ var NativePromisePrototype$1 = promiseNativeConstructor && promiseNativeConstructor.prototype;
2403
+ var PromiseConstructor = promiseNativeConstructor;
2404
+ var PromisePrototype = NativePromisePrototype$1;
2405
+ var TypeError$4 = global_1.TypeError;
2495
2406
  var document$1 = global_1.document;
2496
2407
  var process = global_1.process;
2497
2408
  var newPromiseCapability = newPromiseCapability$1.f;
2498
2409
  var newGenericPromiseCapability = newPromiseCapability;
2499
2410
 
2500
2411
  var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global_1.dispatchEvent);
2501
- var NATIVE_REJECTION_EVENT = isCallable(global_1.PromiseRejectionEvent);
2502
2412
  var UNHANDLED_REJECTION = 'unhandledrejection';
2503
2413
  var REJECTION_HANDLED = 'rejectionhandled';
2504
2414
  var PENDING = 0;
@@ -2506,38 +2416,9 @@
2506
2416
  var REJECTED = 2;
2507
2417
  var HANDLED = 1;
2508
2418
  var UNHANDLED = 2;
2509
- var SUBCLASSING = false;
2510
2419
 
2511
2420
  var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2512
2421
 
2513
- var FORCED$1 = isForced_1(PROMISE, function () {
2514
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
2515
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
2516
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2517
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2518
- // We can't detect it synchronously, so just check versions
2519
- if (!GLOBAL_CORE_JS_PROMISE && engineV8Version === 66) return true;
2520
- // We can't use @@species feature detection in V8 since it causes
2521
- // deoptimization and performance degradation
2522
- // https://github.com/zloirock/core-js/issues/679
2523
- if (engineV8Version >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
2524
- // Detect correctness of subclassing with @@species support
2525
- var promise = new PromiseConstructor(function (resolve) { resolve(1); });
2526
- var FakePromise = function (exec) {
2527
- exec(function () { /* empty */ }, function () { /* empty */ });
2528
- };
2529
- var constructor = promise.constructor = {};
2530
- constructor[SPECIES$1] = FakePromise;
2531
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2532
- if (!SUBCLASSING) return true;
2533
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2534
- return !GLOBAL_CORE_JS_PROMISE && engineIsBrowser && !NATIVE_REJECTION_EVENT;
2535
- });
2536
-
2537
- var INCORRECT_ITERATION = FORCED$1 || !checkCorrectnessOfIteration(function (iterable) {
2538
- PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
2539
- });
2540
-
2541
2422
  // helpers
2542
2423
  var isThenable = function (it) {
2543
2424
  var then;
@@ -2568,7 +2449,7 @@
2568
2449
  }
2569
2450
  }
2570
2451
  if (result === reaction.promise) {
2571
- reject(TypeError$2('Promise-chain cycle'));
2452
+ reject(TypeError$4('Promise-chain cycle'));
2572
2453
  } else if (then = isThenable(result)) {
2573
2454
  functionCall(then, result, resolve, reject);
2574
2455
  } else resolve(result);
@@ -2602,7 +2483,7 @@
2602
2483
  event.initEvent(name, false, true);
2603
2484
  global_1.dispatchEvent(event);
2604
2485
  } else event = { promise: promise, reason: reason };
2605
- if (!NATIVE_REJECTION_EVENT && (handler = global_1['on' + name])) handler(event);
2486
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global_1['on' + name])) handler(event);
2606
2487
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2607
2488
  };
2608
2489
 
@@ -2658,7 +2539,7 @@
2658
2539
  state.done = true;
2659
2540
  if (unwrap) state = unwrap;
2660
2541
  try {
2661
- if (state.facade === value) throw TypeError$2("Promise can't be resolved itself");
2542
+ if (state.facade === value) throw TypeError$4("Promise can't be resolved itself");
2662
2543
  var then = isThenable(value);
2663
2544
  if (then) {
2664
2545
  microtask(function () {
@@ -2683,20 +2564,22 @@
2683
2564
  };
2684
2565
 
2685
2566
  // constructor polyfill
2686
- if (FORCED$1) {
2567
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2687
2568
  // 25.4.3.1 Promise(executor)
2688
2569
  PromiseConstructor = function Promise(executor) {
2689
2570
  anInstance(this, PromisePrototype);
2690
2571
  aCallable(executor);
2691
2572
  functionCall(Internal, this);
2692
- var state = getInternalState(this);
2573
+ var state = getInternalPromiseState(this);
2693
2574
  try {
2694
2575
  executor(bind(internalResolve, state), bind(internalReject, state));
2695
2576
  } catch (error) {
2696
2577
  internalReject(state, error);
2697
2578
  }
2698
2579
  };
2580
+
2699
2581
  PromisePrototype = PromiseConstructor.prototype;
2582
+
2700
2583
  // eslint-disable-next-line no-unused-vars -- required for `.length`
2701
2584
  Internal = function Promise(executor) {
2702
2585
  setInternalState(this, {
@@ -2710,105 +2593,220 @@
2710
2593
  value: undefined
2711
2594
  });
2712
2595
  };
2713
- Internal.prototype = redefineAll(PromisePrototype, {
2714
- // `Promise.prototype.then` method
2715
- // https://tc39.es/ecma262/#sec-promise.prototype.then
2716
- // eslint-disable-next-line unicorn/no-thenable -- safe
2717
- then: function then(onFulfilled, onRejected) {
2718
- var state = getInternalPromiseState(this);
2719
- var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
2720
- state.parent = true;
2721
- reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
2722
- reaction.fail = isCallable(onRejected) && onRejected;
2723
- reaction.domain = engineIsNode ? process.domain : undefined;
2724
- if (state.state == PENDING) state.reactions.add(reaction);
2725
- else microtask(function () {
2726
- callReaction(reaction, state);
2727
- });
2728
- return reaction.promise;
2729
- },
2730
- // `Promise.prototype.catch` method
2731
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
2732
- 'catch': function (onRejected) {
2733
- return this.then(undefined, onRejected);
2734
- }
2596
+
2597
+ // `Promise.prototype.then` method
2598
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
2599
+ Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2600
+ var state = getInternalPromiseState(this);
2601
+ var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
2602
+ state.parent = true;
2603
+ reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
2604
+ reaction.fail = isCallable(onRejected) && onRejected;
2605
+ reaction.domain = engineIsNode ? process.domain : undefined;
2606
+ if (state.state == PENDING) state.reactions.add(reaction);
2607
+ else microtask(function () {
2608
+ callReaction(reaction, state);
2609
+ });
2610
+ return reaction.promise;
2735
2611
  });
2612
+
2736
2613
  OwnPromiseCapability = function () {
2737
2614
  var promise = new Internal();
2738
- var state = getInternalState(promise);
2615
+ var state = getInternalPromiseState(promise);
2739
2616
  this.promise = promise;
2740
2617
  this.resolve = bind(internalResolve, state);
2741
2618
  this.reject = bind(internalReject, state);
2742
2619
  };
2620
+
2743
2621
  newPromiseCapability$1.f = newPromiseCapability = function (C) {
2744
2622
  return C === PromiseConstructor || C === PromiseWrapper
2745
2623
  ? new OwnPromiseCapability(C)
2746
2624
  : newGenericPromiseCapability(C);
2747
2625
  };
2748
2626
 
2749
- if (isCallable(nativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {
2750
- nativeThen = NativePromisePrototype.then;
2627
+ if (isCallable(promiseNativeConstructor) && NativePromisePrototype$1 !== Object.prototype) {
2628
+ nativeThen = NativePromisePrototype$1.then;
2751
2629
 
2752
- if (!SUBCLASSING) {
2630
+ if (!NATIVE_PROMISE_SUBCLASSING) {
2753
2631
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2754
- redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
2632
+ defineBuiltIn(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2755
2633
  var that = this;
2756
2634
  return new PromiseConstructor(function (resolve, reject) {
2757
2635
  functionCall(nativeThen, that, resolve, reject);
2758
2636
  }).then(onFulfilled, onRejected);
2759
2637
  // https://github.com/zloirock/core-js/issues/640
2760
2638
  }, { unsafe: true });
2761
-
2762
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2763
- redefine(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
2764
2639
  }
2765
2640
 
2766
2641
  // make `.constructor === Promise` work for native promise-based APIs
2767
2642
  try {
2768
- delete NativePromisePrototype.constructor;
2643
+ delete NativePromisePrototype$1.constructor;
2769
2644
  } catch (error) { /* empty */ }
2770
2645
 
2771
2646
  // make `instanceof Promise` work for native promise-based APIs
2772
2647
  if (objectSetPrototypeOf) {
2773
- objectSetPrototypeOf(NativePromisePrototype, PromisePrototype);
2648
+ objectSetPrototypeOf(NativePromisePrototype$1, PromisePrototype);
2774
2649
  }
2775
2650
  }
2776
2651
  }
2777
2652
 
2778
- _export({ global: true, wrap: true, forced: FORCED$1 }, {
2653
+ _export({ global: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2779
2654
  Promise: PromiseConstructor
2780
2655
  });
2781
2656
 
2782
2657
  setToStringTag(PromiseConstructor, PROMISE, false);
2783
2658
  setSpecies(PROMISE);
2784
2659
 
2785
- PromiseWrapper = getBuiltIn(PROMISE);
2660
+ var iterators = {};
2786
2661
 
2787
- // statics
2788
- _export({ target: PROMISE, stat: true, forced: FORCED$1 }, {
2789
- // `Promise.reject` method
2790
- // https://tc39.es/ecma262/#sec-promise.reject
2791
- reject: function reject(r) {
2792
- var capability = newPromiseCapability(this);
2793
- functionCall(capability.reject, undefined, r);
2794
- return capability.promise;
2662
+ var ITERATOR$2 = wellKnownSymbol('iterator');
2663
+ var ArrayPrototype = Array.prototype;
2664
+
2665
+ // check on default Array iterator
2666
+ var isArrayIteratorMethod = function (it) {
2667
+ return it !== undefined && (iterators.Array === it || ArrayPrototype[ITERATOR$2] === it);
2668
+ };
2669
+
2670
+ var ITERATOR$1 = wellKnownSymbol('iterator');
2671
+
2672
+ var getIteratorMethod = function (it) {
2673
+ if (it != undefined) return getMethod(it, ITERATOR$1)
2674
+ || getMethod(it, '@@iterator')
2675
+ || iterators[classof(it)];
2676
+ };
2677
+
2678
+ var TypeError$3 = global_1.TypeError;
2679
+
2680
+ var getIterator = function (argument, usingIterator) {
2681
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
2682
+ if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
2683
+ throw TypeError$3(tryToString(argument) + ' is not iterable');
2684
+ };
2685
+
2686
+ var iteratorClose = function (iterator, kind, value) {
2687
+ var innerResult, innerError;
2688
+ anObject(iterator);
2689
+ try {
2690
+ innerResult = getMethod(iterator, 'return');
2691
+ if (!innerResult) {
2692
+ if (kind === 'throw') throw value;
2693
+ return value;
2694
+ }
2695
+ innerResult = functionCall(innerResult, iterator);
2696
+ } catch (error) {
2697
+ innerError = true;
2698
+ innerResult = error;
2795
2699
  }
2796
- });
2700
+ if (kind === 'throw') throw value;
2701
+ if (innerError) throw innerResult;
2702
+ anObject(innerResult);
2703
+ return value;
2704
+ };
2797
2705
 
2798
- _export({ target: PROMISE, stat: true, forced: FORCED$1 }, {
2799
- // `Promise.resolve` method
2800
- // https://tc39.es/ecma262/#sec-promise.resolve
2801
- resolve: function resolve(x) {
2802
- return promiseResolve(this, x);
2706
+ var TypeError$2 = global_1.TypeError;
2707
+
2708
+ var Result = function (stopped, result) {
2709
+ this.stopped = stopped;
2710
+ this.result = result;
2711
+ };
2712
+
2713
+ var ResultPrototype = Result.prototype;
2714
+
2715
+ var iterate = function (iterable, unboundFunction, options) {
2716
+ var that = options && options.that;
2717
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2718
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2719
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
2720
+ var fn = functionBindContext(unboundFunction, that);
2721
+ var iterator, iterFn, index, length, result, next, step;
2722
+
2723
+ var stop = function (condition) {
2724
+ if (iterator) iteratorClose(iterator, 'normal', condition);
2725
+ return new Result(true, condition);
2726
+ };
2727
+
2728
+ var callFn = function (value) {
2729
+ if (AS_ENTRIES) {
2730
+ anObject(value);
2731
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2732
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
2733
+ };
2734
+
2735
+ if (IS_ITERATOR) {
2736
+ iterator = iterable;
2737
+ } else {
2738
+ iterFn = getIteratorMethod(iterable);
2739
+ if (!iterFn) throw TypeError$2(tryToString(iterable) + ' is not iterable');
2740
+ // optimisation for array iterators
2741
+ if (isArrayIteratorMethod(iterFn)) {
2742
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2743
+ result = callFn(iterable[index]);
2744
+ if (result && objectIsPrototypeOf(ResultPrototype, result)) return result;
2745
+ } return new Result(false);
2746
+ }
2747
+ iterator = getIterator(iterable, iterFn);
2803
2748
  }
2749
+
2750
+ next = iterator.next;
2751
+ while (!(step = functionCall(next, iterator)).done) {
2752
+ try {
2753
+ result = callFn(step.value);
2754
+ } catch (error) {
2755
+ iteratorClose(iterator, 'throw', error);
2756
+ }
2757
+ if (typeof result == 'object' && result && objectIsPrototypeOf(ResultPrototype, result)) return result;
2758
+ } return new Result(false);
2759
+ };
2760
+
2761
+ var ITERATOR = wellKnownSymbol('iterator');
2762
+ var SAFE_CLOSING = false;
2763
+
2764
+ try {
2765
+ var called = 0;
2766
+ var iteratorWithReturn = {
2767
+ next: function () {
2768
+ return { done: !!called++ };
2769
+ },
2770
+ 'return': function () {
2771
+ SAFE_CLOSING = true;
2772
+ }
2773
+ };
2774
+ iteratorWithReturn[ITERATOR] = function () {
2775
+ return this;
2776
+ };
2777
+ // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing
2778
+ Array.from(iteratorWithReturn, function () { throw 2; });
2779
+ } catch (error) { /* empty */ }
2780
+
2781
+ var checkCorrectnessOfIteration = function (exec, SKIP_CLOSING) {
2782
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2783
+ var ITERATION_SUPPORT = false;
2784
+ try {
2785
+ var object = {};
2786
+ object[ITERATOR] = function () {
2787
+ return {
2788
+ next: function () {
2789
+ return { done: ITERATION_SUPPORT = true };
2790
+ }
2791
+ };
2792
+ };
2793
+ exec(object);
2794
+ } catch (error) { /* empty */ }
2795
+ return ITERATION_SUPPORT;
2796
+ };
2797
+
2798
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2799
+
2800
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2801
+ promiseNativeConstructor.all(iterable).then(undefined, function () { /* empty */ });
2804
2802
  });
2805
2803
 
2806
- _export({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
2807
- // `Promise.all` method
2808
- // https://tc39.es/ecma262/#sec-promise.all
2804
+ // `Promise.all` method
2805
+ // https://tc39.es/ecma262/#sec-promise.all
2806
+ _export({ target: 'Promise', stat: true, forced: promiseStaticsIncorrectIteration }, {
2809
2807
  all: function all(iterable) {
2810
2808
  var C = this;
2811
- var capability = newPromiseCapability(C);
2809
+ var capability = newPromiseCapability$1.f(C);
2812
2810
  var resolve = capability.resolve;
2813
2811
  var reject = capability.reject;
2814
2812
  var result = perform(function () {
@@ -2831,12 +2829,39 @@
2831
2829
  });
2832
2830
  if (result.error) reject(result.value);
2833
2831
  return capability.promise;
2834
- },
2835
- // `Promise.race` method
2836
- // https://tc39.es/ecma262/#sec-promise.race
2832
+ }
2833
+ });
2834
+
2835
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2836
+
2837
+
2838
+
2839
+
2840
+
2841
+ var NativePromisePrototype = promiseNativeConstructor && promiseNativeConstructor.prototype;
2842
+
2843
+ // `Promise.prototype.catch` method
2844
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
2845
+ _export({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2846
+ 'catch': function (onRejected) {
2847
+ return this.then(undefined, onRejected);
2848
+ }
2849
+ });
2850
+
2851
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2852
+ if (isCallable(promiseNativeConstructor)) {
2853
+ var method = getBuiltIn('Promise').prototype['catch'];
2854
+ if (NativePromisePrototype['catch'] !== method) {
2855
+ defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2856
+ }
2857
+ }
2858
+
2859
+ // `Promise.race` method
2860
+ // https://tc39.es/ecma262/#sec-promise.race
2861
+ _export({ target: 'Promise', stat: true, forced: promiseStaticsIncorrectIteration }, {
2837
2862
  race: function race(iterable) {
2838
2863
  var C = this;
2839
- var capability = newPromiseCapability(C);
2864
+ var capability = newPromiseCapability$1.f(C);
2840
2865
  var reject = capability.reject;
2841
2866
  var result = perform(function () {
2842
2867
  var $promiseResolve = aCallable(C.resolve);
@@ -2849,6 +2874,40 @@
2849
2874
  }
2850
2875
  });
2851
2876
 
2877
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2878
+
2879
+ // `Promise.reject` method
2880
+ // https://tc39.es/ecma262/#sec-promise.reject
2881
+ _export({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2882
+ reject: function reject(r) {
2883
+ var capability = newPromiseCapability$1.f(this);
2884
+ functionCall(capability.reject, undefined, r);
2885
+ return capability.promise;
2886
+ }
2887
+ });
2888
+
2889
+ var promiseResolve = function (C, x) {
2890
+ anObject(C);
2891
+ if (isObject(x) && x.constructor === C) return x;
2892
+ var promiseCapability = newPromiseCapability$1.f(C);
2893
+ var resolve = promiseCapability.resolve;
2894
+ resolve(x);
2895
+ return promiseCapability.promise;
2896
+ };
2897
+
2898
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2899
+
2900
+
2901
+ getBuiltIn('Promise');
2902
+
2903
+ // `Promise.resolve` method
2904
+ // https://tc39.es/ecma262/#sec-promise.resolve
2905
+ _export({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2906
+ resolve: function resolve(x) {
2907
+ return promiseResolve(this, x);
2908
+ }
2909
+ });
2910
+
2852
2911
  var PROPER_FUNCTION_NAME = functionName.PROPER;
2853
2912
 
2854
2913
 
@@ -3100,8 +3159,8 @@
3100
3159
  return { done: false };
3101
3160
  });
3102
3161
 
3103
- redefine(String.prototype, KEY, methods[0]);
3104
- redefine(RegExpPrototype, SYMBOL, methods[1]);
3162
+ defineBuiltIn(String.prototype, KEY, methods[0]);
3163
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
3105
3164
  }
3106
3165
 
3107
3166
  if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);