@danielgindi/selectbox 1.0.36 → 1.0.44
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 +975 -588
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +135 -58
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +975 -588
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/DropList.js +64 -42
- package/lib/SelectBox.js +70 -15
- package/package.json +17 -13
- package/vue/DropList.vue +13 -80
- package/vue/SelectBox.vue +83 -89
- package/vue/utils/slots.js +98 -0
package/dist/lib.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/selectbox 1.0.
|
|
2
|
+
* @danielgindi/selectbox 1.0.44
|
|
3
3
|
* git://github.com/danielgindi/selectbox.git
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -14,6 +14,81 @@
|
|
|
14
14
|
var VirtualListHelper__default = /*#__PURE__*/_interopDefaultLegacy(VirtualListHelper);
|
|
15
15
|
var mitt__default = /*#__PURE__*/_interopDefaultLegacy(mitt);
|
|
16
16
|
|
|
17
|
+
function _asyncIterator(iterable) {
|
|
18
|
+
var method,
|
|
19
|
+
async,
|
|
20
|
+
sync,
|
|
21
|
+
retry = 2;
|
|
22
|
+
|
|
23
|
+
if (typeof Symbol !== "undefined") {
|
|
24
|
+
async = Symbol.asyncIterator;
|
|
25
|
+
sync = Symbol.iterator;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
while (retry--) {
|
|
29
|
+
if (async && (method = iterable[async]) != null) {
|
|
30
|
+
return method.call(iterable);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (sync && (method = iterable[sync]) != null) {
|
|
34
|
+
return new AsyncFromSyncIterator(method.call(iterable));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async = "@@asyncIterator";
|
|
38
|
+
sync = "@@iterator";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
throw new TypeError("Object is not async iterable");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function AsyncFromSyncIterator(s) {
|
|
45
|
+
AsyncFromSyncIterator = function (s) {
|
|
46
|
+
this.s = s;
|
|
47
|
+
this.n = s.next;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
AsyncFromSyncIterator.prototype = {
|
|
51
|
+
s: null,
|
|
52
|
+
n: null,
|
|
53
|
+
next: function () {
|
|
54
|
+
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
|
55
|
+
},
|
|
56
|
+
return: function (value) {
|
|
57
|
+
var ret = this.s.return;
|
|
58
|
+
|
|
59
|
+
if (ret === undefined) {
|
|
60
|
+
return Promise.resolve({
|
|
61
|
+
value: value,
|
|
62
|
+
done: true
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
|
|
67
|
+
},
|
|
68
|
+
throw: function (value) {
|
|
69
|
+
var thr = this.s.return;
|
|
70
|
+
if (thr === undefined) return Promise.reject(value);
|
|
71
|
+
return AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
function AsyncFromSyncIteratorContinuation(r) {
|
|
76
|
+
if (Object(r) !== r) {
|
|
77
|
+
return Promise.reject(new TypeError(r + " is not an object."));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
var done = r.done;
|
|
81
|
+
return Promise.resolve(r.value).then(function (value) {
|
|
82
|
+
return {
|
|
83
|
+
value: value,
|
|
84
|
+
done: done
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return new AsyncFromSyncIterator(s);
|
|
90
|
+
}
|
|
91
|
+
|
|
17
92
|
var REACT_ELEMENT_TYPE;
|
|
18
93
|
|
|
19
94
|
function _jsx(type, props, key, children) {
|
|
@@ -179,20 +254,6 @@
|
|
|
179
254
|
return _wrapRegExp.apply(this, arguments);
|
|
180
255
|
}
|
|
181
256
|
|
|
182
|
-
function _asyncIterator(iterable) {
|
|
183
|
-
var method;
|
|
184
|
-
|
|
185
|
-
if (typeof Symbol !== "undefined") {
|
|
186
|
-
if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];
|
|
187
|
-
if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
if (method == null) method = iterable["@@asyncIterator"];
|
|
191
|
-
if (method == null) method = iterable["@@iterator"];
|
|
192
|
-
if (method == null) throw new TypeError("Object is not async iterable");
|
|
193
|
-
return method.call(iterable);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
257
|
function _AwaitValue(value) {
|
|
197
258
|
this.wrapped = value;
|
|
198
259
|
}
|
|
@@ -767,7 +828,7 @@
|
|
|
767
828
|
return object;
|
|
768
829
|
}
|
|
769
830
|
|
|
770
|
-
function _get(
|
|
831
|
+
function _get() {
|
|
771
832
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
772
833
|
_get = Reflect.get;
|
|
773
834
|
} else {
|
|
@@ -778,14 +839,14 @@
|
|
|
778
839
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
779
840
|
|
|
780
841
|
if (desc.get) {
|
|
781
|
-
return desc.get.call(receiver);
|
|
842
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
782
843
|
}
|
|
783
844
|
|
|
784
845
|
return desc.value;
|
|
785
846
|
};
|
|
786
847
|
}
|
|
787
848
|
|
|
788
|
-
return _get(
|
|
849
|
+
return _get.apply(this, arguments);
|
|
789
850
|
}
|
|
790
851
|
|
|
791
852
|
function set$1(target, property, value, receiver) {
|
|
@@ -1734,7 +1795,7 @@
|
|
|
1734
1795
|
};
|
|
1735
1796
|
|
|
1736
1797
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
1737
|
-
var global$
|
|
1798
|
+
var global$I =
|
|
1738
1799
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
1739
1800
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
1740
1801
|
check(typeof window == 'object' && window) ||
|
|
@@ -1746,7 +1807,7 @@
|
|
|
1746
1807
|
|
|
1747
1808
|
var objectGetOwnPropertyDescriptor = {};
|
|
1748
1809
|
|
|
1749
|
-
var fails$
|
|
1810
|
+
var fails$r = function (exec) {
|
|
1750
1811
|
try {
|
|
1751
1812
|
return !!exec();
|
|
1752
1813
|
} catch (error) {
|
|
@@ -1754,30 +1815,36 @@
|
|
|
1754
1815
|
}
|
|
1755
1816
|
};
|
|
1756
1817
|
|
|
1757
|
-
var fails$
|
|
1818
|
+
var fails$q = fails$r;
|
|
1758
1819
|
|
|
1759
1820
|
// Detect IE8's incomplete defineProperty implementation
|
|
1760
|
-
var descriptors = !fails$
|
|
1821
|
+
var descriptors = !fails$q(function () {
|
|
1761
1822
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1762
1823
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
1763
1824
|
});
|
|
1764
1825
|
|
|
1826
|
+
var call$f = Function.prototype.call;
|
|
1827
|
+
|
|
1828
|
+
var functionCall = call$f.bind ? call$f.bind(call$f) : function () {
|
|
1829
|
+
return call$f.apply(call$f, arguments);
|
|
1830
|
+
};
|
|
1831
|
+
|
|
1765
1832
|
var objectPropertyIsEnumerable = {};
|
|
1766
1833
|
|
|
1767
1834
|
'use strict';
|
|
1768
|
-
var $propertyIsEnumerable$
|
|
1835
|
+
var $propertyIsEnumerable$2 = {}.propertyIsEnumerable;
|
|
1769
1836
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1770
1837
|
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
1771
1838
|
|
|
1772
1839
|
// Nashorn ~ JDK8 bug
|
|
1773
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable$
|
|
1840
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable$2.call({ 1: 2 }, 1);
|
|
1774
1841
|
|
|
1775
1842
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1776
1843
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1777
1844
|
var f$6 = objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1778
1845
|
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
1779
1846
|
return !!descriptor && descriptor.enumerable;
|
|
1780
|
-
} : $propertyIsEnumerable$
|
|
1847
|
+
} : $propertyIsEnumerable$2;
|
|
1781
1848
|
|
|
1782
1849
|
var createPropertyDescriptor$5 = function (bitmap, value) {
|
|
1783
1850
|
return {
|
|
@@ -1788,30 +1855,53 @@
|
|
|
1788
1855
|
};
|
|
1789
1856
|
};
|
|
1790
1857
|
|
|
1791
|
-
var
|
|
1858
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
1859
|
+
var bind$6 = FunctionPrototype$2.bind;
|
|
1860
|
+
var call$e = FunctionPrototype$2.call;
|
|
1861
|
+
var callBind = bind$6 && bind$6.bind(call$e);
|
|
1862
|
+
|
|
1863
|
+
var functionUncurryThis = bind$6 ? function (fn) {
|
|
1864
|
+
return fn && callBind(call$e, fn);
|
|
1865
|
+
} : function (fn) {
|
|
1866
|
+
return fn && function () {
|
|
1867
|
+
return call$e.apply(fn, arguments);
|
|
1868
|
+
};
|
|
1869
|
+
};
|
|
1870
|
+
|
|
1871
|
+
var uncurryThis$v = functionUncurryThis;
|
|
1872
|
+
|
|
1873
|
+
var toString$d = uncurryThis$v({}.toString);
|
|
1874
|
+
var stringSlice$7 = uncurryThis$v(''.slice);
|
|
1792
1875
|
|
|
1793
1876
|
var classofRaw$1 = function (it) {
|
|
1794
|
-
return toString$
|
|
1877
|
+
return stringSlice$7(toString$d(it), 8, -1);
|
|
1795
1878
|
};
|
|
1796
1879
|
|
|
1797
|
-
var
|
|
1798
|
-
var
|
|
1880
|
+
var global$H = global$I;
|
|
1881
|
+
var uncurryThis$u = functionUncurryThis;
|
|
1882
|
+
var fails$p = fails$r;
|
|
1883
|
+
var classof$a = classofRaw$1;
|
|
1799
1884
|
|
|
1800
|
-
var
|
|
1885
|
+
var Object$5 = global$H.Object;
|
|
1886
|
+
var split = uncurryThis$u(''.split);
|
|
1801
1887
|
|
|
1802
1888
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
1803
|
-
var indexedObject = fails$
|
|
1889
|
+
var indexedObject = fails$p(function () {
|
|
1804
1890
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
1805
1891
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
1806
|
-
return !Object('z').propertyIsEnumerable(0);
|
|
1892
|
+
return !Object$5('z').propertyIsEnumerable(0);
|
|
1807
1893
|
}) ? function (it) {
|
|
1808
|
-
return classof$
|
|
1809
|
-
} : Object;
|
|
1894
|
+
return classof$a(it) == 'String' ? split(it, '') : Object$5(it);
|
|
1895
|
+
} : Object$5;
|
|
1896
|
+
|
|
1897
|
+
var global$G = global$I;
|
|
1898
|
+
|
|
1899
|
+
var TypeError$g = global$G.TypeError;
|
|
1810
1900
|
|
|
1811
1901
|
// `RequireObjectCoercible` abstract operation
|
|
1812
1902
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
1813
1903
|
var requireObjectCoercible$7 = function (it) {
|
|
1814
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
1904
|
+
if (it == undefined) throw TypeError$g("Can't call method on " + it);
|
|
1815
1905
|
return it;
|
|
1816
1906
|
};
|
|
1817
1907
|
|
|
@@ -1819,23 +1909,23 @@
|
|
|
1819
1909
|
var IndexedObject$3 = indexedObject;
|
|
1820
1910
|
var requireObjectCoercible$6 = requireObjectCoercible$7;
|
|
1821
1911
|
|
|
1822
|
-
var toIndexedObject$
|
|
1912
|
+
var toIndexedObject$a = function (it) {
|
|
1823
1913
|
return IndexedObject$3(requireObjectCoercible$6(it));
|
|
1824
1914
|
};
|
|
1825
1915
|
|
|
1826
1916
|
// `IsCallable` abstract operation
|
|
1827
1917
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
1828
1918
|
var isCallable$l = function (argument) {
|
|
1829
|
-
return typeof argument
|
|
1919
|
+
return typeof argument == 'function';
|
|
1830
1920
|
};
|
|
1831
1921
|
|
|
1832
1922
|
var isCallable$k = isCallable$l;
|
|
1833
1923
|
|
|
1834
1924
|
var isObject$e = function (it) {
|
|
1835
|
-
return typeof it
|
|
1925
|
+
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
1836
1926
|
};
|
|
1837
1927
|
|
|
1838
|
-
var global$
|
|
1928
|
+
var global$F = global$I;
|
|
1839
1929
|
var isCallable$j = isCallable$l;
|
|
1840
1930
|
|
|
1841
1931
|
var aFunction = function (argument) {
|
|
@@ -1843,42 +1933,52 @@
|
|
|
1843
1933
|
};
|
|
1844
1934
|
|
|
1845
1935
|
var getBuiltIn$7 = function (namespace, method) {
|
|
1846
|
-
return arguments.length < 2 ? aFunction(global$
|
|
1936
|
+
return arguments.length < 2 ? aFunction(global$F[namespace]) : global$F[namespace] && global$F[namespace][method];
|
|
1847
1937
|
};
|
|
1848
1938
|
|
|
1939
|
+
var uncurryThis$t = functionUncurryThis;
|
|
1940
|
+
|
|
1941
|
+
var objectIsPrototypeOf = uncurryThis$t({}.isPrototypeOf);
|
|
1942
|
+
|
|
1849
1943
|
var getBuiltIn$6 = getBuiltIn$7;
|
|
1850
1944
|
|
|
1851
1945
|
var engineUserAgent = getBuiltIn$6('navigator', 'userAgent') || '';
|
|
1852
1946
|
|
|
1853
|
-
var global$
|
|
1947
|
+
var global$E = global$I;
|
|
1854
1948
|
var userAgent$2 = engineUserAgent;
|
|
1855
1949
|
|
|
1856
|
-
var process = global$
|
|
1857
|
-
var Deno = global$
|
|
1950
|
+
var process = global$E.process;
|
|
1951
|
+
var Deno = global$E.Deno;
|
|
1858
1952
|
var versions = process && process.versions || Deno && Deno.version;
|
|
1859
1953
|
var v8 = versions && versions.v8;
|
|
1860
1954
|
var match, version;
|
|
1861
1955
|
|
|
1862
1956
|
if (v8) {
|
|
1863
1957
|
match = v8.split('.');
|
|
1864
|
-
|
|
1865
|
-
|
|
1958
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
1959
|
+
// but their correct versions are not interesting for us
|
|
1960
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
1964
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
1965
|
+
if (!version && userAgent$2) {
|
|
1866
1966
|
match = userAgent$2.match(/Edge\/(\d+)/);
|
|
1867
1967
|
if (!match || match[1] >= 74) {
|
|
1868
1968
|
match = userAgent$2.match(/Chrome\/(\d+)/);
|
|
1869
|
-
if (match) version = match[1];
|
|
1969
|
+
if (match) version = +match[1];
|
|
1870
1970
|
}
|
|
1871
1971
|
}
|
|
1872
1972
|
|
|
1873
|
-
var engineV8Version = version
|
|
1973
|
+
var engineV8Version = version;
|
|
1874
1974
|
|
|
1875
1975
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
1876
1976
|
|
|
1877
1977
|
var V8_VERSION$2 = engineV8Version;
|
|
1878
|
-
var fails$
|
|
1978
|
+
var fails$o = fails$r;
|
|
1879
1979
|
|
|
1880
1980
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1881
|
-
var nativeSymbol
|
|
1981
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$o(function () {
|
|
1882
1982
|
var symbol = Symbol();
|
|
1883
1983
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
1884
1984
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -1889,38 +1989,49 @@
|
|
|
1889
1989
|
|
|
1890
1990
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
1891
1991
|
|
|
1892
|
-
var NATIVE_SYMBOL$
|
|
1992
|
+
var NATIVE_SYMBOL$3 = nativeSymbol;
|
|
1893
1993
|
|
|
1894
|
-
var useSymbolAsUid = NATIVE_SYMBOL$
|
|
1994
|
+
var useSymbolAsUid = NATIVE_SYMBOL$3
|
|
1895
1995
|
&& !Symbol.sham
|
|
1896
1996
|
&& typeof Symbol.iterator == 'symbol';
|
|
1897
1997
|
|
|
1898
|
-
var
|
|
1998
|
+
var global$D = global$I;
|
|
1899
1999
|
var getBuiltIn$5 = getBuiltIn$7;
|
|
2000
|
+
var isCallable$i = isCallable$l;
|
|
2001
|
+
var isPrototypeOf$6 = objectIsPrototypeOf;
|
|
1900
2002
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
1901
2003
|
|
|
2004
|
+
var Object$4 = global$D.Object;
|
|
2005
|
+
|
|
1902
2006
|
var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
1903
2007
|
return typeof it == 'symbol';
|
|
1904
2008
|
} : function (it) {
|
|
1905
2009
|
var $Symbol = getBuiltIn$5('Symbol');
|
|
1906
|
-
return isCallable$i($Symbol) && Object(it)
|
|
2010
|
+
return isCallable$i($Symbol) && isPrototypeOf$6($Symbol.prototype, Object$4(it));
|
|
1907
2011
|
};
|
|
1908
2012
|
|
|
1909
|
-
var
|
|
2013
|
+
var global$C = global$I;
|
|
2014
|
+
|
|
2015
|
+
var String$4 = global$C.String;
|
|
2016
|
+
|
|
2017
|
+
var tryToString$3 = function (argument) {
|
|
1910
2018
|
try {
|
|
1911
|
-
return String(argument);
|
|
2019
|
+
return String$4(argument);
|
|
1912
2020
|
} catch (error) {
|
|
1913
2021
|
return 'Object';
|
|
1914
2022
|
}
|
|
1915
2023
|
};
|
|
1916
2024
|
|
|
2025
|
+
var global$B = global$I;
|
|
1917
2026
|
var isCallable$h = isCallable$l;
|
|
1918
|
-
var tryToString = tryToString$
|
|
2027
|
+
var tryToString$2 = tryToString$3;
|
|
2028
|
+
|
|
2029
|
+
var TypeError$f = global$B.TypeError;
|
|
1919
2030
|
|
|
1920
2031
|
// `Assert: IsCallable(argument) is true`
|
|
1921
2032
|
var aCallable$4 = function (argument) {
|
|
1922
2033
|
if (isCallable$h(argument)) return argument;
|
|
1923
|
-
throw TypeError(tryToString(argument) + ' is not a function');
|
|
2034
|
+
throw TypeError$f(tryToString$2(argument) + ' is not a function');
|
|
1924
2035
|
};
|
|
1925
2036
|
|
|
1926
2037
|
var aCallable$3 = aCallable$4;
|
|
@@ -1932,39 +2043,45 @@
|
|
|
1932
2043
|
return func == null ? undefined : aCallable$3(func);
|
|
1933
2044
|
};
|
|
1934
2045
|
|
|
2046
|
+
var global$A = global$I;
|
|
2047
|
+
var call$d = functionCall;
|
|
1935
2048
|
var isCallable$g = isCallable$l;
|
|
1936
2049
|
var isObject$d = isObject$e;
|
|
1937
2050
|
|
|
2051
|
+
var TypeError$e = global$A.TypeError;
|
|
2052
|
+
|
|
1938
2053
|
// `OrdinaryToPrimitive` abstract operation
|
|
1939
2054
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
1940
2055
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
1941
2056
|
var fn, val;
|
|
1942
|
-
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$d(val =
|
|
1943
|
-
if (isCallable$g(fn = input.valueOf) && !isObject$d(val =
|
|
1944
|
-
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$d(val =
|
|
1945
|
-
throw TypeError("Can't convert object to primitive value");
|
|
2057
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$d(val = call$d(fn, input))) return val;
|
|
2058
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$d(val = call$d(fn, input))) return val;
|
|
2059
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$d(val = call$d(fn, input))) return val;
|
|
2060
|
+
throw TypeError$e("Can't convert object to primitive value");
|
|
1946
2061
|
};
|
|
1947
2062
|
|
|
1948
2063
|
var shared$6 = {exports: {}};
|
|
1949
2064
|
|
|
1950
2065
|
var isPure = false;
|
|
1951
2066
|
|
|
1952
|
-
var global$
|
|
2067
|
+
var global$z = global$I;
|
|
2068
|
+
|
|
2069
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2070
|
+
var defineProperty$7 = Object.defineProperty;
|
|
1953
2071
|
|
|
1954
2072
|
var setGlobal$3 = function (key, value) {
|
|
1955
2073
|
try {
|
|
1956
|
-
|
|
1957
|
-
Object.defineProperty(global$h, key, { value: value, configurable: true, writable: true });
|
|
2074
|
+
defineProperty$7(global$z, key, { value: value, configurable: true, writable: true });
|
|
1958
2075
|
} catch (error) {
|
|
1959
|
-
global$
|
|
2076
|
+
global$z[key] = value;
|
|
1960
2077
|
} return value;
|
|
1961
2078
|
};
|
|
1962
2079
|
|
|
1963
|
-
var global$
|
|
2080
|
+
var global$y = global$I;
|
|
1964
2081
|
var setGlobal$2 = setGlobal$3;
|
|
1965
2082
|
|
|
1966
2083
|
var SHARED = '__core-js_shared__';
|
|
1967
|
-
var store$3 = global$
|
|
2084
|
+
var store$3 = global$y[SHARED] || setGlobal$2(SHARED, {});
|
|
1968
2085
|
|
|
1969
2086
|
var sharedStore = store$3;
|
|
1970
2087
|
|
|
@@ -1974,65 +2091,79 @@
|
|
|
1974
2091
|
(shared$6.exports = function (key, value) {
|
|
1975
2092
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
1976
2093
|
})('versions', []).push({
|
|
1977
|
-
version: '3.
|
|
2094
|
+
version: '3.19.1',
|
|
1978
2095
|
mode: IS_PURE$4 ? 'pure' : 'global',
|
|
1979
2096
|
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
1980
2097
|
});
|
|
1981
2098
|
|
|
1982
2099
|
var shared$5 = shared$6.exports;
|
|
1983
2100
|
|
|
2101
|
+
var global$x = global$I;
|
|
1984
2102
|
var requireObjectCoercible$5 = requireObjectCoercible$7;
|
|
1985
2103
|
|
|
2104
|
+
var Object$3 = global$x.Object;
|
|
2105
|
+
|
|
1986
2106
|
// `ToObject` abstract operation
|
|
1987
2107
|
// https://tc39.es/ecma262/#sec-toobject
|
|
1988
2108
|
var toObject$a = function (argument) {
|
|
1989
|
-
return Object(requireObjectCoercible$5(argument));
|
|
2109
|
+
return Object$3(requireObjectCoercible$5(argument));
|
|
1990
2110
|
};
|
|
1991
2111
|
|
|
2112
|
+
var uncurryThis$s = functionUncurryThis;
|
|
1992
2113
|
var toObject$9 = toObject$a;
|
|
1993
2114
|
|
|
1994
|
-
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
2115
|
+
var hasOwnProperty$1 = uncurryThis$s({}.hasOwnProperty);
|
|
1995
2116
|
|
|
1996
2117
|
// `HasOwnProperty` abstract operation
|
|
1997
2118
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
1998
2119
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
1999
|
-
return hasOwnProperty$1
|
|
2120
|
+
return hasOwnProperty$1(toObject$9(it), key);
|
|
2000
2121
|
};
|
|
2001
2122
|
|
|
2123
|
+
var uncurryThis$r = functionUncurryThis;
|
|
2124
|
+
|
|
2002
2125
|
var id$1 = 0;
|
|
2003
2126
|
var postfix = Math.random();
|
|
2127
|
+
var toString$c = uncurryThis$r(1.0.toString);
|
|
2004
2128
|
|
|
2005
2129
|
var uid$4 = function (key) {
|
|
2006
|
-
return 'Symbol(' +
|
|
2130
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$c(++id$1 + postfix, 36);
|
|
2007
2131
|
};
|
|
2008
2132
|
|
|
2009
|
-
var global$
|
|
2133
|
+
var global$w = global$I;
|
|
2010
2134
|
var shared$4 = shared$6.exports;
|
|
2011
2135
|
var hasOwn$d = hasOwnProperty_1;
|
|
2012
2136
|
var uid$3 = uid$4;
|
|
2013
|
-
var NATIVE_SYMBOL$
|
|
2137
|
+
var NATIVE_SYMBOL$2 = nativeSymbol;
|
|
2014
2138
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
2015
2139
|
|
|
2016
2140
|
var WellKnownSymbolsStore$1 = shared$4('wks');
|
|
2017
|
-
var Symbol$1 = global$
|
|
2141
|
+
var Symbol$1 = global$w.Symbol;
|
|
2142
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
2018
2143
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$3;
|
|
2019
2144
|
|
|
2020
2145
|
var wellKnownSymbol$n = function (name) {
|
|
2021
|
-
if (!hasOwn$d(WellKnownSymbolsStore$1, name) || !(NATIVE_SYMBOL$
|
|
2022
|
-
|
|
2146
|
+
if (!hasOwn$d(WellKnownSymbolsStore$1, name) || !(NATIVE_SYMBOL$2 || typeof WellKnownSymbolsStore$1[name] == 'string')) {
|
|
2147
|
+
var description = 'Symbol.' + name;
|
|
2148
|
+
if (NATIVE_SYMBOL$2 && hasOwn$d(Symbol$1, name)) {
|
|
2023
2149
|
WellKnownSymbolsStore$1[name] = Symbol$1[name];
|
|
2150
|
+
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
2151
|
+
WellKnownSymbolsStore$1[name] = symbolFor(description);
|
|
2024
2152
|
} else {
|
|
2025
|
-
WellKnownSymbolsStore$1[name] = createWellKnownSymbol(
|
|
2153
|
+
WellKnownSymbolsStore$1[name] = createWellKnownSymbol(description);
|
|
2026
2154
|
}
|
|
2027
2155
|
} return WellKnownSymbolsStore$1[name];
|
|
2028
2156
|
};
|
|
2029
2157
|
|
|
2158
|
+
var global$v = global$I;
|
|
2159
|
+
var call$c = functionCall;
|
|
2030
2160
|
var isObject$c = isObject$e;
|
|
2031
2161
|
var isSymbol$2 = isSymbol$3;
|
|
2032
2162
|
var getMethod$3 = getMethod$4;
|
|
2033
2163
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
2034
2164
|
var wellKnownSymbol$m = wellKnownSymbol$n;
|
|
2035
2165
|
|
|
2166
|
+
var TypeError$d = global$v.TypeError;
|
|
2036
2167
|
var TO_PRIMITIVE$1 = wellKnownSymbol$m('toPrimitive');
|
|
2037
2168
|
|
|
2038
2169
|
// `ToPrimitive` abstract operation
|
|
@@ -2043,9 +2174,9 @@
|
|
|
2043
2174
|
var result;
|
|
2044
2175
|
if (exoticToPrim) {
|
|
2045
2176
|
if (pref === undefined) pref = 'default';
|
|
2046
|
-
result =
|
|
2177
|
+
result = call$c(exoticToPrim, input, pref);
|
|
2047
2178
|
if (!isObject$c(result) || isSymbol$2(result)) return result;
|
|
2048
|
-
throw TypeError("Can't convert object to primitive value");
|
|
2179
|
+
throw TypeError$d("Can't convert object to primitive value");
|
|
2049
2180
|
}
|
|
2050
2181
|
if (pref === undefined) pref = 'number';
|
|
2051
2182
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -2058,13 +2189,13 @@
|
|
|
2058
2189
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
2059
2190
|
var toPropertyKey$4 = function (argument) {
|
|
2060
2191
|
var key = toPrimitive(argument, 'string');
|
|
2061
|
-
return isSymbol$1(key) ? key :
|
|
2192
|
+
return isSymbol$1(key) ? key : key + '';
|
|
2062
2193
|
};
|
|
2063
2194
|
|
|
2064
|
-
var global$
|
|
2195
|
+
var global$u = global$I;
|
|
2065
2196
|
var isObject$b = isObject$e;
|
|
2066
2197
|
|
|
2067
|
-
var document$1 = global$
|
|
2198
|
+
var document$1 = global$u.document;
|
|
2068
2199
|
// typeof document.createElement is 'object' in old IE
|
|
2069
2200
|
var EXISTS$1 = isObject$b(document$1) && isObject$b(document$1.createElement);
|
|
2070
2201
|
|
|
@@ -2073,11 +2204,11 @@
|
|
|
2073
2204
|
};
|
|
2074
2205
|
|
|
2075
2206
|
var DESCRIPTORS$c = descriptors;
|
|
2076
|
-
var fails$
|
|
2207
|
+
var fails$n = fails$r;
|
|
2077
2208
|
var createElement = documentCreateElement$2;
|
|
2078
2209
|
|
|
2079
2210
|
// Thank's IE8 for his funny defineProperty
|
|
2080
|
-
var ie8DomDefine = !DESCRIPTORS$c && !fails$
|
|
2211
|
+
var ie8DomDefine = !DESCRIPTORS$c && !fails$n(function () {
|
|
2081
2212
|
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing
|
|
2082
2213
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
2083
2214
|
get: function () { return 7; }
|
|
@@ -2085,9 +2216,10 @@
|
|
|
2085
2216
|
});
|
|
2086
2217
|
|
|
2087
2218
|
var DESCRIPTORS$b = descriptors;
|
|
2219
|
+
var call$b = functionCall;
|
|
2088
2220
|
var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable;
|
|
2089
2221
|
var createPropertyDescriptor$4 = createPropertyDescriptor$5;
|
|
2090
|
-
var toIndexedObject$
|
|
2222
|
+
var toIndexedObject$9 = toIndexedObject$a;
|
|
2091
2223
|
var toPropertyKey$3 = toPropertyKey$4;
|
|
2092
2224
|
var hasOwn$c = hasOwnProperty_1;
|
|
2093
2225
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
@@ -2098,29 +2230,35 @@
|
|
|
2098
2230
|
// `Object.getOwnPropertyDescriptor` method
|
|
2099
2231
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
2100
2232
|
var f$5 = objectGetOwnPropertyDescriptor.f = DESCRIPTORS$b ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
2101
|
-
O = toIndexedObject$
|
|
2233
|
+
O = toIndexedObject$9(O);
|
|
2102
2234
|
P = toPropertyKey$3(P);
|
|
2103
2235
|
if (IE8_DOM_DEFINE$1) try {
|
|
2104
2236
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
2105
2237
|
} catch (error) { /* empty */ }
|
|
2106
|
-
if (hasOwn$c(O, P)) return createPropertyDescriptor$4(!propertyIsEnumerableModule$2.f
|
|
2238
|
+
if (hasOwn$c(O, P)) return createPropertyDescriptor$4(!call$b(propertyIsEnumerableModule$2.f, O, P), O[P]);
|
|
2107
2239
|
};
|
|
2108
2240
|
|
|
2109
2241
|
var objectDefineProperty = {};
|
|
2110
2242
|
|
|
2243
|
+
var global$t = global$I;
|
|
2111
2244
|
var isObject$a = isObject$e;
|
|
2112
2245
|
|
|
2246
|
+
var String$3 = global$t.String;
|
|
2247
|
+
var TypeError$c = global$t.TypeError;
|
|
2248
|
+
|
|
2113
2249
|
// `Assert: Type(argument) is Object`
|
|
2114
2250
|
var anObject$e = function (argument) {
|
|
2115
2251
|
if (isObject$a(argument)) return argument;
|
|
2116
|
-
throw TypeError(String(argument) + ' is not an object');
|
|
2252
|
+
throw TypeError$c(String$3(argument) + ' is not an object');
|
|
2117
2253
|
};
|
|
2118
2254
|
|
|
2255
|
+
var global$s = global$I;
|
|
2119
2256
|
var DESCRIPTORS$a = descriptors;
|
|
2120
2257
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
2121
2258
|
var anObject$d = anObject$e;
|
|
2122
2259
|
var toPropertyKey$2 = toPropertyKey$4;
|
|
2123
2260
|
|
|
2261
|
+
var TypeError$b = global$s.TypeError;
|
|
2124
2262
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2125
2263
|
var $defineProperty$1 = Object.defineProperty;
|
|
2126
2264
|
|
|
@@ -2133,7 +2271,7 @@
|
|
|
2133
2271
|
if (IE8_DOM_DEFINE) try {
|
|
2134
2272
|
return $defineProperty$1(O, P, Attributes);
|
|
2135
2273
|
} catch (error) { /* empty */ }
|
|
2136
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
2274
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$b('Accessors not supported');
|
|
2137
2275
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
2138
2276
|
return O;
|
|
2139
2277
|
};
|
|
@@ -2151,25 +2289,26 @@
|
|
|
2151
2289
|
|
|
2152
2290
|
var redefine$b = {exports: {}};
|
|
2153
2291
|
|
|
2292
|
+
var uncurryThis$q = functionUncurryThis;
|
|
2154
2293
|
var isCallable$f = isCallable$l;
|
|
2155
2294
|
var store$1 = sharedStore;
|
|
2156
2295
|
|
|
2157
|
-
var functionToString = Function.toString;
|
|
2296
|
+
var functionToString = uncurryThis$q(Function.toString);
|
|
2158
2297
|
|
|
2159
2298
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
2160
2299
|
if (!isCallable$f(store$1.inspectSource)) {
|
|
2161
2300
|
store$1.inspectSource = function (it) {
|
|
2162
|
-
return functionToString
|
|
2301
|
+
return functionToString(it);
|
|
2163
2302
|
};
|
|
2164
2303
|
}
|
|
2165
2304
|
|
|
2166
2305
|
var inspectSource$3 = store$1.inspectSource;
|
|
2167
2306
|
|
|
2168
|
-
var global$
|
|
2307
|
+
var global$r = global$I;
|
|
2169
2308
|
var isCallable$e = isCallable$l;
|
|
2170
2309
|
var inspectSource$2 = inspectSource$3;
|
|
2171
2310
|
|
|
2172
|
-
var WeakMap$2 = global$
|
|
2311
|
+
var WeakMap$2 = global$r.WeakMap;
|
|
2173
2312
|
|
|
2174
2313
|
var nativeWeakMap = isCallable$e(WeakMap$2) && /native code/.test(inspectSource$2(WeakMap$2));
|
|
2175
2314
|
|
|
@@ -2185,7 +2324,8 @@
|
|
|
2185
2324
|
var hiddenKeys$6 = {};
|
|
2186
2325
|
|
|
2187
2326
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
2188
|
-
var global$
|
|
2327
|
+
var global$q = global$I;
|
|
2328
|
+
var uncurryThis$p = functionUncurryThis;
|
|
2189
2329
|
var isObject$9 = isObject$e;
|
|
2190
2330
|
var createNonEnumerableProperty$6 = createNonEnumerableProperty$7;
|
|
2191
2331
|
var hasOwn$b = hasOwnProperty_1;
|
|
@@ -2194,7 +2334,8 @@
|
|
|
2194
2334
|
var hiddenKeys$5 = hiddenKeys$6;
|
|
2195
2335
|
|
|
2196
2336
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
2197
|
-
var
|
|
2337
|
+
var TypeError$a = global$q.TypeError;
|
|
2338
|
+
var WeakMap$1 = global$q.WeakMap;
|
|
2198
2339
|
var set, get, has;
|
|
2199
2340
|
|
|
2200
2341
|
var enforce = function (it) {
|
|
@@ -2205,33 +2346,33 @@
|
|
|
2205
2346
|
return function (it) {
|
|
2206
2347
|
var state;
|
|
2207
2348
|
if (!isObject$9(it) || (state = get(it)).type !== TYPE) {
|
|
2208
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
2349
|
+
throw TypeError$a('Incompatible receiver, ' + TYPE + ' required');
|
|
2209
2350
|
} return state;
|
|
2210
2351
|
};
|
|
2211
2352
|
};
|
|
2212
2353
|
|
|
2213
2354
|
if (NATIVE_WEAK_MAP || shared$2.state) {
|
|
2214
2355
|
var store = shared$2.state || (shared$2.state = new WeakMap$1());
|
|
2215
|
-
var wmget = store.get;
|
|
2216
|
-
var wmhas = store.has;
|
|
2217
|
-
var wmset = store.set;
|
|
2356
|
+
var wmget = uncurryThis$p(store.get);
|
|
2357
|
+
var wmhas = uncurryThis$p(store.has);
|
|
2358
|
+
var wmset = uncurryThis$p(store.set);
|
|
2218
2359
|
set = function (it, metadata) {
|
|
2219
|
-
if (wmhas
|
|
2360
|
+
if (wmhas(store, it)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
|
|
2220
2361
|
metadata.facade = it;
|
|
2221
|
-
wmset
|
|
2362
|
+
wmset(store, it, metadata);
|
|
2222
2363
|
return metadata;
|
|
2223
2364
|
};
|
|
2224
2365
|
get = function (it) {
|
|
2225
|
-
return wmget
|
|
2366
|
+
return wmget(store, it) || {};
|
|
2226
2367
|
};
|
|
2227
2368
|
has = function (it) {
|
|
2228
|
-
return wmhas
|
|
2369
|
+
return wmhas(store, it);
|
|
2229
2370
|
};
|
|
2230
2371
|
} else {
|
|
2231
2372
|
var STATE = sharedKey$3('state');
|
|
2232
2373
|
hiddenKeys$5[STATE] = true;
|
|
2233
2374
|
set = function (it, metadata) {
|
|
2234
|
-
if (hasOwn$b(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
2375
|
+
if (hasOwn$b(it, STATE)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
|
|
2235
2376
|
metadata.facade = it;
|
|
2236
2377
|
createNonEnumerableProperty$6(it, STATE, metadata);
|
|
2237
2378
|
return metadata;
|
|
@@ -2255,14 +2396,14 @@
|
|
|
2255
2396
|
var DESCRIPTORS$8 = descriptors;
|
|
2256
2397
|
var hasOwn$a = hasOwnProperty_1;
|
|
2257
2398
|
|
|
2258
|
-
var FunctionPrototype = Function.prototype;
|
|
2399
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
2259
2400
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2260
2401
|
var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
|
|
2261
2402
|
|
|
2262
|
-
var EXISTS = hasOwn$a(FunctionPrototype, 'name');
|
|
2403
|
+
var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
|
|
2263
2404
|
// additional protection from minified / mangled / dropped function names
|
|
2264
2405
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
2265
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
2406
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
2266
2407
|
|
|
2267
2408
|
var functionName = {
|
|
2268
2409
|
EXISTS: EXISTS,
|
|
@@ -2270,7 +2411,7 @@
|
|
|
2270
2411
|
CONFIGURABLE: CONFIGURABLE
|
|
2271
2412
|
};
|
|
2272
2413
|
|
|
2273
|
-
var global$
|
|
2414
|
+
var global$p = global$I;
|
|
2274
2415
|
var isCallable$d = isCallable$l;
|
|
2275
2416
|
var hasOwn$9 = hasOwnProperty_1;
|
|
2276
2417
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$7;
|
|
@@ -2301,7 +2442,7 @@
|
|
|
2301
2442
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
2302
2443
|
}
|
|
2303
2444
|
}
|
|
2304
|
-
if (O === global$
|
|
2445
|
+
if (O === global$p) {
|
|
2305
2446
|
if (simple) O[key] = value;
|
|
2306
2447
|
else setGlobal$1(key, value);
|
|
2307
2448
|
return;
|
|
@@ -2363,14 +2504,14 @@
|
|
|
2363
2504
|
return toLength$2(obj.length);
|
|
2364
2505
|
};
|
|
2365
2506
|
|
|
2366
|
-
var toIndexedObject$
|
|
2507
|
+
var toIndexedObject$8 = toIndexedObject$a;
|
|
2367
2508
|
var toAbsoluteIndex$2 = toAbsoluteIndex$3;
|
|
2368
2509
|
var lengthOfArrayLike$7 = lengthOfArrayLike$8;
|
|
2369
2510
|
|
|
2370
2511
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
2371
2512
|
var createMethod$4 = function (IS_INCLUDES) {
|
|
2372
2513
|
return function ($this, el, fromIndex) {
|
|
2373
|
-
var O = toIndexedObject$
|
|
2514
|
+
var O = toIndexedObject$8($this);
|
|
2374
2515
|
var length = lengthOfArrayLike$7(O);
|
|
2375
2516
|
var index = toAbsoluteIndex$2(fromIndex, length);
|
|
2376
2517
|
var value;
|
|
@@ -2396,20 +2537,23 @@
|
|
|
2396
2537
|
indexOf: createMethod$4(false)
|
|
2397
2538
|
};
|
|
2398
2539
|
|
|
2540
|
+
var uncurryThis$o = functionUncurryThis;
|
|
2399
2541
|
var hasOwn$8 = hasOwnProperty_1;
|
|
2400
|
-
var toIndexedObject$
|
|
2401
|
-
var indexOf = arrayIncludes.indexOf;
|
|
2542
|
+
var toIndexedObject$7 = toIndexedObject$a;
|
|
2543
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
2402
2544
|
var hiddenKeys$4 = hiddenKeys$6;
|
|
2403
2545
|
|
|
2546
|
+
var push$5 = uncurryThis$o([].push);
|
|
2547
|
+
|
|
2404
2548
|
var objectKeysInternal = function (object, names) {
|
|
2405
|
-
var O = toIndexedObject$
|
|
2549
|
+
var O = toIndexedObject$7(object);
|
|
2406
2550
|
var i = 0;
|
|
2407
2551
|
var result = [];
|
|
2408
2552
|
var key;
|
|
2409
|
-
for (key in O) !hasOwn$8(hiddenKeys$4, key) && hasOwn$8(O, key) &&
|
|
2553
|
+
for (key in O) !hasOwn$8(hiddenKeys$4, key) && hasOwn$8(O, key) && push$5(result, key);
|
|
2410
2554
|
// Don't enum bug & hidden keys
|
|
2411
2555
|
while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
|
|
2412
|
-
~indexOf(result, key) ||
|
|
2556
|
+
~indexOf$1(result, key) || push$5(result, key);
|
|
2413
2557
|
}
|
|
2414
2558
|
return result;
|
|
2415
2559
|
};
|
|
@@ -2443,15 +2587,18 @@
|
|
|
2443
2587
|
var f$2 = objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
2444
2588
|
|
|
2445
2589
|
var getBuiltIn$4 = getBuiltIn$7;
|
|
2590
|
+
var uncurryThis$n = functionUncurryThis;
|
|
2446
2591
|
var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames;
|
|
2447
2592
|
var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols;
|
|
2448
2593
|
var anObject$c = anObject$e;
|
|
2449
2594
|
|
|
2595
|
+
var concat$2 = uncurryThis$n([].concat);
|
|
2596
|
+
|
|
2450
2597
|
// all object keys, includes non-enumerable and symbols
|
|
2451
2598
|
var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
2452
2599
|
var keys = getOwnPropertyNamesModule$2.f(anObject$c(it));
|
|
2453
2600
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f;
|
|
2454
|
-
return getOwnPropertySymbols ?
|
|
2601
|
+
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
2455
2602
|
};
|
|
2456
2603
|
|
|
2457
2604
|
var hasOwn$7 = hasOwnProperty_1;
|
|
@@ -2469,7 +2616,7 @@
|
|
|
2469
2616
|
}
|
|
2470
2617
|
};
|
|
2471
2618
|
|
|
2472
|
-
var fails$
|
|
2619
|
+
var fails$m = fails$r;
|
|
2473
2620
|
var isCallable$c = isCallable$l;
|
|
2474
2621
|
|
|
2475
2622
|
var replacement = /#|\.prototype\./;
|
|
@@ -2478,7 +2625,7 @@
|
|
|
2478
2625
|
var value = data[normalize(feature)];
|
|
2479
2626
|
return value == POLYFILL ? true
|
|
2480
2627
|
: value == NATIVE ? false
|
|
2481
|
-
: isCallable$c(detection) ? fails$
|
|
2628
|
+
: isCallable$c(detection) ? fails$m(detection)
|
|
2482
2629
|
: !!detection;
|
|
2483
2630
|
};
|
|
2484
2631
|
|
|
@@ -2492,7 +2639,7 @@
|
|
|
2492
2639
|
|
|
2493
2640
|
var isForced_1 = isForced$3;
|
|
2494
2641
|
|
|
2495
|
-
var global$
|
|
2642
|
+
var global$o = global$I;
|
|
2496
2643
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
2497
2644
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$7;
|
|
2498
2645
|
var redefine$9 = redefine$b.exports;
|
|
@@ -2521,11 +2668,11 @@
|
|
|
2521
2668
|
var STATIC = options.stat;
|
|
2522
2669
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
2523
2670
|
if (GLOBAL) {
|
|
2524
|
-
target = global$
|
|
2671
|
+
target = global$o;
|
|
2525
2672
|
} else if (STATIC) {
|
|
2526
|
-
target = global$
|
|
2673
|
+
target = global$o[TARGET] || setGlobal(TARGET, {});
|
|
2527
2674
|
} else {
|
|
2528
|
-
target = (global$
|
|
2675
|
+
target = (global$o[TARGET] || {}).prototype;
|
|
2529
2676
|
}
|
|
2530
2677
|
if (target) for (key in source) {
|
|
2531
2678
|
sourceProperty = source[key];
|
|
@@ -2536,7 +2683,7 @@
|
|
|
2536
2683
|
FORCED = isForced$2(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
2537
2684
|
// contained in target
|
|
2538
2685
|
if (!FORCED && targetProperty !== undefined) {
|
|
2539
|
-
if (typeof sourceProperty
|
|
2686
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
2540
2687
|
copyConstructorProperties$1(sourceProperty, targetProperty);
|
|
2541
2688
|
}
|
|
2542
2689
|
// add a flag to not completely full polyfills
|
|
@@ -2548,13 +2695,23 @@
|
|
|
2548
2695
|
}
|
|
2549
2696
|
};
|
|
2550
2697
|
|
|
2551
|
-
var
|
|
2698
|
+
var FunctionPrototype = Function.prototype;
|
|
2699
|
+
var apply$2 = FunctionPrototype.apply;
|
|
2700
|
+
var bind$5 = FunctionPrototype.bind;
|
|
2701
|
+
var call$a = FunctionPrototype.call;
|
|
2702
|
+
|
|
2703
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
2704
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (bind$5 ? call$a.bind(apply$2) : function () {
|
|
2705
|
+
return call$a.apply(apply$2, arguments);
|
|
2706
|
+
});
|
|
2707
|
+
|
|
2708
|
+
var classof$9 = classofRaw$1;
|
|
2552
2709
|
|
|
2553
2710
|
// `IsArray` abstract operation
|
|
2554
2711
|
// https://tc39.es/ecma262/#sec-isarray
|
|
2555
2712
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2556
2713
|
var isArray$4 = Array.isArray || function isArray(argument) {
|
|
2557
|
-
return classof$
|
|
2714
|
+
return classof$9(argument) == 'Array';
|
|
2558
2715
|
};
|
|
2559
2716
|
|
|
2560
2717
|
var wellKnownSymbol$l = wellKnownSymbol$n;
|
|
@@ -2566,12 +2723,15 @@
|
|
|
2566
2723
|
|
|
2567
2724
|
var toStringTagSupport = String(test$1) === '[object z]';
|
|
2568
2725
|
|
|
2726
|
+
var global$n = global$I;
|
|
2569
2727
|
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
2570
2728
|
var isCallable$b = isCallable$l;
|
|
2571
2729
|
var classofRaw = classofRaw$1;
|
|
2572
2730
|
var wellKnownSymbol$k = wellKnownSymbol$n;
|
|
2573
2731
|
|
|
2574
2732
|
var TO_STRING_TAG$2 = wellKnownSymbol$k('toStringTag');
|
|
2733
|
+
var Object$2 = global$n.Object;
|
|
2734
|
+
|
|
2575
2735
|
// ES3 wrong here
|
|
2576
2736
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
2577
2737
|
|
|
@@ -2583,22 +2743,25 @@
|
|
|
2583
2743
|
};
|
|
2584
2744
|
|
|
2585
2745
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
2586
|
-
var classof$
|
|
2746
|
+
var classof$8 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
2587
2747
|
var O, tag, result;
|
|
2588
2748
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
2589
2749
|
// @@toStringTag case
|
|
2590
|
-
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
|
|
2750
|
+
: typeof (tag = tryGet(O = Object$2(it), TO_STRING_TAG$2)) == 'string' ? tag
|
|
2591
2751
|
// builtinTag case
|
|
2592
2752
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
2593
2753
|
// ES3 arguments fallback
|
|
2594
2754
|
: (result = classofRaw(O)) == 'Object' && isCallable$b(O.callee) ? 'Arguments' : result;
|
|
2595
2755
|
};
|
|
2596
2756
|
|
|
2597
|
-
var
|
|
2757
|
+
var global$m = global$I;
|
|
2758
|
+
var classof$7 = classof$8;
|
|
2759
|
+
|
|
2760
|
+
var String$2 = global$m.String;
|
|
2598
2761
|
|
|
2599
2762
|
var toString$b = function (argument) {
|
|
2600
|
-
if (classof$
|
|
2601
|
-
return String(argument);
|
|
2763
|
+
if (classof$7(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
2764
|
+
return String$2(argument);
|
|
2602
2765
|
};
|
|
2603
2766
|
|
|
2604
2767
|
var internalObjectKeys = objectKeysInternal;
|
|
@@ -2614,6 +2777,7 @@
|
|
|
2614
2777
|
var DESCRIPTORS$7 = descriptors;
|
|
2615
2778
|
var definePropertyModule$4 = objectDefineProperty;
|
|
2616
2779
|
var anObject$b = anObject$e;
|
|
2780
|
+
var toIndexedObject$6 = toIndexedObject$a;
|
|
2617
2781
|
var objectKeys$3 = objectKeys$4;
|
|
2618
2782
|
|
|
2619
2783
|
// `Object.defineProperties` method
|
|
@@ -2621,11 +2785,12 @@
|
|
|
2621
2785
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
2622
2786
|
var objectDefineProperties = DESCRIPTORS$7 ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
2623
2787
|
anObject$b(O);
|
|
2788
|
+
var props = toIndexedObject$6(Properties);
|
|
2624
2789
|
var keys = objectKeys$3(Properties);
|
|
2625
2790
|
var length = keys.length;
|
|
2626
2791
|
var index = 0;
|
|
2627
2792
|
var key;
|
|
2628
|
-
while (length > index) definePropertyModule$4.f(O, key = keys[index++],
|
|
2793
|
+
while (length > index) definePropertyModule$4.f(O, key = keys[index++], props[key]);
|
|
2629
2794
|
return O;
|
|
2630
2795
|
};
|
|
2631
2796
|
|
|
@@ -2719,12 +2884,16 @@
|
|
|
2719
2884
|
|
|
2720
2885
|
var objectGetOwnPropertyNamesExternal = {};
|
|
2721
2886
|
|
|
2887
|
+
var uncurryThis$m = functionUncurryThis;
|
|
2888
|
+
|
|
2889
|
+
var arraySlice$3 = uncurryThis$m([].slice);
|
|
2890
|
+
|
|
2722
2891
|
/* eslint-disable es/no-object-getownpropertynames -- safe */
|
|
2723
2892
|
|
|
2724
|
-
var
|
|
2893
|
+
var classof$6 = classofRaw$1;
|
|
2894
|
+
var toIndexedObject$5 = toIndexedObject$a;
|
|
2725
2895
|
var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
|
|
2726
|
-
|
|
2727
|
-
var toString$a = {}.toString;
|
|
2896
|
+
var arraySlice$2 = arraySlice$3;
|
|
2728
2897
|
|
|
2729
2898
|
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
|
2730
2899
|
? Object.getOwnPropertyNames(window) : [];
|
|
@@ -2733,13 +2902,13 @@
|
|
|
2733
2902
|
try {
|
|
2734
2903
|
return $getOwnPropertyNames$1(it);
|
|
2735
2904
|
} catch (error) {
|
|
2736
|
-
return windowNames
|
|
2905
|
+
return arraySlice$2(windowNames);
|
|
2737
2906
|
}
|
|
2738
2907
|
};
|
|
2739
2908
|
|
|
2740
2909
|
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
|
2741
2910
|
var f$1 = objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {
|
|
2742
|
-
return windowNames &&
|
|
2911
|
+
return windowNames && classof$6(it) == 'Window'
|
|
2743
2912
|
? getWindowNames(it)
|
|
2744
2913
|
: $getOwnPropertyNames$1(toIndexedObject$5(it));
|
|
2745
2914
|
};
|
|
@@ -2750,9 +2919,9 @@
|
|
|
2750
2919
|
|
|
2751
2920
|
var f = wellKnownSymbolWrapped.f = wellKnownSymbol$j;
|
|
2752
2921
|
|
|
2753
|
-
var global$
|
|
2922
|
+
var global$l = global$I;
|
|
2754
2923
|
|
|
2755
|
-
var path$1 = global$
|
|
2924
|
+
var path$1 = global$l;
|
|
2756
2925
|
|
|
2757
2926
|
var path = path$1;
|
|
2758
2927
|
var hasOwn$6 = hasOwnProperty_1;
|
|
@@ -2778,47 +2947,37 @@
|
|
|
2778
2947
|
}
|
|
2779
2948
|
};
|
|
2780
2949
|
|
|
2950
|
+
var uncurryThis$l = functionUncurryThis;
|
|
2781
2951
|
var aCallable$2 = aCallable$4;
|
|
2782
2952
|
|
|
2953
|
+
var bind$4 = uncurryThis$l(uncurryThis$l.bind);
|
|
2954
|
+
|
|
2783
2955
|
// optional / simple context binding
|
|
2784
|
-
var functionBindContext = function (fn, that
|
|
2956
|
+
var functionBindContext = function (fn, that) {
|
|
2785
2957
|
aCallable$2(fn);
|
|
2786
|
-
|
|
2787
|
-
switch (length) {
|
|
2788
|
-
case 0: return function () {
|
|
2789
|
-
return fn.call(that);
|
|
2790
|
-
};
|
|
2791
|
-
case 1: return function (a) {
|
|
2792
|
-
return fn.call(that, a);
|
|
2793
|
-
};
|
|
2794
|
-
case 2: return function (a, b) {
|
|
2795
|
-
return fn.call(that, a, b);
|
|
2796
|
-
};
|
|
2797
|
-
case 3: return function (a, b, c) {
|
|
2798
|
-
return fn.call(that, a, b, c);
|
|
2799
|
-
};
|
|
2800
|
-
}
|
|
2801
|
-
return function (/* ...args */) {
|
|
2958
|
+
return that === undefined ? fn : bind$4 ? bind$4(fn, that) : function (/* ...args */) {
|
|
2802
2959
|
return fn.apply(that, arguments);
|
|
2803
2960
|
};
|
|
2804
2961
|
};
|
|
2805
2962
|
|
|
2806
|
-
var
|
|
2963
|
+
var uncurryThis$k = functionUncurryThis;
|
|
2964
|
+
var fails$l = fails$r;
|
|
2807
2965
|
var isCallable$a = isCallable$l;
|
|
2808
|
-
var classof$
|
|
2966
|
+
var classof$5 = classof$8;
|
|
2809
2967
|
var getBuiltIn$2 = getBuiltIn$7;
|
|
2810
2968
|
var inspectSource = inspectSource$3;
|
|
2811
2969
|
|
|
2970
|
+
var noop = function () { /* empty */ };
|
|
2812
2971
|
var empty = [];
|
|
2813
2972
|
var construct = getBuiltIn$2('Reflect', 'construct');
|
|
2814
2973
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
2815
|
-
var exec$
|
|
2816
|
-
var INCORRECT_TO_STRING = !constructorRegExp.exec(
|
|
2974
|
+
var exec$2 = uncurryThis$k(constructorRegExp.exec);
|
|
2975
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
2817
2976
|
|
|
2818
2977
|
var isConstructorModern = function (argument) {
|
|
2819
2978
|
if (!isCallable$a(argument)) return false;
|
|
2820
2979
|
try {
|
|
2821
|
-
construct(
|
|
2980
|
+
construct(noop, empty, argument);
|
|
2822
2981
|
return true;
|
|
2823
2982
|
} catch (error) {
|
|
2824
2983
|
return false;
|
|
@@ -2827,17 +2986,17 @@
|
|
|
2827
2986
|
|
|
2828
2987
|
var isConstructorLegacy = function (argument) {
|
|
2829
2988
|
if (!isCallable$a(argument)) return false;
|
|
2830
|
-
switch (classof$
|
|
2989
|
+
switch (classof$5(argument)) {
|
|
2831
2990
|
case 'AsyncFunction':
|
|
2832
2991
|
case 'GeneratorFunction':
|
|
2833
2992
|
case 'AsyncGeneratorFunction': return false;
|
|
2834
2993
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
2835
|
-
} return INCORRECT_TO_STRING || !!exec$
|
|
2994
|
+
} return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
|
|
2836
2995
|
};
|
|
2837
2996
|
|
|
2838
2997
|
// `IsConstructor` abstract operation
|
|
2839
2998
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
2840
|
-
var isConstructor$3 = !construct || fails$
|
|
2999
|
+
var isConstructor$3 = !construct || fails$l(function () {
|
|
2841
3000
|
var called;
|
|
2842
3001
|
return isConstructorModern(isConstructorModern.call)
|
|
2843
3002
|
|| !isConstructorModern(Object)
|
|
@@ -2845,12 +3004,14 @@
|
|
|
2845
3004
|
|| called;
|
|
2846
3005
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
2847
3006
|
|
|
3007
|
+
var global$k = global$I;
|
|
2848
3008
|
var isArray$3 = isArray$4;
|
|
2849
3009
|
var isConstructor$2 = isConstructor$3;
|
|
2850
3010
|
var isObject$8 = isObject$e;
|
|
2851
3011
|
var wellKnownSymbol$h = wellKnownSymbol$n;
|
|
2852
3012
|
|
|
2853
3013
|
var SPECIES$4 = wellKnownSymbol$h('species');
|
|
3014
|
+
var Array$3 = global$k.Array;
|
|
2854
3015
|
|
|
2855
3016
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
2856
3017
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
@@ -2859,12 +3020,12 @@
|
|
|
2859
3020
|
if (isArray$3(originalArray)) {
|
|
2860
3021
|
C = originalArray.constructor;
|
|
2861
3022
|
// cross-realm fallback
|
|
2862
|
-
if (isConstructor$2(C) && (C === Array || isArray$3(C.prototype))) C = undefined;
|
|
3023
|
+
if (isConstructor$2(C) && (C === Array$3 || isArray$3(C.prototype))) C = undefined;
|
|
2863
3024
|
else if (isObject$8(C)) {
|
|
2864
3025
|
C = C[SPECIES$4];
|
|
2865
3026
|
if (C === null) C = undefined;
|
|
2866
3027
|
}
|
|
2867
|
-
} return C === undefined ? Array : C;
|
|
3028
|
+
} return C === undefined ? Array$3 : C;
|
|
2868
3029
|
};
|
|
2869
3030
|
|
|
2870
3031
|
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
@@ -2876,12 +3037,13 @@
|
|
|
2876
3037
|
};
|
|
2877
3038
|
|
|
2878
3039
|
var bind$3 = functionBindContext;
|
|
3040
|
+
var uncurryThis$j = functionUncurryThis;
|
|
2879
3041
|
var IndexedObject$2 = indexedObject;
|
|
2880
3042
|
var toObject$8 = toObject$a;
|
|
2881
3043
|
var lengthOfArrayLike$6 = lengthOfArrayLike$8;
|
|
2882
3044
|
var arraySpeciesCreate$2 = arraySpeciesCreate$3;
|
|
2883
3045
|
|
|
2884
|
-
var push = [].push;
|
|
3046
|
+
var push$4 = uncurryThis$j([].push);
|
|
2885
3047
|
|
|
2886
3048
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
2887
3049
|
var createMethod$3 = function (TYPE) {
|
|
@@ -2895,7 +3057,7 @@
|
|
|
2895
3057
|
return function ($this, callbackfn, that, specificCreate) {
|
|
2896
3058
|
var O = toObject$8($this);
|
|
2897
3059
|
var self = IndexedObject$2(O);
|
|
2898
|
-
var boundFunction = bind$3(callbackfn, that
|
|
3060
|
+
var boundFunction = bind$3(callbackfn, that);
|
|
2899
3061
|
var length = lengthOfArrayLike$6(self);
|
|
2900
3062
|
var index = 0;
|
|
2901
3063
|
var create = specificCreate || arraySpeciesCreate$2;
|
|
@@ -2910,10 +3072,10 @@
|
|
|
2910
3072
|
case 3: return true; // some
|
|
2911
3073
|
case 5: return value; // find
|
|
2912
3074
|
case 6: return index; // findIndex
|
|
2913
|
-
case 2: push
|
|
3075
|
+
case 2: push$4(target, value); // filter
|
|
2914
3076
|
} else switch (TYPE) {
|
|
2915
3077
|
case 4: return false; // every
|
|
2916
|
-
case 7: push
|
|
3078
|
+
case 7: push$4(target, value); // filterReject
|
|
2917
3079
|
}
|
|
2918
3080
|
}
|
|
2919
3081
|
}
|
|
@@ -2950,20 +3112,24 @@
|
|
|
2950
3112
|
|
|
2951
3113
|
'use strict';
|
|
2952
3114
|
var $$k = _export;
|
|
2953
|
-
var global$
|
|
3115
|
+
var global$j = global$I;
|
|
2954
3116
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
3117
|
+
var apply$1 = functionApply;
|
|
3118
|
+
var call$9 = functionCall;
|
|
3119
|
+
var uncurryThis$i = functionUncurryThis;
|
|
2955
3120
|
var IS_PURE$3 = isPure;
|
|
2956
3121
|
var DESCRIPTORS$6 = descriptors;
|
|
2957
|
-
var NATIVE_SYMBOL = nativeSymbol
|
|
2958
|
-
var fails$
|
|
3122
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
3123
|
+
var fails$k = fails$r;
|
|
2959
3124
|
var hasOwn$4 = hasOwnProperty_1;
|
|
2960
3125
|
var isArray$2 = isArray$4;
|
|
2961
3126
|
var isCallable$9 = isCallable$l;
|
|
2962
3127
|
var isObject$7 = isObject$e;
|
|
3128
|
+
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
2963
3129
|
var isSymbol = isSymbol$3;
|
|
2964
3130
|
var anObject$9 = anObject$e;
|
|
2965
3131
|
var toObject$7 = toObject$a;
|
|
2966
|
-
var toIndexedObject$4 = toIndexedObject$
|
|
3132
|
+
var toIndexedObject$4 = toIndexedObject$a;
|
|
2967
3133
|
var toPropertyKey$1 = toPropertyKey$4;
|
|
2968
3134
|
var $toString$1 = toString$b;
|
|
2969
3135
|
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
@@ -2975,6 +3141,7 @@
|
|
|
2975
3141
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
2976
3142
|
var definePropertyModule$3 = objectDefineProperty;
|
|
2977
3143
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
3144
|
+
var arraySlice$1 = arraySlice$3;
|
|
2978
3145
|
var redefine$8 = redefine$b.exports;
|
|
2979
3146
|
var shared$1 = shared$6.exports;
|
|
2980
3147
|
var sharedKey$1 = sharedKey$4;
|
|
@@ -2991,26 +3158,33 @@
|
|
|
2991
3158
|
var SYMBOL = 'Symbol';
|
|
2992
3159
|
var PROTOTYPE = 'prototype';
|
|
2993
3160
|
var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
|
|
3161
|
+
|
|
2994
3162
|
var setInternalState$3 = InternalStateModule$3.set;
|
|
2995
3163
|
var getInternalState$3 = InternalStateModule$3.getterFor(SYMBOL);
|
|
3164
|
+
|
|
2996
3165
|
var ObjectPrototype$1 = Object[PROTOTYPE];
|
|
2997
|
-
var $Symbol = global$
|
|
3166
|
+
var $Symbol = global$j.Symbol;
|
|
3167
|
+
var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE];
|
|
3168
|
+
var TypeError$9 = global$j.TypeError;
|
|
3169
|
+
var QObject = global$j.QObject;
|
|
2998
3170
|
var $stringify = getBuiltIn$1('JSON', 'stringify');
|
|
2999
3171
|
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
3000
3172
|
var nativeDefineProperty = definePropertyModule$3.f;
|
|
3001
3173
|
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
|
|
3002
3174
|
var nativePropertyIsEnumerable = propertyIsEnumerableModule$1.f;
|
|
3175
|
+
var push$3 = uncurryThis$i([].push);
|
|
3176
|
+
|
|
3003
3177
|
var AllSymbols = shared$1('symbols');
|
|
3004
3178
|
var ObjectPrototypeSymbols = shared$1('op-symbols');
|
|
3005
3179
|
var StringToSymbolRegistry = shared$1('string-to-symbol-registry');
|
|
3006
3180
|
var SymbolToStringRegistry = shared$1('symbol-to-string-registry');
|
|
3007
3181
|
var WellKnownSymbolsStore = shared$1('wks');
|
|
3008
|
-
|
|
3182
|
+
|
|
3009
3183
|
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
|
3010
3184
|
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
|
3011
3185
|
|
|
3012
3186
|
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
|
3013
|
-
var setSymbolDescriptor = DESCRIPTORS$6 && fails$
|
|
3187
|
+
var setSymbolDescriptor = DESCRIPTORS$6 && fails$k(function () {
|
|
3014
3188
|
return nativeObjectCreate(nativeDefineProperty({}, 'a', {
|
|
3015
3189
|
get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
|
|
3016
3190
|
})).a != 7;
|
|
@@ -3024,7 +3198,7 @@
|
|
|
3024
3198
|
} : nativeDefineProperty;
|
|
3025
3199
|
|
|
3026
3200
|
var wrap = function (tag, description) {
|
|
3027
|
-
var symbol = AllSymbols[tag] = nativeObjectCreate($
|
|
3201
|
+
var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype$1);
|
|
3028
3202
|
setInternalState$3(symbol, {
|
|
3029
3203
|
type: SYMBOL,
|
|
3030
3204
|
tag: tag,
|
|
@@ -3055,7 +3229,7 @@
|
|
|
3055
3229
|
var properties = toIndexedObject$4(Properties);
|
|
3056
3230
|
var keys = objectKeys$2(properties).concat($getOwnPropertySymbols(properties));
|
|
3057
3231
|
$forEach(keys, function (key) {
|
|
3058
|
-
if (!DESCRIPTORS$6 || $propertyIsEnumerable
|
|
3232
|
+
if (!DESCRIPTORS$6 || call$9($propertyIsEnumerable$1, properties, key)) $defineProperty(O, key, properties[key]);
|
|
3059
3233
|
});
|
|
3060
3234
|
return O;
|
|
3061
3235
|
};
|
|
@@ -3064,9 +3238,9 @@
|
|
|
3064
3238
|
return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
|
|
3065
3239
|
};
|
|
3066
3240
|
|
|
3067
|
-
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
|
3241
|
+
var $propertyIsEnumerable$1 = function propertyIsEnumerable(V) {
|
|
3068
3242
|
var P = toPropertyKey$1(V);
|
|
3069
|
-
var enumerable =
|
|
3243
|
+
var enumerable = call$9(nativePropertyIsEnumerable, this, P);
|
|
3070
3244
|
if (this === ObjectPrototype$1 && hasOwn$4(AllSymbols, P) && !hasOwn$4(ObjectPrototypeSymbols, P)) return false;
|
|
3071
3245
|
return enumerable || !hasOwn$4(this, P) || !hasOwn$4(AllSymbols, P) || hasOwn$4(this, HIDDEN) && this[HIDDEN][P]
|
|
3072
3246
|
? enumerable : true;
|
|
@@ -3087,7 +3261,7 @@
|
|
|
3087
3261
|
var names = nativeGetOwnPropertyNames(toIndexedObject$4(O));
|
|
3088
3262
|
var result = [];
|
|
3089
3263
|
$forEach(names, function (key) {
|
|
3090
|
-
if (!hasOwn$4(AllSymbols, key) && !hasOwn$4(hiddenKeys$1, key))
|
|
3264
|
+
if (!hasOwn$4(AllSymbols, key) && !hasOwn$4(hiddenKeys$1, key)) push$3(result, key);
|
|
3091
3265
|
});
|
|
3092
3266
|
return result;
|
|
3093
3267
|
};
|
|
@@ -3098,7 +3272,7 @@
|
|
|
3098
3272
|
var result = [];
|
|
3099
3273
|
$forEach(names, function (key) {
|
|
3100
3274
|
if (hasOwn$4(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn$4(ObjectPrototype$1, key))) {
|
|
3101
|
-
|
|
3275
|
+
push$3(result, AllSymbols[key]);
|
|
3102
3276
|
}
|
|
3103
3277
|
});
|
|
3104
3278
|
return result;
|
|
@@ -3106,13 +3280,13 @@
|
|
|
3106
3280
|
|
|
3107
3281
|
// `Symbol` constructor
|
|
3108
3282
|
// https://tc39.es/ecma262/#sec-symbol-constructor
|
|
3109
|
-
if (!NATIVE_SYMBOL) {
|
|
3283
|
+
if (!NATIVE_SYMBOL$1) {
|
|
3110
3284
|
$Symbol = function Symbol() {
|
|
3111
|
-
if (this
|
|
3285
|
+
if (isPrototypeOf$5(SymbolPrototype$1, this)) throw TypeError$9('Symbol is not a constructor');
|
|
3112
3286
|
var description = !arguments.length || arguments[0] === undefined ? undefined : $toString$1(arguments[0]);
|
|
3113
3287
|
var tag = uid$1(description);
|
|
3114
3288
|
var setter = function (value) {
|
|
3115
|
-
if (this === ObjectPrototype$1)
|
|
3289
|
+
if (this === ObjectPrototype$1) call$9(setter, ObjectPrototypeSymbols, value);
|
|
3116
3290
|
if (hasOwn$4(this, HIDDEN) && hasOwn$4(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
3117
3291
|
setSymbolDescriptor(this, tag, createPropertyDescriptor$2(1, value));
|
|
3118
3292
|
};
|
|
@@ -3120,7 +3294,9 @@
|
|
|
3120
3294
|
return wrap(tag, description);
|
|
3121
3295
|
};
|
|
3122
3296
|
|
|
3123
|
-
|
|
3297
|
+
SymbolPrototype$1 = $Symbol[PROTOTYPE];
|
|
3298
|
+
|
|
3299
|
+
redefine$8(SymbolPrototype$1, 'toString', function toString() {
|
|
3124
3300
|
return getInternalState$3(this).tag;
|
|
3125
3301
|
});
|
|
3126
3302
|
|
|
@@ -3128,7 +3304,7 @@
|
|
|
3128
3304
|
return wrap(uid$1(description), description);
|
|
3129
3305
|
});
|
|
3130
3306
|
|
|
3131
|
-
propertyIsEnumerableModule$1.f = $propertyIsEnumerable;
|
|
3307
|
+
propertyIsEnumerableModule$1.f = $propertyIsEnumerable$1;
|
|
3132
3308
|
definePropertyModule$3.f = $defineProperty;
|
|
3133
3309
|
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
|
|
3134
3310
|
getOwnPropertyNamesModule$1.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
|
|
@@ -3140,19 +3316,19 @@
|
|
|
3140
3316
|
|
|
3141
3317
|
if (DESCRIPTORS$6) {
|
|
3142
3318
|
// https://github.com/tc39/proposal-Symbol-description
|
|
3143
|
-
nativeDefineProperty($
|
|
3319
|
+
nativeDefineProperty(SymbolPrototype$1, 'description', {
|
|
3144
3320
|
configurable: true,
|
|
3145
3321
|
get: function description() {
|
|
3146
3322
|
return getInternalState$3(this).description;
|
|
3147
3323
|
}
|
|
3148
3324
|
});
|
|
3149
3325
|
if (!IS_PURE$3) {
|
|
3150
|
-
redefine$8(ObjectPrototype$1, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
|
3326
|
+
redefine$8(ObjectPrototype$1, 'propertyIsEnumerable', $propertyIsEnumerable$1, { unsafe: true });
|
|
3151
3327
|
}
|
|
3152
3328
|
}
|
|
3153
3329
|
}
|
|
3154
3330
|
|
|
3155
|
-
$$k({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
|
3331
|
+
$$k({ global: true, wrap: true, forced: !NATIVE_SYMBOL$1, sham: !NATIVE_SYMBOL$1 }, {
|
|
3156
3332
|
Symbol: $Symbol
|
|
3157
3333
|
});
|
|
3158
3334
|
|
|
@@ -3160,7 +3336,7 @@
|
|
|
3160
3336
|
defineWellKnownSymbol(name);
|
|
3161
3337
|
});
|
|
3162
3338
|
|
|
3163
|
-
$$k({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
|
3339
|
+
$$k({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL$1 }, {
|
|
3164
3340
|
// `Symbol.for` method
|
|
3165
3341
|
// https://tc39.es/ecma262/#sec-symbol.for
|
|
3166
3342
|
'for': function (key) {
|
|
@@ -3174,14 +3350,14 @@
|
|
|
3174
3350
|
// `Symbol.keyFor` method
|
|
3175
3351
|
// https://tc39.es/ecma262/#sec-symbol.keyfor
|
|
3176
3352
|
keyFor: function keyFor(sym) {
|
|
3177
|
-
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
|
|
3353
|
+
if (!isSymbol(sym)) throw TypeError$9(sym + ' is not a symbol');
|
|
3178
3354
|
if (hasOwn$4(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
|
3179
3355
|
},
|
|
3180
3356
|
useSetter: function () { USE_SETTER = true; },
|
|
3181
3357
|
useSimple: function () { USE_SETTER = false; }
|
|
3182
3358
|
});
|
|
3183
3359
|
|
|
3184
|
-
$$k({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS$6 }, {
|
|
3360
|
+
$$k({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$1, sham: !DESCRIPTORS$6 }, {
|
|
3185
3361
|
// `Object.create` method
|
|
3186
3362
|
// https://tc39.es/ecma262/#sec-object.create
|
|
3187
3363
|
create: $create,
|
|
@@ -3196,7 +3372,7 @@
|
|
|
3196
3372
|
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
|
3197
3373
|
});
|
|
3198
3374
|
|
|
3199
|
-
$$k({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
|
|
3375
|
+
$$k({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$1 }, {
|
|
3200
3376
|
// `Object.getOwnPropertyNames` method
|
|
3201
3377
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
3202
3378
|
getOwnPropertyNames: $getOwnPropertyNames,
|
|
@@ -3207,7 +3383,7 @@
|
|
|
3207
3383
|
|
|
3208
3384
|
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
|
|
3209
3385
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
|
|
3210
|
-
$$k({ target: 'Object', stat: true, forced: fails$
|
|
3386
|
+
$$k({ target: 'Object', stat: true, forced: fails$k(function () { getOwnPropertySymbolsModule$1.f(1); }) }, {
|
|
3211
3387
|
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
|
3212
3388
|
return getOwnPropertySymbolsModule$1.f(toObject$7(it));
|
|
3213
3389
|
}
|
|
@@ -3216,7 +3392,7 @@
|
|
|
3216
3392
|
// `JSON.stringify` method behavior with symbols
|
|
3217
3393
|
// https://tc39.es/ecma262/#sec-json.stringify
|
|
3218
3394
|
if ($stringify) {
|
|
3219
|
-
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails$
|
|
3395
|
+
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL$1 || fails$k(function () {
|
|
3220
3396
|
var symbol = $Symbol();
|
|
3221
3397
|
// MS Edge converts symbol values to JSON as {}
|
|
3222
3398
|
return $stringify([symbol]) != '[null]'
|
|
@@ -3229,28 +3405,27 @@
|
|
|
3229
3405
|
$$k({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
|
|
3230
3406
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
3231
3407
|
stringify: function stringify(it, replacer, space) {
|
|
3232
|
-
var args =
|
|
3233
|
-
var
|
|
3234
|
-
var $replacer;
|
|
3235
|
-
while (arguments.length > index) args.push(arguments[index++]);
|
|
3236
|
-
$replacer = replacer;
|
|
3408
|
+
var args = arraySlice$1(arguments);
|
|
3409
|
+
var $replacer = replacer;
|
|
3237
3410
|
if (!isObject$7(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
|
3238
3411
|
if (!isArray$2(replacer)) replacer = function (key, value) {
|
|
3239
|
-
if (isCallable$9($replacer)) value = $replacer
|
|
3412
|
+
if (isCallable$9($replacer)) value = call$9($replacer, this, key, value);
|
|
3240
3413
|
if (!isSymbol(value)) return value;
|
|
3241
3414
|
};
|
|
3242
3415
|
args[1] = replacer;
|
|
3243
|
-
return $stringify
|
|
3416
|
+
return apply$1($stringify, null, args);
|
|
3244
3417
|
}
|
|
3245
3418
|
});
|
|
3246
3419
|
}
|
|
3247
3420
|
|
|
3248
3421
|
// `Symbol.prototype[@@toPrimitive]` method
|
|
3249
3422
|
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
|
|
3250
|
-
if (
|
|
3251
|
-
var valueOf = $
|
|
3252
|
-
|
|
3253
|
-
|
|
3423
|
+
if (!SymbolPrototype$1[TO_PRIMITIVE]) {
|
|
3424
|
+
var valueOf = SymbolPrototype$1.valueOf;
|
|
3425
|
+
// eslint-disable-next-line no-unused-vars -- required for .length
|
|
3426
|
+
redefine$8(SymbolPrototype$1, TO_PRIMITIVE, function (hint) {
|
|
3427
|
+
// TODO: improve hint logic
|
|
3428
|
+
return call$9(valueOf, this);
|
|
3254
3429
|
});
|
|
3255
3430
|
}
|
|
3256
3431
|
// `Symbol.prototype[@@toStringTag]` property
|
|
@@ -3266,44 +3441,52 @@
|
|
|
3266
3441
|
'use strict';
|
|
3267
3442
|
var $$j = _export;
|
|
3268
3443
|
var DESCRIPTORS$5 = descriptors;
|
|
3269
|
-
var global$
|
|
3444
|
+
var global$i = global$I;
|
|
3445
|
+
var uncurryThis$h = functionUncurryThis;
|
|
3270
3446
|
var hasOwn$3 = hasOwnProperty_1;
|
|
3271
3447
|
var isCallable$8 = isCallable$l;
|
|
3272
|
-
var
|
|
3448
|
+
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
3449
|
+
var toString$a = toString$b;
|
|
3273
3450
|
var defineProperty$4 = objectDefineProperty.f;
|
|
3274
3451
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
3275
3452
|
|
|
3276
|
-
var NativeSymbol = global$
|
|
3453
|
+
var NativeSymbol = global$i.Symbol;
|
|
3454
|
+
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
3277
3455
|
|
|
3278
|
-
if (DESCRIPTORS$5 && isCallable$8(NativeSymbol) && (!('description' in
|
|
3456
|
+
if (DESCRIPTORS$5 && isCallable$8(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
3279
3457
|
// Safari 12 bug
|
|
3280
3458
|
NativeSymbol().description !== undefined
|
|
3281
3459
|
)) {
|
|
3282
3460
|
var EmptyStringDescriptionStore = {};
|
|
3283
3461
|
// wrap Symbol constructor for correct work with undefined description
|
|
3284
3462
|
var SymbolWrapper = function Symbol() {
|
|
3285
|
-
var description = arguments.length < 1 || arguments[0] === undefined ? undefined :
|
|
3286
|
-
var result = this
|
|
3463
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$a(arguments[0]);
|
|
3464
|
+
var result = isPrototypeOf$4(SymbolPrototype, this)
|
|
3287
3465
|
? new NativeSymbol(description)
|
|
3288
3466
|
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
3289
3467
|
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
|
3290
3468
|
if (description === '') EmptyStringDescriptionStore[result] = true;
|
|
3291
3469
|
return result;
|
|
3292
3470
|
};
|
|
3471
|
+
|
|
3293
3472
|
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
|
3294
|
-
|
|
3295
|
-
|
|
3473
|
+
SymbolWrapper.prototype = SymbolPrototype;
|
|
3474
|
+
SymbolPrototype.constructor = SymbolWrapper;
|
|
3296
3475
|
|
|
3297
|
-
var
|
|
3298
|
-
var
|
|
3476
|
+
var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
|
|
3477
|
+
var symbolToString = uncurryThis$h(SymbolPrototype.toString);
|
|
3478
|
+
var symbolValueOf = uncurryThis$h(SymbolPrototype.valueOf);
|
|
3299
3479
|
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
3300
|
-
|
|
3480
|
+
var replace$5 = uncurryThis$h(''.replace);
|
|
3481
|
+
var stringSlice$6 = uncurryThis$h(''.slice);
|
|
3482
|
+
|
|
3483
|
+
defineProperty$4(SymbolPrototype, 'description', {
|
|
3301
3484
|
configurable: true,
|
|
3302
3485
|
get: function description() {
|
|
3303
|
-
var symbol =
|
|
3304
|
-
var string = symbolToString
|
|
3486
|
+
var symbol = symbolValueOf(this);
|
|
3487
|
+
var string = symbolToString(symbol);
|
|
3305
3488
|
if (hasOwn$3(EmptyStringDescriptionStore, symbol)) return '';
|
|
3306
|
-
var desc =
|
|
3489
|
+
var desc = NATIVE_SYMBOL ? stringSlice$6(string, 7, -1) : replace$5(string, regexp, '$1');
|
|
3307
3490
|
return desc === '' ? undefined : desc;
|
|
3308
3491
|
}
|
|
3309
3492
|
});
|
|
@@ -3317,12 +3500,12 @@
|
|
|
3317
3500
|
|
|
3318
3501
|
'use strict';
|
|
3319
3502
|
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
3320
|
-
var classof$
|
|
3503
|
+
var classof$4 = classof$8;
|
|
3321
3504
|
|
|
3322
3505
|
// `Object.prototype.toString` method implementation
|
|
3323
3506
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
3324
3507
|
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
3325
|
-
return '[object ' + classof$
|
|
3508
|
+
return '[object ' + classof$4(this) + ']';
|
|
3326
3509
|
};
|
|
3327
3510
|
|
|
3328
3511
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
@@ -3338,9 +3521,13 @@
|
|
|
3338
3521
|
var es_object_entries = {};
|
|
3339
3522
|
|
|
3340
3523
|
var DESCRIPTORS$4 = descriptors;
|
|
3524
|
+
var uncurryThis$g = functionUncurryThis;
|
|
3341
3525
|
var objectKeys$1 = objectKeys$4;
|
|
3342
|
-
var toIndexedObject$3 = toIndexedObject$
|
|
3343
|
-
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
3526
|
+
var toIndexedObject$3 = toIndexedObject$a;
|
|
3527
|
+
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
3528
|
+
|
|
3529
|
+
var propertyIsEnumerable = uncurryThis$g($propertyIsEnumerable);
|
|
3530
|
+
var push$2 = uncurryThis$g([].push);
|
|
3344
3531
|
|
|
3345
3532
|
// `Object.{ entries, values }` methods implementation
|
|
3346
3533
|
var createMethod$2 = function (TO_ENTRIES) {
|
|
@@ -3353,8 +3540,8 @@
|
|
|
3353
3540
|
var key;
|
|
3354
3541
|
while (length > i) {
|
|
3355
3542
|
key = keys[i++];
|
|
3356
|
-
if (!DESCRIPTORS$4 || propertyIsEnumerable
|
|
3357
|
-
|
|
3543
|
+
if (!DESCRIPTORS$4 || propertyIsEnumerable(O, key)) {
|
|
3544
|
+
push$2(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
|
3358
3545
|
}
|
|
3359
3546
|
}
|
|
3360
3547
|
return result;
|
|
@@ -3394,7 +3581,7 @@
|
|
|
3394
3581
|
else object[propertyKey] = value;
|
|
3395
3582
|
};
|
|
3396
3583
|
|
|
3397
|
-
var fails$
|
|
3584
|
+
var fails$j = fails$r;
|
|
3398
3585
|
var wellKnownSymbol$f = wellKnownSymbol$n;
|
|
3399
3586
|
var V8_VERSION$1 = engineV8Version;
|
|
3400
3587
|
|
|
@@ -3404,7 +3591,7 @@
|
|
|
3404
3591
|
// We can't use this feature detection in V8 since it causes
|
|
3405
3592
|
// deoptimization and serious performance degradation
|
|
3406
3593
|
// https://github.com/zloirock/core-js/issues/677
|
|
3407
|
-
return V8_VERSION$1 >= 51 || !fails$
|
|
3594
|
+
return V8_VERSION$1 >= 51 || !fails$j(function () {
|
|
3408
3595
|
var array = [];
|
|
3409
3596
|
var constructor = array.constructor = {};
|
|
3410
3597
|
constructor[SPECIES$3] = function () {
|
|
@@ -3416,9 +3603,10 @@
|
|
|
3416
3603
|
|
|
3417
3604
|
'use strict';
|
|
3418
3605
|
var $$h = _export;
|
|
3419
|
-
var
|
|
3606
|
+
var global$h = global$I;
|
|
3607
|
+
var fails$i = fails$r;
|
|
3420
3608
|
var isArray$1 = isArray$4;
|
|
3421
|
-
var isObject$
|
|
3609
|
+
var isObject$6 = isObject$e;
|
|
3422
3610
|
var toObject$6 = toObject$a;
|
|
3423
3611
|
var lengthOfArrayLike$5 = lengthOfArrayLike$8;
|
|
3424
3612
|
var createProperty$3 = createProperty$4;
|
|
@@ -3430,11 +3618,12 @@
|
|
|
3430
3618
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol$e('isConcatSpreadable');
|
|
3431
3619
|
var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF;
|
|
3432
3620
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
3621
|
+
var TypeError$8 = global$h.TypeError;
|
|
3433
3622
|
|
|
3434
3623
|
// We can't use this feature detection in V8 since it causes
|
|
3435
3624
|
// deoptimization and serious performance degradation
|
|
3436
3625
|
// https://github.com/zloirock/core-js/issues/679
|
|
3437
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$
|
|
3626
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$i(function () {
|
|
3438
3627
|
var array = [];
|
|
3439
3628
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
3440
3629
|
return array.concat()[0] !== array;
|
|
@@ -3443,7 +3632,7 @@
|
|
|
3443
3632
|
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$4('concat');
|
|
3444
3633
|
|
|
3445
3634
|
var isConcatSpreadable = function (O) {
|
|
3446
|
-
if (!isObject$
|
|
3635
|
+
if (!isObject$6(O)) return false;
|
|
3447
3636
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
3448
3637
|
return spreadable !== undefined ? !!spreadable : isArray$1(O);
|
|
3449
3638
|
};
|
|
@@ -3464,10 +3653,10 @@
|
|
|
3464
3653
|
E = i === -1 ? O : arguments[i];
|
|
3465
3654
|
if (isConcatSpreadable(E)) {
|
|
3466
3655
|
len = lengthOfArrayLike$5(E);
|
|
3467
|
-
if (n + len > MAX_SAFE_INTEGER$1) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
3656
|
+
if (n + len > MAX_SAFE_INTEGER$1) throw TypeError$8(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
3468
3657
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty$3(A, n, E[k]);
|
|
3469
3658
|
} else {
|
|
3470
|
-
if (n >= MAX_SAFE_INTEGER$1) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
3659
|
+
if (n >= MAX_SAFE_INTEGER$1) throw TypeError$8(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
3471
3660
|
createProperty$3(A, n++, E);
|
|
3472
3661
|
}
|
|
3473
3662
|
}
|
|
@@ -3479,11 +3668,11 @@
|
|
|
3479
3668
|
var es_array_join = {};
|
|
3480
3669
|
|
|
3481
3670
|
'use strict';
|
|
3482
|
-
var fails$
|
|
3671
|
+
var fails$h = fails$r;
|
|
3483
3672
|
|
|
3484
3673
|
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
3485
3674
|
var method = [][METHOD_NAME];
|
|
3486
|
-
return !!method && fails$
|
|
3675
|
+
return !!method && fails$h(function () {
|
|
3487
3676
|
// eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
|
|
3488
3677
|
method.call(null, argument || function () { throw 1; }, 1);
|
|
3489
3678
|
});
|
|
@@ -3491,11 +3680,12 @@
|
|
|
3491
3680
|
|
|
3492
3681
|
'use strict';
|
|
3493
3682
|
var $$g = _export;
|
|
3683
|
+
var uncurryThis$f = functionUncurryThis;
|
|
3494
3684
|
var IndexedObject$1 = indexedObject;
|
|
3495
|
-
var toIndexedObject$2 = toIndexedObject$
|
|
3685
|
+
var toIndexedObject$2 = toIndexedObject$a;
|
|
3496
3686
|
var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
|
|
3497
3687
|
|
|
3498
|
-
var
|
|
3688
|
+
var un$Join = uncurryThis$f([].join);
|
|
3499
3689
|
|
|
3500
3690
|
var ES3_STRINGS = IndexedObject$1 != Object;
|
|
3501
3691
|
var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
|
|
@@ -3504,12 +3694,13 @@
|
|
|
3504
3694
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
3505
3695
|
$$g({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
|
|
3506
3696
|
join: function join(separator) {
|
|
3507
|
-
return
|
|
3697
|
+
return un$Join(toIndexedObject$2(this), separator === undefined ? ',' : separator);
|
|
3508
3698
|
}
|
|
3509
3699
|
});
|
|
3510
3700
|
|
|
3511
3701
|
var es_array_from = {};
|
|
3512
3702
|
|
|
3703
|
+
var call$8 = functionCall;
|
|
3513
3704
|
var anObject$8 = anObject$e;
|
|
3514
3705
|
var getMethod$2 = getMethod$4;
|
|
3515
3706
|
|
|
@@ -3522,7 +3713,7 @@
|
|
|
3522
3713
|
if (kind === 'throw') throw value;
|
|
3523
3714
|
return value;
|
|
3524
3715
|
}
|
|
3525
|
-
innerResult =
|
|
3716
|
+
innerResult = call$8(innerResult, iterator);
|
|
3526
3717
|
} catch (error) {
|
|
3527
3718
|
innerError = true;
|
|
3528
3719
|
innerResult = error;
|
|
@@ -3558,7 +3749,7 @@
|
|
|
3558
3749
|
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$5] === it);
|
|
3559
3750
|
};
|
|
3560
3751
|
|
|
3561
|
-
var classof$
|
|
3752
|
+
var classof$3 = classof$8;
|
|
3562
3753
|
var getMethod$1 = getMethod$4;
|
|
3563
3754
|
var Iterators$3 = iterators;
|
|
3564
3755
|
var wellKnownSymbol$c = wellKnownSymbol$n;
|
|
@@ -3568,21 +3759,28 @@
|
|
|
3568
3759
|
var getIteratorMethod$3 = function (it) {
|
|
3569
3760
|
if (it != undefined) return getMethod$1(it, ITERATOR$4)
|
|
3570
3761
|
|| getMethod$1(it, '@@iterator')
|
|
3571
|
-
|| Iterators$3[classof$
|
|
3762
|
+
|| Iterators$3[classof$3(it)];
|
|
3572
3763
|
};
|
|
3573
3764
|
|
|
3765
|
+
var global$g = global$I;
|
|
3766
|
+
var call$7 = functionCall;
|
|
3574
3767
|
var aCallable$1 = aCallable$4;
|
|
3575
3768
|
var anObject$6 = anObject$e;
|
|
3769
|
+
var tryToString$1 = tryToString$3;
|
|
3576
3770
|
var getIteratorMethod$2 = getIteratorMethod$3;
|
|
3577
3771
|
|
|
3772
|
+
var TypeError$7 = global$g.TypeError;
|
|
3773
|
+
|
|
3578
3774
|
var getIterator$2 = function (argument, usingIterator) {
|
|
3579
3775
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
|
|
3580
|
-
if (aCallable$1(iteratorMethod)) return anObject$6(
|
|
3581
|
-
throw TypeError(
|
|
3776
|
+
if (aCallable$1(iteratorMethod)) return anObject$6(call$7(iteratorMethod, argument));
|
|
3777
|
+
throw TypeError$7(tryToString$1(argument) + ' is not iterable');
|
|
3582
3778
|
};
|
|
3583
3779
|
|
|
3584
3780
|
'use strict';
|
|
3781
|
+
var global$f = global$I;
|
|
3585
3782
|
var bind$2 = functionBindContext;
|
|
3783
|
+
var call$6 = functionCall;
|
|
3586
3784
|
var toObject$5 = toObject$a;
|
|
3587
3785
|
var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
|
|
3588
3786
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
@@ -3592,6 +3790,8 @@
|
|
|
3592
3790
|
var getIterator$1 = getIterator$2;
|
|
3593
3791
|
var getIteratorMethod$1 = getIteratorMethod$3;
|
|
3594
3792
|
|
|
3793
|
+
var Array$2 = global$f.Array;
|
|
3794
|
+
|
|
3595
3795
|
// `Array.from` method implementation
|
|
3596
3796
|
// https://tc39.es/ecma262/#sec-array.from
|
|
3597
3797
|
var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
|
|
@@ -3600,22 +3800,22 @@
|
|
|
3600
3800
|
var argumentsLength = arguments.length;
|
|
3601
3801
|
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
|
3602
3802
|
var mapping = mapfn !== undefined;
|
|
3603
|
-
if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined
|
|
3803
|
+
if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
|
|
3604
3804
|
var iteratorMethod = getIteratorMethod$1(O);
|
|
3605
3805
|
var index = 0;
|
|
3606
3806
|
var length, result, step, iterator, next, value;
|
|
3607
3807
|
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
|
3608
|
-
if (iteratorMethod && !(this == Array && isArrayIteratorMethod$1(iteratorMethod))) {
|
|
3808
|
+
if (iteratorMethod && !(this == Array$2 && isArrayIteratorMethod$1(iteratorMethod))) {
|
|
3609
3809
|
iterator = getIterator$1(O, iteratorMethod);
|
|
3610
3810
|
next = iterator.next;
|
|
3611
3811
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
3612
|
-
for (;!(step =
|
|
3812
|
+
for (;!(step = call$6(next, iterator)).done; index++) {
|
|
3613
3813
|
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
|
3614
3814
|
createProperty$2(result, index, value);
|
|
3615
3815
|
}
|
|
3616
3816
|
} else {
|
|
3617
3817
|
length = lengthOfArrayLike$4(O);
|
|
3618
|
-
result = IS_CONSTRUCTOR ? new this(length) : Array(length);
|
|
3818
|
+
result = IS_CONSTRUCTOR ? new this(length) : Array$2(length);
|
|
3619
3819
|
for (;length > index; index++) {
|
|
3620
3820
|
value = mapping ? mapfn(O[index], index) : O[index];
|
|
3621
3821
|
createProperty$2(result, index, value);
|
|
@@ -3681,10 +3881,15 @@
|
|
|
3681
3881
|
|
|
3682
3882
|
var es_string_iterator = {};
|
|
3683
3883
|
|
|
3884
|
+
var uncurryThis$e = functionUncurryThis;
|
|
3684
3885
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$5;
|
|
3685
3886
|
var toString$8 = toString$b;
|
|
3686
3887
|
var requireObjectCoercible$4 = requireObjectCoercible$7;
|
|
3687
3888
|
|
|
3889
|
+
var charAt$5 = uncurryThis$e(''.charAt);
|
|
3890
|
+
var charCodeAt = uncurryThis$e(''.charCodeAt);
|
|
3891
|
+
var stringSlice$5 = uncurryThis$e(''.slice);
|
|
3892
|
+
|
|
3688
3893
|
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
3689
3894
|
return function ($this, pos) {
|
|
3690
3895
|
var S = toString$8(requireObjectCoercible$4($this));
|
|
@@ -3692,11 +3897,15 @@
|
|
|
3692
3897
|
var size = S.length;
|
|
3693
3898
|
var first, second;
|
|
3694
3899
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
3695
|
-
first =
|
|
3900
|
+
first = charCodeAt(S, position);
|
|
3696
3901
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3697
|
-
|| (second =
|
|
3698
|
-
? CONVERT_TO_STRING
|
|
3699
|
-
|
|
3902
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3903
|
+
? CONVERT_TO_STRING
|
|
3904
|
+
? charAt$5(S, position)
|
|
3905
|
+
: first
|
|
3906
|
+
: CONVERT_TO_STRING
|
|
3907
|
+
? stringSlice$5(S, position, position + 2)
|
|
3908
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3700
3909
|
};
|
|
3701
3910
|
};
|
|
3702
3911
|
|
|
@@ -3709,15 +3918,16 @@
|
|
|
3709
3918
|
charAt: createMethod$1(true)
|
|
3710
3919
|
};
|
|
3711
3920
|
|
|
3712
|
-
var fails$
|
|
3921
|
+
var fails$g = fails$r;
|
|
3713
3922
|
|
|
3714
|
-
var correctPrototypeGetter = !fails$
|
|
3923
|
+
var correctPrototypeGetter = !fails$g(function () {
|
|
3715
3924
|
function F() { /* empty */ }
|
|
3716
3925
|
F.prototype.constructor = null;
|
|
3717
3926
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
3718
3927
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
3719
3928
|
});
|
|
3720
3929
|
|
|
3930
|
+
var global$e = global$I;
|
|
3721
3931
|
var hasOwn$2 = hasOwnProperty_1;
|
|
3722
3932
|
var isCallable$7 = isCallable$l;
|
|
3723
3933
|
var toObject$4 = toObject$a;
|
|
@@ -3725,22 +3935,22 @@
|
|
|
3725
3935
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
3726
3936
|
|
|
3727
3937
|
var IE_PROTO = sharedKey('IE_PROTO');
|
|
3728
|
-
var
|
|
3938
|
+
var Object$1 = global$e.Object;
|
|
3939
|
+
var ObjectPrototype = Object$1.prototype;
|
|
3729
3940
|
|
|
3730
3941
|
// `Object.getPrototypeOf` method
|
|
3731
3942
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
3732
|
-
|
|
3733
|
-
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
|
|
3943
|
+
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
|
|
3734
3944
|
var object = toObject$4(O);
|
|
3735
3945
|
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
3736
3946
|
var constructor = object.constructor;
|
|
3737
3947
|
if (isCallable$7(constructor) && object instanceof constructor) {
|
|
3738
3948
|
return constructor.prototype;
|
|
3739
|
-
} return object instanceof Object ? ObjectPrototype : null;
|
|
3949
|
+
} return object instanceof Object$1 ? ObjectPrototype : null;
|
|
3740
3950
|
};
|
|
3741
3951
|
|
|
3742
3952
|
'use strict';
|
|
3743
|
-
var fails$
|
|
3953
|
+
var fails$f = fails$r;
|
|
3744
3954
|
var isCallable$6 = isCallable$l;
|
|
3745
3955
|
var create$4 = objectCreate;
|
|
3746
3956
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -3766,7 +3976,7 @@
|
|
|
3766
3976
|
}
|
|
3767
3977
|
}
|
|
3768
3978
|
|
|
3769
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$
|
|
3979
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$f(function () {
|
|
3770
3980
|
var test = {};
|
|
3771
3981
|
// FF44- legacy iterators case
|
|
3772
3982
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -3805,15 +4015,20 @@
|
|
|
3805
4015
|
return IteratorConstructor;
|
|
3806
4016
|
};
|
|
3807
4017
|
|
|
4018
|
+
var global$d = global$I;
|
|
3808
4019
|
var isCallable$5 = isCallable$l;
|
|
3809
4020
|
|
|
4021
|
+
var String$1 = global$d.String;
|
|
4022
|
+
var TypeError$6 = global$d.TypeError;
|
|
4023
|
+
|
|
3810
4024
|
var aPossiblePrototype$1 = function (argument) {
|
|
3811
|
-
if (typeof argument
|
|
3812
|
-
throw TypeError("Can't set " + String(argument) + ' as a prototype');
|
|
4025
|
+
if (typeof argument == 'object' || isCallable$5(argument)) return argument;
|
|
4026
|
+
throw TypeError$6("Can't set " + String$1(argument) + ' as a prototype');
|
|
3813
4027
|
};
|
|
3814
4028
|
|
|
3815
4029
|
/* eslint-disable no-proto -- safe */
|
|
3816
4030
|
|
|
4031
|
+
var uncurryThis$d = functionUncurryThis;
|
|
3817
4032
|
var anObject$5 = anObject$e;
|
|
3818
4033
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
3819
4034
|
|
|
@@ -3827,14 +4042,14 @@
|
|
|
3827
4042
|
var setter;
|
|
3828
4043
|
try {
|
|
3829
4044
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3830
|
-
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
|
3831
|
-
setter
|
|
4045
|
+
setter = uncurryThis$d(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
4046
|
+
setter(test, []);
|
|
3832
4047
|
CORRECT_SETTER = test instanceof Array;
|
|
3833
4048
|
} catch (error) { /* empty */ }
|
|
3834
4049
|
return function setPrototypeOf(O, proto) {
|
|
3835
4050
|
anObject$5(O);
|
|
3836
4051
|
aPossiblePrototype(proto);
|
|
3837
|
-
if (CORRECT_SETTER) setter
|
|
4052
|
+
if (CORRECT_SETTER) setter(O, proto);
|
|
3838
4053
|
else O.__proto__ = proto;
|
|
3839
4054
|
return O;
|
|
3840
4055
|
};
|
|
@@ -3842,6 +4057,7 @@
|
|
|
3842
4057
|
|
|
3843
4058
|
'use strict';
|
|
3844
4059
|
var $$e = _export;
|
|
4060
|
+
var call$5 = functionCall;
|
|
3845
4061
|
var IS_PURE$1 = isPure;
|
|
3846
4062
|
var FunctionName = functionName;
|
|
3847
4063
|
var isCallable$4 = isCallable$l;
|
|
@@ -3912,7 +4128,7 @@
|
|
|
3912
4128
|
createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
|
|
3913
4129
|
} else {
|
|
3914
4130
|
INCORRECT_VALUES_NAME = true;
|
|
3915
|
-
defaultIterator = function values() { return
|
|
4131
|
+
defaultIterator = function values() { return call$5(nativeIterator, this); };
|
|
3916
4132
|
}
|
|
3917
4133
|
}
|
|
3918
4134
|
|
|
@@ -3940,7 +4156,7 @@
|
|
|
3940
4156
|
};
|
|
3941
4157
|
|
|
3942
4158
|
'use strict';
|
|
3943
|
-
var charAt$
|
|
4159
|
+
var charAt$4 = stringMultibyte.charAt;
|
|
3944
4160
|
var toString$7 = toString$b;
|
|
3945
4161
|
var InternalStateModule$2 = internalState;
|
|
3946
4162
|
var defineIterator$2 = defineIterator$3;
|
|
@@ -3965,15 +4181,15 @@
|
|
|
3965
4181
|
var index = state.index;
|
|
3966
4182
|
var point;
|
|
3967
4183
|
if (index >= string.length) return { value: undefined, done: true };
|
|
3968
|
-
point = charAt$
|
|
4184
|
+
point = charAt$4(string, index);
|
|
3969
4185
|
state.index += point.length;
|
|
3970
4186
|
return { value: point, done: false };
|
|
3971
4187
|
});
|
|
3972
4188
|
|
|
3973
4189
|
var es_string_startsWith = {};
|
|
3974
4190
|
|
|
3975
|
-
var isObject$
|
|
3976
|
-
var classof$
|
|
4191
|
+
var isObject$5 = isObject$e;
|
|
4192
|
+
var classof$2 = classofRaw$1;
|
|
3977
4193
|
var wellKnownSymbol$8 = wellKnownSymbol$n;
|
|
3978
4194
|
|
|
3979
4195
|
var MATCH$2 = wellKnownSymbol$8('match');
|
|
@@ -3982,14 +4198,17 @@
|
|
|
3982
4198
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
3983
4199
|
var isRegexp = function (it) {
|
|
3984
4200
|
var isRegExp;
|
|
3985
|
-
return isObject$
|
|
4201
|
+
return isObject$5(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$2(it) == 'RegExp');
|
|
3986
4202
|
};
|
|
3987
4203
|
|
|
4204
|
+
var global$c = global$I;
|
|
3988
4205
|
var isRegExp$1 = isRegexp;
|
|
3989
4206
|
|
|
4207
|
+
var TypeError$5 = global$c.TypeError;
|
|
4208
|
+
|
|
3990
4209
|
var notARegexp = function (it) {
|
|
3991
4210
|
if (isRegExp$1(it)) {
|
|
3992
|
-
throw TypeError("The method doesn't accept regular expressions");
|
|
4211
|
+
throw TypeError$5("The method doesn't accept regular expressions");
|
|
3993
4212
|
} return it;
|
|
3994
4213
|
};
|
|
3995
4214
|
|
|
@@ -4011,6 +4230,7 @@
|
|
|
4011
4230
|
|
|
4012
4231
|
'use strict';
|
|
4013
4232
|
var $$d = _export;
|
|
4233
|
+
var uncurryThis$c = functionUncurryThis;
|
|
4014
4234
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
4015
4235
|
var toLength$1 = toLength$3;
|
|
4016
4236
|
var toString$6 = toString$b;
|
|
@@ -4020,7 +4240,8 @@
|
|
|
4020
4240
|
var IS_PURE = isPure;
|
|
4021
4241
|
|
|
4022
4242
|
// eslint-disable-next-line es/no-string-prototype-startswith -- safe
|
|
4023
|
-
var $
|
|
4243
|
+
var un$StartsWith = uncurryThis$c(''.startsWith);
|
|
4244
|
+
var stringSlice$4 = uncurryThis$c(''.slice);
|
|
4024
4245
|
var min$2 = Math.min;
|
|
4025
4246
|
|
|
4026
4247
|
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
|
|
@@ -4038,9 +4259,9 @@
|
|
|
4038
4259
|
notARegExp(searchString);
|
|
4039
4260
|
var index = toLength$1(min$2(arguments.length > 1 ? arguments[1] : undefined, that.length));
|
|
4040
4261
|
var search = toString$6(searchString);
|
|
4041
|
-
return $
|
|
4042
|
-
? $
|
|
4043
|
-
: that
|
|
4262
|
+
return un$StartsWith
|
|
4263
|
+
? un$StartsWith(that, search, index)
|
|
4264
|
+
: stringSlice$4(that, index, index + search.length) === search;
|
|
4044
4265
|
}
|
|
4045
4266
|
});
|
|
4046
4267
|
|
|
@@ -4048,6 +4269,7 @@
|
|
|
4048
4269
|
|
|
4049
4270
|
'use strict';
|
|
4050
4271
|
var $$c = _export;
|
|
4272
|
+
var global$b = global$I;
|
|
4051
4273
|
var toAbsoluteIndex$1 = toAbsoluteIndex$3;
|
|
4052
4274
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$5;
|
|
4053
4275
|
var lengthOfArrayLike$3 = lengthOfArrayLike$8;
|
|
@@ -4058,6 +4280,7 @@
|
|
|
4058
4280
|
|
|
4059
4281
|
var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport$3('splice');
|
|
4060
4282
|
|
|
4283
|
+
var TypeError$4 = global$b.TypeError;
|
|
4061
4284
|
var max$2 = Math.max;
|
|
4062
4285
|
var min$1 = Math.min;
|
|
4063
4286
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
@@ -4083,7 +4306,7 @@
|
|
|
4083
4306
|
actualDeleteCount = min$1(max$2(toIntegerOrInfinity$1(deleteCount), 0), len - actualStart);
|
|
4084
4307
|
}
|
|
4085
4308
|
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
|
|
4086
|
-
throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
|
|
4309
|
+
throw TypeError$4(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
|
|
4087
4310
|
}
|
|
4088
4311
|
A = arraySpeciesCreate(O, actualDeleteCount);
|
|
4089
4312
|
for (k = 0; k < actualDeleteCount; k++) {
|
|
@@ -4115,79 +4338,48 @@
|
|
|
4115
4338
|
}
|
|
4116
4339
|
});
|
|
4117
4340
|
|
|
4118
|
-
var
|
|
4341
|
+
var es_array_map = {};
|
|
4119
4342
|
|
|
4120
4343
|
'use strict';
|
|
4121
4344
|
var $$b = _export;
|
|
4122
|
-
var
|
|
4123
|
-
var isConstructor = isConstructor$3;
|
|
4124
|
-
var isObject$3 = isObject$e;
|
|
4125
|
-
var toAbsoluteIndex = toAbsoluteIndex$3;
|
|
4126
|
-
var lengthOfArrayLike$2 = lengthOfArrayLike$8;
|
|
4127
|
-
var toIndexedObject$1 = toIndexedObject$9;
|
|
4128
|
-
var createProperty = createProperty$4;
|
|
4129
|
-
var wellKnownSymbol$6 = wellKnownSymbol$n;
|
|
4345
|
+
var $map = arrayIteration.map;
|
|
4130
4346
|
var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$5;
|
|
4131
4347
|
|
|
4132
|
-
var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('
|
|
4348
|
+
var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('map');
|
|
4133
4349
|
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
// `Array.prototype.slice` method
|
|
4139
|
-
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
|
4140
|
-
// fallback for not array-like ES3 strings and DOM objects
|
|
4350
|
+
// `Array.prototype.map` method
|
|
4351
|
+
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
4352
|
+
// with adding support of @@species
|
|
4141
4353
|
$$b({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
var length = lengthOfArrayLike$2(O);
|
|
4145
|
-
var k = toAbsoluteIndex(start, length);
|
|
4146
|
-
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
4147
|
-
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
|
4148
|
-
var Constructor, result, n;
|
|
4149
|
-
if (isArray(O)) {
|
|
4150
|
-
Constructor = O.constructor;
|
|
4151
|
-
// cross-realm fallback
|
|
4152
|
-
if (isConstructor(Constructor) && (Constructor === Array || isArray(Constructor.prototype))) {
|
|
4153
|
-
Constructor = undefined;
|
|
4154
|
-
} else if (isObject$3(Constructor)) {
|
|
4155
|
-
Constructor = Constructor[SPECIES$2];
|
|
4156
|
-
if (Constructor === null) Constructor = undefined;
|
|
4157
|
-
}
|
|
4158
|
-
if (Constructor === Array || Constructor === undefined) {
|
|
4159
|
-
return nativeSlice.call(O, k, fin);
|
|
4160
|
-
}
|
|
4161
|
-
}
|
|
4162
|
-
result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
|
|
4163
|
-
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
|
4164
|
-
result.length = n;
|
|
4165
|
-
return result;
|
|
4354
|
+
map: function map(callbackfn /* , thisArg */) {
|
|
4355
|
+
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
4166
4356
|
}
|
|
4167
4357
|
});
|
|
4168
4358
|
|
|
4169
4359
|
var es_string_anchor = {};
|
|
4170
4360
|
|
|
4361
|
+
var uncurryThis$b = functionUncurryThis;
|
|
4171
4362
|
var requireObjectCoercible$2 = requireObjectCoercible$7;
|
|
4172
4363
|
var toString$5 = toString$b;
|
|
4173
4364
|
|
|
4174
4365
|
var quot = /"/g;
|
|
4366
|
+
var replace$4 = uncurryThis$b(''.replace);
|
|
4175
4367
|
|
|
4176
4368
|
// `CreateHTML` abstract operation
|
|
4177
4369
|
// https://tc39.es/ecma262/#sec-createhtml
|
|
4178
4370
|
var createHtml = function (string, tag, attribute, value) {
|
|
4179
4371
|
var S = toString$5(requireObjectCoercible$2(string));
|
|
4180
4372
|
var p1 = '<' + tag;
|
|
4181
|
-
if (attribute !== '') p1 += ' ' + attribute + '="' + toString$5(value)
|
|
4373
|
+
if (attribute !== '') p1 += ' ' + attribute + '="' + replace$4(toString$5(value), quot, '"') + '"';
|
|
4182
4374
|
return p1 + '>' + S + '</' + tag + '>';
|
|
4183
4375
|
};
|
|
4184
4376
|
|
|
4185
|
-
var fails$
|
|
4377
|
+
var fails$e = fails$r;
|
|
4186
4378
|
|
|
4187
4379
|
// check the existence of a method, lowercase
|
|
4188
4380
|
// of a tag and escaping quotes in arguments
|
|
4189
4381
|
var stringHtmlForced = function (METHOD_NAME) {
|
|
4190
|
-
return fails$
|
|
4382
|
+
return fails$e(function () {
|
|
4191
4383
|
var test = ''[METHOD_NAME]('"');
|
|
4192
4384
|
return test !== test.toLowerCase() || test.split('"').length > 3;
|
|
4193
4385
|
});
|
|
@@ -4208,11 +4400,11 @@
|
|
|
4208
4400
|
|
|
4209
4401
|
var es_array_find = {};
|
|
4210
4402
|
|
|
4211
|
-
var wellKnownSymbol$
|
|
4403
|
+
var wellKnownSymbol$6 = wellKnownSymbol$n;
|
|
4212
4404
|
var create$2 = objectCreate;
|
|
4213
4405
|
var definePropertyModule$1 = objectDefineProperty;
|
|
4214
4406
|
|
|
4215
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
4407
|
+
var UNSCOPABLES = wellKnownSymbol$6('unscopables');
|
|
4216
4408
|
var ArrayPrototype = Array.prototype;
|
|
4217
4409
|
|
|
4218
4410
|
// Array.prototype[@@unscopables]
|
|
@@ -4254,7 +4446,7 @@
|
|
|
4254
4446
|
var es_regexp_constructor = {};
|
|
4255
4447
|
|
|
4256
4448
|
var isCallable$3 = isCallable$l;
|
|
4257
|
-
var isObject$
|
|
4449
|
+
var isObject$4 = isObject$e;
|
|
4258
4450
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
4259
4451
|
|
|
4260
4452
|
// makes subclassing work correct for wrapped built-ins
|
|
@@ -4266,7 +4458,7 @@
|
|
|
4266
4458
|
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
4267
4459
|
isCallable$3(NewTarget = dummy.constructor) &&
|
|
4268
4460
|
NewTarget !== Wrapper &&
|
|
4269
|
-
isObject$
|
|
4461
|
+
isObject$4(NewTargetPrototype = NewTarget.prototype) &&
|
|
4270
4462
|
NewTargetPrototype !== Wrapper.prototype
|
|
4271
4463
|
) setPrototypeOf($this, NewTargetPrototype);
|
|
4272
4464
|
return $this;
|
|
@@ -4291,19 +4483,19 @@
|
|
|
4291
4483
|
|
|
4292
4484
|
var regexpStickyHelpers = {};
|
|
4293
4485
|
|
|
4294
|
-
var fails$
|
|
4295
|
-
var global$
|
|
4486
|
+
var fails$d = fails$r;
|
|
4487
|
+
var global$a = global$I;
|
|
4296
4488
|
|
|
4297
4489
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
4298
|
-
var $RegExp$2 = global$
|
|
4490
|
+
var $RegExp$2 = global$a.RegExp;
|
|
4299
4491
|
|
|
4300
|
-
var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y = fails$
|
|
4492
|
+
var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y = fails$d(function () {
|
|
4301
4493
|
var re = $RegExp$2('a', 'y');
|
|
4302
4494
|
re.lastIndex = 2;
|
|
4303
4495
|
return re.exec('abcd') != null;
|
|
4304
4496
|
});
|
|
4305
4497
|
|
|
4306
|
-
var BROKEN_CARET = regexpStickyHelpers.BROKEN_CARET = fails$
|
|
4498
|
+
var BROKEN_CARET = regexpStickyHelpers.BROKEN_CARET = fails$d(function () {
|
|
4307
4499
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
4308
4500
|
var re = $RegExp$2('^r', 'gy');
|
|
4309
4501
|
re.lastIndex = 2;
|
|
@@ -4313,69 +4505,78 @@
|
|
|
4313
4505
|
'use strict';
|
|
4314
4506
|
var getBuiltIn = getBuiltIn$7;
|
|
4315
4507
|
var definePropertyModule = objectDefineProperty;
|
|
4316
|
-
var wellKnownSymbol$
|
|
4508
|
+
var wellKnownSymbol$5 = wellKnownSymbol$n;
|
|
4317
4509
|
var DESCRIPTORS$3 = descriptors;
|
|
4318
4510
|
|
|
4319
|
-
var SPECIES$
|
|
4511
|
+
var SPECIES$2 = wellKnownSymbol$5('species');
|
|
4320
4512
|
|
|
4321
4513
|
var setSpecies$2 = function (CONSTRUCTOR_NAME) {
|
|
4322
4514
|
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
4323
4515
|
var defineProperty = definePropertyModule.f;
|
|
4324
4516
|
|
|
4325
|
-
if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$
|
|
4326
|
-
defineProperty(Constructor, SPECIES$
|
|
4517
|
+
if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$2]) {
|
|
4518
|
+
defineProperty(Constructor, SPECIES$2, {
|
|
4327
4519
|
configurable: true,
|
|
4328
4520
|
get: function () { return this; }
|
|
4329
4521
|
});
|
|
4330
4522
|
}
|
|
4331
4523
|
};
|
|
4332
4524
|
|
|
4333
|
-
var fails$
|
|
4334
|
-
var global$
|
|
4525
|
+
var fails$c = fails$r;
|
|
4526
|
+
var global$9 = global$I;
|
|
4335
4527
|
|
|
4336
4528
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
4337
|
-
var $RegExp$1 = global$
|
|
4529
|
+
var $RegExp$1 = global$9.RegExp;
|
|
4338
4530
|
|
|
4339
|
-
var regexpUnsupportedDotAll = fails$
|
|
4531
|
+
var regexpUnsupportedDotAll = fails$c(function () {
|
|
4340
4532
|
var re = $RegExp$1('.', 's');
|
|
4341
4533
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
4342
4534
|
});
|
|
4343
4535
|
|
|
4344
|
-
var fails$
|
|
4345
|
-
var global$
|
|
4536
|
+
var fails$b = fails$r;
|
|
4537
|
+
var global$8 = global$I;
|
|
4346
4538
|
|
|
4347
4539
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
4348
|
-
var $RegExp = global$
|
|
4540
|
+
var $RegExp = global$8.RegExp;
|
|
4349
4541
|
|
|
4350
|
-
var regexpUnsupportedNcg = fails$
|
|
4542
|
+
var regexpUnsupportedNcg = fails$b(function () {
|
|
4351
4543
|
var re = $RegExp('(?<a>b)', 'g');
|
|
4352
4544
|
return re.exec('b').groups.a !== 'b' ||
|
|
4353
4545
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
4354
4546
|
});
|
|
4355
4547
|
|
|
4356
4548
|
var DESCRIPTORS$2 = descriptors;
|
|
4357
|
-
var global$
|
|
4549
|
+
var global$7 = global$I;
|
|
4550
|
+
var uncurryThis$a = functionUncurryThis;
|
|
4358
4551
|
var isForced$1 = isForced_1;
|
|
4359
4552
|
var inheritIfRequired$1 = inheritIfRequired$2;
|
|
4360
4553
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$7;
|
|
4361
4554
|
var defineProperty$3 = objectDefineProperty.f;
|
|
4362
4555
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
4556
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
4363
4557
|
var isRegExp = isRegexp;
|
|
4364
4558
|
var toString$4 = toString$b;
|
|
4365
|
-
var
|
|
4559
|
+
var regExpFlags$1 = regexpFlags$1;
|
|
4366
4560
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
4367
4561
|
var redefine$4 = redefine$b.exports;
|
|
4368
|
-
var fails$
|
|
4562
|
+
var fails$a = fails$r;
|
|
4369
4563
|
var hasOwn$1 = hasOwnProperty_1;
|
|
4370
4564
|
var enforceInternalState = internalState.enforce;
|
|
4371
4565
|
var setSpecies$1 = setSpecies$2;
|
|
4372
|
-
var wellKnownSymbol$
|
|
4566
|
+
var wellKnownSymbol$4 = wellKnownSymbol$n;
|
|
4373
4567
|
var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
|
|
4374
4568
|
var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg;
|
|
4375
4569
|
|
|
4376
|
-
var MATCH = wellKnownSymbol$
|
|
4377
|
-
var NativeRegExp = global$
|
|
4570
|
+
var MATCH = wellKnownSymbol$4('match');
|
|
4571
|
+
var NativeRegExp = global$7.RegExp;
|
|
4378
4572
|
var RegExpPrototype$2 = NativeRegExp.prototype;
|
|
4573
|
+
var SyntaxError = global$7.SyntaxError;
|
|
4574
|
+
var getFlags$1 = uncurryThis$a(regExpFlags$1);
|
|
4575
|
+
var exec$1 = uncurryThis$a(RegExpPrototype$2.exec);
|
|
4576
|
+
var charAt$3 = uncurryThis$a(''.charAt);
|
|
4577
|
+
var replace$3 = uncurryThis$a(''.replace);
|
|
4578
|
+
var stringIndexOf$1 = uncurryThis$a(''.indexOf);
|
|
4579
|
+
var stringSlice$3 = uncurryThis$a(''.slice);
|
|
4379
4580
|
// TODO: Use only propper RegExpIdentifierName
|
|
4380
4581
|
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
4381
4582
|
var re1 = /a/g;
|
|
@@ -4387,7 +4588,7 @@
|
|
|
4387
4588
|
var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y;
|
|
4388
4589
|
|
|
4389
4590
|
var BASE_FORCED = DESCRIPTORS$2 &&
|
|
4390
|
-
(!CORRECT_NEW || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG$1 || fails$
|
|
4591
|
+
(!CORRECT_NEW || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG$1 || fails$a(function () {
|
|
4391
4592
|
re2[MATCH] = false;
|
|
4392
4593
|
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
4393
4594
|
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
|
|
@@ -4400,9 +4601,9 @@
|
|
|
4400
4601
|
var brackets = false;
|
|
4401
4602
|
var chr;
|
|
4402
4603
|
for (; index <= length; index++) {
|
|
4403
|
-
chr =
|
|
4604
|
+
chr = charAt$3(string, index);
|
|
4404
4605
|
if (chr === '\\') {
|
|
4405
|
-
result += chr +
|
|
4606
|
+
result += chr + charAt$3(string, ++index);
|
|
4406
4607
|
continue;
|
|
4407
4608
|
}
|
|
4408
4609
|
if (!brackets && chr === '.') {
|
|
@@ -4429,9 +4630,9 @@
|
|
|
4429
4630
|
var groupname = '';
|
|
4430
4631
|
var chr;
|
|
4431
4632
|
for (; index <= length; index++) {
|
|
4432
|
-
chr =
|
|
4633
|
+
chr = charAt$3(string, index);
|
|
4433
4634
|
if (chr === '\\') {
|
|
4434
|
-
chr = chr +
|
|
4635
|
+
chr = chr + charAt$3(string, ++index);
|
|
4435
4636
|
} else if (chr === ']') {
|
|
4436
4637
|
brackets = false;
|
|
4437
4638
|
} else if (!brackets) switch (true) {
|
|
@@ -4439,7 +4640,7 @@
|
|
|
4439
4640
|
brackets = true;
|
|
4440
4641
|
break;
|
|
4441
4642
|
case chr === '(':
|
|
4442
|
-
if (IS_NCG
|
|
4643
|
+
if (exec$1(IS_NCG, stringSlice$3(string, index + 1))) {
|
|
4443
4644
|
index += 2;
|
|
4444
4645
|
ncg = true;
|
|
4445
4646
|
}
|
|
@@ -4451,7 +4652,7 @@
|
|
|
4451
4652
|
throw new SyntaxError('Invalid capture group name');
|
|
4452
4653
|
}
|
|
4453
4654
|
names[groupname] = true;
|
|
4454
|
-
named.
|
|
4655
|
+
named[named.length] = [groupname, groupid];
|
|
4455
4656
|
ncg = false;
|
|
4456
4657
|
groupname = '';
|
|
4457
4658
|
continue;
|
|
@@ -4465,7 +4666,7 @@
|
|
|
4465
4666
|
// https://tc39.es/ecma262/#sec-regexp-constructor
|
|
4466
4667
|
if (isForced$1('RegExp', BASE_FORCED)) {
|
|
4467
4668
|
var RegExpWrapper = function RegExp(pattern, flags) {
|
|
4468
|
-
var thisIsRegExp = this
|
|
4669
|
+
var thisIsRegExp = isPrototypeOf$3(RegExpPrototype$2, this);
|
|
4469
4670
|
var patternIsRegExp = isRegExp(pattern);
|
|
4470
4671
|
var flagsAreUndefined = flags === undefined;
|
|
4471
4672
|
var groups = [];
|
|
@@ -4476,9 +4677,9 @@
|
|
|
4476
4677
|
return pattern;
|
|
4477
4678
|
}
|
|
4478
4679
|
|
|
4479
|
-
if (patternIsRegExp || pattern
|
|
4680
|
+
if (patternIsRegExp || isPrototypeOf$3(RegExpPrototype$2, pattern)) {
|
|
4480
4681
|
pattern = pattern.source;
|
|
4481
|
-
if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags
|
|
4682
|
+
if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags$1(rawPattern);
|
|
4482
4683
|
}
|
|
4483
4684
|
|
|
4484
4685
|
pattern = pattern === undefined ? '' : toString$4(pattern);
|
|
@@ -4486,15 +4687,15 @@
|
|
|
4486
4687
|
rawPattern = pattern;
|
|
4487
4688
|
|
|
4488
4689
|
if (UNSUPPORTED_DOT_ALL$1 && 'dotAll' in re1) {
|
|
4489
|
-
dotAll = !!flags && flags
|
|
4490
|
-
if (dotAll) flags =
|
|
4690
|
+
dotAll = !!flags && stringIndexOf$1(flags, 's') > -1;
|
|
4691
|
+
if (dotAll) flags = replace$3(flags, /s/g, '');
|
|
4491
4692
|
}
|
|
4492
4693
|
|
|
4493
4694
|
rawFlags = flags;
|
|
4494
4695
|
|
|
4495
4696
|
if (UNSUPPORTED_Y$1 && 'sticky' in re1) {
|
|
4496
|
-
sticky = !!flags && flags
|
|
4497
|
-
if (sticky) flags =
|
|
4697
|
+
sticky = !!flags && stringIndexOf$1(flags, 'y') > -1;
|
|
4698
|
+
if (sticky) flags = replace$3(flags, /y/g, '');
|
|
4498
4699
|
}
|
|
4499
4700
|
|
|
4500
4701
|
if (UNSUPPORTED_NCG$1) {
|
|
@@ -4537,7 +4738,7 @@
|
|
|
4537
4738
|
|
|
4538
4739
|
RegExpPrototype$2.constructor = RegExpWrapper;
|
|
4539
4740
|
RegExpWrapper.prototype = RegExpPrototype$2;
|
|
4540
|
-
redefine$4(global$
|
|
4741
|
+
redefine$4(global$7, 'RegExp', RegExpWrapper);
|
|
4541
4742
|
}
|
|
4542
4743
|
|
|
4543
4744
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
@@ -4548,6 +4749,8 @@
|
|
|
4548
4749
|
'use strict';
|
|
4549
4750
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
4550
4751
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
4752
|
+
var call$4 = functionCall;
|
|
4753
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
4551
4754
|
var toString$3 = toString$b;
|
|
4552
4755
|
var regexpFlags = regexpFlags$1;
|
|
4553
4756
|
var stickyHelpers = regexpStickyHelpers;
|
|
@@ -4557,16 +4760,19 @@
|
|
|
4557
4760
|
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
4558
4761
|
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
4559
4762
|
|
|
4560
|
-
var nativeExec = RegExp.prototype.exec;
|
|
4561
4763
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
4562
|
-
|
|
4764
|
+
var nativeExec = RegExp.prototype.exec;
|
|
4563
4765
|
var patchedExec = nativeExec;
|
|
4766
|
+
var charAt$2 = uncurryThis$9(''.charAt);
|
|
4767
|
+
var indexOf = uncurryThis$9(''.indexOf);
|
|
4768
|
+
var replace$2 = uncurryThis$9(''.replace);
|
|
4769
|
+
var stringSlice$2 = uncurryThis$9(''.slice);
|
|
4564
4770
|
|
|
4565
4771
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
4566
4772
|
var re1 = /a/;
|
|
4567
4773
|
var re2 = /b*/g;
|
|
4568
|
-
|
|
4569
|
-
|
|
4774
|
+
call$4(nativeExec, re1, 'a');
|
|
4775
|
+
call$4(nativeExec, re2, 'a');
|
|
4570
4776
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
4571
4777
|
})();
|
|
4572
4778
|
|
|
@@ -4588,27 +4794,27 @@
|
|
|
4588
4794
|
|
|
4589
4795
|
if (raw) {
|
|
4590
4796
|
raw.lastIndex = re.lastIndex;
|
|
4591
|
-
result =
|
|
4797
|
+
result = call$4(patchedExec, raw, str);
|
|
4592
4798
|
re.lastIndex = raw.lastIndex;
|
|
4593
4799
|
return result;
|
|
4594
4800
|
}
|
|
4595
4801
|
|
|
4596
4802
|
var groups = state.groups;
|
|
4597
4803
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
4598
|
-
var flags =
|
|
4804
|
+
var flags = call$4(regexpFlags, re);
|
|
4599
4805
|
var source = re.source;
|
|
4600
4806
|
var charsAdded = 0;
|
|
4601
4807
|
var strCopy = str;
|
|
4602
4808
|
|
|
4603
4809
|
if (sticky) {
|
|
4604
|
-
flags =
|
|
4605
|
-
if (
|
|
4810
|
+
flags = replace$2(flags, 'y', '');
|
|
4811
|
+
if (indexOf(flags, 'g') === -1) {
|
|
4606
4812
|
flags += 'g';
|
|
4607
4813
|
}
|
|
4608
4814
|
|
|
4609
|
-
strCopy = str
|
|
4815
|
+
strCopy = stringSlice$2(str, re.lastIndex);
|
|
4610
4816
|
// Support anchored sticky behavior.
|
|
4611
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline &&
|
|
4817
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== '\n')) {
|
|
4612
4818
|
source = '(?: ' + source + ')';
|
|
4613
4819
|
strCopy = ' ' + strCopy;
|
|
4614
4820
|
charsAdded++;
|
|
@@ -4623,12 +4829,12 @@
|
|
|
4623
4829
|
}
|
|
4624
4830
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
4625
4831
|
|
|
4626
|
-
match =
|
|
4832
|
+
match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
|
|
4627
4833
|
|
|
4628
4834
|
if (sticky) {
|
|
4629
4835
|
if (match) {
|
|
4630
|
-
match.input = match.input
|
|
4631
|
-
match[0] = match[0]
|
|
4836
|
+
match.input = stringSlice$2(match.input, charsAdded);
|
|
4837
|
+
match[0] = stringSlice$2(match[0], charsAdded);
|
|
4632
4838
|
match.index = re.lastIndex;
|
|
4633
4839
|
re.lastIndex += match[0].length;
|
|
4634
4840
|
} else re.lastIndex = 0;
|
|
@@ -4638,7 +4844,7 @@
|
|
|
4638
4844
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
4639
4845
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
4640
4846
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
4641
|
-
|
|
4847
|
+
call$4(nativeReplace, match[0], reCopy, function () {
|
|
4642
4848
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
4643
4849
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
4644
4850
|
}
|
|
@@ -4672,20 +4878,23 @@
|
|
|
4672
4878
|
var es_regexp_toString = {};
|
|
4673
4879
|
|
|
4674
4880
|
'use strict';
|
|
4881
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
4675
4882
|
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
4676
4883
|
var redefine$3 = redefine$b.exports;
|
|
4677
4884
|
var anObject$3 = anObject$e;
|
|
4885
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
4678
4886
|
var $toString = toString$b;
|
|
4679
|
-
var fails$
|
|
4680
|
-
var
|
|
4887
|
+
var fails$9 = fails$r;
|
|
4888
|
+
var regExpFlags = regexpFlags$1;
|
|
4681
4889
|
|
|
4682
4890
|
var TO_STRING = 'toString';
|
|
4683
4891
|
var RegExpPrototype$1 = RegExp.prototype;
|
|
4684
|
-
var
|
|
4892
|
+
var n$ToString = RegExpPrototype$1[TO_STRING];
|
|
4893
|
+
var getFlags = uncurryThis$8(regExpFlags);
|
|
4685
4894
|
|
|
4686
|
-
var NOT_GENERIC = fails$
|
|
4895
|
+
var NOT_GENERIC = fails$9(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
4687
4896
|
// FF44- RegExp#toString has a wrong name
|
|
4688
|
-
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 &&
|
|
4897
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && n$ToString.name != TO_STRING;
|
|
4689
4898
|
|
|
4690
4899
|
// `RegExp.prototype.toString` method
|
|
4691
4900
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
@@ -4694,7 +4903,7 @@
|
|
|
4694
4903
|
var R = anObject$3(this);
|
|
4695
4904
|
var p = $toString(R.source);
|
|
4696
4905
|
var rf = R.flags;
|
|
4697
|
-
var f = $toString(rf === undefined && R
|
|
4906
|
+
var f = $toString(rf === undefined && isPrototypeOf$2(RegExpPrototype$1, R) && !('flags' in RegExpPrototype$1) ? getFlags(R) : rf);
|
|
4698
4907
|
return '/' + p + '/' + f;
|
|
4699
4908
|
}, { unsafe: true });
|
|
4700
4909
|
}
|
|
@@ -4704,26 +4913,27 @@
|
|
|
4704
4913
|
'use strict';
|
|
4705
4914
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
4706
4915
|
|
|
4916
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
4707
4917
|
var redefine$2 = redefine$b.exports;
|
|
4708
4918
|
var regexpExec$1 = regexpExec$2;
|
|
4709
|
-
var fails$
|
|
4710
|
-
var wellKnownSymbol$
|
|
4919
|
+
var fails$8 = fails$r;
|
|
4920
|
+
var wellKnownSymbol$3 = wellKnownSymbol$n;
|
|
4711
4921
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$7;
|
|
4712
4922
|
|
|
4713
|
-
var SPECIES = wellKnownSymbol$
|
|
4923
|
+
var SPECIES$1 = wellKnownSymbol$3('species');
|
|
4714
4924
|
var RegExpPrototype = RegExp.prototype;
|
|
4715
4925
|
|
|
4716
4926
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
4717
|
-
var SYMBOL = wellKnownSymbol$
|
|
4927
|
+
var SYMBOL = wellKnownSymbol$3(KEY);
|
|
4718
4928
|
|
|
4719
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
4929
|
+
var DELEGATES_TO_SYMBOL = !fails$8(function () {
|
|
4720
4930
|
// String methods call symbol-named RegEp methods
|
|
4721
4931
|
var O = {};
|
|
4722
4932
|
O[SYMBOL] = function () { return 7; };
|
|
4723
4933
|
return ''[KEY](O) != 7;
|
|
4724
4934
|
});
|
|
4725
4935
|
|
|
4726
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
4936
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$8(function () {
|
|
4727
4937
|
// Symbol-named RegExp methods call .exec
|
|
4728
4938
|
var execCalled = false;
|
|
4729
4939
|
var re = /a/;
|
|
@@ -4736,7 +4946,7 @@
|
|
|
4736
4946
|
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
4737
4947
|
// a new one. We need to return the patched regex when creating the new one.
|
|
4738
4948
|
re.constructor = {};
|
|
4739
|
-
re.constructor[SPECIES] = function () { return re; };
|
|
4949
|
+
re.constructor[SPECIES$1] = function () { return re; };
|
|
4740
4950
|
re.flags = '';
|
|
4741
4951
|
re[SYMBOL] = /./[SYMBOL];
|
|
4742
4952
|
}
|
|
@@ -4752,17 +4962,18 @@
|
|
|
4752
4962
|
!DELEGATES_TO_EXEC ||
|
|
4753
4963
|
FORCED
|
|
4754
4964
|
) {
|
|
4755
|
-
var
|
|
4965
|
+
var uncurriedNativeRegExpMethod = uncurryThis$7(/./[SYMBOL]);
|
|
4756
4966
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
4967
|
+
var uncurriedNativeMethod = uncurryThis$7(nativeMethod);
|
|
4757
4968
|
var $exec = regexp.exec;
|
|
4758
4969
|
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
4759
4970
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
4760
4971
|
// The native String method already delegates to @@method (this
|
|
4761
4972
|
// polyfilled function), leasing to infinite recursion.
|
|
4762
4973
|
// We avoid it by directly calling the native @@method method.
|
|
4763
|
-
return { done: true, value:
|
|
4974
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
4764
4975
|
}
|
|
4765
|
-
return { done: true, value:
|
|
4976
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
4766
4977
|
}
|
|
4767
4978
|
return { done: false };
|
|
4768
4979
|
});
|
|
@@ -4775,18 +4986,21 @@
|
|
|
4775
4986
|
};
|
|
4776
4987
|
|
|
4777
4988
|
'use strict';
|
|
4778
|
-
var charAt = stringMultibyte.charAt;
|
|
4989
|
+
var charAt$1 = stringMultibyte.charAt;
|
|
4779
4990
|
|
|
4780
4991
|
// `AdvanceStringIndex` abstract operation
|
|
4781
4992
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
4782
4993
|
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
4783
|
-
return index + (unicode ? charAt(S, index).length : 1);
|
|
4994
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
4784
4995
|
};
|
|
4785
4996
|
|
|
4997
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
4786
4998
|
var toObject$2 = toObject$a;
|
|
4787
4999
|
|
|
4788
5000
|
var floor$1 = Math.floor;
|
|
4789
|
-
var
|
|
5001
|
+
var charAt = uncurryThis$6(''.charAt);
|
|
5002
|
+
var replace$1 = uncurryThis$6(''.replace);
|
|
5003
|
+
var stringSlice$1 = uncurryThis$6(''.slice);
|
|
4790
5004
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
4791
5005
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
4792
5006
|
|
|
@@ -4800,15 +5014,15 @@
|
|
|
4800
5014
|
namedCaptures = toObject$2(namedCaptures);
|
|
4801
5015
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
4802
5016
|
}
|
|
4803
|
-
return replace
|
|
5017
|
+
return replace$1(replacement, symbols, function (match, ch) {
|
|
4804
5018
|
var capture;
|
|
4805
|
-
switch (
|
|
5019
|
+
switch (charAt(ch, 0)) {
|
|
4806
5020
|
case '$': return '$';
|
|
4807
5021
|
case '&': return matched;
|
|
4808
|
-
case '`': return str
|
|
4809
|
-
case "'": return str
|
|
5022
|
+
case '`': return stringSlice$1(str, 0, position);
|
|
5023
|
+
case "'": return stringSlice$1(str, tailPos);
|
|
4810
5024
|
case '<':
|
|
4811
|
-
capture = namedCaptures[ch
|
|
5025
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
4812
5026
|
break;
|
|
4813
5027
|
default: // \d\d?
|
|
4814
5028
|
var n = +ch;
|
|
@@ -4816,7 +5030,7 @@
|
|
|
4816
5030
|
if (n > m) {
|
|
4817
5031
|
var f = floor$1(n / 10);
|
|
4818
5032
|
if (f === 0) return match;
|
|
4819
|
-
if (f <= m) return captures[f - 1] === undefined ?
|
|
5033
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
4820
5034
|
return match;
|
|
4821
5035
|
}
|
|
4822
5036
|
capture = captures[n - 1];
|
|
@@ -4825,27 +5039,34 @@
|
|
|
4825
5039
|
});
|
|
4826
5040
|
};
|
|
4827
5041
|
|
|
5042
|
+
var global$6 = global$I;
|
|
5043
|
+
var call$3 = functionCall;
|
|
4828
5044
|
var anObject$2 = anObject$e;
|
|
4829
5045
|
var isCallable$2 = isCallable$l;
|
|
4830
|
-
var classof = classofRaw$1;
|
|
5046
|
+
var classof$1 = classofRaw$1;
|
|
4831
5047
|
var regexpExec = regexpExec$2;
|
|
4832
5048
|
|
|
5049
|
+
var TypeError$3 = global$6.TypeError;
|
|
5050
|
+
|
|
4833
5051
|
// `RegExpExec` abstract operation
|
|
4834
5052
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
4835
5053
|
var regexpExecAbstract = function (R, S) {
|
|
4836
5054
|
var exec = R.exec;
|
|
4837
5055
|
if (isCallable$2(exec)) {
|
|
4838
|
-
var result =
|
|
5056
|
+
var result = call$3(exec, R, S);
|
|
4839
5057
|
if (result !== null) anObject$2(result);
|
|
4840
5058
|
return result;
|
|
4841
5059
|
}
|
|
4842
|
-
if (classof(R) === 'RegExp') return
|
|
4843
|
-
throw TypeError('RegExp#exec called on incompatible receiver');
|
|
5060
|
+
if (classof$1(R) === 'RegExp') return call$3(regexpExec, R, S);
|
|
5061
|
+
throw TypeError$3('RegExp#exec called on incompatible receiver');
|
|
4844
5062
|
};
|
|
4845
5063
|
|
|
4846
5064
|
'use strict';
|
|
5065
|
+
var apply = functionApply;
|
|
5066
|
+
var call$2 = functionCall;
|
|
5067
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
4847
5068
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
4848
|
-
var fails$
|
|
5069
|
+
var fails$7 = fails$r;
|
|
4849
5070
|
var anObject$1 = anObject$e;
|
|
4850
5071
|
var isCallable$1 = isCallable$l;
|
|
4851
5072
|
var toIntegerOrInfinity = toIntegerOrInfinity$5;
|
|
@@ -4856,11 +5077,15 @@
|
|
|
4856
5077
|
var getMethod = getMethod$4;
|
|
4857
5078
|
var getSubstitution = getSubstitution$1;
|
|
4858
5079
|
var regExpExec = regexpExecAbstract;
|
|
4859
|
-
var wellKnownSymbol$
|
|
5080
|
+
var wellKnownSymbol$2 = wellKnownSymbol$n;
|
|
4860
5081
|
|
|
4861
|
-
var REPLACE = wellKnownSymbol$
|
|
4862
|
-
var max = Math.max;
|
|
5082
|
+
var REPLACE = wellKnownSymbol$2('replace');
|
|
5083
|
+
var max$1 = Math.max;
|
|
4863
5084
|
var min = Math.min;
|
|
5085
|
+
var concat$1 = uncurryThis$5([].concat);
|
|
5086
|
+
var push$1 = uncurryThis$5([].push);
|
|
5087
|
+
var stringIndexOf = uncurryThis$5(''.indexOf);
|
|
5088
|
+
var stringSlice = uncurryThis$5(''.slice);
|
|
4864
5089
|
|
|
4865
5090
|
var maybeToString = function (it) {
|
|
4866
5091
|
return it === undefined ? it : String(it);
|
|
@@ -4881,7 +5106,7 @@
|
|
|
4881
5106
|
return false;
|
|
4882
5107
|
})();
|
|
4883
5108
|
|
|
4884
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
5109
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$7(function () {
|
|
4885
5110
|
var re = /./;
|
|
4886
5111
|
re.exec = function () {
|
|
4887
5112
|
var result = [];
|
|
@@ -4903,8 +5128,8 @@
|
|
|
4903
5128
|
var O = requireObjectCoercible$1(this);
|
|
4904
5129
|
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
4905
5130
|
return replacer
|
|
4906
|
-
?
|
|
4907
|
-
:
|
|
5131
|
+
? call$2(replacer, searchValue, O, replaceValue)
|
|
5132
|
+
: call$2(nativeReplace, toString$2(O), searchValue, replaceValue);
|
|
4908
5133
|
},
|
|
4909
5134
|
// `RegExp.prototype[@@replace]` method
|
|
4910
5135
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
@@ -4913,9 +5138,9 @@
|
|
|
4913
5138
|
var S = toString$2(string);
|
|
4914
5139
|
|
|
4915
5140
|
if (
|
|
4916
|
-
typeof replaceValue
|
|
4917
|
-
replaceValue
|
|
4918
|
-
replaceValue
|
|
5141
|
+
typeof replaceValue == 'string' &&
|
|
5142
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
5143
|
+
stringIndexOf(replaceValue, '$<') === -1
|
|
4919
5144
|
) {
|
|
4920
5145
|
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
4921
5146
|
if (res.done) return res.value;
|
|
@@ -4934,7 +5159,7 @@
|
|
|
4934
5159
|
var result = regExpExec(rx, S);
|
|
4935
5160
|
if (result === null) break;
|
|
4936
5161
|
|
|
4937
|
-
|
|
5162
|
+
push$1(results, result);
|
|
4938
5163
|
if (!global) break;
|
|
4939
5164
|
|
|
4940
5165
|
var matchStr = toString$2(result[0]);
|
|
@@ -4947,28 +5172,28 @@
|
|
|
4947
5172
|
result = results[i];
|
|
4948
5173
|
|
|
4949
5174
|
var matched = toString$2(result[0]);
|
|
4950
|
-
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
5175
|
+
var position = max$1(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
4951
5176
|
var captures = [];
|
|
4952
5177
|
// NOTE: This is equivalent to
|
|
4953
5178
|
// captures = result.slice(1).map(maybeToString)
|
|
4954
5179
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
4955
5180
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
4956
5181
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
4957
|
-
for (var j = 1; j < result.length; j++)
|
|
5182
|
+
for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
|
|
4958
5183
|
var namedCaptures = result.groups;
|
|
4959
5184
|
if (functionalReplace) {
|
|
4960
|
-
var replacerArgs = [matched]
|
|
4961
|
-
if (namedCaptures !== undefined)
|
|
4962
|
-
var replacement = toString$2(
|
|
5185
|
+
var replacerArgs = concat$1([matched], captures, position, S);
|
|
5186
|
+
if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
|
|
5187
|
+
var replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
|
|
4963
5188
|
} else {
|
|
4964
5189
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
4965
5190
|
}
|
|
4966
5191
|
if (position >= nextSourcePosition) {
|
|
4967
|
-
accumulatedResult += S
|
|
5192
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
4968
5193
|
nextSourcePosition = position + matched.length;
|
|
4969
5194
|
}
|
|
4970
5195
|
}
|
|
4971
|
-
return accumulatedResult + S
|
|
5196
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
4972
5197
|
}
|
|
4973
5198
|
];
|
|
4974
5199
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
@@ -5077,7 +5302,7 @@
|
|
|
5077
5302
|
'hide:before': the drop list will hide.
|
|
5078
5303
|
'hide': the drop list was hidden.
|
|
5079
5304
|
'hide:after': emitted after the hide css transition has ended, or immediately after 'hide'.
|
|
5080
|
-
'check' {value, item, isCheckingGroup}: item was selected (in multi mode).
|
|
5305
|
+
'check' {value, item, checked: boolean, isGroup: boolean, isCheckingGroup: boolean}: item was selected (in multi mode).
|
|
5081
5306
|
'groupcheck' {value, item, affectedItems}: item was selected (in multi mode).
|
|
5082
5307
|
*/
|
|
5083
5308
|
|
|
@@ -5174,10 +5399,15 @@
|
|
|
5174
5399
|
onItemRender: function onItemRender(itemEl, index) {
|
|
5175
5400
|
var item;
|
|
5176
5401
|
|
|
5177
|
-
if ( /**@type any*/index === GhostSymbol) {var
|
|
5178
|
-
item = (
|
|
5179
|
-
|
|
5180
|
-
|
|
5402
|
+
if ( /**@type any*/index === GhostSymbol) {var _ItemSymbol;
|
|
5403
|
+
item = _defineProperty({
|
|
5404
|
+
label: p.lastMeasureLongestLabelText,
|
|
5405
|
+
value: 'Measure' },
|
|
5406
|
+
|
|
5407
|
+
ItemSymbol$1, (_ItemSymbol = {}, _defineProperty(_ItemSymbol,
|
|
5408
|
+
p.labelProp, p.lastMeasureLongestLabelText), _defineProperty(_ItemSymbol,
|
|
5409
|
+
p.valueProp, 'Measure'), _ItemSymbol));
|
|
5410
|
+
|
|
5181
5411
|
|
|
5182
5412
|
itemEl.setAttribute('aria-hidden', 'true');
|
|
5183
5413
|
} else {
|
|
@@ -5231,7 +5461,7 @@
|
|
|
5231
5461
|
var fn = p.unrenderItem;
|
|
5232
5462
|
p.virtualListHelper.setOnItemUnrender(function (el) {
|
|
5233
5463
|
try {
|
|
5234
|
-
fn(el[ItemSymbol$1], el);
|
|
5464
|
+
fn(el[ItemSymbol$1][ItemSymbol$1], el);
|
|
5235
5465
|
} catch (err) {console.error(err);} // eslint-disable-line no-console
|
|
5236
5466
|
delete el[ItemSymbol$1];
|
|
5237
5467
|
|
|
@@ -5350,7 +5580,7 @@
|
|
|
5350
5580
|
el.className = classes.join(' ');
|
|
5351
5581
|
} }, { key: "blurFocusedItem", value:
|
|
5352
5582
|
|
|
5353
|
-
function blurFocusedItem() {
|
|
5583
|
+
function blurFocusedItem() {var _item$ItemSymbol;
|
|
5354
5584
|
var p = this._p;
|
|
5355
5585
|
|
|
5356
5586
|
clearTimeout(p.blurTimer);
|
|
@@ -5371,7 +5601,7 @@
|
|
|
5371
5601
|
if (!item)
|
|
5372
5602
|
return;
|
|
5373
5603
|
|
|
5374
|
-
this._trigger('itemblur', { value: item
|
|
5604
|
+
this._trigger('itemblur', { value: item.value, item: (_item$ItemSymbol = item[ItemSymbol$1]) !== null && _item$ItemSymbol !== void 0 ? _item$ItemSymbol : item });
|
|
5375
5605
|
} }, { key: "nextPage", value:
|
|
5376
5606
|
|
|
5377
5607
|
function nextPage(event) {
|
|
@@ -5385,7 +5615,7 @@
|
|
|
5385
5615
|
function toggleFocusedItem() {
|
|
5386
5616
|
var p = this._p;
|
|
5387
5617
|
|
|
5388
|
-
if (this.hasFocusedItem() && p.multi) {
|
|
5618
|
+
if (this.hasFocusedItem() && p.multi) {var _item$ItemSymbol2;
|
|
5389
5619
|
var item = p.items[p.focusItemIndex];
|
|
5390
5620
|
if (item._nocheck || item._nointeraction) return this;
|
|
5391
5621
|
|
|
@@ -5393,7 +5623,13 @@
|
|
|
5393
5623
|
if (p.focusItemEl) {
|
|
5394
5624
|
DomCompat.toggleClass(p.focusItemEl, "".concat(p.baseClassName, "__item_checked"), item._checked);
|
|
5395
5625
|
}
|
|
5396
|
-
this._trigger('check', {
|
|
5626
|
+
this._trigger('check', {
|
|
5627
|
+
value: item.value,
|
|
5628
|
+
item: (_item$ItemSymbol2 = item[ItemSymbol$1]) !== null && _item$ItemSymbol2 !== void 0 ? _item$ItemSymbol2 : item,
|
|
5629
|
+
checked: item._checked,
|
|
5630
|
+
isGroup: item._group,
|
|
5631
|
+
isCheckingGroup: false });
|
|
5632
|
+
|
|
5397
5633
|
|
|
5398
5634
|
this._updateGroupStateForItem(item);
|
|
5399
5635
|
}
|
|
@@ -5401,7 +5637,7 @@
|
|
|
5401
5637
|
return this;
|
|
5402
5638
|
} }, { key: "triggerItemSelection", value:
|
|
5403
5639
|
|
|
5404
|
-
function triggerItemSelection(event) {
|
|
5640
|
+
function triggerItemSelection(event) {var _item$ItemSymbol3;
|
|
5405
5641
|
var p = this._p;
|
|
5406
5642
|
|
|
5407
5643
|
p.focusItemEl = p.focusItemEl || Dom.closestUntil(event.target, 'li', p.el);
|
|
@@ -5418,7 +5654,7 @@
|
|
|
5418
5654
|
this._setSingleSelectedItemEl(p.focusItemEl);
|
|
5419
5655
|
}
|
|
5420
5656
|
|
|
5421
|
-
this._trigger('select', { value: item ? item
|
|
5657
|
+
this._trigger('select', { value: item ? item.value : undefined, item: (_item$ItemSymbol3 = item[ItemSymbol$1]) !== null && _item$ItemSymbol3 !== void 0 ? _item$ItemSymbol3 : item });
|
|
5422
5658
|
|
|
5423
5659
|
return true;
|
|
5424
5660
|
}
|
|
@@ -5456,9 +5692,9 @@
|
|
|
5456
5692
|
var oitem = itemsToAdd[i];
|
|
5457
5693
|
//noinspection PointlessBooleanExpressionJS
|
|
5458
5694
|
var item = (_item2 = {}, _defineProperty(_item2,
|
|
5459
|
-
ItemSymbol$1, oitem), _defineProperty(_item2,
|
|
5460
|
-
|
|
5461
|
-
|
|
5695
|
+
ItemSymbol$1, oitem), _defineProperty(_item2, "label",
|
|
5696
|
+
oitem[labelProp]), _defineProperty(_item2, "value",
|
|
5697
|
+
oitem[valueProp]), _defineProperty(_item2, "_nocheck",
|
|
5462
5698
|
!!oitem._nocheck), _defineProperty(_item2, "_nointeraction",
|
|
5463
5699
|
!!oitem._nointeraction), _item2);
|
|
5464
5700
|
|
|
@@ -5509,10 +5745,10 @@
|
|
|
5509
5745
|
item[ItemSymbol$1] = newItem;
|
|
5510
5746
|
|
|
5511
5747
|
if (hasOwnProperty.call(newItem, p.labelProp))
|
|
5512
|
-
item
|
|
5748
|
+
item.label = newItem[p.labelProp];
|
|
5513
5749
|
|
|
5514
5750
|
if (hasOwnProperty.call(newItem, p.valueProp))
|
|
5515
|
-
item
|
|
5751
|
+
item.value = newItem[p.valueProp];
|
|
5516
5752
|
|
|
5517
5753
|
if (hasOwnProperty.call(newItem, '_nocheck'))
|
|
5518
5754
|
item._nocheck = !!newItem._nocheck;
|
|
@@ -5580,12 +5816,12 @@
|
|
|
5580
5816
|
} }, { key: "itemDataByValue", value:
|
|
5581
5817
|
|
|
5582
5818
|
function itemDataByValue(value) {
|
|
5583
|
-
var p = this._p
|
|
5819
|
+
var p = this._p;
|
|
5584
5820
|
|
|
5585
5821
|
for (var i = 0, count = p.items.length; i < count; i++) {
|
|
5586
5822
|
var item = p.items[i];
|
|
5587
|
-
if (item
|
|
5588
|
-
return item;
|
|
5823
|
+
if (item.value === value) {
|
|
5824
|
+
return item[ItemSymbol$1];
|
|
5589
5825
|
}
|
|
5590
5826
|
}
|
|
5591
5827
|
|
|
@@ -5593,11 +5829,11 @@
|
|
|
5593
5829
|
} }, { key: "itemIndexByValue", value:
|
|
5594
5830
|
|
|
5595
5831
|
function itemIndexByValue(value) {
|
|
5596
|
-
var p = this._p
|
|
5832
|
+
var p = this._p;
|
|
5597
5833
|
|
|
5598
5834
|
for (var i = 0, count = p.items.length; i < count; i++) {
|
|
5599
5835
|
var item = p.items[i];
|
|
5600
|
-
if (item
|
|
5836
|
+
if (item.value === value) {
|
|
5601
5837
|
return i;
|
|
5602
5838
|
}
|
|
5603
5839
|
}
|
|
@@ -5606,11 +5842,11 @@
|
|
|
5606
5842
|
} }, { key: "itemIndexByValueOrLabel", value:
|
|
5607
5843
|
|
|
5608
5844
|
function itemIndexByValueOrLabel(value, label) {
|
|
5609
|
-
var p = this._p
|
|
5845
|
+
var p = this._p;
|
|
5610
5846
|
|
|
5611
5847
|
for (var i = 0, count = p.items.length; i < count; i++) {
|
|
5612
5848
|
var item = p.items[i];
|
|
5613
|
-
if (item
|
|
5849
|
+
if (item.value === value || item.label === label) {
|
|
5614
5850
|
return i;
|
|
5615
5851
|
}
|
|
5616
5852
|
}
|
|
@@ -5619,7 +5855,7 @@
|
|
|
5619
5855
|
} }, { key: "items", value:
|
|
5620
5856
|
|
|
5621
5857
|
function items() {
|
|
5622
|
-
return this._p.items.
|
|
5858
|
+
return this._p.items.map(function (x) {return x[ItemSymbol$1];});
|
|
5623
5859
|
} }, { key: "itemsReference", value:
|
|
5624
5860
|
|
|
5625
5861
|
function itemsReference() {
|
|
@@ -5630,8 +5866,8 @@
|
|
|
5630
5866
|
return this._p.items.length;
|
|
5631
5867
|
} }, { key: "itemAtIndex", value:
|
|
5632
5868
|
|
|
5633
|
-
function itemAtIndex(index) {
|
|
5634
|
-
return this._p.items[index];
|
|
5869
|
+
function itemAtIndex(index) {var _this$_p$items$index;
|
|
5870
|
+
return (_this$_p$items$index = this._p.items[index]) === null || _this$_p$items$index === void 0 ? void 0 : _this$_p$items$index[ItemSymbol$1];
|
|
5635
5871
|
}
|
|
5636
5872
|
|
|
5637
5873
|
/**
|
|
@@ -5911,13 +6147,13 @@
|
|
|
5911
6147
|
* @returns {DropList} self
|
|
5912
6148
|
*/ }, { key: "setCheckedValues", value:
|
|
5913
6149
|
function setCheckedValues(values) {
|
|
5914
|
-
var p = this._p
|
|
6150
|
+
var p = this._p;
|
|
5915
6151
|
|
|
5916
6152
|
var groupIndexes = [];
|
|
5917
6153
|
|
|
5918
6154
|
for (var i = 0, count = p.items.length; i < count; i++) {
|
|
5919
6155
|
var item = p.items[i];
|
|
5920
|
-
var checked = !item._nocheck && values.indexOf(item
|
|
6156
|
+
var checked = !item._nocheck && values.indexOf(item.value) !== -1;
|
|
5921
6157
|
|
|
5922
6158
|
if (item._group) {
|
|
5923
6159
|
groupIndexes.push(i);
|
|
@@ -5949,7 +6185,7 @@
|
|
|
5949
6185
|
* @returns {Array<*>} self
|
|
5950
6186
|
*/ }, { key: "getCheckedValues", value:
|
|
5951
6187
|
function getCheckedValues(excludeGroups) {
|
|
5952
|
-
var p = this._p
|
|
6188
|
+
var p = this._p;
|
|
5953
6189
|
|
|
5954
6190
|
excludeGroups = excludeGroups && p.groupCount > 0;
|
|
5955
6191
|
|
|
@@ -5959,7 +6195,7 @@
|
|
|
5959
6195
|
var item = p.items[i];
|
|
5960
6196
|
if (!item._checked) continue;
|
|
5961
6197
|
if (excludeGroups && item._group) continue;
|
|
5962
|
-
values.push(item
|
|
6198
|
+
values.push(item.value);
|
|
5963
6199
|
}
|
|
5964
6200
|
|
|
5965
6201
|
return values;
|
|
@@ -5982,7 +6218,7 @@
|
|
|
5982
6218
|
var item = p.items[i];
|
|
5983
6219
|
if (!item._checked) continue;
|
|
5984
6220
|
if (excludeGroups && item._group) continue;
|
|
5985
|
-
items.push(item);
|
|
6221
|
+
items.push(item[ItemSymbol$1]);
|
|
5986
6222
|
}
|
|
5987
6223
|
|
|
5988
6224
|
return items;
|
|
@@ -6161,7 +6397,7 @@
|
|
|
6161
6397
|
itemElement.classList.add("".concat(p.baseClassName, "__item_focus"));
|
|
6162
6398
|
p.focusItemEl = itemElement;
|
|
6163
6399
|
|
|
6164
|
-
this._trigger('itemfocus', { value: itemElement
|
|
6400
|
+
this._trigger('itemfocus', { value: itemElement.value, item: itemElement[ItemSymbol$1], event: null });
|
|
6165
6401
|
}
|
|
6166
6402
|
}
|
|
6167
6403
|
|
|
@@ -6318,15 +6554,15 @@
|
|
|
6318
6554
|
} }, { key: "_getItemIndex", value:
|
|
6319
6555
|
|
|
6320
6556
|
function _getItemIndex(item) {
|
|
6321
|
-
var p = this._p
|
|
6557
|
+
var p = this._p;
|
|
6322
6558
|
|
|
6323
6559
|
var itemIndex = -1;
|
|
6324
6560
|
|
|
6325
6561
|
if (item) {
|
|
6326
6562
|
itemIndex = p.items.indexOf(item);
|
|
6327
6563
|
if (itemIndex === -1) {
|
|
6328
|
-
var value = item && item
|
|
6329
|
-
var label = item && item
|
|
6564
|
+
var value = item && item.value !== undefined ? item.value : item;
|
|
6565
|
+
var label = item && item.label ? item.label : value;
|
|
6330
6566
|
itemIndex = this.itemIndexByValueOrLabel(value, label);
|
|
6331
6567
|
}
|
|
6332
6568
|
}
|
|
@@ -6562,7 +6798,7 @@
|
|
|
6562
6798
|
} }, { key: "_keydownFreeType", value:
|
|
6563
6799
|
|
|
6564
6800
|
function _keydownFreeType(evt) {
|
|
6565
|
-
var p = this._p
|
|
6801
|
+
var p = this._p;
|
|
6566
6802
|
|
|
6567
6803
|
// noinspection JSDeprecatedSymbols
|
|
6568
6804
|
var character = evt.key || String.fromCharCode(evt.keyCode);
|
|
@@ -6581,7 +6817,7 @@
|
|
|
6581
6817
|
// These are all the possible matches
|
|
6582
6818
|
for (var i = 0, count = p.items.length; i < count; i++) {
|
|
6583
6819
|
item = p.items[i];
|
|
6584
|
-
if (regex.test(item
|
|
6820
|
+
if (regex.test(item.label)) {
|
|
6585
6821
|
matchIndices.push(i);
|
|
6586
6822
|
}
|
|
6587
6823
|
}
|
|
@@ -6594,7 +6830,7 @@
|
|
|
6594
6830
|
|
|
6595
6831
|
for (var _i6 = 0, _count2 = p.items.length; _i6 < _count2; _i6++) {
|
|
6596
6832
|
item = p.items[_i6];
|
|
6597
|
-
if (regex.test(item
|
|
6833
|
+
if (regex.test(item.label)) {
|
|
6598
6834
|
matchIndices.push(_i6);
|
|
6599
6835
|
}
|
|
6600
6836
|
}
|
|
@@ -6637,7 +6873,7 @@
|
|
|
6637
6873
|
}
|
|
6638
6874
|
} }, { key: "_focus", value:
|
|
6639
6875
|
|
|
6640
|
-
function _focus(event, itemEl, itemIndex) {
|
|
6876
|
+
function _focus(event, itemEl, itemIndex) {var _item$ItemSymbol4;
|
|
6641
6877
|
var p = this._p;
|
|
6642
6878
|
|
|
6643
6879
|
if (!itemIndex && itemEl) {
|
|
@@ -6668,7 +6904,7 @@
|
|
|
6668
6904
|
p.focusItemIndex = itemIndex;
|
|
6669
6905
|
|
|
6670
6906
|
var item = p.items[itemIndex];
|
|
6671
|
-
this._trigger('itemfocus', { value: item
|
|
6907
|
+
this._trigger('itemfocus', { value: item.value, item: (_item$ItemSymbol4 = item[ItemSymbol$1]) !== null && _item$ItemSymbol4 !== void 0 ? _item$ItemSymbol4 : item, event: event });
|
|
6672
6908
|
} }, { key: "_delayBlur", value:
|
|
6673
6909
|
|
|
6674
6910
|
function _delayBlur() {var _this10 = this;
|
|
@@ -6821,13 +7057,13 @@
|
|
|
6821
7057
|
} }, { key: "_updateGroupStateForItem", value:
|
|
6822
7058
|
|
|
6823
7059
|
function _updateGroupStateForItem(item) {
|
|
6824
|
-
var p = this._p
|
|
7060
|
+
var p = this._p;
|
|
6825
7061
|
|
|
6826
7062
|
if (p.multi && p.autoCheckGroupChildren) {
|
|
6827
7063
|
|
|
6828
7064
|
var items, groupIndex, itemIndex;
|
|
6829
7065
|
|
|
6830
|
-
if (item._group) {
|
|
7066
|
+
if (item._group) {var _item$ItemSymbol5;
|
|
6831
7067
|
// Now loop through children below the group
|
|
6832
7068
|
|
|
6833
7069
|
items = p.items;
|
|
@@ -6835,7 +7071,7 @@
|
|
|
6835
7071
|
|
|
6836
7072
|
var affectedItems = 0;
|
|
6837
7073
|
|
|
6838
|
-
for (var i = groupIndex + 1, len = items.length; i < len; i++) {
|
|
7074
|
+
for (var i = groupIndex + 1, len = items.length; i < len; i++) {var _next$ItemSymbol;
|
|
6839
7075
|
var next = items[i];
|
|
6840
7076
|
|
|
6841
7077
|
// Hit the next group, break out
|
|
@@ -6858,11 +7094,17 @@
|
|
|
6858
7094
|
}
|
|
6859
7095
|
|
|
6860
7096
|
// Fire event
|
|
6861
|
-
this._trigger('check', {
|
|
7097
|
+
this._trigger('check', {
|
|
7098
|
+
value: next.value,
|
|
7099
|
+
item: (_next$ItemSymbol = next[ItemSymbol$1]) !== null && _next$ItemSymbol !== void 0 ? _next$ItemSymbol : next,
|
|
7100
|
+
checked: item._checked,
|
|
7101
|
+
isGroup: item._group,
|
|
7102
|
+
isCheckingGroup: true });
|
|
7103
|
+
|
|
6862
7104
|
}
|
|
6863
7105
|
|
|
6864
7106
|
// Fire event
|
|
6865
|
-
this._trigger('groupcheck', { value: item
|
|
7107
|
+
this._trigger('groupcheck', { value: item.value, item: (_item$ItemSymbol5 = item[ItemSymbol$1]) !== null && _item$ItemSymbol5 !== void 0 ? _item$ItemSymbol5 : item, affectedItems: affectedItems });
|
|
6866
7108
|
} else if (p.groupCount > 0) {
|
|
6867
7109
|
items = p.items;
|
|
6868
7110
|
itemIndex = items.indexOf(item);
|
|
@@ -6922,9 +7164,15 @@
|
|
|
6922
7164
|
DomCompat.toggleClass(nextEl, "".concat(p.baseClassName, "__item_checked"), groupItem._checked);
|
|
6923
7165
|
}
|
|
6924
7166
|
|
|
6925
|
-
if (fireEvents) {
|
|
7167
|
+
if (fireEvents) {var _groupItem$ItemSymbol;
|
|
6926
7168
|
// Fire event
|
|
6927
|
-
this._trigger('check', {
|
|
7169
|
+
this._trigger('check', {
|
|
7170
|
+
value: groupItem.value,
|
|
7171
|
+
item: (_groupItem$ItemSymbol = groupItem[ItemSymbol$1]) !== null && _groupItem$ItemSymbol !== void 0 ? _groupItem$ItemSymbol : groupItem,
|
|
7172
|
+
checked: item._checked,
|
|
7173
|
+
isGroup: item._group,
|
|
7174
|
+
isCheckingGroup: false });
|
|
7175
|
+
|
|
6928
7176
|
}
|
|
6929
7177
|
}
|
|
6930
7178
|
}
|
|
@@ -6940,7 +7188,6 @@
|
|
|
6940
7188
|
var p = this._p;
|
|
6941
7189
|
|
|
6942
7190
|
if (p.lastMeasureItemCount !== p.items.length) {
|
|
6943
|
-
var labelProp = p.labelProp,valueProp = p.valueProp;
|
|
6944
7191
|
var longestLabel = p.lastMeasureLongestLabel || 1,
|
|
6945
7192
|
longestLabelText = p.lastMeasureLongestLabelText || '';
|
|
6946
7193
|
|
|
@@ -6949,9 +7196,9 @@
|
|
|
6949
7196
|
i++) {
|
|
6950
7197
|
|
|
6951
7198
|
var item = items[i];
|
|
6952
|
-
var text = item
|
|
7199
|
+
var text = item.label;
|
|
6953
7200
|
if (text == null)
|
|
6954
|
-
text = item
|
|
7201
|
+
text = item.value;
|
|
6955
7202
|
if (text == null)
|
|
6956
7203
|
text = '';
|
|
6957
7204
|
|
|
@@ -7000,7 +7247,7 @@
|
|
|
7000
7247
|
} }, { key: "_renderItemContent", value:
|
|
7001
7248
|
|
|
7002
7249
|
function _renderItemContent(item, itemEl) {
|
|
7003
|
-
var p = this._p
|
|
7250
|
+
var p = this._p;
|
|
7004
7251
|
|
|
7005
7252
|
// NOTE: a "measure" item will not have full data of original item.
|
|
7006
7253
|
// so for a custom renderer - we try to send original item, and fallback to our private list item.
|
|
@@ -7008,7 +7255,7 @@
|
|
|
7008
7255
|
if (!p.renderItem || p.renderItem(item[ItemSymbol$1] || item, itemEl) === false) {
|
|
7009
7256
|
itemEl.appendChild(Dom.createElement('span', {
|
|
7010
7257
|
class: "".concat(p.baseClassName, "__item_label"),
|
|
7011
|
-
textContent: item
|
|
7258
|
+
textContent: item.label }));
|
|
7012
7259
|
|
|
7013
7260
|
|
|
7014
7261
|
if (p.multi) {
|
|
@@ -7069,7 +7316,7 @@
|
|
|
7069
7316
|
} }]);return DropList;}();
|
|
7070
7317
|
|
|
7071
7318
|
'use strict';
|
|
7072
|
-
var toIndexedObject = toIndexedObject$
|
|
7319
|
+
var toIndexedObject$1 = toIndexedObject$a;
|
|
7073
7320
|
var addToUnscopables$1 = addToUnscopables$3;
|
|
7074
7321
|
var Iterators = iterators;
|
|
7075
7322
|
var InternalStateModule$1 = internalState;
|
|
@@ -7092,7 +7339,7 @@
|
|
|
7092
7339
|
var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
|
|
7093
7340
|
setInternalState$1(this, {
|
|
7094
7341
|
type: ARRAY_ITERATOR,
|
|
7095
|
-
target: toIndexedObject(iterated), // target
|
|
7342
|
+
target: toIndexedObject$1(iterated), // target
|
|
7096
7343
|
index: 0, // next index
|
|
7097
7344
|
kind: kind // kind
|
|
7098
7345
|
});
|
|
@@ -7122,9 +7369,39 @@
|
|
|
7122
7369
|
addToUnscopables$1('values');
|
|
7123
7370
|
addToUnscopables$1('entries');
|
|
7124
7371
|
|
|
7372
|
+
var es_set = {};
|
|
7373
|
+
|
|
7125
7374
|
var internalMetadata$1 = {exports: {}};
|
|
7126
7375
|
|
|
7127
|
-
|
|
7376
|
+
// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
|
|
7377
|
+
var fails$6 = fails$r;
|
|
7378
|
+
|
|
7379
|
+
var arrayBufferNonExtensible = fails$6(function () {
|
|
7380
|
+
if (typeof ArrayBuffer == 'function') {
|
|
7381
|
+
var buffer = new ArrayBuffer(8);
|
|
7382
|
+
// eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
|
|
7383
|
+
if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });
|
|
7384
|
+
}
|
|
7385
|
+
});
|
|
7386
|
+
|
|
7387
|
+
var fails$5 = fails$r;
|
|
7388
|
+
var isObject$3 = isObject$e;
|
|
7389
|
+
var classof = classofRaw$1;
|
|
7390
|
+
var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
|
|
7391
|
+
|
|
7392
|
+
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
7393
|
+
var $isExtensible = Object.isExtensible;
|
|
7394
|
+
var FAILS_ON_PRIMITIVES = fails$5(function () { $isExtensible(1); });
|
|
7395
|
+
|
|
7396
|
+
// `Object.isExtensible` method
|
|
7397
|
+
// https://tc39.es/ecma262/#sec-object.isextensible
|
|
7398
|
+
var objectIsExtensible = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {
|
|
7399
|
+
if (!isObject$3(it)) return false;
|
|
7400
|
+
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;
|
|
7401
|
+
return $isExtensible ? $isExtensible(it) : true;
|
|
7402
|
+
} : $isExtensible;
|
|
7403
|
+
|
|
7404
|
+
var fails$4 = fails$r;
|
|
7128
7405
|
|
|
7129
7406
|
var freezing = !fails$4(function () {
|
|
7130
7407
|
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
|
|
@@ -7132,12 +7409,14 @@
|
|
|
7132
7409
|
});
|
|
7133
7410
|
|
|
7134
7411
|
var $$7 = _export;
|
|
7412
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
7135
7413
|
var hiddenKeys = hiddenKeys$6;
|
|
7136
|
-
var isObject$
|
|
7414
|
+
var isObject$2 = isObject$e;
|
|
7137
7415
|
var hasOwn = hasOwnProperty_1;
|
|
7138
7416
|
var defineProperty$2 = objectDefineProperty.f;
|
|
7139
7417
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
7140
7418
|
var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
|
|
7419
|
+
var isExtensible = objectIsExtensible;
|
|
7141
7420
|
var uid = uid$4;
|
|
7142
7421
|
var FREEZING = freezing;
|
|
7143
7422
|
|
|
@@ -7145,11 +7424,6 @@
|
|
|
7145
7424
|
var METADATA = uid('meta');
|
|
7146
7425
|
var id = 0;
|
|
7147
7426
|
|
|
7148
|
-
// eslint-disable-next-line es/no-object-isextensible -- safe
|
|
7149
|
-
var isExtensible = Object.isExtensible || function () {
|
|
7150
|
-
return true;
|
|
7151
|
-
};
|
|
7152
|
-
|
|
7153
7427
|
var setMetadata = function (it) {
|
|
7154
7428
|
defineProperty$2(it, METADATA, { value: {
|
|
7155
7429
|
objectID: 'O' + id++, // object ID
|
|
@@ -7159,7 +7433,7 @@
|
|
|
7159
7433
|
|
|
7160
7434
|
var fastKey$1 = function (it, create) {
|
|
7161
7435
|
// return a primitive with prefix
|
|
7162
|
-
if (!isObject$
|
|
7436
|
+
if (!isObject$2(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
7163
7437
|
if (!hasOwn(it, METADATA)) {
|
|
7164
7438
|
// can't set metadata to uncaught frozen object
|
|
7165
7439
|
if (!isExtensible(it)) return 'F';
|
|
@@ -7193,7 +7467,7 @@
|
|
|
7193
7467
|
meta.enable = function () { /* empty */ };
|
|
7194
7468
|
REQUIRED = true;
|
|
7195
7469
|
var getOwnPropertyNames = getOwnPropertyNamesModule.f;
|
|
7196
|
-
var splice = [].splice;
|
|
7470
|
+
var splice = uncurryThis$4([].splice);
|
|
7197
7471
|
var test = {};
|
|
7198
7472
|
test[METADATA] = 1;
|
|
7199
7473
|
|
|
@@ -7203,7 +7477,7 @@
|
|
|
7203
7477
|
var result = getOwnPropertyNames(it);
|
|
7204
7478
|
for (var i = 0, length = result.length; i < length; i++) {
|
|
7205
7479
|
if (result[i] === METADATA) {
|
|
7206
|
-
splice
|
|
7480
|
+
splice(result, i, 1);
|
|
7207
7481
|
break;
|
|
7208
7482
|
}
|
|
7209
7483
|
} return result;
|
|
@@ -7226,25 +7500,33 @@
|
|
|
7226
7500
|
|
|
7227
7501
|
var internalMetadata = internalMetadata$1.exports;
|
|
7228
7502
|
|
|
7503
|
+
var global$5 = global$I;
|
|
7504
|
+
var bind$1 = functionBindContext;
|
|
7505
|
+
var call$1 = functionCall;
|
|
7229
7506
|
var anObject = anObject$e;
|
|
7507
|
+
var tryToString = tryToString$3;
|
|
7230
7508
|
var isArrayIteratorMethod = isArrayIteratorMethod$2;
|
|
7231
|
-
var lengthOfArrayLike$
|
|
7232
|
-
var
|
|
7509
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$8;
|
|
7510
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
7233
7511
|
var getIterator = getIterator$2;
|
|
7234
7512
|
var getIteratorMethod = getIteratorMethod$3;
|
|
7235
7513
|
var iteratorClose = iteratorClose$2;
|
|
7236
7514
|
|
|
7515
|
+
var TypeError$2 = global$5.TypeError;
|
|
7516
|
+
|
|
7237
7517
|
var Result = function (stopped, result) {
|
|
7238
7518
|
this.stopped = stopped;
|
|
7239
7519
|
this.result = result;
|
|
7240
7520
|
};
|
|
7241
7521
|
|
|
7522
|
+
var ResultPrototype = Result.prototype;
|
|
7523
|
+
|
|
7242
7524
|
var iterate$2 = function (iterable, unboundFunction, options) {
|
|
7243
7525
|
var that = options && options.that;
|
|
7244
7526
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
7245
7527
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
7246
7528
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
7247
|
-
var fn = bind$1(unboundFunction, that
|
|
7529
|
+
var fn = bind$1(unboundFunction, that);
|
|
7248
7530
|
var iterator, iterFn, index, length, result, next, step;
|
|
7249
7531
|
|
|
7250
7532
|
var stop = function (condition) {
|
|
@@ -7263,44 +7545,50 @@
|
|
|
7263
7545
|
iterator = iterable;
|
|
7264
7546
|
} else {
|
|
7265
7547
|
iterFn = getIteratorMethod(iterable);
|
|
7266
|
-
if (!iterFn) throw TypeError(
|
|
7548
|
+
if (!iterFn) throw TypeError$2(tryToString(iterable) + ' is not iterable');
|
|
7267
7549
|
// optimisation for array iterators
|
|
7268
7550
|
if (isArrayIteratorMethod(iterFn)) {
|
|
7269
|
-
for (index = 0, length = lengthOfArrayLike$
|
|
7551
|
+
for (index = 0, length = lengthOfArrayLike$2(iterable); length > index; index++) {
|
|
7270
7552
|
result = callFn(iterable[index]);
|
|
7271
|
-
if (result && result
|
|
7553
|
+
if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
7272
7554
|
} return new Result(false);
|
|
7273
7555
|
}
|
|
7274
7556
|
iterator = getIterator(iterable, iterFn);
|
|
7275
7557
|
}
|
|
7276
7558
|
|
|
7277
7559
|
next = iterator.next;
|
|
7278
|
-
while (!(step =
|
|
7560
|
+
while (!(step = call$1(next, iterator)).done) {
|
|
7279
7561
|
try {
|
|
7280
7562
|
result = callFn(step.value);
|
|
7281
7563
|
} catch (error) {
|
|
7282
7564
|
iteratorClose(iterator, 'throw', error);
|
|
7283
7565
|
}
|
|
7284
|
-
if (typeof result == 'object' && result && result
|
|
7566
|
+
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
7285
7567
|
} return new Result(false);
|
|
7286
7568
|
};
|
|
7287
7569
|
|
|
7288
|
-
var
|
|
7289
|
-
|
|
7290
|
-
|
|
7570
|
+
var global$4 = global$I;
|
|
7571
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
7572
|
+
|
|
7573
|
+
var TypeError$1 = global$4.TypeError;
|
|
7574
|
+
|
|
7575
|
+
var anInstance$2 = function (it, Prototype) {
|
|
7576
|
+
if (isPrototypeOf(Prototype, it)) return it;
|
|
7577
|
+
throw TypeError$1('Incorrect invocation');
|
|
7291
7578
|
};
|
|
7292
7579
|
|
|
7293
7580
|
'use strict';
|
|
7294
7581
|
var $$6 = _export;
|
|
7295
|
-
var global$
|
|
7582
|
+
var global$3 = global$I;
|
|
7583
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
7296
7584
|
var isForced = isForced_1;
|
|
7297
7585
|
var redefine$1 = redefine$b.exports;
|
|
7298
7586
|
var InternalMetadataModule = internalMetadata$1.exports;
|
|
7299
7587
|
var iterate$1 = iterate$2;
|
|
7300
7588
|
var anInstance$1 = anInstance$2;
|
|
7301
7589
|
var isCallable = isCallable$l;
|
|
7302
|
-
var isObject = isObject$e;
|
|
7303
|
-
var fails$3 = fails$
|
|
7590
|
+
var isObject$1 = isObject$e;
|
|
7591
|
+
var fails$3 = fails$r;
|
|
7304
7592
|
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
|
|
7305
7593
|
var setToStringTag = setToStringTag$4;
|
|
7306
7594
|
var inheritIfRequired = inheritIfRequired$2;
|
|
@@ -7309,25 +7597,25 @@
|
|
|
7309
7597
|
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
|
|
7310
7598
|
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
|
|
7311
7599
|
var ADDER = IS_MAP ? 'set' : 'add';
|
|
7312
|
-
var NativeConstructor = global$
|
|
7600
|
+
var NativeConstructor = global$3[CONSTRUCTOR_NAME];
|
|
7313
7601
|
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
|
|
7314
7602
|
var Constructor = NativeConstructor;
|
|
7315
7603
|
var exported = {};
|
|
7316
7604
|
|
|
7317
7605
|
var fixMethod = function (KEY) {
|
|
7318
|
-
var
|
|
7606
|
+
var uncurriedNativeMethod = uncurryThis$3(NativePrototype[KEY]);
|
|
7319
7607
|
redefine$1(NativePrototype, KEY,
|
|
7320
7608
|
KEY == 'add' ? function add(value) {
|
|
7321
|
-
|
|
7609
|
+
uncurriedNativeMethod(this, value === 0 ? 0 : value);
|
|
7322
7610
|
return this;
|
|
7323
7611
|
} : KEY == 'delete' ? function (key) {
|
|
7324
|
-
return IS_WEAK && !isObject(key) ? false :
|
|
7612
|
+
return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
7325
7613
|
} : KEY == 'get' ? function get(key) {
|
|
7326
|
-
return IS_WEAK && !isObject(key) ? undefined :
|
|
7614
|
+
return IS_WEAK && !isObject$1(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
7327
7615
|
} : KEY == 'has' ? function has(key) {
|
|
7328
|
-
return IS_WEAK && !isObject(key) ? false :
|
|
7616
|
+
return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
7329
7617
|
} : function set(key, value) {
|
|
7330
|
-
|
|
7618
|
+
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
|
|
7331
7619
|
return this;
|
|
7332
7620
|
}
|
|
7333
7621
|
);
|
|
@@ -7364,7 +7652,7 @@
|
|
|
7364
7652
|
|
|
7365
7653
|
if (!ACCEPT_ITERABLES) {
|
|
7366
7654
|
Constructor = wrapper(function (dummy, iterable) {
|
|
7367
|
-
anInstance$1(dummy,
|
|
7655
|
+
anInstance$1(dummy, NativePrototype);
|
|
7368
7656
|
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
|
|
7369
7657
|
if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
7370
7658
|
return that;
|
|
@@ -7420,8 +7708,8 @@
|
|
|
7420
7708
|
|
|
7421
7709
|
var collectionStrong$1 = {
|
|
7422
7710
|
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
|
7423
|
-
var
|
|
7424
|
-
anInstance(that,
|
|
7711
|
+
var Constructor = wrapper(function (that, iterable) {
|
|
7712
|
+
anInstance(that, Prototype);
|
|
7425
7713
|
setInternalState(that, {
|
|
7426
7714
|
type: CONSTRUCTOR_NAME,
|
|
7427
7715
|
index: create(null),
|
|
@@ -7433,6 +7721,8 @@
|
|
|
7433
7721
|
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
|
7434
7722
|
});
|
|
7435
7723
|
|
|
7724
|
+
var Prototype = Constructor.prototype;
|
|
7725
|
+
|
|
7436
7726
|
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
7437
7727
|
|
|
7438
7728
|
var define = function (that, key, value) {
|
|
@@ -7473,7 +7763,7 @@
|
|
|
7473
7763
|
}
|
|
7474
7764
|
};
|
|
7475
7765
|
|
|
7476
|
-
redefineAll(
|
|
7766
|
+
redefineAll(Prototype, {
|
|
7477
7767
|
// `{ Map, Set }.prototype.clear()` methods
|
|
7478
7768
|
// https://tc39.es/ecma262/#sec-map.prototype.clear
|
|
7479
7769
|
// https://tc39.es/ecma262/#sec-set.prototype.clear
|
|
@@ -7517,7 +7807,7 @@
|
|
|
7517
7807
|
// https://tc39.es/ecma262/#sec-set.prototype.foreach
|
|
7518
7808
|
forEach: function forEach(callbackfn /* , that = undefined */) {
|
|
7519
7809
|
var state = getInternalState(this);
|
|
7520
|
-
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined
|
|
7810
|
+
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
7521
7811
|
var entry;
|
|
7522
7812
|
while (entry = entry ? entry.next : state.first) {
|
|
7523
7813
|
boundFunction(entry.value, entry.key, this);
|
|
@@ -7533,7 +7823,7 @@
|
|
|
7533
7823
|
}
|
|
7534
7824
|
});
|
|
7535
7825
|
|
|
7536
|
-
redefineAll(
|
|
7826
|
+
redefineAll(Prototype, IS_MAP ? {
|
|
7537
7827
|
// `Map.prototype.get(key)` method
|
|
7538
7828
|
// https://tc39.es/ecma262/#sec-map.prototype.get
|
|
7539
7829
|
get: function get(key) {
|
|
@@ -7552,14 +7842,14 @@
|
|
|
7552
7842
|
return define(this, value = value === 0 ? 0 : value, value);
|
|
7553
7843
|
}
|
|
7554
7844
|
});
|
|
7555
|
-
if (DESCRIPTORS$1) defineProperty$1(
|
|
7845
|
+
if (DESCRIPTORS$1) defineProperty$1(Prototype, 'size', {
|
|
7556
7846
|
get: function () {
|
|
7557
7847
|
return getInternalState(this).size;
|
|
7558
7848
|
}
|
|
7559
7849
|
});
|
|
7560
|
-
return
|
|
7850
|
+
return Constructor;
|
|
7561
7851
|
},
|
|
7562
|
-
setStrong: function (
|
|
7852
|
+
setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {
|
|
7563
7853
|
var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
|
|
7564
7854
|
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
7565
7855
|
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
|
|
@@ -7572,7 +7862,7 @@
|
|
|
7572
7862
|
// https://tc39.es/ecma262/#sec-set.prototype.keys
|
|
7573
7863
|
// https://tc39.es/ecma262/#sec-set.prototype.values
|
|
7574
7864
|
// https://tc39.es/ecma262/#sec-set.prototype-@@iterator
|
|
7575
|
-
defineIterator(
|
|
7865
|
+
defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {
|
|
7576
7866
|
setInternalState(this, {
|
|
7577
7867
|
type: ITERATOR_NAME,
|
|
7578
7868
|
target: iterated,
|
|
@@ -7611,7 +7901,7 @@
|
|
|
7611
7901
|
|
|
7612
7902
|
// `Set` constructor
|
|
7613
7903
|
// https://tc39.es/ecma262/#sec-set-objects
|
|
7614
|
-
|
|
7904
|
+
collection('Set', function (init) {
|
|
7615
7905
|
return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
7616
7906
|
}, collectionStrong);
|
|
7617
7907
|
|
|
@@ -7661,15 +7951,15 @@
|
|
|
7661
7951
|
|
|
7662
7952
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
7663
7953
|
|
|
7664
|
-
var global$
|
|
7954
|
+
var global$2 = global$I;
|
|
7665
7955
|
var DOMIterables = domIterables;
|
|
7666
7956
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
7667
7957
|
var ArrayIteratorMethods = es_array_iterator;
|
|
7668
7958
|
var createNonEnumerableProperty = createNonEnumerableProperty$7;
|
|
7669
|
-
var wellKnownSymbol = wellKnownSymbol$n;
|
|
7959
|
+
var wellKnownSymbol$1 = wellKnownSymbol$n;
|
|
7670
7960
|
|
|
7671
|
-
var ITERATOR = wellKnownSymbol('iterator');
|
|
7672
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
7961
|
+
var ITERATOR = wellKnownSymbol$1('iterator');
|
|
7962
|
+
var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
|
|
7673
7963
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
7674
7964
|
|
|
7675
7965
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
@@ -7695,16 +7985,71 @@
|
|
|
7695
7985
|
};
|
|
7696
7986
|
|
|
7697
7987
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
7698
|
-
handlePrototype(global$
|
|
7988
|
+
handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
7699
7989
|
}
|
|
7700
7990
|
|
|
7701
7991
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
7702
7992
|
|
|
7993
|
+
var es_array_slice = {};
|
|
7994
|
+
|
|
7995
|
+
'use strict';
|
|
7996
|
+
var $$5 = _export;
|
|
7997
|
+
var global$1 = global$I;
|
|
7998
|
+
var isArray = isArray$4;
|
|
7999
|
+
var isConstructor = isConstructor$3;
|
|
8000
|
+
var isObject = isObject$e;
|
|
8001
|
+
var toAbsoluteIndex = toAbsoluteIndex$3;
|
|
8002
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$8;
|
|
8003
|
+
var toIndexedObject = toIndexedObject$a;
|
|
8004
|
+
var createProperty = createProperty$4;
|
|
8005
|
+
var wellKnownSymbol = wellKnownSymbol$n;
|
|
8006
|
+
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;
|
|
8007
|
+
var un$Slice = arraySlice$3;
|
|
8008
|
+
|
|
8009
|
+
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice');
|
|
8010
|
+
|
|
8011
|
+
var SPECIES = wellKnownSymbol('species');
|
|
8012
|
+
var Array$1 = global$1.Array;
|
|
8013
|
+
var max = Math.max;
|
|
8014
|
+
|
|
8015
|
+
// `Array.prototype.slice` method
|
|
8016
|
+
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
|
8017
|
+
// fallback for not array-like ES3 strings and DOM objects
|
|
8018
|
+
$$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
8019
|
+
slice: function slice(start, end) {
|
|
8020
|
+
var O = toIndexedObject(this);
|
|
8021
|
+
var length = lengthOfArrayLike$1(O);
|
|
8022
|
+
var k = toAbsoluteIndex(start, length);
|
|
8023
|
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
8024
|
+
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
|
8025
|
+
var Constructor, result, n;
|
|
8026
|
+
if (isArray(O)) {
|
|
8027
|
+
Constructor = O.constructor;
|
|
8028
|
+
// cross-realm fallback
|
|
8029
|
+
if (isConstructor(Constructor) && (Constructor === Array$1 || isArray(Constructor.prototype))) {
|
|
8030
|
+
Constructor = undefined;
|
|
8031
|
+
} else if (isObject(Constructor)) {
|
|
8032
|
+
Constructor = Constructor[SPECIES];
|
|
8033
|
+
if (Constructor === null) Constructor = undefined;
|
|
8034
|
+
}
|
|
8035
|
+
if (Constructor === Array$1 || Constructor === undefined) {
|
|
8036
|
+
return un$Slice(O, k, fin);
|
|
8037
|
+
}
|
|
8038
|
+
}
|
|
8039
|
+
result = new (Constructor === undefined ? Array$1 : Constructor)(max(fin - k, 0));
|
|
8040
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
|
8041
|
+
result.length = n;
|
|
8042
|
+
return result;
|
|
8043
|
+
}
|
|
8044
|
+
});
|
|
8045
|
+
|
|
7703
8046
|
var es_object_assign = {};
|
|
7704
8047
|
|
|
7705
8048
|
'use strict';
|
|
7706
8049
|
var DESCRIPTORS = descriptors;
|
|
7707
|
-
var
|
|
8050
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
8051
|
+
var call = functionCall;
|
|
8052
|
+
var fails$2 = fails$r;
|
|
7708
8053
|
var objectKeys = objectKeys$4;
|
|
7709
8054
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
7710
8055
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -7715,6 +8060,7 @@
|
|
|
7715
8060
|
var $assign = Object.assign;
|
|
7716
8061
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
7717
8062
|
var defineProperty = Object.defineProperty;
|
|
8063
|
+
var concat = uncurryThis$2([].concat);
|
|
7718
8064
|
|
|
7719
8065
|
// `Object.assign` method
|
|
7720
8066
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
@@ -7746,24 +8092,24 @@
|
|
|
7746
8092
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
7747
8093
|
while (argumentsLength > index) {
|
|
7748
8094
|
var S = IndexedObject(arguments[index++]);
|
|
7749
|
-
var keys = getOwnPropertySymbols ? objectKeys(S)
|
|
8095
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
7750
8096
|
var length = keys.length;
|
|
7751
8097
|
var j = 0;
|
|
7752
8098
|
var key;
|
|
7753
8099
|
while (length > j) {
|
|
7754
8100
|
key = keys[j++];
|
|
7755
|
-
if (!DESCRIPTORS ||
|
|
8101
|
+
if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
7756
8102
|
}
|
|
7757
8103
|
} return T;
|
|
7758
8104
|
} : $assign;
|
|
7759
8105
|
|
|
7760
|
-
var $$
|
|
8106
|
+
var $$4 = _export;
|
|
7761
8107
|
var assign = objectAssign;
|
|
7762
8108
|
|
|
7763
8109
|
// `Object.assign` method
|
|
7764
8110
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
7765
8111
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
7766
|
-
$$
|
|
8112
|
+
$$4({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
7767
8113
|
assign: assign
|
|
7768
8114
|
});
|
|
7769
8115
|
|
|
@@ -7773,10 +8119,12 @@
|
|
|
7773
8119
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
7774
8120
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
7775
8121
|
|
|
8122
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
7776
8123
|
var requireObjectCoercible = requireObjectCoercible$7;
|
|
7777
8124
|
var toString$1 = toString$b;
|
|
7778
8125
|
var whitespaces$1 = whitespaces$2;
|
|
7779
8126
|
|
|
8127
|
+
var replace = uncurryThis$1(''.replace);
|
|
7780
8128
|
var whitespace = '[' + whitespaces$1 + ']';
|
|
7781
8129
|
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
7782
8130
|
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
@@ -7785,8 +8133,8 @@
|
|
|
7785
8133
|
var createMethod = function (TYPE) {
|
|
7786
8134
|
return function ($this) {
|
|
7787
8135
|
var string = toString$1(requireObjectCoercible($this));
|
|
7788
|
-
if (TYPE & 1) string =
|
|
7789
|
-
if (TYPE & 2) string =
|
|
8136
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
8137
|
+
if (TYPE & 2) string = replace(string, rtrim, '');
|
|
7790
8138
|
return string;
|
|
7791
8139
|
};
|
|
7792
8140
|
};
|
|
@@ -7804,7 +8152,7 @@
|
|
|
7804
8152
|
};
|
|
7805
8153
|
|
|
7806
8154
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
7807
|
-
var fails$1 = fails$
|
|
8155
|
+
var fails$1 = fails$r;
|
|
7808
8156
|
var whitespaces = whitespaces$2;
|
|
7809
8157
|
|
|
7810
8158
|
var non = '\u200B\u0085\u180E';
|
|
@@ -7820,13 +8168,13 @@
|
|
|
7820
8168
|
};
|
|
7821
8169
|
|
|
7822
8170
|
'use strict';
|
|
7823
|
-
var $$
|
|
8171
|
+
var $$3 = _export;
|
|
7824
8172
|
var $trim = stringTrim.trim;
|
|
7825
8173
|
var forcedStringTrimMethod = stringTrimForced;
|
|
7826
8174
|
|
|
7827
8175
|
// `String.prototype.trim` method
|
|
7828
8176
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
7829
|
-
$$
|
|
8177
|
+
$$3({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
7830
8178
|
trim: function trim() {
|
|
7831
8179
|
return $trim(this);
|
|
7832
8180
|
}
|
|
@@ -7835,39 +8183,21 @@
|
|
|
7835
8183
|
var es_array_filter = {};
|
|
7836
8184
|
|
|
7837
8185
|
'use strict';
|
|
7838
|
-
var $$
|
|
8186
|
+
var $$2 = _export;
|
|
7839
8187
|
var $filter = arrayIteration.filter;
|
|
7840
|
-
var arrayMethodHasSpeciesSupport
|
|
8188
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$5;
|
|
7841
8189
|
|
|
7842
|
-
var HAS_SPECIES_SUPPORT
|
|
8190
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
|
7843
8191
|
|
|
7844
8192
|
// `Array.prototype.filter` method
|
|
7845
8193
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
7846
8194
|
// with adding support of @@species
|
|
7847
|
-
$$
|
|
8195
|
+
$$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
7848
8196
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
7849
8197
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
7850
8198
|
}
|
|
7851
8199
|
});
|
|
7852
8200
|
|
|
7853
|
-
var es_array_map = {};
|
|
7854
|
-
|
|
7855
|
-
'use strict';
|
|
7856
|
-
var $$2 = _export;
|
|
7857
|
-
var $map = arrayIteration.map;
|
|
7858
|
-
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$5;
|
|
7859
|
-
|
|
7860
|
-
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
|
|
7861
|
-
|
|
7862
|
-
// `Array.prototype.map` method
|
|
7863
|
-
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
7864
|
-
// with adding support of @@species
|
|
7865
|
-
$$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
7866
|
-
map: function map(callbackfn /* , thisArg */) {
|
|
7867
|
-
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
7868
|
-
}
|
|
7869
|
-
});
|
|
7870
|
-
|
|
7871
8201
|
var es_array_findIndex = {};
|
|
7872
8202
|
|
|
7873
8203
|
'use strict';
|
|
@@ -7894,15 +8224,17 @@
|
|
|
7894
8224
|
|
|
7895
8225
|
var es_array_sort = {};
|
|
7896
8226
|
|
|
7897
|
-
|
|
8227
|
+
var arraySlice = arraySlice$3;
|
|
8228
|
+
|
|
7898
8229
|
var floor = Math.floor;
|
|
7899
8230
|
|
|
7900
8231
|
var mergeSort = function (array, comparefn) {
|
|
7901
8232
|
var length = array.length;
|
|
7902
8233
|
var middle = floor(length / 2);
|
|
7903
8234
|
return length < 8 ? insertionSort(array, comparefn) : merge(
|
|
7904
|
-
|
|
7905
|
-
mergeSort(array
|
|
8235
|
+
array,
|
|
8236
|
+
mergeSort(arraySlice(array, 0, middle), comparefn),
|
|
8237
|
+
mergeSort(arraySlice(array, middle), comparefn),
|
|
7906
8238
|
comparefn
|
|
7907
8239
|
);
|
|
7908
8240
|
};
|
|
@@ -7922,20 +8254,17 @@
|
|
|
7922
8254
|
} return array;
|
|
7923
8255
|
};
|
|
7924
8256
|
|
|
7925
|
-
var merge = function (left, right, comparefn) {
|
|
8257
|
+
var merge = function (array, left, right, comparefn) {
|
|
7926
8258
|
var llength = left.length;
|
|
7927
8259
|
var rlength = right.length;
|
|
7928
8260
|
var lindex = 0;
|
|
7929
8261
|
var rindex = 0;
|
|
7930
|
-
var result = [];
|
|
7931
8262
|
|
|
7932
8263
|
while (lindex < llength || rindex < rlength) {
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
}
|
|
7938
|
-
} return result;
|
|
8264
|
+
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
|
8265
|
+
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
|
8266
|
+
: lindex < llength ? left[lindex++] : right[rindex++];
|
|
8267
|
+
} return array;
|
|
7939
8268
|
};
|
|
7940
8269
|
|
|
7941
8270
|
var arraySort = mergeSort;
|
|
@@ -7958,11 +8287,12 @@
|
|
|
7958
8287
|
|
|
7959
8288
|
'use strict';
|
|
7960
8289
|
var $ = _export;
|
|
8290
|
+
var uncurryThis = functionUncurryThis;
|
|
7961
8291
|
var aCallable = aCallable$4;
|
|
7962
8292
|
var toObject = toObject$a;
|
|
7963
8293
|
var lengthOfArrayLike = lengthOfArrayLike$8;
|
|
7964
8294
|
var toString = toString$b;
|
|
7965
|
-
var fails = fails$
|
|
8295
|
+
var fails = fails$r;
|
|
7966
8296
|
var internalSort = arraySort;
|
|
7967
8297
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
7968
8298
|
var FF = engineFfVersion;
|
|
@@ -7971,7 +8301,8 @@
|
|
|
7971
8301
|
var WEBKIT = engineWebkitVersion;
|
|
7972
8302
|
|
|
7973
8303
|
var test = [];
|
|
7974
|
-
var
|
|
8304
|
+
var un$Sort = uncurryThis(test.sort);
|
|
8305
|
+
var push = uncurryThis(test.push);
|
|
7975
8306
|
|
|
7976
8307
|
// IE8-
|
|
7977
8308
|
var FAILS_ON_UNDEFINED = fails(function () {
|
|
@@ -8038,17 +8369,18 @@
|
|
|
8038
8369
|
|
|
8039
8370
|
var array = toObject(this);
|
|
8040
8371
|
|
|
8041
|
-
if (STABLE_SORT) return comparefn === undefined ?
|
|
8372
|
+
if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
|
|
8042
8373
|
|
|
8043
8374
|
var items = [];
|
|
8044
8375
|
var arrayLength = lengthOfArrayLike(array);
|
|
8045
8376
|
var itemsLength, index;
|
|
8046
8377
|
|
|
8047
8378
|
for (index = 0; index < arrayLength; index++) {
|
|
8048
|
-
if (index in array)
|
|
8379
|
+
if (index in array) push(items, array[index]);
|
|
8049
8380
|
}
|
|
8050
8381
|
|
|
8051
|
-
|
|
8382
|
+
internalSort(items, getSortCompare(comparefn));
|
|
8383
|
+
|
|
8052
8384
|
itemsLength = items.length;
|
|
8053
8385
|
index = 0;
|
|
8054
8386
|
|
|
@@ -8153,7 +8485,7 @@
|
|
|
8153
8485
|
* @property {boolean} [hasOpenIndicator=true] has open/close indicator?
|
|
8154
8486
|
* @property {string} [placeholder=''] Placeholder text
|
|
8155
8487
|
* @property {boolean} [sortSelectedItems=true] Should the selected items be sorted?
|
|
8156
|
-
* @property {boolean} [sortListItems=
|
|
8488
|
+
* @property {boolean} [sortListItems=false] Sort list items
|
|
8157
8489
|
* @property {boolean} [sortListCheckedFirst=true] When sorting - put checked items first (applicable to `multi` mode only)
|
|
8158
8490
|
* @property {*[]} [stickyValues]
|
|
8159
8491
|
* @property {function(a: DropList.ItemBase, b: DropList.ItemBase):number} [sortItemComparator]
|
|
@@ -8195,7 +8527,7 @@
|
|
|
8195
8527
|
hasOpenIndicator: true,
|
|
8196
8528
|
placeholder: '',
|
|
8197
8529
|
sortSelectedItems: true,
|
|
8198
|
-
sortListItems:
|
|
8530
|
+
sortListItems: false,
|
|
8199
8531
|
sortListCheckedFirst: true,
|
|
8200
8532
|
stickyValues: null,
|
|
8201
8533
|
sortItemComparator: null,
|
|
@@ -8323,6 +8655,7 @@
|
|
|
8323
8655
|
|
|
8324
8656
|
items: [],
|
|
8325
8657
|
filteredItems: null,
|
|
8658
|
+
currentItemsView: [], // contains the final version of items sent to DropList
|
|
8326
8659
|
itemsChanged: true,
|
|
8327
8660
|
|
|
8328
8661
|
sink: new DomEventsSink__default["default"](),
|
|
@@ -9799,8 +10132,8 @@
|
|
|
9799
10132
|
var item = /**@type DropList.Item*/event.item;
|
|
9800
10133
|
var value = event.value;
|
|
9801
10134
|
|
|
9802
|
-
var checked =
|
|
9803
|
-
if (
|
|
10135
|
+
var checked = event.checked;
|
|
10136
|
+
if (event.isGroup) return; // Ignore groups
|
|
9804
10137
|
|
|
9805
10138
|
var selEvt = { value: value, item: item, cancel: false };
|
|
9806
10139
|
_this5._trigger((checked ? 'addsel' : 'removesel') + ':before', selEvt);
|
|
@@ -9944,16 +10277,26 @@
|
|
|
9944
10277
|
|
|
9945
10278
|
switch (evt.key) {
|
|
9946
10279
|
case keycodeJs.VALUE_PAGE_UP:
|
|
10280
|
+
if (dropList.isVisible())
|
|
9947
10281
|
dropList.previousPage(evt);
|
|
9948
10282
|
break;
|
|
9949
10283
|
case keycodeJs.VALUE_PAGE_DOWN:
|
|
10284
|
+
if (dropList.isVisible())
|
|
9950
10285
|
dropList.nextPage(evt);
|
|
9951
10286
|
break;
|
|
9952
10287
|
case keycodeJs.VALUE_UP:
|
|
9953
|
-
dropList.
|
|
10288
|
+
if (dropList.isVisible()) {
|
|
10289
|
+
dropList.previous(evt);
|
|
10290
|
+
} else {
|
|
10291
|
+
_this6._movePrev();
|
|
10292
|
+
}
|
|
9954
10293
|
break;
|
|
9955
10294
|
case keycodeJs.VALUE_DOWN:
|
|
9956
|
-
dropList.
|
|
10295
|
+
if (dropList.isVisible()) {
|
|
10296
|
+
dropList.next(evt);
|
|
10297
|
+
} else {
|
|
10298
|
+
_this6._moveNext();
|
|
10299
|
+
}
|
|
9957
10300
|
break;}
|
|
9958
10301
|
|
|
9959
10302
|
|
|
@@ -9961,7 +10304,7 @@
|
|
|
9961
10304
|
|
|
9962
10305
|
case keycodeJs.VALUE_SPACE:
|
|
9963
10306
|
if (p.lastKeyAllowsSpaceToggle) {
|
|
9964
|
-
if (dropList.hasFocusedItem()) {
|
|
10307
|
+
if (dropList.isVisible() && dropList.hasFocusedItem()) {
|
|
9965
10308
|
suppressKeyPress = true;
|
|
9966
10309
|
suppressKeyPressRepeat = true;
|
|
9967
10310
|
if (p.multi)
|
|
@@ -9983,7 +10326,7 @@
|
|
|
9983
10326
|
break;
|
|
9984
10327
|
|
|
9985
10328
|
case keycodeJs.VALUE_TAB:
|
|
9986
|
-
if (dropList.hasFocusedItem()) {
|
|
10329
|
+
if (dropList.isVisible() && dropList.hasFocusedItem()) {
|
|
9987
10330
|
dropList.triggerItemSelection(evt);
|
|
9988
10331
|
}
|
|
9989
10332
|
break;
|
|
@@ -10040,19 +10383,28 @@
|
|
|
10040
10383
|
|
|
10041
10384
|
switch (evt.key) {
|
|
10042
10385
|
case keycodeJs.VALUE_PAGE_UP:
|
|
10386
|
+
if (dropList.isVisible())
|
|
10043
10387
|
dropList.previousPage(evt);
|
|
10044
10388
|
break;
|
|
10045
10389
|
case keycodeJs.VALUE_PAGE_DOWN:
|
|
10390
|
+
if (dropList.isVisible())
|
|
10046
10391
|
dropList.nextPage(evt);
|
|
10047
10392
|
break;
|
|
10048
10393
|
case keycodeJs.VALUE_UP:
|
|
10049
|
-
dropList.
|
|
10394
|
+
if (dropList.isVisible()) {
|
|
10395
|
+
dropList.previous(evt);
|
|
10396
|
+
} else {
|
|
10397
|
+
_this6._movePrev();
|
|
10398
|
+
}
|
|
10050
10399
|
break;
|
|
10051
10400
|
case keycodeJs.VALUE_DOWN:
|
|
10052
|
-
dropList.
|
|
10401
|
+
if (dropList.isVisible()) {
|
|
10402
|
+
dropList.next(evt);
|
|
10403
|
+
} else {
|
|
10404
|
+
_this6._moveNext();
|
|
10405
|
+
}
|
|
10053
10406
|
break;}
|
|
10054
10407
|
|
|
10055
|
-
|
|
10056
10408
|
break;}
|
|
10057
10409
|
|
|
10058
10410
|
});
|
|
@@ -10134,6 +10486,40 @@
|
|
|
10134
10486
|
}).
|
|
10135
10487
|
add(p.el, 'touchcancel.dropdown_touchextra', onTouchCancel);
|
|
10136
10488
|
});
|
|
10489
|
+
} }, { key: "_movePrev", value:
|
|
10490
|
+
|
|
10491
|
+
function _movePrev() {var _p$filteredItems;
|
|
10492
|
+
var p = this._p;
|
|
10493
|
+
|
|
10494
|
+
if (this.isMultiEnabled()) return;
|
|
10495
|
+
|
|
10496
|
+
var selectedItems = this.getSelectedItems();
|
|
10497
|
+
var items = (_p$filteredItems = p.filteredItems) !== null && _p$filteredItems !== void 0 ? _p$filteredItems : p.items;
|
|
10498
|
+
if (p.currentItemsView && p.currentItemsView.length === items.length)
|
|
10499
|
+
items = p.currentItemsView;
|
|
10500
|
+
if (items.length + (p.clearable ? 1 : 0) > 1) {
|
|
10501
|
+
var nextIndex = selectedItems.length > 0 ? items.indexOf(selectedItems[0]) - 1 : items.length - 1;
|
|
10502
|
+
if (nextIndex === -1 && !p.clearable)
|
|
10503
|
+
nextIndex = items.length - 1;
|
|
10504
|
+
this.setSelectedItems(nextIndex === -1 ? [] : [items[nextIndex]]);
|
|
10505
|
+
}
|
|
10506
|
+
} }, { key: "_moveNext", value:
|
|
10507
|
+
|
|
10508
|
+
function _moveNext() {var _p$filteredItems2;
|
|
10509
|
+
var p = this._p;
|
|
10510
|
+
|
|
10511
|
+
if (this.isMultiEnabled()) return;
|
|
10512
|
+
|
|
10513
|
+
var selectedItems = this.getSelectedItems();
|
|
10514
|
+
var items = (_p$filteredItems2 = p.filteredItems) !== null && _p$filteredItems2 !== void 0 ? _p$filteredItems2 : p.items;
|
|
10515
|
+
if (p.currentItemsView && p.currentItemsView.length === items.length)
|
|
10516
|
+
items = p.currentItemsView;
|
|
10517
|
+
if (items.length + (p.clearable ? 1 : 0) > 1) {
|
|
10518
|
+
var nextIndex = selectedItems.length > 0 ? items.indexOf(selectedItems[0]) + 1 : 0;
|
|
10519
|
+
if (nextIndex === items.length)
|
|
10520
|
+
nextIndex = p.clearable ? -1 : 0;
|
|
10521
|
+
this.setSelectedItems(nextIndex === -1 ? [] : [items[nextIndex]]);
|
|
10522
|
+
}
|
|
10137
10523
|
}
|
|
10138
10524
|
|
|
10139
10525
|
/** @private */ }, { key: "_updateListItems", value:
|
|
@@ -10174,6 +10560,7 @@
|
|
|
10174
10560
|
}
|
|
10175
10561
|
|
|
10176
10562
|
dropList.addItems(items);
|
|
10563
|
+
p.currentItemsView = items;
|
|
10177
10564
|
p.itemsChanged = false;
|
|
10178
10565
|
p.selectionChanged = true;
|
|
10179
10566
|
p.resortBySelectionNeeded = false;
|