@danielgindi/selectbox 1.0.29 → 1.0.33

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.29
2
+ * @danielgindi/selectbox 1.0.33
3
3
  * git://github.com/danielgindi/selectbox.git
4
4
  */
5
5
  'use strict';
@@ -11,14 +11,14 @@ var DomCompat = require('@danielgindi/dom-utils/lib/DomCompat');
11
11
  var Css = require('@danielgindi/dom-utils/lib/Css');
12
12
  var DomEventsSink = require('@danielgindi/dom-utils/lib/DomEventsSink');
13
13
  var VirtualListHelper = require('@danielgindi/virtual-list-helper');
14
- var parseCssTransition = require('parse-css-transition');
15
14
  var keycodeJs = require('keycode-js');
15
+ var mitt = require('mitt');
16
16
 
17
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
18
18
 
19
19
  var DomEventsSink__default = /*#__PURE__*/_interopDefaultLegacy(DomEventsSink);
20
20
  var VirtualListHelper__default = /*#__PURE__*/_interopDefaultLegacy(VirtualListHelper);
21
- var parseCssTransition__default = /*#__PURE__*/_interopDefaultLegacy(parseCssTransition);
21
+ var mitt__default = /*#__PURE__*/_interopDefaultLegacy(mitt);
22
22
 
23
23
  var REACT_ELEMENT_TYPE;
24
24
 
@@ -498,7 +498,7 @@ function _objectSpread(target) {
498
498
  var ownKeys = Object.keys(source);
499
499
 
500
500
  if (typeof Object.getOwnPropertySymbols === 'function') {
501
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
501
+ ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
502
502
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
503
503
  }));
504
504
  }
