bootstrap-table-rails 1.19.0 → 1.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/bootstrap-table-rails.gemspec +2 -2
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +946 -358
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +858 -403
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +859 -404
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +7 -6
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +2900 -2041
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1066 -465
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +585 -268
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1443 -949
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +594 -278
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +595 -277
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +511 -207
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +921 -542
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +912 -478
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2798 -1187
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1352 -754
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +610 -296
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +902 -435
- data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +16 -8
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +697 -375
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +623 -274
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +847 -403
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +575 -260
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +578 -267
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +800 -324
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +615 -281
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +555 -222
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +511 -207
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +582 -267
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +916 -556
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +566 -256
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +505 -209
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +517 -221
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +500 -203
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1102 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +522 -225
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1102 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +536 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +536 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +596 -278
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +592 -258
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +596 -262
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +594 -275
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +590 -256
- metadata +9 -8
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
|
3
3
|
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
|
5
|
-
}(this, (function ($) { 'use strict';
|
5
|
+
})(this, (function ($) { 'use strict';
|
6
6
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
8
8
|
|
@@ -27,6 +27,9 @@
|
|
27
27
|
function _createClass(Constructor, protoProps, staticProps) {
|
28
28
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
29
29
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
30
|
+
Object.defineProperty(Constructor, "prototype", {
|
31
|
+
writable: false
|
32
|
+
});
|
30
33
|
return Constructor;
|
31
34
|
}
|
32
35
|
|
@@ -42,6 +45,9 @@
|
|
42
45
|
configurable: true
|
43
46
|
}
|
44
47
|
});
|
48
|
+
Object.defineProperty(subClass, "prototype", {
|
49
|
+
writable: false
|
50
|
+
});
|
45
51
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
46
52
|
}
|
47
53
|
|
@@ -85,6 +91,8 @@
|
|
85
91
|
function _possibleConstructorReturn(self, call) {
|
86
92
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
87
93
|
return call;
|
94
|
+
} else if (call !== void 0) {
|
95
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
88
96
|
}
|
89
97
|
|
90
98
|
return _assertThisInitialized(self);
|
@@ -118,7 +126,7 @@
|
|
118
126
|
return object;
|
119
127
|
}
|
120
128
|
|
121
|
-
function _get(
|
129
|
+
function _get() {
|
122
130
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
123
131
|
_get = Reflect.get;
|
124
132
|
} else {
|
@@ -129,14 +137,14 @@
|
|
129
137
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
130
138
|
|
131
139
|
if (desc.get) {
|
132
|
-
return desc.get.call(receiver);
|
140
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
133
141
|
}
|
134
142
|
|
135
143
|
return desc.value;
|
136
144
|
};
|
137
145
|
}
|
138
146
|
|
139
|
-
return _get(
|
147
|
+
return _get.apply(this, arguments);
|
140
148
|
}
|
141
149
|
|
142
150
|
function _slicedToArray(arr, i) {
|
@@ -148,14 +156,17 @@
|
|
148
156
|
}
|
149
157
|
|
150
158
|
function _iterableToArrayLimit(arr, i) {
|
151
|
-
|
159
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
160
|
+
|
161
|
+
if (_i == null) return;
|
152
162
|
var _arr = [];
|
153
163
|
var _n = true;
|
154
164
|
var _d = false;
|
155
|
-
|
165
|
+
|
166
|
+
var _s, _e;
|
156
167
|
|
157
168
|
try {
|
158
|
-
for (
|
169
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
159
170
|
_arr.push(_s.value);
|
160
171
|
|
161
172
|
if (i && _arr.length === i) break;
|
@@ -207,7 +218,7 @@
|
|
207
218
|
|
208
219
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
209
220
|
var global_1 =
|
210
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
221
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
211
222
|
check(typeof globalThis == 'object' && globalThis) ||
|
212
223
|
check(typeof window == 'object' && window) ||
|
213
224
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -226,26 +237,39 @@
|
|
226
237
|
|
227
238
|
// Detect IE8's incomplete defineProperty implementation
|
228
239
|
var descriptors = !fails(function () {
|
229
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
240
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
230
241
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
231
242
|
});
|
232
243
|
|
233
|
-
var
|
234
|
-
|
244
|
+
var functionBindNative = !fails(function () {
|
245
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
246
|
+
var test = (function () { /* empty */ }).bind();
|
247
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
248
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
249
|
+
});
|
250
|
+
|
251
|
+
var call$2 = Function.prototype.call;
|
252
|
+
|
253
|
+
var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
|
254
|
+
return call$2.apply(call$2, arguments);
|
255
|
+
};
|
256
|
+
|
257
|
+
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
258
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
235
259
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
236
260
|
|
237
261
|
// Nashorn ~ JDK8 bug
|
238
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
262
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
|
239
263
|
|
240
264
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
241
265
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
242
|
-
var f$
|
266
|
+
var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
243
267
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
244
268
|
return !!descriptor && descriptor.enumerable;
|
245
|
-
} : $propertyIsEnumerable;
|
269
|
+
} : $propertyIsEnumerable$1;
|
246
270
|
|
247
271
|
var objectPropertyIsEnumerable = {
|
248
|
-
f: f$
|
272
|
+
f: f$5
|
249
273
|
};
|
250
274
|
|
251
275
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -257,27 +281,44 @@
|
|
257
281
|
};
|
258
282
|
};
|
259
283
|
|
260
|
-
var
|
284
|
+
var FunctionPrototype$2 = Function.prototype;
|
285
|
+
var bind = FunctionPrototype$2.bind;
|
286
|
+
var call$1 = FunctionPrototype$2.call;
|
287
|
+
var uncurryThis = functionBindNative && bind.bind(call$1, call$1);
|
288
|
+
|
289
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
290
|
+
return fn && uncurryThis(fn);
|
291
|
+
} : function (fn) {
|
292
|
+
return fn && function () {
|
293
|
+
return call$1.apply(fn, arguments);
|
294
|
+
};
|
295
|
+
};
|
296
|
+
|
297
|
+
var toString$1 = functionUncurryThis({}.toString);
|
298
|
+
var stringSlice$5 = functionUncurryThis(''.slice);
|
261
299
|
|
262
300
|
var classofRaw = function (it) {
|
263
|
-
return toString
|
301
|
+
return stringSlice$5(toString$1(it), 8, -1);
|
264
302
|
};
|
265
303
|
|
266
|
-
var
|
304
|
+
var Object$4 = global_1.Object;
|
305
|
+
var split = functionUncurryThis(''.split);
|
267
306
|
|
268
307
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
269
308
|
var indexedObject = fails(function () {
|
270
309
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
271
310
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
272
|
-
return !Object('z').propertyIsEnumerable(0);
|
311
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
273
312
|
}) ? function (it) {
|
274
|
-
return classofRaw(it) == 'String' ? split
|
275
|
-
} : Object;
|
313
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
314
|
+
} : Object$4;
|
315
|
+
|
316
|
+
var TypeError$a = global_1.TypeError;
|
276
317
|
|
277
318
|
// `RequireObjectCoercible` abstract operation
|
278
319
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
279
320
|
var requireObjectCoercible = function (it) {
|
280
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
321
|
+
if (it == undefined) throw TypeError$a("Can't call method on " + it);
|
281
322
|
return it;
|
282
323
|
};
|
283
324
|
|
@@ -289,88 +330,310 @@
|
|
289
330
|
return indexedObject(requireObjectCoercible(it));
|
290
331
|
};
|
291
332
|
|
333
|
+
// `IsCallable` abstract operation
|
334
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
335
|
+
var isCallable = function (argument) {
|
336
|
+
return typeof argument == 'function';
|
337
|
+
};
|
338
|
+
|
292
339
|
var isObject = function (it) {
|
293
|
-
return typeof it
|
340
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
294
341
|
};
|
295
342
|
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
var
|
301
|
-
|
343
|
+
var aFunction = function (argument) {
|
344
|
+
return isCallable(argument) ? argument : undefined;
|
345
|
+
};
|
346
|
+
|
347
|
+
var getBuiltIn = function (namespace, method) {
|
348
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
349
|
+
};
|
350
|
+
|
351
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
352
|
+
|
353
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
354
|
+
|
355
|
+
var process = global_1.process;
|
356
|
+
var Deno = global_1.Deno;
|
357
|
+
var versions = process && process.versions || Deno && Deno.version;
|
358
|
+
var v8 = versions && versions.v8;
|
359
|
+
var match, version;
|
360
|
+
|
361
|
+
if (v8) {
|
362
|
+
match = v8.split('.');
|
363
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
364
|
+
// but their correct versions are not interesting for us
|
365
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
366
|
+
}
|
367
|
+
|
368
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
369
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
370
|
+
if (!version && engineUserAgent) {
|
371
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
372
|
+
if (!match || match[1] >= 74) {
|
373
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
374
|
+
if (match) version = +match[1];
|
375
|
+
}
|
376
|
+
}
|
377
|
+
|
378
|
+
var engineV8Version = version;
|
379
|
+
|
380
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
385
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
386
|
+
var symbol = Symbol();
|
387
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
388
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
389
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
390
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
391
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
392
|
+
});
|
393
|
+
|
394
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
395
|
+
|
396
|
+
|
397
|
+
var useSymbolAsUid = nativeSymbol
|
398
|
+
&& !Symbol.sham
|
399
|
+
&& typeof Symbol.iterator == 'symbol';
|
400
|
+
|
401
|
+
var Object$3 = global_1.Object;
|
402
|
+
|
403
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
404
|
+
return typeof it == 'symbol';
|
405
|
+
} : function (it) {
|
406
|
+
var $Symbol = getBuiltIn('Symbol');
|
407
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
408
|
+
};
|
409
|
+
|
410
|
+
var String$4 = global_1.String;
|
411
|
+
|
412
|
+
var tryToString = function (argument) {
|
413
|
+
try {
|
414
|
+
return String$4(argument);
|
415
|
+
} catch (error) {
|
416
|
+
return 'Object';
|
417
|
+
}
|
418
|
+
};
|
419
|
+
|
420
|
+
var TypeError$9 = global_1.TypeError;
|
421
|
+
|
422
|
+
// `Assert: IsCallable(argument) is true`
|
423
|
+
var aCallable = function (argument) {
|
424
|
+
if (isCallable(argument)) return argument;
|
425
|
+
throw TypeError$9(tryToString(argument) + ' is not a function');
|
426
|
+
};
|
427
|
+
|
428
|
+
// `GetMethod` abstract operation
|
429
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
430
|
+
var getMethod = function (V, P) {
|
431
|
+
var func = V[P];
|
432
|
+
return func == null ? undefined : aCallable(func);
|
433
|
+
};
|
434
|
+
|
435
|
+
var TypeError$8 = global_1.TypeError;
|
436
|
+
|
437
|
+
// `OrdinaryToPrimitive` abstract operation
|
438
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
439
|
+
var ordinaryToPrimitive = function (input, pref) {
|
302
440
|
var fn, val;
|
303
|
-
if (
|
304
|
-
if (
|
305
|
-
if (
|
306
|
-
throw TypeError("Can't convert object to primitive value");
|
441
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
442
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
443
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
444
|
+
throw TypeError$8("Can't convert object to primitive value");
|
307
445
|
};
|
308
446
|
|
309
|
-
|
447
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
448
|
+
var defineProperty$1 = Object.defineProperty;
|
449
|
+
|
450
|
+
var setGlobal = function (key, value) {
|
451
|
+
try {
|
452
|
+
defineProperty$1(global_1, key, { value: value, configurable: true, writable: true });
|
453
|
+
} catch (error) {
|
454
|
+
global_1[key] = value;
|
455
|
+
} return value;
|
456
|
+
};
|
457
|
+
|
458
|
+
var SHARED = '__core-js_shared__';
|
459
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
460
|
+
|
461
|
+
var sharedStore = store$1;
|
462
|
+
|
463
|
+
var shared = createCommonjsModule(function (module) {
|
464
|
+
(module.exports = function (key, value) {
|
465
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
466
|
+
})('versions', []).push({
|
467
|
+
version: '3.22.4',
|
468
|
+
mode: 'global',
|
469
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
470
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
471
|
+
source: 'https://github.com/zloirock/core-js'
|
472
|
+
});
|
473
|
+
});
|
474
|
+
|
475
|
+
var Object$2 = global_1.Object;
|
476
|
+
|
477
|
+
// `ToObject` abstract operation
|
478
|
+
// https://tc39.es/ecma262/#sec-toobject
|
479
|
+
var toObject = function (argument) {
|
480
|
+
return Object$2(requireObjectCoercible(argument));
|
481
|
+
};
|
482
|
+
|
483
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
484
|
+
|
485
|
+
// `HasOwnProperty` abstract operation
|
486
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
487
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
488
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
489
|
+
return hasOwnProperty(toObject(it), key);
|
490
|
+
};
|
491
|
+
|
492
|
+
var id = 0;
|
493
|
+
var postfix = Math.random();
|
494
|
+
var toString = functionUncurryThis(1.0.toString);
|
495
|
+
|
496
|
+
var uid = function (key) {
|
497
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
498
|
+
};
|
499
|
+
|
500
|
+
var WellKnownSymbolsStore = shared('wks');
|
501
|
+
var Symbol$1 = global_1.Symbol;
|
502
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
503
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
504
|
+
|
505
|
+
var wellKnownSymbol = function (name) {
|
506
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
507
|
+
var description = 'Symbol.' + name;
|
508
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
509
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
510
|
+
} else if (useSymbolAsUid && symbolFor) {
|
511
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
512
|
+
} else {
|
513
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
514
|
+
}
|
515
|
+
} return WellKnownSymbolsStore[name];
|
516
|
+
};
|
517
|
+
|
518
|
+
var TypeError$7 = global_1.TypeError;
|
519
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
520
|
+
|
521
|
+
// `ToPrimitive` abstract operation
|
522
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
523
|
+
var toPrimitive = function (input, pref) {
|
524
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
525
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
526
|
+
var result;
|
527
|
+
if (exoticToPrim) {
|
528
|
+
if (pref === undefined) pref = 'default';
|
529
|
+
result = functionCall(exoticToPrim, input, pref);
|
530
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
531
|
+
throw TypeError$7("Can't convert object to primitive value");
|
532
|
+
}
|
533
|
+
if (pref === undefined) pref = 'number';
|
534
|
+
return ordinaryToPrimitive(input, pref);
|
535
|
+
};
|
310
536
|
|
311
|
-
|
312
|
-
|
537
|
+
// `ToPropertyKey` abstract operation
|
538
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
539
|
+
var toPropertyKey = function (argument) {
|
540
|
+
var key = toPrimitive(argument, 'string');
|
541
|
+
return isSymbol(key) ? key : key + '';
|
313
542
|
};
|
314
543
|
|
315
|
-
var document = global_1.document;
|
544
|
+
var document$1 = global_1.document;
|
316
545
|
// typeof document.createElement is 'object' in old IE
|
317
|
-
var EXISTS = isObject(document) && isObject(document.createElement);
|
546
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
318
547
|
|
319
548
|
var documentCreateElement = function (it) {
|
320
|
-
return EXISTS ? document.createElement(it) : {};
|
549
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
321
550
|
};
|
322
551
|
|
323
|
-
//
|
552
|
+
// Thanks to IE8 for its funny defineProperty
|
324
553
|
var ie8DomDefine = !descriptors && !fails(function () {
|
325
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
554
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
326
555
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
327
556
|
get: function () { return 7; }
|
328
557
|
}).a != 7;
|
329
558
|
});
|
330
559
|
|
331
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
332
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
560
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
561
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
333
562
|
|
334
563
|
// `Object.getOwnPropertyDescriptor` method
|
335
564
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
336
|
-
var f$
|
565
|
+
var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
337
566
|
O = toIndexedObject(O);
|
338
|
-
P =
|
567
|
+
P = toPropertyKey(P);
|
339
568
|
if (ie8DomDefine) try {
|
340
|
-
return $getOwnPropertyDescriptor(O, P);
|
569
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
341
570
|
} catch (error) { /* empty */ }
|
342
|
-
if (
|
571
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
343
572
|
};
|
344
573
|
|
345
574
|
var objectGetOwnPropertyDescriptor = {
|
346
|
-
f: f$
|
575
|
+
f: f$4
|
347
576
|
};
|
348
577
|
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
578
|
+
// V8 ~ Chrome 36-
|
579
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
580
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
581
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
582
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
583
|
+
value: 42,
|
584
|
+
writable: false
|
585
|
+
}).prototype != 42;
|
586
|
+
});
|
587
|
+
|
588
|
+
var String$3 = global_1.String;
|
589
|
+
var TypeError$6 = global_1.TypeError;
|
590
|
+
|
591
|
+
// `Assert: Type(argument) is Object`
|
592
|
+
var anObject = function (argument) {
|
593
|
+
if (isObject(argument)) return argument;
|
594
|
+
throw TypeError$6(String$3(argument) + ' is not an object');
|
353
595
|
};
|
354
596
|
|
355
|
-
|
597
|
+
var TypeError$5 = global_1.TypeError;
|
598
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
356
599
|
var $defineProperty = Object.defineProperty;
|
600
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
601
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
602
|
+
var ENUMERABLE = 'enumerable';
|
603
|
+
var CONFIGURABLE$1 = 'configurable';
|
604
|
+
var WRITABLE = 'writable';
|
357
605
|
|
358
606
|
// `Object.defineProperty` method
|
359
607
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
360
|
-
var f$
|
608
|
+
var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
609
|
+
anObject(O);
|
610
|
+
P = toPropertyKey(P);
|
611
|
+
anObject(Attributes);
|
612
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
613
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
614
|
+
if (current && current[WRITABLE]) {
|
615
|
+
O[P] = Attributes.value;
|
616
|
+
Attributes = {
|
617
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
618
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
619
|
+
writable: false
|
620
|
+
};
|
621
|
+
}
|
622
|
+
} return $defineProperty(O, P, Attributes);
|
623
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
361
624
|
anObject(O);
|
362
|
-
P =
|
625
|
+
P = toPropertyKey(P);
|
363
626
|
anObject(Attributes);
|
364
627
|
if (ie8DomDefine) try {
|
365
628
|
return $defineProperty(O, P, Attributes);
|
366
629
|
} catch (error) { /* empty */ }
|
367
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
630
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
|
368
631
|
if ('value' in Attributes) O[P] = Attributes.value;
|
369
632
|
return O;
|
370
633
|
};
|
371
634
|
|
372
635
|
var objectDefineProperty = {
|
373
|
-
f: f$
|
636
|
+
f: f$3
|
374
637
|
};
|
375
638
|
|
376
639
|
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
@@ -380,25 +643,27 @@
|
|
380
643
|
return object;
|
381
644
|
};
|
382
645
|
|
383
|
-
var
|
384
|
-
|
385
|
-
|
386
|
-
} catch (error) {
|
387
|
-
global_1[key] = value;
|
388
|
-
} return value;
|
389
|
-
};
|
646
|
+
var FunctionPrototype$1 = Function.prototype;
|
647
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
648
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
390
649
|
|
391
|
-
var
|
392
|
-
|
650
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
651
|
+
// additional protection from minified / mangled / dropped function names
|
652
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
653
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
393
654
|
|
394
|
-
var
|
655
|
+
var functionName = {
|
656
|
+
EXISTS: EXISTS,
|
657
|
+
PROPER: PROPER,
|
658
|
+
CONFIGURABLE: CONFIGURABLE
|
659
|
+
};
|
395
660
|
|
396
|
-
var functionToString = Function.toString;
|
661
|
+
var functionToString = functionUncurryThis(Function.toString);
|
397
662
|
|
398
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
399
|
-
if (
|
663
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
664
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
400
665
|
sharedStore.inspectSource = function (it) {
|
401
|
-
return functionToString
|
666
|
+
return functionToString(it);
|
402
667
|
};
|
403
668
|
}
|
404
669
|
|
@@ -406,24 +671,7 @@
|
|
406
671
|
|
407
672
|
var WeakMap$1 = global_1.WeakMap;
|
408
673
|
|
409
|
-
var nativeWeakMap =
|
410
|
-
|
411
|
-
var shared = createCommonjsModule(function (module) {
|
412
|
-
(module.exports = function (key, value) {
|
413
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
414
|
-
})('versions', []).push({
|
415
|
-
version: '3.10.1',
|
416
|
-
mode: 'global',
|
417
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
418
|
-
});
|
419
|
-
});
|
420
|
-
|
421
|
-
var id = 0;
|
422
|
-
var postfix = Math.random();
|
423
|
-
|
424
|
-
var uid = function (key) {
|
425
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
426
|
-
};
|
674
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
427
675
|
|
428
676
|
var keys$1 = shared('keys');
|
429
677
|
|
@@ -433,6 +681,8 @@
|
|
433
681
|
|
434
682
|
var hiddenKeys$1 = {};
|
435
683
|
|
684
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
685
|
+
var TypeError$4 = global_1.TypeError;
|
436
686
|
var WeakMap = global_1.WeakMap;
|
437
687
|
var set, get, has;
|
438
688
|
|
@@ -444,40 +694,42 @@
|
|
444
694
|
return function (it) {
|
445
695
|
var state;
|
446
696
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
447
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
697
|
+
throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
448
698
|
} return state;
|
449
699
|
};
|
450
700
|
};
|
451
701
|
|
452
|
-
if (nativeWeakMap) {
|
702
|
+
if (nativeWeakMap || sharedStore.state) {
|
453
703
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
454
|
-
var wmget = store.get;
|
455
|
-
var wmhas = store.has;
|
456
|
-
var wmset = store.set;
|
704
|
+
var wmget = functionUncurryThis(store.get);
|
705
|
+
var wmhas = functionUncurryThis(store.has);
|
706
|
+
var wmset = functionUncurryThis(store.set);
|
457
707
|
set = function (it, metadata) {
|
708
|
+
if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
458
709
|
metadata.facade = it;
|
459
|
-
wmset
|
710
|
+
wmset(store, it, metadata);
|
460
711
|
return metadata;
|
461
712
|
};
|
462
713
|
get = function (it) {
|
463
|
-
return wmget
|
714
|
+
return wmget(store, it) || {};
|
464
715
|
};
|
465
716
|
has = function (it) {
|
466
|
-
return wmhas
|
717
|
+
return wmhas(store, it);
|
467
718
|
};
|
468
719
|
} else {
|
469
720
|
var STATE = sharedKey('state');
|
470
721
|
hiddenKeys$1[STATE] = true;
|
471
722
|
set = function (it, metadata) {
|
723
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
472
724
|
metadata.facade = it;
|
473
725
|
createNonEnumerableProperty(it, STATE, metadata);
|
474
726
|
return metadata;
|
475
727
|
};
|
476
728
|
get = function (it) {
|
477
|
-
return
|
729
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
478
730
|
};
|
479
731
|
has = function (it) {
|
480
|
-
return
|
732
|
+
return hasOwnProperty_1(it, STATE);
|
481
733
|
};
|
482
734
|
}
|
483
735
|
|
@@ -489,29 +741,56 @@
|
|
489
741
|
getterFor: getterFor
|
490
742
|
};
|
491
743
|
|
492
|
-
var
|
493
|
-
var
|
744
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
745
|
+
var defineProperty = objectDefineProperty.f;
|
746
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
747
|
+
|
748
|
+
|
749
|
+
|
494
750
|
var enforceInternalState = internalState.enforce;
|
751
|
+
var getInternalState = internalState.get;
|
752
|
+
|
753
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
754
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
755
|
+
});
|
756
|
+
|
495
757
|
var TEMPLATE = String(String).split('String');
|
496
758
|
|
497
|
-
|
759
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
760
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
761
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
762
|
+
}
|
763
|
+
if (options && options.getter) name = 'get ' + name;
|
764
|
+
if (options && options.setter) name = 'set ' + name;
|
765
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
766
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
767
|
+
}
|
768
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
769
|
+
defineProperty(value, 'length', { value: options.arity });
|
770
|
+
}
|
771
|
+
var state = enforceInternalState(value);
|
772
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
773
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
774
|
+
} return value;
|
775
|
+
};
|
776
|
+
|
777
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
778
|
+
// eslint-disable-next-line no-extend-native -- required
|
779
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
780
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
781
|
+
}, 'toString');
|
782
|
+
});
|
783
|
+
|
784
|
+
var defineBuiltIn = function (O, key, value, options) {
|
498
785
|
var unsafe = options ? !!options.unsafe : false;
|
499
786
|
var simple = options ? !!options.enumerable : false;
|
500
787
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
501
|
-
var
|
502
|
-
if (
|
503
|
-
if (typeof key == 'string' && !has$1(value, 'name')) {
|
504
|
-
createNonEnumerableProperty(value, 'name', key);
|
505
|
-
}
|
506
|
-
state = enforceInternalState(value);
|
507
|
-
if (!state.source) {
|
508
|
-
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
509
|
-
}
|
510
|
-
}
|
788
|
+
var name = options && options.name !== undefined ? options.name : key;
|
789
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
511
790
|
if (O === global_1) {
|
512
791
|
if (simple) O[key] = value;
|
513
792
|
else setGlobal(key, value);
|
514
|
-
return;
|
793
|
+
return O;
|
515
794
|
} else if (!unsafe) {
|
516
795
|
delete O[key];
|
517
796
|
} else if (!noTargetGet && O[key]) {
|
@@ -519,56 +798,50 @@
|
|
519
798
|
}
|
520
799
|
if (simple) O[key] = value;
|
521
800
|
else createNonEnumerableProperty(O, key, value);
|
522
|
-
|
523
|
-
})(Function.prototype, 'toString', function toString() {
|
524
|
-
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
525
|
-
});
|
526
|
-
});
|
527
|
-
|
528
|
-
var path = global_1;
|
529
|
-
|
530
|
-
var aFunction = function (variable) {
|
531
|
-
return typeof variable == 'function' ? variable : undefined;
|
532
|
-
};
|
533
|
-
|
534
|
-
var getBuiltIn = function (namespace, method) {
|
535
|
-
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
|
536
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
801
|
+
return O;
|
537
802
|
};
|
538
803
|
|
539
804
|
var ceil = Math.ceil;
|
540
805
|
var floor$1 = Math.floor;
|
541
806
|
|
542
|
-
// `
|
543
|
-
// https://tc39.es/ecma262/#sec-
|
544
|
-
var
|
545
|
-
|
807
|
+
// `ToIntegerOrInfinity` abstract operation
|
808
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
809
|
+
var toIntegerOrInfinity = function (argument) {
|
810
|
+
var number = +argument;
|
811
|
+
// eslint-disable-next-line no-self-compare -- safe
|
812
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
546
813
|
};
|
547
814
|
|
815
|
+
var max$1 = Math.max;
|
548
816
|
var min$2 = Math.min;
|
549
817
|
|
818
|
+
// Helper for a popular repeating case of the spec:
|
819
|
+
// Let integer be ? ToInteger(index).
|
820
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
821
|
+
var toAbsoluteIndex = function (index, length) {
|
822
|
+
var integer = toIntegerOrInfinity(index);
|
823
|
+
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
824
|
+
};
|
825
|
+
|
826
|
+
var min$1 = Math.min;
|
827
|
+
|
550
828
|
// `ToLength` abstract operation
|
551
829
|
// https://tc39.es/ecma262/#sec-tolength
|
552
830
|
var toLength = function (argument) {
|
553
|
-
return argument > 0 ? min$
|
831
|
+
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
554
832
|
};
|
555
833
|
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
// Let integer be ? ToInteger(index).
|
561
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
562
|
-
var toAbsoluteIndex = function (index, length) {
|
563
|
-
var integer = toInteger(index);
|
564
|
-
return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
|
834
|
+
// `LengthOfArrayLike` abstract operation
|
835
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
836
|
+
var lengthOfArrayLike = function (obj) {
|
837
|
+
return toLength(obj.length);
|
565
838
|
};
|
566
839
|
|
567
840
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
568
841
|
var createMethod$2 = function (IS_INCLUDES) {
|
569
842
|
return function ($this, el, fromIndex) {
|
570
843
|
var O = toIndexedObject($this);
|
571
|
-
var length =
|
844
|
+
var length = lengthOfArrayLike(O);
|
572
845
|
var index = toAbsoluteIndex(fromIndex, length);
|
573
846
|
var value;
|
574
847
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -593,18 +866,20 @@
|
|
593
866
|
indexOf: createMethod$2(false)
|
594
867
|
};
|
595
868
|
|
596
|
-
var indexOf = arrayIncludes.indexOf;
|
869
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
597
870
|
|
598
871
|
|
872
|
+
var push$2 = functionUncurryThis([].push);
|
873
|
+
|
599
874
|
var objectKeysInternal = function (object, names) {
|
600
875
|
var O = toIndexedObject(object);
|
601
876
|
var i = 0;
|
602
877
|
var result = [];
|
603
878
|
var key;
|
604
|
-
for (key in O) !
|
879
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$2(result, key);
|
605
880
|
// Don't enum bug & hidden keys
|
606
|
-
while (names.length > i) if (
|
607
|
-
~indexOf(result, key) ||
|
881
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
882
|
+
~indexOf$1(result, key) || push$2(result, key);
|
608
883
|
}
|
609
884
|
return result;
|
610
885
|
};
|
@@ -624,36 +899,40 @@
|
|
624
899
|
|
625
900
|
// `Object.getOwnPropertyNames` method
|
626
901
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
627
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
628
|
-
var f$
|
902
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
903
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
629
904
|
return objectKeysInternal(O, hiddenKeys);
|
630
905
|
};
|
631
906
|
|
632
907
|
var objectGetOwnPropertyNames = {
|
633
|
-
f: f$
|
908
|
+
f: f$2
|
634
909
|
};
|
635
910
|
|
636
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
637
|
-
var f = Object.getOwnPropertySymbols;
|
911
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
912
|
+
var f$1 = Object.getOwnPropertySymbols;
|
638
913
|
|
639
914
|
var objectGetOwnPropertySymbols = {
|
640
|
-
f: f
|
915
|
+
f: f$1
|
641
916
|
};
|
642
917
|
|
918
|
+
var concat$1 = functionUncurryThis([].concat);
|
919
|
+
|
643
920
|
// all object keys, includes non-enumerable and symbols
|
644
921
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
645
922
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
646
923
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
647
|
-
return getOwnPropertySymbols ?
|
924
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
648
925
|
};
|
649
926
|
|
650
|
-
var copyConstructorProperties = function (target, source) {
|
927
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
651
928
|
var keys = ownKeys(source);
|
652
929
|
var defineProperty = objectDefineProperty.f;
|
653
930
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
654
931
|
for (var i = 0; i < keys.length; i++) {
|
655
932
|
var key = keys[i];
|
656
|
-
if (!
|
933
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
934
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
935
|
+
}
|
657
936
|
}
|
658
937
|
};
|
659
938
|
|
@@ -663,7 +942,7 @@
|
|
663
942
|
var value = data[normalize(feature)];
|
664
943
|
return value == POLYFILL ? true
|
665
944
|
: value == NATIVE ? false
|
666
|
-
:
|
945
|
+
: isCallable(detection) ? fails(detection)
|
667
946
|
: !!detection;
|
668
947
|
};
|
669
948
|
|
@@ -697,6 +976,7 @@
|
|
697
976
|
options.sham - add a flag to not completely full polyfills
|
698
977
|
options.enumerable - export as enumerable property
|
699
978
|
options.noTargetGet - prevent calling a getter on target
|
979
|
+
options.name - the .name of the function if it does not match the key
|
700
980
|
*/
|
701
981
|
var _export = function (options, source) {
|
702
982
|
var TARGET = options.target;
|
@@ -719,23 +999,62 @@
|
|
719
999
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
720
1000
|
// contained in target
|
721
1001
|
if (!FORCED && targetProperty !== undefined) {
|
722
|
-
if (typeof sourceProperty
|
1002
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
723
1003
|
copyConstructorProperties(sourceProperty, targetProperty);
|
724
1004
|
}
|
725
1005
|
// add a flag to not completely full polyfills
|
726
1006
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
727
1007
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
728
1008
|
}
|
729
|
-
|
730
|
-
redefine(target, key, sourceProperty, options);
|
1009
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
731
1010
|
}
|
732
1011
|
};
|
733
1012
|
|
1013
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1014
|
+
var test = {};
|
1015
|
+
|
1016
|
+
test[TO_STRING_TAG$1] = 'z';
|
1017
|
+
|
1018
|
+
var toStringTagSupport = String(test) === '[object z]';
|
1019
|
+
|
1020
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
1021
|
+
var Object$1 = global_1.Object;
|
1022
|
+
|
1023
|
+
// ES3 wrong here
|
1024
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
1025
|
+
|
1026
|
+
// fallback for IE11 Script Access Denied error
|
1027
|
+
var tryGet = function (it, key) {
|
1028
|
+
try {
|
1029
|
+
return it[key];
|
1030
|
+
} catch (error) { /* empty */ }
|
1031
|
+
};
|
1032
|
+
|
1033
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
1034
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
1035
|
+
var O, tag, result;
|
1036
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1037
|
+
// @@toStringTag case
|
1038
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
1039
|
+
// builtinTag case
|
1040
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
1041
|
+
// ES3 arguments fallback
|
1042
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
1043
|
+
};
|
1044
|
+
|
1045
|
+
var String$2 = global_1.String;
|
1046
|
+
|
1047
|
+
var toString_1 = function (argument) {
|
1048
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1049
|
+
return String$2(argument);
|
1050
|
+
};
|
1051
|
+
|
734
1052
|
// `RegExp.prototype.flags` getter implementation
|
735
1053
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
736
1054
|
var regexpFlags = function () {
|
737
1055
|
var that = anObject(this);
|
738
1056
|
var result = '';
|
1057
|
+
if (that.hasIndices) result += 'd';
|
739
1058
|
if (that.global) result += 'g';
|
740
1059
|
if (that.ignoreCase) result += 'i';
|
741
1060
|
if (that.multiline) result += 'm';
|
@@ -745,71 +1064,229 @@
|
|
745
1064
|
return result;
|
746
1065
|
};
|
747
1066
|
|
748
|
-
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
749
|
-
|
750
|
-
function RE(s, f) {
|
751
|
-
return RegExp(s, f);
|
752
|
-
}
|
1067
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
1068
|
+
var $RegExp$2 = global_1.RegExp;
|
753
1069
|
|
754
1070
|
var UNSUPPORTED_Y$2 = fails(function () {
|
755
|
-
|
756
|
-
var re = RE('a', 'y');
|
1071
|
+
var re = $RegExp$2('a', 'y');
|
757
1072
|
re.lastIndex = 2;
|
758
1073
|
return re.exec('abcd') != null;
|
759
1074
|
});
|
760
1075
|
|
761
|
-
|
1076
|
+
// UC Browser bug
|
1077
|
+
// https://github.com/zloirock/core-js/issues/1008
|
1078
|
+
var MISSED_STICKY$1 = UNSUPPORTED_Y$2 || fails(function () {
|
1079
|
+
return !$RegExp$2('a', 'y').sticky;
|
1080
|
+
});
|
1081
|
+
|
1082
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails(function () {
|
762
1083
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
763
|
-
var re =
|
1084
|
+
var re = $RegExp$2('^r', 'gy');
|
764
1085
|
re.lastIndex = 2;
|
765
1086
|
return re.exec('str') != null;
|
766
1087
|
});
|
767
1088
|
|
768
1089
|
var regexpStickyHelpers = {
|
769
|
-
|
770
|
-
|
1090
|
+
BROKEN_CARET: BROKEN_CARET,
|
1091
|
+
MISSED_STICKY: MISSED_STICKY$1,
|
1092
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
771
1093
|
};
|
772
1094
|
|
773
|
-
|
774
|
-
|
1095
|
+
// `Object.keys` method
|
1096
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
1097
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
1098
|
+
var objectKeys = Object.keys || function keys(O) {
|
1099
|
+
return objectKeysInternal(O, enumBugKeys);
|
1100
|
+
};
|
775
1101
|
|
1102
|
+
// `Object.defineProperties` method
|
1103
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1104
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1105
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1106
|
+
anObject(O);
|
1107
|
+
var props = toIndexedObject(Properties);
|
1108
|
+
var keys = objectKeys(Properties);
|
1109
|
+
var length = keys.length;
|
1110
|
+
var index = 0;
|
1111
|
+
var key;
|
1112
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
1113
|
+
return O;
|
1114
|
+
};
|
1115
|
+
|
1116
|
+
var objectDefineProperties = {
|
1117
|
+
f: f
|
1118
|
+
};
|
1119
|
+
|
1120
|
+
var html = getBuiltIn('document', 'documentElement');
|
1121
|
+
|
1122
|
+
/* global ActiveXObject -- old IE, WSH */
|
1123
|
+
|
1124
|
+
|
1125
|
+
|
1126
|
+
|
1127
|
+
|
1128
|
+
|
1129
|
+
|
1130
|
+
|
1131
|
+
var GT = '>';
|
1132
|
+
var LT = '<';
|
1133
|
+
var PROTOTYPE = 'prototype';
|
1134
|
+
var SCRIPT = 'script';
|
1135
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
1136
|
+
|
1137
|
+
var EmptyConstructor = function () { /* empty */ };
|
1138
|
+
|
1139
|
+
var scriptTag = function (content) {
|
1140
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1141
|
+
};
|
1142
|
+
|
1143
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
1144
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1145
|
+
activeXDocument.write(scriptTag(''));
|
1146
|
+
activeXDocument.close();
|
1147
|
+
var temp = activeXDocument.parentWindow.Object;
|
1148
|
+
activeXDocument = null; // avoid memory leak
|
1149
|
+
return temp;
|
1150
|
+
};
|
1151
|
+
|
1152
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1153
|
+
var NullProtoObjectViaIFrame = function () {
|
1154
|
+
// Thrash, waste and sodomy: IE GC bug
|
1155
|
+
var iframe = documentCreateElement('iframe');
|
1156
|
+
var JS = 'java' + SCRIPT + ':';
|
1157
|
+
var iframeDocument;
|
1158
|
+
iframe.style.display = 'none';
|
1159
|
+
html.appendChild(iframe);
|
1160
|
+
// https://github.com/zloirock/core-js/issues/475
|
1161
|
+
iframe.src = String(JS);
|
1162
|
+
iframeDocument = iframe.contentWindow.document;
|
1163
|
+
iframeDocument.open();
|
1164
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
1165
|
+
iframeDocument.close();
|
1166
|
+
return iframeDocument.F;
|
1167
|
+
};
|
1168
|
+
|
1169
|
+
// Check for document.domain and active x support
|
1170
|
+
// No need to use active x approach when document.domain is not set
|
1171
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
1172
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
1173
|
+
// avoid IE GC bug
|
1174
|
+
var activeXDocument;
|
1175
|
+
var NullProtoObject = function () {
|
1176
|
+
try {
|
1177
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
1178
|
+
} catch (error) { /* ignore */ }
|
1179
|
+
NullProtoObject = typeof document != 'undefined'
|
1180
|
+
? document.domain && activeXDocument
|
1181
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1182
|
+
: NullProtoObjectViaIFrame()
|
1183
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
1184
|
+
var length = enumBugKeys.length;
|
1185
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1186
|
+
return NullProtoObject();
|
1187
|
+
};
|
1188
|
+
|
1189
|
+
hiddenKeys$1[IE_PROTO] = true;
|
1190
|
+
|
1191
|
+
// `Object.create` method
|
1192
|
+
// https://tc39.es/ecma262/#sec-object.create
|
1193
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
1194
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
1195
|
+
var result;
|
1196
|
+
if (O !== null) {
|
1197
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
1198
|
+
result = new EmptyConstructor();
|
1199
|
+
EmptyConstructor[PROTOTYPE] = null;
|
1200
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
1201
|
+
result[IE_PROTO] = O;
|
1202
|
+
} else result = NullProtoObject();
|
1203
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
1204
|
+
};
|
1205
|
+
|
1206
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
1207
|
+
var $RegExp$1 = global_1.RegExp;
|
1208
|
+
|
1209
|
+
var regexpUnsupportedDotAll = fails(function () {
|
1210
|
+
var re = $RegExp$1('.', 's');
|
1211
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
1212
|
+
});
|
1213
|
+
|
1214
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
1215
|
+
var $RegExp = global_1.RegExp;
|
1216
|
+
|
1217
|
+
var regexpUnsupportedNcg = fails(function () {
|
1218
|
+
var re = $RegExp('(?<a>b)', 'g');
|
1219
|
+
return re.exec('b').groups.a !== 'b' ||
|
1220
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
1221
|
+
});
|
1222
|
+
|
1223
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
1224
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
1225
|
+
|
1226
|
+
|
1227
|
+
|
1228
|
+
|
1229
|
+
|
1230
|
+
|
1231
|
+
|
1232
|
+
var getInternalState = internalState.get;
|
1233
|
+
|
1234
|
+
|
1235
|
+
|
1236
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
1237
|
+
var nativeExec = RegExp.prototype.exec;
|
776
1238
|
var patchedExec = nativeExec;
|
1239
|
+
var charAt$4 = functionUncurryThis(''.charAt);
|
1240
|
+
var indexOf = functionUncurryThis(''.indexOf);
|
1241
|
+
var replace$2 = functionUncurryThis(''.replace);
|
1242
|
+
var stringSlice$4 = functionUncurryThis(''.slice);
|
777
1243
|
|
778
1244
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
779
1245
|
var re1 = /a/;
|
780
1246
|
var re2 = /b*/g;
|
781
|
-
nativeExec
|
782
|
-
nativeExec
|
1247
|
+
functionCall(nativeExec, re1, 'a');
|
1248
|
+
functionCall(nativeExec, re2, 'a');
|
783
1249
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
784
1250
|
})();
|
785
1251
|
|
786
|
-
var UNSUPPORTED_Y$1 = regexpStickyHelpers.
|
1252
|
+
var UNSUPPORTED_Y$1 = regexpStickyHelpers.BROKEN_CARET;
|
787
1253
|
|
788
1254
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
789
|
-
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
|
790
1255
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
791
1256
|
|
792
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
|
1257
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || regexpUnsupportedDotAll || regexpUnsupportedNcg;
|
793
1258
|
|
794
1259
|
if (PATCH) {
|
795
|
-
patchedExec = function exec(
|
1260
|
+
patchedExec = function exec(string) {
|
796
1261
|
var re = this;
|
797
|
-
var
|
1262
|
+
var state = getInternalState(re);
|
1263
|
+
var str = toString_1(string);
|
1264
|
+
var raw = state.raw;
|
1265
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
1266
|
+
|
1267
|
+
if (raw) {
|
1268
|
+
raw.lastIndex = re.lastIndex;
|
1269
|
+
result = functionCall(patchedExec, raw, str);
|
1270
|
+
re.lastIndex = raw.lastIndex;
|
1271
|
+
return result;
|
1272
|
+
}
|
1273
|
+
|
1274
|
+
var groups = state.groups;
|
798
1275
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
799
|
-
var flags = regexpFlags
|
1276
|
+
var flags = functionCall(regexpFlags, re);
|
800
1277
|
var source = re.source;
|
801
1278
|
var charsAdded = 0;
|
802
1279
|
var strCopy = str;
|
803
1280
|
|
804
1281
|
if (sticky) {
|
805
|
-
flags =
|
806
|
-
if (
|
1282
|
+
flags = replace$2(flags, 'y', '');
|
1283
|
+
if (indexOf(flags, 'g') === -1) {
|
807
1284
|
flags += 'g';
|
808
1285
|
}
|
809
1286
|
|
810
|
-
strCopy =
|
1287
|
+
strCopy = stringSlice$4(str, re.lastIndex);
|
811
1288
|
// Support anchored sticky behavior.
|
812
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str
|
1289
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$4(str, re.lastIndex - 1) !== '\n')) {
|
813
1290
|
source = '(?: ' + source + ')';
|
814
1291
|
strCopy = ' ' + strCopy;
|
815
1292
|
charsAdded++;
|
@@ -824,12 +1301,12 @@
|
|
824
1301
|
}
|
825
1302
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
826
1303
|
|
827
|
-
match = nativeExec
|
1304
|
+
match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
|
828
1305
|
|
829
1306
|
if (sticky) {
|
830
1307
|
if (match) {
|
831
|
-
match.input = match.input
|
832
|
-
match[0] = match[0]
|
1308
|
+
match.input = stringSlice$4(match.input, charsAdded);
|
1309
|
+
match[0] = stringSlice$4(match[0], charsAdded);
|
833
1310
|
match.index = re.lastIndex;
|
834
1311
|
re.lastIndex += match[0].length;
|
835
1312
|
} else re.lastIndex = 0;
|
@@ -839,13 +1316,21 @@
|
|
839
1316
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
840
1317
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
841
1318
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
842
|
-
nativeReplace
|
1319
|
+
functionCall(nativeReplace, match[0], reCopy, function () {
|
843
1320
|
for (i = 1; i < arguments.length - 2; i++) {
|
844
1321
|
if (arguments[i] === undefined) match[i] = undefined;
|
845
1322
|
}
|
846
1323
|
});
|
847
1324
|
}
|
848
1325
|
|
1326
|
+
if (match && groups) {
|
1327
|
+
match.groups = object = objectCreate(null);
|
1328
|
+
for (i = 0; i < groups.length; i++) {
|
1329
|
+
group = groups[i];
|
1330
|
+
object[group[0]] = match[group[1]];
|
1331
|
+
}
|
1332
|
+
}
|
1333
|
+
|
849
1334
|
return match;
|
850
1335
|
};
|
851
1336
|
}
|
@@ -858,58 +1343,6 @@
|
|
858
1343
|
exec: regexpExec
|
859
1344
|
});
|
860
1345
|
|
861
|
-
var engineIsNode = classofRaw(global_1.process) == 'process';
|
862
|
-
|
863
|
-
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
864
|
-
|
865
|
-
var process = global_1.process;
|
866
|
-
var versions = process && process.versions;
|
867
|
-
var v8 = versions && versions.v8;
|
868
|
-
var match, version;
|
869
|
-
|
870
|
-
if (v8) {
|
871
|
-
match = v8.split('.');
|
872
|
-
version = match[0] + match[1];
|
873
|
-
} else if (engineUserAgent) {
|
874
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
875
|
-
if (!match || match[1] >= 74) {
|
876
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
877
|
-
if (match) version = match[1];
|
878
|
-
}
|
879
|
-
}
|
880
|
-
|
881
|
-
var engineV8Version = version && +version;
|
882
|
-
|
883
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
884
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
885
|
-
// eslint-disable-next-line es/no-symbol -- required for testing
|
886
|
-
return !Symbol.sham &&
|
887
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
888
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
889
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
890
|
-
});
|
891
|
-
|
892
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
893
|
-
|
894
|
-
|
895
|
-
var useSymbolAsUid = nativeSymbol
|
896
|
-
&& !Symbol.sham
|
897
|
-
&& typeof Symbol.iterator == 'symbol';
|
898
|
-
|
899
|
-
var WellKnownSymbolsStore = shared('wks');
|
900
|
-
var Symbol$1 = global_1.Symbol;
|
901
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
902
|
-
|
903
|
-
var wellKnownSymbol = function (name) {
|
904
|
-
if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
905
|
-
if (nativeSymbol && has$1(Symbol$1, name)) {
|
906
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
907
|
-
} else {
|
908
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
909
|
-
}
|
910
|
-
} return WellKnownSymbolsStore[name];
|
911
|
-
};
|
912
|
-
|
913
1346
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
914
1347
|
|
915
1348
|
|
@@ -917,49 +1350,12 @@
|
|
917
1350
|
|
918
1351
|
|
919
1352
|
|
920
|
-
var SPECIES$3 = wellKnownSymbol('species');
|
921
1353
|
|
922
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
923
|
-
// #replace needs built-in support for named groups.
|
924
|
-
// #match works fine because it just return the exec results, even if it has
|
925
|
-
// a "grops" property.
|
926
|
-
var re = /./;
|
927
|
-
re.exec = function () {
|
928
|
-
var result = [];
|
929
|
-
result.groups = { a: '7' };
|
930
|
-
return result;
|
931
|
-
};
|
932
|
-
return ''.replace(re, '$<a>') !== '7';
|
933
|
-
});
|
934
|
-
|
935
|
-
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
936
|
-
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
937
|
-
var REPLACE_KEEPS_$0 = (function () {
|
938
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
939
|
-
return 'a'.replace(/./, '$0') === '$0';
|
940
|
-
})();
|
941
|
-
|
942
|
-
var REPLACE = wellKnownSymbol('replace');
|
943
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
944
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
945
|
-
if (/./[REPLACE]) {
|
946
|
-
return /./[REPLACE]('a', '$0') === '';
|
947
|
-
}
|
948
|
-
return false;
|
949
|
-
})();
|
950
1354
|
|
951
|
-
|
952
|
-
|
953
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
954
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
955
|
-
var re = /(?:)/;
|
956
|
-
var originalExec = re.exec;
|
957
|
-
re.exec = function () { return originalExec.apply(this, arguments); };
|
958
|
-
var result = 'ab'.split(re);
|
959
|
-
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
960
|
-
});
|
1355
|
+
var SPECIES$3 = wellKnownSymbol('species');
|
1356
|
+
var RegExpPrototype$3 = RegExp.prototype;
|
961
1357
|
|
962
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY,
|
1358
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
963
1359
|
var SYMBOL = wellKnownSymbol(KEY);
|
964
1360
|
|
965
1361
|
var DELEGATES_TO_SYMBOL = !fails(function () {
|
@@ -996,91 +1392,72 @@
|
|
996
1392
|
if (
|
997
1393
|
!DELEGATES_TO_SYMBOL ||
|
998
1394
|
!DELEGATES_TO_EXEC ||
|
999
|
-
|
1000
|
-
REPLACE_SUPPORTS_NAMED_GROUPS &&
|
1001
|
-
REPLACE_KEEPS_$0 &&
|
1002
|
-
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
1003
|
-
)) ||
|
1004
|
-
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
1395
|
+
FORCED
|
1005
1396
|
) {
|
1006
|
-
var
|
1397
|
+
var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
|
1007
1398
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
1008
|
-
|
1399
|
+
var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
|
1400
|
+
var $exec = regexp.exec;
|
1401
|
+
if ($exec === regexpExec || $exec === RegExpPrototype$3.exec) {
|
1009
1402
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
1010
1403
|
// The native String method already delegates to @@method (this
|
1011
1404
|
// polyfilled function), leasing to infinite recursion.
|
1012
1405
|
// We avoid it by directly calling the native @@method method.
|
1013
|
-
return { done: true, value:
|
1406
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
1014
1407
|
}
|
1015
|
-
return { done: true, value:
|
1408
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
1016
1409
|
}
|
1017
1410
|
return { done: false };
|
1018
|
-
}, {
|
1019
|
-
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
1020
|
-
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
1021
1411
|
});
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
redefine(String.prototype, KEY, stringMethod);
|
1026
|
-
redefine(RegExp.prototype, SYMBOL, length == 2
|
1027
|
-
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
|
1028
|
-
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
|
1029
|
-
? function (string, arg) { return regexMethod.call(string, this, arg); }
|
1030
|
-
// 21.2.5.6 RegExp.prototype[@@match](string)
|
1031
|
-
// 21.2.5.9 RegExp.prototype[@@search](string)
|
1032
|
-
: function (string) { return regexMethod.call(string, this); }
|
1033
|
-
);
|
1412
|
+
|
1413
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
1414
|
+
defineBuiltIn(RegExpPrototype$3, SYMBOL, methods[1]);
|
1034
1415
|
}
|
1035
1416
|
|
1036
|
-
if (
|
1417
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype$3[SYMBOL], 'sham', true);
|
1037
1418
|
};
|
1038
1419
|
|
1039
1420
|
// `SameValue` abstract operation
|
1040
1421
|
// https://tc39.es/ecma262/#sec-samevalue
|
1041
|
-
// eslint-disable-next-line es/no-object-is -- safe
|
1422
|
+
// eslint-disable-next-line es-x/no-object-is -- safe
|
1042
1423
|
var sameValue = Object.is || function is(x, y) {
|
1043
1424
|
// eslint-disable-next-line no-self-compare -- NaN check
|
1044
1425
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
1045
1426
|
};
|
1046
1427
|
|
1428
|
+
var TypeError$3 = global_1.TypeError;
|
1429
|
+
|
1047
1430
|
// `RegExpExec` abstract operation
|
1048
1431
|
// https://tc39.es/ecma262/#sec-regexpexec
|
1049
1432
|
var regexpExecAbstract = function (R, S) {
|
1050
1433
|
var exec = R.exec;
|
1051
|
-
if (
|
1052
|
-
var result = exec
|
1053
|
-
if (
|
1054
|
-
throw TypeError('RegExp exec method returned something other than an Object or null');
|
1055
|
-
}
|
1434
|
+
if (isCallable(exec)) {
|
1435
|
+
var result = functionCall(exec, R, S);
|
1436
|
+
if (result !== null) anObject(result);
|
1056
1437
|
return result;
|
1057
1438
|
}
|
1058
|
-
|
1059
|
-
|
1060
|
-
throw TypeError('RegExp#exec called on incompatible receiver');
|
1061
|
-
}
|
1062
|
-
|
1063
|
-
return regexpExec.call(R, S);
|
1439
|
+
if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
|
1440
|
+
throw TypeError$3('RegExp#exec called on incompatible receiver');
|
1064
1441
|
};
|
1065
1442
|
|
1066
1443
|
// @@search logic
|
1067
|
-
fixRegexpWellKnownSymbolLogic('search',
|
1444
|
+
fixRegexpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
|
1068
1445
|
return [
|
1069
1446
|
// `String.prototype.search` method
|
1070
1447
|
// https://tc39.es/ecma262/#sec-string.prototype.search
|
1071
1448
|
function search(regexp) {
|
1072
1449
|
var O = requireObjectCoercible(this);
|
1073
|
-
var searcher = regexp == undefined ? undefined : regexp
|
1074
|
-
return searcher
|
1450
|
+
var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);
|
1451
|
+
return searcher ? functionCall(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString_1(O));
|
1075
1452
|
},
|
1076
1453
|
// `RegExp.prototype[@@search]` method
|
1077
1454
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
1078
|
-
function (
|
1079
|
-
var
|
1080
|
-
|
1455
|
+
function (string) {
|
1456
|
+
var rx = anObject(this);
|
1457
|
+
var S = toString_1(string);
|
1458
|
+
var res = maybeCallNative(nativeSearch, rx, S);
|
1081
1459
|
|
1082
|
-
|
1083
|
-
var S = String(this);
|
1460
|
+
if (res.done) return res.value;
|
1084
1461
|
|
1085
1462
|
var previousLastIndex = rx.lastIndex;
|
1086
1463
|
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
|
@@ -1091,34 +1468,37 @@
|
|
1091
1468
|
];
|
1092
1469
|
});
|
1093
1470
|
|
1094
|
-
var
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1471
|
+
var String$1 = global_1.String;
|
1472
|
+
var TypeError$2 = global_1.TypeError;
|
1473
|
+
|
1474
|
+
var aPossiblePrototype = function (argument) {
|
1475
|
+
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
1476
|
+
throw TypeError$2("Can't set " + String$1(argument) + ' as a prototype');
|
1098
1477
|
};
|
1099
1478
|
|
1100
1479
|
/* eslint-disable no-proto -- safe */
|
1101
1480
|
|
1102
1481
|
|
1103
1482
|
|
1483
|
+
|
1104
1484
|
// `Object.setPrototypeOf` method
|
1105
1485
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
1106
1486
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
1107
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
1487
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
1108
1488
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
1109
1489
|
var CORRECT_SETTER = false;
|
1110
1490
|
var test = {};
|
1111
1491
|
var setter;
|
1112
1492
|
try {
|
1113
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
1114
|
-
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
1115
|
-
setter
|
1493
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
1494
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
1495
|
+
setter(test, []);
|
1116
1496
|
CORRECT_SETTER = test instanceof Array;
|
1117
1497
|
} catch (error) { /* empty */ }
|
1118
1498
|
return function setPrototypeOf(O, proto) {
|
1119
1499
|
anObject(O);
|
1120
1500
|
aPossiblePrototype(proto);
|
1121
|
-
if (CORRECT_SETTER) setter
|
1501
|
+
if (CORRECT_SETTER) setter(O, proto);
|
1122
1502
|
else O.__proto__ = proto;
|
1123
1503
|
return O;
|
1124
1504
|
};
|
@@ -1131,7 +1511,7 @@
|
|
1131
1511
|
// it can work only with native `setPrototypeOf`
|
1132
1512
|
objectSetPrototypeOf &&
|
1133
1513
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
1134
|
-
|
1514
|
+
isCallable(NewTarget = dummy.constructor) &&
|
1135
1515
|
NewTarget !== Wrapper &&
|
1136
1516
|
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
1137
1517
|
NewTargetPrototype !== Wrapper.prototype
|
@@ -1148,6 +1528,24 @@
|
|
1148
1528
|
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
1149
1529
|
};
|
1150
1530
|
|
1531
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
1532
|
+
|
1533
|
+
var regexpGetFlags = function (R) {
|
1534
|
+
var flags = R.flags;
|
1535
|
+
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwnProperty_1(R, 'flags') && objectIsPrototypeOf(RegExpPrototype$2, R)
|
1536
|
+
? functionCall(regexpFlags, R) : flags;
|
1537
|
+
};
|
1538
|
+
|
1539
|
+
var defineProperty = objectDefineProperty.f;
|
1540
|
+
|
1541
|
+
var proxyAccessor = function (Target, Source, key) {
|
1542
|
+
key in Target || defineProperty(Target, key, {
|
1543
|
+
configurable: true,
|
1544
|
+
get: function () { return Source[key]; },
|
1545
|
+
set: function (it) { Source[key] = it; }
|
1546
|
+
});
|
1547
|
+
};
|
1548
|
+
|
1151
1549
|
var SPECIES$2 = wellKnownSymbol('species');
|
1152
1550
|
|
1153
1551
|
var setSpecies = function (CONSTRUCTOR_NAME) {
|
@@ -1162,120 +1560,237 @@
|
|
1162
1560
|
}
|
1163
1561
|
};
|
1164
1562
|
|
1165
|
-
var defineProperty = objectDefineProperty.f;
|
1166
1563
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
1167
1564
|
|
1168
1565
|
|
1169
1566
|
|
1170
1567
|
|
1171
1568
|
|
1172
|
-
|
1569
|
+
|
1570
|
+
|
1571
|
+
|
1572
|
+
|
1573
|
+
var enforceInternalState = internalState.enforce;
|
1574
|
+
|
1575
|
+
|
1173
1576
|
|
1174
1577
|
|
1175
1578
|
|
1176
1579
|
var MATCH = wellKnownSymbol('match');
|
1177
1580
|
var NativeRegExp = global_1.RegExp;
|
1178
1581
|
var RegExpPrototype$1 = NativeRegExp.prototype;
|
1582
|
+
var SyntaxError = global_1.SyntaxError;
|
1583
|
+
var exec$1 = functionUncurryThis(RegExpPrototype$1.exec);
|
1584
|
+
var charAt$3 = functionUncurryThis(''.charAt);
|
1585
|
+
var replace$1 = functionUncurryThis(''.replace);
|
1586
|
+
var stringIndexOf$1 = functionUncurryThis(''.indexOf);
|
1587
|
+
var stringSlice$3 = functionUncurryThis(''.slice);
|
1588
|
+
// TODO: Use only propper RegExpIdentifierName
|
1589
|
+
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
1179
1590
|
var re1 = /a/g;
|
1180
1591
|
var re2 = /a/g;
|
1181
1592
|
|
1182
1593
|
// "new" should create a new object, old webkit bug
|
1183
1594
|
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
|
1184
1595
|
|
1596
|
+
var MISSED_STICKY = regexpStickyHelpers.MISSED_STICKY;
|
1185
1597
|
var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
|
1186
1598
|
|
1187
|
-
var
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1599
|
+
var BASE_FORCED = descriptors &&
|
1600
|
+
(!CORRECT_NEW || MISSED_STICKY || regexpUnsupportedDotAll || regexpUnsupportedNcg || fails(function () {
|
1601
|
+
re2[MATCH] = false;
|
1602
|
+
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
1603
|
+
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
|
1604
|
+
}));
|
1605
|
+
|
1606
|
+
var handleDotAll = function (string) {
|
1607
|
+
var length = string.length;
|
1608
|
+
var index = 0;
|
1609
|
+
var result = '';
|
1610
|
+
var brackets = false;
|
1611
|
+
var chr;
|
1612
|
+
for (; index <= length; index++) {
|
1613
|
+
chr = charAt$3(string, index);
|
1614
|
+
if (chr === '\\') {
|
1615
|
+
result += chr + charAt$3(string, ++index);
|
1616
|
+
continue;
|
1617
|
+
}
|
1618
|
+
if (!brackets && chr === '.') {
|
1619
|
+
result += '[\\s\\S]';
|
1620
|
+
} else {
|
1621
|
+
if (chr === '[') {
|
1622
|
+
brackets = true;
|
1623
|
+
} else if (chr === ']') {
|
1624
|
+
brackets = false;
|
1625
|
+
} result += chr;
|
1626
|
+
}
|
1627
|
+
} return result;
|
1628
|
+
};
|
1629
|
+
|
1630
|
+
var handleNCG = function (string) {
|
1631
|
+
var length = string.length;
|
1632
|
+
var index = 0;
|
1633
|
+
var result = '';
|
1634
|
+
var named = [];
|
1635
|
+
var names = {};
|
1636
|
+
var brackets = false;
|
1637
|
+
var ncg = false;
|
1638
|
+
var groupid = 0;
|
1639
|
+
var groupname = '';
|
1640
|
+
var chr;
|
1641
|
+
for (; index <= length; index++) {
|
1642
|
+
chr = charAt$3(string, index);
|
1643
|
+
if (chr === '\\') {
|
1644
|
+
chr = chr + charAt$3(string, ++index);
|
1645
|
+
} else if (chr === ']') {
|
1646
|
+
brackets = false;
|
1647
|
+
} else if (!brackets) switch (true) {
|
1648
|
+
case chr === '[':
|
1649
|
+
brackets = true;
|
1650
|
+
break;
|
1651
|
+
case chr === '(':
|
1652
|
+
if (exec$1(IS_NCG, stringSlice$3(string, index + 1))) {
|
1653
|
+
index += 2;
|
1654
|
+
ncg = true;
|
1655
|
+
}
|
1656
|
+
result += chr;
|
1657
|
+
groupid++;
|
1658
|
+
continue;
|
1659
|
+
case chr === '>' && ncg:
|
1660
|
+
if (groupname === '' || hasOwnProperty_1(names, groupname)) {
|
1661
|
+
throw new SyntaxError('Invalid capture group name');
|
1662
|
+
}
|
1663
|
+
names[groupname] = true;
|
1664
|
+
named[named.length] = [groupname, groupid];
|
1665
|
+
ncg = false;
|
1666
|
+
groupname = '';
|
1667
|
+
continue;
|
1668
|
+
}
|
1669
|
+
if (ncg) groupname += chr;
|
1670
|
+
else result += chr;
|
1671
|
+
} return [result, named];
|
1672
|
+
};
|
1192
1673
|
|
1193
1674
|
// `RegExp` constructor
|
1194
1675
|
// https://tc39.es/ecma262/#sec-regexp-constructor
|
1195
|
-
if (
|
1676
|
+
if (isForced_1('RegExp', BASE_FORCED)) {
|
1196
1677
|
var RegExpWrapper = function RegExp(pattern, flags) {
|
1197
|
-
var thisIsRegExp = this
|
1678
|
+
var thisIsRegExp = objectIsPrototypeOf(RegExpPrototype$1, this);
|
1198
1679
|
var patternIsRegExp = isRegexp(pattern);
|
1199
1680
|
var flagsAreUndefined = flags === undefined;
|
1200
|
-
var
|
1681
|
+
var groups = [];
|
1682
|
+
var rawPattern = pattern;
|
1683
|
+
var rawFlags, dotAll, sticky, handled, result, state;
|
1201
1684
|
|
1202
|
-
if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper
|
1685
|
+
if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
|
1203
1686
|
return pattern;
|
1204
1687
|
}
|
1205
1688
|
|
1206
|
-
if (
|
1207
|
-
if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;
|
1208
|
-
} else if (pattern instanceof RegExpWrapper) {
|
1209
|
-
if (flagsAreUndefined) flags = regexpFlags.call(pattern);
|
1689
|
+
if (patternIsRegExp || objectIsPrototypeOf(RegExpPrototype$1, pattern)) {
|
1210
1690
|
pattern = pattern.source;
|
1691
|
+
if (flagsAreUndefined) flags = regexpGetFlags(rawPattern);
|
1211
1692
|
}
|
1212
1693
|
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1694
|
+
pattern = pattern === undefined ? '' : toString_1(pattern);
|
1695
|
+
flags = flags === undefined ? '' : toString_1(flags);
|
1696
|
+
rawPattern = pattern;
|
1697
|
+
|
1698
|
+
if (regexpUnsupportedDotAll && 'dotAll' in re1) {
|
1699
|
+
dotAll = !!flags && stringIndexOf$1(flags, 's') > -1;
|
1700
|
+
if (dotAll) flags = replace$1(flags, /s/g, '');
|
1701
|
+
}
|
1702
|
+
|
1703
|
+
rawFlags = flags;
|
1704
|
+
|
1705
|
+
if (MISSED_STICKY && 'sticky' in re1) {
|
1706
|
+
sticky = !!flags && stringIndexOf$1(flags, 'y') > -1;
|
1707
|
+
if (sticky && UNSUPPORTED_Y) flags = replace$1(flags, /y/g, '');
|
1216
1708
|
}
|
1217
1709
|
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1710
|
+
if (regexpUnsupportedNcg) {
|
1711
|
+
handled = handleNCG(pattern);
|
1712
|
+
pattern = handled[0];
|
1713
|
+
groups = handled[1];
|
1714
|
+
}
|
1715
|
+
|
1716
|
+
result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$1, RegExpWrapper);
|
1223
1717
|
|
1224
|
-
if (
|
1718
|
+
if (dotAll || sticky || groups.length) {
|
1719
|
+
state = enforceInternalState(result);
|
1720
|
+
if (dotAll) {
|
1721
|
+
state.dotAll = true;
|
1722
|
+
state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
|
1723
|
+
}
|
1724
|
+
if (sticky) state.sticky = true;
|
1725
|
+
if (groups.length) state.groups = groups;
|
1726
|
+
}
|
1727
|
+
|
1728
|
+
if (pattern !== rawPattern) try {
|
1729
|
+
// fails in old engines, but we have no alternatives for unsupported regex syntax
|
1730
|
+
createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
|
1731
|
+
} catch (error) { /* empty */ }
|
1225
1732
|
|
1226
1733
|
return result;
|
1227
1734
|
};
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
});
|
1234
|
-
};
|
1235
|
-
var keys = getOwnPropertyNames(NativeRegExp);
|
1236
|
-
var index = 0;
|
1237
|
-
while (keys.length > index) proxy(keys[index++]);
|
1735
|
+
|
1736
|
+
for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {
|
1737
|
+
proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]);
|
1738
|
+
}
|
1739
|
+
|
1238
1740
|
RegExpPrototype$1.constructor = RegExpWrapper;
|
1239
1741
|
RegExpWrapper.prototype = RegExpPrototype$1;
|
1240
|
-
|
1742
|
+
defineBuiltIn(global_1, 'RegExp', RegExpWrapper);
|
1241
1743
|
}
|
1242
1744
|
|
1243
1745
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
1244
1746
|
setSpecies('RegExp');
|
1245
1747
|
|
1748
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
1749
|
+
|
1750
|
+
|
1751
|
+
|
1752
|
+
|
1753
|
+
|
1754
|
+
|
1246
1755
|
var TO_STRING = 'toString';
|
1247
1756
|
var RegExpPrototype = RegExp.prototype;
|
1248
|
-
var
|
1757
|
+
var n$ToString = RegExpPrototype[TO_STRING];
|
1249
1758
|
|
1250
|
-
var NOT_GENERIC = fails(function () { return
|
1759
|
+
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
1251
1760
|
// FF44- RegExp#toString has a wrong name
|
1252
|
-
var INCORRECT_NAME =
|
1761
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
|
1253
1762
|
|
1254
1763
|
// `RegExp.prototype.toString` method
|
1255
1764
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
1256
1765
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
1257
|
-
|
1766
|
+
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
1258
1767
|
var R = anObject(this);
|
1259
|
-
var
|
1260
|
-
var
|
1261
|
-
|
1262
|
-
return '/' + p + '/' + f;
|
1768
|
+
var pattern = toString_1(R.source);
|
1769
|
+
var flags = toString_1(regexpGetFlags(R));
|
1770
|
+
return '/' + pattern + '/' + flags;
|
1263
1771
|
}, { unsafe: true });
|
1264
1772
|
}
|
1265
1773
|
|
1266
|
-
|
1774
|
+
var charAt$2 = functionUncurryThis(''.charAt);
|
1775
|
+
var charCodeAt = functionUncurryThis(''.charCodeAt);
|
1776
|
+
var stringSlice$2 = functionUncurryThis(''.slice);
|
1777
|
+
|
1267
1778
|
var createMethod$1 = function (CONVERT_TO_STRING) {
|
1268
1779
|
return function ($this, pos) {
|
1269
|
-
var S =
|
1270
|
-
var position =
|
1780
|
+
var S = toString_1(requireObjectCoercible($this));
|
1781
|
+
var position = toIntegerOrInfinity(pos);
|
1271
1782
|
var size = S.length;
|
1272
1783
|
var first, second;
|
1273
1784
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
1274
|
-
first =
|
1785
|
+
first = charCodeAt(S, position);
|
1275
1786
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
1276
|
-
|| (second =
|
1277
|
-
? CONVERT_TO_STRING
|
1278
|
-
|
1787
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
1788
|
+
? CONVERT_TO_STRING
|
1789
|
+
? charAt$2(S, position)
|
1790
|
+
: first
|
1791
|
+
: CONVERT_TO_STRING
|
1792
|
+
? stringSlice$2(S, position, position + 2)
|
1793
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
1279
1794
|
};
|
1280
1795
|
};
|
1281
1796
|
|
@@ -1288,32 +1803,32 @@
|
|
1288
1803
|
charAt: createMethod$1(true)
|
1289
1804
|
};
|
1290
1805
|
|
1291
|
-
var charAt = stringMultibyte.charAt;
|
1806
|
+
var charAt$1 = stringMultibyte.charAt;
|
1292
1807
|
|
1293
1808
|
// `AdvanceStringIndex` abstract operation
|
1294
1809
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
1295
1810
|
var advanceStringIndex = function (S, index, unicode) {
|
1296
|
-
return index + (unicode ? charAt(S, index).length : 1);
|
1811
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
1297
1812
|
};
|
1298
1813
|
|
1299
1814
|
// @@match logic
|
1300
|
-
fixRegexpWellKnownSymbolLogic('match',
|
1815
|
+
fixRegexpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {
|
1301
1816
|
return [
|
1302
1817
|
// `String.prototype.match` method
|
1303
1818
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
1304
1819
|
function match(regexp) {
|
1305
1820
|
var O = requireObjectCoercible(this);
|
1306
|
-
var matcher = regexp == undefined ? undefined : regexp
|
1307
|
-
return matcher
|
1821
|
+
var matcher = regexp == undefined ? undefined : getMethod(regexp, MATCH);
|
1822
|
+
return matcher ? functionCall(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString_1(O));
|
1308
1823
|
},
|
1309
1824
|
// `RegExp.prototype[@@match]` method
|
1310
1825
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
1311
|
-
function (
|
1312
|
-
var
|
1313
|
-
|
1826
|
+
function (string) {
|
1827
|
+
var rx = anObject(this);
|
1828
|
+
var S = toString_1(string);
|
1829
|
+
var res = maybeCallNative(nativeMatch, rx, S);
|
1314
1830
|
|
1315
|
-
|
1316
|
-
var S = String(this);
|
1831
|
+
if (res.done) return res.value;
|
1317
1832
|
|
1318
1833
|
if (!rx.global) return regexpExecAbstract(rx, S);
|
1319
1834
|
|
@@ -1323,7 +1838,7 @@
|
|
1323
1838
|
var n = 0;
|
1324
1839
|
var result;
|
1325
1840
|
while ((result = regexpExecAbstract(rx, S)) !== null) {
|
1326
|
-
var matchStr =
|
1841
|
+
var matchStr = toString_1(result[0]);
|
1327
1842
|
A[n] = matchStr;
|
1328
1843
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1329
1844
|
n++;
|
@@ -1333,14 +1848,10 @@
|
|
1333
1848
|
];
|
1334
1849
|
});
|
1335
1850
|
|
1336
|
-
|
1337
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
1338
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
1339
|
-
var objectKeys = Object.keys || function keys(O) {
|
1340
|
-
return objectKeysInternal(O, enumBugKeys);
|
1341
|
-
};
|
1851
|
+
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1342
1852
|
|
1343
|
-
var propertyIsEnumerable =
|
1853
|
+
var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable);
|
1854
|
+
var push$1 = functionUncurryThis([].push);
|
1344
1855
|
|
1345
1856
|
// `Object.{ entries, values }` methods implementation
|
1346
1857
|
var createMethod = function (TO_ENTRIES) {
|
@@ -1353,8 +1864,8 @@
|
|
1353
1864
|
var key;
|
1354
1865
|
while (length > i) {
|
1355
1866
|
key = keys[i++];
|
1356
|
-
if (!descriptors || propertyIsEnumerable
|
1357
|
-
|
1867
|
+
if (!descriptors || propertyIsEnumerable(O, key)) {
|
1868
|
+
push$1(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
1358
1869
|
}
|
1359
1870
|
}
|
1360
1871
|
return result;
|
@@ -1382,38 +1893,85 @@
|
|
1382
1893
|
|
1383
1894
|
// `IsArray` abstract operation
|
1384
1895
|
// https://tc39.es/ecma262/#sec-isarray
|
1385
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
1386
|
-
var isArray = Array.isArray || function isArray(
|
1387
|
-
return classofRaw(
|
1388
|
-
};
|
1389
|
-
|
1390
|
-
// `ToObject` abstract operation
|
1391
|
-
// https://tc39.es/ecma262/#sec-toobject
|
1392
|
-
var toObject = function (argument) {
|
1393
|
-
return Object(requireObjectCoercible(argument));
|
1896
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
1897
|
+
var isArray = Array.isArray || function isArray(argument) {
|
1898
|
+
return classofRaw(argument) == 'Array';
|
1394
1899
|
};
|
1395
1900
|
|
1396
1901
|
var createProperty = function (object, key, value) {
|
1397
|
-
var propertyKey =
|
1902
|
+
var propertyKey = toPropertyKey(key);
|
1398
1903
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1399
1904
|
else object[propertyKey] = value;
|
1400
1905
|
};
|
1401
1906
|
|
1907
|
+
var noop = function () { /* empty */ };
|
1908
|
+
var empty = [];
|
1909
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1910
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1911
|
+
var exec = functionUncurryThis(constructorRegExp.exec);
|
1912
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
1913
|
+
|
1914
|
+
var isConstructorModern = function isConstructor(argument) {
|
1915
|
+
if (!isCallable(argument)) return false;
|
1916
|
+
try {
|
1917
|
+
construct(noop, empty, argument);
|
1918
|
+
return true;
|
1919
|
+
} catch (error) {
|
1920
|
+
return false;
|
1921
|
+
}
|
1922
|
+
};
|
1923
|
+
|
1924
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1925
|
+
if (!isCallable(argument)) return false;
|
1926
|
+
switch (classof(argument)) {
|
1927
|
+
case 'AsyncFunction':
|
1928
|
+
case 'GeneratorFunction':
|
1929
|
+
case 'AsyncGeneratorFunction': return false;
|
1930
|
+
}
|
1931
|
+
try {
|
1932
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1933
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1934
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1935
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
1936
|
+
} catch (error) {
|
1937
|
+
return true;
|
1938
|
+
}
|
1939
|
+
};
|
1940
|
+
|
1941
|
+
isConstructorLegacy.sham = true;
|
1942
|
+
|
1943
|
+
// `IsConstructor` abstract operation
|
1944
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1945
|
+
var isConstructor = !construct || fails(function () {
|
1946
|
+
var called;
|
1947
|
+
return isConstructorModern(isConstructorModern.call)
|
1948
|
+
|| !isConstructorModern(Object)
|
1949
|
+
|| !isConstructorModern(function () { called = true; })
|
1950
|
+
|| called;
|
1951
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1952
|
+
|
1402
1953
|
var SPECIES$1 = wellKnownSymbol('species');
|
1954
|
+
var Array$1 = global_1.Array;
|
1403
1955
|
|
1404
|
-
// `ArraySpeciesCreate` abstract operation
|
1956
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
1405
1957
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1406
|
-
var
|
1958
|
+
var arraySpeciesConstructor = function (originalArray) {
|
1407
1959
|
var C;
|
1408
1960
|
if (isArray(originalArray)) {
|
1409
1961
|
C = originalArray.constructor;
|
1410
1962
|
// cross-realm fallback
|
1411
|
-
if (
|
1963
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
1412
1964
|
else if (isObject(C)) {
|
1413
1965
|
C = C[SPECIES$1];
|
1414
1966
|
if (C === null) C = undefined;
|
1415
1967
|
}
|
1416
|
-
} return
|
1968
|
+
} return C === undefined ? Array$1 : C;
|
1969
|
+
};
|
1970
|
+
|
1971
|
+
// `ArraySpeciesCreate` abstract operation
|
1972
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1973
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1974
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
1417
1975
|
};
|
1418
1976
|
|
1419
1977
|
var SPECIES = wellKnownSymbol('species');
|
@@ -1435,6 +1993,7 @@
|
|
1435
1993
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1436
1994
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1437
1995
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1996
|
+
var TypeError$1 = global_1.TypeError;
|
1438
1997
|
|
1439
1998
|
// We can't use this feature detection in V8 since it causes
|
1440
1999
|
// deoptimization and serious performance degradation
|
@@ -1458,7 +2017,7 @@
|
|
1458
2017
|
// `Array.prototype.concat` method
|
1459
2018
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1460
2019
|
// with adding support of @@isConcatSpreadable and @@species
|
1461
|
-
_export({ target: 'Array', proto: true, forced: FORCED }, {
|
2020
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
1462
2021
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1463
2022
|
concat: function concat(arg) {
|
1464
2023
|
var O = toObject(this);
|
@@ -1468,11 +2027,11 @@
|
|
1468
2027
|
for (i = -1, length = arguments.length; i < length; i++) {
|
1469
2028
|
E = i === -1 ? O : arguments[i];
|
1470
2029
|
if (isConcatSpreadable(E)) {
|
1471
|
-
len =
|
1472
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
2030
|
+
len = lengthOfArrayLike(E);
|
2031
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1473
2032
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1474
2033
|
} else {
|
1475
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
2034
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1476
2035
|
createProperty(A, n++, E);
|
1477
2036
|
}
|
1478
2037
|
}
|
@@ -1481,11 +2040,23 @@
|
|
1481
2040
|
}
|
1482
2041
|
});
|
1483
2042
|
|
2043
|
+
var FunctionPrototype = Function.prototype;
|
2044
|
+
var apply = FunctionPrototype.apply;
|
2045
|
+
var call = FunctionPrototype.call;
|
2046
|
+
|
2047
|
+
// eslint-disable-next-line es-x/no-reflect -- safe
|
2048
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
|
2049
|
+
return call.apply(apply, arguments);
|
2050
|
+
});
|
2051
|
+
|
1484
2052
|
var floor = Math.floor;
|
1485
|
-
var
|
2053
|
+
var charAt = functionUncurryThis(''.charAt);
|
2054
|
+
var replace = functionUncurryThis(''.replace);
|
2055
|
+
var stringSlice$1 = functionUncurryThis(''.slice);
|
1486
2056
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
1487
2057
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
1488
2058
|
|
2059
|
+
// `GetSubstitution` abstract operation
|
1489
2060
|
// https://tc39.es/ecma262/#sec-getsubstitution
|
1490
2061
|
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
1491
2062
|
var tailPos = position + matched.length;
|
@@ -1495,15 +2066,15 @@
|
|
1495
2066
|
namedCaptures = toObject(namedCaptures);
|
1496
2067
|
symbols = SUBSTITUTION_SYMBOLS;
|
1497
2068
|
}
|
1498
|
-
return replace
|
2069
|
+
return replace(replacement, symbols, function (match, ch) {
|
1499
2070
|
var capture;
|
1500
|
-
switch (
|
2071
|
+
switch (charAt(ch, 0)) {
|
1501
2072
|
case '$': return '$';
|
1502
2073
|
case '&': return matched;
|
1503
|
-
case '`': return str
|
1504
|
-
case "'": return str
|
2074
|
+
case '`': return stringSlice$1(str, 0, position);
|
2075
|
+
case "'": return stringSlice$1(str, tailPos);
|
1505
2076
|
case '<':
|
1506
|
-
capture = namedCaptures[ch
|
2077
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
1507
2078
|
break;
|
1508
2079
|
default: // \d\d?
|
1509
2080
|
var n = +ch;
|
@@ -1511,7 +2082,7 @@
|
|
1511
2082
|
if (n > m) {
|
1512
2083
|
var f = floor(n / 10);
|
1513
2084
|
if (f === 0) return match;
|
1514
|
-
if (f <= m) return captures[f - 1] === undefined ?
|
2085
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
1515
2086
|
return match;
|
1516
2087
|
}
|
1517
2088
|
capture = captures[n - 1];
|
@@ -1520,17 +2091,46 @@
|
|
1520
2091
|
});
|
1521
2092
|
};
|
1522
2093
|
|
2094
|
+
var REPLACE = wellKnownSymbol('replace');
|
1523
2095
|
var max = Math.max;
|
1524
2096
|
var min = Math.min;
|
2097
|
+
var concat = functionUncurryThis([].concat);
|
2098
|
+
var push = functionUncurryThis([].push);
|
2099
|
+
var stringIndexOf = functionUncurryThis(''.indexOf);
|
2100
|
+
var stringSlice = functionUncurryThis(''.slice);
|
1525
2101
|
|
1526
2102
|
var maybeToString = function (it) {
|
1527
2103
|
return it === undefined ? it : String(it);
|
1528
2104
|
};
|
1529
2105
|
|
2106
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
2107
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
2108
|
+
var REPLACE_KEEPS_$0 = (function () {
|
2109
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
2110
|
+
return 'a'.replace(/./, '$0') === '$0';
|
2111
|
+
})();
|
2112
|
+
|
2113
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
2114
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
2115
|
+
if (/./[REPLACE]) {
|
2116
|
+
return /./[REPLACE]('a', '$0') === '';
|
2117
|
+
}
|
2118
|
+
return false;
|
2119
|
+
})();
|
2120
|
+
|
2121
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
2122
|
+
var re = /./;
|
2123
|
+
re.exec = function () {
|
2124
|
+
var result = [];
|
2125
|
+
result.groups = { a: '7' };
|
2126
|
+
return result;
|
2127
|
+
};
|
2128
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
2129
|
+
return ''.replace(re, '$<a>') !== '7';
|
2130
|
+
});
|
2131
|
+
|
1530
2132
|
// @@replace logic
|
1531
|
-
fixRegexpWellKnownSymbolLogic('replace',
|
1532
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
1533
|
-
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
2133
|
+
fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
1534
2134
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
1535
2135
|
|
1536
2136
|
return [
|
@@ -1538,27 +2138,28 @@
|
|
1538
2138
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
1539
2139
|
function replace(searchValue, replaceValue) {
|
1540
2140
|
var O = requireObjectCoercible(this);
|
1541
|
-
var replacer = searchValue == undefined ? undefined : searchValue
|
1542
|
-
return replacer
|
1543
|
-
? replacer
|
1544
|
-
: nativeReplace
|
2141
|
+
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
2142
|
+
return replacer
|
2143
|
+
? functionCall(replacer, searchValue, O, replaceValue)
|
2144
|
+
: functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
|
1545
2145
|
},
|
1546
2146
|
// `RegExp.prototype[@@replace]` method
|
1547
2147
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
1548
|
-
function (
|
2148
|
+
function (string, replaceValue) {
|
2149
|
+
var rx = anObject(this);
|
2150
|
+
var S = toString_1(string);
|
2151
|
+
|
1549
2152
|
if (
|
1550
|
-
|
1551
|
-
(
|
2153
|
+
typeof replaceValue == 'string' &&
|
2154
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
2155
|
+
stringIndexOf(replaceValue, '$<') === -1
|
1552
2156
|
) {
|
1553
|
-
var res = maybeCallNative(nativeReplace,
|
2157
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
1554
2158
|
if (res.done) return res.value;
|
1555
2159
|
}
|
1556
2160
|
|
1557
|
-
var
|
1558
|
-
|
1559
|
-
|
1560
|
-
var functionalReplace = typeof replaceValue === 'function';
|
1561
|
-
if (!functionalReplace) replaceValue = String(replaceValue);
|
2161
|
+
var functionalReplace = isCallable(replaceValue);
|
2162
|
+
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
1562
2163
|
|
1563
2164
|
var global = rx.global;
|
1564
2165
|
if (global) {
|
@@ -1570,10 +2171,10 @@
|
|
1570
2171
|
var result = regexpExecAbstract(rx, S);
|
1571
2172
|
if (result === null) break;
|
1572
2173
|
|
1573
|
-
|
2174
|
+
push(results, result);
|
1574
2175
|
if (!global) break;
|
1575
2176
|
|
1576
|
-
var matchStr =
|
2177
|
+
var matchStr = toString_1(result[0]);
|
1577
2178
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1578
2179
|
}
|
1579
2180
|
|
@@ -1582,32 +2183,32 @@
|
|
1582
2183
|
for (var i = 0; i < results.length; i++) {
|
1583
2184
|
result = results[i];
|
1584
2185
|
|
1585
|
-
var matched =
|
1586
|
-
var position = max(min(
|
2186
|
+
var matched = toString_1(result[0]);
|
2187
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
1587
2188
|
var captures = [];
|
1588
2189
|
// NOTE: This is equivalent to
|
1589
2190
|
// captures = result.slice(1).map(maybeToString)
|
1590
2191
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
1591
2192
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
1592
2193
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
1593
|
-
for (var j = 1; j < result.length; j++)
|
2194
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
1594
2195
|
var namedCaptures = result.groups;
|
1595
2196
|
if (functionalReplace) {
|
1596
|
-
var replacerArgs = [matched]
|
1597
|
-
if (namedCaptures !== undefined)
|
1598
|
-
var replacement =
|
2197
|
+
var replacerArgs = concat([matched], captures, position, S);
|
2198
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
2199
|
+
var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
|
1599
2200
|
} else {
|
1600
2201
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
1601
2202
|
}
|
1602
2203
|
if (position >= nextSourcePosition) {
|
1603
|
-
accumulatedResult += S
|
2204
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
1604
2205
|
nextSourcePosition = position + matched.length;
|
1605
2206
|
}
|
1606
2207
|
}
|
1607
|
-
return accumulatedResult + S
|
2208
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
1608
2209
|
}
|
1609
2210
|
];
|
1610
|
-
});
|
2211
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
1611
2212
|
|
1612
2213
|
/**
|
1613
2214
|
* @author: general
|
@@ -1705,12 +2306,12 @@
|
|
1705
2306
|
window.history.pushState({}, '', _buildUrl(params));
|
1706
2307
|
}
|
1707
2308
|
|
1708
|
-
$__default[
|
2309
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1709
2310
|
addrbar: false,
|
1710
2311
|
addrPrefix: ''
|
1711
2312
|
});
|
1712
2313
|
|
1713
|
-
$__default[
|
2314
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1714
2315
|
_inherits(_class, _$$BootstrapTable);
|
1715
2316
|
|
1716
2317
|
var _super = _createSuper(_class);
|
@@ -1778,15 +2379,15 @@
|
|
1778
2379
|
}, {
|
1779
2380
|
key: "getDefaultOptionValue",
|
1780
2381
|
value: function getDefaultOptionValue(optionName, prefixName) {
|
1781
|
-
if (this.options[optionName] !== $__default[
|
2382
|
+
if (this.options[optionName] !== $__default["default"].BootstrapTable.DEFAULTS[optionName]) {
|
1782
2383
|
return this.options[optionName];
|
1783
2384
|
}
|
1784
2385
|
|
1785
|
-
return _GET("".concat(this.options.addrPrefix || '').concat(prefixName)) || $__default[
|
2386
|
+
return _GET("".concat(this.options.addrPrefix || '').concat(prefixName)) || $__default["default"].BootstrapTable.DEFAULTS[optionName];
|
1786
2387
|
}
|
1787
2388
|
}]);
|
1788
2389
|
|
1789
2390
|
return _class;
|
1790
|
-
}($__default[
|
2391
|
+
}($__default["default"].BootstrapTable);
|
1791
2392
|
|
1792
|
-
}))
|
2393
|
+
}));
|