bootstrap-table-rails 1.18.2 → 1.18.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bootstrap-table-rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +151 -144
  4. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +453 -552
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +1378 -1479
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +3 -2
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +7404 -7422
  8. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1774 -1758
  9. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +1206 -1213
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +2541 -2567
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +1232 -1252
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +1251 -1272
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +864 -857
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +1899 -1915
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +2227 -2251
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +3135 -3163
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +2429 -2457
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +1605 -1627
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +1599 -1631
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +1 -1
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +1461 -1477
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +1290 -1318
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +1787 -1814
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +1118 -1137
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +283 -307
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +1641 -1679
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +1472 -1495
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +1035 -1055
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +914 -907
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +1246 -1236
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +2032 -2056
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +1186 -1206
  33. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +109 -102
  34. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +109 -102
  35. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +109 -102
  36. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +109 -102
  37. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +109 -102
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +109 -102
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +109 -102
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +109 -102
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +109 -102
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +109 -102
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +109 -102
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +109 -102
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +109 -102
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +109 -102
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +109 -102
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +109 -102
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +109 -102
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +109 -102
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +128 -121
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +109 -102
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +109 -102
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +109 -102
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +109 -102
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +109 -102
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +109 -102
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +109 -102
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +109 -102
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +109 -102
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +109 -102
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +109 -102
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +109 -102
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +109 -102
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +109 -102
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +109 -102
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +109 -102
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +109 -102
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +109 -102
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +109 -102
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +132 -125
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +109 -102
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +109 -102
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +109 -102
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +109 -102
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +109 -102
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +109 -102
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +109 -102
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +109 -102
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +109 -102
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +109 -102
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +109 -102
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +109 -102
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +109 -102
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +109 -102
  86. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +2 -1
  87. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +1119 -1123
  88. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +2 -1
  89. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +1111 -1115
  90. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +6 -1
  91. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +1127 -1131
  92. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +6 -1
  93. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +1120 -1124
  94. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +2 -1
  95. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +1088 -1092
  96. metadata +1 -1
