@ninetailed/experience.js-next 6.4.0-beta.8 → 7.0.1-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.
Files changed (3) hide show
  1. package/index.cjs +10 -1093
  2. package/index.js +0 -1083
  3. package/package.json +5 -5
package/index.js CHANGED
@@ -7,1089 +7,6 @@ import { useRef, useEffect } from 'react';
7
7
  import { useRouter } from 'next/router';
8
8
  import { logger } from '@ninetailed/experience.js-shared';
9
9
 
10
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
11
-
12
- var check = function (it) {
13
- return it && it.Math == Math && it;
14
- };
15
-
16
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
17
- var global$a =
18
- // eslint-disable-next-line es/no-global-this -- safe
19
- check(typeof globalThis == 'object' && globalThis) ||
20
- check(typeof window == 'object' && window) ||
21
- // eslint-disable-next-line no-restricted-globals -- safe
22
- check(typeof self == 'object' && self) ||
23
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
24
- // eslint-disable-next-line no-new-func -- fallback
25
- (function () { return this; })() || Function('return this')();
26
-
27
- var objectGetOwnPropertyDescriptor = {};
28
-
29
- var fails$9 = function (exec) {
30
- try {
31
- return !!exec();
32
- } catch (error) {
33
- return true;
34
- }
35
- };
36
-
37
- var fails$8 = fails$9;
38
-
39
- // Detect IE8's incomplete defineProperty implementation
40
- var descriptors = !fails$8(function () {
41
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
42
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
43
- });
44
-
45
- var fails$7 = fails$9;
46
-
47
- var functionBindNative = !fails$7(function () {
48
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
49
- var test = (function () { /* empty */ }).bind();
50
- // eslint-disable-next-line no-prototype-builtins -- safe
51
- return typeof test != 'function' || test.hasOwnProperty('prototype');
52
- });
53
-
54
- var NATIVE_BIND$1 = functionBindNative;
55
-
56
- var call$5 = Function.prototype.call;
57
-
58
- var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
59
- return call$5.apply(call$5, arguments);
60
- };
61
-
62
- var objectPropertyIsEnumerable = {};
63
-
64
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
65
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
66
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
67
-
68
- // Nashorn ~ JDK8 bug
69
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
70
-
71
- // `Object.prototype.propertyIsEnumerable` method implementation
72
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
73
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
74
- var descriptor = getOwnPropertyDescriptor$1(this, V);
75
- return !!descriptor && descriptor.enumerable;
76
- } : $propertyIsEnumerable;
77
-
78
- var createPropertyDescriptor$2 = function (bitmap, value) {
79
- return {
80
- enumerable: !(bitmap & 1),
81
- configurable: !(bitmap & 2),
82
- writable: !(bitmap & 4),
83
- value: value
84
- };
85
- };
86
-
87
- var NATIVE_BIND = functionBindNative;
88
-
89
- var FunctionPrototype$1 = Function.prototype;
90
- var call$4 = FunctionPrototype$1.call;
91
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
92
-
93
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
94
- return function () {
95
- return call$4.apply(fn, arguments);
96
- };
97
- };
98
-
99
- var uncurryThis$8 = functionUncurryThis;
100
-
101
- var toString$1 = uncurryThis$8({}.toString);
102
- var stringSlice = uncurryThis$8(''.slice);
103
-
104
- var classofRaw = function (it) {
105
- return stringSlice(toString$1(it), 8, -1);
106
- };
107
-
108
- var uncurryThis$7 = functionUncurryThis;
109
- var fails$6 = fails$9;
110
- var classof = classofRaw;
111
-
112
- var $Object$2 = Object;
113
- var split = uncurryThis$7(''.split);
114
-
115
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
116
- var indexedObject = fails$6(function () {
117
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
118
- // eslint-disable-next-line no-prototype-builtins -- safe
119
- return !$Object$2('z').propertyIsEnumerable(0);
120
- }) ? function (it) {
121
- return classof(it) == 'String' ? split(it, '') : $Object$2(it);
122
- } : $Object$2;
123
-
124
- // we can't use just `it == null` since of `document.all` special case
125
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
126
- var isNullOrUndefined$2 = function (it) {
127
- return it === null || it === undefined;
128
- };
129
-
130
- var isNullOrUndefined$1 = isNullOrUndefined$2;
131
-
132
- var $TypeError$5 = TypeError;
133
-
134
- // `RequireObjectCoercible` abstract operation
135
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
136
- var requireObjectCoercible$2 = function (it) {
137
- if (isNullOrUndefined$1(it)) throw $TypeError$5("Can't call method on " + it);
138
- return it;
139
- };
140
-
141
- // toObject with fallback for non-array-like ES3 strings
142
- var IndexedObject$1 = indexedObject;
143
- var requireObjectCoercible$1 = requireObjectCoercible$2;
144
-
145
- var toIndexedObject$3 = function (it) {
146
- return IndexedObject$1(requireObjectCoercible$1(it));
147
- };
148
-
149
- var documentAll$2 = typeof document == 'object' && document.all;
150
-
151
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
152
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
153
-
154
- var documentAll_1 = {
155
- all: documentAll$2,
156
- IS_HTMLDDA: IS_HTMLDDA
157
- };
158
-
159
- var $documentAll$1 = documentAll_1;
160
-
161
- var documentAll$1 = $documentAll$1.all;
162
-
163
- // `IsCallable` abstract operation
164
- // https://tc39.es/ecma262/#sec-iscallable
165
- var isCallable$a = $documentAll$1.IS_HTMLDDA ? function (argument) {
166
- return typeof argument == 'function' || argument === documentAll$1;
167
- } : function (argument) {
168
- return typeof argument == 'function';
169
- };
170
-
171
- var isCallable$9 = isCallable$a;
172
- var $documentAll = documentAll_1;
173
-
174
- var documentAll = $documentAll.all;
175
-
176
- var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
177
- return typeof it == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
178
- } : function (it) {
179
- return typeof it == 'object' ? it !== null : isCallable$9(it);
180
- };
181
-
182
- var global$9 = global$a;
183
- var isCallable$8 = isCallable$a;
184
-
185
- var aFunction = function (argument) {
186
- return isCallable$8(argument) ? argument : undefined;
187
- };
188
-
189
- var getBuiltIn$3 = function (namespace, method) {
190
- return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
191
- };
192
-
193
- var uncurryThis$6 = functionUncurryThis;
194
-
195
- var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
196
-
197
- var getBuiltIn$2 = getBuiltIn$3;
198
-
199
- var engineUserAgent = getBuiltIn$2('navigator', 'userAgent') || '';
200
-
201
- var global$8 = global$a;
202
- var userAgent = engineUserAgent;
203
-
204
- var process = global$8.process;
205
- var Deno = global$8.Deno;
206
- var versions = process && process.versions || Deno && Deno.version;
207
- var v8 = versions && versions.v8;
208
- var match, version;
209
-
210
- if (v8) {
211
- match = v8.split('.');
212
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
213
- // but their correct versions are not interesting for us
214
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
215
- }
216
-
217
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
218
- // so check `userAgent` even if `.v8` exists, but 0
219
- if (!version && userAgent) {
220
- match = userAgent.match(/Edge\/(\d+)/);
221
- if (!match || match[1] >= 74) {
222
- match = userAgent.match(/Chrome\/(\d+)/);
223
- if (match) version = +match[1];
224
- }
225
- }
226
-
227
- var engineV8Version = version;
228
-
229
- /* eslint-disable es/no-symbol -- required for testing */
230
-
231
- var V8_VERSION = engineV8Version;
232
- var fails$5 = fails$9;
233
-
234
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
235
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
236
- var symbol = Symbol();
237
- // Chrome 38 Symbol has incorrect toString conversion
238
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
239
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
240
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
241
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
242
- });
243
-
244
- /* eslint-disable es/no-symbol -- required for testing */
245
-
246
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
247
-
248
- var useSymbolAsUid = NATIVE_SYMBOL$1
249
- && !Symbol.sham
250
- && typeof Symbol.iterator == 'symbol';
251
-
252
- var getBuiltIn$1 = getBuiltIn$3;
253
- var isCallable$7 = isCallable$a;
254
- var isPrototypeOf = objectIsPrototypeOf;
255
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
256
-
257
- var $Object$1 = Object;
258
-
259
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
260
- return typeof it == 'symbol';
261
- } : function (it) {
262
- var $Symbol = getBuiltIn$1('Symbol');
263
- return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
264
- };
265
-
266
- var $String$1 = String;
267
-
268
- var tryToString$1 = function (argument) {
269
- try {
270
- return $String$1(argument);
271
- } catch (error) {
272
- return 'Object';
273
- }
274
- };
275
-
276
- var isCallable$6 = isCallable$a;
277
- var tryToString = tryToString$1;
278
-
279
- var $TypeError$4 = TypeError;
280
-
281
- // `Assert: IsCallable(argument) is true`
282
- var aCallable$1 = function (argument) {
283
- if (isCallable$6(argument)) return argument;
284
- throw $TypeError$4(tryToString(argument) + ' is not a function');
285
- };
286
-
287
- var aCallable = aCallable$1;
288
- var isNullOrUndefined = isNullOrUndefined$2;
289
-
290
- // `GetMethod` abstract operation
291
- // https://tc39.es/ecma262/#sec-getmethod
292
- var getMethod$1 = function (V, P) {
293
- var func = V[P];
294
- return isNullOrUndefined(func) ? undefined : aCallable(func);
295
- };
296
-
297
- var call$3 = functionCall;
298
- var isCallable$5 = isCallable$a;
299
- var isObject$4 = isObject$5;
300
-
301
- var $TypeError$3 = TypeError;
302
-
303
- // `OrdinaryToPrimitive` abstract operation
304
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
305
- var ordinaryToPrimitive$1 = function (input, pref) {
306
- var fn, val;
307
- if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
308
- if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$3(fn, input))) return val;
309
- if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
310
- throw $TypeError$3("Can't convert object to primitive value");
311
- };
312
-
313
- var shared$3 = {exports: {}};
314
-
315
- var global$7 = global$a;
316
-
317
- // eslint-disable-next-line es/no-object-defineproperty -- safe
318
- var defineProperty$2 = Object.defineProperty;
319
-
320
- var defineGlobalProperty$3 = function (key, value) {
321
- try {
322
- defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
323
- } catch (error) {
324
- global$7[key] = value;
325
- } return value;
326
- };
327
-
328
- var global$6 = global$a;
329
- var defineGlobalProperty$2 = defineGlobalProperty$3;
330
-
331
- var SHARED = '__core-js_shared__';
332
- var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
333
-
334
- var sharedStore = store$3;
335
-
336
- var store$2 = sharedStore;
337
-
338
- (shared$3.exports = function (key, value) {
339
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
340
- })('versions', []).push({
341
- version: '3.26.1',
342
- mode: 'global',
343
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
344
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
345
- source: 'https://github.com/zloirock/core-js'
346
- });
347
-
348
- var requireObjectCoercible = requireObjectCoercible$2;
349
-
350
- var $Object = Object;
351
-
352
- // `ToObject` abstract operation
353
- // https://tc39.es/ecma262/#sec-toobject
354
- var toObject$2 = function (argument) {
355
- return $Object(requireObjectCoercible(argument));
356
- };
357
-
358
- var uncurryThis$5 = functionUncurryThis;
359
- var toObject$1 = toObject$2;
360
-
361
- var hasOwnProperty = uncurryThis$5({}.hasOwnProperty);
362
-
363
- // `HasOwnProperty` abstract operation
364
- // https://tc39.es/ecma262/#sec-hasownproperty
365
- // eslint-disable-next-line es/no-object-hasown -- safe
366
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
367
- return hasOwnProperty(toObject$1(it), key);
368
- };
369
-
370
- var uncurryThis$4 = functionUncurryThis;
371
-
372
- var id = 0;
373
- var postfix = Math.random();
374
- var toString = uncurryThis$4(1.0.toString);
375
-
376
- var uid$2 = function (key) {
377
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
378
- };
379
-
380
- var global$5 = global$a;
381
- var shared$2 = shared$3.exports;
382
- var hasOwn$6 = hasOwnProperty_1;
383
- var uid$1 = uid$2;
384
- var NATIVE_SYMBOL = symbolConstructorDetection;
385
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
386
-
387
- var WellKnownSymbolsStore = shared$2('wks');
388
- var Symbol$1 = global$5.Symbol;
389
- var symbolFor = Symbol$1 && Symbol$1['for'];
390
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
391
-
392
- var wellKnownSymbol$1 = function (name) {
393
- if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
394
- var description = 'Symbol.' + name;
395
- if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
396
- WellKnownSymbolsStore[name] = Symbol$1[name];
397
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
398
- WellKnownSymbolsStore[name] = symbolFor(description);
399
- } else {
400
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
401
- }
402
- } return WellKnownSymbolsStore[name];
403
- };
404
-
405
- var call$2 = functionCall;
406
- var isObject$3 = isObject$5;
407
- var isSymbol$1 = isSymbol$2;
408
- var getMethod = getMethod$1;
409
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
410
- var wellKnownSymbol = wellKnownSymbol$1;
411
-
412
- var $TypeError$2 = TypeError;
413
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
414
-
415
- // `ToPrimitive` abstract operation
416
- // https://tc39.es/ecma262/#sec-toprimitive
417
- var toPrimitive$1 = function (input, pref) {
418
- if (!isObject$3(input) || isSymbol$1(input)) return input;
419
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
420
- var result;
421
- if (exoticToPrim) {
422
- if (pref === undefined) pref = 'default';
423
- result = call$2(exoticToPrim, input, pref);
424
- if (!isObject$3(result) || isSymbol$1(result)) return result;
425
- throw $TypeError$2("Can't convert object to primitive value");
426
- }
427
- if (pref === undefined) pref = 'number';
428
- return ordinaryToPrimitive(input, pref);
429
- };
430
-
431
- var toPrimitive = toPrimitive$1;
432
- var isSymbol = isSymbol$2;
433
-
434
- // `ToPropertyKey` abstract operation
435
- // https://tc39.es/ecma262/#sec-topropertykey
436
- var toPropertyKey$2 = function (argument) {
437
- var key = toPrimitive(argument, 'string');
438
- return isSymbol(key) ? key : key + '';
439
- };
440
-
441
- var global$4 = global$a;
442
- var isObject$2 = isObject$5;
443
-
444
- var document$1 = global$4.document;
445
- // typeof document.createElement is 'object' in old IE
446
- var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
447
-
448
- var documentCreateElement = function (it) {
449
- return EXISTS$1 ? document$1.createElement(it) : {};
450
- };
451
-
452
- var DESCRIPTORS$7 = descriptors;
453
- var fails$4 = fails$9;
454
- var createElement = documentCreateElement;
455
-
456
- // Thanks to IE8 for its funny defineProperty
457
- var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
458
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
459
- return Object.defineProperty(createElement('div'), 'a', {
460
- get: function () { return 7; }
461
- }).a != 7;
462
- });
463
-
464
- var DESCRIPTORS$6 = descriptors;
465
- var call$1 = functionCall;
466
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
467
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
468
- var toIndexedObject$2 = toIndexedObject$3;
469
- var toPropertyKey$1 = toPropertyKey$2;
470
- var hasOwn$5 = hasOwnProperty_1;
471
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
472
-
473
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
474
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
475
-
476
- // `Object.getOwnPropertyDescriptor` method
477
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
478
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
479
- O = toIndexedObject$2(O);
480
- P = toPropertyKey$1(P);
481
- if (IE8_DOM_DEFINE$1) try {
482
- return $getOwnPropertyDescriptor$1(O, P);
483
- } catch (error) { /* empty */ }
484
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
485
- };
486
-
487
- var objectDefineProperty = {};
488
-
489
- var DESCRIPTORS$5 = descriptors;
490
- var fails$3 = fails$9;
491
-
492
- // V8 ~ Chrome 36-
493
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
494
- var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
495
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
496
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
497
- value: 42,
498
- writable: false
499
- }).prototype != 42;
500
- });
501
-
502
- var isObject$1 = isObject$5;
503
-
504
- var $String = String;
505
- var $TypeError$1 = TypeError;
506
-
507
- // `Assert: Type(argument) is Object`
508
- var anObject$2 = function (argument) {
509
- if (isObject$1(argument)) return argument;
510
- throw $TypeError$1($String(argument) + ' is not an object');
511
- };
512
-
513
- var DESCRIPTORS$4 = descriptors;
514
- var IE8_DOM_DEFINE = ie8DomDefine;
515
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
516
- var anObject$1 = anObject$2;
517
- var toPropertyKey = toPropertyKey$2;
518
-
519
- var $TypeError = TypeError;
520
- // eslint-disable-next-line es/no-object-defineproperty -- safe
521
- var $defineProperty = Object.defineProperty;
522
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
523
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
524
- var ENUMERABLE = 'enumerable';
525
- var CONFIGURABLE$1 = 'configurable';
526
- var WRITABLE = 'writable';
527
-
528
- // `Object.defineProperty` method
529
- // https://tc39.es/ecma262/#sec-object.defineproperty
530
- objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
531
- anObject$1(O);
532
- P = toPropertyKey(P);
533
- anObject$1(Attributes);
534
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
535
- var current = $getOwnPropertyDescriptor(O, P);
536
- if (current && current[WRITABLE]) {
537
- O[P] = Attributes.value;
538
- Attributes = {
539
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
540
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
541
- writable: false
542
- };
543
- }
544
- } return $defineProperty(O, P, Attributes);
545
- } : $defineProperty : function defineProperty(O, P, Attributes) {
546
- anObject$1(O);
547
- P = toPropertyKey(P);
548
- anObject$1(Attributes);
549
- if (IE8_DOM_DEFINE) try {
550
- return $defineProperty(O, P, Attributes);
551
- } catch (error) { /* empty */ }
552
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
553
- if ('value' in Attributes) O[P] = Attributes.value;
554
- return O;
555
- };
556
-
557
- var DESCRIPTORS$3 = descriptors;
558
- var definePropertyModule$2 = objectDefineProperty;
559
- var createPropertyDescriptor = createPropertyDescriptor$2;
560
-
561
- var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
562
- return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
563
- } : function (object, key, value) {
564
- object[key] = value;
565
- return object;
566
- };
567
-
568
- var makeBuiltIn$2 = {exports: {}};
569
-
570
- var DESCRIPTORS$2 = descriptors;
571
- var hasOwn$4 = hasOwnProperty_1;
572
-
573
- var FunctionPrototype = Function.prototype;
574
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
575
- var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
576
-
577
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
578
- // additional protection from minified / mangled / dropped function names
579
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
580
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
581
-
582
- var functionName = {
583
- EXISTS: EXISTS,
584
- PROPER: PROPER,
585
- CONFIGURABLE: CONFIGURABLE
586
- };
587
-
588
- var uncurryThis$3 = functionUncurryThis;
589
- var isCallable$4 = isCallable$a;
590
- var store$1 = sharedStore;
591
-
592
- var functionToString = uncurryThis$3(Function.toString);
593
-
594
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
595
- if (!isCallable$4(store$1.inspectSource)) {
596
- store$1.inspectSource = function (it) {
597
- return functionToString(it);
598
- };
599
- }
600
-
601
- var inspectSource$1 = store$1.inspectSource;
602
-
603
- var global$3 = global$a;
604
- var isCallable$3 = isCallable$a;
605
-
606
- var WeakMap$1 = global$3.WeakMap;
607
-
608
- var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
609
-
610
- var shared$1 = shared$3.exports;
611
- var uid = uid$2;
612
-
613
- var keys = shared$1('keys');
614
-
615
- var sharedKey$1 = function (key) {
616
- return keys[key] || (keys[key] = uid(key));
617
- };
618
-
619
- var hiddenKeys$3 = {};
620
-
621
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
622
- var global$2 = global$a;
623
- var isObject = isObject$5;
624
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
625
- var hasOwn$3 = hasOwnProperty_1;
626
- var shared = sharedStore;
627
- var sharedKey = sharedKey$1;
628
- var hiddenKeys$2 = hiddenKeys$3;
629
-
630
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
631
- var TypeError$1 = global$2.TypeError;
632
- var WeakMap = global$2.WeakMap;
633
- var set, get, has;
634
-
635
- var enforce = function (it) {
636
- return has(it) ? get(it) : set(it, {});
637
- };
638
-
639
- var getterFor = function (TYPE) {
640
- return function (it) {
641
- var state;
642
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
643
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
644
- } return state;
645
- };
646
- };
647
-
648
- if (NATIVE_WEAK_MAP || shared.state) {
649
- var store = shared.state || (shared.state = new WeakMap());
650
- /* eslint-disable no-self-assign -- prototype methods protection */
651
- store.get = store.get;
652
- store.has = store.has;
653
- store.set = store.set;
654
- /* eslint-enable no-self-assign -- prototype methods protection */
655
- set = function (it, metadata) {
656
- if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
657
- metadata.facade = it;
658
- store.set(it, metadata);
659
- return metadata;
660
- };
661
- get = function (it) {
662
- return store.get(it) || {};
663
- };
664
- has = function (it) {
665
- return store.has(it);
666
- };
667
- } else {
668
- var STATE = sharedKey('state');
669
- hiddenKeys$2[STATE] = true;
670
- set = function (it, metadata) {
671
- if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
672
- metadata.facade = it;
673
- createNonEnumerableProperty$1(it, STATE, metadata);
674
- return metadata;
675
- };
676
- get = function (it) {
677
- return hasOwn$3(it, STATE) ? it[STATE] : {};
678
- };
679
- has = function (it) {
680
- return hasOwn$3(it, STATE);
681
- };
682
- }
683
-
684
- var internalState = {
685
- set: set,
686
- get: get,
687
- has: has,
688
- enforce: enforce,
689
- getterFor: getterFor
690
- };
691
-
692
- var fails$2 = fails$9;
693
- var isCallable$2 = isCallable$a;
694
- var hasOwn$2 = hasOwnProperty_1;
695
- var DESCRIPTORS$1 = descriptors;
696
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
697
- var inspectSource = inspectSource$1;
698
- var InternalStateModule = internalState;
699
-
700
- var enforceInternalState = InternalStateModule.enforce;
701
- var getInternalState = InternalStateModule.get;
702
- // eslint-disable-next-line es/no-object-defineproperty -- safe
703
- var defineProperty$1 = Object.defineProperty;
704
-
705
- var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
706
- return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
707
- });
708
-
709
- var TEMPLATE = String(String).split('String');
710
-
711
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
712
- if (String(name).slice(0, 7) === 'Symbol(') {
713
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
714
- }
715
- if (options && options.getter) name = 'get ' + name;
716
- if (options && options.setter) name = 'set ' + name;
717
- if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
718
- if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
719
- else value.name = name;
720
- }
721
- if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
722
- defineProperty$1(value, 'length', { value: options.arity });
723
- }
724
- try {
725
- if (options && hasOwn$2(options, 'constructor') && options.constructor) {
726
- if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
727
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
728
- } else if (value.prototype) value.prototype = undefined;
729
- } catch (error) { /* empty */ }
730
- var state = enforceInternalState(value);
731
- if (!hasOwn$2(state, 'source')) {
732
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
733
- } return value;
734
- };
735
-
736
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
737
- // eslint-disable-next-line no-extend-native -- required
738
- Function.prototype.toString = makeBuiltIn$1(function toString() {
739
- return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
740
- }, 'toString');
741
-
742
- var isCallable$1 = isCallable$a;
743
- var definePropertyModule$1 = objectDefineProperty;
744
- var makeBuiltIn = makeBuiltIn$2.exports;
745
- var defineGlobalProperty$1 = defineGlobalProperty$3;
746
-
747
- var defineBuiltIn$1 = function (O, key, value, options) {
748
- if (!options) options = {};
749
- var simple = options.enumerable;
750
- var name = options.name !== undefined ? options.name : key;
751
- if (isCallable$1(value)) makeBuiltIn(value, name, options);
752
- if (options.global) {
753
- if (simple) O[key] = value;
754
- else defineGlobalProperty$1(key, value);
755
- } else {
756
- try {
757
- if (!options.unsafe) delete O[key];
758
- else if (O[key]) simple = true;
759
- } catch (error) { /* empty */ }
760
- if (simple) O[key] = value;
761
- else definePropertyModule$1.f(O, key, {
762
- value: value,
763
- enumerable: false,
764
- configurable: !options.nonConfigurable,
765
- writable: !options.nonWritable
766
- });
767
- } return O;
768
- };
769
-
770
- var objectGetOwnPropertyNames = {};
771
-
772
- var ceil = Math.ceil;
773
- var floor = Math.floor;
774
-
775
- // `Math.trunc` method
776
- // https://tc39.es/ecma262/#sec-math.trunc
777
- // eslint-disable-next-line es/no-math-trunc -- safe
778
- var mathTrunc = Math.trunc || function trunc(x) {
779
- var n = +x;
780
- return (n > 0 ? floor : ceil)(n);
781
- };
782
-
783
- var trunc = mathTrunc;
784
-
785
- // `ToIntegerOrInfinity` abstract operation
786
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
787
- var toIntegerOrInfinity$2 = function (argument) {
788
- var number = +argument;
789
- // eslint-disable-next-line no-self-compare -- NaN check
790
- return number !== number || number === 0 ? 0 : trunc(number);
791
- };
792
-
793
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
794
-
795
- var max = Math.max;
796
- var min$1 = Math.min;
797
-
798
- // Helper for a popular repeating case of the spec:
799
- // Let integer be ? ToInteger(index).
800
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
801
- var toAbsoluteIndex$1 = function (index, length) {
802
- var integer = toIntegerOrInfinity$1(index);
803
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
804
- };
805
-
806
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
807
-
808
- var min = Math.min;
809
-
810
- // `ToLength` abstract operation
811
- // https://tc39.es/ecma262/#sec-tolength
812
- var toLength$1 = function (argument) {
813
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
814
- };
815
-
816
- var toLength = toLength$1;
817
-
818
- // `LengthOfArrayLike` abstract operation
819
- // https://tc39.es/ecma262/#sec-lengthofarraylike
820
- var lengthOfArrayLike$1 = function (obj) {
821
- return toLength(obj.length);
822
- };
823
-
824
- var toIndexedObject$1 = toIndexedObject$3;
825
- var toAbsoluteIndex = toAbsoluteIndex$1;
826
- var lengthOfArrayLike = lengthOfArrayLike$1;
827
-
828
- // `Array.prototype.{ indexOf, includes }` methods implementation
829
- var createMethod = function (IS_INCLUDES) {
830
- return function ($this, el, fromIndex) {
831
- var O = toIndexedObject$1($this);
832
- var length = lengthOfArrayLike(O);
833
- var index = toAbsoluteIndex(fromIndex, length);
834
- var value;
835
- // Array#includes uses SameValueZero equality algorithm
836
- // eslint-disable-next-line no-self-compare -- NaN check
837
- if (IS_INCLUDES && el != el) while (length > index) {
838
- value = O[index++];
839
- // eslint-disable-next-line no-self-compare -- NaN check
840
- if (value != value) return true;
841
- // Array#indexOf ignores holes, Array#includes - not
842
- } else for (;length > index; index++) {
843
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
844
- } return !IS_INCLUDES && -1;
845
- };
846
- };
847
-
848
- var arrayIncludes = {
849
- // `Array.prototype.includes` method
850
- // https://tc39.es/ecma262/#sec-array.prototype.includes
851
- includes: createMethod(true),
852
- // `Array.prototype.indexOf` method
853
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
854
- indexOf: createMethod(false)
855
- };
856
-
857
- var uncurryThis$2 = functionUncurryThis;
858
- var hasOwn$1 = hasOwnProperty_1;
859
- var toIndexedObject = toIndexedObject$3;
860
- var indexOf = arrayIncludes.indexOf;
861
- var hiddenKeys$1 = hiddenKeys$3;
862
-
863
- var push = uncurryThis$2([].push);
864
-
865
- var objectKeysInternal = function (object, names) {
866
- var O = toIndexedObject(object);
867
- var i = 0;
868
- var result = [];
869
- var key;
870
- for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
871
- // Don't enum bug & hidden keys
872
- while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
873
- ~indexOf(result, key) || push(result, key);
874
- }
875
- return result;
876
- };
877
-
878
- // IE8- don't enum bug keys
879
- var enumBugKeys$2 = [
880
- 'constructor',
881
- 'hasOwnProperty',
882
- 'isPrototypeOf',
883
- 'propertyIsEnumerable',
884
- 'toLocaleString',
885
- 'toString',
886
- 'valueOf'
887
- ];
888
-
889
- var internalObjectKeys$1 = objectKeysInternal;
890
- var enumBugKeys$1 = enumBugKeys$2;
891
-
892
- var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
893
-
894
- // `Object.getOwnPropertyNames` method
895
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
896
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
897
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
898
- return internalObjectKeys$1(O, hiddenKeys);
899
- };
900
-
901
- var objectGetOwnPropertySymbols = {};
902
-
903
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
904
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
905
-
906
- var getBuiltIn = getBuiltIn$3;
907
- var uncurryThis$1 = functionUncurryThis;
908
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
909
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
910
- var anObject = anObject$2;
911
-
912
- var concat$1 = uncurryThis$1([].concat);
913
-
914
- // all object keys, includes non-enumerable and symbols
915
- var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
916
- var keys = getOwnPropertyNamesModule.f(anObject(it));
917
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
918
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
919
- };
920
-
921
- var hasOwn = hasOwnProperty_1;
922
- var ownKeys = ownKeys$1;
923
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
924
- var definePropertyModule = objectDefineProperty;
925
-
926
- var copyConstructorProperties$1 = function (target, source, exceptions) {
927
- var keys = ownKeys(source);
928
- var defineProperty = definePropertyModule.f;
929
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
930
- for (var i = 0; i < keys.length; i++) {
931
- var key = keys[i];
932
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
933
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
934
- }
935
- }
936
- };
937
-
938
- var fails$1 = fails$9;
939
- var isCallable = isCallable$a;
940
-
941
- var replacement = /#|\.prototype\./;
942
-
943
- var isForced$1 = function (feature, detection) {
944
- var value = data[normalize(feature)];
945
- return value == POLYFILL ? true
946
- : value == NATIVE ? false
947
- : isCallable(detection) ? fails$1(detection)
948
- : !!detection;
949
- };
950
-
951
- var normalize = isForced$1.normalize = function (string) {
952
- return String(string).replace(replacement, '.').toLowerCase();
953
- };
954
-
955
- var data = isForced$1.data = {};
956
- var NATIVE = isForced$1.NATIVE = 'N';
957
- var POLYFILL = isForced$1.POLYFILL = 'P';
958
-
959
- var isForced_1 = isForced$1;
960
-
961
- var global$1 = global$a;
962
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
963
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
964
- var defineBuiltIn = defineBuiltIn$1;
965
- var defineGlobalProperty = defineGlobalProperty$3;
966
- var copyConstructorProperties = copyConstructorProperties$1;
967
- var isForced = isForced_1;
968
-
969
- /*
970
- options.target - name of the target object
971
- options.global - target is the global object
972
- options.stat - export as static methods of target
973
- options.proto - export as prototype methods of target
974
- options.real - real prototype method for the `pure` version
975
- options.forced - export even if the native feature is available
976
- options.bind - bind methods to the target, required for the `pure` version
977
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
978
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
979
- options.sham - add a flag to not completely full polyfills
980
- options.enumerable - export as enumerable property
981
- options.dontCallGetSet - prevent calling a getter on target
982
- options.name - the .name of the function if it does not match the key
983
- */
984
- var _export = function (options, source) {
985
- var TARGET = options.target;
986
- var GLOBAL = options.global;
987
- var STATIC = options.stat;
988
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
989
- if (GLOBAL) {
990
- target = global$1;
991
- } else if (STATIC) {
992
- target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
993
- } else {
994
- target = (global$1[TARGET] || {}).prototype;
995
- }
996
- if (target) for (key in source) {
997
- sourceProperty = source[key];
998
- if (options.dontCallGetSet) {
999
- descriptor = getOwnPropertyDescriptor(target, key);
1000
- targetProperty = descriptor && descriptor.value;
1001
- } else targetProperty = target[key];
1002
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1003
- // contained in target
1004
- if (!FORCED && targetProperty !== undefined) {
1005
- if (typeof sourceProperty == typeof targetProperty) continue;
1006
- copyConstructorProperties(sourceProperty, targetProperty);
1007
- }
1008
- // add a flag to not completely full polyfills
1009
- if (options.sham || (targetProperty && targetProperty.sham)) {
1010
- createNonEnumerableProperty(sourceProperty, 'sham', true);
1011
- }
1012
- defineBuiltIn(target, key, sourceProperty, options);
1013
- }
1014
- };
1015
-
1016
- var internalObjectKeys = objectKeysInternal;
1017
- var enumBugKeys = enumBugKeys$2;
1018
-
1019
- // `Object.keys` method
1020
- // https://tc39.es/ecma262/#sec-object.keys
1021
- // eslint-disable-next-line es/no-object-keys -- safe
1022
- var objectKeys$1 = Object.keys || function keys(O) {
1023
- return internalObjectKeys(O, enumBugKeys);
1024
- };
1025
-
1026
- var DESCRIPTORS = descriptors;
1027
- var uncurryThis = functionUncurryThis;
1028
- var call = functionCall;
1029
- var fails = fails$9;
1030
- var objectKeys = objectKeys$1;
1031
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1032
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1033
- var toObject = toObject$2;
1034
- var IndexedObject = indexedObject;
1035
-
1036
- // eslint-disable-next-line es/no-object-assign -- safe
1037
- var $assign = Object.assign;
1038
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1039
- var defineProperty = Object.defineProperty;
1040
- var concat = uncurryThis([].concat);
1041
-
1042
- // `Object.assign` method
1043
- // https://tc39.es/ecma262/#sec-object.assign
1044
- var objectAssign = !$assign || fails(function () {
1045
- // should have correct order of operations (Edge bug)
1046
- if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1047
- enumerable: true,
1048
- get: function () {
1049
- defineProperty(this, 'b', {
1050
- value: 3,
1051
- enumerable: false
1052
- });
1053
- }
1054
- }), { b: 2 })).b !== 1) return true;
1055
- // should work with symbols and should have deterministic property order (V8 bug)
1056
- var A = {};
1057
- var B = {};
1058
- // eslint-disable-next-line es/no-symbol -- safe
1059
- var symbol = Symbol();
1060
- var alphabet = 'abcdefghijklmnopqrst';
1061
- A[symbol] = 7;
1062
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1063
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1064
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1065
- var T = toObject(target);
1066
- var argumentsLength = arguments.length;
1067
- var index = 1;
1068
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1069
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1070
- while (argumentsLength > index) {
1071
- var S = IndexedObject(arguments[index++]);
1072
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1073
- var length = keys.length;
1074
- var j = 0;
1075
- var key;
1076
- while (length > j) {
1077
- key = keys[j++];
1078
- if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1079
- }
1080
- } return T;
1081
- } : $assign;
1082
-
1083
- var $ = _export;
1084
- var assign = objectAssign;
1085
-
1086
- // `Object.assign` method
1087
- // https://tc39.es/ecma262/#sec-object.assign
1088
- // eslint-disable-next-line es/no-object-assign -- required for testing
1089
- $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1090
- assign: assign
1091
- });
1092
-
1093
10
  /******************************************************************************
1094
11
  Copyright (c) Microsoft Corporation.
1095
12