@ninetailed/experience.js-plugin-preview 6.4.1 → 7.1.0-beta.1

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.
Files changed (3) hide show
  1. package/index.cjs +14 -2923
  2. package/index.js +0 -2909
  3. package/package.json +5 -5
package/index.cjs CHANGED
@@ -6,2932 +6,23 @@ var experience_jsShared = require('@ninetailed/experience.js-shared');
6
6
  var experience_js = require('@ninetailed/experience.js');
7
7
 
8
8
  function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n["default"] = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
27
-
28
- var check = function (it) {
29
- return it && it.Math == Math && it;
30
- };
31
-
32
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
33
- var global$j =
34
- // eslint-disable-next-line es/no-global-this -- safe
35
- check(typeof globalThis == 'object' && globalThis) ||
36
- check(typeof window == 'object' && window) ||
37
- // eslint-disable-next-line no-restricted-globals -- safe
38
- check(typeof self == 'object' && self) ||
39
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
40
- // eslint-disable-next-line no-new-func -- fallback
41
- (function () { return this; })() || Function('return this')();
42
-
43
- var objectGetOwnPropertyDescriptor = {};
44
-
45
- var fails$f = function (exec) {
46
- try {
47
- return !!exec();
48
- } catch (error) {
49
- return true;
50
- }
51
- };
52
-
53
- var fails$e = fails$f;
54
-
55
- // Detect IE8's incomplete defineProperty implementation
56
- var descriptors = !fails$e(function () {
57
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
58
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
59
- });
60
-
61
- var fails$d = fails$f;
62
-
63
- var functionBindNative = !fails$d(function () {
64
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
65
- var test = (function () { /* empty */ }).bind();
66
- // eslint-disable-next-line no-prototype-builtins -- safe
67
- return typeof test != 'function' || test.hasOwnProperty('prototype');
68
- });
69
-
70
- var NATIVE_BIND$3 = functionBindNative;
71
-
72
- var call$e = Function.prototype.call;
73
-
74
- var functionCall = NATIVE_BIND$3 ? call$e.bind(call$e) : function () {
75
- return call$e.apply(call$e, arguments);
76
- };
77
-
78
- var objectPropertyIsEnumerable = {};
79
-
80
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
81
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
82
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
83
-
84
- // Nashorn ~ JDK8 bug
85
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
86
-
87
- // `Object.prototype.propertyIsEnumerable` method implementation
88
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
89
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
90
- var descriptor = getOwnPropertyDescriptor$2(this, V);
91
- return !!descriptor && descriptor.enumerable;
92
- } : $propertyIsEnumerable;
93
-
94
- var createPropertyDescriptor$3 = function (bitmap, value) {
95
- return {
96
- enumerable: !(bitmap & 1),
97
- configurable: !(bitmap & 2),
98
- writable: !(bitmap & 4),
99
- value: value
100
- };
101
- };
102
-
103
- var NATIVE_BIND$2 = functionBindNative;
104
-
105
- var FunctionPrototype$2 = Function.prototype;
106
- var call$d = FunctionPrototype$2.call;
107
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$d, call$d);
108
-
109
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
110
- return function () {
111
- return call$d.apply(fn, arguments);
112
- };
113
- };
114
-
115
- var uncurryThis$e = functionUncurryThis;
116
-
117
- var toString$3 = uncurryThis$e({}.toString);
118
- var stringSlice = uncurryThis$e(''.slice);
119
-
120
- var classofRaw$2 = function (it) {
121
- return stringSlice(toString$3(it), 8, -1);
122
- };
123
-
124
- var uncurryThis$d = functionUncurryThis;
125
- var fails$c = fails$f;
126
- var classof$6 = classofRaw$2;
127
-
128
- var $Object$4 = Object;
129
- var split = uncurryThis$d(''.split);
130
-
131
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
132
- var indexedObject = fails$c(function () {
133
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
134
- // eslint-disable-next-line no-prototype-builtins -- safe
135
- return !$Object$4('z').propertyIsEnumerable(0);
136
- }) ? function (it) {
137
- return classof$6(it) == 'String' ? split(it, '') : $Object$4(it);
138
- } : $Object$4;
139
-
140
- // we can't use just `it == null` since of `document.all` special case
141
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
142
- var isNullOrUndefined$4 = function (it) {
143
- return it === null || it === undefined;
144
- };
145
-
146
- var isNullOrUndefined$3 = isNullOrUndefined$4;
147
-
148
- var $TypeError$e = TypeError;
149
-
150
- // `RequireObjectCoercible` abstract operation
151
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
152
- var requireObjectCoercible$3 = function (it) {
153
- if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
154
- return it;
155
- };
156
-
157
- // toObject with fallback for non-array-like ES3 strings
158
- var IndexedObject$2 = indexedObject;
159
- var requireObjectCoercible$2 = requireObjectCoercible$3;
160
-
161
- var toIndexedObject$5 = function (it) {
162
- return IndexedObject$2(requireObjectCoercible$2(it));
163
- };
164
-
165
- var documentAll$2 = typeof document == 'object' && document.all;
166
-
167
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
168
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
169
-
170
- var documentAll_1 = {
171
- all: documentAll$2,
172
- IS_HTMLDDA: IS_HTMLDDA
173
- };
174
-
175
- var $documentAll$1 = documentAll_1;
176
-
177
- var documentAll$1 = $documentAll$1.all;
178
-
179
- // `IsCallable` abstract operation
180
- // https://tc39.es/ecma262/#sec-iscallable
181
- var isCallable$k = $documentAll$1.IS_HTMLDDA ? function (argument) {
182
- return typeof argument == 'function' || argument === documentAll$1;
183
- } : function (argument) {
184
- return typeof argument == 'function';
185
- };
186
-
187
- var isCallable$j = isCallable$k;
188
- var $documentAll = documentAll_1;
189
-
190
- var documentAll = $documentAll.all;
191
-
192
- var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
193
- return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll;
194
- } : function (it) {
195
- return typeof it == 'object' ? it !== null : isCallable$j(it);
196
- };
197
-
198
- var global$i = global$j;
199
- var isCallable$i = isCallable$k;
200
-
201
- var aFunction = function (argument) {
202
- return isCallable$i(argument) ? argument : undefined;
203
- };
204
-
205
- var getBuiltIn$8 = function (namespace, method) {
206
- return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
207
- };
208
-
209
- var uncurryThis$c = functionUncurryThis;
210
-
211
- var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
212
-
213
- var getBuiltIn$7 = getBuiltIn$8;
214
-
215
- var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
216
-
217
- var global$h = global$j;
218
- var userAgent$3 = engineUserAgent;
219
-
220
- var process$3 = global$h.process;
221
- var Deno$1 = global$h.Deno;
222
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
223
- var v8 = versions && versions.v8;
224
- var match, version;
225
-
226
- if (v8) {
227
- match = v8.split('.');
228
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
229
- // but their correct versions are not interesting for us
230
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
231
- }
232
-
233
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
234
- // so check `userAgent` even if `.v8` exists, but 0
235
- if (!version && userAgent$3) {
236
- match = userAgent$3.match(/Edge\/(\d+)/);
237
- if (!match || match[1] >= 74) {
238
- match = userAgent$3.match(/Chrome\/(\d+)/);
239
- if (match) version = +match[1];
240
- }
241
- }
242
-
243
- var engineV8Version = version;
244
-
245
- /* eslint-disable es/no-symbol -- required for testing */
246
-
247
- var V8_VERSION$1 = engineV8Version;
248
- var fails$b = fails$f;
249
-
250
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
251
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
252
- var symbol = Symbol();
253
- // Chrome 38 Symbol has incorrect toString conversion
254
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
255
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
256
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
257
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
258
- });
259
-
260
- /* eslint-disable es/no-symbol -- required for testing */
261
-
262
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
263
-
264
- var useSymbolAsUid = NATIVE_SYMBOL$1
265
- && !Symbol.sham
266
- && typeof Symbol.iterator == 'symbol';
267
-
268
- var getBuiltIn$6 = getBuiltIn$8;
269
- var isCallable$h = isCallable$k;
270
- var isPrototypeOf$2 = objectIsPrototypeOf;
271
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
272
-
273
- var $Object$3 = Object;
274
-
275
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
276
- return typeof it == 'symbol';
277
- } : function (it) {
278
- var $Symbol = getBuiltIn$6('Symbol');
279
- return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
280
- };
281
-
282
- var $String$3 = String;
283
-
284
- var tryToString$4 = function (argument) {
285
- try {
286
- return $String$3(argument);
287
- } catch (error) {
288
- return 'Object';
289
- }
290
- };
291
-
292
- var isCallable$g = isCallable$k;
293
- var tryToString$3 = tryToString$4;
294
-
295
- var $TypeError$d = TypeError;
296
-
297
- // `Assert: IsCallable(argument) is true`
298
- var aCallable$8 = function (argument) {
299
- if (isCallable$g(argument)) return argument;
300
- throw $TypeError$d(tryToString$3(argument) + ' is not a function');
301
- };
302
-
303
- var aCallable$7 = aCallable$8;
304
- var isNullOrUndefined$2 = isNullOrUndefined$4;
305
-
306
- // `GetMethod` abstract operation
307
- // https://tc39.es/ecma262/#sec-getmethod
308
- var getMethod$3 = function (V, P) {
309
- var func = V[P];
310
- return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
311
- };
312
-
313
- var call$c = functionCall;
314
- var isCallable$f = isCallable$k;
315
- var isObject$8 = isObject$9;
316
-
317
- var $TypeError$c = TypeError;
318
-
319
- // `OrdinaryToPrimitive` abstract operation
320
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
321
- var ordinaryToPrimitive$1 = function (input, pref) {
322
- var fn, val;
323
- if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
324
- if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$c(fn, input))) return val;
325
- if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
326
- throw $TypeError$c("Can't convert object to primitive value");
327
- };
328
-
329
- var shared$3 = {exports: {}};
330
-
331
- var global$g = global$j;
332
-
333
- // eslint-disable-next-line es/no-object-defineproperty -- safe
334
- var defineProperty$5 = Object.defineProperty;
335
-
336
- var defineGlobalProperty$3 = function (key, value) {
337
- try {
338
- defineProperty$5(global$g, key, { value: value, configurable: true, writable: true });
339
- } catch (error) {
340
- global$g[key] = value;
341
- } return value;
342
- };
343
-
344
- var global$f = global$j;
345
- var defineGlobalProperty$2 = defineGlobalProperty$3;
346
-
347
- var SHARED = '__core-js_shared__';
348
- var store$3 = global$f[SHARED] || defineGlobalProperty$2(SHARED, {});
349
-
350
- var sharedStore = store$3;
351
-
352
- var store$2 = sharedStore;
353
-
354
- (shared$3.exports = function (key, value) {
355
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
356
- })('versions', []).push({
357
- version: '3.26.1',
358
- mode: 'global',
359
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
360
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
361
- source: 'https://github.com/zloirock/core-js'
362
- });
363
-
364
- var requireObjectCoercible$1 = requireObjectCoercible$3;
365
-
366
- var $Object$2 = Object;
367
-
368
- // `ToObject` abstract operation
369
- // https://tc39.es/ecma262/#sec-toobject
370
- var toObject$4 = function (argument) {
371
- return $Object$2(requireObjectCoercible$1(argument));
372
- };
373
-
374
- var uncurryThis$b = functionUncurryThis;
375
- var toObject$3 = toObject$4;
376
-
377
- var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
378
-
379
- // `HasOwnProperty` abstract operation
380
- // https://tc39.es/ecma262/#sec-hasownproperty
381
- // eslint-disable-next-line es/no-object-hasown -- safe
382
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
383
- return hasOwnProperty(toObject$3(it), key);
384
- };
385
-
386
- var uncurryThis$a = functionUncurryThis;
387
-
388
- var id = 0;
389
- var postfix = Math.random();
390
- var toString$2 = uncurryThis$a(1.0.toString);
391
-
392
- var uid$2 = function (key) {
393
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
394
- };
395
-
396
- var global$e = global$j;
397
- var shared$2 = shared$3.exports;
398
- var hasOwn$9 = hasOwnProperty_1;
399
- var uid$1 = uid$2;
400
- var NATIVE_SYMBOL = symbolConstructorDetection;
401
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
402
-
403
- var WellKnownSymbolsStore = shared$2('wks');
404
- var Symbol$1 = global$e.Symbol;
405
- var symbolFor = Symbol$1 && Symbol$1['for'];
406
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
407
-
408
- var wellKnownSymbol$g = function (name) {
409
- if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
410
- var description = 'Symbol.' + name;
411
- if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
412
- WellKnownSymbolsStore[name] = Symbol$1[name];
413
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
414
- WellKnownSymbolsStore[name] = symbolFor(description);
415
- } else {
416
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
417
- }
418
- } return WellKnownSymbolsStore[name];
419
- };
420
-
421
- var call$b = functionCall;
422
- var isObject$7 = isObject$9;
423
- var isSymbol$1 = isSymbol$2;
424
- var getMethod$2 = getMethod$3;
425
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
426
- var wellKnownSymbol$f = wellKnownSymbol$g;
427
-
428
- var $TypeError$b = TypeError;
429
- var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
430
-
431
- // `ToPrimitive` abstract operation
432
- // https://tc39.es/ecma262/#sec-toprimitive
433
- var toPrimitive$1 = function (input, pref) {
434
- if (!isObject$7(input) || isSymbol$1(input)) return input;
435
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
436
- var result;
437
- if (exoticToPrim) {
438
- if (pref === undefined) pref = 'default';
439
- result = call$b(exoticToPrim, input, pref);
440
- if (!isObject$7(result) || isSymbol$1(result)) return result;
441
- throw $TypeError$b("Can't convert object to primitive value");
442
- }
443
- if (pref === undefined) pref = 'number';
444
- return ordinaryToPrimitive(input, pref);
445
- };
446
-
447
- var toPrimitive = toPrimitive$1;
448
- var isSymbol = isSymbol$2;
449
-
450
- // `ToPropertyKey` abstract operation
451
- // https://tc39.es/ecma262/#sec-topropertykey
452
- var toPropertyKey$2 = function (argument) {
453
- var key = toPrimitive(argument, 'string');
454
- return isSymbol(key) ? key : key + '';
455
- };
456
-
457
- var global$d = global$j;
458
- var isObject$6 = isObject$9;
459
-
460
- var document$3 = global$d.document;
461
- // typeof document.createElement is 'object' in old IE
462
- var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
463
-
464
- var documentCreateElement$2 = function (it) {
465
- return EXISTS$1 ? document$3.createElement(it) : {};
466
- };
467
-
468
- var DESCRIPTORS$a = descriptors;
469
- var fails$a = fails$f;
470
- var createElement$1 = documentCreateElement$2;
471
-
472
- // Thanks to IE8 for its funny defineProperty
473
- var ie8DomDefine = !DESCRIPTORS$a && !fails$a(function () {
474
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
475
- return Object.defineProperty(createElement$1('div'), 'a', {
476
- get: function () { return 7; }
477
- }).a != 7;
478
- });
479
-
480
- var DESCRIPTORS$9 = descriptors;
481
- var call$a = functionCall;
482
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
483
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
484
- var toIndexedObject$4 = toIndexedObject$5;
485
- var toPropertyKey$1 = toPropertyKey$2;
486
- var hasOwn$8 = hasOwnProperty_1;
487
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
488
-
489
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
490
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
491
-
492
- // `Object.getOwnPropertyDescriptor` method
493
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
494
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
495
- O = toIndexedObject$4(O);
496
- P = toPropertyKey$1(P);
497
- if (IE8_DOM_DEFINE$1) try {
498
- return $getOwnPropertyDescriptor$1(O, P);
499
- } catch (error) { /* empty */ }
500
- if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
501
- };
502
-
503
- var objectDefineProperty = {};
504
-
505
- var DESCRIPTORS$8 = descriptors;
506
- var fails$9 = fails$f;
507
-
508
- // V8 ~ Chrome 36-
509
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
510
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$9(function () {
511
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
512
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
513
- value: 42,
514
- writable: false
515
- }).prototype != 42;
516
- });
517
-
518
- var isObject$5 = isObject$9;
519
-
520
- var $String$2 = String;
521
- var $TypeError$a = TypeError;
522
-
523
- // `Assert: Type(argument) is Object`
524
- var anObject$a = function (argument) {
525
- if (isObject$5(argument)) return argument;
526
- throw $TypeError$a($String$2(argument) + ' is not an object');
527
- };
528
-
529
- var DESCRIPTORS$7 = descriptors;
530
- var IE8_DOM_DEFINE = ie8DomDefine;
531
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
532
- var anObject$9 = anObject$a;
533
- var toPropertyKey = toPropertyKey$2;
534
-
535
- var $TypeError$9 = TypeError;
536
- // eslint-disable-next-line es/no-object-defineproperty -- safe
537
- var $defineProperty = Object.defineProperty;
538
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
539
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
540
- var ENUMERABLE = 'enumerable';
541
- var CONFIGURABLE$1 = 'configurable';
542
- var WRITABLE = 'writable';
543
-
544
- // `Object.defineProperty` method
545
- // https://tc39.es/ecma262/#sec-object.defineproperty
546
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
547
- anObject$9(O);
548
- P = toPropertyKey(P);
549
- anObject$9(Attributes);
550
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
551
- var current = $getOwnPropertyDescriptor(O, P);
552
- if (current && current[WRITABLE]) {
553
- O[P] = Attributes.value;
554
- Attributes = {
555
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
556
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
557
- writable: false
558
- };
559
- }
560
- } return $defineProperty(O, P, Attributes);
561
- } : $defineProperty : function defineProperty(O, P, Attributes) {
562
- anObject$9(O);
563
- P = toPropertyKey(P);
564
- anObject$9(Attributes);
565
- if (IE8_DOM_DEFINE) try {
566
- return $defineProperty(O, P, Attributes);
567
- } catch (error) { /* empty */ }
568
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported');
569
- if ('value' in Attributes) O[P] = Attributes.value;
570
- return O;
571
- };
572
-
573
- var DESCRIPTORS$6 = descriptors;
574
- var definePropertyModule$4 = objectDefineProperty;
575
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
576
-
577
- var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
578
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
579
- } : function (object, key, value) {
580
- object[key] = value;
581
- return object;
582
- };
583
-
584
- var makeBuiltIn$2 = {exports: {}};
585
-
586
- var DESCRIPTORS$5 = descriptors;
587
- var hasOwn$7 = hasOwnProperty_1;
588
-
589
- var FunctionPrototype$1 = Function.prototype;
590
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
591
- var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
592
-
593
- var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
594
- // additional protection from minified / mangled / dropped function names
595
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
596
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
597
-
598
- var functionName = {
599
- EXISTS: EXISTS,
600
- PROPER: PROPER,
601
- CONFIGURABLE: CONFIGURABLE
602
- };
603
-
604
- var uncurryThis$9 = functionUncurryThis;
605
- var isCallable$e = isCallable$k;
606
- var store$1 = sharedStore;
607
-
608
- var functionToString = uncurryThis$9(Function.toString);
609
-
610
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
611
- if (!isCallable$e(store$1.inspectSource)) {
612
- store$1.inspectSource = function (it) {
613
- return functionToString(it);
614
- };
615
- }
616
-
617
- var inspectSource$3 = store$1.inspectSource;
618
-
619
- var global$c = global$j;
620
- var isCallable$d = isCallable$k;
621
-
622
- var WeakMap$1 = global$c.WeakMap;
623
-
624
- var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
625
-
626
- var shared$1 = shared$3.exports;
627
- var uid = uid$2;
628
-
629
- var keys = shared$1('keys');
630
-
631
- var sharedKey$3 = function (key) {
632
- return keys[key] || (keys[key] = uid(key));
633
- };
634
-
635
- var hiddenKeys$4 = {};
636
-
637
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
638
- var global$b = global$j;
639
- var isObject$4 = isObject$9;
640
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
641
- var hasOwn$6 = hasOwnProperty_1;
642
- var shared = sharedStore;
643
- var sharedKey$2 = sharedKey$3;
644
- var hiddenKeys$3 = hiddenKeys$4;
645
-
646
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
647
- var TypeError$2 = global$b.TypeError;
648
- var WeakMap = global$b.WeakMap;
649
- var set$1, get, has;
650
-
651
- var enforce = function (it) {
652
- return has(it) ? get(it) : set$1(it, {});
653
- };
654
-
655
- var getterFor = function (TYPE) {
656
- return function (it) {
657
- var state;
658
- if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
659
- throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
660
- } return state;
661
- };
662
- };
663
-
664
- if (NATIVE_WEAK_MAP || shared.state) {
665
- var store = shared.state || (shared.state = new WeakMap());
666
- /* eslint-disable no-self-assign -- prototype methods protection */
667
- store.get = store.get;
668
- store.has = store.has;
669
- store.set = store.set;
670
- /* eslint-enable no-self-assign -- prototype methods protection */
671
- set$1 = function (it, metadata) {
672
- if (store.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
673
- metadata.facade = it;
674
- store.set(it, metadata);
675
- return metadata;
676
- };
677
- get = function (it) {
678
- return store.get(it) || {};
679
- };
680
- has = function (it) {
681
- return store.has(it);
682
- };
683
- } else {
684
- var STATE = sharedKey$2('state');
685
- hiddenKeys$3[STATE] = true;
686
- set$1 = function (it, metadata) {
687
- if (hasOwn$6(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
688
- metadata.facade = it;
689
- createNonEnumerableProperty$3(it, STATE, metadata);
690
- return metadata;
691
- };
692
- get = function (it) {
693
- return hasOwn$6(it, STATE) ? it[STATE] : {};
694
- };
695
- has = function (it) {
696
- return hasOwn$6(it, STATE);
697
- };
698
- }
699
-
700
- var internalState = {
701
- set: set$1,
702
- get: get,
703
- has: has,
704
- enforce: enforce,
705
- getterFor: getterFor
706
- };
707
-
708
- var fails$8 = fails$f;
709
- var isCallable$c = isCallable$k;
710
- var hasOwn$5 = hasOwnProperty_1;
711
- var DESCRIPTORS$4 = descriptors;
712
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
713
- var inspectSource$2 = inspectSource$3;
714
- var InternalStateModule$2 = internalState;
715
-
716
- var enforceInternalState = InternalStateModule$2.enforce;
717
- var getInternalState$1 = InternalStateModule$2.get;
718
- // eslint-disable-next-line es/no-object-defineproperty -- safe
719
- var defineProperty$4 = Object.defineProperty;
720
-
721
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$8(function () {
722
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
723
- });
724
-
725
- var TEMPLATE = String(String).split('String');
726
-
727
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
728
- if (String(name).slice(0, 7) === 'Symbol(') {
729
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
730
- }
731
- if (options && options.getter) name = 'get ' + name;
732
- if (options && options.setter) name = 'set ' + name;
733
- if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
734
- if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
735
- else value.name = name;
736
- }
737
- if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
738
- defineProperty$4(value, 'length', { value: options.arity });
739
- }
740
- try {
741
- if (options && hasOwn$5(options, 'constructor') && options.constructor) {
742
- if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
743
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
744
- } else if (value.prototype) value.prototype = undefined;
745
- } catch (error) { /* empty */ }
746
- var state = enforceInternalState(value);
747
- if (!hasOwn$5(state, 'source')) {
748
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
749
- } return value;
750
- };
751
-
752
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
753
- // eslint-disable-next-line no-extend-native -- required
754
- Function.prototype.toString = makeBuiltIn$1(function toString() {
755
- return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
756
- }, 'toString');
757
-
758
- var isCallable$b = isCallable$k;
759
- var definePropertyModule$3 = objectDefineProperty;
760
- var makeBuiltIn = makeBuiltIn$2.exports;
761
- var defineGlobalProperty$1 = defineGlobalProperty$3;
762
-
763
- var defineBuiltIn$5 = function (O, key, value, options) {
764
- if (!options) options = {};
765
- var simple = options.enumerable;
766
- var name = options.name !== undefined ? options.name : key;
767
- if (isCallable$b(value)) makeBuiltIn(value, name, options);
768
- if (options.global) {
769
- if (simple) O[key] = value;
770
- else defineGlobalProperty$1(key, value);
771
- } else {
772
- try {
773
- if (!options.unsafe) delete O[key];
774
- else if (O[key]) simple = true;
775
- } catch (error) { /* empty */ }
776
- if (simple) O[key] = value;
777
- else definePropertyModule$3.f(O, key, {
778
- value: value,
779
- enumerable: false,
780
- configurable: !options.nonConfigurable,
781
- writable: !options.nonWritable
782
- });
783
- } return O;
784
- };
785
-
786
- var objectGetOwnPropertyNames = {};
787
-
788
- var ceil = Math.ceil;
789
- var floor = Math.floor;
790
-
791
- // `Math.trunc` method
792
- // https://tc39.es/ecma262/#sec-math.trunc
793
- // eslint-disable-next-line es/no-math-trunc -- safe
794
- var mathTrunc = Math.trunc || function trunc(x) {
795
- var n = +x;
796
- return (n > 0 ? floor : ceil)(n);
797
- };
798
-
799
- var trunc = mathTrunc;
800
-
801
- // `ToIntegerOrInfinity` abstract operation
802
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
803
- var toIntegerOrInfinity$2 = function (argument) {
804
- var number = +argument;
805
- // eslint-disable-next-line no-self-compare -- NaN check
806
- return number !== number || number === 0 ? 0 : trunc(number);
807
- };
808
-
809
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
810
-
811
- var max = Math.max;
812
- var min$1 = Math.min;
813
-
814
- // Helper for a popular repeating case of the spec:
815
- // Let integer be ? ToInteger(index).
816
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
817
- var toAbsoluteIndex$1 = function (index, length) {
818
- var integer = toIntegerOrInfinity$1(index);
819
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
820
- };
821
-
822
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
823
-
824
- var min = Math.min;
825
-
826
- // `ToLength` abstract operation
827
- // https://tc39.es/ecma262/#sec-tolength
828
- var toLength$1 = function (argument) {
829
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
830
- };
831
-
832
- var toLength = toLength$1;
833
-
834
- // `LengthOfArrayLike` abstract operation
835
- // https://tc39.es/ecma262/#sec-lengthofarraylike
836
- var lengthOfArrayLike$3 = function (obj) {
837
- return toLength(obj.length);
838
- };
839
-
840
- var toIndexedObject$3 = toIndexedObject$5;
841
- var toAbsoluteIndex = toAbsoluteIndex$1;
842
- var lengthOfArrayLike$2 = lengthOfArrayLike$3;
843
-
844
- // `Array.prototype.{ indexOf, includes }` methods implementation
845
- var createMethod$1 = function (IS_INCLUDES) {
846
- return function ($this, el, fromIndex) {
847
- var O = toIndexedObject$3($this);
848
- var length = lengthOfArrayLike$2(O);
849
- var index = toAbsoluteIndex(fromIndex, length);
850
- var value;
851
- // Array#includes uses SameValueZero equality algorithm
852
- // eslint-disable-next-line no-self-compare -- NaN check
853
- if (IS_INCLUDES && el != el) while (length > index) {
854
- value = O[index++];
855
- // eslint-disable-next-line no-self-compare -- NaN check
856
- if (value != value) return true;
857
- // Array#indexOf ignores holes, Array#includes - not
858
- } else for (;length > index; index++) {
859
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
860
- } return !IS_INCLUDES && -1;
861
- };
862
- };
863
-
864
- var arrayIncludes = {
865
- // `Array.prototype.includes` method
866
- // https://tc39.es/ecma262/#sec-array.prototype.includes
867
- includes: createMethod$1(true),
868
- // `Array.prototype.indexOf` method
869
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
870
- indexOf: createMethod$1(false)
871
- };
872
-
873
- var uncurryThis$8 = functionUncurryThis;
874
- var hasOwn$4 = hasOwnProperty_1;
875
- var toIndexedObject$2 = toIndexedObject$5;
876
- var indexOf = arrayIncludes.indexOf;
877
- var hiddenKeys$2 = hiddenKeys$4;
878
-
879
- var push = uncurryThis$8([].push);
880
-
881
- var objectKeysInternal = function (object, names) {
882
- var O = toIndexedObject$2(object);
883
- var i = 0;
884
- var result = [];
885
- var key;
886
- for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
887
- // Don't enum bug & hidden keys
888
- while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
889
- ~indexOf(result, key) || push(result, key);
890
- }
891
- return result;
892
- };
893
-
894
- // IE8- don't enum bug keys
895
- var enumBugKeys$3 = [
896
- 'constructor',
897
- 'hasOwnProperty',
898
- 'isPrototypeOf',
899
- 'propertyIsEnumerable',
900
- 'toLocaleString',
901
- 'toString',
902
- 'valueOf'
903
- ];
904
-
905
- var internalObjectKeys$1 = objectKeysInternal;
906
- var enumBugKeys$2 = enumBugKeys$3;
907
-
908
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
909
-
910
- // `Object.getOwnPropertyNames` method
911
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
912
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
913
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
914
- return internalObjectKeys$1(O, hiddenKeys$1);
915
- };
916
-
917
- var objectGetOwnPropertySymbols = {};
918
-
919
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
920
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
921
-
922
- var getBuiltIn$5 = getBuiltIn$8;
923
- var uncurryThis$7 = functionUncurryThis;
924
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
925
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
926
- var anObject$8 = anObject$a;
927
-
928
- var concat$1 = uncurryThis$7([].concat);
929
-
930
- // all object keys, includes non-enumerable and symbols
931
- var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
932
- var keys = getOwnPropertyNamesModule.f(anObject$8(it));
933
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
934
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
935
- };
936
-
937
- var hasOwn$3 = hasOwnProperty_1;
938
- var ownKeys = ownKeys$1;
939
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
940
- var definePropertyModule$2 = objectDefineProperty;
941
-
942
- var copyConstructorProperties$1 = function (target, source, exceptions) {
943
- var keys = ownKeys(source);
944
- var defineProperty = definePropertyModule$2.f;
945
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
946
- for (var i = 0; i < keys.length; i++) {
947
- var key = keys[i];
948
- if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
949
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
950
- }
951
- }
952
- };
953
-
954
- var fails$7 = fails$f;
955
- var isCallable$a = isCallable$k;
956
-
957
- var replacement = /#|\.prototype\./;
958
-
959
- var isForced$2 = function (feature, detection) {
960
- var value = data[normalize(feature)];
961
- return value == POLYFILL ? true
962
- : value == NATIVE ? false
963
- : isCallable$a(detection) ? fails$7(detection)
964
- : !!detection;
965
- };
966
-
967
- var normalize = isForced$2.normalize = function (string) {
968
- return String(string).replace(replacement, '.').toLowerCase();
969
- };
970
-
971
- var data = isForced$2.data = {};
972
- var NATIVE = isForced$2.NATIVE = 'N';
973
- var POLYFILL = isForced$2.POLYFILL = 'P';
974
-
975
- var isForced_1 = isForced$2;
976
-
977
- var global$a = global$j;
978
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
979
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
980
- var defineBuiltIn$4 = defineBuiltIn$5;
981
- var defineGlobalProperty = defineGlobalProperty$3;
982
- var copyConstructorProperties = copyConstructorProperties$1;
983
- var isForced$1 = isForced_1;
984
-
985
- /*
986
- options.target - name of the target object
987
- options.global - target is the global object
988
- options.stat - export as static methods of target
989
- options.proto - export as prototype methods of target
990
- options.real - real prototype method for the `pure` version
991
- options.forced - export even if the native feature is available
992
- options.bind - bind methods to the target, required for the `pure` version
993
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
994
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
995
- options.sham - add a flag to not completely full polyfills
996
- options.enumerable - export as enumerable property
997
- options.dontCallGetSet - prevent calling a getter on target
998
- options.name - the .name of the function if it does not match the key
999
- */
1000
- var _export = function (options, source) {
1001
- var TARGET = options.target;
1002
- var GLOBAL = options.global;
1003
- var STATIC = options.stat;
1004
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1005
- if (GLOBAL) {
1006
- target = global$a;
1007
- } else if (STATIC) {
1008
- target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
1009
- } else {
1010
- target = (global$a[TARGET] || {}).prototype;
1011
- }
1012
- if (target) for (key in source) {
1013
- sourceProperty = source[key];
1014
- if (options.dontCallGetSet) {
1015
- descriptor = getOwnPropertyDescriptor$1(target, key);
1016
- targetProperty = descriptor && descriptor.value;
1017
- } else targetProperty = target[key];
1018
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1019
- // contained in target
1020
- if (!FORCED && targetProperty !== undefined) {
1021
- if (typeof sourceProperty == typeof targetProperty) continue;
1022
- copyConstructorProperties(sourceProperty, targetProperty);
1023
- }
1024
- // add a flag to not completely full polyfills
1025
- if (options.sham || (targetProperty && targetProperty.sham)) {
1026
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1027
- }
1028
- defineBuiltIn$4(target, key, sourceProperty, options);
1029
- }
1030
- };
1031
-
1032
- var classof$5 = classofRaw$2;
1033
- var global$9 = global$j;
1034
-
1035
- var engineIsNode = classof$5(global$9.process) == 'process';
1036
-
1037
- var isCallable$9 = isCallable$k;
1038
-
1039
- var $String$1 = String;
1040
- var $TypeError$8 = TypeError;
1041
-
1042
- var aPossiblePrototype$1 = function (argument) {
1043
- if (typeof argument == 'object' || isCallable$9(argument)) return argument;
1044
- throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype');
1045
- };
1046
-
1047
- /* eslint-disable no-proto -- safe */
1048
-
1049
- var uncurryThis$6 = functionUncurryThis;
1050
- var anObject$7 = anObject$a;
1051
- var aPossiblePrototype = aPossiblePrototype$1;
1052
-
1053
- // `Object.setPrototypeOf` method
1054
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1055
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1056
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1057
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1058
- var CORRECT_SETTER = false;
1059
- var test = {};
1060
- var setter;
1061
- try {
1062
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1063
- setter = uncurryThis$6(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1064
- setter(test, []);
1065
- CORRECT_SETTER = test instanceof Array;
1066
- } catch (error) { /* empty */ }
1067
- return function setPrototypeOf(O, proto) {
1068
- anObject$7(O);
1069
- aPossiblePrototype(proto);
1070
- if (CORRECT_SETTER) setter(O, proto);
1071
- else O.__proto__ = proto;
1072
- return O;
1073
- };
1074
- }() : undefined);
1075
-
1076
- var defineProperty$3 = objectDefineProperty.f;
1077
- var hasOwn$2 = hasOwnProperty_1;
1078
- var wellKnownSymbol$e = wellKnownSymbol$g;
1079
-
1080
- var TO_STRING_TAG$3 = wellKnownSymbol$e('toStringTag');
1081
-
1082
- var setToStringTag$3 = function (target, TAG, STATIC) {
1083
- if (target && !STATIC) target = target.prototype;
1084
- if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
1085
- defineProperty$3(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1086
- }
1087
- };
1088
-
1089
- var getBuiltIn$4 = getBuiltIn$8;
1090
- var definePropertyModule$1 = objectDefineProperty;
1091
- var wellKnownSymbol$d = wellKnownSymbol$g;
1092
- var DESCRIPTORS$3 = descriptors;
1093
-
1094
- var SPECIES$2 = wellKnownSymbol$d('species');
1095
-
1096
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1097
- var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1098
- var defineProperty = definePropertyModule$1.f;
1099
-
1100
- if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$2]) {
1101
- defineProperty(Constructor, SPECIES$2, {
1102
- configurable: true,
1103
- get: function () { return this; }
1104
- });
1105
- }
1106
- };
1107
-
1108
- var isPrototypeOf$1 = objectIsPrototypeOf;
1109
-
1110
- var $TypeError$7 = TypeError;
1111
-
1112
- var anInstance$1 = function (it, Prototype) {
1113
- if (isPrototypeOf$1(Prototype, it)) return it;
1114
- throw $TypeError$7('Incorrect invocation');
1115
- };
1116
-
1117
- var wellKnownSymbol$c = wellKnownSymbol$g;
1118
-
1119
- var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1120
- var test = {};
1121
-
1122
- test[TO_STRING_TAG$2] = 'z';
1123
-
1124
- var toStringTagSupport = String(test) === '[object z]';
1125
-
1126
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1127
- var isCallable$8 = isCallable$k;
1128
- var classofRaw$1 = classofRaw$2;
1129
- var wellKnownSymbol$b = wellKnownSymbol$g;
1130
-
1131
- var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag');
1132
- var $Object$1 = Object;
1133
-
1134
- // ES3 wrong here
1135
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1136
-
1137
- // fallback for IE11 Script Access Denied error
1138
- var tryGet = function (it, key) {
1139
- try {
1140
- return it[key];
1141
- } catch (error) { /* empty */ }
1142
- };
1143
-
1144
- // getting tag from ES6+ `Object.prototype.toString`
1145
- var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1146
- var O, tag, result;
1147
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1148
- // @@toStringTag case
1149
- : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
1150
- // builtinTag case
1151
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1152
- // ES3 arguments fallback
1153
- : (result = classofRaw$1(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
1154
- };
1155
-
1156
- var uncurryThis$5 = functionUncurryThis;
1157
- var fails$6 = fails$f;
1158
- var isCallable$7 = isCallable$k;
1159
- var classof$3 = classof$4;
1160
- var getBuiltIn$3 = getBuiltIn$8;
1161
- var inspectSource$1 = inspectSource$3;
1162
-
1163
- var noop = function () { /* empty */ };
1164
- var empty = [];
1165
- var construct = getBuiltIn$3('Reflect', 'construct');
1166
- var constructorRegExp = /^\s*(?:class|function)\b/;
1167
- var exec = uncurryThis$5(constructorRegExp.exec);
1168
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1169
-
1170
- var isConstructorModern = function isConstructor(argument) {
1171
- if (!isCallable$7(argument)) return false;
1172
- try {
1173
- construct(noop, empty, argument);
1174
- return true;
1175
- } catch (error) {
1176
- return false;
1177
- }
1178
- };
1179
-
1180
- var isConstructorLegacy = function isConstructor(argument) {
1181
- if (!isCallable$7(argument)) return false;
1182
- switch (classof$3(argument)) {
1183
- case 'AsyncFunction':
1184
- case 'GeneratorFunction':
1185
- case 'AsyncGeneratorFunction': return false;
1186
- }
1187
- try {
1188
- // we can't check .prototype since constructors produced by .bind haven't it
1189
- // `Function#toString` throws on some built-it function in some legacy engines
1190
- // (for example, `DOMQuad` and similar in FF41-)
1191
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1192
- } catch (error) {
1193
- return true;
1194
- }
1195
- };
1196
-
1197
- isConstructorLegacy.sham = true;
1198
-
1199
- // `IsConstructor` abstract operation
1200
- // https://tc39.es/ecma262/#sec-isconstructor
1201
- var isConstructor$1 = !construct || fails$6(function () {
1202
- var called;
1203
- return isConstructorModern(isConstructorModern.call)
1204
- || !isConstructorModern(Object)
1205
- || !isConstructorModern(function () { called = true; })
1206
- || called;
1207
- }) ? isConstructorLegacy : isConstructorModern;
1208
-
1209
- var isConstructor = isConstructor$1;
1210
- var tryToString$2 = tryToString$4;
1211
-
1212
- var $TypeError$6 = TypeError;
1213
-
1214
- // `Assert: IsConstructor(argument) is true`
1215
- var aConstructor$1 = function (argument) {
1216
- if (isConstructor(argument)) return argument;
1217
- throw $TypeError$6(tryToString$2(argument) + ' is not a constructor');
1218
- };
1219
-
1220
- var anObject$6 = anObject$a;
1221
- var aConstructor = aConstructor$1;
1222
- var isNullOrUndefined$1 = isNullOrUndefined$4;
1223
- var wellKnownSymbol$a = wellKnownSymbol$g;
1224
-
1225
- var SPECIES$1 = wellKnownSymbol$a('species');
1226
-
1227
- // `SpeciesConstructor` abstract operation
1228
- // https://tc39.es/ecma262/#sec-speciesconstructor
1229
- var speciesConstructor$1 = function (O, defaultConstructor) {
1230
- var C = anObject$6(O).constructor;
1231
- var S;
1232
- return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1233
- };
1234
-
1235
- var NATIVE_BIND$1 = functionBindNative;
1236
-
1237
- var FunctionPrototype = Function.prototype;
1238
- var apply$1 = FunctionPrototype.apply;
1239
- var call$9 = FunctionPrototype.call;
1240
-
1241
- // eslint-disable-next-line es/no-reflect -- safe
1242
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$9.bind(apply$1) : function () {
1243
- return call$9.apply(apply$1, arguments);
1244
- });
1245
-
1246
- var classofRaw = classofRaw$2;
1247
- var uncurryThis$4 = functionUncurryThis;
1248
-
1249
- var functionUncurryThisClause = function (fn) {
1250
- // Nashorn bug:
1251
- // https://github.com/zloirock/core-js/issues/1128
1252
- // https://github.com/zloirock/core-js/issues/1130
1253
- if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
1254
- };
1255
-
1256
- var uncurryThis$3 = functionUncurryThisClause;
1257
- var aCallable$6 = aCallable$8;
1258
- var NATIVE_BIND = functionBindNative;
1259
-
1260
- var bind$4 = uncurryThis$3(uncurryThis$3.bind);
1261
-
1262
- // optional / simple context binding
1263
- var functionBindContext = function (fn, that) {
1264
- aCallable$6(fn);
1265
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1266
- return fn.apply(that, arguments);
1267
- };
1268
- };
1269
-
1270
- var getBuiltIn$2 = getBuiltIn$8;
1271
-
1272
- var html$2 = getBuiltIn$2('document', 'documentElement');
1273
-
1274
- var uncurryThis$2 = functionUncurryThis;
1275
-
1276
- var arraySlice$1 = uncurryThis$2([].slice);
1277
-
1278
- var $TypeError$5 = TypeError;
1279
-
1280
- var validateArgumentsLength$1 = function (passed, required) {
1281
- if (passed < required) throw $TypeError$5('Not enough arguments');
1282
- return passed;
1283
- };
1284
-
1285
- var userAgent$2 = engineUserAgent;
1286
-
1287
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1288
-
1289
- var global$8 = global$j;
1290
- var apply = functionApply;
1291
- var bind$3 = functionBindContext;
1292
- var isCallable$6 = isCallable$k;
1293
- var hasOwn$1 = hasOwnProperty_1;
1294
- var fails$5 = fails$f;
1295
- var html$1 = html$2;
1296
- var arraySlice = arraySlice$1;
1297
- var createElement = documentCreateElement$2;
1298
- var validateArgumentsLength = validateArgumentsLength$1;
1299
- var IS_IOS$1 = engineIsIos;
1300
- var IS_NODE$4 = engineIsNode;
1301
-
1302
- var set = global$8.setImmediate;
1303
- var clear = global$8.clearImmediate;
1304
- var process$2 = global$8.process;
1305
- var Dispatch = global$8.Dispatch;
1306
- var Function$1 = global$8.Function;
1307
- var MessageChannel = global$8.MessageChannel;
1308
- var String$1 = global$8.String;
1309
- var counter = 0;
1310
- var queue$1 = {};
1311
- var ONREADYSTATECHANGE = 'onreadystatechange';
1312
- var $location, defer, channel, port;
1313
-
1314
- try {
1315
- // Deno throws a ReferenceError on `location` access without `--location` flag
1316
- $location = global$8.location;
1317
- } catch (error) { /* empty */ }
1318
-
1319
- var run = function (id) {
1320
- if (hasOwn$1(queue$1, id)) {
1321
- var fn = queue$1[id];
1322
- delete queue$1[id];
1323
- fn();
1324
- }
1325
- };
1326
-
1327
- var runner = function (id) {
1328
- return function () {
1329
- run(id);
1330
- };
1331
- };
1332
-
1333
- var listener = function (event) {
1334
- run(event.data);
1335
- };
1336
-
1337
- var post = function (id) {
1338
- // old engines have not location.origin
1339
- global$8.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1340
- };
1341
-
1342
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1343
- if (!set || !clear) {
1344
- set = function setImmediate(handler) {
1345
- validateArgumentsLength(arguments.length, 1);
1346
- var fn = isCallable$6(handler) ? handler : Function$1(handler);
1347
- var args = arraySlice(arguments, 1);
1348
- queue$1[++counter] = function () {
1349
- apply(fn, undefined, args);
1350
- };
1351
- defer(counter);
1352
- return counter;
1353
- };
1354
- clear = function clearImmediate(id) {
1355
- delete queue$1[id];
1356
- };
1357
- // Node.js 0.8-
1358
- if (IS_NODE$4) {
1359
- defer = function (id) {
1360
- process$2.nextTick(runner(id));
1361
- };
1362
- // Sphere (JS game engine) Dispatch API
1363
- } else if (Dispatch && Dispatch.now) {
1364
- defer = function (id) {
1365
- Dispatch.now(runner(id));
1366
- };
1367
- // Browsers with MessageChannel, includes WebWorkers
1368
- // except iOS - https://github.com/zloirock/core-js/issues/624
1369
- } else if (MessageChannel && !IS_IOS$1) {
1370
- channel = new MessageChannel();
1371
- port = channel.port2;
1372
- channel.port1.onmessage = listener;
1373
- defer = bind$3(port.postMessage, port);
1374
- // Browsers with postMessage, skip WebWorkers
1375
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1376
- } else if (
1377
- global$8.addEventListener &&
1378
- isCallable$6(global$8.postMessage) &&
1379
- !global$8.importScripts &&
1380
- $location && $location.protocol !== 'file:' &&
1381
- !fails$5(post)
1382
- ) {
1383
- defer = post;
1384
- global$8.addEventListener('message', listener, false);
1385
- // IE8-
1386
- } else if (ONREADYSTATECHANGE in createElement('script')) {
1387
- defer = function (id) {
1388
- html$1.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1389
- html$1.removeChild(this);
1390
- run(id);
1391
- };
1392
- };
1393
- // Rest old browsers
1394
- } else {
1395
- defer = function (id) {
1396
- setTimeout(runner(id), 0);
1397
- };
1398
- }
1399
- }
1400
-
1401
- var task$1 = {
1402
- set: set,
1403
- clear: clear
1404
- };
1405
-
1406
- var userAgent$1 = engineUserAgent;
1407
- var global$7 = global$j;
1408
-
1409
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$7.Pebble !== undefined;
1410
-
1411
- var userAgent = engineUserAgent;
1412
-
1413
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1414
-
1415
- var global$6 = global$j;
1416
- var bind$2 = functionBindContext;
1417
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1418
- var macrotask = task$1.set;
1419
- var IS_IOS = engineIsIos;
1420
- var IS_IOS_PEBBLE = engineIsIosPebble;
1421
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1422
- var IS_NODE$3 = engineIsNode;
1423
-
1424
- var MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;
1425
- var document$2 = global$6.document;
1426
- var process$1 = global$6.process;
1427
- var Promise$1 = global$6.Promise;
1428
- // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1429
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$6, 'queueMicrotask');
1430
- var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1431
-
1432
- var flush, head, last, notify$1, toggle, node, promise, then;
1433
-
1434
- // modern engines have queueMicrotask method
1435
- if (!queueMicrotask) {
1436
- flush = function () {
1437
- var parent, fn;
1438
- if (IS_NODE$3 && (parent = process$1.domain)) parent.exit();
1439
- while (head) {
1440
- fn = head.fn;
1441
- head = head.next;
1442
- try {
1443
- fn();
1444
- } catch (error) {
1445
- if (head) notify$1();
1446
- else last = undefined;
1447
- throw error;
1448
- }
1449
- } last = undefined;
1450
- if (parent) parent.enter();
1451
- };
1452
-
1453
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1454
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1455
- if (!IS_IOS && !IS_NODE$3 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1456
- toggle = true;
1457
- node = document$2.createTextNode('');
1458
- new MutationObserver(flush).observe(node, { characterData: true });
1459
- notify$1 = function () {
1460
- node.data = toggle = !toggle;
1461
- };
1462
- // environments with maybe non-completely correct, but existent Promise
1463
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1464
- // Promise.resolve without an argument throws an error in LG WebOS 2
1465
- promise = Promise$1.resolve(undefined);
1466
- // workaround of WebKit ~ iOS Safari 10.1 bug
1467
- promise.constructor = Promise$1;
1468
- then = bind$2(promise.then, promise);
1469
- notify$1 = function () {
1470
- then(flush);
1471
- };
1472
- // Node.js without promises
1473
- } else if (IS_NODE$3) {
1474
- notify$1 = function () {
1475
- process$1.nextTick(flush);
1476
- };
1477
- // for other environments - macrotask based on:
1478
- // - setImmediate
1479
- // - MessageChannel
1480
- // - window.postMessage
1481
- // - onreadystatechange
1482
- // - setTimeout
1483
- } else {
1484
- // strange IE + webpack dev server bug - use .bind(global)
1485
- macrotask = bind$2(macrotask, global$6);
1486
- notify$1 = function () {
1487
- macrotask(flush);
1488
- };
1489
- }
1490
- }
1491
-
1492
- var microtask$1 = queueMicrotask || function (fn) {
1493
- var task = { fn: fn, next: undefined };
1494
- if (last) last.next = task;
1495
- if (!head) {
1496
- head = task;
1497
- notify$1();
1498
- } last = task;
1499
- };
1500
-
1501
- var global$5 = global$j;
1502
-
1503
- var hostReportErrors$1 = function (a, b) {
1504
- var console = global$5.console;
1505
- if (console && console.error) {
1506
- arguments.length == 1 ? console.error(a) : console.error(a, b);
1507
- }
1508
- };
1509
-
1510
- var perform$3 = function (exec) {
1511
- try {
1512
- return { error: false, value: exec() };
1513
- } catch (error) {
1514
- return { error: true, value: error };
1515
- }
1516
- };
1517
-
1518
- var Queue$1 = function () {
1519
- this.head = null;
1520
- this.tail = null;
1521
- };
1522
-
1523
- Queue$1.prototype = {
1524
- add: function (item) {
1525
- var entry = { item: item, next: null };
1526
- if (this.head) this.tail.next = entry;
1527
- else this.head = entry;
1528
- this.tail = entry;
1529
- },
1530
- get: function () {
1531
- var entry = this.head;
1532
- if (entry) {
1533
- this.head = entry.next;
1534
- if (this.tail === entry) this.tail = null;
1535
- return entry.item;
1536
- }
1537
- }
1538
- };
1539
-
1540
- var queue = Queue$1;
1541
-
1542
- var global$4 = global$j;
1543
-
1544
- var promiseNativeConstructor = global$4.Promise;
1545
-
1546
- /* global Deno -- Deno case */
1547
-
1548
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
1549
-
1550
- var IS_DENO$1 = engineIsDeno;
1551
- var IS_NODE$2 = engineIsNode;
1552
-
1553
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$2
1554
- && typeof window == 'object'
1555
- && typeof document == 'object';
1556
-
1557
- var global$3 = global$j;
1558
- var NativePromiseConstructor$3 = promiseNativeConstructor;
1559
- var isCallable$5 = isCallable$k;
1560
- var isForced = isForced_1;
1561
- var inspectSource = inspectSource$3;
1562
- var wellKnownSymbol$9 = wellKnownSymbol$g;
1563
- var IS_BROWSER = engineIsBrowser;
1564
- var IS_DENO = engineIsDeno;
1565
- var V8_VERSION = engineV8Version;
1566
-
1567
- NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1568
- var SPECIES = wellKnownSymbol$9('species');
1569
- var SUBCLASSING = false;
1570
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(global$3.PromiseRejectionEvent);
1571
-
1572
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1573
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
1574
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
1575
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1576
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1577
- // We can't detect it synchronously, so just check versions
1578
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1579
- // We can't use @@species feature detection in V8 since it causes
1580
- // deoptimization and performance degradation
1581
- // https://github.com/zloirock/core-js/issues/679
1582
- if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
1583
- // Detect correctness of subclassing with @@species support
1584
- var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
1585
- var FakePromise = function (exec) {
1586
- exec(function () { /* empty */ }, function () { /* empty */ });
1587
- };
1588
- var constructor = promise.constructor = {};
1589
- constructor[SPECIES] = FakePromise;
1590
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1591
- if (!SUBCLASSING) return true;
1592
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1593
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
1594
- });
1595
-
1596
- var promiseConstructorDetection = {
1597
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
1598
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
1599
- SUBCLASSING: SUBCLASSING
1600
- };
1601
-
1602
- var newPromiseCapability$2 = {};
1603
-
1604
- var aCallable$5 = aCallable$8;
1605
-
1606
- var $TypeError$4 = TypeError;
1607
-
1608
- var PromiseCapability = function (C) {
1609
- var resolve, reject;
1610
- this.promise = new C(function ($$resolve, $$reject) {
1611
- if (resolve !== undefined || reject !== undefined) throw $TypeError$4('Bad Promise constructor');
1612
- resolve = $$resolve;
1613
- reject = $$reject;
1614
- });
1615
- this.resolve = aCallable$5(resolve);
1616
- this.reject = aCallable$5(reject);
1617
- };
1618
-
1619
- // `NewPromiseCapability` abstract operation
1620
- // https://tc39.es/ecma262/#sec-newpromisecapability
1621
- newPromiseCapability$2.f = function (C) {
1622
- return new PromiseCapability(C);
1623
- };
1624
-
1625
- var $$a = _export;
1626
- var IS_NODE$1 = engineIsNode;
1627
- var global$2 = global$j;
1628
- var call$8 = functionCall;
1629
- var defineBuiltIn$3 = defineBuiltIn$5;
1630
- var setPrototypeOf$1 = objectSetPrototypeOf;
1631
- var setToStringTag$2 = setToStringTag$3;
1632
- var setSpecies = setSpecies$1;
1633
- var aCallable$4 = aCallable$8;
1634
- var isCallable$4 = isCallable$k;
1635
- var isObject$3 = isObject$9;
1636
- var anInstance = anInstance$1;
1637
- var speciesConstructor = speciesConstructor$1;
1638
- var task = task$1.set;
1639
- var microtask = microtask$1;
1640
- var hostReportErrors = hostReportErrors$1;
1641
- var perform$2 = perform$3;
1642
- var Queue = queue;
1643
- var InternalStateModule$1 = internalState;
1644
- var NativePromiseConstructor$2 = promiseNativeConstructor;
1645
- var PromiseConstructorDetection = promiseConstructorDetection;
1646
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
1647
-
1648
- var PROMISE = 'Promise';
1649
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
1650
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
1651
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1652
- var getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);
1653
- var setInternalState$1 = InternalStateModule$1.set;
1654
- var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1655
- var PromiseConstructor = NativePromiseConstructor$2;
1656
- var PromisePrototype = NativePromisePrototype$1;
1657
- var TypeError$1 = global$2.TypeError;
1658
- var document$1 = global$2.document;
1659
- var process = global$2.process;
1660
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
1661
- var newGenericPromiseCapability = newPromiseCapability$1;
1662
-
1663
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
1664
- var UNHANDLED_REJECTION = 'unhandledrejection';
1665
- var REJECTION_HANDLED = 'rejectionhandled';
1666
- var PENDING = 0;
1667
- var FULFILLED = 1;
1668
- var REJECTED = 2;
1669
- var HANDLED = 1;
1670
- var UNHANDLED = 2;
1671
-
1672
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1673
-
1674
- // helpers
1675
- var isThenable = function (it) {
1676
- var then;
1677
- return isObject$3(it) && isCallable$4(then = it.then) ? then : false;
1678
- };
1679
-
1680
- var callReaction = function (reaction, state) {
1681
- var value = state.value;
1682
- var ok = state.state == FULFILLED;
1683
- var handler = ok ? reaction.ok : reaction.fail;
1684
- var resolve = reaction.resolve;
1685
- var reject = reaction.reject;
1686
- var domain = reaction.domain;
1687
- var result, then, exited;
1688
- try {
1689
- if (handler) {
1690
- if (!ok) {
1691
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
1692
- state.rejection = HANDLED;
1693
- }
1694
- if (handler === true) result = value;
1695
- else {
1696
- if (domain) domain.enter();
1697
- result = handler(value); // can throw
1698
- if (domain) {
1699
- domain.exit();
1700
- exited = true;
1701
- }
1702
- }
1703
- if (result === reaction.promise) {
1704
- reject(TypeError$1('Promise-chain cycle'));
1705
- } else if (then = isThenable(result)) {
1706
- call$8(then, result, resolve, reject);
1707
- } else resolve(result);
1708
- } else reject(value);
1709
- } catch (error) {
1710
- if (domain && !exited) domain.exit();
1711
- reject(error);
1712
- }
1713
- };
1714
-
1715
- var notify = function (state, isReject) {
1716
- if (state.notified) return;
1717
- state.notified = true;
1718
- microtask(function () {
1719
- var reactions = state.reactions;
1720
- var reaction;
1721
- while (reaction = reactions.get()) {
1722
- callReaction(reaction, state);
1723
- }
1724
- state.notified = false;
1725
- if (isReject && !state.rejection) onUnhandled(state);
1726
- });
1727
- };
1728
-
1729
- var dispatchEvent = function (name, promise, reason) {
1730
- var event, handler;
1731
- if (DISPATCH_EVENT) {
1732
- event = document$1.createEvent('Event');
1733
- event.promise = promise;
1734
- event.reason = reason;
1735
- event.initEvent(name, false, true);
1736
- global$2.dispatchEvent(event);
1737
- } else event = { promise: promise, reason: reason };
1738
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
1739
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1740
- };
1741
-
1742
- var onUnhandled = function (state) {
1743
- call$8(task, global$2, function () {
1744
- var promise = state.facade;
1745
- var value = state.value;
1746
- var IS_UNHANDLED = isUnhandled(state);
1747
- var result;
1748
- if (IS_UNHANDLED) {
1749
- result = perform$2(function () {
1750
- if (IS_NODE$1) {
1751
- process.emit('unhandledRejection', value, promise);
1752
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
1753
- });
1754
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1755
- state.rejection = IS_NODE$1 || isUnhandled(state) ? UNHANDLED : HANDLED;
1756
- if (result.error) throw result.value;
1757
- }
1758
- });
1759
- };
1760
-
1761
- var isUnhandled = function (state) {
1762
- return state.rejection !== HANDLED && !state.parent;
1763
- };
1764
-
1765
- var onHandleUnhandled = function (state) {
1766
- call$8(task, global$2, function () {
1767
- var promise = state.facade;
1768
- if (IS_NODE$1) {
1769
- process.emit('rejectionHandled', promise);
1770
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1771
- });
1772
- };
1773
-
1774
- var bind$1 = function (fn, state, unwrap) {
1775
- return function (value) {
1776
- fn(state, value, unwrap);
1777
- };
1778
- };
1779
-
1780
- var internalReject = function (state, value, unwrap) {
1781
- if (state.done) return;
1782
- state.done = true;
1783
- if (unwrap) state = unwrap;
1784
- state.value = value;
1785
- state.state = REJECTED;
1786
- notify(state, true);
1787
- };
1788
-
1789
- var internalResolve = function (state, value, unwrap) {
1790
- if (state.done) return;
1791
- state.done = true;
1792
- if (unwrap) state = unwrap;
1793
- try {
1794
- if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
1795
- var then = isThenable(value);
1796
- if (then) {
1797
- microtask(function () {
1798
- var wrapper = { done: false };
1799
- try {
1800
- call$8(then, value,
1801
- bind$1(internalResolve, wrapper, state),
1802
- bind$1(internalReject, wrapper, state)
1803
- );
1804
- } catch (error) {
1805
- internalReject(wrapper, error, state);
1806
- }
1807
- });
1808
- } else {
1809
- state.value = value;
1810
- state.state = FULFILLED;
1811
- notify(state, false);
1812
- }
1813
- } catch (error) {
1814
- internalReject({ done: false }, error, state);
1815
- }
1816
- };
1817
-
1818
- // constructor polyfill
1819
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
1820
- // 25.4.3.1 Promise(executor)
1821
- PromiseConstructor = function Promise(executor) {
1822
- anInstance(this, PromisePrototype);
1823
- aCallable$4(executor);
1824
- call$8(Internal, this);
1825
- var state = getInternalPromiseState(this);
1826
- try {
1827
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
1828
- } catch (error) {
1829
- internalReject(state, error);
1830
- }
1831
- };
1832
-
1833
- PromisePrototype = PromiseConstructor.prototype;
1834
-
1835
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1836
- Internal = function Promise(executor) {
1837
- setInternalState$1(this, {
1838
- type: PROMISE,
1839
- done: false,
1840
- notified: false,
1841
- parent: false,
1842
- reactions: new Queue(),
1843
- rejection: false,
1844
- state: PENDING,
1845
- value: undefined
1846
- });
1847
- };
1848
-
1849
- // `Promise.prototype.then` method
1850
- // https://tc39.es/ecma262/#sec-promise.prototype.then
1851
- Internal.prototype = defineBuiltIn$3(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1852
- var state = getInternalPromiseState(this);
1853
- var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
1854
- state.parent = true;
1855
- reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
1856
- reaction.fail = isCallable$4(onRejected) && onRejected;
1857
- reaction.domain = IS_NODE$1 ? process.domain : undefined;
1858
- if (state.state == PENDING) state.reactions.add(reaction);
1859
- else microtask(function () {
1860
- callReaction(reaction, state);
1861
- });
1862
- return reaction.promise;
1863
- });
1864
-
1865
- OwnPromiseCapability = function () {
1866
- var promise = new Internal();
1867
- var state = getInternalPromiseState(promise);
1868
- this.promise = promise;
1869
- this.resolve = bind$1(internalResolve, state);
1870
- this.reject = bind$1(internalReject, state);
1871
- };
1872
-
1873
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
1874
- return C === PromiseConstructor || C === PromiseWrapper
1875
- ? new OwnPromiseCapability(C)
1876
- : newGenericPromiseCapability(C);
1877
- };
1878
-
1879
- if (isCallable$4(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1880
- nativeThen = NativePromisePrototype$1.then;
1881
-
1882
- if (!NATIVE_PROMISE_SUBCLASSING) {
1883
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1884
- defineBuiltIn$3(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1885
- var that = this;
1886
- return new PromiseConstructor(function (resolve, reject) {
1887
- call$8(nativeThen, that, resolve, reject);
1888
- }).then(onFulfilled, onRejected);
1889
- // https://github.com/zloirock/core-js/issues/640
1890
- }, { unsafe: true });
1891
- }
1892
-
1893
- // make `.constructor === Promise` work for native promise-based APIs
1894
- try {
1895
- delete NativePromisePrototype$1.constructor;
1896
- } catch (error) { /* empty */ }
1897
-
1898
- // make `instanceof Promise` work for native promise-based APIs
1899
- if (setPrototypeOf$1) {
1900
- setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype);
1901
- }
1902
- }
1903
- }
1904
-
1905
- $$a({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1906
- Promise: PromiseConstructor
1907
- });
1908
-
1909
- setToStringTag$2(PromiseConstructor, PROMISE, false);
1910
- setSpecies(PROMISE);
1911
-
1912
- var iterators = {};
1913
-
1914
- var wellKnownSymbol$8 = wellKnownSymbol$g;
1915
- var Iterators$4 = iterators;
1916
-
1917
- var ITERATOR$5 = wellKnownSymbol$8('iterator');
1918
- var ArrayPrototype$1 = Array.prototype;
1919
-
1920
- // check on default Array iterator
1921
- var isArrayIteratorMethod$1 = function (it) {
1922
- return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$5] === it);
1923
- };
1924
-
1925
- var classof$2 = classof$4;
1926
- var getMethod$1 = getMethod$3;
1927
- var isNullOrUndefined = isNullOrUndefined$4;
1928
- var Iterators$3 = iterators;
1929
- var wellKnownSymbol$7 = wellKnownSymbol$g;
1930
-
1931
- var ITERATOR$4 = wellKnownSymbol$7('iterator');
1932
-
1933
- var getIteratorMethod$2 = function (it) {
1934
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$4)
1935
- || getMethod$1(it, '@@iterator')
1936
- || Iterators$3[classof$2(it)];
1937
- };
1938
-
1939
- var call$7 = functionCall;
1940
- var aCallable$3 = aCallable$8;
1941
- var anObject$5 = anObject$a;
1942
- var tryToString$1 = tryToString$4;
1943
- var getIteratorMethod$1 = getIteratorMethod$2;
1944
-
1945
- var $TypeError$3 = TypeError;
1946
-
1947
- var getIterator$1 = function (argument, usingIterator) {
1948
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1949
- if (aCallable$3(iteratorMethod)) return anObject$5(call$7(iteratorMethod, argument));
1950
- throw $TypeError$3(tryToString$1(argument) + ' is not iterable');
1951
- };
1952
-
1953
- var call$6 = functionCall;
1954
- var anObject$4 = anObject$a;
1955
- var getMethod = getMethod$3;
1956
-
1957
- var iteratorClose$1 = function (iterator, kind, value) {
1958
- var innerResult, innerError;
1959
- anObject$4(iterator);
1960
- try {
1961
- innerResult = getMethod(iterator, 'return');
1962
- if (!innerResult) {
1963
- if (kind === 'throw') throw value;
1964
- return value;
1965
- }
1966
- innerResult = call$6(innerResult, iterator);
1967
- } catch (error) {
1968
- innerError = true;
1969
- innerResult = error;
1970
- }
1971
- if (kind === 'throw') throw value;
1972
- if (innerError) throw innerResult;
1973
- anObject$4(innerResult);
1974
- return value;
1975
- };
1976
-
1977
- var bind = functionBindContext;
1978
- var call$5 = functionCall;
1979
- var anObject$3 = anObject$a;
1980
- var tryToString = tryToString$4;
1981
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1982
- var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1983
- var isPrototypeOf = objectIsPrototypeOf;
1984
- var getIterator = getIterator$1;
1985
- var getIteratorMethod = getIteratorMethod$2;
1986
- var iteratorClose = iteratorClose$1;
1987
-
1988
- var $TypeError$2 = TypeError;
1989
-
1990
- var Result = function (stopped, result) {
1991
- this.stopped = stopped;
1992
- this.result = result;
1993
- };
1994
-
1995
- var ResultPrototype = Result.prototype;
1996
-
1997
- var iterate$2 = function (iterable, unboundFunction, options) {
1998
- var that = options && options.that;
1999
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2000
- var IS_RECORD = !!(options && options.IS_RECORD);
2001
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2002
- var INTERRUPTED = !!(options && options.INTERRUPTED);
2003
- var fn = bind(unboundFunction, that);
2004
- var iterator, iterFn, index, length, result, next, step;
2005
-
2006
- var stop = function (condition) {
2007
- if (iterator) iteratorClose(iterator, 'normal', condition);
2008
- return new Result(true, condition);
2009
- };
2010
-
2011
- var callFn = function (value) {
2012
- if (AS_ENTRIES) {
2013
- anObject$3(value);
2014
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2015
- } return INTERRUPTED ? fn(value, stop) : fn(value);
2016
- };
2017
-
2018
- if (IS_RECORD) {
2019
- iterator = iterable.iterator;
2020
- } else if (IS_ITERATOR) {
2021
- iterator = iterable;
2022
- } else {
2023
- iterFn = getIteratorMethod(iterable);
2024
- if (!iterFn) throw $TypeError$2(tryToString(iterable) + ' is not iterable');
2025
- // optimisation for array iterators
2026
- if (isArrayIteratorMethod(iterFn)) {
2027
- for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
2028
- result = callFn(iterable[index]);
2029
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
2030
- } return new Result(false);
2031
- }
2032
- iterator = getIterator(iterable, iterFn);
2033
- }
2034
-
2035
- next = IS_RECORD ? iterable.next : iterator.next;
2036
- while (!(step = call$5(next, iterator)).done) {
2037
- try {
2038
- result = callFn(step.value);
2039
- } catch (error) {
2040
- iteratorClose(iterator, 'throw', error);
2041
- }
2042
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2043
- } return new Result(false);
2044
- };
2045
-
2046
- var wellKnownSymbol$6 = wellKnownSymbol$g;
2047
-
2048
- var ITERATOR$3 = wellKnownSymbol$6('iterator');
2049
- var SAFE_CLOSING = false;
2050
-
2051
- try {
2052
- var called = 0;
2053
- var iteratorWithReturn = {
2054
- next: function () {
2055
- return { done: !!called++ };
2056
- },
2057
- 'return': function () {
2058
- SAFE_CLOSING = true;
2059
- }
2060
- };
2061
- iteratorWithReturn[ITERATOR$3] = function () {
2062
- return this;
2063
- };
2064
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2065
- Array.from(iteratorWithReturn, function () { throw 2; });
2066
- } catch (error) { /* empty */ }
2067
-
2068
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2069
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2070
- var ITERATION_SUPPORT = false;
2071
- try {
2072
- var object = {};
2073
- object[ITERATOR$3] = function () {
2074
- return {
2075
- next: function () {
2076
- return { done: ITERATION_SUPPORT = true };
2077
- }
2078
- };
2079
- };
2080
- exec(object);
2081
- } catch (error) { /* empty */ }
2082
- return ITERATION_SUPPORT;
2083
- };
2084
-
2085
- var NativePromiseConstructor$1 = promiseNativeConstructor;
2086
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2087
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2088
-
2089
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2090
- NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2091
- });
2092
-
2093
- var $$9 = _export;
2094
- var call$4 = functionCall;
2095
- var aCallable$2 = aCallable$8;
2096
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2097
- var perform$1 = perform$3;
2098
- var iterate$1 = iterate$2;
2099
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2100
-
2101
- // `Promise.all` method
2102
- // https://tc39.es/ecma262/#sec-promise.all
2103
- $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2104
- all: function all(iterable) {
2105
- var C = this;
2106
- var capability = newPromiseCapabilityModule$2.f(C);
2107
- var resolve = capability.resolve;
2108
- var reject = capability.reject;
2109
- var result = perform$1(function () {
2110
- var $promiseResolve = aCallable$2(C.resolve);
2111
- var values = [];
2112
- var counter = 0;
2113
- var remaining = 1;
2114
- iterate$1(iterable, function (promise) {
2115
- var index = counter++;
2116
- var alreadyCalled = false;
2117
- remaining++;
2118
- call$4($promiseResolve, C, promise).then(function (value) {
2119
- if (alreadyCalled) return;
2120
- alreadyCalled = true;
2121
- values[index] = value;
2122
- --remaining || resolve(values);
2123
- }, reject);
2124
- });
2125
- --remaining || resolve(values);
2126
- });
2127
- if (result.error) reject(result.value);
2128
- return capability.promise;
2129
- }
2130
- });
2131
-
2132
- var $$8 = _export;
2133
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2134
- var NativePromiseConstructor = promiseNativeConstructor;
2135
- var getBuiltIn$1 = getBuiltIn$8;
2136
- var isCallable$3 = isCallable$k;
2137
- var defineBuiltIn$2 = defineBuiltIn$5;
2138
-
2139
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2140
-
2141
- // `Promise.prototype.catch` method
2142
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
2143
- $$8({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2144
- 'catch': function (onRejected) {
2145
- return this.then(undefined, onRejected);
2146
- }
2147
- });
2148
-
2149
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2150
- if (isCallable$3(NativePromiseConstructor)) {
2151
- var method = getBuiltIn$1('Promise').prototype['catch'];
2152
- if (NativePromisePrototype['catch'] !== method) {
2153
- defineBuiltIn$2(NativePromisePrototype, 'catch', method, { unsafe: true });
2154
- }
2155
- }
2156
-
2157
- var $$7 = _export;
2158
- var call$3 = functionCall;
2159
- var aCallable$1 = aCallable$8;
2160
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2161
- var perform = perform$3;
2162
- var iterate = iterate$2;
2163
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2164
-
2165
- // `Promise.race` method
2166
- // https://tc39.es/ecma262/#sec-promise.race
2167
- $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2168
- race: function race(iterable) {
2169
- var C = this;
2170
- var capability = newPromiseCapabilityModule$1.f(C);
2171
- var reject = capability.reject;
2172
- var result = perform(function () {
2173
- var $promiseResolve = aCallable$1(C.resolve);
2174
- iterate(iterable, function (promise) {
2175
- call$3($promiseResolve, C, promise).then(capability.resolve, reject);
2176
- });
2177
- });
2178
- if (result.error) reject(result.value);
2179
- return capability.promise;
2180
- }
2181
- });
2182
-
2183
- var $$6 = _export;
2184
- var call$2 = functionCall;
2185
- var newPromiseCapabilityModule = newPromiseCapability$2;
2186
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2187
-
2188
- // `Promise.reject` method
2189
- // https://tc39.es/ecma262/#sec-promise.reject
2190
- $$6({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2191
- reject: function reject(r) {
2192
- var capability = newPromiseCapabilityModule.f(this);
2193
- call$2(capability.reject, undefined, r);
2194
- return capability.promise;
2195
- }
2196
- });
2197
-
2198
- var anObject$2 = anObject$a;
2199
- var isObject$2 = isObject$9;
2200
- var newPromiseCapability = newPromiseCapability$2;
2201
-
2202
- var promiseResolve$1 = function (C, x) {
2203
- anObject$2(C);
2204
- if (isObject$2(x) && x.constructor === C) return x;
2205
- var promiseCapability = newPromiseCapability.f(C);
2206
- var resolve = promiseCapability.resolve;
2207
- resolve(x);
2208
- return promiseCapability.promise;
2209
- };
2210
-
2211
- var $$5 = _export;
2212
- var getBuiltIn = getBuiltIn$8;
2213
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2214
- var promiseResolve = promiseResolve$1;
2215
-
2216
- getBuiltIn('Promise');
2217
-
2218
- // `Promise.resolve` method
2219
- // https://tc39.es/ecma262/#sec-promise.resolve
2220
- $$5({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2221
- resolve: function resolve(x) {
2222
- return promiseResolve(this, x);
2223
- }
2224
- });
2225
-
2226
- var internalObjectKeys = objectKeysInternal;
2227
- var enumBugKeys$1 = enumBugKeys$3;
2228
-
2229
- // `Object.keys` method
2230
- // https://tc39.es/ecma262/#sec-object.keys
2231
- // eslint-disable-next-line es/no-object-keys -- safe
2232
- var objectKeys$2 = Object.keys || function keys(O) {
2233
- return internalObjectKeys(O, enumBugKeys$1);
2234
- };
2235
-
2236
- var DESCRIPTORS$2 = descriptors;
2237
- var uncurryThis$1 = functionUncurryThis;
2238
- var call$1 = functionCall;
2239
- var fails$4 = fails$f;
2240
- var objectKeys$1 = objectKeys$2;
2241
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2242
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2243
- var toObject$2 = toObject$4;
2244
- var IndexedObject$1 = indexedObject;
2245
-
2246
- // eslint-disable-next-line es/no-object-assign -- safe
2247
- var $assign = Object.assign;
2248
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2249
- var defineProperty$2 = Object.defineProperty;
2250
- var concat = uncurryThis$1([].concat);
2251
-
2252
- // `Object.assign` method
2253
- // https://tc39.es/ecma262/#sec-object.assign
2254
- var objectAssign = !$assign || fails$4(function () {
2255
- // should have correct order of operations (Edge bug)
2256
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
2257
- enumerable: true,
2258
- get: function () {
2259
- defineProperty$2(this, 'b', {
2260
- value: 3,
2261
- enumerable: false
2262
- });
2263
- }
2264
- }), { b: 2 })).b !== 1) return true;
2265
- // should work with symbols and should have deterministic property order (V8 bug)
2266
- var A = {};
2267
- var B = {};
2268
- // eslint-disable-next-line es/no-symbol -- safe
2269
- var symbol = Symbol();
2270
- var alphabet = 'abcdefghijklmnopqrst';
2271
- A[symbol] = 7;
2272
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2273
- return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
2274
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2275
- var T = toObject$2(target);
2276
- var argumentsLength = arguments.length;
2277
- var index = 1;
2278
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2279
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
2280
- while (argumentsLength > index) {
2281
- var S = IndexedObject$1(arguments[index++]);
2282
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
2283
- var length = keys.length;
2284
- var j = 0;
2285
- var key;
2286
- while (length > j) {
2287
- key = keys[j++];
2288
- if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
2289
- }
2290
- } return T;
2291
- } : $assign;
2292
-
2293
- var $$4 = _export;
2294
- var assign = objectAssign;
2295
-
2296
- // `Object.assign` method
2297
- // https://tc39.es/ecma262/#sec-object.assign
2298
- // eslint-disable-next-line es/no-object-assign -- required for testing
2299
- $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2300
- assign: assign
2301
- });
2302
-
2303
- var objectDefineProperties = {};
2304
-
2305
- var DESCRIPTORS$1 = descriptors;
2306
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2307
- var definePropertyModule = objectDefineProperty;
2308
- var anObject$1 = anObject$a;
2309
- var toIndexedObject$1 = toIndexedObject$5;
2310
- var objectKeys = objectKeys$2;
2311
-
2312
- // `Object.defineProperties` method
2313
- // https://tc39.es/ecma262/#sec-object.defineproperties
2314
- // eslint-disable-next-line es/no-object-defineproperties -- safe
2315
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2316
- anObject$1(O);
2317
- var props = toIndexedObject$1(Properties);
2318
- var keys = objectKeys(Properties);
2319
- var length = keys.length;
2320
- var index = 0;
2321
- var key;
2322
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
2323
- return O;
2324
- };
2325
-
2326
- /* global ActiveXObject -- old IE, WSH */
2327
-
2328
- var anObject = anObject$a;
2329
- var definePropertiesModule = objectDefineProperties;
2330
- var enumBugKeys = enumBugKeys$3;
2331
- var hiddenKeys = hiddenKeys$4;
2332
- var html = html$2;
2333
- var documentCreateElement$1 = documentCreateElement$2;
2334
- var sharedKey$1 = sharedKey$3;
2335
-
2336
- var GT = '>';
2337
- var LT = '<';
2338
- var PROTOTYPE = 'prototype';
2339
- var SCRIPT = 'script';
2340
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
2341
-
2342
- var EmptyConstructor = function () { /* empty */ };
2343
-
2344
- var scriptTag = function (content) {
2345
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2346
- };
2347
-
2348
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2349
- var NullProtoObjectViaActiveX = function (activeXDocument) {
2350
- activeXDocument.write(scriptTag(''));
2351
- activeXDocument.close();
2352
- var temp = activeXDocument.parentWindow.Object;
2353
- activeXDocument = null; // avoid memory leak
2354
- return temp;
2355
- };
2356
-
2357
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
2358
- var NullProtoObjectViaIFrame = function () {
2359
- // Thrash, waste and sodomy: IE GC bug
2360
- var iframe = documentCreateElement$1('iframe');
2361
- var JS = 'java' + SCRIPT + ':';
2362
- var iframeDocument;
2363
- iframe.style.display = 'none';
2364
- html.appendChild(iframe);
2365
- // https://github.com/zloirock/core-js/issues/475
2366
- iframe.src = String(JS);
2367
- iframeDocument = iframe.contentWindow.document;
2368
- iframeDocument.open();
2369
- iframeDocument.write(scriptTag('document.F=Object'));
2370
- iframeDocument.close();
2371
- return iframeDocument.F;
2372
- };
2373
-
2374
- // Check for document.domain and active x support
2375
- // No need to use active x approach when document.domain is not set
2376
- // see https://github.com/es-shims/es5-shim/issues/150
2377
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2378
- // avoid IE GC bug
2379
- var activeXDocument;
2380
- var NullProtoObject = function () {
2381
- try {
2382
- activeXDocument = new ActiveXObject('htmlfile');
2383
- } catch (error) { /* ignore */ }
2384
- NullProtoObject = typeof document != 'undefined'
2385
- ? document.domain && activeXDocument
2386
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2387
- : NullProtoObjectViaIFrame()
2388
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
2389
- var length = enumBugKeys.length;
2390
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2391
- return NullProtoObject();
2392
- };
2393
-
2394
- hiddenKeys[IE_PROTO$1] = true;
2395
-
2396
- // `Object.create` method
2397
- // https://tc39.es/ecma262/#sec-object.create
2398
- // eslint-disable-next-line es/no-object-create -- safe
2399
- var objectCreate = Object.create || function create(O, Properties) {
2400
- var result;
2401
- if (O !== null) {
2402
- EmptyConstructor[PROTOTYPE] = anObject(O);
2403
- result = new EmptyConstructor();
2404
- EmptyConstructor[PROTOTYPE] = null;
2405
- // add "__proto__" for Object.getPrototypeOf polyfill
2406
- result[IE_PROTO$1] = O;
2407
- } else result = NullProtoObject();
2408
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2409
- };
2410
-
2411
- var wellKnownSymbol$5 = wellKnownSymbol$g;
2412
- var create$1 = objectCreate;
2413
- var defineProperty$1 = objectDefineProperty.f;
2414
-
2415
- var UNSCOPABLES = wellKnownSymbol$5('unscopables');
2416
- var ArrayPrototype = Array.prototype;
2417
-
2418
- // Array.prototype[@@unscopables]
2419
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2420
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
2421
- defineProperty$1(ArrayPrototype, UNSCOPABLES, {
2422
- configurable: true,
2423
- value: create$1(null)
2424
- });
2425
- }
2426
-
2427
- // add a key to Array.prototype[@@unscopables]
2428
- var addToUnscopables$2 = function (key) {
2429
- ArrayPrototype[UNSCOPABLES][key] = true;
2430
- };
2431
-
2432
- var $$3 = _export;
2433
- var $includes = arrayIncludes.includes;
2434
- var fails$3 = fails$f;
2435
- var addToUnscopables$1 = addToUnscopables$2;
2436
-
2437
- // FF99+ bug
2438
- var BROKEN_ON_SPARSE = fails$3(function () {
2439
- return !Array(1).includes();
2440
- });
2441
-
2442
- // `Array.prototype.includes` method
2443
- // https://tc39.es/ecma262/#sec-array.prototype.includes
2444
- $$3({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2445
- includes: function includes(el /* , fromIndex = 0 */) {
2446
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2447
- }
2448
- });
2449
-
2450
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2451
- addToUnscopables$1('includes');
2452
-
2453
- var isObject$1 = isObject$9;
2454
- var classof$1 = classofRaw$2;
2455
- var wellKnownSymbol$4 = wellKnownSymbol$g;
2456
-
2457
- var MATCH$1 = wellKnownSymbol$4('match');
2458
-
2459
- // `IsRegExp` abstract operation
2460
- // https://tc39.es/ecma262/#sec-isregexp
2461
- var isRegexp = function (it) {
2462
- var isRegExp;
2463
- return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
2464
- };
2465
-
2466
- var isRegExp = isRegexp;
2467
-
2468
- var $TypeError$1 = TypeError;
2469
-
2470
- var notARegexp = function (it) {
2471
- if (isRegExp(it)) {
2472
- throw $TypeError$1("The method doesn't accept regular expressions");
2473
- } return it;
2474
- };
2475
-
2476
- var classof = classof$4;
2477
-
2478
- var $String = String;
2479
-
2480
- var toString$1 = function (argument) {
2481
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2482
- return $String(argument);
2483
- };
2484
-
2485
- var wellKnownSymbol$3 = wellKnownSymbol$g;
2486
-
2487
- var MATCH = wellKnownSymbol$3('match');
2488
-
2489
- var correctIsRegexpLogic = function (METHOD_NAME) {
2490
- var regexp = /./;
2491
- try {
2492
- '/./'[METHOD_NAME](regexp);
2493
- } catch (error1) {
2494
- try {
2495
- regexp[MATCH] = false;
2496
- return '/./'[METHOD_NAME](regexp);
2497
- } catch (error2) { /* empty */ }
2498
- } return false;
2499
- };
2500
-
2501
- var $$2 = _export;
2502
- var uncurryThis = functionUncurryThis;
2503
- var notARegExp = notARegexp;
2504
- var requireObjectCoercible = requireObjectCoercible$3;
2505
- var toString = toString$1;
2506
- var correctIsRegExpLogic = correctIsRegexpLogic;
2507
-
2508
- var stringIndexOf = uncurryThis(''.indexOf);
2509
-
2510
- // `String.prototype.includes` method
2511
- // https://tc39.es/ecma262/#sec-string.prototype.includes
2512
- $$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2513
- includes: function includes(searchString /* , position = 0 */) {
2514
- return !!~stringIndexOf(
2515
- toString(requireObjectCoercible(this)),
2516
- toString(notARegExp(searchString)),
2517
- arguments.length > 1 ? arguments[1] : undefined
2518
- );
2519
- }
2520
- });
2521
-
2522
- var fails$2 = fails$f;
2523
-
2524
- var correctPrototypeGetter = !fails$2(function () {
2525
- function F() { /* empty */ }
2526
- F.prototype.constructor = null;
2527
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
2528
- return Object.getPrototypeOf(new F()) !== F.prototype;
2529
- });
2530
-
2531
- var hasOwn = hasOwnProperty_1;
2532
- var isCallable$2 = isCallable$k;
2533
- var toObject$1 = toObject$4;
2534
- var sharedKey = sharedKey$3;
2535
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2536
-
2537
- var IE_PROTO = sharedKey('IE_PROTO');
2538
- var $Object = Object;
2539
- var ObjectPrototype = $Object.prototype;
2540
-
2541
- // `Object.getPrototypeOf` method
2542
- // https://tc39.es/ecma262/#sec-object.getprototypeof
2543
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
2544
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
2545
- var object = toObject$1(O);
2546
- if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
2547
- var constructor = object.constructor;
2548
- if (isCallable$2(constructor) && object instanceof constructor) {
2549
- return constructor.prototype;
2550
- } return object instanceof $Object ? ObjectPrototype : null;
2551
- };
2552
-
2553
- var fails$1 = fails$f;
2554
- var isCallable$1 = isCallable$k;
2555
- var isObject = isObject$9;
2556
- var getPrototypeOf$1 = objectGetPrototypeOf;
2557
- var defineBuiltIn$1 = defineBuiltIn$5;
2558
- var wellKnownSymbol$2 = wellKnownSymbol$g;
2559
-
2560
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
2561
- var BUGGY_SAFARI_ITERATORS$1 = false;
2562
-
2563
- // `%IteratorPrototype%` object
2564
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
2565
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
2566
-
2567
- /* eslint-disable es/no-array-prototype-keys -- safe */
2568
- if ([].keys) {
2569
- arrayIterator = [].keys();
2570
- // Safari 8 has buggy iterators w/o `next`
2571
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
2572
- else {
2573
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
2574
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
2575
- }
2576
- }
2577
-
2578
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$1(function () {
2579
- var test = {};
2580
- // FF44- legacy iterators case
2581
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
2582
- });
2583
-
2584
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
2585
-
2586
- // `%IteratorPrototype%[@@iterator]()` method
2587
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
2588
- if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
2589
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
2590
- return this;
2591
- });
2592
- }
2593
-
2594
- var iteratorsCore = {
2595
- IteratorPrototype: IteratorPrototype$2,
2596
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
2597
- };
2598
-
2599
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
2600
- var create = objectCreate;
2601
- var createPropertyDescriptor = createPropertyDescriptor$3;
2602
- var setToStringTag$1 = setToStringTag$3;
2603
- var Iterators$2 = iterators;
2604
-
2605
- var returnThis$1 = function () { return this; };
2606
-
2607
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2608
- var TO_STRING_TAG = NAME + ' Iterator';
2609
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
2610
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
2611
- Iterators$2[TO_STRING_TAG] = returnThis$1;
2612
- return IteratorConstructor;
2613
- };
2614
-
2615
- var $$1 = _export;
2616
- var call = functionCall;
2617
- var FunctionName = functionName;
2618
- var isCallable = isCallable$k;
2619
- var createIteratorConstructor = iteratorCreateConstructor;
2620
- var getPrototypeOf = objectGetPrototypeOf;
2621
- var setPrototypeOf = objectSetPrototypeOf;
2622
- var setToStringTag = setToStringTag$3;
2623
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
2624
- var defineBuiltIn = defineBuiltIn$5;
2625
- var wellKnownSymbol$1 = wellKnownSymbol$g;
2626
- var Iterators$1 = iterators;
2627
- var IteratorsCore = iteratorsCore;
2628
-
2629
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
2630
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
2631
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
2632
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2633
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
2634
- var KEYS = 'keys';
2635
- var VALUES = 'values';
2636
- var ENTRIES = 'entries';
2637
-
2638
- var returnThis = function () { return this; };
2639
-
2640
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2641
- createIteratorConstructor(IteratorConstructor, NAME, next);
2642
-
2643
- var getIterationMethod = function (KIND) {
2644
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2645
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
2646
- switch (KIND) {
2647
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
2648
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
2649
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
2650
- } return function () { return new IteratorConstructor(this); };
2651
- };
2652
-
2653
- var TO_STRING_TAG = NAME + ' Iterator';
2654
- var INCORRECT_VALUES_NAME = false;
2655
- var IterablePrototype = Iterable.prototype;
2656
- var nativeIterator = IterablePrototype[ITERATOR$1]
2657
- || IterablePrototype['@@iterator']
2658
- || DEFAULT && IterablePrototype[DEFAULT];
2659
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
2660
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
2661
- var CurrentIteratorPrototype, methods, KEY;
2662
-
2663
- // fix native
2664
- if (anyNativeIterator) {
2665
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
2666
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
2667
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
2668
- if (setPrototypeOf) {
2669
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
2670
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
2671
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
2672
- }
2673
- }
2674
- // Set @@toStringTag to native iterators
2675
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
2676
- }
2677
- }
2678
-
2679
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
2680
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
2681
- if (CONFIGURABLE_FUNCTION_NAME) {
2682
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
2683
- } else {
2684
- INCORRECT_VALUES_NAME = true;
2685
- defaultIterator = function values() { return call(nativeIterator, this); };
2686
- }
2687
- }
2688
-
2689
- // export additional methods
2690
- if (DEFAULT) {
2691
- methods = {
2692
- values: getIterationMethod(VALUES),
2693
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
2694
- entries: getIterationMethod(ENTRIES)
2695
- };
2696
- if (FORCED) for (KEY in methods) {
2697
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2698
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
2699
- }
2700
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2701
- }
2702
-
2703
- // define iterator
2704
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
2705
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
2706
- }
2707
- Iterators$1[NAME] = defaultIterator;
2708
-
2709
- return methods;
2710
- };
2711
-
2712
- // `CreateIterResultObject` abstract operation
2713
- // https://tc39.es/ecma262/#sec-createiterresultobject
2714
- var createIterResultObject$1 = function (value, done) {
2715
- return { value: value, done: done };
2716
- };
2717
-
2718
- var toIndexedObject = toIndexedObject$5;
2719
- var addToUnscopables = addToUnscopables$2;
2720
- var Iterators = iterators;
2721
- var InternalStateModule = internalState;
2722
- var defineProperty = objectDefineProperty.f;
2723
- var defineIterator = iteratorDefine;
2724
- var createIterResultObject = createIterResultObject$1;
2725
- var DESCRIPTORS = descriptors;
2726
-
2727
- var ARRAY_ITERATOR = 'Array Iterator';
2728
- var setInternalState = InternalStateModule.set;
2729
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
2730
-
2731
- // `Array.prototype.entries` method
2732
- // https://tc39.es/ecma262/#sec-array.prototype.entries
2733
- // `Array.prototype.keys` method
2734
- // https://tc39.es/ecma262/#sec-array.prototype.keys
2735
- // `Array.prototype.values` method
2736
- // https://tc39.es/ecma262/#sec-array.prototype.values
2737
- // `Array.prototype[@@iterator]` method
2738
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
2739
- // `CreateArrayIterator` internal method
2740
- // https://tc39.es/ecma262/#sec-createarrayiterator
2741
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
2742
- setInternalState(this, {
2743
- type: ARRAY_ITERATOR,
2744
- target: toIndexedObject(iterated), // target
2745
- index: 0, // next index
2746
- kind: kind // kind
2747
- });
2748
- // `%ArrayIteratorPrototype%.next` method
2749
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
2750
- }, function () {
2751
- var state = getInternalState(this);
2752
- var target = state.target;
2753
- var kind = state.kind;
2754
- var index = state.index++;
2755
- if (!target || index >= target.length) {
2756
- state.target = undefined;
2757
- return createIterResultObject(undefined, true);
2758
- }
2759
- if (kind == 'keys') return createIterResultObject(index, false);
2760
- if (kind == 'values') return createIterResultObject(target[index], false);
2761
- return createIterResultObject([index, target[index]], false);
2762
- }, 'values');
2763
-
2764
- // argumentsList[@@iterator] is %ArrayProto_values%
2765
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
2766
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
2767
- var values = Iterators.Arguments = Iterators.Array;
2768
-
2769
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2770
- addToUnscopables('keys');
2771
- addToUnscopables('values');
2772
- addToUnscopables('entries');
2773
-
2774
- // V8 ~ Chrome 45- bug
2775
- if (DESCRIPTORS && values.name !== 'values') try {
2776
- defineProperty(values, 'name', { value: 'values' });
2777
- } catch (error) { /* empty */ }
2778
-
2779
- // iterable DOM collections
2780
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2781
- var domIterables = {
2782
- CSSRuleList: 0,
2783
- CSSStyleDeclaration: 0,
2784
- CSSValueList: 0,
2785
- ClientRectList: 0,
2786
- DOMRectList: 0,
2787
- DOMStringList: 0,
2788
- DOMTokenList: 1,
2789
- DataTransferItemList: 0,
2790
- FileList: 0,
2791
- HTMLAllCollection: 0,
2792
- HTMLCollection: 0,
2793
- HTMLFormElement: 0,
2794
- HTMLSelectElement: 0,
2795
- MediaList: 0,
2796
- MimeTypeArray: 0,
2797
- NamedNodeMap: 0,
2798
- NodeList: 1,
2799
- PaintRequestList: 0,
2800
- Plugin: 0,
2801
- PluginArray: 0,
2802
- SVGLengthList: 0,
2803
- SVGNumberList: 0,
2804
- SVGPathSegList: 0,
2805
- SVGPointList: 0,
2806
- SVGStringList: 0,
2807
- SVGTransformList: 0,
2808
- SourceBufferList: 0,
2809
- StyleSheetList: 0,
2810
- TextTrackCueList: 0,
2811
- TextTrackList: 0,
2812
- TouchList: 0
2813
- };
2814
-
2815
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2816
- var documentCreateElement = documentCreateElement$2;
2817
-
2818
- var classList = documentCreateElement('span').classList;
2819
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2820
-
2821
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2822
-
2823
- var global$1 = global$j;
2824
- var DOMIterables = domIterables;
2825
- var DOMTokenListPrototype = domTokenListPrototype;
2826
- var ArrayIteratorMethods = es_array_iterator;
2827
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
2828
- var wellKnownSymbol = wellKnownSymbol$g;
2829
-
2830
- var ITERATOR = wellKnownSymbol('iterator');
2831
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
2832
- var ArrayValues = ArrayIteratorMethods.values;
2833
-
2834
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2835
- if (CollectionPrototype) {
2836
- // some Chrome versions have non-configurable methods on DOMTokenList
2837
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2838
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2839
- } catch (error) {
2840
- CollectionPrototype[ITERATOR] = ArrayValues;
2841
- }
2842
- if (!CollectionPrototype[TO_STRING_TAG]) {
2843
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
2844
- }
2845
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2846
- // some Chrome versions have non-configurable methods on DOMTokenList
2847
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
2848
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2849
- } catch (error) {
2850
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2851
- }
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
2852
21
  }
