@ninetailed/experience.js-react 6.4.1 → 7.1.0-beta.0

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