bootstrap-table-rails 1.18.1 → 1.18.2

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.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +30 -132
  5. data/lib/bootstrap-table-rails/version.rb +1 -1
  6. data/vendor/.DS_Store +0 -0
  7. data/vendor/assets/.DS_Store +0 -0
  8. data/vendor/assets/javascripts/.DS_Store +0 -0
  9. data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
  10. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +196 -147
  11. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +179 -990
  12. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +180 -991
  13. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +9 -1
  14. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +731 -1114
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +122 -35
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +115 -39
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +458 -911
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +124 -48
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +122 -43
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +66 -24
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +433 -977
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +460 -951
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +275 -140
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +176 -86
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +128 -48
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +164 -75
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +45 -11
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +136 -36
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +227 -141
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +148 -94
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +111 -35
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +93 -49
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +396 -999
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +144 -56
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +104 -33
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +283 -87
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +116 -40
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +456 -1034
  39. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +278 -990
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +30 -20
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +30 -20
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +30 -20
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +30 -20
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +30 -20
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +30 -20
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +69 -20
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +30 -20
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +30 -20
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +30 -20
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +30 -20
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +30 -20
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +30 -20
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +30 -20
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +30 -20
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +30 -20
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +30 -20
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +30 -20
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +30 -20
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +30 -20
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +30 -20
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +30 -20
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +30 -20
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +30 -20
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +30 -20
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +30 -20
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +30 -20
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +30 -20
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +30 -20
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +30 -20
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +30 -20
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +30 -20
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +30 -20
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +30 -20
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +30 -20
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +30 -20
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +30 -20
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +30 -20
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +30 -20
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +30 -20
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +53 -43
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +30 -20
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +30 -20
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +30 -20
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +30 -20
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +30 -20
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +30 -20
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +30 -20
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +30 -20
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +30 -20
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +30 -20
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +30 -20
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +30 -20
  93. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +8 -0
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +114 -35
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +8 -0
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +109 -30
  97. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +8 -0
  98. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +113 -34
  99. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +8 -0
  100. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +110 -31
  101. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +8 -0
  102. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +107 -28
  103. metadata +6 -1
@@ -1,7 +1,7 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
3
  typeof define === 'function' && define.amd ? define(factory) :
4
- (global = global || self, global.BootstrapTable = factory());
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BootstrapTable = factory());
5
5
  }(this, (function () { 'use strict';
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -22,7 +22,7 @@
22
22
  check(typeof self == 'object' && self) ||
23
23
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
24
24
  // eslint-disable-next-line no-new-func
25
- Function('return this')();
25
+ (function () { return this; })() || Function('return this')();
26
26
 
27
27
  var fails = function (exec) {
28
28
  try {
@@ -34,7 +34,7 @@
34
34
 
35
35
  // Thank's IE8 for his funny defineProperty
36
36
  var descriptors = !fails(function () {
37
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
37
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
38
38
  });
39
39
 
40
40
  var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
@@ -118,12 +118,12 @@
118
118
  return hasOwnProperty.call(it, key);
119
119
  };
120
120
 
121
- var document$1 = global_1.document;
121
+ var document = global_1.document;
122
122
  // typeof document.createElement is 'object' in old IE
123
- var EXISTS = isObject(document$1) && isObject(document$1.createElement);
123
+ var EXISTS = isObject(document) && isObject(document.createElement);
124
124
 
125
125
  var documentCreateElement = function (it) {
126
- return EXISTS ? document$1.createElement(it) : {};
126
+ return EXISTS ? document.createElement(it) : {};
127
127
  };
128
128
 
129
129
  // Thank's IE8 for his funny defineProperty
@@ -215,9 +215,9 @@
215
215
  (module.exports = function (key, value) {
216
216
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
217
217
  })('versions', []).push({
218
- version: '3.6.0',
218
+ version: '3.8.1',
219
219
  mode: 'global',
220
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
220
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
221
221
  });
222
222
  });
223
223
 
@@ -253,11 +253,12 @@
253
253
  };
254
254
 
255
255
  if (nativeWeakMap) {
256
- var store$1 = new WeakMap$1();
256
+ var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1());
257
257
  var wmget = store$1.get;
258
258
  var wmhas = store$1.has;
259
259
  var wmset = store$1.set;
260
260
  set = function (it, metadata) {
261
+ metadata.facade = it;
261
262
  wmset.call(store$1, it, metadata);
262
263
  return metadata;
263
264
  };
@@ -271,6 +272,7 @@
271
272
  var STATE = sharedKey('state');
272
273
  hiddenKeys[STATE] = true;
273
274
  set = function (it, metadata) {
275
+ metadata.facade = it;
274
276
  createNonEnumerableProperty(it, STATE, metadata);
275
277
  return metadata;
276
278
  };
@@ -299,9 +301,15 @@
299
301
  var unsafe = options ? !!options.unsafe : false;
300
302
  var simple = options ? !!options.enumerable : false;
301
303
  var noTargetGet = options ? !!options.noTargetGet : false;
304
+ var state;
302
305
  if (typeof value == 'function') {
303
- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
304
- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
306
+ if (typeof key == 'string' && !has(value, 'name')) {
307
+ createNonEnumerableProperty(value, 'name', key);
308
+ }
309
+ state = enforceInternalState(value);
310
+ if (!state.source) {
311
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
312
+ }
305
313
  }
306
314
  if (O === global_1) {
307
315
  if (simple) O[key] = value;
@@ -524,18 +532,6 @@
524
532
  }
525
533
  };
526
534
 
527
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
528
- // Chrome 38 Symbol has incorrect toString conversion
529
- // eslint-disable-next-line no-undef
530
- return !String(Symbol());
531
- });
532
-
533
- var useSymbolAsUid = nativeSymbol
534
- // eslint-disable-next-line no-undef
535
- && !Symbol.sham
536
- // eslint-disable-next-line no-undef
537
- && typeof Symbol() == 'symbol';
538
-
539
535
  // `IsArray` abstract operation
540
536
  // https://tc39.github.io/ecma262/#sec-isarray
