@dereekb/rxjs 12.7.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -1,1713 +1,15 @@
1
1
  'use strict';
2
2
 
3
+ require('core-js/modules/es.iterator.constructor.js');
4
+ require('core-js/modules/es.iterator.filter.js');
5
+ require('core-js/modules/es.iterator.find.js');
6
+ require('core-js/modules/es.iterator.for-each.js');
7
+ require('core-js/modules/es.iterator.map.js');
8
+ require('core-js/modules/es.map.get-or-insert.js');
9
+ require('core-js/modules/es.map.get-or-insert-computed.js');
3
10
  var rxjs = require('rxjs');
4
11
  var util = require('@dereekb/util');
5
12
 
6
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
7
-
8
- var check = function (it) {
9
- return it && it.Math === Math && it;
10
- };
11
-
12
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
13
- var global$b =
14
- // eslint-disable-next-line es/no-global-this -- safe
15
- check(typeof globalThis == 'object' && globalThis) ||
16
- check(typeof window == 'object' && window) ||
17
- // eslint-disable-next-line no-restricted-globals -- safe
18
- check(typeof self == 'object' && self) ||
19
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
20
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
21
- // eslint-disable-next-line no-new-func -- fallback
22
- (function () { return this; })() || Function('return this')();
23
-
24
- var objectGetOwnPropertyDescriptor = {};
25
-
26
- var fails$b = function (exec) {
27
- try {
28
- return !!exec();
29
- } catch (error) {
30
- return true;
31
- }
32
- };
33
-
34
- var fails$a = fails$b;
35
-
36
- // Detect IE8's incomplete defineProperty implementation
37
- var descriptors = !fails$a(function () {
38
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
39
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
40
- });
41
-
42
- var fails$9 = fails$b;
43
-
44
- var functionBindNative = !fails$9(function () {
45
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
46
- var test = (function () { /* empty */ }).bind();
47
- // eslint-disable-next-line no-prototype-builtins -- safe
48
- return typeof test != 'function' || test.hasOwnProperty('prototype');
49
- });
50
-
51
- var NATIVE_BIND$2 = functionBindNative;
52
-
53
- var call$a = Function.prototype.call;
54
-
55
- var functionCall = NATIVE_BIND$2 ? call$a.bind(call$a) : function () {
56
- return call$a.apply(call$a, arguments);
57
- };
58
-
59
- var objectPropertyIsEnumerable = {};
60
-
61
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
62
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
63
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
64
-
65
- // Nashorn ~ JDK8 bug
66
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
67
-
68
- // `Object.prototype.propertyIsEnumerable` method implementation
69
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
70
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
71
- var descriptor = getOwnPropertyDescriptor$1(this, V);
72
- return !!descriptor && descriptor.enumerable;
73
- } : $propertyIsEnumerable;
74
-
75
- var createPropertyDescriptor$3 = function (bitmap, value) {
76
- return {
77
- enumerable: !(bitmap & 1),
78
- configurable: !(bitmap & 2),
79
- writable: !(bitmap & 4),
80
- value: value
81
- };
82
- };
83
-
84
- var NATIVE_BIND$1 = functionBindNative;
85
-
86
- var FunctionPrototype$1 = Function.prototype;
87
- var call$9 = FunctionPrototype$1.call;
88
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$9, call$9);
89
-
90
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
91
- return function () {
92
- return call$9.apply(fn, arguments);
93
- };
94
- };
95
-
96
- var uncurryThis$a = functionUncurryThis;
97
-
98
- var toString$1 = uncurryThis$a({}.toString);
99
- var stringSlice$1 = uncurryThis$a(''.slice);
100
-
101
- var classofRaw$2 = function (it) {
102
- return stringSlice$1(toString$1(it), 8, -1);
103
- };
104
-
105
- var uncurryThis$9 = functionUncurryThis;
106
- var fails$8 = fails$b;
107
- var classof$2 = classofRaw$2;
108
-
109
- var $Object$4 = Object;
110
- var split = uncurryThis$9(''.split);
111
-
112
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
113
- var indexedObject = fails$8(function () {
114
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
115
- // eslint-disable-next-line no-prototype-builtins -- safe
116
- return !$Object$4('z').propertyIsEnumerable(0);
117
- }) ? function (it) {
118
- return classof$2(it) === 'String' ? split(it, '') : $Object$4(it);
119
- } : $Object$4;
120
-
121
- // we can't use just `it == null` since of `document.all` special case
122
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
123
- var isNullOrUndefined$3 = function (it) {
124
- return it === null || it === undefined;
125
- };
126
-
127
- var isNullOrUndefined$2 = isNullOrUndefined$3;
128
-
129
- var $TypeError$9 = TypeError;
130
-
131
- // `RequireObjectCoercible` abstract operation
132
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
133
- var requireObjectCoercible$2 = function (it) {
134
- if (isNullOrUndefined$2(it)) throw new $TypeError$9("Can't call method on " + it);
135
- return it;
136
- };
137
-
138
- // toObject with fallback for non-array-like ES3 strings
139
- var IndexedObject = indexedObject;
140
- var requireObjectCoercible$1 = requireObjectCoercible$2;
141
-
142
- var toIndexedObject$4 = function (it) {
143
- return IndexedObject(requireObjectCoercible$1(it));
144
- };
145
-
146
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
147
- var documentAll = typeof document == 'object' && document.all;
148
-
149
- // `IsCallable` abstract operation
150
- // https://tc39.es/ecma262/#sec-iscallable
151
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
152
- var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
153
- return typeof argument == 'function' || argument === documentAll;
154
- } : function (argument) {
155
- return typeof argument == 'function';
156
- };
157
-
158
- var isCallable$d = isCallable$e;
159
-
160
- var isObject$6 = function (it) {
161
- return typeof it == 'object' ? it !== null : isCallable$d(it);
162
- };
163
-
164
- var global$a = global$b;
165
- var isCallable$c = isCallable$e;
166
-
167
- var aFunction = function (argument) {
168
- return isCallable$c(argument) ? argument : undefined;
169
- };
170
-
171
- var getBuiltIn$3 = function (namespace, method) {
172
- return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
173
- };
174
-
175
- var uncurryThis$8 = functionUncurryThis;
176
-
177
- var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
178
-
179
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
180
-
181
- var global$9 = global$b;
182
- var userAgent = engineUserAgent;
183
-
184
- var process = global$9.process;
185
- var Deno = global$9.Deno;
186
- var versions = process && process.versions || Deno && Deno.version;
187
- var v8 = versions && versions.v8;
188
- var match, version;
189
-
190
- if (v8) {
191
- match = v8.split('.');
192
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
193
- // but their correct versions are not interesting for us
194
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
195
- }
196
-
197
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
198
- // so check `userAgent` even if `.v8` exists, but 0
199
- if (!version && userAgent) {
200
- match = userAgent.match(/Edge\/(\d+)/);
201
- if (!match || match[1] >= 74) {
202
- match = userAgent.match(/Chrome\/(\d+)/);
203
- if (match) version = +match[1];
204
- }
205
- }
206
-
207
- var engineV8Version = version;
208
-
209
- /* eslint-disable es/no-symbol -- required for testing */
210
- var V8_VERSION = engineV8Version;
211
- var fails$7 = fails$b;
212
- var global$8 = global$b;
213
-
214
- var $String$3 = global$8.String;
215
-
216
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
217
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
218
- var symbol = Symbol('symbol detection');
219
- // Chrome 38 Symbol has incorrect toString conversion
220
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
221
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
222
- // of course, fail.
223
- return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
224
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
225
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
226
- });
227
-
228
- /* eslint-disable es/no-symbol -- required for testing */
229
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
230
-
231
- var useSymbolAsUid = NATIVE_SYMBOL$1
232
- && !Symbol.sham
233
- && typeof Symbol.iterator == 'symbol';
234
-
235
- var getBuiltIn$2 = getBuiltIn$3;
236
- var isCallable$b = isCallable$e;
237
- var isPrototypeOf$2 = objectIsPrototypeOf;
238
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
239
-
240
- var $Object$3 = Object;
241
-
242
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
243
- return typeof it == 'symbol';
244
- } : function (it) {
245
- var $Symbol = getBuiltIn$2('Symbol');
246
- return isCallable$b($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
247
- };
248
-
249
- var $String$2 = String;
250
-
251
- var tryToString$3 = function (argument) {
252
- try {
253
- return $String$2(argument);
254
- } catch (error) {
255
- return 'Object';
256
- }
257
- };
258
-
259
- var isCallable$a = isCallable$e;
260
- var tryToString$2 = tryToString$3;
261
-
262
- var $TypeError$8 = TypeError;
263
-
264
- // `Assert: IsCallable(argument) is true`
265
- var aCallable$7 = function (argument) {
266
- if (isCallable$a(argument)) return argument;
267
- throw new $TypeError$8(tryToString$2(argument) + ' is not a function');
268
- };
269
-
270
- var aCallable$6 = aCallable$7;
271
- var isNullOrUndefined$1 = isNullOrUndefined$3;
272
-
273
- // `GetMethod` abstract operation
274
- // https://tc39.es/ecma262/#sec-getmethod
275
- var getMethod$4 = function (V, P) {
276
- var func = V[P];
277
- return isNullOrUndefined$1(func) ? undefined : aCallable$6(func);
278
- };
279
-
280
- var call$8 = functionCall;
281
- var isCallable$9 = isCallable$e;
282
- var isObject$5 = isObject$6;
283
-
284
- var $TypeError$7 = TypeError;
285
-
286
- // `OrdinaryToPrimitive` abstract operation
287
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
288
- var ordinaryToPrimitive$1 = function (input, pref) {
289
- var fn, val;
290
- if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$8(fn, input))) return val;
291
- if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$8(fn, input))) return val;
292
- if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$8(fn, input))) return val;
293
- throw new $TypeError$7("Can't convert object to primitive value");
294
- };
295
-
296
- var sharedStore = {exports: {}};
297
-
298
- var isPure = false;
299
-
300
- var global$7 = global$b;
301
-
302
- // eslint-disable-next-line es/no-object-defineproperty -- safe
303
- var defineProperty$2 = Object.defineProperty;
304
-
305
- var defineGlobalProperty$3 = function (key, value) {
306
- try {
307
- defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
308
- } catch (error) {
309
- global$7[key] = value;
310
- } return value;
311
- };
312
-
313
- var globalThis$1 = global$b;
314
- var defineGlobalProperty$2 = defineGlobalProperty$3;
315
-
316
- var SHARED = '__core-js_shared__';
317
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
318
-
319
- (store$3.versions || (store$3.versions = [])).push({
320
- version: '3.36.1',
321
- mode: 'global',
322
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
323
- license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
324
- source: 'https://github.com/zloirock/core-js'
325
- });
326
-
327
- var sharedStoreExports = sharedStore.exports;
328
-
329
- var store$2 = sharedStoreExports;
330
-
331
- var shared$3 = function (key, value) {
332
- return store$2[key] || (store$2[key] = value || {});
333
- };
334
-
335
- var requireObjectCoercible = requireObjectCoercible$2;
336
-
337
- var $Object$2 = Object;
338
-
339
- // `ToObject` abstract operation
340
- // https://tc39.es/ecma262/#sec-toobject
341
- var toObject$2 = function (argument) {
342
- return $Object$2(requireObjectCoercible(argument));
343
- };
344
-
345
- var uncurryThis$7 = functionUncurryThis;
346
- var toObject$1 = toObject$2;
347
-
348
- var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
349
-
350
- // `HasOwnProperty` abstract operation
351
- // https://tc39.es/ecma262/#sec-hasownproperty
352
- // eslint-disable-next-line es/no-object-hasown -- safe
353
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
354
- return hasOwnProperty(toObject$1(it), key);
355
- };
356
-
357
- var uncurryThis$6 = functionUncurryThis;
358
-
359
- var id = 0;
360
- var postfix = Math.random();
361
- var toString = uncurryThis$6(1.0.toString);
362
-
363
- var uid$2 = function (key) {
364
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
365
- };
366
-
367
- var global$6 = global$b;
368
- var shared$2 = shared$3;
369
- var hasOwn$8 = hasOwnProperty_1;
370
- var uid$1 = uid$2;
371
- var NATIVE_SYMBOL = symbolConstructorDetection;
372
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
373
-
374
- var Symbol$1 = global$6.Symbol;
375
- var WellKnownSymbolsStore = shared$2('wks');
376
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
377
-
378
- var wellKnownSymbol$8 = function (name) {
379
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
380
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
381
- ? Symbol$1[name]
382
- : createWellKnownSymbol('Symbol.' + name);
383
- } return WellKnownSymbolsStore[name];
384
- };
385
-
386
- var call$7 = functionCall;
387
- var isObject$4 = isObject$6;
388
- var isSymbol$1 = isSymbol$2;
389
- var getMethod$3 = getMethod$4;
390
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
391
- var wellKnownSymbol$7 = wellKnownSymbol$8;
392
-
393
- var $TypeError$6 = TypeError;
394
- var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
395
-
396
- // `ToPrimitive` abstract operation
397
- // https://tc39.es/ecma262/#sec-toprimitive
398
- var toPrimitive$1 = function (input, pref) {
399
- if (!isObject$4(input) || isSymbol$1(input)) return input;
400
- var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
401
- var result;
402
- if (exoticToPrim) {
403
- if (pref === undefined) pref = 'default';
404
- result = call$7(exoticToPrim, input, pref);
405
- if (!isObject$4(result) || isSymbol$1(result)) return result;
406
- throw new $TypeError$6("Can't convert object to primitive value");
407
- }
408
- if (pref === undefined) pref = 'number';
409
- return ordinaryToPrimitive(input, pref);
410
- };
411
-
412
- var toPrimitive = toPrimitive$1;
413
- var isSymbol = isSymbol$2;
414
-
415
- // `ToPropertyKey` abstract operation
416
- // https://tc39.es/ecma262/#sec-topropertykey
417
- var toPropertyKey$2 = function (argument) {
418
- var key = toPrimitive(argument, 'string');
419
- return isSymbol(key) ? key : key + '';
420
- };
421
-
422
- var global$5 = global$b;
423
- var isObject$3 = isObject$6;
424
-
425
- var document$1 = global$5.document;
426
- // typeof document.createElement is 'object' in old IE
427
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
428
-
429
- var documentCreateElement$1 = function (it) {
430
- return EXISTS$1 ? document$1.createElement(it) : {};
431
- };
432
-
433
- var DESCRIPTORS$9 = descriptors;
434
- var fails$6 = fails$b;
435
- var createElement = documentCreateElement$1;
436
-
437
- // Thanks to IE8 for its funny defineProperty
438
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$6(function () {
439
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
440
- return Object.defineProperty(createElement('div'), 'a', {
441
- get: function () { return 7; }
442
- }).a !== 7;
443
- });
444
-
445
- var DESCRIPTORS$8 = descriptors;
446
- var call$6 = functionCall;
447
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
448
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
449
- var toIndexedObject$3 = toIndexedObject$4;
450
- var toPropertyKey$1 = toPropertyKey$2;
451
- var hasOwn$7 = hasOwnProperty_1;
452
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
453
-
454
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
455
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
456
-
457
- // `Object.getOwnPropertyDescriptor` method
458
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
459
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
460
- O = toIndexedObject$3(O);
461
- P = toPropertyKey$1(P);
462
- if (IE8_DOM_DEFINE$1) try {
463
- return $getOwnPropertyDescriptor$1(O, P);
464
- } catch (error) { /* empty */ }
465
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$6(propertyIsEnumerableModule.f, O, P), O[P]);
466
- };
467
-
468
- var objectDefineProperty = {};
469
-
470
- var DESCRIPTORS$7 = descriptors;
471
- var fails$5 = fails$b;
472
-
473
- // V8 ~ Chrome 36-
474
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
475
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$5(function () {
476
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
477
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
478
- value: 42,
479
- writable: false
480
- }).prototype !== 42;
481
- });
482
-
483
- var isObject$2 = isObject$6;
484
-
485
- var $String$1 = String;
486
- var $TypeError$5 = TypeError;
487
-
488
- // `Assert: Type(argument) is Object`
489
- var anObject$d = function (argument) {
490
- if (isObject$2(argument)) return argument;
491
- throw new $TypeError$5($String$1(argument) + ' is not an object');
492
- };
493
-
494
- var DESCRIPTORS$6 = descriptors;
495
- var IE8_DOM_DEFINE = ie8DomDefine;
496
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
497
- var anObject$c = anObject$d;
498
- var toPropertyKey = toPropertyKey$2;
499
-
500
- var $TypeError$4 = TypeError;
501
- // eslint-disable-next-line es/no-object-defineproperty -- safe
502
- var $defineProperty = Object.defineProperty;
503
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
504
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
505
- var ENUMERABLE = 'enumerable';
506
- var CONFIGURABLE$1 = 'configurable';
507
- var WRITABLE = 'writable';
508
-
509
- // `Object.defineProperty` method
510
- // https://tc39.es/ecma262/#sec-object.defineproperty
511
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
512
- anObject$c(O);
513
- P = toPropertyKey(P);
514
- anObject$c(Attributes);
515
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
516
- var current = $getOwnPropertyDescriptor(O, P);
517
- if (current && current[WRITABLE]) {
518
- O[P] = Attributes.value;
519
- Attributes = {
520
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
521
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
522
- writable: false
523
- };
524
- }
525
- } return $defineProperty(O, P, Attributes);
526
- } : $defineProperty : function defineProperty(O, P, Attributes) {
527
- anObject$c(O);
528
- P = toPropertyKey(P);
529
- anObject$c(Attributes);
530
- if (IE8_DOM_DEFINE) try {
531
- return $defineProperty(O, P, Attributes);
532
- } catch (error) { /* empty */ }
533
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$4('Accessors not supported');
534
- if ('value' in Attributes) O[P] = Attributes.value;
535
- return O;
536
- };
537
-
538
- var DESCRIPTORS$5 = descriptors;
539
- var definePropertyModule$4 = objectDefineProperty;
540
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
541
-
542
- var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
543
- return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
544
- } : function (object, key, value) {
545
- object[key] = value;
546
- return object;
547
- };
548
-
549
- var makeBuiltIn$3 = {exports: {}};
550
-
551
- var DESCRIPTORS$4 = descriptors;
552
- var hasOwn$6 = hasOwnProperty_1;
553
-
554
- var FunctionPrototype = Function.prototype;
555
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
556
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
557
-
558
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
559
- // additional protection from minified / mangled / dropped function names
560
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
561
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
562
-
563
- var functionName = {
564
- EXISTS: EXISTS,
565
- PROPER: PROPER,
566
- CONFIGURABLE: CONFIGURABLE
567
- };
568
-
569
- var uncurryThis$5 = functionUncurryThis;
570
- var isCallable$8 = isCallable$e;
571
- var store$1 = sharedStoreExports;
572
-
573
- var functionToString = uncurryThis$5(Function.toString);
574
-
575
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
576
- if (!isCallable$8(store$1.inspectSource)) {
577
- store$1.inspectSource = function (it) {
578
- return functionToString(it);
579
- };
580
- }
581
-
582
- var inspectSource$1 = store$1.inspectSource;
583
-
584
- var global$4 = global$b;
585
- var isCallable$7 = isCallable$e;
586
-
587
- var WeakMap$1 = global$4.WeakMap;
588
-
589
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
590
-
591
- var shared$1 = shared$3;
592
- var uid = uid$2;
593
-
594
- var keys = shared$1('keys');
595
-
596
- var sharedKey$3 = function (key) {
597
- return keys[key] || (keys[key] = uid(key));
598
- };
599
-
600
- var hiddenKeys$4 = {};
601
-
602
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
603
- var global$3 = global$b;
604
- var isObject$1 = isObject$6;
605
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
606
- var hasOwn$5 = hasOwnProperty_1;
607
- var shared = sharedStoreExports;
608
- var sharedKey$2 = sharedKey$3;
609
- var hiddenKeys$3 = hiddenKeys$4;
610
-
611
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
612
- var TypeError$1 = global$3.TypeError;
613
- var WeakMap = global$3.WeakMap;
614
- var set, get, has;
615
-
616
- var enforce = function (it) {
617
- return has(it) ? get(it) : set(it, {});
618
- };
619
-
620
- var getterFor = function (TYPE) {
621
- return function (it) {
622
- var state;
623
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
624
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
625
- } return state;
626
- };
627
- };
628
-
629
- if (NATIVE_WEAK_MAP || shared.state) {
630
- var store = shared.state || (shared.state = new WeakMap());
631
- /* eslint-disable no-self-assign -- prototype methods protection */
632
- store.get = store.get;
633
- store.has = store.has;
634
- store.set = store.set;
635
- /* eslint-enable no-self-assign -- prototype methods protection */
636
- set = function (it, metadata) {
637
- if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
638
- metadata.facade = it;
639
- store.set(it, metadata);
640
- return metadata;
641
- };
642
- get = function (it) {
643
- return store.get(it) || {};
644
- };
645
- has = function (it) {
646
- return store.has(it);
647
- };
648
- } else {
649
- var STATE = sharedKey$2('state');
650
- hiddenKeys$3[STATE] = true;
651
- set = function (it, metadata) {
652
- if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
653
- metadata.facade = it;
654
- createNonEnumerableProperty$2(it, STATE, metadata);
655
- return metadata;
656
- };
657
- get = function (it) {
658
- return hasOwn$5(it, STATE) ? it[STATE] : {};
659
- };
660
- has = function (it) {
661
- return hasOwn$5(it, STATE);
662
- };
663
- }
664
-
665
- var internalState = {
666
- set: set,
667
- get: get,
668
- has: has,
669
- enforce: enforce,
670
- getterFor: getterFor
671
- };
672
-
673
- var uncurryThis$4 = functionUncurryThis;
674
- var fails$4 = fails$b;
675
- var isCallable$6 = isCallable$e;
676
- var hasOwn$4 = hasOwnProperty_1;
677
- var DESCRIPTORS$3 = descriptors;
678
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
679
- var inspectSource = inspectSource$1;
680
- var InternalStateModule$1 = internalState;
681
-
682
- var enforceInternalState = InternalStateModule$1.enforce;
683
- var getInternalState = InternalStateModule$1.get;
684
- var $String = String;
685
- // eslint-disable-next-line es/no-object-defineproperty -- safe
686
- var defineProperty$1 = Object.defineProperty;
687
- var stringSlice = uncurryThis$4(''.slice);
688
- var replace = uncurryThis$4(''.replace);
689
- var join = uncurryThis$4([].join);
690
-
691
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$4(function () {
692
- return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
693
- });
694
-
695
- var TEMPLATE = String(String).split('String');
696
-
697
- var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
698
- if (stringSlice($String(name), 0, 7) === 'Symbol(') {
699
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
700
- }
701
- if (options && options.getter) name = 'get ' + name;
702
- if (options && options.setter) name = 'set ' + name;
703
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
704
- if (DESCRIPTORS$3) defineProperty$1(value, 'name', { value: name, configurable: true });
705
- else value.name = name;
706
- }
707
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
708
- defineProperty$1(value, 'length', { value: options.arity });
709
- }
710
- try {
711
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
712
- if (DESCRIPTORS$3) defineProperty$1(value, 'prototype', { writable: false });
713
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
714
- } else if (value.prototype) value.prototype = undefined;
715
- } catch (error) { /* empty */ }
716
- var state = enforceInternalState(value);
717
- if (!hasOwn$4(state, 'source')) {
718
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
719
- } return value;
720
- };
721
-
722
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
723
- // eslint-disable-next-line no-extend-native -- required
724
- Function.prototype.toString = makeBuiltIn$2(function toString() {
725
- return isCallable$6(this) && getInternalState(this).source || inspectSource(this);
726
- }, 'toString');
727
-
728
- var makeBuiltInExports = makeBuiltIn$3.exports;
729
-
730
- var isCallable$5 = isCallable$e;
731
- var definePropertyModule$3 = objectDefineProperty;
732
- var makeBuiltIn$1 = makeBuiltInExports;
733
- var defineGlobalProperty$1 = defineGlobalProperty$3;
734
-
735
- var defineBuiltIn$3 = function (O, key, value, options) {
736
- if (!options) options = {};
737
- var simple = options.enumerable;
738
- var name = options.name !== undefined ? options.name : key;
739
- if (isCallable$5(value)) makeBuiltIn$1(value, name, options);
740
- if (options.global) {
741
- if (simple) O[key] = value;
742
- else defineGlobalProperty$1(key, value);
743
- } else {
744
- try {
745
- if (!options.unsafe) delete O[key];
746
- else if (O[key]) simple = true;
747
- } catch (error) { /* empty */ }
748
- if (simple) O[key] = value;
749
- else definePropertyModule$3.f(O, key, {
750
- value: value,
751
- enumerable: false,
752
- configurable: !options.nonConfigurable,
753
- writable: !options.nonWritable
754
- });
755
- } return O;
756
- };
757
-
758
- var objectGetOwnPropertyNames = {};
759
-
760
- var ceil = Math.ceil;
761
- var floor = Math.floor;
762
-
763
- // `Math.trunc` method
764
- // https://tc39.es/ecma262/#sec-math.trunc
765
- // eslint-disable-next-line es/no-math-trunc -- safe
766
- var mathTrunc = Math.trunc || function trunc(x) {
767
- var n = +x;
768
- return (n > 0 ? floor : ceil)(n);
769
- };
770
-
771
- var trunc = mathTrunc;
772
-
773
- // `ToIntegerOrInfinity` abstract operation
774
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
775
- var toIntegerOrInfinity$2 = function (argument) {
776
- var number = +argument;
777
- // eslint-disable-next-line no-self-compare -- NaN check
778
- return number !== number || number === 0 ? 0 : trunc(number);
779
- };
780
-
781
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
782
-
783
- var max = Math.max;
784
- var min$1 = Math.min;
785
-
786
- // Helper for a popular repeating case of the spec:
787
- // Let integer be ? ToInteger(index).
788
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
789
- var toAbsoluteIndex$1 = function (index, length) {
790
- var integer = toIntegerOrInfinity$1(index);
791
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
792
- };
793
-
794
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
795
-
796
- var min = Math.min;
797
-
798
- // `ToLength` abstract operation
799
- // https://tc39.es/ecma262/#sec-tolength
800
- var toLength$1 = function (argument) {
801
- var len = toIntegerOrInfinity(argument);
802
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
803
- };
804
-
805
- var toLength = toLength$1;
806
-
807
- // `LengthOfArrayLike` abstract operation
808
- // https://tc39.es/ecma262/#sec-lengthofarraylike
809
- var lengthOfArrayLike$2 = function (obj) {
810
- return toLength(obj.length);
811
- };
812
-
813
- var toIndexedObject$2 = toIndexedObject$4;
814
- var toAbsoluteIndex = toAbsoluteIndex$1;
815
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
816
-
817
- // `Array.prototype.{ indexOf, includes }` methods implementation
818
- var createMethod = function (IS_INCLUDES) {
819
- return function ($this, el, fromIndex) {
820
- var O = toIndexedObject$2($this);
821
- var length = lengthOfArrayLike$1(O);
822
- if (length === 0) return !IS_INCLUDES && -1;
823
- var index = toAbsoluteIndex(fromIndex, length);
824
- var value;
825
- // Array#includes uses SameValueZero equality algorithm
826
- // eslint-disable-next-line no-self-compare -- NaN check
827
- if (IS_INCLUDES && el !== el) while (length > index) {
828
- value = O[index++];
829
- // eslint-disable-next-line no-self-compare -- NaN check
830
- if (value !== value) return true;
831
- // Array#indexOf ignores holes, Array#includes - not
832
- } else for (;length > index; index++) {
833
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
834
- } return !IS_INCLUDES && -1;
835
- };
836
- };
837
-
838
- var arrayIncludes = {
839
- // `Array.prototype.includes` method
840
- // https://tc39.es/ecma262/#sec-array.prototype.includes
841
- includes: createMethod(true),
842
- // `Array.prototype.indexOf` method
843
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
844
- indexOf: createMethod(false)
845
- };
846
-
847
- var uncurryThis$3 = functionUncurryThis;
848
- var hasOwn$3 = hasOwnProperty_1;
849
- var toIndexedObject$1 = toIndexedObject$4;
850
- var indexOf = arrayIncludes.indexOf;
851
- var hiddenKeys$2 = hiddenKeys$4;
852
-
853
- var push = uncurryThis$3([].push);
854
-
855
- var objectKeysInternal = function (object, names) {
856
- var O = toIndexedObject$1(object);
857
- var i = 0;
858
- var result = [];
859
- var key;
860
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
861
- // Don't enum bug & hidden keys
862
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
863
- ~indexOf(result, key) || push(result, key);
864
- }
865
- return result;
866
- };
867
-
868
- // IE8- don't enum bug keys
869
- var enumBugKeys$3 = [
870
- 'constructor',
871
- 'hasOwnProperty',
872
- 'isPrototypeOf',
873
- 'propertyIsEnumerable',
874
- 'toLocaleString',
875
- 'toString',
876
- 'valueOf'
877
- ];
878
-
879
- var internalObjectKeys$1 = objectKeysInternal;
880
- var enumBugKeys$2 = enumBugKeys$3;
881
-
882
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
883
-
884
- // `Object.getOwnPropertyNames` method
885
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
886
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
887
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
888
- return internalObjectKeys$1(O, hiddenKeys$1);
889
- };
890
-
891
- var objectGetOwnPropertySymbols = {};
892
-
893
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
894
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
895
-
896
- var getBuiltIn$1 = getBuiltIn$3;
897
- var uncurryThis$2 = functionUncurryThis;
898
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
899
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
900
- var anObject$b = anObject$d;
901
-
902
- var concat = uncurryThis$2([].concat);
903
-
904
- // all object keys, includes non-enumerable and symbols
905
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
906
- var keys = getOwnPropertyNamesModule.f(anObject$b(it));
907
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
908
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
909
- };
910
-
911
- var hasOwn$2 = hasOwnProperty_1;
912
- var ownKeys = ownKeys$1;
913
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
914
- var definePropertyModule$2 = objectDefineProperty;
915
-
916
- var copyConstructorProperties$1 = function (target, source, exceptions) {
917
- var keys = ownKeys(source);
918
- var defineProperty = definePropertyModule$2.f;
919
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
920
- for (var i = 0; i < keys.length; i++) {
921
- var key = keys[i];
922
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
923
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
924
- }
925
- }
926
- };
927
-
928
- var fails$3 = fails$b;
929
- var isCallable$4 = isCallable$e;
930
-
931
- var replacement = /#|\.prototype\./;
932
-
933
- var isForced$1 = function (feature, detection) {
934
- var value = data[normalize(feature)];
935
- return value === POLYFILL ? true
936
- : value === NATIVE ? false
937
- : isCallable$4(detection) ? fails$3(detection)
938
- : !!detection;
939
- };
940
-
941
- var normalize = isForced$1.normalize = function (string) {
942
- return String(string).replace(replacement, '.').toLowerCase();
943
- };
944
-
945
- var data = isForced$1.data = {};
946
- var NATIVE = isForced$1.NATIVE = 'N';
947
- var POLYFILL = isForced$1.POLYFILL = 'P';
948
-
949
- var isForced_1 = isForced$1;
950
-
951
- var global$2 = global$b;
952
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
953
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
954
- var defineBuiltIn$2 = defineBuiltIn$3;
955
- var defineGlobalProperty = defineGlobalProperty$3;
956
- var copyConstructorProperties = copyConstructorProperties$1;
957
- var isForced = isForced_1;
958
-
959
- /*
960
- options.target - name of the target object
961
- options.global - target is the global object
962
- options.stat - export as static methods of target
963
- options.proto - export as prototype methods of target
964
- options.real - real prototype method for the `pure` version
965
- options.forced - export even if the native feature is available
966
- options.bind - bind methods to the target, required for the `pure` version
967
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
968
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
969
- options.sham - add a flag to not completely full polyfills
970
- options.enumerable - export as enumerable property
971
- options.dontCallGetSet - prevent calling a getter on target
972
- options.name - the .name of the function if it does not match the key
973
- */
974
- var _export = function (options, source) {
975
- var TARGET = options.target;
976
- var GLOBAL = options.global;
977
- var STATIC = options.stat;
978
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
979
- if (GLOBAL) {
980
- target = global$2;
981
- } else if (STATIC) {
982
- target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
983
- } else {
984
- target = global$2[TARGET] && global$2[TARGET].prototype;
985
- }
986
- if (target) for (key in source) {
987
- sourceProperty = source[key];
988
- if (options.dontCallGetSet) {
989
- descriptor = getOwnPropertyDescriptor(target, key);
990
- targetProperty = descriptor && descriptor.value;
991
- } else targetProperty = target[key];
992
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
993
- // contained in target
994
- if (!FORCED && targetProperty !== undefined) {
995
- if (typeof sourceProperty == typeof targetProperty) continue;
996
- copyConstructorProperties(sourceProperty, targetProperty);
997
- }
998
- // add a flag to not completely full polyfills
999
- if (options.sham || (targetProperty && targetProperty.sham)) {
1000
- createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1001
- }
1002
- defineBuiltIn$2(target, key, sourceProperty, options);
1003
- }
1004
- };
1005
-
1006
- var isPrototypeOf$1 = objectIsPrototypeOf;
1007
-
1008
- var $TypeError$3 = TypeError;
1009
-
1010
- var anInstance$1 = function (it, Prototype) {
1011
- if (isPrototypeOf$1(Prototype, it)) return it;
1012
- throw new $TypeError$3('Incorrect invocation');
1013
- };
1014
-
1015
- var fails$2 = fails$b;
1016
-
1017
- var correctPrototypeGetter = !fails$2(function () {
1018
- function F() { /* empty */ }
1019
- F.prototype.constructor = null;
1020
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1021
- return Object.getPrototypeOf(new F()) !== F.prototype;
1022
- });
1023
-
1024
- var hasOwn$1 = hasOwnProperty_1;
1025
- var isCallable$3 = isCallable$e;
1026
- var toObject = toObject$2;
1027
- var sharedKey$1 = sharedKey$3;
1028
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1029
-
1030
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1031
- var $Object$1 = Object;
1032
- var ObjectPrototype = $Object$1.prototype;
1033
-
1034
- // `Object.getPrototypeOf` method
1035
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1036
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1037
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1038
- var object = toObject(O);
1039
- if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
1040
- var constructor = object.constructor;
1041
- if (isCallable$3(constructor) && object instanceof constructor) {
1042
- return constructor.prototype;
1043
- } return object instanceof $Object$1 ? ObjectPrototype : null;
1044
- };
1045
-
1046
- var makeBuiltIn = makeBuiltInExports;
1047
- var defineProperty = objectDefineProperty;
1048
-
1049
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1050
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1051
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1052
- return defineProperty.f(target, name, descriptor);
1053
- };
1054
-
1055
- var DESCRIPTORS$2 = descriptors;
1056
- var definePropertyModule$1 = objectDefineProperty;
1057
- var createPropertyDescriptor = createPropertyDescriptor$3;
1058
-
1059
- var createProperty$1 = function (object, key, value) {
1060
- if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
1061
- else object[key] = value;
1062
- };
1063
-
1064
- var objectDefineProperties = {};
1065
-
1066
- var internalObjectKeys = objectKeysInternal;
1067
- var enumBugKeys$1 = enumBugKeys$3;
1068
-
1069
- // `Object.keys` method
1070
- // https://tc39.es/ecma262/#sec-object.keys
1071
- // eslint-disable-next-line es/no-object-keys -- safe
1072
- var objectKeys$1 = Object.keys || function keys(O) {
1073
- return internalObjectKeys(O, enumBugKeys$1);
1074
- };
1075
-
1076
- var DESCRIPTORS$1 = descriptors;
1077
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1078
- var definePropertyModule = objectDefineProperty;
1079
- var anObject$a = anObject$d;
1080
- var toIndexedObject = toIndexedObject$4;
1081
- var objectKeys = objectKeys$1;
1082
-
1083
- // `Object.defineProperties` method
1084
- // https://tc39.es/ecma262/#sec-object.defineproperties
1085
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1086
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1087
- anObject$a(O);
1088
- var props = toIndexedObject(Properties);
1089
- var keys = objectKeys(Properties);
1090
- var length = keys.length;
1091
- var index = 0;
1092
- var key;
1093
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1094
- return O;
1095
- };
1096
-
1097
- var getBuiltIn = getBuiltIn$3;
1098
-
1099
- var html$1 = getBuiltIn('document', 'documentElement');
1100
-
1101
- /* global ActiveXObject -- old IE, WSH */
1102
- var anObject$9 = anObject$d;
1103
- var definePropertiesModule = objectDefineProperties;
1104
- var enumBugKeys = enumBugKeys$3;
1105
- var hiddenKeys = hiddenKeys$4;
1106
- var html = html$1;
1107
- var documentCreateElement = documentCreateElement$1;
1108
- var sharedKey = sharedKey$3;
1109
-
1110
- var GT = '>';
1111
- var LT = '<';
1112
- var PROTOTYPE = 'prototype';
1113
- var SCRIPT = 'script';
1114
- var IE_PROTO = sharedKey('IE_PROTO');
1115
-
1116
- var EmptyConstructor = function () { /* empty */ };
1117
-
1118
- var scriptTag = function (content) {
1119
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1120
- };
1121
-
1122
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1123
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1124
- activeXDocument.write(scriptTag(''));
1125
- activeXDocument.close();
1126
- var temp = activeXDocument.parentWindow.Object;
1127
- activeXDocument = null; // avoid memory leak
1128
- return temp;
1129
- };
1130
-
1131
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1132
- var NullProtoObjectViaIFrame = function () {
1133
- // Thrash, waste and sodomy: IE GC bug
1134
- var iframe = documentCreateElement('iframe');
1135
- var JS = 'java' + SCRIPT + ':';
1136
- var iframeDocument;
1137
- iframe.style.display = 'none';
1138
- html.appendChild(iframe);
1139
- // https://github.com/zloirock/core-js/issues/475
1140
- iframe.src = String(JS);
1141
- iframeDocument = iframe.contentWindow.document;
1142
- iframeDocument.open();
1143
- iframeDocument.write(scriptTag('document.F=Object'));
1144
- iframeDocument.close();
1145
- return iframeDocument.F;
1146
- };
1147
-
1148
- // Check for document.domain and active x support
1149
- // No need to use active x approach when document.domain is not set
1150
- // see https://github.com/es-shims/es5-shim/issues/150
1151
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1152
- // avoid IE GC bug
1153
- var activeXDocument;
1154
- var NullProtoObject = function () {
1155
- try {
1156
- activeXDocument = new ActiveXObject('htmlfile');
1157
- } catch (error) { /* ignore */ }
1158
- NullProtoObject = typeof document != 'undefined'
1159
- ? document.domain && activeXDocument
1160
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1161
- : NullProtoObjectViaIFrame()
1162
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1163
- var length = enumBugKeys.length;
1164
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1165
- return NullProtoObject();
1166
- };
1167
-
1168
- hiddenKeys[IE_PROTO] = true;
1169
-
1170
- // `Object.create` method
1171
- // https://tc39.es/ecma262/#sec-object.create
1172
- // eslint-disable-next-line es/no-object-create -- safe
1173
- var objectCreate = Object.create || function create(O, Properties) {
1174
- var result;
1175
- if (O !== null) {
1176
- EmptyConstructor[PROTOTYPE] = anObject$9(O);
1177
- result = new EmptyConstructor();
1178
- EmptyConstructor[PROTOTYPE] = null;
1179
- // add "__proto__" for Object.getPrototypeOf polyfill
1180
- result[IE_PROTO] = O;
1181
- } else result = NullProtoObject();
1182
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1183
- };
1184
-
1185
- var fails$1 = fails$b;
1186
- var isCallable$2 = isCallable$e;
1187
- var isObject = isObject$6;
1188
- var getPrototypeOf$1 = objectGetPrototypeOf;
1189
- var defineBuiltIn$1 = defineBuiltIn$3;
1190
- var wellKnownSymbol$6 = wellKnownSymbol$8;
1191
-
1192
- var ITERATOR$3 = wellKnownSymbol$6('iterator');
1193
- var BUGGY_SAFARI_ITERATORS = false;
1194
-
1195
- // `%IteratorPrototype%` object
1196
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1197
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1198
-
1199
- /* eslint-disable es/no-array-prototype-keys -- safe */
1200
- if ([].keys) {
1201
- arrayIterator = [].keys();
1202
- // Safari 8 has buggy iterators w/o `next`
1203
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1204
- else {
1205
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1206
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1207
- }
1208
- }
1209
-
1210
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$1(function () {
1211
- var test = {};
1212
- // FF44- legacy iterators case
1213
- return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
1214
- });
1215
-
1216
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1217
-
1218
- // `%IteratorPrototype%[@@iterator]()` method
1219
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1220
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$3])) {
1221
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$3, function () {
1222
- return this;
1223
- });
1224
- }
1225
-
1226
- var iteratorsCore = {
1227
- IteratorPrototype: IteratorPrototype$2,
1228
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1229
- };
1230
-
1231
- var $$4 = _export;
1232
- var global$1 = global$b;
1233
- var anInstance = anInstance$1;
1234
- var anObject$8 = anObject$d;
1235
- var isCallable$1 = isCallable$e;
1236
- var getPrototypeOf = objectGetPrototypeOf;
1237
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1238
- var createProperty = createProperty$1;
1239
- var fails = fails$b;
1240
- var hasOwn = hasOwnProperty_1;
1241
- var wellKnownSymbol$5 = wellKnownSymbol$8;
1242
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1243
- var DESCRIPTORS = descriptors;
1244
-
1245
- var CONSTRUCTOR = 'constructor';
1246
- var ITERATOR$2 = 'Iterator';
1247
- var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
1248
-
1249
- var $TypeError$2 = TypeError;
1250
- var NativeIterator = global$1[ITERATOR$2];
1251
-
1252
- // FF56- have non-standard global helper `Iterator`
1253
- var FORCED = !isCallable$1(NativeIterator)
1254
- || NativeIterator.prototype !== IteratorPrototype$1
1255
- // FF44- non-standard `Iterator` passes previous tests
1256
- || !fails(function () { NativeIterator({}); });
1257
-
1258
- var IteratorConstructor = function Iterator() {
1259
- anInstance(this, IteratorPrototype$1);
1260
- if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$2('Abstract class Iterator not directly constructable');
1261
- };
1262
-
1263
- var defineIteratorPrototypeAccessor = function (key, value) {
1264
- if (DESCRIPTORS) {
1265
- defineBuiltInAccessor(IteratorPrototype$1, key, {
1266
- configurable: true,
1267
- get: function () {
1268
- return value;
1269
- },
1270
- set: function (replacement) {
1271
- anObject$8(this);
1272
- if (this === IteratorPrototype$1) throw new $TypeError$2("You can't redefine this property");
1273
- if (hasOwn(this, key)) this[key] = replacement;
1274
- else createProperty(this, key, replacement);
1275
- }
1276
- });
1277
- } else IteratorPrototype$1[key] = value;
1278
- };
1279
-
1280
- if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
1281
-
1282
- if (FORCED || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1283
- defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1284
- }
1285
-
1286
- IteratorConstructor.prototype = IteratorPrototype$1;
1287
-
1288
- // `Iterator` constructor
1289
- // https://github.com/tc39/proposal-iterator-helpers
1290
- $$4({ global: true, constructor: true, forced: FORCED }, {
1291
- Iterator: IteratorConstructor
1292
- });
1293
-
1294
- // `GetIteratorDirect(obj)` abstract operation
1295
- // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
1296
- var getIteratorDirect$4 = function (obj) {
1297
- return {
1298
- iterator: obj,
1299
- next: obj.next,
1300
- done: false
1301
- };
1302
- };
1303
-
1304
- var defineBuiltIn = defineBuiltIn$3;
1305
-
1306
- var defineBuiltIns$1 = function (target, src, options) {
1307
- for (var key in src) defineBuiltIn(target, key, src[key], options);
1308
- return target;
1309
- };
1310
-
1311
- // `CreateIterResultObject` abstract operation
1312
- // https://tc39.es/ecma262/#sec-createiterresultobject
1313
- var createIterResultObject$1 = function (value, done) {
1314
- return { value: value, done: done };
1315
- };
1316
-
1317
- var call$5 = functionCall;
1318
- var anObject$7 = anObject$d;
1319
- var getMethod$2 = getMethod$4;
1320
-
1321
- var iteratorClose$3 = function (iterator, kind, value) {
1322
- var innerResult, innerError;
1323
- anObject$7(iterator);
1324
- try {
1325
- innerResult = getMethod$2(iterator, 'return');
1326
- if (!innerResult) {
1327
- if (kind === 'throw') throw value;
1328
- return value;
1329
- }
1330
- innerResult = call$5(innerResult, iterator);
1331
- } catch (error) {
1332
- innerError = true;
1333
- innerResult = error;
1334
- }
1335
- if (kind === 'throw') throw value;
1336
- if (innerError) throw innerResult;
1337
- anObject$7(innerResult);
1338
- return value;
1339
- };
1340
-
1341
- var call$4 = functionCall;
1342
- var create = objectCreate;
1343
- var createNonEnumerableProperty = createNonEnumerableProperty$3;
1344
- var defineBuiltIns = defineBuiltIns$1;
1345
- var wellKnownSymbol$4 = wellKnownSymbol$8;
1346
- var InternalStateModule = internalState;
1347
- var getMethod$1 = getMethod$4;
1348
- var IteratorPrototype = iteratorsCore.IteratorPrototype;
1349
- var createIterResultObject = createIterResultObject$1;
1350
- var iteratorClose$2 = iteratorClose$3;
1351
-
1352
- var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1353
- var ITERATOR_HELPER = 'IteratorHelper';
1354
- var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1355
- var setInternalState = InternalStateModule.set;
1356
-
1357
- var createIteratorProxyPrototype = function (IS_ITERATOR) {
1358
- var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1359
-
1360
- return defineBuiltIns(create(IteratorPrototype), {
1361
- next: function next() {
1362
- var state = getInternalState(this);
1363
- // for simplification:
1364
- // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
1365
- // for `%IteratorHelperPrototype%.next` - just a value
1366
- if (IS_ITERATOR) return state.nextHandler();
1367
- try {
1368
- var result = state.done ? undefined : state.nextHandler();
1369
- return createIterResultObject(result, state.done);
1370
- } catch (error) {
1371
- state.done = true;
1372
- throw error;
1373
- }
1374
- },
1375
- 'return': function () {
1376
- var state = getInternalState(this);
1377
- var iterator = state.iterator;
1378
- state.done = true;
1379
- if (IS_ITERATOR) {
1380
- var returnMethod = getMethod$1(iterator, 'return');
1381
- return returnMethod ? call$4(returnMethod, iterator) : createIterResultObject(undefined, true);
1382
- }
1383
- if (state.inner) try {
1384
- iteratorClose$2(state.inner.iterator, 'normal');
1385
- } catch (error) {
1386
- return iteratorClose$2(iterator, 'throw', error);
1387
- }
1388
- iteratorClose$2(iterator, 'normal');
1389
- return createIterResultObject(undefined, true);
1390
- }
1391
- });
1392
- };
1393
-
1394
- var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
1395
- var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1396
-
1397
- createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG$2, 'Iterator Helper');
1398
-
1399
- var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
1400
- var IteratorProxy = function Iterator(record, state) {
1401
- if (state) {
1402
- state.iterator = record.iterator;
1403
- state.next = record.next;
1404
- } else state = record;
1405
- state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
1406
- state.nextHandler = nextHandler;
1407
- state.counter = 0;
1408
- state.done = false;
1409
- setInternalState(this, state);
1410
- };
1411
-
1412
- IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
1413
-
1414
- return IteratorProxy;
1415
- };
1416
-
1417
- var anObject$6 = anObject$d;
1418
- var iteratorClose$1 = iteratorClose$3;
1419
-
1420
- // call something on iterator step with safe closing on error
1421
- var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
1422
- try {
1423
- return ENTRIES ? fn(anObject$6(value)[0], value[1]) : fn(value);
1424
- } catch (error) {
1425
- iteratorClose$1(iterator, 'throw', error);
1426
- }
1427
- };
1428
-
1429
- var $$3 = _export;
1430
- var call$3 = functionCall;
1431
- var aCallable$5 = aCallable$7;
1432
- var anObject$5 = anObject$d;
1433
- var getIteratorDirect$3 = getIteratorDirect$4;
1434
- var createIteratorProxy$1 = iteratorCreateProxy;
1435
- var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
1436
- var IS_PURE$1 = isPure;
1437
-
1438
- var IteratorProxy$1 = createIteratorProxy$1(function () {
1439
- var iterator = this.iterator;
1440
- var predicate = this.predicate;
1441
- var next = this.next;
1442
- var result, done, value;
1443
- while (true) {
1444
- result = anObject$5(call$3(next, iterator));
1445
- done = this.done = !!result.done;
1446
- if (done) return;
1447
- value = result.value;
1448
- if (callWithSafeIterationClosing$1(iterator, predicate, [value, this.counter++], true)) return value;
1449
- }
1450
- });
1451
-
1452
- // `Iterator.prototype.filter` method
1453
- // https://github.com/tc39/proposal-iterator-helpers
1454
- $$3({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
1455
- filter: function filter(predicate) {
1456
- anObject$5(this);
1457
- aCallable$5(predicate);
1458
- return new IteratorProxy$1(getIteratorDirect$3(this), {
1459
- predicate: predicate
1460
- });
1461
- }
1462
- });
1463
-
1464
- var classofRaw$1 = classofRaw$2;
1465
- var uncurryThis$1 = functionUncurryThis;
1466
-
1467
- var functionUncurryThisClause = function (fn) {
1468
- // Nashorn bug:
1469
- // https://github.com/zloirock/core-js/issues/1128
1470
- // https://github.com/zloirock/core-js/issues/1130
1471
- if (classofRaw$1(fn) === 'Function') return uncurryThis$1(fn);
1472
- };
1473
-
1474
- var uncurryThis = functionUncurryThisClause;
1475
- var aCallable$4 = aCallable$7;
1476
- var NATIVE_BIND = functionBindNative;
1477
-
1478
- var bind$1 = uncurryThis(uncurryThis.bind);
1479
-
1480
- // optional / simple context binding
1481
- var functionBindContext = function (fn, that) {
1482
- aCallable$4(fn);
1483
- return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1484
- return fn.apply(that, arguments);
1485
- };
1486
- };
1487
-
1488
- var iterators = {};
1489
-
1490
- var wellKnownSymbol$3 = wellKnownSymbol$8;
1491
- var Iterators$1 = iterators;
1492
-
1493
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
1494
- var ArrayPrototype = Array.prototype;
1495
-
1496
- // check on default Array iterator
1497
- var isArrayIteratorMethod$1 = function (it) {
1498
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
1499
- };
1500
-
1501
- var wellKnownSymbol$2 = wellKnownSymbol$8;
1502
-
1503
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1504
- var test = {};
1505
-
1506
- test[TO_STRING_TAG$1] = 'z';
1507
-
1508
- var toStringTagSupport = String(test) === '[object z]';
1509
-
1510
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1511
- var isCallable = isCallable$e;
1512
- var classofRaw = classofRaw$2;
1513
- var wellKnownSymbol$1 = wellKnownSymbol$8;
1514
-
1515
- var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
1516
- var $Object = Object;
1517
-
1518
- // ES3 wrong here
1519
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1520
-
1521
- // fallback for IE11 Script Access Denied error
1522
- var tryGet = function (it, key) {
1523
- try {
1524
- return it[key];
1525
- } catch (error) { /* empty */ }
1526
- };
1527
-
1528
- // getting tag from ES6+ `Object.prototype.toString`
1529
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1530
- var O, tag, result;
1531
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1532
- // @@toStringTag case
1533
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1534
- // builtinTag case
1535
- : CORRECT_ARGUMENTS ? classofRaw(O)
1536
- // ES3 arguments fallback
1537
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1538
- };
1539
-
1540
- var classof = classof$1;
1541
- var getMethod = getMethod$4;
1542
- var isNullOrUndefined = isNullOrUndefined$3;
1543
- var Iterators = iterators;
1544
- var wellKnownSymbol = wellKnownSymbol$8;
1545
-
1546
- var ITERATOR = wellKnownSymbol('iterator');
1547
-
1548
- var getIteratorMethod$2 = function (it) {
1549
- if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
1550
- || getMethod(it, '@@iterator')
1551
- || Iterators[classof(it)];
1552
- };
1553
-
1554
- var call$2 = functionCall;
1555
- var aCallable$3 = aCallable$7;
1556
- var anObject$4 = anObject$d;
1557
- var tryToString$1 = tryToString$3;
1558
- var getIteratorMethod$1 = getIteratorMethod$2;
1559
-
1560
- var $TypeError$1 = TypeError;
1561
-
1562
- var getIterator$1 = function (argument, usingIterator) {
1563
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1564
- if (aCallable$3(iteratorMethod)) return anObject$4(call$2(iteratorMethod, argument));
1565
- throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
1566
- };
1567
-
1568
- var bind = functionBindContext;
1569
- var call$1 = functionCall;
1570
- var anObject$3 = anObject$d;
1571
- var tryToString = tryToString$3;
1572
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1573
- var lengthOfArrayLike = lengthOfArrayLike$2;
1574
- var isPrototypeOf = objectIsPrototypeOf;
1575
- var getIterator = getIterator$1;
1576
- var getIteratorMethod = getIteratorMethod$2;
1577
- var iteratorClose = iteratorClose$3;
1578
-
1579
- var $TypeError = TypeError;
1580
-
1581
- var Result = function (stopped, result) {
1582
- this.stopped = stopped;
1583
- this.result = result;
1584
- };
1585
-
1586
- var ResultPrototype = Result.prototype;
1587
-
1588
- var iterate$2 = function (iterable, unboundFunction, options) {
1589
- var that = options && options.that;
1590
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1591
- var IS_RECORD = !!(options && options.IS_RECORD);
1592
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1593
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1594
- var fn = bind(unboundFunction, that);
1595
- var iterator, iterFn, index, length, result, next, step;
1596
-
1597
- var stop = function (condition) {
1598
- if (iterator) iteratorClose(iterator, 'normal', condition);
1599
- return new Result(true, condition);
1600
- };
1601
-
1602
- var callFn = function (value) {
1603
- if (AS_ENTRIES) {
1604
- anObject$3(value);
1605
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1606
- } return INTERRUPTED ? fn(value, stop) : fn(value);
1607
- };
1608
-
1609
- if (IS_RECORD) {
1610
- iterator = iterable.iterator;
1611
- } else if (IS_ITERATOR) {
1612
- iterator = iterable;
1613
- } else {
1614
- iterFn = getIteratorMethod(iterable);
1615
- if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
1616
- // optimisation for array iterators
1617
- if (isArrayIteratorMethod(iterFn)) {
1618
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1619
- result = callFn(iterable[index]);
1620
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
1621
- } return new Result(false);
1622
- }
1623
- iterator = getIterator(iterable, iterFn);
1624
- }
1625
-
1626
- next = IS_RECORD ? iterable.next : iterator.next;
1627
- while (!(step = call$1(next, iterator)).done) {
1628
- try {
1629
- result = callFn(step.value);
1630
- } catch (error) {
1631
- iteratorClose(iterator, 'throw', error);
1632
- }
1633
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1634
- } return new Result(false);
1635
- };
1636
-
1637
- var $$2 = _export;
1638
- var iterate$1 = iterate$2;
1639
- var aCallable$2 = aCallable$7;
1640
- var anObject$2 = anObject$d;
1641
- var getIteratorDirect$2 = getIteratorDirect$4;
1642
-
1643
- // `Iterator.prototype.find` method
1644
- // https://github.com/tc39/proposal-iterator-helpers
1645
- $$2({ target: 'Iterator', proto: true, real: true }, {
1646
- find: function find(predicate) {
1647
- anObject$2(this);
1648
- aCallable$2(predicate);
1649
- var record = getIteratorDirect$2(this);
1650
- var counter = 0;
1651
- return iterate$1(record, function (value, stop) {
1652
- if (predicate(value, counter++)) return stop(value);
1653
- }, { IS_RECORD: true, INTERRUPTED: true }).result;
1654
- }
1655
- });
1656
-
1657
- var $$1 = _export;
1658
- var iterate = iterate$2;
1659
- var aCallable$1 = aCallable$7;
1660
- var anObject$1 = anObject$d;
1661
- var getIteratorDirect$1 = getIteratorDirect$4;
1662
-
1663
- // `Iterator.prototype.forEach` method
1664
- // https://github.com/tc39/proposal-iterator-helpers
1665
- $$1({ target: 'Iterator', proto: true, real: true }, {
1666
- forEach: function forEach(fn) {
1667
- anObject$1(this);
1668
- aCallable$1(fn);
1669
- var record = getIteratorDirect$1(this);
1670
- var counter = 0;
1671
- iterate(record, function (value) {
1672
- fn(value, counter++);
1673
- }, { IS_RECORD: true });
1674
- }
1675
- });
1676
-
1677
- var call = functionCall;
1678
- var aCallable = aCallable$7;
1679
- var anObject = anObject$d;
1680
- var getIteratorDirect = getIteratorDirect$4;
1681
- var createIteratorProxy = iteratorCreateProxy;
1682
- var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
1683
-
1684
- var IteratorProxy = createIteratorProxy(function () {
1685
- var iterator = this.iterator;
1686
- var result = anObject(call(this.next, iterator));
1687
- var done = this.done = !!result.done;
1688
- if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
1689
- });
1690
-
1691
- // `Iterator.prototype.map` method
1692
- // https://github.com/tc39/proposal-iterator-helpers
1693
- var iteratorMap = function map(mapper) {
1694
- anObject(this);
1695
- aCallable(mapper);
1696
- return new IteratorProxy(getIteratorDirect(this), {
1697
- mapper: mapper
1698
- });
1699
- };
1700
-
1701
- var $ = _export;
1702
- var map = iteratorMap;
1703
- var IS_PURE = isPure;
1704
-
1705
- // `Iterator.prototype.map` method
1706
- // https://github.com/tc39/proposal-iterator-helpers
1707
- $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
1708
- map: map
1709
- });
1710
-
1711
13
  function asObservable(valueOrObs) {
1712
14
  if (rxjs.isObservable(valueOrObs)) {
1713
15
  return valueOrObs;
@@ -1949,17 +251,6 @@ function emitDelayObs(startWith, endWith, delayTime) {
1949
251
  function emitAfterDelay(value, delayTime) {
1950
252
  return obs => obs.pipe(rxjs.switchMap(x => rxjs.of(value).pipe(rxjs.delay(delayTime), rxjs.startWith(x))));
1951
253
  }
1952
- // MARK: Compat
1953
- /**
1954
- * @deprecated use switchMapFilterMaybe instead.
1955
- */
1956
- const switchMapMaybeObs = switchMapFilterMaybe;
1957
- /**
1958
- * Skips all initial maybe values, and then returns all values after the first non-null/undefined value is returned.
1959
- *
1960
- * @deprecated use skipAllInitialMaybe instead.
1961
- */
1962
- const skipFirstMaybe = skipAllInitialMaybe;
1963
254
 
1964
255
  /**
1965
256
  * Equivalent to distinctUntilChanged() using areEqualPOJOValues().
@@ -2133,13 +424,6 @@ class FilterSourceInstance {
2133
424
  this._initialFilter.complete();
2134
425
  this._defaultFilter.complete();
2135
426
  }
2136
- // MARK: Compat
2137
- /**
2138
- * @deprecated use setInitialFilterTakesPriority instead.
2139
- */
2140
- set initialFilterTakesPriority(initialFilterTakesPriority) {
2141
- this.setInitialFilterTakesPriority(initialFilterTakesPriority);
2142
- }
2143
427
  }
2144
428
 
2145
429
  /**
@@ -2576,6 +860,79 @@ function filterItemsWithObservableDecision(observableDecisionFunction, throttle
2576
860
  });
2577
861
  }
2578
862
 
863
+ /**
864
+ * Creates a new Expires object at the current time on emission that will expire in the set amount of time.
865
+ *
866
+ * @param expiresIn
867
+ * @returns
868
+ */
869
+ function toExpiration(expiresIn) {
870
+ return rxjs.map(() => {
871
+ const now = new Date();
872
+ const expirationDate = util.expirationDetails({
873
+ expiresFromDate: now,
874
+ expiresIn
875
+ }).getExpirationDate();
876
+ return {
877
+ expiresAt: expirationDate
878
+ };
879
+ });
880
+ }
881
+ /**
882
+ * Filters further emissions once the input is expired.
883
+ */
884
+ function skipExpired() {
885
+ return rxjs.filter(expires => !util.expirationDetails({
886
+ expires
887
+ }).hasExpired());
888
+ }
889
+ /**
890
+ * Skips the input date or timenumber until expiration occurs.
891
+ */
892
+ function skipUntilExpiration(expiresIn) {
893
+ return rxjs.filter(x => util.expirationDetails({
894
+ expiresFromDate: x,
895
+ expiresIn
896
+ }).hasExpired());
897
+ }
898
+ /**
899
+ * Skips the input date or timenumber after expiration occurs.
900
+ */
901
+ function skipAfterExpiration(expiresIn) {
902
+ return rxjs.filter(x => !util.expirationDetails({
903
+ expiresFromDate: x,
904
+ expiresIn
905
+ }).hasExpired());
906
+ }
907
+ /**
908
+ * Skips emissions until time since the last emission from the watch observable has elapsed.
909
+ */
910
+ function skipUntilTimeElapsedAfterLastEmission(watch, takeFor) {
911
+ return observable => {
912
+ return watch.pipe(rxjs.switchMap(() => {
913
+ const details = util.expirationDetails({
914
+ expiresFromDate: new Date(),
915
+ expiresIn: takeFor
916
+ });
917
+ return observable.pipe(rxjs.takeWhile(() => !details.hasExpired()));
918
+ }));
919
+ };
920
+ }
921
+ /**
922
+ * Takes emissions until time since the last emission from the watch observable has elapsed.
923
+ */
924
+ function takeAfterTimeElapsedSinceLastEmission(watch, skipFor) {
925
+ return observable => {
926
+ return watch.pipe(rxjs.switchMap(() => {
927
+ const details = util.expirationDetails({
928
+ expiresFromDate: new Date(),
929
+ expiresIn: skipFor
930
+ });
931
+ return observable.pipe(rxjs.skipWhile(() => !details.hasExpired()));
932
+ }));
933
+ };
934
+ }
935
+
2579
936
  /**
2580
937
  * Used to pass a default value incase an observable has not yet started emititng values.
2581
938
  */
@@ -2854,7 +1211,7 @@ function asyncPusher(config = {}) {
2854
1211
  } = config;
2855
1212
  const _subject = new rxjs.BehaviorSubject(undefined);
2856
1213
  const _sub = new SubscriptionObject();
2857
- let obs = _subject.pipe(skipFirstMaybe(), rxjs.throttleTime(throttle, undefined, {
1214
+ let obs = _subject.pipe(skipAllInitialMaybe(), rxjs.throttleTime(throttle, undefined, {
2858
1215
  leading: false,
2859
1216
  trailing: true
2860
1217
  }));
@@ -3422,67 +1779,6 @@ function mapLoadingStateValueFunction(mapFn) {
3422
1779
  return result;
3423
1780
  };
3424
1781
  }
3425
- // MARK: Compat
3426
- /**
3427
- * @deprecated use unknownLoadingStatesIsLoading instead.
3428
- */
3429
- const unknownLoadingStatesIsLoading = isAnyLoadingStateInLoadingState;
3430
- /**
3431
- * @deprecated use areAllLoadingStatesFinishedLoading instead.
3432
- */
3433
- const allLoadingStatesHaveFinishedLoading = areAllLoadingStatesFinishedLoading;
3434
- /**
3435
- * @deprecated use isLoadingStateInIdleState instead.
3436
- */
3437
- const loadingStateIsIdle = isLoadingStateInIdleState;
3438
- /**
3439
- * @deprecated use isLoadingStateInSuccessState instead.
3440
- */
3441
- const isSuccessLoadingState = isLoadingStateInSuccessState;
3442
- /**
3443
- * @deprecated use isLoadingStateInErrorState instead.
3444
- */
3445
- const isErrorLoadingState = isLoadingStateInErrorState;
3446
- /**
3447
- * @deprecated Use isLoadingStateLoading instead.
3448
- */
3449
- const loadingStateIsLoading = isLoadingStateLoading;
3450
- /**
3451
- * @deprecated use isLoadingStateFinishedLoading instead.
3452
- */
3453
- const loadingStateHasFinishedLoading = isLoadingStateFinishedLoading;
3454
- /**
3455
- * @deprecated use isLoadingStateWithError instead.
3456
- */
3457
- const loadingStateHasError = isLoadingStateWithError;
3458
- /**
3459
- * @deprecated use isLoadingStateWithDefinedValue instead.
3460
- */
3461
- const loadingStateHasValue = isLoadingStateWithDefinedValue;
3462
- /**
3463
- * @deprecated use isLoadingStateFinishedLoadingWithDefinedValue instead.
3464
- */
3465
- const loadingStateHasFinishedLoadingWithValue = isLoadingStateFinishedLoadingWithDefinedValue;
3466
- /**
3467
- * @deprecated use isLoadingStateFinishedLoadingWithError instead.
3468
- */
3469
- const loadingStateHasFinishedLoadingWithError = isLoadingStateFinishedLoadingWithError;
3470
- /**
3471
- * @deprecated use isPageLoadingStateMetadataEqual instead.
3472
- */
3473
- const loadingStatesHaveEquivalentMetadata = isPageLoadingStateMetadataEqual;
3474
- /**
3475
- * @deprecated use mergeLoadingStateWithLoading instead.
3476
- */
3477
- const updatedStateForSetLoading = mergeLoadingStateWithLoading;
3478
- /**
3479
- * @deprecated use updatedStateForSetValue instead.
3480
- */
3481
- const updatedStateForSetValue = mergeLoadingStateWithValue;
3482
- /**
3483
- * @deprecated use mergeLoadingStateWithError instead.
3484
- */
3485
- const updatedStateForSetError = mergeLoadingStateWithError;
3486
1782
 
3487
1783
  // TODO(BREAKING_CHANGE): Fix all LoadingState types to use the LoadingStateValue inference typings
3488
1784
  /**
@@ -3765,7 +2061,7 @@ function loadingStateContext(input) {
3765
2061
  obs: input
3766
2062
  } : input;
3767
2063
  const loadingEventForLoadingPair = _config?.loadingEventForLoadingPair ?? DEFAULT_LOADING_EVENT_FOR_LOADING_PAIR_FUNCTION;
3768
- const showLoadingOnUndefinedValue = _config?.showLoadingOnUndefinedValue ?? _config?.showLoadingOnNoValue ?? false;
2064
+ const showLoadingOnUndefinedValue = _config?.showLoadingOnUndefinedValue ?? false;
3769
2065
  const _stateStream = new rxjs.BehaviorSubject(_config?.obs);
3770
2066
  const currentStateStream$ = _stateStream.asObservable();
3771
2067
  const stateStream$ = currentStateStream$.pipe(filterMaybe());
@@ -3848,15 +2144,6 @@ function arrayValueFromFinishedLoadingState() {
3848
2144
  return obs.pipe(valueFromFinishedLoadingState(() => []));
3849
2145
  };
3850
2146
  }
3851
- // MARK: Compat
3852
- /**
3853
- * @deprecated use isListLoadingStateWithEmptyValue instead.
3854
- */
3855
- const listLoadingStateIsEmpty = isListLoadingStateWithEmptyValue;
3856
- /**
3857
- * @deprecated use mapIsListLoadingStateWithEmptyValue instead.
3858
- */
3859
- const isListLoadingStateEmpty = mapIsListLoadingStateWithEmptyValue;
3860
2147
 
3861
2148
  /**
3862
2149
  * Creates a ListLoadingStateContext.
@@ -4190,11 +2477,6 @@ function mappedPageItemIteration(itemIteration, config) {
4190
2477
  nextPage
4191
2478
  };
4192
2479
  }
4193
- // MARK: Compat
4194
- /**
4195
- * @deprecated use mappedPageItemIteration instead.
4196
- */
4197
- const mapPageItemIteration = mappedPageItemIteration;
4198
2480
 
4199
2481
  // MARK: Iterator
4200
2482
  /**
@@ -4867,7 +3149,6 @@ exports.ValuesLoadingContext = ValuesLoadingContext;
4867
3149
  exports.WorkInstance = WorkInstance;
4868
3150
  exports.accumulatorCurrentPageListLoadingState = accumulatorCurrentPageListLoadingState;
4869
3151
  exports.accumulatorFlattenPageListLoadingState = accumulatorFlattenPageListLoadingState;
4870
- exports.allLoadingStatesHaveFinishedLoading = allLoadingStatesHaveFinishedLoading;
4871
3152
  exports.areAllLoadingStatesFinishedLoading = areAllLoadingStatesFinishedLoading;
4872
3153
  exports.arrayValueFromFinishedLoadingState = arrayValueFromFinishedLoadingState;
4873
3154
  exports.asObservable = asObservable;
@@ -4918,9 +3199,7 @@ exports.incrementingNumberTimer = incrementingNumberTimer;
4918
3199
  exports.initialize = initialize;
4919
3200
  exports.invertObservableDecision = invertObservableDecision;
4920
3201
  exports.isAnyLoadingStateInLoadingState = isAnyLoadingStateInLoadingState;
4921
- exports.isErrorLoadingState = isErrorLoadingState;
4922
3202
  exports.isItemPageIteratorResultEndResult = isItemPageIteratorResultEndResult;
4923
- exports.isListLoadingStateEmpty = isListLoadingStateEmpty;
4924
3203
  exports.isListLoadingStateWithEmptyValue = isListLoadingStateWithEmptyValue;
4925
3204
  exports.isLoading = isLoading;
4926
3205
  exports.isLoadingStateEqual = isLoadingStateEqual;
@@ -4938,7 +3217,6 @@ exports.isLoadingStateWithError = isLoadingStateWithError;
4938
3217
  exports.isLoadingStateWithStateType = isLoadingStateWithStateType;
4939
3218
  exports.isNot = isNot;
4940
3219
  exports.isPageLoadingStateMetadataEqual = isPageLoadingStateMetadataEqual;
4941
- exports.isSuccessLoadingState = isSuccessLoadingState;
4942
3220
  exports.itemAccumulator = itemAccumulator;
4943
3221
  exports.itemAccumulatorNextPageUntilResultsCount = itemAccumulatorNextPageUntilResultsCount;
4944
3222
  exports.iterationHasNextAndCanLoadMore = iterationHasNextAndCanLoadMore;
@@ -4947,18 +3225,9 @@ exports.iteratorNextPageUntilPage = iteratorNextPageUntilPage;
4947
3225
  exports.keyValueMap = keyValueMap;
4948
3226
  exports.lazyFrom = lazyFrom;
4949
3227
  exports.listLoadingStateContext = listLoadingStateContext;
4950
- exports.listLoadingStateIsEmpty = listLoadingStateIsEmpty;
4951
3228
  exports.loadingStateContext = loadingStateContext;
4952
3229
  exports.loadingStateFromObs = loadingStateFromObs;
4953
- exports.loadingStateHasError = loadingStateHasError;
4954
- exports.loadingStateHasFinishedLoading = loadingStateHasFinishedLoading;
4955
- exports.loadingStateHasFinishedLoadingWithError = loadingStateHasFinishedLoadingWithError;
4956
- exports.loadingStateHasFinishedLoadingWithValue = loadingStateHasFinishedLoadingWithValue;
4957
- exports.loadingStateHasValue = loadingStateHasValue;
4958
- exports.loadingStateIsIdle = loadingStateIsIdle;
4959
- exports.loadingStateIsLoading = loadingStateIsLoading;
4960
3230
  exports.loadingStateType = loadingStateType;
4961
- exports.loadingStatesHaveEquivalentMetadata = loadingStatesHaveEquivalentMetadata;
4962
3231
  exports.makeCheckIsFunction = makeCheckIsFunction;
4963
3232
  exports.makeIsModifiedFunction = makeIsModifiedFunction;
4964
3233
  exports.makeIsModifiedFunctionObservable = makeIsModifiedFunctionObservable;
@@ -4977,7 +3246,6 @@ exports.mapLoadingStateValueFunction = mapLoadingStateValueFunction;
4977
3246
  exports.mapLoadingStateValueWithOperator = mapLoadingStateValueWithOperator;
4978
3247
  exports.mapMaybe = mapMaybe;
4979
3248
  exports.mapMultipleLoadingStateResults = mapMultipleLoadingStateResults;
4980
- exports.mapPageItemIteration = mapPageItemIteration;
4981
3249
  exports.mappedPageItemIteration = mappedPageItemIteration;
4982
3250
  exports.maybeValueFromObservableOrValue = maybeValueFromObservableOrValue;
4983
3251
  exports.maybeValueFromObservableOrValueGetter = maybeValueFromObservableOrValueGetter;
@@ -5004,10 +3272,13 @@ exports.scanIntoArray = scanIntoArray;
5004
3272
  exports.setContainsAllValuesFrom = setContainsAllValuesFrom;
5005
3273
  exports.setContainsAnyValueFrom = setContainsAnyValueFrom;
5006
3274
  exports.setContainsNoValueFrom = setContainsNoValueFrom;
3275
+ exports.skipAfterExpiration = skipAfterExpiration;
5007
3276
  exports.skipAllInitialMaybe = skipAllInitialMaybe;
5008
- exports.skipFirstMaybe = skipFirstMaybe;
3277
+ exports.skipExpired = skipExpired;
5009
3278
  exports.skipInitialMaybe = skipInitialMaybe;
5010
3279
  exports.skipMaybes = skipMaybes;
3280
+ exports.skipUntilExpiration = skipUntilExpiration;
3281
+ exports.skipUntilTimeElapsedAfterLastEmission = skipUntilTimeElapsedAfterLastEmission;
5011
3282
  exports.startWithBeginLoading = startWithBeginLoading;
5012
3283
  exports.successPageResult = successPageResult;
5013
3284
  exports.successResult = successResult;
@@ -5015,12 +3286,12 @@ exports.switchMapFilterMaybe = switchMapFilterMaybe;
5015
3286
  exports.switchMapMaybe = switchMapMaybe;
5016
3287
  exports.switchMapMaybeDefault = switchMapMaybeDefault;
5017
3288
  exports.switchMapMaybeLoadingContextStream = switchMapMaybeLoadingContextStream;
5018
- exports.switchMapMaybeObs = switchMapMaybeObs;
5019
3289
  exports.switchMapObject = switchMapObject;
5020
3290
  exports.switchMapOnBoolean = switchMapOnBoolean;
5021
3291
  exports.switchMapToDefault = switchMapToDefault;
5022
3292
  exports.switchMapWhileFalse = switchMapWhileFalse;
5023
3293
  exports.switchMapWhileTrue = switchMapWhileTrue;
3294
+ exports.takeAfterTimeElapsedSinceLastEmission = takeAfterTimeElapsedSinceLastEmission;
5024
3295
  exports.tapAfterTimeout = tapAfterTimeout;
5025
3296
  exports.tapFirst = tapFirst;
5026
3297
  exports.tapLog = tapLog;
@@ -5029,10 +3300,7 @@ exports.tapOnLoadingStateType = tapOnLoadingStateType;
5029
3300
  exports.throwErrorAfterTimeout = throwErrorAfterTimeout;
5030
3301
  exports.throwErrorFromLoadingStateError = throwErrorFromLoadingStateError;
5031
3302
  exports.timeoutStartWith = timeoutStartWith;
5032
- exports.unknownLoadingStatesIsLoading = unknownLoadingStatesIsLoading;
5033
- exports.updatedStateForSetError = updatedStateForSetError;
5034
- exports.updatedStateForSetLoading = updatedStateForSetLoading;
5035
- exports.updatedStateForSetValue = updatedStateForSetValue;
3303
+ exports.toExpiration = toExpiration;
5036
3304
  exports.useAsObservable = useAsObservable;
5037
3305
  exports.useFirst = useFirst;
5038
3306
  exports.valueFromFinishedLoadingState = valueFromFinishedLoadingState;