@trackunit/react-core-hooks 0.0.1-alpha-afcc978985.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.js ADDED
@@ -0,0 +1,2168 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { useFlags } from 'launchdarkly-react-client-sdk';
3
+ import * as React from 'react';
4
+ import React__default, { useContext, createContext } from 'react';
5
+ import { NavigationRuntime, AssetRuntime, CustomFieldRuntime, RestRuntime } from '@trackunit/iris-app-runtime-core';
6
+ import { useLocation } from 'react-router-dom';
7
+
8
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
+
10
+ var fails$f = function (exec) {
11
+ try {
12
+ return !!exec();
13
+ } catch (error) {
14
+ return true;
15
+ }
16
+ };
17
+
18
+ var fails$e = fails$f;
19
+
20
+ var functionBindNative = !fails$e(function () {
21
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22
+ var test = (function () { /* empty */ }).bind();
23
+ // eslint-disable-next-line no-prototype-builtins -- safe
24
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
25
+ });
26
+
27
+ var NATIVE_BIND$1 = functionBindNative;
28
+
29
+ var FunctionPrototype$1 = Function.prototype;
30
+ var call$9 = FunctionPrototype$1.call;
31
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$9, call$9);
32
+
33
+ var functionUncurryThisRaw = function (fn) {
34
+ return NATIVE_BIND$1 ? uncurryThisWithBind(fn) : function () {
35
+ return call$9.apply(fn, arguments);
36
+ };
37
+ };
38
+
39
+ var uncurryThisRaw$1 = functionUncurryThisRaw;
40
+
41
+ var toString$4 = uncurryThisRaw$1({}.toString);
42
+ var stringSlice$1 = uncurryThisRaw$1(''.slice);
43
+
44
+ var classofRaw$2 = function (it) {
45
+ return stringSlice$1(toString$4(it), 8, -1);
46
+ };
47
+
48
+ var classofRaw$1 = classofRaw$2;
49
+ var uncurryThisRaw = functionUncurryThisRaw;
50
+
51
+ var functionUncurryThis = function (fn) {
52
+ // Nashorn bug:
53
+ // https://github.com/zloirock/core-js/issues/1128
54
+ // https://github.com/zloirock/core-js/issues/1130
55
+ if (classofRaw$1(fn) === 'Function') return uncurryThisRaw(fn);
56
+ };
57
+
58
+ var uncurryThis$a = functionUncurryThis;
59
+ var fails$d = fails$f;
60
+ var classof$3 = classofRaw$2;
61
+
62
+ var $Object$4 = Object;
63
+ var split = uncurryThis$a(''.split);
64
+
65
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
66
+ var indexedObject = fails$d(function () {
67
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
68
+ // eslint-disable-next-line no-prototype-builtins -- safe
69
+ return !$Object$4('z').propertyIsEnumerable(0);
70
+ }) ? function (it) {
71
+ return classof$3(it) == 'String' ? split(it, '') : $Object$4(it);
72
+ } : $Object$4;
73
+
74
+ // we can't use just `it == null` since of `document.all` special case
75
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
76
+ var isNullOrUndefined$3 = function (it) {
77
+ return it === null || it === undefined;
78
+ };
79
+
80
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
81
+
82
+ var $TypeError$7 = TypeError;
83
+
84
+ // `RequireObjectCoercible` abstract operation
85
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
86
+ var requireObjectCoercible$3 = function (it) {
87
+ if (isNullOrUndefined$2(it)) throw $TypeError$7("Can't call method on " + it);
88
+ return it;
89
+ };
90
+
91
+ // toObject with fallback for non-array-like ES3 strings
92
+ var IndexedObject$1 = indexedObject;
93
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
94
+
95
+ var toIndexedObject$5 = function (it) {
96
+ return IndexedObject$1(requireObjectCoercible$2(it));
97
+ };
98
+
99
+ var check = function (it) {
100
+ return it && it.Math == Math && it;
101
+ };
102
+
103
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
104
+ var global$e =
105
+ // eslint-disable-next-line es/no-global-this -- safe
106
+ check(typeof globalThis == 'object' && globalThis) ||
107
+ check(typeof window == 'object' && window) ||
108
+ // eslint-disable-next-line no-restricted-globals -- safe
109
+ check(typeof self == 'object' && self) ||
110
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
111
+ // eslint-disable-next-line no-new-func -- fallback
112
+ (function () { return this; })() || Function('return this')();
113
+
114
+ var shared$4 = {exports: {}};
115
+
116
+ var global$d = global$e;
117
+
118
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
119
+ var defineProperty$5 = Object.defineProperty;
120
+
121
+ var defineGlobalProperty$3 = function (key, value) {
122
+ try {
123
+ defineProperty$5(global$d, key, { value: value, configurable: true, writable: true });
124
+ } catch (error) {
125
+ global$d[key] = value;
126
+ } return value;
127
+ };
128
+
129
+ var global$c = global$e;
130
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
131
+
132
+ var SHARED = '__core-js_shared__';
133
+ var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
134
+
135
+ var sharedStore = store$3;
136
+
137
+ var store$2 = sharedStore;
138
+
139
+ (shared$4.exports = function (key, value) {
140
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
141
+ })('versions', []).push({
142
+ version: '3.25.5',
143
+ mode: 'global',
144
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
145
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
146
+ source: 'https://github.com/zloirock/core-js'
147
+ });
148
+
149
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
150
+
151
+ var $Object$3 = Object;
152
+
153
+ // `ToObject` abstract operation
154
+ // https://tc39.es/ecma262/#sec-toobject
155
+ var toObject$3 = function (argument) {
156
+ return $Object$3(requireObjectCoercible$1(argument));
157
+ };
158
+
159
+ var uncurryThis$9 = functionUncurryThis;
160
+ var toObject$2 = toObject$3;
161
+
162
+ var hasOwnProperty = uncurryThis$9({}.hasOwnProperty);
163
+
164
+ // `HasOwnProperty` abstract operation
165
+ // https://tc39.es/ecma262/#sec-hasownproperty
166
+ // eslint-disable-next-line es/no-object-hasown -- safe
167
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
168
+ return hasOwnProperty(toObject$2(it), key);
169
+ };
170
+
171
+ var uncurryThis$8 = functionUncurryThis;
172
+
173
+ var id = 0;
174
+ var postfix = Math.random();
175
+ var toString$3 = uncurryThis$8(1.0.toString);
176
+
177
+ var uid$2 = function (key) {
178
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
179
+ };
180
+
181
+ var documentAll$2 = typeof document == 'object' && document.all;
182
+
183
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
184
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
185
+
186
+ var documentAll_1 = {
187
+ all: documentAll$2,
188
+ IS_HTMLDDA: IS_HTMLDDA
189
+ };
190
+
191
+ var $documentAll$1 = documentAll_1;
192
+
193
+ var documentAll$1 = $documentAll$1.all;
194
+
195
+ // `IsCallable` abstract operation
196
+ // https://tc39.es/ecma262/#sec-iscallable
197
+ var isCallable$g = $documentAll$1.IS_HTMLDDA ? function (argument) {
198
+ return typeof argument == 'function' || argument === documentAll$1;
199
+ } : function (argument) {
200
+ return typeof argument == 'function';
201
+ };
202
+
203
+ var global$b = global$e;
204
+ var isCallable$f = isCallable$g;
205
+
206
+ var aFunction = function (argument) {
207
+ return isCallable$f(argument) ? argument : undefined;
208
+ };
209
+
210
+ var getBuiltIn$4 = function (namespace, method) {
211
+ return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
212
+ };
213
+
214
+ var getBuiltIn$3 = getBuiltIn$4;
215
+
216
+ var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
217
+
218
+ var global$a = global$e;
219
+ var userAgent = engineUserAgent;
220
+
221
+ var process = global$a.process;
222
+ var Deno = global$a.Deno;
223
+ var versions = process && process.versions || Deno && Deno.version;
224
+ var v8 = versions && versions.v8;
225
+ var match, version;
226
+
227
+ if (v8) {
228
+ match = v8.split('.');
229
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
230
+ // but their correct versions are not interesting for us
231
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
232
+ }
233
+
234
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
235
+ // so check `userAgent` even if `.v8` exists, but 0
236
+ if (!version && userAgent) {
237
+ match = userAgent.match(/Edge\/(\d+)/);
238
+ if (!match || match[1] >= 74) {
239
+ match = userAgent.match(/Chrome\/(\d+)/);
240
+ if (match) version = +match[1];
241
+ }
242
+ }
243
+
244
+ var engineV8Version = version;
245
+
246
+ /* eslint-disable es/no-symbol -- required for testing */
247
+
248
+ var V8_VERSION = engineV8Version;
249
+ var fails$c = fails$f;
250
+
251
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
252
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
253
+ var symbol = Symbol();
254
+ // Chrome 38 Symbol has incorrect toString conversion
255
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
256
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
257
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
258
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
259
+ });
260
+
261
+ /* eslint-disable es/no-symbol -- required for testing */
262
+
263
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
264
+
265
+ var useSymbolAsUid = NATIVE_SYMBOL$1
266
+ && !Symbol.sham
267
+ && typeof Symbol.iterator == 'symbol';
268
+
269
+ var global$9 = global$e;
270
+ var shared$3 = shared$4.exports;
271
+ var hasOwn$8 = hasOwnProperty_1;
272
+ var uid$1 = uid$2;
273
+ var NATIVE_SYMBOL = symbolConstructorDetection;
274
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
275
+
276
+ var WellKnownSymbolsStore = shared$3('wks');
277
+ var Symbol$1 = global$9.Symbol;
278
+ var symbolFor = Symbol$1 && Symbol$1['for'];
279
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
280
+
281
+ var wellKnownSymbol$9 = function (name) {
282
+ if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
283
+ var description = 'Symbol.' + name;
284
+ if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
285
+ WellKnownSymbolsStore[name] = Symbol$1[name];
286
+ } else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
287
+ WellKnownSymbolsStore[name] = symbolFor(description);
288
+ } else {
289
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
290
+ }
291
+ } return WellKnownSymbolsStore[name];
292
+ };
293
+
294
+ var isCallable$e = isCallable$g;
295
+ var $documentAll = documentAll_1;
296
+
297
+ var documentAll = $documentAll.all;
298
+
299
+ var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
300
+ return typeof it == 'object' ? it !== null : isCallable$e(it) || it === documentAll;
301
+ } : function (it) {
302
+ return typeof it == 'object' ? it !== null : isCallable$e(it);
303
+ };
304
+
305
+ var isObject$5 = isObject$6;
306
+
307
+ var $String$3 = String;
308
+ var $TypeError$6 = TypeError;
309
+
310
+ // `Assert: Type(argument) is Object`
311
+ var anObject$8 = function (argument) {
312
+ if (isObject$5(argument)) return argument;
313
+ throw $TypeError$6($String$3(argument) + ' is not an object');
314
+ };
315
+
316
+ var objectDefineProperties = {};
317
+
318
+ var fails$b = fails$f;
319
+
320
+ // Detect IE8's incomplete defineProperty implementation
321
+ var descriptors = !fails$b(function () {
322
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
323
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
324
+ });
325
+
326
+ var DESCRIPTORS$9 = descriptors;
327
+ var fails$a = fails$f;
328
+
329
+ // V8 ~ Chrome 36-
330
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
331
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$a(function () {
332
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
333
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
334
+ value: 42,
335
+ writable: false
336
+ }).prototype != 42;
337
+ });
338
+
339
+ var objectDefineProperty = {};
340
+
341
+ var global$8 = global$e;
342
+ var isObject$4 = isObject$6;
343
+
344
+ var document$1 = global$8.document;
345
+ // typeof document.createElement is 'object' in old IE
346
+ var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
347
+
348
+ var documentCreateElement$2 = function (it) {
349
+ return EXISTS$1 ? document$1.createElement(it) : {};
350
+ };
351
+
352
+ var DESCRIPTORS$8 = descriptors;
353
+ var fails$9 = fails$f;
354
+ var createElement = documentCreateElement$2;
355
+
356
+ // Thanks to IE8 for its funny defineProperty
357
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$9(function () {
358
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
359
+ return Object.defineProperty(createElement('div'), 'a', {
360
+ get: function () { return 7; }
361
+ }).a != 7;
362
+ });
363
+
364
+ var NATIVE_BIND = functionBindNative;
365
+
366
+ var call$8 = Function.prototype.call;
367
+
368
+ var functionCall = NATIVE_BIND ? call$8.bind(call$8) : function () {
369
+ return call$8.apply(call$8, arguments);
370
+ };
371
+
372
+ var uncurryThis$7 = functionUncurryThis;
373
+
374
+ var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
375
+
376
+ var getBuiltIn$2 = getBuiltIn$4;
377
+ var isCallable$d = isCallable$g;
378
+ var isPrototypeOf = objectIsPrototypeOf;
379
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
380
+
381
+ var $Object$2 = Object;
382
+
383
+ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
384
+ return typeof it == 'symbol';
385
+ } : function (it) {
386
+ var $Symbol = getBuiltIn$2('Symbol');
387
+ return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
388
+ };
389
+
390
+ var $String$2 = String;
391
+
392
+ var tryToString$1 = function (argument) {
393
+ try {
394
+ return $String$2(argument);
395
+ } catch (error) {
396
+ return 'Object';
397
+ }
398
+ };
399
+
400
+ var isCallable$c = isCallable$g;
401
+ var tryToString = tryToString$1;
402
+
403
+ var $TypeError$5 = TypeError;
404
+
405
+ // `Assert: IsCallable(argument) is true`
406
+ var aCallable$1 = function (argument) {
407
+ if (isCallable$c(argument)) return argument;
408
+ throw $TypeError$5(tryToString(argument) + ' is not a function');
409
+ };
410
+
411
+ var aCallable = aCallable$1;
412
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
413
+
414
+ // `GetMethod` abstract operation
415
+ // https://tc39.es/ecma262/#sec-getmethod
416
+ var getMethod$2 = function (V, P) {
417
+ var func = V[P];
418
+ return isNullOrUndefined$1(func) ? undefined : aCallable(func);
419
+ };
420
+
421
+ var call$7 = functionCall;
422
+ var isCallable$b = isCallable$g;
423
+ var isObject$3 = isObject$6;
424
+
425
+ var $TypeError$4 = TypeError;
426
+
427
+ // `OrdinaryToPrimitive` abstract operation
428
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
429
+ var ordinaryToPrimitive$1 = function (input, pref) {
430
+ var fn, val;
431
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$3(val = call$7(fn, input))) return val;
432
+ if (isCallable$b(fn = input.valueOf) && !isObject$3(val = call$7(fn, input))) return val;
433
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$3(val = call$7(fn, input))) return val;
434
+ throw $TypeError$4("Can't convert object to primitive value");
435
+ };
436
+
437
+ var call$6 = functionCall;
438
+ var isObject$2 = isObject$6;
439
+ var isSymbol$1 = isSymbol$2;
440
+ var getMethod$1 = getMethod$2;
441
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
442
+ var wellKnownSymbol$8 = wellKnownSymbol$9;
443
+
444
+ var $TypeError$3 = TypeError;
445
+ var TO_PRIMITIVE = wellKnownSymbol$8('toPrimitive');
446
+
447
+ // `ToPrimitive` abstract operation
448
+ // https://tc39.es/ecma262/#sec-toprimitive
449
+ var toPrimitive$1 = function (input, pref) {
450
+ if (!isObject$2(input) || isSymbol$1(input)) return input;
451
+ var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
452
+ var result;
453
+ if (exoticToPrim) {
454
+ if (pref === undefined) pref = 'default';
455
+ result = call$6(exoticToPrim, input, pref);
456
+ if (!isObject$2(result) || isSymbol$1(result)) return result;
457
+ throw $TypeError$3("Can't convert object to primitive value");
458
+ }
459
+ if (pref === undefined) pref = 'number';
460
+ return ordinaryToPrimitive(input, pref);
461
+ };
462
+
463
+ var toPrimitive = toPrimitive$1;
464
+ var isSymbol = isSymbol$2;
465
+
466
+ // `ToPropertyKey` abstract operation
467
+ // https://tc39.es/ecma262/#sec-topropertykey
468
+ var toPropertyKey$2 = function (argument) {
469
+ var key = toPrimitive(argument, 'string');
470
+ return isSymbol(key) ? key : key + '';
471
+ };
472
+
473
+ var DESCRIPTORS$7 = descriptors;
474
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
475
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
476
+ var anObject$7 = anObject$8;
477
+ var toPropertyKey$1 = toPropertyKey$2;
478
+
479
+ var $TypeError$2 = TypeError;
480
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
481
+ var $defineProperty = Object.defineProperty;
482
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
483
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
484
+ var ENUMERABLE = 'enumerable';
485
+ var CONFIGURABLE$1 = 'configurable';
486
+ var WRITABLE = 'writable';
487
+
488
+ // `Object.defineProperty` method
489
+ // https://tc39.es/ecma262/#sec-object.defineproperty
490
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
491
+ anObject$7(O);
492
+ P = toPropertyKey$1(P);
493
+ anObject$7(Attributes);
494
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
495
+ var current = $getOwnPropertyDescriptor$1(O, P);
496
+ if (current && current[WRITABLE]) {
497
+ O[P] = Attributes.value;
498
+ Attributes = {
499
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
500
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
501
+ writable: false
502
+ };
503
+ }
504
+ } return $defineProperty(O, P, Attributes);
505
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
506
+ anObject$7(O);
507
+ P = toPropertyKey$1(P);
508
+ anObject$7(Attributes);
509
+ if (IE8_DOM_DEFINE$1) try {
510
+ return $defineProperty(O, P, Attributes);
511
+ } catch (error) { /* empty */ }
512
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
513
+ if ('value' in Attributes) O[P] = Attributes.value;
514
+ return O;
515
+ };
516
+
517
+ var ceil = Math.ceil;
518
+ var floor = Math.floor;
519
+
520
+ // `Math.trunc` method
521
+ // https://tc39.es/ecma262/#sec-math.trunc
522
+ // eslint-disable-next-line es/no-math-trunc -- safe
523
+ var mathTrunc = Math.trunc || function trunc(x) {
524
+ var n = +x;
525
+ return (n > 0 ? floor : ceil)(n);
526
+ };
527
+
528
+ var trunc = mathTrunc;
529
+
530
+ // `ToIntegerOrInfinity` abstract operation
531
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
532
+ var toIntegerOrInfinity$2 = function (argument) {
533
+ var number = +argument;
534
+ // eslint-disable-next-line no-self-compare -- NaN check
535
+ return number !== number || number === 0 ? 0 : trunc(number);
536
+ };
537
+
538
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
539
+
540
+ var max = Math.max;
541
+ var min$1 = Math.min;
542
+
543
+ // Helper for a popular repeating case of the spec:
544
+ // Let integer be ? ToInteger(index).
545
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
546
+ var toAbsoluteIndex$1 = function (index, length) {
547
+ var integer = toIntegerOrInfinity$1(index);
548
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
549
+ };
550
+
551
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
552
+
553
+ var min = Math.min;
554
+
555
+ // `ToLength` abstract operation
556
+ // https://tc39.es/ecma262/#sec-tolength
557
+ var toLength$1 = function (argument) {
558
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
559
+ };
560
+
561
+ var toLength = toLength$1;
562
+
563
+ // `LengthOfArrayLike` abstract operation
564
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
565
+ var lengthOfArrayLike$1 = function (obj) {
566
+ return toLength(obj.length);
567
+ };
568
+
569
+ var toIndexedObject$4 = toIndexedObject$5;
570
+ var toAbsoluteIndex = toAbsoluteIndex$1;
571
+ var lengthOfArrayLike = lengthOfArrayLike$1;
572
+
573
+ // `Array.prototype.{ indexOf, includes }` methods implementation
574
+ var createMethod = function (IS_INCLUDES) {
575
+ return function ($this, el, fromIndex) {
576
+ var O = toIndexedObject$4($this);
577
+ var length = lengthOfArrayLike(O);
578
+ var index = toAbsoluteIndex(fromIndex, length);
579
+ var value;
580
+ // Array#includes uses SameValueZero equality algorithm
581
+ // eslint-disable-next-line no-self-compare -- NaN check
582
+ if (IS_INCLUDES && el != el) while (length > index) {
583
+ value = O[index++];
584
+ // eslint-disable-next-line no-self-compare -- NaN check
585
+ if (value != value) return true;
586
+ // Array#indexOf ignores holes, Array#includes - not
587
+ } else for (;length > index; index++) {
588
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
589
+ } return !IS_INCLUDES && -1;
590
+ };
591
+ };
592
+
593
+ var arrayIncludes = {
594
+ // `Array.prototype.includes` method
595
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
596
+ includes: createMethod(true),
597
+ // `Array.prototype.indexOf` method
598
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
599
+ indexOf: createMethod(false)
600
+ };
601
+
602
+ var hiddenKeys$4 = {};
603
+
604
+ var uncurryThis$6 = functionUncurryThis;
605
+ var hasOwn$7 = hasOwnProperty_1;
606
+ var toIndexedObject$3 = toIndexedObject$5;
607
+ var indexOf$1 = arrayIncludes.indexOf;
608
+ var hiddenKeys$3 = hiddenKeys$4;
609
+
610
+ var push = uncurryThis$6([].push);
611
+
612
+ var objectKeysInternal = function (object, names) {
613
+ var O = toIndexedObject$3(object);
614
+ var i = 0;
615
+ var result = [];
616
+ var key;
617
+ for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
618
+ // Don't enum bug & hidden keys
619
+ while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
620
+ ~indexOf$1(result, key) || push(result, key);
621
+ }
622
+ return result;
623
+ };
624
+
625
+ // IE8- don't enum bug keys
626
+ var enumBugKeys$3 = [
627
+ 'constructor',
628
+ 'hasOwnProperty',
629
+ 'isPrototypeOf',
630
+ 'propertyIsEnumerable',
631
+ 'toLocaleString',
632
+ 'toString',
633
+ 'valueOf'
634
+ ];
635
+
636
+ var internalObjectKeys$1 = objectKeysInternal;
637
+ var enumBugKeys$2 = enumBugKeys$3;
638
+
639
+ // `Object.keys` method
640
+ // https://tc39.es/ecma262/#sec-object.keys
641
+ // eslint-disable-next-line es/no-object-keys -- safe
642
+ var objectKeys$2 = Object.keys || function keys(O) {
643
+ return internalObjectKeys$1(O, enumBugKeys$2);
644
+ };
645
+
646
+ var DESCRIPTORS$6 = descriptors;
647
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
648
+ var definePropertyModule$3 = objectDefineProperty;
649
+ var anObject$6 = anObject$8;
650
+ var toIndexedObject$2 = toIndexedObject$5;
651
+ var objectKeys$1 = objectKeys$2;
652
+
653
+ // `Object.defineProperties` method
654
+ // https://tc39.es/ecma262/#sec-object.defineproperties
655
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
656
+ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
657
+ anObject$6(O);
658
+ var props = toIndexedObject$2(Properties);
659
+ var keys = objectKeys$1(Properties);
660
+ var length = keys.length;
661
+ var index = 0;
662
+ var key;
663
+ while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
664
+ return O;
665
+ };
666
+
667
+ var getBuiltIn$1 = getBuiltIn$4;
668
+
669
+ var html$1 = getBuiltIn$1('document', 'documentElement');
670
+
671
+ var shared$2 = shared$4.exports;
672
+ var uid = uid$2;
673
+
674
+ var keys = shared$2('keys');
675
+
676
+ var sharedKey$3 = function (key) {
677
+ return keys[key] || (keys[key] = uid(key));
678
+ };
679
+
680
+ /* global ActiveXObject -- old IE, WSH */
681
+
682
+ var anObject$5 = anObject$8;
683
+ var definePropertiesModule = objectDefineProperties;
684
+ var enumBugKeys$1 = enumBugKeys$3;
685
+ var hiddenKeys$2 = hiddenKeys$4;
686
+ var html = html$1;
687
+ var documentCreateElement$1 = documentCreateElement$2;
688
+ var sharedKey$2 = sharedKey$3;
689
+
690
+ var GT = '>';
691
+ var LT = '<';
692
+ var PROTOTYPE = 'prototype';
693
+ var SCRIPT = 'script';
694
+ var IE_PROTO$1 = sharedKey$2('IE_PROTO');
695
+
696
+ var EmptyConstructor = function () { /* empty */ };
697
+
698
+ var scriptTag = function (content) {
699
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
700
+ };
701
+
702
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
703
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
704
+ activeXDocument.write(scriptTag(''));
705
+ activeXDocument.close();
706
+ var temp = activeXDocument.parentWindow.Object;
707
+ activeXDocument = null; // avoid memory leak
708
+ return temp;
709
+ };
710
+
711
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
712
+ var NullProtoObjectViaIFrame = function () {
713
+ // Thrash, waste and sodomy: IE GC bug
714
+ var iframe = documentCreateElement$1('iframe');
715
+ var JS = 'java' + SCRIPT + ':';
716
+ var iframeDocument;
717
+ iframe.style.display = 'none';
718
+ html.appendChild(iframe);
719
+ // https://github.com/zloirock/core-js/issues/475
720
+ iframe.src = String(JS);
721
+ iframeDocument = iframe.contentWindow.document;
722
+ iframeDocument.open();
723
+ iframeDocument.write(scriptTag('document.F=Object'));
724
+ iframeDocument.close();
725
+ return iframeDocument.F;
726
+ };
727
+
728
+ // Check for document.domain and active x support
729
+ // No need to use active x approach when document.domain is not set
730
+ // see https://github.com/es-shims/es5-shim/issues/150
731
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
732
+ // avoid IE GC bug
733
+ var activeXDocument;
734
+ var NullProtoObject = function () {
735
+ try {
736
+ activeXDocument = new ActiveXObject('htmlfile');
737
+ } catch (error) { /* ignore */ }
738
+ NullProtoObject = typeof document != 'undefined'
739
+ ? document.domain && activeXDocument
740
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
741
+ : NullProtoObjectViaIFrame()
742
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
743
+ var length = enumBugKeys$1.length;
744
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
745
+ return NullProtoObject();
746
+ };
747
+
748
+ hiddenKeys$2[IE_PROTO$1] = true;
749
+
750
+ // `Object.create` method
751
+ // https://tc39.es/ecma262/#sec-object.create
752
+ // eslint-disable-next-line es/no-object-create -- safe
753
+ var objectCreate = Object.create || function create(O, Properties) {
754
+ var result;
755
+ if (O !== null) {
756
+ EmptyConstructor[PROTOTYPE] = anObject$5(O);
757
+ result = new EmptyConstructor();
758
+ EmptyConstructor[PROTOTYPE] = null;
759
+ // add "__proto__" for Object.getPrototypeOf polyfill
760
+ result[IE_PROTO$1] = O;
761
+ } else result = NullProtoObject();
762
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
763
+ };
764
+
765
+ var wellKnownSymbol$7 = wellKnownSymbol$9;
766
+ var create$2 = objectCreate;
767
+ var defineProperty$4 = objectDefineProperty.f;
768
+
769
+ var UNSCOPABLES = wellKnownSymbol$7('unscopables');
770
+ var ArrayPrototype = Array.prototype;
771
+
772
+ // Array.prototype[@@unscopables]
773
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
774
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
775
+ defineProperty$4(ArrayPrototype, UNSCOPABLES, {
776
+ configurable: true,
777
+ value: create$2(null)
778
+ });
779
+ }
780
+
781
+ // add a key to Array.prototype[@@unscopables]
782
+ var addToUnscopables$1 = function (key) {
783
+ ArrayPrototype[UNSCOPABLES][key] = true;
784
+ };
785
+
786
+ var iterators = {};
787
+
788
+ var global$7 = global$e;
789
+ var isCallable$a = isCallable$g;
790
+
791
+ var WeakMap$1 = global$7.WeakMap;
792
+
793
+ var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
794
+
795
+ var createPropertyDescriptor$3 = function (bitmap, value) {
796
+ return {
797
+ enumerable: !(bitmap & 1),
798
+ configurable: !(bitmap & 2),
799
+ writable: !(bitmap & 4),
800
+ value: value
801
+ };
802
+ };
803
+
804
+ var DESCRIPTORS$5 = descriptors;
805
+ var definePropertyModule$2 = objectDefineProperty;
806
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
807
+
808
+ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
809
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
810
+ } : function (object, key, value) {
811
+ object[key] = value;
812
+ return object;
813
+ };
814
+
815
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
816
+ var global$6 = global$e;
817
+ var isObject$1 = isObject$6;
818
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
819
+ var hasOwn$6 = hasOwnProperty_1;
820
+ var shared$1 = sharedStore;
821
+ var sharedKey$1 = sharedKey$3;
822
+ var hiddenKeys$1 = hiddenKeys$4;
823
+
824
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
825
+ var TypeError$1 = global$6.TypeError;
826
+ var WeakMap = global$6.WeakMap;
827
+ var set, get, has;
828
+
829
+ var enforce = function (it) {
830
+ return has(it) ? get(it) : set(it, {});
831
+ };
832
+
833
+ var getterFor = function (TYPE) {
834
+ return function (it) {
835
+ var state;
836
+ if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
837
+ throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
838
+ } return state;
839
+ };
840
+ };
841
+
842
+ if (NATIVE_WEAK_MAP || shared$1.state) {
843
+ var store$1 = shared$1.state || (shared$1.state = new WeakMap());
844
+ /* eslint-disable no-self-assign -- prototype methods protection */
845
+ store$1.get = store$1.get;
846
+ store$1.has = store$1.has;
847
+ store$1.set = store$1.set;
848
+ /* eslint-enable no-self-assign -- prototype methods protection */
849
+ set = function (it, metadata) {
850
+ if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
851
+ metadata.facade = it;
852
+ store$1.set(it, metadata);
853
+ return metadata;
854
+ };
855
+ get = function (it) {
856
+ return store$1.get(it) || {};
857
+ };
858
+ has = function (it) {
859
+ return store$1.has(it);
860
+ };
861
+ } else {
862
+ var STATE = sharedKey$1('state');
863
+ hiddenKeys$1[STATE] = true;
864
+ set = function (it, metadata) {
865
+ if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
866
+ metadata.facade = it;
867
+ createNonEnumerableProperty$4(it, STATE, metadata);
868
+ return metadata;
869
+ };
870
+ get = function (it) {
871
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
872
+ };
873
+ has = function (it) {
874
+ return hasOwn$6(it, STATE);
875
+ };
876
+ }
877
+
878
+ var internalState = {
879
+ set: set,
880
+ get: get,
881
+ has: has,
882
+ enforce: enforce,
883
+ getterFor: getterFor
884
+ };
885
+
886
+ var objectGetOwnPropertyDescriptor = {};
887
+
888
+ var objectPropertyIsEnumerable = {};
889
+
890
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
891
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
892
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
893
+
894
+ // Nashorn ~ JDK8 bug
895
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
896
+
897
+ // `Object.prototype.propertyIsEnumerable` method implementation
898
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
899
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
900
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
901
+ return !!descriptor && descriptor.enumerable;
902
+ } : $propertyIsEnumerable;
903
+
904
+ var DESCRIPTORS$4 = descriptors;
905
+ var call$5 = functionCall;
906
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
907
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
908
+ var toIndexedObject$1 = toIndexedObject$5;
909
+ var toPropertyKey = toPropertyKey$2;
910
+ var hasOwn$5 = hasOwnProperty_1;
911
+ var IE8_DOM_DEFINE = ie8DomDefine;
912
+
913
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
914
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
915
+
916
+ // `Object.getOwnPropertyDescriptor` method
917
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
918
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
919
+ O = toIndexedObject$1(O);
920
+ P = toPropertyKey(P);
921
+ if (IE8_DOM_DEFINE) try {
922
+ return $getOwnPropertyDescriptor(O, P);
923
+ } catch (error) { /* empty */ }
924
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
925
+ };
926
+
927
+ var makeBuiltIn$2 = {exports: {}};
928
+
929
+ var DESCRIPTORS$3 = descriptors;
930
+ var hasOwn$4 = hasOwnProperty_1;
931
+
932
+ var FunctionPrototype = Function.prototype;
933
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
934
+ var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
935
+
936
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
937
+ // additional protection from minified / mangled / dropped function names
938
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
939
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
940
+
941
+ var functionName = {
942
+ EXISTS: EXISTS,
943
+ PROPER: PROPER,
944
+ CONFIGURABLE: CONFIGURABLE
945
+ };
946
+
947
+ var uncurryThis$5 = functionUncurryThis;
948
+ var isCallable$9 = isCallable$g;
949
+ var store = sharedStore;
950
+
951
+ var functionToString = uncurryThis$5(Function.toString);
952
+
953
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
954
+ if (!isCallable$9(store.inspectSource)) {
955
+ store.inspectSource = function (it) {
956
+ return functionToString(it);
957
+ };
958
+ }
959
+
960
+ var inspectSource$1 = store.inspectSource;
961
+
962
+ var fails$8 = fails$f;
963
+ var isCallable$8 = isCallable$g;
964
+ var hasOwn$3 = hasOwnProperty_1;
965
+ var DESCRIPTORS$2 = descriptors;
966
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
967
+ var inspectSource = inspectSource$1;
968
+ var InternalStateModule$1 = internalState;
969
+
970
+ var enforceInternalState = InternalStateModule$1.enforce;
971
+ var getInternalState$2 = InternalStateModule$1.get;
972
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
973
+ var defineProperty$3 = Object.defineProperty;
974
+
975
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$8(function () {
976
+ return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
977
+ });
978
+
979
+ var TEMPLATE = String(String).split('String');
980
+
981
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
982
+ if (String(name).slice(0, 7) === 'Symbol(') {
983
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
984
+ }
985
+ if (options && options.getter) name = 'get ' + name;
986
+ if (options && options.setter) name = 'set ' + name;
987
+ if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
988
+ if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
989
+ else value.name = name;
990
+ }
991
+ if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
992
+ defineProperty$3(value, 'length', { value: options.arity });
993
+ }
994
+ try {
995
+ if (options && hasOwn$3(options, 'constructor') && options.constructor) {
996
+ if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
997
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
998
+ } else if (value.prototype) value.prototype = undefined;
999
+ } catch (error) { /* empty */ }
1000
+ var state = enforceInternalState(value);
1001
+ if (!hasOwn$3(state, 'source')) {
1002
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
1003
+ } return value;
1004
+ };
1005
+
1006
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1007
+ // eslint-disable-next-line no-extend-native -- required
1008
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
1009
+ return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
1010
+ }, 'toString');
1011
+
1012
+ var isCallable$7 = isCallable$g;
1013
+ var definePropertyModule$1 = objectDefineProperty;
1014
+ var makeBuiltIn = makeBuiltIn$2.exports;
1015
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
1016
+
1017
+ var defineBuiltIn$4 = function (O, key, value, options) {
1018
+ if (!options) options = {};
1019
+ var simple = options.enumerable;
1020
+ var name = options.name !== undefined ? options.name : key;
1021
+ if (isCallable$7(value)) makeBuiltIn(value, name, options);
1022
+ if (options.global) {
1023
+ if (simple) O[key] = value;
1024
+ else defineGlobalProperty$1(key, value);
1025
+ } else {
1026
+ try {
1027
+ if (!options.unsafe) delete O[key];
1028
+ else if (O[key]) simple = true;
1029
+ } catch (error) { /* empty */ }
1030
+ if (simple) O[key] = value;
1031
+ else definePropertyModule$1.f(O, key, {
1032
+ value: value,
1033
+ enumerable: false,
1034
+ configurable: !options.nonConfigurable,
1035
+ writable: !options.nonWritable
1036
+ });
1037
+ } return O;
1038
+ };
1039
+
1040
+ var objectGetOwnPropertyNames = {};
1041
+
1042
+ var internalObjectKeys = objectKeysInternal;
1043
+ var enumBugKeys = enumBugKeys$3;
1044
+
1045
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1046
+
1047
+ // `Object.getOwnPropertyNames` method
1048
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1049
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1050
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1051
+ return internalObjectKeys(O, hiddenKeys);
1052
+ };
1053
+
1054
+ var objectGetOwnPropertySymbols = {};
1055
+
1056
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1057
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1058
+
1059
+ var getBuiltIn = getBuiltIn$4;
1060
+ var uncurryThis$4 = functionUncurryThis;
1061
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1062
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1063
+ var anObject$4 = anObject$8;
1064
+
1065
+ var concat$1 = uncurryThis$4([].concat);
1066
+
1067
+ // all object keys, includes non-enumerable and symbols
1068
+ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1069
+ var keys = getOwnPropertyNamesModule.f(anObject$4(it));
1070
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1071
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1072
+ };
1073
+
1074
+ var hasOwn$2 = hasOwnProperty_1;
1075
+ var ownKeys = ownKeys$1;
1076
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1077
+ var definePropertyModule = objectDefineProperty;
1078
+
1079
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1080
+ var keys = ownKeys(source);
1081
+ var defineProperty = definePropertyModule.f;
1082
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1083
+ for (var i = 0; i < keys.length; i++) {
1084
+ var key = keys[i];
1085
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1086
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1087
+ }
1088
+ }
1089
+ };
1090
+
1091
+ var fails$7 = fails$f;
1092
+ var isCallable$6 = isCallable$g;
1093
+
1094
+ var replacement = /#|\.prototype\./;
1095
+
1096
+ var isForced$1 = function (feature, detection) {
1097
+ var value = data[normalize(feature)];
1098
+ return value == POLYFILL ? true
1099
+ : value == NATIVE ? false
1100
+ : isCallable$6(detection) ? fails$7(detection)
1101
+ : !!detection;
1102
+ };
1103
+
1104
+ var normalize = isForced$1.normalize = function (string) {
1105
+ return String(string).replace(replacement, '.').toLowerCase();
1106
+ };
1107
+
1108
+ var data = isForced$1.data = {};
1109
+ var NATIVE = isForced$1.NATIVE = 'N';
1110
+ var POLYFILL = isForced$1.POLYFILL = 'P';
1111
+
1112
+ var isForced_1 = isForced$1;
1113
+
1114
+ var global$5 = global$e;
1115
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1116
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1117
+ var defineBuiltIn$3 = defineBuiltIn$4;
1118
+ var defineGlobalProperty = defineGlobalProperty$3;
1119
+ var copyConstructorProperties = copyConstructorProperties$1;
1120
+ var isForced = isForced_1;
1121
+
1122
+ /*
1123
+ options.target - name of the target object
1124
+ options.global - target is the global object
1125
+ options.stat - export as static methods of target
1126
+ options.proto - export as prototype methods of target
1127
+ options.real - real prototype method for the `pure` version
1128
+ options.forced - export even if the native feature is available
1129
+ options.bind - bind methods to the target, required for the `pure` version
1130
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1131
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1132
+ options.sham - add a flag to not completely full polyfills
1133
+ options.enumerable - export as enumerable property
1134
+ options.dontCallGetSet - prevent calling a getter on target
1135
+ options.name - the .name of the function if it does not match the key
1136
+ */
1137
+ var _export = function (options, source) {
1138
+ var TARGET = options.target;
1139
+ var GLOBAL = options.global;
1140
+ var STATIC = options.stat;
1141
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1142
+ if (GLOBAL) {
1143
+ target = global$5;
1144
+ } else if (STATIC) {
1145
+ target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
1146
+ } else {
1147
+ target = (global$5[TARGET] || {}).prototype;
1148
+ }
1149
+ if (target) for (key in source) {
1150
+ sourceProperty = source[key];
1151
+ if (options.dontCallGetSet) {
1152
+ descriptor = getOwnPropertyDescriptor(target, key);
1153
+ targetProperty = descriptor && descriptor.value;
1154
+ } else targetProperty = target[key];
1155
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1156
+ // contained in target
1157
+ if (!FORCED && targetProperty !== undefined) {
1158
+ if (typeof sourceProperty == typeof targetProperty) continue;
1159
+ copyConstructorProperties(sourceProperty, targetProperty);
1160
+ }
1161
+ // add a flag to not completely full polyfills
1162
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1163
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1164
+ }
1165
+ defineBuiltIn$3(target, key, sourceProperty, options);
1166
+ }
1167
+ };
1168
+
1169
+ var fails$6 = fails$f;
1170
+
1171
+ var correctPrototypeGetter = !fails$6(function () {
1172
+ function F() { /* empty */ }
1173
+ F.prototype.constructor = null;
1174
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1175
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1176
+ });
1177
+
1178
+ var hasOwn$1 = hasOwnProperty_1;
1179
+ var isCallable$5 = isCallable$g;
1180
+ var toObject$1 = toObject$3;
1181
+ var sharedKey = sharedKey$3;
1182
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1183
+
1184
+ var IE_PROTO = sharedKey('IE_PROTO');
1185
+ var $Object$1 = Object;
1186
+ var ObjectPrototype = $Object$1.prototype;
1187
+
1188
+ // `Object.getPrototypeOf` method
1189
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1190
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1191
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1192
+ var object = toObject$1(O);
1193
+ if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1194
+ var constructor = object.constructor;
1195
+ if (isCallable$5(constructor) && object instanceof constructor) {
1196
+ return constructor.prototype;
1197
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1198
+ };
1199
+
1200
+ var fails$5 = fails$f;
1201
+ var isCallable$4 = isCallable$g;
1202
+ var isObject = isObject$6;
1203
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1204
+ var defineBuiltIn$2 = defineBuiltIn$4;
1205
+ var wellKnownSymbol$6 = wellKnownSymbol$9;
1206
+
1207
+ var ITERATOR$2 = wellKnownSymbol$6('iterator');
1208
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1209
+
1210
+ // `%IteratorPrototype%` object
1211
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1212
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1213
+
1214
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1215
+ if ([].keys) {
1216
+ arrayIterator = [].keys();
1217
+ // Safari 8 has buggy iterators w/o `next`
1218
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1219
+ else {
1220
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1221
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1222
+ }
1223
+ }
1224
+
1225
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$5(function () {
1226
+ var test = {};
1227
+ // FF44- legacy iterators case
1228
+ return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1229
+ });
1230
+
1231
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1232
+
1233
+ // `%IteratorPrototype%[@@iterator]()` method
1234
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1235
+ if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1236
+ defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1237
+ return this;
1238
+ });
1239
+ }
1240
+
1241
+ var iteratorsCore = {
1242
+ IteratorPrototype: IteratorPrototype$2,
1243
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1244
+ };
1245
+
1246
+ var defineProperty$2 = objectDefineProperty.f;
1247
+ var hasOwn = hasOwnProperty_1;
1248
+ var wellKnownSymbol$5 = wellKnownSymbol$9;
1249
+
1250
+ var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
1251
+
1252
+ var setToStringTag$2 = function (target, TAG, STATIC) {
1253
+ if (target && !STATIC) target = target.prototype;
1254
+ if (target && !hasOwn(target, TO_STRING_TAG$3)) {
1255
+ defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1256
+ }
1257
+ };
1258
+
1259
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1260
+ var create$1 = objectCreate;
1261
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1262
+ var setToStringTag$1 = setToStringTag$2;
1263
+ var Iterators$2 = iterators;
1264
+
1265
+ var returnThis$1 = function () { return this; };
1266
+
1267
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1268
+ var TO_STRING_TAG = NAME + ' Iterator';
1269
+ IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1270
+ setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1271
+ Iterators$2[TO_STRING_TAG] = returnThis$1;
1272
+ return IteratorConstructor;
1273
+ };
1274
+
1275
+ var isCallable$3 = isCallable$g;
1276
+
1277
+ var $String$1 = String;
1278
+ var $TypeError$1 = TypeError;
1279
+
1280
+ var aPossiblePrototype$1 = function (argument) {
1281
+ if (typeof argument == 'object' || isCallable$3(argument)) return argument;
1282
+ throw $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
1283
+ };
1284
+
1285
+ /* eslint-disable no-proto -- safe */
1286
+
1287
+ var uncurryThis$3 = functionUncurryThis;
1288
+ var anObject$3 = anObject$8;
1289
+ var aPossiblePrototype = aPossiblePrototype$1;
1290
+
1291
+ // `Object.setPrototypeOf` method
1292
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1293
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1294
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1295
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1296
+ var CORRECT_SETTER = false;
1297
+ var test = {};
1298
+ var setter;
1299
+ try {
1300
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1301
+ setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1302
+ setter(test, []);
1303
+ CORRECT_SETTER = test instanceof Array;
1304
+ } catch (error) { /* empty */ }
1305
+ return function setPrototypeOf(O, proto) {
1306
+ anObject$3(O);
1307
+ aPossiblePrototype(proto);
1308
+ if (CORRECT_SETTER) setter(O, proto);
1309
+ else O.__proto__ = proto;
1310
+ return O;
1311
+ };
1312
+ }() : undefined);
1313
+
1314
+ var $$2 = _export;
1315
+ var call$4 = functionCall;
1316
+ var FunctionName = functionName;
1317
+ var isCallable$2 = isCallable$g;
1318
+ var createIteratorConstructor = iteratorCreateConstructor;
1319
+ var getPrototypeOf = objectGetPrototypeOf;
1320
+ var setPrototypeOf = objectSetPrototypeOf;
1321
+ var setToStringTag = setToStringTag$2;
1322
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1323
+ var defineBuiltIn$1 = defineBuiltIn$4;
1324
+ var wellKnownSymbol$4 = wellKnownSymbol$9;
1325
+ var Iterators$1 = iterators;
1326
+ var IteratorsCore = iteratorsCore;
1327
+
1328
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1329
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1330
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1331
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1332
+ var ITERATOR$1 = wellKnownSymbol$4('iterator');
1333
+ var KEYS = 'keys';
1334
+ var VALUES = 'values';
1335
+ var ENTRIES = 'entries';
1336
+
1337
+ var returnThis = function () { return this; };
1338
+
1339
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1340
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1341
+
1342
+ var getIterationMethod = function (KIND) {
1343
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1344
+ if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1345
+ switch (KIND) {
1346
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1347
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1348
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1349
+ } return function () { return new IteratorConstructor(this); };
1350
+ };
1351
+
1352
+ var TO_STRING_TAG = NAME + ' Iterator';
1353
+ var INCORRECT_VALUES_NAME = false;
1354
+ var IterablePrototype = Iterable.prototype;
1355
+ var nativeIterator = IterablePrototype[ITERATOR$1]
1356
+ || IterablePrototype['@@iterator']
1357
+ || DEFAULT && IterablePrototype[DEFAULT];
1358
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1359
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1360
+ var CurrentIteratorPrototype, methods, KEY;
1361
+
1362
+ // fix native
1363
+ if (anyNativeIterator) {
1364
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1365
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1366
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1367
+ if (setPrototypeOf) {
1368
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1369
+ } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$1])) {
1370
+ defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1371
+ }
1372
+ }
1373
+ // Set @@toStringTag to native iterators
1374
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1375
+ }
1376
+ }
1377
+
1378
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1379
+ if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1380
+ if (CONFIGURABLE_FUNCTION_NAME) {
1381
+ createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1382
+ } else {
1383
+ INCORRECT_VALUES_NAME = true;
1384
+ defaultIterator = function values() { return call$4(nativeIterator, this); };
1385
+ }
1386
+ }
1387
+
1388
+ // export additional methods
1389
+ if (DEFAULT) {
1390
+ methods = {
1391
+ values: getIterationMethod(VALUES),
1392
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1393
+ entries: getIterationMethod(ENTRIES)
1394
+ };
1395
+ if (FORCED) for (KEY in methods) {
1396
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1397
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1398
+ }
1399
+ } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1400
+ }
1401
+
1402
+ // define iterator
1403
+ if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1404
+ defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1405
+ }
1406
+ Iterators$1[NAME] = defaultIterator;
1407
+
1408
+ return methods;
1409
+ };
1410
+
1411
+ // `CreateIterResultObject` abstract operation
1412
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1413
+ var createIterResultObject$1 = function (value, done) {
1414
+ return { value: value, done: done };
1415
+ };
1416
+
1417
+ var toIndexedObject = toIndexedObject$5;
1418
+ var addToUnscopables = addToUnscopables$1;
1419
+ var Iterators = iterators;
1420
+ var InternalStateModule = internalState;
1421
+ var defineProperty$1 = objectDefineProperty.f;
1422
+ var defineIterator = iteratorDefine;
1423
+ var createIterResultObject = createIterResultObject$1;
1424
+ var DESCRIPTORS$1 = descriptors;
1425
+
1426
+ var ARRAY_ITERATOR = 'Array Iterator';
1427
+ var setInternalState = InternalStateModule.set;
1428
+ var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
1429
+
1430
+ // `Array.prototype.entries` method
1431
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1432
+ // `Array.prototype.keys` method
1433
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1434
+ // `Array.prototype.values` method
1435
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1436
+ // `Array.prototype[@@iterator]` method
1437
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1438
+ // `CreateArrayIterator` internal method
1439
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1440
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1441
+ setInternalState(this, {
1442
+ type: ARRAY_ITERATOR,
1443
+ target: toIndexedObject(iterated), // target
1444
+ index: 0, // next index
1445
+ kind: kind // kind
1446
+ });
1447
+ // `%ArrayIteratorPrototype%.next` method
1448
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1449
+ }, function () {
1450
+ var state = getInternalState$1(this);
1451
+ var target = state.target;
1452
+ var kind = state.kind;
1453
+ var index = state.index++;
1454
+ if (!target || index >= target.length) {
1455
+ state.target = undefined;
1456
+ return createIterResultObject(undefined, true);
1457
+ }
1458
+ if (kind == 'keys') return createIterResultObject(index, false);
1459
+ if (kind == 'values') return createIterResultObject(target[index], false);
1460
+ return createIterResultObject([index, target[index]], false);
1461
+ }, 'values');
1462
+
1463
+ // argumentsList[@@iterator] is %ArrayProto_values%
1464
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1465
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1466
+ var values = Iterators.Arguments = Iterators.Array;
1467
+
1468
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1469
+ addToUnscopables('keys');
1470
+ addToUnscopables('values');
1471
+ addToUnscopables('entries');
1472
+
1473
+ // V8 ~ Chrome 45- bug
1474
+ if (DESCRIPTORS$1 && values.name !== 'values') try {
1475
+ defineProperty$1(values, 'name', { value: 'values' });
1476
+ } catch (error) { /* empty */ }
1477
+
1478
+ // iterable DOM collections
1479
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1480
+ var domIterables = {
1481
+ CSSRuleList: 0,
1482
+ CSSStyleDeclaration: 0,
1483
+ CSSValueList: 0,
1484
+ ClientRectList: 0,
1485
+ DOMRectList: 0,
1486
+ DOMStringList: 0,
1487
+ DOMTokenList: 1,
1488
+ DataTransferItemList: 0,
1489
+ FileList: 0,
1490
+ HTMLAllCollection: 0,
1491
+ HTMLCollection: 0,
1492
+ HTMLFormElement: 0,
1493
+ HTMLSelectElement: 0,
1494
+ MediaList: 0,
1495
+ MimeTypeArray: 0,
1496
+ NamedNodeMap: 0,
1497
+ NodeList: 1,
1498
+ PaintRequestList: 0,
1499
+ Plugin: 0,
1500
+ PluginArray: 0,
1501
+ SVGLengthList: 0,
1502
+ SVGNumberList: 0,
1503
+ SVGPathSegList: 0,
1504
+ SVGPointList: 0,
1505
+ SVGStringList: 0,
1506
+ SVGTransformList: 0,
1507
+ SourceBufferList: 0,
1508
+ StyleSheetList: 0,
1509
+ TextTrackCueList: 0,
1510
+ TextTrackList: 0,
1511
+ TouchList: 0
1512
+ };
1513
+
1514
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1515
+ var documentCreateElement = documentCreateElement$2;
1516
+
1517
+ var classList = documentCreateElement('span').classList;
1518
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1519
+
1520
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1521
+
1522
+ var global$4 = global$e;
1523
+ var DOMIterables = domIterables;
1524
+ var DOMTokenListPrototype = domTokenListPrototype;
1525
+ var ArrayIteratorMethods = es_array_iterator;
1526
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1527
+ var wellKnownSymbol$3 = wellKnownSymbol$9;
1528
+
1529
+ var ITERATOR = wellKnownSymbol$3('iterator');
1530
+ var TO_STRING_TAG$2 = wellKnownSymbol$3('toStringTag');
1531
+ var ArrayValues = ArrayIteratorMethods.values;
1532
+
1533
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1534
+ if (CollectionPrototype) {
1535
+ // some Chrome versions have non-configurable methods on DOMTokenList
1536
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1537
+ createNonEnumerableProperty$1(CollectionPrototype, ITERATOR, ArrayValues);
1538
+ } catch (error) {
1539
+ CollectionPrototype[ITERATOR] = ArrayValues;
1540
+ }
1541
+ if (!CollectionPrototype[TO_STRING_TAG$2]) {
1542
+ createNonEnumerableProperty$1(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
1543
+ }
1544
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1545
+ // some Chrome versions have non-configurable methods on DOMTokenList
1546
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1547
+ createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1548
+ } catch (error) {
1549
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1550
+ }
1551
+ }
1552
+ }
1553
+ };
1554
+
1555
+ for (var COLLECTION_NAME in DOMIterables) {
1556
+ handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
1557
+ }
1558
+
1559
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1560
+
1561
+ var DESCRIPTORS = descriptors;
1562
+ var uncurryThis$2 = functionUncurryThis;
1563
+ var call$3 = functionCall;
1564
+ var fails$4 = fails$f;
1565
+ var objectKeys = objectKeys$2;
1566
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1567
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1568
+ var toObject = toObject$3;
1569
+ var IndexedObject = indexedObject;
1570
+
1571
+ // eslint-disable-next-line es/no-object-assign -- safe
1572
+ var $assign = Object.assign;
1573
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1574
+ var defineProperty = Object.defineProperty;
1575
+ var concat = uncurryThis$2([].concat);
1576
+
1577
+ // `Object.assign` method
1578
+ // https://tc39.es/ecma262/#sec-object.assign
1579
+ var objectAssign = !$assign || fails$4(function () {
1580
+ // should have correct order of operations (Edge bug)
1581
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1582
+ enumerable: true,
1583
+ get: function () {
1584
+ defineProperty(this, 'b', {
1585
+ value: 3,
1586
+ enumerable: false
1587
+ });
1588
+ }
1589
+ }), { b: 2 })).b !== 1) return true;
1590
+ // should work with symbols and should have deterministic property order (V8 bug)
1591
+ var A = {};
1592
+ var B = {};
1593
+ // eslint-disable-next-line es/no-symbol -- safe
1594
+ var symbol = Symbol();
1595
+ var alphabet = 'abcdefghijklmnopqrst';
1596
+ A[symbol] = 7;
1597
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1598
+ return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1599
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1600
+ var T = toObject(target);
1601
+ var argumentsLength = arguments.length;
1602
+ var index = 1;
1603
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1604
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1605
+ while (argumentsLength > index) {
1606
+ var S = IndexedObject(arguments[index++]);
1607
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1608
+ var length = keys.length;
1609
+ var j = 0;
1610
+ var key;
1611
+ while (length > j) {
1612
+ key = keys[j++];
1613
+ if (!DESCRIPTORS || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
1614
+ }
1615
+ } return T;
1616
+ } : $assign;
1617
+
1618
+ var $$1 = _export;
1619
+ var assign = objectAssign;
1620
+
1621
+ // `Object.assign` method
1622
+ // https://tc39.es/ecma262/#sec-object.assign
1623
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1624
+ $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1625
+ assign: assign
1626
+ });
1627
+
1628
+ const DeveloperSettingsContext = /*#__PURE__*/React.createContext({
1629
+ localFeatureFlagsEnabled: false
1630
+ });
1631
+ const useDeveloperSettings = () => {
1632
+ const context = React.useContext(DeveloperSettingsContext);
1633
+
1634
+ if (!context) {
1635
+ throw new Error("useDeveloperSettingsContext must be used within DeveloperSettingsProvider");
1636
+ }
1637
+
1638
+ return context;
1639
+ };
1640
+ const DeveloperSettingsProvider = ({
1641
+ value,
1642
+ children
1643
+ }) => {
1644
+ const launchdarklyFlags = useFlags();
1645
+ const [localFeatureFlagsEnabled, setLocalFeatureFlagsEnabled] = React.useState(false);
1646
+ const [localFeatureFlags, setLocalFeatureFlags] = React.useState();
1647
+ React.useEffect(() => {
1648
+ if (!localFeatureFlagsEnabled) {
1649
+ setLocalFeatureFlags(launchdarklyFlags);
1650
+ }
1651
+ }, [launchdarklyFlags, localFeatureFlagsEnabled]);
1652
+ return jsx(DeveloperSettingsContext.Provider, Object.assign({
1653
+ value: value !== null && value !== void 0 ? value : {
1654
+ localFeatureFlagsEnabled,
1655
+ enableLocalFeatureFlags: setLocalFeatureFlagsEnabled,
1656
+ localFeatureFlags,
1657
+ launchdarklyFlags,
1658
+ setFlags: setLocalFeatureFlags
1659
+ }
1660
+ }, {
1661
+ children: children
1662
+ }));
1663
+ };
1664
+
1665
+ const EnvironmentContext = /*#__PURE__*/createContext(null);
1666
+ const EnvironmentContextProvider = props => {
1667
+ return jsx(EnvironmentContext.Provider, Object.assign({}, props));
1668
+ };
1669
+ const useEnvironment = () => {
1670
+ const context = useContext(EnvironmentContext);
1671
+
1672
+ if (!context) {
1673
+ throw new Error("useEnvironment must be used within an EnvironmentContext");
1674
+ }
1675
+
1676
+ return context;
1677
+ };
1678
+
1679
+ var wellKnownSymbol$2 = wellKnownSymbol$9;
1680
+
1681
+ var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1682
+ var test = {};
1683
+
1684
+ test[TO_STRING_TAG$1] = 'z';
1685
+
1686
+ var toStringTagSupport = String(test) === '[object z]';
1687
+
1688
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1689
+ var isCallable$1 = isCallable$g;
1690
+ var classofRaw = classofRaw$2;
1691
+ var wellKnownSymbol$1 = wellKnownSymbol$9;
1692
+
1693
+ var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
1694
+ var $Object = Object;
1695
+
1696
+ // ES3 wrong here
1697
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1698
+
1699
+ // fallback for IE11 Script Access Denied error
1700
+ var tryGet = function (it, key) {
1701
+ try {
1702
+ return it[key];
1703
+ } catch (error) { /* empty */ }
1704
+ };
1705
+
1706
+ // getting tag from ES6+ `Object.prototype.toString`
1707
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1708
+ var O, tag, result;
1709
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1710
+ // @@toStringTag case
1711
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1712
+ // builtinTag case
1713
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1714
+ // ES3 arguments fallback
1715
+ : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1716
+ };
1717
+
1718
+ var classof$1 = classof$2;
1719
+
1720
+ var $String = String;
1721
+
1722
+ var toString$2 = function (argument) {
1723
+ if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1724
+ return $String(argument);
1725
+ };
1726
+
1727
+ var anObject$2 = anObject$8;
1728
+
1729
+ // `RegExp.prototype.flags` getter implementation
1730
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1731
+ var regexpFlags$1 = function () {
1732
+ var that = anObject$2(this);
1733
+ var result = '';
1734
+ if (that.hasIndices) result += 'd';
1735
+ if (that.global) result += 'g';
1736
+ if (that.ignoreCase) result += 'i';
1737
+ if (that.multiline) result += 'm';
1738
+ if (that.dotAll) result += 's';
1739
+ if (that.unicode) result += 'u';
1740
+ if (that.unicodeSets) result += 'v';
1741
+ if (that.sticky) result += 'y';
1742
+ return result;
1743
+ };
1744
+
1745
+ var fails$3 = fails$f;
1746
+ var global$3 = global$e;
1747
+
1748
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1749
+ var $RegExp$2 = global$3.RegExp;
1750
+
1751
+ var UNSUPPORTED_Y$1 = fails$3(function () {
1752
+ var re = $RegExp$2('a', 'y');
1753
+ re.lastIndex = 2;
1754
+ return re.exec('abcd') != null;
1755
+ });
1756
+
1757
+ // UC Browser bug
1758
+ // https://github.com/zloirock/core-js/issues/1008
1759
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$3(function () {
1760
+ return !$RegExp$2('a', 'y').sticky;
1761
+ });
1762
+
1763
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$3(function () {
1764
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1765
+ var re = $RegExp$2('^r', 'gy');
1766
+ re.lastIndex = 2;
1767
+ return re.exec('str') != null;
1768
+ });
1769
+
1770
+ var regexpStickyHelpers = {
1771
+ BROKEN_CARET: BROKEN_CARET,
1772
+ MISSED_STICKY: MISSED_STICKY,
1773
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
1774
+ };
1775
+
1776
+ var fails$2 = fails$f;
1777
+ var global$2 = global$e;
1778
+
1779
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1780
+ var $RegExp$1 = global$2.RegExp;
1781
+
1782
+ var regexpUnsupportedDotAll = fails$2(function () {
1783
+ var re = $RegExp$1('.', 's');
1784
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
1785
+ });
1786
+
1787
+ var fails$1 = fails$f;
1788
+ var global$1 = global$e;
1789
+
1790
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1791
+ var $RegExp = global$1.RegExp;
1792
+
1793
+ var regexpUnsupportedNcg = fails$1(function () {
1794
+ var re = $RegExp('(?<a>b)', 'g');
1795
+ return re.exec('b').groups.a !== 'b' ||
1796
+ 'b'.replace(re, '$<a>c') !== 'bc';
1797
+ });
1798
+
1799
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1800
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1801
+ var call$2 = functionCall;
1802
+ var uncurryThis$1 = functionUncurryThis;
1803
+ var toString$1 = toString$2;
1804
+ var regexpFlags = regexpFlags$1;
1805
+ var stickyHelpers = regexpStickyHelpers;
1806
+ var shared = shared$4.exports;
1807
+ var create = objectCreate;
1808
+ var getInternalState = internalState.get;
1809
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1810
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1811
+
1812
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1813
+ var nativeExec = RegExp.prototype.exec;
1814
+ var patchedExec = nativeExec;
1815
+ var charAt = uncurryThis$1(''.charAt);
1816
+ var indexOf = uncurryThis$1(''.indexOf);
1817
+ var replace = uncurryThis$1(''.replace);
1818
+ var stringSlice = uncurryThis$1(''.slice);
1819
+
1820
+ var UPDATES_LAST_INDEX_WRONG = (function () {
1821
+ var re1 = /a/;
1822
+ var re2 = /b*/g;
1823
+ call$2(nativeExec, re1, 'a');
1824
+ call$2(nativeExec, re2, 'a');
1825
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1826
+ })();
1827
+
1828
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1829
+
1830
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1831
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1832
+
1833
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1834
+
1835
+ if (PATCH) {
1836
+ patchedExec = function exec(string) {
1837
+ var re = this;
1838
+ var state = getInternalState(re);
1839
+ var str = toString$1(string);
1840
+ var raw = state.raw;
1841
+ var result, reCopy, lastIndex, match, i, object, group;
1842
+
1843
+ if (raw) {
1844
+ raw.lastIndex = re.lastIndex;
1845
+ result = call$2(patchedExec, raw, str);
1846
+ re.lastIndex = raw.lastIndex;
1847
+ return result;
1848
+ }
1849
+
1850
+ var groups = state.groups;
1851
+ var sticky = UNSUPPORTED_Y && re.sticky;
1852
+ var flags = call$2(regexpFlags, re);
1853
+ var source = re.source;
1854
+ var charsAdded = 0;
1855
+ var strCopy = str;
1856
+
1857
+ if (sticky) {
1858
+ flags = replace(flags, 'y', '');
1859
+ if (indexOf(flags, 'g') === -1) {
1860
+ flags += 'g';
1861
+ }
1862
+
1863
+ strCopy = stringSlice(str, re.lastIndex);
1864
+ // Support anchored sticky behavior.
1865
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
1866
+ source = '(?: ' + source + ')';
1867
+ strCopy = ' ' + strCopy;
1868
+ charsAdded++;
1869
+ }
1870
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1871
+ // simulate the 'y' flag.
1872
+ reCopy = new RegExp('^(?:' + source + ')', flags);
1873
+ }
1874
+
1875
+ if (NPCG_INCLUDED) {
1876
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1877
+ }
1878
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1879
+
1880
+ match = call$2(nativeExec, sticky ? reCopy : re, strCopy);
1881
+
1882
+ if (sticky) {
1883
+ if (match) {
1884
+ match.input = stringSlice(match.input, charsAdded);
1885
+ match[0] = stringSlice(match[0], charsAdded);
1886
+ match.index = re.lastIndex;
1887
+ re.lastIndex += match[0].length;
1888
+ } else re.lastIndex = 0;
1889
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
1890
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1891
+ }
1892
+ if (NPCG_INCLUDED && match && match.length > 1) {
1893
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
1894
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1895
+ call$2(nativeReplace, match[0], reCopy, function () {
1896
+ for (i = 1; i < arguments.length - 2; i++) {
1897
+ if (arguments[i] === undefined) match[i] = undefined;
1898
+ }
1899
+ });
1900
+ }
1901
+
1902
+ if (match && groups) {
1903
+ match.groups = object = create(null);
1904
+ for (i = 0; i < groups.length; i++) {
1905
+ group = groups[i];
1906
+ object[group[0]] = match[group[1]];
1907
+ }
1908
+ }
1909
+
1910
+ return match;
1911
+ };
1912
+ }
1913
+
1914
+ var regexpExec$2 = patchedExec;
1915
+
1916
+ var $ = _export;
1917
+ var exec = regexpExec$2;
1918
+
1919
+ // `RegExp.prototype.exec` method
1920
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1921
+ $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
1922
+ exec: exec
1923
+ });
1924
+
1925
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1926
+
1927
+ var uncurryThis = functionUncurryThis;
1928
+ var defineBuiltIn = defineBuiltIn$4;
1929
+ var regexpExec$1 = regexpExec$2;
1930
+ var fails = fails$f;
1931
+ var wellKnownSymbol = wellKnownSymbol$9;
1932
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
1933
+
1934
+ var SPECIES = wellKnownSymbol('species');
1935
+ var RegExpPrototype = RegExp.prototype;
1936
+
1937
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1938
+ var SYMBOL = wellKnownSymbol(KEY);
1939
+
1940
+ var DELEGATES_TO_SYMBOL = !fails(function () {
1941
+ // String methods call symbol-named RegEp methods
1942
+ var O = {};
1943
+ O[SYMBOL] = function () { return 7; };
1944
+ return ''[KEY](O) != 7;
1945
+ });
1946
+
1947
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
1948
+ // Symbol-named RegExp methods call .exec
1949
+ var execCalled = false;
1950
+ var re = /a/;
1951
+
1952
+ if (KEY === 'split') {
1953
+ // We can't use real regex here since it causes deoptimization
1954
+ // and serious performance degradation in V8
1955
+ // https://github.com/zloirock/core-js/issues/306
1956
+ re = {};
1957
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
1958
+ // a new one. We need to return the patched regex when creating the new one.
1959
+ re.constructor = {};
1960
+ re.constructor[SPECIES] = function () { return re; };
1961
+ re.flags = '';
1962
+ re[SYMBOL] = /./[SYMBOL];
1963
+ }
1964
+
1965
+ re.exec = function () { execCalled = true; return null; };
1966
+
1967
+ re[SYMBOL]('');
1968
+ return !execCalled;
1969
+ });
1970
+
1971
+ if (
1972
+ !DELEGATES_TO_SYMBOL ||
1973
+ !DELEGATES_TO_EXEC ||
1974
+ FORCED
1975
+ ) {
1976
+ var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]);
1977
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1978
+ var uncurriedNativeMethod = uncurryThis(nativeMethod);
1979
+ var $exec = regexp.exec;
1980
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
1981
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1982
+ // The native String method already delegates to @@method (this
1983
+ // polyfilled function), leasing to infinite recursion.
1984
+ // We avoid it by directly calling the native @@method method.
1985
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1986
+ }
1987
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1988
+ }
1989
+ return { done: false };
1990
+ });
1991
+
1992
+ defineBuiltIn(String.prototype, KEY, methods[0]);
1993
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
1994
+ }
1995
+
1996
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
1997
+ };
1998
+
1999
+ // `SameValue` abstract operation
2000
+ // https://tc39.es/ecma262/#sec-samevalue
2001
+ // eslint-disable-next-line es/no-object-is -- safe
2002
+ var sameValue$1 = Object.is || function is(x, y) {
2003
+ // eslint-disable-next-line no-self-compare -- NaN check
2004
+ return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
2005
+ };
2006
+
2007
+ var call$1 = functionCall;
2008
+ var anObject$1 = anObject$8;
2009
+ var isCallable = isCallable$g;
2010
+ var classof = classofRaw$2;
2011
+ var regexpExec = regexpExec$2;
2012
+
2013
+ var $TypeError = TypeError;
2014
+
2015
+ // `RegExpExec` abstract operation
2016
+ // https://tc39.es/ecma262/#sec-regexpexec
2017
+ var regexpExecAbstract = function (R, S) {
2018
+ var exec = R.exec;
2019
+ if (isCallable(exec)) {
2020
+ var result = call$1(exec, R, S);
2021
+ if (result !== null) anObject$1(result);
2022
+ return result;
2023
+ }
2024
+ if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
2025
+ throw $TypeError('RegExp#exec called on incompatible receiver');
2026
+ };
2027
+
2028
+ var call = functionCall;
2029
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2030
+ var anObject = anObject$8;
2031
+ var isNullOrUndefined = isNullOrUndefined$3;
2032
+ var requireObjectCoercible = requireObjectCoercible$3;
2033
+ var sameValue = sameValue$1;
2034
+ var toString = toString$2;
2035
+ var getMethod = getMethod$2;
2036
+ var regExpExec = regexpExecAbstract;
2037
+
2038
+ // @@search logic
2039
+ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
2040
+ return [
2041
+ // `String.prototype.search` method
2042
+ // https://tc39.es/ecma262/#sec-string.prototype.search
2043
+ function search(regexp) {
2044
+ var O = requireObjectCoercible(this);
2045
+ var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
2046
+ return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
2047
+ },
2048
+ // `RegExp.prototype[@@search]` method
2049
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
2050
+ function (string) {
2051
+ var rx = anObject(this);
2052
+ var S = toString(string);
2053
+ var res = maybeCallNative(nativeSearch, rx, S);
2054
+
2055
+ if (res.done) return res.value;
2056
+
2057
+ var previousLastIndex = rx.lastIndex;
2058
+ if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
2059
+ var result = regExpExec(rx, S);
2060
+ if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
2061
+ return result === null ? -1 : result.index;
2062
+ }
2063
+ ];
2064
+ });
2065
+
2066
+ /**
2067
+ * A react hook for notifying host about location change
2068
+ *
2069
+ */
2070
+
2071
+ const useURLSynchronization = () => {
2072
+ const location = useLocation();
2073
+ React__default.useEffect(() => {
2074
+ const deepLink = {
2075
+ path: location.pathname,
2076
+ search: location.search,
2077
+ hash: location.hash,
2078
+ pathname: ""
2079
+ };
2080
+ NavigationRuntime.setDeepLink(deepLink);
2081
+ }, [location]);
2082
+ };
2083
+
2084
+ /**
2085
+ * A hook to expose asset runtime for React components
2086
+ *
2087
+ * @returns {UseAssetRuntime} assetRuntime
2088
+ */
2089
+
2090
+ const useAssetRuntime = () => {
2091
+ return AssetRuntime;
2092
+ };
2093
+
2094
+ /**
2095
+ * A hook to expose custom field runtime methods
2096
+ *
2097
+ * @returns {UseCustomFieldRuntime} CustomFieldRuntime
2098
+ */
2099
+
2100
+ const useCustomFieldRuntime = () => {
2101
+ return CustomFieldRuntime;
2102
+ };
2103
+
2104
+ /**
2105
+ * A hook to expose rest runtime to be used in React components
2106
+ *
2107
+ * @returns {UseRestRuntime} a RestRuntime
2108
+ */
2109
+
2110
+ const useRestRuntime = () => {
2111
+ return RestRuntime;
2112
+ };
2113
+
2114
+ const UserSubscriptionContext = /*#__PURE__*/React.createContext(null);
2115
+ const UserSubscriptionProvider = props => {
2116
+ return jsx(UserSubscriptionContext.Provider, Object.assign({}, props));
2117
+ };
2118
+ const useUserSubscription = () => {
2119
+ const context = React.useContext(UserSubscriptionContext);
2120
+
2121
+ if (!context) {
2122
+ throw new Error("Cannot use useUserSubscription outside UserSubscriptionProvider");
2123
+ }
2124
+
2125
+ return context;
2126
+ };
2127
+
2128
+ const ToastContext = /*#__PURE__*/React.createContext(null);
2129
+ const ToastProvider = props => jsx(ToastContext.Provider, Object.assign({}, props));
2130
+ const useToast = () => {
2131
+ const toastContext = React.useContext(ToastContext);
2132
+
2133
+ if (!toastContext) {
2134
+ throw new Error("useToast must be used within the ToastProvider");
2135
+ }
2136
+
2137
+ return toastContext;
2138
+ };
2139
+
2140
+ const TokenContext = /*#__PURE__*/React.createContext(null);
2141
+ const useToken = () => {
2142
+ const context = React.useContext(TokenContext);
2143
+
2144
+ if (!context) {
2145
+ throw new Error("useToken must be used within the TokenContext");
2146
+ }
2147
+
2148
+ return context;
2149
+ };
2150
+ const TokenProvider = props => {
2151
+ return jsx(TokenContext.Provider, Object.assign({}, props));
2152
+ };
2153
+
2154
+ const CurrentUserContext = /*#__PURE__*/React.createContext(null);
2155
+ const CurrentUserProvider = props => {
2156
+ return jsx(CurrentUserContext.Provider, Object.assign({}, props));
2157
+ };
2158
+ const useCurrentUser = () => {
2159
+ const context = React.useContext(CurrentUserContext);
2160
+
2161
+ if (!context) {
2162
+ throw new Error("useCurrentUser must be used within the CurrentUserProvider");
2163
+ }
2164
+
2165
+ return context;
2166
+ };
2167
+
2168
+ export { CurrentUserProvider, DeveloperSettingsContext, DeveloperSettingsProvider, EnvironmentContextProvider, ToastProvider, TokenProvider, UserSubscriptionProvider, useAssetRuntime, useCurrentUser, useCustomFieldRuntime, useDeveloperSettings, useEnvironment, useRestRuntime, useToast, useToken, useURLSynchronization, useUserSubscription };