541
537
  var isArray = Array.isArray || function isArray(arg) {
@@ -548,126 +544,27 @@
548
544
  return Object(requireObjectCoercible(argument));
549
545
  };
550
546
 
551
- // `Object.keys` method
552
- // https://tc39.github.io/ecma262/#sec-object.keys
553
- var objectKeys = Object.keys || function keys(O) {
554
- return objectKeysInternal(O, enumBugKeys);
555
- };
556
-
557
- // `Object.defineProperties` method
558
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
559
- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
560
- anObject(O);
561
- var keys = objectKeys(Properties);
562
- var length = keys.length;
563
- var index = 0;
564
- var key;
565
- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
566
- return O;
567
- };
568
-
569
- var html = getBuiltIn('document', 'documentElement');
570
-
571
- var GT = '>';
572
- var LT = '<';
573
- var PROTOTYPE = 'prototype';
574
- var SCRIPT = 'script';
575
- var IE_PROTO = sharedKey('IE_PROTO');
576
-
577
- var EmptyConstructor = function () { /* empty */ };
578
-
579
- var scriptTag = function (content) {
580
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
581
- };
582
-
583
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
584
- var NullProtoObjectViaActiveX = function (activeXDocument) {
585
- activeXDocument.write(scriptTag(''));
586
- activeXDocument.close();
587
- var temp = activeXDocument.parentWindow.Object;
588
- activeXDocument = null; // avoid memory leak
589
- return temp;
590
- };
591
-
592
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
593
- var NullProtoObjectViaIFrame = function () {
594
- // Thrash, waste and sodomy: IE GC bug
595
- var iframe = documentCreateElement('iframe');
596
- var JS = 'java' + SCRIPT + ':';
597
- var iframeDocument;
598
- iframe.style.display = 'none';
599
- html.appendChild(iframe);
600
- // https://github.com/zloirock/core-js/issues/475
601
- iframe.src = String(JS);
602
- iframeDocument = iframe.contentWindow.document;
603
- iframeDocument.open();
604
- iframeDocument.write(scriptTag('document.F=Object'));
605
- iframeDocument.close();
606
- return iframeDocument.F;
607
- };
608
-
609
- // Check for document.domain and active x support
610
- // No need to use active x approach when document.domain is not set
611
- // see https://github.com/es-shims/es5-shim/issues/150
612
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
613
- // avoid IE GC bug
614
- var activeXDocument;
615
- var NullProtoObject = function () {
616
- try {
617
- /* global ActiveXObject */
618
- activeXDocument = document.domain && new ActiveXObject('htmlfile');
619
- } catch (error) { /* ignore */ }
620
- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
621
- var length = enumBugKeys.length;
622
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
623
- return NullProtoObject();
624
- };
625
-
626
- hiddenKeys[IE_PROTO] = true;
627
-
628
- // `Object.create` method
629
- // https://tc39.github.io/ecma262/#sec-object.create
630
- var objectCreate = Object.create || function create(O, Properties) {
631
- var result;
632
- if (O !== null) {
633
- EmptyConstructor[PROTOTYPE] = anObject(O);
634
- result = new EmptyConstructor();
635
- EmptyConstructor[PROTOTYPE] = null;
636
- // add "__proto__" for Object.getPrototypeOf polyfill
637
- result[IE_PROTO] = O;
638
- } else result = NullProtoObject();
639
- return Properties === undefined ? result : objectDefineProperties(result, Properties);
640
- };
641
-
642
- var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
643
-
644
- var toString$1 = {}.toString;
645
-
646
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
647
- ? Object.getOwnPropertyNames(window) : [];
648
-
649
- var getWindowNames = function (it) {
650
- try {
651
- return nativeGetOwnPropertyNames(it);
652
- } catch (error) {
653
- return windowNames.slice();
654
- }
547
+ var createProperty = function (object, key, value) {
548
+ var propertyKey = toPrimitive(key);
549
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
550
+ else object[propertyKey] = value;
655
551
  };
656
552
 
657
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
658
- var f$5 = function getOwnPropertyNames(it) {
659
- return windowNames && toString$1.call(it) == '[object Window]'
660
- ? getWindowNames(it)
661
- : nativeGetOwnPropertyNames(toIndexedObject(it));
662
- };
553
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
554
+ // Chrome 38 Symbol has incorrect toString conversion
555
+ // eslint-disable-next-line no-undef
556
+ return !String(Symbol());
557
+ });
663
558
 
664
- var objectGetOwnPropertyNamesExternal = {
665
- f: f$5
666
- };
559
+ var useSymbolAsUid = nativeSymbol
560
+ // eslint-disable-next-line no-undef
561
+ && !Symbol.sham
562
+ // eslint-disable-next-line no-undef
563
+ && typeof Symbol.iterator == 'symbol';
667
564
 
668
565
  var WellKnownSymbolsStore = shared('wks');
669
566
  var Symbol$1 = global_1.Symbol;
670
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
567
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
671
568
 
672
569
  var wellKnownSymbol = function (name) {
673
570
  if (!has(WellKnownSymbolsStore, name)) {
@@ -676,62 +573,6 @@
676
573
  } return WellKnownSymbolsStore[name];
677
574
  };
678
575
 
679
- var f$6 = wellKnownSymbol;
680
-
681
- var wrappedWellKnownSymbol = {
682
- f: f$6
683
- };
684
-
685
- var defineProperty = objectDefineProperty.f;
686
-
687
- var defineWellKnownSymbol = function (NAME) {
688
- var Symbol = path.Symbol || (path.Symbol = {});
689
- if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
690
- value: wrappedWellKnownSymbol.f(NAME)
691
- });
692
- };
693
-
694
- var defineProperty$1 = objectDefineProperty.f;
695
-
696
-
697
-
698
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
699
-
700
- var setToStringTag = function (it, TAG, STATIC) {
701
- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
702
- defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
703
- }
704
- };
705
-
706
- var aFunction$1 = function (it) {
707
- if (typeof it != 'function') {
708
- throw TypeError(String(it) + ' is not a function');
709
- } return it;
710
- };
711
-
712
- // optional / simple context binding
713
- var bindContext = function (fn, that, length) {
714
- aFunction$1(fn);
715
- if (that === undefined) return fn;
716
- switch (length) {
717
- case 0: return function () {
718
- return fn.call(that);
719
- };
720
- case 1: return function (a) {
721
- return fn.call(that, a);
722
- };
723
- case 2: return function (a, b) {
724
- return fn.call(that, a, b);
725
- };
726
- case 3: return function (a, b, c) {
727
- return fn.call(that, a, b, c);
728
- };
729
- }
730
- return function (/* ...args */) {
731
- return fn.apply(that, arguments);
732
- };
733
- };
734
-
735
576
  var SPECIES = wellKnownSymbol('species');
