@moda/om 18.3.0 → 18.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1103 -848
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1103 -848
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/Popover/Popover.d.ts +3 -3
- package/package.json +13 -13
- package/src/components/Popover/Popover.tsx +3 -3
- package/CHANGELOG.md +0 -709
package/dist/index.esm.js
CHANGED
|
@@ -496,11 +496,7 @@ breakpoints.breakpoints = {
|
|
|
496
496
|
|
|
497
497
|
var helpers = {};
|
|
498
498
|
|
|
499
|
-
var
|
|
500
|
-
var colorString = {
|
|
501
|
-
get exports(){ return colorStringExports; },
|
|
502
|
-
set exports(v){ colorStringExports = v; },
|
|
503
|
-
};
|
|
499
|
+
var colorString = {exports: {}};
|
|
504
500
|
|
|
505
501
|
var colorName = {
|
|
506
502
|
"aliceblue": [240, 248, 255],
|
|
@@ -653,11 +649,7 @@ var colorName = {
|
|
|
653
649
|
"yellowgreen": [154, 205, 50]
|
|
654
650
|
};
|
|
655
651
|
|
|
656
|
-
var
|
|
657
|
-
var simpleSwizzle = {
|
|
658
|
-
get exports(){ return simpleSwizzleExports; },
|
|
659
|
-
set exports(v){ simpleSwizzleExports = v; },
|
|
660
|
-
};
|
|
652
|
+
var simpleSwizzle = {exports: {}};
|
|
661
653
|
|
|
662
654
|
var isArrayish$1 = function isArrayish(obj) {
|
|
663
655
|
if (!obj || typeof obj === 'string') {
|
|
@@ -687,6 +679,7 @@ swizzle$1.wrap = function (fn) {
|
|
|
687
679
|
return fn(swizzle$1(arguments));
|
|
688
680
|
};
|
|
689
681
|
};
|
|
682
|
+
var simpleSwizzleExports = simpleSwizzle.exports;
|
|
690
683
|
|
|
691
684
|
/* MIT license */
|
|
692
685
|
var colorNames = colorName;
|
|
@@ -878,6 +871,7 @@ function hexDouble(num) {
|
|
|
878
871
|
var str = Math.round(num).toString(16).toUpperCase();
|
|
879
872
|
return str.length < 2 ? '0' + str : str;
|
|
880
873
|
}
|
|
874
|
+
var colorStringExports = colorString.exports;
|
|
881
875
|
|
|
882
876
|
(function (exports) {
|
|
883
877
|
|
|
@@ -885,9 +879,7 @@ function hexDouble(num) {
|
|
|
885
879
|
__assign = Object.assign || function (t) {
|
|
886
880
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
887
881
|
s = arguments[i];
|
|
888
|
-
for (var p in s)
|
|
889
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
890
|
-
}
|
|
882
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
891
883
|
}
|
|
892
884
|
return t;
|
|
893
885
|
};
|
|
@@ -966,9 +958,7 @@ function hexDouble(num) {
|
|
|
966
958
|
o[k2] = m[k];
|
|
967
959
|
});
|
|
968
960
|
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
|
|
969
|
-
for (var p in m)
|
|
970
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
971
|
-
}
|
|
961
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
972
962
|
};
|
|
973
963
|
Object.defineProperty(exports, "__esModule", {
|
|
974
964
|
value: true
|
|
@@ -1053,17 +1043,17 @@ function _objectSpread2(target) {
|
|
|
1053
1043
|
}
|
|
1054
1044
|
return target;
|
|
1055
1045
|
}
|
|
1056
|
-
function _typeof(obj) {
|
|
1046
|
+
function _typeof$1(obj) {
|
|
1057
1047
|
"@babel/helpers - typeof";
|
|
1058
1048
|
|
|
1059
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1049
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
1060
1050
|
return typeof obj;
|
|
1061
1051
|
} : function (obj) {
|
|
1062
1052
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
1063
|
-
}, _typeof(obj);
|
|
1053
|
+
}, _typeof$1(obj);
|
|
1064
1054
|
}
|
|
1065
1055
|
function _defineProperty$1(obj, key, value) {
|
|
1066
|
-
key = _toPropertyKey(key);
|
|
1056
|
+
key = _toPropertyKey$1(key);
|
|
1067
1057
|
if (key in obj) {
|
|
1068
1058
|
Object.defineProperty(obj, key, {
|
|
1069
1059
|
value: value,
|
|
@@ -1154,7 +1144,58 @@ function _nonIterableSpread() {
|
|
|
1154
1144
|
function _nonIterableRest() {
|
|
1155
1145
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1156
1146
|
}
|
|
1157
|
-
function
|
|
1147
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
1148
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1149
|
+
if (!it) {
|
|
1150
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
1151
|
+
if (it) o = it;
|
|
1152
|
+
var i = 0;
|
|
1153
|
+
var F = function () {};
|
|
1154
|
+
return {
|
|
1155
|
+
s: F,
|
|
1156
|
+
n: function () {
|
|
1157
|
+
if (i >= o.length) return {
|
|
1158
|
+
done: true
|
|
1159
|
+
};
|
|
1160
|
+
return {
|
|
1161
|
+
done: false,
|
|
1162
|
+
value: o[i++]
|
|
1163
|
+
};
|
|
1164
|
+
},
|
|
1165
|
+
e: function (e) {
|
|
1166
|
+
throw e;
|
|
1167
|
+
},
|
|
1168
|
+
f: F
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1172
|
+
}
|
|
1173
|
+
var normalCompletion = true,
|
|
1174
|
+
didErr = false,
|
|
1175
|
+
err;
|
|
1176
|
+
return {
|
|
1177
|
+
s: function () {
|
|
1178
|
+
it = it.call(o);
|
|
1179
|
+
},
|
|
1180
|
+
n: function () {
|
|
1181
|
+
var step = it.next();
|
|
1182
|
+
normalCompletion = step.done;
|
|
1183
|
+
return step;
|
|
1184
|
+
},
|
|
1185
|
+
e: function (e) {
|
|
1186
|
+
didErr = true;
|
|
1187
|
+
err = e;
|
|
1188
|
+
},
|
|
1189
|
+
f: function () {
|
|
1190
|
+
try {
|
|
1191
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
1192
|
+
} finally {
|
|
1193
|
+
if (didErr) throw err;
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1198
|
+
function _toPrimitive$1(input, hint) {
|
|
1158
1199
|
if (typeof input !== "object" || input === null) return input;
|
|
1159
1200
|
var prim = input[Symbol.toPrimitive];
|
|
1160
1201
|
if (prim !== undefined) {
|
|
@@ -1164,8 +1205,8 @@ function _toPrimitive(input, hint) {
|
|
|
1164
1205
|
}
|
|
1165
1206
|
return (hint === "string" ? String : Number)(input);
|
|
1166
1207
|
}
|
|
1167
|
-
function _toPropertyKey(arg) {
|
|
1168
|
-
var key = _toPrimitive(arg, "string");
|
|
1208
|
+
function _toPropertyKey$1(arg) {
|
|
1209
|
+
var key = _toPrimitive$1(arg, "string");
|
|
1169
1210
|
return typeof key === "symbol" ? key : String(key);
|
|
1170
1211
|
}
|
|
1171
1212
|
|
|
@@ -1173,11 +1214,7 @@ var isRenderProps = function isRenderProps(children) {
|
|
|
1173
1214
|
return typeof children === 'function';
|
|
1174
1215
|
};
|
|
1175
1216
|
|
|
1176
|
-
var
|
|
1177
|
-
var classnames = {
|
|
1178
|
-
get exports(){ return classnamesExports; },
|
|
1179
|
-
set exports(v){ classnamesExports = v; },
|
|
1180
|
-
};
|
|
1217
|
+
var classnames = {exports: {}};
|
|
1181
1218
|
|
|
1182
1219
|
(function (module) {
|
|
1183
1220
|
/* global define */
|
|
@@ -1190,7 +1227,7 @@ var classnames = {
|
|
|
1190
1227
|
for (var i = 0; i < arguments.length; i++) {
|
|
1191
1228
|
var arg = arguments[i];
|
|
1192
1229
|
if (!arg) continue;
|
|
1193
|
-
var argType = _typeof(arg);
|
|
1230
|
+
var argType = _typeof$1(arg);
|
|
1194
1231
|
if (argType === 'string' || argType === 'number') {
|
|
1195
1232
|
classes.push(arg);
|
|
1196
1233
|
} else if (Array.isArray(arg)) {
|
|
@@ -1222,7 +1259,8 @@ var classnames = {
|
|
|
1222
1259
|
}
|
|
1223
1260
|
})();
|
|
1224
1261
|
})(classnames);
|
|
1225
|
-
var
|
|
1262
|
+
var classnamesExports = classnames.exports;
|
|
1263
|
+
var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
1226
1264
|
|
|
1227
1265
|
var _excluded$F = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
|
|
1228
1266
|
var Stack = function Stack(_ref) {
|
|
@@ -1278,7 +1316,7 @@ var stringifyProps = function stringifyProps(props) {
|
|
|
1278
1316
|
if (typeof value === 'function') return "".concat(memo, " ").concat(key, "={fn}");
|
|
1279
1317
|
if (typeof value === 'boolean') return "".concat(memo, " ").concat(key).concat(value ? '' : '={false}');
|
|
1280
1318
|
if (typeof value === 'number') return "".concat(memo, " ").concat(key, "={").concat(value, "}");
|
|
1281
|
-
if (_typeof(value) === 'object') return "".concat(memo, " ").concat(key, "={...}");
|
|
1319
|
+
if (_typeof$1(value) === 'object') return "".concat(memo, " ").concat(key, "={...}");
|
|
1282
1320
|
return "".concat(memo, " ").concat(key, "=").concat(value);
|
|
1283
1321
|
}, '');
|
|
1284
1322
|
return stringifiedProps.trim();
|
|
@@ -1286,9 +1324,7 @@ var stringifyProps = function stringifyProps(props) {
|
|
|
1286
1324
|
|
|
1287
1325
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1288
1326
|
|
|
1289
|
-
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
1290
|
-
|
|
1291
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1327
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */ // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1292
1328
|
var isEmpty = function isEmpty(obj) {
|
|
1293
1329
|
return Object.entries(obj || {}).length === 0;
|
|
1294
1330
|
};
|
|
@@ -1339,9 +1375,7 @@ var _assign = function __assign() {
|
|
|
1339
1375
|
_assign = Object.assign || function __assign(t) {
|
|
1340
1376
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1341
1377
|
s = arguments[i];
|
|
1342
|
-
for (var p in s)
|
|
1343
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
1344
|
-
}
|
|
1378
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
1345
1379
|
}
|
|
1346
1380
|
return t;
|
|
1347
1381
|
};
|
|
@@ -1349,9 +1383,7 @@ var _assign = function __assign() {
|
|
|
1349
1383
|
};
|
|
1350
1384
|
function __rest$a(s, e) {
|
|
1351
1385
|
var t = {};
|
|
1352
|
-
for (var p in s)
|
|
1353
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
1354
|
-
}
|
|
1386
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
1355
1387
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
1356
1388
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
1357
1389
|
}
|
|
@@ -1360,14 +1392,8 @@ function __rest$a(s, e) {
|
|
|
1360
1392
|
|
|
1361
1393
|
/** @deprecated */
|
|
1362
1394
|
function __spreadArrays() {
|
|
1363
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
1364
|
-
|
|
1365
|
-
}
|
|
1366
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
|
|
1367
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
|
|
1368
|
-
r[k] = a[j];
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1395
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
1396
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
|
|
1371
1397
|
return r;
|
|
1372
1398
|
}
|
|
1373
1399
|
function __spreadArray(to, from, pack) {
|
|
@@ -1661,17 +1687,9 @@ function _extends() {
|
|
|
1661
1687
|
return _extends.apply(this, arguments);
|
|
1662
1688
|
}
|
|
1663
1689
|
|
|
1664
|
-
var
|
|
1665
|
-
var propTypes = {
|
|
1666
|
-
get exports(){ return propTypesExports; },
|
|
1667
|
-
set exports(v){ propTypesExports = v; },
|
|
1668
|
-
};
|
|
1690
|
+
var propTypes = {exports: {}};
|
|
1669
1691
|
|
|
1670
|
-
var
|
|
1671
|
-
var reactIs = {
|
|
1672
|
-
get exports(){ return reactIsExports; },
|
|
1673
|
-
set exports(v){ reactIsExports = v; },
|
|
1674
|
-
};
|
|
1692
|
+
var reactIs = {exports: {}};
|
|
1675
1693
|
|
|
1676
1694
|
var reactIs_production_min = {};
|
|
1677
1695
|
|
|
@@ -1699,7 +1717,7 @@ function requireReactIs_production_min() {
|
|
|
1699
1717
|
x = b ? Symbol["for"]("react.responder") : 60118,
|
|
1700
1718
|
y = b ? Symbol["for"]("react.scope") : 60119;
|
|
1701
1719
|
function z(a) {
|
|
1702
|
-
if ("object" === _typeof(a) && null !== a) {
|
|
1720
|
+
if ("object" === _typeof$1(a) && null !== a) {
|
|
1703
1721
|
var u = a.$$typeof;
|
|
1704
1722
|
switch (u) {
|
|
1705
1723
|
case c:
|
|
@@ -1755,7 +1773,7 @@ function requireReactIs_production_min() {
|
|
|
1755
1773
|
return z(a) === h;
|
|
1756
1774
|
};
|
|
1757
1775
|
reactIs_production_min.isElement = function (a) {
|
|
1758
|
-
return "object" === _typeof(a) && null !== a && a.$$typeof === c;
|
|
1776
|
+
return "object" === _typeof$1(a) && null !== a && a.$$typeof === c;
|
|
1759
1777
|
};
|
|
1760
1778
|
reactIs_production_min.isForwardRef = function (a) {
|
|
1761
1779
|
return z(a) === n;
|
|
@@ -1782,7 +1800,7 @@ function requireReactIs_production_min() {
|
|
|
1782
1800
|
return z(a) === p;
|
|
1783
1801
|
};
|
|
1784
1802
|
reactIs_production_min.isValidElementType = function (a) {
|
|
1785
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === _typeof(a) && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
1803
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === _typeof$1(a) && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
1786
1804
|
};
|
|
1787
1805
|
reactIs_production_min.typeOf = z;
|
|
1788
1806
|
return reactIs_production_min;
|
|
@@ -1823,10 +1841,10 @@ function requireReactIs_development() {
|
|
|
1823
1841
|
function isValidElementType(type) {
|
|
1824
1842
|
return typeof type === 'string' || typeof type === 'function' ||
|
|
1825
1843
|
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1826
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || _typeof(type) === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1844
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || _typeof$1(type) === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
1827
1845
|
}
|
|
1828
1846
|
function typeOf(object) {
|
|
1829
|
-
if (_typeof(object) === 'object' && object !== null) {
|
|
1847
|
+
if (_typeof$1(object) === 'object' && object !== null) {
|
|
1830
1848
|
var $$typeof = object.$$typeof;
|
|
1831
1849
|
switch ($$typeof) {
|
|
1832
1850
|
case REACT_ELEMENT_TYPE:
|
|
@@ -1894,7 +1912,7 @@ function requireReactIs_development() {
|
|
|
1894
1912
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1895
1913
|
}
|
|
1896
1914
|
function isElement(object) {
|
|
1897
|
-
return _typeof(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1915
|
+
return _typeof$1(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1898
1916
|
}
|
|
1899
1917
|
function isForwardRef(object) {
|
|
1900
1918
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
@@ -1955,17 +1973,14 @@ function requireReactIs_development() {
|
|
|
1955
1973
|
|
|
1956
1974
|
var hasRequiredReactIs;
|
|
1957
1975
|
function requireReactIs() {
|
|
1958
|
-
if (hasRequiredReactIs) return
|
|
1976
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
1959
1977
|
hasRequiredReactIs = 1;
|
|
1960
|
-
(
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
}
|
|
1967
|
-
})(reactIs);
|
|
1968
|
-
return reactIsExports;
|
|
1978
|
+
if (process.env.NODE_ENV === 'production') {
|
|
1979
|
+
reactIs.exports = requireReactIs_production_min();
|
|
1980
|
+
} else {
|
|
1981
|
+
reactIs.exports = requireReactIs_development();
|
|
1982
|
+
}
|
|
1983
|
+
return reactIs.exports;
|
|
1969
1984
|
}
|
|
1970
1985
|
|
|
1971
1986
|
/*
|
|
@@ -2126,7 +2141,7 @@ function requireCheckPropTypes() {
|
|
|
2126
2141
|
// This is intentionally an invariant that gets caught. It's the same
|
|
2127
2142
|
// behavior as without this statement except with a better message.
|
|
2128
2143
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
2129
|
-
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + _typeof(typeSpecs[typeSpecName]) + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
2144
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + _typeof$1(typeSpecs[typeSpecName]) + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
|
2130
2145
|
err.name = 'Invariant Violation';
|
|
2131
2146
|
throw err;
|
|
2132
2147
|
}
|
|
@@ -2135,7 +2150,7 @@ function requireCheckPropTypes() {
|
|
|
2135
2150
|
error = ex;
|
|
2136
2151
|
}
|
|
2137
2152
|
if (error && !(error instanceof Error)) {
|
|
2138
|
-
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + _typeof(error) + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
2153
|
+
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + _typeof$1(error) + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
|
2139
2154
|
}
|
|
2140
2155
|
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
2141
2156
|
// Only monitor this failure once because there tends to be a lot of the
|
|
@@ -2317,7 +2332,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
2317
2332
|
*/
|
|
2318
2333
|
function PropTypeError(message, data) {
|
|
2319
2334
|
this.message = message;
|
|
2320
|
-
this.data = data && _typeof(data) === 'object' ? data : {};
|
|
2335
|
+
this.data = data && _typeof$1(data) === 'object' ? data : {};
|
|
2321
2336
|
this.stack = '';
|
|
2322
2337
|
}
|
|
2323
2338
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -2577,7 +2592,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
2577
2592
|
return createChainableTypeChecker(validate);
|
|
2578
2593
|
}
|
|
2579
2594
|
function isNode(propValue) {
|
|
2580
|
-
switch (_typeof(propValue)) {
|
|
2595
|
+
switch (_typeof$1(propValue)) {
|
|
2581
2596
|
case 'number':
|
|
2582
2597
|
case 'string':
|
|
2583
2598
|
case 'undefined':
|
|
@@ -2645,7 +2660,7 @@ function requireFactoryWithTypeCheckers() {
|
|
|
2645
2660
|
|
|
2646
2661
|
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
2647
2662
|
function getPropType(propValue) {
|
|
2648
|
-
var propType = _typeof(propValue);
|
|
2663
|
+
var propType = _typeof$1(propValue);
|
|
2649
2664
|
if (Array.isArray(propValue)) {
|
|
2650
2665
|
return 'array';
|
|
2651
2666
|
}
|
|
@@ -2788,6 +2803,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2788
2803
|
// http://fb.me/prop-types-in-prod
|
|
2789
2804
|
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
2790
2805
|
}
|
|
2806
|
+
var propTypesExports = propTypes.exports;
|
|
2807
|
+
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
2791
2808
|
|
|
2792
2809
|
/**
|
|
2793
2810
|
* defines a focus group
|
|
@@ -2822,7 +2839,7 @@ var hiddenGuard = {
|
|
|
2822
2839
|
left: '1px'
|
|
2823
2840
|
};
|
|
2824
2841
|
process.env.NODE_ENV !== "production" ? {
|
|
2825
|
-
children:
|
|
2842
|
+
children: PropTypes.node
|
|
2826
2843
|
} : {};
|
|
2827
2844
|
|
|
2828
2845
|
var mediumFocus = createMedium({}, function (_ref) {
|
|
@@ -2900,7 +2917,7 @@ var FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parent
|
|
|
2900
2917
|
if (returnFocusTo && returnFocusTo.focus) {
|
|
2901
2918
|
var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;
|
|
2902
2919
|
if (howToReturnFocus) {
|
|
2903
|
-
var returnFocusOptions = _typeof(howToReturnFocus) === 'object' ? howToReturnFocus : undefined;
|
|
2920
|
+
var returnFocusOptions = _typeof$1(howToReturnFocus) === 'object' ? howToReturnFocus : undefined;
|
|
2904
2921
|
originalFocusedElement.current = null;
|
|
2905
2922
|
if (allowDefer) {
|
|
2906
2923
|
// React might return focus after update
|
|
@@ -3066,18 +3083,20 @@ var FocusOn$1 = /*#__PURE__*/React.forwardRef(function (props, parentRef) {
|
|
|
3066
3083
|
preventScrollOnFocus = props.preventScrollOnFocus,
|
|
3067
3084
|
style = props.style,
|
|
3068
3085
|
as = props.as,
|
|
3069
|
-
|
|
3086
|
+
gapMode = props.gapMode,
|
|
3087
|
+
rest = __rest$a(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as", "gapMode"]);
|
|
3070
3088
|
var SideCar = sideCar;
|
|
3071
3089
|
var onActivation = lockProps.onActivation,
|
|
3072
3090
|
onDeactivation = lockProps.onDeactivation,
|
|
3073
3091
|
restProps = __rest$a(lockProps, ["onActivation", "onDeactivation"]);
|
|
3074
3092
|
var appliedLockProps = _assign(_assign({}, restProps), {
|
|
3093
|
+
as: as,
|
|
3094
|
+
style: style,
|
|
3075
3095
|
sideCar: sideCar,
|
|
3076
3096
|
shards: shards,
|
|
3077
3097
|
allowPinchZoom: allowPinchZoom,
|
|
3078
|
-
|
|
3098
|
+
gapMode: gapMode,
|
|
3079
3099
|
inert: inert,
|
|
3080
|
-
style: style,
|
|
3081
3100
|
enabled: enabled && scrollLock
|
|
3082
3101
|
});
|
|
3083
3102
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FocusLockUI, {
|
|
@@ -3117,7 +3136,34 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
3117
3136
|
_setPrototypeOf(subClass, superClass);
|
|
3118
3137
|
}
|
|
3119
3138
|
|
|
3139
|
+
function _typeof(obj) {
|
|
3140
|
+
"@babel/helpers - typeof";
|
|
3141
|
+
|
|
3142
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
3143
|
+
return typeof obj;
|
|
3144
|
+
} : function (obj) {
|
|
3145
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3146
|
+
}, _typeof(obj);
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3149
|
+
function _toPrimitive(input, hint) {
|
|
3150
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
3151
|
+
var prim = input[Symbol.toPrimitive];
|
|
3152
|
+
if (prim !== undefined) {
|
|
3153
|
+
var res = prim.call(input, hint || "default");
|
|
3154
|
+
if (_typeof(res) !== "object") return res;
|
|
3155
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3156
|
+
}
|
|
3157
|
+
return (hint === "string" ? String : Number)(input);
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
function _toPropertyKey(arg) {
|
|
3161
|
+
var key = _toPrimitive(arg, "string");
|
|
3162
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3120
3165
|
function _defineProperty(obj, key, value) {
|
|
3166
|
+
key = _toPropertyKey(key);
|
|
3121
3167
|
if (key in obj) {
|
|
3122
3168
|
Object.defineProperty(obj, key, {
|
|
3123
3169
|
value: value,
|
|
@@ -3819,9 +3865,6 @@ var setFocus = function setFocus(topNode, lastNode, options) {
|
|
|
3819
3865
|
}
|
|
3820
3866
|
};
|
|
3821
3867
|
|
|
3822
|
-
var moveFocusInside = setFocus;
|
|
3823
|
-
//
|
|
3824
|
-
|
|
3825
3868
|
/* eslint-disable no-mixed-operators */
|
|
3826
3869
|
var focusOnBody = function focusOnBody() {
|
|
3827
3870
|
return document && document.activeElement === document.body;
|
|
@@ -3921,7 +3964,7 @@ var activateTrap = function activateTrap() {
|
|
|
3921
3964
|
}
|
|
3922
3965
|
document.body.focus();
|
|
3923
3966
|
} else {
|
|
3924
|
-
result =
|
|
3967
|
+
result = setFocus(workingArea, lastActiveFocus, {
|
|
3925
3968
|
focusOptions: focusOptions
|
|
3926
3969
|
});
|
|
3927
3970
|
lastPortaledElement = {};
|
|
@@ -3978,7 +4021,7 @@ var FocusWatcher = function FocusWatcher() {
|
|
|
3978
4021
|
return null;
|
|
3979
4022
|
};
|
|
3980
4023
|
process.env.NODE_ENV !== "production" ? {
|
|
3981
|
-
children:
|
|
4024
|
+
children: PropTypes.node.isRequired
|
|
3982
4025
|
} : {};
|
|
3983
4026
|
var onWindowBlur = function onWindowBlur() {
|
|
3984
4027
|
focusWasOutsideWindow = 'just'; // using setTimeout to set this variable after React/sidecar reaction
|
|
@@ -4039,7 +4082,7 @@ mediumFocus.assignSyncMedium(onFocus);
|
|
|
4039
4082
|
mediumBlur.assignMedium(onBlur);
|
|
4040
4083
|
mediumEffect.assignMedium(function (cb) {
|
|
4041
4084
|
return cb({
|
|
4042
|
-
moveFocusInside:
|
|
4085
|
+
moveFocusInside: setFocus,
|
|
4043
4086
|
focusInside: focusInside
|
|
4044
4087
|
});
|
|
4045
4088
|
});
|
|
@@ -4047,7 +4090,11 @@ var FocusTrap = withSideEffect(reducePropsToState, handleStateChangeOnClient)(Fo
|
|
|
4047
4090
|
|
|
4048
4091
|
exportSidecar(mediumSidecar, FocusTrap);
|
|
4049
4092
|
|
|
4093
|
+
var currentNonce;
|
|
4050
4094
|
var getNonce = function getNonce() {
|
|
4095
|
+
if (currentNonce) {
|
|
4096
|
+
return currentNonce;
|
|
4097
|
+
}
|
|
4051
4098
|
if (typeof __webpack_nonce__ !== 'undefined') {
|
|
4052
4099
|
return __webpack_nonce__;
|
|
4053
4100
|
}
|
|
@@ -4766,9 +4813,7 @@ var scale = {};
|
|
|
4766
4813
|
__assign = Object.assign || function (t) {
|
|
4767
4814
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4768
4815
|
s = arguments[i];
|
|
4769
|
-
for (var p in s)
|
|
4770
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
4771
|
-
}
|
|
4816
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
4772
4817
|
}
|
|
4773
4818
|
return t;
|
|
4774
4819
|
};
|
|
@@ -4776,9 +4821,7 @@ var scale = {};
|
|
|
4776
4821
|
};
|
|
4777
4822
|
var __rest = commonjsGlobal && commonjsGlobal.__rest || function (s, e) {
|
|
4778
4823
|
var t = {};
|
|
4779
|
-
for (var p in s)
|
|
4780
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
4781
|
-
}
|
|
4824
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
4782
4825
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
4783
4826
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
4784
4827
|
}
|
|
@@ -4838,9 +4881,7 @@ var scale = {};
|
|
|
4838
4881
|
o[k2] = m[k];
|
|
4839
4882
|
});
|
|
4840
4883
|
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
|
|
4841
|
-
for (var p in m)
|
|
4842
|
-
if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
4843
|
-
}
|
|
4884
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
4844
4885
|
};
|
|
4845
4886
|
Object.defineProperty(exports, "__esModule", {
|
|
4846
4887
|
value: true
|
|
@@ -5053,7 +5094,7 @@ var T = function T() {
|
|
|
5053
5094
|
var otherwise = T;
|
|
5054
5095
|
|
|
5055
5096
|
function _isPlaceholder(a) {
|
|
5056
|
-
return a != null && _typeof(a) === 'object' && a['@@functional/placeholder'] === true;
|
|
5097
|
+
return a != null && _typeof$1(a) === 'object' && a['@@functional/placeholder'] === true;
|
|
5057
5098
|
}
|
|
5058
5099
|
|
|
5059
5100
|
/**
|
|
@@ -5353,257 +5394,99 @@ var _xfBase = {
|
|
|
5353
5394
|
}
|
|
5354
5395
|
};
|
|
5355
5396
|
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
* @param {*} a
|
|
5365
|
-
* @param {*} b
|
|
5366
|
-
* @return {*}
|
|
5367
|
-
* @see R.maxBy, R.min
|
|
5368
|
-
* @example
|
|
5369
|
-
*
|
|
5370
|
-
* R.max(789, 123); //=> 789
|
|
5371
|
-
* R.max('a', 'b'); //=> 'b'
|
|
5372
|
-
*/
|
|
5373
|
-
|
|
5374
|
-
var max = /*#__PURE__*/
|
|
5375
|
-
_curry2(function max(a, b) {
|
|
5376
|
-
return b > a ? b : a;
|
|
5377
|
-
});
|
|
5397
|
+
function _arrayFromIterator(iter) {
|
|
5398
|
+
var list = [];
|
|
5399
|
+
var next;
|
|
5400
|
+
while (!(next = iter.next()).done) {
|
|
5401
|
+
list.push(next.value);
|
|
5402
|
+
}
|
|
5403
|
+
return list;
|
|
5404
|
+
}
|
|
5378
5405
|
|
|
5379
|
-
function
|
|
5406
|
+
function _includesWith(pred, x, list) {
|
|
5380
5407
|
var idx = 0;
|
|
5381
|
-
var len =
|
|
5382
|
-
var result = Array(len);
|
|
5408
|
+
var len = list.length;
|
|
5383
5409
|
while (idx < len) {
|
|
5384
|
-
|
|
5410
|
+
if (pred(x, list[idx])) {
|
|
5411
|
+
return true;
|
|
5412
|
+
}
|
|
5385
5413
|
idx += 1;
|
|
5386
5414
|
}
|
|
5387
|
-
return
|
|
5415
|
+
return false;
|
|
5388
5416
|
}
|
|
5389
5417
|
|
|
5390
|
-
function
|
|
5391
|
-
|
|
5418
|
+
function _functionName(f) {
|
|
5419
|
+
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
|
5420
|
+
var match = String(f).match(/^function (\w*)/);
|
|
5421
|
+
return match == null ? '' : match[1];
|
|
5392
5422
|
}
|
|
5393
5423
|
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
* @private
|
|
5398
|
-
* @category Type
|
|
5399
|
-
* @category List
|
|
5400
|
-
* @sig * -> Boolean
|
|
5401
|
-
* @param {*} x The object to test.
|
|
5402
|
-
* @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
|
|
5403
|
-
* @example
|
|
5404
|
-
*
|
|
5405
|
-
* _isArrayLike([]); //=> true
|
|
5406
|
-
* _isArrayLike(true); //=> false
|
|
5407
|
-
* _isArrayLike({}); //=> false
|
|
5408
|
-
* _isArrayLike({length: 10}); //=> false
|
|
5409
|
-
* _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
|
|
5410
|
-
* _isArrayLike({nodeType: 1, length: 1}) // => false
|
|
5411
|
-
*/
|
|
5424
|
+
function _has(prop, obj) {
|
|
5425
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
5426
|
+
}
|
|
5412
5427
|
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
return
|
|
5420
|
-
}
|
|
5421
|
-
|
|
5422
|
-
return
|
|
5423
|
-
}
|
|
5424
|
-
if (_isString(x)) {
|
|
5425
|
-
return false;
|
|
5426
|
-
}
|
|
5427
|
-
if (x.length === 0) {
|
|
5428
|
-
return true;
|
|
5429
|
-
}
|
|
5430
|
-
if (x.length > 0) {
|
|
5431
|
-
return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
|
|
5428
|
+
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
5429
|
+
function _objectIs(a, b) {
|
|
5430
|
+
// SameValue algorithm
|
|
5431
|
+
if (a === b) {
|
|
5432
|
+
// Steps 1-5, 7-10
|
|
5433
|
+
// Steps 6.b-6.e: +0 != -0
|
|
5434
|
+
return a !== 0 || 1 / a === 1 / b;
|
|
5435
|
+
} else {
|
|
5436
|
+
// Step 6.a: NaN == NaN
|
|
5437
|
+
return a !== a && b !== b;
|
|
5432
5438
|
}
|
|
5433
|
-
|
|
5434
|
-
|
|
5439
|
+
}
|
|
5440
|
+
var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
|
|
5435
5441
|
|
|
5436
|
-
var
|
|
5442
|
+
var toString$1 = Object.prototype.toString;
|
|
5443
|
+
var _isArguments = /*#__PURE__*/
|
|
5437
5444
|
function () {
|
|
5438
|
-
function
|
|
5439
|
-
|
|
5440
|
-
}
|
|
5441
|
-
|
|
5442
|
-
throw new Error('init not implemented on XWrap');
|
|
5443
|
-
};
|
|
5444
|
-
XWrap.prototype['@@transducer/result'] = function (acc) {
|
|
5445
|
-
return acc;
|
|
5446
|
-
};
|
|
5447
|
-
XWrap.prototype['@@transducer/step'] = function (acc, x) {
|
|
5448
|
-
return this.f(acc, x);
|
|
5445
|
+
return toString$1.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
5446
|
+
return toString$1.call(x) === '[object Arguments]';
|
|
5447
|
+
} : function _isArguments(x) {
|
|
5448
|
+
return _has('callee', x);
|
|
5449
5449
|
};
|
|
5450
|
-
return XWrap;
|
|
5451
5450
|
}();
|
|
5452
|
-
function _xwrap(fn) {
|
|
5453
|
-
return new XWrap(fn);
|
|
5454
|
-
}
|
|
5455
5451
|
|
|
5452
|
+
var hasEnumBug = ! /*#__PURE__*/
|
|
5453
|
+
{
|
|
5454
|
+
toString: null
|
|
5455
|
+
}.propertyIsEnumerable('toString');
|
|
5456
|
+
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
|
|
5457
|
+
|
|
5458
|
+
var hasArgsEnumBug = /*#__PURE__*/
|
|
5459
|
+
function () {
|
|
5460
|
+
|
|
5461
|
+
return arguments.propertyIsEnumerable('length');
|
|
5462
|
+
}();
|
|
5463
|
+
var contains = function contains(list, item) {
|
|
5464
|
+
var idx = 0;
|
|
5465
|
+
while (idx < list.length) {
|
|
5466
|
+
if (list[idx] === item) {
|
|
5467
|
+
return true;
|
|
5468
|
+
}
|
|
5469
|
+
idx += 1;
|
|
5470
|
+
}
|
|
5471
|
+
return false;
|
|
5472
|
+
};
|
|
5456
5473
|
/**
|
|
5457
|
-
*
|
|
5458
|
-
*
|
|
5459
|
-
*
|
|
5474
|
+
* Returns a list containing the names of all the enumerable own properties of
|
|
5475
|
+
* the supplied object.
|
|
5476
|
+
* Note that the order of the output array is not guaranteed to be consistent
|
|
5477
|
+
* across different JS platforms.
|
|
5460
5478
|
*
|
|
5461
5479
|
* @func
|
|
5462
5480
|
* @memberOf R
|
|
5463
|
-
* @since v0.
|
|
5464
|
-
* @category Function
|
|
5481
|
+
* @since v0.1.0
|
|
5465
5482
|
* @category Object
|
|
5466
|
-
* @sig
|
|
5467
|
-
* @param {
|
|
5468
|
-
* @
|
|
5469
|
-
* @
|
|
5470
|
-
* @see R.partial
|
|
5483
|
+
* @sig {k: v} -> [k]
|
|
5484
|
+
* @param {Object} obj The object to extract properties from
|
|
5485
|
+
* @return {Array} An array of the object's own properties.
|
|
5486
|
+
* @see R.keysIn, R.values, R.toPairs
|
|
5471
5487
|
* @example
|
|
5472
5488
|
*
|
|
5473
|
-
*
|
|
5474
|
-
* R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
|
|
5475
|
-
* // logs {a: 2}
|
|
5476
|
-
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
5477
|
-
*/
|
|
5478
|
-
|
|
5479
|
-
var bind = /*#__PURE__*/
|
|
5480
|
-
_curry2(function bind(fn, thisObj) {
|
|
5481
|
-
return _arity(fn.length, function () {
|
|
5482
|
-
return fn.apply(thisObj, arguments);
|
|
5483
|
-
});
|
|
5484
|
-
});
|
|
5485
|
-
|
|
5486
|
-
function _arrayReduce(xf, acc, list) {
|
|
5487
|
-
var idx = 0;
|
|
5488
|
-
var len = list.length;
|
|
5489
|
-
while (idx < len) {
|
|
5490
|
-
acc = xf['@@transducer/step'](acc, list[idx]);
|
|
5491
|
-
if (acc && acc['@@transducer/reduced']) {
|
|
5492
|
-
acc = acc['@@transducer/value'];
|
|
5493
|
-
break;
|
|
5494
|
-
}
|
|
5495
|
-
idx += 1;
|
|
5496
|
-
}
|
|
5497
|
-
return xf['@@transducer/result'](acc);
|
|
5498
|
-
}
|
|
5499
|
-
function _iterableReduce(xf, acc, iter) {
|
|
5500
|
-
var step = iter.next();
|
|
5501
|
-
while (!step.done) {
|
|
5502
|
-
acc = xf['@@transducer/step'](acc, step.value);
|
|
5503
|
-
if (acc && acc['@@transducer/reduced']) {
|
|
5504
|
-
acc = acc['@@transducer/value'];
|
|
5505
|
-
break;
|
|
5506
|
-
}
|
|
5507
|
-
step = iter.next();
|
|
5508
|
-
}
|
|
5509
|
-
return xf['@@transducer/result'](acc);
|
|
5510
|
-
}
|
|
5511
|
-
function _methodReduce(xf, acc, obj, methodName) {
|
|
5512
|
-
return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
|
|
5513
|
-
}
|
|
5514
|
-
var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
|
|
5515
|
-
function _reduce(fn, acc, list) {
|
|
5516
|
-
if (typeof fn === 'function') {
|
|
5517
|
-
fn = _xwrap(fn);
|
|
5518
|
-
}
|
|
5519
|
-
if (_isArrayLike(list)) {
|
|
5520
|
-
return _arrayReduce(fn, acc, list);
|
|
5521
|
-
}
|
|
5522
|
-
if (typeof list['fantasy-land/reduce'] === 'function') {
|
|
5523
|
-
return _methodReduce(fn, acc, list, 'fantasy-land/reduce');
|
|
5524
|
-
}
|
|
5525
|
-
if (list[symIterator] != null) {
|
|
5526
|
-
return _iterableReduce(fn, acc, list[symIterator]());
|
|
5527
|
-
}
|
|
5528
|
-
if (typeof list.next === 'function') {
|
|
5529
|
-
return _iterableReduce(fn, acc, list);
|
|
5530
|
-
}
|
|
5531
|
-
if (typeof list.reduce === 'function') {
|
|
5532
|
-
return _methodReduce(fn, acc, list, 'reduce');
|
|
5533
|
-
}
|
|
5534
|
-
throw new TypeError('reduce: list must be array or iterable');
|
|
5535
|
-
}
|
|
5536
|
-
|
|
5537
|
-
var XMap = /*#__PURE__*/
|
|
5538
|
-
function () {
|
|
5539
|
-
function XMap(f, xf) {
|
|
5540
|
-
this.xf = xf;
|
|
5541
|
-
this.f = f;
|
|
5542
|
-
}
|
|
5543
|
-
XMap.prototype['@@transducer/init'] = _xfBase.init;
|
|
5544
|
-
XMap.prototype['@@transducer/result'] = _xfBase.result;
|
|
5545
|
-
XMap.prototype['@@transducer/step'] = function (result, input) {
|
|
5546
|
-
return this.xf['@@transducer/step'](result, this.f(input));
|
|
5547
|
-
};
|
|
5548
|
-
return XMap;
|
|
5549
|
-
}();
|
|
5550
|
-
var _xmap = /*#__PURE__*/
|
|
5551
|
-
_curry2(function _xmap(f, xf) {
|
|
5552
|
-
return new XMap(f, xf);
|
|
5553
|
-
});
|
|
5554
|
-
|
|
5555
|
-
function _has(prop, obj) {
|
|
5556
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
5557
|
-
}
|
|
5558
|
-
|
|
5559
|
-
var toString = Object.prototype.toString;
|
|
5560
|
-
var _isArguments = /*#__PURE__*/
|
|
5561
|
-
function () {
|
|
5562
|
-
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
|
5563
|
-
return toString.call(x) === '[object Arguments]';
|
|
5564
|
-
} : function _isArguments(x) {
|
|
5565
|
-
return _has('callee', x);
|
|
5566
|
-
};
|
|
5567
|
-
}();
|
|
5568
|
-
|
|
5569
|
-
var hasEnumBug = ! /*#__PURE__*/
|
|
5570
|
-
{
|
|
5571
|
-
toString: null
|
|
5572
|
-
}.propertyIsEnumerable('toString');
|
|
5573
|
-
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
|
|
5574
|
-
|
|
5575
|
-
var hasArgsEnumBug = /*#__PURE__*/
|
|
5576
|
-
function () {
|
|
5577
|
-
|
|
5578
|
-
return arguments.propertyIsEnumerable('length');
|
|
5579
|
-
}();
|
|
5580
|
-
var contains = function contains(list, item) {
|
|
5581
|
-
var idx = 0;
|
|
5582
|
-
while (idx < list.length) {
|
|
5583
|
-
if (list[idx] === item) {
|
|
5584
|
-
return true;
|
|
5585
|
-
}
|
|
5586
|
-
idx += 1;
|
|
5587
|
-
}
|
|
5588
|
-
return false;
|
|
5589
|
-
};
|
|
5590
|
-
/**
|
|
5591
|
-
* Returns a list containing the names of all the enumerable own properties of
|
|
5592
|
-
* the supplied object.
|
|
5593
|
-
* Note that the order of the output array is not guaranteed to be consistent
|
|
5594
|
-
* across different JS platforms.
|
|
5595
|
-
*
|
|
5596
|
-
* @func
|
|
5597
|
-
* @memberOf R
|
|
5598
|
-
* @since v0.1.0
|
|
5599
|
-
* @category Object
|
|
5600
|
-
* @sig {k: v} -> [k]
|
|
5601
|
-
* @param {Object} obj The object to extract properties from
|
|
5602
|
-
* @return {Array} An array of the object's own properties.
|
|
5603
|
-
* @see R.keysIn, R.values, R.toPairs
|
|
5604
|
-
* @example
|
|
5605
|
-
*
|
|
5606
|
-
* R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
|
|
5489
|
+
* R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
|
|
5607
5490
|
*/
|
|
5608
5491
|
|
|
5609
5492
|
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ? /*#__PURE__*/
|
|
@@ -5635,110 +5518,6 @@ _curry1(function keys(obj) {
|
|
|
5635
5518
|
return ks;
|
|
5636
5519
|
});
|
|
5637
5520
|
|
|
5638
|
-
/**
|
|
5639
|
-
* Takes a function and
|
|
5640
|
-
* a [functor](https://github.com/fantasyland/fantasy-land#functor),
|
|
5641
|
-
* applies the function to each of the functor's values, and returns
|
|
5642
|
-
* a functor of the same shape.
|
|
5643
|
-
*
|
|
5644
|
-
* Ramda provides suitable `map` implementations for `Array` and `Object`,
|
|
5645
|
-
* so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
|
|
5646
|
-
*
|
|
5647
|
-
* Dispatches to the `map` method of the second argument, if present.
|
|
5648
|
-
*
|
|
5649
|
-
* Acts as a transducer if a transformer is given in list position.
|
|
5650
|
-
*
|
|
5651
|
-
* Also treats functions as functors and will compose them together.
|
|
5652
|
-
*
|
|
5653
|
-
* @func
|
|
5654
|
-
* @memberOf R
|
|
5655
|
-
* @since v0.1.0
|
|
5656
|
-
* @category List
|
|
5657
|
-
* @sig Functor f => (a -> b) -> f a -> f b
|
|
5658
|
-
* @param {Function} fn The function to be called on every element of the input `list`.
|
|
5659
|
-
* @param {Array} list The list to be iterated over.
|
|
5660
|
-
* @return {Array} The new list.
|
|
5661
|
-
* @see R.transduce, R.addIndex, R.pluck, R.project
|
|
5662
|
-
* @example
|
|
5663
|
-
*
|
|
5664
|
-
* const double = x => x * 2;
|
|
5665
|
-
*
|
|
5666
|
-
* R.map(double, [1, 2, 3]); //=> [2, 4, 6]
|
|
5667
|
-
*
|
|
5668
|
-
* R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
|
|
5669
|
-
* @symb R.map(f, [a, b]) = [f(a), f(b)]
|
|
5670
|
-
* @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
|
|
5671
|
-
* @symb R.map(f, functor_o) = functor_o.map(f)
|
|
5672
|
-
*/
|
|
5673
|
-
|
|
5674
|
-
var map = /*#__PURE__*/
|
|
5675
|
-
_curry2( /*#__PURE__*/
|
|
5676
|
-
_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
|
|
5677
|
-
switch (Object.prototype.toString.call(functor)) {
|
|
5678
|
-
case '[object Function]':
|
|
5679
|
-
return curryN(functor.length, function () {
|
|
5680
|
-
return fn.call(this, functor.apply(this, arguments));
|
|
5681
|
-
});
|
|
5682
|
-
case '[object Object]':
|
|
5683
|
-
return _reduce(function (acc, key) {
|
|
5684
|
-
acc[key] = fn(functor[key]);
|
|
5685
|
-
return acc;
|
|
5686
|
-
}, {}, keys(functor));
|
|
5687
|
-
default:
|
|
5688
|
-
return _map(fn, functor);
|
|
5689
|
-
}
|
|
5690
|
-
}));
|
|
5691
|
-
|
|
5692
|
-
/**
|
|
5693
|
-
* Returns a single item by iterating through the list, successively calling
|
|
5694
|
-
* the iterator function and passing it an accumulator value and the current
|
|
5695
|
-
* value from the array, and then passing the result to the next call.
|
|
5696
|
-
*
|
|
5697
|
-
* The iterator function receives two values: *(acc, value)*. It may use
|
|
5698
|
-
* [`R.reduced`](#reduced) to shortcut the iteration.
|
|
5699
|
-
*
|
|
5700
|
-
* The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
|
|
5701
|
-
* is *(value, acc)*.
|
|
5702
|
-
*
|
|
5703
|
-
* Note: `R.reduce` does not skip deleted or unassigned indices (sparse
|
|
5704
|
-
* arrays), unlike the native `Array.prototype.reduce` method. For more details
|
|
5705
|
-
* on this behavior, see:
|
|
5706
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
|
|
5707
|
-
*
|
|
5708
|
-
* Dispatches to the `reduce` method of the third argument, if present. When
|
|
5709
|
-
* doing so, it is up to the user to handle the [`R.reduced`](#reduced)
|
|
5710
|
-
* shortcuting, as this is not implemented by `reduce`.
|
|
5711
|
-
*
|
|
5712
|
-
* @func
|
|
5713
|
-
* @memberOf R
|
|
5714
|
-
* @since v0.1.0
|
|
5715
|
-
* @category List
|
|
5716
|
-
* @sig ((a, b) -> a) -> a -> [b] -> a
|
|
5717
|
-
* @param {Function} fn The iterator function. Receives two values, the accumulator and the
|
|
5718
|
-
* current element from the array.
|
|
5719
|
-
* @param {*} acc The accumulator value.
|
|
5720
|
-
* @param {Array} list The list to iterate over.
|
|
5721
|
-
* @return {*} The final, accumulated value.
|
|
5722
|
-
* @see R.reduced, R.addIndex, R.reduceRight
|
|
5723
|
-
* @example
|
|
5724
|
-
*
|
|
5725
|
-
* R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
|
|
5726
|
-
* // - -10
|
|
5727
|
-
* // / \ / \
|
|
5728
|
-
* // - 4 -6 4
|
|
5729
|
-
* // / \ / \
|
|
5730
|
-
* // - 3 ==> -3 3
|
|
5731
|
-
* // / \ / \
|
|
5732
|
-
* // - 2 -1 2
|
|
5733
|
-
* // / \ / \
|
|
5734
|
-
* // 0 1 0 1
|
|
5735
|
-
*
|
|
5736
|
-
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
5737
|
-
*/
|
|
5738
|
-
|
|
5739
|
-
var reduce = /*#__PURE__*/
|
|
5740
|
-
_curry3(_reduce);
|
|
5741
|
-
|
|
5742
5521
|
/**
|
|
5743
5522
|
* Gives a single-word string description of the (native) type of a value,
|
|
5744
5523
|
* returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
|
|
@@ -5749,7 +5528,7 @@ _curry3(_reduce);
|
|
|
5749
5528
|
* @memberOf R
|
|
5750
5529
|
* @since v0.8.0
|
|
5751
5530
|
* @category Type
|
|
5752
|
-
* @sig
|
|
5531
|
+
* @sig * -> String
|
|
5753
5532
|
* @param {*} val The value to test
|
|
5754
5533
|
* @return {String}
|
|
5755
5534
|
* @example
|
|
@@ -5770,99 +5549,31 @@ _curry1(function type(val) {
|
|
|
5770
5549
|
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
|
|
5771
5550
|
});
|
|
5772
5551
|
|
|
5773
|
-
function _identity(x) {
|
|
5774
|
-
return x;
|
|
5775
|
-
}
|
|
5776
|
-
|
|
5777
5552
|
/**
|
|
5778
|
-
*
|
|
5779
|
-
*
|
|
5780
|
-
*
|
|
5781
|
-
*
|
|
5782
|
-
* @memberOf R
|
|
5783
|
-
* @since v0.1.0
|
|
5784
|
-
* @category Function
|
|
5785
|
-
* @sig a -> a
|
|
5786
|
-
* @param {*} x The value to return.
|
|
5787
|
-
* @return {*} The input value, `x`.
|
|
5788
|
-
* @example
|
|
5789
|
-
*
|
|
5790
|
-
* R.identity(1); //=> 1
|
|
5553
|
+
* private _uniqContentEquals function.
|
|
5554
|
+
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
5555
|
+
* - iterators lengths are the same
|
|
5556
|
+
* - iterators values are unique
|
|
5791
5557
|
*
|
|
5792
|
-
*
|
|
5793
|
-
*
|
|
5794
|
-
*
|
|
5795
|
-
*/
|
|
5558
|
+
* false-positive result will be returned for comparison of, e.g.
|
|
5559
|
+
* - [1,2,3] and [1,2,3,4]
|
|
5560
|
+
* - [1,1,1] and [1,2,3]
|
|
5561
|
+
* */
|
|
5796
5562
|
|
|
5797
|
-
|
|
5798
|
-
|
|
5563
|
+
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
|
5564
|
+
var a = _arrayFromIterator(aIterator);
|
|
5565
|
+
var b = _arrayFromIterator(bIterator);
|
|
5566
|
+
function eq(_a, _b) {
|
|
5567
|
+
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
5568
|
+
} // if *a* array contains any element that is not included in *b*
|
|
5799
5569
|
|
|
5800
|
-
function
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
while (!(next = iter.next()).done) {
|
|
5804
|
-
list.push(next.value);
|
|
5805
|
-
}
|
|
5806
|
-
return list;
|
|
5570
|
+
return !_includesWith(function (b, aItem) {
|
|
5571
|
+
return !_includesWith(eq, aItem, b);
|
|
5572
|
+
}, b, a);
|
|
5807
5573
|
}
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
var len = list.length;
|
|
5812
|
-
while (idx < len) {
|
|
5813
|
-
if (pred(x, list[idx])) {
|
|
5814
|
-
return true;
|
|
5815
|
-
}
|
|
5816
|
-
idx += 1;
|
|
5817
|
-
}
|
|
5818
|
-
return false;
|
|
5819
|
-
}
|
|
5820
|
-
|
|
5821
|
-
function _functionName(f) {
|
|
5822
|
-
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
|
5823
|
-
var match = String(f).match(/^function (\w*)/);
|
|
5824
|
-
return match == null ? '' : match[1];
|
|
5825
|
-
}
|
|
5826
|
-
|
|
5827
|
-
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
5828
|
-
function _objectIs(a, b) {
|
|
5829
|
-
// SameValue algorithm
|
|
5830
|
-
if (a === b) {
|
|
5831
|
-
// Steps 1-5, 7-10
|
|
5832
|
-
// Steps 6.b-6.e: +0 != -0
|
|
5833
|
-
return a !== 0 || 1 / a === 1 / b;
|
|
5834
|
-
} else {
|
|
5835
|
-
// Step 6.a: NaN == NaN
|
|
5836
|
-
return a !== a && b !== b;
|
|
5837
|
-
}
|
|
5838
|
-
}
|
|
5839
|
-
var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
|
|
5840
|
-
|
|
5841
|
-
/**
|
|
5842
|
-
* private _uniqContentEquals function.
|
|
5843
|
-
* That function is checking equality of 2 iterator contents with 2 assumptions
|
|
5844
|
-
* - iterators lengths are the same
|
|
5845
|
-
* - iterators values are unique
|
|
5846
|
-
*
|
|
5847
|
-
* false-positive result will be returned for comparison of, e.g.
|
|
5848
|
-
* - [1,2,3] and [1,2,3,4]
|
|
5849
|
-
* - [1,1,1] and [1,2,3]
|
|
5850
|
-
* */
|
|
5851
|
-
|
|
5852
|
-
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
|
5853
|
-
var a = _arrayFromIterator(aIterator);
|
|
5854
|
-
var b = _arrayFromIterator(bIterator);
|
|
5855
|
-
function eq(_a, _b) {
|
|
5856
|
-
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
|
5857
|
-
} // if *a* array contains any element that is not included in *b*
|
|
5858
|
-
|
|
5859
|
-
return !_includesWith(function (b, aItem) {
|
|
5860
|
-
return !_includesWith(eq, aItem, b);
|
|
5861
|
-
}, b, a);
|
|
5862
|
-
}
|
|
5863
|
-
function _equals(a, b, stackA, stackB) {
|
|
5864
|
-
if (_objectIs$1(a, b)) {
|
|
5865
|
-
return true;
|
|
5574
|
+
function _equals(a, b, stackA, stackB) {
|
|
5575
|
+
if (_objectIs$1(a, b)) {
|
|
5576
|
+
return true;
|
|
5866
5577
|
}
|
|
5867
5578
|
var typeA = type(a);
|
|
5868
5579
|
if (typeA !== type(b)) {
|
|
@@ -5885,7 +5596,7 @@ function _equals(a, b, stackA, stackB) {
|
|
|
5885
5596
|
case 'Boolean':
|
|
5886
5597
|
case 'Number':
|
|
5887
5598
|
case 'String':
|
|
5888
|
-
if (!(_typeof(a) === _typeof(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
|
|
5599
|
+
if (!(_typeof$1(a) === _typeof$1(b) && _objectIs$1(a.valueOf(), b.valueOf()))) {
|
|
5889
5600
|
return false;
|
|
5890
5601
|
}
|
|
5891
5602
|
break;
|
|
@@ -5940,115 +5651,711 @@ function _equals(a, b, stackA, stackB) {
|
|
|
5940
5651
|
case 'Float64Array':
|
|
5941
5652
|
case 'ArrayBuffer':
|
|
5942
5653
|
break;
|
|
5943
|
-
default:
|
|
5944
|
-
// Values of other types are only equal if identical.
|
|
5945
|
-
return false;
|
|
5946
|
-
}
|
|
5947
|
-
var keysA = keys(a);
|
|
5948
|
-
if (keysA.length !== keys(b).length) {
|
|
5949
|
-
return false;
|
|
5950
|
-
}
|
|
5951
|
-
var extendedStackA = stackA.concat([a]);
|
|
5952
|
-
var extendedStackB = stackB.concat([b]);
|
|
5953
|
-
idx = keysA.length - 1;
|
|
5954
|
-
while (idx >= 0) {
|
|
5955
|
-
var key = keysA[idx];
|
|
5956
|
-
if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
5957
|
-
return false;
|
|
5654
|
+
default:
|
|
5655
|
+
// Values of other types are only equal if identical.
|
|
5656
|
+
return false;
|
|
5657
|
+
}
|
|
5658
|
+
var keysA = keys(a);
|
|
5659
|
+
if (keysA.length !== keys(b).length) {
|
|
5660
|
+
return false;
|
|
5661
|
+
}
|
|
5662
|
+
var extendedStackA = stackA.concat([a]);
|
|
5663
|
+
var extendedStackB = stackB.concat([b]);
|
|
5664
|
+
idx = keysA.length - 1;
|
|
5665
|
+
while (idx >= 0) {
|
|
5666
|
+
var key = keysA[idx];
|
|
5667
|
+
if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
|
5668
|
+
return false;
|
|
5669
|
+
}
|
|
5670
|
+
idx -= 1;
|
|
5671
|
+
}
|
|
5672
|
+
return true;
|
|
5673
|
+
}
|
|
5674
|
+
|
|
5675
|
+
/**
|
|
5676
|
+
* Returns `true` if its arguments are equivalent, `false` otherwise. Handles
|
|
5677
|
+
* cyclical data structures.
|
|
5678
|
+
*
|
|
5679
|
+
* Dispatches symmetrically to the `equals` methods of both arguments, if
|
|
5680
|
+
* present.
|
|
5681
|
+
*
|
|
5682
|
+
* @func
|
|
5683
|
+
* @memberOf R
|
|
5684
|
+
* @since v0.15.0
|
|
5685
|
+
* @category Relation
|
|
5686
|
+
* @sig a -> b -> Boolean
|
|
5687
|
+
* @param {*} a
|
|
5688
|
+
* @param {*} b
|
|
5689
|
+
* @return {Boolean}
|
|
5690
|
+
* @example
|
|
5691
|
+
*
|
|
5692
|
+
* R.equals(1, 1); //=> true
|
|
5693
|
+
* R.equals(1, '1'); //=> false
|
|
5694
|
+
* R.equals([1, 2, 3], [1, 2, 3]); //=> true
|
|
5695
|
+
*
|
|
5696
|
+
* const a = {}; a.v = a;
|
|
5697
|
+
* const b = {}; b.v = b;
|
|
5698
|
+
* R.equals(a, b); //=> true
|
|
5699
|
+
*/
|
|
5700
|
+
|
|
5701
|
+
var equals = /*#__PURE__*/
|
|
5702
|
+
_curry2(function equals(a, b) {
|
|
5703
|
+
return _equals(a, b, [], []);
|
|
5704
|
+
});
|
|
5705
|
+
|
|
5706
|
+
function _indexOf(list, a, idx) {
|
|
5707
|
+
var inf, item; // Array.prototype.indexOf doesn't exist below IE9
|
|
5708
|
+
|
|
5709
|
+
if (typeof list.indexOf === 'function') {
|
|
5710
|
+
switch (_typeof$1(a)) {
|
|
5711
|
+
case 'number':
|
|
5712
|
+
if (a === 0) {
|
|
5713
|
+
// manually crawl the list to distinguish between +0 and -0
|
|
5714
|
+
inf = 1 / a;
|
|
5715
|
+
while (idx < list.length) {
|
|
5716
|
+
item = list[idx];
|
|
5717
|
+
if (item === 0 && 1 / item === inf) {
|
|
5718
|
+
return idx;
|
|
5719
|
+
}
|
|
5720
|
+
idx += 1;
|
|
5721
|
+
}
|
|
5722
|
+
return -1;
|
|
5723
|
+
} else if (a !== a) {
|
|
5724
|
+
// NaN
|
|
5725
|
+
while (idx < list.length) {
|
|
5726
|
+
item = list[idx];
|
|
5727
|
+
if (typeof item === 'number' && item !== item) {
|
|
5728
|
+
return idx;
|
|
5729
|
+
}
|
|
5730
|
+
idx += 1;
|
|
5731
|
+
}
|
|
5732
|
+
return -1;
|
|
5733
|
+
} // non-zero numbers can utilise Set
|
|
5734
|
+
|
|
5735
|
+
return list.indexOf(a, idx);
|
|
5736
|
+
// all these types can utilise Set
|
|
5737
|
+
|
|
5738
|
+
case 'string':
|
|
5739
|
+
case 'boolean':
|
|
5740
|
+
case 'function':
|
|
5741
|
+
case 'undefined':
|
|
5742
|
+
return list.indexOf(a, idx);
|
|
5743
|
+
case 'object':
|
|
5744
|
+
if (a === null) {
|
|
5745
|
+
// null can utilise Set
|
|
5746
|
+
return list.indexOf(a, idx);
|
|
5747
|
+
}
|
|
5748
|
+
}
|
|
5749
|
+
} // anything else not covered above, defer to R.equals
|
|
5750
|
+
|
|
5751
|
+
while (idx < list.length) {
|
|
5752
|
+
if (equals(list[idx], a)) {
|
|
5753
|
+
return idx;
|
|
5754
|
+
}
|
|
5755
|
+
idx += 1;
|
|
5756
|
+
}
|
|
5757
|
+
return -1;
|
|
5758
|
+
}
|
|
5759
|
+
|
|
5760
|
+
function _includes(a, list) {
|
|
5761
|
+
return _indexOf(list, a, 0) >= 0;
|
|
5762
|
+
}
|
|
5763
|
+
|
|
5764
|
+
function _map(fn, functor) {
|
|
5765
|
+
var idx = 0;
|
|
5766
|
+
var len = functor.length;
|
|
5767
|
+
var result = Array(len);
|
|
5768
|
+
while (idx < len) {
|
|
5769
|
+
result[idx] = fn(functor[idx]);
|
|
5770
|
+
idx += 1;
|
|
5771
|
+
}
|
|
5772
|
+
return result;
|
|
5773
|
+
}
|
|
5774
|
+
|
|
5775
|
+
function _quote(s) {
|
|
5776
|
+
var escaped = s.replace(/\\/g, '\\\\').replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
|
|
5777
|
+
.replace(/\f/g, '\\f').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/\v/g, '\\v').replace(/\0/g, '\\0');
|
|
5778
|
+
return '"' + escaped.replace(/"/g, '\\"') + '"';
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5781
|
+
/**
|
|
5782
|
+
* Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
|
|
5783
|
+
*/
|
|
5784
|
+
var pad = function pad(n) {
|
|
5785
|
+
return (n < 10 ? '0' : '') + n;
|
|
5786
|
+
};
|
|
5787
|
+
var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
|
|
5788
|
+
return d.toISOString();
|
|
5789
|
+
} : function _toISOString(d) {
|
|
5790
|
+
return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + '.' + (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z';
|
|
5791
|
+
};
|
|
5792
|
+
|
|
5793
|
+
function _complement(f) {
|
|
5794
|
+
return function () {
|
|
5795
|
+
return !f.apply(this, arguments);
|
|
5796
|
+
};
|
|
5797
|
+
}
|
|
5798
|
+
|
|
5799
|
+
function _arrayReduce(reducer, acc, list) {
|
|
5800
|
+
var index = 0;
|
|
5801
|
+
var length = list.length;
|
|
5802
|
+
while (index < length) {
|
|
5803
|
+
acc = reducer(acc, list[index]);
|
|
5804
|
+
index += 1;
|
|
5805
|
+
}
|
|
5806
|
+
return acc;
|
|
5807
|
+
}
|
|
5808
|
+
|
|
5809
|
+
function _filter(fn, list) {
|
|
5810
|
+
var idx = 0;
|
|
5811
|
+
var len = list.length;
|
|
5812
|
+
var result = [];
|
|
5813
|
+
while (idx < len) {
|
|
5814
|
+
if (fn(list[idx])) {
|
|
5815
|
+
result[result.length] = list[idx];
|
|
5816
|
+
}
|
|
5817
|
+
idx += 1;
|
|
5818
|
+
}
|
|
5819
|
+
return result;
|
|
5820
|
+
}
|
|
5821
|
+
|
|
5822
|
+
function _isObject(x) {
|
|
5823
|
+
return Object.prototype.toString.call(x) === '[object Object]';
|
|
5824
|
+
}
|
|
5825
|
+
|
|
5826
|
+
var XFilter = /*#__PURE__*/
|
|
5827
|
+
function () {
|
|
5828
|
+
function XFilter(f, xf) {
|
|
5829
|
+
this.xf = xf;
|
|
5830
|
+
this.f = f;
|
|
5831
|
+
}
|
|
5832
|
+
XFilter.prototype['@@transducer/init'] = _xfBase.init;
|
|
5833
|
+
XFilter.prototype['@@transducer/result'] = _xfBase.result;
|
|
5834
|
+
XFilter.prototype['@@transducer/step'] = function (result, input) {
|
|
5835
|
+
return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
|
|
5836
|
+
};
|
|
5837
|
+
return XFilter;
|
|
5838
|
+
}();
|
|
5839
|
+
function _xfilter(f) {
|
|
5840
|
+
return function (xf) {
|
|
5841
|
+
return new XFilter(f, xf);
|
|
5842
|
+
};
|
|
5843
|
+
}
|
|
5844
|
+
|
|
5845
|
+
/**
|
|
5846
|
+
* Takes a predicate and a `Filterable`, and returns a new filterable of the
|
|
5847
|
+
* same type containing the members of the given filterable which satisfy the
|
|
5848
|
+
* given predicate. Filterable objects include plain objects or any object
|
|
5849
|
+
* that has a filter method such as `Array`.
|
|
5850
|
+
*
|
|
5851
|
+
* Dispatches to the `filter` method of the second argument, if present.
|
|
5852
|
+
*
|
|
5853
|
+
* Acts as a transducer if a transformer is given in list position.
|
|
5854
|
+
*
|
|
5855
|
+
* @func
|
|
5856
|
+
* @memberOf R
|
|
5857
|
+
* @since v0.1.0
|
|
5858
|
+
* @category List
|
|
5859
|
+
* @category Object
|
|
5860
|
+
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
|
5861
|
+
* @param {Function} pred
|
|
5862
|
+
* @param {Array} filterable
|
|
5863
|
+
* @return {Array} Filterable
|
|
5864
|
+
* @see R.reject, R.transduce, R.addIndex
|
|
5865
|
+
* @example
|
|
5866
|
+
*
|
|
5867
|
+
* const isEven = n => n % 2 === 0;
|
|
5868
|
+
*
|
|
5869
|
+
* R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]
|
|
5870
|
+
*
|
|
5871
|
+
* R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
5872
|
+
*/
|
|
5873
|
+
|
|
5874
|
+
var filter = /*#__PURE__*/
|
|
5875
|
+
_curry2( /*#__PURE__*/
|
|
5876
|
+
_dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
|
|
5877
|
+
return _isObject(filterable) ? _arrayReduce(function (acc, key) {
|
|
5878
|
+
if (pred(filterable[key])) {
|
|
5879
|
+
acc[key] = filterable[key];
|
|
5880
|
+
}
|
|
5881
|
+
return acc;
|
|
5882
|
+
}, {}, keys(filterable)) :
|
|
5883
|
+
// else
|
|
5884
|
+
_filter(pred, filterable);
|
|
5885
|
+
}));
|
|
5886
|
+
|
|
5887
|
+
/**
|
|
5888
|
+
* The complement of [`filter`](#filter).
|
|
5889
|
+
*
|
|
5890
|
+
* Acts as a transducer if a transformer is given in list position. Filterable
|
|
5891
|
+
* objects include plain objects or any object that has a filter method such
|
|
5892
|
+
* as `Array`.
|
|
5893
|
+
*
|
|
5894
|
+
* @func
|
|
5895
|
+
* @memberOf R
|
|
5896
|
+
* @since v0.1.0
|
|
5897
|
+
* @category List
|
|
5898
|
+
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
|
5899
|
+
* @param {Function} pred
|
|
5900
|
+
* @param {Array} filterable
|
|
5901
|
+
* @return {Array}
|
|
5902
|
+
* @see R.filter, R.transduce, R.addIndex
|
|
5903
|
+
* @example
|
|
5904
|
+
*
|
|
5905
|
+
* const isOdd = (n) => n % 2 !== 0;
|
|
5906
|
+
*
|
|
5907
|
+
* R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]
|
|
5908
|
+
*
|
|
5909
|
+
* R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
|
5910
|
+
*/
|
|
5911
|
+
|
|
5912
|
+
var reject = /*#__PURE__*/
|
|
5913
|
+
_curry2(function reject(pred, filterable) {
|
|
5914
|
+
return filter(_complement(pred), filterable);
|
|
5915
|
+
});
|
|
5916
|
+
|
|
5917
|
+
function _toString(x, seen) {
|
|
5918
|
+
var recur = function recur(y) {
|
|
5919
|
+
var xs = seen.concat([x]);
|
|
5920
|
+
return _includes(y, xs) ? '<Circular>' : _toString(y, xs);
|
|
5921
|
+
}; // mapPairs :: (Object, [String]) -> [String]
|
|
5922
|
+
|
|
5923
|
+
var mapPairs = function mapPairs(obj, keys) {
|
|
5924
|
+
return _map(function (k) {
|
|
5925
|
+
return _quote(k) + ': ' + recur(obj[k]);
|
|
5926
|
+
}, keys.slice().sort());
|
|
5927
|
+
};
|
|
5928
|
+
switch (Object.prototype.toString.call(x)) {
|
|
5929
|
+
case '[object Arguments]':
|
|
5930
|
+
return '(function() { return arguments; }(' + _map(recur, x).join(', ') + '))';
|
|
5931
|
+
case '[object Array]':
|
|
5932
|
+
return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
|
|
5933
|
+
return /^\d+$/.test(k);
|
|
5934
|
+
}, keys(x)))).join(', ') + ']';
|
|
5935
|
+
case '[object Boolean]':
|
|
5936
|
+
return _typeof$1(x) === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
|
|
5937
|
+
case '[object Date]':
|
|
5938
|
+
return 'new Date(' + (isNaN(x.valueOf()) ? recur(NaN) : _quote(_toISOString(x))) + ')';
|
|
5939
|
+
case '[object Map]':
|
|
5940
|
+
return 'new Map(' + recur(Array.from(x)) + ')';
|
|
5941
|
+
case '[object Null]':
|
|
5942
|
+
return 'null';
|
|
5943
|
+
case '[object Number]':
|
|
5944
|
+
return _typeof$1(x) === 'object' ? 'new Number(' + recur(x.valueOf()) + ')' : 1 / x === -Infinity ? '-0' : x.toString(10);
|
|
5945
|
+
case '[object Set]':
|
|
5946
|
+
return 'new Set(' + recur(Array.from(x).sort()) + ')';
|
|
5947
|
+
case '[object String]':
|
|
5948
|
+
return _typeof$1(x) === 'object' ? 'new String(' + recur(x.valueOf()) + ')' : _quote(x);
|
|
5949
|
+
case '[object Undefined]':
|
|
5950
|
+
return 'undefined';
|
|
5951
|
+
default:
|
|
5952
|
+
if (typeof x.toString === 'function') {
|
|
5953
|
+
var repr = x.toString();
|
|
5954
|
+
if (repr !== '[object Object]') {
|
|
5955
|
+
return repr;
|
|
5956
|
+
}
|
|
5957
|
+
}
|
|
5958
|
+
return '{' + mapPairs(x, keys(x)).join(', ') + '}';
|
|
5959
|
+
}
|
|
5960
|
+
}
|
|
5961
|
+
|
|
5962
|
+
/**
|
|
5963
|
+
* Returns the string representation of the given value. `eval`'ing the output
|
|
5964
|
+
* should result in a value equivalent to the input value. Many of the built-in
|
|
5965
|
+
* `toString` methods do not satisfy this requirement.
|
|
5966
|
+
*
|
|
5967
|
+
* If the given value is an `[object Object]` with a `toString` method other
|
|
5968
|
+
* than `Object.prototype.toString`, this method is invoked with no arguments
|
|
5969
|
+
* to produce the return value. This means user-defined constructor functions
|
|
5970
|
+
* can provide a suitable `toString` method. For example:
|
|
5971
|
+
*
|
|
5972
|
+
* function Point(x, y) {
|
|
5973
|
+
* this.x = x;
|
|
5974
|
+
* this.y = y;
|
|
5975
|
+
* }
|
|
5976
|
+
*
|
|
5977
|
+
* Point.prototype.toString = function() {
|
|
5978
|
+
* return 'new Point(' + this.x + ', ' + this.y + ')';
|
|
5979
|
+
* };
|
|
5980
|
+
*
|
|
5981
|
+
* R.toString(new Point(1, 2)); //=> 'new Point(1, 2)'
|
|
5982
|
+
*
|
|
5983
|
+
* @func
|
|
5984
|
+
* @memberOf R
|
|
5985
|
+
* @since v0.14.0
|
|
5986
|
+
* @category String
|
|
5987
|
+
* @sig * -> String
|
|
5988
|
+
* @param {*} val
|
|
5989
|
+
* @return {String}
|
|
5990
|
+
* @example
|
|
5991
|
+
*
|
|
5992
|
+
* R.toString(42); //=> '42'
|
|
5993
|
+
* R.toString('abc'); //=> '"abc"'
|
|
5994
|
+
* R.toString([1, 2, 3]); //=> '[1, 2, 3]'
|
|
5995
|
+
* R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
|
|
5996
|
+
* R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
|
|
5997
|
+
*/
|
|
5998
|
+
|
|
5999
|
+
var toString = /*#__PURE__*/
|
|
6000
|
+
_curry1(function toString(val) {
|
|
6001
|
+
return _toString(val, []);
|
|
6002
|
+
});
|
|
6003
|
+
|
|
6004
|
+
/**
|
|
6005
|
+
* Returns the larger of its two arguments.
|
|
6006
|
+
*
|
|
6007
|
+
* @func
|
|
6008
|
+
* @memberOf R
|
|
6009
|
+
* @since v0.1.0
|
|
6010
|
+
* @category Relation
|
|
6011
|
+
* @sig Ord a => a -> a -> a
|
|
6012
|
+
* @param {*} a
|
|
6013
|
+
* @param {*} b
|
|
6014
|
+
* @return {*}
|
|
6015
|
+
* @see R.maxBy, R.min
|
|
6016
|
+
* @example
|
|
6017
|
+
*
|
|
6018
|
+
* R.max(789, 123); //=> 789
|
|
6019
|
+
* R.max('a', 'b'); //=> 'b'
|
|
6020
|
+
*/
|
|
6021
|
+
|
|
6022
|
+
var max = /*#__PURE__*/
|
|
6023
|
+
_curry2(function max(a, b) {
|
|
6024
|
+
if (a === b) {
|
|
6025
|
+
return b;
|
|
6026
|
+
}
|
|
6027
|
+
function safeMax(x, y) {
|
|
6028
|
+
if (x > y !== y > x) {
|
|
6029
|
+
return y > x ? y : x;
|
|
6030
|
+
}
|
|
6031
|
+
return undefined;
|
|
6032
|
+
}
|
|
6033
|
+
var maxByValue = safeMax(a, b);
|
|
6034
|
+
if (maxByValue !== undefined) {
|
|
6035
|
+
return maxByValue;
|
|
6036
|
+
}
|
|
6037
|
+
var maxByType = safeMax(_typeof$1(a), _typeof$1(b));
|
|
6038
|
+
if (maxByType !== undefined) {
|
|
6039
|
+
return maxByType === _typeof$1(a) ? a : b;
|
|
6040
|
+
}
|
|
6041
|
+
var stringA = toString(a);
|
|
6042
|
+
var maxByStringValue = safeMax(stringA, toString(b));
|
|
6043
|
+
if (maxByStringValue !== undefined) {
|
|
6044
|
+
return maxByStringValue === stringA ? a : b;
|
|
6045
|
+
}
|
|
6046
|
+
return b;
|
|
6047
|
+
});
|
|
6048
|
+
|
|
6049
|
+
var XMap = /*#__PURE__*/
|
|
6050
|
+
function () {
|
|
6051
|
+
function XMap(f, xf) {
|
|
6052
|
+
this.xf = xf;
|
|
6053
|
+
this.f = f;
|
|
6054
|
+
}
|
|
6055
|
+
XMap.prototype['@@transducer/init'] = _xfBase.init;
|
|
6056
|
+
XMap.prototype['@@transducer/result'] = _xfBase.result;
|
|
6057
|
+
XMap.prototype['@@transducer/step'] = function (result, input) {
|
|
6058
|
+
return this.xf['@@transducer/step'](result, this.f(input));
|
|
6059
|
+
};
|
|
6060
|
+
return XMap;
|
|
6061
|
+
}();
|
|
6062
|
+
var _xmap = function _xmap(f) {
|
|
6063
|
+
return function (xf) {
|
|
6064
|
+
return new XMap(f, xf);
|
|
6065
|
+
};
|
|
6066
|
+
};
|
|
6067
|
+
|
|
6068
|
+
/**
|
|
6069
|
+
* Takes a function and
|
|
6070
|
+
* a [functor](https://github.com/fantasyland/fantasy-land#functor),
|
|
6071
|
+
* applies the function to each of the functor's values, and returns
|
|
6072
|
+
* a functor of the same shape.
|
|
6073
|
+
*
|
|
6074
|
+
* Ramda provides suitable `map` implementations for `Array` and `Object`,
|
|
6075
|
+
* so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
|
|
6076
|
+
*
|
|
6077
|
+
* Dispatches to the `map` method of the second argument, if present.
|
|
6078
|
+
*
|
|
6079
|
+
* Acts as a transducer if a transformer is given in list position.
|
|
6080
|
+
*
|
|
6081
|
+
* Also treats functions as functors and will compose them together.
|
|
6082
|
+
*
|
|
6083
|
+
* @func
|
|
6084
|
+
* @memberOf R
|
|
6085
|
+
* @since v0.1.0
|
|
6086
|
+
* @category List
|
|
6087
|
+
* @sig Functor f => (a -> b) -> f a -> f b
|
|
6088
|
+
* @param {Function} fn The function to be called on every element of the input `list`.
|
|
6089
|
+
* @param {Array} list The list to be iterated over.
|
|
6090
|
+
* @return {Array} The new list.
|
|
6091
|
+
* @see R.transduce, R.addIndex, R.pluck, R.project
|
|
6092
|
+
* @example
|
|
6093
|
+
*
|
|
6094
|
+
* const double = x => x * 2;
|
|
6095
|
+
*
|
|
6096
|
+
* R.map(double, [1, 2, 3]); //=> [2, 4, 6]
|
|
6097
|
+
*
|
|
6098
|
+
* R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
|
|
6099
|
+
* @symb R.map(f, [a, b]) = [f(a), f(b)]
|
|
6100
|
+
* @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
|
|
6101
|
+
* @symb R.map(f, functor_o) = functor_o.map(f)
|
|
6102
|
+
*/
|
|
6103
|
+
|
|
6104
|
+
var map = /*#__PURE__*/
|
|
6105
|
+
_curry2( /*#__PURE__*/
|
|
6106
|
+
_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
|
|
6107
|
+
switch (Object.prototype.toString.call(functor)) {
|
|
6108
|
+
case '[object Function]':
|
|
6109
|
+
return curryN(functor.length, function () {
|
|
6110
|
+
return fn.call(this, functor.apply(this, arguments));
|
|
6111
|
+
});
|
|
6112
|
+
case '[object Object]':
|
|
6113
|
+
return _arrayReduce(function (acc, key) {
|
|
6114
|
+
acc[key] = fn(functor[key]);
|
|
6115
|
+
return acc;
|
|
6116
|
+
}, {}, keys(functor));
|
|
6117
|
+
default:
|
|
6118
|
+
return _map(fn, functor);
|
|
6119
|
+
}
|
|
6120
|
+
}));
|
|
6121
|
+
|
|
6122
|
+
function _isString(x) {
|
|
6123
|
+
return Object.prototype.toString.call(x) === '[object String]';
|
|
6124
|
+
}
|
|
6125
|
+
|
|
6126
|
+
/**
|
|
6127
|
+
* Tests whether or not an object is similar to an array.
|
|
6128
|
+
*
|
|
6129
|
+
* @private
|
|
6130
|
+
* @category Type
|
|
6131
|
+
* @category List
|
|
6132
|
+
* @sig * -> Boolean
|
|
6133
|
+
* @param {*} x The object to test.
|
|
6134
|
+
* @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
|
|
6135
|
+
* @example
|
|
6136
|
+
*
|
|
6137
|
+
* _isArrayLike([]); //=> true
|
|
6138
|
+
* _isArrayLike(true); //=> false
|
|
6139
|
+
* _isArrayLike({}); //=> false
|
|
6140
|
+
* _isArrayLike({length: 10}); //=> false
|
|
6141
|
+
* _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
|
|
6142
|
+
* _isArrayLike({nodeType: 1, length: 1}) // => false
|
|
6143
|
+
*/
|
|
6144
|
+
|
|
6145
|
+
var _isArrayLike = /*#__PURE__*/
|
|
6146
|
+
_curry1(function isArrayLike(x) {
|
|
6147
|
+
if (_isArray(x)) {
|
|
6148
|
+
return true;
|
|
6149
|
+
}
|
|
6150
|
+
if (!x) {
|
|
6151
|
+
return false;
|
|
6152
|
+
}
|
|
6153
|
+
if (_typeof$1(x) !== 'object') {
|
|
6154
|
+
return false;
|
|
6155
|
+
}
|
|
6156
|
+
if (_isString(x)) {
|
|
6157
|
+
return false;
|
|
6158
|
+
}
|
|
6159
|
+
if (x.length === 0) {
|
|
6160
|
+
return true;
|
|
6161
|
+
}
|
|
6162
|
+
if (x.length > 0) {
|
|
6163
|
+
return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
|
|
6164
|
+
}
|
|
6165
|
+
return false;
|
|
6166
|
+
});
|
|
6167
|
+
|
|
6168
|
+
var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
|
|
6169
|
+
function _createReduce(arrayReduce, methodReduce, iterableReduce) {
|
|
6170
|
+
return function _reduce(xf, acc, list) {
|
|
6171
|
+
if (_isArrayLike(list)) {
|
|
6172
|
+
return arrayReduce(xf, acc, list);
|
|
6173
|
+
}
|
|
6174
|
+
if (list == null) {
|
|
6175
|
+
return acc;
|
|
6176
|
+
}
|
|
6177
|
+
if (typeof list['fantasy-land/reduce'] === 'function') {
|
|
6178
|
+
return methodReduce(xf, acc, list, 'fantasy-land/reduce');
|
|
6179
|
+
}
|
|
6180
|
+
if (list[symIterator] != null) {
|
|
6181
|
+
return iterableReduce(xf, acc, list[symIterator]());
|
|
6182
|
+
}
|
|
6183
|
+
if (typeof list.next === 'function') {
|
|
6184
|
+
return iterableReduce(xf, acc, list);
|
|
6185
|
+
}
|
|
6186
|
+
if (typeof list.reduce === 'function') {
|
|
6187
|
+
return methodReduce(xf, acc, list, 'reduce');
|
|
6188
|
+
}
|
|
6189
|
+
throw new TypeError('reduce: list must be array or iterable');
|
|
6190
|
+
};
|
|
6191
|
+
}
|
|
6192
|
+
|
|
6193
|
+
function _xArrayReduce(xf, acc, list) {
|
|
6194
|
+
var idx = 0;
|
|
6195
|
+
var len = list.length;
|
|
6196
|
+
while (idx < len) {
|
|
6197
|
+
acc = xf['@@transducer/step'](acc, list[idx]);
|
|
6198
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
6199
|
+
acc = acc['@@transducer/value'];
|
|
6200
|
+
break;
|
|
6201
|
+
}
|
|
6202
|
+
idx += 1;
|
|
6203
|
+
}
|
|
6204
|
+
return xf['@@transducer/result'](acc);
|
|
6205
|
+
}
|
|
6206
|
+
|
|
6207
|
+
/**
|
|
6208
|
+
* Creates a function that is bound to a context.
|
|
6209
|
+
* Note: `R.bind` does not provide the additional argument-binding capabilities of
|
|
6210
|
+
* [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
|
|
6211
|
+
*
|
|
6212
|
+
* @func
|
|
6213
|
+
* @memberOf R
|
|
6214
|
+
* @since v0.6.0
|
|
6215
|
+
* @category Function
|
|
6216
|
+
* @category Object
|
|
6217
|
+
* @sig (* -> *) -> {*} -> (* -> *)
|
|
6218
|
+
* @param {Function} fn The function to bind to context
|
|
6219
|
+
* @param {Object} thisObj The context to bind `fn` to
|
|
6220
|
+
* @return {Function} A function that will execute in the context of `thisObj`.
|
|
6221
|
+
* @see R.partial
|
|
6222
|
+
* @example
|
|
6223
|
+
*
|
|
6224
|
+
* const log = R.bind(console.log, console);
|
|
6225
|
+
* R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
|
|
6226
|
+
* // logs {a: 2}
|
|
6227
|
+
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
6228
|
+
*/
|
|
6229
|
+
|
|
6230
|
+
var bind = /*#__PURE__*/
|
|
6231
|
+
_curry2(function bind(fn, thisObj) {
|
|
6232
|
+
return _arity(fn.length, function () {
|
|
6233
|
+
return fn.apply(thisObj, arguments);
|
|
6234
|
+
});
|
|
6235
|
+
});
|
|
6236
|
+
|
|
6237
|
+
function _xIterableReduce(xf, acc, iter) {
|
|
6238
|
+
var step = iter.next();
|
|
6239
|
+
while (!step.done) {
|
|
6240
|
+
acc = xf['@@transducer/step'](acc, step.value);
|
|
6241
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
6242
|
+
acc = acc['@@transducer/value'];
|
|
6243
|
+
break;
|
|
5958
6244
|
}
|
|
5959
|
-
|
|
6245
|
+
step = iter.next();
|
|
5960
6246
|
}
|
|
5961
|
-
return
|
|
6247
|
+
return xf['@@transducer/result'](acc);
|
|
6248
|
+
}
|
|
6249
|
+
function _xMethodReduce(xf, acc, obj, methodName) {
|
|
6250
|
+
return xf['@@transducer/result'](obj[methodName](bind(xf['@@transducer/step'], xf), acc));
|
|
6251
|
+
}
|
|
6252
|
+
var _xReduce = /*#__PURE__*/
|
|
6253
|
+
_createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
|
|
6254
|
+
|
|
6255
|
+
var XWrap = /*#__PURE__*/
|
|
6256
|
+
function () {
|
|
6257
|
+
function XWrap(fn) {
|
|
6258
|
+
this.f = fn;
|
|
6259
|
+
}
|
|
6260
|
+
XWrap.prototype['@@transducer/init'] = function () {
|
|
6261
|
+
throw new Error('init not implemented on XWrap');
|
|
6262
|
+
};
|
|
6263
|
+
XWrap.prototype['@@transducer/result'] = function (acc) {
|
|
6264
|
+
return acc;
|
|
6265
|
+
};
|
|
6266
|
+
XWrap.prototype['@@transducer/step'] = function (acc, x) {
|
|
6267
|
+
return this.f(acc, x);
|
|
6268
|
+
};
|
|
6269
|
+
return XWrap;
|
|
6270
|
+
}();
|
|
6271
|
+
function _xwrap(fn) {
|
|
6272
|
+
return new XWrap(fn);
|
|
5962
6273
|
}
|
|
5963
6274
|
|
|
5964
6275
|
/**
|
|
5965
|
-
* Returns
|
|
5966
|
-
*
|
|
6276
|
+
* Returns a single item by iterating through the list, successively calling
|
|
6277
|
+
* the iterator function and passing it an accumulator value and the current
|
|
6278
|
+
* value from the array, and then passing the result to the next call.
|
|
5967
6279
|
*
|
|
5968
|
-
*
|
|
5969
|
-
*
|
|
6280
|
+
* The iterator function receives two values: *(acc, value)*. It may use
|
|
6281
|
+
* [`R.reduced`](#reduced) to shortcut the iteration.
|
|
6282
|
+
*
|
|
6283
|
+
* The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
|
|
6284
|
+
* is *(value, acc)*.
|
|
6285
|
+
*
|
|
6286
|
+
* Note: `R.reduce` does not skip deleted or unassigned indices (sparse
|
|
6287
|
+
* arrays), unlike the native `Array.prototype.reduce` method. For more details
|
|
6288
|
+
* on this behavior, see:
|
|
6289
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
|
|
6290
|
+
*
|
|
6291
|
+
* Be cautious of mutating and returning the accumulator. If you reuse it across
|
|
6292
|
+
* invocations, it will continue to accumulate onto the same value. The general
|
|
6293
|
+
* recommendation is to always return a new value. If you can't do so for
|
|
6294
|
+
* performance reasons, then be sure to reinitialize the accumulator on each
|
|
6295
|
+
* invocation.
|
|
6296
|
+
*
|
|
6297
|
+
* Dispatches to the `reduce` method of the third argument, if present. When
|
|
6298
|
+
* doing so, it is up to the user to handle the [`R.reduced`](#reduced)
|
|
6299
|
+
* shortcuting, as this is not implemented by `reduce`.
|
|
5970
6300
|
*
|
|
5971
6301
|
* @func
|
|
5972
6302
|
* @memberOf R
|
|
5973
|
-
* @since v0.
|
|
5974
|
-
* @category
|
|
5975
|
-
* @sig a -> b ->
|
|
5976
|
-
* @param {
|
|
5977
|
-
*
|
|
5978
|
-
* @
|
|
6303
|
+
* @since v0.1.0
|
|
6304
|
+
* @category List
|
|
6305
|
+
* @sig ((a, b) -> a) -> a -> [b] -> a
|
|
6306
|
+
* @param {Function} fn The iterator function. Receives two values, the accumulator and the
|
|
6307
|
+
* current element from the array.
|
|
6308
|
+
* @param {*} acc The accumulator value.
|
|
6309
|
+
* @param {Array} list The list to iterate over.
|
|
6310
|
+
* @return {*} The final, accumulated value.
|
|
6311
|
+
* @see R.reduced, R.addIndex, R.reduceRight
|
|
5979
6312
|
* @example
|
|
5980
6313
|
*
|
|
5981
|
-
* R.
|
|
5982
|
-
*
|
|
5983
|
-
*
|
|
6314
|
+
* R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
|
|
6315
|
+
* // - -10
|
|
6316
|
+
* // / \ / \
|
|
6317
|
+
* // - 4 -6 4
|
|
6318
|
+
* // / \ / \
|
|
6319
|
+
* // - 3 ==> -3 3
|
|
6320
|
+
* // / \ / \
|
|
6321
|
+
* // - 2 -1 2
|
|
6322
|
+
* // / \ / \
|
|
6323
|
+
* // 0 1 0 1
|
|
5984
6324
|
*
|
|
5985
|
-
*
|
|
5986
|
-
* const b = {}; b.v = b;
|
|
5987
|
-
* R.equals(a, b); //=> true
|
|
6325
|
+
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
5988
6326
|
*/
|
|
5989
6327
|
|
|
5990
|
-
var
|
|
5991
|
-
|
|
5992
|
-
return
|
|
6328
|
+
var reduce = /*#__PURE__*/
|
|
6329
|
+
_curry3(function (xf, acc, list) {
|
|
6330
|
+
return _xReduce(typeof xf === 'function' ? _xwrap(xf) : xf, acc, list);
|
|
5993
6331
|
});
|
|
5994
6332
|
|
|
5995
|
-
function
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
if (typeof list.indexOf === 'function') {
|
|
5999
|
-
switch (_typeof(a)) {
|
|
6000
|
-
case 'number':
|
|
6001
|
-
if (a === 0) {
|
|
6002
|
-
// manually crawl the list to distinguish between +0 and -0
|
|
6003
|
-
inf = 1 / a;
|
|
6004
|
-
while (idx < list.length) {
|
|
6005
|
-
item = list[idx];
|
|
6006
|
-
if (item === 0 && 1 / item === inf) {
|
|
6007
|
-
return idx;
|
|
6008
|
-
}
|
|
6009
|
-
idx += 1;
|
|
6010
|
-
}
|
|
6011
|
-
return -1;
|
|
6012
|
-
} else if (a !== a) {
|
|
6013
|
-
// NaN
|
|
6014
|
-
while (idx < list.length) {
|
|
6015
|
-
item = list[idx];
|
|
6016
|
-
if (typeof item === 'number' && item !== item) {
|
|
6017
|
-
return idx;
|
|
6018
|
-
}
|
|
6019
|
-
idx += 1;
|
|
6020
|
-
}
|
|
6021
|
-
return -1;
|
|
6022
|
-
} // non-zero numbers can utilise Set
|
|
6023
|
-
|
|
6024
|
-
return list.indexOf(a, idx);
|
|
6025
|
-
// all these types can utilise Set
|
|
6026
|
-
|
|
6027
|
-
case 'string':
|
|
6028
|
-
case 'boolean':
|
|
6029
|
-
case 'function':
|
|
6030
|
-
case 'undefined':
|
|
6031
|
-
return list.indexOf(a, idx);
|
|
6032
|
-
case 'object':
|
|
6033
|
-
if (a === null) {
|
|
6034
|
-
// null can utilise Set
|
|
6035
|
-
return list.indexOf(a, idx);
|
|
6036
|
-
}
|
|
6037
|
-
}
|
|
6038
|
-
} // anything else not covered above, defer to R.equals
|
|
6039
|
-
|
|
6040
|
-
while (idx < list.length) {
|
|
6041
|
-
if (equals(list[idx], a)) {
|
|
6042
|
-
return idx;
|
|
6043
|
-
}
|
|
6044
|
-
idx += 1;
|
|
6045
|
-
}
|
|
6046
|
-
return -1;
|
|
6333
|
+
function _identity(x) {
|
|
6334
|
+
return x;
|
|
6047
6335
|
}
|
|
6048
6336
|
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6337
|
+
/**
|
|
6338
|
+
* A function that does nothing but return the parameter supplied to it. Good
|
|
6339
|
+
* as a default or placeholder function.
|
|
6340
|
+
*
|
|
6341
|
+
* @func
|
|
6342
|
+
* @memberOf R
|
|
6343
|
+
* @since v0.1.0
|
|
6344
|
+
* @category Function
|
|
6345
|
+
* @sig a -> a
|
|
6346
|
+
* @param {*} x The value to return.
|
|
6347
|
+
* @return {*} The input value, `x`.
|
|
6348
|
+
* @example
|
|
6349
|
+
*
|
|
6350
|
+
* R.identity(1); //=> 1
|
|
6351
|
+
*
|
|
6352
|
+
* const obj = {};
|
|
6353
|
+
* R.identity(obj) === obj; //=> true
|
|
6354
|
+
* @symb R.identity(a) = a
|
|
6355
|
+
*/
|
|
6356
|
+
|
|
6357
|
+
var identity = /*#__PURE__*/
|
|
6358
|
+
_curry1(_identity);
|
|
6052
6359
|
|
|
6053
6360
|
/**
|
|
6054
6361
|
* Returns a function, `fn`, which encapsulates `if/else, if/else, ...` logic.
|
|
@@ -6134,7 +6441,7 @@ function () {
|
|
|
6134
6441
|
return _Set;
|
|
6135
6442
|
}();
|
|
6136
6443
|
function hasOrAdd(item, shouldAdd, set) {
|
|
6137
|
-
var type = _typeof(item);
|
|
6444
|
+
var type = _typeof$1(item);
|
|
6138
6445
|
var prevSize, newSize;
|
|
6139
6446
|
switch (type) {
|
|
6140
6447
|
case 'string':
|
|
@@ -6278,10 +6585,11 @@ function () {
|
|
|
6278
6585
|
};
|
|
6279
6586
|
return XUniqBy;
|
|
6280
6587
|
}();
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
}
|
|
6588
|
+
function _xuniqBy(f) {
|
|
6589
|
+
return function (xf) {
|
|
6590
|
+
return new XUniqBy(f, xf);
|
|
6591
|
+
};
|
|
6592
|
+
}
|
|
6285
6593
|
|
|
6286
6594
|
/**
|
|
6287
6595
|
* Returns a new list containing only one copy of each element in the original
|
|
@@ -6321,6 +6629,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
|
|
|
6321
6629
|
}
|
|
6322
6630
|
return result;
|
|
6323
6631
|
}));
|
|
6632
|
+
var uniqBy$1 = uniqBy;
|
|
6324
6633
|
|
|
6325
6634
|
/**
|
|
6326
6635
|
* Returns a new list containing only one copy of each element in the original
|
|
@@ -6341,7 +6650,7 @@ _dispatchable([], _xuniqBy, function (fn, list) {
|
|
|
6341
6650
|
*/
|
|
6342
6651
|
|
|
6343
6652
|
var uniq = /*#__PURE__*/
|
|
6344
|
-
uniqBy(identity);
|
|
6653
|
+
uniqBy$1(identity);
|
|
6345
6654
|
var uniq$1 = uniq;
|
|
6346
6655
|
|
|
6347
6656
|
function _isNumber(x) {
|
|
@@ -6565,9 +6874,7 @@ var __assign$a = undefined && undefined.__assign || function () {
|
|
|
6565
6874
|
__assign$a = Object.assign || function (t) {
|
|
6566
6875
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6567
6876
|
s = arguments[i];
|
|
6568
|
-
for (var p in s)
|
|
6569
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6570
|
-
}
|
|
6877
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6571
6878
|
}
|
|
6572
6879
|
return t;
|
|
6573
6880
|
};
|
|
@@ -6575,9 +6882,7 @@ var __assign$a = undefined && undefined.__assign || function () {
|
|
|
6575
6882
|
};
|
|
6576
6883
|
var __rest$9 = undefined && undefined.__rest || function (s, e) {
|
|
6577
6884
|
var t = {};
|
|
6578
|
-
for (var p in s)
|
|
6579
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6580
|
-
}
|
|
6885
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6581
6886
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
6582
6887
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
6583
6888
|
}
|
|
@@ -6622,9 +6927,7 @@ var __assign$9 = undefined && undefined.__assign || function () {
|
|
|
6622
6927
|
__assign$9 = Object.assign || function (t) {
|
|
6623
6928
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6624
6929
|
s = arguments[i];
|
|
6625
|
-
for (var p in s)
|
|
6626
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6627
|
-
}
|
|
6930
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6628
6931
|
}
|
|
6629
6932
|
return t;
|
|
6630
6933
|
};
|
|
@@ -6632,9 +6935,7 @@ var __assign$9 = undefined && undefined.__assign || function () {
|
|
|
6632
6935
|
};
|
|
6633
6936
|
var __rest$8 = undefined && undefined.__rest || function (s, e) {
|
|
6634
6937
|
var t = {};
|
|
6635
|
-
for (var p in s)
|
|
6636
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6637
|
-
}
|
|
6938
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
6638
6939
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
6639
6940
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
6640
6941
|
}
|
|
@@ -6860,11 +7161,7 @@ var ExceedConstrain = function ExceedConstrain(_ref) {
|
|
|
6860
7161
|
}, rest), children);
|
|
6861
7162
|
};
|
|
6862
7163
|
|
|
6863
|
-
var
|
|
6864
|
-
var reactInputMask = {
|
|
6865
|
-
get exports(){ return reactInputMaskExports; },
|
|
6866
|
-
set exports(v){ reactInputMaskExports = v; },
|
|
6867
|
-
};
|
|
7164
|
+
var reactInputMask = {exports: {}};
|
|
6868
7165
|
|
|
6869
7166
|
var reactInputMask_production_min;
|
|
6870
7167
|
var hasRequiredReactInputMask_production_min;
|
|
@@ -6872,7 +7169,7 @@ function requireReactInputMask_production_min() {
|
|
|
6872
7169
|
if (hasRequiredReactInputMask_production_min) return reactInputMask_production_min;
|
|
6873
7170
|
hasRequiredReactInputMask_production_min = 1;
|
|
6874
7171
|
function _interopDefault(e) {
|
|
6875
|
-
return e && "object" == _typeof(e) && "default" in e ? e["default"] : e;
|
|
7172
|
+
return e && "object" == _typeof$1(e) && "default" in e ? e["default"] : e;
|
|
6876
7173
|
}
|
|
6877
7174
|
var React = _interopDefault(React__default),
|
|
6878
7175
|
reactDom = require$$1;
|
|
@@ -6888,9 +7185,7 @@ function requireReactInputMask_production_min() {
|
|
|
6888
7185
|
return (_extends = Object.assign || function (e) {
|
|
6889
7186
|
for (var t = 1; t < arguments.length; t++) {
|
|
6890
7187
|
var n = arguments[t];
|
|
6891
|
-
for (var a in n)
|
|
6892
|
-
Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
6893
|
-
}
|
|
7188
|
+
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
6894
7189
|
}
|
|
6895
7190
|
return e;
|
|
6896
7191
|
}).apply(this, arguments);
|
|
@@ -6904,9 +7199,7 @@ function requireReactInputMask_production_min() {
|
|
|
6904
7199
|
a,
|
|
6905
7200
|
i = {},
|
|
6906
7201
|
r = Object.keys(e);
|
|
6907
|
-
for (a = 0; a < r.length; a++)
|
|
6908
|
-
n = r[a], 0 <= t.indexOf(n) || (i[n] = e[n]);
|
|
6909
|
-
}
|
|
7202
|
+
for (a = 0; a < r.length; a++) n = r[a], 0 <= t.indexOf(n) || (i[n] = e[n]);
|
|
6910
7203
|
return i;
|
|
6911
7204
|
}
|
|
6912
7205
|
function _assertThisInitialized(e) {
|
|
@@ -6997,9 +7290,7 @@ function requireReactInputMask_production_min() {
|
|
|
6997
7290
|
var n = e.maskChar,
|
|
6998
7291
|
a = e.prefix;
|
|
6999
7292
|
if (!n) {
|
|
7000
|
-
for (; t.length > a.length && isPermanentCharacter(e, t.length - 1);)
|
|
7001
|
-
t = t.slice(0, t.length - 1);
|
|
7002
|
-
}
|
|
7293
|
+
for (; t.length > a.length && isPermanentCharacter(e, t.length - 1);) t = t.slice(0, t.length - 1);
|
|
7003
7294
|
return t.length;
|
|
7004
7295
|
}
|
|
7005
7296
|
for (var i = a.length, r = t.length; r >= a.length; r--) {
|
|
@@ -7019,15 +7310,11 @@ function requireReactInputMask_production_min() {
|
|
|
7019
7310
|
a = e.mask,
|
|
7020
7311
|
i = e.prefix;
|
|
7021
7312
|
if (!n) {
|
|
7022
|
-
for ((t = insertString(e, "", t, 0)).length < i.length && (t = i); t.length < a.length && isPermanentCharacter(e, t.length);)
|
|
7023
|
-
t += a[t.length];
|
|
7024
|
-
}
|
|
7313
|
+
for ((t = insertString(e, "", t, 0)).length < i.length && (t = i); t.length < a.length && isPermanentCharacter(e, t.length);) t += a[t.length];
|
|
7025
7314
|
return t;
|
|
7026
7315
|
}
|
|
7027
7316
|
if (t) return insertString(e, formatValue(e, ""), t, 0);
|
|
7028
|
-
for (var r = 0; r < a.length; r++)
|
|
7029
|
-
isPermanentCharacter(e, r) ? t += a[r] : t += n;
|
|
7030
|
-
}
|
|
7317
|
+
for (var r = 0; r < a.length; r++) isPermanentCharacter(e, r) ? t += a[r] : t += n;
|
|
7031
7318
|
return t;
|
|
7032
7319
|
}
|
|
7033
7320
|
function clearRange(n, e, a, t) {
|
|
@@ -7039,9 +7326,7 @@ function requireReactInputMask_production_min() {
|
|
|
7039
7326
|
if (r) return l.map(function (e, t) {
|
|
7040
7327
|
return t < a || i <= t ? e : isPermanentCharacter(n, t) ? o[t] : r;
|
|
7041
7328
|
}).join("");
|
|
7042
|
-
for (var u = i; u < l.length; u++)
|
|
7043
|
-
isPermanentCharacter(n, u) && (l[u] = "");
|
|
7044
|
-
}
|
|
7329
|
+
for (var u = i; u < l.length; u++) isPermanentCharacter(n, u) && (l[u] = "");
|
|
7045
7330
|
return a = Math.max(s.length, a), l.splice(a, i - a), e = l.join(""), formatValue(n, e);
|
|
7046
7331
|
}
|
|
7047
7332
|
function insertString(r, o, e, s) {
|
|
@@ -7065,23 +7350,17 @@ function requireReactInputMask_production_min() {
|
|
|
7065
7350
|
n = t.split(""),
|
|
7066
7351
|
s = i;
|
|
7067
7352
|
return n.every(function (e) {
|
|
7068
|
-
for (; n = e, isPermanentCharacter(a, t = i) && n !== r[t];)
|
|
7069
|
-
if (++i >= r.length) return !1;
|
|
7070
|
-
}
|
|
7353
|
+
for (; n = e, isPermanentCharacter(a, t = i) && n !== r[t];) if (++i >= r.length) return !1;
|
|
7071
7354
|
var t, n;
|
|
7072
7355
|
return (isAllowedCharacter(a, i, e) || e === o) && i++, i < r.length;
|
|
7073
7356
|
}), i - s;
|
|
7074
7357
|
}
|
|
7075
7358
|
function getLeftEditablePosition(e, t) {
|
|
7076
|
-
for (var n = t; 0 <= n; --n)
|
|
7077
|
-
if (!isPermanentCharacter(e, n)) return n;
|
|
7078
|
-
}
|
|
7359
|
+
for (var n = t; 0 <= n; --n) if (!isPermanentCharacter(e, n)) return n;
|
|
7079
7360
|
return null;
|
|
7080
7361
|
}
|
|
7081
7362
|
function getRightEditablePosition(e, t) {
|
|
7082
|
-
for (var n = e.mask, a = t; a < n.length; ++a)
|
|
7083
|
-
if (!isPermanentCharacter(e, a)) return a;
|
|
7084
|
-
}
|
|
7363
|
+
for (var n = e.mask, a = t; a < n.length; ++a) if (!isPermanentCharacter(e, a)) return a;
|
|
7085
7364
|
return null;
|
|
7086
7365
|
}
|
|
7087
7366
|
function getStringValue(e) {
|
|
@@ -7511,7 +7790,7 @@ function requireReactInputMask_development() {
|
|
|
7511
7790
|
if (hasRequiredReactInputMask_development) return reactInputMask_development;
|
|
7512
7791
|
hasRequiredReactInputMask_development = 1;
|
|
7513
7792
|
function _interopDefault(ex) {
|
|
7514
|
-
return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
7793
|
+
return ex && _typeof$1(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
7515
7794
|
}
|
|
7516
7795
|
var React = _interopDefault(React__default);
|
|
7517
7796
|
var reactDom = require$$1;
|
|
@@ -8443,13 +8722,12 @@ function requireReactInputMask_development() {
|
|
|
8443
8722
|
return reactInputMask_development;
|
|
8444
8723
|
}
|
|
8445
8724
|
|
|
8446
|
-
(
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
})(reactInputMask);
|
|
8725
|
+
if (process.env.NODE_ENV === 'production') {
|
|
8726
|
+
reactInputMask.exports = requireReactInputMask_production_min();
|
|
8727
|
+
} else {
|
|
8728
|
+
reactInputMask.exports = requireReactInputMask_development();
|
|
8729
|
+
}
|
|
8730
|
+
var reactInputMaskExports = reactInputMask.exports;
|
|
8453
8731
|
var InputMask = /*@__PURE__*/getDefaultExportFromCjs(reactInputMaskExports);
|
|
8454
8732
|
|
|
8455
8733
|
var cardTypes$1 = {
|
|
@@ -8713,9 +8991,7 @@ var __assign$8 = commonjsGlobal && commonjsGlobal.__assign || function () {
|
|
|
8713
8991
|
__assign$8 = Object.assign || function (t) {
|
|
8714
8992
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8715
8993
|
s = arguments[i];
|
|
8716
|
-
for (var p in s)
|
|
8717
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8718
|
-
}
|
|
8994
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8719
8995
|
}
|
|
8720
8996
|
return t;
|
|
8721
8997
|
};
|
|
@@ -8816,14 +9092,13 @@ creditCardType.resetModifications = function () {
|
|
|
8816
9092
|
};
|
|
8817
9093
|
creditCardType.types = cardNames;
|
|
8818
9094
|
var dist$2 = creditCardType;
|
|
9095
|
+
var creditCardType$1 = /*@__PURE__*/getDefaultExportFromCjs(dist$2);
|
|
8819
9096
|
|
|
8820
9097
|
var __assign$7 = undefined && undefined.__assign || function () {
|
|
8821
9098
|
__assign$7 = Object.assign || function (t) {
|
|
8822
9099
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8823
9100
|
s = arguments[i];
|
|
8824
|
-
for (var p in s)
|
|
8825
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8826
|
-
}
|
|
9101
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8827
9102
|
}
|
|
8828
9103
|
return t;
|
|
8829
9104
|
};
|
|
@@ -8831,9 +9106,7 @@ var __assign$7 = undefined && undefined.__assign || function () {
|
|
|
8831
9106
|
};
|
|
8832
9107
|
var __rest$7 = undefined && undefined.__rest || function (s, e) {
|
|
8833
9108
|
var t = {};
|
|
8834
|
-
for (var p in s)
|
|
8835
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8836
|
-
}
|
|
9109
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8837
9110
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8838
9111
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8839
9112
|
}
|
|
@@ -8907,9 +9180,7 @@ var __assign$6 = undefined && undefined.__assign || function () {
|
|
|
8907
9180
|
__assign$6 = Object.assign || function (t) {
|
|
8908
9181
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8909
9182
|
s = arguments[i];
|
|
8910
|
-
for (var p in s)
|
|
8911
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8912
|
-
}
|
|
9183
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8913
9184
|
}
|
|
8914
9185
|
return t;
|
|
8915
9186
|
};
|
|
@@ -8917,9 +9188,7 @@ var __assign$6 = undefined && undefined.__assign || function () {
|
|
|
8917
9188
|
};
|
|
8918
9189
|
var __rest$6 = undefined && undefined.__rest || function (s, e) {
|
|
8919
9190
|
var t = {};
|
|
8920
|
-
for (var p in s)
|
|
8921
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8922
|
-
}
|
|
9191
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8923
9192
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8924
9193
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8925
9194
|
}
|
|
@@ -8964,9 +9233,7 @@ var __assign$5 = undefined && undefined.__assign || function () {
|
|
|
8964
9233
|
__assign$5 = Object.assign || function (t) {
|
|
8965
9234
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8966
9235
|
s = arguments[i];
|
|
8967
|
-
for (var p in s)
|
|
8968
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8969
|
-
}
|
|
9236
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8970
9237
|
}
|
|
8971
9238
|
return t;
|
|
8972
9239
|
};
|
|
@@ -8974,9 +9241,7 @@ var __assign$5 = undefined && undefined.__assign || function () {
|
|
|
8974
9241
|
};
|
|
8975
9242
|
var __rest$5 = undefined && undefined.__rest || function (s, e) {
|
|
8976
9243
|
var t = {};
|
|
8977
|
-
for (var p in s)
|
|
8978
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8979
|
-
}
|
|
9244
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8980
9245
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8981
9246
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8982
9247
|
}
|
|
@@ -9035,9 +9300,7 @@ mapCursorToMax.mapCursorToMax = function (cursor, max) {
|
|
|
9035
9300
|
(function (exports) {
|
|
9036
9301
|
|
|
9037
9302
|
function __export(m) {
|
|
9038
|
-
for (var p in m)
|
|
9039
|
-
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
9040
|
-
}
|
|
9303
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
9041
9304
|
}
|
|
9042
9305
|
Object.defineProperty(exports, "__esModule", {
|
|
9043
9306
|
value: true
|
|
@@ -9233,9 +9496,7 @@ var __assign$4 = undefined && undefined.__assign || function () {
|
|
|
9233
9496
|
__assign$4 = Object.assign || function (t) {
|
|
9234
9497
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9235
9498
|
s = arguments[i];
|
|
9236
|
-
for (var p in s)
|
|
9237
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9238
|
-
}
|
|
9499
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9239
9500
|
}
|
|
9240
9501
|
return t;
|
|
9241
9502
|
};
|
|
@@ -9243,9 +9504,7 @@ var __assign$4 = undefined && undefined.__assign || function () {
|
|
|
9243
9504
|
};
|
|
9244
9505
|
var __rest$4 = undefined && undefined.__rest || function (s, e) {
|
|
9245
9506
|
var t = {};
|
|
9246
|
-
for (var p in s)
|
|
9247
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9248
|
-
}
|
|
9507
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9249
9508
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9250
9509
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9251
9510
|
}
|
|
@@ -9296,9 +9555,7 @@ var __assign$3 = undefined && undefined.__assign || function () {
|
|
|
9296
9555
|
__assign$3 = Object.assign || function (t) {
|
|
9297
9556
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9298
9557
|
s = arguments[i];
|
|
9299
|
-
for (var p in s)
|
|
9300
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9301
|
-
}
|
|
9558
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9302
9559
|
}
|
|
9303
9560
|
return t;
|
|
9304
9561
|
};
|
|
@@ -9306,9 +9563,7 @@ var __assign$3 = undefined && undefined.__assign || function () {
|
|
|
9306
9563
|
};
|
|
9307
9564
|
var __rest$3 = undefined && undefined.__rest || function (s, e) {
|
|
9308
9565
|
var t = {};
|
|
9309
|
-
for (var p in s)
|
|
9310
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9311
|
-
}
|
|
9566
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9312
9567
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9313
9568
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9314
9569
|
}
|
|
@@ -9400,109 +9655,110 @@ var SearchInput = function SearchInput(_ref) {
|
|
|
9400
9655
|
}, /*#__PURE__*/React__default.createElement(Exit20, null)));
|
|
9401
9656
|
};
|
|
9402
9657
|
|
|
9403
|
-
var
|
|
9404
|
-
return "object" == _typeof(
|
|
9658
|
+
var t$1 = function t(_t) {
|
|
9659
|
+
return "object" == _typeof$1(_t) && null != _t && 1 === _t.nodeType;
|
|
9405
9660
|
},
|
|
9406
|
-
|
|
9407
|
-
return (!
|
|
9661
|
+
e = function e(t, _e) {
|
|
9662
|
+
return (!_e || "hidden" !== t) && "visible" !== t && "clip" !== t;
|
|
9408
9663
|
},
|
|
9409
|
-
n = function n(
|
|
9410
|
-
if (
|
|
9411
|
-
var _l = getComputedStyle(
|
|
9412
|
-
return
|
|
9413
|
-
var
|
|
9414
|
-
if (!
|
|
9664
|
+
n = function n(t, _n) {
|
|
9665
|
+
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
|
|
9666
|
+
var _l = getComputedStyle(t, null);
|
|
9667
|
+
return e(_l.overflowY, _n) || e(_l.overflowX, _n) || function (t) {
|
|
9668
|
+
var e = function (t) {
|
|
9669
|
+
if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
|
|
9415
9670
|
try {
|
|
9416
|
-
return
|
|
9417
|
-
} catch (
|
|
9671
|
+
return t.ownerDocument.defaultView.frameElement;
|
|
9672
|
+
} catch (t) {
|
|
9418
9673
|
return null;
|
|
9419
9674
|
}
|
|
9420
|
-
}(
|
|
9421
|
-
return !!
|
|
9422
|
-
}(
|
|
9675
|
+
}(t);
|
|
9676
|
+
return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
|
|
9677
|
+
}(t);
|
|
9423
9678
|
}
|
|
9424
9679
|
return !1;
|
|
9425
9680
|
},
|
|
9426
|
-
l = function l(
|
|
9427
|
-
return o <
|
|
9681
|
+
l = function l(t, e, n, _l2, i, o, r, d) {
|
|
9682
|
+
return o < t && r > e || o > t && r < e ? 0 : o <= t && d <= n || r >= e && d >= n ? o - t - _l2 : r > e && d < n || o < t && d > n ? r - e + i : 0;
|
|
9428
9683
|
},
|
|
9429
|
-
i = function i(
|
|
9430
|
-
var
|
|
9431
|
-
return null ==
|
|
9432
|
-
}
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9684
|
+
i = function i(t) {
|
|
9685
|
+
var e = t.parentElement;
|
|
9686
|
+
return null == e ? t.getRootNode().host || null : e;
|
|
9687
|
+
},
|
|
9688
|
+
o$1 = function o(e, _o2) {
|
|
9689
|
+
var r, d, h, f;
|
|
9690
|
+
if ("undefined" == typeof document) return [];
|
|
9691
|
+
var u = _o2.scrollMode,
|
|
9692
|
+
s = _o2.block,
|
|
9693
|
+
c = _o2.inline,
|
|
9694
|
+
a = _o2.boundary,
|
|
9695
|
+
g = _o2.skipOverflowHiddenElements,
|
|
9696
|
+
m = "function" == typeof a ? a : function (t) {
|
|
9697
|
+
return t !== a;
|
|
9698
|
+
};
|
|
9699
|
+
if (!t$1(e)) throw new TypeError("Invalid target");
|
|
9700
|
+
var p = document.scrollingElement || document.documentElement,
|
|
9701
|
+
w = [],
|
|
9702
|
+
W = e;
|
|
9703
|
+
for (; t$1(W) && m(W);) {
|
|
9704
|
+
if (W = i(W), W === p) {
|
|
9705
|
+
w.push(W);
|
|
9706
|
+
break;
|
|
9707
|
+
}
|
|
9708
|
+
null != W && W === document.body && n(W) && !n(document.documentElement) || null != W && n(W, g) && w.push(W);
|
|
9709
|
+
}
|
|
9710
|
+
var H = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
|
|
9711
|
+
b = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
|
|
9712
|
+
_window = window,
|
|
9713
|
+
v = _window.scrollX,
|
|
9714
|
+
y = _window.scrollY,
|
|
9715
|
+
_e$getBoundingClientR = e.getBoundingClientRect(),
|
|
9716
|
+
E = _e$getBoundingClientR.height,
|
|
9717
|
+
M = _e$getBoundingClientR.width,
|
|
9718
|
+
x = _e$getBoundingClientR.top,
|
|
9719
|
+
I = _e$getBoundingClientR.right,
|
|
9720
|
+
C = _e$getBoundingClientR.bottom,
|
|
9721
|
+
R = _e$getBoundingClientR.left,
|
|
9722
|
+
T = "start" === s || "nearest" === s ? x : "end" === s ? C : x + E / 2,
|
|
9723
|
+
V = "center" === c ? R + M / 2 : "end" === c ? I : R,
|
|
9724
|
+
k = [];
|
|
9725
|
+
for (var _t2 = 0; _t2 < w.length; _t2++) {
|
|
9726
|
+
var _e2 = w[_t2],
|
|
9727
|
+
_e$getBoundingClientR2 = _e2.getBoundingClientRect(),
|
|
9728
|
+
_n2 = _e$getBoundingClientR2.height,
|
|
9729
|
+
_i = _e$getBoundingClientR2.width,
|
|
9730
|
+
_o = _e$getBoundingClientR2.top,
|
|
9731
|
+
_r = _e$getBoundingClientR2.right,
|
|
9732
|
+
_d = _e$getBoundingClientR2.bottom,
|
|
9733
|
+
_h = _e$getBoundingClientR2.left;
|
|
9734
|
+
if ("if-needed" === u && x >= 0 && R >= 0 && C <= b && I <= H && x >= _o && C <= _d && R >= _h && I <= _r) return k;
|
|
9735
|
+
var _f = getComputedStyle(_e2),
|
|
9736
|
+
_a = parseInt(_f.borderLeftWidth, 10),
|
|
9737
|
+
_g = parseInt(_f.borderTopWidth, 10),
|
|
9738
|
+
_m = parseInt(_f.borderRightWidth, 10),
|
|
9739
|
+
_W = parseInt(_f.borderBottomWidth, 10),
|
|
9740
|
+
B = 0,
|
|
9741
|
+
D = 0,
|
|
9742
|
+
L = "offsetWidth" in _e2 ? _e2.offsetWidth - _e2.clientWidth - _a - _m : 0,
|
|
9743
|
+
S = "offsetHeight" in _e2 ? _e2.offsetHeight - _e2.clientHeight - _g - _W : 0,
|
|
9744
|
+
X = "offsetWidth" in _e2 ? 0 === _e2.offsetWidth ? 0 : _i / _e2.offsetWidth : 0,
|
|
9745
|
+
Y = "offsetHeight" in _e2 ? 0 === _e2.offsetHeight ? 0 : _n2 / _e2.offsetHeight : 0;
|
|
9746
|
+
if (p === _e2) B = "start" === s ? T : "end" === s ? T - b : "nearest" === s ? l(y, y + b, b, _g, _W, y + T, y + T + E, E) : T - b / 2, D = "start" === c ? V : "center" === c ? V - H / 2 : "end" === c ? V - H : l(v, v + H, H, _a, _m, v + V, v + V + M, M), B = Math.max(0, B + y), D = Math.max(0, D + v);else {
|
|
9747
|
+
B = "start" === s ? T - _o - _g : "end" === s ? T - _d + _W + S : "nearest" === s ? l(_o, _d, _n2, _g, _W + S, T, T + E, E) : T - (_o + _n2 / 2) + S / 2, D = "start" === c ? V - _h - _a : "center" === c ? V - (_h + _i / 2) + L / 2 : "end" === c ? V - _r + _m + L : l(_h, _r, _i, _a, _m + L, V, V + M, M);
|
|
9748
|
+
var _t3 = _e2.scrollLeft,
|
|
9749
|
+
_f2 = _e2.scrollTop;
|
|
9750
|
+
B = Math.max(0, Math.min(_f2 + B / Y, _e2.scrollHeight - _n2 / Y + S)), D = Math.max(0, Math.min(_t3 + D / X, _e2.scrollWidth - _i / X + L)), T += _f2 - B, V += _t3 - D;
|
|
9751
|
+
}
|
|
9752
|
+
k.push({
|
|
9753
|
+
el: _e2,
|
|
9754
|
+
top: B,
|
|
9755
|
+
left: D
|
|
9756
|
+
});
|
|
9452
9757
|
}
|
|
9453
|
-
|
|
9454
|
-
}
|
|
9455
|
-
var v = null != (d = null == (r = window.visualViewport) ? void 0 : r.width) ? d : innerWidth,
|
|
9456
|
-
y = null != (f = null == (h = window.visualViewport) ? void 0 : h.height) ? f : innerHeight,
|
|
9457
|
-
E = null != (u = window.scrollX) ? u : pageXOffset,
|
|
9458
|
-
M = null != (s = window.scrollY) ? s : pageYOffset,
|
|
9459
|
-
_t$getBoundingClientR = t.getBoundingClientRect(),
|
|
9460
|
-
x = _t$getBoundingClientR.height,
|
|
9461
|
-
I = _t$getBoundingClientR.width,
|
|
9462
|
-
C = _t$getBoundingClientR.top,
|
|
9463
|
-
R = _t$getBoundingClientR.right,
|
|
9464
|
-
T = _t$getBoundingClientR.bottom,
|
|
9465
|
-
V = _t$getBoundingClientR.left,
|
|
9466
|
-
k = "start" === c || "nearest" === c ? C : "end" === c ? T : C + x / 2,
|
|
9467
|
-
B = "center" === g ? V + I / 2 : "end" === g ? R : V,
|
|
9468
|
-
D = [];
|
|
9469
|
-
for (var _e2 = 0; _e2 < H.length; _e2++) {
|
|
9470
|
-
var _t2 = H[_e2],
|
|
9471
|
-
_t2$getBoundingClient = _t2.getBoundingClientRect(),
|
|
9472
|
-
_n2 = _t2$getBoundingClient.height,
|
|
9473
|
-
_i = _t2$getBoundingClient.width,
|
|
9474
|
-
_o = _t2$getBoundingClient.top,
|
|
9475
|
-
_r = _t2$getBoundingClient.right,
|
|
9476
|
-
_d = _t2$getBoundingClient.bottom,
|
|
9477
|
-
_h = _t2$getBoundingClient.left;
|
|
9478
|
-
if ("if-needed" === a && C >= 0 && V >= 0 && T <= y && R <= v && C >= _o && T <= _d && V >= _h && R <= _r) return D;
|
|
9479
|
-
var _f = getComputedStyle(_t2),
|
|
9480
|
-
_u = parseInt(_f.borderLeftWidth, 10),
|
|
9481
|
-
_s = parseInt(_f.borderTopWidth, 10),
|
|
9482
|
-
_m = parseInt(_f.borderRightWidth, 10),
|
|
9483
|
-
_p = parseInt(_f.borderBottomWidth, 10),
|
|
9484
|
-
_w = 0,
|
|
9485
|
-
_b = 0,
|
|
9486
|
-
O = "offsetWidth" in _t2 ? _t2.offsetWidth - _t2.clientWidth - _u - _m : 0,
|
|
9487
|
-
X = "offsetHeight" in _t2 ? _t2.offsetHeight - _t2.clientHeight - _s - _p : 0,
|
|
9488
|
-
Y = "offsetWidth" in _t2 ? 0 === _t2.offsetWidth ? 0 : _i / _t2.offsetWidth : 0,
|
|
9489
|
-
L = "offsetHeight" in _t2 ? 0 === _t2.offsetHeight ? 0 : _n2 / _t2.offsetHeight : 0;
|
|
9490
|
-
if (W === _t2) _w = "start" === c ? k : "end" === c ? k - y : "nearest" === c ? l(M, M + y, y, _s, _p, M + k, M + k + x, x) : k - y / 2, _b = "start" === g ? B : "center" === g ? B - v / 2 : "end" === g ? B - v : l(E, E + v, v, _u, _m, E + B, E + B + I, I), _w = Math.max(0, _w + M), _b = Math.max(0, _b + E);else {
|
|
9491
|
-
_w = "start" === c ? k - _o - _s : "end" === c ? k - _d + _p + X : "nearest" === c ? l(_o, _d, _n2, _s, _p + X, k, k + x, x) : k - (_o + _n2 / 2) + X / 2, _b = "start" === g ? B - _h - _u : "center" === g ? B - (_h + _i / 2) + O / 2 : "end" === g ? B - _r + _m + O : l(_h, _r, _i, _u, _m + O, B, B + I, I);
|
|
9492
|
-
var _e3 = _t2.scrollLeft,
|
|
9493
|
-
_f2 = _t2.scrollTop;
|
|
9494
|
-
_w = Math.max(0, Math.min(_f2 + _w / L, _t2.scrollHeight - _n2 / L + X)), _b = Math.max(0, Math.min(_e3 + _b / Y, _t2.scrollWidth - _i / Y + O)), k += _f2 - _w, B += _e3 - _b;
|
|
9495
|
-
}
|
|
9496
|
-
D.push({
|
|
9497
|
-
el: _t2,
|
|
9498
|
-
top: _w,
|
|
9499
|
-
left: _b
|
|
9500
|
-
});
|
|
9501
|
-
}
|
|
9502
|
-
return D;
|
|
9503
|
-
};
|
|
9758
|
+
return k;
|
|
9759
|
+
};
|
|
9504
9760
|
|
|
9505
|
-
var
|
|
9761
|
+
var o = function o(e) {
|
|
9506
9762
|
return !1 === e ? {
|
|
9507
9763
|
block: "end",
|
|
9508
9764
|
inline: "nearest"
|
|
@@ -9513,25 +9769,38 @@ var t = function t(e) {
|
|
|
9513
9769
|
inline: "nearest"
|
|
9514
9770
|
};
|
|
9515
9771
|
};
|
|
9516
|
-
function
|
|
9517
|
-
|
|
9772
|
+
function t(t, n) {
|
|
9773
|
+
if (!t.isConnected || !function (e) {
|
|
9774
|
+
var o = e;
|
|
9775
|
+
for (; o && o.parentNode;) {
|
|
9776
|
+
if (o.parentNode === document) return !0;
|
|
9777
|
+
o = o.parentNode instanceof ShadowRoot ? o.parentNode.host : o.parentNode;
|
|
9778
|
+
}
|
|
9779
|
+
return !1;
|
|
9780
|
+
}(t)) return;
|
|
9518
9781
|
if (function (e) {
|
|
9519
|
-
return "object" == _typeof(e) && "function" == typeof e.behavior;
|
|
9520
|
-
}(
|
|
9521
|
-
|
|
9522
|
-
var
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9782
|
+
return "object" == _typeof$1(e) && "function" == typeof e.behavior;
|
|
9783
|
+
}(n)) return n.behavior(o$1(t, n));
|
|
9784
|
+
var r = "boolean" == typeof n || null == n ? void 0 : n.behavior;
|
|
9785
|
+
var _iterator = _createForOfIteratorHelper(o$1(t, o(n))),
|
|
9786
|
+
_step;
|
|
9787
|
+
try {
|
|
9788
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
9789
|
+
var _step$value = _step.value,
|
|
9790
|
+
i = _step$value.el,
|
|
9791
|
+
a = _step$value.top,
|
|
9792
|
+
l = _step$value.left;
|
|
9793
|
+
i.scroll({
|
|
9794
|
+
top: a,
|
|
9795
|
+
left: l,
|
|
9796
|
+
behavior: r
|
|
9797
|
+
});
|
|
9798
|
+
}
|
|
9799
|
+
} catch (err) {
|
|
9800
|
+
_iterator.e(err);
|
|
9801
|
+
} finally {
|
|
9802
|
+
_iterator.f();
|
|
9803
|
+
}
|
|
9535
9804
|
}
|
|
9536
9805
|
|
|
9537
9806
|
var SelectOption = function SelectOption(_ref) {
|
|
@@ -9548,7 +9817,7 @@ var SelectOption = function SelectOption(_ref) {
|
|
|
9548
9817
|
}, [onClick, option]);
|
|
9549
9818
|
useEffect(function () {
|
|
9550
9819
|
if (active && ref.current) {
|
|
9551
|
-
|
|
9820
|
+
t(ref.current, {
|
|
9552
9821
|
scrollMode: 'if-needed',
|
|
9553
9822
|
block: 'nearest'
|
|
9554
9823
|
});
|
|
@@ -9667,11 +9936,11 @@ var useClickOutside = function useClickOutside(ref, onClickOutside) {
|
|
|
9667
9936
|
});
|
|
9668
9937
|
};
|
|
9669
9938
|
|
|
9670
|
-
var Mode$1
|
|
9671
|
-
(function (Mode) {
|
|
9939
|
+
var Mode$1 = /*#__PURE__*/function (Mode) {
|
|
9672
9940
|
Mode[Mode["Resting"] = 0] = "Resting";
|
|
9673
9941
|
Mode[Mode["Open"] = 1] = "Open";
|
|
9674
|
-
|
|
9942
|
+
return Mode;
|
|
9943
|
+
}(Mode$1 || {});
|
|
9675
9944
|
var reducer = function reducer(state, action) {
|
|
9676
9945
|
switch (action.type) {
|
|
9677
9946
|
case 'OPEN':
|
|
@@ -9701,7 +9970,7 @@ var useSelect = function useSelect(_ref) {
|
|
|
9701
9970
|
var initialValue = value !== null && value !== void 0 ? value : defaultValue;
|
|
9702
9971
|
var _useReducer = useReducer(reducer, {
|
|
9703
9972
|
value: initialValue,
|
|
9704
|
-
focused: _typeof(initialValue) == 'object' ? initialValue === null || initialValue === void 0 ? void 0 : initialValue[0] : initialValue,
|
|
9973
|
+
focused: _typeof$1(initialValue) == 'object' ? initialValue === null || initialValue === void 0 ? void 0 : initialValue[0] : initialValue,
|
|
9705
9974
|
mode: Mode$1.Resting
|
|
9706
9975
|
}),
|
|
9707
9976
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
@@ -9882,9 +10151,7 @@ var __assign$2 = undefined && undefined.__assign || function () {
|
|
|
9882
10151
|
__assign$2 = Object.assign || function (t) {
|
|
9883
10152
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9884
10153
|
s = arguments[i];
|
|
9885
|
-
for (var p in s)
|
|
9886
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9887
|
-
}
|
|
10154
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9888
10155
|
}
|
|
9889
10156
|
return t;
|
|
9890
10157
|
};
|
|
@@ -9892,9 +10159,7 @@ var __assign$2 = undefined && undefined.__assign || function () {
|
|
|
9892
10159
|
};
|
|
9893
10160
|
var __rest$2 = undefined && undefined.__rest || function (s, e) {
|
|
9894
10161
|
var t = {};
|
|
9895
|
-
for (var p in s)
|
|
9896
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9897
|
-
}
|
|
10162
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9898
10163
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9899
10164
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
9900
10165
|
}
|
|
@@ -10111,7 +10376,7 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
|
|
|
10111
10376
|
value = _useState2[0],
|
|
10112
10377
|
setValue = _useState2[1];
|
|
10113
10378
|
var mask = useMemo(function () {
|
|
10114
|
-
var cardType =
|
|
10379
|
+
var cardType = creditCardType$1(value)[0];
|
|
10115
10380
|
if (!cardType) return DEFAULT_MASK;
|
|
10116
10381
|
var gaps = cardType.gaps,
|
|
10117
10382
|
lengths = cardType.lengths;
|
|
@@ -10298,9 +10563,7 @@ useCursor.useCursor = function (_a) {
|
|
|
10298
10563
|
(function (exports) {
|
|
10299
10564
|
|
|
10300
10565
|
function __export(m) {
|
|
10301
|
-
for (var p in m)
|
|
10302
|
-
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
10303
|
-
}
|
|
10566
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
10304
10567
|
}
|
|
10305
10568
|
Object.defineProperty(exports, "__esModule", {
|
|
10306
10569
|
value: true
|
|
@@ -10645,9 +10908,7 @@ var __assign$1 = undefined && undefined.__assign || function () {
|
|
|
10645
10908
|
__assign$1 = Object.assign || function (t) {
|
|
10646
10909
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10647
10910
|
s = arguments[i];
|
|
10648
|
-
for (var p in s)
|
|
10649
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10650
|
-
}
|
|
10911
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10651
10912
|
}
|
|
10652
10913
|
return t;
|
|
10653
10914
|
};
|
|
@@ -10655,9 +10916,7 @@ var __assign$1 = undefined && undefined.__assign || function () {
|
|
|
10655
10916
|
};
|
|
10656
10917
|
var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
10657
10918
|
var t = {};
|
|
10658
|
-
for (var p in s)
|
|
10659
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10660
|
-
}
|
|
10919
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10661
10920
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10662
10921
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10663
10922
|
}
|
|
@@ -10709,9 +10968,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
10709
10968
|
__assign = Object.assign || function (t) {
|
|
10710
10969
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
10711
10970
|
s = arguments[i];
|
|
10712
|
-
for (var p in s)
|
|
10713
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10714
|
-
}
|
|
10971
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10715
10972
|
}
|
|
10716
10973
|
return t;
|
|
10717
10974
|
};
|
|
@@ -10719,9 +10976,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
10719
10976
|
};
|
|
10720
10977
|
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
10721
10978
|
var t = {};
|
|
10722
|
-
for (var p in s)
|
|
10723
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10724
|
-
}
|
|
10979
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10725
10980
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10726
10981
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10727
10982
|
}
|
|
@@ -10857,15 +11112,15 @@ var POPOVER_MOUSEOUT_DELAY_MS = 200;
|
|
|
10857
11112
|
var THREE_QUARTER_SECOND_DELAY = 750;
|
|
10858
11113
|
var ONE_SECOND_DELAY = 1000;
|
|
10859
11114
|
var FIVE_SECOND_DELAY = 5000;
|
|
10860
|
-
var Mode
|
|
10861
|
-
(function (Mode) {
|
|
11115
|
+
var Mode = /*#__PURE__*/function (Mode) {
|
|
10862
11116
|
Mode["Opening"] = "opening";
|
|
10863
11117
|
Mode["Open"] = "open";
|
|
10864
11118
|
Mode["Closing"] = "closing";
|
|
10865
11119
|
Mode["AutoOpening"] = "autoOpening";
|
|
10866
11120
|
Mode["AutoOpen"] = "autoOpen";
|
|
10867
11121
|
Mode["Closed"] = "closed";
|
|
10868
|
-
|
|
11122
|
+
return Mode;
|
|
11123
|
+
}(Mode || {});
|
|
10869
11124
|
var Popover = function Popover(_ref) {
|
|
10870
11125
|
var className = _ref.className,
|
|
10871
11126
|
children = _ref.children,
|