@dereekb/browser 12.1.2 → 12.1.3

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