736
577
 
737
578
  // `ArraySpeciesCreate` abstract operation
@@ -749,394 +590,7 @@
749
590
  } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
750
591
  };
751
592
 
752
- var push = [].push;
753
-
754
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
755
- var createMethod$1 = function (TYPE) {
756
- var IS_MAP = TYPE == 1;
757
- var IS_FILTER = TYPE == 2;
758
- var IS_SOME = TYPE == 3;
759
- var IS_EVERY = TYPE == 4;
760
- var IS_FIND_INDEX = TYPE == 6;
761
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
762
- return function ($this, callbackfn, that, specificCreate) {
763
- var O = toObject($this);
764
- var self = indexedObject(O);
765
- var boundFunction = bindContext(callbackfn, that, 3);
766
- var length = toLength(self.length);
767
- var index = 0;
768
- var create = specificCreate || arraySpeciesCreate;
769
- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
770
- var value, result;
771
- for (;length > index; index++) if (NO_HOLES || index in self) {
772
- value = self[index];
773
- result = boundFunction(value, index, O);
774
- if (TYPE) {
775
- if (IS_MAP) target[index] = result; // map
776
- else if (result) switch (TYPE) {
777
- case 3: return true; // some
778
- case 5: return value; // find
779
- case 6: return index; // findIndex
780
- case 2: push.call(target, value); // filter
781
- } else if (IS_EVERY) return false; // every
782
- }
783
- }
784
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
785
- };
786
- };
787
-
788
- var arrayIteration = {
789
- // `Array.prototype.forEach` method
790
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
791
- forEach: createMethod$1(0),
792
- // `Array.prototype.map` method
793
- // https://tc39.github.io/ecma262/#sec-array.prototype.map
794
- map: createMethod$1(1),
795
- // `Array.prototype.filter` method
796
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
797
- filter: createMethod$1(2),
798
- // `Array.prototype.some` method
799
- // https://tc39.github.io/ecma262/#sec-array.prototype.some
800
- some: createMethod$1(3),
801
- // `Array.prototype.every` method
802
- // https://tc39.github.io/ecma262/#sec-array.prototype.every
803
- every: createMethod$1(4),
804
- // `Array.prototype.find` method
805
- // https://tc39.github.io/ecma262/#sec-array.prototype.find
806
- find: createMethod$1(5),
807
- // `Array.prototype.findIndex` method
808
- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
809
- findIndex: createMethod$1(6)
810
- };
811
-
812
- var $forEach = arrayIteration.forEach;
813
-
814
- var HIDDEN = sharedKey('hidden');
815
- var SYMBOL = 'Symbol';
816
- var PROTOTYPE$1 = 'prototype';
817
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
818
- var setInternalState = internalState.set;
819
- var getInternalState = internalState.getterFor(SYMBOL);
820
- var ObjectPrototype = Object[PROTOTYPE$1];
821
- var $Symbol = global_1.Symbol;
822
- var $stringify = getBuiltIn('JSON', 'stringify');
823
- var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
824
- var nativeDefineProperty$1 = objectDefineProperty.f;
825
- var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
826
- var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
827
- var AllSymbols = shared('symbols');
828
- var ObjectPrototypeSymbols = shared('op-symbols');
829
- var StringToSymbolRegistry = shared('string-to-symbol-registry');
830
- var SymbolToStringRegistry = shared('symbol-to-string-registry');
831
- var WellKnownSymbolsStore$1 = shared('wks');
832
- var QObject = global_1.QObject;
833
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
834
- var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
835
-
836
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
837
- var setSymbolDescriptor = descriptors && fails(function () {
838
- return objectCreate(nativeDefineProperty$1({}, 'a', {
839
- get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
840
- })).a != 7;
841
- }) ? function (O, P, Attributes) {
842
- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
843
- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
844
- nativeDefineProperty$1(O, P, Attributes);
845
- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
846
- nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
847
- }
848
- } : nativeDefineProperty$1;
849
-
850
- var wrap = function (tag, description) {
851
- var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
852
- setInternalState(symbol, {
853
- type: SYMBOL,
854
- tag: tag,
855
- description: description
856
- });
857
- if (!descriptors) symbol.description = description;
858
- return symbol;
859
- };
860
-
861
- var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
862
- return typeof it == 'symbol';
863
- } : function (it) {
864
- return Object(it) instanceof $Symbol;
865
- };
866
-
867
- var $defineProperty = function defineProperty(O, P, Attributes) {
868
- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
869
- anObject(O);
870
- var key = toPrimitive(P, true);
871
- anObject(Attributes);
872
- if (has(AllSymbols, key)) {
873
- if (!Attributes.enumerable) {
874
- if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
875
- O[HIDDEN][key] = true;
876
- } else {
877
- if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
878
- Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
879
- } return setSymbolDescriptor(O, key, Attributes);
880
- } return nativeDefineProperty$1(O, key, Attributes);
881
- };
882
-
883
- var $defineProperties = function defineProperties(O, Properties) {
884
- anObject(O);
885
- var properties = toIndexedObject(Properties);
886
- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
887
- $forEach(keys, function (key) {
888
- if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
889
- });
890
- return O;
891
- };
892
-
893
- var $create = function create(O, Properties) {
894
- return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
895
- };
896
-
897
- var $propertyIsEnumerable = function propertyIsEnumerable(V) {
898
- var P = toPrimitive(V, true);
899
- var enumerable = nativePropertyIsEnumerable$1.call(this, P);
900
- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
901
- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
902
- };
903
-
904
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
905
- var it = toIndexedObject(O);
906
- var key = toPrimitive(P, true);
907
- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
908
- var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
909
- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
910
- descriptor.enumerable = true;
911
- }
912
- return descriptor;
913
- };
914
-
915
- var $getOwnPropertyNames = function getOwnPropertyNames(O) {
916
- var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
917
- var result = [];
918
- $forEach(names, function (key) {
919
- if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
920
- });
921
- return result;
922
- };
923
-
924
- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
925
- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
926
- var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
927
- var result = [];
928
- $forEach(names, function (key) {
929
- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
930
- result.push(AllSymbols[key]);
931
- }
932
- });
933
- return result;
934
- };
935
-
936
- // `Symbol` constructor
937
- // https://tc39.github.io/ecma262/#sec-symbol-constructor
938
- if (!nativeSymbol) {
939
- $Symbol = function Symbol() {
940
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
941
- var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
942
- var tag = uid(description);
943
- var setter = function (value) {
944
- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
945
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
946
- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
947
- };
948
- if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
949
- return wrap(tag, description);
950
- };
951
-
952
- redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
953
- return getInternalState(this).tag;
954
- });
955
-
956
- objectPropertyIsEnumerable.f = $propertyIsEnumerable;
957
- objectDefineProperty.f = $defineProperty;
958
- objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
959
- objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
960
- objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
961
-
962
- if (descriptors) {
963
- // https://github.com/tc39/proposal-Symbol-description
964
- nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
965
- configurable: true,
966
- get: function description() {
967
- return getInternalState(this).description;
968
- }
969
- });
970
- {
971
- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
972
- }
973
- }
974
- }
975
-
976
- if (!useSymbolAsUid) {
977
- wrappedWellKnownSymbol.f = function (name) {
978
- return wrap(wellKnownSymbol(name), name);
979
- };
980
- }
981
-
982
- _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
983
- Symbol: $Symbol
984
- });
985
-
986
- $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
987
- defineWellKnownSymbol(name);
988
- });
989
-
990
- _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
991
- // `Symbol.for` method
992
- // https://tc39.github.io/ecma262/#sec-symbol.for
993
- 'for': function (key) {
994
- var string = String(key);
995
- if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
996
- var symbol = $Symbol(string);
997
- StringToSymbolRegistry[string] = symbol;
998
- SymbolToStringRegistry[symbol] = string;
999
- return symbol;
1000
- },
1001
- // `Symbol.keyFor` method
1002
- // https://tc39.github.io/ecma262/#sec-symbol.keyfor
1003
- keyFor: function keyFor(sym) {
1004
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
1005
- if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
1006
- },
1007
- useSetter: function () { USE_SETTER = true; },
1008
- useSimple: function () { USE_SETTER = false; }
1009
- });
1010
-
1011
- _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
1012
- // `Object.create` method
1013
- // https://tc39.github.io/ecma262/#sec-object.create
1014
- create: $create,
1015
- // `Object.defineProperty` method
1016
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
1017
- defineProperty: $defineProperty,
1018
- // `Object.defineProperties` method
1019
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
1020
- defineProperties: $defineProperties,
1021
- // `Object.getOwnPropertyDescriptor` method
1022
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
1023
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor
1024
- });
1025
-
1026
- _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
1027
- // `Object.getOwnPropertyNames` method
1028
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
1029
- getOwnPropertyNames: $getOwnPropertyNames,
1030
- // `Object.getOwnPropertySymbols` method
1031
- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
1032
- getOwnPropertySymbols: $getOwnPropertySymbols
1033
- });
1034
-
1035
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
1036
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
1037
- _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
1038
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
1039
- return objectGetOwnPropertySymbols.f(toObject(it));
1040
- }
1041
- });
1042
-
1043
- // `JSON.stringify` method behavior with symbols
1044
- // https://tc39.github.io/ecma262/#sec-json.stringify
1045
- if ($stringify) {
1046
- var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
1047
- var symbol = $Symbol();
1048
- // MS Edge converts symbol values to JSON as {}
1049
- return $stringify([symbol]) != '[null]'
1050
- // WebKit converts symbol values to JSON as null
1051
- || $stringify({ a: symbol }) != '{}'
1052
- // V8 throws on boxed symbols
1053
- || $stringify(Object(symbol)) != '{}';
1054
- });
1055
-
1056
- _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1057
- // eslint-disable-next-line no-unused-vars
1058
- stringify: function stringify(it, replacer, space) {
1059
- var args = [it];
1060
- var index = 1;
1061
- var $replacer;
1062
- while (arguments.length > index) args.push(arguments[index++]);
1063
- $replacer = replacer;
1064
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1065
- if (!isArray(replacer)) replacer = function (key, value) {
1066
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1067
- if (!isSymbol(value)) return value;
1068
- };
1069
- args[1] = replacer;
1070
- return $stringify.apply(null, args);
1071
- }
1072
- });
1073
- }
1074
-
1075
- // `Symbol.prototype[@@toPrimitive]` method
1076
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1077
- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
1078
- createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1079
- }
1080
- // `Symbol.prototype[@@toStringTag]` property
1081
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1082
- setToStringTag($Symbol, SYMBOL);
1083
-
1084
- hiddenKeys[HIDDEN] = true;
1085
-
1086
- var defineProperty$2 = objectDefineProperty.f;
1087
-
1088
-
1089
- var NativeSymbol = global_1.Symbol;
1090
-
1091
- if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
1092
- // Safari 12 bug
1093
- NativeSymbol().description !== undefined
1094
- )) {
1095
- var EmptyStringDescriptionStore = {};
1096
- // wrap Symbol constructor for correct work with undefined description
1097
- var SymbolWrapper = function Symbol() {
1098
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
1099
- var result = this instanceof SymbolWrapper
1100
- ? new NativeSymbol(description)
1101
- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
1102
- : description === undefined ? NativeSymbol() : NativeSymbol(description);
1103
- if (description === '') EmptyStringDescriptionStore[result] = true;
1104
- return result;
1105
- };
1106
- copyConstructorProperties(SymbolWrapper, NativeSymbol);
1107
- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
1108
- symbolPrototype.constructor = SymbolWrapper;
1109
-
1110
- var symbolToString = symbolPrototype.toString;
1111
- var native = String(NativeSymbol('test')) == 'Symbol(test)';
1112
- var regexp = /^Symbol\((.*)\)[^)]+$/;
1113
- defineProperty$2(symbolPrototype, 'description', {
1114
- configurable: true,
1115
- get: function description() {
1116
- var symbol = isObject(this) ? this.valueOf() : this;
1117
- var string = symbolToString.call(symbol);
1118
- if (has(EmptyStringDescriptionStore, symbol)) return '';
1119
- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
1120
- return desc === '' ? undefined : desc;
1121
- }
1122
- });
1123
-
1124
- _export({ global: true, forced: true }, {
1125
- Symbol: SymbolWrapper
1126
- });
1127
- }
1128
-
1129
- // `Symbol.iterator` well-known symbol
1130
- // https://tc39.github.io/ecma262/#sec-symbol.iterator
1131
- defineWellKnownSymbol('iterator');
1132
-
1133
- var createProperty = function (object, key, value) {
1134
- var propertyKey = toPrimitive(key);
1135
- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1136
- else object[propertyKey] = value;
1137
- };
1138
-
1139
- var userAgent = getBuiltIn('navigator', 'userAgent') || '';
593
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
1140
594
 
