bootstrap-table-rails 1.15.5 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +143 -36
  3. data/lib/bootstrap-table-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +1012 -83
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +684 -208
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +686 -210
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +75 -12
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +1617 -763
  9. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +280 -93
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +200 -78
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1349 -258
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +216 -77
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +1198 -0
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +83 -42
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +1219 -208
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +458 -204
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +1 -1
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +1420 -901
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +2361 -0
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.css +12 -14
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +589 -423
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.css +3 -2
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +552 -487
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +3 -3
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +219 -74
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +143 -66
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +326 -462
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +137 -65
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +87 -42
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +452 -155
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +643 -255
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +348 -136
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +84 -44
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.css +0 -1
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +218 -76
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +558 -217
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +221 -115
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +98 -42
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +98 -42
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +777 -0
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +98 -42
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +98 -42
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +98 -42
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +98 -42
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +98 -42
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +98 -42
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +120 -63
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +98 -42
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +98 -42
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +98 -42
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +98 -42
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +98 -42
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +98 -42
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +98 -42
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +98 -42
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +98 -42
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +98 -42
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +98 -42
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +98 -42
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +99 -43
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +98 -42
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +98 -42
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +98 -42
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +98 -42
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +98 -42
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +113 -57
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +98 -42
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +98 -42
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +98 -42
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +98 -42
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +98 -42
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +99 -43
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +98 -42
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +98 -42
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +102 -45
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +98 -42
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +98 -42
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +98 -42
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +98 -42
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +98 -42
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +98 -42
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +98 -42
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +98 -42
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +98 -42
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +98 -42
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +98 -42
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +98 -42
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +98 -42
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +98 -42
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +98 -42
  91. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +776 -0
  92. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +1049 -0
  93. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.eot +0 -0
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.svg +28 -0
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.ttf +0 -0
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.woff +0 -0
  97. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +89 -13
  98. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +161 -63
  99. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +88 -15
  100. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +166 -65
  101. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +83 -11
  102. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +164 -66
  103. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +89 -15
  104. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +164 -66
  105. metadata +10 -5
  106. data/vendor/assets/javascripts/bootstrap-table/extensions/accent-neutralise/bootstrap-table-accent-neutralise.js +0 -1757
  107. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.css +0 -12
  108. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.js +0 -2087
  109. data/vendor/assets/javascripts/bootstrap-table/extensions/natural-sorting/bootstrap-table-natural-sorting.js +0 -1265
@@ -4,7 +4,6 @@ function createCommonjsModule(fn, module) {
4
4
  return module = { exports: {} }, fn(module, module.exports), module.exports;
5
5
  }
6
6
 
7
- var O = 'object';
8
7
  var check = function (it) {
9
8
  return it && it.Math == Math && it;
10
9
  };