@@ -738,6 +738,8 @@ function _assertThisInitialized(self) {
738
738
  function _possibleConstructorReturn(self, call) {
739
739
  if (call && (typeof call === "object" || typeof call === "function")) {
740
740
  return call;
741
+ } else if (call !== void 0) {
742
+ throw new TypeError("Derived constructors may only return object or undefined");
741
743
  }
742
744
 
743
745
  return _assertThisInitialized(self);
@@ -1676,6 +1678,24 @@ function _classPrivateMethodGet(receiver, privateSet, fn) {
1676
1678
  return fn;
1677
1679
  }
1678
1680
 
1681
+ function _checkPrivateRedeclaration(obj, privateCollection) {
1682
+ if (privateCollection.has(obj)) {
1683
+ throw new TypeError("Cannot initialize the same private elements twice on an object");
1684
+ }
1685
+ }
1686
+
1687
+ function _classPrivateFieldInitSpec(obj, privateMap, value) {
1688
+ _checkPrivateRedeclaration(obj, privateMap);
1689
+
1690
+ privateMap.set(obj, value);
1691
+ }
1692
+
1693
+ function _classPrivateMethodInitSpec(obj, privateSet) {
1694
+ _checkPrivateRedeclaration(obj, privateSet);
1695
+
1696
+ privateSet.add(obj);
1697
+ }
1698
+
1679
1699
  function _classPrivateMethodSet() {
1680
1700
  throw new TypeError("attempted to reassign private method");
1681
1701
  }
@@ -1720,7 +1740,7 @@ var check = function (it) {
1720
1740
  };
1721
1741
 
1722
1742
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1723
- var global$j =
1743
+ var global$k =
1724
1744
  // eslint-disable-next-line es/no-global-this -- safe
1725
1745
  check(typeof globalThis == 'object' && globalThis) ||
1726
1746
  check(typeof window == 'object' && window) ||
@@ -1732,7 +1752,7 @@ var global$j =
1732
1752
 
1733
1753
  var objectGetOwnPropertyDescriptor = {};
1734
1754
 
1735
- var fails$o = function (exec) {
1755
+ var fails$p = function (exec) {
1736
1756
  try {
1737
1757
  return !!exec();
1738
1758
  } catch (error) {
@@ -1740,10 +1760,10 @@ var fails$o = function (exec) {
1740
1760
  }
1741
1761
  };
1742
1762
 
1743
- var fails$n = fails$o;
1763
+ var fails$o = fails$p;
1744
1764
 
1745
1765
  // Detect IE8's incomplete defineProperty implementation
1746
- var descriptors = !fails$n(function () {
1766
+ var descriptors = !fails$o(function () {
1747
1767
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1748
1768
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
1749
1769
  });
@@ -1774,24 +1794,24 @@ var createPropertyDescriptor$5 = function (bitmap, value) {
1774
1794
  };
1775
1795
  };
1776
1796
 
1777
- var toString$d = {}.toString;
1797
+ var toString$c = {}.toString;
1778
1798
 
1779
1799
  var classofRaw$1 = function (it) {
1780
- return toString$d.call(it).slice(8, -1);
1800
+ return toString$c.call(it).slice(8, -1);
1781
1801
  };
1782
1802
 
1783
- var fails$m = fails$o;
1784
- var classof$7 = classofRaw$1;
1803
+ var fails$n = fails$p;
1804
+ var classof$8 = classofRaw$1;
1785
1805
 
1786
1806
  var split = ''.split;
1787
1807
 
1788
1808
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
1789
- var indexedObject = fails$m(function () {
1809
+ var indexedObject = fails$n(function () {
1790
1810
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
1791
1811
  // eslint-disable-next-line no-prototype-builtins -- safe
1792
1812
  return !Object('z').propertyIsEnumerable(0);
1793
1813
  }) ? function (it) {
1794
- return classof$7(it) == 'String' ? split.call(it, '') : Object(it);
1814
+ return classof$8(it) == 'String' ? split.call(it, '') : Object(it);
1795
1815
  } : Object;
1796
1816
 
1797
1817
  // `RequireObjectCoercible` abstract operation
@@ -1802,36 +1822,45 @@ var requireObjectCoercible$7 = function (it) {
1802
1822
  };
1803
1823
 
1804
1824
  // toObject with fallback for non-array-like ES3 strings
1805
- var IndexedObject$4 = indexedObject;
1825
+ var IndexedObject$3 = indexedObject;
1806
1826
  var requireObjectCoercible$6 = requireObjectCoercible$7;
1807
1827
 
1808
1828
  var toIndexedObject$9 = function (it) {
1809
- return IndexedObject$4(requireObjectCoercible$6(it));
1829
+ return IndexedObject$3(requireObjectCoercible$6(it));
1810
1830
  };
1811
1831
 
1812
- var isObject$f = function (it) {
1813
- return typeof it === 'object' ? it !== null : typeof it === 'function';
1832
+ // `IsCallable` abstract operation
1833
+ // https://tc39.es/ecma262/#sec-iscallable
1834
+ var isCallable$l = function (argument) {
1835
+ return typeof argument === 'function';
1814
1836
  };
1815
1837
 
1816
- var global$i = global$j;
1838
+ var isCallable$k = isCallable$l;
1817
1839
 
1818
- var aFunction$4 = function (variable) {
1819
- return typeof variable == 'function' ? variable : undefined;
1840
+ var isObject$e = function (it) {
1841
+ return typeof it === 'object' ? it !== null : isCallable$k(it);
1820
1842
  };
1821
1843
 
1822
- var getBuiltIn$6 = function (namespace, method) {
1823
- return arguments.length < 2 ? aFunction$4(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
1844
+ var global$j = global$k;
1845
+ var isCallable$j = isCallable$l;
1846
+
1847
+ var aFunction = function (argument) {
1848
+ return isCallable$j(argument) ? argument : undefined;
1824
1849
  };
1825
1850
 
1826
- var getBuiltIn$5 = getBuiltIn$6;
1851
+ var getBuiltIn$7 = function (namespace, method) {
1852
+ return arguments.length < 2 ? aFunction(global$j[namespace]) : global$j[namespace] && global$j[namespace][method];
1853
+ };
1854
+
1855
+ var getBuiltIn$6 = getBuiltIn$7;
1827
1856
 
1828
- var engineUserAgent = getBuiltIn$5('navigator', 'userAgent') || '';
1857
+ var engineUserAgent = getBuiltIn$6('navigator', 'userAgent') || '';
1829
1858
 
1830
- var global$h = global$j;
1859
+ var global$i = global$k;
1831
1860
  var userAgent$2 = engineUserAgent;
1832
1861
 
1833
- var process = global$h.process;
1834
- var Deno = global$h.Deno;
1862
+ var process = global$i.process;
1863
+ var Deno = global$i.Deno;
1835
1864
  var versions = process && process.versions || Deno && Deno.version;
1836
1865
  var v8 = versions && versions.v8;
1837
1866
  var match, version;
@@ -1852,10 +1881,10 @@ var engineV8Version = version && +version;
1852
1881
  /* eslint-disable es/no-symbol -- required for testing */
1853
1882
 
1854
1883
  var V8_VERSION$2 = engineV8Version;
1855
- var fails$l = fails$o;
1884
+ var fails$m = fails$p;
1856
1885
 
1857
1886
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1858
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$l(function () {
1887
+ var nativeSymbol$1 = !!Object.getOwnPropertySymbols && !fails$m(function () {
1859
1888
  var symbol = Symbol();
1860
1889
  // Chrome 38 Symbol has incorrect toString conversion
1861
1890
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -1866,31 +1895,59 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$l(function () {
1866
1895
 
1867
1896
  /* eslint-disable es/no-symbol -- required for testing */
1868
1897
 
1869
- var NATIVE_SYMBOL$2 = nativeSymbol;
1898
+ var NATIVE_SYMBOL$2 = nativeSymbol$1;
1870
1899
 
1871
1900
  var useSymbolAsUid = NATIVE_SYMBOL$2
1872
1901
  && !Symbol.sham
1873
1902
  && typeof Symbol.iterator == 'symbol';
1874
1903
 
1875
- var getBuiltIn$4 = getBuiltIn$6;
1904
+ var isCallable$i = isCallable$l;
1905
+ var getBuiltIn$5 = getBuiltIn$7;
1876
1906
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
1877
1907
 
1878
- var isSymbol$4 = USE_SYMBOL_AS_UID$1 ? function (it) {
1908
+ var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
1879
1909
  return typeof it == 'symbol';
1880
1910
  } : function (it) {
1881
- var $Symbol = getBuiltIn$4('Symbol');
1882
- return typeof $Symbol == 'function' && Object(it) instanceof $Symbol;
1911
+ var $Symbol = getBuiltIn$5('Symbol');
1912
+ return isCallable$i($Symbol) && Object(it) instanceof $Symbol;
1913
+ };
1914
+
1915
+ var tryToString$1 = function (argument) {
1916
+ try {
1917
+ return String(argument);
1918
+ } catch (error) {
1919
+ return 'Object';
1920
+ }
1921
+ };
1922
+
1923
+ var isCallable$h = isCallable$l;
1924
+ var tryToString = tryToString$1;
1925
+
1926
+ // `Assert: IsCallable(argument) is true`
1927
+ var aCallable$4 = function (argument) {
1928
+ if (isCallable$h(argument)) return argument;
1929
+ throw TypeError(tryToString(argument) + ' is not a function');
1930
+ };
1931
+
1932
+ var aCallable$3 = aCallable$4;
1933
+
1934
+ // `GetMethod` abstract operation
1935
+ // https://tc39.es/ecma262/#sec-getmethod
1936
+ var getMethod$4 = function (V, P) {
1937
+ var func = V[P];
1938
+ return func == null ? undefined : aCallable$3(func);
1883
1939
  };
1884
1940
 
1885
- var isObject$e = isObject$f;
1941
+ var isCallable$g = isCallable$l;
1942
+ var isObject$d = isObject$e;
1886
1943
 
1887
1944
  // `OrdinaryToPrimitive` abstract operation
1888
1945
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1889
1946
  var ordinaryToPrimitive$1 = function (input, pref) {
1890
1947
  var fn, val;
1891
- if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject$e(val = fn.call(input))) return val;
1892
- if (typeof (fn = input.valueOf) == 'function' && !isObject$e(val = fn.call(input))) return val;
1893
- if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$e(val = fn.call(input))) return val;
1948
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$d(val = fn.call(input))) return val;
1949
+ if (isCallable$g(fn = input.valueOf) && !isObject$d(val = fn.call(input))) return val;
1950
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$d(val = fn.call(input))) return val;
1894
1951
  throw TypeError("Can't convert object to primitive value");
1895
1952
  };
1896
1953
 
@@ -1898,22 +1955,22 @@ var shared$6 = {exports: {}};
1898
1955
 
1899
1956
  var isPure = false;
1900
1957
 
1901
- var global$g = global$j;
1958
+ var global$h = global$k;
1902
1959
 
1903
1960
  var setGlobal$3 = function (key, value) {
1904
1961
  try {
1905
1962
  // eslint-disable-next-line es/no-object-defineproperty -- safe
1906
- Object.defineProperty(global$g, key, { value: value, configurable: true, writable: true });
1963
+ Object.defineProperty(global$h, key, { value: value, configurable: true, writable: true });
1907
1964
  } catch (error) {
1908
- global$g[key] = value;
1965
+ global$h[key] = value;
1909
1966
  } return value;
1910
1967
  };
1911
1968
 
1912
- var global$f = global$j;
1969
+ var global$g = global$k;
1913
1970
  var setGlobal$2 = setGlobal$3;
1914
1971
 
1915
1972
  var SHARED = '__core-js_shared__';
1916
- var store$3 = global$f[SHARED] || setGlobal$2(SHARED, {});
1973
+ var store$3 = global$g[SHARED] || setGlobal$2(SHARED, {});
1917
1974
 
1918
1975
  var sharedStore = store$3;
1919
1976
 
@@ -1923,7 +1980,7 @@ var store$2 = sharedStore;
1923
1980
  (shared$6.exports = function (key, value) {
1924
1981
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
1925
1982
  })('versions', []).push({
1926
- version: '3.16.0',
1983
+ version: '3.18.2',
1927
1984
  mode: IS_PURE$4 ? 'pure' : 'global',
1928
1985
  copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
1929
1986
  });
@@ -1934,16 +1991,18 @@ var requireObjectCoercible$5 = requireObjectCoercible$7;
1934
1991
 
1935
1992
  // `ToObject` abstract operation
1936
1993
  // https://tc39.es/ecma262/#sec-toobject
1937
- var toObject$b = function (argument) {
1994
+ var toObject$a = function (argument) {
1938
1995
  return Object(requireObjectCoercible$5(argument));
1939
1996
  };
1940
1997
 
1941
- var toObject$a = toObject$b;
1998
+ var toObject$9 = toObject$a;
1942
1999
 
1943
2000
  var hasOwnProperty$1 = {}.hasOwnProperty;
1944
2001
 
1945
- var has$e = Object.hasOwn || function hasOwn(it, key) {
1946
- return hasOwnProperty$1.call(toObject$a(it), key);
2002
+ // `HasOwnProperty` abstract operation
2003
+ // https://tc39.es/ecma262/#sec-hasownproperty
2004
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
2005
+ return hasOwnProperty$1.call(toObject$9(it), key);
1947
2006
  };
1948
2007
 
1949
2008
  var id$1 = 0;
@@ -1953,20 +2012,20 @@ var uid$4 = function (key) {
1953
2012
  return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id$1 + postfix).toString(36);
1954
2013
  };
1955
2014
 
1956
- var global$e = global$j;
2015
+ var global$f = global$k;
1957
2016
  var shared$4 = shared$6.exports;
1958
- var has$d = has$e;
2017
+ var hasOwn$d = hasOwnProperty_1;
1959
2018
  var uid$3 = uid$4;
1960
- var NATIVE_SYMBOL$1 = nativeSymbol;
2019
+ var NATIVE_SYMBOL$1 = nativeSymbol$1;
1961
2020
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
1962
2021
 
1963
2022
  var WellKnownSymbolsStore$1 = shared$4('wks');
1964
- var Symbol$1 = global$e.Symbol;
2023
+ var Symbol$1 = global$f.Symbol;
1965
2024
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$3;
1966
2025
 
1967
2026
  var wellKnownSymbol$n = function (name) {
1968
- if (!has$d(WellKnownSymbolsStore$1, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore$1[name] == 'string')) {
1969
- if (NATIVE_SYMBOL$1 && has$d(Symbol$1, name)) {
2027
+ if (!hasOwn$d(WellKnownSymbolsStore$1, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore$1[name] == 'string')) {
2028
+ if (NATIVE_SYMBOL$1 && hasOwn$d(Symbol$1, name)) {
1970
2029
  WellKnownSymbolsStore$1[name] = Symbol$1[name];
1971
2030
  } else {
1972
2031
  WellKnownSymbolsStore$1[name] = createWellKnownSymbol('Symbol.' + name);
@@ -1974,8 +2033,9 @@ var wellKnownSymbol$n = function (name) {
1974
2033
  } return WellKnownSymbolsStore$1[name];
1975
2034
  };
1976
2035
 
1977
- var isObject$d = isObject$f;
1978
- var isSymbol$3 = isSymbol$4;
2036
+ var isObject$c = isObject$e;
2037
+ var isSymbol$2 = isSymbol$3;
2038
+ var getMethod$3 = getMethod$4;
1979
2039
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
1980
2040
  var wellKnownSymbol$m = wellKnownSymbol$n;
1981
2041
 
@@ -1984,13 +2044,13 @@ var TO_PRIMITIVE$1 = wellKnownSymbol$m('toPrimitive');
1984
2044
  // `ToPrimitive` abstract operation
1985
2045
  // https://tc39.es/ecma262/#sec-toprimitive
1986
2046
  var toPrimitive$1 = function (input, pref) {
1987
- if (!isObject$d(input) || isSymbol$3(input)) return input;
1988
- var exoticToPrim = input[TO_PRIMITIVE$1];
2047
+ if (!isObject$c(input) || isSymbol$2(input)) return input;
2048
+ var exoticToPrim = getMethod$3(input, TO_PRIMITIVE$1);
1989
2049
  var result;
1990
- if (exoticToPrim !== undefined) {
2050
+ if (exoticToPrim) {
1991
2051
  if (pref === undefined) pref = 'default';
1992
2052
  result = exoticToPrim.call(input, pref);
1993
- if (!isObject$d(result) || isSymbol$3(result)) return result;
2053
+ if (!isObject$c(result) || isSymbol$2(result)) return result;
1994
2054
  throw TypeError("Can't convert object to primitive value");
1995
2055
  }
1996
2056
  if (pref === undefined) pref = 'number';
@@ -1998,44 +2058,44 @@ var toPrimitive$1 = function (input, pref) {
1998
2058
  };
1999
2059
 
2000
2060
  var toPrimitive = toPrimitive$1;
2001
- var isSymbol$2 = isSymbol$4;
2061
+ var isSymbol$1 = isSymbol$3;
2002
2062
 
2003
2063
  // `ToPropertyKey` abstract operation
2004
2064
  // https://tc39.es/ecma262/#sec-topropertykey
2005
2065
  var toPropertyKey$4 = function (argument) {
2006
2066
  var key = toPrimitive(argument, 'string');
2007
- return isSymbol$2(key) ? key : String(key);
2067
+ return isSymbol$1(key) ? key : String(key);
2008
2068
  };
2009
2069
 
2010
- var global$d = global$j;
2011
- var isObject$c = isObject$f;
2070
+ var global$e = global$k;
2071
+ var isObject$b = isObject$e;
2012
2072
 
2013
- var document$1 = global$d.document;
2073
+ var document$1 = global$e.document;
2014
2074
  // typeof document.createElement is 'object' in old IE
2015
- var EXISTS = isObject$c(document$1) && isObject$c(document$1.createElement);
2075
+ var EXISTS$1 = isObject$b(document$1) && isObject$b(document$1.createElement);
2016
2076
 
2017
- var documentCreateElement$1 = function (it) {
2018
- return EXISTS ? document$1.createElement(it) : {};
2077
+ var documentCreateElement$2 = function (it) {
2078
+ return EXISTS$1 ? document$1.createElement(it) : {};
2019
2079
  };
2020
2080
 
2021
- var DESCRIPTORS$b = descriptors;
2022
- var fails$k = fails$o;
2023
- var createElement = documentCreateElement$1;
2081
+ var DESCRIPTORS$c = descriptors;
2082
+ var fails$l = fails$p;
2083
+ var createElement = documentCreateElement$2;
2024
2084
 
2025
2085
  // Thank's IE8 for his funny defineProperty
2026
- var ie8DomDefine = !DESCRIPTORS$b && !fails$k(function () {
2086
+ var ie8DomDefine = !DESCRIPTORS$c && !fails$l(function () {
2027
2087
  // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
2028
2088
  return Object.defineProperty(createElement('div'), 'a', {
2029
2089
  get: function () { return 7; }
2030
2090
  }).a != 7;
2031
2091
  });
2032
2092
 
2033
- var DESCRIPTORS$a = descriptors;
2093
+ var DESCRIPTORS$b = descriptors;
2034
2094
  var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable;
2035
2095
  var createPropertyDescriptor$4 = createPropertyDescriptor$5;
2036
2096
  var toIndexedObject$8 = toIndexedObject$9;
2037
2097
  var toPropertyKey$3 = toPropertyKey$4;
2038
- var has$c = has$e;
2098
+ var hasOwn$c = hasOwnProperty_1;
2039
2099
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
2040
2100
 
2041
2101
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -2043,28 +2103,28 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
2043
2103
 
2044
2104
  // `Object.getOwnPropertyDescriptor` method
2045
2105
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
2046
- var f$5 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
2106
+ var f$5 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
2047
2107
  O = toIndexedObject$8(O);
2048
2108
  P = toPropertyKey$3(P);
2049
2109
  if (IE8_DOM_DEFINE$1) try {
2050
2110
  return $getOwnPropertyDescriptor$1(O, P);
2051
2111
  } catch (error) { /* empty */ }
2052
- if (has$c(O, P)) return createPropertyDescriptor$4(!propertyIsEnumerableModule$2.f.call(O, P), O[P]);
2112
+ if (hasOwn$c(O, P)) return createPropertyDescriptor$4(!propertyIsEnumerableModule$2.f.call(O, P), O[P]);
2053
2113
  };
2054
2114
 
2055
2115
  var objectDefineProperty = {};
2056
2116
 
2057
- var isObject$b = isObject$f;
2117
+ var isObject$a = isObject$e;
2058
2118
 
2059
- var anObject$c = function (it) {
2060
- if (!isObject$b(it)) {
2061
- throw TypeError(String(it) + ' is not an object');
2062
- } return it;
2119
+ // `Assert: Type(argument) is Object`
2120
+ var anObject$e = function (argument) {
2121
+ if (isObject$a(argument)) return argument;
2122
+ throw TypeError(String(argument) + ' is not an object');
2063
2123
  };
2064
2124
 
2065
- var DESCRIPTORS$9 = descriptors;
2125
+ var DESCRIPTORS$a = descriptors;
2066
2126
  var IE8_DOM_DEFINE = ie8DomDefine;
2067
- var anObject$b = anObject$c;
2127
+ var anObject$d = anObject$e;
2068
2128
  var toPropertyKey$2 = toPropertyKey$4;
2069
2129
 
2070
2130
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -2072,10 +2132,10 @@ var $defineProperty$1 = Object.defineProperty;
2072
2132
 
2073
2133
  // `Object.defineProperty` method
2074
2134
  // https://tc39.es/ecma262/#sec-object.defineproperty
2075
- var f$4 = objectDefineProperty.f = DESCRIPTORS$9 ? $defineProperty$1 : function defineProperty(O, P, Attributes) {
2076
- anObject$b(O);
2135
+ var f$4 = objectDefineProperty.f = DESCRIPTORS$a ? $defineProperty$1 : function defineProperty(O, P, Attributes) {
2136
+ anObject$d(O);
2077
2137
  P = toPropertyKey$2(P);
2078
- anObject$b(Attributes);
2138
+ anObject$d(Attributes);
2079
2139
  if (IE8_DOM_DEFINE) try {
2080
2140
  return $defineProperty$1(O, P, Attributes);
2081
2141
  } catch (error) { /* empty */ }
@@ -2084,38 +2144,40 @@ var f$4 = objectDefineProperty.f = DESCRIPTORS$9 ? $defineProperty$1 : function
2084
2144
  return O;
2085
2145
  };
2086
2146
 
2087
- var DESCRIPTORS$8 = descriptors;
2147
+ var DESCRIPTORS$9 = descriptors;
2088
2148
  var definePropertyModule$6 = objectDefineProperty;
2089
2149
  var createPropertyDescriptor$3 = createPropertyDescriptor$5;
2090
2150
 
2091
- var createNonEnumerableProperty$9 = DESCRIPTORS$8 ? function (object, key, value) {
2151
+ var createNonEnumerableProperty$7 = DESCRIPTORS$9 ? function (object, key, value) {
2092
2152
  return definePropertyModule$6.f(object, key, createPropertyDescriptor$3(1, value));
2093
2153
  } : function (object, key, value) {
2094
2154
  object[key] = value;
2095
2155
  return object;
2096
2156
  };
2097
2157
 
2098
- var redefine$a = {exports: {}};
2158
+ var redefine$b = {exports: {}};
2099
2159
 
2160
+ var isCallable$f = isCallable$l;
2100
2161
  var store$1 = sharedStore;
2101
2162
 
2102
2163
  var functionToString = Function.toString;
2103
2164
 
2104
2165
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
2105
- if (typeof store$1.inspectSource != 'function') {
2166
+ if (!isCallable$f(store$1.inspectSource)) {
2106
2167
  store$1.inspectSource = function (it) {
2107
2168
  return functionToString.call(it);
2108
2169
  };
2109
2170
  }
2110
2171
 
2111
- var inspectSource$2 = store$1.inspectSource;
2172
+ var inspectSource$3 = store$1.inspectSource;
2112
2173
 
2113
- var global$c = global$j;
2114
- var inspectSource$1 = inspectSource$2;
2174
+ var global$d = global$k;
2175
+ var isCallable$e = isCallable$l;
2176
+ var inspectSource$2 = inspectSource$3;
2115
2177
 
2116
- var WeakMap$2 = global$c.WeakMap;
2178
+ var WeakMap$2 = global$d.WeakMap;
2117
2179
 
2118
- var nativeWeakMap = typeof WeakMap$2 === 'function' && /native code/.test(inspectSource$1(WeakMap$2));
2180
+ var nativeWeakMap = isCallable$e(WeakMap$2) && /native code/.test(inspectSource$2(WeakMap$2));
2119
2181
 
2120
2182
  var shared$3 = shared$6.exports;
2121
2183
  var uid$2 = uid$4;
@@ -2129,26 +2191,26 @@ var sharedKey$4 = function (key) {
2129
2191
  var hiddenKeys$6 = {};
2130
2192
 
2131
2193
  var NATIVE_WEAK_MAP = nativeWeakMap;
2132
- var global$b = global$j;
2133
- var isObject$a = isObject$f;
2134
- var createNonEnumerableProperty$8 = createNonEnumerableProperty$9;
2135
- var objectHas = has$e;
2194
+ var global$c = global$k;
2195
+ var isObject$9 = isObject$e;
2196
+ var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
2197
+ var hasOwn$b = hasOwnProperty_1;
2136
2198
  var shared$2 = sharedStore;
2137
2199
  var sharedKey$3 = sharedKey$4;
2138
2200
  var hiddenKeys$5 = hiddenKeys$6;
2139
2201
 
2140
2202
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
2141
- var WeakMap$1 = global$b.WeakMap;
2142
- var set, get, has$b;
2203
+ var WeakMap$1 = global$c.WeakMap;
2204
+ var set, get, has;
2143
2205
 
2144
2206
  var enforce = function (it) {
2145
- return has$b(it) ? get(it) : set(it, {});
2207
+ return has(it) ? get(it) : set(it, {});
2146
2208
  };
2147
2209
 
2148
2210
  var getterFor = function (TYPE) {
2149
2211
  return function (it) {
2150
2212
  var state;
2151
- if (!isObject$a(it) || (state = get(it)).type !== TYPE) {
2213
+ if (!isObject$9(it) || (state = get(it)).type !== TYPE) {
2152
2214
  throw TypeError('Incompatible receiver, ' + TYPE + ' required');
2153
2215
  } return state;
2154
2216
  };
@@ -2168,60 +2230,84 @@ if (NATIVE_WEAK_MAP || shared$2.state) {
2168
2230
  get = function (it) {
2169
2231
  return wmget.call(store, it) || {};
2170
2232
  };
2171
- has$b = function (it) {
2233
+ has = function (it) {
2172
2234
  return wmhas.call(store, it);
2173
2235
  };
2174
2236
  } else {
2175
2237
  var STATE = sharedKey$3('state');
2176
2238
  hiddenKeys$5[STATE] = true;
2177
2239
  set = function (it, metadata) {
2178
- if (objectHas(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
2240
+ if (hasOwn$b(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
2179
2241
  metadata.facade = it;
2180
- createNonEnumerableProperty$8(it, STATE, metadata);
2242
+ createNonEnumerableProperty$6(it, STATE, metadata);
2181
2243
  return metadata;
2182
2244
  };
2183
2245
  get = function (it) {
2184
- return objectHas(it, STATE) ? it[STATE] : {};
2246
+ return hasOwn$b(it, STATE) ? it[STATE] : {};
2185
2247
  };
2186
- has$b = function (it) {
2187
- return objectHas(it, STATE);
2248
+ has = function (it) {
2249
+ return hasOwn$b(it, STATE);
2188
2250
  };
2189
2251
  }
2190
2252
 
2191
2253
  var internalState = {
2192
2254
  set: set,
2193
2255
  get: get,
2194
- has: has$b,
2256
+ has: has,
2195
2257
  enforce: enforce,
2196
2258
  getterFor: getterFor
2197
2259
  };
2198
2260
 
2199
- var global$a = global$j;
2200
- var createNonEnumerableProperty$7 = createNonEnumerableProperty$9;
2201
- var has$a = has$e;
2261
+ var DESCRIPTORS$8 = descriptors;
2262
+ var hasOwn$a = hasOwnProperty_1;
2263
+
2264
+ var FunctionPrototype = Function.prototype;
2265
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2266
+ var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
2267
+
2268
+ var EXISTS = hasOwn$a(FunctionPrototype, 'name');
2269
+ // additional protection from minified / mangled / dropped function names
2270
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
2271
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype, 'name').configurable));
2272
+
2273
+ var functionName = {
2274
+ EXISTS: EXISTS,
2275
+ PROPER: PROPER,
2276
+ CONFIGURABLE: CONFIGURABLE
2277
+ };
2278
+
2279
+ var global$b = global$k;
2280
+ var isCallable$d = isCallable$l;
2281
+ var hasOwn$9 = hasOwnProperty_1;
2282
+ var createNonEnumerableProperty$5 = createNonEnumerableProperty$7;
2202
2283
  var setGlobal$1 = setGlobal$3;
2203
- var inspectSource = inspectSource$2;
2284
+ var inspectSource$1 = inspectSource$3;
2204
2285
  var InternalStateModule$4 = internalState;
2286
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
2205
2287
 
2206
2288
  var getInternalState$4 = InternalStateModule$4.get;
2207
2289
  var enforceInternalState$1 = InternalStateModule$4.enforce;
2208
2290
  var TEMPLATE = String(String).split('String');
2209
2291
 
2210
- (redefine$a.exports = function (O, key, value, options) {
2292
+ (redefine$b.exports = function (O, key, value, options) {
2211
2293
  var unsafe = options ? !!options.unsafe : false;
2212
2294
  var simple = options ? !!options.enumerable : false;
2213
2295
  var noTargetGet = options ? !!options.noTargetGet : false;
2296
+ var name = options && options.name !== undefined ? options.name : key;
2214
2297
  var state;
2215
- if (typeof value == 'function') {
2216
- if (typeof key == 'string' && !has$a(value, 'name')) {
2217
- createNonEnumerableProperty$7(value, 'name', key);
2298
+ if (isCallable$d(value)) {
2299
+ if (String(name).slice(0, 7) === 'Symbol(') {
2300
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
2301
+ }
2302
+ if (!hasOwn$9(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
2303
+ createNonEnumerableProperty$5(value, 'name', name);
2218
2304
  }
2219
2305
  state = enforceInternalState$1(value);
2220
2306
  if (!state.source) {
2221
- state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
2307
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
2222
2308
  }
2223
2309
  }
2224
- if (O === global$a) {
2310
+ if (O === global$b) {
2225
2311
  if (simple) O[key] = value;
2226
2312
  else setGlobal$1(key, value);
2227
2313
  return;
@@ -2231,57 +2317,67 @@ var TEMPLATE = String(String).split('String');
2231
2317
  simple = true;
2232
2318
  }
2233
2319
  if (simple) O[key] = value;
2234
- else createNonEnumerableProperty$7(O, key, value);
2320
+ else createNonEnumerableProperty$5(O, key, value);
2235
2321
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
2236
2322
  })(Function.prototype, 'toString', function toString() {
2237
- return typeof this == 'function' && getInternalState$4(this).source || inspectSource(this);
2323
+ return isCallable$d(this) && getInternalState$4(this).source || inspectSource$1(this);
2238
2324
  });
2239
2325
 
2240
- var redefine$9 = redefine$a.exports;
2326
+ var redefine$a = redefine$b.exports;
2241
2327
 
2242
2328
  var objectGetOwnPropertyNames = {};
2243
2329
 
2244
2330
  var ceil = Math.ceil;
2245
2331
  var floor$2 = Math.floor;
2246
2332
 
2247
- // `ToInteger` abstract operation
2248
- // https://tc39.es/ecma262/#sec-tointeger
2249
- var toInteger$5 = function (argument) {
2250
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$2 : ceil)(argument);
2333
+ // `ToIntegerOrInfinity` abstract operation
2334
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
2335
+ var toIntegerOrInfinity$5 = function (argument) {
2336
+ var number = +argument;
2337
+ // eslint-disable-next-line no-self-compare -- safe
2338
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor$2 : ceil)(number);
2251
2339
  };
2252
2340
 
2253
- var toInteger$4 = toInteger$5;
2341
+ var toIntegerOrInfinity$4 = toIntegerOrInfinity$5;
2254
2342
 
2343
+ var max$3 = Math.max;
2255
2344
  var min$4 = Math.min;
2256
2345
 
2257
- // `ToLength` abstract operation
2258
- // https://tc39.es/ecma262/#sec-tolength
2259
- var toLength$b = function (argument) {
2260
- return argument > 0 ? min$4(toInteger$4(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
2346
+ // Helper for a popular repeating case of the spec:
2347
+ // Let integer be ? ToInteger(index).
2348
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
2349
+ var toAbsoluteIndex$3 = function (index, length) {
2350
+ var integer = toIntegerOrInfinity$4(index);
2351
+ return integer < 0 ? max$3(integer + length, 0) : min$4(integer, length);
2261
2352
  };
2262
2353
 
2263
- var toInteger$3 = toInteger$5;
2354
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$5;
2264
2355
 
2265
- var max$3 = Math.max;
2266
2356
  var min$3 = Math.min;
2267
2357
 
2268
- // Helper for a popular repeating case of the spec:
2269
- // Let integer be ? ToInteger(index).
2270
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
2271
- var toAbsoluteIndex$3 = function (index, length) {
2272
- var integer = toInteger$3(index);
2273
- return integer < 0 ? max$3(integer + length, 0) : min$3(integer, length);
2358
+ // `ToLength` abstract operation
2359
+ // https://tc39.es/ecma262/#sec-tolength
2360
+ var toLength$3 = function (argument) {
2361
+ return argument > 0 ? min$3(toIntegerOrInfinity$3(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
2362
+ };
2363
+
2364
+ var toLength$2 = toLength$3;
2365
+
2366
+ // `LengthOfArrayLike` abstract operation
2367
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
2368
+ var lengthOfArrayLike$8 = function (obj) {
2369
+ return toLength$2(obj.length);
2274
2370
  };
2275
2371
 
2276
2372
  var toIndexedObject$7 = toIndexedObject$9;
2277
- var toLength$a = toLength$b;
2278
2373
  var toAbsoluteIndex$2 = toAbsoluteIndex$3;
2374
+ var lengthOfArrayLike$7 = lengthOfArrayLike$8;
2279
2375
 
2280
2376
  // `Array.prototype.{ indexOf, includes }` methods implementation
2281
- var createMethod$5 = function (IS_INCLUDES) {
2377
+ var createMethod$4 = function (IS_INCLUDES) {
2282
2378
  return function ($this, el, fromIndex) {
2283
2379
  var O = toIndexedObject$7($this);
2284
- var length = toLength$a(O.length);
2380
+ var length = lengthOfArrayLike$7(O);
2285
2381
  var index = toAbsoluteIndex$2(fromIndex, length);
2286
2382
  var value;
2287
2383
  // Array#includes uses SameValueZero equality algorithm
@@ -2300,13 +2396,13 @@ var createMethod$5 = function (IS_INCLUDES) {
2300
2396
  var arrayIncludes = {
2301
2397
  // `Array.prototype.includes` method
2302
2398
  // https://tc39.es/ecma262/#sec-array.prototype.includes
2303
- includes: createMethod$5(true),
2399
+ includes: createMethod$4(true),
2304
2400
  // `Array.prototype.indexOf` method
2305
2401
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
2306
- indexOf: createMethod$5(false)
2402
+ indexOf: createMethod$4(false)
2307
2403
  };
2308
2404
 
2309
- var has$9 = has$e;
2405
+ var hasOwn$8 = hasOwnProperty_1;
2310
2406
  var toIndexedObject$6 = toIndexedObject$9;
2311
2407
  var indexOf = arrayIncludes.indexOf;
2312
2408
  var hiddenKeys$4 = hiddenKeys$6;
@@ -2316,9 +2412,9 @@ var objectKeysInternal = function (object, names) {
2316
2412
  var i = 0;
2317
2413
  var result = [];
2318
2414
  var key;
2319
- for (key in O) !has$9(hiddenKeys$4, key) && has$9(O, key) && result.push(key);
2415
+ for (key in O) !hasOwn$8(hiddenKeys$4, key) && hasOwn$8(O, key) && result.push(key);
2320
2416
  // Don't enum bug & hidden keys
2321
- while (names.length > i) if (has$9(O, key = names[i++])) {
2417
+ while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
2322
2418
  ~indexOf(result, key) || result.push(key);
2323
2419
  }
2324
2420
  return result;
@@ -2352,19 +2448,19 @@ var objectGetOwnPropertySymbols = {};
2352
2448
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
2353
2449
  var f$2 = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
2354
2450
 
2355
- var getBuiltIn$3 = getBuiltIn$6;
2451
+ var getBuiltIn$4 = getBuiltIn$7;
2356
2452
  var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames;
2357
2453
  var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols;
2358
- var anObject$a = anObject$c;
2454
+ var anObject$c = anObject$e;
2359
2455
 
2360
2456
  // all object keys, includes non-enumerable and symbols
2361
- var ownKeys$1 = getBuiltIn$3('Reflect', 'ownKeys') || function ownKeys(it) {
2362
- var keys = getOwnPropertyNamesModule$2.f(anObject$a(it));
2457
+ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
2458
+ var keys = getOwnPropertyNamesModule$2.f(anObject$c(it));
2363
2459
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f;
2364
2460
  return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
2365
2461
  };
2366
2462
 
2367
- var has$8 = has$e;
2463
+ var hasOwn$7 = hasOwnProperty_1;
2368
2464
  var ownKeys = ownKeys$1;
2369
2465
  var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
2370
2466
  var definePropertyModule$5 = objectDefineProperty;
@@ -2375,11 +2471,12 @@ var copyConstructorProperties$2 = function (target, source) {
2375
2471
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;
2376
2472
  for (var i = 0; i < keys.length; i++) {
2377
2473
  var key = keys[i];
2378
- if (!has$8(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
2474
+ if (!hasOwn$7(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
2379
2475
  }
2380
2476
  };
2381
2477
 
2382
- var fails$j = fails$o;
2478
+ var fails$k = fails$p;
2479
+ var isCallable$c = isCallable$l;
2383
2480
 
2384
2481
  var replacement = /#|\.prototype\./;
2385
2482
 
@@ -2387,7 +2484,7 @@ var isForced$3 = function (feature, detection) {
2387
2484
  var value = data[normalize(feature)];
2388
2485
  return value == POLYFILL ? true
2389
2486
  : value == NATIVE ? false
2390
- : typeof detection == 'function' ? fails$j(detection)
2487
+ : isCallable$c(detection) ? fails$k(detection)
2391
2488
  : !!detection;
2392
2489
  };
2393
2490
 
@@ -2401,10 +2498,10 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
2401
2498
 
2402
2499
  var isForced_1 = isForced$3;
2403
2500
 
2404
- var global$9 = global$j;
2501
+ var global$a = global$k;
2405
2502
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
2406
- var createNonEnumerableProperty$6 = createNonEnumerableProperty$9;
2407
- var redefine$8 = redefine$a.exports;
2503
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$7;
2504
+ var redefine$9 = redefine$b.exports;
2408
2505
  var setGlobal = setGlobal$3;
2409
2506
  var copyConstructorProperties$1 = copyConstructorProperties$2;
2410
2507
  var isForced$2 = isForced_1;
@@ -2422,6 +2519,7 @@ var isForced$2 = isForced_1;
2422
2519
  options.sham - add a flag to not completely full polyfills
2423
2520
  options.enumerable - export as enumerable property
2424
2521
  options.noTargetGet - prevent calling a getter on target
2522
+ options.name - the .name of the function if it does not match the key
2425
2523
  */
2426
2524
  var _export = function (options, source) {
2427
2525
  var TARGET = options.target;
@@ -2429,11 +2527,11 @@ var _export = function (options, source) {
2429
2527
  var STATIC = options.stat;
2430
2528
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
2431
2529
  if (GLOBAL) {
2432
- target = global$9;
2530
+ target = global$a;
2433
2531
  } else if (STATIC) {
2434
- target = global$9[TARGET] || setGlobal(TARGET, {});
2532
+ target = global$a[TARGET] || setGlobal(TARGET, {});
2435
2533
  } else {
2436
- target = (global$9[TARGET] || {}).prototype;
2534
+ target = (global$a[TARGET] || {}).prototype;
2437
2535
  }
2438
2536
  if (target) for (key in source) {
2439
2537
  sourceProperty = source[key];
@@ -2449,26 +2547,63 @@ var _export = function (options, source) {
2449
2547
  }
2450
2548
  // add a flag to not completely full polyfills
2451
2549
  if (options.sham || (targetProperty && targetProperty.sham)) {
2452
- createNonEnumerableProperty$6(sourceProperty, 'sham', true);
2550
+ createNonEnumerableProperty$4(sourceProperty, 'sham', true);
2453
2551
  }
2454
2552
  // extend global
2455
- redefine$8(target, key, sourceProperty, options);
2553
+ redefine$9(target, key, sourceProperty, options);
2456
2554
  }
2457
2555
  };
2458
2556
 
2459
- var classof$6 = classofRaw$1;
2557
+ var classof$7 = classofRaw$1;
2460
2558
 
2461
2559
  // `IsArray` abstract operation
2462
2560
  // https://tc39.es/ecma262/#sec-isarray
2463
2561
  // eslint-disable-next-line es/no-array-isarray -- safe
2464
- var isArray$4 = Array.isArray || function isArray(arg) {
2465
- return classof$6(arg) == 'Array';
2562
+ var isArray$4 = Array.isArray || function isArray(argument) {
2563
+ return classof$7(argument) == 'Array';
2564
+ };
2565
+
2566
+ var wellKnownSymbol$l = wellKnownSymbol$n;
2567
+
2568
+ var TO_STRING_TAG$3 = wellKnownSymbol$l('toStringTag');
2569
+ var test$1 = {};
2570
+
2571
+ test$1[TO_STRING_TAG$3] = 'z';
2572
+
2573
+ var toStringTagSupport = String(test$1) === '[object z]';
2574
+
2575
+ var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
2576
+ var isCallable$b = isCallable$l;
2577
+ var classofRaw = classofRaw$1;
2578
+ var wellKnownSymbol$k = wellKnownSymbol$n;
2579
+
2580
+ var TO_STRING_TAG$2 = wellKnownSymbol$k('toStringTag');
2581
+ // ES3 wrong here
2582
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
2583
+
2584
+ // fallback for IE11 Script Access Denied error
2585
+ var tryGet = function (it, key) {
2586
+ try {
2587
+ return it[key];
2588
+ } catch (error) { /* empty */ }
2466
2589
  };
2467
2590
 
2468
- var isSymbol$1 = isSymbol$4;
2591
+ // getting tag from ES6+ `Object.prototype.toString`
2592
+ var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
2593
+ var O, tag, result;
2594
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
2595
+ // @@toStringTag case
2596
+ : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
2597
+ // builtinTag case
2598
+ : CORRECT_ARGUMENTS ? classofRaw(O)
2599
+ // ES3 arguments fallback
2600
+ : (result = classofRaw(O)) == 'Object' && isCallable$b(O.callee) ? 'Arguments' : result;
2601
+ };
2602
+
2603
+ var classof$5 = classof$6;
2469
2604
 
2470
- var toString$c = function (argument) {
2471
- if (isSymbol$1(argument)) throw TypeError('Cannot convert a Symbol value to a string');
2605
+ var toString$b = function (argument) {
2606
+ if (classof$5(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2472
2607
  return String(argument);
2473
2608
  };
2474
2609
 
@@ -2484,14 +2619,14 @@ var objectKeys$4 = Object.keys || function keys(O) {
2484
2619
 
2485
2620
  var DESCRIPTORS$7 = descriptors;
2486
2621
  var definePropertyModule$4 = objectDefineProperty;
2487
- var anObject$9 = anObject$c;
2622
+ var anObject$b = anObject$e;
2488
2623
  var objectKeys$3 = objectKeys$4;
2489
2624
 
2490
2625
  // `Object.defineProperties` method
2491
2626
  // https://tc39.es/ecma262/#sec-object.defineproperties
2492
2627
  // eslint-disable-next-line es/no-object-defineproperties -- safe
2493
2628
  var objectDefineProperties = DESCRIPTORS$7 ? Object.defineProperties : function defineProperties(O, Properties) {
2494
- anObject$9(O);
2629
+ anObject$b(O);
2495
2630
  var keys = objectKeys$3(Properties);
2496
2631
  var length = keys.length;
2497
2632
  var index = 0;
@@ -2500,18 +2635,18 @@ var objectDefineProperties = DESCRIPTORS$7 ? Object.defineProperties : function
2500
2635
  return O;
2501
2636
  };
2502
2637
 
2503
- var getBuiltIn$2 = getBuiltIn$6;
2638
+ var getBuiltIn$3 = getBuiltIn$7;
2504
2639
 
2505
- var html$1 = getBuiltIn$2('document', 'documentElement');
2640
+ var html$1 = getBuiltIn$3('document', 'documentElement');
2506
2641
 
2507
2642
  /* global ActiveXObject -- old IE, WSH */
2508
2643
 
2509
- var anObject$8 = anObject$c;
2644
+ var anObject$a = anObject$e;
2510
2645
  var defineProperties = objectDefineProperties;
2511
2646
  var enumBugKeys = enumBugKeys$3;
2512
2647
  var hiddenKeys$2 = hiddenKeys$6;
2513
2648
  var html = html$1;
2514
- var documentCreateElement = documentCreateElement$1;
2649
+ var documentCreateElement$1 = documentCreateElement$2;
2515
2650
  var sharedKey$2 = sharedKey$4;
2516
2651
 
2517
2652
  var GT = '>';
@@ -2538,20 +2673,18 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
2538
2673
  // Create object with fake `null` prototype: use iframe Object with cleared prototype
2539
2674
  var NullProtoObjectViaIFrame = function () {
2540
2675
  // Thrash, waste and sodomy: IE GC bug
2541
- var iframe = documentCreateElement('iframe');
2676
+ var iframe = documentCreateElement$1('iframe');
2542
2677
  var JS = 'java' + SCRIPT + ':';
2543
2678
  var iframeDocument;
2544
- if (iframe.style) {
2545
- iframe.style.display = 'none';
2546
- html.appendChild(iframe);
2547
- // https://github.com/zloirock/core-js/issues/475
2548
- iframe.src = String(JS);
2549
- iframeDocument = iframe.contentWindow.document;
2550
- iframeDocument.open();
2551
- iframeDocument.write(scriptTag('document.F=Object'));
2552
- iframeDocument.close();
2553
- return iframeDocument.F;
2554
- }
2679
+ iframe.style.display = 'none';
2680
+ html.appendChild(iframe);
2681
+ // https://github.com/zloirock/core-js/issues/475
2682
+ iframe.src = String(JS);
2683
+ iframeDocument = iframe.contentWindow.document;
2684
+ iframeDocument.open();
2685
+ iframeDocument.write(scriptTag('document.F=Object'));
2686
+ iframeDocument.close();
2687
+ return iframeDocument.F;
2555
2688
  };
2556
2689
 
2557
2690
  // Check for document.domain and active x support
@@ -2564,10 +2697,11 @@ var NullProtoObject = function () {
2564
2697
  try {
2565
2698
  activeXDocument = new ActiveXObject('htmlfile');
2566
2699
  } catch (error) { /* ignore */ }
2567
- NullProtoObject = document.domain && activeXDocument ?
2568
- NullProtoObjectViaActiveX(activeXDocument) : // old IE
2569
- NullProtoObjectViaIFrame() ||
2570
- NullProtoObjectViaActiveX(activeXDocument); // WSH
2700
+ NullProtoObject = typeof document != 'undefined'
2701
+ ? document.domain && activeXDocument
2702
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2703
+ : NullProtoObjectViaIFrame()
2704
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
2571
2705
  var length = enumBugKeys.length;
2572
2706
  while (length--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys[length]];
2573
2707
  return NullProtoObject();
@@ -2580,7 +2714,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
2580
2714
  var objectCreate = Object.create || function create(O, Properties) {
2581
2715
  var result;
2582
2716
  if (O !== null) {
2583
- EmptyConstructor[PROTOTYPE$1] = anObject$8(O);
2717
+ EmptyConstructor[PROTOTYPE$1] = anObject$a(O);
2584
2718
  result = new EmptyConstructor();
2585
2719
  EmptyConstructor[PROTOTYPE$1] = null;
2586
2720
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -2596,7 +2730,7 @@ var objectGetOwnPropertyNamesExternal = {};
2596
2730
  var toIndexedObject$5 = toIndexedObject$9;
2597
2731
  var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
2598
2732
 
2599
- var toString$b = {}.toString;
2733
+ var toString$a = {}.toString;
2600
2734
 
2601
2735
  var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
2602
2736
  ? Object.getOwnPropertyNames(window) : [];
@@ -2611,56 +2745,50 @@ var getWindowNames = function (it) {
2611
2745
 
2612
2746
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
2613
2747
  var f$1 = objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {
2614
- return windowNames && toString$b.call(it) == '[object Window]'
2748
+ return windowNames && toString$a.call(it) == '[object Window]'
2615
2749
  ? getWindowNames(it)
2616
2750
  : $getOwnPropertyNames$1(toIndexedObject$5(it));
2617
2751
  };
2618
2752
 
2619
2753
  var wellKnownSymbolWrapped = {};
2620
2754
 
2621
- var wellKnownSymbol$l = wellKnownSymbol$n;
2755
+ var wellKnownSymbol$j = wellKnownSymbol$n;
2622
2756
 
2623
- var f = wellKnownSymbolWrapped.f = wellKnownSymbol$l;
2757
+ var f = wellKnownSymbolWrapped.f = wellKnownSymbol$j;
2624
2758
 
2625
- var global$8 = global$j;
2759
+ var global$9 = global$k;
2626
2760
 
2627
- var path$1 = global$8;
2761
+ var path$1 = global$9;
2628
2762
 
2629
2763
  var path = path$1;
2630
- var has$7 = has$e;
2764
+ var hasOwn$6 = hasOwnProperty_1;
2631
2765
  var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
2632
2766
  var defineProperty$6 = objectDefineProperty.f;
2633
2767
 
2634
2768
  var defineWellKnownSymbol$1 = function (NAME) {
2635
2769
  var Symbol = path.Symbol || (path.Symbol = {});
2636
- if (!has$7(Symbol, NAME)) defineProperty$6(Symbol, NAME, {
2770
+ if (!hasOwn$6(Symbol, NAME)) defineProperty$6(Symbol, NAME, {
2637
2771
  value: wrappedWellKnownSymbolModule$1.f(NAME)
2638
2772
  });
2639
2773
  };
2640
2774
 
2641
2775
  var defineProperty$5 = objectDefineProperty.f;
2642
- var has$6 = has$e;
2643
- var wellKnownSymbol$k = wellKnownSymbol$n;
2776
+ var hasOwn$5 = hasOwnProperty_1;
2777
+ var wellKnownSymbol$i = wellKnownSymbol$n;
2644
2778
 
2645
- var TO_STRING_TAG$3 = wellKnownSymbol$k('toStringTag');
2779
+ var TO_STRING_TAG$1 = wellKnownSymbol$i('toStringTag');
2646
2780
 
2647
2781
  var setToStringTag$4 = function (it, TAG, STATIC) {
2648
- if (it && !has$6(it = STATIC ? it : it.prototype, TO_STRING_TAG$3)) {
2649
- defineProperty$5(it, TO_STRING_TAG$3, { configurable: true, value: TAG });
2782
+ if (it && !hasOwn$5(it = STATIC ? it : it.prototype, TO_STRING_TAG$1)) {
2783
+ defineProperty$5(it, TO_STRING_TAG$1, { configurable: true, value: TAG });
2650
2784
  }
2651
2785
  };
2652
2786
 
2653
- var aFunction$3 = function (it) {
2654
- if (typeof it != 'function') {
2655
- throw TypeError(String(it) + ' is not a function');
2656
- } return it;
2657
- };
2658
-
2659
- var aFunction$2 = aFunction$3;
2787
+ var aCallable$2 = aCallable$4;
2660
2788
 
2661
2789
  // optional / simple context binding
2662
2790
  var functionBindContext = function (fn, that, length) {
2663
- aFunction$2(fn);
2791
+ aCallable$2(fn);
2664
2792
  if (that === undefined) return fn;
2665
2793
  switch (length) {
2666
2794
  case 0: return function () {
@@ -2681,11 +2809,54 @@ var functionBindContext = function (fn, that, length) {
2681
2809
  };
2682
2810
  };
2683
2811
 
2684
- var isObject$9 = isObject$f;
2812
+ var fails$j = fails$p;
2813
+ var isCallable$a = isCallable$l;
2814
+ var classof$4 = classof$6;
2815
+ var getBuiltIn$2 = getBuiltIn$7;
2816
+ var inspectSource = inspectSource$3;
2817
+
2818
+ var empty = [];
2819
+ var construct = getBuiltIn$2('Reflect', 'construct');
2820
+ var constructorRegExp = /^\s*(?:class|function)\b/;
2821
+ var exec$1 = constructorRegExp.exec;
2822
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(function () { /* empty */ });
2823
+
2824
+ var isConstructorModern = function (argument) {
2825
+ if (!isCallable$a(argument)) return false;
2826
+ try {
2827
+ construct(Object, empty, argument);
2828
+ return true;
2829
+ } catch (error) {
2830
+ return false;
2831
+ }
2832
+ };
2833
+
2834
+ var isConstructorLegacy = function (argument) {
2835
+ if (!isCallable$a(argument)) return false;
2836
+ switch (classof$4(argument)) {
2837
+ case 'AsyncFunction':
2838
+ case 'GeneratorFunction':
2839
+ case 'AsyncGeneratorFunction': return false;
2840
+ // we can't check .prototype since constructors produced by .bind haven't it
2841
+ } return INCORRECT_TO_STRING || !!exec$1.call(constructorRegExp, inspectSource(argument));
2842
+ };
2843
+
2844
+ // `IsConstructor` abstract operation
2845
+ // https://tc39.es/ecma262/#sec-isconstructor
2846
+ var isConstructor$3 = !construct || fails$j(function () {
2847
+ var called;
2848
+ return isConstructorModern(isConstructorModern.call)
2849
+ || !isConstructorModern(Object)
2850
+ || !isConstructorModern(function () { called = true; })
2851
+ || called;
2852
+ }) ? isConstructorLegacy : isConstructorModern;
2853
+
2685
2854
  var isArray$3 = isArray$4;
2686
- var wellKnownSymbol$j = wellKnownSymbol$n;
2855
+ var isConstructor$2 = isConstructor$3;
2856
+ var isObject$8 = isObject$e;
2857
+ var wellKnownSymbol$h = wellKnownSymbol$n;
2687
2858
 
2688
- var SPECIES$4 = wellKnownSymbol$j('species');
2859
+ var SPECIES$4 = wellKnownSymbol$h('species');
2689
2860
 
2690
2861
  // a part of `ArraySpeciesCreate` abstract operation
2691
2862
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
@@ -2694,8 +2865,8 @@ var arraySpeciesConstructor$1 = function (originalArray) {
2694
2865
  if (isArray$3(originalArray)) {
2695
2866
  C = originalArray.constructor;
2696
2867
  // cross-realm fallback
2697
- if (typeof C == 'function' && (C === Array || isArray$3(C.prototype))) C = undefined;
2698
- else if (isObject$9(C)) {
2868
+ if (isConstructor$2(C) && (C === Array || isArray$3(C.prototype))) C = undefined;
2869
+ else if (isObject$8(C)) {
2699
2870
  C = C[SPECIES$4];
2700
2871
  if (C === null) C = undefined;
2701
2872
  }
@@ -2711,15 +2882,15 @@ var arraySpeciesCreate$3 = function (originalArray, length) {
2711
2882
  };
2712
2883
 
2713
2884
  var bind$3 = functionBindContext;
2714
- var IndexedObject$3 = indexedObject;
2715
- var toObject$9 = toObject$b;
2716
- var toLength$9 = toLength$b;
2885
+ var IndexedObject$2 = indexedObject;
2886
+ var toObject$8 = toObject$a;
2887
+ var lengthOfArrayLike$6 = lengthOfArrayLike$8;
2717
2888
  var arraySpeciesCreate$2 = arraySpeciesCreate$3;
2718
2889
 
2719
2890
  var push = [].push;
2720
2891
 
2721
2892
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
2722
- var createMethod$4 = function (TYPE) {
2893
+ var createMethod$3 = function (TYPE) {
2723
2894
  var IS_MAP = TYPE == 1;
2724
2895
  var IS_FILTER = TYPE == 2;
2725
2896
  var IS_SOME = TYPE == 3;
@@ -2728,10 +2899,10 @@ var createMethod$4 = function (TYPE) {
2728
2899
  var IS_FILTER_REJECT = TYPE == 7;
2729
2900
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
2730
2901
  return function ($this, callbackfn, that, specificCreate) {
2731
- var O = toObject$9($this);
2732
- var self = IndexedObject$3(O);
2902
+ var O = toObject$8($this);
2903
+ var self = IndexedObject$2(O);
2733
2904
  var boundFunction = bind$3(callbackfn, that, 3);
2734
- var length = toLength$9(self.length);
2905
+ var length = lengthOfArrayLike$6(self);
2735
2906
  var index = 0;
2736
2907
  var create = specificCreate || arraySpeciesCreate$2;
2737
2908
  var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
@@ -2759,47 +2930,48 @@ var createMethod$4 = function (TYPE) {
2759
2930
  var arrayIteration = {
2760
2931
  // `Array.prototype.forEach` method
2761
2932
  // https://tc39.es/ecma262/#sec-array.prototype.foreach
2762
- forEach: createMethod$4(0),
2933
+ forEach: createMethod$3(0),
2763
2934
  // `Array.prototype.map` method
2764
2935
  // https://tc39.es/ecma262/#sec-array.prototype.map
2765
- map: createMethod$4(1),
2936
+ map: createMethod$3(1),
2766
2937
  // `Array.prototype.filter` method
2767
2938
  // https://tc39.es/ecma262/#sec-array.prototype.filter
2768
- filter: createMethod$4(2),
2939
+ filter: createMethod$3(2),
2769
2940
  // `Array.prototype.some` method
2770
2941
  // https://tc39.es/ecma262/#sec-array.prototype.some
2771
- some: createMethod$4(3),
2942
+ some: createMethod$3(3),
2772
2943
  // `Array.prototype.every` method
2773
2944
  // https://tc39.es/ecma262/#sec-array.prototype.every
2774
- every: createMethod$4(4),
2945
+ every: createMethod$3(4),
2775
2946
  // `Array.prototype.find` method
2776
2947
  // https://tc39.es/ecma262/#sec-array.prototype.find
2777
- find: createMethod$4(5),
2948
+ find: createMethod$3(5),
2778
2949
  // `Array.prototype.findIndex` method
2779
2950
  // https://tc39.es/ecma262/#sec-array.prototype.findIndex
2780
- findIndex: createMethod$4(6),
2951
+ findIndex: createMethod$3(6),
2781
2952
  // `Array.prototype.filterReject` method
2782
2953
  // https://github.com/tc39/proposal-array-filtering
2783
- filterReject: createMethod$4(7)
2954
+ filterReject: createMethod$3(7)
2784
2955
  };
2785
2956
 
2786
2957
  'use strict';
2787
- var $$n = _export;
2788
- var global$7 = global$j;
2789
- var getBuiltIn$1 = getBuiltIn$6;
2958
+ var $$k = _export;
2959
+ var global$8 = global$k;
2960
+ var getBuiltIn$1 = getBuiltIn$7;
2790
2961
  var IS_PURE$3 = isPure;
2791
2962
  var DESCRIPTORS$6 = descriptors;
2792
- var NATIVE_SYMBOL = nativeSymbol;
2793
- var fails$i = fails$o;
2794
- var has$5 = has$e;
2963
+ var NATIVE_SYMBOL = nativeSymbol$1;
2964
+ var fails$i = fails$p;
2965
+ var hasOwn$4 = hasOwnProperty_1;
2795
2966
  var isArray$2 = isArray$4;
2796
- var isObject$8 = isObject$f;
2797
- var isSymbol = isSymbol$4;
2798
- var anObject$7 = anObject$c;
2799
- var toObject$8 = toObject$b;
2967
+ var isCallable$9 = isCallable$l;
2968
+ var isObject$7 = isObject$e;
2969
+ var isSymbol = isSymbol$3;
2970
+ var anObject$9 = anObject$e;
2971
+ var toObject$7 = toObject$a;
2800
2972
  var toIndexedObject$4 = toIndexedObject$9;
2801
2973
  var toPropertyKey$1 = toPropertyKey$4;
2802
- var $toString$1 = toString$c;
2974
+ var $toString$1 = toString$b;
2803
2975
  var createPropertyDescriptor$2 = createPropertyDescriptor$5;
2804
2976
  var nativeObjectCreate = objectCreate;
2805
2977
  var objectKeys$2 = objectKeys$4;
@@ -2809,13 +2981,12 @@ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
2809
2981
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
2810
2982
  var definePropertyModule$3 = objectDefineProperty;
2811
2983
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
2812
- var createNonEnumerableProperty$5 = createNonEnumerableProperty$9;
2813
- var redefine$7 = redefine$a.exports;
2984
+ var redefine$8 = redefine$b.exports;
2814
2985
  var shared$1 = shared$6.exports;
2815
2986
  var sharedKey$1 = sharedKey$4;
2816
2987
  var hiddenKeys$1 = hiddenKeys$6;
2817
2988
  var uid$1 = uid$4;
2818
- var wellKnownSymbol$i = wellKnownSymbol$n;
2989
+ var wellKnownSymbol$g = wellKnownSymbol$n;
2819
2990
  var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;
2820
2991
  var defineWellKnownSymbol = defineWellKnownSymbol$1;
2821
2992
  var setToStringTag$3 = setToStringTag$4;
@@ -2825,11 +2996,11 @@ var $forEach = arrayIteration.forEach;
2825
2996
  var HIDDEN = sharedKey$1('hidden');
2826
2997
  var SYMBOL = 'Symbol';
2827
2998
  var PROTOTYPE = 'prototype';
2828
- var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
2999
+ var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
2829
3000
  var setInternalState$3 = InternalStateModule$3.set;
2830
3001
  var getInternalState$3 = InternalStateModule$3.getterFor(SYMBOL);
2831
3002
  var ObjectPrototype$1 = Object[PROTOTYPE];
2832
- var $Symbol = global$7.Symbol;
3003
+ var $Symbol = global$8.Symbol;
2833
3004
  var $stringify = getBuiltIn$1('JSON', 'stringify');
2834
3005
  var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
2835
3006
  var nativeDefineProperty = definePropertyModule$3.f;
@@ -2840,7 +3011,7 @@ var ObjectPrototypeSymbols = shared$1('op-symbols');
2840
3011
  var StringToSymbolRegistry = shared$1('string-to-symbol-registry');
2841
3012
  var SymbolToStringRegistry = shared$1('symbol-to-string-registry');
2842
3013
  var WellKnownSymbolsStore = shared$1('wks');
2843
- var QObject = global$7.QObject;
3014
+ var QObject = global$8.QObject;
2844
3015
  // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
2845
3016
  var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
2846
3017
 
@@ -2871,22 +3042,22 @@ var wrap = function (tag, description) {
2871
3042
 
2872
3043
  var $defineProperty = function defineProperty(O, P, Attributes) {
2873
3044
  if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
2874
- anObject$7(O);
3045
+ anObject$9(O);
2875
3046
  var key = toPropertyKey$1(P);
2876
- anObject$7(Attributes);
2877
- if (has$5(AllSymbols, key)) {
3047
+ anObject$9(Attributes);
3048
+ if (hasOwn$4(AllSymbols, key)) {
2878
3049
  if (!Attributes.enumerable) {
2879
- if (!has$5(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$2(1, {}));
3050
+ if (!hasOwn$4(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$2(1, {}));
2880
3051
  O[HIDDEN][key] = true;
2881
3052
  } else {
2882
- if (has$5(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
3053
+ if (hasOwn$4(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
2883
3054
  Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$2(0, false) });
2884
3055
  } return setSymbolDescriptor(O, key, Attributes);
2885
3056
  } return nativeDefineProperty(O, key, Attributes);
2886
3057
  };
2887
3058
 
2888
3059
  var $defineProperties = function defineProperties(O, Properties) {
2889
- anObject$7(O);
3060
+ anObject$9(O);
2890
3061
  var properties = toIndexedObject$4(Properties);
2891
3062
  var keys = objectKeys$2(properties).concat($getOwnPropertySymbols(properties));
2892
3063
  $forEach(keys, function (key) {
@@ -2902,16 +3073,17 @@ var $create = function create(O, Properties) {
2902
3073
  var $propertyIsEnumerable = function propertyIsEnumerable(V) {
2903
3074
  var P = toPropertyKey$1(V);
2904
3075
  var enumerable = nativePropertyIsEnumerable.call(this, P);
2905
- if (this === ObjectPrototype$1 && has$5(AllSymbols, P) && !has$5(ObjectPrototypeSymbols, P)) return false;
2906
- return enumerable || !has$5(this, P) || !has$5(AllSymbols, P) || has$5(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
3076
+ if (this === ObjectPrototype$1 && hasOwn$4(AllSymbols, P) && !hasOwn$4(ObjectPrototypeSymbols, P)) return false;
3077
+ return enumerable || !hasOwn$4(this, P) || !hasOwn$4(AllSymbols, P) || hasOwn$4(this, HIDDEN) && this[HIDDEN][P]
3078
+ ? enumerable : true;
2907
3079
  };
2908
3080
 
2909
3081
  var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
2910
3082
  var it = toIndexedObject$4(O);
2911
3083
  var key = toPropertyKey$1(P);
2912
- if (it === ObjectPrototype$1 && has$5(AllSymbols, key) && !has$5(ObjectPrototypeSymbols, key)) return;
3084
+ if (it === ObjectPrototype$1 && hasOwn$4(AllSymbols, key) && !hasOwn$4(ObjectPrototypeSymbols, key)) return;
2913
3085
  var descriptor = nativeGetOwnPropertyDescriptor(it, key);
2914
- if (descriptor && has$5(AllSymbols, key) && !(has$5(it, HIDDEN) && it[HIDDEN][key])) {
3086
+ if (descriptor && hasOwn$4(AllSymbols, key) && !(hasOwn$4(it, HIDDEN) && it[HIDDEN][key])) {
2915
3087
  descriptor.enumerable = true;
2916
3088
  }
2917
3089
  return descriptor;
@@ -2921,7 +3093,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames(O) {
2921
3093
  var names = nativeGetOwnPropertyNames(toIndexedObject$4(O));
2922
3094
  var result = [];
2923
3095
  $forEach(names, function (key) {
2924
- if (!has$5(AllSymbols, key) && !has$5(hiddenKeys$1, key)) result.push(key);
3096
+ if (!hasOwn$4(AllSymbols, key) && !hasOwn$4(hiddenKeys$1, key)) result.push(key);
2925
3097
  });
2926
3098
  return result;
2927
3099
  };
@@ -2931,7 +3103,7 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
2931
3103
  var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject$4(O));
2932
3104
  var result = [];
2933
3105
  $forEach(names, function (key) {
2934
- if (has$5(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has$5(ObjectPrototype$1, key))) {
3106
+ if (hasOwn$4(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn$4(ObjectPrototype$1, key))) {
2935
3107
  result.push(AllSymbols[key]);
2936
3108
  }
2937
3109
  });
@@ -2947,18 +3119,18 @@ if (!NATIVE_SYMBOL) {
2947
3119
  var tag = uid$1(description);
2948
3120
  var setter = function (value) {
2949
3121
  if (this === ObjectPrototype$1) setter.call(ObjectPrototypeSymbols, value);
2950
- if (has$5(this, HIDDEN) && has$5(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
3122
+ if (hasOwn$4(this, HIDDEN) && hasOwn$4(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
2951
3123
  setSymbolDescriptor(this, tag, createPropertyDescriptor$2(1, value));
2952
3124
  };
2953
3125
  if (DESCRIPTORS$6 && USE_SETTER) setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
2954
3126
  return wrap(tag, description);
2955
3127
  };
2956
3128
 
2957
- redefine$7($Symbol[PROTOTYPE], 'toString', function toString() {
3129
+ redefine$8($Symbol[PROTOTYPE], 'toString', function toString() {
2958
3130
  return getInternalState$3(this).tag;
2959
3131
  });
2960
3132
 
2961
- redefine$7($Symbol, 'withoutSetter', function (description) {
3133
+ redefine$8($Symbol, 'withoutSetter', function (description) {
2962
3134
  return wrap(uid$1(description), description);
2963
3135
  });
2964
3136
 
@@ -2969,7 +3141,7 @@ if (!NATIVE_SYMBOL) {
2969
3141
  getOwnPropertySymbolsModule$1.f = $getOwnPropertySymbols;
2970
3142
 
2971
3143
  wrappedWellKnownSymbolModule.f = function (name) {
2972
- return wrap(wellKnownSymbol$i(name), name);
3144
+ return wrap(wellKnownSymbol$g(name), name);
2973
3145
  };
2974
3146
 
2975
3147
  if (DESCRIPTORS$6) {
@@ -2981,12 +3153,12 @@ if (!NATIVE_SYMBOL) {
2981
3153
  }
2982
3154
  });
2983
3155
  if (!IS_PURE$3) {
2984
- redefine$7(ObjectPrototype$1, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
3156
+ redefine$8(ObjectPrototype$1, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
2985
3157
  }
2986
3158
  }
2987
3159
  }
2988
3160
 
2989
- $$n({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
3161
+ $$k({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
2990
3162
  Symbol: $Symbol
2991
3163
  });
2992
3164
 
@@ -2994,12 +3166,12 @@ $forEach(objectKeys$2(WellKnownSymbolsStore), function (name) {
2994
3166
  defineWellKnownSymbol(name);
2995
3167
  });
2996
3168
 
2997
- $$n({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
3169
+ $$k({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
2998
3170
  // `Symbol.for` method
2999
3171
  // https://tc39.es/ecma262/#sec-symbol.for
3000
3172
  'for': function (key) {
3001
3173
  var string = $toString$1(key);
3002
- if (has$5(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
3174
+ if (hasOwn$4(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
3003
3175
  var symbol = $Symbol(string);
3004
3176
  StringToSymbolRegistry[string] = symbol;
3005
3177
  SymbolToStringRegistry[symbol] = string;
@@ -3009,13 +3181,13 @@ $$n({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
3009
3181
  // https://tc39.es/ecma262/#sec-symbol.keyfor
3010
3182
  keyFor: function keyFor(sym) {
3011
3183
  if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
3012
- if (has$5(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
3184
+ if (hasOwn$4(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
3013
3185
  },
3014
3186
  useSetter: function () { USE_SETTER = true; },
3015
3187
  useSimple: function () { USE_SETTER = false; }
3016
3188
  });
3017
3189
 
3018
- $$n({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$6 }, {
3190
+ $$k({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$6 }, {
3019
3191
  // `Object.create` method
3020
3192
  // https://tc39.es/ecma262/#sec-object.create
3021
3193
  create: $create,
@@ -3030,7 +3202,7 @@ $$n({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$6
3030
3202
  getOwnPropertyDescriptor: $getOwnPropertyDescriptor
3031
3203
  });
3032
3204
 
3033
- $$n({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
3205
+ $$k({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
3034
3206
  // `Object.getOwnPropertyNames` method
3035
3207
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
3036
3208
  getOwnPropertyNames: $getOwnPropertyNames,
@@ -3041,9 +3213,9 @@ $$n({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
3041
3213
 
3042
3214
  // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
3043
3215
  // https://bugs.chromium.org/p/v8/issues/detail?id=3443
3044
- $$n({ target: 'Object', stat: true, forced: fails$i(function () { getOwnPropertySymbolsModule$1.f(1); }) }, {
3216
+ $$k({ target: 'Object', stat: true, forced: fails$i(function () { getOwnPropertySymbolsModule$1.f(1); }) }, {
3045
3217
  getOwnPropertySymbols: function getOwnPropertySymbols(it) {
3046
- return getOwnPropertySymbolsModule$1.f(toObject$8(it));
3218
+ return getOwnPropertySymbolsModule$1.f(toObject$7(it));
3047
3219
  }
3048
3220
  });
3049
3221
 
@@ -3060,7 +3232,7 @@ if ($stringify) {
3060
3232
  || $stringify(Object(symbol)) != '{}';
3061
3233
  });
3062
3234
 
3063
- $$n({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
3235
+ $$k({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
3064
3236
  // eslint-disable-next-line no-unused-vars -- required for `.length`
3065
3237
  stringify: function stringify(it, replacer, space) {
3066
3238
  var args = [it];
@@ -3068,9 +3240,9 @@ if ($stringify) {
3068
3240
  var $replacer;
3069
3241
  while (arguments.length > index) args.push(arguments[index++]);
3070
3242
  $replacer = replacer;
3071
- if (!isObject$8(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
3243
+ if (!isObject$7(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
3072
3244
  if (!isArray$2(replacer)) replacer = function (key, value) {
3073
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
3245
+ if (isCallable$9($replacer)) value = $replacer.call(this, key, value);
3074
3246
  if (!isSymbol(value)) return value;
3075
3247
  };
3076
3248
  args[1] = replacer;
@@ -3082,7 +3254,10 @@ if ($stringify) {
3082
3254
  // `Symbol.prototype[@@toPrimitive]` method
3083
3255
  // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
3084
3256
  if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
3085
- createNonEnumerableProperty$5($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
3257
+ var valueOf = $Symbol[PROTOTYPE].valueOf;
3258
+ redefine$8($Symbol[PROTOTYPE], TO_PRIMITIVE, function () {
3259
+ return valueOf.apply(this, arguments);
3260
+ });
3086
3261
  }
3087
3262
  // `Symbol.prototype[@@toStringTag]` property
3088
3263
  // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
@@ -3095,17 +3270,18 @@ var es_symbol_description = {};
3095
3270
  // `Symbol.prototype.description` getter
3096
3271
  // https://tc39.es/ecma262/#sec-symbol.prototype.description
3097
3272
  'use strict';
3098
- var $$m = _export;
3273
+ var $$j = _export;
3099
3274
  var DESCRIPTORS$5 = descriptors;
3100
- var global$6 = global$j;
3101
- var has$4 = has$e;
3102
- var isObject$7 = isObject$f;
3275
+ var global$7 = global$k;
3276
+ var hasOwn$3 = hasOwnProperty_1;
3277
+ var isCallable$8 = isCallable$l;
3278
+ var isObject$6 = isObject$e;
3103
3279
  var defineProperty$4 = objectDefineProperty.f;
3104
3280
  var copyConstructorProperties = copyConstructorProperties$2;
3105
3281
 
3106
- var NativeSymbol = global$6.Symbol;
3282
+ var NativeSymbol = global$7.Symbol;
3107
3283
 
3108
- if (DESCRIPTORS$5 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
3284
+ if (DESCRIPTORS$5 && isCallable$8(NativeSymbol) && (!('description' in NativeSymbol.prototype) ||
3109
3285
  // Safari 12 bug
3110
3286
  NativeSymbol().description !== undefined
3111
3287
  )) {
@@ -3125,80 +3301,44 @@ if (DESCRIPTORS$5 && typeof NativeSymbol == 'function' && (!('description' in Na
3125
3301
  symbolPrototype.constructor = SymbolWrapper;
3126
3302
 
3127
3303
  var symbolToString = symbolPrototype.toString;
3128
- var native = String(NativeSymbol('test')) == 'Symbol(test)';
3304
+ var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
3129
3305
  var regexp = /^Symbol\((.*)\)[^)]+$/;
3130
3306
  defineProperty$4(symbolPrototype, 'description', {
3131
3307
  configurable: true,
3132
3308
  get: function description() {
3133
- var symbol = isObject$7(this) ? this.valueOf() : this;
3309
+ var symbol = isObject$6(this) ? this.valueOf() : this;
3134
3310
  var string = symbolToString.call(symbol);
3135
- if (has$4(EmptyStringDescriptionStore, symbol)) return '';
3136
- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
3311
+ if (hasOwn$3(EmptyStringDescriptionStore, symbol)) return '';
3312
+ var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
3137
3313
  return desc === '' ? undefined : desc;
3138
3314
  }
3139
3315
  });
3140
3316
 
3141
- $$m({ global: true, forced: true }, {
3317
+ $$j({ global: true, forced: true }, {
3142
3318
  Symbol: SymbolWrapper
3143
3319
  });
3144
3320
  }
3145
3321
 
3146
3322
  var es_object_toString = {};
3147
3323
 
3148
- var wellKnownSymbol$h = wellKnownSymbol$n;
3149
-
3150
- var TO_STRING_TAG$2 = wellKnownSymbol$h('toStringTag');
3151
- var test$1 = {};
3152
-
3153
- test$1[TO_STRING_TAG$2] = 'z';
3154
-
3155
- var toStringTagSupport = String(test$1) === '[object z]';
3156
-
3157
- var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
3158
- var classofRaw = classofRaw$1;
3159
- var wellKnownSymbol$g = wellKnownSymbol$n;
3160
-
3161
- var TO_STRING_TAG$1 = wellKnownSymbol$g('toStringTag');
3162
- // ES3 wrong here
3163
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
3164
-
3165
- // fallback for IE11 Script Access Denied error
3166
- var tryGet = function (it, key) {
3167
- try {
3168
- return it[key];
3169
- } catch (error) { /* empty */ }
3170
- };
3171
-
3172
- // getting tag from ES6+ `Object.prototype.toString`
3173
- var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
3174
- var O, tag, result;
3175
- return it === undefined ? 'Undefined' : it === null ? 'Null'
3176
- // @@toStringTag case
3177
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
3178
- // builtinTag case
3179
- : CORRECT_ARGUMENTS ? classofRaw(O)
3180
- // ES3 arguments fallback
3181
- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
3182
- };
3183
-
3184
3324
  'use strict';
3185
3325
  var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
3186
- var classof$4 = classof$5;
3326
+ var classof$3 = classof$6;
3187
3327
 
3188
3328
  // `Object.prototype.toString` method implementation
3189
3329
  // https://tc39.es/ecma262/#sec-object.prototype.tostring
3190
3330
  var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
3191
- return '[object ' + classof$4(this) + ']';
3331
+ return '[object ' + classof$3(this) + ']';
3192
3332
  };
3193
3333
 
3194
3334
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
3195
- var redefine$6 = redefine$a.exports;
3196
- var toString$a = objectToString;
3335
+ var redefine$7 = redefine$b.exports;
3336
+ var toString$9 = objectToString;
3197
3337
 
3198
3338
  // `Object.prototype.toString` method
3199
3339
  // https://tc39.es/ecma262/#sec-object.prototype.tostring
3200
3340
  if (!TO_STRING_TAG_SUPPORT) {
3201
- redefine$6(Object.prototype, 'toString', toString$a, { unsafe: true });
3341
+ redefine$7(Object.prototype, 'toString', toString$9, { unsafe: true });
3202
3342
  }
3203
3343
 
3204
3344
  var es_object_entries = {};
@@ -3209,7 +3349,7 @@ var toIndexedObject$3 = toIndexedObject$9;
3209
3349
  var propertyIsEnumerable = objectPropertyIsEnumerable.f;
3210
3350
 
3211
3351
  // `Object.{ entries, values }` methods implementation
3212
- var createMethod$3 = function (TO_ENTRIES) {
3352
+ var createMethod$2 = function (TO_ENTRIES) {
3213
3353
  return function (it) {
3214
3354
  var O = toIndexedObject$3(it);
3215
3355
  var keys = objectKeys$1(O);
@@ -3230,18 +3370,18 @@ var createMethod$3 = function (TO_ENTRIES) {
3230
3370
  var objectToArray = {
3231
3371
  // `Object.entries` method
3232
3372
  // https://tc39.es/ecma262/#sec-object.entries
3233
- entries: createMethod$3(true),
3373
+ entries: createMethod$2(true),
3234
3374
  // `Object.values` method
3235
3375
  // https://tc39.es/ecma262/#sec-object.values
3236
- values: createMethod$3(false)
3376
+ values: createMethod$2(false)
3237
3377
  };
3238
3378
 
3239
- var $$l = _export;
3379
+ var $$i = _export;
3240
3380
  var $entries = objectToArray.entries;
3241
3381
 
3242
3382
  // `Object.entries` method
3243
3383
  // https://tc39.es/ecma262/#sec-object.entries
3244
- $$l({ target: 'Object', stat: true }, {
3384
+ $$i({ target: 'Object', stat: true }, {
3245
3385
  entries: function entries(O) {
3246
3386
  return $entries(O);
3247
3387
  }
@@ -3260,7 +3400,7 @@ var createProperty$4 = function (object, key, value) {
3260
3400
  else object[propertyKey] = value;
3261
3401
  };
3262
3402
 
3263
- var fails$h = fails$o;
3403
+ var fails$h = fails$p;
3264
3404
  var wellKnownSymbol$f = wellKnownSymbol$n;
3265
3405
  var V8_VERSION$1 = engineV8Version;
3266
3406
 
@@ -3281,12 +3421,12 @@ var arrayMethodHasSpeciesSupport$5 = function (METHOD_NAME) {
3281
3421
  };
3282
3422
 
3283
3423
  'use strict';
3284
- var $$k = _export;
3285
- var fails$g = fails$o;
3424
+ var $$h = _export;
3425
+ var fails$g = fails$p;
3286
3426
  var isArray$1 = isArray$4;
3287
- var isObject$6 = isObject$f;
3288
- var toObject$7 = toObject$b;
3289
- var toLength$8 = toLength$b;
3427
+ var isObject$5 = isObject$e;
3428
+ var toObject$6 = toObject$a;
3429
+ var lengthOfArrayLike$5 = lengthOfArrayLike$8;
3290
3430
  var createProperty$3 = createProperty$4;
3291
3431
  var arraySpeciesCreate$1 = arraySpeciesCreate$3;
3292
3432
  var arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5;
@@ -3309,27 +3449,27 @@ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$g(function () {
3309
3449
  var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$4('concat');
3310
3450
 
3311
3451
  var isConcatSpreadable = function (O) {
3312
- if (!isObject$6(O)) return false;
3452
+ if (!isObject$5(O)) return false;
3313
3453
  var spreadable = O[IS_CONCAT_SPREADABLE];
3314
3454
  return spreadable !== undefined ? !!spreadable : isArray$1(O);
3315
3455
  };
3316
3456
 
3317
- var FORCED$2 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
3457
+ var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
3318
3458
 
3319
3459
  // `Array.prototype.concat` method
3320
3460
  // https://tc39.es/ecma262/#sec-array.prototype.concat
3321
3461
  // with adding support of @@isConcatSpreadable and @@species
3322
- $$k({ target: 'Array', proto: true, forced: FORCED$2 }, {
3462
+ $$h({ target: 'Array', proto: true, forced: FORCED$1 }, {
3323
3463
  // eslint-disable-next-line no-unused-vars -- required for `.length`
3324
3464
  concat: function concat(arg) {
3325
- var O = toObject$7(this);
3465
+ var O = toObject$6(this);
3326
3466
  var A = arraySpeciesCreate$1(O, 0);
3327
3467
  var n = 0;
3328
3468
  var i, k, length, len, E;
3329
3469
  for (i = -1, length = arguments.length; i < length; i++) {
3330
3470
  E = i === -1 ? O : arguments[i];
3331
3471
  if (isConcatSpreadable(E)) {
3332
- len = toLength$8(E.length);
3472
+ len = lengthOfArrayLike$5(E);
3333
3473
  if (n + len > MAX_SAFE_INTEGER$1) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
3334
3474
  for (k = 0; k < len; k++, n++) if (k in E) createProperty$3(A, n, E[k]);
3335
3475
  } else {
@@ -3345,9 +3485,9 @@ $$k({ target: 'Array', proto: true, forced: FORCED$2 }, {
3345
3485
  var es_array_join = {};
3346
3486
 
3347
3487
  'use strict';
3348
- var fails$f = fails$o;
3488
+ var fails$f = fails$p;
3349
3489
 
3350
- var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
3490
+ var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
3351
3491
  var method = [][METHOD_NAME];
3352
3492
  return !!method && fails$f(function () {
3353
3493
  // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
@@ -3356,19 +3496,19 @@ var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
3356
3496
  };
3357
3497
 
3358
3498
  'use strict';
3359
- var $$j = _export;
3360
- var IndexedObject$2 = indexedObject;
3499
+ var $$g = _export;
3500
+ var IndexedObject$1 = indexedObject;
3361
3501
  var toIndexedObject$2 = toIndexedObject$9;
3362
- var arrayMethodIsStrict$3 = arrayMethodIsStrict$4;
3502
+ var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
3363
3503
 
3364
3504
  var nativeJoin = [].join;
3365
3505
 
3366
- var ES3_STRINGS = IndexedObject$2 != Object;
3367
- var STRICT_METHOD$3 = arrayMethodIsStrict$3('join', ',');
3506
+ var ES3_STRINGS = IndexedObject$1 != Object;
3507
+ var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
3368
3508
 
3369
3509
  // `Array.prototype.join` method
3370
3510
  // https://tc39.es/ecma262/#sec-array.prototype.join
3371
- $$j({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$3 }, {
3511
+ $$g({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
3372
3512
  join: function join(separator) {
3373
3513
  return nativeJoin.call(toIndexedObject$2(this), separator === undefined ? ',' : separator);
3374
3514
  }
@@ -3376,25 +3516,38 @@ $$j({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$3 }, {
3376
3516
 
3377
3517
  var es_array_from = {};
3378
3518
 
3379
- var anObject$6 = anObject$c;
3519
+ var anObject$8 = anObject$e;
3520
+ var getMethod$2 = getMethod$4;
3380
3521
 
3381
- var iteratorClose$2 = function (iterator) {
3382
- var returnMethod = iterator['return'];
3383
- if (returnMethod !== undefined) {
3384
- return anObject$6(returnMethod.call(iterator)).value;
3522
+ var iteratorClose$2 = function (iterator, kind, value) {
3523
+ var innerResult, innerError;
3524
+ anObject$8(iterator);
3525
+ try {
3526
+ innerResult = getMethod$2(iterator, 'return');
3527
+ if (!innerResult) {
3528
+ if (kind === 'throw') throw value;
3529
+ return value;
3530
+ }
3531
+ innerResult = innerResult.call(iterator);
3532
+ } catch (error) {
3533
+ innerError = true;
3534
+ innerResult = error;
3385
3535
  }
3536
+ if (kind === 'throw') throw value;
3537
+ if (innerError) throw innerResult;
3538
+ anObject$8(innerResult);
3539
+ return value;
3386
3540
  };
3387
3541
 
3388
- var anObject$5 = anObject$c;
3542
+ var anObject$7 = anObject$e;
3389
3543
  var iteratorClose$1 = iteratorClose$2;
3390
3544
 
3391
3545
  // call something on iterator step with safe closing on error
3392
3546
  var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
3393
3547
  try {
3394
- return ENTRIES ? fn(anObject$5(value)[0], value[1]) : fn(value);
3548
+ return ENTRIES ? fn(anObject$7(value)[0], value[1]) : fn(value);
3395
3549
  } catch (error) {
3396
- iteratorClose$1(iterator);
3397
- throw error;
3550
+ iteratorClose$1(iterator, 'throw', error);
3398
3551
  }
3399
3552
  };
3400
3553
 
@@ -3411,51 +3564,64 @@ var isArrayIteratorMethod$2 = function (it) {
3411
3564
  return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$5] === it);
3412
3565
  };
3413
3566
 
3414
- var classof$3 = classof$5;
3567
+ var classof$2 = classof$6;
3568
+ var getMethod$1 = getMethod$4;
3415
3569
  var Iterators$3 = iterators;
3416
3570
  var wellKnownSymbol$c = wellKnownSymbol$n;
3417
3571
 
3418
3572
  var ITERATOR$4 = wellKnownSymbol$c('iterator');
3419
3573
 
3420
- var getIteratorMethod$2 = function (it) {
3421
- if (it != undefined) return it[ITERATOR$4]
3422
- || it['@@iterator']
3423
- || Iterators$3[classof$3(it)];
3574
+ var getIteratorMethod$3 = function (it) {
3575
+ if (it != undefined) return getMethod$1(it, ITERATOR$4)
3576
+ || getMethod$1(it, '@@iterator')
3577
+ || Iterators$3[classof$2(it)];
3578
+ };
3579
+
3580
+ var aCallable$1 = aCallable$4;
3581
+ var anObject$6 = anObject$e;
3582
+ var getIteratorMethod$2 = getIteratorMethod$3;
3583
+
3584
+ var getIterator$2 = function (argument, usingIterator) {
3585
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
3586
+ if (aCallable$1(iteratorMethod)) return anObject$6(iteratorMethod.call(argument));
3587
+ throw TypeError(String(argument) + ' is not iterable');
3424
3588
  };
3425
3589
 
3426
3590
  'use strict';
3427
3591
  var bind$2 = functionBindContext;
3428
- var toObject$6 = toObject$b;
3592
+ var toObject$5 = toObject$a;
3429
3593
  var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
3430
3594
  var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
3431
- var toLength$7 = toLength$b;
3595
+ var isConstructor$1 = isConstructor$3;
3596
+ var lengthOfArrayLike$4 = lengthOfArrayLike$8;
3432
3597
  var createProperty$2 = createProperty$4;
3433
- var getIteratorMethod$1 = getIteratorMethod$2;
3598
+ var getIterator$1 = getIterator$2;
3599
+ var getIteratorMethod$1 = getIteratorMethod$3;
3434
3600
 
3435
3601
  // `Array.from` method implementation
3436
3602
  // https://tc39.es/ecma262/#sec-array.from
3437
3603
  var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
3438
- var O = toObject$6(arrayLike);
3439
- var C = typeof this == 'function' ? this : Array;
3604
+ var O = toObject$5(arrayLike);
3605
+ var IS_CONSTRUCTOR = isConstructor$1(this);
3440
3606
  var argumentsLength = arguments.length;
3441
3607
  var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
3442
3608
  var mapping = mapfn !== undefined;
3609
+ if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
3443
3610
  var iteratorMethod = getIteratorMethod$1(O);
3444
3611
  var index = 0;
3445
3612
  var length, result, step, iterator, next, value;
3446
- if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
3447
3613
  // if the target is not iterable or it's an array with the default iterator - use a simple case
3448
- if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod$1(iteratorMethod))) {
3449
- iterator = iteratorMethod.call(O);
3614
+ if (iteratorMethod && !(this == Array && isArrayIteratorMethod$1(iteratorMethod))) {
3615
+ iterator = getIterator$1(O, iteratorMethod);
3450
3616
  next = iterator.next;
3451
- result = new C();
3617
+ result = IS_CONSTRUCTOR ? new this() : [];
3452
3618
  for (;!(step = next.call(iterator)).done; index++) {
3453
3619
  value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
3454
3620
  createProperty$2(result, index, value);
3455
3621
  }
3456
3622
  } else {
3457
- length = toLength$7(O.length);
3458
- result = new C(length);
3623
+ length = lengthOfArrayLike$4(O);
3624
+ result = IS_CONSTRUCTOR ? new this(length) : Array(length);
3459
3625
  for (;length > index; index++) {
3460
3626
  value = mapping ? mapfn(O[index], index) : O[index];
3461
3627
  createProperty$2(result, index, value);
@@ -3504,7 +3670,7 @@ var checkCorrectnessOfIteration$2 = function (exec, SKIP_CLOSING) {
3504
3670
  return ITERATION_SUPPORT;
3505
3671
  };
3506
3672
 
3507
- var $$i = _export;
3673
+ var $$f = _export;
3508
3674
  var from = arrayFrom;
3509
3675
  var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;
3510
3676
 
@@ -3515,21 +3681,20 @@ var INCORRECT_ITERATION = !checkCorrectnessOfIteration$1(function (iterable) {
3515
3681
 
3516
3682
  // `Array.from` method
3517
3683
  // https://tc39.es/ecma262/#sec-array.from
3518
- $$i({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
3684
+ $$f({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
3519
3685
  from: from
3520
3686
  });
3521
3687
 
3522
3688
  var es_string_iterator = {};
3523
3689
 
3524
- var toInteger$2 = toInteger$5;
3525
- var toString$9 = toString$c;
3690
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
3691
+ var toString$8 = toString$b;
3526
3692
  var requireObjectCoercible$4 = requireObjectCoercible$7;
3527
3693
 
3528
- // `String.prototype.codePointAt` methods implementation
3529
- var createMethod$2 = function (CONVERT_TO_STRING) {
3694
+ var createMethod$1 = function (CONVERT_TO_STRING) {
3530
3695
  return function ($this, pos) {
3531
- var S = toString$9(requireObjectCoercible$4($this));
3532
- var position = toInteger$2(pos);
3696
+ var S = toString$8(requireObjectCoercible$4($this));
3697
+ var position = toIntegerOrInfinity$2(pos);
3533
3698
  var size = S.length;
3534
3699
  var first, second;
3535
3700
  if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
@@ -3544,13 +3709,13 @@ var createMethod$2 = function (CONVERT_TO_STRING) {
3544
3709
  var stringMultibyte = {
3545
3710
  // `String.prototype.codePointAt` method
3546
3711
  // https://tc39.es/ecma262/#sec-string.prototype.codepointat
3547
- codeAt: createMethod$2(false),
3712
+ codeAt: createMethod$1(false),
3548
3713
  // `String.prototype.at` method
3549
3714
  // https://github.com/mathiasbynens/String.prototype.at
3550
- charAt: createMethod$2(true)
3715
+ charAt: createMethod$1(true)
3551
3716
  };
3552
3717
 
3553
- var fails$e = fails$o;
3718
+ var fails$e = fails$p;
3554
3719
 
3555
3720
  var correctPrototypeGetter = !fails$e(function () {
3556
3721
  function F() { /* empty */ }
@@ -3559,8 +3724,9 @@ var correctPrototypeGetter = !fails$e(function () {
3559
3724
  return Object.getPrototypeOf(new F()) !== F.prototype;
3560
3725
  });
3561
3726
 
3562
- var has$3 = has$e;
3563
- var toObject$5 = toObject$b;
3727
+ var hasOwn$2 = hasOwnProperty_1;
3728
+ var isCallable$7 = isCallable$l;
3729
+ var toObject$4 = toObject$a;
3564
3730
  var sharedKey = sharedKey$4;
3565
3731
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
3566
3732
 
@@ -3571,26 +3737,26 @@ var ObjectPrototype = Object.prototype;
3571
3737
  // https://tc39.es/ecma262/#sec-object.getprototypeof
3572
3738
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
3573
3739
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
3574
- O = toObject$5(O);
3575
- if (has$3(O, IE_PROTO)) return O[IE_PROTO];
3576
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
3577
- return O.constructor.prototype;
3578
- } return O instanceof Object ? ObjectPrototype : null;
3740
+ var object = toObject$4(O);
3741
+ if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
3742
+ var constructor = object.constructor;
3743
+ if (isCallable$7(constructor) && object instanceof constructor) {
3744
+ return constructor.prototype;
3745
+ } return object instanceof Object ? ObjectPrototype : null;
3579
3746
  };
3580
3747
 
3581
3748
  'use strict';
3582
- var fails$d = fails$o;
3749
+ var fails$d = fails$p;
3750
+ var isCallable$6 = isCallable$l;
3751
+ var create$4 = objectCreate;
3583
3752
  var getPrototypeOf$1 = objectGetPrototypeOf;
3584
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$9;
3585
- var has$2 = has$e;
3753
+ var redefine$6 = redefine$b.exports;
3586
3754
  var wellKnownSymbol$a = wellKnownSymbol$n;
3587
3755
  var IS_PURE$2 = isPure;
3588
3756
 
3589
3757
  var ITERATOR$2 = wellKnownSymbol$a('iterator');
3590
3758
  var BUGGY_SAFARI_ITERATORS$1 = false;
3591
3759
 
3592
- var returnThis$2 = function () { return this; };
3593
-
3594
3760
  // `%IteratorPrototype%` object
3595
3761
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
3596
3762
  var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
@@ -3613,11 +3779,14 @@ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$d(functio
3613
3779
  });
3614
3780
 
3615
3781
  if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
3782
+ else if (IS_PURE$2) IteratorPrototype$2 = create$4(IteratorPrototype$2);
3616
3783
 
3617
3784
  // `%IteratorPrototype%[@@iterator]()` method
3618
3785
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
3619
- if ((!IS_PURE$2 || NEW_ITERATOR_PROTOTYPE) && !has$2(IteratorPrototype$2, ITERATOR$2)) {
3620
- createNonEnumerableProperty$4(IteratorPrototype$2, ITERATOR$2, returnThis$2);
3786
+ if (!isCallable$6(IteratorPrototype$2[ITERATOR$2])) {
3787
+ redefine$6(IteratorPrototype$2, ITERATOR$2, function () {
3788
+ return this;
3789
+ });
3621
3790
  }
3622
3791
 
3623
3792
  var iteratorsCore = {
@@ -3642,17 +3811,16 @@ var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next) {
3642
3811
  return IteratorConstructor;
3643
3812
  };
3644
3813
 
3645
- var isObject$5 = isObject$f;
3814
+ var isCallable$5 = isCallable$l;
3646
3815
 
3647
- var aPossiblePrototype$1 = function (it) {
3648
- if (!isObject$5(it) && it !== null) {
3649
- throw TypeError("Can't set " + String(it) + ' as a prototype');
3650
- } return it;
3816
+ var aPossiblePrototype$1 = function (argument) {
3817
+ if (typeof argument === 'object' || isCallable$5(argument)) return argument;
3818
+ throw TypeError("Can't set " + String(argument) + ' as a prototype');
3651
3819
  };
3652
3820
 
3653
3821
  /* eslint-disable no-proto -- safe */
3654
3822
 
3655
- var anObject$4 = anObject$c;
3823
+ var anObject$5 = anObject$e;
3656
3824
  var aPossiblePrototype = aPossiblePrototype$1;
3657
3825
 
3658
3826
  // `Object.setPrototypeOf` method
@@ -3670,7 +3838,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
3670
3838
  CORRECT_SETTER = test instanceof Array;
3671
3839
  } catch (error) { /* empty */ }
3672
3840
  return function setPrototypeOf(O, proto) {
3673
- anObject$4(O);
3841
+ anObject$5(O);
3674
3842
  aPossiblePrototype(proto);
3675
3843
  if (CORRECT_SETTER) setter.call(O, proto);
3676
3844
  else O.__proto__ = proto;
@@ -3679,18 +3847,22 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
3679
3847
  }() : undefined);
3680
3848
 
3681
3849
  'use strict';
3682
- var $$h = _export;
3850
+ var $$e = _export;
3851
+ var IS_PURE$1 = isPure;
3852
+ var FunctionName = functionName;
3853
+ var isCallable$4 = isCallable$l;
3683
3854
  var createIteratorConstructor = createIteratorConstructor$1;
3684
3855
  var getPrototypeOf = objectGetPrototypeOf;
3685
3856
  var setPrototypeOf$1 = objectSetPrototypeOf;
3686
3857
  var setToStringTag$1 = setToStringTag$4;
3687
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$9;
3688
- var redefine$5 = redefine$a.exports;
3858
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$7;
3859
+ var redefine$5 = redefine$b.exports;
3689
3860
  var wellKnownSymbol$9 = wellKnownSymbol$n;
3690
- var IS_PURE$1 = isPure;
3691
3861
  var Iterators$1 = iterators;
3692
3862
  var IteratorsCore = iteratorsCore;
3693
3863
 
3864
+ var PROPER_FUNCTION_NAME$2 = FunctionName.PROPER;
3865
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
3694
3866
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
3695
3867
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
3696
3868
  var ITERATOR$1 = wellKnownSymbol$9('iterator');
@@ -3726,12 +3898,12 @@ var defineIterator$3 = function (Iterable, NAME, IteratorConstructor, next, DEFA
3726
3898
  // fix native
3727
3899
  if (anyNativeIterator) {
3728
3900
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
3729
- if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
3901
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
3730
3902
  if (!IS_PURE$1 && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
3731
3903
  if (setPrototypeOf$1) {
3732
3904
  setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
3733
- } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
3734
- createNonEnumerableProperty$3(CurrentIteratorPrototype, ITERATOR$1, returnThis);
3905
+ } else if (!isCallable$4(CurrentIteratorPrototype[ITERATOR$1])) {
3906
+ redefine$5(CurrentIteratorPrototype, ITERATOR$1, returnThis);
3735
3907
  }
3736
3908
  }
3737
3909
  // Set @@toStringTag to native iterators
@@ -3741,16 +3913,14 @@ var defineIterator$3 = function (Iterable, NAME, IteratorConstructor, next, DEFA
3741
3913
  }
3742
3914
 
3743
3915
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
3744
- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
3745
- INCORRECT_VALUES_NAME = true;
3746
- defaultIterator = function values() { return nativeIterator.call(this); };
3747
- }
3748
-
3749
- // define iterator
3750
- if ((!IS_PURE$1 || FORCED) && IterablePrototype[ITERATOR$1] !== defaultIterator) {
3751
- createNonEnumerableProperty$3(IterablePrototype, ITERATOR$1, defaultIterator);
3916
+ if (PROPER_FUNCTION_NAME$2 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
3917
+ if (!IS_PURE$1 && CONFIGURABLE_FUNCTION_NAME) {
3918
+ createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
3919
+ } else {
3920
+ INCORRECT_VALUES_NAME = true;
3921
+ defaultIterator = function values() { return nativeIterator.call(this); };
3922
+ }
3752
3923
  }
3753
- Iterators$1[NAME] = defaultIterator;
3754
3924
 
3755
3925
  // export additional methods
3756
3926
  if (DEFAULT) {
@@ -3763,15 +3933,21 @@ var defineIterator$3 = function (Iterable, NAME, IteratorConstructor, next, DEFA
3763
3933
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
3764
3934
  redefine$5(IterablePrototype, KEY, methods[KEY]);
3765
3935
  }
3766
- } else $$h({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
3936
+ } else $$e({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
3937
+ }
3938
+
3939
+ // define iterator
3940
+ if ((!IS_PURE$1 || FORCED) && IterablePrototype[ITERATOR$1] !== defaultIterator) {
3941
+ redefine$5(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
3767
3942
  }
3943
+ Iterators$1[NAME] = defaultIterator;
3768
3944
 
3769
3945
  return methods;
3770
3946
  };
3771
3947
 
3772
3948
  'use strict';
3773
3949
  var charAt$1 = stringMultibyte.charAt;
3774
- var toString$8 = toString$c;
3950
+ var toString$7 = toString$b;
3775
3951
  var InternalStateModule$2 = internalState;
3776
3952
  var defineIterator$2 = defineIterator$3;
3777
3953
 
@@ -3784,7 +3960,7 @@ var getInternalState$2 = InternalStateModule$2.getterFor(STRING_ITERATOR);
3784
3960
  defineIterator$2(String, 'String', function (iterated) {
3785
3961
  setInternalState$2(this, {
3786
3962
  type: STRING_ITERATOR,
3787
- string: toString$8(iterated),
3963
+ string: toString$7(iterated),
3788
3964
  index: 0
3789
3965
  });
3790
3966
  // `%StringIteratorPrototype%.next` method
@@ -3802,8 +3978,8 @@ defineIterator$2(String, 'String', function (iterated) {
3802
3978
 
3803
3979
  var es_string_startsWith = {};
3804
3980
 
3805
- var isObject$4 = isObject$f;
3806
- var classof$2 = classofRaw$1;
3981
+ var isObject$4 = isObject$e;
3982
+ var classof$1 = classofRaw$1;
3807
3983
  var wellKnownSymbol$8 = wellKnownSymbol$n;
3808
3984
 
3809
3985
  var MATCH$2 = wellKnownSymbol$8('match');
@@ -3812,7 +3988,7 @@ var MATCH$2 = wellKnownSymbol$8('match');
3812
3988
  // https://tc39.es/ecma262/#sec-isregexp
3813
3989
  var isRegexp = function (it) {
3814
3990
  var isRegExp;
3815
- return isObject$4(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp');
3991
+ return isObject$4(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
3816
3992
  };
3817
3993
 
3818
3994
  var isRegExp$1 = isRegexp;
@@ -3840,10 +4016,10 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
3840
4016
  };
3841
4017
 
3842
4018
  'use strict';
3843
- var $$g = _export;
4019
+ var $$d = _export;
3844
4020
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
3845
- var toLength$6 = toLength$b;
3846
- var toString$7 = toString$c;
4021
+ var toLength$1 = toLength$3;
4022
+ var toString$6 = toString$b;
3847
4023
  var notARegExp = notARegexp;
3848
4024
  var requireObjectCoercible$3 = requireObjectCoercible$7;
3849
4025
  var correctIsRegExpLogic = correctIsRegexpLogic;
@@ -3862,12 +4038,12 @@ var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
3862
4038
 
3863
4039
  // `String.prototype.startsWith` method
3864
4040
  // https://tc39.es/ecma262/#sec-string.prototype.startswith
3865
- $$g({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
4041
+ $$d({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
3866
4042
  startsWith: function startsWith(searchString /* , position = 0 */) {
3867
- var that = toString$7(requireObjectCoercible$3(this));
4043
+ var that = toString$6(requireObjectCoercible$3(this));
3868
4044
  notARegExp(searchString);
3869
- var index = toLength$6(min$2(arguments.length > 1 ? arguments[1] : undefined, that.length));
3870
- var search = toString$7(searchString);
4045
+ var index = toLength$1(min$2(arguments.length > 1 ? arguments[1] : undefined, that.length));
4046
+ var search = toString$6(searchString);
3871
4047
  return $startsWith
3872
4048
  ? $startsWith.call(that, search, index)
3873
4049
  : that.slice(index, index + search.length) === search;
@@ -3877,11 +4053,11 @@ $$g({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
3877
4053
  var es_array_splice = {};
3878
4054
 
3879
4055
  'use strict';
3880
- var $$f = _export;
4056
+ var $$c = _export;
3881
4057
  var toAbsoluteIndex$1 = toAbsoluteIndex$3;
3882
- var toInteger$1 = toInteger$5;
3883
- var toLength$5 = toLength$b;
3884
- var toObject$4 = toObject$b;
4058
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$5;
4059
+ var lengthOfArrayLike$3 = lengthOfArrayLike$8;
4060
+ var toObject$3 = toObject$a;
3885
4061
  var arraySpeciesCreate = arraySpeciesCreate$3;
3886
4062
  var createProperty$1 = createProperty$4;
3887
4063
  var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5;
@@ -3896,10 +4072,10 @@ var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
3896
4072
  // `Array.prototype.splice` method
3897
4073
  // https://tc39.es/ecma262/#sec-array.prototype.splice
3898
4074
  // with adding support of @@species
3899
- $$f({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
4075
+ $$c({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
3900
4076
  splice: function splice(start, deleteCount /* , ...items */) {
3901
- var O = toObject$4(this);
3902
- var len = toLength$5(O.length);
4077
+ var O = toObject$3(this);
4078
+ var len = lengthOfArrayLike$3(O);
3903
4079
  var actualStart = toAbsoluteIndex$1(start, len);
3904
4080
  var argumentsLength = arguments.length;
3905
4081
  var insertCount, actualDeleteCount, A, k, from, to;
@@ -3910,7 +4086,7 @@ $$f({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
3910
4086
  actualDeleteCount = len - actualStart;
3911
4087
  } else {
3912
4088
  insertCount = argumentsLength - 2;
3913
- actualDeleteCount = min$1(max$2(toInteger$1(deleteCount), 0), len - actualStart);
4089
+ actualDeleteCount = min$1(max$2(toIntegerOrInfinity$1(deleteCount), 0), len - actualStart);
3914
4090
  }
3915
4091
  if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
3916
4092
  throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
@@ -3948,11 +4124,12 @@ $$f({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
3948
4124
  var es_array_slice = {};
3949
4125
 
3950
4126
  'use strict';
3951
- var $$e = _export;
3952
- var isObject$3 = isObject$f;
4127
+ var $$b = _export;
3953
4128
  var isArray = isArray$4;
4129
+ var isConstructor = isConstructor$3;
4130
+ var isObject$3 = isObject$e;
3954
4131
  var toAbsoluteIndex = toAbsoluteIndex$3;
3955
- var toLength$4 = toLength$b;
4132
+ var lengthOfArrayLike$2 = lengthOfArrayLike$8;
3956
4133
  var toIndexedObject$1 = toIndexedObject$9;
3957
4134
  var createProperty = createProperty$4;
3958
4135
  var wellKnownSymbol$6 = wellKnownSymbol$n;
@@ -3967,10 +4144,10 @@ var max$1 = Math.max;
3967
4144
  // `Array.prototype.slice` method
3968
4145
  // https://tc39.es/ecma262/#sec-array.prototype.slice
3969
4146
  // fallback for not array-like ES3 strings and DOM objects
3970
- $$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
4147
+ $$b({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
3971
4148
  slice: function slice(start, end) {
3972
4149
  var O = toIndexedObject$1(this);
3973
- var length = toLength$4(O.length);
4150
+ var length = lengthOfArrayLike$2(O);
3974
4151
  var k = toAbsoluteIndex(start, length);
3975
4152
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
3976
4153
  // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
@@ -3978,7 +4155,7 @@ $$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
3978
4155
  if (isArray(O)) {
3979
4156
  Constructor = O.constructor;
3980
4157
  // cross-realm fallback
3981
- if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
4158
+ if (isConstructor(Constructor) && (Constructor === Array || isArray(Constructor.prototype))) {
3982
4159
  Constructor = undefined;
3983
4160
  } else if (isObject$3(Constructor)) {
3984
4161
  Constructor = Constructor[SPECIES$2];
@@ -3995,84 +4172,23 @@ $$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
3995
4172
  }
3996
4173
  });
3997
4174
 
3998
- var es_parseFloat = {};
3999
-
4000
- // a string of all valid unicode whitespaces
4001
- var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
4002
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
4003
-
4004
- var requireObjectCoercible$2 = requireObjectCoercible$7;
4005
- var toString$6 = toString$c;
4006
- var whitespaces$2 = whitespaces$3;
4007
-
4008
- var whitespace = '[' + whitespaces$2 + ']';
4009
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
4010
- var rtrim = RegExp(whitespace + whitespace + '*$');
4011
-
4012
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
4013
- var createMethod$1 = function (TYPE) {
4014
- return function ($this) {
4015
- var string = toString$6(requireObjectCoercible$2($this));
4016
- if (TYPE & 1) string = string.replace(ltrim, '');
4017
- if (TYPE & 2) string = string.replace(rtrim, '');
4018
- return string;
4019
- };
4020
- };
4021
-
4022
- var stringTrim = {
4023
- // `String.prototype.{ trimLeft, trimStart }` methods
4024
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
4025
- start: createMethod$1(1),
4026
- // `String.prototype.{ trimRight, trimEnd }` methods
4027
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
4028
- end: createMethod$1(2),
4029
- // `String.prototype.trim` method
4030
- // https://tc39.es/ecma262/#sec-string.prototype.trim
4031
- trim: createMethod$1(3)
4032
- };
4033
-
4034
- var global$5 = global$j;
4035
- var toString$5 = toString$c;
4036
- var trim = stringTrim.trim;
4037
- var whitespaces$1 = whitespaces$3;
4038
-
4039
- var $parseFloat = global$5.parseFloat;
4040
- var FORCED$1 = 1 / $parseFloat(whitespaces$1 + '-0') !== -Infinity;
4041
-
4042
- // `parseFloat` method
4043
- // https://tc39.es/ecma262/#sec-parsefloat-string
4044
- var numberParseFloat = FORCED$1 ? function parseFloat(string) {
4045
- var trimmedString = trim(toString$5(string));
4046
- var result = $parseFloat(trimmedString);
4047
- return result === 0 && trimmedString.charAt(0) == '-' ? -0 : result;
4048
- } : $parseFloat;
4049
-
4050
- var $$d = _export;
4051
- var parseFloatImplementation = numberParseFloat;
4052
-
4053
- // `parseFloat` method
4054
- // https://tc39.es/ecma262/#sec-parsefloat-string
4055
- $$d({ global: true, forced: parseFloat != parseFloatImplementation }, {
4056
- parseFloat: parseFloatImplementation
4057
- });
4058
-
4059
4175
  var es_string_anchor = {};
4060
4176
 
4061
- var requireObjectCoercible$1 = requireObjectCoercible$7;
4062
- var toString$4 = toString$c;
4177
+ var requireObjectCoercible$2 = requireObjectCoercible$7;
4178
+ var toString$5 = toString$b;
4063
4179
 
4064
4180
  var quot = /"/g;
4065
4181
 
4066
4182
  // `CreateHTML` abstract operation
4067
4183
  // https://tc39.es/ecma262/#sec-createhtml
4068
4184
  var createHtml = function (string, tag, attribute, value) {
4069
- var S = toString$4(requireObjectCoercible$1(string));
4185
+ var S = toString$5(requireObjectCoercible$2(string));
4070
4186
  var p1 = '<' + tag;
4071
- if (attribute !== '') p1 += ' ' + attribute + '="' + toString$4(value).replace(quot, '&quot;') + '"';
4187
+ if (attribute !== '') p1 += ' ' + attribute + '="' + toString$5(value).replace(quot, '&quot;') + '"';
4072
4188
  return p1 + '>' + S + '</' + tag + '>';
4073
4189
  };
4074
4190
 
4075
- var fails$c = fails$o;
4191
+ var fails$c = fails$p;
4076
4192
 
4077
4193
  // check the existence of a method, lowercase
4078
4194
  // of a tag and escaping quotes in arguments
@@ -4084,110 +4200,18 @@ var stringHtmlForced = function (METHOD_NAME) {
4084
4200
  };
4085
4201
 
4086
4202
  'use strict';
4087
- var $$c = _export;
4203
+ var $$a = _export;
4088
4204
  var createHTML = createHtml;
4089
4205
  var forcedStringHTMLMethod = stringHtmlForced;
4090
4206
 
4091
4207
  // `String.prototype.anchor` method
4092
4208
  // https://tc39.es/ecma262/#sec-string.prototype.anchor
4093
- $$c({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {
4209
+ $$a({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {
4094
4210
  anchor: function anchor(name) {
4095
4211
  return createHTML(this, 'a', 'name', name);
4096
4212
  }
4097
4213
  });
4098
4214
 
4099
- var es_array_indexOf = {};
4100
-
4101
- 'use strict';
4102
- /* eslint-disable es/no-array-prototype-indexof -- required for testing */
4103
- var $$b = _export;
4104
- var $indexOf = arrayIncludes.indexOf;
4105
- var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;
4106
-
4107
- var nativeIndexOf = [].indexOf;
4108
-
4109
- var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
4110
- var STRICT_METHOD$2 = arrayMethodIsStrict$2('indexOf');
4111
-
4112
- // `Array.prototype.indexOf` method
4113
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
4114
- $$b({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$2 }, {
4115
- indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
4116
- return NEGATIVE_ZERO
4117
- // convert -0 to +0
4118
- ? nativeIndexOf.apply(this, arguments) || 0
4119
- : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
4120
- }
4121
- });
4122
-
4123
- var es_array_reduce = {};
4124
-
4125
- var aFunction$1 = aFunction$3;
4126
- var toObject$3 = toObject$b;
4127
- var IndexedObject$1 = indexedObject;
4128
- var toLength$3 = toLength$b;
4129
-
4130
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
4131
- var createMethod = function (IS_RIGHT) {
4132
- return function (that, callbackfn, argumentsLength, memo) {
4133
- aFunction$1(callbackfn);
4134
- var O = toObject$3(that);
4135
- var self = IndexedObject$1(O);
4136
- var length = toLength$3(O.length);
4137
- var index = IS_RIGHT ? length - 1 : 0;
4138
- var i = IS_RIGHT ? -1 : 1;
4139
- if (argumentsLength < 2) while (true) {
4140
- if (index in self) {
4141
- memo = self[index];
4142
- index += i;
4143
- break;
4144
- }
4145
- index += i;
4146
- if (IS_RIGHT ? index < 0 : length <= index) {
4147
- throw TypeError('Reduce of empty array with no initial value');
4148
- }
4149
- }
4150
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
4151
- memo = callbackfn(memo, self[index], index, O);
4152
- }
4153
- return memo;
4154
- };
4155
- };
4156
-
4157
- var arrayReduce = {
4158
- // `Array.prototype.reduce` method
4159
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
4160
- left: createMethod(false),
4161
- // `Array.prototype.reduceRight` method
4162
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
4163
- right: createMethod(true)
4164
- };
4165
-
4166
- var classof$1 = classofRaw$1;
4167
- var global$4 = global$j;
4168
-
4169
- var engineIsNode = classof$1(global$4.process) == 'process';
4170
-
4171
- 'use strict';
4172
- var $$a = _export;
4173
- var $reduce = arrayReduce.left;
4174
- var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;
4175
- var CHROME_VERSION = engineV8Version;
4176
- var IS_NODE = engineIsNode;
4177
-
4178
- var STRICT_METHOD$1 = arrayMethodIsStrict$1('reduce');
4179
- // Chrome 80-82 has a critical bug
4180
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
4181
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
4182
-
4183
- // `Array.prototype.reduce` method
4184
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
4185
- $$a({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 || CHROME_BUG }, {
4186
- reduce: function reduce(callbackfn /* , initialValue */) {
4187
- return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
4188
- }
4189
- });
4190
-
4191
4215
  var es_array_find = {};
4192
4216
 
4193
4217
  var wellKnownSymbol$5 = wellKnownSymbol$n;
@@ -4235,7 +4259,8 @@ addToUnscopables$2(FIND);
4235
4259
 
4236
4260
  var es_regexp_constructor = {};
4237
4261
 
4238
- var isObject$2 = isObject$f;
4262
+ var isCallable$3 = isCallable$l;
4263
+ var isObject$2 = isObject$e;
4239
4264
  var setPrototypeOf = objectSetPrototypeOf;
4240
4265
 
4241
4266
  // makes subclassing work correct for wrapped built-ins
@@ -4245,7 +4270,7 @@ var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
4245
4270
  // it can work only with native `setPrototypeOf`
4246
4271
  setPrototypeOf &&
4247
4272
  // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
4248
- typeof (NewTarget = dummy.constructor) == 'function' &&
4273
+ isCallable$3(NewTarget = dummy.constructor) &&
4249
4274
  NewTarget !== Wrapper &&
4250
4275
  isObject$2(NewTargetPrototype = NewTarget.prototype) &&
4251
4276
  NewTargetPrototype !== Wrapper.prototype
@@ -4254,12 +4279,12 @@ var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
4254
4279
  };
4255
4280
 
4256
4281
  'use strict';
4257
- var anObject$3 = anObject$c;
4282
+ var anObject$4 = anObject$e;
4258
4283
 
4259
4284
  // `RegExp.prototype.flags` getter implementation
4260
4285
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
4261
4286
  var regexpFlags$1 = function () {
4262
- var that = anObject$3(this);
4287
+ var that = anObject$4(this);
4263
4288
  var result = '';
4264
4289
  if (that.global) result += 'g';
4265
4290
  if (that.ignoreCase) result += 'i';
@@ -4272,28 +4297,27 @@ var regexpFlags$1 = function () {
4272
4297
 
4273
4298
  var regexpStickyHelpers = {};
4274
4299
 
4275
- var fails$b = fails$o;
4300
+ var fails$b = fails$p;
4301
+ var global$6 = global$k;
4276
4302
 
4277
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
4278
- var RE = function (s, f) {
4279
- return RegExp(s, f);
4280
- };
4303
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
4304
+ var $RegExp$2 = global$6.RegExp;
4281
4305
 
4282
4306
  var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y = fails$b(function () {
4283
- var re = RE('a', 'y');
4307
+ var re = $RegExp$2('a', 'y');
4284
4308
  re.lastIndex = 2;
4285
4309
  return re.exec('abcd') != null;
4286
4310
  });
4287
4311
 
4288
4312
  var BROKEN_CARET = regexpStickyHelpers.BROKEN_CARET = fails$b(function () {
4289
4313
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
4290
- var re = RE('^r', 'gy');
4314
+ var re = $RegExp$2('^r', 'gy');
4291
4315
  re.lastIndex = 2;
4292
4316
  return re.exec('str') != null;
4293
4317
  });
4294
4318
 
4295
4319
  'use strict';
4296
- var getBuiltIn = getBuiltIn$6;
4320
+ var getBuiltIn = getBuiltIn$7;
4297
4321
  var definePropertyModule = objectDefineProperty;
4298
4322
  var wellKnownSymbol$4 = wellKnownSymbol$n;
4299
4323
  var DESCRIPTORS$3 = descriptors;
@@ -4312,37 +4336,43 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
4312
4336
  }
4313
4337
  };
4314
4338
 
4315
- var fails$a = fails$o;
4339
+ var fails$a = fails$p;
4340
+ var global$5 = global$k;
4341
+
4342
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
4343
+ var $RegExp$1 = global$5.RegExp;
4316
4344
 
4317
4345
  var regexpUnsupportedDotAll = fails$a(function () {
4318
- // babel-minify transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
4319
- var re = RegExp('.', (typeof '').charAt(0));
4346
+ var re = $RegExp$1('.', 's');
4320
4347
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
4321
4348
  });
4322
4349
 
4323
- var fails$9 = fails$o;
4350
+ var fails$9 = fails$p;
4351
+ var global$4 = global$k;
4352
+
4353
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
4354
+ var $RegExp = global$4.RegExp;
4324
4355
 
4325
4356
  var regexpUnsupportedNcg = fails$9(function () {
4326
- // babel-minify transpiles RegExp('.', 'g') -> /./g and it causes SyntaxError
4327
- var re = RegExp('(?<a>b)', (typeof '').charAt(5));
4357
+ var re = $RegExp('(?<a>b)', 'g');
4328
4358
  return re.exec('b').groups.a !== 'b' ||
4329
4359
  'b'.replace(re, '$<a>c') !== 'bc';
4330
4360
  });
4331
4361
 
4332
4362
  var DESCRIPTORS$2 = descriptors;
4333
- var global$3 = global$j;
4363
+ var global$3 = global$k;
4334
4364
  var isForced$1 = isForced_1;
4335
4365
  var inheritIfRequired$1 = inheritIfRequired$2;
4336
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$9;
4366
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$7;
4337
4367
  var defineProperty$3 = objectDefineProperty.f;
4338
4368
  var getOwnPropertyNames = objectGetOwnPropertyNames.f;
4339
4369
  var isRegExp = isRegexp;
4340
- var toString$3 = toString$c;
4370
+ var toString$4 = toString$b;
4341
4371
  var getFlags = regexpFlags$1;
4342
4372
  var stickyHelpers$1 = regexpStickyHelpers;
4343
- var redefine$4 = redefine$a.exports;
4344
- var fails$8 = fails$o;
4345
- var has$1 = has$e;
4373
+ var redefine$4 = redefine$b.exports;
4374
+ var fails$8 = fails$p;
4375
+ var hasOwn$1 = hasOwnProperty_1;
4346
4376
  var enforceInternalState = internalState.enforce;
4347
4377
  var setSpecies$1 = setSpecies$2;
4348
4378
  var wellKnownSymbol$3 = wellKnownSymbol$n;
@@ -4423,7 +4453,7 @@ var handleNCG = function (string) {
4423
4453
  groupid++;
4424
4454
  continue;
4425
4455
  case chr === '>' && ncg:
4426
- if (groupname === '' || has$1(names, groupname)) {
4456
+ if (groupname === '' || hasOwn$1(names, groupname)) {
4427
4457
  throw new SyntaxError('Invalid capture group name');
4428
4458
  }
4429
4459
  names[groupname] = true;
@@ -4457,8 +4487,8 @@ if (isForced$1('RegExp', BASE_FORCED)) {
4457
4487
  if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags.call(rawPattern);
4458
4488
  }
4459
4489
 
4460
- pattern = pattern === undefined ? '' : toString$3(pattern);
4461
- flags = flags === undefined ? '' : toString$3(flags);
4490
+ pattern = pattern === undefined ? '' : toString$4(pattern);
4491
+ flags = flags === undefined ? '' : toString$4(flags);
4462
4492
  rawPattern = pattern;
4463
4493
 
4464
4494
  if (UNSUPPORTED_DOT_ALL$1 && 'dotAll' in re1) {
@@ -4522,9 +4552,9 @@ setSpecies$1('RegExp');
4522
4552
  var es_regexp_exec = {};
4523
4553
 
4524
4554
  'use strict';
4525
- /* eslint-disable regexp/no-assertion-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
4555
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
4526
4556
  /* eslint-disable regexp/no-useless-quantifier -- testing */
4527
- var toString$2 = toString$c;
4557
+ var toString$3 = toString$b;
4528
4558
  var regexpFlags = regexpFlags$1;
4529
4559
  var stickyHelpers = regexpStickyHelpers;
4530
4560
  var shared = shared$6.exports;
@@ -4558,7 +4588,7 @@ if (PATCH) {
4558
4588
  patchedExec = function exec(string) {
4559
4589
  var re = this;
4560
4590
  var state = getInternalState$1(re);
4561
- var str = toString$2(string);
4591
+ var str = toString$3(string);
4562
4592
  var raw = state.raw;
4563
4593
  var result, reCopy, lastIndex, match, i, object, group;
4564
4594
 
@@ -4648,10 +4678,11 @@ $$8({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
4648
4678
  var es_regexp_toString = {};
4649
4679
 
4650
4680
  'use strict';
4651
- var redefine$3 = redefine$a.exports;
4652
- var anObject$2 = anObject$c;
4653
- var $toString = toString$c;
4654
- var fails$7 = fails$o;
4681
+ var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
4682
+ var redefine$3 = redefine$b.exports;
4683
+ var anObject$3 = anObject$e;
4684
+ var $toString = toString$b;
4685
+ var fails$7 = fails$p;
4655
4686
  var flags = regexpFlags$1;
4656
4687
 
4657
4688
  var TO_STRING = 'toString';
@@ -4660,13 +4691,13 @@ var nativeToString = RegExpPrototype$1[TO_STRING];
4660
4691
 
4661
4692
  var NOT_GENERIC = fails$7(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
4662
4693
  // FF44- RegExp#toString has a wrong name
4663
- var INCORRECT_NAME = nativeToString.name != TO_STRING;
4694
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name != TO_STRING;
4664
4695
 
4665
4696
  // `RegExp.prototype.toString` method
4666
4697
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
4667
4698
  if (NOT_GENERIC || INCORRECT_NAME) {
4668
4699
  redefine$3(RegExp.prototype, TO_STRING, function toString() {
4669
- var R = anObject$2(this);
4700
+ var R = anObject$3(this);
4670
4701
  var p = $toString(R.source);
4671
4702
  var rf = R.flags;
4672
4703
  var f = $toString(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype$1) ? flags.call(R) : rf);
@@ -4679,11 +4710,11 @@ var es_string_replace = {};
4679
4710
  'use strict';
4680
4711
  // TODO: Remove from `core-js@4` since it's moved to entry points
4681
4712
 
4682
- var redefine$2 = redefine$a.exports;
4713
+ var redefine$2 = redefine$b.exports;
4683
4714
  var regexpExec$1 = regexpExec$2;
4684
- var fails$6 = fails$o;
4715
+ var fails$6 = fails$p;
4685
4716
  var wellKnownSymbol$2 = wellKnownSymbol$n;
4686
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$9;
4717
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$7;
4687
4718
 
4688
4719
  var SPECIES = wellKnownSymbol$2('species');
4689
4720
  var RegExpPrototype = RegExp.prototype;
@@ -4758,7 +4789,7 @@ var advanceStringIndex$1 = function (S, index, unicode) {
4758
4789
  return index + (unicode ? charAt(S, index).length : 1);
4759
4790
  };
4760
4791
 
4761
- var toObject$2 = toObject$b;
4792
+ var toObject$2 = toObject$a;
4762
4793
 
4763
4794
  var floor$1 = Math.floor;
4764
4795
  var replace = ''.replace;
@@ -4800,6 +4831,8 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
4800
4831
  });
4801
4832
  };
4802
4833
 
4834
+ var anObject$2 = anObject$e;
4835
+ var isCallable$2 = isCallable$l;
4803
4836
  var classof = classofRaw$1;
4804
4837
  var regexpExec = regexpExec$2;
4805
4838
 
@@ -4807,30 +4840,26 @@ var regexpExec = regexpExec$2;
4807
4840
  // https://tc39.es/ecma262/#sec-regexpexec
4808
4841
  var regexpExecAbstract = function (R, S) {
4809
4842
  var exec = R.exec;
4810
- if (typeof exec === 'function') {
4843
+ if (isCallable$2(exec)) {
4811
4844
  var result = exec.call(R, S);
4812
- if (typeof result !== 'object') {
4813
- throw TypeError('RegExp exec method returned something other than an Object or null');
4814
- }
4845
+ if (result !== null) anObject$2(result);
4815
4846
  return result;
4816
4847
  }
4817
-
4818
- if (classof(R) !== 'RegExp') {
4819
- throw TypeError('RegExp#exec called on incompatible receiver');
4820
- }
4821
-
4822
- return regexpExec.call(R, S);
4848
+ if (classof(R) === 'RegExp') return regexpExec.call(R, S);
4849
+ throw TypeError('RegExp#exec called on incompatible receiver');
4823
4850
  };
4824
4851
 
4825
4852
  'use strict';
4826
4853
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
4827
- var fails$5 = fails$o;
4828
- var anObject$1 = anObject$c;
4829
- var toInteger = toInteger$5;
4830
- var toLength$2 = toLength$b;
4831
- var toString$1 = toString$c;
4832
- var requireObjectCoercible = requireObjectCoercible$7;
4854
+ var fails$5 = fails$p;
4855
+ var anObject$1 = anObject$e;
4856
+ var isCallable$1 = isCallable$l;
4857
+ var toIntegerOrInfinity = toIntegerOrInfinity$5;
4858
+ var toLength = toLength$3;
4859
+ var toString$2 = toString$b;
4860
+ var requireObjectCoercible$1 = requireObjectCoercible$7;
4833
4861
  var advanceStringIndex = advanceStringIndex$1;
4862
+ var getMethod = getMethod$4;
4834
4863
  var getSubstitution = getSubstitution$1;
4835
4864
  var regExpExec = regexpExecAbstract;
4836
4865
  var wellKnownSymbol$1 = wellKnownSymbol$n;
@@ -4865,6 +4894,7 @@ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$5(function () {
4865
4894
  result.groups = { a: '7' };
4866
4895
  return result;
4867
4896
  };
4897
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
4868
4898
  return ''.replace(re, '$<a>') !== '7';
4869
4899
  });
4870
4900
 
@@ -4876,17 +4906,17 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
4876
4906
  // `String.prototype.replace` method
4877
4907
  // https://tc39.es/ecma262/#sec-string.prototype.replace
4878
4908
  function replace(searchValue, replaceValue) {
4879
- var O = requireObjectCoercible(this);
4880
- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
4881
- return replacer !== undefined
4909
+ var O = requireObjectCoercible$1(this);
4910
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
4911
+ return replacer
4882
4912
  ? replacer.call(searchValue, O, replaceValue)
4883
- : nativeReplace.call(toString$1(O), searchValue, replaceValue);
4913
+ : nativeReplace.call(toString$2(O), searchValue, replaceValue);
4884
4914
  },
4885
4915
  // `RegExp.prototype[@@replace]` method
4886
4916
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
4887
4917
  function (string, replaceValue) {
4888
4918
  var rx = anObject$1(this);
4889
- var S = toString$1(string);
4919
+ var S = toString$2(string);
4890
4920
 
4891
4921
  if (
4892
4922
  typeof replaceValue === 'string' &&
@@ -4897,8 +4927,8 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
4897
4927
  if (res.done) return res.value;
4898
4928
  }
4899
4929
 
4900
- var functionalReplace = typeof replaceValue === 'function';
4901
- if (!functionalReplace) replaceValue = toString$1(replaceValue);
4930
+ var functionalReplace = isCallable$1(replaceValue);
4931
+ if (!functionalReplace) replaceValue = toString$2(replaceValue);
4902
4932
 
4903
4933
  var global = rx.global;
4904
4934
  if (global) {
@@ -4913,8 +4943,8 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
4913
4943
  results.push(result);
4914
4944
  if (!global) break;
4915
4945
 
4916
- var matchStr = toString$1(result[0]);
4917
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$2(rx.lastIndex), fullUnicode);
4946
+ var matchStr = toString$2(result[0]);
4947
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
4918
4948
  }
4919
4949
 
4920
4950
  var accumulatedResult = '';
@@ -4922,8 +4952,8 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
4922
4952
  for (var i = 0; i < results.length; i++) {
4923
4953
  result = results[i];
4924
4954
 
4925
- var matched = toString$1(result[0]);
4926
- var position = max(min(toInteger(result.index), S.length), 0);
4955
+ var matched = toString$2(result[0]);
4956
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
4927
4957
  var captures = [];
4928
4958
  // NOTE: This is equivalent to
4929
4959
  // captures = result.slice(1).map(maybeToString)
@@ -4935,7 +4965,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
4935
4965
  if (functionalReplace) {
4936
4966
  var replacerArgs = [matched].concat(captures, position, S);
4937
4967
  if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
4938
- var replacement = toString$1(replaceValue.apply(undefined, replacerArgs));
4968
+ var replacement = toString$2(replaceValue.apply(undefined, replacerArgs));
4939
4969
  } else {
4940
4970
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
4941
4971
  }
@@ -5045,7 +5075,7 @@ var defaultOptions$1 = {
5045
5075
  Emits the following events:
5046
5076
  ---------------------------
5047
5077
 
5048
- 'itemfocus' {value, item}: item gained focus.
5078
+ 'itemfocus' {value, item, event}: item gained focus.
5049
5079
  'itemblur' {value, item}: item lost focus.
5050
5080
  'select' {value, item}: item was selected (in single mode).
5051
5081
  'show:before': the drop list will show.
@@ -5090,12 +5120,14 @@ var DropList = /*#__PURE__*/function () {
5090
5120
  valueProp: o.valueProp,
5091
5121
  renderItem: o.renderItem,
5092
5122
  unrenderItem: o.unrenderItem,
5093
- on: o.on,
5123
+ on: o.on || null,
5124
+ silenceEvents: true,
5125
+ mitt: mitt__default["default"](),
5094
5126
 
5095
5127
  focusItemIndex: -1,
5096
5128
  focusItemEl: null,
5097
5129
 
5098
- sink: new DomEventsSink__default['default']() };
5130
+ sink: new DomEventsSink__default["default"]() };
5099
5131
 
5100
5132
 
5101
5133
  var classes = [p.baseClassName];
@@ -5132,7 +5164,7 @@ var DropList = /*#__PURE__*/function () {
5132
5164
 
5133
5165
  p.mouseHandled = false;
5134
5166
 
5135
- p.virtualListHelper = new VirtualListHelper__default['default']({
5167
+ p.virtualListHelper = new VirtualListHelper__default["default"]({
5136
5168
  list: p.el,
5137
5169
  virtual: true,
5138
5170
  buffer: 5,
@@ -5229,6 +5261,8 @@ var DropList = /*#__PURE__*/function () {
5229
5261
  this._hookTouchEvents();
5230
5262
  this._hookFocusEvents();
5231
5263
  this._hookKeyEvents();
5264
+
5265
+ this.silenceEvents = false;
5232
5266
  }_createClass(DropList, [{ key: "destroy", value:
5233
5267
 
5234
5268
  function destroy() {
@@ -6053,7 +6087,7 @@ var DropList = /*#__PURE__*/function () {
6053
6087
  el.classList.add("".concat(p.baseClassName, "__is-hiding"));
6054
6088
 
6055
6089
  // support for hide transition in css
6056
- var maxTransitionDuration = parseCssTransition__default['default'](getComputedStyle(p.el).transition).
6090
+ var maxTransitionDuration = Css.parseTransition(getComputedStyle(p.el).transition).
6057
6091
  reduce(function (p, v) {return Math.max(p, v.delay + v.duration);}, 0);
6058
6092
 
6059
6093
  if (maxTransitionDuration > 0) {
@@ -6135,7 +6169,7 @@ var DropList = /*#__PURE__*/function () {
6135
6169
  itemElement.classList.add("".concat(p.baseClassName, "__item_focus"));
6136
6170
  p.focusItemEl = itemElement;
6137
6171
 
6138
- this._trigger('itemfocus', { value: itemElement[p.valueProp], item: itemElement[ItemSymbol$1] });
6172
+ this._trigger('itemfocus', { value: itemElement[p.valueProp], item: itemElement[ItemSymbol$1], event: null });
6139
6173
  }
6140
6174
  }
6141
6175
 
@@ -6236,6 +6270,58 @@ var DropList = /*#__PURE__*/function () {
6236
6270
  }
6237
6271
  }
6238
6272
 
6273
+ return this;
6274
+ }
6275
+
6276
+ /**
6277
+ * Register an event handler
6278
+ * @param {(string|'*')?} event
6279
+ * @param {function(any)} handler
6280
+ * @returns {DropList}
6281
+ */ }, { key: "on", value:
6282
+ function on( /**string|'*'*/event, /**Function?*/handler) {
6283
+ this._p.mitt.on(event, handler);
6284
+ return this;
6285
+ }
6286
+
6287
+ /**
6288
+ * Register a one time event handler
6289
+ * @param {(string|'*')?} event
6290
+ * @param {function(any)} handler
6291
+ * @returns {DropList}
6292
+ */ }, { key: "once", value:
6293
+ function once( /**string|'*'*/event, /**Function?*/handler) {var _this4 = this;
6294
+ var wrapped = function wrapped(value) {
6295
+ _this4._p.mitt.off(event, wrapped);
6296
+ handler(value);
6297
+ };
6298
+ this._p.mitt.on(event, wrapped);
6299
+ return this;
6300
+ }
6301
+
6302
+ /**
6303
+ * Remove an `handler` for `event`, all events for `event`, or all events completely.
6304
+ * @param {(string|'*')?} event
6305
+ * @param {function(any)} handler
6306
+ * @returns {DropList}
6307
+ */ }, { key: "off", value:
6308
+ function off( /**(string|'*')?*/event, /**Function?*/handler) {
6309
+ if (!event && !event) {
6310
+ this._p.mitt.all.clear();
6311
+ } else {
6312
+ this._p.mitt.off(event, handler);
6313
+ }
6314
+ return this;
6315
+ }
6316
+
6317
+ /**
6318
+ * Emit an event
6319
+ * @param {string} event
6320
+ * @param {any} value
6321
+ * @returns {DropList}
6322
+ */ }, { key: "emit", value:
6323
+ function emit( /**string|'*'*/event, /**any?*/value) {
6324
+ this._p.mitt.emit(event, value);
6239
6325
  return this;
6240
6326
  } }, { key: "_getItemIndex", value:
6241
6327
 
@@ -6281,9 +6367,10 @@ var DropList = /*#__PURE__*/function () {
6281
6367
  var p = this._p;
6282
6368
  if (p.on)
6283
6369
  p.on.apply(p, [event].concat(_toConsumableArray(data === undefined ? [] : [data])));
6370
+ p.mitt.emit(event, data);
6284
6371
  } }, { key: "_itemUpAction", value:
6285
6372
 
6286
- function _itemUpAction(event, itemEl) {var _this4 = this;
6373
+ function _itemUpAction(event, itemEl) {var _this5 = this;
6287
6374
  if (Dom.closestUntil(event.target, '.requires-pointer-events,button', itemEl)) return;
6288
6375
 
6289
6376
  var p = this._p;
@@ -6303,12 +6390,12 @@ var DropList = /*#__PURE__*/function () {
6303
6390
  }
6304
6391
 
6305
6392
  setTimeout(function () {
6306
- _this4._mouseHandled = false;
6393
+ _this5._mouseHandled = false;
6307
6394
  }, 0);
6308
6395
  }
6309
6396
  } }, { key: "_hookMouseEvents", value:
6310
6397
 
6311
- function _hookMouseEvents() {var _this5 = this;
6398
+ function _hookMouseEvents() {var _this6 = this;
6312
6399
  var p = this._p;
6313
6400
 
6314
6401
  p.sink.
@@ -6324,13 +6411,13 @@ var DropList = /*#__PURE__*/function () {
6324
6411
 
6325
6412
  if (event.button !== 0) return;
6326
6413
 
6327
- _this5._itemUpAction(event, li);
6414
+ _this6._itemUpAction(event, li);
6328
6415
  }).
6329
6416
  add(p.el, 'mouseover', function (event) {
6330
6417
  var li = Dom.closestUntil(event.target, 'li', event.currentTarget);
6331
6418
  if (!li) return;
6332
6419
 
6333
- _this5._handleMouseOver(event, li);
6420
+ _this6._handleMouseOver(event, li);
6334
6421
  });
6335
6422
  } }, { key: "_handleMouseOver", value:
6336
6423
 
@@ -6338,7 +6425,7 @@ var DropList = /*#__PURE__*/function () {
6338
6425
  this._focus(event, itemEl);
6339
6426
  } }, { key: "_hookTouchEvents", value:
6340
6427
 
6341
- function _hookTouchEvents() {var _this6 = this;
6428
+ function _hookTouchEvents() {var _this7 = this;
6342
6429
  var p = this._p;
6343
6430
 
6344
6431
  var currentTouchId;
@@ -6353,7 +6440,7 @@ var DropList = /*#__PURE__*/function () {
6353
6440
  currentTouchId = event.changedTouches[0].identifier;
6354
6441
 
6355
6442
  // Simulate mouseover event
6356
- _this6._handleMouseOver(event, li);
6443
+ _this7._handleMouseOver(event, li);
6357
6444
 
6358
6445
  // Track scrolling
6359
6446
  var didScroll = false;
@@ -6384,14 +6471,14 @@ var DropList = /*#__PURE__*/function () {
6384
6471
  onTouchCancel();
6385
6472
 
6386
6473
  if (!didScroll) {
6387
- _this6._itemUpAction(event, li);
6474
+ _this7._itemUpAction(event, li);
6388
6475
  event.preventDefault();
6389
6476
  }
6390
6477
  });
6391
6478
  });
6392
6479
  } }, { key: "_hookFocusEvents", value:
6393
6480
 
6394
- function _hookFocusEvents() {var _this7 = this;
6481
+ function _hookFocusEvents() {var _this8 = this;
6395
6482
  var p = this._p;
6396
6483
 
6397
6484
  p.sink.
@@ -6399,24 +6486,24 @@ var DropList = /*#__PURE__*/function () {
6399
6486
  var itemEl = p.focusItemEl || // focused item
6400
6487
  p.el.firstChild; // or the first item
6401
6488
 
6402
- _this7._focus(event, itemEl);
6489
+ _this8._focus(event, itemEl);
6403
6490
  }).
6404
6491
  add(p.el, 'blur', function () {
6405
6492
  setTimeout(function () {
6406
- if (_this7[DestroyedSymbol$1]) return;
6493
+ if (_this8[DestroyedSymbol$1]) return;
6407
6494
 
6408
6495
  if (!p.el.contains(document.activeElement)) {
6409
- _this7._delayBlur();
6496
+ _this8._delayBlur();
6410
6497
  }
6411
6498
  });
6412
6499
  });
6413
6500
  } }, { key: "_hookKeyEvents", value:
6414
6501
 
6415
- function _hookKeyEvents() {var _this8 = this;
6502
+ function _hookKeyEvents() {var _this9 = this;
6416
6503
  var p = this._p;
6417
6504
 
6418
- p.sink.add(p.el, 'keydown', function (evt) {return _this8._keydown(evt);});
6419
- p.sink.add(p.el, 'keypress', function (evt) {return _this8._keydown(evt);});
6505
+ p.sink.add(p.el, 'keydown', function (evt) {return _this9._keydown(evt);});
6506
+ p.sink.add(p.el, 'keypress', function (evt) {return _this9._keydown(evt);});
6420
6507
  } }, { key: "_keydown", value:
6421
6508
 
6422
6509
  function _keydown(event) {
@@ -6584,7 +6671,7 @@ var DropList = /*#__PURE__*/function () {
6584
6671
  p.focusItemIndex = itemIndex;
6585
6672
 
6586
6673
  var item = p.items[itemIndex];
6587
- this._trigger('itemfocus', { value: item[p.valueProp], item: item });
6674
+ this._trigger('itemfocus', { value: item[p.valueProp], item: item, event: event });
6588
6675
  }
6589
6676
  } else {
6590
6677
  // This could happen if trying to focus a grouped item
@@ -6592,7 +6679,7 @@ var DropList = /*#__PURE__*/function () {
6592
6679
  }
6593
6680
  } }, { key: "_delayBlur", value:
6594
6681
 
6595
- function _delayBlur() {var _this9 = this;
6682
+ function _delayBlur() {var _this10 = this;
6596
6683
  if (this[DestroyedSymbol$1])
6597
6684
  return;
6598
6685
 
@@ -6601,8 +6688,8 @@ var DropList = /*#__PURE__*/function () {
6601
6688
  clearTimeout(p.timer);
6602
6689
 
6603
6690
  p.timer = setTimeout(function () {
6604
- if (_this9[DestroyedSymbol$1]) return;
6605
- _this9.blurFocusedItem();
6691
+ if (_this10[DestroyedSymbol$1]) return;
6692
+ _this10.blurFocusedItem();
6606
6693
  }, p.itemBlurDelay);
6607
6694
  } }, { key: "_move", value:
6608
6695
 
@@ -7045,7 +7132,7 @@ addToUnscopables$1('entries');
7045
7132
 
7046
7133
  var internalMetadata$1 = {exports: {}};
7047
7134
 
7048
- var fails$4 = fails$o;
7135
+ var fails$4 = fails$p;
7049
7136
 
7050
7137
  var freezing = !fails$4(function () {
7051
7138
  // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
@@ -7054,8 +7141,8 @@ var freezing = !fails$4(function () {
7054
7141
 
7055
7142
  var $$7 = _export;
7056
7143
  var hiddenKeys = hiddenKeys$6;
7057
- var isObject$1 = isObject$f;
7058
- var has = has$e;
7144
+ var isObject$1 = isObject$e;
7145
+ var hasOwn = hasOwnProperty_1;
7059
7146
  var defineProperty$2 = objectDefineProperty.f;
7060
7147
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
7061
7148
  var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
@@ -7081,7 +7168,7 @@ var setMetadata = function (it) {
7081
7168
  var fastKey$1 = function (it, create) {
7082
7169
  // return a primitive with prefix
7083
7170
  if (!isObject$1(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
7084
- if (!has(it, METADATA)) {
7171
+ if (!hasOwn(it, METADATA)) {
7085
7172
  // can't set metadata to uncaught frozen object
7086
7173
  if (!isExtensible(it)) return 'F';
7087
7174
  // not necessary to add metadata
@@ -7093,7 +7180,7 @@ var fastKey$1 = function (it, create) {
7093
7180
  };
7094
7181
 
7095
7182
  var getWeakData = function (it, create) {
7096
- if (!has(it, METADATA)) {
7183
+ if (!hasOwn(it, METADATA)) {
7097
7184
  // can't set metadata to uncaught frozen object
7098
7185
  if (!isExtensible(it)) return true;
7099
7186
  // not necessary to add metadata
@@ -7106,7 +7193,7 @@ var getWeakData = function (it, create) {
7106
7193
 
7107
7194
  // add metadata on freeze-family methods calling
7108
7195
  var onFreeze = function (it) {
7109
- if (FREEZING && REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);
7196
+ if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);
7110
7197
  return it;
7111
7198
  };
7112
7199
 
@@ -7147,11 +7234,12 @@ hiddenKeys[METADATA] = true;
7147
7234
 
7148
7235
  var internalMetadata = internalMetadata$1.exports;
7149
7236
 
7150
- var anObject = anObject$c;
7237
+ var anObject = anObject$e;
7151
7238
  var isArrayIteratorMethod = isArrayIteratorMethod$2;
7152
- var toLength$1 = toLength$b;
7239
+ var lengthOfArrayLike$1 = lengthOfArrayLike$8;
7153
7240
  var bind$1 = functionBindContext;
7154
- var getIteratorMethod = getIteratorMethod$2;
7241
+ var getIterator = getIterator$2;
7242
+ var getIteratorMethod = getIteratorMethod$3;
7155
7243
  var iteratorClose = iteratorClose$2;
7156
7244
 
7157
7245
  var Result = function (stopped, result) {
@@ -7168,7 +7256,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
7168
7256
  var iterator, iterFn, index, length, result, next, step;
7169
7257
 
7170
7258
  var stop = function (condition) {
7171
- if (iterator) iteratorClose(iterator);
7259
+ if (iterator) iteratorClose(iterator, 'normal', condition);
7172
7260
  return new Result(true, condition);
7173
7261
  };
7174
7262
 
@@ -7183,15 +7271,15 @@ var iterate$2 = function (iterable, unboundFunction, options) {
7183
7271
  iterator = iterable;
7184
7272
  } else {
7185
7273
  iterFn = getIteratorMethod(iterable);
7186
- if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
7274
+ if (!iterFn) throw TypeError(String(iterable) + ' is not iterable');
7187
7275
  // optimisation for array iterators
7188
7276
  if (isArrayIteratorMethod(iterFn)) {
7189
- for (index = 0, length = toLength$1(iterable.length); length > index; index++) {
7277
+ for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
7190
7278
  result = callFn(iterable[index]);
7191
7279
  if (result && result instanceof Result) return result;
7192
7280
  } return new Result(false);
7193
7281
  }
7194
- iterator = iterFn.call(iterable);
7282
+ iterator = getIterator(iterable, iterFn);
7195
7283
  }
7196
7284
 
7197
7285
  next = iterator.next;
@@ -7199,29 +7287,28 @@ var iterate$2 = function (iterable, unboundFunction, options) {
7199
7287
  try {
7200
7288
  result = callFn(step.value);
7201
7289
  } catch (error) {
7202
- iteratorClose(iterator);
7203
- throw error;
7290
+ iteratorClose(iterator, 'throw', error);
7204
7291
  }
7205
7292
  if (typeof result == 'object' && result && result instanceof Result) return result;
7206
7293
  } return new Result(false);
7207
7294
  };
7208
7295
 
7209
7296
  var anInstance$2 = function (it, Constructor, name) {
7210
- if (!(it instanceof Constructor)) {
7211
- throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
7212
- } return it;
7297
+ if (it instanceof Constructor) return it;
7298
+ throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
7213
7299
  };
7214
7300
 
7215
7301
  'use strict';
7216
7302
  var $$6 = _export;
7217
- var global$2 = global$j;
7303
+ var global$2 = global$k;
7218
7304
  var isForced = isForced_1;
7219
- var redefine$1 = redefine$a.exports;
7305
+ var redefine$1 = redefine$b.exports;
7220
7306
  var InternalMetadataModule = internalMetadata$1.exports;
7221
7307
  var iterate$1 = iterate$2;
7222
7308
  var anInstance$1 = anInstance$2;
7223
- var isObject = isObject$f;
7224
- var fails$3 = fails$o;
7309
+ var isCallable = isCallable$l;
7310
+ var isObject = isObject$e;
7311
+ var fails$3 = fails$p;
7225
7312
  var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
7226
7313
  var setToStringTag = setToStringTag$4;
7227
7314
  var inheritIfRequired = inheritIfRequired$2;
@@ -7256,7 +7343,7 @@ var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) {
7256
7343
 
7257
7344
  var REPLACE = isForced(
7258
7345
  CONSTRUCTOR_NAME,
7259
- typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails$3(function () {
7346
+ !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$3(function () {
7260
7347
  new NativeConstructor().entries().next();
7261
7348
  }))
7262
7349
  );
@@ -7316,7 +7403,7 @@ var collection$1 = function (CONSTRUCTOR_NAME, wrapper, common) {
7316
7403
  return Constructor;
7317
7404
  };
7318
7405
 
7319
- var redefine = redefine$a.exports;
7406
+ var redefine = redefine$b.exports;
7320
7407
 
7321
7408
  var redefineAll$1 = function (target, src, options) {
7322
7409
  for (var key in src) redefine(target, key, src[key], options);
@@ -7574,19 +7661,26 @@ var domIterables = {
7574
7661
  TouchList: 0
7575
7662
  };
7576
7663
 
7577
- var global$1 = global$j;
7664
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
7665
+ var documentCreateElement = documentCreateElement$2;
7666
+
7667
+ var classList = documentCreateElement('span').classList;
7668
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
7669
+
7670
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
7671
+
7672
+ var global$1 = global$k;
7578
7673
  var DOMIterables = domIterables;
7674
+ var DOMTokenListPrototype = domTokenListPrototype;
7579
7675
  var ArrayIteratorMethods = es_array_iterator;
7580
- var createNonEnumerableProperty = createNonEnumerableProperty$9;
7676
+ var createNonEnumerableProperty = createNonEnumerableProperty$7;
7581
7677
  var wellKnownSymbol = wellKnownSymbol$n;
7582
7678
 
7583
7679
  var ITERATOR = wellKnownSymbol('iterator');
7584
7680
  var TO_STRING_TAG = wellKnownSymbol('toStringTag');
7585
7681
  var ArrayValues = ArrayIteratorMethods.values;
7586
7682
 
7587
- for (var COLLECTION_NAME in DOMIterables) {
7588
- var Collection = global$1[COLLECTION_NAME];
7589
- var CollectionPrototype = Collection && Collection.prototype;
7683
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
7590
7684
  if (CollectionPrototype) {
7591
7685
  // some Chrome versions have non-configurable methods on DOMTokenList
7592
7686
  if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
@@ -7606,17 +7700,23 @@ for (var COLLECTION_NAME in DOMIterables) {
7606
7700
  }
7607
7701
  }
7608
7702
  }
7703
+ };
7704
+
7705
+ for (var COLLECTION_NAME in DOMIterables) {
7706
+ handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
7609
7707
  }
7610
7708
 
7709
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
7710
+
7611
7711
  var es_object_assign = {};
7612
7712
 
7613
7713
  'use strict';
7614
7714
  var DESCRIPTORS = descriptors;
7615
- var fails$2 = fails$o;
7715
+ var fails$2 = fails$p;
7616
7716
  var objectKeys = objectKeys$4;
7617
7717
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
7618
7718
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
7619
- var toObject$1 = toObject$b;
7719
+ var toObject$1 = toObject$a;
7620
7720
  var IndexedObject = indexedObject;
7621
7721
 
7622
7722
  // eslint-disable-next-line es/no-object-assign -- safe
@@ -7677,8 +7777,43 @@ $$5({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
7677
7777
 
7678
7778
  var es_string_trim = {};
7679
7779
 
7680
- var fails$1 = fails$o;
7681
- var whitespaces = whitespaces$3;
7780
+ // a string of all valid unicode whitespaces
7781
+ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
7782
+ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
7783
+
7784
+ var requireObjectCoercible = requireObjectCoercible$7;
7785
+ var toString$1 = toString$b;
7786
+ var whitespaces$1 = whitespaces$2;
7787
+
7788
+ var whitespace = '[' + whitespaces$1 + ']';
7789
+ var ltrim = RegExp('^' + whitespace + whitespace + '*');
7790
+ var rtrim = RegExp(whitespace + whitespace + '*$');
7791
+
7792
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
7793
+ var createMethod = function (TYPE) {
7794
+ return function ($this) {
7795
+ var string = toString$1(requireObjectCoercible($this));
7796
+ if (TYPE & 1) string = string.replace(ltrim, '');
7797
+ if (TYPE & 2) string = string.replace(rtrim, '');
7798
+ return string;
7799
+ };
7800
+ };
7801
+
7802
+ var stringTrim = {
7803
+ // `String.prototype.{ trimLeft, trimStart }` methods
7804
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
7805
+ start: createMethod(1),
7806
+ // `String.prototype.{ trimRight, trimEnd }` methods
7807
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
7808
+ end: createMethod(2),
7809
+ // `String.prototype.trim` method
7810
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
7811
+ trim: createMethod(3)
7812
+ };
7813
+
7814
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
7815
+ var fails$1 = fails$p;
7816
+ var whitespaces = whitespaces$2;
7682
7817
 
7683
7818
  var non = '\u200B\u0085\u180E';
7684
7819
 
@@ -7686,7 +7821,9 @@ var non = '\u200B\u0085\u180E';
7686
7821
  // of whitespaces and has a correct name
7687
7822
  var stringTrimForced = function (METHOD_NAME) {
7688
7823
  return fails$1(function () {
7689
- return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
7824
+ return !!whitespaces[METHOD_NAME]()
7825
+ || non[METHOD_NAME]() !== non
7826
+ || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
7690
7827
  });
7691
7828
  };
7692
7829
 
@@ -7829,13 +7966,13 @@ var engineWebkitVersion = !!webkit && +webkit[1];
7829
7966
 
7830
7967
  'use strict';
7831
7968
  var $ = _export;
7832
- var aFunction = aFunction$3;
7833
- var toObject = toObject$b;
7834
- var toLength = toLength$b;
7835
- var toString = toString$c;
7836
- var fails = fails$o;
7969
+ var aCallable = aCallable$4;
7970
+ var toObject = toObject$a;
7971
+ var lengthOfArrayLike = lengthOfArrayLike$8;
7972
+ var toString = toString$b;
7973
+ var fails = fails$p;
7837
7974
  var internalSort = arraySort;
7838
- var arrayMethodIsStrict = arrayMethodIsStrict$4;
7975
+ var arrayMethodIsStrict = arrayMethodIsStrict$2;
7839
7976
  var FF = engineFfVersion;
7840
7977
  var IE_OR_EDGE = engineIsIeOrEdge;
7841
7978
  var V8 = engineV8Version;
@@ -7905,14 +8042,14 @@ var getSortCompare = function (comparefn) {
7905
8042
  // https://tc39.es/ecma262/#sec-array.prototype.sort
7906
8043
  $({ target: 'Array', proto: true, forced: FORCED }, {
7907
8044
  sort: function sort(comparefn) {
7908
- if (comparefn !== undefined) aFunction(comparefn);
8045
+ if (comparefn !== undefined) aCallable(comparefn);
7909
8046
 
7910
8047
  var array = toObject(this);
7911
8048
 
7912
8049
  if (STABLE_SORT) return comparefn === undefined ? nativeSort.call(array) : nativeSort.call(array, comparefn);
7913
8050
 
7914
8051
  var items = [];
7915
- var arrayLength = toLength(array.length);
8052
+ var arrayLength = lengthOfArrayLike(array);
7916
8053
  var itemsLength, index;
7917
8054
 
7918
8055
  for (index = 0; index < arrayLength; index++) {
@@ -8042,7 +8179,9 @@ var inputBackbufferCssProps = [
8042
8179
  * @property {string} [multiItemLabelProp='short_label']
8043
8180
  * @property {number} [maxMultiItems] maximum number of multi items. The rest will get a single item to represent.
8044
8181
  * @property {function(count: number, items: DropList.ItemBase[]):string} [multiItemsRestLabelProvider] label for the item representing the rest of the items.
8045
- * @property {DropList.ItemBase[]|null} [items]
8182
+ * @property {DropList.ItemBase[]|null} [items] initial items
8183
+ * @property {*[]|null} [selectedValues] initial selected values
8184
+ * @property {*|*[]|null} [value] initial selected value
8046
8185
  * @property {function(item: DropList.ItemBase, itemEl: Element):(*|false)} [renderSingleItem]
8047
8186
  * @property {function(item: DropList.ItemBase, itemEl: Element)} [unrenderSingleItem]
8048
8187
  * @property {function(item: DropList.ItemBase, itemEl: Element):(*|false)} [renderMultiItem]
@@ -8054,6 +8193,7 @@ var inputBackbufferCssProps = [
8054
8193
  * @property {function(items: DropList.ItemBase[], term: string):(DropList.ItemBase[]|null)} [filterFn]
8055
8194
  * @property {function(name: string, ...args)} [on]
8056
8195
  * @property {string|string[]} [additionalClasses]
8196
+ * @property {boolean} [isLoadingMode]
8057
8197
  * */
8058
8198
  var defaultOptions = {
8059
8199
  el: null,
@@ -8081,7 +8221,10 @@ var defaultOptions = {
8081
8221
  multiItemLabelProp: 'short_label',
8082
8222
  maxMultiItems: null,
8083
8223
  multiItemsRestLabelProvider: null,
8084
- items: [] };
8224
+ items: [],
8225
+ selectedValues: undefined,
8226
+ value: undefined,
8227
+ isLoadingMode: false };
8085
8228
 
8086
8229
 
8087
8230
  /**
@@ -8179,16 +8322,18 @@ var SelectBox = /*#__PURE__*/function () {
8179
8322
  renderNoResultsItem: o.renderNoResultsItem,
8180
8323
  unrenderNoResultsItem: o.unrenderNoResultsItem,
8181
8324
  filterFn: o.filterFn,
8182
- on: o.on,
8325
+ on: o.on || null,
8326
+ silenceEvents: true,
8327
+ mitt: mitt__default["default"](),
8183
8328
  additionalClasses: o.additionalClasses,
8184
8329
 
8185
- isLoadingMode: false,
8330
+ isLoadingMode: !!o.isLoadingMode,
8186
8331
 
8187
- items: o.items || [],
8332
+ items: [],
8188
8333
  filteredItems: null,
8189
8334
  itemsChanged: true,
8190
8335
 
8191
- sink: new DomEventsSink__default['default'](),
8336
+ sink: new DomEventsSink__default["default"](),
8192
8337
 
8193
8338
  selectedItems: [],
8194
8339
  selectedValues: [],
@@ -8278,10 +8423,18 @@ var SelectBox = /*#__PURE__*/function () {
8278
8423
  p.sink.add(window, 'resize', function () {return _this._resizeInput();});
8279
8424
  p.sink.add(window, 'orientationchange', function () {return _this._resizeInput();});
8280
8425
 
8281
- this.setItems(p.items);
8426
+ this.setItems(o.items);
8427
+
8428
+ if (o.multi && Array.isArray(o.selectedValues)) {
8429
+ this.setSelectedValues(o.selectedValues);
8430
+ } else if (o.value != null) {
8431
+ this.setValue(o.value);
8432
+ }
8282
8433
 
8283
8434
  this._scheduleSync();
8284
8435
 
8436
+ this.silenceEvents = false;
8437
+
8285
8438
  return this;
8286
8439
  }_createClass(SelectBox, [{ key: "destroy", value:
8287
8440
 
@@ -9246,13 +9399,22 @@ var SelectBox = /*#__PURE__*/function () {
9246
9399
  * @returns {SelectBox}
9247
9400
  */ }, { key: "toggleLoading", value:
9248
9401
  function toggleLoading(on) {
9402
+ return this.setIsLoadingMode(on === undefined ? !this.getIsLoadingMode() : !!on);
9403
+ }
9404
+
9405
+ /**
9406
+ * @param {boolean} isLoadingMode
9407
+ * @returns {SelectBox}
9408
+ */ }, { key: "setIsLoadingMode", value:
9409
+ function setIsLoadingMode(isLoadingMode) {
9249
9410
  var p = this._p;
9250
- var loading = on === undefined ? !this._p.isLoadingMode : !!on;
9251
9411
 
9252
- if (p.isLoadingMode === loading)
9412
+ isLoadingMode = isLoadingMode === undefined ? true : !!isLoadingMode;
9413
+
9414
+ if (p.isLoadingMode === isLoadingMode)
9253
9415
  return this;
9254
9416
 
9255
- p.isLoadingMode = loading;
9417
+ p.isLoadingMode = isLoadingMode;
9256
9418
 
9257
9419
  if (p.isLoadingMode && p.items.length === 0 && this.isListOpen()) {
9258
9420
  this.closeList();
@@ -9266,6 +9428,12 @@ var SelectBox = /*#__PURE__*/function () {
9266
9428
  return this;
9267
9429
  }
9268
9430
 
9431
+ /**
9432
+ * @returns {boolean}
9433
+ */ }, { key: "getIsLoadingMode", value:
9434
+ function getIsLoadingMode() {
9435
+ return this._p.isLoadingMode;
9436
+ }
9269
9437
 
9270
9438
  /**
9271
9439
  * Can be called in case that the selectbox was attached to the dom late and has a weird size.
@@ -9276,8 +9444,60 @@ var SelectBox = /*#__PURE__*/function () {
9276
9444
  return this;
9277
9445
  }
9278
9446
 
9447
+ /**
9448
+ * Register an event handler
9449
+ * @param {(string|'*')?} event
9450
+ * @param {function(any)} handler
9451
+ * @returns {SelectBox}
9452
+ */ }, { key: "on", value:
9453
+ function on( /**string|'*'*/event, /**Function?*/handler) {
9454
+ this._p.mitt.on(event, handler);
9455
+ return this;
9456
+ }
9457
+
9458
+ /**
9459
+ * Register a one time event handler
9460
+ * @param {(string|'*')?} event
9461
+ * @param {function(any)} handler
9462
+ * @returns {SelectBox}
9463
+ */ }, { key: "once", value:
9464
+ function once( /**string|'*'*/event, /**Function?*/handler) {var _this3 = this;
9465
+ var wrapped = function wrapped(value) {
9466
+ _this3._p.mitt.off(event, wrapped);
9467
+ handler(value);
9468
+ };
9469
+ this._p.mitt.on(event, wrapped);
9470
+ return this;
9471
+ }
9472
+
9473
+ /**
9474
+ * Remove an `handler` for `event`, all events for `event`, or all events completely.
9475
+ * @param {(string|'*')?} event
9476
+ * @param {function(any)} handler
9477
+ * @returns {SelectBox}
9478
+ */ }, { key: "off", value:
9479
+ function off( /**(string|'*')?*/event, /**Function?*/handler) {
9480
+ if (!event && !event) {
9481
+ this._p.mitt.all.clear();
9482
+ } else {
9483
+ this._p.mitt.off(event, handler);
9484
+ }
9485
+ return this;
9486
+ }
9487
+
9488
+ /**
9489
+ * Emit an event
9490
+ * @param {string} event
9491
+ * @param {any} value
9492
+ * @returns {SelectBox}
9493
+ */ }, { key: "emit", value:
9494
+ function emit( /**string|'*'*/event, /**any?*/value) {
9495
+ this._p.mitt.emit(event, value);
9496
+ return this;
9497
+ }
9498
+
9279
9499
  /** @private */ }, { key: "_renderBase", value:
9280
- function _renderBase() {var _this3 = this;
9500
+ function _renderBase() {var _this4 = this;
9281
9501
  var p = this._p;
9282
9502
 
9283
9503
  if (!p.inputBackBuffer) {
@@ -9342,7 +9562,7 @@ var SelectBox = /*#__PURE__*/function () {
9342
9562
 
9343
9563
  if (p.disabled) return;
9344
9564
 
9345
- _this3._removeMultiItemFromEvent(
9565
+ _this4._removeMultiItemFromEvent(
9346
9566
  /**@type Element*/
9347
9567
  Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item"), evt.currentTarget),
9348
9568
  evt);
@@ -9351,7 +9571,7 @@ var SelectBox = /*#__PURE__*/function () {
9351
9571
  if (!Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item"), evt.currentTarget))
9352
9572
  return;
9353
9573
 
9354
- _this3._handleMultiKeydown(evt);
9574
+ _this4._handleMultiKeydown(evt);
9355
9575
  });
9356
9576
 
9357
9577
  if (lastActiveElement === p.input)
@@ -9458,7 +9678,7 @@ var SelectBox = /*#__PURE__*/function () {
9458
9678
  }
9459
9679
 
9460
9680
  /** @private */ }, { key: "_setupDropdownMenu", value:
9461
- function _setupDropdownMenu() {var _this4 = this;
9681
+ function _setupDropdownMenu() {var _this5 = this;
9462
9682
  var p = this._p,valueProp = p.valueProp;
9463
9683
 
9464
9684
  if (p.dropList) {
@@ -9528,12 +9748,12 @@ var SelectBox = /*#__PURE__*/function () {
9528
9748
  if (p.resortBySelectionNeeded && p.sortListCheckedFirst && p.multi)
9529
9749
  p.itemsChanged = true;
9530
9750
 
9531
- _this4._updateListItems();
9532
- _this4._trigger('open', { list: dropList });
9751
+ _this5._updateListItems();
9752
+ _this5._trigger('open', { list: dropList });
9533
9753
 
9534
- _this4._startTrackingPresence();
9754
+ _this5._startTrackingPresence();
9535
9755
 
9536
- p.sink.add(window, 'resize.trackposition', function () {return _this4._repositionDropList();});
9756
+ p.sink.add(window, 'resize.trackposition', function () {return _this5._repositionDropList();});
9537
9757
 
9538
9758
  var parent = p.el.parentNode;
9539
9759
  while (parent) {
@@ -9542,7 +9762,7 @@ var SelectBox = /*#__PURE__*/function () {
9542
9762
  if (parent === document.documentElement) {
9543
9763
  parent = window;
9544
9764
  }
9545
- p.sink.add(parent, 'scroll.trackposition', function () {return _this4._repositionDropList();});
9765
+ p.sink.add(parent, 'scroll.trackposition', function () {return _this5._repositionDropList();});
9546
9766
  }
9547
9767
  parent = parent.parentNode;
9548
9768
  }
@@ -9556,15 +9776,15 @@ var SelectBox = /*#__PURE__*/function () {
9556
9776
  p.el.classList.add("".concat(p.baseClassName, "__closed_list"));
9557
9777
 
9558
9778
  if (!p.multi) {
9559
- _this4._setInputText('');
9560
- _this4._scheduleSync();
9779
+ _this5._setInputText('');
9780
+ _this5._scheduleSync();
9561
9781
  }
9562
9782
 
9563
- _this4._trigger('close');
9783
+ _this5._trigger('close');
9564
9784
 
9565
- if (_this4[DestroyedSymbol]) return; // destroyed by event handler
9785
+ if (_this5[DestroyedSymbol]) return; // destroyed by event handler
9566
9786
 
9567
- _this4._stopTrackingPresence();
9787
+ _this5._stopTrackingPresence();
9568
9788
  p.sink.remove(null, '.trackposition');
9569
9789
  }
9570
9790
  break;
@@ -9579,7 +9799,7 @@ var SelectBox = /*#__PURE__*/function () {
9579
9799
  if (item._group) return; // Ignore groups
9580
9800
 
9581
9801
  var selEvt = { value: value, item: item, cancel: false };
9582
- _this4._trigger((checked ? 'addsel' : 'removesel') + ':before', selEvt);
9802
+ _this5._trigger((checked ? 'addsel' : 'removesel') + ':before', selEvt);
9583
9803
 
9584
9804
  if (selEvt.cancel) {
9585
9805
  // Rollback that check
@@ -9604,37 +9824,37 @@ var SelectBox = /*#__PURE__*/function () {
9604
9824
  if (p.showSelection) {
9605
9825
  if (checked) {
9606
9826
  if (dropList.itemCount() === 1) {
9607
- _this4._setInputText('');
9827
+ _this5._setInputText('');
9608
9828
  }
9609
9829
 
9610
9830
  if (p.sortSelectedItems) {
9611
9831
  if (!hasGroupSync)
9612
- _this4._scheduleSync('full');
9832
+ _this5._scheduleSync('full');
9613
9833
  } else {
9614
9834
  if (p.maxMultiItems != null &&
9615
9835
  p.selectedItems.filter(function (x) {return !x._group;}).length > p.maxMultiItems) {
9616
- _this4._scheduleSync('addOrUpdateMultiItemRestElement');
9836
+ _this5._scheduleSync('addOrUpdateMultiItemRestElement');
9617
9837
  } else {
9618
- _this4._scheduleSync('addMultiItemElement', item);
9838
+ _this5._scheduleSync('addMultiItemElement', item);
9619
9839
  }
9620
9840
 
9621
9841
  if (!hasGroupSync)
9622
- _this4._scheduleSync();
9842
+ _this5._scheduleSync();
9623
9843
  }
9624
9844
  } else {
9625
9845
  if (p.maxMultiItems != null &&
9626
9846
  p.selectedItems.filter(function (x) {return !x._group;}).length === p.maxMultiItems) {
9627
- _this4._scheduleSync('removeMultiItemRestElement');
9847
+ _this5._scheduleSync('removeMultiItemRestElement');
9628
9848
  } else {
9629
- _this4._scheduleSync('removeMultiItemElement', item);
9849
+ _this5._scheduleSync('removeMultiItemElement', item);
9630
9850
  }
9631
9851
 
9632
9852
  if (!hasGroupSync)
9633
- _this4._scheduleSync();
9853
+ _this5._scheduleSync();
9634
9854
  }
9635
9855
  }
9636
9856
 
9637
- _this4._trigger(checked ? 'addsel' : 'removesel', { value: value, item: item });
9857
+ _this5._trigger(checked ? 'addsel' : 'removesel', { value: value, item: item });
9638
9858
  }
9639
9859
  break;
9640
9860
 
@@ -9642,7 +9862,7 @@ var SelectBox = /*#__PURE__*/function () {
9642
9862
  if (!p.multi) return;
9643
9863
 
9644
9864
  if (event.affectedItems) {
9645
- _this4._scheduleSync(p.sortSelectedItems ? 'full' : null);
9865
+ _this5._scheduleSync(p.sortSelectedItems ? 'full' : null);
9646
9866
  }
9647
9867
  }
9648
9868
  break;
@@ -9654,19 +9874,19 @@ var SelectBox = /*#__PURE__*/function () {
9654
9874
  var _value = event.value;
9655
9875
 
9656
9876
  var selectEvt = { value: _value, item: _item, cancel: false };
9657
- _this4._trigger('select:before', selectEvt);
9877
+ _this5._trigger('select:before', selectEvt);
9658
9878
 
9659
9879
  if (selectEvt.cancel)
9660
9880
  return;
9661
9881
 
9662
- if (_this4[DestroyedSymbol]) return; // destroyed by event handler
9882
+ if (_this5[DestroyedSymbol]) return; // destroyed by event handler
9663
9883
 
9664
- _this4._setSelectedItems([_item]);
9665
- _this4._trigger('select', { value: _value, item: _item });
9884
+ _this5._setSelectedItems([_item]);
9885
+ _this5._trigger('select', { value: _value, item: _item });
9666
9886
 
9667
- if (_this4[DestroyedSymbol]) return; // destroyed by event handler
9887
+ if (_this5[DestroyedSymbol]) return; // destroyed by event handler
9668
9888
 
9669
- _this4.closeList();
9889
+ _this5.closeList();
9670
9890
 
9671
9891
  if (p.blurOnSingleSelection === 'touch' && hasTouchCapability ||
9672
9892
  p.blurOnSingleSelection !== 'touch' && p.blurOnSingleSelection) {
@@ -9687,7 +9907,7 @@ var SelectBox = /*#__PURE__*/function () {
9687
9907
  p.sink.remove(null, '.dropdown');
9688
9908
  } }, { key: "_registerDropdownEvents", value:
9689
9909
 
9690
- function _registerDropdownEvents() {var _this5 = this;
9910
+ function _registerDropdownEvents() {var _this6 = this;
9691
9911
  var p = this._p;
9692
9912
 
9693
9913
  this._unregisterDropdownEvents();
@@ -9801,7 +10021,7 @@ var SelectBox = /*#__PURE__*/function () {
9801
10021
  !dropList.hasFocusedItem())
9802
10022
 
9803
10023
  {
9804
- _this5.toggleList();
10024
+ _this6.toggleList();
9805
10025
  evt.preventDefault();
9806
10026
  evt.stopPropagation();
9807
10027
  return;
@@ -9840,42 +10060,42 @@ var SelectBox = /*#__PURE__*/function () {
9840
10060
  p.filteredItems = null;
9841
10061
  p.itemsChanged = true;
9842
10062
 
9843
- _this5._trigger('search', { value: p.input.value });
10063
+ _this6._trigger('search', { value: p.input.value });
9844
10064
 
9845
10065
  p.throttledUpdateListItems();
9846
10066
  }).
9847
10067
  add(p.input, 'click.dropdown', function () {
9848
10068
  if (!p.multi && p.searchable) {
9849
- _this5.openList();
10069
+ _this6.openList();
9850
10070
  }
9851
10071
  }).
9852
10072
  add(p.input, 'focus.dropdown', function () {
9853
- _this5._trigger('search:focus');
10073
+ _this6._trigger('search:focus');
9854
10074
 
9855
- if (_this5[DestroyedSymbol]) return; // destroyed by event handler
10075
+ if (_this6[DestroyedSymbol]) return; // destroyed by event handler
9856
10076
 
9857
10077
  avoidToggleFromClick = false;
9858
- _this5.openList();
10078
+ _this6.openList();
9859
10079
 
9860
10080
  avoidToggleFromClick = true;
9861
10081
  setTimeout(function () {avoidToggleFromClick = false;}, 10);
9862
10082
  }).
9863
10083
  add(p.input, 'blur.dropdown', function () {
9864
- _this5._trigger('search:blur');
10084
+ _this6._trigger('search:blur');
9865
10085
 
9866
- if (_this5[DestroyedSymbol]) return; // destroyed by event handler
10086
+ if (_this6[DestroyedSymbol]) return; // destroyed by event handler
9867
10087
 
9868
10088
  if (p.throttledUpdateListItems)
9869
10089
  p.throttledUpdateListItems.cancel();
9870
10090
 
9871
- _this5.closeList();
10091
+ _this6.closeList();
9872
10092
  });
9873
10093
  }
9874
10094
 
9875
10095
  p.sink.
9876
10096
  add(p.el, 'mousedown.dropdown', function () {
9877
10097
  if (!p.multi && !p.searchable && !avoidToggleFromClick) {
9878
- _this5.toggleList();
10098
+ _this6.toggleList();
9879
10099
  }
9880
10100
  avoidToggleFromClick = false;
9881
10101
  }).
@@ -9883,7 +10103,7 @@ var SelectBox = /*#__PURE__*/function () {
9883
10103
  if (currentTouchId) return;
9884
10104
  currentTouchId = evt.changedTouches[0].identifier;
9885
10105
 
9886
- if (_this5.isDisabled())
10106
+ if (_this6.isDisabled())
9887
10107
  return;
9888
10108
 
9889
10109
  if (Dom.closestUntil(evt.target, ".".concat(p.baseClassName, "__item,.").concat(p.baseClassName, "__clear"), p.el))
@@ -10066,7 +10286,7 @@ var SelectBox = /*#__PURE__*/function () {
10066
10286
  this._scheduleSync('full');
10067
10287
  } }, { key: "_scheduleSync", value:
10068
10288
 
10069
- function _scheduleSync(mode, data) {var _this6 = this;
10289
+ function _scheduleSync(mode, data) {var _this7 = this;
10070
10290
  var p = this._p;
10071
10291
 
10072
10292
  if (!p.syncQueue)
@@ -10085,11 +10305,11 @@ var SelectBox = /*#__PURE__*/function () {
10085
10305
  delete p.syncTimeout;
10086
10306
  var queue = p.syncQueue;
10087
10307
  delete p.syncQueue;
10088
- _this6._performSync(queue);
10308
+ _this7._performSync(queue);
10089
10309
  });
10090
10310
  } }, { key: "_performSync", value:
10091
10311
 
10092
- function _performSync(queue) {var _this7 = this;
10312
+ function _performSync(queue) {var _this8 = this;
10093
10313
  var p = this._p;
10094
10314
 
10095
10315
  if (this[DestroyedSymbol])
@@ -10115,7 +10335,7 @@ var SelectBox = /*#__PURE__*/function () {
10115
10335
 
10116
10336
  var idx = p.multiItemEls.findIndex(function (x) {return x[ItemSymbol][valueProp] === value;});
10117
10337
  if (idx !== -1) {
10118
- _this7._removeMultiItemElementByIndex(idx);
10338
+ _this8._removeMultiItemElementByIndex(idx);
10119
10339
  }})();
10120
10340
  }
10121
10341
  }
@@ -10278,7 +10498,7 @@ var SelectBox = /*#__PURE__*/function () {
10278
10498
  }
10279
10499
 
10280
10500
  /** @private */ }, { key: "_syncClearButton", value:
10281
- function _syncClearButton() {var _this8 = this;
10501
+ function _syncClearButton() {var _this9 = this;
10282
10502
  var p = this._p;
10283
10503
 
10284
10504
  // Set clear button
@@ -10294,8 +10514,8 @@ var SelectBox = /*#__PURE__*/function () {
10294
10514
  p.el.classList.add("".concat(p.baseClassName, "__has_clear"));
10295
10515
 
10296
10516
  p.sink.add(p.clearButton, 'click', function () {
10297
- if (_this8.isDisabled()) return;
10298
- _this8.clear();
10517
+ if (_this9.isDisabled()) return;
10518
+ _this9.clear();
10299
10519
  });
10300
10520
  }
10301
10521
  } else {
@@ -10450,6 +10670,7 @@ var SelectBox = /*#__PURE__*/function () {
10450
10670
  var p = this._p;
10451
10671
  if (p.on)
10452
10672
  p.on.apply(p, [event].concat(_toConsumableArray(data === undefined ? [] : [data])));
10673
+ p.mitt.emit(event, data);
10453
10674
  }
10454
10675
 
10455
10676
  /**
@@ -11000,6 +11221,10 @@ var SelectBox = /*#__PURE__*/function () {
11000
11221
 
11001
11222
  if (group === stickyGroup) {
11002
11223
  checkedGroups.push(stickyGroup);
11224
+ var sgi = uncheckedGroups.indexOf(stickyGroup);
11225
+ if (sgi !== -1) {
11226
+ uncheckedGroups.splice(sgi, 1);
11227
+ }
11003
11228
  continue;
11004
11229
  }
11005
11230