1141
595
  var process = global_1.process;
1142
596
  var versions = process && process.versions;
@@ -1146,15 +600,15 @@
1146
600
  if (v8) {
1147
601
  match = v8.split('.');
1148
602
  version = match[0] + match[1];
1149
- } else if (userAgent) {
1150
- match = userAgent.match(/Edge\/(\d+)/);
603
+ } else if (engineUserAgent) {
604
+ match = engineUserAgent.match(/Edge\/(\d+)/);
1151
605
  if (!match || match[1] >= 74) {
1152
- match = userAgent.match(/Chrome\/(\d+)/);
606
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
1153
607
  if (match) version = match[1];
1154
608
  }
1155
609
  }
1156
610
 
1157
- var v8Version = version && +version;
611
+ var engineV8Version = version && +version;
1158
612
 
1159
613
  var SPECIES$1 = wellKnownSymbol('species');
1160
614
 
@@ -1162,7 +616,7 @@
1162
616
  // We can't use this feature detection in V8 since it causes
1163
617
  // deoptimization and serious performance degradation
1164
618
  // https://github.com/zloirock/core-js/issues/677
1165
- return v8Version >= 51 || !fails(function () {
619
+ return engineV8Version >= 51 || !fails(function () {
1166
620
  var array = [];
1167
621
  var constructor = array.constructor = {};
1168
622
  constructor[SPECIES$1] = function () {
@@ -1179,7 +633,7 @@
1179
633
  // We can't use this feature detection in V8 since it causes
1180
634
  // deoptimization and serious performance degradation
1181
635
  // https://github.com/zloirock/core-js/issues/679
1182
- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
636
+ var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
1183
637
  var array = [];
1184
638
  array[IS_CONCAT_SPREADABLE] = false;
1185
639
  return array.concat()[0] !== array;
@@ -1220,270 +674,6 @@
1220
674
  }
1221
675
  });
1222
676
 
1223
- var UNSCOPABLES = wellKnownSymbol('unscopables');
1224
- var ArrayPrototype = Array.prototype;
1225
-
1226
- // Array.prototype[@@unscopables]
1227
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1228
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
1229
- objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
1230
- configurable: true,
1231
- value: objectCreate(null)
1232
- });
1233
- }
1234
-
1235
- // add a key to Array.prototype[@@unscopables]
1236
- var addToUnscopables = function (key) {
1237
- ArrayPrototype[UNSCOPABLES][key] = true;
1238
- };
1239
-
1240
- var correctPrototypeGetter = !fails(function () {
1241
- function F() { /* empty */ }
1242
- F.prototype.constructor = null;
1243
- return Object.getPrototypeOf(new F()) !== F.prototype;
1244
- });
1245
-
1246
- var IE_PROTO$1 = sharedKey('IE_PROTO');
1247
- var ObjectPrototype$1 = Object.prototype;
1248
-
1249
- // `Object.getPrototypeOf` method
1250
- // https://tc39.github.io/ecma262/#sec-object.getprototypeof
1251
- var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
1252
- O = toObject(O);
1253
- if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
1254
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1255
- return O.constructor.prototype;
1256
- } return O instanceof Object ? ObjectPrototype$1 : null;
1257
- };
1258
-
1259
- var ITERATOR = wellKnownSymbol('iterator');
1260
- var BUGGY_SAFARI_ITERATORS = false;
1261
-
1262
- var returnThis = function () { return this; };
1263
-
1264
- // `%IteratorPrototype%` object
1265
- // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
1266
- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
1267
-
1268
- if ([].keys) {
1269
- arrayIterator = [].keys();
1270
- // Safari 8 has buggy iterators w/o `next`
1271
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1272
- else {
1273
- PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
1274
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
1275
- }
1276
- }
1277
-
1278
- if (IteratorPrototype == undefined) IteratorPrototype = {};
1279
-
1280
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1281
- if ( !has(IteratorPrototype, ITERATOR)) {
1282
- createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
1283
- }
1284
-
1285
- var iteratorsCore = {
1286
- IteratorPrototype: IteratorPrototype,
1287
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1288
- };
1289
-
1290
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1291
-
1292
- var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
1293
- var TO_STRING_TAG = NAME + ' Iterator';
1294
- IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
1295
- setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
1296
- return IteratorConstructor;
1297
- };
1298
-
1299
- var aPossiblePrototype = function (it) {
1300
- if (!isObject(it) && it !== null) {
1301
- throw TypeError("Can't set " + String(it) + ' as a prototype');
1302
- } return it;
1303
- };
1304
-
1305
- // `Object.setPrototypeOf` method
1306
- // https://tc39.github.io/ecma262/#sec-object.setprototypeof
1307
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1308
- /* eslint-disable no-proto */
1309
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1310
- var CORRECT_SETTER = false;
1311
- var test = {};
1312
- var setter;
1313
- try {
1314
- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
1315
- setter.call(test, []);
1316
- CORRECT_SETTER = test instanceof Array;
1317
- } catch (error) { /* empty */ }
1318
- return function setPrototypeOf(O, proto) {
1319
- anObject(O);
1320
- aPossiblePrototype(proto);
1321
- if (CORRECT_SETTER) setter.call(O, proto);
1322
- else O.__proto__ = proto;
1323
- return O;
1324
- };
1325
- }() : undefined);
1326
-
1327
- var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
1328
- var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
1329
- var ITERATOR$1 = wellKnownSymbol('iterator');
1330
- var KEYS = 'keys';
1331
- var VALUES = 'values';
1332
- var ENTRIES = 'entries';
1333
-
1334
- var returnThis$1 = function () { return this; };
1335
-
1336
- var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1337
- createIteratorConstructor(IteratorConstructor, NAME, next);
1338
-
1339
- var getIterationMethod = function (KIND) {
1340
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1341
- if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
1342
- switch (KIND) {
1343
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1344
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1345
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1346
- } return function () { return new IteratorConstructor(this); };
1347
- };
1348
-
1349
- var TO_STRING_TAG = NAME + ' Iterator';
1350
- var INCORRECT_VALUES_NAME = false;
1351
- var IterablePrototype = Iterable.prototype;
1352
- var nativeIterator = IterablePrototype[ITERATOR$1]
1353
- || IterablePrototype['@@iterator']
1354
- || DEFAULT && IterablePrototype[DEFAULT];
1355
- var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
1356
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1357
- var CurrentIteratorPrototype, methods, KEY;
1358
-
1359
- // fix native
1360
- if (anyNativeIterator) {
1361
- CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
1362
- if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
1363
- if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1364
- if (objectSetPrototypeOf) {
1365
- objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1366
- } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
1367
- createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1368
- }
1369
- }
1370
- // Set @@toStringTag to native iterators
1371
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1372
- }
1373
- }
1374
-
1375
- // fix Array#{values, @@iterator}.name in V8 / FF
1376
- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1377
- INCORRECT_VALUES_NAME = true;
1378
- defaultIterator = function values() { return nativeIterator.call(this); };
1379
- }
1380
-
1381
- // define iterator
1382
- if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1383
- createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
1384
- }
1385
-
1386
- // export additional methods
1387
- if (DEFAULT) {
1388
- methods = {
1389
- values: getIterationMethod(VALUES),
1390
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1391
- entries: getIterationMethod(ENTRIES)
1392
- };
1393
- if (FORCED) for (KEY in methods) {
1394
- if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1395
- redefine(IterablePrototype, KEY, methods[KEY]);
1396
- }
1397
- } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
1398
- }
1399
-
1400
- return methods;
1401
- };
1402
-
1403
- var ARRAY_ITERATOR = 'Array Iterator';
1404
- var setInternalState$1 = internalState.set;
1405
- var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
1406
-
1407
- // `Array.prototype.entries` method
1408
- // https://tc39.github.io/ecma262/#sec-array.prototype.entries
1409
- // `Array.prototype.keys` method
1410
- // https://tc39.github.io/ecma262/#sec-array.prototype.keys
1411
- // `Array.prototype.values` method
1412
- // https://tc39.github.io/ecma262/#sec-array.prototype.values
1413
- // `Array.prototype[@@iterator]` method
1414
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
1415
- // `CreateArrayIterator` internal method
1416
- // https://tc39.github.io/ecma262/#sec-createarrayiterator
1417
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1418
- setInternalState$1(this, {
1419
- type: ARRAY_ITERATOR,
1420
- target: toIndexedObject(iterated), // target
1421
- index: 0, // next index
1422
- kind: kind // kind
1423
- });
1424
- // `%ArrayIteratorPrototype%.next` method
1425
- // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
1426
- }, function () {
1427
- var state = getInternalState$1(this);
1428
- var target = state.target;
1429
- var kind = state.kind;
1430
- var index = state.index++;
1431
- if (!target || index >= target.length) {
1432
- state.target = undefined;
1433
- return { value: undefined, done: true };
1434
- }
1435
- if (kind == 'keys') return { value: index, done: false };
1436
- if (kind == 'values') return { value: target[index], done: false };
1437
- return { value: [index, target[index]], done: false };
1438
- }, 'values');
1439
-
1440
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1441
- addToUnscopables('keys');
1442
- addToUnscopables('values');
1443
- addToUnscopables('entries');
1444
-
1445
- var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1446
- var test = {};
1447
-
1448
- test[TO_STRING_TAG$1] = 'z';
1449
-
1450
- var toStringTagSupport = String(test) === '[object z]';
1451
-
1452
- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1453
- // ES3 wrong here
1454
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1455
-
1456
- // fallback for IE11 Script Access Denied error
1457
- var tryGet = function (it, key) {
1458
- try {
1459
- return it[key];
1460
- } catch (error) { /* empty */ }
1461
- };
1462
-
1463
- // getting tag from ES6+ `Object.prototype.toString`
1464
- var classof = toStringTagSupport ? classofRaw : function (it) {
1465
- var O, tag, result;
1466
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1467
- // @@toStringTag case
1468
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
1469
- // builtinTag case
1470
- : CORRECT_ARGUMENTS ? classofRaw(O)
1471
- // ES3 arguments fallback
1472
- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1473
- };
1474
-
1475
- // `Object.prototype.toString` method implementation
1476
- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1477
- var objectToString = toStringTagSupport ? {}.toString : function toString() {
1478
- return '[object ' + classof(this) + ']';
1479
- };
1480
-
1481
- // `Object.prototype.toString` method
1482
- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1483
- if (!toStringTagSupport) {
1484
- redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1485
- }
1486
-
1487
677
  // `RegExp.prototype.flags` getter implementation
