@trackunit/react-core-contexts-test 0.0.22-alpha-1a2a0a13b.0 → 0.0.23
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/index2.js +343 -320
- package/package.json +4 -4
package/index2.js
CHANGED
|
@@ -16,7 +16,7 @@ var check = function (it) {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
19
|
-
var global$
|
|
19
|
+
var global$i =
|
|
20
20
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
21
21
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22
22
|
check(typeof window == 'object' && window) ||
|
|
@@ -28,7 +28,7 @@ var global$A =
|
|
|
28
28
|
|
|
29
29
|
var objectGetOwnPropertyDescriptor = {};
|
|
30
30
|
|
|
31
|
-
var fails$
|
|
31
|
+
var fails$b = function (exec) {
|
|
32
32
|
try {
|
|
33
33
|
return !!exec();
|
|
34
34
|
} catch (error) {
|
|
@@ -36,17 +36,17 @@ var fails$a = function (exec) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
var fails$
|
|
39
|
+
var fails$a = fails$b;
|
|
40
40
|
|
|
41
41
|
// Detect IE8's incomplete defineProperty implementation
|
|
42
|
-
var descriptors = !fails$
|
|
42
|
+
var descriptors = !fails$a(function () {
|
|
43
43
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
44
44
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
var fails$
|
|
47
|
+
var fails$9 = fails$b;
|
|
48
48
|
|
|
49
|
-
var functionBindNative = !fails$
|
|
49
|
+
var functionBindNative = !fails$9(function () {
|
|
50
50
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
51
51
|
var test = (function () { /* empty */ }).bind();
|
|
52
52
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -110,31 +110,28 @@ var classofRaw$1 = function (it) {
|
|
|
110
110
|
return stringSlice(toString$1(it), 8, -1);
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
var global$z = global$A;
|
|
114
113
|
var uncurryThis$c = functionUncurryThis;
|
|
115
|
-
var fails$
|
|
114
|
+
var fails$8 = fails$b;
|
|
116
115
|
var classof$4 = classofRaw$1;
|
|
117
116
|
|
|
118
|
-
var Object$
|
|
117
|
+
var $Object$3 = Object;
|
|
119
118
|
var split = uncurryThis$c(''.split);
|
|
120
119
|
|
|
121
120
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
122
|
-
var indexedObject = fails$
|
|
121
|
+
var indexedObject = fails$8(function () {
|
|
123
122
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
124
123
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
125
|
-
return
|
|
124
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
126
125
|
}) ? function (it) {
|
|
127
|
-
return classof$4(it) == 'String' ? split(it, '') : Object$
|
|
128
|
-
} : Object$
|
|
126
|
+
return classof$4(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
127
|
+
} : $Object$3;
|
|
129
128
|
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
var TypeError$e = global$y.TypeError;
|
|
129
|
+
var $TypeError$b = TypeError;
|
|
133
130
|
|
|
134
131
|
// `RequireObjectCoercible` abstract operation
|
|
135
132
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
136
133
|
var requireObjectCoercible$2 = function (it) {
|
|
137
|
-
if (it == undefined) throw TypeError$
|
|
134
|
+
if (it == undefined) throw $TypeError$b("Can't call method on " + it);
|
|
138
135
|
return it;
|
|
139
136
|
};
|
|
140
137
|
|
|
@@ -148,25 +145,25 @@ var toIndexedObject$3 = function (it) {
|
|
|
148
145
|
|
|
149
146
|
// `IsCallable` abstract operation
|
|
150
147
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
151
|
-
var isCallable$
|
|
148
|
+
var isCallable$h = function (argument) {
|
|
152
149
|
return typeof argument == 'function';
|
|
153
150
|
};
|
|
154
151
|
|
|
155
|
-
var isCallable$
|
|
152
|
+
var isCallable$g = isCallable$h;
|
|
156
153
|
|
|
157
154
|
var isObject$7 = function (it) {
|
|
158
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
155
|
+
return typeof it == 'object' ? it !== null : isCallable$g(it);
|
|
159
156
|
};
|
|
160
157
|
|
|
161
|
-
var global$
|
|
162
|
-
var isCallable$
|
|
158
|
+
var global$h = global$i;
|
|
159
|
+
var isCallable$f = isCallable$h;
|
|
163
160
|
|
|
164
161
|
var aFunction = function (argument) {
|
|
165
|
-
return isCallable$
|
|
162
|
+
return isCallable$f(argument) ? argument : undefined;
|
|
166
163
|
};
|
|
167
164
|
|
|
168
165
|
var getBuiltIn$8 = function (namespace, method) {
|
|
169
|
-
return arguments.length < 2 ? aFunction(global$
|
|
166
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
170
167
|
};
|
|
171
168
|
|
|
172
169
|
var uncurryThis$b = functionUncurryThis;
|
|
@@ -177,11 +174,11 @@ var getBuiltIn$7 = getBuiltIn$8;
|
|
|
177
174
|
|
|
178
175
|
var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
|
|
179
176
|
|
|
180
|
-
var global$
|
|
177
|
+
var global$g = global$i;
|
|
181
178
|
var userAgent$3 = engineUserAgent;
|
|
182
179
|
|
|
183
|
-
var process$4 = global$
|
|
184
|
-
var Deno$1 = global$
|
|
180
|
+
var process$4 = global$g.process;
|
|
181
|
+
var Deno$1 = global$g.Deno;
|
|
185
182
|
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
186
183
|
var v8 = versions && versions.v8;
|
|
187
184
|
var match, version;
|
|
@@ -208,10 +205,10 @@ var engineV8Version = version;
|
|
|
208
205
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
209
206
|
|
|
210
207
|
var V8_VERSION$1 = engineV8Version;
|
|
211
|
-
var fails$
|
|
208
|
+
var fails$7 = fails$b;
|
|
212
209
|
|
|
213
210
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
214
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
211
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$7(function () {
|
|
215
212
|
var symbol = Symbol();
|
|
216
213
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
217
214
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -228,43 +225,39 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
228
225
|
&& !Symbol.sham
|
|
229
226
|
&& typeof Symbol.iterator == 'symbol';
|
|
230
227
|
|
|
231
|
-
var global$v = global$A;
|
|
232
228
|
var getBuiltIn$6 = getBuiltIn$8;
|
|
233
|
-
var isCallable$
|
|
229
|
+
var isCallable$e = isCallable$h;
|
|
234
230
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
235
231
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
236
232
|
|
|
237
|
-
var Object$
|
|
233
|
+
var $Object$2 = Object;
|
|
238
234
|
|
|
239
235
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
240
236
|
return typeof it == 'symbol';
|
|
241
237
|
} : function (it) {
|
|
242
238
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
243
|
-
return isCallable$
|
|
239
|
+
return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
|
|
244
240
|
};
|
|
245
241
|
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
var String$4 = global$u.String;
|
|
242
|
+
var $String$2 = String;
|
|
249
243
|
|
|
250
244
|
var tryToString$4 = function (argument) {
|
|
251
245
|
try {
|
|
252
|
-
return String$
|
|
246
|
+
return $String$2(argument);
|
|
253
247
|
} catch (error) {
|
|
254
248
|
return 'Object';
|
|
255
249
|
}
|
|
256
250
|
};
|
|
257
251
|
|
|
258
|
-
var
|
|
259
|
-
var isCallable$c = isCallable$g;
|
|
252
|
+
var isCallable$d = isCallable$h;
|
|
260
253
|
var tryToString$3 = tryToString$4;
|
|
261
254
|
|
|
262
|
-
var TypeError$
|
|
255
|
+
var $TypeError$a = TypeError;
|
|
263
256
|
|
|
264
257
|
// `Assert: IsCallable(argument) is true`
|
|
265
258
|
var aCallable$7 = function (argument) {
|
|
266
|
-
if (isCallable$
|
|
267
|
-
throw TypeError$
|
|
259
|
+
if (isCallable$d(argument)) return argument;
|
|
260
|
+
throw $TypeError$a(tryToString$3(argument) + ' is not a function');
|
|
268
261
|
};
|
|
269
262
|
|
|
270
263
|
var aCallable$6 = aCallable$7;
|
|
@@ -276,43 +269,42 @@ var getMethod$3 = function (V, P) {
|
|
|
276
269
|
return func == null ? undefined : aCallable$6(func);
|
|
277
270
|
};
|
|
278
271
|
|
|
279
|
-
var global$s = global$A;
|
|
280
272
|
var call$b = functionCall;
|
|
281
|
-
var isCallable$
|
|
273
|
+
var isCallable$c = isCallable$h;
|
|
282
274
|
var isObject$6 = isObject$7;
|
|
283
275
|
|
|
284
|
-
var TypeError$
|
|
276
|
+
var $TypeError$9 = TypeError;
|
|
285
277
|
|
|
286
278
|
// `OrdinaryToPrimitive` abstract operation
|
|
287
279
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
288
280
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
289
281
|
var fn, val;
|
|
290
|
-
if (pref === 'string' && isCallable$
|
|
291
|
-
if (isCallable$
|
|
292
|
-
if (pref !== 'string' && isCallable$
|
|
293
|
-
throw TypeError$
|
|
282
|
+
if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
|
|
283
|
+
if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$b(fn, input))) return val;
|
|
284
|
+
if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
|
|
285
|
+
throw $TypeError$9("Can't convert object to primitive value");
|
|
294
286
|
};
|
|
295
287
|
|
|
296
288
|
var shared$3 = {exports: {}};
|
|
297
289
|
|
|
298
|
-
var global$
|
|
290
|
+
var global$f = global$i;
|
|
299
291
|
|
|
300
292
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
301
|
-
var defineProperty$
|
|
293
|
+
var defineProperty$3 = Object.defineProperty;
|
|
302
294
|
|
|
303
|
-
var
|
|
295
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
304
296
|
try {
|
|
305
|
-
defineProperty$
|
|
297
|
+
defineProperty$3(global$f, key, { value: value, configurable: true, writable: true });
|
|
306
298
|
} catch (error) {
|
|
307
|
-
global$
|
|
299
|
+
global$f[key] = value;
|
|
308
300
|
} return value;
|
|
309
301
|
};
|
|
310
302
|
|
|
311
|
-
var global$
|
|
312
|
-
var
|
|
303
|
+
var global$e = global$i;
|
|
304
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
313
305
|
|
|
314
306
|
var SHARED = '__core-js_shared__';
|
|
315
|
-
var store$3 = global$
|
|
307
|
+
var store$3 = global$e[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
316
308
|
|
|
317
309
|
var sharedStore = store$3;
|
|
318
310
|
|
|
@@ -321,22 +313,21 @@ var store$2 = sharedStore;
|
|
|
321
313
|
(shared$3.exports = function (key, value) {
|
|
322
314
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
323
315
|
})('versions', []).push({
|
|
324
|
-
version: '3.
|
|
316
|
+
version: '3.24.1',
|
|
325
317
|
mode: 'global',
|
|
326
318
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
327
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
319
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
328
320
|
source: 'https://github.com/zloirock/core-js'
|
|
329
321
|
});
|
|
330
322
|
|
|
331
|
-
var global$p = global$A;
|
|
332
323
|
var requireObjectCoercible = requireObjectCoercible$2;
|
|
333
324
|
|
|
334
|
-
var Object$
|
|
325
|
+
var $Object$1 = Object;
|
|
335
326
|
|
|
336
327
|
// `ToObject` abstract operation
|
|
337
328
|
// https://tc39.es/ecma262/#sec-toobject
|
|
338
329
|
var toObject$2 = function (argument) {
|
|
339
|
-
return Object$
|
|
330
|
+
return $Object$1(requireObjectCoercible(argument));
|
|
340
331
|
};
|
|
341
332
|
|
|
342
333
|
var uncurryThis$a = functionUncurryThis;
|
|
@@ -361,7 +352,7 @@ var uid$2 = function (key) {
|
|
|
361
352
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
362
353
|
};
|
|
363
354
|
|
|
364
|
-
var global$
|
|
355
|
+
var global$d = global$i;
|
|
365
356
|
var shared$2 = shared$3.exports;
|
|
366
357
|
var hasOwn$8 = hasOwnProperty_1;
|
|
367
358
|
var uid$1 = uid$2;
|
|
@@ -369,7 +360,7 @@ var NATIVE_SYMBOL = nativeSymbol;
|
|
|
369
360
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
370
361
|
|
|
371
362
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
372
|
-
var Symbol$1 = global$
|
|
363
|
+
var Symbol$1 = global$d.Symbol;
|
|
373
364
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
374
365
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
375
366
|
|
|
@@ -386,7 +377,6 @@ var wellKnownSymbol$a = function (name) {
|
|
|
386
377
|
} return WellKnownSymbolsStore[name];
|
|
387
378
|
};
|
|
388
379
|
|
|
389
|
-
var global$n = global$A;
|
|
390
380
|
var call$a = functionCall;
|
|
391
381
|
var isObject$5 = isObject$7;
|
|
392
382
|
var isSymbol$1 = isSymbol$2;
|
|
@@ -394,7 +384,7 @@ var getMethod$2 = getMethod$3;
|
|
|
394
384
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
395
385
|
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
396
386
|
|
|
397
|
-
var TypeError$
|
|
387
|
+
var $TypeError$8 = TypeError;
|
|
398
388
|
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
399
389
|
|
|
400
390
|
// `ToPrimitive` abstract operation
|
|
@@ -407,7 +397,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
407
397
|
if (pref === undefined) pref = 'default';
|
|
408
398
|
result = call$a(exoticToPrim, input, pref);
|
|
409
399
|
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
410
|
-
throw TypeError$
|
|
400
|
+
throw $TypeError$8("Can't convert object to primitive value");
|
|
411
401
|
}
|
|
412
402
|
if (pref === undefined) pref = 'number';
|
|
413
403
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -423,30 +413,30 @@ var toPropertyKey$2 = function (argument) {
|
|
|
423
413
|
return isSymbol(key) ? key : key + '';
|
|
424
414
|
};
|
|
425
415
|
|
|
426
|
-
var global$
|
|
416
|
+
var global$c = global$i;
|
|
427
417
|
var isObject$4 = isObject$7;
|
|
428
418
|
|
|
429
|
-
var document$
|
|
419
|
+
var document$3 = global$c.document;
|
|
430
420
|
// typeof document.createElement is 'object' in old IE
|
|
431
|
-
var EXISTS$1 = isObject$4(document$
|
|
421
|
+
var EXISTS$1 = isObject$4(document$3) && isObject$4(document$3.createElement);
|
|
432
422
|
|
|
433
423
|
var documentCreateElement = function (it) {
|
|
434
|
-
return EXISTS$1 ? document$
|
|
424
|
+
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
435
425
|
};
|
|
436
426
|
|
|
437
|
-
var DESCRIPTORS$
|
|
438
|
-
var fails$
|
|
427
|
+
var DESCRIPTORS$8 = descriptors;
|
|
428
|
+
var fails$6 = fails$b;
|
|
439
429
|
var createElement$1 = documentCreateElement;
|
|
440
430
|
|
|
441
431
|
// Thanks to IE8 for its funny defineProperty
|
|
442
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
432
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$6(function () {
|
|
443
433
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
444
434
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
445
435
|
get: function () { return 7; }
|
|
446
436
|
}).a != 7;
|
|
447
437
|
});
|
|
448
438
|
|
|
449
|
-
var DESCRIPTORS$
|
|
439
|
+
var DESCRIPTORS$7 = descriptors;
|
|
450
440
|
var call$9 = functionCall;
|
|
451
441
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
452
442
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
@@ -460,7 +450,7 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
460
450
|
|
|
461
451
|
// `Object.getOwnPropertyDescriptor` method
|
|
462
452
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
463
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
453
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
464
454
|
O = toIndexedObject$2(O);
|
|
465
455
|
P = toPropertyKey$1(P);
|
|
466
456
|
if (IE8_DOM_DEFINE$1) try {
|
|
@@ -471,12 +461,12 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 :
|
|
|
471
461
|
|
|
472
462
|
var objectDefineProperty = {};
|
|
473
463
|
|
|
474
|
-
var DESCRIPTORS$
|
|
475
|
-
var fails$
|
|
464
|
+
var DESCRIPTORS$6 = descriptors;
|
|
465
|
+
var fails$5 = fails$b;
|
|
476
466
|
|
|
477
467
|
// V8 ~ Chrome 36-
|
|
478
468
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
479
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
469
|
+
var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$5(function () {
|
|
480
470
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
481
471
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
482
472
|
value: 42,
|
|
@@ -484,26 +474,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$4(function () {
|
|
|
484
474
|
}).prototype != 42;
|
|
485
475
|
});
|
|
486
476
|
|
|
487
|
-
var global$l = global$A;
|
|
488
477
|
var isObject$3 = isObject$7;
|
|
489
478
|
|
|
490
|
-
var String$
|
|
491
|
-
var TypeError$
|
|
479
|
+
var $String$1 = String;
|
|
480
|
+
var $TypeError$7 = TypeError;
|
|
492
481
|
|
|
493
482
|
// `Assert: Type(argument) is Object`
|
|
494
483
|
var anObject$8 = function (argument) {
|
|
495
484
|
if (isObject$3(argument)) return argument;
|
|
496
|
-
throw TypeError$
|
|
485
|
+
throw $TypeError$7($String$1(argument) + ' is not an object');
|
|
497
486
|
};
|
|
498
487
|
|
|
499
|
-
var
|
|
500
|
-
var DESCRIPTORS$4 = descriptors;
|
|
488
|
+
var DESCRIPTORS$5 = descriptors;
|
|
501
489
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
502
490
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
503
491
|
var anObject$7 = anObject$8;
|
|
504
492
|
var toPropertyKey = toPropertyKey$2;
|
|
505
493
|
|
|
506
|
-
var TypeError$
|
|
494
|
+
var $TypeError$6 = TypeError;
|
|
507
495
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
508
496
|
var $defineProperty = Object.defineProperty;
|
|
509
497
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -514,7 +502,7 @@ var WRITABLE = 'writable';
|
|
|
514
502
|
|
|
515
503
|
// `Object.defineProperty` method
|
|
516
504
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
517
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
505
|
+
objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
518
506
|
anObject$7(O);
|
|
519
507
|
P = toPropertyKey(P);
|
|
520
508
|
anObject$7(Attributes);
|
|
@@ -536,32 +524,50 @@ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
536
524
|
if (IE8_DOM_DEFINE) try {
|
|
537
525
|
return $defineProperty(O, P, Attributes);
|
|
538
526
|
} catch (error) { /* empty */ }
|
|
539
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError$
|
|
527
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$6('Accessors not supported');
|
|
540
528
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
541
529
|
return O;
|
|
542
530
|
};
|
|
543
531
|
|
|
544
|
-
var DESCRIPTORS$
|
|
545
|
-
var definePropertyModule$
|
|
532
|
+
var DESCRIPTORS$4 = descriptors;
|
|
533
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
546
534
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
547
535
|
|
|
548
|
-
var createNonEnumerableProperty$
|
|
549
|
-
return definePropertyModule$
|
|
536
|
+
var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
|
|
537
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
|
|
550
538
|
} : function (object, key, value) {
|
|
551
539
|
object[key] = value;
|
|
552
540
|
return object;
|
|
553
541
|
};
|
|
554
542
|
|
|
555
|
-
var
|
|
543
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
544
|
+
|
|
545
|
+
var DESCRIPTORS$3 = descriptors;
|
|
546
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
547
|
+
|
|
548
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
549
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
550
|
+
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
551
|
+
|
|
552
|
+
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
553
|
+
// additional protection from minified / mangled / dropped function names
|
|
554
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
555
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
556
|
+
|
|
557
|
+
var functionName = {
|
|
558
|
+
EXISTS: EXISTS,
|
|
559
|
+
PROPER: PROPER,
|
|
560
|
+
CONFIGURABLE: CONFIGURABLE
|
|
561
|
+
};
|
|
556
562
|
|
|
557
563
|
var uncurryThis$8 = functionUncurryThis;
|
|
558
|
-
var isCallable$
|
|
564
|
+
var isCallable$b = isCallable$h;
|
|
559
565
|
var store$1 = sharedStore;
|
|
560
566
|
|
|
561
567
|
var functionToString = uncurryThis$8(Function.toString);
|
|
562
568
|
|
|
563
569
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
564
|
-
if (!isCallable$
|
|
570
|
+
if (!isCallable$b(store$1.inspectSource)) {
|
|
565
571
|
store$1.inspectSource = function (it) {
|
|
566
572
|
return functionToString(it);
|
|
567
573
|
};
|
|
@@ -569,13 +575,13 @@ if (!isCallable$a(store$1.inspectSource)) {
|
|
|
569
575
|
|
|
570
576
|
var inspectSource$4 = store$1.inspectSource;
|
|
571
577
|
|
|
572
|
-
var global$
|
|
573
|
-
var isCallable$
|
|
578
|
+
var global$b = global$i;
|
|
579
|
+
var isCallable$a = isCallable$h;
|
|
574
580
|
var inspectSource$3 = inspectSource$4;
|
|
575
581
|
|
|
576
|
-
var WeakMap$1 = global$
|
|
582
|
+
var WeakMap$1 = global$b.WeakMap;
|
|
577
583
|
|
|
578
|
-
var nativeWeakMap = isCallable$
|
|
584
|
+
var nativeWeakMap = isCallable$a(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
|
|
579
585
|
|
|
580
586
|
var shared$1 = shared$3.exports;
|
|
581
587
|
var uid = uid$2;
|
|
@@ -589,18 +595,18 @@ var sharedKey$1 = function (key) {
|
|
|
589
595
|
var hiddenKeys$3 = {};
|
|
590
596
|
|
|
591
597
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
592
|
-
var global$
|
|
598
|
+
var global$a = global$i;
|
|
593
599
|
var uncurryThis$7 = functionUncurryThis;
|
|
594
600
|
var isObject$2 = isObject$7;
|
|
595
|
-
var createNonEnumerableProperty$
|
|
596
|
-
var hasOwn$
|
|
601
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
|
|
602
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
597
603
|
var shared = sharedStore;
|
|
598
604
|
var sharedKey = sharedKey$1;
|
|
599
605
|
var hiddenKeys$2 = hiddenKeys$3;
|
|
600
606
|
|
|
601
607
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
602
|
-
var TypeError$
|
|
603
|
-
var WeakMap = global$
|
|
608
|
+
var TypeError$2 = global$a.TypeError;
|
|
609
|
+
var WeakMap = global$a.WeakMap;
|
|
604
610
|
var set$1, get, has;
|
|
605
611
|
|
|
606
612
|
var enforce = function (it) {
|
|
@@ -611,7 +617,7 @@ var getterFor = function (TYPE) {
|
|
|
611
617
|
return function (it) {
|
|
612
618
|
var state;
|
|
613
619
|
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
614
|
-
throw TypeError$
|
|
620
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
615
621
|
} return state;
|
|
616
622
|
};
|
|
617
623
|
};
|
|
@@ -622,7 +628,7 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
622
628
|
var wmhas = uncurryThis$7(store.has);
|
|
623
629
|
var wmset = uncurryThis$7(store.set);
|
|
624
630
|
set$1 = function (it, metadata) {
|
|
625
|
-
if (wmhas(store, it)) throw new TypeError$
|
|
631
|
+
if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
626
632
|
metadata.facade = it;
|
|
627
633
|
wmset(store, it, metadata);
|
|
628
634
|
return metadata;
|
|
@@ -637,16 +643,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
637
643
|
var STATE = sharedKey('state');
|
|
638
644
|
hiddenKeys$2[STATE] = true;
|
|
639
645
|
set$1 = function (it, metadata) {
|
|
640
|
-
if (hasOwn$
|
|
646
|
+
if (hasOwn$5(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
641
647
|
metadata.facade = it;
|
|
642
|
-
createNonEnumerableProperty$
|
|
648
|
+
createNonEnumerableProperty$1(it, STATE, metadata);
|
|
643
649
|
return metadata;
|
|
644
650
|
};
|
|
645
651
|
get = function (it) {
|
|
646
|
-
return hasOwn$
|
|
652
|
+
return hasOwn$5(it, STATE) ? it[STATE] : {};
|
|
647
653
|
};
|
|
648
654
|
has = function (it) {
|
|
649
|
-
return hasOwn$
|
|
655
|
+
return hasOwn$5(it, STATE);
|
|
650
656
|
};
|
|
651
657
|
}
|
|
652
658
|
|
|
@@ -658,82 +664,105 @@ var internalState = {
|
|
|
658
664
|
getterFor: getterFor
|
|
659
665
|
};
|
|
660
666
|
|
|
661
|
-
var
|
|
662
|
-
var
|
|
663
|
-
|
|
664
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
665
|
-
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
666
|
-
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
|
|
667
|
-
|
|
668
|
-
var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
|
|
669
|
-
// additional protection from minified / mangled / dropped function names
|
|
670
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
671
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
672
|
-
|
|
673
|
-
var functionName = {
|
|
674
|
-
EXISTS: EXISTS,
|
|
675
|
-
PROPER: PROPER,
|
|
676
|
-
CONFIGURABLE: CONFIGURABLE
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
var global$h = global$A;
|
|
680
|
-
var isCallable$8 = isCallable$g;
|
|
667
|
+
var fails$4 = fails$b;
|
|
668
|
+
var isCallable$9 = isCallable$h;
|
|
681
669
|
var hasOwn$4 = hasOwnProperty_1;
|
|
682
|
-
var
|
|
683
|
-
var
|
|
670
|
+
var DESCRIPTORS$2 = descriptors;
|
|
671
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
684
672
|
var inspectSource$2 = inspectSource$4;
|
|
685
673
|
var InternalStateModule$1 = internalState;
|
|
686
|
-
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
687
674
|
|
|
688
|
-
var getInternalState = InternalStateModule$1.get;
|
|
689
675
|
var enforceInternalState = InternalStateModule$1.enforce;
|
|
676
|
+
var getInternalState = InternalStateModule$1.get;
|
|
677
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
678
|
+
var defineProperty$2 = Object.defineProperty;
|
|
679
|
+
|
|
680
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
|
|
681
|
+
return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
682
|
+
});
|
|
683
|
+
|
|
690
684
|
var TEMPLATE = String(String).split('String');
|
|
691
685
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
696
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
697
|
-
var state;
|
|
698
|
-
if (isCallable$8(value)) {
|
|
699
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
700
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
701
|
-
}
|
|
702
|
-
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
703
|
-
createNonEnumerableProperty$1(value, 'name', name);
|
|
704
|
-
}
|
|
705
|
-
state = enforceInternalState(value);
|
|
706
|
-
if (!state.source) {
|
|
707
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
708
|
-
}
|
|
686
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
687
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
688
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
709
689
|
}
|
|
710
|
-
if (
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
690
|
+
if (options && options.getter) name = 'get ' + name;
|
|
691
|
+
if (options && options.setter) name = 'set ' + name;
|
|
692
|
+
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
693
|
+
if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
|
|
694
|
+
else value.name = name;
|
|
695
|
+
}
|
|
696
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
|
|
697
|
+
defineProperty$2(value, 'length', { value: options.arity });
|
|
718
698
|
}
|
|
719
|
-
|
|
720
|
-
|
|
699
|
+
try {
|
|
700
|
+
if (options && hasOwn$4(options, 'constructor') && options.constructor) {
|
|
701
|
+
if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
|
|
702
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
703
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
704
|
+
} catch (error) { /* empty */ }
|
|
705
|
+
var state = enforceInternalState(value);
|
|
706
|
+
if (!hasOwn$4(state, 'source')) {
|
|
707
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
708
|
+
} return value;
|
|
709
|
+
};
|
|
710
|
+
|
|
721
711
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
712
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
713
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
714
|
+
return isCallable$9(this) && getInternalState(this).source || inspectSource$2(this);
|
|
715
|
+
}, 'toString');
|
|
716
|
+
|
|
717
|
+
var isCallable$8 = isCallable$h;
|
|
718
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
719
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
720
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
721
|
+
|
|
722
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
723
|
+
if (!options) options = {};
|
|
724
|
+
var simple = options.enumerable;
|
|
725
|
+
var name = options.name !== undefined ? options.name : key;
|
|
726
|
+
if (isCallable$8(value)) makeBuiltIn(value, name, options);
|
|
727
|
+
if (options.global) {
|
|
728
|
+
if (simple) O[key] = value;
|
|
729
|
+
else defineGlobalProperty$1(key, value);
|
|
730
|
+
} else {
|
|
731
|
+
try {
|
|
732
|
+
if (!options.unsafe) delete O[key];
|
|
733
|
+
else if (O[key]) simple = true;
|
|
734
|
+
} catch (error) { /* empty */ }
|
|
735
|
+
if (simple) O[key] = value;
|
|
736
|
+
else definePropertyModule$2.f(O, key, {
|
|
737
|
+
value: value,
|
|
738
|
+
enumerable: false,
|
|
739
|
+
configurable: !options.nonConfigurable,
|
|
740
|
+
writable: !options.nonWritable
|
|
741
|
+
});
|
|
742
|
+
} return O;
|
|
743
|
+
};
|
|
725
744
|
|
|
726
745
|
var objectGetOwnPropertyNames = {};
|
|
727
746
|
|
|
728
747
|
var ceil = Math.ceil;
|
|
729
748
|
var floor = Math.floor;
|
|
730
749
|
|
|
750
|
+
// `Math.trunc` method
|
|
751
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
752
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
753
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
754
|
+
var n = +x;
|
|
755
|
+
return (n > 0 ? floor : ceil)(n);
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
var trunc = mathTrunc;
|
|
759
|
+
|
|
731
760
|
// `ToIntegerOrInfinity` abstract operation
|
|
732
761
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
733
762
|
var toIntegerOrInfinity$2 = function (argument) {
|
|
734
763
|
var number = +argument;
|
|
735
|
-
// eslint-disable-next-line no-self-compare --
|
|
736
|
-
return number !== number || number === 0 ? 0 : (number
|
|
764
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
765
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
737
766
|
};
|
|
738
767
|
|
|
739
768
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
@@ -881,8 +910,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
881
910
|
}
|
|
882
911
|
};
|
|
883
912
|
|
|
884
|
-
var fails$3 = fails$
|
|
885
|
-
var isCallable$7 = isCallable$
|
|
913
|
+
var fails$3 = fails$b;
|
|
914
|
+
var isCallable$7 = isCallable$h;
|
|
886
915
|
|
|
887
916
|
var replacement = /#|\.prototype\./;
|
|
888
917
|
|
|
@@ -904,28 +933,28 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
904
933
|
|
|
905
934
|
var isForced_1 = isForced$2;
|
|
906
935
|
|
|
907
|
-
var global$
|
|
936
|
+
var global$9 = global$i;
|
|
908
937
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
909
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
910
|
-
var
|
|
911
|
-
var
|
|
938
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$2;
|
|
939
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
940
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
912
941
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
913
942
|
var isForced$1 = isForced_1;
|
|
914
943
|
|
|
915
944
|
/*
|
|
916
|
-
options.target
|
|
917
|
-
options.global
|
|
918
|
-
options.stat
|
|
919
|
-
options.proto
|
|
920
|
-
options.real
|
|
921
|
-
options.forced
|
|
922
|
-
options.bind
|
|
923
|
-
options.wrap
|
|
924
|
-
options.unsafe
|
|
925
|
-
options.sham
|
|
926
|
-
options.enumerable
|
|
927
|
-
options.
|
|
928
|
-
options.name
|
|
945
|
+
options.target - name of the target object
|
|
946
|
+
options.global - target is the global object
|
|
947
|
+
options.stat - export as static methods of target
|
|
948
|
+
options.proto - export as prototype methods of target
|
|
949
|
+
options.real - real prototype method for the `pure` version
|
|
950
|
+
options.forced - export even if the native feature is available
|
|
951
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
952
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
953
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
954
|
+
options.sham - add a flag to not completely full polyfills
|
|
955
|
+
options.enumerable - export as enumerable property
|
|
956
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
957
|
+
options.name - the .name of the function if it does not match the key
|
|
929
958
|
*/
|
|
930
959
|
var _export = function (options, source) {
|
|
931
960
|
var TARGET = options.target;
|
|
@@ -933,15 +962,15 @@ var _export = function (options, source) {
|
|
|
933
962
|
var STATIC = options.stat;
|
|
934
963
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
935
964
|
if (GLOBAL) {
|
|
936
|
-
target = global$
|
|
965
|
+
target = global$9;
|
|
937
966
|
} else if (STATIC) {
|
|
938
|
-
target = global$
|
|
967
|
+
target = global$9[TARGET] || defineGlobalProperty(TARGET, {});
|
|
939
968
|
} else {
|
|
940
|
-
target = (global$
|
|
969
|
+
target = (global$9[TARGET] || {}).prototype;
|
|
941
970
|
}
|
|
942
971
|
if (target) for (key in source) {
|
|
943
972
|
sourceProperty = source[key];
|
|
944
|
-
if (options.
|
|
973
|
+
if (options.dontCallGetSet) {
|
|
945
974
|
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
946
975
|
targetProperty = descriptor && descriptor.value;
|
|
947
976
|
} else targetProperty = target[key];
|
|
@@ -955,32 +984,23 @@ var _export = function (options, source) {
|
|
|
955
984
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
956
985
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
957
986
|
}
|
|
958
|
-
|
|
959
|
-
redefine$3(target, key, sourceProperty, options);
|
|
987
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
960
988
|
}
|
|
961
989
|
};
|
|
962
990
|
|
|
963
991
|
var classof$3 = classofRaw$1;
|
|
964
|
-
var global$
|
|
992
|
+
var global$8 = global$i;
|
|
965
993
|
|
|
966
|
-
var engineIsNode = classof$3(global$
|
|
967
|
-
|
|
968
|
-
var redefine$2 = redefine$4.exports;
|
|
969
|
-
|
|
970
|
-
var redefineAll$1 = function (target, src, options) {
|
|
971
|
-
for (var key in src) redefine$2(target, key, src[key], options);
|
|
972
|
-
return target;
|
|
973
|
-
};
|
|
994
|
+
var engineIsNode = classof$3(global$8.process) == 'process';
|
|
974
995
|
|
|
975
|
-
var
|
|
976
|
-
var isCallable$6 = isCallable$g;
|
|
996
|
+
var isCallable$6 = isCallable$h;
|
|
977
997
|
|
|
978
|
-
var String
|
|
979
|
-
var TypeError$
|
|
998
|
+
var $String = String;
|
|
999
|
+
var $TypeError$5 = TypeError;
|
|
980
1000
|
|
|
981
1001
|
var aPossiblePrototype$1 = function (argument) {
|
|
982
1002
|
if (typeof argument == 'object' || isCallable$6(argument)) return argument;
|
|
983
|
-
throw TypeError$
|
|
1003
|
+
throw $TypeError$5("Can't set " + $String(argument) + ' as a prototype');
|
|
984
1004
|
};
|
|
985
1005
|
|
|
986
1006
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1044,14 +1064,13 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
1044
1064
|
}
|
|
1045
1065
|
};
|
|
1046
1066
|
|
|
1047
|
-
var global$d = global$A;
|
|
1048
1067
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1049
1068
|
|
|
1050
|
-
var TypeError$
|
|
1069
|
+
var $TypeError$4 = TypeError;
|
|
1051
1070
|
|
|
1052
1071
|
var anInstance$1 = function (it, Prototype) {
|
|
1053
1072
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
1054
|
-
throw TypeError$
|
|
1073
|
+
throw $TypeError$4('Incorrect invocation');
|
|
1055
1074
|
};
|
|
1056
1075
|
|
|
1057
1076
|
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
@@ -1063,14 +1082,13 @@ test[TO_STRING_TAG$1] = 'z';
|
|
|
1063
1082
|
|
|
1064
1083
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1065
1084
|
|
|
1066
|
-
var global$c = global$A;
|
|
1067
1085
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1068
|
-
var isCallable$5 = isCallable$
|
|
1086
|
+
var isCallable$5 = isCallable$h;
|
|
1069
1087
|
var classofRaw = classofRaw$1;
|
|
1070
1088
|
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
1071
1089
|
|
|
1072
1090
|
var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
|
|
1073
|
-
var Object
|
|
1091
|
+
var $Object = Object;
|
|
1074
1092
|
|
|
1075
1093
|
// ES3 wrong here
|
|
1076
1094
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1087,7 +1105,7 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1087
1105
|
var O, tag, result;
|
|
1088
1106
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1089
1107
|
// @@toStringTag case
|
|
1090
|
-
: typeof (tag = tryGet(O = Object
|
|
1108
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1091
1109
|
// builtinTag case
|
|
1092
1110
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1093
1111
|
// ES3 arguments fallback
|
|
@@ -1095,8 +1113,8 @@ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1095
1113
|
};
|
|
1096
1114
|
|
|
1097
1115
|
var uncurryThis$3 = functionUncurryThis;
|
|
1098
|
-
var fails$2 = fails$
|
|
1099
|
-
var isCallable$4 = isCallable$
|
|
1116
|
+
var fails$2 = fails$b;
|
|
1117
|
+
var isCallable$4 = isCallable$h;
|
|
1100
1118
|
var classof$1 = classof$2;
|
|
1101
1119
|
var getBuiltIn$3 = getBuiltIn$8;
|
|
1102
1120
|
var inspectSource$1 = inspectSource$4;
|
|
@@ -1147,16 +1165,15 @@ var isConstructor$1 = !construct || fails$2(function () {
|
|
|
1147
1165
|
|| called;
|
|
1148
1166
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1149
1167
|
|
|
1150
|
-
var global$b = global$A;
|
|
1151
1168
|
var isConstructor = isConstructor$1;
|
|
1152
1169
|
var tryToString$2 = tryToString$4;
|
|
1153
1170
|
|
|
1154
|
-
var TypeError$
|
|
1171
|
+
var $TypeError$3 = TypeError;
|
|
1155
1172
|
|
|
1156
1173
|
// `Assert: IsConstructor(argument) is true`
|
|
1157
1174
|
var aConstructor$1 = function (argument) {
|
|
1158
1175
|
if (isConstructor(argument)) return argument;
|
|
1159
|
-
throw TypeError$
|
|
1176
|
+
throw $TypeError$3(tryToString$2(argument) + ' is not a constructor');
|
|
1160
1177
|
};
|
|
1161
1178
|
|
|
1162
1179
|
var anObject$4 = anObject$8;
|
|
@@ -1206,12 +1223,10 @@ var uncurryThis$1 = functionUncurryThis;
|
|
|
1206
1223
|
|
|
1207
1224
|
var arraySlice$1 = uncurryThis$1([].slice);
|
|
1208
1225
|
|
|
1209
|
-
var
|
|
1210
|
-
|
|
1211
|
-
var TypeError$4 = global$a.TypeError;
|
|
1226
|
+
var $TypeError$2 = TypeError;
|
|
1212
1227
|
|
|
1213
1228
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
1214
|
-
if (passed < required) throw TypeError$
|
|
1229
|
+
if (passed < required) throw $TypeError$2('Not enough arguments');
|
|
1215
1230
|
return passed;
|
|
1216
1231
|
};
|
|
1217
1232
|
|
|
@@ -1219,26 +1234,26 @@ var userAgent$2 = engineUserAgent;
|
|
|
1219
1234
|
|
|
1220
1235
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1221
1236
|
|
|
1222
|
-
var global$
|
|
1237
|
+
var global$7 = global$i;
|
|
1223
1238
|
var apply = functionApply;
|
|
1224
1239
|
var bind$3 = functionBindContext;
|
|
1225
|
-
var isCallable$3 = isCallable$
|
|
1240
|
+
var isCallable$3 = isCallable$h;
|
|
1226
1241
|
var hasOwn = hasOwnProperty_1;
|
|
1227
|
-
var fails$1 = fails$
|
|
1242
|
+
var fails$1 = fails$b;
|
|
1228
1243
|
var html = html$1;
|
|
1229
1244
|
var arraySlice = arraySlice$1;
|
|
1230
1245
|
var createElement = documentCreateElement;
|
|
1231
1246
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
1232
1247
|
var IS_IOS$1 = engineIsIos;
|
|
1233
|
-
var IS_NODE$
|
|
1234
|
-
|
|
1235
|
-
var set = global$
|
|
1236
|
-
var clear = global$
|
|
1237
|
-
var process$3 = global$
|
|
1238
|
-
var Dispatch = global$
|
|
1239
|
-
var Function$1 = global$
|
|
1240
|
-
var MessageChannel = global$
|
|
1241
|
-
var String$1 = global$
|
|
1248
|
+
var IS_NODE$3 = engineIsNode;
|
|
1249
|
+
|
|
1250
|
+
var set = global$7.setImmediate;
|
|
1251
|
+
var clear = global$7.clearImmediate;
|
|
1252
|
+
var process$3 = global$7.process;
|
|
1253
|
+
var Dispatch = global$7.Dispatch;
|
|
1254
|
+
var Function$1 = global$7.Function;
|
|
1255
|
+
var MessageChannel = global$7.MessageChannel;
|
|
1256
|
+
var String$1 = global$7.String;
|
|
1242
1257
|
var counter = 0;
|
|
1243
1258
|
var queue$1 = {};
|
|
1244
1259
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
@@ -1246,7 +1261,7 @@ var location, defer, channel, port;
|
|
|
1246
1261
|
|
|
1247
1262
|
try {
|
|
1248
1263
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
1249
|
-
location = global$
|
|
1264
|
+
location = global$7.location;
|
|
1250
1265
|
} catch (error) { /* empty */ }
|
|
1251
1266
|
|
|
1252
1267
|
var run = function (id) {
|
|
@@ -1269,7 +1284,7 @@ var listener = function (event) {
|
|
|
1269
1284
|
|
|
1270
1285
|
var post = function (id) {
|
|
1271
1286
|
// old engines have not location.origin
|
|
1272
|
-
global$
|
|
1287
|
+
global$7.postMessage(String$1(id), location.protocol + '//' + location.host);
|
|
1273
1288
|
};
|
|
1274
1289
|
|
|
1275
1290
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -1288,7 +1303,7 @@ if (!set || !clear) {
|
|
|
1288
1303
|
delete queue$1[id];
|
|
1289
1304
|
};
|
|
1290
1305
|
// Node.js 0.8-
|
|
1291
|
-
if (IS_NODE$
|
|
1306
|
+
if (IS_NODE$3) {
|
|
1292
1307
|
defer = function (id) {
|
|
1293
1308
|
process$3.nextTick(runner(id));
|
|
1294
1309
|
};
|
|
@@ -1307,14 +1322,14 @@ if (!set || !clear) {
|
|
|
1307
1322
|
// Browsers with postMessage, skip WebWorkers
|
|
1308
1323
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
1309
1324
|
} else if (
|
|
1310
|
-
global$
|
|
1311
|
-
isCallable$3(global$
|
|
1312
|
-
!global$
|
|
1325
|
+
global$7.addEventListener &&
|
|
1326
|
+
isCallable$3(global$7.postMessage) &&
|
|
1327
|
+
!global$7.importScripts &&
|
|
1313
1328
|
location && location.protocol !== 'file:' &&
|
|
1314
1329
|
!fails$1(post)
|
|
1315
1330
|
) {
|
|
1316
1331
|
defer = post;
|
|
1317
|
-
global$
|
|
1332
|
+
global$7.addEventListener('message', listener, false);
|
|
1318
1333
|
// IE8-
|
|
1319
1334
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
1320
1335
|
defer = function (id) {
|
|
@@ -1337,29 +1352,29 @@ var task$1 = {
|
|
|
1337
1352
|
};
|
|
1338
1353
|
|
|
1339
1354
|
var userAgent$1 = engineUserAgent;
|
|
1340
|
-
var global$
|
|
1355
|
+
var global$6 = global$i;
|
|
1341
1356
|
|
|
1342
|
-
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$
|
|
1357
|
+
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$6.Pebble !== undefined;
|
|
1343
1358
|
|
|
1344
1359
|
var userAgent = engineUserAgent;
|
|
1345
1360
|
|
|
1346
1361
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
1347
1362
|
|
|
1348
|
-
var global$
|
|
1363
|
+
var global$5 = global$i;
|
|
1349
1364
|
var bind$2 = functionBindContext;
|
|
1350
1365
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1351
1366
|
var macrotask = task$1.set;
|
|
1352
1367
|
var IS_IOS = engineIsIos;
|
|
1353
1368
|
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
1354
1369
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
1355
|
-
var IS_NODE$
|
|
1370
|
+
var IS_NODE$2 = engineIsNode;
|
|
1356
1371
|
|
|
1357
|
-
var MutationObserver = global$
|
|
1358
|
-
var document$
|
|
1359
|
-
var process$2 = global$
|
|
1360
|
-
var Promise$1 = global$
|
|
1372
|
+
var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
|
|
1373
|
+
var document$2 = global$5.document;
|
|
1374
|
+
var process$2 = global$5.process;
|
|
1375
|
+
var Promise$1 = global$5.Promise;
|
|
1361
1376
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
1362
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$
|
|
1377
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
|
|
1363
1378
|
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
1364
1379
|
|
|
1365
1380
|
var flush, head, last, notify$1, toggle, node, promise, then;
|
|
@@ -1368,7 +1383,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
|
|
|
1368
1383
|
if (!queueMicrotask) {
|
|
1369
1384
|
flush = function () {
|
|
1370
1385
|
var parent, fn;
|
|
1371
|
-
if (IS_NODE$
|
|
1386
|
+
if (IS_NODE$2 && (parent = process$2.domain)) parent.exit();
|
|
1372
1387
|
while (head) {
|
|
1373
1388
|
fn = head.fn;
|
|
1374
1389
|
head = head.next;
|
|
@@ -1385,9 +1400,9 @@ if (!queueMicrotask) {
|
|
|
1385
1400
|
|
|
1386
1401
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
1387
1402
|
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
1388
|
-
if (!IS_IOS && !IS_NODE$
|
|
1403
|
+
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
1389
1404
|
toggle = true;
|
|
1390
|
-
node = document$
|
|
1405
|
+
node = document$2.createTextNode('');
|
|
1391
1406
|
new MutationObserver(flush).observe(node, { characterData: true });
|
|
1392
1407
|
notify$1 = function () {
|
|
1393
1408
|
node.data = toggle = !toggle;
|
|
@@ -1403,7 +1418,7 @@ if (!queueMicrotask) {
|
|
|
1403
1418
|
then(flush);
|
|
1404
1419
|
};
|
|
1405
1420
|
// Node.js without promises
|
|
1406
|
-
} else if (IS_NODE$
|
|
1421
|
+
} else if (IS_NODE$2) {
|
|
1407
1422
|
notify$1 = function () {
|
|
1408
1423
|
process$2.nextTick(flush);
|
|
1409
1424
|
};
|
|
@@ -1415,7 +1430,7 @@ if (!queueMicrotask) {
|
|
|
1415
1430
|
// - setTimeout
|
|
1416
1431
|
} else {
|
|
1417
1432
|
// strange IE + webpack dev server bug - use .bind(global)
|
|
1418
|
-
macrotask = bind$2(macrotask, global$
|
|
1433
|
+
macrotask = bind$2(macrotask, global$5);
|
|
1419
1434
|
notify$1 = function () {
|
|
1420
1435
|
macrotask(flush);
|
|
1421
1436
|
};
|
|
@@ -1431,10 +1446,10 @@ var microtask$1 = queueMicrotask || function (fn) {
|
|
|
1431
1446
|
} last = task;
|
|
1432
1447
|
};
|
|
1433
1448
|
|
|
1434
|
-
var global$
|
|
1449
|
+
var global$4 = global$i;
|
|
1435
1450
|
|
|
1436
1451
|
var hostReportErrors$1 = function (a, b) {
|
|
1437
|
-
var console = global$
|
|
1452
|
+
var console = global$4.console;
|
|
1438
1453
|
if (console && console.error) {
|
|
1439
1454
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
1440
1455
|
}
|
|
@@ -1472,25 +1487,35 @@ Queue$1.prototype = {
|
|
|
1472
1487
|
|
|
1473
1488
|
var queue = Queue$1;
|
|
1474
1489
|
|
|
1475
|
-
var global$
|
|
1490
|
+
var global$3 = global$i;
|
|
1491
|
+
|
|
1492
|
+
var promiseNativeConstructor = global$3.Promise;
|
|
1476
1493
|
|
|
1477
|
-
|
|
1494
|
+
/* global Deno -- Deno case */
|
|
1478
1495
|
|
|
1479
|
-
var
|
|
1496
|
+
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
1480
1497
|
|
|
1481
|
-
var
|
|
1498
|
+
var IS_DENO$1 = engineIsDeno;
|
|
1499
|
+
var IS_NODE$1 = engineIsNode;
|
|
1500
|
+
|
|
1501
|
+
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
1502
|
+
&& typeof window == 'object'
|
|
1503
|
+
&& typeof document == 'object';
|
|
1504
|
+
|
|
1505
|
+
var global$2 = global$i;
|
|
1482
1506
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
1483
|
-
var isCallable$2 = isCallable$
|
|
1507
|
+
var isCallable$2 = isCallable$h;
|
|
1484
1508
|
var isForced = isForced_1;
|
|
1485
1509
|
var inspectSource = inspectSource$4;
|
|
1486
1510
|
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
1487
1511
|
var IS_BROWSER = engineIsBrowser;
|
|
1512
|
+
var IS_DENO = engineIsDeno;
|
|
1488
1513
|
var V8_VERSION = engineV8Version;
|
|
1489
1514
|
|
|
1490
1515
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
1491
1516
|
var SPECIES = wellKnownSymbol$3('species');
|
|
1492
1517
|
var SUBCLASSING = false;
|
|
1493
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$
|
|
1518
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
|
|
1494
1519
|
|
|
1495
1520
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
1496
1521
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -1502,18 +1527,18 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
|
1502
1527
|
// We can't use @@species feature detection in V8 since it causes
|
|
1503
1528
|
// deoptimization and performance degradation
|
|
1504
1529
|
// https://github.com/zloirock/core-js/issues/679
|
|
1505
|
-
if (V8_VERSION
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1530
|
+
if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
|
|
1531
|
+
// Detect correctness of subclassing with @@species support
|
|
1532
|
+
var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
|
|
1533
|
+
var FakePromise = function (exec) {
|
|
1534
|
+
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
1535
|
+
};
|
|
1536
|
+
var constructor = promise.constructor = {};
|
|
1537
|
+
constructor[SPECIES] = FakePromise;
|
|
1538
|
+
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
1539
|
+
if (!SUBCLASSING) return true;
|
|
1515
1540
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
1516
|
-
return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
1541
|
+
} return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
|
|
1517
1542
|
});
|
|
1518
1543
|
|
|
1519
1544
|
var promiseConstructorDetection = {
|
|
@@ -1545,15 +1570,14 @@ newPromiseCapability$2.f = function (C) {
|
|
|
1545
1570
|
|
|
1546
1571
|
var $$6 = _export;
|
|
1547
1572
|
var IS_NODE = engineIsNode;
|
|
1548
|
-
var global$
|
|
1573
|
+
var global$1 = global$i;
|
|
1549
1574
|
var call$7 = functionCall;
|
|
1550
|
-
var
|
|
1551
|
-
var redefineAll = redefineAll$1;
|
|
1575
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1552
1576
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1553
1577
|
var setToStringTag = setToStringTag$1;
|
|
1554
1578
|
var setSpecies = setSpecies$1;
|
|
1555
1579
|
var aCallable$3 = aCallable$7;
|
|
1556
|
-
var isCallable$1 = isCallable$
|
|
1580
|
+
var isCallable$1 = isCallable$h;
|
|
1557
1581
|
var isObject$1 = isObject$7;
|
|
1558
1582
|
var anInstance = anInstance$1;
|
|
1559
1583
|
var speciesConstructor = speciesConstructor$1;
|
|
@@ -1576,13 +1600,13 @@ var setInternalState = InternalStateModule.set;
|
|
|
1576
1600
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
1577
1601
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
1578
1602
|
var PromisePrototype = NativePromisePrototype$1;
|
|
1579
|
-
var TypeError$
|
|
1580
|
-
var document = global$
|
|
1581
|
-
var process$1 = global$
|
|
1603
|
+
var TypeError$1 = global$1.TypeError;
|
|
1604
|
+
var document$1 = global$1.document;
|
|
1605
|
+
var process$1 = global$1.process;
|
|
1582
1606
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
1583
1607
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
1584
1608
|
|
|
1585
|
-
var DISPATCH_EVENT = !!(document && document.createEvent && global$
|
|
1609
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
|
|
1586
1610
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
1587
1611
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
1588
1612
|
var PENDING = 0;
|
|
@@ -1623,7 +1647,7 @@ var callReaction = function (reaction, state) {
|
|
|
1623
1647
|
}
|
|
1624
1648
|
}
|
|
1625
1649
|
if (result === reaction.promise) {
|
|
1626
|
-
reject(TypeError$
|
|
1650
|
+
reject(TypeError$1('Promise-chain cycle'));
|
|
1627
1651
|
} else if (then = isThenable(result)) {
|
|
1628
1652
|
call$7(then, result, resolve, reject);
|
|
1629
1653
|
} else resolve(result);
|
|
@@ -1651,18 +1675,18 @@ var notify = function (state, isReject) {
|
|
|
1651
1675
|
var dispatchEvent = function (name, promise, reason) {
|
|
1652
1676
|
var event, handler;
|
|
1653
1677
|
if (DISPATCH_EVENT) {
|
|
1654
|
-
event = document.createEvent('Event');
|
|
1678
|
+
event = document$1.createEvent('Event');
|
|
1655
1679
|
event.promise = promise;
|
|
1656
1680
|
event.reason = reason;
|
|
1657
1681
|
event.initEvent(name, false, true);
|
|
1658
|
-
global$
|
|
1682
|
+
global$1.dispatchEvent(event);
|
|
1659
1683
|
} else event = { promise: promise, reason: reason };
|
|
1660
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
1684
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
|
|
1661
1685
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
1662
1686
|
};
|
|
1663
1687
|
|
|
1664
1688
|
var onUnhandled = function (state) {
|
|
1665
|
-
call$7(task, global$
|
|
1689
|
+
call$7(task, global$1, function () {
|
|
1666
1690
|
var promise = state.facade;
|
|
1667
1691
|
var value = state.value;
|
|
1668
1692
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -1685,7 +1709,7 @@ var isUnhandled = function (state) {
|
|
|
1685
1709
|
};
|
|
1686
1710
|
|
|
1687
1711
|
var onHandleUnhandled = function (state) {
|
|
1688
|
-
call$7(task, global$
|
|
1712
|
+
call$7(task, global$1, function () {
|
|
1689
1713
|
var promise = state.facade;
|
|
1690
1714
|
if (IS_NODE) {
|
|
1691
1715
|
process$1.emit('rejectionHandled', promise);
|
|
@@ -1713,7 +1737,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
1713
1737
|
state.done = true;
|
|
1714
1738
|
if (unwrap) state = unwrap;
|
|
1715
1739
|
try {
|
|
1716
|
-
if (state.facade === value) throw TypeError$
|
|
1740
|
+
if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
|
|
1717
1741
|
var then = isThenable(value);
|
|
1718
1742
|
if (then) {
|
|
1719
1743
|
microtask(function () {
|
|
@@ -1768,23 +1792,20 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1768
1792
|
});
|
|
1769
1793
|
};
|
|
1770
1794
|
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
});
|
|
1786
|
-
return reaction.promise;
|
|
1787
|
-
}
|
|
1795
|
+
// `Promise.prototype.then` method
|
|
1796
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
1797
|
+
Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
1798
|
+
var state = getInternalPromiseState(this);
|
|
1799
|
+
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
1800
|
+
state.parent = true;
|
|
1801
|
+
reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
|
|
1802
|
+
reaction.fail = isCallable$1(onRejected) && onRejected;
|
|
1803
|
+
reaction.domain = IS_NODE ? process$1.domain : undefined;
|
|
1804
|
+
if (state.state == PENDING) state.reactions.add(reaction);
|
|
1805
|
+
else microtask(function () {
|
|
1806
|
+
callReaction(reaction, state);
|
|
1807
|
+
});
|
|
1808
|
+
return reaction.promise;
|
|
1788
1809
|
});
|
|
1789
1810
|
|
|
1790
1811
|
OwnPromiseCapability = function () {
|
|
@@ -1806,7 +1827,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1806
1827
|
|
|
1807
1828
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
1808
1829
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
1809
|
-
|
|
1830
|
+
defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
1810
1831
|
var that = this;
|
|
1811
1832
|
return new PromiseConstructor(function (resolve, reject) {
|
|
1812
1833
|
call$7(nativeThen, that, resolve, reject);
|
|
@@ -1827,7 +1848,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
1827
1848
|
}
|
|
1828
1849
|
}
|
|
1829
1850
|
|
|
1830
|
-
$$6({ global: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
1851
|
+
$$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
1831
1852
|
Promise: PromiseConstructor
|
|
1832
1853
|
});
|
|
1833
1854
|
|
|
@@ -1860,19 +1881,18 @@ var getIteratorMethod$2 = function (it) {
|
|
|
1860
1881
|
|| Iterators[classof(it)];
|
|
1861
1882
|
};
|
|
1862
1883
|
|
|
1863
|
-
var global$2 = global$A;
|
|
1864
1884
|
var call$6 = functionCall;
|
|
1865
1885
|
var aCallable$2 = aCallable$7;
|
|
1866
1886
|
var anObject$3 = anObject$8;
|
|
1867
1887
|
var tryToString$1 = tryToString$4;
|
|
1868
1888
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1869
1889
|
|
|
1870
|
-
var TypeError$
|
|
1890
|
+
var $TypeError$1 = TypeError;
|
|
1871
1891
|
|
|
1872
1892
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1873
1893
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1874
1894
|
if (aCallable$2(iteratorMethod)) return anObject$3(call$6(iteratorMethod, argument));
|
|
1875
|
-
throw TypeError$
|
|
1895
|
+
throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
|
|
1876
1896
|
};
|
|
1877
1897
|
|
|
1878
1898
|
var call$5 = functionCall;
|
|
@@ -1899,7 +1919,6 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
1899
1919
|
return value;
|
|
1900
1920
|
};
|
|
1901
1921
|
|
|
1902
|
-
var global$1 = global$A;
|
|
1903
1922
|
var bind = functionBindContext;
|
|
1904
1923
|
var call$4 = functionCall;
|
|
1905
1924
|
var anObject$1 = anObject$8;
|
|
@@ -1911,7 +1930,7 @@ var getIterator = getIterator$1;
|
|
|
1911
1930
|
var getIteratorMethod = getIteratorMethod$2;
|
|
1912
1931
|
var iteratorClose = iteratorClose$1;
|
|
1913
1932
|
|
|
1914
|
-
var TypeError
|
|
1933
|
+
var $TypeError = TypeError;
|
|
1915
1934
|
|
|
1916
1935
|
var Result = function (stopped, result) {
|
|
1917
1936
|
this.stopped = stopped;
|
|
@@ -1923,6 +1942,7 @@ var ResultPrototype = Result.prototype;
|
|
|
1923
1942
|
var iterate$2 = function (iterable, unboundFunction, options) {
|
|
1924
1943
|
var that = options && options.that;
|
|
1925
1944
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1945
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1926
1946
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1927
1947
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1928
1948
|
var fn = bind(unboundFunction, that);
|
|
@@ -1940,11 +1960,13 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
1940
1960
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1941
1961
|
};
|
|
1942
1962
|
|
|
1943
|
-
if (
|
|
1963
|
+
if (IS_RECORD) {
|
|
1964
|
+
iterator = iterable.iterator;
|
|
1965
|
+
} else if (IS_ITERATOR) {
|
|
1944
1966
|
iterator = iterable;
|
|
1945
1967
|
} else {
|
|
1946
1968
|
iterFn = getIteratorMethod(iterable);
|
|
1947
|
-
if (!iterFn) throw TypeError
|
|
1969
|
+
if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
|
|
1948
1970
|
// optimisation for array iterators
|
|
1949
1971
|
if (isArrayIteratorMethod(iterFn)) {
|
|
1950
1972
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
@@ -1955,7 +1977,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
1955
1977
|
iterator = getIterator(iterable, iterFn);
|
|
1956
1978
|
}
|
|
1957
1979
|
|
|
1958
|
-
next = iterator.next;
|
|
1980
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1959
1981
|
while (!(step = call$4(next, iterator)).done) {
|
|
1960
1982
|
try {
|
|
1961
1983
|
result = callFn(step.value);
|
|
@@ -2056,8 +2078,8 @@ var $$4 = _export;
|
|
|
2056
2078
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2057
2079
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2058
2080
|
var getBuiltIn$1 = getBuiltIn$8;
|
|
2059
|
-
var isCallable = isCallable$
|
|
2060
|
-
var
|
|
2081
|
+
var isCallable = isCallable$h;
|
|
2082
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
2061
2083
|
|
|
2062
2084
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2063
2085
|
|
|
@@ -2073,7 +2095,7 @@ $$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real
|
|
|
2073
2095
|
if (isCallable(NativePromiseConstructor)) {
|
|
2074
2096
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
2075
2097
|
if (NativePromisePrototype['catch'] !== method) {
|
|
2076
|
-
|
|
2098
|
+
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2077
2099
|
}
|
|
2078
2100
|
}
|
|
2079
2101
|
|
|
@@ -2159,7 +2181,7 @@ var objectKeys$1 = Object.keys || function keys(O) {
|
|
|
2159
2181
|
var DESCRIPTORS = descriptors;
|
|
2160
2182
|
var uncurryThis = functionUncurryThis;
|
|
2161
2183
|
var call = functionCall;
|
|
2162
|
-
var fails = fails$
|
|
2184
|
+
var fails = fails$b;
|
|
2163
2185
|
var objectKeys = objectKeys$1;
|
|
2164
2186
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2165
2187
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -2219,7 +2241,7 @@ var assign = objectAssign;
|
|
|
2219
2241
|
// `Object.assign` method
|
|
2220
2242
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2221
2243
|
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
|
2222
|
-
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
2244
|
+
$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
2223
2245
|
assign: assign
|
|
2224
2246
|
});
|
|
2225
2247
|
|
|
@@ -2333,6 +2355,7 @@ const mockEnvironmentContext = {
|
|
|
2333
2355
|
twilioUrl: "",
|
|
2334
2356
|
graphqlLegacyUrl: "",
|
|
2335
2357
|
graphqlManagerUrl: "",
|
|
2358
|
+
graphqlManagerImageUploadUrl: "",
|
|
2336
2359
|
graphqlReportUrl: "",
|
|
2337
2360
|
graphqlSimulatorUrl: "",
|
|
2338
2361
|
buildVersion: "",
|