@vention/machine-logic-ui-sdk 0.27.6 → 0.28.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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import require$$0, { useState, useRef, useEffect,
|
|
2
|
+
import require$$0, { useState, useRef, useEffect, useMemo, createContext, useContext } from 'react';
|
|
3
3
|
import { tss } from 'tss-react/mui';
|
|
4
4
|
import mqtt from 'mqtt';
|
|
5
5
|
|
|
@@ -27,7 +27,7 @@ var globalThis_1 =
|
|
|
27
27
|
|
|
28
28
|
var objectGetOwnPropertyDescriptor = {};
|
|
29
29
|
|
|
30
|
-
var fails$
|
|
30
|
+
var fails$n = function (exec) {
|
|
31
31
|
try {
|
|
32
32
|
return !!exec();
|
|
33
33
|
} catch (error) {
|
|
@@ -35,29 +35,29 @@ var fails$l = function (exec) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
var fails$
|
|
38
|
+
var fails$m = fails$n;
|
|
39
39
|
|
|
40
40
|
// Detect IE8's incomplete defineProperty implementation
|
|
41
|
-
var descriptors = !fails$
|
|
41
|
+
var descriptors = !fails$m(function () {
|
|
42
42
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
43
43
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
var fails$
|
|
46
|
+
var fails$l = fails$n;
|
|
47
47
|
|
|
48
|
-
var functionBindNative = !fails$
|
|
48
|
+
var functionBindNative = !fails$l(function () {
|
|
49
49
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
50
|
-
var test =
|
|
50
|
+
var test = function () { /* empty */ }.bind();
|
|
51
51
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
52
52
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
var NATIVE_BIND$3 = functionBindNative;
|
|
56
56
|
|
|
57
|
-
var call$
|
|
58
|
-
|
|
59
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
60
|
-
return call$
|
|
57
|
+
var call$m = Function.prototype.call;
|
|
58
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
59
|
+
var functionCall = NATIVE_BIND$3 ? call$m.bind(call$m) : function () {
|
|
60
|
+
return call$m.apply(call$m, arguments);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
var objectPropertyIsEnumerable = {};
|
|
@@ -88,33 +88,34 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
|
88
88
|
var NATIVE_BIND$2 = functionBindNative;
|
|
89
89
|
|
|
90
90
|
var FunctionPrototype$2 = Function.prototype;
|
|
91
|
-
var call$
|
|
92
|
-
|
|
91
|
+
var call$l = FunctionPrototype$2.call;
|
|
92
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
93
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$l, call$l);
|
|
93
94
|
|
|
94
95
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
95
96
|
return function () {
|
|
96
|
-
return call$
|
|
97
|
+
return call$l.apply(fn, arguments);
|
|
97
98
|
};
|
|
98
99
|
};
|
|
99
100
|
|
|
100
|
-
var uncurryThis$
|
|
101
|
+
var uncurryThis$m = functionUncurryThis;
|
|
101
102
|
|
|
102
|
-
var toString$a = uncurryThis$
|
|
103
|
-
var stringSlice$6 = uncurryThis$
|
|
103
|
+
var toString$a = uncurryThis$m({}.toString);
|
|
104
|
+
var stringSlice$6 = uncurryThis$m(''.slice);
|
|
104
105
|
|
|
105
106
|
var classofRaw$2 = function (it) {
|
|
106
107
|
return stringSlice$6(toString$a(it), 8, -1);
|
|
107
108
|
};
|
|
108
109
|
|
|
109
|
-
var uncurryThis$
|
|
110
|
-
var fails$
|
|
110
|
+
var uncurryThis$l = functionUncurryThis;
|
|
111
|
+
var fails$k = fails$n;
|
|
111
112
|
var classof$6 = classofRaw$2;
|
|
112
113
|
|
|
113
114
|
var $Object$4 = Object;
|
|
114
|
-
var split = uncurryThis$
|
|
115
|
+
var split = uncurryThis$l(''.split);
|
|
115
116
|
|
|
116
117
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
117
|
-
var indexedObject = fails$
|
|
118
|
+
var indexedObject = fails$k(function () {
|
|
118
119
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
119
120
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
120
121
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -124,18 +125,18 @@ var indexedObject = fails$i(function () {
|
|
|
124
125
|
|
|
125
126
|
// we can't use just `it == null` since of `document.all` special case
|
|
126
127
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
127
|
-
var isNullOrUndefined$
|
|
128
|
+
var isNullOrUndefined$3 = function (it) {
|
|
128
129
|
return it === null || it === undefined;
|
|
129
130
|
};
|
|
130
131
|
|
|
131
|
-
var isNullOrUndefined$
|
|
132
|
+
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
132
133
|
|
|
133
134
|
var $TypeError$f = TypeError;
|
|
134
135
|
|
|
135
136
|
// `RequireObjectCoercible` abstract operation
|
|
136
137
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
137
138
|
var requireObjectCoercible$8 = function (it) {
|
|
138
|
-
if (isNullOrUndefined$
|
|
139
|
+
if (isNullOrUndefined$2(it)) throw new $TypeError$f("Can't call method on " + it);
|
|
139
140
|
return it;
|
|
140
141
|
};
|
|
141
142
|
|
|
@@ -161,11 +162,11 @@ var isCallable$j = typeof documentAll == 'undefined' && documentAll !== undefine
|
|
|
161
162
|
|
|
162
163
|
var isCallable$i = isCallable$j;
|
|
163
164
|
|
|
164
|
-
var isObject$
|
|
165
|
+
var isObject$c = function (it) {
|
|
165
166
|
return typeof it == 'object' ? it !== null : isCallable$i(it);
|
|
166
167
|
};
|
|
167
168
|
|
|
168
|
-
var globalThis$
|
|
169
|
+
var globalThis$j = globalThis_1;
|
|
169
170
|
var isCallable$h = isCallable$j;
|
|
170
171
|
|
|
171
172
|
var aFunction = function (argument) {
|
|
@@ -173,25 +174,25 @@ var aFunction = function (argument) {
|
|
|
173
174
|
};
|
|
174
175
|
|
|
175
176
|
var getBuiltIn$5 = function (namespace, method) {
|
|
176
|
-
return arguments.length < 2 ? aFunction(globalThis$
|
|
177
|
+
return arguments.length < 2 ? aFunction(globalThis$j[namespace]) : globalThis$j[namespace] && globalThis$j[namespace][method];
|
|
177
178
|
};
|
|
178
179
|
|
|
179
|
-
var uncurryThis$
|
|
180
|
+
var uncurryThis$k = functionUncurryThis;
|
|
180
181
|
|
|
181
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
182
|
+
var objectIsPrototypeOf = uncurryThis$k({}.isPrototypeOf);
|
|
182
183
|
|
|
183
|
-
var globalThis$
|
|
184
|
+
var globalThis$i = globalThis_1;
|
|
184
185
|
|
|
185
|
-
var navigator$1 = globalThis$
|
|
186
|
+
var navigator$1 = globalThis$i.navigator;
|
|
186
187
|
var userAgent$1 = navigator$1 && navigator$1.userAgent;
|
|
187
188
|
|
|
188
189
|
var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
|
|
189
190
|
|
|
190
|
-
var globalThis$
|
|
191
|
+
var globalThis$h = globalThis_1;
|
|
191
192
|
var userAgent = environmentUserAgent;
|
|
192
193
|
|
|
193
|
-
var process = globalThis$
|
|
194
|
-
var Deno$1 = globalThis$
|
|
194
|
+
var process = globalThis$h.process;
|
|
195
|
+
var Deno$1 = globalThis$h.Deno;
|
|
195
196
|
var versions = process && process.versions || Deno$1 && Deno$1.version;
|
|
196
197
|
var v8 = versions && versions.v8;
|
|
197
198
|
var match, version;
|
|
@@ -217,13 +218,13 @@ var environmentV8Version = version;
|
|
|
217
218
|
|
|
218
219
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
219
220
|
var V8_VERSION = environmentV8Version;
|
|
220
|
-
var fails$
|
|
221
|
-
var globalThis$
|
|
221
|
+
var fails$j = fails$n;
|
|
222
|
+
var globalThis$g = globalThis_1;
|
|
222
223
|
|
|
223
|
-
var $String$5 = globalThis$
|
|
224
|
+
var $String$5 = globalThis$g.String;
|
|
224
225
|
|
|
225
226
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
226
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
227
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$j(function () {
|
|
227
228
|
var symbol = Symbol('symbol detection');
|
|
228
229
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
229
230
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -237,9 +238,9 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(func
|
|
|
237
238
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
238
239
|
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
|
239
240
|
|
|
240
|
-
var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
var useSymbolAsUid = NATIVE_SYMBOL$2 &&
|
|
242
|
+
!Symbol.sham &&
|
|
243
|
+
typeof Symbol.iterator == 'symbol';
|
|
243
244
|
|
|
244
245
|
var getBuiltIn$4 = getBuiltIn$5;
|
|
245
246
|
var isCallable$g = isCallable$j;
|
|
@@ -277,18 +278,18 @@ var aCallable$7 = function (argument) {
|
|
|
277
278
|
};
|
|
278
279
|
|
|
279
280
|
var aCallable$6 = aCallable$7;
|
|
280
|
-
var isNullOrUndefined$
|
|
281
|
+
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
281
282
|
|
|
282
283
|
// `GetMethod` abstract operation
|
|
283
284
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
284
285
|
var getMethod$6 = function (V, P) {
|
|
285
286
|
var func = V[P];
|
|
286
|
-
return isNullOrUndefined$
|
|
287
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable$6(func);
|
|
287
288
|
};
|
|
288
289
|
|
|
289
|
-
var call$
|
|
290
|
+
var call$k = functionCall;
|
|
290
291
|
var isCallable$e = isCallable$j;
|
|
291
|
-
var isObject$
|
|
292
|
+
var isObject$b = isObject$c;
|
|
292
293
|
|
|
293
294
|
var $TypeError$d = TypeError;
|
|
294
295
|
|
|
@@ -296,40 +297,38 @@ var $TypeError$d = TypeError;
|
|
|
296
297
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
297
298
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
298
299
|
var fn, val;
|
|
299
|
-
if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$
|
|
300
|
-
if (isCallable$e(fn = input.valueOf) && !isObject$
|
|
301
|
-
if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$
|
|
300
|
+
if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$k(fn, input))) return val;
|
|
301
|
+
if (isCallable$e(fn = input.valueOf) && !isObject$b(val = call$k(fn, input))) return val;
|
|
302
|
+
if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$b(val = call$k(fn, input))) return val;
|
|
302
303
|
throw new $TypeError$d("Can't convert object to primitive value");
|
|
303
304
|
};
|
|
304
305
|
|
|
305
306
|
var sharedStore = {exports: {}};
|
|
306
307
|
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
var globalThis$d = globalThis_1;
|
|
308
|
+
var globalThis$f = globalThis_1;
|
|
310
309
|
|
|
311
310
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
312
311
|
var defineProperty$5 = Object.defineProperty;
|
|
313
312
|
|
|
314
313
|
var defineGlobalProperty$3 = function (key, value) {
|
|
315
314
|
try {
|
|
316
|
-
defineProperty$5(globalThis$
|
|
315
|
+
defineProperty$5(globalThis$f, key, { value: value, configurable: true, writable: true });
|
|
317
316
|
} catch (error) {
|
|
318
|
-
globalThis$
|
|
317
|
+
globalThis$f[key] = value;
|
|
319
318
|
} return value;
|
|
320
319
|
};
|
|
321
320
|
|
|
322
|
-
var globalThis$
|
|
321
|
+
var globalThis$e = globalThis_1;
|
|
323
322
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
324
323
|
|
|
325
324
|
var SHARED = '__core-js_shared__';
|
|
326
|
-
var store$3 = sharedStore.exports = globalThis$
|
|
325
|
+
var store$3 = sharedStore.exports = globalThis$e[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
327
326
|
|
|
328
327
|
(store$3.versions || (store$3.versions = [])).push({
|
|
329
|
-
version: '3.
|
|
328
|
+
version: '3.49.0',
|
|
330
329
|
mode: 'global',
|
|
331
|
-
copyright: '©
|
|
332
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
330
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
331
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
|
|
333
332
|
source: 'https://github.com/zloirock/core-js'
|
|
334
333
|
});
|
|
335
334
|
|
|
@@ -351,10 +350,10 @@ var toObject$4 = function (argument) {
|
|
|
351
350
|
return $Object$2(requireObjectCoercible$6(argument));
|
|
352
351
|
};
|
|
353
352
|
|
|
354
|
-
var uncurryThis$
|
|
353
|
+
var uncurryThis$j = functionUncurryThis;
|
|
355
354
|
var toObject$3 = toObject$4;
|
|
356
355
|
|
|
357
|
-
var hasOwnProperty = uncurryThis$
|
|
356
|
+
var hasOwnProperty = uncurryThis$j({}.hasOwnProperty);
|
|
358
357
|
|
|
359
358
|
// `HasOwnProperty` abstract operation
|
|
360
359
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -363,24 +362,24 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
363
362
|
return hasOwnProperty(toObject$3(it), key);
|
|
364
363
|
};
|
|
365
364
|
|
|
366
|
-
var uncurryThis$
|
|
365
|
+
var uncurryThis$i = functionUncurryThis;
|
|
367
366
|
|
|
368
367
|
var id = 0;
|
|
369
368
|
var postfix = Math.random();
|
|
370
|
-
var toString$9 = uncurryThis$
|
|
369
|
+
var toString$9 = uncurryThis$i(1.1.toString);
|
|
371
370
|
|
|
372
371
|
var uid$2 = function (key) {
|
|
373
372
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$9(++id + postfix, 36);
|
|
374
373
|
};
|
|
375
374
|
|
|
376
|
-
var globalThis$
|
|
375
|
+
var globalThis$d = globalThis_1;
|
|
377
376
|
var shared$3 = shared$4;
|
|
378
377
|
var hasOwn$c = hasOwnProperty_1;
|
|
379
378
|
var uid$1 = uid$2;
|
|
380
379
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
381
380
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
382
381
|
|
|
383
|
-
var Symbol$1 = globalThis$
|
|
382
|
+
var Symbol$1 = globalThis$d.Symbol;
|
|
384
383
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
385
384
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
386
385
|
|
|
@@ -392,8 +391,8 @@ var wellKnownSymbol$g = function (name) {
|
|
|
392
391
|
} return WellKnownSymbolsStore[name];
|
|
393
392
|
};
|
|
394
393
|
|
|
395
|
-
var call$
|
|
396
|
-
var isObject$
|
|
394
|
+
var call$j = functionCall;
|
|
395
|
+
var isObject$a = isObject$c;
|
|
397
396
|
var isSymbol$1 = isSymbol$2;
|
|
398
397
|
var getMethod$5 = getMethod$6;
|
|
399
398
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
@@ -405,13 +404,13 @@ var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
|
|
|
405
404
|
// `ToPrimitive` abstract operation
|
|
406
405
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
407
406
|
var toPrimitive$1 = function (input, pref) {
|
|
408
|
-
if (!isObject$
|
|
407
|
+
if (!isObject$a(input) || isSymbol$1(input)) return input;
|
|
409
408
|
var exoticToPrim = getMethod$5(input, TO_PRIMITIVE);
|
|
410
409
|
var result;
|
|
411
410
|
if (exoticToPrim) {
|
|
412
411
|
if (pref === undefined) pref = 'default';
|
|
413
|
-
result = call$
|
|
414
|
-
if (!isObject$
|
|
412
|
+
result = call$j(exoticToPrim, input, pref);
|
|
413
|
+
if (!isObject$a(result) || isSymbol$1(result)) return result;
|
|
415
414
|
throw new $TypeError$c("Can't convert object to primitive value");
|
|
416
415
|
}
|
|
417
416
|
if (pref === undefined) pref = 'number';
|
|
@@ -428,23 +427,23 @@ var toPropertyKey$2 = function (argument) {
|
|
|
428
427
|
return isSymbol(key) ? key : key + '';
|
|
429
428
|
};
|
|
430
429
|
|
|
431
|
-
var globalThis$
|
|
432
|
-
var isObject$
|
|
430
|
+
var globalThis$c = globalThis_1;
|
|
431
|
+
var isObject$9 = isObject$c;
|
|
433
432
|
|
|
434
|
-
var document$1 = globalThis$
|
|
433
|
+
var document$1 = globalThis$c.document;
|
|
435
434
|
// typeof document.createElement is 'object' in old IE
|
|
436
|
-
var EXISTS$1 = isObject$
|
|
435
|
+
var EXISTS$1 = isObject$9(document$1) && isObject$9(document$1.createElement);
|
|
437
436
|
|
|
438
437
|
var documentCreateElement$2 = function (it) {
|
|
439
438
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
440
439
|
};
|
|
441
440
|
|
|
442
441
|
var DESCRIPTORS$c = descriptors;
|
|
443
|
-
var fails$
|
|
442
|
+
var fails$i = fails$n;
|
|
444
443
|
var createElement = documentCreateElement$2;
|
|
445
444
|
|
|
446
445
|
// Thanks to IE8 for its funny defineProperty
|
|
447
|
-
var ie8DomDefine = !DESCRIPTORS$c && !fails$
|
|
446
|
+
var ie8DomDefine = !DESCRIPTORS$c && !fails$i(function () {
|
|
448
447
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
449
448
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
450
449
|
get: function () { return 7; }
|
|
@@ -452,7 +451,7 @@ var ie8DomDefine = !DESCRIPTORS$c && !fails$g(function () {
|
|
|
452
451
|
});
|
|
453
452
|
|
|
454
453
|
var DESCRIPTORS$b = descriptors;
|
|
455
|
-
var call$
|
|
454
|
+
var call$i = functionCall;
|
|
456
455
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
457
456
|
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
458
457
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -471,17 +470,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 :
|
|
|
471
470
|
if (IE8_DOM_DEFINE$1) try {
|
|
472
471
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
473
472
|
} catch (error) { /* empty */ }
|
|
474
|
-
if (hasOwn$b(O, P)) return createPropertyDescriptor$3(!call$
|
|
473
|
+
if (hasOwn$b(O, P)) return createPropertyDescriptor$3(!call$i(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
475
474
|
};
|
|
476
475
|
|
|
477
476
|
var objectDefineProperty = {};
|
|
478
477
|
|
|
479
478
|
var DESCRIPTORS$a = descriptors;
|
|
480
|
-
var fails$
|
|
479
|
+
var fails$h = fails$n;
|
|
481
480
|
|
|
482
481
|
// V8 ~ Chrome 36-
|
|
483
482
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
484
|
-
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$
|
|
483
|
+
var v8PrototypeDefineBug = DESCRIPTORS$a && fails$h(function () {
|
|
485
484
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
486
485
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
487
486
|
value: 42,
|
|
@@ -489,14 +488,14 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$f(function () {
|
|
|
489
488
|
}).prototype !== 42;
|
|
490
489
|
});
|
|
491
490
|
|
|
492
|
-
var isObject$
|
|
491
|
+
var isObject$8 = isObject$c;
|
|
493
492
|
|
|
494
493
|
var $String$3 = String;
|
|
495
494
|
var $TypeError$b = TypeError;
|
|
496
495
|
|
|
497
496
|
// `Assert: Type(argument) is Object`
|
|
498
497
|
var anObject$i = function (argument) {
|
|
499
|
-
if (isObject$
|
|
498
|
+
if (isObject$8(argument)) return argument;
|
|
500
499
|
throw new $TypeError$b($String$3(argument) + ' is not an object');
|
|
501
500
|
};
|
|
502
501
|
|
|
@@ -566,7 +565,7 @@ var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
|
|
|
566
565
|
|
|
567
566
|
var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
|
|
568
567
|
// additional protection from minified / mangled / dropped function names
|
|
569
|
-
var PROPER = EXISTS &&
|
|
568
|
+
var PROPER = EXISTS && function something() { /* empty */ }.name === 'something';
|
|
570
569
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
571
570
|
|
|
572
571
|
var functionName = {
|
|
@@ -574,11 +573,11 @@ var functionName = {
|
|
|
574
573
|
CONFIGURABLE: CONFIGURABLE
|
|
575
574
|
};
|
|
576
575
|
|
|
577
|
-
var uncurryThis$
|
|
576
|
+
var uncurryThis$h = functionUncurryThis;
|
|
578
577
|
var isCallable$d = isCallable$j;
|
|
579
578
|
var store$1 = sharedStoreExports;
|
|
580
579
|
|
|
581
|
-
var functionToString = uncurryThis$
|
|
580
|
+
var functionToString = uncurryThis$h(Function.toString);
|
|
582
581
|
|
|
583
582
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
584
583
|
if (!isCallable$d(store$1.inspectSource)) {
|
|
@@ -589,10 +588,10 @@ if (!isCallable$d(store$1.inspectSource)) {
|
|
|
589
588
|
|
|
590
589
|
var inspectSource$1 = store$1.inspectSource;
|
|
591
590
|
|
|
592
|
-
var globalThis$
|
|
591
|
+
var globalThis$b = globalThis_1;
|
|
593
592
|
var isCallable$c = isCallable$j;
|
|
594
593
|
|
|
595
|
-
var WeakMap$1 = globalThis$
|
|
594
|
+
var WeakMap$1 = globalThis$b.WeakMap;
|
|
596
595
|
|
|
597
596
|
var weakMapBasicDetection = isCallable$c(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
598
597
|
|
|
@@ -608,8 +607,8 @@ var sharedKey$3 = function (key) {
|
|
|
608
607
|
var hiddenKeys$4 = {};
|
|
609
608
|
|
|
610
609
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
611
|
-
var globalThis$
|
|
612
|
-
var isObject$
|
|
610
|
+
var globalThis$a = globalThis_1;
|
|
611
|
+
var isObject$7 = isObject$c;
|
|
613
612
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
|
|
614
613
|
var hasOwn$9 = hasOwnProperty_1;
|
|
615
614
|
var shared$1 = sharedStoreExports;
|
|
@@ -617,8 +616,8 @@ var sharedKey$2 = sharedKey$3;
|
|
|
617
616
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
618
617
|
|
|
619
618
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
620
|
-
var TypeError$1 = globalThis$
|
|
621
|
-
var WeakMap = globalThis$
|
|
619
|
+
var TypeError$1 = globalThis$a.TypeError;
|
|
620
|
+
var WeakMap = globalThis$a.WeakMap;
|
|
622
621
|
var set, get, has$6;
|
|
623
622
|
|
|
624
623
|
var enforce = function (it) {
|
|
@@ -628,7 +627,7 @@ var enforce = function (it) {
|
|
|
628
627
|
var getterFor = function (TYPE) {
|
|
629
628
|
return function (it) {
|
|
630
629
|
var state;
|
|
631
|
-
if (!isObject$
|
|
630
|
+
if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
|
|
632
631
|
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
633
632
|
} return state;
|
|
634
633
|
};
|
|
@@ -678,8 +677,8 @@ var internalState = {
|
|
|
678
677
|
getterFor: getterFor
|
|
679
678
|
};
|
|
680
679
|
|
|
681
|
-
var uncurryThis$
|
|
682
|
-
var fails$
|
|
680
|
+
var uncurryThis$g = functionUncurryThis;
|
|
681
|
+
var fails$g = fails$n;
|
|
683
682
|
var isCallable$b = isCallable$j;
|
|
684
683
|
var hasOwn$8 = hasOwnProperty_1;
|
|
685
684
|
var DESCRIPTORS$6 = descriptors;
|
|
@@ -692,11 +691,11 @@ var getInternalState$2 = InternalStateModule$2.get;
|
|
|
692
691
|
var $String$2 = String;
|
|
693
692
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
694
693
|
var defineProperty$4 = Object.defineProperty;
|
|
695
|
-
var stringSlice$5 = uncurryThis$
|
|
696
|
-
var replace$2 = uncurryThis$
|
|
697
|
-
var join = uncurryThis$
|
|
694
|
+
var stringSlice$5 = uncurryThis$g(''.slice);
|
|
695
|
+
var replace$2 = uncurryThis$g(''.replace);
|
|
696
|
+
var join = uncurryThis$g([].join);
|
|
698
697
|
|
|
699
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$
|
|
698
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$g(function () {
|
|
700
699
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
701
700
|
});
|
|
702
701
|
|
|
@@ -852,13 +851,13 @@ var arrayIncludes = {
|
|
|
852
851
|
indexOf: createMethod$1(false)
|
|
853
852
|
};
|
|
854
853
|
|
|
855
|
-
var uncurryThis$
|
|
854
|
+
var uncurryThis$f = functionUncurryThis;
|
|
856
855
|
var hasOwn$7 = hasOwnProperty_1;
|
|
857
856
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
858
857
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
859
858
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
860
859
|
|
|
861
|
-
var push$2 = uncurryThis$
|
|
860
|
+
var push$2 = uncurryThis$f([].push);
|
|
862
861
|
|
|
863
862
|
var objectKeysInternal = function (object, names) {
|
|
864
863
|
var O = toIndexedObject$2(object);
|
|
@@ -902,12 +901,12 @@ var objectGetOwnPropertySymbols = {};
|
|
|
902
901
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
903
902
|
|
|
904
903
|
var getBuiltIn$3 = getBuiltIn$5;
|
|
905
|
-
var uncurryThis$
|
|
904
|
+
var uncurryThis$e = functionUncurryThis;
|
|
906
905
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
907
906
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
908
907
|
var anObject$g = anObject$i;
|
|
909
908
|
|
|
910
|
-
var concat$1 = uncurryThis$
|
|
909
|
+
var concat$1 = uncurryThis$e([].concat);
|
|
911
910
|
|
|
912
911
|
// all object keys, includes non-enumerable and symbols
|
|
913
912
|
var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -933,7 +932,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
933
932
|
}
|
|
934
933
|
};
|
|
935
934
|
|
|
936
|
-
var fails$
|
|
935
|
+
var fails$f = fails$n;
|
|
937
936
|
var isCallable$9 = isCallable$j;
|
|
938
937
|
|
|
939
938
|
var replacement = /#|\.prototype\./;
|
|
@@ -942,7 +941,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
942
941
|
var value = data[normalize(feature)];
|
|
943
942
|
return value === POLYFILL ? true
|
|
944
943
|
: value === NATIVE ? false
|
|
945
|
-
: isCallable$9(detection) ? fails$
|
|
944
|
+
: isCallable$9(detection) ? fails$f(detection)
|
|
946
945
|
: !!detection;
|
|
947
946
|
};
|
|
948
947
|
|
|
@@ -956,7 +955,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
956
955
|
|
|
957
956
|
var isForced_1 = isForced$1;
|
|
958
957
|
|
|
959
|
-
var globalThis$
|
|
958
|
+
var globalThis$9 = globalThis_1;
|
|
960
959
|
var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
|
|
961
960
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
962
961
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
@@ -985,11 +984,11 @@ var _export = function (options, source) {
|
|
|
985
984
|
var STATIC = options.stat;
|
|
986
985
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
987
986
|
if (GLOBAL) {
|
|
988
|
-
target = globalThis$
|
|
987
|
+
target = globalThis$9;
|
|
989
988
|
} else if (STATIC) {
|
|
990
|
-
target = globalThis$
|
|
989
|
+
target = globalThis$9[TARGET] || defineGlobalProperty(TARGET, {});
|
|
991
990
|
} else {
|
|
992
|
-
target = globalThis$
|
|
991
|
+
target = globalThis$9[TARGET] && globalThis$9[TARGET].prototype;
|
|
993
992
|
}
|
|
994
993
|
if (target) for (key in source) {
|
|
995
994
|
sourceProperty = source[key];
|
|
@@ -1156,18 +1155,24 @@ var addToUnscopables$2 = function (key) {
|
|
|
1156
1155
|
|
|
1157
1156
|
var $$h = _export;
|
|
1158
1157
|
var $includes = arrayIncludes.includes;
|
|
1159
|
-
var fails$
|
|
1158
|
+
var fails$e = fails$n;
|
|
1160
1159
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
1161
1160
|
|
|
1162
1161
|
// FF99+ bug
|
|
1163
|
-
var BROKEN_ON_SPARSE = fails$
|
|
1162
|
+
var BROKEN_ON_SPARSE = fails$e(function () {
|
|
1164
1163
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1165
1164
|
return !Array(1).includes();
|
|
1166
1165
|
});
|
|
1167
1166
|
|
|
1167
|
+
// Safari 26.4- bug
|
|
1168
|
+
var BROKEN_ON_SPARSE_WITH_FROM_INDEX = fails$e(function () {
|
|
1169
|
+
// eslint-disable-next-line no-sparse-arrays, es/no-array-prototype-includes -- detection
|
|
1170
|
+
return [, 1].includes(undefined, 1);
|
|
1171
|
+
});
|
|
1172
|
+
|
|
1168
1173
|
// `Array.prototype.includes` method
|
|
1169
1174
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1170
|
-
$$h({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1175
|
+
$$h({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE || BROKEN_ON_SPARSE_WITH_FROM_INDEX }, {
|
|
1171
1176
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1172
1177
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1173
1178
|
}
|
|
@@ -1178,9 +1183,9 @@ addToUnscopables$1('includes');
|
|
|
1178
1183
|
|
|
1179
1184
|
var iterators = {};
|
|
1180
1185
|
|
|
1181
|
-
var fails$
|
|
1186
|
+
var fails$d = fails$n;
|
|
1182
1187
|
|
|
1183
|
-
var correctPrototypeGetter = !fails$
|
|
1188
|
+
var correctPrototypeGetter = !fails$d(function () {
|
|
1184
1189
|
function F() { /* empty */ }
|
|
1185
1190
|
F.prototype.constructor = null;
|
|
1186
1191
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1209,9 +1214,9 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1209
1214
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1210
1215
|
};
|
|
1211
1216
|
|
|
1212
|
-
var fails$
|
|
1217
|
+
var fails$c = fails$n;
|
|
1213
1218
|
var isCallable$7 = isCallable$j;
|
|
1214
|
-
var isObject$
|
|
1219
|
+
var isObject$6 = isObject$c;
|
|
1215
1220
|
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
1216
1221
|
var defineBuiltIn$4 = defineBuiltIn$6;
|
|
1217
1222
|
var wellKnownSymbol$d = wellKnownSymbol$g;
|
|
@@ -1234,7 +1239,7 @@ if ([].keys) {
|
|
|
1234
1239
|
}
|
|
1235
1240
|
}
|
|
1236
1241
|
|
|
1237
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1242
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$4) || fails$c(function () {
|
|
1238
1243
|
var test = {};
|
|
1239
1244
|
// FF44- legacy iterators case
|
|
1240
1245
|
return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
|
|
@@ -1284,20 +1289,20 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1284
1289
|
return IteratorConstructor;
|
|
1285
1290
|
};
|
|
1286
1291
|
|
|
1287
|
-
var uncurryThis$
|
|
1292
|
+
var uncurryThis$d = functionUncurryThis;
|
|
1288
1293
|
var aCallable$5 = aCallable$7;
|
|
1289
1294
|
|
|
1290
1295
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1291
1296
|
try {
|
|
1292
1297
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1293
|
-
return uncurryThis$
|
|
1298
|
+
return uncurryThis$d(aCallable$5(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1294
1299
|
} catch (error) { /* empty */ }
|
|
1295
1300
|
};
|
|
1296
1301
|
|
|
1297
|
-
var isObject$
|
|
1302
|
+
var isObject$5 = isObject$c;
|
|
1298
1303
|
|
|
1299
1304
|
var isPossiblePrototype$1 = function (argument) {
|
|
1300
|
-
return isObject$
|
|
1305
|
+
return isObject$5(argument) || argument === null;
|
|
1301
1306
|
};
|
|
1302
1307
|
|
|
1303
1308
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
@@ -1312,7 +1317,7 @@ var aPossiblePrototype$1 = function (argument) {
|
|
|
1312
1317
|
|
|
1313
1318
|
/* eslint-disable no-proto -- safe */
|
|
1314
1319
|
var uncurryThisAccessor$1 = functionUncurryThisAccessor;
|
|
1315
|
-
var isObject$
|
|
1320
|
+
var isObject$4 = isObject$c;
|
|
1316
1321
|
var requireObjectCoercible$5 = requireObjectCoercible$8;
|
|
1317
1322
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1318
1323
|
|
|
@@ -1332,7 +1337,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1332
1337
|
return function setPrototypeOf(O, proto) {
|
|
1333
1338
|
requireObjectCoercible$5(O);
|
|
1334
1339
|
aPossiblePrototype(proto);
|
|
1335
|
-
if (!isObject$
|
|
1340
|
+
if (!isObject$4(O)) return O;
|
|
1336
1341
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1337
1342
|
else O.__proto__ = proto;
|
|
1338
1343
|
return O;
|
|
@@ -1340,7 +1345,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1340
1345
|
}() : undefined);
|
|
1341
1346
|
|
|
1342
1347
|
var $$g = _export;
|
|
1343
|
-
var call$
|
|
1348
|
+
var call$h = functionCall;
|
|
1344
1349
|
var FunctionName = functionName;
|
|
1345
1350
|
var isCallable$6 = isCallable$j;
|
|
1346
1351
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1412,7 +1417,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1412
1417
|
createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
|
|
1413
1418
|
} else {
|
|
1414
1419
|
INCORRECT_VALUES_NAME = true;
|
|
1415
|
-
defaultIterator = function values() { return call$
|
|
1420
|
+
defaultIterator = function values() { return call$h(nativeIterator, this); };
|
|
1416
1421
|
}
|
|
1417
1422
|
}
|
|
1418
1423
|
|
|
@@ -1510,7 +1515,7 @@ var wellKnownSymbol$a = wellKnownSymbol$g;
|
|
|
1510
1515
|
|
|
1511
1516
|
var TO_STRING_TAG$3 = wellKnownSymbol$a('toStringTag');
|
|
1512
1517
|
var test = {};
|
|
1513
|
-
|
|
1518
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1514
1519
|
test[TO_STRING_TAG$3] = 'z';
|
|
1515
1520
|
|
|
1516
1521
|
var toStringTagSupport = String(test) === '[object z]';
|
|
@@ -1572,13 +1577,13 @@ var regexpFlags$1 = function () {
|
|
|
1572
1577
|
return result;
|
|
1573
1578
|
};
|
|
1574
1579
|
|
|
1575
|
-
var fails$
|
|
1576
|
-
var globalThis$
|
|
1580
|
+
var fails$b = fails$n;
|
|
1581
|
+
var globalThis$8 = globalThis_1;
|
|
1577
1582
|
|
|
1578
1583
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1579
|
-
var $RegExp$2 = globalThis$
|
|
1584
|
+
var $RegExp$2 = globalThis$8.RegExp;
|
|
1580
1585
|
|
|
1581
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
1586
|
+
var UNSUPPORTED_Y$1 = fails$b(function () {
|
|
1582
1587
|
var re = $RegExp$2('a', 'y');
|
|
1583
1588
|
re.lastIndex = 2;
|
|
1584
1589
|
return re.exec('abcd') !== null;
|
|
@@ -1586,11 +1591,11 @@ var UNSUPPORTED_Y$1 = fails$9(function () {
|
|
|
1586
1591
|
|
|
1587
1592
|
// UC Browser bug
|
|
1588
1593
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1589
|
-
UNSUPPORTED_Y$1 || fails$
|
|
1594
|
+
UNSUPPORTED_Y$1 || fails$b(function () {
|
|
1590
1595
|
return !$RegExp$2('a', 'y').sticky;
|
|
1591
1596
|
});
|
|
1592
1597
|
|
|
1593
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
1598
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$b(function () {
|
|
1594
1599
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1595
1600
|
var re = $RegExp$2('^r', 'gy');
|
|
1596
1601
|
re.lastIndex = 2;
|
|
@@ -1600,24 +1605,24 @@ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$9(function () {
|
|
|
1600
1605
|
var regexpStickyHelpers = {
|
|
1601
1606
|
BROKEN_CARET: BROKEN_CARET};
|
|
1602
1607
|
|
|
1603
|
-
var fails$
|
|
1604
|
-
var globalThis$
|
|
1608
|
+
var fails$a = fails$n;
|
|
1609
|
+
var globalThis$7 = globalThis_1;
|
|
1605
1610
|
|
|
1606
1611
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1607
|
-
var $RegExp$1 = globalThis$
|
|
1612
|
+
var $RegExp$1 = globalThis$7.RegExp;
|
|
1608
1613
|
|
|
1609
|
-
var regexpUnsupportedDotAll = fails$
|
|
1614
|
+
var regexpUnsupportedDotAll = fails$a(function () {
|
|
1610
1615
|
var re = $RegExp$1('.', 's');
|
|
1611
1616
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
1612
1617
|
});
|
|
1613
1618
|
|
|
1614
|
-
var fails$
|
|
1615
|
-
var globalThis$
|
|
1619
|
+
var fails$9 = fails$n;
|
|
1620
|
+
var globalThis$6 = globalThis_1;
|
|
1616
1621
|
|
|
1617
1622
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1618
|
-
var $RegExp = globalThis$
|
|
1623
|
+
var $RegExp = globalThis$6.RegExp;
|
|
1619
1624
|
|
|
1620
|
-
var regexpUnsupportedNcg = fails$
|
|
1625
|
+
var regexpUnsupportedNcg = fails$9(function () {
|
|
1621
1626
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1622
1627
|
return re.exec('b').groups.a !== 'b' ||
|
|
1623
1628
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1625,8 +1630,8 @@ var regexpUnsupportedNcg = fails$7(function () {
|
|
|
1625
1630
|
|
|
1626
1631
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1627
1632
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1628
|
-
var call$
|
|
1629
|
-
var uncurryThis$
|
|
1633
|
+
var call$g = functionCall;
|
|
1634
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1630
1635
|
var toString$7 = toString$8;
|
|
1631
1636
|
var regexpFlags = regexpFlags$1;
|
|
1632
1637
|
var stickyHelpers = regexpStickyHelpers;
|
|
@@ -1639,16 +1644,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
1639
1644
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1640
1645
|
var nativeExec = RegExp.prototype.exec;
|
|
1641
1646
|
var patchedExec = nativeExec;
|
|
1642
|
-
var charAt$3 = uncurryThis$
|
|
1643
|
-
var indexOf = uncurryThis$
|
|
1644
|
-
var replace$1 = uncurryThis$
|
|
1645
|
-
var stringSlice$4 = uncurryThis$
|
|
1647
|
+
var charAt$3 = uncurryThis$c(''.charAt);
|
|
1648
|
+
var indexOf = uncurryThis$c(''.indexOf);
|
|
1649
|
+
var replace$1 = uncurryThis$c(''.replace);
|
|
1650
|
+
var stringSlice$4 = uncurryThis$c(''.slice);
|
|
1646
1651
|
|
|
1647
1652
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1648
1653
|
var re1 = /a/;
|
|
1649
1654
|
var re2 = /b*/g;
|
|
1650
|
-
call$
|
|
1651
|
-
call$
|
|
1655
|
+
call$g(nativeExec, re1, 'a');
|
|
1656
|
+
call$g(nativeExec, re2, 'a');
|
|
1652
1657
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1653
1658
|
})();
|
|
1654
1659
|
|
|
@@ -1659,24 +1664,35 @@ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
|
1659
1664
|
|
|
1660
1665
|
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
1661
1666
|
|
|
1667
|
+
var setGroups = function (re, groups) {
|
|
1668
|
+
var object = re.groups = create$1(null);
|
|
1669
|
+
for (var i = 0; i < groups.length; i++) {
|
|
1670
|
+
var group = groups[i];
|
|
1671
|
+
object[group[0]] = re[group[1]];
|
|
1672
|
+
}
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1662
1675
|
if (PATCH) {
|
|
1663
1676
|
patchedExec = function exec(string) {
|
|
1664
1677
|
var re = this;
|
|
1665
1678
|
var state = getInternalState(re);
|
|
1666
1679
|
var str = toString$7(string);
|
|
1667
1680
|
var raw = state.raw;
|
|
1668
|
-
var result, reCopy, lastIndex
|
|
1681
|
+
var result, reCopy, lastIndex;
|
|
1669
1682
|
|
|
1670
1683
|
if (raw) {
|
|
1671
1684
|
raw.lastIndex = re.lastIndex;
|
|
1672
|
-
result = call$
|
|
1685
|
+
result = call$g(patchedExec, raw, str);
|
|
1673
1686
|
re.lastIndex = raw.lastIndex;
|
|
1687
|
+
|
|
1688
|
+
if (result && state.groups) setGroups(result, state.groups);
|
|
1689
|
+
|
|
1674
1690
|
return result;
|
|
1675
1691
|
}
|
|
1676
1692
|
|
|
1677
1693
|
var groups = state.groups;
|
|
1678
1694
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1679
|
-
var flags = call$
|
|
1695
|
+
var flags = call$g(regexpFlags, re);
|
|
1680
1696
|
var source = re.source;
|
|
1681
1697
|
var charsAdded = 0;
|
|
1682
1698
|
var strCopy = str;
|
|
@@ -1689,8 +1705,10 @@ if (PATCH) {
|
|
|
1689
1705
|
|
|
1690
1706
|
strCopy = stringSlice$4(str, re.lastIndex);
|
|
1691
1707
|
// Support anchored sticky behavior.
|
|
1692
|
-
|
|
1693
|
-
|
|
1708
|
+
var prevChar = re.lastIndex > 0 && charAt$3(str, re.lastIndex - 1);
|
|
1709
|
+
if (re.lastIndex > 0 &&
|
|
1710
|
+
(!re.multiline || re.multiline && prevChar !== '\n' && prevChar !== '\r' && prevChar !== '\u2028' && prevChar !== '\u2029')) {
|
|
1711
|
+
source = '(?: (?:' + source + '))';
|
|
1694
1712
|
strCopy = ' ' + strCopy;
|
|
1695
1713
|
charsAdded++;
|
|
1696
1714
|
}
|
|
@@ -1704,11 +1722,11 @@ if (PATCH) {
|
|
|
1704
1722
|
}
|
|
1705
1723
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1706
1724
|
|
|
1707
|
-
match = call$
|
|
1725
|
+
var match = call$g(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1708
1726
|
|
|
1709
1727
|
if (sticky) {
|
|
1710
1728
|
if (match) {
|
|
1711
|
-
match.input =
|
|
1729
|
+
match.input = str;
|
|
1712
1730
|
match[0] = stringSlice$4(match[0], charsAdded);
|
|
1713
1731
|
match.index = re.lastIndex;
|
|
1714
1732
|
re.lastIndex += match[0].length;
|
|
@@ -1719,20 +1737,14 @@ if (PATCH) {
|
|
|
1719
1737
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1720
1738
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1721
1739
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1722
|
-
call$
|
|
1723
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
1740
|
+
call$g(nativeReplace, match[0], reCopy, function () {
|
|
1741
|
+
for (var i = 1; i < arguments.length - 2; i++) {
|
|
1724
1742
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1725
1743
|
}
|
|
1726
1744
|
});
|
|
1727
1745
|
}
|
|
1728
1746
|
|
|
1729
|
-
if (match && groups)
|
|
1730
|
-
match.groups = object = create$1(null);
|
|
1731
|
-
for (i = 0; i < groups.length; i++) {
|
|
1732
|
-
group = groups[i];
|
|
1733
|
-
object[group[0]] = match[group[1]];
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1747
|
+
if (match && groups) setGroups(match, groups);
|
|
1736
1748
|
|
|
1737
1749
|
return match;
|
|
1738
1750
|
};
|
|
@@ -1749,31 +1761,81 @@ $$f({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
|
|
|
1749
1761
|
exec: exec$2
|
|
1750
1762
|
});
|
|
1751
1763
|
|
|
1752
|
-
var
|
|
1764
|
+
var globalThis$5 = globalThis_1;
|
|
1765
|
+
var fails$8 = fails$n;
|
|
1766
|
+
|
|
1767
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
|
|
1768
|
+
var RegExp$1 = globalThis$5.RegExp;
|
|
1769
|
+
|
|
1770
|
+
var FLAGS_GETTER_IS_CORRECT = !fails$8(function () {
|
|
1771
|
+
var INDICES_SUPPORT = true;
|
|
1772
|
+
try {
|
|
1773
|
+
RegExp$1('.', 'd');
|
|
1774
|
+
} catch (error) {
|
|
1775
|
+
INDICES_SUPPORT = false;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
var O = {};
|
|
1779
|
+
// modern V8 bug
|
|
1780
|
+
var calls = '';
|
|
1781
|
+
var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';
|
|
1782
|
+
|
|
1783
|
+
var addGetter = function (key, chr) {
|
|
1784
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1785
|
+
Object.defineProperty(O, key, { get: function () {
|
|
1786
|
+
calls += chr;
|
|
1787
|
+
return true;
|
|
1788
|
+
} });
|
|
1789
|
+
};
|
|
1790
|
+
|
|
1791
|
+
var pairs = {
|
|
1792
|
+
dotAll: 's',
|
|
1793
|
+
global: 'g',
|
|
1794
|
+
ignoreCase: 'i',
|
|
1795
|
+
multiline: 'm',
|
|
1796
|
+
sticky: 'y'
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
if (INDICES_SUPPORT) pairs.hasIndices = 'd';
|
|
1800
|
+
|
|
1801
|
+
for (var key in pairs) addGetter(key, pairs[key]);
|
|
1802
|
+
|
|
1803
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1804
|
+
var result = Object.getOwnPropertyDescriptor(RegExp$1.prototype, 'flags').get.call(O);
|
|
1805
|
+
|
|
1806
|
+
return result !== expected || calls !== expected;
|
|
1807
|
+
});
|
|
1808
|
+
|
|
1809
|
+
var regexpFlagsDetection = { correct: FLAGS_GETTER_IS_CORRECT };
|
|
1810
|
+
|
|
1811
|
+
var call$f = functionCall;
|
|
1753
1812
|
var hasOwn$3 = hasOwnProperty_1;
|
|
1754
1813
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1755
|
-
var
|
|
1814
|
+
var regExpFlagsDetection = regexpFlagsDetection;
|
|
1815
|
+
var regExpFlagsGetterImplementation = regexpFlags$1;
|
|
1756
1816
|
|
|
1757
1817
|
var RegExpPrototype$2 = RegExp.prototype;
|
|
1758
1818
|
|
|
1759
|
-
var regexpGetFlags = function (
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1819
|
+
var regexpGetFlags = regExpFlagsDetection.correct ? function (it) {
|
|
1820
|
+
return it.flags;
|
|
1821
|
+
} : function (it) {
|
|
1822
|
+
return (!regExpFlagsDetection.correct && isPrototypeOf$2(RegExpPrototype$2, it) && !hasOwn$3(it, 'flags'))
|
|
1823
|
+
? call$f(regExpFlagsGetterImplementation, it)
|
|
1824
|
+
: it.flags;
|
|
1763
1825
|
};
|
|
1764
1826
|
|
|
1765
1827
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
1766
1828
|
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
1767
1829
|
var anObject$c = anObject$i;
|
|
1768
1830
|
var $toString = toString$8;
|
|
1769
|
-
var fails$
|
|
1770
|
-
var getRegExpFlags = regexpGetFlags;
|
|
1831
|
+
var fails$7 = fails$n;
|
|
1832
|
+
var getRegExpFlags$2 = regexpGetFlags;
|
|
1771
1833
|
|
|
1772
1834
|
var TO_STRING = 'toString';
|
|
1773
1835
|
var RegExpPrototype$1 = RegExp.prototype;
|
|
1774
1836
|
var nativeToString = RegExpPrototype$1[TO_STRING];
|
|
1775
1837
|
|
|
1776
|
-
var NOT_GENERIC = fails$
|
|
1838
|
+
var NOT_GENERIC = fails$7(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
1777
1839
|
// FF44- RegExp#toString has a wrong name
|
|
1778
1840
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
1779
1841
|
|
|
@@ -1783,12 +1845,12 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
1783
1845
|
defineBuiltIn$2(RegExpPrototype$1, TO_STRING, function toString() {
|
|
1784
1846
|
var R = anObject$c(this);
|
|
1785
1847
|
var pattern = $toString(R.source);
|
|
1786
|
-
var flags = $toString(getRegExpFlags(R));
|
|
1848
|
+
var flags = $toString(getRegExpFlags$2(R));
|
|
1787
1849
|
return '/' + pattern + '/' + flags;
|
|
1788
1850
|
}, { unsafe: true });
|
|
1789
1851
|
}
|
|
1790
1852
|
|
|
1791
|
-
var isObject$
|
|
1853
|
+
var isObject$3 = isObject$c;
|
|
1792
1854
|
var classof$3 = classofRaw$2;
|
|
1793
1855
|
var wellKnownSymbol$8 = wellKnownSymbol$g;
|
|
1794
1856
|
|
|
@@ -1798,7 +1860,7 @@ var MATCH$1 = wellKnownSymbol$8('match');
|
|
|
1798
1860
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
1799
1861
|
var isRegexp = function (it) {
|
|
1800
1862
|
var isRegExp;
|
|
1801
|
-
return isObject$
|
|
1863
|
+
return isObject$3(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) === 'RegExp');
|
|
1802
1864
|
};
|
|
1803
1865
|
|
|
1804
1866
|
var isRegExp = isRegexp;
|
|
@@ -1828,19 +1890,19 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
1828
1890
|
};
|
|
1829
1891
|
|
|
1830
1892
|
var $$e = _export;
|
|
1831
|
-
var uncurryThis$
|
|
1893
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1832
1894
|
var notARegExp$1 = notARegexp;
|
|
1833
1895
|
var requireObjectCoercible$4 = requireObjectCoercible$8;
|
|
1834
1896
|
var toString$6 = toString$8;
|
|
1835
1897
|
var correctIsRegExpLogic$1 = correctIsRegexpLogic;
|
|
1836
1898
|
|
|
1837
|
-
var stringIndexOf$
|
|
1899
|
+
var stringIndexOf$2 = uncurryThis$b(''.indexOf);
|
|
1838
1900
|
|
|
1839
1901
|
// `String.prototype.includes` method
|
|
1840
1902
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
1841
1903
|
$$e({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
|
|
1842
1904
|
includes: function includes(searchString /* , position = 0 */) {
|
|
1843
|
-
return !!~stringIndexOf$
|
|
1905
|
+
return !!~stringIndexOf$2(
|
|
1844
1906
|
toString$6(requireObjectCoercible$4(this)),
|
|
1845
1907
|
toString$6(notARegExp$1(searchString)),
|
|
1846
1908
|
arguments.length > 1 ? arguments[1] : undefined
|
|
@@ -1850,10 +1912,10 @@ $$e({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes')
|
|
|
1850
1912
|
|
|
1851
1913
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1852
1914
|
|
|
1853
|
-
var call$
|
|
1915
|
+
var call$e = functionCall;
|
|
1854
1916
|
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
1855
1917
|
var regexpExec$1 = regexpExec$2;
|
|
1856
|
-
var fails$
|
|
1918
|
+
var fails$6 = fails$n;
|
|
1857
1919
|
var wellKnownSymbol$6 = wellKnownSymbol$g;
|
|
1858
1920
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
|
|
1859
1921
|
|
|
@@ -1863,14 +1925,15 @@ var RegExpPrototype = RegExp.prototype;
|
|
|
1863
1925
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1864
1926
|
var SYMBOL = wellKnownSymbol$6(KEY);
|
|
1865
1927
|
|
|
1866
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
1928
|
+
var DELEGATES_TO_SYMBOL = !fails$6(function () {
|
|
1867
1929
|
// String methods call symbol-named RegExp methods
|
|
1868
1930
|
var O = {};
|
|
1931
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1869
1932
|
O[SYMBOL] = function () { return 7; };
|
|
1870
1933
|
return ''[KEY](O) !== 7;
|
|
1871
1934
|
});
|
|
1872
1935
|
|
|
1873
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
1936
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$6(function () {
|
|
1874
1937
|
// Symbol-named RegExp methods call .exec
|
|
1875
1938
|
var execCalled = false;
|
|
1876
1939
|
var re = /a/;
|
|
@@ -1879,12 +1942,13 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1879
1942
|
// We can't use real regex here since it causes deoptimization
|
|
1880
1943
|
// and serious performance degradation in V8
|
|
1881
1944
|
// https://github.com/zloirock/core-js/issues/306
|
|
1882
|
-
re = {};
|
|
1883
1945
|
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
1884
1946
|
// a new one. We need to return the patched regex when creating the new one.
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1947
|
+
var constructor = {};
|
|
1948
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1949
|
+
constructor[SPECIES] = function () { return re; };
|
|
1950
|
+
re = { constructor: constructor, flags: '' };
|
|
1951
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1888
1952
|
re[SYMBOL] = /./[SYMBOL];
|
|
1889
1953
|
}
|
|
1890
1954
|
|
|
@@ -1910,9 +1974,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1910
1974
|
// The native String method already delegates to @@method (this
|
|
1911
1975
|
// polyfilled function), leasing to infinite recursion.
|
|
1912
1976
|
// We avoid it by directly calling the native @@method method.
|
|
1913
|
-
return { done: true, value: call$
|
|
1977
|
+
return { done: true, value: call$e(nativeRegExpMethod, regexp, str, arg2) };
|
|
1914
1978
|
}
|
|
1915
|
-
return { done: true, value: call$
|
|
1979
|
+
return { done: true, value: call$e(nativeMethod, str, regexp, arg2) };
|
|
1916
1980
|
}
|
|
1917
1981
|
return { done: false };
|
|
1918
1982
|
});
|
|
@@ -1924,14 +1988,14 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
1924
1988
|
if (SHAM) createNonEnumerableProperty$2(RegExpPrototype[SYMBOL], 'sham', true);
|
|
1925
1989
|
};
|
|
1926
1990
|
|
|
1927
|
-
var uncurryThis$
|
|
1991
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1928
1992
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
|
|
1929
1993
|
var toString$5 = toString$8;
|
|
1930
1994
|
var requireObjectCoercible$3 = requireObjectCoercible$8;
|
|
1931
1995
|
|
|
1932
|
-
var charAt$2 = uncurryThis$
|
|
1933
|
-
var charCodeAt = uncurryThis$
|
|
1934
|
-
var stringSlice$3 = uncurryThis$
|
|
1996
|
+
var charAt$2 = uncurryThis$a(''.charAt);
|
|
1997
|
+
var charCodeAt = uncurryThis$a(''.charCodeAt);
|
|
1998
|
+
var stringSlice$3 = uncurryThis$a(''.slice);
|
|
1935
1999
|
|
|
1936
2000
|
var createMethod = function (CONVERT_TO_STRING) {
|
|
1937
2001
|
return function ($this, pos) {
|
|
@@ -1963,10 +2027,10 @@ var charAt$1 = stringMultibyte.charAt;
|
|
|
1963
2027
|
// `AdvanceStringIndex` abstract operation
|
|
1964
2028
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
1965
2029
|
var advanceStringIndex$2 = function (S, index, unicode) {
|
|
1966
|
-
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
2030
|
+
return index + (unicode ? charAt$1(S, index).length || 1 : 1);
|
|
1967
2031
|
};
|
|
1968
2032
|
|
|
1969
|
-
var call$
|
|
2033
|
+
var call$d = functionCall;
|
|
1970
2034
|
var anObject$b = anObject$i;
|
|
1971
2035
|
var isCallable$4 = isCallable$j;
|
|
1972
2036
|
var classof$2 = classofRaw$2;
|
|
@@ -1979,25 +2043,29 @@ var $TypeError$7 = TypeError;
|
|
|
1979
2043
|
var regexpExecAbstract = function (R, S) {
|
|
1980
2044
|
var exec = R.exec;
|
|
1981
2045
|
if (isCallable$4(exec)) {
|
|
1982
|
-
var result = call$
|
|
2046
|
+
var result = call$d(exec, R, S);
|
|
1983
2047
|
if (result !== null) anObject$b(result);
|
|
1984
2048
|
return result;
|
|
1985
2049
|
}
|
|
1986
|
-
if (classof$2(R) === 'RegExp') return call$
|
|
2050
|
+
if (classof$2(R) === 'RegExp') return call$d(regexpExec, R, S);
|
|
1987
2051
|
throw new $TypeError$7('RegExp#exec called on incompatible receiver');
|
|
1988
2052
|
};
|
|
1989
2053
|
|
|
1990
|
-
var call$
|
|
2054
|
+
var call$c = functionCall;
|
|
2055
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1991
2056
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
1992
2057
|
var anObject$a = anObject$i;
|
|
1993
|
-
var
|
|
2058
|
+
var isObject$2 = isObject$c;
|
|
1994
2059
|
var toLength$2 = toLength$4;
|
|
1995
2060
|
var toString$4 = toString$8;
|
|
1996
2061
|
var requireObjectCoercible$2 = requireObjectCoercible$8;
|
|
1997
2062
|
var getMethod$4 = getMethod$6;
|
|
1998
2063
|
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
2064
|
+
var getRegExpFlags$1 = regexpGetFlags;
|
|
1999
2065
|
var regExpExec$1 = regexpExecAbstract;
|
|
2000
2066
|
|
|
2067
|
+
var stringIndexOf$1 = uncurryThis$9(''.indexOf);
|
|
2068
|
+
|
|
2001
2069
|
// @@match logic
|
|
2002
2070
|
fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) {
|
|
2003
2071
|
return [
|
|
@@ -2005,8 +2073,8 @@ fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCall
|
|
|
2005
2073
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
2006
2074
|
function match(regexp) {
|
|
2007
2075
|
var O = requireObjectCoercible$2(this);
|
|
2008
|
-
var matcher =
|
|
2009
|
-
return matcher ? call$
|
|
2076
|
+
var matcher = isObject$2(regexp) ? getMethod$4(regexp, MATCH) : undefined;
|
|
2077
|
+
return matcher ? call$c(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$4(O));
|
|
2010
2078
|
},
|
|
2011
2079
|
// `RegExp.prototype[@@match]` method
|
|
2012
2080
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
@@ -2017,9 +2085,11 @@ fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCall
|
|
|
2017
2085
|
|
|
2018
2086
|
if (res.done) return res.value;
|
|
2019
2087
|
|
|
2020
|
-
|
|
2088
|
+
var flags = toString$4(getRegExpFlags$1(rx));
|
|
2089
|
+
|
|
2090
|
+
if (!~stringIndexOf$1(flags, 'g')) return regExpExec$1(rx, S);
|
|
2021
2091
|
|
|
2022
|
-
var fullUnicode =
|
|
2092
|
+
var fullUnicode = !!~stringIndexOf$1(flags, 'u') || !!~stringIndexOf$1(flags, 'v');
|
|
2023
2093
|
rx.lastIndex = 0;
|
|
2024
2094
|
var A = [];
|
|
2025
2095
|
var n = 0;
|
|
@@ -2079,7 +2149,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
2079
2149
|
|
|
2080
2150
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
2081
2151
|
|
|
2082
|
-
var globalThis$
|
|
2152
|
+
var globalThis$4 = globalThis_1;
|
|
2083
2153
|
var DOMIterables = domIterables;
|
|
2084
2154
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
2085
2155
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -2111,7 +2181,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
2111
2181
|
};
|
|
2112
2182
|
|
|
2113
2183
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
2114
|
-
handlePrototype(globalThis$
|
|
2184
|
+
handlePrototype(globalThis$4[COLLECTION_NAME] && globalThis$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
2115
2185
|
}
|
|
2116
2186
|
|
|
2117
2187
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -2120,7 +2190,7 @@ var build = {exports: {}};
|
|
|
2120
2190
|
|
|
2121
2191
|
/*!
|
|
2122
2192
|
*
|
|
2123
|
-
* react-simple-keyboard v3.8.
|
|
2193
|
+
* react-simple-keyboard v3.8.198
|
|
2124
2194
|
* https://github.com/hodgef/react-simple-keyboard
|
|
2125
2195
|
*
|
|
2126
2196
|
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
|
@@ -2131,7 +2201,7 @@ var build = {exports: {}};
|
|
|
2131
2201
|
*/
|
|
2132
2202
|
|
|
2133
2203
|
(function (module, exports$1) {
|
|
2134
|
-
!function(t,e){module.exports=e(require$$0);}(commonjsGlobal,(function(t){return function(){var e={981:function(){"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this);}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",n="prototype",o=t.Element[n],r=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return -1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e;},u=function(t,e){if(""===e)throw new s("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],o=0,r=n.length;o<r;o++)this.push(n[o]);this._updateClassName=function(){t.setAttribute("class",this.toString());};},l=c[n]=[],f=function(){return new c(this)};if(s[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return ~u(this,t+"")},l.add=function(){var t,e=arguments,n=0,o=e.length,r=false;do{~u(this,t=e[n]+"")||(this.push(t),r=true);}while(++n<o);r&&this._updateClassName();},l.remove=function(){var t,e,n=arguments,o=0,r=n.length,i=false;do{for(e=u(this,t=n[o]+"");~e;)this.splice(e,1),i=true,e=u(this,t);}while(++o<r);i&&this._updateClassName();},l.toggle=function(t,e){var n=this.contains(t),o=n?true!==e&&"remove":false!==e&&"add";return o&&this[o](t),true===e||false===e?e:!n},l.replace=function(t,e){var n=u(t+"");~n&&(this.splice(n,1,e),this._updateClassName());},l.toString=function(){return this.join(" ")},r.defineProperty){var d={get:f,enumerable:true,configurable:true};try{r.defineProperty(o,e,d);}catch(t){ void 0!==t.number&&-2146823252!==t.number||(d.enumerable=false,r.defineProperty(o,e,d));}}else r[n].__defineGetter__&&o.__defineGetter__(e,f);}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,o=arguments.length;for(n=0;n<o;n++)t=arguments[n],e.call(this,t);};};e("add"),e("remove");}if(t.classList.toggle("c3",false),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)};}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),o=n.indexOf(t+"");~o&&(n=n.slice(o),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)));}),t=null;}());},548:function(t){t.exports=function(){var t={9306:function(t,e,n){var o=n(4901),r=n(6823),i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(r(t)+" is not a function")};},5548:function(t,e,n){var o=n(3517),r=n(6823),i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(r(t)+" is not a constructor")};},3506:function(t,e,n){var o=n(3925),r=String,i=TypeError;t.exports=function(t){if(o(t))return t;throw new i("Can't set "+r(t)+" as a prototype")};},6469:function(t,e,n){var o=n(8227),r=n(2360),i=n(4913).f,a=o("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:true,value:r(null)}),t.exports=function(t){s[a][t]=true;};},7829:function(t,e,n){var o=n(8183).charAt;t.exports=function(t,e,n){return e+(n?o(t,e).length:1)};},8551:function(t,e,n){var o=n(34),r=String,i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(r(t)+" is not an object")};},235:function(t,e,n){var o=n(9213).forEach,r=n(4598)("forEach");t.exports=r?[].forEach:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)};},7916:function(t,e,n){var o=n(6080),r=n(9565),i=n(8981),a=n(6319),s=n(4209),u=n(3517),c=n(6198),l=n(4659),f=n(81),d=n(851),p=Array;t.exports=function(t){var e=i(t),n=u(this),h=arguments.length,v=h>1?arguments[1]:void 0,y=void 0!==v;y&&(v=o(v,h>2?arguments[2]:void 0));var g,m,b,w,x,E,O=d(e),S=0;if(!O||this===p&&s(O))for(g=c(e),m=n?new this(g):p(g);g>S;S++)E=y?v(e[S],S):e[S],l(m,S,E);else for(m=n?new this:[],x=(w=f(e,O)).next;!(b=r(x,w)).done;S++)E=y?a(w,v,[b.value,S],true):b.value,l(m,S,E);return m.length=S,m};},9617:function(t,e,n){var o=n(5397),r=n(5610),i=n(6198),a=function(t){return function(e,n,a){var s=o(e),u=i(s);if(0===u)return !t&&-1;var c,l=r(a,u);if(t&&n!=n){for(;u>l;)if((c=s[l++])!=c)return true}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return !t&&-1}};t.exports={includes:a(true),indexOf:a(false)};},9213:function(t,e,n){var o=n(6080),r=n(9504),i=n(7055),a=n(8981),s=n(6198),u=n(1469),c=r([].push),l=function(t){var e=1===t,n=2===t,r=3===t,l=4===t,f=6===t,d=7===t,p=5===t||f;return function(h,v,y,g){for(var m,b,w=a(h),x=i(w),E=s(x),O=o(v,y),S=0,k=g||u,P=e?k(h,E):n||d?k(h,0):void 0;E>S;S++)if((p||S in x)&&(b=O(m=x[S],S,w),t))if(e)P[S]=b;else if(b)switch(t){case 3:return true;case 5:return m;case 6:return S;case 2:c(P,m);}else switch(t){case 4:return false;case 7:c(P,m);}return f?-1:r||l?l:P}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)};},597:function(t,e,n){var o=n(9039),r=n(8227),i=n(9519),a=r("species");t.exports=function(t){return i>=51||!o((function(){var e=[];return (e.constructor={})[a]=function(){return {foo:1}},1!==e[t](Boolean).foo}))};},4598:function(t,e,n){var o=n(9039);t.exports=function(t,e){var n=[][t];return !!n&&o((function(){n.call(null,e||function(){return 1},1);}))};},926:function(t,e,n){var o=n(9306),r=n(8981),i=n(7055),a=n(6198),s=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,n,c,l){var f=r(e),d=i(f),p=a(f);if(o(n),0===p&&c<2)throw new s(u);var h=t?p-1:0,v=t?-1:1;if(c<2)for(;;){if(h in d){l=d[h],h+=v;break}if(h+=v,t?h<0:p<=h)throw new s(u)}for(;t?h>=0:p>h;h+=v)h in d&&(l=n(l,d[h],h,f));return l}};t.exports={left:c(false),right:c(true)};},4527:function(t,e,n){var o=n(3724),r=n(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!function(){if(void 0!==this)return true;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e};},7680:function(t,e,n){var o=n(9504);t.exports=o([].slice);},4488:function(t,e,n){var o=n(7680),r=Math.floor,i=function(t,e){var n=t.length;if(n<8)for(var a,s,u=1;u<n;){for(s=u,a=t[u];s&&e(t[s-1],a)>0;)t[s]=t[--s];s!==u++&&(t[s]=a);}else for(var c=r(n/2),l=i(o(t,0,c),e),f=i(o(t,c),e),d=l.length,p=f.length,h=0,v=0;h<d||v<p;)t[h+v]=h<d&&v<p?e(l[h],f[v])<=0?l[h++]:f[v++]:h<d?l[h++]:f[v++];return t};t.exports=i;},7433:function(t,e,n){var o=n(4376),r=n(3517),i=n(34),a=n(8227)("species"),s=Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(r(e)&&(e===s||o(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e};},1469:function(t,e,n){var o=n(7433);t.exports=function(t,e){return new(o(t))(0===e?0:e)};},6319:function(t,e,n){var o=n(8551),r=n(9539);t.exports=function(t,e,n,i){try{return i?e(o(n)[0],n[1]):e(n)}catch(e){r(t,"throw",e);}};},4428:function(t,e,n){var o=n(8227)("iterator"),r=false;try{var i=0,a={next:function(){return {done:!!i++}},return:function(){r=!0;}};a[o]=function(){return this},Array.from(a,(function(){throw 2}));}catch(t){}t.exports=function(t,e){try{if(!e&&!r)return !1}catch(t){return false}var n=false;try{var i={};i[o]=function(){return {next:function(){return {done:n=!0}}}},t(i);}catch(t){}return n};},2195:function(t,e,n){var o=n(9504),r=o({}.toString),i=o("".slice);t.exports=function(t){return i(r(t),8,-1)};},6955:function(t,e,n){var o=n(2140),r=n(4901),i=n(2195),a=n(8227)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());t.exports=o?i:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:u?i(e):"Object"===(o=i(e))&&r(e.callee)?"Arguments":o};},7740:function(t,e,n){var o=n(9297),r=n(5031),i=n(7347),a=n(4913);t.exports=function(t,e,n){for(var s=r(e),u=a.f,c=i.f,l=0;l<s.length;l++){var f=s[l];o(t,f)||n&&o(n,f)||u(t,f,c(e,f));}};},1436:function(t,e,n){var o=n(8227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e);}catch(n){try{return e[o]=!1,"/./"[t](e)}catch(t){}}return false};},2211:function(t,e,n){var o=n(9039);t.exports=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}));},2529:function(t){t.exports=function(t,e){return {value:t,done:e}};},6699:function(t,e,n){var o=n(3724),r=n(4913),i=n(6980);t.exports=o?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t};},6980:function(t){t.exports=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}};},4659:function(t,e,n){var o=n(3724),r=n(4913),i=n(6980);t.exports=function(t,e,n){o?r.f(t,e,i(0,n)):t[e]=n;};},3640:function(t,e,n){var o=n(8551),r=n(4270),i=TypeError;t.exports=function(t){if(o(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new i("Incorrect hint");return r(this,t)};},2106:function(t,e,n){var o=n(283),r=n(4913);t.exports=function(t,e,n){return n.get&&o(n.get,e,{getter:true}),n.set&&o(n.set,e,{setter:true}),r.f(t,e,n)};},6840:function(t,e,n){var o=n(4901),r=n(4913),i=n(283),a=n(9433);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(o(n)&&i(n,c,s),s.global)u?t[e]=n:a(e,n);else {try{s.unsafe?t[e]&&(u=!0):delete t[e];}catch(t){}u?t[e]=n:r.f(t,e,{value:n,enumerable:false,configurable:!s.nonConfigurable,writable:!s.nonWritable});}return t};},9433:function(t,e,n){var o=n(4576),r=Object.defineProperty;t.exports=function(t,e){try{r(o,t,{value:e,configurable:!0,writable:!0});}catch(n){o[t]=e;}return e};},4606:function(t,e,n){var o=n(6823),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw new r("Cannot delete property "+o(e)+" of "+o(t))};},3724:function(t,e,n){var o=n(9039);t.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}));},4055:function(t,e,n){var o=n(4576),r=n(34),i=o.document,a=r(i)&&r(i.createElement);t.exports=function(t){return a?i.createElement(t):{}};},6837:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t};},7400:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};},9296:function(t,e,n){var o=n(4055)("span").classList,r=o&&o.constructor&&o.constructor.prototype;t.exports=r===Object.prototype?void 0:r;},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];},3709:function(t,e,n){var o=n(2839).match(/firefox\/(\d+)/i);t.exports=!!o&&+o[1];},3763:function(t,e,n){var o=n(2839);t.exports=/MSIE|Trident/.test(o);},6193:function(t,e,n){var o=n(4215);t.exports="NODE"===o;},2839:function(t,e,n){var o=n(4576).navigator,r=o&&o.userAgent;t.exports=r?String(r):"";},9519:function(t,e,n){var o,r,i=n(4576),a=n(2839),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(r=(o=l.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),t.exports=r;},3607:function(t,e,n){var o=n(2839).match(/AppleWebKit\/(\d+)\./);t.exports=!!o&&+o[1];},4215:function(t,e,n){var o=n(4576),r=n(2839),i=n(2195),a=function(t){return r.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":o.Bun&&"string"==typeof Bun.version?"BUN":o.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(o.process)?"NODE":o.window&&o.document?"BROWSER":"REST";},6518:function(t,e,n){var o=n(4576),r=n(7347).f,i=n(6699),a=n(6840),s=n(9433),u=n(7740),c=n(2796);t.exports=function(t,e){var n,l,f,d,p,h=t.target,v=t.global,y=t.stat;if(n=v?o:y?o[h]||s(h,{}):o[h]&&o[h].prototype)for(l in e){if(d=e[l],f=t.dontCallGetSet?(p=r(n,l))&&p.value:n[l],!c(v?l:h+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f);}(t.sham||f&&f.sham)&&i(d,"sham",true),a(n,l,d,t);}};},9039:function(t){t.exports=function(t){try{return !!t()}catch(t){return true}};},9228:function(t,e,n){n(7495);var o=n(9565),r=n(6840),i=n(7323),a=n(9039),s=n(8227),u=n(6699),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var d=s(t),p=!a((function(){var e={};return e[d]=function(){return 7},7!==""[t](e)})),h=p&&!a((function(){var e=false,n=/a/;return "split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=true,null},n[d](""),!e}));if(!p||!h||n){var v=/./[d],y=e(d,""[t],(function(t,e,n,r,a){var s=e.exec;return s===i||s===l.exec?p&&!a?{done:true,value:o(v,e,n,r)}:{done:true,value:o(t,n,e,r)}:{done:false}}));r(String.prototype,t,y[0]),r(l,d,y[1]);}f&&u(l[d],"sham",true);};},8745:function(t,e,n){var o=n(616),r=Function.prototype,i=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)});},6080:function(t,e,n){var o=n(7476),r=n(9306),i=n(616),a=o(o.bind);t.exports=function(t,e){return r(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}};},616:function(t,e,n){var o=n(9039);t.exports=!o((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")}));},9565:function(t,e,n){var o=n(616),r=Function.prototype.call;t.exports=o?r.bind(r):function(){return r.apply(r,arguments)};},350:function(t,e,n){var o=n(3724),r=n(9297),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!o||o&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c};},6706:function(t,e,n){var o=n(9504),r=n(9306);t.exports=function(t,e,n){try{return o(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}};},7476:function(t,e,n){var o=n(2195),r=n(9504);t.exports=function(t){if("Function"===o(t))return r(t)};},9504:function(t,e,n){var o=n(616),r=Function.prototype,i=r.call,a=o&&r.bind.bind(i,i);t.exports=o?a:function(t){return function(){return i.apply(t,arguments)}};},7751:function(t,e,n){var o=n(4576),r=n(4901);t.exports=function(t,e){return arguments.length<2?(n=o[t],r(n)?n:void 0):o[t]&&o[t][e];var n;};},851:function(t,e,n){var o=n(6955),r=n(5966),i=n(4117),a=n(6269),s=n(8227)("iterator");t.exports=function(t){if(!i(t))return r(t,s)||r(t,"@@iterator")||a[o(t)]};},81:function(t,e,n){var o=n(9565),r=n(9306),i=n(8551),a=n(6823),s=n(851),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(r(n))return i(o(n,t));throw new u(a(t)+" is not iterable")};},6933:function(t,e,n){var o=n(9504),r=n(4376),i=n(4901),a=n(2195),s=n(655),u=o([].push);t.exports=function(t){if(i(t))return t;if(r(t)){for(var e=t.length,n=[],o=0;o<e;o++){var c=t[o];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||u(n,s(c));}var l=n.length,f=true;return function(t,e){if(f)return f=false,e;if(r(this))return e;for(var o=0;o<l;o++)if(n[o]===t)return e}}};},5966:function(t,e,n){var o=n(9306),r=n(4117);t.exports=function(t,e){var n=t[e];return r(n)?void 0:o(n)};},2478:function(t,e,n){var o=n(9504),r=n(8981),i=Math.floor,a=o("".charAt),s=o("".replace),u=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,o,f,d){var p=n+t.length,h=o.length,v=l;return void 0!==f&&(f=r(f),v=c),s(d,v,(function(r,s){var c;switch(a(s,0)){case "$":return "$";case "&":return t;case "`":return u(e,0,n);case "'":return u(e,p);case "<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return r;if(l>h){var d=i(l/10);return 0===d?r:d<=h?void 0===o[d-1]?a(s,1):o[d-1]+a(s,1):r}c=o[l-1];}return void 0===c?"":c}))};},4576:function(t,e,n){var o=function(t){return t&&t.Math===Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")();},9297:function(t,e,n){var o=n(9504),r=n(8981),i=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(r(t),e)};},421:function(t){t.exports={};},397:function(t,e,n){var o=n(7751);t.exports=o("document","documentElement");},5917:function(t,e,n){var o=n(3724),r=n(9039),i=n(4055);t.exports=!o&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}));},7055:function(t,e,n){var o=n(9504),r=n(9039),i=n(2195),a=Object,s=o("".split);t.exports=r((function(){return !a("z").propertyIsEnumerable(0)}))?function(t){return "String"===i(t)?s(t,""):a(t)}:a;},3167:function(t,e,n){var o=n(4901),r=n(34),i=n(2967);t.exports=function(t,e,n){var a,s;return i&&o(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(t,s),t};},3706:function(t,e,n){var o=n(9504),r=n(4901),i=n(7629),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource;},1181:function(t,e,n){var o,r,i,a=n(8622),s=n(4576),u=n(34),c=n(6699),l=n(9297),f=n(7629),d=n(6119),p=n(421),h="Object already initialized",v=s.TypeError,y=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,o=function(t,e){if(g.has(t))throw new v(h);return e.facade=t,g.set(t,e),e},r=function(t){return g.get(t)||{}},i=function(t){return g.has(t)};}else {var m=d("state");p[m]=true,o=function(t,e){if(l(t,m))throw new v(h);return e.facade=t,c(t,m,e),e},r=function(t){return l(t,m)?t[m]:{}},i=function(t){return l(t,m)};}t.exports={set:o,get:r,has:i,enforce:function(t){return i(t)?r(t):o(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=r(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}};},4209:function(t,e,n){var o=n(8227),r=n(6269),i=o("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[i]===t)};},4376:function(t,e,n){var o=n(2195);t.exports=Array.isArray||function(t){return "Array"===o(t)};},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return "function"==typeof t||t===e}:function(t){return "function"==typeof t};},3517:function(t,e,n){var o=n(9504),r=n(9039),i=n(4901),a=n(6955),s=n(7751),u=n(3706),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=o(f.exec),p=!f.test(c),h=function(t){if(!i(t))return false;try{return l(c,[],t),!0}catch(t){return false}},v=function(t){if(!i(t))return false;switch(a(t)){case "AsyncFunction":case "GeneratorFunction":case "AsyncGeneratorFunction":return false}try{return p||!!d(f,u(t))}catch(t){return true}};v.sham=true,t.exports=!l||r((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=true;}))||t}))?v:h;},2796:function(t,e,n){var o=n(9039),r=n(4901),i=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n===l||n!==c&&(r(e)?o(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a;},2087:function(t,e,n){var o=n(34),r=Math.floor;t.exports=Number.isInteger||function(t){return !o(t)&&isFinite(t)&&r(t)===t};},4117:function(t){t.exports=function(t){return null==t};},34:function(t,e,n){var o=n(4901);t.exports=function(t){return "object"==typeof t?null!==t:o(t)};},3925:function(t,e,n){var o=n(34);t.exports=function(t){return o(t)||null===t};},6395:function(t){t.exports=false;},788:function(t,e,n){var o=n(34),r=n(2195),i=n(8227)("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===r(t))};},757:function(t,e,n){var o=n(7751),r=n(4901),i=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return "symbol"==typeof t}:function(t){var e=o("Symbol");return r(e)&&i(e.prototype,s(t))};},9539:function(t,e,n){var o=n(9565),r=n(8551),i=n(5966);t.exports=function(t,e,n){var a,s;r(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=o(a,t);}catch(t){s=true,a=t;}if("throw"===e)throw n;if(s)throw a;return r(a),n};},3994:function(t,e,n){var o=n(7657).IteratorPrototype,r=n(2360),i=n(6980),a=n(687),s=n(6269),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=r(o,{next:i(+!c,n)}),a(t,l,false,true),s[l]=u,t};},1088:function(t,e,n){var o=n(6518),r=n(9565),i=n(6395),a=n(350),s=n(4901),u=n(3994),c=n(2787),l=n(2967),f=n(687),d=n(6699),p=n(6840),h=n(8227),v=n(6269),y=n(7657),g=a.PROPER,m=a.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,x=h("iterator"),E="keys",O="values",S="entries",k=function(){return this};t.exports=function(t,e,n,a,h,y,P){u(n,e,a);var I,C,A,M=function(t){if(t===h&&R)return R;if(!w&&t&&t in N)return N[t];switch(t){case E:case O:case S:return function(){return new n(this,t)}}return function(){return new n(this)}},D=e+" Iterator",T=false,N=t.prototype,j=N[x]||N["@@iterator"]||h&&N[h],R=!w&&j||M(h),L="Array"===e&&N.entries||j;if(L&&(I=c(L.call(new t)))!==Object.prototype&&I.next&&(i||c(I)===b||(l?l(I,b):s(I[x])||p(I,x,k)),f(I,D,true,true),i&&(v[D]=k)),g&&h===O&&j&&j.name!==O&&(!i&&m?d(N,"name",O):(T=true,R=function(){return r(j,this)})),h)if(C={values:M(O),keys:y?R:M(E),entries:M(S)},P)for(A in C)(w||T||!(A in N))&&p(N,A,C[A]);else o({target:e,proto:true,forced:w||T},C);return i&&!P||N[x]===R||p(N,x,R,{name:h}),v[e]=R,C};},7657:function(t,e,n){var o,r,i,a=n(9039),s=n(4901),u=n(34),c=n(2360),l=n(2787),f=n(6840),d=n(8227),p=n(6395),h=d("iterator"),v=false;[].keys&&("next"in(i=[].keys())?(r=l(l(i)))!==Object.prototype&&(o=r):v=true),!u(o)||a((function(){var t={};return o[h].call(t)!==t}))?o={}:p&&(o=c(o)),s(o[h])||f(o,h,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:v};},6269:function(t){t.exports={};},6198:function(t,e,n){var o=n(8014);t.exports=function(t){return o(t.length)};},283:function(t,e,n){var o=n(9504),r=n(9039),i=n(4901),a=n(9297),s=n(3724),u=n(350).CONFIGURABLE,c=n(3706),l=n(1181),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,v=o("".slice),y=o("".replace),g=o([].join),m=s&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(p(e),0,7)&&(e="["+y(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:true}):t.name=e),m&&n&&a(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var o=f(t);return a(o,"source")||(o.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&d(this).source||c(this)}),"toString");},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var o=+t;return (o>0?n:e)(o)};},5749:function(t,e,n){var o=n(788),r=TypeError;t.exports=function(t){if(o(t))throw new r("The method doesn't accept regular expressions");return t};},4213:function(t,e,n){var o=n(3724),r=n(9504),i=n(9565),a=n(9039),s=n(1072),u=n(3717),c=n(8773),l=n(8981),f=n(7055),d=Object.assign,p=Object.defineProperty,h=r([].concat);t.exports=!d||a((function(){if(o&&1!==d({b:1},d(p({},"a",{enumerable:true,get:function(){p(this,"b",{value:3,enumerable:false});}}),{b:2})).b)return true;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t;})),7!==d({},t)[n]||s(d({},e)).join("")!==r}))?function(t,e){for(var n=l(t),r=arguments.length,a=1,d=u.f,p=c.f;r>a;)for(var v,y=f(arguments[a++]),g=d?h(s(y),d(y)):s(y),m=g.length,b=0;m>b;)v=g[b++],o&&!i(p,y,v)||(n[v]=y[v]);return n}:d;},2360:function(t,e,n){var o,r=n(8551),i=n(6801),a=n(8727),s=n(421),u=n(397),c=n(4055),l=n(6119),f="prototype",d="script",p=l("IE_PROTO"),h=function(){},v=function(t){return "<"+d+">"+t+"</"+d+">"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{o=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;g="undefined"!=typeof document?document.domain&&o?y(o):(e=c("iframe"),n="java"+d+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(o);for(var r=a.length;r--;)delete g[f][a[r]];return g()};s[p]=true,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=r(t),n=new h,h[f]=null,n[p]=t):n=g(),void 0===e?n:i.f(n,e)};},6801:function(t,e,n){var o=n(3724),r=n(8686),i=n(4913),a=n(8551),s=n(5397),u=n(1072);e.f=o&&!r?Object.defineProperties:function(t,e){a(t);for(var n,o=s(e),r=u(e),c=r.length,l=0;c>l;)i.f(t,n=r[l++],o[n]);return t};},4913:function(t,e,n){var o=n(3724),r=n(5917),i=n(8686),a=n(8551),s=n(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";e.f=o?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var o=l(t,e);o&&o[p]&&(t[e]=n.value,n={configurable:d in n?n[d]:o[d],enumerable:f in n?n[f]:o[f],writable:false});}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return "value"in n&&(t[e]=n.value),t};},7347:function(t,e,n){var o=n(3724),r=n(9565),i=n(8773),a=n(6980),s=n(5397),u=n(6969),c=n(9297),l=n(5917),f=Object.getOwnPropertyDescriptor;e.f=o?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!r(i.f,t,e),t[e])};},298:function(t,e,n){var o=n(2195),r=n(5397),i=n(8480).f,a=n(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===o(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(r(t))};},8480:function(t,e,n){var o=n(1828),r=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)};},3717:function(t,e){e.f=Object.getOwnPropertySymbols;},2787:function(t,e,n){var o=n(9297),r=n(4901),i=n(8981),a=n(6119),s=n(2211),u=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=i(t);if(o(e,u))return e[u];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?l:null};},1625:function(t,e,n){var o=n(9504);t.exports=o({}.isPrototypeOf);},1828:function(t,e,n){var o=n(9504),r=n(9297),i=n(5397),a=n(9617).indexOf,s=n(421),u=o([].push);t.exports=function(t,e){var n,o=i(t),c=0,l=[];for(n in o)!r(s,n)&&r(o,n)&&u(l,n);for(;e.length>c;)r(o,n=e[c++])&&(~a(l,n)||u(l,n));return l};},1072:function(t,e,n){var o=n(1828),r=n(8727);t.exports=Object.keys||function(t){return o(t,r)};},8773:function(t,e){var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);e.f=r?function(t){var e=o(this,t);return !!e&&e.enumerable}:n;},2551:function(t,e,n){var o=n(6395),r=n(4576),i=n(9039),a=n(3607);t.exports=o||!i((function(){if(!(a&&a<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete r[t];}}));},2967:function(t,e,n){var o=n(6706),r=n(34),i=n(7750),a=n(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=false,n={};try{(t=o(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array;}catch(t){}return function(n,o){return i(n),a(o),r(n)?(e?t(n,o):n.__proto__=o,n):n}}():void 0);},3179:function(t,e,n){var o=n(2140),r=n(6955);t.exports=o?{}.toString:function(){return "[object "+r(this)+"]"};},4270:function(t,e,n){var o=n(9565),r=n(4901),i=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!i(s=o(n,t)))return s;if(r(n=t.valueOf)&&!i(s=o(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!i(s=o(n,t)))return s;throw new a("Can't convert object to primitive value")};},5031:function(t,e,n){var o=n(7751),r=n(9504),i=n(8480),a=n(3717),s=n(8551),u=r([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?u(e,n(t)):e};},9167:function(t,e,n){var o=n(4576);t.exports=o;},1056:function(t,e,n){var o=n(4913).f;t.exports=function(t,e,n){n in t||o(t,n,{configurable:true,get:function(){return e[n]},set:function(t){e[n]=t;}});};},6682:function(t,e,n){var o=n(9565),r=n(8551),i=n(4901),a=n(2195),s=n(7323),u=TypeError;t.exports=function(t,e){var n=t.exec;if(i(n)){var c=o(n,t,e);return null!==c&&r(c),c}if("RegExp"===a(t))return o(s,t,e);throw new u("RegExp#exec called on incompatible receiver")};},7323:function(t,e,n){var o,r,i=n(9565),a=n(9504),s=n(655),u=n(7979),c=n(8429),l=n(5745),f=n(2360),d=n(1181).get,p=n(3635),h=n(8814),v=l("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,m=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),E=(r=/b*/g,i(y,o=/a/,"a"),i(y,r,"a"),0!==o.lastIndex||0!==r.lastIndex),O=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(E||S||O||p||h)&&(g=function(t){var e,n,o,r,a,c,l,p=this,h=d(p),k=s(t),P=h.raw;if(P)return P.lastIndex=p.lastIndex,e=i(g,P,k),p.lastIndex=P.lastIndex,e;var I=h.groups,C=O&&p.sticky,A=i(u,p),M=p.source,D=0,T=k;if(C&&(A=w(A,"y",""),-1===b(A,"g")&&(A+="g"),T=x(k,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==m(k,p.lastIndex-1))&&(M="(?: "+M+")",T=" "+T,D++),n=new RegExp("^(?:"+M+")",A)),S&&(n=new RegExp("^"+M+"$(?!\\s)",A)),E&&(o=p.lastIndex),r=i(y,C?n:p,T),C?r?(r.input=x(r.input,D),r[0]=x(r[0],D),r.index=p.lastIndex,p.lastIndex+=r[0].length):p.lastIndex=0:E&&r&&(p.lastIndex=p.global?r.index+r[0].length:o),S&&r&&r.length>1&&i(v,r[0],n,(function(){for(a=1;a<arguments.length-2;a++) void 0===arguments[a]&&(r[a]=void 0);})),r&&I)for(r.groups=c=f(null),a=0;a<I.length;a++)c[(l=I[a])[0]]=r[l[1]];return r}),t.exports=g;},7979:function(t,e,n){var o=n(8551);t.exports=function(){var t=o(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e};},1034:function(t,e,n){var o=n(9565),r=n(9297),i=n(1625),a=n(7979),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||r(t,"flags")||!i(s,t)?e:o(a,t)};},8429:function(t,e,n){var o=n(9039),r=n(4576).RegExp,i=o((function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=i||o((function(){return !r("a","y").sticky})),s=i||o((function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i};},3635:function(t,e,n){var o=n(9039),r=n(4576).RegExp;t.exports=o((function(){var t=r(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)}));},8814:function(t,e,n){var o=n(9039),r=n(4576).RegExp;t.exports=o((function(){var t=r("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}));},7750:function(t,e,n){var o=n(4117),r=TypeError;t.exports=function(t){if(o(t))throw new r("Can't call method on "+t);return t};},7633:function(t,e,n){var o=n(7751),r=n(2106),i=n(8227),a=n(3724),s=i("species");t.exports=function(t){var e=o(t);a&&e&&!e[s]&&r(e,s,{configurable:true,get:function(){return this}});};},687:function(t,e,n){var o=n(4913).f,r=n(9297),i=n(8227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,i)&&o(t,i,{configurable:true,value:e});};},6119:function(t,e,n){var o=n(5745),r=n(3392),i=o("keys");t.exports=function(t){return i[t]||(i[t]=r(t))};},7629:function(t,e,n){var o=n(6395),r=n(4576),i=n(9433),a="__core-js_shared__",s=t.exports=r[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.38.1",mode:o?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});},5745:function(t,e,n){var o=n(7629);t.exports=function(t,e){return o[t]||(o[t]=e||{})};},2293:function(t,e,n){var o=n(8551),r=n(5548),i=n(4117),a=n(8227)("species");t.exports=function(t,e){var n,s=o(t).constructor;return void 0===s||i(n=o(s)[a])?e:r(n)};},8183:function(t,e,n){var o=n(9504),r=n(1291),i=n(655),a=n(7750),s=o("".charAt),u=o("".charCodeAt),c=o("".slice),l=function(t){return function(e,n){var o,l,f=i(a(e)),d=r(n),p=f.length;return d<0||d>=p?t?"":void 0:(o=u(f,d))<55296||o>56319||d+1===p||(l=u(f,d+1))<56320||l>57343?t?s(f,d):o:t?c(f,d,d+2):l-56320+(o-55296<<10)+65536}};t.exports={codeAt:l(false),charAt:l(true)};},706:function(t,e,n){var o=n(350).PROPER,r=n(9039),i=n(7452);t.exports=function(t){return r((function(){return !!i[t]()||"
"!=="
"[t]()||o&&i[t].name!==t}))};},3802:function(t,e,n){var o=n(9504),r=n(7750),i=n(655),a=n(7452),s=o("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var n=i(r(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)};},4495:function(t,e,n){var o=n(9519),r=n(9039),i=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return !i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}));},8242:function(t,e,n){var o=n(9565),r=n(7751),i=n(8227),a=n(6840);t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=i("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return o(n,this)}),{arity:1});};},1296:function(t,e,n){var o=n(4495);t.exports=o&&!!Symbol.for&&!!Symbol.keyFor;},1240:function(t,e,n){var o=n(9504);t.exports=o(1..valueOf);},5610:function(t,e,n){var o=n(1291),r=Math.max,i=Math.min;t.exports=function(t,e){var n=o(t);return n<0?r(n+e,0):i(n,e)};},5397:function(t,e,n){var o=n(7055),r=n(7750);t.exports=function(t){return o(r(t))};},1291:function(t,e,n){var o=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:o(e)};},8014:function(t,e,n){var o=n(1291),r=Math.min;t.exports=function(t){var e=o(t);return e>0?r(e,9007199254740991):0};},8981:function(t,e,n){var o=n(7750),r=Object;t.exports=function(t){return r(o(t))};},2777:function(t,e,n){var o=n(9565),r=n(34),i=n(757),a=n(5966),s=n(4270),u=n(8227),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!r(t)||i(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=o(u,t,e),!r(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)};},6969:function(t,e,n){var o=n(2777),r=n(757);t.exports=function(t){var e=o(t,"string");return r(e)?e:e+""};},2140:function(t,e,n){var o={};o[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(o);},655:function(t,e,n){var o=n(6955),r=String;t.exports=function(t){if("Symbol"===o(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)};},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return "Object"}};},3392:function(t,e,n){var o=n(9504),r=0,i=Math.random(),a=o(1..toString);t.exports=function(t){return "Symbol("+(void 0===t?"":t)+")_"+a(++r+i,36)};},7040:function(t,e,n){var o=n(4495);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator;},8686:function(t,e,n){var o=n(3724),r=n(9039);t.exports=o&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:false}).prototype}));},8622:function(t,e,n){var o=n(4576),r=n(4901),i=o.WeakMap;t.exports=r(i)&&/native code/.test(String(i));},511:function(t,e,n){var o=n(9167),r=n(9297),i=n(1951),a=n(4913).f;t.exports=function(t){var e=o.Symbol||(o.Symbol={});r(e,t)||a(e,t,{value:i.f(t)});};},1951:function(t,e,n){var o=n(8227);e.f=o;},8227:function(t,e,n){var o=n(4576),r=n(5745),i=n(9297),a=n(3392),s=n(4495),u=n(7040),c=o.Symbol,l=r("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=s&&i(c,t)?c[t]:f("Symbol."+t)),l[t]};},7452:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff";},8706:function(t,e,n){var o=n(6518),r=n(9039),i=n(4376),a=n(34),s=n(8981),u=n(6198),c=n(6837),l=n(4659),f=n(1469),d=n(597),p=n(8227),h=n(9519),v=p("isConcatSpreadable"),y=h>=51||!r((function(){var t=[];return t[v]=false,t.concat()[0]!==t})),g=function(t){if(!a(t))return false;var e=t[v];return void 0!==e?!!e:i(t)};o({target:"Array",proto:true,arity:1,forced:!y||!d("concat")},{concat:function(t){var e,n,o,r,i,a=s(this),d=f(a,0),p=0;for(e=-1,o=arguments.length;e<o;e++)if(g(i=-1===e?a:arguments[e]))for(r=u(i),c(p+r),n=0;n<r;n++,p++)n in i&&l(d,p,i[n]);else c(p+1),l(d,p++,i);return d.length=p,d}});},2008:function(t,e,n){var o=n(6518),r=n(9213).filter;o({target:"Array",proto:true,forced:!n(597)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}});},3418:function(t,e,n){var o=n(6518),r=n(7916);o({target:"Array",stat:true,forced:!n(4428)((function(t){Array.from(t);}))},{from:r});},4423:function(t,e,n){var o=n(6518),r=n(9617).includes,i=n(9039),a=n(6469);o({target:"Array",proto:true,forced:i((function(){return !Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes");},5276:function(t,e,n){var o=n(6518),r=n(7476),i=n(9617).indexOf,a=n(4598),s=r([].indexOf),u=!!s&&1/s([1],1,-0)<0;o({target:"Array",proto:true,forced:u||!a("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:i(this,t,e)}});},3792:function(t,e,n){var o=n(5397),r=n(6469),i=n(6269),a=n(1181),s=n(4913).f,u=n(1088),c=n(2529),l=n(6395),f=n(3724),d="Array Iterator",p=a.set,h=a.getterFor(d);t.exports=u(Array,"Array",(function(t,e){p(this,{type:d,target:o(t),index:0,kind:e});}),(function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,true);switch(t.kind){case "keys":return c(n,false);case "values":return c(e[n],false)}return c([n,e[n]],false)}),"values");var v=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!l&&f&&"values"!==v.name)try{s(v,"name",{value:"values"});}catch(t){}},8598:function(t,e,n){var o=n(6518),r=n(9504),i=n(7055),a=n(5397),s=n(4598),u=r([].join);o({target:"Array",proto:true,forced:i!==Object||!s("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}});},2062:function(t,e,n){var o=n(6518),r=n(9213).map;o({target:"Array",proto:true,forced:!n(597)("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}});},2712:function(t,e,n){var o=n(6518),r=n(926).left,i=n(4598),a=n(9519);o({target:"Array",proto:true,forced:!n(6193)&&a>79&&a<83||!i("reduce")},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}});},4782:function(t,e,n){var o=n(6518),r=n(4376),i=n(3517),a=n(34),s=n(5610),u=n(6198),c=n(5397),l=n(4659),f=n(8227),d=n(597),p=n(7680),h=d("slice"),v=f("species"),y=Array,g=Math.max;o({target:"Array",proto:true,forced:!h},{slice:function(t,e){var n,o,f,d=c(this),h=u(d),m=s(t,h),b=s(void 0===e?h:e,h);if(r(d)&&(n=d.constructor,(i(n)&&(n===y||r(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return p(d,m,b);for(o=new(void 0===n?y:n)(g(b-m,0)),f=0;m<b;m++,f++)m in d&&l(o,f,d[m]);return o.length=f,o}});},6910:function(t,e,n){var o=n(6518),r=n(9504),i=n(9306),a=n(8981),s=n(6198),u=n(4606),c=n(655),l=n(9039),f=n(4488),d=n(4598),p=n(3709),h=n(3763),v=n(9519),y=n(3607),g=[],m=r(g.sort),b=r(g.push),w=l((function(){g.sort(void 0);})),x=l((function(){g.sort(null);})),E=d("sort"),O=!l((function(){if(v)return v<70;if(!(p&&p>3)){if(h)return true;if(y)return y<603;var t,e,n,o,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2;}for(o=0;o<47;o++)g.push({k:e+o,v:n});}for(g.sort((function(t,e){return e.v-t.v})),o=0;o<g.length;o++)e=g[o].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return "DGBEFHACIJK"!==r}}));o({target:"Array",proto:true,forced:w||!x||!E||!O},{sort:function(t){ void 0!==t&&i(t);var e=a(this);if(O)return void 0===t?m(e):m(e,t);var n,o,r=[],l=s(e);for(o=0;o<l;o++)o in e&&b(r,e[o]);for(f(r,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=s(r),o=0;o<n;)e[o]=r[o++];for(;o<l;)u(e,o++);return e}});},4554:function(t,e,n){var o=n(6518),r=n(8981),i=n(5610),a=n(1291),s=n(6198),u=n(4527),c=n(6837),l=n(1469),f=n(4659),d=n(4606),p=n(597)("splice"),h=Math.max,v=Math.min;o({target:"Array",proto:true,forced:!p},{splice:function(t,e){var n,o,p,y,g,m,b=r(this),w=s(b),x=i(t,w),E=arguments.length;for(0===E?n=o=0:1===E?(n=0,o=w-x):(n=E-2,o=v(h(a(e),0),w-x)),c(w+n-o),p=l(b,o),y=0;y<o;y++)(g=x+y)in b&&f(p,y,b[g]);if(p.length=o,n<o){for(y=x;y<w-o;y++)m=y+n,(g=y+o)in b?b[m]=b[g]:d(b,m);for(y=w;y>w-o+n;y--)d(b,y-1);}else if(n>o)for(y=w-o;y>x;y--)m=y+n-1,(g=y+o-1)in b?b[m]=b[g]:d(b,m);for(y=0;y<n;y++)b[y+x]=arguments[y+2];return u(b,w-o+n),p}});},739:function(t,e,n){var o=n(6518),r=n(9039),i=n(8981),a=n(2777);o({target:"Date",proto:true,arity:1,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),n=a(e,"number");return "number"!=typeof n||isFinite(n)?e.toISOString():null}});},9572:function(t,e,n){var o=n(9297),r=n(6840),i=n(3640),a=n(8227)("toPrimitive"),s=Date.prototype;o(s,a)||r(s,a,i);},2010:function(t,e,n){var o=n(3724),r=n(350).EXISTS,i=n(9504),a=n(2106),s=Function.prototype,u=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(c.exec);o&&!r&&a(s,"name",{configurable:true,get:function(){try{return l(c,u(this))[1]}catch(t){return ""}}});},3110:function(t,e,n){var o=n(6518),r=n(7751),i=n(8745),a=n(9565),s=n(9504),u=n(9039),c=n(4901),l=n(757),f=n(7680),d=n(6933),p=n(4495),h=String,v=r("JSON","stringify"),y=s(/./.exec),g=s("".charAt),m=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,S=!p||u((function(){var t=r("Symbol")("stringify detection");return "[null]"!==v([t])||"{}"!==v({a:t})||"{}"!==v(Object(t))})),k=u((function(){return '"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),P=function(t,e){var n=f(arguments),o=d(e);if(c(o)||void 0!==t&&!l(t))return n[1]=function(t,e){if(c(o)&&(e=a(o,this,h(t),e)),!l(e))return e},i(v,null,n)},I=function(t,e,n){var o=g(n,e-1),r=g(n,e+1);return y(E,t)&&!y(O,r)||y(O,t)&&!y(E,o)?"\\u"+w(m(t,0),16):t};v&&o({target:"JSON",stat:true,arity:3,forced:S||k},{stringify:function(t,e,n){var o=f(arguments),r=i(S?P:v,null,o);return k&&"string"==typeof r?b(r,x,I):r}});},2892:function(t,e,n){var o=n(6518),r=n(6395),i=n(3724),a=n(4576),s=n(9167),u=n(9504),c=n(2796),l=n(9297),f=n(3167),d=n(1625),p=n(757),h=n(2777),v=n(9039),y=n(8480).f,g=n(7347).f,m=n(4913).f,b=n(1240),w=n(3802).trim,x="Number",E=a[x],O=s[x],S=E.prototype,k=a.TypeError,P=u("".slice),I=u("".charCodeAt),C=function(t){var e,n,o,r,i,a,s,u,c=h(t,"number");if(p(c))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(e=I(c,0))||45===e){if(88===(n=I(c,2))||120===n)return NaN}else if(48===e){switch(I(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return +c}for(a=(i=P(c,2)).length,s=0;s<a;s++)if((u=I(i,s))<48||u>r)return NaN;return parseInt(i,o)}return +c},A=c(x,!E(" 0o1")||!E("0b1")||E("+0x1")),M=function(t){var e,n=arguments.length<1?0:E(function(t){var e=h(t,"number");return "bigint"==typeof e?e:C(e)}(t));return d(S,e=this)&&v((function(){b(e);}))?f(Object(n),this,M):n};M.prototype=S,A&&!r&&(S.constructor=M),o({global:true,constructor:true,wrap:true,forced:A},{Number:M});var D=function(t,e){for(var n,o=i?y(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;o.length>r;r++)l(e,n=o[r])&&!l(t,n)&&m(t,n,g(e,n));};r&&O&&D(s[x],O),(A||r)&&D(s[x],E);},2637:function(t,e,n){n(6518)({target:"Number",stat:true},{isInteger:n(2087)});},9085:function(t,e,n){var o=n(6518),r=n(4213);o({target:"Object",stat:true,arity:2,forced:Object.assign!==r},{assign:r});},7427:function(t,e,n){var o=n(6518),r=n(3724),i=n(2551),a=n(9306),s=n(8981),u=n(4913);r&&o({target:"Object",proto:true,forced:i},{__defineGetter__:function(t,e){u.f(s(this),t,{get:a(e),enumerable:true,configurable:true});}});},3851:function(t,e,n){var o=n(6518),r=n(9039),i=n(5397),a=n(7347).f,s=n(3724);o({target:"Object",stat:true,forced:!s||r((function(){a(1);})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}});},1278:function(t,e,n){var o=n(6518),r=n(3724),i=n(5031),a=n(5397),s=n(7347),u=n(4659);o({target:"Object",stat:true,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,n,o=a(t),r=s.f,c=i(o),l={},f=0;c.length>f;) void 0!==(n=r(o,e=c[f++]))&&u(l,e,n);return l}});},1480:function(t,e,n){var o=n(6518),r=n(9039),i=n(298).f;o({target:"Object",stat:true,forced:r((function(){return !Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i});},9773:function(t,e,n){var o=n(6518),r=n(4495),i=n(9039),a=n(3717),s=n(8981);o({target:"Object",stat:true,forced:!r||i((function(){a.f(1);}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}});},9432:function(t,e,n){var o=n(6518),r=n(8981),i=n(1072);o({target:"Object",stat:true,forced:n(9039)((function(){i(1);}))},{keys:function(t){return i(r(t))}});},6099:function(t,e,n){var o=n(2140),r=n(6840),i=n(3179);o||r(Object.prototype,"toString",i,{unsafe:true});},4864:function(t,e,n){var o=n(3724),r=n(4576),i=n(9504),a=n(2796),s=n(3167),u=n(6699),c=n(2360),l=n(8480).f,f=n(1625),d=n(788),p=n(655),h=n(1034),v=n(8429),y=n(1056),g=n(6840),m=n(9039),b=n(9297),w=n(1181).enforce,x=n(7633),E=n(8227),O=n(3635),S=n(8814),k=E("match"),P=r.RegExp,I=P.prototype,C=r.SyntaxError,A=i(I.exec),M=i("".charAt),D=i("".replace),T=i("".indexOf),N=i("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,L=/a/g,B=new P(R)!==R,K=v.MISSED_STICKY,_=v.UNSUPPORTED_Y;if(a("RegExp",o&&(!B||K||O||S||m((function(){return L[k]=false,P(R)!==R||P(L)===L||"/a/i"!==String(P(R,"i"))}))))){for(var F=function(t,e){var n,o,r,i,a,l,v=f(I,this),y=d(t),g=void 0===e,m=[],x=t;if(!v&&y&&g&&t.constructor===F)return t;if((y||f(I,t))&&(t=t.source,g&&(e=h(x))),t=void 0===t?"":p(t),e=void 0===e?"":p(e),x=t,O&&"dotAll"in R&&(o=!!e&&T(e,"s")>-1)&&(e=D(e,/s/g,"")),n=e,K&&"sticky"in R&&(r=!!e&&T(e,"y")>-1)&&_&&(e=D(e,/y/g,"")),S&&(i=function(t){for(var e,n=t.length,o=0,r="",i=[],a=c(null),s=false,u=false,l=0,f="";o<=n;o++){if("\\"===(e=M(t,o)))e+=M(t,++o);else if("]"===e)s=false;else if(!s)switch(true){case "["===e:s=true;break;case "("===e:if(r+=e,"?:"===N(t,o+1,o+3))continue;A(j,N(t,o+1))&&(o+=2,u=true),l++;continue;case ">"===e&&u:if(""===f||b(a,f))throw new C("Invalid capture group name");a[f]=true,i[i.length]=[f,l],u=false,f="";continue}u?f+=e:r+=e;}return [r,i]}(t),t=i[0],m=i[1]),a=s(P(t,e),v?this:I,F),(o||r||m.length)&&(l=w(a),o&&(l.dotAll=true,l.raw=F(function(t){for(var e,n=t.length,o=0,r="",i=false;o<=n;o++)"\\"!==(e=M(t,o))?i||"."!==e?("["===e?i=true:"]"===e&&(i=false),r+=e):r+="[\\s\\S]":r+=e+M(t,++o);return r}(t),n)),r&&(l.sticky=true),m.length&&(l.groups=m)),t!==x)try{u(a,"source",""===x?"(?:)":x);}catch(t){}return a},U=l(P),H=0;U.length>H;)y(F,P,U[H++]);I.constructor=F,F.prototype=I,g(r,"RegExp",F,{constructor:true});}x("RegExp");},7495:function(t,e,n){var o=n(6518),r=n(7323);o({target:"RegExp",proto:true,forced:/./.exec!==r},{exec:r});},8781:function(t,e,n){var o=n(350).PROPER,r=n(6840),i=n(8551),a=n(655),s=n(9039),u=n(1034),c="toString",l=RegExp.prototype,f=l[c],d=s((function(){return "/a/b"!==f.call({source:"a",flags:"b"})})),p=o&&f.name!==c;(d||p)&&r(l,c,(function(){var t=i(this);return "/"+a(t.source)+"/"+a(u(t))}),{unsafe:true});},1699:function(t,e,n){var o=n(6518),r=n(9504),i=n(5749),a=n(7750),s=n(655),u=n(1436),c=r("".indexOf);o({target:"String",proto:true,forced:!u("includes")},{includes:function(t){return !!~c(s(a(this)),s(i(t)),arguments.length>1?arguments[1]:void 0)}});},7764:function(t,e,n){var o=n(8183).charAt,r=n(655),i=n(1181),a=n(1088),s=n(2529),u="String Iterator",c=i.set,l=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:r(t),index:0});}),(function(){var t,e=l(this),n=e.string,r=e.index;return r>=n.length?s(void 0,true):(t=o(n,r),e.index+=t.length,s(t,false))}));},8543:function(t,e,n){var o=n(6518),r=n(9565),i=n(7476),a=n(3994),s=n(2529),u=n(7750),c=n(8014),l=n(655),f=n(8551),d=n(4117),p=n(2195),h=n(788),v=n(1034),y=n(5966),g=n(6840),m=n(9039),b=n(8227),w=n(2293),x=n(7829),E=n(6682),O=n(1181),S=n(6395),k=b("matchAll"),P="RegExp String",I=P+" Iterator",C=O.set,A=O.getterFor(I),M=RegExp.prototype,D=TypeError,T=i("".indexOf),N=i("".matchAll),j=!!N&&!m((function(){N("a",/./);})),R=a((function(t,e,n,o){C(this,{type:I,regexp:t,string:e,global:n,unicode:o,done:false});}),P,(function(){var t=A(this);if(t.done)return s(void 0,true);var e=t.regexp,n=t.string,o=E(e,n);return null===o?(t.done=true,s(void 0,true)):t.global?(""===l(o[0])&&(e.lastIndex=x(n,c(e.lastIndex),t.unicode)),s(o,false)):(t.done=true,s(o,false))})),L=function(t){var e,n,o,r=f(this),i=l(t),a=w(r,RegExp),s=l(v(r));return e=new a(a===RegExp?r.source:r,s),n=!!~T(s,"g"),o=!!~T(s,"u"),e.lastIndex=c(r.lastIndex),new R(e,i,n,o)};o({target:"String",proto:true,forced:j},{matchAll:function(t){var e,n,o,i,a=u(this);if(d(t)){if(j)return N(a,t)}else {if(h(t)&&(e=l(u(v(t))),!~T(e,"g")))throw new D("`.matchAll` does not allow non-global regexes");if(j)return N(a,t);if(void 0===(o=y(t,k))&&S&&"RegExp"===p(t)&&(o=L),o)return r(o,t,a)}return n=l(a),i=new RegExp(t,"g"),S?r(L,i,n):i[k](n)}}),S||k in M||g(M,k,L);},1761:function(t,e,n){var o=n(9565),r=n(9228),i=n(8551),a=n(4117),s=n(8014),u=n(655),c=n(7750),l=n(5966),f=n(7829),d=n(6682);r("match",(function(t,e,n){return [function(e){var n=c(this),r=a(e)?void 0:l(e,t);return r?o(r,e,n):new RegExp(e)[t](u(n))},function(t){var o=i(this),r=u(t),a=n(e,o,r);if(a.done)return a.value;if(!o.global)return d(o,r);var c=o.unicode;o.lastIndex=0;for(var l,p=[],h=0;null!==(l=d(o,r));){var v=u(l[0]);p[h]=v,""===v&&(o.lastIndex=f(r,s(o.lastIndex),c)),h++;}return 0===h?null:p}]}));},5440:function(t,e,n){var o=n(8745),r=n(9565),i=n(9504),a=n(9228),s=n(9039),u=n(8551),c=n(4901),l=n(4117),f=n(1291),d=n(8014),p=n(655),h=n(7750),v=n(7829),y=n(5966),g=n(2478),m=n(6682),b=n(8227)("replace"),w=Math.max,x=Math.min,E=i([].concat),O=i([].push),S=i("".indexOf),k=i("".slice),P="$0"==="a".replace(/./,"$0"),I=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,n){var i=I?"$":"$0";return [function(t,n){var o=h(this),i=l(t)?void 0:y(t,b);return i?r(i,t,o,n):r(e,p(o),t,n)},function(t,r){var a=u(this),s=p(t);if("string"==typeof r&&-1===S(r,i)&&-1===S(r,"$<")){var l=n(e,a,s,r);if(l.done)return l.value}var h=c(r);h||(r=p(r));var y,b=a.global;b&&(y=a.unicode,a.lastIndex=0);for(var P,I=[];null!==(P=m(a,s))&&(O(I,P),b);)""===p(P[0])&&(a.lastIndex=v(s,d(a.lastIndex),y));for(var C,A="",M=0,D=0;D<I.length;D++){for(var T,N=p((P=I[D])[0]),j=w(x(f(P.index),s.length),0),R=[],L=1;L<P.length;L++)O(R,void 0===(C=P[L])?C:String(C));var B=P.groups;if(h){var K=E([N],R,j,s);void 0!==B&&O(K,B),T=p(o(r,void 0,K));}else T=g(N,s,j,R,B,r);j>=M&&(A+=k(s,M,j)+T,M=j+N.length);}return A+k(s,M)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!P||I);},744:function(t,e,n){var o=n(9565),r=n(9504),i=n(9228),a=n(8551),s=n(4117),u=n(7750),c=n(2293),l=n(7829),f=n(8014),d=n(655),p=n(5966),h=n(6682),v=n(8429),y=n(9039),g=v.UNSUPPORTED_Y,m=Math.min,b=r([].push),w=r("".slice),x=!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),E="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(t,e,n){var r="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:o(e,this,t,n)}:e;return [function(e,n){var i=u(this),a=s(e)?void 0:p(e,t);return a?o(a,e,i,n):o(r,d(i),e,n)},function(t,o){var i=a(this),s=d(t);if(!E){var u=n(r,i,s,o,r!==e);if(u.done)return u.value}var p=c(i,RegExp),v=i.unicode,y=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(g?"g":"y"),x=new p(g?"^(?:"+i.source+")":i,y),O=void 0===o?4294967295:o>>>0;if(0===O)return [];if(0===s.length)return null===h(x,s)?[s]:[];for(var S=0,k=0,P=[];k<s.length;){x.lastIndex=g?0:k;var I,C=h(x,g?w(s,k):s);if(null===C||(I=m(f(x.lastIndex+(g?k:0)),s.length))===S)k=l(s,k,v);else {if(b(P,w(s,S,k)),P.length===O)return P;for(var A=1;A<=C.length-1;A++)if(b(P,C[A]),P.length===O)return P;k=S=I;}}return b(P,w(s,S)),P}]}),E||!x,g);},2762:function(t,e,n){var o=n(6518),r=n(3802).trim;o({target:"String",proto:true,forced:n(706)("trim")},{trim:function(){return r(this)}});},6761:function(t,e,n){var o=n(6518),r=n(4576),i=n(9565),a=n(9504),s=n(6395),u=n(3724),c=n(4495),l=n(9039),f=n(9297),d=n(1625),p=n(8551),h=n(5397),v=n(6969),y=n(655),g=n(6980),m=n(2360),b=n(1072),w=n(8480),x=n(298),E=n(3717),O=n(7347),S=n(4913),k=n(6801),P=n(8773),I=n(6840),C=n(2106),A=n(5745),M=n(6119),D=n(421),T=n(3392),N=n(8227),j=n(1951),R=n(511),L=n(8242),B=n(687),K=n(1181),_=n(9213).forEach,F=M("hidden"),U="Symbol",H="prototype",$=K.set,G=K.getterFor(U),V=Object[H],z=r.Symbol,Y=z&&z[H],W=r.RangeError,J=r.TypeError,X=r.QObject,q=O.f,Q=S.f,Z=x.f,tt=P.f,et=a([].push),nt=A("symbols"),ot=A("op-symbols"),rt=A("wks"),it=!X||!X[H]||!X[H].findChild,at=function(t,e,n){var o=q(V,e);o&&delete V[e],Q(t,e,n),o&&t!==V&&Q(V,e,o);},st=u&&l((function(){return 7!==m(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?at:Q,ut=function(t,e){var n=nt[t]=m(Y);return $(n,{type:U,tag:t,description:e}),u||(n.description=e),n},ct=function(t,e,n){t===V&&ct(ot,e,n),p(t);var o=v(e);return p(n),f(nt,o)?(n.enumerable?(f(t,F)&&t[F][o]&&(t[F][o]=false),n=m(n,{enumerable:g(0,false)})):(f(t,F)||Q(t,F,g(1,m(null))),t[F][o]=true),st(t,o,n)):Q(t,o,n)},lt=function(t,e){p(t);var n=h(e),o=b(n).concat(ht(n));return _(o,(function(e){u&&!i(ft,n,e)||ct(t,e,n[e]);})),t},ft=function(t){var e=v(t),n=i(tt,this,e);return !(this===V&&f(nt,e)&&!f(ot,e))&&(!(n||!f(this,e)||!f(nt,e)||f(this,F)&&this[F][e])||n)},dt=function(t,e){var n=h(t),o=v(e);if(n!==V||!f(nt,o)||f(ot,o)){var r=q(n,o);return !r||!f(nt,o)||f(n,F)&&n[F][o]||(r.enumerable=true),r}},pt=function(t){var e=Z(h(t)),n=[];return _(e,(function(t){f(nt,t)||f(D,t)||et(n,t);})),n},ht=function(t){var e=t===V,n=Z(e?ot:h(t)),o=[];return _(n,(function(t){!f(nt,t)||e&&!f(V,t)||et(o,nt[t]);})),o};c||(z=function(){if(d(Y,this))throw new J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=T(t),n=function(t){var o=void 0===this?r:this;o===V&&i(n,ot,t),f(o,F)&&f(o[F],e)&&(o[F][e]=false);var a=g(1,t);try{st(o,e,a);}catch(t){if(!(t instanceof W))throw t;at(o,e,a);}};return u&&it&&st(V,e,{configurable:true,set:n}),ut(e,t)},I(Y=z[H],"toString",(function(){return G(this).tag})),I(z,"withoutSetter",(function(t){return ut(T(t),t)})),P.f=ft,S.f=ct,k.f=lt,O.f=dt,w.f=x.f=pt,E.f=ht,j.f=function(t){return ut(N(t),t)},u&&(C(Y,"description",{configurable:true,get:function(){return G(this).description}}),s||I(V,"propertyIsEnumerable",ft,{unsafe:true}))),o({global:true,constructor:true,wrap:true,forced:!c,sham:!c},{Symbol:z}),_(b(rt),(function(t){R(t);})),o({target:U,stat:true,forced:!c},{useSetter:function(){it=true;},useSimple:function(){it=false;}}),o({target:"Object",stat:true,forced:!c,sham:!u},{create:function(t,e){return void 0===e?m(t):lt(m(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:dt}),o({target:"Object",stat:true,forced:!c},{getOwnPropertyNames:pt}),L(),B(z,U),D[F]=true;},9463:function(t,e,n){var o=n(6518),r=n(3724),i=n(4576),a=n(9504),s=n(9297),u=n(4901),c=n(1625),l=n(655),f=n(2106),d=n(7740),p=i.Symbol,h=p&&p.prototype;if(r&&u(p)&&(!("description"in h)||void 0!==p().description)){var v={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(h,this)?new p(t):void 0===t?p():p(t);return ""===t&&(v[e]=true),e};d(y,p),y.prototype=h,h.constructor=y;var g="Symbol(description detection)"===String(p("description detection")),m=a(h.valueOf),b=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),E=a("".slice);f(h,"description",{configurable:true,get:function(){var t=m(this);if(s(v,t))return "";var e=b(t),n=g?E(e,7,-1):x(e,w,"$1");return ""===n?void 0:n}}),o({global:true,constructor:true,forced:true},{Symbol:y});}},1510:function(t,e,n){var o=n(6518),r=n(7751),i=n(9297),a=n(655),s=n(5745),u=n(1296),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");o({target:"Symbol",stat:true,forced:!u},{for:function(t){var e=a(t);if(i(c,e))return c[e];var n=r("Symbol")(e);return c[e]=n,l[n]=e,n}});},2259:function(t,e,n){n(511)("iterator");},2675:function(t,e,n){n(6761),n(1510),n(7812),n(3110),n(9773);},7812:function(t,e,n){var o=n(6518),r=n(9297),i=n(757),a=n(6823),s=n(5745),u=n(1296),c=s("symbol-to-string-registry");o({target:"Symbol",stat:true,forced:!u},{keyFor:function(t){if(!i(t))throw new TypeError(a(t)+" is not a symbol");if(r(c,t))return c[t]}});},5700:function(t,e,n){var o=n(511),r=n(8242);o("toPrimitive"),r();},8344:function(t,e,n){n(8543);},3500:function(t,e,n){var o=n(4576),r=n(7400),i=n(9296),a=n(235),s=n(6699),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a);}catch(e){t.forEach=a;}};for(var c in r)r[c]&&u(o[c]&&o[c].prototype);u(i);},2953:function(t,e,n){var o=n(4576),r=n(7400),i=n(9296),a=n(3792),s=n(6699),u=n(687),c=n(8227)("iterator"),l=a.values,f=function(t,e){if(t){if(t[c]!==l)try{s(t,c,l);}catch(e){t[c]=l;}if(u(t,e,true),r[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n]);}catch(e){t[n]=a[n];}}};for(var d in r)f(o[d]&&o[d].prototype,d);f(i,"DOMTokenList");}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o].call(i.exports,i,i.exports,n),i.exports}n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:true,get:e[o]});},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:true});};var o={};function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return "Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(t,l(o.key),o);}}function c(t,e,n){return (e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==s(e)?e:e+""}n.r(o),n.d(o,{SimpleKeyboard:function(){return T},default:function(){return N}}),n(5276),n(8598),n(4782),n(4554),n(2010),n(7427),n(6099),n(7495),n(8781),n(5440),n(744),n(2762),"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this);}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",n="prototype",o=t.Element[n],r=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return -1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e;},u=function(t,e){if(""===e)throw new s("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],o=0,r=n.length;o<r;o++)this.push(n[o]);this._updateClassName=function(){t.setAttribute("class",this.toString());};},l=c[n]=[],f=function(){return new c(this)};if(s[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return ~u(this,t+"")},l.add=function(){var t,e=arguments,n=0,o=e.length,r=false;do{~u(this,t=e[n]+"")||(this.push(t),r=true);}while(++n<o);r&&this._updateClassName();},l.remove=function(){var t,e,n=arguments,o=0,r=n.length,i=false;do{for(e=u(this,t=n[o]+"");~e;)this.splice(e,1),i=true,e=u(this,t);}while(++o<r);i&&this._updateClassName();},l.toggle=function(t,e){var n=this.contains(t),o=n?true!==e&&"remove":false!==e&&"add";return o&&this[o](t),true===e||false===e?e:!n},l.replace=function(t,e){var n=u(t+"");~n&&(this.splice(n,1,e),this._updateClassName());},l.toString=function(){return this.join(" ")},r.defineProperty){var d={get:f,enumerable:true,configurable:true};try{r.defineProperty(o,e,d);}catch(t){ void 0!==t.number&&-2146823252!==t.number||(d.enumerable=false,r.defineProperty(o,e,d));}}else r[n].__defineGetter__&&o.__defineGetter__(e,f);}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,o=arguments.length;for(n=0;n<o;n++)t=arguments[n],e.call(this,t);};};e("add"),e("remove");}if(t.classList.toggle("c3",false),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)};}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),o=n.indexOf(t+"");~o&&(n=n.slice(o),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)));}),t=null;}()),n(2675),n(9463),n(2259),n(5700),n(8706),n(2008),n(3418),n(4423),n(3792),n(2062),n(6910),n(739),n(9572),n(2892),n(9085),n(3851),n(1278),n(9432),n(4864),n(1699),n(7764),n(8344),n(3500),n(2953),n(2712),n(2637),n(1480),n(1761);var f=function(){return t=function t(e){var n=e.getOptions,o=e.getCaretPosition,r=e.getCaretPositionEnd,i=e.dispatch;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,"getOptions",void 0),c(this,"getCaretPosition",void 0),c(this,"getCaretPositionEnd",void 0),c(this,"dispatch",void 0),c(this,"maxLengthReached",void 0),c(this,"isStandardButton",(function(t){return t&&!("{"===t[0]&&"}"===t[t.length-1])})),this.getOptions=n,this.getCaretPosition=o,this.getCaretPositionEnd=r,this.dispatch=i,t.bindMethods(t,this);},e=[{key:"getButtonType",value:function(t){return t.includes("{")&&t.includes("}")&&"{//}"!==t?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(t){var e=this.getButtonType(t),n=t.replace("{","").replace("}",""),o="";return "standardBtn"!==e&&(o=" hg-button-".concat(n)),"hg-".concat(e).concat(o)}},{key:"getDefaultDiplay",value:function(){return {"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(t,e){return (e=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),e):e||this.getDefaultDiplay())[t]||t}},{key:"getUpdatedInput",value:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this.getOptions(),a=[n,o,r],s=e;return ("{bksp}"===t||"{backspace}"===t)&&s.length>0?s=this.removeAt.apply(this,[s].concat(a)):("{delete}"===t||"{forwarddelete}"===t)&&s.length>0?s=this.removeForwardsAt.apply(this,[s].concat(a)):"{space}"===t?s=this.addStringAt.apply(this,[s," "].concat(a)):"{tab}"!==t||"boolean"==typeof i.tabCharOnTab&&false===i.tabCharOnTab?"{enter}"!==t&&"{numpadenter}"!==t||!i.newLineOnEnter?t.includes("numpad")&&Number.isInteger(Number(t[t.length-2]))?s=this.addStringAt.apply(this,[s,t[t.length-2]].concat(a)):"{numpaddivide}"===t?s=this.addStringAt.apply(this,[s,"/"].concat(a)):"{numpadmultiply}"===t?s=this.addStringAt.apply(this,[s,"*"].concat(a)):"{numpadsubtract}"===t?s=this.addStringAt.apply(this,[s,"-"].concat(a)):"{numpadadd}"===t?s=this.addStringAt.apply(this,[s,"+"].concat(a)):"{numpaddecimal}"===t?s=this.addStringAt.apply(this,[s,"."].concat(a)):"{"===t||"}"===t?s=this.addStringAt.apply(this,[s,t].concat(a)):t.includes("{")||t.includes("}")||(s=this.addStringAt.apply(this,[s,t].concat(a))):s=this.addStringAt.apply(this,[s,"\n"].concat(a)):s=this.addStringAt.apply(this,[s,"\t"].concat(a)),i.debug&&console.log("Input will be: "+s),s}},{key:"updateCaretPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.updateCaretPosAction(t,e);this.dispatch((function(t){t.setCaretPosition(n);}));}},{key:"updateCaretPosAction",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getOptions(),o=this.getCaretPosition();return null!=o&&(e?o>0&&(o-=t):o+=t),n.debug&&console.log("Caret at:",o),o}},{key:"addStringAt",value:function(t,e){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return o||0===o?(n=[t.slice(0,o),e,t.slice(r)].join(""),this.isMaxLengthReached()||i&&this.updateCaretPos(e.length)):n=t+e,n}},{key:"removeAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===o)return t;if(n===o){var i=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&n>=0?t.substring(n-2,n).match(i)?(e=t.substr(0,n-2)+t.substr(n),r&&this.updateCaretPos(2,true)):(e=t.substr(0,n-1)+t.substr(n),r&&this.updateCaretPos(1,true)):t.slice(-2).match(i)?(e=t.slice(0,-2),r&&this.updateCaretPos(2,true)):(e=t.slice(0,-1),r&&this.updateCaretPos(1,true));}else e=t.slice(0,n)+t.slice(o),r&&this.dispatch((function(t){t.setCaretPosition(n);}));return e}},{key:"removeForwardsAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null!=t&&t.length&&null!==n?(n===o?e=t.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?t.substr(0,n)+t.substr(n+2):t.substr(0,n)+t.substr(n+1):(e=t.slice(0,n)+t.slice(o),r&&this.dispatch((function(t){t.setCaretPosition(n);}))),e):t}},{key:"handleMaxLength",value:function(t,e){var n=this.getOptions(),o=n.maxLength,r=t[n.inputName||"default"],i=e.length-1>=o;if(e.length<=r.length)return false;if(Number.isInteger(o))return n.debug&&console.log("maxLength (num) reached:",i),i?(this.maxLengthReached=true,true):(this.maxLengthReached=false,false);if("object"===s(o)){var a=e.length-1>=o[n.inputName||"default"];return n.debug&&console.log("maxLength (obj) reached:",a),a?(this.maxLengthReached=true,true):(this.maxLengthReached=false,false)}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return "ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return !!window.PointerEvent}},{key:"camelCase",value:function(t){return t?t.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(t,e){return e.length?t+e[0].toUpperCase()+e.slice(1):t})):""}},{key:"chunkArray",value:function(t,e){return r(Array(Math.ceil(t.length/e))).map((function(n,o){return t.slice(e*o,e+e*o)}))}},{key:"escapeRegex",value:function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(t,e){var n=t,o=e.indexOf("");return o<t&&-1!=o&&n--,e.indexOf("")<t&&-1!=o&&n--,n<0?0:n}}],n=[{key:"bindMethods",value:function(t,e){var n,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e){n&&(t=n);var o=0,r=function(){};return {s:r,n:function(){return o>=t.length?{done:true}:{done:false,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=true,u=false;return {s:function(){n=n.call(t);},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=true,a=t;},f:function(){try{s||null==n.return||n.return();}finally{if(u)throw a}}}}(Object.getOwnPropertyNames(t.prototype));try{for(o.s();!(n=o.n()).done;){var r=n.value;"constructor"===r||"bindMethods"===r||(e[r]=e[r].bind(e));}}catch(t){o.e(t);}finally{o.f();}}}],e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:false}),t;var t,e,n;}();c(f,"noop",(function(){}));var d=f;function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(t,y(o.key),o);}}function v(t,e,n){return (e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==p(e)?e:e+""}var g=function(){return t=function t(e){var n=this,o=e.dispatch,r=e.getOptions;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,"getOptions",void 0),v(this,"dispatch",void 0),v(this,"isModifierKey",(function(t){return t.altKey||t.ctrlKey||t.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.code||t.key||n.keyCodeToKey(null==t?void 0:t.keyCode))})),this.dispatch=o,this.getOptions=r,d.bindMethods(t,this);},e=[{key:"handleHighlightKeyDown",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch((function(o){var r,i,a=o.getButtonElement(n),s=o.getButtonElement("{".concat(n,"}"));if(a)r=a,i=n;else {if(!s)return;r=s,i="{".concat(n,"}");}var u,c,l,f,d=function(t){t.style.background=e.physicalKeyboardHighlightBgColor||"#dadce4",t.style.color=e.physicalKeyboardHighlightTextColor||"black";};if(r)if(Array.isArray(r)){if(r.forEach((function(t){return d(t)})),e.physicalKeyboardHighlightPress)if(e.physicalKeyboardHighlightPressUsePointerEvents)null===(u=r[0])||void 0===u||null===(c=u.onpointerdown)||void 0===c||c.call(u,t);else if(e.physicalKeyboardHighlightPressUseClick){var p;null===(p=r[0])||void 0===p||p.click();}else o.handleButtonClicked(i,t);}else d(r),e.physicalKeyboardHighlightPress&&(e.physicalKeyboardHighlightPressUsePointerEvents?null===(l=r)||void 0===l||null===(f=l.onpointerdown)||void 0===f||f.call(l,t):e.physicalKeyboardHighlightPressUseClick?r.click():o.handleButtonClicked(i,t));}));}},{key:"handleHighlightKeyUp",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch((function(o){var r,i,a,s=o.getButtonElement(n)||o.getButtonElement("{".concat(n,"}")),u=function(t){t.removeAttribute&&t.removeAttribute("style");};s&&(Array.isArray(s)?(s.forEach((function(t){return u(t)})),e.physicalKeyboardHighlightPressUsePointerEvents&&(null===(r=s[0])||void 0===r||null===(i=r.onpointerup)||void 0===i||i.call(r,t))):(u(s),e.physicalKeyboardHighlightPressUsePointerEvents&&(null==s||null===(a=s.onpointerup)||void 0===a||a.call(s,t))));}));}},{key:"getSimpleKeyboardLayoutKey",value:function(t){var e,n="",o=t.code||t.key||this.keyCodeToKey(null==t?void 0:t.keyCode);return (n=null!=o&&o.includes("Numpad")||null!=o&&o.includes("Shift")||null!=o&&o.includes("Space")||null!=o&&o.includes("Backspace")||null!=o&&o.includes("Control")||null!=o&&o.includes("Alt")||null!=o&&o.includes("Meta")?t.code||"":t.key||this.keyCodeToKey(null==t?void 0:t.keyCode)||"").length>1?null===(e=n)||void 0===e?void 0:e.toLowerCase():n}},{key:"keyCodeToKey",value:function(t){return {8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[t]||""}}],e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:false}),t;var t,e,n;}();function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(t,x(o.key),o);}}function w(t,e,n){return (e=x(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}function x(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!=m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==m(e)?e:e+""}var E=function(){return t=function t(e){var n=e.utilities,o=e.options;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),w(this,"utilities",void 0),w(this,"options",void 0),w(this,"candidateBoxElement",void 0),w(this,"pageIndex",0),w(this,"pageSize",void 0),this.utilities=n,this.options=o,d.bindMethods(t,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5;},e=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0);}},{key:"show",value:function(t){var e=this,n=t.candidateValue,o=t.targetElement,r=t.onSelect;if(n&&n.length){var i=this.utilities.chunkArray(n.split(" "),this.pageSize);this.renderPage({candidateListPages:i,targetElement:o,pageIndex:this.pageIndex,nbPages:i.length,onItemSelected:function(t,n){r(t,n),e.destroy();}});}}},{key:"renderPage",value:function(t){var e,n=this,o=t.candidateListPages,r=t.targetElement,i=t.pageIndex,a=t.nbPages,s=t.onItemSelected;null===(e=this.candidateBoxElement)||void 0===e||e.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var u=document.createElement("ul");u.className="hg-candidate-box-list",o[i].forEach((function(t){var e,o=document.createElement("li"),r=function(){var t=new(n.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(t,"target",{value:o}),t};o.className="hg-candidate-box-list-item",o.innerHTML=(null===(e=n.options.display)||void 0===e?void 0:e[t])||t,n.options.useTouchEvents?o.ontouchstart=function(e){return s(t,e||r())}:o.onclick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r();return s(t,e)},u.appendChild(o);}));var c=i>0,l=document.createElement("div");l.classList.add("hg-candidate-box-prev"),c&&l.classList.add("hg-candidate-box-btn-active");var f=function(){c&&n.renderPage({candidateListPages:o,targetElement:r,pageIndex:i-1,nbPages:a,onItemSelected:s});};this.options.useTouchEvents?l.ontouchstart=f:l.onclick=f,this.candidateBoxElement.appendChild(l),this.candidateBoxElement.appendChild(u);var d=i<a-1,p=document.createElement("div");p.classList.add("hg-candidate-box-next"),d&&p.classList.add("hg-candidate-box-btn-active");var h=function(){d&&n.renderPage({candidateListPages:o,targetElement:r,pageIndex:i+1,nbPages:a,onItemSelected:s});};this.options.useTouchEvents?p.ontouchstart=h:p.onclick=h,this.candidateBoxElement.appendChild(p),r.prepend(this.candidateBoxElement);}}],e&&b(t.prototype,e),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:false}),t;var t,e,n;}(),O=E;function S(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return k(t,e);var n={}.toString.call(t).slice(8,-1);return "Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o);}return n}function C(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(t,M(o.key),o);}}function A(t,e,n){return (e=M(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}function M(t){var e=function(t,e){if("object"!=P(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!=P(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==P(e)?e:e+""}var D=function(){return t=function t(e,n){var o=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),A(this,"input",void 0),A(this,"options",void 0),A(this,"utilities",void 0),A(this,"caretPosition",void 0),A(this,"caretPositionEnd",void 0),A(this,"keyboardDOM",void 0),A(this,"keyboardPluginClasses",void 0),A(this,"keyboardDOMClass",void 0),A(this,"buttonElements",void 0),A(this,"currentInstanceName",void 0),A(this,"allKeyboardInstances",void 0),A(this,"keyboardInstanceNames",void 0),A(this,"isFirstKeyboardInstance",void 0),A(this,"physicalKeyboard",void 0),A(this,"modules",void 0),A(this,"activeButtonClass",void 0),A(this,"holdInteractionTimeout",void 0),A(this,"holdTimeout",void 0),A(this,"isMouseHold",void 0),A(this,"initialized",void 0),A(this,"candidateBox",void 0),A(this,"keyboardRowsDOM",void 0),A(this,"defaultName","default"),A(this,"activeInputElement",null),A(this,"handleParams",(function(t,e){var n,o,r;if("string"==typeof t)n=t.split(".").join(""),o=document.querySelector(".".concat(n)),r=e;else if(t instanceof HTMLDivElement){if(!t.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");n=t.className.split(" ")[0],o=t,r=e;}else n="simple-keyboard",o=document.querySelector(".".concat(n)),r=t;return {keyboardDOMClass:n,keyboardDOM:o,options:r}})),A(this,"getOptions",(function(){return o.options})),A(this,"getCaretPosition",(function(){return o.caretPosition})),A(this,"getCaretPositionEnd",(function(){return o.caretPositionEnd})),A(this,"registerModule",(function(t,e){o.modules[t]||(o.modules[t]={}),e(o.modules[t]);})),A(this,"getKeyboardClassString",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return [o.keyboardDOMClass].concat(e).filter((function(t){return !!t})).join(" ")})),"undefined"!=typeof window){var r=this.handleParams(e,n),i=r.keyboardDOMClass,a=r.keyboardDOM,s=r.options,u=void 0===s?{}:s;this.utilities=new d({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=a,this.options=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),true).forEach((function(e){A(t,e,n[e]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));}));}return t}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:false,enableLayoutCandidates:true,excludeFromLayout:{}},u),this.keyboardPluginClasses="",d.bindMethods(t,this);var c=this.options.inputName,l=void 0===c?this.defaultName:c;if(this.input={},this.input[l]="",this.keyboardDOMClass=i,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new g({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new O({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(i,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules();}},e=[{key:"setCaretPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;this.caretPosition=t,this.caretPositionEnd=e;}},{key:"getInputCandidates",value:function(t){var e=this,n=this.options,o=n.layoutCandidates,r=n.layoutCandidatesCaseSensitiveMatch;if(!o||"object"!==P(o))return {};var i=Object.keys(o).filter((function(n){var o=t.substring(0,e.getCaretPositionEnd()||0)||t,i=new RegExp("".concat(e.utilities.escapeRegex(n),"$"),r?"g":"gi");return !!S(o.matchAll(i)).length}));if(i.length>1){var a=i.sort((function(t,e){return e.length-t.length}))[0];return {candidateKey:a,candidateValue:o[a]}}if(i.length){var s=i[0];return {candidateKey:s,candidateValue:o[s]}}return {}}},{key:"showCandidatesBox",value:function(t,e,n){var o=this;this.candidateBox&&this.candidateBox.show({candidateValue:e,targetElement:n,onSelect:function(e,n){var r=o.options,i=r.layoutCandidatesCaseSensitiveMatch,a=r.disableCandidateNormalization,s=r.enableLayoutCandidatesKeyPress,u=e;a||(u=e.normalize("NFD")),"function"==typeof o.options.beforeInputUpdate&&o.options.beforeInputUpdate(o);var c=o.getInput(o.options.inputName,true),l=o.getCaretPositionEnd()||0,f=c.substring(0,l||0)||c,d=new RegExp("".concat(o.utilities.escapeRegex(t),"$"),i?"g":"gi"),p=f.replace(d,u),h=c.replace(f,p),v=p.length-f.length,y=(l||c.length)+v;y<0&&(y=0),o.setInput(h,o.options.inputName,true),o.setCaretPosition(y),s&&"function"==typeof o.options.onKeyPress&&o.options.onKeyPress(e,n),"function"==typeof o.options.onChange&&o.options.onChange(o.getInput(o.options.inputName,true),n),"function"==typeof o.options.onChangeAll&&o.options.onChangeAll(o.getAllInputs(),n);}});}},{key:"handleButtonClicked",value:function(t,e){var n=this.options,o=n.inputName,r=void 0===o?this.defaultName:o,i=n.debug;if("{//}"!==t){this.input[r]||(this.input[r]=""),"function"==typeof this.options.beforeInputUpdate&&this.options.beforeInputUpdate(this);var a=this.utilities.getUpdatedInput(t,this.input[r],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(t)&&this.activeInputElement&&this.input[r]&&this.input[r]===a&&0===this.caretPosition&&this.caretPositionEnd===a.length)return this.setInput("",this.options.inputName,true),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(t,e);if("function"==typeof this.options.onKeyPress&&this.options.onKeyPress(t,e),this.input[r]!==a&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(a))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,a))return;var s=this.utilities.getUpdatedInput(t,this.input[r],this.caretPosition,this.caretPositionEnd,true);if(this.setInput(s,this.options.inputName,true),i&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),null==e?void 0:e.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,true),e),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs(),e),null!=e&&e.target&&this.options.enableLayoutCandidates){var u,c=this.getInputCandidates(a),l=c.candidateKey,f=c.candidateValue;l&&f?this.showCandidatesBox(l,f,this.keyboardDOM):null===(u=this.candidateBox)||void 0===u||u.destroy();}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),i&&console.log("Key pressed:",t);}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(t){this.options.syncInstanceInputs?this.dispatch((function(e){e.isMouseHold=t;})):this.isMouseHold=t;}},{key:"handleButtonMouseDown",value:function(t,e){var n=this;e&&(this.options.preventMouseDownDefault&&e.preventDefault(),this.options.stopMouseDownPropagation&&e.stopPropagation(),e.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(true),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout((function(){(n.getMouseHold()&&(!t.includes("{")&&!t.includes("}")||"{delete}"===t||"{backspace}"===t||"{bksp}"===t||"{space}"===t||"{tab}"===t)||"{arrowright}"===t||"{arrowleft}"===t||"{arrowup}"===t||"{arrowdown}"===t)&&(n.options.debug&&console.log("Button held:",t),n.handleButtonHold(t)),clearTimeout(n.holdTimeout);}),500));}},{key:"handleButtonMouseUp",value:function(t,e){var n=this;e&&(this.options.preventMouseUpDefault&&e.preventDefault&&e.preventDefault(),this.options.stopMouseUpPropagation&&e.stopPropagation&&e.stopPropagation(),!(e.target===this.keyboardDOM||e.target&&this.keyboardDOM.contains(e.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(e.target===this.candidateBox.candidateBoxElement||e.target&&this.candidateBox.candidateBoxElement.contains(e.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(t){t.classList.remove(n.activeButtonClass);})),this.setMouseHold(false),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),t&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(t,e);}},{key:"handleKeyboardContainerMouseDown",value:function(t){this.options.preventMouseDownDefault&&t.preventDefault();}},{key:"handleButtonHold",value:function(t){var e=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){e.getMouseHold()?(e.handleButtonClicked(t),e.handleButtonHold(t)):clearTimeout(e.holdInteractionTimeout);}),100);}},{key:"syncInstanceInputs",value:function(){var t=this;this.dispatch((function(e){e.replaceInput(t.input),e.setCaretPosition(t.caretPosition,t.caretPositionEnd);}));}},{key:"clearInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName;this.input[t]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs();}},{key:"getInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.options.syncInstanceInputs&&!e&&this.syncInstanceInputs(),this.options.rtl?""+this.input[t].replace("","").replace("","")+"":this.input[t]}},{key:"getAllInputs",value:function(){var t=this,e={};return Object.keys(this.input).forEach((function(n){e[n]=t.getInput(n,true);})),e}},{key:"setInput",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0;this.input[e]=t,!n&&this.options.syncInstanceInputs&&this.syncInstanceInputs();}},{key:"replaceInput",value:function(t){this.input=t;}},{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.changedOptions(t);this.options=Object.assign(this.options,t),e.length&&(this.options.debug&&console.log("changedOptions",e),this.onSetOptions(e),this.render());}},{key:"changedOptions",value:function(t){var e=this;return Object.keys(t).filter((function(n){return JSON.stringify(t[n])!==JSON.stringify(e.options[n])}))}},{key:"onSetOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(t.includes("layoutCandidatesPageSize")||t.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new O({utilities:this.utilities,options:this.options}));}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={};}},{key:"dispatch",value:function(t){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach((function(e){t(window.SimpleKeyboardInstances[e],e);}))}},{key:"addButtonTheme",value:function(t,e){var n=this;e&&t&&(t.split(" ").forEach((function(o){e.split(" ").forEach((function(e){n.options.buttonTheme||(n.options.buttonTheme=[]);var r=false;n.options.buttonTheme.map((function(t){if(null!=t&&t.class.split(" ").includes(e)){r=true;var n=t.buttons.split(" ");n.includes(o)||(r=true,n.push(o),t.buttons=n.join(" "));}return t})),r||n.options.buttonTheme.push({class:e,buttons:t});}));})),this.render());}},{key:"removeButtonTheme",value:function(t,e){var n=this;if(!t&&!e)return this.options.buttonTheme=[],void this.render();t&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(t.split(" ").forEach((function(t){var o;null===(o=n.options)||void 0===o||null===(o=o.buttonTheme)||void 0===o||o.map((function(o,r){if(o&&e&&e.includes(o.class)||!e){var i,a,s=null===(i=o)||void 0===i?void 0:i.buttons.split(" ").filter((function(e){return e!==t}));o&&null!=s&&s.length?o.buttons=s.join(" "):(null===(a=n.options.buttonTheme)||void 0===a||a.splice(r,1),o=null);}return o}));})),this.render());}},{key:"getButtonElement",value:function(t){var e,n=this.buttonElements[t];return n&&(e=n.length>1?n:n[0]),e}},{key:"inputPatternIsValid",value:function(t){var e,n=this.options.inputPattern;if((e=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&t){var o=e.test(t);return this.options.debug&&console.log('inputPattern ("'.concat(e,'"): ').concat(o?"passed":"did not pass!")),o}return true}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.addEventListener("keyup",this.handleKeyUp,e),document.addEventListener("keydown",this.handleKeyDown,e),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect);}}},{key:"handleKeyUp",value:function(t){this.caretEventHandler(t),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(t);}},{key:"handleKeyDown",value:function(t){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(t);}},{key:"handleMouseUp",value:function(t){this.caretEventHandler(t);}},{key:"handleTouchEnd",value:function(t){this.caretEventHandler(t);}},{key:"handleSelect",value:function(t){this.caretEventHandler(t);}},{key:"handleSelectionChange",value:function(t){navigator.userAgent.includes("Firefox")||this.caretEventHandler(t);}},{key:"caretEventHandler",value:function(t){var e,n=this;t.target.tagName&&(e=t.target.tagName.toLowerCase()),this.dispatch((function(o){var r=t.target===o.keyboardDOM||t.target&&o.keyboardDOM.contains(t.target);if(n.options.syncInstanceInputs&&Array.isArray(t.path)&&(r=t.path.some((function(t){var e;return null==t||null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-skInstance")}))),("textarea"===e||"input"===e&&["text","search","url","tel","password"].includes(t.target.type))&&!o.options.disableCaretPositioning){var i=t.target.selectionStart,a=t.target.selectionEnd;o.options.rtl&&(i=o.utilities.getRtlOffset(i,o.getInput()),a=o.utilities.getRtlOffset(a,o.getInput())),o.setCaretPosition(i,a),o.activeInputElement=t.target,o.options.debug&&console.log("Caret at: ",o.getCaretPosition(),o.getCaretPositionEnd(),t&&t.target.tagName.toLowerCase(),"(".concat(o.keyboardDOMClass,")"),null==t?void 0:t.type);}else !o.options.disableCaretPositioning&&r||"selectionchange"===(null==t?void 0:t.type)||(o.setCaretPosition(null),o.activeInputElement=null,o.options.debug&&console.log('Caret position reset due to "'.concat(null==t?void 0:t.type,'" event'),t));}));}},{key:"recurseButtons",value:function(t){var e=this;t&&Object.keys(this.buttonElements).forEach((function(n){return e.buttonElements[n].forEach(t)}));}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.removeEventListener("keyup",this.handleKeyUp,e),document.removeEventListener("keydown",this.handleKeyDown,e),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons((function(t){t&&(t.onpointerdown=null,t.onpointerup=null,t.onpointercancel=null,t.ontouchstart=null,t.ontouchend=null,t.ontouchcancel=null,t.onclick=null,t.onmousedown=null,t.onmouseup=null,t.remove(),t=null);})),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=false;}},{key:"getButtonThemeClasses",value:function(t){var e=this.options.buttonTheme,n=[];return Array.isArray(e)&&e.forEach((function(e){if(e&&e.class&&"string"==typeof e.class&&e.buttons&&"string"==typeof e.buttons){var o=e.class.split(" ");e.buttons.split(" ").includes(t)&&(n=[].concat(S(n),S(o)));}else console.warn('Incorrect "buttonTheme". Please check the documentation.',e);})),n}},{key:"setDOMButtonAttributes",value:function(t,e){var n=this.options.buttonAttributes;Array.isArray(n)&&n.forEach((function(n){n.attribute&&"string"==typeof n.attribute&&n.value&&"string"==typeof n.value&&n.buttons&&"string"==typeof n.buttons?n.buttons.split(" ").includes(t)&&e(n.attribute,n.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',n);}));}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow();}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(t){if(t.target.classList.contains("hg-button"))return t.preventDefault(),t.stopPropagation(),false};}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=true,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."));}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit(this);}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.");}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender(this);}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender(this);}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this);}},{key:"loadModules",value:function(){var t=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(e){var n=new e(t);n.init&&n.init(t);})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded());}},{key:"getModuleProp",value:function(t,e){return !!this.modules[t]&&this.modules[t][e]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(t,e,n,o){var r=this,i=Array.from(t.children),a=0;return i.length&&n.forEach((function(n,s){var u=o[s];if(!(u&&u>n))return false;var c=n-a,l=u-a,f=document.createElement("div");f.className+="hg-button-container";var d="".concat(r.options.layoutName,"-r").concat(e,"c").concat(s);f.setAttribute("data-skUID",d);var p=i.splice(c,l-c+1);a=l-c,p.forEach((function(t){return f.appendChild(t)})),i.splice(c,0,f),t.innerHTML="",i.forEach((function(e){return t.appendChild(e)})),r.options.debug&&console.log("rowDOMContainer",p,c,l,a+1);})),t}},{key:"render",value:function(){var t=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var e="hg-layout-".concat(this.options.layoutName),n=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},o=this.options.useTouchEvents||false,r=o?"hg-touch-events":"",i=this.options.useMouseEvents||false,a=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,e,this.keyboardPluginClasses,r),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach((function(e,n){var r=e.split(" ");t.options.excludeFromLayout&&t.options.excludeFromLayout[t.options.layoutName||t.defaultName]&&(r=r.filter((function(e){return t.options.excludeFromLayout&&!t.options.excludeFromLayout[t.options.layoutName||t.defaultName].includes(e)})));var s=document.createElement("div");s.className+="hg-row";var u=[],c=[];r.forEach((function(e,r){var l,f=!a&&"string"==typeof e&&e.length>1&&0===e.indexOf("["),d=!a&&"string"==typeof e&&e.length>1&&e.indexOf("]")===e.length-1;f&&(u.push(r),e=e.replace(/\[/g,"")),d&&(c.push(r),e=e.replace(/\]/g,""));var p=t.utilities.getButtonClass(e),h=t.utilities.getButtonDisplayName(e,t.options.display,t.options.mergeDisplay),v=t.options.useButtonTag?"button":"div",y=document.createElement(v);y.className+="hg-button ".concat(p),(l=y.classList).add.apply(l,S(t.getButtonThemeClasses(e))),t.setDOMButtonAttributes(e,(function(t,e){y.setAttribute(t,e);})),t.activeButtonClass="hg-activeButton",!t.utilities.pointerEventsSupported()||o||i?o?(y.ontouchstart=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n);},y.ontouchend=function(n){t.handleButtonMouseUp(e,n);},y.ontouchcancel=function(n){t.handleButtonMouseUp(e,n);}):(y.onclick=function(n){t.setMouseHold(false),"function"!=typeof t.options.onKeyReleased&&t.handleButtonClicked(e,n);},y.onmousedown=function(n){"function"!=typeof t.options.onKeyReleased||t.isMouseHold||t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n);},y.onmouseup=function(n){t.handleButtonMouseUp(e,n);}):(y.onpointerdown=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n);},y.onpointerup=function(n){t.handleButtonMouseUp(e,n);},y.onpointercancel=function(n){t.handleButtonMouseUp(e,n);}),y.setAttribute("data-skBtn",e);var g="".concat(t.options.layoutName,"-r").concat(n,"b").concat(r);y.setAttribute("data-skBtnUID",g);var m=document.createElement("span");m.innerHTML=h,y.appendChild(m),t.buttonElements[e]||(t.buttonElements[e]=[]),t.buttonElements[e].push(y),s.appendChild(y);})),s=t.parseRowDOMContainers(s,n,u,c),t.keyboardRowsDOM.appendChild(s);})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=true,!this.utilities.pointerEventsSupported()||o||i?o?(document.ontouchend=function(e){return t.handleButtonMouseUp(void 0,e)},document.ontouchcancel=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.ontouchstart=function(e){return t.handleKeyboardContainerMouseDown(e)}):o||(document.onmouseup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onmousedown=function(e){return t.handleKeyboardContainerMouseDown(e)}):(document.onpointerup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onpointerdown=function(e){return t.handleKeyboardContainerMouseDown(e)}),this.onInit());}}],e&&C(t.prototype,e),n&&C(t,n),Object.defineProperty(t,"prototype",{writable:false}),t;var t,e,n;}(),T=D,N=T;return o}();},442:function(e){e.exports=t;}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,o),i.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:true,get:e[n]});},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:true});};var r={};return function(){o.r(r),o.d(r,{KeyboardReact:function(){return l},default:function(){return f}});o(981);var t=o(442),e=o(548),n=o.n(e);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o);}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),true).forEach((function(e){u(t,e,n[e]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));}));}return t}function u(t,e,n){return (e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e);if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}var c=function(t){return s(s({},t),{},{keyboardRef:null})},l=function(e){var o=e.baseClass||"react-simple-keyboard",r=t.useRef(null),i=t.useRef(null),a=t.useRef(null),u=t.useRef(e);return t.useEffect((function(){return function(){a.current&&a.current.destroy(),r.current=false;}}),[]),t.useEffect((function(){var t=function(t){return s(s({},t),{},{theme:"simple-keyboard ".concat(t.theme||"hg-theme-default")})}(e);if(!r.current){r.current=true,t.debug&&console.log("ReactSimpleKeyboard: Init");var l=i.current,f=".".concat(o);a.current=new(n())(l||f,t),t.keyboardRef&&t.keyboardRef(a.current);}var d=function(t,e){var n=c(e),o=c(t);return Object.keys(n).filter((function(t){return n[t]!==o[t]}))}(u.current,t);if(d.length){var p=a.current;u.current=t,null==p||p.setOptions(t),t.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",d);}}),[r,o,u,e]),t.createElement("div",{className:o,ref:i})},f=l;}(),r}()}));
|
|
2204
|
+
!function(t,e){module.exports=e(require$$0);}(commonjsGlobal,(function(t){return function(){var e={981:function(){"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this);}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",n="prototype",r=t.Element[n],o=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return -1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e;},u=function(t,e){if(""===e)throw new s("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString());};},l=c[n]=[],f=function(){return new c(this)};if(s[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return ~u(this,t+"")},l.add=function(){var t,e=arguments,n=0,r=e.length,o=false;do{~u(this,t=e[n]+"")||(this.push(t),o=true);}while(++n<r);o&&this._updateClassName();},l.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=false;do{for(e=u(this,t=n[r]+"");~e;)this.splice(e,1),i=true,e=u(this,t);}while(++r<o);i&&this._updateClassName();},l.toggle=function(t,e){var n=this.contains(t),r=n?true!==e&&"remove":false!==e&&"add";return r&&this[r](t),true===e||false===e?e:!n},l.replace=function(t,e){var n=u(t+"");~n&&(this.splice(n,1,e),this._updateClassName());},l.toString=function(){return this.join(" ")},o.defineProperty){var p={get:f,enumerable:true,configurable:true};try{o.defineProperty(r,e,p);}catch(t){ void 0!==t.number&&-2146823252!==t.number||(p.enumerable=false,o.defineProperty(r,e,p));}}else o[n].__defineGetter__&&r.__defineGetter__(e,f);}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,r=arguments.length;for(n=0;n<r;n++)t=arguments[n],e.call(this,t);};};e("add"),e("remove");}if(t.classList.toggle("c3",false),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)};}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)));}),t=null;}());},548:function(t){t.exports=function(){var t={9306:function(t,e,n){var r=n(4901),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")};},5548:function(t,e,n){var r=n(3517),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a constructor")};},3506:function(t,e,n){var r=n(3925),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+o(t)+" as a prototype")};},6469:function(t,e,n){var r=n(8227),o=n(2360),i=n(4913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:true,value:o(null)}),t.exports=function(t){s[a][t]=true;};},7829:function(t,e,n){var r=n(8183).charAt;t.exports=function(t,e,n){return e+(n&&r(t,e).length||1)};},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")};},235:function(t,e,n){var r=n(9213).forEach,o=n(4598)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)};},7916:function(t,e,n){var r=n(6080),o=n(9565),i=n(8981),a=n(6319),s=n(4209),u=n(3517),c=n(6198),l=n(4659),f=n(4527),p=n(81),d=n(851),h=n(9539),v=Array;t.exports=function(t){var e=u(this),n=arguments.length,y=n>1?arguments[1]:void 0,g=void 0!==y;g&&(y=r(y,n>2?arguments[2]:void 0));var m,b,w,x,O,E,S=i(t),k=d(S),P=0;if(!k||this===v&&s(k))for(m=c(S),b=e?new this(m):v(m);m>P;P++)E=g?y(S[P],P):S[P],l(b,P,E);else for(b=e?new this:[],O=(x=p(S,k)).next;!(w=o(O,x)).done;P++){E=g?a(x,y,[w.value,P],true):w.value;try{l(b,P,E);}catch(t){h(x,"throw",t);}}return f(b,P),b};},9617:function(t,e,n){var r=n(5397),o=n(5610),i=n(6198),a=function(t){return function(e,n,a){var s=r(e),u=i(s);if(0===u)return !t&&-1;var c,l=o(a,u);if(t&&n!=n){for(;u>l;)if((c=s[l++])!=c)return true}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return !t&&-1}};t.exports={includes:a(true),indexOf:a(false)};},9213:function(t,e,n){var r=n(6080),o=n(7055),i=n(8981),a=n(6198),s=n(1469),u=n(4659),c=function(t){var e=1===t,n=2===t,c=3===t,l=4===t,f=6===t,p=7===t,d=5===t||f;return function(h,v,y){for(var g,m,b=i(h),w=o(b),x=a(w),O=r(v,y),E=0,S=0,k=e?s(h,x):n||p?s(h,0):void 0;x>E;E++)if((d||E in w)&&(m=O(g=w[E],E,b),t))if(e)u(k,E,m);else if(m)switch(t){case 3:return true;case 5:return g;case 6:return E;case 2:u(k,S++,g);}else switch(t){case 4:return false;case 7:u(k,S++,g);}return f?-1:c||l?l:k}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)};},597:function(t,e,n){var r=n(9039),o=n(8227),i=n(9519),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return (e.constructor={})[a]=function(){return {foo:1}},1!==e[t](Boolean).foo}))};},4598:function(t,e,n){var r=n(9039);t.exports=function(t,e){var n=[][t];return !!n&&r((function(){n.call(null,e||function(){return 1},1);}))};},926:function(t,e,n){var r=n(9306),o=n(8981),i=n(7055),a=n(6198),s=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,n,c,l){var f=o(e),p=i(f),d=a(f);if(r(n),0===d&&c<2)throw new s(u);var h=t?d-1:0,v=t?-1:1;if(c<2)for(;;){if(h in p){l=p[h],h+=v;break}if(h+=v,t?h<0:d<=h)throw new s(u)}for(;t?h>=0:d>h;h+=v)h in p&&(l=n(l,p[h],h,f));return l}};t.exports={left:c(false),right:c(true)};},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return true;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e};},7680:function(t,e,n){var r=n(9504);t.exports=r([].slice);},4488:function(t,e,n){var r=n(7680),o=Math.floor,i=function(t,e){var n=t.length;if(n<8)for(var a,s,u=1;u<n;){for(s=u,a=t[u];s&&e(t[s-1],a)>0;)t[s]=t[--s];s!==u++&&(t[s]=a);}else for(var c=o(n/2),l=i(r(t,0,c),e),f=i(r(t,c),e),p=l.length,d=f.length,h=0,v=0;h<p||v<d;)t[h+v]=h<p&&v<d?e(l[h],f[v])<=0?l[h++]:f[v++]:h<p?l[h++]:f[v++];return t};t.exports=i;},7433:function(t,e,n){var r=n(4376),o=n(3517),i=n(34),a=n(8227)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===s||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e};},1469:function(t,e,n){var r=n(7433);t.exports=function(t,e){return new(r(t))(0===e?0:e)};},6319:function(t,e,n){var r=n(8551),o=n(9539);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e);}};},4428:function(t,e,n){var r=n(8227)("iterator"),o=false;try{var i=0,a={next:function(){return {done:!!i++}},return:function(){o=!0;}};a[r]=function(){return this},Array.from(a,(function(){throw 2}));}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return !1}catch(t){return false}var n=false;try{var i={};i[r]=function(){return {next:function(){return {done:n=!0}}}},t(i);}catch(t){}return n};},2195:function(t,e,n){var r=n(9504),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)};},6955:function(t,e,n){var r=n(2140),o=n(4901),i=n(2195),a=n(8227)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:u?i(e):"Object"===(r=i(e))&&o(e.callee)?"Arguments":r};},7740:function(t,e,n){var r=n(9297),o=n(5031),i=n(7347),a=n(4913);t.exports=function(t,e,n){for(var s=o(e),u=a.f,c=i.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f));}};},1436:function(t,e,n){var r=n(8227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e);}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return false};},2211:function(t,e,n){var r=n(9039);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}));},2529:function(t){t.exports=function(t,e){return {value:t,done:e}};},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t};},6980:function(t){t.exports=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}};},4659:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n;};},3640:function(t,e,n){var r=n(8551),o=n(4270),i=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new i("Incorrect hint");return o(this,t)};},2106:function(t,e,n){var r=n(283),o=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:true}),n.set&&r(n.set,e,{setter:true}),o.f(t,e,n)};},6840:function(t,e,n){var r=n(4901),o=n(4913),i=n(283),a=n(9433);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&i(n,c,s),s.global)u?t[e]=n:a(e,n);else {try{s.unsafe?t[e]&&(u=!0):delete t[e];}catch(t){}u?t[e]=n:o.f(t,e,{value:n,enumerable:false,configurable:!s.nonConfigurable,writable:!s.nonWritable});}return t};},9433:function(t,e,n){var r=n(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0});}catch(n){r[t]=e;}return e};},4606:function(t,e,n){var r=n(6823),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+r(e)+" of "+r(t))};},3724:function(t,e,n){var r=n(9039);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}));},4055:function(t,e,n){var r=n(4576),o=n(34),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}};},6837:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t};},7400:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};},9296:function(t,e,n){var r=n(4055)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o;},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];},3709:function(t,e,n){var r=n(2839).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1];},3763:function(t,e,n){var r=n(2839);t.exports=/MSIE|Trident/.test(r);},6193:function(t,e,n){var r=n(4215);t.exports="NODE"===r;},2839:function(t,e,n){var r=n(4576).navigator,o=r&&r.userAgent;t.exports=o?String(o):"";},9519:function(t,e,n){var r,o,i=n(4576),a=n(2839),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o;},3607:function(t,e,n){var r=n(2839).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1];},4215:function(t,e,n){var r=n(4576),o=n(2839),i=n(2195),a=function(t){return o.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST";},6518:function(t,e,n){var r=n(4576),o=n(7347).f,i=n(6699),a=n(6840),s=n(9433),u=n(7740),c=n(2796);t.exports=function(t,e){var n,l,f,p,d,h=t.target,v=t.global,y=t.stat;if(n=v?r:y?r[h]||s(h,{}):r[h]&&r[h].prototype)for(l in e){if(p=e[l],f=t.dontCallGetSet?(d=o(n,l))&&d.value:n[l],!c(v?l:h+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f);}(t.sham||f&&f.sham)&&i(p,"sham",true),a(n,l,p,t);}};},9039:function(t){t.exports=function(t){try{return !!t()}catch(t){return true}};},9228:function(t,e,n){n(7495);var r=n(9565),o=n(6840),i=n(7323),a=n(9039),s=n(8227),u=n(6699),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var p=s(t),d=!a((function(){var e={};return e[p]=function(){return 7},7!==""[t](e)})),h=d&&!a((function(){var e=false,n=/a/;if("split"===t){var r={};r[c]=function(){return n},(n={constructor:r,flags:""})[p]=/./[p];}return n.exec=function(){return e=true,null},n[p](""),!e}));if(!d||!h||n){var v=/./[p],y=e(p,""[t],(function(t,e,n,o,a){var s=e.exec;return s===i||s===l.exec?d&&!a?{done:true,value:r(v,e,n,o)}:{done:true,value:r(t,n,e,o)}:{done:false}}));o(String.prototype,t,y[0]),o(l,p,y[1]);}f&&u(l[p],"sham",true);};},8745:function(t,e,n){var r=n(616),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)});},6080:function(t,e,n){var r=n(7476),o=n(9306),i=n(616),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}};},616:function(t,e,n){var r=n(9039);t.exports=!r((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")}));},566:function(t,e,n){var r=n(9504),o=n(9306),i=n(34),a=n(9297),s=n(7680),u=n(616),c=Function,l=r([].concat),f=r([].join),p={};t.exports=u?c.bind:function(t){var e=o(this),n=e.prototype,r=s(arguments,1),u=function(){var n=l(r,s(arguments));return this instanceof u?function(t,e,n){if(!a(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=c("C,a","return new C("+f(r,",")+")");}return p[e](t,n)}(e,n.length,n):e.apply(t,n)};return i(n)&&(u.prototype=n),u};},9565:function(t,e,n){var r=n(616),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)};},350:function(t,e,n){var r=n(3724),o=n(9297),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c};},6706:function(t,e,n){var r=n(9504),o=n(9306);t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}};},7476:function(t,e,n){var r=n(2195),o=n(9504);t.exports=function(t){if("Function"===r(t))return o(t)};},9504:function(t,e,n){var r=n(616),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}};},7751:function(t,e,n){var r=n(4576),o=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n;};},851:function(t,e,n){var r=n(6955),o=n(5966),i=n(4117),a=n(6269),s=n(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,s)||o(t,"@@iterator")||a[r(t)]};},81:function(t,e,n){var r=n(9565),o=n(9306),i=n(8551),a=n(6823),s=n(851),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(o(n))return i(r(n,t));throw new u(a(t)+" is not iterable")};},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)};},2478:function(t,e,n){var r=n(9504),o=n(8981),i=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,p){var d=n+t.length,h=r.length,v=l;return void 0!==f&&(f=o(f),v=c),s(p,v,(function(o,s){var c;switch(a(s,0)){case "$":return "$";case "&":return t;case "`":return u(e,0,n);case "'":return u(e,d);case "<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return o;if(l>h){var p=i(l/10);return 0===p?o:p<=h?void 0===r[p-1]?a(s,1):r[p-1]+a(s,1):o}c=r[l-1];}return void 0===c?"":c}))};},4576:function(t,e,n){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")();},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)};},421:function(t){t.exports={};},397:function(t,e,n){var r=n(7751);t.exports=r("document","documentElement");},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}));},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(2195),a=Object,s=r("".split);t.exports=o((function(){return !a("z").propertyIsEnumerable(0)}))?function(t){return "String"===i(t)?s(t,""):a(t)}:a;},3167:function(t,e,n){var r=n(4901),o=n(34),i=n(2967);t.exports=function(t,e,n){var a,s;return i&&r(a=e.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(t,s),t};},3706:function(t,e,n){var r=n(9504),o=n(4901),i=n(7629),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource;},1181:function(t,e,n){var r,o,i,a=n(8622),s=n(4576),u=n(34),c=n(6699),l=n(9297),f=n(7629),p=n(6119),d=n(421),h="Object already initialized",v=s.TypeError,y=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw new v(h);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)};}else {var m=p("state");d[m]=true,r=function(t,e){if(l(t,m))throw new v(h);return e.facade=t,c(t,m,e),e},o=function(t){return l(t,m)?t[m]:{}},i=function(t){return l(t,m)};}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}};},4209:function(t,e,n){var r=n(8227),o=n(6269),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)};},4376:function(t,e,n){var r=n(2195);t.exports=Array.isArray||function(t){return "Array"===r(t)};},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return "function"==typeof t||t===e}:function(t){return "function"==typeof t};},3517:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),a=n(6955),s=n(7751),u=n(3706),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=r(f.exec),d=!f.test(c),h=function(t){if(!i(t))return false;try{return l(c,[],t),!0}catch(t){return false}},v=function(t){if(!i(t))return false;switch(a(t)){case "AsyncFunction":case "GeneratorFunction":case "AsyncGeneratorFunction":return false}try{return d||!!p(f,u(t))}catch(t){return true}};v.sham=true,t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=true;}))||t}))?v:h;},2796:function(t,e,n){var r=n(9039),o=n(4901),i=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n===l||n!==c&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a;},2087:function(t,e,n){var r=n(34),o=Math.floor;t.exports=Number.isInteger||function(t){return !r(t)&&isFinite(t)&&o(t)===t};},4117:function(t){t.exports=function(t){return null==t};},34:function(t,e,n){var r=n(4901);t.exports=function(t){return "object"==typeof t?null!==t:r(t)};},3925:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)||null===t};},6395:function(t){t.exports=false;},5810:function(t,e,n){var r=n(34),o=n(1181).get;t.exports=function(t){if(!r(t))return false;var e=o(t);return !!e&&"RawJSON"===e.type};},788:function(t,e,n){var r=n(34),o=n(2195),i=n(8227)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))};},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return "symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))};},9539:function(t,e,n){var r=n(9565),o=n(8551),i=n(5966);t.exports=function(t,e,n){var a,s;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t);}catch(t){s=true,a=t;}if("throw"===e)throw n;if(s)throw a;return o(a),n};},3994:function(t,e,n){var r=n(7657).IteratorPrototype,o=n(2360),i=n(6980),a=n(687),s=n(6269),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=o(r,{next:i(+!c,n)}),a(t,l,false,true),s[l]=u,t};},1088:function(t,e,n){var r=n(6518),o=n(9565),i=n(6395),a=n(350),s=n(4901),u=n(3994),c=n(2787),l=n(2967),f=n(687),p=n(6699),d=n(6840),h=n(8227),v=n(6269),y=n(7657),g=a.PROPER,m=a.CONFIGURABLE,b=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,x=h("iterator"),O="keys",E="values",S="entries",k=function(){return this};t.exports=function(t,e,n,a,h,y,P){u(n,e,a);var I,C,A,M=function(t){if(t===h&&R)return R;if(!w&&t&&t in N)return N[t];switch(t){case O:case E:case S:return function(){return new n(this,t)}}return function(){return new n(this)}},D=e+" Iterator",T=false,N=t.prototype,j=N[x]||N["@@iterator"]||h&&N[h],R=!w&&j||M(h),L="Array"===e&&N.entries||j;if(L&&(I=c(L.call(new t)))!==Object.prototype&&I.next&&(i||c(I)===b||(l?l(I,b):s(I[x])||d(I,x,k)),f(I,D,true,true),i&&(v[D]=k)),g&&h===E&&j&&j.name!==E&&(!i&&m?p(N,"name",E):(T=true,R=function(){return o(j,this)})),h)if(C={values:M(E),keys:y?R:M(O),entries:M(S)},P)for(A in C)(w||T||!(A in N))&&d(N,A,C[A]);else r({target:e,proto:true,forced:w||T},C);return i&&!P||N[x]===R||d(N,x,R,{name:h}),v[e]=R,C};},7657:function(t,e,n){var r,o,i,a=n(9039),s=n(4901),u=n(34),c=n(2360),l=n(2787),f=n(6840),p=n(8227),d=n(6395),h=p("iterator"),v=false;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):v=true),!u(r)||a((function(){var t={};return r[h].call(t)!==t}))?r={}:d&&(r=c(r)),s(r[h])||f(r,h,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v};},6269:function(t){t.exports={};},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)};},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),a=n(9297),s=n(3724),u=n(350).CONFIGURABLE,c=n(3706),l=n(1181),f=l.enforce,p=l.get,d=String,h=Object.defineProperty,v=r("".slice),y=r("".replace),g=r([].join),m=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(d(e),0,7)&&(e="["+y(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:true}):t.name=e),m&&n&&a(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var r=f(t);return a(r,"source")||(r.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&p(this).source||c(this)}),"toString");},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return (r>0?n:e)(r)};},7819:function(t,e,n){var r=n(9039);t.exports=!r((function(){var t="9007199254740993",e=JSON.rawJSON(t);return !JSON.isRawJSON(e)||JSON.stringify(e)!==t}));},5749:function(t,e,n){var r=n(788),o=TypeError;t.exports=function(t){if(r(t))throw new o("The method doesn't accept regular expressions");return t};},4213:function(t,e,n){var r=n(3724),o=n(9504),i=n(9565),a=n(9039),s=n(1072),u=n(3717),c=n(8773),l=n(8981),f=n(7055),p=Object.assign,d=Object.defineProperty,h=o([].concat);t.exports=!p||a((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:true,get:function(){d(this,"b",{value:3,enumerable:false});}}),{b:2})).b)return true;var t={},e={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t;})),7!==p({},t)[n]||s(p({},e)).join("")!==o}))?function(t,e){for(var n=l(t),o=arguments.length,a=1,p=u.f,d=c.f;o>a;)for(var v,y=f(arguments[a++]),g=p?h(s(y),p(y)):s(y),m=g.length,b=0;m>b;)v=g[b++],r&&!i(d,y,v)||(n[v]=y[v]);return n}:p;},2360:function(t,e,n){var r,o=n(8551),i=n(6801),a=n(8727),s=n(421),u=n(397),c=n(4055),l=n(6119),f="prototype",p="script",d=l("IE_PROTO"),h=function(){},v=function(t){return "<"+p+">"+t+"</"+p+">"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{r=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;g="undefined"!=typeof document?document.domain&&r?y(r):(e=c("iframe"),n="java"+p+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(r);for(var o=a.length;o--;)delete g[f][a[o]];return g()};s[d]=true,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=o(t),n=new h,h[f]=null,n[d]=t):n=g(),void 0===e?n:i.f(n,e)};},6801:function(t,e,n){var r=n(3724),o=n(8686),i=n(4913),a=n(8551),s=n(5397),u=n(1072);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=u(e),c=o.length,l=0;c>l;)i.f(t,n=o[l++],r[n]);return t};},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),a=n(8551),s=n(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:false});}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return "value"in n&&(t[e]=n.value),t};},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),a=n(6980),s=n(5397),u=n(6969),c=n(9297),l=n(5917),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!o(i.f,t,e),t[e])};},298:function(t,e,n){var r=n(2195),o=n(5397),i=n(8480).f,a=n(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===r(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))};},8480:function(t,e,n){var r=n(1828),o=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)};},3717:function(t,e){e.f=Object.getOwnPropertySymbols;},2787:function(t,e,n){var r=n(9297),o=n(4901),i=n(8981),a=n(6119),s=n(2211),u=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=i(t);if(r(e,u))return e[u];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof c?l:null};},1625:function(t,e,n){var r=n(9504);t.exports=r({}.isPrototypeOf);},1828:function(t,e,n){var r=n(9504),o=n(9297),i=n(5397),a=n(9617).indexOf,s=n(421),u=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&u(l,n);for(;e.length>c;)o(r,n=e[c++])&&(~a(l,n)||u(l,n));return l};},1072:function(t,e,n){var r=n(1828),o=n(8727);t.exports=Object.keys||function(t){return r(t,o)};},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return !!e&&e.enumerable}:n;},2551:function(t,e,n){var r=n(6395),o=n(4576),i=n(9039),a=n(3607);t.exports=r||!i((function(){if(!(a&&a<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete o[t];}}));},2967:function(t,e,n){var r=n(6706),o=n(34),i=n(7750),a=n(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=false,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array;}catch(t){}return function(n,r){return i(n),a(r),o(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0);},3179:function(t,e,n){var r=n(2140),o=n(6955);t.exports=r?{}.toString:function(){return "[object "+o(this)+"]"};},4270:function(t,e,n){var r=n(9565),o=n(4901),i=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")};},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),a=n(3717),s=n(8551),u=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?u(e,n(t)):e};},8235:function(t,e,n){var r=n(9504),o=n(9297),i=SyntaxError,a=parseInt,s=String.fromCharCode,u=r("".charAt),c=r("".slice),l=r(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},p=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var n=true,r="";e<t.length;){var h=u(t,e);if("\\"===h){var v=c(t,e,e+2);if(o(f,v))r+=f[v],e+=2;else {if("\\u"!==v)throw new i('Unknown escape sequence: "'+v+'"');var y=c(t,e+=2,e+4);if(!l(p,y))throw new i("Bad Unicode escape at: "+e);r+=s(a(y,16)),e+=4;}}else {if('"'===h){n=false,e++;break}if(l(d,h))throw new i("Bad control character in string literal at: "+e);r+=h,e++;}}if(n)throw new i("Unterminated string at: "+e);return {value:r,end:e}};},9167:function(t,e,n){var r=n(4576);t.exports=r;},1056:function(t,e,n){var r=n(4913).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:true,get:function(){return e[n]},set:function(t){e[n]=t;}});};},6682:function(t,e,n){var r=n(9565),o=n(8551),i=n(4901),a=n(2195),s=n(7323),u=TypeError;t.exports=function(t,e){var n=t.exec;if(i(n)){var c=r(n,t,e);return null!==c&&o(c),c}if("RegExp"===a(t))return r(s,t,e);throw new u("RegExp#exec called on incompatible receiver")};},7323:function(t,e,n){var r,o,i=n(9565),a=n(9504),s=n(655),u=n(7979),c=n(8429),l=n(5745),f=n(2360),p=n(1181).get,d=n(3635),h=n(8814),v=l("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,m=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),O=(o=/b*/g,i(y,r=/a/,"a"),i(y,o,"a"),0!==r.lastIndex||0!==o.lastIndex),E=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1],k=function(t,e){for(var n=t.groups=f(null),r=0;r<e.length;r++){var o=e[r];n[o[0]]=t[o[1]];}};(O||S||E||d||h)&&(g=function(t){var e,n,r,o=this,a=p(o),c=s(t),l=a.raw;if(l)return l.lastIndex=o.lastIndex,e=i(g,l,c),o.lastIndex=l.lastIndex,e&&a.groups&&k(e,a.groups),e;var f=a.groups,d=E&&o.sticky,h=i(u,o),P=o.source,I=0,C=c;if(d){h=w(h,"y",""),-1===b(h,"g")&&(h+="g"),C=x(c,o.lastIndex);var A=o.lastIndex>0&&m(c,o.lastIndex-1);o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==A&&"\r"!==A&&"\u2028"!==A&&"\u2029"!==A)&&(P="(?: (?:"+P+"))",C=" "+C,I++),n=new RegExp("^(?:"+P+")",h);}S&&(n=new RegExp("^"+P+"$(?!\\s)",h)),O&&(r=o.lastIndex);var M=i(y,d?n:o,C);return d?M?(M.input=c,M[0]=x(M[0],I),M.index=o.lastIndex,o.lastIndex+=M[0].length):o.lastIndex=0:O&&M&&(o.lastIndex=o.global?M.index+M[0].length:r),S&&M&&M.length>1&&i(v,M[0],n,(function(){for(var t=1;t<arguments.length-2;t++) void 0===arguments[t]&&(M[t]=void 0);})),M&&f&&k(M,f),M}),t.exports=g;},5213:function(t,e,n){var r=n(4576),o=n(9039),i=r.RegExp,a=!o((function(){var t=true;try{i(".","d");}catch(e){t=false;}var e={},n="",r=t?"dgimsy":"gimsy",o=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,true}});},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(a.hasIndices="d"),a)o(s,a[s]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(e)!==r||n!==r}));t.exports={correct:a};},7979:function(t,e,n){var r=n(8551);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e};},1034:function(t,e,n){var r=n(9565),o=n(9297),i=n(1625),a=n(5213),s=n(7979),u=RegExp.prototype;t.exports=a.correct?function(t){return t.flags}:function(t){return a.correct||!i(u,t)||o(t,"flags")?t.flags:r(s,t)};},8429:function(t,e,n){var r=n(9039),o=n(4576).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=i||r((function(){return !o("a","y").sticky})),s=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i};},3635:function(t,e,n){var r=n(9039),o=n(4576).RegExp;t.exports=r((function(){var t=o(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)}));},8814:function(t,e,n){var r=n(9039),o=n(4576).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}));},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t};},7633:function(t,e,n){var r=n(7751),o=n(2106),i=n(8227),a=n(3724),s=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&o(e,s,{configurable:true,get:function(){return this}});};},687:function(t,e,n){var r=n(4913).f,o=n(9297),i=n(8227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:true,value:e});};},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))};},7629:function(t,e,n){var r=n(6395),o=n(4576),i=n(9433),a="__core-js_shared__",s=t.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})};},2293:function(t,e,n){var r=n(8551),o=n(5548),i=n(4117),a=n(8227)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||i(n=r(s)[a])?e:o(n)};},8183:function(t,e,n){var r=n(9504),o=n(1291),i=n(655),a=n(7750),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=i(a(e)),p=o(n),d=f.length;return p<0||p>=d?t?"":void 0:(r=u(f,p))<55296||r>56319||p+1===d||(l=u(f,p+1))<56320||l>57343?t?s(f,p):r:t?c(f,p,p+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(false),charAt:l(true)};},706:function(t,e,n){var r=n(350).PROPER,o=n(9039),i=n(7452);t.exports=function(t){return o((function(){return !!i[t]()||"
"!=="
"[t]()||r&&i[t].name!==t}))};},3802:function(t,e,n){var r=n(9504),o=n(7750),i=n(655),a=n(7452),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var n=i(o(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)};},4495:function(t,e,n){var r=n(9519),o=n(9039),i=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return !i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}));},8242:function(t,e,n){var r=n(9565),o=n(7751),i=n(8227),a=n(6840);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=i("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1});};},1296:function(t,e,n){var r=n(4495);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor;},1240:function(t,e,n){var r=n(9504);t.exports=r(1.1.valueOf);},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)};},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))};},1291:function(t,e,n){var r=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)};},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0};},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))};},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),a=n(5966),s=n(4270),u=n(8227),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)};},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""};},2140:function(t,e,n){var r={};r[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(r);},655:function(t,e,n){var r=n(6955),o=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)};},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return "Object"}};},3392:function(t,e,n){var r=n(9504),o=0,i=Math.random(),a=r(1.1.toString);t.exports=function(t){return "Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)};},7040:function(t,e,n){var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator;},8686:function(t,e,n){var r=n(3724),o=n(9039);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:false}).prototype}));},8622:function(t,e,n){var r=n(4576),o=n(4901),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i));},511:function(t,e,n){var r=n(9167),o=n(9297),i=n(1951),a=n(4913).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)});};},1951:function(t,e,n){var r=n(8227);e.f=r;},8227:function(t,e,n){var r=n(4576),o=n(5745),i=n(9297),a=n(3392),s=n(4495),u=n(7040),c=r.Symbol,l=o("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=s&&i(c,t)?c[t]:f("Symbol."+t)),l[t]};},7452:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff";},8706:function(t,e,n){var r=n(6518),o=n(9039),i=n(4376),a=n(34),s=n(8981),u=n(6198),c=n(6837),l=n(4659),f=n(4527),p=n(1469),d=n(597),h=n(8227),v=n(9519),y=h("isConcatSpreadable"),g=v>=51||!o((function(){var t=[];return t[y]=false,t.concat()[0]!==t})),m=function(t){if(!a(t))return false;var e=t[y];return void 0!==e?!!e:i(t)};r({target:"Array",proto:true,arity:1,forced:!g||!d("concat")},{concat:function(t){var e,n,r,o,i,a=s(this),d=p(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(m(i=-1===e?a:arguments[e]))for(o=u(i),c(h+o),n=0;n<o;n++,h++)n in i&&l(d,h,i[n]);else c(h+1),l(d,h++,i);return f(d,h),d}});},2008:function(t,e,n){var r=n(6518),o=n(9213).filter;r({target:"Array",proto:true,forced:!n(597)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}});},3418:function(t,e,n){var r=n(6518),o=n(7916);r({target:"Array",stat:true,forced:!n(4428)((function(t){Array.from(t);}))},{from:o});},4423:function(t,e,n){var r=n(6518),o=n(9617).includes,i=n(9039),a=n(6469),s=i((function(){return !Array(1).includes()})),u=i((function(){return [,1].includes(void 0,1)}));r({target:"Array",proto:true,forced:s||u},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes");},5276:function(t,e,n){var r=n(6518),o=n(7476),i=n(9617).indexOf,a=n(4598),s=o([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:true,forced:u||!a("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:i(this,t,e)}});},3792:function(t,e,n){var r=n(5397),o=n(6469),i=n(6269),a=n(1181),s=n(4913).f,u=n(1088),c=n(2529),l=n(6395),f=n(3724),p="Array Iterator",d=a.set,h=a.getterFor(p);t.exports=u(Array,"Array",(function(t,e){d(this,{type:p,target:r(t),index:0,kind:e});}),(function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,true);switch(t.kind){case "keys":return c(n,false);case "values":return c(e[n],false)}return c([n,e[n]],false)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==v.name)try{s(v,"name",{value:"values"});}catch(t){}},8598:function(t,e,n){var r=n(6518),o=n(9504),i=n(7055),a=n(5397),s=n(4598),u=o([].join);r({target:"Array",proto:true,forced:i!==Object||!s("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}});},2062:function(t,e,n){var r=n(6518),o=n(9213).map;r({target:"Array",proto:true,forced:!n(597)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}});},2712:function(t,e,n){var r=n(6518),o=n(926).left,i=n(4598),a=n(9519);r({target:"Array",proto:true,forced:!n(6193)&&a>79&&a<83||!i("reduce")},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}});},4782:function(t,e,n){var r=n(6518),o=n(4376),i=n(3517),a=n(34),s=n(5610),u=n(6198),c=n(5397),l=n(4659),f=n(4527),p=n(8227),d=n(597),h=n(7680),v=d("slice"),y=p("species"),g=Array,m=Math.max;r({target:"Array",proto:true,forced:!v},{slice:function(t,e){var n,r,p,d=c(this),v=u(d),b=s(t,v),w=s(void 0===e?v:e,v);if(o(d)&&(n=d.constructor,(i(n)&&(n===g||o(n.prototype))||a(n)&&null===(n=n[y]))&&(n=void 0),n===g||void 0===n))return h(d,b,w);for(r=new(void 0===n?g:n)(m(w-b,0)),p=0;b<w;b++,p++)b in d&&l(r,p,d[b]);return f(r,p),r}});},6910:function(t,e,n){var r=n(6518),o=n(9504),i=n(9306),a=n(8981),s=n(6198),u=n(4606),c=n(655),l=n(9039),f=n(4488),p=n(4598),d=n(3709),h=n(3763),v=n(9519),y=n(3607),g=[],m=o(g.sort),b=o(g.push),w=l((function(){g.sort(void 0);})),x=l((function(){g.sort(null);})),O=p("sort"),E=!l((function(){if(v)return v<70;if(!(d&&d>3)){if(h)return true;if(y)return y<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2;}for(r=0;r<47;r++)g.push({k:e+r,v:n});}for(g.sort((function(t,e){return e.v-t.v})),r=0;r<g.length;r++)e=g[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return "DGBEFHACIJK"!==o}}));r({target:"Array",proto:true,forced:w||!x||!O||!E},{sort:function(t){ void 0!==t&&i(t);var e=a(this);if(E)return void 0===t?m(e):m(e,t);var n,r,o=[],l=s(e);for(r=0;r<l;r++)r in e&&b(o,e[r]);for(f(o,function(t){return function(e,n){if(void 0===n)return -1;if(void 0===e)return 1;if(void 0!==t)return +t(e,n)||0;var r=c(e),o=c(n);return r===o?0:r>o?1:-1}}(t)),n=s(o),r=0;r<n;)e[r]=o[r++];for(;r<l;)u(e,r++);return e}});},4554:function(t,e,n){var r=n(6518),o=n(8981),i=n(5610),a=n(1291),s=n(6198),u=n(4527),c=n(6837),l=n(1469),f=n(4659),p=n(4606),d=n(597)("splice"),h=Math.max,v=Math.min;r({target:"Array",proto:true,forced:!d},{splice:function(t,e){var n,r,d,y,g,m,b=o(this),w=s(b),x=i(t,w),O=arguments.length;for(0===O?n=r=0:1===O?(n=0,r=w-x):(n=O-2,r=v(h(a(e),0),w-x)),c(w+n-r),d=l(b,r),y=0;y<r;y++)(g=x+y)in b&&f(d,y,b[g]);if(u(d,r),n<r){for(y=x;y<w-r;y++)m=y+n,(g=y+r)in b?b[m]=b[g]:p(b,m);for(y=w;y>w-r+n;y--)p(b,y-1);}else if(n>r)for(y=w-r;y>x;y--)m=y+n-1,(g=y+r-1)in b?b[m]=b[g]:p(b,m);for(y=0;y<n;y++)b[y+x]=arguments[y+2];return u(b,w-r+n),d}});},739:function(t,e,n){var r=n(6518),o=n(9039),i=n(8981),a=n(2777);r({target:"Date",proto:true,arity:1,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),n=a(e,"number");return "number"!=typeof n||isFinite(n)?e.toISOString():null}});},9572:function(t,e,n){var r=n(9297),o=n(6840),i=n(3640),a=n(8227)("toPrimitive"),s=Date.prototype;r(s,a)||o(s,a,i);},2010:function(t,e,n){var r=n(3724),o=n(350).EXISTS,i=n(9504),a=n(2106),s=Function.prototype,u=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(c.exec);r&&!o&&a(s,"name",{configurable:true,get:function(){try{return l(c,u(this))[1]}catch(t){return ""}}});},3110:function(t,e,n){var r=n(6518),o=n(7751),i=n(8745),a=n(9565),s=n(9504),u=n(9039),c=n(4376),l=n(4901),f=n(5810),p=n(757),d=n(2195),h=n(655),v=n(7680),y=n(8235),g=n(3392),m=n(4495),b=n(7819),w=String,x=o("JSON","stringify"),O=s(/./.exec),E=s("".charAt),S=s("".charCodeAt),k=s("".replace),P=s("".slice),I=s([].push),C=s(1.1.toString),A=/[\uD800-\uDFFF]/g,M=/^[\uD800-\uDBFF]$/,D=/^[\uDC00-\uDFFF]$/,T=g(),N=T.length,j=!m||u((function(){var t=o("Symbol")("stringify detection");return "[null]"!==x([t])||"{}"!==x({a:t})||"{}"!==x(Object(t))})),R=u((function(){return '"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")})),L=j?function(t,e){var n=v(arguments),r=K(e);if(l(r)||void 0!==t&&!p(t))return n[1]=function(t,e){if(l(r)&&(e=a(r,this,w(t),e)),!p(e))return e},i(x,null,n)}:x,B=function(t,e,n){var r=E(n,e-1),o=E(n,e+1);return O(M,t)&&!O(D,o)||O(D,t)&&!O(M,r)?"\\u"+C(S(t,0),16):t},K=function(t){if(l(t))return t;if(c(t)){for(var e=t.length,n=[],r=0;r<e;r++){var o=t[r];"string"==typeof o?I(n,o):"number"!=typeof o&&"Number"!==d(o)&&"String"!==d(o)||I(n,h(o));}var i=n.length,a=true;return function(t,e){if(a)return a=false,e;if(c(this))return e;for(var r=0;r<i;r++)if(n[r]===t)return e}}};x&&r({target:"JSON",stat:true,arity:3,forced:j||R||!b},{stringify:function(t,e,n){var r=K(e),o=[],i=L(t,(function(t,e){var n=l(r)?a(r,this,w(t),e):e;return !b&&f(n)?T+(I(o,n.rawJSON)-1):n}),n);if("string"!=typeof i)return i;if(R&&(i=k(i,A,B)),b)return i;for(var s="",u=i.length,c=0;c<u;c++){var p=E(i,c);if('"'===p){var d=y(i,++c).end-1,h=P(i,c,d);s+=P(h,0,N)===T?o[P(h,N)]:'"'+h+'"',c=d;}else s+=p;}return s}});},2892:function(t,e,n){var r=n(6518),o=n(6395),i=n(3724),a=n(4576),s=n(9167),u=n(9504),c=n(2796),l=n(9297),f=n(3167),p=n(1625),d=n(757),h=n(2777),v=n(9039),y=n(8480).f,g=n(7347).f,m=n(4913).f,b=n(1240),w=n(3802).trim,x="Number",O=a[x],E=s[x],S=O.prototype,k=a.TypeError,P=u("".slice),I=u("".charCodeAt),C=function(t){var e,n,r,o,i,a,s,u,c=h(t,"number");if(d(c))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(e=I(c,0))||45===e){if(88===(n=I(c,2))||120===n)return NaN}else if(48===e){switch(I(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return +c}for(a=(i=P(c,2)).length,s=0;s<a;s++)if((u=I(i,s))<48||u>o)return NaN;return parseInt(i,r)}return +c},A=c(x,!O(" 0o1")||!O("0b1")||O("+0x1")),M=function(t){var e,n=arguments.length<1?0:O(function(t){var e=h(t,"number");return "bigint"==typeof e?e:C(e)}(t));return p(S,e=this)&&v((function(){b(e);}))?f(Object(n),this,M):n};M.prototype=S,A&&!o&&(S.constructor=M),r({global:true,constructor:true,wrap:true,forced:A},{Number:M});var D=function(t,e){for(var n,r=i?y(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)l(e,n=r[o])&&!l(t,n)&&m(t,n,g(e,n));};o&&E&&D(s[x],E),(A||o)&&D(s[x],O);},2637:function(t,e,n){n(6518)({target:"Number",stat:true},{isInteger:n(2087)});},9085:function(t,e,n){var r=n(6518),o=n(4213);r({target:"Object",stat:true,arity:2,forced:Object.assign!==o},{assign:o});},7427:function(t,e,n){var r=n(6518),o=n(3724),i=n(2551),a=n(9306),s=n(8981),u=n(4913);o&&r({target:"Object",proto:true,forced:i},{__defineGetter__:function(t,e){u.f(s(this),t,{get:a(e),enumerable:true,configurable:true});}});},3851:function(t,e,n){var r=n(6518),o=n(9039),i=n(5397),a=n(7347).f,s=n(3724);r({target:"Object",stat:true,forced:!s||o((function(){a(1);})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}});},1278:function(t,e,n){var r=n(6518),o=n(3724),i=n(5031),a=n(5397),s=n(7347),u=n(4659);r({target:"Object",stat:true,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),o=s.f,c=i(r),l={},f=0;c.length>f;) void 0!==(n=o(r,e=c[f++]))&&u(l,e,n);return l}});},1480:function(t,e,n){var r=n(6518),o=n(9039),i=n(298).f;r({target:"Object",stat:true,forced:o((function(){return !Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i});},9773:function(t,e,n){var r=n(6518),o=n(4495),i=n(9039),a=n(3717),s=n(8981);r({target:"Object",stat:true,forced:!o||i((function(){a.f(1);}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}});},9432:function(t,e,n){var r=n(6518),o=n(8981),i=n(1072);r({target:"Object",stat:true,forced:n(9039)((function(){i(1);}))},{keys:function(t){return i(o(t))}});},6099:function(t,e,n){var r=n(2140),o=n(6840),i=n(3179);r||o(Object.prototype,"toString",i,{unsafe:true});},825:function(t,e,n){var r=n(6518),o=n(7751),i=n(8745),a=n(566),s=n(5548),u=n(8551),c=n(34),l=n(2360),f=n(9039),p=o("Reflect","construct"),d=Object.prototype,h=[].push,v=f((function(){function t(){}return !(p((function(){}),[],t)instanceof t)})),y=!f((function(){p((function(){}));})),g=v||y;r({target:"Reflect",stat:true,forced:g,sham:g},{construct:function(t,e){s(t);var n=arguments.length<3?t:s(arguments[2]);if(u(e),y&&!v)return p(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(h,r,e),new(i(a,t,r))}var o=n.prototype,f=l(c(o)?o:d),g=i(t,f,e);return c(g)?g:f}});},4864:function(t,e,n){var r=n(3724),o=n(4576),i=n(9504),a=n(2796),s=n(3167),u=n(6699),c=n(2360),l=n(8480).f,f=n(1625),p=n(788),d=n(655),h=n(1034),v=n(8429),y=n(1056),g=n(6840),m=n(9039),b=n(9297),w=n(1181).enforce,x=n(7633),O=n(8227),E=n(3635),S=n(8814),k=O("match"),P=o.RegExp,I=P.prototype,C=o.SyntaxError,A=i(I.exec),M=i("".charAt),D=i("".replace),T=i("".indexOf),N=i("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,L=/a/g,B=new P(R)!==R,K=v.MISSED_STICKY,_=v.UNSUPPORTED_Y;if(a("RegExp",r&&(!B||K||E||S||m((function(){return L[k]=false,P(R)!==R||P(L)===L||"/a/i"!==String(P(R,"i"))}))))){for(var F=function(t,e){var n,r,o,i,a,l,v=f(I,this),y=p(t),g=void 0===e,m=[],x=t;if(!v&&y&&g&&t.constructor===F)return t;if((y||f(I,t))&&(t=t.source,g&&(e=h(x))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),x=t,E&&"dotAll"in R&&(r=!!e&&T(e,"s")>-1)&&(e=D(e,/s/g,"")),n=e,K&&"sticky"in R&&(o=!!e&&T(e,"y")>-1)&&_&&(e=D(e,/y/g,"")),S&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a=c(null),s=false,u=false,l=0,f="";r<n;r++){if("\\"===(e=M(t,r))){if(e+=M(t,++r),!u&&"\\"===M(e,1)){o+="\\x5c";continue}}else if("]"===e)s=false;else if(!s)switch(true){case "["===e:s=true;break;case "("===e:o+=e,A(j,N(t,r+1))?(r+=2,u=true,l++):"?"!==M(t,r+1)&&l++;continue;case ">"===e&&u:if(""===f||b(a,f))throw new C("Invalid capture group name");a[f]=true,i[i.length]=[f,l],u=false,f="";continue}u?f+=e:o+=e;}for(var p=0;p<i.length;p++)for(var d="\\k<"+i[p][0]+">",h="\\"+i[p][1];T(o,d)>-1;)o=D(o,d,h);return [o,i]}(t),t=i[0],m=i[1]),a=s(P(t,e),v?this:I,F),(r||o||m.length)&&(l=w(a),r&&(l.dotAll=true,l.raw=F(function(t){for(var e,n=t.length,r=0,o="",i=false;r<n;r++)"\\"!==(e=M(t,r))?i||"."!==e?("["===e?i=true:"]"===e&&(i=false),o+=e):o+="[\\s\\S]":o+=e+M(t,++r);return o}(t),n)),o&&(l.sticky=true),m.length&&(l.groups=m)),t!==x)try{u(a,"source",""===x?"(?:)":x);}catch(t){}return a},U=l(P),H=0;U.length>H;)y(F,P,U[H++]);I.constructor=F,F.prototype=I,g(o,"RegExp",F,{constructor:true});}x("RegExp");},7495:function(t,e,n){var r=n(6518),o=n(7323);r({target:"RegExp",proto:true,forced:/./.exec!==o},{exec:o});},8781:function(t,e,n){var r=n(350).PROPER,o=n(6840),i=n(8551),a=n(655),s=n(9039),u=n(1034),c="toString",l=RegExp.prototype,f=l[c],p=s((function(){return "/a/b"!==f.call({source:"a",flags:"b"})})),d=r&&f.name!==c;(p||d)&&o(l,c,(function(){var t=i(this);return "/"+a(t.source)+"/"+a(u(t))}),{unsafe:true});},1699:function(t,e,n){var r=n(6518),o=n(9504),i=n(5749),a=n(7750),s=n(655),u=n(1436),c=o("".indexOf);r({target:"String",proto:true,forced:!u("includes")},{includes:function(t){return !!~c(s(a(this)),s(i(t)),arguments.length>1?arguments[1]:void 0)}});},7764:function(t,e,n){var r=n(8183).charAt,o=n(655),i=n(1181),a=n(1088),s=n(2529),u="String Iterator",c=i.set,l=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:o(t),index:0});}),(function(){var t,e=l(this),n=e.string,o=e.index;return o>=n.length?s(void 0,true):(t=r(n,o),e.index+=t.length,s(t,false))}));},8543:function(t,e,n){var r=n(6518),o=n(9565),i=n(7476),a=n(3994),s=n(2529),u=n(7750),c=n(8014),l=n(655),f=n(8551),p=n(34),d=n(2195),h=n(788),v=n(1034),y=n(5966),g=n(6840),m=n(9039),b=n(8227),w=n(2293),x=n(7829),O=n(6682),E=n(1181),S=n(6395),k=b("matchAll"),P="RegExp String",I=P+" Iterator",C=E.set,A=E.getterFor(I),M=RegExp.prototype,D=TypeError,T=i("".indexOf),N=i("".matchAll),j=!!N&&!m((function(){N("a",/./);})),R=a((function(t,e,n,r){C(this,{type:I,regexp:t,string:e,global:n,unicode:r,done:false});}),P,(function(){var t=A(this);if(t.done)return s(void 0,true);var e=t.regexp,n=t.string,r=O(e,n);return null===r?(t.done=true,s(void 0,true)):t.global?(""===l(r[0])&&(e.lastIndex=x(n,c(e.lastIndex),t.unicode)),s(r,false)):(t.done=true,s(r,false))})),L=function(t){var e,n,r,o=f(this),i=l(t),a=w(o,RegExp),s=l(v(o));return e=new a(a===RegExp?o.source:o,s),n=!!~T(s,"g"),r=!!~T(s,"u")||!!~T(s,"v"),e.lastIndex=c(o.lastIndex),new R(e,i,n,r)};r({target:"String",proto:true,forced:j},{matchAll:function(t){var e,n,r,i,a=u(this);if(p(t)){if(h(t)&&(e=l(u(v(t))),!~T(e,"g")))throw new D("`.matchAll` does not allow non-global regexes");if(j)return N(a,t);if(void 0===(r=y(t,k))&&S&&"RegExp"===d(t)&&(r=L),r)return o(r,t,a)}else if(j)return N(a,t);return n=l(a),i=new RegExp(t,"g"),S?o(L,i,n):i[k](n)}}),S||k in M||g(M,k,L);},1761:function(t,e,n){var r=n(9565),o=n(9504),i=n(9228),a=n(8551),s=n(34),u=n(8014),c=n(655),l=n(7750),f=n(5966),p=n(7829),d=n(1034),h=n(6682),v=o("".indexOf);i("match",(function(t,e,n){return [function(e){var n=l(this),o=s(e)?f(e,t):void 0;return o?r(o,e,n):new RegExp(e)[t](c(n))},function(t){var r=a(this),o=c(t),i=n(e,r,o);if(i.done)return i.value;var s=c(d(r));if(!~v(s,"g"))return h(r,o);var l=!!~v(s,"u")||!!~v(s,"v");r.lastIndex=0;for(var f,y=[],g=0;null!==(f=h(r,o));){var m=c(f[0]);y[g]=m,""===m&&(r.lastIndex=p(o,u(r.lastIndex),l)),g++;}return 0===g?null:y}]}));},5440:function(t,e,n){var r=n(8745),o=n(9565),i=n(9504),a=n(9228),s=n(9039),u=n(8551),c=n(4901),l=n(34),f=n(1291),p=n(8014),d=n(655),h=n(7750),v=n(7829),y=n(5966),g=n(2478),m=n(1034),b=n(6682),w=n(8227)("replace"),x=Math.max,O=Math.min,E=i([].concat),S=i([].push),k=i("".indexOf),P=i("".slice),I="$0"==="a".replace(/./,"$0"),C=!!/./[w]&&""===/./[w]("a","$0");a("replace",(function(t,e,n){var i=C?"$":"$0";return [function(t,n){var r=h(this),i=l(t)?y(t,w):void 0;return i?o(i,t,r,n):o(e,d(r),t,n)},function(t,o){var a=u(this),s=d(t),l=c(o);l||(o=d(o));var h=d(m(a));if("string"==typeof o&&!~k(o,i)&&!~k(o,"$<")&&!~k(h,"y")){var y=n(e,a,s,o);if(y.done)return y.value}var w,I=!!~k(h,"g");I&&(w=!!~k(h,"u")||!!~k(h,"v"),a.lastIndex=0);for(var C,A=[];null!==(C=b(a,s))&&(S(A,C),I);)""===d(C[0])&&(a.lastIndex=v(s,p(a.lastIndex),w));for(var M,D="",T=0,N=0;N<A.length;N++){for(var j,R=d((C=A[N])[0]),L=x(O(f(C.index),s.length),0),B=[],K=1;K<C.length;K++)S(B,void 0===(M=C[K])?M:String(M));var _=C.groups;if(l){var F=E([R],B,L,s);void 0!==_&&S(F,_),j=d(r(o,void 0,F));}else j=g(R,s,L,B,_,o);L>=T&&(D+=P(s,T,L)+j,T=L+R.length);}return D+P(s,T)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!I||C);},744:function(t,e,n){var r=n(9565),o=n(9504),i=n(9228),a=n(8551),s=n(34),u=n(7750),c=n(2293),l=n(7829),f=n(8014),p=n(655),d=n(5966),h=n(1034),v=n(6682),y=n(8429),g=n(9039),m=y.UNSUPPORTED_Y,b=Math.min,w=o([].push),x=o("".slice),O=o("".indexOf),E=!g((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),S="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(t,e,n){var o="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r(e,this,t,n)}:e;return [function(e,n){var i=u(this),a=s(e)?d(e,t):void 0;return a?r(a,e,i,n):r(o,p(i),e,n)},function(t,r){var i=a(this),s=p(t);if(!S){var u=n(o,i,s,r,o!==e);if(u.done)return u.value}var d=c(i,RegExp),y=p(h(i)),g=!!~O(y,"u")||!!~O(y,"v");m?~O(y,"g")||(y+="g"):~O(y,"y")||(y+="y");var E=new d(m?"^(?:"+i.source+")":i,y),k=void 0===r?4294967295:r>>>0;if(0===k)return [];if(0===s.length)return null===v(E,s)?[s]:[];for(var P=0,I=0,C=[];I<s.length;){E.lastIndex=m?0:I;var A,M=v(E,m?x(s,I):s);if(null===M||(A=b(f(E.lastIndex+(m?I:0)),s.length))===P)I=l(s,I,g);else {if(w(C,x(s,P,I)),C.length===k)return C;for(var D=1;D<=M.length-1;D++)if(w(C,M[D]),C.length===k)return C;I=P=A;}}return w(C,x(s,P)),C}]}),S||!E,m);},2762:function(t,e,n){var r=n(6518),o=n(3802).trim;r({target:"String",proto:true,forced:n(706)("trim")},{trim:function(){return o(this)}});},6761:function(t,e,n){var r=n(6518),o=n(4576),i=n(9565),a=n(9504),s=n(6395),u=n(3724),c=n(4495),l=n(9039),f=n(9297),p=n(1625),d=n(8551),h=n(5397),v=n(6969),y=n(655),g=n(6980),m=n(2360),b=n(1072),w=n(8480),x=n(298),O=n(3717),E=n(7347),S=n(4913),k=n(6801),P=n(8773),I=n(6840),C=n(2106),A=n(5745),M=n(6119),D=n(421),T=n(3392),N=n(8227),j=n(1951),R=n(511),L=n(8242),B=n(687),K=n(1181),_=n(9213).forEach,F=M("hidden"),U="Symbol",H="prototype",$=K.set,G=K.getterFor(U),V=Object[H],z=o.Symbol,J=z&&z[H],Y=o.RangeError,W=o.TypeError,q=o.QObject,X=E.f,Q=S.f,Z=x.f,tt=P.f,et=a([].push),nt=A("symbols"),rt=A("op-symbols"),ot=A("wks"),it=!q||!q[H]||!q[H].findChild,at=function(t,e,n){var r=X(V,e);return r&&delete V[e],Q(t,e,n),r&&t!==V&&Q(V,e,r),t},st=u&&l((function(){return 7!==m(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?at:Q,ut=function(t,e){var n=nt[t]=m(J);return $(n,{type:U,tag:t,description:e}),u||(n.description=e),n},ct=function(t,e,n){t===V&&ct(rt,e,n),d(t);var r=v(e);return d(n),f(nt,r)?(("enumerable"in n?!n.enumerable:!f(t,r)||f(t,F)&&t[F][r])?(f(t,F)||Q(t,F,g(1,m(null))),t[F][r]=true):(f(t,F)&&t[F][r]&&(t[F][r]=false),n=m(n,{enumerable:g(0,false)})),st(t,r,n)):Q(t,r,n)},lt=function(t,e){d(t);var n=h(e),r=b(n).concat(ht(n));return _(r,(function(e){u&&!i(ft,n,e)||ct(t,e,n[e]);})),t},ft=function(t){var e=v(t),n=i(tt,this,e);return !(this===V&&f(nt,e)&&!f(rt,e))&&(!(n||!f(this,e)||!f(nt,e)||f(this,F)&&this[F][e])||n)},pt=function(t,e){var n=h(t),r=v(e);if(n!==V||!f(nt,r)||f(rt,r)){var o=X(n,r);return !o||!f(nt,r)||f(n,F)&&n[F][r]||(o.enumerable=true),o}},dt=function(t){var e=Z(h(t)),n=[];return _(e,(function(t){f(nt,t)||f(D,t)||et(n,t);})),n},ht=function(t){var e=t===V,n=Z(e?rt:h(t)),r=[];return _(n,(function(t){!f(nt,t)||e&&!f(V,t)||et(r,nt[t]);})),r};c||(z=function(){if(p(J,this))throw new W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=T(t),n=function(t){var r=void 0===this?o:this;r===V&&i(n,rt,t),f(r,F)&&f(r[F],e)&&(r[F][e]=false);var a=g(1,t);try{st(r,e,a);}catch(t){if(!(t instanceof Y))throw t;at(r,e,a);}};return u&&it&&st(V,e,{configurable:true,set:n}),ut(e,t)},I(J=z[H],"toString",(function(){return G(this).tag})),I(z,"withoutSetter",(function(t){return ut(T(t),t)})),P.f=ft,S.f=ct,k.f=lt,E.f=pt,w.f=x.f=dt,O.f=ht,j.f=function(t){return ut(N(t),t)},u&&(C(J,"description",{configurable:true,get:function(){return G(this).description}}),s||I(V,"propertyIsEnumerable",ft,{unsafe:true}))),r({global:true,constructor:true,wrap:true,forced:!c,sham:!c},{Symbol:z}),_(b(ot),(function(t){R(t);})),r({target:U,stat:true,forced:!c},{useSetter:function(){it=true;},useSimple:function(){it=false;}}),r({target:"Object",stat:true,forced:!c,sham:!u},{create:function(t,e){return void 0===e?m(t):lt(m(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:pt}),r({target:"Object",stat:true,forced:!c},{getOwnPropertyNames:dt}),L(),B(z,U),D[F]=true;},9463:function(t,e,n){var r=n(6518),o=n(3724),i=n(4576),a=n(9565),s=n(9504),u=n(9297),c=n(4901),l=n(1625),f=n(655),p=n(2106),d=n(7740),h=i.Symbol,v=h&&h.prototype;if(o&&c(h)&&(!("description"in v)||void 0!==h().description)){var y={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=l(v,this)?new h(t):void 0===t?h():h(t);return ""===t&&(y[e]=true),e};d(g,h);var m=g.for;g.for={for:function(t){var e=f(t),n=a(m,this,e);return ""===e&&(y[n]=true),n}}.for,g.prototype=v,v.constructor=g;var b="Symbol(description detection)"===String(h("description detection")),w=s(v.valueOf),x=s(v.toString),O=/^Symbol\((.*)\)[^)]+$/,E=s("".replace),S=s("".slice);p(v,"description",{configurable:true,get:function(){var t=w(this);if(u(y,t))return "";var e=x(t),n=b?S(e,7,-1):E(e,O,"$1");return ""===n?void 0:n}}),r({global:true,constructor:true,forced:true},{Symbol:g});}},1510:function(t,e,n){var r=n(6518),o=n(7751),i=n(9297),a=n(655),s=n(5745),u=n(1296),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:true,forced:!u},{for:function(t){var e=a(t);if(i(c,e))return c[e];var n=o("Symbol")(e);return c[e]=n,l[n]=e,n}});},2259:function(t,e,n){n(511)("iterator");},2675:function(t,e,n){n(6761),n(1510),n(7812),n(3110),n(9773);},7812:function(t,e,n){var r=n(6518),o=n(9297),i=n(757),a=n(6823),s=n(5745),u=n(1296),c=s("symbol-to-string-registry");r({target:"Symbol",stat:true,forced:!u},{keyFor:function(t){if(!i(t))throw new TypeError(a(t)+" is not a symbol");if(o(c,t))return c[t]}});},5700:function(t,e,n){var r=n(511),o=n(8242);r("toPrimitive"),o();},8344:function(t,e,n){n(8543);},3500:function(t,e,n){var r=n(4576),o=n(7400),i=n(9296),a=n(235),s=n(6699),u=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a);}catch(e){t.forEach=a;}};for(var c in o)o[c]&&u(r[c]&&r[c].prototype);u(i);},2953:function(t,e,n){var r=n(4576),o=n(7400),i=n(9296),a=n(3792),s=n(6699),u=n(687),c=n(8227)("iterator"),l=a.values,f=function(t,e){if(t){if(t[c]!==l)try{s(t,c,l);}catch(e){t[c]=l;}if(u(t,e,true),o[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n]);}catch(e){t[n]=a[n];}}};for(var p in o)f(r[p]&&r[p].prototype,p);f(i,"DOMTokenList");}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:true,get:e[r]});},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:true});};var r={};function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return "Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false,r.configurable=true,"value"in r&&(r.writable=true),Object.defineProperty(t,l(r.key),r);}}function c(t,e,n){return (e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==s(e)?e:e+""}n.r(r),n.d(r,{SimpleKeyboard:function(){return T},default:function(){return N}}),n(5276),n(8598),n(4782),n(4554),n(2010),n(7427),n(6099),n(7495),n(8781),n(5440),n(744),n(2762),"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this);}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",n="prototype",r=t.Element[n],o=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return -1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e;},u=function(t,e){if(""===e)throw new s("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString());};},l=c[n]=[],f=function(){return new c(this)};if(s[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return ~u(this,t+"")},l.add=function(){var t,e=arguments,n=0,r=e.length,o=false;do{~u(this,t=e[n]+"")||(this.push(t),o=true);}while(++n<r);o&&this._updateClassName();},l.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=false;do{for(e=u(this,t=n[r]+"");~e;)this.splice(e,1),i=true,e=u(this,t);}while(++r<o);i&&this._updateClassName();},l.toggle=function(t,e){var n=this.contains(t),r=n?true!==e&&"remove":false!==e&&"add";return r&&this[r](t),true===e||false===e?e:!n},l.replace=function(t,e){var n=u(t+"");~n&&(this.splice(n,1,e),this._updateClassName());},l.toString=function(){return this.join(" ")},o.defineProperty){var p={get:f,enumerable:true,configurable:true};try{o.defineProperty(r,e,p);}catch(t){ void 0!==t.number&&-2146823252!==t.number||(p.enumerable=false,o.defineProperty(r,e,p));}}else o[n].__defineGetter__&&r.__defineGetter__(e,f);}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,r=arguments.length;for(n=0;n<r;n++)t=arguments[n],e.call(this,t);};};e("add"),e("remove");}if(t.classList.toggle("c3",false),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)};}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)));}),t=null;}()),n(2675),n(9463),n(2259),n(5700),n(8706),n(2008),n(3418),n(4423),n(3792),n(2062),n(6910),n(739),n(9572),n(2892),n(9085),n(3851),n(1278),n(9432),n(4864),n(1699),n(7764),n(8344),n(3500),n(2953),n(2712),n(2637),n(1480),n(825),n(1761);var f=function(){return t=function t(e){var n=e.getOptions,r=e.getCaretPosition,o=e.getCaretPositionEnd,i=e.dispatch;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,"getOptions",void 0),c(this,"getCaretPosition",void 0),c(this,"getCaretPositionEnd",void 0),c(this,"dispatch",void 0),c(this,"maxLengthReached",void 0),c(this,"isStandardButton",(function(t){return t&&!("{"===t[0]&&"}"===t[t.length-1])})),this.getOptions=n,this.getCaretPosition=r,this.getCaretPositionEnd=o,this.dispatch=i,t.bindMethods(t,this);},e=[{key:"getButtonType",value:function(t){return t.includes("{")&&t.includes("}")&&"{//}"!==t?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(t){var e=this.getButtonType(t),n=t.replace("{","").replace("}",""),r="";return "standardBtn"!==e&&(r=" hg-button-".concat(n)),"hg-".concat(e).concat(r)}},{key:"getDefaultDiplay",value:function(){return {"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(t,e){return (e=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),e):e||this.getDefaultDiplay())[t]||t}},{key:"getUpdatedInput",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this.getOptions(),a=[n,r,o],s=e;return ("{bksp}"===t||"{backspace}"===t)&&s.length>0?s=this.removeAt.apply(this,[s].concat(a)):("{delete}"===t||"{forwarddelete}"===t)&&s.length>0?s=this.removeForwardsAt.apply(this,[s].concat(a)):"{space}"===t?s=this.addStringAt.apply(this,[s," "].concat(a)):"{tab}"!==t||"boolean"==typeof i.tabCharOnTab&&false===i.tabCharOnTab?"{enter}"!==t&&"{numpadenter}"!==t||!i.newLineOnEnter?t.includes("numpad")&&Number.isInteger(Number(t[t.length-2]))?s=this.addStringAt.apply(this,[s,t[t.length-2]].concat(a)):"{numpaddivide}"===t?s=this.addStringAt.apply(this,[s,"/"].concat(a)):"{numpadmultiply}"===t?s=this.addStringAt.apply(this,[s,"*"].concat(a)):"{numpadsubtract}"===t?s=this.addStringAt.apply(this,[s,"-"].concat(a)):"{numpadadd}"===t?s=this.addStringAt.apply(this,[s,"+"].concat(a)):"{numpaddecimal}"===t?s=this.addStringAt.apply(this,[s,"."].concat(a)):"{"===t||"}"===t?s=this.addStringAt.apply(this,[s,t].concat(a)):t.includes("{")||t.includes("}")||(s=this.addStringAt.apply(this,[s,t].concat(a))):s=this.addStringAt.apply(this,[s,"\n"].concat(a)):s=this.addStringAt.apply(this,[s,"\t"].concat(a)),i.debug&&console.log("Input will be: "+s),s}},{key:"updateCaretPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.updateCaretPosAction(t,e);this.dispatch((function(t){t.setCaretPosition(n);}));}},{key:"updateCaretPosAction",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getOptions(),r=this.getCaretPosition();return null!=r&&(e?r>0&&(r-=t):r+=t),n.debug&&console.log("Caret at:",r),r}},{key:"addStringAt",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return r||0===r?(n=[t.slice(0,r),e,t.slice(o)].join(""),this.isMaxLengthReached()||i&&this.updateCaretPos(e.length)):n=t+e,n}},{key:"removeAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===r)return t;if(n===r){var i=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&n>=0?t.substring(n-2,n).match(i)?(e=t.substr(0,n-2)+t.substr(n),o&&this.updateCaretPos(2,true)):(e=t.substr(0,n-1)+t.substr(n),o&&this.updateCaretPos(1,true)):t.slice(-2).match(i)?(e=t.slice(0,-2),o&&this.updateCaretPos(2,true)):(e=t.slice(0,-1),o&&this.updateCaretPos(1,true));}else e=t.slice(0,n)+t.slice(r),o&&this.dispatch((function(t){t.setCaretPosition(n);}));return e}},{key:"removeForwardsAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null!=t&&t.length&&null!==n?(n===r?e=t.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?t.substr(0,n)+t.substr(n+2):t.substr(0,n)+t.substr(n+1):(e=t.slice(0,n)+t.slice(r),o&&this.dispatch((function(t){t.setCaretPosition(n);}))),e):t}},{key:"handleMaxLength",value:function(t,e){var n=this.getOptions(),r=n.maxLength,o=t[n.inputName||"default"],i=e.length-1>=r;if(e.length<=o.length)return false;if(Number.isInteger(r))return n.debug&&console.log("maxLength (num) reached:",i),i?(this.maxLengthReached=true,true):(this.maxLengthReached=false,false);if("object"===s(r)){var a=e.length-1>=r[n.inputName||"default"];return n.debug&&console.log("maxLength (obj) reached:",a),a?(this.maxLengthReached=true,true):(this.maxLengthReached=false,false)}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return "ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return !!window.PointerEvent}},{key:"camelCase",value:function(t){return t?t.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(t,e){return e.length?t+e[0].toUpperCase()+e.slice(1):t})):""}},{key:"chunkArray",value:function(t,e){return o(Array(Math.ceil(t.length/e))).map((function(n,r){return t.slice(e*r,e+e*r)}))}},{key:"escapeRegex",value:function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(t,e){var n=t,r=e.indexOf("");return r<t&&-1!=r&&n--,e.indexOf("")<t&&-1!=r&&n--,n<0?0:n}},{key:"isConstructor",value:function(t){try{Reflect.construct(String,[],t);}catch(t){return false}return true}}],n=[{key:"bindMethods",value:function(t,e){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e){n&&(t=n);var r=0,o=function(){};return {s:o,n:function(){return r>=t.length?{done:true}:{done:false,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=true,u=false;return {s:function(){n=n.call(t);},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=true,a=t;},f:function(){try{s||null==n.return||n.return();}finally{if(u)throw a}}}}(Object.getOwnPropertyNames(t.prototype));try{for(r.s();!(n=r.n()).done;){var o=n.value;"constructor"===o||"bindMethods"===o||(e[o]=e[o].bind(e));}}catch(t){r.e(t);}finally{r.f();}}}],e&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:false}),t;var t,e,n;}();c(f,"noop",(function(){}));var p=f;function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false,r.configurable=true,"value"in r&&(r.writable=true),Object.defineProperty(t,y(r.key),r);}}function v(t,e,n){return (e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==d(e)?e:e+""}var g=function(){return t=function t(e){var n=this,r=e.dispatch,o=e.getOptions;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,"getOptions",void 0),v(this,"dispatch",void 0),v(this,"isModifierKey",(function(t){return t.altKey||t.ctrlKey||t.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.code||t.key||n.keyCodeToKey(null==t?void 0:t.keyCode))})),this.dispatch=r,this.getOptions=o,p.bindMethods(t,this);},e=[{key:"handleHighlightKeyDown",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch((function(r){var o,i,a=r.getButtonElement(n),s=r.getButtonElement("{".concat(n,"}"));if(a)o=a,i=n;else {if(!s)return;o=s,i="{".concat(n,"}");}var u,c,l,f,p=function(t){t.style.background=e.physicalKeyboardHighlightBgColor||"#dadce4",t.style.color=e.physicalKeyboardHighlightTextColor||"black";};if(o)if(Array.isArray(o)){if(o.forEach((function(t){return p(t)})),e.physicalKeyboardHighlightPress)if(e.physicalKeyboardHighlightPressUsePointerEvents)null===(u=o[0])||void 0===u||null===(c=u.onpointerdown)||void 0===c||c.call(u,t);else if(e.physicalKeyboardHighlightPressUseClick){var d;null===(d=o[0])||void 0===d||d.click();}else r.handleButtonClicked(i,t);}else p(o),e.physicalKeyboardHighlightPress&&(e.physicalKeyboardHighlightPressUsePointerEvents?null===(l=o)||void 0===l||null===(f=l.onpointerdown)||void 0===f||f.call(l,t):e.physicalKeyboardHighlightPressUseClick?o.click():r.handleButtonClicked(i,t));}));}},{key:"handleHighlightKeyUp",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch((function(r){var o,i,a,s=r.getButtonElement(n)||r.getButtonElement("{".concat(n,"}")),u=function(t){t.removeAttribute&&t.removeAttribute("style");};s&&(Array.isArray(s)?(s.forEach((function(t){return u(t)})),e.physicalKeyboardHighlightPressUsePointerEvents&&(null===(o=s[0])||void 0===o||null===(i=o.onpointerup)||void 0===i||i.call(o,t))):(u(s),e.physicalKeyboardHighlightPressUsePointerEvents&&(null==s||null===(a=s.onpointerup)||void 0===a||a.call(s,t))));}));}},{key:"getSimpleKeyboardLayoutKey",value:function(t){var e,n="",r=t.code||t.key||this.keyCodeToKey(null==t?void 0:t.keyCode);return (n=null!=r&&r.includes("Numpad")||null!=r&&r.includes("Shift")||null!=r&&r.includes("Space")||null!=r&&r.includes("Backspace")||null!=r&&r.includes("Control")||null!=r&&r.includes("Alt")||null!=r&&r.includes("Meta")?t.code||"":t.key||this.keyCodeToKey(null==t?void 0:t.keyCode)||"").length>1?null===(e=n)||void 0===e?void 0:e.toLowerCase():n}},{key:"keyCodeToKey",value:function(t){return {8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[t]||""}}],e&&h(t.prototype,e),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:false}),t;var t,e,n;}();function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false,r.configurable=true,"value"in r&&(r.writable=true),Object.defineProperty(t,x(r.key),r);}}function w(t,e,n){return (e=x(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}function x(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==m(e)?e:e+""}var O=function(){return t=function t(e){var n=e.utilities,r=e.options;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),w(this,"utilities",void 0),w(this,"options",void 0),w(this,"candidateBoxElement",void 0),w(this,"pageIndex",0),w(this,"pageSize",void 0),this.utilities=n,this.options=r,p.bindMethods(t,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5;},e=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0);}},{key:"show",value:function(t){var e=this,n=t.candidateValue,r=t.targetElement,o=t.onSelect;if(n&&n.length){var i=this.utilities.chunkArray(n.split(" "),this.pageSize);this.renderPage({candidateListPages:i,targetElement:r,pageIndex:this.pageIndex,nbPages:i.length,onItemSelected:function(t,n){o(t,n),e.destroy();}});}}},{key:"renderPage",value:function(t){var e,n=this,r=t.candidateListPages,o=t.targetElement,i=t.pageIndex,a=t.nbPages,s=t.onItemSelected;null===(e=this.candidateBoxElement)||void 0===e||e.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var u=document.createElement("ul");u.className="hg-candidate-box-list",r[i].forEach((function(t){var e,r=document.createElement("li"),o=function(){var t=new(n.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(t,"target",{value:r}),t};r.className="hg-candidate-box-list-item",r.innerHTML=(null===(e=n.options.display)||void 0===e?void 0:e[t])||t,n.options.useTouchEvents?r.ontouchstart=function(e){return s(t,e||o())}:r.onclick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o();return s(t,e)},u.appendChild(r);}));var c=i>0,l=document.createElement("div");l.classList.add("hg-candidate-box-prev"),c&&l.classList.add("hg-candidate-box-btn-active");var f=function(){c&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i-1,nbPages:a,onItemSelected:s});};this.options.useTouchEvents?l.ontouchstart=f:l.onclick=f,this.candidateBoxElement.appendChild(l),this.candidateBoxElement.appendChild(u);var p=i<a-1,d=document.createElement("div");d.classList.add("hg-candidate-box-next"),p&&d.classList.add("hg-candidate-box-btn-active");var h=function(){p&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i+1,nbPages:a,onItemSelected:s});};this.options.useTouchEvents?d.ontouchstart=h:d.onclick=h,this.candidateBoxElement.appendChild(d),o.prepend(this.candidateBoxElement);}}],e&&b(t.prototype,e),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:false}),t;var t,e,n;}(),E=O;function S(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return k(t,e);var n={}.toString.call(t).slice(8,-1);return "Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r);}return n}function C(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false,r.configurable=true,"value"in r&&(r.writable=true),Object.defineProperty(t,M(r.key),r);}}function A(t,e,n){return (e=M(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}function M(t){var e=function(t,e){if("object"!=P(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==P(e)?e:e+""}var D=function(){return t=function t(e,n){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),A(this,"input",void 0),A(this,"options",void 0),A(this,"utilities",void 0),A(this,"caretPosition",void 0),A(this,"caretPositionEnd",void 0),A(this,"keyboardDOM",void 0),A(this,"keyboardPluginClasses",void 0),A(this,"keyboardDOMClass",void 0),A(this,"buttonElements",void 0),A(this,"currentInstanceName",void 0),A(this,"allKeyboardInstances",void 0),A(this,"keyboardInstanceNames",void 0),A(this,"isFirstKeyboardInstance",void 0),A(this,"physicalKeyboard",void 0),A(this,"modules",void 0),A(this,"activeButtonClass",void 0),A(this,"holdInteractionTimeout",void 0),A(this,"holdTimeout",void 0),A(this,"isMouseHold",void 0),A(this,"initialized",void 0),A(this,"candidateBox",void 0),A(this,"keyboardRowsDOM",void 0),A(this,"defaultName","default"),A(this,"activeInputElement",null),A(this,"handleParams",(function(t,e){var n,r,o;if("string"==typeof t)n=t.split(".").join(""),r=document.querySelector(".".concat(n)),o=e;else if(t instanceof HTMLDivElement){if(!t.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");n=t.className.split(" ")[0],r=t,o=e;}else n="simple-keyboard",r=document.querySelector(".".concat(n)),o=t;return {keyboardDOMClass:n,keyboardDOM:r,options:o}})),A(this,"getOptions",(function(){return r.options})),A(this,"getCaretPosition",(function(){return r.caretPosition})),A(this,"getCaretPositionEnd",(function(){return r.caretPositionEnd})),A(this,"registerModule",(function(t,e){r.modules[t]||(r.modules[t]={}),e(r.modules[t]);})),A(this,"getKeyboardClassString",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return [r.keyboardDOMClass].concat(e).filter((function(t){return !!t})).join(" ")})),"undefined"!=typeof window){var o=this.handleParams(e,n),i=o.keyboardDOMClass,a=o.keyboardDOM,s=o.options,u=void 0===s?{}:s;this.utilities=new p({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=a,this.options=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),true).forEach((function(e){A(t,e,n[e]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));}));}return t}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:false,enableLayoutCandidates:true,excludeFromLayout:{}},u),this.keyboardPluginClasses="",p.bindMethods(t,this);var c=this.options.inputName,l=void 0===c?this.defaultName:c;if(this.input={},this.input[l]="",this.keyboardDOMClass=i,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new g({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new E({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(i,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules();}},e=[{key:"setCaretPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;this.caretPosition=t,this.caretPositionEnd=e;}},{key:"getInputCandidates",value:function(t){var e=this,n=this.options,r=n.layoutCandidates,o=n.layoutCandidatesCaseSensitiveMatch;if(!r||"object"!==P(r))return {};var i=Object.keys(r).filter((function(n){var r=t.substring(0,e.getCaretPositionEnd()||0)||t,i=new RegExp("".concat(e.utilities.escapeRegex(n),"$"),o?"g":"gi");return !!S(r.matchAll(i)).length}));if(i.length>1){var a=i.sort((function(t,e){return e.length-t.length}))[0];return {candidateKey:a,candidateValue:r[a]}}if(i.length){var s=i[0];return {candidateKey:s,candidateValue:r[s]}}return {}}},{key:"showCandidatesBox",value:function(t,e,n){var r=this;this.candidateBox&&this.candidateBox.show({candidateValue:e,targetElement:n,onSelect:function(e,n){var o=r.options,i=o.layoutCandidatesCaseSensitiveMatch,a=o.disableCandidateNormalization,s=o.enableLayoutCandidatesKeyPress,u=e;a||(u=e.normalize("NFD")),"function"==typeof r.options.beforeInputUpdate&&r.options.beforeInputUpdate(r);var c=r.getInput(r.options.inputName,true),l=r.getCaretPositionEnd()||0,f=c.substring(0,l||0)||c,p=new RegExp("".concat(r.utilities.escapeRegex(t),"$"),i?"g":"gi"),d=f.replace(p,u),h=c.replace(f,d),v=d.length-f.length,y=(l||c.length)+v;y<0&&(y=0),r.setInput(h,r.options.inputName,true),r.setCaretPosition(y),s&&"function"==typeof r.options.onKeyPress&&r.options.onKeyPress(e,n),"function"==typeof r.options.onChange&&r.options.onChange(r.getInput(r.options.inputName,true),n),"function"==typeof r.options.onChangeAll&&r.options.onChangeAll(r.getAllInputs(),n);}});}},{key:"handleButtonClicked",value:function(t,e){var n=this.options,r=n.inputName,o=void 0===r?this.defaultName:r,i=n.debug;if("{//}"!==t){this.input[o]||(this.input[o]=""),"function"==typeof this.options.beforeInputUpdate&&this.options.beforeInputUpdate(this);var a=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(t)&&this.activeInputElement&&this.input[o]&&this.input[o]===a&&0===this.caretPosition&&this.caretPositionEnd===a.length)return this.setInput("",this.options.inputName,true),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(t,e);if("function"==typeof this.options.onKeyPress&&this.options.onKeyPress(t,e),this.input[o]!==a&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(a))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,a))return;var s=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd,true);if(this.setInput(s,this.options.inputName,true),i&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),null==e?void 0:e.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,true),e),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs(),e),null!=e&&e.target&&this.options.enableLayoutCandidates){var u,c=this.getInputCandidates(a),l=c.candidateKey,f=c.candidateValue;l&&f?this.showCandidatesBox(l,f,this.keyboardDOM):null===(u=this.candidateBox)||void 0===u||u.destroy();}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),i&&console.log("Key pressed:",t);}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(t){this.options.syncInstanceInputs?this.dispatch((function(e){e.isMouseHold=t;})):this.isMouseHold=t;}},{key:"handleButtonMouseDown",value:function(t,e){var n=this;e&&(this.options.preventMouseDownDefault&&e.preventDefault(),this.options.stopMouseDownPropagation&&e.stopPropagation(),e.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(true),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout((function(){(n.getMouseHold()&&(!t.includes("{")&&!t.includes("}")||"{delete}"===t||"{backspace}"===t||"{bksp}"===t||"{space}"===t||"{tab}"===t)||"{arrowright}"===t||"{arrowleft}"===t||"{arrowup}"===t||"{arrowdown}"===t)&&(n.options.debug&&console.log("Button held:",t),n.handleButtonHold(t)),clearTimeout(n.holdTimeout);}),500));}},{key:"handleButtonMouseUp",value:function(t,e){var n=this;e&&(this.options.preventMouseUpDefault&&e.preventDefault&&e.preventDefault(),this.options.stopMouseUpPropagation&&e.stopPropagation&&e.stopPropagation(),!(e.target===this.keyboardDOM||e.target&&this.keyboardDOM.contains(e.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(e.target===this.candidateBox.candidateBoxElement||e.target&&this.candidateBox.candidateBoxElement.contains(e.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(t){t.classList.remove(n.activeButtonClass);})),this.setMouseHold(false),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),t&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(t,e);}},{key:"handleKeyboardContainerMouseDown",value:function(t){this.options.preventMouseDownDefault&&t.preventDefault();}},{key:"handleButtonHold",value:function(t){var e=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){e.getMouseHold()?(e.handleButtonClicked(t),e.handleButtonHold(t)):clearTimeout(e.holdInteractionTimeout);}),100);}},{key:"syncInstanceInputs",value:function(){var t=this;this.dispatch((function(e){e.replaceInput(t.input),e.setCaretPosition(t.caretPosition,t.caretPositionEnd);}));}},{key:"clearInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName;this.input[t]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs();}},{key:"getInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.options.syncInstanceInputs&&!e&&this.syncInstanceInputs(),this.options.rtl?""+this.input[t].replace("","").replace("","")+"":this.input[t]}},{key:"getAllInputs",value:function(){var t=this,e={};return Object.keys(this.input).forEach((function(n){e[n]=t.getInput(n,true);})),e}},{key:"setInput",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0;this.input[e]=t,!n&&this.options.syncInstanceInputs&&this.syncInstanceInputs();}},{key:"replaceInput",value:function(t){this.input=t;}},{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.changedOptions(t);this.options=Object.assign(this.options,t),e.length&&(this.options.debug&&console.log("changedOptions",e),this.onSetOptions(e),this.render());}},{key:"changedOptions",value:function(t){var e=this;return Object.keys(t).filter((function(n){return JSON.stringify(t[n])!==JSON.stringify(e.options[n])}))}},{key:"onSetOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(t.includes("layoutCandidatesPageSize")||t.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new E({utilities:this.utilities,options:this.options}));}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={};}},{key:"dispatch",value:function(t){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach((function(e){t(window.SimpleKeyboardInstances[e],e);}))}},{key:"addButtonTheme",value:function(t,e){var n=this;e&&t&&(t.split(" ").forEach((function(r){e.split(" ").forEach((function(e){n.options.buttonTheme||(n.options.buttonTheme=[]);var o=false;n.options.buttonTheme.map((function(t){if(null!=t&&t.class.split(" ").includes(e)){o=true;var n=t.buttons.split(" ");n.includes(r)||(o=true,n.push(r),t.buttons=n.join(" "));}return t})),o||n.options.buttonTheme.push({class:e,buttons:t});}));})),this.render());}},{key:"removeButtonTheme",value:function(t,e){var n=this;if(!t&&!e)return this.options.buttonTheme=[],void this.render();t&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(t.split(" ").forEach((function(t){var r;null===(r=n.options)||void 0===r||null===(r=r.buttonTheme)||void 0===r||r.map((function(r,o){if(r&&e&&e.includes(r.class)||!e){var i,a,s=null===(i=r)||void 0===i?void 0:i.buttons.split(" ").filter((function(e){return e!==t}));r&&null!=s&&s.length?r.buttons=s.join(" "):(null===(a=n.options.buttonTheme)||void 0===a||a.splice(o,1),r=null);}return r}));})),this.render());}},{key:"getButtonElement",value:function(t){var e,n=this.buttonElements[t];return n&&(e=n.length>1?n:n[0]),e}},{key:"inputPatternIsValid",value:function(t){var e,n=this.options.inputPattern;if((e=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&t){var r=e.test(t);return this.options.debug&&console.log('inputPattern ("'.concat(e,'"): ').concat(r?"passed":"did not pass!")),r}return true}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.addEventListener("keyup",this.handleKeyUp,e),document.addEventListener("keydown",this.handleKeyDown,e),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect);}}},{key:"handleKeyUp",value:function(t){this.caretEventHandler(t),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(t);}},{key:"handleKeyDown",value:function(t){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(t);}},{key:"handleMouseUp",value:function(t){this.caretEventHandler(t);}},{key:"handleTouchEnd",value:function(t){this.caretEventHandler(t);}},{key:"handleSelect",value:function(t){this.caretEventHandler(t);}},{key:"handleSelectionChange",value:function(t){navigator.userAgent.includes("Firefox")||this.caretEventHandler(t);}},{key:"caretEventHandler",value:function(t){var e,n=this;t.target.tagName&&(e=t.target.tagName.toLowerCase()),this.dispatch((function(r){var o=t.target===r.keyboardDOM||t.target&&r.keyboardDOM.contains(t.target);if(n.options.syncInstanceInputs&&Array.isArray(t.path)&&(o=t.path.some((function(t){var e;return null==t||null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-skInstance")}))),("textarea"===e||"input"===e&&["text","search","url","tel","password"].includes(t.target.type))&&!r.options.disableCaretPositioning){var i=t.target.selectionStart,a=t.target.selectionEnd;r.options.rtl&&(i=r.utilities.getRtlOffset(i,r.getInput()),a=r.utilities.getRtlOffset(a,r.getInput())),r.setCaretPosition(i,a),r.activeInputElement=t.target,r.options.debug&&console.log("Caret at: ",r.getCaretPosition(),r.getCaretPositionEnd(),t&&t.target.tagName.toLowerCase(),"(".concat(r.keyboardDOMClass,")"),null==t?void 0:t.type);}else !r.options.disableCaretPositioning&&o||"selectionchange"===(null==t?void 0:t.type)||(r.setCaretPosition(null),r.activeInputElement=null,r.options.debug&&console.log('Caret position reset due to "'.concat(null==t?void 0:t.type,'" event'),t));}));}},{key:"recurseButtons",value:function(t){var e=this;t&&Object.keys(this.buttonElements).forEach((function(n){return e.buttonElements[n].forEach(t)}));}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.removeEventListener("keyup",this.handleKeyUp,e),document.removeEventListener("keydown",this.handleKeyDown,e),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons((function(t){t&&(t.onpointerdown=null,t.onpointerup=null,t.onpointercancel=null,t.ontouchstart=null,t.ontouchend=null,t.ontouchcancel=null,t.onclick=null,t.onmousedown=null,t.onmouseup=null,t.remove(),t=null);})),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=false;}},{key:"getButtonThemeClasses",value:function(t){var e=this.options.buttonTheme,n=[];return Array.isArray(e)&&e.forEach((function(e){if(e&&e.class&&"string"==typeof e.class&&e.buttons&&"string"==typeof e.buttons){var r=e.class.split(" ");e.buttons.split(" ").includes(t)&&(n=[].concat(S(n),S(r)));}else console.warn('Incorrect "buttonTheme". Please check the documentation.',e);})),n}},{key:"setDOMButtonAttributes",value:function(t,e){var n=this.options.buttonAttributes;Array.isArray(n)&&n.forEach((function(n){n.attribute&&"string"==typeof n.attribute&&n.value&&"string"==typeof n.value?n.buttons&&"string"==typeof n.buttons?n.buttons.split(" ").includes(t)&&e(n.attribute,n.value):e(n.attribute,n.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',n);}));}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow();}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(t){var e;if(null!==(e=t.target.classList)&&void 0!==e&&e.contains("hg-button"))return t.preventDefault(),t.stopPropagation(),false};}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=true,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."));}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit(this);}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.");}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender(this);}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender(this);}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this);}},{key:"loadModules",value:function(){var t=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(e){var n=t.utilities.isConstructor(e)?new e(t):e(t);n.init&&n.init(t);})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded());}},{key:"getModuleProp",value:function(t,e){return !!this.modules[t]&&this.modules[t][e]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(t,e,n,r){var o=this,i=Array.from(t.children),a=0;return i.length&&n.forEach((function(n,s){var u=r[s];if(!(u&&u>n))return false;var c=n-a,l=u-a,f=document.createElement("div");f.className+="hg-button-container";var p="".concat(o.options.layoutName,"-r").concat(e,"c").concat(s);f.setAttribute("data-skUID",p);var d=i.splice(c,l-c+1);a+=l-c,d.forEach((function(t){return f.appendChild(t)})),i.splice(c,0,f),t.innerHTML="",i.forEach((function(e){return t.appendChild(e)})),o.options.debug&&console.log("rowDOMContainer",d,c,l,a+1);})),t}},{key:"render",value:function(){var t=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var e="hg-layout-".concat(this.options.layoutName),n=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},r=this.options.useTouchEvents||false,o=r?"hg-touch-events":"",i=this.options.useMouseEvents||false,a=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,e,this.keyboardPluginClasses,o),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach((function(e,n){var o=e.split(" ");t.options.excludeFromLayout&&t.options.excludeFromLayout[t.options.layoutName||t.defaultName]&&(o=o.filter((function(e){return t.options.excludeFromLayout&&!t.options.excludeFromLayout[t.options.layoutName||t.defaultName].includes(e)})));var s=document.createElement("div");s.className+="hg-row";var u=[],c=[];o.forEach((function(e,o){var l,f=!a&&"string"==typeof e&&e.length>1&&0===e.indexOf("["),p=!a&&"string"==typeof e&&e.length>1&&e.indexOf("]")===e.length-1;f&&(u.push(o),e=e.replace(/\[/g,"")),p&&(c.push(o),e=e.replace(/\]/g,""));var d=t.utilities.getButtonClass(e),h=t.utilities.getButtonDisplayName(e,t.options.display,t.options.mergeDisplay),v=t.options.useButtonTag?"button":"div",y=document.createElement(v);y.className+="hg-button ".concat(d),(l=y.classList).add.apply(l,S(t.getButtonThemeClasses(e))),t.setDOMButtonAttributes(e,(function(t,e){y.setAttribute(t,e);})),t.activeButtonClass="hg-activeButton",!t.utilities.pointerEventsSupported()||r||i?r?(y.ontouchstart=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n);},y.ontouchend=function(n){t.handleButtonMouseUp(e,n);},y.ontouchcancel=function(n){t.handleButtonMouseUp(e,n);}):(y.onclick=function(n){t.setMouseHold(false),"function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown||t.handleButtonClicked(e,n);},y.onmousedown=function(n){("function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown)&&!t.isMouseHold&&t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n);},y.onmouseup=function(n){t.handleButtonMouseUp(e,n);}):(y.onpointerdown=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n);},y.onpointerup=function(n){t.handleButtonMouseUp(e,n);},y.onpointercancel=function(n){t.handleButtonMouseUp(e,n);}),y.setAttribute("data-skBtn",e);var g="".concat(t.options.layoutName,"-r").concat(n,"b").concat(o);y.setAttribute("data-skBtnUID",g);var m=document.createElement("span");m.innerHTML=h,y.appendChild(m),t.buttonElements[e]||(t.buttonElements[e]=[]),t.buttonElements[e].push(y),s.appendChild(y);})),s=t.parseRowDOMContainers(s,n,u,c),t.keyboardRowsDOM.appendChild(s);})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=true,!this.utilities.pointerEventsSupported()||r||i?r?(document.ontouchend=function(e){return t.handleButtonMouseUp(void 0,e)},document.ontouchcancel=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.ontouchstart=function(e){return t.handleKeyboardContainerMouseDown(e)}):r||(document.onmouseup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onmousedown=function(e){return t.handleKeyboardContainerMouseDown(e)}):(document.onpointerup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onpointerdown=function(e){return t.handleKeyboardContainerMouseDown(e)}),this.onInit());}}],e&&C(t.prototype,e),n&&C(t,n),Object.defineProperty(t,"prototype",{writable:false}),t;var t,e,n;}(),T=D,N=T;return r}();},442:function(e){e.exports=t;}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:true,get:e[n]});},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:true});};var o={};return function(){r.r(o),r.d(o,{KeyboardReact:function(){return l},default:function(){return f}});r(981);var t=r(442),e=r(548),n=r.n(e);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r);}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),true).forEach((function(e){u(t,e,n[e]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e));}));}return t}function u(t,e,n){return (e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===e?String:Number)(t)}(t,"string");return "symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true}):t[e]=n,t}var c=function(t){return s(s({},t),{},{keyboardRef:null})},l=function(e){var r=e.baseClass||"react-simple-keyboard",o=t.useRef(null),i=t.useRef(null),a=t.useRef(null),u=t.useRef(e);return t.useEffect((function(){return function(){a.current&&a.current.destroy(),o.current=false;}}),[]),t.useEffect((function(){var t=function(t){return s(s({},t),{},{theme:"simple-keyboard ".concat(t.theme||"hg-theme-default")})}(e);if(!o.current){o.current=true,t.debug&&console.log("ReactSimpleKeyboard: Init");var l=i.current,f=".".concat(r);a.current=new(n())(l||f,t),t.keyboardRef&&t.keyboardRef(a.current);}var p=function(t,e){var n=c(e),r=c(t);return Object.keys(n).filter((function(t){return n[t]!==r[t]}))}(u.current,t);if(p.length){var d=a.current;u.current=t,null==d||d.setOptions(t),t.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",p);}}),[o,r,u,e]),t.createElement("div",{className:r,ref:i})},f=l;}(),o}()}));
|
|
2135
2205
|
} (build));
|
|
2136
2206
|
|
|
2137
2207
|
var buildExports = build.exports;
|
|
@@ -2505,11 +2575,11 @@ var NATIVE_BIND$1 = functionBindNative;
|
|
|
2505
2575
|
|
|
2506
2576
|
var FunctionPrototype = Function.prototype;
|
|
2507
2577
|
var apply$1 = FunctionPrototype.apply;
|
|
2508
|
-
var call$
|
|
2578
|
+
var call$b = FunctionPrototype.call;
|
|
2509
2579
|
|
|
2510
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
2511
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
2512
|
-
return call$
|
|
2580
|
+
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
2581
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$b.bind(apply$1) : function () {
|
|
2582
|
+
return call$b.apply(apply$1, arguments);
|
|
2513
2583
|
});
|
|
2514
2584
|
|
|
2515
2585
|
var uncurryThis$8 = functionUncurryThis;
|
|
@@ -2559,13 +2629,13 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
2559
2629
|
};
|
|
2560
2630
|
|
|
2561
2631
|
var apply = functionApply;
|
|
2562
|
-
var call$
|
|
2632
|
+
var call$a = functionCall;
|
|
2563
2633
|
var uncurryThis$7 = functionUncurryThis;
|
|
2564
2634
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2565
|
-
var fails$
|
|
2635
|
+
var fails$5 = fails$n;
|
|
2566
2636
|
var anObject$9 = anObject$i;
|
|
2567
2637
|
var isCallable$3 = isCallable$j;
|
|
2568
|
-
var
|
|
2638
|
+
var isObject$1 = isObject$c;
|
|
2569
2639
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$5;
|
|
2570
2640
|
var toLength$1 = toLength$4;
|
|
2571
2641
|
var toString$3 = toString$8;
|
|
@@ -2573,6 +2643,7 @@ var requireObjectCoercible$1 = requireObjectCoercible$8;
|
|
|
2573
2643
|
var advanceStringIndex = advanceStringIndex$2;
|
|
2574
2644
|
var getMethod$3 = getMethod$6;
|
|
2575
2645
|
var getSubstitution = getSubstitution$1;
|
|
2646
|
+
var getRegExpFlags = regexpGetFlags;
|
|
2576
2647
|
var regExpExec = regexpExecAbstract;
|
|
2577
2648
|
var wellKnownSymbol$4 = wellKnownSymbol$g;
|
|
2578
2649
|
|
|
@@ -2603,7 +2674,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
|
2603
2674
|
return false;
|
|
2604
2675
|
})();
|
|
2605
2676
|
|
|
2606
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
2677
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$5(function () {
|
|
2607
2678
|
var re = /./;
|
|
2608
2679
|
re.exec = function () {
|
|
2609
2680
|
var result = [];
|
|
@@ -2623,10 +2694,10 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
2623
2694
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
2624
2695
|
function replace(searchValue, replaceValue) {
|
|
2625
2696
|
var O = requireObjectCoercible$1(this);
|
|
2626
|
-
var replacer =
|
|
2697
|
+
var replacer = isObject$1(searchValue) ? getMethod$3(searchValue, REPLACE) : undefined;
|
|
2627
2698
|
return replacer
|
|
2628
|
-
? call$
|
|
2629
|
-
: call$
|
|
2699
|
+
? call$a(replacer, searchValue, O, replaceValue)
|
|
2700
|
+
: call$a(nativeReplace, toString$3(O), searchValue, replaceValue);
|
|
2630
2701
|
},
|
|
2631
2702
|
// `RegExp.prototype[@@replace]` method
|
|
2632
2703
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
@@ -2634,22 +2705,24 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
2634
2705
|
var rx = anObject$9(this);
|
|
2635
2706
|
var S = toString$3(string);
|
|
2636
2707
|
|
|
2708
|
+
var functionalReplace = isCallable$3(replaceValue);
|
|
2709
|
+
if (!functionalReplace) replaceValue = toString$3(replaceValue);
|
|
2710
|
+
var flags = toString$3(getRegExpFlags(rx));
|
|
2711
|
+
|
|
2637
2712
|
if (
|
|
2638
2713
|
typeof replaceValue == 'string' &&
|
|
2639
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE)
|
|
2640
|
-
stringIndexOf(replaceValue, '$<')
|
|
2714
|
+
!~stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) &&
|
|
2715
|
+
!~stringIndexOf(replaceValue, '$<') &&
|
|
2716
|
+
!~stringIndexOf(flags, 'y')
|
|
2641
2717
|
) {
|
|
2642
2718
|
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
2643
2719
|
if (res.done) return res.value;
|
|
2644
2720
|
}
|
|
2645
2721
|
|
|
2646
|
-
var
|
|
2647
|
-
if (!functionalReplace) replaceValue = toString$3(replaceValue);
|
|
2648
|
-
|
|
2649
|
-
var global = rx.global;
|
|
2722
|
+
var global = !!~stringIndexOf(flags, 'g');
|
|
2650
2723
|
var fullUnicode;
|
|
2651
2724
|
if (global) {
|
|
2652
|
-
fullUnicode =
|
|
2725
|
+
fullUnicode = !!~stringIndexOf(flags, 'u') || !!~stringIndexOf(flags, 'v');
|
|
2653
2726
|
rx.lastIndex = 0;
|
|
2654
2727
|
}
|
|
2655
2728
|
|
|
@@ -2735,8 +2808,8 @@ $$d({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
|
|
|
2735
2808
|
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
2736
2809
|
var that = toString$2(requireObjectCoercible(this));
|
|
2737
2810
|
notARegExp(searchString);
|
|
2738
|
-
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
2739
2811
|
var search = toString$2(searchString);
|
|
2812
|
+
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
2740
2813
|
return stringSlice(that, index, index + search.length) === search;
|
|
2741
2814
|
}
|
|
2742
2815
|
});
|
|
@@ -2813,7 +2886,7 @@ var $TypeError$5 = TypeError;
|
|
|
2813
2886
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2814
2887
|
|
|
2815
2888
|
var doesNotExceedSafeInteger$1 = function (it) {
|
|
2816
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$5('Maximum allowed index exceeded');
|
|
2889
|
+
if (it > MAX_SAFE_INTEGER) throw new $TypeError$5('Maximum allowed index exceeded');
|
|
2817
2890
|
return it;
|
|
2818
2891
|
};
|
|
2819
2892
|
|
|
@@ -2822,9 +2895,9 @@ var toObject = toObject$4;
|
|
|
2822
2895
|
var lengthOfArrayLike$2 = lengthOfArrayLike$4;
|
|
2823
2896
|
var setArrayLength = arraySetLength;
|
|
2824
2897
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2825
|
-
var fails$
|
|
2898
|
+
var fails$4 = fails$n;
|
|
2826
2899
|
|
|
2827
|
-
var INCORRECT_TO_LENGTH = fails$
|
|
2900
|
+
var INCORRECT_TO_LENGTH = fails$4(function () {
|
|
2828
2901
|
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
2829
2902
|
});
|
|
2830
2903
|
|
|
@@ -2839,11 +2912,11 @@ var properErrorOnNonWritableLength = function () {
|
|
|
2839
2912
|
}
|
|
2840
2913
|
};
|
|
2841
2914
|
|
|
2842
|
-
var FORCED$
|
|
2915
|
+
var FORCED$5 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
2843
2916
|
|
|
2844
2917
|
// `Array.prototype.push` method
|
|
2845
2918
|
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
2846
|
-
$$c({ target: 'Array', proto: true, arity: 1, forced: FORCED$
|
|
2919
|
+
$$c({ target: 'Array', proto: true, arity: 1, forced: FORCED$5 }, {
|
|
2847
2920
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2848
2921
|
push: function push(item) {
|
|
2849
2922
|
var O = toObject(this);
|
|
@@ -2859,41 +2932,6 @@ $$c({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
|
|
|
2859
2932
|
}
|
|
2860
2933
|
});
|
|
2861
2934
|
|
|
2862
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
2863
|
-
|
|
2864
|
-
var $$b = _export;
|
|
2865
|
-
var call$8 = functionCall;
|
|
2866
|
-
var isCallable$2 = isCallable$j;
|
|
2867
|
-
var anObject$8 = anObject$i;
|
|
2868
|
-
var toString$1 = toString$8;
|
|
2869
|
-
|
|
2870
|
-
var DELEGATES_TO_EXEC = function () {
|
|
2871
|
-
var execCalled = false;
|
|
2872
|
-
var re = /[ac]/;
|
|
2873
|
-
re.exec = function () {
|
|
2874
|
-
execCalled = true;
|
|
2875
|
-
return /./.exec.apply(this, arguments);
|
|
2876
|
-
};
|
|
2877
|
-
return re.test('abc') === true && execCalled;
|
|
2878
|
-
}();
|
|
2879
|
-
|
|
2880
|
-
var nativeTest = /./.test;
|
|
2881
|
-
|
|
2882
|
-
// `RegExp.prototype.test` method
|
|
2883
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
2884
|
-
$$b({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
2885
|
-
test: function (S) {
|
|
2886
|
-
var R = anObject$8(this);
|
|
2887
|
-
var string = toString$1(S);
|
|
2888
|
-
var exec = R.exec;
|
|
2889
|
-
if (!isCallable$2(exec)) return call$8(nativeTest, R, string);
|
|
2890
|
-
var result = call$8(exec, R, string);
|
|
2891
|
-
if (result === null) return false;
|
|
2892
|
-
anObject$8(result);
|
|
2893
|
-
return true;
|
|
2894
|
-
}
|
|
2895
|
-
});
|
|
2896
|
-
|
|
2897
2935
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
2898
2936
|
|
|
2899
2937
|
var $TypeError$4 = TypeError;
|
|
@@ -2921,15 +2959,15 @@ var createProperty$2 = function (object, key, value) {
|
|
|
2921
2959
|
else object[key] = value;
|
|
2922
2960
|
};
|
|
2923
2961
|
|
|
2924
|
-
var $$
|
|
2925
|
-
var globalThis$
|
|
2962
|
+
var $$b = _export;
|
|
2963
|
+
var globalThis$3 = globalThis_1;
|
|
2926
2964
|
var anInstance = anInstance$1;
|
|
2927
|
-
var anObject$
|
|
2928
|
-
var isCallable$
|
|
2965
|
+
var anObject$8 = anObject$i;
|
|
2966
|
+
var isCallable$2 = isCallable$j;
|
|
2929
2967
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
2930
2968
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
2931
2969
|
var createProperty$1 = createProperty$2;
|
|
2932
|
-
var fails$
|
|
2970
|
+
var fails$3 = fails$n;
|
|
2933
2971
|
var hasOwn$2 = hasOwnProperty_1;
|
|
2934
2972
|
var wellKnownSymbol$3 = wellKnownSymbol$g;
|
|
2935
2973
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
@@ -2940,13 +2978,13 @@ var ITERATOR$2 = 'Iterator';
|
|
|
2940
2978
|
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
2941
2979
|
|
|
2942
2980
|
var $TypeError$3 = TypeError;
|
|
2943
|
-
var NativeIterator = globalThis$
|
|
2981
|
+
var NativeIterator = globalThis$3[ITERATOR$2];
|
|
2944
2982
|
|
|
2945
2983
|
// FF56- have non-standard global helper `Iterator`
|
|
2946
|
-
var FORCED = !isCallable$
|
|
2984
|
+
var FORCED$4 = !isCallable$2(NativeIterator)
|
|
2947
2985
|
|| NativeIterator.prototype !== IteratorPrototype$1
|
|
2948
2986
|
// FF44- non-standard `Iterator` passes previous tests
|
|
2949
|
-
|| !fails$
|
|
2987
|
+
|| !fails$3(function () { NativeIterator({}); });
|
|
2950
2988
|
|
|
2951
2989
|
var IteratorConstructor = function Iterator() {
|
|
2952
2990
|
anInstance(this, IteratorPrototype$1);
|
|
@@ -2961,7 +2999,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
2961
2999
|
return value;
|
|
2962
3000
|
},
|
|
2963
3001
|
set: function (replacement) {
|
|
2964
|
-
anObject$
|
|
3002
|
+
anObject$8(this);
|
|
2965
3003
|
if (this === IteratorPrototype$1) throw new $TypeError$3("You can't redefine this property");
|
|
2966
3004
|
if (hasOwn$2(this, key)) this[key] = replacement;
|
|
2967
3005
|
else createProperty$1(this, key, replacement);
|
|
@@ -2972,20 +3010,20 @@ var defineIteratorPrototypeAccessor = function (key, value) {
|
|
|
2972
3010
|
|
|
2973
3011
|
if (!hasOwn$2(IteratorPrototype$1, TO_STRING_TAG$1)) defineIteratorPrototypeAccessor(TO_STRING_TAG$1, ITERATOR$2);
|
|
2974
3012
|
|
|
2975
|
-
if (FORCED || !hasOwn$2(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
|
|
3013
|
+
if (FORCED$4 || !hasOwn$2(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
|
|
2976
3014
|
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
2977
3015
|
}
|
|
2978
3016
|
|
|
2979
3017
|
IteratorConstructor.prototype = IteratorPrototype$1;
|
|
2980
3018
|
|
|
2981
3019
|
// `Iterator` constructor
|
|
2982
|
-
// https://
|
|
2983
|
-
$$
|
|
3020
|
+
// https://tc39.es/ecma262/#sec-iterator
|
|
3021
|
+
$$b({ global: true, constructor: true, forced: FORCED$4 }, {
|
|
2984
3022
|
Iterator: IteratorConstructor
|
|
2985
3023
|
});
|
|
2986
3024
|
|
|
2987
3025
|
// `GetIteratorDirect(obj)` abstract operation
|
|
2988
|
-
// https://tc39.es/
|
|
3026
|
+
// https://tc39.es/ecma262/#sec-getiteratordirect
|
|
2989
3027
|
var getIteratorDirect$3 = function (obj) {
|
|
2990
3028
|
return {
|
|
2991
3029
|
iterator: obj,
|
|
@@ -3001,31 +3039,47 @@ var defineBuiltIns$1 = function (target, src, options) {
|
|
|
3001
3039
|
return target;
|
|
3002
3040
|
};
|
|
3003
3041
|
|
|
3004
|
-
var call$
|
|
3005
|
-
var anObject$
|
|
3042
|
+
var call$9 = functionCall;
|
|
3043
|
+
var anObject$7 = anObject$i;
|
|
3006
3044
|
var getMethod$2 = getMethod$6;
|
|
3007
3045
|
|
|
3008
|
-
var iteratorClose$
|
|
3046
|
+
var iteratorClose$8 = function (iterator, kind, value) {
|
|
3009
3047
|
var innerResult, innerError;
|
|
3010
|
-
anObject$
|
|
3048
|
+
anObject$7(iterator);
|
|
3011
3049
|
try {
|
|
3012
3050
|
innerResult = getMethod$2(iterator, 'return');
|
|
3013
3051
|
if (!innerResult) {
|
|
3014
3052
|
if (kind === 'throw') throw value;
|
|
3015
3053
|
return value;
|
|
3016
3054
|
}
|
|
3017
|
-
innerResult = call$
|
|
3055
|
+
innerResult = call$9(innerResult, iterator);
|
|
3018
3056
|
} catch (error) {
|
|
3019
3057
|
innerError = true;
|
|
3020
3058
|
innerResult = error;
|
|
3021
3059
|
}
|
|
3022
3060
|
if (kind === 'throw') throw value;
|
|
3023
3061
|
if (innerError) throw innerResult;
|
|
3024
|
-
anObject$
|
|
3062
|
+
anObject$7(innerResult);
|
|
3025
3063
|
return value;
|
|
3026
3064
|
};
|
|
3027
3065
|
|
|
3028
|
-
var
|
|
3066
|
+
var iteratorClose$7 = iteratorClose$8;
|
|
3067
|
+
|
|
3068
|
+
var iteratorCloseAll$1 = function (iters, kind, value) {
|
|
3069
|
+
for (var i = iters.length - 1; i >= 0; i--) {
|
|
3070
|
+
if (iters[i] === undefined) continue;
|
|
3071
|
+
try {
|
|
3072
|
+
value = iteratorClose$7(iters[i].iterator, kind, value);
|
|
3073
|
+
} catch (error) {
|
|
3074
|
+
kind = 'throw';
|
|
3075
|
+
value = error;
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
3078
|
+
if (kind === 'throw') throw value;
|
|
3079
|
+
return value;
|
|
3080
|
+
};
|
|
3081
|
+
|
|
3082
|
+
var call$8 = functionCall;
|
|
3029
3083
|
var create = objectCreate;
|
|
3030
3084
|
var createNonEnumerableProperty = createNonEnumerableProperty$6;
|
|
3031
3085
|
var defineBuiltIns = defineBuiltIns$1;
|
|
@@ -3034,11 +3088,14 @@ var InternalStateModule = internalState;
|
|
|
3034
3088
|
var getMethod$1 = getMethod$6;
|
|
3035
3089
|
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
3036
3090
|
var createIterResultObject = createIterResultObject$2;
|
|
3037
|
-
var iteratorClose$
|
|
3091
|
+
var iteratorClose$6 = iteratorClose$8;
|
|
3092
|
+
var iteratorCloseAll = iteratorCloseAll$1;
|
|
3038
3093
|
|
|
3039
3094
|
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
3040
3095
|
var ITERATOR_HELPER = 'IteratorHelper';
|
|
3041
3096
|
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
3097
|
+
var NORMAL = 'normal';
|
|
3098
|
+
var THROW = 'throw';
|
|
3042
3099
|
var setInternalState = InternalStateModule.set;
|
|
3043
3100
|
|
|
3044
3101
|
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
@@ -3048,12 +3105,13 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
3048
3105
|
next: function next() {
|
|
3049
3106
|
var state = getInternalState(this);
|
|
3050
3107
|
// for simplification:
|
|
3051
|
-
// for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
|
|
3108
|
+
// for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
|
|
3052
3109
|
// for `%IteratorHelperPrototype%.next` - just a value
|
|
3053
3110
|
if (IS_ITERATOR) return state.nextHandler();
|
|
3111
|
+
if (state.done) return createIterResultObject(undefined, true);
|
|
3054
3112
|
try {
|
|
3055
|
-
var result = state.
|
|
3056
|
-
return createIterResultObject(result, state.done);
|
|
3113
|
+
var result = state.nextHandler();
|
|
3114
|
+
return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
|
|
3057
3115
|
} catch (error) {
|
|
3058
3116
|
state.done = true;
|
|
3059
3117
|
throw error;
|
|
@@ -3062,17 +3120,25 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
3062
3120
|
'return': function () {
|
|
3063
3121
|
var state = getInternalState(this);
|
|
3064
3122
|
var iterator = state.iterator;
|
|
3123
|
+
var done = state.done;
|
|
3065
3124
|
state.done = true;
|
|
3066
3125
|
if (IS_ITERATOR) {
|
|
3067
3126
|
var returnMethod = getMethod$1(iterator, 'return');
|
|
3068
|
-
return returnMethod ? call$
|
|
3127
|
+
return returnMethod ? call$8(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
3069
3128
|
}
|
|
3129
|
+
if (done) return createIterResultObject(undefined, true);
|
|
3070
3130
|
if (state.inner) try {
|
|
3071
|
-
iteratorClose$
|
|
3131
|
+
iteratorClose$6(state.inner.iterator, NORMAL);
|
|
3072
3132
|
} catch (error) {
|
|
3073
|
-
return iteratorClose$
|
|
3133
|
+
return iteratorClose$6(iterator, THROW, error);
|
|
3134
|
+
}
|
|
3135
|
+
if (state.openIters) try {
|
|
3136
|
+
iteratorCloseAll(state.openIters, NORMAL);
|
|
3137
|
+
} catch (error) {
|
|
3138
|
+
if (iterator) return iteratorClose$6(iterator, THROW, error);
|
|
3139
|
+
throw error;
|
|
3074
3140
|
}
|
|
3075
|
-
iteratorClose$
|
|
3141
|
+
if (iterator) iteratorClose$6(iterator, NORMAL);
|
|
3076
3142
|
return createIterResultObject(undefined, true);
|
|
3077
3143
|
}
|
|
3078
3144
|
});
|
|
@@ -3083,13 +3149,14 @@ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
|
3083
3149
|
|
|
3084
3150
|
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
3085
3151
|
|
|
3086
|
-
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
3152
|
+
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
|
|
3087
3153
|
var IteratorProxy = function Iterator(record, state) {
|
|
3088
3154
|
if (state) {
|
|
3089
3155
|
state.iterator = record.iterator;
|
|
3090
3156
|
state.next = record.next;
|
|
3091
3157
|
} else state = record;
|
|
3092
3158
|
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
3159
|
+
state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
|
|
3093
3160
|
state.nextHandler = nextHandler;
|
|
3094
3161
|
state.counter = 0;
|
|
3095
3162
|
state.done = false;
|
|
@@ -3101,26 +3168,69 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
|
|
|
3101
3168
|
return IteratorProxy;
|
|
3102
3169
|
};
|
|
3103
3170
|
|
|
3104
|
-
var anObject$
|
|
3105
|
-
var iteratorClose$
|
|
3171
|
+
var anObject$6 = anObject$i;
|
|
3172
|
+
var iteratorClose$5 = iteratorClose$8;
|
|
3106
3173
|
|
|
3107
3174
|
// call something on iterator step with safe closing on error
|
|
3108
3175
|
var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
|
|
3109
3176
|
try {
|
|
3110
|
-
return ENTRIES ? fn(anObject$
|
|
3177
|
+
return ENTRIES ? fn(anObject$6(value)[0], value[1]) : fn(value);
|
|
3111
3178
|
} catch (error) {
|
|
3112
|
-
iteratorClose$
|
|
3179
|
+
iteratorClose$5(iterator, 'throw', error);
|
|
3113
3180
|
}
|
|
3114
3181
|
};
|
|
3115
3182
|
|
|
3116
|
-
|
|
3117
|
-
|
|
3183
|
+
// Should throw an error on invalid iterator
|
|
3184
|
+
// https://issues.chromium.org/issues/336839115
|
|
3185
|
+
var iteratorHelperThrowsOnInvalidIterator$1 = function (methodName, argument) {
|
|
3186
|
+
// eslint-disable-next-line es/no-iterator -- required for testing
|
|
3187
|
+
var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
|
|
3188
|
+
if (method) try {
|
|
3189
|
+
method.call({ next: null }, argument).next();
|
|
3190
|
+
} catch (error) {
|
|
3191
|
+
return true;
|
|
3192
|
+
}
|
|
3193
|
+
};
|
|
3194
|
+
|
|
3195
|
+
var globalThis$2 = globalThis_1;
|
|
3196
|
+
|
|
3197
|
+
// https://github.com/tc39/ecma262/pull/3467
|
|
3198
|
+
var iteratorHelperWithoutClosingOnEarlyError$2 = function (METHOD_NAME, ExpectedError) {
|
|
3199
|
+
var Iterator = globalThis$2.Iterator;
|
|
3200
|
+
var IteratorPrototype = Iterator && Iterator.prototype;
|
|
3201
|
+
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
|
|
3202
|
+
|
|
3203
|
+
var CLOSED = false;
|
|
3204
|
+
|
|
3205
|
+
if (method) try {
|
|
3206
|
+
method.call({
|
|
3207
|
+
next: function () { return { done: true }; },
|
|
3208
|
+
'return': function () { CLOSED = true; }
|
|
3209
|
+
}, -1);
|
|
3210
|
+
} catch (error) {
|
|
3211
|
+
// https://bugs.webkit.org/show_bug.cgi?id=291195
|
|
3212
|
+
if (!(error instanceof ExpectedError)) CLOSED = false;
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
if (!CLOSED) return method;
|
|
3216
|
+
};
|
|
3217
|
+
|
|
3218
|
+
var $$a = _export;
|
|
3219
|
+
var call$7 = functionCall;
|
|
3118
3220
|
var aCallable$4 = aCallable$7;
|
|
3119
|
-
var anObject$
|
|
3221
|
+
var anObject$5 = anObject$i;
|
|
3120
3222
|
var getIteratorDirect$2 = getIteratorDirect$3;
|
|
3121
3223
|
var createIteratorProxy = iteratorCreateProxy;
|
|
3122
3224
|
var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
|
|
3123
|
-
var
|
|
3225
|
+
var iteratorClose$4 = iteratorClose$8;
|
|
3226
|
+
var iteratorHelperThrowsOnInvalidIterator = iteratorHelperThrowsOnInvalidIterator$1;
|
|
3227
|
+
var iteratorHelperWithoutClosingOnEarlyError$1 = iteratorHelperWithoutClosingOnEarlyError$2;
|
|
3228
|
+
|
|
3229
|
+
var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !iteratorHelperThrowsOnInvalidIterator('filter', function () { /* empty */ });
|
|
3230
|
+
var filterWithoutClosingOnEarlyError = !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
|
3231
|
+
&& iteratorHelperWithoutClosingOnEarlyError$1('filter', TypeError);
|
|
3232
|
+
|
|
3233
|
+
var FORCED$3 = FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError;
|
|
3124
3234
|
|
|
3125
3235
|
var IteratorProxy = createIteratorProxy(function () {
|
|
3126
3236
|
var iterator = this.iterator;
|
|
@@ -3128,7 +3238,7 @@ var IteratorProxy = createIteratorProxy(function () {
|
|
|
3128
3238
|
var next = this.next;
|
|
3129
3239
|
var result, done, value;
|
|
3130
3240
|
while (true) {
|
|
3131
|
-
result = anObject$
|
|
3241
|
+
result = anObject$5(call$7(next, iterator));
|
|
3132
3242
|
done = this.done = !!result.done;
|
|
3133
3243
|
if (done) return;
|
|
3134
3244
|
value = result.value;
|
|
@@ -3137,11 +3247,18 @@ var IteratorProxy = createIteratorProxy(function () {
|
|
|
3137
3247
|
});
|
|
3138
3248
|
|
|
3139
3249
|
// `Iterator.prototype.filter` method
|
|
3140
|
-
// https://
|
|
3141
|
-
$$
|
|
3250
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.filter
|
|
3251
|
+
$$a({ target: 'Iterator', proto: true, real: true, forced: FORCED$3 }, {
|
|
3142
3252
|
filter: function filter(predicate) {
|
|
3143
|
-
anObject$
|
|
3144
|
-
|
|
3253
|
+
anObject$5(this);
|
|
3254
|
+
try {
|
|
3255
|
+
aCallable$4(predicate);
|
|
3256
|
+
} catch (error) {
|
|
3257
|
+
iteratorClose$4(this, 'throw', error);
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3260
|
+
if (filterWithoutClosingOnEarlyError) return call$7(filterWithoutClosingOnEarlyError, this, predicate);
|
|
3261
|
+
|
|
3145
3262
|
return new IteratorProxy(getIteratorDirect$2(this), {
|
|
3146
3263
|
predicate: predicate
|
|
3147
3264
|
});
|
|
@@ -3175,7 +3292,7 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
3175
3292
|
|
|
3176
3293
|
var classof = classof$5;
|
|
3177
3294
|
var getMethod = getMethod$6;
|
|
3178
|
-
var isNullOrUndefined = isNullOrUndefined$
|
|
3295
|
+
var isNullOrUndefined = isNullOrUndefined$3;
|
|
3179
3296
|
var Iterators = iterators;
|
|
3180
3297
|
var wellKnownSymbol = wellKnownSymbol$g;
|
|
3181
3298
|
|
|
@@ -3187,9 +3304,9 @@ var getIteratorMethod$2 = function (it) {
|
|
|
3187
3304
|
|| Iterators[classof(it)];
|
|
3188
3305
|
};
|
|
3189
3306
|
|
|
3190
|
-
var call$
|
|
3307
|
+
var call$6 = functionCall;
|
|
3191
3308
|
var aCallable$2 = aCallable$7;
|
|
3192
|
-
var anObject$
|
|
3309
|
+
var anObject$4 = anObject$i;
|
|
3193
3310
|
var tryToString$1 = tryToString$3;
|
|
3194
3311
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
3195
3312
|
|
|
@@ -3197,20 +3314,20 @@ var $TypeError$2 = TypeError;
|
|
|
3197
3314
|
|
|
3198
3315
|
var getIterator$1 = function (argument, usingIterator) {
|
|
3199
3316
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
3200
|
-
if (aCallable$2(iteratorMethod)) return anObject$
|
|
3317
|
+
if (aCallable$2(iteratorMethod)) return anObject$4(call$6(iteratorMethod, argument));
|
|
3201
3318
|
throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
|
|
3202
3319
|
};
|
|
3203
3320
|
|
|
3204
3321
|
var bind = functionBindContext;
|
|
3205
|
-
var call$
|
|
3206
|
-
var anObject$
|
|
3322
|
+
var call$5 = functionCall;
|
|
3323
|
+
var anObject$3 = anObject$i;
|
|
3207
3324
|
var tryToString = tryToString$3;
|
|
3208
3325
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
3209
3326
|
var lengthOfArrayLike$1 = lengthOfArrayLike$4;
|
|
3210
3327
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
3211
3328
|
var getIterator = getIterator$1;
|
|
3212
3329
|
var getIteratorMethod = getIteratorMethod$2;
|
|
3213
|
-
var iteratorClose$
|
|
3330
|
+
var iteratorClose$3 = iteratorClose$8;
|
|
3214
3331
|
|
|
3215
3332
|
var $TypeError$1 = TypeError;
|
|
3216
3333
|
|
|
@@ -3231,13 +3348,15 @@ var iterate$3 = function (iterable, unboundFunction, options) {
|
|
|
3231
3348
|
var iterator, iterFn, index, length, result, next, step;
|
|
3232
3349
|
|
|
3233
3350
|
var stop = function (condition) {
|
|
3234
|
-
|
|
3351
|
+
var $iterator = iterator;
|
|
3352
|
+
iterator = undefined;
|
|
3353
|
+
if ($iterator) iteratorClose$3($iterator, 'normal');
|
|
3235
3354
|
return new Result(true, condition);
|
|
3236
3355
|
};
|
|
3237
3356
|
|
|
3238
3357
|
var callFn = function (value) {
|
|
3239
3358
|
if (AS_ENTRIES) {
|
|
3240
|
-
anObject$
|
|
3359
|
+
anObject$3(value);
|
|
3241
3360
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
3242
3361
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
3243
3362
|
};
|
|
@@ -3260,28 +3379,43 @@ var iterate$3 = function (iterable, unboundFunction, options) {
|
|
|
3260
3379
|
}
|
|
3261
3380
|
|
|
3262
3381
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
3263
|
-
while (!(step = call$
|
|
3382
|
+
while (!(step = call$5(next, iterator)).done) {
|
|
3383
|
+
// `IteratorValue` errors should propagate without closing the iterator
|
|
3384
|
+
var value = step.value;
|
|
3264
3385
|
try {
|
|
3265
|
-
result = callFn(
|
|
3386
|
+
result = callFn(value);
|
|
3266
3387
|
} catch (error) {
|
|
3267
|
-
iteratorClose$
|
|
3388
|
+
if (iterator) iteratorClose$3(iterator, 'throw', error);
|
|
3389
|
+
else throw error;
|
|
3268
3390
|
}
|
|
3269
3391
|
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
3270
3392
|
} return new Result(false);
|
|
3271
3393
|
};
|
|
3272
3394
|
|
|
3273
|
-
var $$
|
|
3395
|
+
var $$9 = _export;
|
|
3396
|
+
var call$4 = functionCall;
|
|
3274
3397
|
var iterate$2 = iterate$3;
|
|
3275
3398
|
var aCallable$1 = aCallable$7;
|
|
3276
|
-
var anObject$
|
|
3399
|
+
var anObject$2 = anObject$i;
|
|
3277
3400
|
var getIteratorDirect$1 = getIteratorDirect$3;
|
|
3401
|
+
var iteratorClose$2 = iteratorClose$8;
|
|
3402
|
+
var iteratorHelperWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$2;
|
|
3403
|
+
|
|
3404
|
+
var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('forEach', TypeError);
|
|
3278
3405
|
|
|
3279
3406
|
// `Iterator.prototype.forEach` method
|
|
3280
|
-
// https://
|
|
3281
|
-
$$
|
|
3407
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
3408
|
+
$$9({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
|
|
3282
3409
|
forEach: function forEach(fn) {
|
|
3283
|
-
anObject$
|
|
3284
|
-
|
|
3410
|
+
anObject$2(this);
|
|
3411
|
+
try {
|
|
3412
|
+
aCallable$1(fn);
|
|
3413
|
+
} catch (error) {
|
|
3414
|
+
iteratorClose$2(this, 'throw', error);
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
if (forEachWithoutClosingOnEarlyError) return call$4(forEachWithoutClosingOnEarlyError, this, fn);
|
|
3418
|
+
|
|
3285
3419
|
var record = getIteratorDirect$1(this);
|
|
3286
3420
|
var counter = 0;
|
|
3287
3421
|
iterate$2(record, function (value) {
|
|
@@ -3290,6 +3424,41 @@ $$8({ target: 'Iterator', proto: true, real: true }, {
|
|
|
3290
3424
|
}
|
|
3291
3425
|
});
|
|
3292
3426
|
|
|
3427
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3428
|
+
|
|
3429
|
+
var $$8 = _export;
|
|
3430
|
+
var call$3 = functionCall;
|
|
3431
|
+
var isCallable$1 = isCallable$j;
|
|
3432
|
+
var anObject$1 = anObject$i;
|
|
3433
|
+
var toString$1 = toString$8;
|
|
3434
|
+
|
|
3435
|
+
var DELEGATES_TO_EXEC = function () {
|
|
3436
|
+
var execCalled = false;
|
|
3437
|
+
var re = /[ac]/;
|
|
3438
|
+
re.exec = function () {
|
|
3439
|
+
execCalled = true;
|
|
3440
|
+
return /./.exec.apply(this, arguments);
|
|
3441
|
+
};
|
|
3442
|
+
return re.test('abc') === true && execCalled;
|
|
3443
|
+
}();
|
|
3444
|
+
|
|
3445
|
+
var nativeTest = /./.test;
|
|
3446
|
+
|
|
3447
|
+
// `RegExp.prototype.test` method
|
|
3448
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
3449
|
+
$$8({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
3450
|
+
test: function (S) {
|
|
3451
|
+
var R = anObject$1(this);
|
|
3452
|
+
var string = toString$1(S);
|
|
3453
|
+
var exec = R.exec;
|
|
3454
|
+
if (!isCallable$1(exec)) return call$3(nativeTest, R, string);
|
|
3455
|
+
var result = call$3(exec, R, string);
|
|
3456
|
+
if (result === null) return false;
|
|
3457
|
+
anObject$1(result);
|
|
3458
|
+
return true;
|
|
3459
|
+
}
|
|
3460
|
+
});
|
|
3461
|
+
|
|
3293
3462
|
const MQTT_TIMEOUT_SECONDS = 3;
|
|
3294
3463
|
const MQTT_TIMEOUT_MS = MQTT_TIMEOUT_SECONDS * 1000;
|
|
3295
3464
|
const KEEP_ALIVE_SECONDS = 5;
|
|
@@ -3525,16 +3694,16 @@ var has$4 = SetHelpers$2.has;
|
|
|
3525
3694
|
var remove$1 = SetHelpers$2.remove;
|
|
3526
3695
|
|
|
3527
3696
|
// `Set.prototype.difference` method
|
|
3528
|
-
// https://
|
|
3697
|
+
// https://tc39.es/ecma262/#sec-set.prototype.difference
|
|
3529
3698
|
var setDifference = function difference(other) {
|
|
3530
3699
|
var O = aSet$6(this);
|
|
3531
3700
|
var otherRec = getSetRecord$6(other);
|
|
3532
3701
|
var result = clone$2(O);
|
|
3533
|
-
if (size$4(
|
|
3702
|
+
if (size$4(result) <= otherRec.size) iterateSet$2(result, function (e) {
|
|
3534
3703
|
if (otherRec.includes(e)) remove$1(result, e);
|
|
3535
3704
|
});
|
|
3536
3705
|
else iterateSimple$5(otherRec.getIterator(), function (e) {
|
|
3537
|
-
if (has$4(
|
|
3706
|
+
if (has$4(result, e)) remove$1(result, e);
|
|
3538
3707
|
});
|
|
3539
3708
|
return result;
|
|
3540
3709
|
};
|
|
@@ -3557,17 +3726,40 @@ var createSetLike = function (size) {
|
|
|
3557
3726
|
};
|
|
3558
3727
|
};
|
|
3559
3728
|
|
|
3560
|
-
var
|
|
3729
|
+
var createSetLikeWithInfinitySize = function (size) {
|
|
3730
|
+
return {
|
|
3731
|
+
size: size,
|
|
3732
|
+
has: function () {
|
|
3733
|
+
return true;
|
|
3734
|
+
},
|
|
3735
|
+
keys: function () {
|
|
3736
|
+
throw new Error('e');
|
|
3737
|
+
}
|
|
3738
|
+
};
|
|
3739
|
+
};
|
|
3740
|
+
|
|
3741
|
+
var setMethodAcceptSetLike$7 = function (name, callback) {
|
|
3561
3742
|
var Set = getBuiltIn$1('Set');
|
|
3562
3743
|
try {
|
|
3563
3744
|
new Set()[name](createSetLike(0));
|
|
3564
3745
|
try {
|
|
3565
|
-
// late spec change, early WebKit ~ Safari 17
|
|
3746
|
+
// late spec change, early WebKit ~ Safari 17 implementation does not pass it
|
|
3566
3747
|
// https://github.com/tc39/proposal-set-methods/pull/88
|
|
3748
|
+
// also covered engines with
|
|
3749
|
+
// https://bugs.webkit.org/show_bug.cgi?id=272679
|
|
3567
3750
|
new Set()[name](createSetLike(-1));
|
|
3568
3751
|
return false;
|
|
3569
3752
|
} catch (error2) {
|
|
3570
|
-
return true;
|
|
3753
|
+
if (!callback) return true;
|
|
3754
|
+
// early V8 implementation bug
|
|
3755
|
+
// https://issues.chromium.org/issues/351332634
|
|
3756
|
+
try {
|
|
3757
|
+
new Set()[name](createSetLikeWithInfinitySize(-Infinity));
|
|
3758
|
+
return false;
|
|
3759
|
+
} catch (error) {
|
|
3760
|
+
var set = new Set([1, 2]);
|
|
3761
|
+
return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
|
|
3762
|
+
}
|
|
3571
3763
|
}
|
|
3572
3764
|
} catch (error) {
|
|
3573
3765
|
return false;
|
|
@@ -3576,11 +3768,38 @@ var setMethodAcceptSetLike$7 = function (name) {
|
|
|
3576
3768
|
|
|
3577
3769
|
var $$7 = _export;
|
|
3578
3770
|
var difference = setDifference;
|
|
3771
|
+
var fails$2 = fails$n;
|
|
3579
3772
|
var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
|
|
3580
3773
|
|
|
3774
|
+
var SET_LIKE_INCORRECT_BEHAVIOR = !setMethodAcceptSetLike$6('difference', function (result) {
|
|
3775
|
+
return result.size === 0;
|
|
3776
|
+
});
|
|
3777
|
+
|
|
3778
|
+
var FORCED$2 = SET_LIKE_INCORRECT_BEHAVIOR || fails$2(function () {
|
|
3779
|
+
// https://bugs.webkit.org/show_bug.cgi?id=288595
|
|
3780
|
+
var setLike = {
|
|
3781
|
+
size: 1,
|
|
3782
|
+
has: function () { return true; },
|
|
3783
|
+
keys: function () {
|
|
3784
|
+
var index = 0;
|
|
3785
|
+
return {
|
|
3786
|
+
next: function () {
|
|
3787
|
+
var done = index++ > 1;
|
|
3788
|
+
if (baseSet.has(1)) baseSet.clear();
|
|
3789
|
+
return { done: done, value: 2 };
|
|
3790
|
+
}
|
|
3791
|
+
};
|
|
3792
|
+
}
|
|
3793
|
+
};
|
|
3794
|
+
// eslint-disable-next-line es/no-set -- testing
|
|
3795
|
+
var baseSet = new Set([1, 2, 3, 4]);
|
|
3796
|
+
// eslint-disable-next-line es/no-set-prototype-difference -- testing
|
|
3797
|
+
return baseSet.difference(setLike).size !== 3;
|
|
3798
|
+
});
|
|
3799
|
+
|
|
3581
3800
|
// `Set.prototype.difference` method
|
|
3582
|
-
// https://
|
|
3583
|
-
$$7({ target: 'Set', proto: true, real: true, forced:
|
|
3801
|
+
// https://tc39.es/ecma262/#sec-set.prototype.difference
|
|
3802
|
+
$$7({ target: 'Set', proto: true, real: true, forced: FORCED$2 }, {
|
|
3584
3803
|
difference: difference
|
|
3585
3804
|
});
|
|
3586
3805
|
|
|
@@ -3596,7 +3815,7 @@ var add$2 = SetHelpers$1.add;
|
|
|
3596
3815
|
var has$3 = SetHelpers$1.has;
|
|
3597
3816
|
|
|
3598
3817
|
// `Set.prototype.intersection` method
|
|
3599
|
-
// https://
|
|
3818
|
+
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
3600
3819
|
var setIntersection = function intersection(other) {
|
|
3601
3820
|
var O = aSet$5(this);
|
|
3602
3821
|
var otherRec = getSetRecord$5(other);
|
|
@@ -3616,18 +3835,20 @@ var setIntersection = function intersection(other) {
|
|
|
3616
3835
|
};
|
|
3617
3836
|
|
|
3618
3837
|
var $$6 = _export;
|
|
3619
|
-
var fails$1 = fails$
|
|
3838
|
+
var fails$1 = fails$n;
|
|
3620
3839
|
var intersection = setIntersection;
|
|
3621
3840
|
var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
|
|
3622
3841
|
|
|
3623
|
-
var INCORRECT = !setMethodAcceptSetLike$5('intersection'
|
|
3624
|
-
|
|
3842
|
+
var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
|
|
3843
|
+
return result.size === 2 && result.has(1) && result.has(2);
|
|
3844
|
+
}) || fails$1(function () {
|
|
3845
|
+
// eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
|
|
3625
3846
|
return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
|
3626
3847
|
});
|
|
3627
3848
|
|
|
3628
3849
|
// `Set.prototype.intersection` method
|
|
3629
|
-
// https://
|
|
3630
|
-
$$6({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
3850
|
+
// https://tc39.es/ecma262/#sec-set.prototype.intersection
|
|
3851
|
+
$$6({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
|
|
3631
3852
|
intersection: intersection
|
|
3632
3853
|
});
|
|
3633
3854
|
|
|
@@ -3637,10 +3858,10 @@ var size$2 = setSize;
|
|
|
3637
3858
|
var getSetRecord$4 = getSetRecord$7;
|
|
3638
3859
|
var iterateSet = setIterate;
|
|
3639
3860
|
var iterateSimple$3 = iterateSimple$7;
|
|
3640
|
-
var iteratorClose$1 = iteratorClose$
|
|
3861
|
+
var iteratorClose$1 = iteratorClose$8;
|
|
3641
3862
|
|
|
3642
3863
|
// `Set.prototype.isDisjointFrom` method
|
|
3643
|
-
// https://tc39.
|
|
3864
|
+
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
3644
3865
|
var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
3645
3866
|
var O = aSet$4(this);
|
|
3646
3867
|
var otherRec = getSetRecord$4(other);
|
|
@@ -3649,7 +3870,7 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
|
|
|
3649
3870
|
}, true) !== false;
|
|
3650
3871
|
var iterator = otherRec.getIterator();
|
|
3651
3872
|
return iterateSimple$3(iterator, function (e) {
|
|
3652
|
-
if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
|
|
3873
|
+
if (has$2(O, e)) return iteratorClose$1(iterator.iterator, 'normal', false);
|
|
3653
3874
|
}) !== false;
|
|
3654
3875
|
};
|
|
3655
3876
|
|
|
@@ -3657,9 +3878,13 @@ var $$5 = _export;
|
|
|
3657
3878
|
var isDisjointFrom = setIsDisjointFrom;
|
|
3658
3879
|
var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
|
|
3659
3880
|
|
|
3881
|
+
var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result) {
|
|
3882
|
+
return !result;
|
|
3883
|
+
});
|
|
3884
|
+
|
|
3660
3885
|
// `Set.prototype.isDisjointFrom` method
|
|
3661
|
-
// https://
|
|
3662
|
-
$$5({ target: 'Set', proto: true, real: true, forced:
|
|
3886
|
+
// https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
|
|
3887
|
+
$$5({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
|
|
3663
3888
|
isDisjointFrom: isDisjointFrom
|
|
3664
3889
|
});
|
|
3665
3890
|
|
|
@@ -3669,7 +3894,7 @@ var iterate = setIterate;
|
|
|
3669
3894
|
var getSetRecord$3 = getSetRecord$7;
|
|
3670
3895
|
|
|
3671
3896
|
// `Set.prototype.isSubsetOf` method
|
|
3672
|
-
// https://tc39.
|
|
3897
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
3673
3898
|
var setIsSubsetOf = function isSubsetOf(other) {
|
|
3674
3899
|
var O = aSet$3(this);
|
|
3675
3900
|
var otherRec = getSetRecord$3(other);
|
|
@@ -3683,9 +3908,13 @@ var $$4 = _export;
|
|
|
3683
3908
|
var isSubsetOf = setIsSubsetOf;
|
|
3684
3909
|
var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
|
|
3685
3910
|
|
|
3911
|
+
var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
|
|
3912
|
+
return result;
|
|
3913
|
+
});
|
|
3914
|
+
|
|
3686
3915
|
// `Set.prototype.isSubsetOf` method
|
|
3687
|
-
// https://
|
|
3688
|
-
$$4({ target: 'Set', proto: true, real: true, forced:
|
|
3916
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issubsetof
|
|
3917
|
+
$$4({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
|
|
3689
3918
|
isSubsetOf: isSubsetOf
|
|
3690
3919
|
});
|
|
3691
3920
|
|
|
@@ -3694,17 +3923,17 @@ var has$1 = setHelpers.has;
|
|
|
3694
3923
|
var size = setSize;
|
|
3695
3924
|
var getSetRecord$2 = getSetRecord$7;
|
|
3696
3925
|
var iterateSimple$2 = iterateSimple$7;
|
|
3697
|
-
var iteratorClose = iteratorClose$
|
|
3926
|
+
var iteratorClose = iteratorClose$8;
|
|
3698
3927
|
|
|
3699
3928
|
// `Set.prototype.isSupersetOf` method
|
|
3700
|
-
// https://tc39.
|
|
3929
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
3701
3930
|
var setIsSupersetOf = function isSupersetOf(other) {
|
|
3702
3931
|
var O = aSet$2(this);
|
|
3703
3932
|
var otherRec = getSetRecord$2(other);
|
|
3704
3933
|
if (size(O) < otherRec.size) return false;
|
|
3705
3934
|
var iterator = otherRec.getIterator();
|
|
3706
3935
|
return iterateSimple$2(iterator, function (e) {
|
|
3707
|
-
if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
3936
|
+
if (!has$1(O, e)) return iteratorClose(iterator.iterator, 'normal', false);
|
|
3708
3937
|
}) !== false;
|
|
3709
3938
|
};
|
|
3710
3939
|
|
|
@@ -3712,9 +3941,13 @@ var $$3 = _export;
|
|
|
3712
3941
|
var isSupersetOf = setIsSupersetOf;
|
|
3713
3942
|
var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
|
|
3714
3943
|
|
|
3944
|
+
var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
|
|
3945
|
+
return !result;
|
|
3946
|
+
});
|
|
3947
|
+
|
|
3715
3948
|
// `Set.prototype.isSupersetOf` method
|
|
3716
|
-
// https://
|
|
3717
|
-
$$3({ target: 'Set', proto: true, real: true, forced:
|
|
3949
|
+
// https://tc39.es/ecma262/#sec-set.prototype.issupersetof
|
|
3950
|
+
$$3({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
|
3718
3951
|
isSupersetOf: isSupersetOf
|
|
3719
3952
|
});
|
|
3720
3953
|
|
|
@@ -3729,7 +3962,7 @@ var has = SetHelpers.has;
|
|
|
3729
3962
|
var remove = SetHelpers.remove;
|
|
3730
3963
|
|
|
3731
3964
|
// `Set.prototype.symmetricDifference` method
|
|
3732
|
-
// https://
|
|
3965
|
+
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
3733
3966
|
var setSymmetricDifference = function symmetricDifference(other) {
|
|
3734
3967
|
var O = aSet$1(this);
|
|
3735
3968
|
var keysIter = getSetRecord$1(other).getIterator();
|
|
@@ -3741,13 +3974,46 @@ var setSymmetricDifference = function symmetricDifference(other) {
|
|
|
3741
3974
|
return result;
|
|
3742
3975
|
};
|
|
3743
3976
|
|
|
3977
|
+
// Should get iterator record of a set-like object before cloning this
|
|
3978
|
+
// https://bugs.webkit.org/show_bug.cgi?id=289430
|
|
3979
|
+
var setMethodGetKeysBeforeCloningDetection = function (METHOD_NAME) {
|
|
3980
|
+
try {
|
|
3981
|
+
// eslint-disable-next-line es/no-set -- needed for test
|
|
3982
|
+
var baseSet = new Set();
|
|
3983
|
+
var setLike = {
|
|
3984
|
+
size: 0,
|
|
3985
|
+
has: function () { return true; },
|
|
3986
|
+
keys: function () {
|
|
3987
|
+
// eslint-disable-next-line es/no-object-defineproperty -- needed for test
|
|
3988
|
+
return Object.defineProperty({}, 'next', {
|
|
3989
|
+
get: function () {
|
|
3990
|
+
baseSet.clear();
|
|
3991
|
+
baseSet.add(4);
|
|
3992
|
+
return function () {
|
|
3993
|
+
return { done: true };
|
|
3994
|
+
};
|
|
3995
|
+
}
|
|
3996
|
+
});
|
|
3997
|
+
}
|
|
3998
|
+
};
|
|
3999
|
+
var result = baseSet[METHOD_NAME](setLike);
|
|
4000
|
+
|
|
4001
|
+
return result.size === 1 && result.values().next().value === 4;
|
|
4002
|
+
} catch (error) {
|
|
4003
|
+
return false;
|
|
4004
|
+
}
|
|
4005
|
+
};
|
|
4006
|
+
|
|
3744
4007
|
var $$2 = _export;
|
|
3745
4008
|
var symmetricDifference = setSymmetricDifference;
|
|
4009
|
+
var setMethodGetKeysBeforeCloning$1 = setMethodGetKeysBeforeCloningDetection;
|
|
3746
4010
|
var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
|
|
3747
4011
|
|
|
4012
|
+
var FORCED$1 = !setMethodAcceptSetLike$1('symmetricDifference') || !setMethodGetKeysBeforeCloning$1('symmetricDifference');
|
|
4013
|
+
|
|
3748
4014
|
// `Set.prototype.symmetricDifference` method
|
|
3749
|
-
// https://
|
|
3750
|
-
$$2({ target: 'Set', proto: true, real: true, forced:
|
|
4015
|
+
// https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
|
|
4016
|
+
$$2({ target: 'Set', proto: true, real: true, forced: FORCED$1 }, {
|
|
3751
4017
|
symmetricDifference: symmetricDifference
|
|
3752
4018
|
});
|
|
3753
4019
|
|
|
@@ -3758,7 +4024,7 @@ var getSetRecord = getSetRecord$7;
|
|
|
3758
4024
|
var iterateSimple = iterateSimple$7;
|
|
3759
4025
|
|
|
3760
4026
|
// `Set.prototype.union` method
|
|
3761
|
-
// https://
|
|
4027
|
+
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
3762
4028
|
var setUnion = function union(other) {
|
|
3763
4029
|
var O = aSet(this);
|
|
3764
4030
|
var keysIter = getSetRecord(other).getIterator();
|
|
@@ -3771,11 +4037,14 @@ var setUnion = function union(other) {
|
|
|
3771
4037
|
|
|
3772
4038
|
var $$1 = _export;
|
|
3773
4039
|
var union = setUnion;
|
|
4040
|
+
var setMethodGetKeysBeforeCloning = setMethodGetKeysBeforeCloningDetection;
|
|
3774
4041
|
var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
|
|
3775
4042
|
|
|
4043
|
+
var FORCED = !setMethodAcceptSetLike('union') || !setMethodGetKeysBeforeCloning('union');
|
|
4044
|
+
|
|
3776
4045
|
// `Set.prototype.union` method
|
|
3777
|
-
// https://
|
|
3778
|
-
$$1({ target: 'Set', proto: true, real: true, forced:
|
|
4046
|
+
// https://tc39.es/ecma262/#sec-set.prototype.union
|
|
4047
|
+
$$1({ target: 'Set', proto: true, real: true, forced: FORCED }, {
|
|
3779
4048
|
union: union
|
|
3780
4049
|
});
|
|
3781
4050
|
|
|
@@ -3907,13 +4176,13 @@ var getBuiltIn = getBuiltIn$5;
|
|
|
3907
4176
|
var uncurryThis = functionUncurryThis;
|
|
3908
4177
|
var call = functionCall;
|
|
3909
4178
|
var isCallable = isCallable$j;
|
|
3910
|
-
var isObject = isObject$
|
|
4179
|
+
var isObject = isObject$c;
|
|
3911
4180
|
var isArray = isArray$2;
|
|
3912
4181
|
var hasOwn = hasOwnProperty_1;
|
|
3913
4182
|
var toString = toString$8;
|
|
3914
4183
|
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
3915
4184
|
var createProperty = createProperty$2;
|
|
3916
|
-
var fails = fails$
|
|
4185
|
+
var fails = fails$n;
|
|
3917
4186
|
var parseJSONString = parseJsonString;
|
|
3918
4187
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
3919
4188
|
|
|
@@ -4031,10 +4300,12 @@ Context.prototype = {
|
|
|
4031
4300
|
var expectKeypair = false;
|
|
4032
4301
|
var object = {};
|
|
4033
4302
|
var nodes = {};
|
|
4303
|
+
var closed = false;
|
|
4034
4304
|
while (i < source.length) {
|
|
4035
4305
|
i = this.until(['"', '}'], i);
|
|
4036
4306
|
if (at(source, i) === '}' && !expectKeypair) {
|
|
4037
4307
|
i++;
|
|
4308
|
+
closed = true;
|
|
4038
4309
|
break;
|
|
4039
4310
|
}
|
|
4040
4311
|
// Parsing the key
|
|
@@ -4054,9 +4325,11 @@ Context.prototype = {
|
|
|
4054
4325
|
i++;
|
|
4055
4326
|
} else if (chr === '}') {
|
|
4056
4327
|
i++;
|
|
4328
|
+
closed = true;
|
|
4057
4329
|
break;
|
|
4058
4330
|
}
|
|
4059
4331
|
}
|
|
4332
|
+
if (!closed) throw new SyntaxError$1('Unterminated object at: ' + i);
|
|
4060
4333
|
return this.node(OBJECT, object, this.index, i, nodes);
|
|
4061
4334
|
},
|
|
4062
4335
|
array: function () {
|
|
@@ -4065,10 +4338,12 @@ Context.prototype = {
|
|
|
4065
4338
|
var expectElement = false;
|
|
4066
4339
|
var array = [];
|
|
4067
4340
|
var nodes = [];
|
|
4341
|
+
var closed = false;
|
|
4068
4342
|
while (i < source.length) {
|
|
4069
4343
|
i = this.skip(IS_WHITESPACE, i);
|
|
4070
4344
|
if (at(source, i) === ']' && !expectElement) {
|
|
4071
4345
|
i++;
|
|
4346
|
+
closed = true;
|
|
4072
4347
|
break;
|
|
4073
4348
|
}
|
|
4074
4349
|
var result = this.fork(i).parse();
|
|
@@ -4080,9 +4355,11 @@ Context.prototype = {
|
|
|
4080
4355
|
i++;
|
|
4081
4356
|
} else if (at(source, i) === ']') {
|
|
4082
4357
|
i++;
|
|
4358
|
+
closed = true;
|
|
4083
4359
|
break;
|
|
4084
4360
|
}
|
|
4085
4361
|
}
|
|
4362
|
+
if (!closed) throw new SyntaxError$1('Unterminated array at: ' + i);
|
|
4086
4363
|
return this.node(OBJECT, array, this.index, i, nodes);
|
|
4087
4364
|
},
|
|
4088
4365
|
string: function () {
|
|
@@ -4098,7 +4375,11 @@ Context.prototype = {
|
|
|
4098
4375
|
if (at(source, i) === '0') i++;
|
|
4099
4376
|
else if (exec(IS_NON_ZERO_DIGIT, at(source, i))) i = this.skip(IS_DIGIT, i + 1);
|
|
4100
4377
|
else throw new SyntaxError$1('Failed to parse number at: ' + i);
|
|
4101
|
-
if (at(source, i) === '.')
|
|
4378
|
+
if (at(source, i) === '.') {
|
|
4379
|
+
var fractionStartIndex = i + 1;
|
|
4380
|
+
i = this.skip(IS_DIGIT, fractionStartIndex);
|
|
4381
|
+
if (fractionStartIndex === i) throw new SyntaxError$1("Failed to parse number's fraction at: " + i);
|
|
4382
|
+
}
|
|
4102
4383
|
if (at(source, i) === 'e' || at(source, i) === 'E') {
|
|
4103
4384
|
i++;
|
|
4104
4385
|
if (at(source, i) === '+' || at(source, i) === '-') i++;
|