1488
678
  // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
1489
679
  var regexpFlags = function () {
@@ -1611,59 +801,13 @@
1611
801
  exec: regexpExec
1612
802
  });
1613
803
 
1614
- // `String.prototype.{ codePointAt, at }` methods implementation
1615
- var createMethod$2 = function (CONVERT_TO_STRING) {
1616
- return function ($this, pos) {
1617
- var S = String(requireObjectCoercible($this));
1618
- var position = toInteger(pos);
1619
- var size = S.length;
1620
- var first, second;
1621
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1622
- first = S.charCodeAt(position);
1623
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
1624
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1625
- ? CONVERT_TO_STRING ? S.charAt(position) : first
1626
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1627
- };
1628
- };
804
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1629
805
 
1630
- var stringMultibyte = {
1631
- // `String.prototype.codePointAt` method
1632
- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
1633
- codeAt: createMethod$2(false),
1634
- // `String.prototype.at` method
1635
- // https://github.com/mathiasbynens/String.prototype.at
1636
- charAt: createMethod$2(true)
1637
- };
1638
806
 
1639
- var charAt = stringMultibyte.charAt;
1640
807
 
1641
808
 
1642
809
 
1643
- var STRING_ITERATOR = 'String Iterator';
1644
- var setInternalState$2 = internalState.set;
1645
- var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
1646
810
 
