@opengeoweb/api 9.25.2 → 9.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,5 +1,2272 @@
1
+ import { getConfig } from '@opengeoweb/authentication';
1
2
  export * from '@opengeoweb/authentication';
2
3
 
4
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
+
6
+ var check = function (it) {
7
+ return it && it.Math === Math && it;
8
+ };
9
+
10
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
11
+ var global$h =
12
+ // eslint-disable-next-line es/no-global-this -- safe
13
+ check(typeof globalThis == 'object' && globalThis) ||
14
+ check(typeof window == 'object' && window) ||
15
+ // eslint-disable-next-line no-restricted-globals -- safe
16
+ check(typeof self == 'object' && self) ||
17
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
18
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
19
+ // eslint-disable-next-line no-new-func -- fallback
20
+ (function () { return this; })() || Function('return this')();
21
+
22
+ var objectGetOwnPropertyDescriptor = {};
23
+
24
+ var fails$a = function (exec) {
25
+ try {
26
+ return !!exec();
27
+ } catch (error) {
28
+ return true;
29
+ }
30
+ };
31
+
32
+ var fails$9 = fails$a;
33
+
34
+ // Detect IE8's incomplete defineProperty implementation
35
+ var descriptors = !fails$9(function () {
36
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
37
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
38
+ });
39
+
40
+ var fails$8 = fails$a;
41
+
42
+ var functionBindNative = !fails$8(function () {
43
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
44
+ var test = (function () { /* empty */ }).bind();
45
+ // eslint-disable-next-line no-prototype-builtins -- safe
46
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
47
+ });
48
+
49
+ var NATIVE_BIND$3 = functionBindNative;
50
+
51
+ var call$b = Function.prototype.call;
52
+
53
+ var functionCall = NATIVE_BIND$3 ? call$b.bind(call$b) : function () {
54
+ return call$b.apply(call$b, arguments);
55
+ };
56
+
57
+ var objectPropertyIsEnumerable = {};
58
+
59
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
60
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
61
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
62
+
63
+ // Nashorn ~ JDK8 bug
64
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
65
+
66
+ // `Object.prototype.propertyIsEnumerable` method implementation
67
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
68
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
69
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
70
+ return !!descriptor && descriptor.enumerable;
71
+ } : $propertyIsEnumerable;
72
+
73
+ var createPropertyDescriptor$2 = function (bitmap, value) {
74
+ return {
75
+ enumerable: !(bitmap & 1),
76
+ configurable: !(bitmap & 2),
77
+ writable: !(bitmap & 4),
78
+ value: value
79
+ };
80
+ };
81
+
82
+ var NATIVE_BIND$2 = functionBindNative;
83
+
84
+ var FunctionPrototype$2 = Function.prototype;
85
+ var call$a = FunctionPrototype$2.call;
86
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$a, call$a);
87
+
88
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
89
+ return function () {
90
+ return call$a.apply(fn, arguments);
91
+ };
92
+ };
93
+
94
+ var uncurryThis$d = functionUncurryThis;
95
+
96
+ var toString$1 = uncurryThis$d({}.toString);
97
+ var stringSlice$1 = uncurryThis$d(''.slice);
98
+
99
+ var classofRaw$2 = function (it) {
100
+ return stringSlice$1(toString$1(it), 8, -1);
101
+ };
102
+
103
+ var uncurryThis$c = functionUncurryThis;
104
+ var fails$7 = fails$a;
105
+ var classof$4 = classofRaw$2;
106
+
107
+ var $Object$3 = Object;
108
+ var split = uncurryThis$c(''.split);
109
+
110
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
111
+ var indexedObject = fails$7(function () {
112
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
113
+ // eslint-disable-next-line no-prototype-builtins -- safe
114
+ return !$Object$3('z').propertyIsEnumerable(0);
115
+ }) ? function (it) {
116
+ return classof$4(it) === 'String' ? split(it, '') : $Object$3(it);
117
+ } : $Object$3;
118
+
119
+ // we can't use just `it == null` since of `document.all` special case
120
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
121
+ var isNullOrUndefined$4 = function (it) {
122
+ return it === null || it === undefined;
123
+ };
124
+
125
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
126
+
127
+ var $TypeError$c = TypeError;
128
+
129
+ // `RequireObjectCoercible` abstract operation
130
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
131
+ var requireObjectCoercible$3 = function (it) {
132
+ if (isNullOrUndefined$3(it)) throw new $TypeError$c("Can't call method on " + it);
133
+ return it;
134
+ };
135
+
136
+ // toObject with fallback for non-array-like ES3 strings
137
+ var IndexedObject = indexedObject;
138
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
139
+
140
+ var toIndexedObject$3 = function (it) {
141
+ return IndexedObject(requireObjectCoercible$2(it));
142
+ };
143
+
144
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
145
+ var documentAll = typeof document == 'object' && document.all;
146
+
147
+ // `IsCallable` abstract operation
148
+ // https://tc39.es/ecma262/#sec-iscallable
149
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
150
+ var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
151
+ return typeof argument == 'function' || argument === documentAll;
152
+ } : function (argument) {
153
+ return typeof argument == 'function';
154
+ };
155
+
156
+ var isCallable$f = isCallable$g;
157
+
158
+ var isObject$9 = function (it) {
159
+ return typeof it == 'object' ? it !== null : isCallable$f(it);
160
+ };
161
+
162
+ var global$g = global$h;
163
+ var isCallable$e = isCallable$g;
164
+
165
+ var aFunction = function (argument) {
166
+ return isCallable$e(argument) ? argument : undefined;
167
+ };
168
+
169
+ var getBuiltIn$7 = function (namespace, method) {
170
+ return arguments.length < 2 ? aFunction(global$g[namespace]) : global$g[namespace] && global$g[namespace][method];
171
+ };
172
+
173
+ var uncurryThis$b = functionUncurryThis;
174
+
175
+ var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
176
+
177
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
178
+
179
+ var global$f = global$h;
180
+ var userAgent$3 = engineUserAgent;
181
+
182
+ var process$3 = global$f.process;
183
+ var Deno$1 = global$f.Deno;
184
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
185
+ var v8 = versions && versions.v8;
186
+ var match, version;
187
+
188
+ if (v8) {
189
+ match = v8.split('.');
190
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
191
+ // but their correct versions are not interesting for us
192
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
193
+ }
194
+
195
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
196
+ // so check `userAgent` even if `.v8` exists, but 0
197
+ if (!version && userAgent$3) {
198
+ match = userAgent$3.match(/Edge\/(\d+)/);
199
+ if (!match || match[1] >= 74) {
200
+ match = userAgent$3.match(/Chrome\/(\d+)/);
201
+ if (match) version = +match[1];
202
+ }
203
+ }
204
+
205
+ var engineV8Version = version;
206
+
207
+ /* eslint-disable es/no-symbol -- required for testing */
208
+ var V8_VERSION$1 = engineV8Version;
209
+ var fails$6 = fails$a;
210
+ var global$e = global$h;
211
+
212
+ var $String$4 = global$e.String;
213
+
214
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
215
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$6(function () {
216
+ var symbol = Symbol('symbol detection');
217
+ // Chrome 38 Symbol has incorrect toString conversion
218
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
219
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
220
+ // of course, fail.
221
+ return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
222
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
223
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
224
+ });
225
+
226
+ /* eslint-disable es/no-symbol -- required for testing */
227
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
228
+
229
+ var useSymbolAsUid = NATIVE_SYMBOL$1
230
+ && !Symbol.sham
231
+ && typeof Symbol.iterator == 'symbol';
232
+
233
+ var getBuiltIn$6 = getBuiltIn$7;
234
+ var isCallable$d = isCallable$g;
235
+ var isPrototypeOf$2 = objectIsPrototypeOf;
236
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
237
+
238
+ var $Object$2 = Object;
239
+
240
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
241
+ return typeof it == 'symbol';
242
+ } : function (it) {
243
+ var $Symbol = getBuiltIn$6('Symbol');
244
+ return isCallable$d($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
245
+ };
246
+
247
+ var $String$3 = String;
248
+
249
+ var tryToString$4 = function (argument) {
250
+ try {
251
+ return $String$3(argument);
252
+ } catch (error) {
253
+ return 'Object';
254
+ }
255
+ };
256
+
257
+ var isCallable$c = isCallable$g;
258
+ var tryToString$3 = tryToString$4;
259
+
260
+ var $TypeError$b = TypeError;
261
+
262
+ // `Assert: IsCallable(argument) is true`
263
+ var aCallable$8 = function (argument) {
264
+ if (isCallable$c(argument)) return argument;
265
+ throw new $TypeError$b(tryToString$3(argument) + ' is not a function');
266
+ };
267
+
268
+ var aCallable$7 = aCallable$8;
269
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
270
+
271
+ // `GetMethod` abstract operation
272
+ // https://tc39.es/ecma262/#sec-getmethod
273
+ var getMethod$3 = function (V, P) {
274
+ var func = V[P];
275
+ return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
276
+ };
277
+
278
+ var call$9 = functionCall;
279
+ var isCallable$b = isCallable$g;
280
+ var isObject$8 = isObject$9;
281
+
282
+ var $TypeError$a = TypeError;
283
+
284
+ // `OrdinaryToPrimitive` abstract operation
285
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
286
+ var ordinaryToPrimitive$1 = function (input, pref) {
287
+ var fn, val;
288
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val;
289
+ if (isCallable$b(fn = input.valueOf) && !isObject$8(val = call$9(fn, input))) return val;
290
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val;
291
+ throw new $TypeError$a("Can't convert object to primitive value");
292
+ };
293
+
294
+ var sharedStore = {exports: {}};
295
+
296
+ var global$d = global$h;
297
+
298
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
299
+ var defineProperty$3 = Object.defineProperty;
300
+
301
+ var defineGlobalProperty$3 = function (key, value) {
302
+ try {
303
+ defineProperty$3(global$d, key, { value: value, configurable: true, writable: true });
304
+ } catch (error) {
305
+ global$d[key] = value;
306
+ } return value;
307
+ };
308
+
309
+ var globalThis$1 = global$h;
310
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
311
+
312
+ var SHARED = '__core-js_shared__';
313
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
314
+
315
+ (store$3.versions || (store$3.versions = [])).push({
316
+ version: '3.37.1',
317
+ mode: 'global',
318
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
319
+ license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
320
+ source: 'https://github.com/zloirock/core-js'
321
+ });
322
+
323
+ var sharedStoreExports = sharedStore.exports;
324
+
325
+ var store$2 = sharedStoreExports;
326
+
327
+ var shared$3 = function (key, value) {
328
+ return store$2[key] || (store$2[key] = value || {});
329
+ };
330
+
331
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
332
+
333
+ var $Object$1 = Object;
334
+
335
+ // `ToObject` abstract operation
336
+ // https://tc39.es/ecma262/#sec-toobject
337
+ var toObject$1 = function (argument) {
338
+ return $Object$1(requireObjectCoercible$1(argument));
339
+ };
340
+
341
+ var uncurryThis$a = functionUncurryThis;
342
+ var toObject = toObject$1;
343
+
344
+ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
345
+
346
+ // `HasOwnProperty` abstract operation
347
+ // https://tc39.es/ecma262/#sec-hasownproperty
348
+ // eslint-disable-next-line es/no-object-hasown -- safe
349
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
350
+ return hasOwnProperty(toObject(it), key);
351
+ };
352
+
353
+ var uncurryThis$9 = functionUncurryThis;
354
+
355
+ var id = 0;
356
+ var postfix = Math.random();
357
+ var toString = uncurryThis$9(1.0.toString);
358
+
359
+ var uid$2 = function (key) {
360
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
361
+ };
362
+
363
+ var global$c = global$h;
364
+ var shared$2 = shared$3;
365
+ var hasOwn$8 = hasOwnProperty_1;
366
+ var uid$1 = uid$2;
367
+ var NATIVE_SYMBOL = symbolConstructorDetection;
368
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
369
+
370
+ var Symbol$1 = global$c.Symbol;
371
+ var WellKnownSymbolsStore = shared$2('wks');
372
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
373
+
374
+ var wellKnownSymbol$a = function (name) {
375
+ if (!hasOwn$8(WellKnownSymbolsStore, name)) {
376
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
377
+ ? Symbol$1[name]
378
+ : createWellKnownSymbol('Symbol.' + name);
379
+ } return WellKnownSymbolsStore[name];
380
+ };
381
+
382
+ var call$8 = functionCall;
383
+ var isObject$7 = isObject$9;
384
+ var isSymbol$1 = isSymbol$2;
385
+ var getMethod$2 = getMethod$3;
386
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
387
+ var wellKnownSymbol$9 = wellKnownSymbol$a;
388
+
389
+ var $TypeError$9 = TypeError;
390
+ var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
391
+
392
+ // `ToPrimitive` abstract operation
393
+ // https://tc39.es/ecma262/#sec-toprimitive
394
+ var toPrimitive$1 = function (input, pref) {
395
+ if (!isObject$7(input) || isSymbol$1(input)) return input;
396
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
397
+ var result;
398
+ if (exoticToPrim) {
399
+ if (pref === undefined) pref = 'default';
400
+ result = call$8(exoticToPrim, input, pref);
401
+ if (!isObject$7(result) || isSymbol$1(result)) return result;
402
+ throw new $TypeError$9("Can't convert object to primitive value");
403
+ }
404
+ if (pref === undefined) pref = 'number';
405
+ return ordinaryToPrimitive(input, pref);
406
+ };
407
+
408
+ var toPrimitive = toPrimitive$1;
409
+ var isSymbol = isSymbol$2;
410
+
411
+ // `ToPropertyKey` abstract operation
412
+ // https://tc39.es/ecma262/#sec-topropertykey
413
+ var toPropertyKey$2 = function (argument) {
414
+ var key = toPrimitive(argument, 'string');
415
+ return isSymbol(key) ? key : key + '';
416
+ };
417
+
418
+ var global$b = global$h;
419
+ var isObject$6 = isObject$9;
420
+
421
+ var document$3 = global$b.document;
422
+ // typeof document.createElement is 'object' in old IE
423
+ var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
424
+
425
+ var documentCreateElement = function (it) {
426
+ return EXISTS$1 ? document$3.createElement(it) : {};
427
+ };
428
+
429
+ var DESCRIPTORS$8 = descriptors;
430
+ var fails$5 = fails$a;
431
+ var createElement$1 = documentCreateElement;
432
+
433
+ // Thanks to IE8 for its funny defineProperty
434
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
435
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
436
+ return Object.defineProperty(createElement$1('div'), 'a', {
437
+ get: function () { return 7; }
438
+ }).a !== 7;
439
+ });
440
+
441
+ var DESCRIPTORS$7 = descriptors;
442
+ var call$7 = functionCall;
443
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
444
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
445
+ var toIndexedObject$2 = toIndexedObject$3;
446
+ var toPropertyKey$1 = toPropertyKey$2;
447
+ var hasOwn$7 = hasOwnProperty_1;
448
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
449
+
450
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
451
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
452
+
453
+ // `Object.getOwnPropertyDescriptor` method
454
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
455
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
456
+ O = toIndexedObject$2(O);
457
+ P = toPropertyKey$1(P);
458
+ if (IE8_DOM_DEFINE$1) try {
459
+ return $getOwnPropertyDescriptor$1(O, P);
460
+ } catch (error) { /* empty */ }
461
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$7(propertyIsEnumerableModule.f, O, P), O[P]);
462
+ };
463
+
464
+ var objectDefineProperty = {};
465
+
466
+ var DESCRIPTORS$6 = descriptors;
467
+ var fails$4 = fails$a;
468
+
469
+ // V8 ~ Chrome 36-
470
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
471
+ var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$4(function () {
472
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
473
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
474
+ value: 42,
475
+ writable: false
476
+ }).prototype !== 42;
477
+ });
478
+
479
+ var isObject$5 = isObject$9;
480
+
481
+ var $String$2 = String;
482
+ var $TypeError$8 = TypeError;
483
+
484
+ // `Assert: Type(argument) is Object`
485
+ var anObject$7 = function (argument) {
486
+ if (isObject$5(argument)) return argument;
487
+ throw new $TypeError$8($String$2(argument) + ' is not an object');
488
+ };
489
+
490
+ var DESCRIPTORS$5 = descriptors;
491
+ var IE8_DOM_DEFINE = ie8DomDefine;
492
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
493
+ var anObject$6 = anObject$7;
494
+ var toPropertyKey = toPropertyKey$2;
495
+
496
+ var $TypeError$7 = TypeError;
497
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
498
+ var $defineProperty = Object.defineProperty;
499
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
500
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
501
+ var ENUMERABLE = 'enumerable';
502
+ var CONFIGURABLE$1 = 'configurable';
503
+ var WRITABLE = 'writable';
504
+
505
+ // `Object.defineProperty` method
506
+ // https://tc39.es/ecma262/#sec-object.defineproperty
507
+ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
508
+ anObject$6(O);
509
+ P = toPropertyKey(P);
510
+ anObject$6(Attributes);
511
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
512
+ var current = $getOwnPropertyDescriptor(O, P);
513
+ if (current && current[WRITABLE]) {
514
+ O[P] = Attributes.value;
515
+ Attributes = {
516
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
517
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
518
+ writable: false
519
+ };
520
+ }
521
+ } return $defineProperty(O, P, Attributes);
522
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
523
+ anObject$6(O);
524
+ P = toPropertyKey(P);
525
+ anObject$6(Attributes);
526
+ if (IE8_DOM_DEFINE) try {
527
+ return $defineProperty(O, P, Attributes);
528
+ } catch (error) { /* empty */ }
529
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$7('Accessors not supported');
530
+ if ('value' in Attributes) O[P] = Attributes.value;
531
+ return O;
532
+ };
533
+
534
+ var DESCRIPTORS$4 = descriptors;
535
+ var definePropertyModule$2 = objectDefineProperty;
536
+ var createPropertyDescriptor = createPropertyDescriptor$2;
537
+
538
+ var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
539
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
540
+ } : function (object, key, value) {
541
+ object[key] = value;
542
+ return object;
543
+ };
544
+
545
+ var makeBuiltIn$3 = {exports: {}};
546
+
547
+ var DESCRIPTORS$3 = descriptors;
548
+ var hasOwn$6 = hasOwnProperty_1;
549
+
550
+ var FunctionPrototype$1 = Function.prototype;
551
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
552
+ var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
553
+
554
+ var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
555
+ // additional protection from minified / mangled / dropped function names
556
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
557
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
558
+
559
+ var functionName = {
560
+ EXISTS: EXISTS,
561
+ PROPER: PROPER,
562
+ CONFIGURABLE: CONFIGURABLE
563
+ };
564
+
565
+ var uncurryThis$8 = functionUncurryThis;
566
+ var isCallable$a = isCallable$g;
567
+ var store$1 = sharedStoreExports;
568
+
569
+ var functionToString = uncurryThis$8(Function.toString);
570
+
571
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
572
+ if (!isCallable$a(store$1.inspectSource)) {
573
+ store$1.inspectSource = function (it) {
574
+ return functionToString(it);
575
+ };
576
+ }
577
+
578
+ var inspectSource$3 = store$1.inspectSource;
579
+
580
+ var global$a = global$h;
581
+ var isCallable$9 = isCallable$g;
582
+
583
+ var WeakMap$1 = global$a.WeakMap;
584
+
585
+ var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
586
+
587
+ var shared$1 = shared$3;
588
+ var uid = uid$2;
589
+
590
+ var keys = shared$1('keys');
591
+
592
+ var sharedKey$1 = function (key) {
593
+ return keys[key] || (keys[key] = uid(key));
594
+ };
595
+
596
+ var hiddenKeys$3 = {};
597
+
598
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
599
+ var global$9 = global$h;
600
+ var isObject$4 = isObject$9;
601
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
602
+ var hasOwn$5 = hasOwnProperty_1;
603
+ var shared = sharedStoreExports;
604
+ var sharedKey = sharedKey$1;
605
+ var hiddenKeys$2 = hiddenKeys$3;
606
+
607
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
608
+ var TypeError$2 = global$9.TypeError;
609
+ var WeakMap = global$9.WeakMap;
610
+ var set$1, get, has;
611
+
612
+ var enforce = function (it) {
613
+ return has(it) ? get(it) : set$1(it, {});
614
+ };
615
+
616
+ var getterFor = function (TYPE) {
617
+ return function (it) {
618
+ var state;
619
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
620
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
621
+ } return state;
622
+ };
623
+ };
624
+
625
+ if (NATIVE_WEAK_MAP || shared.state) {
626
+ var store = shared.state || (shared.state = new WeakMap());
627
+ /* eslint-disable no-self-assign -- prototype methods protection */
628
+ store.get = store.get;
629
+ store.has = store.has;
630
+ store.set = store.set;
631
+ /* eslint-enable no-self-assign -- prototype methods protection */
632
+ set$1 = function (it, metadata) {
633
+ if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
634
+ metadata.facade = it;
635
+ store.set(it, metadata);
636
+ return metadata;
637
+ };
638
+ get = function (it) {
639
+ return store.get(it) || {};
640
+ };
641
+ has = function (it) {
642
+ return store.has(it);
643
+ };
644
+ } else {
645
+ var STATE = sharedKey('state');
646
+ hiddenKeys$2[STATE] = true;
647
+ set$1 = function (it, metadata) {
648
+ if (hasOwn$5(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
649
+ metadata.facade = it;
650
+ createNonEnumerableProperty$1(it, STATE, metadata);
651
+ return metadata;
652
+ };
653
+ get = function (it) {
654
+ return hasOwn$5(it, STATE) ? it[STATE] : {};
655
+ };
656
+ has = function (it) {
657
+ return hasOwn$5(it, STATE);
658
+ };
659
+ }
660
+
661
+ var internalState = {
662
+ set: set$1,
663
+ get: get,
664
+ has: has,
665
+ enforce: enforce,
666
+ getterFor: getterFor
667
+ };
668
+
669
+ var uncurryThis$7 = functionUncurryThis;
670
+ var fails$3 = fails$a;
671
+ var isCallable$8 = isCallable$g;
672
+ var hasOwn$4 = hasOwnProperty_1;
673
+ var DESCRIPTORS$2 = descriptors;
674
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
675
+ var inspectSource$2 = inspectSource$3;
676
+ var InternalStateModule$1 = internalState;
677
+
678
+ var enforceInternalState = InternalStateModule$1.enforce;
679
+ var getInternalState = InternalStateModule$1.get;
680
+ var $String$1 = String;
681
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
682
+ var defineProperty$2 = Object.defineProperty;
683
+ var stringSlice = uncurryThis$7(''.slice);
684
+ var replace = uncurryThis$7(''.replace);
685
+ var join = uncurryThis$7([].join);
686
+
687
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$3(function () {
688
+ return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
689
+ });
690
+
691
+ var TEMPLATE = String(String).split('String');
692
+
693
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
694
+ if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
695
+ name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
696
+ }
697
+ if (options && options.getter) name = 'get ' + name;
698
+ if (options && options.setter) name = 'set ' + name;
699
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
700
+ if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
701
+ else value.name = name;
702
+ }
703
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
704
+ defineProperty$2(value, 'length', { value: options.arity });
705
+ }
706
+ try {
707
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
708
+ if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
709
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
710
+ } else if (value.prototype) value.prototype = undefined;
711
+ } catch (error) { /* empty */ }
712
+ var state = enforceInternalState(value);
713
+ if (!hasOwn$4(state, 'source')) {
714
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
715
+ } return value;
716
+ };
717
+
718
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
719
+ // eslint-disable-next-line no-extend-native -- required
720
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
721
+ return isCallable$8(this) && getInternalState(this).source || inspectSource$2(this);
722
+ }, 'toString');
723
+
724
+ var makeBuiltInExports = makeBuiltIn$3.exports;
725
+
726
+ var isCallable$7 = isCallable$g;
727
+ var definePropertyModule$1 = objectDefineProperty;
728
+ var makeBuiltIn$1 = makeBuiltInExports;
729
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
730
+
731
+ var defineBuiltIn$3 = function (O, key, value, options) {
732
+ if (!options) options = {};
733
+ var simple = options.enumerable;
734
+ var name = options.name !== undefined ? options.name : key;
735
+ if (isCallable$7(value)) makeBuiltIn$1(value, name, options);
736
+ if (options.global) {
737
+ if (simple) O[key] = value;
738
+ else defineGlobalProperty$1(key, value);
739
+ } else {
740
+ try {
741
+ if (!options.unsafe) delete O[key];
742
+ else if (O[key]) simple = true;
743
+ } catch (error) { /* empty */ }
744
+ if (simple) O[key] = value;
745
+ else definePropertyModule$1.f(O, key, {
746
+ value: value,
747
+ enumerable: false,
748
+ configurable: !options.nonConfigurable,
749
+ writable: !options.nonWritable
750
+ });
751
+ } return O;
752
+ };
753
+
754
+ var objectGetOwnPropertyNames = {};
755
+
756
+ var ceil = Math.ceil;
757
+ var floor = Math.floor;
758
+
759
+ // `Math.trunc` method
760
+ // https://tc39.es/ecma262/#sec-math.trunc
761
+ // eslint-disable-next-line es/no-math-trunc -- safe
762
+ var mathTrunc = Math.trunc || function trunc(x) {
763
+ var n = +x;
764
+ return (n > 0 ? floor : ceil)(n);
765
+ };
766
+
767
+ var trunc = mathTrunc;
768
+
769
+ // `ToIntegerOrInfinity` abstract operation
770
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
771
+ var toIntegerOrInfinity$2 = function (argument) {
772
+ var number = +argument;
773
+ // eslint-disable-next-line no-self-compare -- NaN check
774
+ return number !== number || number === 0 ? 0 : trunc(number);
775
+ };
776
+
777
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
778
+
779
+ var max = Math.max;
780
+ var min$1 = Math.min;
781
+
782
+ // Helper for a popular repeating case of the spec:
783
+ // Let integer be ? ToInteger(index).
784
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
785
+ var toAbsoluteIndex$1 = function (index, length) {
786
+ var integer = toIntegerOrInfinity$1(index);
787
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
788
+ };
789
+
790
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
791
+
792
+ var min = Math.min;
793
+
794
+ // `ToLength` abstract operation
795
+ // https://tc39.es/ecma262/#sec-tolength
796
+ var toLength$1 = function (argument) {
797
+ var len = toIntegerOrInfinity(argument);
798
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
799
+ };
800
+
801
+ var toLength = toLength$1;
802
+
803
+ // `LengthOfArrayLike` abstract operation
804
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
805
+ var lengthOfArrayLike$2 = function (obj) {
806
+ return toLength(obj.length);
807
+ };
808
+
809
+ var toIndexedObject$1 = toIndexedObject$3;
810
+ var toAbsoluteIndex = toAbsoluteIndex$1;
811
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
812
+
813
+ // `Array.prototype.{ indexOf, includes }` methods implementation
814
+ var createMethod = function (IS_INCLUDES) {
815
+ return function ($this, el, fromIndex) {
816
+ var O = toIndexedObject$1($this);
817
+ var length = lengthOfArrayLike$1(O);
818
+ if (length === 0) return !IS_INCLUDES && -1;
819
+ var index = toAbsoluteIndex(fromIndex, length);
820
+ var value;
821
+ // Array#includes uses SameValueZero equality algorithm
822
+ // eslint-disable-next-line no-self-compare -- NaN check
823
+ if (IS_INCLUDES && el !== el) while (length > index) {
824
+ value = O[index++];
825
+ // eslint-disable-next-line no-self-compare -- NaN check
826
+ if (value !== value) return true;
827
+ // Array#indexOf ignores holes, Array#includes - not
828
+ } else for (;length > index; index++) {
829
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
830
+ } return !IS_INCLUDES && -1;
831
+ };
832
+ };
833
+
834
+ var arrayIncludes = {
835
+ // `Array.prototype.includes` method
836
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
837
+ includes: createMethod(true),
838
+ // `Array.prototype.indexOf` method
839
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
840
+ indexOf: createMethod(false)
841
+ };
842
+
843
+ var uncurryThis$6 = functionUncurryThis;
844
+ var hasOwn$3 = hasOwnProperty_1;
845
+ var toIndexedObject = toIndexedObject$3;
846
+ var indexOf = arrayIncludes.indexOf;
847
+ var hiddenKeys$1 = hiddenKeys$3;
848
+
849
+ var push = uncurryThis$6([].push);
850
+
851
+ var objectKeysInternal = function (object, names) {
852
+ var O = toIndexedObject(object);
853
+ var i = 0;
854
+ var result = [];
855
+ var key;
856
+ for (key in O) !hasOwn$3(hiddenKeys$1, key) && hasOwn$3(O, key) && push(result, key);
857
+ // Don't enum bug & hidden keys
858
+ while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
859
+ ~indexOf(result, key) || push(result, key);
860
+ }
861
+ return result;
862
+ };
863
+
864
+ // IE8- don't enum bug keys
865
+ var enumBugKeys$1 = [
866
+ 'constructor',
867
+ 'hasOwnProperty',
868
+ 'isPrototypeOf',
869
+ 'propertyIsEnumerable',
870
+ 'toLocaleString',
871
+ 'toString',
872
+ 'valueOf'
873
+ ];
874
+
875
+ var internalObjectKeys = objectKeysInternal;
876
+ var enumBugKeys = enumBugKeys$1;
877
+
878
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
879
+
880
+ // `Object.getOwnPropertyNames` method
881
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
882
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
883
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
884
+ return internalObjectKeys(O, hiddenKeys);
885
+ };
886
+
887
+ var objectGetOwnPropertySymbols = {};
888
+
889
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
890
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
891
+
892
+ var getBuiltIn$5 = getBuiltIn$7;
893
+ var uncurryThis$5 = functionUncurryThis;
894
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
895
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
896
+ var anObject$5 = anObject$7;
897
+
898
+ var concat = uncurryThis$5([].concat);
899
+
900
+ // all object keys, includes non-enumerable and symbols
901
+ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
902
+ var keys = getOwnPropertyNamesModule.f(anObject$5(it));
903
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
904
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
905
+ };
906
+
907
+ var hasOwn$2 = hasOwnProperty_1;
908
+ var ownKeys = ownKeys$1;
909
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
910
+ var definePropertyModule = objectDefineProperty;
911
+
912
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
913
+ var keys = ownKeys(source);
914
+ var defineProperty = definePropertyModule.f;
915
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
916
+ for (var i = 0; i < keys.length; i++) {
917
+ var key = keys[i];
918
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
919
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
920
+ }
921
+ }
922
+ };
923
+
924
+ var fails$2 = fails$a;
925
+ var isCallable$6 = isCallable$g;
926
+
927
+ var replacement = /#|\.prototype\./;
928
+
929
+ var isForced$2 = function (feature, detection) {
930
+ var value = data[normalize(feature)];
931
+ return value === POLYFILL ? true
932
+ : value === NATIVE ? false
933
+ : isCallable$6(detection) ? fails$2(detection)
934
+ : !!detection;
935
+ };
936
+
937
+ var normalize = isForced$2.normalize = function (string) {
938
+ return String(string).replace(replacement, '.').toLowerCase();
939
+ };
940
+
941
+ var data = isForced$2.data = {};
942
+ var NATIVE = isForced$2.NATIVE = 'N';
943
+ var POLYFILL = isForced$2.POLYFILL = 'P';
944
+
945
+ var isForced_1 = isForced$2;
946
+
947
+ var global$8 = global$h;
948
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
949
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
950
+ var defineBuiltIn$2 = defineBuiltIn$3;
951
+ var defineGlobalProperty = defineGlobalProperty$3;
952
+ var copyConstructorProperties = copyConstructorProperties$1;
953
+ var isForced$1 = isForced_1;
954
+
955
+ /*
956
+ options.target - name of the target object
957
+ options.global - target is the global object
958
+ options.stat - export as static methods of target
959
+ options.proto - export as prototype methods of target
960
+ options.real - real prototype method for the `pure` version
961
+ options.forced - export even if the native feature is available
962
+ options.bind - bind methods to the target, required for the `pure` version
963
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
964
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
965
+ options.sham - add a flag to not completely full polyfills
966
+ options.enumerable - export as enumerable property
967
+ options.dontCallGetSet - prevent calling a getter on target
968
+ options.name - the .name of the function if it does not match the key
969
+ */
970
+ var _export = function (options, source) {
971
+ var TARGET = options.target;
972
+ var GLOBAL = options.global;
973
+ var STATIC = options.stat;
974
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
975
+ if (GLOBAL) {
976
+ target = global$8;
977
+ } else if (STATIC) {
978
+ target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
979
+ } else {
980
+ target = global$8[TARGET] && global$8[TARGET].prototype;
981
+ }
982
+ if (target) for (key in source) {
983
+ sourceProperty = source[key];
984
+ if (options.dontCallGetSet) {
985
+ descriptor = getOwnPropertyDescriptor$1(target, key);
986
+ targetProperty = descriptor && descriptor.value;
987
+ } else targetProperty = target[key];
988
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
989
+ // contained in target
990
+ if (!FORCED && targetProperty !== undefined) {
991
+ if (typeof sourceProperty == typeof targetProperty) continue;
992
+ copyConstructorProperties(sourceProperty, targetProperty);
993
+ }
994
+ // add a flag to not completely full polyfills
995
+ if (options.sham || (targetProperty && targetProperty.sham)) {
996
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
997
+ }
998
+ defineBuiltIn$2(target, key, sourceProperty, options);
999
+ }
1000
+ };
1001
+
1002
+ var global$7 = global$h;
1003
+ var classof$3 = classofRaw$2;
1004
+
1005
+ var engineIsNode = classof$3(global$7.process) === 'process';
1006
+
1007
+ var uncurryThis$4 = functionUncurryThis;
1008
+ var aCallable$6 = aCallable$8;
1009
+
1010
+ var functionUncurryThisAccessor = function (object, key, method) {
1011
+ try {
1012
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1013
+ return uncurryThis$4(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
1014
+ } catch (error) { /* empty */ }
1015
+ };
1016
+
1017
+ var isObject$3 = isObject$9;
1018
+
1019
+ var isPossiblePrototype$1 = function (argument) {
1020
+ return isObject$3(argument) || argument === null;
1021
+ };
1022
+
1023
+ var isPossiblePrototype = isPossiblePrototype$1;
1024
+
1025
+ var $String = String;
1026
+ var $TypeError$6 = TypeError;
1027
+
1028
+ var aPossiblePrototype$1 = function (argument) {
1029
+ if (isPossiblePrototype(argument)) return argument;
1030
+ throw new $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1031
+ };
1032
+
1033
+ /* eslint-disable no-proto -- safe */
1034
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1035
+ var isObject$2 = isObject$9;
1036
+ var requireObjectCoercible = requireObjectCoercible$3;
1037
+ var aPossiblePrototype = aPossiblePrototype$1;
1038
+
1039
+ // `Object.setPrototypeOf` method
1040
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1041
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1042
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1043
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1044
+ var CORRECT_SETTER = false;
1045
+ var test = {};
1046
+ var setter;
1047
+ try {
1048
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1049
+ setter(test, []);
1050
+ CORRECT_SETTER = test instanceof Array;
1051
+ } catch (error) { /* empty */ }
1052
+ return function setPrototypeOf(O, proto) {
1053
+ requireObjectCoercible(O);
1054
+ aPossiblePrototype(proto);
1055
+ if (!isObject$2(O)) return O;
1056
+ if (CORRECT_SETTER) setter(O, proto);
1057
+ else O.__proto__ = proto;
1058
+ return O;
1059
+ };
1060
+ }() : undefined);
1061
+
1062
+ var defineProperty$1 = objectDefineProperty.f;
1063
+ var hasOwn$1 = hasOwnProperty_1;
1064
+ var wellKnownSymbol$8 = wellKnownSymbol$a;
1065
+
1066
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1067
+
1068
+ var setToStringTag$1 = function (target, TAG, STATIC) {
1069
+ if (target && !STATIC) target = target.prototype;
1070
+ if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1071
+ defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1072
+ }
1073
+ };
1074
+
1075
+ var makeBuiltIn = makeBuiltInExports;
1076
+ var defineProperty = objectDefineProperty;
1077
+
1078
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1079
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1080
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1081
+ return defineProperty.f(target, name, descriptor);
1082
+ };
1083
+
1084
+ var getBuiltIn$4 = getBuiltIn$7;
1085
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
1086
+ var wellKnownSymbol$7 = wellKnownSymbol$a;
1087
+ var DESCRIPTORS$1 = descriptors;
1088
+
1089
+ var SPECIES$2 = wellKnownSymbol$7('species');
1090
+
1091
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1092
+ var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1093
+
1094
+ if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
1095
+ defineBuiltInAccessor(Constructor, SPECIES$2, {
1096
+ configurable: true,
1097
+ get: function () { return this; }
1098
+ });
1099
+ }
1100
+ };
1101
+
1102
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1103
+
1104
+ var $TypeError$5 = TypeError;
1105
+
1106
+ var anInstance$1 = function (it, Prototype) {
1107
+ if (isPrototypeOf$1(Prototype, it)) return it;
1108
+ throw new $TypeError$5('Incorrect invocation');
1109
+ };
1110
+
1111
+ var wellKnownSymbol$6 = wellKnownSymbol$a;
1112
+
1113
+ var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1114
+ var test = {};
1115
+
1116
+ test[TO_STRING_TAG$1] = 'z';
1117
+
1118
+ var toStringTagSupport = String(test) === '[object z]';
1119
+
1120
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1121
+ var isCallable$5 = isCallable$g;
1122
+ var classofRaw$1 = classofRaw$2;
1123
+ var wellKnownSymbol$5 = wellKnownSymbol$a;
1124
+
1125
+ var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1126
+ var $Object = Object;
1127
+
1128
+ // ES3 wrong here
1129
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1130
+
1131
+ // fallback for IE11 Script Access Denied error
1132
+ var tryGet = function (it, key) {
1133
+ try {
1134
+ return it[key];
1135
+ } catch (error) { /* empty */ }
1136
+ };
1137
+
1138
+ // getting tag from ES6+ `Object.prototype.toString`
1139
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1140
+ var O, tag, result;
1141
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1142
+ // @@toStringTag case
1143
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1144
+ // builtinTag case
1145
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1146
+ // ES3 arguments fallback
1147
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1148
+ };
1149
+
1150
+ var uncurryThis$3 = functionUncurryThis;
1151
+ var fails$1 = fails$a;
1152
+ var isCallable$4 = isCallable$g;
1153
+ var classof$1 = classof$2;
1154
+ var getBuiltIn$3 = getBuiltIn$7;
1155
+ var inspectSource$1 = inspectSource$3;
1156
+
1157
+ var noop = function () { /* empty */ };
1158
+ var construct = getBuiltIn$3('Reflect', 'construct');
1159
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1160
+ var exec = uncurryThis$3(constructorRegExp.exec);
1161
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1162
+
1163
+ var isConstructorModern = function isConstructor(argument) {
1164
+ if (!isCallable$4(argument)) return false;
1165
+ try {
1166
+ construct(noop, [], argument);
1167
+ return true;
1168
+ } catch (error) {
1169
+ return false;
1170
+ }
1171
+ };
1172
+
1173
+ var isConstructorLegacy = function isConstructor(argument) {
1174
+ if (!isCallable$4(argument)) return false;
1175
+ switch (classof$1(argument)) {
1176
+ case 'AsyncFunction':
1177
+ case 'GeneratorFunction':
1178
+ case 'AsyncGeneratorFunction': return false;
1179
+ }
1180
+ try {
1181
+ // we can't check .prototype since constructors produced by .bind haven't it
1182
+ // `Function#toString` throws on some built-it function in some legacy engines
1183
+ // (for example, `DOMQuad` and similar in FF41-)
1184
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1185
+ } catch (error) {
1186
+ return true;
1187
+ }
1188
+ };
1189
+
1190
+ isConstructorLegacy.sham = true;
1191
+
1192
+ // `IsConstructor` abstract operation
1193
+ // https://tc39.es/ecma262/#sec-isconstructor
1194
+ var isConstructor$1 = !construct || fails$1(function () {
1195
+ var called;
1196
+ return isConstructorModern(isConstructorModern.call)
1197
+ || !isConstructorModern(Object)
1198
+ || !isConstructorModern(function () { called = true; })
1199
+ || called;
1200
+ }) ? isConstructorLegacy : isConstructorModern;
1201
+
1202
+ var isConstructor = isConstructor$1;
1203
+ var tryToString$2 = tryToString$4;
1204
+
1205
+ var $TypeError$4 = TypeError;
1206
+
1207
+ // `Assert: IsConstructor(argument) is true`
1208
+ var aConstructor$1 = function (argument) {
1209
+ if (isConstructor(argument)) return argument;
1210
+ throw new $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1211
+ };
1212
+
1213
+ var anObject$4 = anObject$7;
1214
+ var aConstructor = aConstructor$1;
1215
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
1216
+ var wellKnownSymbol$4 = wellKnownSymbol$a;
1217
+
1218
+ var SPECIES$1 = wellKnownSymbol$4('species');
1219
+
1220
+ // `SpeciesConstructor` abstract operation
1221
+ // https://tc39.es/ecma262/#sec-speciesconstructor
1222
+ var speciesConstructor$1 = function (O, defaultConstructor) {
1223
+ var C = anObject$4(O).constructor;
1224
+ var S;
1225
+ return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1226
+ };
1227
+
1228
+ var NATIVE_BIND$1 = functionBindNative;
1229
+
1230
+ var FunctionPrototype = Function.prototype;
1231
+ var apply$1 = FunctionPrototype.apply;
1232
+ var call$6 = FunctionPrototype.call;
1233
+
1234
+ // eslint-disable-next-line es/no-reflect -- safe
1235
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$6.bind(apply$1) : function () {
1236
+ return call$6.apply(apply$1, arguments);
1237
+ });
1238
+
1239
+ var classofRaw = classofRaw$2;
1240
+ var uncurryThis$2 = functionUncurryThis;
1241
+
1242
+ var functionUncurryThisClause = function (fn) {
1243
+ // Nashorn bug:
1244
+ // https://github.com/zloirock/core-js/issues/1128
1245
+ // https://github.com/zloirock/core-js/issues/1130
1246
+ if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
1247
+ };
1248
+
1249
+ var uncurryThis$1 = functionUncurryThisClause;
1250
+ var aCallable$5 = aCallable$8;
1251
+ var NATIVE_BIND = functionBindNative;
1252
+
1253
+ var bind$4 = uncurryThis$1(uncurryThis$1.bind);
1254
+
1255
+ // optional / simple context binding
1256
+ var functionBindContext = function (fn, that) {
1257
+ aCallable$5(fn);
1258
+ return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1259
+ return fn.apply(that, arguments);
1260
+ };
1261
+ };
1262
+
1263
+ var getBuiltIn$2 = getBuiltIn$7;
1264
+
1265
+ var html$1 = getBuiltIn$2('document', 'documentElement');
1266
+
1267
+ var uncurryThis = functionUncurryThis;
1268
+
1269
+ var arraySlice$1 = uncurryThis([].slice);
1270
+
1271
+ var $TypeError$3 = TypeError;
1272
+
1273
+ var validateArgumentsLength$1 = function (passed, required) {
1274
+ if (passed < required) throw new $TypeError$3('Not enough arguments');
1275
+ return passed;
1276
+ };
1277
+
1278
+ var userAgent$2 = engineUserAgent;
1279
+
1280
+ // eslint-disable-next-line redos/no-vulnerable -- safe
1281
+ var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1282
+
1283
+ var global$6 = global$h;
1284
+ var apply = functionApply;
1285
+ var bind$3 = functionBindContext;
1286
+ var isCallable$3 = isCallable$g;
1287
+ var hasOwn = hasOwnProperty_1;
1288
+ var fails = fails$a;
1289
+ var html = html$1;
1290
+ var arraySlice = arraySlice$1;
1291
+ var createElement = documentCreateElement;
1292
+ var validateArgumentsLength = validateArgumentsLength$1;
1293
+ var IS_IOS$1 = engineIsIos;
1294
+ var IS_NODE$3 = engineIsNode;
1295
+
1296
+ var set = global$6.setImmediate;
1297
+ var clear = global$6.clearImmediate;
1298
+ var process$2 = global$6.process;
1299
+ var Dispatch = global$6.Dispatch;
1300
+ var Function$1 = global$6.Function;
1301
+ var MessageChannel = global$6.MessageChannel;
1302
+ var String$1 = global$6.String;
1303
+ var counter = 0;
1304
+ var queue$2 = {};
1305
+ var ONREADYSTATECHANGE = 'onreadystatechange';
1306
+ var $location, defer, channel, port;
1307
+
1308
+ fails(function () {
1309
+ // Deno throws a ReferenceError on `location` access without `--location` flag
1310
+ $location = global$6.location;
1311
+ });
1312
+
1313
+ var run = function (id) {
1314
+ if (hasOwn(queue$2, id)) {
1315
+ var fn = queue$2[id];
1316
+ delete queue$2[id];
1317
+ fn();
1318
+ }
1319
+ };
1320
+
1321
+ var runner = function (id) {
1322
+ return function () {
1323
+ run(id);
1324
+ };
1325
+ };
1326
+
1327
+ var eventListener = function (event) {
1328
+ run(event.data);
1329
+ };
1330
+
1331
+ var globalPostMessageDefer = function (id) {
1332
+ // old engines have not location.origin
1333
+ global$6.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1334
+ };
1335
+
1336
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1337
+ if (!set || !clear) {
1338
+ set = function setImmediate(handler) {
1339
+ validateArgumentsLength(arguments.length, 1);
1340
+ var fn = isCallable$3(handler) ? handler : Function$1(handler);
1341
+ var args = arraySlice(arguments, 1);
1342
+ queue$2[++counter] = function () {
1343
+ apply(fn, undefined, args);
1344
+ };
1345
+ defer(counter);
1346
+ return counter;
1347
+ };
1348
+ clear = function clearImmediate(id) {
1349
+ delete queue$2[id];
1350
+ };
1351
+ // Node.js 0.8-
1352
+ if (IS_NODE$3) {
1353
+ defer = function (id) {
1354
+ process$2.nextTick(runner(id));
1355
+ };
1356
+ // Sphere (JS game engine) Dispatch API
1357
+ } else if (Dispatch && Dispatch.now) {
1358
+ defer = function (id) {
1359
+ Dispatch.now(runner(id));
1360
+ };
1361
+ // Browsers with MessageChannel, includes WebWorkers
1362
+ // except iOS - https://github.com/zloirock/core-js/issues/624
1363
+ } else if (MessageChannel && !IS_IOS$1) {
1364
+ channel = new MessageChannel();
1365
+ port = channel.port2;
1366
+ channel.port1.onmessage = eventListener;
1367
+ defer = bind$3(port.postMessage, port);
1368
+ // Browsers with postMessage, skip WebWorkers
1369
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1370
+ } else if (
1371
+ global$6.addEventListener &&
1372
+ isCallable$3(global$6.postMessage) &&
1373
+ !global$6.importScripts &&
1374
+ $location && $location.protocol !== 'file:' &&
1375
+ !fails(globalPostMessageDefer)
1376
+ ) {
1377
+ defer = globalPostMessageDefer;
1378
+ global$6.addEventListener('message', eventListener, false);
1379
+ // IE8-
1380
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
1381
+ defer = function (id) {
1382
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1383
+ html.removeChild(this);
1384
+ run(id);
1385
+ };
1386
+ };
1387
+ // Rest old browsers
1388
+ } else {
1389
+ defer = function (id) {
1390
+ setTimeout(runner(id), 0);
1391
+ };
1392
+ }
1393
+ }
1394
+
1395
+ var task$1 = {
1396
+ set: set,
1397
+ clear: clear
1398
+ };
1399
+
1400
+ var global$5 = global$h;
1401
+ var DESCRIPTORS = descriptors;
1402
+
1403
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1404
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1405
+
1406
+ // Avoid NodeJS experimental warning
1407
+ var safeGetBuiltIn$1 = function (name) {
1408
+ if (!DESCRIPTORS) return global$5[name];
1409
+ var descriptor = getOwnPropertyDescriptor(global$5, name);
1410
+ return descriptor && descriptor.value;
1411
+ };
1412
+
1413
+ var Queue$2 = function () {
1414
+ this.head = null;
1415
+ this.tail = null;
1416
+ };
1417
+
1418
+ Queue$2.prototype = {
1419
+ add: function (item) {
1420
+ var entry = { item: item, next: null };
1421
+ var tail = this.tail;
1422
+ if (tail) tail.next = entry;
1423
+ else this.head = entry;
1424
+ this.tail = entry;
1425
+ },
1426
+ get: function () {
1427
+ var entry = this.head;
1428
+ if (entry) {
1429
+ var next = this.head = entry.next;
1430
+ if (next === null) this.tail = null;
1431
+ return entry.item;
1432
+ }
1433
+ }
1434
+ };
1435
+
1436
+ var queue$1 = Queue$2;
1437
+
1438
+ var userAgent$1 = engineUserAgent;
1439
+
1440
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
1441
+
1442
+ var userAgent = engineUserAgent;
1443
+
1444
+ var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1445
+
1446
+ var global$4 = global$h;
1447
+ var safeGetBuiltIn = safeGetBuiltIn$1;
1448
+ var bind$2 = functionBindContext;
1449
+ var macrotask = task$1.set;
1450
+ var Queue$1 = queue$1;
1451
+ var IS_IOS = engineIsIos;
1452
+ var IS_IOS_PEBBLE = engineIsIosPebble;
1453
+ var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1454
+ var IS_NODE$2 = engineIsNode;
1455
+
1456
+ var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
1457
+ var document$2 = global$4.document;
1458
+ var process$1 = global$4.process;
1459
+ var Promise$1 = global$4.Promise;
1460
+ var microtask$1 = safeGetBuiltIn('queueMicrotask');
1461
+ var notify$1, toggle, node, promise, then;
1462
+
1463
+ // modern engines have queueMicrotask method
1464
+ if (!microtask$1) {
1465
+ var queue = new Queue$1();
1466
+
1467
+ var flush = function () {
1468
+ var parent, fn;
1469
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
1470
+ while (fn = queue.get()) try {
1471
+ fn();
1472
+ } catch (error) {
1473
+ if (queue.head) notify$1();
1474
+ throw error;
1475
+ }
1476
+ if (parent) parent.enter();
1477
+ };
1478
+
1479
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1480
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1481
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1482
+ toggle = true;
1483
+ node = document$2.createTextNode('');
1484
+ new MutationObserver(flush).observe(node, { characterData: true });
1485
+ notify$1 = function () {
1486
+ node.data = toggle = !toggle;
1487
+ };
1488
+ // environments with maybe non-completely correct, but existent Promise
1489
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1490
+ // Promise.resolve without an argument throws an error in LG WebOS 2
1491
+ promise = Promise$1.resolve(undefined);
1492
+ // workaround of WebKit ~ iOS Safari 10.1 bug
1493
+ promise.constructor = Promise$1;
1494
+ then = bind$2(promise.then, promise);
1495
+ notify$1 = function () {
1496
+ then(flush);
1497
+ };
1498
+ // Node.js without promises
1499
+ } else if (IS_NODE$2) {
1500
+ notify$1 = function () {
1501
+ process$1.nextTick(flush);
1502
+ };
1503
+ // for other environments - macrotask based on:
1504
+ // - setImmediate
1505
+ // - MessageChannel
1506
+ // - window.postMessage
1507
+ // - onreadystatechange
1508
+ // - setTimeout
1509
+ } else {
1510
+ // `webpack` dev server bug on IE global methods - use bind(fn, global)
1511
+ macrotask = bind$2(macrotask, global$4);
1512
+ notify$1 = function () {
1513
+ macrotask(flush);
1514
+ };
1515
+ }
1516
+
1517
+ microtask$1 = function (fn) {
1518
+ if (!queue.head) notify$1();
1519
+ queue.add(fn);
1520
+ };
1521
+ }
1522
+
1523
+ var microtask_1 = microtask$1;
1524
+
1525
+ var hostReportErrors$1 = function (a, b) {
1526
+ try {
1527
+ // eslint-disable-next-line no-console -- safe
1528
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
1529
+ } catch (error) { /* empty */ }
1530
+ };
1531
+
1532
+ var perform$3 = function (exec) {
1533
+ try {
1534
+ return { error: false, value: exec() };
1535
+ } catch (error) {
1536
+ return { error: true, value: error };
1537
+ }
1538
+ };
1539
+
1540
+ var global$3 = global$h;
1541
+
1542
+ var promiseNativeConstructor = global$3.Promise;
1543
+
1544
+ /* global Deno -- Deno case */
1545
+ var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
1546
+
1547
+ var IS_DENO$1 = engineIsDeno;
1548
+ var IS_NODE$1 = engineIsNode;
1549
+
1550
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
1551
+ && typeof window == 'object'
1552
+ && typeof document == 'object';
1553
+
1554
+ var global$2 = global$h;
1555
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
1556
+ var isCallable$2 = isCallable$g;
1557
+ var isForced = isForced_1;
1558
+ var inspectSource = inspectSource$3;
1559
+ var wellKnownSymbol$3 = wellKnownSymbol$a;
1560
+ var IS_BROWSER = engineIsBrowser;
1561
+ var IS_DENO = engineIsDeno;
1562
+ var V8_VERSION = engineV8Version;
1563
+
1564
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1565
+ var SPECIES = wellKnownSymbol$3('species');
1566
+ var SUBCLASSING = false;
1567
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
1568
+
1569
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1570
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
1571
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
1572
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1573
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1574
+ // We can't detect it synchronously, so just check versions
1575
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1576
+ // We can't use @@species feature detection in V8 since it causes
1577
+ // deoptimization and performance degradation
1578
+ // https://github.com/zloirock/core-js/issues/679
1579
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
1580
+ // Detect correctness of subclassing with @@species support
1581
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
1582
+ var FakePromise = function (exec) {
1583
+ exec(function () { /* empty */ }, function () { /* empty */ });
1584
+ };
1585
+ var constructor = promise.constructor = {};
1586
+ constructor[SPECIES] = FakePromise;
1587
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1588
+ if (!SUBCLASSING) return true;
1589
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1590
+ } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
1591
+ });
1592
+
1593
+ var promiseConstructorDetection = {
1594
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
1595
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
1596
+ SUBCLASSING: SUBCLASSING
1597
+ };
1598
+
1599
+ var newPromiseCapability$2 = {};
1600
+
1601
+ var aCallable$4 = aCallable$8;
1602
+
1603
+ var $TypeError$2 = TypeError;
1604
+
1605
+ var PromiseCapability = function (C) {
1606
+ var resolve, reject;
1607
+ this.promise = new C(function ($$resolve, $$reject) {
1608
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$2('Bad Promise constructor');
1609
+ resolve = $$resolve;
1610
+ reject = $$reject;
1611
+ });
1612
+ this.resolve = aCallable$4(resolve);
1613
+ this.reject = aCallable$4(reject);
1614
+ };
1615
+
1616
+ // `NewPromiseCapability` abstract operation
1617
+ // https://tc39.es/ecma262/#sec-newpromisecapability
1618
+ newPromiseCapability$2.f = function (C) {
1619
+ return new PromiseCapability(C);
1620
+ };
1621
+
1622
+ var $$5 = _export;
1623
+ var IS_NODE = engineIsNode;
1624
+ var global$1 = global$h;
1625
+ var call$5 = functionCall;
1626
+ var defineBuiltIn$1 = defineBuiltIn$3;
1627
+ var setPrototypeOf = objectSetPrototypeOf;
1628
+ var setToStringTag = setToStringTag$1;
1629
+ var setSpecies = setSpecies$1;
1630
+ var aCallable$3 = aCallable$8;
1631
+ var isCallable$1 = isCallable$g;
1632
+ var isObject$1 = isObject$9;
1633
+ var anInstance = anInstance$1;
1634
+ var speciesConstructor = speciesConstructor$1;
1635
+ var task = task$1.set;
1636
+ var microtask = microtask_1;
1637
+ var hostReportErrors = hostReportErrors$1;
1638
+ var perform$2 = perform$3;
1639
+ var Queue = queue$1;
1640
+ var InternalStateModule = internalState;
1641
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
1642
+ var PromiseConstructorDetection = promiseConstructorDetection;
1643
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
1644
+
1645
+ var PROMISE = 'Promise';
1646
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
1647
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
1648
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1649
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
1650
+ var setInternalState = InternalStateModule.set;
1651
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1652
+ var PromiseConstructor = NativePromiseConstructor$2;
1653
+ var PromisePrototype = NativePromisePrototype$1;
1654
+ var TypeError$1 = global$1.TypeError;
1655
+ var document$1 = global$1.document;
1656
+ var process = global$1.process;
1657
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
1658
+ var newGenericPromiseCapability = newPromiseCapability$1;
1659
+
1660
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
1661
+ var UNHANDLED_REJECTION = 'unhandledrejection';
1662
+ var REJECTION_HANDLED = 'rejectionhandled';
1663
+ var PENDING = 0;
1664
+ var FULFILLED = 1;
1665
+ var REJECTED = 2;
1666
+ var HANDLED = 1;
1667
+ var UNHANDLED = 2;
1668
+
1669
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1670
+
1671
+ // helpers
1672
+ var isThenable = function (it) {
1673
+ var then;
1674
+ return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
1675
+ };
1676
+
1677
+ var callReaction = function (reaction, state) {
1678
+ var value = state.value;
1679
+ var ok = state.state === FULFILLED;
1680
+ var handler = ok ? reaction.ok : reaction.fail;
1681
+ var resolve = reaction.resolve;
1682
+ var reject = reaction.reject;
1683
+ var domain = reaction.domain;
1684
+ var result, then, exited;
1685
+ try {
1686
+ if (handler) {
1687
+ if (!ok) {
1688
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
1689
+ state.rejection = HANDLED;
1690
+ }
1691
+ if (handler === true) result = value;
1692
+ else {
1693
+ if (domain) domain.enter();
1694
+ result = handler(value); // can throw
1695
+ if (domain) {
1696
+ domain.exit();
1697
+ exited = true;
1698
+ }
1699
+ }
1700
+ if (result === reaction.promise) {
1701
+ reject(new TypeError$1('Promise-chain cycle'));
1702
+ } else if (then = isThenable(result)) {
1703
+ call$5(then, result, resolve, reject);
1704
+ } else resolve(result);
1705
+ } else reject(value);
1706
+ } catch (error) {
1707
+ if (domain && !exited) domain.exit();
1708
+ reject(error);
1709
+ }
1710
+ };
1711
+
1712
+ var notify = function (state, isReject) {
1713
+ if (state.notified) return;
1714
+ state.notified = true;
1715
+ microtask(function () {
1716
+ var reactions = state.reactions;
1717
+ var reaction;
1718
+ while (reaction = reactions.get()) {
1719
+ callReaction(reaction, state);
1720
+ }
1721
+ state.notified = false;
1722
+ if (isReject && !state.rejection) onUnhandled(state);
1723
+ });
1724
+ };
1725
+
1726
+ var dispatchEvent = function (name, promise, reason) {
1727
+ var event, handler;
1728
+ if (DISPATCH_EVENT) {
1729
+ event = document$1.createEvent('Event');
1730
+ event.promise = promise;
1731
+ event.reason = reason;
1732
+ event.initEvent(name, false, true);
1733
+ global$1.dispatchEvent(event);
1734
+ } else event = { promise: promise, reason: reason };
1735
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
1736
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1737
+ };
1738
+
1739
+ var onUnhandled = function (state) {
1740
+ call$5(task, global$1, function () {
1741
+ var promise = state.facade;
1742
+ var value = state.value;
1743
+ var IS_UNHANDLED = isUnhandled(state);
1744
+ var result;
1745
+ if (IS_UNHANDLED) {
1746
+ result = perform$2(function () {
1747
+ if (IS_NODE) {
1748
+ process.emit('unhandledRejection', value, promise);
1749
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
1750
+ });
1751
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1752
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
1753
+ if (result.error) throw result.value;
1754
+ }
1755
+ });
1756
+ };
1757
+
1758
+ var isUnhandled = function (state) {
1759
+ return state.rejection !== HANDLED && !state.parent;
1760
+ };
1761
+
1762
+ var onHandleUnhandled = function (state) {
1763
+ call$5(task, global$1, function () {
1764
+ var promise = state.facade;
1765
+ if (IS_NODE) {
1766
+ process.emit('rejectionHandled', promise);
1767
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1768
+ });
1769
+ };
1770
+
1771
+ var bind$1 = function (fn, state, unwrap) {
1772
+ return function (value) {
1773
+ fn(state, value, unwrap);
1774
+ };
1775
+ };
1776
+
1777
+ var internalReject = function (state, value, unwrap) {
1778
+ if (state.done) return;
1779
+ state.done = true;
1780
+ if (unwrap) state = unwrap;
1781
+ state.value = value;
1782
+ state.state = REJECTED;
1783
+ notify(state, true);
1784
+ };
1785
+
1786
+ var internalResolve = function (state, value, unwrap) {
1787
+ if (state.done) return;
1788
+ state.done = true;
1789
+ if (unwrap) state = unwrap;
1790
+ try {
1791
+ if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
1792
+ var then = isThenable(value);
1793
+ if (then) {
1794
+ microtask(function () {
1795
+ var wrapper = { done: false };
1796
+ try {
1797
+ call$5(then, value,
1798
+ bind$1(internalResolve, wrapper, state),
1799
+ bind$1(internalReject, wrapper, state)
1800
+ );
1801
+ } catch (error) {
1802
+ internalReject(wrapper, error, state);
1803
+ }
1804
+ });
1805
+ } else {
1806
+ state.value = value;
1807
+ state.state = FULFILLED;
1808
+ notify(state, false);
1809
+ }
1810
+ } catch (error) {
1811
+ internalReject({ done: false }, error, state);
1812
+ }
1813
+ };
1814
+
1815
+ // constructor polyfill
1816
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1817
+ // 25.4.3.1 Promise(executor)
1818
+ PromiseConstructor = function Promise(executor) {
1819
+ anInstance(this, PromisePrototype);
1820
+ aCallable$3(executor);
1821
+ call$5(Internal, this);
1822
+ var state = getInternalPromiseState(this);
1823
+ try {
1824
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
1825
+ } catch (error) {
1826
+ internalReject(state, error);
1827
+ }
1828
+ };
1829
+
1830
+ PromisePrototype = PromiseConstructor.prototype;
1831
+
1832
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1833
+ Internal = function Promise(executor) {
1834
+ setInternalState(this, {
1835
+ type: PROMISE,
1836
+ done: false,
1837
+ notified: false,
1838
+ parent: false,
1839
+ reactions: new Queue(),
1840
+ rejection: false,
1841
+ state: PENDING,
1842
+ value: undefined
1843
+ });
1844
+ };
1845
+
1846
+ // `Promise.prototype.then` method
1847
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
1848
+ Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1849
+ var state = getInternalPromiseState(this);
1850
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
1851
+ state.parent = true;
1852
+ reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
1853
+ reaction.fail = isCallable$1(onRejected) && onRejected;
1854
+ reaction.domain = IS_NODE ? process.domain : undefined;
1855
+ if (state.state === PENDING) state.reactions.add(reaction);
1856
+ else microtask(function () {
1857
+ callReaction(reaction, state);
1858
+ });
1859
+ return reaction.promise;
1860
+ });
1861
+
1862
+ OwnPromiseCapability = function () {
1863
+ var promise = new Internal();
1864
+ var state = getInternalPromiseState(promise);
1865
+ this.promise = promise;
1866
+ this.resolve = bind$1(internalResolve, state);
1867
+ this.reject = bind$1(internalReject, state);
1868
+ };
1869
+
1870
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
1871
+ return C === PromiseConstructor || C === PromiseWrapper
1872
+ ? new OwnPromiseCapability(C)
1873
+ : newGenericPromiseCapability(C);
1874
+ };
1875
+
1876
+ if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1877
+ nativeThen = NativePromisePrototype$1.then;
1878
+
1879
+ if (!NATIVE_PROMISE_SUBCLASSING) {
1880
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1881
+ defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1882
+ var that = this;
1883
+ return new PromiseConstructor(function (resolve, reject) {
1884
+ call$5(nativeThen, that, resolve, reject);
1885
+ }).then(onFulfilled, onRejected);
1886
+ // https://github.com/zloirock/core-js/issues/640
1887
+ }, { unsafe: true });
1888
+ }
1889
+
1890
+ // make `.constructor === Promise` work for native promise-based APIs
1891
+ try {
1892
+ delete NativePromisePrototype$1.constructor;
1893
+ } catch (error) { /* empty */ }
1894
+
1895
+ // make `instanceof Promise` work for native promise-based APIs
1896
+ if (setPrototypeOf) {
1897
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
1898
+ }
1899
+ }
1900
+ }
1901
+
1902
+ $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1903
+ Promise: PromiseConstructor
1904
+ });
1905
+
1906
+ setToStringTag(PromiseConstructor, PROMISE, false);
1907
+ setSpecies(PROMISE);
1908
+
1909
+ var iterators = {};
1910
+
1911
+ var wellKnownSymbol$2 = wellKnownSymbol$a;
1912
+ var Iterators$1 = iterators;
1913
+
1914
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
1915
+ var ArrayPrototype = Array.prototype;
1916
+
1917
+ // check on default Array iterator
1918
+ var isArrayIteratorMethod$1 = function (it) {
1919
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
1920
+ };
1921
+
1922
+ var classof = classof$2;
1923
+ var getMethod$1 = getMethod$3;
1924
+ var isNullOrUndefined = isNullOrUndefined$4;
1925
+ var Iterators = iterators;
1926
+ var wellKnownSymbol$1 = wellKnownSymbol$a;
1927
+
1928
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
1929
+
1930
+ var getIteratorMethod$2 = function (it) {
1931
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
1932
+ || getMethod$1(it, '@@iterator')
1933
+ || Iterators[classof(it)];
1934
+ };
1935
+
1936
+ var call$4 = functionCall;
1937
+ var aCallable$2 = aCallable$8;
1938
+ var anObject$3 = anObject$7;
1939
+ var tryToString$1 = tryToString$4;
1940
+ var getIteratorMethod$1 = getIteratorMethod$2;
1941
+
1942
+ var $TypeError$1 = TypeError;
1943
+
1944
+ var getIterator$1 = function (argument, usingIterator) {
1945
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1946
+ if (aCallable$2(iteratorMethod)) return anObject$3(call$4(iteratorMethod, argument));
1947
+ throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
1948
+ };
1949
+
1950
+ var call$3 = functionCall;
1951
+ var anObject$2 = anObject$7;
1952
+ var getMethod = getMethod$3;
1953
+
1954
+ var iteratorClose$1 = function (iterator, kind, value) {
1955
+ var innerResult, innerError;
1956
+ anObject$2(iterator);
1957
+ try {
1958
+ innerResult = getMethod(iterator, 'return');
1959
+ if (!innerResult) {
1960
+ if (kind === 'throw') throw value;
1961
+ return value;
1962
+ }
1963
+ innerResult = call$3(innerResult, iterator);
1964
+ } catch (error) {
1965
+ innerError = true;
1966
+ innerResult = error;
1967
+ }
1968
+ if (kind === 'throw') throw value;
1969
+ if (innerError) throw innerResult;
1970
+ anObject$2(innerResult);
1971
+ return value;
1972
+ };
1973
+
1974
+ var bind = functionBindContext;
1975
+ var call$2 = functionCall;
1976
+ var anObject$1 = anObject$7;
1977
+ var tryToString = tryToString$4;
1978
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1979
+ var lengthOfArrayLike = lengthOfArrayLike$2;
1980
+ var isPrototypeOf = objectIsPrototypeOf;
1981
+ var getIterator = getIterator$1;
1982
+ var getIteratorMethod = getIteratorMethod$2;
1983
+ var iteratorClose = iteratorClose$1;
1984
+
1985
+ var $TypeError = TypeError;
1986
+
1987
+ var Result = function (stopped, result) {
1988
+ this.stopped = stopped;
1989
+ this.result = result;
1990
+ };
1991
+
1992
+ var ResultPrototype = Result.prototype;
1993
+
1994
+ var iterate$2 = function (iterable, unboundFunction, options) {
1995
+ var that = options && options.that;
1996
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1997
+ var IS_RECORD = !!(options && options.IS_RECORD);
1998
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1999
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
2000
+ var fn = bind(unboundFunction, that);
2001
+ var iterator, iterFn, index, length, result, next, step;
2002
+
2003
+ var stop = function (condition) {
2004
+ if (iterator) iteratorClose(iterator, 'normal', condition);
2005
+ return new Result(true, condition);
2006
+ };
2007
+
2008
+ var callFn = function (value) {
2009
+ if (AS_ENTRIES) {
2010
+ anObject$1(value);
2011
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2012
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
2013
+ };
2014
+
2015
+ if (IS_RECORD) {
2016
+ iterator = iterable.iterator;
2017
+ } else if (IS_ITERATOR) {
2018
+ iterator = iterable;
2019
+ } else {
2020
+ iterFn = getIteratorMethod(iterable);
2021
+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
2022
+ // optimisation for array iterators
2023
+ if (isArrayIteratorMethod(iterFn)) {
2024
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2025
+ result = callFn(iterable[index]);
2026
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
2027
+ } return new Result(false);
2028
+ }
2029
+ iterator = getIterator(iterable, iterFn);
2030
+ }
2031
+
2032
+ next = IS_RECORD ? iterable.next : iterator.next;
2033
+ while (!(step = call$2(next, iterator)).done) {
2034
+ try {
2035
+ result = callFn(step.value);
2036
+ } catch (error) {
2037
+ iteratorClose(iterator, 'throw', error);
2038
+ }
2039
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2040
+ } return new Result(false);
2041
+ };
2042
+
2043
+ var wellKnownSymbol = wellKnownSymbol$a;
2044
+
2045
+ var ITERATOR = wellKnownSymbol('iterator');
2046
+ var SAFE_CLOSING = false;
2047
+
2048
+ try {
2049
+ var called = 0;
2050
+ var iteratorWithReturn = {
2051
+ next: function () {
2052
+ return { done: !!called++ };
2053
+ },
2054
+ 'return': function () {
2055
+ SAFE_CLOSING = true;
2056
+ }
2057
+ };
2058
+ iteratorWithReturn[ITERATOR] = function () {
2059
+ return this;
2060
+ };
2061
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2062
+ Array.from(iteratorWithReturn, function () { throw 2; });
2063
+ } catch (error) { /* empty */ }
2064
+
2065
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2066
+ try {
2067
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2068
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
2069
+ var ITERATION_SUPPORT = false;
2070
+ try {
2071
+ var object = {};
2072
+ object[ITERATOR] = function () {
2073
+ return {
2074
+ next: function () {
2075
+ return { done: ITERATION_SUPPORT = true };
2076
+ }
2077
+ };
2078
+ };
2079
+ exec(object);
2080
+ } catch (error) { /* empty */ }
2081
+ return ITERATION_SUPPORT;
2082
+ };
2083
+
2084
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
2085
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2086
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2087
+
2088
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2089
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2090
+ });
2091
+
2092
+ var $$4 = _export;
2093
+ var call$1 = functionCall;
2094
+ var aCallable$1 = aCallable$8;
2095
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2096
+ var perform$1 = perform$3;
2097
+ var iterate$1 = iterate$2;
2098
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2099
+
2100
+ // `Promise.all` method
2101
+ // https://tc39.es/ecma262/#sec-promise.all
2102
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2103
+ all: function all(iterable) {
2104
+ var C = this;
2105
+ var capability = newPromiseCapabilityModule$2.f(C);
2106
+ var resolve = capability.resolve;
2107
+ var reject = capability.reject;
2108
+ var result = perform$1(function () {
2109
+ var $promiseResolve = aCallable$1(C.resolve);
2110
+ var values = [];
2111
+ var counter = 0;
2112
+ var remaining = 1;
2113
+ iterate$1(iterable, function (promise) {
2114
+ var index = counter++;
2115
+ var alreadyCalled = false;
2116
+ remaining++;
2117
+ call$1($promiseResolve, C, promise).then(function (value) {
2118
+ if (alreadyCalled) return;
2119
+ alreadyCalled = true;
2120
+ values[index] = value;
2121
+ --remaining || resolve(values);
2122
+ }, reject);
2123
+ });
2124
+ --remaining || resolve(values);
2125
+ });
2126
+ if (result.error) reject(result.value);
2127
+ return capability.promise;
2128
+ }
2129
+ });
2130
+
2131
+ var $$3 = _export;
2132
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2133
+ var NativePromiseConstructor = promiseNativeConstructor;
2134
+ var getBuiltIn$1 = getBuiltIn$7;
2135
+ var isCallable = isCallable$g;
2136
+ var defineBuiltIn = defineBuiltIn$3;
2137
+
2138
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2139
+
2140
+ // `Promise.prototype.catch` method
2141
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
2142
+ $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2143
+ 'catch': function (onRejected) {
2144
+ return this.then(undefined, onRejected);
2145
+ }
2146
+ });
2147
+
2148
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2149
+ if (isCallable(NativePromiseConstructor)) {
2150
+ var method = getBuiltIn$1('Promise').prototype['catch'];
2151
+ if (NativePromisePrototype['catch'] !== method) {
2152
+ defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2153
+ }
2154
+ }
2155
+
2156
+ var $$2 = _export;
2157
+ var call = functionCall;
2158
+ var aCallable = aCallable$8;
2159
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2160
+ var perform = perform$3;
2161
+ var iterate = iterate$2;
2162
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2163
+
2164
+ // `Promise.race` method
2165
+ // https://tc39.es/ecma262/#sec-promise.race
2166
+ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2167
+ race: function race(iterable) {
2168
+ var C = this;
2169
+ var capability = newPromiseCapabilityModule$1.f(C);
2170
+ var reject = capability.reject;
2171
+ var result = perform(function () {
2172
+ var $promiseResolve = aCallable(C.resolve);
2173
+ iterate(iterable, function (promise) {
2174
+ call($promiseResolve, C, promise).then(capability.resolve, reject);
2175
+ });
2176
+ });
2177
+ if (result.error) reject(result.value);
2178
+ return capability.promise;
2179
+ }
2180
+ });
2181
+
2182
+ var $$1 = _export;
2183
+ var newPromiseCapabilityModule = newPromiseCapability$2;
2184
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2185
+
2186
+ // `Promise.reject` method
2187
+ // https://tc39.es/ecma262/#sec-promise.reject
2188
+ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2189
+ reject: function reject(r) {
2190
+ var capability = newPromiseCapabilityModule.f(this);
2191
+ var capabilityReject = capability.reject;
2192
+ capabilityReject(r);
2193
+ return capability.promise;
2194
+ }
2195
+ });
2196
+
2197
+ var anObject = anObject$7;
2198
+ var isObject = isObject$9;
2199
+ var newPromiseCapability = newPromiseCapability$2;
2200
+
2201
+ var promiseResolve$1 = function (C, x) {
2202
+ anObject(C);
2203
+ if (isObject(x) && x.constructor === C) return x;
2204
+ var promiseCapability = newPromiseCapability.f(C);
2205
+ var resolve = promiseCapability.resolve;
2206
+ resolve(x);
2207
+ return promiseCapability.promise;
2208
+ };
2209
+
2210
+ var $ = _export;
2211
+ var getBuiltIn = getBuiltIn$7;
2212
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2213
+ var promiseResolve = promiseResolve$1;
2214
+
2215
+ getBuiltIn('Promise');
2216
+
2217
+ // `Promise.resolve` method
2218
+ // https://tc39.es/ecma262/#sec-promise.resolve
2219
+ $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2220
+ resolve: function resolve(x) {
2221
+ return promiseResolve(this, x);
2222
+ }
2223
+ });
2224
+
2225
+ /* *
2226
+ * Licensed under the Apache License, Version 2.0 (the "License");
2227
+ * you may not use this file except in compliance with the License.
2228
+ * You may obtain a copy of the License at
2229
+ *
2230
+ * http://www.apache.org/licenses/LICENSE-2.0
2231
+ *
2232
+ * Unless required by applicable law or agreed to in writing, software
2233
+ * distributed under the License is distributed on an "AS IS" BASIS,
2234
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2235
+ * See the License for the specific language governing permissions and
2236
+ * limitations under the License.
2237
+ *
2238
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2239
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
2240
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2241
+ * */
2242
+ const getHeaders = auth => ({
2243
+ 'Content-Type': 'application/json',
2244
+ Authorization: `Bearer ${auth.token}`,
2245
+ Accept: 'application/json'
2246
+ });
2247
+
2248
+ const config = getConfig();
2249
+ const airmetBaseUrl = config.GW_AIRMET_BASE_URL;
2250
+ const sigmetBaseUrl = config.GW_SIGMET_BASE_URL;
2251
+ // API
2252
+ const getAirmetList = auth => fetch(`${airmetBaseUrl}/airmetlist`, {
2253
+ headers: getHeaders(auth)
2254
+ }).then(r => r.json());
2255
+ const getSigmetList = auth => fetch(`${sigmetBaseUrl}/sigmetlist`, {
2256
+ headers: getHeaders(auth)
2257
+ }).then(r => r.json());
2258
+ const getlocalProductConfig = configUrl => fetch(`/assets/${configUrl}`).then(r => r.json());
2259
+ const getAirmetConfig = auth => {
2260
+ return fetch(`${airmetBaseUrl}/airmet-config`, {
2261
+ headers: getHeaders(auth)
2262
+ }).then(r => r.json());
2263
+ };
2264
+ const getSigmetConfig = auth => {
2265
+ return fetch(`${sigmetBaseUrl}/sigmet-config`, {
2266
+ headers: getHeaders(auth)
2267
+ }).then(r => r.json());
2268
+ };
2269
+
3
2270
  /* *
4
2271
  * Licensed under the Apache License, Version 2.0 (the "License");
5
2272
  * you may not use this file except in compliance with the License.
@@ -15,8 +2282,9 @@ export * from '@opengeoweb/authentication';
15
2282
  *
16
2283
  * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
17
2284
  * Copyright 2024 - Finnish Meteorological Institute (FMI)
2285
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
18
2286
  * */
19
2287
  const API_NAMESPACE = 'api';
20
2288
  // Initialize and create provider if needed
21
2289
 
22
- export { API_NAMESPACE };
2290
+ export { API_NAMESPACE, getAirmetConfig, getAirmetList, getSigmetConfig, getSigmetList, getlocalProductConfig };