bootstrap-table-rails 1.17.0 → 1.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) 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 +596 -228
  11. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +183 -990
  12. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +184 -991
  13. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +26 -7
  14. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +1420 -1423
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +152 -40
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +173 -48
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +495 -908
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +199 -57
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +177 -487
  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 +435 -977
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +534 -971
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +372 -161
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +196 -95
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +136 -48
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.css +3 -2
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +330 -559
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +45 -11
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +137 -36
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +232 -148
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +239 -561
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +136 -37
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +101 -58
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +529 -1045
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +155 -58
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +107 -33
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +283 -87
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +132 -43
  39. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +537 -1061
  40. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +278 -990
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +36 -20
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +36 -20
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +36 -20
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +36 -20
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +36 -20
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +36 -20
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +79 -24
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +36 -20
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +36 -20
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +36 -20
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +53 -37
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +36 -20
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +50 -34
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +36 -20
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +36 -20
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +36 -20
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +36 -20
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +36 -20
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +36 -20
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +36 -20
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +36 -20
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +36 -20
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +47 -31
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +36 -20
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +36 -20
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +36 -20
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +36 -20
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +36 -20
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +36 -20
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +36 -20
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +36 -20
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +36 -20
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +36 -20
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +36 -20
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +36 -20
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +36 -20
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +57 -40
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +36 -20
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +36 -20
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +36 -20
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +57 -41
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +53 -37
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +36 -20
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +36 -20
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +36 -20
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +36 -20
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +36 -20
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +36 -20
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +36 -20
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +36 -20
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +36 -20
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +36 -20
  93. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +36 -20
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +27 -6
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +114 -35
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +25 -6
  97. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +110 -31
  98. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +30 -6
  99. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +119 -34
  100. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +30 -6
  101. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +115 -30
  102. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +25 -6
  103. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +107 -28
  104. metadata +6 -2
  105. data/vendor/assets/javascripts/bootstrap-table/extensions/accent-neutralise/bootstrap-table-accent-neutralise.js +0 -2668
@@ -1,10 +1,12 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3
3
  typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4
- (global = global || self, factory(global.jQuery));
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
5
5
  }(this, (function ($) { 'use strict';
6
6
 
7
- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var $__default = /*#__PURE__*/_interopDefaultLegacy($);
8
10
 
9
11
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
12
 
@@ -24,7 +26,7 @@
24
26
  check(typeof self == 'object' && self) ||
25
27
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
26
28
  // eslint-disable-next-line no-new-func
27
- Function('return this')();
29
+ (function () { return this; })() || Function('return this')();
28
30
 
29
31
  var fails = function (exec) {
30
32
  try {
@@ -36,7 +38,7 @@
36
38
 
37
39
  // Thank's IE8 for his funny defineProperty
38
40
  var descriptors = !fails(function () {
39
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
41
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
40
42
  });
41
43
 
42
44
  var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
@@ -217,9 +219,9 @@
217
219
  (module.exports = function (key, value) {
218
220
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
219
221
  })('versions', []).push({
220
- version: '3.6.0',
222
+ version: '3.8.1',
221
223
  mode: 'global',
222
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
224
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
223
225
  });
224
226
  });
225
227
 
@@ -255,11 +257,12 @@
255
257
  };
256
258
 
257
259
  if (nativeWeakMap) {
258
- var store$1 = new WeakMap$1();
260
+ var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1());
259
261
  var wmget = store$1.get;
260
262
  var wmhas = store$1.has;
261
263
  var wmset = store$1.set;
262
264
  set = function (it, metadata) {
265
+ metadata.facade = it;
263
266
  wmset.call(store$1, it, metadata);
264
267
  return metadata;
265
268
  };
@@ -273,6 +276,7 @@
273
276
  var STATE = sharedKey('state');
274
277
  hiddenKeys[STATE] = true;
275
278
  set = function (it, metadata) {
279
+ metadata.facade = it;
276
280
  createNonEnumerableProperty(it, STATE, metadata);
277
281
  return metadata;
278
282
  };
@@ -301,9 +305,15 @@
301
305
  var unsafe = options ? !!options.unsafe : false;
302
306
  var simple = options ? !!options.enumerable : false;
303
307
  var noTargetGet = options ? !!options.noTargetGet : false;
308
+ var state;
304
309
  if (typeof value == 'function') {
305
- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
306
- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
310
+ if (typeof key == 'string' && !has(value, 'name')) {
311
+ createNonEnumerableProperty(value, 'name', key);
312
+ }
313
+ state = enforceInternalState(value);
314
+ if (!state.source) {
315
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
316
+ }
307
317
  }
308
318
  if (O === global_1) {
309
319
  if (simple) O[key] = value;
@@ -526,18 +536,6 @@
526
536
  }
527
537
  };
528
538
 
529
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
530
- // Chrome 38 Symbol has incorrect toString conversion
531
- // eslint-disable-next-line no-undef
532
- return !String(Symbol());
533
- });
534
-
535
- var useSymbolAsUid = nativeSymbol
536
- // eslint-disable-next-line no-undef
537
- && !Symbol.sham
538
- // eslint-disable-next-line no-undef
539
- && typeof Symbol() == 'symbol';
540
-
541
539
  // `IsArray` abstract operation
542
540
  // https://tc39.github.io/ecma262/#sec-isarray
543
541
  var isArray = Array.isArray || function isArray(arg) {
@@ -550,126 +548,27 @@
550
548
  return Object(requireObjectCoercible(argument));
551
549
  };
552
550
 
553
- // `Object.keys` method
554
- // https://tc39.github.io/ecma262/#sec-object.keys
555
- var objectKeys = Object.keys || function keys(O) {
556
- return objectKeysInternal(O, enumBugKeys);
557
- };
558
-
559
- // `Object.defineProperties` method
560
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
561
- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
562
- anObject(O);
563
- var keys = objectKeys(Properties);
564
- var length = keys.length;
565
- var index = 0;
566
- var key;
567
- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
568
- return O;
569
- };
570
-
571
- var html = getBuiltIn('document', 'documentElement');
572
-
573
- var GT = '>';
574
- var LT = '<';
575
- var PROTOTYPE = 'prototype';
576
- var SCRIPT = 'script';
577
- var IE_PROTO = sharedKey('IE_PROTO');
578
-
579
- var EmptyConstructor = function () { /* empty */ };
580
-
581
- var scriptTag = function (content) {
582
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
583
- };
584
-
585
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
586
- var NullProtoObjectViaActiveX = function (activeXDocument) {
587
- activeXDocument.write(scriptTag(''));
588
- activeXDocument.close();
589
- var temp = activeXDocument.parentWindow.Object;
590
- activeXDocument = null; // avoid memory leak
591
- return temp;
592
- };
593
-
594
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
595
- var NullProtoObjectViaIFrame = function () {
596
- // Thrash, waste and sodomy: IE GC bug
597
- var iframe = documentCreateElement('iframe');
598
- var JS = 'java' + SCRIPT + ':';
599
- var iframeDocument;
600
- iframe.style.display = 'none';
601
- html.appendChild(iframe);
602
- // https://github.com/zloirock/core-js/issues/475
603
- iframe.src = String(JS);
604
- iframeDocument = iframe.contentWindow.document;
605
- iframeDocument.open();
606
- iframeDocument.write(scriptTag('document.F=Object'));
607
- iframeDocument.close();
608
- return iframeDocument.F;
609
- };
610
-
611
- // Check for document.domain and active x support
612
- // No need to use active x approach when document.domain is not set
613
- // see https://github.com/es-shims/es5-shim/issues/150
614
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
615
- // avoid IE GC bug
616
- var activeXDocument;
617
- var NullProtoObject = function () {
618
- try {
619
- /* global ActiveXObject */
620
- activeXDocument = document.domain && new ActiveXObject('htmlfile');
621
- } catch (error) { /* ignore */ }
622
- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
623
- var length = enumBugKeys.length;
624
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
625
- return NullProtoObject();
626
- };
627
-
628
- hiddenKeys[IE_PROTO] = true;
629
-
630
- // `Object.create` method
631
- // https://tc39.github.io/ecma262/#sec-object.create
632
- var objectCreate = Object.create || function create(O, Properties) {
633
- var result;
634
- if (O !== null) {
635
- EmptyConstructor[PROTOTYPE] = anObject(O);
636
- result = new EmptyConstructor();
637
- EmptyConstructor[PROTOTYPE] = null;
638
- // add "__proto__" for Object.getPrototypeOf polyfill
639
- result[IE_PROTO] = O;
640
- } else result = NullProtoObject();
641
- return Properties === undefined ? result : objectDefineProperties(result, Properties);
642
- };
643
-
644
- var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
645
-
646
- var toString$1 = {}.toString;
647
-
648
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
649
- ? Object.getOwnPropertyNames(window) : [];
650
-
651
- var getWindowNames = function (it) {
652
- try {
653
- return nativeGetOwnPropertyNames(it);
654
- } catch (error) {
655
- return windowNames.slice();
656
- }
551
+ var createProperty = function (object, key, value) {
552
+ var propertyKey = toPrimitive(key);
553
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
554
+ else object[propertyKey] = value;
657
555
  };
658
556
 
659
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
660
- var f$5 = function getOwnPropertyNames(it) {
661
- return windowNames && toString$1.call(it) == '[object Window]'
662
- ? getWindowNames(it)
663
- : nativeGetOwnPropertyNames(toIndexedObject(it));
664
- };
557
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
558
+ // Chrome 38 Symbol has incorrect toString conversion
559
+ // eslint-disable-next-line no-undef
560
+ return !String(Symbol());
561
+ });
665
562
 