1647
- // `String.prototype[@@iterator]` method
1648
- // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
1649
- defineIterator(String, 'String', function (iterated) {
1650
- setInternalState$2(this, {
1651
- type: STRING_ITERATOR,
1652
- string: String(iterated),
1653
- index: 0
1654
- });
1655
- // `%StringIteratorPrototype%.next` method
1656
- // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
1657
- }, function next() {
1658
- var state = getInternalState$2(this);
1659
- var string = state.string;
1660
- var index = state.index;
1661
- var point;
1662
- if (index >= string.length) return { value: undefined, done: true };
1663
- point = charAt(string, index);
1664
- state.index += point.length;
1665
- return { value: point, done: false };
1666
- });
1667
811
 
1668
812
  var SPECIES$2 = wellKnownSymbol('species');
1669
813
 
@@ -1686,6 +830,15 @@
1686
830
  return 'a'.replace(/./, '$0') === '$0';
1687
831
  })();
1688
832
 
833
+ var REPLACE = wellKnownSymbol('replace');
834
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
835
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
836
+ if (/./[REPLACE]) {
837
+ return /./[REPLACE]('a', '$0') === '';
838
+ }
839
+ return false;
840
+ })();
841
+
1689
842
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1690
843
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1691
844
  var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
@@ -1733,7 +886,11 @@
1733
886
  if (
1734
887
  !DELEGATES_TO_SYMBOL ||
1735
888
  !DELEGATES_TO_EXEC ||
1736
- (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
889
+ (KEY === 'replace' && !(
890
+ REPLACE_SUPPORTS_NAMED_GROUPS &&
891
+ REPLACE_KEEPS_$0 &&
892
+ !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
893
+ )) ||
1737
894
  (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1738
895
  ) {
1739
896
  var nativeRegExpMethod = /./[SYMBOL];
@@ -1748,7 +905,10 @@
1748
905
  return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1749
906
  }
1750
907
  return { done: false };
1751
- }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
908
+ }, {
909
+ REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
910
+ REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
911
+ });
1752
912
  var stringMethod = methods[0];
