@danielgindi/selectbox 1.0.137 → 1.0.139

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/dist/lib.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @danielgindi/selectbox 1.0.137
2
+ * @danielgindi/selectbox 1.0.139
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  'use strict';
@@ -12,2483 +12,6 @@ var VirtualListHelper = require('@danielgindi/virtual-list-helper');
12
12
  var keycodeJs = require('keycode-js');
13
13
  var mitt = require('mitt');
14
14
 
15
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
16
-
17
- function getDefaultExportFromCjs (x) {
18
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
19
- }
20
-
21
- function getDefaultExportFromNamespaceIfPresent (n) {
22
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
23
- }
24
-
25
- function getDefaultExportFromNamespaceIfNotNamed (n) {
26
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
27
- }
28
-
29
- function getAugmentedNamespace(n) {
30
- if (n.__esModule) return n;
31
- var f = n.default;
32
- if (typeof f == "function") {
33
- var a = function a () {
34
- if (this instanceof a) {
35
- return Reflect.construct(f, arguments, this.constructor);
36
- }
37
- return f.apply(this, arguments);
38
- };
39
- a.prototype = f.prototype;
40
- } else a = {};
41
- Object.defineProperty(a, '__esModule', {value: true});
42
- Object.keys(n).forEach(function (k) {
43
- var d = Object.getOwnPropertyDescriptor(n, k);
44
- Object.defineProperty(a, k, d.get ? d : {
45
- enumerable: true,
46
- get: function () {
47
- return n[k];
48
- }
49
- });
50
- });
51
- return a;
52
- }
53
-
54
- var web_domCollections_iterator = {};
55
-
56
- 'use strict';
57
- var check = function (it) {
58
- return it && it.Math === Math && it;
59
- };
60
-
61
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
62
- var global$f =
63
- // eslint-disable-next-line es/no-global-this -- safe
64
- check(typeof globalThis == 'object' && globalThis) ||
65
- check(typeof window == 'object' && window) ||
66
- // eslint-disable-next-line no-restricted-globals -- safe
67
- check(typeof self == 'object' && self) ||
68
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
69
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
70
- // eslint-disable-next-line no-new-func -- fallback
71
- (function () { return this; })() || Function('return this')();
72
-
73
- var global$g = /*@__PURE__*/getDefaultExportFromCjs(global$f);
74
-
75
- 'use strict';
76
- // iterable DOM collections
77
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
78
- var domIterables = {
79
- CSSRuleList: 0,
80
- CSSStyleDeclaration: 0,
81
- CSSValueList: 0,
82
- ClientRectList: 0,
83
- DOMRectList: 0,
84
- DOMStringList: 0,
85
- DOMTokenList: 1,
86
- DataTransferItemList: 0,
87
- FileList: 0,
88
- HTMLAllCollection: 0,
89
- HTMLCollection: 0,
90
- HTMLFormElement: 0,
91
- HTMLSelectElement: 0,
92
- MediaList: 0,
93
- MimeTypeArray: 0,
94
- NamedNodeMap: 0,
95
- NodeList: 1,
96
- PaintRequestList: 0,
97
- Plugin: 0,
98
- PluginArray: 0,
99
- SVGLengthList: 0,
100
- SVGNumberList: 0,
101
- SVGPathSegList: 0,
102
- SVGPointList: 0,
103
- SVGStringList: 0,
104
- SVGTransformList: 0,
105
- SourceBufferList: 0,
106
- StyleSheetList: 0,
107
- TextTrackCueList: 0,
108
- TextTrackList: 0,
109
- TouchList: 0
110
- };
111
-
112
- var domIterables$1 = /*@__PURE__*/getDefaultExportFromCjs(domIterables);
113
-
114
- 'use strict';
115
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
116
- var documentAll = typeof document == 'object' && document.all;
117
-
118
- // `IsCallable` abstract operation
119
- // https://tc39.es/ecma262/#sec-iscallable
120
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
121
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
122
- return typeof argument == 'function' || argument === documentAll;
123
- } : function (argument) {
124
- return typeof argument == 'function';
125
- };
126
-
127
- var isCallable$h = /*@__PURE__*/getDefaultExportFromCjs(isCallable$g);
128
-
129
- 'use strict';
130
- var isCallable$f = isCallable$g;
131
-
132
- var isObject$7 = function (it) {
133
- return typeof it == 'object' ? it !== null : isCallable$f(it);
134
- };
135
-
136
- var isObject$8 = /*@__PURE__*/getDefaultExportFromCjs(isObject$7);
137
-
138
- 'use strict';
139
- var global$e = global$f;
140
- var isObject$6 = isObject$7;
141
-
142
- var document$1 = global$e.document;
143
- // typeof document.createElement is 'object' in old IE
144
- var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
145
-
146
- var documentCreateElement$2 = function (it) {
147
- return EXISTS$1 ? document$1.createElement(it) : {};
148
- };
149
-
150
- var documentCreateElement$3 = /*@__PURE__*/getDefaultExportFromCjs(documentCreateElement$2);
151
-
152
- 'use strict';
153
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
154
- var documentCreateElement$1 = documentCreateElement$2;
155
-
156
- var classList = documentCreateElement$1('span').classList;
157
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
158
-
159
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
160
-
161
- var domTokenListPrototype$1 = /*@__PURE__*/getDefaultExportFromCjs(domTokenListPrototype);
162
-
163
- 'use strict';
164
- var fails$f = function (exec) {
165
- try {
166
- return !!exec();
167
- } catch (error) {
168
- return true;
169
- }
170
- };
171
-
172
- var fails$g = /*@__PURE__*/getDefaultExportFromCjs(fails$f);
173
-
174
- 'use strict';
175
- var fails$e = fails$f;
176
-
177
- var functionBindNative = !fails$e(function () {
178
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
179
- var test = (function () { /* empty */ }).bind();
180
- // eslint-disable-next-line no-prototype-builtins -- safe
181
- return typeof test != 'function' || test.hasOwnProperty('prototype');
182
- });
183
-
184
- var functionBindNative$1 = /*@__PURE__*/getDefaultExportFromCjs(functionBindNative);
185
-
186
- 'use strict';
187
- var NATIVE_BIND$2 = functionBindNative;
188
-
189
- var FunctionPrototype$2 = Function.prototype;
190
- var call$a = FunctionPrototype$2.call;
191
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$a, call$a);
192
-
193
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
194
- return function () {
195
- return call$a.apply(fn, arguments);
196
- };
197
- };
198
-
199
- var functionUncurryThis$1 = /*@__PURE__*/getDefaultExportFromCjs(functionUncurryThis);
200
-
201
- 'use strict';
202
- var uncurryThis$d = functionUncurryThis;
203
-
204
- var toString$6 = uncurryThis$d({}.toString);
205
- var stringSlice$5 = uncurryThis$d(''.slice);
206
-
207
- var classofRaw$1 = function (it) {
208
- return stringSlice$5(toString$6(it), 8, -1);
209
- };
210
-
211
- var classofRaw$2 = /*@__PURE__*/getDefaultExportFromCjs(classofRaw$1);
212
-
213
- 'use strict';
214
- var uncurryThis$c = functionUncurryThis;
215
- var fails$d = fails$f;
216
- var classof$4 = classofRaw$1;
217
-
218
- var $Object$4 = Object;
219
- var split = uncurryThis$c(''.split);
220
-
221
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
222
- var indexedObject = fails$d(function () {
223
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
224
- // eslint-disable-next-line no-prototype-builtins -- safe
225
- return !$Object$4('z').propertyIsEnumerable(0);
226
- }) ? function (it) {
227
- return classof$4(it) === 'String' ? split(it, '') : $Object$4(it);
228
- } : $Object$4;
229
-
230
- var indexedObject$1 = /*@__PURE__*/getDefaultExportFromCjs(indexedObject);
231
-
232
- 'use strict';
233
- // we can't use just `it == null` since of `document.all` special case
234
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
235
- var isNullOrUndefined$3 = function (it) {
236
- return it === null || it === undefined;
237
- };
238
-
239
- var isNullOrUndefined$4 = /*@__PURE__*/getDefaultExportFromCjs(isNullOrUndefined$3);
240
-
241
- 'use strict';
242
- var isNullOrUndefined$2 = isNullOrUndefined$3;
243
-
244
- var $TypeError$7 = TypeError;
245
-
246
- // `RequireObjectCoercible` abstract operation
247
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
248
- var requireObjectCoercible$4 = function (it) {
249
- if (isNullOrUndefined$2(it)) throw new $TypeError$7("Can't call method on " + it);
250
- return it;
251
- };
252
-
253
- var requireObjectCoercible$5 = /*@__PURE__*/getDefaultExportFromCjs(requireObjectCoercible$4);
254
-
255
- 'use strict';
256
- // toObject with fallback for non-array-like ES3 strings
257
- var IndexedObject = indexedObject;
258
- var requireObjectCoercible$3 = requireObjectCoercible$4;
259
-
260
- var toIndexedObject$5 = function (it) {
261
- return IndexedObject(requireObjectCoercible$3(it));
262
- };
263
-
264
- var toIndexedObject$6 = /*@__PURE__*/getDefaultExportFromCjs(toIndexedObject$5);
265
-
266
- var shared$6 = {exports: {}};
267
-
268
- 'use strict';
269
- var isPure = false;
270
-
271
- var isPure$1 = /*@__PURE__*/getDefaultExportFromCjs(isPure);
272
-
273
- 'use strict';
274
- var global$d = global$f;
275
-
276
- // eslint-disable-next-line es/no-object-defineproperty -- safe
277
- var defineProperty$4 = Object.defineProperty;
278
-
279
- var defineGlobalProperty$3 = function (key, value) {
280
- try {
281
- defineProperty$4(global$d, key, { value: value, configurable: true, writable: true });
282
- } catch (error) {
283
- global$d[key] = value;
284
- } return value;
285
- };
286
-
287
- var defineGlobalProperty$4 = /*@__PURE__*/getDefaultExportFromCjs(defineGlobalProperty$3);
288
-
289
- 'use strict';
290
- var global$c = global$f;
291
- var defineGlobalProperty$2 = defineGlobalProperty$3;
292
-
293
- var SHARED = '__core-js_shared__';
294
- var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
295
-
296
- var sharedStore = store$3;
297
-
298
- var sharedStore$1 = /*@__PURE__*/getDefaultExportFromCjs(sharedStore);
299
-
300
- var shared$4 = shared$6.exports;
301
-
302
- 'use strict';
303
- var IS_PURE$3 = isPure;
304
- var store$2 = sharedStore;
305
-
306
- (shared$6.exports = function (key, value) {
307
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
308
- })('versions', []).push({
309
- version: '3.35.1',
310
- mode: IS_PURE$3 ? 'pure' : 'global',
311
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
312
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
313
- source: 'https://github.com/zloirock/core-js'
314
- });
315
-
316
- var sharedExports = shared$6.exports;
317
- var shared$5 = /*@__PURE__*/getDefaultExportFromCjs(sharedExports);
318
-
319
- 'use strict';
320
- var requireObjectCoercible$2 = requireObjectCoercible$4;
321
-
322
- var $Object$3 = Object;
323
-
324
- // `ToObject` abstract operation
325
- // https://tc39.es/ecma262/#sec-toobject
326
- var toObject$3 = function (argument) {
327
- return $Object$3(requireObjectCoercible$2(argument));
328
- };
329
-
330
- var toObject$4 = /*@__PURE__*/getDefaultExportFromCjs(toObject$3);
331
-
332
- 'use strict';
333
- var uncurryThis$b = functionUncurryThis;
334
- var toObject$2 = toObject$3;
335
-
336
- var hasOwnProperty$1 = uncurryThis$b({}.hasOwnProperty);
337
-
338
- // `HasOwnProperty` abstract operation
339
- // https://tc39.es/ecma262/#sec-hasownproperty
340
- // eslint-disable-next-line es/no-object-hasown -- safe
341
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
342
- return hasOwnProperty$1(toObject$2(it), key);
343
- };
344
-
345
- var hasOwnProperty$2 = /*@__PURE__*/getDefaultExportFromCjs(hasOwnProperty_1);
346
-
347
- 'use strict';
348
- var uncurryThis$a = functionUncurryThis;
349
-
350
- var id = 0;
351
- var postfix = Math.random();
352
- var toString$5 = uncurryThis$a(1.0.toString);
353
-
354
- var uid$2 = function (key) {
355
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
356
- };
357
-
358
- var uid$3 = /*@__PURE__*/getDefaultExportFromCjs(uid$2);
359
-
360
- 'use strict';
361
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
362
-
363
- var engineUserAgent$1 = /*@__PURE__*/getDefaultExportFromCjs(engineUserAgent);
364
-
365
- 'use strict';
366
- var global$b = global$f;
367
- var userAgent = engineUserAgent;
368
-
369
- var process = global$b.process;
370
- var Deno = global$b.Deno;
371
- var versions = process && process.versions || Deno && Deno.version;
372
- var v8 = versions && versions.v8;
373
- var match, version;
374
-
375
- if (v8) {
376
- match = v8.split('.');
377
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
378
- // but their correct versions are not interesting for us
379
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
380
- }
381
-
382
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
383
- // so check `userAgent` even if `.v8` exists, but 0
384
- if (!version && userAgent) {
385
- match = userAgent.match(/Edge\/(\d+)/);
386
- if (!match || match[1] >= 74) {
387
- match = userAgent.match(/Chrome\/(\d+)/);
388
- if (match) version = +match[1];
389
- }
390
- }
391
-
392
- var engineV8Version = version;
393
-
394
- var engineV8Version$1 = /*@__PURE__*/getDefaultExportFromCjs(engineV8Version);
395
-
396
- 'use strict';
397
- /* eslint-disable es/no-symbol -- required for testing */
398
- var V8_VERSION = engineV8Version;
399
- var fails$c = fails$f;
400
- var global$a = global$f;
401
-
402
- var $String$5 = global$a.String;
403
-
404
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
405
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
406
- var symbol = Symbol('symbol detection');
407
- // Chrome 38 Symbol has incorrect toString conversion
408
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
409
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
410
- // of course, fail.
411
- return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
412
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
413
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
414
- });
415
-
416
- var symbolConstructorDetection$1 = /*@__PURE__*/getDefaultExportFromCjs(symbolConstructorDetection);
417
-
418
- 'use strict';
419
- /* eslint-disable es/no-symbol -- required for testing */
420
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
421
-
422
- var useSymbolAsUid = NATIVE_SYMBOL$1
423
- && !Symbol.sham
424
- && typeof Symbol.iterator == 'symbol';
425
-
426
- var useSymbolAsUid$1 = /*@__PURE__*/getDefaultExportFromCjs(useSymbolAsUid);
427
-
428
- 'use strict';
429
- var global$9 = global$f;
430
- var shared$3 = sharedExports;
431
- var hasOwn$8 = hasOwnProperty_1;
432
- var uid$1 = uid$2;
433
- var NATIVE_SYMBOL = symbolConstructorDetection;
434
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
435
-
436
- var Symbol$1 = global$9.Symbol;
437
- var WellKnownSymbolsStore = shared$3('wks');
438
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
439
-
440
- var wellKnownSymbol$a = function (name) {
441
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
442
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
443
- ? Symbol$1[name]
444
- : createWellKnownSymbol('Symbol.' + name);
445
- } return WellKnownSymbolsStore[name];
446
- };
447
-
448
- var wellKnownSymbol$b = /*@__PURE__*/getDefaultExportFromCjs(wellKnownSymbol$a);
449
-
450
- 'use strict';
451
- var isObject$5 = isObject$7;
452
-
453
- var $String$4 = String;
454
- var $TypeError$6 = TypeError;
455
-
456
- // `Assert: Type(argument) is Object`
457
- var anObject$8 = function (argument) {
458
- if (isObject$5(argument)) return argument;
459
- throw new $TypeError$6($String$4(argument) + ' is not an object');
460
- };
461
-
462
- var anObject$9 = /*@__PURE__*/getDefaultExportFromCjs(anObject$8);
463
-
464
- var objectDefineProperties = {};
465
-
466
- 'use strict';
467
- var fails$b = fails$f;
468
-
469
- // Detect IE8's incomplete defineProperty implementation
470
- var descriptors = !fails$b(function () {
471
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
472
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
473
- });
474
-
475
- var descriptors$1 = /*@__PURE__*/getDefaultExportFromCjs(descriptors);
476
-
477
- 'use strict';
478
- var DESCRIPTORS$8 = descriptors;
479
- var fails$a = fails$f;
480
-
481
- // V8 ~ Chrome 36-
482
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
483
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$a(function () {
484
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
485
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
486
- value: 42,
487
- writable: false
488
- }).prototype !== 42;
489
- });
490
-
491
- var v8PrototypeDefineBug$1 = /*@__PURE__*/getDefaultExportFromCjs(v8PrototypeDefineBug);
492
-
493
- var objectDefineProperty = {};
494
-
495
- 'use strict';
496
- var DESCRIPTORS$7 = descriptors;
497
- var fails$9 = fails$f;
498
- var createElement = documentCreateElement$2;
499
-
500
- // Thanks to IE8 for its funny defineProperty
501
- var ie8DomDefine = !DESCRIPTORS$7 && !fails$9(function () {
502
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
503
- return Object.defineProperty(createElement('div'), 'a', {
504
- get: function () { return 7; }
505
- }).a !== 7;
506
- });
507
-
508
- var ie8DomDefine$1 = /*@__PURE__*/getDefaultExportFromCjs(ie8DomDefine);
509
-
510
- 'use strict';
511
- var NATIVE_BIND$1 = functionBindNative;
512
-
513
- var call$9 = Function.prototype.call;
514
-
515
- var functionCall = NATIVE_BIND$1 ? call$9.bind(call$9) : function () {
516
- return call$9.apply(call$9, arguments);
517
- };
518
-
519
- var functionCall$1 = /*@__PURE__*/getDefaultExportFromCjs(functionCall);
520
-
521
- 'use strict';
522
- var global$8 = global$f;
523
- var isCallable$e = isCallable$g;
524
-
525
- var aFunction = function (argument) {
526
- return isCallable$e(argument) ? argument : undefined;
527
- };
528
-
529
- var getBuiltIn$3 = function (namespace, method) {
530
- return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method];
531
- };
532
-
533
- var getBuiltIn$4 = /*@__PURE__*/getDefaultExportFromCjs(getBuiltIn$3);
534
-
535
- 'use strict';
536
- var uncurryThis$9 = functionUncurryThis;
537
-
538
- var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
539
-
540
- var objectIsPrototypeOf$1 = /*@__PURE__*/getDefaultExportFromCjs(objectIsPrototypeOf);
541
-
542
- 'use strict';
543
- var getBuiltIn$2 = getBuiltIn$3;
544
- var isCallable$d = isCallable$g;
545
- var isPrototypeOf = objectIsPrototypeOf;
546
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
547
-
548
- var $Object$2 = Object;
549
-
550
- var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
551
- return typeof it == 'symbol';
552
- } : function (it) {
553
- var $Symbol = getBuiltIn$2('Symbol');
554
- return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
555
- };
556
-
557
- var isSymbol$3 = /*@__PURE__*/getDefaultExportFromCjs(isSymbol$2);
558
-
559
- 'use strict';
560
- var $String$3 = String;
561
-
562
- var tryToString$1 = function (argument) {
563
- try {
564
- return $String$3(argument);
565
- } catch (error) {
566
- return 'Object';
567
- }
568
- };
569
-
570
- var tryToString$2 = /*@__PURE__*/getDefaultExportFromCjs(tryToString$1);
571
-
572
- 'use strict';
573
- var isCallable$c = isCallable$g;
574
- var tryToString = tryToString$1;
575
-
576
- var $TypeError$5 = TypeError;
577
-
578
- // `Assert: IsCallable(argument) is true`
579
- var aCallable$2 = function (argument) {
580
- if (isCallable$c(argument)) return argument;
581
- throw new $TypeError$5(tryToString(argument) + ' is not a function');
582
- };
583
-
584
- var aCallable$3 = /*@__PURE__*/getDefaultExportFromCjs(aCallable$2);
585
-
586
- 'use strict';
587
- var aCallable$1 = aCallable$2;
588
- var isNullOrUndefined$1 = isNullOrUndefined$3;
589
-
590
- // `GetMethod` abstract operation
591
- // https://tc39.es/ecma262/#sec-getmethod
592
- var getMethod$2 = function (V, P) {
593
- var func = V[P];
594
- return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
595
- };
596
-
597
- var getMethod$3 = /*@__PURE__*/getDefaultExportFromCjs(getMethod$2);
598
-
599
- 'use strict';
600
- var call$8 = functionCall;
601
- var isCallable$b = isCallable$g;
602
- var isObject$4 = isObject$7;
603
-
604
- var $TypeError$4 = TypeError;
605
-
606
- // `OrdinaryToPrimitive` abstract operation
607
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
608
- var ordinaryToPrimitive$1 = function (input, pref) {
609
- var fn, val;
610
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$4(val = call$8(fn, input))) return val;
611
- if (isCallable$b(fn = input.valueOf) && !isObject$4(val = call$8(fn, input))) return val;
612
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$4(val = call$8(fn, input))) return val;
613
- throw new $TypeError$4("Can't convert object to primitive value");
614
- };
615
-
616
- var ordinaryToPrimitive$2 = /*@__PURE__*/getDefaultExportFromCjs(ordinaryToPrimitive$1);
617
-
618
- 'use strict';
619
- var call$7 = functionCall;
620
- var isObject$3 = isObject$7;
621
- var isSymbol$1 = isSymbol$2;
622
- var getMethod$1 = getMethod$2;
623
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
624
- var wellKnownSymbol$9 = wellKnownSymbol$a;
625
-
626
- var $TypeError$3 = TypeError;
627
- var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
628
-
629
- // `ToPrimitive` abstract operation
630
- // https://tc39.es/ecma262/#sec-toprimitive
631
- var toPrimitive$1 = function (input, pref) {
632
- if (!isObject$3(input) || isSymbol$1(input)) return input;
633
- var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
634
- var result;
635
- if (exoticToPrim) {
636
- if (pref === undefined) pref = 'default';
637
- result = call$7(exoticToPrim, input, pref);
638
- if (!isObject$3(result) || isSymbol$1(result)) return result;
639
- throw new $TypeError$3("Can't convert object to primitive value");
640
- }
641
- if (pref === undefined) pref = 'number';
642
- return ordinaryToPrimitive(input, pref);
643
- };
644
-
645
- var toPrimitive$2 = /*@__PURE__*/getDefaultExportFromCjs(toPrimitive$1);
646
-
647
- 'use strict';
648
- var toPrimitive = toPrimitive$1;
649
- var isSymbol = isSymbol$2;
650
-
651
- // `ToPropertyKey` abstract operation
652
- // https://tc39.es/ecma262/#sec-topropertykey
653
- var toPropertyKey$2 = function (argument) {
654
- var key = toPrimitive(argument, 'string');
655
- return isSymbol(key) ? key : key + '';
656
- };
657
-
658
- var toPropertyKey$3 = /*@__PURE__*/getDefaultExportFromCjs(toPropertyKey$2);
659
-
660
- 'use strict';
661
- var DESCRIPTORS$6 = descriptors;
662
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
663
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
664
- var anObject$7 = anObject$8;
665
- var toPropertyKey$1 = toPropertyKey$2;
666
-
667
- var $TypeError$2 = TypeError;
668
- // eslint-disable-next-line es/no-object-defineproperty -- safe
669
- var $defineProperty = Object.defineProperty;
670
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
671
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
672
- var ENUMERABLE = 'enumerable';
673
- var CONFIGURABLE$1 = 'configurable';
674
- var WRITABLE = 'writable';
675
-
676
- // `Object.defineProperty` method
677
- // https://tc39.es/ecma262/#sec-object.defineproperty
678
- var f$5 = objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
679
- anObject$7(O);
680
- P = toPropertyKey$1(P);
681
- anObject$7(Attributes);
682
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
683
- var current = $getOwnPropertyDescriptor$1(O, P);
684
- if (current && current[WRITABLE]) {
685
- O[P] = Attributes.value;
686
- Attributes = {
687
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
688
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
689
- writable: false
690
- };
691
- }
692
- } return $defineProperty(O, P, Attributes);
693
- } : $defineProperty : function defineProperty(O, P, Attributes) {
694
- anObject$7(O);
695
- P = toPropertyKey$1(P);
696
- anObject$7(Attributes);
697
- if (IE8_DOM_DEFINE$1) try {
698
- return $defineProperty(O, P, Attributes);
699
- } catch (error) { /* empty */ }
700
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$2('Accessors not supported');
701
- if ('value' in Attributes) O[P] = Attributes.value;
702
- return O;
703
- };
704
-
705
- 'use strict';
706
- var ceil = Math.ceil;
707
- var floor$1 = Math.floor;
708
-
709
- // `Math.trunc` method
710
- // https://tc39.es/ecma262/#sec-math.trunc
711
- // eslint-disable-next-line es/no-math-trunc -- safe
712
- var mathTrunc = Math.trunc || function trunc(x) {
713
- var n = +x;
714
- return (n > 0 ? floor$1 : ceil)(n);
715
- };
716
-
717
- var mathTrunc$1 = /*@__PURE__*/getDefaultExportFromCjs(mathTrunc);
718
-
719
- 'use strict';
720
- var trunc = mathTrunc;
721
-
722
- // `ToIntegerOrInfinity` abstract operation
723
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
724
- var toIntegerOrInfinity$4 = function (argument) {
725
- var number = +argument;
726
- // eslint-disable-next-line no-self-compare -- NaN check
727
- return number !== number || number === 0 ? 0 : trunc(number);
728
- };
729
-
730
- var toIntegerOrInfinity$5 = /*@__PURE__*/getDefaultExportFromCjs(toIntegerOrInfinity$4);
731
-
732
- 'use strict';
733
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
734
-
735
- var max$1 = Math.max;
736
- var min$2 = Math.min;
737
-
738
- // Helper for a popular repeating case of the spec:
739
- // Let integer be ? ToInteger(index).
740
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
741
- var toAbsoluteIndex$1 = function (index, length) {
742
- var integer = toIntegerOrInfinity$3(index);
743
- return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
744
- };
745
-
746
- var toAbsoluteIndex$2 = /*@__PURE__*/getDefaultExportFromCjs(toAbsoluteIndex$1);
747
-
748
- 'use strict';
749
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
750
-
751
- var min$1 = Math.min;
752
-
753
- // `ToLength` abstract operation
754
- // https://tc39.es/ecma262/#sec-tolength
755
- var toLength$2 = function (argument) {
756
- var len = toIntegerOrInfinity$2(argument);
757
- return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
758
- };
759
-
760
- var toLength$3 = /*@__PURE__*/getDefaultExportFromCjs(toLength$2);
761
-
762
- 'use strict';
763
- var toLength$1 = toLength$2;
764
-
765
- // `LengthOfArrayLike` abstract operation
766
- // https://tc39.es/ecma262/#sec-lengthofarraylike
767
- var lengthOfArrayLike$1 = function (obj) {
768
- return toLength$1(obj.length);
769
- };
770
-
771
- var lengthOfArrayLike$2 = /*@__PURE__*/getDefaultExportFromCjs(lengthOfArrayLike$1);
772
-
773
- 'use strict';
774
- var toIndexedObject$4 = toIndexedObject$5;
775
- var toAbsoluteIndex = toAbsoluteIndex$1;
776
- var lengthOfArrayLike = lengthOfArrayLike$1;
777
-
778
- // `Array.prototype.{ indexOf, includes }` methods implementation
779
- var createMethod$1 = function (IS_INCLUDES) {
780
- return function ($this, el, fromIndex) {
781
- var O = toIndexedObject$4($this);
782
- var length = lengthOfArrayLike(O);
783
- var index = toAbsoluteIndex(fromIndex, length);
784
- var value;
785
- // Array#includes uses SameValueZero equality algorithm
786
- // eslint-disable-next-line no-self-compare -- NaN check
787
- if (IS_INCLUDES && el !== el) while (length > index) {
788
- value = O[index++];
789
- // eslint-disable-next-line no-self-compare -- NaN check
790
- if (value !== value) return true;
791
- // Array#indexOf ignores holes, Array#includes - not
792
- } else for (;length > index; index++) {
793
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
794
- } return !IS_INCLUDES && -1;
795
- };
796
- };
797
-
798
- var arrayIncludes = {
799
- // `Array.prototype.includes` method
800
- // https://tc39.es/ecma262/#sec-array.prototype.includes
801
- includes: createMethod$1(true),
802
- // `Array.prototype.indexOf` method
803
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
804
- indexOf: createMethod$1(false)
805
- };
806
-
807
- var arrayIncludes$1 = /*@__PURE__*/getDefaultExportFromCjs(arrayIncludes);
808
-
809
- 'use strict';
810
- var hiddenKeys$4 = {};
811
-
812
- var hiddenKeys$5 = /*@__PURE__*/getDefaultExportFromCjs(hiddenKeys$4);
813
-
814
- 'use strict';
815
- var uncurryThis$8 = functionUncurryThis;
816
- var hasOwn$7 = hasOwnProperty_1;
817
- var toIndexedObject$3 = toIndexedObject$5;
818
- var indexOf$1 = arrayIncludes.indexOf;
819
- var hiddenKeys$3 = hiddenKeys$4;
820
-
821
- var push$1 = uncurryThis$8([].push);
822
-
823
- var objectKeysInternal = function (object, names) {
824
- var O = toIndexedObject$3(object);
825
- var i = 0;
826
- var result = [];
827
- var key;
828
- for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push$1(result, key);
829
- // Don't enum bug & hidden keys
830
- while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
831
- ~indexOf$1(result, key) || push$1(result, key);
832
- }
833
- return result;
834
- };
835
-
836
- var objectKeysInternal$1 = /*@__PURE__*/getDefaultExportFromCjs(objectKeysInternal);
837
-
838
- 'use strict';
839
- // IE8- don't enum bug keys
840
- var enumBugKeys$3 = [
841
- 'constructor',
842
- 'hasOwnProperty',
843
- 'isPrototypeOf',
844
- 'propertyIsEnumerable',
845
- 'toLocaleString',
846
- 'toString',
847
- 'valueOf'
848
- ];
849
-
850
- var enumBugKeys$4 = /*@__PURE__*/getDefaultExportFromCjs(enumBugKeys$3);
851
-
852
- 'use strict';
853
- var internalObjectKeys$1 = objectKeysInternal;
854
- var enumBugKeys$2 = enumBugKeys$3;
855
-
856
- // `Object.keys` method
857
- // https://tc39.es/ecma262/#sec-object.keys
858
- // eslint-disable-next-line es/no-object-keys -- safe
859
- var objectKeys$1 = Object.keys || function keys(O) {
860
- return internalObjectKeys$1(O, enumBugKeys$2);
861
- };
862
-
863
- var objectKeys$2 = /*@__PURE__*/getDefaultExportFromCjs(objectKeys$1);
864
-
865
- 'use strict';
866
- var DESCRIPTORS$5 = descriptors;
867
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
868
- var definePropertyModule$3 = objectDefineProperty;
869
- var anObject$6 = anObject$8;
870
- var toIndexedObject$2 = toIndexedObject$5;
871
- var objectKeys = objectKeys$1;
872
-
873
- // `Object.defineProperties` method
874
- // https://tc39.es/ecma262/#sec-object.defineproperties
875
- // eslint-disable-next-line es/no-object-defineproperties -- safe
876
- var f$4 = objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
877
- anObject$6(O);
878
- var props = toIndexedObject$2(Properties);
879
- var keys = objectKeys(Properties);
880
- var length = keys.length;
881
- var index = 0;
882
- var key;
883
- while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
884
- return O;
885
- };
886
-
887
- 'use strict';
888
- var getBuiltIn$1 = getBuiltIn$3;
889
-
890
- var html$1 = getBuiltIn$1('document', 'documentElement');
891
-
892
- var html$2 = /*@__PURE__*/getDefaultExportFromCjs(html$1);
893
-
894
- 'use strict';
895
- var shared$2 = sharedExports;
896
- var uid = uid$2;
897
-
898
- var keys = shared$2('keys');
899
-
900
- var sharedKey$3 = function (key) {
901
- return keys[key] || (keys[key] = uid(key));
902
- };
903
-
904
- var sharedKey$4 = /*@__PURE__*/getDefaultExportFromCjs(sharedKey$3);
905
-
906
- 'use strict';
907
- /* global ActiveXObject -- old IE, WSH */
908
- var anObject$5 = anObject$8;
909
- var definePropertiesModule = objectDefineProperties;
910
- var enumBugKeys$1 = enumBugKeys$3;
911
- var hiddenKeys$2 = hiddenKeys$4;
912
- var html = html$1;
913
- var documentCreateElement = documentCreateElement$2;
914
- var sharedKey$2 = sharedKey$3;
915
-
916
- var GT = '>';
917
- var LT = '<';
918
- var PROTOTYPE = 'prototype';
919
- var SCRIPT = 'script';
920
- var IE_PROTO$1 = sharedKey$2('IE_PROTO');
921
-
922
- var EmptyConstructor = function () { /* empty */ };
923
-
924
- var scriptTag = function (content) {
925
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
926
- };
927
-
928
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
929
- var NullProtoObjectViaActiveX = function (activeXDocument) {
930
- activeXDocument.write(scriptTag(''));
931
- activeXDocument.close();
932
- var temp = activeXDocument.parentWindow.Object;
933
- activeXDocument = null; // avoid memory leak
934
- return temp;
935
- };
936
-
937
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
938
- var NullProtoObjectViaIFrame = function () {
939
- // Thrash, waste and sodomy: IE GC bug
940
- var iframe = documentCreateElement('iframe');
941
- var JS = 'java' + SCRIPT + ':';
942
- var iframeDocument;
943
- iframe.style.display = 'none';
944
- html.appendChild(iframe);
945
- // https://github.com/zloirock/core-js/issues/475
946
- iframe.src = String(JS);
947
- iframeDocument = iframe.contentWindow.document;
948
- iframeDocument.open();
949
- iframeDocument.write(scriptTag('document.F=Object'));
950
- iframeDocument.close();
951
- return iframeDocument.F;
952
- };
953
-
954
- // Check for document.domain and active x support
955
- // No need to use active x approach when document.domain is not set
956
- // see https://github.com/es-shims/es5-shim/issues/150
957
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
958
- // avoid IE GC bug
959
- var activeXDocument;
960
- var NullProtoObject = function () {
961
- try {
962
- activeXDocument = new ActiveXObject('htmlfile');
963
- } catch (error) { /* ignore */ }
964
- NullProtoObject = typeof document != 'undefined'
965
- ? document.domain && activeXDocument
966
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
967
- : NullProtoObjectViaIFrame()
968
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
969
- var length = enumBugKeys$1.length;
970
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
971
- return NullProtoObject();
972
- };
973
-
974
- hiddenKeys$2[IE_PROTO$1] = true;
975
-
976
- // `Object.create` method
977
- // https://tc39.es/ecma262/#sec-object.create
978
- // eslint-disable-next-line es/no-object-create -- safe
979
- var objectCreate = Object.create || function create(O, Properties) {
980
- var result;
981
- if (O !== null) {
982
- EmptyConstructor[PROTOTYPE] = anObject$5(O);
983
- result = new EmptyConstructor();
984
- EmptyConstructor[PROTOTYPE] = null;
985
- // add "__proto__" for Object.getPrototypeOf polyfill
986
- result[IE_PROTO$1] = O;
987
- } else result = NullProtoObject();
988
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
989
- };
990
-
991
- var objectCreate$1 = /*@__PURE__*/getDefaultExportFromCjs(objectCreate);
992
-
993
- 'use strict';
994
- var wellKnownSymbol$8 = wellKnownSymbol$a;
995
- var create$3 = objectCreate;
996
- var defineProperty$3 = objectDefineProperty.f;
997
-
998
- var UNSCOPABLES = wellKnownSymbol$8('unscopables');
999
- var ArrayPrototype = Array.prototype;
1000
-
1001
- // Array.prototype[@@unscopables]
1002
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1003
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
1004
- defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1005
- configurable: true,
1006
- value: create$3(null)
1007
- });
1008
- }
1009
-
1010
- // add a key to Array.prototype[@@unscopables]
1011
- var addToUnscopables$1 = function (key) {
1012
- ArrayPrototype[UNSCOPABLES][key] = true;
1013
- };
1014
-
1015
- var addToUnscopables$2 = /*@__PURE__*/getDefaultExportFromCjs(addToUnscopables$1);
1016
-
1017
- 'use strict';
1018
- var iterators = {};
1019
-
1020
- var iterators$1 = /*@__PURE__*/getDefaultExportFromCjs(iterators);
1021
-
1022
- 'use strict';
1023
- var global$7 = global$f;
1024
- var isCallable$a = isCallable$g;
1025
-
1026
- var WeakMap$1 = global$7.WeakMap;
1027
-
1028
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
1029
-
1030
- var weakMapBasicDetection$1 = /*@__PURE__*/getDefaultExportFromCjs(weakMapBasicDetection);
1031
-
1032
- 'use strict';
1033
- var createPropertyDescriptor$3 = function (bitmap, value) {
1034
- return {
1035
- enumerable: !(bitmap & 1),
1036
- configurable: !(bitmap & 2),
1037
- writable: !(bitmap & 4),
1038
- value: value
1039
- };
1040
- };
1041
-
1042
- var createPropertyDescriptor$4 = /*@__PURE__*/getDefaultExportFromCjs(createPropertyDescriptor$3);
1043
-
1044
- 'use strict';
1045
- var DESCRIPTORS$4 = descriptors;
1046
- var definePropertyModule$2 = objectDefineProperty;
1047
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
1048
-
1049
- var createNonEnumerableProperty$5 = DESCRIPTORS$4 ? function (object, key, value) {
1050
- return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
1051
- } : function (object, key, value) {
1052
- object[key] = value;
1053
- return object;
1054
- };
1055
-
1056
- var createNonEnumerableProperty$6 = /*@__PURE__*/getDefaultExportFromCjs(createNonEnumerableProperty$5);
1057
-
1058
- 'use strict';
1059
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
1060
- var global$6 = global$f;
1061
- var isObject$2 = isObject$7;
1062
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
1063
- var hasOwn$6 = hasOwnProperty_1;
1064
- var shared$1 = sharedStore;
1065
- var sharedKey$1 = sharedKey$3;
1066
- var hiddenKeys$1 = hiddenKeys$4;
1067
-
1068
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
1069
- var TypeError$1 = global$6.TypeError;
1070
- var WeakMap = global$6.WeakMap;
1071
- var set, get, has;
1072
-
1073
- var enforce = function (it) {
1074
- return has(it) ? get(it) : set(it, {});
1075
- };
1076
-
1077
- var getterFor = function (TYPE) {
1078
- return function (it) {
1079
- var state;
1080
- if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
1081
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
1082
- } return state;
1083
- };
1084
- };
1085
-
1086
- if (NATIVE_WEAK_MAP || shared$1.state) {
1087
- var store$1 = shared$1.state || (shared$1.state = new WeakMap());
1088
- /* eslint-disable no-self-assign -- prototype methods protection */
1089
- store$1.get = store$1.get;
1090
- store$1.has = store$1.has;
1091
- store$1.set = store$1.set;
1092
- /* eslint-enable no-self-assign -- prototype methods protection */
1093
- set = function (it, metadata) {
1094
- if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
1095
- metadata.facade = it;
1096
- store$1.set(it, metadata);
1097
- return metadata;
1098
- };
1099
- get = function (it) {
1100
- return store$1.get(it) || {};
1101
- };
1102
- has = function (it) {
1103
- return store$1.has(it);
1104
- };
1105
- } else {
1106
- var STATE = sharedKey$1('state');
1107
- hiddenKeys$1[STATE] = true;
1108
- set = function (it, metadata) {
1109
- if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
1110
- metadata.facade = it;
1111
- createNonEnumerableProperty$4(it, STATE, metadata);
1112
- return metadata;
1113
- };
1114
- get = function (it) {
1115
- return hasOwn$6(it, STATE) ? it[STATE] : {};
1116
- };
1117
- has = function (it) {
1118
- return hasOwn$6(it, STATE);
1119
- };
1120
- }
1121
-
1122
- var internalState = {
1123
- set: set,
1124
- get: get,
1125
- has: has,
1126
- enforce: enforce,
1127
- getterFor: getterFor
1128
- };
1129
-
1130
- var internalState$1 = /*@__PURE__*/getDefaultExportFromCjs(internalState);
1131
-
1132
- var objectGetOwnPropertyDescriptor = {};
1133
-
1134
- var objectPropertyIsEnumerable = {};
1135
-
1136
- 'use strict';
1137
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
1138
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1139
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
1140
-
1141
- // Nashorn ~ JDK8 bug
1142
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
1143
-
1144
- // `Object.prototype.propertyIsEnumerable` method implementation
1145
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
1146
- var f$3 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
1147
- var descriptor = getOwnPropertyDescriptor$1(this, V);
1148
- return !!descriptor && descriptor.enumerable;
1149
- } : $propertyIsEnumerable;
1150
-
1151
- 'use strict';
1152
- var DESCRIPTORS$3 = descriptors;
1153
- var call$6 = functionCall;
1154
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1155
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
1156
- var toIndexedObject$1 = toIndexedObject$5;
1157
- var toPropertyKey = toPropertyKey$2;
1158
- var hasOwn$5 = hasOwnProperty_1;
1159
- var IE8_DOM_DEFINE = ie8DomDefine;
1160
-
1161
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1162
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1163
-
1164
- // `Object.getOwnPropertyDescriptor` method
1165
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
1166
- var f$2 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
1167
- O = toIndexedObject$1(O);
1168
- P = toPropertyKey(P);
1169
- if (IE8_DOM_DEFINE) try {
1170
- return $getOwnPropertyDescriptor(O, P);
1171
- } catch (error) { /* empty */ }
1172
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$6(propertyIsEnumerableModule.f, O, P), O[P]);
1173
- };
1174
-
1175
- var makeBuiltIn$3 = {exports: {}};
1176
-
1177
- 'use strict';
1178
- var DESCRIPTORS$2 = descriptors;
1179
- var hasOwn$4 = hasOwnProperty_1;
1180
-
1181
- var FunctionPrototype$1 = Function.prototype;
1182
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1183
- var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
1184
-
1185
- var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
1186
- // additional protection from minified / mangled / dropped function names
1187
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1188
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
1189
-
1190
- var functionName = {
1191
- EXISTS: EXISTS,
1192
- PROPER: PROPER,
1193
- CONFIGURABLE: CONFIGURABLE
1194
- };
1195
-
1196
- var functionName$1 = /*@__PURE__*/getDefaultExportFromCjs(functionName);
1197
-
1198
- 'use strict';
1199
- var uncurryThis$7 = functionUncurryThis;
1200
- var isCallable$9 = isCallable$g;
1201
- var store = sharedStore;
1202
-
1203
- var functionToString = uncurryThis$7(Function.toString);
1204
-
1205
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1206
- if (!isCallable$9(store.inspectSource)) {
1207
- store.inspectSource = function (it) {
1208
- return functionToString(it);
1209
- };
1210
- }
1211
-
1212
- var inspectSource$1 = store.inspectSource;
1213
-
1214
- var inspectSource$2 = /*@__PURE__*/getDefaultExportFromCjs(inspectSource$1);
1215
-
1216
- var makeBuiltIn_1 = makeBuiltIn$3.exports;
1217
-
1218
- 'use strict';
1219
- var uncurryThis$6 = functionUncurryThis;
1220
- var fails$8 = fails$f;
1221
- var isCallable$8 = isCallable$g;
1222
- var hasOwn$3 = hasOwnProperty_1;
1223
- var DESCRIPTORS$1 = descriptors;
1224
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
1225
- var inspectSource = inspectSource$1;
1226
- var InternalStateModule$1 = internalState;
1227
-
1228
- var enforceInternalState = InternalStateModule$1.enforce;
1229
- var getInternalState$2 = InternalStateModule$1.get;
1230
- var $String$2 = String;
1231
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1232
- var defineProperty$2 = Object.defineProperty;
1233
- var stringSlice$4 = uncurryThis$6(''.slice);
1234
- var replace$2 = uncurryThis$6(''.replace);
1235
- var join = uncurryThis$6([].join);
1236
-
1237
- var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$8(function () {
1238
- return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
1239
- });
1240
-
1241
- var TEMPLATE = String(String).split('String');
1242
-
1243
- var makeBuiltIn$1 = makeBuiltIn$3.exports = function (value, name, options) {
1244
- if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
1245
- name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
1246
- }
1247
- if (options && options.getter) name = 'get ' + name;
1248
- if (options && options.setter) name = 'set ' + name;
1249
- if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1250
- if (DESCRIPTORS$1) defineProperty$2(value, 'name', { value: name, configurable: true });
1251
- else value.name = name;
1252
- }
1253
- if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
1254
- defineProperty$2(value, 'length', { value: options.arity });
1255
- }
1256
- try {
1257
- if (options && hasOwn$3(options, 'constructor') && options.constructor) {
1258
- if (DESCRIPTORS$1) defineProperty$2(value, 'prototype', { writable: false });
1259
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1260
- } else if (value.prototype) value.prototype = undefined;
1261
- } catch (error) { /* empty */ }
1262
- var state = enforceInternalState(value);
1263
- if (!hasOwn$3(state, 'source')) {
1264
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
1265
- } return value;
1266
- };
1267
-
1268
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1269
- // eslint-disable-next-line no-extend-native -- required
1270
- Function.prototype.toString = makeBuiltIn$1(function toString() {
1271
- return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
1272
- }, 'toString');
1273
-
1274
- var makeBuiltInExports = makeBuiltIn$3.exports;
1275
- var makeBuiltIn$2 = /*@__PURE__*/getDefaultExportFromCjs(makeBuiltInExports);
1276
-
1277
- 'use strict';
1278
- var isCallable$7 = isCallable$g;
1279
- var definePropertyModule$1 = objectDefineProperty;
1280
- var makeBuiltIn = makeBuiltInExports;
1281
- var defineGlobalProperty$1 = defineGlobalProperty$3;
1282
-
1283
- var defineBuiltIn$4 = function (O, key, value, options) {
1284
- if (!options) options = {};
1285
- var simple = options.enumerable;
1286
- var name = options.name !== undefined ? options.name : key;
1287
- if (isCallable$7(value)) makeBuiltIn(value, name, options);
1288
- if (options.global) {
1289
- if (simple) O[key] = value;
1290
- else defineGlobalProperty$1(key, value);
1291
- } else {
1292
- try {
1293
- if (!options.unsafe) delete O[key];
1294
- else if (O[key]) simple = true;
1295
- } catch (error) { /* empty */ }
1296
- if (simple) O[key] = value;
1297
- else definePropertyModule$1.f(O, key, {
1298
- value: value,
1299
- enumerable: false,
1300
- configurable: !options.nonConfigurable,
1301
- writable: !options.nonWritable
1302
- });
1303
- } return O;
1304
- };
1305
-
1306
- var defineBuiltIn$5 = /*@__PURE__*/getDefaultExportFromCjs(defineBuiltIn$4);
1307
-
1308
- var objectGetOwnPropertyNames = {};
1309
-
1310
- 'use strict';
1311
- var internalObjectKeys = objectKeysInternal;
1312
- var enumBugKeys = enumBugKeys$3;
1313
-
1314
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1315
-
1316
- // `Object.getOwnPropertyNames` method
1317
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
1318
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1319
- var f$1 = objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1320
- return internalObjectKeys(O, hiddenKeys);
1321
- };
1322
-
1323
- var objectGetOwnPropertySymbols = {};
1324
-
1325
- 'use strict';
1326
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1327
- var f = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1328
-
1329
- 'use strict';
1330
- var getBuiltIn = getBuiltIn$3;
1331
- var uncurryThis$5 = functionUncurryThis;
1332
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1333
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1334
- var anObject$4 = anObject$8;
1335
-
1336
- var concat$1 = uncurryThis$5([].concat);
1337
-
1338
- // all object keys, includes non-enumerable and symbols
1339
- var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1340
- var keys = getOwnPropertyNamesModule.f(anObject$4(it));
1341
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1342
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1343
- };
1344
-
1345
- var ownKeys$2 = /*@__PURE__*/getDefaultExportFromCjs(ownKeys$1);
1346
-
1347
- 'use strict';
1348
- var hasOwn$2 = hasOwnProperty_1;
1349
- var ownKeys = ownKeys$1;
1350
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1351
- var definePropertyModule = objectDefineProperty;
1352
-
1353
- var copyConstructorProperties$1 = function (target, source, exceptions) {
1354
- var keys = ownKeys(source);
1355
- var defineProperty = definePropertyModule.f;
1356
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1357
- for (var i = 0; i < keys.length; i++) {
1358
- var key = keys[i];
1359
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1360
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1361
- }
1362
- }
1363
- };
1364
-
1365
- var copyConstructorProperties$2 = /*@__PURE__*/getDefaultExportFromCjs(copyConstructorProperties$1);
1366
-
1367
- 'use strict';
1368
- var fails$7 = fails$f;
1369
- var isCallable$6 = isCallable$g;
1370
-
1371
- var replacement = /#|\.prototype\./;
1372
-
1373
- var isForced$1 = function (feature, detection) {
1374
- var value = data[normalize(feature)];
1375
- return value === POLYFILL ? true
1376
- : value === NATIVE ? false
1377
- : isCallable$6(detection) ? fails$7(detection)
1378
- : !!detection;
1379
- };
1380
-
1381
- var normalize = isForced$1.normalize = function (string) {
1382
- return String(string).replace(replacement, '.').toLowerCase();
1383
- };
1384
-
1385
- var data = isForced$1.data = {};
1386
- var NATIVE = isForced$1.NATIVE = 'N';
1387
- var POLYFILL = isForced$1.POLYFILL = 'P';
1388
-
1389
- var isForced_1 = isForced$1;
1390
-
1391
- var isForced$2 = /*@__PURE__*/getDefaultExportFromCjs(isForced_1);
1392
-
1393
- 'use strict';
1394
- var global$5 = global$f;
1395
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1396
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1397
- var defineBuiltIn$3 = defineBuiltIn$4;
1398
- var defineGlobalProperty = defineGlobalProperty$3;
1399
- var copyConstructorProperties = copyConstructorProperties$1;
1400
- var isForced = isForced_1;
1401
-
1402
- /*
1403
- options.target - name of the target object
1404
- options.global - target is the global object
1405
- options.stat - export as static methods of target
1406
- options.proto - export as prototype methods of target
1407
- options.real - real prototype method for the `pure` version
1408
- options.forced - export even if the native feature is available
1409
- options.bind - bind methods to the target, required for the `pure` version
1410
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1411
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
1412
- options.sham - add a flag to not completely full polyfills
1413
- options.enumerable - export as enumerable property
1414
- options.dontCallGetSet - prevent calling a getter on target
1415
- options.name - the .name of the function if it does not match the key
1416
- */
1417
- var _export = function (options, source) {
1418
- var TARGET = options.target;
1419
- var GLOBAL = options.global;
1420
- var STATIC = options.stat;
1421
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1422
- if (GLOBAL) {
1423
- target = global$5;
1424
- } else if (STATIC) {
1425
- target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
1426
- } else {
1427
- target = global$5[TARGET] && global$5[TARGET].prototype;
1428
- }
1429
- if (target) for (key in source) {
1430
- sourceProperty = source[key];
1431
- if (options.dontCallGetSet) {
1432
- descriptor = getOwnPropertyDescriptor(target, key);
1433
- targetProperty = descriptor && descriptor.value;
1434
- } else targetProperty = target[key];
1435
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1436
- // contained in target
1437
- if (!FORCED && targetProperty !== undefined) {
1438
- if (typeof sourceProperty == typeof targetProperty) continue;
1439
- copyConstructorProperties(sourceProperty, targetProperty);
1440
- }
1441
- // add a flag to not completely full polyfills
1442
- if (options.sham || (targetProperty && targetProperty.sham)) {
1443
- createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1444
- }
1445
- defineBuiltIn$3(target, key, sourceProperty, options);
1446
- }
1447
- };
1448
-
1449
- var _export$1 = /*@__PURE__*/getDefaultExportFromCjs(_export);
1450
-
1451
- 'use strict';
1452
- var fails$6 = fails$f;
1453
-
1454
- var correctPrototypeGetter = !fails$6(function () {
1455
- function F() { /* empty */ }
1456
- F.prototype.constructor = null;
1457
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1458
- return Object.getPrototypeOf(new F()) !== F.prototype;
1459
- });
1460
-
1461
- var correctPrototypeGetter$1 = /*@__PURE__*/getDefaultExportFromCjs(correctPrototypeGetter);
1462
-
1463
- 'use strict';
1464
- var hasOwn$1 = hasOwnProperty_1;
1465
- var isCallable$5 = isCallable$g;
1466
- var toObject$1 = toObject$3;
1467
- var sharedKey = sharedKey$3;
1468
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1469
-
1470
- var IE_PROTO = sharedKey('IE_PROTO');
1471
- var $Object$1 = Object;
1472
- var ObjectPrototype = $Object$1.prototype;
1473
-
1474
- // `Object.getPrototypeOf` method
1475
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1476
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1477
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1478
- var object = toObject$1(O);
1479
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1480
- var constructor = object.constructor;
1481
- if (isCallable$5(constructor) && object instanceof constructor) {
1482
- return constructor.prototype;
1483
- } return object instanceof $Object$1 ? ObjectPrototype : null;
1484
- };
1485
-
1486
- var objectGetPrototypeOf$1 = /*@__PURE__*/getDefaultExportFromCjs(objectGetPrototypeOf);
1487
-
1488
- 'use strict';
1489
- var fails$5 = fails$f;
1490
- var isCallable$4 = isCallable$g;
1491
- var isObject$1 = isObject$7;
1492
- var create$2 = objectCreate;
1493
- var getPrototypeOf$1 = objectGetPrototypeOf;
1494
- var defineBuiltIn$2 = defineBuiltIn$4;
1495
- var wellKnownSymbol$7 = wellKnownSymbol$a;
1496
- var IS_PURE$2 = isPure;
1497
-
1498
- var ITERATOR$2 = wellKnownSymbol$7('iterator');
1499
- var BUGGY_SAFARI_ITERATORS$1 = false;
1500
-
1501
- // `%IteratorPrototype%` object
1502
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1503
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1504
-
1505
- /* eslint-disable es/no-array-prototype-keys -- safe */
1506
- if ([].keys) {
1507
- arrayIterator = [].keys();
1508
- // Safari 8 has buggy iterators w/o `next`
1509
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1510
- else {
1511
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1512
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1513
- }
1514
- }
1515
-
1516
- var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$5(function () {
1517
- var test = {};
1518
- // FF44- legacy iterators case
1519
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1520
- });
1521
-
1522
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1523
- else if (IS_PURE$2) IteratorPrototype$2 = create$2(IteratorPrototype$2);
1524
-
1525
- // `%IteratorPrototype%[@@iterator]()` method
1526
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1527
- if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
1528
- defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1529
- return this;
1530
- });
1531
- }
1532
-
1533
- var iteratorsCore = {
1534
- IteratorPrototype: IteratorPrototype$2,
1535
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1536
- };
1537
-
1538
- var iteratorsCore$1 = /*@__PURE__*/getDefaultExportFromCjs(iteratorsCore);
1539
-
1540
- 'use strict';
1541
- var defineProperty$1 = objectDefineProperty.f;
1542
- var hasOwn = hasOwnProperty_1;
1543
- var wellKnownSymbol$6 = wellKnownSymbol$a;
1544
-
1545
- var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
1546
-
1547
- var setToStringTag$3 = function (target, TAG, STATIC) {
1548
- if (target && !STATIC) target = target.prototype;
1549
- if (target && !hasOwn(target, TO_STRING_TAG$2)) {
1550
- defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1551
- }
1552
- };
1553
-
1554
- var setToStringTag$4 = /*@__PURE__*/getDefaultExportFromCjs(setToStringTag$3);
1555
-
1556
- 'use strict';
1557
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1558
- var create$1 = objectCreate;
1559
- var createPropertyDescriptor = createPropertyDescriptor$3;
1560
- var setToStringTag$2 = setToStringTag$3;
1561
- var Iterators$2 = iterators;
1562
-
1563
- var returnThis$1 = function () { return this; };
1564
-
1565
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1566
- var TO_STRING_TAG = NAME + ' Iterator';
1567
- IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1568
- setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false, true);
1569
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1570
- return IteratorConstructor;
1571
- };
1572
-
1573
- var iteratorCreateConstructor$1 = /*@__PURE__*/getDefaultExportFromCjs(iteratorCreateConstructor);
1574
-
1575
- 'use strict';
1576
- var uncurryThis$4 = functionUncurryThis;
1577
- var aCallable = aCallable$2;
1578
-
1579
- var functionUncurryThisAccessor = function (object, key, method) {
1580
- try {
1581
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1582
- return uncurryThis$4(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1583
- } catch (error) { /* empty */ }
1584
- };
1585
-
1586
- var functionUncurryThisAccessor$1 = /*@__PURE__*/getDefaultExportFromCjs(functionUncurryThisAccessor);
1587
-
1588
- 'use strict';
1589
- var isObject = isObject$7;
1590
-
1591
- var isPossiblePrototype$1 = function (argument) {
1592
- return isObject(argument) || argument === null;
1593
- };
1594
-
1595
- var isPossiblePrototype$2 = /*@__PURE__*/getDefaultExportFromCjs(isPossiblePrototype$1);
1596
-
1597
- 'use strict';
1598
- var isPossiblePrototype = isPossiblePrototype$1;
1599
-
1600
- var $String$1 = String;
1601
- var $TypeError$1 = TypeError;
1602
-
1603
- var aPossiblePrototype$1 = function (argument) {
1604
- if (isPossiblePrototype(argument)) return argument;
1605
- throw new $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
1606
- };
1607
-
1608
- var aPossiblePrototype$2 = /*@__PURE__*/getDefaultExportFromCjs(aPossiblePrototype$1);
1609
-
1610
- 'use strict';
1611
- /* eslint-disable no-proto -- safe */
1612
- var uncurryThisAccessor = functionUncurryThisAccessor;
1613
- var anObject$3 = anObject$8;
1614
- var aPossiblePrototype = aPossiblePrototype$1;
1615
-
1616
- // `Object.setPrototypeOf` method
1617
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1618
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1619
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1620
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1621
- var CORRECT_SETTER = false;
1622
- var test = {};
1623
- var setter;
1624
- try {
1625
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1626
- setter(test, []);
1627
- CORRECT_SETTER = test instanceof Array;
1628
- } catch (error) { /* empty */ }
1629
- return function setPrototypeOf(O, proto) {
1630
- anObject$3(O);
1631
- aPossiblePrototype(proto);
1632
- if (CORRECT_SETTER) setter(O, proto);
1633
- else O.__proto__ = proto;
1634
- return O;
1635
- };
1636
- }() : undefined);
1637
-
1638
- var objectSetPrototypeOf$1 = /*@__PURE__*/getDefaultExportFromCjs(objectSetPrototypeOf);
1639
-
1640
- 'use strict';
1641
- var $$1 = _export;
1642
- var call$5 = functionCall;
1643
- var IS_PURE$1 = isPure;
1644
- var FunctionName = functionName;
1645
- var isCallable$3 = isCallable$g;
1646
- var createIteratorConstructor = iteratorCreateConstructor;
1647
- var getPrototypeOf = objectGetPrototypeOf;
1648
- var setPrototypeOf = objectSetPrototypeOf;
1649
- var setToStringTag$1 = setToStringTag$3;
1650
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1651
- var defineBuiltIn$1 = defineBuiltIn$4;
1652
- var wellKnownSymbol$5 = wellKnownSymbol$a;
1653
- var Iterators$1 = iterators;
1654
- var IteratorsCore = iteratorsCore;
1655
-
1656
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1657
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1658
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1659
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1660
- var ITERATOR$1 = wellKnownSymbol$5('iterator');
1661
- var KEYS = 'keys';
1662
- var VALUES = 'values';
1663
- var ENTRIES = 'entries';
1664
-
1665
- var returnThis = function () { return this; };
1666
-
1667
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1668
- createIteratorConstructor(IteratorConstructor, NAME, next);
1669
-
1670
- var getIterationMethod = function (KIND) {
1671
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1672
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1673
-
1674
- switch (KIND) {
1675
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1676
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1677
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1678
- }
1679
-
1680
- return function () { return new IteratorConstructor(this); };
1681
- };
1682
-
1683
- var TO_STRING_TAG = NAME + ' Iterator';
1684
- var INCORRECT_VALUES_NAME = false;
1685
- var IterablePrototype = Iterable.prototype;
1686
- var nativeIterator = IterablePrototype[ITERATOR$1]
1687
- || IterablePrototype['@@iterator']
1688
- || DEFAULT && IterablePrototype[DEFAULT];
1689
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1690
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1691
- var CurrentIteratorPrototype, methods, KEY;
1692
-
1693
- // fix native
1694
- if (anyNativeIterator) {
1695
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1696
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1697
- if (!IS_PURE$1 && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1698
- if (setPrototypeOf) {
1699
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1700
- } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
1701
- defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1702
- }
1703
- }
1704
- // Set @@toStringTag to native iterators
1705
- setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
1706
- if (IS_PURE$1) Iterators$1[TO_STRING_TAG] = returnThis;
1707
- }
1708
- }
1709
-
1710
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1711
- if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1712
- if (!IS_PURE$1 && CONFIGURABLE_FUNCTION_NAME) {
1713
- createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1714
- } else {
1715
- INCORRECT_VALUES_NAME = true;
1716
- defaultIterator = function values() { return call$5(nativeIterator, this); };
1717
- }
1718
- }
1719
-
1720
- // export additional methods
1721
- if (DEFAULT) {
1722
- methods = {
1723
- values: getIterationMethod(VALUES),
1724
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1725
- entries: getIterationMethod(ENTRIES)
1726
- };
1727
- if (FORCED) for (KEY in methods) {
1728
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1729
- defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1730
- }
1731
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1732
- }
1733
-
1734
- // define iterator
1735
- if ((!IS_PURE$1 || FORCED) && IterablePrototype[ITERATOR$1] !== defaultIterator) {
1736
- defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1737
- }
1738
- Iterators$1[NAME] = defaultIterator;
1739
-
1740
- return methods;
1741
- };
1742
-
1743
- var iteratorDefine$1 = /*@__PURE__*/getDefaultExportFromCjs(iteratorDefine);
1744
-
1745
- 'use strict';
1746
- // `CreateIterResultObject` abstract operation
1747
- // https://tc39.es/ecma262/#sec-createiterresultobject
1748
- var createIterResultObject$1 = function (value, done) {
1749
- return { value: value, done: done };
1750
- };
1751
-
1752
- var createIterResultObject$2 = /*@__PURE__*/getDefaultExportFromCjs(createIterResultObject$1);
1753
-
1754
- 'use strict';
1755
- var toIndexedObject = toIndexedObject$5;
1756
- var addToUnscopables = addToUnscopables$1;
1757
- var Iterators = iterators;
1758
- var InternalStateModule = internalState;
1759
- var defineProperty = objectDefineProperty.f;
1760
- var defineIterator = iteratorDefine;
1761
- var createIterResultObject = createIterResultObject$1;
1762
- var IS_PURE = isPure;
1763
- var DESCRIPTORS = descriptors;
1764
-
1765
- var ARRAY_ITERATOR = 'Array Iterator';
1766
- var setInternalState = InternalStateModule.set;
1767
- var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
1768
-
1769
- // `Array.prototype.entries` method
1770
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1771
- // `Array.prototype.keys` method
1772
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1773
- // `Array.prototype.values` method
1774
- // https://tc39.es/ecma262/#sec-array.prototype.values
1775
- // `Array.prototype[@@iterator]` method
1776
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1777
- // `CreateArrayIterator` internal method
1778
- // https://tc39.es/ecma262/#sec-createarrayiterator
1779
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1780
- setInternalState(this, {
1781
- type: ARRAY_ITERATOR,
1782
- target: toIndexedObject(iterated), // target
1783
- index: 0, // next index
1784
- kind: kind // kind
1785
- });
1786
- // `%ArrayIteratorPrototype%.next` method
1787
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1788
- }, function () {
1789
- var state = getInternalState$1(this);
1790
- var target = state.target;
1791
- var index = state.index++;
1792
- if (!target || index >= target.length) {
1793
- state.target = undefined;
1794
- return createIterResultObject(undefined, true);
1795
- }
1796
- switch (state.kind) {
1797
- case 'keys': return createIterResultObject(index, false);
1798
- case 'values': return createIterResultObject(target[index], false);
1799
- } return createIterResultObject([index, target[index]], false);
1800
- }, 'values');
1801
-
1802
- // argumentsList[@@iterator] is %ArrayProto_values%
1803
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1804
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1805
- var values = Iterators.Arguments = Iterators.Array;
1806
-
1807
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1808
- addToUnscopables('keys');
1809
- addToUnscopables('values');
1810
- addToUnscopables('entries');
1811
-
1812
- // V8 ~ Chrome 45- bug
1813
- if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
1814
- defineProperty(values, 'name', { value: 'values' });
1815
- } catch (error) { /* empty */ }
1816
-
1817
- var es_array_iterator$1 = /*@__PURE__*/getDefaultExportFromCjs(es_array_iterator);
1818
-
1819
- 'use strict';
1820
- var global$4 = global$f;
1821
- var DOMIterables = domIterables;
1822
- var DOMTokenListPrototype = domTokenListPrototype;
1823
- var ArrayIteratorMethods = es_array_iterator;
1824
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1825
- var setToStringTag = setToStringTag$3;
1826
- var wellKnownSymbol$4 = wellKnownSymbol$a;
1827
-
1828
- var ITERATOR = wellKnownSymbol$4('iterator');
1829
- var ArrayValues = ArrayIteratorMethods.values;
1830
-
1831
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1832
- if (CollectionPrototype) {
1833
- // some Chrome versions have non-configurable methods on DOMTokenList
1834
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1835
- createNonEnumerableProperty$1(CollectionPrototype, ITERATOR, ArrayValues);
1836
- } catch (error) {
1837
- CollectionPrototype[ITERATOR] = ArrayValues;
1838
- }
1839
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1840
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1841
- // some Chrome versions have non-configurable methods on DOMTokenList
1842
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1843
- createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1844
- } catch (error) {
1845
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1846
- }
1847
- }
1848
- }
1849
- };
1850
-
1851
- for (var COLLECTION_NAME in DOMIterables) {
1852
- handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
1853
- }
1854
-
1855
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1856
-
1857
- var es_string_replace = {};
1858
-
1859
- 'use strict';
1860
- var NATIVE_BIND = functionBindNative;
1861
-
1862
- var FunctionPrototype = Function.prototype;
1863
- var apply$1 = FunctionPrototype.apply;
1864
- var call$4 = FunctionPrototype.call;
1865
-
1866
- // eslint-disable-next-line es/no-reflect -- safe
1867
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$1) : function () {
1868
- return call$4.apply(apply$1, arguments);
1869
- });
1870
-
1871
- var functionApply$1 = /*@__PURE__*/getDefaultExportFromCjs(functionApply);
1872
-
1873
- var es_regexp_exec = {};
1874
-
1875
- 'use strict';
1876
- var wellKnownSymbol$3 = wellKnownSymbol$a;
1877
-
1878
- var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1879
- var test = {};
1880
-
1881
- test[TO_STRING_TAG$1] = 'z';
1882
-
1883
- var toStringTagSupport = String(test) === '[object z]';
1884
-
1885
- var toStringTagSupport$1 = /*@__PURE__*/getDefaultExportFromCjs(toStringTagSupport);
1886
-
1887
- 'use strict';
1888
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1889
- var isCallable$2 = isCallable$g;
1890
- var classofRaw = classofRaw$1;
1891
- var wellKnownSymbol$2 = wellKnownSymbol$a;
1892
-
1893
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1894
- var $Object = Object;
1895
-
1896
- // ES3 wrong here
1897
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1898
-
1899
- // fallback for IE11 Script Access Denied error
1900
- var tryGet = function (it, key) {
1901
- try {
1902
- return it[key];
1903
- } catch (error) { /* empty */ }
1904
- };
1905
-
1906
- // getting tag from ES6+ `Object.prototype.toString`
1907
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1908
- var O, tag, result;
1909
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1910
- // @@toStringTag case
1911
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1912
- // builtinTag case
1913
- : CORRECT_ARGUMENTS ? classofRaw(O)
1914
- // ES3 arguments fallback
1915
- : (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1916
- };
1917
-
1918
- var classof$3 = /*@__PURE__*/getDefaultExportFromCjs(classof$2);
1919
-
1920
- 'use strict';
1921
- var classof$1 = classof$2;
1922
-
1923
- var $String = String;
1924
-
1925
- var toString$3 = function (argument) {
1926
- if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1927
- return $String(argument);
1928
- };
1929
-
1930
- var toString$4 = /*@__PURE__*/getDefaultExportFromCjs(toString$3);
1931
-
1932
- 'use strict';
1933
- var anObject$2 = anObject$8;
1934
-
1935
- // `RegExp.prototype.flags` getter implementation
1936
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1937
- var regexpFlags$1 = function () {
1938
- var that = anObject$2(this);
1939
- var result = '';
1940
- if (that.hasIndices) result += 'd';
1941
- if (that.global) result += 'g';
1942
- if (that.ignoreCase) result += 'i';
1943
- if (that.multiline) result += 'm';
1944
- if (that.dotAll) result += 's';
1945
- if (that.unicode) result += 'u';
1946
- if (that.unicodeSets) result += 'v';
1947
- if (that.sticky) result += 'y';
1948
- return result;
1949
- };
1950
-
1951
- var regexpFlags$2 = /*@__PURE__*/getDefaultExportFromCjs(regexpFlags$1);
1952
-
1953
- 'use strict';
1954
- var fails$4 = fails$f;
1955
- var global$3 = global$f;
1956
-
1957
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1958
- var $RegExp$2 = global$3.RegExp;
1959
-
1960
- var UNSUPPORTED_Y$1 = fails$4(function () {
1961
- var re = $RegExp$2('a', 'y');
1962
- re.lastIndex = 2;
1963
- return re.exec('abcd') !== null;
1964
- });
1965
-
1966
- // UC Browser bug
1967
- // https://github.com/zloirock/core-js/issues/1008
1968
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
1969
- return !$RegExp$2('a', 'y').sticky;
1970
- });
1971
-
1972
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
1973
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1974
- var re = $RegExp$2('^r', 'gy');
1975
- re.lastIndex = 2;
1976
- return re.exec('str') !== null;
1977
- });
1978
-
1979
- var regexpStickyHelpers = {
1980
- BROKEN_CARET: BROKEN_CARET,
1981
- MISSED_STICKY: MISSED_STICKY,
1982
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
1983
- };
1984
-
1985
- var regexpStickyHelpers$1 = /*@__PURE__*/getDefaultExportFromCjs(regexpStickyHelpers);
1986
-
1987
- 'use strict';
1988
- var fails$3 = fails$f;
1989
- var global$2 = global$f;
1990
-
1991
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1992
- var $RegExp$1 = global$2.RegExp;
1993
-
1994
- var regexpUnsupportedDotAll = fails$3(function () {
1995
- var re = $RegExp$1('.', 's');
1996
- return !(re.dotAll && re.test('\n') && re.flags === 's');
1997
- });
1998
-
1999
- var regexpUnsupportedDotAll$1 = /*@__PURE__*/getDefaultExportFromCjs(regexpUnsupportedDotAll);
2000
-
2001
- 'use strict';
2002
- var fails$2 = fails$f;
2003
- var global$1 = global$f;
2004
-
2005
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2006
- var $RegExp = global$1.RegExp;
2007
-
2008
- var regexpUnsupportedNcg = fails$2(function () {
2009
- var re = $RegExp('(?<a>b)', 'g');
2010
- return re.exec('b').groups.a !== 'b' ||
2011
- 'b'.replace(re, '$<a>c') !== 'bc';
2012
- });
2013
-
2014
- var regexpUnsupportedNcg$1 = /*@__PURE__*/getDefaultExportFromCjs(regexpUnsupportedNcg);
2015
-
2016
- 'use strict';
2017
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2018
- /* eslint-disable regexp/no-useless-quantifier -- testing */
2019
- var call$3 = functionCall;
2020
- var uncurryThis$3 = functionUncurryThis;
2021
- var toString$2 = toString$3;
2022
- var regexpFlags = regexpFlags$1;
2023
- var stickyHelpers = regexpStickyHelpers;
2024
- var shared = sharedExports;
2025
- var create = objectCreate;
2026
- var getInternalState = internalState.get;
2027
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
2028
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2029
-
2030
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
2031
- var nativeExec = RegExp.prototype.exec;
2032
- var patchedExec = nativeExec;
2033
- var charAt$3 = uncurryThis$3(''.charAt);
2034
- var indexOf = uncurryThis$3(''.indexOf);
2035
- var replace$1 = uncurryThis$3(''.replace);
2036
- var stringSlice$3 = uncurryThis$3(''.slice);
2037
-
2038
- var UPDATES_LAST_INDEX_WRONG = (function () {
2039
- var re1 = /a/;
2040
- var re2 = /b*/g;
2041
- call$3(nativeExec, re1, 'a');
2042
- call$3(nativeExec, re2, 'a');
2043
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2044
- })();
2045
-
2046
- var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
2047
-
2048
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
2049
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2050
-
2051
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
2052
-
2053
- if (PATCH) {
2054
- patchedExec = function exec(string) {
2055
- var re = this;
2056
- var state = getInternalState(re);
2057
- var str = toString$2(string);
2058
- var raw = state.raw;
2059
- var result, reCopy, lastIndex, match, i, object, group;
2060
-
2061
- if (raw) {
2062
- raw.lastIndex = re.lastIndex;
2063
- result = call$3(patchedExec, raw, str);
2064
- re.lastIndex = raw.lastIndex;
2065
- return result;
2066
- }
2067
-
2068
- var groups = state.groups;
2069
- var sticky = UNSUPPORTED_Y && re.sticky;
2070
- var flags = call$3(regexpFlags, re);
2071
- var source = re.source;
2072
- var charsAdded = 0;
2073
- var strCopy = str;
2074
-
2075
- if (sticky) {
2076
- flags = replace$1(flags, 'y', '');
2077
- if (indexOf(flags, 'g') === -1) {
2078
- flags += 'g';
2079
- }
2080
-
2081
- strCopy = stringSlice$3(str, re.lastIndex);
2082
- // Support anchored sticky behavior.
2083
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
2084
- source = '(?: ' + source + ')';
2085
- strCopy = ' ' + strCopy;
2086
- charsAdded++;
2087
- }
2088
- // ^(? + rx + ) is needed, in combination with some str slicing, to
2089
- // simulate the 'y' flag.
2090
- reCopy = new RegExp('^(?:' + source + ')', flags);
2091
- }
2092
-
2093
- if (NPCG_INCLUDED) {
2094
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
2095
- }
2096
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2097
-
2098
- match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
2099
-
2100
- if (sticky) {
2101
- if (match) {
2102
- match.input = stringSlice$3(match.input, charsAdded);
2103
- match[0] = stringSlice$3(match[0], charsAdded);
2104
- match.index = re.lastIndex;
2105
- re.lastIndex += match[0].length;
2106
- } else re.lastIndex = 0;
2107
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
2108
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
2109
- }
2110
- if (NPCG_INCLUDED && match && match.length > 1) {
2111
- // Fix browsers whose `exec` methods don't consistently return `undefined`
2112
- // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
2113
- call$3(nativeReplace, match[0], reCopy, function () {
2114
- for (i = 1; i < arguments.length - 2; i++) {
2115
- if (arguments[i] === undefined) match[i] = undefined;
2116
- }
2117
- });
2118
- }
2119
-
2120
- if (match && groups) {
2121
- match.groups = object = create(null);
2122
- for (i = 0; i < groups.length; i++) {
2123
- group = groups[i];
2124
- object[group[0]] = match[group[1]];
2125
- }
2126
- }
2127
-
2128
- return match;
2129
- };
2130
- }
2131
-
2132
- var regexpExec$2 = patchedExec;
2133
-
2134
- var regexpExec$3 = /*@__PURE__*/getDefaultExportFromCjs(regexpExec$2);
2135
-
2136
- 'use strict';
2137
- var $ = _export;
2138
- var exec = regexpExec$2;
2139
-
2140
- // `RegExp.prototype.exec` method
2141
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2142
- $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2143
- exec: exec
2144
- });
2145
-
2146
- 'use strict';
2147
- // TODO: Remove from `core-js@4` since it's moved to entry points
2148
-
2149
- var call$2 = functionCall;
2150
- var defineBuiltIn = defineBuiltIn$4;
2151
- var regexpExec$1 = regexpExec$2;
2152
- var fails$1 = fails$f;
2153
- var wellKnownSymbol$1 = wellKnownSymbol$a;
2154
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
2155
-
2156
- var SPECIES = wellKnownSymbol$1('species');
2157
- var RegExpPrototype = RegExp.prototype;
2158
-
2159
- var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2160
- var SYMBOL = wellKnownSymbol$1(KEY);
2161
-
2162
- var DELEGATES_TO_SYMBOL = !fails$1(function () {
2163
- // String methods call symbol-named RegExp methods
2164
- var O = {};
2165
- O[SYMBOL] = function () { return 7; };
2166
- return ''[KEY](O) !== 7;
2167
- });
2168
-
2169
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
2170
- // Symbol-named RegExp methods call .exec
2171
- var execCalled = false;
2172
- var re = /a/;
2173
-
2174
- if (KEY === 'split') {
2175
- // We can't use real regex here since it causes deoptimization
2176
- // and serious performance degradation in V8
2177
- // https://github.com/zloirock/core-js/issues/306
2178
- re = {};
2179
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
2180
- // a new one. We need to return the patched regex when creating the new one.
2181
- re.constructor = {};
2182
- re.constructor[SPECIES] = function () { return re; };
2183
- re.flags = '';
2184
- re[SYMBOL] = /./[SYMBOL];
2185
- }
2186
-
2187
- re.exec = function () {
2188
- execCalled = true;
2189
- return null;
2190
- };
2191
-
2192
- re[SYMBOL]('');
2193
- return !execCalled;
2194
- });
2195
-
2196
- if (
2197
- !DELEGATES_TO_SYMBOL ||
2198
- !DELEGATES_TO_EXEC ||
2199
- FORCED
2200
- ) {
2201
- var nativeRegExpMethod = /./[SYMBOL];
2202
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2203
- var $exec = regexp.exec;
2204
- if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
2205
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2206
- // The native String method already delegates to @@method (this
2207
- // polyfilled function), leasing to infinite recursion.
2208
- // We avoid it by directly calling the native @@method method.
2209
- return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
2210
- }
2211
- return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
2212
- }
2213
- return { done: false };
2214
- });
2215
-
2216
- defineBuiltIn(String.prototype, KEY, methods[0]);
2217
- defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
2218
- }
2219
-
2220
- if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
2221
- };
2222
-
2223
- var fixRegexpWellKnownSymbolLogic$1 = /*@__PURE__*/getDefaultExportFromCjs(fixRegexpWellKnownSymbolLogic);
2224
-
2225
- 'use strict';
2226
- var uncurryThis$2 = functionUncurryThis;
2227
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2228
- var toString$1 = toString$3;
2229
- var requireObjectCoercible$1 = requireObjectCoercible$4;
2230
-
2231
- var charAt$2 = uncurryThis$2(''.charAt);
2232
- var charCodeAt = uncurryThis$2(''.charCodeAt);
2233
- var stringSlice$2 = uncurryThis$2(''.slice);
2234
-
2235
- var createMethod = function (CONVERT_TO_STRING) {
2236
- return function ($this, pos) {
2237
- var S = toString$1(requireObjectCoercible$1($this));
2238
- var position = toIntegerOrInfinity$1(pos);
2239
- var size = S.length;
2240
- var first, second;
2241
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2242
- first = charCodeAt(S, position);
2243
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
2244
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2245
- ? CONVERT_TO_STRING
2246
- ? charAt$2(S, position)
2247
- : first
2248
- : CONVERT_TO_STRING
2249
- ? stringSlice$2(S, position, position + 2)
2250
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2251
- };
2252
- };
2253
-
2254
- var stringMultibyte = {
2255
- // `String.prototype.codePointAt` method
2256
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2257
- codeAt: createMethod(false),
2258
- // `String.prototype.at` method
2259
- // https://github.com/mathiasbynens/String.prototype.at
2260
- charAt: createMethod(true)
2261
- };
2262
-
2263
- var stringMultibyte$1 = /*@__PURE__*/getDefaultExportFromCjs(stringMultibyte);
2264
-
2265
- 'use strict';
2266
- var charAt$1 = stringMultibyte.charAt;
2267
-
2268
- // `AdvanceStringIndex` abstract operation
2269
- // https://tc39.es/ecma262/#sec-advancestringindex
2270
- var advanceStringIndex$1 = function (S, index, unicode) {
2271
- return index + (unicode ? charAt$1(S, index).length : 1);
2272
- };
2273
-
2274
- var advanceStringIndex$2 = /*@__PURE__*/getDefaultExportFromCjs(advanceStringIndex$1);
2275
-
2276
- 'use strict';
2277
- var uncurryThis$1 = functionUncurryThis;
2278
- var toObject = toObject$3;
2279
-
2280
- var floor = Math.floor;
2281
- var charAt = uncurryThis$1(''.charAt);
2282
- var replace = uncurryThis$1(''.replace);
2283
- var stringSlice$1 = uncurryThis$1(''.slice);
2284
- // eslint-disable-next-line redos/no-vulnerable -- safe
2285
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2286
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2287
-
2288
- // `GetSubstitution` abstract operation
2289
- // https://tc39.es/ecma262/#sec-getsubstitution
2290
- var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
2291
- var tailPos = position + matched.length;
2292
- var m = captures.length;
2293
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2294
- if (namedCaptures !== undefined) {
2295
- namedCaptures = toObject(namedCaptures);
2296
- symbols = SUBSTITUTION_SYMBOLS;
2297
- }
2298
- return replace(replacement, symbols, function (match, ch) {
2299
- var capture;
2300
- switch (charAt(ch, 0)) {
2301
- case '$': return '$';
2302
- case '&': return matched;
2303
- case '`': return stringSlice$1(str, 0, position);
2304
- case "'": return stringSlice$1(str, tailPos);
2305
- case '<':
2306
- capture = namedCaptures[stringSlice$1(ch, 1, -1)];
2307
- break;
2308
- default: // \d\d?
2309
- var n = +ch;
2310
- if (n === 0) return match;
2311
- if (n > m) {
2312
- var f = floor(n / 10);
2313
- if (f === 0) return match;
2314
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
2315
- return match;
2316
- }
2317
- capture = captures[n - 1];
2318
- }
2319
- return capture === undefined ? '' : capture;
2320
- });
2321
- };
2322
-
2323
- var getSubstitution$2 = /*@__PURE__*/getDefaultExportFromCjs(getSubstitution$1);
2324
-
2325
- 'use strict';
2326
- var call$1 = functionCall;
2327
- var anObject$1 = anObject$8;
2328
- var isCallable$1 = isCallable$g;
2329
- var classof = classofRaw$1;
2330
- var regexpExec = regexpExec$2;
2331
-
2332
- var $TypeError = TypeError;
2333
-
2334
- // `RegExpExec` abstract operation
2335
- // https://tc39.es/ecma262/#sec-regexpexec
2336
- var regexpExecAbstract = function (R, S) {
2337
- var exec = R.exec;
2338
- if (isCallable$1(exec)) {
2339
- var result = call$1(exec, R, S);
2340
- if (result !== null) anObject$1(result);
2341
- return result;
2342
- }
2343
- if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
2344
- throw new $TypeError('RegExp#exec called on incompatible receiver');
2345
- };
2346
-
2347
- var regexpExecAbstract$1 = /*@__PURE__*/getDefaultExportFromCjs(regexpExecAbstract);
2348
-
2349
- 'use strict';
2350
- var apply = functionApply;
2351
- var call = functionCall;
2352
- var uncurryThis = functionUncurryThis;
2353
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2354
- var fails = fails$f;
2355
- var anObject = anObject$8;
2356
- var isCallable = isCallable$g;
2357
- var isNullOrUndefined = isNullOrUndefined$3;
2358
- var toIntegerOrInfinity = toIntegerOrInfinity$4;
2359
- var toLength = toLength$2;
2360
- var toString = toString$3;
2361
- var requireObjectCoercible = requireObjectCoercible$4;
2362
- var advanceStringIndex = advanceStringIndex$1;
2363
- var getMethod = getMethod$2;
2364
- var getSubstitution = getSubstitution$1;
2365
- var regExpExec = regexpExecAbstract;
2366
- var wellKnownSymbol = wellKnownSymbol$a;
2367
-
2368
- var REPLACE = wellKnownSymbol('replace');
2369
- var max = Math.max;
2370
- var min = Math.min;
2371
- var concat = uncurryThis([].concat);
2372
- var push = uncurryThis([].push);
2373
- var stringIndexOf = uncurryThis(''.indexOf);
2374
- var stringSlice = uncurryThis(''.slice);
2375
-
2376
- var maybeToString = function (it) {
2377
- return it === undefined ? it : String(it);
2378
- };
2379
-
2380
- // IE <= 11 replaces $0 with the whole match, as if it was $&
2381
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2382
- var REPLACE_KEEPS_$0 = (function () {
2383
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2384
- return 'a'.replace(/./, '$0') === '$0';
2385
- })();
2386
-
2387
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2388
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2389
- if (/./[REPLACE]) {
2390
- return /./[REPLACE]('a', '$0') === '';
2391
- }
2392
- return false;
2393
- })();
2394
-
2395
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
2396
- var re = /./;
2397
- re.exec = function () {
2398
- var result = [];
2399
- result.groups = { a: '7' };
2400
- return result;
2401
- };
2402
- // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
2403
- return ''.replace(re, '$<a>') !== '7';
2404
- });
2405
-
2406
- // @@replace logic
2407
- fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
2408
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2409
-
2410
- return [
2411
- // `String.prototype.replace` method
2412
- // https://tc39.es/ecma262/#sec-string.prototype.replace
2413
- function replace(searchValue, replaceValue) {
2414
- var O = requireObjectCoercible(this);
2415
- var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
2416
- return replacer
2417
- ? call(replacer, searchValue, O, replaceValue)
2418
- : call(nativeReplace, toString(O), searchValue, replaceValue);
2419
- },
2420
- // `RegExp.prototype[@@replace]` method
2421
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2422
- function (string, replaceValue) {
2423
- var rx = anObject(this);
2424
- var S = toString(string);
2425
-
2426
- if (
2427
- typeof replaceValue == 'string' &&
2428
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2429
- stringIndexOf(replaceValue, '$<') === -1
2430
- ) {
2431
- var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2432
- if (res.done) return res.value;
2433
- }
2434
-
2435
- var functionalReplace = isCallable(replaceValue);
2436
- if (!functionalReplace) replaceValue = toString(replaceValue);
2437
-
2438
- var global = rx.global;
2439
- var fullUnicode;
2440
- if (global) {
2441
- fullUnicode = rx.unicode;
2442
- rx.lastIndex = 0;
2443
- }
2444
-
2445
- var results = [];
2446
- var result;
2447
- while (true) {
2448
- result = regExpExec(rx, S);
2449
- if (result === null) break;
2450
-
2451
- push(results, result);
2452
- if (!global) break;
2453
-
2454
- var matchStr = toString(result[0]);
2455
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2456
- }
2457
-
2458
- var accumulatedResult = '';
2459
- var nextSourcePosition = 0;
2460
- for (var i = 0; i < results.length; i++) {
2461
- result = results[i];
2462
-
2463
- var matched = toString(result[0]);
2464
- var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2465
- var captures = [];
2466
- var replacement;
2467
- // NOTE: This is equivalent to
2468
- // captures = result.slice(1).map(maybeToString)
2469
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
2470
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
2471
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
2472
- for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
2473
- var namedCaptures = result.groups;
2474
- if (functionalReplace) {
2475
- var replacerArgs = concat([matched], captures, position, S);
2476
- if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2477
- replacement = toString(apply(replaceValue, undefined, replacerArgs));
2478
- } else {
2479
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2480
- }
2481
- if (position >= nextSourcePosition) {
2482
- accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
2483
- nextSourcePosition = position + matched.length;
2484
- }
2485
- }
2486
-
2487
- return accumulatedResult + stringSlice(S, nextSourcePosition);
2488
- }
2489
- ];
2490
- }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2491
-
2492
15
  var escapeRegex = ((value) => value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'));
2493
16
 
2494
17
  const ItemSymbol$1 = Symbol('item');
@@ -2723,36 +246,36 @@ class DropList {
2723
246
  console.warn('onItemRender called for (' + index + ') which has no item');
2724
247
  }
2725
248
 
2726
- itemEl.className = "".concat(p.baseClassName, "__item");
249
+ itemEl.className = `${p.baseClassName}__item`;
2727
250
 
2728
251
  const classList = itemEl.classList;
2729
252
 
2730
253
  if (p.multi) {
2731
254
  if (item._nocheck) {
2732
- classList.add("".concat(p.baseClassName, "__item_multi_nocheck"));
255
+ classList.add(`${p.baseClassName}__item_multi_nocheck`);
2733
256
  } else {
2734
- classList.add("".concat(p.baseClassName, "__item_multi"));
257
+ classList.add(`${p.baseClassName}__item_multi`);
2735
258
 
2736
259
  if (item._checked) {
2737
- classList.add("".concat(p.baseClassName, "__item_checked"));
260
+ classList.add(`${p.baseClassName}__item_checked`);
2738
261
  }
2739
262
  }
2740
263
  } else {
2741
- classList.add("".concat(p.baseClassName, "__item_single"));
264
+ classList.add(`${p.baseClassName}__item_single`);
2742
265
  }
2743
266
 
2744
267
  if (item._group)
2745
- classList.add("".concat(p.baseClassName, "__item_group"));
268
+ classList.add(`${p.baseClassName}__item_group`);
2746
269
 
2747
270
  if (item._child)
2748
- classList.add("".concat(p.baseClassName, "__item_child"));
271
+ classList.add(`${p.baseClassName}__item_child`);
2749
272
 
2750
273
  if (item._nointeraction)
2751
- classList.add("".concat(p.baseClassName, "__item_nointeraction"));
274
+ classList.add(`${p.baseClassName}__item_nointeraction`);
2752
275
 
2753
276
  if (p.focusItemIndex === index) {
2754
277
  p.focusItemEl = itemEl;
2755
- classList.add("".concat(p.baseClassName, "__item_focus"));
278
+ classList.add(`${p.baseClassName}__item_focus`);
2756
279
  }
2757
280
 
2758
281
  this._renderItemContent(item, itemEl);
@@ -2812,8 +335,8 @@ class DropList {
2812
335
  DomCompat.remove(p.el);
2813
336
  }
2814
337
 
2815
- if (p.currentSubDropList) {var _p$currentSubDropList;
2816
- (_p$currentSubDropList = p.currentSubDropList) === null || _p$currentSubDropList === void 0 || (_p$currentSubDropList = _p$currentSubDropList.droplist) === null || _p$currentSubDropList === void 0 || _p$currentSubDropList.destroy();
338
+ if (p.currentSubDropList) {
339
+ p.currentSubDropList?.droplist?.destroy();
2817
340
  p.currentSubDropList = null;
2818
341
  }
2819
342
 
@@ -2831,10 +354,10 @@ class DropList {
2831
354
  }
2832
355
 
2833
356
  if (p.lastPositionTarget) {
2834
- p.lastPositionTarget.classList.remove("has_".concat(
2835
- p.baseClassName), "has_".concat(
2836
- p.baseClassName, "_above"), "has_".concat(
2837
- p.baseClassName, "_below"));
357
+ p.lastPositionTarget.classList.remove(
358
+ `has_${p.baseClassName}`,
359
+ `has_${p.baseClassName}_above`,
360
+ `has_${p.baseClassName}_below`);
2838
361
  delete p.lastPositionTarget;
2839
362
  }
2840
363
 
@@ -2851,11 +374,11 @@ class DropList {
2851
374
  * @param {boolean} [considerSubmenus=true]
2852
375
  * @returns {boolean}
2853
376
  */
2854
- elContains(other) {var _this$_p$currentSubDr;let considerSubmenus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
377
+ elContains(other) {let considerSubmenus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2855
378
  if (this.el.contains(other))
2856
379
  return true;
2857
380
 
2858
- if (considerSubmenus && (_this$_p$currentSubDr = this._p.currentSubDropList) !== null && _this$_p$currentSubDr !== void 0 && (_this$_p$currentSubDr = _this$_p$currentSubDr.droplist) !== null && _this$_p$currentSubDr !== void 0 && _this$_p$currentSubDr.elContains(other))
381
+ if (considerSubmenus && this._p.currentSubDropList?.droplist?.elContains(other))
2859
382
  return true;
2860
383
 
2861
384
  return false;
@@ -2968,7 +491,7 @@ class DropList {
2968
491
  let classes = [p.baseClassName];
2969
492
 
2970
493
  if (p.direction === 'ltr' || p.direction === 'rtl')
2971
- classes.push("".concat(p.baseClassName, "__") + p.direction);
494
+ classes.push(`${p.baseClassName}__` + p.direction);
2972
495
 
2973
496
  if (p.additionalClasses) {
2974
497
  classes = classes.concat(p.additionalClasses);
@@ -2977,7 +500,7 @@ class DropList {
2977
500
  el.className = classes.join(' ');
2978
501
  }
2979
502
 
2980
- blurFocusedItem() {var _item$ItemSymbol;
503
+ blurFocusedItem() {
2981
504
  const p = this._p;
2982
505
 
2983
506
  clearTimeout(p.blurTimer);
@@ -2988,7 +511,7 @@ class DropList {
2988
511
 
2989
512
  let focusItemEl = p.focusItemEl;
2990
513
  if (focusItemEl) {
2991
- focusItemEl.classList.remove("".concat(p.baseClassName, "__item_focus"));
514
+ focusItemEl.classList.remove(`${p.baseClassName}__item_focus`);
2992
515
  p.focusItemEl = null;
2993
516
  }
2994
517
 
@@ -3003,7 +526,7 @@ class DropList {
3003
526
  this._hideSublist();
3004
527
  }
3005
528
 
3006
- this._trigger('itemblur', { value: item.value, item: (_item$ItemSymbol = item[ItemSymbol$1]) !== null && _item$ItemSymbol !== void 0 ? _item$ItemSymbol : item });
529
+ this._trigger('itemblur', { value: item.value, item: item[ItemSymbol$1] ?? item });
3007
530
  }
3008
531
 
3009
532
  nextPage(event) {
@@ -3025,17 +548,17 @@ class DropList {
3025
548
  toggleFocusedItem() {
3026
549
  const p = this._p;
3027
550
 
3028
- if (this.hasFocusedItem() && p.multi) {var _item$ItemSymbol2;
551
+ if (this.hasFocusedItem() && p.multi) {
3029
552
  let item = p.items[p.focusItemIndex];
3030
553
  if (item._nocheck || item._nointeraction) return this;
3031
554
 
3032
555
  item._checked = !item._checked;
3033
556
  if (p.focusItemEl) {
3034
- DomCompat.toggleClass(p.focusItemEl, "".concat(p.baseClassName, "__item_checked"), item._checked);
557
+ DomCompat.toggleClass(p.focusItemEl, `${p.baseClassName}__item_checked`, item._checked);
3035
558
  }
3036
559
  this._trigger('check', {
3037
560
  value: item.value,
3038
- item: (_item$ItemSymbol2 = item[ItemSymbol$1]) !== null && _item$ItemSymbol2 !== void 0 ? _item$ItemSymbol2 : item,
561
+ item: item[ItemSymbol$1] ?? item,
3039
562
  checked: item._checked,
3040
563
  isGroup: item._group,
3041
564
  isCheckingGroup: false
@@ -3047,7 +570,7 @@ class DropList {
3047
570
  return this;
3048
571
  }
3049
572
 
3050
- triggerItemSelection(item, event) {var _item, _item$ItemSymbol3;
573
+ triggerItemSelection(item, event) {
3051
574
  const p = this._p;
3052
575
 
3053
576
  p.focusItemEl = p.focusItemEl || Dom.closestUntil(event.target, 'li', p.el);
@@ -3055,7 +578,7 @@ class DropList {
3055
578
  if (p.focusItemIndex === undefined)
3056
579
  p.focusItemIndex = -1;
3057
580
 
3058
- item = (_item = item) !== null && _item !== void 0 ? _item : p.focusItemEl[ItemSymbol$1];
581
+ item = item ?? p.focusItemEl[ItemSymbol$1];
3059
582
  if (item._nointeraction) {
3060
583
  return false;
3061
584
  }
@@ -3066,7 +589,7 @@ class DropList {
3066
589
 
3067
590
  this._trigger('select', {
3068
591
  value: item ? item.value : undefined,
3069
- item: (_item$ItemSymbol3 = item[ItemSymbol$1]) !== null && _item$ItemSymbol3 !== void 0 ? _item$ItemSymbol3 : item,
592
+ item: item[ItemSymbol$1] ?? item,
3070
593
  event: event,
3071
594
  el: p.focusItemEl
3072
595
  });
@@ -3315,8 +838,8 @@ class DropList {
3315
838
  return this._p.items.length;
3316
839
  }
3317
840
 
3318
- itemAtIndex(index) {var _this$_p$items$index;
3319
- return (_this$_p$items$index = this._p.items[index]) === null || _this$_p$items$index === void 0 ? void 0 : _this$_p$items$index[ItemSymbol$1];
841
+ itemAtIndex(index) {
842
+ return this._p.items[index]?.[ItemSymbol$1];
3320
843
  }
3321
844
 
3322
845
  /**
@@ -3547,12 +1070,12 @@ class DropList {
3547
1070
  if (positionOptions && positionOptions.target) {
3548
1071
  p.lastPositionTarget = positionOptions.target;
3549
1072
 
3550
- DomCompat.toggleClass(positionOptions.target, "has_".concat(p.baseClassName), true);
3551
- DomCompat.toggleClass(positionOptions.target, "has_".concat(p.baseClassName, "_below"), newDirection === 'below');
3552
- DomCompat.toggleClass(positionOptions.target, "has_".concat(p.baseClassName, "_above"), newDirection === 'above');
1073
+ DomCompat.toggleClass(positionOptions.target, `has_${p.baseClassName}`, true);
1074
+ DomCompat.toggleClass(positionOptions.target, `has_${p.baseClassName}_below`, newDirection === 'below');
1075
+ DomCompat.toggleClass(positionOptions.target, `has_${p.baseClassName}_above`, newDirection === 'above');
3553
1076
 
3554
- DomCompat.toggleClass(el, "".concat(p.baseClassName, "__is_below"), newDirection === 'below');
3555
- DomCompat.toggleClass(el, "".concat(p.baseClassName, "__is_above"), newDirection === 'above');
1077
+ DomCompat.toggleClass(el, `${p.baseClassName}__is_below`, newDirection === 'below');
1078
+ DomCompat.toggleClass(el, `${p.baseClassName}__is_above`, newDirection === 'above');
3556
1079
  }
3557
1080
 
3558
1081
  return this;
@@ -3583,7 +1106,7 @@ class DropList {
3583
1106
  if (item._checked !== checked) {
3584
1107
  item._checked = checked;
3585
1108
 
3586
- DomCompat.toggleClass(li, "".concat(p.baseClassName, "__item_checked"), item._checked);
1109
+ DomCompat.toggleClass(li, `${p.baseClassName}__item_checked`, item._checked);
3587
1110
 
3588
1111
  this._updateGroupStateForItem(item);
3589
1112
  }
@@ -3617,7 +1140,7 @@ class DropList {
3617
1140
  let li = p.virtualListHelper.getItemElementAt(i);
3618
1141
  if (!li) continue;
3619
1142
 
3620
- DomCompat.toggleClass(li, "".concat(p.baseClassName, "__item_checked"), item._checked);
1143
+ DomCompat.toggleClass(li, `${p.baseClassName}__item_checked`, item._checked);
3621
1144
  }
3622
1145
 
3623
1146
  if (p.autoCheckGroupChildren) {
@@ -3706,7 +1229,7 @@ class DropList {
3706
1229
 
3707
1230
  const el = p.el;
3708
1231
  el.style.position = 'absolute';
3709
- el.classList.remove("".concat(p.baseClassName, "__is-hiding"));
1232
+ el.classList.remove(`${p.baseClassName}__is-hiding`);
3710
1233
  document.body.appendChild(el);
3711
1234
 
3712
1235
  p.visible = true;
@@ -3763,7 +1286,7 @@ class DropList {
3763
1286
 
3764
1287
  if (el) {
3765
1288
 
3766
- el.classList.add("".concat(p.baseClassName, "__is-hiding"));
1289
+ el.classList.add(`${p.baseClassName}__is-hiding`);
3767
1290
 
3768
1291
  // support for hide transition in css
3769
1292
  const maxTransitionDuration = Css.parseTransition(getComputedStyle(p.el).transition).
@@ -3775,14 +1298,14 @@ class DropList {
3775
1298
 
3776
1299
  if (this._p && el.parentNode && p.hiding) {
3777
1300
  DomCompat.remove(el);
3778
- el.classList.remove("".concat(p.baseClassName, "__is-hiding"));
1301
+ el.classList.remove(`${p.baseClassName}__is-hiding`);
3779
1302
  p.visible = false;
3780
1303
  this._trigger('hide:after');
3781
1304
  }
3782
1305
  });
3783
1306
  } else {
3784
1307
  DomCompat.remove(el);
3785
- el.classList.remove("".concat(p.baseClassName, "__is-hiding"));
1308
+ el.classList.remove(`${p.baseClassName}__is-hiding`);
3786
1309
  }
3787
1310
  }
3788
1311
 
@@ -3800,10 +1323,10 @@ class DropList {
3800
1323
  }
3801
1324
 
3802
1325
  if (p.lastPositionTarget) {
3803
- p.lastPositionTarget.classList.remove("has_".concat(
3804
- p.baseClassName), "has_".concat(
3805
- p.baseClassName, "_above"), "has_".concat(
3806
- p.baseClassName, "_below"));
1326
+ p.lastPositionTarget.classList.remove(
1327
+ `has_${p.baseClassName}`,
1328
+ `has_${p.baseClassName}_above`,
1329
+ `has_${p.baseClassName}_below`);
3807
1330
  delete p.lastPositionTarget;
3808
1331
  }
3809
1332
 
@@ -3844,19 +1367,19 @@ class DropList {
3844
1367
 
3845
1368
  if (p.focusItemEl !== itemElement) {
3846
1369
  if (p.focusItemEl) {
3847
- p.focusItemEl.classList.remove("".concat(p.baseClassName, "__item_focus"));
1370
+ p.focusItemEl.classList.remove(`${p.baseClassName}__item_focus`);
3848
1371
  p.focusItemEl = null;
3849
1372
  }
3850
1373
 
3851
- if (itemElement) {var _item$ItemSymbol4;
3852
- itemElement.classList.add("".concat(p.baseClassName, "__item_focus"));
1374
+ if (itemElement) {
1375
+ itemElement.classList.add(`${p.baseClassName}__item_focus`);
3853
1376
  p.focusItemEl = itemElement;
3854
1377
 
3855
1378
  const item = itemElement[ItemSymbol$1];
3856
1379
 
3857
1380
  this._trigger('itemfocus', {
3858
1381
  value: item.value,
3859
- item: (_item$ItemSymbol4 = item[ItemSymbol$1]) !== null && _item$ItemSymbol4 !== void 0 ? _item$ItemSymbol4 : item,
1382
+ item: item[ItemSymbol$1] ?? item,
3860
1383
  event: null,
3861
1384
  el: itemElement
3862
1385
  });
@@ -3868,8 +1391,8 @@ class DropList {
3868
1391
  return this;
3869
1392
  }
3870
1393
 
3871
- _showSublist(item, itemElement) {var _item$_subitems, _item$ItemSymbol5;
3872
- if (!((_item$_subitems = item._subitems) !== null && _item$_subitems !== void 0 && _item$_subitems.length)) return;
1394
+ _showSublist(item, itemElement) {
1395
+ if (!item._subitems?.length) return;
3873
1396
 
3874
1397
  const p = this._p;
3875
1398
 
@@ -3922,7 +1445,7 @@ class DropList {
3922
1445
 
3923
1446
  this._trigger('show_subitems', {
3924
1447
  value: item.value,
3925
- item: (_item$ItemSymbol5 = item[ItemSymbol$1]) !== null && _item$ItemSymbol5 !== void 0 ? _item$ItemSymbol5 : item,
1448
+ item: item[ItemSymbol$1] ?? item,
3926
1449
  el: itemElement,
3927
1450
  droplist: droplist
3928
1451
  });
@@ -4040,7 +1563,7 @@ class DropList {
4040
1563
  let itemPos,previousPos = -1;
4041
1564
  let maxIterations = 30; // Some zoom/scroll issues can make it so that it takes almost forever
4042
1565
 
4043
- // eslint-disable-next-line no-constant-condition
1566
+
4044
1567
  while (maxIterations-- > 0) {
4045
1568
  itemPos = p.virtualListHelper.getItemPosition(itemIndex);
4046
1569
 
@@ -4140,12 +1663,12 @@ class DropList {
4140
1663
  const p = this._p;
4141
1664
 
4142
1665
  if (p.singleSelectedItemEl) {
4143
- p.singleSelectedItemEl.classList.remove("".concat(p.baseClassName, "__item_checked"));
1666
+ p.singleSelectedItemEl.classList.remove(`${p.baseClassName}__item_checked`);
4144
1667
  p.singleSelectedItemEl = null;
4145
1668
  }
4146
1669
 
4147
1670
  if (itemEl) {
4148
- itemEl.classList.add("".concat(p.baseClassName, "__item_checked"));
1671
+ itemEl.classList.add(`${p.baseClassName}__item_checked`);
4149
1672
  p.singleSelectedItemEl = itemEl;
4150
1673
  }
4151
1674
 
@@ -4282,11 +1805,12 @@ class DropList {
4282
1805
  setTimeout(() => {
4283
1806
  if (this[DestroyedSymbol$1]) return;
4284
1807
 
4285
- if (!document.activeElement ||
4286
- !this.elContains(document.activeElement, true)) {
4287
- this._delayBlurItemOnBlur();
4288
- this._trigger('blur', event);
1808
+ if (document.activeElement && this.elContains(document.activeElement, true)) {
1809
+ return;
4289
1810
  }
1811
+
1812
+ this._delayBlurItemOnBlur();
1813
+ this._trigger('blur', event);
4290
1814
  });
4291
1815
  });
4292
1816
  }
@@ -4389,7 +1913,7 @@ class DropList {
4389
1913
  // Accumulate text to find from keystrokes
4390
1914
  let keyword = (p.previousFilter || '') + character;
4391
1915
 
4392
- let regex = new RegExp("^".concat(escapeRegex(keyword)), 'i');
1916
+ let regex = new RegExp(`^${escapeRegex(keyword)}`, 'i');
4393
1917
 
4394
1918
  let matchIndex = -1;
4395
1919
  let item;
@@ -4413,7 +1937,7 @@ class DropList {
4413
1937
  if (matchIndex === -1) {
4414
1938
  // No... So start over with this character as the only one.
4415
1939
  keyword = character;
4416
- regex = new RegExp("^".concat(escapeRegex(keyword)), 'i');
1940
+ regex = new RegExp(`^${escapeRegex(keyword)}`, 'i');
4417
1941
 
4418
1942
  for (let i = 0, count = p.items.length; i < count; i++) {
4419
1943
  if (matchIndex !== -1 && i < focusItemIndex)
@@ -4449,7 +1973,7 @@ class DropList {
4449
1973
  }
4450
1974
  }
4451
1975
 
4452
- _focus(event, itemEl, itemIndex, openSubitems) {var _item$ItemSymbol6;
1976
+ _focus(event, itemEl, itemIndex, openSubitems) {
4453
1977
  const p = this._p;
4454
1978
 
4455
1979
  if (p._isFocusingItem)
@@ -4481,14 +2005,14 @@ class DropList {
4481
2005
 
4482
2006
  this.blurFocusedItem();
4483
2007
 
4484
- focusItemEl.classList.add("".concat(p.baseClassName, "__item_focus"));
2008
+ focusItemEl.classList.add(`${p.baseClassName}__item_focus`);
4485
2009
  p.focusItemEl = focusItemEl;
4486
2010
  p.focusItemIndex = itemIndex;
4487
2011
 
4488
2012
  const item = p.items[itemIndex];
4489
2013
  this._trigger('itemfocus', {
4490
2014
  value: item.value,
4491
- item: (_item$ItemSymbol6 = item[ItemSymbol$1]) !== null && _item$ItemSymbol6 !== void 0 ? _item$ItemSymbol6 : item,
2015
+ item: item[ItemSymbol$1] ?? item,
4492
2016
  event: event,
4493
2017
  el: focusItemEl
4494
2018
  });
@@ -4578,7 +2102,7 @@ class DropList {
4578
2102
  let base = Css.getElementOffset(p.focusItemEl).top;
4579
2103
  let height = Css.getElementHeight(p.el, true);
4580
2104
 
4581
- while (true) {// eslint-disable-line no-constant-condition
2105
+ while (true) {
4582
2106
  next = p.focusItemEl.nextElementSibling;
4583
2107
  if (!next) return;
4584
2108
  if (next.tagName !== 'LI') continue;
@@ -4657,7 +2181,7 @@ class DropList {
4657
2181
  if (!p.multi)
4658
2182
  return this;
4659
2183
 
4660
- if (item._group) {var _item$ItemSymbol7;
2184
+ if (item._group) {
4661
2185
  // Now loop through children below the group
4662
2186
 
4663
2187
  let affectedItems = 0;
@@ -4666,7 +2190,7 @@ class DropList {
4666
2190
  let items = p.items;
4667
2191
  let groupIndex = items.indexOf(item);
4668
2192
 
4669
- for (let i = groupIndex + 1, len = items.length; i < len; i++) {var _next$ItemSymbol;
2193
+ for (let i = groupIndex + 1, len = items.length; i < len; i++) {
4670
2194
  let next = items[i];
4671
2195
 
4672
2196
  // Hit the next group, break out
@@ -4685,13 +2209,13 @@ class DropList {
4685
2209
  // Update DOM
4686
2210
  let nextEl = p.virtualListHelper.getItemElementAt(i);
4687
2211
  if (nextEl) {
4688
- DomCompat.toggleClass(nextEl, "".concat(p.baseClassName, "__item_checked"), item._checked);
2212
+ DomCompat.toggleClass(nextEl, `${p.baseClassName}__item_checked`, item._checked);
4689
2213
  }
4690
2214
 
4691
2215
  // Fire event
4692
2216
  this._trigger('check', {
4693
2217
  value: next.value,
4694
- item: (_next$ItemSymbol = next[ItemSymbol$1]) !== null && _next$ItemSymbol !== void 0 ? _next$ItemSymbol : next,
2218
+ item: next[ItemSymbol$1] ?? next,
4695
2219
  checked: next._checked,
4696
2220
  isGroup: next._group,
4697
2221
  isCheckingGroup: true
@@ -4702,7 +2226,7 @@ class DropList {
4702
2226
  // Fire event
4703
2227
  this._trigger('groupcheck', {
4704
2228
  value: item.value,
4705
- item: (_item$ItemSymbol7 = item[ItemSymbol$1]) !== null && _item$ItemSymbol7 !== void 0 ? _item$ItemSymbol7 : item,
2229
+ item: item[ItemSymbol$1] ?? item,
4706
2230
  affectedItems: affectedItems
4707
2231
  });
4708
2232
  } else if (p.groupCount > 0 && p.autoCheckGroupChildren) {
@@ -4766,14 +2290,14 @@ class DropList {
4766
2290
  // Update DOM
4767
2291
  let nextEl = p.virtualListHelper.getItemElementAt(groupIndex);
4768
2292
  if (nextEl) {
4769
- DomCompat.toggleClass(nextEl, "".concat(p.baseClassName, "__item_checked"), groupItem._checked);
2293
+ DomCompat.toggleClass(nextEl, `${p.baseClassName}__item_checked`, groupItem._checked);
4770
2294
  }
4771
2295
 
4772
- if (fireEvents) {var _groupItem$ItemSymbol;
2296
+ if (fireEvents) {
4773
2297
  // Fire event
4774
2298
  this._trigger('check', {
4775
2299
  value: groupItem.value,
4776
- item: (_groupItem$ItemSymbol = groupItem[ItemSymbol$1]) !== null && _groupItem$ItemSymbol !== void 0 ? _groupItem$ItemSymbol : groupItem,
2300
+ item: groupItem[ItemSymbol$1] ?? groupItem,
4777
2301
  checked: groupItem._checked,
4778
2302
  isGroup: groupItem._group,
4779
2303
  isCheckingGroup: false
@@ -4858,7 +2382,7 @@ class DropList {
4858
2382
 
4859
2383
  if (!p.renderItem || p.renderItem(item[ItemSymbol$1] || item, itemEl) === false) {
4860
2384
  itemEl.appendChild(Dom.createElement('span', {
4861
- class: "".concat(p.baseClassName, "__item_label"),
2385
+ class: `${p.baseClassName}__item_label`,
4862
2386
  textContent: item.label
4863
2387
  }));
4864
2388
 
@@ -4917,7 +2441,7 @@ class DropList {
4917
2441
  if (scrollWidth > newOuterWidth) {
4918
2442
  // consider scrollWidth delta
4919
2443
  let delta = scrollWidth - newOuterWidth;
4920
- el.style.width = "".concat(parseFloat(el.style.width) + delta, "px");
2444
+ el.style.width = `${parseFloat(el.style.width) + delta}px`;
4921
2445
  newOuterWidth = scrollWidth;
4922
2446
  }
4923
2447
 
@@ -5103,7 +2627,7 @@ const defaultMultiPlaceholderFormatter = (items, labelProp) => {
5103
2627
  let title = items[0][labelProp] + '';
5104
2628
 
5105
2629
  if (items.length > 1) {
5106
- title += " (+".concat(items.length - 1, ")");
2630
+ title += ` (+${items.length - 1})`;
5107
2631
  }
5108
2632
 
5109
2633
  return title;
@@ -5260,9 +2784,9 @@ class SelectBox {
5260
2784
  const target = /**Element*/evt.target;
5261
2785
 
5262
2786
  if (!el.contains(evt.relatedTarget) &&
5263
- !hasClass(target, "".concat(p.baseClassName, "__search_field")) &&
5264
- !hasClass(target, "".concat(p.baseClassName, "__item"))) {
5265
- let field = el.querySelector(".".concat(p.baseClassName, "__search_field"));
2787
+ !hasClass(target, `${p.baseClassName}__search_field`) &&
2788
+ !hasClass(target, `${p.baseClassName}__item`)) {
2789
+ let field = el.querySelector(`.${p.baseClassName}__search_field`);
5266
2790
  field && field.focus();
5267
2791
  }
5268
2792
  }, true);
@@ -5282,7 +2806,7 @@ class SelectBox {
5282
2806
  clearTimeout(t);
5283
2807
  }
5284
2808
  t = setTimeout(() => {
5285
- DomCompat.toggleClass(el, "".concat(p.baseClassName, "__focus"), el.contains(document.activeElement));
2809
+ DomCompat.toggleClass(el, `${p.baseClassName}__focus`, el.contains(document.activeElement));
5286
2810
  });
5287
2811
  };
5288
2812
  })();
@@ -5341,7 +2865,7 @@ class SelectBox {
5341
2865
  return this;
5342
2866
  }
5343
2867
 
5344
- destroy() {var _p$resizeObserver;
2868
+ destroy() {
5345
2869
  if (this[DestroyedSymbol])
5346
2870
  return;
5347
2871
  this[DestroyedSymbol] = true;
@@ -5389,7 +2913,7 @@ class SelectBox {
5389
2913
  p.el.removeAttribute('aria-expanded');
5390
2914
  }
5391
2915
 
5392
- (_p$resizeObserver = p.resizeObserver) === null || _p$resizeObserver === void 0 || _p$resizeObserver.disconnect();
2916
+ p.resizeObserver?.disconnect();
5393
2917
 
5394
2918
  this._p = null;
5395
2919
  }
@@ -5398,6 +2922,20 @@ class SelectBox {
5398
2922
  return this._p.el;
5399
2923
  }
5400
2924
 
2925
+ get droplistInstance() {
2926
+ return this._p.dropList;
2927
+ }
2928
+
2929
+ /**
2930
+ * Returns true if other is an inclusive descendant of droplist node, false otherwise, and undefined if the droplist is not initiated.
2931
+ * @param {Node} other
2932
+ * @param {boolean} [considerSubmenus=true]
2933
+ * @returns {boolean|undefined}
2934
+ */
2935
+ droplistElContains(other) {let considerSubmenus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2936
+ return this._p.dropList?.elContains(other, considerSubmenus);
2937
+ }
2938
+
5401
2939
  /**
5402
2940
  * Enables the control
5403
2941
  * @param {boolean=true} enabled Should the control be enabled?
@@ -6518,10 +4056,10 @@ class SelectBox {
6518
4056
  if (!p.input) {
6519
4057
  p.inputWrapper = Dom.createElement('span',
6520
4058
  {
6521
- class: "".concat(p.baseClassName, "__search_wrapper")
4059
+ class: `${p.baseClassName}__search_wrapper`
6522
4060
  },
6523
4061
  p.input = Dom.createElement('input', {
6524
- class: "".concat(p.baseClassName, "__search_field"),
4062
+ class: `${p.baseClassName}__search_field`,
6525
4063
  type: 'search',
6526
4064
  autocomplete: 'off',
6527
4065
  autocorrect: 'off',
@@ -6550,28 +4088,28 @@ class SelectBox {
6550
4088
  const lastActiveElement = document.activeElement;
6551
4089
 
6552
4090
  p.list = Dom.createElement('ul', {
6553
- class: "".concat(p.baseClassName, "__list")
4091
+ class: `${p.baseClassName}__list`
6554
4092
  });
6555
4093
  p.el.appendChild(p.list);
6556
4094
  p.list.appendChild(p.inputWrapper);
6557
- p.el.classList.remove("".concat(p.baseClassName, "__single"));
6558
- p.el.classList.add("".concat(p.baseClassName, "__multi"));
4095
+ p.el.classList.remove(`${p.baseClassName}__single`);
4096
+ p.el.classList.add(`${p.baseClassName}__multi`);
6559
4097
 
6560
4098
  // Hook clear and remove
6561
4099
  p.sink.
6562
4100
  add(p.list, 'click', (evt) => {
6563
- if (!Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item_remove"), evt.currentTarget))
4101
+ if (!Dom.closestUntil(evt.target, `.${p.baseClassName}__item_remove`, evt.currentTarget))
6564
4102
  return;
6565
4103
 
6566
4104
  if (p.disabled) return;
6567
4105
 
6568
4106
  this._removeMultiItemFromEvent(
6569
4107
  /**@type Element*/
6570
- Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item"), evt.currentTarget),
4108
+ Dom.closestUntil(evt.target, `.${p.baseClassName}__item`, evt.currentTarget),
6571
4109
  evt);
6572
4110
  }).
6573
4111
  add(p.list, 'keydown', ( /**KeyboardEvent*/evt) => {
6574
- if (!Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item"), evt.currentTarget))
4112
+ if (!Dom.closestUntil(evt.target, `.${p.baseClassName}__item`, evt.currentTarget))
6575
4113
  return;
6576
4114
 
6577
4115
  this._handleMultiKeydown(evt);
@@ -6598,12 +4136,12 @@ class SelectBox {
6598
4136
  const lastActiveElement = document.activeElement;
6599
4137
 
6600
4138
  p.singleWrapper = Dom.createElement('div', {
6601
- class: "".concat(p.baseClassName, "__single_wrapper")
4139
+ class: `${p.baseClassName}__single_wrapper`
6602
4140
  });
6603
4141
  p.el.appendChild(p.singleWrapper);
6604
4142
  p.el.appendChild(p.inputWrapper);
6605
- p.el.classList.remove("".concat(p.baseClassName, "__multi"));
6606
- p.el.classList.add("".concat(p.baseClassName, "__single"));
4143
+ p.el.classList.remove(`${p.baseClassName}__multi`);
4144
+ p.el.classList.add(`${p.baseClassName}__single`);
6607
4145
 
6608
4146
  if (lastActiveElement === p.input)
6609
4147
  p.input.focus();
@@ -6614,24 +4152,24 @@ class SelectBox {
6614
4152
 
6615
4153
  if (p.hasOpenIndicator !== !!p.openIndicator) {
6616
4154
  if (p.hasOpenIndicator) {
6617
- p.openIndicator = Dom.createElement('span', { class: "".concat(p.baseClassName, "__open_indicator") });
4155
+ p.openIndicator = Dom.createElement('span', { class: `${p.baseClassName}__open_indicator` });
6618
4156
  p.el.appendChild(p.openIndicator);
6619
4157
  } else {
6620
4158
  DomCompat.remove(p.openIndicator);
6621
4159
  delete p.openIndicator;
6622
- p.el.classList.remove("".concat(p.baseClassName, "__has_open_indicator"));
4160
+ p.el.classList.remove(`${p.baseClassName}__has_open_indicator`);
6623
4161
  }
6624
4162
  }
6625
4163
 
6626
4164
  if (p.isLoadingMode !== !!p.spinner) {
6627
4165
  if (p.isLoadingMode) {
6628
- p.spinner = Dom.createElement('span', { class: "".concat(p.baseClassName, "__spinner") });
4166
+ p.spinner = Dom.createElement('span', { class: `${p.baseClassName}__spinner` });
6629
4167
  p.el.appendChild(p.spinner);
6630
- p.el.classList.add("".concat(p.baseClassName, "__has_spinner"));
4168
+ p.el.classList.add(`${p.baseClassName}__has_spinner`);
6631
4169
  } else {
6632
4170
  DomCompat.remove(p.spinner);
6633
4171
  delete p.spinner;
6634
- p.el.classList.remove("".concat(p.baseClassName, "__has_spinner"));
4172
+ p.el.classList.remove(`${p.baseClassName}__has_spinner`);
6635
4173
  }
6636
4174
  }
6637
4175
  }
@@ -6648,33 +4186,33 @@ class SelectBox {
6648
4186
  let classes = [p.baseClassName];
6649
4187
 
6650
4188
  if (p.multi)
6651
- classes.push("".concat(p.baseClassName, "__multi"));else
6652
- classes.push("".concat(p.baseClassName, "__single"));
4189
+ classes.push(`${p.baseClassName}__multi`);else
4190
+ classes.push(`${p.baseClassName}__single`);
6653
4191
 
6654
4192
  if (this.isListOpen())
6655
- classes.push("".concat(p.baseClassName, "__open_list"));else
6656
- classes.push("".concat(p.baseClassName, "__closed_list"));
4193
+ classes.push(`${p.baseClassName}__open_list`);else
4194
+ classes.push(`${p.baseClassName}__closed_list`);
6657
4195
 
6658
4196
  if (p.hasOpenIndicator)
6659
- classes.push("".concat(p.baseClassName, "__has_open_indicator"));
4197
+ classes.push(`${p.baseClassName}__has_open_indicator`);
6660
4198
 
6661
4199
  if (p.clearButtonWrapper)
6662
- classes.push("".concat(p.baseClassName, "__has_clear"));
4200
+ classes.push(`${p.baseClassName}__has_clear`);
6663
4201
 
6664
4202
  if (p.isLoadingMode)
6665
- classes.push("".concat(p.baseClassName, "__has_spinner"));
4203
+ classes.push(`${p.baseClassName}__has_spinner`);
6666
4204
 
6667
4205
  if (p.selectedValues.length === 0)
6668
- classes.push("".concat(p.baseClassName, "__empty_selection"));
4206
+ classes.push(`${p.baseClassName}__empty_selection`);
6669
4207
 
6670
4208
  if (p.selectedValues.length > 0)
6671
- classes.push("".concat(p.baseClassName, "__has_selection"));
4209
+ classes.push(`${p.baseClassName}__has_selection`);
6672
4210
 
6673
4211
  if (p.searchable || p.multi)
6674
- classes.push("".concat(p.baseClassName, "__searchable"));
4212
+ classes.push(`${p.baseClassName}__searchable`);
6675
4213
 
6676
4214
  if (p.direction === 'ltr' || p.direction === 'rtl')
6677
- classes.push("".concat(p.baseClassName, "__") + p.direction);
4215
+ classes.push(`${p.baseClassName}__` + p.direction);
6678
4216
 
6679
4217
  if (p.additionalClasses) {
6680
4218
  classes = classes.concat(p.additionalClasses);
@@ -6748,8 +4286,8 @@ class SelectBox {
6748
4286
  case 'show:before':{
6749
4287
  p.dropListVisible = true;
6750
4288
  p.el.setAttribute('aria-expanded', 'true');
6751
- p.el.classList.add("".concat(p.baseClassName, "__open_list"));
6752
- p.el.classList.remove("".concat(p.baseClassName, "__closed_list"));
4289
+ p.el.classList.add(`${p.baseClassName}__open_list`);
4290
+ p.el.classList.remove(`${p.baseClassName}__closed_list`);
6753
4291
 
6754
4292
  if (p.resortBySelectionNeeded && p.sortListCheckedFirst && p.multi)
6755
4293
  p.itemsChanged = true;
@@ -6778,8 +4316,8 @@ class SelectBox {
6778
4316
  case 'hide':{
6779
4317
  p.dropListVisible = false;
6780
4318
  p.el.setAttribute('aria-expanded', 'false');
6781
- p.el.classList.remove("".concat(p.baseClassName, "__open_list"));
6782
- p.el.classList.add("".concat(p.baseClassName, "__closed_list"));
4319
+ p.el.classList.remove(`${p.baseClassName}__open_list`);
4320
+ p.el.classList.add(`${p.baseClassName}__closed_list`);
6783
4321
 
6784
4322
  if (!p.multi) {
6785
4323
  this._setInputText('');
@@ -6892,6 +4430,9 @@ class SelectBox {
6892
4430
  }
6893
4431
  }
6894
4432
  break;
4433
+
4434
+ case 'blur':
4435
+ this._handleOnBlur();
6895
4436
  }
6896
4437
  }
6897
4438
  });
@@ -6906,6 +4447,27 @@ class SelectBox {
6906
4447
  this._registerDropdownEvents();
6907
4448
  }
6908
4449
 
4450
+ _handleOnBlur() {
4451
+ const p = this._p;
4452
+
4453
+ setTimeout(() => {
4454
+ if (p.disabled) return;
4455
+
4456
+ this._trigger('search:blur');
4457
+
4458
+ if (this[DestroyedSymbol]) return; // destroyed by event handler
4459
+
4460
+ if (document.activeElement && (
4461
+ p.input && p.input.contains(document.activeElement) ||
4462
+ p.dropList && this.droplistElContains(document.activeElement, true))) {
4463
+ return;
4464
+ }
4465
+ if (p.throttledUpdateListItems)
4466
+ p.throttledUpdateListItems.cancel();
4467
+ this.closeList();
4468
+ });
4469
+ }
4470
+
6909
4471
  _unregisterDropdownEvents() {
6910
4472
  const p = this._p;
6911
4473
 
@@ -7075,18 +4637,7 @@ class SelectBox {
7075
4637
  avoidToggleFromClick = true;
7076
4638
  setTimeout(() => {avoidToggleFromClick = false;}, 10);
7077
4639
  }).
7078
- add(p.input, 'blur.dropdown', () => {
7079
- if (p.disabled) return;
7080
-
7081
- this._trigger('search:blur');
7082
-
7083
- if (this[DestroyedSymbol]) return; // destroyed by event handler
7084
-
7085
- if (p.throttledUpdateListItems)
7086
- p.throttledUpdateListItems.cancel();
7087
-
7088
- this.closeList();
7089
- });
4640
+ add(p.input, 'blur.dropdown', () => this._handleOnBlur());
7090
4641
  }
7091
4642
 
7092
4643
  p.sink.
@@ -7103,7 +4654,7 @@ class SelectBox {
7103
4654
  if (this.isDisabled())
7104
4655
  return;
7105
4656
 
7106
- if (Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__clear"), p.el))
4657
+ if (Dom.closestUntil(evt.target, `.${p.baseClassName}__item,.${p.baseClassName}__clear`, p.el))
7107
4658
  return;
7108
4659
 
7109
4660
  let onTouchCancel = () => {
@@ -7163,13 +4714,13 @@ class SelectBox {
7163
4714
  return true;
7164
4715
  }
7165
4716
 
7166
- _movePrev() {var _p$filteredItems;
4717
+ _movePrev() {
7167
4718
  const p = this._p;
7168
4719
 
7169
4720
  if (this.isMultiEnabled()) return;
7170
4721
 
7171
4722
  let selectedItems = this.getSelectedItems();
7172
- let items = (_p$filteredItems = p.filteredItems) !== null && _p$filteredItems !== void 0 ? _p$filteredItems : p.items;
4723
+ let items = p.filteredItems ?? p.items;
7173
4724
  if (p.currentItemsView && p.currentItemsView.length === items.length)
7174
4725
  items = p.currentItemsView;
7175
4726
  if (items.length + (p.clearable ? 1 : 0) > 1) {
@@ -7186,13 +4737,13 @@ class SelectBox {
7186
4737
  }
7187
4738
  }
7188
4739
 
7189
- _moveNext() {var _p$filteredItems2;
4740
+ _moveNext() {
7190
4741
  const p = this._p;
7191
4742
 
7192
4743
  if (this.isMultiEnabled()) return;
7193
4744
 
7194
4745
  let selectedItems = this.getSelectedItems();
7195
- let items = (_p$filteredItems2 = p.filteredItems) !== null && _p$filteredItems2 !== void 0 ? _p$filteredItems2 : p.items;
4746
+ let items = p.filteredItems ?? p.items;
7196
4747
  if (p.currentItemsView && p.currentItemsView.length === items.length)
7197
4748
  items = p.currentItemsView;
7198
4749
  if (items.length + (p.clearable ? 1 : 0) > 1) {
@@ -7463,9 +5014,9 @@ class SelectBox {
7463
5014
  case 'removeMultiItemRestElement':{
7464
5015
  if (!p.showSelection) {
7465
5016
  this._syncPlaceholder();
7466
- } else {var _itemEl$ItemSymbol;
5017
+ } else {
7467
5018
  let itemEl = p.multiItemEls[p.multiItemEls.length - 1];
7468
- if ((itemEl === null || itemEl === void 0 || (_itemEl$ItemSymbol = itemEl[ItemSymbol]) === null || _itemEl$ItemSymbol === void 0 ? void 0 : _itemEl$ItemSymbol[p.valueProp]) === RestMultiItemsSymbol) {
5019
+ if (itemEl?.[ItemSymbol]?.[p.valueProp] === RestMultiItemsSymbol) {
7469
5020
  this._removeMultiItemElementByIndex(p.multiItemEls.length - 1);
7470
5021
  }
7471
5022
  }
@@ -7505,12 +5056,12 @@ class SelectBox {
7505
5056
  _removeMultiItemElementByIndex(index) {
7506
5057
  const p = this._p,multiItemEls = p.multiItemEls;
7507
5058
 
7508
- if (multiItemEls.length > index) {var _p$unrenderRestMultiI;
5059
+ if (multiItemEls.length > index) {
7509
5060
  const itemEl = multiItemEls[index];
7510
5061
  const item = itemEl[ItemSymbol];
7511
5062
 
7512
- let unrender = (item === null || item === void 0 ? void 0 : item[p.valueProp]) === RestMultiItemsSymbol ? (_p$unrenderRestMultiI =
7513
- p.unrenderRestMultiItem) !== null && _p$unrenderRestMultiI !== void 0 ? _p$unrenderRestMultiI : p.unrenderMultiItem :
5063
+ let unrender = item?.[p.valueProp] === RestMultiItemsSymbol ?
5064
+ p.unrenderRestMultiItem ?? p.unrenderMultiItem :
7514
5065
  p.unrenderMultiItem;
7515
5066
 
7516
5067
  if (unrender && itemEl.childNodes.length > 0) {
@@ -7552,11 +5103,11 @@ class SelectBox {
7552
5103
  * @param {Element} itemEl
7553
5104
  * @private
7554
5105
  */
7555
- _renderMultiItemContent(item, itemEl) {var _p$renderRestMultiIte;
5106
+ _renderMultiItemContent(item, itemEl) {
7556
5107
  const p = this._p;
7557
5108
 
7558
- let render = item[p.valueProp] === RestMultiItemsSymbol ? (_p$renderRestMultiIte =
7559
- p.renderRestMultiItem) !== null && _p$renderRestMultiIte !== void 0 ? _p$renderRestMultiIte : p.renderMultiItem :
5109
+ let render = item[p.valueProp] === RestMultiItemsSymbol ?
5110
+ p.renderRestMultiItem ?? p.renderMultiItem :
7560
5111
  p.renderMultiItem;
7561
5112
 
7562
5113
  if (!render || render(item, itemEl) === false) {
@@ -7592,8 +5143,8 @@ class SelectBox {
7592
5143
  let items = p.selectedItems.slice(0);
7593
5144
  let count = (p.treatGroupSelectionAsItems ? items : items.filter((x) => !x._group)).length - p.maxMultiItems;
7594
5145
  let label = p.multiItemsRestLabelProvider ?
7595
- p.multiItemsRestLabelProvider(count, items) : "+ ".concat(
7596
- count);
5146
+ p.multiItemsRestLabelProvider(count, items) :
5147
+ `+ ${count}`;
7597
5148
 
7598
5149
  this._addMultiItemElement({
7599
5150
  items: items,
@@ -7614,12 +5165,12 @@ class SelectBox {
7614
5165
  if (!p.clearButtonWrapper) {
7615
5166
  p.clearButtonWrapper = Dom.createElement(
7616
5167
  p.multi ? 'li' : 'span',
7617
- { class: "".concat(p.baseClassName, "__clear") },
5168
+ { class: `${p.baseClassName}__clear` },
7618
5169
  p.clearButton = Dom.createElement('button'));
7619
5170
  if (p.multi)
7620
5171
  DomCompat.append(p.list, p.clearButtonWrapper);else
7621
5172
  DomCompat.append(p.el, p.clearButtonWrapper);
7622
- p.el.classList.add("".concat(p.baseClassName, "__has_clear"));
5173
+ p.el.classList.add(`${p.baseClassName}__has_clear`);
7623
5174
 
7624
5175
  p.sink.add(p.clearButton, 'click', () => {
7625
5176
  if (this.isDisabled()) return;
@@ -7633,7 +5184,7 @@ class SelectBox {
7633
5184
  DomCompat.remove(p.clearButtonWrapper);
7634
5185
  delete p.clearButtonWrapper;
7635
5186
  delete p.clearButton;
7636
- p.el.classList.remove("".concat(p.baseClassName, "__has_clear"));
5187
+ p.el.classList.remove(`${p.baseClassName}__has_clear`);
7637
5188
  }
7638
5189
  }
7639
5190
  }
@@ -7767,15 +5318,15 @@ class SelectBox {
7767
5318
  if (DomCompat.getRootNode(p.el) !== document)
7768
5319
  return this;
7769
5320
 
7770
- DomCompat.toggleClass(p.el, "".concat(p.baseClassName, "__empty_selection"), p.selectedValues.length === 0);
7771
- DomCompat.toggleClass(p.el, "".concat(p.baseClassName, "__has_selection"), p.selectedValues.length > 0);
5321
+ DomCompat.toggleClass(p.el, `${p.baseClassName}__empty_selection`, p.selectedValues.length === 0);
5322
+ DomCompat.toggleClass(p.el, `${p.baseClassName}__has_selection`, p.selectedValues.length > 0);
7772
5323
 
7773
5324
  if (p.searchable || p.multi) {
7774
5325
  if (p.input) p.input.readOnly = false;
7775
- p.el.classList.add("".concat(p.baseClassName, "__searchable"));
5326
+ p.el.classList.add(`${p.baseClassName}__searchable`);
7776
5327
  } else {
7777
5328
  if (p.input) p.input.readOnly = true;
7778
- p.el.classList.remove("".concat(p.baseClassName, "__searchable"));
5329
+ p.el.classList.remove(`${p.baseClassName}__searchable`);
7779
5330
  }
7780
5331
 
7781
5332
  // Update input size
@@ -7806,24 +5357,24 @@ class SelectBox {
7806
5357
  * @returns {Element|null}
7807
5358
  * @private
7808
5359
  */
7809
- _renderMultiItem(item) {var _item$multiItemLabelP;
5360
+ _renderMultiItem(item) {
7810
5361
  const p = this._p;
7811
5362
 
7812
5363
  const labelProp = p.labelProp,
7813
5364
  multiItemLabelProp = p.multiItemLabelProp;
7814
- const label = (_item$multiItemLabelP = item[multiItemLabelProp]) !== null && _item$multiItemLabelP !== void 0 ? _item$multiItemLabelP : item[labelProp];
5365
+ const label = item[multiItemLabelProp] ?? item[labelProp];
7815
5366
  if (label === false)
7816
5367
  return null;
7817
5368
 
7818
5369
  const itemEl = Dom.createElement('li',
7819
5370
  {
7820
- class: "".concat(p.baseClassName, "__item"),
5371
+ class: `${p.baseClassName}__item`,
7821
5372
  tabindex: '0',
7822
5373
  title: label
7823
5374
  },
7824
5375
  [
7825
5376
  Dom.createElement('span', {
7826
- class: "".concat(p.baseClassName, "__item_remove"),
5377
+ class: `${p.baseClassName}__item_remove`,
7827
5378
  role: 'presentation'
7828
5379
  })]
7829
5380
 
@@ -7850,12 +5401,12 @@ class SelectBox {
7850
5401
  if (/key/.test(originatingEvent.type)) {
7851
5402
  const kEvent = /**@type KeyboardEvent*/originatingEvent;
7852
5403
  if (kEvent.key === keycodeJs.VALUE_DELETE) {// Delete
7853
- nextFocus = Dom.next(itemEl, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
5404
+ nextFocus = Dom.next(itemEl, `.${p.baseClassName}__item,.${p.baseClassName}__search_wrapper`);
7854
5405
  } else if (kEvent.key === keycodeJs.VALUE_BACK_SPACE) {// Backspace
7855
- nextFocus = Dom.prev(itemEl, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
5406
+ nextFocus = Dom.prev(itemEl, `.${p.baseClassName}__item,.${p.baseClassName}__search_wrapper`);
7856
5407
  }
7857
5408
  } else if (/click|mouse|touch/.test(originatingEvent.type)) {
7858
- nextFocus = Dom.next(itemEl, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
5409
+ nextFocus = Dom.next(itemEl, `.${p.baseClassName}__item,.${p.baseClassName}__search_wrapper`);
7859
5410
  }
7860
5411
 
7861
5412
  const item = itemEl[ItemSymbol],value = item[p.valueProp];
@@ -7913,10 +5464,10 @@ class SelectBox {
7913
5464
  }
7914
5465
 
7915
5466
  if (!nextFocus) {
7916
- nextFocus = p.el.querySelector(".".concat(p.baseClassName, "__item, .").concat(p.baseClassName, "__search_field"));
5467
+ nextFocus = p.el.querySelector(`.${p.baseClassName}__item, .${p.baseClassName}__search_field`);
7917
5468
  }
7918
5469
 
7919
- if (hasClass(nextFocus, "".concat(p.baseClassName, "__search_wrapper"))) {
5470
+ if (hasClass(nextFocus, `${p.baseClassName}__search_wrapper`)) {
7920
5471
  nextFocus = nextFocus.querySelector('input');
7921
5472
  }
7922
5473
 
@@ -7996,8 +5547,8 @@ class SelectBox {
7996
5547
  const input = p.input,backBufferEl = p.inputBackBuffer;
7997
5548
 
7998
5549
  let inputValue = input.value || input.placeholder;
7999
- DomCompat.toggleClass(el, "".concat(p.baseClassName, "__has_input"), !!inputValue);
8000
- DomCompat.toggleClass(el, "".concat(p.baseClassName, "__empty_input"), !inputValue);
5550
+ DomCompat.toggleClass(el, `${p.baseClassName}__has_input`, !!inputValue);
5551
+ DomCompat.toggleClass(el, `${p.baseClassName}__empty_input`, !inputValue);
8001
5552
 
8002
5553
  let hasResize = false;
8003
5554
 
@@ -8026,7 +5577,7 @@ class SelectBox {
8026
5577
  let contentWidth = Css.getElementWidth(p.list || el); // calculate width
8027
5578
  contentWidth -= beforeWidth + afterWidth;
8028
5579
 
8029
- input.style.width = "".concat(contentWidth, "px");
5580
+ input.style.width = `${contentWidth}px`;
8030
5581
 
8031
5582
  hasResize = true; // We may want to track the resize here better to avoid unnecessary event
8032
5583
  } else {
@@ -8054,7 +5605,7 @@ class SelectBox {
8054
5605
  if (scrollWidth > newWidth) {
8055
5606
  // consider scrollWidth delta
8056
5607
  let delta = scrollWidth - newWidth;
8057
- input.style.width = "".concat(parseFloat(input.style.width) + delta, "px");
5608
+ input.style.width = `${parseFloat(input.style.width) + delta}px`;
8058
5609
 
8059
5610
  newWidth += delta;
8060
5611
  }
@@ -8155,16 +5706,16 @@ class SelectBox {
8155
5706
  let nextFocus;
8156
5707
 
8157
5708
  if (event.key === (isRtl ? keycodeJs.VALUE_LEFT : keycodeJs.VALUE_RIGHT)) {// Next arrow
8158
- nextFocus = Dom.next( /**@type Element*/event.target, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
8159
- if (hasClass(nextFocus, "".concat(p.baseClassName, "__search_wrapper"))) {
5709
+ nextFocus = Dom.next( /**@type Element*/event.target, `.${p.baseClassName}__item,.${p.baseClassName}__search_wrapper`);
5710
+ if (hasClass(nextFocus, `${p.baseClassName}__search_wrapper`)) {
8160
5711
  nextFocus = nextFocus.querySelector('input');
8161
5712
  }
8162
5713
  nextFocus && nextFocus.focus();
8163
5714
 
8164
5715
  event.preventDefault();
8165
5716
  } else if (event.key === (isRtl ? keycodeJs.VALUE_RIGHT : keycodeJs.VALUE_LEFT)) {// Prev arrow
8166
- nextFocus = Dom.prev( /**@type Element*/event.target, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__search_wrapper"));
8167
- if (hasClass(nextFocus, "".concat(p.baseClassName, "__search_wrapper"))) {
5717
+ nextFocus = Dom.prev( /**@type Element*/event.target, `.${p.baseClassName}__item,.${p.baseClassName}__search_wrapper`);
5718
+ if (hasClass(nextFocus, `${p.baseClassName}__search_wrapper`)) {
8168
5719
  nextFocus = nextFocus.querySelector('input');
8169
5720
  }
8170
5721
  nextFocus && nextFocus.focus();
@@ -8175,7 +5726,7 @@ class SelectBox {
8175
5726
  let itemEl = event.target;
8176
5727
  while (itemEl) {
8177
5728
  multiItemEls.push(itemEl);
8178
- itemEl = Dom.prev( /**@type Element*/itemEl, ".".concat(p.baseClassName, "__item"));
5729
+ itemEl = Dom.prev( /**@type Element*/itemEl, `.${p.baseClassName}__item`);
8179
5730
  }
8180
5731
 
8181
5732
  while (multiItemEls.length) {
@@ -8184,7 +5735,7 @@ class SelectBox {
8184
5735
 
8185
5736
  event.preventDefault();
8186
5737
  } else if (event.key === keycodeJs.VALUE_DELETE || event.key === keycodeJs.VALUE_BACK_SPACE) {// Delete / Backspace
8187
- this._removeMultiItemFromEvent(Dom.closestUntil(event.target, ".".concat(p.baseClassName, "__item"), p.el), event);
5738
+ this._removeMultiItemFromEvent(Dom.closestUntil(event.target, `.${p.baseClassName}__item`, p.el), event);
8188
5739
  event.preventDefault();
8189
5740
  }
8190
5741
  }