666
- var objectGetOwnPropertyNamesExternal = {
667
- f: f$5
668
- };
563
+ var useSymbolAsUid = nativeSymbol
564
+ // eslint-disable-next-line no-undef
565
+ && !Symbol.sham
566
+ // eslint-disable-next-line no-undef
567
+ && typeof Symbol.iterator == 'symbol';
669
568
 
670
569
  var WellKnownSymbolsStore = shared('wks');
671
570
  var Symbol$1 = global_1.Symbol;
672
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
571
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
673
572
 
674
573
  var wellKnownSymbol = function (name) {
675
574
  if (!has(WellKnownSymbolsStore, name)) {
@@ -678,32 +577,106 @@
678
577
  } return WellKnownSymbolsStore[name];
679
578
  };
680
579
 
681
- var f$6 = wellKnownSymbol;
580
+ var SPECIES = wellKnownSymbol('species');
682
581
 
683
- var wrappedWellKnownSymbol = {
684
- f: f$6
582
+ // `ArraySpeciesCreate` abstract operation
583
+ // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
584
+ var arraySpeciesCreate = function (originalArray, length) {
585
+ var C;
586
+ if (isArray(originalArray)) {
587
+ C = originalArray.constructor;
588
+ // cross-realm fallback
589
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
590
+ else if (isObject(C)) {
591
+ C = C[SPECIES];
592
+ if (C === null) C = undefined;
593
+ }
594
+ } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
685
595
  };
686
596
 
687
- var defineProperty = objectDefineProperty.f;
597
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
598
+
599
+ var process = global_1.process;
600
+ var versions = process && process.versions;
601
+ var v8 = versions && versions.v8;
602
+ var match, version;
603
+
604
+ if (v8) {
605
+ match = v8.split('.');
606
+ version = match[0] + match[1];
607
+ } else if (engineUserAgent) {
608
+ match = engineUserAgent.match(/Edge\/(\d+)/);
609
+ if (!match || match[1] >= 74) {
610
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
611
+ if (match) version = match[1];
612
+ }
613
+ }
614
+
615
+ var engineV8Version = version && +version;
688
616
 
689
- var defineWellKnownSymbol = function (NAME) {
690
- var Symbol = path.Symbol || (path.Symbol = {});
691
- if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
692
- value: wrappedWellKnownSymbol.f(NAME)
617
+ var SPECIES$1 = wellKnownSymbol('species');
618
+
619
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
620
+ // We can't use this feature detection in V8 since it causes
621
+ // deoptimization and serious performance degradation
622
+ // https://github.com/zloirock/core-js/issues/677
623
+ return engineV8Version >= 51 || !fails(function () {
624
+ var array = [];
625
+ var constructor = array.constructor = {};
626
+ constructor[SPECIES$1] = function () {
627
+ return { foo: 1 };
628
+ };
629
+ return array[METHOD_NAME](Boolean).foo !== 1;
693
630
  });
694
631
  };
695
632
 
696
- var defineProperty$1 = objectDefineProperty.f;
633
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
634
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
635
+ var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
697
636
 
637
+ // We can't use this feature detection in V8 since it causes
638
+ // deoptimization and serious performance degradation
639
+ // https://github.com/zloirock/core-js/issues/679
640
+ var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
641
+ var array = [];
642
+ array[IS_CONCAT_SPREADABLE] = false;
643
+ return array.concat()[0] !== array;
644
+ });
698
645
 
646
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
699
647
 
700
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
648
+ var isConcatSpreadable = function (O) {
649
+ if (!isObject(O)) return false;
650
+ var spreadable = O[IS_CONCAT_SPREADABLE];
651
+ return spreadable !== undefined ? !!spreadable : isArray(O);
652
+ };
653
+
654
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
701
655
 
702
- var setToStringTag = function (it, TAG, STATIC) {
703
- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
704
- defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
656
+ // `Array.prototype.concat` method
657
+ // https://tc39.github.io/ecma262/#sec-array.prototype.concat
658
+ // with adding support of @@isConcatSpreadable and @@species
659
+ _export({ target: 'Array', proto: true, forced: FORCED }, {
660
+ concat: function concat(arg) { // eslint-disable-line no-unused-vars
661
+ var O = toObject(this);
662
+ var A = arraySpeciesCreate(O, 0);
663
+ var n = 0;
664
+ var i, k, length, len, E;
665
+ for (i = -1, length = arguments.length; i < length; i++) {
666
+ E = i === -1 ? O : arguments[i];
667
+ if (isConcatSpreadable(E)) {
668
+ len = toLength(E.length);
669
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
670
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
671
+ } else {
672
+ if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
673
+ createProperty(A, n++, E);
674
+ }
675
+ }
676
+ A.length = n;
677
+ return A;
705
678
  }
706
- };
679
+ });
707
680
 
708
681
  var aFunction$1 = function (it) {
709
682
  if (typeof it != 'function') {
@@ -712,7 +685,7 @@
712
685
  };
713
686
 
714
687
  // optional / simple context binding
715
- var bindContext = function (fn, that, length) {
688
+ var functionBindContext = function (fn, that, length) {
716
689
  aFunction$1(fn);
717
690
  if (that === undefined) return fn;
718
691
  switch (length) {
@@ -734,41 +707,25 @@
734
707
  };
735
708
  };
736
709
 
737
- var SPECIES = wellKnownSymbol('species');
738
-
739
- // `ArraySpeciesCreate` abstract operation
740
- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
741
- var arraySpeciesCreate = function (originalArray, length) {
742
- var C;
743
- if (isArray(originalArray)) {
744
- C = originalArray.constructor;
745
- // cross-realm fallback
746
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
747
- else if (isObject(C)) {
748
- C = C[SPECIES];
749
- if (C === null) C = undefined;
750
- }
751
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
752
- };
753
-
754
710
  var push = [].push;
755
711
 
756
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
712
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
757
713
  var createMethod$1 = function (TYPE) {
758
714
  var IS_MAP = TYPE == 1;
759
715
  var IS_FILTER = TYPE == 2;
760
716
  var IS_SOME = TYPE == 3;
761
717
  var IS_EVERY = TYPE == 4;
762
718
  var IS_FIND_INDEX = TYPE == 6;
719
+ var IS_FILTER_OUT = TYPE == 7;
763
720
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
764
721
  return function ($this, callbackfn, that, specificCreate) {
765
722
  var O = toObject($this);
766
723
  var self = indexedObject(O);
767
- var boundFunction = bindContext(callbackfn, that, 3);
724
+ var boundFunction = functionBindContext(callbackfn, that, 3);
768
725
  var length = toLength(self.length);
769
726
  var index = 0;
770
727
  var create = specificCreate || arraySpeciesCreate;
771
- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
728
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
772
729
  var value, result;
773
730
  for (;length > index; index++) if (NO_HOLES || index in self) {
774
731
  value = self[index];
@@ -780,7 +737,10 @@
780
737
  case 5: return value; // find
781
738
  case 6: return index; // findIndex
782
739
  case 2: push.call(target, value); // filter
783
- } else if (IS_EVERY) return false; // every
740
+ } else switch (TYPE) {
741
+ case 4: return false; // every
742
+ case 7: push.call(target, value); // filterOut
743
+ }
784
744
  }
785
745
  }
786
746
  return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
@@ -808,420 +768,103 @@
808
768
  find: createMethod$1(5),
809
769
  // `Array.prototype.findIndex` method
810
770
  // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
811
- findIndex: createMethod$1(6)
812
- };
813
-
814
- var $forEach = arrayIteration.forEach;
815
-
816
- var HIDDEN = sharedKey('hidden');
817
- var SYMBOL = 'Symbol';
818
- var PROTOTYPE$1 = 'prototype';
819
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
820
- var setInternalState = internalState.set;
821
- var getInternalState = internalState.getterFor(SYMBOL);
822
- var ObjectPrototype = Object[PROTOTYPE$1];
823
- var $Symbol = global_1.Symbol;
824
- var $stringify = getBuiltIn('JSON', 'stringify');
825
- var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
826
- var nativeDefineProperty$1 = objectDefineProperty.f;
827
- var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
828
- var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
829
- var AllSymbols = shared('symbols');
830
- var ObjectPrototypeSymbols = shared('op-symbols');
831
- var StringToSymbolRegistry = shared('string-to-symbol-registry');
832
- var SymbolToStringRegistry = shared('symbol-to-string-registry');
833
- var WellKnownSymbolsStore$1 = shared('wks');
834
- var QObject = global_1.QObject;
835
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
836
- var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
837
-
838
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
839
- var setSymbolDescriptor = descriptors && fails(function () {
840
- return objectCreate(nativeDefineProperty$1({}, 'a', {
841
- get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
842
- })).a != 7;
843
- }) ? function (O, P, Attributes) {
844
- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
845
- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
846
- nativeDefineProperty$1(O, P, Attributes);
847
- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
848
- nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
849
- }
850
- } : nativeDefineProperty$1;
851
-
852
- var wrap = function (tag, description) {
853
- var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
854
- setInternalState(symbol, {
855
- type: SYMBOL,
856
- tag: tag,
857
- description: description
858
- });
859
- if (!descriptors) symbol.description = description;
860
- return symbol;
771
+ findIndex: createMethod$1(6),
772
+ // `Array.prototype.filterOut` method
773
+ // https://github.com/tc39/proposal-array-filtering
774
+ filterOut: createMethod$1(7)
861
775
  };