1753
913
  var regexMethod = methods[1];
1754
914
 
@@ -1766,12 +926,37 @@
1766
926
  if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1767
927
  };
1768
928
 
1769
- var charAt$1 = stringMultibyte.charAt;
929
+ // `String.prototype.{ codePointAt, at }` methods implementation
930
+ var createMethod$1 = function (CONVERT_TO_STRING) {
931
+ return function ($this, pos) {
932
+ var S = String(requireObjectCoercible($this));
933
+ var position = toInteger(pos);
934
+ var size = S.length;
935
+ var first, second;
936
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
937
+ first = S.charCodeAt(position);
938
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
939
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
940
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
941
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
942
+ };
943
+ };
944
+
945
+ var stringMultibyte = {
946
+ // `String.prototype.codePointAt` method
947
+ // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
948
+ codeAt: createMethod$1(false),
949
+ // `String.prototype.at` method
950
+ // https://github.com/mathiasbynens/String.prototype.at
951
+ charAt: createMethod$1(true)
952
+ };
953
+
954
+ var charAt = stringMultibyte.charAt;
1770
955
 
1771
956
  // `AdvanceStringIndex` abstract operation
1772
957
  // https://tc39.github.io/ecma262/#sec-advancestringindex
1773
958
  var advanceStringIndex = function (S, index, unicode) {
1774
- return index + (unicode ? charAt$1(S, index).length : 1);
959
+ return index + (unicode ? charAt(S, index).length : 1);
1775
960
  };
1776
961
 
1777
962
  // `RegExpExec` abstract operation
@@ -1805,6 +990,10 @@
1805
990
 
1806
991
  // @@replace logic
1807
992
  fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
