Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rambda

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rambda - npm Package Compare versions

Comparing version 0.8.5 to 0.8.6

__tests__/logic/always.js

94

docs/README.md

@@ -6,3 +6,3 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda)

Faster alternative to `Ramda` in just 10kB - [Documentation](https://selfrefactor.github.io/rambda/#/)
Faster alternative to `Ramda` in just 12kB - [Documentation](https://selfrefactor.github.io/rambda/#/)

@@ -34,3 +34,3 @@ ## Argumentation

```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.4/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.8.5/webVersion.js
```

@@ -98,7 +98,42 @@

#### all
> all(fn: Function, arr: Array): Boolean
It returns `true` if all members of array `arr` returns `true`, when applied as argument to function `fn`.
```
const arr = [ 0, 1, 2, 3, 4 ]
const fn = x => x > -1
R.all(fn, arr) // => true
```
#### allPass
> allPass(rules: Array<Function>, input: any): Boolean
It returns `true` if all functions of `rules` return `true`, when `input` is their argument.
```
const input = {
a : 1,
b : 2,
}
const rules = [
x => x.a === 1,
x => x.b === 2,
]
R.allPass(conditionArr, obj) // => true
```
#### always
> always(x: any): Function
It returns function that always returns `x`.
```
const fn = R.always('foo')
fn() // => 'foo'
const fn = R.always(7)
fn()// => 7
fn()// => 7
```

@@ -126,2 +161,17 @@

#### both
> both(x: Function, y: Function, input: any): Boolean
It returns `true` if both function `x` and function `y` return `true`, when `input` is their argument.
```
const fn = R.both(
a => a > 10,
a => a < 20
)
fn(15) //=> true
fn(30) //=> false
```
#### compose

@@ -140,2 +190,15 @@

#### complement
> complement(fn: Function): Function
It returns `complemented` function that accept `input` as argument.
The return value of `complemented` is the negative boolean value of `fn(input)`.
```
R.complement(R.always(0)) // => true
R.complement(R.always(true)) // => false
```
#### concat

@@ -235,2 +298,14 @@

#### either
```
const fn = R.either(
a => a > 10,
a => a % 2 === 0
)
fn(15) //=> true
fn(6) //=> true
fn(7) //=> false
```
#### equals

@@ -321,2 +396,11 @@

#### identity
> identity(x: T): T
It just passes back the supplied arguments.
```
R.identity(7) // => 7
```
#### ifElse

@@ -868,2 +952,4 @@

- 0.8.6 Add `R.tap` and `R.identity`
- 0.8.5 Add `R.all`, `R.allPass`, `R.both`, `R.either` and `R.complement`
- 0.8.4 Learning to run `npm test` before `npm publish` the hard way

@@ -870,0 +956,0 @@ - 0.8.3 Add `R.always`, `R.T` and `R.F`

1044

index.js

@@ -67,3 +67,3 @@ module.exports =

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 62);
/******/ return __webpack_require__(__webpack_require__.s = 61);
/******/ })

@@ -78,3 +78,3 @@ /************************************************************************/

function curryTwo(fn) {
function curry(fn) {
return function (x, y) {

@@ -90,3 +90,3 @@ if (y === undefined) {

module.exports = curryTwo;
module.exports = curry;

@@ -146,3 +146,3 @@ /***/ }),

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -155,3 +155,3 @@ function curryThree(fn) {

};
return curryTwo(helper);
return curry(helper);
} else if (z === undefined) {

@@ -203,3 +203,3 @@ return function (zHolder) {

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -219,3 +219,3 @@ function any(fn, arr) {

module.exports = curryTwo(any);
module.exports = curry(any);

@@ -230,3 +230,3 @@ /***/ }),

var equals = __webpack_require__(7);
var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -245,3 +245,3 @@ function contains(val, arr) {

module.exports = curryTwo(contains);
module.exports = curry(contains);

@@ -255,3 +255,3 @@ /***/ }),

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -262,3 +262,3 @@ function drop(dropNumber, a) {

module.exports = curryTwo(drop);
module.exports = curry(drop);

@@ -272,3 +272,3 @@ /***/ }),

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);
var type = __webpack_require__(1);

@@ -331,3 +331,3 @@

module.exports = curryTwo(equals);
module.exports = curry(equals);

@@ -341,4 +341,31 @@ /***/ }),

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);
function filter(fn, arr) {
var index = -1;
var resIndex = 0;
var len = arr.length;
var willReturn = [];
while (++index < len) {
var value = arr[index];
if (fn(value)) {
willReturn[resIndex++] = value;
}
}
return willReturn;
}
module.exports = curry(filter);
/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curry = __webpack_require__(0);
function map(fn, arr) {

@@ -356,6 +383,6 @@ var index = -1;

module.exports = curryTwo(map);
module.exports = curry(map);
/***/ }),
/* 9 */
/* 10 */
/***/ (function(module, exports, __webpack_require__) {

@@ -366,3 +393,3 @@

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -373,6 +400,6 @@ function merge(obj, newProps) {

module.exports = curryTwo(merge);
module.exports = curry(merge);
/***/ }),
/* 10 */
/* 11 */
/***/ (function(module, exports, __webpack_require__) {

@@ -405,3 +432,3 @@

/***/ }),
/* 11 */
/* 12 */
/***/ (function(module, exports, __webpack_require__) {

@@ -429,3 +456,3 @@

/***/ }),
/* 12 */
/* 13 */
/***/ (function(module, exports, __webpack_require__) {

@@ -436,7 +463,6 @@

var _require = __webpack_require__(61),
filter = _require.filter;
var filter = __webpack_require__(8);
function all(condition, arr) {
if (arr === undefined && arguments.length === 1) {
if (arguments.length === 1) {
return function (arrHolder) {

@@ -453,3 +479,3 @@ return all(condition, arrHolder);

/***/ }),
/* 13 */
/* 14 */
/***/ (function(module, exports, __webpack_require__) {

@@ -463,3 +489,3 @@

function allPass(conditions, x) {
if (x === undefined && arguments.length === 1) {
if (arguments.length === 1) {
return function (conditions) {

@@ -477,3 +503,3 @@ return allPass(conditions, xHolder);

/***/ }),
/* 14 */
/* 15 */
/***/ (function(module, exports, __webpack_require__) {

@@ -484,3 +510,3 @@

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -494,6 +520,6 @@ function append(val, arr) {

module.exports = curryTwo(append);
module.exports = curry(append);
/***/ }),
/* 15 */
/* 16 */
/***/ (function(module, exports, __webpack_require__) {

@@ -515,3 +541,3 @@

/***/ }),
/* 16 */
/* 17 */
/***/ (function(module, exports, __webpack_require__) {

@@ -542,3 +568,3 @@

/***/ }),
/* 17 */
/* 18 */
/***/ (function(module, exports, __webpack_require__) {

@@ -570,3 +596,3 @@

/***/ }),
/* 18 */
/* 19 */
/***/ (function(module, exports, __webpack_require__) {

@@ -591,3 +617,3 @@

/***/ }),
/* 19 */
/* 20 */
/***/ (function(module, exports, __webpack_require__) {

@@ -598,3 +624,3 @@

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -606,6 +632,6 @@ function dropLast(dropNumber, a) {

module.exports = curryTwo(dropLast);
module.exports = curry(dropLast);
/***/ }),
/* 20 */
/* 21 */
/***/ (function(module, exports, __webpack_require__) {

@@ -627,29 +653,2 @@

/***/ }),
/* 21 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curryTwo = __webpack_require__(0);
function filter(fn, arr) {
var index = -1;
var resIndex = 0;
var len = arr.length;
var willReturn = [];
while (++index < len) {
var value = arr[index];
if (fn(value)) {
willReturn[resIndex++] = value;
}
}
return willReturn;
}
module.exports = curryTwo(filter);
/***/ }),
/* 22 */

@@ -661,3 +660,3 @@ /***/ (function(module, exports, __webpack_require__) {

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -668,3 +667,3 @@ function find(fn, arr) {

module.exports = curryTwo(find);
module.exports = curry(find);

@@ -678,3 +677,3 @@ /***/ }),

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -694,3 +693,3 @@ function findIndex(fn, arr) {

module.exports = curryTwo(findIndex);
module.exports = curry(findIndex);

@@ -727,3 +726,3 @@ /***/ }),

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -734,3 +733,3 @@ function has(prop, obj) {

module.exports = curryTwo(has);
module.exports = curry(has);

@@ -781,3 +780,3 @@ /***/ }),

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -797,3 +796,3 @@ function indexOf(question, arr) {

module.exports = curryTwo(indexOf);
module.exports = curry(indexOf);

@@ -956,3 +955,3 @@ /***/ }),

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -965,3 +964,3 @@ function match(regex, str) {

module.exports = curryTwo(match);
module.exports = curry(match);

@@ -975,19 +974,13 @@ /***/ }),

function not(x) {
return !x;
}
module.exports = not;
/***/ }),
/* 38 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var type = __webpack_require__(1);
var curryTwo = __webpack_require__(0);
function omit(keys, obj) {
if (arguments.length === 1) {
return function (objHolder) {
return omit(keys, objHolder);
};
}
if (!(type(obj) === 'Object')) {
return undefined;
}
if (type(keys) === 'String') {

@@ -1009,6 +1002,6 @@ keys = keys.split(',').map(function (x) {

module.exports = curryTwo(omit);
module.exports = omit;
/***/ }),
/* 39 */
/* 38 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1020,3 +1013,3 @@

var type = __webpack_require__(1);
var merge = __webpack_require__(9);
var merge = __webpack_require__(10);

@@ -1039,3 +1032,3 @@ function partialCurry(fn) {

/***/ }),
/* 40 */
/* 39 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1049,3 +1042,3 @@

function path(pathArr, obj) {
if (obj === undefined && arguments.length === 1) {
if (arguments.length === 1) {
return function (objHolder) {

@@ -1077,3 +1070,3 @@ return path(pathArr, objHolder);

/***/ }),
/* 41 */
/* 40 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1084,6 +1077,13 @@

var curryTwo = __webpack_require__(0);
var type = __webpack_require__(1);
function pick(keys, obj) {
if (arguments.length === 1) {
return function (objHolder) {
return pick(keys, objHolder);
};
}
if (!(type(obj) === "Object")) {
return undefined;
}
if (type(keys) === 'String') {

@@ -1107,6 +1107,6 @@ keys = keys.split(',').map(function (x) {

module.exports = curryTwo(pick);
module.exports = pick;
/***/ }),
/* 42 */
/* 41 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1117,4 +1117,4 @@

var curryTwo = __webpack_require__(0);
var map = __webpack_require__(8);
var curry = __webpack_require__(0);
var map = __webpack_require__(9);

@@ -1131,6 +1131,6 @@ function pluck(keyToPluck, arr) {

module.exports = curryTwo(pluck);
module.exports = curry(pluck);
/***/ }),
/* 43 */
/* 42 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1141,3 +1141,3 @@

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -1151,6 +1151,6 @@ function prepend(val, arr) {

module.exports = curryTwo(prepend);
module.exports = curry(prepend);
/***/ }),
/* 44 */
/* 43 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1161,3 +1161,3 @@

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -1168,6 +1168,6 @@ function prop(key, obj) {

module.exports = curryTwo(prop);
module.exports = curry(prop);
/***/ }),
/* 45 */
/* 44 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1187,3 +1187,3 @@

/***/ }),
/* 46 */
/* 45 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1206,3 +1206,3 @@

/***/ }),
/* 47 */
/* 46 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1222,3 +1222,3 @@

/***/ }),
/* 48 */
/* 47 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1229,3 +1229,3 @@

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -1238,6 +1238,6 @@ function repeat(a, num) {

module.exports = curryTwo(repeat);
module.exports = curry(repeat);
/***/ }),
/* 49 */
/* 48 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1257,3 +1257,3 @@

/***/ }),
/* 50 */
/* 49 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1264,3 +1264,3 @@

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -1273,6 +1273,6 @@ function sort(fn, arr) {

module.exports = curryTwo(sort);
module.exports = curry(sort);
/***/ }),
/* 51 */
/* 50 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1283,8 +1283,5 @@

var curry = __webpack_require__(0);
function sortBy(fn, arr) {
if (arr === undefined) {
return function (holder) {
return sortBy(fn, holder);
};
}
var arrClone = arr.concat();

@@ -1299,6 +1296,6 @@

module.exports = sortBy;
module.exports = curry(sortBy);
/***/ }),
/* 52 */
/* 51 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1309,8 +1306,5 @@

var curry = __webpack_require__(0);
function split(glue, str) {
if (str === undefined) {
return function (holder) {
return split(glue, holder);
};
}

@@ -1320,6 +1314,6 @@ return str.split(glue);

module.exports = split;
module.exports = curry(split);
/***/ }),
/* 53 */
/* 52 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1330,8 +1324,4 @@

var curry = __webpack_require__(0);
function splitEvery(num, a) {
if (a === undefined) {
return function (holder) {
return splitEvery(num, holder);
};
}
num = num > 1 ? num : 1;

@@ -1348,6 +1338,6 @@

module.exports = splitEvery;
module.exports = curry(splitEvery);
/***/ }),
/* 54 */
/* 53 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1368,3 +1358,3 @@

/***/ }),
/* 55 */
/* 54 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1375,3 +1365,3 @@

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);
var baseSlice = __webpack_require__(3);

@@ -1391,6 +1381,6 @@

module.exports = curryTwo(take);
module.exports = curry(take);
/***/ }),
/* 56 */
/* 55 */
/***/ (function(module, exports, __webpack_require__) {

@@ -1402,3 +1392,3 @@

var baseSlice = __webpack_require__(3);
var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -1417,5 +1407,22 @@ function takeLast(takeNumber, a) {

module.exports = curryTwo(takeLast);
module.exports = curry(takeLast);
/***/ }),
/* 56 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var curry = __webpack_require__(0);
function tap(fn, input) {
fn(input);
return input;
}
module.exports = curry(tap);
/***/ }),
/* 57 */

