@ninetailed/experience.js-react 6.3.0 → 6.4.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,1094 +1,11 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import React, { createContext, useMemo, useContext, useState, useRef, useEffect, createElement as createElement$1, forwardRef } from 'react';
2
+ import React, { createContext, useMemo, useContext, useState, useRef, useEffect, createElement, forwardRef } from 'react';
3
3
  import { Ninetailed, selectVariant, makeExperienceSelectMiddleware, selectHasExperienceVariants, selectExperience, selectExperienceVariant } from '@ninetailed/experience.js';
4
4
  import { logger, isBrowser } from '@ninetailed/experience.js-shared';
5
- import { isEqual, get as get$1 } from 'radash';
5
+ import { isEqual, get } from 'radash';
6
6
  import { useInView } from 'react-intersection-observer';
7
7
  import { isForwardRef } from 'react-is';
8
8
 
9
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
-
11
- var check = function (it) {
12
- return it && it.Math == Math && it;
13
- };
14
-
15
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
16
- var global$c =
17
- // eslint-disable-next-line es/no-global-this -- safe
18
- check(typeof globalThis == 'object' && globalThis) ||
19
- check(typeof window == 'object' && window) ||
20
- // eslint-disable-next-line no-restricted-globals -- safe
21
- check(typeof self == 'object' && self) ||
22
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
23
- // eslint-disable-next-line no-new-func -- fallback
24
- (function () { return this; })() || Function('return this')();
25
-
26
- var objectGetOwnPropertyDescriptor = {};
27
-
28
- var fails$c = function (exec) {
29
- try {
30
- return !!exec();
31
- } catch (error) {
32
- return true;
33
- }
34
- };
35
-
36
- var fails$b = fails$c;
37
-
38
- // Detect IE8's incomplete defineProperty implementation
39
- var descriptors = !fails$b(function () {
40
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
41
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
42
- });
43
-
44
- var fails$a = fails$c;
45
-
46
- var functionBindNative = !fails$a(function () {
47
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
48
- var test = (function () { /* empty */ }).bind();
49
- // eslint-disable-next-line no-prototype-builtins -- safe
50
- return typeof test != 'function' || test.hasOwnProperty('prototype');
51
- });
52
-
53
- var NATIVE_BIND$1 = functionBindNative;
54
-
55
- var call$6 = Function.prototype.call;
56
-
57
- var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
58
- return call$6.apply(call$6, arguments);
59
- };
60
-
61
- var objectPropertyIsEnumerable = {};
62
-
63
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
64
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
65
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
66
-
67
- // Nashorn ~ JDK8 bug
68
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
69
-
70
- // `Object.prototype.propertyIsEnumerable` method implementation
71
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
72
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
73
- var descriptor = getOwnPropertyDescriptor$1(this, V);
74
- return !!descriptor && descriptor.enumerable;
75
- } : $propertyIsEnumerable;
76
-
77
- var createPropertyDescriptor$3 = function (bitmap, value) {
78
- return {
79
- enumerable: !(bitmap & 1),
80
- configurable: !(bitmap & 2),
81
- writable: !(bitmap & 4),
82
- value: value
83
- };
84
- };
85
-
86
- var NATIVE_BIND = functionBindNative;
87
-
88
- var FunctionPrototype$1 = Function.prototype;
89
- var call$5 = FunctionPrototype$1.call;
90
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
91
-
92
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
93
- return function () {
94
- return call$5.apply(fn, arguments);
95
- };
96
- };
97
-
98
- var uncurryThis$9 = functionUncurryThis;
99
-
100
- var toString$1 = uncurryThis$9({}.toString);
101
- var stringSlice = uncurryThis$9(''.slice);
102
-
103
- var classofRaw = function (it) {
104
- return stringSlice(toString$1(it), 8, -1);
105
- };
106
-
107
- var uncurryThis$8 = functionUncurryThis;
108
- var fails$9 = fails$c;
109
- var classof$1 = classofRaw;
110
-
111
- var $Object$3 = Object;
112
- var split = uncurryThis$8(''.split);
113
-
114
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
115
- var indexedObject = fails$9(function () {
116
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
117
- // eslint-disable-next-line no-prototype-builtins -- safe
118
- return !$Object$3('z').propertyIsEnumerable(0);
119
- }) ? function (it) {
120
- return classof$1(it) == 'String' ? split(it, '') : $Object$3(it);
121
- } : $Object$3;
122
-
123
- // we can't use just `it == null` since of `document.all` special case
124
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
125
- var isNullOrUndefined$2 = function (it) {
126
- return it === null || it === undefined;
127
- };
128
-
129
- var isNullOrUndefined$1 = isNullOrUndefined$2;
130
-
131
- var $TypeError$7 = TypeError;
132
-
133
- // `RequireObjectCoercible` abstract operation
134
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
135
- var requireObjectCoercible$2 = function (it) {
136
- if (isNullOrUndefined$1(it)) throw $TypeError$7("Can't call method on " + it);
137
- return it;
138
- };
139
-
140
- // toObject with fallback for non-array-like ES3 strings
141
- var IndexedObject$2 = indexedObject;
142
- var requireObjectCoercible$1 = requireObjectCoercible$2;
143
-
144
- var toIndexedObject$5 = function (it) {
145
- return IndexedObject$2(requireObjectCoercible$1(it));
146
- };
147
-
148
- var documentAll$2 = typeof document == 'object' && document.all;
149
-
150
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
151
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
152
-
153
- var documentAll_1 = {
154
- all: documentAll$2,
155
- IS_HTMLDDA: IS_HTMLDDA
156
- };
157
-
158
- var $documentAll$1 = documentAll_1;
159
-
160
- var documentAll$1 = $documentAll$1.all;
161
-
162
- // `IsCallable` abstract operation
163
- // https://tc39.es/ecma262/#sec-iscallable
164
- var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
165
- return typeof argument == 'function' || argument === documentAll$1;
166
- } : function (argument) {
167
- return typeof argument == 'function';
168
- };
169
-
170
- var isCallable$d = isCallable$e;
171
- var $documentAll = documentAll_1;
172
-
173
- var documentAll = $documentAll.all;
174
-
175
- var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
176
- return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
177
- } : function (it) {
178
- return typeof it == 'object' ? it !== null : isCallable$d(it);
179
- };
180
-
181
- var global$b = global$c;
182
- var isCallable$c = isCallable$e;
183
-
184
- var aFunction = function (argument) {
185
- return isCallable$c(argument) ? argument : undefined;
186
- };
187
-
188
- var getBuiltIn$4 = function (namespace, method) {
189
- return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
190
- };
191
-
192
- var uncurryThis$7 = functionUncurryThis;
193
-
194
- var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
195
-
196
- var getBuiltIn$3 = getBuiltIn$4;
197
-
198
- var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
199
-
200
- var global$a = global$c;
201
- var userAgent = engineUserAgent;
202
-
203
- var process = global$a.process;
204
- var Deno = global$a.Deno;
205
- var versions = process && process.versions || Deno && Deno.version;
206
- var v8 = versions && versions.v8;
207
- var match, version;
208
-
209
- if (v8) {
210
- match = v8.split('.');
211
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
212
- // but their correct versions are not interesting for us
213
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
214
- }
215
-
216
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
217
- // so check `userAgent` even if `.v8` exists, but 0
218
- if (!version && userAgent) {
219
- match = userAgent.match(/Edge\/(\d+)/);
220
- if (!match || match[1] >= 74) {
221
- match = userAgent.match(/Chrome\/(\d+)/);
222
- if (match) version = +match[1];
223
- }
224
- }
225
-
226
- var engineV8Version = version;
227
-
228
- /* eslint-disable es/no-symbol -- required for testing */
229
-
230
- var V8_VERSION = engineV8Version;
231
- var fails$8 = fails$c;
232
-
233
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
234
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
235
- var symbol = Symbol();
236
- // Chrome 38 Symbol has incorrect toString conversion
237
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
238
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
239
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
240
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
241
- });
242
-
243
- /* eslint-disable es/no-symbol -- required for testing */
244
-
245
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
246
-
247
- var useSymbolAsUid = NATIVE_SYMBOL$1
248
- && !Symbol.sham
249
- && typeof Symbol.iterator == 'symbol';
250
-
251
- var getBuiltIn$2 = getBuiltIn$4;
252
- var isCallable$b = isCallable$e;
253
- var isPrototypeOf = objectIsPrototypeOf;
254
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
255
-
256
- var $Object$2 = Object;
257
-
258
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
259
- return typeof it == 'symbol';
260
- } : function (it) {
261
- var $Symbol = getBuiltIn$2('Symbol');
262
- return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
263
- };
264
-
265
- var $String$2 = String;
266
-
267
- var tryToString$1 = function (argument) {
268
- try {
269
- return $String$2(argument);
270
- } catch (error) {
271
- return 'Object';
272
- }
273
- };
274
-
275
- var isCallable$a = isCallable$e;
276
- var tryToString = tryToString$1;
277
-
278
- var $TypeError$6 = TypeError;
279
-
280
- // `Assert: IsCallable(argument) is true`
281
- var aCallable$2 = function (argument) {
282
- if (isCallable$a(argument)) return argument;
283
- throw $TypeError$6(tryToString(argument) + ' is not a function');
284
- };
285
-
286
- var aCallable$1 = aCallable$2;
287
- var isNullOrUndefined = isNullOrUndefined$2;
288
-
289
- // `GetMethod` abstract operation
290
- // https://tc39.es/ecma262/#sec-getmethod
291
- var getMethod$1 = function (V, P) {
292
- var func = V[P];
293
- return isNullOrUndefined(func) ? undefined : aCallable$1(func);
294
- };
295
-
296
- var call$4 = functionCall;
297
- var isCallable$9 = isCallable$e;
298
- var isObject$5 = isObject$6;
299
-
300
- var $TypeError$5 = TypeError;
301
-
302
- // `OrdinaryToPrimitive` abstract operation
303
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
304
- var ordinaryToPrimitive$1 = function (input, pref) {
305
- var fn, val;
306
- if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
307
- if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
308
- if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
309
- throw $TypeError$5("Can't convert object to primitive value");
310
- };
311
-
312
- var shared$3 = {exports: {}};
313
-
314
- var global$9 = global$c;
315
-
316
- // eslint-disable-next-line es/no-object-defineproperty -- safe
317
- var defineProperty$5 = Object.defineProperty;
318
-
319
- var defineGlobalProperty$3 = function (key, value) {
320
- try {
321
- defineProperty$5(global$9, key, { value: value, configurable: true, writable: true });
322
- } catch (error) {
323
- global$9[key] = value;
324
- } return value;
325
- };
326
-
327
- var global$8 = global$c;
328
- var defineGlobalProperty$2 = defineGlobalProperty$3;
329
-
330
- var SHARED = '__core-js_shared__';
331
- var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
332
-
333
- var sharedStore = store$3;
334
-
335
- var store$2 = sharedStore;
336
-
337
- (shared$3.exports = function (key, value) {
338
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
339
- })('versions', []).push({
340
- version: '3.26.1',
341
- mode: 'global',
342
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
343
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
344
- source: 'https://github.com/zloirock/core-js'
345
- });
346
-
347
- var requireObjectCoercible = requireObjectCoercible$2;
348
-
349
- var $Object$1 = Object;
350
-
351
- // `ToObject` abstract operation
352
- // https://tc39.es/ecma262/#sec-toobject
353
- var toObject$4 = function (argument) {
354
- return $Object$1(requireObjectCoercible(argument));
355
- };
356
-
357
- var uncurryThis$6 = functionUncurryThis;
358
- var toObject$3 = toObject$4;
359
-
360
- var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
361
-
362
- // `HasOwnProperty` abstract operation
363
- // https://tc39.es/ecma262/#sec-hasownproperty
364
- // eslint-disable-next-line es/no-object-hasown -- safe
365
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
366
- return hasOwnProperty(toObject$3(it), key);
367
- };
368
-
369
- var uncurryThis$5 = functionUncurryThis;
370
-
371
- var id = 0;
372
- var postfix = Math.random();
373
- var toString = uncurryThis$5(1.0.toString);
374
-
375
- var uid$2 = function (key) {
376
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
377
- };
378
-
379
- var global$7 = global$c;
380
- var shared$2 = shared$3.exports;
381
- var hasOwn$8 = hasOwnProperty_1;
382
- var uid$1 = uid$2;
383
- var NATIVE_SYMBOL = symbolConstructorDetection;
384
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
385
-
386
- var WellKnownSymbolsStore = shared$2('wks');
387
- var Symbol$1 = global$7.Symbol;
388
- var symbolFor = Symbol$1 && Symbol$1['for'];
389
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
390
-
391
- var wellKnownSymbol$6 = function (name) {
392
- if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
393
- var description = 'Symbol.' + name;
394
- if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
395
- WellKnownSymbolsStore[name] = Symbol$1[name];
396
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
397
- WellKnownSymbolsStore[name] = symbolFor(description);
398
- } else {
399
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
400
- }
401
- } return WellKnownSymbolsStore[name];
402
- };
403
-
404
- var call$3 = functionCall;
405
- var isObject$4 = isObject$6;
406
- var isSymbol$1 = isSymbol$2;
407
- var getMethod = getMethod$1;
408
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
409
- var wellKnownSymbol$5 = wellKnownSymbol$6;
410
-
411
- var $TypeError$4 = TypeError;
412
- var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
413
-
414
- // `ToPrimitive` abstract operation
415
- // https://tc39.es/ecma262/#sec-toprimitive
416
- var toPrimitive$1 = function (input, pref) {
417
- if (!isObject$4(input) || isSymbol$1(input)) return input;
418
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
419
- var result;
420
- if (exoticToPrim) {
421
- if (pref === undefined) pref = 'default';
422
- result = call$3(exoticToPrim, input, pref);
423
- if (!isObject$4(result) || isSymbol$1(result)) return result;
424
- throw $TypeError$4("Can't convert object to primitive value");
425
- }
426
- if (pref === undefined) pref = 'number';
427
- return ordinaryToPrimitive(input, pref);
428
- };
429
-
430
- var toPrimitive = toPrimitive$1;
431
- var isSymbol = isSymbol$2;
432
-
433
- // `ToPropertyKey` abstract operation
434
- // https://tc39.es/ecma262/#sec-topropertykey
435
- var toPropertyKey$2 = function (argument) {
436
- var key = toPrimitive(argument, 'string');
437
- return isSymbol(key) ? key : key + '';
438
- };
439
-
440
- var global$6 = global$c;
441
- var isObject$3 = isObject$6;
442
-
443
- var document$1 = global$6.document;
444
- // typeof document.createElement is 'object' in old IE
445
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
446
-
447
- var documentCreateElement$2 = function (it) {
448
- return EXISTS$1 ? document$1.createElement(it) : {};
449
- };
450
-
451
- var DESCRIPTORS$9 = descriptors;
452
- var fails$7 = fails$c;
453
- var createElement = documentCreateElement$2;
454
-
455
- // Thanks to IE8 for its funny defineProperty
456
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
457
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
458
- return Object.defineProperty(createElement('div'), 'a', {
459
- get: function () { return 7; }
460
- }).a != 7;
461
- });
462
-
463
- var DESCRIPTORS$8 = descriptors;
464
- var call$2 = functionCall;
465
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
466
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
467
- var toIndexedObject$4 = toIndexedObject$5;
468
- var toPropertyKey$1 = toPropertyKey$2;
469
- var hasOwn$7 = hasOwnProperty_1;
470
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
471
-
472
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
473
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
474
-
475
- // `Object.getOwnPropertyDescriptor` method
476
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
477
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
478
- O = toIndexedObject$4(O);
479
- P = toPropertyKey$1(P);
480
- if (IE8_DOM_DEFINE$1) try {
481
- return $getOwnPropertyDescriptor$1(O, P);
482
- } catch (error) { /* empty */ }
483
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
484
- };
485
-
486
- var objectDefineProperty = {};
487
-
488
- var DESCRIPTORS$7 = descriptors;
489
- var fails$6 = fails$c;
490
-
491
- // V8 ~ Chrome 36-
492
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
493
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
494
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
495
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
496
- value: 42,
497
- writable: false
498
- }).prototype != 42;
499
- });
500
-
501
- var isObject$2 = isObject$6;
502
-
503
- var $String$1 = String;
504
- var $TypeError$3 = TypeError;
505
-
506
- // `Assert: Type(argument) is Object`
507
- var anObject$5 = function (argument) {
508
- if (isObject$2(argument)) return argument;
509
- throw $TypeError$3($String$1(argument) + ' is not an object');
510
- };
511
-
512
- var DESCRIPTORS$6 = descriptors;
513
- var IE8_DOM_DEFINE = ie8DomDefine;
514
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
515
- var anObject$4 = anObject$5;
516
- var toPropertyKey = toPropertyKey$2;
517
-
518
- var $TypeError$2 = TypeError;
519
- // eslint-disable-next-line es/no-object-defineproperty -- safe
520
- var $defineProperty = Object.defineProperty;
521
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
522
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
523
- var ENUMERABLE = 'enumerable';
524
- var CONFIGURABLE$1 = 'configurable';
525
- var WRITABLE = 'writable';
526
-
527
- // `Object.defineProperty` method
528
- // https://tc39.es/ecma262/#sec-object.defineproperty
529
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
530
- anObject$4(O);
531
- P = toPropertyKey(P);
532
- anObject$4(Attributes);
533
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
534
- var current = $getOwnPropertyDescriptor(O, P);
535
- if (current && current[WRITABLE]) {
536
- O[P] = Attributes.value;
537
- Attributes = {
538
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
539
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
540
- writable: false
541
- };
542
- }
543
- } return $defineProperty(O, P, Attributes);
544
- } : $defineProperty : function defineProperty(O, P, Attributes) {
545
- anObject$4(O);
546
- P = toPropertyKey(P);
547
- anObject$4(Attributes);
548
- if (IE8_DOM_DEFINE) try {
549
- return $defineProperty(O, P, Attributes);
550
- } catch (error) { /* empty */ }
551
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
552
- if ('value' in Attributes) O[P] = Attributes.value;
553
- return O;
554
- };
555
-
556
- var DESCRIPTORS$5 = descriptors;
557
- var definePropertyModule$3 = objectDefineProperty;
558
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
559
-
560
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
561
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
562
- } : function (object, key, value) {
563
- object[key] = value;
564
- return object;
565
- };
566
-
567
- var makeBuiltIn$2 = {exports: {}};
568
-
569
- var DESCRIPTORS$4 = descriptors;
570
- var hasOwn$6 = hasOwnProperty_1;
571
-
572
- var FunctionPrototype = Function.prototype;
573
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
574
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
575
-
576
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
577
- // additional protection from minified / mangled / dropped function names
578
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
579
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
580
-
581
- var functionName = {
582
- EXISTS: EXISTS,
583
- PROPER: PROPER,
584
- CONFIGURABLE: CONFIGURABLE
585
- };
586
-
587
- var uncurryThis$4 = functionUncurryThis;
588
- var isCallable$8 = isCallable$e;
589
- var store$1 = sharedStore;
590
-
591
- var functionToString = uncurryThis$4(Function.toString);
592
-
593
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
594
- if (!isCallable$8(store$1.inspectSource)) {
595
- store$1.inspectSource = function (it) {
596
- return functionToString(it);
597
- };
598
- }
599
-
600
- var inspectSource$1 = store$1.inspectSource;
601
-
602
- var global$5 = global$c;
603
- var isCallable$7 = isCallable$e;
604
-
605
- var WeakMap$1 = global$5.WeakMap;
606
-
607
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
608
-
609
- var shared$1 = shared$3.exports;
610
- var uid = uid$2;
611
-
612
- var keys = shared$1('keys');
613
-
614
- var sharedKey$3 = function (key) {
615
- return keys[key] || (keys[key] = uid(key));
616
- };
617
-
618
- var hiddenKeys$4 = {};
619
-
620
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
621
- var global$4 = global$c;
622
- var isObject$1 = isObject$6;
623
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
624
- var hasOwn$5 = hasOwnProperty_1;
625
- var shared = sharedStore;
626
- var sharedKey$2 = sharedKey$3;
627
- var hiddenKeys$3 = hiddenKeys$4;
628
-
629
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
630
- var TypeError$1 = global$4.TypeError;
631
- var WeakMap = global$4.WeakMap;
632
- var set, get, has;
633
-
634
- var enforce = function (it) {
635
- return has(it) ? get(it) : set(it, {});
636
- };
637
-
638
- var getterFor = function (TYPE) {
639
- return function (it) {
640
- var state;
641
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
642
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
643
- } return state;
644
- };
645
- };
646
-
647
- if (NATIVE_WEAK_MAP || shared.state) {
648
- var store = shared.state || (shared.state = new WeakMap());
649
- /* eslint-disable no-self-assign -- prototype methods protection */
650
- store.get = store.get;
651
- store.has = store.has;
652
- store.set = store.set;
653
- /* eslint-enable no-self-assign -- prototype methods protection */
654
- set = function (it, metadata) {
655
- if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
656
- metadata.facade = it;
657
- store.set(it, metadata);
658
- return metadata;
659
- };
660
- get = function (it) {
661
- return store.get(it) || {};
662
- };
663
- has = function (it) {
664
- return store.has(it);
665
- };
666
- } else {
667
- var STATE = sharedKey$2('state');
668
- hiddenKeys$3[STATE] = true;
669
- set = function (it, metadata) {
670
- if (hasOwn$5(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
671
- metadata.facade = it;
672
- createNonEnumerableProperty$3(it, STATE, metadata);
673
- return metadata;
674
- };
675
- get = function (it) {
676
- return hasOwn$5(it, STATE) ? it[STATE] : {};
677
- };
678
- has = function (it) {
679
- return hasOwn$5(it, STATE);
680
- };
681
- }
682
-
683
- var internalState = {
684
- set: set,
685
- get: get,
686
- has: has,
687
- enforce: enforce,
688
- getterFor: getterFor
689
- };
690
-
691
- var fails$5 = fails$c;
692
- var isCallable$6 = isCallable$e;
693
- var hasOwn$4 = hasOwnProperty_1;
694
- var DESCRIPTORS$3 = descriptors;
695
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
696
- var inspectSource = inspectSource$1;
697
- var InternalStateModule$1 = internalState;
698
-
699
- var enforceInternalState = InternalStateModule$1.enforce;
700
- var getInternalState$1 = InternalStateModule$1.get;
701
- // eslint-disable-next-line es/no-object-defineproperty -- safe
702
- var defineProperty$4 = Object.defineProperty;
703
-
704
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
705
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
706
- });
707
-
708
- var TEMPLATE = String(String).split('String');
709
-
710
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
711
- if (String(name).slice(0, 7) === 'Symbol(') {
712
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
713
- }
714
- if (options && options.getter) name = 'get ' + name;
715
- if (options && options.setter) name = 'set ' + name;
716
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
717
- if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
718
- else value.name = name;
719
- }
720
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
721
- defineProperty$4(value, 'length', { value: options.arity });
722
- }
723
- try {
724
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
725
- if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
726
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
727
- } else if (value.prototype) value.prototype = undefined;
728
- } catch (error) { /* empty */ }
729
- var state = enforceInternalState(value);
730
- if (!hasOwn$4(state, 'source')) {
731
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
732
- } return value;
733
- };
734
-
735
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
736
- // eslint-disable-next-line no-extend-native -- required
737
- Function.prototype.toString = makeBuiltIn$1(function toString() {
738
- return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
739
- }, 'toString');
740
-
741
- var isCallable$5 = isCallable$e;
742
- var definePropertyModule$2 = objectDefineProperty;
743
- var makeBuiltIn = makeBuiltIn$2.exports;
744
- var defineGlobalProperty$1 = defineGlobalProperty$3;
745
-
746
- var defineBuiltIn$3 = function (O, key, value, options) {
747
- if (!options) options = {};
748
- var simple = options.enumerable;
749
- var name = options.name !== undefined ? options.name : key;
750
- if (isCallable$5(value)) makeBuiltIn(value, name, options);
751
- if (options.global) {
752
- if (simple) O[key] = value;
753
- else defineGlobalProperty$1(key, value);
754
- } else {
755
- try {
756
- if (!options.unsafe) delete O[key];
757
- else if (O[key]) simple = true;
758
- } catch (error) { /* empty */ }
759
- if (simple) O[key] = value;
760
- else definePropertyModule$2.f(O, key, {
761
- value: value,
762
- enumerable: false,
763
- configurable: !options.nonConfigurable,
764
- writable: !options.nonWritable
765
- });
766
- } return O;
767
- };
768
-
769
- var objectGetOwnPropertyNames = {};
770
-
771
- var ceil = Math.ceil;
772
- var floor = Math.floor;
773
-
774
- // `Math.trunc` method
775
- // https://tc39.es/ecma262/#sec-math.trunc
776
- // eslint-disable-next-line es/no-math-trunc -- safe
777
- var mathTrunc = Math.trunc || function trunc(x) {
778
- var n = +x;
779
- return (n > 0 ? floor : ceil)(n);
780
- };
781
-
782
- var trunc = mathTrunc;
783
-
784
- // `ToIntegerOrInfinity` abstract operation
785
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
786
- var toIntegerOrInfinity$2 = function (argument) {
787
- var number = +argument;
788
- // eslint-disable-next-line no-self-compare -- NaN check
789
- return number !== number || number === 0 ? 0 : trunc(number);
790
- };
791
-
792
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
793
-
794
- var max = Math.max;
795
- var min$1 = Math.min;
796
-
797
- // Helper for a popular repeating case of the spec:
798
- // Let integer be ? ToInteger(index).
799
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
800
- var toAbsoluteIndex$1 = function (index, length) {
801
- var integer = toIntegerOrInfinity$1(index);
802
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
803
- };
804
-
805
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
806
-
807
- var min = Math.min;
808
-
809
- // `ToLength` abstract operation
810
- // https://tc39.es/ecma262/#sec-tolength
811
- var toLength$1 = function (argument) {
812
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
813
- };
814
-
815
- var toLength = toLength$1;
816
-
817
- // `LengthOfArrayLike` abstract operation
818
- // https://tc39.es/ecma262/#sec-lengthofarraylike
819
- var lengthOfArrayLike$2 = function (obj) {
820
- return toLength(obj.length);
821
- };
822
-
823
- var toIndexedObject$3 = toIndexedObject$5;
824
- var toAbsoluteIndex = toAbsoluteIndex$1;
825
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
826
-
827
- // `Array.prototype.{ indexOf, includes }` methods implementation
828
- var createMethod$1 = function (IS_INCLUDES) {
829
- return function ($this, el, fromIndex) {
830
- var O = toIndexedObject$3($this);
831
- var length = lengthOfArrayLike$1(O);
832
- var index = toAbsoluteIndex(fromIndex, length);
833
- var value;
834
- // Array#includes uses SameValueZero equality algorithm
835
- // eslint-disable-next-line no-self-compare -- NaN check
836
- if (IS_INCLUDES && el != el) while (length > index) {
837
- value = O[index++];
838
- // eslint-disable-next-line no-self-compare -- NaN check
839
- if (value != value) return true;
840
- // Array#indexOf ignores holes, Array#includes - not
841
- } else for (;length > index; index++) {
842
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
843
- } return !IS_INCLUDES && -1;
844
- };
845
- };
846
-
847
- var arrayIncludes = {
848
- // `Array.prototype.includes` method
849
- // https://tc39.es/ecma262/#sec-array.prototype.includes
850
- includes: createMethod$1(true),
851
- // `Array.prototype.indexOf` method
852
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
853
- indexOf: createMethod$1(false)
854
- };
855
-
856
- var uncurryThis$3 = functionUncurryThis;
857
- var hasOwn$3 = hasOwnProperty_1;
858
- var toIndexedObject$2 = toIndexedObject$5;
859
- var indexOf = arrayIncludes.indexOf;
860
- var hiddenKeys$2 = hiddenKeys$4;
861
-
862
- var push = uncurryThis$3([].push);
863
-
864
- var objectKeysInternal = function (object, names) {
865
- var O = toIndexedObject$2(object);
866
- var i = 0;
867
- var result = [];
868
- var key;
869
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
870
- // Don't enum bug & hidden keys
871
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
872
- ~indexOf(result, key) || push(result, key);
873
- }
874
- return result;
875
- };
876
-
877
- // IE8- don't enum bug keys
878
- var enumBugKeys$3 = [
879
- 'constructor',
880
- 'hasOwnProperty',
881
- 'isPrototypeOf',
882
- 'propertyIsEnumerable',
883
- 'toLocaleString',
884
- 'toString',
885
- 'valueOf'
886
- ];
887
-
888
- var internalObjectKeys$1 = objectKeysInternal;
889
- var enumBugKeys$2 = enumBugKeys$3;
890
-
891
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
892
-
893
- // `Object.getOwnPropertyNames` method
894
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
895
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
896
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
897
- return internalObjectKeys$1(O, hiddenKeys$1);
898
- };
899
-
900
- var objectGetOwnPropertySymbols = {};
901
-
902
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
903
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
904
-
905
- var getBuiltIn$1 = getBuiltIn$4;
906
- var uncurryThis$2 = functionUncurryThis;
907
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
908
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
909
- var anObject$3 = anObject$5;
910
-
911
- var concat$1 = uncurryThis$2([].concat);
912
-
913
- // all object keys, includes non-enumerable and symbols
914
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
915
- var keys = getOwnPropertyNamesModule.f(anObject$3(it));
916
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
917
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
918
- };
919
-
920
- var hasOwn$2 = hasOwnProperty_1;
921
- var ownKeys = ownKeys$1;
922
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
923
- var definePropertyModule$1 = objectDefineProperty;
924
-
925
- var copyConstructorProperties$1 = function (target, source, exceptions) {
926
- var keys = ownKeys(source);
927
- var defineProperty = definePropertyModule$1.f;
928
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
929
- for (var i = 0; i < keys.length; i++) {
930
- var key = keys[i];
931
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
932
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
933
- }
934
- }
935
- };
936
-
937
- var fails$4 = fails$c;
938
- var isCallable$4 = isCallable$e;
939
-
940
- var replacement = /#|\.prototype\./;
941
-
942
- var isForced$1 = function (feature, detection) {
943
- var value = data[normalize(feature)];
944
- return value == POLYFILL ? true
945
- : value == NATIVE ? false
946
- : isCallable$4(detection) ? fails$4(detection)
947
- : !!detection;
948
- };
949
-
950
- var normalize = isForced$1.normalize = function (string) {
951
- return String(string).replace(replacement, '.').toLowerCase();
952
- };
953
-
954
- var data = isForced$1.data = {};
955
- var NATIVE = isForced$1.NATIVE = 'N';
956
- var POLYFILL = isForced$1.POLYFILL = 'P';
957
-
958
- var isForced_1 = isForced$1;
959
-
960
- var global$3 = global$c;
961
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
962
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
963
- var defineBuiltIn$2 = defineBuiltIn$3;
964
- var defineGlobalProperty = defineGlobalProperty$3;
965
- var copyConstructorProperties = copyConstructorProperties$1;
966
- var isForced = isForced_1;
967
-
968
- /*
969
- options.target - name of the target object
970
- options.global - target is the global object
971
- options.stat - export as static methods of target
972
- options.proto - export as prototype methods of target
973
- options.real - real prototype method for the `pure` version
974
- options.forced - export even if the native feature is available
975
- options.bind - bind methods to the target, required for the `pure` version
976
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
977
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
978
- options.sham - add a flag to not completely full polyfills
979
- options.enumerable - export as enumerable property
980
- options.dontCallGetSet - prevent calling a getter on target
981
- options.name - the .name of the function if it does not match the key
982
- */
983
- var _export = function (options, source) {
984
- var TARGET = options.target;
985
- var GLOBAL = options.global;
986
- var STATIC = options.stat;
987
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
988
- if (GLOBAL) {
989
- target = global$3;
990
- } else if (STATIC) {
991
- target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
992
- } else {
993
- target = (global$3[TARGET] || {}).prototype;
994
- }
995
- if (target) for (key in source) {
996
- sourceProperty = source[key];
997
- if (options.dontCallGetSet) {
998
- descriptor = getOwnPropertyDescriptor(target, key);
999
- targetProperty = descriptor && descriptor.value;
1000
- } else targetProperty = target[key];
1001
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1002
- // contained in target
1003
- if (!FORCED && targetProperty !== undefined) {
1004
- if (typeof sourceProperty == typeof targetProperty) continue;
1005
- copyConstructorProperties(sourceProperty, targetProperty);
1006
- }
1007
- // add a flag to not completely full polyfills
1008
- if (options.sham || (targetProperty && targetProperty.sham)) {
1009
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1010
- }
1011
- defineBuiltIn$2(target, key, sourceProperty, options);
1012
- }
1013
- };
1014
-
1015
- var internalObjectKeys = objectKeysInternal;
1016
- var enumBugKeys$1 = enumBugKeys$3;
1017
-
1018
- // `Object.keys` method
1019
- // https://tc39.es/ecma262/#sec-object.keys
1020
- // eslint-disable-next-line es/no-object-keys -- safe
1021
- var objectKeys$2 = Object.keys || function keys(O) {
1022
- return internalObjectKeys(O, enumBugKeys$1);
1023
- };
1024
-
1025
- var DESCRIPTORS$2 = descriptors;
1026
- var uncurryThis$1 = functionUncurryThis;
1027
- var call$1 = functionCall;
1028
- var fails$3 = fails$c;
1029
- var objectKeys$1 = objectKeys$2;
1030
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1031
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1032
- var toObject$2 = toObject$4;
1033
- var IndexedObject$1 = indexedObject;
1034
-
1035
- // eslint-disable-next-line es/no-object-assign -- safe
1036
- var $assign = Object.assign;
1037
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1038
- var defineProperty$3 = Object.defineProperty;
1039
- var concat = uncurryThis$1([].concat);
1040
-
1041
- // `Object.assign` method
1042
- // https://tc39.es/ecma262/#sec-object.assign
1043
- var objectAssign = !$assign || fails$3(function () {
1044
- // should have correct order of operations (Edge bug)
1045
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1046
- enumerable: true,
1047
- get: function () {
1048
- defineProperty$3(this, 'b', {
1049
- value: 3,
1050
- enumerable: false
1051
- });
1052
- }
1053
- }), { b: 2 })).b !== 1) return true;
1054
- // should work with symbols and should have deterministic property order (V8 bug)
1055
- var A = {};
1056
- var B = {};
1057
- // eslint-disable-next-line es/no-symbol -- safe
1058
- var symbol = Symbol();
1059
- var alphabet = 'abcdefghijklmnopqrst';
1060
- A[symbol] = 7;
1061
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1062
- return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1063
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1064
- var T = toObject$2(target);
1065
- var argumentsLength = arguments.length;
1066
- var index = 1;
1067
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1068
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1069
- while (argumentsLength > index) {
1070
- var S = IndexedObject$1(arguments[index++]);
1071
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1072
- var length = keys.length;
1073
- var j = 0;
1074
- var key;
1075
- while (length > j) {
1076
- key = keys[j++];
1077
- if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
1078
- }
1079
- } return T;
1080
- } : $assign;
1081
-
1082
- var $$2 = _export;
1083
- var assign = objectAssign;
1084
-
1085
- // `Object.assign` method
1086
- // https://tc39.es/ecma262/#sec-object.assign
1087
- // eslint-disable-next-line es/no-object-assign -- required for testing
1088
- $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1089
- assign: assign
1090
- });
1091
-
1092
9
  const NinetailedContext = /*#__PURE__*/createContext(undefined);
