bootstrap-table-rails 1.20.1 → 1.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -1
- 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 +1117 -898
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +31 -1773
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +31 -1773
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +1 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +1337 -773
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +795 -462
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +570 -304
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +861 -479
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +584 -310
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +599 -318
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +720 -403
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +1107 -736
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +1322 -754
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +918 -515
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +592 -318
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +700 -373
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +642 -356
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +600 -320
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +739 -395
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +543 -290
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +548 -291
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +719 -385
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +592 -318
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +492 -261
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +543 -290
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +754 -418
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +551 -290
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +543 -291
- metadata +1 -1
|
@@ -2,11 +2,11 @@
|
|
|
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 (
|
|
5
|
+
})(this, (function ($$7) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
var $__default = /*#__PURE__*/_interopDefaultLegacy(
|
|
9
|
+
var $__default = /*#__PURE__*/_interopDefaultLegacy($$7);
|
|
10
10
|
|
|
11
11
|
function _classCallCheck(instance, Constructor) {
|
|
12
12
|
if (!(instance instanceof Constructor)) {
|
|
@@ -238,16 +238,12 @@
|
|
|
238
238
|
|
|
239
239
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
240
240
|
|
|
241
|
-
function createCommonjsModule(fn, module) {
|
|
242
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
241
|
var check = function (it) {
|
|
246
242
|
return it && it.Math == Math && it;
|
|
247
243
|
};
|
|
248
244
|
|
|
249
245
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
250
|
-
var
|
|
246
|
+
var global$x =
|
|
251
247
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
252
248
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
253
249
|
check(typeof window == 'object' && window) ||
|
|
@@ -257,7 +253,9 @@
|
|
|
257
253
|
// eslint-disable-next-line no-new-func -- fallback
|
|
258
254
|
(function () { return this; })() || Function('return this')();
|
|
259
255
|
|
|
260
|
-
var
|
|
256
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
257
|
+
|
|
258
|
+
var fails$j = function (exec) {
|
|
261
259
|
try {
|
|
262
260
|
return !!exec();
|
|
263
261
|
} catch (error) {
|
|
@@ -265,25 +263,33 @@
|
|
|
265
263
|
}
|
|
266
264
|
};
|
|
267
265
|
|
|
266
|
+
var fails$i = fails$j;
|
|
267
|
+
|
|
268
268
|
// Detect IE8's incomplete defineProperty implementation
|
|
269
|
-
var descriptors = !fails(function () {
|
|
269
|
+
var descriptors = !fails$i(function () {
|
|
270
270
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
271
271
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
272
272
|
});
|
|
273
273
|
|
|
274
|
-
var
|
|
274
|
+
var fails$h = fails$j;
|
|
275
|
+
|
|
276
|
+
var functionBindNative = !fails$h(function () {
|
|
275
277
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
276
278
|
var test = (function () { /* empty */ }).bind();
|
|
277
279
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
278
280
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
279
281
|
});
|
|
280
282
|
|
|
281
|
-
var
|
|
283
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
284
|
+
|
|
285
|
+
var call$a = Function.prototype.call;
|
|
282
286
|
|
|
283
|
-
var functionCall =
|
|
284
|
-
return call$
|
|
287
|
+
var functionCall = NATIVE_BIND$3 ? call$a.bind(call$a) : function () {
|
|
288
|
+
return call$a.apply(call$a, arguments);
|
|
285
289
|
};
|
|
286
290
|
|
|
291
|
+
var objectPropertyIsEnumerable = {};
|
|
292
|
+
|
|
287
293
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
288
294
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
289
295
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
@@ -293,16 +299,12 @@
|
|
|
293
299
|
|
|
294
300
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
295
301
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
296
|
-
|
|
302
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
297
303
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
298
304
|
return !!descriptor && descriptor.enumerable;
|
|
299
305
|
} : $propertyIsEnumerable;
|
|
300
306
|
|
|
301
|
-
var
|
|
302
|
-
f: f$5
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
var createPropertyDescriptor = function (bitmap, value) {
|
|
307
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
306
308
|
return {
|
|
307
309
|
enumerable: !(bitmap & 1),
|
|
308
310
|
configurable: !(bitmap & 2),
|
|
@@ -311,79 +313,102 @@
|
|
|
311
313
|
};
|
|
312
314
|
};
|
|
313
315
|
|
|
316
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
317
|
+
|
|
314
318
|
var FunctionPrototype$2 = Function.prototype;
|
|
315
|
-
var bind$
|
|
316
|
-
var call$
|
|
317
|
-
var uncurryThis =
|
|
319
|
+
var bind$2 = FunctionPrototype$2.bind;
|
|
320
|
+
var call$9 = FunctionPrototype$2.call;
|
|
321
|
+
var uncurryThis$l = NATIVE_BIND$2 && bind$2.bind(call$9, call$9);
|
|
318
322
|
|
|
319
|
-
var functionUncurryThis =
|
|
320
|
-
return fn && uncurryThis(fn);
|
|
323
|
+
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
|
324
|
+
return fn && uncurryThis$l(fn);
|
|
321
325
|
} : function (fn) {
|
|
322
326
|
return fn && function () {
|
|
323
|
-
return call$
|
|
327
|
+
return call$9.apply(fn, arguments);
|
|
324
328
|
};
|
|
325
329
|
};
|
|
326
330
|
|
|
327
|
-
var
|
|
328
|
-
|
|
331
|
+
var uncurryThis$k = functionUncurryThis;
|
|
332
|
+
|
|
333
|
+
var toString$7 = uncurryThis$k({}.toString);
|
|
334
|
+
var stringSlice$5 = uncurryThis$k(''.slice);
|
|
329
335
|
|
|
330
|
-
var classofRaw = function (it) {
|
|
331
|
-
return stringSlice$5(toString$
|
|
336
|
+
var classofRaw$1 = function (it) {
|
|
337
|
+
return stringSlice$5(toString$7(it), 8, -1);
|
|
332
338
|
};
|
|
333
339
|
|
|
334
|
-
var
|
|
335
|
-
var
|
|
340
|
+
var global$w = global$x;
|
|
341
|
+
var uncurryThis$j = functionUncurryThis;
|
|
342
|
+
var fails$g = fails$j;
|
|
343
|
+
var classof$7 = classofRaw$1;
|
|
344
|
+
|
|
345
|
+
var Object$4 = global$w.Object;
|
|
346
|
+
var split = uncurryThis$j(''.split);
|
|
336
347
|
|
|
337
348
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
338
|
-
var indexedObject = fails(function () {
|
|
349
|
+
var indexedObject = fails$g(function () {
|
|
339
350
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
340
351
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
341
352
|
return !Object$4('z').propertyIsEnumerable(0);
|
|
342
353
|
}) ? function (it) {
|
|
343
|
-
return
|
|
354
|
+
return classof$7(it) == 'String' ? split(it, '') : Object$4(it);
|
|
344
355
|
} : Object$4;
|
|
345
356
|
|
|
346
|
-
var
|
|
357
|
+
var global$v = global$x;
|
|
358
|
+
|
|
359
|
+
var TypeError$a = global$v.TypeError;
|
|
347
360
|
|
|
348
361
|
// `RequireObjectCoercible` abstract operation
|
|
349
362
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
350
|
-
var requireObjectCoercible = function (it) {
|
|
363
|
+
var requireObjectCoercible$5 = function (it) {
|
|
351
364
|
if (it == undefined) throw TypeError$a("Can't call method on " + it);
|
|
352
365
|
return it;
|
|
353
366
|
};
|
|
354
367
|
|
|
355
368
|
// toObject with fallback for non-array-like ES3 strings
|
|
369
|
+
var IndexedObject$3 = indexedObject;
|
|
370
|
+
var requireObjectCoercible$4 = requireObjectCoercible$5;
|
|
356
371
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
var toIndexedObject = function (it) {
|
|
360
|
-
return indexedObject(requireObjectCoercible(it));
|
|
372
|
+
var toIndexedObject$6 = function (it) {
|
|
373
|
+
return IndexedObject$3(requireObjectCoercible$4(it));
|
|
361
374
|
};
|
|
362
375
|
|
|
363
376
|
// `IsCallable` abstract operation
|
|
364
377
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
365
|
-
var isCallable = function (argument) {
|
|
378
|
+
var isCallable$e = function (argument) {
|
|
366
379
|
return typeof argument == 'function';
|
|
367
380
|
};
|
|
368
381
|
|
|
369
|
-
var
|
|
370
|
-
|
|
382
|
+
var isCallable$d = isCallable$e;
|
|
383
|
+
|
|
384
|
+
var isObject$9 = function (it) {
|
|
385
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
371
386
|
};
|
|
372
387
|
|
|
388
|
+
var global$u = global$x;
|
|
389
|
+
var isCallable$c = isCallable$e;
|
|
390
|
+
|
|
373
391
|
var aFunction = function (argument) {
|
|
374
|
-
return isCallable(argument) ? argument : undefined;
|
|
392
|
+
return isCallable$c(argument) ? argument : undefined;
|
|
375
393
|
};
|
|
376
394
|
|
|
377
|
-
var getBuiltIn = function (namespace, method) {
|
|
378
|
-
return arguments.length < 2 ? aFunction(
|
|
395
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
396
|
+
return arguments.length < 2 ? aFunction(global$u[namespace]) : global$u[namespace] && global$u[namespace][method];
|
|
379
397
|
};
|
|
380
398
|
|
|
381
|
-
var
|
|
399
|
+
var uncurryThis$i = functionUncurryThis;
|
|
400
|
+
|
|
401
|
+
var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
|
|
402
|
+
|
|
403
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
382
404
|
|
|
383
|
-
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
405
|
+
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
|
|
384
406
|
|
|
385
|
-
var
|
|
386
|
-
var
|
|
407
|
+
var global$t = global$x;
|
|
408
|
+
var userAgent = engineUserAgent;
|
|
409
|
+
|
|
410
|
+
var process = global$t.process;
|
|
411
|
+
var Deno = global$t.Deno;
|
|
387
412
|
var versions = process && process.versions || Deno && Deno.version;
|
|
388
413
|
var v8 = versions && versions.v8;
|
|
389
414
|
var match, version;
|
|
@@ -397,10 +422,10 @@
|
|
|
397
422
|
|
|
398
423
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
399
424
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
400
|
-
if (!version &&
|
|
401
|
-
match =
|
|
425
|
+
if (!version && userAgent) {
|
|
426
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
402
427
|
if (!match || match[1] >= 74) {
|
|
403
|
-
match =
|
|
428
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
404
429
|
if (match) version = +match[1];
|
|
405
430
|
}
|
|
406
431
|
}
|
|
@@ -409,37 +434,47 @@
|
|
|
409
434
|
|
|
410
435
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
411
436
|
|
|
412
|
-
|
|
437
|
+
var V8_VERSION$2 = engineV8Version;
|
|
438
|
+
var fails$f = fails$j;
|
|
413
439
|
|
|
414
440
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
415
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
441
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$f(function () {
|
|
416
442
|
var symbol = Symbol();
|
|
417
443
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
418
444
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
419
445
|
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
420
446
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
421
|
-
!Symbol.sham &&
|
|
447
|
+
!Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
|
422
448
|
});
|
|
423
449
|
|
|
424
450
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
425
451
|
|
|
452
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
426
453
|
|
|
427
|
-
var useSymbolAsUid =
|
|
454
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
428
455
|
&& !Symbol.sham
|
|
429
456
|
&& typeof Symbol.iterator == 'symbol';
|
|
430
457
|
|
|
431
|
-
var
|
|
458
|
+
var global$s = global$x;
|
|
459
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
460
|
+
var isCallable$b = isCallable$e;
|
|
461
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
462
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
432
463
|
|
|
433
|
-
var
|
|
464
|
+
var Object$3 = global$s.Object;
|
|
465
|
+
|
|
466
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
434
467
|
return typeof it == 'symbol';
|
|
435
468
|
} : function (it) {
|
|
436
|
-
var $Symbol = getBuiltIn('Symbol');
|
|
437
|
-
return isCallable($Symbol) &&
|
|
469
|
+
var $Symbol = getBuiltIn$3('Symbol');
|
|
470
|
+
return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
|
|
438
471
|
};
|
|
439
472
|
|
|
440
|
-
var
|
|
473
|
+
var global$r = global$x;
|
|
474
|
+
|
|
475
|
+
var String$3 = global$r.String;
|
|
441
476
|
|
|
442
|
-
var tryToString = function (argument) {
|
|
477
|
+
var tryToString$2 = function (argument) {
|
|
443
478
|
try {
|
|
444
479
|
return String$3(argument);
|
|
445
480
|
} catch (error) {
|
|
@@ -447,97 +482,130 @@
|
|
|
447
482
|
}
|
|
448
483
|
};
|
|
449
484
|
|
|
450
|
-
var
|
|
485
|
+
var global$q = global$x;
|
|
486
|
+
var isCallable$a = isCallable$e;
|
|
487
|
+
var tryToString$1 = tryToString$2;
|
|
488
|
+
|
|
489
|
+
var TypeError$9 = global$q.TypeError;
|
|
451
490
|
|
|
452
491
|
// `Assert: IsCallable(argument) is true`
|
|
453
|
-
var aCallable = function (argument) {
|
|
454
|
-
if (isCallable(argument)) return argument;
|
|
455
|
-
throw TypeError$9(tryToString(argument) + ' is not a function');
|
|
492
|
+
var aCallable$2 = function (argument) {
|
|
493
|
+
if (isCallable$a(argument)) return argument;
|
|
494
|
+
throw TypeError$9(tryToString$1(argument) + ' is not a function');
|
|
456
495
|
};
|
|
457
496
|
|
|
497
|
+
var aCallable$1 = aCallable$2;
|
|
498
|
+
|
|
458
499
|
// `GetMethod` abstract operation
|
|
459
500
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
460
|
-
var getMethod = function (V, P) {
|
|
501
|
+
var getMethod$3 = function (V, P) {
|
|
461
502
|
var func = V[P];
|
|
462
|
-
return func == null ? undefined : aCallable(func);
|
|
503
|
+
return func == null ? undefined : aCallable$1(func);
|
|
463
504
|
};
|
|
464
505
|
|
|
465
|
-
var
|
|
506
|
+
var global$p = global$x;
|
|
507
|
+
var call$8 = functionCall;
|
|
508
|
+
var isCallable$9 = isCallable$e;
|
|
509
|
+
var isObject$8 = isObject$9;
|
|
510
|
+
|
|
511
|
+
var TypeError$8 = global$p.TypeError;
|
|
466
512
|
|
|
467
513
|
// `OrdinaryToPrimitive` abstract operation
|
|
468
514
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
469
|
-
var ordinaryToPrimitive = function (input, pref) {
|
|
515
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
470
516
|
var fn, val;
|
|
471
|
-
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val =
|
|
472
|
-
if (isCallable(fn = input.valueOf) && !isObject(val =
|
|
473
|
-
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val =
|
|
517
|
+
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$8(fn, input))) return val;
|
|
518
|
+
if (isCallable$9(fn = input.valueOf) && !isObject$8(val = call$8(fn, input))) return val;
|
|
519
|
+
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$8(fn, input))) return val;
|
|
474
520
|
throw TypeError$8("Can't convert object to primitive value");
|
|
475
521
|
};
|
|
476
522
|
|
|
523
|
+
var shared$4 = {exports: {}};
|
|
524
|
+
|
|
525
|
+
var global$o = global$x;
|
|
526
|
+
|
|
477
527
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
478
|
-
var defineProperty$
|
|
528
|
+
var defineProperty$2 = Object.defineProperty;
|
|
479
529
|
|
|
480
|
-
var setGlobal = function (key, value) {
|
|
530
|
+
var setGlobal$3 = function (key, value) {
|
|
481
531
|
try {
|
|
482
|
-
defineProperty$
|
|
532
|
+
defineProperty$2(global$o, key, { value: value, configurable: true, writable: true });
|
|
483
533
|
} catch (error) {
|
|
484
|
-
|
|
534
|
+
global$o[key] = value;
|
|
485
535
|
} return value;
|
|
486
536
|
};
|
|
487
537
|
|
|
538
|
+
var global$n = global$x;
|
|
539
|
+
var setGlobal$2 = setGlobal$3;
|
|
540
|
+
|
|
488
541
|
var SHARED = '__core-js_shared__';
|
|
489
|
-
var store$
|
|
542
|
+
var store$3 = global$n[SHARED] || setGlobal$2(SHARED, {});
|
|
543
|
+
|
|
544
|
+
var sharedStore = store$3;
|
|
490
545
|
|
|
491
|
-
var
|
|
546
|
+
var store$2 = sharedStore;
|
|
492
547
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
548
|
+
(shared$4.exports = function (key, value) {
|
|
549
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
496
550
|
})('versions', []).push({
|
|
497
|
-
version: '3.22.
|
|
551
|
+
version: '3.22.5',
|
|
498
552
|
mode: 'global',
|
|
499
553
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
500
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.
|
|
554
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
|
|
501
555
|
source: 'https://github.com/zloirock/core-js'
|
|
502
556
|
});
|
|
503
|
-
});
|
|
504
557
|
|
|
505
|
-
var
|
|
558
|
+
var global$m = global$x;
|
|
559
|
+
var requireObjectCoercible$3 = requireObjectCoercible$5;
|
|
560
|
+
|
|
561
|
+
var Object$2 = global$m.Object;
|
|
506
562
|
|
|
507
563
|
// `ToObject` abstract operation
|
|
508
564
|
// https://tc39.es/ecma262/#sec-toobject
|
|
509
|
-
var toObject = function (argument) {
|
|
510
|
-
return Object$2(requireObjectCoercible(argument));
|
|
565
|
+
var toObject$5 = function (argument) {
|
|
566
|
+
return Object$2(requireObjectCoercible$3(argument));
|
|
511
567
|
};
|
|
512
568
|
|
|
513
|
-
var
|
|
569
|
+
var uncurryThis$h = functionUncurryThis;
|
|
570
|
+
var toObject$4 = toObject$5;
|
|
571
|
+
|
|
572
|
+
var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
|
|
514
573
|
|
|
515
574
|
// `HasOwnProperty` abstract operation
|
|
516
575
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
517
576
|
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
518
577
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
519
|
-
return hasOwnProperty(toObject(it), key);
|
|
578
|
+
return hasOwnProperty(toObject$4(it), key);
|
|
520
579
|
};
|
|
521
580
|
|
|
581
|
+
var uncurryThis$g = functionUncurryThis;
|
|
582
|
+
|
|
522
583
|
var id = 0;
|
|
523
584
|
var postfix = Math.random();
|
|
524
|
-
var toString =
|
|
585
|
+
var toString$6 = uncurryThis$g(1.0.toString);
|
|
525
586
|
|
|
526
|
-
var uid = function (key) {
|
|
527
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
587
|
+
var uid$2 = function (key) {
|
|
588
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
|
|
528
589
|
};
|
|
529
590
|
|
|
530
|
-
var
|
|
531
|
-
var
|
|
591
|
+
var global$l = global$x;
|
|
592
|
+
var shared$3 = shared$4.exports;
|
|
593
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
594
|
+
var uid$1 = uid$2;
|
|
595
|
+
var NATIVE_SYMBOL = nativeSymbol;
|
|
596
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
597
|
+
|
|
598
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
599
|
+
var Symbol$1 = global$l.Symbol;
|
|
532
600
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
533
|
-
var createWellKnownSymbol =
|
|
601
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
534
602
|
|
|
535
|
-
var wellKnownSymbol = function (name) {
|
|
536
|
-
if (!
|
|
603
|
+
var wellKnownSymbol$c = function (name) {
|
|
604
|
+
if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
537
605
|
var description = 'Symbol.' + name;
|
|
538
|
-
if (
|
|
606
|
+
if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
|
|
539
607
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
540
|
-
} else if (
|
|
608
|
+
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
541
609
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
542
610
|
} else {
|
|
543
611
|
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
@@ -545,69 +613,97 @@
|
|
|
545
613
|
} return WellKnownSymbolsStore[name];
|
|
546
614
|
};
|
|
547
615
|
|
|
548
|
-
var
|
|
549
|
-
var
|
|
616
|
+
var global$k = global$x;
|
|
617
|
+
var call$7 = functionCall;
|
|
618
|
+
var isObject$7 = isObject$9;
|
|
619
|
+
var isSymbol$1 = isSymbol$2;
|
|
620
|
+
var getMethod$2 = getMethod$3;
|
|
621
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
622
|
+
var wellKnownSymbol$b = wellKnownSymbol$c;
|
|
623
|
+
|
|
624
|
+
var TypeError$7 = global$k.TypeError;
|
|
625
|
+
var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
|
|
550
626
|
|
|
551
627
|
// `ToPrimitive` abstract operation
|
|
552
628
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
553
|
-
var toPrimitive = function (input, pref) {
|
|
554
|
-
if (!isObject(input) || isSymbol(input)) return input;
|
|
555
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
629
|
+
var toPrimitive$1 = function (input, pref) {
|
|
630
|
+
if (!isObject$7(input) || isSymbol$1(input)) return input;
|
|
631
|
+
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
556
632
|
var result;
|
|
557
633
|
if (exoticToPrim) {
|
|
558
634
|
if (pref === undefined) pref = 'default';
|
|
559
|
-
result =
|
|
560
|
-
if (!isObject(result) || isSymbol(result)) return result;
|
|
635
|
+
result = call$7(exoticToPrim, input, pref);
|
|
636
|
+
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
561
637
|
throw TypeError$7("Can't convert object to primitive value");
|
|
562
638
|
}
|
|
563
639
|
if (pref === undefined) pref = 'number';
|
|
564
640
|
return ordinaryToPrimitive(input, pref);
|
|
565
641
|
};
|
|
566
642
|
|
|
643
|
+
var toPrimitive = toPrimitive$1;
|
|
644
|
+
var isSymbol = isSymbol$2;
|
|
645
|
+
|
|
567
646
|
// `ToPropertyKey` abstract operation
|
|
568
647
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
569
|
-
var toPropertyKey = function (argument) {
|
|
648
|
+
var toPropertyKey$3 = function (argument) {
|
|
570
649
|
var key = toPrimitive(argument, 'string');
|
|
571
650
|
return isSymbol(key) ? key : key + '';
|
|
572
651
|
};
|
|
573
652
|
|
|
574
|
-
var
|
|
653
|
+
var global$j = global$x;
|
|
654
|
+
var isObject$6 = isObject$9;
|
|
655
|
+
|
|
656
|
+
var document$1 = global$j.document;
|
|
575
657
|
// typeof document.createElement is 'object' in old IE
|
|
576
|
-
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
|
658
|
+
var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
|
|
577
659
|
|
|
578
|
-
var documentCreateElement = function (it) {
|
|
660
|
+
var documentCreateElement$2 = function (it) {
|
|
579
661
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
580
662
|
};
|
|
581
663
|
|
|
664
|
+
var DESCRIPTORS$8 = descriptors;
|
|
665
|
+
var fails$e = fails$j;
|
|
666
|
+
var createElement = documentCreateElement$2;
|
|
667
|
+
|
|
582
668
|
// Thanks to IE8 for its funny defineProperty
|
|
583
|
-
var ie8DomDefine = !
|
|
669
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$e(function () {
|
|
584
670
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
585
|
-
return Object.defineProperty(
|
|
671
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
586
672
|
get: function () { return 7; }
|
|
587
673
|
}).a != 7;
|
|
588
674
|
});
|
|
589
675
|
|
|
676
|
+
var DESCRIPTORS$7 = descriptors;
|
|
677
|
+
var call$6 = functionCall;
|
|
678
|
+
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
679
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
680
|
+
var toIndexedObject$5 = toIndexedObject$6;
|
|
681
|
+
var toPropertyKey$2 = toPropertyKey$3;
|
|
682
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
683
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
684
|
+
|
|
590
685
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
591
686
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
592
687
|
|
|
593
688
|
// `Object.getOwnPropertyDescriptor` method
|
|
594
689
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
595
|
-
|
|
596
|
-
O = toIndexedObject(O);
|
|
597
|
-
P = toPropertyKey(P);
|
|
598
|
-
if (
|
|
690
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
691
|
+
O = toIndexedObject$5(O);
|
|
692
|
+
P = toPropertyKey$2(P);
|
|
693
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
599
694
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
600
695
|
} catch (error) { /* empty */ }
|
|
601
|
-
if (
|
|
696
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
602
697
|
};
|
|
603
698
|
|
|
604
|
-
var
|
|
605
|
-
|
|
606
|
-
|
|
699
|
+
var objectDefineProperty = {};
|
|
700
|
+
|
|
701
|
+
var DESCRIPTORS$6 = descriptors;
|
|
702
|
+
var fails$d = fails$j;
|
|
607
703
|
|
|
608
704
|
// V8 ~ Chrome 36-
|
|
609
705
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
610
|
-
var v8PrototypeDefineBug =
|
|
706
|
+
var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$d(function () {
|
|
611
707
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
612
708
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
613
709
|
value: 42,
|
|
@@ -615,16 +711,26 @@
|
|
|
615
711
|
}).prototype != 42;
|
|
616
712
|
});
|
|
617
713
|
|
|
618
|
-
var
|
|
619
|
-
var
|
|
714
|
+
var global$i = global$x;
|
|
715
|
+
var isObject$5 = isObject$9;
|
|
716
|
+
|
|
717
|
+
var String$2 = global$i.String;
|
|
718
|
+
var TypeError$6 = global$i.TypeError;
|
|
620
719
|
|
|
621
720
|
// `Assert: Type(argument) is Object`
|
|
622
|
-
var anObject = function (argument) {
|
|
623
|
-
if (isObject(argument)) return argument;
|
|
721
|
+
var anObject$9 = function (argument) {
|
|
722
|
+
if (isObject$5(argument)) return argument;
|
|
624
723
|
throw TypeError$6(String$2(argument) + ' is not an object');
|
|
625
724
|
};
|
|
626
725
|
|
|
627
|
-
var
|
|
726
|
+
var global$h = global$x;
|
|
727
|
+
var DESCRIPTORS$5 = descriptors;
|
|
728
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
729
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
730
|
+
var anObject$8 = anObject$9;
|
|
731
|
+
var toPropertyKey$1 = toPropertyKey$3;
|
|
732
|
+
|
|
733
|
+
var TypeError$5 = global$h.TypeError;
|
|
628
734
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
629
735
|
var $defineProperty = Object.defineProperty;
|
|
630
736
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -635,10 +741,10 @@
|
|
|
635
741
|
|
|
636
742
|
// `Object.defineProperty` method
|
|
637
743
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
638
|
-
|
|
639
|
-
anObject(O);
|
|
640
|
-
P = toPropertyKey(P);
|
|
641
|
-
anObject(Attributes);
|
|
744
|
+
objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
745
|
+
anObject$8(O);
|
|
746
|
+
P = toPropertyKey$1(P);
|
|
747
|
+
anObject$8(Attributes);
|
|
642
748
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
643
749
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
644
750
|
if (current && current[WRITABLE]) {
|
|
@@ -651,10 +757,10 @@
|
|
|
651
757
|
}
|
|
652
758
|
} return $defineProperty(O, P, Attributes);
|
|
653
759
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
654
|
-
anObject(O);
|
|
655
|
-
P = toPropertyKey(P);
|
|
656
|
-
anObject(Attributes);
|
|
657
|
-
if (
|
|
760
|
+
anObject$8(O);
|
|
761
|
+
P = toPropertyKey$1(P);
|
|
762
|
+
anObject$8(Attributes);
|
|
763
|
+
if (IE8_DOM_DEFINE) try {
|
|
658
764
|
return $defineProperty(O, P, Attributes);
|
|
659
765
|
} catch (error) { /* empty */ }
|
|
660
766
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
|
|
@@ -662,25 +768,30 @@
|
|
|
662
768
|
return O;
|
|
663
769
|
};
|
|
664
770
|
|
|
665
|
-
var
|
|
666
|
-
|
|
667
|
-
|
|
771
|
+
var DESCRIPTORS$4 = descriptors;
|
|
772
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
773
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
668
774
|
|
|
669
|
-
var createNonEnumerableProperty =
|
|
670
|
-
return
|
|
775
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$4 ? function (object, key, value) {
|
|
776
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
|
671
777
|
} : function (object, key, value) {
|
|
672
778
|
object[key] = value;
|
|
673
779
|
return object;
|
|
674
780
|
};
|
|
675
781
|
|
|
782
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
783
|
+
|
|
784
|
+
var DESCRIPTORS$3 = descriptors;
|
|
785
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
786
|
+
|
|
676
787
|
var FunctionPrototype$1 = Function.prototype;
|
|
677
788
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
678
|
-
var getDescriptor =
|
|
789
|
+
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
679
790
|
|
|
680
|
-
var EXISTS =
|
|
791
|
+
var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
|
|
681
792
|
// additional protection from minified / mangled / dropped function names
|
|
682
793
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
683
|
-
var CONFIGURABLE = EXISTS && (!
|
|
794
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
684
795
|
|
|
685
796
|
var functionName = {
|
|
686
797
|
EXISTS: EXISTS,
|
|
@@ -688,32 +799,53 @@
|
|
|
688
799
|
CONFIGURABLE: CONFIGURABLE
|
|
689
800
|
};
|
|
690
801
|
|
|
691
|
-
var
|
|
802
|
+
var uncurryThis$f = functionUncurryThis;
|
|
803
|
+
var isCallable$8 = isCallable$e;
|
|
804
|
+
var store$1 = sharedStore;
|
|
805
|
+
|
|
806
|
+
var functionToString = uncurryThis$f(Function.toString);
|
|
692
807
|
|
|
693
808
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
694
|
-
if (!isCallable(
|
|
695
|
-
|
|
809
|
+
if (!isCallable$8(store$1.inspectSource)) {
|
|
810
|
+
store$1.inspectSource = function (it) {
|
|
696
811
|
return functionToString(it);
|
|
697
812
|
};
|
|
698
813
|
}
|
|
699
814
|
|
|
700
|
-
var inspectSource =
|
|
815
|
+
var inspectSource$3 = store$1.inspectSource;
|
|
816
|
+
|
|
817
|
+
var global$g = global$x;
|
|
818
|
+
var isCallable$7 = isCallable$e;
|
|
819
|
+
var inspectSource$2 = inspectSource$3;
|
|
820
|
+
|
|
821
|
+
var WeakMap$1 = global$g.WeakMap;
|
|
701
822
|
|
|
702
|
-
var WeakMap$1
|
|
823
|
+
var nativeWeakMap = isCallable$7(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
|
|
703
824
|
|
|
704
|
-
var
|
|
825
|
+
var shared$2 = shared$4.exports;
|
|
826
|
+
var uid = uid$2;
|
|
705
827
|
|
|
706
|
-
var keys = shared('keys');
|
|
828
|
+
var keys = shared$2('keys');
|
|
707
829
|
|
|
708
|
-
var sharedKey = function (key) {
|
|
830
|
+
var sharedKey$2 = function (key) {
|
|
709
831
|
return keys[key] || (keys[key] = uid(key));
|
|
710
832
|
};
|
|
711
833
|
|
|
712
|
-
var hiddenKeys$
|
|
834
|
+
var hiddenKeys$4 = {};
|
|
835
|
+
|
|
836
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
837
|
+
var global$f = global$x;
|
|
838
|
+
var uncurryThis$e = functionUncurryThis;
|
|
839
|
+
var isObject$4 = isObject$9;
|
|
840
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
841
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
842
|
+
var shared$1 = sharedStore;
|
|
843
|
+
var sharedKey$1 = sharedKey$2;
|
|
844
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
713
845
|
|
|
714
846
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
715
|
-
var TypeError$4 =
|
|
716
|
-
var WeakMap =
|
|
847
|
+
var TypeError$4 = global$f.TypeError;
|
|
848
|
+
var WeakMap = global$f.WeakMap;
|
|
717
849
|
var set, get, has;
|
|
718
850
|
|
|
719
851
|
var enforce = function (it) {
|
|
@@ -723,17 +855,17 @@
|
|
|
723
855
|
var getterFor = function (TYPE) {
|
|
724
856
|
return function (it) {
|
|
725
857
|
var state;
|
|
726
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
858
|
+
if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
|
|
727
859
|
throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
|
728
860
|
} return state;
|
|
729
861
|
};
|
|
730
862
|
};
|
|
731
863
|
|
|
732
|
-
if (
|
|
733
|
-
var store =
|
|
734
|
-
var wmget =
|
|
735
|
-
var wmhas =
|
|
736
|
-
var wmset =
|
|
864
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
865
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
866
|
+
var wmget = uncurryThis$e(store.get);
|
|
867
|
+
var wmhas = uncurryThis$e(store.has);
|
|
868
|
+
var wmset = uncurryThis$e(store.set);
|
|
737
869
|
set = function (it, metadata) {
|
|
738
870
|
if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
739
871
|
metadata.facade = it;
|
|
@@ -747,19 +879,19 @@
|
|
|
747
879
|
return wmhas(store, it);
|
|
748
880
|
};
|
|
749
881
|
} else {
|
|
750
|
-
var STATE = sharedKey('state');
|
|
751
|
-
hiddenKeys$
|
|
882
|
+
var STATE = sharedKey$1('state');
|
|
883
|
+
hiddenKeys$3[STATE] = true;
|
|
752
884
|
set = function (it, metadata) {
|
|
753
|
-
if (
|
|
885
|
+
if (hasOwn$3(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
754
886
|
metadata.facade = it;
|
|
755
|
-
createNonEnumerableProperty(it, STATE, metadata);
|
|
887
|
+
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
756
888
|
return metadata;
|
|
757
889
|
};
|
|
758
890
|
get = function (it) {
|
|
759
|
-
return
|
|
891
|
+
return hasOwn$3(it, STATE) ? it[STATE] : {};
|
|
760
892
|
};
|
|
761
893
|
has = function (it) {
|
|
762
|
-
return
|
|
894
|
+
return hasOwn$3(it, STATE);
|
|
763
895
|
};
|
|
764
896
|
}
|
|
765
897
|
|
|
@@ -771,55 +903,69 @@
|
|
|
771
903
|
getterFor: getterFor
|
|
772
904
|
};
|
|
773
905
|
|
|
774
|
-
var
|
|
775
|
-
var
|
|
906
|
+
var fails$c = fails$j;
|
|
907
|
+
var isCallable$6 = isCallable$e;
|
|
908
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
909
|
+
var DESCRIPTORS$2 = descriptors;
|
|
776
910
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
911
|
+
var inspectSource$1 = inspectSource$3;
|
|
912
|
+
var InternalStateModule = internalState;
|
|
777
913
|
|
|
914
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
915
|
+
var getInternalState$1 = InternalStateModule.get;
|
|
916
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
917
|
+
var defineProperty$1 = Object.defineProperty;
|
|
778
918
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
var getInternalState = internalState.get;
|
|
782
|
-
|
|
783
|
-
var CONFIGURABLE_LENGTH = !fails(function () {
|
|
784
|
-
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
919
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$c(function () {
|
|
920
|
+
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
785
921
|
});
|
|
786
922
|
|
|
787
923
|
var TEMPLATE = String(String).split('String');
|
|
788
924
|
|
|
789
|
-
var makeBuiltIn =
|
|
925
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
790
926
|
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
791
927
|
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
792
928
|
}
|
|
793
929
|
if (options && options.getter) name = 'get ' + name;
|
|
794
930
|
if (options && options.setter) name = 'set ' + name;
|
|
795
|
-
if (!
|
|
796
|
-
defineProperty(value, 'name', { value: name, configurable: true });
|
|
931
|
+
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
932
|
+
defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
797
933
|
}
|
|
798
|
-
if (CONFIGURABLE_LENGTH && options &&
|
|
799
|
-
defineProperty(value, 'length', { value: options.arity });
|
|
934
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
935
|
+
defineProperty$1(value, 'length', { value: options.arity });
|
|
800
936
|
}
|
|
937
|
+
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
938
|
+
if (DESCRIPTORS$2) try {
|
|
939
|
+
defineProperty$1(value, 'prototype', { writable: false });
|
|
940
|
+
} catch (error) { /* empty */ }
|
|
941
|
+
} else value.prototype = undefined;
|
|
801
942
|
var state = enforceInternalState(value);
|
|
802
|
-
if (!
|
|
943
|
+
if (!hasOwn$2(state, 'source')) {
|
|
803
944
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
804
945
|
} return value;
|
|
805
946
|
};
|
|
806
947
|
|
|
807
948
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
808
949
|
// eslint-disable-next-line no-extend-native -- required
|
|
809
|
-
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
810
|
-
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
950
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
951
|
+
return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this);
|
|
811
952
|
}, 'toString');
|
|
812
|
-
});
|
|
813
953
|
|
|
814
|
-
var
|
|
954
|
+
var global$e = global$x;
|
|
955
|
+
var isCallable$5 = isCallable$e;
|
|
956
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
957
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
958
|
+
var setGlobal$1 = setGlobal$3;
|
|
959
|
+
|
|
960
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
815
961
|
var unsafe = options ? !!options.unsafe : false;
|
|
816
962
|
var simple = options ? !!options.enumerable : false;
|
|
817
963
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
818
964
|
var name = options && options.name !== undefined ? options.name : key;
|
|
819
|
-
if (isCallable(value))
|
|
820
|
-
if (O ===
|
|
965
|
+
if (isCallable$5(value)) makeBuiltIn(value, name, options);
|
|
966
|
+
if (O === global$e) {
|
|
821
967
|
if (simple) O[key] = value;
|
|
822
|
-
else setGlobal(key, value);
|
|
968
|
+
else setGlobal$1(key, value);
|
|
823
969
|
return O;
|
|
824
970
|
} else if (!unsafe) {
|
|
825
971
|
delete O[key];
|
|
@@ -827,52 +973,64 @@
|
|
|
827
973
|
simple = true;
|
|
828
974
|
}
|
|
829
975
|
if (simple) O[key] = value;
|
|
830
|
-
else createNonEnumerableProperty(O, key, value);
|
|
976
|
+
else createNonEnumerableProperty$3(O, key, value);
|
|
831
977
|
return O;
|
|
832
978
|
};
|
|
833
979
|
|
|
980
|
+
var objectGetOwnPropertyNames = {};
|
|
981
|
+
|
|
834
982
|
var ceil = Math.ceil;
|
|
835
983
|
var floor$1 = Math.floor;
|
|
836
984
|
|
|
837
985
|
// `ToIntegerOrInfinity` abstract operation
|
|
838
986
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
839
|
-
var toIntegerOrInfinity = function (argument) {
|
|
987
|
+
var toIntegerOrInfinity$4 = function (argument) {
|
|
840
988
|
var number = +argument;
|
|
841
989
|
// eslint-disable-next-line no-self-compare -- safe
|
|
842
990
|
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
|
843
991
|
};
|
|
844
992
|
|
|
993
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
994
|
+
|
|
845
995
|
var max$3 = Math.max;
|
|
846
996
|
var min$3 = Math.min;
|
|
847
997
|
|
|
848
998
|
// Helper for a popular repeating case of the spec:
|
|
849
999
|
// Let integer be ? ToInteger(index).
|
|
850
1000
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
851
|
-
var toAbsoluteIndex = function (index, length) {
|
|
852
|
-
var integer = toIntegerOrInfinity(index);
|
|
1001
|
+
var toAbsoluteIndex$3 = function (index, length) {
|
|
1002
|
+
var integer = toIntegerOrInfinity$3(index);
|
|
853
1003
|
return integer < 0 ? max$3(integer + length, 0) : min$3(integer, length);
|
|
854
1004
|
};
|
|
855
1005
|
|
|
1006
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
1007
|
+
|
|
856
1008
|
var min$2 = Math.min;
|
|
857
1009
|
|
|
858
1010
|
// `ToLength` abstract operation
|
|
859
1011
|
// https://tc39.es/ecma262/#sec-tolength
|
|
860
|
-
var toLength = function (argument) {
|
|
861
|
-
return argument > 0 ? min$2(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
1012
|
+
var toLength$3 = function (argument) {
|
|
1013
|
+
return argument > 0 ? min$2(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
862
1014
|
};
|
|
863
1015
|
|
|
1016
|
+
var toLength$2 = toLength$3;
|
|
1017
|
+
|
|
864
1018
|
// `LengthOfArrayLike` abstract operation
|
|
865
1019
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
866
|
-
var lengthOfArrayLike = function (obj) {
|
|
867
|
-
return toLength(obj.length);
|
|
1020
|
+
var lengthOfArrayLike$5 = function (obj) {
|
|
1021
|
+
return toLength$2(obj.length);
|
|
868
1022
|
};
|
|
869
1023
|
|
|
1024
|
+
var toIndexedObject$4 = toIndexedObject$6;
|
|
1025
|
+
var toAbsoluteIndex$2 = toAbsoluteIndex$3;
|
|
1026
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$5;
|
|
1027
|
+
|
|
870
1028
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
871
1029
|
var createMethod$2 = function (IS_INCLUDES) {
|
|
872
1030
|
return function ($this, el, fromIndex) {
|
|
873
|
-
var O = toIndexedObject($this);
|
|
874
|
-
var length = lengthOfArrayLike(O);
|
|
875
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
1031
|
+
var O = toIndexedObject$4($this);
|
|
1032
|
+
var length = lengthOfArrayLike$4(O);
|
|
1033
|
+
var index = toAbsoluteIndex$2(fromIndex, length);
|
|
876
1034
|
var value;
|
|
877
1035
|
// Array#includes uses SameValueZero equality algorithm
|
|
878
1036
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
@@ -896,26 +1054,29 @@
|
|
|
896
1054
|
indexOf: createMethod$2(false)
|
|
897
1055
|
};
|
|
898
1056
|
|
|
1057
|
+
var uncurryThis$d = functionUncurryThis;
|
|
1058
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1059
|
+
var toIndexedObject$3 = toIndexedObject$6;
|
|
899
1060
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
1061
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
900
1062
|
|
|
901
|
-
|
|
902
|
-
var push$3 = functionUncurryThis([].push);
|
|
1063
|
+
var push$3 = uncurryThis$d([].push);
|
|
903
1064
|
|
|
904
1065
|
var objectKeysInternal = function (object, names) {
|
|
905
|
-
var O = toIndexedObject(object);
|
|
1066
|
+
var O = toIndexedObject$3(object);
|
|
906
1067
|
var i = 0;
|
|
907
1068
|
var result = [];
|
|
908
1069
|
var key;
|
|
909
|
-
for (key in O) !
|
|
1070
|
+
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$3(result, key);
|
|
910
1071
|
// Don't enum bug & hidden keys
|
|
911
|
-
while (names.length > i) if (
|
|
1072
|
+
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
|
912
1073
|
~indexOf$1(result, key) || push$3(result, key);
|
|
913
1074
|
}
|
|
914
1075
|
return result;
|
|
915
1076
|
};
|
|
916
1077
|
|
|
917
1078
|
// IE8- don't enum bug keys
|
|
918
|
-
var enumBugKeys = [
|
|
1079
|
+
var enumBugKeys$3 = [
|
|
919
1080
|
'constructor',
|
|
920
1081
|
'hasOwnProperty',
|
|
921
1082
|
'isPrototypeOf',
|
|
@@ -925,73 +1086,85 @@
|
|
|
925
1086
|
'valueOf'
|
|
926
1087
|
];
|
|
927
1088
|
|
|
928
|
-
var
|
|
1089
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
1090
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
1091
|
+
|
|
1092
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
929
1093
|
|
|
930
1094
|
// `Object.getOwnPropertyNames` method
|
|
931
1095
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
932
1096
|
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
933
|
-
|
|
934
|
-
return
|
|
1097
|
+
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1098
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
935
1099
|
};
|
|
936
1100
|
|
|
937
|
-
var
|
|
938
|
-
f: f$2
|
|
939
|
-
};
|
|
1101
|
+
var objectGetOwnPropertySymbols = {};
|
|
940
1102
|
|
|
941
1103
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
942
|
-
|
|
1104
|
+
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
943
1105
|
|
|
944
|
-
var
|
|
945
|
-
|
|
946
|
-
|
|
1106
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
1107
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1108
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1109
|
+
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1110
|
+
var anObject$7 = anObject$9;
|
|
947
1111
|
|
|
948
|
-
var concat$2 =
|
|
1112
|
+
var concat$2 = uncurryThis$c([].concat);
|
|
949
1113
|
|
|
950
1114
|
// all object keys, includes non-enumerable and symbols
|
|
951
|
-
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
952
|
-
var keys =
|
|
953
|
-
var getOwnPropertySymbols =
|
|
1115
|
+
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1116
|
+
var keys = getOwnPropertyNamesModule.f(anObject$7(it));
|
|
1117
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
954
1118
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
955
1119
|
};
|
|
956
1120
|
|
|
957
|
-
var
|
|
1121
|
+
var hasOwn = hasOwnProperty_1;
|
|
1122
|
+
var ownKeys = ownKeys$1;
|
|
1123
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1124
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
1125
|
+
|
|
1126
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
958
1127
|
var keys = ownKeys(source);
|
|
959
|
-
var defineProperty =
|
|
960
|
-
var getOwnPropertyDescriptor =
|
|
1128
|
+
var defineProperty = definePropertyModule$3.f;
|
|
1129
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
961
1130
|
for (var i = 0; i < keys.length; i++) {
|
|
962
1131
|
var key = keys[i];
|
|
963
|
-
if (!
|
|
1132
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
964
1133
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
965
1134
|
}
|
|
966
1135
|
}
|
|
967
1136
|
};
|
|
968
1137
|
|
|
1138
|
+
var fails$b = fails$j;
|
|
1139
|
+
var isCallable$4 = isCallable$e;
|
|
1140
|
+
|
|
969
1141
|
var replacement = /#|\.prototype\./;
|
|
970
1142
|
|
|
971
|
-
var isForced = function (feature, detection) {
|
|
1143
|
+
var isForced$1 = function (feature, detection) {
|
|
972
1144
|
var value = data[normalize(feature)];
|
|
973
1145
|
return value == POLYFILL ? true
|
|
974
1146
|
: value == NATIVE ? false
|
|
975
|
-
: isCallable(detection) ? fails(detection)
|
|
1147
|
+
: isCallable$4(detection) ? fails$b(detection)
|
|
976
1148
|
: !!detection;
|
|
977
1149
|
};
|
|
978
1150
|
|
|
979
|
-
var normalize = isForced.normalize = function (string) {
|
|
1151
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
980
1152
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
981
1153
|
};
|
|
982
1154
|
|
|
983
|
-
var data = isForced.data = {};
|
|
984
|
-
var NATIVE = isForced.NATIVE = 'N';
|
|
985
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
|
1155
|
+
var data = isForced$1.data = {};
|
|
1156
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
1157
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
986
1158
|
|
|
987
|
-
var isForced_1 = isForced;
|
|
1159
|
+
var isForced_1 = isForced$1;
|
|
988
1160
|
|
|
1161
|
+
var global$d = global$x;
|
|
989
1162
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1163
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
1164
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
1165
|
+
var setGlobal = setGlobal$3;
|
|
1166
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1167
|
+
var isForced = isForced_1;
|
|
995
1168
|
|
|
996
1169
|
/*
|
|
997
1170
|
options.target - name of the target object
|
|
@@ -1014,11 +1187,11 @@
|
|
|
1014
1187
|
var STATIC = options.stat;
|
|
1015
1188
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1016
1189
|
if (GLOBAL) {
|
|
1017
|
-
target =
|
|
1190
|
+
target = global$d;
|
|
1018
1191
|
} else if (STATIC) {
|
|
1019
|
-
target =
|
|
1192
|
+
target = global$d[TARGET] || setGlobal(TARGET, {});
|
|
1020
1193
|
} else {
|
|
1021
|
-
target = (
|
|
1194
|
+
target = (global$d[TARGET] || {}).prototype;
|
|
1022
1195
|
}
|
|
1023
1196
|
if (target) for (key in source) {
|
|
1024
1197
|
sourceProperty = source[key];
|
|
@@ -1026,7 +1199,7 @@
|
|
|
1026
1199
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1027
1200
|
targetProperty = descriptor && descriptor.value;
|
|
1028
1201
|
} else targetProperty = target[key];
|
|
1029
|
-
FORCED =
|
|
1202
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1030
1203
|
// contained in target
|
|
1031
1204
|
if (!FORCED && targetProperty !== undefined) {
|
|
1032
1205
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
@@ -1034,38 +1207,29 @@
|
|
|
1034
1207
|
}
|
|
1035
1208
|
// add a flag to not completely full polyfills
|
|
1036
1209
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1037
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
1210
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1038
1211
|
}
|
|
1039
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
|
1212
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1040
1213
|
}
|
|
1041
1214
|
};
|
|
1042
1215
|
|
|
1043
|
-
var
|
|
1216
|
+
var wellKnownSymbol$a = wellKnownSymbol$c;
|
|
1044
1217
|
|
|
1045
|
-
|
|
1046
|
-
var functionBindContext = function (fn, that) {
|
|
1047
|
-
aCallable(fn);
|
|
1048
|
-
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
|
1049
|
-
return fn.apply(that, arguments);
|
|
1050
|
-
};
|
|
1051
|
-
};
|
|
1052
|
-
|
|
1053
|
-
// `IsArray` abstract operation
|
|
1054
|
-
// https://tc39.es/ecma262/#sec-isarray
|
|
1055
|
-
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
1056
|
-
var isArray = Array.isArray || function isArray(argument) {
|
|
1057
|
-
return classofRaw(argument) == 'Array';
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
1218
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$a('toStringTag');
|
|
1061
1219
|
var test = {};
|
|
1062
1220
|
|
|
1063
1221
|
test[TO_STRING_TAG$1] = 'z';
|
|
1064
1222
|
|
|
1065
1223
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1066
1224
|
|
|
1067
|
-
var
|
|
1068
|
-
var
|
|
1225
|
+
var global$c = global$x;
|
|
1226
|
+
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
1227
|
+
var isCallable$3 = isCallable$e;
|
|
1228
|
+
var classofRaw = classofRaw$1;
|
|
1229
|
+
var wellKnownSymbol$9 = wellKnownSymbol$c;
|
|
1230
|
+
|
|
1231
|
+
var TO_STRING_TAG = wellKnownSymbol$9('toStringTag');
|
|
1232
|
+
var Object$1 = global$c.Object;
|
|
1069
1233
|
|
|
1070
1234
|
// ES3 wrong here
|
|
1071
1235
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1078,7 +1242,7 @@
|
|
|
1078
1242
|
};
|
|
1079
1243
|
|
|
1080
1244
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1081
|
-
var classof =
|
|
1245
|
+
var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
1082
1246
|
var O, tag, result;
|
|
1083
1247
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1084
1248
|
// @@toStringTag case
|
|
@@ -1086,181 +1250,113 @@
|
|
|
1086
1250
|
// builtinTag case
|
|
1087
1251
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1088
1252
|
// ES3 arguments fallback
|
|
1089
|
-
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1253
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
|
|
1090
1254
|
};
|
|
1091
1255
|
|
|
1092
|
-
var
|
|
1093
|
-
var
|
|
1094
|
-
var construct = getBuiltIn('Reflect', 'construct');
|
|
1095
|
-
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1096
|
-
var exec$1 = functionUncurryThis(constructorRegExp.exec);
|
|
1097
|
-
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1256
|
+
var global$b = global$x;
|
|
1257
|
+
var classof$5 = classof$6;
|
|
1098
1258
|
|
|
1099
|
-
var
|
|
1100
|
-
if (!isCallable(argument)) return false;
|
|
1101
|
-
try {
|
|
1102
|
-
construct(noop, empty, argument);
|
|
1103
|
-
return true;
|
|
1104
|
-
} catch (error) {
|
|
1105
|
-
return false;
|
|
1106
|
-
}
|
|
1107
|
-
};
|
|
1259
|
+
var String$1 = global$b.String;
|
|
1108
1260
|
|
|
1109
|
-
var
|
|
1110
|
-
if (
|
|
1111
|
-
|
|
1112
|
-
case 'AsyncFunction':
|
|
1113
|
-
case 'GeneratorFunction':
|
|
1114
|
-
case 'AsyncGeneratorFunction': return false;
|
|
1115
|
-
}
|
|
1116
|
-
try {
|
|
1117
|
-
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1118
|
-
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1119
|
-
// (for example, `DOMQuad` and similar in FF41-)
|
|
1120
|
-
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
|
|
1121
|
-
} catch (error) {
|
|
1122
|
-
return true;
|
|
1123
|
-
}
|
|
1261
|
+
var toString$5 = function (argument) {
|
|
1262
|
+
if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1263
|
+
return String$1(argument);
|
|
1124
1264
|
};
|
|
1125
1265
|
|
|
1126
|
-
|
|
1266
|
+
var anObject$6 = anObject$9;
|
|
1127
1267
|
|
|
1128
|
-
// `
|
|
1129
|
-
// https://tc39.es/ecma262/#sec-
|
|
1130
|
-
var
|
|
1131
|
-
var
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1268
|
+
// `RegExp.prototype.flags` getter implementation
|
|
1269
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1270
|
+
var regexpFlags$1 = function () {
|
|
1271
|
+
var that = anObject$6(this);
|
|
1272
|
+
var result = '';
|
|
1273
|
+
if (that.hasIndices) result += 'd';
|
|
1274
|
+
if (that.global) result += 'g';
|
|
1275
|
+
if (that.ignoreCase) result += 'i';
|
|
1276
|
+
if (that.multiline) result += 'm';
|
|
1277
|
+
if (that.dotAll) result += 's';
|
|
1278
|
+
if (that.unicode) result += 'u';
|
|
1279
|
+
if (that.sticky) result += 'y';
|
|
1280
|
+
return result;
|
|
1281
|
+
};
|
|
1137
1282
|
|
|
1138
|
-
var
|
|
1139
|
-
var
|
|
1283
|
+
var fails$a = fails$j;
|
|
1284
|
+
var global$a = global$x;
|
|
1140
1285
|
|
|
1141
|
-
// a
|
|
1142
|
-
|
|
1143
|
-
var arraySpeciesConstructor = function (originalArray) {
|
|
1144
|
-
var C;
|
|
1145
|
-
if (isArray(originalArray)) {
|
|
1146
|
-
C = originalArray.constructor;
|
|
1147
|
-
// cross-realm fallback
|
|
1148
|
-
if (isConstructor(C) && (C === Array$3 || isArray(C.prototype))) C = undefined;
|
|
1149
|
-
else if (isObject(C)) {
|
|
1150
|
-
C = C[SPECIES$4];
|
|
1151
|
-
if (C === null) C = undefined;
|
|
1152
|
-
}
|
|
1153
|
-
} return C === undefined ? Array$3 : C;
|
|
1154
|
-
};
|
|
1286
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1287
|
+
var $RegExp$2 = global$a.RegExp;
|
|
1155
1288
|
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
return
|
|
1160
|
-
};
|
|
1289
|
+
var UNSUPPORTED_Y$2 = fails$a(function () {
|
|
1290
|
+
var re = $RegExp$2('a', 'y');
|
|
1291
|
+
re.lastIndex = 2;
|
|
1292
|
+
return re.exec('abcd') != null;
|
|
1293
|
+
});
|
|
1161
1294
|
|
|
1162
|
-
|
|
1295
|
+
// UC Browser bug
|
|
1296
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
1297
|
+
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$a(function () {
|
|
1298
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
1299
|
+
});
|
|
1163
1300
|
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
var
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
var IS_FIND_INDEX = TYPE == 6;
|
|
1171
|
-
var IS_FILTER_REJECT = TYPE == 7;
|
|
1172
|
-
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1173
|
-
return function ($this, callbackfn, that, specificCreate) {
|
|
1174
|
-
var O = toObject($this);
|
|
1175
|
-
var self = indexedObject(O);
|
|
1176
|
-
var boundFunction = functionBindContext(callbackfn, that);
|
|
1177
|
-
var length = lengthOfArrayLike(self);
|
|
1178
|
-
var index = 0;
|
|
1179
|
-
var create = specificCreate || arraySpeciesCreate;
|
|
1180
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
1181
|
-
var value, result;
|
|
1182
|
-
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
1183
|
-
value = self[index];
|
|
1184
|
-
result = boundFunction(value, index, O);
|
|
1185
|
-
if (TYPE) {
|
|
1186
|
-
if (IS_MAP) target[index] = result; // map
|
|
1187
|
-
else if (result) switch (TYPE) {
|
|
1188
|
-
case 3: return true; // some
|
|
1189
|
-
case 5: return value; // find
|
|
1190
|
-
case 6: return index; // findIndex
|
|
1191
|
-
case 2: push$2(target, value); // filter
|
|
1192
|
-
} else switch (TYPE) {
|
|
1193
|
-
case 4: return false; // every
|
|
1194
|
-
case 7: push$2(target, value); // filterReject
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
1301
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$a(function () {
|
|
1302
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1303
|
+
var re = $RegExp$2('^r', 'gy');
|
|
1304
|
+
re.lastIndex = 2;
|
|
1305
|
+
return re.exec('str') != null;
|
|
1306
|
+
});
|
|
1201
1307
|
|
|
1202
|
-
var
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
// `Array.prototype.map` method
|
|
1207
|
-
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
1208
|
-
map: createMethod$1(1),
|
|
1209
|
-
// `Array.prototype.filter` method
|
|
1210
|
-
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
1211
|
-
filter: createMethod$1(2),
|
|
1212
|
-
// `Array.prototype.some` method
|
|
1213
|
-
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
1214
|
-
some: createMethod$1(3),
|
|
1215
|
-
// `Array.prototype.every` method
|
|
1216
|
-
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
1217
|
-
every: createMethod$1(4),
|
|
1218
|
-
// `Array.prototype.find` method
|
|
1219
|
-
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
1220
|
-
find: createMethod$1(5),
|
|
1221
|
-
// `Array.prototype.findIndex` method
|
|
1222
|
-
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
1223
|
-
findIndex: createMethod$1(6),
|
|
1224
|
-
// `Array.prototype.filterReject` method
|
|
1225
|
-
// https://github.com/tc39/proposal-array-filtering
|
|
1226
|
-
filterReject: createMethod$1(7)
|
|
1308
|
+
var regexpStickyHelpers = {
|
|
1309
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
1310
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
1311
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
1227
1312
|
};
|
|
1228
1313
|
|
|
1314
|
+
var objectDefineProperties = {};
|
|
1315
|
+
|
|
1316
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1317
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1318
|
+
|
|
1229
1319
|
// `Object.keys` method
|
|
1230
1320
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1231
1321
|
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
1232
|
-
var objectKeys = Object.keys || function keys(O) {
|
|
1233
|
-
return
|
|
1322
|
+
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1323
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1234
1324
|
};
|
|
1235
1325
|
|
|
1326
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1327
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1328
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1329
|
+
var anObject$5 = anObject$9;
|
|
1330
|
+
var toIndexedObject$2 = toIndexedObject$6;
|
|
1331
|
+
var objectKeys$1 = objectKeys$2;
|
|
1332
|
+
|
|
1236
1333
|
// `Object.defineProperties` method
|
|
1237
1334
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1238
1335
|
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
1239
|
-
|
|
1240
|
-
anObject(O);
|
|
1241
|
-
var props = toIndexedObject(Properties);
|
|
1242
|
-
var keys = objectKeys(Properties);
|
|
1336
|
+
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1337
|
+
anObject$5(O);
|
|
1338
|
+
var props = toIndexedObject$2(Properties);
|
|
1339
|
+
var keys = objectKeys$1(Properties);
|
|
1243
1340
|
var length = keys.length;
|
|
1244
1341
|
var index = 0;
|
|
1245
1342
|
var key;
|
|
1246
|
-
while (length > index)
|
|
1343
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
|
|
1247
1344
|
return O;
|
|
1248
1345
|
};
|
|
1249
1346
|
|
|
1250
|
-
var
|
|
1251
|
-
f: f
|
|
1252
|
-
};
|
|
1347
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
1253
1348
|
|
|
1254
|
-
var html = getBuiltIn('document', 'documentElement');
|
|
1349
|
+
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
1255
1350
|
|
|
1256
1351
|
/* global ActiveXObject -- old IE, WSH */
|
|
1257
1352
|
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1353
|
+
var anObject$4 = anObject$9;
|
|
1354
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1355
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1356
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1357
|
+
var html = html$1;
|
|
1358
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
1359
|
+
var sharedKey = sharedKey$2;
|
|
1264
1360
|
|
|
1265
1361
|
var GT = '>';
|
|
1266
1362
|
var LT = '<';
|
|
@@ -1286,7 +1382,7 @@
|
|
|
1286
1382
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1287
1383
|
var NullProtoObjectViaIFrame = function () {
|
|
1288
1384
|
// Thrash, waste and sodomy: IE GC bug
|
|
1289
|
-
var iframe = documentCreateElement('iframe');
|
|
1385
|
+
var iframe = documentCreateElement$1('iframe');
|
|
1290
1386
|
var JS = 'java' + SCRIPT + ':';
|
|
1291
1387
|
var iframeDocument;
|
|
1292
1388
|
iframe.style.display = 'none';
|
|
@@ -1300,154 +1396,61 @@
|
|
|
1300
1396
|
return iframeDocument.F;
|
|
1301
1397
|
};
|
|
1302
1398
|
|
|
1303
|
-
// Check for document.domain and active x support
|
|
1304
|
-
// No need to use active x approach when document.domain is not set
|
|
1305
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1306
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1307
|
-
// avoid IE GC bug
|
|
1308
|
-
var activeXDocument;
|
|
1309
|
-
var NullProtoObject = function () {
|
|
1310
|
-
try {
|
|
1311
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
|
1312
|
-
} catch (error) { /* ignore */ }
|
|
1313
|
-
NullProtoObject = typeof document != 'undefined'
|
|
1314
|
-
? document.domain && activeXDocument
|
|
1315
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1316
|
-
: NullProtoObjectViaIFrame()
|
|
1317
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1318
|
-
var length = enumBugKeys.length;
|
|
1319
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1320
|
-
return NullProtoObject();
|
|
1321
|
-
};
|
|
1322
|
-
|
|
1323
|
-
hiddenKeys$1[IE_PROTO] = true;
|
|
1324
|
-
|
|
1325
|
-
// `Object.create` method
|
|
1326
|
-
// https://tc39.es/ecma262/#sec-object.create
|
|
1327
|
-
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
1328
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
1329
|
-
var result;
|
|
1330
|
-
if (O !== null) {
|
|
1331
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1332
|
-
result = new EmptyConstructor();
|
|
1333
|
-
EmptyConstructor[PROTOTYPE] = null;
|
|
1334
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1335
|
-
result[IE_PROTO] = O;
|
|
1336
|
-
} else result = NullProtoObject();
|
|
1337
|
-
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
|
1338
|
-
};
|
|
1339
|
-
|
|
1340
|
-
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
1341
|
-
var ArrayPrototype = Array.prototype;
|
|
1342
|
-
|
|
1343
|
-
// Array.prototype[@@unscopables]
|
|
1344
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1345
|
-
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
1346
|
-
objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
|
|
1347
|
-
configurable: true,
|
|
1348
|
-
value: objectCreate(null)
|
|
1349
|
-
});
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
// add a key to Array.prototype[@@unscopables]
|
|
1353
|
-
var addToUnscopables = function (key) {
|
|
1354
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1355
|
-
};
|
|
1356
|
-
|
|
1357
|
-
var $find = arrayIteration.find;
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
var FIND = 'find';
|
|
1361
|
-
var SKIPS_HOLES = true;
|
|
1362
|
-
|
|
1363
|
-
// Shouldn't skip holes
|
|
1364
|
-
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
1365
|
-
|
|
1366
|
-
// `Array.prototype.find` method
|
|
1367
|
-
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
1368
|
-
_export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
1369
|
-
find: function find(callbackfn /* , that = undefined */) {
|
|
1370
|
-
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1371
|
-
}
|
|
1372
|
-
});
|
|
1373
|
-
|
|
1374
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1375
|
-
addToUnscopables(FIND);
|
|
1376
|
-
|
|
1377
|
-
// `Object.prototype.toString` method implementation
|
|
1378
|
-
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
1379
|
-
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
|
1380
|
-
return '[object ' + classof(this) + ']';
|
|
1381
|
-
};
|
|
1382
|
-
|
|
1383
|
-
// `Object.prototype.toString` method
|
|
1384
|
-
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
1385
|
-
if (!toStringTagSupport) {
|
|
1386
|
-
defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
var String$1 = global_1.String;
|
|
1390
|
-
|
|
1391
|
-
var toString_1 = function (argument) {
|
|
1392
|
-
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1393
|
-
return String$1(argument);
|
|
1394
|
-
};
|
|
1395
|
-
|
|
1396
|
-
// `RegExp.prototype.flags` getter implementation
|
|
1397
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1398
|
-
var regexpFlags = function () {
|
|
1399
|
-
var that = anObject(this);
|
|
1400
|
-
var result = '';
|
|
1401
|
-
if (that.hasIndices) result += 'd';
|
|
1402
|
-
if (that.global) result += 'g';
|
|
1403
|
-
if (that.ignoreCase) result += 'i';
|
|
1404
|
-
if (that.multiline) result += 'm';
|
|
1405
|
-
if (that.dotAll) result += 's';
|
|
1406
|
-
if (that.unicode) result += 'u';
|
|
1407
|
-
if (that.sticky) result += 'y';
|
|
1408
|
-
return result;
|
|
1409
|
-
};
|
|
1410
|
-
|
|
1411
|
-
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1412
|
-
var $RegExp$2 = global_1.RegExp;
|
|
1413
|
-
|
|
1414
|
-
var UNSUPPORTED_Y$2 = fails(function () {
|
|
1415
|
-
var re = $RegExp$2('a', 'y');
|
|
1416
|
-
re.lastIndex = 2;
|
|
1417
|
-
return re.exec('abcd') != null;
|
|
1418
|
-
});
|
|
1419
|
-
|
|
1420
|
-
// UC Browser bug
|
|
1421
|
-
// https://github.com/zloirock/core-js/issues/1008
|
|
1422
|
-
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails(function () {
|
|
1423
|
-
return !$RegExp$2('a', 'y').sticky;
|
|
1424
|
-
});
|
|
1399
|
+
// Check for document.domain and active x support
|
|
1400
|
+
// No need to use active x approach when document.domain is not set
|
|
1401
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1402
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1403
|
+
// avoid IE GC bug
|
|
1404
|
+
var activeXDocument;
|
|
1405
|
+
var NullProtoObject = function () {
|
|
1406
|
+
try {
|
|
1407
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1408
|
+
} catch (error) { /* ignore */ }
|
|
1409
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1410
|
+
? document.domain && activeXDocument
|
|
1411
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1412
|
+
: NullProtoObjectViaIFrame()
|
|
1413
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1414
|
+
var length = enumBugKeys.length;
|
|
1415
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1416
|
+
return NullProtoObject();
|
|
1417
|
+
};
|
|
1425
1418
|
|
|
1426
|
-
|
|
1427
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1428
|
-
var re = $RegExp$2('^r', 'gy');
|
|
1429
|
-
re.lastIndex = 2;
|
|
1430
|
-
return re.exec('str') != null;
|
|
1431
|
-
});
|
|
1419
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1432
1420
|
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1421
|
+
// `Object.create` method
|
|
1422
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1423
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
1424
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
1425
|
+
var result;
|
|
1426
|
+
if (O !== null) {
|
|
1427
|
+
EmptyConstructor[PROTOTYPE] = anObject$4(O);
|
|
1428
|
+
result = new EmptyConstructor();
|
|
1429
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
1430
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1431
|
+
result[IE_PROTO] = O;
|
|
1432
|
+
} else result = NullProtoObject();
|
|
1433
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1437
1434
|
};
|
|
1438
1435
|
|
|
1436
|
+
var fails$9 = fails$j;
|
|
1437
|
+
var global$9 = global$x;
|
|
1438
|
+
|
|
1439
1439
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1440
|
-
var $RegExp$1 =
|
|
1440
|
+
var $RegExp$1 = global$9.RegExp;
|
|
1441
1441
|
|
|
1442
|
-
var regexpUnsupportedDotAll = fails(function () {
|
|
1442
|
+
var regexpUnsupportedDotAll = fails$9(function () {
|
|
1443
1443
|
var re = $RegExp$1('.', 's');
|
|
1444
1444
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1445
1445
|
});
|
|
1446
1446
|
|
|
1447
|
+
var fails$8 = fails$j;
|
|
1448
|
+
var global$8 = global$x;
|
|
1449
|
+
|
|
1447
1450
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1448
|
-
var $RegExp =
|
|
1451
|
+
var $RegExp = global$8.RegExp;
|
|
1449
1452
|
|
|
1450
|
-
var regexpUnsupportedNcg = fails(function () {
|
|
1453
|
+
var regexpUnsupportedNcg = fails$8(function () {
|
|
1451
1454
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1452
1455
|
return re.exec('b').groups.a !== 'b' ||
|
|
1453
1456
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1455,58 +1458,58 @@
|
|
|
1455
1458
|
|
|
1456
1459
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1457
1460
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1461
|
+
var call$5 = functionCall;
|
|
1462
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1463
|
+
var toString$4 = toString$5;
|
|
1464
|
+
var regexpFlags = regexpFlags$1;
|
|
1465
|
+
var stickyHelpers$1 = regexpStickyHelpers;
|
|
1466
|
+
var shared = shared$4.exports;
|
|
1467
|
+
var create$1 = objectCreate;
|
|
1465
1468
|
var getInternalState = internalState.get;
|
|
1466
|
-
|
|
1467
|
-
|
|
1469
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
1470
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
1468
1471
|
|
|
1469
1472
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1470
1473
|
var nativeExec = RegExp.prototype.exec;
|
|
1471
1474
|
var patchedExec = nativeExec;
|
|
1472
|
-
var charAt$3 =
|
|
1473
|
-
var indexOf =
|
|
1474
|
-
var replace$1 =
|
|
1475
|
-
var stringSlice$4 =
|
|
1475
|
+
var charAt$3 = uncurryThis$b(''.charAt);
|
|
1476
|
+
var indexOf = uncurryThis$b(''.indexOf);
|
|
1477
|
+
var replace$1 = uncurryThis$b(''.replace);
|
|
1478
|
+
var stringSlice$4 = uncurryThis$b(''.slice);
|
|
1476
1479
|
|
|
1477
1480
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1478
1481
|
var re1 = /a/;
|
|
1479
1482
|
var re2 = /b*/g;
|
|
1480
|
-
|
|
1481
|
-
|
|
1483
|
+
call$5(nativeExec, re1, 'a');
|
|
1484
|
+
call$5(nativeExec, re2, 'a');
|
|
1482
1485
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1483
1486
|
})();
|
|
1484
1487
|
|
|
1485
|
-
var UNSUPPORTED_Y$1 =
|
|
1488
|
+
var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
|
|
1486
1489
|
|
|
1487
1490
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
1488
1491
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
1489
1492
|
|
|
1490
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 ||
|
|
1493
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
1491
1494
|
|
|
1492
1495
|
if (PATCH) {
|
|
1493
1496
|
patchedExec = function exec(string) {
|
|
1494
1497
|
var re = this;
|
|
1495
1498
|
var state = getInternalState(re);
|
|
1496
|
-
var str =
|
|
1499
|
+
var str = toString$4(string);
|
|
1497
1500
|
var raw = state.raw;
|
|
1498
1501
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
1499
1502
|
|
|
1500
1503
|
if (raw) {
|
|
1501
1504
|
raw.lastIndex = re.lastIndex;
|
|
1502
|
-
result =
|
|
1505
|
+
result = call$5(patchedExec, raw, str);
|
|
1503
1506
|
re.lastIndex = raw.lastIndex;
|
|
1504
1507
|
return result;
|
|
1505
1508
|
}
|
|
1506
1509
|
|
|
1507
1510
|
var groups = state.groups;
|
|
1508
1511
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
1509
|
-
var flags =
|
|
1512
|
+
var flags = call$5(regexpFlags, re);
|
|
1510
1513
|
var source = re.source;
|
|
1511
1514
|
var charsAdded = 0;
|
|
1512
1515
|
var strCopy = str;
|
|
@@ -1534,7 +1537,7 @@
|
|
|
1534
1537
|
}
|
|
1535
1538
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1536
1539
|
|
|
1537
|
-
match =
|
|
1540
|
+
match = call$5(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1538
1541
|
|
|
1539
1542
|
if (sticky) {
|
|
1540
1543
|
if (match) {
|
|
@@ -1549,7 +1552,7 @@
|
|
|
1549
1552
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1550
1553
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1551
1554
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
1552
|
-
|
|
1555
|
+
call$5(nativeReplace, match[0], reCopy, function () {
|
|
1553
1556
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1554
1557
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1555
1558
|
}
|
|
@@ -1557,7 +1560,7 @@
|
|
|
1557
1560
|
}
|
|
1558
1561
|
|
|
1559
1562
|
if (match && groups) {
|
|
1560
|
-
match.groups = object =
|
|
1563
|
+
match.groups = object = create$1(null);
|
|
1561
1564
|
for (i = 0; i < groups.length; i++) {
|
|
1562
1565
|
group = groups[i];
|
|
1563
1566
|
object[group[0]] = match[group[1]];
|
|
@@ -1568,46 +1571,51 @@
|
|
|
1568
1571
|
};
|
|
1569
1572
|
}
|
|
1570
1573
|
|
|
1571
|
-
var regexpExec = patchedExec;
|
|
1574
|
+
var regexpExec$3 = patchedExec;
|
|
1575
|
+
|
|
1576
|
+
var $$6 = _export;
|
|
1577
|
+
var exec$2 = regexpExec$3;
|
|
1572
1578
|
|
|
1573
1579
|
// `RegExp.prototype.exec` method
|
|
1574
1580
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1575
|
-
|
|
1576
|
-
exec:
|
|
1581
|
+
$$6({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
|
|
1582
|
+
exec: exec$2
|
|
1577
1583
|
});
|
|
1578
1584
|
|
|
1585
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
1586
|
+
|
|
1579
1587
|
var FunctionPrototype = Function.prototype;
|
|
1580
|
-
var apply = FunctionPrototype.apply;
|
|
1581
|
-
var call = FunctionPrototype.call;
|
|
1588
|
+
var apply$2 = FunctionPrototype.apply;
|
|
1589
|
+
var call$4 = FunctionPrototype.call;
|
|
1582
1590
|
|
|
1583
1591
|
// eslint-disable-next-line es-x/no-reflect -- safe
|
|
1584
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (
|
|
1585
|
-
return call.apply(apply, arguments);
|
|
1592
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$4.bind(apply$2) : function () {
|
|
1593
|
+
return call$4.apply(apply$2, arguments);
|
|
1586
1594
|
});
|
|
1587
1595
|
|
|
1588
1596
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1589
1597
|
|
|
1598
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1599
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1600
|
+
var regexpExec$2 = regexpExec$3;
|
|
1601
|
+
var fails$7 = fails$j;
|
|
1602
|
+
var wellKnownSymbol$8 = wellKnownSymbol$c;
|
|
1603
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1590
1604
|
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
var SPECIES$3 = wellKnownSymbol('species');
|
|
1605
|
+
var SPECIES$4 = wellKnownSymbol$8('species');
|
|
1598
1606
|
var RegExpPrototype = RegExp.prototype;
|
|
1599
1607
|
|
|
1600
1608
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1601
|
-
var SYMBOL = wellKnownSymbol(KEY);
|
|
1609
|
+
var SYMBOL = wellKnownSymbol$8(KEY);
|
|
1602
1610
|
|
|
1603
|
-
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
1611
|
+
var DELEGATES_TO_SYMBOL = !fails$7(function () {
|
|
1604
1612
|
// String methods call symbol-named RegEp methods
|
|
1605
1613
|
var O = {};
|
|
1606
1614
|
O[SYMBOL] = function () { return 7; };
|
|
1607
1615
|
return ''[KEY](O) != 7;
|
|
1608
1616
|
});
|
|
1609
1617
|
|
|
1610
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
|
1618
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
|
|
1611
1619
|
// Symbol-named RegExp methods call .exec
|
|
1612
1620
|
var execCalled = false;
|
|
1613
1621
|
var re = /a/;
|
|
@@ -1620,7 +1628,7 @@
|
|
|
1620
1628
|
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
1621
1629
|
// a new one. We need to return the patched regex when creating the new one.
|
|
1622
1630
|
re.constructor = {};
|
|
1623
|
-
re.constructor[SPECIES$
|
|
1631
|
+
re.constructor[SPECIES$4] = function () { return re; };
|
|
1624
1632
|
re.flags = '';
|
|
1625
1633
|
re[SYMBOL] = /./[SYMBOL];
|
|
1626
1634
|
}
|
|
@@ -1636,11 +1644,11 @@
|
|
|
1636
1644
|
!DELEGATES_TO_EXEC ||
|
|
1637
1645
|
FORCED
|
|
1638
1646
|
) {
|
|
1639
|
-
var uncurriedNativeRegExpMethod =
|
|
1647
|
+
var uncurriedNativeRegExpMethod = uncurryThis$a(/./[SYMBOL]);
|
|
1640
1648
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
1641
|
-
var uncurriedNativeMethod =
|
|
1649
|
+
var uncurriedNativeMethod = uncurryThis$a(nativeMethod);
|
|
1642
1650
|
var $exec = regexp.exec;
|
|
1643
|
-
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
|
1651
|
+
if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) {
|
|
1644
1652
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
1645
1653
|
// The native String method already delegates to @@method (this
|
|
1646
1654
|
// polyfilled function), leasing to infinite recursion.
|
|
@@ -1652,48 +1660,118 @@
|
|
|
1652
1660
|
return { done: false };
|
|
1653
1661
|
});
|
|
1654
1662
|
|
|
1655
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
1656
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
1663
|
+
defineBuiltIn$1(String.prototype, KEY, methods[0]);
|
|
1664
|
+
defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]);
|
|
1657
1665
|
}
|
|
1658
1666
|
|
|
1659
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
1667
|
+
if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true);
|
|
1660
1668
|
};
|
|
1661
1669
|
|
|
1662
|
-
var
|
|
1670
|
+
var isObject$3 = isObject$9;
|
|
1671
|
+
var classof$4 = classofRaw$1;
|
|
1672
|
+
var wellKnownSymbol$7 = wellKnownSymbol$c;
|
|
1673
|
+
|
|
1674
|
+
var MATCH = wellKnownSymbol$7('match');
|
|
1663
1675
|
|
|
1664
1676
|
// `IsRegExp` abstract operation
|
|
1665
1677
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
1666
1678
|
var isRegexp = function (it) {
|
|
1667
1679
|
var isRegExp;
|
|
1668
|
-
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp :
|
|
1680
|
+
return isObject$3(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp');
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1684
|
+
var fails$6 = fails$j;
|
|
1685
|
+
var isCallable$2 = isCallable$e;
|
|
1686
|
+
var classof$3 = classof$6;
|
|
1687
|
+
var getBuiltIn = getBuiltIn$5;
|
|
1688
|
+
var inspectSource = inspectSource$3;
|
|
1689
|
+
|
|
1690
|
+
var noop = function () { /* empty */ };
|
|
1691
|
+
var empty = [];
|
|
1692
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
|
1693
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1694
|
+
var exec$1 = uncurryThis$9(constructorRegExp.exec);
|
|
1695
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1696
|
+
|
|
1697
|
+
var isConstructorModern = function isConstructor(argument) {
|
|
1698
|
+
if (!isCallable$2(argument)) return false;
|
|
1699
|
+
try {
|
|
1700
|
+
construct(noop, empty, argument);
|
|
1701
|
+
return true;
|
|
1702
|
+
} catch (error) {
|
|
1703
|
+
return false;
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
|
1708
|
+
if (!isCallable$2(argument)) return false;
|
|
1709
|
+
switch (classof$3(argument)) {
|
|
1710
|
+
case 'AsyncFunction':
|
|
1711
|
+
case 'GeneratorFunction':
|
|
1712
|
+
case 'AsyncGeneratorFunction': return false;
|
|
1713
|
+
}
|
|
1714
|
+
try {
|
|
1715
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1716
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1717
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
|
1718
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
|
|
1719
|
+
} catch (error) {
|
|
1720
|
+
return true;
|
|
1721
|
+
}
|
|
1669
1722
|
};
|
|
1670
1723
|
|
|
1671
|
-
|
|
1724
|
+
isConstructorLegacy.sham = true;
|
|
1725
|
+
|
|
1726
|
+
// `IsConstructor` abstract operation
|
|
1727
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1728
|
+
var isConstructor$3 = !construct || fails$6(function () {
|
|
1729
|
+
var called;
|
|
1730
|
+
return isConstructorModern(isConstructorModern.call)
|
|
1731
|
+
|| !isConstructorModern(Object)
|
|
1732
|
+
|| !isConstructorModern(function () { called = true; })
|
|
1733
|
+
|| called;
|
|
1734
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
1735
|
+
|
|
1736
|
+
var global$7 = global$x;
|
|
1737
|
+
var isConstructor$2 = isConstructor$3;
|
|
1738
|
+
var tryToString = tryToString$2;
|
|
1739
|
+
|
|
1740
|
+
var TypeError$3 = global$7.TypeError;
|
|
1672
1741
|
|
|
1673
1742
|
// `Assert: IsConstructor(argument) is true`
|
|
1674
|
-
var aConstructor = function (argument) {
|
|
1675
|
-
if (isConstructor(argument)) return argument;
|
|
1743
|
+
var aConstructor$1 = function (argument) {
|
|
1744
|
+
if (isConstructor$2(argument)) return argument;
|
|
1676
1745
|
throw TypeError$3(tryToString(argument) + ' is not a constructor');
|
|
1677
1746
|
};
|
|
1678
1747
|
|
|
1679
|
-
var
|
|
1748
|
+
var anObject$3 = anObject$9;
|
|
1749
|
+
var aConstructor = aConstructor$1;
|
|
1750
|
+
var wellKnownSymbol$6 = wellKnownSymbol$c;
|
|
1751
|
+
|
|
1752
|
+
var SPECIES$3 = wellKnownSymbol$6('species');
|
|
1680
1753
|
|
|
1681
1754
|
// `SpeciesConstructor` abstract operation
|
|
1682
1755
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
1683
|
-
var speciesConstructor = function (O, defaultConstructor) {
|
|
1684
|
-
var C = anObject(O).constructor;
|
|
1756
|
+
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
1757
|
+
var C = anObject$3(O).constructor;
|
|
1685
1758
|
var S;
|
|
1686
|
-
return C === undefined || (S = anObject(C)[SPECIES$
|
|
1759
|
+
return C === undefined || (S = anObject$3(C)[SPECIES$3]) == undefined ? defaultConstructor : aConstructor(S);
|
|
1687
1760
|
};
|
|
1688
1761
|
|
|
1689
|
-
var
|
|
1690
|
-
var
|
|
1691
|
-
var
|
|
1762
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1763
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
1764
|
+
var toString$3 = toString$5;
|
|
1765
|
+
var requireObjectCoercible$2 = requireObjectCoercible$5;
|
|
1766
|
+
|
|
1767
|
+
var charAt$2 = uncurryThis$8(''.charAt);
|
|
1768
|
+
var charCodeAt = uncurryThis$8(''.charCodeAt);
|
|
1769
|
+
var stringSlice$3 = uncurryThis$8(''.slice);
|
|
1692
1770
|
|
|
1693
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
1771
|
+
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
1694
1772
|
return function ($this, pos) {
|
|
1695
|
-
var S =
|
|
1696
|
-
var position = toIntegerOrInfinity(pos);
|
|
1773
|
+
var S = toString$3(requireObjectCoercible$2($this));
|
|
1774
|
+
var position = toIntegerOrInfinity$1(pos);
|
|
1697
1775
|
var size = S.length;
|
|
1698
1776
|
var first, second;
|
|
1699
1777
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
@@ -1712,65 +1790,99 @@
|
|
|
1712
1790
|
var stringMultibyte = {
|
|
1713
1791
|
// `String.prototype.codePointAt` method
|
|
1714
1792
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
1715
|
-
codeAt: createMethod(false),
|
|
1793
|
+
codeAt: createMethod$1(false),
|
|
1716
1794
|
// `String.prototype.at` method
|
|
1717
1795
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
1718
|
-
charAt: createMethod(true)
|
|
1796
|
+
charAt: createMethod$1(true)
|
|
1719
1797
|
};
|
|
1720
1798
|
|
|
1721
1799
|
var charAt$1 = stringMultibyte.charAt;
|
|
1722
1800
|
|
|
1723
1801
|
// `AdvanceStringIndex` abstract operation
|
|
1724
1802
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
1725
|
-
var advanceStringIndex = function (S, index, unicode) {
|
|
1803
|
+
var advanceStringIndex$2 = function (S, index, unicode) {
|
|
1726
1804
|
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
1727
1805
|
};
|
|
1728
1806
|
|
|
1729
|
-
var
|
|
1807
|
+
var toPropertyKey = toPropertyKey$3;
|
|
1808
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1809
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1810
|
+
|
|
1811
|
+
var createProperty$3 = function (object, key, value) {
|
|
1730
1812
|
var propertyKey = toPropertyKey(key);
|
|
1731
|
-
if (propertyKey in object)
|
|
1813
|
+
if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
1732
1814
|
else object[propertyKey] = value;
|
|
1733
1815
|
};
|
|
1734
1816
|
|
|
1735
|
-
var
|
|
1817
|
+
var global$6 = global$x;
|
|
1818
|
+
var toAbsoluteIndex$1 = toAbsoluteIndex$3;
|
|
1819
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
1820
|
+
var createProperty$2 = createProperty$3;
|
|
1821
|
+
|
|
1822
|
+
var Array$3 = global$6.Array;
|
|
1736
1823
|
var max$2 = Math.max;
|
|
1737
1824
|
|
|
1738
1825
|
var arraySliceSimple = function (O, start, end) {
|
|
1739
|
-
var length = lengthOfArrayLike(O);
|
|
1740
|
-
var k = toAbsoluteIndex(start, length);
|
|
1741
|
-
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
1742
|
-
var result = Array$
|
|
1743
|
-
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
|
1826
|
+
var length = lengthOfArrayLike$3(O);
|
|
1827
|
+
var k = toAbsoluteIndex$1(start, length);
|
|
1828
|
+
var fin = toAbsoluteIndex$1(end === undefined ? length : end, length);
|
|
1829
|
+
var result = Array$3(max$2(fin - k, 0));
|
|
1830
|
+
for (var n = 0; k < fin; k++, n++) createProperty$2(result, n, O[k]);
|
|
1744
1831
|
result.length = n;
|
|
1745
1832
|
return result;
|
|
1746
1833
|
};
|
|
1747
1834
|
|
|
1748
|
-
var
|
|
1835
|
+
var global$5 = global$x;
|
|
1836
|
+
var call$3 = functionCall;
|
|
1837
|
+
var anObject$2 = anObject$9;
|
|
1838
|
+
var isCallable$1 = isCallable$e;
|
|
1839
|
+
var classof$2 = classofRaw$1;
|
|
1840
|
+
var regexpExec$1 = regexpExec$3;
|
|
1841
|
+
|
|
1842
|
+
var TypeError$2 = global$5.TypeError;
|
|
1749
1843
|
|
|
1750
1844
|
// `RegExpExec` abstract operation
|
|
1751
1845
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
1752
1846
|
var regexpExecAbstract = function (R, S) {
|
|
1753
1847
|
var exec = R.exec;
|
|
1754
|
-
if (isCallable(exec)) {
|
|
1755
|
-
var result =
|
|
1756
|
-
if (result !== null) anObject(result);
|
|
1848
|
+
if (isCallable$1(exec)) {
|
|
1849
|
+
var result = call$3(exec, R, S);
|
|
1850
|
+
if (result !== null) anObject$2(result);
|
|
1757
1851
|
return result;
|
|
1758
1852
|
}
|
|
1759
|
-
if (
|
|
1853
|
+
if (classof$2(R) === 'RegExp') return call$3(regexpExec$1, R, S);
|
|
1760
1854
|
throw TypeError$2('RegExp#exec called on incompatible receiver');
|
|
1761
1855
|
};
|
|
1762
1856
|
|
|
1763
|
-
var
|
|
1857
|
+
var apply$1 = functionApply;
|
|
1858
|
+
var call$2 = functionCall;
|
|
1859
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1860
|
+
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
1861
|
+
var isRegExp = isRegexp;
|
|
1862
|
+
var anObject$1 = anObject$9;
|
|
1863
|
+
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
1864
|
+
var speciesConstructor = speciesConstructor$1;
|
|
1865
|
+
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
1866
|
+
var toLength$1 = toLength$3;
|
|
1867
|
+
var toString$2 = toString$5;
|
|
1868
|
+
var getMethod$1 = getMethod$3;
|
|
1869
|
+
var arraySlice$1 = arraySliceSimple;
|
|
1870
|
+
var callRegExpExec = regexpExecAbstract;
|
|
1871
|
+
var regexpExec = regexpExec$3;
|
|
1872
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
1873
|
+
var fails$5 = fails$j;
|
|
1874
|
+
|
|
1875
|
+
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
1764
1876
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
1765
1877
|
var min$1 = Math.min;
|
|
1766
1878
|
var $push = [].push;
|
|
1767
|
-
var exec =
|
|
1768
|
-
var push$
|
|
1769
|
-
var stringSlice$2 =
|
|
1879
|
+
var exec = uncurryThis$7(/./.exec);
|
|
1880
|
+
var push$2 = uncurryThis$7($push);
|
|
1881
|
+
var stringSlice$2 = uncurryThis$7(''.slice);
|
|
1770
1882
|
|
|
1771
1883
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
1772
1884
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
1773
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
1885
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$5(function () {
|
|
1774
1886
|
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
1775
1887
|
var re = /(?:)/;
|
|
1776
1888
|
var originalExec = re.exec;
|
|
@@ -1780,7 +1892,7 @@
|
|
|
1780
1892
|
});
|
|
1781
1893
|
|
|
1782
1894
|
// @@split logic
|
|
1783
|
-
|
|
1895
|
+
fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
1784
1896
|
var internalSplit;
|
|
1785
1897
|
if (
|
|
1786
1898
|
'abbc'.split(/(b)*/)[1] == 'c' ||
|
|
@@ -1794,13 +1906,13 @@
|
|
|
1794
1906
|
) {
|
|
1795
1907
|
// based on es5-shim implementation, need to rework it
|
|
1796
1908
|
internalSplit = function (separator, limit) {
|
|
1797
|
-
var string =
|
|
1909
|
+
var string = toString$2(requireObjectCoercible$1(this));
|
|
1798
1910
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
1799
1911
|
if (lim === 0) return [];
|
|
1800
1912
|
if (separator === undefined) return [string];
|
|
1801
1913
|
// If `separator` is not a regex, use native split
|
|
1802
|
-
if (!
|
|
1803
|
-
return
|
|
1914
|
+
if (!isRegExp(separator)) {
|
|
1915
|
+
return call$2(nativeSplit, string, separator, lim);
|
|
1804
1916
|
}
|
|
1805
1917
|
var output = [];
|
|
1806
1918
|
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
@@ -1811,11 +1923,11 @@
|
|
|
1811
1923
|
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
1812
1924
|
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
1813
1925
|
var match, lastIndex, lastLength;
|
|
1814
|
-
while (match =
|
|
1926
|
+
while (match = call$2(regexpExec, separatorCopy, string)) {
|
|
1815
1927
|
lastIndex = separatorCopy.lastIndex;
|
|
1816
1928
|
if (lastIndex > lastLastIndex) {
|
|
1817
|
-
push$
|
|
1818
|
-
if (match.length > 1 && match.index < string.length)
|
|
1929
|
+
push$2(output, stringSlice$2(string, lastLastIndex, match.index));
|
|
1930
|
+
if (match.length > 1 && match.index < string.length) apply$1($push, output, arraySlice$1(match, 1));
|
|
1819
1931
|
lastLength = match[0].length;
|
|
1820
1932
|
lastLastIndex = lastIndex;
|
|
1821
1933
|
if (output.length >= lim) break;
|
|
@@ -1823,14 +1935,14 @@
|
|
|
1823
1935
|
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
1824
1936
|
}
|
|
1825
1937
|
if (lastLastIndex === string.length) {
|
|
1826
|
-
if (lastLength || !exec(separatorCopy, '')) push$
|
|
1827
|
-
} else push$
|
|
1828
|
-
return output.length > lim ?
|
|
1938
|
+
if (lastLength || !exec(separatorCopy, '')) push$2(output, '');
|
|
1939
|
+
} else push$2(output, stringSlice$2(string, lastLastIndex));
|
|
1940
|
+
return output.length > lim ? arraySlice$1(output, 0, lim) : output;
|
|
1829
1941
|
};
|
|
1830
1942
|
// Chakra, V8
|
|
1831
1943
|
} else if ('0'.split(undefined, 0).length) {
|
|
1832
1944
|
internalSplit = function (separator, limit) {
|
|
1833
|
-
return separator === undefined && limit === 0 ? [] :
|
|
1945
|
+
return separator === undefined && limit === 0 ? [] : call$2(nativeSplit, this, separator, limit);
|
|
1834
1946
|
};
|
|
1835
1947
|
} else internalSplit = nativeSplit;
|
|
1836
1948
|
|
|
@@ -1838,11 +1950,11 @@
|
|
|
1838
1950
|
// `String.prototype.split` method
|
|
1839
1951
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1840
1952
|
function split(separator, limit) {
|
|
1841
|
-
var O = requireObjectCoercible(this);
|
|
1842
|
-
var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
|
|
1953
|
+
var O = requireObjectCoercible$1(this);
|
|
1954
|
+
var splitter = separator == undefined ? undefined : getMethod$1(separator, SPLIT);
|
|
1843
1955
|
return splitter
|
|
1844
|
-
?
|
|
1845
|
-
:
|
|
1956
|
+
? call$2(splitter, separator, O, limit)
|
|
1957
|
+
: call$2(internalSplit, toString$2(O), separator, limit);
|
|
1846
1958
|
},
|
|
1847
1959
|
// `RegExp.prototype[@@split]` method
|
|
1848
1960
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1850,8 +1962,8 @@
|
|
|
1850
1962
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
1851
1963
|
// the 'y' flag.
|
|
1852
1964
|
function (string, limit) {
|
|
1853
|
-
var rx = anObject(this);
|
|
1854
|
-
var S =
|
|
1965
|
+
var rx = anObject$1(this);
|
|
1966
|
+
var S = toString$2(string);
|
|
1855
1967
|
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
1856
1968
|
|
|
1857
1969
|
if (res.done) return res.value;
|
|
@@ -1869,50 +1981,53 @@
|
|
|
1869
1981
|
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
1870
1982
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
1871
1983
|
if (lim === 0) return [];
|
|
1872
|
-
if (S.length === 0) return
|
|
1984
|
+
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
|
1873
1985
|
var p = 0;
|
|
1874
1986
|
var q = 0;
|
|
1875
1987
|
var A = [];
|
|
1876
1988
|
while (q < S.length) {
|
|
1877
1989
|
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
1878
|
-
var z =
|
|
1990
|
+
var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S);
|
|
1879
1991
|
var e;
|
|
1880
1992
|
if (
|
|
1881
1993
|
z === null ||
|
|
1882
|
-
(e = min$1(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
1994
|
+
(e = min$1(toLength$1(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
1883
1995
|
) {
|
|
1884
|
-
q = advanceStringIndex(S, q, unicodeMatching);
|
|
1996
|
+
q = advanceStringIndex$1(S, q, unicodeMatching);
|
|
1885
1997
|
} else {
|
|
1886
|
-
push$
|
|
1998
|
+
push$2(A, stringSlice$2(S, p, q));
|
|
1887
1999
|
if (A.length === lim) return A;
|
|
1888
2000
|
for (var i = 1; i <= z.length - 1; i++) {
|
|
1889
|
-
push$
|
|
2001
|
+
push$2(A, z[i]);
|
|
1890
2002
|
if (A.length === lim) return A;
|
|
1891
2003
|
}
|
|
1892
2004
|
q = p = e;
|
|
1893
2005
|
}
|
|
1894
2006
|
}
|
|
1895
|
-
push$
|
|
2007
|
+
push$2(A, stringSlice$2(S, p));
|
|
1896
2008
|
return A;
|
|
1897
2009
|
}
|
|
1898
2010
|
];
|
|
1899
2011
|
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
1900
2012
|
|
|
2013
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
2014
|
+
var toObject$3 = toObject$5;
|
|
2015
|
+
|
|
1901
2016
|
var floor = Math.floor;
|
|
1902
|
-
var charAt =
|
|
1903
|
-
var replace =
|
|
1904
|
-
var stringSlice$1 =
|
|
2017
|
+
var charAt = uncurryThis$6(''.charAt);
|
|
2018
|
+
var replace = uncurryThis$6(''.replace);
|
|
2019
|
+
var stringSlice$1 = uncurryThis$6(''.slice);
|
|
1905
2020
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
1906
2021
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
1907
2022
|
|
|
1908
2023
|
// `GetSubstitution` abstract operation
|
|
1909
2024
|
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
1910
|
-
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
2025
|
+
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
1911
2026
|
var tailPos = position + matched.length;
|
|
1912
2027
|
var m = captures.length;
|
|
1913
2028
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
1914
2029
|
if (namedCaptures !== undefined) {
|
|
1915
|
-
namedCaptures = toObject(namedCaptures);
|
|
2030
|
+
namedCaptures = toObject$3(namedCaptures);
|
|
1916
2031
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
1917
2032
|
}
|
|
1918
2033
|
return replace(replacement, symbols, function (match, ch) {
|
|
@@ -1940,13 +2055,30 @@
|
|
|
1940
2055
|
});
|
|
1941
2056
|
};
|
|
1942
2057
|
|
|
1943
|
-
var
|
|
2058
|
+
var apply = functionApply;
|
|
2059
|
+
var call$1 = functionCall;
|
|
2060
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
2061
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2062
|
+
var fails$4 = fails$j;
|
|
2063
|
+
var anObject = anObject$9;
|
|
2064
|
+
var isCallable = isCallable$e;
|
|
2065
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
2066
|
+
var toLength = toLength$3;
|
|
2067
|
+
var toString$1 = toString$5;
|
|
2068
|
+
var requireObjectCoercible = requireObjectCoercible$5;
|
|
2069
|
+
var advanceStringIndex = advanceStringIndex$2;
|
|
2070
|
+
var getMethod = getMethod$3;
|
|
2071
|
+
var getSubstitution = getSubstitution$1;
|
|
2072
|
+
var regExpExec = regexpExecAbstract;
|
|
2073
|
+
var wellKnownSymbol$5 = wellKnownSymbol$c;
|
|
2074
|
+
|
|
2075
|
+
var REPLACE = wellKnownSymbol$5('replace');
|
|
1944
2076
|
var max$1 = Math.max;
|
|
1945
2077
|
var min = Math.min;
|
|
1946
|
-
var concat$1 =
|
|
1947
|
-
var push =
|
|
1948
|
-
var stringIndexOf =
|
|
1949
|
-
var stringSlice =
|
|
2078
|
+
var concat$1 = uncurryThis$5([].concat);
|
|
2079
|
+
var push$1 = uncurryThis$5([].push);
|
|
2080
|
+
var stringIndexOf = uncurryThis$5(''.indexOf);
|
|
2081
|
+
var stringSlice = uncurryThis$5(''.slice);
|
|
1950
2082
|
|
|
1951
2083
|
var maybeToString = function (it) {
|
|
1952
2084
|
return it === undefined ? it : String(it);
|
|
@@ -1967,7 +2099,7 @@
|
|
|
1967
2099
|
return false;
|
|
1968
2100
|
})();
|
|
1969
2101
|
|
|
1970
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
2102
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$4(function () {
|
|
1971
2103
|
var re = /./;
|
|
1972
2104
|
re.exec = function () {
|
|
1973
2105
|
var result = [];
|
|
@@ -1979,7 +2111,7 @@
|
|
|
1979
2111
|
});
|
|
1980
2112
|
|
|
1981
2113
|
// @@replace logic
|
|
1982
|
-
|
|
2114
|
+
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
1983
2115
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
1984
2116
|
|
|
1985
2117
|
return [
|
|
@@ -1989,14 +2121,14 @@
|
|
|
1989
2121
|
var O = requireObjectCoercible(this);
|
|
1990
2122
|
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
1991
2123
|
return replacer
|
|
1992
|
-
?
|
|
1993
|
-
:
|
|
2124
|
+
? call$1(replacer, searchValue, O, replaceValue)
|
|
2125
|
+
: call$1(nativeReplace, toString$1(O), searchValue, replaceValue);
|
|
1994
2126
|
},
|
|
1995
2127
|
// `RegExp.prototype[@@replace]` method
|
|
1996
2128
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1997
2129
|
function (string, replaceValue) {
|
|
1998
2130
|
var rx = anObject(this);
|
|
1999
|
-
var S =
|
|
2131
|
+
var S = toString$1(string);
|
|
2000
2132
|
|
|
2001
2133
|
if (
|
|
2002
2134
|
typeof replaceValue == 'string' &&
|
|
@@ -2008,7 +2140,7 @@
|
|
|
2008
2140
|
}
|
|
2009
2141
|
|
|
2010
2142
|
var functionalReplace = isCallable(replaceValue);
|
|
2011
|
-
if (!functionalReplace) replaceValue =
|
|
2143
|
+
if (!functionalReplace) replaceValue = toString$1(replaceValue);
|
|
2012
2144
|
|
|
2013
2145
|
var global = rx.global;
|
|
2014
2146
|
if (global) {
|
|
@@ -2017,13 +2149,13 @@
|
|
|
2017
2149
|
}
|
|
2018
2150
|
var results = [];
|
|
2019
2151
|
while (true) {
|
|
2020
|
-
var result =
|
|
2152
|
+
var result = regExpExec(rx, S);
|
|
2021
2153
|
if (result === null) break;
|
|
2022
2154
|
|
|
2023
|
-
push(results, result);
|
|
2155
|
+
push$1(results, result);
|
|
2024
2156
|
if (!global) break;
|
|
2025
2157
|
|
|
2026
|
-
var matchStr =
|
|
2158
|
+
var matchStr = toString$1(result[0]);
|
|
2027
2159
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2028
2160
|
}
|
|
2029
2161
|
|
|
@@ -2032,7 +2164,7 @@
|
|
|
2032
2164
|
for (var i = 0; i < results.length; i++) {
|
|
2033
2165
|
result = results[i];
|
|
2034
2166
|
|
|
2035
|
-
var matched =
|
|
2167
|
+
var matched = toString$1(result[0]);
|
|
2036
2168
|
var position = max$1(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
2037
2169
|
var captures = [];
|
|
2038
2170
|
// NOTE: This is equivalent to
|
|
@@ -2040,12 +2172,12 @@
|
|
|
2040
2172
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
2041
2173
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
2042
2174
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
2043
|
-
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
2175
|
+
for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
|
|
2044
2176
|
var namedCaptures = result.groups;
|
|
2045
2177
|
if (functionalReplace) {
|
|
2046
2178
|
var replacerArgs = concat$1([matched], captures, position, S);
|
|
2047
|
-
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
2048
|
-
var replacement =
|
|
2179
|
+
if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
|
|
2180
|
+
var replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
|
|
2049
2181
|
} else {
|
|
2050
2182
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2051
2183
|
}
|
|
@@ -2059,86 +2191,306 @@
|
|
|
2059
2191
|
];
|
|
2060
2192
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
2061
2193
|
|
|
2062
|
-
var
|
|
2194
|
+
var classof$1 = classofRaw$1;
|
|
2195
|
+
|
|
2196
|
+
// `IsArray` abstract operation
|
|
2197
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
2198
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
2199
|
+
var isArray$3 = Array.isArray || function isArray(argument) {
|
|
2200
|
+
return classof$1(argument) == 'Array';
|
|
2201
|
+
};
|
|
2202
|
+
|
|
2203
|
+
var fails$3 = fails$j;
|
|
2204
|
+
var wellKnownSymbol$4 = wellKnownSymbol$c;
|
|
2205
|
+
var V8_VERSION$1 = engineV8Version;
|
|
2063
2206
|
|
|
2064
|
-
var
|
|
2207
|
+
var SPECIES$2 = wellKnownSymbol$4('species');
|
|
2208
|
+
|
|
2209
|
+
var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
|
|
2065
2210
|
// We can't use this feature detection in V8 since it causes
|
|
2066
2211
|
// deoptimization and serious performance degradation
|
|
2067
2212
|
// https://github.com/zloirock/core-js/issues/677
|
|
2068
|
-
return
|
|
2213
|
+
return V8_VERSION$1 >= 51 || !fails$3(function () {
|
|
2069
2214
|
var array = [];
|
|
2070
2215
|
var constructor = array.constructor = {};
|
|
2071
|
-
constructor[SPECIES$
|
|
2216
|
+
constructor[SPECIES$2] = function () {
|
|
2072
2217
|
return { foo: 1 };
|
|
2073
2218
|
};
|
|
2074
2219
|
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
2075
2220
|
});
|
|
2076
2221
|
};
|
|
2077
2222
|
|
|
2078
|
-
var
|
|
2223
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2224
|
+
|
|
2225
|
+
var arraySlice = uncurryThis$4([].slice);
|
|
2079
2226
|
|
|
2080
|
-
var
|
|
2227
|
+
var $$5 = _export;
|
|
2228
|
+
var global$4 = global$x;
|
|
2229
|
+
var isArray$2 = isArray$3;
|
|
2230
|
+
var isConstructor$1 = isConstructor$3;
|
|
2231
|
+
var isObject$2 = isObject$9;
|
|
2232
|
+
var toAbsoluteIndex = toAbsoluteIndex$3;
|
|
2233
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$5;
|
|
2234
|
+
var toIndexedObject$1 = toIndexedObject$6;
|
|
2235
|
+
var createProperty$1 = createProperty$3;
|
|
2236
|
+
var wellKnownSymbol$3 = wellKnownSymbol$c;
|
|
2237
|
+
var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
|
|
2238
|
+
var un$Slice = arraySlice;
|
|
2081
2239
|
|
|
2082
|
-
var
|
|
2083
|
-
|
|
2240
|
+
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$2('slice');
|
|
2241
|
+
|
|
2242
|
+
var SPECIES$1 = wellKnownSymbol$3('species');
|
|
2243
|
+
var Array$2 = global$4.Array;
|
|
2084
2244
|
var max = Math.max;
|
|
2085
2245
|
|
|
2086
2246
|
// `Array.prototype.slice` method
|
|
2087
2247
|
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
|
2088
2248
|
// fallback for not array-like ES3 strings and DOM objects
|
|
2089
|
-
|
|
2249
|
+
$$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
2090
2250
|
slice: function slice(start, end) {
|
|
2091
|
-
var O = toIndexedObject(this);
|
|
2092
|
-
var length = lengthOfArrayLike(O);
|
|
2251
|
+
var O = toIndexedObject$1(this);
|
|
2252
|
+
var length = lengthOfArrayLike$2(O);
|
|
2093
2253
|
var k = toAbsoluteIndex(start, length);
|
|
2094
2254
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
2095
2255
|
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
|
2096
2256
|
var Constructor, result, n;
|
|
2097
|
-
if (isArray(O)) {
|
|
2257
|
+
if (isArray$2(O)) {
|
|
2098
2258
|
Constructor = O.constructor;
|
|
2099
2259
|
// cross-realm fallback
|
|
2100
|
-
if (isConstructor(Constructor) && (Constructor === Array$
|
|
2260
|
+
if (isConstructor$1(Constructor) && (Constructor === Array$2 || isArray$2(Constructor.prototype))) {
|
|
2101
2261
|
Constructor = undefined;
|
|
2102
|
-
} else if (isObject(Constructor)) {
|
|
2103
|
-
Constructor = Constructor[SPECIES];
|
|
2262
|
+
} else if (isObject$2(Constructor)) {
|
|
2263
|
+
Constructor = Constructor[SPECIES$1];
|
|
2104
2264
|
if (Constructor === null) Constructor = undefined;
|
|
2105
2265
|
}
|
|
2106
|
-
if (Constructor === Array$
|
|
2107
|
-
return
|
|
2266
|
+
if (Constructor === Array$2 || Constructor === undefined) {
|
|
2267
|
+
return un$Slice(O, k, fin);
|
|
2108
2268
|
}
|
|
2109
2269
|
}
|
|
2110
|
-
result = new (Constructor === undefined ? Array$
|
|
2111
|
-
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
|
2270
|
+
result = new (Constructor === undefined ? Array$2 : Constructor)(max(fin - k, 0));
|
|
2271
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
|
|
2112
2272
|
result.length = n;
|
|
2113
2273
|
return result;
|
|
2114
2274
|
}
|
|
2115
2275
|
});
|
|
2116
2276
|
|
|
2117
|
-
var $
|
|
2277
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
2278
|
+
var aCallable = aCallable$2;
|
|
2279
|
+
var NATIVE_BIND = functionBindNative;
|
|
2280
|
+
|
|
2281
|
+
var bind$1 = uncurryThis$3(uncurryThis$3.bind);
|
|
2282
|
+
|
|
2283
|
+
// optional / simple context binding
|
|
2284
|
+
var functionBindContext = function (fn, that) {
|
|
2285
|
+
aCallable(fn);
|
|
2286
|
+
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
2287
|
+
return fn.apply(that, arguments);
|
|
2288
|
+
};
|
|
2289
|
+
};
|
|
2290
|
+
|
|
2291
|
+
var global$3 = global$x;
|
|
2292
|
+
var isArray$1 = isArray$3;
|
|
2293
|
+
var isConstructor = isConstructor$3;
|
|
2294
|
+
var isObject$1 = isObject$9;
|
|
2295
|
+
var wellKnownSymbol$2 = wellKnownSymbol$c;
|
|
2296
|
+
|
|
2297
|
+
var SPECIES = wellKnownSymbol$2('species');
|
|
2298
|
+
var Array$1 = global$3.Array;
|
|
2299
|
+
|
|
2300
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
|
2301
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
2302
|
+
var arraySpeciesConstructor$1 = function (originalArray) {
|
|
2303
|
+
var C;
|
|
2304
|
+
if (isArray$1(originalArray)) {
|
|
2305
|
+
C = originalArray.constructor;
|
|
2306
|
+
// cross-realm fallback
|
|
2307
|
+
if (isConstructor(C) && (C === Array$1 || isArray$1(C.prototype))) C = undefined;
|
|
2308
|
+
else if (isObject$1(C)) {
|
|
2309
|
+
C = C[SPECIES];
|
|
2310
|
+
if (C === null) C = undefined;
|
|
2311
|
+
}
|
|
2312
|
+
} return C === undefined ? Array$1 : C;
|
|
2313
|
+
};
|
|
2314
|
+
|
|
2315
|
+
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
2316
|
+
|
|
2317
|
+
// `ArraySpeciesCreate` abstract operation
|
|
2318
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
2319
|
+
var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
2320
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
2321
|
+
};
|
|
2322
|
+
|
|
2323
|
+
var bind = functionBindContext;
|
|
2324
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2325
|
+
var IndexedObject$2 = indexedObject;
|
|
2326
|
+
var toObject$2 = toObject$5;
|
|
2327
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$5;
|
|
2328
|
+
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
|
2329
|
+
|
|
2330
|
+
var push = uncurryThis$2([].push);
|
|
2331
|
+
|
|
2332
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
2333
|
+
var createMethod = function (TYPE) {
|
|
2334
|
+
var IS_MAP = TYPE == 1;
|
|
2335
|
+
var IS_FILTER = TYPE == 2;
|
|
2336
|
+
var IS_SOME = TYPE == 3;
|
|
2337
|
+
var IS_EVERY = TYPE == 4;
|
|
2338
|
+
var IS_FIND_INDEX = TYPE == 6;
|
|
2339
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
|
2340
|
+
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
2341
|
+
return function ($this, callbackfn, that, specificCreate) {
|
|
2342
|
+
var O = toObject$2($this);
|
|
2343
|
+
var self = IndexedObject$2(O);
|
|
2344
|
+
var boundFunction = bind(callbackfn, that);
|
|
2345
|
+
var length = lengthOfArrayLike$1(self);
|
|
2346
|
+
var index = 0;
|
|
2347
|
+
var create = specificCreate || arraySpeciesCreate$1;
|
|
2348
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
2349
|
+
var value, result;
|
|
2350
|
+
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
2351
|
+
value = self[index];
|
|
2352
|
+
result = boundFunction(value, index, O);
|
|
2353
|
+
if (TYPE) {
|
|
2354
|
+
if (IS_MAP) target[index] = result; // map
|
|
2355
|
+
else if (result) switch (TYPE) {
|
|
2356
|
+
case 3: return true; // some
|
|
2357
|
+
case 5: return value; // find
|
|
2358
|
+
case 6: return index; // findIndex
|
|
2359
|
+
case 2: push(target, value); // filter
|
|
2360
|
+
} else switch (TYPE) {
|
|
2361
|
+
case 4: return false; // every
|
|
2362
|
+
case 7: push(target, value); // filterReject
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
2367
|
+
};
|
|
2368
|
+
};
|
|
2369
|
+
|
|
2370
|
+
var arrayIteration = {
|
|
2371
|
+
// `Array.prototype.forEach` method
|
|
2372
|
+
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
2373
|
+
forEach: createMethod(0),
|
|
2374
|
+
// `Array.prototype.map` method
|
|
2375
|
+
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
2376
|
+
map: createMethod(1),
|
|
2377
|
+
// `Array.prototype.filter` method
|
|
2378
|
+
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
2379
|
+
filter: createMethod(2),
|
|
2380
|
+
// `Array.prototype.some` method
|
|
2381
|
+
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
2382
|
+
some: createMethod(3),
|
|
2383
|
+
// `Array.prototype.every` method
|
|
2384
|
+
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
2385
|
+
every: createMethod(4),
|
|
2386
|
+
// `Array.prototype.find` method
|
|
2387
|
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
2388
|
+
find: createMethod(5),
|
|
2389
|
+
// `Array.prototype.findIndex` method
|
|
2390
|
+
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
2391
|
+
findIndex: createMethod(6),
|
|
2392
|
+
// `Array.prototype.filterReject` method
|
|
2393
|
+
// https://github.com/tc39/proposal-array-filtering
|
|
2394
|
+
filterReject: createMethod(7)
|
|
2395
|
+
};
|
|
2118
2396
|
|
|
2397
|
+
var $$4 = _export;
|
|
2398
|
+
var $map = arrayIteration.map;
|
|
2399
|
+
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
|
|
2119
2400
|
|
|
2120
|
-
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
|
|
2401
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('map');
|
|
2121
2402
|
|
|
2122
2403
|
// `Array.prototype.map` method
|
|
2123
2404
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
2124
2405
|
// with adding support of @@species
|
|
2125
|
-
|
|
2406
|
+
$$4({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
2126
2407
|
map: function map(callbackfn /* , thisArg */) {
|
|
2127
2408
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
2128
2409
|
}
|
|
2129
2410
|
});
|
|
2130
2411
|
|
|
2412
|
+
var wellKnownSymbol$1 = wellKnownSymbol$c;
|
|
2413
|
+
var create = objectCreate;
|
|
2414
|
+
var definePropertyModule = objectDefineProperty;
|
|
2415
|
+
|
|
2416
|
+
var UNSCOPABLES = wellKnownSymbol$1('unscopables');
|
|
2417
|
+
var ArrayPrototype = Array.prototype;
|
|
2418
|
+
|
|
2419
|
+
// Array.prototype[@@unscopables]
|
|
2420
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2421
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
2422
|
+
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
|
2423
|
+
configurable: true,
|
|
2424
|
+
value: create(null)
|
|
2425
|
+
});
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
// add a key to Array.prototype[@@unscopables]
|
|
2429
|
+
var addToUnscopables$1 = function (key) {
|
|
2430
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
2431
|
+
};
|
|
2432
|
+
|
|
2433
|
+
var $$3 = _export;
|
|
2434
|
+
var $find = arrayIteration.find;
|
|
2435
|
+
var addToUnscopables = addToUnscopables$1;
|
|
2436
|
+
|
|
2437
|
+
var FIND = 'find';
|
|
2438
|
+
var SKIPS_HOLES = true;
|
|
2439
|
+
|
|
2440
|
+
// Shouldn't skip holes
|
|
2441
|
+
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
2442
|
+
|
|
2443
|
+
// `Array.prototype.find` method
|
|
2444
|
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
2445
|
+
$$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
2446
|
+
find: function find(callbackfn /* , that = undefined */) {
|
|
2447
|
+
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
2448
|
+
}
|
|
2449
|
+
});
|
|
2450
|
+
|
|
2451
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2452
|
+
addToUnscopables(FIND);
|
|
2453
|
+
|
|
2454
|
+
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
2455
|
+
var classof = classof$6;
|
|
2456
|
+
|
|
2457
|
+
// `Object.prototype.toString` method implementation
|
|
2458
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
2459
|
+
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
2460
|
+
return '[object ' + classof(this) + ']';
|
|
2461
|
+
};
|
|
2462
|
+
|
|
2463
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2464
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
2465
|
+
var toString = objectToString;
|
|
2466
|
+
|
|
2467
|
+
// `Object.prototype.toString` method
|
|
2468
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
2469
|
+
if (!TO_STRING_TAG_SUPPORT) {
|
|
2470
|
+
defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
var DESCRIPTORS = descriptors;
|
|
2474
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2475
|
+
var call = functionCall;
|
|
2476
|
+
var fails$2 = fails$j;
|
|
2477
|
+
var objectKeys = objectKeys$2;
|
|
2478
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2479
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
2480
|
+
var toObject$1 = toObject$5;
|
|
2481
|
+
var IndexedObject$1 = indexedObject;
|
|
2482
|
+
|
|
2131
2483
|
// eslint-disable-next-line es-x/no-object-assign -- safe
|
|
2132
2484
|
var $assign = Object.assign;
|
|
2133
2485
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
2134
2486
|
var defineProperty = Object.defineProperty;
|
|
2135
|
-
var concat =
|
|
2487
|
+
var concat = uncurryThis$1([].concat);
|
|
2136
2488
|
|
|
2137
2489
|
// `Object.assign` method
|
|
2138
2490
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2139
|
-
var objectAssign = !$assign || fails(function () {
|
|
2491
|
+
var objectAssign = !$assign || fails$2(function () {
|
|
2140
2492
|
// should have correct order of operations (Edge bug)
|
|
2141
|
-
if (
|
|
2493
|
+
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
2142
2494
|
enumerable: true,
|
|
2143
2495
|
get: function () {
|
|
2144
2496
|
defineProperty(this, 'b', {
|
|
@@ -2157,40 +2509,56 @@
|
|
|
2157
2509
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
2158
2510
|
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
|
2159
2511
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
2160
|
-
var T = toObject(target);
|
|
2512
|
+
var T = toObject$1(target);
|
|
2161
2513
|
var argumentsLength = arguments.length;
|
|
2162
2514
|
var index = 1;
|
|
2163
|
-
var getOwnPropertySymbols =
|
|
2164
|
-
var propertyIsEnumerable =
|
|
2515
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
2516
|
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
2165
2517
|
while (argumentsLength > index) {
|
|
2166
|
-
var S =
|
|
2518
|
+
var S = IndexedObject$1(arguments[index++]);
|
|
2167
2519
|
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
2168
2520
|
var length = keys.length;
|
|
2169
2521
|
var j = 0;
|
|
2170
2522
|
var key;
|
|
2171
2523
|
while (length > j) {
|
|
2172
2524
|
key = keys[j++];
|
|
2173
|
-
if (!
|
|
2525
|
+
if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
2174
2526
|
}
|
|
2175
2527
|
} return T;
|
|
2176
2528
|
} : $assign;
|
|
2177
2529
|
|
|
2530
|
+
var $$2 = _export;
|
|
2531
|
+
var assign = objectAssign;
|
|
2532
|
+
|
|
2178
2533
|
// `Object.assign` method
|
|
2179
2534
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2180
2535
|
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
|
2181
|
-
|
|
2182
|
-
assign:
|
|
2536
|
+
$$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
2537
|
+
assign: assign
|
|
2183
2538
|
});
|
|
2184
2539
|
|
|
2540
|
+
var $$1 = _export;
|
|
2541
|
+
var global$2 = global$x;
|
|
2542
|
+
var fails$1 = fails$j;
|
|
2543
|
+
var isArray = isArray$3;
|
|
2544
|
+
var isObject = isObject$9;
|
|
2545
|
+
var toObject = toObject$5;
|
|
2546
|
+
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
2547
|
+
var createProperty = createProperty$3;
|
|
2548
|
+
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
2549
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
|
|
2550
|
+
var wellKnownSymbol = wellKnownSymbol$c;
|
|
2551
|
+
var V8_VERSION = engineV8Version;
|
|
2552
|
+
|
|
2185
2553
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
|
2186
2554
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
2187
2555
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
2188
|
-
var TypeError$1 =
|
|
2556
|
+
var TypeError$1 = global$2.TypeError;
|
|
2189
2557
|
|
|
2190
2558
|
// We can't use this feature detection in V8 since it causes
|
|
2191
2559
|
// deoptimization and serious performance degradation
|
|
2192
2560
|
// https://github.com/zloirock/core-js/issues/679
|
|
2193
|
-
var IS_CONCAT_SPREADABLE_SUPPORT =
|
|
2561
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function () {
|
|
2194
2562
|
var array = [];
|
|
2195
2563
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
2196
2564
|
return array.concat()[0] !== array;
|
|
@@ -2209,7 +2577,7 @@
|
|
|
2209
2577
|
// `Array.prototype.concat` method
|
|
2210
2578
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
2211
2579
|
// with adding support of @@isConcatSpreadable and @@species
|
|
2212
|
-
|
|
2580
|
+
$$1({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
2213
2581
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2214
2582
|
concat: function concat(arg) {
|
|
2215
2583
|
var O = toObject(this);
|
|
@@ -2232,7 +2600,9 @@
|
|
|
2232
2600
|
}
|
|
2233
2601
|
});
|
|
2234
2602
|
|
|
2235
|
-
var
|
|
2603
|
+
var fails = fails$j;
|
|
2604
|
+
|
|
2605
|
+
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
2236
2606
|
var method = [][METHOD_NAME];
|
|
2237
2607
|
return !!method && fails(function () {
|
|
2238
2608
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
@@ -2240,14 +2610,20 @@
|
|
|
2240
2610
|
});
|
|
2241
2611
|
};
|
|
2242
2612
|
|
|
2243
|
-
var
|
|
2613
|
+
var $ = _export;
|
|
2614
|
+
var uncurryThis = functionUncurryThis;
|
|
2615
|
+
var IndexedObject = indexedObject;
|
|
2616
|
+
var toIndexedObject = toIndexedObject$6;
|
|
2617
|
+
var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
|
|
2244
2618
|
|
|
2245
|
-
var
|
|
2246
|
-
|
|
2619
|
+
var un$Join = uncurryThis([].join);
|
|
2620
|
+
|
|
2621
|
+
var ES3_STRINGS = IndexedObject != Object;
|
|
2622
|
+
var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
|
|
2247
2623
|
|
|
2248
2624
|
// `Array.prototype.join` method
|
|
2249
2625
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
2250
|
-
|
|
2626
|
+
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
|
|
2251
2627
|
join: function join(separator) {
|
|
2252
2628
|
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|
2253
2629
|
}
|
|
@@ -2290,15 +2666,15 @@
|
|
|
2290
2666
|
};
|
|
2291
2667
|
|
|
2292
2668
|
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
2293
|
-
|
|
2669
|
+
var documentCreateElement = documentCreateElement$2;
|
|
2294
2670
|
|
|
2295
2671
|
var classList = documentCreateElement('span').classList;
|
|
2296
|
-
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
|
|
2672
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
2297
2673
|
|
|
2298
|
-
var domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
|
|
2674
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
2299
2675
|
|
|
2300
2676
|
var $forEach = arrayIteration.forEach;
|
|
2301
|
-
|
|
2677
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
2302
2678
|
|
|
2303
2679
|
var STRICT_METHOD = arrayMethodIsStrict('forEach');
|
|
2304
2680
|
|
|
@@ -2309,22 +2685,28 @@
|
|
|
2309
2685
|
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
|
2310
2686
|
} : [].forEach;
|
|
2311
2687
|
|
|
2688
|
+
var global$1 = global$x;
|
|
2689
|
+
var DOMIterables = domIterables;
|
|
2690
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
|
2691
|
+
var forEach = arrayForEach;
|
|
2692
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
2693
|
+
|
|
2312
2694
|
var handlePrototype = function (CollectionPrototype) {
|
|
2313
2695
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2314
|
-
if (CollectionPrototype && CollectionPrototype.forEach !==
|
|
2315
|
-
createNonEnumerableProperty(CollectionPrototype, 'forEach',
|
|
2696
|
+
if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
|
|
2697
|
+
createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
|
|
2316
2698
|
} catch (error) {
|
|
2317
|
-
CollectionPrototype.forEach =
|
|
2699
|
+
CollectionPrototype.forEach = forEach;
|
|
2318
2700
|
}
|
|
2319
2701
|
};
|
|
2320
2702
|
|
|
2321
|
-
for (var COLLECTION_NAME in
|
|
2322
|
-
if (
|
|
2323
|
-
handlePrototype(
|
|
2703
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
2704
|
+
if (DOMIterables[COLLECTION_NAME]) {
|
|
2705
|
+
handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype);
|
|
2324
2706
|
}
|
|
2325
2707
|
}
|
|
2326
2708
|
|
|
2327
|
-
handlePrototype(
|
|
2709
|
+
handlePrototype(DOMTokenListPrototype);
|
|
2328
2710
|
|
|
2329
2711
|
/**
|
|
2330
2712
|
* @author zhixin wen <wenzhixin2010@gmail.com>
|
|
@@ -2350,15 +2732,7 @@
|
|
|
2350
2732
|
exportDataType: 'basic',
|
|
2351
2733
|
// basic, all, selected
|
|
2352
2734
|
exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel'],
|
|
2353
|
-
exportOptions: {
|
|
2354
|
-
onCellHtmlData: function onCellHtmlData(cell, rowIndex, colIndex, htmlData) {
|
|
2355
|
-
if (cell.is('th')) {
|
|
2356
|
-
return cell.find('.th-inner').text();
|
|
2357
|
-
}
|
|
2358
|
-
|
|
2359
|
-
return htmlData;
|
|
2360
|
-
}
|
|
2361
|
-
},
|
|
2735
|
+
exportOptions: {},
|
|
2362
2736
|
exportFooter: false
|
|
2363
2737
|
});
|
|
2364
2738
|
$__default["default"].extend($__default["default"].fn.bootstrapTable.columnDefaults, {
|
|
@@ -2487,13 +2861,10 @@
|
|
|
2487
2861
|
|
|
2488
2862
|
$exportButtons.click(function (e) {
|
|
2489
2863
|
e.preventDefault();
|
|
2490
|
-
var type = $__default["default"](e.currentTarget).data('type');
|
|
2491
|
-
var exportOptions = {
|
|
2492
|
-
type: type,
|
|
2493
|
-
escape: false
|
|
2494
|
-
};
|
|
2495
2864
|
|
|
2496
|
-
_this.exportTable(
|
|
2865
|
+
_this.exportTable({
|
|
2866
|
+
type: $__default["default"](e.currentTarget).data('type')
|
|
2867
|
+
});
|
|
2497
2868
|
});
|
|
2498
2869
|
this.handleToolbar();
|
|
2499
2870
|
}
|
|
@@ -2539,7 +2910,7 @@
|
|
|
2539
2910
|
o.exportOptions.ignoreColumn = [detailViewIndex].concat(o.exportOptions.ignoreColumn || []);
|
|
2540
2911
|
}
|
|
2541
2912
|
|
|
2542
|
-
if (o.exportFooter) {
|
|
2913
|
+
if (o.exportFooter && o.height) {
|
|
2543
2914
|
var $footerRow = _this2.$tableFooter.find('tr').first();
|
|
2544
2915
|
|
|
2545
2916
|
var footerData = {};
|