@bcrumbs.net/bc-api 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +590 -433
- package/index.esm.js +586 -435
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/lib/clients/utils.d.ts +2 -0
package/index.cjs.js
CHANGED
|
@@ -11,6 +11,8 @@ var Url = require('url');
|
|
|
11
11
|
var require$$0$1 = require('punycode');
|
|
12
12
|
var https = require('https');
|
|
13
13
|
var zlib = require('zlib');
|
|
14
|
+
var batchHttp = require('@apollo/client/link/batch-http');
|
|
15
|
+
var utilities = require('@apollo/client/utilities');
|
|
14
16
|
|
|
15
17
|
/******************************************************************************
|
|
16
18
|
Copyright (c) Microsoft Corporation.
|
|
@@ -26,7 +28,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
26
28
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
29
|
PERFORMANCE OF THIS SOFTWARE.
|
|
28
30
|
***************************************************************************** */
|
|
29
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
31
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
var __assign = function() {
|
|
@@ -209,7 +211,7 @@ var check = function (it) {
|
|
|
209
211
|
};
|
|
210
212
|
|
|
211
213
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
212
|
-
var global$
|
|
214
|
+
var global$m =
|
|
213
215
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
214
216
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
215
217
|
check(typeof window == 'object' && window) ||
|
|
@@ -222,7 +224,7 @@ var global$l =
|
|
|
222
224
|
|
|
223
225
|
var objectGetOwnPropertyDescriptor = {};
|
|
224
226
|
|
|
225
|
-
var fails$
|
|
227
|
+
var fails$j = function (exec) {
|
|
226
228
|
try {
|
|
227
229
|
return !!exec();
|
|
228
230
|
} catch (error) {
|
|
@@ -230,17 +232,17 @@ var fails$i = function (exec) {
|
|
|
230
232
|
}
|
|
231
233
|
};
|
|
232
234
|
|
|
233
|
-
var fails$
|
|
235
|
+
var fails$i = fails$j;
|
|
234
236
|
|
|
235
237
|
// Detect IE8's incomplete defineProperty implementation
|
|
236
|
-
var descriptors = !fails$
|
|
238
|
+
var descriptors = !fails$i(function () {
|
|
237
239
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
238
240
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
239
241
|
});
|
|
240
242
|
|
|
241
|
-
var fails$
|
|
243
|
+
var fails$h = fails$j;
|
|
242
244
|
|
|
243
|
-
var functionBindNative = !fails$
|
|
245
|
+
var functionBindNative = !fails$h(function () {
|
|
244
246
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
245
247
|
var test = (function () { /* empty */ }).bind();
|
|
246
248
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -271,7 +273,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
271
273
|
return !!descriptor && descriptor.enumerable;
|
|
272
274
|
} : $propertyIsEnumerable;
|
|
273
275
|
|
|
274
|
-
var createPropertyDescriptor$
|
|
276
|
+
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
275
277
|
return {
|
|
276
278
|
enumerable: !(bitmap & 1),
|
|
277
279
|
configurable: !(bitmap & 2),
|
|
@@ -302,14 +304,14 @@ var classofRaw$2 = function (it) {
|
|
|
302
304
|
};
|
|
303
305
|
|
|
304
306
|
var uncurryThis$h = functionUncurryThis;
|
|
305
|
-
var fails$
|
|
307
|
+
var fails$g = fails$j;
|
|
306
308
|
var classof$6 = classofRaw$2;
|
|
307
309
|
|
|
308
310
|
var $Object$4 = Object;
|
|
309
311
|
var split = uncurryThis$h(''.split);
|
|
310
312
|
|
|
311
313
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
312
|
-
var indexedObject = fails$
|
|
314
|
+
var indexedObject = fails$g(function () {
|
|
313
315
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
314
316
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
315
317
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -325,12 +327,12 @@ var isNullOrUndefined$6 = function (it) {
|
|
|
325
327
|
|
|
326
328
|
var isNullOrUndefined$5 = isNullOrUndefined$6;
|
|
327
329
|
|
|
328
|
-
var $TypeError$
|
|
330
|
+
var $TypeError$e = TypeError;
|
|
329
331
|
|
|
330
332
|
// `RequireObjectCoercible` abstract operation
|
|
331
333
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
332
334
|
var requireObjectCoercible$6 = function (it) {
|
|
333
|
-
if (isNullOrUndefined$5(it)) throw new $TypeError$
|
|
335
|
+
if (isNullOrUndefined$5(it)) throw new $TypeError$e("Can't call method on " + it);
|
|
334
336
|
return it;
|
|
335
337
|
};
|
|
336
338
|
|
|
@@ -348,27 +350,27 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
348
350
|
// `IsCallable` abstract operation
|
|
349
351
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
350
352
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
351
|
-
var isCallable$
|
|
353
|
+
var isCallable$m = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
352
354
|
return typeof argument == 'function' || argument === documentAll;
|
|
353
355
|
} : function (argument) {
|
|
354
356
|
return typeof argument == 'function';
|
|
355
357
|
};
|
|
356
358
|
|
|
357
|
-
var isCallable$
|
|
359
|
+
var isCallable$l = isCallable$m;
|
|
358
360
|
|
|
359
361
|
var isObject$a = function (it) {
|
|
360
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
362
|
+
return typeof it == 'object' ? it !== null : isCallable$l(it);
|
|
361
363
|
};
|
|
362
364
|
|
|
363
|
-
var global$
|
|
364
|
-
var isCallable$
|
|
365
|
+
var global$l = global$m;
|
|
366
|
+
var isCallable$k = isCallable$m;
|
|
365
367
|
|
|
366
368
|
var aFunction = function (argument) {
|
|
367
|
-
return isCallable$
|
|
369
|
+
return isCallable$k(argument) ? argument : undefined;
|
|
368
370
|
};
|
|
369
371
|
|
|
370
372
|
var getBuiltIn$7 = function (namespace, method) {
|
|
371
|
-
return arguments.length < 2 ? aFunction(global$
|
|
373
|
+
return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
|
|
372
374
|
};
|
|
373
375
|
|
|
374
376
|
var uncurryThis$g = functionUncurryThis;
|
|
@@ -377,11 +379,11 @@ var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
|
|
|
377
379
|
|
|
378
380
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
379
381
|
|
|
380
|
-
var global$
|
|
382
|
+
var global$k = global$m;
|
|
381
383
|
var userAgent$3 = engineUserAgent;
|
|
382
384
|
|
|
383
|
-
var process$4 = global$
|
|
384
|
-
var Deno$1 = global$
|
|
385
|
+
var process$4 = global$k.process;
|
|
386
|
+
var Deno$1 = global$k.Deno;
|
|
385
387
|
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
386
388
|
var v8 = versions && versions.v8;
|
|
387
389
|
var match, version;
|
|
@@ -407,13 +409,13 @@ var engineV8Version = version;
|
|
|
407
409
|
|
|
408
410
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
409
411
|
var V8_VERSION$1 = engineV8Version;
|
|
410
|
-
var fails$
|
|
411
|
-
var global$
|
|
412
|
+
var fails$f = fails$j;
|
|
413
|
+
var global$j = global$m;
|
|
412
414
|
|
|
413
|
-
var $String$5 = global$
|
|
415
|
+
var $String$5 = global$j.String;
|
|
414
416
|
|
|
415
417
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
416
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
418
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function () {
|
|
417
419
|
var symbol = Symbol('symbol detection');
|
|
418
420
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
419
421
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -432,7 +434,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
432
434
|
&& typeof Symbol.iterator == 'symbol';
|
|
433
435
|
|
|
434
436
|
var getBuiltIn$6 = getBuiltIn$7;
|
|
435
|
-
var isCallable$
|
|
437
|
+
var isCallable$j = isCallable$m;
|
|
436
438
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
437
439
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
438
440
|
|
|
@@ -442,7 +444,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
|
442
444
|
return typeof it == 'symbol';
|
|
443
445
|
} : function (it) {
|
|
444
446
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
445
|
-
return isCallable$
|
|
447
|
+
return isCallable$j($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
|
|
446
448
|
};
|
|
447
449
|
|
|
448
450
|
var $String$4 = String;
|
|
@@ -455,59 +457,59 @@ var tryToString$4 = function (argument) {
|
|
|
455
457
|
}
|
|
456
458
|
};
|
|
457
459
|
|
|
458
|
-
var isCallable$
|
|
460
|
+
var isCallable$i = isCallable$m;
|
|
459
461
|
var tryToString$3 = tryToString$4;
|
|
460
462
|
|
|
461
|
-
var $TypeError$
|
|
463
|
+
var $TypeError$d = TypeError;
|
|
462
464
|
|
|
463
465
|
// `Assert: IsCallable(argument) is true`
|
|
464
|
-
var aCallable$
|
|
465
|
-
if (isCallable$
|
|
466
|
-
throw new $TypeError$
|
|
466
|
+
var aCallable$a = function (argument) {
|
|
467
|
+
if (isCallable$i(argument)) return argument;
|
|
468
|
+
throw new $TypeError$d(tryToString$3(argument) + ' is not a function');
|
|
467
469
|
};
|
|
468
470
|
|
|
469
|
-
var aCallable$
|
|
471
|
+
var aCallable$9 = aCallable$a;
|
|
470
472
|
var isNullOrUndefined$4 = isNullOrUndefined$6;
|
|
471
473
|
|
|
472
474
|
// `GetMethod` abstract operation
|
|
473
475
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
474
476
|
var getMethod$5 = function (V, P) {
|
|
475
477
|
var func = V[P];
|
|
476
|
-
return isNullOrUndefined$4(func) ? undefined : aCallable$
|
|
478
|
+
return isNullOrUndefined$4(func) ? undefined : aCallable$9(func);
|
|
477
479
|
};
|
|
478
480
|
|
|
479
481
|
var call$g = functionCall;
|
|
480
|
-
var isCallable$
|
|
482
|
+
var isCallable$h = isCallable$m;
|
|
481
483
|
var isObject$9 = isObject$a;
|
|
482
484
|
|
|
483
|
-
var $TypeError$
|
|
485
|
+
var $TypeError$c = TypeError;
|
|
484
486
|
|
|
485
487
|
// `OrdinaryToPrimitive` abstract operation
|
|
486
488
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
487
489
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
488
490
|
var fn, val;
|
|
489
|
-
if (pref === 'string' && isCallable$
|
|
490
|
-
if (isCallable$
|
|
491
|
-
if (pref !== 'string' && isCallable$
|
|
492
|
-
throw new $TypeError$
|
|
491
|
+
if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
|
|
492
|
+
if (isCallable$h(fn = input.valueOf) && !isObject$9(val = call$g(fn, input))) return val;
|
|
493
|
+
if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
|
|
494
|
+
throw new $TypeError$c("Can't convert object to primitive value");
|
|
493
495
|
};
|
|
494
496
|
|
|
495
497
|
var sharedStore = {exports: {}};
|
|
496
498
|
|
|
497
|
-
var global$
|
|
499
|
+
var global$i = global$m;
|
|
498
500
|
|
|
499
501
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
500
502
|
var defineProperty$6 = Object.defineProperty;
|
|
501
503
|
|
|
502
504
|
var defineGlobalProperty$3 = function (key, value) {
|
|
503
505
|
try {
|
|
504
|
-
defineProperty$6(global$
|
|
506
|
+
defineProperty$6(global$i, key, { value: value, configurable: true, writable: true });
|
|
505
507
|
} catch (error) {
|
|
506
|
-
global$
|
|
508
|
+
global$i[key] = value;
|
|
507
509
|
} return value;
|
|
508
510
|
};
|
|
509
511
|
|
|
510
|
-
var globalThis$1 = global$
|
|
512
|
+
var globalThis$1 = global$m;
|
|
511
513
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
512
514
|
|
|
513
515
|
var SHARED = '__core-js_shared__';
|
|
@@ -561,20 +563,20 @@ var uid$2 = function (key) {
|
|
|
561
563
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
562
564
|
};
|
|
563
565
|
|
|
564
|
-
var global$
|
|
566
|
+
var global$h = global$m;
|
|
565
567
|
var shared$3 = shared$4;
|
|
566
|
-
var hasOwn$
|
|
568
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
567
569
|
var uid$1 = uid$2;
|
|
568
570
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
569
571
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
570
572
|
|
|
571
|
-
var Symbol$1 = global$
|
|
573
|
+
var Symbol$1 = global$h.Symbol;
|
|
572
574
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
573
575
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
574
576
|
|
|
575
|
-
var wellKnownSymbol$
|
|
576
|
-
if (!hasOwn$
|
|
577
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
577
|
+
var wellKnownSymbol$h = function (name) {
|
|
578
|
+
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
579
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
|
|
578
580
|
? Symbol$1[name]
|
|
579
581
|
: createWellKnownSymbol('Symbol.' + name);
|
|
580
582
|
} return WellKnownSymbolsStore[name];
|
|
@@ -585,10 +587,10 @@ var isObject$8 = isObject$a;
|
|
|
585
587
|
var isSymbol$1 = isSymbol$2;
|
|
586
588
|
var getMethod$4 = getMethod$5;
|
|
587
589
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
588
|
-
var wellKnownSymbol$
|
|
590
|
+
var wellKnownSymbol$g = wellKnownSymbol$h;
|
|
589
591
|
|
|
590
|
-
var $TypeError$
|
|
591
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
592
|
+
var $TypeError$b = TypeError;
|
|
593
|
+
var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
|
|
592
594
|
|
|
593
595
|
// `ToPrimitive` abstract operation
|
|
594
596
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
@@ -600,7 +602,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
600
602
|
if (pref === undefined) pref = 'default';
|
|
601
603
|
result = call$f(exoticToPrim, input, pref);
|
|
602
604
|
if (!isObject$8(result) || isSymbol$1(result)) return result;
|
|
603
|
-
throw new $TypeError$
|
|
605
|
+
throw new $TypeError$b("Can't convert object to primitive value");
|
|
604
606
|
}
|
|
605
607
|
if (pref === undefined) pref = 'number';
|
|
606
608
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -616,10 +618,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
616
618
|
return isSymbol(key) ? key : key + '';
|
|
617
619
|
};
|
|
618
620
|
|
|
619
|
-
var global$
|
|
621
|
+
var global$g = global$m;
|
|
620
622
|
var isObject$7 = isObject$a;
|
|
621
623
|
|
|
622
|
-
var document$3 = global$
|
|
624
|
+
var document$3 = global$g.document;
|
|
623
625
|
// typeof document.createElement is 'object' in old IE
|
|
624
626
|
var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
|
|
625
627
|
|
|
@@ -627,25 +629,25 @@ var documentCreateElement$2 = function (it) {
|
|
|
627
629
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
628
630
|
};
|
|
629
631
|
|
|
630
|
-
var DESCRIPTORS$
|
|
631
|
-
var fails$
|
|
632
|
+
var DESCRIPTORS$d = descriptors;
|
|
633
|
+
var fails$e = fails$j;
|
|
632
634
|
var createElement$1 = documentCreateElement$2;
|
|
633
635
|
|
|
634
636
|
// Thanks to IE8 for its funny defineProperty
|
|
635
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
637
|
+
var ie8DomDefine = !DESCRIPTORS$d && !fails$e(function () {
|
|
636
638
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
637
639
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
638
640
|
get: function () { return 7; }
|
|
639
641
|
}).a !== 7;
|
|
640
642
|
});
|
|
641
643
|
|
|
642
|
-
var DESCRIPTORS$
|
|
644
|
+
var DESCRIPTORS$c = descriptors;
|
|
643
645
|
var call$e = functionCall;
|
|
644
646
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
645
|
-
var createPropertyDescriptor$
|
|
647
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
646
648
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
647
649
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
648
|
-
var hasOwn$
|
|
650
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
649
651
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
650
652
|
|
|
651
653
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -653,23 +655,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
653
655
|
|
|
654
656
|
// `Object.getOwnPropertyDescriptor` method
|
|
655
657
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
656
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
658
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$c ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
657
659
|
O = toIndexedObject$4(O);
|
|
658
660
|
P = toPropertyKey$1(P);
|
|
659
661
|
if (IE8_DOM_DEFINE$1) try {
|
|
660
662
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
661
663
|
} catch (error) { /* empty */ }
|
|
662
|
-
if (hasOwn$
|
|
664
|
+
if (hasOwn$9(O, P)) return createPropertyDescriptor$3(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
663
665
|
};
|
|
664
666
|
|
|
665
667
|
var objectDefineProperty = {};
|
|
666
668
|
|
|
667
|
-
var DESCRIPTORS$
|
|
668
|
-
var fails$
|
|
669
|
+
var DESCRIPTORS$b = descriptors;
|
|
670
|
+
var fails$d = fails$j;
|
|
669
671
|
|
|
670
672
|
// V8 ~ Chrome 36-
|
|
671
673
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
672
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
674
|
+
var v8PrototypeDefineBug = DESCRIPTORS$b && fails$d(function () {
|
|
673
675
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
674
676
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
675
677
|
value: 42,
|
|
@@ -680,21 +682,21 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$c(function () {
|
|
|
680
682
|
var isObject$6 = isObject$a;
|
|
681
683
|
|
|
682
684
|
var $String$3 = String;
|
|
683
|
-
var $TypeError$
|
|
685
|
+
var $TypeError$a = TypeError;
|
|
684
686
|
|
|
685
687
|
// `Assert: Type(argument) is Object`
|
|
686
|
-
var anObject$
|
|
688
|
+
var anObject$g = function (argument) {
|
|
687
689
|
if (isObject$6(argument)) return argument;
|
|
688
|
-
throw new $TypeError$
|
|
690
|
+
throw new $TypeError$a($String$3(argument) + ' is not an object');
|
|
689
691
|
};
|
|
690
692
|
|
|
691
|
-
var DESCRIPTORS$
|
|
693
|
+
var DESCRIPTORS$a = descriptors;
|
|
692
694
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
693
695
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
694
|
-
var anObject$
|
|
696
|
+
var anObject$f = anObject$g;
|
|
695
697
|
var toPropertyKey = toPropertyKey$2;
|
|
696
698
|
|
|
697
|
-
var $TypeError$
|
|
699
|
+
var $TypeError$9 = TypeError;
|
|
698
700
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
699
701
|
var $defineProperty = Object.defineProperty;
|
|
700
702
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -705,10 +707,10 @@ var WRITABLE = 'writable';
|
|
|
705
707
|
|
|
706
708
|
// `Object.defineProperty` method
|
|
707
709
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
708
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
709
|
-
anObject$
|
|
710
|
+
objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
711
|
+
anObject$f(O);
|
|
710
712
|
P = toPropertyKey(P);
|
|
711
|
-
anObject$
|
|
713
|
+
anObject$f(Attributes);
|
|
712
714
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
713
715
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
714
716
|
if (current && current[WRITABLE]) {
|
|
@@ -721,23 +723,23 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
721
723
|
}
|
|
722
724
|
} return $defineProperty(O, P, Attributes);
|
|
723
725
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
724
|
-
anObject$
|
|
726
|
+
anObject$f(O);
|
|
725
727
|
P = toPropertyKey(P);
|
|
726
|
-
anObject$
|
|
728
|
+
anObject$f(Attributes);
|
|
727
729
|
if (IE8_DOM_DEFINE) try {
|
|
728
730
|
return $defineProperty(O, P, Attributes);
|
|
729
731
|
} catch (error) { /* empty */ }
|
|
730
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
732
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$9('Accessors not supported');
|
|
731
733
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
732
734
|
return O;
|
|
733
735
|
};
|
|
734
736
|
|
|
735
|
-
var DESCRIPTORS$
|
|
736
|
-
var definePropertyModule$
|
|
737
|
-
var createPropertyDescriptor$
|
|
737
|
+
var DESCRIPTORS$9 = descriptors;
|
|
738
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
739
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
738
740
|
|
|
739
|
-
var createNonEnumerableProperty$5 = DESCRIPTORS$
|
|
740
|
-
return definePropertyModule$
|
|
741
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$9 ? function (object, key, value) {
|
|
742
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
|
|
741
743
|
} : function (object, key, value) {
|
|
742
744
|
object[key] = value;
|
|
743
745
|
return object;
|
|
@@ -745,32 +747,31 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$7 ? function (object, key, value
|
|
|
745
747
|
|
|
746
748
|
var makeBuiltIn$3 = {exports: {}};
|
|
747
749
|
|
|
748
|
-
var DESCRIPTORS$
|
|
749
|
-
var hasOwn$
|
|
750
|
+
var DESCRIPTORS$8 = descriptors;
|
|
751
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
750
752
|
|
|
751
753
|
var FunctionPrototype$1 = Function.prototype;
|
|
752
754
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
753
|
-
var getDescriptor = DESCRIPTORS$
|
|
755
|
+
var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
|
|
754
756
|
|
|
755
|
-
var EXISTS = hasOwn$
|
|
757
|
+
var EXISTS = hasOwn$8(FunctionPrototype$1, 'name');
|
|
756
758
|
// additional protection from minified / mangled / dropped function names
|
|
757
759
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
758
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
760
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
759
761
|
|
|
760
762
|
var functionName = {
|
|
761
|
-
EXISTS: EXISTS,
|
|
762
763
|
PROPER: PROPER,
|
|
763
764
|
CONFIGURABLE: CONFIGURABLE
|
|
764
765
|
};
|
|
765
766
|
|
|
766
767
|
var uncurryThis$d = functionUncurryThis;
|
|
767
|
-
var isCallable$
|
|
768
|
+
var isCallable$g = isCallable$m;
|
|
768
769
|
var store$1 = sharedStoreExports;
|
|
769
770
|
|
|
770
771
|
var functionToString = uncurryThis$d(Function.toString);
|
|
771
772
|
|
|
772
773
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
773
|
-
if (!isCallable$
|
|
774
|
+
if (!isCallable$g(store$1.inspectSource)) {
|
|
774
775
|
store$1.inspectSource = function (it) {
|
|
775
776
|
return functionToString(it);
|
|
776
777
|
};
|
|
@@ -778,12 +779,12 @@ if (!isCallable$f(store$1.inspectSource)) {
|
|
|
778
779
|
|
|
779
780
|
var inspectSource$3 = store$1.inspectSource;
|
|
780
781
|
|
|
781
|
-
var global$
|
|
782
|
-
var isCallable$
|
|
782
|
+
var global$f = global$m;
|
|
783
|
+
var isCallable$f = isCallable$m;
|
|
783
784
|
|
|
784
|
-
var WeakMap$1 = global$
|
|
785
|
+
var WeakMap$1 = global$f.WeakMap;
|
|
785
786
|
|
|
786
|
-
var weakMapBasicDetection = isCallable$
|
|
787
|
+
var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
787
788
|
|
|
788
789
|
var shared$2 = shared$4;
|
|
789
790
|
var uid = uid$2;
|
|
@@ -797,17 +798,17 @@ var sharedKey$3 = function (key) {
|
|
|
797
798
|
var hiddenKeys$4 = {};
|
|
798
799
|
|
|
799
800
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
800
|
-
var global$
|
|
801
|
+
var global$e = global$m;
|
|
801
802
|
var isObject$5 = isObject$a;
|
|
802
803
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
803
|
-
var hasOwn$
|
|
804
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
804
805
|
var shared$1 = sharedStoreExports;
|
|
805
806
|
var sharedKey$2 = sharedKey$3;
|
|
806
807
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
807
808
|
|
|
808
809
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
809
|
-
var TypeError$2 = global$
|
|
810
|
-
var WeakMap = global$
|
|
810
|
+
var TypeError$2 = global$e.TypeError;
|
|
811
|
+
var WeakMap = global$e.WeakMap;
|
|
811
812
|
var set$1, get, has;
|
|
812
813
|
|
|
813
814
|
var enforce = function (it) {
|
|
@@ -846,16 +847,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
846
847
|
var STATE = sharedKey$2('state');
|
|
847
848
|
hiddenKeys$3[STATE] = true;
|
|
848
849
|
set$1 = function (it, metadata) {
|
|
849
|
-
if (hasOwn$
|
|
850
|
+
if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
850
851
|
metadata.facade = it;
|
|
851
852
|
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
852
853
|
return metadata;
|
|
853
854
|
};
|
|
854
855
|
get = function (it) {
|
|
855
|
-
return hasOwn$
|
|
856
|
+
return hasOwn$7(it, STATE) ? it[STATE] : {};
|
|
856
857
|
};
|
|
857
858
|
has = function (it) {
|
|
858
|
-
return hasOwn$
|
|
859
|
+
return hasOwn$7(it, STATE);
|
|
859
860
|
};
|
|
860
861
|
}
|
|
861
862
|
|
|
@@ -868,10 +869,10 @@ var internalState = {
|
|
|
868
869
|
};
|
|
869
870
|
|
|
870
871
|
var uncurryThis$c = functionUncurryThis;
|
|
871
|
-
var fails$
|
|
872
|
-
var isCallable$
|
|
873
|
-
var hasOwn$
|
|
874
|
-
var DESCRIPTORS$
|
|
872
|
+
var fails$c = fails$j;
|
|
873
|
+
var isCallable$e = isCallable$m;
|
|
874
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
875
|
+
var DESCRIPTORS$7 = descriptors;
|
|
875
876
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
876
877
|
var inspectSource$2 = inspectSource$3;
|
|
877
878
|
var InternalStateModule$2 = internalState;
|
|
@@ -885,7 +886,7 @@ var stringSlice$4 = uncurryThis$c(''.slice);
|
|
|
885
886
|
var replace$2 = uncurryThis$c(''.replace);
|
|
886
887
|
var join = uncurryThis$c([].join);
|
|
887
888
|
|
|
888
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
889
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$c(function () {
|
|
889
890
|
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
890
891
|
});
|
|
891
892
|
|
|
@@ -897,21 +898,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
897
898
|
}
|
|
898
899
|
if (options && options.getter) name = 'get ' + name;
|
|
899
900
|
if (options && options.setter) name = 'set ' + name;
|
|
900
|
-
if (!hasOwn$
|
|
901
|
-
if (DESCRIPTORS$
|
|
901
|
+
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
902
|
+
if (DESCRIPTORS$7) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
902
903
|
else value.name = name;
|
|
903
904
|
}
|
|
904
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
905
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
|
|
905
906
|
defineProperty$5(value, 'length', { value: options.arity });
|
|
906
907
|
}
|
|
907
908
|
try {
|
|
908
|
-
if (options && hasOwn$
|
|
909
|
-
if (DESCRIPTORS$
|
|
909
|
+
if (options && hasOwn$6(options, 'constructor') && options.constructor) {
|
|
910
|
+
if (DESCRIPTORS$7) defineProperty$5(value, 'prototype', { writable: false });
|
|
910
911
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
911
912
|
} else if (value.prototype) value.prototype = undefined;
|
|
912
913
|
} catch (error) { /* empty */ }
|
|
913
914
|
var state = enforceInternalState(value);
|
|
914
|
-
if (!hasOwn$
|
|
915
|
+
if (!hasOwn$6(state, 'source')) {
|
|
915
916
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
916
917
|
} return value;
|
|
917
918
|
};
|
|
@@ -919,13 +920,13 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
919
920
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
920
921
|
// eslint-disable-next-line no-extend-native -- required
|
|
921
922
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
922
|
-
return isCallable$
|
|
923
|
+
return isCallable$e(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
923
924
|
}, 'toString');
|
|
924
925
|
|
|
925
926
|
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
926
927
|
|
|
927
|
-
var isCallable$
|
|
928
|
-
var definePropertyModule$
|
|
928
|
+
var isCallable$d = isCallable$m;
|
|
929
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
929
930
|
var makeBuiltIn$1 = makeBuiltInExports;
|
|
930
931
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
931
932
|
|
|
@@ -933,7 +934,7 @@ var defineBuiltIn$6 = function (O, key, value, options) {
|
|
|
933
934
|
if (!options) options = {};
|
|
934
935
|
var simple = options.enumerable;
|
|
935
936
|
var name = options.name !== undefined ? options.name : key;
|
|
936
|
-
if (isCallable$
|
|
937
|
+
if (isCallable$d(value)) makeBuiltIn$1(value, name, options);
|
|
937
938
|
if (options.global) {
|
|
938
939
|
if (simple) O[key] = value;
|
|
939
940
|
else defineGlobalProperty$1(key, value);
|
|
@@ -943,7 +944,7 @@ var defineBuiltIn$6 = function (O, key, value, options) {
|
|
|
943
944
|
else if (O[key]) simple = true;
|
|
944
945
|
} catch (error) { /* empty */ }
|
|
945
946
|
if (simple) O[key] = value;
|
|
946
|
-
else definePropertyModule$
|
|
947
|
+
else definePropertyModule$3.f(O, key, {
|
|
947
948
|
value: value,
|
|
948
949
|
enumerable: false,
|
|
949
950
|
configurable: !options.nonConfigurable,
|
|
@@ -1033,16 +1034,13 @@ var createMethod$1 = function (IS_INCLUDES) {
|
|
|
1033
1034
|
};
|
|
1034
1035
|
|
|
1035
1036
|
var arrayIncludes = {
|
|
1036
|
-
// `Array.prototype.includes` method
|
|
1037
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1038
|
-
includes: createMethod$1(true),
|
|
1039
1037
|
// `Array.prototype.indexOf` method
|
|
1040
1038
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
1041
1039
|
indexOf: createMethod$1(false)
|
|
1042
1040
|
};
|
|
1043
1041
|
|
|
1044
1042
|
var uncurryThis$b = functionUncurryThis;
|
|
1045
|
-
var hasOwn$
|
|
1043
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
1046
1044
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
1047
1045
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
1048
1046
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -1054,9 +1052,9 @@ var objectKeysInternal = function (object, names) {
|
|
|
1054
1052
|
var i = 0;
|
|
1055
1053
|
var result = [];
|
|
1056
1054
|
var key;
|
|
1057
|
-
for (key in O) !hasOwn$
|
|
1055
|
+
for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$1(result, key);
|
|
1058
1056
|
// Don't enum bug & hidden keys
|
|
1059
|
-
while (names.length > i) if (hasOwn$
|
|
1057
|
+
while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
|
|
1060
1058
|
~indexOf$1(result, key) || push$1(result, key);
|
|
1061
1059
|
}
|
|
1062
1060
|
return result;
|
|
@@ -1094,36 +1092,36 @@ var getBuiltIn$5 = getBuiltIn$7;
|
|
|
1094
1092
|
var uncurryThis$a = functionUncurryThis;
|
|
1095
1093
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1096
1094
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1097
|
-
var anObject$
|
|
1095
|
+
var anObject$e = anObject$g;
|
|
1098
1096
|
|
|
1099
1097
|
var concat$2 = uncurryThis$a([].concat);
|
|
1100
1098
|
|
|
1101
1099
|
// all object keys, includes non-enumerable and symbols
|
|
1102
1100
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1103
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
1101
|
+
var keys = getOwnPropertyNamesModule.f(anObject$e(it));
|
|
1104
1102
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1105
1103
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
1106
1104
|
};
|
|
1107
1105
|
|
|
1108
|
-
var hasOwn$
|
|
1106
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1109
1107
|
var ownKeys = ownKeys$1;
|
|
1110
1108
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1111
|
-
var definePropertyModule$
|
|
1109
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1112
1110
|
|
|
1113
1111
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
1114
1112
|
var keys = ownKeys(source);
|
|
1115
|
-
var defineProperty = definePropertyModule$
|
|
1113
|
+
var defineProperty = definePropertyModule$2.f;
|
|
1116
1114
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1117
1115
|
for (var i = 0; i < keys.length; i++) {
|
|
1118
1116
|
var key = keys[i];
|
|
1119
|
-
if (!hasOwn$
|
|
1117
|
+
if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
|
|
1120
1118
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1121
1119
|
}
|
|
1122
1120
|
}
|
|
1123
1121
|
};
|
|
1124
1122
|
|
|
1125
|
-
var fails$
|
|
1126
|
-
var isCallable$
|
|
1123
|
+
var fails$b = fails$j;
|
|
1124
|
+
var isCallable$c = isCallable$m;
|
|
1127
1125
|
|
|
1128
1126
|
var replacement = /#|\.prototype\./;
|
|
1129
1127
|
|
|
@@ -1131,7 +1129,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
1131
1129
|
var value = data[normalize$1(feature)];
|
|
1132
1130
|
return value === POLYFILL ? true
|
|
1133
1131
|
: value === NATIVE ? false
|
|
1134
|
-
: isCallable$
|
|
1132
|
+
: isCallable$c(detection) ? fails$b(detection)
|
|
1135
1133
|
: !!detection;
|
|
1136
1134
|
};
|
|
1137
1135
|
|
|
@@ -1145,7 +1143,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
1145
1143
|
|
|
1146
1144
|
var isForced_1 = isForced$2;
|
|
1147
1145
|
|
|
1148
|
-
var global$
|
|
1146
|
+
var global$d = global$m;
|
|
1149
1147
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1150
1148
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
1151
1149
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
@@ -1174,11 +1172,11 @@ var _export = function (options, source) {
|
|
|
1174
1172
|
var STATIC = options.stat;
|
|
1175
1173
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1176
1174
|
if (GLOBAL) {
|
|
1177
|
-
target = global$
|
|
1175
|
+
target = global$d;
|
|
1178
1176
|
} else if (STATIC) {
|
|
1179
|
-
target = global$
|
|
1177
|
+
target = global$d[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1180
1178
|
} else {
|
|
1181
|
-
target = global$
|
|
1179
|
+
target = global$d[TARGET] && global$d[TARGET].prototype;
|
|
1182
1180
|
}
|
|
1183
1181
|
if (target) for (key in source) {
|
|
1184
1182
|
sourceProperty = source[key];
|
|
@@ -1210,10 +1208,10 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1210
1208
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1211
1209
|
};
|
|
1212
1210
|
|
|
1213
|
-
var DESCRIPTORS$
|
|
1211
|
+
var DESCRIPTORS$6 = descriptors;
|
|
1214
1212
|
var uncurryThis$9 = functionUncurryThis;
|
|
1215
1213
|
var call$d = functionCall;
|
|
1216
|
-
var fails$
|
|
1214
|
+
var fails$a = fails$j;
|
|
1217
1215
|
var objectKeys$1 = objectKeys$2;
|
|
1218
1216
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1219
1217
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1228,9 +1226,9 @@ var concat$1 = uncurryThis$9([].concat);
|
|
|
1228
1226
|
|
|
1229
1227
|
// `Object.assign` method
|
|
1230
1228
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1231
|
-
var objectAssign = !$assign || fails$
|
|
1229
|
+
var objectAssign = !$assign || fails$a(function () {
|
|
1232
1230
|
// should have correct order of operations (Edge bug)
|
|
1233
|
-
if (DESCRIPTORS$
|
|
1231
|
+
if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
|
1234
1232
|
enumerable: true,
|
|
1235
1233
|
get: function () {
|
|
1236
1234
|
defineProperty$4(this, 'b', {
|
|
@@ -1262,36 +1260,36 @@ var objectAssign = !$assign || fails$9(function () {
|
|
|
1262
1260
|
var key;
|
|
1263
1261
|
while (length > j) {
|
|
1264
1262
|
key = keys[j++];
|
|
1265
|
-
if (!DESCRIPTORS$
|
|
1263
|
+
if (!DESCRIPTORS$6 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1266
1264
|
}
|
|
1267
1265
|
} return T;
|
|
1268
1266
|
} : $assign;
|
|
1269
1267
|
|
|
1270
|
-
var $$
|
|
1268
|
+
var $$b = _export;
|
|
1271
1269
|
var assign = objectAssign;
|
|
1272
1270
|
|
|
1273
1271
|
// `Object.assign` method
|
|
1274
1272
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1275
1273
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1276
|
-
$$
|
|
1274
|
+
$$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1277
1275
|
assign: assign
|
|
1278
1276
|
});
|
|
1279
1277
|
|
|
1280
|
-
var wellKnownSymbol$
|
|
1278
|
+
var wellKnownSymbol$f = wellKnownSymbol$h;
|
|
1281
1279
|
|
|
1282
|
-
var TO_STRING_TAG$
|
|
1280
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$f('toStringTag');
|
|
1283
1281
|
var test = {};
|
|
1284
1282
|
|
|
1285
|
-
test[TO_STRING_TAG$
|
|
1283
|
+
test[TO_STRING_TAG$3] = 'z';
|
|
1286
1284
|
|
|
1287
1285
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1288
1286
|
|
|
1289
1287
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1290
|
-
var isCallable$
|
|
1288
|
+
var isCallable$b = isCallable$m;
|
|
1291
1289
|
var classofRaw$1 = classofRaw$2;
|
|
1292
|
-
var wellKnownSymbol$
|
|
1290
|
+
var wellKnownSymbol$e = wellKnownSymbol$h;
|
|
1293
1291
|
|
|
1294
|
-
var TO_STRING_TAG$
|
|
1292
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$e('toStringTag');
|
|
1295
1293
|
var $Object$1 = Object;
|
|
1296
1294
|
|
|
1297
1295
|
// ES3 wrong here
|
|
@@ -1309,11 +1307,11 @@ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1309
1307
|
var O, tag, result;
|
|
1310
1308
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1311
1309
|
// @@toStringTag case
|
|
1312
|
-
: typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$
|
|
1310
|
+
: typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$2)) == 'string' ? tag
|
|
1313
1311
|
// builtinTag case
|
|
1314
1312
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1315
1313
|
// ES3 arguments fallback
|
|
1316
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$
|
|
1314
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$b(O.callee) ? 'Arguments' : result;
|
|
1317
1315
|
};
|
|
1318
1316
|
|
|
1319
1317
|
var classof$4 = classof$5;
|
|
@@ -1325,12 +1323,12 @@ var toString$4 = function (argument) {
|
|
|
1325
1323
|
return $String$1(argument);
|
|
1326
1324
|
};
|
|
1327
1325
|
|
|
1328
|
-
var anObject$
|
|
1326
|
+
var anObject$d = anObject$g;
|
|
1329
1327
|
|
|
1330
1328
|
// `RegExp.prototype.flags` getter implementation
|
|
1331
1329
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1332
1330
|
var regexpFlags$1 = function () {
|
|
1333
|
-
var that = anObject$
|
|
1331
|
+
var that = anObject$d(this);
|
|
1334
1332
|
var result = '';
|
|
1335
1333
|
if (that.hasIndices) result += 'd';
|
|
1336
1334
|
if (that.global) result += 'g';
|
|
@@ -1343,13 +1341,13 @@ var regexpFlags$1 = function () {
|
|
|
1343
1341
|
return result;
|
|
1344
1342
|
};
|
|
1345
1343
|
|
|
1346
|
-
var fails$
|
|
1347
|
-
var global$
|
|
1344
|
+
var fails$9 = fails$j;
|
|
1345
|
+
var global$c = global$m;
|
|
1348
1346
|
|
|
1349
1347
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1350
|
-
var $RegExp$2 = global$
|
|
1348
|
+
var $RegExp$2 = global$c.RegExp;
|
|
1351
1349
|
|
|
1352
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
1350
|
+
var UNSUPPORTED_Y$1 = fails$9(function () {
|
|
1353
1351
|
var re = $RegExp$2('a', 'y');
|
|
1354
1352
|
re.lastIndex = 2;
|
|
1355
1353
|
return re.exec('abcd') !== null;
|
|
@@ -1357,11 +1355,11 @@ var UNSUPPORTED_Y$1 = fails$8(function () {
|
|
|
1357
1355
|
|
|
1358
1356
|
// UC Browser bug
|
|
1359
1357
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1360
|
-
|
|
1358
|
+
UNSUPPORTED_Y$1 || fails$9(function () {
|
|
1361
1359
|
return !$RegExp$2('a', 'y').sticky;
|
|
1362
1360
|
});
|
|
1363
1361
|
|
|
1364
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
1362
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$9(function () {
|
|
1365
1363
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1366
1364
|
var re = $RegExp$2('^r', 'gy');
|
|
1367
1365
|
re.lastIndex = 2;
|
|
@@ -1369,31 +1367,28 @@ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$8(function () {
|
|
|
1369
1367
|
});
|
|
1370
1368
|
|
|
1371
1369
|
var regexpStickyHelpers = {
|
|
1372
|
-
BROKEN_CARET: BROKEN_CARET
|
|
1373
|
-
MISSED_STICKY: MISSED_STICKY,
|
|
1374
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1375
|
-
};
|
|
1370
|
+
BROKEN_CARET: BROKEN_CARET};
|
|
1376
1371
|
|
|
1377
1372
|
var objectDefineProperties = {};
|
|
1378
1373
|
|
|
1379
|
-
var DESCRIPTORS$
|
|
1374
|
+
var DESCRIPTORS$5 = descriptors;
|
|
1380
1375
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1381
|
-
var definePropertyModule = objectDefineProperty;
|
|
1382
|
-
var anObject$
|
|
1376
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1377
|
+
var anObject$c = anObject$g;
|
|
1383
1378
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1384
1379
|
var objectKeys = objectKeys$2;
|
|
1385
1380
|
|
|
1386
1381
|
// `Object.defineProperties` method
|
|
1387
1382
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1388
1383
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1389
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1390
|
-
anObject$
|
|
1384
|
+
objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1385
|
+
anObject$c(O);
|
|
1391
1386
|
var props = toIndexedObject$1(Properties);
|
|
1392
1387
|
var keys = objectKeys(Properties);
|
|
1393
1388
|
var length = keys.length;
|
|
1394
1389
|
var index = 0;
|
|
1395
1390
|
var key;
|
|
1396
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1391
|
+
while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
|
|
1397
1392
|
return O;
|
|
1398
1393
|
};
|
|
1399
1394
|
|
|
@@ -1402,7 +1397,7 @@ var getBuiltIn$4 = getBuiltIn$7;
|
|
|
1402
1397
|
var html$2 = getBuiltIn$4('document', 'documentElement');
|
|
1403
1398
|
|
|
1404
1399
|
/* global ActiveXObject -- old IE, WSH */
|
|
1405
|
-
var anObject$
|
|
1400
|
+
var anObject$b = anObject$g;
|
|
1406
1401
|
var definePropertiesModule = objectDefineProperties;
|
|
1407
1402
|
var enumBugKeys = enumBugKeys$3;
|
|
1408
1403
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1476,7 +1471,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1476
1471
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1477
1472
|
var result;
|
|
1478
1473
|
if (O !== null) {
|
|
1479
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1474
|
+
EmptyConstructor[PROTOTYPE] = anObject$b(O);
|
|
1480
1475
|
result = new EmptyConstructor();
|
|
1481
1476
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1482
1477
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1485,24 +1480,24 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1485
1480
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1486
1481
|
};
|
|
1487
1482
|
|
|
1488
|
-
var fails$
|
|
1489
|
-
var global$
|
|
1483
|
+
var fails$8 = fails$j;
|
|
1484
|
+
var global$b = global$m;
|
|
1490
1485
|
|
|
1491
1486
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1492
|
-
var $RegExp$1 = global$
|
|
1487
|
+
var $RegExp$1 = global$b.RegExp;
|
|
1493
1488
|
|
|
1494
|
-
var regexpUnsupportedDotAll = fails$
|
|
1489
|
+
var regexpUnsupportedDotAll = fails$8(function () {
|
|
1495
1490
|
var re = $RegExp$1('.', 's');
|
|
1496
1491
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
1497
1492
|
});
|
|
1498
1493
|
|
|
1499
|
-
var fails$
|
|
1500
|
-
var global$
|
|
1494
|
+
var fails$7 = fails$j;
|
|
1495
|
+
var global$a = global$m;
|
|
1501
1496
|
|
|
1502
1497
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1503
|
-
var $RegExp = global$
|
|
1498
|
+
var $RegExp = global$a.RegExp;
|
|
1504
1499
|
|
|
1505
|
-
var regexpUnsupportedNcg = fails$
|
|
1500
|
+
var regexpUnsupportedNcg = fails$7(function () {
|
|
1506
1501
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1507
1502
|
return re.exec('b').groups.a !== 'b' ||
|
|
1508
1503
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1625,12 +1620,12 @@ if (PATCH) {
|
|
|
1625
1620
|
|
|
1626
1621
|
var regexpExec$2 = patchedExec;
|
|
1627
1622
|
|
|
1628
|
-
var $$
|
|
1623
|
+
var $$a = _export;
|
|
1629
1624
|
var exec$1 = regexpExec$2;
|
|
1630
1625
|
|
|
1631
1626
|
// `RegExp.prototype.exec` method
|
|
1632
1627
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1633
|
-
$$
|
|
1628
|
+
$$a({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
1634
1629
|
exec: exec$1
|
|
1635
1630
|
});
|
|
1636
1631
|
|
|
@@ -1650,24 +1645,24 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
|
|
|
1650
1645
|
var call$a = functionCall;
|
|
1651
1646
|
var defineBuiltIn$4 = defineBuiltIn$6;
|
|
1652
1647
|
var regexpExec$1 = regexpExec$2;
|
|
1653
|
-
var fails$
|
|
1654
|
-
var wellKnownSymbol$
|
|
1648
|
+
var fails$6 = fails$j;
|
|
1649
|
+
var wellKnownSymbol$d = wellKnownSymbol$h;
|
|
1655
1650
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
1656
1651
|
|
|
1657
|
-
var SPECIES$3 = wellKnownSymbol$
|
|
1652
|
+
var SPECIES$3 = wellKnownSymbol$d('species');
|
|
1658
1653
|
var RegExpPrototype = RegExp.prototype;
|
|
1659
1654
|
|
|
1660
1655
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1661
|
-
var SYMBOL = wellKnownSymbol$
|
|
1656
|
+
var SYMBOL = wellKnownSymbol$d(KEY);
|
|
1662
1657
|
|
|
1663
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
1658
|
+
var DELEGATES_TO_SYMBOL = !fails$6(function () {
|
|
1664
1659
|
// String methods call symbol-named RegExp methods
|
|
1665
1660
|
var O = {};
|
|
1666
1661
|
O[SYMBOL] = function () { return 7; };
|
|
1667
1662
|
return ''[KEY](O) !== 7;
|
|
1668
1663
|
});
|
|
1669
1664
|
|
|
1670
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
1665
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$6(function () {
|
|
1671
1666
|
// Symbol-named RegExp methods call .exec
|
|
1672
1667
|
var execCalled = false;
|
|
1673
1668
|
var re = /a/;
|
|
@@ -1750,9 +1745,6 @@ var createMethod = function (CONVERT_TO_STRING) {
|
|
|
1750
1745
|
};
|
|
1751
1746
|
|
|
1752
1747
|
var stringMultibyte = {
|
|
1753
|
-
// `String.prototype.codePointAt` method
|
|
1754
|
-
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
1755
|
-
codeAt: createMethod(false),
|
|
1756
1748
|
// `String.prototype.at` method
|
|
1757
1749
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
1758
1750
|
charAt: createMethod(true)
|
|
@@ -1813,33 +1805,33 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
1813
1805
|
};
|
|
1814
1806
|
|
|
1815
1807
|
var call$9 = functionCall;
|
|
1816
|
-
var anObject$
|
|
1817
|
-
var isCallable$
|
|
1808
|
+
var anObject$a = anObject$g;
|
|
1809
|
+
var isCallable$a = isCallable$m;
|
|
1818
1810
|
var classof$3 = classofRaw$2;
|
|
1819
1811
|
var regexpExec = regexpExec$2;
|
|
1820
1812
|
|
|
1821
|
-
var $TypeError$
|
|
1813
|
+
var $TypeError$8 = TypeError;
|
|
1822
1814
|
|
|
1823
1815
|
// `RegExpExec` abstract operation
|
|
1824
1816
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
1825
1817
|
var regexpExecAbstract = function (R, S) {
|
|
1826
1818
|
var exec = R.exec;
|
|
1827
|
-
if (isCallable$
|
|
1819
|
+
if (isCallable$a(exec)) {
|
|
1828
1820
|
var result = call$9(exec, R, S);
|
|
1829
|
-
if (result !== null) anObject$
|
|
1821
|
+
if (result !== null) anObject$a(result);
|
|
1830
1822
|
return result;
|
|
1831
1823
|
}
|
|
1832
1824
|
if (classof$3(R) === 'RegExp') return call$9(regexpExec, R, S);
|
|
1833
|
-
throw new $TypeError$
|
|
1825
|
+
throw new $TypeError$8('RegExp#exec called on incompatible receiver');
|
|
1834
1826
|
};
|
|
1835
1827
|
|
|
1836
1828
|
var apply$1 = functionApply;
|
|
1837
1829
|
var call$8 = functionCall;
|
|
1838
1830
|
var uncurryThis$5 = functionUncurryThis;
|
|
1839
1831
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
1840
|
-
var fails$
|
|
1841
|
-
var anObject$
|
|
1842
|
-
var isCallable$
|
|
1832
|
+
var fails$5 = fails$j;
|
|
1833
|
+
var anObject$9 = anObject$g;
|
|
1834
|
+
var isCallable$9 = isCallable$m;
|
|
1843
1835
|
var isNullOrUndefined$3 = isNullOrUndefined$6;
|
|
1844
1836
|
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
1845
1837
|
var toLength = toLength$2;
|
|
@@ -1849,9 +1841,9 @@ var advanceStringIndex = advanceStringIndex$1;
|
|
|
1849
1841
|
var getMethod$3 = getMethod$5;
|
|
1850
1842
|
var getSubstitution = getSubstitution$1;
|
|
1851
1843
|
var regExpExec$1 = regexpExecAbstract;
|
|
1852
|
-
var wellKnownSymbol$
|
|
1844
|
+
var wellKnownSymbol$c = wellKnownSymbol$h;
|
|
1853
1845
|
|
|
1854
|
-
var REPLACE = wellKnownSymbol$
|
|
1846
|
+
var REPLACE = wellKnownSymbol$c('replace');
|
|
1855
1847
|
var max = Math.max;
|
|
1856
1848
|
var min = Math.min;
|
|
1857
1849
|
var concat = uncurryThis$5([].concat);
|
|
@@ -1878,7 +1870,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
|
1878
1870
|
return false;
|
|
1879
1871
|
})();
|
|
1880
1872
|
|
|
1881
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
1873
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$5(function () {
|
|
1882
1874
|
var re = /./;
|
|
1883
1875
|
re.exec = function () {
|
|
1884
1876
|
var result = [];
|
|
@@ -1906,7 +1898,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
1906
1898
|
// `RegExp.prototype[@@replace]` method
|
|
1907
1899
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1908
1900
|
function (string, replaceValue) {
|
|
1909
|
-
var rx = anObject$
|
|
1901
|
+
var rx = anObject$9(this);
|
|
1910
1902
|
var S = toString$1(string);
|
|
1911
1903
|
|
|
1912
1904
|
if (
|
|
@@ -1918,7 +1910,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
1918
1910
|
if (res.done) return res.value;
|
|
1919
1911
|
}
|
|
1920
1912
|
|
|
1921
|
-
var functionalReplace = isCallable$
|
|
1913
|
+
var functionalReplace = isCallable$9(replaceValue);
|
|
1922
1914
|
if (!functionalReplace) replaceValue = toString$1(replaceValue);
|
|
1923
1915
|
|
|
1924
1916
|
var global = rx.global;
|
|
@@ -1985,7 +1977,7 @@ var sameValue$1 = Object.is || function is(x, y) {
|
|
|
1985
1977
|
|
|
1986
1978
|
var call$7 = functionCall;
|
|
1987
1979
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
1988
|
-
var anObject$
|
|
1980
|
+
var anObject$8 = anObject$g;
|
|
1989
1981
|
var isNullOrUndefined$2 = isNullOrUndefined$6;
|
|
1990
1982
|
var requireObjectCoercible$1 = requireObjectCoercible$6;
|
|
1991
1983
|
var sameValue = sameValue$1;
|
|
@@ -2006,7 +1998,7 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
|
|
|
2006
1998
|
// `RegExp.prototype[@@search]` method
|
|
2007
1999
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
|
2008
2000
|
function (string) {
|
|
2009
|
-
var rx = anObject$
|
|
2001
|
+
var rx = anObject$8(this);
|
|
2010
2002
|
var S = toString(string);
|
|
2011
2003
|
var res = maybeCallNative(nativeSearch, rx, S);
|
|
2012
2004
|
|
|
@@ -2126,11 +2118,11 @@ const appConfig = {
|
|
|
2126
2118
|
}
|
|
2127
2119
|
};
|
|
2128
2120
|
|
|
2129
|
-
var wellKnownSymbol$
|
|
2121
|
+
var wellKnownSymbol$b = wellKnownSymbol$h;
|
|
2130
2122
|
var create$1 = objectCreate;
|
|
2131
2123
|
var defineProperty$3 = objectDefineProperty.f;
|
|
2132
2124
|
|
|
2133
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
2125
|
+
var UNSCOPABLES = wellKnownSymbol$b('unscopables');
|
|
2134
2126
|
var ArrayPrototype$1 = Array.prototype;
|
|
2135
2127
|
|
|
2136
2128
|
// Array.prototype[@@unscopables]
|
|
@@ -2149,17 +2141,17 @@ var addToUnscopables$1 = function (key) {
|
|
|
2149
2141
|
|
|
2150
2142
|
var iterators = {};
|
|
2151
2143
|
|
|
2152
|
-
var fails$
|
|
2144
|
+
var fails$4 = fails$j;
|
|
2153
2145
|
|
|
2154
|
-
var correctPrototypeGetter = !fails$
|
|
2146
|
+
var correctPrototypeGetter = !fails$4(function () {
|
|
2155
2147
|
function F() { /* empty */ }
|
|
2156
2148
|
F.prototype.constructor = null;
|
|
2157
2149
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
2158
2150
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
2159
2151
|
});
|
|
2160
2152
|
|
|
2161
|
-
var hasOwn$
|
|
2162
|
-
var isCallable$
|
|
2153
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
2154
|
+
var isCallable$8 = isCallable$m;
|
|
2163
2155
|
var toObject = toObject$4;
|
|
2164
2156
|
var sharedKey = sharedKey$3;
|
|
2165
2157
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -2173,26 +2165,26 @@ var ObjectPrototype = $Object.prototype;
|
|
|
2173
2165
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
2174
2166
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
2175
2167
|
var object = toObject(O);
|
|
2176
|
-
if (hasOwn$
|
|
2168
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
2177
2169
|
var constructor = object.constructor;
|
|
2178
|
-
if (isCallable$
|
|
2170
|
+
if (isCallable$8(constructor) && object instanceof constructor) {
|
|
2179
2171
|
return constructor.prototype;
|
|
2180
2172
|
} return object instanceof $Object ? ObjectPrototype : null;
|
|
2181
2173
|
};
|
|
2182
2174
|
|
|
2183
|
-
var fails$
|
|
2184
|
-
var isCallable$
|
|
2175
|
+
var fails$3 = fails$j;
|
|
2176
|
+
var isCallable$7 = isCallable$m;
|
|
2185
2177
|
var isObject$4 = isObject$a;
|
|
2186
|
-
var getPrototypeOf$
|
|
2178
|
+
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
2187
2179
|
var defineBuiltIn$3 = defineBuiltIn$6;
|
|
2188
|
-
var wellKnownSymbol$
|
|
2180
|
+
var wellKnownSymbol$a = wellKnownSymbol$h;
|
|
2189
2181
|
|
|
2190
|
-
var ITERATOR$
|
|
2182
|
+
var ITERATOR$6 = wellKnownSymbol$a('iterator');
|
|
2191
2183
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
2192
2184
|
|
|
2193
2185
|
// `%IteratorPrototype%` object
|
|
2194
2186
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
2195
|
-
var IteratorPrototype$
|
|
2187
|
+
var IteratorPrototype$3, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
2196
2188
|
|
|
2197
2189
|
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
2198
2190
|
if ([].keys) {
|
|
@@ -2200,48 +2192,48 @@ if ([].keys) {
|
|
|
2200
2192
|
// Safari 8 has buggy iterators w/o `next`
|
|
2201
2193
|
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
2202
2194
|
else {
|
|
2203
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$
|
|
2204
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$
|
|
2195
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
|
|
2196
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$3 = PrototypeOfArrayIteratorPrototype;
|
|
2205
2197
|
}
|
|
2206
2198
|
}
|
|
2207
2199
|
|
|
2208
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$
|
|
2200
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$3) || fails$3(function () {
|
|
2209
2201
|
var test = {};
|
|
2210
2202
|
// FF44- legacy iterators case
|
|
2211
|
-
return IteratorPrototype$
|
|
2203
|
+
return IteratorPrototype$3[ITERATOR$6].call(test) !== test;
|
|
2212
2204
|
});
|
|
2213
2205
|
|
|
2214
|
-
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$
|
|
2206
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$3 = {};
|
|
2215
2207
|
|
|
2216
2208
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
2217
2209
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
2218
|
-
if (!isCallable$
|
|
2219
|
-
defineBuiltIn$3(IteratorPrototype$
|
|
2210
|
+
if (!isCallable$7(IteratorPrototype$3[ITERATOR$6])) {
|
|
2211
|
+
defineBuiltIn$3(IteratorPrototype$3, ITERATOR$6, function () {
|
|
2220
2212
|
return this;
|
|
2221
2213
|
});
|
|
2222
2214
|
}
|
|
2223
2215
|
|
|
2224
2216
|
var iteratorsCore = {
|
|
2225
|
-
IteratorPrototype: IteratorPrototype$
|
|
2217
|
+
IteratorPrototype: IteratorPrototype$3,
|
|
2226
2218
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
2227
2219
|
};
|
|
2228
2220
|
|
|
2229
2221
|
var defineProperty$2 = objectDefineProperty.f;
|
|
2230
|
-
var hasOwn$
|
|
2231
|
-
var wellKnownSymbol$
|
|
2222
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
2223
|
+
var wellKnownSymbol$9 = wellKnownSymbol$h;
|
|
2232
2224
|
|
|
2233
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
2225
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
|
|
2234
2226
|
|
|
2235
2227
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
2236
2228
|
if (target && !STATIC) target = target.prototype;
|
|
2237
|
-
if (target && !hasOwn$
|
|
2238
|
-
defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
2229
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG$1)) {
|
|
2230
|
+
defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
2239
2231
|
}
|
|
2240
2232
|
};
|
|
2241
2233
|
|
|
2242
|
-
var IteratorPrototype$
|
|
2234
|
+
var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
|
|
2243
2235
|
var create = objectCreate;
|
|
2244
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
2236
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
2245
2237
|
var setToStringTag$3 = setToStringTag$4;
|
|
2246
2238
|
var Iterators$4 = iterators;
|
|
2247
2239
|
|
|
@@ -2249,19 +2241,19 @@ var returnThis$1 = function () { return this; };
|
|
|
2249
2241
|
|
|
2250
2242
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
2251
2243
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
2252
|
-
IteratorConstructor.prototype = create(IteratorPrototype$
|
|
2244
|
+
IteratorConstructor.prototype = create(IteratorPrototype$2, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
2253
2245
|
setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
|
|
2254
2246
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
2255
2247
|
return IteratorConstructor;
|
|
2256
2248
|
};
|
|
2257
2249
|
|
|
2258
2250
|
var uncurryThis$4 = functionUncurryThis;
|
|
2259
|
-
var aCallable$
|
|
2251
|
+
var aCallable$8 = aCallable$a;
|
|
2260
2252
|
|
|
2261
2253
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
2262
2254
|
try {
|
|
2263
2255
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2264
|
-
return uncurryThis$4(aCallable$
|
|
2256
|
+
return uncurryThis$4(aCallable$8(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
2265
2257
|
} catch (error) { /* empty */ }
|
|
2266
2258
|
};
|
|
2267
2259
|
|
|
@@ -2274,11 +2266,11 @@ var isPossiblePrototype$1 = function (argument) {
|
|
|
2274
2266
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
2275
2267
|
|
|
2276
2268
|
var $String = String;
|
|
2277
|
-
var $TypeError$
|
|
2269
|
+
var $TypeError$7 = TypeError;
|
|
2278
2270
|
|
|
2279
2271
|
var aPossiblePrototype$1 = function (argument) {
|
|
2280
2272
|
if (isPossiblePrototype(argument)) return argument;
|
|
2281
|
-
throw new $TypeError$
|
|
2273
|
+
throw new $TypeError$7("Can't set " + $String(argument) + ' as a prototype');
|
|
2282
2274
|
};
|
|
2283
2275
|
|
|
2284
2276
|
/* eslint-disable no-proto -- safe */
|
|
@@ -2310,25 +2302,25 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
2310
2302
|
};
|
|
2311
2303
|
}() : undefined);
|
|
2312
2304
|
|
|
2313
|
-
var $$
|
|
2305
|
+
var $$9 = _export;
|
|
2314
2306
|
var call$6 = functionCall;
|
|
2315
2307
|
var FunctionName = functionName;
|
|
2316
|
-
var isCallable$
|
|
2308
|
+
var isCallable$6 = isCallable$m;
|
|
2317
2309
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
2318
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
2310
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
2319
2311
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
2320
2312
|
var setToStringTag$2 = setToStringTag$4;
|
|
2321
2313
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
2322
2314
|
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
2323
|
-
var wellKnownSymbol$
|
|
2315
|
+
var wellKnownSymbol$8 = wellKnownSymbol$h;
|
|
2324
2316
|
var Iterators$3 = iterators;
|
|
2325
2317
|
var IteratorsCore = iteratorsCore;
|
|
2326
2318
|
|
|
2327
2319
|
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
2328
2320
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
2329
|
-
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
2321
|
+
var IteratorPrototype$1 = IteratorsCore.IteratorPrototype;
|
|
2330
2322
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
2331
|
-
var ITERATOR$
|
|
2323
|
+
var ITERATOR$5 = wellKnownSymbol$8('iterator');
|
|
2332
2324
|
var KEYS = 'keys';
|
|
2333
2325
|
var VALUES = 'values';
|
|
2334
2326
|
var ENTRIES = 'entries';
|
|
@@ -2354,7 +2346,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
2354
2346
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
2355
2347
|
var INCORRECT_VALUES_NAME = false;
|
|
2356
2348
|
var IterablePrototype = Iterable.prototype;
|
|
2357
|
-
var nativeIterator = IterablePrototype[ITERATOR$
|
|
2349
|
+
var nativeIterator = IterablePrototype[ITERATOR$5]
|
|
2358
2350
|
|| IterablePrototype['@@iterator']
|
|
2359
2351
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
2360
2352
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
@@ -2363,13 +2355,13 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
2363
2355
|
|
|
2364
2356
|
// fix native
|
|
2365
2357
|
if (anyNativeIterator) {
|
|
2366
|
-
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
2358
|
+
CurrentIteratorPrototype = getPrototypeOf$1(anyNativeIterator.call(new Iterable()));
|
|
2367
2359
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
2368
|
-
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
2360
|
+
if (getPrototypeOf$1(CurrentIteratorPrototype) !== IteratorPrototype$1) {
|
|
2369
2361
|
if (setPrototypeOf$1) {
|
|
2370
|
-
setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
|
|
2371
|
-
} else if (!isCallable$
|
|
2372
|
-
defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$
|
|
2362
|
+
setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype$1);
|
|
2363
|
+
} else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
2364
|
+
defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
2373
2365
|
}
|
|
2374
2366
|
}
|
|
2375
2367
|
// Set @@toStringTag to native iterators
|
|
@@ -2398,12 +2390,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
2398
2390
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
2399
2391
|
defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
|
|
2400
2392
|
}
|
|
2401
|
-
} else $$
|
|
2393
|
+
} else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
2402
2394
|
}
|
|
2403
2395
|
|
|
2404
2396
|
// define iterator
|
|
2405
|
-
if (IterablePrototype[ITERATOR$
|
|
2406
|
-
defineBuiltIn$2(IterablePrototype, ITERATOR$
|
|
2397
|
+
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
2398
|
+
defineBuiltIn$2(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
2407
2399
|
}
|
|
2408
2400
|
Iterators$3[NAME] = defaultIterator;
|
|
2409
2401
|
|
|
@@ -2423,7 +2415,7 @@ var InternalStateModule$1 = internalState;
|
|
|
2423
2415
|
var defineProperty$1 = objectDefineProperty.f;
|
|
2424
2416
|
var defineIterator = iteratorDefine;
|
|
2425
2417
|
var createIterResultObject = createIterResultObject$1;
|
|
2426
|
-
var DESCRIPTORS$
|
|
2418
|
+
var DESCRIPTORS$4 = descriptors;
|
|
2427
2419
|
|
|
2428
2420
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
2429
2421
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
@@ -2473,36 +2465,36 @@ addToUnscopables('values');
|
|
|
2473
2465
|
addToUnscopables('entries');
|
|
2474
2466
|
|
|
2475
2467
|
// V8 ~ Chrome 45- bug
|
|
2476
|
-
if (DESCRIPTORS$
|
|
2468
|
+
if (DESCRIPTORS$4 && values.name !== 'values') try {
|
|
2477
2469
|
defineProperty$1(values, 'name', { value: 'values' });
|
|
2478
2470
|
} catch (error) { /* empty */ }
|
|
2479
2471
|
|
|
2480
|
-
var global$
|
|
2472
|
+
var global$9 = global$m;
|
|
2481
2473
|
var classof$2 = classofRaw$2;
|
|
2482
2474
|
|
|
2483
|
-
var engineIsNode = classof$2(global$
|
|
2475
|
+
var engineIsNode = classof$2(global$9.process) === 'process';
|
|
2484
2476
|
|
|
2485
2477
|
var makeBuiltIn = makeBuiltInExports;
|
|
2486
2478
|
var defineProperty = objectDefineProperty;
|
|
2487
2479
|
|
|
2488
|
-
var defineBuiltInAccessor$
|
|
2480
|
+
var defineBuiltInAccessor$2 = function (target, name, descriptor) {
|
|
2489
2481
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
2490
2482
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
2491
2483
|
return defineProperty.f(target, name, descriptor);
|
|
2492
2484
|
};
|
|
2493
2485
|
|
|
2494
2486
|
var getBuiltIn$3 = getBuiltIn$7;
|
|
2495
|
-
var defineBuiltInAccessor = defineBuiltInAccessor$
|
|
2496
|
-
var wellKnownSymbol$
|
|
2497
|
-
var DESCRIPTORS$
|
|
2487
|
+
var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
|
|
2488
|
+
var wellKnownSymbol$7 = wellKnownSymbol$h;
|
|
2489
|
+
var DESCRIPTORS$3 = descriptors;
|
|
2498
2490
|
|
|
2499
|
-
var SPECIES$2 = wellKnownSymbol$
|
|
2491
|
+
var SPECIES$2 = wellKnownSymbol$7('species');
|
|
2500
2492
|
|
|
2501
2493
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
2502
2494
|
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
2503
2495
|
|
|
2504
|
-
if (DESCRIPTORS$
|
|
2505
|
-
defineBuiltInAccessor(Constructor, SPECIES$2, {
|
|
2496
|
+
if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$2]) {
|
|
2497
|
+
defineBuiltInAccessor$1(Constructor, SPECIES$2, {
|
|
2506
2498
|
configurable: true,
|
|
2507
2499
|
get: function () { return this; }
|
|
2508
2500
|
});
|
|
@@ -2511,16 +2503,16 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
2511
2503
|
|
|
2512
2504
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
2513
2505
|
|
|
2514
|
-
var $TypeError$
|
|
2506
|
+
var $TypeError$6 = TypeError;
|
|
2515
2507
|
|
|
2516
|
-
var anInstance$
|
|
2508
|
+
var anInstance$2 = function (it, Prototype) {
|
|
2517
2509
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
2518
|
-
throw new $TypeError$
|
|
2510
|
+
throw new $TypeError$6('Incorrect invocation');
|
|
2519
2511
|
};
|
|
2520
2512
|
|
|
2521
2513
|
var uncurryThis$3 = functionUncurryThis;
|
|
2522
|
-
var fails$
|
|
2523
|
-
var isCallable$
|
|
2514
|
+
var fails$2 = fails$j;
|
|
2515
|
+
var isCallable$5 = isCallable$m;
|
|
2524
2516
|
var classof$1 = classof$5;
|
|
2525
2517
|
var getBuiltIn$2 = getBuiltIn$7;
|
|
2526
2518
|
var inspectSource$1 = inspectSource$3;
|
|
@@ -2532,7 +2524,7 @@ var exec = uncurryThis$3(constructorRegExp.exec);
|
|
|
2532
2524
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
2533
2525
|
|
|
2534
2526
|
var isConstructorModern = function isConstructor(argument) {
|
|
2535
|
-
if (!isCallable$
|
|
2527
|
+
if (!isCallable$5(argument)) return false;
|
|
2536
2528
|
try {
|
|
2537
2529
|
construct(noop, [], argument);
|
|
2538
2530
|
return true;
|
|
@@ -2542,7 +2534,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
2542
2534
|
};
|
|
2543
2535
|
|
|
2544
2536
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
2545
|
-
if (!isCallable$
|
|
2537
|
+
if (!isCallable$5(argument)) return false;
|
|
2546
2538
|
switch (classof$1(argument)) {
|
|
2547
2539
|
case 'AsyncFunction':
|
|
2548
2540
|
case 'GeneratorFunction':
|
|
@@ -2562,7 +2554,7 @@ isConstructorLegacy.sham = true;
|
|
|
2562
2554
|
|
|
2563
2555
|
// `IsConstructor` abstract operation
|
|
2564
2556
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
2565
|
-
var isConstructor$1 = !construct || fails$
|
|
2557
|
+
var isConstructor$1 = !construct || fails$2(function () {
|
|
2566
2558
|
var called;
|
|
2567
2559
|
return isConstructorModern(isConstructorModern.call)
|
|
2568
2560
|
|| !isConstructorModern(Object)
|
|
@@ -2573,27 +2565,27 @@ var isConstructor$1 = !construct || fails$1(function () {
|
|
|
2573
2565
|
var isConstructor = isConstructor$1;
|
|
2574
2566
|
var tryToString$2 = tryToString$4;
|
|
2575
2567
|
|
|
2576
|
-
var $TypeError$
|
|
2568
|
+
var $TypeError$5 = TypeError;
|
|
2577
2569
|
|
|
2578
2570
|
// `Assert: IsConstructor(argument) is true`
|
|
2579
2571
|
var aConstructor$1 = function (argument) {
|
|
2580
2572
|
if (isConstructor(argument)) return argument;
|
|
2581
|
-
throw new $TypeError$
|
|
2573
|
+
throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
|
|
2582
2574
|
};
|
|
2583
2575
|
|
|
2584
|
-
var anObject$
|
|
2576
|
+
var anObject$7 = anObject$g;
|
|
2585
2577
|
var aConstructor = aConstructor$1;
|
|
2586
2578
|
var isNullOrUndefined$1 = isNullOrUndefined$6;
|
|
2587
|
-
var wellKnownSymbol$
|
|
2579
|
+
var wellKnownSymbol$6 = wellKnownSymbol$h;
|
|
2588
2580
|
|
|
2589
|
-
var SPECIES$1 = wellKnownSymbol$
|
|
2581
|
+
var SPECIES$1 = wellKnownSymbol$6('species');
|
|
2590
2582
|
|
|
2591
2583
|
// `SpeciesConstructor` abstract operation
|
|
2592
2584
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
2593
2585
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
2594
|
-
var C = anObject$
|
|
2586
|
+
var C = anObject$7(O).constructor;
|
|
2595
2587
|
var S;
|
|
2596
|
-
return C === undefined || isNullOrUndefined$1(S = anObject$
|
|
2588
|
+
return C === undefined || isNullOrUndefined$1(S = anObject$7(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
2597
2589
|
};
|
|
2598
2590
|
|
|
2599
2591
|
var classofRaw = classofRaw$2;
|
|
@@ -2607,14 +2599,14 @@ var functionUncurryThisClause = function (fn) {
|
|
|
2607
2599
|
};
|
|
2608
2600
|
|
|
2609
2601
|
var uncurryThis$1 = functionUncurryThisClause;
|
|
2610
|
-
var aCallable$
|
|
2602
|
+
var aCallable$7 = aCallable$a;
|
|
2611
2603
|
var NATIVE_BIND = functionBindNative;
|
|
2612
2604
|
|
|
2613
2605
|
var bind$4 = uncurryThis$1(uncurryThis$1.bind);
|
|
2614
2606
|
|
|
2615
2607
|
// optional / simple context binding
|
|
2616
2608
|
var functionBindContext = function (fn, that) {
|
|
2617
|
-
aCallable$
|
|
2609
|
+
aCallable$7(fn);
|
|
2618
2610
|
return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
|
|
2619
2611
|
return fn.apply(that, arguments);
|
|
2620
2612
|
};
|
|
@@ -2624,10 +2616,10 @@ var uncurryThis = functionUncurryThis;
|
|
|
2624
2616
|
|
|
2625
2617
|
var arraySlice$1 = uncurryThis([].slice);
|
|
2626
2618
|
|
|
2627
|
-
var $TypeError$
|
|
2619
|
+
var $TypeError$4 = TypeError;
|
|
2628
2620
|
|
|
2629
2621
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
2630
|
-
if (passed < required) throw new $TypeError$
|
|
2622
|
+
if (passed < required) throw new $TypeError$4('Not enough arguments');
|
|
2631
2623
|
return passed;
|
|
2632
2624
|
};
|
|
2633
2625
|
|
|
@@ -2636,12 +2628,12 @@ var userAgent$2 = engineUserAgent;
|
|
|
2636
2628
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2637
2629
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
2638
2630
|
|
|
2639
|
-
var global$
|
|
2631
|
+
var global$8 = global$m;
|
|
2640
2632
|
var apply = functionApply;
|
|
2641
2633
|
var bind$3 = functionBindContext;
|
|
2642
|
-
var isCallable$
|
|
2643
|
-
var hasOwn = hasOwnProperty_1;
|
|
2644
|
-
var fails = fails$
|
|
2634
|
+
var isCallable$4 = isCallable$m;
|
|
2635
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
2636
|
+
var fails$1 = fails$j;
|
|
2645
2637
|
var html = html$2;
|
|
2646
2638
|
var arraySlice = arraySlice$1;
|
|
2647
2639
|
var createElement = documentCreateElement$2;
|
|
@@ -2649,25 +2641,25 @@ var validateArgumentsLength = validateArgumentsLength$1;
|
|
|
2649
2641
|
var IS_IOS$1 = engineIsIos;
|
|
2650
2642
|
var IS_NODE$3 = engineIsNode;
|
|
2651
2643
|
|
|
2652
|
-
var set = global$
|
|
2653
|
-
var clear = global$
|
|
2654
|
-
var process$3 = global$
|
|
2655
|
-
var Dispatch = global$
|
|
2656
|
-
var Function$1 = global$
|
|
2657
|
-
var MessageChannel = global$
|
|
2658
|
-
var String$1 = global$
|
|
2644
|
+
var set = global$8.setImmediate;
|
|
2645
|
+
var clear = global$8.clearImmediate;
|
|
2646
|
+
var process$3 = global$8.process;
|
|
2647
|
+
var Dispatch = global$8.Dispatch;
|
|
2648
|
+
var Function$1 = global$8.Function;
|
|
2649
|
+
var MessageChannel = global$8.MessageChannel;
|
|
2650
|
+
var String$1 = global$8.String;
|
|
2659
2651
|
var counter = 0;
|
|
2660
2652
|
var queue$2 = {};
|
|
2661
2653
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2662
2654
|
var $location, defer, channel, port;
|
|
2663
2655
|
|
|
2664
|
-
fails(function () {
|
|
2656
|
+
fails$1(function () {
|
|
2665
2657
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2666
|
-
$location = global$
|
|
2658
|
+
$location = global$8.location;
|
|
2667
2659
|
});
|
|
2668
2660
|
|
|
2669
2661
|
var run = function (id) {
|
|
2670
|
-
if (hasOwn(queue$2, id)) {
|
|
2662
|
+
if (hasOwn$1(queue$2, id)) {
|
|
2671
2663
|
var fn = queue$2[id];
|
|
2672
2664
|
delete queue$2[id];
|
|
2673
2665
|
fn();
|
|
@@ -2686,14 +2678,14 @@ var eventListener = function (event) {
|
|
|
2686
2678
|
|
|
2687
2679
|
var globalPostMessageDefer = function (id) {
|
|
2688
2680
|
// old engines have not location.origin
|
|
2689
|
-
global$
|
|
2681
|
+
global$8.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
2690
2682
|
};
|
|
2691
2683
|
|
|
2692
2684
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
2693
2685
|
if (!set || !clear) {
|
|
2694
2686
|
set = function setImmediate(handler) {
|
|
2695
2687
|
validateArgumentsLength(arguments.length, 1);
|
|
2696
|
-
var fn = isCallable$
|
|
2688
|
+
var fn = isCallable$4(handler) ? handler : Function$1(handler);
|
|
2697
2689
|
var args = arraySlice(arguments, 1);
|
|
2698
2690
|
queue$2[++counter] = function () {
|
|
2699
2691
|
apply(fn, undefined, args);
|
|
@@ -2724,14 +2716,14 @@ if (!set || !clear) {
|
|
|
2724
2716
|
// Browsers with postMessage, skip WebWorkers
|
|
2725
2717
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2726
2718
|
} else if (
|
|
2727
|
-
global$
|
|
2728
|
-
isCallable$
|
|
2729
|
-
!global$
|
|
2719
|
+
global$8.addEventListener &&
|
|
2720
|
+
isCallable$4(global$8.postMessage) &&
|
|
2721
|
+
!global$8.importScripts &&
|
|
2730
2722
|
$location && $location.protocol !== 'file:' &&
|
|
2731
|
-
!fails(globalPostMessageDefer)
|
|
2723
|
+
!fails$1(globalPostMessageDefer)
|
|
2732
2724
|
) {
|
|
2733
2725
|
defer = globalPostMessageDefer;
|
|
2734
|
-
global$
|
|
2726
|
+
global$8.addEventListener('message', eventListener, false);
|
|
2735
2727
|
// IE8-
|
|
2736
2728
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2737
2729
|
defer = function (id) {
|
|
@@ -2749,20 +2741,18 @@ if (!set || !clear) {
|
|
|
2749
2741
|
}
|
|
2750
2742
|
|
|
2751
2743
|
var task$1 = {
|
|
2752
|
-
set: set
|
|
2753
|
-
clear: clear
|
|
2754
|
-
};
|
|
2744
|
+
set: set};
|
|
2755
2745
|
|
|
2756
|
-
var global$
|
|
2757
|
-
var DESCRIPTORS = descriptors;
|
|
2746
|
+
var global$7 = global$m;
|
|
2747
|
+
var DESCRIPTORS$2 = descriptors;
|
|
2758
2748
|
|
|
2759
2749
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2760
2750
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2761
2751
|
|
|
2762
2752
|
// Avoid NodeJS experimental warning
|
|
2763
2753
|
var safeGetBuiltIn$1 = function (name) {
|
|
2764
|
-
if (!DESCRIPTORS) return global$
|
|
2765
|
-
var descriptor = getOwnPropertyDescriptor(global$
|
|
2754
|
+
if (!DESCRIPTORS$2) return global$7[name];
|
|
2755
|
+
var descriptor = getOwnPropertyDescriptor(global$7, name);
|
|
2766
2756
|
return descriptor && descriptor.value;
|
|
2767
2757
|
};
|
|
2768
2758
|
|
|
@@ -2799,7 +2789,7 @@ var userAgent = engineUserAgent;
|
|
|
2799
2789
|
|
|
2800
2790
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2801
2791
|
|
|
2802
|
-
var global$
|
|
2792
|
+
var global$6 = global$m;
|
|
2803
2793
|
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
2804
2794
|
var bind$2 = functionBindContext;
|
|
2805
2795
|
var macrotask = task$1.set;
|
|
@@ -2809,10 +2799,10 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
2809
2799
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
2810
2800
|
var IS_NODE$2 = engineIsNode;
|
|
2811
2801
|
|
|
2812
|
-
var MutationObserver = global$
|
|
2813
|
-
var document$2 = global$
|
|
2814
|
-
var process$2 = global$
|
|
2815
|
-
var Promise$1 = global$
|
|
2802
|
+
var MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;
|
|
2803
|
+
var document$2 = global$6.document;
|
|
2804
|
+
var process$2 = global$6.process;
|
|
2805
|
+
var Promise$1 = global$6.Promise;
|
|
2816
2806
|
var microtask$1 = safeGetBuiltIn('queueMicrotask');
|
|
2817
2807
|
var notify$1, toggle, node, promise, then;
|
|
2818
2808
|
|
|
@@ -2864,7 +2854,7 @@ if (!microtask$1) {
|
|
|
2864
2854
|
// - setTimeout
|
|
2865
2855
|
} else {
|
|
2866
2856
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
2867
|
-
macrotask = bind$2(macrotask, global$
|
|
2857
|
+
macrotask = bind$2(macrotask, global$6);
|
|
2868
2858
|
notify$1 = function () {
|
|
2869
2859
|
macrotask(flush);
|
|
2870
2860
|
};
|
|
@@ -2893,9 +2883,9 @@ var perform$3 = function (exec) {
|
|
|
2893
2883
|
}
|
|
2894
2884
|
};
|
|
2895
2885
|
|
|
2896
|
-
var global$
|
|
2886
|
+
var global$5 = global$m;
|
|
2897
2887
|
|
|
2898
|
-
var promiseNativeConstructor = global$
|
|
2888
|
+
var promiseNativeConstructor = global$5.Promise;
|
|
2899
2889
|
|
|
2900
2890
|
/* global Deno -- Deno case */
|
|
2901
2891
|
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
@@ -2907,20 +2897,20 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
2907
2897
|
&& typeof window == 'object'
|
|
2908
2898
|
&& typeof document == 'object';
|
|
2909
2899
|
|
|
2910
|
-
var global$
|
|
2900
|
+
var global$4 = global$m;
|
|
2911
2901
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
2912
|
-
var isCallable$
|
|
2902
|
+
var isCallable$3 = isCallable$m;
|
|
2913
2903
|
var isForced = isForced_1;
|
|
2914
2904
|
var inspectSource = inspectSource$3;
|
|
2915
|
-
var wellKnownSymbol$
|
|
2905
|
+
var wellKnownSymbol$5 = wellKnownSymbol$h;
|
|
2916
2906
|
var IS_BROWSER = engineIsBrowser;
|
|
2917
2907
|
var IS_DENO = engineIsDeno;
|
|
2918
2908
|
var V8_VERSION = engineV8Version;
|
|
2919
2909
|
|
|
2920
2910
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
2921
|
-
var SPECIES = wellKnownSymbol$
|
|
2911
|
+
var SPECIES = wellKnownSymbol$5('species');
|
|
2922
2912
|
var SUBCLASSING = false;
|
|
2923
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$
|
|
2913
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$4.PromiseRejectionEvent);
|
|
2924
2914
|
|
|
2925
2915
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
2926
2916
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -2954,19 +2944,19 @@ var promiseConstructorDetection = {
|
|
|
2954
2944
|
|
|
2955
2945
|
var newPromiseCapability$2 = {};
|
|
2956
2946
|
|
|
2957
|
-
var aCallable$
|
|
2947
|
+
var aCallable$6 = aCallable$a;
|
|
2958
2948
|
|
|
2959
|
-
var $TypeError$
|
|
2949
|
+
var $TypeError$3 = TypeError;
|
|
2960
2950
|
|
|
2961
2951
|
var PromiseCapability = function (C) {
|
|
2962
2952
|
var resolve, reject;
|
|
2963
2953
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
2964
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError$
|
|
2954
|
+
if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
|
|
2965
2955
|
resolve = $$resolve;
|
|
2966
2956
|
reject = $$reject;
|
|
2967
2957
|
});
|
|
2968
|
-
this.resolve = aCallable$
|
|
2969
|
-
this.reject = aCallable$
|
|
2958
|
+
this.resolve = aCallable$6(resolve);
|
|
2959
|
+
this.reject = aCallable$6(reject);
|
|
2970
2960
|
};
|
|
2971
2961
|
|
|
2972
2962
|
// `NewPromiseCapability` abstract operation
|
|
@@ -2975,18 +2965,18 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2975
2965
|
return new PromiseCapability(C);
|
|
2976
2966
|
};
|
|
2977
2967
|
|
|
2978
|
-
var $$
|
|
2968
|
+
var $$8 = _export;
|
|
2979
2969
|
var IS_NODE = engineIsNode;
|
|
2980
|
-
var global$
|
|
2970
|
+
var global$3 = global$m;
|
|
2981
2971
|
var call$5 = functionCall;
|
|
2982
2972
|
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
2983
2973
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
2984
2974
|
var setToStringTag$1 = setToStringTag$4;
|
|
2985
2975
|
var setSpecies = setSpecies$1;
|
|
2986
|
-
var aCallable$
|
|
2987
|
-
var isCallable$
|
|
2976
|
+
var aCallable$5 = aCallable$a;
|
|
2977
|
+
var isCallable$2 = isCallable$m;
|
|
2988
2978
|
var isObject$1 = isObject$a;
|
|
2989
|
-
var anInstance = anInstance$
|
|
2979
|
+
var anInstance$1 = anInstance$2;
|
|
2990
2980
|
var speciesConstructor = speciesConstructor$1;
|
|
2991
2981
|
var task = task$1.set;
|
|
2992
2982
|
var microtask = microtask_1;
|
|
@@ -3007,13 +2997,13 @@ var setInternalState = InternalStateModule.set;
|
|
|
3007
2997
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
3008
2998
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
3009
2999
|
var PromisePrototype = NativePromisePrototype$1;
|
|
3010
|
-
var TypeError$1 = global$
|
|
3011
|
-
var document$1 = global$
|
|
3012
|
-
var process$1 = global$
|
|
3000
|
+
var TypeError$1 = global$3.TypeError;
|
|
3001
|
+
var document$1 = global$3.document;
|
|
3002
|
+
var process$1 = global$3.process;
|
|
3013
3003
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
3014
3004
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
3015
3005
|
|
|
3016
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
3006
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$3.dispatchEvent);
|
|
3017
3007
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
3018
3008
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
3019
3009
|
var PENDING = 0;
|
|
@@ -3027,7 +3017,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
3027
3017
|
// helpers
|
|
3028
3018
|
var isThenable = function (it) {
|
|
3029
3019
|
var then;
|
|
3030
|
-
return isObject$1(it) && isCallable$
|
|
3020
|
+
return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
|
|
3031
3021
|
};
|
|
3032
3022
|
|
|
3033
3023
|
var callReaction = function (reaction, state) {
|
|
@@ -3086,14 +3076,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
3086
3076
|
event.promise = promise;
|
|
3087
3077
|
event.reason = reason;
|
|
3088
3078
|
event.initEvent(name, false, true);
|
|
3089
|
-
global$
|
|
3079
|
+
global$3.dispatchEvent(event);
|
|
3090
3080
|
} else event = { promise: promise, reason: reason };
|
|
3091
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
3081
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$3['on' + name])) handler(event);
|
|
3092
3082
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
3093
3083
|
};
|
|
3094
3084
|
|
|
3095
3085
|
var onUnhandled = function (state) {
|
|
3096
|
-
call$5(task, global$
|
|
3086
|
+
call$5(task, global$3, function () {
|
|
3097
3087
|
var promise = state.facade;
|
|
3098
3088
|
var value = state.value;
|
|
3099
3089
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -3116,7 +3106,7 @@ var isUnhandled = function (state) {
|
|
|
3116
3106
|
};
|
|
3117
3107
|
|
|
3118
3108
|
var onHandleUnhandled = function (state) {
|
|
3119
|
-
call$5(task, global$
|
|
3109
|
+
call$5(task, global$3, function () {
|
|
3120
3110
|
var promise = state.facade;
|
|
3121
3111
|
if (IS_NODE) {
|
|
3122
3112
|
process$1.emit('rejectionHandled', promise);
|
|
@@ -3172,8 +3162,8 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
3172
3162
|
if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
3173
3163
|
// 25.4.3.1 Promise(executor)
|
|
3174
3164
|
PromiseConstructor = function Promise(executor) {
|
|
3175
|
-
anInstance(this, PromisePrototype);
|
|
3176
|
-
aCallable$
|
|
3165
|
+
anInstance$1(this, PromisePrototype);
|
|
3166
|
+
aCallable$5(executor);
|
|
3177
3167
|
call$5(Internal, this);
|
|
3178
3168
|
var state = getInternalPromiseState(this);
|
|
3179
3169
|
try {
|
|
@@ -3205,8 +3195,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
3205
3195
|
var state = getInternalPromiseState(this);
|
|
3206
3196
|
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
3207
3197
|
state.parent = true;
|
|
3208
|
-
reaction.ok = isCallable$
|
|
3209
|
-
reaction.fail = isCallable$
|
|
3198
|
+
reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
|
|
3199
|
+
reaction.fail = isCallable$2(onRejected) && onRejected;
|
|
3210
3200
|
reaction.domain = IS_NODE ? process$1.domain : undefined;
|
|
3211
3201
|
if (state.state === PENDING) state.reactions.add(reaction);
|
|
3212
3202
|
else microtask(function () {
|
|
@@ -3229,7 +3219,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
3229
3219
|
: newGenericPromiseCapability(C);
|
|
3230
3220
|
};
|
|
3231
3221
|
|
|
3232
|
-
if (isCallable$
|
|
3222
|
+
if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
3233
3223
|
nativeThen = NativePromisePrototype$1.then;
|
|
3234
3224
|
|
|
3235
3225
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
@@ -3255,59 +3245,59 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
3255
3245
|
}
|
|
3256
3246
|
}
|
|
3257
3247
|
|
|
3258
|
-
$$
|
|
3248
|
+
$$8({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
3259
3249
|
Promise: PromiseConstructor
|
|
3260
3250
|
});
|
|
3261
3251
|
|
|
3262
3252
|
setToStringTag$1(PromiseConstructor, PROMISE, false);
|
|
3263
3253
|
setSpecies(PROMISE);
|
|
3264
3254
|
|
|
3265
|
-
var wellKnownSymbol$
|
|
3255
|
+
var wellKnownSymbol$4 = wellKnownSymbol$h;
|
|
3266
3256
|
var Iterators$1 = iterators;
|
|
3267
3257
|
|
|
3268
|
-
var ITERATOR$
|
|
3258
|
+
var ITERATOR$4 = wellKnownSymbol$4('iterator');
|
|
3269
3259
|
var ArrayPrototype = Array.prototype;
|
|
3270
3260
|
|
|
3271
3261
|
// check on default Array iterator
|
|
3272
3262
|
var isArrayIteratorMethod$1 = function (it) {
|
|
3273
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$
|
|
3263
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$4] === it);
|
|
3274
3264
|
};
|
|
3275
3265
|
|
|
3276
3266
|
var classof = classof$5;
|
|
3277
3267
|
var getMethod$1 = getMethod$5;
|
|
3278
3268
|
var isNullOrUndefined = isNullOrUndefined$6;
|
|
3279
3269
|
var Iterators = iterators;
|
|
3280
|
-
var wellKnownSymbol$
|
|
3270
|
+
var wellKnownSymbol$3 = wellKnownSymbol$h;
|
|
3281
3271
|
|
|
3282
|
-
var ITERATOR$
|
|
3272
|
+
var ITERATOR$3 = wellKnownSymbol$3('iterator');
|
|
3283
3273
|
|
|
3284
3274
|
var getIteratorMethod$2 = function (it) {
|
|
3285
|
-
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$
|
|
3275
|
+
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$3)
|
|
3286
3276
|
|| getMethod$1(it, '@@iterator')
|
|
3287
3277
|
|| Iterators[classof(it)];
|
|
3288
3278
|
};
|
|
3289
3279
|
|
|
3290
3280
|
var call$4 = functionCall;
|
|
3291
|
-
var aCallable$
|
|
3292
|
-
var anObject$
|
|
3281
|
+
var aCallable$4 = aCallable$a;
|
|
3282
|
+
var anObject$6 = anObject$g;
|
|
3293
3283
|
var tryToString$1 = tryToString$4;
|
|
3294
3284
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
3295
3285
|
|
|
3296
|
-
var $TypeError$
|
|
3286
|
+
var $TypeError$2 = TypeError;
|
|
3297
3287
|
|
|
3298
3288
|
var getIterator$1 = function (argument, usingIterator) {
|
|
3299
3289
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
3300
|
-
if (aCallable$
|
|
3301
|
-
throw new $TypeError$
|
|
3290
|
+
if (aCallable$4(iteratorMethod)) return anObject$6(call$4(iteratorMethod, argument));
|
|
3291
|
+
throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
|
|
3302
3292
|
};
|
|
3303
3293
|
|
|
3304
3294
|
var call$3 = functionCall;
|
|
3305
|
-
var anObject$
|
|
3295
|
+
var anObject$5 = anObject$g;
|
|
3306
3296
|
var getMethod = getMethod$5;
|
|
3307
3297
|
|
|
3308
3298
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
3309
3299
|
var innerResult, innerError;
|
|
3310
|
-
anObject$
|
|
3300
|
+
anObject$5(iterator);
|
|
3311
3301
|
try {
|
|
3312
3302
|
innerResult = getMethod(iterator, 'return');
|
|
3313
3303
|
if (!innerResult) {
|
|
@@ -3321,13 +3311,13 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
3321
3311
|
}
|
|
3322
3312
|
if (kind === 'throw') throw value;
|
|
3323
3313
|
if (innerError) throw innerResult;
|
|
3324
|
-
anObject$
|
|
3314
|
+
anObject$5(innerResult);
|
|
3325
3315
|
return value;
|
|
3326
3316
|
};
|
|
3327
3317
|
|
|
3328
3318
|
var bind = functionBindContext;
|
|
3329
3319
|
var call$2 = functionCall;
|
|
3330
|
-
var anObject$
|
|
3320
|
+
var anObject$4 = anObject$g;
|
|
3331
3321
|
var tryToString = tryToString$4;
|
|
3332
3322
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
3333
3323
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
@@ -3336,7 +3326,7 @@ var getIterator = getIterator$1;
|
|
|
3336
3326
|
var getIteratorMethod = getIteratorMethod$2;
|
|
3337
3327
|
var iteratorClose = iteratorClose$1;
|
|
3338
3328
|
|
|
3339
|
-
var $TypeError = TypeError;
|
|
3329
|
+
var $TypeError$1 = TypeError;
|
|
3340
3330
|
|
|
3341
3331
|
var Result = function (stopped, result) {
|
|
3342
3332
|
this.stopped = stopped;
|
|
@@ -3345,7 +3335,7 @@ var Result = function (stopped, result) {
|
|
|
3345
3335
|
|
|
3346
3336
|
var ResultPrototype = Result.prototype;
|
|
3347
3337
|
|
|
3348
|
-
var iterate$
|
|
3338
|
+
var iterate$4 = function (iterable, unboundFunction, options) {
|
|
3349
3339
|
var that = options && options.that;
|
|
3350
3340
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
3351
3341
|
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
@@ -3361,7 +3351,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
3361
3351
|
|
|
3362
3352
|
var callFn = function (value) {
|
|
3363
3353
|
if (AS_ENTRIES) {
|
|
3364
|
-
anObject$
|
|
3354
|
+
anObject$4(value);
|
|
3365
3355
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
3366
3356
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
3367
3357
|
};
|
|
@@ -3372,7 +3362,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
3372
3362
|
iterator = iterable;
|
|
3373
3363
|
} else {
|
|
3374
3364
|
iterFn = getIteratorMethod(iterable);
|
|
3375
|
-
if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
|
|
3365
|
+
if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
|
|
3376
3366
|
// optimisation for array iterators
|
|
3377
3367
|
if (isArrayIteratorMethod(iterFn)) {
|
|
3378
3368
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
@@ -3394,9 +3384,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
3394
3384
|
} return new Result(false);
|
|
3395
3385
|
};
|
|
3396
3386
|
|
|
3397
|
-
var wellKnownSymbol$
|
|
3387
|
+
var wellKnownSymbol$2 = wellKnownSymbol$h;
|
|
3398
3388
|
|
|
3399
|
-
var ITERATOR$
|
|
3389
|
+
var ITERATOR$2 = wellKnownSymbol$2('iterator');
|
|
3400
3390
|
var SAFE_CLOSING = false;
|
|
3401
3391
|
|
|
3402
3392
|
try {
|
|
@@ -3409,7 +3399,7 @@ try {
|
|
|
3409
3399
|
SAFE_CLOSING = true;
|
|
3410
3400
|
}
|
|
3411
3401
|
};
|
|
3412
|
-
iteratorWithReturn[ITERATOR$
|
|
3402
|
+
iteratorWithReturn[ITERATOR$2] = function () {
|
|
3413
3403
|
return this;
|
|
3414
3404
|
};
|
|
3415
3405
|
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
@@ -3423,7 +3413,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
3423
3413
|
var ITERATION_SUPPORT = false;
|
|
3424
3414
|
try {
|
|
3425
3415
|
var object = {};
|
|
3426
|
-
object[ITERATOR$
|
|
3416
|
+
object[ITERATOR$2] = function () {
|
|
3427
3417
|
return {
|
|
3428
3418
|
next: function () {
|
|
3429
3419
|
return { done: ITERATION_SUPPORT = true };
|
|
@@ -3443,28 +3433,28 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
3443
3433
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
3444
3434
|
});
|
|
3445
3435
|
|
|
3446
|
-
var $$
|
|
3436
|
+
var $$7 = _export;
|
|
3447
3437
|
var call$1 = functionCall;
|
|
3448
|
-
var aCallable$
|
|
3438
|
+
var aCallable$3 = aCallable$a;
|
|
3449
3439
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
3450
3440
|
var perform$1 = perform$3;
|
|
3451
|
-
var iterate$
|
|
3441
|
+
var iterate$3 = iterate$4;
|
|
3452
3442
|
var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
3453
3443
|
|
|
3454
3444
|
// `Promise.all` method
|
|
3455
3445
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
3456
|
-
$$
|
|
3446
|
+
$$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
3457
3447
|
all: function all(iterable) {
|
|
3458
3448
|
var C = this;
|
|
3459
3449
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
3460
3450
|
var resolve = capability.resolve;
|
|
3461
3451
|
var reject = capability.reject;
|
|
3462
3452
|
var result = perform$1(function () {
|
|
3463
|
-
var $promiseResolve = aCallable$
|
|
3453
|
+
var $promiseResolve = aCallable$3(C.resolve);
|
|
3464
3454
|
var values = [];
|
|
3465
3455
|
var counter = 0;
|
|
3466
3456
|
var remaining = 1;
|
|
3467
|
-
iterate$
|
|
3457
|
+
iterate$3(iterable, function (promise) {
|
|
3468
3458
|
var index = counter++;
|
|
3469
3459
|
var alreadyCalled = false;
|
|
3470
3460
|
remaining++;
|
|
@@ -3482,49 +3472,49 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
3482
3472
|
}
|
|
3483
3473
|
});
|
|
3484
3474
|
|
|
3485
|
-
var $$
|
|
3475
|
+
var $$6 = _export;
|
|
3486
3476
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
3487
3477
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
3488
3478
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
3489
|
-
var isCallable = isCallable$
|
|
3479
|
+
var isCallable$1 = isCallable$m;
|
|
3490
3480
|
var defineBuiltIn = defineBuiltIn$6;
|
|
3491
3481
|
|
|
3492
3482
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
3493
3483
|
|
|
3494
3484
|
// `Promise.prototype.catch` method
|
|
3495
3485
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
3496
|
-
$$
|
|
3486
|
+
$$6({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
3497
3487
|
'catch': function (onRejected) {
|
|
3498
3488
|
return this.then(undefined, onRejected);
|
|
3499
3489
|
}
|
|
3500
3490
|
});
|
|
3501
3491
|
|
|
3502
3492
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
3503
|
-
if (isCallable(NativePromiseConstructor)) {
|
|
3493
|
+
if (isCallable$1(NativePromiseConstructor)) {
|
|
3504
3494
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
3505
3495
|
if (NativePromisePrototype['catch'] !== method) {
|
|
3506
3496
|
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
3507
3497
|
}
|
|
3508
3498
|
}
|
|
3509
3499
|
|
|
3510
|
-
var $$
|
|
3500
|
+
var $$5 = _export;
|
|
3511
3501
|
var call = functionCall;
|
|
3512
|
-
var aCallable = aCallable$
|
|
3502
|
+
var aCallable$2 = aCallable$a;
|
|
3513
3503
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
3514
3504
|
var perform = perform$3;
|
|
3515
|
-
var iterate = iterate$
|
|
3505
|
+
var iterate$2 = iterate$4;
|
|
3516
3506
|
var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
3517
3507
|
|
|
3518
3508
|
// `Promise.race` method
|
|
3519
3509
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
3520
|
-
$$
|
|
3510
|
+
$$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
3521
3511
|
race: function race(iterable) {
|
|
3522
3512
|
var C = this;
|
|
3523
3513
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
3524
3514
|
var reject = capability.reject;
|
|
3525
3515
|
var result = perform(function () {
|
|
3526
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
3527
|
-
iterate(iterable, function (promise) {
|
|
3516
|
+
var $promiseResolve = aCallable$2(C.resolve);
|
|
3517
|
+
iterate$2(iterable, function (promise) {
|
|
3528
3518
|
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
3529
3519
|
});
|
|
3530
3520
|
});
|
|
@@ -3533,13 +3523,13 @@ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
3533
3523
|
}
|
|
3534
3524
|
});
|
|
3535
3525
|
|
|
3536
|
-
var $$
|
|
3526
|
+
var $$4 = _export;
|
|
3537
3527
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
3538
3528
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
3539
3529
|
|
|
3540
3530
|
// `Promise.reject` method
|
|
3541
3531
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
3542
|
-
$$
|
|
3532
|
+
$$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
3543
3533
|
reject: function reject(r) {
|
|
3544
3534
|
var capability = newPromiseCapabilityModule.f(this);
|
|
3545
3535
|
var capabilityReject = capability.reject;
|
|
@@ -3548,12 +3538,12 @@ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
3548
3538
|
}
|
|
3549
3539
|
});
|
|
3550
3540
|
|
|
3551
|
-
var anObject = anObject$
|
|
3541
|
+
var anObject$3 = anObject$g;
|
|
3552
3542
|
var isObject = isObject$a;
|
|
3553
3543
|
var newPromiseCapability = newPromiseCapability$2;
|
|
3554
3544
|
|
|
3555
3545
|
var promiseResolve$1 = function (C, x) {
|
|
3556
|
-
anObject(C);
|
|
3546
|
+
anObject$3(C);
|
|
3557
3547
|
if (isObject(x) && x.constructor === C) return x;
|
|
3558
3548
|
var promiseCapability = newPromiseCapability.f(C);
|
|
3559
3549
|
var resolve = promiseCapability.resolve;
|
|
@@ -3561,7 +3551,7 @@ var promiseResolve$1 = function (C, x) {
|
|
|
3561
3551
|
return promiseCapability.promise;
|
|
3562
3552
|
};
|
|
3563
3553
|
|
|
3564
|
-
var
|
|
3554
|
+
var $$3 = _export;
|
|
3565
3555
|
var getBuiltIn = getBuiltIn$7;
|
|
3566
3556
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
3567
3557
|
var promiseResolve = promiseResolve$1;
|
|
@@ -3570,12 +3560,114 @@ getBuiltIn('Promise');
|
|
|
3570
3560
|
|
|
3571
3561
|
// `Promise.resolve` method
|
|
3572
3562
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
3573
|
-
|
|
3563
|
+
$$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
3574
3564
|
resolve: function resolve(x) {
|
|
3575
3565
|
return promiseResolve(this, x);
|
|
3576
3566
|
}
|
|
3577
3567
|
});
|
|
3578
3568
|
|
|
3569
|
+
var DESCRIPTORS$1 = descriptors;
|
|
3570
|
+
var definePropertyModule = objectDefineProperty;
|
|
3571
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
3572
|
+
|
|
3573
|
+
var createProperty$1 = function (object, key, value) {
|
|
3574
|
+
if (DESCRIPTORS$1) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
|
3575
|
+
else object[key] = value;
|
|
3576
|
+
};
|
|
3577
|
+
|
|
3578
|
+
var $$2 = _export;
|
|
3579
|
+
var global$2 = global$m;
|
|
3580
|
+
var anInstance = anInstance$2;
|
|
3581
|
+
var anObject$2 = anObject$g;
|
|
3582
|
+
var isCallable = isCallable$m;
|
|
3583
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
|
3584
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$2;
|
|
3585
|
+
var createProperty = createProperty$1;
|
|
3586
|
+
var fails = fails$j;
|
|
3587
|
+
var hasOwn = hasOwnProperty_1;
|
|
3588
|
+
var wellKnownSymbol$1 = wellKnownSymbol$h;
|
|
3589
|
+
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
3590
|
+
var DESCRIPTORS = descriptors;
|
|
3591
|
+
|
|
3592
|
+
var CONSTRUCTOR = 'constructor';
|
|
3593
|
+
var ITERATOR$1 = 'Iterator';
|
|
3594
|
+
var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
|
|
3595
|
+
|
|
3596
|
+
var $TypeError = TypeError;
|
|
3597
|
+
var NativeIterator = global$2[ITERATOR$1];
|
|
3598
|
+
|
|
3599
|
+
// FF56- have non-standard global helper `Iterator`
|
|
3600
|
+
var FORCED = !isCallable(NativeIterator)
|
|
3601
|
+
|| NativeIterator.prototype !== IteratorPrototype
|
|
3602
|
+
// FF44- non-standard `Iterator` passes previous tests
|
|
3603
|
+
|| !fails(function () { NativeIterator({}); });
|
|
3604
|
+
|
|
3605
|
+
var IteratorConstructor = function Iterator() {
|
|
3606
|
+
anInstance(this, IteratorPrototype);
|
|
3607
|
+
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable');
|
|
3608
|
+
};
|
|
3609
|
+
|
|
3610
|
+
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
3611
|
+
if (DESCRIPTORS) {
|
|
3612
|
+
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
3613
|
+
configurable: true,
|
|
3614
|
+
get: function () {
|
|
3615
|
+
return value;
|
|
3616
|
+
},
|
|
3617
|
+
set: function (replacement) {
|
|
3618
|
+
anObject$2(this);
|
|
3619
|
+
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property");
|
|
3620
|
+
if (hasOwn(this, key)) this[key] = replacement;
|
|
3621
|
+
else createProperty(this, key, replacement);
|
|
3622
|
+
}
|
|
3623
|
+
});
|
|
3624
|
+
} else IteratorPrototype[key] = value;
|
|
3625
|
+
};
|
|
3626
|
+
|
|
3627
|
+
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR$1);
|
|
3628
|
+
|
|
3629
|
+
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
|
3630
|
+
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
IteratorConstructor.prototype = IteratorPrototype;
|
|
3634
|
+
|
|
3635
|
+
// `Iterator` constructor
|
|
3636
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
3637
|
+
$$2({ global: true, constructor: true, forced: FORCED }, {
|
|
3638
|
+
Iterator: IteratorConstructor
|
|
3639
|
+
});
|
|
3640
|
+
|
|
3641
|
+
// `GetIteratorDirect(obj)` abstract operation
|
|
3642
|
+
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
3643
|
+
var getIteratorDirect$2 = function (obj) {
|
|
3644
|
+
return {
|
|
3645
|
+
iterator: obj,
|
|
3646
|
+
next: obj.next,
|
|
3647
|
+
done: false
|
|
3648
|
+
};
|
|
3649
|
+
};
|
|
3650
|
+
|
|
3651
|
+
var $$1 = _export;
|
|
3652
|
+
var iterate$1 = iterate$4;
|
|
3653
|
+
var aCallable$1 = aCallable$a;
|
|
3654
|
+
var anObject$1 = anObject$g;
|
|
3655
|
+
var getIteratorDirect$1 = getIteratorDirect$2;
|
|
3656
|
+
|
|
3657
|
+
// `Iterator.prototype.find` method
|
|
3658
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
3659
|
+
$$1({ target: 'Iterator', proto: true, real: true }, {
|
|
3660
|
+
find: function find(predicate) {
|
|
3661
|
+
anObject$1(this);
|
|
3662
|
+
aCallable$1(predicate);
|
|
3663
|
+
var record = getIteratorDirect$1(this);
|
|
3664
|
+
var counter = 0;
|
|
3665
|
+
return iterate$1(record, function (value, stop) {
|
|
3666
|
+
if (predicate(value, counter++)) return stop(value);
|
|
3667
|
+
}, { IS_RECORD: true, INTERRUPTED: true }).result;
|
|
3668
|
+
}
|
|
3669
|
+
});
|
|
3670
|
+
|
|
3579
3671
|
// iterable DOM collections
|
|
3580
3672
|
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
3581
3673
|
var domIterables = {
|
|
@@ -3620,13 +3712,13 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
3620
3712
|
|
|
3621
3713
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
3622
3714
|
|
|
3623
|
-
var global$1 = global$
|
|
3715
|
+
var global$1 = global$m;
|
|
3624
3716
|
var DOMIterables = domIterables;
|
|
3625
3717
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
3626
3718
|
var ArrayIteratorMethods = es_array_iterator;
|
|
3627
3719
|
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
3628
3720
|
var setToStringTag = setToStringTag$4;
|
|
3629
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
3721
|
+
var wellKnownSymbol = wellKnownSymbol$h;
|
|
3630
3722
|
|
|
3631
3723
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
3632
3724
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
@@ -3663,27 +3755,36 @@ const defaultErrorHandler = ({
|
|
|
3663
3755
|
graphQLErrors
|
|
3664
3756
|
}) => {
|
|
3665
3757
|
if (networkError && networkError.statusCode === 401) {
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
return window.location.replace('/account/login');
|
|
3669
|
-
}
|
|
3670
|
-
} else if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
|
|
3671
|
-
if (typeof window !== 'undefined' && window.location.pathname !== '/error') {
|
|
3672
|
-
return window.location.replace('/error?message=' + networkError.message);
|
|
3673
|
-
}
|
|
3758
|
+
redirectToLogin();
|
|
3759
|
+
return;
|
|
3674
3760
|
}
|
|
3675
|
-
if (graphQLErrors && graphQLErrors.
|
|
3676
|
-
|
|
3677
|
-
return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'FORBIDDEN';
|
|
3678
|
-
})) {
|
|
3679
|
-
const error = graphQLErrors.find(error => {
|
|
3761
|
+
if (graphQLErrors && graphQLErrors.length > 0) {
|
|
3762
|
+
const unauthenticatedError = graphQLErrors.find(error => {
|
|
3680
3763
|
var _a;
|
|
3681
|
-
return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === '
|
|
3764
|
+
return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'UNAUTHENTICATED';
|
|
3682
3765
|
});
|
|
3683
|
-
if (
|
|
3684
|
-
|
|
3766
|
+
if (unauthenticatedError) {
|
|
3767
|
+
redirectToLogin();
|
|
3768
|
+
return;
|
|
3685
3769
|
}
|
|
3686
3770
|
}
|
|
3771
|
+
if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
|
|
3772
|
+
if (typeof window !== 'undefined' && window.location.pathname !== '/error') {
|
|
3773
|
+
return window.location.replace('/error?message=' + networkError.message);
|
|
3774
|
+
}
|
|
3775
|
+
}
|
|
3776
|
+
// TODO: Uncomment this and fix when we have a proper way to handle 403 errors, if needed
|
|
3777
|
+
// if (
|
|
3778
|
+
// graphQLErrors &&
|
|
3779
|
+
// graphQLErrors.find((error) => error?.extensions?.['code'] === 'FORBIDDEN')
|
|
3780
|
+
// ) {
|
|
3781
|
+
// const error = graphQLErrors.find(
|
|
3782
|
+
// (error) => error?.extensions?.['code'] === 'FORBIDDEN'
|
|
3783
|
+
// );
|
|
3784
|
+
// if (typeof window !== 'undefined' && window.location.pathname !== '/403') {
|
|
3785
|
+
// return window.location.replace('/403?message=' + error?.message);
|
|
3786
|
+
// }
|
|
3787
|
+
// }
|
|
3687
3788
|
};
|
|
3688
3789
|
// Overridable error handler
|
|
3689
3790
|
let currentErrorHandler = defaultErrorHandler;
|
|
@@ -3737,6 +3838,19 @@ function getUserContext() {
|
|
|
3737
3838
|
});
|
|
3738
3839
|
});
|
|
3739
3840
|
}
|
|
3841
|
+
const clearAuthData = () => {
|
|
3842
|
+
if (typeof window !== 'undefined') {
|
|
3843
|
+
window.localStorage.removeItem('token');
|
|
3844
|
+
window.localStorage.removeItem('ContextId');
|
|
3845
|
+
window.localStorage.removeItem('userInfo');
|
|
3846
|
+
}
|
|
3847
|
+
};
|
|
3848
|
+
const redirectToLogin = () => {
|
|
3849
|
+
if (typeof window !== 'undefined' && window.location.pathname !== '/account/login') {
|
|
3850
|
+
clearAuthData();
|
|
3851
|
+
window.location.href = '/account/login';
|
|
3852
|
+
}
|
|
3853
|
+
};
|
|
3740
3854
|
|
|
3741
3855
|
const {
|
|
3742
3856
|
networkInterface: uri$4
|
|
@@ -3776,11 +3890,11 @@ const errorLink$3 = error.onError(({
|
|
|
3776
3890
|
}
|
|
3777
3891
|
} else if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
|
|
3778
3892
|
if (typeof window !== 'undefined' && window.location.pathname !== '/error') {
|
|
3779
|
-
return window.location.replace('/
|
|
3893
|
+
return window.location.replace('/error?message=' + networkError.message);
|
|
3780
3894
|
}
|
|
3781
3895
|
} else {
|
|
3782
3896
|
if (typeof window !== 'undefined' && window.location.pathname !== '/error') {
|
|
3783
|
-
return window.location.replace('/
|
|
3897
|
+
return window.location.replace('/error?message=Cannot connect to the server, please make sure you have an active internet connection');
|
|
3784
3898
|
}
|
|
3785
3899
|
}
|
|
3786
3900
|
});
|
|
@@ -3938,14 +4052,14 @@ const errorLink$2 = error.onError(handleHandler);
|
|
|
3938
4052
|
/* eslint-disable no-process-env */
|
|
3939
4053
|
const isDevEnv$3 = process.env['NODE_ENV'] !== 'production';
|
|
3940
4054
|
/* eslint-enable no-process-env */
|
|
3941
|
-
const link_dquery$
|
|
4055
|
+
const link_dquery$1 = client.createHttpLink({
|
|
3942
4056
|
uri: uri$3,
|
|
3943
4057
|
fetchOptions: {
|
|
3944
4058
|
mode: 'cors'
|
|
3945
4059
|
}
|
|
3946
4060
|
});
|
|
3947
4061
|
const dqueryClient = new client.ApolloClient({
|
|
3948
|
-
link: client.from([errorLink$2, link_dquery$
|
|
4062
|
+
link: client.from([errorLink$2, link_dquery$1]),
|
|
3949
4063
|
cache: cache$3,
|
|
3950
4064
|
connectToDevTools: isDevEnv$3,
|
|
3951
4065
|
queryDeduplication: true
|
|
@@ -3976,7 +4090,7 @@ let _$6 = t => t,
|
|
|
3976
4090
|
_t7$2,
|
|
3977
4091
|
_t8$2,
|
|
3978
4092
|
_t9$2,
|
|
3979
|
-
|
|
4093
|
+
_t0$1;
|
|
3980
4094
|
const showcaseContentsQuery = gql(_t$6 || (_t$6 = _$6`
|
|
3981
4095
|
query ($rootId: Int!, $path: String, $deep: Int!) {
|
|
3982
4096
|
contents(rootId: $rootId, deep: $deep, path: $path) {
|
|
@@ -4409,7 +4523,7 @@ const useTemplateSectionsThumbsMap = companyContextId => client.useQuery(showcas
|
|
|
4409
4523
|
companyContextId
|
|
4410
4524
|
}
|
|
4411
4525
|
});
|
|
4412
|
-
const showcaseContext = gql(
|
|
4526
|
+
const showcaseContext = gql(_t0$1 || (_t0$1 = _$6`
|
|
4413
4527
|
query ($domain: String!) {
|
|
4414
4528
|
contextId(domain: $domain)
|
|
4415
4529
|
}
|
|
@@ -5294,7 +5408,7 @@ let _$1 = t => t,
|
|
|
5294
5408
|
_t7,
|
|
5295
5409
|
_t8,
|
|
5296
5410
|
_t9,
|
|
5297
|
-
|
|
5411
|
+
_t0;
|
|
5298
5412
|
const showcaseConfigurationQuery = gql(_t$1 || (_t$1 = _$1`
|
|
5299
5413
|
query ($ContextId: Int) {
|
|
5300
5414
|
showcaseConfiguration(Key: "ShowcaseConfig", ContextId: $ContextId)
|
|
@@ -5585,7 +5699,7 @@ const useQueryUsage = AccountId => client.useQuery(queryUsage, {
|
|
|
5585
5699
|
AccountId
|
|
5586
5700
|
}
|
|
5587
5701
|
});
|
|
5588
|
-
const querySectionThumb = gql(
|
|
5702
|
+
const querySectionThumb = gql(_t0 || (_t0 = _$1`
|
|
5589
5703
|
query ($sectionId: Int!, $templateId: Int!, $templateContextId: Int!) {
|
|
5590
5704
|
querySectionThumb(
|
|
5591
5705
|
sectionId: $sectionId
|
|
@@ -5733,7 +5847,7 @@ const useDeleteFileMutation = () => client.useMutation(deleteFileMutation, {
|
|
|
5733
5847
|
client: dconfigClient
|
|
5734
5848
|
});
|
|
5735
5849
|
|
|
5736
|
-
function unfetch_module(e,n){return n=n||{},new Promise(function(t,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return {ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var l in s.open(n.method||"get",e
|
|
5850
|
+
function unfetch_module(e,n){return n=n||{},new Promise(function(t,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return {ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var l in s.open(n.method||"get",e,true),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,n,t){o.push(n=n.toLowerCase()),u.push([n,t]),i[n]=i[n]?i[n]+","+t:t;}),t(a());},s.onerror=r,s.withCredentials="include"==n.credentials,n.headers)s.setRequestHeader(l,n.headers[l]);s.send(n.body||null);})}
|
|
5737
5851
|
|
|
5738
5852
|
var unfetch_module$1 = /*#__PURE__*/Object.freeze({
|
|
5739
5853
|
__proto__: null,
|
|
@@ -86871,10 +86985,6 @@ function getNodeRequestOptions(request) {
|
|
|
86871
86985
|
agent = agent(parsedURL);
|
|
86872
86986
|
}
|
|
86873
86987
|
|
|
86874
|
-
if (!headers.has('Connection') && !agent) {
|
|
86875
|
-
headers.set('Connection', 'close');
|
|
86876
|
-
}
|
|
86877
|
-
|
|
86878
86988
|
// HTTP-network fetch step 4.2
|
|
86879
86989
|
// chunked encoding is handled by Node.js
|
|
86880
86990
|
|
|
@@ -87248,8 +87358,11 @@ function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
|
87248
87358
|
|
|
87249
87359
|
if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
|
|
87250
87360
|
response.once('close', function (hadError) {
|
|
87361
|
+
// tests for socket presence, as in some situations the
|
|
87362
|
+
// the 'socket' event is not triggered for the request
|
|
87363
|
+
// (happens in deno), avoids `TypeError`
|
|
87251
87364
|
// if a data listener is still present we didn't end cleanly
|
|
87252
|
-
const hasDataListener = socket.listenerCount('data') > 0;
|
|
87365
|
+
const hasDataListener = socket && socket.listenerCount('data') > 0;
|
|
87253
87366
|
|
|
87254
87367
|
if (hasDataListener && !hadError) {
|
|
87255
87368
|
const err = new Error('Premature close');
|
|
@@ -87286,6 +87399,7 @@ fetch$1.Promise = global.Promise;
|
|
|
87286
87399
|
|
|
87287
87400
|
var lib = /*#__PURE__*/Object.freeze({
|
|
87288
87401
|
__proto__: null,
|
|
87402
|
+
AbortError: AbortError,
|
|
87289
87403
|
FetchError: FetchError,
|
|
87290
87404
|
Headers: Headers,
|
|
87291
87405
|
Request: Request,
|
|
@@ -87328,14 +87442,31 @@ const errorLink$1 = error.onError(handleHandler);
|
|
|
87328
87442
|
/* eslint-disable no-process-env */
|
|
87329
87443
|
const isDevEnv$1 = process.env['NODE_ENV'] !== 'production';
|
|
87330
87444
|
/* eslint-enable no-process-env */
|
|
87331
|
-
const
|
|
87445
|
+
const httpLink = client.createHttpLink({
|
|
87332
87446
|
uri: `${uri$1}/gq`,
|
|
87333
87447
|
fetchOptions: {
|
|
87334
87448
|
mode: 'cors'
|
|
87335
87449
|
}
|
|
87336
87450
|
});
|
|
87451
|
+
const batchLink = new batchHttp.BatchHttpLink({
|
|
87452
|
+
uri: `${uri$1}/gq`,
|
|
87453
|
+
batchMax: 5,
|
|
87454
|
+
// Max number of operations in a single batch
|
|
87455
|
+
batchInterval: 200,
|
|
87456
|
+
// Time in ms to wait for operations to accumulate
|
|
87457
|
+
fetchOptions: {
|
|
87458
|
+
mode: 'cors'
|
|
87459
|
+
}
|
|
87460
|
+
});
|
|
87461
|
+
// use batch link for queries and http link for mutations
|
|
87462
|
+
const splitLink = client.split(({
|
|
87463
|
+
query
|
|
87464
|
+
}) => {
|
|
87465
|
+
const definition = utilities.getMainDefinition(query);
|
|
87466
|
+
return definition.kind === 'OperationDefinition' && definition.operation === 'query';
|
|
87467
|
+
}, batchLink, httpLink);
|
|
87337
87468
|
const coreClient = new client.ApolloClient({
|
|
87338
|
-
link: client.from([authLink$1, errorLink$1,
|
|
87469
|
+
link: client.from([authLink$1, errorLink$1, splitLink]),
|
|
87339
87470
|
cache: cache$1,
|
|
87340
87471
|
connectToDevTools: isDevEnv$1,
|
|
87341
87472
|
queryDeduplication: true
|
|
@@ -87363,6 +87494,26 @@ const botClient = new client.ApolloClient({
|
|
|
87363
87494
|
queryDeduplication: true
|
|
87364
87495
|
});
|
|
87365
87496
|
|
|
87497
|
+
var $ = _export;
|
|
87498
|
+
var iterate = iterate$4;
|
|
87499
|
+
var aCallable = aCallable$a;
|
|
87500
|
+
var anObject = anObject$g;
|
|
87501
|
+
var getIteratorDirect = getIteratorDirect$2;
|
|
87502
|
+
|
|
87503
|
+
// `Iterator.prototype.forEach` method
|
|
87504
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
87505
|
+
$({ target: 'Iterator', proto: true, real: true }, {
|
|
87506
|
+
forEach: function forEach(fn) {
|
|
87507
|
+
anObject(this);
|
|
87508
|
+
aCallable(fn);
|
|
87509
|
+
var record = getIteratorDirect(this);
|
|
87510
|
+
var counter = 0;
|
|
87511
|
+
iterate(record, function (value) {
|
|
87512
|
+
fn(value, counter++);
|
|
87513
|
+
}, { IS_RECORD: true });
|
|
87514
|
+
}
|
|
87515
|
+
});
|
|
87516
|
+
|
|
87366
87517
|
class ModelUtilities {
|
|
87367
87518
|
static ConvertModelsListToFieldsMap(models) {
|
|
87368
87519
|
const fieldsMap = new Map();
|
|
@@ -87405,6 +87556,7 @@ exports.addDomain = addDomain;
|
|
|
87405
87556
|
exports.addDomainOptions = addDomainOptions;
|
|
87406
87557
|
exports.appConfig = appConfig;
|
|
87407
87558
|
exports.botClient = botClient;
|
|
87559
|
+
exports.clearAuthData = clearAuthData;
|
|
87408
87560
|
exports.companyUsersQuery = companyUsersQuery;
|
|
87409
87561
|
exports.contentInstancesQuery = contentInstancesQuery;
|
|
87410
87562
|
exports.coreClient = coreClient;
|
|
@@ -87424,6 +87576,10 @@ exports.foldersTreeQuery = foldersTreeQuery;
|
|
|
87424
87576
|
exports.forgetPassword = forgetPassword;
|
|
87425
87577
|
exports.forgetPasswordOptions = forgetPasswordOptions;
|
|
87426
87578
|
exports.getErrorHandler = getErrorHandler;
|
|
87579
|
+
exports.getUserContext = getUserContext;
|
|
87580
|
+
exports.getUserToken = getUserToken;
|
|
87581
|
+
exports.handleAuth = handleAuth;
|
|
87582
|
+
exports.handleHandler = handleHandler;
|
|
87427
87583
|
exports.inviteUser = inviteUser;
|
|
87428
87584
|
exports.inviteUserOptions = inviteUserOptions;
|
|
87429
87585
|
exports.login = login;
|
|
@@ -87432,6 +87588,7 @@ exports.menuConfigurationQuery = menuConfigurationQuery;
|
|
|
87432
87588
|
exports.portalThemeConfig = portalThemeConfig;
|
|
87433
87589
|
exports.querySectionThumb = querySectionThumb;
|
|
87434
87590
|
exports.queryUsage = queryUsage;
|
|
87591
|
+
exports.redirectToLogin = redirectToLogin;
|
|
87435
87592
|
exports.registeUsage = registeUsage;
|
|
87436
87593
|
exports.register = register;
|
|
87437
87594
|
exports.registerOptions = registerOptions;
|