@dereekb/zoom 12.1.2 → 12.1.3

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.esm.js CHANGED
@@ -2,6 +2,60 @@ import { fetchPageFactory, FetchResponseError, mergeMakeUrlSearchParamsOptions,
2
2
  import { MS_IN_SECOND, asArray, resetPeriodPromiseRateLimiter, MS_IN_MINUTE } from '@dereekb/util';
3
3
  import { BaseError } from 'make-error';
4
4
 
5
+ /**
6
+ * The Zoom API returns the data for a page for a specific key.
7
+ *
8
+ * This function maps the data under that key to a ZoomPageResult with the data on the "data" variable.
9
+
10
+ * @param dataTypeKey
11
+ * @returns
12
+ */
13
+ function mapToZoomPageResult(dataTypeKey) {
14
+ return data => {
15
+ const {
16
+ next_page_token,
17
+ page_count,
18
+ page_number,
19
+ page_size,
20
+ total_records
21
+ } = data;
22
+ return {
23
+ data: data[dataTypeKey],
24
+ next_page_token,
25
+ page_count,
26
+ page_number,
27
+ page_size,
28
+ total_records
29
+ };
30
+ };
31
+ }
32
+ /**
33
+ * Creates a FetchPageFactory using the input ZoomFetchPageFetchFunction.
34
+ *
35
+ * @param fetch
36
+ * @param defaults
37
+ * @returns
38
+ */
39
+ function zoomFetchPageFactory(fetch, defaults) {
40
+ return fetchPageFactory({
41
+ ...defaults,
42
+ fetch,
43
+ readFetchPageResultInfo: function (result) {
44
+ return {
45
+ nextPageCursor: result.next_page_token,
46
+ hasNext: Boolean(result.next_page_token) // has more when a non-empty next_page_token is returned
47
+ };
48
+ },
49
+ buildInputForNextPage: function (pageResult, input, options) {
50
+ return {
51
+ ...input,
52
+ next_page_token: pageResult.nextPageCursor,
53
+ page_size: options.maxItemsPerPage ?? input.page_size
54
+ };
55
+ }
56
+ });
57
+ }
58
+
5
59
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
60
 
7
61
  var check = function (it) {
@@ -9,7 +63,7 @@ var check = function (it) {
9
63
  };
10
64
 
11
65
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
- var global$j =
66
+ var global$a =
13
67
  // eslint-disable-next-line es/no-global-this -- safe
14
68
  check(typeof globalThis == 'object' && globalThis) ||
15
69
  check(typeof window == 'object' && window) ||
@@ -22,7 +76,7 @@ var global$j =
22
76
 
23
77
  var objectGetOwnPropertyDescriptor = {};
24
78
 
25
- var fails$h = function (exec) {
79
+ var fails$9 = function (exec) {
26
80
  try {
27
81
  return !!exec();
28
82
  } catch (error) {
@@ -30,48 +84,48 @@ var fails$h = function (exec) {
30
84
  }
31
85
  };
32
86
 
33
- var fails$g = fails$h;
87
+ var fails$8 = fails$9;
34
88
 
35
89
  // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$g(function () {
90
+ var descriptors = !fails$8(function () {
37
91
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
92
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
39
93
  });
40
94
 
41
- var fails$f = fails$h;
95
+ var fails$7 = fails$9;
42
96
 
43
- var functionBindNative = !fails$f(function () {
97
+ var functionBindNative = !fails$7(function () {
44
98
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
99
  var test = (function () { /* empty */ }).bind();
46
100
  // eslint-disable-next-line no-prototype-builtins -- safe
47
101
  return typeof test != 'function' || test.hasOwnProperty('prototype');
48
102
  });
49
103
 
50
- var NATIVE_BIND$3 = functionBindNative;
104
+ var NATIVE_BIND$1 = functionBindNative;
51
105
 
52
- var call$h = Function.prototype.call;
106
+ var call$7 = Function.prototype.call;
53
107
 
54
- var functionCall = NATIVE_BIND$3 ? call$h.bind(call$h) : function () {
55
- return call$h.apply(call$h, arguments);
108
+ var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
109
+ return call$7.apply(call$7, arguments);
56
110
  };
57
111
 
58
112
  var objectPropertyIsEnumerable = {};
59
113
 
60
114
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
61
115
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
62
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
116
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
63
117
 
64
118
  // Nashorn ~ JDK8 bug
65
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
119
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
66
120
 
67
121
  // `Object.prototype.propertyIsEnumerable` method implementation
68
122
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
69
123
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
70
- var descriptor = getOwnPropertyDescriptor$2(this, V);
124
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
71
125
  return !!descriptor && descriptor.enumerable;
72
126
  } : $propertyIsEnumerable;
73
127
 
74
- var createPropertyDescriptor$4 = function (bitmap, value) {
128
+ var createPropertyDescriptor$2 = function (bitmap, value) {
75
129
  return {
76
130
  enumerable: !(bitmap & 1),
77
131
  configurable: !(bitmap & 2),
@@ -80,66 +134,66 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
80
134
  };
81
135
  };
82
136
 
83
- var NATIVE_BIND$2 = functionBindNative;
137
+ var NATIVE_BIND = functionBindNative;
84
138
 
85
- var FunctionPrototype$2 = Function.prototype;
86
- var call$g = FunctionPrototype$2.call;
87
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$g, call$g);
139
+ var FunctionPrototype$1 = Function.prototype;
140
+ var call$6 = FunctionPrototype$1.call;
141
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$6, call$6);
88
142
 
89
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
143
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
90
144
  return function () {
91
- return call$g.apply(fn, arguments);
145
+ return call$6.apply(fn, arguments);
92
146
  };
93
147
  };
94
148
 
95
- var uncurryThis$j = functionUncurryThis;
149
+ var uncurryThis$b = functionUncurryThis;
96
150
 
97
- var toString$4 = uncurryThis$j({}.toString);
98
- var stringSlice$1 = uncurryThis$j(''.slice);
151
+ var toString$1 = uncurryThis$b({}.toString);
152
+ var stringSlice$1 = uncurryThis$b(''.slice);
99
153
 
100
- var classofRaw$2 = function (it) {
101
- return stringSlice$1(toString$4(it), 8, -1);
154
+ var classofRaw = function (it) {
155
+ return stringSlice$1(toString$1(it), 8, -1);
102
156
  };
103
157
 
104
- var uncurryThis$i = functionUncurryThis;
105
- var fails$e = fails$h;
106
- var classof$7 = classofRaw$2;
158
+ var uncurryThis$a = functionUncurryThis;
159
+ var fails$6 = fails$9;
160
+ var classof = classofRaw;
107
161
 
108
- var $Object$4 = Object;
109
- var split = uncurryThis$i(''.split);
162
+ var $Object$2 = Object;
163
+ var split = uncurryThis$a(''.split);
110
164
 
111
165
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$e(function () {
166
+ var indexedObject = fails$6(function () {
113
167
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
168
  // eslint-disable-next-line no-prototype-builtins -- safe
115
- return !$Object$4('z').propertyIsEnumerable(0);
169
+ return !$Object$2('z').propertyIsEnumerable(0);
116
170
  }) ? function (it) {
117
- return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
118
- } : $Object$4;
171
+ return classof(it) === 'String' ? split(it, '') : $Object$2(it);
172
+ } : $Object$2;
119
173
 
120
174
  // we can't use just `it == null` since of `document.all` special case
121
175
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
122
- var isNullOrUndefined$4 = function (it) {
176
+ var isNullOrUndefined$2 = function (it) {
123
177
  return it === null || it === undefined;
124
178
  };
125
179
 
126
- var isNullOrUndefined$3 = isNullOrUndefined$4;
180
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
127
181
 
128
- var $TypeError$d = TypeError;
182
+ var $TypeError$6 = TypeError;
129
183
 
130
184
  // `RequireObjectCoercible` abstract operation
131
185
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
132
- var requireObjectCoercible$3 = function (it) {
133
- if (isNullOrUndefined$3(it)) throw new $TypeError$d("Can't call method on " + it);
186
+ var requireObjectCoercible$2 = function (it) {
187
+ if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
134
188
  return it;
135
189
  };
136
190
 
137
191
  // toObject with fallback for non-array-like ES3 strings
138
- var IndexedObject$1 = indexedObject;
139
- var requireObjectCoercible$2 = requireObjectCoercible$3;
192
+ var IndexedObject = indexedObject;
193
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
140
194
 
141
- var toIndexedObject$5 = function (it) {
142
- return IndexedObject$1(requireObjectCoercible$2(it));
195
+ var toIndexedObject$3 = function (it) {
196
+ return IndexedObject(requireObjectCoercible$1(it));
143
197
  };
144
198
 
145
199
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
@@ -148,41 +202,41 @@ var documentAll = typeof document == 'object' && document.all;
148
202
  // `IsCallable` abstract operation
149
203
  // https://tc39.es/ecma262/#sec-iscallable
150
204
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
151
- var isCallable$m = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
205
+ var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
206
  return typeof argument == 'function' || argument === documentAll;
153
207
  } : function (argument) {
154
208
  return typeof argument == 'function';
155
209
  };
156
210
 
157
- var isCallable$l = isCallable$m;
211
+ var isCallable$9 = isCallable$a;
158
212
 
159
- var isObject$c = function (it) {
160
- return typeof it == 'object' ? it !== null : isCallable$l(it);
213
+ var isObject$5 = function (it) {
214
+ return typeof it == 'object' ? it !== null : isCallable$9(it);
161
215
  };
162
216
 
163
- var global$i = global$j;
164
- var isCallable$k = isCallable$m;
217
+ var global$9 = global$a;
218
+ var isCallable$8 = isCallable$a;
165
219
 
166
220
  var aFunction = function (argument) {
167
- return isCallable$k(argument) ? argument : undefined;
221
+ return isCallable$8(argument) ? argument : undefined;
168
222
  };
169
223
 
170
- var getBuiltIn$a = function (namespace, method) {
171
- return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
224
+ var getBuiltIn$3 = function (namespace, method) {
225
+ return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
172
226
  };
173
227
 
174
- var uncurryThis$h = functionUncurryThis;
228
+ var uncurryThis$9 = functionUncurryThis;
175
229
 
176
- var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
230
+ var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
177
231
 
178
232
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
179
233
 
180
- var global$h = global$j;
181
- var userAgent$3 = engineUserAgent;
234
+ var global$8 = global$a;
235
+ var userAgent = engineUserAgent;
182
236
 
183
- var process$3 = global$h.process;
184
- var Deno$1 = global$h.Deno;
185
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
237
+ var process = global$8.process;
238
+ var Deno = global$8.Deno;
239
+ var versions = process && process.versions || Deno && Deno.version;
186
240
  var v8 = versions && versions.v8;
187
241
  var match, version;
188
242
 
@@ -195,10 +249,10 @@ if (v8) {
195
249
 
196
250
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
197
251
  // so check `userAgent` even if `.v8` exists, but 0
198
- if (!version && userAgent$3) {
199
- match = userAgent$3.match(/Edge\/(\d+)/);
252
+ if (!version && userAgent) {
253
+ match = userAgent.match(/Edge\/(\d+)/);
200
254
  if (!match || match[1] >= 74) {
201
- match = userAgent$3.match(/Chrome\/(\d+)/);
255
+ match = userAgent.match(/Chrome\/(\d+)/);
202
256
  if (match) version = +match[1];
203
257
  }
204
258
  }
@@ -206,108 +260,108 @@ if (!version && userAgent$3) {
206
260
  var engineV8Version = version;
207
261
 
208
262
  /* eslint-disable es/no-symbol -- required for testing */
209
- var V8_VERSION$1 = engineV8Version;
210
- var fails$d = fails$h;
211
- var global$g = global$j;
263
+ var V8_VERSION = engineV8Version;
264
+ var fails$5 = fails$9;
265
+ var global$7 = global$a;
212
266
 
213
- var $String$6 = global$g.String;
267
+ var $String$3 = global$7.String;
214
268
 
215
269
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
216
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
270
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
217
271
  var symbol = Symbol('symbol detection');
218
272
  // Chrome 38 Symbol has incorrect toString conversion
219
273
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
220
274
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
221
275
  // of course, fail.
222
- return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
276
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
223
277
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
224
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
278
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
225
279
  });
226
280
 
227
281
  /* eslint-disable es/no-symbol -- required for testing */
228
- var NATIVE_SYMBOL$2 = symbolConstructorDetection;
282
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
229
283
 
230
- var useSymbolAsUid = NATIVE_SYMBOL$2
284
+ var useSymbolAsUid = NATIVE_SYMBOL$1
231
285
  && !Symbol.sham
232
286
  && typeof Symbol.iterator == 'symbol';
233
287
 
234
- var getBuiltIn$9 = getBuiltIn$a;
235
- var isCallable$j = isCallable$m;
236
- var isPrototypeOf$4 = objectIsPrototypeOf;
288
+ var getBuiltIn$2 = getBuiltIn$3;
289
+ var isCallable$7 = isCallable$a;
290
+ var isPrototypeOf = objectIsPrototypeOf;
237
291
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
238
292
 
239
- var $Object$3 = Object;
293
+ var $Object$1 = Object;
240
294
 
241
- var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
295
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
242
296
  return typeof it == 'symbol';
243
297
  } : function (it) {
244
- var $Symbol = getBuiltIn$9('Symbol');
245
- return isCallable$j($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$3(it));
298
+ var $Symbol = getBuiltIn$2('Symbol');
299
+ return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
246
300
  };
247
301
 
248
- var $String$5 = String;
302
+ var $String$2 = String;
249
303
 
250
- var tryToString$4 = function (argument) {
304
+ var tryToString$1 = function (argument) {
251
305
  try {
252
- return $String$5(argument);
306
+ return $String$2(argument);
253
307
  } catch (error) {
254
308
  return 'Object';
255
309
  }
256
310
  };
257
311
 
258
- var isCallable$i = isCallable$m;
259
- var tryToString$3 = tryToString$4;
312
+ var isCallable$6 = isCallable$a;
313
+ var tryToString = tryToString$1;
260
314
 
261
- var $TypeError$c = TypeError;
315
+ var $TypeError$5 = TypeError;
262
316
 
263
317
  // `Assert: IsCallable(argument) is true`
264
- var aCallable$9 = function (argument) {
265
- if (isCallable$i(argument)) return argument;
266
- throw new $TypeError$c(tryToString$3(argument) + ' is not a function');
318
+ var aCallable$3 = function (argument) {
319
+ if (isCallable$6(argument)) return argument;
320
+ throw new $TypeError$5(tryToString(argument) + ' is not a function');
267
321
  };
268
322
 
269
- var aCallable$8 = aCallable$9;
270
- var isNullOrUndefined$2 = isNullOrUndefined$4;
323
+ var aCallable$2 = aCallable$3;
324
+ var isNullOrUndefined = isNullOrUndefined$2;
271
325
 
272
326
  // `GetMethod` abstract operation
273
327
  // https://tc39.es/ecma262/#sec-getmethod
274
- var getMethod$3 = function (V, P) {
328
+ var getMethod$2 = function (V, P) {
275
329
  var func = V[P];
276
- return isNullOrUndefined$2(func) ? undefined : aCallable$8(func);
330
+ return isNullOrUndefined(func) ? undefined : aCallable$2(func);
277
331
  };
278
332
 
279
- var call$f = functionCall;
280
- var isCallable$h = isCallable$m;
281
- var isObject$b = isObject$c;
333
+ var call$5 = functionCall;
334
+ var isCallable$5 = isCallable$a;
335
+ var isObject$4 = isObject$5;
282
336
 
283
- var $TypeError$b = TypeError;
337
+ var $TypeError$4 = TypeError;
284
338
 
285
339
  // `OrdinaryToPrimitive` abstract operation
286
340
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
287
341
  var ordinaryToPrimitive$1 = function (input, pref) {
288
342
  var fn, val;
289
- if (pref === 'string' && isCallable$h(fn = input.toString) && !isObject$b(val = call$f(fn, input))) return val;
290
- if (isCallable$h(fn = input.valueOf) && !isObject$b(val = call$f(fn, input))) return val;
291
- if (pref !== 'string' && isCallable$h(fn = input.toString) && !isObject$b(val = call$f(fn, input))) return val;
292
- throw new $TypeError$b("Can't convert object to primitive value");
343
+ if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
344
+ if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$5(fn, input))) return val;
345
+ if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$5(fn, input))) return val;
346
+ throw new $TypeError$4("Can't convert object to primitive value");
293
347
  };
294
348
 
295
349
  var sharedStore = {exports: {}};
296
350
 
297
- var global$f = global$j;
351
+ var global$6 = global$a;
298
352
 
299
353
  // eslint-disable-next-line es/no-object-defineproperty -- safe
300
- var defineProperty$7 = Object.defineProperty;
354
+ var defineProperty$1 = Object.defineProperty;
301
355
 
302
356
  var defineGlobalProperty$3 = function (key, value) {
303
357
  try {
304
- defineProperty$7(global$f, key, { value: value, configurable: true, writable: true });
358
+ defineProperty$1(global$6, key, { value: value, configurable: true, writable: true });
305
359
  } catch (error) {
306
- global$f[key] = value;
360
+ global$6[key] = value;
307
361
  } return value;
308
362
  };
309
363
 
310
- var globalThis$1 = global$j;
364
+ var globalThis$1 = global$a;
311
365
  var defineGlobalProperty$2 = defineGlobalProperty$3;
312
366
 
313
367
  var SHARED = '__core-js_shared__';
@@ -329,123 +383,123 @@ var shared$3 = function (key, value) {
329
383
  return store$2[key] || (store$2[key] = value || {});
330
384
  };
331
385
 
332
- var requireObjectCoercible$1 = requireObjectCoercible$3;
386
+ var requireObjectCoercible = requireObjectCoercible$2;
333
387
 
334
- var $Object$2 = Object;
388
+ var $Object = Object;
335
389
 
336
390
  // `ToObject` abstract operation
337
391
  // https://tc39.es/ecma262/#sec-toobject
338
- var toObject$3 = function (argument) {
339
- return $Object$2(requireObjectCoercible$1(argument));
392
+ var toObject$1 = function (argument) {
393
+ return $Object(requireObjectCoercible(argument));
340
394
  };
341
395
 
342
- var uncurryThis$g = functionUncurryThis;
343
- var toObject$2 = toObject$3;
396
+ var uncurryThis$8 = functionUncurryThis;
397
+ var toObject = toObject$1;
344
398
 
345
- var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
399
+ var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
346
400
 
347
401
  // `HasOwnProperty` abstract operation
348
402
  // https://tc39.es/ecma262/#sec-hasownproperty
349
403
  // eslint-disable-next-line es/no-object-hasown -- safe
350
404
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
351
- return hasOwnProperty(toObject$2(it), key);
405
+ return hasOwnProperty(toObject(it), key);
352
406
  };
353
407
 
354
- var uncurryThis$f = functionUncurryThis;
408
+ var uncurryThis$7 = functionUncurryThis;
355
409
 
356
410
  var id = 0;
357
411
  var postfix = Math.random();
358
- var toString$3 = uncurryThis$f(1.0.toString);
412
+ var toString = uncurryThis$7(1.0.toString);
359
413
 
360
414
  var uid$2 = function (key) {
361
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
415
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
362
416
  };
363
417
 
364
- var global$e = global$j;
418
+ var global$5 = global$a;
365
419
  var shared$2 = shared$3;
366
- var hasOwn$b = hasOwnProperty_1;
420
+ var hasOwn$6 = hasOwnProperty_1;
367
421
  var uid$1 = uid$2;
368
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
422
+ var NATIVE_SYMBOL = symbolConstructorDetection;
369
423
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
370
424
 
371
- var Symbol$1 = global$e.Symbol;
425
+ var Symbol$1 = global$5.Symbol;
372
426
  var WellKnownSymbolsStore = shared$2('wks');
373
427
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
374
428
 
375
- var wellKnownSymbol$e = function (name) {
376
- if (!hasOwn$b(WellKnownSymbolsStore, name)) {
377
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$b(Symbol$1, name)
429
+ var wellKnownSymbol$1 = function (name) {
430
+ if (!hasOwn$6(WellKnownSymbolsStore, name)) {
431
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
378
432
  ? Symbol$1[name]
379
433
  : createWellKnownSymbol('Symbol.' + name);
380
434
  } return WellKnownSymbolsStore[name];
381
435
  };
382
436
 
383
- var call$e = functionCall;
384
- var isObject$a = isObject$c;
385
- var isSymbol$2 = isSymbol$3;
386
- var getMethod$2 = getMethod$3;
437
+ var call$4 = functionCall;
438
+ var isObject$3 = isObject$5;
439
+ var isSymbol$1 = isSymbol$2;
440
+ var getMethod$1 = getMethod$2;
387
441
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
388
- var wellKnownSymbol$d = wellKnownSymbol$e;
442
+ var wellKnownSymbol = wellKnownSymbol$1;
389
443
 
390
- var $TypeError$a = TypeError;
391
- var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
444
+ var $TypeError$3 = TypeError;
445
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
392
446
 
393
447
  // `ToPrimitive` abstract operation
394
448
  // https://tc39.es/ecma262/#sec-toprimitive
395
449
  var toPrimitive$1 = function (input, pref) {
396
- if (!isObject$a(input) || isSymbol$2(input)) return input;
397
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
450
+ if (!isObject$3(input) || isSymbol$1(input)) return input;
451
+ var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
398
452
  var result;
399
453
  if (exoticToPrim) {
400
454
  if (pref === undefined) pref = 'default';
401
- result = call$e(exoticToPrim, input, pref);
402
- if (!isObject$a(result) || isSymbol$2(result)) return result;
403
- throw new $TypeError$a("Can't convert object to primitive value");
455
+ result = call$4(exoticToPrim, input, pref);
456
+ if (!isObject$3(result) || isSymbol$1(result)) return result;
457
+ throw new $TypeError$3("Can't convert object to primitive value");
404
458
  }
405
459
  if (pref === undefined) pref = 'number';
406
460
  return ordinaryToPrimitive(input, pref);
407
461
  };
408
462
 
409
463
  var toPrimitive = toPrimitive$1;
410
- var isSymbol$1 = isSymbol$3;
464
+ var isSymbol = isSymbol$2;
411
465
 
412
466
  // `ToPropertyKey` abstract operation
413
467
  // https://tc39.es/ecma262/#sec-topropertykey
414
468
  var toPropertyKey$2 = function (argument) {
415
469
  var key = toPrimitive(argument, 'string');
416
- return isSymbol$1(key) ? key : key + '';
470
+ return isSymbol(key) ? key : key + '';
417
471
  };
418
472
 
419
- var global$d = global$j;
420
- var isObject$9 = isObject$c;
473
+ var global$4 = global$a;
474
+ var isObject$2 = isObject$5;
421
475
 
422
- var document$3 = global$d.document;
476
+ var document$1 = global$4.document;
423
477
  // typeof document.createElement is 'object' in old IE
424
- var EXISTS$1 = isObject$9(document$3) && isObject$9(document$3.createElement);
478
+ var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
425
479
 
426
- var documentCreateElement$2 = function (it) {
427
- return EXISTS$1 ? document$3.createElement(it) : {};
480
+ var documentCreateElement = function (it) {
481
+ return EXISTS$1 ? document$1.createElement(it) : {};
428
482
  };
429
483
 
430
- var DESCRIPTORS$c = descriptors;
431
- var fails$c = fails$h;
432
- var createElement$1 = documentCreateElement$2;
484
+ var DESCRIPTORS$6 = descriptors;
485
+ var fails$4 = fails$9;
486
+ var createElement = documentCreateElement;
433
487
 
434
488
  // Thanks to IE8 for its funny defineProperty
435
- var ie8DomDefine = !DESCRIPTORS$c && !fails$c(function () {
489
+ var ie8DomDefine = !DESCRIPTORS$6 && !fails$4(function () {
436
490
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
437
- return Object.defineProperty(createElement$1('div'), 'a', {
491
+ return Object.defineProperty(createElement('div'), 'a', {
438
492
  get: function () { return 7; }
439
493
  }).a !== 7;
440
494
  });
441
495
 
442
- var DESCRIPTORS$b = descriptors;
443
- var call$d = functionCall;
444
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
445
- var createPropertyDescriptor$3 = createPropertyDescriptor$4;
446
- var toIndexedObject$4 = toIndexedObject$5;
496
+ var DESCRIPTORS$5 = descriptors;
497
+ var call$3 = functionCall;
498
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
499
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
500
+ var toIndexedObject$2 = toIndexedObject$3;
447
501
  var toPropertyKey$1 = toPropertyKey$2;
448
- var hasOwn$a = hasOwnProperty_1;
502
+ var hasOwn$5 = hasOwnProperty_1;
449
503
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
450
504
 
451
505
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -453,23 +507,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
453
507
 
454
508
  // `Object.getOwnPropertyDescriptor` method
455
509
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
456
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
457
- O = toIndexedObject$4(O);
510
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
511
+ O = toIndexedObject$2(O);
458
512
  P = toPropertyKey$1(P);
459
513
  if (IE8_DOM_DEFINE$1) try {
460
514
  return $getOwnPropertyDescriptor$1(O, P);
461
515
  } catch (error) { /* empty */ }
462
- if (hasOwn$a(O, P)) return createPropertyDescriptor$3(!call$d(propertyIsEnumerableModule$1.f, O, P), O[P]);
516
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$3(propertyIsEnumerableModule.f, O, P), O[P]);
463
517
  };
464
518
 
465
519
  var objectDefineProperty = {};
466
520
 
467
- var DESCRIPTORS$a = descriptors;
468
- var fails$b = fails$h;
521
+ var DESCRIPTORS$4 = descriptors;
522
+ var fails$3 = fails$9;
469
523
 
470
524
  // V8 ~ Chrome 36-
471
525
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
472
- var v8PrototypeDefineBug = DESCRIPTORS$a && fails$b(function () {
526
+ var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$3(function () {
473
527
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
474
528
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
475
529
  value: 42,
@@ -477,24 +531,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$b(function () {
477
531
  }).prototype !== 42;
478
532
  });
479
533
 
480
- var isObject$8 = isObject$c;
534
+ var isObject$1 = isObject$5;
481
535
 
482
- var $String$4 = String;
483
- var $TypeError$9 = TypeError;
536
+ var $String$1 = String;
537
+ var $TypeError$2 = TypeError;
484
538
 
485
539
  // `Assert: Type(argument) is Object`
486
- var anObject$c = function (argument) {
487
- if (isObject$8(argument)) return argument;
488
- throw new $TypeError$9($String$4(argument) + ' is not an object');
540
+ var anObject$4 = function (argument) {
541
+ if (isObject$1(argument)) return argument;
542
+ throw new $TypeError$2($String$1(argument) + ' is not an object');
489
543
  };
490
544
 
491
- var DESCRIPTORS$9 = descriptors;
545
+ var DESCRIPTORS$3 = descriptors;
492
546
  var IE8_DOM_DEFINE = ie8DomDefine;
493
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
494
- var anObject$b = anObject$c;
547
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
548
+ var anObject$3 = anObject$4;
495
549
  var toPropertyKey = toPropertyKey$2;
496
550
 
497
- var $TypeError$8 = TypeError;
551
+ var $TypeError$1 = TypeError;
498
552
  // eslint-disable-next-line es/no-object-defineproperty -- safe
499
553
  var $defineProperty = Object.defineProperty;
500
554
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -505,10 +559,10 @@ var WRITABLE = 'writable';
505
559
 
506
560
  // `Object.defineProperty` method
507
561
  // https://tc39.es/ecma262/#sec-object.defineproperty
508
- objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
509
- anObject$b(O);
562
+ objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
563
+ anObject$3(O);
510
564
  P = toPropertyKey(P);
511
- anObject$b(Attributes);
565
+ anObject$3(Attributes);
512
566
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
513
567
  var current = $getOwnPropertyDescriptor(O, P);
514
568
  if (current && current[WRITABLE]) {
@@ -521,41 +575,41 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
521
575
  }
522
576
  } return $defineProperty(O, P, Attributes);
523
577
  } : $defineProperty : function defineProperty(O, P, Attributes) {
524
- anObject$b(O);
578
+ anObject$3(O);
525
579
  P = toPropertyKey(P);
526
- anObject$b(Attributes);
580
+ anObject$3(Attributes);
527
581
  if (IE8_DOM_DEFINE) try {
528
582
  return $defineProperty(O, P, Attributes);
529
583
  } catch (error) { /* empty */ }
530
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
584
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
531
585
  if ('value' in Attributes) O[P] = Attributes.value;
532
586
  return O;
533
587
  };
534
588
 
535
- var DESCRIPTORS$8 = descriptors;
536
- var definePropertyModule$3 = objectDefineProperty;
537
- var createPropertyDescriptor$2 = createPropertyDescriptor$4;
589
+ var DESCRIPTORS$2 = descriptors;
590
+ var definePropertyModule$2 = objectDefineProperty;
591
+ var createPropertyDescriptor = createPropertyDescriptor$2;
538
592
 
539
- var createNonEnumerableProperty$7 = DESCRIPTORS$8 ? function (object, key, value) {
540
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$2(1, value));
593
+ var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) {
594
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
541
595
  } : function (object, key, value) {
542
596
  object[key] = value;
543
597
  return object;
544
598
  };
545
599
 
546
- var makeBuiltIn$3 = {exports: {}};
600
+ var makeBuiltIn$2 = {exports: {}};
547
601
 
548
- var DESCRIPTORS$7 = descriptors;
549
- var hasOwn$9 = hasOwnProperty_1;
602
+ var DESCRIPTORS$1 = descriptors;
603
+ var hasOwn$4 = hasOwnProperty_1;
550
604
 
551
- var FunctionPrototype$1 = Function.prototype;
605
+ var FunctionPrototype = Function.prototype;
552
606
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
553
- var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
607
+ var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
554
608
 
555
- var EXISTS = hasOwn$9(FunctionPrototype$1, 'name');
609
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
556
610
  // additional protection from minified / mangled / dropped function names
557
611
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
558
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable));
612
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
559
613
 
560
614
  var functionName = {
561
615
  EXISTS: EXISTS,
@@ -563,62 +617,62 @@ var functionName = {
563
617
  CONFIGURABLE: CONFIGURABLE
564
618
  };
565
619
 
566
- var uncurryThis$e = functionUncurryThis;
567
- var isCallable$g = isCallable$m;
620
+ var uncurryThis$6 = functionUncurryThis;
621
+ var isCallable$4 = isCallable$a;
568
622
  var store$1 = sharedStoreExports;
569
623
 
570
- var functionToString = uncurryThis$e(Function.toString);
624
+ var functionToString = uncurryThis$6(Function.toString);
571
625
 
572
626
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
573
- if (!isCallable$g(store$1.inspectSource)) {
627
+ if (!isCallable$4(store$1.inspectSource)) {
574
628
  store$1.inspectSource = function (it) {
575
629
  return functionToString(it);
576
630
  };
577
631
  }
578
632
 
579
- var inspectSource$3 = store$1.inspectSource;
633
+ var inspectSource$1 = store$1.inspectSource;
580
634
 
581
- var global$c = global$j;
582
- var isCallable$f = isCallable$m;
635
+ var global$3 = global$a;
636
+ var isCallable$3 = isCallable$a;
583
637
 
584
- var WeakMap$1 = global$c.WeakMap;
638
+ var WeakMap$1 = global$3.WeakMap;
585
639
 
586
- var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
640
+ var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
587
641
 
588
642
  var shared$1 = shared$3;
589
643
  var uid = uid$2;
590
644
 
591
645
  var keys$1 = shared$1('keys');
592
646
 
593
- var sharedKey$3 = function (key) {
647
+ var sharedKey$1 = function (key) {
594
648
  return keys$1[key] || (keys$1[key] = uid(key));
595
649
  };
596
650
 
597
- var hiddenKeys$4 = {};
651
+ var hiddenKeys$3 = {};
598
652
 
599
653
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
600
- var global$b = global$j;
601
- var isObject$7 = isObject$c;
602
- var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
603
- var hasOwn$8 = hasOwnProperty_1;
654
+ var global$2 = global$a;
655
+ var isObject = isObject$5;
656
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
657
+ var hasOwn$3 = hasOwnProperty_1;
604
658
  var shared = sharedStoreExports;
605
- var sharedKey$2 = sharedKey$3;
606
- var hiddenKeys$3 = hiddenKeys$4;
659
+ var sharedKey = sharedKey$1;
660
+ var hiddenKeys$2 = hiddenKeys$3;
607
661
 
608
662
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
609
- var TypeError$2 = global$b.TypeError;
610
- var WeakMap = global$b.WeakMap;
611
- var set$1, get, has$6;
663
+ var TypeError$1 = global$2.TypeError;
664
+ var WeakMap = global$2.WeakMap;
665
+ var set, get, has$6;
612
666
 
613
667
  var enforce = function (it) {
614
- return has$6(it) ? get(it) : set$1(it, {});
668
+ return has$6(it) ? get(it) : set(it, {});
615
669
  };
616
670
 
617
671
  var getterFor = function (TYPE) {
618
672
  return function (it) {
619
673
  var state;
620
- if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
621
- throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
674
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
675
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
622
676
  } return state;
623
677
  };
624
678
  };
@@ -630,8 +684,8 @@ if (NATIVE_WEAK_MAP || shared.state) {
630
684
  store.has = store.has;
631
685
  store.set = store.set;
632
686
  /* eslint-enable no-self-assign -- prototype methods protection */
633
- set$1 = function (it, metadata) {
634
- if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
687
+ set = function (it, metadata) {
688
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
635
689
  metadata.facade = it;
636
690
  store.set(it, metadata);
637
691
  return metadata;
@@ -643,97 +697,97 @@ if (NATIVE_WEAK_MAP || shared.state) {
643
697
  return store.has(it);
644
698
  };
645
699
  } else {
646
- var STATE = sharedKey$2('state');
647
- hiddenKeys$3[STATE] = true;
648
- set$1 = function (it, metadata) {
649
- if (hasOwn$8(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
700
+ var STATE = sharedKey('state');
701
+ hiddenKeys$2[STATE] = true;
702
+ set = function (it, metadata) {
703
+ if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
650
704
  metadata.facade = it;
651
- createNonEnumerableProperty$6(it, STATE, metadata);
705
+ createNonEnumerableProperty$1(it, STATE, metadata);
652
706
  return metadata;
653
707
  };
654
708
  get = function (it) {
655
- return hasOwn$8(it, STATE) ? it[STATE] : {};
709
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
656
710
  };
657
711
  has$6 = function (it) {
658
- return hasOwn$8(it, STATE);
712
+ return hasOwn$3(it, STATE);
659
713
  };
660
714
  }
661
715
 
662
716
  var internalState = {
663
- set: set$1,
717
+ set: set,
664
718
  get: get,
665
719
  has: has$6,
666
720
  enforce: enforce,
667
721
  getterFor: getterFor
668
722
  };
669
723
 
670
- var uncurryThis$d = functionUncurryThis;
671
- var fails$a = fails$h;
672
- var isCallable$e = isCallable$m;
673
- var hasOwn$7 = hasOwnProperty_1;
674
- var DESCRIPTORS$6 = descriptors;
675
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
676
- var inspectSource$2 = inspectSource$3;
677
- var InternalStateModule$2 = internalState;
724
+ var uncurryThis$5 = functionUncurryThis;
725
+ var fails$2 = fails$9;
726
+ var isCallable$2 = isCallable$a;
727
+ var hasOwn$2 = hasOwnProperty_1;
728
+ var DESCRIPTORS = descriptors;
729
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
730
+ var inspectSource = inspectSource$1;
731
+ var InternalStateModule = internalState;
678
732
 
679
- var enforceInternalState = InternalStateModule$2.enforce;
680
- var getInternalState$1 = InternalStateModule$2.get;
681
- var $String$3 = String;
733
+ var enforceInternalState = InternalStateModule.enforce;
734
+ var getInternalState = InternalStateModule.get;
735
+ var $String = String;
682
736
  // eslint-disable-next-line es/no-object-defineproperty -- safe
683
- var defineProperty$6 = Object.defineProperty;
684
- var stringSlice = uncurryThis$d(''.slice);
685
- var replace$2 = uncurryThis$d(''.replace);
686
- var join = uncurryThis$d([].join);
737
+ var defineProperty = Object.defineProperty;
738
+ var stringSlice = uncurryThis$5(''.slice);
739
+ var replace = uncurryThis$5(''.replace);
740
+ var join = uncurryThis$5([].join);
687
741
 
688
- var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$a(function () {
689
- return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
742
+ var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$2(function () {
743
+ return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
690
744
  });
691
745
 
692
746
  var TEMPLATE = String(String).split('String');
693
747
 
694
- var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
695
- if (stringSlice($String$3(name), 0, 7) === 'Symbol(') {
696
- name = '[' + replace$2($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
748
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
749
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
750
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
697
751
  }
698
752
  if (options && options.getter) name = 'get ' + name;
699
753
  if (options && options.setter) name = 'set ' + name;
700
- if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
701
- if (DESCRIPTORS$6) defineProperty$6(value, 'name', { value: name, configurable: true });
754
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
755
+ if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
702
756
  else value.name = name;
703
757
  }
704
- if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) {
705
- defineProperty$6(value, 'length', { value: options.arity });
758
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
759
+ defineProperty(value, 'length', { value: options.arity });
706
760
  }
707
761
  try {
708
- if (options && hasOwn$7(options, 'constructor') && options.constructor) {
709
- if (DESCRIPTORS$6) defineProperty$6(value, 'prototype', { writable: false });
762
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
763
+ if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
710
764
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
711
765
  } else if (value.prototype) value.prototype = undefined;
712
766
  } catch (error) { /* empty */ }
713
767
  var state = enforceInternalState(value);
714
- if (!hasOwn$7(state, 'source')) {
768
+ if (!hasOwn$2(state, 'source')) {
715
769
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
716
770
  } return value;
717
771
  };
718
772
 
719
773
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
720
774
  // eslint-disable-next-line no-extend-native -- required
721
- Function.prototype.toString = makeBuiltIn$2(function toString() {
722
- return isCallable$e(this) && getInternalState$1(this).source || inspectSource$2(this);
775
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
776
+ return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
723
777
  }, 'toString');
724
778
 
725
- var makeBuiltInExports = makeBuiltIn$3.exports;
779
+ var makeBuiltInExports = makeBuiltIn$2.exports;
726
780
 
727
- var isCallable$d = isCallable$m;
728
- var definePropertyModule$2 = objectDefineProperty;
729
- var makeBuiltIn$1 = makeBuiltInExports;
781
+ var isCallable$1 = isCallable$a;
782
+ var definePropertyModule$1 = objectDefineProperty;
783
+ var makeBuiltIn = makeBuiltInExports;
730
784
  var defineGlobalProperty$1 = defineGlobalProperty$3;
731
785
 
732
- var defineBuiltIn$6 = function (O, key, value, options) {
786
+ var defineBuiltIn$1 = function (O, key, value, options) {
733
787
  if (!options) options = {};
734
788
  var simple = options.enumerable;
735
789
  var name = options.name !== undefined ? options.name : key;
736
- if (isCallable$d(value)) makeBuiltIn$1(value, name, options);
790
+ if (isCallable$1(value)) makeBuiltIn(value, name, options);
737
791
  if (options.global) {
738
792
  if (simple) O[key] = value;
739
793
  else defineGlobalProperty$1(key, value);
@@ -743,7 +797,7 @@ var defineBuiltIn$6 = function (O, key, value, options) {
743
797
  else if (O[key]) simple = true;
744
798
  } catch (error) { /* empty */ }
745
799
  if (simple) O[key] = value;
746
- else definePropertyModule$2.f(O, key, {
800
+ else definePropertyModule$1.f(O, key, {
747
801
  value: value,
748
802
  enumerable: false,
749
803
  configurable: !options.nonConfigurable,
@@ -803,19 +857,19 @@ var toLength = toLength$1;
803
857
 
804
858
  // `LengthOfArrayLike` abstract operation
805
859
  // https://tc39.es/ecma262/#sec-lengthofarraylike
806
- var lengthOfArrayLike$2 = function (obj) {
860
+ var lengthOfArrayLike$1 = function (obj) {
807
861
  return toLength(obj.length);
808
862
  };
809
863
 
810
- var toIndexedObject$3 = toIndexedObject$5;
864
+ var toIndexedObject$1 = toIndexedObject$3;
811
865
  var toAbsoluteIndex = toAbsoluteIndex$1;
812
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
866
+ var lengthOfArrayLike = lengthOfArrayLike$1;
813
867
 
814
868
  // `Array.prototype.{ indexOf, includes }` methods implementation
815
869
  var createMethod = function (IS_INCLUDES) {
816
870
  return function ($this, el, fromIndex) {
817
- var O = toIndexedObject$3($this);
818
- var length = lengthOfArrayLike$1(O);
871
+ var O = toIndexedObject$1($this);
872
+ var length = lengthOfArrayLike(O);
819
873
  if (length === 0) return !IS_INCLUDES && -1;
820
874
  var index = toAbsoluteIndex(fromIndex, length);
821
875
  var value;
@@ -841,2027 +895,165 @@ var arrayIncludes = {
841
895
  indexOf: createMethod(false)
842
896
  };
843
897
 
844
- var uncurryThis$c = functionUncurryThis;
845
- var hasOwn$6 = hasOwnProperty_1;
846
- var toIndexedObject$2 = toIndexedObject$5;
898
+ var uncurryThis$4 = functionUncurryThis;
899
+ var hasOwn$1 = hasOwnProperty_1;
900
+ var toIndexedObject = toIndexedObject$3;
847
901
  var indexOf = arrayIncludes.indexOf;
848
- var hiddenKeys$2 = hiddenKeys$4;
902
+ var hiddenKeys$1 = hiddenKeys$3;
849
903
 
850
- var push$1 = uncurryThis$c([].push);
904
+ var push = uncurryThis$4([].push);
851
905
 
852
906
  var objectKeysInternal = function (object, names) {
853
- var O = toIndexedObject$2(object);
907
+ var O = toIndexedObject(object);
854
908
  var i = 0;
855
909
  var result = [];
856
910
  var key;
857
- for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$1(result, key);
911
+ for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
858
912
  // Don't enum bug & hidden keys
859
- while (names.length > i) if (hasOwn$6(O, key = names[i++])) {
860
- ~indexOf(result, key) || push$1(result, key);
913
+ while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
914
+ ~indexOf(result, key) || push(result, key);
861
915
  }
862
916
  return result;
863
917
  };
864
918
 
865
- // IE8- don't enum bug keys
866
- var enumBugKeys$3 = [
867
- 'constructor',
868
- 'hasOwnProperty',
869
- 'isPrototypeOf',
870
- 'propertyIsEnumerable',
871
- 'toLocaleString',
872
- 'toString',
873
- 'valueOf'
874
- ];
875
-
876
- var internalObjectKeys$1 = objectKeysInternal;
877
- var enumBugKeys$2 = enumBugKeys$3;
878
-
879
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
880
-
881
- // `Object.getOwnPropertyNames` method
882
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
883
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
884
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
885
- return internalObjectKeys$1(O, hiddenKeys$1);
886
- };
887
-
888
- var objectGetOwnPropertySymbols = {};
889
-
890
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
891
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
892
-
893
- var getBuiltIn$8 = getBuiltIn$a;
894
- var uncurryThis$b = functionUncurryThis;
895
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
896
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
897
- var anObject$a = anObject$c;
898
-
899
- var concat$1 = uncurryThis$b([].concat);
900
-
901
- // all object keys, includes non-enumerable and symbols
902
- var ownKeys$1 = getBuiltIn$8('Reflect', 'ownKeys') || function ownKeys(it) {
903
- var keys = getOwnPropertyNamesModule.f(anObject$a(it));
904
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
905
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
906
- };
907
-
908
- var hasOwn$5 = hasOwnProperty_1;
909
- var ownKeys = ownKeys$1;
910
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
911
- var definePropertyModule$1 = objectDefineProperty;
912
-
913
- var copyConstructorProperties$2 = function (target, source, exceptions) {
914
- var keys = ownKeys(source);
915
- var defineProperty = definePropertyModule$1.f;
916
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
917
- for (var i = 0; i < keys.length; i++) {
918
- var key = keys[i];
919
- if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
920
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
921
- }
922
- }
923
- };
924
-
925
- var fails$9 = fails$h;
926
- var isCallable$c = isCallable$m;
927
-
928
- var replacement = /#|\.prototype\./;
929
-
930
- var isForced$2 = function (feature, detection) {
931
- var value = data[normalize(feature)];
932
- return value === POLYFILL ? true
933
- : value === NATIVE ? false
934
- : isCallable$c(detection) ? fails$9(detection)
935
- : !!detection;
936
- };
937
-
938
- var normalize = isForced$2.normalize = function (string) {
939
- return String(string).replace(replacement, '.').toLowerCase();
940
- };
941
-
942
- var data = isForced$2.data = {};
943
- var NATIVE = isForced$2.NATIVE = 'N';
944
- var POLYFILL = isForced$2.POLYFILL = 'P';
945
-
946
- var isForced_1 = isForced$2;
947
-
948
- var global$a = global$j;
949
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
950
- var createNonEnumerableProperty$5 = createNonEnumerableProperty$7;
951
- var defineBuiltIn$5 = defineBuiltIn$6;
952
- var defineGlobalProperty = defineGlobalProperty$3;
953
- var copyConstructorProperties$1 = copyConstructorProperties$2;
954
- var isForced$1 = isForced_1;
955
-
956
- /*
957
- options.target - name of the target object
958
- options.global - target is the global object
959
- options.stat - export as static methods of target
960
- options.proto - export as prototype methods of target
961
- options.real - real prototype method for the `pure` version
962
- options.forced - export even if the native feature is available
963
- options.bind - bind methods to the target, required for the `pure` version
964
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
965
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
966
- options.sham - add a flag to not completely full polyfills
967
- options.enumerable - export as enumerable property
968
- options.dontCallGetSet - prevent calling a getter on target
969
- options.name - the .name of the function if it does not match the key
970
- */
971
- var _export = function (options, source) {
972
- var TARGET = options.target;
973
- var GLOBAL = options.global;
974
- var STATIC = options.stat;
975
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
976
- if (GLOBAL) {
977
- target = global$a;
978
- } else if (STATIC) {
979
- target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
980
- } else {
981
- target = global$a[TARGET] && global$a[TARGET].prototype;
982
- }
983
- if (target) for (key in source) {
984
- sourceProperty = source[key];
985
- if (options.dontCallGetSet) {
986
- descriptor = getOwnPropertyDescriptor$1(target, key);
987
- targetProperty = descriptor && descriptor.value;
988
- } else targetProperty = target[key];
989
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
990
- // contained in target
991
- if (!FORCED && targetProperty !== undefined) {
992
- if (typeof sourceProperty == typeof targetProperty) continue;
993
- copyConstructorProperties$1(sourceProperty, targetProperty);
994
- }
995
- // add a flag to not completely full polyfills
996
- if (options.sham || (targetProperty && targetProperty.sham)) {
997
- createNonEnumerableProperty$5(sourceProperty, 'sham', true);
998
- }
999
- defineBuiltIn$5(target, key, sourceProperty, options);
1000
- }
1001
- };
1002
-
1003
- var NATIVE_BIND$1 = functionBindNative;
1004
-
1005
- var FunctionPrototype = Function.prototype;
1006
- var apply$3 = FunctionPrototype.apply;
1007
- var call$c = FunctionPrototype.call;
1008
-
1009
- // eslint-disable-next-line es/no-reflect -- safe
1010
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$c.bind(apply$3) : function () {
1011
- return call$c.apply(apply$3, arguments);
1012
- });
1013
-
1014
- var uncurryThis$a = functionUncurryThis;
1015
-
1016
- var arraySlice$2 = uncurryThis$a([].slice);
1017
-
1018
- var classof$6 = classofRaw$2;
1019
-
1020
- // `IsArray` abstract operation
1021
- // https://tc39.es/ecma262/#sec-isarray
1022
- // eslint-disable-next-line es/no-array-isarray -- safe
1023
- var isArray$1 = Array.isArray || function isArray(argument) {
1024
- return classof$6(argument) === 'Array';
1025
- };
1026
-
1027
- var wellKnownSymbol$c = wellKnownSymbol$e;
1028
-
1029
- var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1030
- var test = {};
1031
-
1032
- test[TO_STRING_TAG$2] = 'z';
1033
-
1034
- var toStringTagSupport = String(test) === '[object z]';
1035
-
1036
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1037
- var isCallable$b = isCallable$m;
1038
- var classofRaw$1 = classofRaw$2;
1039
- var wellKnownSymbol$b = wellKnownSymbol$e;
1040
-
1041
- var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag');
1042
- var $Object$1 = Object;
1043
-
1044
- // ES3 wrong here
1045
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1046
-
1047
- // fallback for IE11 Script Access Denied error
1048
- var tryGet = function (it, key) {
1049
- try {
1050
- return it[key];
1051
- } catch (error) { /* empty */ }
1052
- };
1053
-
1054
- // getting tag from ES6+ `Object.prototype.toString`
1055
- var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1056
- var O, tag, result;
1057
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1058
- // @@toStringTag case
1059
- : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
1060
- // builtinTag case
1061
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1062
- // ES3 arguments fallback
1063
- : (result = classofRaw$1(O)) === 'Object' && isCallable$b(O.callee) ? 'Arguments' : result;
1064
- };
1065
-
1066
- var classof$4 = classof$5;
1067
-
1068
- var $String$2 = String;
1069
-
1070
- var toString$2 = function (argument) {
1071
- if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1072
- return $String$2(argument);
1073
- };
1074
-
1075
- var uncurryThis$9 = functionUncurryThis;
1076
- var isArray = isArray$1;
1077
- var isCallable$a = isCallable$m;
1078
- var classof$3 = classofRaw$2;
1079
- var toString$1 = toString$2;
1080
-
1081
- var push = uncurryThis$9([].push);
1082
-
1083
- var getJsonReplacerFunction = function (replacer) {
1084
- if (isCallable$a(replacer)) return replacer;
1085
- if (!isArray(replacer)) return;
1086
- var rawLength = replacer.length;
1087
- var keys = [];
1088
- for (var i = 0; i < rawLength; i++) {
1089
- var element = replacer[i];
1090
- if (typeof element == 'string') push(keys, element);
1091
- else if (typeof element == 'number' || classof$3(element) === 'Number' || classof$3(element) === 'String') push(keys, toString$1(element));
1092
- }
1093
- var keysLength = keys.length;
1094
- var root = true;
1095
- return function (key, value) {
1096
- if (root) {
1097
- root = false;
1098
- return value;
1099
- }
1100
- if (isArray(this)) return value;
1101
- for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
1102
- };
1103
- };
1104
-
1105
- var $$g = _export;
1106
- var getBuiltIn$7 = getBuiltIn$a;
1107
- var apply$2 = functionApply;
1108
- var call$b = functionCall;
1109
- var uncurryThis$8 = functionUncurryThis;
1110
- var fails$8 = fails$h;
1111
- var isCallable$9 = isCallable$m;
1112
- var isSymbol = isSymbol$3;
1113
- var arraySlice$1 = arraySlice$2;
1114
- var getReplacerFunction = getJsonReplacerFunction;
1115
- var NATIVE_SYMBOL = symbolConstructorDetection;
1116
-
1117
- var $String$1 = String;
1118
- var $stringify = getBuiltIn$7('JSON', 'stringify');
1119
- var exec$1 = uncurryThis$8(/./.exec);
1120
- var charAt = uncurryThis$8(''.charAt);
1121
- var charCodeAt = uncurryThis$8(''.charCodeAt);
1122
- var replace$1 = uncurryThis$8(''.replace);
1123
- var numberToString = uncurryThis$8(1.0.toString);
1124
-
1125
- var tester = /[\uD800-\uDFFF]/g;
1126
- var low = /^[\uD800-\uDBFF]$/;
1127
- var hi = /^[\uDC00-\uDFFF]$/;
1128
-
1129
- var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$8(function () {
1130
- var symbol = getBuiltIn$7('Symbol')('stringify detection');
1131
- // MS Edge converts symbol values to JSON as {}
1132
- return $stringify([symbol]) !== '[null]'
1133
- // WebKit converts symbol values to JSON as null
1134
- || $stringify({ a: symbol }) !== '{}'
1135
- // V8 throws on boxed symbols
1136
- || $stringify(Object(symbol)) !== '{}';
1137
- });
1138
-
1139
- // https://github.com/tc39/proposal-well-formed-stringify
1140
- var ILL_FORMED_UNICODE = fails$8(function () {
1141
- return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
1142
- || $stringify('\uDEAD') !== '"\\udead"';
1143
- });
1144
-
1145
- var stringifyWithSymbolsFix = function (it, replacer) {
1146
- var args = arraySlice$1(arguments);
1147
- var $replacer = getReplacerFunction(replacer);
1148
- if (!isCallable$9($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
1149
- args[1] = function (key, value) {
1150
- // some old implementations (like WebKit) could pass numbers as keys
1151
- if (isCallable$9($replacer)) value = call$b($replacer, this, $String$1(key), value);
1152
- if (!isSymbol(value)) return value;
1153
- };
1154
- return apply$2($stringify, null, args);
1155
- };
1156
-
1157
- var fixIllFormed = function (match, offset, string) {
1158
- var prev = charAt(string, offset - 1);
1159
- var next = charAt(string, offset + 1);
1160
- if ((exec$1(low, match) && !exec$1(hi, next)) || (exec$1(hi, match) && !exec$1(low, prev))) {
1161
- return '\\u' + numberToString(charCodeAt(match, 0), 16);
1162
- } return match;
1163
- };
1164
-
1165
- if ($stringify) {
1166
- // `JSON.stringify` method
1167
- // https://tc39.es/ecma262/#sec-json.stringify
1168
- $$g({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
1169
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1170
- stringify: function stringify(it, replacer, space) {
1171
- var args = arraySlice$1(arguments);
1172
- var result = apply$2(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
1173
- return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$1(result, tester, fixIllFormed) : result;
1174
- }
1175
- });
1176
- }
1177
-
1178
- var internalObjectKeys = objectKeysInternal;
1179
- var enumBugKeys$1 = enumBugKeys$3;
1180
-
1181
- // `Object.keys` method
1182
- // https://tc39.es/ecma262/#sec-object.keys
1183
- // eslint-disable-next-line es/no-object-keys -- safe
1184
- var objectKeys$2 = Object.keys || function keys(O) {
1185
- return internalObjectKeys(O, enumBugKeys$1);
1186
- };
1187
-
1188
- var DESCRIPTORS$5 = descriptors;
1189
- var uncurryThis$7 = functionUncurryThis;
1190
- var call$a = functionCall;
1191
- var fails$7 = fails$h;
1192
- var objectKeys$1 = objectKeys$2;
1193
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1194
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1195
- var toObject$1 = toObject$3;
1196
- var IndexedObject = indexedObject;
1197
-
1198
- // eslint-disable-next-line es/no-object-assign -- safe
1199
- var $assign = Object.assign;
1200
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1201
- var defineProperty$5 = Object.defineProperty;
1202
- var concat = uncurryThis$7([].concat);
1203
-
1204
- // `Object.assign` method
1205
- // https://tc39.es/ecma262/#sec-object.assign
1206
- var objectAssign = !$assign || fails$7(function () {
1207
- // should have correct order of operations (Edge bug)
1208
- if (DESCRIPTORS$5 && $assign({ b: 1 }, $assign(defineProperty$5({}, 'a', {
1209
- enumerable: true,
1210
- get: function () {
1211
- defineProperty$5(this, 'b', {
1212
- value: 3,
1213
- enumerable: false
1214
- });
1215
- }
1216
- }), { b: 2 })).b !== 1) return true;
1217
- // should work with symbols and should have deterministic property order (V8 bug)
1218
- var A = {};
1219
- var B = {};
1220
- // eslint-disable-next-line es/no-symbol -- safe
1221
- var symbol = Symbol('assign detection');
1222
- var alphabet = 'abcdefghijklmnopqrst';
1223
- A[symbol] = 7;
1224
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1225
- return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1226
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1227
- var T = toObject$1(target);
1228
- var argumentsLength = arguments.length;
1229
- var index = 1;
1230
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1231
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1232
- while (argumentsLength > index) {
1233
- var S = IndexedObject(arguments[index++]);
1234
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1235
- var length = keys.length;
1236
- var j = 0;
1237
- var key;
1238
- while (length > j) {
1239
- key = keys[j++];
1240
- if (!DESCRIPTORS$5 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key];
1241
- }
1242
- } return T;
1243
- } : $assign;
1244
-
1245
- var $$f = _export;
1246
- var assign = objectAssign;
1247
-
1248
- // `Object.assign` method
1249
- // https://tc39.es/ecma262/#sec-object.assign
1250
- // eslint-disable-next-line es/no-object-assign -- required for testing
1251
- $$f({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1252
- assign: assign
1253
- });
1254
-
1255
- /**
1256
- * The Zoom API returns the data for a page for a specific key.
1257
- *
1258
- * This function maps the data under that key to a ZoomPageResult with the data on the "data" variable.
1259
-
1260
- * @param dataTypeKey
1261
- * @returns
1262
- */
1263
- function mapToZoomPageResult(dataTypeKey) {
1264
- return data => {
1265
- const {
1266
- next_page_token,
1267
- page_count,
1268
- page_number,
1269
- page_size,
1270
- total_records
1271
- } = data;
1272
- return {
1273
- data: data[dataTypeKey],
1274
- next_page_token,
1275
- page_count,
1276
- page_number,
1277
- page_size,
1278
- total_records
1279
- };
1280
- };
1281
- }
1282
- /**
1283
- * Creates a FetchPageFactory using the input ZoomFetchPageFetchFunction.
1284
- *
1285
- * @param fetch
1286
- * @param defaults
1287
- * @returns
1288
- */
1289
- function zoomFetchPageFactory(fetch, defaults) {
1290
- return fetchPageFactory(Object.assign({}, defaults, {
1291
- fetch,
1292
- readFetchPageResultInfo: function (result) {
1293
- return {
1294
- nextPageCursor: result.next_page_token,
1295
- hasNext: Boolean(result.next_page_token) // has more when a non-empty next_page_token is returned
1296
- };
1297
- },
1298
- buildInputForNextPage: function (pageResult, input, options) {
1299
- var _options$maxItemsPerP;
1300
- return Object.assign({}, input, {
1301
- next_page_token: pageResult.nextPageCursor,
1302
- page_size: (_options$maxItemsPerP = options.maxItemsPerPage) != null ? _options$maxItemsPerP : input.page_size
1303
- });
1304
- }
1305
- }));
1306
- }
1307
-
1308
- var objectDefineProperties = {};
1309
-
1310
- var DESCRIPTORS$4 = descriptors;
1311
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1312
- var definePropertyModule = objectDefineProperty;
1313
- var anObject$9 = anObject$c;
1314
- var toIndexedObject$1 = toIndexedObject$5;
1315
- var objectKeys = objectKeys$2;
1316
-
1317
- // `Object.defineProperties` method
1318
- // https://tc39.es/ecma262/#sec-object.defineproperties
1319
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1320
- objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1321
- anObject$9(O);
1322
- var props = toIndexedObject$1(Properties);
1323
- var keys = objectKeys(Properties);
1324
- var length = keys.length;
1325
- var index = 0;
1326
- var key;
1327
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1328
- return O;
1329
- };
1330
-
1331
- var getBuiltIn$6 = getBuiltIn$a;
1332
-
1333
- var html$2 = getBuiltIn$6('document', 'documentElement');
1334
-
1335
- /* global ActiveXObject -- old IE, WSH */
1336
- var anObject$8 = anObject$c;
1337
- var definePropertiesModule = objectDefineProperties;
1338
- var enumBugKeys = enumBugKeys$3;
1339
- var hiddenKeys = hiddenKeys$4;
1340
- var html$1 = html$2;
1341
- var documentCreateElement$1 = documentCreateElement$2;
1342
- var sharedKey$1 = sharedKey$3;
1343
-
1344
- var GT = '>';
1345
- var LT = '<';
1346
- var PROTOTYPE = 'prototype';
1347
- var SCRIPT = 'script';
1348
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1349
-
1350
- var EmptyConstructor = function () { /* empty */ };
1351
-
1352
- var scriptTag = function (content) {
1353
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1354
- };
1355
-
1356
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1357
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1358
- activeXDocument.write(scriptTag(''));
1359
- activeXDocument.close();
1360
- var temp = activeXDocument.parentWindow.Object;
1361
- activeXDocument = null; // avoid memory leak
1362
- return temp;
1363
- };
1364
-
1365
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1366
- var NullProtoObjectViaIFrame = function () {
1367
- // Thrash, waste and sodomy: IE GC bug
1368
- var iframe = documentCreateElement$1('iframe');
1369
- var JS = 'java' + SCRIPT + ':';
1370
- var iframeDocument;
1371
- iframe.style.display = 'none';
1372
- html$1.appendChild(iframe);
1373
- // https://github.com/zloirock/core-js/issues/475
1374
- iframe.src = String(JS);
1375
- iframeDocument = iframe.contentWindow.document;
1376
- iframeDocument.open();
1377
- iframeDocument.write(scriptTag('document.F=Object'));
1378
- iframeDocument.close();
1379
- return iframeDocument.F;
1380
- };
1381
-
1382
- // Check for document.domain and active x support
1383
- // No need to use active x approach when document.domain is not set
1384
- // see https://github.com/es-shims/es5-shim/issues/150
1385
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1386
- // avoid IE GC bug
1387
- var activeXDocument;
1388
- var NullProtoObject = function () {
1389
- try {
1390
- activeXDocument = new ActiveXObject('htmlfile');
1391
- } catch (error) { /* ignore */ }
1392
- NullProtoObject = typeof document != 'undefined'
1393
- ? document.domain && activeXDocument
1394
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1395
- : NullProtoObjectViaIFrame()
1396
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1397
- var length = enumBugKeys.length;
1398
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1399
- return NullProtoObject();
1400
- };
1401
-
1402
- hiddenKeys[IE_PROTO$1] = true;
1403
-
1404
- // `Object.create` method
1405
- // https://tc39.es/ecma262/#sec-object.create
1406
- // eslint-disable-next-line es/no-object-create -- safe
1407
- var objectCreate = Object.create || function create(O, Properties) {
1408
- var result;
1409
- if (O !== null) {
1410
- EmptyConstructor[PROTOTYPE] = anObject$8(O);
1411
- result = new EmptyConstructor();
1412
- EmptyConstructor[PROTOTYPE] = null;
1413
- // add "__proto__" for Object.getPrototypeOf polyfill
1414
- result[IE_PROTO$1] = O;
1415
- } else result = NullProtoObject();
1416
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1417
- };
1418
-
1419
- var wellKnownSymbol$a = wellKnownSymbol$e;
1420
- var create$1 = objectCreate;
1421
- var defineProperty$4 = objectDefineProperty.f;
1422
-
1423
- var UNSCOPABLES = wellKnownSymbol$a('unscopables');
1424
- var ArrayPrototype$1 = Array.prototype;
1425
-
1426
- // Array.prototype[@@unscopables]
1427
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1428
- if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1429
- defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
1430
- configurable: true,
1431
- value: create$1(null)
1432
- });
1433
- }
1434
-
1435
- // add a key to Array.prototype[@@unscopables]
1436
- var addToUnscopables$1 = function (key) {
1437
- ArrayPrototype$1[UNSCOPABLES][key] = true;
1438
- };
1439
-
1440
- var iterators = {};
1441
-
1442
- var fails$6 = fails$h;
1443
-
1444
- var correctPrototypeGetter = !fails$6(function () {
1445
- function F() { /* empty */ }
1446
- F.prototype.constructor = null;
1447
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1448
- return Object.getPrototypeOf(new F()) !== F.prototype;
1449
- });
1450
-
1451
- var hasOwn$4 = hasOwnProperty_1;
1452
- var isCallable$8 = isCallable$m;
1453
- var toObject = toObject$3;
1454
- var sharedKey = sharedKey$3;
1455
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1456
-
1457
- var IE_PROTO = sharedKey('IE_PROTO');
1458
- var $Object = Object;
1459
- var ObjectPrototype = $Object.prototype;
1460
-
1461
- // `Object.getPrototypeOf` method
1462
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1463
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1464
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1465
- var object = toObject(O);
1466
- if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
1467
- var constructor = object.constructor;
1468
- if (isCallable$8(constructor) && object instanceof constructor) {
1469
- return constructor.prototype;
1470
- } return object instanceof $Object ? ObjectPrototype : null;
1471
- };
1472
-
1473
- var fails$5 = fails$h;
1474
- var isCallable$7 = isCallable$m;
1475
- var isObject$6 = isObject$c;
1476
- var getPrototypeOf$1 = objectGetPrototypeOf;
1477
- var defineBuiltIn$4 = defineBuiltIn$6;
1478
- var wellKnownSymbol$9 = wellKnownSymbol$e;
1479
-
1480
- var ITERATOR$5 = wellKnownSymbol$9('iterator');
1481
- var BUGGY_SAFARI_ITERATORS$1 = false;
1482
-
1483
- // `%IteratorPrototype%` object
1484
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1485
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1486
-
1487
- /* eslint-disable es/no-array-prototype-keys -- safe */
1488
- if ([].keys) {
1489
- arrayIterator = [].keys();
1490
- // Safari 8 has buggy iterators w/o `next`
1491
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1492
- else {
1493
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1494
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1495
- }
1496
- }
1497
-
1498
- var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$5(function () {
1499
- var test = {};
1500
- // FF44- legacy iterators case
1501
- return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
1502
- });
1503
-
1504
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1505
-
1506
- // `%IteratorPrototype%[@@iterator]()` method
1507
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1508
- if (!isCallable$7(IteratorPrototype$2[ITERATOR$5])) {
1509
- defineBuiltIn$4(IteratorPrototype$2, ITERATOR$5, function () {
1510
- return this;
1511
- });
1512
- }
1513
-
1514
- var iteratorsCore = {
1515
- IteratorPrototype: IteratorPrototype$2,
1516
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1517
- };
1518
-
1519
- var defineProperty$3 = objectDefineProperty.f;
1520
- var hasOwn$3 = hasOwnProperty_1;
1521
- var wellKnownSymbol$8 = wellKnownSymbol$e;
1522
-
1523
- var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
1524
-
1525
- var setToStringTag$4 = function (target, TAG, STATIC) {
1526
- if (target && !STATIC) target = target.prototype;
1527
- if (target && !hasOwn$3(target, TO_STRING_TAG)) {
1528
- defineProperty$3(target, TO_STRING_TAG, { configurable: true, value: TAG });
1529
- }
1530
- };
1531
-
1532
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1533
- var create = objectCreate;
1534
- var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1535
- var setToStringTag$3 = setToStringTag$4;
1536
- var Iterators$4 = iterators;
1537
-
1538
- var returnThis$1 = function () { return this; };
1539
-
1540
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1541
- var TO_STRING_TAG = NAME + ' Iterator';
1542
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1543
- setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
1544
- Iterators$4[TO_STRING_TAG] = returnThis$1;
1545
- return IteratorConstructor;
1546
- };
1547
-
1548
- var uncurryThis$6 = functionUncurryThis;
1549
- var aCallable$7 = aCallable$9;
1550
-
1551
- var functionUncurryThisAccessor = function (object, key, method) {
1552
- try {
1553
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1554
- return uncurryThis$6(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
1555
- } catch (error) { /* empty */ }
1556
- };
1557
-
1558
- var isObject$5 = isObject$c;
1559
-
1560
- var isPossiblePrototype$1 = function (argument) {
1561
- return isObject$5(argument) || argument === null;
1562
- };
1563
-
1564
- var isPossiblePrototype = isPossiblePrototype$1;
1565
-
1566
- var $String = String;
1567
- var $TypeError$7 = TypeError;
1568
-
1569
- var aPossiblePrototype$1 = function (argument) {
1570
- if (isPossiblePrototype(argument)) return argument;
1571
- throw new $TypeError$7("Can't set " + $String(argument) + ' as a prototype');
1572
- };
1573
-
1574
- /* eslint-disable no-proto -- safe */
1575
- var uncurryThisAccessor$1 = functionUncurryThisAccessor;
1576
- var isObject$4 = isObject$c;
1577
- var requireObjectCoercible = requireObjectCoercible$3;
1578
- var aPossiblePrototype = aPossiblePrototype$1;
1579
-
1580
- // `Object.setPrototypeOf` method
1581
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1582
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1583
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1584
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1585
- var CORRECT_SETTER = false;
1586
- var test = {};
1587
- var setter;
1588
- try {
1589
- setter = uncurryThisAccessor$1(Object.prototype, '__proto__', 'set');
1590
- setter(test, []);
1591
- CORRECT_SETTER = test instanceof Array;
1592
- } catch (error) { /* empty */ }
1593
- return function setPrototypeOf(O, proto) {
1594
- requireObjectCoercible(O);
1595
- aPossiblePrototype(proto);
1596
- if (!isObject$4(O)) return O;
1597
- if (CORRECT_SETTER) setter(O, proto);
1598
- else O.__proto__ = proto;
1599
- return O;
1600
- };
1601
- }() : undefined);
1602
-
1603
- var $$e = _export;
1604
- var call$9 = functionCall;
1605
- var FunctionName = functionName;
1606
- var isCallable$6 = isCallable$m;
1607
- var createIteratorConstructor = iteratorCreateConstructor;
1608
- var getPrototypeOf = objectGetPrototypeOf;
1609
- var setPrototypeOf$3 = objectSetPrototypeOf;
1610
- var setToStringTag$2 = setToStringTag$4;
1611
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$7;
1612
- var defineBuiltIn$3 = defineBuiltIn$6;
1613
- var wellKnownSymbol$7 = wellKnownSymbol$e;
1614
- var Iterators$3 = iterators;
1615
- var IteratorsCore = iteratorsCore;
1616
-
1617
- var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1618
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1619
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1620
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1621
- var ITERATOR$4 = wellKnownSymbol$7('iterator');
1622
- var KEYS = 'keys';
1623
- var VALUES = 'values';
1624
- var ENTRIES = 'entries';
1625
-
1626
- var returnThis = function () { return this; };
1627
-
1628
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1629
- createIteratorConstructor(IteratorConstructor, NAME, next);
1630
-
1631
- var getIterationMethod = function (KIND) {
1632
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1633
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1634
-
1635
- switch (KIND) {
1636
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1637
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1638
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1639
- }
1640
-
1641
- return function () { return new IteratorConstructor(this); };
1642
- };
1643
-
1644
- var TO_STRING_TAG = NAME + ' Iterator';
1645
- var INCORRECT_VALUES_NAME = false;
1646
- var IterablePrototype = Iterable.prototype;
1647
- var nativeIterator = IterablePrototype[ITERATOR$4]
1648
- || IterablePrototype['@@iterator']
1649
- || DEFAULT && IterablePrototype[DEFAULT];
1650
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1651
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1652
- var CurrentIteratorPrototype, methods, KEY;
1653
-
1654
- // fix native
1655
- if (anyNativeIterator) {
1656
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1657
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1658
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1659
- if (setPrototypeOf$3) {
1660
- setPrototypeOf$3(CurrentIteratorPrototype, IteratorPrototype);
1661
- } else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$4])) {
1662
- defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1663
- }
1664
- }
1665
- // Set @@toStringTag to native iterators
1666
- setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
1667
- }
1668
- }
1669
-
1670
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1671
- if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1672
- if (CONFIGURABLE_FUNCTION_NAME) {
1673
- createNonEnumerableProperty$4(IterablePrototype, 'name', VALUES);
1674
- } else {
1675
- INCORRECT_VALUES_NAME = true;
1676
- defaultIterator = function values() { return call$9(nativeIterator, this); };
1677
- }
1678
- }
1679
-
1680
- // export additional methods
1681
- if (DEFAULT) {
1682
- methods = {
1683
- values: getIterationMethod(VALUES),
1684
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1685
- entries: getIterationMethod(ENTRIES)
1686
- };
1687
- if (FORCED) for (KEY in methods) {
1688
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1689
- defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1690
- }
1691
- } else $$e({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1692
- }
1693
-
1694
- // define iterator
1695
- if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1696
- defineBuiltIn$3(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1697
- }
1698
- Iterators$3[NAME] = defaultIterator;
1699
-
1700
- return methods;
1701
- };
1702
-
1703
- // `CreateIterResultObject` abstract operation
1704
- // https://tc39.es/ecma262/#sec-createiterresultobject
1705
- var createIterResultObject$1 = function (value, done) {
1706
- return { value: value, done: done };
1707
- };
1708
-
1709
- var toIndexedObject = toIndexedObject$5;
1710
- var addToUnscopables = addToUnscopables$1;
1711
- var Iterators$2 = iterators;
1712
- var InternalStateModule$1 = internalState;
1713
- var defineProperty$2 = objectDefineProperty.f;
1714
- var defineIterator = iteratorDefine;
1715
- var createIterResultObject = createIterResultObject$1;
1716
- var DESCRIPTORS$3 = descriptors;
1717
-
1718
- var ARRAY_ITERATOR = 'Array Iterator';
1719
- var setInternalState$1 = InternalStateModule$1.set;
1720
- var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1721
-
1722
- // `Array.prototype.entries` method
1723
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1724
- // `Array.prototype.keys` method
1725
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1726
- // `Array.prototype.values` method
1727
- // https://tc39.es/ecma262/#sec-array.prototype.values
1728
- // `Array.prototype[@@iterator]` method
1729
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1730
- // `CreateArrayIterator` internal method
1731
- // https://tc39.es/ecma262/#sec-createarrayiterator
1732
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1733
- setInternalState$1(this, {
1734
- type: ARRAY_ITERATOR,
1735
- target: toIndexedObject(iterated), // target
1736
- index: 0, // next index
1737
- kind: kind // kind
1738
- });
1739
- // `%ArrayIteratorPrototype%.next` method
1740
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1741
- }, function () {
1742
- var state = getInternalState(this);
1743
- var target = state.target;
1744
- var index = state.index++;
1745
- if (!target || index >= target.length) {
1746
- state.target = undefined;
1747
- return createIterResultObject(undefined, true);
1748
- }
1749
- switch (state.kind) {
1750
- case 'keys': return createIterResultObject(index, false);
1751
- case 'values': return createIterResultObject(target[index], false);
1752
- } return createIterResultObject([index, target[index]], false);
1753
- }, 'values');
1754
-
1755
- // argumentsList[@@iterator] is %ArrayProto_values%
1756
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1757
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1758
- var values = Iterators$2.Arguments = Iterators$2.Array;
1759
-
1760
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1761
- addToUnscopables('keys');
1762
- addToUnscopables('values');
1763
- addToUnscopables('entries');
1764
-
1765
- // V8 ~ Chrome 45- bug
1766
- if (DESCRIPTORS$3 && values.name !== 'values') try {
1767
- defineProperty$2(values, 'name', { value: 'values' });
1768
- } catch (error) { /* empty */ }
1769
-
1770
- var global$9 = global$j;
1771
- var classof$2 = classofRaw$2;
1772
-
1773
- var engineIsNode = classof$2(global$9.process) === 'process';
1774
-
1775
- var makeBuiltIn = makeBuiltInExports;
1776
- var defineProperty$1 = objectDefineProperty;
1777
-
1778
- var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1779
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1780
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1781
- return defineProperty$1.f(target, name, descriptor);
1782
- };
1783
-
1784
- var getBuiltIn$5 = getBuiltIn$a;
1785
- var defineBuiltInAccessor = defineBuiltInAccessor$1;
1786
- var wellKnownSymbol$6 = wellKnownSymbol$e;
1787
- var DESCRIPTORS$2 = descriptors;
1788
-
1789
- var SPECIES$2 = wellKnownSymbol$6('species');
1790
-
1791
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1792
- var Constructor = getBuiltIn$5(CONSTRUCTOR_NAME);
1793
-
1794
- if (DESCRIPTORS$2 && Constructor && !Constructor[SPECIES$2]) {
1795
- defineBuiltInAccessor(Constructor, SPECIES$2, {
1796
- configurable: true,
1797
- get: function () { return this; }
1798
- });
1799
- }
1800
- };
1801
-
1802
- var isPrototypeOf$3 = objectIsPrototypeOf;
1803
-
1804
- var $TypeError$6 = TypeError;
1805
-
1806
- var anInstance$1 = function (it, Prototype) {
1807
- if (isPrototypeOf$3(Prototype, it)) return it;
1808
- throw new $TypeError$6('Incorrect invocation');
1809
- };
1810
-
1811
- var uncurryThis$5 = functionUncurryThis;
1812
- var fails$4 = fails$h;
1813
- var isCallable$5 = isCallable$m;
1814
- var classof$1 = classof$5;
1815
- var getBuiltIn$4 = getBuiltIn$a;
1816
- var inspectSource$1 = inspectSource$3;
1817
-
1818
- var noop = function () { /* empty */ };
1819
- var construct = getBuiltIn$4('Reflect', 'construct');
1820
- var constructorRegExp = /^\s*(?:class|function)\b/;
1821
- var exec = uncurryThis$5(constructorRegExp.exec);
1822
- var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1823
-
1824
- var isConstructorModern = function isConstructor(argument) {
1825
- if (!isCallable$5(argument)) return false;
1826
- try {
1827
- construct(noop, [], argument);
1828
- return true;
1829
- } catch (error) {
1830
- return false;
1831
- }
1832
- };
1833
-
1834
- var isConstructorLegacy = function isConstructor(argument) {
1835
- if (!isCallable$5(argument)) return false;
1836
- switch (classof$1(argument)) {
1837
- case 'AsyncFunction':
1838
- case 'GeneratorFunction':
1839
- case 'AsyncGeneratorFunction': return false;
1840
- }
1841
- try {
1842
- // we can't check .prototype since constructors produced by .bind haven't it
1843
- // `Function#toString` throws on some built-it function in some legacy engines
1844
- // (for example, `DOMQuad` and similar in FF41-)
1845
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1846
- } catch (error) {
1847
- return true;
1848
- }
1849
- };
1850
-
1851
- isConstructorLegacy.sham = true;
1852
-
1853
- // `IsConstructor` abstract operation
1854
- // https://tc39.es/ecma262/#sec-isconstructor
1855
- var isConstructor$1 = !construct || fails$4(function () {
1856
- var called;
1857
- return isConstructorModern(isConstructorModern.call)
1858
- || !isConstructorModern(Object)
1859
- || !isConstructorModern(function () { called = true; })
1860
- || called;
1861
- }) ? isConstructorLegacy : isConstructorModern;
1862
-
1863
- var isConstructor = isConstructor$1;
1864
- var tryToString$2 = tryToString$4;
1865
-
1866
- var $TypeError$5 = TypeError;
1867
-
1868
- // `Assert: IsConstructor(argument) is true`
1869
- var aConstructor$1 = function (argument) {
1870
- if (isConstructor(argument)) return argument;
1871
- throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
1872
- };
1873
-
1874
- var anObject$7 = anObject$c;
1875
- var aConstructor = aConstructor$1;
1876
- var isNullOrUndefined$1 = isNullOrUndefined$4;
1877
- var wellKnownSymbol$5 = wellKnownSymbol$e;
1878
-
1879
- var SPECIES$1 = wellKnownSymbol$5('species');
1880
-
1881
- // `SpeciesConstructor` abstract operation
1882
- // https://tc39.es/ecma262/#sec-speciesconstructor
1883
- var speciesConstructor$1 = function (O, defaultConstructor) {
1884
- var C = anObject$7(O).constructor;
1885
- var S;
1886
- return C === undefined || isNullOrUndefined$1(S = anObject$7(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1887
- };
1888
-
1889
- var classofRaw = classofRaw$2;
1890
- var uncurryThis$4 = functionUncurryThis;
1891
-
1892
- var functionUncurryThisClause = function (fn) {
1893
- // Nashorn bug:
1894
- // https://github.com/zloirock/core-js/issues/1128
1895
- // https://github.com/zloirock/core-js/issues/1130
1896
- if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
1897
- };
1898
-
1899
- var uncurryThis$3 = functionUncurryThisClause;
1900
- var aCallable$6 = aCallable$9;
1901
- var NATIVE_BIND = functionBindNative;
1902
-
1903
- var bind$4 = uncurryThis$3(uncurryThis$3.bind);
1904
-
1905
- // optional / simple context binding
1906
- var functionBindContext = function (fn, that) {
1907
- aCallable$6(fn);
1908
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1909
- return fn.apply(that, arguments);
1910
- };
1911
- };
1912
-
1913
- var $TypeError$4 = TypeError;
1914
-
1915
- var validateArgumentsLength$1 = function (passed, required) {
1916
- if (passed < required) throw new $TypeError$4('Not enough arguments');
1917
- return passed;
1918
- };
1919
-
1920
- var userAgent$2 = engineUserAgent;
1921
-
1922
- // eslint-disable-next-line redos/no-vulnerable -- safe
1923
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1924
-
1925
- var global$8 = global$j;
1926
- var apply$1 = functionApply;
1927
- var bind$3 = functionBindContext;
1928
- var isCallable$4 = isCallable$m;
1929
- var hasOwn$2 = hasOwnProperty_1;
1930
- var fails$3 = fails$h;
1931
- var html = html$2;
1932
- var arraySlice = arraySlice$2;
1933
- var createElement = documentCreateElement$2;
1934
- var validateArgumentsLength = validateArgumentsLength$1;
1935
- var IS_IOS$1 = engineIsIos;
1936
- var IS_NODE$3 = engineIsNode;
1937
-
1938
- var set = global$8.setImmediate;
1939
- var clear = global$8.clearImmediate;
1940
- var process$2 = global$8.process;
1941
- var Dispatch = global$8.Dispatch;
1942
- var Function$1 = global$8.Function;
1943
- var MessageChannel = global$8.MessageChannel;
1944
- var String$1 = global$8.String;
1945
- var counter = 0;
1946
- var queue$2 = {};
1947
- var ONREADYSTATECHANGE = 'onreadystatechange';
1948
- var $location, defer, channel, port;
1949
-
1950
- fails$3(function () {
1951
- // Deno throws a ReferenceError on `location` access without `--location` flag
1952
- $location = global$8.location;
1953
- });
1954
-
1955
- var run = function (id) {
1956
- if (hasOwn$2(queue$2, id)) {
1957
- var fn = queue$2[id];
1958
- delete queue$2[id];
1959
- fn();
1960
- }
1961
- };
1962
-
1963
- var runner = function (id) {
1964
- return function () {
1965
- run(id);
1966
- };
1967
- };
1968
-
1969
- var eventListener = function (event) {
1970
- run(event.data);
1971
- };
1972
-
1973
- var globalPostMessageDefer = function (id) {
1974
- // old engines have not location.origin
1975
- global$8.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1976
- };
1977
-
1978
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1979
- if (!set || !clear) {
1980
- set = function setImmediate(handler) {
1981
- validateArgumentsLength(arguments.length, 1);
1982
- var fn = isCallable$4(handler) ? handler : Function$1(handler);
1983
- var args = arraySlice(arguments, 1);
1984
- queue$2[++counter] = function () {
1985
- apply$1(fn, undefined, args);
1986
- };
1987
- defer(counter);
1988
- return counter;
1989
- };
1990
- clear = function clearImmediate(id) {
1991
- delete queue$2[id];
1992
- };
1993
- // Node.js 0.8-
1994
- if (IS_NODE$3) {
1995
- defer = function (id) {
1996
- process$2.nextTick(runner(id));
1997
- };
1998
- // Sphere (JS game engine) Dispatch API
1999
- } else if (Dispatch && Dispatch.now) {
2000
- defer = function (id) {
2001
- Dispatch.now(runner(id));
2002
- };
2003
- // Browsers with MessageChannel, includes WebWorkers
2004
- // except iOS - https://github.com/zloirock/core-js/issues/624
2005
- } else if (MessageChannel && !IS_IOS$1) {
2006
- channel = new MessageChannel();
2007
- port = channel.port2;
2008
- channel.port1.onmessage = eventListener;
2009
- defer = bind$3(port.postMessage, port);
2010
- // Browsers with postMessage, skip WebWorkers
2011
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2012
- } else if (
2013
- global$8.addEventListener &&
2014
- isCallable$4(global$8.postMessage) &&
2015
- !global$8.importScripts &&
2016
- $location && $location.protocol !== 'file:' &&
2017
- !fails$3(globalPostMessageDefer)
2018
- ) {
2019
- defer = globalPostMessageDefer;
2020
- global$8.addEventListener('message', eventListener, false);
2021
- // IE8-
2022
- } else if (ONREADYSTATECHANGE in createElement('script')) {
2023
- defer = function (id) {
2024
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2025
- html.removeChild(this);
2026
- run(id);
2027
- };
2028
- };
2029
- // Rest old browsers
2030
- } else {
2031
- defer = function (id) {
2032
- setTimeout(runner(id), 0);
2033
- };
2034
- }
2035
- }
2036
-
2037
- var task$1 = {
2038
- set: set,
2039
- clear: clear
2040
- };
2041
-
2042
- var global$7 = global$j;
2043
- var DESCRIPTORS$1 = descriptors;
2044
-
2045
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2046
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2047
-
2048
- // Avoid NodeJS experimental warning
2049
- var safeGetBuiltIn$1 = function (name) {
2050
- if (!DESCRIPTORS$1) return global$7[name];
2051
- var descriptor = getOwnPropertyDescriptor(global$7, name);
2052
- return descriptor && descriptor.value;
2053
- };
2054
-
2055
- var Queue$2 = function () {
2056
- this.head = null;
2057
- this.tail = null;
2058
- };
2059
-
2060
- Queue$2.prototype = {
2061
- add: function (item) {
2062
- var entry = { item: item, next: null };
2063
- var tail = this.tail;
2064
- if (tail) tail.next = entry;
2065
- else this.head = entry;
2066
- this.tail = entry;
2067
- },
2068
- get: function () {
2069
- var entry = this.head;
2070
- if (entry) {
2071
- var next = this.head = entry.next;
2072
- if (next === null) this.tail = null;
2073
- return entry.item;
2074
- }
2075
- }
2076
- };
2077
-
2078
- var queue$1 = Queue$2;
2079
-
2080
- var userAgent$1 = engineUserAgent;
2081
-
2082
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2083
-
2084
- var userAgent = engineUserAgent;
2085
-
2086
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2087
-
2088
- var global$6 = global$j;
2089
- var safeGetBuiltIn = safeGetBuiltIn$1;
2090
- var bind$2 = functionBindContext;
2091
- var macrotask = task$1.set;
2092
- var Queue$1 = queue$1;
2093
- var IS_IOS = engineIsIos;
2094
- var IS_IOS_PEBBLE = engineIsIosPebble;
2095
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2096
- var IS_NODE$2 = engineIsNode;
2097
-
2098
- var MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;
2099
- var document$2 = global$6.document;
2100
- var process$1 = global$6.process;
2101
- var Promise$1 = global$6.Promise;
2102
- var microtask$1 = safeGetBuiltIn('queueMicrotask');
2103
- var notify$1, toggle, node, promise, then;
2104
-
2105
- // modern engines have queueMicrotask method
2106
- if (!microtask$1) {
2107
- var queue = new Queue$1();
2108
-
2109
- var flush = function () {
2110
- var parent, fn;
2111
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
2112
- while (fn = queue.get()) try {
2113
- fn();
2114
- } catch (error) {
2115
- if (queue.head) notify$1();
2116
- throw error;
2117
- }
2118
- if (parent) parent.enter();
2119
- };
2120
-
2121
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2122
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2123
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2124
- toggle = true;
2125
- node = document$2.createTextNode('');
2126
- new MutationObserver(flush).observe(node, { characterData: true });
2127
- notify$1 = function () {
2128
- node.data = toggle = !toggle;
2129
- };
2130
- // environments with maybe non-completely correct, but existent Promise
2131
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
2132
- // Promise.resolve without an argument throws an error in LG WebOS 2
2133
- promise = Promise$1.resolve(undefined);
2134
- // workaround of WebKit ~ iOS Safari 10.1 bug
2135
- promise.constructor = Promise$1;
2136
- then = bind$2(promise.then, promise);
2137
- notify$1 = function () {
2138
- then(flush);
2139
- };
2140
- // Node.js without promises
2141
- } else if (IS_NODE$2) {
2142
- notify$1 = function () {
2143
- process$1.nextTick(flush);
2144
- };
2145
- // for other environments - macrotask based on:
2146
- // - setImmediate
2147
- // - MessageChannel
2148
- // - window.postMessage
2149
- // - onreadystatechange
2150
- // - setTimeout
2151
- } else {
2152
- // `webpack` dev server bug on IE global methods - use bind(fn, global)
2153
- macrotask = bind$2(macrotask, global$6);
2154
- notify$1 = function () {
2155
- macrotask(flush);
2156
- };
2157
- }
2158
-
2159
- microtask$1 = function (fn) {
2160
- if (!queue.head) notify$1();
2161
- queue.add(fn);
2162
- };
2163
- }
2164
-
2165
- var microtask_1 = microtask$1;
2166
-
2167
- var hostReportErrors$1 = function (a, b) {
2168
- try {
2169
- // eslint-disable-next-line no-console -- safe
2170
- arguments.length === 1 ? console.error(a) : console.error(a, b);
2171
- } catch (error) { /* empty */ }
2172
- };
2173
-
2174
- var perform$3 = function (exec) {
2175
- try {
2176
- return { error: false, value: exec() };
2177
- } catch (error) {
2178
- return { error: true, value: error };
2179
- }
2180
- };
2181
-
2182
- var global$5 = global$j;
2183
-
2184
- var promiseNativeConstructor = global$5.Promise;
2185
-
2186
- /* global Deno -- Deno case */
2187
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2188
-
2189
- var IS_DENO$1 = engineIsDeno;
2190
- var IS_NODE$1 = engineIsNode;
2191
-
2192
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2193
- && typeof window == 'object'
2194
- && typeof document == 'object';
2195
-
2196
- var global$4 = global$j;
2197
- var NativePromiseConstructor$3 = promiseNativeConstructor;
2198
- var isCallable$3 = isCallable$m;
2199
- var isForced = isForced_1;
2200
- var inspectSource = inspectSource$3;
2201
- var wellKnownSymbol$4 = wellKnownSymbol$e;
2202
- var IS_BROWSER = engineIsBrowser;
2203
- var IS_DENO = engineIsDeno;
2204
- var V8_VERSION = engineV8Version;
2205
-
2206
- NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2207
- var SPECIES = wellKnownSymbol$4('species');
2208
- var SUBCLASSING = false;
2209
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$4.PromiseRejectionEvent);
2210
-
2211
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2212
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
2213
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
2214
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
2215
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
2216
- // We can't detect it synchronously, so just check versions
2217
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
2218
- // We can't use @@species feature detection in V8 since it causes
2219
- // deoptimization and performance degradation
2220
- // https://github.com/zloirock/core-js/issues/679
2221
- if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
2222
- // Detect correctness of subclassing with @@species support
2223
- var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
2224
- var FakePromise = function (exec) {
2225
- exec(function () { /* empty */ }, function () { /* empty */ });
2226
- };
2227
- var constructor = promise.constructor = {};
2228
- constructor[SPECIES] = FakePromise;
2229
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2230
- if (!SUBCLASSING) return true;
2231
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2232
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2233
- });
2234
-
2235
- var promiseConstructorDetection = {
2236
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
2237
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
2238
- SUBCLASSING: SUBCLASSING
2239
- };
2240
-
2241
- var newPromiseCapability$2 = {};
2242
-
2243
- var aCallable$5 = aCallable$9;
2244
-
2245
- var $TypeError$3 = TypeError;
2246
-
2247
- var PromiseCapability = function (C) {
2248
- var resolve, reject;
2249
- this.promise = new C(function ($$resolve, $$reject) {
2250
- if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
2251
- resolve = $$resolve;
2252
- reject = $$reject;
2253
- });
2254
- this.resolve = aCallable$5(resolve);
2255
- this.reject = aCallable$5(reject);
2256
- };
2257
-
2258
- // `NewPromiseCapability` abstract operation
2259
- // https://tc39.es/ecma262/#sec-newpromisecapability
2260
- newPromiseCapability$2.f = function (C) {
2261
- return new PromiseCapability(C);
2262
- };
2263
-
2264
- var $$d = _export;
2265
- var IS_NODE = engineIsNode;
2266
- var global$3 = global$j;
2267
- var call$8 = functionCall;
2268
- var defineBuiltIn$2 = defineBuiltIn$6;
2269
- var setPrototypeOf$2 = objectSetPrototypeOf;
2270
- var setToStringTag$1 = setToStringTag$4;
2271
- var setSpecies = setSpecies$1;
2272
- var aCallable$4 = aCallable$9;
2273
- var isCallable$2 = isCallable$m;
2274
- var isObject$3 = isObject$c;
2275
- var anInstance = anInstance$1;
2276
- var speciesConstructor = speciesConstructor$1;
2277
- var task = task$1.set;
2278
- var microtask = microtask_1;
2279
- var hostReportErrors = hostReportErrors$1;
2280
- var perform$2 = perform$3;
2281
- var Queue = queue$1;
2282
- var InternalStateModule = internalState;
2283
- var NativePromiseConstructor$2 = promiseNativeConstructor;
2284
- var PromiseConstructorDetection = promiseConstructorDetection;
2285
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
2286
-
2287
- var PROMISE = 'Promise';
2288
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
2289
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
2290
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
2291
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
2292
- var setInternalState = InternalStateModule.set;
2293
- var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2294
- var PromiseConstructor = NativePromiseConstructor$2;
2295
- var PromisePrototype = NativePromisePrototype$1;
2296
- var TypeError$1 = global$3.TypeError;
2297
- var document$1 = global$3.document;
2298
- var process = global$3.process;
2299
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2300
- var newGenericPromiseCapability = newPromiseCapability$1;
2301
-
2302
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$3.dispatchEvent);
2303
- var UNHANDLED_REJECTION = 'unhandledrejection';
2304
- var REJECTION_HANDLED = 'rejectionhandled';
2305
- var PENDING = 0;
2306
- var FULFILLED = 1;
2307
- var REJECTED = 2;
2308
- var HANDLED = 1;
2309
- var UNHANDLED = 2;
2310
-
2311
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
2312
-
2313
- // helpers
2314
- var isThenable = function (it) {
2315
- var then;
2316
- return isObject$3(it) && isCallable$2(then = it.then) ? then : false;
2317
- };
2318
-
2319
- var callReaction = function (reaction, state) {
2320
- var value = state.value;
2321
- var ok = state.state === FULFILLED;
2322
- var handler = ok ? reaction.ok : reaction.fail;
2323
- var resolve = reaction.resolve;
2324
- var reject = reaction.reject;
2325
- var domain = reaction.domain;
2326
- var result, then, exited;
2327
- try {
2328
- if (handler) {
2329
- if (!ok) {
2330
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2331
- state.rejection = HANDLED;
2332
- }
2333
- if (handler === true) result = value;
2334
- else {
2335
- if (domain) domain.enter();
2336
- result = handler(value); // can throw
2337
- if (domain) {
2338
- domain.exit();
2339
- exited = true;
2340
- }
2341
- }
2342
- if (result === reaction.promise) {
2343
- reject(new TypeError$1('Promise-chain cycle'));
2344
- } else if (then = isThenable(result)) {
2345
- call$8(then, result, resolve, reject);
2346
- } else resolve(result);
2347
- } else reject(value);
2348
- } catch (error) {
2349
- if (domain && !exited) domain.exit();
2350
- reject(error);
2351
- }
2352
- };
2353
-
2354
- var notify = function (state, isReject) {
2355
- if (state.notified) return;
2356
- state.notified = true;
2357
- microtask(function () {
2358
- var reactions = state.reactions;
2359
- var reaction;
2360
- while (reaction = reactions.get()) {
2361
- callReaction(reaction, state);
2362
- }
2363
- state.notified = false;
2364
- if (isReject && !state.rejection) onUnhandled(state);
2365
- });
2366
- };
2367
-
2368
- var dispatchEvent = function (name, promise, reason) {
2369
- var event, handler;
2370
- if (DISPATCH_EVENT) {
2371
- event = document$1.createEvent('Event');
2372
- event.promise = promise;
2373
- event.reason = reason;
2374
- event.initEvent(name, false, true);
2375
- global$3.dispatchEvent(event);
2376
- } else event = { promise: promise, reason: reason };
2377
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$3['on' + name])) handler(event);
2378
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2379
- };
2380
-
2381
- var onUnhandled = function (state) {
2382
- call$8(task, global$3, function () {
2383
- var promise = state.facade;
2384
- var value = state.value;
2385
- var IS_UNHANDLED = isUnhandled(state);
2386
- var result;
2387
- if (IS_UNHANDLED) {
2388
- result = perform$2(function () {
2389
- if (IS_NODE) {
2390
- process.emit('unhandledRejection', value, promise);
2391
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
2392
- });
2393
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
2394
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
2395
- if (result.error) throw result.value;
2396
- }
2397
- });
2398
- };
2399
-
2400
- var isUnhandled = function (state) {
2401
- return state.rejection !== HANDLED && !state.parent;
2402
- };
2403
-
2404
- var onHandleUnhandled = function (state) {
2405
- call$8(task, global$3, function () {
2406
- var promise = state.facade;
2407
- if (IS_NODE) {
2408
- process.emit('rejectionHandled', promise);
2409
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
2410
- });
2411
- };
2412
-
2413
- var bind$1 = function (fn, state, unwrap) {
2414
- return function (value) {
2415
- fn(state, value, unwrap);
2416
- };
2417
- };
2418
-
2419
- var internalReject = function (state, value, unwrap) {
2420
- if (state.done) return;
2421
- state.done = true;
2422
- if (unwrap) state = unwrap;
2423
- state.value = value;
2424
- state.state = REJECTED;
2425
- notify(state, true);
2426
- };
2427
-
2428
- var internalResolve = function (state, value, unwrap) {
2429
- if (state.done) return;
2430
- state.done = true;
2431
- if (unwrap) state = unwrap;
2432
- try {
2433
- if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
2434
- var then = isThenable(value);
2435
- if (then) {
2436
- microtask(function () {
2437
- var wrapper = { done: false };
2438
- try {
2439
- call$8(then, value,
2440
- bind$1(internalResolve, wrapper, state),
2441
- bind$1(internalReject, wrapper, state)
2442
- );
2443
- } catch (error) {
2444
- internalReject(wrapper, error, state);
2445
- }
2446
- });
2447
- } else {
2448
- state.value = value;
2449
- state.state = FULFILLED;
2450
- notify(state, false);
2451
- }
2452
- } catch (error) {
2453
- internalReject({ done: false }, error, state);
2454
- }
2455
- };
2456
-
2457
- // constructor polyfill
2458
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
2459
- // 25.4.3.1 Promise(executor)
2460
- PromiseConstructor = function Promise(executor) {
2461
- anInstance(this, PromisePrototype);
2462
- aCallable$4(executor);
2463
- call$8(Internal, this);
2464
- var state = getInternalPromiseState(this);
2465
- try {
2466
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
2467
- } catch (error) {
2468
- internalReject(state, error);
2469
- }
2470
- };
2471
-
2472
- PromisePrototype = PromiseConstructor.prototype;
2473
-
2474
- // eslint-disable-next-line no-unused-vars -- required for `.length`
2475
- Internal = function Promise(executor) {
2476
- setInternalState(this, {
2477
- type: PROMISE,
2478
- done: false,
2479
- notified: false,
2480
- parent: false,
2481
- reactions: new Queue(),
2482
- rejection: false,
2483
- state: PENDING,
2484
- value: undefined
2485
- });
2486
- };
2487
-
2488
- // `Promise.prototype.then` method
2489
- // https://tc39.es/ecma262/#sec-promise.prototype.then
2490
- Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
2491
- var state = getInternalPromiseState(this);
2492
- var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
2493
- state.parent = true;
2494
- reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
2495
- reaction.fail = isCallable$2(onRejected) && onRejected;
2496
- reaction.domain = IS_NODE ? process.domain : undefined;
2497
- if (state.state === PENDING) state.reactions.add(reaction);
2498
- else microtask(function () {
2499
- callReaction(reaction, state);
2500
- });
2501
- return reaction.promise;
2502
- });
2503
-
2504
- OwnPromiseCapability = function () {
2505
- var promise = new Internal();
2506
- var state = getInternalPromiseState(promise);
2507
- this.promise = promise;
2508
- this.resolve = bind$1(internalResolve, state);
2509
- this.reject = bind$1(internalReject, state);
2510
- };
2511
-
2512
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
2513
- return C === PromiseConstructor || C === PromiseWrapper
2514
- ? new OwnPromiseCapability(C)
2515
- : newGenericPromiseCapability(C);
2516
- };
2517
-
2518
- if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
2519
- nativeThen = NativePromisePrototype$1.then;
2520
-
2521
- if (!NATIVE_PROMISE_SUBCLASSING) {
2522
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
2523
- defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
2524
- var that = this;
2525
- return new PromiseConstructor(function (resolve, reject) {
2526
- call$8(nativeThen, that, resolve, reject);
2527
- }).then(onFulfilled, onRejected);
2528
- // https://github.com/zloirock/core-js/issues/640
2529
- }, { unsafe: true });
2530
- }
2531
-
2532
- // make `.constructor === Promise` work for native promise-based APIs
2533
- try {
2534
- delete NativePromisePrototype$1.constructor;
2535
- } catch (error) { /* empty */ }
2536
-
2537
- // make `instanceof Promise` work for native promise-based APIs
2538
- if (setPrototypeOf$2) {
2539
- setPrototypeOf$2(NativePromisePrototype$1, PromisePrototype);
2540
- }
2541
- }
2542
- }
2543
-
2544
- $$d({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2545
- Promise: PromiseConstructor
2546
- });
2547
-
2548
- setToStringTag$1(PromiseConstructor, PROMISE, false);
2549
- setSpecies(PROMISE);
2550
-
2551
- var wellKnownSymbol$3 = wellKnownSymbol$e;
2552
- var Iterators$1 = iterators;
2553
-
2554
- var ITERATOR$3 = wellKnownSymbol$3('iterator');
2555
- var ArrayPrototype = Array.prototype;
2556
-
2557
- // check on default Array iterator
2558
- var isArrayIteratorMethod$1 = function (it) {
2559
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$3] === it);
2560
- };
2561
-
2562
- var classof = classof$5;
2563
- var getMethod$1 = getMethod$3;
2564
- var isNullOrUndefined = isNullOrUndefined$4;
2565
- var Iterators = iterators;
2566
- var wellKnownSymbol$2 = wellKnownSymbol$e;
2567
-
2568
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
2569
-
2570
- var getIteratorMethod$2 = function (it) {
2571
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$2)
2572
- || getMethod$1(it, '@@iterator')
2573
- || Iterators[classof(it)];
2574
- };
2575
-
2576
- var call$7 = functionCall;
2577
- var aCallable$3 = aCallable$9;
2578
- var anObject$6 = anObject$c;
2579
- var tryToString$1 = tryToString$4;
2580
- var getIteratorMethod$1 = getIteratorMethod$2;
2581
-
2582
- var $TypeError$2 = TypeError;
2583
-
2584
- var getIterator$1 = function (argument, usingIterator) {
2585
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
2586
- if (aCallable$3(iteratorMethod)) return anObject$6(call$7(iteratorMethod, argument));
2587
- throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
2588
- };
2589
-
2590
- var call$6 = functionCall;
2591
- var anObject$5 = anObject$c;
2592
- var getMethod = getMethod$3;
2593
-
2594
- var iteratorClose$3 = function (iterator, kind, value) {
2595
- var innerResult, innerError;
2596
- anObject$5(iterator);
2597
- try {
2598
- innerResult = getMethod(iterator, 'return');
2599
- if (!innerResult) {
2600
- if (kind === 'throw') throw value;
2601
- return value;
2602
- }
2603
- innerResult = call$6(innerResult, iterator);
2604
- } catch (error) {
2605
- innerError = true;
2606
- innerResult = error;
2607
- }
2608
- if (kind === 'throw') throw value;
2609
- if (innerError) throw innerResult;
2610
- anObject$5(innerResult);
2611
- return value;
2612
- };
919
+ // IE8- don't enum bug keys
920
+ var enumBugKeys$1 = [
921
+ 'constructor',
922
+ 'hasOwnProperty',
923
+ 'isPrototypeOf',
924
+ 'propertyIsEnumerable',
925
+ 'toLocaleString',
926
+ 'toString',
927
+ 'valueOf'
928
+ ];
2613
929
 