993
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
994
+ var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
995
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
996
+
1808
997
  return [
1809
998
  // `String.prototype.replace` method
1810
999
  // https://tc39.github.io/ecma262/#sec-string.prototype.replace
@@ -1818,7 +1007,10 @@
1818
1007
  // `RegExp.prototype[@@replace]` method
1819
1008
  // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1820
1009
  function (regexp, replaceValue) {
1821
- if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
1010
+ if (
1011
+ (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1012
+ (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1013
+ ) {
1822
1014
  var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1823
1015
  if (res.done) return res.value;
1824
1016
  }
@@ -1912,70 +1104,6 @@
1912
1104
  }
1913
1105
  });
1914
1106
 
1915
- // iterable DOM collections
1916
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1917
- var domIterables = {
1918
- CSSRuleList: 0,
1919
- CSSStyleDeclaration: 0,
1920
- CSSValueList: 0,
1921
- ClientRectList: 0,
1922
- DOMRectList: 0,
1923
- DOMStringList: 0,
1924
- DOMTokenList: 1,
1925
- DataTransferItemList: 0,
1926
- FileList: 0,
1927
- HTMLAllCollection: 0,
1928
- HTMLCollection: 0,
1929
- HTMLFormElement: 0,
1930
- HTMLSelectElement: 0,
1931
- MediaList: 0,
1932
- MimeTypeArray: 0,
1933
- NamedNodeMap: 0,
1934
- NodeList: 1,
1935
- PaintRequestList: 0,
1936
- Plugin: 0,
1937
- PluginArray: 0,
1938
- SVGLengthList: 0,
1939
- SVGNumberList: 0,
1940
- SVGPathSegList: 0,
1941
- SVGPointList: 0,
1942
- SVGStringList: 0,
1943
- SVGTransformList: 0,
1944
- SourceBufferList: 0,
1945
- StyleSheetList: 0,
1946
- TextTrackCueList: 0,
1947
- TextTrackList: 0,
1948
- TouchList: 0
1949
- };
1950
-
1951
- var ITERATOR$2 = wellKnownSymbol('iterator');
1952
- var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
1953
- var ArrayValues = es_array_iterator.values;
1954
-
1955
- for (var COLLECTION_NAME in domIterables) {
1956
- var Collection = global_1[COLLECTION_NAME];
1957
- var CollectionPrototype = Collection && Collection.prototype;
1958
- if (CollectionPrototype) {
1959
- // some Chrome versions have non-configurable methods on DOMTokenList
1960
- if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
1961
- createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
1962
- } catch (error) {
1963
- CollectionPrototype[ITERATOR$2] = ArrayValues;
1964
- }
1965
- if (!CollectionPrototype[TO_STRING_TAG$3]) {
1966
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
1967
- }
1968
- if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
1969
- // some Chrome versions have non-configurable methods on DOMTokenList
1970
- if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
1971
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1972
- } catch (error) {
1973
- CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
1974
- }
1975
- }
1976
- }
1977
- }
1978
-
1979
1107
  function _defineProperty(obj, key, value) {
1980
1108
  if (key in obj) {
1981
1109
  Object.defineProperty(obj, key, {
@@ -2026,23 +1154,93 @@
2026
1154
  }
2027
1155
 
2028
1156
  function _toConsumableArray(arr) {
2029
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
1157
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
2030
1158
  }
2031
1159
 
2032
1160
  function _arrayWithoutHoles(arr) {
2033
- if (Array.isArray(arr)) {
2034
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
2035
-
2036
- return arr2;
2037
- }
1161
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
2038
1162
  }
2039
1163
 
2040
1164
  function _iterableToArray(iter) {
2041
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
1165
+ if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
1166
+ }
1167
+
1168
+ function _unsupportedIterableToArray(o, minLen) {
1169
+ if (!o) return;
1170
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1171
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1172
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1173
+ if (n === "Map" || n === "Set") return Array.from(o);
1174
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1175
+ }
1176
+
1177
+ function _arrayLikeToArray(arr, len) {
1178
+ if (len == null || len > arr.length) len = arr.length;
1179
+
1180
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1181
+
1182
+ return arr2;
2042
1183
  }
2043
1184
 
2044
1185
  function _nonIterableSpread() {
2045
- throw new TypeError("Invalid attempt to spread non-iterable instance");
1186
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1187
+ }
1188
+
1189
+ function _createForOfIteratorHelper(o, allowArrayLike) {
1190
+ var it;
1191
+
1192
+ if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
1193
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
1194
+ if (it) o = it;
1195
+ var i = 0;
1196
+
1197
+ var F = function () {};
1198
+
1199
+ return {
1200
+ s: F,
1201
+ n: function () {
1202
+ if (i >= o.length) return {
1203
+ done: true
1204
+ };
1205
+ return {
1206
+ done: false,
1207
+ value: o[i++]
1208
+ };
1209
+ },
1210
+ e: function (e) {
1211
+ throw e;
1212
+ },
1213
+ f: F
1214
+ };
1215
+ }
1216
+
1217
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1218
+ }
1219
+
1220
+ var normalCompletion = true,
1221
+ didErr = false,
1222
+ err;
1223
+ return {
1224
+ s: function () {
1225
+ it = o[Symbol.iterator]();
1226
+ },
1227
+ n: function () {
1228
+ var step = it.next();
1229
+ normalCompletion = step.done;
1230
+ return step;
1231
+ },
1232
+ e: function (e) {
1233
+ didErr = true;
1234
+ err = e;
1235
+ },
1236
+ f: function () {
1237
+ try {
1238
+ if (!normalCompletion && it.return != null) it.return();
1239
+ } finally {
1240
+ if (didErr) throw err;
1241
+ }
1242
+ }
1243
+ };
2046
1244
  }
2047
1245
 
2048
1246
  //
@@ -2096,7 +1294,7 @@
2096
1294
  },
2097
1295
  methods: _objectSpread2({
2098
1296
  _initTable: function _initTable() {
2099
- var options = _objectSpread2({}, deepCopy(this.options), {
1297
+ var options = _objectSpread2(_objectSpread2({}, deepCopy(this.options)), {}, {
2100
1298
  columns: deepCopy(this.columns),
2101
1299
  data: deepCopy(this.data)
2102
1300
  });
@@ -2110,9 +1308,9 @@
2110
1308
  }
2111
1309
  }, function () {
2112
1310
  var res = {};
2113
- var _iteratorNormalCompletion = true;
2114
- var _didIteratorError = false;
2115
- var _iteratorError = undefined;
1311
+
1312
+ var _iterator = _createForOfIteratorHelper($.fn.bootstrapTable.methods),
1313
+ _step;
2116
1314
 
2117
1315
  try {
2118
1316
  var _loop = function _loop() {
@@ -2129,22 +1327,13 @@
2129
1327
  };
2130
1328
  };
2131
1329
 
2132
- for (var _iterator = $.fn.bootstrapTable.methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1330
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2133
1331
  _loop();
2134
1332
  }
2135
1333
  } catch (err) {
2136
- _didIteratorError = true;
2137
- _iteratorError = err;
1334
+ _iterator.e(err);
2138
1335
  } finally {
2139
- try {
2140
- if (!_iteratorNormalCompletion && _iterator.return != null) {
2141
- _iterator.return();
2142
- }
2143
- } finally {
2144
- if (_didIteratorError) {
2145
- throw _iteratorError;
2146
- }
2147
- }
1336
+ _iterator.f();
2148
1337
  }
2149
1338
 
2150
1339
  return res;