@rhc-shared-components/packages-table 2.0.0 → 2.0.1

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/index.js CHANGED
@@ -1,11 +1,9 @@
1
1
  var jsxRuntime = require('react/jsx-runtime');
2
2
  var React = require('react');
3
3
  var reactCore = require('@patternfly/react-core');
4
- var lodash = require('lodash');
5
4
  var KeyboardHandler = require('@patternfly/react-core/dist/esm/helpers/KeyboardHandler');
6
5
  var ouia = require('@patternfly/react-core/dist/esm/helpers/OUIA/ouia');
7
6
  var helpers = require('@patternfly/react-core/dist/esm/helpers');
8
- var mergeWith = require('lodash/mergeWith');
9
7
  var Tooltip = require('@patternfly/react-core/dist/esm/components/Tooltip');
10
8
  var Button = require('@patternfly/react-core/dist/esm/components/Button');
11
9
  var Popover = require('@patternfly/react-core/dist/esm/components/Popover');
@@ -17,8 +15,6 @@ var Checkbox = require('@patternfly/react-core/dist/esm/components/Checkbox');
17
15
  var deprecated = require('@patternfly/react-core/deprecated');
18
16
  var dateFns = require('date-fns');
19
17
 
20
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
-
22
18
  function _interopNamespace(e) {
23
19
  if (e && e.__esModule) return e;
24
20
  var n = Object.create(null);
@@ -38,7 +34,6 @@ function _interopNamespace(e) {
38
34
  }
39
35
 
40
36
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
41
- var mergeWith__default = /*#__PURE__*/_interopDefaultLegacy(mergeWith);
42
37
 
43
38
  var css_248z = ".vulnerabilities-table .impact-icon {\n font-size: 1.5rem;\n padding-right: 0.5rem;\n}\n.vulnerabilities-table .impact-icon.color-critical {\n color: #a30000;\n}\n.vulnerabilities-table .impact-icon.color-important {\n color: #ec7a08;\n}\n.vulnerabilities-table .impact-icon.color-moderate {\n color: #f5c12e;\n}\n.vulnerabilities-table .impact-icon.color-low {\n color: #777;\n}\n.vulnerabilities-table__affected-packages-cell {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.vulnerabilities-table__impact-cell {\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n}\n\n.filterable-table {\n padding-bottom: var(--pf-v5-global--spacer--lg);\n}\n.filterable-table__bottom-pagination[class] {\n margin-top: 1rem;\n}\n.filterable-table .pf-v5-c-toolbar__content {\n --pf-v5-c-toolbar__content--PaddingRight: 0;\n --pf-v5-c-toolbar__content--PaddingLeft: 0;\n}\n.filterable-table .pf-v5-c-input-group__text {\n --pf-v5-c-input-group__text--PaddingRight: 0;\n}\n.filterable-table .pf-v5-c-pagination.pf-m-bottom {\n --pf-v5-c-pagination--m-bottom--md--PaddingRight: 0;\n}\n\n.packages-table .pf-v5-c-tabs__item > button {\n padding: 1rem 1.5rem;\n}\n.packages-table__excluded-packages-disclaimer {\n margin: 1rem 0 0 0.5rem;\n}\n\n.filter-input {\n width: 18rem;\n}";
44
39
 
@@ -1528,6 +1523,2135 @@ var styles = {
1528
1523
  "tableStickyCell": "pf-v5-c-table__sticky-cell"
1529
1524
  };
1530
1525
 
1526
+ /**
1527
+ * Removes all key-value entries from the list cache.
1528
+ *
1529
+ * @private
1530
+ * @name clear
1531
+ * @memberOf ListCache
1532
+ */
1533
+ function listCacheClear() {
1534
+ this.__data__ = [];
1535
+ this.size = 0;
1536
+ }
1537
+ var _listCacheClear = listCacheClear;
1538
+
1539
+ /**
1540
+ * Performs a
1541
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1542
+ * comparison between two values to determine if they are equivalent.
1543
+ *
1544
+ * @static
1545
+ * @memberOf _
1546
+ * @since 4.0.0
1547
+ * @category Lang
1548
+ * @param {*} value The value to compare.
1549
+ * @param {*} other The other value to compare.
1550
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1551
+ * @example
1552
+ *
1553
+ * var object = { 'a': 1 };
1554
+ * var other = { 'a': 1 };
1555
+ *
1556
+ * _.eq(object, object);
1557
+ * // => true
1558
+ *
1559
+ * _.eq(object, other);
1560
+ * // => false
1561
+ *
1562
+ * _.eq('a', 'a');
1563
+ * // => true
1564
+ *
1565
+ * _.eq('a', Object('a'));
1566
+ * // => false
1567
+ *
1568
+ * _.eq(NaN, NaN);
1569
+ * // => true
1570
+ */
1571
+ function eq(value, other) {
1572
+ return value === other || value !== value && other !== other;
1573
+ }
1574
+ var eq_1 = eq;
1575
+
1576
+ /**
1577
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
1578
+ *
1579
+ * @private
1580
+ * @param {Array} array The array to inspect.
1581
+ * @param {*} key The key to search for.
1582
+ * @returns {number} Returns the index of the matched value, else `-1`.
1583
+ */
1584
+ function assocIndexOf(array, key) {
1585
+ var length = array.length;
1586
+ while (length--) {
1587
+ if (eq_1(array[length][0], key)) {
1588
+ return length;
1589
+ }
1590
+ }
1591
+ return -1;
1592
+ }
1593
+ var _assocIndexOf = assocIndexOf;
1594
+
1595
+ /** Used for built-in method references. */
1596
+ var arrayProto = Array.prototype;
1597
+
1598
+ /** Built-in value references. */
1599
+ var splice = arrayProto.splice;
1600
+
1601
+ /**
1602
+ * Removes `key` and its value from the list cache.
1603
+ *
1604
+ * @private
1605
+ * @name delete
1606
+ * @memberOf ListCache
1607
+ * @param {string} key The key of the value to remove.
1608
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1609
+ */
1610
+ function listCacheDelete(key) {
1611
+ var data = this.__data__,
1612
+ index = _assocIndexOf(data, key);
1613
+ if (index < 0) {
1614
+ return false;
1615
+ }
1616
+ var lastIndex = data.length - 1;
1617
+ if (index == lastIndex) {
1618
+ data.pop();
1619
+ } else {
1620
+ splice.call(data, index, 1);
1621
+ }
1622
+ --this.size;
1623
+ return true;
1624
+ }
1625
+ var _listCacheDelete = listCacheDelete;
1626
+
1627
+ /**
1628
+ * Gets the list cache value for `key`.
1629
+ *
1630
+ * @private
1631
+ * @name get
1632
+ * @memberOf ListCache
1633
+ * @param {string} key The key of the value to get.
1634
+ * @returns {*} Returns the entry value.
1635
+ */
1636
+ function listCacheGet(key) {
1637
+ var data = this.__data__,
1638
+ index = _assocIndexOf(data, key);
1639
+ return index < 0 ? undefined : data[index][1];
1640
+ }
1641
+ var _listCacheGet = listCacheGet;
1642
+
1643
+ /**
1644
+ * Checks if a list cache value for `key` exists.
1645
+ *
1646
+ * @private
1647
+ * @name has
1648
+ * @memberOf ListCache
1649
+ * @param {string} key The key of the entry to check.
1650
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1651
+ */
1652
+ function listCacheHas(key) {
1653
+ return _assocIndexOf(this.__data__, key) > -1;
1654
+ }
1655
+ var _listCacheHas = listCacheHas;
1656
+
1657
+ /**
1658
+ * Sets the list cache `key` to `value`.
1659
+ *
1660
+ * @private
1661
+ * @name set
1662
+ * @memberOf ListCache
1663
+ * @param {string} key The key of the value to set.
1664
+ * @param {*} value The value to set.
1665
+ * @returns {Object} Returns the list cache instance.
1666
+ */
1667
+ function listCacheSet(key, value) {
1668
+ var data = this.__data__,
1669
+ index = _assocIndexOf(data, key);
1670
+ if (index < 0) {
1671
+ ++this.size;
1672
+ data.push([key, value]);
1673
+ } else {
1674
+ data[index][1] = value;
1675
+ }
1676
+ return this;
1677
+ }
1678
+ var _listCacheSet = listCacheSet;
1679
+
1680
+ /**
1681
+ * Creates an list cache object.
1682
+ *
1683
+ * @private
1684
+ * @constructor
1685
+ * @param {Array} [entries] The key-value pairs to cache.
1686
+ */
1687
+ function ListCache(entries) {
1688
+ var index = -1,
1689
+ length = entries == null ? 0 : entries.length;
1690
+ this.clear();
1691
+ while (++index < length) {
1692
+ var entry = entries[index];
1693
+ this.set(entry[0], entry[1]);
1694
+ }
1695
+ }
1696
+
1697
+ // Add methods to `ListCache`.
1698
+ ListCache.prototype.clear = _listCacheClear;
1699
+ ListCache.prototype['delete'] = _listCacheDelete;
1700
+ ListCache.prototype.get = _listCacheGet;
1701
+ ListCache.prototype.has = _listCacheHas;
1702
+ ListCache.prototype.set = _listCacheSet;
1703
+ var _ListCache = ListCache;
1704
+
1705
+ /**
1706
+ * Removes all key-value entries from the stack.
1707
+ *
1708
+ * @private
1709
+ * @name clear
1710
+ * @memberOf Stack
1711
+ */
1712
+ function stackClear() {
1713
+ this.__data__ = new _ListCache();
1714
+ this.size = 0;
1715
+ }
1716
+ var _stackClear = stackClear;
1717
+
1718
+ /**
1719
+ * Removes `key` and its value from the stack.
1720
+ *
1721
+ * @private
1722
+ * @name delete
1723
+ * @memberOf Stack
1724
+ * @param {string} key The key of the value to remove.
1725
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1726
+ */
1727
+ function stackDelete(key) {
1728
+ var data = this.__data__,
1729
+ result = data['delete'](key);
1730
+ this.size = data.size;
1731
+ return result;
1732
+ }
1733
+ var _stackDelete = stackDelete;
1734
+
1735
+ /**
1736
+ * Gets the stack value for `key`.
1737
+ *
1738
+ * @private
1739
+ * @name get
1740
+ * @memberOf Stack
1741
+ * @param {string} key The key of the value to get.
1742
+ * @returns {*} Returns the entry value.
1743
+ */
1744
+ function stackGet(key) {
1745
+ return this.__data__.get(key);
1746
+ }
1747
+ var _stackGet = stackGet;
1748
+
1749
+ /**
1750
+ * Checks if a stack value for `key` exists.
1751
+ *
1752
+ * @private
1753
+ * @name has
1754
+ * @memberOf Stack
1755
+ * @param {string} key The key of the entry to check.
1756
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1757
+ */
1758
+ function stackHas(key) {
1759
+ return this.__data__.has(key);
1760
+ }
1761
+ var _stackHas = stackHas;
1762
+
1763
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1764
+
1765
+ function createCommonjsModule(fn) {
1766
+ var module = { exports: {} };
1767
+ return fn(module, module.exports), module.exports;
1768
+ }
1769
+
1770
+ /** Detect free variable `global` from Node.js. */
1771
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1772
+ var _freeGlobal = freeGlobal;
1773
+
1774
+ /** Detect free variable `self`. */
1775
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1776
+
1777
+ /** Used as a reference to the global object. */
1778
+ var root = _freeGlobal || freeSelf || Function('return this')();
1779
+ var _root = root;
1780
+
1781
+ /** Built-in value references. */
1782
+ var Symbol = _root.Symbol;
1783
+ var _Symbol = Symbol;
1784
+
1785
+ /** Used for built-in method references. */
1786
+ var objectProto$a = Object.prototype;
1787
+
1788
+ /** Used to check objects for own properties. */
1789
+ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
1790
+
1791
+ /**
1792
+ * Used to resolve the
1793
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1794
+ * of values.
1795
+ */
1796
+ var nativeObjectToString$1 = objectProto$a.toString;
1797
+
1798
+ /** Built-in value references. */
1799
+ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
1800
+
1801
+ /**
1802
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1803
+ *
1804
+ * @private
1805
+ * @param {*} value The value to query.
1806
+ * @returns {string} Returns the raw `toStringTag`.
1807
+ */
1808
+ function getRawTag(value) {
1809
+ var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
1810
+ tag = value[symToStringTag$1];
1811
+ try {
1812
+ value[symToStringTag$1] = undefined;
1813
+ var unmasked = true;
1814
+ } catch (e) {}
1815
+ var result = nativeObjectToString$1.call(value);
1816
+ if (unmasked) {
1817
+ if (isOwn) {
1818
+ value[symToStringTag$1] = tag;
1819
+ } else {
1820
+ delete value[symToStringTag$1];
1821
+ }
1822
+ }
1823
+ return result;
1824
+ }
1825
+ var _getRawTag = getRawTag;
1826
+
1827
+ /** Used for built-in method references. */
1828
+ var objectProto$9 = Object.prototype;
1829
+
1830
+ /**
1831
+ * Used to resolve the
1832
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1833
+ * of values.
1834
+ */
1835
+ var nativeObjectToString = objectProto$9.toString;
1836
+
1837
+ /**
1838
+ * Converts `value` to a string using `Object.prototype.toString`.
1839
+ *
1840
+ * @private
1841
+ * @param {*} value The value to convert.
1842
+ * @returns {string} Returns the converted string.
1843
+ */
1844
+ function objectToString(value) {
1845
+ return nativeObjectToString.call(value);
1846
+ }
1847
+ var _objectToString = objectToString;
1848
+
1849
+ /** `Object#toString` result references. */
1850
+ var nullTag = '[object Null]',
1851
+ undefinedTag = '[object Undefined]';
1852
+
1853
+ /** Built-in value references. */
1854
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1855
+
1856
+ /**
1857
+ * The base implementation of `getTag` without fallbacks for buggy environments.
1858
+ *
1859
+ * @private
1860
+ * @param {*} value The value to query.
1861
+ * @returns {string} Returns the `toStringTag`.
1862
+ */
1863
+ function baseGetTag(value) {
1864
+ if (value == null) {
1865
+ return value === undefined ? undefinedTag : nullTag;
1866
+ }
1867
+ return symToStringTag && symToStringTag in Object(value) ? _getRawTag(value) : _objectToString(value);
1868
+ }
1869
+ var _baseGetTag = baseGetTag;
1870
+
1871
+ /**
1872
+ * Checks if `value` is the
1873
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1874
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1875
+ *
1876
+ * @static
1877
+ * @memberOf _
1878
+ * @since 0.1.0
1879
+ * @category Lang
1880
+ * @param {*} value The value to check.
1881
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1882
+ * @example
1883
+ *
1884
+ * _.isObject({});
1885
+ * // => true
1886
+ *
1887
+ * _.isObject([1, 2, 3]);
1888
+ * // => true
1889
+ *
1890
+ * _.isObject(_.noop);
1891
+ * // => true
1892
+ *
1893
+ * _.isObject(null);
1894
+ * // => false
1895
+ */
1896
+ function isObject(value) {
1897
+ var type = typeof value;
1898
+ return value != null && (type == 'object' || type == 'function');
1899
+ }
1900
+ var isObject_1 = isObject;
1901
+
1902
+ /** `Object#toString` result references. */
1903
+ var asyncTag = '[object AsyncFunction]',
1904
+ funcTag$1 = '[object Function]',
1905
+ genTag = '[object GeneratorFunction]',
1906
+ proxyTag = '[object Proxy]';
1907
+
1908
+ /**
1909
+ * Checks if `value` is classified as a `Function` object.
1910
+ *
1911
+ * @static
1912
+ * @memberOf _
1913
+ * @since 0.1.0
1914
+ * @category Lang
1915
+ * @param {*} value The value to check.
1916
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1917
+ * @example
1918
+ *
1919
+ * _.isFunction(_);
1920
+ * // => true
1921
+ *
1922
+ * _.isFunction(/abc/);
1923
+ * // => false
1924
+ */
1925
+ function isFunction(value) {
1926
+ if (!isObject_1(value)) {
1927
+ return false;
1928
+ }
1929
+ // The use of `Object#toString` avoids issues with the `typeof` operator
1930
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
1931
+ var tag = _baseGetTag(value);
1932
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
1933
+ }
1934
+ var isFunction_1 = isFunction;
1935
+
1936
+ /** Used to detect overreaching core-js shims. */
1937
+ var coreJsData = _root['__core-js_shared__'];
1938
+ var _coreJsData = coreJsData;
1939
+
1940
+ /** Used to detect methods masquerading as native. */
1941
+ var maskSrcKey = function () {
1942
+ var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1943
+ return uid ? 'Symbol(src)_1.' + uid : '';
1944
+ }();
1945
+
1946
+ /**
1947
+ * Checks if `func` has its source masked.
1948
+ *
1949
+ * @private
1950
+ * @param {Function} func The function to check.
1951
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1952
+ */
1953
+ function isMasked(func) {
1954
+ return !!maskSrcKey && maskSrcKey in func;
1955
+ }
1956
+ var _isMasked = isMasked;
1957
+
1958
+ /** Used for built-in method references. */
1959
+ var funcProto$2 = Function.prototype;
1960
+
1961
+ /** Used to resolve the decompiled source of functions. */
1962
+ var funcToString$2 = funcProto$2.toString;
1963
+
1964
+ /**
1965
+ * Converts `func` to its source code.
1966
+ *
1967
+ * @private
1968
+ * @param {Function} func The function to convert.
1969
+ * @returns {string} Returns the source code.
1970
+ */
1971
+ function toSource(func) {
1972
+ if (func != null) {
1973
+ try {
1974
+ return funcToString$2.call(func);
1975
+ } catch (e) {}
1976
+ try {
1977
+ return func + '';
1978
+ } catch (e) {}
1979
+ }
1980
+ return '';
1981
+ }
1982
+ var _toSource = toSource;
1983
+
1984
+ /**
1985
+ * Used to match `RegExp`
1986
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1987
+ */
1988
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1989
+
1990
+ /** Used to detect host constructors (Safari). */
1991
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
1992
+
1993
+ /** Used for built-in method references. */
1994
+ var funcProto$1 = Function.prototype,
1995
+ objectProto$8 = Object.prototype;
1996
+
1997
+ /** Used to resolve the decompiled source of functions. */
1998
+ var funcToString$1 = funcProto$1.toString;
1999
+
2000
+ /** Used to check objects for own properties. */
2001
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
2002
+
2003
+ /** Used to detect if a method is native. */
2004
+ var reIsNative = RegExp('^' + funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
2005
+
2006
+ /**
2007
+ * The base implementation of `_.isNative` without bad shim checks.
2008
+ *
2009
+ * @private
2010
+ * @param {*} value The value to check.
2011
+ * @returns {boolean} Returns `true` if `value` is a native function,
2012
+ * else `false`.
2013
+ */
2014
+ function baseIsNative(value) {
2015
+ if (!isObject_1(value) || _isMasked(value)) {
2016
+ return false;
2017
+ }
2018
+ var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
2019
+ return pattern.test(_toSource(value));
2020
+ }
2021
+ var _baseIsNative = baseIsNative;
2022
+
2023
+ /**
2024
+ * Gets the value at `key` of `object`.
2025
+ *
2026
+ * @private
2027
+ * @param {Object} [object] The object to query.
2028
+ * @param {string} key The key of the property to get.
2029
+ * @returns {*} Returns the property value.
2030
+ */
2031
+ function getValue(object, key) {
2032
+ return object == null ? undefined : object[key];
2033
+ }
2034
+ var _getValue = getValue;
2035
+
2036
+ /**
2037
+ * Gets the native function at `key` of `object`.
2038
+ *
2039
+ * @private
2040
+ * @param {Object} object The object to query.
2041
+ * @param {string} key The key of the method to get.
2042
+ * @returns {*} Returns the function if it's native, else `undefined`.
2043
+ */
2044
+ function getNative(object, key) {
2045
+ var value = _getValue(object, key);
2046
+ return _baseIsNative(value) ? value : undefined;
2047
+ }
2048
+ var _getNative = getNative;
2049
+
2050
+ /* Built-in method references that are verified to be native. */
2051
+ var Map = _getNative(_root, 'Map');
2052
+ var _Map = Map;
2053
+
2054
+ /* Built-in method references that are verified to be native. */
2055
+ var nativeCreate = _getNative(Object, 'create');
2056
+ var _nativeCreate = nativeCreate;
2057
+
2058
+ /**
2059
+ * Removes all key-value entries from the hash.
2060
+ *
2061
+ * @private
2062
+ * @name clear
2063
+ * @memberOf Hash
2064
+ */
2065
+ function hashClear() {
2066
+ this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
2067
+ this.size = 0;
2068
+ }
2069
+ var _hashClear = hashClear;
2070
+
2071
+ /**
2072
+ * Removes `key` and its value from the hash.
2073
+ *
2074
+ * @private
2075
+ * @name delete
2076
+ * @memberOf Hash
2077
+ * @param {Object} hash The hash to modify.
2078
+ * @param {string} key The key of the value to remove.
2079
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2080
+ */
2081
+ function hashDelete(key) {
2082
+ var result = this.has(key) && delete this.__data__[key];
2083
+ this.size -= result ? 1 : 0;
2084
+ return result;
2085
+ }
2086
+ var _hashDelete = hashDelete;
2087
+
2088
+ /** Used to stand-in for `undefined` hash values. */
2089
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
2090
+
2091
+ /** Used for built-in method references. */
2092
+ var objectProto$7 = Object.prototype;
2093
+
2094
+ /** Used to check objects for own properties. */
2095
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
2096
+
2097
+ /**
2098
+ * Gets the hash value for `key`.
2099
+ *
2100
+ * @private
2101
+ * @name get
2102
+ * @memberOf Hash
2103
+ * @param {string} key The key of the value to get.
2104
+ * @returns {*} Returns the entry value.
2105
+ */
2106
+ function hashGet(key) {
2107
+ var data = this.__data__;
2108
+ if (_nativeCreate) {
2109
+ var result = data[key];
2110
+ return result === HASH_UNDEFINED$1 ? undefined : result;
2111
+ }
2112
+ return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
2113
+ }
2114
+ var _hashGet = hashGet;
2115
+
2116
+ /** Used for built-in method references. */
2117
+ var objectProto$6 = Object.prototype;
2118
+
2119
+ /** Used to check objects for own properties. */
2120
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
2121
+
2122
+ /**
2123
+ * Checks if a hash value for `key` exists.
2124
+ *
2125
+ * @private
2126
+ * @name has
2127
+ * @memberOf Hash
2128
+ * @param {string} key The key of the entry to check.
2129
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2130
+ */
2131
+ function hashHas(key) {
2132
+ var data = this.__data__;
2133
+ return _nativeCreate ? data[key] !== undefined : hasOwnProperty$5.call(data, key);
2134
+ }
2135
+ var _hashHas = hashHas;
2136
+
2137
+ /** Used to stand-in for `undefined` hash values. */
2138
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
2139
+
2140
+ /**
2141
+ * Sets the hash `key` to `value`.
2142
+ *
2143
+ * @private
2144
+ * @name set
2145
+ * @memberOf Hash
2146
+ * @param {string} key The key of the value to set.
2147
+ * @param {*} value The value to set.
2148
+ * @returns {Object} Returns the hash instance.
2149
+ */
2150
+ function hashSet(key, value) {
2151
+ var data = this.__data__;
2152
+ this.size += this.has(key) ? 0 : 1;
2153
+ data[key] = _nativeCreate && value === undefined ? HASH_UNDEFINED : value;
2154
+ return this;
2155
+ }
2156
+ var _hashSet = hashSet;
2157
+
2158
+ /**
2159
+ * Creates a hash object.
2160
+ *
2161
+ * @private
2162
+ * @constructor
2163
+ * @param {Array} [entries] The key-value pairs to cache.
2164
+ */
2165
+ function Hash(entries) {
2166
+ var index = -1,
2167
+ length = entries == null ? 0 : entries.length;
2168
+ this.clear();
2169
+ while (++index < length) {
2170
+ var entry = entries[index];
2171
+ this.set(entry[0], entry[1]);
2172
+ }
2173
+ }
2174
+
2175
+ // Add methods to `Hash`.
2176
+ Hash.prototype.clear = _hashClear;
2177
+ Hash.prototype['delete'] = _hashDelete;
2178
+ Hash.prototype.get = _hashGet;
2179
+ Hash.prototype.has = _hashHas;
2180
+ Hash.prototype.set = _hashSet;
2181
+ var _Hash = Hash;
2182
+
2183
+ /**
2184
+ * Removes all key-value entries from the map.
2185
+ *
2186
+ * @private
2187
+ * @name clear
2188
+ * @memberOf MapCache
2189
+ */
2190
+ function mapCacheClear() {
2191
+ this.size = 0;
2192
+ this.__data__ = {
2193
+ 'hash': new _Hash(),
2194
+ 'map': new (_Map || _ListCache)(),
2195
+ 'string': new _Hash()
2196
+ };
2197
+ }
2198
+ var _mapCacheClear = mapCacheClear;
2199
+
2200
+ /**
2201
+ * Checks if `value` is suitable for use as unique object key.
2202
+ *
2203
+ * @private
2204
+ * @param {*} value The value to check.
2205
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
2206
+ */
2207
+ function isKeyable(value) {
2208
+ var type = typeof value;
2209
+ return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;
2210
+ }
2211
+ var _isKeyable = isKeyable;
2212
+
2213
+ /**
2214
+ * Gets the data for `map`.
2215
+ *
2216
+ * @private
2217
+ * @param {Object} map The map to query.
2218
+ * @param {string} key The reference key.
2219
+ * @returns {*} Returns the map data.
2220
+ */
2221
+ function getMapData(map, key) {
2222
+ var data = map.__data__;
2223
+ return _isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;
2224
+ }
2225
+ var _getMapData = getMapData;
2226
+
2227
+ /**
2228
+ * Removes `key` and its value from the map.
2229
+ *
2230
+ * @private
2231
+ * @name delete
2232
+ * @memberOf MapCache
2233
+ * @param {string} key The key of the value to remove.
2234
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2235
+ */
2236
+ function mapCacheDelete(key) {
2237
+ var result = _getMapData(this, key)['delete'](key);
2238
+ this.size -= result ? 1 : 0;
2239
+ return result;
2240
+ }
2241
+ var _mapCacheDelete = mapCacheDelete;
2242
+
2243
+ /**
2244
+ * Gets the map value for `key`.
2245
+ *
2246
+ * @private
2247
+ * @name get
2248
+ * @memberOf MapCache
2249
+ * @param {string} key The key of the value to get.
2250
+ * @returns {*} Returns the entry value.
2251
+ */
2252
+ function mapCacheGet(key) {
2253
+ return _getMapData(this, key).get(key);
2254
+ }
2255
+ var _mapCacheGet = mapCacheGet;
2256
+
2257
+ /**
2258
+ * Checks if a map value for `key` exists.
2259
+ *
2260
+ * @private
2261
+ * @name has
2262
+ * @memberOf MapCache
2263
+ * @param {string} key The key of the entry to check.
2264
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2265
+ */
2266
+ function mapCacheHas(key) {
2267
+ return _getMapData(this, key).has(key);
2268
+ }
2269
+ var _mapCacheHas = mapCacheHas;
2270
+
2271
+ /**
2272
+ * Sets the map `key` to `value`.
2273
+ *
2274
+ * @private
2275
+ * @name set
2276
+ * @memberOf MapCache
2277
+ * @param {string} key The key of the value to set.
2278
+ * @param {*} value The value to set.
2279
+ * @returns {Object} Returns the map cache instance.
2280
+ */
2281
+ function mapCacheSet(key, value) {
2282
+ var data = _getMapData(this, key),
2283
+ size = data.size;
2284
+ data.set(key, value);
2285
+ this.size += data.size == size ? 0 : 1;
2286
+ return this;
2287
+ }
2288
+ var _mapCacheSet = mapCacheSet;
2289
+
2290
+ /**
2291
+ * Creates a map cache object to store key-value pairs.
2292
+ *
2293
+ * @private
2294
+ * @constructor
2295
+ * @param {Array} [entries] The key-value pairs to cache.
2296
+ */
2297
+ function MapCache(entries) {
2298
+ var index = -1,
2299
+ length = entries == null ? 0 : entries.length;
2300
+ this.clear();
2301
+ while (++index < length) {
2302
+ var entry = entries[index];
2303
+ this.set(entry[0], entry[1]);
2304
+ }
2305
+ }
2306
+
2307
+ // Add methods to `MapCache`.
2308
+ MapCache.prototype.clear = _mapCacheClear;
2309
+ MapCache.prototype['delete'] = _mapCacheDelete;
2310
+ MapCache.prototype.get = _mapCacheGet;
2311
+ MapCache.prototype.has = _mapCacheHas;
2312
+ MapCache.prototype.set = _mapCacheSet;
2313
+ var _MapCache = MapCache;
2314
+
2315
+ /** Used as the size to enable large array optimizations. */
2316
+ var LARGE_ARRAY_SIZE = 200;
2317
+
2318
+ /**
2319
+ * Sets the stack `key` to `value`.
2320
+ *
2321
+ * @private
2322
+ * @name set
2323
+ * @memberOf Stack
2324
+ * @param {string} key The key of the value to set.
2325
+ * @param {*} value The value to set.
2326
+ * @returns {Object} Returns the stack cache instance.
2327
+ */
2328
+ function stackSet(key, value) {
2329
+ var data = this.__data__;
2330
+ if (data instanceof _ListCache) {
2331
+ var pairs = data.__data__;
2332
+ if (!_Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
2333
+ pairs.push([key, value]);
2334
+ this.size = ++data.size;
2335
+ return this;
2336
+ }
2337
+ data = this.__data__ = new _MapCache(pairs);
2338
+ }
2339
+ data.set(key, value);
2340
+ this.size = data.size;
2341
+ return this;
2342
+ }
2343
+ var _stackSet = stackSet;
2344
+
2345
+ /**
2346
+ * Creates a stack cache object to store key-value pairs.
2347
+ *
2348
+ * @private
2349
+ * @constructor
2350
+ * @param {Array} [entries] The key-value pairs to cache.
2351
+ */
2352
+ function Stack(entries) {
2353
+ var data = this.__data__ = new _ListCache(entries);
2354
+ this.size = data.size;
2355
+ }
2356
+
2357
+ // Add methods to `Stack`.
2358
+ Stack.prototype.clear = _stackClear;
2359
+ Stack.prototype['delete'] = _stackDelete;
2360
+ Stack.prototype.get = _stackGet;
2361
+ Stack.prototype.has = _stackHas;
2362
+ Stack.prototype.set = _stackSet;
2363
+ var _Stack = Stack;
2364
+
2365
+ var defineProperty = function () {
2366
+ try {
2367
+ var func = _getNative(Object, 'defineProperty');
2368
+ func({}, '', {});
2369
+ return func;
2370
+ } catch (e) {}
2371
+ }();
2372
+ var _defineProperty = defineProperty;
2373
+
2374
+ /**
2375
+ * The base implementation of `assignValue` and `assignMergeValue` without
2376
+ * value checks.
2377
+ *
2378
+ * @private
2379
+ * @param {Object} object The object to modify.
2380
+ * @param {string} key The key of the property to assign.
2381
+ * @param {*} value The value to assign.
2382
+ */
2383
+ function baseAssignValue(object, key, value) {
2384
+ if (key == '__proto__' && _defineProperty) {
2385
+ _defineProperty(object, key, {
2386
+ 'configurable': true,
2387
+ 'enumerable': true,
2388
+ 'value': value,
2389
+ 'writable': true
2390
+ });
2391
+ } else {
2392
+ object[key] = value;
2393
+ }
2394
+ }
2395
+ var _baseAssignValue = baseAssignValue;
2396
+
2397
+ /**
2398
+ * This function is like `assignValue` except that it doesn't assign
2399
+ * `undefined` values.
2400
+ *
2401
+ * @private
2402
+ * @param {Object} object The object to modify.
2403
+ * @param {string} key The key of the property to assign.
2404
+ * @param {*} value The value to assign.
2405
+ */
2406
+ function assignMergeValue(object, key, value) {
2407
+ if (value !== undefined && !eq_1(object[key], value) || value === undefined && !(key in object)) {
2408
+ _baseAssignValue(object, key, value);
2409
+ }
2410
+ }
2411
+ var _assignMergeValue = assignMergeValue;
2412
+
2413
+ /**
2414
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
2415
+ *
2416
+ * @private
2417
+ * @param {boolean} [fromRight] Specify iterating from right to left.
2418
+ * @returns {Function} Returns the new base function.
2419
+ */
2420
+ function createBaseFor(fromRight) {
2421
+ return function (object, iteratee, keysFunc) {
2422
+ var index = -1,
2423
+ iterable = Object(object),
2424
+ props = keysFunc(object),
2425
+ length = props.length;
2426
+ while (length--) {
2427
+ var key = props[fromRight ? length : ++index];
2428
+ if (iteratee(iterable[key], key, iterable) === false) {
2429
+ break;
2430
+ }
2431
+ }
2432
+ return object;
2433
+ };
2434
+ }
2435
+ var _createBaseFor = createBaseFor;
2436
+
2437
+ /**
2438
+ * The base implementation of `baseForOwn` which iterates over `object`
2439
+ * properties returned by `keysFunc` and invokes `iteratee` for each property.
2440
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
2441
+ *
2442
+ * @private
2443
+ * @param {Object} object The object to iterate over.
2444
+ * @param {Function} iteratee The function invoked per iteration.
2445
+ * @param {Function} keysFunc The function to get the keys of `object`.
2446
+ * @returns {Object} Returns `object`.
2447
+ */
2448
+ var baseFor = _createBaseFor();
2449
+ var _baseFor = baseFor;
2450
+
2451
+ var _cloneBuffer = createCommonjsModule(function (module, exports) {
2452
+ /** Detect free variable `exports`. */
2453
+ var freeExports = exports && !exports.nodeType && exports;
2454
+
2455
+ /** Detect free variable `module`. */
2456
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
2457
+
2458
+ /** Detect the popular CommonJS extension `module.exports`. */
2459
+ var moduleExports = freeModule && freeModule.exports === freeExports;
2460
+
2461
+ /** Built-in value references. */
2462
+ var Buffer = moduleExports ? _root.Buffer : undefined,
2463
+ allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
2464
+
2465
+ /**
2466
+ * Creates a clone of `buffer`.
2467
+ *
2468
+ * @private
2469
+ * @param {Buffer} buffer The buffer to clone.
2470
+ * @param {boolean} [isDeep] Specify a deep clone.
2471
+ * @returns {Buffer} Returns the cloned buffer.
2472
+ */
2473
+ function cloneBuffer(buffer, isDeep) {
2474
+ if (isDeep) {
2475
+ return buffer.slice();
2476
+ }
2477
+ var length = buffer.length,
2478
+ result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
2479
+ buffer.copy(result);
2480
+ return result;
2481
+ }
2482
+ module.exports = cloneBuffer;
2483
+ });
2484
+
2485
+ /** Built-in value references. */
2486
+ var Uint8Array = _root.Uint8Array;
2487
+ var _Uint8Array = Uint8Array;
2488
+
2489
+ /**
2490
+ * Creates a clone of `arrayBuffer`.
2491
+ *
2492
+ * @private
2493
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
2494
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
2495
+ */
2496
+ function cloneArrayBuffer(arrayBuffer) {
2497
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
2498
+ new _Uint8Array(result).set(new _Uint8Array(arrayBuffer));
2499
+ return result;
2500
+ }
2501
+ var _cloneArrayBuffer = cloneArrayBuffer;
2502
+
2503
+ /**
2504
+ * Creates a clone of `typedArray`.
2505
+ *
2506
+ * @private
2507
+ * @param {Object} typedArray The typed array to clone.
2508
+ * @param {boolean} [isDeep] Specify a deep clone.
2509
+ * @returns {Object} Returns the cloned typed array.
2510
+ */
2511
+ function cloneTypedArray(typedArray, isDeep) {
2512
+ var buffer = isDeep ? _cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
2513
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
2514
+ }
2515
+ var _cloneTypedArray = cloneTypedArray;
2516
+
2517
+ /**
2518
+ * Copies the values of `source` to `array`.
2519
+ *
2520
+ * @private
2521
+ * @param {Array} source The array to copy values from.
2522
+ * @param {Array} [array=[]] The array to copy values to.
2523
+ * @returns {Array} Returns `array`.
2524
+ */
2525
+ function copyArray(source, array) {
2526
+ var index = -1,
2527
+ length = source.length;
2528
+ array || (array = Array(length));
2529
+ while (++index < length) {
2530
+ array[index] = source[index];
2531
+ }
2532
+ return array;
2533
+ }
2534
+ var _copyArray = copyArray;
2535
+
2536
+ /** Built-in value references. */
2537
+ var objectCreate = Object.create;
2538
+
2539
+ /**
2540
+ * The base implementation of `_.create` without support for assigning
2541
+ * properties to the created object.
2542
+ *
2543
+ * @private
2544
+ * @param {Object} proto The object to inherit from.
2545
+ * @returns {Object} Returns the new object.
2546
+ */
2547
+ var baseCreate = function () {
2548
+ function object() {}
2549
+ return function (proto) {
2550
+ if (!isObject_1(proto)) {
2551
+ return {};
2552
+ }
2553
+ if (objectCreate) {
2554
+ return objectCreate(proto);
2555
+ }
2556
+ object.prototype = proto;
2557
+ var result = new object();
2558
+ object.prototype = undefined;
2559
+ return result;
2560
+ };
2561
+ }();
2562
+ var _baseCreate = baseCreate;
2563
+
2564
+ /**
2565
+ * Creates a unary function that invokes `func` with its argument transformed.
2566
+ *
2567
+ * @private
2568
+ * @param {Function} func The function to wrap.
2569
+ * @param {Function} transform The argument transform.
2570
+ * @returns {Function} Returns the new function.
2571
+ */
2572
+ function overArg(func, transform) {
2573
+ return function (arg) {
2574
+ return func(transform(arg));
2575
+ };
2576
+ }
2577
+ var _overArg = overArg;
2578
+
2579
+ /** Built-in value references. */
2580
+ var getPrototype = _overArg(Object.getPrototypeOf, Object);
2581
+ var _getPrototype = getPrototype;
2582
+
2583
+ /** Used for built-in method references. */
2584
+ var objectProto$5 = Object.prototype;
2585
+
2586
+ /**
2587
+ * Checks if `value` is likely a prototype object.
2588
+ *
2589
+ * @private
2590
+ * @param {*} value The value to check.
2591
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
2592
+ */
2593
+ function isPrototype(value) {
2594
+ var Ctor = value && value.constructor,
2595
+ proto = typeof Ctor == 'function' && Ctor.prototype || objectProto$5;
2596
+ return value === proto;
2597
+ }
2598
+ var _isPrototype = isPrototype;
2599
+
2600
+ /**
2601
+ * Initializes an object clone.
2602
+ *
2603
+ * @private
2604
+ * @param {Object} object The object to clone.
2605
+ * @returns {Object} Returns the initialized clone.
2606
+ */
2607
+ function initCloneObject(object) {
2608
+ return typeof object.constructor == 'function' && !_isPrototype(object) ? _baseCreate(_getPrototype(object)) : {};
2609
+ }
2610
+ var _initCloneObject = initCloneObject;
2611
+
2612
+ /**
2613
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
2614
+ * and has a `typeof` result of "object".
2615
+ *
2616
+ * @static
2617
+ * @memberOf _
2618
+ * @since 4.0.0
2619
+ * @category Lang
2620
+ * @param {*} value The value to check.
2621
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2622
+ * @example
2623
+ *
2624
+ * _.isObjectLike({});
2625
+ * // => true
2626
+ *
2627
+ * _.isObjectLike([1, 2, 3]);
2628
+ * // => true
2629
+ *
2630
+ * _.isObjectLike(_.noop);
2631
+ * // => false
2632
+ *
2633
+ * _.isObjectLike(null);
2634
+ * // => false
2635
+ */
2636
+ function isObjectLike(value) {
2637
+ return value != null && typeof value == 'object';
2638
+ }
2639
+ var isObjectLike_1 = isObjectLike;
2640
+
2641
+ /** `Object#toString` result references. */
2642
+ var argsTag$1 = '[object Arguments]';
2643
+
2644
+ /**
2645
+ * The base implementation of `_.isArguments`.
2646
+ *
2647
+ * @private
2648
+ * @param {*} value The value to check.
2649
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
2650
+ */
2651
+ function baseIsArguments(value) {
2652
+ return isObjectLike_1(value) && _baseGetTag(value) == argsTag$1;
2653
+ }
2654
+ var _baseIsArguments = baseIsArguments;
2655
+
2656
+ /** Used for built-in method references. */
2657
+ var objectProto$4 = Object.prototype;
2658
+
2659
+ /** Used to check objects for own properties. */
2660
+ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
2661
+
2662
+ /** Built-in value references. */
2663
+ var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
2664
+
2665
+ /**
2666
+ * Checks if `value` is likely an `arguments` object.
2667
+ *
2668
+ * @static
2669
+ * @memberOf _
2670
+ * @since 0.1.0
2671
+ * @category Lang
2672
+ * @param {*} value The value to check.
2673
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
2674
+ * else `false`.
2675
+ * @example
2676
+ *
2677
+ * _.isArguments(function() { return arguments; }());
2678
+ * // => true
2679
+ *
2680
+ * _.isArguments([1, 2, 3]);
2681
+ * // => false
2682
+ */
2683
+ var isArguments = _baseIsArguments(function () {
2684
+ return arguments;
2685
+ }()) ? _baseIsArguments : function (value) {
2686
+ return isObjectLike_1(value) && hasOwnProperty$4.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
2687
+ };
2688
+ var isArguments_1 = isArguments;
2689
+
2690
+ /**
2691
+ * Checks if `value` is classified as an `Array` object.
2692
+ *
2693
+ * @static
2694
+ * @memberOf _
2695
+ * @since 0.1.0
2696
+ * @category Lang
2697
+ * @param {*} value The value to check.
2698
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
2699
+ * @example
2700
+ *
2701
+ * _.isArray([1, 2, 3]);
2702
+ * // => true
2703
+ *
2704
+ * _.isArray(document.body.children);
2705
+ * // => false
2706
+ *
2707
+ * _.isArray('abc');
2708
+ * // => false
2709
+ *
2710
+ * _.isArray(_.noop);
2711
+ * // => false
2712
+ */
2713
+ var isArray = Array.isArray;
2714
+ var isArray_1 = isArray;
2715
+
2716
+ /** Used as references for various `Number` constants. */
2717
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
2718
+
2719
+ /**
2720
+ * Checks if `value` is a valid array-like length.
2721
+ *
2722
+ * **Note:** This method is loosely based on
2723
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
2724
+ *
2725
+ * @static
2726
+ * @memberOf _
2727
+ * @since 4.0.0
2728
+ * @category Lang
2729
+ * @param {*} value The value to check.
2730
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
2731
+ * @example
2732
+ *
2733
+ * _.isLength(3);
2734
+ * // => true
2735
+ *
2736
+ * _.isLength(Number.MIN_VALUE);
2737
+ * // => false
2738
+ *
2739
+ * _.isLength(Infinity);
2740
+ * // => false
2741
+ *
2742
+ * _.isLength('3');
2743
+ * // => false
2744
+ */
2745
+ function isLength(value) {
2746
+ return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
2747
+ }
2748
+ var isLength_1 = isLength;
2749
+
2750
+ /**
2751
+ * Checks if `value` is array-like. A value is considered array-like if it's
2752
+ * not a function and has a `value.length` that's an integer greater than or
2753
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
2754
+ *
2755
+ * @static
2756
+ * @memberOf _
2757
+ * @since 4.0.0
2758
+ * @category Lang
2759
+ * @param {*} value The value to check.
2760
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
2761
+ * @example
2762
+ *
2763
+ * _.isArrayLike([1, 2, 3]);
2764
+ * // => true
2765
+ *
2766
+ * _.isArrayLike(document.body.children);
2767
+ * // => true
2768
+ *
2769
+ * _.isArrayLike('abc');
2770
+ * // => true
2771
+ *
2772
+ * _.isArrayLike(_.noop);
2773
+ * // => false
2774
+ */
2775
+ function isArrayLike(value) {
2776
+ return value != null && isLength_1(value.length) && !isFunction_1(value);
2777
+ }
2778
+ var isArrayLike_1 = isArrayLike;
2779
+
2780
+ /**
2781
+ * This method is like `_.isArrayLike` except that it also checks if `value`
2782
+ * is an object.
2783
+ *
2784
+ * @static
2785
+ * @memberOf _
2786
+ * @since 4.0.0
2787
+ * @category Lang
2788
+ * @param {*} value The value to check.
2789
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
2790
+ * else `false`.
2791
+ * @example
2792
+ *
2793
+ * _.isArrayLikeObject([1, 2, 3]);
2794
+ * // => true
2795
+ *
2796
+ * _.isArrayLikeObject(document.body.children);
2797
+ * // => true
2798
+ *
2799
+ * _.isArrayLikeObject('abc');
2800
+ * // => false
2801
+ *
2802
+ * _.isArrayLikeObject(_.noop);
2803
+ * // => false
2804
+ */
2805
+ function isArrayLikeObject(value) {
2806
+ return isObjectLike_1(value) && isArrayLike_1(value);
2807
+ }
2808
+ var isArrayLikeObject_1 = isArrayLikeObject;
2809
+
2810
+ /**
2811
+ * This method returns `false`.
2812
+ *
2813
+ * @static
2814
+ * @memberOf _
2815
+ * @since 4.13.0
2816
+ * @category Util
2817
+ * @returns {boolean} Returns `false`.
2818
+ * @example
2819
+ *
2820
+ * _.times(2, _.stubFalse);
2821
+ * // => [false, false]
2822
+ */
2823
+ function stubFalse() {
2824
+ return false;
2825
+ }
2826
+ var stubFalse_1 = stubFalse;
2827
+
2828
+ var isBuffer_1 = createCommonjsModule(function (module, exports) {
2829
+ /** Detect free variable `exports`. */
2830
+ var freeExports = exports && !exports.nodeType && exports;
2831
+
2832
+ /** Detect free variable `module`. */
2833
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
2834
+
2835
+ /** Detect the popular CommonJS extension `module.exports`. */
2836
+ var moduleExports = freeModule && freeModule.exports === freeExports;
2837
+
2838
+ /** Built-in value references. */
2839
+ var Buffer = moduleExports ? _root.Buffer : undefined;
2840
+
2841
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2842
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
2843
+
2844
+ /**
2845
+ * Checks if `value` is a buffer.
2846
+ *
2847
+ * @static
2848
+ * @memberOf _
2849
+ * @since 4.3.0
2850
+ * @category Lang
2851
+ * @param {*} value The value to check.
2852
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
2853
+ * @example
2854
+ *
2855
+ * _.isBuffer(new Buffer(2));
2856
+ * // => true
2857
+ *
2858
+ * _.isBuffer(new Uint8Array(2));
2859
+ * // => false
2860
+ */
2861
+ var isBuffer = nativeIsBuffer || stubFalse_1;
2862
+ module.exports = isBuffer;
2863
+ });
2864
+
2865
+ /** `Object#toString` result references. */
2866
+ var objectTag$1 = '[object Object]';
2867
+
2868
+ /** Used for built-in method references. */
2869
+ var funcProto = Function.prototype,
2870
+ objectProto$3 = Object.prototype;
2871
+
2872
+ /** Used to resolve the decompiled source of functions. */
2873
+ var funcToString = funcProto.toString;
2874
+
2875
+ /** Used to check objects for own properties. */
2876
+ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
2877
+
2878
+ /** Used to infer the `Object` constructor. */
2879
+ var objectCtorString = funcToString.call(Object);
2880
+
2881
+ /**
2882
+ * Checks if `value` is a plain object, that is, an object created by the
2883
+ * `Object` constructor or one with a `[[Prototype]]` of `null`.
2884
+ *
2885
+ * @static
2886
+ * @memberOf _
2887
+ * @since 0.8.0
2888
+ * @category Lang
2889
+ * @param {*} value The value to check.
2890
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
2891
+ * @example
2892
+ *
2893
+ * function Foo() {
2894
+ * this.a = 1;
2895
+ * }
2896
+ *
2897
+ * _.isPlainObject(new Foo);
2898
+ * // => false
2899
+ *
2900
+ * _.isPlainObject([1, 2, 3]);
2901
+ * // => false
2902
+ *
2903
+ * _.isPlainObject({ 'x': 0, 'y': 0 });
2904
+ * // => true
2905
+ *
2906
+ * _.isPlainObject(Object.create(null));
2907
+ * // => true
2908
+ */
2909
+ function isPlainObject(value) {
2910
+ if (!isObjectLike_1(value) || _baseGetTag(value) != objectTag$1) {
2911
+ return false;
2912
+ }
2913
+ var proto = _getPrototype(value);
2914
+ if (proto === null) {
2915
+ return true;
2916
+ }
2917
+ var Ctor = hasOwnProperty$3.call(proto, 'constructor') && proto.constructor;
2918
+ return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
2919
+ }
2920
+ var isPlainObject_1 = isPlainObject;
2921
+
2922
+ /** `Object#toString` result references. */
2923
+ var argsTag = '[object Arguments]',
2924
+ arrayTag = '[object Array]',
2925
+ boolTag = '[object Boolean]',
2926
+ dateTag = '[object Date]',
2927
+ errorTag = '[object Error]',
2928
+ funcTag = '[object Function]',
2929
+ mapTag = '[object Map]',
2930
+ numberTag = '[object Number]',
2931
+ objectTag = '[object Object]',
2932
+ regexpTag = '[object RegExp]',
2933
+ setTag = '[object Set]',
2934
+ stringTag = '[object String]',
2935
+ weakMapTag = '[object WeakMap]';
2936
+ var arrayBufferTag = '[object ArrayBuffer]',
2937
+ dataViewTag = '[object DataView]',
2938
+ float32Tag = '[object Float32Array]',
2939
+ float64Tag = '[object Float64Array]',
2940
+ int8Tag = '[object Int8Array]',
2941
+ int16Tag = '[object Int16Array]',
2942
+ int32Tag = '[object Int32Array]',
2943
+ uint8Tag = '[object Uint8Array]',
2944
+ uint8ClampedTag = '[object Uint8ClampedArray]',
2945
+ uint16Tag = '[object Uint16Array]',
2946
+ uint32Tag = '[object Uint32Array]';
2947
+
2948
+ /** Used to identify `toStringTag` values of typed arrays. */
2949
+ var typedArrayTags = {};
2950
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
2951
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
2952
+
2953
+ /**
2954
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
2955
+ *
2956
+ * @private
2957
+ * @param {*} value The value to check.
2958
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
2959
+ */
2960
+ function baseIsTypedArray(value) {
2961
+ return isObjectLike_1(value) && isLength_1(value.length) && !!typedArrayTags[_baseGetTag(value)];
2962
+ }
2963
+ var _baseIsTypedArray = baseIsTypedArray;
2964
+
2965
+ /**
2966
+ * The base implementation of `_.unary` without support for storing metadata.
2967
+ *
2968
+ * @private
2969
+ * @param {Function} func The function to cap arguments for.
2970
+ * @returns {Function} Returns the new capped function.
2971
+ */
2972
+ function baseUnary(func) {
2973
+ return function (value) {
2974
+ return func(value);
2975
+ };
2976
+ }
2977
+ var _baseUnary = baseUnary;
2978
+
2979
+ var _nodeUtil = createCommonjsModule(function (module, exports) {
2980
+ /** Detect free variable `exports`. */
2981
+ var freeExports = exports && !exports.nodeType && exports;
2982
+
2983
+ /** Detect free variable `module`. */
2984
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
2985
+
2986
+ /** Detect the popular CommonJS extension `module.exports`. */
2987
+ var moduleExports = freeModule && freeModule.exports === freeExports;
2988
+
2989
+ /** Detect free variable `process` from Node.js. */
2990
+ var freeProcess = moduleExports && _freeGlobal.process;
2991
+
2992
+ /** Used to access faster Node.js helpers. */
2993
+ var nodeUtil = function () {
2994
+ try {
2995
+ // Use `util.types` for Node.js 10+.
2996
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
2997
+ if (types) {
2998
+ return types;
2999
+ }
3000
+
3001
+ // Legacy `process.binding('util')` for Node.js < 10.
3002
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
3003
+ } catch (e) {}
3004
+ }();
3005
+ module.exports = nodeUtil;
3006
+ });
3007
+
3008
+ /* Node.js helper references. */
3009
+ var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
3010
+
3011
+ /**
3012
+ * Checks if `value` is classified as a typed array.
3013
+ *
3014
+ * @static
3015
+ * @memberOf _
3016
+ * @since 3.0.0
3017
+ * @category Lang
3018
+ * @param {*} value The value to check.
3019
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
3020
+ * @example
3021
+ *
3022
+ * _.isTypedArray(new Uint8Array);
3023
+ * // => true
3024
+ *
3025
+ * _.isTypedArray([]);
3026
+ * // => false
3027
+ */
3028
+ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsTypedArray;
3029
+ var isTypedArray_1 = isTypedArray;
3030
+
3031
+ /**
3032
+ * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
3033
+ *
3034
+ * @private
3035
+ * @param {Object} object The object to query.
3036
+ * @param {string} key The key of the property to get.
3037
+ * @returns {*} Returns the property value.
3038
+ */
3039
+ function safeGet(object, key) {
3040
+ if (key === 'constructor' && typeof object[key] === 'function') {
3041
+ return;
3042
+ }
3043
+ if (key == '__proto__') {
3044
+ return;
3045
+ }
3046
+ return object[key];
3047
+ }
3048
+ var _safeGet = safeGet;
3049
+
3050
+ /** Used for built-in method references. */
3051
+ var objectProto$2 = Object.prototype;
3052
+
3053
+ /** Used to check objects for own properties. */
3054
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
3055
+
3056
+ /**
3057
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
3058
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
3059
+ * for equality comparisons.
3060
+ *
3061
+ * @private
3062
+ * @param {Object} object The object to modify.
3063
+ * @param {string} key The key of the property to assign.
3064
+ * @param {*} value The value to assign.
3065
+ */
3066
+ function assignValue(object, key, value) {
3067
+ var objValue = object[key];
3068
+ if (!(hasOwnProperty$2.call(object, key) && eq_1(objValue, value)) || value === undefined && !(key in object)) {
3069
+ _baseAssignValue(object, key, value);
3070
+ }
3071
+ }
3072
+ var _assignValue = assignValue;
3073
+
3074
+ /**
3075
+ * Copies properties of `source` to `object`.
3076
+ *
3077
+ * @private
3078
+ * @param {Object} source The object to copy properties from.
3079
+ * @param {Array} props The property identifiers to copy.
3080
+ * @param {Object} [object={}] The object to copy properties to.
3081
+ * @param {Function} [customizer] The function to customize copied values.
3082
+ * @returns {Object} Returns `object`.
3083
+ */
3084
+ function copyObject(source, props, object, customizer) {
3085
+ var isNew = !object;
3086
+ object || (object = {});
3087
+ var index = -1,
3088
+ length = props.length;
3089
+ while (++index < length) {
3090
+ var key = props[index];
3091
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;
3092
+ if (newValue === undefined) {
3093
+ newValue = source[key];
3094
+ }
3095
+ if (isNew) {
3096
+ _baseAssignValue(object, key, newValue);
3097
+ } else {
3098
+ _assignValue(object, key, newValue);
3099
+ }
3100
+ }
3101
+ return object;
3102
+ }
3103
+ var _copyObject = copyObject;
3104
+
3105
+ /**
3106
+ * The base implementation of `_.times` without support for iteratee shorthands
3107
+ * or max array length checks.
3108
+ *
3109
+ * @private
3110
+ * @param {number} n The number of times to invoke `iteratee`.
3111
+ * @param {Function} iteratee The function invoked per iteration.
3112
+ * @returns {Array} Returns the array of results.
3113
+ */
3114
+ function baseTimes(n, iteratee) {
3115
+ var index = -1,
3116
+ result = Array(n);
3117
+ while (++index < n) {
3118
+ result[index] = iteratee(index);
3119
+ }
3120
+ return result;
3121
+ }
3122
+ var _baseTimes = baseTimes;
3123
+
3124
+ /** Used as references for various `Number` constants. */
3125
+ var MAX_SAFE_INTEGER = 9007199254740991;
3126
+
3127
+ /** Used to detect unsigned integer values. */
3128
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
3129
+
3130
+ /**
3131
+ * Checks if `value` is a valid array-like index.
3132
+ *
3133
+ * @private
3134
+ * @param {*} value The value to check.
3135
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
3136
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
3137
+ */
3138
+ function isIndex(value, length) {
3139
+ var type = typeof value;
3140
+ length = length == null ? MAX_SAFE_INTEGER : length;
3141
+ return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
3142
+ }
3143
+ var _isIndex = isIndex;
3144
+
3145
+ /** Used for built-in method references. */
3146
+ var objectProto$1 = Object.prototype;
3147
+
3148
+ /** Used to check objects for own properties. */
3149
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
3150
+
3151
+ /**
3152
+ * Creates an array of the enumerable property names of the array-like `value`.
3153
+ *
3154
+ * @private
3155
+ * @param {*} value The value to query.
3156
+ * @param {boolean} inherited Specify returning inherited property names.
3157
+ * @returns {Array} Returns the array of property names.
3158
+ */
3159
+ function arrayLikeKeys(value, inherited) {
3160
+ var isArr = isArray_1(value),
3161
+ isArg = !isArr && isArguments_1(value),
3162
+ isBuff = !isArr && !isArg && isBuffer_1(value),
3163
+ isType = !isArr && !isArg && !isBuff && isTypedArray_1(value),
3164
+ skipIndexes = isArr || isArg || isBuff || isType,
3165
+ result = skipIndexes ? _baseTimes(value.length, String) : [],
3166
+ length = result.length;
3167
+ for (var key in value) {
3168
+ if ((inherited || hasOwnProperty$1.call(value, key)) && !(skipIndexes && (
3169
+ // Safari 9 has enumerable `arguments.length` in strict mode.
3170
+ key == 'length' ||
3171
+ // Node.js 0.10 has enumerable non-index properties on buffers.
3172
+ isBuff && (key == 'offset' || key == 'parent') ||
3173
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
3174
+ isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') ||
3175
+ // Skip index properties.
3176
+ _isIndex(key, length)))) {
3177
+ result.push(key);
3178
+ }
3179
+ }
3180
+ return result;
3181
+ }
3182
+ var _arrayLikeKeys = arrayLikeKeys;
3183
+
3184
+ /**
3185
+ * This function is like
3186
+ * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
3187
+ * except that it includes inherited enumerable properties.
3188
+ *
3189
+ * @private
3190
+ * @param {Object} object The object to query.
3191
+ * @returns {Array} Returns the array of property names.
3192
+ */
3193
+ function nativeKeysIn(object) {
3194
+ var result = [];
3195
+ if (object != null) {
3196
+ for (var key in Object(object)) {
3197
+ result.push(key);
3198
+ }
3199
+ }
3200
+ return result;
3201
+ }
3202
+ var _nativeKeysIn = nativeKeysIn;
3203
+
3204
+ /** Used for built-in method references. */
3205
+ var objectProto = Object.prototype;
3206
+
3207
+ /** Used to check objects for own properties. */
3208
+ var hasOwnProperty = objectProto.hasOwnProperty;
3209
+
3210
+ /**
3211
+ * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
3212
+ *
3213
+ * @private
3214
+ * @param {Object} object The object to query.
3215
+ * @returns {Array} Returns the array of property names.
3216
+ */
3217
+ function baseKeysIn(object) {
3218
+ if (!isObject_1(object)) {
3219
+ return _nativeKeysIn(object);
3220
+ }
3221
+ var isProto = _isPrototype(object),
3222
+ result = [];
3223
+ for (var key in object) {
3224
+ if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
3225
+ result.push(key);
3226
+ }
3227
+ }
3228
+ return result;
3229
+ }
3230
+ var _baseKeysIn = baseKeysIn;
3231
+
3232
+ /**
3233
+ * Creates an array of the own and inherited enumerable property names of `object`.
3234
+ *
3235
+ * **Note:** Non-object values are coerced to objects.
3236
+ *
3237
+ * @static
3238
+ * @memberOf _
3239
+ * @since 3.0.0
3240
+ * @category Object
3241
+ * @param {Object} object The object to query.
3242
+ * @returns {Array} Returns the array of property names.
3243
+ * @example
3244
+ *
3245
+ * function Foo() {
3246
+ * this.a = 1;
3247
+ * this.b = 2;
3248
+ * }
3249
+ *
3250
+ * Foo.prototype.c = 3;
3251
+ *
3252
+ * _.keysIn(new Foo);
3253
+ * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
3254
+ */
3255
+ function keysIn(object) {
3256
+ return isArrayLike_1(object) ? _arrayLikeKeys(object, true) : _baseKeysIn(object);
3257
+ }
3258
+ var keysIn_1 = keysIn;
3259
+
3260
+ /**
3261
+ * Converts `value` to a plain object flattening inherited enumerable string
3262
+ * keyed properties of `value` to own properties of the plain object.
3263
+ *
3264
+ * @static
3265
+ * @memberOf _
3266
+ * @since 3.0.0
3267
+ * @category Lang
3268
+ * @param {*} value The value to convert.
3269
+ * @returns {Object} Returns the converted plain object.
3270
+ * @example
3271
+ *
3272
+ * function Foo() {
3273
+ * this.b = 2;
3274
+ * }
3275
+ *
3276
+ * Foo.prototype.c = 3;
3277
+ *
3278
+ * _.assign({ 'a': 1 }, new Foo);
3279
+ * // => { 'a': 1, 'b': 2 }
3280
+ *
3281
+ * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
3282
+ * // => { 'a': 1, 'b': 2, 'c': 3 }
3283
+ */
3284
+ function toPlainObject(value) {
3285
+ return _copyObject(value, keysIn_1(value));
3286
+ }
3287
+ var toPlainObject_1 = toPlainObject;
3288
+
3289
+ /**
3290
+ * A specialized version of `baseMerge` for arrays and objects which performs
3291
+ * deep merges and tracks traversed objects enabling objects with circular
3292
+ * references to be merged.
3293
+ *
3294
+ * @private
3295
+ * @param {Object} object The destination object.
3296
+ * @param {Object} source The source object.
3297
+ * @param {string} key The key of the value to merge.
3298
+ * @param {number} srcIndex The index of `source`.
3299
+ * @param {Function} mergeFunc The function to merge values.
3300
+ * @param {Function} [customizer] The function to customize assigned values.
3301
+ * @param {Object} [stack] Tracks traversed source values and their merged
3302
+ * counterparts.
3303
+ */
3304
+ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
3305
+ var objValue = _safeGet(object, key),
3306
+ srcValue = _safeGet(source, key),
3307
+ stacked = stack.get(srcValue);
3308
+ if (stacked) {
3309
+ _assignMergeValue(object, key, stacked);
3310
+ return;
3311
+ }
3312
+ var newValue = customizer ? customizer(objValue, srcValue, key + '', object, source, stack) : undefined;
3313
+ var isCommon = newValue === undefined;
3314
+ if (isCommon) {
3315
+ var isArr = isArray_1(srcValue),
3316
+ isBuff = !isArr && isBuffer_1(srcValue),
3317
+ isTyped = !isArr && !isBuff && isTypedArray_1(srcValue);
3318
+ newValue = srcValue;
3319
+ if (isArr || isBuff || isTyped) {
3320
+ if (isArray_1(objValue)) {
3321
+ newValue = objValue;
3322
+ } else if (isArrayLikeObject_1(objValue)) {
3323
+ newValue = _copyArray(objValue);
3324
+ } else if (isBuff) {
3325
+ isCommon = false;
3326
+ newValue = _cloneBuffer(srcValue, true);
3327
+ } else if (isTyped) {
3328
+ isCommon = false;
3329
+ newValue = _cloneTypedArray(srcValue, true);
3330
+ } else {
3331
+ newValue = [];
3332
+ }
3333
+ } else if (isPlainObject_1(srcValue) || isArguments_1(srcValue)) {
3334
+ newValue = objValue;
3335
+ if (isArguments_1(objValue)) {
3336
+ newValue = toPlainObject_1(objValue);
3337
+ } else if (!isObject_1(objValue) || isFunction_1(objValue)) {
3338
+ newValue = _initCloneObject(srcValue);
3339
+ }
3340
+ } else {
3341
+ isCommon = false;
3342
+ }
3343
+ }
3344
+ if (isCommon) {
3345
+ // Recursively merge objects and arrays (susceptible to call stack limits).
3346
+ stack.set(srcValue, newValue);
3347
+ mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
3348
+ stack['delete'](srcValue);
3349
+ }
3350
+ _assignMergeValue(object, key, newValue);
3351
+ }
3352
+ var _baseMergeDeep = baseMergeDeep;
3353
+
3354
+ /**
3355
+ * The base implementation of `_.merge` without support for multiple sources.
3356
+ *
3357
+ * @private
3358
+ * @param {Object} object The destination object.
3359
+ * @param {Object} source The source object.
3360
+ * @param {number} srcIndex The index of `source`.
3361
+ * @param {Function} [customizer] The function to customize merged values.
3362
+ * @param {Object} [stack] Tracks traversed source values and their merged
3363
+ * counterparts.
3364
+ */
3365
+ function baseMerge(object, source, srcIndex, customizer, stack) {
3366
+ if (object === source) {
3367
+ return;
3368
+ }
3369
+ _baseFor(source, function (srcValue, key) {
3370
+ stack || (stack = new _Stack());
3371
+ if (isObject_1(srcValue)) {
3372
+ _baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
3373
+ } else {
3374
+ var newValue = customizer ? customizer(_safeGet(object, key), srcValue, key + '', object, source, stack) : undefined;
3375
+ if (newValue === undefined) {
3376
+ newValue = srcValue;
3377
+ }
3378
+ _assignMergeValue(object, key, newValue);
3379
+ }
3380
+ }, keysIn_1);
3381
+ }
3382
+ var _baseMerge = baseMerge;
3383
+
3384
+ /**
3385
+ * This method returns the first argument it receives.
3386
+ *
3387
+ * @static
3388
+ * @since 0.1.0
3389
+ * @memberOf _
3390
+ * @category Util
3391
+ * @param {*} value Any value.
3392
+ * @returns {*} Returns `value`.
3393
+ * @example
3394
+ *
3395
+ * var object = { 'a': 1 };
3396
+ *
3397
+ * console.log(_.identity(object) === object);
3398
+ * // => true
3399
+ */
3400
+ function identity(value) {
3401
+ return value;
3402
+ }
3403
+ var identity_1 = identity;
3404
+
3405
+ /**
3406
+ * A faster alternative to `Function#apply`, this function invokes `func`
3407
+ * with the `this` binding of `thisArg` and the arguments of `args`.
3408
+ *
3409
+ * @private
3410
+ * @param {Function} func The function to invoke.
3411
+ * @param {*} thisArg The `this` binding of `func`.
3412
+ * @param {Array} args The arguments to invoke `func` with.
3413
+ * @returns {*} Returns the result of `func`.
3414
+ */
3415
+ function apply(func, thisArg, args) {
3416
+ switch (args.length) {
3417
+ case 0:
3418
+ return func.call(thisArg);
3419
+ case 1:
3420
+ return func.call(thisArg, args[0]);
3421
+ case 2:
3422
+ return func.call(thisArg, args[0], args[1]);
3423
+ case 3:
3424
+ return func.call(thisArg, args[0], args[1], args[2]);
3425
+ }
3426
+ return func.apply(thisArg, args);
3427
+ }
3428
+ var _apply = apply;
3429
+
3430
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3431
+ var nativeMax = Math.max;
3432
+
3433
+ /**
3434
+ * A specialized version of `baseRest` which transforms the rest array.
3435
+ *
3436
+ * @private
3437
+ * @param {Function} func The function to apply a rest parameter to.
3438
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
3439
+ * @param {Function} transform The rest array transform.
3440
+ * @returns {Function} Returns the new function.
3441
+ */
3442
+ function overRest(func, start, transform) {
3443
+ start = nativeMax(start === undefined ? func.length - 1 : start, 0);
3444
+ return function () {
3445
+ var args = arguments,
3446
+ index = -1,
3447
+ length = nativeMax(args.length - start, 0),
3448
+ array = Array(length);
3449
+ while (++index < length) {
3450
+ array[index] = args[start + index];
3451
+ }
3452
+ index = -1;
3453
+ var otherArgs = Array(start + 1);
3454
+ while (++index < start) {
3455
+ otherArgs[index] = args[index];
3456
+ }
3457
+ otherArgs[start] = transform(array);
3458
+ return _apply(func, this, otherArgs);
3459
+ };
3460
+ }
3461
+ var _overRest = overRest;
3462
+
3463
+ /**
3464
+ * Creates a function that returns `value`.
3465
+ *
3466
+ * @static
3467
+ * @memberOf _
3468
+ * @since 2.4.0
3469
+ * @category Util
3470
+ * @param {*} value The value to return from the new function.
3471
+ * @returns {Function} Returns the new constant function.
3472
+ * @example
3473
+ *
3474
+ * var objects = _.times(2, _.constant({ 'a': 1 }));
3475
+ *
3476
+ * console.log(objects);
3477
+ * // => [{ 'a': 1 }, { 'a': 1 }]
3478
+ *
3479
+ * console.log(objects[0] === objects[1]);
3480
+ * // => true
3481
+ */
3482
+ function constant(value) {
3483
+ return function () {
3484
+ return value;
3485
+ };
3486
+ }
3487
+ var constant_1 = constant;
3488
+
3489
+ /**
3490
+ * The base implementation of `setToString` without support for hot loop shorting.
3491
+ *
3492
+ * @private
3493
+ * @param {Function} func The function to modify.
3494
+ * @param {Function} string The `toString` result.
3495
+ * @returns {Function} Returns `func`.
3496
+ */
3497
+ var baseSetToString = !_defineProperty ? identity_1 : function (func, string) {
3498
+ return _defineProperty(func, 'toString', {
3499
+ 'configurable': true,
3500
+ 'enumerable': false,
3501
+ 'value': constant_1(string),
3502
+ 'writable': true
3503
+ });
3504
+ };
3505
+ var _baseSetToString = baseSetToString;
3506
+
3507
+ /** Used to detect hot functions by number of calls within a span of milliseconds. */
3508
+ var HOT_COUNT = 800,
3509
+ HOT_SPAN = 16;
3510
+
3511
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3512
+ var nativeNow = Date.now;
3513
+
3514
+ /**
3515
+ * Creates a function that'll short out and invoke `identity` instead
3516
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
3517
+ * milliseconds.
3518
+ *
3519
+ * @private
3520
+ * @param {Function} func The function to restrict.
3521
+ * @returns {Function} Returns the new shortable function.
3522
+ */
3523
+ function shortOut(func) {
3524
+ var count = 0,
3525
+ lastCalled = 0;
3526
+ return function () {
3527
+ var stamp = nativeNow(),
3528
+ remaining = HOT_SPAN - (stamp - lastCalled);
3529
+ lastCalled = stamp;
3530
+ if (remaining > 0) {
3531
+ if (++count >= HOT_COUNT) {
3532
+ return arguments[0];
3533
+ }
3534
+ } else {
3535
+ count = 0;
3536
+ }
3537
+ return func.apply(undefined, arguments);
3538
+ };
3539
+ }
3540
+ var _shortOut = shortOut;
3541
+
3542
+ /**
3543
+ * Sets the `toString` method of `func` to return `string`.
3544
+ *
3545
+ * @private
3546
+ * @param {Function} func The function to modify.
3547
+ * @param {Function} string The `toString` result.
3548
+ * @returns {Function} Returns `func`.
3549
+ */
3550
+ var setToString = _shortOut(_baseSetToString);
3551
+ var _setToString = setToString;
3552
+
3553
+ /**
3554
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
3555
+ *
3556
+ * @private
3557
+ * @param {Function} func The function to apply a rest parameter to.
3558
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
3559
+ * @returns {Function} Returns the new function.
3560
+ */
3561
+ function baseRest(func, start) {
3562
+ return _setToString(_overRest(func, start, identity_1), func + '');
3563
+ }
3564
+ var _baseRest = baseRest;
3565
+
3566
+ /**
3567
+ * Checks if the given arguments are from an iteratee call.
3568
+ *
3569
+ * @private
3570
+ * @param {*} value The potential iteratee value argument.
3571
+ * @param {*} index The potential iteratee index or key argument.
3572
+ * @param {*} object The potential iteratee object argument.
3573
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
3574
+ * else `false`.
3575
+ */
3576
+ function isIterateeCall(value, index, object) {
3577
+ if (!isObject_1(object)) {
3578
+ return false;
3579
+ }
3580
+ var type = typeof index;
3581
+ if (type == 'number' ? isArrayLike_1(object) && _isIndex(index, object.length) : type == 'string' && index in object) {
3582
+ return eq_1(object[index], value);
3583
+ }
3584
+ return false;
3585
+ }
3586
+ var _isIterateeCall = isIterateeCall;
3587
+
3588
+ /**
3589
+ * Creates a function like `_.assign`.
3590
+ *
3591
+ * @private
3592
+ * @param {Function} assigner The function to assign values.
3593
+ * @returns {Function} Returns the new assigner function.
3594
+ */
3595
+ function createAssigner(assigner) {
3596
+ return _baseRest(function (object, sources) {
3597
+ var index = -1,
3598
+ length = sources.length,
3599
+ customizer = length > 1 ? sources[length - 1] : undefined,
3600
+ guard = length > 2 ? sources[2] : undefined;
3601
+ customizer = assigner.length > 3 && typeof customizer == 'function' ? (length--, customizer) : undefined;
3602
+ if (guard && _isIterateeCall(sources[0], sources[1], guard)) {
3603
+ customizer = length < 3 ? undefined : customizer;
3604
+ length = 1;
3605
+ }
3606
+ object = Object(object);
3607
+ while (++index < length) {
3608
+ var source = sources[index];
3609
+ if (source) {
3610
+ assigner(object, source, index, customizer);
3611
+ }
3612
+ }
3613
+ return object;
3614
+ });
3615
+ }
3616
+ var _createAssigner = createAssigner;
3617
+
3618
+ /**
3619
+ * This method is like `_.merge` except that it accepts `customizer` which
3620
+ * is invoked to produce the merged values of the destination and source
3621
+ * properties. If `customizer` returns `undefined`, merging is handled by the
3622
+ * method instead. The `customizer` is invoked with six arguments:
3623
+ * (objValue, srcValue, key, object, source, stack).
3624
+ *
3625
+ * **Note:** This method mutates `object`.
3626
+ *
3627
+ * @static
3628
+ * @memberOf _
3629
+ * @since 4.0.0
3630
+ * @category Object
3631
+ * @param {Object} object The destination object.
3632
+ * @param {...Object} sources The source objects.
3633
+ * @param {Function} customizer The function to customize assigned values.
3634
+ * @returns {Object} Returns `object`.
3635
+ * @example
3636
+ *
3637
+ * function customizer(objValue, srcValue) {
3638
+ * if (_.isArray(objValue)) {
3639
+ * return objValue.concat(srcValue);
3640
+ * }
3641
+ * }
3642
+ *
3643
+ * var object = { 'a': [1], 'b': [2] };
3644
+ * var other = { 'a': [3], 'b': [4] };
3645
+ *
3646
+ * _.mergeWith(object, other, customizer);
3647
+ * // => { 'a': [1, 3], 'b': [2, 4] }
3648
+ */
3649
+ var mergeWith = _createAssigner(function (object, source, srcIndex, customizer) {
3650
+ _baseMerge(object, source, srcIndex, customizer);
3651
+ });
3652
+ var mergeWith_1 = mergeWith;
3653
+ var mergeWith$1 = mergeWith_1;
3654
+
1531
3655
  /**
1532
3656
  * merge-props.js
1533
3657
  *
@@ -1542,10 +3666,10 @@ function mergeProps() {
1542
3666
  var firstProps = props[0];
1543
3667
  var restProps = props.slice(1);
1544
3668
  if (!restProps.length) {
1545
- return mergeWith__default["default"]({}, firstProps);
3669
+ return mergeWith$1({}, firstProps);
1546
3670
  }
1547
3671
  // Avoid mutating the first prop collection
1548
- return mergeWith__default["default"].apply(void 0, [mergeWith__default["default"]({}, firstProps)].concat(restProps, [function (a, b, key) {
3672
+ return mergeWith$1.apply(void 0, [mergeWith$1({}, firstProps)].concat(restProps, [function (a, b, key) {
1549
3673
  if (key === 'children') {
1550
3674
  if (a && b) {
1551
3675
  // compose the two
@@ -2006,8 +4130,14 @@ function FilterableTable(_ref) {
2006
4130
  var _columns$index, _columns$index2;
2007
4131
  var sortField = columns == null || (_columns$index = columns[index]) == null ? void 0 : _columns$index.sortField;
2008
4132
  var sortFn = columns == null || (_columns$index2 = columns[index]) == null ? void 0 : _columns$index2.sortFn;
2009
- var sortedRows = sortFn ? lodash.sortBy(filteredItems, sortFn) : sortField ? lodash.sortBy(filteredItems, function (item) {
2010
- return item[sortField];
4133
+ var sortedRows = sortFn ? [].concat(filteredItems).sort(function (a, b) {
4134
+ var aVal = sortFn(a);
4135
+ var bVal = sortFn(b);
4136
+ return aVal < bVal ? -1 : aVal > bVal ? 1 : 0;
4137
+ }) : sortField ? [].concat(filteredItems).sort(function (a, b) {
4138
+ var aVal = a[sortField];
4139
+ var bVal = b[sortField];
4140
+ return aVal < bVal ? -1 : aVal > bVal ? 1 : 0;
2011
4141
  }) : filteredItems;
2012
4142
  setSortTableBy({
2013
4143
  index: index,
@@ -2284,7 +4414,9 @@ function EcoSelect(_ref) {
2284
4414
  setSelected(result);
2285
4415
  onChange && onChange(result, event);
2286
4416
  };
2287
- var id = lodash.uniqueId('select-');
4417
+ var id = React.useMemo(function () {
4418
+ return "select-" + Math.random().toString(36).substring(2, 11);
4419
+ }, []);
2288
4420
  return jsxRuntime.jsx("div", {
2289
4421
  className: 'select',
2290
4422
  children: jsxRuntime.jsx(deprecated.Select, {
@@ -2546,7 +4678,7 @@ var PackagesTable = function PackagesTable(_ref) {
2546
4678
  var name = _ref3.name,
2547
4679
  arch = _ref3.arch;
2548
4680
  var link_data = rpms == null ? void 0 : rpms.filter(function (rpm) {
2549
- return rpm.name === name && rpm.architecture === arch;
4681
+ return rpm.name === name && rpm.architecture === arch && !excludedPackages.includes(rpm);
2550
4682
  });
2551
4683
  vulnerability.rpm_nvra_with_link_data.push(link_data[0]);
2552
4684
  });