2614
- var bind = functionBindContext;
2615
- var call$5 = functionCall;
2616
- var anObject$4 = anObject$c;
2617
- var tryToString = tryToString$4;
2618
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
2619
- var lengthOfArrayLike = lengthOfArrayLike$2;
2620
- var isPrototypeOf$2 = objectIsPrototypeOf;
2621
- var getIterator = getIterator$1;
2622
- var getIteratorMethod = getIteratorMethod$2;
2623
- var iteratorClose$2 = iteratorClose$3;
930
+ var internalObjectKeys = objectKeysInternal;
931
+ var enumBugKeys = enumBugKeys$1;
2624
932
 
2625
- var $TypeError$1 = TypeError;
933
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
2626
934
 
2627
- var Result = function (stopped, result) {
2628
- this.stopped = stopped;
2629
- this.result = result;
935
+ // `Object.getOwnPropertyNames` method
936
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
937
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
938
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
939
+ return internalObjectKeys(O, hiddenKeys);
2630
940
  };
2631
941
 
2632
- var ResultPrototype = Result.prototype;
2633
-
2634
- var iterate$4 = function (iterable, unboundFunction, options) {
2635
- var that = options && options.that;
2636
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2637
- var IS_RECORD = !!(options && options.IS_RECORD);
2638
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2639
- var INTERRUPTED = !!(options && options.INTERRUPTED);
2640
- var fn = bind(unboundFunction, that);
2641
- var iterator, iterFn, index, length, result, next, step;
942
+ var objectGetOwnPropertySymbols = {};
2642
943
 
2643
- var stop = function (condition) {
2644
- if (iterator) iteratorClose$2(iterator, 'normal', condition);
2645
- return new Result(true, condition);
2646
- };
944
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
945
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
2647
946
 
2648
- var callFn = function (value) {
2649
- if (AS_ENTRIES) {
2650
- anObject$4(value);
2651
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2652
- } return INTERRUPTED ? fn(value, stop) : fn(value);
2653
- };
947
+ var getBuiltIn$1 = getBuiltIn$3;
948
+ var uncurryThis$3 = functionUncurryThis;
949
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
950
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
951
+ var anObject$2 = anObject$4;
2654
952
 
2655
- if (IS_RECORD) {
2656
- iterator = iterable.iterator;
2657
- } else if (IS_ITERATOR) {
2658
- iterator = iterable;
2659
- } else {
2660
- iterFn = getIteratorMethod(iterable);
2661
- if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
2662
- // optimisation for array iterators
2663
- if (isArrayIteratorMethod(iterFn)) {
2664
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2665
- result = callFn(iterable[index]);
2666
- if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
2667
- } return new Result(false);
2668
- }
2669
- iterator = getIterator(iterable, iterFn);
2670
- }
953
+ var concat = uncurryThis$3([].concat);
2671
954
 