862
776
 
863
- var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
864
- return typeof it == 'symbol';
865
- } : function (it) {
866
- return Object(it) instanceof $Symbol;
867
- };
868
-
869
- var $defineProperty = function defineProperty(O, P, Attributes) {
870
- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
871
- anObject(O);
872
- var key = toPrimitive(P, true);
873
- anObject(Attributes);
874
- if (has(AllSymbols, key)) {
875
- if (!Attributes.enumerable) {
876
- if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
877
- O[HIDDEN][key] = true;
878
- } else {
879
- if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
880
- Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
881
- } return setSymbolDescriptor(O, key, Attributes);
882
- } return nativeDefineProperty$1(O, key, Attributes);
777
+ // `Object.keys` method
778
+ // https://tc39.github.io/ecma262/#sec-object.keys
779
+ var objectKeys = Object.keys || function keys(O) {
780
+ return objectKeysInternal(O, enumBugKeys);
883
781
  };
884
782
 
885
- var $defineProperties = function defineProperties(O, Properties) {
783
+ // `Object.defineProperties` method
784
+ // https://tc39.github.io/ecma262/#sec-object.defineproperties
785
+ var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
886
786
  anObject(O);
887
- var properties = toIndexedObject(Properties);
888
- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
889
- $forEach(keys, function (key) {
890
- if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
891
- });
787
+ var keys = objectKeys(Properties);
788
+ var length = keys.length;
789
+ var index = 0;
790
+ var key;
791
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
892
792
  return O;
893
793
  };
894
794
 
895
- var $create = function create(O, Properties) {
896
- return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
897
- };
795
+ var html = getBuiltIn('document', 'documentElement');
898
796
 
899
- var $propertyIsEnumerable = function propertyIsEnumerable(V) {
900
- var P = toPrimitive(V, true);
901
- var enumerable = nativePropertyIsEnumerable$1.call(this, P);
902
- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
903
- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
904
- };
797
+ var GT = '>';
798
+ var LT = '<';
799
+ var PROTOTYPE = 'prototype';
800
+ var SCRIPT = 'script';
801
+ var IE_PROTO = sharedKey('IE_PROTO');
905
802
 
906
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
907
- var it = toIndexedObject(O);
908
- var key = toPrimitive(P, true);
909
- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
910
- var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
911
- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
912
- descriptor.enumerable = true;
913
- }
914
- return descriptor;
915
- };
803
+ var EmptyConstructor = function () { /* empty */ };
916
804
 
917
- var $getOwnPropertyNames = function getOwnPropertyNames(O) {
918
- var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
919
- var result = [];
920
- $forEach(names, function (key) {
921
- if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
922
- });
923
- return result;
805
+ var scriptTag = function (content) {
806
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
924
807
  };
925
808
 
926
- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
927
- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
928
- var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
929
- var result = [];
930
- $forEach(names, function (key) {
931
- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
932
- result.push(AllSymbols[key]);
933
- }
934
- });
935
- return result;
809
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
810
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
811
+ activeXDocument.write(scriptTag(''));
812
+ activeXDocument.close();
813
+ var temp = activeXDocument.parentWindow.Object;
814
+ activeXDocument = null; // avoid memory leak
815
+ return temp;
936
816
  };
937
817
 
938
- // `Symbol` constructor
939
- // https://tc39.github.io/ecma262/#sec-symbol-constructor
940
- if (!nativeSymbol) {
941
- $Symbol = function Symbol() {
942
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
943
- var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
944
- var tag = uid(description);
945
- var setter = function (value) {
946
- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
947
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
948
- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
949
- };
950
- if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
951
- return wrap(tag, description);
952
- };
953
-
954
- redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
955
- return getInternalState(this).tag;
956
- });
957
-
958
- objectPropertyIsEnumerable.f = $propertyIsEnumerable;
959
- objectDefineProperty.f = $defineProperty;
960
- objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
961
- objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
962
- objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
963
-
964
- if (descriptors) {
965
- // https://github.com/tc39/proposal-Symbol-description
966
- nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
967
- configurable: true,
968
- get: function description() {
969
- return getInternalState(this).description;
970
- }
971
- });
972
- {
973
- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
974
- }
975
- }
976
- }
977
-
978
- if (!useSymbolAsUid) {
979
- wrappedWellKnownSymbol.f = function (name) {
980
- return wrap(wellKnownSymbol(name), name);
981
- };
982
- }
983
-
984
- _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
985
- Symbol: $Symbol
986
- });
987
-
988
- $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
989
- defineWellKnownSymbol(name);
990
- });
991
-
992
- _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
993
- // `Symbol.for` method
994
- // https://tc39.github.io/ecma262/#sec-symbol.for
995
- 'for': function (key) {
996
- var string = String(key);
997
- if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
998
- var symbol = $Symbol(string);
999
- StringToSymbolRegistry[string] = symbol;
1000
- SymbolToStringRegistry[symbol] = string;
1001
- return symbol;
1002
- },
1003
- // `Symbol.keyFor` method
1004
- // https://tc39.github.io/ecma262/#sec-symbol.keyfor
1005
- keyFor: function keyFor(sym) {
1006
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
1007
- if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
1008
- },
1009
- useSetter: function () { USE_SETTER = true; },
1010
- useSimple: function () { USE_SETTER = false; }
1011
- });
1012
-
1013
- _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
1014
- // `Object.create` method
1015
- // https://tc39.github.io/ecma262/#sec-object.create
1016
- create: $create,
1017
- // `Object.defineProperty` method
1018
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
1019
- defineProperty: $defineProperty,
1020
- // `Object.defineProperties` method
1021
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
1022
- defineProperties: $defineProperties,
1023
- // `Object.getOwnPropertyDescriptor` method
1024
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
1025
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor
1026
- });
1027
-
1028
- _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
1029
- // `Object.getOwnPropertyNames` method
1030
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
1031
- getOwnPropertyNames: $getOwnPropertyNames,
1032
- // `Object.getOwnPropertySymbols` method
1033
- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
1034
- getOwnPropertySymbols: $getOwnPropertySymbols
1035
- });
1036
-
1037
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
1038
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
1039
- _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
1040
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
1041
- return objectGetOwnPropertySymbols.f(toObject(it));
1042
- }
1043
- });
1044
-
1045
- // `JSON.stringify` method behavior with symbols
1046
- // https://tc39.github.io/ecma262/#sec-json.stringify
1047
- if ($stringify) {
1048
- var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
1049
- var symbol = $Symbol();
1050
- // MS Edge converts symbol values to JSON as {}
1051
- return $stringify([symbol]) != '[null]'
1052
- // WebKit converts symbol values to JSON as null
1053
- || $stringify({ a: symbol }) != '{}'
1054
- // V8 throws on boxed symbols
1055
- || $stringify(Object(symbol)) != '{}';
1056
- });
1057
-
1058
- _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1059
- // eslint-disable-next-line no-unused-vars
1060
- stringify: function stringify(it, replacer, space) {
1061
- var args = [it];
1062
- var index = 1;
1063
- var $replacer;
1064
- while (arguments.length > index) args.push(arguments[index++]);
1065
- $replacer = replacer;
1066
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1067
- if (!isArray(replacer)) replacer = function (key, value) {
1068
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1069
- if (!isSymbol(value)) return value;
1070
- };
1071
- args[1] = replacer;
1072
- return $stringify.apply(null, args);
1073
- }
1074
- });
1075
- }
1076
-
1077
- // `Symbol.prototype[@@toPrimitive]` method
1078
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1079
- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
1080
- createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1081
- }
1082
- // `Symbol.prototype[@@toStringTag]` property
1083
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1084
- setToStringTag($Symbol, SYMBOL);
1085
-
1086
- hiddenKeys[HIDDEN] = true;
1087
-
1088
- var defineProperty$2 = objectDefineProperty.f;
1089
-
1090
-
1091
- var NativeSymbol = global_1.Symbol;
1092
-
1093
- if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
1094
- // Safari 12 bug
1095
- NativeSymbol().description !== undefined
1096
- )) {
1097
- var EmptyStringDescriptionStore = {};
1098
- // wrap Symbol constructor for correct work with undefined description
1099
- var SymbolWrapper = function Symbol() {
1100
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
1101
- var result = this instanceof SymbolWrapper
1102
- ? new NativeSymbol(description)
1103
- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
1104
- : description === undefined ? NativeSymbol() : NativeSymbol(description);
1105
- if (description === '') EmptyStringDescriptionStore[result] = true;
1106
- return result;
1107
- };
1108
- copyConstructorProperties(SymbolWrapper, NativeSymbol);
1109
- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
1110
- symbolPrototype.constructor = SymbolWrapper;
1111
-
1112
- var symbolToString = symbolPrototype.toString;
1113
- var native = String(NativeSymbol('test')) == 'Symbol(test)';
1114
- var regexp = /^Symbol\((.*)\)[^)]+$/;
1115
- defineProperty$2(symbolPrototype, 'description', {
1116
- configurable: true,
1117
- get: function description() {
1118
- var symbol = isObject(this) ? this.valueOf() : this;
1119
- var string = symbolToString.call(symbol);
1120
- if (has(EmptyStringDescriptionStore, symbol)) return '';
1121
- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
1122
- return desc === '' ? undefined : desc;
1123
- }
1124
- });
1125
-
1126
- _export({ global: true, forced: true }, {
1127
- Symbol: SymbolWrapper
1128
- });
1129
- }
1130
-
1131
- // `Symbol.iterator` well-known symbol
1132
- // https://tc39.github.io/ecma262/#sec-symbol.iterator
1133
- defineWellKnownSymbol('iterator');
1134
-
1135
- var createProperty = function (object, key, value) {
1136
- var propertyKey = toPrimitive(key);
1137
- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1138
- else object[propertyKey] = value;
818
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
819
+ var NullProtoObjectViaIFrame = function () {
820
+ // Thrash, waste and sodomy: IE GC bug
821
+ var iframe = documentCreateElement('iframe');
822
+ var JS = 'java' + SCRIPT + ':';
823
+ var iframeDocument;
824
+ iframe.style.display = 'none';
825
+ html.appendChild(iframe);
826
+ // https://github.com/zloirock/core-js/issues/475
827
+ iframe.src = String(JS);
828
+ iframeDocument = iframe.contentWindow.document;
829
+ iframeDocument.open();
830
+ iframeDocument.write(scriptTag('document.F=Object'));
831
+ iframeDocument.close();
832
+ return iframeDocument.F;
1139
833
  };
1140
834
 
1141
- var userAgent = getBuiltIn('navigator', 'userAgent') || '';
1142
-
1143
- var process = global_1.process;
1144
- var versions = process && process.versions;
1145
- var v8 = versions && versions.v8;
1146
- var match, version;
1147
-
1148
- if (v8) {
1149
- match = v8.split('.');
1150
- version = match[0] + match[1];
1151
- } else if (userAgent) {
1152
- match = userAgent.match(/Edge\/(\d+)/);
1153
- if (!match || match[1] >= 74) {
1154
- match = userAgent.match(/Chrome\/(\d+)/);
1155
- if (match) version = match[1];
1156
- }
1157
- }
1158
-
1159
- var v8Version = version && +version;
1160
-
1161
- var SPECIES$1 = wellKnownSymbol('species');
1162
-
1163
- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1164
- // We can't use this feature detection in V8 since it causes
1165
- // deoptimization and serious performance degradation
1166
- // https://github.com/zloirock/core-js/issues/677
1167
- return v8Version >= 51 || !fails(function () {
1168
- var array = [];
1169
- var constructor = array.constructor = {};
1170
- constructor[SPECIES$1] = function () {
1171
- return { foo: 1 };
1172
- };
1173
- return array[METHOD_NAME](Boolean).foo !== 1;
1174
- });
835
+ // Check for document.domain and active x support
836
+ // No need to use active x approach when document.domain is not set
837
+ // see https://github.com/es-shims/es5-shim/issues/150
838
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
839
+ // avoid IE GC bug
840
+ var activeXDocument;
841
+ var NullProtoObject = function () {
842
+ try {
843
+ /* global ActiveXObject */
844
+ activeXDocument = document.domain && new ActiveXObject('htmlfile');
845
+ } catch (error) { /* ignore */ }
846
+ NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
847
+ var length = enumBugKeys.length;
848
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
849
+ return NullProtoObject();
1175
850
  };
1176
851
 
1177
- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1178
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1179
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1180
-
1181
- // We can't use this feature detection in V8 since it causes
1182
- // deoptimization and serious performance degradation
1183
- // https://github.com/zloirock/core-js/issues/679
1184
- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
1185
- var array = [];
1186
- array[IS_CONCAT_SPREADABLE] = false;
1187
- return array.concat()[0] !== array;
1188
- });
1189
-
1190
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
852
+ hiddenKeys[IE_PROTO] = true;
1191
853
 
