@bigbinary/neetoui 5.1.5 → 5.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -8,6 +8,7 @@ var reactRouterDom = require('react-router-dom');
8
8
  var ReactDOM = require('react-dom');
9
9
  var generatePicker = require('antd/lib/date-picker/generatePicker');
10
10
  var _Table = require('antd/lib/table');
11
+ var require$$0 = require('util');
11
12
  var i18next = require('i18next');
12
13
  var reactToastify = require('react-toastify');
13
14
 
@@ -36,6 +37,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React$5);
36
37
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
37
38
  var generatePicker__default = /*#__PURE__*/_interopDefaultLegacy(generatePicker);
38
39
  var _Table__default = /*#__PURE__*/_interopDefaultLegacy(_Table);
40
+ var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
39
41
 
40
42
  function _typeof$6(obj) {
41
43
  "@babel/helpers - typeof";
@@ -1256,6 +1258,165 @@ function _createReduce(arrayReduce, methodReduce, iterableReduce) {
1256
1258
  };
1257
1259
  }
1258
1260
 
1261
+ function _xArrayReduce(xf, acc, list) {
1262
+ var idx = 0;
1263
+ var len = list.length;
1264
+
1265
+ while (idx < len) {
1266
+ acc = xf['@@transducer/step'](acc, list[idx]);
1267
+
1268
+ if (acc && acc['@@transducer/reduced']) {
1269
+ acc = acc['@@transducer/value'];
1270
+ break;
1271
+ }
1272
+
1273
+ idx += 1;
1274
+ }
1275
+
1276
+ return xf['@@transducer/result'](acc);
1277
+ }
1278
+
1279
+ /**
1280
+ * Creates a function that is bound to a context.
1281
+ * Note: `R.bind` does not provide the additional argument-binding capabilities of
1282
+ * [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
1283
+ *
1284
+ * @func
1285
+ * @memberOf R
1286
+ * @since v0.6.0
1287
+ * @category Function
1288
+ * @category Object
1289
+ * @sig (* -> *) -> {*} -> (* -> *)
1290
+ * @param {Function} fn The function to bind to context
1291
+ * @param {Object} thisObj The context to bind `fn` to
1292
+ * @return {Function} A function that will execute in the context of `thisObj`.
1293
+ * @see R.partial
1294
+ * @example
1295
+ *
1296
+ * const log = R.bind(console.log, console);
1297
+ * R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
1298
+ * // logs {a: 2}
1299
+ * @symb R.bind(f, o)(a, b) = f.call(o, a, b)
1300
+ */
1301
+
1302
+ var bind$2 =
1303
+ /*#__PURE__*/
1304
+ _curry2(function bind(fn, thisObj) {
1305
+ return _arity(fn.length, function () {
1306
+ return fn.apply(thisObj, arguments);
1307
+ });
1308
+ });
1309
+
1310
+ function _xIterableReduce(xf, acc, iter) {
1311
+ var step = iter.next();
1312
+
1313
+ while (!step.done) {
1314
+ acc = xf['@@transducer/step'](acc, step.value);
1315
+
1316
+ if (acc && acc['@@transducer/reduced']) {
1317
+ acc = acc['@@transducer/value'];
1318
+ break;
1319
+ }
1320
+
1321
+ step = iter.next();
1322
+ }
1323
+
1324
+ return xf['@@transducer/result'](acc);
1325
+ }
1326
+
1327
+ function _xMethodReduce(xf, acc, obj, methodName) {
1328
+ return xf['@@transducer/result'](obj[methodName](bind$2(xf['@@transducer/step'], xf), acc));
1329
+ }
1330
+
1331
+ var _xReduce =
1332
+ /*#__PURE__*/
1333
+ _createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
1334
+
1335
+ var XWrap =
1336
+ /*#__PURE__*/
1337
+ function () {
1338
+ function XWrap(fn) {
1339
+ this.f = fn;
1340
+ }
1341
+
1342
+ XWrap.prototype['@@transducer/init'] = function () {
1343
+ throw new Error('init not implemented on XWrap');
1344
+ };
1345
+
1346
+ XWrap.prototype['@@transducer/result'] = function (acc) {
1347
+ return acc;
1348
+ };
1349
+
1350
+ XWrap.prototype['@@transducer/step'] = function (acc, x) {
1351
+ return this.f(acc, x);
1352
+ };
1353
+
1354
+ return XWrap;
1355
+ }();
1356
+
1357
+ function _xwrap(fn) {
1358
+ return new XWrap(fn);
1359
+ }
1360
+
1361
+ /**
1362
+ * Returns a single item by iterating through the list, successively calling
1363
+ * the iterator function and passing it an accumulator value and the current
1364
+ * value from the array, and then passing the result to the next call.
1365
+ *
1366
+ * The iterator function receives two values: *(acc, value)*. It may use
1367
+ * [`R.reduced`](#reduced) to shortcut the iteration.
1368
+ *
1369
+ * The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
1370
+ * is *(value, acc)*.
1371
+ *
1372
+ * Note: `R.reduce` does not skip deleted or unassigned indices (sparse
1373
+ * arrays), unlike the native `Array.prototype.reduce` method. For more details
1374
+ * on this behavior, see:
1375
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
1376
+ *
1377
+ * Be cautious of mutating and returning the accumulator. If you reuse it across
1378
+ * invocations, it will continue to accumulate onto the same value. The general
1379
+ * recommendation is to always return a new value. If you can't do so for
1380
+ * performance reasons, then be sure to reinitialize the accumulator on each
1381
+ * invocation.
1382
+ *
1383
+ * Dispatches to the `reduce` method of the third argument, if present. When
1384
+ * doing so, it is up to the user to handle the [`R.reduced`](#reduced)
1385
+ * shortcuting, as this is not implemented by `reduce`.
1386
+ *
1387
+ * @func
1388
+ * @memberOf R
1389
+ * @since v0.1.0
1390
+ * @category List
1391
+ * @sig ((a, b) -> a) -> a -> [b] -> a
1392
+ * @param {Function} fn The iterator function. Receives two values, the accumulator and the
1393
+ * current element from the array.
1394
+ * @param {*} acc The accumulator value.
1395
+ * @param {Array} list The list to iterate over.
1396
+ * @return {*} The final, accumulated value.
1397
+ * @see R.reduced, R.addIndex, R.reduceRight
1398
+ * @example
1399
+ *
1400
+ * R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
1401
+ * // - -10
1402
+ * // / \ / \
1403
+ * // - 4 -6 4
1404
+ * // / \ / \
1405
+ * // - 3 ==> -3 3
1406
+ * // / \ / \
1407
+ * // - 2 -1 2
1408
+ * // / \ / \
1409
+ * // 0 1 0 1
1410
+ *
1411
+ * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
1412
+ */
1413
+
1414
+ var reduce =
1415
+ /*#__PURE__*/
1416
+ _curry3(function (xf, acc, list) {
1417
+ return _xReduce(typeof xf === 'function' ? _xwrap(xf) : xf, acc, list);
1418
+ });
1419
+
1259
1420
  function _iterableReduce(reducer, acc, iter) {
1260
1421
  var step = iter.next();
1261
1422
 
@@ -1545,6 +1706,205 @@ var complement =
1545
1706
  /*#__PURE__*/
1546
1707
  lift(not);
1547
1708
 
1709
+ function _pipe(f, g) {
1710
+ return function () {
1711
+ return g.call(this, f.apply(this, arguments));
1712
+ };
1713
+ }
1714
+
1715
+ /**
1716
+ * This checks whether a function has a [methodname] function. If it isn't an
1717
+ * array it will execute that function otherwise it will default to the ramda
1718
+ * implementation.
1719
+ *
1720
+ * @private
1721
+ * @param {Function} fn ramda implementation
1722
+ * @param {String} methodname property to check for a custom implementation
1723
+ * @return {Object} Whatever the return value of the method is.
1724
+ */
1725
+
1726
+ function _checkForMethod(methodname, fn) {
1727
+ return function () {
1728
+ var length = arguments.length;
1729
+
1730
+ if (length === 0) {
1731
+ return fn();
1732
+ }
1733
+
1734
+ var obj = arguments[length - 1];
1735
+ return _isArray$1(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));
1736
+ };
1737
+ }
1738
+
1739
+ /**
1740
+ * Returns the elements of the given list or string (or object with a `slice`
1741
+ * method) from `fromIndex` (inclusive) to `toIndex` (exclusive).
1742
+ *
1743
+ * Dispatches to the `slice` method of the third argument, if present.
1744
+ *
1745
+ * @func
1746
+ * @memberOf R
1747
+ * @since v0.1.4
1748
+ * @category List
1749
+ * @sig Number -> Number -> [a] -> [a]
1750
+ * @sig Number -> Number -> String -> String
1751
+ * @param {Number} fromIndex The start index (inclusive).
1752
+ * @param {Number} toIndex The end index (exclusive).
1753
+ * @param {*} list
1754
+ * @return {*}
1755
+ * @example
1756
+ *
1757
+ * R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
1758
+ * R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']
1759
+ * R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']
1760
+ * R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
1761
+ * R.slice(0, 3, 'ramda'); //=> 'ram'
1762
+ */
1763
+
1764
+ var slice$2 =
1765
+ /*#__PURE__*/
1766
+ _curry3(
1767
+ /*#__PURE__*/
1768
+ _checkForMethod('slice', function slice(fromIndex, toIndex, list) {
1769
+ return Array.prototype.slice.call(list, fromIndex, toIndex);
1770
+ }));
1771
+
1772
+ /**
1773
+ * Returns all but the first element of the given list or string (or object
1774
+ * with a `tail` method).
1775
+ *
1776
+ * Dispatches to the `slice` method of the first argument, if present.
1777
+ *
1778
+ * @func
1779
+ * @memberOf R
1780
+ * @since v0.1.0
1781
+ * @category List
1782
+ * @sig [a] -> [a]
1783
+ * @sig String -> String
1784
+ * @param {*} list
1785
+ * @return {*}
1786
+ * @see R.head, R.init, R.last
1787
+ * @example
1788
+ *
1789
+ * R.tail([1, 2, 3]); //=> [2, 3]
1790
+ * R.tail([1, 2]); //=> [2]
1791
+ * R.tail([1]); //=> []
1792
+ * R.tail([]); //=> []
1793
+ *
1794
+ * R.tail('abc'); //=> 'bc'
1795
+ * R.tail('ab'); //=> 'b'
1796
+ * R.tail('a'); //=> ''
1797
+ * R.tail(''); //=> ''
1798
+ */
1799
+
1800
+ var tail =
1801
+ /*#__PURE__*/
1802
+ _curry1(
1803
+ /*#__PURE__*/
1804
+ _checkForMethod('tail',
1805
+ /*#__PURE__*/
1806
+ slice$2(1, Infinity)));
1807
+
1808
+ /**
1809
+ * Performs left-to-right function composition. The first argument may have
1810
+ * any arity; the remaining arguments must be unary.
1811
+ *
1812
+ * In some libraries this function is named `sequence`.
1813
+ *
1814
+ * **Note:** The result of pipe is not automatically curried.
1815
+ *
1816
+ * @func
1817
+ * @memberOf R
1818
+ * @since v0.1.0
1819
+ * @category Function
1820
+ * @sig (((a, b, ..., n) -> o), (o -> p), ..., (x -> y), (y -> z)) -> ((a, b, ..., n) -> z)
1821
+ * @param {...Function} functions
1822
+ * @return {Function}
1823
+ * @see R.compose
1824
+ * @example
1825
+ *
1826
+ * const f = R.pipe(Math.pow, R.negate, R.inc);
1827
+ *
1828
+ * f(3, 4); // -(3^4) + 1
1829
+ * @symb R.pipe(f, g, h)(a, b) = h(g(f(a, b)))
1830
+ * @symb R.pipe(f, g, h)(a)(b) = h(g(f(a)))(b)
1831
+ */
1832
+
1833
+ function pipe$1() {
1834
+ if (arguments.length === 0) {
1835
+ throw new Error('pipe requires at least one argument');
1836
+ }
1837
+
1838
+ return _arity(arguments[0].length, reduce(_pipe, arguments[0], tail(arguments)));
1839
+ }
1840
+
1841
+ /**
1842
+ * Returns a curried equivalent of the provided function. The curried function
1843
+ * has two unusual capabilities. First, its arguments needn't be provided one
1844
+ * at a time. If `f` is a ternary function and `g` is `R.curry(f)`, the
1845
+ * following are equivalent:
1846
+ *
1847
+ * - `g(1)(2)(3)`
1848
+ * - `g(1)(2, 3)`
1849
+ * - `g(1, 2)(3)`
1850
+ * - `g(1, 2, 3)`
1851
+ *
1852
+ * Secondly, the special placeholder value [`R.__`](#__) may be used to specify
1853
+ * "gaps", allowing partial application of any combination of arguments,
1854
+ * regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),
1855
+ * the following are equivalent:
1856
+ *
1857
+ * - `g(1, 2, 3)`
1858
+ * - `g(_, 2, 3)(1)`
1859
+ * - `g(_, _, 3)(1)(2)`
1860
+ * - `g(_, _, 3)(1, 2)`
1861
+ * - `g(_, 2)(1)(3)`
1862
+ * - `g(_, 2)(1, 3)`
1863
+ * - `g(_, 2)(_, 3)(1)`
1864
+ *
1865
+ * Please note that default parameters don't count towards a [function arity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length)
1866
+ * and therefore `curry` won't work well with those:
1867
+ *
1868
+ * ```
1869
+ * const h = R.curry((a, b, c = 2) => a + b + c);
1870
+ *
1871
+ * h(40);
1872
+ * //=> function (waits for `b`)
1873
+ *
1874
+ * h(39)(1);
1875
+ * //=> 42
1876
+ *
1877
+ * h(1)(2, 3);
1878
+ * //=> 6
1879
+ *
1880
+ * h(1)(2)(7);
1881
+ * //=> Error! (`3` is not a function!)
1882
+ * ```
1883
+ *
1884
+ * @func
1885
+ * @memberOf R
1886
+ * @since v0.1.0
1887
+ * @category Function
1888
+ * @sig (* -> a) -> (* -> a)
1889
+ * @param {Function} fn The function to curry.
1890
+ * @return {Function} A new, curried function.
1891
+ * @see R.curryN, R.partial
1892
+ * @example
1893
+ *
1894
+ * const addFourNumbers = (a, b, c, d) => a + b + c + d;
1895
+ *
1896
+ * const curriedAddFourNumbers = R.curry(addFourNumbers);
1897
+ * const f = curriedAddFourNumbers(1, 2);
1898
+ * const g = f(3);
1899
+ * g(4); //=> 10
1900
+ */
1901
+
1902
+ var curry =
1903
+ /*#__PURE__*/
1904
+ _curry1(function curry(fn) {
1905
+ return curryN(fn.length, fn);
1906
+ });
1907
+
1548
1908
  /**
1549
1909
  * Tests whether or not an object is a typed array.
1550
1910
  *
@@ -1716,6 +2076,78 @@ _curry3(function (from, to, list) {
1716
2076
  return positiveFrom < 0 || positiveFrom >= list.length || positiveTo < 0 || positiveTo >= list.length ? list : [].concat(result.slice(0, positiveTo)).concat(item).concat(result.slice(positiveTo, list.length));
1717
2077
  });
1718
2078
 
2079
+ /**
2080
+ * Returns a partial copy of an object omitting the keys specified.
2081
+ *
2082
+ * @func
2083
+ * @memberOf R
2084
+ * @since v0.1.0
2085
+ * @category Object
2086
+ * @sig [String] -> {String: *} -> {String: *}
2087
+ * @param {Array} names an array of String property names to omit from the new object
2088
+ * @param {Object} obj The object to copy from
2089
+ * @return {Object} A new object with properties from `names` not on it.
2090
+ * @see R.pick
2091
+ * @example
2092
+ *
2093
+ * R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
2094
+ */
2095
+
2096
+ var omit =
2097
+ /*#__PURE__*/
2098
+ _curry2(function omit(names, obj) {
2099
+ var result = {};
2100
+ var index = {};
2101
+ var idx = 0;
2102
+ var len = names.length;
2103
+
2104
+ while (idx < len) {
2105
+ index[names[idx]] = 1;
2106
+ idx += 1;
2107
+ }
2108
+
2109
+ for (var prop in obj) {
2110
+ if (!index.hasOwnProperty(prop)) {
2111
+ result[prop] = obj[prop];
2112
+ }
2113
+ }
2114
+
2115
+ return result;
2116
+ });
2117
+
2118
+ /**
2119
+ * Converts an object into an array of key, value arrays. Only the object's
2120
+ * own properties are used.
2121
+ * Note that the order of the output array is not guaranteed to be consistent
2122
+ * across different JS platforms.
2123
+ *
2124
+ * @func
2125
+ * @memberOf R
2126
+ * @since v0.4.0
2127
+ * @category Object
2128
+ * @sig {String: *} -> [[String,*]]
2129
+ * @param {Object} obj The object to extract from
2130
+ * @return {Array} An array of key, value arrays from the object's own properties.
2131
+ * @see R.fromPairs, R.keys, R.values
2132
+ * @example
2133
+ *
2134
+ * R.toPairs({a: 1, b: 2, c: 3}); //=> [['a', 1], ['b', 2], ['c', 3]]
2135
+ */
2136
+
2137
+ var toPairs =
2138
+ /*#__PURE__*/
2139
+ _curry1(function toPairs(obj) {
2140
+ var pairs = [];
2141
+
2142
+ for (var prop in obj) {
2143
+ if (_has$1(prop, obj)) {
2144
+ pairs[pairs.length] = [prop, obj[prop]];
2145
+ }
2146
+ }
2147
+
2148
+ return pairs;
2149
+ });
2150
+
1719
2151
  function _extends$4() {
1720
2152
  _extends$4 = Object.assign ? Object.assign.bind() : function (target) {
1721
2153
  for (var i = 1; i < arguments.length; i++) {
@@ -2445,7 +2877,7 @@ var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
2445
2877
  var floatRegex = /(-)?([\d]*\.?[\d])+/g;
2446
2878
  var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi;
2447
2879
  var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
2448
- function isString$2(v) {
2880
+ function isString$3(v) {
2449
2881
  return typeof v === 'string';
2450
2882
  }
2451
2883
 
@@ -2459,7 +2891,7 @@ var scale = __assign(__assign({}, number), { default: 1 });
2459
2891
 
2460
2892
  var createUnitType = function (unit) { return ({
2461
2893
  test: function (v) {
2462
- return isString$2(v) && v.endsWith(unit) && v.split(' ').length === 1;
2894
+ return isString$3(v) && v.endsWith(unit) && v.split(' ').length === 1;
2463
2895
  },
2464
2896
  parse: parseFloat,
2465
2897
  transform: function (v) { return "" + v + unit; },
@@ -2472,12 +2904,12 @@ var vw = createUnitType('vw');
2472
2904
  var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
2473
2905
 
2474
2906
  var isColorString = function (type, testProp) { return function (v) {
2475
- return Boolean((isString$2(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
2907
+ return Boolean((isString$3(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
2476
2908
  (testProp && Object.prototype.hasOwnProperty.call(v, testProp)));
2477
2909
  }; };
2478
2910
  var splitColor = function (aName, bName, cName) { return function (v) {
2479
2911
  var _a;
2480
- if (!isString$2(v))
2912
+ if (!isString$3(v))
2481
2913
  return v;
2482
2914
  var _b = v.match(floatRegex), a = _b[0], b = _b[1], c = _b[2], alpha = _b[3];
2483
2915
  return _a = {},
@@ -2572,7 +3004,7 @@ var color = {
2572
3004
  }
2573
3005
  },
2574
3006
  transform: function (v) {
2575
- return isString$2(v)
3007
+ return isString$3(v)
2576
3008
  ? v
2577
3009
  : v.hasOwnProperty('red')
2578
3010
  ? rgba.transform(v)
@@ -2585,7 +3017,7 @@ var numberToken = '${n}';
2585
3017
  function test(v) {
2586
3018
  var _a, _b, _c, _d;
2587
3019
  return (isNaN(v) &&
2588
- isString$2(v) &&
3020
+ isString$3(v) &&
2589
3021
  ((_b = (_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) + ((_d = (_c = v.match(colorRegex)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) > 0);
2590
3022
  }
2591
3023
  function analyse$1(v) {
@@ -2604,7 +3036,7 @@ function analyse$1(v) {
2604
3036
  }
2605
3037
  return { values: values, numColors: numColors, tokenised: v };
2606
3038
  }
2607
- function parse$1(v) {
3039
+ function parse$3(v) {
2608
3040
  return analyse$1(v).values;
2609
3041
  }
2610
3042
  function createTransformer(v) {
@@ -2622,11 +3054,11 @@ var convertNumbersToZero = function (v) {
2622
3054
  return typeof v === 'number' ? 0 : v;
2623
3055
  };
2624
3056
  function getAnimatableNone$1(v) {
2625
- var parsed = parse$1(v);
3057
+ var parsed = parse$3(v);
2626
3058
  var transformer = createTransformer(v);
2627
3059
  return transformer(parsed.map(convertNumbersToZero));
2628
3060
  }
2629
- var complex = { test: test, parse: parse$1, createTransformer: createTransformer, getAnimatableNone: getAnimatableNone$1 };
3061
+ var complex = { test: test, parse: parse$3, createTransformer: createTransformer, getAnimatableNone: getAnimatableNone$1 };
2630
3062
 
2631
3063
  var maxDefaults = new Set(['brightness', 'contrast', 'saturate', 'opacity']);
2632
3064
  function applyDefaultFilter(v) {
@@ -10420,7 +10852,7 @@ function getWindow$1(node) {
10420
10852
  return node;
10421
10853
  }
10422
10854
 
10423
- function isElement$2(node) {
10855
+ function isElement$3(node) {
10424
10856
  var OwnElement = getWindow$1(node).Element;
10425
10857
  return node instanceof OwnElement || node instanceof Element;
10426
10858
  }
@@ -10565,7 +10997,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
10565
10997
  scaleY = element.offsetHeight > 0 ? round$1(clientRect.height) / element.offsetHeight || 1 : 1;
10566
10998
  }
10567
10999
 
10568
- var _ref = isElement$2(element) ? getWindow$1(element) : window,
11000
+ var _ref = isElement$3(element) ? getWindow$1(element) : window,
10569
11001
  visualViewport = _ref.visualViewport;
10570
11002
 
10571
11003
  var addVisualOffsets = !isLayoutViewport$1() && isFixedStrategy;
@@ -10643,7 +11075,7 @@ function isTableElement(element) {
10643
11075
 
10644
11076
  function getDocumentElement$1(element) {
10645
11077
  // $FlowFixMe[incompatible-return]: assume body is always available
10646
- return ((isElement$2(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
11078
+ return ((isElement$3(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
10647
11079
  element.document) || window.document).documentElement;
10648
11080
  }
10649
11081
 
@@ -11220,7 +11652,7 @@ function getInnerBoundingClientRect(element, strategy) {
11220
11652
  }
11221
11653
 
11222
11654
  function getClientRectFromMixedType(element, clippingParent, strategy) {
11223
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement$2(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement$1(element)));
11655
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement$3(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement$1(element)));
11224
11656
  } // A "clipping parent" is an overflowable container with the characteristic of
11225
11657
  // clipping (or hiding) overflowing elements with a position different from
11226
11658
  // `initial`
@@ -11231,13 +11663,13 @@ function getClippingParents(element) {
11231
11663
  var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
11232
11664
  var clipperElement = canEscapeClipping && isHTMLElement$1(element) ? getOffsetParent(element) : element;
11233
11665
 
11234
- if (!isElement$2(clipperElement)) {
11666
+ if (!isElement$3(clipperElement)) {
11235
11667
  return [];
11236
11668
  } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
11237
11669
 
11238
11670
 
11239
11671
  return clippingParents.filter(function (clippingParent) {
11240
- return isElement$2(clippingParent) && contains(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== 'body';
11672
+ return isElement$3(clippingParent) && contains(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== 'body';
11241
11673
  });
11242
11674
  } // Gets the maximum area that the element is visible in due to any number of
11243
11675
  // clipping parents
@@ -11351,7 +11783,7 @@ function detectOverflow(state, options) {
11351
11783
  var altContext = elementContext === popper ? reference : popper;
11352
11784
  var popperRect = state.rects.popper;
11353
11785
  var element = state.elements[altBoundary ? altContext : elementContext];
11354
- var clippingClientRect = getClippingRect(isElement$2(element) ? element : element.contextElement || getDocumentElement$1(state.elements.popper), boundary, rootBoundary, strategy);
11786
+ var clippingClientRect = getClippingRect(isElement$3(element) ? element : element.contextElement || getDocumentElement$1(state.elements.popper), boundary, rootBoundary, strategy);
11355
11787
  var referenceClientRect = getBoundingClientRect$1(state.elements.reference);
11356
11788
  var popperOffsets = computeOffsets({
11357
11789
  reference: referenceClientRect,
@@ -12024,7 +12456,7 @@ function popperGenerator(generatorOptions) {
12024
12456
  cleanupModifierEffects();
12025
12457
  state.options = Object.assign({}, defaultOptions, state.options, options);
12026
12458
  state.scrollParents = {
12027
- reference: isElement$2(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
12459
+ reference: isElement$3(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
12028
12460
  popper: listScrollParents(popper)
12029
12461
  }; // Orders the modifiers based on their dependencies and `phase`
12030
12462
  // properties
@@ -12250,7 +12682,7 @@ function removeUndefinedProps(obj) {
12250
12682
  function div() {
12251
12683
  return document.createElement('div');
12252
12684
  }
12253
- function isElement$1(value) {
12685
+ function isElement$2(value) {
12254
12686
  return ['Element', 'Fragment'].some(function (type) {
12255
12687
  return isType(value, type);
12256
12688
  });
@@ -12265,7 +12697,7 @@ function isReferenceElement(value) {
12265
12697
  return !!(value && value._tippy && value._tippy.reference === value);
12266
12698
  }
12267
12699
  function getArrayOfElements(value) {
12268
- if (isElement$1(value)) {
12700
+ if (isElement$2(value)) {
12269
12701
  return [value];
12270
12702
  }
12271
12703
 
@@ -12553,7 +12985,7 @@ function createArrowElement(value) {
12553
12985
  } else {
12554
12986
  arrow.className = SVG_ARROW_CLASS;
12555
12987
 
12556
- if (isElement$1(value)) {
12988
+ if (isElement$2(value)) {
12557
12989
  arrow.appendChild(value);
12558
12990
  } else {
12559
12991
  dangerouslySetInnerHTML(arrow, value);
@@ -12564,7 +12996,7 @@ function createArrowElement(value) {
12564
12996
  }
12565
12997
 
12566
12998
  function setContent(content, props) {
12567
- if (isElement$1(props.content)) {
12999
+ if (isElement$2(props.content)) {
12568
13000
  dangerouslySetInnerHTML(content, '');
12569
13001
  content.appendChild(props.content);
12570
13002
  } else if (typeof props.content !== 'function') {
@@ -13635,7 +14067,7 @@ function tippy(targets, optionalProps) {
13635
14067
 
13636
14068
  return acc;
13637
14069
  }, []);
13638
- return isElement$1(targets) ? instances[0] : instances;
14070
+ return isElement$2(targets) ? instances[0] : instances;
13639
14071
  }
13640
14072
 
13641
14073
  tippy.defaultProps = defaultProps$2;
@@ -20059,7 +20491,7 @@ function _defineProperty$6(obj, key, value) {
20059
20491
  return obj;
20060
20492
  }
20061
20493
 
20062
- function ownKeys$b(object, enumerableOnly) {
20494
+ function ownKeys$c(object, enumerableOnly) {
20063
20495
  var keys = Object.keys(object);
20064
20496
  if (Object.getOwnPropertySymbols) {
20065
20497
  var symbols = Object.getOwnPropertySymbols(object);
@@ -20072,9 +20504,9 @@ function ownKeys$b(object, enumerableOnly) {
20072
20504
  function _objectSpread2(target) {
20073
20505
  for (var i = 1; i < arguments.length; i++) {
20074
20506
  var source = null != arguments[i] ? arguments[i] : {};
20075
- i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) {
20507
+ i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
20076
20508
  _defineProperty$6(target, key, source[key]);
20077
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) {
20509
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
20078
20510
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
20079
20511
  });
20080
20512
  }
@@ -20383,7 +20815,7 @@ var from = String.fromCharCode;
20383
20815
  * @param {object}
20384
20816
  * @return {object}
20385
20817
  */
20386
- var assign$1 = Object.assign;
20818
+ var assign$2 = Object.assign;
20387
20819
 
20388
20820
  /**
20389
20821
  * @param {string} value
@@ -20417,7 +20849,7 @@ function match (value, pattern) {
20417
20849
  * @param {string} replacement
20418
20850
  * @return {string}
20419
20851
  */
20420
- function replace (value, pattern, replacement) {
20852
+ function replace$1 (value, pattern, replacement) {
20421
20853
  return value.replace(pattern, replacement)
20422
20854
  }
20423
20855
 
@@ -20479,7 +20911,7 @@ function append (value, array) {
20479
20911
  * @param {function} callback
20480
20912
  * @return {string}
20481
20913
  */
20482
- function combine (array, callback) {
20914
+ function combine$1 (array, callback) {
20483
20915
  return array.map(callback).join('')
20484
20916
  }
20485
20917
 
@@ -20509,7 +20941,7 @@ function node (value, root, parent, type, props, children, length) {
20509
20941
  * @return {object}
20510
20942
  */
20511
20943
  function copy (root, props) {
20512
- return assign$1(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
20944
+ return assign$2(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
20513
20945
  }
20514
20946
 
20515
20947
  /**
@@ -20562,7 +20994,7 @@ function caret () {
20562
20994
  * @param {number} end
20563
20995
  * @return {string}
20564
20996
  */
20565
- function slice (begin, end) {
20997
+ function slice$1 (begin, end) {
20566
20998
  return substr(characters, begin, end)
20567
20999
  }
20568
21000
 
@@ -20615,7 +21047,7 @@ function dealloc (value) {
20615
21047
  * @return {string}
20616
21048
  */
20617
21049
  function delimit (type) {
20618
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
21050
+ return trim(slice$1(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
20619
21051
  }
20620
21052
 
20621
21053
  /**
@@ -20643,7 +21075,7 @@ function escaping (index, count) {
20643
21075
  if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
20644
21076
  break
20645
21077
 
20646
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
21078
+ return slice$1(index, caret() + (count < 6 && peek() == 32 && next() == 32))
20647
21079
  }
20648
21080
 
20649
21081
  /**
@@ -20689,7 +21121,7 @@ function commenter (type, index) {
20689
21121
  else if (type + character === 42 + 42 && peek() === 47)
20690
21122
  break
20691
21123
 
20692
- return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
21124
+ return '/*' + slice$1(index, position - 1) + '*' + from(type === 47 ? type : next())
20693
21125
  }
20694
21126
 
20695
21127
  /**
@@ -20700,7 +21132,7 @@ function identifier (index) {
20700
21132
  while (!token(peek()))
20701
21133
  next();
20702
21134
 
20703
- return slice(index, position)
21135
+ return slice$1(index, position)
20704
21136
  }
20705
21137
 
20706
21138
  /**
@@ -20708,7 +21140,7 @@ function identifier (index) {
20708
21140
  * @return {object[]}
20709
21141
  */
20710
21142
  function compile$1 (value) {
20711
- return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
21143
+ return dealloc(parse$2('', null, null, null, [''], value = alloc(value), 0, [0], value))
20712
21144
  }
20713
21145
 
20714
21146
  /**
@@ -20723,7 +21155,7 @@ function compile$1 (value) {
20723
21155
  * @param {string[]} declarations
20724
21156
  * @return {object}
20725
21157
  */
20726
- function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
21158
+ function parse$2 (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
20727
21159
  var index = 0;
20728
21160
  var offset = 0;
20729
21161
  var length = pseudo;
@@ -20745,7 +21177,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
20745
21177
  // (
20746
21178
  case 40:
20747
21179
  if (previous != 108 && charat(characters, length - 1) == 58) {
20748
- if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
21180
+ if (indexof(characters += replace$1(delimit(character), '&', '&\f'), '&\f') != -1)
20749
21181
  ampersand = -1;
20750
21182
  break
20751
21183
  }
@@ -20782,7 +21214,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
20782
21214
  // ;
20783
21215
  case 59 + offset:
20784
21216
  if (property > 0 && (strlen(characters) - length))
20785
- append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
21217
+ append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace$1(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
20786
21218
  break
20787
21219
  // @ ;
20788
21220
  case 59: characters += ';';
@@ -20792,15 +21224,15 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
20792
21224
 
20793
21225
  if (character === 123)
20794
21226
  if (offset === 0)
20795
- parse(characters, root, reference, reference, props, rulesets, length, points, children);
21227
+ parse$2(characters, root, reference, reference, props, rulesets, length, points, children);
20796
21228
  else
20797
21229
  switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
20798
21230
  // d m s
20799
21231
  case 100: case 109: case 115:
20800
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
21232
+ parse$2(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
20801
21233
  break
20802
21234
  default:
20803
- parse(characters, reference, reference, reference, [''], children, 0, points, children);
21235
+ parse$2(characters, reference, reference, reference, [''], children, 0, points, children);
20804
21236
  }
20805
21237
  }
20806
21238
 
@@ -20864,7 +21296,7 @@ function ruleset (value, root, parent, index, offset, rules, points, type, props
20864
21296
 
20865
21297
  for (var i = 0, j = 0, k = 0; i < index; ++i)
20866
21298
  for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
20867
- if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
21299
+ if (z = trim(j > 0 ? rule[x] + ' ' + y : replace$1(y, /&\f/g, rule[x])))
20868
21300
  props[k++] = z;
20869
21301
 
20870
21302
  return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
@@ -20913,7 +21345,7 @@ function serialize (children, callback) {
20913
21345
  * @param {function} callback
20914
21346
  * @return {string}
20915
21347
  */
20916
- function stringify (element, index, children, callback) {
21348
+ function stringify$2 (element, index, children, callback) {
20917
21349
  switch (element.type) {
20918
21350
  case IMPORT: case DECLARATION: return element.return = element.return || element.value
20919
21351
  case COMMENT: return ''
@@ -20995,7 +21427,7 @@ var identifierWithPointTracking = function identifierWithPointTracking(begin, po
20995
21427
  next();
20996
21428
  }
20997
21429
 
20998
- return slice(begin, position);
21430
+ return slice$1(begin, position);
20999
21431
  };
21000
21432
 
21001
21433
  var toRules = function toRules(parsed, points) {
@@ -21159,51 +21591,51 @@ function prefix(value, length) {
21159
21591
  // align-items
21160
21592
 
21161
21593
  case 5187:
21162
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
21594
+ return WEBKIT + value + replace$1(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
21163
21595
  // align-self
21164
21596
 
21165
21597
  case 5443:
21166
- return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
21598
+ return WEBKIT + value + MS + 'flex-item-' + replace$1(value, /flex-|-self/, '') + value;
21167
21599
  // align-content
21168
21600
 
21169
21601
  case 4675:
21170
- return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
21602
+ return WEBKIT + value + MS + 'flex-line-pack' + replace$1(value, /align-content|flex-|-self/, '') + value;
21171
21603
  // flex-shrink
21172
21604
 
21173
21605
  case 5548:
21174
- return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
21606
+ return WEBKIT + value + MS + replace$1(value, 'shrink', 'negative') + value;
21175
21607
  // flex-basis
21176
21608
 
21177
21609
  case 5292:
21178
- return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
21610
+ return WEBKIT + value + MS + replace$1(value, 'basis', 'preferred-size') + value;
21179
21611
  // flex-grow
21180
21612
 
21181
21613
  case 6060:
21182
- return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
21614
+ return WEBKIT + 'box-' + replace$1(value, '-grow', '') + WEBKIT + value + MS + replace$1(value, 'grow', 'positive') + value;
21183
21615
  // transition
21184
21616
 
21185
21617
  case 4554:
21186
- return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
21618
+ return WEBKIT + replace$1(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
21187
21619
  // cursor
21188
21620
 
21189
21621
  case 6187:
21190
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
21622
+ return replace$1(replace$1(replace$1(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
21191
21623
  // background, background-image
21192
21624
 
21193
21625
  case 5495:
21194
21626
  case 3959:
21195
- return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
21627
+ return replace$1(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
21196
21628
  // justify-content
21197
21629
 
21198
21630
  case 4968:
21199
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
21631
+ return replace$1(replace$1(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
21200
21632
  // (margin|padding)-inline-(start|end)
21201
21633
 
21202
21634
  case 4095:
21203
21635
  case 3583:
21204
21636
  case 4068:
21205
21637
  case 2532:
21206
- return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
21638
+ return replace$1(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
21207
21639
  // (min|max)?(width|height|inline-size|block-size)
21208
21640
 
21209
21641
  case 8116:
@@ -21227,11 +21659,11 @@ function prefix(value, length) {
21227
21659
  // (f)ill-available, (f)it-content
21228
21660
 
21229
21661
  case 102:
21230
- return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
21662
+ return replace$1(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
21231
21663
  // (s)tretch
21232
21664
 
21233
21665
  case 115:
21234
- return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
21666
+ return ~indexof(value, 'stretch') ? prefix(replace$1(value, 'stretch', 'fill-available'), length) + value : value;
21235
21667
  }
21236
21668
  break;
21237
21669
  // position: sticky
@@ -21245,11 +21677,11 @@ function prefix(value, length) {
21245
21677
  switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
21246
21678
  // stic(k)y
21247
21679
  case 107:
21248
- return replace(value, ':', ':' + WEBKIT) + value;
21680
+ return replace$1(value, ':', ':' + WEBKIT) + value;
21249
21681
  // (inline-)?fl(e)x
21250
21682
 
21251
21683
  case 101:
21252
- return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
21684
+ return replace$1(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
21253
21685
  }
21254
21686
 
21255
21687
  break;
@@ -21259,15 +21691,15 @@ function prefix(value, length) {
21259
21691
  switch (charat(value, length + 11)) {
21260
21692
  // vertical-l(r)
21261
21693
  case 114:
21262
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
21694
+ return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
21263
21695
  // vertical-r(l)
21264
21696
 
21265
21697
  case 108:
21266
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
21698
+ return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
21267
21699
  // horizontal(-)tb
21268
21700
 
21269
21701
  case 45:
21270
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
21702
+ return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
21271
21703
  }
21272
21704
 
21273
21705
  return WEBKIT + value + MS + value + value;
@@ -21284,27 +21716,27 @@ var prefixer = function prefixer(element, index, children, callback) {
21284
21716
 
21285
21717
  case KEYFRAMES:
21286
21718
  return serialize([copy(element, {
21287
- value: replace(element.value, '@', '@' + WEBKIT)
21719
+ value: replace$1(element.value, '@', '@' + WEBKIT)
21288
21720
  })], callback);
21289
21721
 
21290
21722
  case RULESET:
21291
- if (element.length) return combine(element.props, function (value) {
21723
+ if (element.length) return combine$1(element.props, function (value) {
21292
21724
  switch (match(value, /(::plac\w+|:read-\w+)/)) {
21293
21725
  // :read-(only|write)
21294
21726
  case ':read-only':
21295
21727
  case ':read-write':
21296
21728
  return serialize([copy(element, {
21297
- props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
21729
+ props: [replace$1(value, /:(read-\w+)/, ':' + MOZ + '$1')]
21298
21730
  })], callback);
21299
21731
  // :placeholder
21300
21732
 
21301
21733
  case '::placeholder':
21302
21734
  return serialize([copy(element, {
21303
- props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
21735
+ props: [replace$1(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
21304
21736
  }), copy(element, {
21305
- props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
21737
+ props: [replace$1(value, /:(plac\w+)/, ':' + MOZ + '$1')]
21306
21738
  }), copy(element, {
21307
- props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
21739
+ props: [replace$1(value, /:(plac\w+)/, MS + 'input-$1')]
21308
21740
  })], callback);
21309
21741
  }
21310
21742
 
@@ -21377,7 +21809,7 @@ var createCache = function createCache(options) {
21377
21809
 
21378
21810
  if (isBrowser$3) {
21379
21811
  var currentSheet;
21380
- var finalizingPlugins = [stringify, rulesheet(function (rule) {
21812
+ var finalizingPlugins = [stringify$2, rulesheet(function (rule) {
21381
21813
  currentSheet.insert(rule);
21382
21814
  })];
21383
21815
  var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
@@ -21396,7 +21828,7 @@ var createCache = function createCache(options) {
21396
21828
  }
21397
21829
  };
21398
21830
  } else {
21399
- var _finalizingPlugins = [stringify];
21831
+ var _finalizingPlugins = [stringify$2];
21400
21832
 
21401
21833
  var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
21402
21834
 
@@ -22120,7 +22552,7 @@ var classnames = function classnames(args) {
22120
22552
  return cls;
22121
22553
  };
22122
22554
 
22123
- function merge(registered, css, className) {
22555
+ function merge$1(registered, css, className) {
22124
22556
  var registeredStyles = [];
22125
22557
  var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
22126
22558
 
@@ -22192,7 +22624,7 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
22192
22624
  args[_key2] = arguments[_key2];
22193
22625
  }
22194
22626
 
22195
- return merge(cache.registered, css, classnames(args));
22627
+ return merge$1(cache.registered, css, classnames(args));
22196
22628
  };
22197
22629
 
22198
22630
  var content = {
@@ -22322,7 +22754,7 @@ function getUAString() {
22322
22754
  function isHTMLElement(value) {
22323
22755
  return value instanceof getWindow(value).HTMLElement;
22324
22756
  }
22325
- function isElement(value) {
22757
+ function isElement$1(value) {
22326
22758
  return value instanceof getWindow(value).Element;
22327
22759
  }
22328
22760
  function isNode(value) {
@@ -22380,7 +22812,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
22380
22812
  scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
22381
22813
  }
22382
22814
 
22383
- const win = isElement(element) ? getWindow(element) : window;
22815
+ const win = isElement$1(element) ? getWindow(element) : window;
22384
22816
  const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
22385
22817
  const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
22386
22818
  const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
@@ -22462,7 +22894,7 @@ function autoUpdate(reference, floating, update, options) {
22462
22894
  animationFrame = false
22463
22895
  } = options;
22464
22896
  const ancestorScroll = _ancestorScroll && !animationFrame;
22465
- const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];
22897
+ const ancestors = ancestorScroll || ancestorResize ? [...(isElement$1(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];
22466
22898
  ancestors.forEach(ancestor => {
22467
22899
  ancestorScroll && ancestor.addEventListener('scroll', update, {
22468
22900
  passive: true
@@ -22480,9 +22912,9 @@ function autoUpdate(reference, floating, update, options) {
22480
22912
 
22481
22913
  initialUpdate = false;
22482
22914
  });
22483
- isElement(reference) && !animationFrame && observer.observe(reference);
22915
+ isElement$1(reference) && !animationFrame && observer.observe(reference);
22484
22916
 
22485
- if (!isElement(reference) && reference.contextElement && !animationFrame) {
22917
+ if (!isElement$1(reference) && reference.contextElement && !animationFrame) {
22486
22918
  observer.observe(reference.contextElement);
22487
22919
  }
22488
22920
 
@@ -22575,7 +23007,7 @@ function classNames(prefix, state, className) {
22575
23007
  // ==============================
22576
23008
 
22577
23009
  var cleanValue = function cleanValue(value) {
22578
- if (isArray$1(value)) return value.filter(Boolean);
23010
+ if (isArray$5(value)) return value.filter(Boolean);
22579
23011
  if (_typeof$4(value) === 'object' && value !== null) return [value];
22580
23012
  return [];
22581
23013
  };
@@ -22780,7 +23212,7 @@ var supportsPassiveEvents = passiveOptionAccessed;
22780
23212
  function notNullish(item) {
22781
23213
  return item != null;
22782
23214
  }
22783
- function isArray$1(arg) {
23215
+ function isArray$5(arg) {
22784
23216
  return Array.isArray(arg);
22785
23217
  }
22786
23218
  function valueTernary(isMulti, multiValue, singleValue) {
@@ -26676,8 +27108,8 @@ var StateManagedSelect = /*#__PURE__*/React$5.forwardRef(function (props, ref) {
26676
27108
  });
26677
27109
 
26678
27110
  var _excluded$j = ["children"];
26679
- function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26680
- function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27111
+ function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27112
+ function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26681
27113
  var STYLES$1 = {
26682
27114
  border: {
26683
27115
  "default": "1px solid rgb(var(--neeto-ui-gray-400))",
@@ -26714,7 +27146,7 @@ var CUSTOM_STYLES = {
26714
27146
  input: assoc("overflow", "hidden"),
26715
27147
  multiValue: function multiValue(styles, _ref2) {
26716
27148
  var valid = _ref2.data.valid;
26717
- return _objectSpread$a(_objectSpread$a({}, styles), {}, {
27149
+ return _objectSpread$b(_objectSpread$b({}, styles), {}, {
26718
27150
  border: valid ? STYLES$1.border["default"] : STYLES$1.border.error,
26719
27151
  color: valid ? STYLES$1.color["default"] : STYLES$1.color.error
26720
27152
  });
@@ -26754,8 +27186,8 @@ var renderDefaultText = function renderDefaultText(count) {
26754
27186
  };
26755
27187
 
26756
27188
  var _excluded$i = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "required", "labelProps"];
26757
- function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
26758
- function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27189
+ function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27190
+ function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
26759
27191
  var MultiEmailInput = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
26760
27192
  var _ref$label = _ref.label,
26761
27193
  label = _ref$label === void 0 ? "Email(s)" : _ref$label,
@@ -26869,7 +27301,7 @@ var MultiEmailInput = /*#__PURE__*/React$5.forwardRef(function (_ref, ref) {
26869
27301
  className: classnames$1("neeto-ui-react-select__container neeto-ui-email-input__select", {
26870
27302
  "neeto-ui-react-select__container--error": !!error
26871
27303
  }),
26872
- styles: _objectSpread$9(_objectSpread$9({}, CUSTOM_STYLES), {}, {
27304
+ styles: _objectSpread$a(_objectSpread$a({}, CUSTOM_STYLES), {}, {
26873
27305
  control: mergeLeft({
26874
27306
  maxHeight: "".concat(maxHeight, "px"),
26875
27307
  overflowY: "auto"
@@ -27290,8 +27722,8 @@ var Item$1 = function Item(_ref) {
27290
27722
  Item$1.displayName = "Radio.Item";
27291
27723
 
27292
27724
  var _excluded$d = ["label", "children", "stacked", "className", "containerClassName", "error", "onChange", "labelProps"];
27293
- function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27294
- function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27725
+ function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27726
+ function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27295
27727
  var Radio = function Radio(_ref) {
27296
27728
  var _ref$label = _ref.label,
27297
27729
  label = _ref$label === void 0 ? "" : _ref$label,
@@ -27327,7 +27759,7 @@ var Radio = function Radio(_ref) {
27327
27759
  }, containerClassName, containerClassName))
27328
27760
  }, React$5.Children.map(children, function (child) {
27329
27761
  var _child$props$checked, _ref2, _child$props$onChange;
27330
- return /*#__PURE__*/React$5.cloneElement(child, _objectSpread$8(_objectSpread$8(_objectSpread$8({}, child.props), props), {}, {
27762
+ return /*#__PURE__*/React$5.cloneElement(child, _objectSpread$9(_objectSpread$9(_objectSpread$9({}, child.props), props), {}, {
27331
27763
  value: child.props.value,
27332
27764
  checked: (_child$props$checked = child.props.checked) !== null && _child$props$checked !== void 0 ? _child$props$checked : [internalValue, props.value].includes(child.props.value),
27333
27765
  onChange: (_ref2 = (_child$props$onChange = child.props.onChange) !== null && _child$props$onChange !== void 0 ? _child$props$onChange : onChange) !== null && _ref2 !== void 0 ? _ref2 : internalOnChange
@@ -27489,8 +27921,8 @@ var AsyncCreatableSelect = /*#__PURE__*/React$5.forwardRef(function (props, ref)
27489
27921
  });
27490
27922
 
27491
27923
  var _excluded$b = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
27492
- function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27493
- function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27924
+ function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27925
+ function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27494
27926
  var SIZES$3 = {
27495
27927
  small: "small",
27496
27928
  medium: "medium",
@@ -27611,7 +28043,7 @@ var Select = function Select(_ref) {
27611
28043
  "neeto-ui-react-select__container--medium": size === SIZES$3.medium,
27612
28044
  "neeto-ui-react-select__container--large": size === SIZES$3.large
27613
28045
  }),
27614
- components: _objectSpread$7({
28046
+ components: _objectSpread$8({
27615
28047
  Input: CustomInput,
27616
28048
  DropdownIndicator: DropdownIndicator,
27617
28049
  ClearIndicator: ClearIndicator,
@@ -27935,7 +28367,7 @@ var global$5 = _global.exports;
27935
28367
  var core$3 = _core.exports;
27936
28368
  var ctx = _ctx;
27937
28369
  var hide$2 = _hide;
27938
- var has$6 = _has;
28370
+ var has$a = _has;
27939
28371
  var PROTOTYPE$1 = 'prototype';
27940
28372
 
27941
28373
  var $export$6 = function (type, name, source) {
@@ -27953,7 +28385,7 @@ var $export$6 = function (type, name, source) {
27953
28385
  for (key in source) {
27954
28386
  // contains in native
27955
28387
  own = !IS_FORCED && target && target[key] !== undefined;
27956
- if (own && has$6(exports, key)) continue;
28388
+ if (own && has$a(exports, key)) continue;
27957
28389
  // export native or passed
27958
28390
  out = own ? target[key] : source[key];
27959
28391
  // prevent global pollution for namespaces
@@ -28170,7 +28602,7 @@ var _sharedKey = function (key) {
28170
28602
  return shared$1[key] || (shared$1[key] = uid$2(key));
28171
28603
  };
28172
28604
 
28173
- var has$5 = _has;
28605
+ var has$9 = _has;
28174
28606
  var toIObject$5 = _toIobject;
28175
28607
  var arrayIndexOf = _arrayIncludes(false);
28176
28608
  var IE_PROTO$1 = _sharedKey('IE_PROTO');
@@ -28180,9 +28612,9 @@ var _objectKeysInternal = function (object, names) {
28180
28612
  var i = 0;
28181
28613
  var result = [];
28182
28614
  var key;
28183
- for (key in O) if (key != IE_PROTO$1) has$5(O, key) && result.push(key);
28615
+ for (key in O) if (key != IE_PROTO$1) has$9(O, key) && result.push(key);
28184
28616
  // Don't enum bug & hidden keys
28185
- while (names.length > i) if (has$5(O, key = names[i++])) {
28617
+ while (names.length > i) if (has$9(O, key = names[i++])) {
28186
28618
  ~arrayIndexOf(result, key) || result.push(key);
28187
28619
  }
28188
28620
  return result;
@@ -28307,11 +28739,11 @@ var $exports = _wks.exports = function (name) {
28307
28739
  $exports.store = store;
28308
28740
 
28309
28741
  var def = require_objectDp().f;
28310
- var has$4 = _has;
28742
+ var has$8 = _has;
28311
28743
  var TAG = _wks.exports('toStringTag');
28312
28744
 
28313
28745
  var _setToStringTag = function (it, tag, stat) {
28314
- if (it && !has$4(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
28746
+ if (it && !has$8(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
28315
28747
  };
28316
28748
 
28317
28749
  var create$2 = require_objectCreate();
@@ -28334,14 +28766,14 @@ var _toObject = function (it) {
28334
28766
  };
28335
28767
 
28336
28768
  // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
28337
- var has$3 = _has;
28769
+ var has$7 = _has;
28338
28770
  var toObject$2 = _toObject;
28339
28771
  var IE_PROTO = _sharedKey('IE_PROTO');
28340
28772
  var ObjectProto$1 = Object.prototype;
28341
28773
 
28342
28774
  var _objectGpo = Object.getPrototypeOf || function (O) {
28343
28775
  O = toObject$2(O);
28344
- if (has$3(O, IE_PROTO)) return O[IE_PROTO];
28776
+ if (has$7(O, IE_PROTO)) return O[IE_PROTO];
28345
28777
  if (typeof O.constructor == 'function' && O instanceof O.constructor) {
28346
28778
  return O.constructor.prototype;
28347
28779
  } return O instanceof Object ? ObjectProto$1 : null;
@@ -28501,7 +28933,7 @@ var _meta = {exports: {}};
28501
28933
 
28502
28934
  var META$1 = _uid('meta');
28503
28935
  var isObject$2 = _isObject;
28504
- var has$2 = _has;
28936
+ var has$6 = _has;
28505
28937
  var setDesc = require_objectDp().f;
28506
28938
  var id = 0;
28507
28939
  var isExtensible = Object.isExtensible || function () {
@@ -28519,7 +28951,7 @@ var setMeta = function (it) {
28519
28951
  var fastKey = function (it, create) {
28520
28952
  // return primitive with prefix
28521
28953
  if (!isObject$2(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
28522
- if (!has$2(it, META$1)) {
28954
+ if (!has$6(it, META$1)) {
28523
28955
  // can't set metadata to uncaught frozen object
28524
28956
  if (!isExtensible(it)) return 'F';
28525
28957
  // not necessary to add metadata
@@ -28530,7 +28962,7 @@ var fastKey = function (it, create) {
28530
28962
  } return it[META$1].i;
28531
28963
  };
28532
28964
  var getWeak = function (it, create) {
28533
- if (!has$2(it, META$1)) {
28965
+ if (!has$6(it, META$1)) {
28534
28966
  // can't set metadata to uncaught frozen object
28535
28967
  if (!isExtensible(it)) return true;
28536
28968
  // not necessary to add metadata
@@ -28542,7 +28974,7 @@ var getWeak = function (it, create) {
28542
28974
  };
28543
28975
  // add metadata on freeze-family methods calling
28544
28976
  var onFreeze = function (it) {
28545
- if (FREEZE && meta.NEED && isExtensible(it) && !has$2(it, META$1)) setMeta(it);
28977
+ if (FREEZE && meta.NEED && isExtensible(it) && !has$6(it, META$1)) setMeta(it);
28546
28978
  return it;
28547
28979
  };
28548
28980
  var meta = _meta.exports = {
@@ -28580,11 +29012,11 @@ function require_objectPie () {
28580
29012
 
28581
29013
  // all enumerable object keys, includes symbols
28582
29014
  var getKeys = _objectKeys;
28583
- var gOPS = _objectGops;
29015
+ var gOPS$1 = _objectGops;
28584
29016
  var pIE$1 = require_objectPie();
28585
29017
  var _enumKeys = function (it) {
28586
29018
  var result = getKeys(it);
28587
- var getSymbols = gOPS.f;
29019
+ var getSymbols = gOPS$1.f;
28588
29020
  if (getSymbols) {
28589
29021
  var symbols = getSymbols(it);
28590
29022
  var isEnum = pIE$1.f;
@@ -28645,7 +29077,7 @@ var pIE = require_objectPie();
28645
29077
  var createDesc$1 = _propertyDesc;
28646
29078
  var toIObject$2 = _toIobject;
28647
29079
  var toPrimitive$1 = _toPrimitive;
28648
- var has$1 = _has;
29080
+ var has$5 = _has;
28649
29081
  var IE8_DOM_DEFINE = _ie8DomDefine;
28650
29082
  var gOPD$1 = Object.getOwnPropertyDescriptor;
28651
29083
 
@@ -28655,12 +29087,12 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function getOwnPropertyDescript
28655
29087
  if (IE8_DOM_DEFINE) try {
28656
29088
  return gOPD$1(O, P);
28657
29089
  } catch (e) { /* empty */ }
28658
- if (has$1(O, P)) return createDesc$1(!pIE.f.call(O, P), O[P]);
29090
+ if (has$5(O, P)) return createDesc$1(!pIE.f.call(O, P), O[P]);
28659
29091
  };
28660
29092
 
28661
29093
  // ECMAScript 6 symbols shim
28662
29094
  var global$1 = _global.exports;
28663
- var has = _has;
29095
+ var has$4 = _has;
28664
29096
  var DESCRIPTORS = require_descriptors();
28665
29097
  var $export$3 = _export;
28666
29098
  var redefine = _redefine.exports;
@@ -28673,7 +29105,7 @@ var wks = _wks.exports;
28673
29105
  var wksExt = _wksExt;
28674
29106
  var wksDefine = _wksDefine;
28675
29107
  var enumKeys = _enumKeys;
28676
- var isArray = _isArray;
29108
+ var isArray$4 = _isArray;
28677
29109
  var anObject = _anObject;
28678
29110
  var isObject$1 = _isObject;
28679
29111
  var toObject$1 = _toObject;
@@ -28723,7 +29155,7 @@ var wrap = function (tag) {
28723
29155
  return sym;
28724
29156
  };
28725
29157
 
28726
- var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
29158
+ var isSymbol$1 = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
28727
29159
  return typeof it == 'symbol';
28728
29160
  } : function (it) {
28729
29161
  return it instanceof $Symbol;
@@ -28734,12 +29166,12 @@ var $defineProperty = function defineProperty(it, key, D) {
28734
29166
  anObject(it);
28735
29167
  key = toPrimitive(key, true);
28736
29168
  anObject(D);
28737
- if (has(AllSymbols, key)) {
29169
+ if (has$4(AllSymbols, key)) {
28738
29170
  if (!D.enumerable) {
28739
- if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
29171
+ if (!has$4(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
28740
29172
  it[HIDDEN][key] = true;
28741
29173
  } else {
28742
- if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
29174
+ if (has$4(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
28743
29175
  D = _create$1(D, { enumerable: createDesc(0, false) });
28744
29176
  } return setSymbolDesc(it, key, D);
28745
29177
  } return dP(it, key, D);
@@ -28758,15 +29190,15 @@ var $create = function create(it, P) {
28758
29190
  };
28759
29191
  var $propertyIsEnumerable = function propertyIsEnumerable(key) {
28760
29192
  var E = isEnum.call(this, key = toPrimitive(key, true));
28761
- if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
28762
- return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
29193
+ if (this === ObjectProto && has$4(AllSymbols, key) && !has$4(OPSymbols, key)) return false;
29194
+ return E || !has$4(this, key) || !has$4(AllSymbols, key) || has$4(this, HIDDEN) && this[HIDDEN][key] ? E : true;
28763
29195
  };
28764
29196
  var $getOwnPropertyDescriptor$1 = function getOwnPropertyDescriptor(it, key) {
28765
29197
  it = toIObject$1(it);
28766
29198
  key = toPrimitive(key, true);
28767
- if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
29199
+ if (it === ObjectProto && has$4(AllSymbols, key) && !has$4(OPSymbols, key)) return;
28768
29200
  var D = gOPD(it, key);
28769
- if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
29201
+ if (D && has$4(AllSymbols, key) && !(has$4(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
28770
29202
  return D;
28771
29203
  };
28772
29204
  var $getOwnPropertyNames = function getOwnPropertyNames(it) {
@@ -28775,7 +29207,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames(it) {
28775
29207
  var i = 0;
28776
29208
  var key;
28777
29209
  while (names.length > i) {
28778
- if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
29210
+ if (!has$4(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
28779
29211
  } return result;
28780
29212
  };
28781
29213
  var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
@@ -28785,7 +29217,7 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
28785
29217
  var i = 0;
28786
29218
  var key;
28787
29219
  while (names.length > i) {
28788
- if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
29220
+ if (has$4(AllSymbols, key = names[i++]) && (IS_OP ? has$4(ObjectProto, key) : true)) result.push(AllSymbols[key]);
28789
29221
  } return result;
28790
29222
  };
28791
29223
 
@@ -28796,7 +29228,7 @@ if (!USE_NATIVE) {
28796
29228
  var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
28797
29229
  var $set = function (value) {
28798
29230
  if (this === ObjectProto) $set.call(OPSymbols, value);
28799
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
29231
+ if (has$4(this, HIDDEN) && has$4(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
28800
29232
  setSymbolDesc(this, tag, createDesc(1, value));
28801
29233
  };
28802
29234
  if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
@@ -28833,13 +29265,13 @@ for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k
28833
29265
  $export$3($export$3.S + $export$3.F * !USE_NATIVE, 'Symbol', {
28834
29266
  // 19.4.2.1 Symbol.for(key)
28835
29267
  'for': function (key) {
28836
- return has(SymbolRegistry, key += '')
29268
+ return has$4(SymbolRegistry, key += '')
28837
29269
  ? SymbolRegistry[key]
28838
29270
  : SymbolRegistry[key] = $Symbol(key);
28839
29271
  },
28840
29272
  // 19.4.2.5 Symbol.keyFor(sym)
28841
29273
  keyFor: function keyFor(sym) {
28842
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
29274
+ if (!isSymbol$1(sym)) throw TypeError(sym + ' is not a symbol!');
28843
29275
  for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
28844
29276
  },
28845
29277
  useSetter: function () { setter = true; },
@@ -28885,10 +29317,10 @@ $JSON && $export$3($export$3.S + $export$3.F * (!USE_NATIVE || $fails(function (
28885
29317
  var replacer, $replacer;
28886
29318
  while (arguments.length > i) args.push(arguments[i++]);
28887
29319
  $replacer = replacer = args[1];
28888
- if (!isObject$1(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
28889
- if (!isArray(replacer)) replacer = function (key, value) {
29320
+ if (!isObject$1(replacer) && it === undefined || isSymbol$1(it)) return; // IE8 returns string on undefined
29321
+ if (!isArray$4(replacer)) replacer = function (key, value) {
28890
29322
  if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
28891
- if (!isSymbol(value)) return value;
29323
+ if (!isSymbol$1(value)) return value;
28892
29324
  };
28893
29325
  args[1] = replacer;
28894
29326
  return _stringify.apply($JSON, args);
@@ -29556,6 +29988,15 @@ ReactDragListView.DragColumn = ReactDragColumnView;
29556
29988
 
29557
29989
  // build node version: 11.15.0
29558
29990
 
29991
+ var URL_SORT_ORDERS = {
29992
+ ascend: "asc",
29993
+ descend: "desc"
29994
+ };
29995
+ var TABLE_SORT_ORDERS = {
29996
+ asc: "ascend",
29997
+ desc: "descend"
29998
+ };
29999
+
29559
30000
  var reactResizable = {exports: {}};
29560
30001
 
29561
30002
  var Resizable$2 = {};
@@ -29757,9 +30198,9 @@ function _getRequireWildcardCache$3(nodeInterop) { if (typeof WeakMap !== "funct
29757
30198
 
29758
30199
  function _interopRequireWildcard$5(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof$1(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache$3(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29759
30200
 
29760
- function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
30201
+ function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29761
30202
 
29762
- function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
30203
+ function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29763
30204
 
29764
30205
  function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29765
30206
 
@@ -29820,7 +30261,7 @@ function addEvent(el
29820
30261
  {
29821
30262
  if (!el) return;
29822
30263
 
29823
- var options = _objectSpread$6({
30264
+ var options = _objectSpread$7({
29824
30265
  capture: true
29825
30266
  }, inputOptions); // $FlowIgnore[method-unbinding]
29826
30267
 
@@ -29848,7 +30289,7 @@ function removeEvent(el
29848
30289
  {
29849
30290
  if (!el) return;
29850
30291
 
29851
- var options = _objectSpread$6({
30292
+ var options = _objectSpread$7({
29852
30293
  capture: true
29853
30294
  }, inputOptions); // $FlowIgnore[method-unbinding]
29854
30295
 
@@ -31339,25 +31780,25 @@ cjs.exports = Draggable;
31339
31780
  cjs.exports.default = Draggable;
31340
31781
  cjs.exports.DraggableCore = DraggableCore;
31341
31782
 
31342
- var utils = {};
31783
+ var utils$3 = {};
31343
31784
 
31344
- utils.__esModule = true;
31345
- utils.cloneElement = cloneElement;
31785
+ utils$3.__esModule = true;
31786
+ utils$3.cloneElement = cloneElement;
31346
31787
 
31347
31788
  var _react$2 = _interopRequireDefault$5(React__default["default"]);
31348
31789
 
31349
31790
  function _interopRequireDefault$5(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31350
31791
 
31351
- function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31792
+ function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31352
31793
 
31353
- function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31794
+ function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31354
31795
 
31355
31796
  function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31356
31797
 
31357
31798
  // React.addons.cloneWithProps look-alike that merges style & className.
31358
31799
  function cloneElement(element, props) {
31359
31800
  if (props.style && element.props.style) {
31360
- props.style = _objectSpread$5(_objectSpread$5({}, element.props.style), props.style);
31801
+ props.style = _objectSpread$6(_objectSpread$6({}, element.props.style), props.style);
31361
31802
  }
31362
31803
 
31363
31804
  if (props.className && element.props.className) {
@@ -31485,7 +31926,7 @@ var React$3 = _interopRequireWildcard$3(React__default["default"]);
31485
31926
 
31486
31927
  var _reactDraggable = cjs.exports;
31487
31928
 
31488
- var _utils = utils;
31929
+ var _utils = utils$3;
31489
31930
 
31490
31931
  var _propTypes$1 = propTypes;
31491
31932
 
@@ -31499,9 +31940,9 @@ function _extends$1() { _extends$1 = Object.assign || function (target) { for (v
31499
31940
 
31500
31941
  function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31501
31942
 
31502
- function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31943
+ function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31503
31944
 
31504
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31945
+ function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31505
31946
 
31506
31947
  function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31507
31948
 
@@ -31691,7 +32132,7 @@ var Resizable$1 = /*#__PURE__*/function (_React$Component) {
31691
32132
 
31692
32133
  var isDOMElement = typeof handle.type === 'string';
31693
32134
 
31694
- var props = _objectSpread$4({
32135
+ var props = _objectSpread$5({
31695
32136
  ref: ref
31696
32137
  }, isDOMElement ? {} : {
31697
32138
  handleAxis: handleAxis
@@ -31728,7 +32169,7 @@ var Resizable$1 = /*#__PURE__*/function (_React$Component) {
31728
32169
  // 2. One or more draggable handles.
31729
32170
 
31730
32171
 
31731
- return (0, _utils.cloneElement)(children, _objectSpread$4(_objectSpread$4({}, p), {}, {
32172
+ return (0, _utils.cloneElement)(children, _objectSpread$5(_objectSpread$5({}, p), {}, {
31732
32173
  className: (className ? className + " " : '') + "react-resizable",
31733
32174
  children: [].concat(children.props.children, resizeHandles.map(function (handleAxis) {
31734
32175
  var _this3$handleRefs$han;
@@ -31784,9 +32225,9 @@ function _interopRequireWildcard$2(obj, nodeInterop) { if (!nodeInterop && obj &
31784
32225
 
31785
32226
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31786
32227
 
31787
- function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
32228
+ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
31788
32229
 
31789
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
32230
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
31790
32231
 
31791
32232
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31792
32233
 
@@ -31885,7 +32326,7 @@ var ResizableBox = /*#__PURE__*/function (_React$Component) {
31885
32326
  transformScale: transformScale,
31886
32327
  width: this.state.width
31887
32328
  }, /*#__PURE__*/React$2.createElement("div", _extends({}, props, {
31888
- style: _objectSpread$3(_objectSpread$3({}, style), {}, {
32329
+ style: _objectSpread$4(_objectSpread$4({}, style), {}, {
31889
32330
  width: this.state.width + 'px',
31890
32331
  height: this.state.height + 'px'
31891
32332
  })
@@ -31896,7 +32337,7 @@ var ResizableBox = /*#__PURE__*/function (_React$Component) {
31896
32337
  }(React$2.Component);
31897
32338
 
31898
32339
  ResizableBox$1.default = ResizableBox;
31899
- ResizableBox.propTypes = _objectSpread$3(_objectSpread$3({}, _propTypes2.resizableProps), {}, {
32340
+ ResizableBox.propTypes = _objectSpread$4(_objectSpread$4({}, _propTypes2.resizableProps), {}, {
31900
32341
  children: _propTypes.default.element
31901
32342
  });
31902
32343
 
@@ -32004,30 +32445,34 @@ var useReorderColumns = function useReorderColumns(_ref) {
32004
32445
  };
32005
32446
  };
32006
32447
 
32007
- function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32008
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32448
+ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32449
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32009
32450
  var useResizableColumns = function useResizableColumns(_ref) {
32010
32451
  var columns = _ref.columns,
32011
32452
  setColumns = _ref.setColumns,
32012
32453
  isEnabled = _ref.isEnabled,
32013
32454
  onColumnUpdate = _ref.onColumnUpdate;
32014
- if (!isEnabled) return {
32015
- components: {},
32016
- columns: columns
32017
- };
32455
+ if (!isEnabled) {
32456
+ return {
32457
+ components: {},
32458
+ columns: columns
32459
+ };
32460
+ }
32018
32461
  var handleResize = function handleResize(index) {
32019
32462
  return function (_, _ref2) {
32020
32463
  var size = _ref2.size;
32021
32464
  var nextColumns = _toConsumableArray$1(columns);
32022
- nextColumns[index] = _objectSpread$2(_objectSpread$2({}, nextColumns[index]), {}, {
32465
+ nextColumns[index] = _objectSpread$3(_objectSpread$3({}, nextColumns[index]), {}, {
32023
32466
  width: size.width
32024
32467
  });
32025
32468
  setColumns(nextColumns);
32026
32469
  };
32027
32470
  };
32471
+
32472
+ // eslint-disable-next-line react-hooks/rules-of-hooks
32028
32473
  var computedColumnsData = React$5.useMemo(function () {
32029
32474
  return columns.map(function (col, index) {
32030
- var modifiedColumn = _objectSpread$2(_objectSpread$2({}, col), {}, {
32475
+ var modifiedColumn = _objectSpread$3(_objectSpread$3({}, col), {}, {
32031
32476
  onHeaderCell: function onHeaderCell(column) {
32032
32477
  return {
32033
32478
  width: column.width,
@@ -32049,208 +32494,2334 @@ var useResizableColumns = function useResizableColumns(_ref) {
32049
32494
  };
32050
32495
  };
32051
32496
 
32052
- var _excluded$4 = ["allowRowClick", "enableColumnResize", "enableColumnReorder", "className", "columnData", "currentPageNumber", "defaultPageSize", "handlePageChange", "loading", "onRowClick", "onRowSelect", "rowData", "totalCount", "selectedRowKeys", "fixedHeight", "paginationProps", "scroll", "rowSelection", "shouldDynamicallyRenderRowSize", "bordered", "onColumnUpdate", "components"];
32053
- function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32054
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32055
- var TABLE_PAGINATION_HEIGHT = 64;
32056
- var TABLE_DEFAULT_HEADER_HEIGHT = 40;
32057
- var TABLE_ROW_HEIGHT = 52;
32058
- var Table = function Table(_ref) {
32059
- var _ref$allowRowClick = _ref.allowRowClick,
32060
- allowRowClick = _ref$allowRowClick === void 0 ? true : _ref$allowRowClick,
32061
- _ref$enableColumnResi = _ref.enableColumnResize,
32062
- enableColumnResize = _ref$enableColumnResi === void 0 ? false : _ref$enableColumnResi,
32063
- _ref$enableColumnReor = _ref.enableColumnReorder,
32064
- enableColumnReorder = _ref$enableColumnReor === void 0 ? false : _ref$enableColumnReor,
32065
- _ref$className = _ref.className,
32066
- className = _ref$className === void 0 ? "" : _ref$className,
32067
- _ref$columnData = _ref.columnData,
32068
- columnData = _ref$columnData === void 0 ? [] : _ref$columnData,
32069
- _ref$currentPageNumbe = _ref.currentPageNumber,
32070
- currentPageNumber = _ref$currentPageNumbe === void 0 ? 1 : _ref$currentPageNumbe,
32071
- _ref$defaultPageSize = _ref.defaultPageSize,
32072
- defaultPageSize = _ref$defaultPageSize === void 0 ? 30 : _ref$defaultPageSize,
32073
- _ref$handlePageChange = _ref.handlePageChange,
32074
- handlePageChange = _ref$handlePageChange === void 0 ? noop$2 : _ref$handlePageChange,
32075
- _ref$loading = _ref.loading,
32076
- loading = _ref$loading === void 0 ? false : _ref$loading,
32077
- onRowClick = _ref.onRowClick,
32078
- onRowSelect = _ref.onRowSelect,
32079
- _ref$rowData = _ref.rowData,
32080
- rowData = _ref$rowData === void 0 ? [] : _ref$rowData,
32081
- _ref$totalCount = _ref.totalCount,
32082
- totalCount = _ref$totalCount === void 0 ? 0 : _ref$totalCount,
32083
- _ref$selectedRowKeys = _ref.selectedRowKeys,
32084
- selectedRowKeys = _ref$selectedRowKeys === void 0 ? [] : _ref$selectedRowKeys,
32085
- _ref$fixedHeight = _ref.fixedHeight,
32086
- fixedHeight = _ref$fixedHeight === void 0 ? false : _ref$fixedHeight,
32087
- _ref$paginationProps = _ref.paginationProps,
32088
- paginationProps = _ref$paginationProps === void 0 ? {} : _ref$paginationProps,
32089
- scroll = _ref.scroll,
32090
- rowSelection = _ref.rowSelection,
32091
- _ref$shouldDynamicall = _ref.shouldDynamicallyRenderRowSize,
32092
- shouldDynamicallyRenderRowSize = _ref$shouldDynamicall === void 0 ? false : _ref$shouldDynamicall,
32093
- _ref$bordered = _ref.bordered,
32094
- bordered = _ref$bordered === void 0 ? true : _ref$bordered,
32095
- _ref$onColumnUpdate = _ref.onColumnUpdate,
32096
- onColumnUpdate = _ref$onColumnUpdate === void 0 ? noop$2 : _ref$onColumnUpdate,
32097
- _ref$components = _ref.components,
32098
- components = _ref$components === void 0 ? {} : _ref$components,
32099
- otherProps = _objectWithoutProperties$1(_ref, _excluded$4);
32100
- var _useState = React$5.useState(null),
32101
- _useState2 = _slicedToArray$2(_useState, 2),
32102
- containerHeight = _useState2[0],
32103
- setContainerHeight = _useState2[1];
32104
- var _useState3 = React$5.useState(TABLE_DEFAULT_HEADER_HEIGHT),
32105
- _useState4 = _slicedToArray$2(_useState3, 2),
32106
- headerHeight = _useState4[0],
32107
- setHeaderHeight = _useState4[1];
32108
- var _useState5 = React$5.useState(columnData),
32109
- _useState6 = _slicedToArray$2(_useState5, 2),
32110
- columns = _useState6[0],
32111
- setColumns = _useState6[1];
32112
- var headerRef = React$5.useRef();
32113
- var resizeObserver = React$5.useRef(new ResizeObserver(function (_ref2) {
32114
- var _ref3 = _slicedToArray$2(_ref2, 1),
32115
- height = _ref3[0].contentRect.height;
32116
- return setContainerHeight(height);
32117
- }));
32118
- var tableRef = React$5.useCallback(function (table) {
32119
- if (fixedHeight) {
32120
- if (table !== null) {
32121
- resizeObserver.current.observe(table === null || table === void 0 ? void 0 : table.parentNode);
32122
- } else {
32123
- if (resizeObserver.current) resizeObserver.current.disconnect();
32124
- }
32125
- }
32126
- }, [resizeObserver.current, fixedHeight]);
32127
- var handleHeaderClasses = function handleHeaderClasses() {
32128
- var _headerRef$current;
32129
- Object.values((_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.children).forEach(function (child) {
32130
- child.setAttribute("data-text-align", child.style["text-align"]);
32131
- });
32132
- };
32133
- useTimeout(function () {
32134
- var headerHeight = headerRef.current ? headerRef.current.offsetHeight : TABLE_DEFAULT_HEADER_HEIGHT;
32135
- setHeaderHeight(headerHeight);
32136
- handleHeaderClasses();
32137
- }, 0);
32138
- var _useReorderColumns = useReorderColumns({
32139
- isEnabled: enableColumnReorder,
32140
- columns: columns,
32141
- setColumns: setColumns,
32142
- onColumnUpdate: onColumnUpdate,
32143
- rowSelection: rowSelection
32144
- }),
32145
- dragProps = _useReorderColumns.dragProps,
32146
- columnsWithReorderProps = _useReorderColumns.columns;
32147
- var _useResizableColumns = useResizableColumns({
32148
- isEnabled: enableColumnResize,
32149
- columns: columnsWithReorderProps,
32150
- setColumns: setColumns,
32151
- onColumnUpdate: onColumnUpdate
32152
- }),
32153
- curatedColumnsData = _useResizableColumns.columns;
32154
- var locale = {
32155
- emptyText: /*#__PURE__*/React__default["default"].createElement(Typography, {
32156
- style: "body2"
32157
- }, "No Data")
32158
- };
32159
- var isPaginationVisible = rowData.length > defaultPageSize;
32160
- var rowSelectionProps = false;
32161
- if (rowSelection) {
32162
- rowSelectionProps = _objectSpread$1(_objectSpread$1({
32163
- type: "checkbox"
32164
- }, rowSelection), {}, {
32165
- onChange: function onChange(selectedRowKeys, selectedRows) {
32166
- return onRowSelect && onRowSelect(selectedRowKeys, selectedRows);
32167
- },
32168
- selectedRowKeys: selectedRowKeys
32169
- });
32170
- }
32171
- var reordableHeader = {
32172
- header: {
32173
- cell: enableColumnResize ? enableColumnReorder ? HeaderCell : ResizableHeaderCell : enableColumnReorder ? ReorderableHeaderCell : null
32174
- }
32175
- };
32176
- var componentOverrides = _objectSpread$1(_objectSpread$1({}, components), reordableHeader);
32177
- var calculateTableContainerHeight = function calculateTableContainerHeight() {
32178
- return containerHeight - headerHeight - (isPaginationVisible ? TABLE_PAGINATION_HEIGHT : 0);
32179
- };
32180
- var itemRender = function itemRender(_, type, originalElement) {
32181
- if (type === "prev") {
32182
- return /*#__PURE__*/React__default["default"].createElement(Button, {
32183
- className: "",
32184
- icon: neetoIcons.Left,
32185
- style: "text"
32186
- });
32187
- }
32188
- if (type === "next") {
32189
- return /*#__PURE__*/React__default["default"].createElement(Button, {
32190
- className: "",
32191
- icon: neetoIcons.Right,
32192
- style: "text"
32193
- });
32497
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
32498
+ var shams = function hasSymbols() {
32499
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
32500
+ if (typeof Symbol.iterator === 'symbol') { return true; }
32501
+
32502
+ var obj = {};
32503
+ var sym = Symbol('test');
32504
+ var symObj = Object(sym);
32505
+ if (typeof sym === 'string') { return false; }
32506
+
32507
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
32508
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
32509
+
32510
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
32511
+ // if (sym instanceof Symbol) { return false; }
32512
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
32513
+ // if (!(symObj instanceof Symbol)) { return false; }
32514
+
32515
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
32516
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
32517
+
32518
+ var symVal = 42;
32519
+ obj[sym] = symVal;
32520
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
32521
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
32522
+
32523
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
32524
+
32525
+ var syms = Object.getOwnPropertySymbols(obj);
32526
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
32527
+
32528
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
32529
+
32530
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
32531
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
32532
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
32533
+ }
32534
+
32535
+ return true;
32536
+ };
32537
+
32538
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
32539
+ var hasSymbolSham = shams;
32540
+
32541
+ var hasSymbols$1 = function hasNativeSymbols() {
32542
+ if (typeof origSymbol !== 'function') { return false; }
32543
+ if (typeof Symbol !== 'function') { return false; }
32544
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
32545
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
32546
+
32547
+ return hasSymbolSham();
32548
+ };
32549
+
32550
+ /* eslint no-invalid-this: 1 */
32551
+
32552
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
32553
+ var slice = Array.prototype.slice;
32554
+ var toStr$1 = Object.prototype.toString;
32555
+ var funcType = '[object Function]';
32556
+
32557
+ var implementation$1 = function bind(that) {
32558
+ var target = this;
32559
+ if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
32560
+ throw new TypeError(ERROR_MESSAGE + target);
32194
32561
  }
32195
- if (type === "jump-prev") {
32196
- return /*#__PURE__*/React__default["default"].createElement(Button, {
32197
- className: "",
32198
- icon: neetoIcons.MenuHorizontal,
32199
- style: "text"
32200
- });
32562
+ var args = slice.call(arguments, 1);
32563
+
32564
+ var bound;
32565
+ var binder = function () {
32566
+ if (this instanceof bound) {
32567
+ var result = target.apply(
32568
+ this,
32569
+ args.concat(slice.call(arguments))
32570
+ );
32571
+ if (Object(result) === result) {
32572
+ return result;
32573
+ }
32574
+ return this;
32575
+ } else {
32576
+ return target.apply(
32577
+ that,
32578
+ args.concat(slice.call(arguments))
32579
+ );
32580
+ }
32581
+ };
32582
+
32583
+ var boundLength = Math.max(0, target.length - args.length);
32584
+ var boundArgs = [];
32585
+ for (var i = 0; i < boundLength; i++) {
32586
+ boundArgs.push('$' + i);
32201
32587
  }
32202
- if (type === "jump-next") {
32203
- return /*#__PURE__*/React__default["default"].createElement(Button, {
32204
- className: "",
32205
- icon: neetoIcons.MenuHorizontal,
32206
- style: "text"
32207
- });
32588
+
32589
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
32590
+
32591
+ if (target.prototype) {
32592
+ var Empty = function Empty() {};
32593
+ Empty.prototype = target.prototype;
32594
+ bound.prototype = new Empty();
32595
+ Empty.prototype = null;
32208
32596
  }
32209
- return originalElement;
32210
- };
32211
- var calculateRowsPerPage = function calculateRowsPerPage() {
32212
- var viewportHeight = window.innerHeight;
32213
- var rowsPerPage = Math.floor((viewportHeight - TABLE_PAGINATION_HEIGHT) / TABLE_ROW_HEIGHT * 3);
32214
- return Math.ceil(rowsPerPage / 10) * 10;
32215
- };
32216
- var calculatePageSizeOptions = function calculatePageSizeOptions() {
32217
- var rowsPerPage = shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize;
32218
- var pageSizeOptions = _toConsumableArray$1(Array(5).keys()).map(function (i) {
32219
- return (i + 1) * rowsPerPage;
32220
- });
32221
- return pageSizeOptions;
32222
- };
32223
- var renderTable = function renderTable() {
32224
- return /*#__PURE__*/React__default["default"].createElement(_Table__default["default"], _extends$4({
32225
- bordered: bordered,
32226
- columns: curatedColumnsData,
32227
- components: componentOverrides,
32228
- dataSource: rowData,
32229
- loading: loading,
32230
- locale: locale,
32231
- ref: tableRef,
32232
- rowKey: "id",
32233
- rowSelection: rowSelectionProps,
32234
- showSorterTooltip: false,
32235
- pagination: _objectSpread$1(_objectSpread$1({
32236
- hideOnSinglePage: true
32237
- }, paginationProps), {}, {
32238
- showSizeChanger: false,
32239
- total: totalCount !== null && totalCount !== void 0 ? totalCount : 0,
32240
- current: currentPageNumber,
32241
- defaultPageSize: shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize,
32242
- pageSizeOptions: calculatePageSizeOptions(),
32243
- onChange: handlePageChange,
32244
- itemRender: itemRender
32245
- }),
32246
- rowClassName: classnames$1("neeto-ui-table--row", {
32247
- "neeto-ui-table--row_hover": allowRowClick
32248
- }, [className]),
32249
- scroll: _objectSpread$1({
32250
- x: "max-content",
32251
- y: calculateTableContainerHeight()
32252
- }, scroll),
32253
- onChange: handleHeaderClasses,
32597
+
32598
+ return bound;
32599
+ };
32600
+
32601
+ var implementation = implementation$1;
32602
+
32603
+ var functionBind = Function.prototype.bind || implementation;
32604
+
32605
+ var bind$1 = functionBind;
32606
+
32607
+ var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
32608
+
32609
+ var undefined$1;
32610
+
32611
+ var $SyntaxError = SyntaxError;
32612
+ var $Function = Function;
32613
+ var $TypeError$1 = TypeError;
32614
+
32615
+ // eslint-disable-next-line consistent-return
32616
+ var getEvalledConstructor = function (expressionSyntax) {
32617
+ try {
32618
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
32619
+ } catch (e) {}
32620
+ };
32621
+
32622
+ var $gOPD = Object.getOwnPropertyDescriptor;
32623
+ if ($gOPD) {
32624
+ try {
32625
+ $gOPD({}, '');
32626
+ } catch (e) {
32627
+ $gOPD = null; // this is IE 8, which has a broken gOPD
32628
+ }
32629
+ }
32630
+
32631
+ var throwTypeError = function () {
32632
+ throw new $TypeError$1();
32633
+ };
32634
+ var ThrowTypeError = $gOPD
32635
+ ? (function () {
32636
+ try {
32637
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
32638
+ arguments.callee; // IE 8 does not throw here
32639
+ return throwTypeError;
32640
+ } catch (calleeThrows) {
32641
+ try {
32642
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
32643
+ return $gOPD(arguments, 'callee').get;
32644
+ } catch (gOPDthrows) {
32645
+ return throwTypeError;
32646
+ }
32647
+ }
32648
+ }())
32649
+ : throwTypeError;
32650
+
32651
+ var hasSymbols = hasSymbols$1();
32652
+
32653
+ var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
32654
+
32655
+ var needsEval = {};
32656
+
32657
+ var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
32658
+
32659
+ var INTRINSICS = {
32660
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
32661
+ '%Array%': Array,
32662
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
32663
+ '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
32664
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
32665
+ '%AsyncFunction%': needsEval,
32666
+ '%AsyncGenerator%': needsEval,
32667
+ '%AsyncGeneratorFunction%': needsEval,
32668
+ '%AsyncIteratorPrototype%': needsEval,
32669
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
32670
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
32671
+ '%Boolean%': Boolean,
32672
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
32673
+ '%Date%': Date,
32674
+ '%decodeURI%': decodeURI,
32675
+ '%decodeURIComponent%': decodeURIComponent,
32676
+ '%encodeURI%': encodeURI,
32677
+ '%encodeURIComponent%': encodeURIComponent,
32678
+ '%Error%': Error,
32679
+ '%eval%': eval, // eslint-disable-line no-eval
32680
+ '%EvalError%': EvalError,
32681
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
32682
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
32683
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
32684
+ '%Function%': $Function,
32685
+ '%GeneratorFunction%': needsEval,
32686
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
32687
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
32688
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
32689
+ '%isFinite%': isFinite,
32690
+ '%isNaN%': isNaN,
32691
+ '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
32692
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
32693
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
32694
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
32695
+ '%Math%': Math,
32696
+ '%Number%': Number,
32697
+ '%Object%': Object,
32698
+ '%parseFloat%': parseFloat,
32699
+ '%parseInt%': parseInt,
32700
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
32701
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
32702
+ '%RangeError%': RangeError,
32703
+ '%ReferenceError%': ReferenceError,
32704
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
32705
+ '%RegExp%': RegExp,
32706
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
32707
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
32708
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
32709
+ '%String%': String,
32710
+ '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
32711
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
32712
+ '%SyntaxError%': $SyntaxError,
32713
+ '%ThrowTypeError%': ThrowTypeError,
32714
+ '%TypedArray%': TypedArray,
32715
+ '%TypeError%': $TypeError$1,
32716
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
32717
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
32718
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
32719
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
32720
+ '%URIError%': URIError,
32721
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
32722
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
32723
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
32724
+ };
32725
+
32726
+ var doEval = function doEval(name) {
32727
+ var value;
32728
+ if (name === '%AsyncFunction%') {
32729
+ value = getEvalledConstructor('async function () {}');
32730
+ } else if (name === '%GeneratorFunction%') {
32731
+ value = getEvalledConstructor('function* () {}');
32732
+ } else if (name === '%AsyncGeneratorFunction%') {
32733
+ value = getEvalledConstructor('async function* () {}');
32734
+ } else if (name === '%AsyncGenerator%') {
32735
+ var fn = doEval('%AsyncGeneratorFunction%');
32736
+ if (fn) {
32737
+ value = fn.prototype;
32738
+ }
32739
+ } else if (name === '%AsyncIteratorPrototype%') {
32740
+ var gen = doEval('%AsyncGenerator%');
32741
+ if (gen) {
32742
+ value = getProto(gen.prototype);
32743
+ }
32744
+ }
32745
+
32746
+ INTRINSICS[name] = value;
32747
+
32748
+ return value;
32749
+ };
32750
+
32751
+ var LEGACY_ALIASES = {
32752
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
32753
+ '%ArrayPrototype%': ['Array', 'prototype'],
32754
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
32755
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
32756
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
32757
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
32758
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
32759
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
32760
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
32761
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
32762
+ '%DataViewPrototype%': ['DataView', 'prototype'],
32763
+ '%DatePrototype%': ['Date', 'prototype'],
32764
+ '%ErrorPrototype%': ['Error', 'prototype'],
32765
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
32766
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
32767
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
32768
+ '%FunctionPrototype%': ['Function', 'prototype'],
32769
+ '%Generator%': ['GeneratorFunction', 'prototype'],
32770
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
32771
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
32772
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
32773
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
32774
+ '%JSONParse%': ['JSON', 'parse'],
32775
+ '%JSONStringify%': ['JSON', 'stringify'],
32776
+ '%MapPrototype%': ['Map', 'prototype'],
32777
+ '%NumberPrototype%': ['Number', 'prototype'],
32778
+ '%ObjectPrototype%': ['Object', 'prototype'],
32779
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
32780
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
32781
+ '%PromisePrototype%': ['Promise', 'prototype'],
32782
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
32783
+ '%Promise_all%': ['Promise', 'all'],
32784
+ '%Promise_reject%': ['Promise', 'reject'],
32785
+ '%Promise_resolve%': ['Promise', 'resolve'],
32786
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
32787
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
32788
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
32789
+ '%SetPrototype%': ['Set', 'prototype'],
32790
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
32791
+ '%StringPrototype%': ['String', 'prototype'],
32792
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
32793
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
32794
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
32795
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
32796
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
32797
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
32798
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
32799
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
32800
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
32801
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
32802
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
32803
+ };
32804
+
32805
+ var bind = functionBind;
32806
+ var hasOwn$1 = src;
32807
+ var $concat$1 = bind.call(Function.call, Array.prototype.concat);
32808
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
32809
+ var $replace$1 = bind.call(Function.call, String.prototype.replace);
32810
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
32811
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
32812
+
32813
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
32814
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
32815
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
32816
+ var stringToPath = function stringToPath(string) {
32817
+ var first = $strSlice(string, 0, 1);
32818
+ var last = $strSlice(string, -1);
32819
+ if (first === '%' && last !== '%') {
32820
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
32821
+ } else if (last === '%' && first !== '%') {
32822
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
32823
+ }
32824
+ var result = [];
32825
+ $replace$1(string, rePropName, function (match, number, quote, subString) {
32826
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
32827
+ });
32828
+ return result;
32829
+ };
32830
+ /* end adaptation */
32831
+
32832
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
32833
+ var intrinsicName = name;
32834
+ var alias;
32835
+ if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
32836
+ alias = LEGACY_ALIASES[intrinsicName];
32837
+ intrinsicName = '%' + alias[0] + '%';
32838
+ }
32839
+
32840
+ if (hasOwn$1(INTRINSICS, intrinsicName)) {
32841
+ var value = INTRINSICS[intrinsicName];
32842
+ if (value === needsEval) {
32843
+ value = doEval(intrinsicName);
32844
+ }
32845
+ if (typeof value === 'undefined' && !allowMissing) {
32846
+ throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
32847
+ }
32848
+
32849
+ return {
32850
+ alias: alias,
32851
+ name: intrinsicName,
32852
+ value: value
32853
+ };
32854
+ }
32855
+
32856
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
32857
+ };
32858
+
32859
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
32860
+ if (typeof name !== 'string' || name.length === 0) {
32861
+ throw new $TypeError$1('intrinsic name must be a non-empty string');
32862
+ }
32863
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
32864
+ throw new $TypeError$1('"allowMissing" argument must be a boolean');
32865
+ }
32866
+
32867
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
32868
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
32869
+ }
32870
+ var parts = stringToPath(name);
32871
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
32872
+
32873
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
32874
+ var intrinsicRealName = intrinsic.name;
32875
+ var value = intrinsic.value;
32876
+ var skipFurtherCaching = false;
32877
+
32878
+ var alias = intrinsic.alias;
32879
+ if (alias) {
32880
+ intrinsicBaseName = alias[0];
32881
+ $spliceApply(parts, $concat$1([0, 1], alias));
32882
+ }
32883
+
32884
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
32885
+ var part = parts[i];
32886
+ var first = $strSlice(part, 0, 1);
32887
+ var last = $strSlice(part, -1);
32888
+ if (
32889
+ (
32890
+ (first === '"' || first === "'" || first === '`')
32891
+ || (last === '"' || last === "'" || last === '`')
32892
+ )
32893
+ && first !== last
32894
+ ) {
32895
+ throw new $SyntaxError('property names with quotes must have matching quotes');
32896
+ }
32897
+ if (part === 'constructor' || !isOwn) {
32898
+ skipFurtherCaching = true;
32899
+ }
32900
+
32901
+ intrinsicBaseName += '.' + part;
32902
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
32903
+
32904
+ if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
32905
+ value = INTRINSICS[intrinsicRealName];
32906
+ } else if (value != null) {
32907
+ if (!(part in value)) {
32908
+ if (!allowMissing) {
32909
+ throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
32910
+ }
32911
+ return void undefined$1;
32912
+ }
32913
+ if ($gOPD && (i + 1) >= parts.length) {
32914
+ var desc = $gOPD(value, part);
32915
+ isOwn = !!desc;
32916
+
32917
+ // By convention, when a data property is converted to an accessor
32918
+ // property to emulate a data property that does not suffer from
32919
+ // the override mistake, that accessor's getter is marked with
32920
+ // an `originalValue` property. Here, when we detect this, we
32921
+ // uphold the illusion by pretending to see that original data
32922
+ // property, i.e., returning the value rather than the getter
32923
+ // itself.
32924
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
32925
+ value = desc.get;
32926
+ } else {
32927
+ value = value[part];
32928
+ }
32929
+ } else {
32930
+ isOwn = hasOwn$1(value, part);
32931
+ value = value[part];
32932
+ }
32933
+
32934
+ if (isOwn && !skipFurtherCaching) {
32935
+ INTRINSICS[intrinsicRealName] = value;
32936
+ }
32937
+ }
32938
+ }
32939
+ return value;
32940
+ };
32941
+
32942
+ var callBind$1 = {exports: {}};
32943
+
32944
+ (function (module) {
32945
+
32946
+ var bind = functionBind;
32947
+ var GetIntrinsic = getIntrinsic;
32948
+
32949
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
32950
+ var $call = GetIntrinsic('%Function.prototype.call%');
32951
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
32952
+
32953
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
32954
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
32955
+ var $max = GetIntrinsic('%Math.max%');
32956
+
32957
+ if ($defineProperty) {
32958
+ try {
32959
+ $defineProperty({}, 'a', { value: 1 });
32960
+ } catch (e) {
32961
+ // IE 8 has a broken defineProperty
32962
+ $defineProperty = null;
32963
+ }
32964
+ }
32965
+
32966
+ module.exports = function callBind(originalFunction) {
32967
+ var func = $reflectApply(bind, $call, arguments);
32968
+ if ($gOPD && $defineProperty) {
32969
+ var desc = $gOPD(func, 'length');
32970
+ if (desc.configurable) {
32971
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
32972
+ $defineProperty(
32973
+ func,
32974
+ 'length',
32975
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
32976
+ );
32977
+ }
32978
+ }
32979
+ return func;
32980
+ };
32981
+
32982
+ var applyBind = function applyBind() {
32983
+ return $reflectApply(bind, $apply, arguments);
32984
+ };
32985
+
32986
+ if ($defineProperty) {
32987
+ $defineProperty(module.exports, 'apply', { value: applyBind });
32988
+ } else {
32989
+ module.exports.apply = applyBind;
32990
+ }
32991
+ } (callBind$1));
32992
+
32993
+ var GetIntrinsic$1 = getIntrinsic;
32994
+
32995
+ var callBind = callBind$1.exports;
32996
+
32997
+ var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
32998
+
32999
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
33000
+ var intrinsic = GetIntrinsic$1(name, !!allowMissing);
33001
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
33002
+ return callBind(intrinsic);
33003
+ }
33004
+ return intrinsic;
33005
+ };
33006
+
33007
+ var util_inspect = require$$0__default["default"].inspect;
33008
+
33009
+ var hasMap = typeof Map === 'function' && Map.prototype;
33010
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
33011
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
33012
+ var mapForEach = hasMap && Map.prototype.forEach;
33013
+ var hasSet = typeof Set === 'function' && Set.prototype;
33014
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
33015
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
33016
+ var setForEach = hasSet && Set.prototype.forEach;
33017
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
33018
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
33019
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
33020
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
33021
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
33022
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
33023
+ var booleanValueOf = Boolean.prototype.valueOf;
33024
+ var objectToString = Object.prototype.toString;
33025
+ var functionToString = Function.prototype.toString;
33026
+ var $match = String.prototype.match;
33027
+ var $slice = String.prototype.slice;
33028
+ var $replace = String.prototype.replace;
33029
+ var $toUpperCase = String.prototype.toUpperCase;
33030
+ var $toLowerCase = String.prototype.toLowerCase;
33031
+ var $test = RegExp.prototype.test;
33032
+ var $concat = Array.prototype.concat;
33033
+ var $join = Array.prototype.join;
33034
+ var $arrSlice = Array.prototype.slice;
33035
+ var $floor = Math.floor;
33036
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
33037
+ var gOPS = Object.getOwnPropertySymbols;
33038
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
33039
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
33040
+ // ie, `has-tostringtag/shams
33041
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
33042
+ ? Symbol.toStringTag
33043
+ : null;
33044
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
33045
+
33046
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
33047
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
33048
+ ? function (O) {
33049
+ return O.__proto__; // eslint-disable-line no-proto
33050
+ }
33051
+ : null
33052
+ );
33053
+
33054
+ function addNumericSeparator(num, str) {
33055
+ if (
33056
+ num === Infinity
33057
+ || num === -Infinity
33058
+ || num !== num
33059
+ || (num && num > -1000 && num < 1000)
33060
+ || $test.call(/e/, str)
33061
+ ) {
33062
+ return str;
33063
+ }
33064
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
33065
+ if (typeof num === 'number') {
33066
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
33067
+ if (int !== num) {
33068
+ var intStr = String(int);
33069
+ var dec = $slice.call(str, intStr.length + 1);
33070
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
33071
+ }
33072
+ }
33073
+ return $replace.call(str, sepRegex, '$&_');
33074
+ }
33075
+
33076
+ var utilInspect = util_inspect;
33077
+ var inspectCustom = utilInspect.custom;
33078
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
33079
+
33080
+ var objectInspect = function inspect_(obj, options, depth, seen) {
33081
+ var opts = options || {};
33082
+
33083
+ if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
33084
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
33085
+ }
33086
+ if (
33087
+ has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
33088
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
33089
+ : opts.maxStringLength !== null
33090
+ )
33091
+ ) {
33092
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
33093
+ }
33094
+ var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
33095
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
33096
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
33097
+ }
33098
+
33099
+ if (
33100
+ has$3(opts, 'indent')
33101
+ && opts.indent !== null
33102
+ && opts.indent !== '\t'
33103
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
33104
+ ) {
33105
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
33106
+ }
33107
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
33108
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
33109
+ }
33110
+ var numericSeparator = opts.numericSeparator;
33111
+
33112
+ if (typeof obj === 'undefined') {
33113
+ return 'undefined';
33114
+ }
33115
+ if (obj === null) {
33116
+ return 'null';
33117
+ }
33118
+ if (typeof obj === 'boolean') {
33119
+ return obj ? 'true' : 'false';
33120
+ }
33121
+
33122
+ if (typeof obj === 'string') {
33123
+ return inspectString(obj, opts);
33124
+ }
33125
+ if (typeof obj === 'number') {
33126
+ if (obj === 0) {
33127
+ return Infinity / obj > 0 ? '0' : '-0';
33128
+ }
33129
+ var str = String(obj);
33130
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
33131
+ }
33132
+ if (typeof obj === 'bigint') {
33133
+ var bigIntStr = String(obj) + 'n';
33134
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
33135
+ }
33136
+
33137
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
33138
+ if (typeof depth === 'undefined') { depth = 0; }
33139
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
33140
+ return isArray$3(obj) ? '[Array]' : '[Object]';
33141
+ }
33142
+
33143
+ var indent = getIndent(opts, depth);
33144
+
33145
+ if (typeof seen === 'undefined') {
33146
+ seen = [];
33147
+ } else if (indexOf(seen, obj) >= 0) {
33148
+ return '[Circular]';
33149
+ }
33150
+
33151
+ function inspect(value, from, noIndent) {
33152
+ if (from) {
33153
+ seen = $arrSlice.call(seen);
33154
+ seen.push(from);
33155
+ }
33156
+ if (noIndent) {
33157
+ var newOpts = {
33158
+ depth: opts.depth
33159
+ };
33160
+ if (has$3(opts, 'quoteStyle')) {
33161
+ newOpts.quoteStyle = opts.quoteStyle;
33162
+ }
33163
+ return inspect_(value, newOpts, depth + 1, seen);
33164
+ }
33165
+ return inspect_(value, opts, depth + 1, seen);
33166
+ }
33167
+
33168
+ if (typeof obj === 'function' && !isRegExp$2(obj)) { // in older engines, regexes are callable
33169
+ var name = nameOf(obj);
33170
+ var keys = arrObjKeys(obj, inspect);
33171
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
33172
+ }
33173
+ if (isSymbol(obj)) {
33174
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
33175
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
33176
+ }
33177
+ if (isElement(obj)) {
33178
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
33179
+ var attrs = obj.attributes || [];
33180
+ for (var i = 0; i < attrs.length; i++) {
33181
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
33182
+ }
33183
+ s += '>';
33184
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
33185
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
33186
+ return s;
33187
+ }
33188
+ if (isArray$3(obj)) {
33189
+ if (obj.length === 0) { return '[]'; }
33190
+ var xs = arrObjKeys(obj, inspect);
33191
+ if (indent && !singleLineValues(xs)) {
33192
+ return '[' + indentedJoin(xs, indent) + ']';
33193
+ }
33194
+ return '[ ' + $join.call(xs, ', ') + ' ]';
33195
+ }
33196
+ if (isError$1(obj)) {
33197
+ var parts = arrObjKeys(obj, inspect);
33198
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
33199
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
33200
+ }
33201
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
33202
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
33203
+ }
33204
+ if (typeof obj === 'object' && customInspect) {
33205
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
33206
+ return utilInspect(obj, { depth: maxDepth - depth });
33207
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
33208
+ return obj.inspect();
33209
+ }
33210
+ }
33211
+ if (isMap(obj)) {
33212
+ var mapParts = [];
33213
+ mapForEach.call(obj, function (value, key) {
33214
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
33215
+ });
33216
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
33217
+ }
33218
+ if (isSet(obj)) {
33219
+ var setParts = [];
33220
+ setForEach.call(obj, function (value) {
33221
+ setParts.push(inspect(value, obj));
33222
+ });
33223
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
33224
+ }
33225
+ if (isWeakMap(obj)) {
33226
+ return weakCollectionOf('WeakMap');
33227
+ }
33228
+ if (isWeakSet(obj)) {
33229
+ return weakCollectionOf('WeakSet');
33230
+ }
33231
+ if (isWeakRef(obj)) {
33232
+ return weakCollectionOf('WeakRef');
33233
+ }
33234
+ if (isNumber(obj)) {
33235
+ return markBoxed(inspect(Number(obj)));
33236
+ }
33237
+ if (isBigInt(obj)) {
33238
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
33239
+ }
33240
+ if (isBoolean(obj)) {
33241
+ return markBoxed(booleanValueOf.call(obj));
33242
+ }
33243
+ if (isString$2(obj)) {
33244
+ return markBoxed(inspect(String(obj)));
33245
+ }
33246
+ if (!isDate(obj) && !isRegExp$2(obj)) {
33247
+ var ys = arrObjKeys(obj, inspect);
33248
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
33249
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
33250
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
33251
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
33252
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
33253
+ if (ys.length === 0) { return tag + '{}'; }
33254
+ if (indent) {
33255
+ return tag + '{' + indentedJoin(ys, indent) + '}';
33256
+ }
33257
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
33258
+ }
33259
+ return String(obj);
33260
+ };
33261
+
33262
+ function wrapQuotes(s, defaultStyle, opts) {
33263
+ var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
33264
+ return quoteChar + s + quoteChar;
33265
+ }
33266
+
33267
+ function quote(s) {
33268
+ return $replace.call(String(s), /"/g, '&quot;');
33269
+ }
33270
+
33271
+ function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33272
+ function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33273
+ function isRegExp$2(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33274
+ function isError$1(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33275
+ function isString$2(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33276
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33277
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
33278
+
33279
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
33280
+ function isSymbol(obj) {
33281
+ if (hasShammedSymbols) {
33282
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
33283
+ }
33284
+ if (typeof obj === 'symbol') {
33285
+ return true;
33286
+ }
33287
+ if (!obj || typeof obj !== 'object' || !symToString) {
33288
+ return false;
33289
+ }
33290
+ try {
33291
+ symToString.call(obj);
33292
+ return true;
33293
+ } catch (e) {}
33294
+ return false;
33295
+ }
33296
+
33297
+ function isBigInt(obj) {
33298
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
33299
+ return false;
33300
+ }
33301
+ try {
33302
+ bigIntValueOf.call(obj);
33303
+ return true;
33304
+ } catch (e) {}
33305
+ return false;
33306
+ }
33307
+
33308
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
33309
+ function has$3(obj, key) {
33310
+ return hasOwn.call(obj, key);
33311
+ }
33312
+
33313
+ function toStr(obj) {
33314
+ return objectToString.call(obj);
33315
+ }
33316
+
33317
+ function nameOf(f) {
33318
+ if (f.name) { return f.name; }
33319
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
33320
+ if (m) { return m[1]; }
33321
+ return null;
33322
+ }
33323
+
33324
+ function indexOf(xs, x) {
33325
+ if (xs.indexOf) { return xs.indexOf(x); }
33326
+ for (var i = 0, l = xs.length; i < l; i++) {
33327
+ if (xs[i] === x) { return i; }
33328
+ }
33329
+ return -1;
33330
+ }
33331
+
33332
+ function isMap(x) {
33333
+ if (!mapSize || !x || typeof x !== 'object') {
33334
+ return false;
33335
+ }
33336
+ try {
33337
+ mapSize.call(x);
33338
+ try {
33339
+ setSize.call(x);
33340
+ } catch (s) {
33341
+ return true;
33342
+ }
33343
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
33344
+ } catch (e) {}
33345
+ return false;
33346
+ }
33347
+
33348
+ function isWeakMap(x) {
33349
+ if (!weakMapHas || !x || typeof x !== 'object') {
33350
+ return false;
33351
+ }
33352
+ try {
33353
+ weakMapHas.call(x, weakMapHas);
33354
+ try {
33355
+ weakSetHas.call(x, weakSetHas);
33356
+ } catch (s) {
33357
+ return true;
33358
+ }
33359
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
33360
+ } catch (e) {}
33361
+ return false;
33362
+ }
33363
+
33364
+ function isWeakRef(x) {
33365
+ if (!weakRefDeref || !x || typeof x !== 'object') {
33366
+ return false;
33367
+ }
33368
+ try {
33369
+ weakRefDeref.call(x);
33370
+ return true;
33371
+ } catch (e) {}
33372
+ return false;
33373
+ }
33374
+
33375
+ function isSet(x) {
33376
+ if (!setSize || !x || typeof x !== 'object') {
33377
+ return false;
33378
+ }
33379
+ try {
33380
+ setSize.call(x);
33381
+ try {
33382
+ mapSize.call(x);
33383
+ } catch (m) {
33384
+ return true;
33385
+ }
33386
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
33387
+ } catch (e) {}
33388
+ return false;
33389
+ }
33390
+
33391
+ function isWeakSet(x) {
33392
+ if (!weakSetHas || !x || typeof x !== 'object') {
33393
+ return false;
33394
+ }
33395
+ try {
33396
+ weakSetHas.call(x, weakSetHas);
33397
+ try {
33398
+ weakMapHas.call(x, weakMapHas);
33399
+ } catch (s) {
33400
+ return true;
33401
+ }
33402
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
33403
+ } catch (e) {}
33404
+ return false;
33405
+ }
33406
+
33407
+ function isElement(x) {
33408
+ if (!x || typeof x !== 'object') { return false; }
33409
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
33410
+ return true;
33411
+ }
33412
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
33413
+ }
33414
+
33415
+ function inspectString(str, opts) {
33416
+ if (str.length > opts.maxStringLength) {
33417
+ var remaining = str.length - opts.maxStringLength;
33418
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
33419
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
33420
+ }
33421
+ // eslint-disable-next-line no-control-regex
33422
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
33423
+ return wrapQuotes(s, 'single', opts);
33424
+ }
33425
+
33426
+ function lowbyte(c) {
33427
+ var n = c.charCodeAt(0);
33428
+ var x = {
33429
+ 8: 'b',
33430
+ 9: 't',
33431
+ 10: 'n',
33432
+ 12: 'f',
33433
+ 13: 'r'
33434
+ }[n];
33435
+ if (x) { return '\\' + x; }
33436
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
33437
+ }
33438
+
33439
+ function markBoxed(str) {
33440
+ return 'Object(' + str + ')';
33441
+ }
33442
+
33443
+ function weakCollectionOf(type) {
33444
+ return type + ' { ? }';
33445
+ }
33446
+
33447
+ function collectionOf(type, size, entries, indent) {
33448
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
33449
+ return type + ' (' + size + ') {' + joinedEntries + '}';
33450
+ }
33451
+
33452
+ function singleLineValues(xs) {
33453
+ for (var i = 0; i < xs.length; i++) {
33454
+ if (indexOf(xs[i], '\n') >= 0) {
33455
+ return false;
33456
+ }
33457
+ }
33458
+ return true;
33459
+ }
33460
+
33461
+ function getIndent(opts, depth) {
33462
+ var baseIndent;
33463
+ if (opts.indent === '\t') {
33464
+ baseIndent = '\t';
33465
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
33466
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
33467
+ } else {
33468
+ return null;
33469
+ }
33470
+ return {
33471
+ base: baseIndent,
33472
+ prev: $join.call(Array(depth + 1), baseIndent)
33473
+ };
33474
+ }
33475
+
33476
+ function indentedJoin(xs, indent) {
33477
+ if (xs.length === 0) { return ''; }
33478
+ var lineJoiner = '\n' + indent.prev + indent.base;
33479
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
33480
+ }
33481
+
33482
+ function arrObjKeys(obj, inspect) {
33483
+ var isArr = isArray$3(obj);
33484
+ var xs = [];
33485
+ if (isArr) {
33486
+ xs.length = obj.length;
33487
+ for (var i = 0; i < obj.length; i++) {
33488
+ xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
33489
+ }
33490
+ }
33491
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
33492
+ var symMap;
33493
+ if (hasShammedSymbols) {
33494
+ symMap = {};
33495
+ for (var k = 0; k < syms.length; k++) {
33496
+ symMap['$' + syms[k]] = syms[k];
33497
+ }
33498
+ }
33499
+
33500
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
33501
+ if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
33502
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
33503
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
33504
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
33505
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
33506
+ } else if ($test.call(/[^\w$]/, key)) {
33507
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
33508
+ } else {
33509
+ xs.push(key + ': ' + inspect(obj[key], obj));
33510
+ }
33511
+ }
33512
+ if (typeof gOPS === 'function') {
33513
+ for (var j = 0; j < syms.length; j++) {
33514
+ if (isEnumerable.call(obj, syms[j])) {
33515
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
33516
+ }
33517
+ }
33518
+ }
33519
+ return xs;
33520
+ }
33521
+
33522
+ var GetIntrinsic = getIntrinsic;
33523
+ var callBound = callBound$1;
33524
+ var inspect = objectInspect;
33525
+
33526
+ var $TypeError = GetIntrinsic('%TypeError%');
33527
+ var $WeakMap = GetIntrinsic('%WeakMap%', true);
33528
+ var $Map = GetIntrinsic('%Map%', true);
33529
+
33530
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
33531
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
33532
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
33533
+ var $mapGet = callBound('Map.prototype.get', true);
33534
+ var $mapSet = callBound('Map.prototype.set', true);
33535
+ var $mapHas = callBound('Map.prototype.has', true);
33536
+
33537
+ /*
33538
+ * This function traverses the list returning the node corresponding to the
33539
+ * given key.
33540
+ *
33541
+ * That node is also moved to the head of the list, so that if it's accessed
33542
+ * again we don't need to traverse the whole list. By doing so, all the recently
33543
+ * used nodes can be accessed relatively quickly.
33544
+ */
33545
+ var listGetNode = function (list, key) { // eslint-disable-line consistent-return
33546
+ for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
33547
+ if (curr.key === key) {
33548
+ prev.next = curr.next;
33549
+ curr.next = list.next;
33550
+ list.next = curr; // eslint-disable-line no-param-reassign
33551
+ return curr;
33552
+ }
33553
+ }
33554
+ };
33555
+
33556
+ var listGet = function (objects, key) {
33557
+ var node = listGetNode(objects, key);
33558
+ return node && node.value;
33559
+ };
33560
+ var listSet = function (objects, key, value) {
33561
+ var node = listGetNode(objects, key);
33562
+ if (node) {
33563
+ node.value = value;
33564
+ } else {
33565
+ // Prepend the new node to the beginning of the list
33566
+ objects.next = { // eslint-disable-line no-param-reassign
33567
+ key: key,
33568
+ next: objects.next,
33569
+ value: value
33570
+ };
33571
+ }
33572
+ };
33573
+ var listHas = function (objects, key) {
33574
+ return !!listGetNode(objects, key);
33575
+ };
33576
+
33577
+ var sideChannel = function getSideChannel() {
33578
+ var $wm;
33579
+ var $m;
33580
+ var $o;
33581
+ var channel = {
33582
+ assert: function (key) {
33583
+ if (!channel.has(key)) {
33584
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
33585
+ }
33586
+ },
33587
+ get: function (key) { // eslint-disable-line consistent-return
33588
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
33589
+ if ($wm) {
33590
+ return $weakMapGet($wm, key);
33591
+ }
33592
+ } else if ($Map) {
33593
+ if ($m) {
33594
+ return $mapGet($m, key);
33595
+ }
33596
+ } else {
33597
+ if ($o) { // eslint-disable-line no-lonely-if
33598
+ return listGet($o, key);
33599
+ }
33600
+ }
33601
+ },
33602
+ has: function (key) {
33603
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
33604
+ if ($wm) {
33605
+ return $weakMapHas($wm, key);
33606
+ }
33607
+ } else if ($Map) {
33608
+ if ($m) {
33609
+ return $mapHas($m, key);
33610
+ }
33611
+ } else {
33612
+ if ($o) { // eslint-disable-line no-lonely-if
33613
+ return listHas($o, key);
33614
+ }
33615
+ }
33616
+ return false;
33617
+ },
33618
+ set: function (key, value) {
33619
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
33620
+ if (!$wm) {
33621
+ $wm = new $WeakMap();
33622
+ }
33623
+ $weakMapSet($wm, key, value);
33624
+ } else if ($Map) {
33625
+ if (!$m) {
33626
+ $m = new $Map();
33627
+ }
33628
+ $mapSet($m, key, value);
33629
+ } else {
33630
+ if (!$o) {
33631
+ /*
33632
+ * Initialize the linked list as an empty node, so that we don't have
33633
+ * to special-case handling of the first node: we can always refer to
33634
+ * it as (previous node).next, instead of something like (list).head
33635
+ */
33636
+ $o = { key: {}, next: null };
33637
+ }
33638
+ listSet($o, key, value);
33639
+ }
33640
+ }
33641
+ };
33642
+ return channel;
33643
+ };
33644
+
33645
+ var replace = String.prototype.replace;
33646
+ var percentTwenties = /%20/g;
33647
+
33648
+ var Format = {
33649
+ RFC1738: 'RFC1738',
33650
+ RFC3986: 'RFC3986'
33651
+ };
33652
+
33653
+ var formats$3 = {
33654
+ 'default': Format.RFC3986,
33655
+ formatters: {
33656
+ RFC1738: function (value) {
33657
+ return replace.call(value, percentTwenties, '+');
33658
+ },
33659
+ RFC3986: function (value) {
33660
+ return String(value);
33661
+ }
33662
+ },
33663
+ RFC1738: Format.RFC1738,
33664
+ RFC3986: Format.RFC3986
33665
+ };
33666
+
33667
+ var formats$2 = formats$3;
33668
+
33669
+ var has$2 = Object.prototype.hasOwnProperty;
33670
+ var isArray$2 = Array.isArray;
33671
+
33672
+ var hexTable = (function () {
33673
+ var array = [];
33674
+ for (var i = 0; i < 256; ++i) {
33675
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
33676
+ }
33677
+
33678
+ return array;
33679
+ }());
33680
+
33681
+ var compactQueue = function compactQueue(queue) {
33682
+ while (queue.length > 1) {
33683
+ var item = queue.pop();
33684
+ var obj = item.obj[item.prop];
33685
+
33686
+ if (isArray$2(obj)) {
33687
+ var compacted = [];
33688
+
33689
+ for (var j = 0; j < obj.length; ++j) {
33690
+ if (typeof obj[j] !== 'undefined') {
33691
+ compacted.push(obj[j]);
33692
+ }
33693
+ }
33694
+
33695
+ item.obj[item.prop] = compacted;
33696
+ }
33697
+ }
33698
+ };
33699
+
33700
+ var arrayToObject = function arrayToObject(source, options) {
33701
+ var obj = options && options.plainObjects ? Object.create(null) : {};
33702
+ for (var i = 0; i < source.length; ++i) {
33703
+ if (typeof source[i] !== 'undefined') {
33704
+ obj[i] = source[i];
33705
+ }
33706
+ }
33707
+
33708
+ return obj;
33709
+ };
33710
+
33711
+ var merge = function merge(target, source, options) {
33712
+ /* eslint no-param-reassign: 0 */
33713
+ if (!source) {
33714
+ return target;
33715
+ }
33716
+
33717
+ if (typeof source !== 'object') {
33718
+ if (isArray$2(target)) {
33719
+ target.push(source);
33720
+ } else if (target && typeof target === 'object') {
33721
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
33722
+ target[source] = true;
33723
+ }
33724
+ } else {
33725
+ return [target, source];
33726
+ }
33727
+
33728
+ return target;
33729
+ }
33730
+
33731
+ if (!target || typeof target !== 'object') {
33732
+ return [target].concat(source);
33733
+ }
33734
+
33735
+ var mergeTarget = target;
33736
+ if (isArray$2(target) && !isArray$2(source)) {
33737
+ mergeTarget = arrayToObject(target, options);
33738
+ }
33739
+
33740
+ if (isArray$2(target) && isArray$2(source)) {
33741
+ source.forEach(function (item, i) {
33742
+ if (has$2.call(target, i)) {
33743
+ var targetItem = target[i];
33744
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
33745
+ target[i] = merge(targetItem, item, options);
33746
+ } else {
33747
+ target.push(item);
33748
+ }
33749
+ } else {
33750
+ target[i] = item;
33751
+ }
33752
+ });
33753
+ return target;
33754
+ }
33755
+
33756
+ return Object.keys(source).reduce(function (acc, key) {
33757
+ var value = source[key];
33758
+
33759
+ if (has$2.call(acc, key)) {
33760
+ acc[key] = merge(acc[key], value, options);
33761
+ } else {
33762
+ acc[key] = value;
33763
+ }
33764
+ return acc;
33765
+ }, mergeTarget);
33766
+ };
33767
+
33768
+ var assign$1 = function assignSingleSource(target, source) {
33769
+ return Object.keys(source).reduce(function (acc, key) {
33770
+ acc[key] = source[key];
33771
+ return acc;
33772
+ }, target);
33773
+ };
33774
+
33775
+ var decode = function (str, decoder, charset) {
33776
+ var strWithoutPlus = str.replace(/\+/g, ' ');
33777
+ if (charset === 'iso-8859-1') {
33778
+ // unescape never throws, no try...catch needed:
33779
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
33780
+ }
33781
+ // utf-8
33782
+ try {
33783
+ return decodeURIComponent(strWithoutPlus);
33784
+ } catch (e) {
33785
+ return strWithoutPlus;
33786
+ }
33787
+ };
33788
+
33789
+ var encode = function encode(str, defaultEncoder, charset, kind, format) {
33790
+ // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
33791
+ // It has been adapted here for stricter adherence to RFC 3986
33792
+ if (str.length === 0) {
33793
+ return str;
33794
+ }
33795
+
33796
+ var string = str;
33797
+ if (typeof str === 'symbol') {
33798
+ string = Symbol.prototype.toString.call(str);
33799
+ } else if (typeof str !== 'string') {
33800
+ string = String(str);
33801
+ }
33802
+
33803
+ if (charset === 'iso-8859-1') {
33804
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
33805
+ return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
33806
+ });
33807
+ }
33808
+
33809
+ var out = '';
33810
+ for (var i = 0; i < string.length; ++i) {
33811
+ var c = string.charCodeAt(i);
33812
+
33813
+ if (
33814
+ c === 0x2D // -
33815
+ || c === 0x2E // .
33816
+ || c === 0x5F // _
33817
+ || c === 0x7E // ~
33818
+ || (c >= 0x30 && c <= 0x39) // 0-9
33819
+ || (c >= 0x41 && c <= 0x5A) // a-z
33820
+ || (c >= 0x61 && c <= 0x7A) // A-Z
33821
+ || (format === formats$2.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
33822
+ ) {
33823
+ out += string.charAt(i);
33824
+ continue;
33825
+ }
33826
+
33827
+ if (c < 0x80) {
33828
+ out = out + hexTable[c];
33829
+ continue;
33830
+ }
33831
+
33832
+ if (c < 0x800) {
33833
+ out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
33834
+ continue;
33835
+ }
33836
+
33837
+ if (c < 0xD800 || c >= 0xE000) {
33838
+ out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
33839
+ continue;
33840
+ }
33841
+
33842
+ i += 1;
33843
+ c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
33844
+ /* eslint operator-linebreak: [2, "before"] */
33845
+ out += hexTable[0xF0 | (c >> 18)]
33846
+ + hexTable[0x80 | ((c >> 12) & 0x3F)]
33847
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
33848
+ + hexTable[0x80 | (c & 0x3F)];
33849
+ }
33850
+
33851
+ return out;
33852
+ };
33853
+
33854
+ var compact = function compact(value) {
33855
+ var queue = [{ obj: { o: value }, prop: 'o' }];
33856
+ var refs = [];
33857
+
33858
+ for (var i = 0; i < queue.length; ++i) {
33859
+ var item = queue[i];
33860
+ var obj = item.obj[item.prop];
33861
+
33862
+ var keys = Object.keys(obj);
33863
+ for (var j = 0; j < keys.length; ++j) {
33864
+ var key = keys[j];
33865
+ var val = obj[key];
33866
+ if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
33867
+ queue.push({ obj: obj, prop: key });
33868
+ refs.push(val);
33869
+ }
33870
+ }
33871
+ }
33872
+
33873
+ compactQueue(queue);
33874
+
33875
+ return value;
33876
+ };
33877
+
33878
+ var isRegExp$1 = function isRegExp(obj) {
33879
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
33880
+ };
33881
+
33882
+ var isBuffer = function isBuffer(obj) {
33883
+ if (!obj || typeof obj !== 'object') {
33884
+ return false;
33885
+ }
33886
+
33887
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
33888
+ };
33889
+
33890
+ var combine = function combine(a, b) {
33891
+ return [].concat(a, b);
33892
+ };
33893
+
33894
+ var maybeMap = function maybeMap(val, fn) {
33895
+ if (isArray$2(val)) {
33896
+ var mapped = [];
33897
+ for (var i = 0; i < val.length; i += 1) {
33898
+ mapped.push(fn(val[i]));
33899
+ }
33900
+ return mapped;
33901
+ }
33902
+ return fn(val);
33903
+ };
33904
+
33905
+ var utils$2 = {
33906
+ arrayToObject: arrayToObject,
33907
+ assign: assign$1,
33908
+ combine: combine,
33909
+ compact: compact,
33910
+ decode: decode,
33911
+ encode: encode,
33912
+ isBuffer: isBuffer,
33913
+ isRegExp: isRegExp$1,
33914
+ maybeMap: maybeMap,
33915
+ merge: merge
33916
+ };
33917
+
33918
+ var getSideChannel = sideChannel;
33919
+ var utils$1 = utils$2;
33920
+ var formats$1 = formats$3;
33921
+ var has$1 = Object.prototype.hasOwnProperty;
33922
+
33923
+ var arrayPrefixGenerators = {
33924
+ brackets: function brackets(prefix) {
33925
+ return prefix + '[]';
33926
+ },
33927
+ comma: 'comma',
33928
+ indices: function indices(prefix, key) {
33929
+ return prefix + '[' + key + ']';
33930
+ },
33931
+ repeat: function repeat(prefix) {
33932
+ return prefix;
33933
+ }
33934
+ };
33935
+
33936
+ var isArray$1 = Array.isArray;
33937
+ var push = Array.prototype.push;
33938
+ var pushToArray = function (arr, valueOrArray) {
33939
+ push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
33940
+ };
33941
+
33942
+ var toISO = Date.prototype.toISOString;
33943
+
33944
+ var defaultFormat = formats$1['default'];
33945
+ var defaults$1 = {
33946
+ addQueryPrefix: false,
33947
+ allowDots: false,
33948
+ charset: 'utf-8',
33949
+ charsetSentinel: false,
33950
+ delimiter: '&',
33951
+ encode: true,
33952
+ encoder: utils$1.encode,
33953
+ encodeValuesOnly: false,
33954
+ format: defaultFormat,
33955
+ formatter: formats$1.formatters[defaultFormat],
33956
+ // deprecated
33957
+ indices: false,
33958
+ serializeDate: function serializeDate(date) {
33959
+ return toISO.call(date);
33960
+ },
33961
+ skipNulls: false,
33962
+ strictNullHandling: false
33963
+ };
33964
+
33965
+ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
33966
+ return typeof v === 'string'
33967
+ || typeof v === 'number'
33968
+ || typeof v === 'boolean'
33969
+ || typeof v === 'symbol'
33970
+ || typeof v === 'bigint';
33971
+ };
33972
+
33973
+ var sentinel = {};
33974
+
33975
+ var stringify$1 = function stringify(
33976
+ object,
33977
+ prefix,
33978
+ generateArrayPrefix,
33979
+ commaRoundTrip,
33980
+ strictNullHandling,
33981
+ skipNulls,
33982
+ encoder,
33983
+ filter,
33984
+ sort,
33985
+ allowDots,
33986
+ serializeDate,
33987
+ format,
33988
+ formatter,
33989
+ encodeValuesOnly,
33990
+ charset,
33991
+ sideChannel
33992
+ ) {
33993
+ var obj = object;
33994
+
33995
+ var tmpSc = sideChannel;
33996
+ var step = 0;
33997
+ var findFlag = false;
33998
+ while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
33999
+ // Where object last appeared in the ref tree
34000
+ var pos = tmpSc.get(object);
34001
+ step += 1;
34002
+ if (typeof pos !== 'undefined') {
34003
+ if (pos === step) {
34004
+ throw new RangeError('Cyclic object value');
34005
+ } else {
34006
+ findFlag = true; // Break while
34007
+ }
34008
+ }
34009
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
34010
+ step = 0;
34011
+ }
34012
+ }
34013
+
34014
+ if (typeof filter === 'function') {
34015
+ obj = filter(prefix, obj);
34016
+ } else if (obj instanceof Date) {
34017
+ obj = serializeDate(obj);
34018
+ } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
34019
+ obj = utils$1.maybeMap(obj, function (value) {
34020
+ if (value instanceof Date) {
34021
+ return serializeDate(value);
34022
+ }
34023
+ return value;
34024
+ });
34025
+ }
34026
+
34027
+ if (obj === null) {
34028
+ if (strictNullHandling) {
34029
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
34030
+ }
34031
+
34032
+ obj = '';
34033
+ }
34034
+
34035
+ if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
34036
+ if (encoder) {
34037
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
34038
+ return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
34039
+ }
34040
+ return [formatter(prefix) + '=' + formatter(String(obj))];
34041
+ }
34042
+
34043
+ var values = [];
34044
+
34045
+ if (typeof obj === 'undefined') {
34046
+ return values;
34047
+ }
34048
+
34049
+ var objKeys;
34050
+ if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
34051
+ // we need to join elements in
34052
+ if (encodeValuesOnly && encoder) {
34053
+ obj = utils$1.maybeMap(obj, encoder);
34054
+ }
34055
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
34056
+ } else if (isArray$1(filter)) {
34057
+ objKeys = filter;
34058
+ } else {
34059
+ var keys = Object.keys(obj);
34060
+ objKeys = sort ? keys.sort(sort) : keys;
34061
+ }
34062
+
34063
+ var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
34064
+
34065
+ for (var j = 0; j < objKeys.length; ++j) {
34066
+ var key = objKeys[j];
34067
+ var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
34068
+
34069
+ if (skipNulls && value === null) {
34070
+ continue;
34071
+ }
34072
+
34073
+ var keyPrefix = isArray$1(obj)
34074
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
34075
+ : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
34076
+
34077
+ sideChannel.set(object, step);
34078
+ var valueSideChannel = getSideChannel();
34079
+ valueSideChannel.set(sentinel, sideChannel);
34080
+ pushToArray(values, stringify(
34081
+ value,
34082
+ keyPrefix,
34083
+ generateArrayPrefix,
34084
+ commaRoundTrip,
34085
+ strictNullHandling,
34086
+ skipNulls,
34087
+ generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
34088
+ filter,
34089
+ sort,
34090
+ allowDots,
34091
+ serializeDate,
34092
+ format,
34093
+ formatter,
34094
+ encodeValuesOnly,
34095
+ charset,
34096
+ valueSideChannel
34097
+ ));
34098
+ }
34099
+
34100
+ return values;
34101
+ };
34102
+
34103
+ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
34104
+ if (!opts) {
34105
+ return defaults$1;
34106
+ }
34107
+
34108
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
34109
+ throw new TypeError('Encoder has to be a function.');
34110
+ }
34111
+
34112
+ var charset = opts.charset || defaults$1.charset;
34113
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
34114
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
34115
+ }
34116
+
34117
+ var format = formats$1['default'];
34118
+ if (typeof opts.format !== 'undefined') {
34119
+ if (!has$1.call(formats$1.formatters, opts.format)) {
34120
+ throw new TypeError('Unknown format option provided.');
34121
+ }
34122
+ format = opts.format;
34123
+ }
34124
+ var formatter = formats$1.formatters[format];
34125
+
34126
+ var filter = defaults$1.filter;
34127
+ if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
34128
+ filter = opts.filter;
34129
+ }
34130
+
34131
+ return {
34132
+ addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
34133
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
34134
+ charset: charset,
34135
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
34136
+ delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
34137
+ encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
34138
+ encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
34139
+ encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
34140
+ filter: filter,
34141
+ format: format,
34142
+ formatter: formatter,
34143
+ serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
34144
+ skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
34145
+ sort: typeof opts.sort === 'function' ? opts.sort : null,
34146
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
34147
+ };
34148
+ };
34149
+
34150
+ var stringify_1 = function (object, opts) {
34151
+ var obj = object;
34152
+ var options = normalizeStringifyOptions(opts);
34153
+
34154
+ var objKeys;
34155
+ var filter;
34156
+
34157
+ if (typeof options.filter === 'function') {
34158
+ filter = options.filter;
34159
+ obj = filter('', obj);
34160
+ } else if (isArray$1(options.filter)) {
34161
+ filter = options.filter;
34162
+ objKeys = filter;
34163
+ }
34164
+
34165
+ var keys = [];
34166
+
34167
+ if (typeof obj !== 'object' || obj === null) {
34168
+ return '';
34169
+ }
34170
+
34171
+ var arrayFormat;
34172
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
34173
+ arrayFormat = opts.arrayFormat;
34174
+ } else if (opts && 'indices' in opts) {
34175
+ arrayFormat = opts.indices ? 'indices' : 'repeat';
34176
+ } else {
34177
+ arrayFormat = 'indices';
34178
+ }
34179
+
34180
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
34181
+ if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
34182
+ throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
34183
+ }
34184
+ var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
34185
+
34186
+ if (!objKeys) {
34187
+ objKeys = Object.keys(obj);
34188
+ }
34189
+
34190
+ if (options.sort) {
34191
+ objKeys.sort(options.sort);
34192
+ }
34193
+
34194
+ var sideChannel = getSideChannel();
34195
+ for (var i = 0; i < objKeys.length; ++i) {
34196
+ var key = objKeys[i];
34197
+
34198
+ if (options.skipNulls && obj[key] === null) {
34199
+ continue;
34200
+ }
34201
+ pushToArray(keys, stringify$1(
34202
+ obj[key],
34203
+ key,
34204
+ generateArrayPrefix,
34205
+ commaRoundTrip,
34206
+ options.strictNullHandling,
34207
+ options.skipNulls,
34208
+ options.encode ? options.encoder : null,
34209
+ options.filter,
34210
+ options.sort,
34211
+ options.allowDots,
34212
+ options.serializeDate,
34213
+ options.format,
34214
+ options.formatter,
34215
+ options.encodeValuesOnly,
34216
+ options.charset,
34217
+ sideChannel
34218
+ ));
34219
+ }
34220
+
34221
+ var joined = keys.join(options.delimiter);
34222
+ var prefix = options.addQueryPrefix === true ? '?' : '';
34223
+
34224
+ if (options.charsetSentinel) {
34225
+ if (options.charset === 'iso-8859-1') {
34226
+ // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
34227
+ prefix += 'utf8=%26%2310003%3B&';
34228
+ } else {
34229
+ // encodeURIComponent('✓')
34230
+ prefix += 'utf8=%E2%9C%93&';
34231
+ }
34232
+ }
34233
+
34234
+ return joined.length > 0 ? prefix + joined : '';
34235
+ };
34236
+
34237
+ var utils = utils$2;
34238
+
34239
+ var has = Object.prototype.hasOwnProperty;
34240
+ var isArray = Array.isArray;
34241
+
34242
+ var defaults = {
34243
+ allowDots: false,
34244
+ allowPrototypes: false,
34245
+ allowSparse: false,
34246
+ arrayLimit: 20,
34247
+ charset: 'utf-8',
34248
+ charsetSentinel: false,
34249
+ comma: false,
34250
+ decoder: utils.decode,
34251
+ delimiter: '&',
34252
+ depth: 5,
34253
+ ignoreQueryPrefix: false,
34254
+ interpretNumericEntities: false,
34255
+ parameterLimit: 1000,
34256
+ parseArrays: true,
34257
+ plainObjects: false,
34258
+ strictNullHandling: false
34259
+ };
34260
+
34261
+ var interpretNumericEntities = function (str) {
34262
+ return str.replace(/&#(\d+);/g, function ($0, numberStr) {
34263
+ return String.fromCharCode(parseInt(numberStr, 10));
34264
+ });
34265
+ };
34266
+
34267
+ var parseArrayValue = function (val, options) {
34268
+ if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
34269
+ return val.split(',');
34270
+ }
34271
+
34272
+ return val;
34273
+ };
34274
+
34275
+ // This is what browsers will submit when the ✓ character occurs in an
34276
+ // application/x-www-form-urlencoded body and the encoding of the page containing
34277
+ // the form is iso-8859-1, or when the submitted form has an accept-charset
34278
+ // attribute of iso-8859-1. Presumably also with other charsets that do not contain
34279
+ // the ✓ character, such as us-ascii.
34280
+ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
34281
+
34282
+ // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
34283
+ var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
34284
+
34285
+ var parseValues = function parseQueryStringValues(str, options) {
34286
+ var obj = { __proto__: null };
34287
+
34288
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
34289
+ var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
34290
+ var parts = cleanStr.split(options.delimiter, limit);
34291
+ var skipIndex = -1; // Keep track of where the utf8 sentinel was found
34292
+ var i;
34293
+
34294
+ var charset = options.charset;
34295
+ if (options.charsetSentinel) {
34296
+ for (i = 0; i < parts.length; ++i) {
34297
+ if (parts[i].indexOf('utf8=') === 0) {
34298
+ if (parts[i] === charsetSentinel) {
34299
+ charset = 'utf-8';
34300
+ } else if (parts[i] === isoSentinel) {
34301
+ charset = 'iso-8859-1';
34302
+ }
34303
+ skipIndex = i;
34304
+ i = parts.length; // The eslint settings do not allow break;
34305
+ }
34306
+ }
34307
+ }
34308
+
34309
+ for (i = 0; i < parts.length; ++i) {
34310
+ if (i === skipIndex) {
34311
+ continue;
34312
+ }
34313
+ var part = parts[i];
34314
+
34315
+ var bracketEqualsPos = part.indexOf(']=');
34316
+ var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
34317
+
34318
+ var key, val;
34319
+ if (pos === -1) {
34320
+ key = options.decoder(part, defaults.decoder, charset, 'key');
34321
+ val = options.strictNullHandling ? null : '';
34322
+ } else {
34323
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
34324
+ val = utils.maybeMap(
34325
+ parseArrayValue(part.slice(pos + 1), options),
34326
+ function (encodedVal) {
34327
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
34328
+ }
34329
+ );
34330
+ }
34331
+
34332
+ if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
34333
+ val = interpretNumericEntities(val);
34334
+ }
34335
+
34336
+ if (part.indexOf('[]=') > -1) {
34337
+ val = isArray(val) ? [val] : val;
34338
+ }
34339
+
34340
+ if (has.call(obj, key)) {
34341
+ obj[key] = utils.combine(obj[key], val);
34342
+ } else {
34343
+ obj[key] = val;
34344
+ }
34345
+ }
34346
+
34347
+ return obj;
34348
+ };
34349
+
34350
+ var parseObject = function (chain, val, options, valuesParsed) {
34351
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
34352
+
34353
+ for (var i = chain.length - 1; i >= 0; --i) {
34354
+ var obj;
34355
+ var root = chain[i];
34356
+
34357
+ if (root === '[]' && options.parseArrays) {
34358
+ obj = [].concat(leaf);
34359
+ } else {
34360
+ obj = options.plainObjects ? Object.create(null) : {};
34361
+ var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
34362
+ var index = parseInt(cleanRoot, 10);
34363
+ if (!options.parseArrays && cleanRoot === '') {
34364
+ obj = { 0: leaf };
34365
+ } else if (
34366
+ !isNaN(index)
34367
+ && root !== cleanRoot
34368
+ && String(index) === cleanRoot
34369
+ && index >= 0
34370
+ && (options.parseArrays && index <= options.arrayLimit)
34371
+ ) {
34372
+ obj = [];
34373
+ obj[index] = leaf;
34374
+ } else if (cleanRoot !== '__proto__') {
34375
+ obj[cleanRoot] = leaf;
34376
+ }
34377
+ }
34378
+
34379
+ leaf = obj;
34380
+ }
34381
+
34382
+ return leaf;
34383
+ };
34384
+
34385
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
34386
+ if (!givenKey) {
34387
+ return;
34388
+ }
34389
+
34390
+ // Transform dot notation to bracket notation
34391
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
34392
+
34393
+ // The regex chunks
34394
+
34395
+ var brackets = /(\[[^[\]]*])/;
34396
+ var child = /(\[[^[\]]*])/g;
34397
+
34398
+ // Get the parent
34399
+
34400
+ var segment = options.depth > 0 && brackets.exec(key);
34401
+ var parent = segment ? key.slice(0, segment.index) : key;
34402
+
34403
+ // Stash the parent if it exists
34404
+
34405
+ var keys = [];
34406
+ if (parent) {
34407
+ // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
34408
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
34409
+ if (!options.allowPrototypes) {
34410
+ return;
34411
+ }
34412
+ }
34413
+
34414
+ keys.push(parent);
34415
+ }
34416
+
34417
+ // Loop through children appending to the array until we hit depth
34418
+
34419
+ var i = 0;
34420
+ while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
34421
+ i += 1;
34422
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
34423
+ if (!options.allowPrototypes) {
34424
+ return;
34425
+ }
34426
+ }
34427
+ keys.push(segment[1]);
34428
+ }
34429
+
34430
+ // If there's a remainder, just add whatever is left
34431
+
34432
+ if (segment) {
34433
+ keys.push('[' + key.slice(segment.index) + ']');
34434
+ }
34435
+
34436
+ return parseObject(keys, val, options, valuesParsed);
34437
+ };
34438
+
34439
+ var normalizeParseOptions = function normalizeParseOptions(opts) {
34440
+ if (!opts) {
34441
+ return defaults;
34442
+ }
34443
+
34444
+ if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
34445
+ throw new TypeError('Decoder has to be a function.');
34446
+ }
34447
+
34448
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
34449
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
34450
+ }
34451
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
34452
+
34453
+ return {
34454
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
34455
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
34456
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
34457
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
34458
+ charset: charset,
34459
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
34460
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
34461
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
34462
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
34463
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
34464
+ depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
34465
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
34466
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
34467
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
34468
+ parseArrays: opts.parseArrays !== false,
34469
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
34470
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
34471
+ };
34472
+ };
34473
+
34474
+ var parse$1 = function (str, opts) {
34475
+ var options = normalizeParseOptions(opts);
34476
+
34477
+ if (str === '' || str === null || typeof str === 'undefined') {
34478
+ return options.plainObjects ? Object.create(null) : {};
34479
+ }
34480
+
34481
+ var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
34482
+ var obj = options.plainObjects ? Object.create(null) : {};
34483
+
34484
+ // Iterate over the keys and setup the new object
34485
+
34486
+ var keys = Object.keys(tempObj);
34487
+ for (var i = 0; i < keys.length; ++i) {
34488
+ var key = keys[i];
34489
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
34490
+ obj = utils.merge(obj, newObj, options);
34491
+ }
34492
+
34493
+ if (options.allowSparse === true) {
34494
+ return obj;
34495
+ }
34496
+
34497
+ return utils.compact(obj);
34498
+ };
34499
+
34500
+ var stringify = stringify_1;
34501
+ var parse = parse$1;
34502
+ var formats = formats$3;
34503
+
34504
+ var lib = {
34505
+ formats: formats,
34506
+ parse: parse,
34507
+ stringify: stringify
34508
+ };
34509
+
34510
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
34511
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
34512
+ var matchesImpl = function matchesImpl(pattern, object) {
34513
+ var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
34514
+ if (object === pattern) return true;
34515
+ if (typeof pattern === "function" && pattern(object, __parent)) return true;
34516
+ if (isNil(pattern) || isNil(object)) return false;
34517
+ if (_typeof$6(pattern) !== "object") return false;
34518
+ return Object.entries(pattern).every(function (_ref) {
34519
+ var _ref2 = _slicedToArray$2(_ref, 2),
34520
+ key = _ref2[0],
34521
+ value = _ref2[1];
34522
+ return matchesImpl(value, object[key], __parent);
34523
+ });
34524
+ };
34525
+ var matches = /*#__PURE__*/curry(function (pattern, object) {
34526
+ return matchesImpl(pattern, object);
34527
+ });
34528
+ var transformObjectDeep = function transformObjectDeep(object, keyValueTransformer) {
34529
+ var objectPreProcessor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
34530
+ if (objectPreProcessor && typeof objectPreProcessor === "function") {
34531
+ object = objectPreProcessor(object);
34532
+ }
34533
+ if (Array.isArray(object)) {
34534
+ return object.map(function (obj) {
34535
+ return transformObjectDeep(obj, keyValueTransformer, objectPreProcessor);
34536
+ });
34537
+ } else if (object === null || _typeof$6(object) !== "object") {
34538
+ return object;
34539
+ }
34540
+ return Object.fromEntries(Object.entries(object).map(function (_ref3) {
34541
+ var _ref4 = _slicedToArray$2(_ref3, 2),
34542
+ key = _ref4[0],
34543
+ value = _ref4[1];
34544
+ return keyValueTransformer(key, transformObjectDeep(value, keyValueTransformer, objectPreProcessor));
34545
+ }));
34546
+ };
34547
+ var preprocessForSerialization = function preprocessForSerialization(object) {
34548
+ return transformObjectDeep(object, function (key, value) {
34549
+ return [key, value];
34550
+ }, function (object) {
34551
+ return typeof (object === null || object === void 0 ? void 0 : object.toJSON) === "function" ? object.toJSON() : object;
34552
+ });
34553
+ };
34554
+ var getQueryParams = function getQueryParams() {
34555
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
34556
+ return lib.parse(location.search, _objectSpread$2({
34557
+ ignoreQueryPrefix: true
34558
+ }, options));
34559
+ };
34560
+ var modifyBy = /*#__PURE__*/curry(function (pattern, modifier, array) {
34561
+ return array.map(function (item) {
34562
+ return matches(pattern, item) ? modifier(item) : item;
34563
+ });
34564
+ });
34565
+ var snakeToCamelCase = function snakeToCamelCase(string) {
34566
+ return string.replace(/(_\w)/g, function (letter) {
34567
+ return letter[1].toUpperCase();
34568
+ });
34569
+ };
34570
+ var camelToSnakeCase = function camelToSnakeCase(string) {
34571
+ return string.replace(/[A-Z]/g, function (letter) {
34572
+ return "_".concat(letter.toLowerCase());
34573
+ });
34574
+ };
34575
+ var buildUrl = function buildUrl(route, params) {
34576
+ var placeHolders = [];
34577
+ toPairs(params).forEach(function (_ref5) {
34578
+ var _ref6 = _slicedToArray$2(_ref5, 2),
34579
+ key = _ref6[0],
34580
+ value = _ref6[1];
34581
+ if (route.includes(":".concat(key))) {
34582
+ placeHolders.push(key);
34583
+ route = route.replace(":".concat(key), encodeURIComponent(value));
34584
+ }
34585
+ });
34586
+ var queryParams = pipe$1(omit(placeHolders), preprocessForSerialization, lib.stringify)(params);
34587
+ return isEmpty(queryParams) ? route : "".concat(route, "?").concat(queryParams);
34588
+ };
34589
+
34590
+ var useTableSort = function useTableSort() {
34591
+ var queryParams = getQueryParams();
34592
+ var history = reactRouterDom.useHistory();
34593
+ var handleTableChange = function handleTableChange(pagination, sorter) {
34594
+ var params = {
34595
+ sort_by: sorter.order && camelToSnakeCase(sorter.field),
34596
+ order_by: URL_SORT_ORDERS[sorter.order],
34597
+ page: pagination.current,
34598
+ page_size: pagination.pageSize
34599
+ };
34600
+ var pathname = window.location.pathname;
34601
+ history.push(buildUrl(pathname, mergeLeft(params, queryParams)));
34602
+ };
34603
+ return {
34604
+ handleTableChange: handleTableChange
34605
+ };
34606
+ };
34607
+
34608
+ var _excluded$4 = ["allowRowClick", "enableColumnResize", "enableColumnReorder", "className", "columnData", "currentPageNumber", "defaultPageSize", "handlePageChange", "loading", "onRowClick", "onRowSelect", "rowData", "totalCount", "selectedRowKeys", "fixedHeight", "paginationProps", "scroll", "rowSelection", "shouldDynamicallyRenderRowSize", "bordered", "onColumnUpdate", "components", "preserveTableStateInQuery"];
34609
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
34610
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
34611
+ var TABLE_PAGINATION_HEIGHT = 64;
34612
+ var TABLE_DEFAULT_HEADER_HEIGHT = 40;
34613
+ var TABLE_ROW_HEIGHT = 52;
34614
+ var Table = function Table(_ref) {
34615
+ var _ref$allowRowClick = _ref.allowRowClick,
34616
+ allowRowClick = _ref$allowRowClick === void 0 ? true : _ref$allowRowClick,
34617
+ _ref$enableColumnResi = _ref.enableColumnResize,
34618
+ enableColumnResize = _ref$enableColumnResi === void 0 ? false : _ref$enableColumnResi,
34619
+ _ref$enableColumnReor = _ref.enableColumnReorder,
34620
+ enableColumnReorder = _ref$enableColumnReor === void 0 ? false : _ref$enableColumnReor,
34621
+ _ref$className = _ref.className,
34622
+ className = _ref$className === void 0 ? "" : _ref$className,
34623
+ _ref$columnData = _ref.columnData,
34624
+ columnData = _ref$columnData === void 0 ? [] : _ref$columnData,
34625
+ _ref$currentPageNumbe = _ref.currentPageNumber,
34626
+ currentPageNumber = _ref$currentPageNumbe === void 0 ? 1 : _ref$currentPageNumbe,
34627
+ _ref$defaultPageSize = _ref.defaultPageSize,
34628
+ defaultPageSize = _ref$defaultPageSize === void 0 ? 30 : _ref$defaultPageSize,
34629
+ _ref$handlePageChange = _ref.handlePageChange,
34630
+ handlePageChange = _ref$handlePageChange === void 0 ? noop$2 : _ref$handlePageChange,
34631
+ _ref$loading = _ref.loading,
34632
+ loading = _ref$loading === void 0 ? false : _ref$loading,
34633
+ onRowClick = _ref.onRowClick,
34634
+ onRowSelect = _ref.onRowSelect,
34635
+ _ref$rowData = _ref.rowData,
34636
+ rowData = _ref$rowData === void 0 ? [] : _ref$rowData,
34637
+ _ref$totalCount = _ref.totalCount,
34638
+ totalCount = _ref$totalCount === void 0 ? 0 : _ref$totalCount,
34639
+ _ref$selectedRowKeys = _ref.selectedRowKeys,
34640
+ selectedRowKeys = _ref$selectedRowKeys === void 0 ? [] : _ref$selectedRowKeys,
34641
+ _ref$fixedHeight = _ref.fixedHeight,
34642
+ fixedHeight = _ref$fixedHeight === void 0 ? false : _ref$fixedHeight,
34643
+ _ref$paginationProps = _ref.paginationProps,
34644
+ paginationProps = _ref$paginationProps === void 0 ? {} : _ref$paginationProps,
34645
+ scroll = _ref.scroll,
34646
+ rowSelection = _ref.rowSelection,
34647
+ _ref$shouldDynamicall = _ref.shouldDynamicallyRenderRowSize,
34648
+ shouldDynamicallyRenderRowSize = _ref$shouldDynamicall === void 0 ? false : _ref$shouldDynamicall,
34649
+ _ref$bordered = _ref.bordered,
34650
+ bordered = _ref$bordered === void 0 ? true : _ref$bordered,
34651
+ _ref$onColumnUpdate = _ref.onColumnUpdate,
34652
+ onColumnUpdate = _ref$onColumnUpdate === void 0 ? noop$2 : _ref$onColumnUpdate,
34653
+ _ref$components = _ref.components,
34654
+ components = _ref$components === void 0 ? {} : _ref$components,
34655
+ _ref$preserveTableSta = _ref.preserveTableStateInQuery,
34656
+ preserveTableStateInQuery = _ref$preserveTableSta === void 0 ? false : _ref$preserveTableSta,
34657
+ otherProps = _objectWithoutProperties$1(_ref, _excluded$4);
34658
+ var _useState = React$5.useState(null),
34659
+ _useState2 = _slicedToArray$2(_useState, 2),
34660
+ containerHeight = _useState2[0],
34661
+ setContainerHeight = _useState2[1];
34662
+ var _useState3 = React$5.useState(TABLE_DEFAULT_HEADER_HEIGHT),
34663
+ _useState4 = _slicedToArray$2(_useState3, 2),
34664
+ headerHeight = _useState4[0],
34665
+ setHeaderHeight = _useState4[1];
34666
+ var _useState5 = React$5.useState(columnData),
34667
+ _useState6 = _slicedToArray$2(_useState5, 2),
34668
+ columns = _useState6[0],
34669
+ setColumns = _useState6[1];
34670
+ var headerRef = React$5.useRef();
34671
+ var resizeObserver = React$5.useRef(new ResizeObserver(function (_ref2) {
34672
+ var _ref3 = _slicedToArray$2(_ref2, 1),
34673
+ height = _ref3[0].contentRect.height;
34674
+ return setContainerHeight(height);
34675
+ }));
34676
+ var tableRef = React$5.useCallback(function (table) {
34677
+ if (fixedHeight) {
34678
+ if (table !== null) {
34679
+ resizeObserver.current.observe(table === null || table === void 0 ? void 0 : table.parentNode);
34680
+ } else {
34681
+ if (resizeObserver.current) resizeObserver.current.disconnect();
34682
+ }
34683
+ }
34684
+ }, [resizeObserver.current, fixedHeight]);
34685
+ var handleHeaderClasses = function handleHeaderClasses() {
34686
+ var _headerRef$current;
34687
+ Object.values((_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.children).forEach(function (child) {
34688
+ child.setAttribute("data-text-align", child.style["text-align"]);
34689
+ });
34690
+ };
34691
+ useTimeout(function () {
34692
+ var headerHeight = headerRef.current ? headerRef.current.offsetHeight : TABLE_DEFAULT_HEADER_HEIGHT;
34693
+ setHeaderHeight(headerHeight);
34694
+ handleHeaderClasses();
34695
+ }, 0);
34696
+ var _useReorderColumns = useReorderColumns({
34697
+ isEnabled: enableColumnReorder,
34698
+ columns: columns,
34699
+ setColumns: setColumns,
34700
+ onColumnUpdate: onColumnUpdate,
34701
+ rowSelection: rowSelection
34702
+ }),
34703
+ dragProps = _useReorderColumns.dragProps,
34704
+ columnsWithReorderProps = _useReorderColumns.columns;
34705
+ var _useResizableColumns = useResizableColumns({
34706
+ isEnabled: enableColumnResize,
34707
+ columns: columnsWithReorderProps,
34708
+ setColumns: setColumns,
34709
+ onColumnUpdate: onColumnUpdate
34710
+ }),
34711
+ curatedColumnsData = _useResizableColumns.columns;
34712
+ var _useTableSort = useTableSort(),
34713
+ handleTableChange = _useTableSort.handleTableChange;
34714
+ var queryParams = getQueryParams();
34715
+ var setSortFromURL = function setSortFromURL(columnData) {
34716
+ var _queryParams$sort_by;
34717
+ return modifyBy({
34718
+ dataIndex: snakeToCamelCase((_queryParams$sort_by = queryParams.sort_by) !== null && _queryParams$sort_by !== void 0 ? _queryParams$sort_by : "")
34719
+ }, assoc("sortOrder", TABLE_SORT_ORDERS[queryParams.order_by]), columnData);
34720
+ };
34721
+ var sortedColumns = preserveTableStateInQuery ? setSortFromURL(curatedColumnsData) : curatedColumnsData;
34722
+ var locale = {
34723
+ emptyText: /*#__PURE__*/React__default["default"].createElement(Typography, {
34724
+ style: "body2"
34725
+ }, "No Data")
34726
+ };
34727
+ var isPaginationVisible = rowData.length > defaultPageSize;
34728
+ var rowSelectionProps = false;
34729
+ if (rowSelection) {
34730
+ rowSelectionProps = _objectSpread$1(_objectSpread$1({
34731
+ type: "checkbox"
34732
+ }, rowSelection), {}, {
34733
+ onChange: function onChange(selectedRowKeys, selectedRows) {
34734
+ return onRowSelect && onRowSelect(selectedRowKeys, selectedRows);
34735
+ },
34736
+ selectedRowKeys: selectedRowKeys
34737
+ });
34738
+ }
34739
+ var reordableHeader = {
34740
+ header: {
34741
+ cell: enableColumnResize ? enableColumnReorder ? HeaderCell : ResizableHeaderCell : enableColumnReorder ? ReorderableHeaderCell : null
34742
+ }
34743
+ };
34744
+ var componentOverrides = _objectSpread$1(_objectSpread$1({}, components), reordableHeader);
34745
+ var calculateTableContainerHeight = function calculateTableContainerHeight() {
34746
+ return containerHeight - headerHeight - (isPaginationVisible ? TABLE_PAGINATION_HEIGHT : 0);
34747
+ };
34748
+ var itemRender = function itemRender(_, type, originalElement) {
34749
+ if (type === "prev") {
34750
+ return /*#__PURE__*/React__default["default"].createElement(Button, {
34751
+ className: "",
34752
+ icon: neetoIcons.Left,
34753
+ style: "text"
34754
+ });
34755
+ }
34756
+ if (type === "next") {
34757
+ return /*#__PURE__*/React__default["default"].createElement(Button, {
34758
+ className: "",
34759
+ icon: neetoIcons.Right,
34760
+ style: "text"
34761
+ });
34762
+ }
34763
+ if (type === "jump-prev") {
34764
+ return /*#__PURE__*/React__default["default"].createElement(Button, {
34765
+ className: "",
34766
+ icon: neetoIcons.MenuHorizontal,
34767
+ style: "text"
34768
+ });
34769
+ }
34770
+ if (type === "jump-next") {
34771
+ return /*#__PURE__*/React__default["default"].createElement(Button, {
34772
+ className: "",
34773
+ icon: neetoIcons.MenuHorizontal,
34774
+ style: "text"
34775
+ });
34776
+ }
34777
+ return originalElement;
34778
+ };
34779
+ var calculateRowsPerPage = function calculateRowsPerPage() {
34780
+ var viewportHeight = window.innerHeight;
34781
+ var rowsPerPage = Math.floor((viewportHeight - TABLE_PAGINATION_HEIGHT) / TABLE_ROW_HEIGHT * 3);
34782
+ return Math.ceil(rowsPerPage / 10) * 10;
34783
+ };
34784
+ var calculatePageSizeOptions = function calculatePageSizeOptions() {
34785
+ var rowsPerPage = shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize;
34786
+ var pageSizeOptions = _toConsumableArray$1(Array(5).keys()).map(function (i) {
34787
+ return (i + 1) * rowsPerPage;
34788
+ });
34789
+ return pageSizeOptions;
34790
+ };
34791
+ var renderTable = function renderTable() {
34792
+ return /*#__PURE__*/React__default["default"].createElement(_Table__default["default"], _extends$4({
34793
+ bordered: bordered,
34794
+ columns: sortedColumns,
34795
+ components: componentOverrides,
34796
+ dataSource: rowData,
34797
+ loading: loading,
34798
+ locale: locale,
34799
+ ref: tableRef,
34800
+ rowKey: "id",
34801
+ rowSelection: rowSelectionProps,
34802
+ showSorterTooltip: false,
34803
+ pagination: _objectSpread$1(_objectSpread$1({
34804
+ hideOnSinglePage: true
34805
+ }, paginationProps), {}, {
34806
+ showSizeChanger: false,
34807
+ total: totalCount !== null && totalCount !== void 0 ? totalCount : 0,
34808
+ current: currentPageNumber,
34809
+ defaultPageSize: shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize,
34810
+ pageSizeOptions: calculatePageSizeOptions(),
34811
+ onChange: handlePageChange,
34812
+ itemRender: itemRender
34813
+ }),
34814
+ rowClassName: classnames$1("neeto-ui-table--row", {
34815
+ "neeto-ui-table--row_hover": allowRowClick
34816
+ }, [className]),
34817
+ scroll: _objectSpread$1({
34818
+ x: "max-content",
34819
+ y: calculateTableContainerHeight()
34820
+ }, scroll),
34821
+ onChange: function onChange(pagination, _, sorter) {
34822
+ handleHeaderClasses();
34823
+ preserveTableStateInQuery && handleTableChange(pagination, sorter);
34824
+ },
32254
34825
  onHeaderRow: function onHeaderRow() {
32255
34826
  return {
32256
34827
  ref: headerRef,