2672
- next = IS_RECORD ? iterable.next : iterator.next;
2673
- while (!(step = call$5(next, iterator)).done) {
2674
- try {
2675
- result = callFn(step.value);
2676
- } catch (error) {
2677
- iteratorClose$2(iterator, 'throw', error);
2678
- }
2679
- if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
2680
- } return new Result(false);
955
+ // all object keys, includes non-enumerable and symbols
956
+ var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
957
+ var keys = getOwnPropertyNamesModule.f(anObject$2(it));
958
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
959
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
2681
960
  };
2682
961
 
2683
- var wellKnownSymbol$1 = wellKnownSymbol$e;
2684
-
2685
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
2686
- var SAFE_CLOSING = false;
962
+ var hasOwn = hasOwnProperty_1;
963
+ var ownKeys = ownKeys$1;
964
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
965
+ var definePropertyModule = objectDefineProperty;
2687
966
 
2688
- try {
2689
- var called = 0;
2690
- var iteratorWithReturn = {
2691
- next: function () {
2692
- return { done: !!called++ };
2693
- },
2694
- 'return': function () {
2695
- SAFE_CLOSING = true;
967
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
968
+ var keys = ownKeys(source);
969
+ var defineProperty = definePropertyModule.f;
970
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
971
+ for (var i = 0; i < keys.length; i++) {
972
+ var key = keys[i];
973
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
974
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
2696
975
  }
2697
- };
2698
- iteratorWithReturn[ITERATOR$1] = function () {
2699
- return this;
2700
- };
2701
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2702
- Array.from(iteratorWithReturn, function () { throw 2; });
2703
- } catch (error) { /* empty */ }
2704
-
2705
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2706
- try {
2707
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2708
- } catch (error) { return false; } // workaround of old WebKit + `eval` bug
2709
- var ITERATION_SUPPORT = false;
2710
- try {
2711
- var object = {};
2712
- object[ITERATOR$1] = function () {
2713
- return {
2714
- next: function () {
2715
- return { done: ITERATION_SUPPORT = true };
2716
- }
2717
- };
2718
- };
2719
- exec(object);
2720
- } catch (error) { /* empty */ }
2721
- return ITERATION_SUPPORT;
976
+ }
2722
977
  };