1192
- var isConcatSpreadable = function (O) {
1193
- if (!isObject(O)) return false;
1194
- var spreadable = O[IS_CONCAT_SPREADABLE];
1195
- return spreadable !== undefined ? !!spreadable : isArray(O);
854
+ // `Object.create` method
855
+ // https://tc39.github.io/ecma262/#sec-object.create
856
+ var objectCreate = Object.create || function create(O, Properties) {
857
+ var result;
858
+ if (O !== null) {
859
+ EmptyConstructor[PROTOTYPE] = anObject(O);
860
+ result = new EmptyConstructor();
861
+ EmptyConstructor[PROTOTYPE] = null;
862
+ // add "__proto__" for Object.getPrototypeOf polyfill
863
+ result[IE_PROTO] = O;
864
+ } else result = NullProtoObject();
865
+ return Properties === undefined ? result : objectDefineProperties(result, Properties);
1196
866
  };
1197
867
 
1198
- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1199
-
1200
- // `Array.prototype.concat` method
1201
- // https://tc39.github.io/ecma262/#sec-array.prototype.concat
1202
- // with adding support of @@isConcatSpreadable and @@species
1203
- _export({ target: 'Array', proto: true, forced: FORCED }, {
1204
- concat: function concat(arg) { // eslint-disable-line no-unused-vars
1205
- var O = toObject(this);
1206
- var A = arraySpeciesCreate(O, 0);
1207
- var n = 0;
1208
- var i, k, length, len, E;
1209
- for (i = -1, length = arguments.length; i < length; i++) {
1210
- E = i === -1 ? O : arguments[i];
1211
- if (isConcatSpreadable(E)) {
1212
- len = toLength(E.length);
1213
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1214
- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1215
- } else {
1216
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1217
- createProperty(A, n++, E);
1218
- }
1219
- }
1220
- A.length = n;
1221
- return A;
1222
- }
1223
- });
1224
-
1225
868
  var UNSCOPABLES = wellKnownSymbol('unscopables');
1226
869
  var ArrayPrototype = Array.prototype;
1227
870
 
@@ -1239,18 +882,45 @@
1239
882
  ArrayPrototype[UNSCOPABLES][key] = true;
1240
883
  };
1241
884
 
885
+ var defineProperty = Object.defineProperty;
886
+ var cache = {};
887
+
888
+ var thrower = function (it) { throw it; };
889
+
890
+ var arrayMethodUsesToLength = function (METHOD_NAME, options) {
891
+ if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
892
+ if (!options) options = {};
893
+ var method = [][METHOD_NAME];
894
+ var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
895
+ var argument0 = has(options, 0) ? options[0] : thrower;
896
+ var argument1 = has(options, 1) ? options[1] : undefined;
897
+
898
+ return cache[METHOD_NAME] = !!method && !fails(function () {
899
+ if (ACCESSORS && !descriptors) return true;
900
+ var O = { length: -1 };
901
+
902
+ if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
903
+ else O[1] = 1;
904
+
905
+ method.call(O, argument0, argument1);
906
+ });
907
+ };
908
+
1242
909
  var $find = arrayIteration.find;
1243
910
 
1244
911
 
912
+
1245
913
  var FIND = 'find';
1246
914
  var SKIPS_HOLES = true;
1247
915
 
916
+ var USES_TO_LENGTH = arrayMethodUsesToLength(FIND);
917
+
1248
918
  // Shouldn't skip holes
1249
919
  if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1250
920
 
1251
921
  // `Array.prototype.find` method
1252
922
  // https://tc39.github.io/ecma262/#sec-array.prototype.find