@@ -1,1763 +1,1779 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3
- typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3
+ typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
5
5
  }(this, (function ($) { 'use strict';
6
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
- var $__default = /*#__PURE__*/_interopDefaultLegacy($);
10
-
11
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
12
-
13
- function createCommonjsModule(fn, module) {
14
- return module = { exports: {} }, fn(module, module.exports), module.exports;
15
- }
16
-
17
- var check = function (it) {
18
- return it && it.Math == Math && it;
19
- };
20
-
21
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22
- var global_1 =
23
- // eslint-disable-next-line no-undef
24
- check(typeof globalThis == 'object' && globalThis) ||
25
- check(typeof window == 'object' && window) ||
26
- check(typeof self == 'object' && self) ||
27
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
28
- // eslint-disable-next-line no-new-func
29
- (function () { return this; })() || Function('return this')();
30
-
31
- var fails = function (exec) {
32
- try {
33
- return !!exec();
34
- } catch (error) {
35
- return true;
36
- }
37
- };
38
-
39
- // Thank's IE8 for his funny defineProperty
40
- var descriptors = !fails(function () {
41
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
42
- });
43
-
44
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
45
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
46
-
47
- // Nashorn ~ JDK8 bug
48
- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
49
-
50
- // `Object.prototype.propertyIsEnumerable` method implementation
51
- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
52
- var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
53
- var descriptor = getOwnPropertyDescriptor(this, V);
54
- return !!descriptor && descriptor.enumerable;
55
- } : nativePropertyIsEnumerable;
56
-
57
- var objectPropertyIsEnumerable = {
58
- f: f
59
- };
60
-
61
- var createPropertyDescriptor = function (bitmap, value) {
62
- return {
63
- enumerable: !(bitmap & 1),
64
- configurable: !(bitmap & 2),
65
- writable: !(bitmap & 4),
66
- value: value
67
- };
68
- };
69
-
70
- var toString = {}.toString;
71
-
72
- var classofRaw = function (it) {
73
- return toString.call(it).slice(8, -1);
74
- };
75
-
76
- var split = ''.split;
77
-
78
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
79
- var indexedObject = fails(function () {
80
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
81
- // eslint-disable-next-line no-prototype-builtins
82
- return !Object('z').propertyIsEnumerable(0);
83
- }) ? function (it) {
84
- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
85
- } : Object;
86
-
87
- // `RequireObjectCoercible` abstract operation
88
- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
89
- var requireObjectCoercible = function (it) {
90
- if (it == undefined) throw TypeError("Can't call method on " + it);
91
- return it;
92
- };
93
-
94
- // toObject with fallback for non-array-like ES3 strings
95
-
96
-
97
-
98
- var toIndexedObject = function (it) {
99
- return indexedObject(requireObjectCoercible(it));
100
- };
101
-
102
- var isObject = function (it) {
103
- return typeof it === 'object' ? it !== null : typeof it === 'function';
104
- };
105
-
106
- // `ToPrimitive` abstract operation
107
- // https://tc39.github.io/ecma262/#sec-toprimitive
108
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
109
- // and the second argument - flag - preferred type is a string
110
- var toPrimitive = function (input, PREFERRED_STRING) {
111
- if (!isObject(input)) return input;
112
- var fn, val;
113
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
114
- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
115
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
116
- throw TypeError("Can't convert object to primitive value");
117
- };
118
-
119
- var hasOwnProperty = {}.hasOwnProperty;
120
-
121
- var has = function (it, key) {
122
- return hasOwnProperty.call(it, key);
123
- };
124
-
125
- var document = global_1.document;
126
- // typeof document.createElement is 'object' in old IE
127
- var EXISTS = isObject(document) && isObject(document.createElement);
128
-
129
- var documentCreateElement = function (it) {
130
- return EXISTS ? document.createElement(it) : {};
131
- };
132
-
133
- // Thank's IE8 for his funny defineProperty
134
- var ie8DomDefine = !descriptors && !fails(function () {
135
- return Object.defineProperty(documentCreateElement('div'), 'a', {
136
- get: function () { return 7; }
137
- }).a != 7;
138
- });
139
-
140
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
141
-
142
- // `Object.getOwnPropertyDescriptor` method
143
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
144
- var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
145
- O = toIndexedObject(O);
146
- P = toPrimitive(P, true);
147
- if (ie8DomDefine) try {
148
- return nativeGetOwnPropertyDescriptor(O, P);
149
- } catch (error) { /* empty */ }
150
- if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
151
- };
152
-
153
- var objectGetOwnPropertyDescriptor = {
154
- f: f$1
155
- };
156
-
157
- var anObject = function (it) {
158
- if (!isObject(it)) {
159
- throw TypeError(String(it) + ' is not an object');
160
- } return it;
161
- };
162
-
163
- var nativeDefineProperty = Object.defineProperty;
164
-
165
- // `Object.defineProperty` method
166
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
167
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
168
- anObject(O);
169
- P = toPrimitive(P, true);
170
- anObject(Attributes);
171
- if (ie8DomDefine) try {
172
- return nativeDefineProperty(O, P, Attributes);
173
- } catch (error) { /* empty */ }
174
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
175
- if ('value' in Attributes) O[P] = Attributes.value;
176
- return O;
177
- };
178
-
179
- var objectDefineProperty = {
180
- f: f$2
181
- };
182
-
183
- var createNonEnumerableProperty = descriptors ? function (object, key, value) {
184
- return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
185
- } : function (object, key, value) {
186
- object[key] = value;
187
- return object;
188
- };
189
-
190
- var setGlobal = function (key, value) {
191
- try {
192
- createNonEnumerableProperty(global_1, key, value);
193
- } catch (error) {
194
- global_1[key] = value;
195
- } return value;
196
- };
197
-
198
- var SHARED = '__core-js_shared__';
199
- var store = global_1[SHARED] || setGlobal(SHARED, {});
200
-
201
- var sharedStore = store;
202
-
203
- var functionToString = Function.toString;
204
-
205
- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
206
- if (typeof sharedStore.inspectSource != 'function') {
207
- sharedStore.inspectSource = function (it) {
208
- return functionToString.call(it);
209
- };
210
- }
211
-
212
- var inspectSource = sharedStore.inspectSource;
213
-
214
- var WeakMap = global_1.WeakMap;
215
-
216
- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
217
-
218
- var shared = createCommonjsModule(function (module) {
219
- (module.exports = function (key, value) {
220
- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
221
- })('versions', []).push({
222
- version: '3.8.1',
223
- mode: 'global',
224
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
225
- });
226
- });
227
-
228
- var id = 0;
229
- var postfix = Math.random();
230
-
231
- var uid = function (key) {
232
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
233
- };
234
-
235
- var keys = shared('keys');
236
-
237
- var sharedKey = function (key) {
238
- return keys[key] || (keys[key] = uid(key));
239
- };
240
-
241
- var hiddenKeys = {};
242
-
243
- var WeakMap$1 = global_1.WeakMap;
244
- var set, get, has$1;
245
-
246
- var enforce = function (it) {
247
- return has$1(it) ? get(it) : set(it, {});
248
- };
249
-
250
- var getterFor = function (TYPE) {
251
- return function (it) {
252
- var state;
253
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
254
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
255
- } return state;
256
- };
257
- };
258
-
259
- if (nativeWeakMap) {
260
- var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1());
261
- var wmget = store$1.get;
262
- var wmhas = store$1.has;
263
- var wmset = store$1.set;
264
- set = function (it, metadata) {
265
- metadata.facade = it;
266
- wmset.call(store$1, it, metadata);
267
- return metadata;
268
- };
269
- get = function (it) {
270
- return wmget.call(store$1, it) || {};
271
- };
272
- has$1 = function (it) {
273
- return wmhas.call(store$1, it);
274
- };
275
- } else {
276
- var STATE = sharedKey('state');
277
- hiddenKeys[STATE] = true;
278
- set = function (it, metadata) {
279
- metadata.facade = it;
280
- createNonEnumerableProperty(it, STATE, metadata);
281
- return metadata;
282
- };
283
- get = function (it) {
284
- return has(it, STATE) ? it[STATE] : {};
285
- };
286
- has$1 = function (it) {
287
- return has(it, STATE);
288
- };
289
- }
290
-
291
- var internalState = {
292
- set: set,
293
- get: get,
294
- has: has$1,
295
- enforce: enforce,
296
- getterFor: getterFor
297
- };
298
-
299
- var redefine = createCommonjsModule(function (module) {
300
- var getInternalState = internalState.get;
301
- var enforceInternalState = internalState.enforce;
302
- var TEMPLATE = String(String).split('String');
303
-
304
- (module.exports = function (O, key, value, options) {
305
- var unsafe = options ? !!options.unsafe : false;
306
- var simple = options ? !!options.enumerable : false;
307
- var noTargetGet = options ? !!options.noTargetGet : false;
308
- var state;
309
- if (typeof value == 'function') {
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
- }
317
- }
318
- if (O === global_1) {
319
- if (simple) O[key] = value;
320
- else setGlobal(key, value);
321
- return;
322
- } else if (!unsafe) {
323
- delete O[key];
324
- } else if (!noTargetGet && O[key]) {
325
- simple = true;
326
- }
327
- if (simple) O[key] = value;
328
- else createNonEnumerableProperty(O, key, value);
329
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
330
- })(Function.prototype, 'toString', function toString() {
331
- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
332
- });
333
- });
334
-
335
- var path = global_1;
336
-
337
- var aFunction = function (variable) {
338
- return typeof variable == 'function' ? variable : undefined;
339
- };
340
-
341
- var getBuiltIn = function (namespace, method) {
342
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
343
- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
344
- };
345
-
346
- var ceil = Math.ceil;
347
- var floor = Math.floor;
348
-
349
- // `ToInteger` abstract operation
350
- // https://tc39.github.io/ecma262/#sec-tointeger
351
- var toInteger = function (argument) {
352
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
353
- };
354
-
355
- var min = Math.min;
356
-
357
- // `ToLength` abstract operation
358
- // https://tc39.github.io/ecma262/#sec-tolength
359
- var toLength = function (argument) {
360
- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
361
- };
362
-
363
- var max = Math.max;
364
- var min$1 = Math.min;
365
-
366
- // Helper for a popular repeating case of the spec:
367
- // Let integer be ? ToInteger(index).
368
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
369
- var toAbsoluteIndex = function (index, length) {
370
- var integer = toInteger(index);
371
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
372
- };
373
-
374
- // `Array.prototype.{ indexOf, includes }` methods implementation
375
- var createMethod = function (IS_INCLUDES) {
376
- return function ($this, el, fromIndex) {
377
- var O = toIndexedObject($this);
378
- var length = toLength(O.length);
379
- var index = toAbsoluteIndex(fromIndex, length);
380
- var value;
381
- // Array#includes uses SameValueZero equality algorithm
382
- // eslint-disable-next-line no-self-compare
383
- if (IS_INCLUDES && el != el) while (length > index) {
384
- value = O[index++];
385
- // eslint-disable-next-line no-self-compare
386
- if (value != value) return true;
387
- // Array#indexOf ignores holes, Array#includes - not
388
- } else for (;length > index; index++) {
389
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
390
- } return !IS_INCLUDES && -1;
391
- };
392
- };
393
-
394
- var arrayIncludes = {
395
- // `Array.prototype.includes` method
396
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
397
- includes: createMethod(true),
398
- // `Array.prototype.indexOf` method
399
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
400
- indexOf: createMethod(false)
401
- };
402
-
403
- var indexOf = arrayIncludes.indexOf;
404
-
405
-
406
- var objectKeysInternal = function (object, names) {
407
- var O = toIndexedObject(object);
408
- var i = 0;
409
- var result = [];
410
- var key;
411
- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
412
- // Don't enum bug & hidden keys
413
- while (names.length > i) if (has(O, key = names[i++])) {
414
- ~indexOf(result, key) || result.push(key);
415
- }
416
- return result;
417
- };
418
-
419
- // IE8- don't enum bug keys
420
- var enumBugKeys = [
421
- 'constructor',
422
- 'hasOwnProperty',
423
- 'isPrototypeOf',
424
- 'propertyIsEnumerable',
425
- 'toLocaleString',
426
- 'toString',
427
- 'valueOf'
428
- ];
429
-
430
- var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
431
-
432
- // `Object.getOwnPropertyNames` method
433
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
434
- var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
435
- return objectKeysInternal(O, hiddenKeys$1);
436
- };
437
-
438
- var objectGetOwnPropertyNames = {
439
- f: f$3
440
- };
441
-
442
- var f$4 = Object.getOwnPropertySymbols;
443
-
444
- var objectGetOwnPropertySymbols = {
445
- f: f$4
446
- };
447
-
448
- // all object keys, includes non-enumerable and symbols
449
- var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
450
- var keys = objectGetOwnPropertyNames.f(anObject(it));
451
- var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
452
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
453
- };
454
-
455
- var copyConstructorProperties = function (target, source) {
456
- var keys = ownKeys(source);
457
- var defineProperty = objectDefineProperty.f;
458
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
459
- for (var i = 0; i < keys.length; i++) {
460
- var key = keys[i];
461
- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
462
- }
463
- };
464
-
465
- var replacement = /#|\.prototype\./;
466
-
467
- var isForced = function (feature, detection) {
468
- var value = data[normalize(feature)];
469
- return value == POLYFILL ? true
470
- : value == NATIVE ? false
471
- : typeof detection == 'function' ? fails(detection)
472
- : !!detection;
473
- };
474
-
475
- var normalize = isForced.normalize = function (string) {
476
- return String(string).replace(replacement, '.').toLowerCase();
477
- };
478
-
479
- var data = isForced.data = {};
480
- var NATIVE = isForced.NATIVE = 'N';
481
- var POLYFILL = isForced.POLYFILL = 'P';
482
-
483
- var isForced_1 = isForced;
484
-
485
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
486
-
487
-
488
-
489
-
490
-
491
-
492
- /*
493
- options.target - name of the target object
494
- options.global - target is the global object
495
- options.stat - export as static methods of target
496
- options.proto - export as prototype methods of target
497
- options.real - real prototype method for the `pure` version
498
- options.forced - export even if the native feature is available
499
- options.bind - bind methods to the target, required for the `pure` version
500
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
501
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
502
- options.sham - add a flag to not completely full polyfills
503
- options.enumerable - export as enumerable property
504
- options.noTargetGet - prevent calling a getter on target
505
- */
506
- var _export = function (options, source) {
507
- var TARGET = options.target;
508
- var GLOBAL = options.global;
509
- var STATIC = options.stat;
510
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
511
- if (GLOBAL) {
512
- target = global_1;
513
- } else if (STATIC) {
514
- target = global_1[TARGET] || setGlobal(TARGET, {});
515
- } else {
516
- target = (global_1[TARGET] || {}).prototype;
517
- }
518
- if (target) for (key in source) {
519
- sourceProperty = source[key];
520
- if (options.noTargetGet) {
521
- descriptor = getOwnPropertyDescriptor$1(target, key);
522
- targetProperty = descriptor && descriptor.value;
523
- } else targetProperty = target[key];
524
- FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
525
- // contained in target
526
- if (!FORCED && targetProperty !== undefined) {
527
- if (typeof sourceProperty === typeof targetProperty) continue;
528
- copyConstructorProperties(sourceProperty, targetProperty);
529
- }
530
- // add a flag to not completely full polyfills
531
- if (options.sham || (targetProperty && targetProperty.sham)) {
532
- createNonEnumerableProperty(sourceProperty, 'sham', true);
533
- }
534
- // extend global
535
- redefine(target, key, sourceProperty, options);
536
- }
537
- };
538
-
539
- // `IsArray` abstract operation
540
- // https://tc39.github.io/ecma262/#sec-isarray
541
- var isArray = Array.isArray || function isArray(arg) {
542
- return classofRaw(arg) == 'Array';
543
- };
544
-
545
- // `ToObject` abstract operation
546
- // https://tc39.github.io/ecma262/#sec-toobject
547
- var toObject = function (argument) {
548
- return Object(requireObjectCoercible(argument));
549
- };
550
-
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;
555
- };
556
-
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
- });
562
-
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';
568
-
569
- var WellKnownSymbolsStore = shared('wks');
570
- var Symbol$1 = global_1.Symbol;
571
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
572
-
573
- var wellKnownSymbol = function (name) {
574
- if (!has(WellKnownSymbolsStore, name)) {
575
- if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
576
- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
577
- } return WellKnownSymbolsStore[name];
578
- };
579
-
580
- var SPECIES = wellKnownSymbol('species');
581
-
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);
595
- };
596
-
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;
616
-
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;
630
- });
631
- };
632
-
633
- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
634
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
635
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
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
- });
645
-
646
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
647
-
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;
655
-
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;
678
- }
679
- });
680
-
681
- // `Object.keys` method
682
- // https://tc39.github.io/ecma262/#sec-object.keys
683
- var objectKeys = Object.keys || function keys(O) {
684
- return objectKeysInternal(O, enumBugKeys);
685
- };
686
-
687
- var propertyIsEnumerable = objectPropertyIsEnumerable.f;
688
-
689
- // `Object.{ entries, values }` methods implementation
690
- var createMethod$1 = function (TO_ENTRIES) {
691
- return function (it) {
692
- var O = toIndexedObject(it);
693
- var keys = objectKeys(O);
694
- var length = keys.length;
695
- var i = 0;
696
- var result = [];
697
- var key;
698
- while (length > i) {
699
- key = keys[i++];
700
- if (!descriptors || propertyIsEnumerable.call(O, key)) {
701
- result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
702
- }
703
- }
704
- return result;
705
- };
706
- };
707
-
708
- var objectToArray = {
709
- // `Object.entries` method
710
- // https://tc39.github.io/ecma262/#sec-object.entries
711
- entries: createMethod$1(true),
712
- // `Object.values` method
713
- // https://tc39.github.io/ecma262/#sec-object.values
714
- values: createMethod$1(false)
715
- };
716
-
717
- var $entries = objectToArray.entries;
718
-
719
- // `Object.entries` method
720
- // https://tc39.github.io/ecma262/#sec-object.entries
721
- _export({ target: 'Object', stat: true }, {
722
- entries: function entries(O) {
723
- return $entries(O);
724
- }
725
- });
726
-
727
- var aPossiblePrototype = function (it) {
728
- if (!isObject(it) && it !== null) {
729
- throw TypeError("Can't set " + String(it) + ' as a prototype');
730
- } return it;
731
- };
732
-
733
- // `Object.setPrototypeOf` method
734
- // https://tc39.github.io/ecma262/#sec-object.setprototypeof
735
- // Works with __proto__ only. Old v8 can't work with null proto objects.
736
- /* eslint-disable no-proto */
737
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
738
- var CORRECT_SETTER = false;
739
- var test = {};
740
- var setter;
741
- try {
742
- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
743
- setter.call(test, []);
744
- CORRECT_SETTER = test instanceof Array;
745
- } catch (error) { /* empty */ }
746
- return function setPrototypeOf(O, proto) {
747
- anObject(O);
748
- aPossiblePrototype(proto);
749
- if (CORRECT_SETTER) setter.call(O, proto);
750
- else O.__proto__ = proto;
751
- return O;
752
- };
753
- }() : undefined);
754
-
755
- // makes subclassing work correct for wrapped built-ins
756
- var inheritIfRequired = function ($this, dummy, Wrapper) {
757
- var NewTarget, NewTargetPrototype;
758
- if (
759
- // it can work only with native `setPrototypeOf`
760
- objectSetPrototypeOf &&
761
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
762
- typeof (NewTarget = dummy.constructor) == 'function' &&
763
- NewTarget !== Wrapper &&
764
- isObject(NewTargetPrototype = NewTarget.prototype) &&
765
- NewTargetPrototype !== Wrapper.prototype
766
- ) objectSetPrototypeOf($this, NewTargetPrototype);
767
- return $this;
768
- };
769
-
770
- var MATCH = wellKnownSymbol('match');
771
-
772
- // `IsRegExp` abstract operation
773
- // https://tc39.github.io/ecma262/#sec-isregexp
774
- var isRegexp = function (it) {
775
- var isRegExp;
776
- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
777
- };
778
-
779
- // `RegExp.prototype.flags` getter implementation
780
- // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
781
- var regexpFlags = function () {
782
- var that = anObject(this);
783
- var result = '';
784
- if (that.global) result += 'g';
785
- if (that.ignoreCase) result += 'i';
786
- if (that.multiline) result += 'm';
787
- if (that.dotAll) result += 's';
788
- if (that.unicode) result += 'u';
789
- if (that.sticky) result += 'y';
790
- return result;
791
- };
792
-
793
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
794
- // so we use an intermediate function.
795
- function RE(s, f) {
796
- return RegExp(s, f);
797
- }
798
-
799
- var UNSUPPORTED_Y = fails(function () {
800
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
801
- var re = RE('a', 'y');
802
- re.lastIndex = 2;
803
- return re.exec('abcd') != null;
804
- });
805
-
806
- var BROKEN_CARET = fails(function () {
807
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
808
- var re = RE('^r', 'gy');
809
- re.lastIndex = 2;
810
- return re.exec('str') != null;
811
- });
812
-
813
- var regexpStickyHelpers = {
814
- UNSUPPORTED_Y: UNSUPPORTED_Y,
815
- BROKEN_CARET: BROKEN_CARET
816
- };
817
-
818
- var SPECIES$2 = wellKnownSymbol('species');
819
-
820
- var setSpecies = function (CONSTRUCTOR_NAME) {
821
- var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
822
- var defineProperty = objectDefineProperty.f;
823
-
824
- if (descriptors && Constructor && !Constructor[SPECIES$2]) {
825
- defineProperty(Constructor, SPECIES$2, {
826
- configurable: true,
827
- get: function () { return this; }
828
- });
829
- }
830
- };
831
-
832
- var defineProperty = objectDefineProperty.f;
833
- var getOwnPropertyNames = objectGetOwnPropertyNames.f;
834
-
835
-
836
-
837
-
838
-
839
- var setInternalState = internalState.set;
840
-
841
-
842
-
843
- var MATCH$1 = wellKnownSymbol('match');
844
- var NativeRegExp = global_1.RegExp;
845
- var RegExpPrototype = NativeRegExp.prototype;
846
- var re1 = /a/g;
847
- var re2 = /a/g;
848
-
849
- // "new" should create a new object, old webkit bug
850
- var CORRECT_NEW = new NativeRegExp(re1) !== re1;
851
-
852
- var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y;
853
-
854
- var FORCED$1 = descriptors && isForced_1('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y$1 || fails(function () {
855
- re2[MATCH$1] = false;
856
- // RegExp constructor can alter flags and IsRegExp works correct with @@match
857
- return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
858
- })));
859
-
860
- // `RegExp` constructor
861
- // https://tc39.github.io/ecma262/#sec-regexp-constructor
862
- if (FORCED$1) {
863
- var RegExpWrapper = function RegExp(pattern, flags) {
864
- var thisIsRegExp = this instanceof RegExpWrapper;
865
- var patternIsRegExp = isRegexp(pattern);
866
- var flagsAreUndefined = flags === undefined;
867
- var sticky;
868
-
869
- if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {
870
- return pattern;
871
- }
872
-
873
- if (CORRECT_NEW) {
874
- if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;
875
- } else if (pattern instanceof RegExpWrapper) {
876
- if (flagsAreUndefined) flags = regexpFlags.call(pattern);
877
- pattern = pattern.source;
878
- }
879
-
880
- if (UNSUPPORTED_Y$1) {
881
- sticky = !!flags && flags.indexOf('y') > -1;
882
- if (sticky) flags = flags.replace(/y/g, '');
883
- }
884
-
885
- var result = inheritIfRequired(
886
- CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),
887
- thisIsRegExp ? this : RegExpPrototype,
888
- RegExpWrapper
889
- );
890
-
891
- if (UNSUPPORTED_Y$1 && sticky) setInternalState(result, { sticky: sticky });
892
-
893
- return result;
894
- };
895
- var proxy = function (key) {
896
- key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
897
- configurable: true,
898
- get: function () { return NativeRegExp[key]; },
899
- set: function (it) { NativeRegExp[key] = it; }
900
- });
901
- };
902
- var keys$1 = getOwnPropertyNames(NativeRegExp);
903
- var index = 0;
904
- while (keys$1.length > index) proxy(keys$1[index++]);
905
- RegExpPrototype.constructor = RegExpWrapper;
906
- RegExpWrapper.prototype = RegExpPrototype;
907
- redefine(global_1, 'RegExp', RegExpWrapper);
908
- }
909
-
910
- // https://tc39.github.io/ecma262/#sec-get-regexp-@@species
911
- setSpecies('RegExp');
912
-
913
- var nativeExec = RegExp.prototype.exec;
914
- // This always refers to the native implementation, because the
915
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
916
- // which loads this file before patching the method.
917
- var nativeReplace = String.prototype.replace;
918
-
919
- var patchedExec = nativeExec;
920
-
921
- var UPDATES_LAST_INDEX_WRONG = (function () {
922
- var re1 = /a/;
923
- var re2 = /b*/g;
924
- nativeExec.call(re1, 'a');
925
- nativeExec.call(re2, 'a');
926
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
927
- })();
928
-
929
- var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
930
-
931
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
932
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
933
-
934
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2;
935
-
936
- if (PATCH) {
937
- patchedExec = function exec(str) {
938
- var re = this;
939
- var lastIndex, reCopy, match, i;
940
- var sticky = UNSUPPORTED_Y$2 && re.sticky;
941
- var flags = regexpFlags.call(re);
942
- var source = re.source;
943
- var charsAdded = 0;
944
- var strCopy = str;
945
-
946
- if (sticky) {
947
- flags = flags.replace('y', '');
948
- if (flags.indexOf('g') === -1) {
949
- flags += 'g';
950
- }
951
-
952
- strCopy = String(str).slice(re.lastIndex);
953
- // Support anchored sticky behavior.
954
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
955
- source = '(?: ' + source + ')';
956
- strCopy = ' ' + strCopy;
957
- charsAdded++;
958
- }
959
- // ^(? + rx + ) is needed, in combination with some str slicing, to
960
- // simulate the 'y' flag.
961
- reCopy = new RegExp('^(?:' + source + ')', flags);
962
- }
963
-
964
- if (NPCG_INCLUDED) {
965
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
966
- }
967
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
968
-
969
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
970
-
971
- if (sticky) {
972
- if (match) {
973
- match.input = match.input.slice(charsAdded);
974
- match[0] = match[0].slice(charsAdded);
975
- match.index = re.lastIndex;
976
- re.lastIndex += match[0].length;
977
- } else re.lastIndex = 0;
978
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
979
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
980
- }
981
- if (NPCG_INCLUDED && match && match.length > 1) {
982
- // Fix browsers whose `exec` methods don't consistently return `undefined`
983
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
984
- nativeReplace.call(match[0], reCopy, function () {
985
- for (i = 1; i < arguments.length - 2; i++) {
986
- if (arguments[i] === undefined) match[i] = undefined;
987
- }
988
- });
989
- }
990
-
991
- return match;
992
- };
993
- }
994
-
995
- var regexpExec = patchedExec;
996
-
997
- _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
998
- exec: regexpExec
999
- });
1000
-
1001
- var TO_STRING = 'toString';
1002
- var RegExpPrototype$1 = RegExp.prototype;
1003
- var nativeToString = RegExpPrototype$1[TO_STRING];
1004
-
1005
- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1006
- // FF44- RegExp#toString has a wrong name
1007
- var INCORRECT_NAME = nativeToString.name != TO_STRING;
1008
-
1009
- // `RegExp.prototype.toString` method
1010
- // https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring
1011
- if (NOT_GENERIC || INCORRECT_NAME) {
1012
- redefine(RegExp.prototype, TO_STRING, function toString() {
1013
- var R = anObject(this);
1014
- var p = String(R.source);
1015
- var rf = R.flags;
1016
- var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype$1) ? regexpFlags.call(R) : rf);
1017
- return '/' + p + '/' + f;
1018
- }, { unsafe: true });
1019
- }
1020
-
1021
- // TODO: Remove from `core-js@4` since it's moved to entry points
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
- var SPECIES$3 = wellKnownSymbol('species');
1030
-
1031
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1032
- // #replace needs built-in support for named groups.
1033
- // #match works fine because it just return the exec results, even if it has
1034
- // a "grops" property.
1035
- var re = /./;
1036
- re.exec = function () {
1037
- var result = [];
1038
- result.groups = { a: '7' };
1039
- return result;
1040
- };
1041
- return ''.replace(re, '$<a>') !== '7';
1042
- });
1043
-
1044
- // IE <= 11 replaces $0 with the whole match, as if it was $&
1045
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1046
- var REPLACE_KEEPS_$0 = (function () {
1047
- return 'a'.replace(/./, '$0') === '$0';
1048
- })();
1049
-
1050
- var REPLACE = wellKnownSymbol('replace');
1051
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1052
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1053
- if (/./[REPLACE]) {
1054
- return /./[REPLACE]('a', '$0') === '';
1055
- }
1056
- return false;
1057
- })();
1058
-
1059
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1060
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1061
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
1062
- var re = /(?:)/;
1063
- var originalExec = re.exec;
1064
- re.exec = function () { return originalExec.apply(this, arguments); };
1065
- var result = 'ab'.split(re);
1066
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
1067
- });
1068
-
1069
- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1070
- var SYMBOL = wellKnownSymbol(KEY);
1071
-
1072
- var DELEGATES_TO_SYMBOL = !fails(function () {
1073
- // String methods call symbol-named RegEp methods
1074
- var O = {};
1075
- O[SYMBOL] = function () { return 7; };
1076
- return ''[KEY](O) != 7;
1077
- });
1078
-
1079
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
1080
- // Symbol-named RegExp methods call .exec
1081
- var execCalled = false;
1082
- var re = /a/;
1083
-
1084
- if (KEY === 'split') {
1085
- // We can't use real regex here since it causes deoptimization
1086
- // and serious performance degradation in V8
1087
- // https://github.com/zloirock/core-js/issues/306
1088
- re = {};
1089
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
1090
- // a new one. We need to return the patched regex when creating the new one.
1091
- re.constructor = {};
1092
- re.constructor[SPECIES$3] = function () { return re; };
1093
- re.flags = '';
1094
- re[SYMBOL] = /./[SYMBOL];
1095
- }
1096
-
1097
- re.exec = function () { execCalled = true; return null; };
1098
-
1099
- re[SYMBOL]('');
1100
- return !execCalled;
1101
- });
1102
-
1103
- if (
1104
- !DELEGATES_TO_SYMBOL ||
1105
- !DELEGATES_TO_EXEC ||
1106
- (KEY === 'replace' && !(
1107
- REPLACE_SUPPORTS_NAMED_GROUPS &&
1108
- REPLACE_KEEPS_$0 &&
1109
- !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1110
- )) ||
1111
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1112
- ) {
1113
- var nativeRegExpMethod = /./[SYMBOL];
1114
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1115
- if (regexp.exec === regexpExec) {
1116
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1117
- // The native String method already delegates to @@method (this
1118
- // polyfilled function), leasing to infinite recursion.
1119
- // We avoid it by directly calling the native @@method method.
1120
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1121
- }
1122
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1123
- }
1124
- return { done: false };
1125
- }, {
1126
- REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
1127
- REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1128
- });
1129
- var stringMethod = methods[0];
1130
- var regexMethod = methods[1];
1131
-
1132
- redefine(String.prototype, KEY, stringMethod);
1133
- redefine(RegExp.prototype, SYMBOL, length == 2
1134
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1135
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1136
- ? function (string, arg) { return regexMethod.call(string, this, arg); }
1137
- // 21.2.5.6 RegExp.prototype[@@match](string)
1138
- // 21.2.5.9 RegExp.prototype[@@search](string)
1139
- : function (string) { return regexMethod.call(string, this); }
1140
- );
1141
- }
1142
-
1143
- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1144
- };
1145
-
1146
- // `String.prototype.{ codePointAt, at }` methods implementation
1147
- var createMethod$2 = function (CONVERT_TO_STRING) {
1148
- return function ($this, pos) {
1149
- var S = String(requireObjectCoercible($this));
1150
- var position = toInteger(pos);
1151
- var size = S.length;
1152
- var first, second;
1153
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1154
- first = S.charCodeAt(position);
1155
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
1156
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1157
- ? CONVERT_TO_STRING ? S.charAt(position) : first
1158
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1159
- };
1160
- };
1161
-
1162
- var stringMultibyte = {
1163
- // `String.prototype.codePointAt` method
1164
- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
1165
- codeAt: createMethod$2(false),
1166
- // `String.prototype.at` method
1167
- // https://github.com/mathiasbynens/String.prototype.at
1168
- charAt: createMethod$2(true)
1169
- };
1170
-
1171
- var charAt = stringMultibyte.charAt;
1172
-
1173
- // `AdvanceStringIndex` abstract operation
1174
- // https://tc39.github.io/ecma262/#sec-advancestringindex
1175
- var advanceStringIndex = function (S, index, unicode) {
1176
- return index + (unicode ? charAt(S, index).length : 1);
1177
- };
1178
-
1179
- // `RegExpExec` abstract operation
1180
- // https://tc39.github.io/ecma262/#sec-regexpexec
1181
- var regexpExecAbstract = function (R, S) {
1182
- var exec = R.exec;
1183
- if (typeof exec === 'function') {
1184
- var result = exec.call(R, S);
1185
- if (typeof result !== 'object') {
1186
- throw TypeError('RegExp exec method returned something other than an Object or null');
1187
- }
1188
- return result;
1189
- }
1190
-
1191
- if (classofRaw(R) !== 'RegExp') {
1192
- throw TypeError('RegExp#exec called on incompatible receiver');
1193
- }
1194
-
1195
- return regexpExec.call(R, S);
1196
- };
1197
-
1198
- // @@match logic
1199
- fixRegexpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
1200
- return [
1201
- // `String.prototype.match` method
1202
- // https://tc39.github.io/ecma262/#sec-string.prototype.match
1203
- function match(regexp) {
1204
- var O = requireObjectCoercible(this);
1205
- var matcher = regexp == undefined ? undefined : regexp[MATCH];
1206
- return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
1207
- },
1208
- // `RegExp.prototype[@@match]` method
1209
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
1210
- function (regexp) {
1211
- var res = maybeCallNative(nativeMatch, regexp, this);
1212
- if (res.done) return res.value;
1213
-
1214
- var rx = anObject(regexp);
1215
- var S = String(this);
1216
-
1217
- if (!rx.global) return regexpExecAbstract(rx, S);
1218
-
1219
- var fullUnicode = rx.unicode;
1220
- rx.lastIndex = 0;
1221
- var A = [];
1222
- var n = 0;
1223
- var result;
1224
- while ((result = regexpExecAbstract(rx, S)) !== null) {
1225
- var matchStr = String(result[0]);
1226
- A[n] = matchStr;
1227
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1228
- n++;
1229
- }
1230
- return n === 0 ? null : A;
1231
- }
1232
- ];
1233
- });
1234
-
1235
- var max$1 = Math.max;
1236
- var min$2 = Math.min;
1237
- var floor$1 = Math.floor;
1238
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
1239
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
1240
-
1241
- var maybeToString = function (it) {
1242
- return it === undefined ? it : String(it);
1243
- };
1244
-
1245
- // @@replace logic
1246
- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1247
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1248
- var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1249
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1250
-
1251
- return [
1252
- // `String.prototype.replace` method
1253
- // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1254
- function replace(searchValue, replaceValue) {
1255
- var O = requireObjectCoercible(this);
1256
- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1257
- return replacer !== undefined
1258
- ? replacer.call(searchValue, O, replaceValue)
1259
- : nativeReplace.call(String(O), searchValue, replaceValue);
1260
- },
1261
- // `RegExp.prototype[@@replace]` method
1262
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1263
- function (regexp, replaceValue) {
1264
- if (
1265
- (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1266
- (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1267
- ) {
1268
- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1269
- if (res.done) return res.value;
1270
- }
1271
-
1272
- var rx = anObject(regexp);
1273
- var S = String(this);
1274
-
1275
- var functionalReplace = typeof replaceValue === 'function';
1276
- if (!functionalReplace) replaceValue = String(replaceValue);
1277
-
1278
- var global = rx.global;
1279
- if (global) {
1280
- var fullUnicode = rx.unicode;
1281
- rx.lastIndex = 0;
1282
- }
1283
- var results = [];
1284
- while (true) {
1285
- var result = regexpExecAbstract(rx, S);
1286
- if (result === null) break;
1287
-
1288
- results.push(result);
1289
- if (!global) break;
1290
-
1291
- var matchStr = String(result[0]);
1292
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1293
- }
1294
-
1295
- var accumulatedResult = '';
1296
- var nextSourcePosition = 0;
1297
- for (var i = 0; i < results.length; i++) {
1298
- result = results[i];
1299
-
1300
- var matched = String(result[0]);
1301
- var position = max$1(min$2(toInteger(result.index), S.length), 0);
1302
- var captures = [];
1303
- // NOTE: This is equivalent to
1304
- // captures = result.slice(1).map(maybeToString)
1305
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1306
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1307
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1308
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1309
- var namedCaptures = result.groups;
1310
- if (functionalReplace) {
1311
- var replacerArgs = [matched].concat(captures, position, S);
1312
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1313
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
1314
- } else {
1315
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1316
- }
1317
- if (position >= nextSourcePosition) {
1318
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1319
- nextSourcePosition = position + matched.length;
1320
- }
1321
- }
1322
- return accumulatedResult + S.slice(nextSourcePosition);
1323
- }
1324
- ];
1325
-
1326
- // https://tc39.github.io/ecma262/#sec-getsubstitution
1327
- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1328
- var tailPos = position + matched.length;
1329
- var m = captures.length;
1330
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1331
- if (namedCaptures !== undefined) {
1332
- namedCaptures = toObject(namedCaptures);
1333
- symbols = SUBSTITUTION_SYMBOLS;
1334
- }
1335
- return nativeReplace.call(replacement, symbols, function (match, ch) {
1336
- var capture;
1337
- switch (ch.charAt(0)) {
1338
- case '$': return '$';
1339
- case '&': return matched;
1340
- case '`': return str.slice(0, position);
1341
- case "'": return str.slice(tailPos);
1342
- case '<':
1343
- capture = namedCaptures[ch.slice(1, -1)];
1344
- break;
1345
- default: // \d\d?
1346
- var n = +ch;
1347
- if (n === 0) return match;
1348
- if (n > m) {
1349
- var f = floor$1(n / 10);
1350
- if (f === 0) return match;
1351
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1352
- return match;
1353
- }
1354
- capture = captures[n - 1];
1355
- }
1356
- return capture === undefined ? '' : capture;
1357
- });
1358
- }
1359
- });
1360
-
1361
- // `SameValue` abstract operation
1362
- // https://tc39.github.io/ecma262/#sec-samevalue
1363
- var sameValue = Object.is || function is(x, y) {
1364
- // eslint-disable-next-line no-self-compare
1365
- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
1366
- };
1367
-
1368
- // @@search logic
1369
- fixRegexpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {
1370
- return [
1371
- // `String.prototype.search` method
1372
- // https://tc39.github.io/ecma262/#sec-string.prototype.search
1373
- function search(regexp) {
1374
- var O = requireObjectCoercible(this);
1375
- var searcher = regexp == undefined ? undefined : regexp[SEARCH];
1376
- return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
1377
- },
1378
- // `RegExp.prototype[@@search]` method
1379
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
1380
- function (regexp) {
1381
- var res = maybeCallNative(nativeSearch, regexp, this);
1382
- if (res.done) return res.value;
1383
-
1384
- var rx = anObject(regexp);
1385
- var S = String(this);
1386
-
1387
- var previousLastIndex = rx.lastIndex;
1388
- if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
1389
- var result = regexpExecAbstract(rx, S);
1390
- if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
1391
- return result === null ? -1 : result.index;
1392
- }
1393
- ];
1394
- });
1395
-
1396
- function _classCallCheck(instance, Constructor) {
1397
- if (!(instance instanceof Constructor)) {
1398
- throw new TypeError("Cannot call a class as a function");
1399
- }
1400
- }
1401
-
1402
- function _defineProperties(target, props) {
1403
- for (var i = 0; i < props.length; i++) {
1404
- var descriptor = props[i];
1405
- descriptor.enumerable = descriptor.enumerable || false;
1406
- descriptor.configurable = true;
1407
- if ("value" in descriptor) descriptor.writable = true;
1408
- Object.defineProperty(target, descriptor.key, descriptor);
1409
- }
1410
- }
1411
-
1412
- function _createClass(Constructor, protoProps, staticProps) {
1413
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1414
- if (staticProps) _defineProperties(Constructor, staticProps);
1415
- return Constructor;
1416
- }
1417
-
1418
- function _inherits(subClass, superClass) {
1419
- if (typeof superClass !== "function" && superClass !== null) {
1420
- throw new TypeError("Super expression must either be null or a function");
1421
- }
1422
-
1423
- subClass.prototype = Object.create(superClass && superClass.prototype, {
1424
- constructor: {
1425
- value: subClass,
1426
- writable: true,
1427
- configurable: true
1428
- }
1429
- });
1430
- if (superClass) _setPrototypeOf(subClass, superClass);
1431
- }
1432
-
1433
- function _getPrototypeOf(o) {
1434
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
1435
- return o.__proto__ || Object.getPrototypeOf(o);
1436
- };
1437
- return _getPrototypeOf(o);
1438
- }
1439
-
1440
- function _setPrototypeOf(o, p) {
1441
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
1442
- o.__proto__ = p;
1443
- return o;
1444
- };
1445
-
1446
- return _setPrototypeOf(o, p);
1447
- }
1448
-
1449
- function _isNativeReflectConstruct() {
1450
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1451
- if (Reflect.construct.sham) return false;
1452
- if (typeof Proxy === "function") return true;
1453
-
1454
- try {
1455
- Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
1456
- return true;
1457
- } catch (e) {
1458
- return false;
1459
- }
1460
- }
1461
-
1462
- function _assertThisInitialized(self) {
1463
- if (self === void 0) {
1464
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1465
- }
1466
-
1467
- return self;
1468
- }
1469
-
1470
- function _possibleConstructorReturn(self, call) {
1471
- if (call && (typeof call === "object" || typeof call === "function")) {
1472
- return call;
1473
- }
1474
-
1475
- return _assertThisInitialized(self);
1476
- }
1477
-
1478
- function _createSuper(Derived) {
1479
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
1480
-
1481
- return function _createSuperInternal() {
1482
- var Super = _getPrototypeOf(Derived),
1483
- result;
1484
-
1485
- if (hasNativeReflectConstruct) {
1486
- var NewTarget = _getPrototypeOf(this).constructor;
1487
-
1488
- result = Reflect.construct(Super, arguments, NewTarget);
1489
- } else {
1490
- result = Super.apply(this, arguments);
1491
- }
1492
-
1493
- return _possibleConstructorReturn(this, result);
1494
- };
1495
- }
1496
-
1497
- function _superPropBase(object, property) {
1498
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
1499
- object = _getPrototypeOf(object);
1500
- if (object === null) break;
1501
- }
1502
-
1503
- return object;
1504
- }
1505
-
1506
- function _get(target, property, receiver) {
1507
- if (typeof Reflect !== "undefined" && Reflect.get) {
1508
- _get = Reflect.get;
1509
- } else {
1510
- _get = function _get(target, property, receiver) {
1511
- var base = _superPropBase(target, property);
1512
-
1513
- if (!base) return;
1514
- var desc = Object.getOwnPropertyDescriptor(base, property);
1515
-
1516
- if (desc.get) {
1517
- return desc.get.call(receiver);
1518
- }
1519
-
1520
- return desc.value;
1521
- };
1522
- }
1523
-
1524
- return _get(target, property, receiver || target);
1525
- }
1526
-
1527
- function _slicedToArray(arr, i) {
1528
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1529
- }
1530
-
1531
- function _arrayWithHoles(arr) {
1532
- if (Array.isArray(arr)) return arr;
1533
- }
1534
-
1535
- function _iterableToArrayLimit(arr, i) {
1536
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
1537
- var _arr = [];
1538
- var _n = true;
1539
- var _d = false;
1540
- var _e = undefined;
1541
-
1542
- try {
1543
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
1544
- _arr.push(_s.value);
1545
-
1546
- if (i && _arr.length === i) break;
1547
- }
1548
- } catch (err) {
1549
- _d = true;
1550
- _e = err;
1551
- } finally {
1552
- try {
1553
- if (!_n && _i["return"] != null) _i["return"]();
1554
- } finally {
1555
- if (_d) throw _e;
1556
- }
1557
- }
1558
-
1559
- return _arr;
1560
- }
1561
-
1562
- function _unsupportedIterableToArray(o, minLen) {
1563
- if (!o) return;
1564
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1565
- var n = Object.prototype.toString.call(o).slice(8, -1);
1566
- if (n === "Object" && o.constructor) n = o.constructor.name;
1567
- if (n === "Map" || n === "Set") return Array.from(o);
1568
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1569
- }
1570
-
1571
- function _arrayLikeToArray(arr, len) {
1572
- if (len == null || len > arr.length) len = arr.length;
1573
-
1574
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1575
-
1576
- return arr2;
1577
- }
1578
-
1579
- function _nonIterableRest() {
1580
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1581
- }
1582
-
1583
- /**
1584
- * @author: general
1585
- * @website: note.generals.space
1586
- * @email: generals.space@gmail.com
1587
- * @github: https://github.com/generals-space/bootstrap-table-addrbar
1588
- * @update: zhixin wen <wenzhixin2010@gmail.com>
1589
- */
1590
-
1591
- /*
1592
- * function: 获取浏览器地址栏中的指定参数.
1593
- * key: 参数名
1594
- * url: 默认为当前地址栏
1595
- */
1596
-
1597
- function _GET(key) {
1598
- var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.search;
1599
-
1600
- /*
1601
- * 注意这里正则表达式的书写方法
1602
- * (^|&)key匹配: 直接以key开始或以&key开始的字符串
1603
- * 同理(&|$)表示以&结束或是直接结束的字符串
1604
- * ...当然, 我并不知道这种用法.
1605
- */
1606
- var reg = new RegExp("(^|&)".concat(key, "=([^&]*)(&|$)"));
1607
- var result = url.substr(1).match(reg);
1608
-
1609
- if (result) {
1610
- return decodeURIComponent(result[2]);
1611
- }
1612
-
1613
- return null;
1614
- }
1615
- /*
1616
- * function: 根据给定参数生成url地址
1617
- * var dic = {name: 'genreal', age: 24}
1618
- * var url = 'https://www.baidu.com?age=22';
1619
- * _buildUrl(dic, url);
1620
- * 将得到"https://www.baidu.com?age=24&name=genreal"
1621
- * 哦, 忽略先后顺序吧...
1622
- *
1623
- * 补充: 可以参考浏览器URLSearchParams对象, 更加方便和强大.
1624
- * 考虑到兼容性, 暂时不使用这个工具.
1625
- */
1626
-
1627
-
1628
- function _buildUrl(dict) {
1629
- var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.search;
1630
-
1631
- for (var _i = 0, _Object$entries = Object.entries(dict); _i < _Object$entries.length; _i++) {
1632
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
1633
- key = _Object$entries$_i[0],
1634
- val = _Object$entries$_i[1];
1635
-
1636
- // 搜索name=general这种形式的字符串(&是分隔符)
1637
- var pattern = "".concat(key, "=([^&]*)");
1638
- var targetStr = "".concat(key, "=").concat(val);
1639
- if (val === undefined) continue;
1640
- /*
1641
- * 如果目标url中包含了key键, 我们需要将它替换成我们自己的val
1642
- * 不然就直接添加好了.
1643
- */
1644
-
1645
- if (url.match(pattern)) {
1646
- var tmp = new RegExp("(".concat(key, "=)([^&]*)"), 'gi');
1647
- url = url.replace(tmp, targetStr);
1648
- } else {
1649
- var seperator = url.match('[?]') ? '&' : '?';
1650
- url = url + seperator + targetStr;
1651
- }
1652
- }
1653
-
1654
- if (location.hash) {
1655
- url += location.hash;
1656
- }
1657
-
1658
- return url;
1659
- }
1660
- /*
1661
- * function: _updateHistoryState
1662
- * var _prefix = this.options.addrPrefix || ''
1663
- * var table = this
1664
- * _updateHistoryState( table,_prefix)
1665
- * returns void
1666
- */
1667
-
1668
-
1669
- function _updateHistoryState(table, _prefix) {
1670
- var params = {};
1671
- params["".concat(_prefix, "page")] = table.options.pageNumber;
1672
- params["".concat(_prefix, "size")] = table.options.pageSize;
1673
- params["".concat(_prefix, "order")] = table.options.sortOrder;
1674
- params["".concat(_prefix, "sort")] = table.options.sortName;
1675
- params["".concat(_prefix, "search")] = table.options.searchText;
1676
- window.history.pushState({}, '', _buildUrl(params));
1677
- }
1678
-
1679
- $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
1680
- addrbar: false,
1681
- addrPrefix: ''
1682
- });
1683
-
1684
- $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1685
- _inherits(_class, _$$BootstrapTable);
1686
-
1687
- var _super = _createSuper(_class);
1688
-
1689
- function _class() {
1690
- _classCallCheck(this, _class);
1691
-
1692
- return _super.apply(this, arguments);
1693
- }
1694
-
1695
- _createClass(_class, [{
1696
- key: "init",
1697
- value: function init() {
1698
- var _this = this,
1699
- _get2;
1700
-
1701
- if (this.options.pagination && this.options.addrbar) {
1702
- // 标志位, 初始加载后关闭
1703
- this.addrbarInit = true;
1704
- this.options.pageNumber = +this.getDefaultOptionValue('pageNumber', 'page');
1705
- this.options.pageSize = +this.getDefaultOptionValue('pageSize', 'size');
1706
- this.options.sortOrder = this.getDefaultOptionValue('sortOrder', 'order');
1707
- this.options.sortName = this.getDefaultOptionValue('sortName', 'sort');
1708
- this.options.searchText = this.getDefaultOptionValue('searchText', 'search');
1709
-
1710
- var _prefix = this.options.addrPrefix || '';
1711
-
1712
- var _onLoadSuccess = this.options.onLoadSuccess;
1713
- var _onPageChange = this.options.onPageChange;
1714
-
1715
- this.options.onLoadSuccess = function (data) {
1716
- if (_this.addrbarInit) {
1717
- _this.addrbarInit = false;
1718
- } else {
1719
- _updateHistoryState(_this, _prefix);
1720
- }
1721
-
1722
- if (_onLoadSuccess) {
1723
- _onLoadSuccess.call(_this, data);
1724
- }
1725
- };
1726
-
1727
- this.options.onPageChange = function (number, size) {
1728
- _updateHistoryState(_this, _prefix);
1729
-
1730
- if (_onPageChange) {
1731
- _onPageChange.call(_this, number, size);
1732
- }
1733
- };
1734
- }
1735
-
1736
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1737
- args[_key] = arguments[_key];
1738
- }
1739
-
1740
- (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
1741
- }
1742
- /*
1743
- * Priority order:
1744
- * The value specified by the user has the highest priority.
1745
- * If it is not specified, it will be obtained from the address bar.
1746
- * If it is not obtained, the default value will be used.
1747
- */
1748
-
1749
- }, {
1750
- key: "getDefaultOptionValue",
1751
- value: function getDefaultOptionValue(optionName, prefixName) {
1752
- if (this.options[optionName] !== $__default['default'].BootstrapTable.DEFAULTS[optionName]) {
1753
- return this.options[optionName];
1754
- }
1755
-
1756
- return _GET("".concat(this.options.addrPrefix || '').concat(prefixName)) || $__default['default'].BootstrapTable.DEFAULTS[optionName];
1757
- }
1758
- }]);
1759
-
1760
- return _class;
1761
- }($__default['default'].BootstrapTable);
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var $__default = /*#__PURE__*/_interopDefaultLegacy($);
10
+
11
+ function _classCallCheck(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+
17
+ function _defineProperties(target, props) {
18
+ for (var i = 0; i < props.length; i++) {
19
+ var descriptor = props[i];
20
+ descriptor.enumerable = descriptor.enumerable || false;
21
+ descriptor.configurable = true;
22
+ if ("value" in descriptor) descriptor.writable = true;
23
+ Object.defineProperty(target, descriptor.key, descriptor);
24
+ }
25
+ }
26
+
27
+ function _createClass(Constructor, protoProps, staticProps) {
28
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29
+ if (staticProps) _defineProperties(Constructor, staticProps);
30
+ return Constructor;
31
+ }
32
+
33
+ function _inherits(subClass, superClass) {
34
+ if (typeof superClass !== "function" && superClass !== null) {
35
+ throw new TypeError("Super expression must either be null or a function");
36
+ }
37
+
38
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
39
+ constructor: {
40
+ value: subClass,
41
+ writable: true,
42
+ configurable: true
43
+ }
44
+ });
45
+ if (superClass) _setPrototypeOf(subClass, superClass);
46
+ }
47
+
48
+ function _getPrototypeOf(o) {
49
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
50
+ return o.__proto__ || Object.getPrototypeOf(o);
51
+ };
52
+ return _getPrototypeOf(o);
53
+ }
54
+
55
+ function _setPrototypeOf(o, p) {
56
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
57
+ o.__proto__ = p;
58
+ return o;
59
+ };
60
+
61
+ return _setPrototypeOf(o, p);
62
+ }
63
+
64
+ function _isNativeReflectConstruct() {
65
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
66
+ if (Reflect.construct.sham) return false;
67
+ if (typeof Proxy === "function") return true;
68
+
69
+ try {
70
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
71
+ return true;
72
+ } catch (e) {
73
+ return false;
74
+ }
75
+ }
76
+
77
+ function _assertThisInitialized(self) {
78
+ if (self === void 0) {
79
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
80
+ }
81
+
82
+ return self;
83
+ }
84
+
85
+ function _possibleConstructorReturn(self, call) {
86
+ if (call && (typeof call === "object" || typeof call === "function")) {
87
+ return call;
88
+ }
89
+
90
+ return _assertThisInitialized(self);
91
+ }
92
+
93
+ function _createSuper(Derived) {
94
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
95
+
96
+ return function _createSuperInternal() {
97
+ var Super = _getPrototypeOf(Derived),
98
+ result;
99
+
100
+ if (hasNativeReflectConstruct) {
101
+ var NewTarget = _getPrototypeOf(this).constructor;
102
+
103
+ result = Reflect.construct(Super, arguments, NewTarget);
104
+ } else {
105
+ result = Super.apply(this, arguments);
106
+ }
107
+
108
+ return _possibleConstructorReturn(this, result);
109
+ };
110
+ }
111
+
112
+ function _superPropBase(object, property) {
113
+ while (!Object.prototype.hasOwnProperty.call(object, property)) {
114
+ object = _getPrototypeOf(object);
115
+ if (object === null) break;
116
+ }
117
+
118
+ return object;
119
+ }
120
+
121
+ function _get(target, property, receiver) {
122
+ if (typeof Reflect !== "undefined" && Reflect.get) {
123
+ _get = Reflect.get;
124
+ } else {
125
+ _get = function _get(target, property, receiver) {
126
+ var base = _superPropBase(target, property);
127
+
128
+ if (!base) return;
129
+ var desc = Object.getOwnPropertyDescriptor(base, property);
130
+
131
+ if (desc.get) {
132
+ return desc.get.call(receiver);
133
+ }
134
+
135
+ return desc.value;
136
+ };
137
+ }
138
+
139
+ return _get(target, property, receiver || target);
140
+ }
141
+
142
+ function _slicedToArray(arr, i) {
143
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
144
+ }
145
+
146
+ function _arrayWithHoles(arr) {
147
+ if (Array.isArray(arr)) return arr;
148
+ }
149
+
150
+ function _iterableToArrayLimit(arr, i) {
151
+ if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
152
+ var _arr = [];
153
+ var _n = true;
154
+ var _d = false;
155
+ var _e = undefined;
156
+
157
+ try {
158
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
159
+ _arr.push(_s.value);
160
+
161
+ if (i && _arr.length === i) break;
162
+ }
163
+ } catch (err) {
164
+ _d = true;
165
+ _e = err;
166
+ } finally {
167
+ try {
168
+ if (!_n && _i["return"] != null) _i["return"]();
169
+ } finally {
170
+ if (_d) throw _e;
171
+ }
172
+ }
173
+
174
+ return _arr;
175
+ }
176
+
177
+ function _unsupportedIterableToArray(o, minLen) {
178
+ if (!o) return;
179
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
180
+ var n = Object.prototype.toString.call(o).slice(8, -1);
181
+ if (n === "Object" && o.constructor) n = o.constructor.name;
182
+ if (n === "Map" || n === "Set") return Array.from(o);
183
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
184
+ }
185
+
186
+ function _arrayLikeToArray(arr, len) {
187
+ if (len == null || len > arr.length) len = arr.length;
188
+
189
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
190
+
191
+ return arr2;
192
+ }
193
+
194
+ function _nonIterableRest() {
195
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
196
+ }
197
+
198
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
199
+
200
+ function createCommonjsModule(fn, module) {
201
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
202
+ }
203
+
204
+ var check = function (it) {
205
+ return it && it.Math == Math && it;
206
+ };
207
+
208
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
209
+ var global_1 =
210
+ /* global globalThis -- safe */
211
+ check(typeof globalThis == 'object' && globalThis) ||
212
+ check(typeof window == 'object' && window) ||
213
+ check(typeof self == 'object' && self) ||
214
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
215
+ // eslint-disable-next-line no-new-func -- fallback
216
+ (function () { return this; })() || Function('return this')();
217
+
218
+ var fails = function (exec) {
219
+ try {
220
+ return !!exec();
221
+ } catch (error) {
222
+ return true;
223
+ }
224
+ };
225
+
226
+ // Detect IE8's incomplete defineProperty implementation
227
+ var descriptors = !fails(function () {
228
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
229
+ });
230
+
231
+ var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
232
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
233
+
234
+ // Nashorn ~ JDK8 bug
235
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
236
+
237
+ // `Object.prototype.propertyIsEnumerable` method implementation
238
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
239
+ var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
240
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
241
+ return !!descriptor && descriptor.enumerable;
242
+ } : nativePropertyIsEnumerable;
243
+
244
+ var objectPropertyIsEnumerable = {
245
+ f: f$4
246
+ };
247
+
248
+ var createPropertyDescriptor = function (bitmap, value) {
249
+ return {
250
+ enumerable: !(bitmap & 1),
251
+ configurable: !(bitmap & 2),
252
+ writable: !(bitmap & 4),
253
+ value: value
254
+ };
255
+ };
256
+
257
+ var toString = {}.toString;
258
+
259
+ var classofRaw = function (it) {
260
+ return toString.call(it).slice(8, -1);
261
+ };
262
+
263
+ var split = ''.split;
264
+
265
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
266
+ var indexedObject = fails(function () {
267
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
268
+ // eslint-disable-next-line no-prototype-builtins -- safe
269
+ return !Object('z').propertyIsEnumerable(0);
270
+ }) ? function (it) {
271
+ return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
272
+ } : Object;
273
+
274
+ // `RequireObjectCoercible` abstract operation
275
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
276
+ var requireObjectCoercible = function (it) {
277
+ if (it == undefined) throw TypeError("Can't call method on " + it);
278
+ return it;
279
+ };
280
+
281
+ // toObject with fallback for non-array-like ES3 strings
282
+
283
+
284
+
285
+ var toIndexedObject = function (it) {
286
+ return indexedObject(requireObjectCoercible(it));
287
+ };
288
+
289
+ var isObject = function (it) {
290
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
291
+ };
292
+
293
+ // `ToPrimitive` abstract operation
294
+ // https://tc39.es/ecma262/#sec-toprimitive
295
+ // instead of the ES6 spec version, we didn't implement @@toPrimitive case
296
+ // and the second argument - flag - preferred type is a string
297
+ var toPrimitive = function (input, PREFERRED_STRING) {
298
+ if (!isObject(input)) return input;
299
+ var fn, val;
300
+ if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
301
+ if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
302
+ if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
303
+ throw TypeError("Can't convert object to primitive value");
304
+ };
305
+
306
+ var hasOwnProperty = {}.hasOwnProperty;
307
+
308
+ var has$1 = function (it, key) {
309
+ return hasOwnProperty.call(it, key);
310
+ };
311
+
312
+ var document = global_1.document;
313
+ // typeof document.createElement is 'object' in old IE
314
+ var EXISTS = isObject(document) && isObject(document.createElement);
315
+
316
+ var documentCreateElement = function (it) {
317
+ return EXISTS ? document.createElement(it) : {};
318
+ };
319
+
320
+ // Thank's IE8 for his funny defineProperty
321
+ var ie8DomDefine = !descriptors && !fails(function () {
322
+ return Object.defineProperty(documentCreateElement('div'), 'a', {
323
+ get: function () { return 7; }
324
+ }).a != 7;
325
+ });
326
+
327
+ var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
328
+
329
+ // `Object.getOwnPropertyDescriptor` method
330
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
331
+ var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
332
+ O = toIndexedObject(O);
333
+ P = toPrimitive(P, true);
334
+ if (ie8DomDefine) try {
335
+ return nativeGetOwnPropertyDescriptor(O, P);
336
+ } catch (error) { /* empty */ }
337
+ if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
338
+ };
339
+
340
+ var objectGetOwnPropertyDescriptor = {
341
+ f: f$3
342
+ };
343
+
344
+ var anObject = function (it) {
345
+ if (!isObject(it)) {
346
+ throw TypeError(String(it) + ' is not an object');
347
+ } return it;
348
+ };
349
+
350
+ var nativeDefineProperty = Object.defineProperty;
351
+
352
+ // `Object.defineProperty` method
353
+ // https://tc39.es/ecma262/#sec-object.defineproperty
354
+ var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
355
+ anObject(O);
356
+ P = toPrimitive(P, true);
357
+ anObject(Attributes);
358
+ if (ie8DomDefine) try {
359
+ return nativeDefineProperty(O, P, Attributes);
360
+ } catch (error) { /* empty */ }
361
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
362
+ if ('value' in Attributes) O[P] = Attributes.value;
363
+ return O;
364
+ };
365
+
366
+ var objectDefineProperty = {
367
+ f: f$2
368
+ };
369
+
370
+ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
371
+ return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
372
+ } : function (object, key, value) {
373
+ object[key] = value;
374
+ return object;
375
+ };
376
+
377
+ var setGlobal = function (key, value) {
378
+ try {
379
+ createNonEnumerableProperty(global_1, key, value);
380
+ } catch (error) {
381
+ global_1[key] = value;
382
+ } return value;
383
+ };
384
+
385
+ var SHARED = '__core-js_shared__';
386
+ var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
387
+
388
+ var sharedStore = store$1;
389
+
390
+ var functionToString = Function.toString;
391
+
392
+ // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
393
+ if (typeof sharedStore.inspectSource != 'function') {
394
+ sharedStore.inspectSource = function (it) {
395
+ return functionToString.call(it);
396
+ };
397
+ }
398
+
399
+ var inspectSource = sharedStore.inspectSource;
400
+
401
+ var WeakMap$1 = global_1.WeakMap;
402
+
403
+ var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
404
+
405
+ var shared = createCommonjsModule(function (module) {
406
+ (module.exports = function (key, value) {
407
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
408
+ })('versions', []).push({
409
+ version: '3.9.1',
410
+ mode: 'global',
411
+ copyright: 2021 Denis Pushkarev (zloirock.ru)'
412
+ });
413
+ });
414
+
415
+ var id = 0;
416
+ var postfix = Math.random();
417
+
418
+ var uid = function (key) {
419
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
420
+ };
421
+
422
+ var keys$1 = shared('keys');
423
+
424
+ var sharedKey = function (key) {
425
+ return keys$1[key] || (keys$1[key] = uid(key));
426
+ };
427
+
428
+ var hiddenKeys$1 = {};
429
+
430
+ var WeakMap = global_1.WeakMap;
431
+ var set, get, has;
432
+
433
+ var enforce = function (it) {
434
+ return has(it) ? get(it) : set(it, {});
435
+ };
436
+
437
+ var getterFor = function (TYPE) {
438
+ return function (it) {
439
+ var state;
440
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
441
+ throw TypeError('Incompatible receiver, ' + TYPE + ' required');
442
+ } return state;
443
+ };
444
+ };
445
+
446
+ if (nativeWeakMap) {
447
+ var store = sharedStore.state || (sharedStore.state = new WeakMap());
448
+ var wmget = store.get;
449
+ var wmhas = store.has;
450
+ var wmset = store.set;
451
+ set = function (it, metadata) {
452
+ metadata.facade = it;
453
+ wmset.call(store, it, metadata);
454
+ return metadata;
455
+ };
456
+ get = function (it) {
457
+ return wmget.call(store, it) || {};
458
+ };
459
+ has = function (it) {
460
+ return wmhas.call(store, it);
461
+ };
462
+ } else {
463
+ var STATE = sharedKey('state');
464
+ hiddenKeys$1[STATE] = true;
465
+ set = function (it, metadata) {
466
+ metadata.facade = it;
467
+ createNonEnumerableProperty(it, STATE, metadata);
468
+ return metadata;
469
+ };
470
+ get = function (it) {
471
+ return has$1(it, STATE) ? it[STATE] : {};
472
+ };
473
+ has = function (it) {
474
+ return has$1(it, STATE);
475
+ };
476
+ }
477
+
478
+ var internalState = {
479
+ set: set,
480
+ get: get,
481
+ has: has,
482
+ enforce: enforce,
483
+ getterFor: getterFor
484
+ };
485
+
486
+ var redefine = createCommonjsModule(function (module) {
487
+ var getInternalState = internalState.get;
488
+ var enforceInternalState = internalState.enforce;
489
+ var TEMPLATE = String(String).split('String');
490
+
491
+ (module.exports = function (O, key, value, options) {
492
+ var unsafe = options ? !!options.unsafe : false;
493
+ var simple = options ? !!options.enumerable : false;
494
+ var noTargetGet = options ? !!options.noTargetGet : false;
495
+ var state;
496
+ if (typeof value == 'function') {
497
+ if (typeof key == 'string' && !has$1(value, 'name')) {
498
+ createNonEnumerableProperty(value, 'name', key);
499
+ }
500
+ state = enforceInternalState(value);
501
+ if (!state.source) {
502
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
503
+ }
504
+ }
505
+ if (O === global_1) {
506
+ if (simple) O[key] = value;
507
+ else setGlobal(key, value);
508
+ return;
509
+ } else if (!unsafe) {
510
+ delete O[key];
511
+ } else if (!noTargetGet && O[key]) {
512
+ simple = true;
513
+ }
514
+ if (simple) O[key] = value;
515
+ else createNonEnumerableProperty(O, key, value);
516
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
517
+ })(Function.prototype, 'toString', function toString() {
518
+ return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
519
+ });
520
+ });
521
+
522
+ var path = global_1;
523
+
524
+ var aFunction = function (variable) {
525
+ return typeof variable == 'function' ? variable : undefined;
526
+ };
527
+
528
+ var getBuiltIn = function (namespace, method) {
529
+ return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
530
+ : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
531
+ };
532
+
533
+ var ceil = Math.ceil;
534
+ var floor$1 = Math.floor;
535
+
536
+ // `ToInteger` abstract operation
537
+ // https://tc39.es/ecma262/#sec-tointeger
538
+ var toInteger = function (argument) {
539
+ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
540
+ };
541
+
542
+ var min$2 = Math.min;
543
+
544
+ // `ToLength` abstract operation
545
+ // https://tc39.es/ecma262/#sec-tolength
546
+ var toLength = function (argument) {
547
+ return argument > 0 ? min$2(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
548
+ };
549
+
550
+ var max$1 = Math.max;
551
+ var min$1 = Math.min;
552
+
553
+ // Helper for a popular repeating case of the spec:
554
+ // Let integer be ? ToInteger(index).
555
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
556
+ var toAbsoluteIndex = function (index, length) {
557
+ var integer = toInteger(index);
558
+ return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
559
+ };
560
+
561
+ // `Array.prototype.{ indexOf, includes }` methods implementation
562
+ var createMethod$2 = function (IS_INCLUDES) {
563
+ return function ($this, el, fromIndex) {
564
+ var O = toIndexedObject($this);
565
+ var length = toLength(O.length);
566
+ var index = toAbsoluteIndex(fromIndex, length);
567
+ var value;
568
+ // Array#includes uses SameValueZero equality algorithm
569
+ // eslint-disable-next-line no-self-compare -- NaN check
570
+ if (IS_INCLUDES && el != el) while (length > index) {
571
+ value = O[index++];
572
+ // eslint-disable-next-line no-self-compare -- NaN check
573
+ if (value != value) return true;
574
+ // Array#indexOf ignores holes, Array#includes - not
575
+ } else for (;length > index; index++) {
576
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
577
+ } return !IS_INCLUDES && -1;
578
+ };
579
+ };
580
+
581
+ var arrayIncludes = {
582
+ // `Array.prototype.includes` method
583
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
584
+ includes: createMethod$2(true),
585
+ // `Array.prototype.indexOf` method
586
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
587
+ indexOf: createMethod$2(false)
588
+ };
589
+
590
+ var indexOf = arrayIncludes.indexOf;
591
+
592
+
593
+ var objectKeysInternal = function (object, names) {
594
+ var O = toIndexedObject(object);
595
+ var i = 0;
596
+ var result = [];
597
+ var key;
598
+ for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
599
+ // Don't enum bug & hidden keys
600
+ while (names.length > i) if (has$1(O, key = names[i++])) {
601
+ ~indexOf(result, key) || result.push(key);
602
+ }
603
+ return result;
604
+ };
605
+
606
+ // IE8- don't enum bug keys
607
+ var enumBugKeys = [
608
+ 'constructor',
609
+ 'hasOwnProperty',
610
+ 'isPrototypeOf',
611
+ 'propertyIsEnumerable',
612
+ 'toLocaleString',
613
+ 'toString',
614
+ 'valueOf'
615
+ ];
616
+
617
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
618
+
619
+ // `Object.getOwnPropertyNames` method
620
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
621
+ var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
622
+ return objectKeysInternal(O, hiddenKeys);
623
+ };
624
+
625
+ var objectGetOwnPropertyNames = {
626
+ f: f$1
627
+ };
628
+
629
+ var f = Object.getOwnPropertySymbols;
630
+
631
+ var objectGetOwnPropertySymbols = {
632
+ f: f
633
+ };
634
+
635
+ // all object keys, includes non-enumerable and symbols
636
+ var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
637
+ var keys = objectGetOwnPropertyNames.f(anObject(it));
638
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
639
+ return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
640
+ };
641
+
642
+ var copyConstructorProperties = function (target, source) {
643
+ var keys = ownKeys(source);
644
+ var defineProperty = objectDefineProperty.f;
645
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
646
+ for (var i = 0; i < keys.length; i++) {
647
+ var key = keys[i];
648
+ if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
649
+ }
650
+ };
651
+
652
+ var replacement = /#|\.prototype\./;
653
+
654
+ var isForced = function (feature, detection) {
655
+ var value = data[normalize(feature)];
656
+ return value == POLYFILL ? true
657
+ : value == NATIVE ? false
658
+ : typeof detection == 'function' ? fails(detection)
659
+ : !!detection;
660
+ };
661
+
662
+ var normalize = isForced.normalize = function (string) {
663
+ return String(string).replace(replacement, '.').toLowerCase();
664
+ };
665
+
666
+ var data = isForced.data = {};
667
+ var NATIVE = isForced.NATIVE = 'N';
668
+ var POLYFILL = isForced.POLYFILL = 'P';
669
+
670
+ var isForced_1 = isForced;
671
+
672
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
673
+
674
+
675
+
676
+
677
+
678
+
679
+ /*
680
+ options.target - name of the target object
681
+ options.global - target is the global object
682
+ options.stat - export as static methods of target
683
+ options.proto - export as prototype methods of target
684
+ options.real - real prototype method for the `pure` version
685
+ options.forced - export even if the native feature is available
686
+ options.bind - bind methods to the target, required for the `pure` version
687
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
688
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
689
+ options.sham - add a flag to not completely full polyfills
690
+ options.enumerable - export as enumerable property
691
+ options.noTargetGet - prevent calling a getter on target
692
+ */
693
+ var _export = function (options, source) {
694
+ var TARGET = options.target;
695
+ var GLOBAL = options.global;
696
+ var STATIC = options.stat;
697
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
698
+ if (GLOBAL) {
699
+ target = global_1;
700
+ } else if (STATIC) {
701
+ target = global_1[TARGET] || setGlobal(TARGET, {});
702
+ } else {
703
+ target = (global_1[TARGET] || {}).prototype;
704
+ }
705
+ if (target) for (key in source) {
706
+ sourceProperty = source[key];
707
+ if (options.noTargetGet) {
708
+ descriptor = getOwnPropertyDescriptor(target, key);
709
+ targetProperty = descriptor && descriptor.value;
710
+ } else targetProperty = target[key];
711
+ FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
712
+ // contained in target
713
+ if (!FORCED && targetProperty !== undefined) {
714
+ if (typeof sourceProperty === typeof targetProperty) continue;
715
+ copyConstructorProperties(sourceProperty, targetProperty);
716
+ }
717
+ // add a flag to not completely full polyfills
718
+ if (options.sham || (targetProperty && targetProperty.sham)) {
719
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
720
+ }
721
+ // extend global
722
+ redefine(target, key, sourceProperty, options);
723
+ }
724
+ };
725
+
726
+ // `RegExp.prototype.flags` getter implementation
727
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
728
+ var regexpFlags = function () {
729
+ var that = anObject(this);
730
+ var result = '';
731
+ if (that.global) result += 'g';
732
+ if (that.ignoreCase) result += 'i';
733
+ if (that.multiline) result += 'm';
734
+ if (that.dotAll) result += 's';
735
+ if (that.unicode) result += 'u';
736
+ if (that.sticky) result += 'y';
737
+ return result;
738
+ };
739
+
740
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
741
+ // so we use an intermediate function.
742
+ function RE(s, f) {
743
+ return RegExp(s, f);
744
+ }
745
+
746
+ var UNSUPPORTED_Y$2 = fails(function () {
747
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
748
+ var re = RE('a', 'y');
749
+ re.lastIndex = 2;
750
+ return re.exec('abcd') != null;
751
+ });
752
+
753
+ var BROKEN_CARET = fails(function () {
754
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
755
+ var re = RE('^r', 'gy');
756
+ re.lastIndex = 2;
757
+ return re.exec('str') != null;
758
+ });
759
+
760
+ var regexpStickyHelpers = {
761
+ UNSUPPORTED_Y: UNSUPPORTED_Y$2,
762
+ BROKEN_CARET: BROKEN_CARET
763
+ };
764
+
765
+ var nativeExec = RegExp.prototype.exec;
766
+ // This always refers to the native implementation, because the
767
+ // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
768
+ // which loads this file before patching the method.
769
+ var nativeReplace = String.prototype.replace;
770
+
771
+ var patchedExec = nativeExec;
772
+
773
+ var UPDATES_LAST_INDEX_WRONG = (function () {
774
+ var re1 = /a/;
775
+ var re2 = /b*/g;
776
+ nativeExec.call(re1, 'a');
777
+ nativeExec.call(re2, 'a');
778
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
779
+ })();
780
+
781
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
782
+
783
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
784
+ // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
785
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
786
+
787
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
788
+
789
+ if (PATCH) {
790
+ patchedExec = function exec(str) {
791
+ var re = this;
792
+ var lastIndex, reCopy, match, i;
793
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
794
+ var flags = regexpFlags.call(re);
795
+ var source = re.source;
796
+ var charsAdded = 0;
797
+ var strCopy = str;
798
+
799
+ if (sticky) {
800
+ flags = flags.replace('y', '');
801
+ if (flags.indexOf('g') === -1) {
802
+ flags += 'g';
803
+ }
804
+
805
+ strCopy = String(str).slice(re.lastIndex);
806
+ // Support anchored sticky behavior.
807
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
808
+ source = '(?: ' + source + ')';
809
+ strCopy = ' ' + strCopy;
810
+ charsAdded++;
811
+ }
812
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
813
+ // simulate the 'y' flag.
814
+ reCopy = new RegExp('^(?:' + source + ')', flags);
815
+ }
816
+
817
+ if (NPCG_INCLUDED) {
818
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
819
+ }
820
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
821
+
822
+ match = nativeExec.call(sticky ? reCopy : re, strCopy);
823
+
824
+ if (sticky) {
825
+ if (match) {
826
+ match.input = match.input.slice(charsAdded);
827
+ match[0] = match[0].slice(charsAdded);
828
+ match.index = re.lastIndex;
829
+ re.lastIndex += match[0].length;
830
+ } else re.lastIndex = 0;
831
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
832
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
833
+ }
834
+ if (NPCG_INCLUDED && match && match.length > 1) {
835
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
836
+ // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
837
+ nativeReplace.call(match[0], reCopy, function () {
838
+ for (i = 1; i < arguments.length - 2; i++) {
839
+ if (arguments[i] === undefined) match[i] = undefined;
840
+ }
841
+ });
842
+ }
843
+
844
+ return match;
845
+ };
846
+ }
847
+
848
+ var regexpExec = patchedExec;
849
+
850
+ // `RegExp.prototype.exec` method
851
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
852
+ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
853
+ exec: regexpExec
854
+ });
855
+
856
+ var engineIsNode = classofRaw(global_1.process) == 'process';
857
+
858
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
859
+
860
+ var process = global_1.process;
861
+ var versions = process && process.versions;
862
+ var v8 = versions && versions.v8;
863
+ var match, version;
864
+
865
+ if (v8) {
866
+ match = v8.split('.');
867
+ version = match[0] + match[1];
868
+ } else if (engineUserAgent) {
869
+ match = engineUserAgent.match(/Edge\/(\d+)/);
870
+ if (!match || match[1] >= 74) {
871
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
872
+ if (match) version = match[1];
873
+ }
874
+ }
875
+
876
+ var engineV8Version = version && +version;
877
+
878
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
879
+ /* global Symbol -- required for testing */
880
+ return !Symbol.sham &&
881
+ // Chrome 38 Symbol has incorrect toString conversion
882
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
883
+ (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
884
+ });
885
+
886
+ var useSymbolAsUid = nativeSymbol
887
+ /* global Symbol -- safe */
888
+ && !Symbol.sham
889
+ && typeof Symbol.iterator == 'symbol';
890
+
891
+ var WellKnownSymbolsStore = shared('wks');
892
+ var Symbol$1 = global_1.Symbol;
893
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
894
+
895
+ var wellKnownSymbol = function (name) {
896
+ if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
897
+ if (nativeSymbol && has$1(Symbol$1, name)) {
898
+ WellKnownSymbolsStore[name] = Symbol$1[name];
899
+ } else {
900
+ WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
901
+ }
902
+ } return WellKnownSymbolsStore[name];
903
+ };
904
+
905
+ // TODO: Remove from `core-js@4` since it's moved to entry points
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+ var SPECIES$3 = wellKnownSymbol('species');
914
+
915
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
916
+ // #replace needs built-in support for named groups.
917
+ // #match works fine because it just return the exec results, even if it has
918
+ // a "grops" property.
919
+ var re = /./;
920
+ re.exec = function () {
921
+ var result = [];
922
+ result.groups = { a: '7' };
923
+ return result;
924
+ };
925
+ return ''.replace(re, '$<a>') !== '7';
926
+ });
927
+
928
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
929
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
930
+ var REPLACE_KEEPS_$0 = (function () {
931
+ return 'a'.replace(/./, '$0') === '$0';
932
+ })();
933
+
934
+ var REPLACE = wellKnownSymbol('replace');
935
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
936
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
937
+ if (/./[REPLACE]) {
938
+ return /./[REPLACE]('a', '$0') === '';
939
+ }
940
+ return false;
941
+ })();
942
+
943
+ // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
944
+ // Weex JS has frozen built-in prototypes, so use try / catch wrapper
945
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
946
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
947
+ var re = /(?:)/;
948
+ var originalExec = re.exec;
949
+ re.exec = function () { return originalExec.apply(this, arguments); };
950
+ var result = 'ab'.split(re);
951
+ return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
952
+ });
953
+
954
+ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
955
+ var SYMBOL = wellKnownSymbol(KEY);
956
+
957
+ var DELEGATES_TO_SYMBOL = !fails(function () {
958
+ // String methods call symbol-named RegEp methods
959
+ var O = {};
960
+ O[SYMBOL] = function () { return 7; };
961
+ return ''[KEY](O) != 7;
962
+ });
963
+
964
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
965
+ // Symbol-named RegExp methods call .exec
966
+ var execCalled = false;
967
+ var re = /a/;
968
+
969
+ if (KEY === 'split') {
970
+ // We can't use real regex here since it causes deoptimization
971
+ // and serious performance degradation in V8
972
+ // https://github.com/zloirock/core-js/issues/306
973
+ re = {};
974
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
975
+ // a new one. We need to return the patched regex when creating the new one.
976
+ re.constructor = {};
977
+ re.constructor[SPECIES$3] = function () { return re; };
978
+ re.flags = '';
979
+ re[SYMBOL] = /./[SYMBOL];
980
+ }
981
+
982
+ re.exec = function () { execCalled = true; return null; };
983
+
984
+ re[SYMBOL]('');
985
+ return !execCalled;
986
+ });
987
+
988
+ if (
989
+ !DELEGATES_TO_SYMBOL ||
990
+ !DELEGATES_TO_EXEC ||
991
+ (KEY === 'replace' && !(
992
+ REPLACE_SUPPORTS_NAMED_GROUPS &&
993
+ REPLACE_KEEPS_$0 &&
994
+ !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
995
+ )) ||
996
+ (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
997
+ ) {
998
+ var nativeRegExpMethod = /./[SYMBOL];
999
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1000
+ if (regexp.exec === regexpExec) {
1001
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1002
+ // The native String method already delegates to @@method (this
1003
+ // polyfilled function), leasing to infinite recursion.
1004
+ // We avoid it by directly calling the native @@method method.
1005
+ return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1006
+ }
1007
+ return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1008
+ }
1009
+ return { done: false };
1010
+ }, {
1011
+ REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
1012
+ REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1013
+ });
1014
+ var stringMethod = methods[0];
1015
+ var regexMethod = methods[1];
1016
+
1017
+ redefine(String.prototype, KEY, stringMethod);
1018
+ redefine(RegExp.prototype, SYMBOL, length == 2
1019
+ // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1020
+ // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1021
+ ? function (string, arg) { return regexMethod.call(string, this, arg); }
1022
+ // 21.2.5.6 RegExp.prototype[@@match](string)
1023
+ // 21.2.5.9 RegExp.prototype[@@search](string)
1024
+ : function (string) { return regexMethod.call(string, this); }
1025
+ );
1026
+ }
1027
+
1028
+ if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1029
+ };
1030
+
1031
+ // `SameValue` abstract operation
1032
+ // https://tc39.es/ecma262/#sec-samevalue
1033
+ var sameValue = Object.is || function is(x, y) {
1034
+ // eslint-disable-next-line no-self-compare -- NaN check
1035
+ return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
1036
+ };
1037
+
1038
+ // `RegExpExec` abstract operation
1039
+ // https://tc39.es/ecma262/#sec-regexpexec
1040
+ var regexpExecAbstract = function (R, S) {
1041
+ var exec = R.exec;
1042
+ if (typeof exec === 'function') {
1043
+ var result = exec.call(R, S);
1044
+ if (typeof result !== 'object') {
1045
+ throw TypeError('RegExp exec method returned something other than an Object or null');
1046
+ }
1047
+ return result;
1048
+ }
1049
+
1050
+ if (classofRaw(R) !== 'RegExp') {
1051
+ throw TypeError('RegExp#exec called on incompatible receiver');
1052
+ }
1053
+
1054
+ return regexpExec.call(R, S);
1055
+ };
1056
+
1057
+ // @@search logic
1058
+ fixRegexpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {
1059
+ return [
1060
+ // `String.prototype.search` method
1061
+ // https://tc39.es/ecma262/#sec-string.prototype.search
1062
+ function search(regexp) {
1063
+ var O = requireObjectCoercible(this);
1064
+ var searcher = regexp == undefined ? undefined : regexp[SEARCH];
1065
+ return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
1066
+ },
1067
+ // `RegExp.prototype[@@search]` method
1068
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
1069
+ function (regexp) {
1070
+ var res = maybeCallNative(nativeSearch, regexp, this);
1071
+ if (res.done) return res.value;
1072
+
1073
+ var rx = anObject(regexp);
1074
+ var S = String(this);
1075
+
1076
+ var previousLastIndex = rx.lastIndex;
1077
+ if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
1078
+ var result = regexpExecAbstract(rx, S);
1079
+ if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
1080
+ return result === null ? -1 : result.index;
1081
+ }
1082
+ ];
1083
+ });
1084
+
1085
+ var aPossiblePrototype = function (it) {
1086
+ if (!isObject(it) && it !== null) {
1087
+ throw TypeError("Can't set " + String(it) + ' as a prototype');
1088
+ } return it;
1089
+ };
1090
+
1091
+ /* eslint-disable no-proto -- safe */
1092
+
1093
+
1094
+
1095
+ // `Object.setPrototypeOf` method
1096
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1097
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1098
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1099
+ var CORRECT_SETTER = false;
1100
+ var test = {};
1101
+ var setter;
1102
+ try {
1103
+ setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
1104
+ setter.call(test, []);
1105
+ CORRECT_SETTER = test instanceof Array;
1106
+ } catch (error) { /* empty */ }
1107
+ return function setPrototypeOf(O, proto) {
1108
+ anObject(O);
1109
+ aPossiblePrototype(proto);
1110
+ if (CORRECT_SETTER) setter.call(O, proto);
1111
+ else O.__proto__ = proto;
1112
+ return O;
1113
+ };
1114
+ }() : undefined);
1115
+
1116
+ // makes subclassing work correct for wrapped built-ins
1117
+ var inheritIfRequired = function ($this, dummy, Wrapper) {
1118
+ var NewTarget, NewTargetPrototype;
1119
+ if (
1120
+ // it can work only with native `setPrototypeOf`
1121
+ objectSetPrototypeOf &&
1122
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
1123
+ typeof (NewTarget = dummy.constructor) == 'function' &&
1124
+ NewTarget !== Wrapper &&
1125
+ isObject(NewTargetPrototype = NewTarget.prototype) &&
1126
+ NewTargetPrototype !== Wrapper.prototype
1127
+ ) objectSetPrototypeOf($this, NewTargetPrototype);
1128
+ return $this;
1129
+ };
1130
+
1131
+ var MATCH$1 = wellKnownSymbol('match');
1132
+
1133
+ // `IsRegExp` abstract operation
1134
+ // https://tc39.es/ecma262/#sec-isregexp
1135
+ var isRegexp = function (it) {
1136
+ var isRegExp;
1137
+ return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
1138
+ };
1139
+
1140
+ var SPECIES$2 = wellKnownSymbol('species');
1141
+
1142
+ var setSpecies = function (CONSTRUCTOR_NAME) {
1143
+ var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
1144
+ var defineProperty = objectDefineProperty.f;
1145
+
1146
+ if (descriptors && Constructor && !Constructor[SPECIES$2]) {
1147
+ defineProperty(Constructor, SPECIES$2, {
1148
+ configurable: true,
1149
+ get: function () { return this; }
1150
+ });
1151
+ }
1152
+ };
1153
+
1154
+ var defineProperty = objectDefineProperty.f;
1155
+ var getOwnPropertyNames = objectGetOwnPropertyNames.f;
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+ var setInternalState = internalState.set;
1162
+
1163
+
1164
+
1165
+ var MATCH = wellKnownSymbol('match');
1166
+ var NativeRegExp = global_1.RegExp;
1167
+ var RegExpPrototype$1 = NativeRegExp.prototype;
1168
+ var re1 = /a/g;
1169
+ var re2 = /a/g;
1170
+
1171
+ // "new" should create a new object, old webkit bug
1172
+ var CORRECT_NEW = new NativeRegExp(re1) !== re1;
1173
+
1174
+ var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
1175
+
1176
+ var FORCED$1 = descriptors && isForced_1('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y || fails(function () {
1177
+ re2[MATCH] = false;
1178
+ // RegExp constructor can alter flags and IsRegExp works correct with @@match
1179
+ return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
1180
+ })));
1181
+
1182
+ // `RegExp` constructor
1183
+ // https://tc39.es/ecma262/#sec-regexp-constructor
1184
+ if (FORCED$1) {
1185
+ var RegExpWrapper = function RegExp(pattern, flags) {
1186
+ var thisIsRegExp = this instanceof RegExpWrapper;
1187
+ var patternIsRegExp = isRegexp(pattern);
1188
+ var flagsAreUndefined = flags === undefined;
1189
+ var sticky;
1190
+
1191
+ if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {
1192
+ return pattern;
1193
+ }
1194
+
1195
+ if (CORRECT_NEW) {
1196
+ if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;
1197
+ } else if (pattern instanceof RegExpWrapper) {
1198
+ if (flagsAreUndefined) flags = regexpFlags.call(pattern);
1199
+ pattern = pattern.source;
1200
+ }
1201
+
1202
+ if (UNSUPPORTED_Y) {
1203
+ sticky = !!flags && flags.indexOf('y') > -1;
1204
+ if (sticky) flags = flags.replace(/y/g, '');
1205
+ }
1206
+
1207
+ var result = inheritIfRequired(
1208
+ CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),
1209
+ thisIsRegExp ? this : RegExpPrototype$1,
1210
+ RegExpWrapper
1211
+ );
1212
+
1213
+ if (UNSUPPORTED_Y && sticky) setInternalState(result, { sticky: sticky });
1214
+
1215
+ return result;
1216
+ };
1217
+ var proxy = function (key) {
1218
+ key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
1219
+ configurable: true,
1220
+ get: function () { return NativeRegExp[key]; },
1221
+ set: function (it) { NativeRegExp[key] = it; }
1222
+ });
1223
+ };
1224
+ var keys = getOwnPropertyNames(NativeRegExp);
1225
+ var index = 0;
1226
+ while (keys.length > index) proxy(keys[index++]);
1227
+ RegExpPrototype$1.constructor = RegExpWrapper;
1228
+ RegExpWrapper.prototype = RegExpPrototype$1;
1229
+ redefine(global_1, 'RegExp', RegExpWrapper);
1230
+ }
1231
+
1232
+ // https://tc39.es/ecma262/#sec-get-regexp-@@species
1233
+ setSpecies('RegExp');
1234
+
1235
+ var TO_STRING = 'toString';
1236
+ var RegExpPrototype = RegExp.prototype;
1237
+ var nativeToString = RegExpPrototype[TO_STRING];
1238
+
1239
+ var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1240
+ // FF44- RegExp#toString has a wrong name
1241
+ var INCORRECT_NAME = nativeToString.name != TO_STRING;
1242
+
1243
+ // `RegExp.prototype.toString` method
1244
+ // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1245
+ if (NOT_GENERIC || INCORRECT_NAME) {
1246
+ redefine(RegExp.prototype, TO_STRING, function toString() {
1247
+ var R = anObject(this);
1248
+ var p = String(R.source);
1249
+ var rf = R.flags;
1250
+ var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? regexpFlags.call(R) : rf);
1251
+ return '/' + p + '/' + f;
1252
+ }, { unsafe: true });
1253
+ }
1254
+
1255
+ // `String.prototype.{ codePointAt, at }` methods implementation
1256
+ var createMethod$1 = function (CONVERT_TO_STRING) {
1257
+ return function ($this, pos) {
1258
+ var S = String(requireObjectCoercible($this));
1259
+ var position = toInteger(pos);
1260
+ var size = S.length;
1261
+ var first, second;
1262
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1263
+ first = S.charCodeAt(position);
1264
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
1265
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1266
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
1267
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1268
+ };
1269
+ };
1270
+
1271
+ var stringMultibyte = {
1272
+ // `String.prototype.codePointAt` method
1273
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1274
+ codeAt: createMethod$1(false),
1275
+ // `String.prototype.at` method
1276
+ // https://github.com/mathiasbynens/String.prototype.at
1277
+ charAt: createMethod$1(true)
1278
+ };
1279
+
1280
+ var charAt = stringMultibyte.charAt;
1281
+
1282
+ // `AdvanceStringIndex` abstract operation
1283
+ // https://tc39.es/ecma262/#sec-advancestringindex
1284
+ var advanceStringIndex = function (S, index, unicode) {
1285
+ return index + (unicode ? charAt(S, index).length : 1);
1286
+ };
1287
+
1288
+ // @@match logic
1289
+ fixRegexpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
1290
+ return [
1291
+ // `String.prototype.match` method
1292
+ // https://tc39.es/ecma262/#sec-string.prototype.match
1293
+ function match(regexp) {
1294
+ var O = requireObjectCoercible(this);
1295
+ var matcher = regexp == undefined ? undefined : regexp[MATCH];
1296
+ return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
1297
+ },
1298
+ // `RegExp.prototype[@@match]` method
1299
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
1300
+ function (regexp) {
1301
+ var res = maybeCallNative(nativeMatch, regexp, this);
1302
+ if (res.done) return res.value;
1303
+
1304
+ var rx = anObject(regexp);
1305
+ var S = String(this);
1306
+
1307
+ if (!rx.global) return regexpExecAbstract(rx, S);
1308
+
1309
+ var fullUnicode = rx.unicode;
1310
+ rx.lastIndex = 0;
1311
+ var A = [];
1312
+ var n = 0;
1313
+ var result;
1314
+ while ((result = regexpExecAbstract(rx, S)) !== null) {
1315
+ var matchStr = String(result[0]);
1316
+ A[n] = matchStr;
1317
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1318
+ n++;
1319
+ }
1320
+ return n === 0 ? null : A;
1321
+ }
1322
+ ];
1323
+ });
1324
+
1325
+ // `Object.keys` method
1326
+ // https://tc39.es/ecma262/#sec-object.keys
1327
+ var objectKeys = Object.keys || function keys(O) {
1328
+ return objectKeysInternal(O, enumBugKeys);
1329
+ };
1330
+
1331
+ var propertyIsEnumerable = objectPropertyIsEnumerable.f;
1332
+
1333
+ // `Object.{ entries, values }` methods implementation
1334
+ var createMethod = function (TO_ENTRIES) {
1335
+ return function (it) {
1336
+ var O = toIndexedObject(it);
1337
+ var keys = objectKeys(O);
1338
+ var length = keys.length;
1339
+ var i = 0;
1340
+ var result = [];
1341
+ var key;
1342
+ while (length > i) {
1343
+ key = keys[i++];
1344
+ if (!descriptors || propertyIsEnumerable.call(O, key)) {
1345
+ result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
1346
+ }
1347
+ }
1348
+ return result;
1349
+ };
1350
+ };
1351
+
1352
+ var objectToArray = {
1353
+ // `Object.entries` method
1354
+ // https://tc39.es/ecma262/#sec-object.entries
1355
+ entries: createMethod(true),
1356
+ // `Object.values` method
1357
+ // https://tc39.es/ecma262/#sec-object.values
1358
+ values: createMethod(false)
1359
+ };
1360
+
1361
+ var $entries = objectToArray.entries;
1362
+
1363
+ // `Object.entries` method
1364
+ // https://tc39.es/ecma262/#sec-object.entries
1365
+ _export({ target: 'Object', stat: true }, {
1366
+ entries: function entries(O) {
1367
+ return $entries(O);
1368
+ }
1369
+ });
1370
+
1371
+ // `IsArray` abstract operation
1372
+ // https://tc39.es/ecma262/#sec-isarray
1373
+ var isArray = Array.isArray || function isArray(arg) {
1374
+ return classofRaw(arg) == 'Array';
1375
+ };
1376
+
1377
+ // `ToObject` abstract operation
1378
+ // https://tc39.es/ecma262/#sec-toobject
1379
+ var toObject = function (argument) {
1380
+ return Object(requireObjectCoercible(argument));
1381
+ };
1382
+
1383
+ var createProperty = function (object, key, value) {
1384
+ var propertyKey = toPrimitive(key);
1385
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1386
+ else object[propertyKey] = value;
1387
+ };
1388
+
1389
+ var SPECIES$1 = wellKnownSymbol('species');
1390
+
1391
+ // `ArraySpeciesCreate` abstract operation
1392
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
1393
+ var arraySpeciesCreate = function (originalArray, length) {
1394
+ var C;
1395
+ if (isArray(originalArray)) {
1396
+ C = originalArray.constructor;
1397
+ // cross-realm fallback
1398
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1399
+ else if (isObject(C)) {
1400
+ C = C[SPECIES$1];
1401
+ if (C === null) C = undefined;
1402
+ }
1403
+ } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1404
+ };
1405
+
1406
+ var SPECIES = wellKnownSymbol('species');
1407
+
1408
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1409
+ // We can't use this feature detection in V8 since it causes
1410
+ // deoptimization and serious performance degradation
1411
+ // https://github.com/zloirock/core-js/issues/677
1412
+ return engineV8Version >= 51 || !fails(function () {
1413
+ var array = [];
1414
+ var constructor = array.constructor = {};
1415
+ constructor[SPECIES] = function () {
1416
+ return { foo: 1 };
1417
+ };
1418
+ return array[METHOD_NAME](Boolean).foo !== 1;
1419
+ });
1420
+ };
1421
+
1422
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1423
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1424
+ var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1425
+
1426
+ // We can't use this feature detection in V8 since it causes
1427
+ // deoptimization and serious performance degradation
1428
+ // https://github.com/zloirock/core-js/issues/679
1429
+ var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
1430
+ var array = [];
1431
+ array[IS_CONCAT_SPREADABLE] = false;
1432
+ return array.concat()[0] !== array;
1433
+ });
1434
+
1435
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1436
+
1437
+ var isConcatSpreadable = function (O) {
1438
+ if (!isObject(O)) return false;
1439
+ var spreadable = O[IS_CONCAT_SPREADABLE];
1440
+ return spreadable !== undefined ? !!spreadable : isArray(O);
1441
+ };
1442
+
1443
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1444
+
1445
+ // `Array.prototype.concat` method
1446
+ // https://tc39.es/ecma262/#sec-array.prototype.concat
1447
+ // with adding support of @@isConcatSpreadable and @@species
1448
+ _export({ target: 'Array', proto: true, forced: FORCED }, {
1449
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1450
+ concat: function concat(arg) {
1451
+ var O = toObject(this);
1452
+ var A = arraySpeciesCreate(O, 0);
1453
+ var n = 0;
1454
+ var i, k, length, len, E;
1455
+ for (i = -1, length = arguments.length; i < length; i++) {
1456
+ E = i === -1 ? O : arguments[i];
1457
+ if (isConcatSpreadable(E)) {
1458
+ len = toLength(E.length);
1459
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1460
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1461
+ } else {
1462
+ if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1463
+ createProperty(A, n++, E);
1464
+ }
1465
+ }
1466
+ A.length = n;
1467
+ return A;
1468
+ }
1469
+ });
1470
+
1471
+ var floor = Math.floor;
1472
+ var replace = ''.replace;
1473
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1474
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1475
+
1476
+ // https://tc39.es/ecma262/#sec-getsubstitution
1477
+ var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1478
+ var tailPos = position + matched.length;
1479
+ var m = captures.length;
1480
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1481
+ if (namedCaptures !== undefined) {
1482
+ namedCaptures = toObject(namedCaptures);
1483
+ symbols = SUBSTITUTION_SYMBOLS;
1484
+ }
1485
+ return replace.call(replacement, symbols, function (match, ch) {
1486
+ var capture;
1487
+ switch (ch.charAt(0)) {
1488
+ case '$': return '$';
1489
+ case '&': return matched;
1490
+ case '`': return str.slice(0, position);
1491
+ case "'": return str.slice(tailPos);
1492
+ case '<':
1493
+ capture = namedCaptures[ch.slice(1, -1)];
1494
+ break;
1495
+ default: // \d\d?
1496
+ var n = +ch;
1497
+ if (n === 0) return match;
1498
+ if (n > m) {
1499
+ var f = floor(n / 10);
1500
+ if (f === 0) return match;
1501
+ if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1502
+ return match;
1503
+ }
1504
+ capture = captures[n - 1];
1505
+ }
1506
+ return capture === undefined ? '' : capture;
1507
+ });
1508
+ };
1509
+
1510
+ var max = Math.max;
1511
+ var min = Math.min;
1512
+
1513
+ var maybeToString = function (it) {
1514
+ return it === undefined ? it : String(it);
1515
+ };
1516
+
1517
+ // @@replace logic
1518
+ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1519
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1520
+ var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1521
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1522
+
1523
+ return [
1524
+ // `String.prototype.replace` method
1525
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
1526
+ function replace(searchValue, replaceValue) {
1527
+ var O = requireObjectCoercible(this);
1528
+ var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1529
+ return replacer !== undefined
1530
+ ? replacer.call(searchValue, O, replaceValue)
1531
+ : nativeReplace.call(String(O), searchValue, replaceValue);
1532
+ },
1533
+ // `RegExp.prototype[@@replace]` method
1534
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1535
+ function (regexp, replaceValue) {
1536
+ if (
1537
+ (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1538
+ (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1539
+ ) {
1540
+ var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1541
+ if (res.done) return res.value;
1542
+ }
1543
+
1544
+ var rx = anObject(regexp);
1545
+ var S = String(this);
1546
+
1547
+ var functionalReplace = typeof replaceValue === 'function';
1548
+ if (!functionalReplace) replaceValue = String(replaceValue);
1549
+
1550
+ var global = rx.global;
1551
+ if (global) {
1552
+ var fullUnicode = rx.unicode;
1553
+ rx.lastIndex = 0;
1554
+ }
1555
+ var results = [];
1556
+ while (true) {
1557
+ var result = regexpExecAbstract(rx, S);
1558
+ if (result === null) break;
1559
+
1560
+ results.push(result);
1561
+ if (!global) break;
1562
+
1563
+ var matchStr = String(result[0]);
1564
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1565
+ }
1566
+
1567
+ var accumulatedResult = '';
1568
+ var nextSourcePosition = 0;
1569
+ for (var i = 0; i < results.length; i++) {
1570
+ result = results[i];
1571
+
1572
+ var matched = String(result[0]);
1573
+ var position = max(min(toInteger(result.index), S.length), 0);
1574
+ var captures = [];
1575
+ // NOTE: This is equivalent to
1576
+ // captures = result.slice(1).map(maybeToString)
1577
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1578
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1579
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1580
+ for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1581
+ var namedCaptures = result.groups;
1582
+ if (functionalReplace) {
1583
+ var replacerArgs = [matched].concat(captures, position, S);
1584
+ if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1585
+ var replacement = String(replaceValue.apply(undefined, replacerArgs));
1586
+ } else {
1587
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1588
+ }
1589
+ if (position >= nextSourcePosition) {
1590
+ accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1591
+ nextSourcePosition = position + matched.length;
1592
+ }
1593
+ }
1594
+ return accumulatedResult + S.slice(nextSourcePosition);
1595
+ }
1596
+ ];
1597
+ });
1598
+
1599
+ /**
1600
+ * @author: general
1601
+ * @website: note.generals.space
1602
+ * @email: generals.space@gmail.com
1603
+ * @github: https://github.com/generals-space/bootstrap-table-addrbar
1604
+ * @update: zhixin wen <wenzhixin2010@gmail.com>
1605
+ */
1606
+
1607
+ /*
1608
+ * function: 获取浏览器地址栏中的指定参数.
1609
+ * key: 参数名
1610
+ * url: 默认为当前地址栏
1611
+ */
1612
+
1613
+ function _GET(key) {
1614
+ var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.search;
1615
+
1616
+ /*
1617
+ * 注意这里正则表达式的书写方法
1618
+ * (^|&)key匹配: 直接以key开始或以&key开始的字符串
1619
+ * 同理(&|$)表示以&结束或是直接结束的字符串
1620
+ * ...当然, 我并不知道这种用法.
1621
+ */
1622
+ var reg = new RegExp("(^|&)".concat(key, "=([^&]*)(&|$)"));
1623
+ var result = url.substr(1).match(reg);
1624
+
1625
+ if (result) {
1626
+ return decodeURIComponent(result[2]);
1627
+ }
1628
+
1629
+ return null;
1630
+ }
1631
+ /*
1632
+ * function: 根据给定参数生成url地址
1633
+ * var dic = {name: 'genreal', age: 24}
1634
+ * var url = 'https://www.baidu.com?age=22';
1635
+ * _buildUrl(dic, url);
1636
+ * 将得到"https://www.baidu.com?age=24&name=genreal"
1637
+ * 哦, 忽略先后顺序吧...
1638
+ *
1639
+ * 补充: 可以参考浏览器URLSearchParams对象, 更加方便和强大.
1640
+ * 考虑到兼容性, 暂时不使用这个工具.
1641
+ */
1642
+
1643
+
1644
+ function _buildUrl(dict) {
1645
+ var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.search;
1646
+
1647
+ for (var _i = 0, _Object$entries = Object.entries(dict); _i < _Object$entries.length; _i++) {
1648
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
1649
+ key = _Object$entries$_i[0],
1650
+ val = _Object$entries$_i[1];
1651
+
1652
+ // 搜索name=general这种形式的字符串(&是分隔符)
1653
+ var pattern = "".concat(key, "=([^&]*)");
1654
+ var targetStr = "".concat(key, "=").concat(val);
1655
+ if (val === undefined) continue;
1656
+ /*
1657
+ * 如果目标url中包含了key键, 我们需要将它替换成我们自己的val
1658
+ * 不然就直接添加好了.
1659
+ */
1660
+
1661
+ if (url.match(pattern)) {
1662
+ var tmp = new RegExp("(".concat(key, "=)([^&]*)"), 'gi');
1663
+ url = url.replace(tmp, targetStr);
1664
+ } else {
1665
+ var seperator = url.match('[?]') ? '&' : '?';
1666
+ url = url + seperator + targetStr;
1667
+ }
1668
+ }
1669
+
1670
+ if (location.hash) {
1671
+ url += location.hash;
1672
+ }
1673
+
1674
+ return url;
1675
+ }
1676
+ /*
1677
+ * function: _updateHistoryState
1678
+ * var _prefix = this.options.addrPrefix || ''
1679
+ * var table = this
1680
+ * _updateHistoryState( table,_prefix)
1681
+ * returns void
1682
+ */
1683
+
1684
+
1685
+ function _updateHistoryState(table, _prefix) {
1686
+ var params = {};
1687
+ params["".concat(_prefix, "page")] = table.options.pageNumber;
1688
+ params["".concat(_prefix, "size")] = table.options.pageSize;
1689
+ params["".concat(_prefix, "order")] = table.options.sortOrder;
1690
+ params["".concat(_prefix, "sort")] = table.options.sortName;
1691
+ params["".concat(_prefix, "search")] = table.options.searchText;
1692
+ window.history.pushState({}, '', _buildUrl(params));
1693
+ }
1694
+
1695
+ $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
1696
+ addrbar: false,
1697
+ addrPrefix: ''
1698
+ });
1699
+
1700
+ $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1701
+ _inherits(_class, _$$BootstrapTable);
1702
+
1703
+ var _super = _createSuper(_class);
1704
+
1705
+ function _class() {
1706
+ _classCallCheck(this, _class);
1707
+
1708
+ return _super.apply(this, arguments);
1709
+ }
1710
+
1711
+ _createClass(_class, [{
1712
+ key: "init",
1713
+ value: function init() {
1714
+ var _this = this,
1715
+ _get2;
1716
+
1717
+ if (this.options.pagination && this.options.addrbar) {
1718
+ // 标志位, 初始加载后关闭
1719
+ this.addrbarInit = true;
1720
+ this.options.pageNumber = +this.getDefaultOptionValue('pageNumber', 'page');
1721
+ this.options.pageSize = +this.getDefaultOptionValue('pageSize', 'size');
1722
+ this.options.sortOrder = this.getDefaultOptionValue('sortOrder', 'order');
1723
+ this.options.sortName = this.getDefaultOptionValue('sortName', 'sort');
1724
+ this.options.searchText = this.getDefaultOptionValue('searchText', 'search');
1725
+
1726
+ var _prefix = this.options.addrPrefix || '';
1727
+
1728
+ var _onLoadSuccess = this.options.onLoadSuccess;
1729
+ var _onPageChange = this.options.onPageChange;
1730
+
1731
+ this.options.onLoadSuccess = function (data) {
1732
+ if (_this.addrbarInit) {
1733
+ _this.addrbarInit = false;
1734
+ } else {
1735
+ _updateHistoryState(_this, _prefix);
1736
+ }
1737
+
1738
+ if (_onLoadSuccess) {
1739
+ _onLoadSuccess.call(_this, data);
1740
+ }
1741
+ };
1742
+
1743
+ this.options.onPageChange = function (number, size) {
1744
+ _updateHistoryState(_this, _prefix);
1745
+
1746
+ if (_onPageChange) {
1747
+ _onPageChange.call(_this, number, size);
1748
+ }
1749
+ };
1750
+ }
1751
+
1752
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1753
+ args[_key] = arguments[_key];
1754
+ }
1755
+
1756
+ (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
1757
+ }
1758
+ /*
1759
+ * Priority order:
1760
+ * The value specified by the user has the highest priority.
1761
+ * If it is not specified, it will be obtained from the address bar.
1762
+ * If it is not obtained, the default value will be used.
1763
+ */
1764
+
1765
+ }, {
1766
+ key: "getDefaultOptionValue",
1767
+ value: function getDefaultOptionValue(optionName, prefixName) {
1768
+ if (this.options[optionName] !== $__default['default'].BootstrapTable.DEFAULTS[optionName]) {
1769
+ return this.options[optionName];
1770
+ }
1771
+
1772
+ return _GET("".concat(this.options.addrPrefix || '').concat(prefixName)) || $__default['default'].BootstrapTable.DEFAULTS[optionName];
1773
+ }
1774
+ }]);
1775
+
1776
+ return _class;
1777
+ }($__default['default'].BootstrapTable);
1762
1778
 
1763
1779
  })));