1093
10
 
1094
11
  const NinetailedProvider = props => {
@@ -1107,6 +24,7 @@ const NinetailedProvider = props => {
1107
24
  plugins = [],
1108
25
  onLog,
1109
26
  onError,
27
+ buildClientContext,
1110
28
  componentViewTrackingThreshold
1111
29
  } = props;
1112
30
  return new Ninetailed({
@@ -1121,6 +39,7 @@ const NinetailedProvider = props => {
1121
39
  requestTimeout,
1122
40
  onLog,
1123
41
  onError,
42
+ buildClientContext,
1124
43
  componentViewTrackingThreshold
1125
44
  });
1126
45
  }, []);
@@ -1142,533 +61,6 @@ const useNinetailed = () => {
1142
61
  return ninetailed;
1143
62
  };
1144
63
 
1145
- var objectDefineProperties = {};
1146
-
1147
- var DESCRIPTORS$1 = descriptors;
1148
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1149
- var definePropertyModule = objectDefineProperty;
1150
- var anObject$2 = anObject$5;
1151
- var toIndexedObject$1 = toIndexedObject$5;
1152
- var objectKeys = objectKeys$2;
1153
-
1154
- // `Object.defineProperties` method
1155
- // https://tc39.es/ecma262/#sec-object.defineproperties
1156
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1157
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1158
- anObject$2(O);
1159
- var props = toIndexedObject$1(Properties);
1160
- var keys = objectKeys(Properties);
1161
- var length = keys.length;
1162
- var index = 0;
1163
- var key;
1164
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1165
- return O;
1166
- };
1167
-
1168
- var getBuiltIn = getBuiltIn$4;
1169
-
1170
- var html$1 = getBuiltIn('document', 'documentElement');
1171
-
1172
- /* global ActiveXObject -- old IE, WSH */
1173
-
1174
- var anObject$1 = anObject$5;
1175
- var definePropertiesModule = objectDefineProperties;
1176
- var enumBugKeys = enumBugKeys$3;
1177
- var hiddenKeys = hiddenKeys$4;
1178
- var html = html$1;
1179
- var documentCreateElement$1 = documentCreateElement$2;
1180
- var sharedKey$1 = sharedKey$3;
1181
-
1182
- var GT = '>';
1183
- var LT = '<';
1184
- var PROTOTYPE = 'prototype';
1185
- var SCRIPT = 'script';
1186
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1187
-
1188
- var EmptyConstructor = function () { /* empty */ };
1189
-
1190
- var scriptTag = function (content) {
1191
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1192
- };
1193
-
1194
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1195
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1196
- activeXDocument.write(scriptTag(''));
1197
- activeXDocument.close();
1198
- var temp = activeXDocument.parentWindow.Object;
1199
- activeXDocument = null; // avoid memory leak
1200
- return temp;
1201
- };
1202
-
1203
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1204
- var NullProtoObjectViaIFrame = function () {
1205
- // Thrash, waste and sodomy: IE GC bug
1206
- var iframe = documentCreateElement$1('iframe');
1207
- var JS = 'java' + SCRIPT + ':';
1208
- var iframeDocument;
1209
- iframe.style.display = 'none';
1210
- html.appendChild(iframe);
1211
- // https://github.com/zloirock/core-js/issues/475
1212
- iframe.src = String(JS);
1213
- iframeDocument = iframe.contentWindow.document;
1214
- iframeDocument.open();
1215
- iframeDocument.write(scriptTag('document.F=Object'));
1216
- iframeDocument.close();
1217
- return iframeDocument.F;
1218
- };
1219
-
1220
- // Check for document.domain and active x support
1221
- // No need to use active x approach when document.domain is not set
1222
- // see https://github.com/es-shims/es5-shim/issues/150
1223
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1224
- // avoid IE GC bug
1225
- var activeXDocument;
1226
- var NullProtoObject = function () {
1227
- try {
1228
- activeXDocument = new ActiveXObject('htmlfile');
1229
- } catch (error) { /* ignore */ }
1230
- NullProtoObject = typeof document != 'undefined'
1231
- ? document.domain && activeXDocument
1232
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1233
- : NullProtoObjectViaIFrame()
1234
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1235
- var length = enumBugKeys.length;
1236
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1237
- return NullProtoObject();
1238
- };
1239
-
1240
- hiddenKeys[IE_PROTO$1] = true;
1241
-
1242
- // `Object.create` method
1243
- // https://tc39.es/ecma262/#sec-object.create
1244
- // eslint-disable-next-line es/no-object-create -- safe
1245
- var objectCreate = Object.create || function create(O, Properties) {
1246
- var result;
1247
- if (O !== null) {
1248
- EmptyConstructor[PROTOTYPE] = anObject$1(O);
1249
- result = new EmptyConstructor();
1250
- EmptyConstructor[PROTOTYPE] = null;
1251
- // add "__proto__" for Object.getPrototypeOf polyfill
1252
- result[IE_PROTO$1] = O;
1253
- } else result = NullProtoObject();
1254
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1255
- };
1256
-
1257
- var wellKnownSymbol$4 = wellKnownSymbol$6;
1258
- var create$1 = objectCreate;
1259
- var defineProperty$2 = objectDefineProperty.f;
1260
-
1261
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1262
- var ArrayPrototype = Array.prototype;
1263
-
1264
- // Array.prototype[@@unscopables]
1265
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1266
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
1267
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1268
- configurable: true,
1269
- value: create$1(null)
1270
- });
1271
- }
1272
-
1273
- // add a key to Array.prototype[@@unscopables]
1274
- var addToUnscopables$1 = function (key) {
1275
- ArrayPrototype[UNSCOPABLES][key] = true;
1276
- };
1277
-
1278
- var iterators = {};
1279
-
1280
- var fails$2 = fails$c;
1281
-
1282
- var correctPrototypeGetter = !fails$2(function () {
1283
- function F() { /* empty */ }
1284
- F.prototype.constructor = null;
1285
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1286
- return Object.getPrototypeOf(new F()) !== F.prototype;
1287
- });
1288
-
1289
- var hasOwn$1 = hasOwnProperty_1;
1290
- var isCallable$3 = isCallable$e;
1291
- var toObject$1 = toObject$4;
1292
- var sharedKey = sharedKey$3;
1293
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1294
-
1295
- var IE_PROTO = sharedKey('IE_PROTO');
1296
- var $Object = Object;
1297
- var ObjectPrototype = $Object.prototype;
1298
-
1299
- // `Object.getPrototypeOf` method
1300
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1301
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1302
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1303
- var object = toObject$1(O);
1304
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1305
- var constructor = object.constructor;
1306
- if (isCallable$3(constructor) && object instanceof constructor) {
1307
- return constructor.prototype;
1308
- } return object instanceof $Object ? ObjectPrototype : null;
1309
- };
1310
-
1311
- var fails$1 = fails$c;
1312
- var isCallable$2 = isCallable$e;
1313
- var isObject = isObject$6;
1314
- var getPrototypeOf$1 = objectGetPrototypeOf;
1315
- var defineBuiltIn$1 = defineBuiltIn$3;
1316
- var wellKnownSymbol$3 = wellKnownSymbol$6;
1317
-
1318
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1319
- var BUGGY_SAFARI_ITERATORS$1 = false;
1320
-
1321
- // `%IteratorPrototype%` object
1322
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1323
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1324
-
1325
- /* eslint-disable es/no-array-prototype-keys -- safe */
1326
- if ([].keys) {
1327
- arrayIterator = [].keys();
1328
- // Safari 8 has buggy iterators w/o `next`
1329
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1330
- else {
1331
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1332
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1333
- }
1334
- }
1335
-
1336
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$1(function () {
1337
- var test = {};
1338
- // FF44- legacy iterators case
1339
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1340
- });
1341
-
1342
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1343
-
1344
- // `%IteratorPrototype%[@@iterator]()` method
1345
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1346
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
1347
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1348
- return this;
1349
- });
1350
- }
1351
-
1352
- var iteratorsCore = {
1353
- IteratorPrototype: IteratorPrototype$2,
1354
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1355
- };
1356
-
1357
- var defineProperty$1 = objectDefineProperty.f;
1358
- var hasOwn = hasOwnProperty_1;
1359
- var wellKnownSymbol$2 = wellKnownSymbol$6;
1360
-
1361
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1362
-
1363
- var setToStringTag$2 = function (target, TAG, STATIC) {
1364
- if (target && !STATIC) target = target.prototype;
1365
- if (target && !hasOwn(target, TO_STRING_TAG$1)) {
1366
- defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1367
- }
1368
- };
1369
-
1370
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1371
- var create = objectCreate;
1372
- var createPropertyDescriptor = createPropertyDescriptor$3;
1373
- var setToStringTag$1 = setToStringTag$2;
1374
- var Iterators$2 = iterators;
1375
-
1376
- var returnThis$1 = function () { return this; };
1377
-
1378
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1379
- var TO_STRING_TAG = NAME + ' Iterator';
1380
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1381
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1382
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1383
- return IteratorConstructor;
1384
- };
1385
-
1386
- var isCallable$1 = isCallable$e;
1387
-
1388
- var $String = String;
1389
- var $TypeError$1 = TypeError;
1390
-
1391
- var aPossiblePrototype$1 = function (argument) {
1392
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
1393
- throw $TypeError$1("Can't set " + $String(argument) + ' as a prototype');
1394
- };
1395
-
1396
- /* eslint-disable no-proto -- safe */
1397
-
1398
- var uncurryThis = functionUncurryThis;
1399
- var anObject = anObject$5;
1400
- var aPossiblePrototype = aPossiblePrototype$1;
1401
-
1402
- // `Object.setPrototypeOf` method
1403
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1404
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1405
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1406
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1407
- var CORRECT_SETTER = false;
1408
- var test = {};
1409
- var setter;
1410
- try {
1411
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1412
- setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1413
- setter(test, []);
1414
- CORRECT_SETTER = test instanceof Array;
1415
- } catch (error) { /* empty */ }
1416
- return function setPrototypeOf(O, proto) {
1417
- anObject(O);
1418
- aPossiblePrototype(proto);
1419
- if (CORRECT_SETTER) setter(O, proto);
1420
- else O.__proto__ = proto;
1421
- return O;
1422
- };
1423
- }() : undefined);
1424
-
1425
- var $$1 = _export;
1426
- var call = functionCall;
1427
- var FunctionName = functionName;
1428
- var isCallable = isCallable$e;
1429
- var createIteratorConstructor = iteratorCreateConstructor;
1430
- var getPrototypeOf = objectGetPrototypeOf;
1431
- var setPrototypeOf = objectSetPrototypeOf;
1432
- var setToStringTag = setToStringTag$2;
1433
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1434
- var defineBuiltIn = defineBuiltIn$3;
1435
- var wellKnownSymbol$1 = wellKnownSymbol$6;
1436
- var Iterators$1 = iterators;
1437
- var IteratorsCore = iteratorsCore;
1438
-
1439
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1440
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1441
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1442
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1443
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1444
- var KEYS = 'keys';
1445
- var VALUES = 'values';
1446
- var ENTRIES = 'entries';
1447
-
1448
- var returnThis = function () { return this; };
1449
-
1450
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1451
- createIteratorConstructor(IteratorConstructor, NAME, next);
1452
-
1453
- var getIterationMethod = function (KIND) {
1454
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1455
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1456
- switch (KIND) {
1457
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1458
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1459
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1460
- } return function () { return new IteratorConstructor(this); };
1461
- };
1462
-
1463
- var TO_STRING_TAG = NAME + ' Iterator';
1464
- var INCORRECT_VALUES_NAME = false;
1465
- var IterablePrototype = Iterable.prototype;
1466
- var nativeIterator = IterablePrototype[ITERATOR$1]
1467
- || IterablePrototype['@@iterator']
1468
- || DEFAULT && IterablePrototype[DEFAULT];
1469
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1470
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1471
- var CurrentIteratorPrototype, methods, KEY;
1472
-
1473
- // fix native
1474
- if (anyNativeIterator) {
1475
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1476
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1477
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1478
- if (setPrototypeOf) {
1479
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1480
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1481
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1482
- }
1483
- }
1484
- // Set @@toStringTag to native iterators
1485
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1486
- }
1487
- }
1488
-
1489
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1490
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1491
- if (CONFIGURABLE_FUNCTION_NAME) {
1492
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1493
- } else {
1494
- INCORRECT_VALUES_NAME = true;
1495
- defaultIterator = function values() { return call(nativeIterator, this); };
1496
- }
1497
- }
1498
-
1499
- // export additional methods
1500
- if (DEFAULT) {
1501
- methods = {
1502
- values: getIterationMethod(VALUES),
1503
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1504
- entries: getIterationMethod(ENTRIES)
1505
- };
1506
- if (FORCED) for (KEY in methods) {
1507
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1508
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1509
- }
1510
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1511
- }
1512
-
1513
- // define iterator
1514
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1515
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1516
- }
1517
- Iterators$1[NAME] = defaultIterator;
1518
-
1519
- return methods;
1520
- };
1521
-
1522
- // `CreateIterResultObject` abstract operation
1523
- // https://tc39.es/ecma262/#sec-createiterresultobject
1524
- var createIterResultObject$1 = function (value, done) {
1525
- return { value: value, done: done };
1526
- };
1527
-
1528
- var toIndexedObject = toIndexedObject$5;
1529
- var addToUnscopables = addToUnscopables$1;
1530
- var Iterators = iterators;
1531
- var InternalStateModule = internalState;
1532
- var defineProperty = objectDefineProperty.f;
1533
- var defineIterator = iteratorDefine;
1534
- var createIterResultObject = createIterResultObject$1;
1535
- var DESCRIPTORS = descriptors;
1536
-
1537
- var ARRAY_ITERATOR = 'Array Iterator';
1538
- var setInternalState = InternalStateModule.set;
1539
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1540
-
1541
- // `Array.prototype.entries` method
1542
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1543
- // `Array.prototype.keys` method
1544
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1545
- // `Array.prototype.values` method
1546
- // https://tc39.es/ecma262/#sec-array.prototype.values
1547
- // `Array.prototype[@@iterator]` method
1548
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1549
- // `CreateArrayIterator` internal method
1550
- // https://tc39.es/ecma262/#sec-createarrayiterator
1551
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1552
- setInternalState(this, {
1553
- type: ARRAY_ITERATOR,
1554
- target: toIndexedObject(iterated), // target
1555
- index: 0, // next index
1556
- kind: kind // kind
1557
- });
1558
- // `%ArrayIteratorPrototype%.next` method
1559
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1560
- }, function () {
1561
- var state = getInternalState(this);
1562
- var target = state.target;
1563
- var kind = state.kind;
1564
- var index = state.index++;
1565
- if (!target || index >= target.length) {
1566
- state.target = undefined;
1567
- return createIterResultObject(undefined, true);
1568
- }
1569
- if (kind == 'keys') return createIterResultObject(index, false);
1570
- if (kind == 'values') return createIterResultObject(target[index], false);
1571
- return createIterResultObject([index, target[index]], false);
1572
- }, 'values');
1573
-
1574
- // argumentsList[@@iterator] is %ArrayProto_values%
1575
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1576
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1577
- var values = Iterators.Arguments = Iterators.Array;
1578
-
1579
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1580
- addToUnscopables('keys');
1581
- addToUnscopables('values');
1582
- addToUnscopables('entries');
1583
-
1584
- // V8 ~ Chrome 45- bug
1585
- if (DESCRIPTORS && values.name !== 'values') try {
1586
- defineProperty(values, 'name', { value: 'values' });
1587
- } catch (error) { /* empty */ }
1588
-
1589
- // iterable DOM collections
1590
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1591
- var domIterables = {
1592
- CSSRuleList: 0,
1593
- CSSStyleDeclaration: 0,
1594
- CSSValueList: 0,
1595
- ClientRectList: 0,
1596
- DOMRectList: 0,
1597
- DOMStringList: 0,
1598
- DOMTokenList: 1,
1599
- DataTransferItemList: 0,
1600
- FileList: 0,
1601
- HTMLAllCollection: 0,
1602
- HTMLCollection: 0,
1603
- HTMLFormElement: 0,
1604
- HTMLSelectElement: 0,
1605
- MediaList: 0,
1606
- MimeTypeArray: 0,
1607
- NamedNodeMap: 0,
1608
- NodeList: 1,
1609
- PaintRequestList: 0,
1610
- Plugin: 0,
1611
- PluginArray: 0,
1612
- SVGLengthList: 0,
1613
- SVGNumberList: 0,
1614
- SVGPathSegList: 0,
1615
- SVGPointList: 0,
1616
- SVGStringList: 0,
1617
- SVGTransformList: 0,
1618
- SourceBufferList: 0,
1619
- StyleSheetList: 0,
1620
- TextTrackCueList: 0,
1621
- TextTrackList: 0,
1622
- TouchList: 0
1623
- };
1624
-
1625
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1626
- var documentCreateElement = documentCreateElement$2;
1627
-
1628
- var classList = documentCreateElement('span').classList;
1629
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1630
-
1631
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1632
-
1633
- var global$2 = global$c;
1634
- var DOMIterables = domIterables;
1635
- var DOMTokenListPrototype = domTokenListPrototype;
1636
- var ArrayIteratorMethods = es_array_iterator;
1637
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
1638
- var wellKnownSymbol = wellKnownSymbol$6;
1639
-
1640
- var ITERATOR = wellKnownSymbol('iterator');
1641
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1642
- var ArrayValues = ArrayIteratorMethods.values;
1643
-
1644
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1645
- if (CollectionPrototype) {
1646
- // some Chrome versions have non-configurable methods on DOMTokenList
1647
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1648
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1649
- } catch (error) {
1650
- CollectionPrototype[ITERATOR] = ArrayValues;
1651
- }
1652
- if (!CollectionPrototype[TO_STRING_TAG]) {
1653
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
1654
- }
1655
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1656
- // some Chrome versions have non-configurable methods on DOMTokenList
1657
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1658
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1659
- } catch (error) {
1660
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1661
- }
1662
- }
1663
- }
1664
- };
1665
-
1666
- for (var COLLECTION_NAME in DOMIterables) {
1667
- handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
1668
- }
1669
-
1670
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1671
-
1672
64
  const useProfile = () => {
1673
65
  const ninetailed = useNinetailed();
1674
66
  const [profileState, setProfileState] = useState(ninetailed.profileState);
@@ -1815,7 +207,7 @@ const Personalize = _a => {
1815
207
  audience: audience,
1816
208
  isPersonalized: isPersonalized
1817
209
  }, {
1818
- children: /*#__PURE__*/createElement$1(Component, Object.assign({}, variant, {
210
+ children: /*#__PURE__*/createElement(Component, Object.assign({}, variant, {
1819
211
  key: `${audience.id}-${variant.id}`,
1820
212
  ninetailed: {
1821
213
  isPersonalized,
@@ -1834,11 +226,11 @@ const generateSelectors = id => {
1834
226
  };
1835
227
  const selectValueFromProfile = (profile, id) => {
1836
228
  const selectors = generateSelectors(id);
1837
- const matchingSelector = selectors.find(selector => get$1(profile, selector));
229
+ const matchingSelector = selectors.find(selector => get(profile, selector));
1838
230
  if (!matchingSelector) {
1839
231
  return null;
1840
232
  }
1841
- return get$1(profile, matchingSelector);
233
+ return get(profile, matchingSelector);
1842
234
  };
1843
235
  const MergeTag = ({
1844
236
  id
@@ -1857,84 +249,6 @@ const MergeTag = ({
1857
249
  });
1858
250
  };
1859
251
 
1860
- var aCallable = aCallable$2;
1861
- var toObject = toObject$4;
1862
- var IndexedObject = indexedObject;
1863
- var lengthOfArrayLike = lengthOfArrayLike$2;
1864
-
1865
- var $TypeError = TypeError;
1866
-
1867
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
1868
- var createMethod = function (IS_RIGHT) {
1869
- return function (that, callbackfn, argumentsLength, memo) {
1870
- aCallable(callbackfn);
1871
- var O = toObject(that);
1872
- var self = IndexedObject(O);
1873
- var length = lengthOfArrayLike(O);
1874
- var index = IS_RIGHT ? length - 1 : 0;
1875
- var i = IS_RIGHT ? -1 : 1;
1876
- if (argumentsLength < 2) while (true) {
1877
- if (index in self) {
1878
- memo = self[index];
1879
- index += i;
1880
- break;
1881
- }
1882
- index += i;
1883
- if (IS_RIGHT ? index < 0 : length <= index) {
1884
- throw $TypeError('Reduce of empty array with no initial value');
1885
- }
1886
- }
1887
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
1888
- memo = callbackfn(memo, self[index], index, O);
1889
- }
1890
- return memo;
1891
- };
1892
- };
1893
-
1894
- var arrayReduce = {
1895
- // `Array.prototype.reduce` method
1896
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1897
- left: createMethod(false),
1898
- // `Array.prototype.reduceRight` method
1899
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
1900
- right: createMethod(true)
1901
- };
1902
-
1903
- var fails = fails$c;
1904
-
1905
- var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1906
- var method = [][METHOD_NAME];
1907
- return !!method && fails(function () {
1908
- // eslint-disable-next-line no-useless-call -- required for testing
1909
- method.call(null, argument || function () { return 1; }, 1);
1910
- });
1911
- };
1912
-
1913
- var classof = classofRaw;
1914
- var global$1 = global$c;
1915
-
1916
- var engineIsNode = classof(global$1.process) == 'process';
1917
-
1918
- var $ = _export;
1919
- var $reduce = arrayReduce.left;
1920
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
1921
- var CHROME_VERSION = engineV8Version;
1922
- var IS_NODE = engineIsNode;
1923
-
1924
- var STRICT_METHOD = arrayMethodIsStrict('reduce');
1925
- // Chrome 80-82 has a critical bug
1926
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1927
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1928
-
1929
- // `Array.prototype.reduce` method
1930
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1931
- $({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
1932
- reduce: function reduce(callbackfn /* , initialValue */) {
1933
- var length = arguments.length;
1934
- return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
1935
- }
1936
- });
1937
-
1938
252
  const useExperienceSelectionMiddleware = ({
1939
253
  experiences,
1940
254
  baseline,
@@ -2188,7 +502,7 @@ const Experience = _a => {
2188
502
  return jsxs(Fragment, {
2189
503
  children: [!isComponentForwardRef && jsx(ComponentMarker, {
2190
504
  ref: componentRef
2191
- }, `marker-no-variants-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement$1(Component, Object.assign({}, passthroughProps, baseline, {
505
+ }, `marker-no-variants-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement(Component, Object.assign({}, passthroughProps, baseline, {
2192
506
  key: baseline.id
2193
507
  }, isComponentForwardRef ? {
2194
508
  ref: componentRef
@@ -2196,7 +510,7 @@ const Experience = _a => {
2196
510
  });
2197
511
  }
2198
512
  if (status === 'loading') {
2199
- return /*#__PURE__*/createElement$1(LoadingComponent, Object.assign({}, baseline, {
513
+ return /*#__PURE__*/createElement(LoadingComponent, Object.assign({}, baseline, {
2200
514
  key: baseline.id,
2201
515
  passthroughProps: passthroughProps,
2202
516
  experiences: experiences,
@@ -2212,7 +526,7 @@ const Experience = _a => {
2212
526
  return jsxs(Fragment, {
2213
527
  children: [!isComponentForwardRef && jsx(ComponentMarker, {
2214
528
  ref: componentRef
2215
- }, `marker-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement$1(Component, Object.assign({}, Object.assign(Object.assign({}, passthroughProps), variant), {
529
+ }, `marker-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement(Component, Object.assign({}, Object.assign(Object.assign({}, passthroughProps), variant), {
2216
530
  key: `${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`,
2217
531
  ninetailed: {
2218
532
  isPersonalized,