@@ -12,10 +11,10 @@ var check = function (it) {
12
11
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
13
12
  var global_1 =
14
13
  // eslint-disable-next-line no-undef
15
- check(typeof globalThis == O && globalThis) ||
16
- check(typeof window == O && window) ||
17
- check(typeof self == O && self) ||
18
- check(typeof commonjsGlobal == O && commonjsGlobal) ||
14
+ check(typeof globalThis == 'object' && globalThis) ||
15
+ check(typeof window == 'object' && window) ||
16
+ check(typeof self == 'object' && self) ||
17
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
18
  // eslint-disable-next-line no-new-func
20
19
  Function('return this')();
21
20
 
@@ -113,12 +112,12 @@ var has = function (it, key) {
113
112
  return hasOwnProperty.call(it, key);
114
113
  };
115
114
 
116
- var document = global_1.document;
115
+ var document$1 = global_1.document;
117
116
  // typeof document.createElement is 'object' in old IE
118
- var EXISTS = isObject(document) && isObject(document.createElement);
117
+ var EXISTS = isObject(document$1) && isObject(document$1.createElement);
119
118
 
120
119
  var documentCreateElement = function (it) {
121
- return EXISTS ? document.createElement(it) : {};
120
+ return EXISTS ? document$1.createElement(it) : {};
122
121
  };
123
122
 
124
123
  // Thank's IE8 for his funny defineProperty
@@ -171,7 +170,7 @@ var objectDefineProperty = {
171
170
  f: f$2
172
171
  };
173
172
 
174
- var hide = descriptors ? function (object, key, value) {
173
+ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
175
174
  return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
176
175
  } : function (object, key, value) {
177
176
  object[key] = value;
@@ -180,31 +179,42 @@ var hide = descriptors ? function (object, key, value) {
180
179
 
181
180
  var setGlobal = function (key, value) {
182
181
  try {
183
- hide(global_1, key, value);
182
+ createNonEnumerableProperty(global_1, key, value);
184
183
  } catch (error) {
185
184
  global_1[key] = value;
186
185
  } return value;
187
186
  };
188
187
 
189
- var shared = createCommonjsModule(function (module) {
190
188
  var SHARED = '__core-js_shared__';
191
189
  var store = global_1[SHARED] || setGlobal(SHARED, {});
192
190
 
191
+ var sharedStore = store;
192
+
193
+ var functionToString = Function.toString;
194
+
195
+ // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
196
+ if (typeof sharedStore.inspectSource != 'function') {
197
+ sharedStore.inspectSource = function (it) {
198
+ return functionToString.call(it);
199
+ };
200
+ }
201
+
202
+ var inspectSource = sharedStore.inspectSource;
203
+
204
+ var WeakMap = global_1.WeakMap;
205
+
206
+ var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
207
+
208
+ var shared = createCommonjsModule(function (module) {
193
209
  (module.exports = function (key, value) {
194
- return store[key] || (store[key] = value !== undefined ? value : {});
210
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
195
211
  })('versions', []).push({
196
- version: '3.1.3',
212
+ version: '3.6.0',
197
213
  mode: 'global',
198
214
  copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
199
215
  });
200
216
  });
201
217
 
202
- var functionToString = shared('native-function-to-string', Function.toString);
203
-
204
- var WeakMap = global_1.WeakMap;
205
-
206
- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
207
-
208
218
  var id = 0;
209
219
  var postfix = Math.random();
210
220
 
@@ -237,25 +247,25 @@ var getterFor = function (TYPE) {
237
247
  };
238
248
 
239
249
  if (nativeWeakMap) {
240
- var store = new WeakMap$1();
241
- var wmget = store.get;
242
- var wmhas = store.has;
243
- var wmset = store.set;
250
+ var store$1 = new WeakMap$1();
251
+ var wmget = store$1.get;
252
+ var wmhas = store$1.has;
253
+ var wmset = store$1.set;
244
254
  set = function (it, metadata) {
245
- wmset.call(store, it, metadata);
255
+ wmset.call(store$1, it, metadata);
246
256
  return metadata;
247
257
  };
248
258
  get = function (it) {
249
- return wmget.call(store, it) || {};
259
+ return wmget.call(store$1, it) || {};
250
260
  };
251
261
  has$1 = function (it) {
252
- return wmhas.call(store, it);
262
+ return wmhas.call(store$1, it);
253
263
  };
254
264
  } else {
255
265
  var STATE = sharedKey('state');
256
266
  hiddenKeys[STATE] = true;
257
267
  set = function (it, metadata) {
258
- hide(it, STATE, metadata);
268
+ createNonEnumerableProperty(it, STATE, metadata);
259
269
  return metadata;
260
270
  };
261
271
  get = function (it) {
@@ -277,18 +287,14 @@ var internalState = {
277
287
  var redefine = createCommonjsModule(function (module) {
278
288
  var getInternalState = internalState.get;
279
289
  var enforceInternalState = internalState.enforce;
280
- var TEMPLATE = String(functionToString).split('toString');
281
-
282
- shared('inspectSource', function (it) {
283
- return functionToString.call(it);
284
- });
290
+ var TEMPLATE = String(String).split('String');
285
291
 
286
292
  (module.exports = function (O, key, value, options) {
287
293
  var unsafe = options ? !!options.unsafe : false;
288
294
  var simple = options ? !!options.enumerable : false;
289
295
  var noTargetGet = options ? !!options.noTargetGet : false;
290
296
  if (typeof value == 'function') {
291
- if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
297
+ if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
292
298
  enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
293
299
  }
294
300
  if (O === global_1) {
@@ -301,10 +307,10 @@ shared('inspectSource', function (it) {
301
307
  simple = true;
302
308
  }
303
309
  if (simple) O[key] = value;
304
- else hide(O, key, value);
310
+ else createNonEnumerableProperty(O, key, value);
305
311
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
306
312
  })(Function.prototype, 'toString', function toString() {
307
- return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
313
+ return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
308
314
  });
309
315
  });
310
316
 
@@ -341,7 +347,7 @@ var min$1 = Math.min;
341
347
 
342
348
  // Helper for a popular repeating case of the spec:
343
349
  // Let integer be ? ToInteger(index).
344
- // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
350
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
345
351
  var toAbsoluteIndex = function (index, length) {
346
352
  var integer = toInteger(index);
347
353
  return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
@@ -505,7 +511,7 @@ var _export = function (options, source) {
505
511
  }
506
512
  // add a flag to not completely full polyfills
507
513
  if (options.sham || (targetProperty && targetProperty.sham)) {
508
- hide(sourceProperty, 'sham', true);
514
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
509
515
  }
510
516
  // extend global
511
517
  redefine(target, key, sourceProperty, options);
@@ -518,6 +524,12 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
518
524
  return !String(Symbol());
519
525
  });
520
526
 
527
+ var useSymbolAsUid = nativeSymbol
528
+ // eslint-disable-next-line no-undef
529
+ && !Symbol.sham
530
+ // eslint-disable-next-line no-undef
531
+ && typeof Symbol() == 'symbol';
532
+
521
533
  // `IsArray` abstract operation
522
534
  // https://tc39.github.io/ecma262/#sec-isarray
523
535
  var isArray = Array.isArray || function isArray(arg) {
@@ -550,49 +562,77 @@ var objectDefineProperties = descriptors ? Object.defineProperties : function de
550
562
 
551
563
  var html = getBuiltIn('document', 'documentElement');
552
564
 
565
+ var GT = '>';
566
+ var LT = '<';
567
+ var PROTOTYPE = 'prototype';
568
+ var SCRIPT = 'script';
553
569
  var IE_PROTO = sharedKey('IE_PROTO');
554
570
 
555
- var PROTOTYPE = 'prototype';
556
- var Empty = function () { /* empty */ };
571
+ var EmptyConstructor = function () { /* empty */ };
572
+
573
+ var scriptTag = function (content) {
574
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
575
+ };
576
+
577
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
578
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
579
+ activeXDocument.write(scriptTag(''));
580
+ activeXDocument.close();
581
+ var temp = activeXDocument.parentWindow.Object;
582
+ activeXDocument = null; // avoid memory leak
583
+ return temp;
584
+ };
557
585
 
558
586
  // Create object with fake `null` prototype: use iframe Object with cleared prototype
559
- var createDict = function () {
587
+ var NullProtoObjectViaIFrame = function () {
560
588
  // Thrash, waste and sodomy: IE GC bug
561
589
  var iframe = documentCreateElement('iframe');
562
- var length = enumBugKeys.length;
563
- var lt = '<';
564
- var script = 'script';
565
- var gt = '>';
566
- var js = 'java' + script + ':';
590
+ var JS = 'java' + SCRIPT + ':';
567
591
  var iframeDocument;
568
592
  iframe.style.display = 'none';
569
593
  html.appendChild(iframe);
570
- iframe.src = String(js);
594
+ // https://github.com/zloirock/core-js/issues/475
595
+ iframe.src = String(JS);
571
596
  iframeDocument = iframe.contentWindow.document;
572
597
  iframeDocument.open();
573
- iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
598
+ iframeDocument.write(scriptTag('document.F=Object'));
574
599
  iframeDocument.close();
575
- createDict = iframeDocument.F;
576
- while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
577
- return createDict();
600
+ return iframeDocument.F;
578
601
  };
579
602
 
603
+ // Check for document.domain and active x support
604
+ // No need to use active x approach when document.domain is not set
605
+ // see https://github.com/es-shims/es5-shim/issues/150
606
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
607
+ // avoid IE GC bug
608
+ var activeXDocument;
609
+ var NullProtoObject = function () {
610
+ try {
611
+ /* global ActiveXObject */
612
+ activeXDocument = document.domain && new ActiveXObject('htmlfile');
613
+ } catch (error) { /* ignore */ }
614
+ NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
615
+ var length = enumBugKeys.length;
616
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
617
+ return NullProtoObject();
618
+ };
619
+
620
+ hiddenKeys[IE_PROTO] = true;
621
+
580
622
  // `Object.create` method
581
623
  // https://tc39.github.io/ecma262/#sec-object.create
582
624
  var objectCreate = Object.create || function create(O, Properties) {
583
625
  var result;
584
626
  if (O !== null) {
585
- Empty[PROTOTYPE] = anObject(O);
586
- result = new Empty();
587
- Empty[PROTOTYPE] = null;
627
+ EmptyConstructor[PROTOTYPE] = anObject(O);
628
+ result = new EmptyConstructor();
629
+ EmptyConstructor[PROTOTYPE] = null;
588
630
  // add "__proto__" for Object.getPrototypeOf polyfill
589
631
  result[IE_PROTO] = O;
590
- } else result = createDict();
632
+ } else result = NullProtoObject();
591
633
  return Properties === undefined ? result : objectDefineProperties(result, Properties);
592
634
  };
593
635
 
594
- hiddenKeys[IE_PROTO] = true;
595
-
596
636
  var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
597
637
 
598
638
  var toString$1 = {}.toString;
@@ -619,12 +659,15 @@ var objectGetOwnPropertyNamesExternal = {
619
659
  f: f$5
620
660
  };
621
661
 
662
+ var WellKnownSymbolsStore = shared('wks');
622
663
  var Symbol$1 = global_1.Symbol;
623
- var store$1 = shared('wks');
664
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
624
665
 
625
666
  var wellKnownSymbol = function (name) {
626
- return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
627
- || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
667
+ if (!has(WellKnownSymbolsStore, name)) {
668
+ if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
669
+ else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
670
+ } return WellKnownSymbolsStore[name];
628
671
  };
629
672
 
630
673
  var f$6 = wellKnownSymbol;
@@ -770,8 +813,7 @@ var setInternalState = internalState.set;
770
813
  var getInternalState = internalState.getterFor(SYMBOL);
771
814
  var ObjectPrototype = Object[PROTOTYPE$1];
772
815
  var $Symbol = global_1.Symbol;
773
- var JSON = global_1.JSON;
774
- var nativeJSONStringify = JSON && JSON.stringify;
816
+ var $stringify = getBuiltIn('JSON', 'stringify');
775
817
  var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
776
818
  var nativeDefineProperty$1 = objectDefineProperty.f;
777
819
  var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
@@ -780,7 +822,7 @@ var AllSymbols = shared('symbols');
780
822
  var ObjectPrototypeSymbols = shared('op-symbols');
781
823
  var StringToSymbolRegistry = shared('string-to-symbol-registry');
782
824
  var SymbolToStringRegistry = shared('symbol-to-string-registry');
783
- var WellKnownSymbolsStore = shared('wks');
825
+ var WellKnownSymbolsStore$1 = shared('wks');
784
826
  var QObject = global_1.QObject;
785
827
  // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
786
828
  var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
@@ -923,7 +965,9 @@ if (!nativeSymbol) {
923
965
  redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
924
966
  }
925
967
  }
968
+ }
926
969
 
970
+ if (!useSymbolAsUid) {
927
971
  wrappedWellKnownSymbol.f = function (name) {
928
972
  return wrap(wellKnownSymbol(name), name);
929
973
  };
@@ -933,7 +977,7 @@ _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }
933
977
  Symbol: $Symbol
934
978
  });
935
979
 
936
- $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
980
+ $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
937
981
  defineWellKnownSymbol(name);
938
982
  });
939
983
 
@@ -992,34 +1036,41 @@ _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwn
992
1036
 
993
1037
  // `JSON.stringify` method behavior with symbols
994
1038
  // https://tc39.github.io/ecma262/#sec-json.stringify
995
- JSON && _export({ target: 'JSON', stat: true, forced: !nativeSymbol || fails(function () {
996
- var symbol = $Symbol();
997
- // MS Edge converts symbol values to JSON as {}
998
- return nativeJSONStringify([symbol]) != '[null]'
999
- // WebKit converts symbol values to JSON as null
1000
- || nativeJSONStringify({ a: symbol }) != '{}'
1001
- // V8 throws on boxed symbols
1002
- || nativeJSONStringify(Object(symbol)) != '{}';
1003
- }) }, {
1004
- stringify: function stringify(it) {
1005
- var args = [it];
1006
- var index = 1;
1007
- var replacer, $replacer;
1008
- while (arguments.length > index) args.push(arguments[index++]);
1009
- $replacer = replacer = args[1];
1010
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1011
- if (!isArray(replacer)) replacer = function (key, value) {
1012
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1013
- if (!isSymbol(value)) return value;
1014
- };
1015
- args[1] = replacer;
1016
- return nativeJSONStringify.apply(JSON, args);
1017
- }
1018
- });
1039
+ if ($stringify) {
1040
+ var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
1041
+ var symbol = $Symbol();
1042
+ // MS Edge converts symbol values to JSON as {}
1043
+ return $stringify([symbol]) != '[null]'
1044
+ // WebKit converts symbol values to JSON as null
1045
+ || $stringify({ a: symbol }) != '{}'
1046
+ // V8 throws on boxed symbols
1047
+ || $stringify(Object(symbol)) != '{}';
1048
+ });
1049
+
1050
+ _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1051
+ // eslint-disable-next-line no-unused-vars
1052
+ stringify: function stringify(it, replacer, space) {
1053
+ var args = [it];
1054
+ var index = 1;
1055
+ var $replacer;
1056
+ while (arguments.length > index) args.push(arguments[index++]);
1057
+ $replacer = replacer;
1058
+ if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1059
+ if (!isArray(replacer)) replacer = function (key, value) {
1060
+ if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1061
+ if (!isSymbol(value)) return value;
1062
+ };
1063
+ args[1] = replacer;
1064
+ return $stringify.apply(null, args);
1065
+ }
1066
+ });
1067
+ }
1019
1068
 
1020
1069
  // `Symbol.prototype[@@toPrimitive]` method
1021
1070
  // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1022
- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1071
+ if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
1072
+ createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1073
+ }
1023
1074
  // `Symbol.prototype[@@toStringTag]` property
1024
1075
  // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1025
1076
  setToStringTag($Symbol, SYMBOL);
@@ -1079,10 +1130,33 @@ var createProperty = function (object, key, value) {
1079
1130
  else object[propertyKey] = value;
1080
1131
  };
1081
1132
 
1133
+ var userAgent = getBuiltIn('navigator', 'userAgent') || '';
1134
+
1135
+ var process = global_1.process;
1136
+ var versions = process && process.versions;
1137
+ var v8 = versions && versions.v8;
1138
+ var match, version;
1139
+
1140
+ if (v8) {
1141
+ match = v8.split('.');
1142
+ version = match[0] + match[1];
1143
+ } else if (userAgent) {
1144
+ match = userAgent.match(/Edge\/(\d+)/);
1145
+ if (!match || match[1] >= 74) {
1146
+ match = userAgent.match(/Chrome\/(\d+)/);
1147
+ if (match) version = match[1];
1148
+ }
1149
+ }
1150
+
1151
+ var v8Version = version && +version;
1152
+
1082
1153
  var SPECIES$1 = wellKnownSymbol('species');
1083
1154
 
1084
1155
  var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1085
- return !fails(function () {
1156
+ // We can't use this feature detection in V8 since it causes
1157
+ // deoptimization and serious performance degradation
1158
+ // https://github.com/zloirock/core-js/issues/677
1159
+ return v8Version >= 51 || !fails(function () {
1086
1160
  var array = [];
1087
1161
  var constructor = array.constructor = {};
1088
1162
  constructor[SPECIES$1] = function () {
@@ -1096,7 +1170,10 @@ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1096
1170
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1097
1171
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1098
1172
 
1099
- var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
1173
+ // We can't use this feature detection in V8 since it causes
1174
+ // deoptimization and serious performance degradation
1175
+ // https://github.com/zloirock/core-js/issues/679
1176
+ var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
1100
1177
  var array = [];
1101
1178
  array[IS_CONCAT_SPREADABLE] = false;
1102
1179
  return array.concat()[0] !== array;
@@ -1143,7 +1220,10 @@ var ArrayPrototype = Array.prototype;
1143
1220
  // Array.prototype[@@unscopables]
1144
1221
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1145
1222
  if (ArrayPrototype[UNSCOPABLES] == undefined) {
1146
- hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
1223
+ objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
1224
+ configurable: true,
1225
+ value: objectCreate(null)
1226
+ });
1147
1227
  }
1148
1228
 
1149
1229
  // add a key to Array.prototype[@@unscopables]
@@ -1192,7 +1272,9 @@ if ([].keys) {
1192
1272
  if (IteratorPrototype == undefined) IteratorPrototype = {};
1193
1273
 
1194
1274
  // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1195
- if ( !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
1275
+ if ( !has(IteratorPrototype, ITERATOR)) {
1276
+ createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
1277
+ }
1196
1278
 
1197
1279
  var iteratorsCore = {
1198
1280
  IteratorPrototype: IteratorPrototype,
@@ -1276,7 +1358,7 @@ var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1276
1358
  if (objectSetPrototypeOf) {
1277
1359
  objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1278
1360
  } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
1279
- hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1361
+ createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1280
1362
  }
1281
1363
  }
1282
1364
  // Set @@toStringTag to native iterators
@@ -1292,7 +1374,7 @@ var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1292
1374
 
1293
1375
  // define iterator
1294
1376
  if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1295
- hide(IterablePrototype, ITERATOR$1, defaultIterator);
1377
+ createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
1296
1378
  }
1297
1379
 
1298
1380
  // export additional methods
@@ -1355,6 +1437,13 @@ addToUnscopables('values');
1355
1437
  addToUnscopables('entries');
1356
1438
 
1357
1439
  var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1440
+ var test = {};
1441
+
1442
+ test[TO_STRING_TAG$1] = 'z';
1443
+
1444
+ var toStringTagSupport = String(test) === '[object z]';
1445
+
1446
+ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1358
1447
  // ES3 wrong here
1359
1448
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1360
1449
 
@@ -1366,36 +1455,156 @@ var tryGet = function (it, key) {
1366
1455
  };
1367
1456
 
1368
1457
  // getting tag from ES6+ `Object.prototype.toString`
1369
- var classof = function (it) {
1458
+ var classof = toStringTagSupport ? classofRaw : function (it) {
1370
1459
  var O, tag, result;
1371
1460
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1372
1461
  // @@toStringTag case
1373
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1462
+ : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
1374
1463
  // builtinTag case
1375
1464
  : CORRECT_ARGUMENTS ? classofRaw(O)
1376
1465
  // ES3 arguments fallback
1377
1466
  : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1378
1467
  };
1379
1468
 
1380
- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1381
- var test = {};
1382
-
1383
- test[TO_STRING_TAG$2] = 'z';
1384
-
1385
1469
  // `Object.prototype.toString` method implementation
1386
1470
  // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1387
- var objectToString = String(test) !== '[object z]' ? function toString() {
1471
+ var objectToString = toStringTagSupport ? {}.toString : function toString() {
1388
1472
  return '[object ' + classof(this) + ']';
1389
- } : test.toString;
1390
-
1391
- var ObjectPrototype$2 = Object.prototype;
1473
+ };
1392
1474
 
1393
1475
  // `Object.prototype.toString` method
1394
1476
  // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1395
- if (objectToString !== ObjectPrototype$2.toString) {
1396
- redefine(ObjectPrototype$2, 'toString', objectToString, { unsafe: true });
1477
+ if (!toStringTagSupport) {
1478
+ redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1397
1479
  }
1398
1480
 
1481
+ // `RegExp.prototype.flags` getter implementation
1482
+ // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
1483
+ var regexpFlags = function () {
1484
+ var that = anObject(this);
1485
+ var result = '';
1486
+ if (that.global) result += 'g';
1487
+ if (that.ignoreCase) result += 'i';
1488
+ if (that.multiline) result += 'm';
1489
+ if (that.dotAll) result += 's';
1490
+ if (that.unicode) result += 'u';
1491
+ if (that.sticky) result += 'y';
1492
+ return result;
1493
+ };
1494
+
1495
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
1496
+ // so we use an intermediate function.
1497
+ function RE(s, f) {
1498
+ return RegExp(s, f);
1499
+ }
1500
+
1501
+ var UNSUPPORTED_Y = fails(function () {
1502
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1503
+ var re = RE('a', 'y');
1504
+ re.lastIndex = 2;
1505
+ return re.exec('abcd') != null;
1506
+ });
1507
+
1508
+ var BROKEN_CARET = fails(function () {
1509
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1510
+ var re = RE('^r', 'gy');
1511
+ re.lastIndex = 2;
1512
+ return re.exec('str') != null;
1513
+ });
1514
+
1515
+ var regexpStickyHelpers = {
1516
+ UNSUPPORTED_Y: UNSUPPORTED_Y,
1517
+ BROKEN_CARET: BROKEN_CARET
1518
+ };
1519
+
1520
+ var nativeExec = RegExp.prototype.exec;
1521
+ // This always refers to the native implementation, because the
1522
+ // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1523
+ // which loads this file before patching the method.
1524
+ var nativeReplace = String.prototype.replace;
1525
+
1526
+ var patchedExec = nativeExec;
1527
+
1528
+ var UPDATES_LAST_INDEX_WRONG = (function () {
1529
+ var re1 = /a/;
1530
+ var re2 = /b*/g;
1531
+ nativeExec.call(re1, 'a');
1532
+ nativeExec.call(re2, 'a');
1533
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1534
+ })();
1535
+
1536
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1537
+
1538
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1539
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1540
+
1541
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
1542
+
1543
+ if (PATCH) {
1544
+ patchedExec = function exec(str) {
1545
+ var re = this;
1546
+ var lastIndex, reCopy, match, i;
1547
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
1548
+ var flags = regexpFlags.call(re);
1549
+ var source = re.source;
1550
+ var charsAdded = 0;
1551
+ var strCopy = str;
1552
+
1553
+ if (sticky) {
1554
+ flags = flags.replace('y', '');
1555
+ if (flags.indexOf('g') === -1) {
1556
+ flags += 'g';
1557
+ }
1558
+
1559
+ strCopy = String(str).slice(re.lastIndex);
1560
+ // Support anchored sticky behavior.
1561
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
1562
+ source = '(?: ' + source + ')';
1563
+ strCopy = ' ' + strCopy;
1564
+ charsAdded++;
1565
+ }
1566
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1567
+ // simulate the 'y' flag.
1568
+ reCopy = new RegExp('^(?:' + source + ')', flags);
1569
+ }
1570
+
1571
+ if (NPCG_INCLUDED) {
1572
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1573
+ }
1574
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1575
+
1576
+ match = nativeExec.call(sticky ? reCopy : re, strCopy);
1577
+
1578
+ if (sticky) {
1579
+ if (match) {
1580
+ match.input = match.input.slice(charsAdded);
1581
+ match[0] = match[0].slice(charsAdded);
1582
+ match.index = re.lastIndex;
1583
+ re.lastIndex += match[0].length;
1584
+ } else re.lastIndex = 0;
1585
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
1586
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1587
+ }
1588
+ if (NPCG_INCLUDED && match && match.length > 1) {
1589
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
1590
+ // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1591
+ nativeReplace.call(match[0], reCopy, function () {
1592
+ for (i = 1; i < arguments.length - 2; i++) {
1593
+ if (arguments[i] === undefined) match[i] = undefined;
1594
+ }
1595
+ });
1596
+ }
1597
+
1598
+ return match;
1599
+ };
1600
+ }
1601
+
1602
+ var regexpExec = patchedExec;
1603
+
1604
+ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
1605
+ exec: regexpExec
1606
+ });
1607
+
1399
1608
  // `String.prototype.{ codePointAt, at }` methods implementation
1400
1609
  var createMethod$2 = function (CONVERT_TO_STRING) {
1401
1610
  return function ($this, pos) {
@@ -1450,6 +1659,253 @@ defineIterator(String, 'String', function (iterated) {
1450
1659
  return { value: point, done: false };
1451
1660
  });
1452
1661
 
1662
+ var SPECIES$2 = wellKnownSymbol('species');
1663
+
1664
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1665
+ // #replace needs built-in support for named groups.
1666
+ // #match works fine because it just return the exec results, even if it has
1667
+ // a "grops" property.
1668
+ var re = /./;
1669
+ re.exec = function () {
1670
+ var result = [];
1671
+ result.groups = { a: '7' };
1672
+ return result;
1673
+ };
1674
+ return ''.replace(re, '$<a>') !== '7';
1675
+ });
1676
+
1677
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
1678
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1679
+ var REPLACE_KEEPS_$0 = (function () {
1680
+ return 'a'.replace(/./, '$0') === '$0';
1681
+ })();
1682
+
1683
+ // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1684
+ // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1685
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
1686
+ var re = /(?:)/;
1687
+ var originalExec = re.exec;
1688
+ re.exec = function () { return originalExec.apply(this, arguments); };
1689
+ var result = 'ab'.split(re);
1690
+ return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
1691
+ });
1692
+
1693
+ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1694
+ var SYMBOL = wellKnownSymbol(KEY);
1695
+
1696
+ var DELEGATES_TO_SYMBOL = !fails(function () {
1697
+ // String methods call symbol-named RegEp methods
1698
+ var O = {};
1699
+ O[SYMBOL] = function () { return 7; };
1700
+ return ''[KEY](O) != 7;
1701
+ });
1702
+
1703
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
1704
+ // Symbol-named RegExp methods call .exec
1705
+ var execCalled = false;
1706
+ var re = /a/;
1707
+
1708
+ if (KEY === 'split') {
1709
+ // We can't use real regex here since it causes deoptimization
1710
+ // and serious performance degradation in V8
1711
+ // https://github.com/zloirock/core-js/issues/306
1712
+ re = {};
1713
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
1714
+ // a new one. We need to return the patched regex when creating the new one.
1715
+ re.constructor = {};
1716
+ re.constructor[SPECIES$2] = function () { return re; };
1717
+ re.flags = '';
1718
+ re[SYMBOL] = /./[SYMBOL];
1719
+ }
1720
+
1721
+ re.exec = function () { execCalled = true; return null; };
1722
+
1723
+ re[SYMBOL]('');
1724
+ return !execCalled;
1725
+ });
1726
+
1727
+ if (
1728
+ !DELEGATES_TO_SYMBOL ||
1729
+ !DELEGATES_TO_EXEC ||
1730
+ (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
1731
+ (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1732
+ ) {
1733
+ var nativeRegExpMethod = /./[SYMBOL];
1734
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1735
+ if (regexp.exec === regexpExec) {
1736
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1737
+ // The native String method already delegates to @@method (this
1738
+ // polyfilled function), leasing to infinite recursion.
1739
+ // We avoid it by directly calling the native @@method method.
1740
+ return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1741
+ }
1742
+ return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1743
+ }
1744
+ return { done: false };
1745
+ }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
1746
+ var stringMethod = methods[0];
1747
+ var regexMethod = methods[1];
1748
+
1749
+ redefine(String.prototype, KEY, stringMethod);
1750
+ redefine(RegExp.prototype, SYMBOL, length == 2
1751
+ // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1752
+ // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1753
+ ? function (string, arg) { return regexMethod.call(string, this, arg); }
1754
+ // 21.2.5.6 RegExp.prototype[@@match](string)
1755
+ // 21.2.5.9 RegExp.prototype[@@search](string)
1756
+ : function (string) { return regexMethod.call(string, this); }
1757
+ );
1758
+ }
1759
+
1760
+ if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1761
+ };
1762
+
1763
+ var charAt$1 = stringMultibyte.charAt;
1764
+
1765
+ // `AdvanceStringIndex` abstract operation
1766
+ // https://tc39.github.io/ecma262/#sec-advancestringindex
1767
+ var advanceStringIndex = function (S, index, unicode) {
1768
+ return index + (unicode ? charAt$1(S, index).length : 1);
1769
+ };
1770
+
1771
+ // `RegExpExec` abstract operation
1772
+ // https://tc39.github.io/ecma262/#sec-regexpexec
1773
+ var regexpExecAbstract = function (R, S) {
1774
+ var exec = R.exec;
1775
+ if (typeof exec === 'function') {
1776
+ var result = exec.call(R, S);
1777
+ if (typeof result !== 'object') {
1778
+ throw TypeError('RegExp exec method returned something other than an Object or null');
1779
+ }
1780
+ return result;
1781
+ }
1782
+
1783
+ if (classofRaw(R) !== 'RegExp') {
1784
+ throw TypeError('RegExp#exec called on incompatible receiver');
1785
+ }
1786
+
1787
+ return regexpExec.call(R, S);
1788
+ };
1789
+
1790
+ var max$1 = Math.max;
1791
+ var min$2 = Math.min;
1792
+ var floor$1 = Math.floor;
1793
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
1794
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
1795
+
1796
+ var maybeToString = function (it) {
1797
+ return it === undefined ? it : String(it);
1798
+ };
1799
+
1800
+ // @@replace logic
1801
+ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1802
+ return [
1803
+ // `String.prototype.replace` method
1804
+ // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1805
+ function replace(searchValue, replaceValue) {
1806
+ var O = requireObjectCoercible(this);
1807
+ var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1808
+ return replacer !== undefined
1809
+ ? replacer.call(searchValue, O, replaceValue)
1810
+ : nativeReplace.call(String(O), searchValue, replaceValue);
1811
+ },
1812
+ // `RegExp.prototype[@@replace]` method
1813
+ // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1814
+ function (regexp, replaceValue) {
1815
+ if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
1816
+ var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1817
+ if (res.done) return res.value;
1818
+ }
1819
+
1820
+ var rx = anObject(regexp);
1821
+ var S = String(this);
1822
+
1823
+ var functionalReplace = typeof replaceValue === 'function';
1824
+ if (!functionalReplace) replaceValue = String(replaceValue);
1825
+
1826
+ var global = rx.global;
1827
+ if (global) {
1828
+ var fullUnicode = rx.unicode;
1829
+ rx.lastIndex = 0;
1830
+ }
1831
+ var results = [];
1832
+ while (true) {
1833
+ var result = regexpExecAbstract(rx, S);
1834
+ if (result === null) break;
1835
+
1836
+ results.push(result);
1837
+ if (!global) break;
1838
+
1839
+ var matchStr = String(result[0]);
1840
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1841
+ }
1842
+
1843
+ var accumulatedResult = '';
1844
+ var nextSourcePosition = 0;
1845
+ for (var i = 0; i < results.length; i++) {
1846
+ result = results[i];
1847
+
1848
+ var matched = String(result[0]);
1849
+ var position = max$1(min$2(toInteger(result.index), S.length), 0);
1850
+ var captures = [];
1851
+ // NOTE: This is equivalent to
1852
+ // captures = result.slice(1).map(maybeToString)
1853
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1854
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1855
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1856
+ for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1857
+ var namedCaptures = result.groups;
1858
+ if (functionalReplace) {
1859
+ var replacerArgs = [matched].concat(captures, position, S);
1860
+ if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1861
+ var replacement = String(replaceValue.apply(undefined, replacerArgs));
1862
+ } else {
1863
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1864
+ }
1865
+ if (position >= nextSourcePosition) {
1866
+ accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1867
+ nextSourcePosition = position + matched.length;
1868
+ }
1869
+ }
1870
+ return accumulatedResult + S.slice(nextSourcePosition);
1871
+ }
1872
+ ];
1873
+
1874
+ // https://tc39.github.io/ecma262/#sec-getsubstitution
1875
+ function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1876
+ var tailPos = position + matched.length;
1877
+ var m = captures.length;
1878
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1879
+ if (namedCaptures !== undefined) {
1880
+ namedCaptures = toObject(namedCaptures);
1881
+ symbols = SUBSTITUTION_SYMBOLS;
1882
+ }
1883
+ return nativeReplace.call(replacement, symbols, function (match, ch) {
1884
+ var capture;
1885
+ switch (ch.charAt(0)) {
1886
+ case '$': return '$';
1887
+ case '&': return matched;
1888
+ case '`': return str.slice(0, position);
1889
+ case "'": return str.slice(tailPos);
1890
+ case '<':
1891
+ capture = namedCaptures[ch.slice(1, -1)];
1892
+ break;
1893
+ default: // \d\d?
1894
+ var n = +ch;
1895
+ if (n === 0) return match;
1896
+ if (n > m) {
1897
+ var f = floor$1(n / 10);
1898
+ if (f === 0) return match;
1899
+ if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1900
+ return match;
1901
+ }
1902
+ capture = captures[n - 1];
1903
+ }
1904
+ return capture === undefined ? '' : capture;
1905
+ });
1906
+ }
1907
+ });
1908
+
1453
1909
  // iterable DOM collections
1454
1910
  // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1455
1911
  var domIterables = {
@@ -1496,15 +1952,17 @@ for (var COLLECTION_NAME in domIterables) {
1496
1952
  if (CollectionPrototype) {
1497
1953
  // some Chrome versions have non-configurable methods on DOMTokenList
1498
1954
  if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
1499
- hide(CollectionPrototype, ITERATOR$2, ArrayValues);
1955
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
1500
1956
  } catch (error) {
1501
1957
  CollectionPrototype[ITERATOR$2] = ArrayValues;
1502
1958
  }
1503
- if (!CollectionPrototype[TO_STRING_TAG$3]) hide(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
1959
+ if (!CollectionPrototype[TO_STRING_TAG$3]) {
1960
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
1961
+ }
1504
1962
  if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
1505
1963
  // some Chrome versions have non-configurable methods on DOMTokenList
1506
1964
  if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
1507
- hide(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1965
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1508
1966
  } catch (error) {
1509
1967
  CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
1510
1968
  }
@@ -1527,20 +1985,35 @@ function _defineProperty(obj, key, value) {
1527
1985
  return obj;
1528
1986
  }
1529
1987
 
1530
- function _objectSpread(target) {
1988
+ function ownKeys$1(object, enumerableOnly) {
1989
+ var keys = Object.keys(object);
1990
+
1991
+ if (Object.getOwnPropertySymbols) {
1992
+ var symbols = Object.getOwnPropertySymbols(object);
1993
+ if (enumerableOnly) symbols = symbols.filter(function (sym) {
1994
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1995
+ });
1996
+ keys.push.apply(keys, symbols);
1997
+ }
1998
+
1999
+ return keys;
2000
+ }
2001
+
2002
+ function _objectSpread2(target) {
1531
2003
  for (var i = 1; i < arguments.length; i++) {
1532
2004
  var source = arguments[i] != null ? arguments[i] : {};
1533
- var ownKeys = Object.keys(source);
1534
2005
 
1535
- if (typeof Object.getOwnPropertySymbols === 'function') {
1536
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
1537
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1538
- }));
2006
+ if (i % 2) {
2007
+ ownKeys$1(Object(source), true).forEach(function (key) {
2008
+ _defineProperty(target, key, source[key]);
2009
+ });
2010
+ } else if (Object.getOwnPropertyDescriptors) {
2011
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2012
+ } else {
2013
+ ownKeys$1(Object(source)).forEach(function (key) {
2014
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2015
+ });
1539
2016
  }
1540
-
1541
- ownKeys.forEach(function (key) {
1542
- _defineProperty(target, key, source[key]);
1543
- });
1544
2017
  }
1545
2018
 
1546
2019
  return target;
@@ -1573,6 +2046,10 @@ function _nonIterableSpread() {
1573
2046
  var $ = window.jQuery;
1574
2047
 
1575
2048
  var deepCopy = function deepCopy(arg) {
2049
+ if (arg === undefined) {
2050
+ return arg;
2051
+ }
2052
+
1576
2053
  return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
1577
2054
  };
1578
2055
 
@@ -1601,14 +2078,19 @@ var script = {
1601
2078
 
1602
2079
  this.$table = $(this.$el);
1603
2080
  this.$table.on('all.bs.table', function (e, name, args) {
1604
- _this.$emit.apply(_this, [$.fn.bootstrapTable.events[name]].concat(_toConsumableArray(args)));
2081
+ var eventName = $.fn.bootstrapTable.events[name];
2082
+ eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
2083
+
2084
+ _this.$emit.apply(_this, ['on-all'].concat(_toConsumableArray(args)));
2085
+
2086
+ _this.$emit.apply(_this, [eventName].concat(_toConsumableArray(args)));
1605
2087
  });
1606
2088
 
1607
2089
  this._initTable();
1608
2090
  },
1609
- methods: _objectSpread({
2091
+ methods: _objectSpread2({
1610
2092
  _initTable: function _initTable() {
1611
- var options = _objectSpread({}, deepCopy(this.options), {
2093
+ var options = _objectSpread2({}, deepCopy(this.options), {
1612
2094
  columns: deepCopy(this.columns),
1613
2095
  data: deepCopy(this.data)
1614
2096
  });
@@ -1683,91 +2165,81 @@ var script = {
1683
2165
  }
1684
2166
  };
1685
2167
 
1686
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
1687
- /* server only */
1688
- , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
1689
- if (typeof shadowMode !== 'boolean') {
1690
- createInjectorSSR = createInjector;
1691
- createInjector = shadowMode;
1692
- shadowMode = false;
1693
- } // Vue.extend constructor export interop.
1694
-
1695
-
1696
- var options = typeof script === 'function' ? script.options : script; // render functions
1697
-
1698
- if (template && template.render) {
1699
- options.render = template.render;
1700
- options.staticRenderFns = template.staticRenderFns;
1701
- options._compiled = true; // functional template
1702
-
1703
- if (isFunctionalTemplate) {
1704
- options.functional = true;
1705
- }
1706
- } // scopedId
1707
-
1708
-
1709
- if (scopeId) {
1710
- options._scopeId = scopeId;
1711
- }
1712
-
1713
- var hook;
1714
-
1715
- if (moduleIdentifier) {
1716
- // server build
1717
- hook = function hook(context) {
1718
- // 2.3 injection
1719
- context = context || // cached call
1720
- this.$vnode && this.$vnode.ssrContext || // stateful
1721
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
1722
- // 2.2 with runInNewContext: true
1723
-
1724
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1725
- context = __VUE_SSR_CONTEXT__;
1726
- } // inject component styles
1727
-
1728
-
1729
- if (style) {
1730
- style.call(this, createInjectorSSR(context));
1731
- } // register component module identifier for async chunk inference
1732
-
1733
-
1734
- if (context && context._registeredComponents) {
1735
- context._registeredComponents.add(moduleIdentifier);
1736
- }
1737
- }; // used by ssr in case component is cached and beforeCreate
1738
- // never gets called
1739
-
1740
-
1741
- options._ssrRegister = hook;
1742
- } else if (style) {
1743
- hook = shadowMode ? function () {
1744
- style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
1745
- } : function (context) {
1746
- style.call(this, createInjector(context));
1747
- };
1748
- }
1749
-
1750
- if (hook) {
1751
- if (options.functional) {
1752
- // register for functional component in vue file
1753
- var originalRender = options.render;
1754
-
1755
- options.render = function renderWithStyleInjection(h, context) {
1756
- hook.call(context);
1757
- return originalRender(h, context);
1758
- };
1759
- } else {
1760
- // inject component registration as beforeCreate hook
1761
- var existing = options.beforeCreate;
1762
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1763
- }
1764
- }
1765
-
1766
- return script;
2168
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
2169
+ if (typeof shadowMode !== 'boolean') {
2170
+ createInjectorSSR = createInjector;
2171
+ createInjector = shadowMode;
2172
+ shadowMode = false;
2173
+ }
2174
+ // Vue.extend constructor export interop.
2175
+ const options = typeof script === 'function' ? script.options : script;
2176
+ // render functions
2177
+ if (template && template.render) {
2178
+ options.render = template.render;
2179
+ options.staticRenderFns = template.staticRenderFns;
2180
+ options._compiled = true;
2181
+ // functional template
2182
+ if (isFunctionalTemplate) {
2183
+ options.functional = true;
2184
+ }
2185
+ }
2186
+ // scopedId
2187
+ if (scopeId) {
2188
+ options._scopeId = scopeId;
2189
+ }
2190
+ let hook;
2191
+ if (moduleIdentifier) {
2192
+ // server build
2193
+ hook = function (context) {
2194
+ // 2.3 injection
2195
+ context =
2196
+ context || // cached call
2197
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
2198
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
2199
+ // 2.2 with runInNewContext: true
2200
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
2201
+ context = __VUE_SSR_CONTEXT__;
2202
+ }
2203
+ // inject component styles
2204
+ if (style) {
2205
+ style.call(this, createInjectorSSR(context));
2206
+ }
2207
+ // register component module identifier for async chunk inference
2208
+ if (context && context._registeredComponents) {
2209
+ context._registeredComponents.add(moduleIdentifier);
2210
+ }
2211
+ };
2212
+ // used by ssr in case component is cached and beforeCreate
2213
+ // never gets called
2214
+ options._ssrRegister = hook;
2215
+ }
2216
+ else if (style) {
2217
+ hook = shadowMode
2218
+ ? function (context) {
2219
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
2220
+ }
2221
+ : function (context) {
2222
+ style.call(this, createInjector(context));
2223
+ };
2224
+ }
2225
+ if (hook) {
2226
+ if (options.functional) {
2227
+ // register for functional component in vue file
2228
+ const originalRender = options.render;
2229
+ options.render = function renderWithStyleInjection(h, context) {
2230
+ hook.call(context);
2231
+ return originalRender(h, context);
2232
+ };
2233
+ }
2234
+ else {
2235
+ // inject component registration as beforeCreate hook
2236
+ const existing = options.beforeCreate;
2237
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
2238
+ }
2239
+ }
2240
+ return script;
1767
2241
  }
1768
2242
 
1769
- var normalizeComponent_1 = normalizeComponent;
1770
-
1771
2243
  /* script */
1772
2244
  const __vue_script__ = script;
1773
2245
 
@@ -1793,17 +2265,21 @@ __vue_render__._withStripped = true;
1793
2265
 
1794
2266
  /* style inject SSR */
1795
2267
 
2268
+ /* style inject shadow dom */
2269
+
1796
2270
 
1797
2271
 
1798
- var BootstrapTable = normalizeComponent_1(
2272
+ const __vue_component__ = /*#__PURE__*/normalizeComponent(
1799
2273
  { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
1800
2274
  __vue_inject_styles__,
1801
2275
  __vue_script__,
1802
2276
  __vue_scope_id__,
1803
2277
  __vue_is_functional_template__,
1804
2278
  __vue_module_identifier__,
2279
+ false,
2280
+ undefined,
1805
2281
  undefined,
1806
2282
  undefined
1807
2283
  );
1808
2284
 
1809
- export default BootstrapTable;
2285
+ export default __vue_component__;