@@ -1427,3 +1434,3 @@ /***/ (function(module, exports, __webpack_require__) {

var curryTwo = __webpack_require__(0);
var curry = __webpack_require__(0);

@@ -1434,3 +1441,3 @@ function test(regex, str) {

module.exports = curryTwo(test);
module.exports = curry(test);

@@ -1468,12 +1475,5 @@ /***/ }),

var curryThree = __webpack_require__(2);
function update(index, newValue, arr) {
if (newValue === undefined) {
return function (newValueHolder, arrHolder) {
return update(index, newValueHolder, arrHolder);
};
} else if (arr === undefined) {
return function (holder) {
return update(index, newValue, holder);
};
}
var arrClone = arr.concat();

@@ -1484,3 +1484,3 @@

module.exports = update;
module.exports = curryThree(update);

@@ -1512,656 +1512,2 @@ /***/ }),

module.exports = function (d) {
var e = {};function __webpack_require__(g) {
if (e[g]) {
return e[g].exports;
}var h = e[g] = { i: g, l: !1, exports: {} };d[g].call(h.exports, h, h.exports, __webpack_require__);h.l = !0;return h.exports;
}__webpack_require__.m = d;__webpack_require__.c = e;__webpack_require__.i = function (j) {
return j;
};__webpack_require__.d = function (k, l, m) {
if (!__webpack_require__.o(k, l)) {
Object.defineProperty(k, l, { configurable: !1, enumerable: !0, get: m });
}
};__webpack_require__.n = function (n) {
var q = n && n.__esModule ? function getDefault() {
return n['default'];
} : function getModuleExports() {
return n;
};__webpack_require__.d(q, 'a', q);return q;
};__webpack_require__.o = function (r, s) {
return Object.prototype.hasOwnProperty.call(r, s);
};__webpack_require__.p = "";return __webpack_require__(__webpack_require__.s = 55);
}([function (t, u, v) {
"use strict";
function type(a) {
if (a === null) {
return "Null";
} else if (Array.isArray(a)) {
return "Array";
} else if (typeof a === "boolean") {
return "Boolean";
} else if (typeof a === "number") {
return "Number";
} else if (typeof a === "string") {
return "String";
} else if (a === void 0) {
return "Undefined";
} else if (a instanceof RegExp) {
return "RegExp";
}var w = a.toString();if (w.startsWith("async")) {
return "Async";
} else if (w === "[object Promise]") {
return "Promise";
} else if (w.includes("function") || w.includes("=>")) {
return "Function";
}return "Object";
}t.exports = type;
}, function (x, y, z) {
"use strict";
function baseSlice(A, B, C) {
var D = -1,
E = A.length;C = C > E ? E : C;if (C < 0) {
C += E;
}E = B > C ? 0 : C - B >>> 0;B >>>= 0;var F = Array(E);while (++D < E) {
F[D] = A[D + B];
}return F;
}x.exports = baseSlice;
}, function (G, H, I) {
"use strict";
var J = I(4);function contains(K, L) {
if (L === void 0) {
return function (M) {
return contains(K, M);
};
}var N = -1,
O = !1;while (++N < L.length && !O) {
if (J(L[N], K)) {
O = !0;
}
}return O;
}G.exports = contains;
}, function (P, Q, R) {
"use strict";
function drop(S, a) {
if (a === void 0) {
return function (T) {
return drop(S, T);
};
}return a.slice(S);
}P.exports = drop;
}, function (U, V, W) {
"use strict";
var X = W(0);function equals(a, b) {
if (b === void 0) {
return function (Y) {
return equals(a, Y);
};
} else if (a === b) {
return a !== 0 || 1 / a === 1 / b;
}var Z = X(a);if (Z !== X(b)) {
return !1;
}if (Z === "Array") {
var a1 = Array.from(a),
b1 = Array.from(b);return a1.sort().toString() === b1.sort().toString();
}if (Z === "Object") {
var c1 = Object.keys(a);if (c1.length === Object.keys(b).length) {
if (c1.length === 0) {
return !0;
}var d1 = !0;c1.map(function (e1) {
if (d1) {
var f1 = X(a[e1]),
g1 = X(b[e1]);if (f1 === g1) {
if (f1 === "Object") {
if (Object.keys(a[e1]).length === Object.keys(b[e1]).length) {
if (Object.keys(a[e1]).length !== 0) {
if (!equals(a[e1], b[e1])) {
d1 = !1;
}
}
} else {
d1 = !1;
}
} else if (!equals(a[e1], b[e1])) {
d1 = !1;
}
} else {
d1 = !1;
}
}
});return d1;
}
}return !1;
}U.exports = equals;
}, function (h1, i1, j1) {
"use strict";
function map(fn, l1) {
if (l1 === void 0) {
return function (m1) {
return map(fn, m1);
};
}var n1 = -1,
o1 = l1.length,
p1 = Array(o1);while (++n1 < o1) {
p1[n1] = fn(l1[n1]);
}return p1;
}h1.exports = map;
}, function (q1, r1, s1) {
"use strict";
function merge(t1, u1) {
if (u1 === void 0) {
return function (v1) {
return merge(t1, v1);
};
}return Object.assign({}, t1, u1);
}q1.exports = merge;
}, function (w1, x1, y1) {
"use strict";
function add(a, b) {
if (b === void 0) {
return function (c) {
return add(a, c);
};
}return a + b;
}w1.exports = add;
}, function (z1, A1, B1) {
"use strict";
function addIndex(C1) {
return function (fn) {
for (var E1 = 0, newFn = function newFn() {
for (var F1 = arguments.length, G1 = Array(F1), H1 = 0; H1 < F1; H1++) {
G1[H1] = arguments[H1];
}return fn.apply(null, [].concat(G1, [E1++]));
}, I1 = arguments.length, J1 = Array(I1 > 1 ? I1 - 1 : 0), K1 = 1; K1 < I1; K1++) {
J1[K1 - 1] = arguments[K1];
}return C1.apply(null, [newFn].concat(J1));
};
}z1.exports = addIndex;
}, function (L1, M1, N1) {
"use strict";
function adjust(fn, P1, Q1) {
if (P1 === void 0) {
return function (R1, S1) {
return adjust(fn, R1, S1);
};
} else if (Q1 === void 0) {
return function (T1) {
return adjust(fn, P1, T1);
};
}var U1 = Q1.concat();return U1.map(function (V1, W1) {
if (W1 === P1) {
return fn(Q1[P1]);
}return V1;
});
}L1.exports = adjust;
}, function (X1, Y1, Z1) {
"use strict";
function any(fn, b2) {
if (b2 === void 0) {
return function (c2) {
return any(fn, c2);
};
}var d2 = 0;while (d2 < b2.length) {
if (fn(b2[d2])) {
return !0;
}d2++;
}return !1;
}X1.exports = any;
}, function (e2, f2, g2) {
"use strict";
function append(h2, i2) {
if (i2 === void 0) {
return function (j2) {
return append(h2, j2);
};
}var k2 = i2.concat();k2.push(h2);return k2;
}e2.exports = append;
}, function (l2, m2, n2) {
"use strict";
var compose = function compose() {
for (var o2 = arguments.length, p2 = Array(o2), q2 = 0; q2 < o2; q2++) {
p2[q2] = arguments[q2];
}return function (r2) {
var s2 = p2.slice();while (s2.length > 0) {
r2 = s2.pop()(r2);
}return r2;
};
};l2.exports = compose;
}, function (t2, u2, v2) {
"use strict";
function _toConsumableArray(w2) {
if (Array.isArray(w2)) {
for (var i = 0, x2 = Array(w2.length); i < w2.length; i++) {
x2[i] = w2[i];
}return x2;
} else {
return Array.from(w2);
}
}function curry(f) {
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];return function () {
for (var y2 = arguments.length, p = Array(y2), z2 = 0; z2 < y2; z2++) {
p[z2] = arguments[z2];
}return function (o) {
return o.length >= f.length ? f.apply(void 0, _toConsumableArray(o)) : curry(f, o);
}([].concat(_toConsumableArray(a), p));
};
}t2.exports = curry;
}, function (A2, B2, C2) {
"use strict";
var D2 = C2(0);function defaultTo(E2, F2) {
if (arguments.length === 1) {
return function (G2) {
return defaultTo(E2, G2);
};
}return F2 === void 0 || !(D2(F2) === D2(E2)) ? E2 : F2;
}A2.exports = defaultTo;
}, function (H2, I2, J2) {
"use strict";
function dropLast(K2, a) {
if (a === void 0) {
return function (L2) {
return dropLast(K2, L2);
};
}return a.slice(0, -K2);
}H2.exports = dropLast;
}, function (M2, N2, O2) {
"use strict";
function filter(fn, Q2) {
if (Q2 === void 0) {
return function (R2) {
return filter(fn, R2);
};
}var S2 = -1,
T2 = 0,
U2 = Q2.length,
V2 = [];while (++S2 < U2) {
var W2 = Q2[S2];if (fn(W2)) {
V2[T2++] = W2;
}
}return V2;
}M2.exports = filter;
}, function (X2, Y2, Z2) {
"use strict";
function find(fn, b3) {
if (b3 === void 0) {
return function (c3) {
return find(fn, c3);
};
}return b3.find(fn);
}X2.exports = find;
}, function (d3, e3, f3) {
"use strict";
function findIndex(fn, h3) {
if (h3 === void 0) {
return function (i3) {
return findIndex(fn, i3);
};
}var j3 = h3.length,
k3 = -1;while (++k3 < j3) {
if (fn(h3[k3])) {
return k3;
}
}return -1;
}d3.exports = findIndex;
}, function (l3, m3, n3) {
"use strict";
function flatten(o3, p3) {
p3 = p3 === void 0 ? [] : p3;for (var i = 0; i < o3.length; i++) {
if (Array.isArray(o3[i])) {
flatten(o3[i], p3);
} else {
p3.push(o3[i]);
}
}return p3;
}l3.exports = flatten;
}, function (q3, r3, s3) {
"use strict";
function has(t3, u3) {
if (u3 === void 0) {
return function (v3) {
return has(t3, v3);
};
}return u3[t3] !== void 0;
}q3.exports = has;
}, function (w3, x3, y3) {
"use strict";
function head(a) {
if (typeof a === "string") {
return a[0] || "";
}return a[0];
}w3.exports = head;
}, function (z3, A3, B3) {
"use strict";
function indexOf(C3, D3) {
if (D3 === void 0) {
return function (E3) {
return indexOf(C3, E3);
};
}var F3 = -1,
G3 = D3.length;while (++F3 < G3) {
if (D3[F3] === C3) {
return F3;
}
}return -1;
}z3.exports = indexOf;
}, function (H3, I3, J3) {
"use strict";
var K3 = J3(1);function init(a) {
if (typeof a === "string") {
return a.slice(0, -1);
}return a.length ? K3(a, 0, -1) : [];
}H3.exports = init;
}, function (L3, M3, N3) {
"use strict";
function join(O3, P3) {
if (P3 === void 0) {
return function (Q3) {
return join(O3, Q3);
};
}return P3.join(O3);
}L3.exports = join;
}, function (R3, S3, T3) {
"use strict";
function last(a) {
if (typeof a === "string") {
return a[a.length - 1] || "";
}return a[a.length - 1];
}R3.exports = last;
}, function (U3, V3, W3) {
"use strict";
function length(X3) {
return X3.length;
}U3.exports = length;
}, function (Y3, Z3, a4) {
"use strict";
function match(b4, c4) {
if (c4 === void 0) {
return function (d4) {
return match(b4, d4);
};
}var e4 = c4.match(b4);return e4 === null ? [] : e4;
}Y3.exports = match;
}, function (f4, g4, h4) {
"use strict";
function omit(i4, j4) {
if (j4 === void 0) {
return function (k4) {
return omit(i4, k4);
};
}var l4 = {};for (var m4 in j4) {
if (!i4.includes(m4)) {
l4[m4] = j4[m4];
}
}return l4;
}f4.exports = omit;
}, function (n4, o4, p4) {
"use strict";
var q4 = p4(0),
r4 = p4(6);function curry(fn) {
var t4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};return function (u4) {
if (q4(fn) === "Async") {
return new Promise(function (v4, w4) {
fn(r4(u4, t4)).then(v4).catch(w4);
});
}return fn(r4(u4, t4));
};
}n4.exports = curry;
}, function (x4, y4, z4) {
"use strict";
function path(A4, B4) {
if (B4 === void 0) {
return function (C4) {
return path(A4, C4);
};
}var D4 = B4,
E4 = 0;if (typeof A4 === "string") {
A4 = A4.split(".");
}while (E4 < A4.length) {
if (D4 === null) {
return void 0;
}D4 = D4[A4[E4]];E4++;
}return D4;
}x4.exports = path;
}, function (F4, G4, H4) {
"use strict";
function pick(I4, J4) {
if (J4 === void 0) {
return function (K4) {
return pick(I4, K4);
};
}var L4 = {},
M4 = 0;while (M4 < I4.length) {
if (I4[M4] in J4) {
L4[I4[M4]] = J4[I4[M4]];
}M4++;
}return L4;
}F4.exports = pick;
}, function (N4, O4, P4) {
"use strict";
var Q4 = P4(5);function pluck(R4, S4) {
if (S4 === void 0) {
return function (T4) {
return pluck(R4, T4);
};
}var U4 = [];Q4(function (V4) {
if (!(V4[R4] === void 0)) {
U4.push(V4[R4]);
}
}, S4);return U4;
}N4.exports = pluck;
}, function (W4, X4, Y4) {
"use strict";
function prepend(Z4, a5) {
if (a5 === void 0) {
return function (b5) {
return prepend(Z4, b5);
};
}var c5 = a5.concat();c5.unshift(Z4);return c5;
}W4.exports = prepend;
}, function (d5, e5, f5) {
"use strict";
function prop(g5, h5) {
if (h5 === void 0) {
return function (i5) {
return prop(g5, i5);
};
}return h5[g5];
}d5.exports = prop;
}, function (j5, k5, l5) {
"use strict";
function propEq(m5, n5, o5) {
if (n5 === void 0) {
return function (p5, q5) {
return propEq(m5, p5, q5);
};
} else if (o5 === void 0) {
return function (r5) {
return propEq(m5, n5, r5);
};
}return o5[m5] === n5;
}j5.exports = propEq;
}, function (s5, t5, u5) {
"use strict";
function range(v5, w5) {
for (var x5 = [], i = v5; i < w5; i++) {
x5.push(i);
}return x5;
}s5.exports = range;
}, function (y5, z5, A5) {
"use strict";
function reduce(fn, C5, D5) {
if (C5 === void 0) {
return function (E5, F5) {
return reduce(fn, E5, F5);
};
} else if (D5 === void 0) {
return function (G5) {
return reduce(fn, C5, G5);
};
}return D5.reduce(fn, C5);
}y5.exports = reduce;
}, function (H5, I5, J5) {
"use strict";
function repeat(a, K5) {
if (K5 === void 0) {
return function (L5) {
return repeat(a, L5);
};
}var M5 = Array(K5);return M5.fill(a);
}H5.exports = repeat;
}, function (N5, O5, P5) {
"use strict";
function replace(Q5, R5, S5) {
if (R5 === void 0) {
return function (T5, U5) {
return replace(Q5, T5, U5);
};
} else if (S5 === void 0) {
return function (V5) {
return replace(Q5, R5, V5);
};
}return S5.replace(Q5, R5);
}N5.exports = replace;
}, function (W5, X5, Y5) {
"use strict";
function sort(fn, a6) {
if (a6 === void 0) {
return function (b6) {
return sort(fn, b6);
};
}var c6 = a6.concat();return c6.sort(fn);
}W5.exports = sort;
}, function (d6, e6, f6) {
"use strict";
function sortBy(fn, h6) {
if (h6 === void 0) {
return function (i6) {
return sortBy(fn, i6);
};
}var j6 = h6.concat();return j6.sort(function (a, b) {
var k6 = fn(a),
l6 = fn(b);return k6 < l6 ? -1 : k6 > l6 ? 1 : 0;
});
}d6.exports = sortBy;
}, function (m6, n6, o6) {
"use strict";
function split(p6, q6) {
if (q6 === void 0) {
return function (r6) {
return split(p6, r6);
};
}return q6.split(p6);
}m6.exports = split;
}, function (s6, t6, u6) {
"use strict";
function splitEvery(v6, a) {
if (a === void 0) {
return function (w6) {
return splitEvery(v6, w6);
};
}v6 = v6 > 1 ? v6 : 1;var x6 = [],
y6 = 0;while (y6 < a.length) {
x6.push(a.slice(y6, y6 += v6));
}return x6;
}s6.exports = splitEvery;
}, function (z6, A6, B6) {
"use strict";
function subtract(a, b) {
if (b === void 0) {
return function (C6) {
return subtract(a, C6);
};
}return a - b;
}z6.exports = subtract;
}, function (D6, E6, F6) {
"use strict";
var G6 = F6(3);function tail(H6) {
return G6(1, H6);
}D6.exports = tail;
}, function (I6, J6, K6) {
"use strict";
var L6 = K6(1);function take(M6, a) {
if (a === void 0) {
return function (N6) {
return take(M6, N6);
};
} else if (typeof a === "string") {
return a.slice(0, M6);
}return L6(a, 0, M6);
}I6.exports = take;
}, function (O6, P6, Q6) {
"use strict";
var R6 = Q6(1);function takeLast(S6, a) {
if (a === void 0) {
return function (T6) {
return takeLast(S6, T6);
};
}var U6 = a.length;S6 = S6 > U6 ? U6 : S6;if (typeof a === "string") {
return a.slice(U6 - S6);
}S6 = U6 - S6;return R6(a, S6, U6);
}O6.exports = takeLast;
}, function (V6, W6, X6) {
"use strict";
function test(Y6, Z6) {
if (Z6 === void 0) {
return function (a7) {
return test(Y6, a7);
};
}return Z6.search(Y6) === -1 ? !1 : !0;
}V6.exports = test;
}, function (b7, c7, d7) {
"use strict";
function toLower(e7) {
return e7.toLowerCase();
}b7.exports = toLower;
}, function (f7, g7, h7) {
"use strict";
function toUpper(i7) {
return i7.toUpperCase();
}f7.exports = toUpper;
}, function (j7, k7, l7) {
"use strict";
function trim(m7) {
return m7.trim();
}j7.exports = trim;
}, function (n7, o7, p7) {
"use strict";
var q7 = p7(2);function uniq(r7) {
var s7 = -1,
t7 = [];while (++s7 < r7.length) {
var u7 = r7[s7];if (!q7(u7, t7)) {
t7.push(u7);
}
}return t7;
}n7.exports = uniq;
}, function (v7, w7, x7) {
"use strict";
function update(y7, z7, A7) {
if (z7 === void 0) {
return function (B7, C7) {
return update(y7, B7, C7);
};
} else if (A7 === void 0) {
return function (D7) {
return update(y7, z7, D7);
};
}var E7 = A7.concat();return E7.fill(z7, y7, y7 + 1);
}v7.exports = update;
}, function (F7, G7, H7) {
"use strict";
function values(I7) {
var J7 = [];for (key in I7) {
J7.push(I7[key]);
}return J7;
}F7.exports = values;
}, function (K7, L7, M7) {
"use strict";
L7.add = M7(7);L7.addIndex = M7(8);L7.any = M7(10);L7.adjust = M7(9);L7.append = M7(11);L7.compose = M7(12);L7.contains = M7(2);L7.curry = M7(13);L7.defaultTo = M7(14);L7.drop = M7(3);L7.dropLast = M7(15);L7.equals = M7(4);L7.filter = M7(16);L7.find = M7(17);L7.findIndex = M7(18);L7.flatten = M7(19);L7.has = M7(20);L7.head = M7(21);L7.indexOf = M7(22);L7.init = M7(23);L7.join = M7(24);L7.last = M7(25);L7.length = M7(26);L7.map = M7(5);L7.match = M7(27);L7.merge = M7(6);L7.omit = M7(28);L7.path = M7(30);L7.partialCurry = M7(29);L7.pick = M7(31);L7.pluck = M7(32);L7.prepend = M7(33);L7.prop = M7(34);L7.propEq = M7(35);L7.range = M7(36);L7.repeat = M7(38);L7.replace = M7(39);L7.sort = M7(40);L7.sortBy = M7(41);L7.split = M7(42);L7.splitEvery = M7(43);L7.subtract = M7(44);L7.tail = M7(45);L7.take = M7(46);L7.takeLast = M7(47);L7.test = M7(48);L7.toLower = M7(49);L7.toUpper = M7(50);L7.trim = M7(51);L7.type = M7(0);L7.uniq = M7(52);L7.update = M7(53);L7.values = M7(54);L7.reduce = M7(37);
}]);
/***/ }),
/* 62 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var helper = __webpack_require__(30);

@@ -2174,13 +1520,15 @@ var mathHelper = __webpack_require__(31);

exports.add = mathHelper('+');
exports.addIndex = __webpack_require__(10);
exports.adjust = __webpack_require__(11);
exports.addIndex = __webpack_require__(11);
exports.adjust = __webpack_require__(12);
exports.always = function (x) {
return x;
return function () {
return x;
};
};
exports.any = __webpack_require__(4);
exports.append = __webpack_require__(14);
exports.all = __webpack_require__(12);
exports.allPass = __webpack_require__(13);
exports.both = __webpack_require__(15);
exports.compose = __webpack_require__(16);
exports.append = __webpack_require__(15);
exports.all = __webpack_require__(13);
exports.allPass = __webpack_require__(14);
exports.both = __webpack_require__(16);
exports.compose = __webpack_require__(17);
exports.complement = function (fn) {

@@ -2193,8 +1541,8 @@ return function (input) {

exports.contains = __webpack_require__(5);
exports.curry = __webpack_require__(17);
exports.defaultTo = __webpack_require__(18);
exports.curry = __webpack_require__(18);
exports.defaultTo = __webpack_require__(19);
exports.divide = mathHelper('/');
exports.drop = __webpack_require__(6);
exports.dropLast = __webpack_require__(19);
exports.either = __webpack_require__(20);
exports.dropLast = __webpack_require__(20);
exports.either = __webpack_require__(21);
exports.endsWith = helper("endsWith");

@@ -2205,3 +1553,3 @@ exports.equals = __webpack_require__(7);

};
exports.filter = __webpack_require__(21);
exports.filter = __webpack_require__(8);
exports.find = __webpack_require__(22);

@@ -2212,2 +1560,5 @@ exports.findIndex = __webpack_require__(23);

exports.head = __webpack_require__(26);
exports.identity = function (x) {
return x;
};
exports.ifElse = __webpack_require__(27);

@@ -2221,27 +1572,29 @@ exports.includes = helper("includes");

exports.length = propHelper("length");
exports.map = __webpack_require__(8);
exports.map = __webpack_require__(9);
exports.match = __webpack_require__(36);
exports.merge = __webpack_require__(9);
exports.merge = __webpack_require__(10);
exports.modulo = mathHelper('%');
exports.multiply = mathHelper('*');
exports.not = __webpack_require__(37);
exports.omit = __webpack_require__(38);
exports.not = function (x) {
return !x;
};
exports.omit = __webpack_require__(37);
exports.padEnd = helper('padEnd');
exports.padStart = helper('padStart');
exports.partialCurry = __webpack_require__(39);
exports.path = __webpack_require__(40);
exports.pick = __webpack_require__(41);
exports.pluck = __webpack_require__(42);
exports.prepend = __webpack_require__(43);
exports.prop = __webpack_require__(44);
exports.propEq = __webpack_require__(45);
exports.range = __webpack_require__(46);
exports.reduce = __webpack_require__(47);
exports.repeat = __webpack_require__(48);
exports.replace = __webpack_require__(49);
exports.partialCurry = __webpack_require__(38);
exports.path = __webpack_require__(39);
exports.pick = __webpack_require__(40);
exports.pluck = __webpack_require__(41);
exports.prepend = __webpack_require__(42);
exports.prop = __webpack_require__(43);
exports.propEq = __webpack_require__(44);
exports.range = __webpack_require__(45);
exports.reduce = __webpack_require__(46);
exports.repeat = __webpack_require__(47);
exports.replace = __webpack_require__(48);
exports.reverse = simpleHelper('reverse');
exports.sort = __webpack_require__(50);
exports.sortBy = __webpack_require__(51);
exports.split = __webpack_require__(52);
exports.splitEvery = __webpack_require__(53);
exports.sort = __webpack_require__(49);
exports.sortBy = __webpack_require__(50);
exports.split = __webpack_require__(51);
exports.splitEvery = __webpack_require__(52);
exports.startsWith = helper("startsWith");

@@ -2252,5 +1605,6 @@ exports.subtract = mathHelper('-');

};
exports.tail = __webpack_require__(54);
exports.take = __webpack_require__(55);
exports.takeLast = __webpack_require__(56);
exports.tap = __webpack_require__(56);
exports.tail = __webpack_require__(53);
exports.take = __webpack_require__(54);
exports.takeLast = __webpack_require__(55);
exports.test = __webpack_require__(57);

@@ -2257,0 +1611,0 @@ exports.toLower = simpleHelper("toLowerCase");

@@ -1,5 +0,5 @@

const { filter } = require("rambda")
const filter = require("./filter")
function all (condition, arr) {
if (arr === undefined && arguments.length === 1) {
if (arguments.length === 1) {
return arrHolder => all(condition, arrHolder)

@@ -6,0 +6,0 @@ }

const any = require("./any")
function allPass(conditions, x){
if(x === undefined && arguments.length === 1){
if(arguments.length === 1){
return conditions => allPass(conditions, xHolder)

@@ -10,2 +10,2 @@ }

module.exports = allPass
module.exports = allPass

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -16,2 +16,2 @@ function any(fn, arr){

module.exports = curryTwo(any)
module.exports = curry(any)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -10,2 +10,2 @@ function append (val, arr) {

module.exports = curryTwo(append)
module.exports = curry(append)

@@ -1,2 +0,2 @@

const curry = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -3,0 +3,0 @@ function both (x, y) {

const equals = require("./equals")
const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -17,2 +17,2 @@ function contains(val, arr) {

module.exports = curryTwo(contains)
module.exports = curry(contains)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -7,2 +7,2 @@ function drop(dropNumber, a){

module.exports = curryTwo(drop)
module.exports = curry(drop)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -8,2 +8,2 @@ function dropLast(dropNumber, a){

module.exports = curryTwo(dropLast)
module.exports = curry(dropLast)

@@ -1,2 +0,2 @@

const curry = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -3,0 +3,0 @@ function either (x, y) {

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")
const type = require("./type")

@@ -59,2 +59,2 @@

module.exports = curryTwo(equals)
module.exports = curry(equals)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -19,2 +19,2 @@ function filter(fn, arr) {

module.exports = curryTwo(filter)
module.exports = curry(filter)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -7,2 +7,2 @@ function find(fn, arr){

module.exports = curryTwo(find)
module.exports = curry(find)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -16,2 +16,2 @@ function findIndex(fn, arr){

module.exports = curryTwo(findIndex)
module.exports = curry(findIndex)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -7,2 +7,2 @@ function has(prop,obj){

module.exports = curryTwo(has)
module.exports = curry(has)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -16,2 +16,2 @@ function indexOf(question, arr) {

module.exports = curryTwo(indexOf)
module.exports = curry(indexOf)

@@ -1,2 +0,2 @@

const curryTwo = require("./curryTwo")
const curry = require("./curry")

@@ -9,3 +9,3 @@ function curryThree(fn){

}
return curryTwo(helper)
return curry(helper)
}else if(z === undefined){

@@ -12,0 +12,0 @@ return zHolder => fn(x, y, zHolder)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -15,2 +15,2 @@ function map(fn, arr) {

module.exports = curryTwo(map)
module.exports = curry(map)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -11,2 +11,2 @@ function match(regex, str) {

module.exports = curryTwo(match)
module.exports = curry(match)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -7,2 +7,2 @@ function merge(obj, newProps) {

module.exports = curryTwo(merge)
module.exports = curry(merge)
const type = require("./type")
const curryTwo = require("./internal/curryTwo")
function omit(keys, obj){
if(arguments.length === 1){
return objHolder => omit(keys, objHolder)
}
if(!(type(obj)==='Object')){
return undefined
}
if(type(keys)==='String'){
keys = keys.split(',').map(x => x.trim())
}
const willReturn = {}

@@ -19,2 +24,2 @@ for (const key in obj) {

module.exports = curryTwo(omit)
module.exports = omit
const type = require("./type")
function path(pathArr, obj) {
if(obj === undefined && arguments.length === 1){
if(arguments.length === 1){
return objHolder => path(pathArr, objHolder)

@@ -6,0 +6,0 @@ }

@@ -1,9 +0,14 @@

const curryTwo = require("./internal/curryTwo")
const type = require("./type")
function pick(keys, obj) {
if(arguments.length === 1){
return objHolder => pick(keys, objHolder)
}
if(!(type(obj) === "Object")){
return undefined
}
if(type(keys)==='String'){
keys = keys.split(',').map(x => x.trim())
}
const willReturn = {}

@@ -21,2 +26,2 @@ let counter = 0

module.exports = curryTwo(pick)
module.exports = pick

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")
const map = require("./map")

@@ -17,2 +17,2 @@

module.exports = curryTwo(pluck)
module.exports = curry(pluck)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -10,2 +10,2 @@ function prepend(val, arr) {

module.exports = curryTwo(prepend)
module.exports = curry(prepend)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -7,2 +7,2 @@ function prop(key, obj) {

module.exports = curryTwo(prop)
module.exports = curry(prop)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -9,2 +9,2 @@ function repeat(a, num) {

module.exports = curryTwo(repeat)
module.exports = curry(repeat)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -9,2 +9,2 @@ function sort(fn, arr) {

module.exports = curryTwo(sort)
module.exports = curry(sort)

@@ -0,5 +1,4 @@

const curry = require('./internal/curry')
function sortBy(fn, arr) {
if (arr === undefined) {
return holder => sortBy(fn, holder)
}
const arrClone = arr.concat()

@@ -18,2 +17,2 @@

module.exports = sortBy
module.exports = curry(sortBy)

@@ -0,5 +1,4 @@

const curry = require('./internal/curry')
function split(glue, str) {
if (str === undefined) {
return holder => split(glue, holder)
}

@@ -9,2 +8,2 @@ return str.split(glue)

module.exports = split
module.exports = curry(split)

@@ -0,5 +1,3 @@

const curry = require('./internal/curry')
function splitEvery(num, a) {
if (a === undefined) {
return holder => splitEvery(num, holder)
}
num = num > 1 ?

@@ -18,2 +16,2 @@ num :

module.exports = splitEvery
module.exports = curry(splitEvery)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")
const baseSlice = require("./internal/baseSlice")

@@ -14,2 +14,2 @@

module.exports = curryTwo(take)
module.exports = curry(take)
const baseSlice = require("./internal/baseSlice")
const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -18,2 +18,2 @@ function takeLast(takeNumber, a) {

module.exports = curryTwo(takeLast)
module.exports = curry(takeLast)

@@ -1,2 +0,2 @@

const curryTwo = require("./internal/curryTwo")
const curry = require("./internal/curry")

@@ -9,2 +9,2 @@ function test(regex, str){

module.exports = curryTwo(test)
module.exports = curry(test)

@@ -0,7 +1,4 @@

const curryThree = require("./internal/curryThree")
function update(index, newValue, arr){
if (newValue === undefined) {
return (newValueHolder, arrHolder) => update(index, newValueHolder, arrHolder)
} else if (arr === undefined) {
return holder => update(index, newValue, holder)
}
const arrClone = arr.concat()

@@ -12,2 +9,2 @@

module.exports = update
module.exports = curryThree(update)
{
"name": "rambda",
"version": "0.8.5",
"version": "0.8.6",
"description": "Lightweight alternative to Ramda",

@@ -11,3 +11,3 @@ "main": "index.js",

"lint": "node files/lint",
"dev": "jest __tests__/logic/com",
"dev": "jest __tests__/tap",
"node-build": "webpack --config files/webpack.config.node.js",

@@ -47,4 +47,5 @@ "browser-build": "webpack --config files/webpack.config.js",

"ramda": "^0.24.0",
"run-fn": "^0.1.5",
"webpack": "^2.6.1"
}
}

@@ -7,6 +7,6 @@ const helper = require('./modules/internal/helper')

exports.add = mathHelper('+')
exports.add = mathHelper('+')
exports.addIndex = require("./modules/addIndex")
exports.adjust = require("./modules/adjust")
exports.always = x => x
exports.always = x => () => x
exports.any = require("./modules/any")

@@ -36,2 +36,3 @@ exports.append = require("./modules/append")

exports.head = require("./modules/head")
exports.identity = x => x
exports.ifElse = require("./modules/ifElse")

@@ -50,3 +51,3 @@ exports.includes = helper("includes")

exports.multiply = mathHelper('*')
exports.not = require("./modules/not")
exports.not = x => !x
exports.omit = require("./modules/omit")

@@ -74,2 +75,3 @@ exports.padEnd = helper('padEnd')

exports.T = () => true
exports.tap = require("./modules/tap")
exports.tail = require("./modules/tail")

@@ -86,2 +88,2 @@ exports.take = require("./modules/take")

exports.update = require("./modules/update")
exports.values = require("./modules/values")
exports.values = require("./modules/values")

@@ -128,5 +128,10 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda)

> always(x: any): Function
It returns function that always returns `x`.
```
const fn = R.always('foo')
fn() // => 'foo'
const fn = R.always(7)
fn()// => 7
fn()// => 7
```

@@ -386,2 +391,11 @@

#### identity
> identity(x: T): T
It just passes back the supplied arguments.
```
R.identity(7) // => 7
```
#### ifElse

@@ -933,2 +947,3 @@

- 0.8.6 Add `R.tap` and `R.identity`
- 0.8.5 Add `R.all`, `R.allPass`, `R.both`, `R.either` and `R.complement`

@@ -935,0 +950,0 @@ - 0.8.4 Learning to run `npm test` before `npm publish` the hard way

@@ -1,1 +0,1 @@

(function webpackUniversalModuleDefinition(k1,D1){if(typeof exports==='object'&&typeof module==='object')module.exports=D1();else if(typeof define==='function'&&define.amd)define([],D1);else{var a=D1();for(var i in a)(typeof exports==='object'?exports:k1)[i]=a[i];}})(this,function(){return function(O1){var a2={};function __webpack_require__(P2){if(a2[P2]){return a2[P2].exports;}var a3=a2[P2]={i:P2,l:!1,exports:{}};O1[P2].call(a3.exports,a3,a3.exports,__webpack_require__);a3.l=!0;return a3.exports;}__webpack_require__.m=O1;__webpack_require__.c=a2;__webpack_require__.i=function(g3){return g3;};__webpack_require__.d=function(s4,B5,Z5){if(!__webpack_require__.o(s4,B5)){Object.defineProperty(s4,B5,{configurable:!1,enumerable:!0,get:Z5});}};__webpack_require__.n=function(g6){var N7=g6&&g6.__esModule?function getDefault(){return g6['default'];}:function getModuleExports(){return g6;};__webpack_require__.d(N7,'a',N7);return N7;};__webpack_require__.o=function(O7,P7){return Object.prototype.hasOwnProperty.call(O7,P7);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=11);}([function(Q7,R7){function curryTwo(fn){return(x,y)=>{if(y===void 0){return T7=>fn(x,T7);}return fn(x,y);};}Q7.exports=curryTwo;},function(U7,V7){function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}const W7=a.toString();if(W7.startsWith("async")){return"Async";}else if(W7==="[object Promise]"){return"Promise";}else if(W7.includes("function")||W7.includes("=>")){return"Function";}return"Object";}U7.exports=type;},function(X7,Y7,Z7){const a8=Z7(0);function curryThree(fn){return(x,y,z)=>{if(y===void 0){const helper=(c8,d8)=>{return fn(x,c8,d8);};return a8(helper);}else if(z===void 0){return e8=>fn(x,y,e8);}return fn(x,y,z);};}X7.exports=curryThree;},function(f8,g8){function baseSlice(h8,i8,j8){let k8=-1,l8=h8.length;j8=j8>l8?l8:j8;if(j8<0){j8+=l8;}l8=i8>j8?0:j8-i8>>>0;i8>>>=0;const m8=Array(l8);while(++k8<l8){m8[k8]=h8[k8+i8];}return m8;}f8.exports=baseSlice;},function(n8,o8,p8){const q8=p8(0);function any(fn,s8){let t8=0;while(t8<s8.length){if(fn(s8[t8])){return!0;}t8++;}return!1;}n8.exports=q8(any);},function(u8,v8,w8){const x8=w8(7),y8=w8(0);function contains(z8,A8){let B8=-1,C8=!1;while(++B8<A8.length&&!C8){if(x8(A8[B8],z8)){C8=!0;}}return C8;}u8.exports=y8(contains);},function(D8,E8,F8){const G8=F8(0);function drop(H8,a){return a.slice(H8);}D8.exports=G8(drop);},function(I8,J8,K8){const L8=K8(0),M8=K8(1);function equals(a,b){if(a===b){return!0;}const N8=M8(a);if(N8!==M8(b)){return!1;}if(N8==="Array"){const O8=Array.from(a),P8=Array.from(b);return O8.sort().toString()===P8.sort().toString();}if(N8==="Object"){const Q8=Object.keys(a);if(Q8.length===Object.keys(b).length){if(Q8.length===0){return!0;}let R8=!0;Q8.map(S8=>{if(R8){const T8=M8(a[S8]),U8=M8(b[S8]);if(T8===U8){if(T8==="Object"){if(Object.keys(a[S8]).length===Object.keys(b[S8]).length){if(Object.keys(a[S8]).length!==0){if(!equals(a[S8],b[S8])){R8=!1;}}}else{R8=!1;}}else if(!equals(a[S8],b[S8])){R8=!1;}}else{R8=!1;}}});return R8;}}return!1;}I8.exports=L8(equals);},function(V8,W8,X8){const Y8=X8(0);function map(fn,a9){let b9=-1;const c9=a9.length,d9=Array(c9);while(++b9<c9){d9[b9]=fn(a9[b9]);}return d9;}V8.exports=Y8(map);},function(e9,f9,g9){const h9=g9(0);function merge(i9,j9){return Object.assign({},i9,j9);}e9.exports=h9(merge);},function(k9,l9,m9){const n9=m9(32),o9=m9(33),p9=m9(34),q9=m9(35),r9=m9(36);l9.add=o9('+');l9.addIndex=m9(12);l9.adjust=m9(13);l9.always=x=>x;l9.any=m9(4);l9.append=m9(16);l9.all=m9(14);l9.allPass=m9(15);l9.both=m9(17);l9.compose=m9(18);l9.complement=fn=>t9=>!Boolean(fn(t9));l9.concat=p9("concat");l9.contains=m9(5);l9.curry=m9(19);l9.defaultTo=m9(20);l9.divide=o9('/');l9.drop=m9(6);l9.dropLast=m9(21);l9.either=m9(22);l9.endsWith=n9("endsWith");l9.equals=m9(7);l9.F=()=>!1;l9.filter=m9(23);l9.find=m9(24);l9.findIndex=m9(25);l9.flatten=m9(26);l9.has=m9(27);l9.head=m9(28);l9.ifElse=m9(29);l9.includes=n9("includes");l9.indexOf=m9(30);l9.init=m9(31);l9.join=n9('join');l9.last=m9(37);l9.lastIndexOf=n9("lastIndexOf");l9.length=q9("length");l9.map=m9(8);l9.match=m9(38);l9.merge=m9(9);l9.modulo=o9('%');l9.multiply=o9('*');l9.not=m9(39);l9.omit=m9(40);l9.padEnd=n9('padEnd');l9.padStart=n9('padStart');l9.partialCurry=m9(41);l9.path=m9(42);l9.pick=m9(43);l9.pluck=m9(44);l9.prepend=m9(45);l9.prop=m9(46);l9.propEq=m9(47);l9.range=m9(48);l9.reduce=m9(49);l9.repeat=m9(50);l9.replace=m9(51);l9.reverse=r9('reverse');l9.sort=m9(52);l9.sortBy=m9(53);l9.split=m9(54);l9.splitEvery=m9(55);l9.startsWith=n9("startsWith");l9.subtract=o9('-');l9.T=()=>!0;l9.tail=m9(56);l9.take=m9(57);l9.takeLast=m9(58);l9.test=m9(59);l9.toLower=r9("toLowerCase");l9.toString=r9('toString');l9.toUpper=r9("toUpperCase");l9.trim=r9("trim");l9.type=m9(1);l9.uniq=m9(60);l9.update=m9(61);l9.values=m9(62);},function(u9,v9,w9){const x9=w9(10);u9.exports.R=x9;},function(y9,z9){function addIndex(A9){return function(fn,...rest){let C9=0;const newFn=(...args)=>fn.apply(null,[...args,C9++]);return A9.apply(null,[newFn,...rest]);};}y9.exports=addIndex;},function(D9,E9,F9){const G9=F9(2);function adjust(fn,I9,J9){const K9=J9.concat();return K9.map((L9,M9)=>{if(M9===I9){return fn(J9[I9]);}return L9;});}D9.exports=G9(adjust);},function(N9,O9,P9){const{filter}=P9(63);function all(Q9,R9){if(R9===void 0&&arguments.length===1){return S9=>all(Q9,S9);}return filter(Q9,R9).length===R9.length;}N9.exports=all;},function(T9,U9,V9){const W9=V9(4);function allPass(X9,x){if(x===void 0&&arguments.length===1){return Y9=>allPass(Y9,xHolder);}return!W9(Z9=>!Z9(x))(X9);}T9.exports=allPass;},function(a10,b10,c10){const d10=c10(0);function append(val,arr){const g10=arr.concat();g10.push(val);return g10;}a10.exports=d10(append);},function(h10,i10,j10){const k10=j10(0);function both(x,y){return l10=>x(l10)&&y(l10);}h10.exports=k10(both);},function(m10,n10){const compose=(...fns)=>o10=>{let p10=fns.slice();while(p10.length>0){o10=p10.pop()(o10);}return o10;};m10.exports=compose;},function(q10,r10){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}q10.exports=curry;},function(s10,t10,u10){const v10=u10(1);function defaultTo(w10,x10){if(arguments.length===1){return y10=>defaultTo(w10,y10);}return x10===void 0||!(v10(x10)===v10(w10))?w10:x10;}s10.exports=defaultTo;},function(z10,A10,B10){const C10=B10(0);function dropLast(D10,a){return a.slice(0,-D10);}z10.exports=C10(dropLast);},function(E10,F10,G10){const H10=G10(0);function either(x,y){return I10=>x(I10)||y(I10);}E10.exports=H10(either);},function(J10,K10,L10){const M10=L10(0);function filter(fn,arr){let P10=-1,Q10=0;const len=arr.length,S10=[];while(++P10<len){const T10=arr[P10];if(fn(T10)){S10[Q10++]=T10;}}return S10;}J10.exports=M10(filter);},function(U10,V10,W10){const X10=W10(0);function find(fn,arr){return arr.find(fn);}U10.exports=X10(find);},function(a11,b11,c11){const d11=c11(0);function findIndex(fn,arr){const g11=arr.length;let h11=-1;while(++h11<g11){if(fn(arr[h11])){return h11;}}return-1;}a11.exports=d11(findIndex);},function(i11,j11){function flatten(arr,l11){l11=l11===void 0?[]:l11;for(let i=0;i<arr.length;i++){if(Array.isArray(arr[i])){flatten(arr[i],l11);}else{l11.push(arr[i]);}}return l11;}i11.exports=flatten;},function(m11,n11,o11){const p11=o11(0);function has(q11,obj){return obj[q11]!==void 0;}m11.exports=p11(has);},function(s11,t11){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}s11.exports=head;},function(u11,v11,w11){const x11=w11(2);function ifElse(y11,z11,A11){return B11=>{if(y11(B11)===!0){return z11(B11);}return A11(B11);};}u11.exports=x11(ifElse);},function(C11,D11,E11){const F11=E11(0);function indexOf(G11,arr){let I11=-1;const J11=arr.length;while(++I11<J11){if(arr[I11]===G11){return I11;}}return-1;}C11.exports=F11(indexOf);},function(K11,L11,M11){const N11=M11(3);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?N11(a,0,-1):[];}K11.exports=init;},function(O11,P11){function helper(Q11,x,y){if(x===void 0){return(R11,S11)=>helper(Q11,R11,S11);}else if(y===void 0){return T11=>helper(Q11,x,T11);}if(y[Q11]!==void 0){return y[Q11](x);}}O11.exports=helper;},function(U11,V11,W11){const X11=W11(2);function mathHelper(Y11,x,y){switch(Y11){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}U11.exports=X11(mathHelper);},function(Z11,a12){function oppositeHelper(b12,x,y){if(x===void 0){return(c12,d12)=>oppositeHelper(b12,c12,d12);}else if(y===void 0){return e12=>oppositeHelper(b12,x,e12);}if(x[b12]!==void 0){return x[b12](y);}}Z11.exports=oppositeHelper;},function(f12,g12){function propHelper(h12,x){if(x===void 0){return i12=>propHelper(h12,i12);}return x[h12];}f12.exports=propHelper;},function(j12,k12){function simpleHelper(l12,x){if(x===void 0){return m12=>simpleHelper(l12,m12);}if(x[l12]!==void 0){return x[l12]();}}j12.exports=simpleHelper;},function(n12,o12){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}n12.exports=last;},function(p12,q12,r12){const s12=r12(0);function match(t12,str){const v12=str.match(t12);return v12===null?[]:v12;}p12.exports=s12(match);},function(w12,x12){function not(x){return!x;}w12.exports=not;},function(y12,z12,A12){const B12=A12(1),C12=A12(0);function omit(D12,obj){if(B12(D12)==='String'){D12=D12.split(',').map(x=>x.trim());}const F12={};for(const key in obj){if(!D12.includes(key)){F12[key]=obj[key];}}return F12;}y12.exports=C12(omit);},function(H12,I12,J12){const K12=J12(1),L12=J12(9);function partialCurry(fn,N12={}){return O12=>{if(K12(fn)==="Async"||K12(fn)==="Promise"){return new Promise((P12,Q12)=>{fn(L12(O12,N12)).then(P12).catch(Q12);});}return fn(L12(O12,N12));};}H12.exports=partialCurry;},function(R12,S12,T12){const U12=T12(1);function path(V12,obj){if(obj===void 0&&arguments.length===1){return X12=>path(V12,X12);}if(!(U12(obj)==="Object")){return void 0;}let Y12=obj,Z12=0;if(typeof V12==="string"){V12=V12.split(".");}while(Z12<V12.length){if(Y12===null||Y12===void 0){return void 0;}Y12=Y12[V12[Z12]];Z12++;}return Y12;}R12.exports=path;},function(a13,b13,c13){const d13=c13(0),e13=c13(1);function pick(f13,obj){if(e13(f13)==='String'){f13=f13.split(',').map(x=>x.trim());}const h13={};let i13=0;while(i13<f13.length){if(f13[i13]in obj){h13[f13[i13]]=obj[f13[i13]];}i13++;}return h13;}a13.exports=d13(pick);},function(j13,k13,l13){const m13=l13(0),map=l13(8);function pluck(o13,arr){const q13=[];map(val=>{if(!(val[o13]===void 0)){q13.push(val[o13]);}},arr);return q13;}j13.exports=m13(pluck);},function(s13,t13,u13){const v13=u13(0);function prepend(val,arr){const y13=arr.concat();y13.unshift(val);return y13;}s13.exports=v13(prepend);},function(z13,A13,B13){const C13=B13(0);function prop(key,obj){return obj[key];}z13.exports=C13(prop);},function(F13,G13,H13){const I13=H13(2);function propEq(key,val,obj){return obj[key]===val;}F13.exports=I13(propEq);},function(M13,N13){function range(O13,end){const Q13=[];for(let i=O13;i<end;i++){Q13.push(i);}return Q13;}M13.exports=range;},function(R13,S13,T13){const U13=T13(2);function reduce(fn,W13,arr){return arr.reduce(fn,W13);}R13.exports=U13(reduce);},function(Y13,Z13,a14){const b14=a14(0);function repeat(a,num){const d14=Array(num);return d14.fill(a);}Y13.exports=b14(repeat);},function(e14,f14,g14){const h14=g14(2);function replace(i14,j14,str){return str.replace(i14,j14);}e14.exports=h14(replace);},function(l14,m14,n14){const o14=n14(0);function sort(fn,arr){const r14=arr.concat();return r14.sort(fn);}l14.exports=o14(sort);},function(s14,t14){function sortBy(fn,arr){if(arr===void 0){return w14=>sortBy(fn,w14);}const x14=arr.concat();return x14.sort((a,b)=>{const fnA=fn(a),fnB=fn(b);return fnA<fnB?-1:fnA>fnB?1:0;});}s14.exports=sortBy;},function(A14,B14){function split(C14,str){if(str===void 0){return E14=>split(C14,E14);}return str.split(C14);}A14.exports=split;},function(F14,G14){function splitEvery(num,a){if(a===void 0){return I14=>splitEvery(num,I14);}num=num>1?num:1;const J14=[];let K14=0;while(K14<a.length){J14.push(a.slice(K14,K14+=num));}return J14;}F14.exports=splitEvery;},function(L14,M14,N14){const O14=N14(6);function tail(arr){return O14(1,arr);}L14.exports=tail;},function(Q14,R14,S14){const T14=S14(0),U14=S14(3);function take(V14,a){if(a===void 0){return W14=>take(V14,W14);}else if(typeof a==="string"){return a.slice(0,V14);}return U14(a,0,V14);}Q14.exports=T14(take);},function(X14,Y14,Z14){const a15=Z14(3),b15=Z14(0);function takeLast(c15,a){const len=a.length;c15=c15>len?len:c15;if(typeof a==="string"){return a.slice(len-c15);}c15=len-c15;return a15(a,c15,len);}X14.exports=b15(takeLast);},function(e15,f15,g15){const h15=g15(0);function test(i15,str){return str.search(i15)===-1?!1:!0;}e15.exports=h15(test);},function(k15,l15,m15){const n15=m15(5);function uniq(arr){let p15=-1;const q15=[];while(++p15<arr.length){const r15=arr[p15];if(!n15(r15,q15)){q15.push(r15);}}return q15;}k15.exports=uniq;},function(s15,t15){function update(u15,v15,arr){if(v15===void 0){return(x15,y15)=>update(u15,x15,y15);}else if(arr===void 0){return z15=>update(u15,v15,z15);}const A15=arr.concat();return A15.fill(v15,u15,u15+1);}s15.exports=update;},function(B15,C15){function values(obj){const E15=[];for(const key in obj){E15.push(obj[key]);}return E15;}B15.exports=values;},function(G15,H15){G15.exports=function(d){var e={};function __webpack_require__(g){if(e[g]){return e[g].exports;}var h=e[g]={i:g,l:!1,exports:{}};d[g].call(h.exports,h,h.exports,__webpack_require__);h.l=!0;return h.exports;}__webpack_require__.m=d;__webpack_require__.c=e;__webpack_require__.i=function(j){return j;};__webpack_require__.d=function(k,l,m){if(!__webpack_require__.o(k,l)){Object.defineProperty(k,l,{configurable:!1,enumerable:!0,get:m});}};__webpack_require__.n=function(n){var q=n&&n.__esModule?function getDefault(){return n['default'];}:function getModuleExports(){return n;};__webpack_require__.d(q,'a',q);return q;};__webpack_require__.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=55);}([function(t,u,v){"use strict";function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}var w=a.toString();if(w.startsWith("async")){return"Async";}else if(w==="[object Promise]"){return"Promise";}else if(w.includes("function")||w.includes("=>")){return"Function";}return"Object";}t.exports=type;},function(x,y,z){"use strict";function baseSlice(A,B,C){var D=-1,E=A.length;C=C>E?E:C;if(C<0){C+=E;}E=B>C?0:C-B>>>0;B>>>=0;var F=Array(E);while(++D<E){F[D]=A[D+B];}return F;}x.exports=baseSlice;},function(G,H,I){"use strict";var J=I(4);function contains(K,L){if(L===void 0){return function(M){return contains(K,M);};}var N=-1,O=!1;while(++N<L.length&&!O){if(J(L[N],K)){O=!0;}}return O;}G.exports=contains;},function(P,Q,R){"use strict";function drop(S,a){if(a===void 0){return function(T){return drop(S,T);};}return a.slice(S);}P.exports=drop;},function(U,V,W){"use strict";var X=W(0);function equals(a,b){if(b===void 0){return function(Y){return equals(a,Y);};}else if(a===b){return a!==0||1/a===1/b;}var Z=X(a);if(Z!==X(b)){return!1;}if(Z==="Array"){var a1=Array.from(a),b1=Array.from(b);return a1.sort().toString()===b1.sort().toString();}if(Z==="Object"){var c1=Object.keys(a);if(c1.length===Object.keys(b).length){if(c1.length===0){return!0;}var d1=!0;c1.map(function(e1){if(d1){var f1=X(a[e1]),g1=X(b[e1]);if(f1===g1){if(f1==="Object"){if(Object.keys(a[e1]).length===Object.keys(b[e1]).length){if(Object.keys(a[e1]).length!==0){if(!equals(a[e1],b[e1])){d1=!1;}}}else{d1=!1;}}else if(!equals(a[e1],b[e1])){d1=!1;}}else{d1=!1;}}});return d1;}}return!1;}U.exports=equals;},function(h1,i1,j1){"use strict";function map(fn,l1){if(l1===void 0){return function(m1){return map(fn,m1);};}var n1=-1,o1=l1.length,p1=Array(o1);while(++n1<o1){p1[n1]=fn(l1[n1]);}return p1;}h1.exports=map;},function(q1,r1,s1){"use strict";function merge(t1,u1){if(u1===void 0){return function(v1){return merge(t1,v1);};}return Object.assign({},t1,u1);}q1.exports=merge;},function(w1,x1,y1){"use strict";function add(a,b){if(b===void 0){return function(c){return add(a,c);};}return a+b;}w1.exports=add;},function(z1,A1,B1){"use strict";function addIndex(C1){return function(fn){for(var E1=0,newFn=function newFn(){for(var F1=arguments.length,G1=Array(F1),H1=0;H1<F1;H1++){G1[H1]=arguments[H1];}return fn.apply(null,[].concat(G1,[E1++]));},I1=arguments.length,J1=Array(I1>1?I1-1:0),K1=1;K1<I1;K1++){J1[K1-1]=arguments[K1];}return C1.apply(null,[newFn].concat(J1));};}z1.exports=addIndex;},function(L1,M1,N1){"use strict";function adjust(fn,P1,Q1){if(P1===void 0){return function(R1,S1){return adjust(fn,R1,S1);};}else if(Q1===void 0){return function(T1){return adjust(fn,P1,T1);};}var U1=Q1.concat();return U1.map(function(V1,W1){if(W1===P1){return fn(Q1[P1]);}return V1;});}L1.exports=adjust;},function(X1,Y1,Z1){"use strict";function any(fn,b2){if(b2===void 0){return function(c2){return any(fn,c2);};}var d2=0;while(d2<b2.length){if(fn(b2[d2])){return!0;}d2++;}return!1;}X1.exports=any;},function(e2,f2,g2){"use strict";function append(h2,i2){if(i2===void 0){return function(j2){return append(h2,j2);};}var k2=i2.concat();k2.push(h2);return k2;}e2.exports=append;},function(l2,m2,n2){"use strict";var compose=function compose(){for(var o2=arguments.length,p2=Array(o2),q2=0;q2<o2;q2++){p2[q2]=arguments[q2];}return function(r2){var s2=p2.slice();while(s2.length>0){r2=s2.pop()(r2);}return r2;};};l2.exports=compose;},function(t2,u2,v2){"use strict";function _toConsumableArray(w2){if(Array.isArray(w2)){for(var i=0,x2=Array(w2.length);i<w2.length;i++){x2[i]=w2[i];}return x2;}else{return Array.from(w2);}}function curry(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var y2=arguments.length,p=Array(y2),z2=0;z2<y2;z2++){p[z2]=arguments[z2];}return function(o){return o.length>=f.length?f.apply(void 0,_toConsumableArray(o)):curry(f,o);}([].concat(_toConsumableArray(a),p));};}t2.exports=curry;},function(A2,B2,C2){"use strict";var D2=C2(0);function defaultTo(E2,F2){if(arguments.length===1){return function(G2){return defaultTo(E2,G2);};}return F2===void 0||!(D2(F2)===D2(E2))?E2:F2;}A2.exports=defaultTo;},function(H2,I2,J2){"use strict";function dropLast(K2,a){if(a===void 0){return function(L2){return dropLast(K2,L2);};}return a.slice(0,-K2);}H2.exports=dropLast;},function(M2,N2,O2){"use strict";function filter(fn,Q2){if(Q2===void 0){return function(R2){return filter(fn,R2);};}var S2=-1,T2=0,U2=Q2.length,V2=[];while(++S2<U2){var W2=Q2[S2];if(fn(W2)){V2[T2++]=W2;}}return V2;}M2.exports=filter;},function(X2,Y2,Z2){"use strict";function find(fn,b3){if(b3===void 0){return function(c3){return find(fn,c3);};}return b3.find(fn);}X2.exports=find;},function(d3,e3,f3){"use strict";function findIndex(fn,h3){if(h3===void 0){return function(i3){return findIndex(fn,i3);};}var j3=h3.length,k3=-1;while(++k3<j3){if(fn(h3[k3])){return k3;}}return-1;}d3.exports=findIndex;},function(l3,m3,n3){"use strict";function flatten(o3,p3){p3=p3===void 0?[]:p3;for(var i=0;i<o3.length;i++){if(Array.isArray(o3[i])){flatten(o3[i],p3);}else{p3.push(o3[i]);}}return p3;}l3.exports=flatten;},function(q3,r3,s3){"use strict";function has(t3,u3){if(u3===void 0){return function(v3){return has(t3,v3);};}return u3[t3]!==void 0;}q3.exports=has;},function(w3,x3,y3){"use strict";function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}w3.exports=head;},function(z3,A3,B3){"use strict";function indexOf(C3,D3){if(D3===void 0){return function(E3){return indexOf(C3,E3);};}var F3=-1,G3=D3.length;while(++F3<G3){if(D3[F3]===C3){return F3;}}return-1;}z3.exports=indexOf;},function(H3,I3,J3){"use strict";var K3=J3(1);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?K3(a,0,-1):[];}H3.exports=init;},function(L3,M3,N3){"use strict";function join(O3,P3){if(P3===void 0){return function(Q3){return join(O3,Q3);};}return P3.join(O3);}L3.exports=join;},function(R3,S3,T3){"use strict";function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}R3.exports=last;},function(U3,V3,W3){"use strict";function length(X3){return X3.length;}U3.exports=length;},function(Y3,Z3,a4){"use strict";function match(b4,c4){if(c4===void 0){return function(d4){return match(b4,d4);};}var e4=c4.match(b4);return e4===null?[]:e4;}Y3.exports=match;},function(f4,g4,h4){"use strict";function omit(i4,j4){if(j4===void 0){return function(k4){return omit(i4,k4);};}var l4={};for(var m4 in j4){if(!i4.includes(m4)){l4[m4]=j4[m4];}}return l4;}f4.exports=omit;},function(n4,o4,p4){"use strict";var q4=p4(0),r4=p4(6);function curry(fn){var t4=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(u4){if(q4(fn)==="Async"){return new Promise(function(v4,w4){fn(r4(u4,t4)).then(v4).catch(w4);});}return fn(r4(u4,t4));};}n4.exports=curry;},function(x4,y4,z4){"use strict";function path(A4,B4){if(B4===void 0){return function(C4){return path(A4,C4);};}var D4=B4,E4=0;if(typeof A4==="string"){A4=A4.split(".");}while(E4<A4.length){if(D4===null){return void 0;}D4=D4[A4[E4]];E4++;}return D4;}x4.exports=path;},function(F4,G4,H4){"use strict";function pick(I4,J4){if(J4===void 0){return function(K4){return pick(I4,K4);};}var L4={},M4=0;while(M4<I4.length){if(I4[M4]in J4){L4[I4[M4]]=J4[I4[M4]];}M4++;}return L4;}F4.exports=pick;},function(N4,O4,P4){"use strict";var Q4=P4(5);function pluck(R4,S4){if(S4===void 0){return function(T4){return pluck(R4,T4);};}var U4=[];Q4(function(V4){if(!(V4[R4]===void 0)){U4.push(V4[R4]);}},S4);return U4;}N4.exports=pluck;},function(W4,X4,Y4){"use strict";function prepend(Z4,a5){if(a5===void 0){return function(b5){return prepend(Z4,b5);};}var c5=a5.concat();c5.unshift(Z4);return c5;}W4.exports=prepend;},function(d5,e5,f5){"use strict";function prop(g5,h5){if(h5===void 0){return function(i5){return prop(g5,i5);};}return h5[g5];}d5.exports=prop;},function(j5,k5,l5){"use strict";function propEq(m5,n5,o5){if(n5===void 0){return function(p5,q5){return propEq(m5,p5,q5);};}else if(o5===void 0){return function(r5){return propEq(m5,n5,r5);};}return o5[m5]===n5;}j5.exports=propEq;},function(s5,t5,u5){"use strict";function range(v5,w5){for(var x5=[],i=v5;i<w5;i++){x5.push(i);}return x5;}s5.exports=range;},function(y5,z5,A5){"use strict";function reduce(fn,C5,D5){if(C5===void 0){return function(E5,F5){return reduce(fn,E5,F5);};}else if(D5===void 0){return function(G5){return reduce(fn,C5,G5);};}return D5.reduce(fn,C5);}y5.exports=reduce;},function(H5,I5,J5){"use strict";function repeat(a,K5){if(K5===void 0){return function(L5){return repeat(a,L5);};}var M5=Array(K5);return M5.fill(a);}H5.exports=repeat;},function(N5,O5,P5){"use strict";function replace(Q5,R5,S5){if(R5===void 0){return function(T5,U5){return replace(Q5,T5,U5);};}else if(S5===void 0){return function(V5){return replace(Q5,R5,V5);};}return S5.replace(Q5,R5);}N5.exports=replace;},function(W5,X5,Y5){"use strict";function sort(fn,a6){if(a6===void 0){return function(b6){return sort(fn,b6);};}var c6=a6.concat();return c6.sort(fn);}W5.exports=sort;},function(d6,e6,f6){"use strict";function sortBy(fn,h6){if(h6===void 0){return function(i6){return sortBy(fn,i6);};}var j6=h6.concat();return j6.sort(function(a,b){var k6=fn(a),l6=fn(b);return k6<l6?-1:k6>l6?1:0;});}d6.exports=sortBy;},function(m6,n6,o6){"use strict";function split(p6,q6){if(q6===void 0){return function(r6){return split(p6,r6);};}return q6.split(p6);}m6.exports=split;},function(s6,t6,u6){"use strict";function splitEvery(v6,a){if(a===void 0){return function(w6){return splitEvery(v6,w6);};}v6=v6>1?v6:1;var x6=[],y6=0;while(y6<a.length){x6.push(a.slice(y6,y6+=v6));}return x6;}s6.exports=splitEvery;},function(z6,A6,B6){"use strict";function subtract(a,b){if(b===void 0){return function(C6){return subtract(a,C6);};}return a-b;}z6.exports=subtract;},function(D6,E6,F6){"use strict";var G6=F6(3);function tail(H6){return G6(1,H6);}D6.exports=tail;},function(I6,J6,K6){"use strict";var L6=K6(1);function take(M6,a){if(a===void 0){return function(N6){return take(M6,N6);};}else if(typeof a==="string"){return a.slice(0,M6);}return L6(a,0,M6);}I6.exports=take;},function(O6,P6,Q6){"use strict";var R6=Q6(1);function takeLast(S6,a){if(a===void 0){return function(T6){return takeLast(S6,T6);};}var U6=a.length;S6=S6>U6?U6:S6;if(typeof a==="string"){return a.slice(U6-S6);}S6=U6-S6;return R6(a,S6,U6);}O6.exports=takeLast;},function(V6,W6,X6){"use strict";function test(Y6,Z6){if(Z6===void 0){return function(a7){return test(Y6,a7);};}return Z6.search(Y6)===-1?!1:!0;}V6.exports=test;},function(b7,c7,d7){"use strict";function toLower(e7){return e7.toLowerCase();}b7.exports=toLower;},function(f7,g7,h7){"use strict";function toUpper(i7){return i7.toUpperCase();}f7.exports=toUpper;},function(j7,k7,l7){"use strict";function trim(m7){return m7.trim();}j7.exports=trim;},function(n7,o7,p7){"use strict";var q7=p7(2);function uniq(r7){var s7=-1,t7=[];while(++s7<r7.length){var u7=r7[s7];if(!q7(u7,t7)){t7.push(u7);}}return t7;}n7.exports=uniq;},function(v7,w7,x7){"use strict";function update(y7,z7,A7){if(z7===void 0){return function(B7,C7){return update(y7,B7,C7);};}else if(A7===void 0){return function(D7){return update(y7,z7,D7);};}var E7=A7.concat();return E7.fill(z7,y7,y7+1);}v7.exports=update;},function(F7,G7,H7){"use strict";function values(I7){var J7=[];for(key in I7){J7.push(I7[key]);}return J7;}F7.exports=values;},function(K7,L7,M7){"use strict";L7.add=M7(7);L7.addIndex=M7(8);L7.any=M7(10);L7.adjust=M7(9);L7.append=M7(11);L7.compose=M7(12);L7.contains=M7(2);L7.curry=M7(13);L7.defaultTo=M7(14);L7.drop=M7(3);L7.dropLast=M7(15);L7.equals=M7(4);L7.filter=M7(16);L7.find=M7(17);L7.findIndex=M7(18);L7.flatten=M7(19);L7.has=M7(20);L7.head=M7(21);L7.indexOf=M7(22);L7.init=M7(23);L7.join=M7(24);L7.last=M7(25);L7.length=M7(26);L7.map=M7(5);L7.match=M7(27);L7.merge=M7(6);L7.omit=M7(28);L7.path=M7(30);L7.partialCurry=M7(29);L7.pick=M7(31);L7.pluck=M7(32);L7.prepend=M7(33);L7.prop=M7(34);L7.propEq=M7(35);L7.range=M7(36);L7.repeat=M7(38);L7.replace=M7(39);L7.sort=M7(40);L7.sortBy=M7(41);L7.split=M7(42);L7.splitEvery=M7(43);L7.subtract=M7(44);L7.tail=M7(45);L7.take=M7(46);L7.takeLast=M7(47);L7.test=M7(48);L7.toLower=M7(49);L7.toUpper=M7(50);L7.trim=M7(51);L7.type=M7(0);L7.uniq=M7(52);L7.update=M7(53);L7.values=M7(54);L7.reduce=M7(37);}]);}]);});
(function webpackUniversalModuleDefinition(c,d){if(typeof exports==='object'&&typeof module==='object')module.exports=d();else if(typeof define==='function'&&define.amd)define([],d);else{var a=d();for(var i in a)(typeof exports==='object'?exports:c)[i]=a[i];}})(this,function(){return function(e){var g={};function __webpack_require__(h){if(g[h]){return g[h].exports;}var j=g[h]={i:h,l:!1,exports:{}};e[h].call(j.exports,j,j.exports,__webpack_require__);j.l=!0;return j.exports;}__webpack_require__.m=e;__webpack_require__.c=g;__webpack_require__.i=function(k){return k;};__webpack_require__.d=function(l,m,n){if(!__webpack_require__.o(l,m)){Object.defineProperty(l,m,{configurable:!1,enumerable:!0,get:n});}};__webpack_require__.n=function(q){var r=q&&q.__esModule?function getDefault(){return q['default'];}:function getModuleExports(){return q;};__webpack_require__.d(r,'a',r);return r;};__webpack_require__.o=function(s,t){return Object.prototype.hasOwnProperty.call(s,t);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=12);}([function(u,v){function curry(w){return(x,y)=>{if(y===void 0){return A=>w(x,A);}return w(x,y);};}u.exports=curry;},function(B,C,D){const E=D(0);function curryThree(F){return(x,y,z)=>{if(y===void 0){const helper=(G,H)=>{return F(x,G,H);};return E(helper);}else if(z===void 0){return I=>F(x,y,I);}return F(x,y,z);};}B.exports=curryThree;},function(J,K){function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}const L=a.toString();if(L.startsWith("async")){return"Async";}else if(L==="[object Promise]"){return"Promise";}else if(L.includes("function")||L.includes("=>")){return"Function";}return"Object";}J.exports=type;},function(M,N){function baseSlice(O,P,Q){let R=-1,S=O.length;Q=Q>S?S:Q;if(Q<0){Q+=S;}S=P>Q?0:Q-P>>>0;P>>>=0;const T=Array(S);while(++R<S){T[R]=O[R+P];}return T;}M.exports=baseSlice;},function(U,V,W){const X=W(0);function any(Y,Z){let a1=0;while(a1<Z.length){if(Y(Z[a1])){return!0;}a1++;}return!1;}U.exports=X(any);},function(b1,c1,d1){const e1=d1(7),f1=d1(0);function contains(g1,h1){let i1=-1,j1=!1;while(++i1<h1.length&&!j1){if(e1(h1[i1],g1)){j1=!0;}}return j1;}b1.exports=f1(contains);},function(k1,l1,m1){const n1=m1(0);function drop(o1,a){return a.slice(o1);}k1.exports=n1(drop);},function(p1,q1,r1){const s1=r1(0),t1=r1(2);function equals(a,b){if(a===b){return!0;}const u1=t1(a);if(u1!==t1(b)){return!1;}if(u1==="Array"){const v1=Array.from(a),w1=Array.from(b);return v1.sort().toString()===w1.sort().toString();}if(u1==="Object"){const x1=Object.keys(a);if(x1.length===Object.keys(b).length){if(x1.length===0){return!0;}let y1=!0;x1.map(z1=>{if(y1){const A1=t1(a[z1]),B1=t1(b[z1]);if(A1===B1){if(A1==="Object"){if(Object.keys(a[z1]).length===Object.keys(b[z1]).length){if(Object.keys(a[z1]).length!==0){if(!equals(a[z1],b[z1])){y1=!1;}}}else{y1=!1;}}else if(!equals(a[z1],b[z1])){y1=!1;}}else{y1=!1;}}});return y1;}}return!1;}p1.exports=s1(equals);},function(C1,D1,E1){const F1=E1(0);function filter(fn,H1){let I1=-1,J1=0;const K1=H1.length,L1=[];while(++I1<K1){const M1=H1[I1];if(fn(M1)){L1[J1++]=M1;}}return L1;}C1.exports=F1(filter);},function(N1,O1,P1){const Q1=P1(0);function map(fn,S1){let T1=-1;const U1=S1.length,V1=Array(U1);while(++T1<U1){V1[T1]=fn(S1[T1]);}return V1;}N1.exports=Q1(map);},function(W1,X1,Y1){const Z1=Y1(0);function merge(a2,b2){return Object.assign({},a2,b2);}W1.exports=Z1(merge);},function(c2,d2,e2){const f2=e2(32),g2=e2(33),h2=e2(34),i2=e2(35),j2=e2(36);d2.add=g2('+');d2.addIndex=e2(13);d2.adjust=e2(14);d2.always=x=>()=>x;d2.any=e2(4);d2.append=e2(17);d2.all=e2(15);d2.allPass=e2(16);d2.both=e2(18);d2.compose=e2(19);d2.complement=fn=>l2=>!Boolean(fn(l2));d2.concat=h2("concat");d2.contains=e2(5);d2.curry=e2(20);d2.defaultTo=e2(21);d2.divide=g2('/');d2.drop=e2(6);d2.dropLast=e2(22);d2.either=e2(23);d2.endsWith=f2("endsWith");d2.equals=e2(7);d2.F=()=>!1;d2.filter=e2(8);d2.find=e2(24);d2.findIndex=e2(25);d2.flatten=e2(26);d2.has=e2(27);d2.head=e2(28);d2.identity=x=>x;d2.ifElse=e2(29);d2.includes=f2("includes");d2.indexOf=e2(30);d2.init=e2(31);d2.join=f2('join');d2.last=e2(37);d2.lastIndexOf=f2("lastIndexOf");d2.length=i2("length");d2.map=e2(9);d2.match=e2(38);d2.merge=e2(10);d2.modulo=g2('%');d2.multiply=g2('*');d2.not=x=>!x;d2.omit=e2(39);d2.padEnd=f2('padEnd');d2.padStart=f2('padStart');d2.partialCurry=e2(40);d2.path=e2(41);d2.pick=e2(42);d2.pluck=e2(43);d2.prepend=e2(44);d2.prop=e2(45);d2.propEq=e2(46);d2.range=e2(47);d2.reduce=e2(48);d2.repeat=e2(49);d2.replace=e2(50);d2.reverse=j2('reverse');d2.sort=e2(51);d2.sortBy=e2(52);d2.split=e2(53);d2.splitEvery=e2(54);d2.startsWith=f2("startsWith");d2.subtract=g2('-');d2.T=()=>!0;d2.tap=e2(58);d2.tail=e2(55);d2.take=e2(56);d2.takeLast=e2(57);d2.test=e2(59);d2.toLower=j2("toLowerCase");d2.toString=j2('toString');d2.toUpper=j2("toUpperCase");d2.trim=j2("trim");d2.type=e2(2);d2.uniq=e2(60);d2.update=e2(61);d2.values=e2(62);},function(m2,n2,o2){const p2=o2(11);m2.exports.R=p2;},function(q2,r2){function addIndex(s2){return function(fn,...rest){let u2=0;const newFn=(...args)=>fn.apply(null,[...args,u2++]);return s2.apply(null,[newFn,...rest]);};}q2.exports=addIndex;},function(v2,w2,x2){const y2=x2(1);function adjust(fn,A2,B2){const C2=B2.concat();return C2.map((D2,E2)=>{if(E2===A2){return fn(B2[A2]);}return D2;});}v2.exports=y2(adjust);},function(F2,G2,H2){const I2=H2(8);function all(J2,K2){if(arguments.length===1){return L2=>all(J2,L2);}return I2(J2,K2).length===K2.length;}F2.exports=all;},function(M2,N2,O2){const P2=O2(4);function allPass(Q2,x){if(arguments.length===1){return R2=>allPass(R2,xHolder);}return!P2(S2=>!S2(x))(Q2);}M2.exports=allPass;},function(T2,U2,V2){const W2=V2(0);function append(X2,Y2){const Z2=Y2.concat();Z2.push(X2);return Z2;}T2.exports=W2(append);},function(a3,b3,c3){const d3=c3(0);function both(x,y){return e3=>x(e3)&&y(e3);}a3.exports=d3(both);},function(f3,g3){const compose=(...fns)=>h3=>{let i3=fns.slice();while(i3.length>0){h3=i3.pop()(h3);}return h3;};f3.exports=compose;},function(j3,k3){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}j3.exports=curry;},function(l3,m3,n3){const o3=n3(2);function defaultTo(p3,q3){if(arguments.length===1){return r3=>defaultTo(p3,r3);}return q3===void 0||!(o3(q3)===o3(p3))?p3:q3;}l3.exports=defaultTo;},function(s3,t3,u3){const v3=u3(0);function dropLast(w3,a){return a.slice(0,-w3);}s3.exports=v3(dropLast);},function(x3,y3,z3){const A3=z3(0);function either(x,y){return B3=>x(B3)||y(B3);}x3.exports=A3(either);},function(C3,D3,E3){const F3=E3(0);function find(fn,H3){return H3.find(fn);}C3.exports=F3(find);},function(I3,J3,K3){const L3=K3(0);function findIndex(fn,N3){const O3=N3.length;let P3=-1;while(++P3<O3){if(fn(N3[P3])){return P3;}}return-1;}I3.exports=L3(findIndex);},function(Q3,R3){function flatten(S3,T3){T3=T3===void 0?[]:T3;for(let i=0;i<S3.length;i++){if(Array.isArray(S3[i])){flatten(S3[i],T3);}else{T3.push(S3[i]);}}return T3;}Q3.exports=flatten;},function(U3,V3,W3){const X3=W3(0);function has(Y3,Z3){return Z3[Y3]!==void 0;}U3.exports=X3(has);},function(a4,b4){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}a4.exports=head;},function(c4,d4,e4){const f4=e4(1);function ifElse(g4,h4,i4){return j4=>{if(g4(j4)===!0){return h4(j4);}return i4(j4);};}c4.exports=f4(ifElse);},function(k4,l4,m4){const n4=m4(0);function indexOf(o4,p4){let q4=-1;const r4=p4.length;while(++q4<r4){if(p4[q4]===o4){return q4;}}return-1;}k4.exports=n4(indexOf);},function(s4,t4,u4){const v4=u4(3);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?v4(a,0,-1):[];}s4.exports=init;},function(w4,x4){function helper(y4,x,y){if(x===void 0){return(z4,A4)=>helper(y4,z4,A4);}else if(y===void 0){return B4=>helper(y4,x,B4);}if(y[y4]!==void 0){return y[y4](x);}}w4.exports=helper;},function(C4,D4,E4){const F4=E4(1);function mathHelper(G4,x,y){switch(G4){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}C4.exports=F4(mathHelper);},function(H4,I4){function oppositeHelper(J4,x,y){if(x===void 0){return(K4,L4)=>oppositeHelper(J4,K4,L4);}else if(y===void 0){return M4=>oppositeHelper(J4,x,M4);}if(x[J4]!==void 0){return x[J4](y);}}H4.exports=oppositeHelper;},function(N4,O4){function propHelper(P4,x){if(x===void 0){return Q4=>propHelper(P4,Q4);}return x[P4];}N4.exports=propHelper;},function(R4,S4){function simpleHelper(T4,x){if(x===void 0){return U4=>simpleHelper(T4,U4);}if(x[T4]!==void 0){return x[T4]();}}R4.exports=simpleHelper;},function(V4,W4){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}V4.exports=last;},function(X4,Y4,Z4){const a5=Z4(0);function match(b5,c5){const d5=c5.match(b5);return d5===null?[]:d5;}X4.exports=a5(match);},function(e5,f5,g5){const h5=g5(2);function omit(i5,j5){if(arguments.length===1){return k5=>omit(i5,k5);}if(!(h5(j5)==='Object')){return void 0;}if(h5(i5)==='String'){i5=i5.split(',').map(x=>x.trim());}const l5={};for(const m5 in j5){if(!i5.includes(m5)){l5[m5]=j5[m5];}}return l5;}e5.exports=omit;},function(n5,o5,p5){const q5=p5(2),r5=p5(10);function partialCurry(fn,t5={}){return u5=>{if(q5(fn)==="Async"||q5(fn)==="Promise"){return new Promise((v5,w5)=>{fn(r5(u5,t5)).then(v5).catch(w5);});}return fn(r5(u5,t5));};}n5.exports=partialCurry;},function(x5,y5,z5){const A5=z5(2);function path(B5,C5){if(arguments.length===1){return D5=>path(B5,D5);}if(!(A5(C5)==="Object")){return void 0;}let E5=C5,F5=0;if(typeof B5==="string"){B5=B5.split(".");}while(F5<B5.length){if(E5===null||E5===void 0){return void 0;}E5=E5[B5[F5]];F5++;}return E5;}x5.exports=path;},function(G5,H5,I5){const J5=I5(2);function pick(K5,L5){if(arguments.length===1){return M5=>pick(K5,M5);}if(!(J5(L5)==="Object")){return void 0;}if(J5(K5)==='String'){K5=K5.split(',').map(x=>x.trim());}const N5={};let O5=0;while(O5<K5.length){if(K5[O5]in L5){N5[K5[O5]]=L5[K5[O5]];}O5++;}return N5;}G5.exports=pick;},function(P5,Q5,R5){const S5=R5(0),T5=R5(9);function pluck(U5,V5){const W5=[];T5(X5=>{if(!(X5[U5]===void 0)){W5.push(X5[U5]);}},V5);return W5;}P5.exports=S5(pluck);},function(Y5,Z5,a6){const b6=a6(0);function prepend(c6,d6){const e6=d6.concat();e6.unshift(c6);return e6;}Y5.exports=b6(prepend);},function(f6,g6,h6){const i6=h6(0);function prop(j6,k6){return k6[j6];}f6.exports=i6(prop);},function(l6,m6,n6){const o6=n6(1);function propEq(p6,q6,r6){return r6[p6]===q6;}l6.exports=o6(propEq);},function(s6,t6){function range(u6,v6){const w6=[];for(let i=u6;i<v6;i++){w6.push(i);}return w6;}s6.exports=range;},function(x6,y6,z6){const A6=z6(1);function reduce(fn,C6,D6){return D6.reduce(fn,C6);}x6.exports=A6(reduce);},function(E6,F6,G6){const H6=G6(0);function repeat(a,I6){const J6=Array(I6);return J6.fill(a);}E6.exports=H6(repeat);},function(K6,L6,M6){const N6=M6(1);function replace(O6,P6,Q6){return Q6.replace(O6,P6);}K6.exports=N6(replace);},function(R6,S6,T6){const U6=T6(0);function sort(fn,W6){const X6=W6.concat();return X6.sort(fn);}R6.exports=U6(sort);},function(Y6,Z6,a7){const b7=a7(0);function sortBy(fn,d7){const e7=d7.concat();return e7.sort((a,b)=>{const f7=fn(a),g7=fn(b);return f7<g7?-1:f7>g7?1:0;});}Y6.exports=b7(sortBy);},function(h7,i7,j7){const k7=j7(0);function split(l7,m7){return m7.split(l7);}h7.exports=k7(split);},function(n7,o7,p7){const q7=p7(0);function splitEvery(r7,a){r7=r7>1?r7:1;const s7=[];let t7=0;while(t7<a.length){s7.push(a.slice(t7,t7+=r7));}return s7;}n7.exports=q7(splitEvery);},function(u7,v7,w7){const x7=w7(6);function tail(y7){return x7(1,y7);}u7.exports=tail;},function(z7,A7,B7){const C7=B7(0),D7=B7(3);function take(E7,a){if(a===void 0){return F7=>take(E7,F7);}else if(typeof a==="string"){return a.slice(0,E7);}return D7(a,0,E7);}z7.exports=C7(take);},function(G7,H7,I7){const J7=I7(3),K7=I7(0);function takeLast(L7,a){const M7=a.length;L7=L7>M7?M7:L7;if(typeof a==="string"){return a.slice(M7-L7);}L7=M7-L7;return J7(a,L7,M7);}G7.exports=K7(takeLast);},function(N7,O7,P7){const Q7=P7(0);function tap(fn,S7){fn(S7);return S7;}N7.exports=Q7(tap);},function(T7,U7,V7){const W7=V7(0);function test(X7,Y7){return Y7.search(X7)===-1?!1:!0;}T7.exports=W7(test);},function(Z7,a8,b8){const c8=b8(5);function uniq(d8){let e8=-1;const f8=[];while(++e8<d8.length){const g8=d8[e8];if(!c8(g8,f8)){f8.push(g8);}}return f8;}Z7.exports=uniq;},function(h8,i8,j8){const k8=j8(1);function update(l8,m8,n8){const o8=n8.concat();return o8.fill(m8,l8,l8+1);}h8.exports=k8(update);},function(p8,q8){function values(r8){const s8=[];for(const t8 in r8){s8.push(r8[t8]);}return s8;}p8.exports=values;}]);});

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc