bootstrap-table-rails 1.20.1 → 1.20.2
Sign up to get free protection for your applications and to get access to all the features.
- 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 ($$k) { '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($$k);
|
10
10
|
|
11
11
|
function _typeof(obj) {
|
12
12
|
"@babel/helpers - typeof";
|
@@ -192,16 +192,12 @@
|
|
192
192
|
|
193
193
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
194
194
|
|
195
|
-
function createCommonjsModule(fn, module) {
|
196
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
197
|
-
}
|
198
|
-
|
199
195
|
var check = function (it) {
|
200
196
|
return it && it.Math == Math && it;
|
201
197
|
};
|
202
198
|
|
203
199
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
204
|
-
var
|
200
|
+
var global$L =
|
205
201
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
206
202
|
check(typeof globalThis == 'object' && globalThis) ||
|
207
203
|
check(typeof window == 'object' && window) ||
|
@@ -211,7 +207,9 @@
|
|
211
207
|
// eslint-disable-next-line no-new-func -- fallback
|
212
208
|
(function () { return this; })() || Function('return this')();
|
213
209
|
|
214
|
-
var
|
210
|
+
var objectGetOwnPropertyDescriptor = {};
|
211
|
+
|
212
|
+
var fails$q = function (exec) {
|
215
213
|
try {
|
216
214
|
return !!exec();
|
217
215
|
} catch (error) {
|
@@ -219,25 +217,33 @@
|
|
219
217
|
}
|
220
218
|
};
|
221
219
|
|
220
|
+
var fails$p = fails$q;
|
221
|
+
|
222
222
|
// Detect IE8's incomplete defineProperty implementation
|
223
|
-
var descriptors = !fails(function () {
|
223
|
+
var descriptors = !fails$p(function () {
|
224
224
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
225
225
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
226
226
|
});
|
227
227
|
|
228
|
-
var
|
228
|
+
var fails$o = fails$q;
|
229
|
+
|
230
|
+
var functionBindNative = !fails$o(function () {
|
229
231
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
230
232
|
var test = (function () { /* empty */ }).bind();
|
231
233
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
232
234
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
233
235
|
});
|
234
236
|
|
235
|
-
var
|
237
|
+
var NATIVE_BIND$3 = functionBindNative;
|
238
|
+
|
239
|
+
var call$j = Function.prototype.call;
|
236
240
|
|
237
|
-
var functionCall =
|
238
|
-
return call$
|
241
|
+
var functionCall = NATIVE_BIND$3 ? call$j.bind(call$j) : function () {
|
242
|
+
return call$j.apply(call$j, arguments);
|
239
243
|
};
|
240
244
|
|
245
|
+
var objectPropertyIsEnumerable = {};
|
246
|
+
|
241
247
|
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
242
248
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
243
249
|
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
@@ -247,16 +253,12 @@
|
|
247
253
|
|
248
254
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
249
255
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
250
|
-
|
256
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
251
257
|
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
252
258
|
return !!descriptor && descriptor.enumerable;
|
253
259
|
} : $propertyIsEnumerable$1;
|
254
260
|
|
255
|
-
var
|
256
|
-
f: f$6
|
257
|
-
};
|
258
|
-
|
259
|
-
var createPropertyDescriptor = function (bitmap, value) {
|
261
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
260
262
|
return {
|
261
263
|
enumerable: !(bitmap & 1),
|
262
264
|
configurable: !(bitmap & 2),
|
@@ -265,79 +267,102 @@
|
|
265
267
|
};
|
266
268
|
};
|
267
269
|
|
270
|
+
var NATIVE_BIND$2 = functionBindNative;
|
271
|
+
|
268
272
|
var FunctionPrototype$2 = Function.prototype;
|
269
|
-
var bind$
|
270
|
-
var call$
|
271
|
-
var uncurryThis =
|
273
|
+
var bind$6 = FunctionPrototype$2.bind;
|
274
|
+
var call$i = FunctionPrototype$2.call;
|
275
|
+
var uncurryThis$s = NATIVE_BIND$2 && bind$6.bind(call$i, call$i);
|
272
276
|
|
273
|
-
var functionUncurryThis =
|
274
|
-
return fn && uncurryThis(fn);
|
277
|
+
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
278
|
+
return fn && uncurryThis$s(fn);
|
275
279
|
} : function (fn) {
|
276
280
|
return fn && function () {
|
277
|
-
return call$
|
281
|
+
return call$i.apply(fn, arguments);
|
278
282
|
};
|
279
283
|
};
|
280
284
|
|
281
|
-
var
|
282
|
-
|
285
|
+
var uncurryThis$r = functionUncurryThis;
|
286
|
+
|
287
|
+
var toString$c = uncurryThis$r({}.toString);
|
288
|
+
var stringSlice$5 = uncurryThis$r(''.slice);
|
283
289
|
|
284
|
-
var classofRaw = function (it) {
|
285
|
-
return stringSlice$5(toString$
|
290
|
+
var classofRaw$1 = function (it) {
|
291
|
+
return stringSlice$5(toString$c(it), 8, -1);
|
286
292
|
};
|
287
293
|
|
288
|
-
var
|
289
|
-
var
|
294
|
+
var global$K = global$L;
|
295
|
+
var uncurryThis$q = functionUncurryThis;
|
296
|
+
var fails$n = fails$q;
|
297
|
+
var classof$9 = classofRaw$1;
|
298
|
+
|
299
|
+
var Object$4 = global$K.Object;
|
300
|
+
var split = uncurryThis$q(''.split);
|
290
301
|
|
291
302
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
292
|
-
var indexedObject = fails(function () {
|
303
|
+
var indexedObject = fails$n(function () {
|
293
304
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
294
305
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
295
306
|
return !Object$4('z').propertyIsEnumerable(0);
|
296
307
|
}) ? function (it) {
|
297
|
-
return
|
308
|
+
return classof$9(it) == 'String' ? split(it, '') : Object$4(it);
|
298
309
|
} : Object$4;
|
299
310
|
|
300
|
-
var
|
311
|
+
var global$J = global$L;
|
312
|
+
|
313
|
+
var TypeError$h = global$J.TypeError;
|
301
314
|
|
302
315
|
// `RequireObjectCoercible` abstract operation
|
303
316
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
304
|
-
var requireObjectCoercible = function (it) {
|
317
|
+
var requireObjectCoercible$8 = function (it) {
|
305
318
|
if (it == undefined) throw TypeError$h("Can't call method on " + it);
|
306
319
|
return it;
|
307
320
|
};
|
308
321
|
|
309
322
|
// toObject with fallback for non-array-like ES3 strings
|
323
|
+
var IndexedObject$3 = indexedObject;
|
324
|
+
var requireObjectCoercible$7 = requireObjectCoercible$8;
|
310
325
|
|
311
|
-
|
312
|
-
|
313
|
-
var toIndexedObject = function (it) {
|
314
|
-
return indexedObject(requireObjectCoercible(it));
|
326
|
+
var toIndexedObject$6 = function (it) {
|
327
|
+
return IndexedObject$3(requireObjectCoercible$7(it));
|
315
328
|
};
|
316
329
|
|
317
330
|
// `IsCallable` abstract operation
|
318
331
|
// https://tc39.es/ecma262/#sec-iscallable
|
319
|
-
var isCallable = function (argument) {
|
332
|
+
var isCallable$j = function (argument) {
|
320
333
|
return typeof argument == 'function';
|
321
334
|
};
|
322
335
|
|
323
|
-
var
|
324
|
-
|
336
|
+
var isCallable$i = isCallable$j;
|
337
|
+
|
338
|
+
var isObject$a = function (it) {
|
339
|
+
return typeof it == 'object' ? it !== null : isCallable$i(it);
|
325
340
|
};
|
326
341
|
|
342
|
+
var global$I = global$L;
|
343
|
+
var isCallable$h = isCallable$j;
|
344
|
+
|
327
345
|
var aFunction = function (argument) {
|
328
|
-
return isCallable(argument) ? argument : undefined;
|
346
|
+
return isCallable$h(argument) ? argument : undefined;
|
329
347
|
};
|
330
348
|
|
331
|
-
var getBuiltIn = function (namespace, method) {
|
332
|
-
return arguments.length < 2 ? aFunction(
|
349
|
+
var getBuiltIn$8 = function (namespace, method) {
|
350
|
+
return arguments.length < 2 ? aFunction(global$I[namespace]) : global$I[namespace] && global$I[namespace][method];
|
333
351
|
};
|
334
352
|
|
335
|
-
var
|
353
|
+
var uncurryThis$p = functionUncurryThis;
|
354
|
+
|
355
|
+
var objectIsPrototypeOf = uncurryThis$p({}.isPrototypeOf);
|
336
356
|
|
337
|
-
var
|
357
|
+
var getBuiltIn$7 = getBuiltIn$8;
|
338
358
|
|
339
|
-
var
|
340
|
-
|
359
|
+
var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
|
360
|
+
|
361
|
+
var global$H = global$L;
|
362
|
+
var userAgent$5 = engineUserAgent;
|
363
|
+
|
364
|
+
var process$3 = global$H.process;
|
365
|
+
var Deno$1 = global$H.Deno;
|
341
366
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
342
367
|
var v8 = versions && versions.v8;
|
343
368
|
var match, version;
|
@@ -351,10 +376,10 @@
|
|
351
376
|
|
352
377
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
353
378
|
// so check `userAgent` even if `.v8` exists, but 0
|
354
|
-
if (!version &&
|
355
|
-
match =
|
379
|
+
if (!version && userAgent$5) {
|
380
|
+
match = userAgent$5.match(/Edge\/(\d+)/);
|
356
381
|
if (!match || match[1] >= 74) {
|
357
|
-
match =
|
382
|
+
match = userAgent$5.match(/Chrome\/(\d+)/);
|
358
383
|
if (match) version = +match[1];
|
359
384
|
}
|
360
385
|
}
|
@@ -363,37 +388,47 @@
|
|
363
388
|
|
364
389
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
365
390
|
|
366
|
-
|
391
|
+
var V8_VERSION$3 = engineV8Version;
|
392
|
+
var fails$m = fails$q;
|
367
393
|
|
368
394
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
369
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
395
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$m(function () {
|
370
396
|
var symbol = Symbol();
|
371
397
|
// Chrome 38 Symbol has incorrect toString conversion
|
372
398
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
373
399
|
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
374
400
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
375
|
-
!Symbol.sham &&
|
401
|
+
!Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41;
|
376
402
|
});
|
377
403
|
|
378
404
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
379
405
|
|
406
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
380
407
|
|
381
|
-
var useSymbolAsUid =
|
408
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
382
409
|
&& !Symbol.sham
|
383
410
|
&& typeof Symbol.iterator == 'symbol';
|
384
411
|
|
385
|
-
var
|
412
|
+
var global$G = global$L;
|
413
|
+
var getBuiltIn$6 = getBuiltIn$8;
|
414
|
+
var isCallable$g = isCallable$j;
|
415
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
416
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
386
417
|
|
387
|
-
var
|
418
|
+
var Object$3 = global$G.Object;
|
419
|
+
|
420
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
388
421
|
return typeof it == 'symbol';
|
389
422
|
} : function (it) {
|
390
|
-
var $Symbol = getBuiltIn('Symbol');
|
391
|
-
return isCallable($Symbol) &&
|
423
|
+
var $Symbol = getBuiltIn$6('Symbol');
|
424
|
+
return isCallable$g($Symbol) && isPrototypeOf$3($Symbol.prototype, Object$3(it));
|
392
425
|
};
|
393
426
|
|
394
|
-
var
|
427
|
+
var global$F = global$L;
|
428
|
+
|
429
|
+
var String$5 = global$F.String;
|
395
430
|
|
396
|
-
var tryToString = function (argument) {
|
431
|
+
var tryToString$4 = function (argument) {
|
397
432
|
try {
|
398
433
|
return String$5(argument);
|
399
434
|
} catch (error) {
|
@@ -401,97 +436,130 @@
|
|
401
436
|
}
|
402
437
|
};
|
403
438
|
|
404
|
-
var
|
439
|
+
var global$E = global$L;
|
440
|
+
var isCallable$f = isCallable$j;
|
441
|
+
var tryToString$3 = tryToString$4;
|
442
|
+
|
443
|
+
var TypeError$g = global$E.TypeError;
|
405
444
|
|
406
445
|
// `Assert: IsCallable(argument) is true`
|
407
|
-
var aCallable = function (argument) {
|
408
|
-
if (isCallable(argument)) return argument;
|
409
|
-
throw TypeError$g(tryToString(argument) + ' is not a function');
|
446
|
+
var aCallable$8 = function (argument) {
|
447
|
+
if (isCallable$f(argument)) return argument;
|
448
|
+
throw TypeError$g(tryToString$3(argument) + ' is not a function');
|
410
449
|
};
|
411
450
|
|
451
|
+
var aCallable$7 = aCallable$8;
|
452
|
+
|
412
453
|
// `GetMethod` abstract operation
|
413
454
|
// https://tc39.es/ecma262/#sec-getmethod
|
414
|
-
var getMethod = function (V, P) {
|
455
|
+
var getMethod$6 = function (V, P) {
|
415
456
|
var func = V[P];
|
416
|
-
return func == null ? undefined : aCallable(func);
|
457
|
+
return func == null ? undefined : aCallable$7(func);
|
417
458
|
};
|
418
459
|
|
419
|
-
var
|
460
|
+
var global$D = global$L;
|
461
|
+
var call$h = functionCall;
|
462
|
+
var isCallable$e = isCallable$j;
|
463
|
+
var isObject$9 = isObject$a;
|
464
|
+
|
465
|
+
var TypeError$f = global$D.TypeError;
|
420
466
|
|
421
467
|
// `OrdinaryToPrimitive` abstract operation
|
422
468
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
423
|
-
var ordinaryToPrimitive = function (input, pref) {
|
469
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
424
470
|
var fn, val;
|
425
|
-
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val =
|
426
|
-
if (isCallable(fn = input.valueOf) && !isObject(val =
|
427
|
-
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val =
|
471
|
+
if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
|
472
|
+
if (isCallable$e(fn = input.valueOf) && !isObject$9(val = call$h(fn, input))) return val;
|
473
|
+
if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
|
428
474
|
throw TypeError$f("Can't convert object to primitive value");
|
429
475
|
};
|
430
476
|
|
477
|
+
var shared$4 = {exports: {}};
|
478
|
+
|
479
|
+
var global$C = global$L;
|
480
|
+
|
431
481
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
432
|
-
var defineProperty$
|
482
|
+
var defineProperty$3 = Object.defineProperty;
|
433
483
|
|
434
|
-
var setGlobal = function (key, value) {
|
484
|
+
var setGlobal$3 = function (key, value) {
|
435
485
|
try {
|
436
|
-
defineProperty$
|
486
|
+
defineProperty$3(global$C, key, { value: value, configurable: true, writable: true });
|
437
487
|
} catch (error) {
|
438
|
-
|
488
|
+
global$C[key] = value;
|
439
489
|
} return value;
|
440
490
|
};
|
441
491
|
|
492
|
+
var global$B = global$L;
|
493
|
+
var setGlobal$2 = setGlobal$3;
|
494
|
+
|
442
495
|
var SHARED = '__core-js_shared__';
|
443
|
-
var store$
|
496
|
+
var store$3 = global$B[SHARED] || setGlobal$2(SHARED, {});
|
444
497
|
|
445
|
-
var sharedStore = store$
|
498
|
+
var sharedStore = store$3;
|
446
499
|
|
447
|
-
var
|
448
|
-
|
449
|
-
|
500
|
+
var store$2 = sharedStore;
|
501
|
+
|
502
|
+
(shared$4.exports = function (key, value) {
|
503
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
450
504
|
})('versions', []).push({
|
451
|
-
version: '3.22.
|
505
|
+
version: '3.22.5',
|
452
506
|
mode: 'global',
|
453
507
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
454
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.
|
508
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
|
455
509
|
source: 'https://github.com/zloirock/core-js'
|
456
510
|
});
|
457
|
-
});
|
458
511
|
|
459
|
-
var
|
512
|
+
var global$A = global$L;
|
513
|
+
var requireObjectCoercible$6 = requireObjectCoercible$8;
|
514
|
+
|
515
|
+
var Object$2 = global$A.Object;
|
460
516
|
|
461
517
|
// `ToObject` abstract operation
|
462
518
|
// https://tc39.es/ecma262/#sec-toobject
|
463
|
-
var toObject = function (argument) {
|
464
|
-
return Object$2(requireObjectCoercible(argument));
|
519
|
+
var toObject$7 = function (argument) {
|
520
|
+
return Object$2(requireObjectCoercible$6(argument));
|
465
521
|
};
|
466
522
|
|
467
|
-
var
|
523
|
+
var uncurryThis$o = functionUncurryThis;
|
524
|
+
var toObject$6 = toObject$7;
|
525
|
+
|
526
|
+
var hasOwnProperty = uncurryThis$o({}.hasOwnProperty);
|
468
527
|
|
469
528
|
// `HasOwnProperty` abstract operation
|
470
529
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
471
530
|
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
472
531
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
473
|
-
return hasOwnProperty(toObject(it), key);
|
532
|
+
return hasOwnProperty(toObject$6(it), key);
|
474
533
|
};
|
475
534
|
|
535
|
+
var uncurryThis$n = functionUncurryThis;
|
536
|
+
|
476
537
|
var id = 0;
|
477
538
|
var postfix = Math.random();
|
478
|
-
var toString =
|
539
|
+
var toString$b = uncurryThis$n(1.0.toString);
|
479
540
|
|
480
|
-
var uid = function (key) {
|
481
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
541
|
+
var uid$2 = function (key) {
|
542
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$b(++id + postfix, 36);
|
482
543
|
};
|
483
544
|
|
484
|
-
var
|
485
|
-
var
|
545
|
+
var global$z = global$L;
|
546
|
+
var shared$3 = shared$4.exports;
|
547
|
+
var hasOwn$9 = hasOwnProperty_1;
|
548
|
+
var uid$1 = uid$2;
|
549
|
+
var NATIVE_SYMBOL = nativeSymbol;
|
550
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
551
|
+
|
552
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
553
|
+
var Symbol$2 = global$z.Symbol;
|
486
554
|
var symbolFor = Symbol$2 && Symbol$2['for'];
|
487
|
-
var createWellKnownSymbol =
|
555
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
488
556
|
|
489
|
-
var wellKnownSymbol = function (name) {
|
490
|
-
if (!
|
557
|
+
var wellKnownSymbol$i = function (name) {
|
558
|
+
if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
491
559
|
var description = 'Symbol.' + name;
|
492
|
-
if (
|
560
|
+
if (NATIVE_SYMBOL && hasOwn$9(Symbol$2, name)) {
|
493
561
|
WellKnownSymbolsStore[name] = Symbol$2[name];
|
494
|
-
} else if (
|
562
|
+
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
495
563
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
496
564
|
} else {
|
497
565
|
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
@@ -499,69 +567,97 @@
|
|
499
567
|
} return WellKnownSymbolsStore[name];
|
500
568
|
};
|
501
569
|
|
502
|
-
var
|
503
|
-
var
|
570
|
+
var global$y = global$L;
|
571
|
+
var call$g = functionCall;
|
572
|
+
var isObject$8 = isObject$a;
|
573
|
+
var isSymbol$1 = isSymbol$2;
|
574
|
+
var getMethod$5 = getMethod$6;
|
575
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
576
|
+
var wellKnownSymbol$h = wellKnownSymbol$i;
|
577
|
+
|
578
|
+
var TypeError$e = global$y.TypeError;
|
579
|
+
var TO_PRIMITIVE = wellKnownSymbol$h('toPrimitive');
|
504
580
|
|
505
581
|
// `ToPrimitive` abstract operation
|
506
582
|
// https://tc39.es/ecma262/#sec-toprimitive
|
507
|
-
var toPrimitive = function (input, pref) {
|
508
|
-
if (!isObject(input) || isSymbol(input)) return input;
|
509
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
583
|
+
var toPrimitive$1 = function (input, pref) {
|
584
|
+
if (!isObject$8(input) || isSymbol$1(input)) return input;
|
585
|
+
var exoticToPrim = getMethod$5(input, TO_PRIMITIVE);
|
510
586
|
var result;
|
511
587
|
if (exoticToPrim) {
|
512
588
|
if (pref === undefined) pref = 'default';
|
513
|
-
result =
|
514
|
-
if (!isObject(result) || isSymbol(result)) return result;
|
589
|
+
result = call$g(exoticToPrim, input, pref);
|
590
|
+
if (!isObject$8(result) || isSymbol$1(result)) return result;
|
515
591
|
throw TypeError$e("Can't convert object to primitive value");
|
516
592
|
}
|
517
593
|
if (pref === undefined) pref = 'number';
|
518
594
|
return ordinaryToPrimitive(input, pref);
|
519
595
|
};
|
520
596
|
|
597
|
+
var toPrimitive = toPrimitive$1;
|
598
|
+
var isSymbol = isSymbol$2;
|
599
|
+
|
521
600
|
// `ToPropertyKey` abstract operation
|
522
601
|
// https://tc39.es/ecma262/#sec-topropertykey
|
523
|
-
var toPropertyKey = function (argument) {
|
602
|
+
var toPropertyKey$3 = function (argument) {
|
524
603
|
var key = toPrimitive(argument, 'string');
|
525
604
|
return isSymbol(key) ? key : key + '';
|
526
605
|
};
|
527
606
|
|
528
|
-
var
|
607
|
+
var global$x = global$L;
|
608
|
+
var isObject$7 = isObject$a;
|
609
|
+
|
610
|
+
var document$3 = global$x.document;
|
529
611
|
// typeof document.createElement is 'object' in old IE
|
530
|
-
var EXISTS$1 = isObject(document$3) && isObject(document$3.createElement);
|
612
|
+
var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
|
531
613
|
|
532
|
-
var documentCreateElement = function (it) {
|
614
|
+
var documentCreateElement$2 = function (it) {
|
533
615
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
534
616
|
};
|
535
617
|
|
618
|
+
var DESCRIPTORS$a = descriptors;
|
619
|
+
var fails$l = fails$q;
|
620
|
+
var createElement$1 = documentCreateElement$2;
|
621
|
+
|
536
622
|
// Thanks to IE8 for its funny defineProperty
|
537
|
-
var ie8DomDefine = !
|
623
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$l(function () {
|
538
624
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
539
|
-
return Object.defineProperty(
|
625
|
+
return Object.defineProperty(createElement$1('div'), 'a', {
|
540
626
|
get: function () { return 7; }
|
541
627
|
}).a != 7;
|
542
628
|
});
|
543
629
|
|
630
|
+
var DESCRIPTORS$9 = descriptors;
|
631
|
+
var call$f = functionCall;
|
632
|
+
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
633
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
634
|
+
var toIndexedObject$5 = toIndexedObject$6;
|
635
|
+
var toPropertyKey$2 = toPropertyKey$3;
|
636
|
+
var hasOwn$8 = hasOwnProperty_1;
|
637
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
638
|
+
|
544
639
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
545
640
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
546
641
|
|
547
642
|
// `Object.getOwnPropertyDescriptor` method
|
548
643
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
549
|
-
|
550
|
-
O = toIndexedObject(O);
|
551
|
-
P = toPropertyKey(P);
|
552
|
-
if (
|
644
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
645
|
+
O = toIndexedObject$5(O);
|
646
|
+
P = toPropertyKey$2(P);
|
647
|
+
if (IE8_DOM_DEFINE$1) try {
|
553
648
|
return $getOwnPropertyDescriptor$1(O, P);
|
554
649
|
} catch (error) { /* empty */ }
|
555
|
-
if (
|
650
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$f(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
556
651
|
};
|
557
652
|
|
558
|
-
var
|
559
|
-
|
560
|
-
|
653
|
+
var objectDefineProperty = {};
|
654
|
+
|
655
|
+
var DESCRIPTORS$8 = descriptors;
|
656
|
+
var fails$k = fails$q;
|
561
657
|
|
562
658
|
// V8 ~ Chrome 36-
|
563
659
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
564
|
-
var v8PrototypeDefineBug =
|
660
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$k(function () {
|
565
661
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
566
662
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
567
663
|
value: 42,
|
@@ -569,16 +665,26 @@
|
|
569
665
|
}).prototype != 42;
|
570
666
|
});
|
571
667
|
|
572
|
-
var
|
573
|
-
var
|
668
|
+
var global$w = global$L;
|
669
|
+
var isObject$6 = isObject$a;
|
670
|
+
|
671
|
+
var String$4 = global$w.String;
|
672
|
+
var TypeError$d = global$w.TypeError;
|
574
673
|
|
575
674
|
// `Assert: Type(argument) is Object`
|
576
|
-
var anObject = function (argument) {
|
577
|
-
if (isObject(argument)) return argument;
|
675
|
+
var anObject$g = function (argument) {
|
676
|
+
if (isObject$6(argument)) return argument;
|
578
677
|
throw TypeError$d(String$4(argument) + ' is not an object');
|
579
678
|
};
|
580
679
|
|
581
|
-
var
|
680
|
+
var global$v = global$L;
|
681
|
+
var DESCRIPTORS$7 = descriptors;
|
682
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
683
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
684
|
+
var anObject$f = anObject$g;
|
685
|
+
var toPropertyKey$1 = toPropertyKey$3;
|
686
|
+
|
687
|
+
var TypeError$c = global$v.TypeError;
|
582
688
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
583
689
|
var $defineProperty = Object.defineProperty;
|
584
690
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
@@ -589,10 +695,10 @@
|
|
589
695
|
|
590
696
|
// `Object.defineProperty` method
|
591
697
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
592
|
-
|
593
|
-
anObject(O);
|
594
|
-
P = toPropertyKey(P);
|
595
|
-
anObject(Attributes);
|
698
|
+
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
699
|
+
anObject$f(O);
|
700
|
+
P = toPropertyKey$1(P);
|
701
|
+
anObject$f(Attributes);
|
596
702
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
597
703
|
var current = $getOwnPropertyDescriptor(O, P);
|
598
704
|
if (current && current[WRITABLE]) {
|
@@ -605,10 +711,10 @@
|
|
605
711
|
}
|
606
712
|
} return $defineProperty(O, P, Attributes);
|
607
713
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
608
|
-
anObject(O);
|
609
|
-
P = toPropertyKey(P);
|
610
|
-
anObject(Attributes);
|
611
|
-
if (
|
714
|
+
anObject$f(O);
|
715
|
+
P = toPropertyKey$1(P);
|
716
|
+
anObject$f(Attributes);
|
717
|
+
if (IE8_DOM_DEFINE) try {
|
612
718
|
return $defineProperty(O, P, Attributes);
|
613
719
|
} catch (error) { /* empty */ }
|
614
720
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError$c('Accessors not supported');
|
@@ -616,25 +722,30 @@
|
|
616
722
|
return O;
|
617
723
|
};
|
618
724
|
|
619
|
-
var
|
620
|
-
|
621
|
-
|
725
|
+
var DESCRIPTORS$6 = descriptors;
|
726
|
+
var definePropertyModule$5 = objectDefineProperty;
|
727
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
622
728
|
|
623
|
-
var createNonEnumerableProperty =
|
624
|
-
return
|
729
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value) {
|
730
|
+
return definePropertyModule$5.f(object, key, createPropertyDescriptor$1(1, value));
|
625
731
|
} : function (object, key, value) {
|
626
732
|
object[key] = value;
|
627
733
|
return object;
|
628
734
|
};
|
629
735
|
|
736
|
+
var makeBuiltIn$2 = {exports: {}};
|
737
|
+
|
738
|
+
var DESCRIPTORS$5 = descriptors;
|
739
|
+
var hasOwn$7 = hasOwnProperty_1;
|
740
|
+
|
630
741
|
var FunctionPrototype$1 = Function.prototype;
|
631
742
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
632
|
-
var getDescriptor =
|
743
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
633
744
|
|
634
|
-
var EXISTS =
|
745
|
+
var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
|
635
746
|
// additional protection from minified / mangled / dropped function names
|
636
747
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
637
|
-
var CONFIGURABLE = EXISTS && (!
|
748
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
638
749
|
|
639
750
|
var functionName = {
|
640
751
|
EXISTS: EXISTS,
|
@@ -642,32 +753,53 @@
|
|
642
753
|
CONFIGURABLE: CONFIGURABLE
|
643
754
|
};
|
644
755
|
|
645
|
-
var
|
756
|
+
var uncurryThis$m = functionUncurryThis;
|
757
|
+
var isCallable$d = isCallable$j;
|
758
|
+
var store$1 = sharedStore;
|
759
|
+
|
760
|
+
var functionToString = uncurryThis$m(Function.toString);
|
646
761
|
|
647
762
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
648
|
-
if (!isCallable(
|
649
|
-
|
763
|
+
if (!isCallable$d(store$1.inspectSource)) {
|
764
|
+
store$1.inspectSource = function (it) {
|
650
765
|
return functionToString(it);
|
651
766
|
};
|
652
767
|
}
|
653
768
|
|
654
|
-
var inspectSource =
|
769
|
+
var inspectSource$4 = store$1.inspectSource;
|
655
770
|
|
656
|
-
var
|
771
|
+
var global$u = global$L;
|
772
|
+
var isCallable$c = isCallable$j;
|
773
|
+
var inspectSource$3 = inspectSource$4;
|
657
774
|
|
658
|
-
var
|
775
|
+
var WeakMap$1 = global$u.WeakMap;
|
659
776
|
|
660
|
-
var
|
777
|
+
var nativeWeakMap = isCallable$c(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
661
778
|
|
662
|
-
var
|
779
|
+
var shared$2 = shared$4.exports;
|
780
|
+
var uid = uid$2;
|
781
|
+
|
782
|
+
var keys = shared$2('keys');
|
783
|
+
|
784
|
+
var sharedKey$2 = function (key) {
|
663
785
|
return keys[key] || (keys[key] = uid(key));
|
664
786
|
};
|
665
787
|
|
666
|
-
var hiddenKeys$
|
788
|
+
var hiddenKeys$4 = {};
|
789
|
+
|
790
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
791
|
+
var global$t = global$L;
|
792
|
+
var uncurryThis$l = functionUncurryThis;
|
793
|
+
var isObject$5 = isObject$a;
|
794
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
795
|
+
var hasOwn$6 = hasOwnProperty_1;
|
796
|
+
var shared$1 = sharedStore;
|
797
|
+
var sharedKey$1 = sharedKey$2;
|
798
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
667
799
|
|
668
800
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
669
|
-
var TypeError$b =
|
670
|
-
var WeakMap =
|
801
|
+
var TypeError$b = global$t.TypeError;
|
802
|
+
var WeakMap = global$t.WeakMap;
|
671
803
|
var set$1, get, has;
|
672
804
|
|
673
805
|
var enforce = function (it) {
|
@@ -677,17 +809,17 @@
|
|
677
809
|
var getterFor = function (TYPE) {
|
678
810
|
return function (it) {
|
679
811
|
var state;
|
680
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
812
|
+
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
681
813
|
throw TypeError$b('Incompatible receiver, ' + TYPE + ' required');
|
682
814
|
} return state;
|
683
815
|
};
|
684
816
|
};
|
685
817
|
|
686
|
-
if (
|
687
|
-
var store =
|
688
|
-
var wmget =
|
689
|
-
var wmhas =
|
690
|
-
var wmset =
|
818
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
819
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
820
|
+
var wmget = uncurryThis$l(store.get);
|
821
|
+
var wmhas = uncurryThis$l(store.has);
|
822
|
+
var wmset = uncurryThis$l(store.set);
|
691
823
|
set$1 = function (it, metadata) {
|
692
824
|
if (wmhas(store, it)) throw new TypeError$b(OBJECT_ALREADY_INITIALIZED);
|
693
825
|
metadata.facade = it;
|
@@ -701,19 +833,19 @@
|
|
701
833
|
return wmhas(store, it);
|
702
834
|
};
|
703
835
|
} else {
|
704
|
-
var STATE = sharedKey('state');
|
705
|
-
hiddenKeys$
|
836
|
+
var STATE = sharedKey$1('state');
|
837
|
+
hiddenKeys$3[STATE] = true;
|
706
838
|
set$1 = function (it, metadata) {
|
707
|
-
if (
|
839
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$b(OBJECT_ALREADY_INITIALIZED);
|
708
840
|
metadata.facade = it;
|
709
|
-
createNonEnumerableProperty(it, STATE, metadata);
|
841
|
+
createNonEnumerableProperty$4(it, STATE, metadata);
|
710
842
|
return metadata;
|
711
843
|
};
|
712
844
|
get = function (it) {
|
713
|
-
return
|
845
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
714
846
|
};
|
715
847
|
has = function (it) {
|
716
|
-
return
|
848
|
+
return hasOwn$6(it, STATE);
|
717
849
|
};
|
718
850
|
}
|
719
851
|
|
@@ -725,55 +857,69 @@
|
|
725
857
|
getterFor: getterFor
|
726
858
|
};
|
727
859
|
|
728
|
-
var
|
729
|
-
var
|
860
|
+
var fails$j = fails$q;
|
861
|
+
var isCallable$b = isCallable$j;
|
862
|
+
var hasOwn$5 = hasOwnProperty_1;
|
863
|
+
var DESCRIPTORS$4 = descriptors;
|
730
864
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
865
|
+
var inspectSource$2 = inspectSource$4;
|
866
|
+
var InternalStateModule$1 = internalState;
|
731
867
|
|
868
|
+
var enforceInternalState = InternalStateModule$1.enforce;
|
869
|
+
var getInternalState$1 = InternalStateModule$1.get;
|
870
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
871
|
+
var defineProperty$2 = Object.defineProperty;
|
732
872
|
|
733
|
-
|
734
|
-
|
735
|
-
var getInternalState = internalState.get;
|
736
|
-
|
737
|
-
var CONFIGURABLE_LENGTH = !fails(function () {
|
738
|
-
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
873
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$j(function () {
|
874
|
+
return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
739
875
|
});
|
740
876
|
|
741
877
|
var TEMPLATE = String(String).split('String');
|
742
878
|
|
743
|
-
var makeBuiltIn =
|
879
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
744
880
|
if (String(name).slice(0, 7) === 'Symbol(') {
|
745
881
|
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
746
882
|
}
|
747
883
|
if (options && options.getter) name = 'get ' + name;
|
748
884
|
if (options && options.setter) name = 'set ' + name;
|
749
|
-
if (!
|
750
|
-
defineProperty(value, 'name', { value: name, configurable: true });
|
885
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
886
|
+
defineProperty$2(value, 'name', { value: name, configurable: true });
|
751
887
|
}
|
752
|
-
if (CONFIGURABLE_LENGTH && options &&
|
753
|
-
defineProperty(value, 'length', { value: options.arity });
|
888
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
889
|
+
defineProperty$2(value, 'length', { value: options.arity });
|
754
890
|
}
|
891
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
892
|
+
if (DESCRIPTORS$4) try {
|
893
|
+
defineProperty$2(value, 'prototype', { writable: false });
|
894
|
+
} catch (error) { /* empty */ }
|
895
|
+
} else value.prototype = undefined;
|
755
896
|
var state = enforceInternalState(value);
|
756
|
-
if (!
|
897
|
+
if (!hasOwn$5(state, 'source')) {
|
757
898
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
758
899
|
} return value;
|
759
900
|
};
|
760
901
|
|
761
902
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
762
903
|
// eslint-disable-next-line no-extend-native -- required
|
763
|
-
Function.prototype.toString = makeBuiltIn(function toString() {
|
764
|
-
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
904
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
905
|
+
return isCallable$b(this) && getInternalState$1(this).source || inspectSource$2(this);
|
765
906
|
}, 'toString');
|
766
|
-
});
|
767
907
|
|
768
|
-
var
|
908
|
+
var global$s = global$L;
|
909
|
+
var isCallable$a = isCallable$j;
|
910
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
911
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
912
|
+
var setGlobal$1 = setGlobal$3;
|
913
|
+
|
914
|
+
var defineBuiltIn$6 = function (O, key, value, options) {
|
769
915
|
var unsafe = options ? !!options.unsafe : false;
|
770
916
|
var simple = options ? !!options.enumerable : false;
|
771
917
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
772
918
|
var name = options && options.name !== undefined ? options.name : key;
|
773
|
-
if (isCallable(value))
|
774
|
-
if (O ===
|
919
|
+
if (isCallable$a(value)) makeBuiltIn(value, name, options);
|
920
|
+
if (O === global$s) {
|
775
921
|
if (simple) O[key] = value;
|
776
|
-
else setGlobal(key, value);
|
922
|
+
else setGlobal$1(key, value);
|
777
923
|
return O;
|
778
924
|
} else if (!unsafe) {
|
779
925
|
delete O[key];
|
@@ -781,52 +927,64 @@
|
|
781
927
|
simple = true;
|
782
928
|
}
|
783
929
|
if (simple) O[key] = value;
|
784
|
-
else createNonEnumerableProperty(O, key, value);
|
930
|
+
else createNonEnumerableProperty$3(O, key, value);
|
785
931
|
return O;
|
786
932
|
};
|
787
933
|
|
934
|
+
var objectGetOwnPropertyNames = {};
|
935
|
+
|
788
936
|
var ceil = Math.ceil;
|
789
937
|
var floor$2 = Math.floor;
|
790
938
|
|
791
939
|
// `ToIntegerOrInfinity` abstract operation
|
792
940
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
793
|
-
var toIntegerOrInfinity = function (argument) {
|
941
|
+
var toIntegerOrInfinity$4 = function (argument) {
|
794
942
|
var number = +argument;
|
795
943
|
// eslint-disable-next-line no-self-compare -- safe
|
796
944
|
return number !== number || number === 0 ? 0 : (number > 0 ? floor$2 : ceil)(number);
|
797
945
|
};
|
798
946
|
|
947
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
948
|
+
|
799
949
|
var max$2 = Math.max;
|
800
950
|
var min$3 = Math.min;
|
801
951
|
|
802
952
|
// Helper for a popular repeating case of the spec:
|
803
953
|
// Let integer be ? ToInteger(index).
|
804
954
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
805
|
-
var toAbsoluteIndex = function (index, length) {
|
806
|
-
var integer = toIntegerOrInfinity(index);
|
955
|
+
var toAbsoluteIndex$2 = function (index, length) {
|
956
|
+
var integer = toIntegerOrInfinity$3(index);
|
807
957
|
return integer < 0 ? max$2(integer + length, 0) : min$3(integer, length);
|
808
958
|
};
|
809
959
|
|
960
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
961
|
+
|
810
962
|
var min$2 = Math.min;
|
811
963
|
|
812
964
|
// `ToLength` abstract operation
|
813
965
|
// https://tc39.es/ecma262/#sec-tolength
|
814
|
-
var toLength = function (argument) {
|
815
|
-
return argument > 0 ? min$2(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
966
|
+
var toLength$4 = function (argument) {
|
967
|
+
return argument > 0 ? min$2(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
816
968
|
};
|
817
969
|
|
970
|
+
var toLength$3 = toLength$4;
|
971
|
+
|
818
972
|
// `LengthOfArrayLike` abstract operation
|
819
973
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
820
|
-
var lengthOfArrayLike = function (obj) {
|
821
|
-
return toLength(obj.length);
|
974
|
+
var lengthOfArrayLike$6 = function (obj) {
|
975
|
+
return toLength$3(obj.length);
|
822
976
|
};
|
823
977
|
|
978
|
+
var toIndexedObject$4 = toIndexedObject$6;
|
979
|
+
var toAbsoluteIndex$1 = toAbsoluteIndex$2;
|
980
|
+
var lengthOfArrayLike$5 = lengthOfArrayLike$6;
|
981
|
+
|
824
982
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
825
983
|
var createMethod$4 = function (IS_INCLUDES) {
|
826
984
|
return function ($this, el, fromIndex) {
|
827
|
-
var O = toIndexedObject($this);
|
828
|
-
var length = lengthOfArrayLike(O);
|
829
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
985
|
+
var O = toIndexedObject$4($this);
|
986
|
+
var length = lengthOfArrayLike$5(O);
|
987
|
+
var index = toAbsoluteIndex$1(fromIndex, length);
|
830
988
|
var value;
|
831
989
|
// Array#includes uses SameValueZero equality algorithm
|
832
990
|
// eslint-disable-next-line no-self-compare -- NaN check
|
@@ -850,26 +1008,29 @@
|
|
850
1008
|
indexOf: createMethod$4(false)
|
851
1009
|
};
|
852
1010
|
|
1011
|
+
var uncurryThis$k = functionUncurryThis;
|
1012
|
+
var hasOwn$4 = hasOwnProperty_1;
|
1013
|
+
var toIndexedObject$3 = toIndexedObject$6;
|
853
1014
|
var indexOf$1 = arrayIncludes.indexOf;
|
1015
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
854
1016
|
|
855
|
-
|
856
|
-
var push$5 = functionUncurryThis([].push);
|
1017
|
+
var push$5 = uncurryThis$k([].push);
|
857
1018
|
|
858
1019
|
var objectKeysInternal = function (object, names) {
|
859
|
-
var O = toIndexedObject(object);
|
1020
|
+
var O = toIndexedObject$3(object);
|
860
1021
|
var i = 0;
|
861
1022
|
var result = [];
|
862
1023
|
var key;
|
863
|
-
for (key in O) !
|
1024
|
+
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$5(result, key);
|
864
1025
|
// Don't enum bug & hidden keys
|
865
|
-
while (names.length > i) if (
|
1026
|
+
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
866
1027
|
~indexOf$1(result, key) || push$5(result, key);
|
867
1028
|
}
|
868
1029
|
return result;
|
869
1030
|
};
|
870
1031
|
|
871
1032
|
// IE8- don't enum bug keys
|
872
|
-
var enumBugKeys = [
|
1033
|
+
var enumBugKeys$3 = [
|
873
1034
|
'constructor',
|
874
1035
|
'hasOwnProperty',
|
875
1036
|
'isPrototypeOf',
|
@@ -879,73 +1040,85 @@
|
|
879
1040
|
'valueOf'
|
880
1041
|
];
|
881
1042
|
|
882
|
-
var
|
1043
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
1044
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
1045
|
+
|
1046
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
883
1047
|
|
884
1048
|
// `Object.getOwnPropertyNames` method
|
885
1049
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
886
1050
|
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
887
|
-
|
888
|
-
return
|
1051
|
+
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
1052
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
889
1053
|
};
|
890
1054
|
|
891
|
-
var
|
892
|
-
f: f$3
|
893
|
-
};
|
1055
|
+
var objectGetOwnPropertySymbols = {};
|
894
1056
|
|
895
1057
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
896
|
-
|
1058
|
+
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
897
1059
|
|
898
|
-
var
|
899
|
-
|
900
|
-
|
1060
|
+
var getBuiltIn$5 = getBuiltIn$8;
|
1061
|
+
var uncurryThis$j = functionUncurryThis;
|
1062
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
1063
|
+
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
1064
|
+
var anObject$e = anObject$g;
|
901
1065
|
|
902
|
-
var concat$2 =
|
1066
|
+
var concat$2 = uncurryThis$j([].concat);
|
903
1067
|
|
904
1068
|
// all object keys, includes non-enumerable and symbols
|
905
|
-
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
906
|
-
var keys =
|
907
|
-
var getOwnPropertySymbols =
|
1069
|
+
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
1070
|
+
var keys = getOwnPropertyNamesModule.f(anObject$e(it));
|
1071
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
908
1072
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
909
1073
|
};
|
910
1074
|
|
911
|
-
var
|
1075
|
+
var hasOwn$3 = hasOwnProperty_1;
|
1076
|
+
var ownKeys = ownKeys$1;
|
1077
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
1078
|
+
var definePropertyModule$4 = objectDefineProperty;
|
1079
|
+
|
1080
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
912
1081
|
var keys = ownKeys(source);
|
913
|
-
var defineProperty =
|
914
|
-
var getOwnPropertyDescriptor =
|
1082
|
+
var defineProperty = definePropertyModule$4.f;
|
1083
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
915
1084
|
for (var i = 0; i < keys.length; i++) {
|
916
1085
|
var key = keys[i];
|
917
|
-
if (!
|
1086
|
+
if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
|
918
1087
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
919
1088
|
}
|
920
1089
|
}
|
921
1090
|
};
|
922
1091
|
|
1092
|
+
var fails$i = fails$q;
|
1093
|
+
var isCallable$9 = isCallable$j;
|
1094
|
+
|
923
1095
|
var replacement = /#|\.prototype\./;
|
924
1096
|
|
925
|
-
var isForced = function (feature, detection) {
|
1097
|
+
var isForced$2 = function (feature, detection) {
|
926
1098
|
var value = data[normalize(feature)];
|
927
1099
|
return value == POLYFILL ? true
|
928
1100
|
: value == NATIVE ? false
|
929
|
-
: isCallable(detection) ? fails(detection)
|
1101
|
+
: isCallable$9(detection) ? fails$i(detection)
|
930
1102
|
: !!detection;
|
931
1103
|
};
|
932
1104
|
|
933
|
-
var normalize = isForced.normalize = function (string) {
|
1105
|
+
var normalize = isForced$2.normalize = function (string) {
|
934
1106
|
return String(string).replace(replacement, '.').toLowerCase();
|
935
1107
|
};
|
936
1108
|
|
937
|
-
var data = isForced.data = {};
|
938
|
-
var NATIVE = isForced.NATIVE = 'N';
|
939
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
1109
|
+
var data = isForced$2.data = {};
|
1110
|
+
var NATIVE = isForced$2.NATIVE = 'N';
|
1111
|
+
var POLYFILL = isForced$2.POLYFILL = 'P';
|
940
1112
|
|
941
|
-
var isForced_1 = isForced;
|
1113
|
+
var isForced_1 = isForced$2;
|
942
1114
|
|
1115
|
+
var global$r = global$L;
|
943
1116
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
1117
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
1118
|
+
var defineBuiltIn$5 = defineBuiltIn$6;
|
1119
|
+
var setGlobal = setGlobal$3;
|
1120
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
1121
|
+
var isForced$1 = isForced_1;
|
949
1122
|
|
950
1123
|
/*
|
951
1124
|
options.target - name of the target object
|
@@ -968,11 +1141,11 @@
|
|
968
1141
|
var STATIC = options.stat;
|
969
1142
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
970
1143
|
if (GLOBAL) {
|
971
|
-
target =
|
1144
|
+
target = global$r;
|
972
1145
|
} else if (STATIC) {
|
973
|
-
target =
|
1146
|
+
target = global$r[TARGET] || setGlobal(TARGET, {});
|
974
1147
|
} else {
|
975
|
-
target = (
|
1148
|
+
target = (global$r[TARGET] || {}).prototype;
|
976
1149
|
}
|
977
1150
|
if (target) for (key in source) {
|
978
1151
|
sourceProperty = source[key];
|
@@ -980,7 +1153,7 @@
|
|
980
1153
|
descriptor = getOwnPropertyDescriptor$1(target, key);
|
981
1154
|
targetProperty = descriptor && descriptor.value;
|
982
1155
|
} else targetProperty = target[key];
|
983
|
-
FORCED =
|
1156
|
+
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
984
1157
|
// contained in target
|
985
1158
|
if (!FORCED && targetProperty !== undefined) {
|
986
1159
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
@@ -988,38 +1161,52 @@
|
|
988
1161
|
}
|
989
1162
|
// add a flag to not completely full polyfills
|
990
1163
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
991
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
1164
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
992
1165
|
}
|
993
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
1166
|
+
defineBuiltIn$5(target, key, sourceProperty, options);
|
994
1167
|
}
|
995
1168
|
};
|
996
1169
|
|
997
|
-
var
|
1170
|
+
var uncurryThis$i = functionUncurryThis;
|
1171
|
+
var aCallable$6 = aCallable$8;
|
1172
|
+
var NATIVE_BIND$1 = functionBindNative;
|
1173
|
+
|
1174
|
+
var bind$5 = uncurryThis$i(uncurryThis$i.bind);
|
998
1175
|
|
999
1176
|
// optional / simple context binding
|
1000
1177
|
var functionBindContext = function (fn, that) {
|
1001
|
-
aCallable(fn);
|
1002
|
-
return that === undefined ? fn :
|
1178
|
+
aCallable$6(fn);
|
1179
|
+
return that === undefined ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function (/* ...args */) {
|
1003
1180
|
return fn.apply(that, arguments);
|
1004
1181
|
};
|
1005
1182
|
};
|
1006
1183
|
|
1184
|
+
var classof$8 = classofRaw$1;
|
1185
|
+
|
1007
1186
|
// `IsArray` abstract operation
|
1008
1187
|
// https://tc39.es/ecma262/#sec-isarray
|
1009
1188
|
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
1010
|
-
var isArray = Array.isArray || function isArray(argument) {
|
1011
|
-
return
|
1189
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
1190
|
+
return classof$8(argument) == 'Array';
|
1012
1191
|
};
|
1013
1192
|
|
1014
|
-
var
|
1193
|
+
var wellKnownSymbol$g = wellKnownSymbol$i;
|
1194
|
+
|
1195
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag');
|
1015
1196
|
var test$1 = {};
|
1016
1197
|
|
1017
1198
|
test$1[TO_STRING_TAG$2] = 'z';
|
1018
1199
|
|
1019
1200
|
var toStringTagSupport = String(test$1) === '[object z]';
|
1020
1201
|
|
1021
|
-
var
|
1022
|
-
var
|
1202
|
+
var global$q = global$L;
|
1203
|
+
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
1204
|
+
var isCallable$8 = isCallable$j;
|
1205
|
+
var classofRaw = classofRaw$1;
|
1206
|
+
var wellKnownSymbol$f = wellKnownSymbol$i;
|
1207
|
+
|
1208
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$f('toStringTag');
|
1209
|
+
var Object$1 = global$q.Object;
|
1023
1210
|
|
1024
1211
|
// ES3 wrong here
|
1025
1212
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
@@ -1032,7 +1219,7 @@
|
|
1032
1219
|
};
|
1033
1220
|
|
1034
1221
|
// getting tag from ES6+ `Object.prototype.toString`
|
1035
|
-
var classof =
|
1222
|
+
var classof$7 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
1036
1223
|
var O, tag, result;
|
1037
1224
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1038
1225
|
// @@toStringTag case
|
@@ -1040,18 +1227,25 @@
|
|
1040
1227
|
// builtinTag case
|
1041
1228
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
1042
1229
|
// ES3 arguments fallback
|
1043
|
-
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
1230
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
|
1044
1231
|
};
|
1045
1232
|
|
1233
|
+
var uncurryThis$h = functionUncurryThis;
|
1234
|
+
var fails$h = fails$q;
|
1235
|
+
var isCallable$7 = isCallable$j;
|
1236
|
+
var classof$6 = classof$7;
|
1237
|
+
var getBuiltIn$4 = getBuiltIn$8;
|
1238
|
+
var inspectSource$1 = inspectSource$4;
|
1239
|
+
|
1046
1240
|
var noop = function () { /* empty */ };
|
1047
1241
|
var empty = [];
|
1048
|
-
var construct = getBuiltIn('Reflect', 'construct');
|
1242
|
+
var construct = getBuiltIn$4('Reflect', 'construct');
|
1049
1243
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1050
|
-
var exec$
|
1244
|
+
var exec$3 = uncurryThis$h(constructorRegExp.exec);
|
1051
1245
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
1052
1246
|
|
1053
1247
|
var isConstructorModern = function isConstructor(argument) {
|
1054
|
-
if (!isCallable(argument)) return false;
|
1248
|
+
if (!isCallable$7(argument)) return false;
|
1055
1249
|
try {
|
1056
1250
|
construct(noop, empty, argument);
|
1057
1251
|
return true;
|
@@ -1061,8 +1255,8 @@
|
|
1061
1255
|
};
|
1062
1256
|
|
1063
1257
|
var isConstructorLegacy = function isConstructor(argument) {
|
1064
|
-
if (!isCallable(argument)) return false;
|
1065
|
-
switch (classof(argument)) {
|
1258
|
+
if (!isCallable$7(argument)) return false;
|
1259
|
+
switch (classof$6(argument)) {
|
1066
1260
|
case 'AsyncFunction':
|
1067
1261
|
case 'GeneratorFunction':
|
1068
1262
|
case 'AsyncGeneratorFunction': return false;
|
@@ -1071,7 +1265,7 @@
|
|
1071
1265
|
// we can't check .prototype since constructors produced by .bind haven't it
|
1072
1266
|
// `Function#toString` throws on some built-it function in some legacy engines
|
1073
1267
|
// (for example, `DOMQuad` and similar in FF41-)
|
1074
|
-
return INCORRECT_TO_STRING || !!exec$
|
1268
|
+
return INCORRECT_TO_STRING || !!exec$3(constructorRegExp, inspectSource$1(argument));
|
1075
1269
|
} catch (error) {
|
1076
1270
|
return true;
|
1077
1271
|
}
|
@@ -1081,7 +1275,7 @@
|
|
1081
1275
|
|
1082
1276
|
// `IsConstructor` abstract operation
|
1083
1277
|
// https://tc39.es/ecma262/#sec-isconstructor
|
1084
|
-
var isConstructor = !construct || fails(function () {
|
1278
|
+
var isConstructor$2 = !construct || fails$h(function () {
|
1085
1279
|
var called;
|
1086
1280
|
return isConstructorModern(isConstructorModern.call)
|
1087
1281
|
|| !isConstructorModern(Object)
|
@@ -1089,31 +1283,46 @@
|
|
1089
1283
|
|| called;
|
1090
1284
|
}) ? isConstructorLegacy : isConstructorModern;
|
1091
1285
|
|
1092
|
-
var
|
1093
|
-
var
|
1286
|
+
var global$p = global$L;
|
1287
|
+
var isArray$1 = isArray$2;
|
1288
|
+
var isConstructor$1 = isConstructor$2;
|
1289
|
+
var isObject$4 = isObject$a;
|
1290
|
+
var wellKnownSymbol$e = wellKnownSymbol$i;
|
1291
|
+
|
1292
|
+
var SPECIES$5 = wellKnownSymbol$e('species');
|
1293
|
+
var Array$2 = global$p.Array;
|
1094
1294
|
|
1095
1295
|
// a part of `ArraySpeciesCreate` abstract operation
|
1096
1296
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1097
|
-
var arraySpeciesConstructor = function (originalArray) {
|
1297
|
+
var arraySpeciesConstructor$1 = function (originalArray) {
|
1098
1298
|
var C;
|
1099
|
-
if (isArray(originalArray)) {
|
1299
|
+
if (isArray$1(originalArray)) {
|
1100
1300
|
C = originalArray.constructor;
|
1101
1301
|
// cross-realm fallback
|
1102
|
-
if (isConstructor(C) && (C === Array$2 || isArray(C.prototype))) C = undefined;
|
1103
|
-
else if (isObject(C)) {
|
1302
|
+
if (isConstructor$1(C) && (C === Array$2 || isArray$1(C.prototype))) C = undefined;
|
1303
|
+
else if (isObject$4(C)) {
|
1104
1304
|
C = C[SPECIES$5];
|
1105
1305
|
if (C === null) C = undefined;
|
1106
1306
|
}
|
1107
1307
|
} return C === undefined ? Array$2 : C;
|
1108
1308
|
};
|
1109
1309
|
|
1310
|
+
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
1311
|
+
|
1110
1312
|
// `ArraySpeciesCreate` abstract operation
|
1111
1313
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1112
|
-
var arraySpeciesCreate = function (originalArray, length) {
|
1314
|
+
var arraySpeciesCreate$2 = function (originalArray, length) {
|
1113
1315
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
1114
1316
|
};
|
1115
1317
|
|
1116
|
-
var
|
1318
|
+
var bind$4 = functionBindContext;
|
1319
|
+
var uncurryThis$g = functionUncurryThis;
|
1320
|
+
var IndexedObject$2 = indexedObject;
|
1321
|
+
var toObject$5 = toObject$7;
|
1322
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$6;
|
1323
|
+
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
1324
|
+
|
1325
|
+
var push$4 = uncurryThis$g([].push);
|
1117
1326
|
|
1118
1327
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
1119
1328
|
var createMethod$3 = function (TYPE) {
|
@@ -1125,12 +1334,12 @@
|
|
1125
1334
|
var IS_FILTER_REJECT = TYPE == 7;
|
1126
1335
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
1127
1336
|
return function ($this, callbackfn, that, specificCreate) {
|
1128
|
-
var O = toObject($this);
|
1129
|
-
var self =
|
1130
|
-
var boundFunction =
|
1131
|
-
var length = lengthOfArrayLike(self);
|
1337
|
+
var O = toObject$5($this);
|
1338
|
+
var self = IndexedObject$2(O);
|
1339
|
+
var boundFunction = bind$4(callbackfn, that);
|
1340
|
+
var length = lengthOfArrayLike$4(self);
|
1132
1341
|
var index = 0;
|
1133
|
-
var create = specificCreate || arraySpeciesCreate;
|
1342
|
+
var create = specificCreate || arraySpeciesCreate$1;
|
1134
1343
|
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
1135
1344
|
var value, result;
|
1136
1345
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
@@ -1180,13 +1389,17 @@
|
|
1180
1389
|
filterReject: createMethod$3(7)
|
1181
1390
|
};
|
1182
1391
|
|
1183
|
-
var
|
1392
|
+
var fails$g = fails$q;
|
1393
|
+
var wellKnownSymbol$d = wellKnownSymbol$i;
|
1394
|
+
var V8_VERSION$2 = engineV8Version;
|
1395
|
+
|
1396
|
+
var SPECIES$4 = wellKnownSymbol$d('species');
|
1184
1397
|
|
1185
|
-
var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
|
1398
|
+
var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
|
1186
1399
|
// We can't use this feature detection in V8 since it causes
|
1187
1400
|
// deoptimization and serious performance degradation
|
1188
1401
|
// https://github.com/zloirock/core-js/issues/677
|
1189
|
-
return
|
1402
|
+
return V8_VERSION$2 >= 51 || !fails$g(function () {
|
1190
1403
|
var array = [];
|
1191
1404
|
var constructor = array.constructor = {};
|
1192
1405
|
constructor[SPECIES$4] = function () {
|
@@ -1196,64 +1409,97 @@
|
|
1196
1409
|
});
|
1197
1410
|
};
|
1198
1411
|
|
1412
|
+
var $$j = _export;
|
1199
1413
|
var $filter = arrayIteration.filter;
|
1414
|
+
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
|
1200
1415
|
|
1201
|
-
|
1202
|
-
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
1416
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('filter');
|
1203
1417
|
|
1204
1418
|
// `Array.prototype.filter` method
|
1205
1419
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
1206
1420
|
// with adding support of @@species
|
1207
|
-
|
1421
|
+
$$j({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
1208
1422
|
filter: function filter(callbackfn /* , thisArg */) {
|
1209
1423
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1210
1424
|
}
|
1211
1425
|
});
|
1212
1426
|
|
1427
|
+
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
1428
|
+
var classof$5 = classof$7;
|
1429
|
+
|
1213
1430
|
// `Object.prototype.toString` method implementation
|
1214
1431
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1215
|
-
var objectToString =
|
1216
|
-
return '[object ' + classof(this) + ']';
|
1432
|
+
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
1433
|
+
return '[object ' + classof$5(this) + ']';
|
1217
1434
|
};
|
1218
1435
|
|
1436
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
1437
|
+
var defineBuiltIn$4 = defineBuiltIn$6;
|
1438
|
+
var toString$a = objectToString;
|
1439
|
+
|
1219
1440
|
// `Object.prototype.toString` method
|
1220
1441
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1221
|
-
if (!
|
1222
|
-
defineBuiltIn(Object.prototype, 'toString',
|
1442
|
+
if (!TO_STRING_TAG_SUPPORT) {
|
1443
|
+
defineBuiltIn$4(Object.prototype, 'toString', toString$a, { unsafe: true });
|
1223
1444
|
}
|
1224
1445
|
|
1446
|
+
var internalObjectKeys = objectKeysInternal;
|
1447
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
1448
|
+
|
1225
1449
|
// `Object.keys` method
|
1226
1450
|
// https://tc39.es/ecma262/#sec-object.keys
|
1227
1451
|
// eslint-disable-next-line es-x/no-object-keys -- safe
|
1228
|
-
var objectKeys = Object.keys || function keys(O) {
|
1229
|
-
return
|
1452
|
+
var objectKeys$3 = Object.keys || function keys(O) {
|
1453
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
1230
1454
|
};
|
1231
1455
|
|
1232
|
-
var
|
1456
|
+
var $$i = _export;
|
1457
|
+
var toObject$4 = toObject$7;
|
1458
|
+
var nativeKeys = objectKeys$3;
|
1459
|
+
var fails$f = fails$q;
|
1460
|
+
|
1461
|
+
var FAILS_ON_PRIMITIVES = fails$f(function () { nativeKeys(1); });
|
1233
1462
|
|
1234
1463
|
// `Object.keys` method
|
1235
1464
|
// https://tc39.es/ecma262/#sec-object.keys
|
1236
|
-
|
1465
|
+
$$i({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
1237
1466
|
keys: function keys(it) {
|
1238
|
-
return
|
1467
|
+
return nativeKeys(toObject$4(it));
|
1239
1468
|
}
|
1240
1469
|
});
|
1241
1470
|
|
1242
|
-
var
|
1471
|
+
var toPropertyKey = toPropertyKey$3;
|
1472
|
+
var definePropertyModule$3 = objectDefineProperty;
|
1473
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
1474
|
+
|
1475
|
+
var createProperty$2 = function (object, key, value) {
|
1243
1476
|
var propertyKey = toPropertyKey(key);
|
1244
|
-
if (propertyKey in object)
|
1477
|
+
if (propertyKey in object) definePropertyModule$3.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1245
1478
|
else object[propertyKey] = value;
|
1246
1479
|
};
|
1247
1480
|
|
1248
|
-
var
|
1481
|
+
var $$h = _export;
|
1482
|
+
var global$o = global$L;
|
1483
|
+
var fails$e = fails$q;
|
1484
|
+
var isArray = isArray$2;
|
1485
|
+
var isObject$3 = isObject$a;
|
1486
|
+
var toObject$3 = toObject$7;
|
1487
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$6;
|
1488
|
+
var createProperty$1 = createProperty$2;
|
1489
|
+
var arraySpeciesCreate = arraySpeciesCreate$2;
|
1490
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
|
1491
|
+
var wellKnownSymbol$c = wellKnownSymbol$i;
|
1492
|
+
var V8_VERSION$1 = engineV8Version;
|
1493
|
+
|
1494
|
+
var IS_CONCAT_SPREADABLE = wellKnownSymbol$c('isConcatSpreadable');
|
1249
1495
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1250
1496
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1251
|
-
var TypeError$a =
|
1497
|
+
var TypeError$a = global$o.TypeError;
|
1252
1498
|
|
1253
1499
|
// We can't use this feature detection in V8 since it causes
|
1254
1500
|
// deoptimization and serious performance degradation
|
1255
1501
|
// https://github.com/zloirock/core-js/issues/679
|
1256
|
-
var IS_CONCAT_SPREADABLE_SUPPORT =
|
1502
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$e(function () {
|
1257
1503
|
var array = [];
|
1258
1504
|
array[IS_CONCAT_SPREADABLE] = false;
|
1259
1505
|
return array.concat()[0] !== array;
|
@@ -1262,7 +1508,7 @@
|
|
1262
1508
|
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
1263
1509
|
|
1264
1510
|
var isConcatSpreadable = function (O) {
|
1265
|
-
if (!isObject(O)) return false;
|
1511
|
+
if (!isObject$3(O)) return false;
|
1266
1512
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
1267
1513
|
return spreadable !== undefined ? !!spreadable : isArray(O);
|
1268
1514
|
};
|
@@ -1272,22 +1518,22 @@
|
|
1272
1518
|
// `Array.prototype.concat` method
|
1273
1519
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
1274
1520
|
// with adding support of @@isConcatSpreadable and @@species
|
1275
|
-
|
1521
|
+
$$h({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
|
1276
1522
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
1277
1523
|
concat: function concat(arg) {
|
1278
|
-
var O = toObject(this);
|
1524
|
+
var O = toObject$3(this);
|
1279
1525
|
var A = arraySpeciesCreate(O, 0);
|
1280
1526
|
var n = 0;
|
1281
1527
|
var i, k, length, len, E;
|
1282
1528
|
for (i = -1, length = arguments.length; i < length; i++) {
|
1283
1529
|
E = i === -1 ? O : arguments[i];
|
1284
1530
|
if (isConcatSpreadable(E)) {
|
1285
|
-
len = lengthOfArrayLike(E);
|
1531
|
+
len = lengthOfArrayLike$3(E);
|
1286
1532
|
if (n + len > MAX_SAFE_INTEGER) throw TypeError$a(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1287
|
-
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1533
|
+
for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]);
|
1288
1534
|
} else {
|
1289
1535
|
if (n >= MAX_SAFE_INTEGER) throw TypeError$a(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1290
|
-
createProperty(A, n++, E);
|
1536
|
+
createProperty$1(A, n++, E);
|
1291
1537
|
}
|
1292
1538
|
}
|
1293
1539
|
A.length = n;
|
@@ -1295,34 +1541,42 @@
|
|
1295
1541
|
}
|
1296
1542
|
});
|
1297
1543
|
|
1544
|
+
var objectDefineProperties = {};
|
1545
|
+
|
1546
|
+
var DESCRIPTORS$3 = descriptors;
|
1547
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
1548
|
+
var definePropertyModule$2 = objectDefineProperty;
|
1549
|
+
var anObject$d = anObject$g;
|
1550
|
+
var toIndexedObject$2 = toIndexedObject$6;
|
1551
|
+
var objectKeys$2 = objectKeys$3;
|
1552
|
+
|
1298
1553
|
// `Object.defineProperties` method
|
1299
1554
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1300
1555
|
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1301
|
-
|
1302
|
-
anObject(O);
|
1303
|
-
var props = toIndexedObject(Properties);
|
1304
|
-
var keys = objectKeys(Properties);
|
1556
|
+
objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
1557
|
+
anObject$d(O);
|
1558
|
+
var props = toIndexedObject$2(Properties);
|
1559
|
+
var keys = objectKeys$2(Properties);
|
1305
1560
|
var length = keys.length;
|
1306
1561
|
var index = 0;
|
1307
1562
|
var key;
|
1308
|
-
while (length > index)
|
1563
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
|
1309
1564
|
return O;
|
1310
1565
|
};
|
1311
1566
|
|
1312
|
-
var
|
1313
|
-
f: f$1
|
1314
|
-
};
|
1567
|
+
var getBuiltIn$3 = getBuiltIn$8;
|
1315
1568
|
|
1316
|
-
var html = getBuiltIn('document', 'documentElement');
|
1569
|
+
var html$2 = getBuiltIn$3('document', 'documentElement');
|
1317
1570
|
|
1318
1571
|
/* global ActiveXObject -- old IE, WSH */
|
1319
1572
|
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1573
|
+
var anObject$c = anObject$g;
|
1574
|
+
var definePropertiesModule = objectDefineProperties;
|
1575
|
+
var enumBugKeys = enumBugKeys$3;
|
1576
|
+
var hiddenKeys = hiddenKeys$4;
|
1577
|
+
var html$1 = html$2;
|
1578
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
1579
|
+
var sharedKey = sharedKey$2;
|
1326
1580
|
|
1327
1581
|
var GT = '>';
|
1328
1582
|
var LT = '<';
|
@@ -1348,11 +1602,11 @@
|
|
1348
1602
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1349
1603
|
var NullProtoObjectViaIFrame = function () {
|
1350
1604
|
// Thrash, waste and sodomy: IE GC bug
|
1351
|
-
var iframe = documentCreateElement('iframe');
|
1605
|
+
var iframe = documentCreateElement$1('iframe');
|
1352
1606
|
var JS = 'java' + SCRIPT + ':';
|
1353
1607
|
var iframeDocument;
|
1354
1608
|
iframe.style.display = 'none';
|
1355
|
-
html.appendChild(iframe);
|
1609
|
+
html$1.appendChild(iframe);
|
1356
1610
|
// https://github.com/zloirock/core-js/issues/475
|
1357
1611
|
iframe.src = String(JS);
|
1358
1612
|
iframeDocument = iframe.contentWindow.document;
|
@@ -1382,7 +1636,7 @@
|
|
1382
1636
|
return NullProtoObject();
|
1383
1637
|
};
|
1384
1638
|
|
1385
|
-
hiddenKeys
|
1639
|
+
hiddenKeys[IE_PROTO] = true;
|
1386
1640
|
|
1387
1641
|
// `Object.create` method
|
1388
1642
|
// https://tc39.es/ecma262/#sec-object.create
|
@@ -1390,77 +1644,94 @@
|
|
1390
1644
|
var objectCreate = Object.create || function create(O, Properties) {
|
1391
1645
|
var result;
|
1392
1646
|
if (O !== null) {
|
1393
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
1647
|
+
EmptyConstructor[PROTOTYPE] = anObject$c(O);
|
1394
1648
|
result = new EmptyConstructor();
|
1395
1649
|
EmptyConstructor[PROTOTYPE] = null;
|
1396
1650
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
1397
1651
|
result[IE_PROTO] = O;
|
1398
1652
|
} else result = NullProtoObject();
|
1399
|
-
return Properties === undefined ? result :
|
1653
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
1400
1654
|
};
|
1401
1655
|
|
1402
|
-
var
|
1656
|
+
var wellKnownSymbol$b = wellKnownSymbol$i;
|
1657
|
+
var create$1 = objectCreate;
|
1658
|
+
var definePropertyModule$1 = objectDefineProperty;
|
1659
|
+
|
1660
|
+
var UNSCOPABLES = wellKnownSymbol$b('unscopables');
|
1403
1661
|
var ArrayPrototype$1 = Array.prototype;
|
1404
1662
|
|
1405
1663
|
// Array.prototype[@@unscopables]
|
1406
1664
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1407
1665
|
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
1408
|
-
|
1666
|
+
definePropertyModule$1.f(ArrayPrototype$1, UNSCOPABLES, {
|
1409
1667
|
configurable: true,
|
1410
|
-
value:
|
1668
|
+
value: create$1(null)
|
1411
1669
|
});
|
1412
1670
|
}
|
1413
1671
|
|
1414
1672
|
// add a key to Array.prototype[@@unscopables]
|
1415
|
-
var addToUnscopables = function (key) {
|
1673
|
+
var addToUnscopables$2 = function (key) {
|
1416
1674
|
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
1417
1675
|
};
|
1418
1676
|
|
1677
|
+
var $$g = _export;
|
1419
1678
|
var $includes = arrayIncludes.includes;
|
1420
|
-
|
1421
|
-
|
1679
|
+
var fails$d = fails$q;
|
1680
|
+
var addToUnscopables$1 = addToUnscopables$2;
|
1422
1681
|
|
1423
1682
|
// FF99+ bug
|
1424
|
-
var BROKEN_ON_SPARSE = fails(function () {
|
1683
|
+
var BROKEN_ON_SPARSE = fails$d(function () {
|
1425
1684
|
return !Array(1).includes();
|
1426
1685
|
});
|
1427
1686
|
|
1428
1687
|
// `Array.prototype.includes` method
|
1429
1688
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
1430
|
-
|
1689
|
+
$$g({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
1431
1690
|
includes: function includes(el /* , fromIndex = 0 */) {
|
1432
1691
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
1433
1692
|
}
|
1434
1693
|
});
|
1435
1694
|
|
1436
1695
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1437
|
-
addToUnscopables('includes');
|
1696
|
+
addToUnscopables$1('includes');
|
1697
|
+
|
1698
|
+
var isObject$2 = isObject$a;
|
1699
|
+
var classof$4 = classofRaw$1;
|
1700
|
+
var wellKnownSymbol$a = wellKnownSymbol$i;
|
1438
1701
|
|
1439
|
-
var MATCH$1 = wellKnownSymbol('match');
|
1702
|
+
var MATCH$1 = wellKnownSymbol$a('match');
|
1440
1703
|
|
1441
1704
|
// `IsRegExp` abstract operation
|
1442
1705
|
// https://tc39.es/ecma262/#sec-isregexp
|
1443
1706
|
var isRegexp = function (it) {
|
1444
1707
|
var isRegExp;
|
1445
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp :
|
1708
|
+
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp');
|
1446
1709
|
};
|
1447
1710
|
|
1448
|
-
var
|
1711
|
+
var global$n = global$L;
|
1712
|
+
var isRegExp$1 = isRegexp;
|
1713
|
+
|
1714
|
+
var TypeError$9 = global$n.TypeError;
|
1449
1715
|
|
1450
1716
|
var notARegexp = function (it) {
|
1451
|
-
if (
|
1717
|
+
if (isRegExp$1(it)) {
|
1452
1718
|
throw TypeError$9("The method doesn't accept regular expressions");
|
1453
1719
|
} return it;
|
1454
1720
|
};
|
1455
1721
|
|
1456
|
-
var
|
1722
|
+
var global$m = global$L;
|
1723
|
+
var classof$3 = classof$7;
|
1457
1724
|
|
1458
|
-
var
|
1459
|
-
|
1725
|
+
var String$3 = global$m.String;
|
1726
|
+
|
1727
|
+
var toString$9 = function (argument) {
|
1728
|
+
if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1460
1729
|
return String$3(argument);
|
1461
1730
|
};
|
1462
1731
|
|
1463
|
-
var
|
1732
|
+
var wellKnownSymbol$9 = wellKnownSymbol$i;
|
1733
|
+
|
1734
|
+
var MATCH = wellKnownSymbol$9('match');
|
1464
1735
|
|
1465
1736
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
1466
1737
|
var regexp = /./;
|
@@ -1474,15 +1745,22 @@
|
|
1474
1745
|
} return false;
|
1475
1746
|
};
|
1476
1747
|
|
1477
|
-
var
|
1748
|
+
var $$f = _export;
|
1749
|
+
var uncurryThis$f = functionUncurryThis;
|
1750
|
+
var notARegExp = notARegexp;
|
1751
|
+
var requireObjectCoercible$5 = requireObjectCoercible$8;
|
1752
|
+
var toString$8 = toString$9;
|
1753
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
1754
|
+
|
1755
|
+
var stringIndexOf$1 = uncurryThis$f(''.indexOf);
|
1478
1756
|
|
1479
1757
|
// `String.prototype.includes` method
|
1480
1758
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
1481
|
-
|
1759
|
+
$$f({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
1482
1760
|
includes: function includes(searchString /* , position = 0 */) {
|
1483
1761
|
return !!~stringIndexOf$1(
|
1484
|
-
|
1485
|
-
|
1762
|
+
toString$8(requireObjectCoercible$5(this)),
|
1763
|
+
toString$8(notARegExp(searchString)),
|
1486
1764
|
arguments.length > 1 ? arguments[1] : undefined
|
1487
1765
|
);
|
1488
1766
|
}
|
@@ -1525,25 +1803,27 @@
|
|
1525
1803
|
};
|
1526
1804
|
|
1527
1805
|
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
1528
|
-
|
1806
|
+
var documentCreateElement = documentCreateElement$2;
|
1529
1807
|
|
1530
1808
|
var classList = documentCreateElement('span').classList;
|
1531
|
-
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
|
1809
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
1810
|
+
|
1811
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
1532
1812
|
|
1533
|
-
var
|
1813
|
+
var fails$c = fails$q;
|
1534
1814
|
|
1535
|
-
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
1815
|
+
var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
|
1536
1816
|
var method = [][METHOD_NAME];
|
1537
|
-
return !!method && fails(function () {
|
1817
|
+
return !!method && fails$c(function () {
|
1538
1818
|
// eslint-disable-next-line no-useless-call -- required for testing
|
1539
1819
|
method.call(null, argument || function () { return 1; }, 1);
|
1540
1820
|
});
|
1541
1821
|
};
|
1542
1822
|
|
1543
1823
|
var $forEach = arrayIteration.forEach;
|
1824
|
+
var arrayMethodIsStrict$3 = arrayMethodIsStrict$4;
|
1544
1825
|
|
1545
|
-
|
1546
|
-
var STRICT_METHOD$3 = arrayMethodIsStrict('forEach');
|
1826
|
+
var STRICT_METHOD$3 = arrayMethodIsStrict$3('forEach');
|
1547
1827
|
|
1548
1828
|
// `Array.prototype.forEach` method implementation
|
1549
1829
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
@@ -1552,40 +1832,50 @@
|
|
1552
1832
|
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
1553
1833
|
} : [].forEach;
|
1554
1834
|
|
1835
|
+
var global$l = global$L;
|
1836
|
+
var DOMIterables = domIterables;
|
1837
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
1838
|
+
var forEach = arrayForEach;
|
1839
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
1840
|
+
|
1555
1841
|
var handlePrototype = function (CollectionPrototype) {
|
1556
1842
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
1557
|
-
if (CollectionPrototype && CollectionPrototype.forEach !==
|
1558
|
-
createNonEnumerableProperty(CollectionPrototype, 'forEach',
|
1843
|
+
if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
|
1844
|
+
createNonEnumerableProperty$1(CollectionPrototype, 'forEach', forEach);
|
1559
1845
|
} catch (error) {
|
1560
|
-
CollectionPrototype.forEach =
|
1846
|
+
CollectionPrototype.forEach = forEach;
|
1561
1847
|
}
|
1562
1848
|
};
|
1563
1849
|
|
1564
|
-
for (var COLLECTION_NAME in
|
1565
|
-
if (
|
1566
|
-
handlePrototype(
|
1850
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
1851
|
+
if (DOMIterables[COLLECTION_NAME]) {
|
1852
|
+
handlePrototype(global$l[COLLECTION_NAME] && global$l[COLLECTION_NAME].prototype);
|
1567
1853
|
}
|
1568
1854
|
}
|
1569
1855
|
|
1570
|
-
handlePrototype(
|
1856
|
+
handlePrototype(DOMTokenListPrototype);
|
1571
1857
|
|
1858
|
+
var DESCRIPTORS$2 = descriptors;
|
1859
|
+
var uncurryThis$e = functionUncurryThis;
|
1860
|
+
var objectKeys$1 = objectKeys$3;
|
1861
|
+
var toIndexedObject$1 = toIndexedObject$6;
|
1572
1862
|
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1573
1863
|
|
1574
|
-
var propertyIsEnumerable =
|
1575
|
-
var push$3 =
|
1864
|
+
var propertyIsEnumerable = uncurryThis$e($propertyIsEnumerable);
|
1865
|
+
var push$3 = uncurryThis$e([].push);
|
1576
1866
|
|
1577
1867
|
// `Object.{ entries, values }` methods implementation
|
1578
1868
|
var createMethod$2 = function (TO_ENTRIES) {
|
1579
1869
|
return function (it) {
|
1580
|
-
var O = toIndexedObject(it);
|
1581
|
-
var keys = objectKeys(O);
|
1870
|
+
var O = toIndexedObject$1(it);
|
1871
|
+
var keys = objectKeys$1(O);
|
1582
1872
|
var length = keys.length;
|
1583
1873
|
var i = 0;
|
1584
1874
|
var result = [];
|
1585
1875
|
var key;
|
1586
1876
|
while (length > i) {
|
1587
1877
|
key = keys[i++];
|
1588
|
-
if (!
|
1878
|
+
if (!DESCRIPTORS$2 || propertyIsEnumerable(O, key)) {
|
1589
1879
|
push$3(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
1590
1880
|
}
|
1591
1881
|
}
|
@@ -1602,20 +1892,23 @@
|
|
1602
1892
|
values: createMethod$2(false)
|
1603
1893
|
};
|
1604
1894
|
|
1895
|
+
var $$e = _export;
|
1605
1896
|
var $values = objectToArray.values;
|
1606
1897
|
|
1607
1898
|
// `Object.values` method
|
1608
1899
|
// https://tc39.es/ecma262/#sec-object.values
|
1609
|
-
|
1900
|
+
$$e({ target: 'Object', stat: true }, {
|
1610
1901
|
values: function values(O) {
|
1611
1902
|
return $values(O);
|
1612
1903
|
}
|
1613
1904
|
});
|
1614
1905
|
|
1906
|
+
var anObject$b = anObject$g;
|
1907
|
+
|
1615
1908
|
// `RegExp.prototype.flags` getter implementation
|
1616
1909
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
1617
|
-
var regexpFlags = function () {
|
1618
|
-
var that = anObject(this);
|
1910
|
+
var regexpFlags$1 = function () {
|
1911
|
+
var that = anObject$b(this);
|
1619
1912
|
var result = '';
|
1620
1913
|
if (that.hasIndices) result += 'd';
|
1621
1914
|
if (that.global) result += 'g';
|
@@ -1627,54 +1920,59 @@
|
|
1627
1920
|
return result;
|
1628
1921
|
};
|
1629
1922
|
|
1923
|
+
var call$e = functionCall;
|
1924
|
+
var hasOwn$2 = hasOwnProperty_1;
|
1925
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
1926
|
+
var regExpFlags = regexpFlags$1;
|
1927
|
+
|
1630
1928
|
var RegExpPrototype$2 = RegExp.prototype;
|
1631
1929
|
|
1632
1930
|
var regexpGetFlags = function (R) {
|
1633
1931
|
var flags = R.flags;
|
1634
|
-
return flags === undefined && !('flags' in RegExpPrototype$2) && !
|
1635
|
-
?
|
1932
|
+
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$2(R, 'flags') && isPrototypeOf$2(RegExpPrototype$2, R)
|
1933
|
+
? call$e(regExpFlags, R) : flags;
|
1636
1934
|
};
|
1637
1935
|
|
1638
1936
|
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1937
|
+
var defineBuiltIn$3 = defineBuiltIn$6;
|
1938
|
+
var anObject$a = anObject$g;
|
1939
|
+
var $toString = toString$9;
|
1940
|
+
var fails$b = fails$q;
|
1941
|
+
var getRegExpFlags = regexpGetFlags;
|
1644
1942
|
|
1645
1943
|
var TO_STRING = 'toString';
|
1646
1944
|
var RegExpPrototype$1 = RegExp.prototype;
|
1647
1945
|
var n$ToString = RegExpPrototype$1[TO_STRING];
|
1648
1946
|
|
1649
|
-
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
1947
|
+
var NOT_GENERIC = fails$b(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
1650
1948
|
// FF44- RegExp#toString has a wrong name
|
1651
1949
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && n$ToString.name != TO_STRING;
|
1652
1950
|
|
1653
1951
|
// `RegExp.prototype.toString` method
|
1654
1952
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
1655
1953
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
1656
|
-
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
1657
|
-
var R = anObject(this);
|
1658
|
-
var pattern =
|
1659
|
-
var flags =
|
1954
|
+
defineBuiltIn$3(RegExp.prototype, TO_STRING, function toString() {
|
1955
|
+
var R = anObject$a(this);
|
1956
|
+
var pattern = $toString(R.source);
|
1957
|
+
var flags = $toString(getRegExpFlags(R));
|
1660
1958
|
return '/' + pattern + '/' + flags;
|
1661
1959
|
}, { unsafe: true });
|
1662
1960
|
}
|
1663
1961
|
|
1664
1962
|
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
|
1665
|
-
|
1666
|
-
|
1963
|
+
var $$d = _export;
|
1964
|
+
var uncurryThis$d = functionUncurryThis;
|
1667
1965
|
var $IndexOf = arrayIncludes.indexOf;
|
1966
|
+
var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;
|
1668
1967
|
|
1669
|
-
|
1670
|
-
var un$IndexOf = functionUncurryThis([].indexOf);
|
1968
|
+
var un$IndexOf = uncurryThis$d([].indexOf);
|
1671
1969
|
|
1672
1970
|
var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
|
1673
|
-
var STRICT_METHOD$2 = arrayMethodIsStrict('indexOf');
|
1971
|
+
var STRICT_METHOD$2 = arrayMethodIsStrict$2('indexOf');
|
1674
1972
|
|
1675
1973
|
// `Array.prototype.indexOf` method
|
1676
1974
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
1677
|
-
|
1975
|
+
$$d({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$2 }, {
|
1678
1976
|
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
|
1679
1977
|
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
|
1680
1978
|
return NEGATIVE_ZERO
|
@@ -1684,10 +1982,13 @@
|
|
1684
1982
|
}
|
1685
1983
|
});
|
1686
1984
|
|
1985
|
+
var fails$a = fails$q;
|
1986
|
+
var global$k = global$L;
|
1987
|
+
|
1687
1988
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
1688
|
-
var $RegExp$2 =
|
1989
|
+
var $RegExp$2 = global$k.RegExp;
|
1689
1990
|
|
1690
|
-
var UNSUPPORTED_Y$2 = fails(function () {
|
1991
|
+
var UNSUPPORTED_Y$2 = fails$a(function () {
|
1691
1992
|
var re = $RegExp$2('a', 'y');
|
1692
1993
|
re.lastIndex = 2;
|
1693
1994
|
return re.exec('abcd') != null;
|
@@ -1695,11 +1996,11 @@
|
|
1695
1996
|
|
1696
1997
|
// UC Browser bug
|
1697
1998
|
// https://github.com/zloirock/core-js/issues/1008
|
1698
|
-
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails(function () {
|
1999
|
+
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$a(function () {
|
1699
2000
|
return !$RegExp$2('a', 'y').sticky;
|
1700
2001
|
});
|
1701
2002
|
|
1702
|
-
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails(function () {
|
2003
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$a(function () {
|
1703
2004
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
1704
2005
|
var re = $RegExp$2('^r', 'gy');
|
1705
2006
|
re.lastIndex = 2;
|
@@ -1712,18 +2013,24 @@
|
|
1712
2013
|
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
1713
2014
|
};
|
1714
2015
|
|
2016
|
+
var fails$9 = fails$q;
|
2017
|
+
var global$j = global$L;
|
2018
|
+
|
1715
2019
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
1716
|
-
var $RegExp$1 =
|
2020
|
+
var $RegExp$1 = global$j.RegExp;
|
1717
2021
|
|
1718
|
-
var regexpUnsupportedDotAll = fails(function () {
|
2022
|
+
var regexpUnsupportedDotAll = fails$9(function () {
|
1719
2023
|
var re = $RegExp$1('.', 's');
|
1720
2024
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
1721
2025
|
});
|
1722
2026
|
|
2027
|
+
var fails$8 = fails$q;
|
2028
|
+
var global$i = global$L;
|
2029
|
+
|
1723
2030
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
1724
|
-
var $RegExp =
|
2031
|
+
var $RegExp = global$i.RegExp;
|
1725
2032
|
|
1726
|
-
var regexpUnsupportedNcg = fails(function () {
|
2033
|
+
var regexpUnsupportedNcg = fails$8(function () {
|
1727
2034
|
var re = $RegExp('(?<a>b)', 'g');
|
1728
2035
|
return re.exec('b').groups.a !== 'b' ||
|
1729
2036
|
'b'.replace(re, '$<a>c') !== 'bc';
|
@@ -1731,58 +2038,58 @@
|
|
1731
2038
|
|
1732
2039
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
1733
2040
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
2041
|
+
var call$d = functionCall;
|
2042
|
+
var uncurryThis$c = functionUncurryThis;
|
2043
|
+
var toString$7 = toString$9;
|
2044
|
+
var regexpFlags = regexpFlags$1;
|
2045
|
+
var stickyHelpers$1 = regexpStickyHelpers;
|
2046
|
+
var shared = shared$4.exports;
|
2047
|
+
var create = objectCreate;
|
1741
2048
|
var getInternalState = internalState.get;
|
1742
|
-
|
1743
|
-
|
2049
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
2050
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
1744
2051
|
|
1745
2052
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
1746
2053
|
var nativeExec = RegExp.prototype.exec;
|
1747
2054
|
var patchedExec = nativeExec;
|
1748
|
-
var charAt$3 =
|
1749
|
-
var indexOf =
|
1750
|
-
var replace$2 =
|
1751
|
-
var stringSlice$4 =
|
2055
|
+
var charAt$3 = uncurryThis$c(''.charAt);
|
2056
|
+
var indexOf = uncurryThis$c(''.indexOf);
|
2057
|
+
var replace$2 = uncurryThis$c(''.replace);
|
2058
|
+
var stringSlice$4 = uncurryThis$c(''.slice);
|
1752
2059
|
|
1753
2060
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
1754
2061
|
var re1 = /a/;
|
1755
2062
|
var re2 = /b*/g;
|
1756
|
-
|
1757
|
-
|
2063
|
+
call$d(nativeExec, re1, 'a');
|
2064
|
+
call$d(nativeExec, re2, 'a');
|
1758
2065
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
1759
2066
|
})();
|
1760
2067
|
|
1761
|
-
var UNSUPPORTED_Y$1 =
|
2068
|
+
var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
|
1762
2069
|
|
1763
2070
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
1764
2071
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
1765
2072
|
|
1766
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 ||
|
2073
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
1767
2074
|
|
1768
2075
|
if (PATCH) {
|
1769
2076
|
patchedExec = function exec(string) {
|
1770
2077
|
var re = this;
|
1771
2078
|
var state = getInternalState(re);
|
1772
|
-
var str =
|
2079
|
+
var str = toString$7(string);
|
1773
2080
|
var raw = state.raw;
|
1774
2081
|
var result, reCopy, lastIndex, match, i, object, group;
|
1775
2082
|
|
1776
2083
|
if (raw) {
|
1777
2084
|
raw.lastIndex = re.lastIndex;
|
1778
|
-
result =
|
2085
|
+
result = call$d(patchedExec, raw, str);
|
1779
2086
|
re.lastIndex = raw.lastIndex;
|
1780
2087
|
return result;
|
1781
2088
|
}
|
1782
2089
|
|
1783
2090
|
var groups = state.groups;
|
1784
2091
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
1785
|
-
var flags =
|
2092
|
+
var flags = call$d(regexpFlags, re);
|
1786
2093
|
var source = re.source;
|
1787
2094
|
var charsAdded = 0;
|
1788
2095
|
var strCopy = str;
|
@@ -1810,7 +2117,7 @@
|
|
1810
2117
|
}
|
1811
2118
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
1812
2119
|
|
1813
|
-
match =
|
2120
|
+
match = call$d(nativeExec, sticky ? reCopy : re, strCopy);
|
1814
2121
|
|
1815
2122
|
if (sticky) {
|
1816
2123
|
if (match) {
|
@@ -1825,7 +2132,7 @@
|
|
1825
2132
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
1826
2133
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
1827
2134
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
1828
|
-
|
2135
|
+
call$d(nativeReplace, match[0], reCopy, function () {
|
1829
2136
|
for (i = 1; i < arguments.length - 2; i++) {
|
1830
2137
|
if (arguments[i] === undefined) match[i] = undefined;
|
1831
2138
|
}
|
@@ -1833,7 +2140,7 @@
|
|
1833
2140
|
}
|
1834
2141
|
|
1835
2142
|
if (match && groups) {
|
1836
|
-
match.groups = object =
|
2143
|
+
match.groups = object = create(null);
|
1837
2144
|
for (i = 0; i < groups.length; i++) {
|
1838
2145
|
group = groups[i];
|
1839
2146
|
object[group[0]] = match[group[1]];
|
@@ -1844,27 +2151,35 @@
|
|
1844
2151
|
};
|
1845
2152
|
}
|
1846
2153
|
|
1847
|
-
var regexpExec = patchedExec;
|
2154
|
+
var regexpExec$3 = patchedExec;
|
2155
|
+
|
2156
|
+
var $$c = _export;
|
2157
|
+
var exec$2 = regexpExec$3;
|
1848
2158
|
|
1849
2159
|
// `RegExp.prototype.exec` method
|
1850
2160
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
1851
|
-
|
1852
|
-
exec:
|
2161
|
+
$$c({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
|
2162
|
+
exec: exec$2
|
1853
2163
|
});
|
1854
2164
|
|
1855
2165
|
// a string of all valid unicode whitespaces
|
1856
|
-
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
2166
|
+
var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
1857
2167
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
1858
2168
|
|
1859
|
-
var
|
1860
|
-
var
|
2169
|
+
var uncurryThis$b = functionUncurryThis;
|
2170
|
+
var requireObjectCoercible$4 = requireObjectCoercible$8;
|
2171
|
+
var toString$6 = toString$9;
|
2172
|
+
var whitespaces$2 = whitespaces$3;
|
2173
|
+
|
2174
|
+
var replace$1 = uncurryThis$b(''.replace);
|
2175
|
+
var whitespace = '[' + whitespaces$2 + ']';
|
1861
2176
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
1862
2177
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
1863
2178
|
|
1864
2179
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
1865
2180
|
var createMethod$1 = function (TYPE) {
|
1866
2181
|
return function ($this) {
|
1867
|
-
var string =
|
2182
|
+
var string = toString$6(requireObjectCoercible$4($this));
|
1868
2183
|
if (TYPE & 1) string = replace$1(string, ltrim, '');
|
1869
2184
|
if (TYPE & 2) string = replace$1(string, rtrim, '');
|
1870
2185
|
return string;
|
@@ -1883,42 +2198,59 @@
|
|
1883
2198
|
trim: createMethod$1(3)
|
1884
2199
|
};
|
1885
2200
|
|
2201
|
+
var global$h = global$L;
|
2202
|
+
var fails$7 = fails$q;
|
2203
|
+
var uncurryThis$a = functionUncurryThis;
|
2204
|
+
var toString$5 = toString$9;
|
1886
2205
|
var trim = stringTrim.trim;
|
2206
|
+
var whitespaces$1 = whitespaces$3;
|
1887
2207
|
|
1888
|
-
|
1889
|
-
var $
|
1890
|
-
var Symbol$1 = global_1.Symbol;
|
2208
|
+
var $parseInt$1 = global$h.parseInt;
|
2209
|
+
var Symbol$1 = global$h.Symbol;
|
1891
2210
|
var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
|
1892
2211
|
var hex = /^[+-]?0x/i;
|
1893
|
-
var exec$1 =
|
1894
|
-
var FORCED$1 = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
|
2212
|
+
var exec$1 = uncurryThis$a(hex.exec);
|
2213
|
+
var FORCED$1 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
|
1895
2214
|
// MS Edge 18- broken with boxed symbols
|
1896
|
-
|| (ITERATOR$3 && !fails(function () { $parseInt(Object(ITERATOR$3)); }));
|
2215
|
+
|| (ITERATOR$3 && !fails$7(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
1897
2216
|
|
1898
2217
|
// `parseInt` method
|
1899
2218
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
1900
2219
|
var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
|
1901
|
-
var S = trim(
|
1902
|
-
return $parseInt(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
|
1903
|
-
} : $parseInt;
|
2220
|
+
var S = trim(toString$5(string));
|
2221
|
+
return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
|
2222
|
+
} : $parseInt$1;
|
2223
|
+
|
2224
|
+
var $$b = _export;
|
2225
|
+
var $parseInt = numberParseInt;
|
1904
2226
|
|
1905
2227
|
// `parseInt` method
|
1906
2228
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
1907
|
-
|
1908
|
-
parseInt:
|
2229
|
+
$$b({ global: true, forced: parseInt != $parseInt }, {
|
2230
|
+
parseInt: $parseInt
|
1909
2231
|
});
|
1910
2232
|
|
2233
|
+
var DESCRIPTORS$1 = descriptors;
|
2234
|
+
var uncurryThis$9 = functionUncurryThis;
|
2235
|
+
var call$c = functionCall;
|
2236
|
+
var fails$6 = fails$q;
|
2237
|
+
var objectKeys = objectKeys$3;
|
2238
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
2239
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
2240
|
+
var toObject$2 = toObject$7;
|
2241
|
+
var IndexedObject$1 = indexedObject;
|
2242
|
+
|
1911
2243
|
// eslint-disable-next-line es-x/no-object-assign -- safe
|
1912
2244
|
var $assign = Object.assign;
|
1913
2245
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
1914
2246
|
var defineProperty$1 = Object.defineProperty;
|
1915
|
-
var concat$1 =
|
2247
|
+
var concat$1 = uncurryThis$9([].concat);
|
1916
2248
|
|
1917
2249
|
// `Object.assign` method
|
1918
2250
|
// https://tc39.es/ecma262/#sec-object.assign
|
1919
|
-
var objectAssign = !$assign || fails(function () {
|
2251
|
+
var objectAssign = !$assign || fails$6(function () {
|
1920
2252
|
// should have correct order of operations (Edge bug)
|
1921
|
-
if (
|
2253
|
+
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
|
1922
2254
|
enumerable: true,
|
1923
2255
|
get: function () {
|
1924
2256
|
defineProperty$1(this, 'b', {
|
@@ -1937,33 +2269,37 @@
|
|
1937
2269
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
1938
2270
|
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
1939
2271
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
1940
|
-
var T = toObject(target);
|
2272
|
+
var T = toObject$2(target);
|
1941
2273
|
var argumentsLength = arguments.length;
|
1942
2274
|
var index = 1;
|
1943
|
-
var getOwnPropertySymbols =
|
1944
|
-
var propertyIsEnumerable =
|
2275
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
2276
|
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
1945
2277
|
while (argumentsLength > index) {
|
1946
|
-
var S =
|
2278
|
+
var S = IndexedObject$1(arguments[index++]);
|
1947
2279
|
var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
1948
2280
|
var length = keys.length;
|
1949
2281
|
var j = 0;
|
1950
2282
|
var key;
|
1951
2283
|
while (length > j) {
|
1952
2284
|
key = keys[j++];
|
1953
|
-
if (!
|
2285
|
+
if (!DESCRIPTORS$1 || call$c(propertyIsEnumerable, S, key)) T[key] = S[key];
|
1954
2286
|
}
|
1955
2287
|
} return T;
|
1956
2288
|
} : $assign;
|
1957
2289
|
|
2290
|
+
var $$a = _export;
|
2291
|
+
var assign = objectAssign;
|
2292
|
+
|
1958
2293
|
// `Object.assign` method
|
1959
2294
|
// https://tc39.es/ecma262/#sec-object.assign
|
1960
2295
|
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
1961
|
-
|
1962
|
-
assign:
|
2296
|
+
$$a({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
2297
|
+
assign: assign
|
1963
2298
|
});
|
1964
2299
|
|
2300
|
+
var $$9 = _export;
|
1965
2301
|
var $find = arrayIteration.find;
|
1966
|
-
|
2302
|
+
var addToUnscopables = addToUnscopables$2;
|
1967
2303
|
|
1968
2304
|
var FIND = 'find';
|
1969
2305
|
var SKIPS_HOLES = true;
|
@@ -1973,7 +2309,7 @@
|
|
1973
2309
|
|
1974
2310
|
// `Array.prototype.find` method
|
1975
2311
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
1976
|
-
|
2312
|
+
$$9({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
1977
2313
|
find: function find(callbackfn /* , that = undefined */) {
|
1978
2314
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1979
2315
|
}
|
@@ -1982,20 +2318,27 @@
|
|
1982
2318
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1983
2319
|
addToUnscopables(FIND);
|
1984
2320
|
|
1985
|
-
var
|
2321
|
+
var classof$2 = classofRaw$1;
|
2322
|
+
var global$g = global$L;
|
2323
|
+
|
2324
|
+
var engineIsNode = classof$2(global$g.process) == 'process';
|
2325
|
+
|
2326
|
+
var global$f = global$L;
|
2327
|
+
var isCallable$6 = isCallable$j;
|
1986
2328
|
|
1987
|
-
var String$2 =
|
1988
|
-
var TypeError$8 =
|
2329
|
+
var String$2 = global$f.String;
|
2330
|
+
var TypeError$8 = global$f.TypeError;
|
1989
2331
|
|
1990
|
-
var aPossiblePrototype = function (argument) {
|
1991
|
-
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
2332
|
+
var aPossiblePrototype$1 = function (argument) {
|
2333
|
+
if (typeof argument == 'object' || isCallable$6(argument)) return argument;
|
1992
2334
|
throw TypeError$8("Can't set " + String$2(argument) + ' as a prototype');
|
1993
2335
|
};
|
1994
2336
|
|
1995
2337
|
/* eslint-disable no-proto -- safe */
|
1996
2338
|
|
1997
|
-
|
1998
|
-
|
2339
|
+
var uncurryThis$8 = functionUncurryThis;
|
2340
|
+
var anObject$9 = anObject$g;
|
2341
|
+
var aPossiblePrototype = aPossiblePrototype$1;
|
1999
2342
|
|
2000
2343
|
// `Object.setPrototypeOf` method
|
2001
2344
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
@@ -2007,12 +2350,12 @@
|
|
2007
2350
|
var setter;
|
2008
2351
|
try {
|
2009
2352
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
2010
|
-
setter =
|
2353
|
+
setter = uncurryThis$8(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
2011
2354
|
setter(test, []);
|
2012
2355
|
CORRECT_SETTER = test instanceof Array;
|
2013
2356
|
} catch (error) { /* empty */ }
|
2014
2357
|
return function setPrototypeOf(O, proto) {
|
2015
|
-
anObject(O);
|
2358
|
+
anObject$9(O);
|
2016
2359
|
aPossiblePrototype(proto);
|
2017
2360
|
if (CORRECT_SETTER) setter(O, proto);
|
2018
2361
|
else O.__proto__ = proto;
|
@@ -2021,25 +2364,30 @@
|
|
2021
2364
|
}() : undefined);
|
2022
2365
|
|
2023
2366
|
var defineProperty = objectDefineProperty.f;
|
2367
|
+
var hasOwn$1 = hasOwnProperty_1;
|
2368
|
+
var wellKnownSymbol$8 = wellKnownSymbol$i;
|
2024
2369
|
|
2370
|
+
var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
|
2025
2371
|
|
2026
|
-
|
2027
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
2028
|
-
|
2029
|
-
var setToStringTag = function (target, TAG, STATIC) {
|
2372
|
+
var setToStringTag$1 = function (target, TAG, STATIC) {
|
2030
2373
|
if (target && !STATIC) target = target.prototype;
|
2031
|
-
if (target && !
|
2374
|
+
if (target && !hasOwn$1(target, TO_STRING_TAG)) {
|
2032
2375
|
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
2033
2376
|
}
|
2034
2377
|
};
|
2035
2378
|
|
2036
|
-
var
|
2379
|
+
var getBuiltIn$2 = getBuiltIn$8;
|
2380
|
+
var definePropertyModule = objectDefineProperty;
|
2381
|
+
var wellKnownSymbol$7 = wellKnownSymbol$i;
|
2382
|
+
var DESCRIPTORS = descriptors;
|
2037
2383
|
|
2038
|
-
var
|
2039
|
-
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
2040
|
-
var defineProperty = objectDefineProperty.f;
|
2384
|
+
var SPECIES$3 = wellKnownSymbol$7('species');
|
2041
2385
|
|
2042
|
-
|
2386
|
+
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
2387
|
+
var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
|
2388
|
+
var defineProperty = definePropertyModule.f;
|
2389
|
+
|
2390
|
+
if (DESCRIPTORS && Constructor && !Constructor[SPECIES$3]) {
|
2043
2391
|
defineProperty(Constructor, SPECIES$3, {
|
2044
2392
|
configurable: true,
|
2045
2393
|
get: function () { return this; }
|
@@ -2047,58 +2395,90 @@
|
|
2047
2395
|
}
|
2048
2396
|
};
|
2049
2397
|
|
2050
|
-
var
|
2398
|
+
var global$e = global$L;
|
2399
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
2400
|
+
|
2401
|
+
var TypeError$7 = global$e.TypeError;
|
2051
2402
|
|
2052
|
-
var anInstance = function (it, Prototype) {
|
2053
|
-
if (
|
2403
|
+
var anInstance$1 = function (it, Prototype) {
|
2404
|
+
if (isPrototypeOf$1(Prototype, it)) return it;
|
2054
2405
|
throw TypeError$7('Incorrect invocation');
|
2055
2406
|
};
|
2056
2407
|
|
2057
|
-
var
|
2408
|
+
var global$d = global$L;
|
2409
|
+
var isConstructor = isConstructor$2;
|
2410
|
+
var tryToString$2 = tryToString$4;
|
2411
|
+
|
2412
|
+
var TypeError$6 = global$d.TypeError;
|
2058
2413
|
|
2059
2414
|
// `Assert: IsConstructor(argument) is true`
|
2060
|
-
var aConstructor = function (argument) {
|
2415
|
+
var aConstructor$1 = function (argument) {
|
2061
2416
|
if (isConstructor(argument)) return argument;
|
2062
|
-
throw TypeError$6(tryToString(argument) + ' is not a constructor');
|
2417
|
+
throw TypeError$6(tryToString$2(argument) + ' is not a constructor');
|
2063
2418
|
};
|
2064
2419
|
|
2065
|
-
var
|
2420
|
+
var anObject$8 = anObject$g;
|
2421
|
+
var aConstructor = aConstructor$1;
|
2422
|
+
var wellKnownSymbol$6 = wellKnownSymbol$i;
|
2423
|
+
|
2424
|
+
var SPECIES$2 = wellKnownSymbol$6('species');
|
2066
2425
|
|
2067
2426
|
// `SpeciesConstructor` abstract operation
|
2068
2427
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
2069
|
-
var speciesConstructor = function (O, defaultConstructor) {
|
2070
|
-
var C = anObject(O).constructor;
|
2428
|
+
var speciesConstructor$2 = function (O, defaultConstructor) {
|
2429
|
+
var C = anObject$8(O).constructor;
|
2071
2430
|
var S;
|
2072
|
-
return C === undefined || (S = anObject(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
|
2431
|
+
return C === undefined || (S = anObject$8(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
|
2073
2432
|
};
|
2074
2433
|
|
2434
|
+
var NATIVE_BIND = functionBindNative;
|
2435
|
+
|
2075
2436
|
var FunctionPrototype = Function.prototype;
|
2076
|
-
var apply = FunctionPrototype.apply;
|
2077
|
-
var call = FunctionPrototype.call;
|
2437
|
+
var apply$3 = FunctionPrototype.apply;
|
2438
|
+
var call$b = FunctionPrototype.call;
|
2078
2439
|
|
2079
2440
|
// eslint-disable-next-line es-x/no-reflect -- safe
|
2080
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (
|
2081
|
-
return call.apply(apply, arguments);
|
2441
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$b.bind(apply$3) : function () {
|
2442
|
+
return call$b.apply(apply$3, arguments);
|
2082
2443
|
});
|
2083
2444
|
|
2084
|
-
var
|
2445
|
+
var uncurryThis$7 = functionUncurryThis;
|
2446
|
+
|
2447
|
+
var arraySlice$3 = uncurryThis$7([].slice);
|
2448
|
+
|
2449
|
+
var global$c = global$L;
|
2085
2450
|
|
2086
|
-
var TypeError$5 =
|
2451
|
+
var TypeError$5 = global$c.TypeError;
|
2087
2452
|
|
2088
|
-
var validateArgumentsLength = function (passed, required) {
|
2453
|
+
var validateArgumentsLength$1 = function (passed, required) {
|
2089
2454
|
if (passed < required) throw TypeError$5('Not enough arguments');
|
2090
2455
|
return passed;
|
2091
2456
|
};
|
2092
2457
|
|
2093
|
-
var
|
2094
|
-
|
2095
|
-
var
|
2096
|
-
|
2097
|
-
var
|
2098
|
-
var
|
2099
|
-
var
|
2100
|
-
var
|
2101
|
-
var
|
2458
|
+
var userAgent$4 = engineUserAgent;
|
2459
|
+
|
2460
|
+
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
|
2461
|
+
|
2462
|
+
var global$b = global$L;
|
2463
|
+
var apply$2 = functionApply;
|
2464
|
+
var bind$3 = functionBindContext;
|
2465
|
+
var isCallable$5 = isCallable$j;
|
2466
|
+
var hasOwn = hasOwnProperty_1;
|
2467
|
+
var fails$5 = fails$q;
|
2468
|
+
var html = html$2;
|
2469
|
+
var arraySlice$2 = arraySlice$3;
|
2470
|
+
var createElement = documentCreateElement$2;
|
2471
|
+
var validateArgumentsLength = validateArgumentsLength$1;
|
2472
|
+
var IS_IOS$1 = engineIsIos;
|
2473
|
+
var IS_NODE$2 = engineIsNode;
|
2474
|
+
|
2475
|
+
var set = global$b.setImmediate;
|
2476
|
+
var clear = global$b.clearImmediate;
|
2477
|
+
var process$2 = global$b.process;
|
2478
|
+
var Dispatch = global$b.Dispatch;
|
2479
|
+
var Function$1 = global$b.Function;
|
2480
|
+
var MessageChannel = global$b.MessageChannel;
|
2481
|
+
var String$1 = global$b.String;
|
2102
2482
|
var counter = 0;
|
2103
2483
|
var queue$1 = {};
|
2104
2484
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
@@ -2106,11 +2486,11 @@
|
|
2106
2486
|
|
2107
2487
|
try {
|
2108
2488
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
2109
|
-
location =
|
2489
|
+
location = global$b.location;
|
2110
2490
|
} catch (error) { /* empty */ }
|
2111
2491
|
|
2112
2492
|
var run = function (id) {
|
2113
|
-
if (
|
2493
|
+
if (hasOwn(queue$1, id)) {
|
2114
2494
|
var fn = queue$1[id];
|
2115
2495
|
delete queue$1[id];
|
2116
2496
|
fn();
|
@@ -2129,17 +2509,17 @@
|
|
2129
2509
|
|
2130
2510
|
var post = function (id) {
|
2131
2511
|
// old engines have not location.origin
|
2132
|
-
|
2512
|
+
global$b.postMessage(String$1(id), location.protocol + '//' + location.host);
|
2133
2513
|
};
|
2134
2514
|
|
2135
2515
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
2136
2516
|
if (!set || !clear) {
|
2137
2517
|
set = function setImmediate(handler) {
|
2138
2518
|
validateArgumentsLength(arguments.length, 1);
|
2139
|
-
var fn = isCallable(handler) ? handler : Function$1(handler);
|
2140
|
-
var args = arraySlice(arguments, 1);
|
2519
|
+
var fn = isCallable$5(handler) ? handler : Function$1(handler);
|
2520
|
+
var args = arraySlice$2(arguments, 1);
|
2141
2521
|
queue$1[++counter] = function () {
|
2142
|
-
|
2522
|
+
apply$2(fn, undefined, args);
|
2143
2523
|
};
|
2144
2524
|
defer(counter);
|
2145
2525
|
return counter;
|
@@ -2148,7 +2528,7 @@
|
|
2148
2528
|
delete queue$1[id];
|
2149
2529
|
};
|
2150
2530
|
// Node.js 0.8-
|
2151
|
-
if (
|
2531
|
+
if (IS_NODE$2) {
|
2152
2532
|
defer = function (id) {
|
2153
2533
|
process$2.nextTick(runner(id));
|
2154
2534
|
};
|
@@ -2159,26 +2539,26 @@
|
|
2159
2539
|
};
|
2160
2540
|
// Browsers with MessageChannel, includes WebWorkers
|
2161
2541
|
// except iOS - https://github.com/zloirock/core-js/issues/624
|
2162
|
-
} else if (MessageChannel && !
|
2542
|
+
} else if (MessageChannel && !IS_IOS$1) {
|
2163
2543
|
channel = new MessageChannel();
|
2164
2544
|
port = channel.port2;
|
2165
2545
|
channel.port1.onmessage = listener;
|
2166
|
-
defer =
|
2546
|
+
defer = bind$3(port.postMessage, port);
|
2167
2547
|
// Browsers with postMessage, skip WebWorkers
|
2168
2548
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
2169
2549
|
} else if (
|
2170
|
-
|
2171
|
-
isCallable(
|
2172
|
-
!
|
2550
|
+
global$b.addEventListener &&
|
2551
|
+
isCallable$5(global$b.postMessage) &&
|
2552
|
+
!global$b.importScripts &&
|
2173
2553
|
location && location.protocol !== 'file:' &&
|
2174
|
-
!fails(post)
|
2554
|
+
!fails$5(post)
|
2175
2555
|
) {
|
2176
2556
|
defer = post;
|
2177
|
-
|
2557
|
+
global$b.addEventListener('message', listener, false);
|
2178
2558
|
// IE8-
|
2179
|
-
} else if (ONREADYSTATECHANGE in
|
2559
|
+
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
2180
2560
|
defer = function (id) {
|
2181
|
-
html.appendChild(
|
2561
|
+
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
2182
2562
|
html.removeChild(this);
|
2183
2563
|
run(id);
|
2184
2564
|
};
|
@@ -2196,23 +2576,30 @@
|
|
2196
2576
|
clear: clear
|
2197
2577
|
};
|
2198
2578
|
|
2199
|
-
var
|
2579
|
+
var userAgent$3 = engineUserAgent;
|
2580
|
+
var global$a = global$L;
|
2200
2581
|
|
2201
|
-
var
|
2582
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && global$a.Pebble !== undefined;
|
2202
2583
|
|
2203
|
-
var
|
2204
|
-
var macrotask = task$1.set;
|
2584
|
+
var userAgent$2 = engineUserAgent;
|
2205
2585
|
|
2586
|
+
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
|
2206
2587
|
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
2210
|
-
var
|
2211
|
-
var
|
2212
|
-
var
|
2213
|
-
var
|
2588
|
+
var global$9 = global$L;
|
2589
|
+
var bind$2 = functionBindContext;
|
2590
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
2591
|
+
var macrotask = task$1.set;
|
2592
|
+
var IS_IOS = engineIsIos;
|
2593
|
+
var IS_IOS_PEBBLE = engineIsIosPebble;
|
2594
|
+
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
2595
|
+
var IS_NODE$1 = engineIsNode;
|
2596
|
+
|
2597
|
+
var MutationObserver = global$9.MutationObserver || global$9.WebKitMutationObserver;
|
2598
|
+
var document$2 = global$9.document;
|
2599
|
+
var process$1 = global$9.process;
|
2600
|
+
var Promise$1 = global$9.Promise;
|
2214
2601
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
2215
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(
|
2602
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$9, 'queueMicrotask');
|
2216
2603
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
2217
2604
|
|
2218
2605
|
var flush, head, last, notify$1, toggle, node, promise, then;
|
@@ -2221,7 +2608,7 @@
|
|
2221
2608
|
if (!queueMicrotask) {
|
2222
2609
|
flush = function () {
|
2223
2610
|
var parent, fn;
|
2224
|
-
if (
|
2611
|
+
if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
|
2225
2612
|
while (head) {
|
2226
2613
|
fn = head.fn;
|
2227
2614
|
head = head.next;
|
@@ -2238,7 +2625,7 @@
|
|
2238
2625
|
|
2239
2626
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
2240
2627
|
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
2241
|
-
if (!
|
2628
|
+
if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
2242
2629
|
toggle = true;
|
2243
2630
|
node = document$2.createTextNode('');
|
2244
2631
|
new MutationObserver(flush).observe(node, { characterData: true });
|
@@ -2246,17 +2633,17 @@
|
|
2246
2633
|
node.data = toggle = !toggle;
|
2247
2634
|
};
|
2248
2635
|
// environments with maybe non-completely correct, but existent Promise
|
2249
|
-
} else if (!
|
2636
|
+
} else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
|
2250
2637
|
// Promise.resolve without an argument throws an error in LG WebOS 2
|
2251
2638
|
promise = Promise$1.resolve(undefined);
|
2252
2639
|
// workaround of WebKit ~ iOS Safari 10.1 bug
|
2253
2640
|
promise.constructor = Promise$1;
|
2254
|
-
then =
|
2641
|
+
then = bind$2(promise.then, promise);
|
2255
2642
|
notify$1 = function () {
|
2256
2643
|
then(flush);
|
2257
2644
|
};
|
2258
2645
|
// Node.js without promises
|
2259
|
-
} else if (
|
2646
|
+
} else if (IS_NODE$1) {
|
2260
2647
|
notify$1 = function () {
|
2261
2648
|
process$1.nextTick(flush);
|
2262
2649
|
};
|
@@ -2268,14 +2655,14 @@
|
|
2268
2655
|
// - setTimeout
|
2269
2656
|
} else {
|
2270
2657
|
// strange IE + webpack dev server bug - use .bind(global)
|
2271
|
-
macrotask =
|
2658
|
+
macrotask = bind$2(macrotask, global$9);
|
2272
2659
|
notify$1 = function () {
|
2273
2660
|
macrotask(flush);
|
2274
2661
|
};
|
2275
2662
|
}
|
2276
2663
|
}
|
2277
2664
|
|
2278
|
-
var microtask = queueMicrotask || function (fn) {
|
2665
|
+
var microtask$1 = queueMicrotask || function (fn) {
|
2279
2666
|
var task = { fn: fn, next: undefined };
|
2280
2667
|
if (last) last.next = task;
|
2281
2668
|
if (!head) {
|
@@ -2284,14 +2671,16 @@
|
|
2284
2671
|
} last = task;
|
2285
2672
|
};
|
2286
2673
|
|
2287
|
-
var
|
2288
|
-
|
2674
|
+
var global$8 = global$L;
|
2675
|
+
|
2676
|
+
var hostReportErrors$1 = function (a, b) {
|
2677
|
+
var console = global$8.console;
|
2289
2678
|
if (console && console.error) {
|
2290
2679
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
2291
2680
|
}
|
2292
2681
|
};
|
2293
2682
|
|
2294
|
-
var perform = function (exec) {
|
2683
|
+
var perform$3 = function (exec) {
|
2295
2684
|
try {
|
2296
2685
|
return { error: false, value: exec() };
|
2297
2686
|
} catch (error) {
|
@@ -2299,12 +2688,12 @@
|
|
2299
2688
|
}
|
2300
2689
|
};
|
2301
2690
|
|
2302
|
-
var Queue = function () {
|
2691
|
+
var Queue$1 = function () {
|
2303
2692
|
this.head = null;
|
2304
2693
|
this.tail = null;
|
2305
2694
|
};
|
2306
2695
|
|
2307
|
-
Queue.prototype = {
|
2696
|
+
Queue$1.prototype = {
|
2308
2697
|
add: function (item) {
|
2309
2698
|
var entry = { item: item, next: null };
|
2310
2699
|
if (this.head) this.tail.next = entry;
|
@@ -2321,30 +2710,41 @@
|
|
2321
2710
|
}
|
2322
2711
|
};
|
2323
2712
|
|
2324
|
-
var queue = Queue;
|
2713
|
+
var queue = Queue$1;
|
2325
2714
|
|
2326
|
-
var
|
2715
|
+
var global$7 = global$L;
|
2716
|
+
|
2717
|
+
var promiseNativeConstructor = global$7.Promise;
|
2327
2718
|
|
2328
2719
|
var engineIsBrowser = typeof window == 'object' && typeof Deno != 'object';
|
2329
2720
|
|
2330
|
-
|
2331
|
-
var
|
2721
|
+
var global$6 = global$L;
|
2722
|
+
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
2723
|
+
var isCallable$4 = isCallable$j;
|
2724
|
+
var isForced = isForced_1;
|
2725
|
+
var inspectSource = inspectSource$4;
|
2726
|
+
var wellKnownSymbol$5 = wellKnownSymbol$i;
|
2727
|
+
var IS_BROWSER = engineIsBrowser;
|
2728
|
+
var V8_VERSION = engineV8Version;
|
2729
|
+
|
2730
|
+
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
2731
|
+
var SPECIES$1 = wellKnownSymbol$5('species');
|
2332
2732
|
var SUBCLASSING = false;
|
2333
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable(
|
2733
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$6.PromiseRejectionEvent);
|
2334
2734
|
|
2335
|
-
var FORCED_PROMISE_CONSTRUCTOR$5 =
|
2336
|
-
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(
|
2337
|
-
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(
|
2735
|
+
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
2736
|
+
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
2737
|
+
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
|
2338
2738
|
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
2339
2739
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
2340
2740
|
// We can't detect it synchronously, so just check versions
|
2341
|
-
if (!GLOBAL_CORE_JS_PROMISE &&
|
2741
|
+
if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
|
2342
2742
|
// We can't use @@species feature detection in V8 since it causes
|
2343
2743
|
// deoptimization and performance degradation
|
2344
2744
|
// https://github.com/zloirock/core-js/issues/679
|
2345
|
-
if (
|
2745
|
+
if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
|
2346
2746
|
// Detect correctness of subclassing with @@species support
|
2347
|
-
var promise = new
|
2747
|
+
var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
|
2348
2748
|
var FakePromise = function (exec) {
|
2349
2749
|
exec(function () { /* empty */ }, function () { /* empty */ });
|
2350
2750
|
};
|
@@ -2353,7 +2753,7 @@
|
|
2353
2753
|
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
2354
2754
|
if (!SUBCLASSING) return true;
|
2355
2755
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
2356
|
-
return !GLOBAL_CORE_JS_PROMISE &&
|
2756
|
+
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
2357
2757
|
});
|
2358
2758
|
|
2359
2759
|
var promiseConstructorDetection = {
|
@@ -2362,6 +2762,10 @@
|
|
2362
2762
|
SUBCLASSING: SUBCLASSING
|
2363
2763
|
};
|
2364
2764
|
|
2765
|
+
var newPromiseCapability$2 = {};
|
2766
|
+
|
2767
|
+
var aCallable$5 = aCallable$8;
|
2768
|
+
|
2365
2769
|
var PromiseCapability = function (C) {
|
2366
2770
|
var resolve, reject;
|
2367
2771
|
this.promise = new C(function ($$resolve, $$reject) {
|
@@ -2369,46 +2773,55 @@
|
|
2369
2773
|
resolve = $$resolve;
|
2370
2774
|
reject = $$reject;
|
2371
2775
|
});
|
2372
|
-
this.resolve = aCallable(resolve);
|
2373
|
-
this.reject = aCallable(reject);
|
2776
|
+
this.resolve = aCallable$5(resolve);
|
2777
|
+
this.reject = aCallable$5(reject);
|
2374
2778
|
};
|
2375
2779
|
|
2376
2780
|
// `NewPromiseCapability` abstract operation
|
2377
2781
|
// https://tc39.es/ecma262/#sec-newpromisecapability
|
2378
|
-
|
2782
|
+
newPromiseCapability$2.f = function (C) {
|
2379
2783
|
return new PromiseCapability(C);
|
2380
2784
|
};
|
2381
2785
|
|
2382
|
-
var
|
2383
|
-
|
2384
|
-
|
2385
|
-
|
2786
|
+
var $$8 = _export;
|
2787
|
+
var IS_NODE = engineIsNode;
|
2788
|
+
var global$5 = global$L;
|
2789
|
+
var call$a = functionCall;
|
2790
|
+
var defineBuiltIn$2 = defineBuiltIn$6;
|
2791
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
2792
|
+
var setToStringTag = setToStringTag$1;
|
2793
|
+
var setSpecies = setSpecies$1;
|
2794
|
+
var aCallable$4 = aCallable$8;
|
2795
|
+
var isCallable$3 = isCallable$j;
|
2796
|
+
var isObject$1 = isObject$a;
|
2797
|
+
var anInstance = anInstance$1;
|
2798
|
+
var speciesConstructor$1 = speciesConstructor$2;
|
2386
2799
|
var task = task$1.set;
|
2387
|
-
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2391
|
-
|
2392
|
-
|
2393
|
-
|
2394
|
-
|
2800
|
+
var microtask = microtask$1;
|
2801
|
+
var hostReportErrors = hostReportErrors$1;
|
2802
|
+
var perform$2 = perform$3;
|
2803
|
+
var Queue = queue;
|
2804
|
+
var InternalStateModule = internalState;
|
2805
|
+
var NativePromiseConstructor$2 = promiseNativeConstructor;
|
2806
|
+
var PromiseConstructorDetection = promiseConstructorDetection;
|
2807
|
+
var newPromiseCapabilityModule$3 = newPromiseCapability$2;
|
2395
2808
|
|
2396
2809
|
var PROMISE = 'Promise';
|
2397
|
-
var FORCED_PROMISE_CONSTRUCTOR$4 =
|
2398
|
-
var NATIVE_PROMISE_REJECTION_EVENT =
|
2399
|
-
var NATIVE_PROMISE_SUBCLASSING =
|
2400
|
-
var getInternalPromiseState =
|
2401
|
-
var setInternalState =
|
2402
|
-
var NativePromisePrototype$1 =
|
2403
|
-
var PromiseConstructor =
|
2810
|
+
var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
|
2811
|
+
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
|
2812
|
+
var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
|
2813
|
+
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
2814
|
+
var setInternalState = InternalStateModule.set;
|
2815
|
+
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
2816
|
+
var PromiseConstructor = NativePromiseConstructor$2;
|
2404
2817
|
var PromisePrototype = NativePromisePrototype$1;
|
2405
|
-
var TypeError$4 =
|
2406
|
-
var document$1 =
|
2407
|
-
var process =
|
2408
|
-
var newPromiseCapability =
|
2409
|
-
var newGenericPromiseCapability = newPromiseCapability;
|
2818
|
+
var TypeError$4 = global$5.TypeError;
|
2819
|
+
var document$1 = global$5.document;
|
2820
|
+
var process = global$5.process;
|
2821
|
+
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
2822
|
+
var newGenericPromiseCapability = newPromiseCapability$1;
|
2410
2823
|
|
2411
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent &&
|
2824
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$5.dispatchEvent);
|
2412
2825
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
2413
2826
|
var REJECTION_HANDLED = 'rejectionhandled';
|
2414
2827
|
var PENDING = 0;
|
@@ -2422,7 +2835,7 @@
|
|
2422
2835
|
// helpers
|
2423
2836
|
var isThenable = function (it) {
|
2424
2837
|
var then;
|
2425
|
-
return isObject(it) && isCallable(then = it.then) ? then : false;
|
2838
|
+
return isObject$1(it) && isCallable$3(then = it.then) ? then : false;
|
2426
2839
|
};
|
2427
2840
|
|
2428
2841
|
var callReaction = function (reaction, state) {
|
@@ -2451,7 +2864,7 @@
|
|
2451
2864
|
if (result === reaction.promise) {
|
2452
2865
|
reject(TypeError$4('Promise-chain cycle'));
|
2453
2866
|
} else if (then = isThenable(result)) {
|
2454
|
-
|
2867
|
+
call$a(then, result, resolve, reject);
|
2455
2868
|
} else resolve(result);
|
2456
2869
|
} else reject(value);
|
2457
2870
|
} catch (error) {
|
@@ -2481,26 +2894,26 @@
|
|
2481
2894
|
event.promise = promise;
|
2482
2895
|
event.reason = reason;
|
2483
2896
|
event.initEvent(name, false, true);
|
2484
|
-
|
2897
|
+
global$5.dispatchEvent(event);
|
2485
2898
|
} else event = { promise: promise, reason: reason };
|
2486
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler =
|
2899
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$5['on' + name])) handler(event);
|
2487
2900
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
2488
2901
|
};
|
2489
2902
|
|
2490
2903
|
var onUnhandled = function (state) {
|
2491
|
-
|
2904
|
+
call$a(task, global$5, function () {
|
2492
2905
|
var promise = state.facade;
|
2493
2906
|
var value = state.value;
|
2494
2907
|
var IS_UNHANDLED = isUnhandled(state);
|
2495
2908
|
var result;
|
2496
2909
|
if (IS_UNHANDLED) {
|
2497
|
-
result = perform(function () {
|
2498
|
-
if (
|
2910
|
+
result = perform$2(function () {
|
2911
|
+
if (IS_NODE) {
|
2499
2912
|
process.emit('unhandledRejection', value, promise);
|
2500
2913
|
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
2501
2914
|
});
|
2502
2915
|
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
2503
|
-
state.rejection =
|
2916
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
2504
2917
|
if (result.error) throw result.value;
|
2505
2918
|
}
|
2506
2919
|
});
|
@@ -2511,15 +2924,15 @@
|
|
2511
2924
|
};
|
2512
2925
|
|
2513
2926
|
var onHandleUnhandled = function (state) {
|
2514
|
-
|
2927
|
+
call$a(task, global$5, function () {
|
2515
2928
|
var promise = state.facade;
|
2516
|
-
if (
|
2929
|
+
if (IS_NODE) {
|
2517
2930
|
process.emit('rejectionHandled', promise);
|
2518
2931
|
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
2519
2932
|
});
|
2520
2933
|
};
|
2521
2934
|
|
2522
|
-
var bind = function (fn, state, unwrap) {
|
2935
|
+
var bind$1 = function (fn, state, unwrap) {
|
2523
2936
|
return function (value) {
|
2524
2937
|
fn(state, value, unwrap);
|
2525
2938
|
};
|
@@ -2545,9 +2958,9 @@
|
|
2545
2958
|
microtask(function () {
|
2546
2959
|
var wrapper = { done: false };
|
2547
2960
|
try {
|
2548
|
-
|
2549
|
-
bind(internalResolve, wrapper, state),
|
2550
|
-
bind(internalReject, wrapper, state)
|
2961
|
+
call$a(then, value,
|
2962
|
+
bind$1(internalResolve, wrapper, state),
|
2963
|
+
bind$1(internalReject, wrapper, state)
|
2551
2964
|
);
|
2552
2965
|
} catch (error) {
|
2553
2966
|
internalReject(wrapper, error, state);
|
@@ -2568,11 +2981,11 @@
|
|
2568
2981
|
// 25.4.3.1 Promise(executor)
|
2569
2982
|
PromiseConstructor = function Promise(executor) {
|
2570
2983
|
anInstance(this, PromisePrototype);
|
2571
|
-
aCallable(executor);
|
2572
|
-
|
2984
|
+
aCallable$4(executor);
|
2985
|
+
call$a(Internal, this);
|
2573
2986
|
var state = getInternalPromiseState(this);
|
2574
2987
|
try {
|
2575
|
-
executor(bind(internalResolve, state), bind(internalReject, state));
|
2988
|
+
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
2576
2989
|
} catch (error) {
|
2577
2990
|
internalReject(state, error);
|
2578
2991
|
}
|
@@ -2587,7 +3000,7 @@
|
|
2587
3000
|
done: false,
|
2588
3001
|
notified: false,
|
2589
3002
|
parent: false,
|
2590
|
-
reactions: new
|
3003
|
+
reactions: new Queue(),
|
2591
3004
|
rejection: false,
|
2592
3005
|
state: PENDING,
|
2593
3006
|
value: undefined
|
@@ -2596,13 +3009,13 @@
|
|
2596
3009
|
|
2597
3010
|
// `Promise.prototype.then` method
|
2598
3011
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
2599
|
-
Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
3012
|
+
Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
2600
3013
|
var state = getInternalPromiseState(this);
|
2601
|
-
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
3014
|
+
var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
|
2602
3015
|
state.parent = true;
|
2603
|
-
reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
|
2604
|
-
reaction.fail = isCallable(onRejected) && onRejected;
|
2605
|
-
reaction.domain =
|
3016
|
+
reaction.ok = isCallable$3(onFulfilled) ? onFulfilled : true;
|
3017
|
+
reaction.fail = isCallable$3(onRejected) && onRejected;
|
3018
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
2606
3019
|
if (state.state == PENDING) state.reactions.add(reaction);
|
2607
3020
|
else microtask(function () {
|
2608
3021
|
callReaction(reaction, state);
|
@@ -2614,25 +3027,25 @@
|
|
2614
3027
|
var promise = new Internal();
|
2615
3028
|
var state = getInternalPromiseState(promise);
|
2616
3029
|
this.promise = promise;
|
2617
|
-
this.resolve = bind(internalResolve, state);
|
2618
|
-
this.reject = bind(internalReject, state);
|
3030
|
+
this.resolve = bind$1(internalResolve, state);
|
3031
|
+
this.reject = bind$1(internalReject, state);
|
2619
3032
|
};
|
2620
3033
|
|
2621
|
-
|
3034
|
+
newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
|
2622
3035
|
return C === PromiseConstructor || C === PromiseWrapper
|
2623
3036
|
? new OwnPromiseCapability(C)
|
2624
3037
|
: newGenericPromiseCapability(C);
|
2625
3038
|
};
|
2626
3039
|
|
2627
|
-
if (isCallable(
|
3040
|
+
if (isCallable$3(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
2628
3041
|
nativeThen = NativePromisePrototype$1.then;
|
2629
3042
|
|
2630
3043
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
2631
3044
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
2632
|
-
defineBuiltIn(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
3045
|
+
defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
2633
3046
|
var that = this;
|
2634
3047
|
return new PromiseConstructor(function (resolve, reject) {
|
2635
|
-
|
3048
|
+
call$a(nativeThen, that, resolve, reject);
|
2636
3049
|
}).then(onFulfilled, onRejected);
|
2637
3050
|
// https://github.com/zloirock/core-js/issues/640
|
2638
3051
|
}, { unsafe: true });
|
@@ -2644,13 +3057,13 @@
|
|
2644
3057
|
} catch (error) { /* empty */ }
|
2645
3058
|
|
2646
3059
|
// make `instanceof Promise` work for native promise-based APIs
|
2647
|
-
if (
|
2648
|
-
|
3060
|
+
if (setPrototypeOf) {
|
3061
|
+
setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
|
2649
3062
|
}
|
2650
3063
|
}
|
2651
3064
|
}
|
2652
3065
|
|
2653
|
-
|
3066
|
+
$$8({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
2654
3067
|
Promise: PromiseConstructor
|
2655
3068
|
});
|
2656
3069
|
|
@@ -2659,51 +3072,82 @@
|
|
2659
3072
|
|
2660
3073
|
var iterators = {};
|
2661
3074
|
|
2662
|
-
var
|
3075
|
+
var wellKnownSymbol$4 = wellKnownSymbol$i;
|
3076
|
+
var Iterators$1 = iterators;
|
3077
|
+
|
3078
|
+
var ITERATOR$2 = wellKnownSymbol$4('iterator');
|
2663
3079
|
var ArrayPrototype = Array.prototype;
|
2664
3080
|
|
2665
3081
|
// check on default Array iterator
|
2666
|
-
var isArrayIteratorMethod = function (it) {
|
2667
|
-
return it !== undefined && (
|
3082
|
+
var isArrayIteratorMethod$1 = function (it) {
|
3083
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
2668
3084
|
};
|
2669
3085
|
|
2670
|
-
var
|
3086
|
+
var classof$1 = classof$7;
|
3087
|
+
var getMethod$4 = getMethod$6;
|
3088
|
+
var Iterators = iterators;
|
3089
|
+
var wellKnownSymbol$3 = wellKnownSymbol$i;
|
2671
3090
|
|
2672
|
-
var
|
2673
|
-
|
2674
|
-
|
2675
|
-
|
3091
|
+
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
3092
|
+
|
3093
|
+
var getIteratorMethod$2 = function (it) {
|
3094
|
+
if (it != undefined) return getMethod$4(it, ITERATOR$1)
|
3095
|
+
|| getMethod$4(it, '@@iterator')
|
3096
|
+
|| Iterators[classof$1(it)];
|
2676
3097
|
};
|
2677
3098
|
|
2678
|
-
var
|
3099
|
+
var global$4 = global$L;
|
3100
|
+
var call$9 = functionCall;
|
3101
|
+
var aCallable$3 = aCallable$8;
|
3102
|
+
var anObject$7 = anObject$g;
|
3103
|
+
var tryToString$1 = tryToString$4;
|
3104
|
+
var getIteratorMethod$1 = getIteratorMethod$2;
|
3105
|
+
|
3106
|
+
var TypeError$3 = global$4.TypeError;
|
2679
3107
|
|
2680
|
-
var getIterator = function (argument, usingIterator) {
|
2681
|
-
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
2682
|
-
if (aCallable(iteratorMethod)) return anObject(
|
2683
|
-
throw TypeError$3(tryToString(argument) + ' is not iterable');
|
3108
|
+
var getIterator$1 = function (argument, usingIterator) {
|
3109
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
3110
|
+
if (aCallable$3(iteratorMethod)) return anObject$7(call$9(iteratorMethod, argument));
|
3111
|
+
throw TypeError$3(tryToString$1(argument) + ' is not iterable');
|
2684
3112
|
};
|
2685
3113
|
|
2686
|
-
var
|
3114
|
+
var call$8 = functionCall;
|
3115
|
+
var anObject$6 = anObject$g;
|
3116
|
+
var getMethod$3 = getMethod$6;
|
3117
|
+
|
3118
|
+
var iteratorClose$1 = function (iterator, kind, value) {
|
2687
3119
|
var innerResult, innerError;
|
2688
|
-
anObject(iterator);
|
3120
|
+
anObject$6(iterator);
|
2689
3121
|
try {
|
2690
|
-
innerResult = getMethod(iterator, 'return');
|
3122
|
+
innerResult = getMethod$3(iterator, 'return');
|
2691
3123
|
if (!innerResult) {
|
2692
3124
|
if (kind === 'throw') throw value;
|
2693
3125
|
return value;
|
2694
3126
|
}
|
2695
|
-
innerResult =
|
3127
|
+
innerResult = call$8(innerResult, iterator);
|
2696
3128
|
} catch (error) {
|
2697
3129
|
innerError = true;
|
2698
3130
|
innerResult = error;
|
2699
3131
|
}
|
2700
3132
|
if (kind === 'throw') throw value;
|
2701
3133
|
if (innerError) throw innerResult;
|
2702
|
-
anObject(innerResult);
|
3134
|
+
anObject$6(innerResult);
|
2703
3135
|
return value;
|
2704
3136
|
};
|
2705
3137
|
|
2706
|
-
var
|
3138
|
+
var global$3 = global$L;
|
3139
|
+
var bind = functionBindContext;
|
3140
|
+
var call$7 = functionCall;
|
3141
|
+
var anObject$5 = anObject$g;
|
3142
|
+
var tryToString = tryToString$4;
|
3143
|
+
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
3144
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$6;
|
3145
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
3146
|
+
var getIterator = getIterator$1;
|
3147
|
+
var getIteratorMethod = getIteratorMethod$2;
|
3148
|
+
var iteratorClose = iteratorClose$1;
|
3149
|
+
|
3150
|
+
var TypeError$2 = global$3.TypeError;
|
2707
3151
|
|
2708
3152
|
var Result = function (stopped, result) {
|
2709
3153
|
this.stopped = stopped;
|
@@ -2712,12 +3156,12 @@
|
|
2712
3156
|
|
2713
3157
|
var ResultPrototype = Result.prototype;
|
2714
3158
|
|
2715
|
-
var iterate = function (iterable, unboundFunction, options) {
|
3159
|
+
var iterate$2 = function (iterable, unboundFunction, options) {
|
2716
3160
|
var that = options && options.that;
|
2717
3161
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
2718
3162
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
2719
3163
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
2720
|
-
var fn =
|
3164
|
+
var fn = bind(unboundFunction, that);
|
2721
3165
|
var iterator, iterFn, index, length, result, next, step;
|
2722
3166
|
|
2723
3167
|
var stop = function (condition) {
|
@@ -2727,7 +3171,7 @@
|
|
2727
3171
|
|
2728
3172
|
var callFn = function (value) {
|
2729
3173
|
if (AS_ENTRIES) {
|
2730
|
-
anObject(value);
|
3174
|
+
anObject$5(value);
|
2731
3175
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
2732
3176
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
2733
3177
|
};
|
@@ -2739,26 +3183,28 @@
|
|
2739
3183
|
if (!iterFn) throw TypeError$2(tryToString(iterable) + ' is not iterable');
|
2740
3184
|
// optimisation for array iterators
|
2741
3185
|
if (isArrayIteratorMethod(iterFn)) {
|
2742
|
-
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
3186
|
+
for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
|
2743
3187
|
result = callFn(iterable[index]);
|
2744
|
-
if (result &&
|
3188
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
2745
3189
|
} return new Result(false);
|
2746
3190
|
}
|
2747
3191
|
iterator = getIterator(iterable, iterFn);
|
2748
3192
|
}
|
2749
3193
|
|
2750
3194
|
next = iterator.next;
|
2751
|
-
while (!(step =
|
3195
|
+
while (!(step = call$7(next, iterator)).done) {
|
2752
3196
|
try {
|
2753
3197
|
result = callFn(step.value);
|
2754
3198
|
} catch (error) {
|
2755
3199
|
iteratorClose(iterator, 'throw', error);
|
2756
3200
|
}
|
2757
|
-
if (typeof result == 'object' && result &&
|
3201
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
2758
3202
|
} return new Result(false);
|
2759
3203
|
};
|
2760
3204
|
|
2761
|
-
var
|
3205
|
+
var wellKnownSymbol$2 = wellKnownSymbol$i;
|
3206
|
+
|
3207
|
+
var ITERATOR = wellKnownSymbol$2('iterator');
|
2762
3208
|
var SAFE_CLOSING = false;
|
2763
3209
|
|
2764
3210
|
try {
|
@@ -2778,7 +3224,7 @@
|
|
2778
3224
|
Array.from(iteratorWithReturn, function () { throw 2; });
|
2779
3225
|
} catch (error) { /* empty */ }
|
2780
3226
|
|
2781
|
-
var checkCorrectnessOfIteration = function (exec, SKIP_CLOSING) {
|
3227
|
+
var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
2782
3228
|
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
2783
3229
|
var ITERATION_SUPPORT = false;
|
2784
3230
|
try {
|
@@ -2795,30 +3241,40 @@
|
|
2795
3241
|
return ITERATION_SUPPORT;
|
2796
3242
|
};
|
2797
3243
|
|
3244
|
+
var NativePromiseConstructor$1 = promiseNativeConstructor;
|
3245
|
+
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
2798
3246
|
var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
|
2799
3247
|
|
2800
3248
|
var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
|
2801
|
-
|
3249
|
+
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
2802
3250
|
});
|
2803
3251
|
|
3252
|
+
var $$7 = _export;
|
3253
|
+
var call$6 = functionCall;
|
3254
|
+
var aCallable$2 = aCallable$8;
|
3255
|
+
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
3256
|
+
var perform$1 = perform$3;
|
3257
|
+
var iterate$1 = iterate$2;
|
3258
|
+
var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
3259
|
+
|
2804
3260
|
// `Promise.all` method
|
2805
3261
|
// https://tc39.es/ecma262/#sec-promise.all
|
2806
|
-
|
3262
|
+
$$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
2807
3263
|
all: function all(iterable) {
|
2808
3264
|
var C = this;
|
2809
|
-
var capability =
|
3265
|
+
var capability = newPromiseCapabilityModule$2.f(C);
|
2810
3266
|
var resolve = capability.resolve;
|
2811
3267
|
var reject = capability.reject;
|
2812
|
-
var result = perform(function () {
|
2813
|
-
var $promiseResolve = aCallable(C.resolve);
|
3268
|
+
var result = perform$1(function () {
|
3269
|
+
var $promiseResolve = aCallable$2(C.resolve);
|
2814
3270
|
var values = [];
|
2815
3271
|
var counter = 0;
|
2816
3272
|
var remaining = 1;
|
2817
|
-
iterate(iterable, function (promise) {
|
3273
|
+
iterate$1(iterable, function (promise) {
|
2818
3274
|
var index = counter++;
|
2819
3275
|
var alreadyCalled = false;
|
2820
3276
|
remaining++;
|
2821
|
-
|
3277
|
+
call$6($promiseResolve, C, promise).then(function (value) {
|
2822
3278
|
if (alreadyCalled) return;
|
2823
3279
|
alreadyCalled = true;
|
2824
3280
|
values[index] = value;
|
@@ -2832,41 +3288,50 @@
|
|
2832
3288
|
}
|
2833
3289
|
});
|
2834
3290
|
|
3291
|
+
var $$6 = _export;
|
2835
3292
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
3293
|
+
var NativePromiseConstructor = promiseNativeConstructor;
|
3294
|
+
var getBuiltIn$1 = getBuiltIn$8;
|
3295
|
+
var isCallable$2 = isCallable$j;
|
3296
|
+
var defineBuiltIn$1 = defineBuiltIn$6;
|
2836
3297
|
|
2837
|
-
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2841
|
-
var NativePromisePrototype = promiseNativeConstructor && promiseNativeConstructor.prototype;
|
3298
|
+
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
2842
3299
|
|
2843
3300
|
// `Promise.prototype.catch` method
|
2844
3301
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
2845
|
-
|
3302
|
+
$$6({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
2846
3303
|
'catch': function (onRejected) {
|
2847
3304
|
return this.then(undefined, onRejected);
|
2848
3305
|
}
|
2849
3306
|
});
|
2850
3307
|
|
2851
3308
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
2852
|
-
if (isCallable(
|
2853
|
-
var method = getBuiltIn('Promise').prototype['catch'];
|
3309
|
+
if (isCallable$2(NativePromiseConstructor)) {
|
3310
|
+
var method = getBuiltIn$1('Promise').prototype['catch'];
|
2854
3311
|
if (NativePromisePrototype['catch'] !== method) {
|
2855
|
-
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
3312
|
+
defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
|
2856
3313
|
}
|
2857
3314
|
}
|
2858
3315
|
|
3316
|
+
var $$5 = _export;
|
3317
|
+
var call$5 = functionCall;
|
3318
|
+
var aCallable$1 = aCallable$8;
|
3319
|
+
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
3320
|
+
var perform = perform$3;
|
3321
|
+
var iterate = iterate$2;
|
3322
|
+
var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
3323
|
+
|
2859
3324
|
// `Promise.race` method
|
2860
3325
|
// https://tc39.es/ecma262/#sec-promise.race
|
2861
|
-
|
3326
|
+
$$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
2862
3327
|
race: function race(iterable) {
|
2863
3328
|
var C = this;
|
2864
|
-
var capability =
|
3329
|
+
var capability = newPromiseCapabilityModule$1.f(C);
|
2865
3330
|
var reject = capability.reject;
|
2866
3331
|
var result = perform(function () {
|
2867
|
-
var $promiseResolve = aCallable(C.resolve);
|
3332
|
+
var $promiseResolve = aCallable$1(C.resolve);
|
2868
3333
|
iterate(iterable, function (promise) {
|
2869
|
-
|
3334
|
+
call$5($promiseResolve, C, promise).then(capability.resolve, reject);
|
2870
3335
|
});
|
2871
3336
|
});
|
2872
3337
|
if (result.error) reject(result.value);
|
@@ -2874,72 +3339,87 @@
|
|
2874
3339
|
}
|
2875
3340
|
});
|
2876
3341
|
|
3342
|
+
var $$4 = _export;
|
3343
|
+
var call$4 = functionCall;
|
3344
|
+
var newPromiseCapabilityModule = newPromiseCapability$2;
|
2877
3345
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
2878
3346
|
|
2879
3347
|
// `Promise.reject` method
|
2880
3348
|
// https://tc39.es/ecma262/#sec-promise.reject
|
2881
|
-
|
3349
|
+
$$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
2882
3350
|
reject: function reject(r) {
|
2883
|
-
var capability =
|
2884
|
-
|
3351
|
+
var capability = newPromiseCapabilityModule.f(this);
|
3352
|
+
call$4(capability.reject, undefined, r);
|
2885
3353
|
return capability.promise;
|
2886
3354
|
}
|
2887
3355
|
});
|
2888
3356
|
|
2889
|
-
var
|
2890
|
-
|
3357
|
+
var anObject$4 = anObject$g;
|
3358
|
+
var isObject = isObject$a;
|
3359
|
+
var newPromiseCapability = newPromiseCapability$2;
|
3360
|
+
|
3361
|
+
var promiseResolve$1 = function (C, x) {
|
3362
|
+
anObject$4(C);
|
2891
3363
|
if (isObject(x) && x.constructor === C) return x;
|
2892
|
-
var promiseCapability = newPromiseCapability
|
3364
|
+
var promiseCapability = newPromiseCapability.f(C);
|
2893
3365
|
var resolve = promiseCapability.resolve;
|
2894
3366
|
resolve(x);
|
2895
3367
|
return promiseCapability.promise;
|
2896
3368
|
};
|
2897
3369
|
|
3370
|
+
var $$3 = _export;
|
3371
|
+
var getBuiltIn = getBuiltIn$8;
|
2898
3372
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
2899
|
-
|
3373
|
+
var promiseResolve = promiseResolve$1;
|
2900
3374
|
|
2901
3375
|
getBuiltIn('Promise');
|
2902
3376
|
|
2903
3377
|
// `Promise.resolve` method
|
2904
3378
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
2905
|
-
|
3379
|
+
$$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
2906
3380
|
resolve: function resolve(x) {
|
2907
3381
|
return promiseResolve(this, x);
|
2908
3382
|
}
|
2909
3383
|
});
|
2910
3384
|
|
2911
3385
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
2912
|
-
|
2913
|
-
|
3386
|
+
var fails$4 = fails$q;
|
3387
|
+
var whitespaces = whitespaces$3;
|
2914
3388
|
|
2915
3389
|
var non = '\u200B\u0085\u180E';
|
2916
3390
|
|
2917
3391
|
// check that a method works with the correct list
|
2918
3392
|
// of whitespaces and has a correct name
|
2919
3393
|
var stringTrimForced = function (METHOD_NAME) {
|
2920
|
-
return fails(function () {
|
3394
|
+
return fails$4(function () {
|
2921
3395
|
return !!whitespaces[METHOD_NAME]()
|
2922
3396
|
|| non[METHOD_NAME]() !== non
|
2923
3397
|
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
2924
3398
|
});
|
2925
3399
|
};
|
2926
3400
|
|
3401
|
+
var $$2 = _export;
|
2927
3402
|
var $trim = stringTrim.trim;
|
2928
|
-
|
3403
|
+
var forcedStringTrimMethod = stringTrimForced;
|
2929
3404
|
|
2930
3405
|
// `String.prototype.trim` method
|
2931
3406
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
2932
|
-
|
3407
|
+
$$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
2933
3408
|
trim: function trim() {
|
2934
3409
|
return $trim(this);
|
2935
3410
|
}
|
2936
3411
|
});
|
2937
3412
|
|
2938
|
-
var
|
3413
|
+
var global$2 = global$L;
|
3414
|
+
var toAbsoluteIndex = toAbsoluteIndex$2;
|
3415
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$6;
|
3416
|
+
var createProperty = createProperty$2;
|
3417
|
+
|
3418
|
+
var Array$1 = global$2.Array;
|
2939
3419
|
var max$1 = Math.max;
|
2940
3420
|
|
2941
3421
|
var arraySliceSimple = function (O, start, end) {
|
2942
|
-
var length = lengthOfArrayLike(O);
|
3422
|
+
var length = lengthOfArrayLike$1(O);
|
2943
3423
|
var k = toAbsoluteIndex(start, length);
|
2944
3424
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
2945
3425
|
var result = Array$1(max$1(fin - k, 0));
|
@@ -2948,6 +3428,8 @@
|
|
2948
3428
|
return result;
|
2949
3429
|
};
|
2950
3430
|
|
3431
|
+
var arraySlice$1 = arraySliceSimple;
|
3432
|
+
|
2951
3433
|
var floor$1 = Math.floor;
|
2952
3434
|
|
2953
3435
|
var mergeSort = function (array, comparefn) {
|
@@ -2955,8 +3437,8 @@
|
|
2955
3437
|
var middle = floor$1(length / 2);
|
2956
3438
|
return length < 8 ? insertionSort(array, comparefn) : merge(
|
2957
3439
|
array,
|
2958
|
-
mergeSort(
|
2959
|
-
mergeSort(
|
3440
|
+
mergeSort(arraySlice$1(array, 0, middle), comparefn),
|
3441
|
+
mergeSort(arraySlice$1(array, middle), comparefn),
|
2960
3442
|
comparefn
|
2961
3443
|
);
|
2962
3444
|
};
|
@@ -2991,37 +3473,57 @@
|
|
2991
3473
|
|
2992
3474
|
var arraySort = mergeSort;
|
2993
3475
|
|
2994
|
-
var
|
3476
|
+
var userAgent$1 = engineUserAgent;
|
3477
|
+
|
3478
|
+
var firefox = userAgent$1.match(/firefox\/(\d+)/i);
|
2995
3479
|
|
2996
3480
|
var engineFfVersion = !!firefox && +firefox[1];
|
2997
3481
|
|
2998
|
-
var
|
3482
|
+
var UA = engineUserAgent;
|
3483
|
+
|
3484
|
+
var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
|
2999
3485
|
|
3000
|
-
var
|
3486
|
+
var userAgent = engineUserAgent;
|
3487
|
+
|
3488
|
+
var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
3001
3489
|
|
3002
3490
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
3003
3491
|
|
3492
|
+
var $$1 = _export;
|
3493
|
+
var uncurryThis$6 = functionUncurryThis;
|
3494
|
+
var aCallable = aCallable$8;
|
3495
|
+
var toObject$1 = toObject$7;
|
3496
|
+
var lengthOfArrayLike = lengthOfArrayLike$6;
|
3497
|
+
var toString$4 = toString$9;
|
3498
|
+
var fails$3 = fails$q;
|
3499
|
+
var internalSort = arraySort;
|
3500
|
+
var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;
|
3501
|
+
var FF = engineFfVersion;
|
3502
|
+
var IE_OR_EDGE = engineIsIeOrEdge;
|
3503
|
+
var V8 = engineV8Version;
|
3504
|
+
var WEBKIT = engineWebkitVersion;
|
3505
|
+
|
3004
3506
|
var test = [];
|
3005
|
-
var un$Sort =
|
3006
|
-
var push$2 =
|
3507
|
+
var un$Sort = uncurryThis$6(test.sort);
|
3508
|
+
var push$2 = uncurryThis$6(test.push);
|
3007
3509
|
|
3008
3510
|
// IE8-
|
3009
|
-
var FAILS_ON_UNDEFINED = fails(function () {
|
3511
|
+
var FAILS_ON_UNDEFINED = fails$3(function () {
|
3010
3512
|
test.sort(undefined);
|
3011
3513
|
});
|
3012
3514
|
// V8 bug
|
3013
|
-
var FAILS_ON_NULL = fails(function () {
|
3515
|
+
var FAILS_ON_NULL = fails$3(function () {
|
3014
3516
|
test.sort(null);
|
3015
3517
|
});
|
3016
3518
|
// Old WebKit
|
3017
|
-
var STRICT_METHOD$1 = arrayMethodIsStrict('sort');
|
3519
|
+
var STRICT_METHOD$1 = arrayMethodIsStrict$1('sort');
|
3018
3520
|
|
3019
|
-
var STABLE_SORT = !fails(function () {
|
3521
|
+
var STABLE_SORT = !fails$3(function () {
|
3020
3522
|
// feature detection can be too slow, so check engines versions
|
3021
|
-
if (
|
3022
|
-
if (
|
3023
|
-
if (
|
3024
|
-
if (
|
3523
|
+
if (V8) return V8 < 70;
|
3524
|
+
if (FF && FF > 3) return;
|
3525
|
+
if (IE_OR_EDGE) return true;
|
3526
|
+
if (WEBKIT) return WEBKIT < 603;
|
3025
3527
|
|
3026
3528
|
var result = '';
|
3027
3529
|
var code, chr, value, index;
|
@@ -3058,17 +3560,17 @@
|
|
3058
3560
|
if (y === undefined) return -1;
|
3059
3561
|
if (x === undefined) return 1;
|
3060
3562
|
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
3061
|
-
return
|
3563
|
+
return toString$4(x) > toString$4(y) ? 1 : -1;
|
3062
3564
|
};
|
3063
3565
|
};
|
3064
3566
|
|
3065
3567
|
// `Array.prototype.sort` method
|
3066
3568
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
3067
|
-
|
3569
|
+
$$1({ target: 'Array', proto: true, forced: FORCED }, {
|
3068
3570
|
sort: function sort(comparefn) {
|
3069
3571
|
if (comparefn !== undefined) aCallable(comparefn);
|
3070
3572
|
|
3071
|
-
var array = toObject(this);
|
3573
|
+
var array = toObject$1(this);
|
3072
3574
|
|
3073
3575
|
if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
|
3074
3576
|
|
@@ -3080,7 +3582,7 @@
|
|
3080
3582
|
if (index in array) push$2(items, array[index]);
|
3081
3583
|
}
|
3082
3584
|
|
3083
|
-
|
3585
|
+
internalSort(items, getSortCompare(comparefn));
|
3084
3586
|
|
3085
3587
|
itemsLength = items.length;
|
3086
3588
|
index = 0;
|
@@ -3094,27 +3596,27 @@
|
|
3094
3596
|
|
3095
3597
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
3096
3598
|
|
3599
|
+
var uncurryThis$5 = functionUncurryThis;
|
3600
|
+
var defineBuiltIn = defineBuiltIn$6;
|
3601
|
+
var regexpExec$2 = regexpExec$3;
|
3602
|
+
var fails$2 = fails$q;
|
3603
|
+
var wellKnownSymbol$1 = wellKnownSymbol$i;
|
3604
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
3097
3605
|
|
3098
|
-
|
3099
|
-
|
3100
|
-
|
3101
|
-
|
3102
|
-
|
3103
|
-
|
3104
|
-
var SPECIES = wellKnownSymbol('species');
|
3606
|
+
var SPECIES = wellKnownSymbol$1('species');
|
3105
3607
|
var RegExpPrototype = RegExp.prototype;
|
3106
3608
|
|
3107
3609
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
3108
|
-
var SYMBOL = wellKnownSymbol(KEY);
|
3610
|
+
var SYMBOL = wellKnownSymbol$1(KEY);
|
3109
3611
|
|
3110
|
-
var DELEGATES_TO_SYMBOL = !fails(function () {
|
3612
|
+
var DELEGATES_TO_SYMBOL = !fails$2(function () {
|
3111
3613
|
// String methods call symbol-named RegEp methods
|
3112
3614
|
var O = {};
|
3113
3615
|
O[SYMBOL] = function () { return 7; };
|
3114
3616
|
return ''[KEY](O) != 7;
|
3115
3617
|
});
|
3116
3618
|
|
3117
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
3619
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
|
3118
3620
|
// Symbol-named RegExp methods call .exec
|
3119
3621
|
var execCalled = false;
|
3120
3622
|
var re = /a/;
|
@@ -3143,11 +3645,11 @@
|
|
3143
3645
|
!DELEGATES_TO_EXEC ||
|
3144
3646
|
FORCED
|
3145
3647
|
) {
|
3146
|
-
var uncurriedNativeRegExpMethod =
|
3648
|
+
var uncurriedNativeRegExpMethod = uncurryThis$5(/./[SYMBOL]);
|
3147
3649
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
3148
|
-
var uncurriedNativeMethod =
|
3650
|
+
var uncurriedNativeMethod = uncurryThis$5(nativeMethod);
|
3149
3651
|
var $exec = regexp.exec;
|
3150
|
-
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
3652
|
+
if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) {
|
3151
3653
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
3152
3654
|
// The native String method already delegates to @@method (this
|
3153
3655
|
// polyfilled function), leasing to infinite recursion.
|
@@ -3166,14 +3668,19 @@
|
|
3166
3668
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
3167
3669
|
};
|
3168
3670
|
|
3169
|
-
var
|
3170
|
-
var
|
3171
|
-
var
|
3671
|
+
var uncurryThis$4 = functionUncurryThis;
|
3672
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
3673
|
+
var toString$3 = toString$9;
|
3674
|
+
var requireObjectCoercible$3 = requireObjectCoercible$8;
|
3675
|
+
|
3676
|
+
var charAt$2 = uncurryThis$4(''.charAt);
|
3677
|
+
var charCodeAt = uncurryThis$4(''.charCodeAt);
|
3678
|
+
var stringSlice$3 = uncurryThis$4(''.slice);
|
3172
3679
|
|
3173
3680
|
var createMethod = function (CONVERT_TO_STRING) {
|
3174
3681
|
return function ($this, pos) {
|
3175
|
-
var S =
|
3176
|
-
var position = toIntegerOrInfinity(pos);
|
3682
|
+
var S = toString$3(requireObjectCoercible$3($this));
|
3683
|
+
var position = toIntegerOrInfinity$1(pos);
|
3177
3684
|
var size = S.length;
|
3178
3685
|
var first, second;
|
3179
3686
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
@@ -3202,20 +3709,23 @@
|
|
3202
3709
|
|
3203
3710
|
// `AdvanceStringIndex` abstract operation
|
3204
3711
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
3205
|
-
var advanceStringIndex = function (S, index, unicode) {
|
3712
|
+
var advanceStringIndex$3 = function (S, index, unicode) {
|
3206
3713
|
return index + (unicode ? charAt$1(S, index).length : 1);
|
3207
3714
|
};
|
3208
3715
|
|
3716
|
+
var uncurryThis$3 = functionUncurryThis;
|
3717
|
+
var toObject = toObject$7;
|
3718
|
+
|
3209
3719
|
var floor = Math.floor;
|
3210
|
-
var charAt =
|
3211
|
-
var replace =
|
3212
|
-
var stringSlice$2 =
|
3720
|
+
var charAt = uncurryThis$3(''.charAt);
|
3721
|
+
var replace = uncurryThis$3(''.replace);
|
3722
|
+
var stringSlice$2 = uncurryThis$3(''.slice);
|
3213
3723
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
3214
3724
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
3215
3725
|
|
3216
3726
|
// `GetSubstitution` abstract operation
|
3217
3727
|
// https://tc39.es/ecma262/#sec-getsubstitution
|
3218
|
-
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
3728
|
+
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
3219
3729
|
var tailPos = position + matched.length;
|
3220
3730
|
var m = captures.length;
|
3221
3731
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
@@ -3248,28 +3758,52 @@
|
|
3248
3758
|
});
|
3249
3759
|
};
|
3250
3760
|
|
3251
|
-
var
|
3761
|
+
var global$1 = global$L;
|
3762
|
+
var call$3 = functionCall;
|
3763
|
+
var anObject$3 = anObject$g;
|
3764
|
+
var isCallable$1 = isCallable$j;
|
3765
|
+
var classof = classofRaw$1;
|
3766
|
+
var regexpExec$1 = regexpExec$3;
|
3767
|
+
|
3768
|
+
var TypeError$1 = global$1.TypeError;
|
3252
3769
|
|
3253
3770
|
// `RegExpExec` abstract operation
|
3254
3771
|
// https://tc39.es/ecma262/#sec-regexpexec
|
3255
3772
|
var regexpExecAbstract = function (R, S) {
|
3256
3773
|
var exec = R.exec;
|
3257
|
-
if (isCallable(exec)) {
|
3258
|
-
var result =
|
3259
|
-
if (result !== null) anObject(result);
|
3774
|
+
if (isCallable$1(exec)) {
|
3775
|
+
var result = call$3(exec, R, S);
|
3776
|
+
if (result !== null) anObject$3(result);
|
3260
3777
|
return result;
|
3261
3778
|
}
|
3262
|
-
if (
|
3779
|
+
if (classof(R) === 'RegExp') return call$3(regexpExec$1, R, S);
|
3263
3780
|
throw TypeError$1('RegExp#exec called on incompatible receiver');
|
3264
3781
|
};
|
3265
3782
|
|
3783
|
+
var apply$1 = functionApply;
|
3784
|
+
var call$2 = functionCall;
|
3785
|
+
var uncurryThis$2 = functionUncurryThis;
|
3786
|
+
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
|
3787
|
+
var fails$1 = fails$q;
|
3788
|
+
var anObject$2 = anObject$g;
|
3789
|
+
var isCallable = isCallable$j;
|
3790
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
3791
|
+
var toLength$2 = toLength$4;
|
3792
|
+
var toString$2 = toString$9;
|
3793
|
+
var requireObjectCoercible$2 = requireObjectCoercible$8;
|
3794
|
+
var advanceStringIndex$2 = advanceStringIndex$3;
|
3795
|
+
var getMethod$2 = getMethod$6;
|
3796
|
+
var getSubstitution = getSubstitution$1;
|
3797
|
+
var regExpExec$1 = regexpExecAbstract;
|
3798
|
+
var wellKnownSymbol = wellKnownSymbol$i;
|
3799
|
+
|
3266
3800
|
var REPLACE = wellKnownSymbol('replace');
|
3267
3801
|
var max = Math.max;
|
3268
3802
|
var min$1 = Math.min;
|
3269
|
-
var concat =
|
3270
|
-
var push$1 =
|
3271
|
-
var stringIndexOf =
|
3272
|
-
var stringSlice$1 =
|
3803
|
+
var concat = uncurryThis$2([].concat);
|
3804
|
+
var push$1 = uncurryThis$2([].push);
|
3805
|
+
var stringIndexOf = uncurryThis$2(''.indexOf);
|
3806
|
+
var stringSlice$1 = uncurryThis$2(''.slice);
|
3273
3807
|
|
3274
3808
|
var maybeToString = function (it) {
|
3275
3809
|
return it === undefined ? it : String(it);
|
@@ -3290,7 +3824,7 @@
|
|
3290
3824
|
return false;
|
3291
3825
|
})();
|
3292
3826
|
|
3293
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
3827
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$1(function () {
|
3294
3828
|
var re = /./;
|
3295
3829
|
re.exec = function () {
|
3296
3830
|
var result = [];
|
@@ -3302,24 +3836,24 @@
|
|
3302
3836
|
});
|
3303
3837
|
|
3304
3838
|
// @@replace logic
|
3305
|
-
|
3839
|
+
fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCallNative) {
|
3306
3840
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
3307
3841
|
|
3308
3842
|
return [
|
3309
3843
|
// `String.prototype.replace` method
|
3310
3844
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
3311
3845
|
function replace(searchValue, replaceValue) {
|
3312
|
-
var O = requireObjectCoercible(this);
|
3313
|
-
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
3846
|
+
var O = requireObjectCoercible$2(this);
|
3847
|
+
var replacer = searchValue == undefined ? undefined : getMethod$2(searchValue, REPLACE);
|
3314
3848
|
return replacer
|
3315
|
-
?
|
3316
|
-
:
|
3849
|
+
? call$2(replacer, searchValue, O, replaceValue)
|
3850
|
+
: call$2(nativeReplace, toString$2(O), searchValue, replaceValue);
|
3317
3851
|
},
|
3318
3852
|
// `RegExp.prototype[@@replace]` method
|
3319
3853
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
3320
3854
|
function (string, replaceValue) {
|
3321
|
-
var rx = anObject(this);
|
3322
|
-
var S =
|
3855
|
+
var rx = anObject$2(this);
|
3856
|
+
var S = toString$2(string);
|
3323
3857
|
|
3324
3858
|
if (
|
3325
3859
|
typeof replaceValue == 'string' &&
|
@@ -3331,7 +3865,7 @@
|
|
3331
3865
|
}
|
3332
3866
|
|
3333
3867
|
var functionalReplace = isCallable(replaceValue);
|
3334
|
-
if (!functionalReplace) replaceValue =
|
3868
|
+
if (!functionalReplace) replaceValue = toString$2(replaceValue);
|
3335
3869
|
|
3336
3870
|
var global = rx.global;
|
3337
3871
|
if (global) {
|
@@ -3340,14 +3874,14 @@
|
|
3340
3874
|
}
|
3341
3875
|
var results = [];
|
3342
3876
|
while (true) {
|
3343
|
-
var result =
|
3877
|
+
var result = regExpExec$1(rx, S);
|
3344
3878
|
if (result === null) break;
|
3345
3879
|
|
3346
3880
|
push$1(results, result);
|
3347
3881
|
if (!global) break;
|
3348
3882
|
|
3349
|
-
var matchStr =
|
3350
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
3883
|
+
var matchStr = toString$2(result[0]);
|
3884
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex$2(S, toLength$2(rx.lastIndex), fullUnicode);
|
3351
3885
|
}
|
3352
3886
|
|
3353
3887
|
var accumulatedResult = '';
|
@@ -3355,7 +3889,7 @@
|
|
3355
3889
|
for (var i = 0; i < results.length; i++) {
|
3356
3890
|
result = results[i];
|
3357
3891
|
|
3358
|
-
var matched =
|
3892
|
+
var matched = toString$2(result[0]);
|
3359
3893
|
var position = max(min$1(toIntegerOrInfinity(result.index), S.length), 0);
|
3360
3894
|
var captures = [];
|
3361
3895
|
// NOTE: This is equivalent to
|
@@ -3368,7 +3902,7 @@
|
|
3368
3902
|
if (functionalReplace) {
|
3369
3903
|
var replacerArgs = concat([matched], captures, position, S);
|
3370
3904
|
if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
|
3371
|
-
var replacement =
|
3905
|
+
var replacement = toString$2(apply$1(replaceValue, undefined, replacerArgs));
|
3372
3906
|
} else {
|
3373
3907
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
3374
3908
|
}
|
@@ -3382,36 +3916,46 @@
|
|
3382
3916
|
];
|
3383
3917
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
3384
3918
|
|
3919
|
+
var call$1 = functionCall;
|
3920
|
+
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
3921
|
+
var anObject$1 = anObject$g;
|
3922
|
+
var toLength$1 = toLength$4;
|
3923
|
+
var toString$1 = toString$9;
|
3924
|
+
var requireObjectCoercible$1 = requireObjectCoercible$8;
|
3925
|
+
var getMethod$1 = getMethod$6;
|
3926
|
+
var advanceStringIndex$1 = advanceStringIndex$3;
|
3927
|
+
var regExpExec = regexpExecAbstract;
|
3928
|
+
|
3385
3929
|
// @@match logic
|
3386
|
-
|
3930
|
+
fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) {
|
3387
3931
|
return [
|
3388
3932
|
// `String.prototype.match` method
|
3389
3933
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
3390
3934
|
function match(regexp) {
|
3391
|
-
var O = requireObjectCoercible(this);
|
3392
|
-
var matcher = regexp == undefined ? undefined : getMethod(regexp, MATCH);
|
3393
|
-
return matcher ?
|
3935
|
+
var O = requireObjectCoercible$1(this);
|
3936
|
+
var matcher = regexp == undefined ? undefined : getMethod$1(regexp, MATCH);
|
3937
|
+
return matcher ? call$1(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$1(O));
|
3394
3938
|
},
|
3395
3939
|
// `RegExp.prototype[@@match]` method
|
3396
3940
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
3397
3941
|
function (string) {
|
3398
|
-
var rx = anObject(this);
|
3399
|
-
var S =
|
3942
|
+
var rx = anObject$1(this);
|
3943
|
+
var S = toString$1(string);
|
3400
3944
|
var res = maybeCallNative(nativeMatch, rx, S);
|
3401
3945
|
|
3402
3946
|
if (res.done) return res.value;
|
3403
3947
|
|
3404
|
-
if (!rx.global) return
|
3948
|
+
if (!rx.global) return regExpExec(rx, S);
|
3405
3949
|
|
3406
3950
|
var fullUnicode = rx.unicode;
|
3407
3951
|
rx.lastIndex = 0;
|
3408
3952
|
var A = [];
|
3409
3953
|
var n = 0;
|
3410
3954
|
var result;
|
3411
|
-
while ((result =
|
3412
|
-
var matchStr =
|
3955
|
+
while ((result = regExpExec(rx, S)) !== null) {
|
3956
|
+
var matchStr = toString$1(result[0]);
|
3413
3957
|
A[n] = matchStr;
|
3414
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
3958
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
|
3415
3959
|
n++;
|
3416
3960
|
}
|
3417
3961
|
return n === 0 ? null : A;
|
@@ -3419,13 +3963,31 @@
|
|
3419
3963
|
];
|
3420
3964
|
});
|
3421
3965
|
|
3422
|
-
var
|
3966
|
+
var apply = functionApply;
|
3967
|
+
var call = functionCall;
|
3968
|
+
var uncurryThis$1 = functionUncurryThis;
|
3969
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
3970
|
+
var isRegExp = isRegexp;
|
3971
|
+
var anObject = anObject$g;
|
3972
|
+
var requireObjectCoercible = requireObjectCoercible$8;
|
3973
|
+
var speciesConstructor = speciesConstructor$2;
|
3974
|
+
var advanceStringIndex = advanceStringIndex$3;
|
3975
|
+
var toLength = toLength$4;
|
3976
|
+
var toString = toString$9;
|
3977
|
+
var getMethod = getMethod$6;
|
3978
|
+
var arraySlice = arraySliceSimple;
|
3979
|
+
var callRegExpExec = regexpExecAbstract;
|
3980
|
+
var regexpExec = regexpExec$3;
|
3981
|
+
var stickyHelpers = regexpStickyHelpers;
|
3982
|
+
var fails = fails$q;
|
3983
|
+
|
3984
|
+
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
3423
3985
|
var MAX_UINT32 = 0xFFFFFFFF;
|
3424
3986
|
var min = Math.min;
|
3425
3987
|
var $push = [].push;
|
3426
|
-
var exec =
|
3427
|
-
var push =
|
3428
|
-
var stringSlice =
|
3988
|
+
var exec = uncurryThis$1(/./.exec);
|
3989
|
+
var push = uncurryThis$1($push);
|
3990
|
+
var stringSlice = uncurryThis$1(''.slice);
|
3429
3991
|
|
3430
3992
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
3431
3993
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
@@ -3439,7 +4001,7 @@
|
|
3439
4001
|
});
|
3440
4002
|
|
3441
4003
|
// @@split logic
|
3442
|
-
|
4004
|
+
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
3443
4005
|
var internalSplit;
|
3444
4006
|
if (
|
3445
4007
|
'abbc'.split(/(b)*/)[1] == 'c' ||
|
@@ -3453,13 +4015,13 @@
|
|
3453
4015
|
) {
|
3454
4016
|
// based on es5-shim implementation, need to rework it
|
3455
4017
|
internalSplit = function (separator, limit) {
|
3456
|
-
var string =
|
4018
|
+
var string = toString(requireObjectCoercible(this));
|
3457
4019
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
3458
4020
|
if (lim === 0) return [];
|
3459
4021
|
if (separator === undefined) return [string];
|
3460
4022
|
// If `separator` is not a regex, use native split
|
3461
|
-
if (!
|
3462
|
-
return
|
4023
|
+
if (!isRegExp(separator)) {
|
4024
|
+
return call(nativeSplit, string, separator, lim);
|
3463
4025
|
}
|
3464
4026
|
var output = [];
|
3465
4027
|
var flags = (separator.ignoreCase ? 'i' : '') +
|
@@ -3470,11 +4032,11 @@
|
|
3470
4032
|
// Make `global` and avoid `lastIndex` issues by working with a copy
|
3471
4033
|
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
3472
4034
|
var match, lastIndex, lastLength;
|
3473
|
-
while (match =
|
4035
|
+
while (match = call(regexpExec, separatorCopy, string)) {
|
3474
4036
|
lastIndex = separatorCopy.lastIndex;
|
3475
4037
|
if (lastIndex > lastLastIndex) {
|
3476
4038
|
push(output, stringSlice(string, lastLastIndex, match.index));
|
3477
|
-
if (match.length > 1 && match.index < string.length)
|
4039
|
+
if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1));
|
3478
4040
|
lastLength = match[0].length;
|
3479
4041
|
lastLastIndex = lastIndex;
|
3480
4042
|
if (output.length >= lim) break;
|
@@ -3484,12 +4046,12 @@
|
|
3484
4046
|
if (lastLastIndex === string.length) {
|
3485
4047
|
if (lastLength || !exec(separatorCopy, '')) push(output, '');
|
3486
4048
|
} else push(output, stringSlice(string, lastLastIndex));
|
3487
|
-
return output.length > lim ?
|
4049
|
+
return output.length > lim ? arraySlice(output, 0, lim) : output;
|
3488
4050
|
};
|
3489
4051
|
// Chakra, V8
|
3490
4052
|
} else if ('0'.split(undefined, 0).length) {
|
3491
4053
|
internalSplit = function (separator, limit) {
|
3492
|
-
return separator === undefined && limit === 0 ? [] :
|
4054
|
+
return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
|
3493
4055
|
};
|
3494
4056
|
} else internalSplit = nativeSplit;
|
3495
4057
|
|
@@ -3500,8 +4062,8 @@
|
|
3500
4062
|
var O = requireObjectCoercible(this);
|
3501
4063
|
var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
|
3502
4064
|
return splitter
|
3503
|
-
?
|
3504
|
-
:
|
4065
|
+
? call(splitter, separator, O, limit)
|
4066
|
+
: call(internalSplit, toString(O), separator, limit);
|
3505
4067
|
},
|
3506
4068
|
// `RegExp.prototype[@@split]` method
|
3507
4069
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
@@ -3510,7 +4072,7 @@
|
|
3510
4072
|
// the 'y' flag.
|
3511
4073
|
function (string, limit) {
|
3512
4074
|
var rx = anObject(this);
|
3513
|
-
var S =
|
4075
|
+
var S = toString(string);
|
3514
4076
|
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
3515
4077
|
|
3516
4078
|
if (res.done) return res.value;
|
@@ -3528,13 +4090,13 @@
|
|
3528
4090
|
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
3529
4091
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
3530
4092
|
if (lim === 0) return [];
|
3531
|
-
if (S.length === 0) return
|
4093
|
+
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
3532
4094
|
var p = 0;
|
3533
4095
|
var q = 0;
|
3534
4096
|
var A = [];
|
3535
4097
|
while (q < S.length) {
|
3536
4098
|
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
3537
|
-
var z =
|
4099
|
+
var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
|
3538
4100
|
var e;
|
3539
4101
|
if (
|
3540
4102
|
z === null ||
|
@@ -3557,14 +4119,20 @@
|
|
3557
4119
|
];
|
3558
4120
|
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
3559
4121
|
|
3560
|
-
var
|
4122
|
+
var $ = _export;
|
4123
|
+
var uncurryThis = functionUncurryThis;
|
4124
|
+
var IndexedObject = indexedObject;
|
4125
|
+
var toIndexedObject = toIndexedObject$6;
|
4126
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$4;
|
4127
|
+
|
4128
|
+
var un$Join = uncurryThis([].join);
|
3561
4129
|
|
3562
|
-
var ES3_STRINGS =
|
4130
|
+
var ES3_STRINGS = IndexedObject != Object;
|
3563
4131
|
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
3564
4132
|
|
3565
4133
|
// `Array.prototype.join` method
|
3566
4134
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
3567
|
-
|
4135
|
+
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
3568
4136
|
join: function join(separator) {
|
3569
4137
|
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
3570
4138
|
}
|
@@ -4506,7 +5074,7 @@
|
|
4506
5074
|
} else if (column.filterStartsWithSearch) {
|
4507
5075
|
tmpItemIsExpected = "".concat(value).toLowerCase().indexOf(searchValue) === 0;
|
4508
5076
|
} else if (column.filterControl === 'datepicker') {
|
4509
|
-
tmpItemIsExpected = new Date(value) === new Date(searchValue);
|
5077
|
+
tmpItemIsExpected = new Date(value).getTime() === new Date(searchValue).getTime();
|
4510
5078
|
} else if (this.options.regexSearch) {
|
4511
5079
|
tmpItemIsExpected = Utils.regexCompare(value, searchValue);
|
4512
5080
|
} else {
|