@dereekb/browser 10.0.5 → 10.0.7

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