1253
- _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
923
+ _export({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
1254
924
  find: function find(callbackfn /* , that = undefined */) {
1255
925
  return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1256
926
  }
@@ -1259,227 +929,41 @@
1259
929
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1260
930
  addToUnscopables(FIND);
1261
931
 
1262
- var correctPrototypeGetter = !fails(function () {
1263
- function F() { /* empty */ }
1264
- F.prototype.constructor = null;
1265
- return Object.getPrototypeOf(new F()) !== F.prototype;
1266
- });
1267
-
1268
- var IE_PROTO$1 = sharedKey('IE_PROTO');
1269
- var ObjectPrototype$1 = Object.prototype;
1270
-
1271
- // `Object.getPrototypeOf` method
1272
- // https://tc39.github.io/ecma262/#sec-object.getprototypeof
1273
- var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
1274
- O = toObject(O);
1275
- if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
1276
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1277
- return O.constructor.prototype;
1278
- } return O instanceof Object ? ObjectPrototype$1 : null;
1279
- };
1280
-
1281
- var ITERATOR = wellKnownSymbol('iterator');
1282
- var BUGGY_SAFARI_ITERATORS = false;
1283
-
1284
- var returnThis = function () { return this; };
1285
-
1286
- // `%IteratorPrototype%` object
1287
- // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
1288
- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
1289
-
1290
- if ([].keys) {
1291
- arrayIterator = [].keys();
1292
- // Safari 8 has buggy iterators w/o `next`
1293
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1294
- else {
1295
- PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
1296
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
1297
- }
1298
- }
1299
-
1300
- if (IteratorPrototype == undefined) IteratorPrototype = {};
1301
-
1302
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1303
- if ( !has(IteratorPrototype, ITERATOR)) {
1304
- createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
1305
- }
1306
-
1307
- var iteratorsCore = {
1308
- IteratorPrototype: IteratorPrototype,
1309
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1310
- };
1311
-
1312
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1313
-
1314
- var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
1315
- var TO_STRING_TAG = NAME + ' Iterator';
1316
- IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
1317
- setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
1318
- return IteratorConstructor;
1319
- };
1320
-
1321
- var aPossiblePrototype = function (it) {
1322
- if (!isObject(it) && it !== null) {
1323
- throw TypeError("Can't set " + String(it) + ' as a prototype');
1324
- } return it;
932
+ var arrayMethodIsStrict = function (METHOD_NAME, argument) {
933
+ var method = [][METHOD_NAME];
934
+ return !!method && fails(function () {
935
+ // eslint-disable-next-line no-useless-call,no-throw-literal
936
+ method.call(null, argument || function () { throw 1; }, 1);
937
+ });
1325
938
  };
1326
939
 
1327
- // `Object.setPrototypeOf` method
1328
- // https://tc39.github.io/ecma262/#sec-object.setprototypeof
1329
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1330
- /* eslint-disable no-proto */
1331
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1332
- var CORRECT_SETTER = false;
1333
- var test = {};
1334
- var setter;
1335
- try {
1336
- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
1337
- setter.call(test, []);
1338
- CORRECT_SETTER = test instanceof Array;
1339
- } catch (error) { /* empty */ }
1340
- return function setPrototypeOf(O, proto) {
1341
- anObject(O);
1342
- aPossiblePrototype(proto);
1343
- if (CORRECT_SETTER) setter.call(O, proto);
1344
- else O.__proto__ = proto;
1345
- return O;
1346
- };
1347
- }() : undefined);
1348
-
1349
- var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
1350
- var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
1351
- var ITERATOR$1 = wellKnownSymbol('iterator');
1352
- var KEYS = 'keys';
1353
- var VALUES = 'values';
1354
- var ENTRIES = 'entries';
1355
-
1356
- var returnThis$1 = function () { return this; };
1357
-
1358
- var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1359
- createIteratorConstructor(IteratorConstructor, NAME, next);
1360
-
1361
- var getIterationMethod = function (KIND) {
1362
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1363
- if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
1364
- switch (KIND) {
1365
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1366
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1367
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1368
- } return function () { return new IteratorConstructor(this); };
1369
- };
1370
-
1371
- var TO_STRING_TAG = NAME + ' Iterator';
1372
- var INCORRECT_VALUES_NAME = false;
1373
- var IterablePrototype = Iterable.prototype;
1374
- var nativeIterator = IterablePrototype[ITERATOR$1]
1375
- || IterablePrototype['@@iterator']
1376
- || DEFAULT && IterablePrototype[DEFAULT];
1377
- var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
1378
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1379
- var CurrentIteratorPrototype, methods, KEY;
1380
-
1381
- // fix native
1382
- if (anyNativeIterator) {
1383
- CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
1384
- if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
1385
- if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1386
- if (objectSetPrototypeOf) {
1387
- objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1388
- } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
1389
- createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1390
- }
1391
- }
1392
- // Set @@toStringTag to native iterators
1393
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1394
- }
1395
- }
1396
-
1397
- // fix Array#{values, @@iterator}.name in V8 / FF
1398
- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1399
- INCORRECT_VALUES_NAME = true;
1400
- defaultIterator = function values() { return nativeIterator.call(this); };
1401
- }
940
+ var $forEach = arrayIteration.forEach;
1402
941
 
1403
- // define iterator
1404
- if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1405
- createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
1406
- }
1407
942
 
1408
- // export additional methods
1409
- if (DEFAULT) {
1410
- methods = {
1411
- values: getIterationMethod(VALUES),
1412
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1413
- entries: getIterationMethod(ENTRIES)
1414
- };
1415
- if (FORCED) for (KEY in methods) {
1416
- if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1417
- redefine(IterablePrototype, KEY, methods[KEY]);
1418
- }
1419
- } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
1420
- }
1421
943
 
1422
- return methods;
1423
- };
1424
-
1425
- var ARRAY_ITERATOR = 'Array Iterator';
1426
- var setInternalState$1 = internalState.set;
1427
- var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
1428
-
1429
- // `Array.prototype.entries` method
1430
- // https://tc39.github.io/ecma262/#sec-array.prototype.entries
1431
- // `Array.prototype.keys` method
1432
- // https://tc39.github.io/ecma262/#sec-array.prototype.keys
1433
- // `Array.prototype.values` method
1434
- // https://tc39.github.io/ecma262/#sec-array.prototype.values
1435
- // `Array.prototype[@@iterator]` method
1436
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
1437
- // `CreateArrayIterator` internal method
1438
- // https://tc39.github.io/ecma262/#sec-createarrayiterator
1439
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1440
- setInternalState$1(this, {
1441
- type: ARRAY_ITERATOR,
1442
- target: toIndexedObject(iterated), // target
1443
- index: 0, // next index
1444
- kind: kind // kind
1445
- });
1446
- // `%ArrayIteratorPrototype%.next` method
1447
- // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
1448
- }, function () {
1449
- var state = getInternalState$1(this);
1450
- var target = state.target;
1451
- var kind = state.kind;
1452
- var index = state.index++;
1453
- if (!target || index >= target.length) {
1454
- state.target = undefined;
1455
- return { value: undefined, done: true };
1456
- }
1457
- if (kind == 'keys') return { value: index, done: false };
1458
- if (kind == 'values') return { value: target[index], done: false };
1459
- return { value: [index, target[index]], done: false };
1460
- }, 'values');
944
+ var STRICT_METHOD = arrayMethodIsStrict('forEach');
945
+ var USES_TO_LENGTH$1 = arrayMethodUsesToLength('forEach');
1461
946
 
1462
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1463
- addToUnscopables('keys');
1464
- addToUnscopables('values');
1465
- addToUnscopables('entries');
947
+ // `Array.prototype.forEach` method implementation
948
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
949
+ var arrayForEach = (!STRICT_METHOD || !USES_TO_LENGTH$1) ? function forEach(callbackfn /* , thisArg */) {
950
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
951
+ } : [].forEach;
1466
952
 
1467
- var sloppyArrayMethod = function (METHOD_NAME, argument) {
1468
- var method = [][METHOD_NAME];
1469
- return !method || !fails(function () {
1470
- // eslint-disable-next-line no-useless-call,no-throw-literal
1471
- method.call(null, argument || function () { throw 1; }, 1);
1472
- });
1473
- };
953
+ // `Array.prototype.forEach` method
954
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
955
+ _export({ target: 'Array', proto: true, forced: [].forEach != arrayForEach }, {
956
+ forEach: arrayForEach
957
+ });
1474
958
 
1475
959
  var nativeJoin = [].join;
1476
960
 
1477
961
  var ES3_STRINGS = indexedObject != Object;
1478
- var SLOPPY_METHOD = sloppyArrayMethod('join', ',');
962
+ var STRICT_METHOD$1 = arrayMethodIsStrict('join', ',');
1479
963
 
1480
964
  // `Array.prototype.join` method
1481
965
  // https://tc39.github.io/ecma262/#sec-array.prototype.join
1482
- _export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD }, {
966
+ _export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
1483
967
  join: function join(separator) {
1484
968
  return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
1485
969
  }
@@ -1491,19 +975,20 @@
1491
975
 
1492
976
  var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
1493
977
  // FF49- issue
1494
- var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
1495
- [].map.call({ length: -1, 0: 1 }, function (it) { throw it; });
1496
- });
978
+ var USES_TO_LENGTH$2 = arrayMethodUsesToLength('map');
1497
979
 
1498
980
  // `Array.prototype.map` method
1499
981
  // https://tc39.github.io/ecma262/#sec-array.prototype.map
1500
982
  // with adding support of @@species
1501
- _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
983
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH$2 }, {
1502
984
  map: function map(callbackfn /* , thisArg */) {
1503
985
  return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1504
986
  }
1505
987
  });
1506
988
 
989
+ var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('slice');
990
+ var USES_TO_LENGTH$3 = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });
991
+
1507
992
  var SPECIES$2 = wellKnownSymbol('species');
1508
993
  var nativeSlice = [].slice;
1509
994
  var max$1 = Math.max;
@@ -1511,7 +996,7 @@
1511
996
  // `Array.prototype.slice` method
1512
997
  // https://tc39.github.io/ecma262/#sec-array.prototype.slice
