@beeq/tailwindcss 1.9.0 → 1.10.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import plugin from 'tailwindcss/plugin';
2
- import ThemeSwapper from 'tailwindcss-theme-swapper';
3
2
 
4
3
  const blendColor = ({
5
4
  color,
@@ -249,6 +248,2188 @@ const LogicalProperties = plugin(function ({
249
248
  });
250
249
  });
251
250
 
251
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
252
+
253
+ var check = function (it) {
254
+ return it && it.Math === Math && it;
255
+ };
256
+
257
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
258
+ var globalThis_1 =
259
+ // eslint-disable-next-line es/no-global-this -- safe
260
+ check(typeof globalThis == 'object' && globalThis) ||
261
+ check(typeof window == 'object' && window) ||
262
+ // eslint-disable-next-line no-restricted-globals -- safe
263
+ check(typeof self == 'object' && self) ||
264
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
265
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
266
+ // eslint-disable-next-line no-new-func -- fallback
267
+ (function () { return this; })() || Function('return this')();
268
+
269
+ var objectGetOwnPropertyDescriptor = {};
270
+
271
+ var fails$c = function (exec) {
272
+ try {
273
+ return !!exec();
274
+ } catch (error) {
275
+ return true;
276
+ }
277
+ };
278
+
279
+ var fails$b = fails$c;
280
+
281
+ // Detect IE8's incomplete defineProperty implementation
282
+ var descriptors = !fails$b(function () {
283
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
284
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
285
+ });
286
+
287
+ var fails$a = fails$c;
288
+
289
+ var functionBindNative = !fails$a(function () {
290
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
291
+ var test = (function () { /* empty */ }).bind();
292
+ // eslint-disable-next-line no-prototype-builtins -- safe
293
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
294
+ });
295
+
296
+ var NATIVE_BIND$2 = functionBindNative;
297
+
298
+ var call$b = Function.prototype.call;
299
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
300
+ var functionCall = NATIVE_BIND$2 ? call$b.bind(call$b) : function () {
301
+ return call$b.apply(call$b, arguments);
302
+ };
303
+
304
+ var objectPropertyIsEnumerable = {};
305
+
306
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
307
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
308
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
309
+
310
+ // Nashorn ~ JDK8 bug
311
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
312
+
313
+ // `Object.prototype.propertyIsEnumerable` method implementation
314
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
315
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
316
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
317
+ return !!descriptor && descriptor.enumerable;
318
+ } : $propertyIsEnumerable;
319
+
320
+ var createPropertyDescriptor$3 = function (bitmap, value) {
321
+ return {
322
+ enumerable: !(bitmap & 1),
323
+ configurable: !(bitmap & 2),
324
+ writable: !(bitmap & 4),
325
+ value: value
326
+ };
327
+ };
328
+
329
+ var NATIVE_BIND$1 = functionBindNative;
330
+
331
+ var FunctionPrototype$1 = Function.prototype;
332
+ var call$a = FunctionPrototype$1.call;
333
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
334
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$a, call$a);
335
+
336
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
337
+ return function () {
338
+ return call$a.apply(fn, arguments);
339
+ };
340
+ };
341
+
342
+ var uncurryThis$d = functionUncurryThis;
343
+
344
+ var toString$1 = uncurryThis$d({}.toString);
345
+ var stringSlice$1 = uncurryThis$d(''.slice);
346
+
347
+ var classofRaw$2 = function (it) {
348
+ return stringSlice$1(toString$1(it), 8, -1);
349
+ };
350
+
351
+ var uncurryThis$c = functionUncurryThis;
352
+ var fails$9 = fails$c;
353
+ var classof$2 = classofRaw$2;
354
+
355
+ var $Object$4 = Object;
356
+ var split = uncurryThis$c(''.split);
357
+
358
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
359
+ var indexedObject = fails$9(function () {
360
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
361
+ // eslint-disable-next-line no-prototype-builtins -- safe
362
+ return !$Object$4('z').propertyIsEnumerable(0);
363
+ }) ? function (it) {
364
+ return classof$2(it) === 'String' ? split(it, '') : $Object$4(it);
365
+ } : $Object$4;
366
+
367
+ // we can't use just `it == null` since of `document.all` special case
368
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
369
+ var isNullOrUndefined$3 = function (it) {
370
+ return it === null || it === undefined;
371
+ };
372
+
373
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
374
+
375
+ var $TypeError$b = TypeError;
376
+
377
+ // `RequireObjectCoercible` abstract operation
378
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
379
+ var requireObjectCoercible$2 = function (it) {
380
+ if (isNullOrUndefined$2(it)) throw new $TypeError$b("Can't call method on " + it);
381
+ return it;
382
+ };
383
+
384
+ // toObject with fallback for non-array-like ES3 strings
385
+ var IndexedObject = indexedObject;
386
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
387
+
388
+ var toIndexedObject$4 = function (it) {
389
+ return IndexedObject(requireObjectCoercible$1(it));
390
+ };
391
+
392
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
393
+ var documentAll = typeof document == 'object' && document.all;
394
+
395
+ // `IsCallable` abstract operation
396
+ // https://tc39.es/ecma262/#sec-iscallable
397
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
398
+ var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
399
+ return typeof argument == 'function' || argument === documentAll;
400
+ } : function (argument) {
401
+ return typeof argument == 'function';
402
+ };
403
+
404
+ var isCallable$d = isCallable$e;
405
+
406
+ var isObject$6 = function (it) {
407
+ return typeof it == 'object' ? it !== null : isCallable$d(it);
408
+ };
409
+
410
+ var globalThis$c = globalThis_1;
411
+ var isCallable$c = isCallable$e;
412
+
413
+ var aFunction = function (argument) {
414
+ return isCallable$c(argument) ? argument : undefined;
415
+ };
416
+
417
+ var getBuiltIn$4 = function (namespace, method) {
418
+ return arguments.length < 2 ? aFunction(globalThis$c[namespace]) : globalThis$c[namespace] && globalThis$c[namespace][method];
419
+ };
420
+
421
+ var uncurryThis$b = functionUncurryThis;
422
+
423
+ var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
424
+
425
+ var globalThis$b = globalThis_1;
426
+
427
+ var navigator = globalThis$b.navigator;
428
+ var userAgent$1 = navigator && navigator.userAgent;
429
+
430
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
431
+
432
+ var globalThis$a = globalThis_1;
433
+ var userAgent = environmentUserAgent;
434
+
435
+ var process = globalThis$a.process;
436
+ var Deno = globalThis$a.Deno;
437
+ var versions = process && process.versions || Deno && Deno.version;
438
+ var v8 = versions && versions.v8;
439
+ var match, version;
440
+
441
+ if (v8) {
442
+ match = v8.split('.');
443
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
444
+ // but their correct versions are not interesting for us
445
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
446
+ }
447
+
448
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
449
+ // so check `userAgent` even if `.v8` exists, but 0
450
+ if (!version && userAgent) {
451
+ match = userAgent.match(/Edge\/(\d+)/);
452
+ if (!match || match[1] >= 74) {
453
+ match = userAgent.match(/Chrome\/(\d+)/);
454
+ if (match) version = +match[1];
455
+ }
456
+ }
457
+
458
+ var environmentV8Version = version;
459
+
460
+ /* eslint-disable es/no-symbol -- required for testing */
461
+ var V8_VERSION = environmentV8Version;
462
+ var fails$8 = fails$c;
463
+ var globalThis$9 = globalThis_1;
464
+
465
+ var $String$3 = globalThis$9.String;
466
+
467
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
468
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
469
+ var symbol = Symbol('symbol detection');
470
+ // Chrome 38 Symbol has incorrect toString conversion
471
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
472
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
473
+ // of course, fail.
474
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
475
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
476
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
477
+ });
478
+
479
+ /* eslint-disable es/no-symbol -- required for testing */
480
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
481
+
482
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
483
+ !Symbol.sham &&
484
+ typeof Symbol.iterator == 'symbol';
485
+
486
+ var getBuiltIn$3 = getBuiltIn$4;
487
+ var isCallable$b = isCallable$e;
488
+ var isPrototypeOf$2 = objectIsPrototypeOf;
489
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
490
+
491
+ var $Object$3 = Object;
492
+
493
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
494
+ return typeof it == 'symbol';
495
+ } : function (it) {
496
+ var $Symbol = getBuiltIn$3('Symbol');
497
+ return isCallable$b($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
498
+ };
499
+
500
+ var $String$2 = String;
501
+
502
+ var tryToString$3 = function (argument) {
503
+ try {
504
+ return $String$2(argument);
505
+ } catch (error) {
506
+ return 'Object';
507
+ }
508
+ };
509
+
510
+ var isCallable$a = isCallable$e;
511
+ var tryToString$2 = tryToString$3;
512
+
513
+ var $TypeError$a = TypeError;
514
+
515
+ // `Assert: IsCallable(argument) is true`
516
+ var aCallable$8 = function (argument) {
517
+ if (isCallable$a(argument)) return argument;
518
+ throw new $TypeError$a(tryToString$2(argument) + ' is not a function');
519
+ };
520
+
521
+ var aCallable$7 = aCallable$8;
522
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
523
+
524
+ // `GetMethod` abstract operation
525
+ // https://tc39.es/ecma262/#sec-getmethod
526
+ var getMethod$4 = function (V, P) {
527
+ var func = V[P];
528
+ return isNullOrUndefined$1(func) ? undefined : aCallable$7(func);
529
+ };
530
+
531
+ var call$9 = functionCall;
532
+ var isCallable$9 = isCallable$e;
533
+ var isObject$5 = isObject$6;
534
+
535
+ var $TypeError$9 = TypeError;
536
+
537
+ // `OrdinaryToPrimitive` abstract operation
538
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
539
+ var ordinaryToPrimitive$1 = function (input, pref) {
540
+ var fn, val;
541
+ if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$9(fn, input))) return val;
542
+ if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$9(fn, input))) return val;
543
+ if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$9(fn, input))) return val;
544
+ throw new $TypeError$9("Can't convert object to primitive value");
545
+ };
546
+
547
+ var sharedStore = {exports: {}};
548
+
549
+ var isPure = false;
550
+
551
+ var globalThis$8 = globalThis_1;
552
+
553
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
554
+ var defineProperty$2 = Object.defineProperty;
555
+
556
+ var defineGlobalProperty$3 = function (key, value) {
557
+ try {
558
+ defineProperty$2(globalThis$8, key, { value: value, configurable: true, writable: true });
559
+ } catch (error) {
560
+ globalThis$8[key] = value;
561
+ } return value;
562
+ };
563
+
564
+ var globalThis$7 = globalThis_1;
565
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
566
+
567
+ var SHARED = '__core-js_shared__';
568
+ var store$3 = sharedStore.exports = globalThis$7[SHARED] || defineGlobalProperty$2(SHARED, {});
569
+
570
+ (store$3.versions || (store$3.versions = [])).push({
571
+ version: '3.41.0',
572
+ mode: 'global',
573
+ copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
574
+ license: 'https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE',
575
+ source: 'https://github.com/zloirock/core-js'
576
+ });
577
+
578
+ var sharedStoreExports = sharedStore.exports;
579
+
580
+ var store$2 = sharedStoreExports;
581
+
582
+ var shared$3 = function (key, value) {
583
+ return store$2[key] || (store$2[key] = value || {});
584
+ };
585
+
586
+ var requireObjectCoercible = requireObjectCoercible$2;
587
+
588
+ var $Object$2 = Object;
589
+
590
+ // `ToObject` abstract operation
591
+ // https://tc39.es/ecma262/#sec-toobject
592
+ var toObject$2 = function (argument) {
593
+ return $Object$2(requireObjectCoercible(argument));
594
+ };
595
+
596
+ var uncurryThis$a = functionUncurryThis;
597
+ var toObject$1 = toObject$2;
598
+
599
+ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
600
+
601
+ // `HasOwnProperty` abstract operation
602
+ // https://tc39.es/ecma262/#sec-hasownproperty
603
+ // eslint-disable-next-line es/no-object-hasown -- safe
604
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
605
+ return hasOwnProperty(toObject$1(it), key);
606
+ };
607
+
608
+ var uncurryThis$9 = functionUncurryThis;
609
+
610
+ var id = 0;
611
+ var postfix = Math.random();
612
+ var toString = uncurryThis$9(1.0.toString);
613
+
614
+ var uid$2 = function (key) {
615
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
616
+ };
617
+
618
+ var globalThis$6 = globalThis_1;
619
+ var shared$2 = shared$3;
620
+ var hasOwn$8 = hasOwnProperty_1;
621
+ var uid$1 = uid$2;
622
+ var NATIVE_SYMBOL = symbolConstructorDetection;
623
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
624
+
625
+ var Symbol$1 = globalThis$6.Symbol;
626
+ var WellKnownSymbolsStore = shared$2('wks');
627
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
628
+
629
+ var wellKnownSymbol$8 = function (name) {
630
+ if (!hasOwn$8(WellKnownSymbolsStore, name)) {
631
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
632
+ ? Symbol$1[name]
633
+ : createWellKnownSymbol('Symbol.' + name);
634
+ } return WellKnownSymbolsStore[name];
635
+ };
636
+
637
+ var call$8 = functionCall;
638
+ var isObject$4 = isObject$6;
639
+ var isSymbol$1 = isSymbol$2;
640
+ var getMethod$3 = getMethod$4;
641
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
642
+ var wellKnownSymbol$7 = wellKnownSymbol$8;
643
+
644
+ var $TypeError$8 = TypeError;
645
+ var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
646
+
647
+ // `ToPrimitive` abstract operation
648
+ // https://tc39.es/ecma262/#sec-toprimitive
649
+ var toPrimitive$1 = function (input, pref) {
650
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
651
+ var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
652
+ var result;
653
+ if (exoticToPrim) {
654
+ if (pref === undefined) pref = 'default';
655
+ result = call$8(exoticToPrim, input, pref);
656
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
657
+ throw new $TypeError$8("Can't convert object to primitive value");
658
+ }
659
+ if (pref === undefined) pref = 'number';
660
+ return ordinaryToPrimitive(input, pref);
661
+ };
662
+
663
+ var toPrimitive = toPrimitive$1;
664
+ var isSymbol = isSymbol$2;
665
+
666
+ // `ToPropertyKey` abstract operation
667
+ // https://tc39.es/ecma262/#sec-topropertykey
668
+ var toPropertyKey$2 = function (argument) {
669
+ var key = toPrimitive(argument, 'string');
670
+ return isSymbol(key) ? key : key + '';
671
+ };
672
+
673
+ var globalThis$5 = globalThis_1;
674
+ var isObject$3 = isObject$6;
675
+
676
+ var document$1 = globalThis$5.document;
677
+ // typeof document.createElement is 'object' in old IE
678
+ var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
679
+
680
+ var documentCreateElement$1 = function (it) {
681
+ return EXISTS$1 ? document$1.createElement(it) : {};
682
+ };
683
+
684
+ var DESCRIPTORS$9 = descriptors;
685
+ var fails$7 = fails$c;
686
+ var createElement = documentCreateElement$1;
687
+
688
+ // Thanks to IE8 for its funny defineProperty
689
+ var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
690
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
691
+ return Object.defineProperty(createElement('div'), 'a', {
692
+ get: function () { return 7; }
693
+ }).a !== 7;
694
+ });
695
+
696
+ var DESCRIPTORS$8 = descriptors;
697
+ var call$7 = functionCall;
698
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
699
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
700
+ var toIndexedObject$3 = toIndexedObject$4;
701
+ var toPropertyKey$1 = toPropertyKey$2;
702
+ var hasOwn$7 = hasOwnProperty_1;
703
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
704
+
705
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
706
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
707
+
708
+ // `Object.getOwnPropertyDescriptor` method
709
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
710
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
711
+ O = toIndexedObject$3(O);
712
+ P = toPropertyKey$1(P);
713
+ if (IE8_DOM_DEFINE$1) try {
714
+ return $getOwnPropertyDescriptor$1(O, P);
715
+ } catch (error) { /* empty */ }
716
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule.f, O, P), O[P]);
717
+ };
718
+
719
+ var objectDefineProperty = {};
720
+
721
+ var DESCRIPTORS$7 = descriptors;
722
+ var fails$6 = fails$c;
723
+
724
+ // V8 ~ Chrome 36-
725
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
726
+ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
727
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
728
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
729
+ value: 42,
730
+ writable: false
731
+ }).prototype !== 42;
732
+ });
733
+
734
+ var isObject$2 = isObject$6;
735
+
736
+ var $String$1 = String;
737
+ var $TypeError$7 = TypeError;
738
+
739
+ // `Assert: Type(argument) is Object`
740
+ var anObject$d = function (argument) {
741
+ if (isObject$2(argument)) return argument;
742
+ throw new $TypeError$7($String$1(argument) + ' is not an object');
743
+ };
744
+
745
+ var DESCRIPTORS$6 = descriptors;
746
+ var IE8_DOM_DEFINE = ie8DomDefine;
747
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
748
+ var anObject$c = anObject$d;
749
+ var toPropertyKey = toPropertyKey$2;
750
+
751
+ var $TypeError$6 = TypeError;
752
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
753
+ var $defineProperty = Object.defineProperty;
754
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
755
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
756
+ var ENUMERABLE = 'enumerable';
757
+ var CONFIGURABLE$1 = 'configurable';
758
+ var WRITABLE = 'writable';
759
+
760
+ // `Object.defineProperty` method
761
+ // https://tc39.es/ecma262/#sec-object.defineproperty
762
+ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
763
+ anObject$c(O);
764
+ P = toPropertyKey(P);
765
+ anObject$c(Attributes);
766
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
767
+ var current = $getOwnPropertyDescriptor(O, P);
768
+ if (current && current[WRITABLE]) {
769
+ O[P] = Attributes.value;
770
+ Attributes = {
771
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
772
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
773
+ writable: false
774
+ };
775
+ }
776
+ } return $defineProperty(O, P, Attributes);
777
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
778
+ anObject$c(O);
779
+ P = toPropertyKey(P);
780
+ anObject$c(Attributes);
781
+ if (IE8_DOM_DEFINE) try {
782
+ return $defineProperty(O, P, Attributes);
783
+ } catch (error) { /* empty */ }
784
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
785
+ if ('value' in Attributes) O[P] = Attributes.value;
786
+ return O;
787
+ };
788
+
789
+ var DESCRIPTORS$5 = descriptors;
790
+ var definePropertyModule$4 = objectDefineProperty;
791
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
792
+
793
+ var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
794
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
795
+ } : function (object, key, value) {
796
+ object[key] = value;
797
+ return object;
798
+ };
799
+
800
+ var makeBuiltIn$3 = {exports: {}};
801
+
802
+ var DESCRIPTORS$4 = descriptors;
803
+ var hasOwn$6 = hasOwnProperty_1;
804
+
805
+ var FunctionPrototype = Function.prototype;
806
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
807
+ var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
808
+
809
+ var EXISTS = hasOwn$6(FunctionPrototype, 'name');
810
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
811
+
812
+ var functionName = {
813
+ CONFIGURABLE: CONFIGURABLE
814
+ };
815
+
816
+ var uncurryThis$8 = functionUncurryThis;
817
+ var isCallable$8 = isCallable$e;
818
+ var store$1 = sharedStoreExports;
819
+
820
+ var functionToString = uncurryThis$8(Function.toString);
821
+
822
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
823
+ if (!isCallable$8(store$1.inspectSource)) {
824
+ store$1.inspectSource = function (it) {
825
+ return functionToString(it);
826
+ };
827
+ }
828
+
829
+ var inspectSource$1 = store$1.inspectSource;
830
+
831
+ var globalThis$4 = globalThis_1;
832
+ var isCallable$7 = isCallable$e;
833
+
834
+ var WeakMap$1 = globalThis$4.WeakMap;
835
+
836
+ var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
837
+
838
+ var shared$1 = shared$3;
839
+ var uid = uid$2;
840
+
841
+ var keys$1 = shared$1('keys');
842
+
843
+ var sharedKey$3 = function (key) {
844
+ return keys$1[key] || (keys$1[key] = uid(key));
845
+ };
846
+
847
+ var hiddenKeys$4 = {};
848
+
849
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
850
+ var globalThis$3 = globalThis_1;
851
+ var isObject$1 = isObject$6;
852
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
853
+ var hasOwn$5 = hasOwnProperty_1;
854
+ var shared = sharedStoreExports;
855
+ var sharedKey$2 = sharedKey$3;
856
+ var hiddenKeys$3 = hiddenKeys$4;
857
+
858
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
859
+ var TypeError$1 = globalThis$3.TypeError;
860
+ var WeakMap = globalThis$3.WeakMap;
861
+ var set, get, has$6;
862
+
863
+ var enforce = function (it) {
864
+ return has$6(it) ? get(it) : set(it, {});
865
+ };
866
+
867
+ var getterFor = function (TYPE) {
868
+ return function (it) {
869
+ var state;
870
+ if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
871
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
872
+ } return state;
873
+ };
874
+ };
875
+
876
+ if (NATIVE_WEAK_MAP || shared.state) {
877
+ var store = shared.state || (shared.state = new WeakMap());
878
+ /* eslint-disable no-self-assign -- prototype methods protection */
879
+ store.get = store.get;
880
+ store.has = store.has;
881
+ store.set = store.set;
882
+ /* eslint-enable no-self-assign -- prototype methods protection */
883
+ set = function (it, metadata) {
884
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
885
+ metadata.facade = it;
886
+ store.set(it, metadata);
887
+ return metadata;
888
+ };
889
+ get = function (it) {
890
+ return store.get(it) || {};
891
+ };
892
+ has$6 = function (it) {
893
+ return store.has(it);
894
+ };
895
+ } else {
896
+ var STATE = sharedKey$2('state');
897
+ hiddenKeys$3[STATE] = true;
898
+ set = function (it, metadata) {
899
+ if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
900
+ metadata.facade = it;
901
+ createNonEnumerableProperty$2(it, STATE, metadata);
902
+ return metadata;
903
+ };
904
+ get = function (it) {
905
+ return hasOwn$5(it, STATE) ? it[STATE] : {};
906
+ };
907
+ has$6 = function (it) {
908
+ return hasOwn$5(it, STATE);
909
+ };
910
+ }
911
+
912
+ var internalState = {
913
+ set: set,
914
+ get: get,
915
+ has: has$6,
916
+ enforce: enforce,
917
+ getterFor: getterFor
918
+ };
919
+
920
+ var uncurryThis$7 = functionUncurryThis;
921
+ var fails$5 = fails$c;
922
+ var isCallable$6 = isCallable$e;
923
+ var hasOwn$4 = hasOwnProperty_1;
924
+ var DESCRIPTORS$3 = descriptors;
925
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
926
+ var inspectSource = inspectSource$1;
927
+ var InternalStateModule$1 = internalState;
928
+
929
+ var enforceInternalState = InternalStateModule$1.enforce;
930
+ var getInternalState = InternalStateModule$1.get;
931
+ var $String = String;
932
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
933
+ var defineProperty$1 = Object.defineProperty;
934
+ var stringSlice = uncurryThis$7(''.slice);
935
+ var replace = uncurryThis$7(''.replace);
936
+ var join = uncurryThis$7([].join);
937
+
938
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
939
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
940
+ });
941
+
942
+ var TEMPLATE = String(String).split('String');
943
+
944
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
945
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
946
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
947
+ }
948
+ if (options && options.getter) name = 'get ' + name;
949
+ if (options && options.setter) name = 'set ' + name;
950
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
951
+ if (DESCRIPTORS$3) defineProperty$1(value, 'name', { value: name, configurable: true });
952
+ else value.name = name;
953
+ }
954
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
955
+ defineProperty$1(value, 'length', { value: options.arity });
956
+ }
957
+ try {
958
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
959
+ if (DESCRIPTORS$3) defineProperty$1(value, 'prototype', { writable: false });
960
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
961
+ } else if (value.prototype) value.prototype = undefined;
962
+ } catch (error) { /* empty */ }
963
+ var state = enforceInternalState(value);
964
+ if (!hasOwn$4(state, 'source')) {
965
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
966
+ } return value;
967
+ };
968
+
969
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
970
+ // eslint-disable-next-line no-extend-native -- required
971
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
972
+ return isCallable$6(this) && getInternalState(this).source || inspectSource(this);
973
+ }, 'toString');
974
+
975
+ var makeBuiltInExports = makeBuiltIn$3.exports;
976
+
977
+ var isCallable$5 = isCallable$e;
978
+ var definePropertyModule$3 = objectDefineProperty;
979
+ var makeBuiltIn$1 = makeBuiltInExports;
980
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
981
+
982
+ var defineBuiltIn$3 = function (O, key, value, options) {
983
+ if (!options) options = {};
984
+ var simple = options.enumerable;
985
+ var name = options.name !== undefined ? options.name : key;
986
+ if (isCallable$5(value)) makeBuiltIn$1(value, name, options);
987
+ if (options.global) {
988
+ if (simple) O[key] = value;
989
+ else defineGlobalProperty$1(key, value);
990
+ } else {
991
+ try {
992
+ if (!options.unsafe) delete O[key];
993
+ else if (O[key]) simple = true;
994
+ } catch (error) { /* empty */ }
995
+ if (simple) O[key] = value;
996
+ else definePropertyModule$3.f(O, key, {
997
+ value: value,
998
+ enumerable: false,
999
+ configurable: !options.nonConfigurable,
1000
+ writable: !options.nonWritable
1001
+ });
1002
+ } return O;
1003
+ };
1004
+
1005
+ var objectGetOwnPropertyNames = {};
1006
+
1007
+ var ceil = Math.ceil;
1008
+ var floor = Math.floor;
1009
+
1010
+ // `Math.trunc` method
1011
+ // https://tc39.es/ecma262/#sec-math.trunc
1012
+ // eslint-disable-next-line es/no-math-trunc -- safe
1013
+ var mathTrunc = Math.trunc || function trunc(x) {
1014
+ var n = +x;
1015
+ return (n > 0 ? floor : ceil)(n);
1016
+ };
1017
+
1018
+ var trunc = mathTrunc;
1019
+
1020
+ // `ToIntegerOrInfinity` abstract operation
1021
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
1022
+ var toIntegerOrInfinity$3 = function (argument) {
1023
+ var number = +argument;
1024
+ // eslint-disable-next-line no-self-compare -- NaN check
1025
+ return number !== number || number === 0 ? 0 : trunc(number);
1026
+ };
1027
+
1028
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
1029
+
1030
+ var max$1 = Math.max;
1031
+ var min$1 = Math.min;
1032
+
1033
+ // Helper for a popular repeating case of the spec:
1034
+ // Let integer be ? ToInteger(index).
1035
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1036
+ var toAbsoluteIndex$1 = function (index, length) {
1037
+ var integer = toIntegerOrInfinity$2(index);
1038
+ return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
1039
+ };
1040
+
1041
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
1042
+
1043
+ var min = Math.min;
1044
+
1045
+ // `ToLength` abstract operation
1046
+ // https://tc39.es/ecma262/#sec-tolength
1047
+ var toLength$1 = function (argument) {
1048
+ var len = toIntegerOrInfinity$1(argument);
1049
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1050
+ };
1051
+
1052
+ var toLength = toLength$1;
1053
+
1054
+ // `LengthOfArrayLike` abstract operation
1055
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
1056
+ var lengthOfArrayLike$2 = function (obj) {
1057
+ return toLength(obj.length);
1058
+ };
1059
+
1060
+ var toIndexedObject$2 = toIndexedObject$4;
1061
+ var toAbsoluteIndex = toAbsoluteIndex$1;
1062
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
1063
+
1064
+ // `Array.prototype.{ indexOf, includes }` methods implementation
1065
+ var createMethod = function (IS_INCLUDES) {
1066
+ return function ($this, el, fromIndex) {
1067
+ var O = toIndexedObject$2($this);
1068
+ var length = lengthOfArrayLike$1(O);
1069
+ if (length === 0) return !IS_INCLUDES && -1;
1070
+ var index = toAbsoluteIndex(fromIndex, length);
1071
+ var value;
1072
+ // Array#includes uses SameValueZero equality algorithm
1073
+ // eslint-disable-next-line no-self-compare -- NaN check
1074
+ if (IS_INCLUDES && el !== el) while (length > index) {
1075
+ value = O[index++];
1076
+ // eslint-disable-next-line no-self-compare -- NaN check
1077
+ if (value !== value) return true;
1078
+ // Array#indexOf ignores holes, Array#includes - not
1079
+ } else for (;length > index; index++) {
1080
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1081
+ } return !IS_INCLUDES && -1;
1082
+ };
1083
+ };
1084
+
1085
+ var arrayIncludes = {
1086
+ // `Array.prototype.indexOf` method
1087
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
1088
+ indexOf: createMethod(false)
1089
+ };
1090
+
1091
+ var uncurryThis$6 = functionUncurryThis;
1092
+ var hasOwn$3 = hasOwnProperty_1;
1093
+ var toIndexedObject$1 = toIndexedObject$4;
1094
+ var indexOf = arrayIncludes.indexOf;
1095
+ var hiddenKeys$2 = hiddenKeys$4;
1096
+
1097
+ var push = uncurryThis$6([].push);
1098
+
1099
+ var objectKeysInternal = function (object, names) {
1100
+ var O = toIndexedObject$1(object);
1101
+ var i = 0;
1102
+ var result = [];
1103
+ var key;
1104
+ for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
1105
+ // Don't enum bug & hidden keys
1106
+ while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
1107
+ ~indexOf(result, key) || push(result, key);
1108
+ }
1109
+ return result;
1110
+ };
1111
+
1112
+ // IE8- don't enum bug keys
1113
+ var enumBugKeys$3 = [
1114
+ 'constructor',
1115
+ 'hasOwnProperty',
1116
+ 'isPrototypeOf',
1117
+ 'propertyIsEnumerable',
1118
+ 'toLocaleString',
1119
+ 'toString',
1120
+ 'valueOf'
1121
+ ];
1122
+
1123
+ var internalObjectKeys$1 = objectKeysInternal;
1124
+ var enumBugKeys$2 = enumBugKeys$3;
1125
+
1126
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1127
+
1128
+ // `Object.getOwnPropertyNames` method
1129
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1130
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1131
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1132
+ return internalObjectKeys$1(O, hiddenKeys$1);
1133
+ };
1134
+
1135
+ var objectGetOwnPropertySymbols = {};
1136
+
1137
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1138
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1139
+
1140
+ var getBuiltIn$2 = getBuiltIn$4;
1141
+ var uncurryThis$5 = functionUncurryThis;
1142
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1143
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1144
+ var anObject$b = anObject$d;
1145
+
1146
+ var concat = uncurryThis$5([].concat);
1147
+
1148
+ // all object keys, includes non-enumerable and symbols
1149
+ var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1150
+ var keys = getOwnPropertyNamesModule.f(anObject$b(it));
1151
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1152
+ return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1153
+ };
1154
+
1155
+ var hasOwn$2 = hasOwnProperty_1;
1156
+ var ownKeys = ownKeys$1;
1157
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1158
+ var definePropertyModule$2 = objectDefineProperty;
1159
+
1160
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1161
+ var keys = ownKeys(source);
1162
+ var defineProperty = definePropertyModule$2.f;
1163
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1164
+ for (var i = 0; i < keys.length; i++) {
1165
+ var key = keys[i];
1166
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1167
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1168
+ }
1169
+ }
1170
+ };
1171
+
1172
+ var fails$4 = fails$c;
1173
+ var isCallable$4 = isCallable$e;
1174
+
1175
+ var replacement = /#|\.prototype\./;
1176
+
1177
+ var isForced$1 = function (feature, detection) {
1178
+ var value = data[normalize(feature)];
1179
+ return value === POLYFILL ? true
1180
+ : value === NATIVE ? false
1181
+ : isCallable$4(detection) ? fails$4(detection)
1182
+ : !!detection;
1183
+ };
1184
+
1185
+ var normalize = isForced$1.normalize = function (string) {
1186
+ return String(string).replace(replacement, '.').toLowerCase();
1187
+ };
1188
+
1189
+ var data = isForced$1.data = {};
1190
+ var NATIVE = isForced$1.NATIVE = 'N';
1191
+ var POLYFILL = isForced$1.POLYFILL = 'P';
1192
+
1193
+ var isForced_1 = isForced$1;
1194
+
1195
+ var globalThis$2 = globalThis_1;
1196
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1197
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
1198
+ var defineBuiltIn$2 = defineBuiltIn$3;
1199
+ var defineGlobalProperty = defineGlobalProperty$3;
1200
+ var copyConstructorProperties = copyConstructorProperties$1;
1201
+ var isForced = isForced_1;
1202
+
1203
+ /*
1204
+ options.target - name of the target object
1205
+ options.global - target is the global object
1206
+ options.stat - export as static methods of target
1207
+ options.proto - export as prototype methods of target
1208
+ options.real - real prototype method for the `pure` version
1209
+ options.forced - export even if the native feature is available
1210
+ options.bind - bind methods to the target, required for the `pure` version
1211
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1212
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1213
+ options.sham - add a flag to not completely full polyfills
1214
+ options.enumerable - export as enumerable property
1215
+ options.dontCallGetSet - prevent calling a getter on target
1216
+ options.name - the .name of the function if it does not match the key
1217
+ */
1218
+ var _export = function (options, source) {
1219
+ var TARGET = options.target;
1220
+ var GLOBAL = options.global;
1221
+ var STATIC = options.stat;
1222
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1223
+ if (GLOBAL) {
1224
+ target = globalThis$2;
1225
+ } else if (STATIC) {
1226
+ target = globalThis$2[TARGET] || defineGlobalProperty(TARGET, {});
1227
+ } else {
1228
+ target = globalThis$2[TARGET] && globalThis$2[TARGET].prototype;
1229
+ }
1230
+ if (target) for (key in source) {
1231
+ sourceProperty = source[key];
1232
+ if (options.dontCallGetSet) {
1233
+ descriptor = getOwnPropertyDescriptor(target, key);
1234
+ targetProperty = descriptor && descriptor.value;
1235
+ } else targetProperty = target[key];
1236
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1237
+ // contained in target
1238
+ if (!FORCED && targetProperty !== undefined) {
1239
+ if (typeof sourceProperty == typeof targetProperty) continue;
1240
+ copyConstructorProperties(sourceProperty, targetProperty);
1241
+ }
1242
+ // add a flag to not completely full polyfills
1243
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1244
+ createNonEnumerableProperty$1(sourceProperty, 'sham', true);
1245
+ }
1246
+ defineBuiltIn$2(target, key, sourceProperty, options);
1247
+ }
1248
+ };
1249
+
1250
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1251
+
1252
+ var $TypeError$5 = TypeError;
1253
+
1254
+ var anInstance$1 = function (it, Prototype) {
1255
+ if (isPrototypeOf$1(Prototype, it)) return it;
1256
+ throw new $TypeError$5('Incorrect invocation');
1257
+ };
1258
+
1259
+ var fails$3 = fails$c;
1260
+
1261
+ var correctPrototypeGetter = !fails$3(function () {
1262
+ function F() { /* empty */ }
1263
+ F.prototype.constructor = null;
1264
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1265
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1266
+ });
1267
+
1268
+ var hasOwn$1 = hasOwnProperty_1;
1269
+ var isCallable$3 = isCallable$e;
1270
+ var toObject = toObject$2;
1271
+ var sharedKey$1 = sharedKey$3;
1272
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1273
+
1274
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1275
+ var $Object$1 = Object;
1276
+ var ObjectPrototype = $Object$1.prototype;
1277
+
1278
+ // `Object.getPrototypeOf` method
1279
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1280
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1281
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1282
+ var object = toObject(O);
1283
+ if (hasOwn$1(object, IE_PROTO$1)) return object[IE_PROTO$1];
1284
+ var constructor = object.constructor;
1285
+ if (isCallable$3(constructor) && object instanceof constructor) {
1286
+ return constructor.prototype;
1287
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1288
+ };
1289
+
1290
+ var makeBuiltIn = makeBuiltInExports;
1291
+ var defineProperty = objectDefineProperty;
1292
+
1293
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1294
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1295
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1296
+ return defineProperty.f(target, name, descriptor);
1297
+ };
1298
+
1299
+ var DESCRIPTORS$2 = descriptors;
1300
+ var definePropertyModule$1 = objectDefineProperty;
1301
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1302
+
1303
+ var createProperty$1 = function (object, key, value) {
1304
+ if (DESCRIPTORS$2) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
1305
+ else object[key] = value;
1306
+ };
1307
+
1308
+ var objectDefineProperties = {};
1309
+
1310
+ var internalObjectKeys = objectKeysInternal;
1311
+ var enumBugKeys$1 = enumBugKeys$3;
1312
+
1313
+ // `Object.keys` method
1314
+ // https://tc39.es/ecma262/#sec-object.keys
1315
+ // eslint-disable-next-line es/no-object-keys -- safe
1316
+ var objectKeys$1 = Object.keys || function keys(O) {
1317
+ return internalObjectKeys(O, enumBugKeys$1);
1318
+ };
1319
+
1320
+ var DESCRIPTORS$1 = descriptors;
1321
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1322
+ var definePropertyModule = objectDefineProperty;
1323
+ var anObject$a = anObject$d;
1324
+ var toIndexedObject = toIndexedObject$4;
1325
+ var objectKeys = objectKeys$1;
1326
+
1327
+ // `Object.defineProperties` method
1328
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1329
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1330
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1331
+ anObject$a(O);
1332
+ var props = toIndexedObject(Properties);
1333
+ var keys = objectKeys(Properties);
1334
+ var length = keys.length;
1335
+ var index = 0;
1336
+ var key;
1337
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1338
+ return O;
1339
+ };
1340
+
1341
+ var getBuiltIn$1 = getBuiltIn$4;
1342
+
1343
+ var html$1 = getBuiltIn$1('document', 'documentElement');
1344
+
1345
+ /* global ActiveXObject -- old IE, WSH */
1346
+ var anObject$9 = anObject$d;
1347
+ var definePropertiesModule = objectDefineProperties;
1348
+ var enumBugKeys = enumBugKeys$3;
1349
+ var hiddenKeys = hiddenKeys$4;
1350
+ var html = html$1;
1351
+ var documentCreateElement = documentCreateElement$1;
1352
+ var sharedKey = sharedKey$3;
1353
+
1354
+ var GT = '>';
1355
+ var LT = '<';
1356
+ var PROTOTYPE = 'prototype';
1357
+ var SCRIPT = 'script';
1358
+ var IE_PROTO = sharedKey('IE_PROTO');
1359
+
1360
+ var EmptyConstructor = function () { /* empty */ };
1361
+
1362
+ var scriptTag = function (content) {
1363
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1364
+ };
1365
+
1366
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1367
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1368
+ activeXDocument.write(scriptTag(''));
1369
+ activeXDocument.close();
1370
+ var temp = activeXDocument.parentWindow.Object;
1371
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1372
+ activeXDocument = null;
1373
+ return temp;
1374
+ };
1375
+
1376
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1377
+ var NullProtoObjectViaIFrame = function () {
1378
+ // Thrash, waste and sodomy: IE GC bug
1379
+ var iframe = documentCreateElement('iframe');
1380
+ var JS = 'java' + SCRIPT + ':';
1381
+ var iframeDocument;
1382
+ iframe.style.display = 'none';
1383
+ html.appendChild(iframe);
1384
+ // https://github.com/zloirock/core-js/issues/475
1385
+ iframe.src = String(JS);
1386
+ iframeDocument = iframe.contentWindow.document;
1387
+ iframeDocument.open();
1388
+ iframeDocument.write(scriptTag('document.F=Object'));
1389
+ iframeDocument.close();
1390
+ return iframeDocument.F;
1391
+ };
1392
+
1393
+ // Check for document.domain and active x support
1394
+ // No need to use active x approach when document.domain is not set
1395
+ // see https://github.com/es-shims/es5-shim/issues/150
1396
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1397
+ // avoid IE GC bug
1398
+ var activeXDocument;
1399
+ var NullProtoObject = function () {
1400
+ try {
1401
+ activeXDocument = new ActiveXObject('htmlfile');
1402
+ } catch (error) { /* ignore */ }
1403
+ NullProtoObject = typeof document != 'undefined'
1404
+ ? document.domain && activeXDocument
1405
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1406
+ : NullProtoObjectViaIFrame()
1407
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1408
+ var length = enumBugKeys.length;
1409
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1410
+ return NullProtoObject();
1411
+ };
1412
+
1413
+ hiddenKeys[IE_PROTO] = true;
1414
+
1415
+ // `Object.create` method
1416
+ // https://tc39.es/ecma262/#sec-object.create
1417
+ // eslint-disable-next-line es/no-object-create -- safe
1418
+ var objectCreate = Object.create || function create(O, Properties) {
1419
+ var result;
1420
+ if (O !== null) {
1421
+ EmptyConstructor[PROTOTYPE] = anObject$9(O);
1422
+ result = new EmptyConstructor();
1423
+ EmptyConstructor[PROTOTYPE] = null;
1424
+ // add "__proto__" for Object.getPrototypeOf polyfill
1425
+ result[IE_PROTO] = O;
1426
+ } else result = NullProtoObject();
1427
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1428
+ };
1429
+
1430
+ var fails$2 = fails$c;
1431
+ var isCallable$2 = isCallable$e;
1432
+ var isObject = isObject$6;
1433
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1434
+ var defineBuiltIn$1 = defineBuiltIn$3;
1435
+ var wellKnownSymbol$6 = wellKnownSymbol$8;
1436
+
1437
+ var ITERATOR$3 = wellKnownSymbol$6('iterator');
1438
+
1439
+ // `%IteratorPrototype%` object
1440
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1441
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1442
+
1443
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1444
+ if ([].keys) {
1445
+ arrayIterator = [].keys();
1446
+ // Safari 8 has buggy iterators w/o `next`
1447
+ if (!('next' in arrayIterator)) ;
1448
+ else {
1449
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1450
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1451
+ }
1452
+ }
1453
+
1454
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$2(function () {
1455
+ var test = {};
1456
+ // FF44- legacy iterators case
1457
+ return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
1458
+ });
1459
+
1460
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1461
+
1462
+ // `%IteratorPrototype%[@@iterator]()` method
1463
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1464
+ if (!isCallable$2(IteratorPrototype$2[ITERATOR$3])) {
1465
+ defineBuiltIn$1(IteratorPrototype$2, ITERATOR$3, function () {
1466
+ return this;
1467
+ });
1468
+ }
1469
+
1470
+ var iteratorsCore = {
1471
+ IteratorPrototype: IteratorPrototype$2};
1472
+
1473
+ var $$a = _export;
1474
+ var globalThis$1 = globalThis_1;
1475
+ var anInstance = anInstance$1;
1476
+ var anObject$8 = anObject$d;
1477
+ var isCallable$1 = isCallable$e;
1478
+ var getPrototypeOf = objectGetPrototypeOf;
1479
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
1480
+ var createProperty = createProperty$1;
1481
+ var fails$1 = fails$c;
1482
+ var hasOwn = hasOwnProperty_1;
1483
+ var wellKnownSymbol$5 = wellKnownSymbol$8;
1484
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1485
+ var DESCRIPTORS = descriptors;
1486
+
1487
+ var CONSTRUCTOR = 'constructor';
1488
+ var ITERATOR$2 = 'Iterator';
1489
+ var TO_STRING_TAG$3 = wellKnownSymbol$5('toStringTag');
1490
+
1491
+ var $TypeError$4 = TypeError;
1492
+ var NativeIterator = globalThis$1[ITERATOR$2];
1493
+
1494
+ // FF56- have non-standard global helper `Iterator`
1495
+ var FORCED = !isCallable$1(NativeIterator)
1496
+ || NativeIterator.prototype !== IteratorPrototype$1
1497
+ // FF44- non-standard `Iterator` passes previous tests
1498
+ || !fails$1(function () { NativeIterator({}); });
1499
+
1500
+ var IteratorConstructor = function Iterator() {
1501
+ anInstance(this, IteratorPrototype$1);
1502
+ if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$4('Abstract class Iterator not directly constructable');
1503
+ };
1504
+
1505
+ var defineIteratorPrototypeAccessor = function (key, value) {
1506
+ if (DESCRIPTORS) {
1507
+ defineBuiltInAccessor(IteratorPrototype$1, key, {
1508
+ configurable: true,
1509
+ get: function () {
1510
+ return value;
1511
+ },
1512
+ set: function (replacement) {
1513
+ anObject$8(this);
1514
+ if (this === IteratorPrototype$1) throw new $TypeError$4("You can't redefine this property");
1515
+ if (hasOwn(this, key)) this[key] = replacement;
1516
+ else createProperty(this, key, replacement);
1517
+ }
1518
+ });
1519
+ } else IteratorPrototype$1[key] = value;
1520
+ };
1521
+
1522
+ if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$2);
1523
+
1524
+ if (FORCED || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1525
+ defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1526
+ }
1527
+
1528
+ IteratorConstructor.prototype = IteratorPrototype$1;
1529
+
1530
+ // `Iterator` constructor
1531
+ // https://tc39.es/ecma262/#sec-iterator
1532
+ $$a({ global: true, constructor: true, forced: FORCED }, {
1533
+ Iterator: IteratorConstructor
1534
+ });
1535
+
1536
+ var classofRaw$1 = classofRaw$2;
1537
+ var uncurryThis$4 = functionUncurryThis;
1538
+
1539
+ var functionUncurryThisClause = function (fn) {
1540
+ // Nashorn bug:
1541
+ // https://github.com/zloirock/core-js/issues/1128
1542
+ // https://github.com/zloirock/core-js/issues/1130
1543
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$4(fn);
1544
+ };
1545
+
1546
+ var uncurryThis$3 = functionUncurryThisClause;
1547
+ var aCallable$6 = aCallable$8;
1548
+ var NATIVE_BIND = functionBindNative;
1549
+
1550
+ var bind$1 = uncurryThis$3(uncurryThis$3.bind);
1551
+
1552
+ // optional / simple context binding
1553
+ var functionBindContext = function (fn, that) {
1554
+ aCallable$6(fn);
1555
+ return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1556
+ return fn.apply(that, arguments);
1557
+ };
1558
+ };
1559
+
1560
+ var iterators = {};
1561
+
1562
+ var wellKnownSymbol$4 = wellKnownSymbol$8;
1563
+ var Iterators$1 = iterators;
1564
+
1565
+ var ITERATOR$1 = wellKnownSymbol$4('iterator');
1566
+ var ArrayPrototype = Array.prototype;
1567
+
1568
+ // check on default Array iterator
1569
+ var isArrayIteratorMethod$1 = function (it) {
1570
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$1] === it);
1571
+ };
1572
+
1573
+ var wellKnownSymbol$3 = wellKnownSymbol$8;
1574
+
1575
+ var TO_STRING_TAG$2 = wellKnownSymbol$3('toStringTag');
1576
+ var test = {};
1577
+
1578
+ test[TO_STRING_TAG$2] = 'z';
1579
+
1580
+ var toStringTagSupport = String(test) === '[object z]';
1581
+
1582
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1583
+ var isCallable = isCallable$e;
1584
+ var classofRaw = classofRaw$2;
1585
+ var wellKnownSymbol$2 = wellKnownSymbol$8;
1586
+
1587
+ var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1588
+ var $Object = Object;
1589
+
1590
+ // ES3 wrong here
1591
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1592
+
1593
+ // fallback for IE11 Script Access Denied error
1594
+ var tryGet = function (it, key) {
1595
+ try {
1596
+ return it[key];
1597
+ } catch (error) { /* empty */ }
1598
+ };
1599
+
1600
+ // getting tag from ES6+ `Object.prototype.toString`
1601
+ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1602
+ var O, tag, result;
1603
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1604
+ // @@toStringTag case
1605
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1606
+ // builtinTag case
1607
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1608
+ // ES3 arguments fallback
1609
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1610
+ };
1611
+
1612
+ var classof = classof$1;
1613
+ var getMethod$2 = getMethod$4;
1614
+ var isNullOrUndefined = isNullOrUndefined$3;
1615
+ var Iterators = iterators;
1616
+ var wellKnownSymbol$1 = wellKnownSymbol$8;
1617
+
1618
+ var ITERATOR = wellKnownSymbol$1('iterator');
1619
+
1620
+ var getIteratorMethod$2 = function (it) {
1621
+ if (!isNullOrUndefined(it)) return getMethod$2(it, ITERATOR)
1622
+ || getMethod$2(it, '@@iterator')
1623
+ || Iterators[classof(it)];
1624
+ };
1625
+
1626
+ var call$6 = functionCall;
1627
+ var aCallable$5 = aCallable$8;
1628
+ var anObject$7 = anObject$d;
1629
+ var tryToString$1 = tryToString$3;
1630
+ var getIteratorMethod$1 = getIteratorMethod$2;
1631
+
1632
+ var $TypeError$3 = TypeError;
1633
+
1634
+ var getIterator$1 = function (argument, usingIterator) {
1635
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1636
+ if (aCallable$5(iteratorMethod)) return anObject$7(call$6(iteratorMethod, argument));
1637
+ throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
1638
+ };
1639
+
1640
+ var call$5 = functionCall;
1641
+ var anObject$6 = anObject$d;
1642
+ var getMethod$1 = getMethod$4;
1643
+
1644
+ var iteratorClose$5 = function (iterator, kind, value) {
1645
+ var innerResult, innerError;
1646
+ anObject$6(iterator);
1647
+ try {
1648
+ innerResult = getMethod$1(iterator, 'return');
1649
+ if (!innerResult) {
1650
+ if (kind === 'throw') throw value;
1651
+ return value;
1652
+ }
1653
+ innerResult = call$5(innerResult, iterator);
1654
+ } catch (error) {
1655
+ innerError = true;
1656
+ innerResult = error;
1657
+ }
1658
+ if (kind === 'throw') throw value;
1659
+ if (innerError) throw innerResult;
1660
+ anObject$6(innerResult);
1661
+ return value;
1662
+ };
1663
+
1664
+ var bind = functionBindContext;
1665
+ var call$4 = functionCall;
1666
+ var anObject$5 = anObject$d;
1667
+ var tryToString = tryToString$3;
1668
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1669
+ var lengthOfArrayLike = lengthOfArrayLike$2;
1670
+ var isPrototypeOf = objectIsPrototypeOf;
1671
+ var getIterator = getIterator$1;
1672
+ var getIteratorMethod = getIteratorMethod$2;
1673
+ var iteratorClose$4 = iteratorClose$5;
1674
+
1675
+ var $TypeError$2 = TypeError;
1676
+
1677
+ var Result = function (stopped, result) {
1678
+ this.stopped = stopped;
1679
+ this.result = result;
1680
+ };
1681
+
1682
+ var ResultPrototype = Result.prototype;
1683
+
1684
+ var iterate$4 = function (iterable, unboundFunction, options) {
1685
+ var that = options && options.that;
1686
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1687
+ var IS_RECORD = !!(options && options.IS_RECORD);
1688
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1689
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1690
+ var fn = bind(unboundFunction, that);
1691
+ var iterator, iterFn, index, length, result, next, step;
1692
+
1693
+ var stop = function (condition) {
1694
+ if (iterator) iteratorClose$4(iterator, 'normal', condition);
1695
+ return new Result(true, condition);
1696
+ };
1697
+
1698
+ var callFn = function (value) {
1699
+ if (AS_ENTRIES) {
1700
+ anObject$5(value);
1701
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1702
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
1703
+ };
1704
+
1705
+ if (IS_RECORD) {
1706
+ iterator = iterable.iterator;
1707
+ } else if (IS_ITERATOR) {
1708
+ iterator = iterable;
1709
+ } else {
1710
+ iterFn = getIteratorMethod(iterable);
1711
+ if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');
1712
+ // optimisation for array iterators
1713
+ if (isArrayIteratorMethod(iterFn)) {
1714
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1715
+ result = callFn(iterable[index]);
1716
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
1717
+ } return new Result(false);
1718
+ }
1719
+ iterator = getIterator(iterable, iterFn);
1720
+ }
1721
+
1722
+ next = IS_RECORD ? iterable.next : iterator.next;
1723
+ while (!(step = call$4(next, iterator)).done) {
1724
+ try {
1725
+ result = callFn(step.value);
1726
+ } catch (error) {
1727
+ iteratorClose$4(iterator, 'throw', error);
1728
+ }
1729
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1730
+ } return new Result(false);
1731
+ };
1732
+
1733
+ // `GetIteratorDirect(obj)` abstract operation
1734
+ // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
1735
+ var getIteratorDirect$4 = function (obj) {
1736
+ return {
1737
+ iterator: obj,
1738
+ next: obj.next,
1739
+ done: false
1740
+ };
1741
+ };
1742
+
1743
+ var $$9 = _export;
1744
+ var iterate$3 = iterate$4;
1745
+ var aCallable$4 = aCallable$8;
1746
+ var anObject$4 = anObject$d;
1747
+ var getIteratorDirect$3 = getIteratorDirect$4;
1748
+
1749
+ // `Iterator.prototype.forEach` method
1750
+ // https://tc39.es/ecma262/#sec-iterator.prototype.foreach
1751
+ $$9({ target: 'Iterator', proto: true, real: true }, {
1752
+ forEach: function forEach(fn) {
1753
+ anObject$4(this);
1754
+ aCallable$4(fn);
1755
+ var record = getIteratorDirect$3(this);
1756
+ var counter = 0;
1757
+ iterate$3(record, function (value) {
1758
+ fn(value, counter++);
1759
+ }, { IS_RECORD: true });
1760
+ }
1761
+ });
1762
+
1763
+ var defineBuiltIn = defineBuiltIn$3;
1764
+
1765
+ var defineBuiltIns$1 = function (target, src, options) {
1766
+ for (var key in src) defineBuiltIn(target, key, src[key], options);
1767
+ return target;
1768
+ };
1769
+
1770
+ // `CreateIterResultObject` abstract operation
1771
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1772
+ var createIterResultObject$1 = function (value, done) {
1773
+ return { value: value, done: done };
1774
+ };
1775
+
1776
+ var call$3 = functionCall;
1777
+ var create = objectCreate;
1778
+ var createNonEnumerableProperty = createNonEnumerableProperty$3;
1779
+ var defineBuiltIns = defineBuiltIns$1;
1780
+ var wellKnownSymbol = wellKnownSymbol$8;
1781
+ var InternalStateModule = internalState;
1782
+ var getMethod = getMethod$4;
1783
+ var IteratorPrototype = iteratorsCore.IteratorPrototype;
1784
+ var createIterResultObject = createIterResultObject$1;
1785
+ var iteratorClose$3 = iteratorClose$5;
1786
+
1787
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1788
+ var ITERATOR_HELPER = 'IteratorHelper';
1789
+ var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1790
+ var setInternalState = InternalStateModule.set;
1791
+
1792
+ var createIteratorProxyPrototype = function (IS_ITERATOR) {
1793
+ var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1794
+
1795
+ return defineBuiltIns(create(IteratorPrototype), {
1796
+ next: function next() {
1797
+ var state = getInternalState(this);
1798
+ // for simplification:
1799
+ // for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
1800
+ // for `%IteratorHelperPrototype%.next` - just a value
1801
+ if (IS_ITERATOR) return state.nextHandler();
1802
+ if (state.done) return createIterResultObject(undefined, true);
1803
+ try {
1804
+ var result = state.nextHandler();
1805
+ return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
1806
+ } catch (error) {
1807
+ state.done = true;
1808
+ throw error;
1809
+ }
1810
+ },
1811
+ 'return': function () {
1812
+ var state = getInternalState(this);
1813
+ var iterator = state.iterator;
1814
+ state.done = true;
1815
+ if (IS_ITERATOR) {
1816
+ var returnMethod = getMethod(iterator, 'return');
1817
+ return returnMethod ? call$3(returnMethod, iterator) : createIterResultObject(undefined, true);
1818
+ }
1819
+ if (state.inner) try {
1820
+ iteratorClose$3(state.inner.iterator, 'normal');
1821
+ } catch (error) {
1822
+ return iteratorClose$3(iterator, 'throw', error);
1823
+ }
1824
+ if (iterator) iteratorClose$3(iterator, 'normal');
1825
+ return createIterResultObject(undefined, true);
1826
+ }
1827
+ });
1828
+ };
1829
+
1830
+ var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
1831
+ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
1832
+
1833
+ createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
1834
+
1835
+ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
1836
+ var IteratorProxy = function Iterator(record, state) {
1837
+ if (state) {
1838
+ state.iterator = record.iterator;
1839
+ state.next = record.next;
1840
+ } else state = record;
1841
+ state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
1842
+ state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
1843
+ state.nextHandler = nextHandler;
1844
+ state.counter = 0;
1845
+ state.done = false;
1846
+ setInternalState(this, state);
1847
+ };
1848
+
1849
+ IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
1850
+
1851
+ return IteratorProxy;
1852
+ };
1853
+
1854
+ var anObject$3 = anObject$d;
1855
+ var iteratorClose$2 = iteratorClose$5;
1856
+
1857
+ // call something on iterator step with safe closing on error
1858
+ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
1859
+ try {
1860
+ return ENTRIES ? fn(anObject$3(value)[0], value[1]) : fn(value);
1861
+ } catch (error) {
1862
+ iteratorClose$2(iterator, 'throw', error);
1863
+ }
1864
+ };
1865
+
1866
+ var call$2 = functionCall;
1867
+ var aCallable$3 = aCallable$8;
1868
+ var anObject$2 = anObject$d;
1869
+ var getIteratorDirect$2 = getIteratorDirect$4;
1870
+ var createIteratorProxy = iteratorCreateProxy;
1871
+ var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
1872
+
1873
+ var IteratorProxy = createIteratorProxy(function () {
1874
+ var iterator = this.iterator;
1875
+ var result = anObject$2(call$2(this.next, iterator));
1876
+ var done = this.done = !!result.done;
1877
+ if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
1878
+ });
1879
+
1880
+ // `Iterator.prototype.map` method
1881
+ // https://github.com/tc39/proposal-iterator-helpers
1882
+ var iteratorMap = function map(mapper) {
1883
+ anObject$2(this);
1884
+ aCallable$3(mapper);
1885
+ return new IteratorProxy(getIteratorDirect$2(this), {
1886
+ mapper: mapper
1887
+ });
1888
+ };
1889
+
1890
+ var $$8 = _export;
1891
+ var map = iteratorMap;
1892
+ var IS_PURE = isPure;
1893
+
1894
+ // `Iterator.prototype.map` method
1895
+ // https://tc39.es/ecma262/#sec-iterator.prototype.map
1896
+ $$8({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
1897
+ map: map
1898
+ });
1899
+
1900
+ var $$7 = _export;
1901
+ var iterate$2 = iterate$4;
1902
+ var aCallable$2 = aCallable$8;
1903
+ var anObject$1 = anObject$d;
1904
+ var getIteratorDirect$1 = getIteratorDirect$4;
1905
+
1906
+ var $TypeError$1 = TypeError;
1907
+
1908
+ // `Iterator.prototype.reduce` method
1909
+ // https://tc39.es/ecma262/#sec-iterator.prototype.reduce
1910
+ $$7({ target: 'Iterator', proto: true, real: true }, {
1911
+ reduce: function reduce(reducer /* , initialValue */) {
1912
+ anObject$1(this);
1913
+ aCallable$2(reducer);
1914
+ var record = getIteratorDirect$1(this);
1915
+ var noInitial = arguments.length < 2;
1916
+ var accumulator = noInitial ? undefined : arguments[1];
1917
+ var counter = 0;
1918
+ iterate$2(record, function (value) {
1919
+ if (noInitial) {
1920
+ noInitial = false;
1921
+ accumulator = value;
1922
+ } else {
1923
+ accumulator = reducer(accumulator, value, counter);
1924
+ }
1925
+ counter++;
1926
+ }, { IS_RECORD: true });
1927
+ if (noInitial) throw new $TypeError$1('Reduce of empty iterator with no initial value');
1928
+ return accumulator;
1929
+ }
1930
+ });
1931
+
1932
+ var uncurryThis$2 = functionUncurryThis;
1933
+
1934
+ // eslint-disable-next-line es/no-set -- safe
1935
+ var SetPrototype$1 = Set.prototype;
1936
+
1937
+ var setHelpers = {
1938
+ // eslint-disable-next-line es/no-set -- safe
1939
+ Set: Set,
1940
+ add: uncurryThis$2(SetPrototype$1.add),
1941
+ has: uncurryThis$2(SetPrototype$1.has),
1942
+ remove: uncurryThis$2(SetPrototype$1['delete']),
1943
+ proto: SetPrototype$1
1944
+ };
1945
+
1946
+ var has$5 = setHelpers.has;
1947
+
1948
+ // Perform ? RequireInternalSlot(M, [[SetData]])
1949
+ var aSet$7 = function (it) {
1950
+ has$5(it);
1951
+ return it;
1952
+ };
1953
+
1954
+ var call$1 = functionCall;
1955
+
1956
+ var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
1957
+ var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
1958
+ var next = record.next;
1959
+ var step, result;
1960
+ while (!(step = call$1(next, iterator)).done) {
1961
+ result = fn(step.value);
1962
+ if (result !== undefined) return result;
1963
+ }
1964
+ };
1965
+
1966
+ var uncurryThis$1 = functionUncurryThis;
1967
+ var iterateSimple$6 = iterateSimple$7;
1968
+ var SetHelpers$5 = setHelpers;
1969
+
1970
+ var Set$3 = SetHelpers$5.Set;
1971
+ var SetPrototype = SetHelpers$5.proto;
1972
+ var forEach = uncurryThis$1(SetPrototype.forEach);
1973
+ var keys = uncurryThis$1(SetPrototype.keys);
1974
+ var next = keys(new Set$3()).next;
1975
+
1976
+ var setIterate = function (set, fn, interruptible) {
1977
+ return interruptible ? iterateSimple$6({ iterator: keys(set), next: next }, fn) : forEach(set, fn);
1978
+ };
1979
+
1980
+ var SetHelpers$4 = setHelpers;
1981
+ var iterate$1 = setIterate;
1982
+
1983
+ var Set$2 = SetHelpers$4.Set;
1984
+ var add$3 = SetHelpers$4.add;
1985
+
1986
+ var setClone = function (set) {
1987
+ var result = new Set$2();
1988
+ iterate$1(set, function (it) {
1989
+ add$3(result, it);
1990
+ });
1991
+ return result;
1992
+ };
1993
+
1994
+ var uncurryThis = functionUncurryThis;
1995
+ var aCallable$1 = aCallable$8;
1996
+
1997
+ var functionUncurryThisAccessor = function (object, key, method) {
1998
+ try {
1999
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2000
+ return uncurryThis(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
2001
+ } catch (error) { /* empty */ }
2002
+ };
2003
+
2004
+ var uncurryThisAccessor = functionUncurryThisAccessor;
2005
+ var SetHelpers$3 = setHelpers;
2006
+
2007
+ var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function (set) {
2008
+ return set.size;
2009
+ };
2010
+
2011
+ var aCallable = aCallable$8;
2012
+ var anObject = anObject$d;
2013
+ var call = functionCall;
2014
+ var toIntegerOrInfinity = toIntegerOrInfinity$3;
2015
+ var getIteratorDirect = getIteratorDirect$4;
2016
+
2017
+ var INVALID_SIZE = 'Invalid size';
2018
+ var $RangeError = RangeError;
2019
+ var $TypeError = TypeError;
2020
+ var max = Math.max;
2021
+
2022
+ var SetRecord = function (set, intSize) {
2023
+ this.set = set;
2024
+ this.size = max(intSize, 0);
2025
+ this.has = aCallable(set.has);
2026
+ this.keys = aCallable(set.keys);
2027
+ };
2028
+
2029
+ SetRecord.prototype = {
2030
+ getIterator: function () {
2031
+ return getIteratorDirect(anObject(call(this.keys, this.set)));
2032
+ },
2033
+ includes: function (it) {
2034
+ return call(this.has, this.set, it);
2035
+ }
2036
+ };
2037
+
2038
+ // `GetSetRecord` abstract operation
2039
+ // https://tc39.es/proposal-set-methods/#sec-getsetrecord
2040
+ var getSetRecord$7 = function (obj) {
2041
+ anObject(obj);
2042
+ var numSize = +obj.size;
2043
+ // NOTE: If size is undefined, then numSize will be NaN
2044
+ // eslint-disable-next-line no-self-compare -- NaN check
2045
+ if (numSize !== numSize) throw new $TypeError(INVALID_SIZE);
2046
+ var intSize = toIntegerOrInfinity(numSize);
2047
+ if (intSize < 0) throw new $RangeError(INVALID_SIZE);
2048
+ return new SetRecord(obj, intSize);
2049
+ };
2050
+
2051
+ var aSet$6 = aSet$7;
2052
+ var SetHelpers$2 = setHelpers;
2053
+ var clone$2 = setClone;
2054
+ var size$4 = setSize;
2055
+ var getSetRecord$6 = getSetRecord$7;
2056
+ var iterateSet$2 = setIterate;
2057
+ var iterateSimple$5 = iterateSimple$7;
2058
+
2059
+ var has$4 = SetHelpers$2.has;
2060
+ var remove$1 = SetHelpers$2.remove;
2061
+
2062
+ // `Set.prototype.difference` method
2063
+ // https://github.com/tc39/proposal-set-methods
2064
+ var setDifference = function difference(other) {
2065
+ var O = aSet$6(this);
2066
+ var otherRec = getSetRecord$6(other);
2067
+ var result = clone$2(O);
2068
+ if (size$4(O) <= otherRec.size) iterateSet$2(O, function (e) {
2069
+ if (otherRec.includes(e)) remove$1(result, e);
2070
+ });
2071
+ else iterateSimple$5(otherRec.getIterator(), function (e) {
2072
+ if (has$4(O, e)) remove$1(result, e);
2073
+ });
2074
+ return result;
2075
+ };
2076
+
2077
+ var getBuiltIn = getBuiltIn$4;
2078
+
2079
+ var createSetLike = function (size) {
2080
+ return {
2081
+ size: size,
2082
+ has: function () {
2083
+ return false;
2084
+ },
2085
+ keys: function () {
2086
+ return {
2087
+ next: function () {
2088
+ return { done: true };
2089
+ }
2090
+ };
2091
+ }
2092
+ };
2093
+ };
2094
+
2095
+ var createSetLikeWithInfinitySize = function (size) {
2096
+ return {
2097
+ size: size,
2098
+ has: function () {
2099
+ return true;
2100
+ },
2101
+ keys: function () {
2102
+ throw new Error('e');
2103
+ }
2104
+ };
2105
+ };
2106
+
2107
+ var setMethodAcceptSetLike$7 = function (name, callback) {
2108
+ var Set = getBuiltIn('Set');
2109
+ try {
2110
+ new Set()[name](createSetLike(0));
2111
+ try {
2112
+ // late spec change, early WebKit ~ Safari 17.0 beta implementation does not pass it
2113
+ // https://github.com/tc39/proposal-set-methods/pull/88
2114
+ new Set()[name](createSetLike(-1));
2115
+ return false;
2116
+ } catch (error2) {
2117
+ if (!callback) return true;
2118
+ // early V8 implementation bug
2119
+ // https://issues.chromium.org/issues/351332634
2120
+ try {
2121
+ new Set()[name](createSetLikeWithInfinitySize(-Infinity));
2122
+ return false;
2123
+ } catch (error) {
2124
+ var set = new Set();
2125
+ set.add(1);
2126
+ set.add(2);
2127
+ return callback(set[name](createSetLikeWithInfinitySize(Infinity)));
2128
+ }
2129
+ }
2130
+ } catch (error) {
2131
+ return false;
2132
+ }
2133
+ };
2134
+
2135
+ var $$6 = _export;
2136
+ var difference = setDifference;
2137
+ var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
2138
+
2139
+ var INCORRECT$4 = !setMethodAcceptSetLike$6('difference', function (result) {
2140
+ return result.size === 0;
2141
+ });
2142
+
2143
+ // `Set.prototype.difference` method
2144
+ // https://tc39.es/ecma262/#sec-set.prototype.difference
2145
+ $$6({ target: 'Set', proto: true, real: true, forced: INCORRECT$4 }, {
2146
+ difference: difference
2147
+ });
2148
+
2149
+ var aSet$5 = aSet$7;
2150
+ var SetHelpers$1 = setHelpers;
2151
+ var size$3 = setSize;
2152
+ var getSetRecord$5 = getSetRecord$7;
2153
+ var iterateSet$1 = setIterate;
2154
+ var iterateSimple$4 = iterateSimple$7;
2155
+
2156
+ var Set$1 = SetHelpers$1.Set;
2157
+ var add$2 = SetHelpers$1.add;
2158
+ var has$3 = SetHelpers$1.has;
2159
+
2160
+ // `Set.prototype.intersection` method
2161
+ // https://github.com/tc39/proposal-set-methods
2162
+ var setIntersection = function intersection(other) {
2163
+ var O = aSet$5(this);
2164
+ var otherRec = getSetRecord$5(other);
2165
+ var result = new Set$1();
2166
+
2167
+ if (size$3(O) > otherRec.size) {
2168
+ iterateSimple$4(otherRec.getIterator(), function (e) {
2169
+ if (has$3(O, e)) add$2(result, e);
2170
+ });
2171
+ } else {
2172
+ iterateSet$1(O, function (e) {
2173
+ if (otherRec.includes(e)) add$2(result, e);
2174
+ });
2175
+ }
2176
+
2177
+ return result;
2178
+ };
2179
+
2180
+ var $$5 = _export;
2181
+ var fails = fails$c;
2182
+ var intersection = setIntersection;
2183
+ var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
2184
+
2185
+ var INCORRECT$3 = !setMethodAcceptSetLike$5('intersection', function (result) {
2186
+ return result.size === 2 && result.has(1) && result.has(2);
2187
+ }) || fails(function () {
2188
+ // eslint-disable-next-line es/no-array-from, es/no-set, es/no-set-prototype-intersection -- testing
2189
+ return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
2190
+ });
2191
+
2192
+ // `Set.prototype.intersection` method
2193
+ // https://tc39.es/ecma262/#sec-set.prototype.intersection
2194
+ $$5({ target: 'Set', proto: true, real: true, forced: INCORRECT$3 }, {
2195
+ intersection: intersection
2196
+ });
2197
+
2198
+ var aSet$4 = aSet$7;
2199
+ var has$2 = setHelpers.has;
2200
+ var size$2 = setSize;
2201
+ var getSetRecord$4 = getSetRecord$7;
2202
+ var iterateSet = setIterate;
2203
+ var iterateSimple$3 = iterateSimple$7;
2204
+ var iteratorClose$1 = iteratorClose$5;
2205
+
2206
+ // `Set.prototype.isDisjointFrom` method
2207
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
2208
+ var setIsDisjointFrom = function isDisjointFrom(other) {
2209
+ var O = aSet$4(this);
2210
+ var otherRec = getSetRecord$4(other);
2211
+ if (size$2(O) <= otherRec.size) return iterateSet(O, function (e) {
2212
+ if (otherRec.includes(e)) return false;
2213
+ }, true) !== false;
2214
+ var iterator = otherRec.getIterator();
2215
+ return iterateSimple$3(iterator, function (e) {
2216
+ if (has$2(O, e)) return iteratorClose$1(iterator, 'normal', false);
2217
+ }) !== false;
2218
+ };
2219
+
2220
+ var $$4 = _export;
2221
+ var isDisjointFrom = setIsDisjointFrom;
2222
+ var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
2223
+
2224
+ var INCORRECT$2 = !setMethodAcceptSetLike$4('isDisjointFrom', function (result) {
2225
+ return !result;
2226
+ });
2227
+
2228
+ // `Set.prototype.isDisjointFrom` method
2229
+ // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
2230
+ $$4({ target: 'Set', proto: true, real: true, forced: INCORRECT$2 }, {
2231
+ isDisjointFrom: isDisjointFrom
2232
+ });
2233
+
2234
+ var aSet$3 = aSet$7;
2235
+ var size$1 = setSize;
2236
+ var iterate = setIterate;
2237
+ var getSetRecord$3 = getSetRecord$7;
2238
+
2239
+ // `Set.prototype.isSubsetOf` method
2240
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
2241
+ var setIsSubsetOf = function isSubsetOf(other) {
2242
+ var O = aSet$3(this);
2243
+ var otherRec = getSetRecord$3(other);
2244
+ if (size$1(O) > otherRec.size) return false;
2245
+ return iterate(O, function (e) {
2246
+ if (!otherRec.includes(e)) return false;
2247
+ }, true) !== false;
2248
+ };
2249
+
2250
+ var $$3 = _export;
2251
+ var isSubsetOf = setIsSubsetOf;
2252
+ var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
2253
+
2254
+ var INCORRECT$1 = !setMethodAcceptSetLike$3('isSubsetOf', function (result) {
2255
+ return result;
2256
+ });
2257
+
2258
+ // `Set.prototype.isSubsetOf` method
2259
+ // https://tc39.es/ecma262/#sec-set.prototype.issubsetof
2260
+ $$3({ target: 'Set', proto: true, real: true, forced: INCORRECT$1 }, {
2261
+ isSubsetOf: isSubsetOf
2262
+ });
2263
+
2264
+ var aSet$2 = aSet$7;
2265
+ var has$1 = setHelpers.has;
2266
+ var size = setSize;
2267
+ var getSetRecord$2 = getSetRecord$7;
2268
+ var iterateSimple$2 = iterateSimple$7;
2269
+ var iteratorClose = iteratorClose$5;
2270
+
2271
+ // `Set.prototype.isSupersetOf` method
2272
+ // https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
2273
+ var setIsSupersetOf = function isSupersetOf(other) {
2274
+ var O = aSet$2(this);
2275
+ var otherRec = getSetRecord$2(other);
2276
+ if (size(O) < otherRec.size) return false;
2277
+ var iterator = otherRec.getIterator();
2278
+ return iterateSimple$2(iterator, function (e) {
2279
+ if (!has$1(O, e)) return iteratorClose(iterator, 'normal', false);
2280
+ }) !== false;
2281
+ };
2282
+
2283
+ var $$2 = _export;
2284
+ var isSupersetOf = setIsSupersetOf;
2285
+ var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
2286
+
2287
+ var INCORRECT = !setMethodAcceptSetLike$2('isSupersetOf', function (result) {
2288
+ return !result;
2289
+ });
2290
+
2291
+ // `Set.prototype.isSupersetOf` method
2292
+ // https://tc39.es/ecma262/#sec-set.prototype.issupersetof
2293
+ $$2({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
2294
+ isSupersetOf: isSupersetOf
2295
+ });
2296
+
2297
+ var aSet$1 = aSet$7;
2298
+ var SetHelpers = setHelpers;
2299
+ var clone$1 = setClone;
2300
+ var getSetRecord$1 = getSetRecord$7;
2301
+ var iterateSimple$1 = iterateSimple$7;
2302
+
2303
+ var add$1 = SetHelpers.add;
2304
+ var has = SetHelpers.has;
2305
+ var remove = SetHelpers.remove;
2306
+
2307
+ // `Set.prototype.symmetricDifference` method
2308
+ // https://github.com/tc39/proposal-set-methods
2309
+ var setSymmetricDifference = function symmetricDifference(other) {
2310
+ var O = aSet$1(this);
2311
+ var keysIter = getSetRecord$1(other).getIterator();
2312
+ var result = clone$1(O);
2313
+ iterateSimple$1(keysIter, function (e) {
2314
+ if (has(O, e)) remove(result, e);
2315
+ else add$1(result, e);
2316
+ });
2317
+ return result;
2318
+ };
2319
+
2320
+ var $$1 = _export;
2321
+ var symmetricDifference = setSymmetricDifference;
2322
+ var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
2323
+
2324
+ // `Set.prototype.symmetricDifference` method
2325
+ // https://tc39.es/ecma262/#sec-set.prototype.symmetricdifference
2326
+ $$1({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
2327
+ symmetricDifference: symmetricDifference
2328
+ });
2329
+
2330
+ var aSet = aSet$7;
2331
+ var add = setHelpers.add;
2332
+ var clone = setClone;
2333
+ var getSetRecord = getSetRecord$7;
2334
+ var iterateSimple = iterateSimple$7;
2335
+
2336
+ // `Set.prototype.union` method
2337
+ // https://github.com/tc39/proposal-set-methods
2338
+ var setUnion = function union(other) {
2339
+ var O = aSet(this);
2340
+ var keysIter = getSetRecord(other).getIterator();
2341
+ var result = clone(O);
2342
+ iterateSimple(keysIter, function (it) {
2343
+ add(result, it);
2344
+ });
2345
+ return result;
2346
+ };
2347
+
2348
+ var $ = _export;
2349
+ var union = setUnion;
2350
+ var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
2351
+
2352
+ // `Set.prototype.union` method
2353
+ // https://tc39.es/ecma262/#sec-set.prototype.union
2354
+ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
2355
+ union: union
2356
+ });
2357
+
2358
+ const cache = new Map();
2359
+ const processVariables = (theme, prefix, cacheKey) => {
2360
+ if (cache.has(cacheKey)) return cache.get(cacheKey);
2361
+ const variables = Object.fromEntries(Object.entries(theme).map(([key, value]) => {
2362
+ const cssVar = key.startsWith('--') ? key : `--${key}`;
2363
+ return [prefix && !cssVar.startsWith(`--${prefix}`) ? `--${prefix}-${cssVar.slice(2)}` : cssVar, value];
2364
+ }));
2365
+ cache.set(cacheKey, variables);
2366
+ return variables;
2367
+ };
2368
+ const resolveInheritance = themes => {
2369
+ const themeMap = new Map(themes.map(t => [t.name, t]));
2370
+ const resolved = new Map();
2371
+ const resolve = name => {
2372
+ if (resolved.has(name)) return resolved.get(name);
2373
+ const theme = themeMap.get(name);
2374
+ if (!theme) throw new Error(`Theme "${name}" not found`);
2375
+ const merged = theme.extends ? {
2376
+ ...resolve(theme.extends),
2377
+ ...theme.theme
2378
+ } : {
2379
+ ...theme.theme
2380
+ };
2381
+ resolved.set(name, merged);
2382
+ return merged;
2383
+ };
2384
+ return themes.map(t => ({
2385
+ ...t,
2386
+ theme: resolve(t.name)
2387
+ }));
2388
+ };
2389
+ function createThemeSwapper({
2390
+ themes,
2391
+ prefix = '',
2392
+ debug = false
2393
+ }) {
2394
+ return ({
2395
+ addBase
2396
+ }) => {
2397
+ if (!themes?.length) throw new Error('At least one theme required');
2398
+ const names = new Set();
2399
+ themes.forEach(({
2400
+ name,
2401
+ selectors
2402
+ }, i) => {
2403
+ if (!name) throw new Error(`Theme at index ${i} missing name`);
2404
+ if (names.has(name)) throw new Error(`Duplicate theme: "${name}"`);
2405
+ if (!selectors?.length) throw new Error(`Theme "${name}" needs selectors`);
2406
+ names.add(name);
2407
+ });
2408
+ if (debug) {
2409
+ console.log(`🎨 Processing ${themes.length} themes`);
2410
+ }
2411
+ const cssRules = resolveInheritance(themes).reduce((rules, {
2412
+ name,
2413
+ selectors,
2414
+ theme,
2415
+ mode
2416
+ }) => {
2417
+ const variables = processVariables(theme, prefix, `${name}-${prefix}`);
2418
+ const useWhere = !mode;
2419
+ const selector = selectors.map(s => useWhere ? `:where(${s})` : s).join(', ');
2420
+ rules[selector] = variables;
2421
+ return rules;
2422
+ }, {});
2423
+ if (debug) {
2424
+ console.log(`🎨 Generated ${Object.keys(cssRules).length} CSS rules`);
2425
+ }
2426
+ addBase(cssRules);
2427
+ };
2428
+ }
2429
+ const BeeqThemeSwapper = config => plugin(createThemeSwapper(Array.isArray(config) ? {
2430
+ themes: config
2431
+ } : config));
2432
+
252
2433
  const CSS_COLORS = {
253
2434
  '--bq-blue-100': '#e7f0fd',
254
2435
  '--bq-blue-200': '#d0e2fb',
@@ -1118,7 +3299,9 @@ const reset = {
1118
3299
  'list-style-type': 'none'
1119
3300
  },
1120
3301
  html: {
1121
- 'font-size': 'var(--bq-font-size--m)'
3302
+ 'font-family': 'var(--bq-font-family)',
3303
+ 'font-size': 'var(--bq-font-size--m)',
3304
+ 'text-size-adjust': 'none'
1122
3305
  },
1123
3306
  'html:focus-within': {
1124
3307
  'scroll-behavior': 'smooth'
@@ -1128,9 +3311,8 @@ const reset = {
1128
3311
  '-moz-osx-font-smoothing': 'grayscale',
1129
3312
  'background-color': 'var(--bq-background--primary)',
1130
3313
  color: 'var(--bq-text--primary)',
1131
- 'font-family': 'var(--bq-font-family)',
1132
3314
  'line-height': 'var(--bq-font-line-height--regular)',
1133
- 'min-height': '100vh',
3315
+ 'min-height': '100vb',
1134
3316
  'text-rendering': 'optimizeSpeed'
1135
3317
  },
1136
3318
  'a:not([class])': {
@@ -1385,25 +3567,27 @@ var index = {
1385
3567
  outlineOffset: 'var(--bq-ring-offset-width, 1px)'
1386
3568
  }
1387
3569
  });
1388
- }), ColorMix, LogicalProperties, ThemeSwapper({
3570
+ }), ColorMix, LogicalProperties, BeeqThemeSwapper({
1389
3571
  themes: [{
1390
- name: 'root',
3572
+ name: 'base',
1391
3573
  selectors: [':root'],
1392
3574
  theme: {
1393
3575
  ...DefaultRootTheme
1394
3576
  }
1395
3577
  }, {
1396
3578
  name: 'light',
1397
- selectors: [':root', '.light', '.beeq.light', '[bq-mode="light"]'],
3579
+ selectors: ['.light', '.beeq.light', '[bq-mode="light"]'],
1398
3580
  theme: {
1399
3581
  ...DefaultLightTheme
1400
- }
3582
+ },
3583
+ mode: true
1401
3584
  }, {
1402
3585
  name: 'dark',
1403
3586
  selectors: ['.dark', '.beeq.dark', '[bq-mode="dark"]'],
1404
3587
  theme: {
1405
3588
  ...DefaultDarkTheme
1406
- }
3589
+ },
3590
+ mode: true
1407
3591
  }, {
1408
3592
  name: 'endava',
1409
3593
  selectors: ['.endava', '[bq-theme="endava"]'],
@@ -1415,13 +3599,15 @@ var index = {
1415
3599
  selectors: ['.endava.light', '[bq-theme="endava"][bq-mode="light"]'],
1416
3600
  theme: {
1417
3601
  ...EndavaLightTheme
1418
- }
3602
+ },
3603
+ mode: true
1419
3604
  }, {
1420
3605
  name: 'endava-dark',
1421
3606
  selectors: ['.endava.dark', '[bq-theme="endava"][bq-mode="dark"]'],
1422
3607
  theme: {
1423
3608
  ...EndavaDarkTheme
1424
- }
3609
+ },
3610
+ mode: true
1425
3611
  }]
1426
3612
  })]
1427
3613
  };