@moda/om 19.4.1 → 19.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -343,6 +343,7 @@ colors.colors = {
343
343
  "teal": "rgb(0, 111, 98)",
344
344
  "ivory": "rgb(242, 233, 219)",
345
345
  "klein-blue": "rgb(38, 48, 120)",
346
+ "persian-blue": "rgb(30, 34, 170)",
346
347
  "brick": "rgb(147, 58, 32)",
347
348
  "goldenrod": "rgb(186, 145, 46)",
348
349
  "seafoam": "rgb(177, 191, 170)",
@@ -368,6 +369,7 @@ colors.colors = {
368
369
  },
369
370
  "global": {
370
371
  "klein-blue": "rgb(38, 48, 120)",
372
+ "persian-blue": "rgb(30, 34, 170)",
371
373
  "brick": "rgb(147, 58, 32)",
372
374
  "goldenrod": "rgb(186, 145, 46)",
373
375
  "seafoam": "rgb(177, 191, 170)",
@@ -1019,6 +1021,85 @@ var colorStringExports = colorString.exports;
1019
1021
  __exportStar(helpers, exports);
1020
1022
  })(dist$4);
1021
1023
 
1024
+ function _arrayLikeToArray(r, a) {
1025
+ (null == a || a > r.length) && (a = r.length);
1026
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1027
+ return n;
1028
+ }
1029
+ function _arrayWithHoles(r) {
1030
+ if (Array.isArray(r)) return r;
1031
+ }
1032
+ function _arrayWithoutHoles(r) {
1033
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
1034
+ }
1035
+ function _createForOfIteratorHelper(r, e) {
1036
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1037
+ if (!t) {
1038
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e ) {
1039
+ t && (r = t);
1040
+ var n = 0,
1041
+ F = function () {};
1042
+ return {
1043
+ s: F,
1044
+ n: function () {
1045
+ return n >= r.length ? {
1046
+ done: !0
1047
+ } : {
1048
+ done: !1,
1049
+ value: r[n++]
1050
+ };
1051
+ },
1052
+ e: function (r) {
1053
+ throw r;
1054
+ },
1055
+ f: F
1056
+ };
1057
+ }
1058
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1059
+ }
1060
+ var o,
1061
+ a = !0,
1062
+ u = !1;
1063
+ return {
1064
+ s: function () {
1065
+ t = t.call(r);
1066
+ },
1067
+ n: function () {
1068
+ var r = t.next();
1069
+ return a = r.done, r;
1070
+ },
1071
+ e: function (r) {
1072
+ u = !0, o = r;
1073
+ },
1074
+ f: function () {
1075
+ try {
1076
+ a || null == t.return || t.return();
1077
+ } finally {
1078
+ if (u) throw o;
1079
+ }
1080
+ }
1081
+ };
1082
+ }
1083
+ function _defineProperty$1(e, r, t) {
1084
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
1085
+ value: t,
1086
+ enumerable: !0,
1087
+ configurable: !0,
1088
+ writable: !0
1089
+ }) : e[r] = t, e;
1090
+ }
1091
+ function _extends$1() {
1092
+ return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
1093
+ for (var e = 1; e < arguments.length; e++) {
1094
+ var t = arguments[e];
1095
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1096
+ }
1097
+ return n;
1098
+ }, _extends$1.apply(null, arguments);
1099
+ }
1100
+ function _iterableToArray(r) {
1101
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
1102
+ }
1022
1103
  function _iterableToArrayLimit(r, l) {
1023
1104
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1024
1105
  if (null != t) {
@@ -1046,6 +1127,15 @@ function _iterableToArrayLimit(r, l) {
1046
1127
  return a;
1047
1128
  }
1048
1129
  }
1130
+ function _nonIterableRest() {
1131
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1132
+ }
1133
+ function _nonIterableSpread() {
1134
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1135
+ }
1136
+ function _objectDestructuringEmpty(t) {
1137
+ if (null == t) throw new TypeError("Cannot destructure " + t);
1138
+ }
1049
1139
  function ownKeys(e, r) {
1050
1140
  var t = Object.keys(e);
1051
1141
  if (Object.getOwnPropertySymbols) {
@@ -1067,6 +1157,32 @@ function _objectSpread2(e) {
1067
1157
  }
1068
1158
  return e;
1069
1159
  }
1160
+ function _objectWithoutProperties(e, t) {
1161
+ if (null == e) return {};
1162
+ var o,
1163
+ r,
1164
+ i = _objectWithoutPropertiesLoose(e, t);
1165
+ if (Object.getOwnPropertySymbols) {
1166
+ var n = Object.getOwnPropertySymbols(e);
1167
+ for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
1168
+ }
1169
+ return i;
1170
+ }
1171
+ function _objectWithoutPropertiesLoose(r, e) {
1172
+ if (null == r) return {};
1173
+ var t = {};
1174
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1175
+ if (e.indexOf(n) >= 0) continue;
1176
+ t[n] = r[n];
1177
+ }
1178
+ return t;
1179
+ }
1180
+ function _slicedToArray(r, e) {
1181
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
1182
+ }
1183
+ function _toConsumableArray(r) {
1184
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
1185
+ }
1070
1186
  function _toPrimitive(t, r) {
1071
1187
  if ("object" != typeof t || !t) return t;
1072
1188
  var e = t[Symbol.toPrimitive];
@@ -1090,148 +1206,12 @@ function _typeof$1(o) {
1090
1206
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1091
1207
  }, _typeof$1(o);
1092
1208
  }
1093
- function _defineProperty$1(obj, key, value) {
1094
- key = _toPropertyKey(key);
1095
- if (key in obj) {
1096
- Object.defineProperty(obj, key, {
1097
- value: value,
1098
- enumerable: true,
1099
- configurable: true,
1100
- writable: true
1101
- });
1102
- } else {
1103
- obj[key] = value;
1104
- }
1105
- return obj;
1106
- }
1107
- function _extends$1() {
1108
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
1109
- for (var i = 1; i < arguments.length; i++) {
1110
- var source = arguments[i];
1111
- for (var key in source) {
1112
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1113
- target[key] = source[key];
1114
- }
1115
- }
1116
- }
1117
- return target;
1118
- };
1119
- return _extends$1.apply(this, arguments);
1120
- }
1121
- function _objectDestructuringEmpty(obj) {
1122
- if (obj == null) throw new TypeError("Cannot destructure " + obj);
1123
- }
1124
- function _objectWithoutPropertiesLoose(source, excluded) {
1125
- if (source == null) return {};
1126
- var target = {};
1127
- var sourceKeys = Object.keys(source);
1128
- var key, i;
1129
- for (i = 0; i < sourceKeys.length; i++) {
1130
- key = sourceKeys[i];
1131
- if (excluded.indexOf(key) >= 0) continue;
1132
- target[key] = source[key];
1133
- }
1134
- return target;
1135
- }
1136
- function _objectWithoutProperties(source, excluded) {
1137
- if (source == null) return {};
1138
- var target = _objectWithoutPropertiesLoose(source, excluded);
1139
- var key, i;
1140
- if (Object.getOwnPropertySymbols) {
1141
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1142
- for (i = 0; i < sourceSymbolKeys.length; i++) {
1143
- key = sourceSymbolKeys[i];
1144
- if (excluded.indexOf(key) >= 0) continue;
1145
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1146
- target[key] = source[key];
1147
- }
1209
+ function _unsupportedIterableToArray(r, a) {
1210
+ if (r) {
1211
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
1212
+ var t = {}.toString.call(r).slice(8, -1);
1213
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
1148
1214
  }
1149
- return target;
1150
- }
1151
- function _slicedToArray(arr, i) {
1152
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1153
- }
1154
- function _toConsumableArray(arr) {
1155
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1156
- }
1157
- function _arrayWithoutHoles(arr) {
1158
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1159
- }
1160
- function _arrayWithHoles(arr) {
1161
- if (Array.isArray(arr)) return arr;
1162
- }
1163
- function _iterableToArray(iter) {
1164
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1165
- }
1166
- function _unsupportedIterableToArray(o, minLen) {
1167
- if (!o) return;
1168
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1169
- var n = Object.prototype.toString.call(o).slice(8, -1);
1170
- if (n === "Object" && o.constructor) n = o.constructor.name;
1171
- if (n === "Map" || n === "Set") return Array.from(o);
1172
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1173
- }
1174
- function _arrayLikeToArray(arr, len) {
1175
- if (len == null || len > arr.length) len = arr.length;
1176
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1177
- return arr2;
1178
- }
1179
- function _nonIterableSpread() {
1180
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1181
- }
1182
- function _nonIterableRest() {
1183
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1184
- }
1185
- function _createForOfIteratorHelper(o, allowArrayLike) {
1186
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
1187
- if (!it) {
1188
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
1189
- if (it) o = it;
1190
- var i = 0;
1191
- var F = function () {};
1192
- return {
1193
- s: F,
1194
- n: function () {
1195
- if (i >= o.length) return {
1196
- done: true
1197
- };
1198
- return {
1199
- done: false,
1200
- value: o[i++]
1201
- };
1202
- },
1203
- e: function (e) {
1204
- throw e;
1205
- },
1206
- f: F
1207
- };
1208
- }
1209
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1210
- }
1211
- var normalCompletion = true,
1212
- didErr = false,
1213
- err;
1214
- return {
1215
- s: function () {
1216
- it = it.call(o);
1217
- },
1218
- n: function () {
1219
- var step = it.next();
1220
- normalCompletion = step.done;
1221
- return step;
1222
- },
1223
- e: function (e) {
1224
- didErr = true;
1225
- err = e;
1226
- },
1227
- f: function () {
1228
- try {
1229
- if (!normalCompletion && it.return != null) it.return();
1230
- } finally {
1231
- if (didErr) throw err;
1232
- }
1233
- }
1234
- };
1235
1215
  }
1236
1216
 
1237
1217
  var isRenderProps = function isRenderProps(children) {
@@ -1544,6 +1524,7 @@ function useCallbackRef(initialValue, callback) {
1544
1524
  return ref.facade;
1545
1525
  }
1546
1526
 
1527
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React__namespace.useLayoutEffect : React__namespace.useEffect;
1547
1528
  var currentValues = new WeakMap();
1548
1529
  /**
1549
1530
  * Merges two or more refs together providing a single interface to set their value
@@ -1560,13 +1541,13 @@ var currentValues = new WeakMap();
1560
1541
  * }
1561
1542
  */
1562
1543
  function useMergeRefs(refs, defaultValue) {
1563
- var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {
1544
+ var callbackRef = useCallbackRef(null, function (newValue) {
1564
1545
  return refs.forEach(function (ref) {
1565
1546
  return assignRef(ref, newValue);
1566
1547
  });
1567
1548
  });
1568
1549
  // handle refs changes - added or removed
1569
- React__namespace.useLayoutEffect(function () {
1550
+ useIsomorphicLayoutEffect(function () {
1570
1551
  var oldValue = currentValues.get(callbackRef);
1571
1552
  if (oldValue) {
1572
1553
  var prevRefs_1 = new Set(oldValue);
@@ -3125,7 +3106,6 @@ FocusLock.propTypes = process.env.NODE_ENV !== "production" ? {
3125
3106
  onDeactivation: propTypesExports.func,
3126
3107
  sideCar: propTypesExports.any.isRequired
3127
3108
  } : {};
3128
- var FocusLockUI = FocusLock;
3129
3109
 
3130
3110
  function deferAction(action) {
3131
3111
  setTimeout(action, 1);
@@ -3180,7 +3160,7 @@ var FocusOn$1 = /*#__PURE__*/React__namespace.forwardRef(function (props, parent
3180
3160
  inert: inert,
3181
3161
  enabled: enabled && scrollLock
3182
3162
  });
3183
- return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(FocusLockUI, {
3163
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(FocusLock, {
3184
3164
  ref: parentRef,
3185
3165
  sideCar: sideCar,
3186
3166
  disabled: !(lockProps && enabled && focusLock),
@@ -4067,6 +4047,13 @@ var moveFocusInside = function moveFocusInside(topNode, lastNode, options) {
4067
4047
 
4068
4048
  function weakRef(value) {
4069
4049
  if (!value) return null;
4050
+ // #68 Safari 14.1 dont have it yet
4051
+ // FIXME: remove in 2025
4052
+ if (typeof WeakRef === 'undefined') {
4053
+ return function () {
4054
+ return value || null;
4055
+ };
4056
+ }
4070
4057
  var w = value ? new WeakRef(value) : null;
4071
4058
  return function () {
4072
4059
  return (w === null || w === void 0 ? void 0 : w.deref()) || null;
@@ -4782,9 +4769,9 @@ var handleScroll = function handleScroll(axis, endTarget, event, sourceDelta, no
4782
4769
  // self content
4783
4770
  targetInLock && (endTarget.contains(target) || endTarget === target));
4784
4771
  // handle epsilon around 0 (non standard zoom levels)
4785
- if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) {
4772
+ if (isDeltaPositive && (Math.abs(availableScroll) < 1 || !noOverscroll )) {
4786
4773
  shouldCancelScroll = true;
4787
- } else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) {
4774
+ } else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || !noOverscroll )) {
4788
4775
  shouldCancelScroll = true;
4789
4776
  }
4790
4777
  return shouldCancelScroll;
@@ -5085,9 +5072,6 @@ var applyAttributeToOthers = function applyAttributeToOthers(originalTarget, par
5085
5072
  * @return {Undo} undo command
5086
5073
  */
5087
5074
  var hideOthers = function hideOthers(originalTarget, parentNode, markerName) {
5088
- if (markerName === void 0) {
5089
- markerName = 'data-aria-hidden';
5090
- }
5091
5075
  var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
5092
5076
  var activeParentNode = parentNode || getDefaultParent(originalTarget);
5093
5077
  if (!activeParentNode) {
@@ -5514,10 +5498,13 @@ var Breadcrumb = function Breadcrumb(_ref) {
5514
5498
  var T = function T() {
5515
5499
  return true;
5516
5500
  };
5517
- var otherwise = T;
5501
+
5502
+ var _placeholder = {
5503
+ '@@functional/placeholder': true
5504
+ };
5518
5505
 
5519
5506
  function _isPlaceholder(a) {
5520
- return a != null && _typeof$1(a) === 'object' && a['@@functional/placeholder'] === true;
5507
+ return a === _placeholder;
5521
5508
  }
5522
5509
 
5523
5510
  /**
@@ -5528,7 +5515,6 @@ function _isPlaceholder(a) {
5528
5515
  * @param {Function} fn The function to curry.
5529
5516
  * @return {Function} The curried function.
5530
5517
  */
5531
-
5532
5518
  function _curry1(fn) {
5533
5519
  return function f1(a) {
5534
5520
  if (arguments.length === 0 || _isPlaceholder(a)) {
@@ -5547,7 +5533,6 @@ function _curry1(fn) {
5547
5533
  * @param {Function} fn The function to curry.
5548
5534
  * @return {Function} The curried function.
5549
5535
  */
5550
-
5551
5536
  function _curry2(fn) {
5552
5537
  return function f2(a, b) {
5553
5538
  switch (arguments.length) {
@@ -5629,7 +5614,6 @@ function _arity(n, fn) {
5629
5614
  * @param {Function} fn The function to curry.
5630
5615
  * @return {Function} The curried function.
5631
5616
  */
5632
-
5633
5617
  function _curryN(length, received, fn) {
5634
5618
  return function () {
5635
5619
  var combined = [];
@@ -5699,9 +5683,7 @@ function _curryN(length, received, fn) {
5699
5683
  * const g = f(3);
5700
5684
  * g(4); //=> 10
5701
5685
  */
5702
-
5703
- var curryN = /*#__PURE__*/
5704
- _curry2(function curryN(length, fn) {
5686
+ var curryN = /*#__PURE__*/_curry2(function curryN(length, fn) {
5705
5687
  if (length === 1) {
5706
5688
  return _curry1(fn);
5707
5689
  }
@@ -5716,7 +5698,6 @@ _curry2(function curryN(length, fn) {
5716
5698
  * @param {Function} fn The function to curry.
5717
5699
  * @return {Function} The curried function.
5718
5700
  */
5719
-
5720
5701
  function _curry3(fn) {
5721
5702
  return function f3(a, b, c) {
5722
5703
  switch (arguments.length) {
@@ -5787,7 +5768,6 @@ function _isTransformer(obj) {
5787
5768
  * @param {Function} fn default ramda implementation
5788
5769
  * @return {Function} A function that dispatches on object in list position
5789
5770
  */
5790
-
5791
5771
  function _dispatchable(methodNames, transducerCreator, fn) {
5792
5772
  return function () {
5793
5773
  if (arguments.length === 0) {
@@ -5866,8 +5846,7 @@ function _objectIs(a, b) {
5866
5846
  var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
5867
5847
 
5868
5848
  var toString$1 = Object.prototype.toString;
5869
- var _isArguments = /*#__PURE__*/
5870
- function () {
5849
+ var _isArguments = /*#__PURE__*/function () {
5871
5850
  return toString$1.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
5872
5851
  return toString$1.call(x) === '[object Arguments]';
5873
5852
  } : function _isArguments(x) {
@@ -5875,14 +5854,13 @@ function () {
5875
5854
  };
5876
5855
  }();
5877
5856
 
5878
- var hasEnumBug = ! /*#__PURE__*/
5879
- {
5857
+ // cover IE < 9 keys issues
5858
+ var hasEnumBug = ! /*#__PURE__*/{
5880
5859
  toString: null
5881
5860
  }.propertyIsEnumerable('toString');
5882
- var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
5883
-
5884
- var hasArgsEnumBug = /*#__PURE__*/
5885
- function () {
5861
+ var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
5862
+ // Safari bug
5863
+ var hasArgsEnumBug = /*#__PURE__*/function () {
5886
5864
 
5887
5865
  return arguments.propertyIsEnumerable('length');
5888
5866
  }();
@@ -5896,6 +5874,7 @@ var contains = function contains(list, item) {
5896
5874
  }
5897
5875
  return false;
5898
5876
  };
5877
+
5899
5878
  /**
5900
5879
  * Returns a list containing the names of all the enumerable own properties of
5901
5880
  * the supplied object.
@@ -5914,12 +5893,9 @@ var contains = function contains(list, item) {
5914
5893
  *
5915
5894
  * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
5916
5895
  */
5917
-
5918
- var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/
5919
- _curry1(function keys(obj) {
5896
+ var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/_curry1(function keys(obj) {
5920
5897
  return Object(obj) !== obj ? [] : Object.keys(obj);
5921
- }) : /*#__PURE__*/
5922
- _curry1(function keys(obj) {
5898
+ }) : /*#__PURE__*/_curry1(function keys(obj) {
5923
5899
  if (Object(obj) !== obj) {
5924
5900
  return [];
5925
5901
  }
@@ -5969,10 +5945,9 @@ _curry1(function keys(obj) {
5969
5945
  * R.type(() => {}); //=> "Function"
5970
5946
  * R.type(async () => {}); //=> "AsyncFunction"
5971
5947
  * R.type(undefined); //=> "Undefined"
5948
+ * R.type(BigInt(123)); //=> "BigInt"
5972
5949
  */
5973
-
5974
- var type = /*#__PURE__*/
5975
- _curry1(function type(val) {
5950
+ var type = /*#__PURE__*/_curry1(function type(val) {
5976
5951
  return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
5977
5952
  });
5978
5953
 
@@ -5992,8 +5967,9 @@ function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
5992
5967
  var b = _arrayFromIterator(bIterator);
5993
5968
  function eq(_a, _b) {
5994
5969
  return _equals(_a, _b, stackA.slice(), stackB.slice());
5995
- } // if *a* array contains any element that is not included in *b*
5970
+ }
5996
5971
 
5972
+ // if *a* array contains any element that is not included in *b*
5997
5973
  return !_includesWith(function (b, aItem) {
5998
5974
  return !_includesWith(eq, aItem, b);
5999
5975
  }, b, a);
@@ -6124,15 +6100,13 @@ function _equals(a, b, stackA, stackB) {
6124
6100
  * const b = {}; b.v = b;
6125
6101
  * R.equals(a, b); //=> true
6126
6102
  */
6127
-
6128
- var equals = /*#__PURE__*/
6129
- _curry2(function equals(a, b) {
6103
+ var equals = /*#__PURE__*/_curry2(function equals(a, b) {
6130
6104
  return _equals(a, b, [], []);
6131
6105
  });
6132
6106
 
6133
6107
  function _indexOf(list, a, idx) {
6134
- var inf, item; // Array.prototype.indexOf doesn't exist below IE9
6135
-
6108
+ var inf, item;
6109
+ // Array.prototype.indexOf doesn't exist below IE9
6136
6110
  if (typeof list.indexOf === 'function') {
6137
6111
  switch (_typeof$1(a)) {
6138
6112
  case 'number':
@@ -6157,11 +6131,11 @@ function _indexOf(list, a, idx) {
6157
6131
  idx += 1;
6158
6132
  }
6159
6133
  return -1;
6160
- } // non-zero numbers can utilise Set
6161
-
6134
+ }
6135
+ // non-zero numbers can utilise Set
6162
6136
  return list.indexOf(a, idx);
6163
- // all these types can utilise Set
6164
6137
 
6138
+ // all these types can utilise Set
6165
6139
  case 'string':
6166
6140
  case 'boolean':
6167
6141
  case 'function':
@@ -6173,8 +6147,8 @@ function _indexOf(list, a, idx) {
6173
6147
  return list.indexOf(a, idx);
6174
6148
  }
6175
6149
  }
6176
- } // anything else not covered above, defer to R.equals
6177
-
6150
+ }
6151
+ // anything else not covered above, defer to R.equals
6178
6152
  while (idx < list.length) {
6179
6153
  if (equals(list[idx], a)) {
6180
6154
  return idx;
@@ -6250,8 +6224,7 @@ function _isObject(x) {
6250
6224
  return Object.prototype.toString.call(x) === '[object Object]';
6251
6225
  }
6252
6226
 
6253
- var XFilter = /*#__PURE__*/
6254
- function () {
6227
+ var XFilter = /*#__PURE__*/function () {
6255
6228
  function XFilter(f, xf) {
6256
6229
  this.xf = xf;
6257
6230
  this.f = f;
@@ -6297,10 +6270,7 @@ function _xfilter(f) {
6297
6270
  *
6298
6271
  * R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
6299
6272
  */
6300
-
6301
- var filter = /*#__PURE__*/
6302
- _curry2( /*#__PURE__*/
6303
- _dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
6273
+ var filter = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
6304
6274
  return _isObject(filterable) ? _arrayReduce(function (acc, key) {
6305
6275
  if (pred(filterable[key])) {
6306
6276
  acc[key] = filterable[key];
@@ -6335,19 +6305,17 @@ _dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filte
6335
6305
  *
6336
6306
  * R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
6337
6307
  */
6338
-
6339
- var reject = /*#__PURE__*/
6340
- _curry2(function reject(pred, filterable) {
6308
+ var reject = /*#__PURE__*/_curry2(function reject(pred, filterable) {
6341
6309
  return filter(_complement(pred), filterable);
6342
6310
  });
6343
- var reject$1 = reject;
6344
6311
 
6345
6312
  function _toString(x, seen) {
6346
6313
  var recur = function recur(y) {
6347
6314
  var xs = seen.concat([x]);
6348
6315
  return _includes(y, xs) ? '<Circular>' : _toString(y, xs);
6349
- }; // mapPairs :: (Object, [String]) -> [String]
6316
+ };
6350
6317
 
6318
+ // mapPairs :: (Object, [String]) -> [String]
6351
6319
  var mapPairs = function mapPairs(obj, keys) {
6352
6320
  return _map(function (k) {
6353
6321
  return _quote(k) + ': ' + recur(obj[k]);
@@ -6357,7 +6325,7 @@ function _toString(x, seen) {
6357
6325
  case '[object Arguments]':
6358
6326
  return '(function() { return arguments; }(' + _map(recur, x).join(', ') + '))';
6359
6327
  case '[object Array]':
6360
- return '[' + _map(recur, x).concat(mapPairs(x, reject$1(function (k) {
6328
+ return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
6361
6329
  return /^\d+$/.test(k);
6362
6330
  }, keys(x)))).join(', ') + ']';
6363
6331
  case '[object Boolean]':
@@ -6423,9 +6391,7 @@ function _toString(x, seen) {
6423
6391
  * R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
6424
6392
  * R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
6425
6393
  */
6426
-
6427
- var toString = /*#__PURE__*/
6428
- _curry1(function toString(val) {
6394
+ var toString = /*#__PURE__*/_curry1(function toString(val) {
6429
6395
  return _toString(val, []);
6430
6396
  });
6431
6397
 
@@ -6446,9 +6412,7 @@ _curry1(function toString(val) {
6446
6412
  * R.max(789, 123); //=> 789
6447
6413
  * R.max('a', 'b'); //=> 'b'
6448
6414
  */
6449
-
6450
- var max = /*#__PURE__*/
6451
- _curry2(function max(a, b) {
6415
+ var max = /*#__PURE__*/_curry2(function max(a, b) {
6452
6416
  if (a === b) {
6453
6417
  return b;
6454
6418
  }
@@ -6473,10 +6437,8 @@ _curry2(function max(a, b) {
6473
6437
  }
6474
6438
  return b;
6475
6439
  });
6476
- var max$1 = max;
6477
6440
 
6478
- var XMap = /*#__PURE__*/
6479
- function () {
6441
+ var XMap = /*#__PURE__*/function () {
6480
6442
  function XMap(f, xf) {
6481
6443
  this.xf = xf;
6482
6444
  this.f = f;
@@ -6493,7 +6455,6 @@ var _xmap = function _xmap(f) {
6493
6455
  return new XMap(f, xf);
6494
6456
  };
6495
6457
  };
6496
- var _xmap$1 = _xmap;
6497
6458
 
6498
6459
  /**
6499
6460
  * Takes a function and
@@ -6530,10 +6491,7 @@ var _xmap$1 = _xmap;
6530
6491
  * @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
6531
6492
  * @symb R.map(f, functor_o) = functor_o.map(f)
6532
6493
  */
6533
-
6534
- var map = /*#__PURE__*/
6535
- _curry2( /*#__PURE__*/
6536
- _dispatchable(['fantasy-land/map', 'map'], _xmap$1, function map(fn, functor) {
6494
+ var map = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
6537
6495
  switch (Object.prototype.toString.call(functor)) {
6538
6496
  case '[object Function]':
6539
6497
  return curryN(functor.length, function () {
@@ -6571,9 +6529,7 @@ function _isString(x) {
6571
6529
  * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
6572
6530
  * _isArrayLike({nodeType: 1, length: 1}) // => false
6573
6531
  */
6574
-
6575
- var _isArrayLike = /*#__PURE__*/
6576
- _curry1(function isArrayLike(x) {
6532
+ var _isArrayLike = /*#__PURE__*/_curry1(function isArrayLike(x) {
6577
6533
  if (_isArray(x)) {
6578
6534
  return true;
6579
6535
  }
@@ -6656,9 +6612,7 @@ function _xArrayReduce(xf, acc, list) {
6656
6612
  * // logs {a: 2}
6657
6613
  * @symb R.bind(f, o)(a, b) = f.call(o, a, b)
6658
6614
  */
6659
-
6660
- var bind = /*#__PURE__*/
6661
- _curry2(function bind(fn, thisObj) {
6615
+ var bind = /*#__PURE__*/_curry2(function bind(fn, thisObj) {
6662
6616
  return _arity(fn.length, function () {
6663
6617
  return fn.apply(thisObj, arguments);
6664
6618
  });
@@ -6679,11 +6633,9 @@ function _xIterableReduce(xf, acc, iter) {
6679
6633
  function _xMethodReduce(xf, acc, obj, methodName) {
6680
6634
  return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
6681
6635
  }
6682
- var _xReduce = /*#__PURE__*/
6683
- _createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
6636
+ var _xReduce = /*#__PURE__*/_createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
6684
6637
 
6685
- var XWrap = /*#__PURE__*/
6686
- function () {
6638
+ var XWrap = /*#__PURE__*/function () {
6687
6639
  function XWrap(fn) {
6688
6640
  this.f = fn;
6689
6641
  }
@@ -6754,12 +6706,9 @@ function _xwrap(fn) {
6754
6706
  *
6755
6707
  * @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
6756
6708
  */
6757
-
6758
- var reduce = /*#__PURE__*/
6759
- _curry3(function (xf, acc, list) {
6709
+ var reduce = /*#__PURE__*/_curry3(function (xf, acc, list) {
6760
6710
  return _xReduce(typeof xf === 'function' ? _xwrap(xf) : xf, acc, list);
6761
6711
  });
6762
- var reduce$1 = reduce;
6763
6712
 
6764
6713
  function _identity(x) {
6765
6714
  return x;
@@ -6784,10 +6733,7 @@ function _identity(x) {
6784
6733
  * R.identity(obj) === obj; //=> true
6785
6734
  * @symb R.identity(a) = a
6786
6735
  */
6787
-
6788
- var identity = /*#__PURE__*/
6789
- _curry1(_identity);
6790
- var identity$1 = identity;
6736
+ var identity = /*#__PURE__*/_curry1(_identity);
6791
6737
 
6792
6738
  /**
6793
6739
  * Returns a function, `fn`, which encapsulates `if/else, if/else, ...` logic.
@@ -6820,10 +6766,8 @@ var identity$1 = identity;
6820
6766
  * fn(50); //=> 'nothing special happens at 50°C'
6821
6767
  * fn(100); //=> 'water boils at 100°C'
6822
6768
  */
6823
-
6824
- var cond = /*#__PURE__*/
6825
- _curry1(function cond(pairs) {
6826
- var arity = reduce$1(max$1, 0, map(function (pair) {
6769
+ var cond = /*#__PURE__*/_curry1(function cond(pairs) {
6770
+ var arity = reduce(max, 0, map(function (pair) {
6827
6771
  return pair[0].length;
6828
6772
  }, pairs));
6829
6773
  return _arity(arity, function () {
@@ -6837,28 +6781,29 @@ _curry1(function cond(pairs) {
6837
6781
  });
6838
6782
  });
6839
6783
 
6840
- var _Set = /*#__PURE__*/
6841
- function () {
6784
+ var _Set = /*#__PURE__*/function () {
6842
6785
  function _Set() {
6843
6786
  /* globals Set */
6844
6787
  this._nativeSet = typeof Set === 'function' ? new Set() : null;
6845
6788
  this._items = {};
6846
6789
  }
6847
-
6848
6790
  // until we figure out why jsdoc chokes on this
6849
6791
  // @param item The item to add to the Set
6850
6792
  // @returns {boolean} true if the item did not exist prior, otherwise false
6851
6793
  //
6852
6794
  _Set.prototype.add = function (item) {
6853
6795
  return !hasOrAdd(item, true, this);
6854
- }; //
6796
+ };
6797
+
6798
+ //
6855
6799
  // @param item The item to check for existence in the Set
6856
6800
  // @returns {boolean} true if the item exists in the Set, otherwise false
6857
6801
  //
6858
-
6859
6802
  _Set.prototype.has = function (item) {
6860
6803
  return hasOrAdd(item, false, this);
6861
- }; //
6804
+ };
6805
+
6806
+ //
6862
6807
  // Combines the logic for checking whether an item is a member of the set and
6863
6808
  // for adding a new item to the set.
6864
6809
  //
@@ -6868,7 +6813,6 @@ function () {
6868
6813
  // @param set The set instance to check or add to.
6869
6814
  // @return {boolean} true if the item already existed, otherwise false.
6870
6815
  //
6871
-
6872
6816
  return _Set;
6873
6817
  }();
6874
6818
  function hasOrAdd(item, shouldAdd, set) {
@@ -6887,8 +6831,8 @@ function hasOrAdd(item, shouldAdd, set) {
6887
6831
  }
6888
6832
  return false;
6889
6833
  }
6890
- } // these types can all utilise the native Set
6891
-
6834
+ }
6835
+ // these types can all utilise the native Set
6892
6836
  if (set._nativeSet !== null) {
6893
6837
  if (shouldAdd) {
6894
6838
  prevSize = set._nativeSet.size;
@@ -6978,9 +6922,7 @@ function hasOrAdd(item, shouldAdd, set) {
6978
6922
  }
6979
6923
  return true;
6980
6924
  }
6981
-
6982
6925
  /* falls through */
6983
-
6984
6926
  default:
6985
6927
  // reduce the search size of heterogeneous sets by creating buckets
6986
6928
  // for each type.
@@ -6990,8 +6932,8 @@ function hasOrAdd(item, shouldAdd, set) {
6990
6932
  set._items[type] = [item];
6991
6933
  }
6992
6934
  return false;
6993
- } // scan through all previously applied items
6994
-
6935
+ }
6936
+ // scan through all previously applied items
6995
6937
  if (!_includes(item, set._items[type])) {
6996
6938
  if (shouldAdd) {
6997
6939
  set._items[type].push(item);
@@ -7000,10 +6942,9 @@ function hasOrAdd(item, shouldAdd, set) {
7000
6942
  }
7001
6943
  return true;
7002
6944
  }
7003
- } // A simple Set type that honours R.equals semantics
6945
+ }
7004
6946
 
7005
- var XUniqBy = /*#__PURE__*/
7006
- function () {
6947
+ var XUniqBy = /*#__PURE__*/function () {
7007
6948
  function XUniqBy(f, xf) {
7008
6949
  this.xf = xf;
7009
6950
  this.f = f;
@@ -7042,10 +6983,7 @@ function _xuniqBy(f) {
7042
6983
  *
7043
6984
  * R.uniqBy(Math.abs, [-1, -5, 2, 10, 1, 2]); //=> [-1, -5, 2, 10]
7044
6985
  */
7045
-
7046
- var uniqBy = /*#__PURE__*/
7047
- _curry2( /*#__PURE__*/
7048
- _dispatchable([], _xuniqBy, function (fn, list) {
6986
+ var uniqBy = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xuniqBy, function (fn, list) {
7049
6987
  var set = new _Set();
7050
6988
  var result = [];
7051
6989
  var idx = 0;
@@ -7078,9 +7016,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
7078
7016
  * R.uniq([1, '1']); //=> [1, '1']
7079
7017
  * R.uniq([[42], [42]]); //=> [[42]]
7080
7018
  */
7081
-
7082
- var uniq = /*#__PURE__*/
7083
- uniqBy(identity$1);
7019
+ var uniq = /*#__PURE__*/uniqBy(identity);
7084
7020
 
7085
7021
  function _isNumber(x) {
7086
7022
  return Object.prototype.toString.call(x) === '[object Number]';
@@ -7102,9 +7038,7 @@ function _isNumber(x) {
7102
7038
  *
7103
7039
  * R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
7104
7040
  */
7105
-
7106
- var omit = /*#__PURE__*/
7107
- _curry2(function omit(names, obj) {
7041
+ var omit = /*#__PURE__*/_curry2(function omit(names, obj) {
7108
7042
  var result = {};
7109
7043
  var index = {};
7110
7044
  var idx = 0;
@@ -7137,17 +7071,16 @@ _curry2(function omit(names, obj) {
7137
7071
  * R.range(1, 5); //=> [1, 2, 3, 4]
7138
7072
  * R.range(50, 53); //=> [50, 51, 52]
7139
7073
  */
7140
-
7141
- var range = /*#__PURE__*/
7142
- _curry2(function range(from, to) {
7074
+ var range = /*#__PURE__*/_curry2(function range(from, to) {
7143
7075
  if (!(_isNumber(from) && _isNumber(to))) {
7144
7076
  throw new TypeError('Both arguments to range must be numbers');
7145
7077
  }
7146
- var result = [];
7147
- var n = from;
7148
- while (n < to) {
7149
- result.push(n);
7150
- n += 1;
7078
+ var result = Array(from < to ? to - from : 0);
7079
+ var finish = from < 0 ? to + Math.abs(from) : to - from;
7080
+ var idx = 0;
7081
+ while (idx < finish) {
7082
+ result[idx] = idx + from;
7083
+ idx += 1;
7151
7084
  }
7152
7085
  return result;
7153
7086
  });
@@ -11646,7 +11579,7 @@ var showAGroupOfPagesCenteredOnTheCurrentPage = function showAGroupOfPagesCenter
11646
11579
  var diff = Math.floor((maxPages - 2) / 2);
11647
11580
  return [1].concat(_toConsumableArray(range(page - diff, page + diff + 1)), [totalPages]);
11648
11581
  };
11649
- var determinePagesToShow = cond([[whenThereAreFewerPagesThanWeDisplay, showAllPages], [whenCurrentPageIsLessThanHalfTheTotal, showFirstNPagesAndLastPage], [whenCurrentPageIsGreaterThanHalfTheTotal, showTheLastNPages], [otherwise, showAGroupOfPagesCenteredOnTheCurrentPage]]);
11582
+ var determinePagesToShow = cond([[whenThereAreFewerPagesThanWeDisplay, showAllPages], [whenCurrentPageIsLessThanHalfTheTotal, showFirstNPagesAndLastPage], [whenCurrentPageIsGreaterThanHalfTheTotal, showTheLastNPages], [T, showAGroupOfPagesCenteredOnTheCurrentPage]]);
11650
11583
  var Paginator = function Paginator(_ref) {
11651
11584
  var selectedPage = _ref.selectedPage,
11652
11585
  totalPages = _ref.totalPages,