2853
- }
2854
- };
2855
-
2856
- for (var COLLECTION_NAME in DOMIterables) {
2857
- handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
22
+ n["default"] = e;
23
+ return Object.freeze(n);
2858
24
  }
2859
25
 
2860
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
2861
-
2862
- var aCallable = aCallable$8;
2863
- var toObject = toObject$4;
2864
- var IndexedObject = indexedObject;
2865
- var lengthOfArrayLike = lengthOfArrayLike$3;
2866
-
2867
- var $TypeError = TypeError;
2868
-
2869
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
2870
- var createMethod = function (IS_RIGHT) {
2871
- return function (that, callbackfn, argumentsLength, memo) {
2872
- aCallable(callbackfn);
2873
- var O = toObject(that);
2874
- var self = IndexedObject(O);
2875
- var length = lengthOfArrayLike(O);
2876
- var index = IS_RIGHT ? length - 1 : 0;
2877
- var i = IS_RIGHT ? -1 : 1;
2878
- if (argumentsLength < 2) while (true) {
2879
- if (index in self) {
2880
- memo = self[index];
2881
- index += i;
2882
- break;
2883
- }
2884
- index += i;
2885
- if (IS_RIGHT ? index < 0 : length <= index) {
2886
- throw $TypeError('Reduce of empty array with no initial value');
2887
- }
2888
- }
2889
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
2890
- memo = callbackfn(memo, self[index], index, O);
2891
- }
2892
- return memo;
2893
- };
2894
- };
2895
-
2896
- var arrayReduce = {
2897
- // `Array.prototype.reduce` method
2898
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
2899
- left: createMethod(false),
2900
- // `Array.prototype.reduceRight` method
2901
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
2902
- right: createMethod(true)
2903
- };
2904
-
2905
- var fails = fails$f;
2906
-
2907
- var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2908
- var method = [][METHOD_NAME];
2909
- return !!method && fails(function () {
2910
- // eslint-disable-next-line no-useless-call -- required for testing
2911
- method.call(null, argument || function () { return 1; }, 1);
2912
- });
2913
- };
2914
-
2915
- var $ = _export;
2916
- var $reduce = arrayReduce.left;
2917
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
2918
- var CHROME_VERSION = engineV8Version;
2919
- var IS_NODE = engineIsNode;
2920
-
2921
- var STRICT_METHOD = arrayMethodIsStrict('reduce');
2922
- // Chrome 80-82 has a critical bug
2923
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
2924
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
2925
-
2926
- // `Array.prototype.reduce` method
2927
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
2928
- $({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
2929
- reduce: function reduce(callbackfn /* , initialValue */) {
2930
- var length = arguments.length;
2931
- return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
2932
- }
2933
- });
2934
-
2935
26
  /******************************************************************************
2936
27
  Copyright (c) Microsoft Corporation.
2937
28