@opengeoweb/metronome 9.32.1 → 9.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +75 -1770
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -1,1740 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
return
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
8
|
-
var globalThis_1 =
|
|
9
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
10
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
11
|
-
check(typeof window == 'object' && window) ||
|
|
12
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
13
|
-
check(typeof self == 'object' && self) ||
|
|
14
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
15
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
16
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
17
|
-
(function () { return this; })() || Function('return this')();
|
|
18
|
-
|
|
19
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
20
|
-
|
|
21
|
-
var fails$c = function (exec) {
|
|
22
|
-
try {
|
|
23
|
-
return !!exec();
|
|
24
|
-
} catch (error) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var fails$b = fails$c;
|
|
30
|
-
|
|
31
|
-
// Detect IE8's incomplete defineProperty implementation
|
|
32
|
-
var descriptors = !fails$b(function () {
|
|
33
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
34
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
var fails$a = fails$c;
|
|
38
|
-
|
|
39
|
-
var functionBindNative = !fails$a(function () {
|
|
40
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
41
|
-
var test = (function () { /* empty */ }).bind();
|
|
42
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
43
|
-
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
47
|
-
|
|
48
|
-
var call$5 = Function.prototype.call;
|
|
49
|
-
|
|
50
|
-
var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
|
|
51
|
-
return call$5.apply(call$5, arguments);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
var objectPropertyIsEnumerable = {};
|
|
55
|
-
|
|
56
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
57
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
58
|
-
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
59
|
-
|
|
60
|
-
// Nashorn ~ JDK8 bug
|
|
61
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
62
|
-
|
|
63
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
64
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
65
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
66
|
-
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
67
|
-
return !!descriptor && descriptor.enumerable;
|
|
68
|
-
} : $propertyIsEnumerable;
|
|
69
|
-
|
|
70
|
-
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
71
|
-
return {
|
|
72
|
-
enumerable: !(bitmap & 1),
|
|
73
|
-
configurable: !(bitmap & 2),
|
|
74
|
-
writable: !(bitmap & 4),
|
|
75
|
-
value: value
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
var NATIVE_BIND = functionBindNative;
|
|
80
|
-
|
|
81
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
82
|
-
var call$4 = FunctionPrototype$1.call;
|
|
83
|
-
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
|
|
84
|
-
|
|
85
|
-
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
86
|
-
return function () {
|
|
87
|
-
return call$4.apply(fn, arguments);
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
var uncurryThis$a = functionUncurryThis;
|
|
92
|
-
|
|
93
|
-
var toString$3 = uncurryThis$a({}.toString);
|
|
94
|
-
var stringSlice$1 = uncurryThis$a(''.slice);
|
|
95
|
-
|
|
96
|
-
var classofRaw$1 = function (it) {
|
|
97
|
-
return stringSlice$1(toString$3(it), 8, -1);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
var uncurryThis$9 = functionUncurryThis;
|
|
101
|
-
var fails$9 = fails$c;
|
|
102
|
-
var classof$3 = classofRaw$1;
|
|
103
|
-
|
|
104
|
-
var $Object$4 = Object;
|
|
105
|
-
var split = uncurryThis$9(''.split);
|
|
106
|
-
|
|
107
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
108
|
-
var indexedObject = fails$9(function () {
|
|
109
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
110
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
111
|
-
return !$Object$4('z').propertyIsEnumerable(0);
|
|
112
|
-
}) ? function (it) {
|
|
113
|
-
return classof$3(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
114
|
-
} : $Object$4;
|
|
115
|
-
|
|
116
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
117
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
118
|
-
var isNullOrUndefined$2 = function (it) {
|
|
119
|
-
return it === null || it === undefined;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
123
|
-
|
|
124
|
-
var $TypeError$8 = TypeError;
|
|
125
|
-
|
|
126
|
-
// `RequireObjectCoercible` abstract operation
|
|
127
|
-
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
128
|
-
var requireObjectCoercible$4 = function (it) {
|
|
129
|
-
if (isNullOrUndefined$1(it)) throw new $TypeError$8("Can't call method on " + it);
|
|
130
|
-
return it;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
134
|
-
var IndexedObject = indexedObject;
|
|
135
|
-
var requireObjectCoercible$3 = requireObjectCoercible$4;
|
|
136
|
-
|
|
137
|
-
var toIndexedObject$5 = function (it) {
|
|
138
|
-
return IndexedObject(requireObjectCoercible$3(it));
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
142
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
143
|
-
|
|
144
|
-
// `IsCallable` abstract operation
|
|
145
|
-
// https://tc39.es/ecma262/#sec-iscallable
|
|
146
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
147
|
-
var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
148
|
-
return typeof argument == 'function' || argument === documentAll;
|
|
149
|
-
} : function (argument) {
|
|
150
|
-
return typeof argument == 'function';
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
var isCallable$d = isCallable$e;
|
|
154
|
-
|
|
155
|
-
var isObject$8 = function (it) {
|
|
156
|
-
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
var globalThis$c = globalThis_1;
|
|
160
|
-
var isCallable$c = isCallable$e;
|
|
161
|
-
|
|
162
|
-
var aFunction = function (argument) {
|
|
163
|
-
return isCallable$c(argument) ? argument : undefined;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
var getBuiltIn$3 = function (namespace, method) {
|
|
167
|
-
return arguments.length < 2 ? aFunction(globalThis$c[namespace]) : globalThis$c[namespace] && globalThis$c[namespace][method];
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
var uncurryThis$8 = functionUncurryThis;
|
|
171
|
-
|
|
172
|
-
var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
|
|
173
|
-
|
|
174
|
-
var globalThis$b = globalThis_1;
|
|
175
|
-
|
|
176
|
-
var navigator = globalThis$b.navigator;
|
|
177
|
-
var userAgent$1 = navigator && navigator.userAgent;
|
|
178
|
-
|
|
179
|
-
var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
|
|
180
|
-
|
|
181
|
-
var globalThis$a = globalThis_1;
|
|
182
|
-
var userAgent = environmentUserAgent;
|
|
183
|
-
|
|
184
|
-
var process = globalThis$a.process;
|
|
185
|
-
var Deno = globalThis$a.Deno;
|
|
186
|
-
var versions = process && process.versions || Deno && Deno.version;
|
|
187
|
-
var v8 = versions && versions.v8;
|
|
188
|
-
var match, version;
|
|
189
|
-
|
|
190
|
-
if (v8) {
|
|
191
|
-
match = v8.split('.');
|
|
192
|
-
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
193
|
-
// but their correct versions are not interesting for us
|
|
194
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
198
|
-
// so check `userAgent` even if `.v8` exists, but 0
|
|
199
|
-
if (!version && userAgent) {
|
|
200
|
-
match = userAgent.match(/Edge\/(\d+)/);
|
|
201
|
-
if (!match || match[1] >= 74) {
|
|
202
|
-
match = userAgent.match(/Chrome\/(\d+)/);
|
|
203
|
-
if (match) version = +match[1];
|
|
204
|
-
}
|
|
1
|
+
function _arrayLikeToArray(r, a) {
|
|
2
|
+
(null == a || a > r.length) && (a = r.length);
|
|
3
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
4
|
+
return n;
|
|
205
5
|
}
|
|
206
|
-
|
|
207
|
-
var
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
var
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
var symbol = Symbol('symbol detection');
|
|
219
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
|
220
|
-
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
221
|
-
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
222
|
-
// of course, fail.
|
|
223
|
-
return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
224
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
225
|
-
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
229
|
-
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
230
|
-
|
|
231
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1 &&
|
|
232
|
-
!Symbol.sham &&
|
|
233
|
-
typeof Symbol.iterator == 'symbol';
|
|
234
|
-
|
|
235
|
-
var getBuiltIn$2 = getBuiltIn$3;
|
|
236
|
-
var isCallable$b = isCallable$e;
|
|
237
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
238
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
239
|
-
|
|
240
|
-
var $Object$3 = Object;
|
|
241
|
-
|
|
242
|
-
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
243
|
-
return typeof it == 'symbol';
|
|
244
|
-
} : function (it) {
|
|
245
|
-
var $Symbol = getBuiltIn$2('Symbol');
|
|
246
|
-
return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
var $String$4 = String;
|
|
250
|
-
|
|
251
|
-
var tryToString$1 = function (argument) {
|
|
252
|
-
try {
|
|
253
|
-
return $String$4(argument);
|
|
254
|
-
} catch (error) {
|
|
255
|
-
return 'Object';
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
var isCallable$a = isCallable$e;
|
|
260
|
-
var tryToString = tryToString$1;
|
|
261
|
-
|
|
262
|
-
var $TypeError$7 = TypeError;
|
|
263
|
-
|
|
264
|
-
// `Assert: IsCallable(argument) is true`
|
|
265
|
-
var aCallable$2 = function (argument) {
|
|
266
|
-
if (isCallable$a(argument)) return argument;
|
|
267
|
-
throw new $TypeError$7(tryToString(argument) + ' is not a function');
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
var aCallable$1 = aCallable$2;
|
|
271
|
-
var isNullOrUndefined = isNullOrUndefined$2;
|
|
272
|
-
|
|
273
|
-
// `GetMethod` abstract operation
|
|
274
|
-
// https://tc39.es/ecma262/#sec-getmethod
|
|
275
|
-
var getMethod$1 = function (V, P) {
|
|
276
|
-
var func = V[P];
|
|
277
|
-
return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
var call$3 = functionCall;
|
|
281
|
-
var isCallable$9 = isCallable$e;
|
|
282
|
-
var isObject$7 = isObject$8;
|
|
283
|
-
|
|
284
|
-
var $TypeError$6 = TypeError;
|
|
285
|
-
|
|
286
|
-
// `OrdinaryToPrimitive` abstract operation
|
|
287
|
-
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
288
|
-
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
289
|
-
var fn, val;
|
|
290
|
-
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
|
|
291
|
-
if (isCallable$9(fn = input.valueOf) && !isObject$7(val = call$3(fn, input))) return val;
|
|
292
|
-
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
|
|
293
|
-
throw new $TypeError$6("Can't convert object to primitive value");
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
var sharedStore = {exports: {}};
|
|
297
|
-
|
|
298
|
-
var globalThis$8 = globalThis_1;
|
|
299
|
-
|
|
300
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
301
|
-
var defineProperty$4 = Object.defineProperty;
|
|
302
|
-
|
|
303
|
-
var defineGlobalProperty$3 = function (key, value) {
|
|
304
|
-
try {
|
|
305
|
-
defineProperty$4(globalThis$8, key, { value: value, configurable: true, writable: true });
|
|
306
|
-
} catch (error) {
|
|
307
|
-
globalThis$8[key] = value;
|
|
308
|
-
} return value;
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
var globalThis$7 = globalThis_1;
|
|
312
|
-
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
313
|
-
|
|
314
|
-
var SHARED = '__core-js_shared__';
|
|
315
|
-
var store$3 = sharedStore.exports = globalThis$7[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
316
|
-
|
|
317
|
-
(store$3.versions || (store$3.versions = [])).push({
|
|
318
|
-
version: '3.39.0',
|
|
319
|
-
mode: 'global',
|
|
320
|
-
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
321
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE',
|
|
322
|
-
source: 'https://github.com/zloirock/core-js'
|
|
323
|
-
});
|
|
324
|
-
|
|
325
|
-
var sharedStoreExports = sharedStore.exports;
|
|
326
|
-
|
|
327
|
-
var store$2 = sharedStoreExports;
|
|
328
|
-
|
|
329
|
-
var shared$3 = function (key, value) {
|
|
330
|
-
return store$2[key] || (store$2[key] = value || {});
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
334
|
-
|
|
335
|
-
var $Object$2 = Object;
|
|
336
|
-
|
|
337
|
-
// `ToObject` abstract operation
|
|
338
|
-
// https://tc39.es/ecma262/#sec-toobject
|
|
339
|
-
var toObject$4 = function (argument) {
|
|
340
|
-
return $Object$2(requireObjectCoercible$2(argument));
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
var uncurryThis$7 = functionUncurryThis;
|
|
344
|
-
var toObject$3 = toObject$4;
|
|
345
|
-
|
|
346
|
-
var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
|
|
347
|
-
|
|
348
|
-
// `HasOwnProperty` abstract operation
|
|
349
|
-
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
350
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
351
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
352
|
-
return hasOwnProperty(toObject$3(it), key);
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
var uncurryThis$6 = functionUncurryThis;
|
|
356
|
-
|
|
357
|
-
var id = 0;
|
|
358
|
-
var postfix = Math.random();
|
|
359
|
-
var toString$2 = uncurryThis$6(1.0.toString);
|
|
360
|
-
|
|
361
|
-
var uid$2 = function (key) {
|
|
362
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
var globalThis$6 = globalThis_1;
|
|
366
|
-
var shared$2 = shared$3;
|
|
367
|
-
var hasOwn$8 = hasOwnProperty_1;
|
|
368
|
-
var uid$1 = uid$2;
|
|
369
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
370
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
371
|
-
|
|
372
|
-
var Symbol$1 = globalThis$6.Symbol;
|
|
373
|
-
var WellKnownSymbolsStore = shared$2('wks');
|
|
374
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
375
|
-
|
|
376
|
-
var wellKnownSymbol$8 = function (name) {
|
|
377
|
-
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
378
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
|
|
379
|
-
? Symbol$1[name]
|
|
380
|
-
: createWellKnownSymbol('Symbol.' + name);
|
|
381
|
-
} return WellKnownSymbolsStore[name];
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
var call$2 = functionCall;
|
|
385
|
-
var isObject$6 = isObject$8;
|
|
386
|
-
var isSymbol$1 = isSymbol$2;
|
|
387
|
-
var getMethod = getMethod$1;
|
|
388
|
-
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
389
|
-
var wellKnownSymbol$7 = wellKnownSymbol$8;
|
|
390
|
-
|
|
391
|
-
var $TypeError$5 = TypeError;
|
|
392
|
-
var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
|
|
393
|
-
|
|
394
|
-
// `ToPrimitive` abstract operation
|
|
395
|
-
// https://tc39.es/ecma262/#sec-toprimitive
|
|
396
|
-
var toPrimitive$1 = function (input, pref) {
|
|
397
|
-
if (!isObject$6(input) || isSymbol$1(input)) return input;
|
|
398
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
399
|
-
var result;
|
|
400
|
-
if (exoticToPrim) {
|
|
401
|
-
if (pref === undefined) pref = 'default';
|
|
402
|
-
result = call$2(exoticToPrim, input, pref);
|
|
403
|
-
if (!isObject$6(result) || isSymbol$1(result)) return result;
|
|
404
|
-
throw new $TypeError$5("Can't convert object to primitive value");
|
|
405
|
-
}
|
|
406
|
-
if (pref === undefined) pref = 'number';
|
|
407
|
-
return ordinaryToPrimitive(input, pref);
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
var toPrimitive = toPrimitive$1;
|
|
411
|
-
var isSymbol = isSymbol$2;
|
|
412
|
-
|
|
413
|
-
// `ToPropertyKey` abstract operation
|
|
414
|
-
// https://tc39.es/ecma262/#sec-topropertykey
|
|
415
|
-
var toPropertyKey$2 = function (argument) {
|
|
416
|
-
var key = toPrimitive(argument, 'string');
|
|
417
|
-
return isSymbol(key) ? key : key + '';
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
var globalThis$5 = globalThis_1;
|
|
421
|
-
var isObject$5 = isObject$8;
|
|
422
|
-
|
|
423
|
-
var document$1 = globalThis$5.document;
|
|
424
|
-
// typeof document.createElement is 'object' in old IE
|
|
425
|
-
var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
|
|
426
|
-
|
|
427
|
-
var documentCreateElement$2 = function (it) {
|
|
428
|
-
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
var DESCRIPTORS$9 = descriptors;
|
|
432
|
-
var fails$7 = fails$c;
|
|
433
|
-
var createElement = documentCreateElement$2;
|
|
434
|
-
|
|
435
|
-
// Thanks to IE8 for its funny defineProperty
|
|
436
|
-
var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
|
|
437
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
438
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
439
|
-
get: function () { return 7; }
|
|
440
|
-
}).a !== 7;
|
|
441
|
-
});
|
|
442
|
-
|
|
443
|
-
var DESCRIPTORS$8 = descriptors;
|
|
444
|
-
var call$1 = functionCall;
|
|
445
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
446
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
447
|
-
var toIndexedObject$4 = toIndexedObject$5;
|
|
448
|
-
var toPropertyKey$1 = toPropertyKey$2;
|
|
449
|
-
var hasOwn$7 = hasOwnProperty_1;
|
|
450
|
-
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
451
|
-
|
|
452
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
453
|
-
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
454
|
-
|
|
455
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
456
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
457
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
458
|
-
O = toIndexedObject$4(O);
|
|
459
|
-
P = toPropertyKey$1(P);
|
|
460
|
-
if (IE8_DOM_DEFINE$1) try {
|
|
461
|
-
return $getOwnPropertyDescriptor$1(O, P);
|
|
462
|
-
} catch (error) { /* empty */ }
|
|
463
|
-
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
var objectDefineProperty = {};
|
|
467
|
-
|
|
468
|
-
var DESCRIPTORS$7 = descriptors;
|
|
469
|
-
var fails$6 = fails$c;
|
|
470
|
-
|
|
471
|
-
// V8 ~ Chrome 36-
|
|
472
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
473
|
-
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
|
|
474
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
475
|
-
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
476
|
-
value: 42,
|
|
477
|
-
writable: false
|
|
478
|
-
}).prototype !== 42;
|
|
479
|
-
});
|
|
480
|
-
|
|
481
|
-
var isObject$4 = isObject$8;
|
|
482
|
-
|
|
483
|
-
var $String$3 = String;
|
|
484
|
-
var $TypeError$4 = TypeError;
|
|
485
|
-
|
|
486
|
-
// `Assert: Type(argument) is Object`
|
|
487
|
-
var anObject$4 = function (argument) {
|
|
488
|
-
if (isObject$4(argument)) return argument;
|
|
489
|
-
throw new $TypeError$4($String$3(argument) + ' is not an object');
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
var DESCRIPTORS$6 = descriptors;
|
|
493
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
494
|
-
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
495
|
-
var anObject$3 = anObject$4;
|
|
496
|
-
var toPropertyKey = toPropertyKey$2;
|
|
497
|
-
|
|
498
|
-
var $TypeError$3 = TypeError;
|
|
499
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
500
|
-
var $defineProperty = Object.defineProperty;
|
|
501
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
502
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
503
|
-
var ENUMERABLE = 'enumerable';
|
|
504
|
-
var CONFIGURABLE$1 = 'configurable';
|
|
505
|
-
var WRITABLE = 'writable';
|
|
506
|
-
|
|
507
|
-
// `Object.defineProperty` method
|
|
508
|
-
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
509
|
-
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
510
|
-
anObject$3(O);
|
|
511
|
-
P = toPropertyKey(P);
|
|
512
|
-
anObject$3(Attributes);
|
|
513
|
-
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
514
|
-
var current = $getOwnPropertyDescriptor(O, P);
|
|
515
|
-
if (current && current[WRITABLE]) {
|
|
516
|
-
O[P] = Attributes.value;
|
|
517
|
-
Attributes = {
|
|
518
|
-
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
|
519
|
-
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
520
|
-
writable: false
|
|
6
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
7
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
9
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e ) {
|
|
10
|
+
t && (r = t);
|
|
11
|
+
var o = 0;
|
|
12
|
+
return function () {
|
|
13
|
+
return o >= r.length ? {
|
|
14
|
+
done: !0
|
|
15
|
+
} : {
|
|
16
|
+
done: !1,
|
|
17
|
+
value: r[o++]
|
|
521
18
|
};
|
|
522
|
-
}
|
|
523
|
-
} return $defineProperty(O, P, Attributes);
|
|
524
|
-
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
525
|
-
anObject$3(O);
|
|
526
|
-
P = toPropertyKey(P);
|
|
527
|
-
anObject$3(Attributes);
|
|
528
|
-
if (IE8_DOM_DEFINE) try {
|
|
529
|
-
return $defineProperty(O, P, Attributes);
|
|
530
|
-
} catch (error) { /* empty */ }
|
|
531
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$3('Accessors not supported');
|
|
532
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
533
|
-
return O;
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
var DESCRIPTORS$5 = descriptors;
|
|
537
|
-
var definePropertyModule$3 = objectDefineProperty;
|
|
538
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
539
|
-
|
|
540
|
-
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
541
|
-
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
542
|
-
} : function (object, key, value) {
|
|
543
|
-
object[key] = value;
|
|
544
|
-
return object;
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
var makeBuiltIn$2 = {exports: {}};
|
|
548
|
-
|
|
549
|
-
var DESCRIPTORS$4 = descriptors;
|
|
550
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
551
|
-
|
|
552
|
-
var FunctionPrototype = Function.prototype;
|
|
553
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
554
|
-
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
555
|
-
|
|
556
|
-
var EXISTS = hasOwn$6(FunctionPrototype, 'name');
|
|
557
|
-
// additional protection from minified / mangled / dropped function names
|
|
558
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
559
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
560
|
-
|
|
561
|
-
var functionName = {
|
|
562
|
-
EXISTS: EXISTS,
|
|
563
|
-
PROPER: PROPER,
|
|
564
|
-
CONFIGURABLE: CONFIGURABLE
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
568
|
-
var isCallable$8 = isCallable$e;
|
|
569
|
-
var store$1 = sharedStoreExports;
|
|
570
|
-
|
|
571
|
-
var functionToString = uncurryThis$5(Function.toString);
|
|
572
|
-
|
|
573
|
-
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
574
|
-
if (!isCallable$8(store$1.inspectSource)) {
|
|
575
|
-
store$1.inspectSource = function (it) {
|
|
576
|
-
return functionToString(it);
|
|
577
|
-
};
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
var inspectSource$1 = store$1.inspectSource;
|
|
581
|
-
|
|
582
|
-
var globalThis$4 = globalThis_1;
|
|
583
|
-
var isCallable$7 = isCallable$e;
|
|
584
|
-
|
|
585
|
-
var WeakMap$1 = globalThis$4.WeakMap;
|
|
586
|
-
|
|
587
|
-
var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
588
|
-
|
|
589
|
-
var shared$1 = shared$3;
|
|
590
|
-
var uid = uid$2;
|
|
591
|
-
|
|
592
|
-
var keys = shared$1('keys');
|
|
593
|
-
|
|
594
|
-
var sharedKey$3 = function (key) {
|
|
595
|
-
return keys[key] || (keys[key] = uid(key));
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
var hiddenKeys$4 = {};
|
|
599
|
-
|
|
600
|
-
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
601
|
-
var globalThis$3 = globalThis_1;
|
|
602
|
-
var isObject$3 = isObject$8;
|
|
603
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
604
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
605
|
-
var shared = sharedStoreExports;
|
|
606
|
-
var sharedKey$2 = sharedKey$3;
|
|
607
|
-
var hiddenKeys$3 = hiddenKeys$4;
|
|
608
|
-
|
|
609
|
-
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
610
|
-
var TypeError$1 = globalThis$3.TypeError;
|
|
611
|
-
var WeakMap = globalThis$3.WeakMap;
|
|
612
|
-
var set, get, has;
|
|
613
|
-
|
|
614
|
-
var enforce = function (it) {
|
|
615
|
-
return has(it) ? get(it) : set(it, {});
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
var getterFor = function (TYPE) {
|
|
619
|
-
return function (it) {
|
|
620
|
-
var state;
|
|
621
|
-
if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
|
|
622
|
-
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
623
|
-
} return state;
|
|
624
|
-
};
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
628
|
-
var store = shared.state || (shared.state = new WeakMap());
|
|
629
|
-
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
630
|
-
store.get = store.get;
|
|
631
|
-
store.has = store.has;
|
|
632
|
-
store.set = store.set;
|
|
633
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
634
|
-
set = function (it, metadata) {
|
|
635
|
-
if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
636
|
-
metadata.facade = it;
|
|
637
|
-
store.set(it, metadata);
|
|
638
|
-
return metadata;
|
|
639
|
-
};
|
|
640
|
-
get = function (it) {
|
|
641
|
-
return store.get(it) || {};
|
|
642
|
-
};
|
|
643
|
-
has = function (it) {
|
|
644
|
-
return store.has(it);
|
|
645
|
-
};
|
|
646
|
-
} else {
|
|
647
|
-
var STATE = sharedKey$2('state');
|
|
648
|
-
hiddenKeys$3[STATE] = true;
|
|
649
|
-
set = function (it, metadata) {
|
|
650
|
-
if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
651
|
-
metadata.facade = it;
|
|
652
|
-
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
653
|
-
return metadata;
|
|
654
|
-
};
|
|
655
|
-
get = function (it) {
|
|
656
|
-
return hasOwn$5(it, STATE) ? it[STATE] : {};
|
|
657
|
-
};
|
|
658
|
-
has = function (it) {
|
|
659
|
-
return hasOwn$5(it, STATE);
|
|
660
|
-
};
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
var internalState = {
|
|
664
|
-
set: set,
|
|
665
|
-
get: get,
|
|
666
|
-
has: has,
|
|
667
|
-
enforce: enforce,
|
|
668
|
-
getterFor: getterFor
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
672
|
-
var fails$5 = fails$c;
|
|
673
|
-
var isCallable$6 = isCallable$e;
|
|
674
|
-
var hasOwn$4 = hasOwnProperty_1;
|
|
675
|
-
var DESCRIPTORS$3 = descriptors;
|
|
676
|
-
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
677
|
-
var inspectSource = inspectSource$1;
|
|
678
|
-
var InternalStateModule$1 = internalState;
|
|
679
|
-
|
|
680
|
-
var enforceInternalState = InternalStateModule$1.enforce;
|
|
681
|
-
var getInternalState$1 = InternalStateModule$1.get;
|
|
682
|
-
var $String$2 = String;
|
|
683
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
684
|
-
var defineProperty$3 = Object.defineProperty;
|
|
685
|
-
var stringSlice = uncurryThis$4(''.slice);
|
|
686
|
-
var replace = uncurryThis$4(''.replace);
|
|
687
|
-
var join = uncurryThis$4([].join);
|
|
688
|
-
|
|
689
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
|
|
690
|
-
return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
691
|
-
});
|
|
692
|
-
|
|
693
|
-
var TEMPLATE = String(String).split('String');
|
|
694
|
-
|
|
695
|
-
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
696
|
-
if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
|
|
697
|
-
name = '[' + replace($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
698
|
-
}
|
|
699
|
-
if (options && options.getter) name = 'get ' + name;
|
|
700
|
-
if (options && options.setter) name = 'set ' + name;
|
|
701
|
-
if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
702
|
-
if (DESCRIPTORS$3) defineProperty$3(value, 'name', { value: name, configurable: true });
|
|
703
|
-
else value.name = name;
|
|
704
|
-
}
|
|
705
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
|
|
706
|
-
defineProperty$3(value, 'length', { value: options.arity });
|
|
707
|
-
}
|
|
708
|
-
try {
|
|
709
|
-
if (options && hasOwn$4(options, 'constructor') && options.constructor) {
|
|
710
|
-
if (DESCRIPTORS$3) defineProperty$3(value, 'prototype', { writable: false });
|
|
711
|
-
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
712
|
-
} else if (value.prototype) value.prototype = undefined;
|
|
713
|
-
} catch (error) { /* empty */ }
|
|
714
|
-
var state = enforceInternalState(value);
|
|
715
|
-
if (!hasOwn$4(state, 'source')) {
|
|
716
|
-
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
717
|
-
} return value;
|
|
718
|
-
};
|
|
719
|
-
|
|
720
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
721
|
-
// eslint-disable-next-line no-extend-native -- required
|
|
722
|
-
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
723
|
-
return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
|
|
724
|
-
}, 'toString');
|
|
725
|
-
|
|
726
|
-
var makeBuiltInExports = makeBuiltIn$2.exports;
|
|
727
|
-
|
|
728
|
-
var isCallable$5 = isCallable$e;
|
|
729
|
-
var definePropertyModule$2 = objectDefineProperty;
|
|
730
|
-
var makeBuiltIn = makeBuiltInExports;
|
|
731
|
-
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
732
|
-
|
|
733
|
-
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
734
|
-
if (!options) options = {};
|
|
735
|
-
var simple = options.enumerable;
|
|
736
|
-
var name = options.name !== undefined ? options.name : key;
|
|
737
|
-
if (isCallable$5(value)) makeBuiltIn(value, name, options);
|
|
738
|
-
if (options.global) {
|
|
739
|
-
if (simple) O[key] = value;
|
|
740
|
-
else defineGlobalProperty$1(key, value);
|
|
741
|
-
} else {
|
|
742
|
-
try {
|
|
743
|
-
if (!options.unsafe) delete O[key];
|
|
744
|
-
else if (O[key]) simple = true;
|
|
745
|
-
} catch (error) { /* empty */ }
|
|
746
|
-
if (simple) O[key] = value;
|
|
747
|
-
else definePropertyModule$2.f(O, key, {
|
|
748
|
-
value: value,
|
|
749
|
-
enumerable: false,
|
|
750
|
-
configurable: !options.nonConfigurable,
|
|
751
|
-
writable: !options.nonWritable
|
|
752
|
-
});
|
|
753
|
-
} return O;
|
|
754
|
-
};
|
|
755
|
-
|
|
756
|
-
var objectGetOwnPropertyNames = {};
|
|
757
|
-
|
|
758
|
-
var ceil = Math.ceil;
|
|
759
|
-
var floor = Math.floor;
|
|
760
|
-
|
|
761
|
-
// `Math.trunc` method
|
|
762
|
-
// https://tc39.es/ecma262/#sec-math.trunc
|
|
763
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
764
|
-
var mathTrunc = Math.trunc || function trunc(x) {
|
|
765
|
-
var n = +x;
|
|
766
|
-
return (n > 0 ? floor : ceil)(n);
|
|
767
|
-
};
|
|
768
|
-
|
|
769
|
-
var trunc = mathTrunc;
|
|
770
|
-
|
|
771
|
-
// `ToIntegerOrInfinity` abstract operation
|
|
772
|
-
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
773
|
-
var toIntegerOrInfinity$4 = function (argument) {
|
|
774
|
-
var number = +argument;
|
|
775
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
776
|
-
return number !== number || number === 0 ? 0 : trunc(number);
|
|
777
|
-
};
|
|
778
|
-
|
|
779
|
-
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
780
|
-
|
|
781
|
-
var max = Math.max;
|
|
782
|
-
var min$1 = Math.min;
|
|
783
|
-
|
|
784
|
-
// Helper for a popular repeating case of the spec:
|
|
785
|
-
// Let integer be ? ToInteger(index).
|
|
786
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
787
|
-
var toAbsoluteIndex$1 = function (index, length) {
|
|
788
|
-
var integer = toIntegerOrInfinity$3(index);
|
|
789
|
-
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
790
|
-
};
|
|
791
|
-
|
|
792
|
-
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
793
|
-
|
|
794
|
-
var min = Math.min;
|
|
795
|
-
|
|
796
|
-
// `ToLength` abstract operation
|
|
797
|
-
// https://tc39.es/ecma262/#sec-tolength
|
|
798
|
-
var toLength$1 = function (argument) {
|
|
799
|
-
var len = toIntegerOrInfinity$2(argument);
|
|
800
|
-
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
801
|
-
};
|
|
802
|
-
|
|
803
|
-
var toLength = toLength$1;
|
|
804
|
-
|
|
805
|
-
// `LengthOfArrayLike` abstract operation
|
|
806
|
-
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
807
|
-
var lengthOfArrayLike$3 = function (obj) {
|
|
808
|
-
return toLength(obj.length);
|
|
809
|
-
};
|
|
810
|
-
|
|
811
|
-
var toIndexedObject$3 = toIndexedObject$5;
|
|
812
|
-
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
813
|
-
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
814
|
-
|
|
815
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
816
|
-
var createMethod = function (IS_INCLUDES) {
|
|
817
|
-
return function ($this, el, fromIndex) {
|
|
818
|
-
var O = toIndexedObject$3($this);
|
|
819
|
-
var length = lengthOfArrayLike$2(O);
|
|
820
|
-
if (length === 0) return !IS_INCLUDES && -1;
|
|
821
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
822
|
-
var value;
|
|
823
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
824
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
825
|
-
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
826
|
-
value = O[index++];
|
|
827
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
828
|
-
if (value !== value) return true;
|
|
829
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
830
|
-
} else for (;length > index; index++) {
|
|
831
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
832
|
-
} return !IS_INCLUDES && -1;
|
|
833
|
-
};
|
|
834
|
-
};
|
|
835
|
-
|
|
836
|
-
var arrayIncludes = {
|
|
837
|
-
// `Array.prototype.includes` method
|
|
838
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
839
|
-
includes: createMethod(true),
|
|
840
|
-
// `Array.prototype.indexOf` method
|
|
841
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
842
|
-
indexOf: createMethod(false)
|
|
843
|
-
};
|
|
844
|
-
|
|
845
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
846
|
-
var hasOwn$3 = hasOwnProperty_1;
|
|
847
|
-
var toIndexedObject$2 = toIndexedObject$5;
|
|
848
|
-
var indexOf = arrayIncludes.indexOf;
|
|
849
|
-
var hiddenKeys$2 = hiddenKeys$4;
|
|
850
|
-
|
|
851
|
-
var push = uncurryThis$3([].push);
|
|
852
|
-
|
|
853
|
-
var objectKeysInternal = function (object, names) {
|
|
854
|
-
var O = toIndexedObject$2(object);
|
|
855
|
-
var i = 0;
|
|
856
|
-
var result = [];
|
|
857
|
-
var key;
|
|
858
|
-
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
|
|
859
|
-
// Don't enum bug & hidden keys
|
|
860
|
-
while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
|
|
861
|
-
~indexOf(result, key) || push(result, key);
|
|
862
|
-
}
|
|
863
|
-
return result;
|
|
864
|
-
};
|
|
865
|
-
|
|
866
|
-
// IE8- don't enum bug keys
|
|
867
|
-
var enumBugKeys$3 = [
|
|
868
|
-
'constructor',
|
|
869
|
-
'hasOwnProperty',
|
|
870
|
-
'isPrototypeOf',
|
|
871
|
-
'propertyIsEnumerable',
|
|
872
|
-
'toLocaleString',
|
|
873
|
-
'toString',
|
|
874
|
-
'valueOf'
|
|
875
|
-
];
|
|
876
|
-
|
|
877
|
-
var internalObjectKeys$1 = objectKeysInternal;
|
|
878
|
-
var enumBugKeys$2 = enumBugKeys$3;
|
|
879
|
-
|
|
880
|
-
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
881
|
-
|
|
882
|
-
// `Object.getOwnPropertyNames` method
|
|
883
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
884
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
885
|
-
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
886
|
-
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
887
|
-
};
|
|
888
|
-
|
|
889
|
-
var objectGetOwnPropertySymbols = {};
|
|
890
|
-
|
|
891
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
892
|
-
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
893
|
-
|
|
894
|
-
var getBuiltIn$1 = getBuiltIn$3;
|
|
895
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
896
|
-
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
897
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
898
|
-
var anObject$2 = anObject$4;
|
|
899
|
-
|
|
900
|
-
var concat = uncurryThis$2([].concat);
|
|
901
|
-
|
|
902
|
-
// all object keys, includes non-enumerable and symbols
|
|
903
|
-
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
904
|
-
var keys = getOwnPropertyNamesModule.f(anObject$2(it));
|
|
905
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
906
|
-
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
907
|
-
};
|
|
908
|
-
|
|
909
|
-
var hasOwn$2 = hasOwnProperty_1;
|
|
910
|
-
var ownKeys = ownKeys$1;
|
|
911
|
-
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
912
|
-
var definePropertyModule$1 = objectDefineProperty;
|
|
913
|
-
|
|
914
|
-
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
915
|
-
var keys = ownKeys(source);
|
|
916
|
-
var defineProperty = definePropertyModule$1.f;
|
|
917
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
918
|
-
for (var i = 0; i < keys.length; i++) {
|
|
919
|
-
var key = keys[i];
|
|
920
|
-
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
|
921
|
-
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
|
|
926
|
-
var fails$4 = fails$c;
|
|
927
|
-
var isCallable$4 = isCallable$e;
|
|
928
|
-
|
|
929
|
-
var replacement = /#|\.prototype\./;
|
|
930
|
-
|
|
931
|
-
var isForced$1 = function (feature, detection) {
|
|
932
|
-
var value = data[normalize(feature)];
|
|
933
|
-
return value === POLYFILL ? true
|
|
934
|
-
: value === NATIVE ? false
|
|
935
|
-
: isCallable$4(detection) ? fails$4(detection)
|
|
936
|
-
: !!detection;
|
|
937
|
-
};
|
|
938
|
-
|
|
939
|
-
var normalize = isForced$1.normalize = function (string) {
|
|
940
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
941
|
-
};
|
|
942
|
-
|
|
943
|
-
var data = isForced$1.data = {};
|
|
944
|
-
var NATIVE = isForced$1.NATIVE = 'N';
|
|
945
|
-
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
946
|
-
|
|
947
|
-
var isForced_1 = isForced$1;
|
|
948
|
-
|
|
949
|
-
var globalThis$2 = globalThis_1;
|
|
950
|
-
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
951
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
952
|
-
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
953
|
-
var defineGlobalProperty = defineGlobalProperty$3;
|
|
954
|
-
var copyConstructorProperties = copyConstructorProperties$1;
|
|
955
|
-
var isForced = isForced_1;
|
|
956
|
-
|
|
957
|
-
/*
|
|
958
|
-
options.target - name of the target object
|
|
959
|
-
options.global - target is the global object
|
|
960
|
-
options.stat - export as static methods of target
|
|
961
|
-
options.proto - export as prototype methods of target
|
|
962
|
-
options.real - real prototype method for the `pure` version
|
|
963
|
-
options.forced - export even if the native feature is available
|
|
964
|
-
options.bind - bind methods to the target, required for the `pure` version
|
|
965
|
-
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
966
|
-
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
967
|
-
options.sham - add a flag to not completely full polyfills
|
|
968
|
-
options.enumerable - export as enumerable property
|
|
969
|
-
options.dontCallGetSet - prevent calling a getter on target
|
|
970
|
-
options.name - the .name of the function if it does not match the key
|
|
971
|
-
*/
|
|
972
|
-
var _export = function (options, source) {
|
|
973
|
-
var TARGET = options.target;
|
|
974
|
-
var GLOBAL = options.global;
|
|
975
|
-
var STATIC = options.stat;
|
|
976
|
-
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
977
|
-
if (GLOBAL) {
|
|
978
|
-
target = globalThis$2;
|
|
979
|
-
} else if (STATIC) {
|
|
980
|
-
target = globalThis$2[TARGET] || defineGlobalProperty(TARGET, {});
|
|
981
|
-
} else {
|
|
982
|
-
target = globalThis$2[TARGET] && globalThis$2[TARGET].prototype;
|
|
983
|
-
}
|
|
984
|
-
if (target) for (key in source) {
|
|
985
|
-
sourceProperty = source[key];
|
|
986
|
-
if (options.dontCallGetSet) {
|
|
987
|
-
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
988
|
-
targetProperty = descriptor && descriptor.value;
|
|
989
|
-
} else targetProperty = target[key];
|
|
990
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
991
|
-
// contained in target
|
|
992
|
-
if (!FORCED && targetProperty !== undefined) {
|
|
993
|
-
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
994
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
995
|
-
}
|
|
996
|
-
// add a flag to not completely full polyfills
|
|
997
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
998
|
-
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
999
|
-
}
|
|
1000
|
-
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1001
|
-
}
|
|
1002
|
-
};
|
|
1003
|
-
|
|
1004
|
-
var objectDefineProperties = {};
|
|
1005
|
-
|
|
1006
|
-
var internalObjectKeys = objectKeysInternal;
|
|
1007
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
1008
|
-
|
|
1009
|
-
// `Object.keys` method
|
|
1010
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
1011
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1012
|
-
var objectKeys$1 = Object.keys || function keys(O) {
|
|
1013
|
-
return internalObjectKeys(O, enumBugKeys$1);
|
|
1014
|
-
};
|
|
1015
|
-
|
|
1016
|
-
var DESCRIPTORS$2 = descriptors;
|
|
1017
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1018
|
-
var definePropertyModule = objectDefineProperty;
|
|
1019
|
-
var anObject$1 = anObject$4;
|
|
1020
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
1021
|
-
var objectKeys = objectKeys$1;
|
|
1022
|
-
|
|
1023
|
-
// `Object.defineProperties` method
|
|
1024
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1025
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1026
|
-
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1027
|
-
anObject$1(O);
|
|
1028
|
-
var props = toIndexedObject$1(Properties);
|
|
1029
|
-
var keys = objectKeys(Properties);
|
|
1030
|
-
var length = keys.length;
|
|
1031
|
-
var index = 0;
|
|
1032
|
-
var key;
|
|
1033
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1034
|
-
return O;
|
|
1035
|
-
};
|
|
1036
|
-
|
|
1037
|
-
var getBuiltIn = getBuiltIn$3;
|
|
1038
|
-
|
|
1039
|
-
var html$1 = getBuiltIn('document', 'documentElement');
|
|
1040
|
-
|
|
1041
|
-
/* global ActiveXObject -- old IE, WSH */
|
|
1042
|
-
var anObject = anObject$4;
|
|
1043
|
-
var definePropertiesModule = objectDefineProperties;
|
|
1044
|
-
var enumBugKeys = enumBugKeys$3;
|
|
1045
|
-
var hiddenKeys = hiddenKeys$4;
|
|
1046
|
-
var html = html$1;
|
|
1047
|
-
var documentCreateElement$1 = documentCreateElement$2;
|
|
1048
|
-
var sharedKey$1 = sharedKey$3;
|
|
1049
|
-
|
|
1050
|
-
var GT = '>';
|
|
1051
|
-
var LT = '<';
|
|
1052
|
-
var PROTOTYPE = 'prototype';
|
|
1053
|
-
var SCRIPT = 'script';
|
|
1054
|
-
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
|
1055
|
-
|
|
1056
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
1057
|
-
|
|
1058
|
-
var scriptTag = function (content) {
|
|
1059
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1060
|
-
};
|
|
1061
|
-
|
|
1062
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1063
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1064
|
-
activeXDocument.write(scriptTag(''));
|
|
1065
|
-
activeXDocument.close();
|
|
1066
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
1067
|
-
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
|
1068
|
-
activeXDocument = null;
|
|
1069
|
-
return temp;
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1073
|
-
var NullProtoObjectViaIFrame = function () {
|
|
1074
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
1075
|
-
var iframe = documentCreateElement$1('iframe');
|
|
1076
|
-
var JS = 'java' + SCRIPT + ':';
|
|
1077
|
-
var iframeDocument;
|
|
1078
|
-
iframe.style.display = 'none';
|
|
1079
|
-
html.appendChild(iframe);
|
|
1080
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
1081
|
-
iframe.src = String(JS);
|
|
1082
|
-
iframeDocument = iframe.contentWindow.document;
|
|
1083
|
-
iframeDocument.open();
|
|
1084
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1085
|
-
iframeDocument.close();
|
|
1086
|
-
return iframeDocument.F;
|
|
1087
|
-
};
|
|
1088
|
-
|
|
1089
|
-
// Check for document.domain and active x support
|
|
1090
|
-
// No need to use active x approach when document.domain is not set
|
|
1091
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1092
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1093
|
-
// avoid IE GC bug
|
|
1094
|
-
var activeXDocument;
|
|
1095
|
-
var NullProtoObject = function () {
|
|
1096
|
-
try {
|
|
1097
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
|
1098
|
-
} catch (error) { /* ignore */ }
|
|
1099
|
-
NullProtoObject = typeof document != 'undefined'
|
|
1100
|
-
? document.domain && activeXDocument
|
|
1101
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1102
|
-
: NullProtoObjectViaIFrame()
|
|
1103
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1104
|
-
var length = enumBugKeys.length;
|
|
1105
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1106
|
-
return NullProtoObject();
|
|
1107
|
-
};
|
|
1108
|
-
|
|
1109
|
-
hiddenKeys[IE_PROTO$1] = true;
|
|
1110
|
-
|
|
1111
|
-
// `Object.create` method
|
|
1112
|
-
// https://tc39.es/ecma262/#sec-object.create
|
|
1113
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
1114
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
|
1115
|
-
var result;
|
|
1116
|
-
if (O !== null) {
|
|
1117
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1118
|
-
result = new EmptyConstructor();
|
|
1119
|
-
EmptyConstructor[PROTOTYPE] = null;
|
|
1120
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1121
|
-
result[IE_PROTO$1] = O;
|
|
1122
|
-
} else result = NullProtoObject();
|
|
1123
|
-
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1124
|
-
};
|
|
1125
|
-
|
|
1126
|
-
var wellKnownSymbol$6 = wellKnownSymbol$8;
|
|
1127
|
-
var create$1 = objectCreate;
|
|
1128
|
-
var defineProperty$2 = objectDefineProperty.f;
|
|
1129
|
-
|
|
1130
|
-
var UNSCOPABLES = wellKnownSymbol$6('unscopables');
|
|
1131
|
-
var ArrayPrototype = Array.prototype;
|
|
1132
|
-
|
|
1133
|
-
// Array.prototype[@@unscopables]
|
|
1134
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1135
|
-
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
1136
|
-
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
1137
|
-
configurable: true,
|
|
1138
|
-
value: create$1(null)
|
|
1139
|
-
});
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
// add a key to Array.prototype[@@unscopables]
|
|
1143
|
-
var addToUnscopables$2 = function (key) {
|
|
1144
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1145
|
-
};
|
|
1146
|
-
|
|
1147
|
-
var $$3 = _export;
|
|
1148
|
-
var toObject$2 = toObject$4;
|
|
1149
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
1150
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
1151
|
-
var addToUnscopables$1 = addToUnscopables$2;
|
|
1152
|
-
|
|
1153
|
-
// `Array.prototype.at` method
|
|
1154
|
-
// https://tc39.es/ecma262/#sec-array.prototype.at
|
|
1155
|
-
$$3({ target: 'Array', proto: true }, {
|
|
1156
|
-
at: function at(index) {
|
|
1157
|
-
var O = toObject$2(this);
|
|
1158
|
-
var len = lengthOfArrayLike$1(O);
|
|
1159
|
-
var relativeIndex = toIntegerOrInfinity$1(index);
|
|
1160
|
-
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
|
|
1161
|
-
return (k < 0 || k >= len) ? undefined : O[k];
|
|
1162
|
-
}
|
|
1163
|
-
});
|
|
1164
|
-
|
|
1165
|
-
addToUnscopables$1('at');
|
|
1166
|
-
|
|
1167
|
-
var iterators = {};
|
|
1168
|
-
|
|
1169
|
-
var fails$3 = fails$c;
|
|
1170
|
-
|
|
1171
|
-
var correctPrototypeGetter = !fails$3(function () {
|
|
1172
|
-
function F() { /* empty */ }
|
|
1173
|
-
F.prototype.constructor = null;
|
|
1174
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1175
|
-
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1176
|
-
});
|
|
1177
|
-
|
|
1178
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
1179
|
-
var isCallable$3 = isCallable$e;
|
|
1180
|
-
var toObject$1 = toObject$4;
|
|
1181
|
-
var sharedKey = sharedKey$3;
|
|
1182
|
-
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1183
|
-
|
|
1184
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1185
|
-
var $Object$1 = Object;
|
|
1186
|
-
var ObjectPrototype = $Object$1.prototype;
|
|
1187
|
-
|
|
1188
|
-
// `Object.getPrototypeOf` method
|
|
1189
|
-
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1190
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1191
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1192
|
-
var object = toObject$1(O);
|
|
1193
|
-
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
1194
|
-
var constructor = object.constructor;
|
|
1195
|
-
if (isCallable$3(constructor) && object instanceof constructor) {
|
|
1196
|
-
return constructor.prototype;
|
|
1197
|
-
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1198
|
-
};
|
|
1199
|
-
|
|
1200
|
-
var fails$2 = fails$c;
|
|
1201
|
-
var isCallable$2 = isCallable$e;
|
|
1202
|
-
var isObject$2 = isObject$8;
|
|
1203
|
-
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1204
|
-
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1205
|
-
var wellKnownSymbol$5 = wellKnownSymbol$8;
|
|
1206
|
-
|
|
1207
|
-
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
1208
|
-
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1209
|
-
|
|
1210
|
-
// `%IteratorPrototype%` object
|
|
1211
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1212
|
-
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1213
|
-
|
|
1214
|
-
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1215
|
-
if ([].keys) {
|
|
1216
|
-
arrayIterator = [].keys();
|
|
1217
|
-
// Safari 8 has buggy iterators w/o `next`
|
|
1218
|
-
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1219
|
-
else {
|
|
1220
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
|
|
1221
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$2(function () {
|
|
1226
|
-
var test = {};
|
|
1227
|
-
// FF44- legacy iterators case
|
|
1228
|
-
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
1229
|
-
});
|
|
1230
|
-
|
|
1231
|
-
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
1232
|
-
|
|
1233
|
-
// `%IteratorPrototype%[@@iterator]()` method
|
|
1234
|
-
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1235
|
-
if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
|
|
1236
|
-
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1237
|
-
return this;
|
|
1238
|
-
});
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
var iteratorsCore = {
|
|
1242
|
-
IteratorPrototype: IteratorPrototype$2,
|
|
1243
|
-
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1244
|
-
};
|
|
1245
|
-
|
|
1246
|
-
var defineProperty$1 = objectDefineProperty.f;
|
|
1247
|
-
var hasOwn = hasOwnProperty_1;
|
|
1248
|
-
var wellKnownSymbol$4 = wellKnownSymbol$8;
|
|
1249
|
-
|
|
1250
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
|
|
1251
|
-
|
|
1252
|
-
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1253
|
-
if (target && !STATIC) target = target.prototype;
|
|
1254
|
-
if (target && !hasOwn(target, TO_STRING_TAG$2)) {
|
|
1255
|
-
defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1256
|
-
}
|
|
1257
|
-
};
|
|
1258
|
-
|
|
1259
|
-
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1260
|
-
var create = objectCreate;
|
|
1261
|
-
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1262
|
-
var setToStringTag$2 = setToStringTag$3;
|
|
1263
|
-
var Iterators$2 = iterators;
|
|
1264
|
-
|
|
1265
|
-
var returnThis$1 = function () { return this; };
|
|
1266
|
-
|
|
1267
|
-
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1268
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1269
|
-
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1270
|
-
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1271
|
-
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1272
|
-
return IteratorConstructor;
|
|
1273
|
-
};
|
|
1274
|
-
|
|
1275
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
1276
|
-
var aCallable = aCallable$2;
|
|
1277
|
-
|
|
1278
|
-
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1279
|
-
try {
|
|
1280
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1281
|
-
return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1282
|
-
} catch (error) { /* empty */ }
|
|
1283
|
-
};
|
|
1284
|
-
|
|
1285
|
-
var isObject$1 = isObject$8;
|
|
1286
|
-
|
|
1287
|
-
var isPossiblePrototype$1 = function (argument) {
|
|
1288
|
-
return isObject$1(argument) || argument === null;
|
|
1289
|
-
};
|
|
1290
|
-
|
|
1291
|
-
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1292
|
-
|
|
1293
|
-
var $String$1 = String;
|
|
1294
|
-
var $TypeError$2 = TypeError;
|
|
1295
|
-
|
|
1296
|
-
var aPossiblePrototype$1 = function (argument) {
|
|
1297
|
-
if (isPossiblePrototype(argument)) return argument;
|
|
1298
|
-
throw new $TypeError$2("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1299
|
-
};
|
|
1300
|
-
|
|
1301
|
-
/* eslint-disable no-proto -- safe */
|
|
1302
|
-
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1303
|
-
var isObject = isObject$8;
|
|
1304
|
-
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
1305
|
-
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1306
|
-
|
|
1307
|
-
// `Object.setPrototypeOf` method
|
|
1308
|
-
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1309
|
-
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1310
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1311
|
-
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1312
|
-
var CORRECT_SETTER = false;
|
|
1313
|
-
var test = {};
|
|
1314
|
-
var setter;
|
|
1315
|
-
try {
|
|
1316
|
-
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
1317
|
-
setter(test, []);
|
|
1318
|
-
CORRECT_SETTER = test instanceof Array;
|
|
1319
|
-
} catch (error) { /* empty */ }
|
|
1320
|
-
return function setPrototypeOf(O, proto) {
|
|
1321
|
-
requireObjectCoercible$1(O);
|
|
1322
|
-
aPossiblePrototype(proto);
|
|
1323
|
-
if (!isObject(O)) return O;
|
|
1324
|
-
if (CORRECT_SETTER) setter(O, proto);
|
|
1325
|
-
else O.__proto__ = proto;
|
|
1326
|
-
return O;
|
|
1327
|
-
};
|
|
1328
|
-
}() : undefined);
|
|
1329
|
-
|
|
1330
|
-
var $$2 = _export;
|
|
1331
|
-
var call = functionCall;
|
|
1332
|
-
var FunctionName = functionName;
|
|
1333
|
-
var isCallable$1 = isCallable$e;
|
|
1334
|
-
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1335
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
1336
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
1337
|
-
var setToStringTag$1 = setToStringTag$3;
|
|
1338
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1339
|
-
var defineBuiltIn = defineBuiltIn$3;
|
|
1340
|
-
var wellKnownSymbol$3 = wellKnownSymbol$8;
|
|
1341
|
-
var Iterators$1 = iterators;
|
|
1342
|
-
var IteratorsCore = iteratorsCore;
|
|
1343
|
-
|
|
1344
|
-
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1345
|
-
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1346
|
-
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1347
|
-
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1348
|
-
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
|
1349
|
-
var KEYS = 'keys';
|
|
1350
|
-
var VALUES = 'values';
|
|
1351
|
-
var ENTRIES = 'entries';
|
|
1352
|
-
|
|
1353
|
-
var returnThis = function () { return this; };
|
|
1354
|
-
|
|
1355
|
-
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
1356
|
-
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
1357
|
-
|
|
1358
|
-
var getIterationMethod = function (KIND) {
|
|
1359
|
-
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1360
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1361
|
-
|
|
1362
|
-
switch (KIND) {
|
|
1363
|
-
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
1364
|
-
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
1365
|
-
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
return function () { return new IteratorConstructor(this); };
|
|
1369
|
-
};
|
|
1370
|
-
|
|
1371
|
-
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1372
|
-
var INCORRECT_VALUES_NAME = false;
|
|
1373
|
-
var IterablePrototype = Iterable.prototype;
|
|
1374
|
-
var nativeIterator = IterablePrototype[ITERATOR$1]
|
|
1375
|
-
|| IterablePrototype['@@iterator']
|
|
1376
|
-
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1377
|
-
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1378
|
-
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1379
|
-
var CurrentIteratorPrototype, methods, KEY;
|
|
1380
|
-
|
|
1381
|
-
// fix native
|
|
1382
|
-
if (anyNativeIterator) {
|
|
1383
|
-
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1384
|
-
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1385
|
-
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1386
|
-
if (setPrototypeOf) {
|
|
1387
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1388
|
-
} else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1389
|
-
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
// Set @@toStringTag to native iterators
|
|
1393
|
-
setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1398
|
-
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1399
|
-
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1400
|
-
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1401
|
-
} else {
|
|
1402
|
-
INCORRECT_VALUES_NAME = true;
|
|
1403
|
-
defaultIterator = function values() { return call(nativeIterator, this); };
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
// export additional methods
|
|
1408
|
-
if (DEFAULT) {
|
|
1409
|
-
methods = {
|
|
1410
|
-
values: getIterationMethod(VALUES),
|
|
1411
|
-
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
1412
|
-
entries: getIterationMethod(ENTRIES)
|
|
1413
19
|
};
|
|
1414
|
-
if (FORCED) for (KEY in methods) {
|
|
1415
|
-
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1416
|
-
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1417
|
-
}
|
|
1418
|
-
} else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
// define iterator
|
|
1422
|
-
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1423
|
-
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1424
|
-
}
|
|
1425
|
-
Iterators$1[NAME] = defaultIterator;
|
|
1426
|
-
|
|
1427
|
-
return methods;
|
|
1428
|
-
};
|
|
1429
|
-
|
|
1430
|
-
// `CreateIterResultObject` abstract operation
|
|
1431
|
-
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
1432
|
-
var createIterResultObject$1 = function (value, done) {
|
|
1433
|
-
return { value: value, done: done };
|
|
1434
|
-
};
|
|
1435
|
-
|
|
1436
|
-
var toIndexedObject = toIndexedObject$5;
|
|
1437
|
-
var addToUnscopables = addToUnscopables$2;
|
|
1438
|
-
var Iterators = iterators;
|
|
1439
|
-
var InternalStateModule = internalState;
|
|
1440
|
-
var defineProperty = objectDefineProperty.f;
|
|
1441
|
-
var defineIterator = iteratorDefine;
|
|
1442
|
-
var createIterResultObject = createIterResultObject$1;
|
|
1443
|
-
var DESCRIPTORS$1 = descriptors;
|
|
1444
|
-
|
|
1445
|
-
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1446
|
-
var setInternalState = InternalStateModule.set;
|
|
1447
|
-
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
|
1448
|
-
|
|
1449
|
-
// `Array.prototype.entries` method
|
|
1450
|
-
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
1451
|
-
// `Array.prototype.keys` method
|
|
1452
|
-
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
|
1453
|
-
// `Array.prototype.values` method
|
|
1454
|
-
// https://tc39.es/ecma262/#sec-array.prototype.values
|
|
1455
|
-
// `Array.prototype[@@iterator]` method
|
|
1456
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
|
1457
|
-
// `CreateArrayIterator` internal method
|
|
1458
|
-
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1459
|
-
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1460
|
-
setInternalState(this, {
|
|
1461
|
-
type: ARRAY_ITERATOR,
|
|
1462
|
-
target: toIndexedObject(iterated), // target
|
|
1463
|
-
index: 0, // next index
|
|
1464
|
-
kind: kind // kind
|
|
1465
|
-
});
|
|
1466
|
-
// `%ArrayIteratorPrototype%.next` method
|
|
1467
|
-
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1468
|
-
}, function () {
|
|
1469
|
-
var state = getInternalState(this);
|
|
1470
|
-
var target = state.target;
|
|
1471
|
-
var index = state.index++;
|
|
1472
|
-
if (!target || index >= target.length) {
|
|
1473
|
-
state.target = null;
|
|
1474
|
-
return createIterResultObject(undefined, true);
|
|
1475
|
-
}
|
|
1476
|
-
switch (state.kind) {
|
|
1477
|
-
case 'keys': return createIterResultObject(index, false);
|
|
1478
|
-
case 'values': return createIterResultObject(target[index], false);
|
|
1479
|
-
} return createIterResultObject([index, target[index]], false);
|
|
1480
|
-
}, 'values');
|
|
1481
|
-
|
|
1482
|
-
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
1483
|
-
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
|
1484
|
-
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
|
1485
|
-
var values = Iterators.Arguments = Iterators.Array;
|
|
1486
|
-
|
|
1487
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1488
|
-
addToUnscopables('keys');
|
|
1489
|
-
addToUnscopables('values');
|
|
1490
|
-
addToUnscopables('entries');
|
|
1491
|
-
|
|
1492
|
-
// V8 ~ Chrome 45- bug
|
|
1493
|
-
if (DESCRIPTORS$1 && values.name !== 'values') try {
|
|
1494
|
-
defineProperty(values, 'name', { value: 'values' });
|
|
1495
|
-
} catch (error) { /* empty */ }
|
|
1496
|
-
|
|
1497
|
-
var classof$2 = classofRaw$1;
|
|
1498
|
-
|
|
1499
|
-
// `IsArray` abstract operation
|
|
1500
|
-
// https://tc39.es/ecma262/#sec-isarray
|
|
1501
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
1502
|
-
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
1503
|
-
return classof$2(argument) === 'Array';
|
|
1504
|
-
};
|
|
1505
|
-
|
|
1506
|
-
var DESCRIPTORS = descriptors;
|
|
1507
|
-
var isArray = isArray$1;
|
|
1508
|
-
|
|
1509
|
-
var $TypeError$1 = TypeError;
|
|
1510
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1511
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1512
|
-
|
|
1513
|
-
// Safari < 13 does not throw an error in this case
|
|
1514
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
1515
|
-
// makes no sense without proper strict mode support
|
|
1516
|
-
if (this !== undefined) return true;
|
|
1517
|
-
try {
|
|
1518
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1519
|
-
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
1520
|
-
} catch (error) {
|
|
1521
|
-
return error instanceof TypeError;
|
|
1522
|
-
}
|
|
1523
|
-
}();
|
|
1524
|
-
|
|
1525
|
-
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
1526
|
-
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
1527
|
-
throw new $TypeError$1('Cannot set read only .length');
|
|
1528
|
-
} return O.length = length;
|
|
1529
|
-
} : function (O, length) {
|
|
1530
|
-
return O.length = length;
|
|
1531
|
-
};
|
|
1532
|
-
|
|
1533
|
-
var $TypeError = TypeError;
|
|
1534
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
1535
|
-
|
|
1536
|
-
var doesNotExceedSafeInteger$1 = function (it) {
|
|
1537
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
|
1538
|
-
return it;
|
|
1539
|
-
};
|
|
1540
|
-
|
|
1541
|
-
var $$1 = _export;
|
|
1542
|
-
var toObject = toObject$4;
|
|
1543
|
-
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
1544
|
-
var setArrayLength = arraySetLength;
|
|
1545
|
-
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
1546
|
-
var fails$1 = fails$c;
|
|
1547
|
-
|
|
1548
|
-
var INCORRECT_TO_LENGTH = fails$1(function () {
|
|
1549
|
-
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
1550
|
-
});
|
|
1551
|
-
|
|
1552
|
-
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
1553
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
1554
|
-
var properErrorOnNonWritableLength = function () {
|
|
1555
|
-
try {
|
|
1556
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1557
|
-
Object.defineProperty([], 'length', { writable: false }).push();
|
|
1558
|
-
} catch (error) {
|
|
1559
|
-
return error instanceof TypeError;
|
|
1560
20
|
}
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
1569
|
-
push: function push(item) {
|
|
1570
|
-
var O = toObject(this);
|
|
1571
|
-
var len = lengthOfArrayLike(O);
|
|
1572
|
-
var argCount = arguments.length;
|
|
1573
|
-
doesNotExceedSafeInteger(len + argCount);
|
|
1574
|
-
for (var i = 0; i < argCount; i++) {
|
|
1575
|
-
O[len] = arguments[i];
|
|
1576
|
-
len++;
|
|
1577
|
-
}
|
|
1578
|
-
setArrayLength(O, len);
|
|
1579
|
-
return len;
|
|
1580
|
-
}
|
|
1581
|
-
});
|
|
1582
|
-
|
|
1583
|
-
var wellKnownSymbol$2 = wellKnownSymbol$8;
|
|
1584
|
-
|
|
1585
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
1586
|
-
var test = {};
|
|
1587
|
-
|
|
1588
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
1589
|
-
|
|
1590
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
1591
|
-
|
|
1592
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1593
|
-
var isCallable = isCallable$e;
|
|
1594
|
-
var classofRaw = classofRaw$1;
|
|
1595
|
-
var wellKnownSymbol$1 = wellKnownSymbol$8;
|
|
1596
|
-
|
|
1597
|
-
var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
|
|
1598
|
-
var $Object = Object;
|
|
1599
|
-
|
|
1600
|
-
// ES3 wrong here
|
|
1601
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
1602
|
-
|
|
1603
|
-
// fallback for IE11 Script Access Denied error
|
|
1604
|
-
var tryGet = function (it, key) {
|
|
1605
|
-
try {
|
|
1606
|
-
return it[key];
|
|
1607
|
-
} catch (error) { /* empty */ }
|
|
1608
|
-
};
|
|
1609
|
-
|
|
1610
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
1611
|
-
var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1612
|
-
var O, tag, result;
|
|
1613
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1614
|
-
// @@toStringTag case
|
|
1615
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1616
|
-
// builtinTag case
|
|
1617
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1618
|
-
// ES3 arguments fallback
|
|
1619
|
-
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1620
|
-
};
|
|
1621
|
-
|
|
1622
|
-
var classof = classof$1;
|
|
1623
|
-
|
|
1624
|
-
var $String = String;
|
|
1625
|
-
|
|
1626
|
-
var toString$1 = function (argument) {
|
|
1627
|
-
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1628
|
-
return $String(argument);
|
|
1629
|
-
};
|
|
1630
|
-
|
|
1631
|
-
var $ = _export;
|
|
1632
|
-
var uncurryThis = functionUncurryThis;
|
|
1633
|
-
var requireObjectCoercible = requireObjectCoercible$4;
|
|
1634
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
1635
|
-
var toString = toString$1;
|
|
1636
|
-
var fails = fails$c;
|
|
1637
|
-
|
|
1638
|
-
var charAt = uncurryThis(''.charAt);
|
|
1639
|
-
|
|
1640
|
-
var FORCED = fails(function () {
|
|
1641
|
-
// eslint-disable-next-line es/no-string-prototype-at -- safe
|
|
1642
|
-
return '𠮷'.at(-2) !== '\uD842';
|
|
1643
|
-
});
|
|
1644
|
-
|
|
1645
|
-
// `String.prototype.at` method
|
|
1646
|
-
// https://tc39.es/ecma262/#sec-string.prototype.at
|
|
1647
|
-
$({ target: 'String', proto: true, forced: FORCED }, {
|
|
1648
|
-
at: function at(index) {
|
|
1649
|
-
var S = toString(requireObjectCoercible(this));
|
|
1650
|
-
var len = S.length;
|
|
1651
|
-
var relativeIndex = toIntegerOrInfinity(index);
|
|
1652
|
-
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
|
|
1653
|
-
return (k < 0 || k >= len) ? undefined : charAt(S, k);
|
|
1654
|
-
}
|
|
1655
|
-
});
|
|
1656
|
-
|
|
1657
|
-
// iterable DOM collections
|
|
1658
|
-
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
1659
|
-
var domIterables = {
|
|
1660
|
-
CSSRuleList: 0,
|
|
1661
|
-
CSSStyleDeclaration: 0,
|
|
1662
|
-
CSSValueList: 0,
|
|
1663
|
-
ClientRectList: 0,
|
|
1664
|
-
DOMRectList: 0,
|
|
1665
|
-
DOMStringList: 0,
|
|
1666
|
-
DOMTokenList: 1,
|
|
1667
|
-
DataTransferItemList: 0,
|
|
1668
|
-
FileList: 0,
|
|
1669
|
-
HTMLAllCollection: 0,
|
|
1670
|
-
HTMLCollection: 0,
|
|
1671
|
-
HTMLFormElement: 0,
|
|
1672
|
-
HTMLSelectElement: 0,
|
|
1673
|
-
MediaList: 0,
|
|
1674
|
-
MimeTypeArray: 0,
|
|
1675
|
-
NamedNodeMap: 0,
|
|
1676
|
-
NodeList: 1,
|
|
1677
|
-
PaintRequestList: 0,
|
|
1678
|
-
Plugin: 0,
|
|
1679
|
-
PluginArray: 0,
|
|
1680
|
-
SVGLengthList: 0,
|
|
1681
|
-
SVGNumberList: 0,
|
|
1682
|
-
SVGPathSegList: 0,
|
|
1683
|
-
SVGPointList: 0,
|
|
1684
|
-
SVGStringList: 0,
|
|
1685
|
-
SVGTransformList: 0,
|
|
1686
|
-
SourceBufferList: 0,
|
|
1687
|
-
StyleSheetList: 0,
|
|
1688
|
-
TextTrackCueList: 0,
|
|
1689
|
-
TextTrackList: 0,
|
|
1690
|
-
TouchList: 0
|
|
1691
|
-
};
|
|
1692
|
-
|
|
1693
|
-
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1694
|
-
var documentCreateElement = documentCreateElement$2;
|
|
1695
|
-
|
|
1696
|
-
var classList = documentCreateElement('span').classList;
|
|
1697
|
-
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
1698
|
-
|
|
1699
|
-
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1700
|
-
|
|
1701
|
-
var globalThis$1 = globalThis_1;
|
|
1702
|
-
var DOMIterables = domIterables;
|
|
1703
|
-
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1704
|
-
var ArrayIteratorMethods = es_array_iterator;
|
|
1705
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1706
|
-
var setToStringTag = setToStringTag$3;
|
|
1707
|
-
var wellKnownSymbol = wellKnownSymbol$8;
|
|
1708
|
-
|
|
1709
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
|
1710
|
-
var ArrayValues = ArrayIteratorMethods.values;
|
|
1711
|
-
|
|
1712
|
-
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1713
|
-
if (CollectionPrototype) {
|
|
1714
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1715
|
-
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
1716
|
-
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
1717
|
-
} catch (error) {
|
|
1718
|
-
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
1719
|
-
}
|
|
1720
|
-
setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
|
|
1721
|
-
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1722
|
-
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1723
|
-
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1724
|
-
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1725
|
-
} catch (error) {
|
|
1726
|
-
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
21
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
22
|
+
}
|
|
23
|
+
function _unsupportedIterableToArray(r, a) {
|
|
24
|
+
if (r) {
|
|
25
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
26
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
27
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
1729
28
|
}
|
|
1730
|
-
};
|
|
1731
|
-
|
|
1732
|
-
for (var COLLECTION_NAME in DOMIterables) {
|
|
1733
|
-
handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1734
29
|
}
|
|
1735
30
|
|
|
1736
|
-
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1737
|
-
|
|
1738
31
|
/* *
|
|
1739
32
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1740
33
|
* you may not use this file except in compliance with the License.
|
|
@@ -1758,8 +51,8 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
|
1758
51
|
* to remove all existing timers followed by init() to initialize the
|
|
1759
52
|
* ticks.
|
|
1760
53
|
*/
|
|
1761
|
-
|
|
1762
|
-
|
|
54
|
+
var Metronome = /*#__PURE__*/function () {
|
|
55
|
+
function Metronome() {
|
|
1763
56
|
this.tickId = 0;
|
|
1764
57
|
this.step = this.step.bind(this);
|
|
1765
58
|
this.isPaused = this.isPaused.bind(this);
|
|
@@ -1774,27 +67,29 @@ class Metronome {
|
|
|
1774
67
|
this.handleTimerTicks = null;
|
|
1775
68
|
this.timers = [];
|
|
1776
69
|
}
|
|
1777
|
-
|
|
70
|
+
var _proto = Metronome.prototype;
|
|
71
|
+
_proto.init = function init() {
|
|
1778
72
|
if (this.interval != null) {
|
|
1779
73
|
clearInterval(this.interval);
|
|
1780
74
|
}
|
|
1781
75
|
this.interval = setInterval(this.step, 10);
|
|
1782
|
-
}
|
|
1783
|
-
unregisterAllTimers() {
|
|
76
|
+
};
|
|
77
|
+
_proto.unregisterAllTimers = function unregisterAllTimers() {
|
|
1784
78
|
this.timers.length = 0;
|
|
1785
|
-
}
|
|
1786
|
-
step() {
|
|
79
|
+
};
|
|
80
|
+
_proto.step = function step() {
|
|
81
|
+
var _this = this;
|
|
1787
82
|
this.tickId += 1;
|
|
1788
|
-
|
|
1789
|
-
this.timers.forEach(timer
|
|
83
|
+
var triggeredTimerIds = [];
|
|
84
|
+
this.timers.forEach(function (timer) {
|
|
1790
85
|
// Delay in x10 ms
|
|
1791
|
-
|
|
86
|
+
var delay = 100 / timer.hertz;
|
|
1792
87
|
// Get nearest multiple of delay
|
|
1793
|
-
|
|
1794
|
-
|
|
88
|
+
var nearestDelay = delay * Math.floor((_this.tickId + delay / 2) / delay);
|
|
89
|
+
var distanceToDelay = _this.tickId - nearestDelay;
|
|
1795
90
|
if (Math.abs(distanceToDelay) < 0.5 || distanceToDelay === -0.5) {
|
|
1796
91
|
if (!timer.isPaused) {
|
|
1797
|
-
timer.timerFunc && timer.timerFunc(timer.timerId,
|
|
92
|
+
timer.timerFunc && timer.timerFunc(timer.timerId, _this.tickId);
|
|
1798
93
|
triggeredTimerIds.push(timer.timerId);
|
|
1799
94
|
}
|
|
1800
95
|
}
|
|
@@ -1813,18 +108,20 @@ class Metronome {
|
|
|
1813
108
|
* @param hertz Frequency of the timer given in hertz
|
|
1814
109
|
* @param timerId Id of the timer
|
|
1815
110
|
* @returns Timer or nothing if no timer was created
|
|
1816
|
-
|
|
1817
|
-
register(timerFunc, hertz, timerId) {
|
|
1818
|
-
|
|
111
|
+
*/;
|
|
112
|
+
_proto.register = function register(timerFunc, hertz, timerId) {
|
|
113
|
+
var existingTimer = this.timers.find(function (timer) {
|
|
114
|
+
return timer.timerId === timerId;
|
|
115
|
+
});
|
|
1819
116
|
if (existingTimer) {
|
|
1820
117
|
existingTimer.hertz = hertz;
|
|
1821
118
|
existingTimer.timerFunc = timerFunc;
|
|
1822
119
|
return existingTimer;
|
|
1823
120
|
}
|
|
1824
121
|
this.timers.push({
|
|
1825
|
-
timerFunc,
|
|
1826
|
-
hertz,
|
|
1827
|
-
timerId,
|
|
122
|
+
timerFunc: timerFunc,
|
|
123
|
+
hertz: hertz,
|
|
124
|
+
timerId: timerId,
|
|
1828
125
|
isPaused: false
|
|
1829
126
|
});
|
|
1830
127
|
return this.timers.at(-1);
|
|
@@ -1834,9 +131,11 @@ class Metronome {
|
|
|
1834
131
|
* timer, then use pauseTimer()
|
|
1835
132
|
*
|
|
1836
133
|
* @param timerId Id of the timer
|
|
1837
|
-
|
|
1838
|
-
unregister(timerId) {
|
|
1839
|
-
|
|
134
|
+
*/;
|
|
135
|
+
_proto.unregister = function unregister(timerId) {
|
|
136
|
+
var indexToRemove = this.timers.findIndex(function (timer) {
|
|
137
|
+
return timer.timerId === timerId;
|
|
138
|
+
});
|
|
1840
139
|
if (indexToRemove > -1) {
|
|
1841
140
|
this.timers.splice(indexToRemove, 1);
|
|
1842
141
|
}
|
|
@@ -1846,9 +145,10 @@ class Metronome {
|
|
|
1846
145
|
*
|
|
1847
146
|
* @param timerId Id of the timer
|
|
1848
147
|
* @returns true if the timer is paused, false if it is running
|
|
1849
|
-
|
|
1850
|
-
isPaused(timerId) {
|
|
1851
|
-
for (
|
|
148
|
+
*/;
|
|
149
|
+
_proto.isPaused = function isPaused(timerId) {
|
|
150
|
+
for (var _iterator = _createForOfIteratorHelperLoose(this.timers), _step; !(_step = _iterator()).done;) {
|
|
151
|
+
var timer = _step.value;
|
|
1852
152
|
if (timer.timerId === timerId && timer.isPaused) {
|
|
1853
153
|
return true;
|
|
1854
154
|
}
|
|
@@ -1859,9 +159,10 @@ class Metronome {
|
|
|
1859
159
|
* Continues running a timer
|
|
1860
160
|
*
|
|
1861
161
|
* @param timerId Id of the timer
|
|
1862
|
-
|
|
1863
|
-
continueTimer(timerId) {
|
|
1864
|
-
for (
|
|
162
|
+
*/;
|
|
163
|
+
_proto.continueTimer = function continueTimer(timerId) {
|
|
164
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(this.timers), _step2; !(_step2 = _iterator2()).done;) {
|
|
165
|
+
var timer = _step2.value;
|
|
1865
166
|
if (timer.timerId === timerId) {
|
|
1866
167
|
timer.isPaused = false;
|
|
1867
168
|
break;
|
|
@@ -1872,9 +173,10 @@ class Metronome {
|
|
|
1872
173
|
* Pauses a timer
|
|
1873
174
|
*
|
|
1874
175
|
* @param timerId Id of the timer
|
|
1875
|
-
|
|
1876
|
-
pauseTimer(timerId) {
|
|
1877
|
-
for (
|
|
176
|
+
*/;
|
|
177
|
+
_proto.pauseTimer = function pauseTimer(timerId) {
|
|
178
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose(this.timers), _step3; !(_step3 = _iterator3()).done;) {
|
|
179
|
+
var timer = _step3.value;
|
|
1878
180
|
if (timer.timerId === timerId) {
|
|
1879
181
|
timer.isPaused = true;
|
|
1880
182
|
break;
|
|
@@ -1886,9 +188,10 @@ class Metronome {
|
|
|
1886
188
|
* to toggle a timer, it might toggle twice and therefore do nothing
|
|
1887
189
|
*
|
|
1888
190
|
* @param timerId Id of the timer
|
|
1889
|
-
|
|
1890
|
-
toggleTimer(timerId) {
|
|
1891
|
-
for (
|
|
191
|
+
*/;
|
|
192
|
+
_proto.toggleTimer = function toggleTimer(timerId) {
|
|
193
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose(this.timers), _step4; !(_step4 = _iterator4()).done;) {
|
|
194
|
+
var timer = _step4.value;
|
|
1892
195
|
if (timer.timerId === timerId) {
|
|
1893
196
|
timer.isPaused = !timer.isPaused;
|
|
1894
197
|
break;
|
|
@@ -1900,16 +203,18 @@ class Metronome {
|
|
|
1900
203
|
*
|
|
1901
204
|
* @param timerId Id of the timer
|
|
1902
205
|
* @param hertz Frequency of the timer given in hertz
|
|
1903
|
-
|
|
1904
|
-
setSpeed(timerId, hertz) {
|
|
1905
|
-
for (
|
|
206
|
+
*/;
|
|
207
|
+
_proto.setSpeed = function setSpeed(timerId, hertz) {
|
|
208
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose(this.timers), _step5; !(_step5 = _iterator5()).done;) {
|
|
209
|
+
var timer = _step5.value;
|
|
1906
210
|
if (timer.timerId === timerId) {
|
|
1907
211
|
timer.hertz = hertz;
|
|
1908
212
|
break;
|
|
1909
213
|
}
|
|
1910
214
|
}
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
|
|
215
|
+
};
|
|
216
|
+
return Metronome;
|
|
217
|
+
}();
|
|
218
|
+
var metronome = new Metronome();
|
|
1914
219
|
|
|
1915
220
|
export { metronome };
|