2723
978
 
2724
- var NativePromiseConstructor$1 = promiseNativeConstructor;
2725
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2726
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
979
+ var fails$1 = fails$9;
980
+ var isCallable = isCallable$a;
2727
981
 
2728
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2729
- NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2730
- });
982
+ var replacement = /#|\.prototype\./;
2731
983
 
2732
- var $$c = _export;
2733
- var call$4 = functionCall;
2734
- var aCallable$2 = aCallable$9;
2735
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2736
- var perform$1 = perform$3;
2737
- var iterate$3 = iterate$4;
2738
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2739
-
2740
- // `Promise.all` method
2741
- // https://tc39.es/ecma262/#sec-promise.all
2742
- $$c({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2743
- all: function all(iterable) {
2744
- var C = this;
2745
- var capability = newPromiseCapabilityModule$2.f(C);
2746
- var resolve = capability.resolve;
2747
- var reject = capability.reject;
2748
- var result = perform$1(function () {
2749
- var $promiseResolve = aCallable$2(C.resolve);
2750
- var values = [];
2751
- var counter = 0;
2752
- var remaining = 1;
2753
- iterate$3(iterable, function (promise) {
2754
- var index = counter++;
2755
- var alreadyCalled = false;
2756
- remaining++;
2757
- call$4($promiseResolve, C, promise).then(function (value) {
2758
- if (alreadyCalled) return;
2759
- alreadyCalled = true;
2760
- values[index] = value;
2761
- --remaining || resolve(values);
2762
- }, reject);
2763
- });
2764
- --remaining || resolve(values);
2765
- });
2766
- if (result.error) reject(result.value);
2767
- return capability.promise;
2768
- }
2769
- });
984
+ var isForced$1 = function (feature, detection) {
985
+ var value = data[normalize(feature)];
986
+ return value === POLYFILL ? true
987
+ : value === NATIVE ? false
988
+ : isCallable(detection) ? fails$1(detection)
989
+ : !!detection;
990
+ };
2770
991
 