1513
998
  // fallback for not array-like ES3 strings and DOM objects
1514
- _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {
999
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 || !USES_TO_LENGTH$3 }, {
1515
1000
  slice: function slice(start, end) {
1516
1001
  var O = toIndexedObject(this);
1517
1002
  var length = toLength(O.length);
@@ -1539,47 +1024,55 @@
1539
1024
  }
1540
1025
  });
1541
1026
 
1542
- var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1543
- var test = {};
1544
-
1545
- test[TO_STRING_TAG$1] = 'z';
1546
-
1547
- var toStringTagSupport = String(test) === '[object z]';
1548
-
1549
- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1550
- // ES3 wrong here
1551
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1552
-
1553
- // fallback for IE11 Script Access Denied error
1554
- var tryGet = function (it, key) {
1555
- try {
1556
- return it[key];
1557
- } catch (error) { /* empty */ }
1558
- };
1559
-
1560
- // getting tag from ES6+ `Object.prototype.toString`
1561
- var classof = toStringTagSupport ? classofRaw : function (it) {
1562
- var O, tag, result;
1563
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1564
- // @@toStringTag case
1565
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
1566
- // builtinTag case
1567
- : CORRECT_ARGUMENTS ? classofRaw(O)
1568
- // ES3 arguments fallback
1569
- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1570
- };
1571
-
1572
- // `Object.prototype.toString` method implementation
1573
- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1574
- var objectToString = toStringTagSupport ? {}.toString : function toString() {
1575
- return '[object ' + classof(this) + ']';
1576
- };
1027
+ var nativeAssign = Object.assign;
1028
+ var defineProperty$1 = Object.defineProperty;
1029
+
1030
+ // `Object.assign` method
1031
+ // https://tc39.github.io/ecma262/#sec-object.assign
1032
+ var objectAssign = !nativeAssign || fails(function () {
1033
+ // should have correct order of operations (Edge bug)
1034
+ if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$1({}, 'a', {
1035
+ enumerable: true,
1036
+ get: function () {
1037
+ defineProperty$1(this, 'b', {
1038
+ value: 3,
1039
+ enumerable: false
1040
+ });
1041
+ }
1042
+ }), { b: 2 })).b !== 1) return true;
1043
+ // should work with symbols and should have deterministic property order (V8 bug)
1044
+ var A = {};
1045
+ var B = {};
1046
+ // eslint-disable-next-line no-undef
1047
+ var symbol = Symbol();
1048
+ var alphabet = 'abcdefghijklmnopqrst';
1049
+ A[symbol] = 7;
1050
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1051
+ return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
1052
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
1053
+ var T = toObject(target);
1054
+ var argumentsLength = arguments.length;
1055
+ var index = 1;
1056
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
1057
+ var propertyIsEnumerable = objectPropertyIsEnumerable.f;
1058
+ while (argumentsLength > index) {
1059
+ var S = indexedObject(arguments[index++]);
1060
+ var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
1061
+ var length = keys.length;
1062
+ var j = 0;
1063
+ var key;
1064
+ while (length > j) {
1065
+ key = keys[j++];
1066
+ if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
1067
+ }
1068
+ } return T;
1069
+ } : nativeAssign;
1577
1070
 
1578
- // `Object.prototype.toString` method
1579
- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1580
- if (!toStringTagSupport) {
1581
- redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1582
- }
1071
+ // `Object.assign` method
1072
+ // https://tc39.github.io/ecma262/#sec-object.assign
1073
+ _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
1074
+ assign: objectAssign
1075
+ });
1583
1076
 
1584
1077
  // `RegExp.prototype.flags` getter implementation
1585
1078
  // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
@@ -1708,59 +1201,13 @@
1708
1201
  exec: regexpExec
1709
1202
  });
1710
1203
 
1711
- // `String.prototype.{ codePointAt, at }` methods implementation
1712
- var createMethod$2 = function (CONVERT_TO_STRING) {
1713
- return function ($this, pos) {
1714
- var S = String(requireObjectCoercible($this));
1715
- var position = toInteger(pos);
1716
- var size = S.length;
1717
- var first, second;
1718
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1719
- first = S.charCodeAt(position);
1720
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
1721
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1722
- ? CONVERT_TO_STRING ? S.charAt(position) : first
1723
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1724
- };
1725
- };
1204
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1726
1205
 
1727
- var stringMultibyte = {
1728
- // `String.prototype.codePointAt` method
1729
- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
1730
- codeAt: createMethod$2(false),
1731
- // `String.prototype.at` method
1732
- // https://github.com/mathiasbynens/String.prototype.at
1733
- charAt: createMethod$2(true)
1734
- };
1735
1206
 
1736
- var charAt = stringMultibyte.charAt;
1737
1207
 
1738
1208
 
1739
1209
 
1740
- var STRING_ITERATOR = 'String Iterator';
1741
- var setInternalState$2 = internalState.set;
1742
- var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
1743
1210
 
1744
- // `String.prototype[@@iterator]` method
1745
- // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
1746
- defineIterator(String, 'String', function (iterated) {
1747
- setInternalState$2(this, {
1748
- type: STRING_ITERATOR,
1749
- string: String(iterated),
1750
- index: 0
1751
- });
1752
- // `%StringIteratorPrototype%.next` method
1753
- // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
1754
- }, function next() {
1755
- var state = getInternalState$2(this);
1756
- var string = state.string;
1757
- var index = state.index;
1758
- var point;
1759
- if (index >= string.length) return { value: undefined, done: true };
1760
- point = charAt(string, index);
1761
- state.index += point.length;
1762
- return { value: point, done: false };
1763
- });
1764
1211
 
1765
1212
  var SPECIES$3 = wellKnownSymbol('species');
1766
1213
 
@@ -1783,6 +1230,15 @@
1783
1230
  return 'a'.replace(/./, '$0') === '$0';
1784
1231
  })();
1785
1232
 
1233
+ var REPLACE = wellKnownSymbol('replace');
1234
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1235
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1236
+ if (/./[REPLACE]) {
1237
+ return /./[REPLACE]('a', '$0') === '';
1238
+ }
1239
+ return false;
1240
+ })();
1241
+
1786
1242
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1787
1243
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1788
1244
  var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
@@ -1830,7 +1286,11 @@
1830
1286
  if (
1831
1287
  !DELEGATES_TO_SYMBOL ||
1832
1288
  !DELEGATES_TO_EXEC ||
1833
- (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
1289
+ (KEY === 'replace' && !(
1290
+ REPLACE_SUPPORTS_NAMED_GROUPS &&
1291
+ REPLACE_KEEPS_$0 &&
1292
+ !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1293
+ )) ||
1834
1294
  (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1835
1295
  ) {
1836
1296
  var nativeRegExpMethod = /./[SYMBOL];
@@ -1845,7 +1305,10 @@
1845
1305
  return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1846
1306
  }
1847
1307
  return { done: false };
1848
- }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
1308
+ }, {
1309
+ REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
1310
+ REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1311
+ });
1849
1312
  var stringMethod = methods[0];
1850
1313
  var regexMethod = methods[1];
1851
1314
 
@@ -1863,12 +1326,37 @@
1863
1326
  if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1864
1327
  };
1865
1328
 
1866
- var charAt$1 = stringMultibyte.charAt;
1329
+ // `String.prototype.{ codePointAt, at }` methods implementation
1330
+ var createMethod$2 = function (CONVERT_TO_STRING) {
1331
+ return function ($this, pos) {
1332
+ var S = String(requireObjectCoercible($this));
1333
+ var position = toInteger(pos);
1334
+ var size = S.length;
1335
+ var first, second;
1336
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1337
+ first = S.charCodeAt(position);
1338
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
1339
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1340
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
1341
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1342
+ };
1343
+ };
1344
+
1345
+ var stringMultibyte = {
1346
+ // `String.prototype.codePointAt` method
1347
+ // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
1348
+ codeAt: createMethod$2(false),
1349
+ // `String.prototype.at` method
1350
+ // https://github.com/mathiasbynens/String.prototype.at
1351
+ charAt: createMethod$2(true)
1352
+ };
1353
+
1354
+ var charAt = stringMultibyte.charAt;
1867
1355
 
1868
1356
  // `AdvanceStringIndex` abstract operation
1869
1357
  // https://tc39.github.io/ecma262/#sec-advancestringindex
1870
1358
  var advanceStringIndex = function (S, index, unicode) {
1871
- return index + (unicode ? charAt$1(S, index).length : 1);
1359
+ return index + (unicode ? charAt(S, index).length : 1);
1872
1360
  };
1873
1361
 
1874
1362
  // `RegExpExec` abstract operation
@@ -1902,6 +1390,10 @@
1902
1390
 
1903
1391
  // @@replace logic
