@ninetailed/experience.js 6.4.0-beta.8 → 7.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -7,2502 +7,6 @@ const HAS_SEEN_COMPONENT = 'has_seen_component';
7
7
  const HAS_SEEN_ELEMENT = 'has_seen_element';
8
8
  const PAGE_HIDDEN = 'page_hidden';
9
9
 
10
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
11
-
12
- var check = function (it) {
13
- return it && it.Math == Math && it;
14
- };
15
-
16
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
17
- var global$k =
18
- // eslint-disable-next-line es/no-global-this -- safe
19
- check(typeof globalThis == 'object' && globalThis) ||
20
- check(typeof window == 'object' && window) ||
21
- // eslint-disable-next-line no-restricted-globals -- safe
22
- check(typeof self == 'object' && self) ||
23
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
24
- // eslint-disable-next-line no-new-func -- fallback
25
- (function () { return this; })() || Function('return this')();
26
-
27
- var objectGetOwnPropertyDescriptor = {};
28
-
29
- var fails$h = function (exec) {
30
- try {
31
- return !!exec();
32
- } catch (error) {
33
- return true;
34
- }
35
- };
36
-
37
- var fails$g = fails$h;
38
-
39
- // Detect IE8's incomplete defineProperty implementation
40
- var descriptors = !fails$g(function () {
41
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
42
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
43
- });
44
-
45
- var fails$f = fails$h;
46
-
47
- var functionBindNative = !fails$f(function () {
48
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
49
- var test = (function () { /* empty */ }).bind();
50
- // eslint-disable-next-line no-prototype-builtins -- safe
51
- return typeof test != 'function' || test.hasOwnProperty('prototype');
52
- });
53
-
54
- var NATIVE_BIND$3 = functionBindNative;
55
-
56
- var call$f = Function.prototype.call;
57
-
58
- var functionCall = NATIVE_BIND$3 ? call$f.bind(call$f) : function () {
59
- return call$f.apply(call$f, arguments);
60
- };
61
-
62
- var objectPropertyIsEnumerable = {};
63
-
64
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
65
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
66
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
67
-
68
- // Nashorn ~ JDK8 bug
69
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
70
-
71
- // `Object.prototype.propertyIsEnumerable` method implementation
72
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
73
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
74
- var descriptor = getOwnPropertyDescriptor$2(this, V);
75
- return !!descriptor && descriptor.enumerable;
76
- } : $propertyIsEnumerable;
77
-
78
- var createPropertyDescriptor$3 = function (bitmap, value) {
79
- return {
80
- enumerable: !(bitmap & 1),
81
- configurable: !(bitmap & 2),
82
- writable: !(bitmap & 4),
83
- value: value
84
- };
85
- };
86
-
87
- var NATIVE_BIND$2 = functionBindNative;
88
-
89
- var FunctionPrototype$2 = Function.prototype;
90
- var call$e = FunctionPrototype$2.call;
91
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$e, call$e);
92
-
93
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
94
- return function () {
95
- return call$e.apply(fn, arguments);
96
- };
97
- };
98
-
99
- var uncurryThis$g = functionUncurryThis;
100
-
101
- var toString$5 = uncurryThis$g({}.toString);
102
- var stringSlice = uncurryThis$g(''.slice);
103
-
104
- var classofRaw$2 = function (it) {
105
- return stringSlice(toString$5(it), 8, -1);
106
- };
107
-
108
- var uncurryThis$f = functionUncurryThis;
109
- var fails$e = fails$h;
110
- var classof$7 = classofRaw$2;
111
-
112
- var $Object$4 = Object;
113
- var split = uncurryThis$f(''.split);
114
-
115
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
116
- var indexedObject = fails$e(function () {
117
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
118
- // eslint-disable-next-line no-prototype-builtins -- safe
119
- return !$Object$4('z').propertyIsEnumerable(0);
120
- }) ? function (it) {
121
- return classof$7(it) == 'String' ? split(it, '') : $Object$4(it);
122
- } : $Object$4;
123
-
124
- // we can't use just `it == null` since of `document.all` special case
125
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
126
- var isNullOrUndefined$4 = function (it) {
127
- return it === null || it === undefined;
128
- };
129
-
130
- var isNullOrUndefined$3 = isNullOrUndefined$4;
131
-
132
- var $TypeError$f = TypeError;
133
-
134
- // `RequireObjectCoercible` abstract operation
135
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
136
- var requireObjectCoercible$4 = function (it) {
137
- if (isNullOrUndefined$3(it)) throw $TypeError$f("Can't call method on " + it);
138
- return it;
139
- };
140
-
141
- // toObject with fallback for non-array-like ES3 strings
142
- var IndexedObject$2 = indexedObject;
143
- var requireObjectCoercible$3 = requireObjectCoercible$4;
144
-
145
- var toIndexedObject$5 = function (it) {
146
- return IndexedObject$2(requireObjectCoercible$3(it));
147
- };
148
-
149
- var documentAll$2 = typeof document == 'object' && document.all;
150
-
151
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
152
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
153
-
154
- var documentAll_1 = {
155
- all: documentAll$2,
156
- IS_HTMLDDA: IS_HTMLDDA
157
- };
158
-
159
- var $documentAll$1 = documentAll_1;
160
-
161
- var documentAll$1 = $documentAll$1.all;
162
-
163
- // `IsCallable` abstract operation
164
- // https://tc39.es/ecma262/#sec-iscallable
165
- var isCallable$k = $documentAll$1.IS_HTMLDDA ? function (argument) {
166
- return typeof argument == 'function' || argument === documentAll$1;
167
- } : function (argument) {
168
- return typeof argument == 'function';
169
- };
170
-
171
- var isCallable$j = isCallable$k;
172
- var $documentAll = documentAll_1;
173
-
174
- var documentAll = $documentAll.all;
175
-
176
- var isObject$a = $documentAll.IS_HTMLDDA ? function (it) {
177
- return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll;
178
- } : function (it) {
179
- return typeof it == 'object' ? it !== null : isCallable$j(it);
180
- };
181
-
182
- var global$j = global$k;
183
- var isCallable$i = isCallable$k;
184
-
185
- var aFunction = function (argument) {
186
- return isCallable$i(argument) ? argument : undefined;
187
- };
188
-
189
- var getBuiltIn$8 = function (namespace, method) {
190
- return arguments.length < 2 ? aFunction(global$j[namespace]) : global$j[namespace] && global$j[namespace][method];
191
- };
192
-
193
- var uncurryThis$e = functionUncurryThis;
194
-
195
- var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
196
-
197
- var getBuiltIn$7 = getBuiltIn$8;
198
-
199
- var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
200
-
201
- var global$i = global$k;
202
- var userAgent$3 = engineUserAgent;
203
-
204
- var process$3 = global$i.process;
205
- var Deno$1 = global$i.Deno;
206
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
207
- var v8 = versions && versions.v8;
208
- var match, version;
209
-
210
- if (v8) {
211
- match = v8.split('.');
212
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
213
- // but their correct versions are not interesting for us
214
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
215
- }
216
-
217
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
218
- // so check `userAgent` even if `.v8` exists, but 0
219
- if (!version && userAgent$3) {
220
- match = userAgent$3.match(/Edge\/(\d+)/);
221
- if (!match || match[1] >= 74) {
222
- match = userAgent$3.match(/Chrome\/(\d+)/);
223
- if (match) version = +match[1];
224
- }
225
- }
226
-
227
- var engineV8Version = version;
228
-
229
- /* eslint-disable es/no-symbol -- required for testing */
230
-
231
- var V8_VERSION$1 = engineV8Version;
232
- var fails$d = fails$h;
233
-
234
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
235
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
236
- var symbol = Symbol();
237
- // Chrome 38 Symbol has incorrect toString conversion
238
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
239
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
240
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
241
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
242
- });
243
-
244
- /* eslint-disable es/no-symbol -- required for testing */
245
-
246
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
247
-
248
- var useSymbolAsUid = NATIVE_SYMBOL$1
249
- && !Symbol.sham
250
- && typeof Symbol.iterator == 'symbol';
251
-
252
- var getBuiltIn$6 = getBuiltIn$8;
253
- var isCallable$h = isCallable$k;
254
- var isPrototypeOf$3 = objectIsPrototypeOf;
255
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
256
-
257
- var $Object$3 = Object;
258
-
259
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
260
- return typeof it == 'symbol';
261
- } : function (it) {
262
- var $Symbol = getBuiltIn$6('Symbol');
263
- return isCallable$h($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
264
- };
265
-
266
- var $String$3 = String;
267
-
268
- var tryToString$4 = function (argument) {
269
- try {
270
- return $String$3(argument);
271
- } catch (error) {
272
- return 'Object';
273
- }
274
- };
275
-
276
- var isCallable$g = isCallable$k;
277
- var tryToString$3 = tryToString$4;
278
-
279
- var $TypeError$e = TypeError;
280
-
281
- // `Assert: IsCallable(argument) is true`
282
- var aCallable$8 = function (argument) {
283
- if (isCallable$g(argument)) return argument;
284
- throw $TypeError$e(tryToString$3(argument) + ' is not a function');
285
- };
286
-
287
- var aCallable$7 = aCallable$8;
288
- var isNullOrUndefined$2 = isNullOrUndefined$4;
289
-
290
- // `GetMethod` abstract operation
291
- // https://tc39.es/ecma262/#sec-getmethod
292
- var getMethod$3 = function (V, P) {
293
- var func = V[P];
294
- return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
295
- };
296
-
297
- var call$d = functionCall;
298
- var isCallable$f = isCallable$k;
299
- var isObject$9 = isObject$a;
300
-
301
- var $TypeError$d = TypeError;
302
-
303
- // `OrdinaryToPrimitive` abstract operation
304
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
305
- var ordinaryToPrimitive$1 = function (input, pref) {
306
- var fn, val;
307
- if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$9(val = call$d(fn, input))) return val;
308
- if (isCallable$f(fn = input.valueOf) && !isObject$9(val = call$d(fn, input))) return val;
309
- if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$9(val = call$d(fn, input))) return val;
310
- throw $TypeError$d("Can't convert object to primitive value");
311
- };
312
-
313
- var shared$3 = {exports: {}};
314
-
315
- var global$h = global$k;
316
-
317
- // eslint-disable-next-line es/no-object-defineproperty -- safe
318
- var defineProperty$5 = Object.defineProperty;
319
-
320
- var defineGlobalProperty$3 = function (key, value) {
321
- try {
322
- defineProperty$5(global$h, key, { value: value, configurable: true, writable: true });
323
- } catch (error) {
324
- global$h[key] = value;
325
- } return value;
326
- };
327
-
328
- var global$g = global$k;
329
- var defineGlobalProperty$2 = defineGlobalProperty$3;
330
-
331
- var SHARED = '__core-js_shared__';
332
- var store$3 = global$g[SHARED] || defineGlobalProperty$2(SHARED, {});
333
-
334
- var sharedStore = store$3;
335
-
336
- var store$2 = sharedStore;
337
-
338
- (shared$3.exports = function (key, value) {
339
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
340
- })('versions', []).push({
341
- version: '3.26.1',
342
- mode: 'global',
343
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
344
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
345
- source: 'https://github.com/zloirock/core-js'
346
- });
347
-
348
- var requireObjectCoercible$2 = requireObjectCoercible$4;
349
-
350
- var $Object$2 = Object;
351
-
352
- // `ToObject` abstract operation
353
- // https://tc39.es/ecma262/#sec-toobject
354
- var toObject$5 = function (argument) {
355
- return $Object$2(requireObjectCoercible$2(argument));
356
- };
357
-
358
- var uncurryThis$d = functionUncurryThis;
359
- var toObject$4 = toObject$5;
360
-
361
- var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
362
-
363
- // `HasOwnProperty` abstract operation
364
- // https://tc39.es/ecma262/#sec-hasownproperty
365
- // eslint-disable-next-line es/no-object-hasown -- safe
366
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
367
- return hasOwnProperty(toObject$4(it), key);
368
- };
369
-
370
- var uncurryThis$c = functionUncurryThis;
371
-
372
- var id = 0;
373
- var postfix = Math.random();
374
- var toString$4 = uncurryThis$c(1.0.toString);
375
-
376
- var uid$2 = function (key) {
377
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
378
- };
379
-
380
- var global$f = global$k;
381
- var shared$2 = shared$3.exports;
382
- var hasOwn$a = hasOwnProperty_1;
383
- var uid$1 = uid$2;
384
- var NATIVE_SYMBOL = symbolConstructorDetection;
385
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
386
-
387
- var WellKnownSymbolsStore = shared$2('wks');
388
- var Symbol$2 = global$f.Symbol;
389
- var symbolFor = Symbol$2 && Symbol$2['for'];
390
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
391
-
392
- var wellKnownSymbol$h = function (name) {
393
- if (!hasOwn$a(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
394
- var description = 'Symbol.' + name;
395
- if (NATIVE_SYMBOL && hasOwn$a(Symbol$2, name)) {
396
- WellKnownSymbolsStore[name] = Symbol$2[name];
397
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
398
- WellKnownSymbolsStore[name] = symbolFor(description);
399
- } else {
400
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
401
- }
402
- } return WellKnownSymbolsStore[name];
403
- };
404
-
405
- var call$c = functionCall;
406
- var isObject$8 = isObject$a;
407
- var isSymbol$1 = isSymbol$2;
408
- var getMethod$2 = getMethod$3;
409
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
410
- var wellKnownSymbol$g = wellKnownSymbol$h;
411
-
412
- var $TypeError$c = TypeError;
413
- var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
414
-
415
- // `ToPrimitive` abstract operation
416
- // https://tc39.es/ecma262/#sec-toprimitive
417
- var toPrimitive$1 = function (input, pref) {
418
- if (!isObject$8(input) || isSymbol$1(input)) return input;
419
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
420
- var result;
421
- if (exoticToPrim) {
422
- if (pref === undefined) pref = 'default';
423
- result = call$c(exoticToPrim, input, pref);
424
- if (!isObject$8(result) || isSymbol$1(result)) return result;
425
- throw $TypeError$c("Can't convert object to primitive value");
426
- }
427
- if (pref === undefined) pref = 'number';
428
- return ordinaryToPrimitive(input, pref);
429
- };
430
-
431
- var toPrimitive = toPrimitive$1;
432
- var isSymbol = isSymbol$2;
433
-
434
- // `ToPropertyKey` abstract operation
435
- // https://tc39.es/ecma262/#sec-topropertykey
436
- var toPropertyKey$2 = function (argument) {
437
- var key = toPrimitive(argument, 'string');
438
- return isSymbol(key) ? key : key + '';
439
- };
440
-
441
- var global$e = global$k;
442
- var isObject$7 = isObject$a;
443
-
444
- var document$3 = global$e.document;
445
- // typeof document.createElement is 'object' in old IE
446
- var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
447
-
448
- var documentCreateElement$2 = function (it) {
449
- return EXISTS$1 ? document$3.createElement(it) : {};
450
- };
451
-
452
- var DESCRIPTORS$a = descriptors;
453
- var fails$c = fails$h;
454
- var createElement$1 = documentCreateElement$2;
455
-
456
- // Thanks to IE8 for its funny defineProperty
457
- var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
458
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
459
- return Object.defineProperty(createElement$1('div'), 'a', {
460
- get: function () { return 7; }
461
- }).a != 7;
462
- });
463
-
464
- var DESCRIPTORS$9 = descriptors;
465
- var call$b = functionCall;
466
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
467
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
468
- var toIndexedObject$4 = toIndexedObject$5;
469
- var toPropertyKey$1 = toPropertyKey$2;
470
- var hasOwn$9 = hasOwnProperty_1;
471
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
472
-
473
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
474
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
475
-
476
- // `Object.getOwnPropertyDescriptor` method
477
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
478
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
479
- O = toIndexedObject$4(O);
480
- P = toPropertyKey$1(P);
481
- if (IE8_DOM_DEFINE$1) try {
482
- return $getOwnPropertyDescriptor$1(O, P);
483
- } catch (error) { /* empty */ }
484
- if (hasOwn$9(O, P)) return createPropertyDescriptor$2(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
485
- };
486
-
487
- var objectDefineProperty = {};
488
-
489
- var DESCRIPTORS$8 = descriptors;
490
- var fails$b = fails$h;
491
-
492
- // V8 ~ Chrome 36-
493
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
494
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$b(function () {
495
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
496
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
497
- value: 42,
498
- writable: false
499
- }).prototype != 42;
500
- });
501
-
502
- var isObject$6 = isObject$a;
503
-
504
- var $String$2 = String;
505
- var $TypeError$b = TypeError;
506
-
507
- // `Assert: Type(argument) is Object`
508
- var anObject$c = function (argument) {
509
- if (isObject$6(argument)) return argument;
510
- throw $TypeError$b($String$2(argument) + ' is not an object');
511
- };
512
-
513
- var DESCRIPTORS$7 = descriptors;
514
- var IE8_DOM_DEFINE = ie8DomDefine;
515
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
516
- var anObject$b = anObject$c;
517
- var toPropertyKey = toPropertyKey$2;
518
-
519
- var $TypeError$a = TypeError;
520
- // eslint-disable-next-line es/no-object-defineproperty -- safe
521
- var $defineProperty = Object.defineProperty;
522
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
523
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
524
- var ENUMERABLE = 'enumerable';
525
- var CONFIGURABLE$1 = 'configurable';
526
- var WRITABLE = 'writable';
527
-
528
- // `Object.defineProperty` method
529
- // https://tc39.es/ecma262/#sec-object.defineproperty
530
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
531
- anObject$b(O);
532
- P = toPropertyKey(P);
533
- anObject$b(Attributes);
534
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
535
- var current = $getOwnPropertyDescriptor(O, P);
536
- if (current && current[WRITABLE]) {
537
- O[P] = Attributes.value;
538
- Attributes = {
539
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
540
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
541
- writable: false
542
- };
543
- }
544
- } return $defineProperty(O, P, Attributes);
545
- } : $defineProperty : function defineProperty(O, P, Attributes) {
546
- anObject$b(O);
547
- P = toPropertyKey(P);
548
- anObject$b(Attributes);
549
- if (IE8_DOM_DEFINE) try {
550
- return $defineProperty(O, P, Attributes);
551
- } catch (error) { /* empty */ }
552
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$a('Accessors not supported');
553
- if ('value' in Attributes) O[P] = Attributes.value;
554
- return O;
555
- };
556
-
557
- var DESCRIPTORS$6 = descriptors;
558
- var definePropertyModule$4 = objectDefineProperty;
559
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
560
-
561
- var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
562
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
563
- } : function (object, key, value) {
564
- object[key] = value;
565
- return object;
566
- };
567
-
568
- var makeBuiltIn$2 = {exports: {}};
569
-
570
- var DESCRIPTORS$5 = descriptors;
571
- var hasOwn$8 = hasOwnProperty_1;
572
-
573
- var FunctionPrototype$1 = Function.prototype;
574
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
575
- var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
576
-
577
- var EXISTS = hasOwn$8(FunctionPrototype$1, 'name');
578
- // additional protection from minified / mangled / dropped function names
579
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
580
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
581
-
582
- var functionName = {
583
- EXISTS: EXISTS,
584
- PROPER: PROPER,
585
- CONFIGURABLE: CONFIGURABLE
586
- };
587
-
588
- var uncurryThis$b = functionUncurryThis;
589
- var isCallable$e = isCallable$k;
590
- var store$1 = sharedStore;
591
-
592
- var functionToString = uncurryThis$b(Function.toString);
593
-
594
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
595
- if (!isCallable$e(store$1.inspectSource)) {
596
- store$1.inspectSource = function (it) {
597
- return functionToString(it);
598
- };
599
- }
600
-
601
- var inspectSource$3 = store$1.inspectSource;
602
-
603
- var global$d = global$k;
604
- var isCallable$d = isCallable$k;
605
-
606
- var WeakMap$2 = global$d.WeakMap;
607
-
608
- var weakMapBasicDetection = isCallable$d(WeakMap$2) && /native code/.test(String(WeakMap$2));
609
-
610
- var shared$1 = shared$3.exports;
611
- var uid = uid$2;
612
-
613
- var keys = shared$1('keys');
614
-
615
- var sharedKey$3 = function (key) {
616
- return keys[key] || (keys[key] = uid(key));
617
- };
618
-
619
- var hiddenKeys$4 = {};
620
-
621
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
622
- var global$c = global$k;
623
- var isObject$5 = isObject$a;
624
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
625
- var hasOwn$7 = hasOwnProperty_1;
626
- var shared = sharedStore;
627
- var sharedKey$2 = sharedKey$3;
628
- var hiddenKeys$3 = hiddenKeys$4;
629
-
630
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
631
- var TypeError$2 = global$c.TypeError;
632
- var WeakMap$1 = global$c.WeakMap;
633
- var set$1, get, has;
634
-
635
- var enforce = function (it) {
636
- return has(it) ? get(it) : set$1(it, {});
637
- };
638
-
639
- var getterFor = function (TYPE) {
640
- return function (it) {
641
- var state;
642
- if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
643
- throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
644
- } return state;
645
- };
646
- };
647
-
648
- if (NATIVE_WEAK_MAP || shared.state) {
649
- var store = shared.state || (shared.state = new WeakMap$1());
650
- /* eslint-disable no-self-assign -- prototype methods protection */
651
- store.get = store.get;
652
- store.has = store.has;
653
- store.set = store.set;
654
- /* eslint-enable no-self-assign -- prototype methods protection */
655
- set$1 = function (it, metadata) {
656
- if (store.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
657
- metadata.facade = it;
658
- store.set(it, metadata);
659
- return metadata;
660
- };
661
- get = function (it) {
662
- return store.get(it) || {};
663
- };
664
- has = function (it) {
665
- return store.has(it);
666
- };
667
- } else {
668
- var STATE = sharedKey$2('state');
669
- hiddenKeys$3[STATE] = true;
670
- set$1 = function (it, metadata) {
671
- if (hasOwn$7(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
672
- metadata.facade = it;
673
- createNonEnumerableProperty$3(it, STATE, metadata);
674
- return metadata;
675
- };
676
- get = function (it) {
677
- return hasOwn$7(it, STATE) ? it[STATE] : {};
678
- };
679
- has = function (it) {
680
- return hasOwn$7(it, STATE);
681
- };
682
- }
683
-
684
- var internalState = {
685
- set: set$1,
686
- get: get,
687
- has: has,
688
- enforce: enforce,
689
- getterFor: getterFor
690
- };
691
-
692
- var fails$a = fails$h;
693
- var isCallable$c = isCallable$k;
694
- var hasOwn$6 = hasOwnProperty_1;
695
- var DESCRIPTORS$4 = descriptors;
696
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
697
- var inspectSource$2 = inspectSource$3;
698
- var InternalStateModule$2 = internalState;
699
-
700
- var enforceInternalState = InternalStateModule$2.enforce;
701
- var getInternalState$1 = InternalStateModule$2.get;
702
- // eslint-disable-next-line es/no-object-defineproperty -- safe
703
- var defineProperty$4 = Object.defineProperty;
704
-
705
- var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$a(function () {
706
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
707
- });
708
-
709
- var TEMPLATE = String(String).split('String');
710
-
711
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
712
- if (String(name).slice(0, 7) === 'Symbol(') {
713
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
714
- }
715
- if (options && options.getter) name = 'get ' + name;
716
- if (options && options.setter) name = 'set ' + name;
717
- if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
718
- if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
719
- else value.name = name;
720
- }
721
- if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
722
- defineProperty$4(value, 'length', { value: options.arity });
723
- }
724
- try {
725
- if (options && hasOwn$6(options, 'constructor') && options.constructor) {
726
- if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
727
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
728
- } else if (value.prototype) value.prototype = undefined;
729
- } catch (error) { /* empty */ }
730
- var state = enforceInternalState(value);
731
- if (!hasOwn$6(state, 'source')) {
732
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
733
- } return value;
734
- };
735
-
736
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
737
- // eslint-disable-next-line no-extend-native -- required
738
- Function.prototype.toString = makeBuiltIn$1(function toString() {
739
- return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
740
- }, 'toString');
741
-
742
- var isCallable$b = isCallable$k;
743
- var definePropertyModule$3 = objectDefineProperty;
744
- var makeBuiltIn = makeBuiltIn$2.exports;
745
- var defineGlobalProperty$1 = defineGlobalProperty$3;
746
-
747
- var defineBuiltIn$6 = function (O, key, value, options) {
748
- if (!options) options = {};
749
- var simple = options.enumerable;
750
- var name = options.name !== undefined ? options.name : key;
751
- if (isCallable$b(value)) makeBuiltIn(value, name, options);
752
- if (options.global) {
753
- if (simple) O[key] = value;
754
- else defineGlobalProperty$1(key, value);
755
- } else {
756
- try {
757
- if (!options.unsafe) delete O[key];
758
- else if (O[key]) simple = true;
759
- } catch (error) { /* empty */ }
760
- if (simple) O[key] = value;
761
- else definePropertyModule$3.f(O, key, {
762
- value: value,
763
- enumerable: false,
764
- configurable: !options.nonConfigurable,
765
- writable: !options.nonWritable
766
- });
767
- } return O;
768
- };
769
-
770
- var objectGetOwnPropertyNames = {};
771
-
772
- var ceil = Math.ceil;
773
- var floor = Math.floor;
774
-
775
- // `Math.trunc` method
776
- // https://tc39.es/ecma262/#sec-math.trunc
777
- // eslint-disable-next-line es/no-math-trunc -- safe
778
- var mathTrunc = Math.trunc || function trunc(x) {
779
- var n = +x;
780
- return (n > 0 ? floor : ceil)(n);
781
- };
782
-
783
- var trunc = mathTrunc;
784
-
785
- // `ToIntegerOrInfinity` abstract operation
786
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
787
- var toIntegerOrInfinity$3 = function (argument) {
788
- var number = +argument;
789
- // eslint-disable-next-line no-self-compare -- NaN check
790
- return number !== number || number === 0 ? 0 : trunc(number);
791
- };
792
-
793
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
794
-
795
- var max = Math.max;
796
- var min$1 = Math.min;
797
-
798
- // Helper for a popular repeating case of the spec:
799
- // Let integer be ? ToInteger(index).
800
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
801
- var toAbsoluteIndex$1 = function (index, length) {
802
- var integer = toIntegerOrInfinity$2(index);
803
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
804
- };
805
-
806
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
807
-
808
- var min = Math.min;
809
-
810
- // `ToLength` abstract operation
811
- // https://tc39.es/ecma262/#sec-tolength
812
- var toLength$1 = function (argument) {
813
- return argument > 0 ? min(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
814
- };
815
-
816
- var toLength = toLength$1;
817
-
818
- // `LengthOfArrayLike` abstract operation
819
- // https://tc39.es/ecma262/#sec-lengthofarraylike
820
- var lengthOfArrayLike$5 = function (obj) {
821
- return toLength(obj.length);
822
- };
823
-
824
- var toIndexedObject$3 = toIndexedObject$5;
825
- var toAbsoluteIndex = toAbsoluteIndex$1;
826
- var lengthOfArrayLike$4 = lengthOfArrayLike$5;
827
-
828
- // `Array.prototype.{ indexOf, includes }` methods implementation
829
- var createMethod$2 = function (IS_INCLUDES) {
830
- return function ($this, el, fromIndex) {
831
- var O = toIndexedObject$3($this);
832
- var length = lengthOfArrayLike$4(O);
833
- var index = toAbsoluteIndex(fromIndex, length);
834
- var value;
835
- // Array#includes uses SameValueZero equality algorithm
836
- // eslint-disable-next-line no-self-compare -- NaN check
837
- if (IS_INCLUDES && el != el) while (length > index) {
838
- value = O[index++];
839
- // eslint-disable-next-line no-self-compare -- NaN check
840
- if (value != value) return true;
841
- // Array#indexOf ignores holes, Array#includes - not
842
- } else for (;length > index; index++) {
843
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
844
- } return !IS_INCLUDES && -1;
845
- };
846
- };
847
-
848
- var arrayIncludes = {
849
- // `Array.prototype.includes` method
850
- // https://tc39.es/ecma262/#sec-array.prototype.includes
851
- includes: createMethod$2(true),
852
- // `Array.prototype.indexOf` method
853
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
854
- indexOf: createMethod$2(false)
855
- };
856
-
857
- var uncurryThis$a = functionUncurryThis;
858
- var hasOwn$5 = hasOwnProperty_1;
859
- var toIndexedObject$2 = toIndexedObject$5;
860
- var indexOf = arrayIncludes.indexOf;
861
- var hiddenKeys$2 = hiddenKeys$4;
862
-
863
- var push = uncurryThis$a([].push);
864
-
865
- var objectKeysInternal = function (object, names) {
866
- var O = toIndexedObject$2(object);
867
- var i = 0;
868
- var result = [];
869
- var key;
870
- for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push(result, key);
871
- // Don't enum bug & hidden keys
872
- while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
873
- ~indexOf(result, key) || push(result, key);
874
- }
875
- return result;
876
- };
877
-
878
- // IE8- don't enum bug keys
879
- var enumBugKeys$3 = [
880
- 'constructor',
881
- 'hasOwnProperty',
882
- 'isPrototypeOf',
883
- 'propertyIsEnumerable',
884
- 'toLocaleString',
885
- 'toString',
886
- 'valueOf'
887
- ];
888
-
889
- var internalObjectKeys$1 = objectKeysInternal;
890
- var enumBugKeys$2 = enumBugKeys$3;
891
-
892
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
893
-
894
- // `Object.getOwnPropertyNames` method
895
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
896
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
897
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
898
- return internalObjectKeys$1(O, hiddenKeys$1);
899
- };
900
-
901
- var objectGetOwnPropertySymbols = {};
902
-
903
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
904
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
905
-
906
- var getBuiltIn$5 = getBuiltIn$8;
907
- var uncurryThis$9 = functionUncurryThis;
908
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
909
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
910
- var anObject$a = anObject$c;
911
-
912
- var concat$1 = uncurryThis$9([].concat);
913
-
914
- // all object keys, includes non-enumerable and symbols
915
- var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
916
- var keys = getOwnPropertyNamesModule.f(anObject$a(it));
917
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
918
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
919
- };
920
-
921
- var hasOwn$4 = hasOwnProperty_1;
922
- var ownKeys = ownKeys$1;
923
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
924
- var definePropertyModule$2 = objectDefineProperty;
925
-
926
- var copyConstructorProperties$1 = function (target, source, exceptions) {
927
- var keys = ownKeys(source);
928
- var defineProperty = definePropertyModule$2.f;
929
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
930
- for (var i = 0; i < keys.length; i++) {
931
- var key = keys[i];
932
- if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
933
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
934
- }
935
- }
936
- };
937
-
938
- var fails$9 = fails$h;
939
- var isCallable$a = isCallable$k;
940
-
941
- var replacement = /#|\.prototype\./;
942
-
943
- var isForced$2 = function (feature, detection) {
944
- var value = data[normalize(feature)];
945
- return value == POLYFILL ? true
946
- : value == NATIVE ? false
947
- : isCallable$a(detection) ? fails$9(detection)
948
- : !!detection;
949
- };
950
-
951
- var normalize = isForced$2.normalize = function (string) {
952
- return String(string).replace(replacement, '.').toLowerCase();
953
- };
954
-
955
- var data = isForced$2.data = {};
956
- var NATIVE = isForced$2.NATIVE = 'N';
957
- var POLYFILL = isForced$2.POLYFILL = 'P';
958
-
959
- var isForced_1 = isForced$2;
960
-
961
- var global$b = global$k;
962
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
963
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
964
- var defineBuiltIn$5 = defineBuiltIn$6;
965
- var defineGlobalProperty = defineGlobalProperty$3;
966
- var copyConstructorProperties = copyConstructorProperties$1;
967
- var isForced$1 = isForced_1;
968
-
969
- /*
970
- options.target - name of the target object
971
- options.global - target is the global object
972
- options.stat - export as static methods of target
973
- options.proto - export as prototype methods of target
974
- options.real - real prototype method for the `pure` version
975
- options.forced - export even if the native feature is available
976
- options.bind - bind methods to the target, required for the `pure` version
977
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
978
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
979
- options.sham - add a flag to not completely full polyfills
980
- options.enumerable - export as enumerable property
981
- options.dontCallGetSet - prevent calling a getter on target
982
- options.name - the .name of the function if it does not match the key
983
- */
984
- var _export = function (options, source) {
985
- var TARGET = options.target;
986
- var GLOBAL = options.global;
987
- var STATIC = options.stat;
988
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
989
- if (GLOBAL) {
990
- target = global$b;
991
- } else if (STATIC) {
992
- target = global$b[TARGET] || defineGlobalProperty(TARGET, {});
993
- } else {
994
- target = (global$b[TARGET] || {}).prototype;
995
- }
996
- if (target) for (key in source) {
997
- sourceProperty = source[key];
998
- if (options.dontCallGetSet) {
999
- descriptor = getOwnPropertyDescriptor$1(target, key);
1000
- targetProperty = descriptor && descriptor.value;
1001
- } else targetProperty = target[key];
1002
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1003
- // contained in target
1004
- if (!FORCED && targetProperty !== undefined) {
1005
- if (typeof sourceProperty == typeof targetProperty) continue;
1006
- copyConstructorProperties(sourceProperty, targetProperty);
1007
- }
1008
- // add a flag to not completely full polyfills
1009
- if (options.sham || (targetProperty && targetProperty.sham)) {
1010
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1011
- }
1012
- defineBuiltIn$5(target, key, sourceProperty, options);
1013
- }
1014
- };
1015
-
1016
- var classof$6 = classofRaw$2;
1017
- var global$a = global$k;
1018
-
1019
- var engineIsNode = classof$6(global$a.process) == 'process';
1020
-
1021
- var isCallable$9 = isCallable$k;
1022
-
1023
- var $String$1 = String;
1024
- var $TypeError$9 = TypeError;
1025
-
1026
- var aPossiblePrototype$1 = function (argument) {
1027
- if (typeof argument == 'object' || isCallable$9(argument)) return argument;
1028
- throw $TypeError$9("Can't set " + $String$1(argument) + ' as a prototype');
1029
- };
1030
-
1031
- /* eslint-disable no-proto -- safe */
1032
-
1033
- var uncurryThis$8 = functionUncurryThis;
1034
- var anObject$9 = anObject$c;
1035
- var aPossiblePrototype = aPossiblePrototype$1;
1036
-
1037
- // `Object.setPrototypeOf` method
1038
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1039
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1040
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1041
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1042
- var CORRECT_SETTER = false;
1043
- var test = {};
1044
- var setter;
1045
- try {
1046
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1047
- setter = uncurryThis$8(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1048
- setter(test, []);
1049
- CORRECT_SETTER = test instanceof Array;
1050
- } catch (error) { /* empty */ }
1051
- return function setPrototypeOf(O, proto) {
1052
- anObject$9(O);
1053
- aPossiblePrototype(proto);
1054
- if (CORRECT_SETTER) setter(O, proto);
1055
- else O.__proto__ = proto;
1056
- return O;
1057
- };
1058
- }() : undefined);
1059
-
1060
- var defineProperty$3 = objectDefineProperty.f;
1061
- var hasOwn$3 = hasOwnProperty_1;
1062
- var wellKnownSymbol$f = wellKnownSymbol$h;
1063
-
1064
- var TO_STRING_TAG$3 = wellKnownSymbol$f('toStringTag');
1065
-
1066
- var setToStringTag$3 = function (target, TAG, STATIC) {
1067
- if (target && !STATIC) target = target.prototype;
1068
- if (target && !hasOwn$3(target, TO_STRING_TAG$3)) {
1069
- defineProperty$3(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1070
- }
1071
- };
1072
-
1073
- var getBuiltIn$4 = getBuiltIn$8;
1074
- var definePropertyModule$1 = objectDefineProperty;
1075
- var wellKnownSymbol$e = wellKnownSymbol$h;
1076
- var DESCRIPTORS$3 = descriptors;
1077
-
1078
- var SPECIES$3 = wellKnownSymbol$e('species');
1079
-
1080
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1081
- var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1082
- var defineProperty = definePropertyModule$1.f;
1083
-
1084
- if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$3]) {
1085
- defineProperty(Constructor, SPECIES$3, {
1086
- configurable: true,
1087
- get: function () { return this; }
1088
- });
1089
- }
1090
- };
1091
-
1092
- var isPrototypeOf$2 = objectIsPrototypeOf;
1093
-
1094
- var $TypeError$8 = TypeError;
1095
-
1096
- var anInstance$1 = function (it, Prototype) {
1097
- if (isPrototypeOf$2(Prototype, it)) return it;
1098
- throw $TypeError$8('Incorrect invocation');
1099
- };
1100
-
1101
- var wellKnownSymbol$d = wellKnownSymbol$h;
1102
-
1103
- var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
1104
- var test = {};
1105
-
1106
- test[TO_STRING_TAG$2] = 'z';
1107
-
1108
- var toStringTagSupport = String(test) === '[object z]';
1109
-
1110
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1111
- var isCallable$8 = isCallable$k;
1112
- var classofRaw$1 = classofRaw$2;
1113
- var wellKnownSymbol$c = wellKnownSymbol$h;
1114
-
1115
- var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
1116
- var $Object$1 = Object;
1117
-
1118
- // ES3 wrong here
1119
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1120
-
1121
- // fallback for IE11 Script Access Denied error
1122
- var tryGet = function (it, key) {
1123
- try {
1124
- return it[key];
1125
- } catch (error) { /* empty */ }
1126
- };
1127
-
1128
- // getting tag from ES6+ `Object.prototype.toString`
1129
- var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1130
- var O, tag, result;
1131
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1132
- // @@toStringTag case
1133
- : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
1134
- // builtinTag case
1135
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1136
- // ES3 arguments fallback
1137
- : (result = classofRaw$1(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
1138
- };
1139
-
1140
- var uncurryThis$7 = functionUncurryThis;
1141
- var fails$8 = fails$h;
1142
- var isCallable$7 = isCallable$k;
1143
- var classof$4 = classof$5;
1144
- var getBuiltIn$3 = getBuiltIn$8;
1145
- var inspectSource$1 = inspectSource$3;
1146
-
1147
- var noop = function () { /* empty */ };
1148
- var empty = [];
1149
- var construct = getBuiltIn$3('Reflect', 'construct');
1150
- var constructorRegExp = /^\s*(?:class|function)\b/;
1151
- var exec$1 = uncurryThis$7(constructorRegExp.exec);
1152
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1153
-
1154
- var isConstructorModern = function isConstructor(argument) {
1155
- if (!isCallable$7(argument)) return false;
1156
- try {
1157
- construct(noop, empty, argument);
1158
- return true;
1159
- } catch (error) {
1160
- return false;
1161
- }
1162
- };
1163
-
1164
- var isConstructorLegacy = function isConstructor(argument) {
1165
- if (!isCallable$7(argument)) return false;
1166
- switch (classof$4(argument)) {
1167
- case 'AsyncFunction':
1168
- case 'GeneratorFunction':
1169
- case 'AsyncGeneratorFunction': return false;
1170
- }
1171
- try {
1172
- // we can't check .prototype since constructors produced by .bind haven't it
1173
- // `Function#toString` throws on some built-it function in some legacy engines
1174
- // (for example, `DOMQuad` and similar in FF41-)
1175
- return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
1176
- } catch (error) {
1177
- return true;
1178
- }
1179
- };
1180
-
1181
- isConstructorLegacy.sham = true;
1182
-
1183
- // `IsConstructor` abstract operation
1184
- // https://tc39.es/ecma262/#sec-isconstructor
1185
- var isConstructor$2 = !construct || fails$8(function () {
1186
- var called;
1187
- return isConstructorModern(isConstructorModern.call)
1188
- || !isConstructorModern(Object)
1189
- || !isConstructorModern(function () { called = true; })
1190
- || called;
1191
- }) ? isConstructorLegacy : isConstructorModern;
1192
-
1193
- var isConstructor$1 = isConstructor$2;
1194
- var tryToString$2 = tryToString$4;
1195
-
1196
- var $TypeError$7 = TypeError;
1197
-
1198
- // `Assert: IsConstructor(argument) is true`
1199
- var aConstructor$1 = function (argument) {
1200
- if (isConstructor$1(argument)) return argument;
1201
- throw $TypeError$7(tryToString$2(argument) + ' is not a constructor');
1202
- };
1203
-
1204
- var anObject$8 = anObject$c;
1205
- var aConstructor = aConstructor$1;
1206
- var isNullOrUndefined$1 = isNullOrUndefined$4;
1207
- var wellKnownSymbol$b = wellKnownSymbol$h;
1208
-
1209
- var SPECIES$2 = wellKnownSymbol$b('species');
1210
-
1211
- // `SpeciesConstructor` abstract operation
1212
- // https://tc39.es/ecma262/#sec-speciesconstructor
1213
- var speciesConstructor$1 = function (O, defaultConstructor) {
1214
- var C = anObject$8(O).constructor;
1215
- var S;
1216
- return C === undefined || isNullOrUndefined$1(S = anObject$8(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
1217
- };
1218
-
1219
- var NATIVE_BIND$1 = functionBindNative;
1220
-
1221
- var FunctionPrototype = Function.prototype;
1222
- var apply$1 = FunctionPrototype.apply;
1223
- var call$a = FunctionPrototype.call;
1224
-
1225
- // eslint-disable-next-line es/no-reflect -- safe
1226
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$a.bind(apply$1) : function () {
1227
- return call$a.apply(apply$1, arguments);
1228
- });
1229
-
1230
- var classofRaw = classofRaw$2;
1231
- var uncurryThis$6 = functionUncurryThis;
1232
-
1233
- var functionUncurryThisClause = function (fn) {
1234
- // Nashorn bug:
1235
- // https://github.com/zloirock/core-js/issues/1128
1236
- // https://github.com/zloirock/core-js/issues/1130
1237
- if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
1238
- };
1239
-
1240
- var uncurryThis$5 = functionUncurryThisClause;
1241
- var aCallable$6 = aCallable$8;
1242
- var NATIVE_BIND = functionBindNative;
1243
-
1244
- var bind$5 = uncurryThis$5(uncurryThis$5.bind);
1245
-
1246
- // optional / simple context binding
1247
- var functionBindContext = function (fn, that) {
1248
- aCallable$6(fn);
1249
- return that === undefined ? fn : NATIVE_BIND ? bind$5(fn, that) : function (/* ...args */) {
1250
- return fn.apply(that, arguments);
1251
- };
1252
- };
1253
-
1254
- var getBuiltIn$2 = getBuiltIn$8;
1255
-
1256
- var html$2 = getBuiltIn$2('document', 'documentElement');
1257
-
1258
- var uncurryThis$4 = functionUncurryThis;
1259
-
1260
- var arraySlice$1 = uncurryThis$4([].slice);
1261
-
1262
- var $TypeError$6 = TypeError;
1263
-
1264
- var validateArgumentsLength$1 = function (passed, required) {
1265
- if (passed < required) throw $TypeError$6('Not enough arguments');
1266
- return passed;
1267
- };
1268
-
1269
- var userAgent$2 = engineUserAgent;
1270
-
1271
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1272
-
1273
- var global$9 = global$k;
1274
- var apply = functionApply;
1275
- var bind$4 = functionBindContext;
1276
- var isCallable$6 = isCallable$k;
1277
- var hasOwn$2 = hasOwnProperty_1;
1278
- var fails$7 = fails$h;
1279
- var html$1 = html$2;
1280
- var arraySlice = arraySlice$1;
1281
- var createElement = documentCreateElement$2;
1282
- var validateArgumentsLength = validateArgumentsLength$1;
1283
- var IS_IOS$1 = engineIsIos;
1284
- var IS_NODE$4 = engineIsNode;
1285
-
1286
- var set = global$9.setImmediate;
1287
- var clear = global$9.clearImmediate;
1288
- var process$2 = global$9.process;
1289
- var Dispatch = global$9.Dispatch;
1290
- var Function$1 = global$9.Function;
1291
- var MessageChannel = global$9.MessageChannel;
1292
- var String$1 = global$9.String;
1293
- var counter = 0;
1294
- var queue$1 = {};
1295
- var ONREADYSTATECHANGE = 'onreadystatechange';
1296
- var $location, defer, channel, port;
1297
-
1298
- try {
1299
- // Deno throws a ReferenceError on `location` access without `--location` flag
1300
- $location = global$9.location;
1301
- } catch (error) { /* empty */ }
1302
-
1303
- var run = function (id) {
1304
- if (hasOwn$2(queue$1, id)) {
1305
- var fn = queue$1[id];
1306
- delete queue$1[id];
1307
- fn();
1308
- }
1309
- };
1310
-
1311
- var runner = function (id) {
1312
- return function () {
1313
- run(id);
1314
- };
1315
- };
1316
-
1317
- var listener = function (event) {
1318
- run(event.data);
1319
- };
1320
-
1321
- var post = function (id) {
1322
- // old engines have not location.origin
1323
- global$9.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1324
- };
1325
-
1326
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1327
- if (!set || !clear) {
1328
- set = function setImmediate(handler) {
1329
- validateArgumentsLength(arguments.length, 1);
1330
- var fn = isCallable$6(handler) ? handler : Function$1(handler);
1331
- var args = arraySlice(arguments, 1);
1332
- queue$1[++counter] = function () {
1333
- apply(fn, undefined, args);
1334
- };
1335
- defer(counter);
1336
- return counter;
1337
- };
1338
- clear = function clearImmediate(id) {
1339
- delete queue$1[id];
1340
- };
1341
- // Node.js 0.8-
1342
- if (IS_NODE$4) {
1343
- defer = function (id) {
1344
- process$2.nextTick(runner(id));
1345
- };
1346
- // Sphere (JS game engine) Dispatch API
1347
- } else if (Dispatch && Dispatch.now) {
1348
- defer = function (id) {
1349
- Dispatch.now(runner(id));
1350
- };
1351
- // Browsers with MessageChannel, includes WebWorkers
1352
- // except iOS - https://github.com/zloirock/core-js/issues/624
1353
- } else if (MessageChannel && !IS_IOS$1) {
1354
- channel = new MessageChannel();
1355
- port = channel.port2;
1356
- channel.port1.onmessage = listener;
1357
- defer = bind$4(port.postMessage, port);
1358
- // Browsers with postMessage, skip WebWorkers
1359
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1360
- } else if (
1361
- global$9.addEventListener &&
1362
- isCallable$6(global$9.postMessage) &&
1363
- !global$9.importScripts &&
1364
- $location && $location.protocol !== 'file:' &&
1365
- !fails$7(post)
1366
- ) {
1367
- defer = post;
1368
- global$9.addEventListener('message', listener, false);
1369
- // IE8-
1370
- } else if (ONREADYSTATECHANGE in createElement('script')) {
1371
- defer = function (id) {
1372
- html$1.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1373
- html$1.removeChild(this);
1374
- run(id);
1375
- };
1376
- };
1377
- // Rest old browsers
1378
- } else {
1379
- defer = function (id) {
1380
- setTimeout(runner(id), 0);
1381
- };
1382
- }
1383
- }
1384
-
1385
- var task$1 = {
1386
- set: set,
1387
- clear: clear
1388
- };
1389
-
1390
- var userAgent$1 = engineUserAgent;
1391
- var global$8 = global$k;
1392
-
1393
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$8.Pebble !== undefined;
1394
-
1395
- var userAgent = engineUserAgent;
1396
-
1397
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1398
-
1399
- var global$7 = global$k;
1400
- var bind$3 = functionBindContext;
1401
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1402
- var macrotask = task$1.set;
1403
- var IS_IOS = engineIsIos;
1404
- var IS_IOS_PEBBLE = engineIsIosPebble;
1405
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1406
- var IS_NODE$3 = engineIsNode;
1407
-
1408
- var MutationObserver = global$7.MutationObserver || global$7.WebKitMutationObserver;
1409
- var document$2 = global$7.document;
1410
- var process$1 = global$7.process;
1411
- var Promise$1 = global$7.Promise;
1412
- // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1413
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$7, 'queueMicrotask');
1414
- var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1415
-
1416
- var flush, head, last, notify$1, toggle, node, promise, then;
1417
-
1418
- // modern engines have queueMicrotask method
1419
- if (!queueMicrotask) {
1420
- flush = function () {
1421
- var parent, fn;
1422
- if (IS_NODE$3 && (parent = process$1.domain)) parent.exit();
1423
- while (head) {
1424
- fn = head.fn;
1425
- head = head.next;
1426
- try {
1427
- fn();
1428
- } catch (error) {
1429
- if (head) notify$1();
1430
- else last = undefined;
1431
- throw error;
1432
- }
1433
- } last = undefined;
1434
- if (parent) parent.enter();
1435
- };
1436
-
1437
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1438
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1439
- if (!IS_IOS && !IS_NODE$3 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1440
- toggle = true;
1441
- node = document$2.createTextNode('');
1442
- new MutationObserver(flush).observe(node, { characterData: true });
1443
- notify$1 = function () {
1444
- node.data = toggle = !toggle;
1445
- };
1446
- // environments with maybe non-completely correct, but existent Promise
1447
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1448
- // Promise.resolve without an argument throws an error in LG WebOS 2
1449
- promise = Promise$1.resolve(undefined);
1450
- // workaround of WebKit ~ iOS Safari 10.1 bug
1451
- promise.constructor = Promise$1;
1452
- then = bind$3(promise.then, promise);
1453
- notify$1 = function () {
1454
- then(flush);
1455
- };
1456
- // Node.js without promises
1457
- } else if (IS_NODE$3) {
1458
- notify$1 = function () {
1459
- process$1.nextTick(flush);
1460
- };
1461
- // for other environments - macrotask based on:
1462
- // - setImmediate
1463
- // - MessageChannel
1464
- // - window.postMessage
1465
- // - onreadystatechange
1466
- // - setTimeout
1467
- } else {
1468
- // strange IE + webpack dev server bug - use .bind(global)
1469
- macrotask = bind$3(macrotask, global$7);
1470
- notify$1 = function () {
1471
- macrotask(flush);
1472
- };
1473
- }
1474
- }
1475
-
1476
- var microtask$1 = queueMicrotask || function (fn) {
1477
- var task = { fn: fn, next: undefined };
1478
- if (last) last.next = task;
1479
- if (!head) {
1480
- head = task;
1481
- notify$1();
1482
- } last = task;
1483
- };
1484
-
1485
- var global$6 = global$k;
1486
-
1487
- var hostReportErrors$1 = function (a, b) {
1488
- var console = global$6.console;
1489
- if (console && console.error) {
1490
- arguments.length == 1 ? console.error(a) : console.error(a, b);
1491
- }
1492
- };
1493
-
1494
- var perform$3 = function (exec) {
1495
- try {
1496
- return { error: false, value: exec() };
1497
- } catch (error) {
1498
- return { error: true, value: error };
1499
- }
1500
- };
1501
-
1502
- var Queue$1 = function () {
1503
- this.head = null;
1504
- this.tail = null;
1505
- };
1506
-
1507
- Queue$1.prototype = {
1508
- add: function (item) {
1509
- var entry = { item: item, next: null };
1510
- if (this.head) this.tail.next = entry;
1511
- else this.head = entry;
1512
- this.tail = entry;
1513
- },
1514
- get: function () {
1515
- var entry = this.head;
1516
- if (entry) {
1517
- this.head = entry.next;
1518
- if (this.tail === entry) this.tail = null;
1519
- return entry.item;
1520
- }
1521
- }
1522
- };
1523
-
1524
- var queue = Queue$1;
1525
-
1526
- var global$5 = global$k;
1527
-
1528
- var promiseNativeConstructor = global$5.Promise;
1529
-
1530
- /* global Deno -- Deno case */
1531
-
1532
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
1533
-
1534
- var IS_DENO$1 = engineIsDeno;
1535
- var IS_NODE$2 = engineIsNode;
1536
-
1537
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$2
1538
- && typeof window == 'object'
1539
- && typeof document == 'object';
1540
-
1541
- var global$4 = global$k;
1542
- var NativePromiseConstructor$3 = promiseNativeConstructor;
1543
- var isCallable$5 = isCallable$k;
1544
- var isForced = isForced_1;
1545
- var inspectSource = inspectSource$3;
1546
- var wellKnownSymbol$a = wellKnownSymbol$h;
1547
- var IS_BROWSER = engineIsBrowser;
1548
- var IS_DENO = engineIsDeno;
1549
- var V8_VERSION = engineV8Version;
1550
-
1551
- NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1552
- var SPECIES$1 = wellKnownSymbol$a('species');
1553
- var SUBCLASSING = false;
1554
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(global$4.PromiseRejectionEvent);
1555
-
1556
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1557
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
1558
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
1559
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1560
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1561
- // We can't detect it synchronously, so just check versions
1562
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1563
- // We can't use @@species feature detection in V8 since it causes
1564
- // deoptimization and performance degradation
1565
- // https://github.com/zloirock/core-js/issues/679
1566
- if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
1567
- // Detect correctness of subclassing with @@species support
1568
- var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
1569
- var FakePromise = function (exec) {
1570
- exec(function () { /* empty */ }, function () { /* empty */ });
1571
- };
1572
- var constructor = promise.constructor = {};
1573
- constructor[SPECIES$1] = FakePromise;
1574
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1575
- if (!SUBCLASSING) return true;
1576
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1577
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
1578
- });
1579
-
1580
- var promiseConstructorDetection = {
1581
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
1582
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
1583
- SUBCLASSING: SUBCLASSING
1584
- };
1585
-
1586
- var newPromiseCapability$2 = {};
1587
-
1588
- var aCallable$5 = aCallable$8;
1589
-
1590
- var $TypeError$5 = TypeError;
1591
-
1592
- var PromiseCapability = function (C) {
1593
- var resolve, reject;
1594
- this.promise = new C(function ($$resolve, $$reject) {
1595
- if (resolve !== undefined || reject !== undefined) throw $TypeError$5('Bad Promise constructor');
1596
- resolve = $$resolve;
1597
- reject = $$reject;
1598
- });
1599
- this.resolve = aCallable$5(resolve);
1600
- this.reject = aCallable$5(reject);
1601
- };
1602
-
1603
- // `NewPromiseCapability` abstract operation
1604
- // https://tc39.es/ecma262/#sec-newpromisecapability
1605
- newPromiseCapability$2.f = function (C) {
1606
- return new PromiseCapability(C);
1607
- };
1608
-
1609
- var $$c = _export;
1610
- var IS_NODE$1 = engineIsNode;
1611
- var global$3 = global$k;
1612
- var call$9 = functionCall;
1613
- var defineBuiltIn$4 = defineBuiltIn$6;
1614
- var setPrototypeOf$1 = objectSetPrototypeOf;
1615
- var setToStringTag$2 = setToStringTag$3;
1616
- var setSpecies = setSpecies$1;
1617
- var aCallable$4 = aCallable$8;
1618
- var isCallable$4 = isCallable$k;
1619
- var isObject$4 = isObject$a;
1620
- var anInstance = anInstance$1;
1621
- var speciesConstructor = speciesConstructor$1;
1622
- var task = task$1.set;
1623
- var microtask = microtask$1;
1624
- var hostReportErrors = hostReportErrors$1;
1625
- var perform$2 = perform$3;
1626
- var Queue = queue;
1627
- var InternalStateModule$1 = internalState;
1628
- var NativePromiseConstructor$2 = promiseNativeConstructor;
1629
- var PromiseConstructorDetection = promiseConstructorDetection;
1630
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
1631
-
1632
- var PROMISE = 'Promise';
1633
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
1634
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
1635
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1636
- var getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);
1637
- var setInternalState$1 = InternalStateModule$1.set;
1638
- var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1639
- var PromiseConstructor = NativePromiseConstructor$2;
1640
- var PromisePrototype = NativePromisePrototype$1;
1641
- var TypeError$1 = global$3.TypeError;
1642
- var document$1 = global$3.document;
1643
- var process = global$3.process;
1644
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
1645
- var newGenericPromiseCapability = newPromiseCapability$1;
1646
-
1647
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$3.dispatchEvent);
1648
- var UNHANDLED_REJECTION = 'unhandledrejection';
1649
- var REJECTION_HANDLED = 'rejectionhandled';
1650
- var PENDING = 0;
1651
- var FULFILLED = 1;
1652
- var REJECTED = 2;
1653
- var HANDLED = 1;
1654
- var UNHANDLED = 2;
1655
-
1656
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1657
-
1658
- // helpers
1659
- var isThenable = function (it) {
1660
- var then;
1661
- return isObject$4(it) && isCallable$4(then = it.then) ? then : false;
1662
- };
1663
-
1664
- var callReaction = function (reaction, state) {
1665
- var value = state.value;
1666
- var ok = state.state == FULFILLED;
1667
- var handler = ok ? reaction.ok : reaction.fail;
1668
- var resolve = reaction.resolve;
1669
- var reject = reaction.reject;
1670
- var domain = reaction.domain;
1671
- var result, then, exited;
1672
- try {
1673
- if (handler) {
1674
- if (!ok) {
1675
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
1676
- state.rejection = HANDLED;
1677
- }
1678
- if (handler === true) result = value;
1679
- else {
1680
- if (domain) domain.enter();
1681
- result = handler(value); // can throw
1682
- if (domain) {
1683
- domain.exit();
1684
- exited = true;
1685
- }
1686
- }
1687
- if (result === reaction.promise) {
1688
- reject(TypeError$1('Promise-chain cycle'));
1689
- } else if (then = isThenable(result)) {
1690
- call$9(then, result, resolve, reject);
1691
- } else resolve(result);
1692
- } else reject(value);
1693
- } catch (error) {
1694
- if (domain && !exited) domain.exit();
1695
- reject(error);
1696
- }
1697
- };
1698
-
1699
- var notify = function (state, isReject) {
1700
- if (state.notified) return;
1701
- state.notified = true;
1702
- microtask(function () {
1703
- var reactions = state.reactions;
1704
- var reaction;
1705
- while (reaction = reactions.get()) {
1706
- callReaction(reaction, state);
1707
- }
1708
- state.notified = false;
1709
- if (isReject && !state.rejection) onUnhandled(state);
1710
- });
1711
- };
1712
-
1713
- var dispatchEvent = function (name, promise, reason) {
1714
- var event, handler;
1715
- if (DISPATCH_EVENT) {
1716
- event = document$1.createEvent('Event');
1717
- event.promise = promise;
1718
- event.reason = reason;
1719
- event.initEvent(name, false, true);
1720
- global$3.dispatchEvent(event);
1721
- } else event = { promise: promise, reason: reason };
1722
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$3['on' + name])) handler(event);
1723
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1724
- };
1725
-
1726
- var onUnhandled = function (state) {
1727
- call$9(task, global$3, function () {
1728
- var promise = state.facade;
1729
- var value = state.value;
1730
- var IS_UNHANDLED = isUnhandled(state);
1731
- var result;
1732
- if (IS_UNHANDLED) {
1733
- result = perform$2(function () {
1734
- if (IS_NODE$1) {
1735
- process.emit('unhandledRejection', value, promise);
1736
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
1737
- });
1738
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1739
- state.rejection = IS_NODE$1 || isUnhandled(state) ? UNHANDLED : HANDLED;
1740
- if (result.error) throw result.value;
1741
- }
1742
- });
1743
- };
1744
-
1745
- var isUnhandled = function (state) {
1746
- return state.rejection !== HANDLED && !state.parent;
1747
- };
1748
-
1749
- var onHandleUnhandled = function (state) {
1750
- call$9(task, global$3, function () {
1751
- var promise = state.facade;
1752
- if (IS_NODE$1) {
1753
- process.emit('rejectionHandled', promise);
1754
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1755
- });
1756
- };
1757
-
1758
- var bind$2 = function (fn, state, unwrap) {
1759
- return function (value) {
1760
- fn(state, value, unwrap);
1761
- };
1762
- };
1763
-
1764
- var internalReject = function (state, value, unwrap) {
1765
- if (state.done) return;
1766
- state.done = true;
1767
- if (unwrap) state = unwrap;
1768
- state.value = value;
1769
- state.state = REJECTED;
1770
- notify(state, true);
1771
- };
1772
-
1773
- var internalResolve = function (state, value, unwrap) {
1774
- if (state.done) return;
1775
- state.done = true;
1776
- if (unwrap) state = unwrap;
1777
- try {
1778
- if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
1779
- var then = isThenable(value);
1780
- if (then) {
1781
- microtask(function () {
1782
- var wrapper = { done: false };
1783
- try {
1784
- call$9(then, value,
1785
- bind$2(internalResolve, wrapper, state),
1786
- bind$2(internalReject, wrapper, state)
1787
- );
1788
- } catch (error) {
1789
- internalReject(wrapper, error, state);
1790
- }
1791
- });
1792
- } else {
1793
- state.value = value;
1794
- state.state = FULFILLED;
1795
- notify(state, false);
1796
- }
1797
- } catch (error) {
1798
- internalReject({ done: false }, error, state);
1799
- }
1800
- };
1801
-
1802
- // constructor polyfill
1803
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
1804
- // 25.4.3.1 Promise(executor)
1805
- PromiseConstructor = function Promise(executor) {
1806
- anInstance(this, PromisePrototype);
1807
- aCallable$4(executor);
1808
- call$9(Internal, this);
1809
- var state = getInternalPromiseState(this);
1810
- try {
1811
- executor(bind$2(internalResolve, state), bind$2(internalReject, state));
1812
- } catch (error) {
1813
- internalReject(state, error);
1814
- }
1815
- };
1816
-
1817
- PromisePrototype = PromiseConstructor.prototype;
1818
-
1819
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1820
- Internal = function Promise(executor) {
1821
- setInternalState$1(this, {
1822
- type: PROMISE,
1823
- done: false,
1824
- notified: false,
1825
- parent: false,
1826
- reactions: new Queue(),
1827
- rejection: false,
1828
- state: PENDING,
1829
- value: undefined
1830
- });
1831
- };
1832
-
1833
- // `Promise.prototype.then` method
1834
- // https://tc39.es/ecma262/#sec-promise.prototype.then
1835
- Internal.prototype = defineBuiltIn$4(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1836
- var state = getInternalPromiseState(this);
1837
- var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
1838
- state.parent = true;
1839
- reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
1840
- reaction.fail = isCallable$4(onRejected) && onRejected;
1841
- reaction.domain = IS_NODE$1 ? process.domain : undefined;
1842
- if (state.state == PENDING) state.reactions.add(reaction);
1843
- else microtask(function () {
1844
- callReaction(reaction, state);
1845
- });
1846
- return reaction.promise;
1847
- });
1848
-
1849
- OwnPromiseCapability = function () {
1850
- var promise = new Internal();
1851
- var state = getInternalPromiseState(promise);
1852
- this.promise = promise;
1853
- this.resolve = bind$2(internalResolve, state);
1854
- this.reject = bind$2(internalReject, state);
1855
- };
1856
-
1857
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
1858
- return C === PromiseConstructor || C === PromiseWrapper
1859
- ? new OwnPromiseCapability(C)
1860
- : newGenericPromiseCapability(C);
1861
- };
1862
-
1863
- if (isCallable$4(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1864
- nativeThen = NativePromisePrototype$1.then;
1865
-
1866
- if (!NATIVE_PROMISE_SUBCLASSING) {
1867
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1868
- defineBuiltIn$4(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1869
- var that = this;
1870
- return new PromiseConstructor(function (resolve, reject) {
1871
- call$9(nativeThen, that, resolve, reject);
1872
- }).then(onFulfilled, onRejected);
1873
- // https://github.com/zloirock/core-js/issues/640
1874
- }, { unsafe: true });
1875
- }
1876
-
1877
- // make `.constructor === Promise` work for native promise-based APIs
1878
- try {
1879
- delete NativePromisePrototype$1.constructor;
1880
- } catch (error) { /* empty */ }
1881
-
1882
- // make `instanceof Promise` work for native promise-based APIs
1883
- if (setPrototypeOf$1) {
1884
- setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype);
1885
- }
1886
- }
1887
- }
1888
-
1889
- $$c({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1890
- Promise: PromiseConstructor
1891
- });
1892
-
1893
- setToStringTag$2(PromiseConstructor, PROMISE, false);
1894
- setSpecies(PROMISE);
1895
-
1896
- var iterators = {};
1897
-
1898
- var wellKnownSymbol$9 = wellKnownSymbol$h;
1899
- var Iterators$4 = iterators;
1900
-
1901
- var ITERATOR$6 = wellKnownSymbol$9('iterator');
1902
- var ArrayPrototype$1 = Array.prototype;
1903
-
1904
- // check on default Array iterator
1905
- var isArrayIteratorMethod$1 = function (it) {
1906
- return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$6] === it);
1907
- };
1908
-
1909
- var classof$3 = classof$5;
1910
- var getMethod$1 = getMethod$3;
1911
- var isNullOrUndefined = isNullOrUndefined$4;
1912
- var Iterators$3 = iterators;
1913
- var wellKnownSymbol$8 = wellKnownSymbol$h;
1914
-
1915
- var ITERATOR$5 = wellKnownSymbol$8('iterator');
1916
-
1917
- var getIteratorMethod$2 = function (it) {
1918
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$5)
1919
- || getMethod$1(it, '@@iterator')
1920
- || Iterators$3[classof$3(it)];
1921
- };
1922
-
1923
- var call$8 = functionCall;
1924
- var aCallable$3 = aCallable$8;
1925
- var anObject$7 = anObject$c;
1926
- var tryToString$1 = tryToString$4;
1927
- var getIteratorMethod$1 = getIteratorMethod$2;
1928
-
1929
- var $TypeError$4 = TypeError;
1930
-
1931
- var getIterator$1 = function (argument, usingIterator) {
1932
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1933
- if (aCallable$3(iteratorMethod)) return anObject$7(call$8(iteratorMethod, argument));
1934
- throw $TypeError$4(tryToString$1(argument) + ' is not iterable');
1935
- };
1936
-
1937
- var call$7 = functionCall;
1938
- var anObject$6 = anObject$c;
1939
- var getMethod = getMethod$3;
1940
-
1941
- var iteratorClose$1 = function (iterator, kind, value) {
1942
- var innerResult, innerError;
1943
- anObject$6(iterator);
1944
- try {
1945
- innerResult = getMethod(iterator, 'return');
1946
- if (!innerResult) {
1947
- if (kind === 'throw') throw value;
1948
- return value;
1949
- }
1950
- innerResult = call$7(innerResult, iterator);
1951
- } catch (error) {
1952
- innerError = true;
1953
- innerResult = error;
1954
- }
1955
- if (kind === 'throw') throw value;
1956
- if (innerError) throw innerResult;
1957
- anObject$6(innerResult);
1958
- return value;
1959
- };
1960
-
1961
- var bind$1 = functionBindContext;
1962
- var call$6 = functionCall;
1963
- var anObject$5 = anObject$c;
1964
- var tryToString = tryToString$4;
1965
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1966
- var lengthOfArrayLike$3 = lengthOfArrayLike$5;
1967
- var isPrototypeOf$1 = objectIsPrototypeOf;
1968
- var getIterator = getIterator$1;
1969
- var getIteratorMethod = getIteratorMethod$2;
1970
- var iteratorClose = iteratorClose$1;
1971
-
1972
- var $TypeError$3 = TypeError;
1973
-
1974
- var Result = function (stopped, result) {
1975
- this.stopped = stopped;
1976
- this.result = result;
1977
- };
1978
-
1979
- var ResultPrototype = Result.prototype;
1980
-
1981
- var iterate$2 = function (iterable, unboundFunction, options) {
1982
- var that = options && options.that;
1983
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1984
- var IS_RECORD = !!(options && options.IS_RECORD);
1985
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1986
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1987
- var fn = bind$1(unboundFunction, that);
1988
- var iterator, iterFn, index, length, result, next, step;
1989
-
1990
- var stop = function (condition) {
1991
- if (iterator) iteratorClose(iterator, 'normal', condition);
1992
- return new Result(true, condition);
1993
- };
1994
-
1995
- var callFn = function (value) {
1996
- if (AS_ENTRIES) {
1997
- anObject$5(value);
1998
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1999
- } return INTERRUPTED ? fn(value, stop) : fn(value);
2000
- };
2001
-
2002
- if (IS_RECORD) {
2003
- iterator = iterable.iterator;
2004
- } else if (IS_ITERATOR) {
2005
- iterator = iterable;
2006
- } else {
2007
- iterFn = getIteratorMethod(iterable);
2008
- if (!iterFn) throw $TypeError$3(tryToString(iterable) + ' is not iterable');
2009
- // optimisation for array iterators
2010
- if (isArrayIteratorMethod(iterFn)) {
2011
- for (index = 0, length = lengthOfArrayLike$3(iterable); length > index; index++) {
2012
- result = callFn(iterable[index]);
2013
- if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
2014
- } return new Result(false);
2015
- }
2016
- iterator = getIterator(iterable, iterFn);
2017
- }
2018
-
2019
- next = IS_RECORD ? iterable.next : iterator.next;
2020
- while (!(step = call$6(next, iterator)).done) {
2021
- try {
2022
- result = callFn(step.value);
2023
- } catch (error) {
2024
- iteratorClose(iterator, 'throw', error);
2025
- }
2026
- if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
2027
- } return new Result(false);
2028
- };
2029
-
2030
- var wellKnownSymbol$7 = wellKnownSymbol$h;
2031
-
2032
- var ITERATOR$4 = wellKnownSymbol$7('iterator');
2033
- var SAFE_CLOSING = false;
2034
-
2035
- try {
2036
- var called = 0;
2037
- var iteratorWithReturn = {
2038
- next: function () {
2039
- return { done: !!called++ };
2040
- },
2041
- 'return': function () {
2042
- SAFE_CLOSING = true;
2043
- }
2044
- };
2045
- iteratorWithReturn[ITERATOR$4] = function () {
2046
- return this;
2047
- };
2048
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2049
- Array.from(iteratorWithReturn, function () { throw 2; });
2050
- } catch (error) { /* empty */ }
2051
-
2052
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2053
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2054
- var ITERATION_SUPPORT = false;
2055
- try {
2056
- var object = {};
2057
- object[ITERATOR$4] = function () {
2058
- return {
2059
- next: function () {
2060
- return { done: ITERATION_SUPPORT = true };
2061
- }
2062
- };
2063
- };
2064
- exec(object);
2065
- } catch (error) { /* empty */ }
2066
- return ITERATION_SUPPORT;
2067
- };
2068
-
2069
- var NativePromiseConstructor$1 = promiseNativeConstructor;
2070
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2071
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2072
-
2073
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2074
- NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2075
- });
2076
-
2077
- var $$b = _export;
2078
- var call$5 = functionCall;
2079
- var aCallable$2 = aCallable$8;
2080
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2081
- var perform$1 = perform$3;
2082
- var iterate$1 = iterate$2;
2083
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2084
-
2085
- // `Promise.all` method
2086
- // https://tc39.es/ecma262/#sec-promise.all
2087
- $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2088
- all: function all(iterable) {
2089
- var C = this;
2090
- var capability = newPromiseCapabilityModule$2.f(C);
2091
- var resolve = capability.resolve;
2092
- var reject = capability.reject;
2093
- var result = perform$1(function () {
2094
- var $promiseResolve = aCallable$2(C.resolve);
2095
- var values = [];
2096
- var counter = 0;
2097
- var remaining = 1;
2098
- iterate$1(iterable, function (promise) {
2099
- var index = counter++;
2100
- var alreadyCalled = false;
2101
- remaining++;
2102
- call$5($promiseResolve, C, promise).then(function (value) {
2103
- if (alreadyCalled) return;
2104
- alreadyCalled = true;
2105
- values[index] = value;
2106
- --remaining || resolve(values);
2107
- }, reject);
2108
- });
2109
- --remaining || resolve(values);
2110
- });
2111
- if (result.error) reject(result.value);
2112
- return capability.promise;
2113
- }
2114
- });
2115
-
2116
- var $$a = _export;
2117
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2118
- var NativePromiseConstructor = promiseNativeConstructor;
2119
- var getBuiltIn$1 = getBuiltIn$8;
2120
- var isCallable$3 = isCallable$k;
2121
- var defineBuiltIn$3 = defineBuiltIn$6;
2122
-
2123
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2124
-
2125
- // `Promise.prototype.catch` method
2126
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
2127
- $$a({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2128
- 'catch': function (onRejected) {
2129
- return this.then(undefined, onRejected);
2130
- }
2131
- });
2132
-
2133
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2134
- if (isCallable$3(NativePromiseConstructor)) {
2135
- var method = getBuiltIn$1('Promise').prototype['catch'];
2136
- if (NativePromisePrototype['catch'] !== method) {
2137
- defineBuiltIn$3(NativePromisePrototype, 'catch', method, { unsafe: true });
2138
- }
2139
- }
2140
-
2141
- var $$9 = _export;
2142
- var call$4 = functionCall;
2143
- var aCallable$1 = aCallable$8;
2144
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2145
- var perform = perform$3;
2146
- var iterate = iterate$2;
2147
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2148
-
2149
- // `Promise.race` method
2150
- // https://tc39.es/ecma262/#sec-promise.race
2151
- $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2152
- race: function race(iterable) {
2153
- var C = this;
2154
- var capability = newPromiseCapabilityModule$1.f(C);
2155
- var reject = capability.reject;
2156
- var result = perform(function () {
2157
- var $promiseResolve = aCallable$1(C.resolve);
2158
- iterate(iterable, function (promise) {
2159
- call$4($promiseResolve, C, promise).then(capability.resolve, reject);
2160
- });
2161
- });
2162
- if (result.error) reject(result.value);
2163
- return capability.promise;
2164
- }
2165
- });
2166
-
2167
- var $$8 = _export;
2168
- var call$3 = functionCall;
2169
- var newPromiseCapabilityModule = newPromiseCapability$2;
2170
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2171
-
2172
- // `Promise.reject` method
2173
- // https://tc39.es/ecma262/#sec-promise.reject
2174
- $$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2175
- reject: function reject(r) {
2176
- var capability = newPromiseCapabilityModule.f(this);
2177
- call$3(capability.reject, undefined, r);
2178
- return capability.promise;
2179
- }
2180
- });
2181
-
2182
- var anObject$4 = anObject$c;
2183
- var isObject$3 = isObject$a;
2184
- var newPromiseCapability = newPromiseCapability$2;
2185
-
2186
- var promiseResolve$1 = function (C, x) {
2187
- anObject$4(C);
2188
- if (isObject$3(x) && x.constructor === C) return x;
2189
- var promiseCapability = newPromiseCapability.f(C);
2190
- var resolve = promiseCapability.resolve;
2191
- resolve(x);
2192
- return promiseCapability.promise;
2193
- };
2194
-
2195
- var $$7 = _export;
2196
- var getBuiltIn = getBuiltIn$8;
2197
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2198
- var promiseResolve = promiseResolve$1;
2199
-
2200
- getBuiltIn('Promise');
2201
-
2202
- // `Promise.resolve` method
2203
- // https://tc39.es/ecma262/#sec-promise.resolve
2204
- $$7({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2205
- resolve: function resolve(x) {
2206
- return promiseResolve(this, x);
2207
- }
2208
- });
2209
-
2210
- var internalObjectKeys = objectKeysInternal;
2211
- var enumBugKeys$1 = enumBugKeys$3;
2212
-
2213
- // `Object.keys` method
2214
- // https://tc39.es/ecma262/#sec-object.keys
2215
- // eslint-disable-next-line es/no-object-keys -- safe
2216
- var objectKeys$2 = Object.keys || function keys(O) {
2217
- return internalObjectKeys(O, enumBugKeys$1);
2218
- };
2219
-
2220
- var DESCRIPTORS$2 = descriptors;
2221
- var uncurryThis$3 = functionUncurryThis;
2222
- var call$2 = functionCall;
2223
- var fails$6 = fails$h;
2224
- var objectKeys$1 = objectKeys$2;
2225
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2226
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2227
- var toObject$3 = toObject$5;
2228
- var IndexedObject$1 = indexedObject;
2229
-
2230
- // eslint-disable-next-line es/no-object-assign -- safe
2231
- var $assign = Object.assign;
2232
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2233
- var defineProperty$2 = Object.defineProperty;
2234
- var concat = uncurryThis$3([].concat);
2235
-
2236
- // `Object.assign` method
2237
- // https://tc39.es/ecma262/#sec-object.assign
2238
- var objectAssign = !$assign || fails$6(function () {
2239
- // should have correct order of operations (Edge bug)
2240
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
2241
- enumerable: true,
2242
- get: function () {
2243
- defineProperty$2(this, 'b', {
2244
- value: 3,
2245
- enumerable: false
2246
- });
2247
- }
2248
- }), { b: 2 })).b !== 1) return true;
2249
- // should work with symbols and should have deterministic property order (V8 bug)
2250
- var A = {};
2251
- var B = {};
2252
- // eslint-disable-next-line es/no-symbol -- safe
2253
- var symbol = Symbol();
2254
- var alphabet = 'abcdefghijklmnopqrst';
2255
- A[symbol] = 7;
2256
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2257
- return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
2258
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2259
- var T = toObject$3(target);
2260
- var argumentsLength = arguments.length;
2261
- var index = 1;
2262
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2263
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
2264
- while (argumentsLength > index) {
2265
- var S = IndexedObject$1(arguments[index++]);
2266
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
2267
- var length = keys.length;
2268
- var j = 0;
2269
- var key;
2270
- while (length > j) {
2271
- key = keys[j++];
2272
- if (!DESCRIPTORS$2 || call$2(propertyIsEnumerable, S, key)) T[key] = S[key];
2273
- }
2274
- } return T;
2275
- } : $assign;
2276
-
2277
- var $$6 = _export;
2278
- var assign = objectAssign;
2279
-
2280
- // `Object.assign` method
2281
- // https://tc39.es/ecma262/#sec-object.assign
2282
- // eslint-disable-next-line es/no-object-assign -- required for testing
2283
- $$6({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2284
- assign: assign
2285
- });
2286
-
2287
- var objectDefineProperties = {};
2288
-
2289
- var DESCRIPTORS$1 = descriptors;
2290
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2291
- var definePropertyModule = objectDefineProperty;
2292
- var anObject$3 = anObject$c;
2293
- var toIndexedObject$1 = toIndexedObject$5;
2294
- var objectKeys = objectKeys$2;
2295
-
2296
- // `Object.defineProperties` method
2297
- // https://tc39.es/ecma262/#sec-object.defineproperties
2298
- // eslint-disable-next-line es/no-object-defineproperties -- safe
2299
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2300
- anObject$3(O);
2301
- var props = toIndexedObject$1(Properties);
2302
- var keys = objectKeys(Properties);
2303
- var length = keys.length;
2304
- var index = 0;
2305
- var key;
2306
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
2307
- return O;
2308
- };
2309
-
2310
- /* global ActiveXObject -- old IE, WSH */
2311
-
2312
- var anObject$2 = anObject$c;
2313
- var definePropertiesModule = objectDefineProperties;
2314
- var enumBugKeys = enumBugKeys$3;
2315
- var hiddenKeys = hiddenKeys$4;
2316
- var html = html$2;
2317
- var documentCreateElement$1 = documentCreateElement$2;
2318
- var sharedKey$1 = sharedKey$3;
2319
-
2320
- var GT = '>';
2321
- var LT = '<';
2322
- var PROTOTYPE = 'prototype';
2323
- var SCRIPT = 'script';
2324
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
2325
-
2326
- var EmptyConstructor = function () { /* empty */ };
2327
-
2328
- var scriptTag = function (content) {
2329
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2330
- };
2331
-
2332
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2333
- var NullProtoObjectViaActiveX = function (activeXDocument) {
2334
- activeXDocument.write(scriptTag(''));
2335
- activeXDocument.close();
2336
- var temp = activeXDocument.parentWindow.Object;
2337
- activeXDocument = null; // avoid memory leak
2338
- return temp;
2339
- };
2340
-
2341
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
2342
- var NullProtoObjectViaIFrame = function () {
2343
- // Thrash, waste and sodomy: IE GC bug
2344
- var iframe = documentCreateElement$1('iframe');
2345
- var JS = 'java' + SCRIPT + ':';
2346
- var iframeDocument;
2347
- iframe.style.display = 'none';
2348
- html.appendChild(iframe);
2349
- // https://github.com/zloirock/core-js/issues/475
2350
- iframe.src = String(JS);
2351
- iframeDocument = iframe.contentWindow.document;
2352
- iframeDocument.open();
2353
- iframeDocument.write(scriptTag('document.F=Object'));
2354
- iframeDocument.close();
2355
- return iframeDocument.F;
2356
- };
2357
-
2358
- // Check for document.domain and active x support
2359
- // No need to use active x approach when document.domain is not set
2360
- // see https://github.com/es-shims/es5-shim/issues/150
2361
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2362
- // avoid IE GC bug
2363
- var activeXDocument;
2364
- var NullProtoObject = function () {
2365
- try {
2366
- activeXDocument = new ActiveXObject('htmlfile');
2367
- } catch (error) { /* ignore */ }
2368
- NullProtoObject = typeof document != 'undefined'
2369
- ? document.domain && activeXDocument
2370
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2371
- : NullProtoObjectViaIFrame()
2372
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
2373
- var length = enumBugKeys.length;
2374
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2375
- return NullProtoObject();
2376
- };
2377
-
2378
- hiddenKeys[IE_PROTO$1] = true;
2379
-
2380
- // `Object.create` method
2381
- // https://tc39.es/ecma262/#sec-object.create
2382
- // eslint-disable-next-line es/no-object-create -- safe
2383
- var objectCreate = Object.create || function create(O, Properties) {
2384
- var result;
2385
- if (O !== null) {
2386
- EmptyConstructor[PROTOTYPE] = anObject$2(O);
2387
- result = new EmptyConstructor();
2388
- EmptyConstructor[PROTOTYPE] = null;
2389
- // add "__proto__" for Object.getPrototypeOf polyfill
2390
- result[IE_PROTO$1] = O;
2391
- } else result = NullProtoObject();
2392
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2393
- };
2394
-
2395
- var wellKnownSymbol$6 = wellKnownSymbol$h;
2396
- var create$1 = objectCreate;
2397
- var defineProperty$1 = objectDefineProperty.f;
2398
-
2399
- var UNSCOPABLES = wellKnownSymbol$6('unscopables');
2400
- var ArrayPrototype = Array.prototype;
2401
-
2402
- // Array.prototype[@@unscopables]
2403
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2404
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
2405
- defineProperty$1(ArrayPrototype, UNSCOPABLES, {
2406
- configurable: true,
2407
- value: create$1(null)
2408
- });
2409
- }
2410
-
2411
- // add a key to Array.prototype[@@unscopables]
2412
- var addToUnscopables$3 = function (key) {
2413
- ArrayPrototype[UNSCOPABLES][key] = true;
2414
- };
2415
-
2416
- var $$5 = _export;
2417
- var $includes = arrayIncludes.includes;
2418
- var fails$5 = fails$h;
2419
- var addToUnscopables$2 = addToUnscopables$3;
2420
-
2421
- // FF99+ bug
2422
- var BROKEN_ON_SPARSE = fails$5(function () {
2423
- return !Array(1).includes();
2424
- });
2425
-
2426
- // `Array.prototype.includes` method
2427
- // https://tc39.es/ecma262/#sec-array.prototype.includes
2428
- $$5({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2429
- includes: function includes(el /* , fromIndex = 0 */) {
2430
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2431
- }
2432
- });
2433
-
2434
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2435
- addToUnscopables$2('includes');
2436
-
2437
- var isObject$2 = isObject$a;
2438
- var classof$2 = classofRaw$2;
2439
- var wellKnownSymbol$5 = wellKnownSymbol$h;
2440
-
2441
- var MATCH$1 = wellKnownSymbol$5('match');
2442
-
2443
- // `IsRegExp` abstract operation
2444
- // https://tc39.es/ecma262/#sec-isregexp
2445
- var isRegexp = function (it) {
2446
- var isRegExp;
2447
- return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp');
2448
- };
2449
-
2450
- var isRegExp = isRegexp;
2451
-
2452
- var $TypeError$2 = TypeError;
2453
-
2454
- var notARegexp = function (it) {
2455
- if (isRegExp(it)) {
2456
- throw $TypeError$2("The method doesn't accept regular expressions");
2457
- } return it;
2458
- };
2459
-
2460
- var classof$1 = classof$5;
2461
-
2462
- var $String = String;
2463
-
2464
- var toString$3 = function (argument) {
2465
- if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2466
- return $String(argument);
2467
- };
2468
-
2469
- var wellKnownSymbol$4 = wellKnownSymbol$h;
2470
-
2471
- var MATCH = wellKnownSymbol$4('match');
2472
-
2473
- var correctIsRegexpLogic = function (METHOD_NAME) {
2474
- var regexp = /./;
2475
- try {
2476
- '/./'[METHOD_NAME](regexp);
2477
- } catch (error1) {
2478
- try {
2479
- regexp[MATCH] = false;
2480
- return '/./'[METHOD_NAME](regexp);
2481
- } catch (error2) { /* empty */ }
2482
- } return false;
2483
- };
2484
-
2485
- var $$4 = _export;
2486
- var uncurryThis$2 = functionUncurryThis;
2487
- var notARegExp = notARegexp;
2488
- var requireObjectCoercible$1 = requireObjectCoercible$4;
2489
- var toString$2 = toString$3;
2490
- var correctIsRegExpLogic = correctIsRegexpLogic;
2491
-
2492
- var stringIndexOf = uncurryThis$2(''.indexOf);
2493
-
2494
- // `String.prototype.includes` method
2495
- // https://tc39.es/ecma262/#sec-string.prototype.includes
2496
- $$4({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2497
- includes: function includes(searchString /* , position = 0 */) {
2498
- return !!~stringIndexOf(
2499
- toString$2(requireObjectCoercible$1(this)),
2500
- toString$2(notARegExp(searchString)),
2501
- arguments.length > 1 ? arguments[1] : undefined
2502
- );
2503
- }
2504
- });
2505
-
2506
10
  /******************************************************************************
2507
11
  Copyright (c) Microsoft Corporation.
2508
12
 
@@ -2793,512 +297,6 @@ const ninetailedPlugin = ({
2793
297
  };
2794
298
  };
2795
299
 
2796
- var anObject$1 = anObject$c;
2797
-
2798
- // `RegExp.prototype.flags` getter implementation
2799
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2800
- var regexpFlags = function () {
2801
- var that = anObject$1(this);
2802
- var result = '';
2803
- if (that.hasIndices) result += 'd';
2804
- if (that.global) result += 'g';
2805
- if (that.ignoreCase) result += 'i';
2806
- if (that.multiline) result += 'm';
2807
- if (that.dotAll) result += 's';
2808
- if (that.unicode) result += 'u';
2809
- if (that.unicodeSets) result += 'v';
2810
- if (that.sticky) result += 'y';
2811
- return result;
2812
- };
2813
-
2814
- var call$1 = functionCall;
2815
- var hasOwn$1 = hasOwnProperty_1;
2816
- var isPrototypeOf = objectIsPrototypeOf;
2817
- var regExpFlags = regexpFlags;
2818
-
2819
- var RegExpPrototype$1 = RegExp.prototype;
2820
-
2821
- var regexpGetFlags = function (R) {
2822
- var flags = R.flags;
2823
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$1(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
2824
- ? call$1(regExpFlags, R) : flags;
2825
- };
2826
-
2827
- var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
2828
- var defineBuiltIn$2 = defineBuiltIn$6;
2829
- var anObject = anObject$c;
2830
- var $toString = toString$3;
2831
- var fails$4 = fails$h;
2832
- var getRegExpFlags = regexpGetFlags;
2833
-
2834
- var TO_STRING = 'toString';
2835
- var RegExpPrototype = RegExp.prototype;
2836
- var nativeToString = RegExpPrototype[TO_STRING];
2837
-
2838
- var NOT_GENERIC = fails$4(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
2839
- // FF44- RegExp#toString has a wrong name
2840
- var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name != TO_STRING;
2841
-
2842
- // `RegExp.prototype.toString` method
2843
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
2844
- if (NOT_GENERIC || INCORRECT_NAME) {
2845
- defineBuiltIn$2(RegExp.prototype, TO_STRING, function toString() {
2846
- var R = anObject(this);
2847
- var pattern = $toString(R.source);
2848
- var flags = $toString(getRegExpFlags(R));
2849
- return '/' + pattern + '/' + flags;
2850
- }, { unsafe: true });
2851
- }
2852
-
2853
- var classof = classofRaw$2;
2854
-
2855
- // `IsArray` abstract operation
2856
- // https://tc39.es/ecma262/#sec-isarray
2857
- // eslint-disable-next-line es/no-array-isarray -- safe
2858
- var isArray$2 = Array.isArray || function isArray(argument) {
2859
- return classof(argument) == 'Array';
2860
- };
2861
-
2862
- var $TypeError$1 = TypeError;
2863
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2864
-
2865
- var doesNotExceedSafeInteger$1 = function (it) {
2866
- if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
2867
- return it;
2868
- };
2869
-
2870
- var isArray$1 = isArray$2;
2871
- var lengthOfArrayLike$2 = lengthOfArrayLike$5;
2872
- var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2873
- var bind = functionBindContext;
2874
-
2875
- // `FlattenIntoArray` abstract operation
2876
- // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
2877
- var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
2878
- var targetIndex = start;
2879
- var sourceIndex = 0;
2880
- var mapFn = mapper ? bind(mapper, thisArg) : false;
2881
- var element, elementLen;
2882
-
2883
- while (sourceIndex < sourceLen) {
2884
- if (sourceIndex in source) {
2885
- element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
2886
-
2887
- if (depth > 0 && isArray$1(element)) {
2888
- elementLen = lengthOfArrayLike$2(element);
2889
- targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
2890
- } else {
2891
- doesNotExceedSafeInteger(targetIndex + 1);
2892
- target[targetIndex] = element;
2893
- }
2894
-
2895
- targetIndex++;
2896
- }
2897
- sourceIndex++;
2898
- }
2899
- return targetIndex;
2900
- };
2901
-
2902
- var flattenIntoArray_1 = flattenIntoArray$1;
2903
-
2904
- var isArray = isArray$2;
2905
- var isConstructor = isConstructor$2;
2906
- var isObject$1 = isObject$a;
2907
- var wellKnownSymbol$3 = wellKnownSymbol$h;
2908
-
2909
- var SPECIES = wellKnownSymbol$3('species');
2910
- var $Array = Array;
2911
-
2912
- // a part of `ArraySpeciesCreate` abstract operation
2913
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
2914
- var arraySpeciesConstructor$1 = function (originalArray) {
2915
- var C;
2916
- if (isArray(originalArray)) {
2917
- C = originalArray.constructor;
2918
- // cross-realm fallback
2919
- if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
2920
- else if (isObject$1(C)) {
2921
- C = C[SPECIES];
2922
- if (C === null) C = undefined;
2923
- }
2924
- } return C === undefined ? $Array : C;
2925
- };
2926
-
2927
- var arraySpeciesConstructor = arraySpeciesConstructor$1;
2928
-
2929
- // `ArraySpeciesCreate` abstract operation
2930
- // https://tc39.es/ecma262/#sec-arrayspeciescreate
2931
- var arraySpeciesCreate$1 = function (originalArray, length) {
2932
- return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2933
- };
2934
-
2935
- var $$3 = _export;
2936
- var flattenIntoArray = flattenIntoArray_1;
2937
- var toObject$2 = toObject$5;
2938
- var lengthOfArrayLike$1 = lengthOfArrayLike$5;
2939
- var toIntegerOrInfinity = toIntegerOrInfinity$3;
2940
- var arraySpeciesCreate = arraySpeciesCreate$1;
2941
-
2942
- // `Array.prototype.flat` method
2943
- // https://tc39.es/ecma262/#sec-array.prototype.flat
2944
- $$3({ target: 'Array', proto: true }, {
2945
- flat: function flat(/* depthArg = 1 */) {
2946
- var depthArg = arguments.length ? arguments[0] : undefined;
2947
- var O = toObject$2(this);
2948
- var sourceLen = lengthOfArrayLike$1(O);
2949
- var A = arraySpeciesCreate(O, 0);
2950
- A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));
2951
- return A;
2952
- }
2953
- });
2954
-
2955
- // this method was added to unscopables after implementation
2956
- // in popular engines, so it's moved to a separate module
2957
- var addToUnscopables$1 = addToUnscopables$3;
2958
-
2959
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2960
- addToUnscopables$1('flat');
2961
-
2962
- var fails$3 = fails$h;
2963
-
2964
- var correctPrototypeGetter = !fails$3(function () {
2965
- function F() { /* empty */ }
2966
- F.prototype.constructor = null;
2967
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
2968
- return Object.getPrototypeOf(new F()) !== F.prototype;
2969
- });
2970
-
2971
- var hasOwn = hasOwnProperty_1;
2972
- var isCallable$2 = isCallable$k;
2973
- var toObject$1 = toObject$5;
2974
- var sharedKey = sharedKey$3;
2975
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2976
-
2977
- var IE_PROTO = sharedKey('IE_PROTO');
2978
- var $Object = Object;
2979
- var ObjectPrototype = $Object.prototype;
2980
-
2981
- // `Object.getPrototypeOf` method
2982
- // https://tc39.es/ecma262/#sec-object.getprototypeof
2983
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
2984
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
2985
- var object = toObject$1(O);
2986
- if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
2987
- var constructor = object.constructor;
2988
- if (isCallable$2(constructor) && object instanceof constructor) {
2989
- return constructor.prototype;
2990
- } return object instanceof $Object ? ObjectPrototype : null;
2991
- };
2992
-
2993
- var fails$2 = fails$h;
2994
- var isCallable$1 = isCallable$k;
2995
- var isObject = isObject$a;
2996
- var getPrototypeOf$1 = objectGetPrototypeOf;
2997
- var defineBuiltIn$1 = defineBuiltIn$6;
2998
- var wellKnownSymbol$2 = wellKnownSymbol$h;
2999
-
3000
- var ITERATOR$3 = wellKnownSymbol$2('iterator');
3001
- var BUGGY_SAFARI_ITERATORS$1 = false;
3002
-
3003
- // `%IteratorPrototype%` object
3004
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
3005
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
3006
-
3007
- /* eslint-disable es/no-array-prototype-keys -- safe */
3008
- if ([].keys) {
3009
- arrayIterator = [].keys();
3010
- // Safari 8 has buggy iterators w/o `next`
3011
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
3012
- else {
3013
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
3014
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
3015
- }
3016
- }
3017
-
3018
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$2(function () {
3019
- var test = {};
3020
- // FF44- legacy iterators case
3021
- return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
3022
- });
3023
-
3024
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
3025
-
3026
- // `%IteratorPrototype%[@@iterator]()` method
3027
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
3028
- if (!isCallable$1(IteratorPrototype$2[ITERATOR$3])) {
3029
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$3, function () {
3030
- return this;
3031
- });
3032
- }
3033
-
3034
- var iteratorsCore = {
3035
- IteratorPrototype: IteratorPrototype$2,
3036
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
3037
- };
3038
-
3039
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
3040
- var create = objectCreate;
3041
- var createPropertyDescriptor = createPropertyDescriptor$3;
3042
- var setToStringTag$1 = setToStringTag$3;
3043
- var Iterators$2 = iterators;
3044
-
3045
- var returnThis$1 = function () { return this; };
3046
-
3047
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
3048
- var TO_STRING_TAG = NAME + ' Iterator';
3049
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
3050
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
3051
- Iterators$2[TO_STRING_TAG] = returnThis$1;
3052
- return IteratorConstructor;
3053
- };
3054
-
3055
- var $$2 = _export;
3056
- var call = functionCall;
3057
- var FunctionName = functionName;
3058
- var isCallable = isCallable$k;
3059
- var createIteratorConstructor = iteratorCreateConstructor;
3060
- var getPrototypeOf = objectGetPrototypeOf;
3061
- var setPrototypeOf = objectSetPrototypeOf;
3062
- var setToStringTag = setToStringTag$3;
3063
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
3064
- var defineBuiltIn = defineBuiltIn$6;
3065
- var wellKnownSymbol$1 = wellKnownSymbol$h;
3066
- var Iterators$1 = iterators;
3067
- var IteratorsCore = iteratorsCore;
3068
-
3069
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
3070
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
3071
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
3072
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
3073
- var ITERATOR$2 = wellKnownSymbol$1('iterator');
3074
- var KEYS = 'keys';
3075
- var VALUES = 'values';
3076
- var ENTRIES = 'entries';
3077
-
3078
- var returnThis = function () { return this; };
3079
-
3080
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
3081
- createIteratorConstructor(IteratorConstructor, NAME, next);
3082
-
3083
- var getIterationMethod = function (KIND) {
3084
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
3085
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
3086
- switch (KIND) {
3087
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
3088
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
3089
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
3090
- } return function () { return new IteratorConstructor(this); };
3091
- };
3092
-
3093
- var TO_STRING_TAG = NAME + ' Iterator';
3094
- var INCORRECT_VALUES_NAME = false;
3095
- var IterablePrototype = Iterable.prototype;
3096
- var nativeIterator = IterablePrototype[ITERATOR$2]
3097
- || IterablePrototype['@@iterator']
3098
- || DEFAULT && IterablePrototype[DEFAULT];
3099
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
3100
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
3101
- var CurrentIteratorPrototype, methods, KEY;
3102
-
3103
- // fix native
3104
- if (anyNativeIterator) {
3105
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
3106
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
3107
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
3108
- if (setPrototypeOf) {
3109
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
3110
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$2])) {
3111
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$2, returnThis);
3112
- }
3113
- }
3114
- // Set @@toStringTag to native iterators
3115
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
3116
- }
3117
- }
3118
-
3119
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
3120
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
3121
- if (CONFIGURABLE_FUNCTION_NAME) {
3122
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
3123
- } else {
3124
- INCORRECT_VALUES_NAME = true;
3125
- defaultIterator = function values() { return call(nativeIterator, this); };
3126
- }
3127
- }
3128
-
3129
- // export additional methods
3130
- if (DEFAULT) {
3131
- methods = {
3132
- values: getIterationMethod(VALUES),
3133
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
3134
- entries: getIterationMethod(ENTRIES)
3135
- };
3136
- if (FORCED) for (KEY in methods) {
3137
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
3138
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
3139
- }
3140
- } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
3141
- }
3142
-
3143
- // define iterator
3144
- if (IterablePrototype[ITERATOR$2] !== defaultIterator) {
3145
- defineBuiltIn(IterablePrototype, ITERATOR$2, defaultIterator, { name: DEFAULT });
3146
- }
3147
- Iterators$1[NAME] = defaultIterator;
3148
-
3149
- return methods;
3150
- };
3151
-
3152
- // `CreateIterResultObject` abstract operation
3153
- // https://tc39.es/ecma262/#sec-createiterresultobject
3154
- var createIterResultObject$1 = function (value, done) {
3155
- return { value: value, done: done };
3156
- };
3157
-
3158
- var toIndexedObject = toIndexedObject$5;
3159
- var addToUnscopables = addToUnscopables$3;
3160
- var Iterators = iterators;
3161
- var InternalStateModule = internalState;
3162
- var defineProperty = objectDefineProperty.f;
3163
- var defineIterator = iteratorDefine;
3164
- var createIterResultObject = createIterResultObject$1;
3165
- var DESCRIPTORS = descriptors;
3166
-
3167
- var ARRAY_ITERATOR = 'Array Iterator';
3168
- var setInternalState = InternalStateModule.set;
3169
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
3170
-
3171
- // `Array.prototype.entries` method
3172
- // https://tc39.es/ecma262/#sec-array.prototype.entries
3173
- // `Array.prototype.keys` method
3174
- // https://tc39.es/ecma262/#sec-array.prototype.keys
3175
- // `Array.prototype.values` method
3176
- // https://tc39.es/ecma262/#sec-array.prototype.values
3177
- // `Array.prototype[@@iterator]` method
3178
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
3179
- // `CreateArrayIterator` internal method
3180
- // https://tc39.es/ecma262/#sec-createarrayiterator
3181
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
3182
- setInternalState(this, {
3183
- type: ARRAY_ITERATOR,
3184
- target: toIndexedObject(iterated), // target
3185
- index: 0, // next index
3186
- kind: kind // kind
3187
- });
3188
- // `%ArrayIteratorPrototype%.next` method
3189
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
3190
- }, function () {
3191
- var state = getInternalState(this);
3192
- var target = state.target;
3193
- var kind = state.kind;
3194
- var index = state.index++;
3195
- if (!target || index >= target.length) {
3196
- state.target = undefined;
3197
- return createIterResultObject(undefined, true);
3198
- }
3199
- if (kind == 'keys') return createIterResultObject(index, false);
3200
- if (kind == 'values') return createIterResultObject(target[index], false);
3201
- return createIterResultObject([index, target[index]], false);
3202
- }, 'values');
3203
-
3204
- // argumentsList[@@iterator] is %ArrayProto_values%
3205
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
3206
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
3207
- var values = Iterators.Arguments = Iterators.Array;
3208
-
3209
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3210
- addToUnscopables('keys');
3211
- addToUnscopables('values');
3212
- addToUnscopables('entries');
3213
-
3214
- // V8 ~ Chrome 45- bug
3215
- if (DESCRIPTORS && values.name !== 'values') try {
3216
- defineProperty(values, 'name', { value: 'values' });
3217
- } catch (error) { /* empty */ }
3218
-
3219
- // iterable DOM collections
3220
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
3221
- var domIterables = {
3222
- CSSRuleList: 0,
3223
- CSSStyleDeclaration: 0,
3224
- CSSValueList: 0,
3225
- ClientRectList: 0,
3226
- DOMRectList: 0,
3227
- DOMStringList: 0,
3228
- DOMTokenList: 1,
3229
- DataTransferItemList: 0,
3230
- FileList: 0,
3231
- HTMLAllCollection: 0,
3232
- HTMLCollection: 0,
3233
- HTMLFormElement: 0,
3234
- HTMLSelectElement: 0,
3235
- MediaList: 0,
3236
- MimeTypeArray: 0,
3237
- NamedNodeMap: 0,
3238
- NodeList: 1,
3239
- PaintRequestList: 0,
3240
- Plugin: 0,
3241
- PluginArray: 0,
3242
- SVGLengthList: 0,
3243
- SVGNumberList: 0,
3244
- SVGPathSegList: 0,
3245
- SVGPointList: 0,
3246
- SVGStringList: 0,
3247
- SVGTransformList: 0,
3248
- SourceBufferList: 0,
3249
- StyleSheetList: 0,
3250
- TextTrackCueList: 0,
3251
- TextTrackList: 0,
3252
- TouchList: 0
3253
- };
3254
-
3255
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
3256
- var documentCreateElement = documentCreateElement$2;
3257
-
3258
- var classList = documentCreateElement('span').classList;
3259
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
3260
-
3261
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
3262
-
3263
- var global$2 = global$k;
3264
- var DOMIterables = domIterables;
3265
- var DOMTokenListPrototype = domTokenListPrototype;
3266
- var ArrayIteratorMethods = es_array_iterator;
3267
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
3268
- var wellKnownSymbol = wellKnownSymbol$h;
3269
-
3270
- var ITERATOR$1 = wellKnownSymbol('iterator');
3271
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3272
- var ArrayValues = ArrayIteratorMethods.values;
3273
-
3274
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
3275
- if (CollectionPrototype) {
3276
- // some Chrome versions have non-configurable methods on DOMTokenList
3277
- if (CollectionPrototype[ITERATOR$1] !== ArrayValues) try {
3278
- createNonEnumerableProperty(CollectionPrototype, ITERATOR$1, ArrayValues);
3279
- } catch (error) {
3280
- CollectionPrototype[ITERATOR$1] = ArrayValues;
3281
- }
3282
- if (!CollectionPrototype[TO_STRING_TAG]) {
3283
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
3284
- }
3285
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
3286
- // some Chrome versions have non-configurable methods on DOMTokenList
3287
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
3288
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
3289
- } catch (error) {
3290
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
3291
- }
3292
- }
3293
- }
3294
- };
3295
-
3296
- for (var COLLECTION_NAME in DOMIterables) {
3297
- handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
3298
- }
3299
-
3300
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
3301
-
3302
300
  class ElementSeenObserver {
3303
301
  constructor(_options) {
3304
302
  this._options = _options;
@@ -3358,7 +356,7 @@ class Ninetailed {
3358
356
  onError,
3359
357
  buildClientContext,
3360
358
  componentViewTrackingThreshold = 2000,
3361
- storage
359
+ storageImpl
3362
360
  } = {}) {
3363
361
  this.isInitialized = false;
3364
362
  this.page = (data, options) => __awaiter(this, void 0, void 0, function* () {
@@ -3569,8 +567,8 @@ class Ninetailed {
3569
567
  this.instance = Analytics(Object.assign({
3570
568
  app: 'ninetailed',
3571
569
  plugins: [...this.plugins, this.eventQueue]
3572
- }, storage ? {
3573
- storage
570
+ }, storageImpl ? {
571
+ storage: storageImpl
3574
572
  } : {}));
3575
573
  const detachOnReadyListener = this.instance.on('ready', () => {
3576
574
  this.isInitialized = true;
@@ -3743,147 +741,6 @@ const ElementSeenPayloadSchema = z.object({
3743
741
  variantIndex: z.number()
3744
742
  });
3745
743
 
3746
- var aCallable = aCallable$8;
3747
- var toObject = toObject$5;
3748
- var IndexedObject = indexedObject;
3749
- var lengthOfArrayLike = lengthOfArrayLike$5;
3750
-
3751
- var $TypeError = TypeError;
3752
-
3753
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
3754
- var createMethod$1 = function (IS_RIGHT) {
3755
- return function (that, callbackfn, argumentsLength, memo) {
3756
- aCallable(callbackfn);
3757
- var O = toObject(that);
3758
- var self = IndexedObject(O);
3759
- var length = lengthOfArrayLike(O);
3760
- var index = IS_RIGHT ? length - 1 : 0;
3761
- var i = IS_RIGHT ? -1 : 1;
3762
- if (argumentsLength < 2) while (true) {
3763
- if (index in self) {
3764
- memo = self[index];
3765
- index += i;
3766
- break;
3767
- }
3768
- index += i;
3769
- if (IS_RIGHT ? index < 0 : length <= index) {
3770
- throw $TypeError('Reduce of empty array with no initial value');
3771
- }
3772
- }
3773
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
3774
- memo = callbackfn(memo, self[index], index, O);
3775
- }
3776
- return memo;
3777
- };
3778
- };
3779
-
3780
- var arrayReduce = {
3781
- // `Array.prototype.reduce` method
3782
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
3783
- left: createMethod$1(false),
3784
- // `Array.prototype.reduceRight` method
3785
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
3786
- right: createMethod$1(true)
3787
- };
3788
-
3789
- var fails$1 = fails$h;
3790
-
3791
- var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
3792
- var method = [][METHOD_NAME];
3793
- return !!method && fails$1(function () {
3794
- // eslint-disable-next-line no-useless-call -- required for testing
3795
- method.call(null, argument || function () { return 1; }, 1);
3796
- });
3797
- };
3798
-
3799
- var $$1 = _export;
3800
- var $reduce = arrayReduce.left;
3801
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
3802
- var CHROME_VERSION = engineV8Version;
3803
- var IS_NODE = engineIsNode;
3804
-
3805
- var STRICT_METHOD = arrayMethodIsStrict('reduce');
3806
- // Chrome 80-82 has a critical bug
3807
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
3808
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
3809
-
3810
- // `Array.prototype.reduce` method
3811
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
3812
- $$1({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
3813
- reduce: function reduce(callbackfn /* , initialValue */) {
3814
- var length = arguments.length;
3815
- return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
3816
- }
3817
- });
3818
-
3819
- // a string of all valid unicode whitespaces
3820
- var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
3821
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
3822
-
3823
- var uncurryThis$1 = functionUncurryThis;
3824
- var requireObjectCoercible = requireObjectCoercible$4;
3825
- var toString$1 = toString$3;
3826
- var whitespaces$1 = whitespaces$2;
3827
-
3828
- var replace = uncurryThis$1(''.replace);
3829
- var whitespace = '[' + whitespaces$1 + ']';
3830
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
3831
- var rtrim = RegExp(whitespace + whitespace + '*$');
3832
-
3833
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
3834
- var createMethod = function (TYPE) {
3835
- return function ($this) {
3836
- var string = toString$1(requireObjectCoercible($this));
3837
- if (TYPE & 1) string = replace(string, ltrim, '');
3838
- if (TYPE & 2) string = replace(string, rtrim, '');
3839
- return string;
3840
- };
3841
- };
3842
-
3843
- var stringTrim = {
3844
- // `String.prototype.{ trimLeft, trimStart }` methods
3845
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
3846
- start: createMethod(1),
3847
- // `String.prototype.{ trimRight, trimEnd }` methods
3848
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
3849
- end: createMethod(2),
3850
- // `String.prototype.trim` method
3851
- // https://tc39.es/ecma262/#sec-string.prototype.trim
3852
- trim: createMethod(3)
3853
- };
3854
-
3855
- var global$1 = global$k;
3856
- var fails = fails$h;
3857
- var uncurryThis = functionUncurryThis;
3858
- var toString = toString$3;
3859
- var trim = stringTrim.trim;
3860
- var whitespaces = whitespaces$2;
3861
-
3862
- var $parseInt$1 = global$1.parseInt;
3863
- var Symbol$1 = global$1.Symbol;
3864
- var ITERATOR = Symbol$1 && Symbol$1.iterator;
3865
- var hex = /^[+-]?0x/i;
3866
- var exec = uncurryThis(hex.exec);
3867
- var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
3868
- // MS Edge 18- broken with boxed symbols
3869
- || (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
3870
-
3871
- // `parseInt` method
3872
- // https://tc39.es/ecma262/#sec-parseint-string-radix
3873
- var numberParseInt = FORCED ? function parseInt(string, radix) {
3874
- var S = trim(toString(string));
3875
- return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
3876
- } : $parseInt$1;
3877
-
3878
- var $ = _export;
3879
- var $parseInt = numberParseInt;
3880
-
3881
- // `parseInt` method
3882
- // https://tc39.es/ecma262/#sec-parseint-string-radix
3883
- $({ global: true, forced: parseInt != $parseInt }, {
3884
- parseInt: $parseInt
3885
- });
3886
-
3887
744
  const decodeExperienceVariantsMap = encodedExperienceVariantsMap => {
3888
745
  return encodedExperienceVariantsMap.split(',').map(experienceIdWithVariant => {
3889
746
  const [experienceId, _variantIndex] = experienceIdWithVariant.split('=');