2771
- var $$b = _export;
2772
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2773
- var NativePromiseConstructor = promiseNativeConstructor;
2774
- var getBuiltIn$3 = getBuiltIn$a;
2775
- var isCallable$1 = isCallable$m;
2776
- var defineBuiltIn$1 = defineBuiltIn$6;
992
+ var normalize = isForced$1.normalize = function (string) {
993
+ return String(string).replace(replacement, '.').toLowerCase();
994
+ };
2777
995
 
2778
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
996
+ var data = isForced$1.data = {};
997
+ var NATIVE = isForced$1.NATIVE = 'N';
998
+ var POLYFILL = isForced$1.POLYFILL = 'P';
2779
999
 
2780
- // `Promise.prototype.catch` method
2781
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
2782
- $$b({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2783
- 'catch': function (onRejected) {
2784
- return this.then(undefined, onRejected);
2785
- }
2786
- });
1000
+ var isForced_1 = isForced$1;
2787
1001
 
2788
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2789
- if (isCallable$1(NativePromiseConstructor)) {
2790
- var method = getBuiltIn$3('Promise').prototype['catch'];
2791
- if (NativePromisePrototype['catch'] !== method) {
2792
- defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
2793
- }
2794
- }
1002
+ var global$1 = global$a;
1003
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1004
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
1005
+ var defineBuiltIn = defineBuiltIn$1;
1006
+ var defineGlobalProperty = defineGlobalProperty$3;
1007
+ var copyConstructorProperties = copyConstructorProperties$1;
1008
+ var isForced = isForced_1;
2795
1009
 
