@ninetailed/experience.js-plugin-preview 3.6.0 → 4.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var union = require('lodash/union');
6
- var experience_jsPluginAnalytics = require('@ninetailed/experience.js-plugin-analytics');
7
5
  var experience_js = require('@ninetailed/experience.js');
8
-
9
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
+ var experience_jsPluginAnalytics = require('@ninetailed/experience.js-plugin-analytics');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+ var react = require('react');
9
+ var uuid = require('uuid');
10
10
 
11
11
  function _interopNamespace(e) {
12
12
  if (e && e.__esModule) return e;
@@ -26,8 +26,6 @@ function _interopNamespace(e) {
26
26
  return Object.freeze(n);
27
27
  }
28
28
 
29
- var union__default = /*#__PURE__*/_interopDefaultLegacy(union);
30
-
31
29
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
32
30
 
33
31
  var check = function (it) {
@@ -35,7 +33,7 @@ var check = function (it) {
35
33
  };
36
34
 
37
35
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
38
- var global$i =
36
+ var global$j =
39
37
  // eslint-disable-next-line es/no-global-this -- safe
40
38
  check(typeof globalThis == 'object' && globalThis) ||
41
39
  check(typeof window == 'object' && window) ||
@@ -47,7 +45,7 @@ var global$i =
47
45
 
48
46
  var objectGetOwnPropertyDescriptor = {};
49
47
 
50
- var fails$b = function (exec) {
48
+ var fails$f = function (exec) {
51
49
  try {
52
50
  return !!exec();
53
51
  } catch (error) {
@@ -55,17 +53,17 @@ var fails$b = function (exec) {
55
53
  }
56
54
  };
57
55
 
58
- var fails$a = fails$b;
56
+ var fails$e = fails$f;
59
57
 
60
58
  // Detect IE8's incomplete defineProperty implementation
61
- var descriptors = !fails$a(function () {
59
+ var descriptors = !fails$e(function () {
62
60
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
63
61
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
64
62
  });
65
63
 
66
- var fails$9 = fails$b;
64
+ var fails$d = fails$f;
67
65
 
68
- var functionBindNative = !fails$9(function () {
66
+ var functionBindNative = !fails$d(function () {
69
67
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
70
68
  var test = (function () { /* empty */ }).bind();
71
69
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -74,10 +72,10 @@ var functionBindNative = !fails$9(function () {
74
72
 
75
73
  var NATIVE_BIND$3 = functionBindNative;
76
74
 
77
- var call$d = Function.prototype.call;
75
+ var call$e = Function.prototype.call;
78
76
 
79
- var functionCall = NATIVE_BIND$3 ? call$d.bind(call$d) : function () {
80
- return call$d.apply(call$d, arguments);
77
+ var functionCall = NATIVE_BIND$3 ? call$e.bind(call$e) : function () {
78
+ return call$e.apply(call$e, arguments);
81
79
  };
82
80
 
83
81
  var objectPropertyIsEnumerable = {};
@@ -96,7 +94,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
96
94
  return !!descriptor && descriptor.enumerable;
97
95
  } : $propertyIsEnumerable;
98
96
 
99
- var createPropertyDescriptor$2 = function (bitmap, value) {
97
+ var createPropertyDescriptor$3 = function (bitmap, value) {
100
98
  return {
101
99
  enumerable: !(bitmap & 1),
102
100
  configurable: !(bitmap & 2),
@@ -108,39 +106,39 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
108
106
  var NATIVE_BIND$2 = functionBindNative;
109
107
 
110
108
  var FunctionPrototype$2 = Function.prototype;
111
- var call$c = FunctionPrototype$2.call;
112
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$c, call$c);
109
+ var call$d = FunctionPrototype$2.call;
110
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$d, call$d);
113
111
 
114
112
  var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
115
113
  return function () {
116
- return call$c.apply(fn, arguments);
114
+ return call$d.apply(fn, arguments);
117
115
  };
118
116
  };
119
117
 
120
- var uncurryThis$d = functionUncurryThis;
118
+ var uncurryThis$e = functionUncurryThis;
121
119
 
122
- var toString$1 = uncurryThis$d({}.toString);
123
- var stringSlice = uncurryThis$d(''.slice);
120
+ var toString$3 = uncurryThis$e({}.toString);
121
+ var stringSlice = uncurryThis$e(''.slice);
124
122
 
125
123
  var classofRaw$2 = function (it) {
126
- return stringSlice(toString$1(it), 8, -1);
124
+ return stringSlice(toString$3(it), 8, -1);
127
125
  };
128
126
 
129
- var uncurryThis$c = functionUncurryThis;
130
- var fails$8 = fails$b;
131
- var classof$4 = classofRaw$2;
127
+ var uncurryThis$d = functionUncurryThis;
128
+ var fails$c = fails$f;
129
+ var classof$6 = classofRaw$2;
132
130
 
133
- var $Object$3 = Object;
134
- var split = uncurryThis$c(''.split);
131
+ var $Object$4 = Object;
132
+ var split = uncurryThis$d(''.split);
135
133
 
136
134
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
137
- var indexedObject = fails$8(function () {
135
+ var indexedObject = fails$c(function () {
138
136
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
139
137
  // eslint-disable-next-line no-prototype-builtins -- safe
140
- return !$Object$3('z').propertyIsEnumerable(0);
138
+ return !$Object$4('z').propertyIsEnumerable(0);
141
139
  }) ? function (it) {
142
- return classof$4(it) == 'String' ? split(it, '') : $Object$3(it);
143
- } : $Object$3;
140
+ return classof$6(it) == 'String' ? split(it, '') : $Object$4(it);
141
+ } : $Object$4;
144
142
 
145
143
  // we can't use just `it == null` since of `document.all` special case
146
144
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
@@ -150,21 +148,21 @@ var isNullOrUndefined$4 = function (it) {
150
148
 
151
149
  var isNullOrUndefined$3 = isNullOrUndefined$4;
152
150
 
153
- var $TypeError$c = TypeError;
151
+ var $TypeError$e = TypeError;
154
152
 
155
153
  // `RequireObjectCoercible` abstract operation
156
154
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
157
- var requireObjectCoercible$2 = function (it) {
158
- if (isNullOrUndefined$3(it)) throw $TypeError$c("Can't call method on " + it);
155
+ var requireObjectCoercible$3 = function (it) {
156
+ if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
159
157
  return it;
160
158
  };
161
159
 
162
160
  // toObject with fallback for non-array-like ES3 strings
163
- var IndexedObject$1 = indexedObject;
164
- var requireObjectCoercible$1 = requireObjectCoercible$2;
161
+ var IndexedObject$2 = indexedObject;
162
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
165
163
 
166
- var toIndexedObject$3 = function (it) {
167
- return IndexedObject$1(requireObjectCoercible$1(it));
164
+ var toIndexedObject$5 = function (it) {
165
+ return IndexedObject$2(requireObjectCoercible$2(it));
168
166
  };
169
167
 
170
168
  var documentAll$2 = typeof document == 'object' && document.all;
@@ -183,47 +181,47 @@ var documentAll$1 = $documentAll$1.all;
183
181
 
184
182
  // `IsCallable` abstract operation
185
183
  // https://tc39.es/ecma262/#sec-iscallable
186
- var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
184
+ var isCallable$k = $documentAll$1.IS_HTMLDDA ? function (argument) {
187
185
  return typeof argument == 'function' || argument === documentAll$1;
188
186
  } : function (argument) {
189
187
  return typeof argument == 'function';
190
188
  };
191
189
 
192
- var isCallable$g = isCallable$h;
190
+ var isCallable$j = isCallable$k;
193
191
  var $documentAll = documentAll_1;
194
192
 
195
193
  var documentAll = $documentAll.all;
196
194
 
197
- var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
198
- return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
195
+ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
196
+ return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll;
199
197
  } : function (it) {
200
- return typeof it == 'object' ? it !== null : isCallable$g(it);
198
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
201
199
  };
202
200
 
203
- var global$h = global$i;
204
- var isCallable$f = isCallable$h;
201
+ var global$i = global$j;
202
+ var isCallable$i = isCallable$k;
205
203
 
206
204
  var aFunction = function (argument) {
207
- return isCallable$f(argument) ? argument : undefined;
205
+ return isCallable$i(argument) ? argument : undefined;
208
206
  };
209
207
 
210
208
  var getBuiltIn$8 = function (namespace, method) {
211
- return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
209
+ return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
212
210
  };
213
211
 
214
- var uncurryThis$b = functionUncurryThis;
212
+ var uncurryThis$c = functionUncurryThis;
215
213
 
216
- var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
214
+ var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
217
215
 
218
216
  var getBuiltIn$7 = getBuiltIn$8;
219
217
 
220
218
  var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
221
219
 
222
- var global$g = global$i;
220
+ var global$h = global$j;
223
221
  var userAgent$3 = engineUserAgent;
224
222
 
225
- var process$3 = global$g.process;
226
- var Deno$1 = global$g.Deno;
223
+ var process$3 = global$h.process;
224
+ var Deno$1 = global$h.Deno;
227
225
  var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
228
226
  var v8 = versions && versions.v8;
229
227
  var match, version;
@@ -250,10 +248,10 @@ var engineV8Version = version;
250
248
  /* eslint-disable es/no-symbol -- required for testing */
251
249
 
252
250
  var V8_VERSION$1 = engineV8Version;
253
- var fails$7 = fails$b;
251
+ var fails$b = fails$f;
254
252
 
255
253
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
256
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
254
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
257
255
  var symbol = Symbol();
258
256
  // Chrome 38 Symbol has incorrect toString conversion
259
257
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -271,86 +269,86 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
271
269
  && typeof Symbol.iterator == 'symbol';
272
270
 
273
271
  var getBuiltIn$6 = getBuiltIn$8;
274
- var isCallable$e = isCallable$h;
272
+ var isCallable$h = isCallable$k;
275
273
  var isPrototypeOf$2 = objectIsPrototypeOf;
276
274
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
277
275
 
278
- var $Object$2 = Object;
276
+ var $Object$3 = Object;
279
277
 
280
278
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
281
279
  return typeof it == 'symbol';
282
280
  } : function (it) {
283
281
  var $Symbol = getBuiltIn$6('Symbol');
284
- return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
282
+ return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
285
283
  };
286
284
 
287
- var $String$2 = String;
285
+ var $String$3 = String;
288
286
 
289
287
  var tryToString$4 = function (argument) {
290
288
  try {
291
- return $String$2(argument);
289
+ return $String$3(argument);
292
290
  } catch (error) {
293
291
  return 'Object';
294
292
  }
295
293
  };
296
294
 
297
- var isCallable$d = isCallable$h;
295
+ var isCallable$g = isCallable$k;
298
296
  var tryToString$3 = tryToString$4;
299
297
 
300
- var $TypeError$b = TypeError;
298
+ var $TypeError$d = TypeError;
301
299
 
302
300
  // `Assert: IsCallable(argument) is true`
303
- var aCallable$7 = function (argument) {
304
- if (isCallable$d(argument)) return argument;
305
- throw $TypeError$b(tryToString$3(argument) + ' is not a function');
301
+ var aCallable$8 = function (argument) {
302
+ if (isCallable$g(argument)) return argument;
303
+ throw $TypeError$d(tryToString$3(argument) + ' is not a function');
306
304
  };
307
305
 
308
- var aCallable$6 = aCallable$7;
306
+ var aCallable$7 = aCallable$8;
309
307
  var isNullOrUndefined$2 = isNullOrUndefined$4;
310
308
 
311
309
  // `GetMethod` abstract operation
312
310
  // https://tc39.es/ecma262/#sec-getmethod
313
311
  var getMethod$3 = function (V, P) {
314
312
  var func = V[P];
315
- return isNullOrUndefined$2(func) ? undefined : aCallable$6(func);
313
+ return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
316
314
  };
317
315
 
318
- var call$b = functionCall;
319
- var isCallable$c = isCallable$h;
320
- var isObject$6 = isObject$7;
316
+ var call$c = functionCall;
317
+ var isCallable$f = isCallable$k;
318
+ var isObject$8 = isObject$9;
321
319
 
322
- var $TypeError$a = TypeError;
320
+ var $TypeError$c = TypeError;
323
321
 
324
322
  // `OrdinaryToPrimitive` abstract operation
325
323
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
326
324
  var ordinaryToPrimitive$1 = function (input, pref) {
327
325
  var fn, val;
328
- if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
329
- if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$b(fn, input))) return val;
330
- if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
331
- throw $TypeError$a("Can't convert object to primitive value");
326
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
327
+ if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$c(fn, input))) return val;
328
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
329
+ throw $TypeError$c("Can't convert object to primitive value");
332
330
  };
333
331
 
334
332
  var shared$3 = {exports: {}};
335
333
 
336
- var global$f = global$i;
334
+ var global$g = global$j;
337
335
 
338
336
  // eslint-disable-next-line es/no-object-defineproperty -- safe
339
- var defineProperty$3 = Object.defineProperty;
337
+ var defineProperty$5 = Object.defineProperty;
340
338
 
341
339
  var defineGlobalProperty$3 = function (key, value) {
342
340
  try {
343
- defineProperty$3(global$f, key, { value: value, configurable: true, writable: true });
341
+ defineProperty$5(global$g, key, { value: value, configurable: true, writable: true });
344
342
  } catch (error) {
345
- global$f[key] = value;
343
+ global$g[key] = value;
346
344
  } return value;
347
345
  };
348
346
 
349
- var global$e = global$i;
347
+ var global$f = global$j;
350
348
  var defineGlobalProperty$2 = defineGlobalProperty$3;
351
349
 
352
350
  var SHARED = '__core-js_shared__';
353
- var store$3 = global$e[SHARED] || defineGlobalProperty$2(SHARED, {});
351
+ var store$3 = global$f[SHARED] || defineGlobalProperty$2(SHARED, {});
354
352
 
355
353
  var sharedStore = store$3;
356
354
 
@@ -366,54 +364,54 @@ var store$2 = sharedStore;
366
364
  source: 'https://github.com/zloirock/core-js'
367
365
  });
368
366
 
369
- var requireObjectCoercible = requireObjectCoercible$2;
367
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
370
368
 
371
- var $Object$1 = Object;
369
+ var $Object$2 = Object;
372
370
 
373
371
  // `ToObject` abstract operation
374
372
  // https://tc39.es/ecma262/#sec-toobject
375
- var toObject$2 = function (argument) {
376
- return $Object$1(requireObjectCoercible(argument));
373
+ var toObject$4 = function (argument) {
374
+ return $Object$2(requireObjectCoercible$1(argument));
377
375
  };
378
376
 
379
- var uncurryThis$a = functionUncurryThis;
380
- var toObject$1 = toObject$2;
377
+ var uncurryThis$b = functionUncurryThis;
378
+ var toObject$3 = toObject$4;
381
379
 
382
- var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
380
+ var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
383
381
 
384
382
  // `HasOwnProperty` abstract operation
385
383
  // https://tc39.es/ecma262/#sec-hasownproperty
386
384
  // eslint-disable-next-line es/no-object-hasown -- safe
387
385
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
388
- return hasOwnProperty(toObject$1(it), key);
386
+ return hasOwnProperty(toObject$3(it), key);
389
387
  };
390
388
 
391
- var uncurryThis$9 = functionUncurryThis;
389
+ var uncurryThis$a = functionUncurryThis;
392
390
 
393
391
  var id = 0;
394
392
  var postfix = Math.random();
395
- var toString = uncurryThis$9(1.0.toString);
393
+ var toString$2 = uncurryThis$a(1.0.toString);
396
394
 
397
395
  var uid$2 = function (key) {
398
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
396
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
399
397
  };
400
398
 
401
- var global$d = global$i;
399
+ var global$e = global$j;
402
400
  var shared$2 = shared$3.exports;
403
- var hasOwn$8 = hasOwnProperty_1;
401
+ var hasOwn$9 = hasOwnProperty_1;
404
402
  var uid$1 = uid$2;
405
403
  var NATIVE_SYMBOL = symbolConstructorDetection;
406
404
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
407
405
 
408
406
  var WellKnownSymbolsStore = shared$2('wks');
409
- var Symbol$1 = global$d.Symbol;
407
+ var Symbol$1 = global$e.Symbol;
410
408
  var symbolFor = Symbol$1 && Symbol$1['for'];
411
409
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
412
410
 
413
- var wellKnownSymbol$a = function (name) {
414
- if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
411
+ var wellKnownSymbol$g = function (name) {
412
+ if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
415
413
  var description = 'Symbol.' + name;
416
- if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
414
+ if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
417
415
  WellKnownSymbolsStore[name] = Symbol$1[name];
418
416
  } else if (USE_SYMBOL_AS_UID && symbolFor) {
419
417
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -423,27 +421,27 @@ var wellKnownSymbol$a = function (name) {
423
421
  } return WellKnownSymbolsStore[name];
424
422
  };
425
423
 
426
- var call$a = functionCall;
427
- var isObject$5 = isObject$7;
424
+ var call$b = functionCall;
425
+ var isObject$7 = isObject$9;
428
426
  var isSymbol$1 = isSymbol$2;
429
427
  var getMethod$2 = getMethod$3;
430
428
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
431
- var wellKnownSymbol$9 = wellKnownSymbol$a;
429
+ var wellKnownSymbol$f = wellKnownSymbol$g;
432
430
 
433
- var $TypeError$9 = TypeError;
434
- var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
431
+ var $TypeError$b = TypeError;
432
+ var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
435
433
 
436
434
  // `ToPrimitive` abstract operation
437
435
  // https://tc39.es/ecma262/#sec-toprimitive
438
436
  var toPrimitive$1 = function (input, pref) {
439
- if (!isObject$5(input) || isSymbol$1(input)) return input;
437
+ if (!isObject$7(input) || isSymbol$1(input)) return input;
440
438
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
441
439
  var result;
442
440
  if (exoticToPrim) {
443
441
  if (pref === undefined) pref = 'default';
444
- result = call$a(exoticToPrim, input, pref);
445
- if (!isObject$5(result) || isSymbol$1(result)) return result;
446
- throw $TypeError$9("Can't convert object to primitive value");
442
+ result = call$b(exoticToPrim, input, pref);
443
+ if (!isObject$7(result) || isSymbol$1(result)) return result;
444
+ throw $TypeError$b("Can't convert object to primitive value");
447
445
  }
448
446
  if (pref === undefined) pref = 'number';
449
447
  return ordinaryToPrimitive(input, pref);
@@ -459,36 +457,36 @@ var toPropertyKey$2 = function (argument) {
459
457
  return isSymbol(key) ? key : key + '';
460
458
  };
461
459
 
462
- var global$c = global$i;
463
- var isObject$4 = isObject$7;
460
+ var global$d = global$j;
461
+ var isObject$6 = isObject$9;
464
462
 
465
- var document$3 = global$c.document;
463
+ var document$3 = global$d.document;
466
464
  // typeof document.createElement is 'object' in old IE
467
- var EXISTS$1 = isObject$4(document$3) && isObject$4(document$3.createElement);
465
+ var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
468
466
 
469
- var documentCreateElement = function (it) {
467
+ var documentCreateElement$2 = function (it) {
470
468
  return EXISTS$1 ? document$3.createElement(it) : {};
471
469
  };
472
470
 
473
- var DESCRIPTORS$8 = descriptors;
474
- var fails$6 = fails$b;
475
- var createElement$1 = documentCreateElement;
471
+ var DESCRIPTORS$a = descriptors;
472
+ var fails$a = fails$f;
473
+ var createElement$1 = documentCreateElement$2;
476
474
 
477
475
  // Thanks to IE8 for its funny defineProperty
478
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$6(function () {
476
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$a(function () {
479
477
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
480
478
  return Object.defineProperty(createElement$1('div'), 'a', {
481
479
  get: function () { return 7; }
482
480
  }).a != 7;
483
481
  });
484
482
 
485
- var DESCRIPTORS$7 = descriptors;
486
- var call$9 = functionCall;
483
+ var DESCRIPTORS$9 = descriptors;
484
+ var call$a = functionCall;
487
485
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
488
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
489
- var toIndexedObject$2 = toIndexedObject$3;
486
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
487
+ var toIndexedObject$4 = toIndexedObject$5;
490
488
  var toPropertyKey$1 = toPropertyKey$2;
491
- var hasOwn$7 = hasOwnProperty_1;
489
+ var hasOwn$8 = hasOwnProperty_1;
492
490
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
493
491
 
494
492
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -496,23 +494,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
496
494
 
497
495
  // `Object.getOwnPropertyDescriptor` method
498
496
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
499
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
500
- O = toIndexedObject$2(O);
497
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
498
+ O = toIndexedObject$4(O);
501
499
  P = toPropertyKey$1(P);
502
500
  if (IE8_DOM_DEFINE$1) try {
503
501
  return $getOwnPropertyDescriptor$1(O, P);
504
502
  } catch (error) { /* empty */ }
505
- if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
503
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
506
504
  };
507
505
 
508
506
  var objectDefineProperty = {};
509
507
 
510
- var DESCRIPTORS$6 = descriptors;
511
- var fails$5 = fails$b;
508
+ var DESCRIPTORS$8 = descriptors;
509
+ var fails$9 = fails$f;
512
510
 
513
511
  // V8 ~ Chrome 36-
514
512
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
515
- var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$5(function () {
513
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$9(function () {
516
514
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
517
515
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
518
516
  value: 42,
@@ -520,24 +518,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$5(function () {
520
518
  }).prototype != 42;
521
519
  });
522
520
 
523
- var isObject$3 = isObject$7;
521
+ var isObject$5 = isObject$9;
524
522
 
525
- var $String$1 = String;
526
- var $TypeError$8 = TypeError;
523
+ var $String$2 = String;
524
+ var $TypeError$a = TypeError;
527
525
 
528
526
  // `Assert: Type(argument) is Object`
529
- var anObject$8 = function (argument) {
530
- if (isObject$3(argument)) return argument;
531
- throw $TypeError$8($String$1(argument) + ' is not an object');
527
+ var anObject$a = function (argument) {
528
+ if (isObject$5(argument)) return argument;
529
+ throw $TypeError$a($String$2(argument) + ' is not an object');
532
530
  };
533
531
 
534
- var DESCRIPTORS$5 = descriptors;
532
+ var DESCRIPTORS$7 = descriptors;
535
533
  var IE8_DOM_DEFINE = ie8DomDefine;
536
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
537
- var anObject$7 = anObject$8;
534
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
535
+ var anObject$9 = anObject$a;
538
536
  var toPropertyKey = toPropertyKey$2;
539
537
 
540
- var $TypeError$7 = TypeError;
538
+ var $TypeError$9 = TypeError;
541
539
  // eslint-disable-next-line es/no-object-defineproperty -- safe
542
540
  var $defineProperty = Object.defineProperty;
543
541
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -548,10 +546,10 @@ var WRITABLE = 'writable';
548
546
 
549
547
  // `Object.defineProperty` method
550
548
  // https://tc39.es/ecma262/#sec-object.defineproperty
551
- objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
552
- anObject$7(O);
549
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
550
+ anObject$9(O);
553
551
  P = toPropertyKey(P);
554
- anObject$7(Attributes);
552
+ anObject$9(Attributes);
555
553
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
556
554
  var current = $getOwnPropertyDescriptor(O, P);
557
555
  if (current && current[WRITABLE]) {
@@ -564,23 +562,23 @@ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
564
562
  }
565
563
  } return $defineProperty(O, P, Attributes);
566
564
  } : $defineProperty : function defineProperty(O, P, Attributes) {
567
- anObject$7(O);
565
+ anObject$9(O);
568
566
  P = toPropertyKey(P);
569
- anObject$7(Attributes);
567
+ anObject$9(Attributes);
570
568
  if (IE8_DOM_DEFINE) try {
571
569
  return $defineProperty(O, P, Attributes);
572
570
  } catch (error) { /* empty */ }
573
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$7('Accessors not supported');
571
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported');
574
572
  if ('value' in Attributes) O[P] = Attributes.value;
575
573
  return O;
576
574
  };
577
575
 
578
- var DESCRIPTORS$4 = descriptors;
579
- var definePropertyModule$3 = objectDefineProperty;
580
- var createPropertyDescriptor = createPropertyDescriptor$2;
576
+ var DESCRIPTORS$6 = descriptors;
577
+ var definePropertyModule$4 = objectDefineProperty;
578
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
581
579
 
582
- var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
583
- return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
580
+ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
581
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
584
582
  } : function (object, key, value) {
585
583
  object[key] = value;
586
584
  return object;
@@ -588,17 +586,17 @@ var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value
588
586
 
589
587
  var makeBuiltIn$2 = {exports: {}};
590
588
 
591
- var DESCRIPTORS$3 = descriptors;
592
- var hasOwn$6 = hasOwnProperty_1;
589
+ var DESCRIPTORS$5 = descriptors;
590
+ var hasOwn$7 = hasOwnProperty_1;
593
591
 
594
592
  var FunctionPrototype$1 = Function.prototype;
595
593
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
596
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
594
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
597
595
 
598
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
596
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
599
597
  // additional protection from minified / mangled / dropped function names
600
598
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
601
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
599
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
602
600
 
603
601
  var functionName = {
604
602
  EXISTS: EXISTS,
@@ -606,14 +604,14 @@ var functionName = {
606
604
  CONFIGURABLE: CONFIGURABLE
607
605
  };
608
606
 
609
- var uncurryThis$8 = functionUncurryThis;
610
- var isCallable$b = isCallable$h;
607
+ var uncurryThis$9 = functionUncurryThis;
608
+ var isCallable$e = isCallable$k;
611
609
  var store$1 = sharedStore;
612
610
 
613
- var functionToString = uncurryThis$8(Function.toString);
611
+ var functionToString = uncurryThis$9(Function.toString);
614
612
 
615
613
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
616
- if (!isCallable$b(store$1.inspectSource)) {
614
+ if (!isCallable$e(store$1.inspectSource)) {
617
615
  store$1.inspectSource = function (it) {
618
616
  return functionToString(it);
619
617
  };
@@ -621,36 +619,36 @@ if (!isCallable$b(store$1.inspectSource)) {
621
619
 
622
620
  var inspectSource$3 = store$1.inspectSource;
623
621
 
624
- var global$b = global$i;
625
- var isCallable$a = isCallable$h;
622
+ var global$c = global$j;
623
+ var isCallable$d = isCallable$k;
626
624
 
627
- var WeakMap$1 = global$b.WeakMap;
625
+ var WeakMap$1 = global$c.WeakMap;
628
626
 
629
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
627
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
630
628
 
631
629
  var shared$1 = shared$3.exports;
632
630
  var uid = uid$2;
633
631
 
634
632
  var keys = shared$1('keys');
635
633
 
636
- var sharedKey$1 = function (key) {
634
+ var sharedKey$3 = function (key) {
637
635
  return keys[key] || (keys[key] = uid(key));
638
636
  };
639
637
 
640
- var hiddenKeys$3 = {};
638
+ var hiddenKeys$4 = {};
641
639
 
642
640
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
643
- var global$a = global$i;
644
- var isObject$2 = isObject$7;
645
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
646
- var hasOwn$5 = hasOwnProperty_1;
641
+ var global$b = global$j;
642
+ var isObject$4 = isObject$9;
643
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
644
+ var hasOwn$6 = hasOwnProperty_1;
647
645
  var shared = sharedStore;
648
- var sharedKey = sharedKey$1;
649
- var hiddenKeys$2 = hiddenKeys$3;
646
+ var sharedKey$2 = sharedKey$3;
647
+ var hiddenKeys$3 = hiddenKeys$4;
650
648
 
651
649
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
652
- var TypeError$2 = global$a.TypeError;
653
- var WeakMap = global$a.WeakMap;
650
+ var TypeError$2 = global$b.TypeError;
651
+ var WeakMap = global$b.WeakMap;
654
652
  var set$1, get, has;
655
653
 
656
654
  var enforce = function (it) {
@@ -660,7 +658,7 @@ var enforce = function (it) {
660
658
  var getterFor = function (TYPE) {
661
659
  return function (it) {
662
660
  var state;
663
- if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
661
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
664
662
  throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
665
663
  } return state;
666
664
  };
@@ -686,19 +684,19 @@ if (NATIVE_WEAK_MAP || shared.state) {
686
684
  return store.has(it);
687
685
  };
688
686
  } else {
689
- var STATE = sharedKey('state');
690
- hiddenKeys$2[STATE] = true;
687
+ var STATE = sharedKey$2('state');
688
+ hiddenKeys$3[STATE] = true;
691
689
  set$1 = function (it, metadata) {
692
- if (hasOwn$5(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
690
+ if (hasOwn$6(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
693
691
  metadata.facade = it;
694
- createNonEnumerableProperty$1(it, STATE, metadata);
692
+ createNonEnumerableProperty$3(it, STATE, metadata);
695
693
  return metadata;
696
694
  };
697
695
  get = function (it) {
698
- return hasOwn$5(it, STATE) ? it[STATE] : {};
696
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
699
697
  };
700
698
  has = function (it) {
701
- return hasOwn$5(it, STATE);
699
+ return hasOwn$6(it, STATE);
702
700
  };
703
701
  }
704
702
 
@@ -710,21 +708,21 @@ var internalState = {
710
708
  getterFor: getterFor
711
709
  };
712
710
 
713
- var fails$4 = fails$b;
714
- var isCallable$9 = isCallable$h;
715
- var hasOwn$4 = hasOwnProperty_1;
716
- var DESCRIPTORS$2 = descriptors;
717
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
711
+ var fails$8 = fails$f;
712
+ var isCallable$c = isCallable$k;
713
+ var hasOwn$5 = hasOwnProperty_1;
714
+ var DESCRIPTORS$4 = descriptors;
715
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
718
716
  var inspectSource$2 = inspectSource$3;
719
- var InternalStateModule$1 = internalState;
717
+ var InternalStateModule$2 = internalState;
720
718
 
721
- var enforceInternalState = InternalStateModule$1.enforce;
722
- var getInternalState = InternalStateModule$1.get;
719
+ var enforceInternalState = InternalStateModule$2.enforce;
720
+ var getInternalState$1 = InternalStateModule$2.get;
723
721
  // eslint-disable-next-line es/no-object-defineproperty -- safe
724
- var defineProperty$2 = Object.defineProperty;
722
+ var defineProperty$4 = Object.defineProperty;
725
723
 
726
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
727
- return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
724
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$8(function () {
725
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
728
726
  });
729
727
 
730
728
  var TEMPLATE = String(String).split('String');
@@ -735,21 +733,21 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
735
733
  }
736
734
  if (options && options.getter) name = 'get ' + name;
737
735
  if (options && options.setter) name = 'set ' + name;
738
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
739
- if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
736
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
737
+ if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
740
738
  else value.name = name;
741
739
  }
742
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
743
- defineProperty$2(value, 'length', { value: options.arity });
740
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
741
+ defineProperty$4(value, 'length', { value: options.arity });
744
742
  }
745
743
  try {
746
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
747
- if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
744
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
745
+ if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
748
746
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
749
747
  } else if (value.prototype) value.prototype = undefined;
750
748
  } catch (error) { /* empty */ }
751
749
  var state = enforceInternalState(value);
752
- if (!hasOwn$4(state, 'source')) {
750
+ if (!hasOwn$5(state, 'source')) {
753
751
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
754
752
  } return value;
755
753
  };
@@ -757,19 +755,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
757
755
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
758
756
  // eslint-disable-next-line no-extend-native -- required
759
757
  Function.prototype.toString = makeBuiltIn$1(function toString() {
760
- return isCallable$9(this) && getInternalState(this).source || inspectSource$2(this);
758
+ return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
761
759
  }, 'toString');
762
760
 
763
- var isCallable$8 = isCallable$h;
764
- var definePropertyModule$2 = objectDefineProperty;
761
+ var isCallable$b = isCallable$k;
762
+ var definePropertyModule$3 = objectDefineProperty;
765
763
  var makeBuiltIn = makeBuiltIn$2.exports;
766
764
  var defineGlobalProperty$1 = defineGlobalProperty$3;
767
765
 
768
- var defineBuiltIn$3 = function (O, key, value, options) {
766
+ var defineBuiltIn$5 = function (O, key, value, options) {
769
767
  if (!options) options = {};
770
768
  var simple = options.enumerable;
771
769
  var name = options.name !== undefined ? options.name : key;
772
- if (isCallable$8(value)) makeBuiltIn(value, name, options);
770
+ if (isCallable$b(value)) makeBuiltIn(value, name, options);
773
771
  if (options.global) {
774
772
  if (simple) O[key] = value;
775
773
  else defineGlobalProperty$1(key, value);
@@ -779,7 +777,7 @@ var defineBuiltIn$3 = function (O, key, value, options) {
779
777
  else if (O[key]) simple = true;
780
778
  } catch (error) { /* empty */ }
781
779
  if (simple) O[key] = value;
782
- else definePropertyModule$2.f(O, key, {
780
+ else definePropertyModule$3.f(O, key, {
783
781
  value: value,
784
782
  enumerable: false,
785
783
  configurable: !options.nonConfigurable,
@@ -838,19 +836,19 @@ var toLength = toLength$1;
838
836
 
839
837
  // `LengthOfArrayLike` abstract operation
840
838
  // https://tc39.es/ecma262/#sec-lengthofarraylike
841
- var lengthOfArrayLike$2 = function (obj) {
839
+ var lengthOfArrayLike$3 = function (obj) {
842
840
  return toLength(obj.length);
843
841
  };
844
842
 
845
- var toIndexedObject$1 = toIndexedObject$3;
843
+ var toIndexedObject$3 = toIndexedObject$5;
846
844
  var toAbsoluteIndex = toAbsoluteIndex$1;
847
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
845
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
848
846
 
849
847
  // `Array.prototype.{ indexOf, includes }` methods implementation
850
- var createMethod = function (IS_INCLUDES) {
848
+ var createMethod$1 = function (IS_INCLUDES) {
851
849
  return function ($this, el, fromIndex) {
852
- var O = toIndexedObject$1($this);
853
- var length = lengthOfArrayLike$1(O);
850
+ var O = toIndexedObject$3($this);
851
+ var length = lengthOfArrayLike$2(O);
854
852
  var index = toAbsoluteIndex(fromIndex, length);
855
853
  var value;
856
854
  // Array#includes uses SameValueZero equality algorithm
@@ -869,35 +867,35 @@ var createMethod = function (IS_INCLUDES) {
869
867
  var arrayIncludes = {
870
868
  // `Array.prototype.includes` method
871
869
  // https://tc39.es/ecma262/#sec-array.prototype.includes
872
- includes: createMethod(true),
870
+ includes: createMethod$1(true),
873
871
  // `Array.prototype.indexOf` method
874
872
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
875
- indexOf: createMethod(false)
873
+ indexOf: createMethod$1(false)
876
874
  };
877
875
 
878
- var uncurryThis$7 = functionUncurryThis;
879
- var hasOwn$3 = hasOwnProperty_1;
880
- var toIndexedObject = toIndexedObject$3;
876
+ var uncurryThis$8 = functionUncurryThis;
877
+ var hasOwn$4 = hasOwnProperty_1;
878
+ var toIndexedObject$2 = toIndexedObject$5;
881
879
  var indexOf = arrayIncludes.indexOf;
882
- var hiddenKeys$1 = hiddenKeys$3;
880
+ var hiddenKeys$2 = hiddenKeys$4;
883
881
 
884
- var push = uncurryThis$7([].push);
882
+ var push = uncurryThis$8([].push);
885
883
 
886
884
  var objectKeysInternal = function (object, names) {
887
- var O = toIndexedObject(object);
885
+ var O = toIndexedObject$2(object);
888
886
  var i = 0;
889
887
  var result = [];
890
888
  var key;
891
- for (key in O) !hasOwn$3(hiddenKeys$1, key) && hasOwn$3(O, key) && push(result, key);
889
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
892
890
  // Don't enum bug & hidden keys
893
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
891
+ while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
894
892
  ~indexOf(result, key) || push(result, key);
895
893
  }
896
894
  return result;
897
895
  };
898
896
 
899
897
  // IE8- don't enum bug keys
900
- var enumBugKeys$2 = [
898
+ var enumBugKeys$3 = [
901
899
  'constructor',
902
900
  'hasOwnProperty',
903
901
  'isPrototypeOf',
@@ -908,15 +906,15 @@ var enumBugKeys$2 = [
908
906
  ];
909
907
 
910
908
  var internalObjectKeys$1 = objectKeysInternal;
911
- var enumBugKeys$1 = enumBugKeys$2;
909
+ var enumBugKeys$2 = enumBugKeys$3;
912
910
 
913
- var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
911
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
914
912
 
915
913
  // `Object.getOwnPropertyNames` method
916
914
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
917
915
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
918
916
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
919
- return internalObjectKeys$1(O, hiddenKeys);
917
+ return internalObjectKeys$1(O, hiddenKeys$1);
920
918
  };
921
919
 
922
920
  var objectGetOwnPropertySymbols = {};
@@ -925,39 +923,39 @@ var objectGetOwnPropertySymbols = {};
925
923
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
926
924
 
927
925
  var getBuiltIn$5 = getBuiltIn$8;
928
- var uncurryThis$6 = functionUncurryThis;
926
+ var uncurryThis$7 = functionUncurryThis;
929
927
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
930
928
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
931
- var anObject$6 = anObject$8;
929
+ var anObject$8 = anObject$a;
932
930
 
933
- var concat$1 = uncurryThis$6([].concat);
931
+ var concat$1 = uncurryThis$7([].concat);
934
932
 
935
933
  // all object keys, includes non-enumerable and symbols
936
934
  var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
937
- var keys = getOwnPropertyNamesModule.f(anObject$6(it));
935
+ var keys = getOwnPropertyNamesModule.f(anObject$8(it));
938
936
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
939
937
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
940
938
  };
941
939
 
942
- var hasOwn$2 = hasOwnProperty_1;
940
+ var hasOwn$3 = hasOwnProperty_1;
943
941
  var ownKeys = ownKeys$1;
944
942
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
945
- var definePropertyModule$1 = objectDefineProperty;
943
+ var definePropertyModule$2 = objectDefineProperty;
946
944
 
947
945
  var copyConstructorProperties$1 = function (target, source, exceptions) {
948
946
  var keys = ownKeys(source);
949
- var defineProperty = definePropertyModule$1.f;
947
+ var defineProperty = definePropertyModule$2.f;
950
948
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
951
949
  for (var i = 0; i < keys.length; i++) {
952
950
  var key = keys[i];
953
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
951
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
954
952
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
955
953
  }
956
954
  }
957
955
  };
958
956
 
959
- var fails$3 = fails$b;
960
- var isCallable$7 = isCallable$h;
957
+ var fails$7 = fails$f;
958
+ var isCallable$a = isCallable$k;
961
959
 
962
960
  var replacement = /#|\.prototype\./;
963
961
 
@@ -965,7 +963,7 @@ var isForced$2 = function (feature, detection) {
965
963
  var value = data[normalize(feature)];
966
964
  return value == POLYFILL ? true
967
965
  : value == NATIVE ? false
968
- : isCallable$7(detection) ? fails$3(detection)
966
+ : isCallable$a(detection) ? fails$7(detection)
969
967
  : !!detection;
970
968
  };
971
969
 
@@ -979,10 +977,10 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
979
977
 
980
978
  var isForced_1 = isForced$2;
981
979
 
982
- var global$9 = global$i;
980
+ var global$a = global$j;
983
981
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
984
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
985
- var defineBuiltIn$2 = defineBuiltIn$3;
982
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
983
+ var defineBuiltIn$4 = defineBuiltIn$5;
986
984
  var defineGlobalProperty = defineGlobalProperty$3;
987
985
  var copyConstructorProperties = copyConstructorProperties$1;
988
986
  var isForced$1 = isForced_1;
@@ -1008,11 +1006,11 @@ var _export = function (options, source) {
1008
1006
  var STATIC = options.stat;
1009
1007
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1010
1008
  if (GLOBAL) {
1011
- target = global$9;
1009
+ target = global$a;
1012
1010
  } else if (STATIC) {
1013
- target = global$9[TARGET] || defineGlobalProperty(TARGET, {});
1011
+ target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
1014
1012
  } else {
1015
- target = (global$9[TARGET] || {}).prototype;
1013
+ target = (global$a[TARGET] || {}).prototype;
1016
1014
  }
1017
1015
  if (target) for (key in source) {
1018
1016
  sourceProperty = source[key];
@@ -1028,31 +1026,31 @@ var _export = function (options, source) {
1028
1026
  }
1029
1027
  // add a flag to not completely full polyfills
1030
1028
  if (options.sham || (targetProperty && targetProperty.sham)) {
1031
- createNonEnumerableProperty(sourceProperty, 'sham', true);
1029
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1032
1030
  }
1033
- defineBuiltIn$2(target, key, sourceProperty, options);
1031
+ defineBuiltIn$4(target, key, sourceProperty, options);
1034
1032
  }
1035
1033
  };
1036
1034
 
1037
- var classof$3 = classofRaw$2;
1038
- var global$8 = global$i;
1035
+ var classof$5 = classofRaw$2;
1036
+ var global$9 = global$j;
1039
1037
 
1040
- var engineIsNode = classof$3(global$8.process) == 'process';
1038
+ var engineIsNode = classof$5(global$9.process) == 'process';
1041
1039
 
1042
- var isCallable$6 = isCallable$h;
1040
+ var isCallable$9 = isCallable$k;
1043
1041
 
1044
- var $String = String;
1045
- var $TypeError$6 = TypeError;
1042
+ var $String$1 = String;
1043
+ var $TypeError$8 = TypeError;
1046
1044
 
1047
1045
  var aPossiblePrototype$1 = function (argument) {
1048
- if (typeof argument == 'object' || isCallable$6(argument)) return argument;
1049
- throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1046
+ if (typeof argument == 'object' || isCallable$9(argument)) return argument;
1047
+ throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype');
1050
1048
  };
1051
1049
 
1052
1050
  /* eslint-disable no-proto -- safe */
1053
1051
 
1054
- var uncurryThis$5 = functionUncurryThis;
1055
- var anObject$5 = anObject$8;
1052
+ var uncurryThis$6 = functionUncurryThis;
1053
+ var anObject$7 = anObject$a;
1056
1054
  var aPossiblePrototype = aPossiblePrototype$1;
1057
1055
 
1058
1056
  // `Object.setPrototypeOf` method
@@ -1065,12 +1063,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1065
1063
  var setter;
1066
1064
  try {
1067
1065
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1068
- setter = uncurryThis$5(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1066
+ setter = uncurryThis$6(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1069
1067
  setter(test, []);
1070
1068
  CORRECT_SETTER = test instanceof Array;
1071
1069
  } catch (error) { /* empty */ }
1072
1070
  return function setPrototypeOf(O, proto) {
1073
- anObject$5(O);
1071
+ anObject$7(O);
1074
1072
  aPossiblePrototype(proto);
1075
1073
  if (CORRECT_SETTER) setter(O, proto);
1076
1074
  else O.__proto__ = proto;
@@ -1078,31 +1076,31 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1078
1076
  };
1079
1077
  }() : undefined);
1080
1078
 
1081
- var defineProperty$1 = objectDefineProperty.f;
1082
- var hasOwn$1 = hasOwnProperty_1;
1083
- var wellKnownSymbol$8 = wellKnownSymbol$a;
1079
+ var defineProperty$3 = objectDefineProperty.f;
1080
+ var hasOwn$2 = hasOwnProperty_1;
1081
+ var wellKnownSymbol$e = wellKnownSymbol$g;
1084
1082
 
1085
- var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1083
+ var TO_STRING_TAG$3 = wellKnownSymbol$e('toStringTag');
1086
1084
 
1087
- var setToStringTag$1 = function (target, TAG, STATIC) {
1085
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1088
1086
  if (target && !STATIC) target = target.prototype;
1089
- if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1090
- defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1087
+ if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
1088
+ defineProperty$3(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1091
1089
  }
1092
1090
  };
1093
1091
 
1094
1092
  var getBuiltIn$4 = getBuiltIn$8;
1095
- var definePropertyModule = objectDefineProperty;
1096
- var wellKnownSymbol$7 = wellKnownSymbol$a;
1097
- var DESCRIPTORS$1 = descriptors;
1093
+ var definePropertyModule$1 = objectDefineProperty;
1094
+ var wellKnownSymbol$d = wellKnownSymbol$g;
1095
+ var DESCRIPTORS$3 = descriptors;
1098
1096
 
1099
- var SPECIES$2 = wellKnownSymbol$7('species');
1097
+ var SPECIES$2 = wellKnownSymbol$d('species');
1100
1098
 
1101
1099
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1102
1100
  var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1103
- var defineProperty = definePropertyModule.f;
1101
+ var defineProperty = definePropertyModule$1.f;
1104
1102
 
1105
- if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
1103
+ if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$2]) {
1106
1104
  defineProperty(Constructor, SPECIES$2, {
1107
1105
  configurable: true,
1108
1106
  get: function () { return this; }
@@ -1112,29 +1110,29 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1112
1110
 
1113
1111
  var isPrototypeOf$1 = objectIsPrototypeOf;
1114
1112
 
1115
- var $TypeError$5 = TypeError;
1113
+ var $TypeError$7 = TypeError;
1116
1114
 
1117
1115
  var anInstance$1 = function (it, Prototype) {
1118
1116
  if (isPrototypeOf$1(Prototype, it)) return it;
1119
- throw $TypeError$5('Incorrect invocation');
1117
+ throw $TypeError$7('Incorrect invocation');
1120
1118
  };
1121
1119
 
1122
- var wellKnownSymbol$6 = wellKnownSymbol$a;
1120
+ var wellKnownSymbol$c = wellKnownSymbol$g;
1123
1121
 
1124
- var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1122
+ var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1125
1123
  var test = {};
1126
1124
 
1127
- test[TO_STRING_TAG$1] = 'z';
1125
+ test[TO_STRING_TAG$2] = 'z';
1128
1126
 
1129
1127
  var toStringTagSupport = String(test) === '[object z]';
1130
1128
 
1131
1129
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1132
- var isCallable$5 = isCallable$h;
1130
+ var isCallable$8 = isCallable$k;
1133
1131
  var classofRaw$1 = classofRaw$2;
1134
- var wellKnownSymbol$5 = wellKnownSymbol$a;
1132
+ var wellKnownSymbol$b = wellKnownSymbol$g;
1135
1133
 
1136
- var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1137
- var $Object = Object;
1134
+ var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag');
1135
+ var $Object$1 = Object;
1138
1136
 
1139
1137
  // ES3 wrong here
1140
1138
  var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
@@ -1147,21 +1145,21 @@ var tryGet = function (it, key) {
1147
1145
  };
1148
1146
 
1149
1147
  // getting tag from ES6+ `Object.prototype.toString`
1150
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1148
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1151
1149
  var O, tag, result;
1152
1150
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1153
1151
  // @@toStringTag case
1154
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1152
+ : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
1155
1153
  // builtinTag case
1156
1154
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
1157
1155
  // ES3 arguments fallback
1158
- : (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1156
+ : (result = classofRaw$1(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
1159
1157
  };
1160
1158
 
1161
- var uncurryThis$4 = functionUncurryThis;
1162
- var fails$2 = fails$b;
1163
- var isCallable$4 = isCallable$h;
1164
- var classof$1 = classof$2;
1159
+ var uncurryThis$5 = functionUncurryThis;
1160
+ var fails$6 = fails$f;
1161
+ var isCallable$7 = isCallable$k;
1162
+ var classof$3 = classof$4;
1165
1163
  var getBuiltIn$3 = getBuiltIn$8;
1166
1164
  var inspectSource$1 = inspectSource$3;
1167
1165
 
@@ -1169,11 +1167,11 @@ var noop = function () { /* empty */ };
1169
1167
  var empty = [];
1170
1168
  var construct = getBuiltIn$3('Reflect', 'construct');
1171
1169
  var constructorRegExp = /^\s*(?:class|function)\b/;
1172
- var exec = uncurryThis$4(constructorRegExp.exec);
1170
+ var exec = uncurryThis$5(constructorRegExp.exec);
1173
1171
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1174
1172
 
1175
1173
  var isConstructorModern = function isConstructor(argument) {
1176
- if (!isCallable$4(argument)) return false;
1174
+ if (!isCallable$7(argument)) return false;
1177
1175
  try {
1178
1176
  construct(noop, empty, argument);
1179
1177
  return true;
@@ -1183,8 +1181,8 @@ var isConstructorModern = function isConstructor(argument) {
1183
1181
  };
1184
1182
 
1185
1183
  var isConstructorLegacy = function isConstructor(argument) {
1186
- if (!isCallable$4(argument)) return false;
1187
- switch (classof$1(argument)) {
1184
+ if (!isCallable$7(argument)) return false;
1185
+ switch (classof$3(argument)) {
1188
1186
  case 'AsyncFunction':
1189
1187
  case 'GeneratorFunction':
1190
1188
  case 'AsyncGeneratorFunction': return false;
@@ -1203,7 +1201,7 @@ isConstructorLegacy.sham = true;
1203
1201
 
1204
1202
  // `IsConstructor` abstract operation
1205
1203
  // https://tc39.es/ecma262/#sec-isconstructor
1206
- var isConstructor$1 = !construct || fails$2(function () {
1204
+ var isConstructor$1 = !construct || fails$6(function () {
1207
1205
  var called;
1208
1206
  return isConstructorModern(isConstructorModern.call)
1209
1207
  || !isConstructorModern(Object)
@@ -1214,59 +1212,59 @@ var isConstructor$1 = !construct || fails$2(function () {
1214
1212
  var isConstructor = isConstructor$1;
1215
1213
  var tryToString$2 = tryToString$4;
1216
1214
 
1217
- var $TypeError$4 = TypeError;
1215
+ var $TypeError$6 = TypeError;
1218
1216
 
1219
1217
  // `Assert: IsConstructor(argument) is true`
1220
1218
  var aConstructor$1 = function (argument) {
1221
1219
  if (isConstructor(argument)) return argument;
1222
- throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1220
+ throw $TypeError$6(tryToString$2(argument) + ' is not a constructor');
1223
1221
  };
1224
1222
 
1225
- var anObject$4 = anObject$8;
1223
+ var anObject$6 = anObject$a;
1226
1224
  var aConstructor = aConstructor$1;
1227
1225
  var isNullOrUndefined$1 = isNullOrUndefined$4;
1228
- var wellKnownSymbol$4 = wellKnownSymbol$a;
1226
+ var wellKnownSymbol$a = wellKnownSymbol$g;
1229
1227
 
1230
- var SPECIES$1 = wellKnownSymbol$4('species');
1228
+ var SPECIES$1 = wellKnownSymbol$a('species');
1231
1229
 
1232
1230
  // `SpeciesConstructor` abstract operation
1233
1231
  // https://tc39.es/ecma262/#sec-speciesconstructor
1234
1232
  var speciesConstructor$1 = function (O, defaultConstructor) {
1235
- var C = anObject$4(O).constructor;
1233
+ var C = anObject$6(O).constructor;
1236
1234
  var S;
1237
- return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1235
+ return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1238
1236
  };
1239
1237
 
1240
1238
  var NATIVE_BIND$1 = functionBindNative;
1241
1239
 
1242
1240
  var FunctionPrototype = Function.prototype;
1243
1241
  var apply$1 = FunctionPrototype.apply;
1244
- var call$8 = FunctionPrototype.call;
1242
+ var call$9 = FunctionPrototype.call;
1245
1243
 
1246
1244
  // eslint-disable-next-line es/no-reflect -- safe
1247
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$8.bind(apply$1) : function () {
1248
- return call$8.apply(apply$1, arguments);
1245
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$9.bind(apply$1) : function () {
1246
+ return call$9.apply(apply$1, arguments);
1249
1247
  });
1250
1248
 
1251
1249
  var classofRaw = classofRaw$2;
1252
- var uncurryThis$3 = functionUncurryThis;
1250
+ var uncurryThis$4 = functionUncurryThis;
1253
1251
 
1254
1252
  var functionUncurryThisClause = function (fn) {
1255
1253
  // Nashorn bug:
1256
1254
  // https://github.com/zloirock/core-js/issues/1128
1257
1255
  // https://github.com/zloirock/core-js/issues/1130
1258
- if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
1256
+ if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
1259
1257
  };
1260
1258
 
1261
- var uncurryThis$2 = functionUncurryThisClause;
1262
- var aCallable$5 = aCallable$7;
1259
+ var uncurryThis$3 = functionUncurryThisClause;
1260
+ var aCallable$6 = aCallable$8;
1263
1261
  var NATIVE_BIND = functionBindNative;
1264
1262
 
1265
- var bind$4 = uncurryThis$2(uncurryThis$2.bind);
1263
+ var bind$4 = uncurryThis$3(uncurryThis$3.bind);
1266
1264
 
1267
1265
  // optional / simple context binding
1268
1266
  var functionBindContext = function (fn, that) {
1269
- aCallable$5(fn);
1267
+ aCallable$6(fn);
1270
1268
  return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1271
1269
  return fn.apply(that, arguments);
1272
1270
  };
@@ -1274,16 +1272,16 @@ var functionBindContext = function (fn, that) {
1274
1272
 
1275
1273
  var getBuiltIn$2 = getBuiltIn$8;
1276
1274
 
1277
- var html$1 = getBuiltIn$2('document', 'documentElement');
1275
+ var html$2 = getBuiltIn$2('document', 'documentElement');
1278
1276
 
1279
- var uncurryThis$1 = functionUncurryThis;
1277
+ var uncurryThis$2 = functionUncurryThis;
1280
1278
 
1281
- var arraySlice$1 = uncurryThis$1([].slice);
1279
+ var arraySlice$1 = uncurryThis$2([].slice);
1282
1280
 
1283
- var $TypeError$3 = TypeError;
1281
+ var $TypeError$5 = TypeError;
1284
1282
 
1285
1283
  var validateArgumentsLength$1 = function (passed, required) {
1286
- if (passed < required) throw $TypeError$3('Not enough arguments');
1284
+ if (passed < required) throw $TypeError$5('Not enough arguments');
1287
1285
  return passed;
1288
1286
  };
1289
1287
 
@@ -1291,26 +1289,26 @@ var userAgent$2 = engineUserAgent;
1291
1289
 
1292
1290
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1293
1291
 
1294
- var global$7 = global$i;
1292
+ var global$8 = global$j;
1295
1293
  var apply = functionApply;
1296
1294
  var bind$3 = functionBindContext;
1297
- var isCallable$3 = isCallable$h;
1298
- var hasOwn = hasOwnProperty_1;
1299
- var fails$1 = fails$b;
1300
- var html = html$1;
1295
+ var isCallable$6 = isCallable$k;
1296
+ var hasOwn$1 = hasOwnProperty_1;
1297
+ var fails$5 = fails$f;
1298
+ var html$1 = html$2;
1301
1299
  var arraySlice = arraySlice$1;
1302
- var createElement = documentCreateElement;
1300
+ var createElement = documentCreateElement$2;
1303
1301
  var validateArgumentsLength = validateArgumentsLength$1;
1304
1302
  var IS_IOS$1 = engineIsIos;
1305
- var IS_NODE$3 = engineIsNode;
1306
-
1307
- var set = global$7.setImmediate;
1308
- var clear = global$7.clearImmediate;
1309
- var process$2 = global$7.process;
1310
- var Dispatch = global$7.Dispatch;
1311
- var Function$1 = global$7.Function;
1312
- var MessageChannel = global$7.MessageChannel;
1313
- var String$1 = global$7.String;
1303
+ var IS_NODE$4 = engineIsNode;
1304
+
1305
+ var set = global$8.setImmediate;
1306
+ var clear = global$8.clearImmediate;
1307
+ var process$2 = global$8.process;
1308
+ var Dispatch = global$8.Dispatch;
1309
+ var Function$1 = global$8.Function;
1310
+ var MessageChannel = global$8.MessageChannel;
1311
+ var String$1 = global$8.String;
1314
1312
  var counter = 0;
1315
1313
  var queue$1 = {};
1316
1314
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -1318,11 +1316,11 @@ var $location, defer, channel, port;
1318
1316
 
1319
1317
  try {
1320
1318
  // Deno throws a ReferenceError on `location` access without `--location` flag
1321
- $location = global$7.location;
1319
+ $location = global$8.location;
1322
1320
  } catch (error) { /* empty */ }
1323
1321
 
1324
1322
  var run = function (id) {
1325
- if (hasOwn(queue$1, id)) {
1323
+ if (hasOwn$1(queue$1, id)) {
1326
1324
  var fn = queue$1[id];
1327
1325
  delete queue$1[id];
1328
1326
  fn();
@@ -1341,14 +1339,14 @@ var listener = function (event) {
1341
1339
 
1342
1340
  var post = function (id) {
1343
1341
  // old engines have not location.origin
1344
- global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1342
+ global$8.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1345
1343
  };
1346
1344
 
1347
1345
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1348
1346
  if (!set || !clear) {
1349
1347
  set = function setImmediate(handler) {
1350
1348
  validateArgumentsLength(arguments.length, 1);
1351
- var fn = isCallable$3(handler) ? handler : Function$1(handler);
1349
+ var fn = isCallable$6(handler) ? handler : Function$1(handler);
1352
1350
  var args = arraySlice(arguments, 1);
1353
1351
  queue$1[++counter] = function () {
1354
1352
  apply(fn, undefined, args);
@@ -1360,7 +1358,7 @@ if (!set || !clear) {
1360
1358
  delete queue$1[id];
1361
1359
  };
1362
1360
  // Node.js 0.8-
1363
- if (IS_NODE$3) {
1361
+ if (IS_NODE$4) {
1364
1362
  defer = function (id) {
1365
1363
  process$2.nextTick(runner(id));
1366
1364
  };
@@ -1379,19 +1377,19 @@ if (!set || !clear) {
1379
1377
  // Browsers with postMessage, skip WebWorkers
1380
1378
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1381
1379
  } else if (
1382
- global$7.addEventListener &&
1383
- isCallable$3(global$7.postMessage) &&
1384
- !global$7.importScripts &&
1380
+ global$8.addEventListener &&
1381
+ isCallable$6(global$8.postMessage) &&
1382
+ !global$8.importScripts &&
1385
1383
  $location && $location.protocol !== 'file:' &&
1386
- !fails$1(post)
1384
+ !fails$5(post)
1387
1385
  ) {
1388
1386
  defer = post;
1389
- global$7.addEventListener('message', listener, false);
1387
+ global$8.addEventListener('message', listener, false);
1390
1388
  // IE8-
1391
1389
  } else if (ONREADYSTATECHANGE in createElement('script')) {
1392
1390
  defer = function (id) {
1393
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1394
- html.removeChild(this);
1391
+ html$1.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1392
+ html$1.removeChild(this);
1395
1393
  run(id);
1396
1394
  };
1397
1395
  };
@@ -1409,29 +1407,29 @@ var task$1 = {
1409
1407
  };
1410
1408
 
1411
1409
  var userAgent$1 = engineUserAgent;
1412
- var global$6 = global$i;
1410
+ var global$7 = global$j;
1413
1411
 
1414
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$6.Pebble !== undefined;
1412
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$7.Pebble !== undefined;
1415
1413
 
1416
1414
  var userAgent = engineUserAgent;
1417
1415
 
1418
1416
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1419
1417
 
1420
- var global$5 = global$i;
1418
+ var global$6 = global$j;
1421
1419
  var bind$2 = functionBindContext;
1422
1420
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1423
1421
  var macrotask = task$1.set;
1424
1422
  var IS_IOS = engineIsIos;
1425
1423
  var IS_IOS_PEBBLE = engineIsIosPebble;
1426
1424
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1427
- var IS_NODE$2 = engineIsNode;
1425
+ var IS_NODE$3 = engineIsNode;
1428
1426
 
1429
- var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
1430
- var document$2 = global$5.document;
1431
- var process$1 = global$5.process;
1432
- var Promise$1 = global$5.Promise;
1427
+ var MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;
1428
+ var document$2 = global$6.document;
1429
+ var process$1 = global$6.process;
1430
+ var Promise$1 = global$6.Promise;
1433
1431
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1434
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
1432
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$6, 'queueMicrotask');
1435
1433
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1436
1434
 
1437
1435
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -1440,7 +1438,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
1440
1438
  if (!queueMicrotask) {
1441
1439
  flush = function () {
1442
1440
  var parent, fn;
1443
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
1441
+ if (IS_NODE$3 && (parent = process$1.domain)) parent.exit();
1444
1442
  while (head) {
1445
1443
  fn = head.fn;
1446
1444
  head = head.next;
@@ -1457,7 +1455,7 @@ if (!queueMicrotask) {
1457
1455
 
1458
1456
  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1459
1457
  // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1460
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1458
+ if (!IS_IOS && !IS_NODE$3 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1461
1459
  toggle = true;
1462
1460
  node = document$2.createTextNode('');
1463
1461
  new MutationObserver(flush).observe(node, { characterData: true });
@@ -1475,7 +1473,7 @@ if (!queueMicrotask) {
1475
1473
  then(flush);
1476
1474
  };
1477
1475
  // Node.js without promises
1478
- } else if (IS_NODE$2) {
1476
+ } else if (IS_NODE$3) {
1479
1477
  notify$1 = function () {
1480
1478
  process$1.nextTick(flush);
1481
1479
  };
@@ -1487,7 +1485,7 @@ if (!queueMicrotask) {
1487
1485
  // - setTimeout
1488
1486
  } else {
1489
1487
  // strange IE + webpack dev server bug - use .bind(global)
1490
- macrotask = bind$2(macrotask, global$5);
1488
+ macrotask = bind$2(macrotask, global$6);
1491
1489
  notify$1 = function () {
1492
1490
  macrotask(flush);
1493
1491
  };
@@ -1503,10 +1501,10 @@ var microtask$1 = queueMicrotask || function (fn) {
1503
1501
  } last = task;
1504
1502
  };
1505
1503
 
1506
- var global$4 = global$i;
1504
+ var global$5 = global$j;
1507
1505
 
1508
1506
  var hostReportErrors$1 = function (a, b) {
1509
- var console = global$4.console;
1507
+ var console = global$5.console;
1510
1508
  if (console && console.error) {
1511
1509
  arguments.length == 1 ? console.error(a) : console.error(a, b);
1512
1510
  }
@@ -1544,35 +1542,35 @@ Queue$1.prototype = {
1544
1542
 
1545
1543
  var queue = Queue$1;
1546
1544
 
1547
- var global$3 = global$i;
1545
+ var global$4 = global$j;
1548
1546
 
1549
- var promiseNativeConstructor = global$3.Promise;
1547
+ var promiseNativeConstructor = global$4.Promise;
1550
1548
 
1551
1549
  /* global Deno -- Deno case */
1552
1550
 
1553
1551
  var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
1554
1552
 
1555
1553
  var IS_DENO$1 = engineIsDeno;
1556
- var IS_NODE$1 = engineIsNode;
1554
+ var IS_NODE$2 = engineIsNode;
1557
1555
 
1558
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
1556
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$2
1559
1557
  && typeof window == 'object'
1560
1558
  && typeof document == 'object';
1561
1559
 
1562
- var global$2 = global$i;
1560
+ var global$3 = global$j;
1563
1561
  var NativePromiseConstructor$3 = promiseNativeConstructor;
1564
- var isCallable$2 = isCallable$h;
1562
+ var isCallable$5 = isCallable$k;
1565
1563
  var isForced = isForced_1;
1566
1564
  var inspectSource = inspectSource$3;
1567
- var wellKnownSymbol$3 = wellKnownSymbol$a;
1565
+ var wellKnownSymbol$9 = wellKnownSymbol$g;
1568
1566
  var IS_BROWSER = engineIsBrowser;
1569
1567
  var IS_DENO = engineIsDeno;
1570
1568
  var V8_VERSION = engineV8Version;
1571
1569
 
1572
1570
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1573
- var SPECIES = wellKnownSymbol$3('species');
1571
+ var SPECIES = wellKnownSymbol$9('species');
1574
1572
  var SUBCLASSING = false;
1575
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
1573
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(global$3.PromiseRejectionEvent);
1576
1574
 
1577
1575
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1578
1576
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -1606,19 +1604,19 @@ var promiseConstructorDetection = {
1606
1604
 
1607
1605
  var newPromiseCapability$2 = {};
1608
1606
 
1609
- var aCallable$4 = aCallable$7;
1607
+ var aCallable$5 = aCallable$8;
1610
1608
 
1611
- var $TypeError$2 = TypeError;
1609
+ var $TypeError$4 = TypeError;
1612
1610
 
1613
1611
  var PromiseCapability = function (C) {
1614
1612
  var resolve, reject;
1615
1613
  this.promise = new C(function ($$resolve, $$reject) {
1616
- if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
1614
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$4('Bad Promise constructor');
1617
1615
  resolve = $$resolve;
1618
1616
  reject = $$reject;
1619
1617
  });
1620
- this.resolve = aCallable$4(resolve);
1621
- this.reject = aCallable$4(reject);
1618
+ this.resolve = aCallable$5(resolve);
1619
+ this.reject = aCallable$5(reject);
1622
1620
  };
1623
1621
 
1624
1622
  // `NewPromiseCapability` abstract operation
@@ -1627,17 +1625,17 @@ newPromiseCapability$2.f = function (C) {
1627
1625
  return new PromiseCapability(C);
1628
1626
  };
1629
1627
 
1630
- var $$6 = _export;
1631
- var IS_NODE = engineIsNode;
1632
- var global$1 = global$i;
1633
- var call$7 = functionCall;
1634
- var defineBuiltIn$1 = defineBuiltIn$3;
1635
- var setPrototypeOf = objectSetPrototypeOf;
1636
- var setToStringTag = setToStringTag$1;
1628
+ var $$a = _export;
1629
+ var IS_NODE$1 = engineIsNode;
1630
+ var global$2 = global$j;
1631
+ var call$8 = functionCall;
1632
+ var defineBuiltIn$3 = defineBuiltIn$5;
1633
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1634
+ var setToStringTag$2 = setToStringTag$3;
1637
1635
  var setSpecies = setSpecies$1;
1638
- var aCallable$3 = aCallable$7;
1639
- var isCallable$1 = isCallable$h;
1640
- var isObject$1 = isObject$7;
1636
+ var aCallable$4 = aCallable$8;
1637
+ var isCallable$4 = isCallable$k;
1638
+ var isObject$3 = isObject$9;
1641
1639
  var anInstance = anInstance$1;
1642
1640
  var speciesConstructor = speciesConstructor$1;
1643
1641
  var task = task$1.set;
@@ -1645,7 +1643,7 @@ var microtask = microtask$1;
1645
1643
  var hostReportErrors = hostReportErrors$1;
1646
1644
  var perform$2 = perform$3;
1647
1645
  var Queue = queue;
1648
- var InternalStateModule = internalState;
1646
+ var InternalStateModule$1 = internalState;
1649
1647
  var NativePromiseConstructor$2 = promiseNativeConstructor;
1650
1648
  var PromiseConstructorDetection = promiseConstructorDetection;
1651
1649
  var newPromiseCapabilityModule$3 = newPromiseCapability$2;
@@ -1654,18 +1652,18 @@ var PROMISE = 'Promise';
1654
1652
  var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
1655
1653
  var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
1656
1654
  var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1657
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
1658
- var setInternalState = InternalStateModule.set;
1655
+ var getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);
1656
+ var setInternalState$1 = InternalStateModule$1.set;
1659
1657
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1660
1658
  var PromiseConstructor = NativePromiseConstructor$2;
1661
1659
  var PromisePrototype = NativePromisePrototype$1;
1662
- var TypeError$1 = global$1.TypeError;
1663
- var document$1 = global$1.document;
1664
- var process = global$1.process;
1660
+ var TypeError$1 = global$2.TypeError;
1661
+ var document$1 = global$2.document;
1662
+ var process = global$2.process;
1665
1663
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
1666
1664
  var newGenericPromiseCapability = newPromiseCapability$1;
1667
1665
 
1668
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
1666
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
1669
1667
  var UNHANDLED_REJECTION = 'unhandledrejection';
1670
1668
  var REJECTION_HANDLED = 'rejectionhandled';
1671
1669
  var PENDING = 0;
@@ -1679,7 +1677,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1679
1677
  // helpers
1680
1678
  var isThenable = function (it) {
1681
1679
  var then;
1682
- return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
1680
+ return isObject$3(it) && isCallable$4(then = it.then) ? then : false;
1683
1681
  };
1684
1682
 
1685
1683
  var callReaction = function (reaction, state) {
@@ -1708,7 +1706,7 @@ var callReaction = function (reaction, state) {
1708
1706
  if (result === reaction.promise) {
1709
1707
  reject(TypeError$1('Promise-chain cycle'));
1710
1708
  } else if (then = isThenable(result)) {
1711
- call$7(then, result, resolve, reject);
1709
+ call$8(then, result, resolve, reject);
1712
1710
  } else resolve(result);
1713
1711
  } else reject(value);
1714
1712
  } catch (error) {
@@ -1738,26 +1736,26 @@ var dispatchEvent = function (name, promise, reason) {
1738
1736
  event.promise = promise;
1739
1737
  event.reason = reason;
1740
1738
  event.initEvent(name, false, true);
1741
- global$1.dispatchEvent(event);
1739
+ global$2.dispatchEvent(event);
1742
1740
  } else event = { promise: promise, reason: reason };
1743
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
1741
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
1744
1742
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1745
1743
  };
1746
1744
 
1747
1745
  var onUnhandled = function (state) {
1748
- call$7(task, global$1, function () {
1746
+ call$8(task, global$2, function () {
1749
1747
  var promise = state.facade;
1750
1748
  var value = state.value;
1751
1749
  var IS_UNHANDLED = isUnhandled(state);
1752
1750
  var result;
1753
1751
  if (IS_UNHANDLED) {
1754
1752
  result = perform$2(function () {
1755
- if (IS_NODE) {
1753
+ if (IS_NODE$1) {
1756
1754
  process.emit('unhandledRejection', value, promise);
1757
1755
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
1758
1756
  });
1759
1757
  // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1760
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
1758
+ state.rejection = IS_NODE$1 || isUnhandled(state) ? UNHANDLED : HANDLED;
1761
1759
  if (result.error) throw result.value;
1762
1760
  }
1763
1761
  });
@@ -1768,9 +1766,9 @@ var isUnhandled = function (state) {
1768
1766
  };
1769
1767
 
1770
1768
  var onHandleUnhandled = function (state) {
1771
- call$7(task, global$1, function () {
1769
+ call$8(task, global$2, function () {
1772
1770
  var promise = state.facade;
1773
- if (IS_NODE) {
1771
+ if (IS_NODE$1) {
1774
1772
  process.emit('rejectionHandled', promise);
1775
1773
  } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1776
1774
  });
@@ -1802,7 +1800,7 @@ var internalResolve = function (state, value, unwrap) {
1802
1800
  microtask(function () {
1803
1801
  var wrapper = { done: false };
1804
1802
  try {
1805
- call$7(then, value,
1803
+ call$8(then, value,
1806
1804
  bind$1(internalResolve, wrapper, state),
1807
1805
  bind$1(internalReject, wrapper, state)
1808
1806
  );
@@ -1825,8 +1823,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1825
1823
  // 25.4.3.1 Promise(executor)
1826
1824
  PromiseConstructor = function Promise(executor) {
1827
1825
  anInstance(this, PromisePrototype);
1828
- aCallable$3(executor);
1829
- call$7(Internal, this);
1826
+ aCallable$4(executor);
1827
+ call$8(Internal, this);
1830
1828
  var state = getInternalPromiseState(this);
1831
1829
  try {
1832
1830
  executor(bind$1(internalResolve, state), bind$1(internalReject, state));
@@ -1839,7 +1837,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1839
1837
 
1840
1838
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1841
1839
  Internal = function Promise(executor) {
1842
- setInternalState(this, {
1840
+ setInternalState$1(this, {
1843
1841
  type: PROMISE,
1844
1842
  done: false,
1845
1843
  notified: false,
@@ -1853,13 +1851,13 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1853
1851
 
1854
1852
  // `Promise.prototype.then` method
1855
1853
  // https://tc39.es/ecma262/#sec-promise.prototype.then
1856
- Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1854
+ Internal.prototype = defineBuiltIn$3(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1857
1855
  var state = getInternalPromiseState(this);
1858
1856
  var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
1859
1857
  state.parent = true;
1860
- reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
1861
- reaction.fail = isCallable$1(onRejected) && onRejected;
1862
- reaction.domain = IS_NODE ? process.domain : undefined;
1858
+ reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
1859
+ reaction.fail = isCallable$4(onRejected) && onRejected;
1860
+ reaction.domain = IS_NODE$1 ? process.domain : undefined;
1863
1861
  if (state.state == PENDING) state.reactions.add(reaction);
1864
1862
  else microtask(function () {
1865
1863
  callReaction(reaction, state);
@@ -1881,15 +1879,15 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1881
1879
  : newGenericPromiseCapability(C);
1882
1880
  };
1883
1881
 
1884
- if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1882
+ if (isCallable$4(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1885
1883
  nativeThen = NativePromisePrototype$1.then;
1886
1884
 
1887
1885
  if (!NATIVE_PROMISE_SUBCLASSING) {
1888
1886
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1889
- defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1887
+ defineBuiltIn$3(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1890
1888
  var that = this;
1891
1889
  return new PromiseConstructor(function (resolve, reject) {
1892
- call$7(nativeThen, that, resolve, reject);
1890
+ call$8(nativeThen, that, resolve, reject);
1893
1891
  }).then(onFulfilled, onRejected);
1894
1892
  // https://github.com/zloirock/core-js/issues/640
1895
1893
  }, { unsafe: true });
@@ -1901,96 +1899,96 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1901
1899
  } catch (error) { /* empty */ }
1902
1900
 
1903
1901
  // make `instanceof Promise` work for native promise-based APIs
1904
- if (setPrototypeOf) {
1905
- setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
1902
+ if (setPrototypeOf$1) {
1903
+ setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype);
1906
1904
  }
1907
1905
  }
1908
1906
  }
1909
1907
 
1910
- $$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1908
+ $$a({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1911
1909
  Promise: PromiseConstructor
1912
1910
  });
1913
1911
 
1914
- setToStringTag(PromiseConstructor, PROMISE, false);
1912
+ setToStringTag$2(PromiseConstructor, PROMISE, false);
1915
1913
  setSpecies(PROMISE);
1916
1914
 
1917
1915
  var iterators = {};
1918
1916
 
1919
- var wellKnownSymbol$2 = wellKnownSymbol$a;
1920
- var Iterators$1 = iterators;
1917
+ var wellKnownSymbol$8 = wellKnownSymbol$g;
1918
+ var Iterators$4 = iterators;
1921
1919
 
1922
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
1923
- var ArrayPrototype = Array.prototype;
1920
+ var ITERATOR$5 = wellKnownSymbol$8('iterator');
1921
+ var ArrayPrototype$1 = Array.prototype;
1924
1922
 
1925
1923
  // check on default Array iterator
1926
1924
  var isArrayIteratorMethod$1 = function (it) {
1927
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
1925
+ return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$5] === it);
1928
1926
  };
1929
1927
 
1930
- var classof = classof$2;
1928
+ var classof$2 = classof$4;
1931
1929
  var getMethod$1 = getMethod$3;
1932
1930
  var isNullOrUndefined = isNullOrUndefined$4;
1933
- var Iterators = iterators;
1934
- var wellKnownSymbol$1 = wellKnownSymbol$a;
1931
+ var Iterators$3 = iterators;
1932
+ var wellKnownSymbol$7 = wellKnownSymbol$g;
1935
1933
 
1936
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1934
+ var ITERATOR$4 = wellKnownSymbol$7('iterator');
1937
1935
 
1938
1936
  var getIteratorMethod$2 = function (it) {
1939
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
1937
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$4)
1940
1938
  || getMethod$1(it, '@@iterator')
1941
- || Iterators[classof(it)];
1939
+ || Iterators$3[classof$2(it)];
1942
1940
  };
1943
1941
 
1944
- var call$6 = functionCall;
1945
- var aCallable$2 = aCallable$7;
1946
- var anObject$3 = anObject$8;
1942
+ var call$7 = functionCall;
1943
+ var aCallable$3 = aCallable$8;
1944
+ var anObject$5 = anObject$a;
1947
1945
  var tryToString$1 = tryToString$4;
1948
1946
  var getIteratorMethod$1 = getIteratorMethod$2;
1949
1947
 
1950
- var $TypeError$1 = TypeError;
1948
+ var $TypeError$3 = TypeError;
1951
1949
 
1952
1950
  var getIterator$1 = function (argument, usingIterator) {
1953
1951
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1954
- if (aCallable$2(iteratorMethod)) return anObject$3(call$6(iteratorMethod, argument));
1955
- throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
1952
+ if (aCallable$3(iteratorMethod)) return anObject$5(call$7(iteratorMethod, argument));
1953
+ throw $TypeError$3(tryToString$1(argument) + ' is not iterable');
1956
1954
  };
1957
1955
 
1958
- var call$5 = functionCall;
1959
- var anObject$2 = anObject$8;
1956
+ var call$6 = functionCall;
1957
+ var anObject$4 = anObject$a;
1960
1958
  var getMethod = getMethod$3;
1961
1959
 
1962
1960
  var iteratorClose$1 = function (iterator, kind, value) {
1963
1961
  var innerResult, innerError;
1964
- anObject$2(iterator);
1962
+ anObject$4(iterator);
1965
1963
  try {
1966
1964
  innerResult = getMethod(iterator, 'return');
1967
1965
  if (!innerResult) {
1968
1966
  if (kind === 'throw') throw value;
1969
1967
  return value;
1970
1968
  }
1971
- innerResult = call$5(innerResult, iterator);
1969
+ innerResult = call$6(innerResult, iterator);
1972
1970
  } catch (error) {
1973
1971
  innerError = true;
1974
1972
  innerResult = error;
1975
1973
  }
1976
1974
  if (kind === 'throw') throw value;
1977
1975
  if (innerError) throw innerResult;
1978
- anObject$2(innerResult);
1976
+ anObject$4(innerResult);
1979
1977
  return value;
1980
1978
  };
1981
1979
 
1982
1980
  var bind = functionBindContext;
1983
- var call$4 = functionCall;
1984
- var anObject$1 = anObject$8;
1981
+ var call$5 = functionCall;
1982
+ var anObject$3 = anObject$a;
1985
1983
  var tryToString = tryToString$4;
1986
1984
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
1987
- var lengthOfArrayLike = lengthOfArrayLike$2;
1985
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1988
1986
  var isPrototypeOf = objectIsPrototypeOf;
1989
1987
  var getIterator = getIterator$1;
1990
1988
  var getIteratorMethod = getIteratorMethod$2;
1991
1989
  var iteratorClose = iteratorClose$1;
1992
1990
 
1993
- var $TypeError = TypeError;
1991
+ var $TypeError$2 = TypeError;
1994
1992
 
1995
1993
  var Result = function (stopped, result) {
1996
1994
  this.stopped = stopped;
@@ -2015,7 +2013,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2015
2013
 
2016
2014
  var callFn = function (value) {
2017
2015
  if (AS_ENTRIES) {
2018
- anObject$1(value);
2016
+ anObject$3(value);
2019
2017
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2020
2018
  } return INTERRUPTED ? fn(value, stop) : fn(value);
2021
2019
  };
@@ -2026,10 +2024,10 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2026
2024
  iterator = iterable;
2027
2025
  } else {
2028
2026
  iterFn = getIteratorMethod(iterable);
2029
- if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
2027
+ if (!iterFn) throw $TypeError$2(tryToString(iterable) + ' is not iterable');
2030
2028
  // optimisation for array iterators
2031
2029
  if (isArrayIteratorMethod(iterFn)) {
2032
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2030
+ for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
2033
2031
  result = callFn(iterable[index]);
2034
2032
  if (result && isPrototypeOf(ResultPrototype, result)) return result;
2035
2033
  } return new Result(false);
@@ -2038,7 +2036,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2038
2036
  }
2039
2037
 
2040
2038
  next = IS_RECORD ? iterable.next : iterator.next;
2041
- while (!(step = call$4(next, iterator)).done) {
2039
+ while (!(step = call$5(next, iterator)).done) {
2042
2040
  try {
2043
2041
  result = callFn(step.value);
2044
2042
  } catch (error) {
@@ -2048,9 +2046,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2048
2046
  } return new Result(false);
2049
2047
  };
2050
2048
 
2051
- var wellKnownSymbol = wellKnownSymbol$a;
2049
+ var wellKnownSymbol$6 = wellKnownSymbol$g;
2052
2050
 
2053
- var ITERATOR = wellKnownSymbol('iterator');
2051
+ var ITERATOR$3 = wellKnownSymbol$6('iterator');
2054
2052
  var SAFE_CLOSING = false;
2055
2053
 
2056
2054
  try {
@@ -2063,7 +2061,7 @@ try {
2063
2061
  SAFE_CLOSING = true;
2064
2062
  }
2065
2063
  };
2066
- iteratorWithReturn[ITERATOR] = function () {
2064
+ iteratorWithReturn[ITERATOR$3] = function () {
2067
2065
  return this;
2068
2066
  };
2069
2067
  // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
@@ -2075,7 +2073,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2075
2073
  var ITERATION_SUPPORT = false;
2076
2074
  try {
2077
2075
  var object = {};
2078
- object[ITERATOR] = function () {
2076
+ object[ITERATOR$3] = function () {
2079
2077
  return {
2080
2078
  next: function () {
2081
2079
  return { done: ITERATION_SUPPORT = true };
@@ -2095,9 +2093,9 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
2095
2093
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2096
2094
  });
2097
2095
 
2098
- var $$5 = _export;
2099
- var call$3 = functionCall;
2100
- var aCallable$1 = aCallable$7;
2096
+ var $$9 = _export;
2097
+ var call$4 = functionCall;
2098
+ var aCallable$2 = aCallable$8;
2101
2099
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2102
2100
  var perform$1 = perform$3;
2103
2101
  var iterate$1 = iterate$2;
@@ -2105,14 +2103,14 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2105
2103
 
2106
2104
  // `Promise.all` method
2107
2105
  // https://tc39.es/ecma262/#sec-promise.all
2108
- $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2106
+ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2109
2107
  all: function all(iterable) {
2110
2108
  var C = this;
2111
2109
  var capability = newPromiseCapabilityModule$2.f(C);
2112
2110
  var resolve = capability.resolve;
2113
2111
  var reject = capability.reject;
2114
2112
  var result = perform$1(function () {
2115
- var $promiseResolve = aCallable$1(C.resolve);
2113
+ var $promiseResolve = aCallable$2(C.resolve);
2116
2114
  var values = [];
2117
2115
  var counter = 0;
2118
2116
  var remaining = 1;
@@ -2120,7 +2118,7 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2120
2118
  var index = counter++;
2121
2119
  var alreadyCalled = false;
2122
2120
  remaining++;
2123
- call$3($promiseResolve, C, promise).then(function (value) {
2121
+ call$4($promiseResolve, C, promise).then(function (value) {
2124
2122
  if (alreadyCalled) return;
2125
2123
  alreadyCalled = true;
2126
2124
  values[index] = value;
@@ -2134,34 +2132,34 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2134
2132
  }
2135
2133
  });
2136
2134
 
2137
- var $$4 = _export;
2135
+ var $$8 = _export;
2138
2136
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2139
2137
  var NativePromiseConstructor = promiseNativeConstructor;
2140
2138
  var getBuiltIn$1 = getBuiltIn$8;
2141
- var isCallable = isCallable$h;
2142
- var defineBuiltIn = defineBuiltIn$3;
2139
+ var isCallable$3 = isCallable$k;
2140
+ var defineBuiltIn$2 = defineBuiltIn$5;
2143
2141
 
2144
2142
  var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2145
2143
 
2146
2144
  // `Promise.prototype.catch` method
2147
2145
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
2148
- $$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2146
+ $$8({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2149
2147
  'catch': function (onRejected) {
2150
2148
  return this.then(undefined, onRejected);
2151
2149
  }
2152
2150
  });
2153
2151
 
2154
2152
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2155
- if (isCallable(NativePromiseConstructor)) {
2153
+ if (isCallable$3(NativePromiseConstructor)) {
2156
2154
  var method = getBuiltIn$1('Promise').prototype['catch'];
2157
2155
  if (NativePromisePrototype['catch'] !== method) {
2158
- defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2156
+ defineBuiltIn$2(NativePromisePrototype, 'catch', method, { unsafe: true });
2159
2157
  }
2160
2158
  }
2161
2159
 
2162
- var $$3 = _export;
2163
- var call$2 = functionCall;
2164
- var aCallable = aCallable$7;
2160
+ var $$7 = _export;
2161
+ var call$3 = functionCall;
2162
+ var aCallable$1 = aCallable$8;
2165
2163
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2166
2164
  var perform = perform$3;
2167
2165
  var iterate = iterate$2;
@@ -2169,15 +2167,15 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2169
2167
 
2170
2168
  // `Promise.race` method
2171
2169
  // https://tc39.es/ecma262/#sec-promise.race
2172
- $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2170
+ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2173
2171
  race: function race(iterable) {
2174
2172
  var C = this;
2175
2173
  var capability = newPromiseCapabilityModule$1.f(C);
2176
2174
  var reject = capability.reject;
2177
2175
  var result = perform(function () {
2178
- var $promiseResolve = aCallable(C.resolve);
2176
+ var $promiseResolve = aCallable$1(C.resolve);
2179
2177
  iterate(iterable, function (promise) {
2180
- call$2($promiseResolve, C, promise).then(capability.resolve, reject);
2178
+ call$3($promiseResolve, C, promise).then(capability.resolve, reject);
2181
2179
  });
2182
2180
  });
2183
2181
  if (result.error) reject(result.value);
@@ -2185,35 +2183,35 @@ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2185
2183
  }
2186
2184
  });
2187
2185
 
2188
- var $$2 = _export;
2189
- var call$1 = functionCall;
2186
+ var $$6 = _export;
2187
+ var call$2 = functionCall;
2190
2188
  var newPromiseCapabilityModule = newPromiseCapability$2;
2191
2189
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2192
2190
 
2193
2191
  // `Promise.reject` method
2194
2192
  // https://tc39.es/ecma262/#sec-promise.reject
2195
- $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2193
+ $$6({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2196
2194
  reject: function reject(r) {
2197
2195
  var capability = newPromiseCapabilityModule.f(this);
2198
- call$1(capability.reject, undefined, r);
2196
+ call$2(capability.reject, undefined, r);
2199
2197
  return capability.promise;
2200
2198
  }
2201
2199
  });
2202
2200
 
2203
- var anObject = anObject$8;
2204
- var isObject = isObject$7;
2201
+ var anObject$2 = anObject$a;
2202
+ var isObject$2 = isObject$9;
2205
2203
  var newPromiseCapability = newPromiseCapability$2;
2206
2204
 
2207
2205
  var promiseResolve$1 = function (C, x) {
2208
- anObject(C);
2209
- if (isObject(x) && x.constructor === C) return x;
2206
+ anObject$2(C);
2207
+ if (isObject$2(x) && x.constructor === C) return x;
2210
2208
  var promiseCapability = newPromiseCapability.f(C);
2211
2209
  var resolve = promiseCapability.resolve;
2212
2210
  resolve(x);
2213
2211
  return promiseCapability.promise;
2214
2212
  };
2215
2213
 
2216
- var $$1 = _export;
2214
+ var $$5 = _export;
2217
2215
  var getBuiltIn = getBuiltIn$8;
2218
2216
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2219
2217
  var promiseResolve = promiseResolve$1;
@@ -2222,46 +2220,46 @@ getBuiltIn('Promise');
2222
2220
 
2223
2221
  // `Promise.resolve` method
2224
2222
  // https://tc39.es/ecma262/#sec-promise.resolve
2225
- $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2223
+ $$5({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2226
2224
  resolve: function resolve(x) {
2227
2225
  return promiseResolve(this, x);
2228
2226
  }
2229
2227
  });
2230
2228
 
2231
2229
  var internalObjectKeys = objectKeysInternal;
2232
- var enumBugKeys = enumBugKeys$2;
2230
+ var enumBugKeys$1 = enumBugKeys$3;
2233
2231
 
2234
2232
  // `Object.keys` method
2235
2233
  // https://tc39.es/ecma262/#sec-object.keys
2236
2234
  // eslint-disable-next-line es/no-object-keys -- safe
2237
- var objectKeys$1 = Object.keys || function keys(O) {
2238
- return internalObjectKeys(O, enumBugKeys);
2235
+ var objectKeys$2 = Object.keys || function keys(O) {
2236
+ return internalObjectKeys(O, enumBugKeys$1);
2239
2237
  };
2240
2238
 
2241
- var DESCRIPTORS = descriptors;
2242
- var uncurryThis = functionUncurryThis;
2243
- var call = functionCall;
2244
- var fails = fails$b;
2245
- var objectKeys = objectKeys$1;
2239
+ var DESCRIPTORS$2 = descriptors;
2240
+ var uncurryThis$1 = functionUncurryThis;
2241
+ var call$1 = functionCall;
2242
+ var fails$4 = fails$f;
2243
+ var objectKeys$1 = objectKeys$2;
2246
2244
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2247
2245
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2248
- var toObject = toObject$2;
2249
- var IndexedObject = indexedObject;
2246
+ var toObject$2 = toObject$4;
2247
+ var IndexedObject$1 = indexedObject;
2250
2248
 
2251
2249
  // eslint-disable-next-line es/no-object-assign -- safe
2252
2250
  var $assign = Object.assign;
2253
2251
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2254
- var defineProperty = Object.defineProperty;
2255
- var concat = uncurryThis([].concat);
2252
+ var defineProperty$2 = Object.defineProperty;
2253
+ var concat = uncurryThis$1([].concat);
2256
2254
 
2257
2255
  // `Object.assign` method
2258
2256
  // https://tc39.es/ecma262/#sec-object.assign
2259
- var objectAssign = !$assign || fails(function () {
2257
+ var objectAssign = !$assign || fails$4(function () {
2260
2258
  // should have correct order of operations (Edge bug)
2261
- if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
2259
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
2262
2260
  enumerable: true,
2263
2261
  get: function () {
2264
- defineProperty(this, 'b', {
2262
+ defineProperty$2(this, 'b', {
2265
2263
  value: 3,
2266
2264
  enumerable: false
2267
2265
  });
@@ -2275,36 +2273,668 @@ var objectAssign = !$assign || fails(function () {
2275
2273
  var alphabet = 'abcdefghijklmnopqrst';
2276
2274
  A[symbol] = 7;
2277
2275
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2278
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
2276
+ return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
2279
2277
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2280
- var T = toObject(target);
2278
+ var T = toObject$2(target);
2281
2279
  var argumentsLength = arguments.length;
2282
2280
  var index = 1;
2283
2281
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2284
2282
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
2285
2283
  while (argumentsLength > index) {
2286
- var S = IndexedObject(arguments[index++]);
2287
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2284
+ var S = IndexedObject$1(arguments[index++]);
2285
+ var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
2288
2286
  var length = keys.length;
2289
2287
  var j = 0;
2290
2288
  var key;
2291
2289
  while (length > j) {
2292
2290
  key = keys[j++];
2293
- if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
2291
+ if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
2294
2292
  }
2295
2293
  } return T;
2296
2294
  } : $assign;
2297
2295
 
2298
- var $ = _export;
2296
+ var $$4 = _export;
2299
2297
  var assign = objectAssign;
2300
2298
 
2301
2299
  // `Object.assign` method
2302
2300
  // https://tc39.es/ecma262/#sec-object.assign
2303
2301
  // eslint-disable-next-line es/no-object-assign -- required for testing
2304
- $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2302
+ $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2305
2303
  assign: assign
2306
2304
  });
2307
2305
 
2306
+ var objectDefineProperties = {};
2307
+
2308
+ var DESCRIPTORS$1 = descriptors;
2309
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2310
+ var definePropertyModule = objectDefineProperty;
2311
+ var anObject$1 = anObject$a;
2312
+ var toIndexedObject$1 = toIndexedObject$5;
2313
+ var objectKeys = objectKeys$2;
2314
+
2315
+ // `Object.defineProperties` method
2316
+ // https://tc39.es/ecma262/#sec-object.defineproperties
2317
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
2318
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2319
+ anObject$1(O);
2320
+ var props = toIndexedObject$1(Properties);
2321
+ var keys = objectKeys(Properties);
2322
+ var length = keys.length;
2323
+ var index = 0;
2324
+ var key;
2325
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
2326
+ return O;
2327
+ };
2328
+
2329
+ /* global ActiveXObject -- old IE, WSH */
2330
+
2331
+ var anObject = anObject$a;
2332
+ var definePropertiesModule = objectDefineProperties;
2333
+ var enumBugKeys = enumBugKeys$3;
2334
+ var hiddenKeys = hiddenKeys$4;
2335
+ var html = html$2;
2336
+ var documentCreateElement$1 = documentCreateElement$2;
2337
+ var sharedKey$1 = sharedKey$3;
2338
+
2339
+ var GT = '>';
2340
+ var LT = '<';
2341
+ var PROTOTYPE = 'prototype';
2342
+ var SCRIPT = 'script';
2343
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
2344
+
2345
+ var EmptyConstructor = function () { /* empty */ };
2346
+
2347
+ var scriptTag = function (content) {
2348
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2349
+ };
2350
+
2351
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2352
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
2353
+ activeXDocument.write(scriptTag(''));
2354
+ activeXDocument.close();
2355
+ var temp = activeXDocument.parentWindow.Object;
2356
+ activeXDocument = null; // avoid memory leak
2357
+ return temp;
2358
+ };
2359
+
2360
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
2361
+ var NullProtoObjectViaIFrame = function () {
2362
+ // Thrash, waste and sodomy: IE GC bug
2363
+ var iframe = documentCreateElement$1('iframe');
2364
+ var JS = 'java' + SCRIPT + ':';
2365
+ var iframeDocument;
2366
+ iframe.style.display = 'none';
2367
+ html.appendChild(iframe);
2368
+ // https://github.com/zloirock/core-js/issues/475
2369
+ iframe.src = String(JS);
2370
+ iframeDocument = iframe.contentWindow.document;
2371
+ iframeDocument.open();
2372
+ iframeDocument.write(scriptTag('document.F=Object'));
2373
+ iframeDocument.close();
2374
+ return iframeDocument.F;
2375
+ };
2376
+
2377
+ // Check for document.domain and active x support
2378
+ // No need to use active x approach when document.domain is not set
2379
+ // see https://github.com/es-shims/es5-shim/issues/150
2380
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2381
+ // avoid IE GC bug
2382
+ var activeXDocument;
2383
+ var NullProtoObject = function () {
2384
+ try {
2385
+ activeXDocument = new ActiveXObject('htmlfile');
2386
+ } catch (error) { /* ignore */ }
2387
+ NullProtoObject = typeof document != 'undefined'
2388
+ ? document.domain && activeXDocument
2389
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2390
+ : NullProtoObjectViaIFrame()
2391
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
2392
+ var length = enumBugKeys.length;
2393
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2394
+ return NullProtoObject();
2395
+ };
2396
+
2397
+ hiddenKeys[IE_PROTO$1] = true;
2398
+
2399
+ // `Object.create` method
2400
+ // https://tc39.es/ecma262/#sec-object.create
2401
+ // eslint-disable-next-line es/no-object-create -- safe
2402
+ var objectCreate = Object.create || function create(O, Properties) {
2403
+ var result;
2404
+ if (O !== null) {
2405
+ EmptyConstructor[PROTOTYPE] = anObject(O);
2406
+ result = new EmptyConstructor();
2407
+ EmptyConstructor[PROTOTYPE] = null;
2408
+ // add "__proto__" for Object.getPrototypeOf polyfill
2409
+ result[IE_PROTO$1] = O;
2410
+ } else result = NullProtoObject();
2411
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2412
+ };
2413
+
2414
+ var wellKnownSymbol$5 = wellKnownSymbol$g;
2415
+ var create$1 = objectCreate;
2416
+ var defineProperty$1 = objectDefineProperty.f;
2417
+
2418
+ var UNSCOPABLES = wellKnownSymbol$5('unscopables');
2419
+ var ArrayPrototype = Array.prototype;
2420
+
2421
+ // Array.prototype[@@unscopables]
2422
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2423
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
2424
+ defineProperty$1(ArrayPrototype, UNSCOPABLES, {
2425
+ configurable: true,
2426
+ value: create$1(null)
2427
+ });
2428
+ }
2429
+
2430
+ // add a key to Array.prototype[@@unscopables]
2431
+ var addToUnscopables$2 = function (key) {
2432
+ ArrayPrototype[UNSCOPABLES][key] = true;
2433
+ };
2434
+
2435
+ var fails$3 = fails$f;
2436
+
2437
+ var correctPrototypeGetter = !fails$3(function () {
2438
+ function F() { /* empty */ }
2439
+ F.prototype.constructor = null;
2440
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
2441
+ return Object.getPrototypeOf(new F()) !== F.prototype;
2442
+ });
2443
+
2444
+ var hasOwn = hasOwnProperty_1;
2445
+ var isCallable$2 = isCallable$k;
2446
+ var toObject$1 = toObject$4;
2447
+ var sharedKey = sharedKey$3;
2448
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2449
+
2450
+ var IE_PROTO = sharedKey('IE_PROTO');
2451
+ var $Object = Object;
2452
+ var ObjectPrototype = $Object.prototype;
2453
+
2454
+ // `Object.getPrototypeOf` method
2455
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
2456
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
2457
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
2458
+ var object = toObject$1(O);
2459
+ if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
2460
+ var constructor = object.constructor;
2461
+ if (isCallable$2(constructor) && object instanceof constructor) {
2462
+ return constructor.prototype;
2463
+ } return object instanceof $Object ? ObjectPrototype : null;
2464
+ };
2465
+
2466
+ var fails$2 = fails$f;
2467
+ var isCallable$1 = isCallable$k;
2468
+ var isObject$1 = isObject$9;
2469
+ var getPrototypeOf$1 = objectGetPrototypeOf;
2470
+ var defineBuiltIn$1 = defineBuiltIn$5;
2471
+ var wellKnownSymbol$4 = wellKnownSymbol$g;
2472
+
2473
+ var ITERATOR$2 = wellKnownSymbol$4('iterator');
2474
+ var BUGGY_SAFARI_ITERATORS$1 = false;
2475
+
2476
+ // `%IteratorPrototype%` object
2477
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
2478
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
2479
+
2480
+ /* eslint-disable es/no-array-prototype-keys -- safe */
2481
+ if ([].keys) {
2482
+ arrayIterator = [].keys();
2483
+ // Safari 8 has buggy iterators w/o `next`
2484
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
2485
+ else {
2486
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
2487
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
2488
+ }
2489
+ }
2490
+
2491
+ var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$2(function () {
2492
+ var test = {};
2493
+ // FF44- legacy iterators case
2494
+ return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
2495
+ });
2496
+
2497
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
2498
+
2499
+ // `%IteratorPrototype%[@@iterator]()` method
2500
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
2501
+ if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
2502
+ defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
2503
+ return this;
2504
+ });
2505
+ }
2506
+
2507
+ var iteratorsCore = {
2508
+ IteratorPrototype: IteratorPrototype$2,
2509
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
2510
+ };
2511
+
2512
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
2513
+ var create = objectCreate;
2514
+ var createPropertyDescriptor = createPropertyDescriptor$3;
2515
+ var setToStringTag$1 = setToStringTag$3;
2516
+ var Iterators$2 = iterators;
2517
+
2518
+ var returnThis$1 = function () { return this; };
2519
+
2520
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2521
+ var TO_STRING_TAG = NAME + ' Iterator';
2522
+ IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
2523
+ setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
2524
+ Iterators$2[TO_STRING_TAG] = returnThis$1;
2525
+ return IteratorConstructor;
2526
+ };
2527
+
2528
+ var $$3 = _export;
2529
+ var call = functionCall;
2530
+ var FunctionName = functionName;
2531
+ var isCallable = isCallable$k;
2532
+ var createIteratorConstructor = iteratorCreateConstructor;
2533
+ var getPrototypeOf = objectGetPrototypeOf;
2534
+ var setPrototypeOf = objectSetPrototypeOf;
2535
+ var setToStringTag = setToStringTag$3;
2536
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
2537
+ var defineBuiltIn = defineBuiltIn$5;
2538
+ var wellKnownSymbol$3 = wellKnownSymbol$g;
2539
+ var Iterators$1 = iterators;
2540
+ var IteratorsCore = iteratorsCore;
2541
+
2542
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
2543
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
2544
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
2545
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2546
+ var ITERATOR$1 = wellKnownSymbol$3('iterator');
2547
+ var KEYS = 'keys';
2548
+ var VALUES = 'values';
2549
+ var ENTRIES = 'entries';
2550
+
2551
+ var returnThis = function () { return this; };
2552
+
2553
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2554
+ createIteratorConstructor(IteratorConstructor, NAME, next);
2555
+
2556
+ var getIterationMethod = function (KIND) {
2557
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2558
+ if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
2559
+ switch (KIND) {
2560
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
2561
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
2562
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
2563
+ } return function () { return new IteratorConstructor(this); };
2564
+ };
2565
+
2566
+ var TO_STRING_TAG = NAME + ' Iterator';
2567
+ var INCORRECT_VALUES_NAME = false;
2568
+ var IterablePrototype = Iterable.prototype;
2569
+ var nativeIterator = IterablePrototype[ITERATOR$1]
2570
+ || IterablePrototype['@@iterator']
2571
+ || DEFAULT && IterablePrototype[DEFAULT];
2572
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
2573
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
2574
+ var CurrentIteratorPrototype, methods, KEY;
2575
+
2576
+ // fix native
2577
+ if (anyNativeIterator) {
2578
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
2579
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
2580
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
2581
+ if (setPrototypeOf) {
2582
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
2583
+ } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
2584
+ defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
2585
+ }
2586
+ }
2587
+ // Set @@toStringTag to native iterators
2588
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
2589
+ }
2590
+ }
2591
+
2592
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
2593
+ if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
2594
+ if (CONFIGURABLE_FUNCTION_NAME) {
2595
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
2596
+ } else {
2597
+ INCORRECT_VALUES_NAME = true;
2598
+ defaultIterator = function values() { return call(nativeIterator, this); };
2599
+ }
2600
+ }
2601
+
2602
+ // export additional methods
2603
+ if (DEFAULT) {
2604
+ methods = {
2605
+ values: getIterationMethod(VALUES),
2606
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
2607
+ entries: getIterationMethod(ENTRIES)
2608
+ };
2609
+ if (FORCED) for (KEY in methods) {
2610
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2611
+ defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
2612
+ }
2613
+ } else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2614
+ }
2615
+
2616
+ // define iterator
2617
+ if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
2618
+ defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
2619
+ }
2620
+ Iterators$1[NAME] = defaultIterator;
2621
+
2622
+ return methods;
2623
+ };
2624
+
2625
+ // `CreateIterResultObject` abstract operation
2626
+ // https://tc39.es/ecma262/#sec-createiterresultobject
2627
+ var createIterResultObject$1 = function (value, done) {
2628
+ return { value: value, done: done };
2629
+ };
2630
+
2631
+ var toIndexedObject = toIndexedObject$5;
2632
+ var addToUnscopables$1 = addToUnscopables$2;
2633
+ var Iterators = iterators;
2634
+ var InternalStateModule = internalState;
2635
+ var defineProperty = objectDefineProperty.f;
2636
+ var defineIterator = iteratorDefine;
2637
+ var createIterResultObject = createIterResultObject$1;
2638
+ var DESCRIPTORS = descriptors;
2639
+
2640
+ var ARRAY_ITERATOR = 'Array Iterator';
2641
+ var setInternalState = InternalStateModule.set;
2642
+ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
2643
+
2644
+ // `Array.prototype.entries` method
2645
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
2646
+ // `Array.prototype.keys` method
2647
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
2648
+ // `Array.prototype.values` method
2649
+ // https://tc39.es/ecma262/#sec-array.prototype.values
2650
+ // `Array.prototype[@@iterator]` method
2651
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
2652
+ // `CreateArrayIterator` internal method
2653
+ // https://tc39.es/ecma262/#sec-createarrayiterator
2654
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
2655
+ setInternalState(this, {
2656
+ type: ARRAY_ITERATOR,
2657
+ target: toIndexedObject(iterated), // target
2658
+ index: 0, // next index
2659
+ kind: kind // kind
2660
+ });
2661
+ // `%ArrayIteratorPrototype%.next` method
2662
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
2663
+ }, function () {
2664
+ var state = getInternalState(this);
2665
+ var target = state.target;
2666
+ var kind = state.kind;
2667
+ var index = state.index++;
2668
+ if (!target || index >= target.length) {
2669
+ state.target = undefined;
2670
+ return createIterResultObject(undefined, true);
2671
+ }
2672
+ if (kind == 'keys') return createIterResultObject(index, false);
2673
+ if (kind == 'values') return createIterResultObject(target[index], false);
2674
+ return createIterResultObject([index, target[index]], false);
2675
+ }, 'values');
2676
+
2677
+ // argumentsList[@@iterator] is %ArrayProto_values%
2678
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
2679
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
2680
+ var values = Iterators.Arguments = Iterators.Array;
2681
+
2682
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2683
+ addToUnscopables$1('keys');
2684
+ addToUnscopables$1('values');
2685
+ addToUnscopables$1('entries');
2686
+
2687
+ // V8 ~ Chrome 45- bug
2688
+ if (DESCRIPTORS && values.name !== 'values') try {
2689
+ defineProperty(values, 'name', { value: 'values' });
2690
+ } catch (error) { /* empty */ }
2691
+
2692
+ // iterable DOM collections
2693
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2694
+ var domIterables = {
2695
+ CSSRuleList: 0,
2696
+ CSSStyleDeclaration: 0,
2697
+ CSSValueList: 0,
2698
+ ClientRectList: 0,
2699
+ DOMRectList: 0,
2700
+ DOMStringList: 0,
2701
+ DOMTokenList: 1,
2702
+ DataTransferItemList: 0,
2703
+ FileList: 0,
2704
+ HTMLAllCollection: 0,
2705
+ HTMLCollection: 0,
2706
+ HTMLFormElement: 0,
2707
+ HTMLSelectElement: 0,
2708
+ MediaList: 0,
2709
+ MimeTypeArray: 0,
2710
+ NamedNodeMap: 0,
2711
+ NodeList: 1,
2712
+ PaintRequestList: 0,
2713
+ Plugin: 0,
2714
+ PluginArray: 0,
2715
+ SVGLengthList: 0,
2716
+ SVGNumberList: 0,
2717
+ SVGPathSegList: 0,
2718
+ SVGPointList: 0,
2719
+ SVGStringList: 0,
2720
+ SVGTransformList: 0,
2721
+ SourceBufferList: 0,
2722
+ StyleSheetList: 0,
2723
+ TextTrackCueList: 0,
2724
+ TextTrackList: 0,
2725
+ TouchList: 0
2726
+ };
2727
+
2728
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2729
+ var documentCreateElement = documentCreateElement$2;
2730
+
2731
+ var classList = documentCreateElement('span').classList;
2732
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2733
+
2734
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2735
+
2736
+ var global$1 = global$j;
2737
+ var DOMIterables = domIterables;
2738
+ var DOMTokenListPrototype = domTokenListPrototype;
2739
+ var ArrayIteratorMethods = es_array_iterator;
2740
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
2741
+ var wellKnownSymbol$2 = wellKnownSymbol$g;
2742
+
2743
+ var ITERATOR = wellKnownSymbol$2('iterator');
2744
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
2745
+ var ArrayValues = ArrayIteratorMethods.values;
2746
+
2747
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2748
+ if (CollectionPrototype) {
2749
+ // some Chrome versions have non-configurable methods on DOMTokenList
2750
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2751
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2752
+ } catch (error) {
2753
+ CollectionPrototype[ITERATOR] = ArrayValues;
2754
+ }
2755
+ if (!CollectionPrototype[TO_STRING_TAG]) {
2756
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
2757
+ }
2758
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2759
+ // some Chrome versions have non-configurable methods on DOMTokenList
2760
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
2761
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2762
+ } catch (error) {
2763
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2764
+ }
2765
+ }
2766
+ }
2767
+ };
2768
+
2769
+ for (var COLLECTION_NAME in DOMIterables) {
2770
+ handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
2771
+ }
2772
+
2773
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
2774
+
2775
+ var $$2 = _export;
2776
+ var $includes = arrayIncludes.includes;
2777
+ var fails$1 = fails$f;
2778
+ var addToUnscopables = addToUnscopables$2;
2779
+
2780
+ // FF99+ bug
2781
+ var BROKEN_ON_SPARSE = fails$1(function () {
2782
+ return !Array(1).includes();
2783
+ });
2784
+
2785
+ // `Array.prototype.includes` method
2786
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
2787
+ $$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2788
+ includes: function includes(el /* , fromIndex = 0 */) {
2789
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2790
+ }
2791
+ });
2792
+
2793
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2794
+ addToUnscopables('includes');
2795
+
2796
+ var isObject = isObject$9;
2797
+ var classof$1 = classofRaw$2;
2798
+ var wellKnownSymbol$1 = wellKnownSymbol$g;
2799
+
2800
+ var MATCH$1 = wellKnownSymbol$1('match');
2801
+
2802
+ // `IsRegExp` abstract operation
2803
+ // https://tc39.es/ecma262/#sec-isregexp
2804
+ var isRegexp = function (it) {
2805
+ var isRegExp;
2806
+ return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
2807
+ };
2808
+
2809
+ var isRegExp = isRegexp;
2810
+
2811
+ var $TypeError$1 = TypeError;
2812
+
2813
+ var notARegexp = function (it) {
2814
+ if (isRegExp(it)) {
2815
+ throw $TypeError$1("The method doesn't accept regular expressions");
2816
+ } return it;
2817
+ };
2818
+
2819
+ var classof = classof$4;
2820
+
2821
+ var $String = String;
2822
+
2823
+ var toString$1 = function (argument) {
2824
+ if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2825
+ return $String(argument);
2826
+ };
2827
+
2828
+ var wellKnownSymbol = wellKnownSymbol$g;
2829
+
2830
+ var MATCH = wellKnownSymbol('match');
2831
+
2832
+ var correctIsRegexpLogic = function (METHOD_NAME) {
2833
+ var regexp = /./;
2834
+ try {
2835
+ '/./'[METHOD_NAME](regexp);
2836
+ } catch (error1) {
2837
+ try {
2838
+ regexp[MATCH] = false;
2839
+ return '/./'[METHOD_NAME](regexp);
2840
+ } catch (error2) { /* empty */ }
2841
+ } return false;
2842
+ };
2843
+
2844
+ var $$1 = _export;
2845
+ var uncurryThis = functionUncurryThis;
2846
+ var notARegExp = notARegexp;
2847
+ var requireObjectCoercible = requireObjectCoercible$3;
2848
+ var toString = toString$1;
2849
+ var correctIsRegExpLogic = correctIsRegexpLogic;
2850
+
2851
+ var stringIndexOf = uncurryThis(''.indexOf);
2852
+
2853
+ // `String.prototype.includes` method
2854
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
2855
+ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2856
+ includes: function includes(searchString /* , position = 0 */) {
2857
+ return !!~stringIndexOf(
2858
+ toString(requireObjectCoercible(this)),
2859
+ toString(notARegExp(searchString)),
2860
+ arguments.length > 1 ? arguments[1] : undefined
2861
+ );
2862
+ }
2863
+ });
2864
+
2865
+ var aCallable = aCallable$8;
2866
+ var toObject = toObject$4;
2867
+ var IndexedObject = indexedObject;
2868
+ var lengthOfArrayLike = lengthOfArrayLike$3;
2869
+
2870
+ var $TypeError = TypeError;
2871
+
2872
+ // `Array.prototype.{ reduce, reduceRight }` methods implementation
2873
+ var createMethod = function (IS_RIGHT) {
2874
+ return function (that, callbackfn, argumentsLength, memo) {
2875
+ aCallable(callbackfn);
2876
+ var O = toObject(that);
2877
+ var self = IndexedObject(O);
2878
+ var length = lengthOfArrayLike(O);
2879
+ var index = IS_RIGHT ? length - 1 : 0;
2880
+ var i = IS_RIGHT ? -1 : 1;
2881
+ if (argumentsLength < 2) while (true) {
2882
+ if (index in self) {
2883
+ memo = self[index];
2884
+ index += i;
2885
+ break;
2886
+ }
2887
+ index += i;
2888
+ if (IS_RIGHT ? index < 0 : length <= index) {
2889
+ throw $TypeError('Reduce of empty array with no initial value');
2890
+ }
2891
+ }
2892
+ for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
2893
+ memo = callbackfn(memo, self[index], index, O);
2894
+ }
2895
+ return memo;
2896
+ };
2897
+ };
2898
+
2899
+ var arrayReduce = {
2900
+ // `Array.prototype.reduce` method
2901
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
2902
+ left: createMethod(false),
2903
+ // `Array.prototype.reduceRight` method
2904
+ // https://tc39.es/ecma262/#sec-array.prototype.reduceright
2905
+ right: createMethod(true)
2906
+ };
2907
+
2908
+ var fails = fails$f;
2909
+
2910
+ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2911
+ var method = [][METHOD_NAME];
2912
+ return !!method && fails(function () {
2913
+ // eslint-disable-next-line no-useless-call -- required for testing
2914
+ method.call(null, argument || function () { return 1; }, 1);
2915
+ });
2916
+ };
2917
+
2918
+ var $ = _export;
2919
+ var $reduce = arrayReduce.left;
2920
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
2921
+ var CHROME_VERSION = engineV8Version;
2922
+ var IS_NODE = engineIsNode;
2923
+
2924
+ var STRICT_METHOD = arrayMethodIsStrict('reduce');
2925
+ // Chrome 80-82 has a critical bug
2926
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
2927
+ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
2928
+
2929
+ // `Array.prototype.reduce` method
2930
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
2931
+ $({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
2932
+ reduce: function reduce(callbackfn /* , initialValue */) {
2933
+ var length = arguments.length;
2934
+ return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
2935
+ }
2936
+ });
2937
+
2308
2938
  /******************************************************************************
2309
2939
  Copyright (c) Microsoft Corporation.
2310
2940
 
@@ -2320,6 +2950,18 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2320
2950
  PERFORMANCE OF THIS SOFTWARE.
2321
2951
  ***************************************************************************** */
2322
2952
 
2953
+ function __rest(s, e) {
2954
+ var t = {};
2955
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2956
+ t[p] = s[p];
2957
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2958
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2959
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2960
+ t[p[i]] = s[p[i]];
2961
+ }
2962
+ return t;
2963
+ }
2964
+
2323
2965
  function __awaiter(thisArg, _arguments, P, generator) {
2324
2966
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2325
2967
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -2380,6 +3022,68 @@ class WidgetContainer {
2380
3022
  }
2381
3023
  }
2382
3024
 
3025
+ const PreviewRenderPlugin = ctx => {
3026
+ const PrevivewPluginWrapper = props => {
3027
+ const [pluginApi, setPluginApi] = react.useState(ctx.pluginApi);
3028
+ const {
3029
+ children,
3030
+ setComponentProps,
3031
+ experiences,
3032
+ baseline
3033
+ } = props;
3034
+ const {
3035
+ current: id
3036
+ } = react.useRef(uuid.v4());
3037
+ react.useEffect(() => {
3038
+ ctx.registerSetPluginApi(id, setPluginApi);
3039
+ return () => {
3040
+ ctx.unregisterSetPluginApi(id);
3041
+ };
3042
+ }, [id]);
3043
+ react.useEffect(() => {
3044
+ const overWrittenExperienceIds = Object.keys(pluginApi.experienceVariantIndexOverwrites);
3045
+ const overWrittenExperience = experiences.find(experience => {
3046
+ return overWrittenExperienceIds.includes(experience.id);
3047
+ });
3048
+ if (!overWrittenExperience) {
3049
+ return;
3050
+ }
3051
+ const baselineComponent = overWrittenExperience.components.find(component => component.baseline.id === baseline.id);
3052
+ if (!baselineComponent) {
3053
+ return;
3054
+ }
3055
+ const allVariants = [baseline, ...baselineComponent.variants];
3056
+ const variantIndex = pluginApi.experienceVariantIndexOverwrites[overWrittenExperience.id];
3057
+ const variant = allVariants[variantIndex];
3058
+ if (!variant) {
3059
+ return;
3060
+ }
3061
+ setComponentProps(Object.assign({}, variant));
3062
+ }, [experiences, baseline, setComponentProps, pluginApi.experienceVariantIndexOverwrites]);
3063
+ return jsxRuntime.jsx(jsxRuntime.Fragment, {
3064
+ children: children
3065
+ });
3066
+ };
3067
+ return PrevivewPluginWrapper;
3068
+ };
3069
+
3070
+ class PreviewRenderPluginContext {
3071
+ constructor(pluginApi) {
3072
+ this.pluginApi = pluginApi;
3073
+ this.setPluginApiCallbacks = new Map();
3074
+ this.registerSetPluginApi = (id, setPluginApi) => {
3075
+ this.setPluginApiCallbacks.set(id, setPluginApi);
3076
+ };
3077
+ this.unregisterSetPluginApi = id => {
3078
+ this.setPluginApiCallbacks.delete(id);
3079
+ };
3080
+ this.setPluginApi = pluginApi => {
3081
+ this.pluginApi = pluginApi;
3082
+ this.setPluginApiCallbacks.forEach(callback => callback(pluginApi));
3083
+ };
3084
+ }
3085
+ }
3086
+
2383
3087
  var _a;
2384
3088
  class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlugin {
2385
3089
  constructor(options) {
@@ -2387,114 +3091,236 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
2387
3091
  this.options = options;
2388
3092
  this.name = 'ninetailed:preview' + Math.random();
2389
3093
  this.isOpen = false;
2390
- this.activatedAudiences = [];
2391
- this.audiences = [];
2392
- this.initialize = ({
2393
- instance
2394
- }) => __awaiter(this, void 0, void 0, function* () {
3094
+ this.experiences = [];
3095
+ this.audienceOverwrites = {};
3096
+ this.experienceVariantIndexOverwrites = {};
3097
+ this.profile = null;
3098
+ this.container = null;
3099
+ this.bridge = null;
3100
+ this.renderPluginContext = new PreviewRenderPluginContext(this.pluginApi);
3101
+ this.initialize = () => __awaiter(this, void 0, void 0, function* () {
2395
3102
  var _b;
2396
3103
  if (typeof window !== 'undefined') {
2397
3104
  const {
2398
3105
  PreviewBridge
2399
3106
  } = yield Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@ninetailed/experience.js-preview-bridge')); });
2400
- const container = new WidgetContainer({
3107
+ this.container = new WidgetContainer({
2401
3108
  ui: this.options.ui
2402
3109
  });
2403
- const preview = PreviewBridge({
3110
+ this.bridge = PreviewBridge({
2404
3111
  url: this.options.url
2405
3112
  });
2406
- preview.render(container.element);
2407
- const open = () => {
2408
- container.open();
2409
- this.isOpen = true;
2410
- instance.dispatch({
2411
- type: 'preview:change'
2412
- });
2413
- };
2414
- const close = () => {
2415
- container.close();
2416
- setTimeout(() => {
2417
- this.isOpen = false;
2418
- instance.dispatch({
2419
- type: 'preview:change'
2420
- });
2421
- }, 700);
2422
- };
2423
- const toggle = () => {
2424
- if (this.isOpen) {
2425
- close();
2426
- } else {
2427
- open();
2428
- }
2429
- };
2430
- const activateAudience = id => {
2431
- this.activatedAudiences = union__default["default"](this.activatedAudiences, [id]);
2432
- instance.dispatch({
2433
- type: experience_js.PROFILE_CHANGE,
2434
- profile: this.lastProfile
2435
- });
2436
- };
2437
- const deactivateAudience = id => {
2438
- this.activatedAudiences = this.activatedAudiences.filter(activatedAudience => activatedAudience !== id);
2439
- instance.dispatch({
2440
- type: experience_js.PROFILE_CHANGE,
2441
- profile: this.lastProfile
2442
- });
2443
- };
2444
- const buildPreviewPlugin = () => ({
2445
- open: () => open(),
2446
- close: () => close(),
2447
- toggle: () => toggle(),
2448
- isOpen: this.isOpen,
2449
- activateAudience: id => activateAudience(id),
2450
- deactivateAudience: id => deactivateAudience(id),
2451
- activatedAudiences: this.activatedAudiences,
2452
- audiences: this.audiences
2453
- });
3113
+ this.bridge.render(this.container.element);
2454
3114
  window.ninetailed = Object.assign({}, window.ninetailed, {
2455
3115
  plugins: Object.assign(Object.assign({}, (_b = window.ninetailed) === null || _b === void 0 ? void 0 : _b.plugins), {
2456
- preview: buildPreviewPlugin()
3116
+ preview: this.windowApi
2457
3117
  })
2458
3118
  });
2459
- const buildNinetailed = () => {
2460
- var _b;
2461
- return Object.assign({}, window.ninetailed, {
2462
- version: '1.5.1',
2463
- plugins: Object.assign(Object.assign({}, (_b = window.ninetailed) === null || _b === void 0 ? void 0 : _b.plugins), {
2464
- preview: buildPreviewPlugin()
2465
- }),
2466
- credentials: {
2467
- clientId: this.options.clientId,
2468
- secret: this.options.secret,
2469
- environment: this.options.environment
2470
- }
2471
- });
2472
- };
2473
- instance.on(experience_js.PROFILE_CHANGE, () => {
2474
- preview.updateProps({
2475
- props: buildNinetailed()
2476
- });
2477
- });
2478
- instance.on('preview:change', () => {
2479
- preview.updateProps({
2480
- props: buildNinetailed()
2481
- });
3119
+ this.bridge.updateProps({
3120
+ props: this.pluginApi
2482
3121
  });
2483
3122
  }
2484
3123
  });
3124
+ this.getRenderWrapper = () => {
3125
+ return this.renderPluginComponent;
3126
+ };
2485
3127
  this.loaded = () => true;
2486
3128
  this[_a] = ({
2487
3129
  payload
2488
3130
  }) => {
3131
+ if (payload === null || payload === void 0 ? void 0 : payload.profile) {
3132
+ this.onProfileChange(payload.profile);
3133
+ }
3134
+ };
3135
+ this.onChange = () => {
2489
3136
  var _b;
2490
- this.audiences = ((_b = payload === null || payload === void 0 ? void 0 : payload.profile) === null || _b === void 0 ? void 0 : _b.audiences) || [];
2491
- this.lastProfile = payload.profile;
2492
- return Object.assign(Object.assign({}, payload), {
2493
- profile: Object.assign(Object.assign({}, payload.profile), {
2494
- audiences: union__default["default"](this.audiences, this.activatedAudiences)
3137
+ Object.assign({}, window.ninetailed, {
3138
+ plugins: Object.assign(Object.assign({}, (_b = window.ninetailed) === null || _b === void 0 ? void 0 : _b.plugins), {
3139
+ preview: this.windowApi
2495
3140
  })
2496
3141
  });
3142
+ this.bridge.updateProps({
3143
+ props: this.pluginApi
3144
+ });
3145
+ if (this.renderPluginContext.setPluginApi) {
3146
+ this.renderPluginContext.setPluginApi(this.pluginApi);
3147
+ }
2497
3148
  };
3149
+ this.onProfileChange = profile => {
3150
+ this.profile = profile;
3151
+ this.onChange();
3152
+ };
3153
+ this.experiences = options.experiences || [];
3154
+ this.renderPluginComponent = PreviewRenderPlugin(this.renderPluginContext);
3155
+ }
3156
+ open() {
3157
+ var _b;
3158
+ (_b = this.container) === null || _b === void 0 ? void 0 : _b.open();
3159
+ this.isOpen = true;
3160
+ this.onChange();
3161
+ }
3162
+ close() {
3163
+ var _b;
3164
+ (_b = this.container) === null || _b === void 0 ? void 0 : _b.close();
3165
+ setTimeout(() => {
3166
+ this.isOpen = false;
3167
+ this.onChange();
3168
+ }, 700);
3169
+ }
3170
+ toggle() {
3171
+ if (this.isOpen) {
3172
+ this.close();
3173
+ } else {
3174
+ this.open();
3175
+ }
3176
+ }
3177
+ activateAudience(id) {
3178
+ if (!this.isKnownAudience(id)) {
3179
+ console.log(`You cannot activate an unkown audience (id: ${id}).`);
3180
+ return;
3181
+ }
3182
+ this.audienceOverwrites = Object.assign(Object.assign({}, this.audienceOverwrites), {
3183
+ [id]: true
3184
+ });
3185
+ this.onChange();
3186
+ }
3187
+ deactivateAudience(id) {
3188
+ if (!this.isKnownAudience(id)) {
3189
+ console.log(`You cannot deactivate an unkown audience (id: ${id}). How did you get it in the first place?`);
3190
+ return;
3191
+ }
3192
+ this.audienceOverwrites = Object.assign(Object.assign({}, this.audienceOverwrites), {
3193
+ [id]: false
3194
+ });
3195
+ this.onChange();
3196
+ }
3197
+ resetAudience(id) {
3198
+ if (!this.isKnownAudience(id)) {
3199
+ console.log(`You cannot reset an unkown audience (id: ${id}). How did you get it in the first place?`);
3200
+ return;
3201
+ }
3202
+ const _b = this.audienceOverwrites,
3203
+ _c = id;
3204
+ _b[_c];
3205
+ const audienceOverwrites = __rest(_b, [typeof _c === "symbol" ? _c : _c + ""]);
3206
+ this.audienceOverwrites = audienceOverwrites;
3207
+ this.onChange();
3208
+ }
3209
+ selectVariant({
3210
+ experienceId,
3211
+ variantIndex
3212
+ }) {
3213
+ const experience = this.experiences.find(experience => experience.id === experienceId);
3214
+ if (!experience) {
3215
+ console.log(`You cannot active a variant for an unknown experience (id: ${experienceId})`);
3216
+ return;
3217
+ }
3218
+ if (experience.audience &&
3219
+ // if the experience has no audience, it's a all visitors experience
3220
+ !this.activeAudiences.some(id => {
3221
+ var _b;
3222
+ return id === ((_b = experience.audience) === null || _b === void 0 ? void 0 : _b.id);
3223
+ })) {
3224
+ console.log(`You cannot active a variant for an experience (id: ${experienceId}), which is not in the active audiences.`);
3225
+ return;
3226
+ }
3227
+ const isValidIndex = experience.components.map(component => component.variants.length + 1).every(length => length > variantIndex);
3228
+ if (!isValidIndex) {
3229
+ console.log(`You cannot activate a variant at index ${variantIndex} for the experience (id: ${experienceId}). As not all components have that many variants.`);
3230
+ return;
3231
+ }
3232
+ this.experienceVariantIndexOverwrites = Object.assign(Object.assign({}, this.experienceVariantIndexOverwrites), {
3233
+ [experienceId]: variantIndex
3234
+ });
3235
+ this.onChange();
3236
+ }
3237
+ resetExperience(experienceId) {
3238
+ const _b = this.experienceVariantIndexOverwrites,
3239
+ _c = experienceId;
3240
+ _b[_c];
3241
+ const experienceVariantIndexOverwrites = __rest(_b, [typeof _c === "symbol" ? _c : _c + ""]);
3242
+ this.experienceVariantIndexOverwrites = experienceVariantIndexOverwrites;
3243
+ this.onChange();
3244
+ }
3245
+ reset() {
3246
+ if (typeof window !== 'undefined' && window.ninetailed && typeof window.ninetailed.reset === 'function') {
3247
+ window.ninetailed.reset();
3248
+ }
3249
+ }
3250
+ get pluginApi() {
3251
+ var _b;
3252
+ return {
3253
+ version: '2.0.0',
3254
+ open: this.open.bind(this),
3255
+ close: this.close.bind(this),
3256
+ toggle: this.toggle.bind(this),
3257
+ isOpen: this.isOpen,
3258
+ activateAudience: this.activateAudience.bind(this),
3259
+ deactivateAudience: this.deactivateAudience.bind(this),
3260
+ resetAudience: this.resetAudience.bind(this),
3261
+ apiAudiences: ((_b = this.profile) === null || _b === void 0 ? void 0 : _b.audiences) || [],
3262
+ audienceOverwrites: this.audienceOverwrites,
3263
+ activeAudiences: this.activeAudiences,
3264
+ setExperienceVariant: this.selectVariant.bind(this),
3265
+ resetExperience: this.resetExperience.bind(this),
3266
+ experienceVariantIndexes: Object.assign(Object.assign({}, this.experienceVariantIndexes), this.experienceVariantIndexOverwrites),
3267
+ experienceVariantIndexOverwrites: this.experienceVariantIndexOverwrites,
3268
+ reset: this.reset.bind(this),
3269
+ experiences: this.experiences
3270
+ };
3271
+ }
3272
+ get windowApi() {
3273
+ return {
3274
+ version: '2.0.0',
3275
+ open: this.open.bind(this),
3276
+ close: this.close.bind(this),
3277
+ toggle: this.toggle.bind(this),
3278
+ activateAudience: this.activateAudience.bind(this),
3279
+ deactivateAudience: this.deactivateAudience.bind(this),
3280
+ resetAudience: this.resetAudience.bind(this),
3281
+ activeAudiences: this.activeAudiences,
3282
+ setExperienceVariant: this.selectVariant.bind(this),
3283
+ resetExperience: this.resetExperience.bind(this),
3284
+ experienceVariantIndexes: Object.assign(Object.assign({}, this.experienceVariantIndexes), this.experienceVariantIndexOverwrites)
3285
+ };
3286
+ }
3287
+ isKnownAudience(id) {
3288
+ return this.potentialAudiences.some(audience => audience.id === id);
3289
+ }
3290
+ get potentialAudiences() {
3291
+ return this.experiences.map(experience => experience.audience).filter(audience => !!audience);
3292
+ }
3293
+ get activeAudiences() {
3294
+ var _b;
3295
+ const deactivatedAudiences = Object.entries(this.audienceOverwrites).filter(([id, active]) => !active).map(([id]) => id);
3296
+ const activatedAudiences = Object.entries(this.audienceOverwrites).filter(([id, active]) => active).map(([id]) => id);
3297
+ return [...(((_b = this.profile) === null || _b === void 0 ? void 0 : _b.audiences) || []), ...activatedAudiences].filter(id => !deactivatedAudiences.includes(id));
3298
+ }
3299
+ get experienceVariantIndexes() {
3300
+ const profile = this.profile;
3301
+ if (!profile) {
3302
+ return {};
3303
+ }
3304
+ const experiments = this.experiences.filter(experience => experience.type === 'nt_experiment');
3305
+ const activeExperiments = experience_js.selectActiveExperiments(experiments, profile);
3306
+ const eligibleExperiences = experience_js.selectEligibleExperiences({
3307
+ experiences: this.experiences,
3308
+ activeExperiments
3309
+ });
3310
+ const matchedExperiences = eligibleExperiences.filter(experience => experience_js.isExperienceMatch({
3311
+ experience,
3312
+ activeExperiments,
3313
+ profile
3314
+ }));
3315
+ return matchedExperiences.reduce((acc, experience) => {
3316
+ const distribution = experience_js.selectDistribution({
3317
+ experience,
3318
+ profile
3319
+ });
3320
+ return Object.assign(Object.assign({}, acc), {
3321
+ [experience.id]: distribution.index
3322
+ });
3323
+ }, {});
2498
3324
  }
2499
3325
  }
2500
3326
  _a = experience_js.PROFILE_CHANGE;