@vention/machine-apps-components 0.6.20 → 0.6.21
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 +1112 -728
- package/package.json +3 -3
package/index.esm.js
CHANGED
|
@@ -35,7 +35,7 @@ var globalThis_1 =
|
|
|
35
35
|
|
|
36
36
|
var objectGetOwnPropertyDescriptor = {};
|
|
37
37
|
|
|
38
|
-
var fails$
|
|
38
|
+
var fails$s = function (exec) {
|
|
39
39
|
try {
|
|
40
40
|
return !!exec();
|
|
41
41
|
} catch (error) {
|
|
@@ -43,44 +43,44 @@ var fails$q = function (exec) {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
var fails$
|
|
46
|
+
var fails$r = fails$s;
|
|
47
47
|
|
|
48
48
|
// Detect IE8's incomplete defineProperty implementation
|
|
49
|
-
var descriptors = !fails$
|
|
49
|
+
var descriptors = !fails$r(function () {
|
|
50
50
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
51
51
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
var fails$
|
|
54
|
+
var fails$q = fails$s;
|
|
55
55
|
|
|
56
|
-
var functionBindNative = !fails$
|
|
56
|
+
var functionBindNative = !fails$q(function () {
|
|
57
57
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
58
|
-
var test =
|
|
58
|
+
var test = function () { /* empty */ }.bind();
|
|
59
59
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
60
60
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
var NATIVE_BIND$3 = functionBindNative;
|
|
64
64
|
|
|
65
|
-
var call$
|
|
66
|
-
|
|
67
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
68
|
-
return call$
|
|
65
|
+
var call$s = Function.prototype.call;
|
|
66
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
67
|
+
var functionCall = NATIVE_BIND$3 ? call$s.bind(call$s) : function () {
|
|
68
|
+
return call$s.apply(call$s, arguments);
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
var objectPropertyIsEnumerable = {};
|
|
72
72
|
|
|
73
73
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
74
74
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
75
|
-
var getOwnPropertyDescriptor$
|
|
75
|
+
var getOwnPropertyDescriptor$5 = Object.getOwnPropertyDescriptor;
|
|
76
76
|
|
|
77
77
|
// Nashorn ~ JDK8 bug
|
|
78
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
78
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$5 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
79
79
|
|
|
80
80
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
81
81
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
82
82
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
83
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
83
|
+
var descriptor = getOwnPropertyDescriptor$5(this, V);
|
|
84
84
|
return !!descriptor && descriptor.enumerable;
|
|
85
85
|
} : $propertyIsEnumerable;
|
|
86
86
|
|
|
@@ -96,12 +96,13 @@ var createPropertyDescriptor$6 = function (bitmap, value) {
|
|
|
96
96
|
var NATIVE_BIND$2 = functionBindNative;
|
|
97
97
|
|
|
98
98
|
var FunctionPrototype$2 = Function.prototype;
|
|
99
|
-
var call$
|
|
100
|
-
|
|
99
|
+
var call$r = FunctionPrototype$2.call;
|
|
100
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
101
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$r, call$r);
|
|
101
102
|
|
|
102
103
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
103
104
|
return function () {
|
|
104
|
-
return call$
|
|
105
|
+
return call$r.apply(fn, arguments);
|
|
105
106
|
};
|
|
106
107
|
};
|
|
107
108
|
|
|
@@ -115,35 +116,35 @@ var classofRaw$2 = function (it) {
|
|
|
115
116
|
};
|
|
116
117
|
|
|
117
118
|
var uncurryThis$z = functionUncurryThis;
|
|
118
|
-
var fails$
|
|
119
|
-
var classof$
|
|
119
|
+
var fails$p = fails$s;
|
|
120
|
+
var classof$9 = classofRaw$2;
|
|
120
121
|
|
|
121
122
|
var $Object$4 = Object;
|
|
122
123
|
var split$3 = uncurryThis$z(''.split);
|
|
123
124
|
|
|
124
125
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
125
|
-
var indexedObject = fails$
|
|
126
|
+
var indexedObject = fails$p(function () {
|
|
126
127
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
127
128
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
128
129
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
129
130
|
}) ? function (it) {
|
|
130
|
-
return classof$
|
|
131
|
+
return classof$9(it) === 'String' ? split$3(it, '') : $Object$4(it);
|
|
131
132
|
} : $Object$4;
|
|
132
133
|
|
|
133
134
|
// we can't use just `it == null` since of `document.all` special case
|
|
134
135
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
135
|
-
var isNullOrUndefined$
|
|
136
|
+
var isNullOrUndefined$4 = function (it) {
|
|
136
137
|
return it === null || it === undefined;
|
|
137
138
|
};
|
|
138
139
|
|
|
139
|
-
var isNullOrUndefined$
|
|
140
|
+
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
140
141
|
|
|
141
|
-
var $TypeError$
|
|
142
|
+
var $TypeError$h = TypeError;
|
|
142
143
|
|
|
143
144
|
// `RequireObjectCoercible` abstract operation
|
|
144
145
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
145
146
|
var requireObjectCoercible$b = function (it) {
|
|
146
|
-
if (isNullOrUndefined$
|
|
147
|
+
if (isNullOrUndefined$3(it)) throw new $TypeError$h("Can't call method on " + it);
|
|
147
148
|
return it;
|
|
148
149
|
};
|
|
149
150
|
|
|
@@ -169,11 +170,11 @@ var isCallable$p = typeof documentAll == 'undefined' && documentAll !== undefine
|
|
|
169
170
|
|
|
170
171
|
var isCallable$o = isCallable$p;
|
|
171
172
|
|
|
172
|
-
var isObject$
|
|
173
|
+
var isObject$f = function (it) {
|
|
173
174
|
return typeof it == 'object' ? it !== null : isCallable$o(it);
|
|
174
175
|
};
|
|
175
176
|
|
|
176
|
-
var globalThis$
|
|
177
|
+
var globalThis$u = globalThis_1;
|
|
177
178
|
var isCallable$n = isCallable$p;
|
|
178
179
|
|
|
179
180
|
var aFunction = function (argument) {
|
|
@@ -181,25 +182,25 @@ var aFunction = function (argument) {
|
|
|
181
182
|
};
|
|
182
183
|
|
|
183
184
|
var getBuiltIn$a = function (namespace, method) {
|
|
184
|
-
return arguments.length < 2 ? aFunction(globalThis$
|
|
185
|
+
return arguments.length < 2 ? aFunction(globalThis$u[namespace]) : globalThis$u[namespace] && globalThis$u[namespace][method];
|
|
185
186
|
};
|
|
186
187
|
|
|
187
188
|
var uncurryThis$y = functionUncurryThis;
|
|
188
189
|
|
|
189
190
|
var objectIsPrototypeOf = uncurryThis$y({}.isPrototypeOf);
|
|
190
191
|
|
|
191
|
-
var globalThis$
|
|
192
|
+
var globalThis$t = globalThis_1;
|
|
192
193
|
|
|
193
|
-
var navigator$1 = globalThis$
|
|
194
|
+
var navigator$1 = globalThis$t.navigator;
|
|
194
195
|
var userAgent$6 = navigator$1 && navigator$1.userAgent;
|
|
195
196
|
|
|
196
197
|
var environmentUserAgent = userAgent$6 ? String(userAgent$6) : '';
|
|
197
198
|
|
|
198
|
-
var globalThis$
|
|
199
|
+
var globalThis$s = globalThis_1;
|
|
199
200
|
var userAgent$5 = environmentUserAgent;
|
|
200
201
|
|
|
201
|
-
var process$3 = globalThis$
|
|
202
|
-
var Deno$1 = globalThis$
|
|
202
|
+
var process$3 = globalThis$s.process;
|
|
203
|
+
var Deno$1 = globalThis$s.Deno;
|
|
203
204
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
204
205
|
var v8 = versions && versions.v8;
|
|
205
206
|
var match, version;
|
|
@@ -225,13 +226,13 @@ var environmentV8Version = version;
|
|
|
225
226
|
|
|
226
227
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
227
228
|
var V8_VERSION$1 = environmentV8Version;
|
|
228
|
-
var fails$
|
|
229
|
-
var globalThis$
|
|
229
|
+
var fails$o = fails$s;
|
|
230
|
+
var globalThis$r = globalThis_1;
|
|
230
231
|
|
|
231
|
-
var $String$6 = globalThis$
|
|
232
|
+
var $String$6 = globalThis$r.String;
|
|
232
233
|
|
|
233
234
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
234
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
235
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$o(function () {
|
|
235
236
|
var symbol = Symbol('symbol detection');
|
|
236
237
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
237
238
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -245,9 +246,9 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$m(func
|
|
|
245
246
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
246
247
|
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
|
247
248
|
|
|
248
|
-
var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
var useSymbolAsUid = NATIVE_SYMBOL$2 &&
|
|
250
|
+
!Symbol.sham &&
|
|
251
|
+
typeof Symbol.iterator == 'symbol';
|
|
251
252
|
|
|
252
253
|
var getBuiltIn$9 = getBuiltIn$a;
|
|
253
254
|
var isCallable$m = isCallable$p;
|
|
@@ -276,68 +277,68 @@ var tryToString$4 = function (argument) {
|
|
|
276
277
|
var isCallable$l = isCallable$p;
|
|
277
278
|
var tryToString$3 = tryToString$4;
|
|
278
279
|
|
|
279
|
-
var $TypeError$
|
|
280
|
+
var $TypeError$g = TypeError;
|
|
280
281
|
|
|
281
282
|
// `Assert: IsCallable(argument) is true`
|
|
282
283
|
var aCallable$c = function (argument) {
|
|
283
284
|
if (isCallable$l(argument)) return argument;
|
|
284
|
-
throw new $TypeError$
|
|
285
|
+
throw new $TypeError$g(tryToString$3(argument) + ' is not a function');
|
|
285
286
|
};
|
|
286
287
|
|
|
287
288
|
var aCallable$b = aCallable$c;
|
|
288
|
-
var isNullOrUndefined$
|
|
289
|
+
var isNullOrUndefined$2 = isNullOrUndefined$4;
|
|
289
290
|
|
|
290
291
|
// `GetMethod` abstract operation
|
|
291
292
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
292
293
|
var getMethod$5 = function (V, P) {
|
|
293
294
|
var func = V[P];
|
|
294
|
-
return isNullOrUndefined$
|
|
295
|
+
return isNullOrUndefined$2(func) ? undefined : aCallable$b(func);
|
|
295
296
|
};
|
|
296
297
|
|
|
297
|
-
var call$
|
|
298
|
+
var call$q = functionCall;
|
|
298
299
|
var isCallable$k = isCallable$p;
|
|
299
|
-
var isObject$
|
|
300
|
+
var isObject$e = isObject$f;
|
|
300
301
|
|
|
301
|
-
var $TypeError$
|
|
302
|
+
var $TypeError$f = TypeError;
|
|
302
303
|
|
|
303
304
|
// `OrdinaryToPrimitive` abstract operation
|
|
304
305
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
305
306
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
306
307
|
var fn, val;
|
|
307
|
-
if (pref === 'string' && isCallable$k(fn = input.toString) && !isObject$
|
|
308
|
-
if (isCallable$k(fn = input.valueOf) && !isObject$
|
|
309
|
-
if (pref !== 'string' && isCallable$k(fn = input.toString) && !isObject$
|
|
310
|
-
throw new $TypeError$
|
|
308
|
+
if (pref === 'string' && isCallable$k(fn = input.toString) && !isObject$e(val = call$q(fn, input))) return val;
|
|
309
|
+
if (isCallable$k(fn = input.valueOf) && !isObject$e(val = call$q(fn, input))) return val;
|
|
310
|
+
if (pref !== 'string' && isCallable$k(fn = input.toString) && !isObject$e(val = call$q(fn, input))) return val;
|
|
311
|
+
throw new $TypeError$f("Can't convert object to primitive value");
|
|
311
312
|
};
|
|
312
313
|
|
|
313
314
|
var sharedStore = {exports: {}};
|
|
314
315
|
|
|
315
316
|
var isPure = false;
|
|
316
317
|
|
|
317
|
-
var globalThis$
|
|
318
|
+
var globalThis$q = globalThis_1;
|
|
318
319
|
|
|
319
320
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
320
321
|
var defineProperty$7 = Object.defineProperty;
|
|
321
322
|
|
|
322
323
|
var defineGlobalProperty$3 = function (key, value) {
|
|
323
324
|
try {
|
|
324
|
-
defineProperty$7(globalThis$
|
|
325
|
+
defineProperty$7(globalThis$q, key, { value: value, configurable: true, writable: true });
|
|
325
326
|
} catch (error) {
|
|
326
|
-
globalThis$
|
|
327
|
+
globalThis$q[key] = value;
|
|
327
328
|
} return value;
|
|
328
329
|
};
|
|
329
330
|
|
|
330
|
-
var globalThis$
|
|
331
|
+
var globalThis$p = globalThis_1;
|
|
331
332
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
332
333
|
|
|
333
334
|
var SHARED = '__core-js_shared__';
|
|
334
|
-
var store$3 = sharedStore.exports = globalThis$
|
|
335
|
+
var store$3 = sharedStore.exports = globalThis$p[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
335
336
|
|
|
336
337
|
(store$3.versions || (store$3.versions = [])).push({
|
|
337
|
-
version: '3.
|
|
338
|
+
version: '3.49.0',
|
|
338
339
|
mode: 'global',
|
|
339
|
-
copyright: '©
|
|
340
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
340
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
341
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
|
|
341
342
|
source: 'https://github.com/zloirock/core-js'
|
|
342
343
|
});
|
|
343
344
|
|
|
@@ -375,20 +376,20 @@ var uncurryThis$w = functionUncurryThis;
|
|
|
375
376
|
|
|
376
377
|
var id = 0;
|
|
377
378
|
var postfix = Math.random();
|
|
378
|
-
var toString$f = uncurryThis$w(1.
|
|
379
|
+
var toString$f = uncurryThis$w(1.1.toString);
|
|
379
380
|
|
|
380
381
|
var uid$2 = function (key) {
|
|
381
382
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$f(++id + postfix, 36);
|
|
382
383
|
};
|
|
383
384
|
|
|
384
|
-
var globalThis$
|
|
385
|
+
var globalThis$o = globalThis_1;
|
|
385
386
|
var shared$3 = shared$4;
|
|
386
387
|
var hasOwn$f = hasOwnProperty_1;
|
|
387
388
|
var uid$1 = uid$2;
|
|
388
389
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
389
390
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
390
391
|
|
|
391
|
-
var Symbol$1 = globalThis$
|
|
392
|
+
var Symbol$1 = globalThis$o.Symbol;
|
|
392
393
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
393
394
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
394
395
|
|
|
@@ -400,27 +401,27 @@ var wellKnownSymbol$m = function (name) {
|
|
|
400
401
|
} return WellKnownSymbolsStore[name];
|
|
401
402
|
};
|
|
402
403
|
|
|
403
|
-
var call$
|
|
404
|
-
var isObject$
|
|
404
|
+
var call$p = functionCall;
|
|
405
|
+
var isObject$d = isObject$f;
|
|
405
406
|
var isSymbol$1 = isSymbol$2;
|
|
406
407
|
var getMethod$4 = getMethod$5;
|
|
407
408
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
408
409
|
var wellKnownSymbol$l = wellKnownSymbol$m;
|
|
409
410
|
|
|
410
|
-
var $TypeError$
|
|
411
|
+
var $TypeError$e = TypeError;
|
|
411
412
|
var TO_PRIMITIVE = wellKnownSymbol$l('toPrimitive');
|
|
412
413
|
|
|
413
414
|
// `ToPrimitive` abstract operation
|
|
414
415
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
415
416
|
var toPrimitive$1 = function (input, pref) {
|
|
416
|
-
if (!isObject$
|
|
417
|
+
if (!isObject$d(input) || isSymbol$1(input)) return input;
|
|
417
418
|
var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
|
|
418
419
|
var result;
|
|
419
420
|
if (exoticToPrim) {
|
|
420
421
|
if (pref === undefined) pref = 'default';
|
|
421
|
-
result = call$
|
|
422
|
-
if (!isObject$
|
|
423
|
-
throw new $TypeError$
|
|
422
|
+
result = call$p(exoticToPrim, input, pref);
|
|
423
|
+
if (!isObject$d(result) || isSymbol$1(result)) return result;
|
|
424
|
+
throw new $TypeError$e("Can't convert object to primitive value");
|
|
424
425
|
}
|
|
425
426
|
if (pref === undefined) pref = 'number';
|
|
426
427
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -436,31 +437,31 @@ var toPropertyKey$2 = function (argument) {
|
|
|
436
437
|
return isSymbol(key) ? key : key + '';
|
|
437
438
|
};
|
|
438
439
|
|
|
439
|
-
var globalThis$
|
|
440
|
-
var isObject$
|
|
440
|
+
var globalThis$n = globalThis_1;
|
|
441
|
+
var isObject$c = isObject$f;
|
|
441
442
|
|
|
442
|
-
var document$3 = globalThis$
|
|
443
|
+
var document$3 = globalThis$n.document;
|
|
443
444
|
// typeof document.createElement is 'object' in old IE
|
|
444
|
-
var EXISTS$1 = isObject$
|
|
445
|
+
var EXISTS$1 = isObject$c(document$3) && isObject$c(document$3.createElement);
|
|
445
446
|
|
|
446
447
|
var documentCreateElement$2 = function (it) {
|
|
447
448
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
448
449
|
};
|
|
449
450
|
|
|
450
|
-
var DESCRIPTORS$
|
|
451
|
-
var fails$
|
|
451
|
+
var DESCRIPTORS$k = descriptors;
|
|
452
|
+
var fails$n = fails$s;
|
|
452
453
|
var createElement$1 = documentCreateElement$2;
|
|
453
454
|
|
|
454
455
|
// Thanks to IE8 for its funny defineProperty
|
|
455
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
456
|
+
var ie8DomDefine = !DESCRIPTORS$k && !fails$n(function () {
|
|
456
457
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
457
458
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
458
459
|
get: function () { return 7; }
|
|
459
460
|
}).a !== 7;
|
|
460
461
|
});
|
|
461
462
|
|
|
462
|
-
var DESCRIPTORS$
|
|
463
|
-
var call$
|
|
463
|
+
var DESCRIPTORS$j = descriptors;
|
|
464
|
+
var call$o = functionCall;
|
|
464
465
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
465
466
|
var createPropertyDescriptor$5 = createPropertyDescriptor$6;
|
|
466
467
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -473,23 +474,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
473
474
|
|
|
474
475
|
// `Object.getOwnPropertyDescriptor` method
|
|
475
476
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
476
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
477
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$j ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
477
478
|
O = toIndexedObject$4(O);
|
|
478
479
|
P = toPropertyKey$1(P);
|
|
479
480
|
if (IE8_DOM_DEFINE$1) try {
|
|
480
481
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
481
482
|
} catch (error) { /* empty */ }
|
|
482
|
-
if (hasOwn$e(O, P)) return createPropertyDescriptor$5(!call$
|
|
483
|
+
if (hasOwn$e(O, P)) return createPropertyDescriptor$5(!call$o(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
483
484
|
};
|
|
484
485
|
|
|
485
486
|
var objectDefineProperty = {};
|
|
486
487
|
|
|
487
|
-
var DESCRIPTORS$
|
|
488
|
-
var fails$
|
|
488
|
+
var DESCRIPTORS$i = descriptors;
|
|
489
|
+
var fails$m = fails$s;
|
|
489
490
|
|
|
490
491
|
// V8 ~ Chrome 36-
|
|
491
492
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
492
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
493
|
+
var v8PrototypeDefineBug = DESCRIPTORS$i && fails$m(function () {
|
|
493
494
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
494
495
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
495
496
|
value: 42,
|
|
@@ -497,24 +498,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$h && fails$k(function () {
|
|
|
497
498
|
}).prototype !== 42;
|
|
498
499
|
});
|
|
499
500
|
|
|
500
|
-
var isObject$
|
|
501
|
+
var isObject$b = isObject$f;
|
|
501
502
|
|
|
502
503
|
var $String$4 = String;
|
|
503
|
-
var $TypeError$
|
|
504
|
+
var $TypeError$d = TypeError;
|
|
504
505
|
|
|
505
506
|
// `Assert: Type(argument) is Object`
|
|
506
507
|
var anObject$l = function (argument) {
|
|
507
|
-
if (isObject$
|
|
508
|
-
throw new $TypeError$
|
|
508
|
+
if (isObject$b(argument)) return argument;
|
|
509
|
+
throw new $TypeError$d($String$4(argument) + ' is not an object');
|
|
509
510
|
};
|
|
510
511
|
|
|
511
|
-
var DESCRIPTORS$
|
|
512
|
+
var DESCRIPTORS$h = descriptors;
|
|
512
513
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
513
514
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
514
515
|
var anObject$k = anObject$l;
|
|
515
516
|
var toPropertyKey = toPropertyKey$2;
|
|
516
517
|
|
|
517
|
-
var $TypeError$
|
|
518
|
+
var $TypeError$c = TypeError;
|
|
518
519
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
519
520
|
var $defineProperty = Object.defineProperty;
|
|
520
521
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -525,7 +526,7 @@ var WRITABLE = 'writable';
|
|
|
525
526
|
|
|
526
527
|
// `Object.defineProperty` method
|
|
527
528
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
528
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
529
|
+
objectDefineProperty.f = DESCRIPTORS$h ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
529
530
|
anObject$k(O);
|
|
530
531
|
P = toPropertyKey(P);
|
|
531
532
|
anObject$k(Attributes);
|
|
@@ -547,16 +548,16 @@ objectDefineProperty.f = DESCRIPTORS$g ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
547
548
|
if (IE8_DOM_DEFINE) try {
|
|
548
549
|
return $defineProperty(O, P, Attributes);
|
|
549
550
|
} catch (error) { /* empty */ }
|
|
550
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
551
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$c('Accessors not supported');
|
|
551
552
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
552
553
|
return O;
|
|
553
554
|
};
|
|
554
555
|
|
|
555
|
-
var DESCRIPTORS$
|
|
556
|
+
var DESCRIPTORS$g = descriptors;
|
|
556
557
|
var definePropertyModule$4 = objectDefineProperty;
|
|
557
558
|
var createPropertyDescriptor$4 = createPropertyDescriptor$6;
|
|
558
559
|
|
|
559
|
-
var createNonEnumerableProperty$9 = DESCRIPTORS$
|
|
560
|
+
var createNonEnumerableProperty$9 = DESCRIPTORS$g ? function (object, key, value) {
|
|
560
561
|
return definePropertyModule$4.f(object, key, createPropertyDescriptor$4(1, value));
|
|
561
562
|
} : function (object, key, value) {
|
|
562
563
|
object[key] = value;
|
|
@@ -565,17 +566,17 @@ var createNonEnumerableProperty$9 = DESCRIPTORS$f ? function (object, key, value
|
|
|
565
566
|
|
|
566
567
|
var makeBuiltIn$3 = {exports: {}};
|
|
567
568
|
|
|
568
|
-
var DESCRIPTORS$
|
|
569
|
+
var DESCRIPTORS$f = descriptors;
|
|
569
570
|
var hasOwn$d = hasOwnProperty_1;
|
|
570
571
|
|
|
571
572
|
var FunctionPrototype$1 = Function.prototype;
|
|
572
573
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
573
|
-
var getDescriptor = DESCRIPTORS$
|
|
574
|
+
var getDescriptor = DESCRIPTORS$f && Object.getOwnPropertyDescriptor;
|
|
574
575
|
|
|
575
576
|
var EXISTS = hasOwn$d(FunctionPrototype$1, 'name');
|
|
576
577
|
// additional protection from minified / mangled / dropped function names
|
|
577
|
-
var PROPER = EXISTS &&
|
|
578
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
578
|
+
var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
|
|
579
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$f || (DESCRIPTORS$f && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
579
580
|
|
|
580
581
|
var functionName = {
|
|
581
582
|
PROPER: PROPER,
|
|
@@ -597,10 +598,10 @@ if (!isCallable$j(store$1.inspectSource)) {
|
|
|
597
598
|
|
|
598
599
|
var inspectSource$3 = store$1.inspectSource;
|
|
599
600
|
|
|
600
|
-
var globalThis$
|
|
601
|
+
var globalThis$m = globalThis_1;
|
|
601
602
|
var isCallable$i = isCallable$p;
|
|
602
603
|
|
|
603
|
-
var WeakMap$1 = globalThis$
|
|
604
|
+
var WeakMap$1 = globalThis$m.WeakMap;
|
|
604
605
|
|
|
605
606
|
var weakMapBasicDetection = isCallable$i(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
606
607
|
|
|
@@ -616,8 +617,8 @@ var sharedKey$3 = function (key) {
|
|
|
616
617
|
var hiddenKeys$4 = {};
|
|
617
618
|
|
|
618
619
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
619
|
-
var globalThis$
|
|
620
|
-
var isObject$
|
|
620
|
+
var globalThis$l = globalThis_1;
|
|
621
|
+
var isObject$a = isObject$f;
|
|
621
622
|
var createNonEnumerableProperty$8 = createNonEnumerableProperty$9;
|
|
622
623
|
var hasOwn$c = hasOwnProperty_1;
|
|
623
624
|
var shared$1 = sharedStoreExports;
|
|
@@ -625,8 +626,8 @@ var sharedKey$2 = sharedKey$3;
|
|
|
625
626
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
626
627
|
|
|
627
628
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
628
|
-
var TypeError$4 = globalThis$
|
|
629
|
-
var WeakMap = globalThis$
|
|
629
|
+
var TypeError$4 = globalThis$l.TypeError;
|
|
630
|
+
var WeakMap = globalThis$l.WeakMap;
|
|
630
631
|
var set$1, get, has$6;
|
|
631
632
|
|
|
632
633
|
var enforce = function (it) {
|
|
@@ -636,7 +637,7 @@ var enforce = function (it) {
|
|
|
636
637
|
var getterFor = function (TYPE) {
|
|
637
638
|
return function (it) {
|
|
638
639
|
var state;
|
|
639
|
-
if (!isObject$
|
|
640
|
+
if (!isObject$a(it) || (state = get(it)).type !== TYPE) {
|
|
640
641
|
throw new TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
|
641
642
|
} return state;
|
|
642
643
|
};
|
|
@@ -687,10 +688,10 @@ var internalState = {
|
|
|
687
688
|
};
|
|
688
689
|
|
|
689
690
|
var uncurryThis$u = functionUncurryThis;
|
|
690
|
-
var fails$
|
|
691
|
+
var fails$l = fails$s;
|
|
691
692
|
var isCallable$h = isCallable$p;
|
|
692
693
|
var hasOwn$b = hasOwnProperty_1;
|
|
693
|
-
var DESCRIPTORS$
|
|
694
|
+
var DESCRIPTORS$e = descriptors;
|
|
694
695
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
695
696
|
var inspectSource$2 = inspectSource$3;
|
|
696
697
|
var InternalStateModule$6 = internalState;
|
|
@@ -704,7 +705,7 @@ var stringSlice$a = uncurryThis$u(''.slice);
|
|
|
704
705
|
var replace$8 = uncurryThis$u(''.replace);
|
|
705
706
|
var join$4 = uncurryThis$u([].join);
|
|
706
707
|
|
|
707
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
708
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$e && !fails$l(function () {
|
|
708
709
|
return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
709
710
|
});
|
|
710
711
|
|
|
@@ -717,7 +718,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
717
718
|
if (options && options.getter) name = 'get ' + name;
|
|
718
719
|
if (options && options.setter) name = 'set ' + name;
|
|
719
720
|
if (!hasOwn$b(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
720
|
-
if (DESCRIPTORS$
|
|
721
|
+
if (DESCRIPTORS$e) defineProperty$6(value, 'name', { value: name, configurable: true });
|
|
721
722
|
else value.name = name;
|
|
722
723
|
}
|
|
723
724
|
if (CONFIGURABLE_LENGTH && options && hasOwn$b(options, 'arity') && value.length !== options.arity) {
|
|
@@ -725,7 +726,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
725
726
|
}
|
|
726
727
|
try {
|
|
727
728
|
if (options && hasOwn$b(options, 'constructor') && options.constructor) {
|
|
728
|
-
if (DESCRIPTORS$
|
|
729
|
+
if (DESCRIPTORS$e) defineProperty$6(value, 'prototype', { writable: false });
|
|
729
730
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
730
731
|
} else if (value.prototype) value.prototype = undefined;
|
|
731
732
|
} catch (error) { /* empty */ }
|
|
@@ -774,14 +775,14 @@ var defineBuiltIn$c = function (O, key, value, options) {
|
|
|
774
775
|
var objectGetOwnPropertyNames = {};
|
|
775
776
|
|
|
776
777
|
var ceil$1 = Math.ceil;
|
|
777
|
-
var floor$
|
|
778
|
+
var floor$6 = Math.floor;
|
|
778
779
|
|
|
779
780
|
// `Math.trunc` method
|
|
780
781
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
781
782
|
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
782
783
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
783
784
|
var n = +x;
|
|
784
|
-
return (n > 0 ? floor$
|
|
785
|
+
return (n > 0 ? floor$6 : ceil$1)(n);
|
|
785
786
|
};
|
|
786
787
|
|
|
787
788
|
var trunc = mathTrunc;
|
|
@@ -866,17 +867,17 @@ var toIndexedObject$2 = toIndexedObject$5;
|
|
|
866
867
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
867
868
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
868
869
|
|
|
869
|
-
var push$
|
|
870
|
+
var push$5 = uncurryThis$t([].push);
|
|
870
871
|
|
|
871
872
|
var objectKeysInternal = function (object, names) {
|
|
872
873
|
var O = toIndexedObject$2(object);
|
|
873
874
|
var i = 0;
|
|
874
875
|
var result = [];
|
|
875
876
|
var key;
|
|
876
|
-
for (key in O) !hasOwn$a(hiddenKeys$2, key) && hasOwn$a(O, key) && push$
|
|
877
|
+
for (key in O) !hasOwn$a(hiddenKeys$2, key) && hasOwn$a(O, key) && push$5(result, key);
|
|
877
878
|
// Don't enum bug & hidden keys
|
|
878
879
|
while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
|
|
879
|
-
~indexOf$1(result, key) || push$
|
|
880
|
+
~indexOf$1(result, key) || push$5(result, key);
|
|
880
881
|
}
|
|
881
882
|
return result;
|
|
882
883
|
};
|
|
@@ -941,7 +942,7 @@ var copyConstructorProperties$3 = function (target, source, exceptions) {
|
|
|
941
942
|
}
|
|
942
943
|
};
|
|
943
944
|
|
|
944
|
-
var fails$
|
|
945
|
+
var fails$k = fails$s;
|
|
945
946
|
var isCallable$f = isCallable$p;
|
|
946
947
|
|
|
947
948
|
var replacement = /#|\.prototype\./;
|
|
@@ -950,7 +951,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
950
951
|
var value = data[normalize(feature)];
|
|
951
952
|
return value === POLYFILL ? true
|
|
952
953
|
: value === NATIVE ? false
|
|
953
|
-
: isCallable$f(detection) ? fails$
|
|
954
|
+
: isCallable$f(detection) ? fails$k(detection)
|
|
954
955
|
: !!detection;
|
|
955
956
|
};
|
|
956
957
|
|
|
@@ -964,8 +965,8 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
964
965
|
|
|
965
966
|
var isForced_1 = isForced$2;
|
|
966
967
|
|
|
967
|
-
var globalThis$
|
|
968
|
-
var getOwnPropertyDescriptor$
|
|
968
|
+
var globalThis$k = globalThis_1;
|
|
969
|
+
var getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f;
|
|
969
970
|
var createNonEnumerableProperty$7 = createNonEnumerableProperty$9;
|
|
970
971
|
var defineBuiltIn$b = defineBuiltIn$c;
|
|
971
972
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
@@ -993,16 +994,16 @@ var _export = function (options, source) {
|
|
|
993
994
|
var STATIC = options.stat;
|
|
994
995
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
995
996
|
if (GLOBAL) {
|
|
996
|
-
target = globalThis$
|
|
997
|
+
target = globalThis$k;
|
|
997
998
|
} else if (STATIC) {
|
|
998
|
-
target = globalThis$
|
|
999
|
+
target = globalThis$k[TARGET] || defineGlobalProperty(TARGET, {});
|
|
999
1000
|
} else {
|
|
1000
|
-
target = globalThis$
|
|
1001
|
+
target = globalThis$k[TARGET] && globalThis$k[TARGET].prototype;
|
|
1001
1002
|
}
|
|
1002
1003
|
if (target) for (key in source) {
|
|
1003
1004
|
sourceProperty = source[key];
|
|
1004
1005
|
if (options.dontCallGetSet) {
|
|
1005
|
-
descriptor = getOwnPropertyDescriptor$
|
|
1006
|
+
descriptor = getOwnPropertyDescriptor$4(target, key);
|
|
1006
1007
|
targetProperty = descriptor && descriptor.value;
|
|
1007
1008
|
} else targetProperty = target[key];
|
|
1008
1009
|
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
@@ -1031,7 +1032,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1031
1032
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1032
1033
|
};
|
|
1033
1034
|
|
|
1034
|
-
var DESCRIPTORS$
|
|
1035
|
+
var DESCRIPTORS$d = descriptors;
|
|
1035
1036
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1036
1037
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1037
1038
|
var anObject$i = anObject$l;
|
|
@@ -1041,7 +1042,7 @@ var objectKeys$1 = objectKeys$2;
|
|
|
1041
1042
|
// `Object.defineProperties` method
|
|
1042
1043
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1043
1044
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1044
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1045
|
+
objectDefineProperties.f = DESCRIPTORS$d && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1045
1046
|
anObject$i(O);
|
|
1046
1047
|
var props = toIndexedObject$1(Properties);
|
|
1047
1048
|
var keys = objectKeys$1(Properties);
|
|
@@ -1164,18 +1165,24 @@ var addToUnscopables$2 = function (key) {
|
|
|
1164
1165
|
|
|
1165
1166
|
var $$x = _export;
|
|
1166
1167
|
var $includes = arrayIncludes.includes;
|
|
1167
|
-
var fails$
|
|
1168
|
+
var fails$j = fails$s;
|
|
1168
1169
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
1169
1170
|
|
|
1170
1171
|
// FF99+ bug
|
|
1171
|
-
var BROKEN_ON_SPARSE = fails$
|
|
1172
|
+
var BROKEN_ON_SPARSE = fails$j(function () {
|
|
1172
1173
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1173
1174
|
return !Array(1).includes();
|
|
1174
1175
|
});
|
|
1175
1176
|
|
|
1177
|
+
// Safari 26.4- bug
|
|
1178
|
+
var BROKEN_ON_SPARSE_WITH_FROM_INDEX = fails$j(function () {
|
|
1179
|
+
// eslint-disable-next-line no-sparse-arrays, es/no-array-prototype-includes -- detection
|
|
1180
|
+
return [, 1].includes(undefined, 1);
|
|
1181
|
+
});
|
|
1182
|
+
|
|
1176
1183
|
// `Array.prototype.includes` method
|
|
1177
1184
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1178
|
-
$$x({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1185
|
+
$$x({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE || BROKEN_ON_SPARSE_WITH_FROM_INDEX }, {
|
|
1179
1186
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1180
1187
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1181
1188
|
}
|
|
@@ -1186,9 +1193,9 @@ addToUnscopables$1('includes');
|
|
|
1186
1193
|
|
|
1187
1194
|
var iterators = {};
|
|
1188
1195
|
|
|
1189
|
-
var fails$
|
|
1196
|
+
var fails$i = fails$s;
|
|
1190
1197
|
|
|
1191
|
-
var correctPrototypeGetter = !fails$
|
|
1198
|
+
var correctPrototypeGetter = !fails$i(function () {
|
|
1192
1199
|
function F() { /* empty */ }
|
|
1193
1200
|
F.prototype.constructor = null;
|
|
1194
1201
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1217,9 +1224,9 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1217
1224
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1218
1225
|
};
|
|
1219
1226
|
|
|
1220
|
-
var fails$
|
|
1227
|
+
var fails$h = fails$s;
|
|
1221
1228
|
var isCallable$d = isCallable$p;
|
|
1222
|
-
var isObject$
|
|
1229
|
+
var isObject$9 = isObject$f;
|
|
1223
1230
|
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
1224
1231
|
var defineBuiltIn$a = defineBuiltIn$c;
|
|
1225
1232
|
var wellKnownSymbol$j = wellKnownSymbol$m;
|
|
@@ -1242,7 +1249,7 @@ if ([].keys) {
|
|
|
1242
1249
|
}
|
|
1243
1250
|
}
|
|
1244
1251
|
|
|
1245
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1252
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$9(IteratorPrototype$4) || fails$h(function () {
|
|
1246
1253
|
var test = {};
|
|
1247
1254
|
// FF44- legacy iterators case
|
|
1248
1255
|
return IteratorPrototype$4[ITERATOR$8].call(test) !== test;
|
|
@@ -1302,25 +1309,25 @@ var functionUncurryThisAccessor = function (object, key, method) {
|
|
|
1302
1309
|
} catch (error) { /* empty */ }
|
|
1303
1310
|
};
|
|
1304
1311
|
|
|
1305
|
-
var isObject$
|
|
1312
|
+
var isObject$8 = isObject$f;
|
|
1306
1313
|
|
|
1307
1314
|
var isPossiblePrototype$1 = function (argument) {
|
|
1308
|
-
return isObject$
|
|
1315
|
+
return isObject$8(argument) || argument === null;
|
|
1309
1316
|
};
|
|
1310
1317
|
|
|
1311
1318
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1312
1319
|
|
|
1313
1320
|
var $String$2 = String;
|
|
1314
|
-
var $TypeError$
|
|
1321
|
+
var $TypeError$b = TypeError;
|
|
1315
1322
|
|
|
1316
1323
|
var aPossiblePrototype$1 = function (argument) {
|
|
1317
1324
|
if (isPossiblePrototype(argument)) return argument;
|
|
1318
|
-
throw new $TypeError$
|
|
1325
|
+
throw new $TypeError$b("Can't set " + $String$2(argument) + ' as a prototype');
|
|
1319
1326
|
};
|
|
1320
1327
|
|
|
1321
1328
|
/* eslint-disable no-proto -- safe */
|
|
1322
1329
|
var uncurryThisAccessor$1 = functionUncurryThisAccessor;
|
|
1323
|
-
var isObject$
|
|
1330
|
+
var isObject$7 = isObject$f;
|
|
1324
1331
|
var requireObjectCoercible$8 = requireObjectCoercible$b;
|
|
1325
1332
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1326
1333
|
|
|
@@ -1340,7 +1347,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1340
1347
|
return function setPrototypeOf(O, proto) {
|
|
1341
1348
|
requireObjectCoercible$8(O);
|
|
1342
1349
|
aPossiblePrototype(proto);
|
|
1343
|
-
if (!isObject$
|
|
1350
|
+
if (!isObject$7(O)) return O;
|
|
1344
1351
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1345
1352
|
else O.__proto__ = proto;
|
|
1346
1353
|
return O;
|
|
@@ -1348,7 +1355,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1348
1355
|
}() : undefined);
|
|
1349
1356
|
|
|
1350
1357
|
var $$w = _export;
|
|
1351
|
-
var call$
|
|
1358
|
+
var call$n = functionCall;
|
|
1352
1359
|
var FunctionName = functionName;
|
|
1353
1360
|
var isCallable$c = isCallable$p;
|
|
1354
1361
|
var createIteratorConstructor$1 = iteratorCreateConstructor;
|
|
@@ -1420,7 +1427,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1420
1427
|
createNonEnumerableProperty$6(IterablePrototype, 'name', VALUES);
|
|
1421
1428
|
} else {
|
|
1422
1429
|
INCORRECT_VALUES_NAME = true;
|
|
1423
|
-
defaultIterator = function values() { return call$
|
|
1430
|
+
defaultIterator = function values() { return call$n(nativeIterator, this); };
|
|
1424
1431
|
}
|
|
1425
1432
|
}
|
|
1426
1433
|
|
|
@@ -1460,7 +1467,7 @@ var InternalStateModule$5 = internalState;
|
|
|
1460
1467
|
var defineProperty$3 = objectDefineProperty.f;
|
|
1461
1468
|
var defineIterator$1 = iteratorDefine;
|
|
1462
1469
|
var createIterResultObject$3 = createIterResultObject$4;
|
|
1463
|
-
var DESCRIPTORS$
|
|
1470
|
+
var DESCRIPTORS$c = descriptors;
|
|
1464
1471
|
|
|
1465
1472
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1466
1473
|
var setInternalState$5 = InternalStateModule$5.set;
|
|
@@ -1510,12 +1517,12 @@ addToUnscopables('values');
|
|
|
1510
1517
|
addToUnscopables('entries');
|
|
1511
1518
|
|
|
1512
1519
|
// V8 ~ Chrome 45- bug
|
|
1513
|
-
if (DESCRIPTORS$
|
|
1520
|
+
if (DESCRIPTORS$c && values.name !== 'values') try {
|
|
1514
1521
|
defineProperty$3(values, 'name', { value: 'values' });
|
|
1515
1522
|
} catch (error) { /* empty */ }
|
|
1516
1523
|
|
|
1517
|
-
var isObject$
|
|
1518
|
-
var classof$
|
|
1524
|
+
var isObject$6 = isObject$f;
|
|
1525
|
+
var classof$8 = classofRaw$2;
|
|
1519
1526
|
var wellKnownSymbol$g = wellKnownSymbol$m;
|
|
1520
1527
|
|
|
1521
1528
|
var MATCH$1 = wellKnownSymbol$g('match');
|
|
@@ -1524,16 +1531,16 @@ var MATCH$1 = wellKnownSymbol$g('match');
|
|
|
1524
1531
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
1525
1532
|
var isRegexp = function (it) {
|
|
1526
1533
|
var isRegExp;
|
|
1527
|
-
return isObject$
|
|
1534
|
+
return isObject$6(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$8(it) === 'RegExp');
|
|
1528
1535
|
};
|
|
1529
1536
|
|
|
1530
1537
|
var isRegExp = isRegexp;
|
|
1531
1538
|
|
|
1532
|
-
var $TypeError$
|
|
1539
|
+
var $TypeError$a = TypeError;
|
|
1533
1540
|
|
|
1534
1541
|
var notARegexp = function (it) {
|
|
1535
1542
|
if (isRegExp(it)) {
|
|
1536
|
-
throw new $TypeError$
|
|
1543
|
+
throw new $TypeError$a("The method doesn't accept regular expressions");
|
|
1537
1544
|
} return it;
|
|
1538
1545
|
};
|
|
1539
1546
|
|
|
@@ -1541,7 +1548,7 @@ var wellKnownSymbol$f = wellKnownSymbol$m;
|
|
|
1541
1548
|
|
|
1542
1549
|
var TO_STRING_TAG$3 = wellKnownSymbol$f('toStringTag');
|
|
1543
1550
|
var test = {};
|
|
1544
|
-
|
|
1551
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1545
1552
|
test[TO_STRING_TAG$3] = 'z';
|
|
1546
1553
|
|
|
1547
1554
|
var toStringTagSupport = String(test) === '[object z]';
|
|
@@ -1565,7 +1572,7 @@ var tryGet = function (it, key) {
|
|
|
1565
1572
|
};
|
|
1566
1573
|
|
|
1567
1574
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1568
|
-
var classof$
|
|
1575
|
+
var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1569
1576
|
var O, tag, result;
|
|
1570
1577
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1571
1578
|
// @@toStringTag case
|
|
@@ -1576,12 +1583,12 @@ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1576
1583
|
: (result = classofRaw$1(O)) === 'Object' && isCallable$b(O.callee) ? 'Arguments' : result;
|
|
1577
1584
|
};
|
|
1578
1585
|
|
|
1579
|
-
var classof$
|
|
1586
|
+
var classof$6 = classof$7;
|
|
1580
1587
|
|
|
1581
1588
|
var $String$1 = String;
|
|
1582
1589
|
|
|
1583
1590
|
var toString$e = function (argument) {
|
|
1584
|
-
if (classof$
|
|
1591
|
+
if (classof$6(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1585
1592
|
return $String$1(argument);
|
|
1586
1593
|
};
|
|
1587
1594
|
|
|
@@ -1666,7 +1673,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1666
1673
|
|
|
1667
1674
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1668
1675
|
|
|
1669
|
-
var globalThis$
|
|
1676
|
+
var globalThis$j = globalThis_1;
|
|
1670
1677
|
var DOMIterables = domIterables;
|
|
1671
1678
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1672
1679
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -1698,7 +1705,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1698
1705
|
};
|
|
1699
1706
|
|
|
1700
1707
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1701
|
-
handlePrototype(globalThis$
|
|
1708
|
+
handlePrototype(globalThis$j[COLLECTION_NAME] && globalThis$j[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1702
1709
|
}
|
|
1703
1710
|
|
|
1704
1711
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -2457,13 +2464,14 @@ var uncurryThis$p = functionUncurryThis;
|
|
|
2457
2464
|
|
|
2458
2465
|
// `thisNumberValue` abstract operation
|
|
2459
2466
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
2460
|
-
var thisNumberValue$1 = uncurryThis$p(1.
|
|
2467
|
+
var thisNumberValue$1 = uncurryThis$p(1.1.valueOf);
|
|
2461
2468
|
|
|
2462
2469
|
var toIntegerOrInfinity$4 = toIntegerOrInfinity$7;
|
|
2463
2470
|
var toString$c = toString$e;
|
|
2464
2471
|
var requireObjectCoercible$6 = requireObjectCoercible$b;
|
|
2465
2472
|
|
|
2466
2473
|
var $RangeError$4 = RangeError;
|
|
2474
|
+
var floor$5 = Math.floor;
|
|
2467
2475
|
|
|
2468
2476
|
// `String.prototype.repeat` method implementation
|
|
2469
2477
|
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
@@ -2472,7 +2480,7 @@ var stringRepeat = function repeat(count) {
|
|
|
2472
2480
|
var result = '';
|
|
2473
2481
|
var n = toIntegerOrInfinity$4(count);
|
|
2474
2482
|
if (n < 0 || n === Infinity) throw new $RangeError$4('Wrong number of repetitions');
|
|
2475
|
-
for (;n > 0; (n
|
|
2483
|
+
for (;n > 0; (n = floor$5(n / 2)) && (str += str)) if (n % 2) result += str;
|
|
2476
2484
|
return result;
|
|
2477
2485
|
};
|
|
2478
2486
|
|
|
@@ -2481,14 +2489,14 @@ var uncurryThis$o = functionUncurryThis;
|
|
|
2481
2489
|
var toIntegerOrInfinity$3 = toIntegerOrInfinity$7;
|
|
2482
2490
|
var thisNumberValue = thisNumberValue$1;
|
|
2483
2491
|
var $repeat$1 = stringRepeat;
|
|
2484
|
-
var fails$
|
|
2492
|
+
var fails$g = fails$s;
|
|
2485
2493
|
|
|
2486
2494
|
var $RangeError$3 = RangeError;
|
|
2487
2495
|
var $String = String;
|
|
2488
2496
|
var floor$4 = Math.floor;
|
|
2489
2497
|
var repeat$1 = uncurryThis$o($repeat$1);
|
|
2490
2498
|
var stringSlice$9 = uncurryThis$o(''.slice);
|
|
2491
|
-
var nativeToFixed = uncurryThis$o(1.
|
|
2499
|
+
var nativeToFixed = uncurryThis$o(1.1.toFixed);
|
|
2492
2500
|
|
|
2493
2501
|
var pow$1 = function (x, n, acc) {
|
|
2494
2502
|
return n === 0 ? acc : n % 2 === 1 ? pow$1(x, n - 1, acc * x) : pow$1(x * x, n / 2, acc);
|
|
@@ -2538,19 +2546,19 @@ var dataToString = function (data) {
|
|
|
2538
2546
|
} return s;
|
|
2539
2547
|
};
|
|
2540
2548
|
|
|
2541
|
-
var FORCED$
|
|
2549
|
+
var FORCED$7 = fails$g(function () {
|
|
2542
2550
|
return nativeToFixed(0.00008, 3) !== '0.000' ||
|
|
2543
2551
|
nativeToFixed(0.9, 0) !== '1' ||
|
|
2544
2552
|
nativeToFixed(1.255, 2) !== '1.25' ||
|
|
2545
2553
|
nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128';
|
|
2546
|
-
}) || !fails$
|
|
2554
|
+
}) || !fails$g(function () {
|
|
2547
2555
|
// V8 ~ Android 4.3-
|
|
2548
2556
|
nativeToFixed({});
|
|
2549
2557
|
});
|
|
2550
2558
|
|
|
2551
2559
|
// `Number.prototype.toFixed` method
|
|
2552
2560
|
// https://tc39.es/ecma262/#sec-number.prototype.tofixed
|
|
2553
|
-
$$u({ target: 'Number', proto: true, forced: FORCED$
|
|
2561
|
+
$$u({ target: 'Number', proto: true, forced: FORCED$7 }, {
|
|
2554
2562
|
toFixed: function toFixed(fractionDigits) {
|
|
2555
2563
|
var number = thisNumberValue(this);
|
|
2556
2564
|
var fractDigits = toIntegerOrInfinity$3(fractionDigits);
|
|
@@ -2708,11 +2716,11 @@ const useI18n = function useI18n() {
|
|
|
2708
2716
|
|
|
2709
2717
|
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
2710
2718
|
|
|
2711
|
-
var $TypeError$
|
|
2719
|
+
var $TypeError$9 = TypeError;
|
|
2712
2720
|
|
|
2713
2721
|
var anInstance$4 = function (it, Prototype) {
|
|
2714
2722
|
if (isPrototypeOf$4(Prototype, it)) return it;
|
|
2715
|
-
throw new $TypeError$
|
|
2723
|
+
throw new $TypeError$9('Incorrect invocation');
|
|
2716
2724
|
};
|
|
2717
2725
|
|
|
2718
2726
|
var makeBuiltIn = makeBuiltInExports;
|
|
@@ -2724,49 +2732,49 @@ var defineBuiltInAccessor$6 = function (target, name, descriptor) {
|
|
|
2724
2732
|
return defineProperty$2.f(target, name, descriptor);
|
|
2725
2733
|
};
|
|
2726
2734
|
|
|
2727
|
-
var DESCRIPTORS$
|
|
2735
|
+
var DESCRIPTORS$b = descriptors;
|
|
2728
2736
|
var definePropertyModule = objectDefineProperty;
|
|
2729
2737
|
var createPropertyDescriptor$2 = createPropertyDescriptor$6;
|
|
2730
2738
|
|
|
2731
|
-
var createProperty$
|
|
2732
|
-
if (DESCRIPTORS$
|
|
2739
|
+
var createProperty$3 = function (object, key, value) {
|
|
2740
|
+
if (DESCRIPTORS$b) definePropertyModule.f(object, key, createPropertyDescriptor$2(0, value));
|
|
2733
2741
|
else object[key] = value;
|
|
2734
2742
|
};
|
|
2735
2743
|
|
|
2736
2744
|
var $$t = _export;
|
|
2737
|
-
var globalThis$
|
|
2745
|
+
var globalThis$i = globalThis_1;
|
|
2738
2746
|
var anInstance$3 = anInstance$4;
|
|
2739
2747
|
var anObject$g = anObject$l;
|
|
2740
2748
|
var isCallable$a = isCallable$p;
|
|
2741
2749
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
2742
2750
|
var defineBuiltInAccessor$5 = defineBuiltInAccessor$6;
|
|
2743
|
-
var createProperty$
|
|
2744
|
-
var fails$
|
|
2751
|
+
var createProperty$2 = createProperty$3;
|
|
2752
|
+
var fails$f = fails$s;
|
|
2745
2753
|
var hasOwn$6 = hasOwnProperty_1;
|
|
2746
2754
|
var wellKnownSymbol$b = wellKnownSymbol$m;
|
|
2747
2755
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
2748
|
-
var DESCRIPTORS$
|
|
2756
|
+
var DESCRIPTORS$a = descriptors;
|
|
2749
2757
|
|
|
2750
2758
|
var CONSTRUCTOR = 'constructor';
|
|
2751
2759
|
var ITERATOR$5 = 'Iterator';
|
|
2752
2760
|
var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag');
|
|
2753
2761
|
|
|
2754
|
-
var $TypeError$
|
|
2755
|
-
var NativeIterator = globalThis$
|
|
2762
|
+
var $TypeError$8 = TypeError;
|
|
2763
|
+
var NativeIterator = globalThis$i[ITERATOR$5];
|
|
2756
2764
|
|
|
2757
2765
|
// FF56- have non-standard global helper `Iterator`
|
|
2758
|
-
var FORCED$
|
|
2766
|
+
var FORCED$6 = !isCallable$a(NativeIterator)
|
|
2759
2767
|
|| NativeIterator.prototype !== IteratorPrototype$1
|
|
2760
2768
|
// FF44- non-standard `Iterator` passes previous tests
|
|
2761
|
-
|| !fails$
|
|
2769
|
+
|| !fails$f(function () { NativeIterator({}); });
|
|
2762
2770
|
|
|
2763
2771
|
var IteratorConstructor = function Iterator() {
|
|
2764
2772
|
anInstance$3(this, IteratorPrototype$1);
|
|
2765
|
-
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$
|
|
2773
|
+
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$8('Abstract class Iterator not directly constructable');
|
|
2766
2774
|
};
|
|
2767
2775
|
|
|
2768
2776
|
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
2769
|
-
if (DESCRIPTORS$
|
|
2777
|
+
if (DESCRIPTORS$a) {
|
|
2770
2778
|
defineBuiltInAccessor$5(IteratorPrototype$1, key, {
|
|
2771
2779
|
configurable: true,
|
|
2772
2780
|
get: function () {
|
|
@@ -2774,9 +2782,9 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
2774
2782
|
},
|
|
2775
2783
|
set: function (replacement) {
|
|
2776
2784
|
anObject$g(this);
|
|
2777
|
-
if (this === IteratorPrototype$1) throw new $TypeError$
|
|
2785
|
+
if (this === IteratorPrototype$1) throw new $TypeError$8("You can't redefine this property");
|
|
2778
2786
|
if (hasOwn$6(this, key)) this[key] = replacement;
|
|
2779
|
-
else createProperty$
|
|
2787
|
+
else createProperty$2(this, key, replacement);
|
|
2780
2788
|
}
|
|
2781
2789
|
});
|
|
2782
2790
|
} else IteratorPrototype$1[key] = value;
|
|
@@ -2784,20 +2792,20 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
2784
2792
|
|
|
2785
2793
|
if (!hasOwn$6(IteratorPrototype$1, TO_STRING_TAG$1)) defineIteratorPrototypeAccessor(TO_STRING_TAG$1, ITERATOR$5);
|
|
2786
2794
|
|
|
2787
|
-
if (FORCED$
|
|
2795
|
+
if (FORCED$6 || !hasOwn$6(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
|
|
2788
2796
|
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
2789
2797
|
}
|
|
2790
2798
|
|
|
2791
2799
|
IteratorConstructor.prototype = IteratorPrototype$1;
|
|
2792
2800
|
|
|
2793
2801
|
// `Iterator` constructor
|
|
2794
|
-
// https://
|
|
2795
|
-
$$t({ global: true, constructor: true, forced: FORCED$
|
|
2802
|
+
// https://tc39.es/ecma262/#sec-iterator
|
|
2803
|
+
$$t({ global: true, constructor: true, forced: FORCED$6 }, {
|
|
2796
2804
|
Iterator: IteratorConstructor
|
|
2797
2805
|
});
|
|
2798
2806
|
|
|
2799
2807
|
// `GetIteratorDirect(obj)` abstract operation
|
|
2800
|
-
// https://tc39.es/
|
|
2808
|
+
// https://tc39.es/ecma262/#sec-getiteratordirect
|
|
2801
2809
|
var getIteratorDirect$5 = function (obj) {
|
|
2802
2810
|
return {
|
|
2803
2811
|
iterator: obj,
|
|
@@ -2813,11 +2821,11 @@ var defineBuiltIns$2 = function (target, src, options) {
|
|
|
2813
2821
|
return target;
|
|
2814
2822
|
};
|
|
2815
2823
|
|
|
2816
|
-
var call$
|
|
2824
|
+
var call$m = functionCall;
|
|
2817
2825
|
var anObject$f = anObject$l;
|
|
2818
2826
|
var getMethod$3 = getMethod$5;
|
|
2819
2827
|
|
|
2820
|
-
var iteratorClose$
|
|
2828
|
+
var iteratorClose$a = function (iterator, kind, value) {
|
|
2821
2829
|
var innerResult, innerError;
|
|
2822
2830
|
anObject$f(iterator);
|
|
2823
2831
|
try {
|
|
@@ -2826,7 +2834,7 @@ var iteratorClose$5 = function (iterator, kind, value) {
|
|
|
2826
2834
|
if (kind === 'throw') throw value;
|
|
2827
2835
|
return value;
|
|
2828
2836
|
}
|
|
2829
|
-
innerResult = call$
|
|
2837
|
+
innerResult = call$m(innerResult, iterator);
|
|
2830
2838
|
} catch (error) {
|
|
2831
2839
|
innerError = true;
|
|
2832
2840
|
innerResult = error;
|
|
@@ -2837,7 +2845,23 @@ var iteratorClose$5 = function (iterator, kind, value) {
|
|
|
2837
2845
|
return value;
|
|
2838
2846
|
};
|
|
2839
2847
|
|
|
2840
|
-
var
|
|
2848
|
+
var iteratorClose$9 = iteratorClose$a;
|
|
2849
|
+
|
|
2850
|
+
var iteratorCloseAll$1 = function (iters, kind, value) {
|
|
2851
|
+
for (var i = iters.length - 1; i >= 0; i--) {
|
|
2852
|
+
if (iters[i] === undefined) continue;
|
|
2853
|
+
try {
|
|
2854
|
+
value = iteratorClose$9(iters[i].iterator, kind, value);
|
|
2855
|
+
} catch (error) {
|
|
2856
|
+
kind = 'throw';
|
|
2857
|
+
value = error;
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
if (kind === 'throw') throw value;
|
|
2861
|
+
return value;
|
|
2862
|
+
};
|
|
2863
|
+
|
|
2864
|
+
var call$l = functionCall;
|
|
2841
2865
|
var create$2 = objectCreate;
|
|
2842
2866
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$9;
|
|
2843
2867
|
var defineBuiltIns$1 = defineBuiltIns$2;
|
|
@@ -2846,11 +2870,14 @@ var InternalStateModule$4 = internalState;
|
|
|
2846
2870
|
var getMethod$2 = getMethod$5;
|
|
2847
2871
|
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
2848
2872
|
var createIterResultObject$2 = createIterResultObject$4;
|
|
2849
|
-
var iteratorClose$
|
|
2873
|
+
var iteratorClose$8 = iteratorClose$a;
|
|
2874
|
+
var iteratorCloseAll = iteratorCloseAll$1;
|
|
2850
2875
|
|
|
2851
2876
|
var TO_STRING_TAG = wellKnownSymbol$a('toStringTag');
|
|
2852
2877
|
var ITERATOR_HELPER = 'IteratorHelper';
|
|
2853
2878
|
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
2879
|
+
var NORMAL = 'normal';
|
|
2880
|
+
var THROW = 'throw';
|
|
2854
2881
|
var setInternalState$4 = InternalStateModule$4.set;
|
|
2855
2882
|
|
|
2856
2883
|
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
@@ -2860,12 +2887,13 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
2860
2887
|
next: function next() {
|
|
2861
2888
|
var state = getInternalState(this);
|
|
2862
2889
|
// for simplification:
|
|
2863
|
-
// for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
|
|
2890
|
+
// for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
|
|
2864
2891
|
// for `%IteratorHelperPrototype%.next` - just a value
|
|
2865
2892
|
if (IS_ITERATOR) return state.nextHandler();
|
|
2893
|
+
if (state.done) return createIterResultObject$2(undefined, true);
|
|
2866
2894
|
try {
|
|
2867
|
-
var result = state.
|
|
2868
|
-
return createIterResultObject$2(result, state.done);
|
|
2895
|
+
var result = state.nextHandler();
|
|
2896
|
+
return state.returnHandlerResult ? result : createIterResultObject$2(result, state.done);
|
|
2869
2897
|
} catch (error) {
|
|
2870
2898
|
state.done = true;
|
|
2871
2899
|
throw error;
|
|
@@ -2874,17 +2902,25 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
2874
2902
|
'return': function () {
|
|
2875
2903
|
var state = getInternalState(this);
|
|
2876
2904
|
var iterator = state.iterator;
|
|
2905
|
+
var done = state.done;
|
|
2877
2906
|
state.done = true;
|
|
2878
2907
|
if (IS_ITERATOR) {
|
|
2879
2908
|
var returnMethod = getMethod$2(iterator, 'return');
|
|
2880
|
-
return returnMethod ? call$
|
|
2909
|
+
return returnMethod ? call$l(returnMethod, iterator) : createIterResultObject$2(undefined, true);
|
|
2881
2910
|
}
|
|
2911
|
+
if (done) return createIterResultObject$2(undefined, true);
|
|
2882
2912
|
if (state.inner) try {
|
|
2883
|
-
iteratorClose$
|
|
2913
|
+
iteratorClose$8(state.inner.iterator, NORMAL);
|
|
2884
2914
|
} catch (error) {
|
|
2885
|
-
return iteratorClose$
|
|
2915
|
+
return iteratorClose$8(iterator, THROW, error);
|
|
2886
2916
|
}
|
|
2887
|
-
|
|
2917
|
+
if (state.openIters) try {
|
|
2918
|
+
iteratorCloseAll(state.openIters, NORMAL);
|
|
2919
|
+
} catch (error) {
|
|
2920
|
+
if (iterator) return iteratorClose$8(iterator, THROW, error);
|
|
2921
|
+
throw error;
|
|
2922
|
+
}
|
|
2923
|
+
if (iterator) iteratorClose$8(iterator, NORMAL);
|
|
2888
2924
|
return createIterResultObject$2(undefined, true);
|
|
2889
2925
|
}
|
|
2890
2926
|
});
|
|
@@ -2895,13 +2931,14 @@ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
|
2895
2931
|
|
|
2896
2932
|
createNonEnumerableProperty$4(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
2897
2933
|
|
|
2898
|
-
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
2934
|
+
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
|
|
2899
2935
|
var IteratorProxy = function Iterator(record, state) {
|
|
2900
2936
|
if (state) {
|
|
2901
2937
|
state.iterator = record.iterator;
|
|
2902
2938
|
state.next = record.next;
|
|
2903
2939
|
} else state = record;
|
|
2904
2940
|
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
2941
|
+
state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
|
|
2905
2942
|
state.nextHandler = nextHandler;
|
|
2906
2943
|
state.counter = 0;
|
|
2907
2944
|
state.done = false;
|
|
@@ -2914,49 +2951,93 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
|
2914
2951
|
};
|
|
2915
2952
|
|
|
2916
2953
|
var anObject$e = anObject$l;
|
|
2917
|
-
var iteratorClose$
|
|
2954
|
+
var iteratorClose$7 = iteratorClose$a;
|
|
2918
2955
|
|
|
2919
2956
|
// call something on iterator step with safe closing on error
|
|
2920
2957
|
var callWithSafeIterationClosing$3 = function (iterator, fn, value, ENTRIES) {
|
|
2921
2958
|
try {
|
|
2922
2959
|
return ENTRIES ? fn(anObject$e(value)[0], value[1]) : fn(value);
|
|
2923
2960
|
} catch (error) {
|
|
2924
|
-
iteratorClose$
|
|
2961
|
+
iteratorClose$7(iterator, 'throw', error);
|
|
2925
2962
|
}
|
|
2926
2963
|
};
|
|
2927
2964
|
|
|
2928
|
-
|
|
2965
|
+
// Should throw an error on invalid iterator
|
|
2966
|
+
// https://issues.chromium.org/issues/336839115
|
|
2967
|
+
var iteratorHelperThrowsOnInvalidIterator$2 = function (methodName, argument) {
|
|
2968
|
+
// eslint-disable-next-line es/no-iterator -- required for testing
|
|
2969
|
+
var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
|
|
2970
|
+
if (method) try {
|
|
2971
|
+
method.call({ next: null }, argument).next();
|
|
2972
|
+
} catch (error) {
|
|
2973
|
+
return true;
|
|
2974
|
+
}
|
|
2975
|
+
};
|
|
2976
|
+
|
|
2977
|
+
var globalThis$h = globalThis_1;
|
|
2978
|
+
|
|
2979
|
+
// https://github.com/tc39/ecma262/pull/3467
|
|
2980
|
+
var iteratorHelperWithoutClosingOnEarlyError$3 = function (METHOD_NAME, ExpectedError) {
|
|
2981
|
+
var Iterator = globalThis$h.Iterator;
|
|
2982
|
+
var IteratorPrototype = Iterator && Iterator.prototype;
|
|
2983
|
+
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
|
|
2984
|
+
|
|
2985
|
+
var CLOSED = false;
|
|
2986
|
+
|
|
2987
|
+
if (method) try {
|
|
2988
|
+
method.call({
|
|
2989
|
+
next: function () { return { done: true }; },
|
|
2990
|
+
'return': function () { CLOSED = true; }
|
|
2991
|
+
}, -1);
|
|
2992
|
+
} catch (error) {
|
|
2993
|
+
// https://bugs.webkit.org/show_bug.cgi?id=291195
|
|
2994
|
+
if (!(error instanceof ExpectedError)) CLOSED = false;
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
if (!CLOSED) return method;
|
|
2998
|
+
};
|
|
2999
|
+
|
|
3000
|
+
var $$s = _export;
|
|
3001
|
+
var call$k = functionCall;
|
|
2929
3002
|
var aCallable$9 = aCallable$c;
|
|
2930
3003
|
var anObject$d = anObject$l;
|
|
2931
3004
|
var getIteratorDirect$4 = getIteratorDirect$5;
|
|
2932
3005
|
var createIteratorProxy$1 = iteratorCreateProxy;
|
|
2933
3006
|
var callWithSafeIterationClosing$2 = callWithSafeIterationClosing$3;
|
|
3007
|
+
var iteratorClose$6 = iteratorClose$a;
|
|
3008
|
+
var iteratorHelperThrowsOnInvalidIterator$1 = iteratorHelperThrowsOnInvalidIterator$2;
|
|
3009
|
+
var iteratorHelperWithoutClosingOnEarlyError$2 = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
3010
|
+
|
|
3011
|
+
var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !iteratorHelperThrowsOnInvalidIterator$1('map', function () { /* empty */ });
|
|
3012
|
+
var mapWithoutClosingOnEarlyError = !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
|
3013
|
+
&& iteratorHelperWithoutClosingOnEarlyError$2('map', TypeError);
|
|
3014
|
+
|
|
3015
|
+
var FORCED$5 = MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;
|
|
2934
3016
|
|
|
2935
3017
|
var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
2936
3018
|
var iterator = this.iterator;
|
|
2937
|
-
var result = anObject$d(call$
|
|
3019
|
+
var result = anObject$d(call$k(this.next, iterator));
|
|
2938
3020
|
var done = this.done = !!result.done;
|
|
2939
3021
|
if (!done) return callWithSafeIterationClosing$2(iterator, this.mapper, [result.value, this.counter++], true);
|
|
2940
3022
|
});
|
|
2941
3023
|
|
|
2942
3024
|
// `Iterator.prototype.map` method
|
|
2943
|
-
// https://
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
3025
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
|
3026
|
+
$$s({ target: 'Iterator', proto: true, real: true, forced: FORCED$5 }, {
|
|
3027
|
+
map: function map(mapper) {
|
|
3028
|
+
anObject$d(this);
|
|
3029
|
+
try {
|
|
3030
|
+
aCallable$9(mapper);
|
|
3031
|
+
} catch (error) {
|
|
3032
|
+
iteratorClose$6(this, 'throw', error);
|
|
3033
|
+
}
|
|
2951
3034
|
|
|
2952
|
-
|
|
2953
|
-
var map = iteratorMap;
|
|
2954
|
-
var IS_PURE$2 = isPure;
|
|
3035
|
+
if (mapWithoutClosingOnEarlyError) return call$k(mapWithoutClosingOnEarlyError, this, mapper);
|
|
2955
3036
|
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
3037
|
+
return new IteratorProxy$1(getIteratorDirect$4(this), {
|
|
3038
|
+
mapper: mapper
|
|
3039
|
+
});
|
|
3040
|
+
}
|
|
2960
3041
|
});
|
|
2961
3042
|
|
|
2962
3043
|
const I18nSettings = function I18nSettings({
|
|
@@ -3077,10 +3158,198 @@ const useStyles$h = tss.withParams().create(({
|
|
|
3077
3158
|
}
|
|
3078
3159
|
}));
|
|
3079
3160
|
|
|
3080
|
-
var
|
|
3161
|
+
var classofRaw = classofRaw$2;
|
|
3081
3162
|
var uncurryThis$n = functionUncurryThis;
|
|
3163
|
+
|
|
3164
|
+
var functionUncurryThisClause = function (fn) {
|
|
3165
|
+
// Nashorn bug:
|
|
3166
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
3167
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
3168
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$n(fn);
|
|
3169
|
+
};
|
|
3170
|
+
|
|
3171
|
+
var uncurryThis$m = functionUncurryThisClause;
|
|
3172
|
+
var aCallable$8 = aCallable$c;
|
|
3173
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
3174
|
+
|
|
3175
|
+
var bind$7 = uncurryThis$m(uncurryThis$m.bind);
|
|
3176
|
+
|
|
3177
|
+
// optional / simple context binding
|
|
3178
|
+
var functionBindContext = function (fn, that) {
|
|
3179
|
+
aCallable$8(fn);
|
|
3180
|
+
return that === undefined ? fn : NATIVE_BIND$1 ? bind$7(fn, that) : function (/* ...args */) {
|
|
3181
|
+
return fn.apply(that, arguments);
|
|
3182
|
+
};
|
|
3183
|
+
};
|
|
3184
|
+
|
|
3185
|
+
var wellKnownSymbol$9 = wellKnownSymbol$m;
|
|
3186
|
+
var Iterators$1 = iterators;
|
|
3187
|
+
|
|
3188
|
+
var ITERATOR$4 = wellKnownSymbol$9('iterator');
|
|
3189
|
+
var ArrayPrototype = Array.prototype;
|
|
3190
|
+
|
|
3191
|
+
// check on default Array iterator
|
|
3192
|
+
var isArrayIteratorMethod$2 = function (it) {
|
|
3193
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$4] === it);
|
|
3194
|
+
};
|
|
3195
|
+
|
|
3196
|
+
var classof$5 = classof$7;
|
|
3197
|
+
var getMethod$1 = getMethod$5;
|
|
3198
|
+
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
3199
|
+
var Iterators = iterators;
|
|
3200
|
+
var wellKnownSymbol$8 = wellKnownSymbol$m;
|
|
3201
|
+
|
|
3202
|
+
var ITERATOR$3 = wellKnownSymbol$8('iterator');
|
|
3203
|
+
|
|
3204
|
+
var getIteratorMethod$4 = function (it) {
|
|
3205
|
+
if (!isNullOrUndefined$1(it)) return getMethod$1(it, ITERATOR$3)
|
|
3206
|
+
|| getMethod$1(it, '@@iterator')
|
|
3207
|
+
|| Iterators[classof$5(it)];
|
|
3208
|
+
};
|
|
3209
|
+
|
|
3210
|
+
var call$j = functionCall;
|
|
3211
|
+
var aCallable$7 = aCallable$c;
|
|
3212
|
+
var anObject$c = anObject$l;
|
|
3213
|
+
var tryToString$2 = tryToString$4;
|
|
3214
|
+
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
3215
|
+
|
|
3216
|
+
var $TypeError$7 = TypeError;
|
|
3217
|
+
|
|
3218
|
+
var getIterator$3 = function (argument, usingIterator) {
|
|
3219
|
+
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
3220
|
+
if (aCallable$7(iteratorMethod)) return anObject$c(call$j(iteratorMethod, argument));
|
|
3221
|
+
throw new $TypeError$7(tryToString$2(argument) + ' is not iterable');
|
|
3222
|
+
};
|
|
3223
|
+
|
|
3224
|
+
var bind$6 = functionBindContext;
|
|
3225
|
+
var call$i = functionCall;
|
|
3226
|
+
var anObject$b = anObject$l;
|
|
3227
|
+
var tryToString$1 = tryToString$4;
|
|
3228
|
+
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
3229
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
3230
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
3231
|
+
var getIterator$2 = getIterator$3;
|
|
3232
|
+
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
3233
|
+
var iteratorClose$5 = iteratorClose$a;
|
|
3234
|
+
|
|
3235
|
+
var $TypeError$6 = TypeError;
|
|
3236
|
+
|
|
3237
|
+
var Result = function (stopped, result) {
|
|
3238
|
+
this.stopped = stopped;
|
|
3239
|
+
this.result = result;
|
|
3240
|
+
};
|
|
3241
|
+
|
|
3242
|
+
var ResultPrototype = Result.prototype;
|
|
3243
|
+
|
|
3244
|
+
var iterate$6 = function (iterable, unboundFunction, options) {
|
|
3245
|
+
var that = options && options.that;
|
|
3246
|
+
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
3247
|
+
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
3248
|
+
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
3249
|
+
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
3250
|
+
var fn = bind$6(unboundFunction, that);
|
|
3251
|
+
var iterator, iterFn, index, length, result, next, step;
|
|
3252
|
+
|
|
3253
|
+
var stop = function (condition) {
|
|
3254
|
+
var $iterator = iterator;
|
|
3255
|
+
iterator = undefined;
|
|
3256
|
+
if ($iterator) iteratorClose$5($iterator, 'normal');
|
|
3257
|
+
return new Result(true, condition);
|
|
3258
|
+
};
|
|
3259
|
+
|
|
3260
|
+
var callFn = function (value) {
|
|
3261
|
+
if (AS_ENTRIES) {
|
|
3262
|
+
anObject$b(value);
|
|
3263
|
+
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
3264
|
+
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
3265
|
+
};
|
|
3266
|
+
|
|
3267
|
+
if (IS_RECORD) {
|
|
3268
|
+
iterator = iterable.iterator;
|
|
3269
|
+
} else if (IS_ITERATOR) {
|
|
3270
|
+
iterator = iterable;
|
|
3271
|
+
} else {
|
|
3272
|
+
iterFn = getIteratorMethod$2(iterable);
|
|
3273
|
+
if (!iterFn) throw new $TypeError$6(tryToString$1(iterable) + ' is not iterable');
|
|
3274
|
+
// optimisation for array iterators
|
|
3275
|
+
if (isArrayIteratorMethod$1(iterFn)) {
|
|
3276
|
+
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
3277
|
+
result = callFn(iterable[index]);
|
|
3278
|
+
if (result && isPrototypeOf$3(ResultPrototype, result)) return result;
|
|
3279
|
+
} return new Result(false);
|
|
3280
|
+
}
|
|
3281
|
+
iterator = getIterator$2(iterable, iterFn);
|
|
3282
|
+
}
|
|
3283
|
+
|
|
3284
|
+
next = IS_RECORD ? iterable.next : iterator.next;
|
|
3285
|
+
while (!(step = call$i(next, iterator)).done) {
|
|
3286
|
+
// `IteratorValue` errors should propagate without closing the iterator
|
|
3287
|
+
var value = step.value;
|
|
3288
|
+
try {
|
|
3289
|
+
result = callFn(value);
|
|
3290
|
+
} catch (error) {
|
|
3291
|
+
if (iterator) iteratorClose$5(iterator, 'throw', error);
|
|
3292
|
+
else throw error;
|
|
3293
|
+
}
|
|
3294
|
+
if (typeof result == 'object' && result && isPrototypeOf$3(ResultPrototype, result)) return result;
|
|
3295
|
+
} return new Result(false);
|
|
3296
|
+
};
|
|
3297
|
+
|
|
3298
|
+
var $$r = _export;
|
|
3082
3299
|
var call$h = functionCall;
|
|
3083
|
-
var
|
|
3300
|
+
var iterate$5 = iterate$6;
|
|
3301
|
+
var aCallable$6 = aCallable$c;
|
|
3302
|
+
var anObject$a = anObject$l;
|
|
3303
|
+
var getIteratorDirect$3 = getIteratorDirect$5;
|
|
3304
|
+
var iteratorClose$4 = iteratorClose$a;
|
|
3305
|
+
var iteratorHelperWithoutClosingOnEarlyError$1 = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
3306
|
+
|
|
3307
|
+
var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$1('find', TypeError);
|
|
3308
|
+
|
|
3309
|
+
// `Iterator.prototype.find` method
|
|
3310
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.find
|
|
3311
|
+
$$r({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
|
|
3312
|
+
find: function find(predicate) {
|
|
3313
|
+
anObject$a(this);
|
|
3314
|
+
try {
|
|
3315
|
+
aCallable$6(predicate);
|
|
3316
|
+
} catch (error) {
|
|
3317
|
+
iteratorClose$4(this, 'throw', error);
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
if (findWithoutClosingOnEarlyError) return call$h(findWithoutClosingOnEarlyError, this, predicate);
|
|
3321
|
+
|
|
3322
|
+
var record = getIteratorDirect$3(this);
|
|
3323
|
+
var counter = 0;
|
|
3324
|
+
return iterate$5(record, function (value, stop) {
|
|
3325
|
+
if (predicate(value, counter++)) return stop(value);
|
|
3326
|
+
}, { IS_RECORD: true, INTERRUPTED: true }).result;
|
|
3327
|
+
}
|
|
3328
|
+
});
|
|
3329
|
+
|
|
3330
|
+
var $$q = _export;
|
|
3331
|
+
var anObject$9 = anObject$l;
|
|
3332
|
+
var createProperty$1 = createProperty$3;
|
|
3333
|
+
var iterate$4 = iterate$6;
|
|
3334
|
+
var getIteratorDirect$2 = getIteratorDirect$5;
|
|
3335
|
+
|
|
3336
|
+
// `Iterator.prototype.toArray` method
|
|
3337
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.toarray
|
|
3338
|
+
$$q({ target: 'Iterator', proto: true, real: true }, {
|
|
3339
|
+
toArray: function toArray() {
|
|
3340
|
+
var result = [];
|
|
3341
|
+
var index = 0;
|
|
3342
|
+
iterate$4(getIteratorDirect$2(anObject$9(this)), function (element) {
|
|
3343
|
+
createProperty$1(result, index++, element);
|
|
3344
|
+
}, { IS_RECORD: true });
|
|
3345
|
+
return result;
|
|
3346
|
+
}
|
|
3347
|
+
});
|
|
3348
|
+
|
|
3349
|
+
var DESCRIPTORS$9 = descriptors;
|
|
3350
|
+
var uncurryThis$l = functionUncurryThis;
|
|
3351
|
+
var call$g = functionCall;
|
|
3352
|
+
var fails$e = fails$s;
|
|
3084
3353
|
var objectKeys = objectKeys$2;
|
|
3085
3354
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
3086
3355
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -3091,13 +3360,13 @@ var IndexedObject = indexedObject;
|
|
|
3091
3360
|
var $assign = Object.assign;
|
|
3092
3361
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
3093
3362
|
var defineProperty$1 = Object.defineProperty;
|
|
3094
|
-
var concat$1 = uncurryThis$
|
|
3363
|
+
var concat$1 = uncurryThis$l([].concat);
|
|
3095
3364
|
|
|
3096
3365
|
// `Object.assign` method
|
|
3097
3366
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
3098
|
-
var objectAssign = !$assign || fails$
|
|
3367
|
+
var objectAssign = !$assign || fails$e(function () {
|
|
3099
3368
|
// should have correct order of operations (Edge bug)
|
|
3100
|
-
if (DESCRIPTORS$
|
|
3369
|
+
if (DESCRIPTORS$9 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
|
|
3101
3370
|
enumerable: true,
|
|
3102
3371
|
get: function () {
|
|
3103
3372
|
defineProperty$1(this, 'b', {
|
|
@@ -3113,6 +3382,7 @@ var objectAssign = !$assign || fails$c(function () {
|
|
|
3113
3382
|
var symbol = Symbol('assign detection');
|
|
3114
3383
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
3115
3384
|
A[symbol] = 7;
|
|
3385
|
+
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
3116
3386
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
3117
3387
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
3118
3388
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
@@ -3129,23 +3399,23 @@ var objectAssign = !$assign || fails$c(function () {
|
|
|
3129
3399
|
var key;
|
|
3130
3400
|
while (length > j) {
|
|
3131
3401
|
key = keys[j++];
|
|
3132
|
-
if (!DESCRIPTORS$
|
|
3402
|
+
if (!DESCRIPTORS$9 || call$g(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
3133
3403
|
}
|
|
3134
3404
|
} return T;
|
|
3135
3405
|
} : $assign;
|
|
3136
3406
|
|
|
3137
|
-
var $$
|
|
3407
|
+
var $$p = _export;
|
|
3138
3408
|
var assign$1 = objectAssign;
|
|
3139
3409
|
|
|
3140
3410
|
// `Object.assign` method
|
|
3141
3411
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
3142
3412
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
3143
|
-
$$
|
|
3413
|
+
$$p({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
|
|
3144
3414
|
assign: assign$1
|
|
3145
3415
|
});
|
|
3146
3416
|
|
|
3147
3417
|
/* global Bun, Deno -- detection */
|
|
3148
|
-
var globalThis$
|
|
3418
|
+
var globalThis$g = globalThis_1;
|
|
3149
3419
|
var userAgent$4 = environmentUserAgent;
|
|
3150
3420
|
var classof$4 = classofRaw$2;
|
|
3151
3421
|
|
|
@@ -3158,10 +3428,10 @@ var environment = (function () {
|
|
|
3158
3428
|
if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
|
|
3159
3429
|
if (userAgentStartsWith('Deno/')) return 'DENO';
|
|
3160
3430
|
if (userAgentStartsWith('Node.js/')) return 'NODE';
|
|
3161
|
-
if (globalThis$
|
|
3162
|
-
if (globalThis$
|
|
3163
|
-
if (classof$4(globalThis$
|
|
3164
|
-
if (globalThis$
|
|
3431
|
+
if (globalThis$g.Bun && typeof Bun.version == 'string') return 'BUN';
|
|
3432
|
+
if (globalThis$g.Deno && typeof Deno.version == 'object') return 'DENO';
|
|
3433
|
+
if (classof$4(globalThis$g.process) === 'process') return 'NODE';
|
|
3434
|
+
if (globalThis$g.window && globalThis$g.document) return 'BROWSER';
|
|
3165
3435
|
return 'REST';
|
|
3166
3436
|
})();
|
|
3167
3437
|
|
|
@@ -3169,17 +3439,21 @@ var ENVIRONMENT$1 = environment;
|
|
|
3169
3439
|
|
|
3170
3440
|
var environmentIsNode = ENVIRONMENT$1 === 'NODE';
|
|
3171
3441
|
|
|
3442
|
+
var globalThis$f = globalThis_1;
|
|
3443
|
+
|
|
3444
|
+
var path$1 = globalThis$f;
|
|
3445
|
+
|
|
3172
3446
|
var getBuiltIn$6 = getBuiltIn$a;
|
|
3173
3447
|
var defineBuiltInAccessor$4 = defineBuiltInAccessor$6;
|
|
3174
|
-
var wellKnownSymbol$
|
|
3175
|
-
var DESCRIPTORS$
|
|
3448
|
+
var wellKnownSymbol$7 = wellKnownSymbol$m;
|
|
3449
|
+
var DESCRIPTORS$8 = descriptors;
|
|
3176
3450
|
|
|
3177
|
-
var SPECIES$3 = wellKnownSymbol$
|
|
3451
|
+
var SPECIES$3 = wellKnownSymbol$7('species');
|
|
3178
3452
|
|
|
3179
3453
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
3180
3454
|
var Constructor = getBuiltIn$6(CONSTRUCTOR_NAME);
|
|
3181
3455
|
|
|
3182
|
-
if (DESCRIPTORS$
|
|
3456
|
+
if (DESCRIPTORS$8 && Constructor && !Constructor[SPECIES$3]) {
|
|
3183
3457
|
defineBuiltInAccessor$4(Constructor, SPECIES$3, {
|
|
3184
3458
|
configurable: true,
|
|
3185
3459
|
get: function () { return this; }
|
|
@@ -3187,17 +3461,17 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
3187
3461
|
}
|
|
3188
3462
|
};
|
|
3189
3463
|
|
|
3190
|
-
var uncurryThis$
|
|
3191
|
-
var fails$
|
|
3464
|
+
var uncurryThis$k = functionUncurryThis;
|
|
3465
|
+
var fails$d = fails$s;
|
|
3192
3466
|
var isCallable$9 = isCallable$p;
|
|
3193
|
-
var classof$3 = classof$
|
|
3467
|
+
var classof$3 = classof$7;
|
|
3194
3468
|
var getBuiltIn$5 = getBuiltIn$a;
|
|
3195
3469
|
var inspectSource$1 = inspectSource$3;
|
|
3196
3470
|
|
|
3197
3471
|
var noop = function () { /* empty */ };
|
|
3198
3472
|
var construct = getBuiltIn$5('Reflect', 'construct');
|
|
3199
3473
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
3200
|
-
var exec$4 = uncurryThis$
|
|
3474
|
+
var exec$4 = uncurryThis$k(constructorRegExp.exec);
|
|
3201
3475
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
3202
3476
|
|
|
3203
3477
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -3231,7 +3505,7 @@ isConstructorLegacy.sham = true;
|
|
|
3231
3505
|
|
|
3232
3506
|
// `IsConstructor` abstract operation
|
|
3233
3507
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
3234
|
-
var isConstructor$2 = !construct || fails$
|
|
3508
|
+
var isConstructor$2 = !construct || fails$d(function () {
|
|
3235
3509
|
var called;
|
|
3236
3510
|
return isConstructorModern(isConstructorModern.call)
|
|
3237
3511
|
|| !isConstructorModern(Object)
|
|
@@ -3240,88 +3514,63 @@ var isConstructor$2 = !construct || fails$b(function () {
|
|
|
3240
3514
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
3241
3515
|
|
|
3242
3516
|
var isConstructor$1 = isConstructor$2;
|
|
3243
|
-
var tryToString
|
|
3517
|
+
var tryToString = tryToString$4;
|
|
3244
3518
|
|
|
3245
|
-
var $TypeError$
|
|
3519
|
+
var $TypeError$5 = TypeError;
|
|
3246
3520
|
|
|
3247
3521
|
// `Assert: IsConstructor(argument) is true`
|
|
3248
3522
|
var aConstructor$1 = function (argument) {
|
|
3249
3523
|
if (isConstructor$1(argument)) return argument;
|
|
3250
|
-
throw new $TypeError$
|
|
3524
|
+
throw new $TypeError$5(tryToString(argument) + ' is not a constructor');
|
|
3251
3525
|
};
|
|
3252
3526
|
|
|
3253
|
-
var anObject$
|
|
3527
|
+
var anObject$8 = anObject$l;
|
|
3254
3528
|
var aConstructor = aConstructor$1;
|
|
3255
|
-
var isNullOrUndefined
|
|
3256
|
-
var wellKnownSymbol$
|
|
3529
|
+
var isNullOrUndefined = isNullOrUndefined$4;
|
|
3530
|
+
var wellKnownSymbol$6 = wellKnownSymbol$m;
|
|
3257
3531
|
|
|
3258
|
-
var SPECIES$2 = wellKnownSymbol$
|
|
3532
|
+
var SPECIES$2 = wellKnownSymbol$6('species');
|
|
3259
3533
|
|
|
3260
3534
|
// `SpeciesConstructor` abstract operation
|
|
3261
3535
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
3262
3536
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
3263
|
-
var C = anObject$
|
|
3537
|
+
var C = anObject$8(O).constructor;
|
|
3264
3538
|
var S;
|
|
3265
|
-
return C === undefined || isNullOrUndefined
|
|
3539
|
+
return C === undefined || isNullOrUndefined(S = anObject$8(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
|
|
3266
3540
|
};
|
|
3267
3541
|
|
|
3268
|
-
var NATIVE_BIND
|
|
3542
|
+
var NATIVE_BIND = functionBindNative;
|
|
3269
3543
|
|
|
3270
3544
|
var FunctionPrototype = Function.prototype;
|
|
3271
3545
|
var apply$3 = FunctionPrototype.apply;
|
|
3272
|
-
var call$
|
|
3546
|
+
var call$f = FunctionPrototype.call;
|
|
3273
3547
|
|
|
3274
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
3275
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND
|
|
3276
|
-
return call$
|
|
3548
|
+
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
3549
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$f.bind(apply$3) : function () {
|
|
3550
|
+
return call$f.apply(apply$3, arguments);
|
|
3277
3551
|
});
|
|
3278
3552
|
|
|
3279
|
-
var classofRaw = classofRaw$2;
|
|
3280
|
-
var uncurryThis$l = functionUncurryThis;
|
|
3281
|
-
|
|
3282
|
-
var functionUncurryThisClause = function (fn) {
|
|
3283
|
-
// Nashorn bug:
|
|
3284
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
3285
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
3286
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$l(fn);
|
|
3287
|
-
};
|
|
3288
|
-
|
|
3289
|
-
var uncurryThis$k = functionUncurryThisClause;
|
|
3290
|
-
var aCallable$8 = aCallable$c;
|
|
3291
|
-
var NATIVE_BIND = functionBindNative;
|
|
3292
|
-
|
|
3293
|
-
var bind$7 = uncurryThis$k(uncurryThis$k.bind);
|
|
3294
|
-
|
|
3295
|
-
// optional / simple context binding
|
|
3296
|
-
var functionBindContext = function (fn, that) {
|
|
3297
|
-
aCallable$8(fn);
|
|
3298
|
-
return that === undefined ? fn : NATIVE_BIND ? bind$7(fn, that) : function (/* ...args */) {
|
|
3299
|
-
return fn.apply(that, arguments);
|
|
3300
|
-
};
|
|
3301
|
-
};
|
|
3302
|
-
|
|
3303
3553
|
var uncurryThis$j = functionUncurryThis;
|
|
3304
3554
|
|
|
3305
3555
|
var arraySlice$3 = uncurryThis$j([].slice);
|
|
3306
3556
|
|
|
3307
|
-
var $TypeError$
|
|
3557
|
+
var $TypeError$4 = TypeError;
|
|
3308
3558
|
|
|
3309
3559
|
var validateArgumentsLength$5 = function (passed, required) {
|
|
3310
|
-
if (passed < required) throw new $TypeError$
|
|
3560
|
+
if (passed < required) throw new $TypeError$4('Not enough arguments');
|
|
3311
3561
|
return passed;
|
|
3312
3562
|
};
|
|
3313
3563
|
|
|
3314
3564
|
var userAgent$3 = environmentUserAgent;
|
|
3315
3565
|
|
|
3316
|
-
|
|
3317
|
-
var environmentIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$3);
|
|
3566
|
+
var environmentIsIos = /ipad|iphone|ipod/i.test(userAgent$3) && /applewebkit/i.test(userAgent$3);
|
|
3318
3567
|
|
|
3319
|
-
var globalThis$
|
|
3568
|
+
var globalThis$e = globalThis_1;
|
|
3320
3569
|
var apply$2 = functionApply;
|
|
3321
|
-
var bind$
|
|
3570
|
+
var bind$5 = functionBindContext;
|
|
3322
3571
|
var isCallable$8 = isCallable$p;
|
|
3323
3572
|
var hasOwn$5 = hasOwnProperty_1;
|
|
3324
|
-
var fails$
|
|
3573
|
+
var fails$c = fails$s;
|
|
3325
3574
|
var html = html$2;
|
|
3326
3575
|
var arraySlice$2 = arraySlice$3;
|
|
3327
3576
|
var createElement = documentCreateElement$2;
|
|
@@ -3329,21 +3578,21 @@ var validateArgumentsLength$4 = validateArgumentsLength$5;
|
|
|
3329
3578
|
var IS_IOS$1 = environmentIsIos;
|
|
3330
3579
|
var IS_NODE$2 = environmentIsNode;
|
|
3331
3580
|
|
|
3332
|
-
var set = globalThis$
|
|
3333
|
-
var clear = globalThis$
|
|
3334
|
-
var process$2 = globalThis$
|
|
3335
|
-
var Dispatch = globalThis$
|
|
3336
|
-
var Function$1 = globalThis$
|
|
3337
|
-
var MessageChannel = globalThis$
|
|
3338
|
-
var String$1 = globalThis$
|
|
3581
|
+
var set = globalThis$e.setImmediate;
|
|
3582
|
+
var clear = globalThis$e.clearImmediate;
|
|
3583
|
+
var process$2 = globalThis$e.process;
|
|
3584
|
+
var Dispatch = globalThis$e.Dispatch;
|
|
3585
|
+
var Function$1 = globalThis$e.Function;
|
|
3586
|
+
var MessageChannel = globalThis$e.MessageChannel;
|
|
3587
|
+
var String$1 = globalThis$e.String;
|
|
3339
3588
|
var counter = 0;
|
|
3340
3589
|
var queue$2 = {};
|
|
3341
3590
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
3342
3591
|
var $location, defer, channel, port;
|
|
3343
3592
|
|
|
3344
|
-
fails$
|
|
3593
|
+
fails$c(function () {
|
|
3345
3594
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
3346
|
-
$location = globalThis$
|
|
3595
|
+
$location = globalThis$e.location;
|
|
3347
3596
|
});
|
|
3348
3597
|
|
|
3349
3598
|
var run = function (id) {
|
|
@@ -3366,7 +3615,7 @@ var eventListener = function (event) {
|
|
|
3366
3615
|
|
|
3367
3616
|
var globalPostMessageDefer = function (id) {
|
|
3368
3617
|
// old engines have not location.origin
|
|
3369
|
-
globalThis$
|
|
3618
|
+
globalThis$e.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
3370
3619
|
};
|
|
3371
3620
|
|
|
3372
3621
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
@@ -3400,18 +3649,18 @@ if (!set || !clear) {
|
|
|
3400
3649
|
channel = new MessageChannel();
|
|
3401
3650
|
port = channel.port2;
|
|
3402
3651
|
channel.port1.onmessage = eventListener;
|
|
3403
|
-
defer = bind$
|
|
3652
|
+
defer = bind$5(port.postMessage, port);
|
|
3404
3653
|
// Browsers with postMessage, skip WebWorkers
|
|
3405
3654
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
3406
3655
|
} else if (
|
|
3407
|
-
globalThis$
|
|
3408
|
-
isCallable$8(globalThis$
|
|
3409
|
-
!globalThis$
|
|
3656
|
+
globalThis$e.addEventListener &&
|
|
3657
|
+
isCallable$8(globalThis$e.postMessage) &&
|
|
3658
|
+
!globalThis$e.importScripts &&
|
|
3410
3659
|
$location && $location.protocol !== 'file:' &&
|
|
3411
|
-
!fails$
|
|
3660
|
+
!fails$c(globalPostMessageDefer)
|
|
3412
3661
|
) {
|
|
3413
3662
|
defer = globalPostMessageDefer;
|
|
3414
|
-
globalThis$
|
|
3663
|
+
globalThis$e.addEventListener('message', eventListener, false);
|
|
3415
3664
|
// IE8-
|
|
3416
3665
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
3417
3666
|
defer = function (id) {
|
|
@@ -3431,16 +3680,16 @@ if (!set || !clear) {
|
|
|
3431
3680
|
var task$1 = {
|
|
3432
3681
|
set: set};
|
|
3433
3682
|
|
|
3434
|
-
var globalThis$
|
|
3435
|
-
var DESCRIPTORS$
|
|
3683
|
+
var globalThis$d = globalThis_1;
|
|
3684
|
+
var DESCRIPTORS$7 = descriptors;
|
|
3436
3685
|
|
|
3437
3686
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3438
|
-
var getOwnPropertyDescriptor$
|
|
3687
|
+
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
3439
3688
|
|
|
3440
3689
|
// Avoid NodeJS experimental warning
|
|
3441
3690
|
var safeGetBuiltIn$2 = function (name) {
|
|
3442
|
-
if (!DESCRIPTORS$
|
|
3443
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
3691
|
+
if (!DESCRIPTORS$7) return globalThis$d[name];
|
|
3692
|
+
var descriptor = getOwnPropertyDescriptor$3(globalThis$d, name);
|
|
3444
3693
|
return descriptor && descriptor.value;
|
|
3445
3694
|
};
|
|
3446
3695
|
|
|
@@ -3477,9 +3726,9 @@ var userAgent$1 = environmentUserAgent;
|
|
|
3477
3726
|
|
|
3478
3727
|
var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$1);
|
|
3479
3728
|
|
|
3480
|
-
var globalThis$
|
|
3729
|
+
var globalThis$c = globalThis_1;
|
|
3481
3730
|
var safeGetBuiltIn$1 = safeGetBuiltIn$2;
|
|
3482
|
-
var bind$
|
|
3731
|
+
var bind$4 = functionBindContext;
|
|
3483
3732
|
var macrotask = task$1.set;
|
|
3484
3733
|
var Queue$1 = queue$1;
|
|
3485
3734
|
var IS_IOS = environmentIsIos;
|
|
@@ -3487,10 +3736,10 @@ var IS_IOS_PEBBLE = environmentIsIosPebble;
|
|
|
3487
3736
|
var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
|
|
3488
3737
|
var IS_NODE$1 = environmentIsNode;
|
|
3489
3738
|
|
|
3490
|
-
var MutationObserver$1 = globalThis$
|
|
3491
|
-
var document$2 = globalThis$
|
|
3492
|
-
var process$1 = globalThis$
|
|
3493
|
-
var Promise$1 = globalThis$
|
|
3739
|
+
var MutationObserver$1 = globalThis$c.MutationObserver || globalThis$c.WebKitMutationObserver;
|
|
3740
|
+
var document$2 = globalThis$c.document;
|
|
3741
|
+
var process$1 = globalThis$c.process;
|
|
3742
|
+
var Promise$1 = globalThis$c.Promise;
|
|
3494
3743
|
var microtask$1 = safeGetBuiltIn$1('queueMicrotask');
|
|
3495
3744
|
var notify$1, toggle, node, promise, then;
|
|
3496
3745
|
|
|
@@ -3525,7 +3774,7 @@ if (!microtask$1) {
|
|
|
3525
3774
|
promise = Promise$1.resolve(undefined);
|
|
3526
3775
|
// workaround of WebKit ~ iOS Safari 10.1 bug
|
|
3527
3776
|
promise.constructor = Promise$1;
|
|
3528
|
-
then = bind$
|
|
3777
|
+
then = bind$4(promise.then, promise);
|
|
3529
3778
|
notify$1 = function () {
|
|
3530
3779
|
then(flush);
|
|
3531
3780
|
};
|
|
@@ -3542,7 +3791,7 @@ if (!microtask$1) {
|
|
|
3542
3791
|
// - setTimeout
|
|
3543
3792
|
} else {
|
|
3544
3793
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
3545
|
-
macrotask = bind$
|
|
3794
|
+
macrotask = bind$4(macrotask, globalThis$c);
|
|
3546
3795
|
notify$1 = function () {
|
|
3547
3796
|
macrotask(flush);
|
|
3548
3797
|
};
|
|
@@ -3571,23 +3820,23 @@ var perform$3 = function (exec) {
|
|
|
3571
3820
|
}
|
|
3572
3821
|
};
|
|
3573
3822
|
|
|
3574
|
-
var globalThis$
|
|
3823
|
+
var globalThis$b = globalThis_1;
|
|
3575
3824
|
|
|
3576
|
-
var promiseNativeConstructor = globalThis$
|
|
3825
|
+
var promiseNativeConstructor = globalThis$b.Promise;
|
|
3577
3826
|
|
|
3578
|
-
var globalThis$
|
|
3827
|
+
var globalThis$a = globalThis_1;
|
|
3579
3828
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
3580
3829
|
var isCallable$7 = isCallable$p;
|
|
3581
3830
|
var isForced = isForced_1;
|
|
3582
3831
|
var inspectSource = inspectSource$3;
|
|
3583
|
-
var wellKnownSymbol$
|
|
3832
|
+
var wellKnownSymbol$5 = wellKnownSymbol$m;
|
|
3584
3833
|
var ENVIRONMENT = environment;
|
|
3585
3834
|
var V8_VERSION = environmentV8Version;
|
|
3586
3835
|
|
|
3587
3836
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
3588
|
-
var SPECIES$1 = wellKnownSymbol$
|
|
3837
|
+
var SPECIES$1 = wellKnownSymbol$5('species');
|
|
3589
3838
|
var SUBCLASSING = false;
|
|
3590
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$7(globalThis$
|
|
3839
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$7(globalThis$a.PromiseRejectionEvent);
|
|
3591
3840
|
|
|
3592
3841
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
3593
3842
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -3621,19 +3870,19 @@ var promiseConstructorDetection = {
|
|
|
3621
3870
|
|
|
3622
3871
|
var newPromiseCapability$2 = {};
|
|
3623
3872
|
|
|
3624
|
-
var aCallable$
|
|
3873
|
+
var aCallable$5 = aCallable$c;
|
|
3625
3874
|
|
|
3626
|
-
var $TypeError$
|
|
3875
|
+
var $TypeError$3 = TypeError;
|
|
3627
3876
|
|
|
3628
3877
|
var PromiseCapability = function (C) {
|
|
3629
3878
|
var resolve, reject;
|
|
3630
3879
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
3631
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError$
|
|
3880
|
+
if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
|
|
3632
3881
|
resolve = $$resolve;
|
|
3633
3882
|
reject = $$reject;
|
|
3634
3883
|
});
|
|
3635
|
-
this.resolve = aCallable$
|
|
3636
|
-
this.reject = aCallable$
|
|
3884
|
+
this.resolve = aCallable$5(resolve);
|
|
3885
|
+
this.reject = aCallable$5(reject);
|
|
3637
3886
|
};
|
|
3638
3887
|
|
|
3639
3888
|
// `NewPromiseCapability` abstract operation
|
|
@@ -3642,17 +3891,18 @@ newPromiseCapability$2.f = function (C) {
|
|
|
3642
3891
|
return new PromiseCapability(C);
|
|
3643
3892
|
};
|
|
3644
3893
|
|
|
3645
|
-
var $$
|
|
3894
|
+
var $$o = _export;
|
|
3646
3895
|
var IS_NODE = environmentIsNode;
|
|
3647
|
-
var globalThis$
|
|
3648
|
-
var
|
|
3896
|
+
var globalThis$9 = globalThis_1;
|
|
3897
|
+
var path = path$1;
|
|
3898
|
+
var call$e = functionCall;
|
|
3649
3899
|
var defineBuiltIn$7 = defineBuiltIn$c;
|
|
3650
3900
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
3651
3901
|
var setToStringTag$2 = setToStringTag$6;
|
|
3652
3902
|
var setSpecies = setSpecies$1;
|
|
3653
|
-
var aCallable$
|
|
3903
|
+
var aCallable$4 = aCallable$c;
|
|
3654
3904
|
var isCallable$6 = isCallable$p;
|
|
3655
|
-
var isObject$
|
|
3905
|
+
var isObject$5 = isObject$f;
|
|
3656
3906
|
var anInstance$2 = anInstance$4;
|
|
3657
3907
|
var speciesConstructor = speciesConstructor$1;
|
|
3658
3908
|
var task = task$1.set;
|
|
@@ -3674,13 +3924,13 @@ var setInternalState$3 = InternalStateModule$3.set;
|
|
|
3674
3924
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
3675
3925
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
3676
3926
|
var PromisePrototype = NativePromisePrototype$1;
|
|
3677
|
-
var TypeError$3 = globalThis$
|
|
3678
|
-
var document$1 = globalThis$
|
|
3679
|
-
var process = globalThis$
|
|
3927
|
+
var TypeError$3 = globalThis$9.TypeError;
|
|
3928
|
+
var document$1 = globalThis$9.document;
|
|
3929
|
+
var process = globalThis$9.process;
|
|
3680
3930
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
3681
3931
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
3682
3932
|
|
|
3683
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$
|
|
3933
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$9.dispatchEvent);
|
|
3684
3934
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
3685
3935
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
3686
3936
|
var PENDING = 0;
|
|
@@ -3694,7 +3944,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
3694
3944
|
// helpers
|
|
3695
3945
|
var isThenable = function (it) {
|
|
3696
3946
|
var then;
|
|
3697
|
-
return isObject$
|
|
3947
|
+
return isObject$5(it) && isCallable$6(then = it.then) ? then : false;
|
|
3698
3948
|
};
|
|
3699
3949
|
|
|
3700
3950
|
var callReaction = function (reaction, state) {
|
|
@@ -3723,7 +3973,7 @@ var callReaction = function (reaction, state) {
|
|
|
3723
3973
|
if (result === reaction.promise) {
|
|
3724
3974
|
reject(new TypeError$3('Promise-chain cycle'));
|
|
3725
3975
|
} else if (then = isThenable(result)) {
|
|
3726
|
-
call$
|
|
3976
|
+
call$e(then, result, resolve, reject);
|
|
3727
3977
|
} else resolve(result);
|
|
3728
3978
|
} else reject(value);
|
|
3729
3979
|
} catch (error) {
|
|
@@ -3753,14 +4003,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
3753
4003
|
event.promise = promise;
|
|
3754
4004
|
event.reason = reason;
|
|
3755
4005
|
event.initEvent(name, false, true);
|
|
3756
|
-
globalThis$
|
|
4006
|
+
globalThis$9.dispatchEvent(event);
|
|
3757
4007
|
} else event = { promise: promise, reason: reason };
|
|
3758
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$
|
|
4008
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$9['on' + name])) handler(event);
|
|
3759
4009
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
3760
4010
|
};
|
|
3761
4011
|
|
|
3762
4012
|
var onUnhandled = function (state) {
|
|
3763
|
-
call$
|
|
4013
|
+
call$e(task, globalThis$9, function () {
|
|
3764
4014
|
var promise = state.facade;
|
|
3765
4015
|
var value = state.value;
|
|
3766
4016
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -3783,7 +4033,7 @@ var isUnhandled = function (state) {
|
|
|
3783
4033
|
};
|
|
3784
4034
|
|
|
3785
4035
|
var onHandleUnhandled = function (state) {
|
|
3786
|
-
call$
|
|
4036
|
+
call$e(task, globalThis$9, function () {
|
|
3787
4037
|
var promise = state.facade;
|
|
3788
4038
|
if (IS_NODE) {
|
|
3789
4039
|
process.emit('rejectionHandled', promise);
|
|
@@ -3791,7 +4041,7 @@ var onHandleUnhandled = function (state) {
|
|
|
3791
4041
|
});
|
|
3792
4042
|
};
|
|
3793
4043
|
|
|
3794
|
-
var bind$
|
|
4044
|
+
var bind$3 = function (fn, state, unwrap) {
|
|
3795
4045
|
return function (value) {
|
|
3796
4046
|
fn(state, value, unwrap);
|
|
3797
4047
|
};
|
|
@@ -3817,9 +4067,9 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
3817
4067
|
microtask(function () {
|
|
3818
4068
|
var wrapper = { done: false };
|
|
3819
4069
|
try {
|
|
3820
|
-
call$
|
|
3821
|
-
bind$
|
|
3822
|
-
bind$
|
|
4070
|
+
call$e(then, value,
|
|
4071
|
+
bind$3(internalResolve, wrapper, state),
|
|
4072
|
+
bind$3(internalReject, wrapper, state)
|
|
3823
4073
|
);
|
|
3824
4074
|
} catch (error) {
|
|
3825
4075
|
internalReject(wrapper, error, state);
|
|
@@ -3840,11 +4090,11 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
3840
4090
|
// 25.4.3.1 Promise(executor)
|
|
3841
4091
|
PromiseConstructor = function Promise(executor) {
|
|
3842
4092
|
anInstance$2(this, PromisePrototype);
|
|
3843
|
-
aCallable$
|
|
3844
|
-
call$
|
|
4093
|
+
aCallable$4(executor);
|
|
4094
|
+
call$e(Internal, this);
|
|
3845
4095
|
var state = getInternalPromiseState(this);
|
|
3846
4096
|
try {
|
|
3847
|
-
executor(bind$
|
|
4097
|
+
executor(bind$3(internalResolve, state), bind$3(internalReject, state));
|
|
3848
4098
|
} catch (error) {
|
|
3849
4099
|
internalReject(state, error);
|
|
3850
4100
|
}
|
|
@@ -3886,8 +4136,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
3886
4136
|
var promise = new Internal();
|
|
3887
4137
|
var state = getInternalPromiseState(promise);
|
|
3888
4138
|
this.promise = promise;
|
|
3889
|
-
this.resolve = bind$
|
|
3890
|
-
this.reject = bind$
|
|
4139
|
+
this.resolve = bind$3(internalResolve, state);
|
|
4140
|
+
this.reject = bind$3(internalReject, state);
|
|
3891
4141
|
};
|
|
3892
4142
|
|
|
3893
4143
|
newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
|
|
@@ -3904,7 +4154,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
3904
4154
|
defineBuiltIn$7(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
3905
4155
|
var that = this;
|
|
3906
4156
|
return new PromiseConstructor(function (resolve, reject) {
|
|
3907
|
-
call$
|
|
4157
|
+
call$e(nativeThen, that, resolve, reject);
|
|
3908
4158
|
}).then(onFulfilled, onRejected);
|
|
3909
4159
|
// https://github.com/zloirock/core-js/issues/640
|
|
3910
4160
|
}, { unsafe: true });
|
|
@@ -3922,121 +4172,17 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
3922
4172
|
}
|
|
3923
4173
|
}
|
|
3924
4174
|
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
}
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
var ArrayPrototype = Array.prototype;
|
|
3937
|
-
|
|
3938
|
-
// check on default Array iterator
|
|
3939
|
-
var isArrayIteratorMethod$2 = function (it) {
|
|
3940
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$4] === it);
|
|
3941
|
-
};
|
|
3942
|
-
|
|
3943
|
-
var classof$2 = classof$6;
|
|
3944
|
-
var getMethod$1 = getMethod$5;
|
|
3945
|
-
var isNullOrUndefined$1 = isNullOrUndefined$5;
|
|
3946
|
-
var Iterators = iterators;
|
|
3947
|
-
var wellKnownSymbol$5 = wellKnownSymbol$m;
|
|
3948
|
-
|
|
3949
|
-
var ITERATOR$3 = wellKnownSymbol$5('iterator');
|
|
3950
|
-
|
|
3951
|
-
var getIteratorMethod$4 = function (it) {
|
|
3952
|
-
if (!isNullOrUndefined$1(it)) return getMethod$1(it, ITERATOR$3)
|
|
3953
|
-
|| getMethod$1(it, '@@iterator')
|
|
3954
|
-
|| Iterators[classof$2(it)];
|
|
3955
|
-
};
|
|
3956
|
-
|
|
3957
|
-
var call$e = functionCall;
|
|
3958
|
-
var aCallable$5 = aCallable$c;
|
|
3959
|
-
var anObject$b = anObject$l;
|
|
3960
|
-
var tryToString$1 = tryToString$4;
|
|
3961
|
-
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
3962
|
-
|
|
3963
|
-
var $TypeError$3 = TypeError;
|
|
3964
|
-
|
|
3965
|
-
var getIterator$3 = function (argument, usingIterator) {
|
|
3966
|
-
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
3967
|
-
if (aCallable$5(iteratorMethod)) return anObject$b(call$e(iteratorMethod, argument));
|
|
3968
|
-
throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
3969
|
-
};
|
|
3970
|
-
|
|
3971
|
-
var bind$3 = functionBindContext;
|
|
3972
|
-
var call$d = functionCall;
|
|
3973
|
-
var anObject$a = anObject$l;
|
|
3974
|
-
var tryToString = tryToString$4;
|
|
3975
|
-
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
3976
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
3977
|
-
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
3978
|
-
var getIterator$2 = getIterator$3;
|
|
3979
|
-
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
3980
|
-
var iteratorClose$2 = iteratorClose$5;
|
|
3981
|
-
|
|
3982
|
-
var $TypeError$2 = TypeError;
|
|
3983
|
-
|
|
3984
|
-
var Result = function (stopped, result) {
|
|
3985
|
-
this.stopped = stopped;
|
|
3986
|
-
this.result = result;
|
|
3987
|
-
};
|
|
3988
|
-
|
|
3989
|
-
var ResultPrototype = Result.prototype;
|
|
3990
|
-
|
|
3991
|
-
var iterate$6 = function (iterable, unboundFunction, options) {
|
|
3992
|
-
var that = options && options.that;
|
|
3993
|
-
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
3994
|
-
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
3995
|
-
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
3996
|
-
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
3997
|
-
var fn = bind$3(unboundFunction, that);
|
|
3998
|
-
var iterator, iterFn, index, length, result, next, step;
|
|
3999
|
-
|
|
4000
|
-
var stop = function (condition) {
|
|
4001
|
-
if (iterator) iteratorClose$2(iterator, 'normal', condition);
|
|
4002
|
-
return new Result(true, condition);
|
|
4003
|
-
};
|
|
4004
|
-
|
|
4005
|
-
var callFn = function (value) {
|
|
4006
|
-
if (AS_ENTRIES) {
|
|
4007
|
-
anObject$a(value);
|
|
4008
|
-
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
4009
|
-
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
4010
|
-
};
|
|
4011
|
-
|
|
4012
|
-
if (IS_RECORD) {
|
|
4013
|
-
iterator = iterable.iterator;
|
|
4014
|
-
} else if (IS_ITERATOR) {
|
|
4015
|
-
iterator = iterable;
|
|
4016
|
-
} else {
|
|
4017
|
-
iterFn = getIteratorMethod$2(iterable);
|
|
4018
|
-
if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');
|
|
4019
|
-
// optimisation for array iterators
|
|
4020
|
-
if (isArrayIteratorMethod$1(iterFn)) {
|
|
4021
|
-
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
4022
|
-
result = callFn(iterable[index]);
|
|
4023
|
-
if (result && isPrototypeOf$3(ResultPrototype, result)) return result;
|
|
4024
|
-
} return new Result(false);
|
|
4025
|
-
}
|
|
4026
|
-
iterator = getIterator$2(iterable, iterFn);
|
|
4027
|
-
}
|
|
4028
|
-
|
|
4029
|
-
next = IS_RECORD ? iterable.next : iterator.next;
|
|
4030
|
-
while (!(step = call$d(next, iterator)).done) {
|
|
4031
|
-
try {
|
|
4032
|
-
result = callFn(step.value);
|
|
4033
|
-
} catch (error) {
|
|
4034
|
-
iteratorClose$2(iterator, 'throw', error);
|
|
4035
|
-
}
|
|
4036
|
-
if (typeof result == 'object' && result && isPrototypeOf$3(ResultPrototype, result)) return result;
|
|
4037
|
-
} return new Result(false);
|
|
4038
|
-
};
|
|
4039
|
-
|
|
4175
|
+
// `Promise` constructor
|
|
4176
|
+
// https://tc39.es/ecma262/#sec-promise-executor
|
|
4177
|
+
$$o({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
4178
|
+
Promise: PromiseConstructor
|
|
4179
|
+
});
|
|
4180
|
+
|
|
4181
|
+
PromiseWrapper = path.Promise;
|
|
4182
|
+
|
|
4183
|
+
setToStringTag$2(PromiseConstructor, PROMISE, false);
|
|
4184
|
+
setSpecies(PROMISE);
|
|
4185
|
+
|
|
4040
4186
|
var wellKnownSymbol$4 = wellKnownSymbol$m;
|
|
4041
4187
|
|
|
4042
4188
|
var ITERATOR$2 = wellKnownSymbol$4('iterator');
|
|
@@ -4052,6 +4198,7 @@ try {
|
|
|
4052
4198
|
SAFE_CLOSING = true;
|
|
4053
4199
|
}
|
|
4054
4200
|
};
|
|
4201
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
4055
4202
|
iteratorWithReturn[ITERATOR$2] = function () {
|
|
4056
4203
|
return this;
|
|
4057
4204
|
};
|
|
@@ -4066,6 +4213,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
4066
4213
|
var ITERATION_SUPPORT = false;
|
|
4067
4214
|
try {
|
|
4068
4215
|
var object = {};
|
|
4216
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
4069
4217
|
object[ITERATOR$2] = function () {
|
|
4070
4218
|
return {
|
|
4071
4219
|
next: function () {
|
|
@@ -4086,32 +4234,32 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
4086
4234
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
4087
4235
|
});
|
|
4088
4236
|
|
|
4089
|
-
var $$
|
|
4090
|
-
var call$
|
|
4091
|
-
var aCallable$
|
|
4237
|
+
var $$n = _export;
|
|
4238
|
+
var call$d = functionCall;
|
|
4239
|
+
var aCallable$3 = aCallable$c;
|
|
4092
4240
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
4093
4241
|
var perform$1 = perform$3;
|
|
4094
|
-
var iterate$
|
|
4242
|
+
var iterate$3 = iterate$6;
|
|
4095
4243
|
var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
4096
4244
|
|
|
4097
4245
|
// `Promise.all` method
|
|
4098
4246
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
4099
|
-
$$
|
|
4247
|
+
$$n({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
4100
4248
|
all: function all(iterable) {
|
|
4101
4249
|
var C = this;
|
|
4102
4250
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
4103
4251
|
var resolve = capability.resolve;
|
|
4104
4252
|
var reject = capability.reject;
|
|
4105
4253
|
var result = perform$1(function () {
|
|
4106
|
-
var $promiseResolve = aCallable$
|
|
4254
|
+
var $promiseResolve = aCallable$3(C.resolve);
|
|
4107
4255
|
var values = [];
|
|
4108
4256
|
var counter = 0;
|
|
4109
4257
|
var remaining = 1;
|
|
4110
|
-
iterate$
|
|
4258
|
+
iterate$3(iterable, function (promise) {
|
|
4111
4259
|
var index = counter++;
|
|
4112
4260
|
var alreadyCalled = false;
|
|
4113
4261
|
remaining++;
|
|
4114
|
-
call$
|
|
4262
|
+
call$d($promiseResolve, C, promise).then(function (value) {
|
|
4115
4263
|
if (alreadyCalled) return;
|
|
4116
4264
|
alreadyCalled = true;
|
|
4117
4265
|
values[index] = value;
|
|
@@ -4125,7 +4273,7 @@ $$p({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
4125
4273
|
}
|
|
4126
4274
|
});
|
|
4127
4275
|
|
|
4128
|
-
var $$
|
|
4276
|
+
var $$m = _export;
|
|
4129
4277
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
4130
4278
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
4131
4279
|
var getBuiltIn$4 = getBuiltIn$a;
|
|
@@ -4136,7 +4284,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
|
|
|
4136
4284
|
|
|
4137
4285
|
// `Promise.prototype.catch` method
|
|
4138
4286
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
4139
|
-
$$
|
|
4287
|
+
$$m({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
4140
4288
|
'catch': function (onRejected) {
|
|
4141
4289
|
return this.then(undefined, onRejected);
|
|
4142
4290
|
}
|
|
@@ -4150,25 +4298,25 @@ if (isCallable$5(NativePromiseConstructor)) {
|
|
|
4150
4298
|
}
|
|
4151
4299
|
}
|
|
4152
4300
|
|
|
4153
|
-
var $$
|
|
4154
|
-
var call$
|
|
4155
|
-
var aCallable$
|
|
4301
|
+
var $$l = _export;
|
|
4302
|
+
var call$c = functionCall;
|
|
4303
|
+
var aCallable$2 = aCallable$c;
|
|
4156
4304
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
4157
4305
|
var perform = perform$3;
|
|
4158
|
-
var iterate$
|
|
4306
|
+
var iterate$2 = iterate$6;
|
|
4159
4307
|
var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
4160
4308
|
|
|
4161
4309
|
// `Promise.race` method
|
|
4162
4310
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
4163
|
-
$$
|
|
4311
|
+
$$l({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
4164
4312
|
race: function race(iterable) {
|
|
4165
4313
|
var C = this;
|
|
4166
4314
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
4167
4315
|
var reject = capability.reject;
|
|
4168
4316
|
var result = perform(function () {
|
|
4169
|
-
var $promiseResolve = aCallable$
|
|
4170
|
-
iterate$
|
|
4171
|
-
call$
|
|
4317
|
+
var $promiseResolve = aCallable$2(C.resolve);
|
|
4318
|
+
iterate$2(iterable, function (promise) {
|
|
4319
|
+
call$c($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
4172
4320
|
});
|
|
4173
4321
|
});
|
|
4174
4322
|
if (result.error) reject(result.value);
|
|
@@ -4176,13 +4324,13 @@ $$n({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
4176
4324
|
}
|
|
4177
4325
|
});
|
|
4178
4326
|
|
|
4179
|
-
var $$
|
|
4327
|
+
var $$k = _export;
|
|
4180
4328
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
4181
4329
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
4182
4330
|
|
|
4183
4331
|
// `Promise.reject` method
|
|
4184
4332
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
4185
|
-
$$
|
|
4333
|
+
$$k({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
4186
4334
|
reject: function reject(r) {
|
|
4187
4335
|
var capability = newPromiseCapabilityModule.f(this);
|
|
4188
4336
|
var capabilityReject = capability.reject;
|
|
@@ -4191,20 +4339,20 @@ $$m({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
4191
4339
|
}
|
|
4192
4340
|
});
|
|
4193
4341
|
|
|
4194
|
-
var anObject$
|
|
4195
|
-
var isObject$
|
|
4342
|
+
var anObject$7 = anObject$l;
|
|
4343
|
+
var isObject$4 = isObject$f;
|
|
4196
4344
|
var newPromiseCapability = newPromiseCapability$2;
|
|
4197
4345
|
|
|
4198
4346
|
var promiseResolve$1 = function (C, x) {
|
|
4199
|
-
anObject$
|
|
4200
|
-
if (isObject$
|
|
4347
|
+
anObject$7(C);
|
|
4348
|
+
if (isObject$4(x) && x.constructor === C) return x;
|
|
4201
4349
|
var promiseCapability = newPromiseCapability.f(C);
|
|
4202
4350
|
var resolve = promiseCapability.resolve;
|
|
4203
4351
|
resolve(x);
|
|
4204
4352
|
return promiseCapability.promise;
|
|
4205
4353
|
};
|
|
4206
4354
|
|
|
4207
|
-
var $$
|
|
4355
|
+
var $$j = _export;
|
|
4208
4356
|
var getBuiltIn$3 = getBuiltIn$a;
|
|
4209
4357
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
4210
4358
|
var promiseResolve = promiseResolve$1;
|
|
@@ -4213,18 +4361,65 @@ getBuiltIn$3('Promise');
|
|
|
4213
4361
|
|
|
4214
4362
|
// `Promise.resolve` method
|
|
4215
4363
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
4216
|
-
$$
|
|
4364
|
+
$$j({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
4217
4365
|
resolve: function resolve(x) {
|
|
4218
4366
|
return promiseResolve(this, x);
|
|
4219
4367
|
}
|
|
4220
4368
|
});
|
|
4221
4369
|
|
|
4222
|
-
var
|
|
4370
|
+
var globalThis$8 = globalThis_1;
|
|
4371
|
+
var fails$b = fails$s;
|
|
4372
|
+
|
|
4373
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
|
|
4374
|
+
var RegExp$1 = globalThis$8.RegExp;
|
|
4375
|
+
|
|
4376
|
+
var FLAGS_GETTER_IS_CORRECT = !fails$b(function () {
|
|
4377
|
+
var INDICES_SUPPORT = true;
|
|
4378
|
+
try {
|
|
4379
|
+
RegExp$1('.', 'd');
|
|
4380
|
+
} catch (error) {
|
|
4381
|
+
INDICES_SUPPORT = false;
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4384
|
+
var O = {};
|
|
4385
|
+
// modern V8 bug
|
|
4386
|
+
var calls = '';
|
|
4387
|
+
var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';
|
|
4388
|
+
|
|
4389
|
+
var addGetter = function (key, chr) {
|
|
4390
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4391
|
+
Object.defineProperty(O, key, { get: function () {
|
|
4392
|
+
calls += chr;
|
|
4393
|
+
return true;
|
|
4394
|
+
} });
|
|
4395
|
+
};
|
|
4396
|
+
|
|
4397
|
+
var pairs = {
|
|
4398
|
+
dotAll: 's',
|
|
4399
|
+
global: 'g',
|
|
4400
|
+
ignoreCase: 'i',
|
|
4401
|
+
multiline: 'm',
|
|
4402
|
+
sticky: 'y'
|
|
4403
|
+
};
|
|
4404
|
+
|
|
4405
|
+
if (INDICES_SUPPORT) pairs.hasIndices = 'd';
|
|
4406
|
+
|
|
4407
|
+
for (var key in pairs) addGetter(key, pairs[key]);
|
|
4408
|
+
|
|
4409
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
4410
|
+
var result = Object.getOwnPropertyDescriptor(RegExp$1.prototype, 'flags').get.call(O);
|
|
4411
|
+
|
|
4412
|
+
return result !== expected || calls !== expected;
|
|
4413
|
+
});
|
|
4414
|
+
|
|
4415
|
+
var regexpFlagsDetection = { correct: FLAGS_GETTER_IS_CORRECT };
|
|
4416
|
+
|
|
4417
|
+
var anObject$6 = anObject$l;
|
|
4223
4418
|
|
|
4224
4419
|
// `RegExp.prototype.flags` getter implementation
|
|
4225
4420
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
4226
4421
|
var regexpFlags$1 = function () {
|
|
4227
|
-
var that = anObject$
|
|
4422
|
+
var that = anObject$6(this);
|
|
4228
4423
|
var result = '';
|
|
4229
4424
|
if (that.hasIndices) result += 'd';
|
|
4230
4425
|
if (that.global) result += 'g';
|
|
@@ -4237,31 +4432,34 @@ var regexpFlags$1 = function () {
|
|
|
4237
4432
|
return result;
|
|
4238
4433
|
};
|
|
4239
4434
|
|
|
4240
|
-
var call$
|
|
4435
|
+
var call$b = functionCall;
|
|
4241
4436
|
var hasOwn$4 = hasOwnProperty_1;
|
|
4242
4437
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
4243
|
-
var
|
|
4438
|
+
var regExpFlagsDetection = regexpFlagsDetection;
|
|
4439
|
+
var regExpFlagsGetterImplementation = regexpFlags$1;
|
|
4244
4440
|
|
|
4245
4441
|
var RegExpPrototype$2 = RegExp.prototype;
|
|
4246
4442
|
|
|
4247
|
-
var regexpGetFlags = function (
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4443
|
+
var regexpGetFlags = regExpFlagsDetection.correct ? function (it) {
|
|
4444
|
+
return it.flags;
|
|
4445
|
+
} : function (it) {
|
|
4446
|
+
return (!regExpFlagsDetection.correct && isPrototypeOf$2(RegExpPrototype$2, it) && !hasOwn$4(it, 'flags'))
|
|
4447
|
+
? call$b(regExpFlagsGetterImplementation, it)
|
|
4448
|
+
: it.flags;
|
|
4251
4449
|
};
|
|
4252
4450
|
|
|
4253
4451
|
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
4254
4452
|
var defineBuiltIn$5 = defineBuiltIn$c;
|
|
4255
|
-
var anObject$
|
|
4453
|
+
var anObject$5 = anObject$l;
|
|
4256
4454
|
var $toString$2 = toString$e;
|
|
4257
|
-
var fails$
|
|
4258
|
-
var getRegExpFlags = regexpGetFlags;
|
|
4455
|
+
var fails$a = fails$s;
|
|
4456
|
+
var getRegExpFlags$1 = regexpGetFlags;
|
|
4259
4457
|
|
|
4260
4458
|
var TO_STRING = 'toString';
|
|
4261
4459
|
var RegExpPrototype$1 = RegExp.prototype;
|
|
4262
4460
|
var nativeToString = RegExpPrototype$1[TO_STRING];
|
|
4263
4461
|
|
|
4264
|
-
var NOT_GENERIC = fails$
|
|
4462
|
+
var NOT_GENERIC = fails$a(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
4265
4463
|
// FF44- RegExp#toString has a wrong name
|
|
4266
4464
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING;
|
|
4267
4465
|
|
|
@@ -4269,9 +4467,9 @@ var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING
|
|
|
4269
4467
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
4270
4468
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
4271
4469
|
defineBuiltIn$5(RegExpPrototype$1, TO_STRING, function toString() {
|
|
4272
|
-
var R = anObject$
|
|
4470
|
+
var R = anObject$5(this);
|
|
4273
4471
|
var pattern = $toString$2(R.source);
|
|
4274
|
-
var flags = $toString$2(getRegExpFlags(R));
|
|
4472
|
+
var flags = $toString$2(getRegExpFlags$1(R));
|
|
4275
4473
|
return '/' + pattern + '/' + flags;
|
|
4276
4474
|
}, { unsafe: true });
|
|
4277
4475
|
}
|
|
@@ -4298,13 +4496,13 @@ var aSet$7 = function (it) {
|
|
|
4298
4496
|
return it;
|
|
4299
4497
|
};
|
|
4300
4498
|
|
|
4301
|
-
var call$
|
|
4499
|
+
var call$a = functionCall;
|
|
4302
4500
|
|
|
4303
4501
|
var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
|
|
4304
4502
|
var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
|
|
4305
4503
|
var next = record.next;
|
|
4306
4504
|
var step, result;
|
|
4307
|
-
while (!(step = call$
|
|
4505
|
+
while (!(step = call$a(next, iterator)).done) {
|
|
4308
4506
|
result = fn(step.value);
|
|
4309
4507
|
if (result !== undefined) return result;
|
|
4310
4508
|
}
|
|
@@ -4325,14 +4523,14 @@ var setIterate = function (set, fn, interruptible) {
|
|
|
4325
4523
|
};
|
|
4326
4524
|
|
|
4327
4525
|
var SetHelpers$4 = setHelpers;
|
|
4328
|
-
var iterate$
|
|
4526
|
+
var iterate$1 = setIterate;
|
|
4329
4527
|
|
|
4330
4528
|
var Set$2 = SetHelpers$4.Set;
|
|
4331
4529
|
var add$3 = SetHelpers$4.add;
|
|
4332
4530
|
|
|
4333
4531
|
var setClone = function (set) {
|
|
4334
4532
|
var result = new Set$2();
|
|
4335
|
-
iterate$
|
|
4533
|
+
iterate$1(set, function (it) {
|
|
4336
4534
|
add$3(result, it);
|
|
4337
4535
|
});
|
|
4338
4536
|
return result;
|
|
@@ -4345,41 +4543,41 @@ var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function
|
|
|
4345
4543
|
return set.size;
|
|
4346
4544
|
};
|
|
4347
4545
|
|
|
4348
|
-
var aCallable$
|
|
4349
|
-
var anObject$
|
|
4350
|
-
var call$
|
|
4546
|
+
var aCallable$1 = aCallable$c;
|
|
4547
|
+
var anObject$4 = anObject$l;
|
|
4548
|
+
var call$9 = functionCall;
|
|
4351
4549
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$7;
|
|
4352
|
-
var getIteratorDirect$
|
|
4550
|
+
var getIteratorDirect$1 = getIteratorDirect$5;
|
|
4353
4551
|
|
|
4354
4552
|
var INVALID_SIZE = 'Invalid size';
|
|
4355
4553
|
var $RangeError$2 = RangeError;
|
|
4356
|
-
var $TypeError$
|
|
4554
|
+
var $TypeError$2 = TypeError;
|
|
4357
4555
|
var max$1 = Math.max;
|
|
4358
4556
|
|
|
4359
4557
|
var SetRecord = function (set, intSize) {
|
|
4360
4558
|
this.set = set;
|
|
4361
4559
|
this.size = max$1(intSize, 0);
|
|
4362
|
-
this.has = aCallable$
|
|
4363
|
-
this.keys = aCallable$
|
|
4560
|
+
this.has = aCallable$1(set.has);
|
|
4561
|
+
this.keys = aCallable$1(set.keys);
|
|
4364
4562
|
};
|
|
4365
4563
|
|
|
4366
4564
|
SetRecord.prototype = {
|
|
4367
4565
|
getIterator: function () {
|
|
4368
|
-
return getIteratorDirect$
|
|
4566
|
+
return getIteratorDirect$1(anObject$4(call$9(this.keys, this.set)));
|
|
4369
4567
|
},
|
|
4370
4568
|
includes: function (it) {
|
|
4371
|
-
return call$
|
|
4569
|
+
return call$9(this.has, this.set, it);
|
|
4372
4570
|
}
|
|
4373
4571
|
};
|
|
4374
4572
|
|
|
4375
4573
|
// `GetSetRecord` abstract operation
|
|
4376
4574
|
// https://tc39.es/proposal-set-methods/#sec-getsetrecord
|
|
4377
4575
|
var getSetRecord$7 = function (obj) {
|
|
4378
|
-
anObject$
|
|
4576
|
+
anObject$4(obj);
|
|
4379
4577
|
var numSize = +obj.size;
|
|
4380
4578
|
// NOTE: If size is undefined, then numSize will be NaN
|
|
4381
4579
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4382
|
-
if (numSize !== numSize) throw new $TypeError$
|
|
4580
|
+
if (numSize !== numSize) throw new $TypeError$2(INVALID_SIZE);
|
|
4383
4581
|
var intSize = toIntegerOrInfinity$2(numSize);
|
|
4384
4582
|
if (intSize < 0) throw new $RangeError$2(INVALID_SIZE);
|
|
4385
4583
|
return new SetRecord(obj, intSize);
|
|
@@ -4397,16 +4595,16 @@ var has$4 = SetHelpers$2.has;
|
|
|
4397
4595
|
var remove$1 = SetHelpers$2.remove;
|
|
4398
4596
|
|
|
4399
4597
|
// `Set.prototype.difference` method
|
|
4400
|
-
// https://
|
|
4598
|
+
// https://tc39.es/ecma262/#sec-set.prototype.difference
|
|
4401
4599
|
var setDifference = function difference(other) {
|
|
4402
4600
|
var O = aSet$6(this);
|
|
4403
4601
|
var otherRec = getSetRecord$6(other);
|
|
4404
4602
|
var result = clone$2(O);
|
|
4405
|
-
if (size$4(
|
|
4603
|
+
if (size$4(result) <= otherRec.size) iterateSet$2(result, function (e) {
|
|
4406
4604
|
if (otherRec.includes(e)) remove$1(result, e);
|
|
4407
4605
|
});
|
|
4408
4606
|
else iterateSimple$5(otherRec.getIterator(), function (e) {
|
|
4409
|
-
if (has$4(
|
|
4607
|
+
if (has$4(result, e)) remove$1(result, e);
|
|
4410
4608
|
});
|
|
4411
4609
|
return result;
|
|
4412
4610
|
};
|
|
@@ -4429,30 +4627,80 @@ var createSetLike = function (size) {
|
|
|
4429
4627
|
};
|
|
4430
4628
|
};
|
|
4431
4629
|
|
|
4432
|
-
var
|
|
4630
|
+
var createSetLikeWithInfinitySize = function (size) {
|
|
4631
|
+
return {
|
|
4632
|
+
size: size,
|
|
4633
|
+
has: function () {
|
|
4634
|
+
return true;
|
|
4635
|
+
},
|
|
4636
|
+
keys: function () {
|
|
4637
|
+
throw new Error('e');
|
|
4638
|
+
}
|
|
4639
|
+
};
|
|
4640
|
+
};
|
|
4641
|
+
|
|
4642
|
+
var setMethodAcceptSetLike$7 = function (name, callback) {
|
|
4433
4643
|
var Set = getBuiltIn$2('Set');
|
|
4434
4644
|
try {
|
|
4435
4645
|
new Set()[name](createSetLike(0));
|
|
4436
4646
|
try {
|
|
4437
|
-
// late spec change, early WebKit ~ Safari 17
|
|
4647
|
+
// late spec change, early WebKit ~ Safari 17 implementation does not pass it
|
|
4438
4648
|
// https://github.com/tc39/proposal-set-methods/pull/88
|
|
4649
|
+
// also covered engines with
|
|
4650
|
+
// https://bugs.webkit.org/show_bug.cgi?id=272679
|
|
4439
4651
|
new Set()[name](createSetLike(-1));
|
|
4440
4652
|
return false;
|
|
4441
4653
|
} catch (error2) {
|
|
4442
|
-
return true;
|
|
4654
|
+
if (!callback) return true;
|
|
4655
|
+
// early V8 implementation bug
|
|
4656
|
+
// https://issues.chromium.org/issues/351332634
|
|
4657
|
+
try {
|
|
4658
|
+
new Set()[name](createSetLikeWithInfinitySize(-Infinity));
|
|
4659
|
+
return false;
|
|
4660
|
+
} catch (error) {
|
|
4661
|
+
var set = new Set([1, 2]);
|
|
4662
|
+
return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
|
|
4663
|
+
}
|
|
4443
4664
|
}
|
|
4444
4665
|
} catch (error) {
|
|
4445
4666
|
return false;
|
|
4446
4667
|
}
|
|
4447
4668
|
};
|
|
4448
4669
|
|
|
4449
|
-
var $$
|
|
4670
|
+
var $$i = _export;
|
|
4450
4671
|
var difference = setDifference;
|
|
4672
|
+
var fails$9 = fails$s;
|
|
4451
4673
|
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
4452
4674
|
|
|
4675
|
+
var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike$6('difference', function (result) {
|
|
4676
|
+
return result.size === 0;
|
|
4677
|
+
});
|
|
4678
|
+
|
|
4679
|
+
var FORCED$4 = SET_LIKE_INCORRECT_BEHAVIOR || fails$9(function () {
|
|
4680
|
+
// https://bugs.webkit.org/show_bug.cgi?id=288595
|
|
4681
|
+
var setLike = {
|
|
4682
|
+
size: 1,
|
|
4683
|
+
has: function () { return true; },
|
|
4684
|
+
keys: function () {
|
|
4685
|
+
var index = 0;
|
|
4686
|
+
return {
|
|
4687
|
+
next: function () {
|
|
4688
|
+
var done = index++ > 1;
|
|
4689
|
+
if (baseSet.has(1)) baseSet.clear();
|
|
4690
|
+
return { done: done, value: 2 };
|
|
4691
|
+
}
|
|
4692
|
+
};
|
|
4693
|
+
}
|
|
4694
|
+
};
|
|
4695
|
+
// eslint-disable-next-line es/no-set -- testing
|
|
4696
|
+
var baseSet = new Set([1, 2, 3, 4]);
|
|
4697
|
+
// eslint-disable-next-line es/no-set-prototype-difference -- testing
|
|
4698
|
+
return baseSet.difference(setLike).size !== 3;
|
|
4699
|
+
});
|
|
4700
|
+
|
|
4453
4701
|
// `Set.prototype.difference` method
|
|
4454
|
-
// https://
|
|
4455
|
-
$$
|
|
4702
|
+
// https://tc39.es/ecma262/#sec-set.prototype.difference
|
|
4703
|
+
$$i({ target: 'Set', proto: true, real: true, forced: FORCED$4 }, {
|
|
4456
4704
|
difference: difference
|
|
4457
4705
|
});
|
|
4458
4706
|
|
|
@@ -4468,7 +4716,7 @@ var add$2 = SetHelpers$1.add;
|
|
|
4468
4716
|
var has$3 = SetHelpers$1.has;
|
|
4469
4717
|
|
|
4470
4718
|
// `Set.prototype.intersection` method
|
|
4471
|
-
// https://
|
|
4719
|
+
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
4472
4720
|
var setIntersection = function intersection(other) {
|
|
4473
4721
|
var O = aSet$5(this);
|
|
4474
4722
|
var otherRec = getSetRecord$5(other);
|
|
@@ -4487,19 +4735,21 @@ var setIntersection = function intersection(other) {
|
|
|
4487
4735
|
return result;
|
|
4488
4736
|
};
|
|
4489
4737
|
|
|
4490
|
-
var $$
|
|
4491
|
-
var fails$8 = fails$
|
|
4738
|
+
var $$h = _export;
|
|
4739
|
+
var fails$8 = fails$s;
|
|
4492
4740
|
var intersection = setIntersection;
|
|
4493
4741
|
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
4494
4742
|
|
|
4495
|
-
var INCORRECT = !setMethodAcceptSetLike$5('intersection'
|
|
4496
|
-
|
|
4743
|
+
var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
|
|
4744
|
+
return result.size === 2 && result.has(1) && result.has(2);
|
|
4745
|
+
}) || fails$8(function () {
|
|
4746
|
+
// eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
|
|
4497
4747
|
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
4498
4748
|
});
|
|
4499
4749
|
|
|
4500
4750
|
// `Set.prototype.intersection` method
|
|
4501
|
-
// https://
|
|
4502
|
-
$$
|
|
4751
|
+
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
4752
|
+
$$h({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
|
|
4503
4753
|
intersection: intersection
|
|
4504
4754
|
});
|
|
4505
4755
|
|
|
@@ -4509,10 +4759,10 @@ var size$2 = setSize;
|
|
|
4509
4759
|
var getSetRecord$4 = getSetRecord$7;
|
|
4510
4760
|
var iterateSet = setIterate;
|
|
4511
4761
|
var iterateSimple$3 = iterateSimple$7;
|
|
4512
|
-
var iteratorClose$
|
|
4762
|
+
var iteratorClose$3 = iteratorClose$a;
|
|
4513
4763
|
|
|
4514
4764
|
// `Set.prototype.isDisjointFrom` method
|
|
4515
|
-
// https://tc39.
|
|
4765
|
+
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
4516
4766
|
var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
4517
4767
|
var O = aSet$4(this);
|
|
4518
4768
|
var otherRec = getSetRecord$4(other);
|
|
@@ -4521,43 +4771,51 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
|
4521
4771
|
}, true) !== false;
|
|
4522
4772
|
var iterator = otherRec.getIterator();
|
|
4523
4773
|
return iterateSimple$3(iterator, function (e) {
|
|
4524
|
-
if (has$2(O, e)) return iteratorClose$
|
|
4774
|
+
if (has$2(O, e)) return iteratorClose$3(iterator.iterator, 'normal', false);
|
|
4525
4775
|
}) !== false;
|
|
4526
4776
|
};
|
|
4527
4777
|
|
|
4528
|
-
var $$
|
|
4778
|
+
var $$g = _export;
|
|
4529
4779
|
var isDisjointFrom = setIsDisjointFrom;
|
|
4530
4780
|
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
4531
4781
|
|
|
4782
|
+
var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result) {
|
|
4783
|
+
return !result;
|
|
4784
|
+
});
|
|
4785
|
+
|
|
4532
4786
|
// `Set.prototype.isDisjointFrom` method
|
|
4533
|
-
// https://
|
|
4534
|
-
$$
|
|
4787
|
+
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
4788
|
+
$$g({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
|
|
4535
4789
|
isDisjointFrom: isDisjointFrom
|
|
4536
4790
|
});
|
|
4537
4791
|
|
|
4538
4792
|
var aSet$3 = aSet$7;
|
|
4539
4793
|
var size$1 = setSize;
|
|
4540
|
-
var iterate
|
|
4794
|
+
var iterate = setIterate;
|
|
4541
4795
|
var getSetRecord$3 = getSetRecord$7;
|
|
4542
4796
|
|
|
4543
4797
|
// `Set.prototype.isSubsetOf` method
|
|
4544
|
-
// https://tc39.
|
|
4798
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
4545
4799
|
var setIsSubsetOf = function isSubsetOf(other) {
|
|
4546
4800
|
var O = aSet$3(this);
|
|
4547
4801
|
var otherRec = getSetRecord$3(other);
|
|
4548
4802
|
if (size$1(O) > otherRec.size) return false;
|
|
4549
|
-
return iterate
|
|
4803
|
+
return iterate(O, function (e) {
|
|
4550
4804
|
if (!otherRec.includes(e)) return false;
|
|
4551
4805
|
}, true) !== false;
|
|
4552
4806
|
};
|
|
4553
4807
|
|
|
4554
|
-
var $$
|
|
4808
|
+
var $$f = _export;
|
|
4555
4809
|
var isSubsetOf = setIsSubsetOf;
|
|
4556
4810
|
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
4557
4811
|
|
|
4812
|
+
var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
|
|
4813
|
+
return result;
|
|
4814
|
+
});
|
|
4815
|
+
|
|
4558
4816
|
// `Set.prototype.isSubsetOf` method
|
|
4559
|
-
// https://
|
|
4560
|
-
$$
|
|
4817
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
4818
|
+
$$f({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
|
|
4561
4819
|
isSubsetOf: isSubsetOf
|
|
4562
4820
|
});
|
|
4563
4821
|
|
|
@@ -4566,27 +4824,31 @@ var has$1 = setHelpers.has;
|
|
|
4566
4824
|
var size = setSize;
|
|
4567
4825
|
var getSetRecord$2 = getSetRecord$7;
|
|
4568
4826
|
var iterateSimple$2 = iterateSimple$7;
|
|
4569
|
-
var iteratorClose = iteratorClose$
|
|
4827
|
+
var iteratorClose$2 = iteratorClose$a;
|
|
4570
4828
|
|
|
4571
4829
|
// `Set.prototype.isSupersetOf` method
|
|
4572
|
-
// https://tc39.
|
|
4830
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
4573
4831
|
var setIsSupersetOf = function isSupersetOf(other) {
|
|
4574
4832
|
var O = aSet$2(this);
|
|
4575
4833
|
var otherRec = getSetRecord$2(other);
|
|
4576
4834
|
if (size(O) < otherRec.size) return false;
|
|
4577
4835
|
var iterator = otherRec.getIterator();
|
|
4578
4836
|
return iterateSimple$2(iterator, function (e) {
|
|
4579
|
-
if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
4837
|
+
if (!has$1(O, e)) return iteratorClose$2(iterator.iterator, 'normal', false);
|
|
4580
4838
|
}) !== false;
|
|
4581
4839
|
};
|
|
4582
4840
|
|
|
4583
|
-
var $$
|
|
4841
|
+
var $$e = _export;
|
|
4584
4842
|
var isSupersetOf = setIsSupersetOf;
|
|
4585
4843
|
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
4586
4844
|
|
|
4845
|
+
var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
|
|
4846
|
+
return !result;
|
|
4847
|
+
});
|
|
4848
|
+
|
|
4587
4849
|
// `Set.prototype.isSupersetOf` method
|
|
4588
|
-
// https://
|
|
4589
|
-
$$
|
|
4850
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
4851
|
+
$$e({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
4590
4852
|
isSupersetOf: isSupersetOf
|
|
4591
4853
|
});
|
|
4592
4854
|
|
|
@@ -4601,7 +4863,7 @@ var has = SetHelpers.has;
|
|
|
4601
4863
|
var remove = SetHelpers.remove;
|
|
4602
4864
|
|
|
4603
4865
|
// `Set.prototype.symmetricDifference` method
|
|
4604
|
-
// https://
|
|
4866
|
+
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
4605
4867
|
var setSymmetricDifference = function symmetricDifference(other) {
|
|
4606
4868
|
var O = aSet$1(this);
|
|
4607
4869
|
var keysIter = getSetRecord$1(other).getIterator();
|
|
@@ -4613,13 +4875,46 @@ var setSymmetricDifference = function symmetricDifference(other) {
|
|
|
4613
4875
|
return result;
|
|
4614
4876
|
};
|
|
4615
4877
|
|
|
4616
|
-
|
|
4878
|
+
// Should get iterator record of a set-like object before cloning this
|
|
4879
|
+
// https://bugs.webkit.org/show_bug.cgi?id=289430
|
|
4880
|
+
var setMethodGetKeysBeforeCloningDetection = function (METHOD_NAME) {
|
|
4881
|
+
try {
|
|
4882
|
+
// eslint-disable-next-line es/no-set -- needed for test
|
|
4883
|
+
var baseSet = new Set();
|
|
4884
|
+
var setLike = {
|
|
4885
|
+
size: 0,
|
|
4886
|
+
has: function () { return true; },
|
|
4887
|
+
keys: function () {
|
|
4888
|
+
// eslint-disable-next-line es/no-object-defineproperty -- needed for test
|
|
4889
|
+
return Object.defineProperty({}, 'next', {
|
|
4890
|
+
get: function () {
|
|
4891
|
+
baseSet.clear();
|
|
4892
|
+
baseSet.add(4);
|
|
4893
|
+
return function () {
|
|
4894
|
+
return { done: true };
|
|
4895
|
+
};
|
|
4896
|
+
}
|
|
4897
|
+
});
|
|
4898
|
+
}
|
|
4899
|
+
};
|
|
4900
|
+
var result = baseSet[METHOD_NAME](setLike);
|
|
4901
|
+
|
|
4902
|
+
return result.size === 1 && result.values().next().value === 4;
|
|
4903
|
+
} catch (error) {
|
|
4904
|
+
return false;
|
|
4905
|
+
}
|
|
4906
|
+
};
|
|
4907
|
+
|
|
4908
|
+
var $$d = _export;
|
|
4617
4909
|
var symmetricDifference = setSymmetricDifference;
|
|
4910
|
+
var setMethodGetKeysBeforeCloning$1 = setMethodGetKeysBeforeCloningDetection;
|
|
4618
4911
|
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
4619
4912
|
|
|
4913
|
+
var FORCED$3 = !setMethodAcceptSetLike$1('symmetricDifference') || !setMethodGetKeysBeforeCloning$1('symmetricDifference');
|
|
4914
|
+
|
|
4620
4915
|
// `Set.prototype.symmetricDifference` method
|
|
4621
|
-
// https://
|
|
4622
|
-
$$
|
|
4916
|
+
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
4917
|
+
$$d({ target: 'Set', proto: true, real: true, forced: FORCED$3 }, {
|
|
4623
4918
|
symmetricDifference: symmetricDifference
|
|
4624
4919
|
});
|
|
4625
4920
|
|
|
@@ -4630,7 +4925,7 @@ var getSetRecord = getSetRecord$7;
|
|
|
4630
4925
|
var iterateSimple = iterateSimple$7;
|
|
4631
4926
|
|
|
4632
4927
|
// `Set.prototype.union` method
|
|
4633
|
-
// https://
|
|
4928
|
+
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
4634
4929
|
var setUnion = function union(other) {
|
|
4635
4930
|
var O = aSet(this);
|
|
4636
4931
|
var keysIter = getSetRecord(other).getIterator();
|
|
@@ -4641,17 +4936,19 @@ var setUnion = function union(other) {
|
|
|
4641
4936
|
return result;
|
|
4642
4937
|
};
|
|
4643
4938
|
|
|
4644
|
-
var $$
|
|
4939
|
+
var $$c = _export;
|
|
4645
4940
|
var union = setUnion;
|
|
4941
|
+
var setMethodGetKeysBeforeCloning = setMethodGetKeysBeforeCloningDetection;
|
|
4646
4942
|
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
4647
4943
|
|
|
4944
|
+
var FORCED$2 = !setMethodAcceptSetLike('union') || !setMethodGetKeysBeforeCloning('union');
|
|
4945
|
+
|
|
4648
4946
|
// `Set.prototype.union` method
|
|
4649
|
-
// https://
|
|
4650
|
-
$$
|
|
4947
|
+
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
4948
|
+
$$c({ target: 'Set', proto: true, real: true, forced: FORCED$2 }, {
|
|
4651
4949
|
union: union
|
|
4652
4950
|
});
|
|
4653
4951
|
|
|
4654
|
-
// https://github.com/tc39/proposal-string-pad-start-end
|
|
4655
4952
|
var uncurryThis$g = functionUncurryThis;
|
|
4656
4953
|
var toLength$3 = toLength$5;
|
|
4657
4954
|
var toString$b = toString$e;
|
|
@@ -4668,9 +4965,10 @@ var createMethod$2 = function (IS_END) {
|
|
|
4668
4965
|
var S = toString$b(requireObjectCoercible$5($this));
|
|
4669
4966
|
var intMaxLength = toLength$3(maxLength);
|
|
4670
4967
|
var stringLength = S.length;
|
|
4968
|
+
if (intMaxLength <= stringLength) return S;
|
|
4671
4969
|
var fillStr = fillString === undefined ? ' ' : toString$b(fillString);
|
|
4672
4970
|
var fillLen, stringFiller;
|
|
4673
|
-
if (
|
|
4971
|
+
if (fillStr === '') return S;
|
|
4674
4972
|
fillLen = intMaxLength - stringLength;
|
|
4675
4973
|
stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
|
|
4676
4974
|
if (stringFiller.length > fillLen) stringFiller = stringSlice$8(stringFiller, 0, fillLen);
|
|
@@ -4688,56 +4986,19 @@ var userAgent = environmentUserAgent;
|
|
|
4688
4986
|
|
|
4689
4987
|
var stringPadWebkitBug = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
|
|
4690
4988
|
|
|
4691
|
-
var $$
|
|
4989
|
+
var $$b = _export;
|
|
4692
4990
|
var $padStart = stringPad.start;
|
|
4693
4991
|
var WEBKIT_BUG = stringPadWebkitBug;
|
|
4694
4992
|
|
|
4695
4993
|
// `String.prototype.padStart` method
|
|
4696
4994
|
// https://tc39.es/ecma262/#sec-string.prototype.padstart
|
|
4697
|
-
$$
|
|
4995
|
+
$$b({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
|
4698
4996
|
padStart: function padStart(maxLength /* , fillString = ' ' */) {
|
|
4699
4997
|
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
|
4700
4998
|
}
|
|
4701
4999
|
});
|
|
4702
5000
|
|
|
4703
|
-
var
|
|
4704
|
-
var iterate$1 = iterate$6;
|
|
4705
|
-
var aCallable$1 = aCallable$c;
|
|
4706
|
-
var anObject$5 = anObject$l;
|
|
4707
|
-
var getIteratorDirect$2 = getIteratorDirect$5;
|
|
4708
|
-
|
|
4709
|
-
// `Iterator.prototype.find` method
|
|
4710
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
4711
|
-
$$c({ target: 'Iterator', proto: true, real: true }, {
|
|
4712
|
-
find: function find(predicate) {
|
|
4713
|
-
anObject$5(this);
|
|
4714
|
-
aCallable$1(predicate);
|
|
4715
|
-
var record = getIteratorDirect$2(this);
|
|
4716
|
-
var counter = 0;
|
|
4717
|
-
return iterate$1(record, function (value, stop) {
|
|
4718
|
-
if (predicate(value, counter++)) return stop(value);
|
|
4719
|
-
}, { IS_RECORD: true, INTERRUPTED: true }).result;
|
|
4720
|
-
}
|
|
4721
|
-
});
|
|
4722
|
-
|
|
4723
|
-
var $$b = _export;
|
|
4724
|
-
var anObject$4 = anObject$l;
|
|
4725
|
-
var iterate = iterate$6;
|
|
4726
|
-
var getIteratorDirect$1 = getIteratorDirect$5;
|
|
4727
|
-
|
|
4728
|
-
var push$5 = [].push;
|
|
4729
|
-
|
|
4730
|
-
// `Iterator.prototype.toArray` method
|
|
4731
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
4732
|
-
$$b({ target: 'Iterator', proto: true, real: true }, {
|
|
4733
|
-
toArray: function toArray() {
|
|
4734
|
-
var result = [];
|
|
4735
|
-
iterate(getIteratorDirect$1(anObject$4(this)), push$5, { that: result, IS_RECORD: true });
|
|
4736
|
-
return result;
|
|
4737
|
-
}
|
|
4738
|
-
});
|
|
4739
|
-
|
|
4740
|
-
var fails$7 = fails$q;
|
|
5001
|
+
var fails$7 = fails$s;
|
|
4741
5002
|
var globalThis$7 = globalThis_1;
|
|
4742
5003
|
|
|
4743
5004
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
@@ -4765,7 +5026,7 @@ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$7(function () {
|
|
|
4765
5026
|
var regexpStickyHelpers = {
|
|
4766
5027
|
BROKEN_CARET: BROKEN_CARET};
|
|
4767
5028
|
|
|
4768
|
-
var fails$6 = fails$
|
|
5029
|
+
var fails$6 = fails$s;
|
|
4769
5030
|
var globalThis$6 = globalThis_1;
|
|
4770
5031
|
|
|
4771
5032
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
@@ -4776,7 +5037,7 @@ var regexpUnsupportedDotAll = fails$6(function () {
|
|
|
4776
5037
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
4777
5038
|
});
|
|
4778
5039
|
|
|
4779
|
-
var fails$5 = fails$
|
|
5040
|
+
var fails$5 = fails$s;
|
|
4780
5041
|
var globalThis$5 = globalThis_1;
|
|
4781
5042
|
|
|
4782
5043
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
@@ -4790,7 +5051,7 @@ var regexpUnsupportedNcg = fails$5(function () {
|
|
|
4790
5051
|
|
|
4791
5052
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
4792
5053
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
4793
|
-
var call$
|
|
5054
|
+
var call$8 = functionCall;
|
|
4794
5055
|
var uncurryThis$f = functionUncurryThis;
|
|
4795
5056
|
var toString$a = toString$e;
|
|
4796
5057
|
var regexpFlags = regexpFlags$1;
|
|
@@ -4812,8 +5073,8 @@ var stringSlice$7 = uncurryThis$f(''.slice);
|
|
|
4812
5073
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
4813
5074
|
var re1 = /a/;
|
|
4814
5075
|
var re2 = /b*/g;
|
|
4815
|
-
call$
|
|
4816
|
-
call$
|
|
5076
|
+
call$8(nativeExec, re1, 'a');
|
|
5077
|
+
call$8(nativeExec, re2, 'a');
|
|
4817
5078
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
4818
5079
|
})();
|
|
4819
5080
|
|
|
@@ -4824,24 +5085,35 @@ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
|
4824
5085
|
|
|
4825
5086
|
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
4826
5087
|
|
|
5088
|
+
var setGroups = function (re, groups) {
|
|
5089
|
+
var object = re.groups = create$1(null);
|
|
5090
|
+
for (var i = 0; i < groups.length; i++) {
|
|
5091
|
+
var group = groups[i];
|
|
5092
|
+
object[group[0]] = re[group[1]];
|
|
5093
|
+
}
|
|
5094
|
+
};
|
|
5095
|
+
|
|
4827
5096
|
if (PATCH) {
|
|
4828
5097
|
patchedExec = function exec(string) {
|
|
4829
5098
|
var re = this;
|
|
4830
5099
|
var state = getInternalState$1(re);
|
|
4831
5100
|
var str = toString$a(string);
|
|
4832
5101
|
var raw = state.raw;
|
|
4833
|
-
var result, reCopy, lastIndex
|
|
5102
|
+
var result, reCopy, lastIndex;
|
|
4834
5103
|
|
|
4835
5104
|
if (raw) {
|
|
4836
5105
|
raw.lastIndex = re.lastIndex;
|
|
4837
|
-
result = call$
|
|
5106
|
+
result = call$8(patchedExec, raw, str);
|
|
4838
5107
|
re.lastIndex = raw.lastIndex;
|
|
5108
|
+
|
|
5109
|
+
if (result && state.groups) setGroups(result, state.groups);
|
|
5110
|
+
|
|
4839
5111
|
return result;
|
|
4840
5112
|
}
|
|
4841
5113
|
|
|
4842
5114
|
var groups = state.groups;
|
|
4843
5115
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
4844
|
-
var flags = call$
|
|
5116
|
+
var flags = call$8(regexpFlags, re);
|
|
4845
5117
|
var source = re.source;
|
|
4846
5118
|
var charsAdded = 0;
|
|
4847
5119
|
var strCopy = str;
|
|
@@ -4854,8 +5126,10 @@ if (PATCH) {
|
|
|
4854
5126
|
|
|
4855
5127
|
strCopy = stringSlice$7(str, re.lastIndex);
|
|
4856
5128
|
// Support anchored sticky behavior.
|
|
4857
|
-
|
|
4858
|
-
|
|
5129
|
+
var prevChar = re.lastIndex > 0 && charAt$6(str, re.lastIndex - 1);
|
|
5130
|
+
if (re.lastIndex > 0 &&
|
|
5131
|
+
(!re.multiline || re.multiline && prevChar !== '\n' && prevChar !== '\r' && prevChar !== '\u2028' && prevChar !== '\u2029')) {
|
|
5132
|
+
source = '(?: (?:' + source + '))';
|
|
4859
5133
|
strCopy = ' ' + strCopy;
|
|
4860
5134
|
charsAdded++;
|
|
4861
5135
|
}
|
|
@@ -4869,11 +5143,11 @@ if (PATCH) {
|
|
|
4869
5143
|
}
|
|
4870
5144
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
4871
5145
|
|
|
4872
|
-
match = call$
|
|
5146
|
+
var match = call$8(nativeExec, sticky ? reCopy : re, strCopy);
|
|
4873
5147
|
|
|
4874
5148
|
if (sticky) {
|
|
4875
5149
|
if (match) {
|
|
4876
|
-
match.input =
|
|
5150
|
+
match.input = str;
|
|
4877
5151
|
match[0] = stringSlice$7(match[0], charsAdded);
|
|
4878
5152
|
match.index = re.lastIndex;
|
|
4879
5153
|
re.lastIndex += match[0].length;
|
|
@@ -4884,20 +5158,14 @@ if (PATCH) {
|
|
|
4884
5158
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
4885
5159
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
4886
5160
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
4887
|
-
call$
|
|
4888
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
5161
|
+
call$8(nativeReplace, match[0], reCopy, function () {
|
|
5162
|
+
for (var i = 1; i < arguments.length - 2; i++) {
|
|
4889
5163
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
4890
5164
|
}
|
|
4891
5165
|
});
|
|
4892
5166
|
}
|
|
4893
5167
|
|
|
4894
|
-
if (match && groups)
|
|
4895
|
-
match.groups = object = create$1(null);
|
|
4896
|
-
for (i = 0; i < groups.length; i++) {
|
|
4897
|
-
group = groups[i];
|
|
4898
|
-
object[group[0]] = match[group[1]];
|
|
4899
|
-
}
|
|
4900
|
-
}
|
|
5168
|
+
if (match && groups) setGroups(match, groups);
|
|
4901
5169
|
|
|
4902
5170
|
return match;
|
|
4903
5171
|
};
|
|
@@ -4916,10 +5184,10 @@ $$a({ target: 'RegExp', proto: true, forced: /./.exec !== exec$3 }, {
|
|
|
4916
5184
|
|
|
4917
5185
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
4918
5186
|
|
|
4919
|
-
var call$
|
|
5187
|
+
var call$7 = functionCall;
|
|
4920
5188
|
var defineBuiltIn$4 = defineBuiltIn$c;
|
|
4921
5189
|
var regexpExec$1 = regexpExec$2;
|
|
4922
|
-
var fails$4 = fails$
|
|
5190
|
+
var fails$4 = fails$s;
|
|
4923
5191
|
var wellKnownSymbol$3 = wellKnownSymbol$m;
|
|
4924
5192
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$9;
|
|
4925
5193
|
|
|
@@ -4932,6 +5200,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
4932
5200
|
var DELEGATES_TO_SYMBOL = !fails$4(function () {
|
|
4933
5201
|
// String methods call symbol-named RegExp methods
|
|
4934
5202
|
var O = {};
|
|
5203
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
4935
5204
|
O[SYMBOL] = function () { return 7; };
|
|
4936
5205
|
return ''[KEY](O) !== 7;
|
|
4937
5206
|
});
|
|
@@ -4945,12 +5214,13 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
4945
5214
|
// We can't use real regex here since it causes deoptimization
|
|
4946
5215
|
// and serious performance degradation in V8
|
|
4947
5216
|
// https://github.com/zloirock/core-js/issues/306
|
|
4948
|
-
re = {};
|
|
4949
5217
|
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
4950
5218
|
// a new one. We need to return the patched regex when creating the new one.
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
5219
|
+
var constructor = {};
|
|
5220
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
5221
|
+
constructor[SPECIES] = function () { return re; };
|
|
5222
|
+
re = { constructor: constructor, flags: '' };
|
|
5223
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
4954
5224
|
re[SYMBOL] = /./[SYMBOL];
|
|
4955
5225
|
}
|
|
4956
5226
|
|
|
@@ -4976,9 +5246,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
4976
5246
|
// The native String method already delegates to @@method (this
|
|
4977
5247
|
// polyfilled function), leasing to infinite recursion.
|
|
4978
5248
|
// We avoid it by directly calling the native @@method method.
|
|
4979
|
-
return { done: true, value: call$
|
|
5249
|
+
return { done: true, value: call$7(nativeRegExpMethod, regexp, str, arg2) };
|
|
4980
5250
|
}
|
|
4981
|
-
return { done: true, value: call$
|
|
5251
|
+
return { done: true, value: call$7(nativeMethod, str, regexp, arg2) };
|
|
4982
5252
|
}
|
|
4983
5253
|
return { done: false };
|
|
4984
5254
|
});
|
|
@@ -5032,7 +5302,7 @@ var charAt$4 = stringMultibyte.charAt;
|
|
|
5032
5302
|
// `AdvanceStringIndex` abstract operation
|
|
5033
5303
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
5034
5304
|
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
5035
|
-
return index + (unicode ? charAt$4(S, index).length : 1);
|
|
5305
|
+
return index + (unicode ? charAt$4(S, index).length || 1 : 1);
|
|
5036
5306
|
};
|
|
5037
5307
|
|
|
5038
5308
|
var uncurryThis$d = functionUncurryThis;
|
|
@@ -5081,35 +5351,35 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
5081
5351
|
});
|
|
5082
5352
|
};
|
|
5083
5353
|
|
|
5084
|
-
var call$
|
|
5354
|
+
var call$6 = functionCall;
|
|
5085
5355
|
var anObject$3 = anObject$l;
|
|
5086
5356
|
var isCallable$4 = isCallable$p;
|
|
5087
|
-
var classof$
|
|
5357
|
+
var classof$2 = classofRaw$2;
|
|
5088
5358
|
var regexpExec = regexpExec$2;
|
|
5089
5359
|
|
|
5090
|
-
var $TypeError = TypeError;
|
|
5360
|
+
var $TypeError$1 = TypeError;
|
|
5091
5361
|
|
|
5092
5362
|
// `RegExpExec` abstract operation
|
|
5093
5363
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
5094
5364
|
var regexpExecAbstract = function (R, S) {
|
|
5095
5365
|
var exec = R.exec;
|
|
5096
5366
|
if (isCallable$4(exec)) {
|
|
5097
|
-
var result = call$
|
|
5367
|
+
var result = call$6(exec, R, S);
|
|
5098
5368
|
if (result !== null) anObject$3(result);
|
|
5099
5369
|
return result;
|
|
5100
5370
|
}
|
|
5101
|
-
if (classof$
|
|
5102
|
-
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
5371
|
+
if (classof$2(R) === 'RegExp') return call$6(regexpExec, R, S);
|
|
5372
|
+
throw new $TypeError$1('RegExp#exec called on incompatible receiver');
|
|
5103
5373
|
};
|
|
5104
5374
|
|
|
5105
5375
|
var apply$1 = functionApply;
|
|
5106
|
-
var call$
|
|
5376
|
+
var call$5 = functionCall;
|
|
5107
5377
|
var uncurryThis$c = functionUncurryThis;
|
|
5108
5378
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
5109
|
-
var fails$3 = fails$
|
|
5379
|
+
var fails$3 = fails$s;
|
|
5110
5380
|
var anObject$2 = anObject$l;
|
|
5111
5381
|
var isCallable$3 = isCallable$p;
|
|
5112
|
-
var
|
|
5382
|
+
var isObject$3 = isObject$f;
|
|
5113
5383
|
var toIntegerOrInfinity = toIntegerOrInfinity$7;
|
|
5114
5384
|
var toLength$2 = toLength$5;
|
|
5115
5385
|
var toString$8 = toString$e;
|
|
@@ -5117,6 +5387,7 @@ var requireObjectCoercible$3 = requireObjectCoercible$b;
|
|
|
5117
5387
|
var advanceStringIndex = advanceStringIndex$1;
|
|
5118
5388
|
var getMethod = getMethod$5;
|
|
5119
5389
|
var getSubstitution = getSubstitution$1;
|
|
5390
|
+
var getRegExpFlags = regexpGetFlags;
|
|
5120
5391
|
var regExpExec = regexpExecAbstract;
|
|
5121
5392
|
var wellKnownSymbol$2 = wellKnownSymbol$m;
|
|
5122
5393
|
|
|
@@ -5167,10 +5438,10 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
5167
5438
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
5168
5439
|
function replace(searchValue, replaceValue) {
|
|
5169
5440
|
var O = requireObjectCoercible$3(this);
|
|
5170
|
-
var replacer =
|
|
5441
|
+
var replacer = isObject$3(searchValue) ? getMethod(searchValue, REPLACE) : undefined;
|
|
5171
5442
|
return replacer
|
|
5172
|
-
? call$
|
|
5173
|
-
: call$
|
|
5443
|
+
? call$5(replacer, searchValue, O, replaceValue)
|
|
5444
|
+
: call$5(nativeReplace, toString$8(O), searchValue, replaceValue);
|
|
5174
5445
|
},
|
|
5175
5446
|
// `RegExp.prototype[@@replace]` method
|
|
5176
5447
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
@@ -5178,22 +5449,24 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
5178
5449
|
var rx = anObject$2(this);
|
|
5179
5450
|
var S = toString$8(string);
|
|
5180
5451
|
|
|
5452
|
+
var functionalReplace = isCallable$3(replaceValue);
|
|
5453
|
+
if (!functionalReplace) replaceValue = toString$8(replaceValue);
|
|
5454
|
+
var flags = toString$8(getRegExpFlags(rx));
|
|
5455
|
+
|
|
5181
5456
|
if (
|
|
5182
5457
|
typeof replaceValue == 'string' &&
|
|
5183
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE)
|
|
5184
|
-
stringIndexOf(replaceValue, '$<')
|
|
5458
|
+
!~stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) &&
|
|
5459
|
+
!~stringIndexOf(replaceValue, '$<') &&
|
|
5460
|
+
!~stringIndexOf(flags, 'y')
|
|
5185
5461
|
) {
|
|
5186
5462
|
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
5187
5463
|
if (res.done) return res.value;
|
|
5188
5464
|
}
|
|
5189
5465
|
|
|
5190
|
-
var
|
|
5191
|
-
if (!functionalReplace) replaceValue = toString$8(replaceValue);
|
|
5192
|
-
|
|
5193
|
-
var global = rx.global;
|
|
5466
|
+
var global = !!~stringIndexOf(flags, 'g');
|
|
5194
5467
|
var fullUnicode;
|
|
5195
5468
|
if (global) {
|
|
5196
|
-
fullUnicode =
|
|
5469
|
+
fullUnicode = !!~stringIndexOf(flags, 'u') || !!~stringIndexOf(flags, 'v');
|
|
5197
5470
|
rx.lastIndex = 0;
|
|
5198
5471
|
}
|
|
5199
5472
|
|
|
@@ -5990,13 +6263,21 @@ const NavigationBar = Object.assign(NavigationBarRoot, {
|
|
|
5990
6263
|
});
|
|
5991
6264
|
|
|
5992
6265
|
var $$9 = _export;
|
|
5993
|
-
var call$
|
|
6266
|
+
var call$4 = functionCall;
|
|
5994
6267
|
var aCallable = aCallable$c;
|
|
5995
6268
|
var anObject$1 = anObject$l;
|
|
5996
6269
|
var getIteratorDirect = getIteratorDirect$5;
|
|
5997
6270
|
var createIteratorProxy = iteratorCreateProxy;
|
|
5998
6271
|
var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$3;
|
|
5999
|
-
var
|
|
6272
|
+
var iteratorClose$1 = iteratorClose$a;
|
|
6273
|
+
var iteratorHelperThrowsOnInvalidIterator = iteratorHelperThrowsOnInvalidIterator$2;
|
|
6274
|
+
var iteratorHelperWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$3;
|
|
6275
|
+
|
|
6276
|
+
var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !iteratorHelperThrowsOnInvalidIterator('filter', function () { /* empty */ });
|
|
6277
|
+
var filterWithoutClosingOnEarlyError = !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
|
6278
|
+
&& iteratorHelperWithoutClosingOnEarlyError('filter', TypeError);
|
|
6279
|
+
|
|
6280
|
+
var FORCED$1 = FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError;
|
|
6000
6281
|
|
|
6001
6282
|
var IteratorProxy = createIteratorProxy(function () {
|
|
6002
6283
|
var iterator = this.iterator;
|
|
@@ -6004,7 +6285,7 @@ var IteratorProxy = createIteratorProxy(function () {
|
|
|
6004
6285
|
var next = this.next;
|
|
6005
6286
|
var result, done, value;
|
|
6006
6287
|
while (true) {
|
|
6007
|
-
result = anObject$1(call$
|
|
6288
|
+
result = anObject$1(call$4(next, iterator));
|
|
6008
6289
|
done = this.done = !!result.done;
|
|
6009
6290
|
if (done) return;
|
|
6010
6291
|
value = result.value;
|
|
@@ -6013,11 +6294,18 @@ var IteratorProxy = createIteratorProxy(function () {
|
|
|
6013
6294
|
});
|
|
6014
6295
|
|
|
6015
6296
|
// `Iterator.prototype.filter` method
|
|
6016
|
-
// https://
|
|
6017
|
-
$$9({ target: 'Iterator', proto: true, real: true, forced:
|
|
6297
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.filter
|
|
6298
|
+
$$9({ target: 'Iterator', proto: true, real: true, forced: FORCED$1 }, {
|
|
6018
6299
|
filter: function filter(predicate) {
|
|
6019
6300
|
anObject$1(this);
|
|
6020
|
-
|
|
6301
|
+
try {
|
|
6302
|
+
aCallable(predicate);
|
|
6303
|
+
} catch (error) {
|
|
6304
|
+
iteratorClose$1(this, 'throw', error);
|
|
6305
|
+
}
|
|
6306
|
+
|
|
6307
|
+
if (filterWithoutClosingOnEarlyError) return call$4(filterWithoutClosingOnEarlyError, this, predicate);
|
|
6308
|
+
|
|
6021
6309
|
return new IteratorProxy(getIteratorDirect(this), {
|
|
6022
6310
|
predicate: predicate
|
|
6023
6311
|
});
|
|
@@ -6375,8 +6663,9 @@ const useSidebarItemStyles = tss.withParams().create(function createSidebarItemS
|
|
|
6375
6663
|
});
|
|
6376
6664
|
|
|
6377
6665
|
var $$8 = _export;
|
|
6378
|
-
var DESCRIPTORS$
|
|
6666
|
+
var DESCRIPTORS$6 = descriptors;
|
|
6379
6667
|
var globalThis$4 = globalThis_1;
|
|
6668
|
+
var call$3 = functionCall;
|
|
6380
6669
|
var uncurryThis$b = functionUncurryThis;
|
|
6381
6670
|
var hasOwn$3 = hasOwnProperty_1;
|
|
6382
6671
|
var isCallable$2 = isCallable$p;
|
|
@@ -6388,7 +6677,7 @@ var copyConstructorProperties$1 = copyConstructorProperties$3;
|
|
|
6388
6677
|
var NativeSymbol = globalThis$4.Symbol;
|
|
6389
6678
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
6390
6679
|
|
|
6391
|
-
if (DESCRIPTORS$
|
|
6680
|
+
if (DESCRIPTORS$6 && isCallable$2(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
6392
6681
|
// Safari 12 bug
|
|
6393
6682
|
NativeSymbol().description !== undefined
|
|
6394
6683
|
)) {
|
|
@@ -6397,7 +6686,7 @@ if (DESCRIPTORS$5 && isCallable$2(NativeSymbol) && (!('description' in SymbolPro
|
|
|
6397
6686
|
var SymbolWrapper = function Symbol() {
|
|
6398
6687
|
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$7(arguments[0]);
|
|
6399
6688
|
var result = isPrototypeOf$1(SymbolPrototype, this)
|
|
6400
|
-
// eslint-disable-next-line
|
|
6689
|
+
// eslint-disable-next-line sonarjs/inconsistent-function-call -- ok
|
|
6401
6690
|
? new NativeSymbol(description)
|
|
6402
6691
|
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
6403
6692
|
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
@@ -6406,6 +6695,14 @@ if (DESCRIPTORS$5 && isCallable$2(NativeSymbol) && (!('description' in SymbolPro
|
|
|
6406
6695
|
};
|
|
6407
6696
|
|
|
6408
6697
|
copyConstructorProperties$1(SymbolWrapper, NativeSymbol);
|
|
6698
|
+
// wrap Symbol.for for correct handling of empty string descriptions
|
|
6699
|
+
var nativeFor = SymbolWrapper['for'];
|
|
6700
|
+
SymbolWrapper['for'] = { 'for': function (key) {
|
|
6701
|
+
var stringKey = toString$7(key);
|
|
6702
|
+
var symbol = call$3(nativeFor, this, stringKey);
|
|
6703
|
+
if (stringKey === '') EmptyStringDescriptionStore[symbol] = true;
|
|
6704
|
+
return symbol;
|
|
6705
|
+
} }['for'];
|
|
6409
6706
|
SymbolWrapper.prototype = SymbolPrototype;
|
|
6410
6707
|
SymbolPrototype.constructor = SymbolWrapper;
|
|
6411
6708
|
|
|
@@ -7034,7 +7331,7 @@ var proxyAccessor$1 = function (Target, Source, key) {
|
|
|
7034
7331
|
};
|
|
7035
7332
|
|
|
7036
7333
|
var isCallable$1 = isCallable$p;
|
|
7037
|
-
var isObject$2 = isObject$
|
|
7334
|
+
var isObject$2 = isObject$f;
|
|
7038
7335
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
7039
7336
|
|
|
7040
7337
|
// makes subclassing work correct for wrapped built-ins
|
|
@@ -7058,11 +7355,11 @@ var normalizeStringArgument$1 = function (argument, $default) {
|
|
|
7058
7355
|
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$6(argument);
|
|
7059
7356
|
};
|
|
7060
7357
|
|
|
7061
|
-
var isObject$1 = isObject$
|
|
7358
|
+
var isObject$1 = isObject$f;
|
|
7062
7359
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$9;
|
|
7063
7360
|
|
|
7064
7361
|
// `InstallErrorCause` abstract operation
|
|
7065
|
-
// https://tc39.es/
|
|
7362
|
+
// https://tc39.es/ecma262/#sec-installerrorcause
|
|
7066
7363
|
var installErrorCause$1 = function (O, options) {
|
|
7067
7364
|
if (isObject$1(options) && 'cause' in options) {
|
|
7068
7365
|
createNonEnumerableProperty$2(O, 'cause', options.cause);
|
|
@@ -7075,7 +7372,7 @@ var $Error = Error;
|
|
|
7075
7372
|
var replace$4 = uncurryThis$a(''.replace);
|
|
7076
7373
|
|
|
7077
7374
|
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
7078
|
-
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
7375
|
+
// eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe
|
|
7079
7376
|
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
7080
7377
|
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
7081
7378
|
|
|
@@ -7085,7 +7382,7 @@ var errorStackClear = function (stack, dropEntries) {
|
|
|
7085
7382
|
} return stack;
|
|
7086
7383
|
};
|
|
7087
7384
|
|
|
7088
|
-
var fails$2 = fails$
|
|
7385
|
+
var fails$2 = fails$s;
|
|
7089
7386
|
var createPropertyDescriptor$1 = createPropertyDescriptor$6;
|
|
7090
7387
|
|
|
7091
7388
|
var errorStackInstallable = !fails$2(function () {
|
|
@@ -7101,6 +7398,7 @@ var clearErrorStack = errorStackClear;
|
|
|
7101
7398
|
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
7102
7399
|
|
|
7103
7400
|
// non-standard V8
|
|
7401
|
+
// eslint-disable-next-line es/no-nonstandard-error-properties -- safe
|
|
7104
7402
|
var captureStackTrace = Error.captureStackTrace;
|
|
7105
7403
|
|
|
7106
7404
|
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
@@ -7121,7 +7419,7 @@ var inheritIfRequired = inheritIfRequired$1;
|
|
|
7121
7419
|
var normalizeStringArgument = normalizeStringArgument$1;
|
|
7122
7420
|
var installErrorCause = installErrorCause$1;
|
|
7123
7421
|
var installErrorStack = errorStackInstall;
|
|
7124
|
-
var DESCRIPTORS$
|
|
7422
|
+
var DESCRIPTORS$5 = descriptors;
|
|
7125
7423
|
|
|
7126
7424
|
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
7127
7425
|
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
@@ -7156,7 +7454,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
7156
7454
|
if (ERROR_NAME !== 'Error') {
|
|
7157
7455
|
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
7158
7456
|
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
7159
|
-
} else if (DESCRIPTORS$
|
|
7457
|
+
} else if (DESCRIPTORS$5 && STACK_TRACE_LIMIT in OriginalError) {
|
|
7160
7458
|
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
7161
7459
|
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
7162
7460
|
}
|
|
@@ -7188,6 +7486,7 @@ var FORCED = new Error('e', { cause: 7 }).cause !== 7;
|
|
|
7188
7486
|
|
|
7189
7487
|
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
7190
7488
|
var O = {};
|
|
7489
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
7191
7490
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
7192
7491
|
$$7({ global: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
7193
7492
|
};
|
|
@@ -7195,6 +7494,7 @@ var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
|
7195
7494
|
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
7196
7495
|
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
7197
7496
|
var O = {};
|
|
7497
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
7198
7498
|
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
7199
7499
|
$$7({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);
|
|
7200
7500
|
}
|
|
@@ -7989,7 +8289,7 @@ var stringTrim = {
|
|
|
7989
8289
|
};
|
|
7990
8290
|
|
|
7991
8291
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
7992
|
-
var fails$1 = fails$
|
|
8292
|
+
var fails$1 = fails$s;
|
|
7993
8293
|
var whitespaces = whitespaces$2;
|
|
7994
8294
|
|
|
7995
8295
|
var non = '\u200B\u0085\u180E';
|
|
@@ -8415,7 +8715,7 @@ function hasSufficientLevel(requiredLevel, currentLevel) {
|
|
|
8415
8715
|
|
|
8416
8716
|
var $$5 = _export;
|
|
8417
8717
|
var uncurryThis$8 = functionUncurryThisClause;
|
|
8418
|
-
var getOwnPropertyDescriptor$
|
|
8718
|
+
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
8419
8719
|
var toLength$1 = toLength$5;
|
|
8420
8720
|
var toString$4 = toString$e;
|
|
8421
8721
|
var notARegExp$1 = notARegexp;
|
|
@@ -8428,7 +8728,7 @@ var min$1 = Math.min;
|
|
|
8428
8728
|
var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegExpLogic$1('endsWith');
|
|
8429
8729
|
// https://github.com/zloirock/core-js/pull/702
|
|
8430
8730
|
var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () {
|
|
8431
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
8731
|
+
var descriptor = getOwnPropertyDescriptor$2(String.prototype, 'endsWith');
|
|
8432
8732
|
return descriptor && !descriptor.writable;
|
|
8433
8733
|
}();
|
|
8434
8734
|
|
|
@@ -8438,17 +8738,17 @@ $$5({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_
|
|
|
8438
8738
|
endsWith: function endsWith(searchString /* , endPosition = @length */) {
|
|
8439
8739
|
var that = toString$4(requireObjectCoercible$1(this));
|
|
8440
8740
|
notARegExp$1(searchString);
|
|
8741
|
+
var search = toString$4(searchString);
|
|
8441
8742
|
var endPosition = arguments.length > 1 ? arguments[1] : undefined;
|
|
8442
8743
|
var len = that.length;
|
|
8443
8744
|
var end = endPosition === undefined ? len : min$1(toLength$1(endPosition), len);
|
|
8444
|
-
var search = toString$4(searchString);
|
|
8445
8745
|
return slice(that, end - search.length, end) === search;
|
|
8446
8746
|
}
|
|
8447
8747
|
});
|
|
8448
8748
|
|
|
8449
8749
|
var $$4 = _export;
|
|
8450
8750
|
var uncurryThis$7 = functionUncurryThisClause;
|
|
8451
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
8751
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
8452
8752
|
var toLength = toLength$5;
|
|
8453
8753
|
var toString$3 = toString$e;
|
|
8454
8754
|
var notARegExp = notARegexp;
|
|
@@ -8461,7 +8761,7 @@ var min = Math.min;
|
|
|
8461
8761
|
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
|
|
8462
8762
|
// https://github.com/zloirock/core-js/pull/702
|
|
8463
8763
|
var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
8464
|
-
var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
|
|
8764
|
+
var descriptor = getOwnPropertyDescriptor$1(String.prototype, 'startsWith');
|
|
8465
8765
|
return descriptor && !descriptor.writable;
|
|
8466
8766
|
}();
|
|
8467
8767
|
|
|
@@ -8471,8 +8771,8 @@ $$4({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
|
|
|
8471
8771
|
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
8472
8772
|
var that = toString$3(requireObjectCoercible(this));
|
|
8473
8773
|
notARegExp(searchString);
|
|
8474
|
-
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
8475
8774
|
var search = toString$3(searchString);
|
|
8775
|
+
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
8476
8776
|
return stringSlice$2(that, index, index + search.length) === search;
|
|
8477
8777
|
}
|
|
8478
8778
|
});
|
|
@@ -8508,9 +8808,9 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
8508
8808
|
return createIterResultObject$1(point, false);
|
|
8509
8809
|
});
|
|
8510
8810
|
|
|
8511
|
-
var fails = fails$
|
|
8811
|
+
var fails = fails$s;
|
|
8512
8812
|
var wellKnownSymbol$1 = wellKnownSymbol$m;
|
|
8513
|
-
var DESCRIPTORS$
|
|
8813
|
+
var DESCRIPTORS$4 = descriptors;
|
|
8514
8814
|
var IS_PURE = isPure;
|
|
8515
8815
|
|
|
8516
8816
|
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
@@ -8531,7 +8831,7 @@ var urlConstructorDetection = !fails(function () {
|
|
|
8531
8831
|
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
8532
8832
|
params2['delete']('b', undefined);
|
|
8533
8833
|
return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
|
|
8534
|
-
|| (!params.size && (IS_PURE || !DESCRIPTORS$
|
|
8834
|
+
|| (!params.size && (IS_PURE || !DESCRIPTORS$4))
|
|
8535
8835
|
|| !params.sort
|
|
8536
8836
|
|| url.href !== 'https://a/c%20d?a=1&c=3'
|
|
8537
8837
|
|| params.get('c') !== '3'
|
|
@@ -8550,6 +8850,42 @@ var urlConstructorDetection = !fails(function () {
|
|
|
8550
8850
|
|| new URL('https://x', undefined).host !== 'x';
|
|
8551
8851
|
});
|
|
8552
8852
|
|
|
8853
|
+
var classof$1 = classofRaw$2;
|
|
8854
|
+
|
|
8855
|
+
// `IsArray` abstract operation
|
|
8856
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
8857
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
8858
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
8859
|
+
return classof$1(argument) === 'Array';
|
|
8860
|
+
};
|
|
8861
|
+
|
|
8862
|
+
var DESCRIPTORS$3 = descriptors;
|
|
8863
|
+
var isArray = isArray$1;
|
|
8864
|
+
|
|
8865
|
+
var $TypeError = TypeError;
|
|
8866
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
8867
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
8868
|
+
|
|
8869
|
+
// Safari < 13 does not throw an error in this case
|
|
8870
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$3 && !function () {
|
|
8871
|
+
// makes no sense without proper strict mode support
|
|
8872
|
+
if (this !== undefined) return true;
|
|
8873
|
+
try {
|
|
8874
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
8875
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
8876
|
+
} catch (error) {
|
|
8877
|
+
return error instanceof TypeError;
|
|
8878
|
+
}
|
|
8879
|
+
}();
|
|
8880
|
+
|
|
8881
|
+
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
8882
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
8883
|
+
throw new $TypeError('Cannot set read only .length');
|
|
8884
|
+
} return O.length = length;
|
|
8885
|
+
} : function (O, length) {
|
|
8886
|
+
return O.length = length;
|
|
8887
|
+
};
|
|
8888
|
+
|
|
8553
8889
|
var bind$2 = functionBindContext;
|
|
8554
8890
|
var call$2 = functionCall;
|
|
8555
8891
|
var toObject = toObject$5;
|
|
@@ -8557,21 +8893,23 @@ var callWithSafeIterationClosing = callWithSafeIterationClosing$3;
|
|
|
8557
8893
|
var isArrayIteratorMethod = isArrayIteratorMethod$2;
|
|
8558
8894
|
var isConstructor = isConstructor$2;
|
|
8559
8895
|
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
8560
|
-
var createProperty = createProperty$
|
|
8896
|
+
var createProperty = createProperty$3;
|
|
8897
|
+
var setArrayLength = arraySetLength;
|
|
8561
8898
|
var getIterator$1 = getIterator$3;
|
|
8562
8899
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
8900
|
+
var iteratorClose = iteratorClose$a;
|
|
8563
8901
|
|
|
8564
8902
|
var $Array = Array;
|
|
8565
8903
|
|
|
8566
8904
|
// `Array.from` method implementation
|
|
8567
8905
|
// https://tc39.es/ecma262/#sec-array.from
|
|
8568
8906
|
var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
|
|
8569
|
-
var O = toObject(arrayLike);
|
|
8570
8907
|
var IS_CONSTRUCTOR = isConstructor(this);
|
|
8571
8908
|
var argumentsLength = arguments.length;
|
|
8572
8909
|
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
|
8573
8910
|
var mapping = mapfn !== undefined;
|
|
8574
8911
|
if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
|
|
8912
|
+
var O = toObject(arrayLike);
|
|
8575
8913
|
var iteratorMethod = getIteratorMethod$1(O);
|
|
8576
8914
|
var index = 0;
|
|
8577
8915
|
var length, result, step, iterator, next, value;
|
|
@@ -8582,7 +8920,11 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
8582
8920
|
next = iterator.next;
|
|
8583
8921
|
for (;!(step = call$2(next, iterator)).done; index++) {
|
|
8584
8922
|
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
|
8585
|
-
|
|
8923
|
+
try {
|
|
8924
|
+
createProperty(result, index, value);
|
|
8925
|
+
} catch (error) {
|
|
8926
|
+
iteratorClose(iterator, 'throw', error);
|
|
8927
|
+
}
|
|
8586
8928
|
}
|
|
8587
8929
|
} else {
|
|
8588
8930
|
length = lengthOfArrayLike(O);
|
|
@@ -8592,7 +8934,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
8592
8934
|
createProperty(result, index, value);
|
|
8593
8935
|
}
|
|
8594
8936
|
}
|
|
8595
|
-
result
|
|
8937
|
+
setArrayLength(result, index);
|
|
8596
8938
|
return result;
|
|
8597
8939
|
};
|
|
8598
8940
|
|
|
@@ -8800,9 +9142,9 @@ $$3({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
|
|
|
8800
9142
|
var i = 0;
|
|
8801
9143
|
var code;
|
|
8802
9144
|
while (length > i) {
|
|
8803
|
-
code = +arguments[i
|
|
9145
|
+
code = +arguments[i];
|
|
8804
9146
|
if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw new $RangeError(code + ' is not a valid code point');
|
|
8805
|
-
elements[i] = code < 0x10000
|
|
9147
|
+
elements[i++] = code < 0x10000
|
|
8806
9148
|
? fromCharCode$1(code)
|
|
8807
9149
|
: fromCharCode$1(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00);
|
|
8808
9150
|
} return join$2(elements, '');
|
|
@@ -8872,9 +9214,9 @@ var anInstance$1 = anInstance$4;
|
|
|
8872
9214
|
var isCallable = isCallable$p;
|
|
8873
9215
|
var hasOwn$1 = hasOwnProperty_1;
|
|
8874
9216
|
var bind$1 = functionBindContext;
|
|
8875
|
-
var classof = classof$
|
|
9217
|
+
var classof = classof$7;
|
|
8876
9218
|
var anObject = anObject$l;
|
|
8877
|
-
var isObject = isObject$
|
|
9219
|
+
var isObject = isObject$f;
|
|
8878
9220
|
var $toString$1 = toString$e;
|
|
8879
9221
|
var create = objectCreate;
|
|
8880
9222
|
var createPropertyDescriptor = createPropertyDescriptor$6;
|
|
@@ -8933,8 +9275,9 @@ var getLeadingOnes = function (octet) {
|
|
|
8933
9275
|
|
|
8934
9276
|
var utf8Decode = function (octets) {
|
|
8935
9277
|
var codePoint = null;
|
|
9278
|
+
var length = octets.length;
|
|
8936
9279
|
|
|
8937
|
-
switch (
|
|
9280
|
+
switch (length) {
|
|
8938
9281
|
case 1:
|
|
8939
9282
|
codePoint = octets[0];
|
|
8940
9283
|
break;
|
|
@@ -8949,9 +9292,17 @@ var utf8Decode = function (octets) {
|
|
|
8949
9292
|
break;
|
|
8950
9293
|
}
|
|
8951
9294
|
|
|
8952
|
-
|
|
9295
|
+
// reject surrogates, overlong encodings, and out-of-range codepoints
|
|
9296
|
+
if (codePoint === null
|
|
9297
|
+
|| codePoint > 0x10FFFF
|
|
9298
|
+
|| (codePoint >= 0xD800 && codePoint <= 0xDFFF)
|
|
9299
|
+
|| codePoint < (length > 3 ? 0x10000 : length > 2 ? 0x800 : length > 1 ? 0x80 : 0)
|
|
9300
|
+
) return null;
|
|
9301
|
+
|
|
9302
|
+
return codePoint;
|
|
8953
9303
|
};
|
|
8954
9304
|
|
|
9305
|
+
/* eslint-disable max-statements, max-depth -- ok */
|
|
8955
9306
|
var decode = function (input) {
|
|
8956
9307
|
input = replace$1(input, plus, ' ');
|
|
8957
9308
|
var length = input.length;
|
|
@@ -8999,11 +9350,15 @@ var decode = function (input) {
|
|
|
8999
9350
|
var nextByte = parseHexOctet(input, i + 1);
|
|
9000
9351
|
|
|
9001
9352
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
9002
|
-
if (nextByte !== nextByte)
|
|
9003
|
-
|
|
9004
|
-
|
|
9353
|
+
if (nextByte !== nextByte || nextByte > 191 || nextByte < 128) break;
|
|
9354
|
+
|
|
9355
|
+
// https://encoding.spec.whatwg.org/#utf-8-decoder - position-specific byte ranges
|
|
9356
|
+
if (sequenceIndex === 1) {
|
|
9357
|
+
if (octet === 0xE0 && nextByte < 0xA0) break;
|
|
9358
|
+
if (octet === 0xED && nextByte > 0x9F) break;
|
|
9359
|
+
if (octet === 0xF0 && nextByte < 0x90) break;
|
|
9360
|
+
if (octet === 0xF4 && nextByte > 0x8F) break;
|
|
9005
9361
|
}
|
|
9006
|
-
if (nextByte > 191 || nextByte < 128) break;
|
|
9007
9362
|
|
|
9008
9363
|
push$2(octets, nextByte);
|
|
9009
9364
|
i += 2;
|
|
@@ -9017,7 +9372,9 @@ var decode = function (input) {
|
|
|
9017
9372
|
|
|
9018
9373
|
var codePoint = utf8Decode(octets);
|
|
9019
9374
|
if (codePoint === null) {
|
|
9020
|
-
result += FALLBACK_REPLACER;
|
|
9375
|
+
for (var replacement = 0; replacement < byteSequenceLength; replacement++) result += FALLBACK_REPLACER;
|
|
9376
|
+
i++;
|
|
9377
|
+
continue;
|
|
9021
9378
|
} else {
|
|
9022
9379
|
decodedChar = fromCodePoint(codePoint);
|
|
9023
9380
|
}
|
|
@@ -9030,6 +9387,7 @@ var decode = function (input) {
|
|
|
9030
9387
|
|
|
9031
9388
|
return result;
|
|
9032
9389
|
};
|
|
9390
|
+
/* eslint-enable max-statements, max-depth -- ok */
|
|
9033
9391
|
|
|
9034
9392
|
var find = /[!'()~]|%20/g;
|
|
9035
9393
|
|
|
@@ -9165,7 +9523,7 @@ defineBuiltIns(URLSearchParamsPrototype$3, {
|
|
|
9165
9523
|
var state = getInternalParamsState(this);
|
|
9166
9524
|
validateArgumentsLength$3(arguments.length, 2);
|
|
9167
9525
|
push$2(state.entries, { key: $toString$1(name), value: $toString$1(value) });
|
|
9168
|
-
if (!DESCRIPTORS$2) this.
|
|
9526
|
+
if (!DESCRIPTORS$2) this.size++;
|
|
9169
9527
|
state.updateURL();
|
|
9170
9528
|
},
|
|
9171
9529
|
// `URLSearchParams.prototype.delete` method
|
|
@@ -9182,7 +9540,6 @@ defineBuiltIns(URLSearchParamsPrototype$3, {
|
|
|
9182
9540
|
var entry = entries[index];
|
|
9183
9541
|
if (entry.key === key && (value === undefined || entry.value === value)) {
|
|
9184
9542
|
splice(entries, index, 1);
|
|
9185
|
-
if (value !== undefined) break;
|
|
9186
9543
|
} else index++;
|
|
9187
9544
|
}
|
|
9188
9545
|
if (!DESCRIPTORS$2) this.size = entries.length;
|
|
@@ -9232,7 +9589,7 @@ defineBuiltIns(URLSearchParamsPrototype$3, {
|
|
|
9232
9589
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
|
9233
9590
|
set: function set(name, value) {
|
|
9234
9591
|
var state = getInternalParamsState(this);
|
|
9235
|
-
validateArgumentsLength$3(arguments.length,
|
|
9592
|
+
validateArgumentsLength$3(arguments.length, 2);
|
|
9236
9593
|
var entries = state.entries;
|
|
9237
9594
|
var found = false;
|
|
9238
9595
|
var key = $toString$1(name);
|
|
@@ -9297,7 +9654,7 @@ defineBuiltIn$3(URLSearchParamsPrototype$3, 'toString', function toString() {
|
|
|
9297
9654
|
}, { enumerable: true });
|
|
9298
9655
|
|
|
9299
9656
|
// `URLSearchParams.prototype.size` getter
|
|
9300
|
-
// https://
|
|
9657
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-size
|
|
9301
9658
|
if (DESCRIPTORS$2) defineBuiltInAccessor$2(URLSearchParamsPrototype$3, 'size', {
|
|
9302
9659
|
get: function size() {
|
|
9303
9660
|
return getInternalParamsState(this).entries.length;
|
|
@@ -9392,13 +9749,14 @@ var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
|
|
9392
9749
|
|
|
9393
9750
|
var NativeURL = globalThis$1.URL;
|
|
9394
9751
|
var TypeError$1 = globalThis$1.TypeError;
|
|
9752
|
+
var encodeURIComponent = globalThis$1.encodeURIComponent;
|
|
9395
9753
|
var parseInt$1 = globalThis$1.parseInt;
|
|
9396
9754
|
var floor = Math.floor;
|
|
9397
9755
|
var pow = Math.pow;
|
|
9398
9756
|
var charAt = uncurryThis$3(''.charAt);
|
|
9399
9757
|
var exec = uncurryThis$3(/./.exec);
|
|
9400
9758
|
var join = uncurryThis$3([].join);
|
|
9401
|
-
var numberToString = uncurryThis$3(1.
|
|
9759
|
+
var numberToString = uncurryThis$3(1.1.toString);
|
|
9402
9760
|
var pop = uncurryThis$3([].pop);
|
|
9403
9761
|
var push$1 = uncurryThis$3([].push);
|
|
9404
9762
|
var replace = uncurryThis$3(''.replace);
|
|
@@ -9414,8 +9772,7 @@ var INVALID_HOST = 'Invalid host';
|
|
|
9414
9772
|
var INVALID_PORT = 'Invalid port';
|
|
9415
9773
|
|
|
9416
9774
|
var ALPHA = /[a-z]/i;
|
|
9417
|
-
|
|
9418
|
-
var ALPHANUMERIC = /[\d+-.a-z]/i;
|
|
9775
|
+
var ALPHANUMERIC_PLUS_MINUS_DOT = /[\d+\-.a-z]/i;
|
|
9419
9776
|
var DIGIT = /\d/;
|
|
9420
9777
|
var HEX_START = /^0x/i;
|
|
9421
9778
|
var OCT = /^[0-7]+$/;
|
|
@@ -9428,9 +9785,27 @@ var LEADING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/;
|
|
|
9428
9785
|
var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;
|
|
9429
9786
|
var TAB_AND_NEW_LINE = /[\t\n\r]/g;
|
|
9430
9787
|
/* eslint-enable regexp/no-control-character -- safe */
|
|
9788
|
+
// eslint-disable-next-line no-unassigned-vars -- expected `undefined` value
|
|
9431
9789
|
var EOF;
|
|
9432
9790
|
|
|
9433
|
-
// https://url.spec.whatwg.org/#
|
|
9791
|
+
// https://url.spec.whatwg.org/#ends-in-a-number-checker
|
|
9792
|
+
var endsInNumber = function (input) {
|
|
9793
|
+
var parts = split(input, '.');
|
|
9794
|
+
var last, hexPart;
|
|
9795
|
+
if (parts[parts.length - 1] === '') {
|
|
9796
|
+
if (parts.length === 1) return false;
|
|
9797
|
+
parts.length--;
|
|
9798
|
+
}
|
|
9799
|
+
last = parts[parts.length - 1];
|
|
9800
|
+
if (exec(DEC, last)) return true;
|
|
9801
|
+
if (exec(HEX_START, last)) {
|
|
9802
|
+
hexPart = stringSlice(last, 2);
|
|
9803
|
+
return hexPart === '' || !!exec(HEX, hexPart);
|
|
9804
|
+
}
|
|
9805
|
+
return false;
|
|
9806
|
+
};
|
|
9807
|
+
|
|
9808
|
+
// https://url.spec.whatwg.org/#concept-ipv4-parser
|
|
9434
9809
|
var parseIPv4 = function (input) {
|
|
9435
9810
|
var parts = split(input, '.');
|
|
9436
9811
|
var partsLength, numbers, index, part, radix, number, ipv4;
|
|
@@ -9438,11 +9813,11 @@ var parseIPv4 = function (input) {
|
|
|
9438
9813
|
parts.length--;
|
|
9439
9814
|
}
|
|
9440
9815
|
partsLength = parts.length;
|
|
9441
|
-
if (partsLength > 4) return
|
|
9816
|
+
if (partsLength > 4) return null;
|
|
9442
9817
|
numbers = [];
|
|
9443
9818
|
for (index = 0; index < partsLength; index++) {
|
|
9444
9819
|
part = parts[index];
|
|
9445
|
-
if (part === '') return
|
|
9820
|
+
if (part === '') return null;
|
|
9446
9821
|
radix = 10;
|
|
9447
9822
|
if (part.length > 1 && charAt(part, 0) === '0') {
|
|
9448
9823
|
radix = exec(HEX_START, part) ? 16 : 8;
|
|
@@ -9451,7 +9826,7 @@ var parseIPv4 = function (input) {
|
|
|
9451
9826
|
if (part === '') {
|
|
9452
9827
|
number = 0;
|
|
9453
9828
|
} else {
|
|
9454
|
-
if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return
|
|
9829
|
+
if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return null;
|
|
9455
9830
|
number = parseInt$1(part, radix);
|
|
9456
9831
|
}
|
|
9457
9832
|
push$1(numbers, number);
|
|
@@ -9605,11 +9980,17 @@ var serializeHost = function (host) {
|
|
|
9605
9980
|
};
|
|
9606
9981
|
|
|
9607
9982
|
var C0ControlPercentEncodeSet = {};
|
|
9983
|
+
var queryPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
|
|
9984
|
+
' ': 1, '"': 1, '#': 1, '<': 1, '>': 1
|
|
9985
|
+
});
|
|
9986
|
+
var specialQueryPercentEncodeSet = assign({}, queryPercentEncodeSet, {
|
|
9987
|
+
"'": 1
|
|
9988
|
+
});
|
|
9608
9989
|
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
|
|
9609
9990
|
' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
|
|
9610
9991
|
});
|
|
9611
9992
|
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
|
|
9612
|
-
'#': 1, '?': 1, '{': 1, '}': 1
|
|
9993
|
+
'#': 1, '?': 1, '{': 1, '}': 1, '^': 1
|
|
9613
9994
|
});
|
|
9614
9995
|
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
|
|
9615
9996
|
'/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
|
|
@@ -9617,7 +9998,8 @@ var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
|
|
|
9617
9998
|
|
|
9618
9999
|
var percentEncode = function (chr, set) {
|
|
9619
10000
|
var code = codeAt(chr, 0);
|
|
9620
|
-
|
|
10001
|
+
// encodeURIComponent does not encode ', which is in the special-query percent-encode set
|
|
10002
|
+
return code >= 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : chr === "'" && hasOwn(set, chr) ? '%27' : encodeURIComponent(chr);
|
|
9621
10003
|
};
|
|
9622
10004
|
|
|
9623
10005
|
// https://url.spec.whatwg.org/#special-scheme
|
|
@@ -9745,13 +10127,13 @@ URLState.prototype = {
|
|
|
9745
10127
|
break;
|
|
9746
10128
|
|
|
9747
10129
|
case SCHEME:
|
|
9748
|
-
if (chr &&
|
|
10130
|
+
if (chr && exec(ALPHANUMERIC_PLUS_MINUS_DOT, chr)) {
|
|
9749
10131
|
buffer += toLowerCase(chr);
|
|
9750
10132
|
} else if (chr === ':') {
|
|
9751
10133
|
if (stateOverride && (
|
|
9752
10134
|
(url.isSpecial() !== hasOwn(specialSchemes, buffer)) ||
|
|
9753
10135
|
(buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
9754
|
-
(url.scheme === 'file' &&
|
|
10136
|
+
(url.scheme === 'file' && url.host === '')
|
|
9755
10137
|
)) return;
|
|
9756
10138
|
url.scheme = buffer;
|
|
9757
10139
|
if (stateOverride) {
|
|
@@ -9847,7 +10229,7 @@ URLState.prototype = {
|
|
|
9847
10229
|
url.host = base.host;
|
|
9848
10230
|
url.port = base.port;
|
|
9849
10231
|
url.path = arraySlice(base.path);
|
|
9850
|
-
url.path.length--;
|
|
10232
|
+
if (url.path.length) url.path.length--;
|
|
9851
10233
|
state = PATH;
|
|
9852
10234
|
continue;
|
|
9853
10235
|
} break;
|
|
@@ -9868,7 +10250,7 @@ URLState.prototype = {
|
|
|
9868
10250
|
|
|
9869
10251
|
case SPECIAL_AUTHORITY_SLASHES:
|
|
9870
10252
|
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
9871
|
-
if (chr !== '/' ||
|
|
10253
|
+
if (chr !== '/' || codePoints[pointer + 1] !== '/') continue;
|
|
9872
10254
|
pointer++;
|
|
9873
10255
|
break;
|
|
9874
10256
|
|
|
@@ -9912,11 +10294,11 @@ URLState.prototype = {
|
|
|
9912
10294
|
continue;
|
|
9913
10295
|
} else if (chr === ':' && !seenBracket) {
|
|
9914
10296
|
if (buffer === '') return INVALID_HOST;
|
|
10297
|
+
if (stateOverride === HOSTNAME) return;
|
|
9915
10298
|
failure = url.parseHost(buffer);
|
|
9916
10299
|
if (failure) return failure;
|
|
9917
10300
|
buffer = '';
|
|
9918
10301
|
state = PORT;
|
|
9919
|
-
if (stateOverride === HOSTNAME) return;
|
|
9920
10302
|
} else if (
|
|
9921
10303
|
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
9922
10304
|
(chr === '\\' && url.isSpecial())
|
|
@@ -9957,6 +10339,7 @@ URLState.prototype = {
|
|
|
9957
10339
|
|
|
9958
10340
|
case FILE:
|
|
9959
10341
|
url.scheme = 'file';
|
|
10342
|
+
url.host = '';
|
|
9960
10343
|
if (chr === '/' || chr === '\\') state = FILE_SLASH;
|
|
9961
10344
|
else if (base && base.scheme === 'file') {
|
|
9962
10345
|
switch (chr) {
|
|
@@ -9979,8 +10362,8 @@ URLState.prototype = {
|
|
|
9979
10362
|
state = FRAGMENT;
|
|
9980
10363
|
break;
|
|
9981
10364
|
default:
|
|
10365
|
+
url.host = base.host;
|
|
9982
10366
|
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
9983
|
-
url.host = base.host;
|
|
9984
10367
|
url.path = arraySlice(base.path);
|
|
9985
10368
|
url.shortenPath();
|
|
9986
10369
|
}
|
|
@@ -9997,9 +10380,10 @@ URLState.prototype = {
|
|
|
9997
10380
|
state = FILE_HOST;
|
|
9998
10381
|
break;
|
|
9999
10382
|
}
|
|
10000
|
-
if (base && base.scheme === 'file'
|
|
10001
|
-
|
|
10002
|
-
|
|
10383
|
+
if (base && base.scheme === 'file') {
|
|
10384
|
+
url.host = base.host;
|
|
10385
|
+
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))
|
|
10386
|
+
&& isWindowsDriveLetter(base.path[0], true)) push$1(url.path, base.path[0]);
|
|
10003
10387
|
}
|
|
10004
10388
|
state = PATH;
|
|
10005
10389
|
continue;
|
|
@@ -10055,7 +10439,7 @@ URLState.prototype = {
|
|
|
10055
10439
|
}
|
|
10056
10440
|
} else {
|
|
10057
10441
|
if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
|
|
10058
|
-
if (url.host) url.host = '';
|
|
10442
|
+
if (url.host !== null && url.host !== '') url.host = '';
|
|
10059
10443
|
buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
|
|
10060
10444
|
}
|
|
10061
10445
|
push$1(url.path, buffer);
|
|
@@ -10093,9 +10477,7 @@ URLState.prototype = {
|
|
|
10093
10477
|
url.fragment = '';
|
|
10094
10478
|
state = FRAGMENT;
|
|
10095
10479
|
} else if (chr !== EOF) {
|
|
10096
|
-
|
|
10097
|
-
else if (chr === '#') url.query += '%23';
|
|
10098
|
-
else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
|
|
10480
|
+
url.query += percentEncode(chr, url.isSpecial() ? specialQueryPercentEncodeSet : queryPercentEncodeSet);
|
|
10099
10481
|
} break;
|
|
10100
10482
|
|
|
10101
10483
|
case FRAGMENT:
|
|
@@ -10126,14 +10508,18 @@ URLState.prototype = {
|
|
|
10126
10508
|
} else {
|
|
10127
10509
|
input = toASCII(input);
|
|
10128
10510
|
if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10511
|
+
if (endsInNumber(input)) {
|
|
10512
|
+
result = parseIPv4(input);
|
|
10513
|
+
if (result === null) return INVALID_HOST;
|
|
10514
|
+
this.host = result;
|
|
10515
|
+
} else {
|
|
10516
|
+
this.host = input;
|
|
10517
|
+
}
|
|
10132
10518
|
}
|
|
10133
10519
|
},
|
|
10134
10520
|
// https://url.spec.whatwg.org/#cannot-have-a-username-password-port
|
|
10135
10521
|
cannotHaveUsernamePasswordPort: function () {
|
|
10136
|
-
return
|
|
10522
|
+
return this.host === null || this.host === '' || this.cannotBeABaseURL || this.scheme === 'file';
|
|
10137
10523
|
},
|
|
10138
10524
|
// https://url.spec.whatwg.org/#include-credentials
|
|
10139
10525
|
includesCredentials: function () {
|
|
@@ -10171,6 +10557,7 @@ URLState.prototype = {
|
|
|
10171
10557
|
output += serializeHost(host);
|
|
10172
10558
|
if (port !== null) output += ':' + port;
|
|
10173
10559
|
} else if (scheme === 'file') output += '//';
|
|
10560
|
+
if (host === null && !url.cannotBeABaseURL && path.length > 1 && path[0] === '') output += '/.';
|
|
10174
10561
|
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
|
|
10175
10562
|
if (query !== null) output += '?' + query;
|
|
10176
10563
|
if (fragment !== null) output += '#' + fragment;
|
|
@@ -10187,7 +10574,7 @@ URLState.prototype = {
|
|
|
10187
10574
|
var scheme = this.scheme;
|
|
10188
10575
|
var port = this.port;
|
|
10189
10576
|
if (scheme === 'blob') try {
|
|
10190
|
-
return new URLConstructor(
|
|
10577
|
+
return new URLConstructor(this.path[0]).origin;
|
|
10191
10578
|
} catch (error) {
|
|
10192
10579
|
return 'null';
|
|
10193
10580
|
}
|
|
@@ -10454,19 +10841,16 @@ if (params$1 + '' !== 'a=2') {
|
|
|
10454
10841
|
var key = toString$1(name);
|
|
10455
10842
|
var value = toString$1($value);
|
|
10456
10843
|
var index = 0;
|
|
10457
|
-
var dindex = 0;
|
|
10458
|
-
var found = false;
|
|
10459
10844
|
var entriesLength = entries.length;
|
|
10460
10845
|
var entry;
|
|
10461
10846
|
while (index < entriesLength) {
|
|
10462
|
-
entry = entries[index
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
$delete(this, entry.key);
|
|
10466
|
-
} else dindex++;
|
|
10847
|
+
entry = entries[index];
|
|
10848
|
+
$delete(this, entry.key);
|
|
10849
|
+
index++;
|
|
10467
10850
|
}
|
|
10468
|
-
|
|
10469
|
-
|
|
10851
|
+
index = 0;
|
|
10852
|
+
while (index < entriesLength) {
|
|
10853
|
+
entry = entries[index++];
|
|
10470
10854
|
if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
|
|
10471
10855
|
}
|
|
10472
10856
|
}, { enumerable: true, unsafe: true });
|