2796
- var $$a = _export;
2797
- var call$3 = functionCall;
2798
- var aCallable$1 = aCallable$9;
2799
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2800
- var perform = perform$3;
2801
- var iterate$2 = iterate$4;
2802
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2803
-
2804
- // `Promise.race` method
2805
- // https://tc39.es/ecma262/#sec-promise.race
2806
- $$a({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2807
- race: function race(iterable) {
2808
- var C = this;
2809
- var capability = newPromiseCapabilityModule$1.f(C);
2810
- var reject = capability.reject;
2811
- var result = perform(function () {
2812
- var $promiseResolve = aCallable$1(C.resolve);
2813
- iterate$2(iterable, function (promise) {
2814
- call$3($promiseResolve, C, promise).then(capability.resolve, reject);
2815
- });
2816
- });
2817
- if (result.error) reject(result.value);
2818
- return capability.promise;
1010
+ /*
1011
+ options.target - name of the target object
1012
+ options.global - target is the global object
1013
+ options.stat - export as static methods of target
1014
+ options.proto - export as prototype methods of target
1015
+ options.real - real prototype method for the `pure` version
1016
+ options.forced - export even if the native feature is available
1017
+ options.bind - bind methods to the target, required for the `pure` version
1018
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1019
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1020
+ options.sham - add a flag to not completely full polyfills
1021
+ options.enumerable - export as enumerable property
1022
+ options.dontCallGetSet - prevent calling a getter on target
1023
+ options.name - the .name of the function if it does not match the key
1024
+ */
1025
+ var _export = function (options, source) {
1026
+ var TARGET = options.target;
1027
+ var GLOBAL = options.global;
1028
+ var STATIC = options.stat;
1029
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1030
+ if (GLOBAL) {
1031
+ target = global$1;
1032
+ } else if (STATIC) {
1033
+ target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
1034
+ } else {
1035
+ target = global$1[TARGET] && global$1[TARGET].prototype;
2819
1036
  }
2820
- });
2821
-
2822
- var $$9 = _export;
2823
- var newPromiseCapabilityModule = newPromiseCapability$2;
2824
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2825
-
2826
- // `Promise.reject` method
2827
- // https://tc39.es/ecma262/#sec-promise.reject
2828
- $$9({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2829
- reject: function reject(r) {
2830
- var capability = newPromiseCapabilityModule.f(this);
2831
- var capabilityReject = capability.reject;
2832
- capabilityReject(r);
2833
- return capability.promise;
1037
+ if (target) for (key in source) {
1038
+ sourceProperty = source[key];
1039
+ if (options.dontCallGetSet) {
1040
+ descriptor = getOwnPropertyDescriptor(target, key);
1041
+ targetProperty = descriptor && descriptor.value;
1042
+ } else targetProperty = target[key];
1043
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1044
+ // contained in target
1045
+ if (!FORCED && targetProperty !== undefined) {
1046
+ if (typeof sourceProperty == typeof targetProperty) continue;
1047
+ copyConstructorProperties(sourceProperty, targetProperty);
1048
+ }
1049
+ // add a flag to not completely full polyfills
1050
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1051
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
1052
+ }
1053
+ defineBuiltIn(target, key, sourceProperty, options);
2834
1054
  }
2835
- });
2836
-
2837
- var anObject$3 = anObject$c;
2838
- var isObject$2 = isObject$c;
2839
- var newPromiseCapability = newPromiseCapability$2;
2840
-
2841
- var promiseResolve$1 = function (C, x) {
2842
- anObject$3(C);
2843
- if (isObject$2(x) && x.constructor === C) return x;
2844
- var promiseCapability = newPromiseCapability.f(C);
2845
- var resolve = promiseCapability.resolve;
2846
- resolve(x);
2847
- return promiseCapability.promise;
2848
1055
  };
2849
1056
 
2850
- var $$8 = _export;
2851
- var getBuiltIn$2 = getBuiltIn$a;
2852
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2853
- var promiseResolve = promiseResolve$1;
2854
-
2855
- getBuiltIn$2('Promise');
2856
-
2857
- // `Promise.resolve` method
2858
- // https://tc39.es/ecma262/#sec-promise.resolve
2859
- $$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2860
- resolve: function resolve(x) {
2861
- return promiseResolve(this, x);
2862
- }
2863
- });
2864
-
2865
1057
  var uncurryThis$2 = functionUncurryThis;