1904
1392
  fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1393
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1394
+ var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1395
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1396
+
1905
1397
  return [
1906
1398
  // `String.prototype.replace` method
1907
1399
  // https://tc39.github.io/ecma262/#sec-string.prototype.replace
@@ -1915,7 +1407,10 @@
1915
1407
  // `RegExp.prototype[@@replace]` method
1916
1408
  // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1917
1409
  function (regexp, replaceValue) {
1918
- if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
1410
+ if (
1411
+ (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1412
+ (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1413
+ ) {
1919
1414
  var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1920
1415
  if (res.done) return res.value;
1921
1416
  }
@@ -2187,15 +1682,6 @@
2187
1682
  TouchList: 0
2188
1683
  };
2189
1684
 
2190
- var $forEach$1 = arrayIteration.forEach;
2191
-
2192
-
2193
- // `Array.prototype.forEach` method implementation
2194
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
2195
- var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
2196
- return $forEach$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2197
- } : [].forEach;
2198
-
2199
1685
  for (var COLLECTION_NAME in domIterables) {
2200
1686
  var Collection = global_1[COLLECTION_NAME];
2201
1687
  var CollectionPrototype = Collection && Collection.prototype;
@@ -2207,34 +1693,6 @@
2207
1693
  }
2208
1694
  }
2209
1695
 
2210
- var ITERATOR$2 = wellKnownSymbol('iterator');
2211
- var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
2212
- var ArrayValues = es_array_iterator.values;
2213
-
2214
- for (var COLLECTION_NAME$1 in domIterables) {
2215
- var Collection$1 = global_1[COLLECTION_NAME$1];
2216
- var CollectionPrototype$1 = Collection$1 && Collection$1.prototype;
2217
- if (CollectionPrototype$1) {
2218
- // some Chrome versions have non-configurable methods on DOMTokenList
2219
- if (CollectionPrototype$1[ITERATOR$2] !== ArrayValues) try {
2220
- createNonEnumerableProperty(CollectionPrototype$1, ITERATOR$2, ArrayValues);
2221
- } catch (error) {
2222
- CollectionPrototype$1[ITERATOR$2] = ArrayValues;
2223
- }
2224
- if (!CollectionPrototype$1[TO_STRING_TAG$3]) {
2225
- createNonEnumerableProperty(CollectionPrototype$1, TO_STRING_TAG$3, COLLECTION_NAME$1);
2226
- }
2227
- if (domIterables[COLLECTION_NAME$1]) for (var METHOD_NAME in es_array_iterator) {
2228
- // some Chrome versions have non-configurable methods on DOMTokenList
2229
- if (CollectionPrototype$1[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
2230
- createNonEnumerableProperty(CollectionPrototype$1, METHOD_NAME, es_array_iterator[METHOD_NAME]);
2231
- } catch (error) {
2232
- CollectionPrototype$1[METHOD_NAME] = es_array_iterator[METHOD_NAME];
2233
- }
2234
- }
2235
- }
2236
- }
2237
-
2238
1696
  function _classCallCheck(instance, Constructor) {
2239
1697
  if (!(instance instanceof Constructor)) {
2240
1698
  throw new TypeError("Cannot call a class as a function");
@@ -2303,6 +1761,19 @@
2303
1761
  return _setPrototypeOf(o, p);
2304
1762
  }
2305
1763
 
1764
+ function _isNativeReflectConstruct() {
1765
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1766
+ if (Reflect.construct.sham) return false;
1767
+ if (typeof Proxy === "function") return true;
1768
+
1769
+ try {
1770
+ Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
1771
+ return true;
1772
+ } catch (e) {
1773
+ return false;
1774
+ }
1775
+ }
1776
+
2306
1777
  function _assertThisInitialized(self) {
2307
1778
  if (self === void 0) {
2308
1779
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -2319,6 +1790,25 @@
2319
1790
  return _assertThisInitialized(self);
2320
1791
  }
2321
1792
 
1793
+ function _createSuper(Derived) {
1794
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
1795
+
1796
+ return function _createSuperInternal() {
1797
+ var Super = _getPrototypeOf(Derived),
1798
+ result;
1799
+
1800
+ if (hasNativeReflectConstruct) {
1801
+ var NewTarget = _getPrototypeOf(this).constructor;
1802
+
1803
+ result = Reflect.construct(Super, arguments, NewTarget);
1804
+ } else {
1805
+ result = Super.apply(this, arguments);
1806
+ }
1807
+
1808
+ return _possibleConstructorReturn(this, result);
1809
+ };
1810
+ }
1811
+
2322
1812
  function _superPropBase(object, property) {
2323
1813
  while (!Object.prototype.hasOwnProperty.call(object, property)) {
2324
1814
  object = _getPrototypeOf(object);
@@ -2349,12 +1839,86 @@
2349
1839
  return _get(target, property, receiver || target);
2350
1840
  }
2351
1841
 
1842
+ function _unsupportedIterableToArray(o, minLen) {
1843
+ if (!o) return;
1844
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1845
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1846
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1847
+ if (n === "Map" || n === "Set") return Array.from(o);
1848
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1849
+ }
1850
+
1851
+ function _arrayLikeToArray(arr, len) {
1852
+ if (len == null || len > arr.length) len = arr.length;
1853
+
1854
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1855
+
1856
+ return arr2;
1857
+ }
1858
+
1859
+ function _createForOfIteratorHelper(o, allowArrayLike) {
1860
+ var it;
1861
+
1862
+ if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
1863
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
1864
+ if (it) o = it;
1865
+ var i = 0;
1866
+
1867
+ var F = function () {};
1868
+
1869
+ return {
1870
+ s: F,
1871
+ n: function () {
1872
+ if (i >= o.length) return {
1873
+ done: true
1874
+ };
1875
+ return {
1876
+ done: false,
1877
+ value: o[i++]
1878
+ };
1879
+ },
1880
+ e: function (e) {
1881
+ throw e;
1882
+ },
1883
+ f: F
1884
+ };
1885
+ }
1886
+
1887
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1888
+ }
1889
+
1890
+ var normalCompletion = true,
1891
+ didErr = false,
1892
+ err;
1893
+ return {
1894
+ s: function () {
1895
+ it = o[Symbol.iterator]();
1896
+ },
1897
+ n: function () {
1898
+ var step = it.next();
1899
+ normalCompletion = step.done;
1900
+ return step;
1901
+ },
1902
+ e: function (e) {
1903
+ didErr = true;
1904
+ err = e;
1905
+ },
1906
+ f: function () {
1907
+ try {
1908
+ if (!normalCompletion && it.return != null) it.return();
1909
+ } finally {
1910
+ if (didErr) throw err;
1911
+ }
1912
+ }
1913
+ };
1914
+ }
1915
+
2352
1916
  /**
2353
1917
  * @author zhixin wen <wenzhixin2010@gmail.com>
2354
1918
  * extensions: https://github.com/hhurz/tableExport.jquery.plugin
2355
1919
  */
2356
1920
 
2357
- var Utils = $.fn.bootstrapTable.utils;
1921
+ var Utils = $__default['default'].fn.bootstrapTable.utils;
2358
1922
  var TYPE_NAME = {
2359
1923
  json: 'JSON',
2360
1924
  xml: 'XML',
@@ -2368,7 +1932,7 @@
2368
1932
  powerpoint: 'MS-Powerpoint',
2369
1933
  pdf: 'PDF'
2370
1934
  };
2371
- $.extend($.fn.bootstrapTable.defaults, {
1935
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
2372
1936
  showExport: false,
2373
1937
  exportDataType: 'basic',
2374
1938
  // basic, all, selected
@@ -2384,42 +1948,43 @@
2384
1948
  },
2385
1949
  exportFooter: false
2386
1950
  });
2387
- $.extend($.fn.bootstrapTable.columnDefaults, {
1951
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.columnDefaults, {
2388
1952
  forceExport: false,
2389
1953
  forceHide: false
2390
1954
  });
2391
- $.extend($.fn.bootstrapTable.defaults.icons, {
1955
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults.icons, {
2392
1956
  export: {
2393
1957
  bootstrap3: 'glyphicon-export icon-share',
2394
1958
  materialize: 'file_download',
2395
1959
  'bootstrap-table': 'icon-download'
2396
- }[$.fn.bootstrapTable.theme] || 'fa-download'
1960
+ }[$__default['default'].fn.bootstrapTable.theme] || 'fa-download'
2397
1961
  });
2398
- $.extend($.fn.bootstrapTable.locales, {
1962
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.locales, {
2399
1963
  formatExport: function formatExport() {
2400
1964
  return 'Export data';
2401
1965
  }
2402
1966
  });
2403
- $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales);
2404
- $.fn.bootstrapTable.methods.push('exportTable');
2405
- $.extend($.fn.bootstrapTable.defaults, {
1967
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, $__default['default'].fn.bootstrapTable.locales);
1968
+ $__default['default'].fn.bootstrapTable.methods.push('exportTable');
1969
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
1970
+ // eslint-disable-next-line no-unused-vars
2406
1971
  onExportSaved: function onExportSaved(exportedRows) {
2407
1972
  return false;
2408
1973
  }
2409
1974
  });
2410
- $.extend($.fn.bootstrapTable.Constructor.EVENTS, {
1975
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.Constructor.EVENTS, {
2411
1976
  'export-saved.bs.table': 'onExportSaved'
2412
1977
  });
2413
1978
 
2414
- $.BootstrapTable =
2415
- /*#__PURE__*/
2416
- function (_$$BootstrapTable) {
1979
+ $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2417
1980
  _inherits(_class, _$$BootstrapTable);
2418
1981
 
1982
+ var _super = _createSuper(_class);
1983
+
2419
1984
  function _class() {
2420
1985
  _classCallCheck(this, _class);
2421
1986
 
2422
- return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));
1987
+ return _super.apply(this, arguments);
2423
1988
  }
2424
1989
 
2425
1990
  _createClass(_class, [{
@@ -2429,37 +1994,44 @@
2429
1994
  _this = this;
2430
1995
 
2431
1996
  var o = this.options;
1997
+ var exportTypes = o.exportTypes;
2432
1998
  this.showToolbar = this.showToolbar || o.showExport;
2433
1999
 
2000
+ if (this.options.showExport) {
2001
+ if (typeof exportTypes === 'string') {
2002
+ var types = exportTypes.slice(1, -1).replace(/ /g, '').split(',');
2003
+ exportTypes = types.map(function (t) {
2004
+ return t.slice(1, -1);
2005
+ });
2006
+ }
2007
+
2008
+ this.$export = this.$toolbar.find('>.columns div.export');
2009
+
2010
+ if (this.$export.length) {
2011
+ this.updateExportButton();
2012
+ return;
2013
+ }
2014
+
2015
+ this.buttons = Object.assign(this.buttons, {
2016
+ export: {
2017
+ html: exportTypes.length === 1 ? "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(this.constants.buttonsClass, "\"\n aria-label=\"Export\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ") : "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"Export\"\n ").concat(this.constants.dataToggle, "=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(this.constants.html.dropdownCaret, "\n </button>\n </div>\n ")
2018
+ }
2019
+ });
2020
+ }
2021
+
2434
2022
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2435
2023
  args[_key] = arguments[_key];
2436
2024
  }
2437
2025
 
2438
2026
  (_get2 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get2, [this].concat(args));
2439
2027
 
2440
- if (!this.options.showExport) {
2441
- return;
2442
- }
2443
-
2444
- var $btnGroup = this.$toolbar.find('>.columns');
2445
- this.$export = $btnGroup.find('div.export');
2028
+ this.$export = this.$toolbar.find('>.columns div.export');
2446
2029
 
2447
- if (this.$export.length) {
2448
- this.updateExportButton();
2030
+ if (!this.options.showExport) {
2449
2031
  return;
2450
2032
  }
2451
2033
 
2452
- var $menu = $(this.constants.html.toolbarDropdown.join(''));
2453
- var exportTypes = o.exportTypes;
2454
-
2455
- if (typeof exportTypes === 'string') {
2456
- var types = exportTypes.slice(1, -1).replace(/ /g, '').split(',');
2457
- exportTypes = types.map(function (t) {
2458
- return t.slice(1, -1);
2459
- });
2460
- }
2461
-
2462
- this.$export = $(exportTypes.length === 1 ? "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(this.constants.buttonsClass, "\"\n aria-label=\"Export\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ") : "\n <div class=\"export ".concat(this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"Export\"\n data-toggle=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(this.constants.html.dropdownCaret, "\n </button>\n </div>\n ")).appendTo($btnGroup);
2034
+ var $menu = $__default['default'](this.constants.html.toolbarDropdown.join(''));
2463
2035
  var $items = this.$export;
2464
2036
 
2465
2037
  if (exportTypes.length > 1) {
@@ -2469,33 +2041,23 @@
2469
2041
  $menu = $menu.children().eq(0);
2470
2042
  }
2471
2043
 
2472
- var _iteratorNormalCompletion = true;
2473
- var _didIteratorError = false;
2474
- var _iteratorError = undefined;
2044
+ var _iterator = _createForOfIteratorHelper(exportTypes),
2045
+ _step;
2475
2046
 
2476
2047
  try {
2477
- for (var _iterator = exportTypes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
2048
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2478
2049
  var type = _step.value;
2479
2050
 
2480
2051
  if (TYPE_NAME.hasOwnProperty(type)) {
2481
- var $item = $(Utils.sprintf(this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));
2052
+ var $item = $__default['default'](Utils.sprintf(this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));
2482
2053
  $item.attr('data-type', type);
2483
2054
  $menu.append($item);
2484
2055
  }
2485
2056
  }
2486
2057
  } catch (err) {
2487
- _didIteratorError = true;
2488
- _iteratorError = err;
2058
+ _iterator.e(err);
2489
2059
  } finally {
2490
- try {
2491
- if (!_iteratorNormalCompletion && _iterator.return != null) {
2492
- _iterator.return();
2493
- }
2494
- } finally {
2495
- if (_didIteratorError) {
2496
- throw _iteratorError;
2497
- }
2498
- }
2060
+ _iterator.f();
2499
2061
  }
2500
2062
 
2501
2063
  $items = $menu.children();
@@ -2504,7 +2066,7 @@
2504
2066
  this.updateExportButton();
2505
2067
  $items.click(function (e) {
2506
2068
  e.preventDefault();
2507
- var type = $(e.currentTarget).data('type');
2069
+ var type = $__default['default'](e.currentTarget).data('type');
2508
2070
  var exportOptions = {
2509
2071
  type: type,
2510
2072
  escape: false
@@ -2521,12 +2083,6 @@
2521
2083
  return;
2522
2084
  }
2523
2085
 
2524
- if ($.fn.bootstrapTable.theme === 'foundation') {
2525
- this.$export.find('.dropdown-pane').attr('id', 'toolbar-export-id');
2526
- } else if ($.fn.bootstrapTable.theme === 'materialize') {
2527
- this.$export.find('.dropdown-content').attr('id', 'toolbar-export-id');
2528
- }
2529
-
2530
2086
  if (_get(_getPrototypeOf(_class.prototype), "handleToolbar", this)) {
2531
2087
  _get(_getPrototypeOf(_class.prototype), "handleToolbar", this).call(this);
2532
2088
  }
@@ -2557,13 +2113,18 @@
2557
2113
 
2558
2114
  var data = _this2.getData();
2559
2115
 
2116
+ if (o.detailView && o.detailViewIcon) {
2117
+ var detailViewIndex = o.detailViewAlign === 'left' ? 0 : _this2.getVisibleFields().length + Utils.getDetailViewIndexOffset(_this2.options);
2118
+ o.exportOptions.ignoreColumn = [detailViewIndex].concat(o.exportOptions.ignoreColumn || []);
2119
+ }
2120
+
2560
2121
  if (o.exportFooter) {
2561
2122
  var $footerRow = _this2.$tableFooter.find('tr').first();
2562
2123
 
2563
2124
  var footerData = {};
2564
2125
  var footerHtml = [];
2565
- $.each($footerRow.children(), function (index, footerCell) {
2566
- var footerCellHtml = $(footerCell).children('.th-inner').first().html();
2126
+ $__default['default'].each($footerRow.children(), function (index, footerCell) {
2127
+ var footerCellHtml = $__default['default'](footerCell).children('.th-inner').first().html();
2567
2128
  footerData[_this2.columns[index].field] = footerCellHtml === '&nbsp;' ? null : footerCellHtml; // grab footer cell text into cell index-based array
2568
2129
 
2569
2130
  footerHtml.push(footerCellHtml);
@@ -2573,8 +2134,8 @@
2573
2134
 
2574
2135
  var $lastTableRow = _this2.$body.children().last();
2575
2136
 
2576
- $.each($lastTableRow.children(), function (index, lastTableRowCell) {
2577
- $(lastTableRowCell).html(footerHtml[index]);
2137
+ $__default['default'].each($lastTableRow.children(), function (index, lastTableRowCell) {
2138
+ $__default['default'](lastTableRowCell).html(footerHtml[index]);
2578
2139
  });
2579
2140
  }
2580
2141
 
@@ -2590,7 +2151,7 @@
2590
2151
  options.fileName = o.exportOptions.fileName();
2591
2152
  }
2592
2153
 
2593
- _this2.$el.tableExport($.extend({
2154
+ _this2.$el.tableExport($__default['default'].extend({
2594
2155
  onAfterSaveToFile: function onAfterSaveToFile() {
2595
2156
  if (o.exportFooter) {
2596
2157
  _this2.load(data);
@@ -2625,11 +2186,13 @@
2625
2186
  var eventName = o.sidePagination === 'server' ? 'post-body.bs.table' : 'page-change.bs.table';
2626
2187
  var virtualScroll = this.options.virtualScroll;
2627
2188
  this.$el.one(eventName, function () {
2628
- doExport(function () {
2629
- _this2.options.virtualScroll = virtualScroll;
2189
+ setTimeout(function () {
2190
+ doExport(function () {
2191
+ _this2.options.virtualScroll = virtualScroll;
2630
2192
 
2631
- _this2.togglePagination();
2632
- });
2193
+ _this2.togglePagination();
2194
+ });
2195
+ }, 0);
2633
2196
  });
2634
2197
  this.options.virtualScroll = false;
2635
2198
  this.togglePagination();
@@ -2688,6 +2251,6 @@
2688
2251
  }]);
2689
2252
 
2690
2253
  return _class;
2691
- }($.BootstrapTable);
2254
+ }($__default['default'].BootstrapTable);
2692
2255
 
2693
2256
  })));