2866
1058
 
2867
1059
  // eslint-disable-next-line es/no-set -- safe
@@ -2924,6 +1116,16 @@ var setClone = function (set) {
2924
1116
  return result;
2925
1117
  };
2926
1118
 
1119
+ var uncurryThis = functionUncurryThis;
1120
+ var aCallable$1 = aCallable$3;
1121
+
1122
+ var functionUncurryThisAccessor = function (object, key, method) {
1123
+ try {
1124
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1125
+ return uncurryThis(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1126
+ } catch (error) { /* empty */ }
1127
+ };
1128
+
2927
1129
  var uncurryThisAccessor = functionUncurryThisAccessor;
2928
1130
  var SetHelpers$3 = setHelpers;
2929
1131
 
@@ -2941,8 +1143,8 @@ var getIteratorDirect$1 = function (obj) {
2941
1143
  };
2942
1144
  };
2943
1145
 
2944
- var aCallable = aCallable$9;
2945
- var anObject$2 = anObject$c;
1146
+ var aCallable = aCallable$3;
1147
+ var anObject$1 = anObject$4;
2946
1148
  var call$1 = functionCall;
2947
1149
  var toIntegerOrInfinity = toIntegerOrInfinity$3;
2948
1150
  var getIteratorDirect = getIteratorDirect$1;
@@ -2961,7 +1163,7 @@ var SetRecord = function (set, intSize) {
2961
1163
 
2962
1164
  SetRecord.prototype = {
2963
1165
  getIterator: function () {
2964
- return getIteratorDirect(anObject$2(call$1(this.keys, this.set)));
1166
+ return getIteratorDirect(anObject$1(call$1(this.keys, this.set)));
2965
1167
  },
2966
1168
  includes: function (it) {
2967
1169
  return call$1(this.has, this.set, it);
@@ -2971,7 +1173,7 @@ SetRecord.prototype = {
2971
1173
  // `GetSetRecord` abstract operation
2972
1174
  // https://tc39.es/proposal-set-methods/#sec-getsetrecord
2973
1175
  var getSetRecord$7 = function (obj) {
2974
- anObject$2(obj);
1176
+ anObject$1(obj);
2975
1177
  var numSize = +obj.size;
2976
1178
  // NOTE: If size is undefined, then numSize will be NaN
2977
1179
  // eslint-disable-next-line no-self-compare -- NaN check
@@ -3007,7 +1209,7 @@ var setDifference = function difference(other) {
3007
1209
  return result;
3008
1210
  };
3009
1211
 
3010
- var getBuiltIn$1 = getBuiltIn$a;
1212
+ var getBuiltIn = getBuiltIn$3;
3011
1213
 
3012
1214
  var createSetLike = function (size) {
3013
1215
  return {
@@ -3026,7 +1228,7 @@ var createSetLike = function (size) {
3026
1228
  };
3027
1229
 
3028
1230
  var setMethodAcceptSetLike$7 = function (name) {
3029
- var Set = getBuiltIn$1('Set');
1231
+ var Set = getBuiltIn('Set');
3030
1232
  try {
3031
1233
  new Set()[name](createSetLike(0));
3032
1234
  try {
@@ -3042,13 +1244,13 @@ var setMethodAcceptSetLike$7 = function (name) {
3042
1244
  }
3043
1245
  };
3044
1246
 
3045
- var $$7 = _export;
1247
+ var $$6 = _export;
3046
1248
  var difference = setDifference;
3047
1249
  var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
3048
1250
 
3049
1251
  // `Set.prototype.difference` method
3050
1252
  // https://github.com/tc39/proposal-set-methods
3051
- $$7({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
1253
+ $$6({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
3052
1254
  difference: difference
3053
1255
  });
3054
1256
 
@@ -3083,29 +1285,53 @@ var setIntersection = function intersection(other) {
3083
1285
  return result;
3084
1286
  };
3085
1287
 
3086
- var $$6 = _export;
3087
- var fails$2 = fails$h;
1288
+ var $$5 = _export;
1289
+ var fails = fails$9;
3088
1290
  var intersection = setIntersection;
3089
1291
  var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
3090
1292
 
3091
- var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$2(function () {
1293
+ var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails(function () {
3092
1294
  // eslint-disable-next-line es/no-array-from, es/no-set -- testing
3093
1295
  return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
3094
1296
  });
3095
1297
 
3096
1298
  // `Set.prototype.intersection` method
3097
1299
  // https://github.com/tc39/proposal-set-methods
3098
- $$6({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
1300
+ $$5({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
3099
1301
  intersection: intersection
3100
1302
  });
3101
1303
 
1304
+ var call = functionCall;
1305
+ var anObject = anObject$4;
1306
+ var getMethod = getMethod$2;
1307
+
1308
+ var iteratorClose$2 = function (iterator, kind, value) {
1309
+ var innerResult, innerError;
1310
+ anObject(iterator);
1311
+ try {
1312
+ innerResult = getMethod(iterator, 'return');
1313
+ if (!innerResult) {
1314
+ if (kind === 'throw') throw value;
1315
+ return value;
1316
+ }
1317
+ innerResult = call(innerResult, iterator);
1318
+ } catch (error) {
1319
+ innerError = true;
1320
+ innerResult = error;
1321
+ }
1322
+ if (kind === 'throw') throw value;
1323
+ if (innerError) throw innerResult;
1324
+ anObject(innerResult);
1325
+ return value;
1326
+ };
1327
+
3102
1328
  var aSet$4 = aSet$7;
3103
1329
  var has$2 = setHelpers.has;
3104
1330
  var size$2 = setSize;
3105
1331
  var getSetRecord$4 = getSetRecord$7;
3106
1332
  var iterateSet = setIterate;
3107
1333
  var iterateSimple$3 = iterateSimple$7;
3108
- var iteratorClose$1 = iteratorClose$3;
1334
+ var iteratorClose$1 = iteratorClose$2;
3109
1335
 
3110
1336
  // `Set.prototype.isDisjointFrom` method
3111
1337
  // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
@@ -3121,13 +1347,13 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
3121
1347
  }) !== false;
3122
1348
  };
3123
1349
 
3124
- var $$5 = _export;
1350
+ var $$4 = _export;
3125
1351
  var isDisjointFrom = setIsDisjointFrom;
3126
1352
  var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
3127
1353
 
3128
1354
  // `Set.prototype.isDisjointFrom` method
3129
1355
  // https://github.com/tc39/proposal-set-methods
3130
- $$5({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
1356
+ $$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
3131
1357
  isDisjointFrom: isDisjointFrom
3132
1358
  });
3133
1359
 
@@ -3147,13 +1373,13 @@ var setIsSubsetOf = function isSubsetOf(other) {
3147
1373
  }, true) !== false;
3148
1374
  };
3149
1375
 
3150
- var $$4 = _export;
1376
+ var $$3 = _export;
3151
1377
  var isSubsetOf = setIsSubsetOf;
3152
1378
  var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
3153
1379
 
3154
1380
  // `Set.prototype.isSubsetOf` method
3155
1381
  // https://github.com/tc39/proposal-set-methods
3156
- $$4({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
1382
+ $$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
3157
1383
  isSubsetOf: isSubsetOf
3158
1384
  });
3159
1385
 
@@ -3162,7 +1388,7 @@ var has$1 = setHelpers.has;
3162
1388
  var size = setSize;
3163
1389
  var getSetRecord$2 = getSetRecord$7;
3164
1390
  var iterateSimple$2 = iterateSimple$7;
3165
- var iteratorClose = iteratorClose$3;
1391
+ var iteratorClose = iteratorClose$2;
3166
1392
 
3167
1393
  // `Set.prototype.isSupersetOf` method
3168
1394
  // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
@@ -3176,13 +1402,13 @@ var setIsSupersetOf = function isSupersetOf(other) {
3176
1402
  }) !== false;
3177
1403
  };
3178
1404
 
3179
- var $$3 = _export;
1405
+ var $$2 = _export;
3180
1406
  var isSupersetOf = setIsSupersetOf;
3181
1407
  var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
3182
1408
 
3183
1409
  // `Set.prototype.isSupersetOf` method
3184
1410
  // https://github.com/tc39/proposal-set-methods
3185
- $$3({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
1411
+ $$2({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
3186
1412
  isSupersetOf: isSupersetOf
3187
1413
  });
3188
1414
 
@@ -3209,13 +1435,13 @@ var setSymmetricDifference = function symmetricDifference(other) {
3209
1435
  return result;
3210
1436
  };
3211
1437
 
3212
- var $$2 = _export;
1438
+ var $$1 = _export;
3213
1439
  var symmetricDifference = setSymmetricDifference;
3214
1440
  var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
3215
1441
 
3216
1442
  // `Set.prototype.symmetricDifference` method
3217
1443
  // https://github.com/tc39/proposal-set-methods
3218
- $$2({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
1444
+ $$1({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
3219
1445
  symmetricDifference: symmetricDifference
3220
1446
  });
3221
1447
 
@@ -3237,97 +1463,16 @@ var setUnion = function union(other) {
3237
1463
  return result;
3238
1464
  };
3239
1465
 
3240
- var $$1 = _export;
1466
+ var $ = _export;
3241
1467
  var union = setUnion;
3242
1468
  var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
3243
1469
 
3244
1470
  // `Set.prototype.union` method
3245
1471
  // https://github.com/tc39/proposal-set-methods
3246
- $$1({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
1472
+ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
3247
1473
  union: union
3248
1474
  });
3249
1475
 
3250
- // iterable DOM collections
3251
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
3252
- var domIterables = {
3253
- CSSRuleList: 0,
3254
- CSSStyleDeclaration: 0,
3255
- CSSValueList: 0,
3256
- ClientRectList: 0,
3257
- DOMRectList: 0,
3258
- DOMStringList: 0,
3259
- DOMTokenList: 1,
3260
- DataTransferItemList: 0,
3261
- FileList: 0,
3262
- HTMLAllCollection: 0,
3263
- HTMLCollection: 0,
3264
- HTMLFormElement: 0,
3265
- HTMLSelectElement: 0,
3266
- MediaList: 0,
3267
- MimeTypeArray: 0,
3268
- NamedNodeMap: 0,
3269
- NodeList: 1,
3270
- PaintRequestList: 0,
3271
- Plugin: 0,
3272
- PluginArray: 0,
3273
- SVGLengthList: 0,
3274
- SVGNumberList: 0,
3275
- SVGPathSegList: 0,
3276
- SVGPointList: 0,
3277
- SVGStringList: 0,
3278
- SVGTransformList: 0,
3279
- SourceBufferList: 0,
3280
- StyleSheetList: 0,
3281
- TextTrackCueList: 0,
3282
- TextTrackList: 0,
3283
- TouchList: 0
3284
- };
3285
-
3286
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
3287
- var documentCreateElement = documentCreateElement$2;
3288
-
3289
- var classList = documentCreateElement('span').classList;
3290
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
3291
-
3292
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
3293
-
3294
- var global$2 = global$j;
3295
- var DOMIterables = domIterables;
3296
- var DOMTokenListPrototype = domTokenListPrototype;
3297
- var ArrayIteratorMethods = es_array_iterator;
3298
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$7;
3299
- var setToStringTag = setToStringTag$4;
3300
- var wellKnownSymbol = wellKnownSymbol$e;
3301
-
3302
- var ITERATOR = wellKnownSymbol('iterator');
3303
- var ArrayValues = ArrayIteratorMethods.values;
3304
-
3305
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
3306
- if (CollectionPrototype) {
3307
- // some Chrome versions have non-configurable methods on DOMTokenList
3308
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
3309
- createNonEnumerableProperty$3(CollectionPrototype, ITERATOR, ArrayValues);
3310
- } catch (error) {
3311
- CollectionPrototype[ITERATOR] = ArrayValues;
3312
- }
3313
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
3314
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
3315
- // some Chrome versions have non-configurable methods on DOMTokenList
3316
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
3317
- createNonEnumerableProperty$3(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
3318
- } catch (error) {
3319
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
3320
- }
3321
- }
3322
- }
3323
- };
3324
-
3325
- for (var COLLECTION_NAME in DOMIterables) {
3326
- handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
3327
- }
3328
-
3329
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
3330
-
3331
1476
  /**
3332
1477
  * A code used in some cases to denote success.
3333
1478
  */
@@ -3493,7 +1638,7 @@ function silenceZoomErrorWithCodesFunction(codes, returnFn) {
3493
1638
  return reason => {
3494
1639
  if (silence !== false && reason instanceof ZoomServerFetchResponseError) {
3495
1640
  if (codesSet.has(reason.code)) {
3496
- return returnFn == null ? void 0 : returnFn(reason);
1641
+ return returnFn?.(reason);
3497
1642
  }
3498
1643
  }
3499
1644
  throw reason;
@@ -3689,7 +1834,7 @@ function parseZoomOAuthServerErrorResponseData(zoomServerError, responseError) {
3689
1834
  let result;
3690
1835
  if (zoomServerError) {
3691
1836
  const potentialErrorStringCode = zoomServerError.error;
3692
- const errorCode = potentialErrorStringCode != null ? potentialErrorStringCode : zoomServerError.code;
1837
+ const errorCode = potentialErrorStringCode ?? zoomServerError.code;
3693
1838
  switch (errorCode) {
3694
1839
  case ZOOM_ACCOUNTS_INVALID_GRANT_ERROR_CODE:
3695
1840
  result = new ZoomOAuthAccessTokenError(errorCode);
@@ -3709,7 +1854,7 @@ const handleZoomOAuthErrorFetch = handleZoomErrorFetchFactory(parseZoomOAuthErro
3709
1854
  function zoomAccessTokenStringFactory(zoomAccessTokenFactory) {
3710
1855
  return async () => {
3711
1856
  const token = await zoomAccessTokenFactory();
3712
- if (!(token != null && token.accessToken)) {
1857
+ if (!token?.accessToken) {
3713
1858
  throw new ZoomOAuthAuthFailureError();
3714
1859
  }
3715
1860
  return token.accessToken;
@@ -3720,10 +1865,9 @@ const DEFAULT_ZOOM_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION = headers => {
3720
1865
  console.warn(`zoomRateLimitedFetchHandler(): Too many requests made. The limit is ${headers.limit} requests per reset period. RetryAt is set for ${headers.retryAfterAt}.`);
3721
1866
  };
3722
1867
  function zoomRateLimitedFetchHandler(config) {
3723
- var _config$onTooManyRequ, _config$maxRateLimit, _config$resetPeriod;
3724
- const onTooManyRequests = (config == null ? void 0 : config.onTooManyRequests) !== false ? (_config$onTooManyRequ = config == null ? void 0 : config.onTooManyRequests) != null ? _config$onTooManyRequ : DEFAULT_ZOOM_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION : undefined;
3725
- const defaultLimit = (_config$maxRateLimit = config == null ? void 0 : config.maxRateLimit) != null ? _config$maxRateLimit : DEFAULT_ZOOM_API_RATE_LIMIT;
3726
- const defaultResetPeriod = (_config$resetPeriod = config == null ? void 0 : config.resetPeriod) != null ? _config$resetPeriod : DEFAULT_ZOOM_API_RATE_LIMIT_RESET_PERIOD;
1868
+ const onTooManyRequests = config?.onTooManyRequests !== false ? config?.onTooManyRequests ?? DEFAULT_ZOOM_RATE_LIMITED_TOO_MANY_REQUETS_LOG_FUNCTION : undefined;
1869
+ const defaultLimit = config?.maxRateLimit ?? DEFAULT_ZOOM_API_RATE_LIMIT;
1870
+ const defaultResetPeriod = config?.resetPeriod ?? DEFAULT_ZOOM_API_RATE_LIMIT_RESET_PERIOD;
3727
1871
  function configForLimit(limit, resetAt) {
3728
1872
  return {
3729
1873
  limit: defaultLimit,
@@ -3757,7 +1901,7 @@ function zoomRateLimitedFetchHandler(config) {
3757
1901
  if (type === 'QPS') {
3758
1902
  shouldRetry = true;
3759
1903
  try {
3760
- onTooManyRequests == null || onTooManyRequests(headerDetails, response, fetchResponseError);
1904
+ onTooManyRequests?.(headerDetails, response, fetchResponseError);
3761
1905
  } catch (e) {}
3762
1906
  }
3763
1907
  }
@@ -3858,63 +2002,6 @@ function zoomFactory(factoryConfig) {
3858
2002
  };
3859
2003
  }
3860
2004
 
3861
- var anObject$1 = anObject$c;
3862
-
3863
- // `RegExp.prototype.flags` getter implementation
3864
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
3865
- var regexpFlags = function () {
3866
- var that = anObject$1(this);
3867
- var result = '';
3868
- if (that.hasIndices) result += 'd';
3869
- if (that.global) result += 'g';
3870
- if (that.ignoreCase) result += 'i';
3871
- if (that.multiline) result += 'm';
3872
- if (that.dotAll) result += 's';
3873
- if (that.unicode) result += 'u';
3874
- if (that.unicodeSets) result += 'v';
3875
- if (that.sticky) result += 'y';
3876
- return result;
3877
- };
3878
-
3879
- var call = functionCall;
3880
- var hasOwn$1 = hasOwnProperty_1;
3881
- var isPrototypeOf$1 = objectIsPrototypeOf;
3882
- var regExpFlags = regexpFlags;
3883
-
3884
- var RegExpPrototype$1 = RegExp.prototype;
3885
-
3886
- var regexpGetFlags = function (R) {
3887
- var flags = R.flags;
3888
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$1(R, 'flags') && isPrototypeOf$1(RegExpPrototype$1, R)
3889
- ? call(regExpFlags, R) : flags;
3890
- };
3891
-
3892
- var PROPER_FUNCTION_NAME = functionName.PROPER;
3893
- var defineBuiltIn = defineBuiltIn$6;
3894
- var anObject = anObject$c;
3895
- var $toString = toString$2;
3896
- var fails$1 = fails$h;
3897
- var getRegExpFlags = regexpGetFlags;
3898
-
3899
- var TO_STRING = 'toString';
3900
- var RegExpPrototype = RegExp.prototype;
3901
- var nativeToString = RegExpPrototype[TO_STRING];
3902
-
3903
- var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
3904
- // FF44- RegExp#toString has a wrong name
3905
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
3906
-
3907
- // `RegExp.prototype.toString` method
3908
- // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
3909
- if (NOT_GENERIC || INCORRECT_NAME) {
3910
- defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
3911
- var R = anObject(this);
3912
- var pattern = $toString(R.source);
3913
- var flags = $toString(getRegExpFlags(R));
3914
- return '/' + pattern + '/' + flags;
3915
- }, { unsafe: true });
3916
- }
3917
-
3918
2005
  /**
3919
2006
  * Retrieves a new AccessToken for Server to Server authentication.
3920
2007
  *
@@ -3923,8 +2010,7 @@ if (NOT_GENERIC || INCORRECT_NAME) {
3923
2010
  */
3924
2011
  function serverAccessToken(context) {
3925
2012
  return input => {
3926
- var _input$accountId;
3927
- return context.fetchJson(`/token?grant_type=account_credentials&account_id=${(_input$accountId = input == null ? void 0 : input.accountId) != null ? _input$accountId : context.config.accountId}`, zoomOAuthApiFetchJsonInput(context, input));
2013
+ return context.fetchJson(`/token?grant_type=account_credentials&account_id=${input?.accountId ?? context.config.accountId}`, zoomOAuthApiFetchJsonInput(context, input));
3928
2014
  };
3929
2015
  }
3930
2016
  /**
@@ -3940,9 +2026,8 @@ function userAccessToken(context) {
3940
2026
  };
3941
2027
  }
3942
2028
  function zoomOAuthApiFetchJsonInput(context, input) {
3943
- var _input$client$clientI, _input$client, _input$client$clientS, _input$client2;
3944
- const clientId = (_input$client$clientI = input == null || (_input$client = input.client) == null ? void 0 : _input$client.clientId) != null ? _input$client$clientI : context.config.clientId;
3945
- const clientSecret = (_input$client$clientS = input == null || (_input$client2 = input.client) == null ? void 0 : _input$client2.clientSecret) != null ? _input$client$clientS : context.config.clientSecret;
2029
+ const clientId = input?.client?.clientId ?? context.config.clientId;
2030
+ const clientSecret = input?.client?.clientSecret ?? context.config.clientSecret;
3946
2031
  const fetchJsonInput = {
3947
2032
  headers: {
3948
2033
  Authorization: zoomOAuthServerBasicAuthorizationHeaderValue({
@@ -3963,215 +2048,6 @@ function zoomOAuthServerBasicAuthorizationHeaderValue(input) {
3963
2048
  */
3964
2049
  const ZOOM_OAUTH_API_URL = 'https://zoom.us/oauth';
3965
2050
 
3966
- var defineProperty = objectDefineProperty.f;
3967
-
3968
- var proxyAccessor$1 = function (Target, Source, key) {
3969
- key in Target || defineProperty(Target, key, {
3970
- configurable: true,
3971
- get: function () { return Source[key]; },
3972
- set: function (it) { Source[key] = it; }
3973
- });
3974
- };
3975
-
3976
- var isCallable = isCallable$m;
3977
- var isObject$1 = isObject$c;
3978
- var setPrototypeOf$1 = objectSetPrototypeOf;
3979
-
3980
- // makes subclassing work correct for wrapped built-ins
3981
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
3982
- var NewTarget, NewTargetPrototype;
3983
- if (
3984
- // it can work only with native `setPrototypeOf`
3985
- setPrototypeOf$1 &&
3986
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
3987
- isCallable(NewTarget = dummy.constructor) &&
3988
- NewTarget !== Wrapper &&
3989
- isObject$1(NewTargetPrototype = NewTarget.prototype) &&
3990
- NewTargetPrototype !== Wrapper.prototype
3991
- ) setPrototypeOf$1($this, NewTargetPrototype);
3992
- return $this;
3993
- };
3994
-
3995
- var toString = toString$2;
3996
-
3997
- var normalizeStringArgument$1 = function (argument, $default) {
3998
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
3999
- };
4000
-
4001
- var isObject = isObject$c;
4002
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$7;
4003
-
4004
- // `InstallErrorCause` abstract operation
4005
- // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
4006
- var installErrorCause$1 = function (O, options) {
4007
- if (isObject(options) && 'cause' in options) {
4008
- createNonEnumerableProperty$2(O, 'cause', options.cause);
4009
- }
4010
- };
4011
-
4012
- var uncurryThis = functionUncurryThis;
4013
-
4014
- var $Error = Error;
4015
- var replace = uncurryThis(''.replace);
4016
-
4017
- var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
4018
- // eslint-disable-next-line redos/no-vulnerable -- safe
4019
- var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
4020
- var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
4021
-
4022
- var errorStackClear = function (stack, dropEntries) {
4023
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
4024
- while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
4025
- } return stack;
4026
- };
4027
-
4028
- var fails = fails$h;
4029
- var createPropertyDescriptor = createPropertyDescriptor$4;
4030
-
4031
- var errorStackInstallable = !fails(function () {
4032
- var error = new Error('a');
4033
- if (!('stack' in error)) return true;
4034
- // eslint-disable-next-line es/no-object-defineproperty -- safe
4035
- Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
4036
- return error.stack !== 7;
4037
- });
4038
-
4039
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$7;
4040
- var clearErrorStack = errorStackClear;
4041
- var ERROR_STACK_INSTALLABLE = errorStackInstallable;
4042
-
4043
- // non-standard V8
4044
- var captureStackTrace = Error.captureStackTrace;
4045
-
4046
- var errorStackInstall = function (error, C, stack, dropEntries) {
4047
- if (ERROR_STACK_INSTALLABLE) {
4048
- if (captureStackTrace) captureStackTrace(error, C);
4049
- else createNonEnumerableProperty$1(error, 'stack', clearErrorStack(stack, dropEntries));
4050
- }
4051
- };
4052
-
4053
- var getBuiltIn = getBuiltIn$a;
4054
- var hasOwn = hasOwnProperty_1;
4055
- var createNonEnumerableProperty = createNonEnumerableProperty$7;
4056
- var isPrototypeOf = objectIsPrototypeOf;
4057
- var setPrototypeOf = objectSetPrototypeOf;
4058
- var copyConstructorProperties = copyConstructorProperties$2;
4059
- var proxyAccessor = proxyAccessor$1;
4060
- var inheritIfRequired = inheritIfRequired$1;
4061
- var normalizeStringArgument = normalizeStringArgument$1;
4062
- var installErrorCause = installErrorCause$1;
4063
- var installErrorStack = errorStackInstall;
4064
- var DESCRIPTORS = descriptors;
4065
-
4066
- var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
4067
- var STACK_TRACE_LIMIT = 'stackTraceLimit';
4068
- var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
4069
- var path = FULL_NAME.split('.');
4070
- var ERROR_NAME = path[path.length - 1];
4071
- var OriginalError = getBuiltIn.apply(null, path);
4072
-
4073
- if (!OriginalError) return;
4074
-
4075
- var OriginalErrorPrototype = OriginalError.prototype;
4076
-
4077
- // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
4078
- if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
4079
-
4080
- if (!FORCED) return OriginalError;
4081
-
4082
- var BaseError = getBuiltIn('Error');
4083
-
4084
- var WrappedError = wrapper(function (a, b) {
4085
- var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
4086
- var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
4087
- if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
4088
- installErrorStack(result, WrappedError, result.stack, 2);
4089
- if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
4090
- if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
4091
- return result;
4092
- });
4093
-
4094
- WrappedError.prototype = OriginalErrorPrototype;
4095
-
4096
- if (ERROR_NAME !== 'Error') {
4097
- if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
4098
- else copyConstructorProperties(WrappedError, BaseError, { name: true });
4099
- } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
4100
- proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
4101
- proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
4102
- }
4103
-
4104
- copyConstructorProperties(WrappedError, OriginalError);
4105
-
4106
- try {
4107
- // Safari 13- bug: WebAssembly errors does not have a proper `.name`
4108
- if (OriginalErrorPrototype.name !== ERROR_NAME) {
4109
- createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);
4110
- }
4111
- OriginalErrorPrototype.constructor = WrappedError;
4112
- } catch (error) { /* empty */ }
4113
-
4114
- return WrappedError;
4115
- };
4116
-
4117
- /* eslint-disable no-unused-vars -- required for functions `.length` */
4118
- var $ = _export;
4119
- var global$1 = global$j;
4120
- var apply = functionApply;
4121
- var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
4122
-
4123
- var WEB_ASSEMBLY = 'WebAssembly';
4124
- var WebAssembly = global$1[WEB_ASSEMBLY];
4125
-
4126
- // eslint-disable-next-line es/no-error-cause -- feature detection
4127
- var FORCED = new Error('e', { cause: 7 }).cause !== 7;
4128
-
4129
- var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
4130
- var O = {};
4131
- O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
4132
- $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
4133
- };
4134
-
4135
- var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
4136
- if (WebAssembly && WebAssembly[ERROR_NAME]) {
4137
- var O = {};
4138
- O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
4139
- $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
4140
- }
4141
- };
4142
-
4143
- // https://tc39.es/ecma262/#sec-nativeerror
4144
- exportGlobalErrorCauseWrapper('Error', function (init) {
4145
- return function Error(message) { return apply(init, this, arguments); };
4146
- });
4147
- exportGlobalErrorCauseWrapper('EvalError', function (init) {
4148
- return function EvalError(message) { return apply(init, this, arguments); };
4149
- });
4150
- exportGlobalErrorCauseWrapper('RangeError', function (init) {
4151
- return function RangeError(message) { return apply(init, this, arguments); };
4152
- });
4153
- exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
4154
- return function ReferenceError(message) { return apply(init, this, arguments); };
4155
- });
4156
- exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
4157
- return function SyntaxError(message) { return apply(init, this, arguments); };
4158
- });
4159
- exportGlobalErrorCauseWrapper('TypeError', function (init) {
4160
- return function TypeError(message) { return apply(init, this, arguments); };
4161
- });
4162
- exportGlobalErrorCauseWrapper('URIError', function (init) {
4163
- return function URIError(message) { return apply(init, this, arguments); };
4164
- });
4165
- exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
4166
- return function CompileError(message) { return apply(init, this, arguments); };
4167
- });
4168
- exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
4169
- return function LinkError(message) { return apply(init, this, arguments); };
4170
- });
4171
- exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
4172
- return function RuntimeError(message) { return apply(init, this, arguments); };
4173
- });
4174
-
4175
2051
  function zoomOAuthFactory(factoryConfig) {
4176
2052
  const fetchHandler = zoomRateLimitedFetchHandler();
4177
2053
  const {
@@ -4265,7 +2141,7 @@ function zoomOAuthZoomAccessTokenFactory(config) {
4265
2141
  accessTokenCache,
4266
2142
  tokenExpirationBuffer: inputTokenExpirationBuffer
4267
2143
  } = config;
4268
- const tokenExpirationBuffer = inputTokenExpirationBuffer != null ? inputTokenExpirationBuffer : MS_IN_MINUTE;
2144
+ const tokenExpirationBuffer = inputTokenExpirationBuffer ?? MS_IN_MINUTE;
4269
2145
  /**
4270
2146
  * Caches the token internally here until it expires.
4271
2147
  */
@@ -4273,7 +2149,7 @@ function zoomOAuthZoomAccessTokenFactory(config) {
4273
2149
  return async () => {
4274
2150
  // load from cache
4275
2151
  if (!currentToken) {
4276
- const cachedToken = await (accessTokenCache == null ? void 0 : accessTokenCache.loadCachedToken());
2152
+ const cachedToken = await accessTokenCache?.loadCachedToken();
4277
2153
  if (cachedToken) {
4278
2154
  currentToken = cachedToken;
4279
2155
  }
@@ -4295,7 +2171,7 @@ function zoomOAuthZoomAccessTokenFactory(config) {
4295
2171
  }
4296
2172
  if (currentToken) {
4297
2173
  try {
4298
- await (accessTokenCache == null ? void 0 : accessTokenCache.updateCachedToken(currentToken));
2174
+ await accessTokenCache?.updateCachedToken(currentToken);
4299
2175
  } catch (e) {
4300
2176
  // do nothing
4301
2177
  }