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

partial.lenses

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

partial.lenses - npm Package Compare versions

Comparing version 14.11.0 to 14.11.1

5

CHANGELOG.md
# Partial Lenses Changelog
## 14.11.1
Fixed `L.subset` not to call the predicate in case the focus is already
`undefined`.
## 14.2.1

@@ -4,0 +9,0 @@

212

dist/partial.lenses.es.js
import { defineNameU, isString, always, freeze, isArray, isObject, Applicative, sndU, curry, isFunction, curryN, assocPartialU, dissocPartialU, object0, Identity, resolve, IdentityAsync, isNumber, constructorOf, toObject, create, acyclicEqualsU, inherit, isDefined, array0, keys, hasU, assign, arityN, id, isInstanceOfU } from 'infestines';
export { Identity, IdentityAsync, FantasyFunctor, fromFantasy, fromFantasyApplicative, fromFantasyMonad } from 'infestines';
var LENGTH = 'length';
var addU = function addU(x, y) {

@@ -53,9 +55,5 @@ return x + y;

var length = function length(x) {
return x.length;
};
var dep = function dep(xs2xsyC) {
return function (xsy) {
return arityN(xsy.length, defineNameU(function () {
return arityN(xsy[LENGTH], defineNameU(function () {
return xs2xsyC.apply(undefined, arguments)(xsy).apply(undefined, arguments);

@@ -68,3 +66,3 @@ }, xsy.name));

return function (xsy) {
return arityN(xsy.length, defineNameU(function () {
return arityN(xsy[LENGTH], defineNameU(function () {
for (var _len = arguments.length, xs = Array(_len), _key = 0; _key < _len; _key++) {

@@ -105,3 +103,3 @@ xs[_key] = arguments[_key];

return function (x) {
for (var i = 0, n = xCs.length; i < n; ++i) {
for (var i = 0, n = xCs[LENGTH]; i < n; ++i) {
x = xCs[i](x);

@@ -119,3 +117,3 @@ }return x;

var es = null;
for (var i = 0, n = xCs.length; i < n; ++i) {
for (var i = 0, n = xCs[LENGTH]; i < n; ++i) {
try {

@@ -144,3 +142,3 @@ return xCs[i](x);

return function (xs) {
if (xs.length !== xCs.length) throw Error('Expected array of ' + xCs.length + ' elements, but got ' + xs.length);
if (xs[LENGTH] !== xCs[LENGTH]) throw Error('Expected array of ' + xCs[LENGTH] + ' elements, but got ' + xs[LENGTH]);
return and.apply(null, xCs.map(function (xC, i) {

@@ -253,3 +251,3 @@ return nth(i, xC);

if (seemsArrayLike(xs)) {
var n = xs.length;
var n = xs[LENGTH];
var ys = Array(n);

@@ -272,3 +270,3 @@ var i = 0;

})(function (xi2y, xs, skip) {
var n = xs.length;
var n = xs[LENGTH];
var ys = Array(n);

@@ -286,3 +284,3 @@ var j = 0;

if (j !== n) {
ys.length = j;
ys[LENGTH] = j;
return ys;

@@ -302,3 +300,3 @@ } else if (same) {

return function (ys, k, xs, i, j) {
return ys.length === k + j - i ? freeze(fn$$1(ys, k, xs, i, j)) : fn$$1(ys, k, xs, i, j);
return ys[LENGTH] === k + j - i ? freeze(fn$$1(ys, k, xs, i, j)) : fn$$1(ys, k, xs, i, j);
};

@@ -314,3 +312,3 @@ })(function (ys, k, xs, i, j) {

function selectInArrayLike(xi2v, xs) {
for (var i = 0, n = xs.length; i < n; ++i) {
for (var i = 0, n = xs[LENGTH]; i < n; ++i) {
var v = xi2v(xs[i], i);

@@ -381,3 +379,3 @@ if (void 0 !== v) return v;

function reqFunction(o) {
if (!(isFunction(o) && (o.length === 4 || o.length <= 2))) errorGiven(expectedOptic, o, opticIsEither);
if (!(isFunction(o) && (o[LENGTH] === 4 || o[LENGTH] <= 2))) errorGiven(expectedOptic, o, opticIsEither);
}

@@ -402,3 +400,3 @@

reqArray(o);
for (var i = 0, n = o.length; i < n; ++i) {
for (var i = 0, n = o[LENGTH]; i < n; ++i) {
reqOptic(o[i]);

@@ -471,3 +469,3 @@ }break;

var xsA = A.of(consExcept);
var n = xs.length;
var n = xs[LENGTH];
if (map === sndU) {

@@ -534,3 +532,3 @@ for (var i = 0; i < n; ++i) {

if (!seemsArrayLike(xs)) xs = '';
var n = xs.length;
var n = xs[LENGTH];
if (void 0 !== x) {

@@ -567,3 +565,3 @@ var m = Math.max(i + 1, n);

function composed(oi0, os) {
var n = os.length - oi0;
var n = os[LENGTH] - oi0;
if (n < 2) {

@@ -604,3 +602,3 @@ return n ? toFunction(os[oi0]) : identity;

default:
return o.length === 4 ? o(s, void 0, Identity, always(x)) : s;
return o[LENGTH] === 4 ? o(s, void 0, Identity, always(x)) : s;
}

@@ -618,3 +616,3 @@ });

default:
return o.length === 4 ? o(s, void 0, Identity, xi2x) : (xi2x(o(s, void 0), void 0), s);
return o[LENGTH] === 4 ? o(s, void 0, Identity, xi2x) : (xi2x(o(s, void 0), void 0), s);
}

@@ -635,3 +633,3 @@ });

{
var n = l.length;
var n = l[LENGTH];
for (var i = 0, o; i < n; ++i) {

@@ -651,3 +649,3 @@ switch (typeof (o = l[i])) {

default:
return xi2y !== id$1 && l.length !== 4 ? xi2y(l(s, void 0), void 0) : l(s, void 0, Select, xi2y);
return xi2y !== id$1 && l[LENGTH] !== 4 ? xi2y(l(s, void 0), void 0) : l(s, void 0, Select, xi2y);
}

@@ -661,3 +659,3 @@ });

function modifyComposed(os, xi2y, x, y) {
var n = os.length;
var n = os[LENGTH];
var xs = Array(n);

@@ -679,3 +677,3 @@ for (var i = 0, o; i < n; ++i) {

}
if (n === os.length) x = xi2y ? xi2y(x, os[n - 1]) : y;
if (n === os[LENGTH]) x = xi2y ? xi2y(x, os[n - 1]) : y;
for (var _o; 0 <= --n;) {

@@ -763,3 +761,3 @@ x = isString(_o = os[n]) ? setProp(_o, x, xs[n]) : setIndex(_o, x, xs[n]);

var r = {};
var i = ks.length;
var i = ks[LENGTH];
while (i--) {

@@ -842,3 +840,3 @@ var v = xs[0];

}
var t = ks.length ? true : void 0;
var t = ks[LENGTH] ? true : void 0;
for (var _k4 in xO) {

@@ -850,3 +848,3 @@ if (void 0 === (t && k2o[_k4])) {

}
return ks.length ? map(branchAssemble(ks), xsA) : of(x);
return ks[LENGTH] ? map(branchAssemble(ks), xsA) : of(x);
}

@@ -871,3 +869,3 @@ };

var u = hint.hint;
var n = xs.length;
var n = xs[LENGTH];
if (n <= u) u = n - 1;

@@ -893,3 +891,3 @@ if (u < 0) u = 0;

}))(function (xi2b, xs, ts, fs) {
for (var i = 0, n = xs.length, x; i < n; ++i) {
for (var i = 0, n = xs[LENGTH], x; i < n; ++i) {
(xi2b(x = xs[i], i) ? ts : fs).push(x);

@@ -907,10 +905,8 @@ }

var reValue = function reValue(m) {
return m[0];
};
var reIndex = function reIndex(m) {
return m.index;
};
var LAST_INDEX = 'lastIndex';
var INDEX = 'index';
var RE_VALUE = 0;
var reLastIndex = function reLastIndex(m) {
return reIndex(m) + m[0].length;
return m[INDEX] + m[0][LENGTH];
};

@@ -925,6 +921,6 @@

})(function (m, re) {
var lastIndex = re.lastIndex;
re.lastIndex = reLastIndex(m);
var lastIndex = re[LAST_INDEX];
re[LAST_INDEX] = reLastIndex(m);
var n = re.exec(m.input);
re.lastIndex = lastIndex;
re[LAST_INDEX] = lastIndex;
return n && n[0] && n;

@@ -954,3 +950,3 @@ });

while (s = reNext(s, t)) {
var y = xi2y(reValue(s), reIndex(s));
var y = xi2y(s[RE_VALUE], s[INDEX]);
if (void 0 !== y) return y;

@@ -963,3 +959,3 @@ }

while (s = reNext(s, t)) {
r = ap(ap(map(iterCollect, of(s)), r), xi2yA(reValue(s), reIndex(s)));
r = ap(ap(map(iterCollect, of(s)), r), xi2yA(s[RE_VALUE], s[INDEX]));
}return r;

@@ -978,5 +974,5 @@ }

var o = {};
for (var i = 0, n = es.length; i < n; ++i) {
for (var i = 0, n = es[LENGTH]; i < n; ++i) {
var entry = es[i];
if (entry.length === 2) o[entry[0]] = entry[1];
if (entry[LENGTH] === 2) o[entry[0]] = entry[1];
}

@@ -993,6 +989,6 @@ return o;

var matches = iterToArray(matchesIn);
var n = matches.length;
var n = matches[LENGTH];
for (var j = n - 2; j !== -2; j += -2) {
var m = matches[j];
result += input.slice(lastIndex, reIndex(m));
result += input.slice(lastIndex, m[INDEX]);
var s = matches[j + 1];

@@ -1101,3 +1097,3 @@ if (void 0 !== s) result += s;

return copyName(function (_) {
var n = arguments.length;
var n = arguments[LENGTH];
var r = arguments[--n];

@@ -1154,6 +1150,6 @@ while (n) {

return function (xs, ss) {
var n = ls.length;
var n = ls[LENGTH];
if (!seemsArrayLike(xs)) return;
if (!seemsArrayLike(ss)) ss = '';
var m = Math.max(n, xs.length, ss.length);
var m = Math.max(n, xs[LENGTH], ss[LENGTH]);
var ys = Array(m);

@@ -1176,3 +1172,3 @@ for (var i = 0; i < m; ++i) {

return function subset(x) {
return p(x) ? x : undefined;
return void 0 !== x && p(x) ? x : void 0;
};

@@ -1206,4 +1202,4 @@ };

function nVars(n) {
while (length(vars) < n) {
vars.push(new Variable(length(vars)));
while (vars[LENGTH] < n) {
vars.push(new Variable(vars[LENGTH]));
}return vars;

@@ -1247,3 +1243,3 @@ }

var nSpread = 0;
for (var i = 0, n = length(p); i < n; ++i) {
for (var i = 0, n = p[LENGTH]; i < n; ++i) {
var pi = p[i];

@@ -1305,3 +1301,3 @@ if (isSpread(pi)) {

var spread = void 0;
var n = length(p);
var n = p[LENGTH];
for (var _i3 = 0; _i3 < n; ++_i3) {

@@ -1319,8 +1315,8 @@ var x = p[_i3];

if (!seemsArrayLike(x)) return;
var l = x.length;
var l = x[LENGTH];
if (void 0 !== spread ? l < n - 1 : l !== n) return;
var j = init.length;
var j = init[LENGTH];
for (var _i4 = 0; _i4 < j; ++_i4) {
if (!init[_i4](e, x[_i4])) return;
}var k = rest.length;
}var k = rest[LENGTH];
l -= k;

@@ -1376,3 +1372,3 @@ for (var _i5 = 0; _i5 < k; ++_i5) {

var spread = void 0;
var n = length(p);
var n = p[LENGTH];
for (var _i6 = 0; _i6 < n; ++_i6) {

@@ -1389,11 +1385,11 @@ var x = p[_i6];

var r = [];
for (var _i7 = 0, _n3 = init.length; _i7 < _n3; ++_i7) {
for (var _i7 = 0, _n3 = init[LENGTH]; _i7 < _n3; ++_i7) {
pushDefined(r, init[_i7](e));
}if (0 <= spread) {
var xs = e[spread];
if (xs) for (var _i8 = 0, _n4 = xs.length; _i8 < _n4; ++_i8) {
if (xs) for (var _i8 = 0, _n4 = xs[LENGTH]; _i8 < _n4; ++_i8) {
pushDefined(r, xs[_i8]);
}
}
for (var _i9 = 0, _n5 = rest.length; _i9 < _n5; ++_i9) {
for (var _i9 = 0, _n5 = rest[LENGTH]; _i9 < _n5; ++_i9) {
pushDefined(r, rest[_i9](e));

@@ -1431,3 +1427,3 @@ }return r;

var seemsArrayLike = function seemsArrayLike(x) {
return x instanceof Object && (x = x.length, x === x >> 0 && 0 <= x) || isString(x);
return x instanceof Object && (x = x[LENGTH], x === x >> 0 && 0 <= x) || isString(x);
};

@@ -1448,3 +1444,3 @@

default:
return o.length === 4 ? o : fromReader(o);
return o[LENGTH] === 4 ? o : fromReader(o);
}

@@ -1476,3 +1472,3 @@ });

function compose() {
var n = arguments.length;
var n = arguments[LENGTH];
if (n < 2) {

@@ -1490,3 +1486,3 @@ return n ? arguments[0] : identity;

var r = [flatten];
for (var i = 0, n = arguments.length; i < n; ++i) {
for (var i = 0, n = arguments[LENGTH]; i < n; ++i) {
r.push(arguments[i], flatten);

@@ -1531,7 +1527,7 @@ }return r;

})(function cond() {
var n = arguments.length;
var n = arguments[LENGTH];
var r = zero;
while (n--) {
var c = arguments[n];
r = c.length < 2 ? toFunction(c[0]) : eitherU(toFunction(c[1]), r)(c[0]);
r = c[LENGTH] < 2 ? toFunction(c[0]) : eitherU(toFunction(c[1]), r)(c[0]);
}

@@ -1556,7 +1552,7 @@ return r;

var n = arguments.length - 1;
var n = arguments[LENGTH] - 1;
if (!n) return zero;
var def = arguments[n];
if (def.length === 1) {
if (def[LENGTH] === 1) {
--n;

@@ -1668,3 +1664,3 @@ def = toFunction(def[0]);

p = pushTo(p, ['%O']);
for (var i = 2; i < p.length; ++i) {
for (var i = 2; i < p[LENGTH]; ++i) {
p[0] += ' <= %O';

@@ -1677,3 +1673,3 @@ }console.log.apply(console, p);

var show = curry(function log(dir, x) {
console.log.apply(console, copyToFrom([], 0, arguments, 0, arguments.length).concat([dir, x]));
console.log.apply(console, copyToFrom([], 0, arguments, 0, arguments[LENGTH]).concat([dir, x]));
return x;

@@ -1701,3 +1697,3 @@ });

})(function seq() {
var n = arguments.length;
var n = arguments[LENGTH];
var r = zero;

@@ -1745,3 +1741,3 @@ if (n) {

function branches() {
var n = arguments.length;
var n = arguments[LENGTH];
var template = {};

@@ -1783,3 +1779,3 @@ for (var i = 0; i < n; ++i) {

m0.input = x;
m0.index = 0;
m0[INDEX] = 0;
if (Select === C) {

@@ -1797,3 +1793,3 @@ return iterSelect(xi2yC, re, m0);

return x.replace(re, void 0 !== y ? y : '');
}, xi2yC(m[0], reIndex(m)));
}, xi2yC(m[0], m[INDEX]));
}

@@ -1820,3 +1816,3 @@ }

var r = [];
for (var i = 0, n = arguments.length; i < n; ++i) {
for (var i = 0, n = arguments[LENGTH]; i < n; ++i) {
var o = toFunction(arguments[i]);

@@ -1926,3 +1922,3 @@ r.push(satisfying(isDefinedAt(o)), o);

}, t, s);
for (var i = xs.length - 1; 0 <= i; --i) {
for (var i = xs[LENGTH] - 1; 0 <= i; --i) {
r = f(r, xs[i], is[i]);

@@ -1947,3 +1943,3 @@ }return r;

function get(l, s) {
return 1 < arguments.length ? getAsU(id$1, l, s) : function (s) {
return 1 < arguments[LENGTH] ? getAsU(id$1, l, s) : function (s) {
return getAsU(id$1, l, s);

@@ -2087,3 +2083,3 @@ };

function append(xs, _, F, xi2yF) {
var i = seemsArrayLike(xs) ? xs.length : 0;
var i = seemsArrayLike(xs) ? xs[LENGTH] : 0;
return F.map(function (x) {

@@ -2104,4 +2100,4 @@ return setIndex(i, x, xs);

return F.map(function (ts) {
var tsN = ts ? ts.length : 0;
var fsN = fs.length;
var tsN = ts ? ts[LENGTH] : 0;
var fsN = fs[LENGTH];
var n = tsN + fsN;

@@ -2114,3 +2110,3 @@ return n === fsN ? fs : copyToFrom(copyToFrom(Array(n), 0, ts, 0, tsN), tsN, fs, 0, fsN);

function find(xih2b) {
var hint = arguments.length > 1 ? arguments[1] : { hint: 0 };
var hint = arguments[LENGTH] > 1 ? arguments[1] : { hint: 0 };
return function find(xs, _i, F, xi2yF) {

@@ -2128,3 +2124,3 @@ var ys = seemsArrayLike(xs) ? xs : '';

var p = isDefinedAt(oo);
return [arguments.length > 1 ? find(p, arguments[1]) : find(p), oo];
return [arguments[LENGTH] > 1 ? find(p, arguments[1]) : find(p), oo];
}

@@ -2137,3 +2133,3 @@

var last = /*#__PURE__*/choose(function last(maybeArray) {
return seemsArrayLike(maybeArray) && maybeArray.length ? maybeArray.length - 1 : 0;
return seemsArrayLike(maybeArray) && maybeArray[LENGTH] ? maybeArray[LENGTH] - 1 : 0;
});

@@ -2150,7 +2146,7 @@

var seems = seemsArrayLike(xs);
var xsN = seems && xs.length;
var xsN = seems && xs[LENGTH];
var b = sliceIndex(0, xsN, 0, begin);
var e = sliceIndex(b, xsN, xsN, end);
return F.map(function (zs) {
var zsN = zs ? zs.length : 0;
var zsN = zs ? zs[LENGTH] : 0;
var bPzsN = b + zsN;

@@ -2179,3 +2175,3 @@ var n = xsN - e + bPzsN;

function props() {
var n = arguments.length;
var n = arguments[LENGTH];
var template = {};

@@ -2189,3 +2185,3 @@ for (var i = 0, k; i < n; ++i) {

var setish = create(null);
for (var i = 0, n = arguments.length; i < n; ++i) {
for (var i = 0, n = arguments[LENGTH]; i < n; ++i) {
setish[arguments[i]] = 'd';

@@ -2208,3 +2204,3 @@ }return [disjoint(function (k) {

if (!(y instanceof Object)) return y;
for (var i = 0, n = ps.length; i < n; ++i) {
for (var i = 0, n = ps[LENGTH]; i < n; ++i) {
if (hasU(ps[i], y)) return y;

@@ -2248,3 +2244,3 @@ }

function getInverse(o, s) {
return 1 < arguments.length ? setU(o, s, void 0) : function (s) {
return 1 < arguments[LENGTH] ? setU(o, s, void 0) : function (s) {
return setU(o, s, void 0);

@@ -2262,3 +2258,3 @@ };

var n = 0;
if (isFunction(ps)) ps = ps.apply(null, nVars(n = ps.length));
if (isFunction(ps)) ps = ps.apply(null, nVars(n = ps[LENGTH]));
checkPatternPairInDev(ps);

@@ -2274,3 +2270,3 @@ var kinds = Array(n);

function mappings(ps) {
if (isFunction(ps)) ps = ps.apply(null, nVars(ps.length));
if (isFunction(ps)) ps = ps.apply(null, nVars(ps[LENGTH]));
return alternatives.apply(null, ps.map(mapping));

@@ -2336,3 +2332,3 @@ }

var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freezeObjectOfObjects))(function indexed(xs) {
var n = xs.length;
var n = xs[LENGTH];
var xis = Array(n);

@@ -2343,9 +2339,9 @@ for (var i = 0; i < n; ++i) {

})), /*#__PURE__*/expect(isArray, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freeze))(function (xis) {
var n = xis.length;
var n = xis[LENGTH];
var xs = Array(n);
for (var i = 0; i < n; ++i) {
var xi = xis[i];
if (xi.length === 2) xs[xi[0]] = xi[1];
if (xi[LENGTH] === 2) xs[xi[0]] = xi[1];
}
n = xs.length;
n = xs[LENGTH];
var j = 0;

@@ -2359,3 +2355,3 @@ for (var _i11 = 0; _i11 < n; ++_i11) {

}
xs.length = j;
xs[LENGTH] = j;
return xs;

@@ -2384,3 +2380,3 @@ })));

var v = o[k];
if (isArray(v)) for (var i = 0, n = v.length; i < n; ++i) {
if (isArray(v)) for (var i = 0, n = v[LENGTH]; i < n; ++i) {
ps.push([k, v[i]]);

@@ -2392,5 +2388,5 @@ } else ps.push([k, v]);

var o = create(null);
for (var i = 0, n = ps.length; i < n; ++i) {
for (var i = 0, n = ps[LENGTH]; i < n; ++i) {
var entry = ps[i];
if (entry.length === 2) {
if (entry[LENGTH] === 2) {
var k = entry[0];

@@ -2430,3 +2426,3 @@ var v = entry[1];

return stringIsoU(function dropPrefix(x) {
return x.startsWith(pfx) ? x.slice(pfx.length) : undefined;
return x.startsWith(pfx) ? x.slice(pfx[LENGTH]) : undefined;
}, function (x) {

@@ -2439,3 +2435,3 @@ return pfx + x;

return stringIsoU(function dropSuffix(x) {
return x.endsWith(sfx) ? x.slice(0, x.length - sfx.length) : undefined;
return x.endsWith(sfx) ? x.slice(0, x[LENGTH] - sfx[LENGTH]) : undefined;
}, function (x) {

@@ -2455,3 +2451,3 @@ return x + sfx;

})(function split(sep) {
var re = arguments.length > 1 ? arguments[1] : sep;
var re = arguments[LENGTH] > 1 ? arguments[1] : sep;
return isoU(expect(isString, function (x) {

@@ -2469,8 +2465,8 @@ return x.split(re);

})(function uncouple(sep) {
var re = toRegExpU(arguments.length > 1 ? arguments[1] : sep, '');
var re = toRegExpU(arguments[LENGTH] > 1 ? arguments[1] : sep, '');
return isoU(expect(isString, function (x) {
var m = re.exec(x);
return m ? [x.slice(0, reIndex(m)), x.slice(reLastIndex(m))] : [x, ''];
return m ? [x.slice(0, m[INDEX]), x.slice(reLastIndex(m))] : [x, ''];
}), function (kv) {
if (isArray(kv) && kv.length === 2) {
if (isArray(kv) && kv[LENGTH] === 2) {
var k = kv[0];

@@ -2508,3 +2504,3 @@ var v = kv[1];

var ts = s.split('/');
var n = ts.length;
var n = ts[LENGTH];
for (var i = 1; i < n; ++i) {

@@ -2514,3 +2510,3 @@ var t = ts[i];

}
ts.length = n - 1;
ts[LENGTH] = n - 1;
return ts;

@@ -2517,0 +2513,0 @@ };

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

!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("infestines")):"function"==typeof define&&define.amd?define(["exports","infestines"],r):r(n.L={},n.I)}(this,function(n,A){"use strict";function r(n){switch(typeof n){case"boolean":case"number":case"string":return!0;default:return!1}}function e(n,r){for(var t=0,u=r.length;t<u;++t){var e=n(r[t],t);if(void 0!==e)return e}}function i(n,r,t,u){var e=n.map,i=n.ap,o=n.of(cn),c=t.length;if(e===A.sndU){for(var f=0;f<c;++f)o=i(o,r(t[f],f));return o}for(var a=cn(u),v=0;v<c;++v)o=i(e(a,o),r(t[v],v));return e(an,o)}function a(n,r){var t=r.length-n;if(t<2)return t?br(r[n]):Mn;for(var e=br(r[n+--t]),i=function(t,u){return function(n,r){return e(n,r,t,u)}};--t;)i=mn(br(r[n+t]),i);var o=br(r[n]);return function(n,r,t,u){return o(n,r,t,i(t,u))}}function u(n,r,t,u){for(var e,i,o=n.length,c=Array(o),f=0;f<o;++f)switch(c[f]=t,typeof(e=n[f])){case"string":t=ln(e,t);break;case"number":t=pn(e,t);break;default:t=a(f,n)(t,n[f-1],A.Identity,r||A.always(u)),o=f}for(o===n.length&&(t=r?r(t,n[o-1]):u);0<=--o;)t=A.isString(i=n[o])?dn(i,t,c[o]):hn(i,t,c[o]);return t}function t(n){this[or]=n,A.freeze(this)}function o(n){for(;z(sr)<n;)sr.push(new ar(z(sr)));return sr}function y(n,r,t,u){if(void 0!==u){if(r in t)return A.acyclicEqualsU(t[r],u);t[r]=u;var e=n[r];return!e||e(u)}}function c(i,n){if(!cr(n)){if(et(lr,rt,i))return A.always(i);if(vr(i)){var r=i[or][0][or];return function(n){return n[r]}}if(A.isArray(i)){for(var a=[],v=[],s=void 0,t=z(i),u=0;u<t;++u){var e=i[u];fr(e)?s=e[or]:(void 0!==s?v:a).push(c(e))}return K(function(n){for(var r=[],t=0,u=a.length;t<u;++t)hr(r,a[t](n));if(0<=s){var e=n[s];if(e)for(var i=0,o=e.length;i<o;++i)hr(r,e[i])}for(var c=0,f=v.length;c<f;++c)hr(r,v[c](n));return r})}var o=i[or];return o&&(o=o[0][or]),i=Or(Zr,c,i),K(function(n){var r={};for(var t in i)pr(r,t,i[t](n));if(0<=o){var u=n[o];if(u)for(var e in u)pr(r,e,u[e])}return r})}}function f(n,r,t,u){return mr(n)?nr(n,0,t,u):t.of(n)}function v(n,r,t,u){return A.isArray(n)?nr(n,0,t,u):A.isObject(n)?Zr(n,r,t,u):t.of(n)}function s(n,r,u,e){return function n(r,t){return A.isArray(r)?nr(r,0,u,n):void 0!==r?e(r,t):u.of(r)}(n,r)}function l(r,n){return 1<arguments.length?On(N,r,n):function(n){return On(N,r,n)}}function d(r,n,t,u){var e=mr(r)?r.length:0;return t.map(function(n){return hn(e,n,r)},u(void 0,e))}function p(o){var c=1<arguments.length?arguments[1]:{hint:0};return function(n,r,t,u){var e=mr(n)?n:"",i=c.hint=function(n,r,t){var u=n.hint,e=t.length;e<=u&&(u=e-1),u<0&&(u=0);for(var i=u-1;0<=i&&u<e;++u,--i){if(r(t[u],u,n))return u;if(r(t[i],i,n))return i}for(;u<e;++u)if(r(t[u],u,n))return u;for(;0<=i;--i)if(r(t[i],i,n))return i;return e}(c,o,e);return t.map(function(n){return hn(i,n,e)},u(e[i],i))}}function h(){for(var n,r=arguments.length,t={},u=0;u<r;++u)t[n=arguments[u]]=n;return Zt(t)}function g(r,n){return 1<arguments.length?bn(r,n,void 0):function(n){return bn(r,n,void 0)}}function m(n){var r=0;A.isFunction(n)&&(n=n.apply(null,o(r=n.length)));var t=Array(r),u=n.map(function(n){return function t(c,o){if(et(lr,rt,o))return function(n,r){return A.acyclicEqualsU(o,r)};if(vr(o)){var u=o[or][0][or];return u<0?N:function(n,r){return y(c,u,n,r)}}if(A.isArray(o)){for(var f=[],a=[],v=void 0,s=z(o),n=0;n<s;++n){var r=o[n];fr(r)?c[v=r[or]]=dr:(void 0!==v?a:f).push(t(c,r))}return function(n,r){if(mr(r)){var t=r.length;if(!(void 0!==v?t<s-1:t!==s)){for(var u=f.length,e=0;e<u;++e)if(!f[e](n,r[e]))return;var i=a.length;t-=i;for(var o=0;o<i;++o)if(!a[o](n,r[t+o]))return;return!(0<=v)||y(c,v,n,Z(Array(t-u),0,r,u,t))}}}}var l=o[or];l&&(c[l=l[0][or]]=yr),o=Or(Zr,function(n,r){return cr(r)?void 0:t(c,n)},o);var d=yt(Zr,o);return function(n,r){if(!lr(r)&&!A.isArray(r)){r=qn(r);var t=0<=l&&{},u=0;for(var e in r){var i=o[e];if(i){if(!i(n,r[e]))return;u++}else{if(void 0===l)return;t&&(t[e]=r[e])}}return u===d&&(!t||y(c,l,n,H(t)))}}}(t,n)}),e=n.map(c);return Sn(gr(r,u[0],e[1]),gr(r,u[1],e[0]))}var b=function(n,r){return n+r},j=function(n,r){return n*r},x=A.curry(b),O=A.curry(j),I=A.curry(function(n,r){return r/n}),w=function(n){return-n},S=function(n,r){return n<r},U=function(n,r){return r<n},F=A.curry(A.isInstanceOfU),k=function(n){return A.assign(A.create(null),n)},E=A.freeze(k(A.object0)),q=A.curry(function(n,r,t){return t.replace(n,r)}),M=Symbol.iterator,z=function(n){return n.length},N=function(n){return n},R=function(n){return n},P=function(n){return n},C=function(n,r){return A.isString(n)?new RegExp(q(/[|\\{}()[\]^$+*?.]/g,"\\$&",n),r):n},D=function(r){return P(function(n){try{return r(n)}catch(n){return n}})},L=function(n){return void 0!==n?String(n):""},T=function(n,r,t,u){return void 0!==u?Math.min(Math.max(n,u<0?r+u:u),r):t},W=function(r){return function(n){return[n,r]}},$=function(r){return function(n){return void 0!==n?n:r}},_=$(0),B=A.always(!0),J=function(n){return void 0!==n?!n:n},G=function(r,t){return P(function(n){return r(n)?t(n):void 0})},H=N,K=N,Q=function(n){return!(n instanceof Object)||A.isArray(n)},V=N(function(n){if(mr(n)){for(var r=n.length,t=Array(r),u=0;r;)t[u++]=n[--r];return t}}),X=N(function(n,r,t){for(var u=r.length,e=Array(u),i=0,o=!0,c=0;c<u;++c){var f=r[c],a=n(f,c);t!==a&&(e[i++]=a,o&&(o=f===a&&(0!==f||1/f==1/a)||f!=f&&a!=a))}return i!==u?(e.length=i,e):o?r:e}),Y=function(n,r){return mr(r)?X(n,r,void 0):void 0},Z=N(function(n,r,t,u,e){for(;u<e;)n[r++]=t[u++];return n}),nn=function(n,r){return A.Applicative(A.sndU,A.always(r),n)},rn=function(n){return nn(n.concat,(0,n.empty)())},tn=nn(b,0),un=function(o){return A.curry(function(u,n,r){var e=void 0,i=void 0;return On(function(n,r){var t=u(n,r);void 0===t||void 0!==i&&!o(t,i)||(e=n,i=t)},n,r),e})},en=function(n,r,t,u){return br(t)(u,void 0,n,r)},on=function(e,n){return A.curryN(4,P(function(t,u){return u=n(u),function(n,r){return e(en(u,t,n,r))}}))},cn=function(t){return function(r){return function(n){return t!==n?[n,r]:r}}},fn=function(n,r){for(;cn!==n;)r.push(n[0]),n=n[1];return r},an=N(function(n){return fn(n,[]).reverse()}),vn=A.Applicative(function(n,r){var t=r.p,u=r.x,e=r.c;return u=n(u),A.isFunction(u)||(t=[u,t]),{p:t,x:u,c:e}},function(n){return{p:[],x:n,c:void 0}},function(n,r){var t=void 0!==n.c?n:r;return{p:t.p,x:n.x(r.x),c:t.c}}),sn=function(i,o){return function(e){return function(r,n,t,u){return t.map(function(n){return o(e,n,r)},u(i(e,r),e))}}},ln=function(n,r){return r instanceof Object?r[n]:void 0},dn=N(function(n,r,t){return void 0!==r?A.assocPartialU(n,r,t):A.dissocPartialU(n,t)||A.object0}),yn=sn(ln,dn),pn=function(n,r){return mr(r)?r[n]:void 0},hn=N(function(n,r,t){mr(t)||(t="");var u=t.length;if(void 0!==r){for(var e=Math.max(n+1,u),i=Array(e),o=0;o<e;++o)i[o]=t[o];return i[n]=r,i}if(u<=n)return Z(Array(u),0,t,0,u);for(var c=Array(u-1),f=0;f<n;++f)c[f]=t[f];for(var a=n+1;a<u;++a)c[a-1]=t[a];return c}),gn=sn(pn,hn),mn=function(e,n){return function(t,u){return u=n(t,u),function(n,r){return e(n,r,t,u)}}},An=function(n,r,t){mr(r)||(r="");var u=0;return jn(n,function(){return r[u++]},t)},bn=N(function(n,r,t){switch(typeof n){case"string":return dn(n,r,t);case"number":return hn(n,r,t);case"object":return u(n,0,t,r);default:return 4===n.length?n(t,void 0,A.Identity,A.always(r)):t}}),jn=N(function(n,r,t){switch(typeof n){case"string":return dn(n,r(ln(n,t),n),t);case"number":return hn(n,r(pn(n,t),n),t);case"object":return u(n,r,t);default:return 4===n.length?n(t,void 0,A.Identity,r):(r(n(t,void 0),void 0),t)}}),xn=function(n,r,t){return A.resolve(br(n)(t,void 0,A.IdentityAsync,r))},On=N(function(n,r,t){switch(typeof r){case"string":return n(ln(r,t),r);case"number":return n(pn(r,t),r);case"object":for(var u,e=r.length,i=0;i<e;++i)switch(typeof(u=r[i])){case"string":t=ln(u,t);break;case"number":t=pn(u,t);break;default:return a(i,r)(t,r[i-1],Ar,n)}return n(t,r[e-1]);default:return n!==N&&4!==r.length?n(r(t,void 0),void 0):r(t,void 0,Ar,n)}}),In=function(n,r){return On(N,n,r)},wn=function(e,i){return P(function(r,t,n,u){return n.map(function(n){return i(n,r,t)},u(e(r,t),t))})},Sn=function(e,i){return P(function(n,r,t,u){return t.map(i,u(e(n),r))})},Un=function(n,r){return Sn(G(A.isString,n),G(A.isString,r))},Fn=function(n,r){return Sn(G(A.isNumber,n),G(A.isNumber,r))},kn=N(function(n,r){var t=void 0;for(var u in n){var e=n[u],i=A.isObject(e)?kn(e,r):On(N,e,r);void 0!==i&&(t||(t={}),t[u]=i)}return t}),En=N(function(n,r,t){for(var u in n){var e=r&&r[u],i=n[u];t=A.isObject(i)?En(i,e,t):bn(i,e,t)}return t}),qn=function(n){return A.constructorOf(n)!==Object?A.toObject(n):n},Mn=function(n,r,t,u){return u(n,r)},zn=N(function(e){return function(n){for(var r={},t=e.length;t--;){var u=n[0];void 0!==u&&(r[e[t]]=u),n=n[1]}return r}}),Nn=N(function(n,r,t,u,e,i){var o=void 0,c=!0,f={};for(var a in r){o=1;var v=t[a],s=r[a](v,a,e,i);void 0!==s?(f[a]=s,c&&(c=v===s&&(0!==v||1/v==1/s)||v!=v&&s!=s)):c=!1}var l=o;for(var d in t)if(void 0===(l&&r[d])){o=1;var y=t[d],p=n(y,d,e,i);void 0!==p?(f[d]=p,c&&(c=y===p&&(0!==y||1/y==1/p)||y!=y&&p!=p)):c=!1}return o?c&&t===u?u:f:u}),Rn=function(g,m){return function(n,r,t,u){var e=n instanceof Object?qn(n):A.object0;if(A.Identity===t)return Nn(g,m,e,n,t,u);if(Ar!==t){var i=t.map,o=t.ap,c=t.of,f=c(W),a=[];for(var v in m)a.push(v),f=o(i(W,f),m[v](e[v],v,t,u));var s=!!a.length||void 0;for(var l in e)void 0===(s&&m[l])&&(a.push(l),f=o(i(W,f),g(e[l],l,t,u)));return a.length?i(zn(a),f):c(n)}for(var d in m){var y=m[d](e[d],d,t,u);if(void 0!==y)return y}for(var p in e)if(void 0===m[p]){var h=g(e[p],p,t,u);if(void 0!==h)return h}}},Pn=function(n,r,t){return A.acyclicEqualsU(t,n)?r:t},Cn=N(function(n,r,t,u){for(var e,i=0,o=r.length;i<o;++i)(n(e=r[i],i)?t:u).push(e)}),Dn=function(n){return n[0]},Ln=function(n){return n.index},Tn=function(n){return Ln(n)+n[0].length},Wn=N(function(n,r){var t=r.lastIndex;r.lastIndex=Tn(n);var u=r.exec(n.input);return r.lastIndex=t,u&&u[0]&&u}),$n=function(t){return function(r){return function(n){return[t,n,r]}}},_n=Sn(G(F(Object),N(function(n){n=qn(n);var r=[];for(var t in n)r.push([t,n[t]]);return r})),G(A.isArray,N(function(n){for(var r={},t=0,u=n.length;t<u;++t){var e=n[t];2===e.length&&(r[e[0]]=e[1])}return r}))),Bn=N(function(n,r){if(r instanceof Object){var t={};for(var u in r=qn(r)){var e=n(u),i=t[e];void 0===i&&(t[e]=i={}),i[u]=r[u]}return t}}),Jn=N(function(i){return function(n){if(n instanceof Object){var r={};for(var t in n=qn(n)){var u=n[t];if(u instanceof Object)for(var e in u=qn(u))i(e)===t&&(r[e]=u[e])}return r}}}),Gn=function(i,o,c){return c=br(c),P(function(n,r,t,u){var e=-1;return c(n,r,t,function(n,r){return i<=++e&&!(o<=e)?u(n,r):t.of(n)})})},Hn=function(n,r,t){return void 0!==n(r,t,Ar,N)},Kn=function(t){return function(n,r){return Hn(t,n,r)}},Qn=function(i,o){return function(e){return function(n,r,t,u){return(e(n,r)?i:o)(n,r,t,u)}}},Vn=function(e,i){return i=br(i),e=br(e),function(n,r,t,u){return(Hn(i,n,r)?i:e)(n,r,t,u)}},Xn=function(i,o){o=br(o),i=br(i);var c=function(n){n=A.always(n);var r=o(void 0,void 0,A.Identity,n);return void 0===r?i(void 0,void 0,A.Identity,n):r};return function(n,r,t,u){var e=o(n,r,Ar,N);return t.map(c,u(void 0===e?i(n,r,Ar,N):e,r))}},Yn=function(u){return P(function(n){for(var r=arguments.length,t=arguments[--r];r;)t=u(t,arguments[--r]);return t})},Zn=function(n,r,t,u){return t.of(n)},nr=function(n,r,t,u){return t===A.Identity?X(u,n,void 0):t===Ar?e(u,n):i(t,u,n,void 0)},rr=function(e,i){return function(n,r,t,u){return t.chain(function(n){return i(n,r,t,u)},e(n,r,t,u))}},tr=function(n,r){return[r,Vt(n)]},ur=function(t){return function(n){for(var r=n;void 0!==n;)n=t(r=n);return r}},er=function(o,c,f){return function(n,r){var t=c.length;if(mr(n)){mr(r)||(r="");for(var u=Math.max(t,n.length,r.length),e=Array(u),i=0;i<u;++i)if(void 0===(e[i]=o(i<t?c[i]:f,n[i],r[i])))return;return e}}},ir=(0,A.curry)(function(n,r){return wn(er(In,r,n),er(bn,r,n))}),or="珳襱댎纚䤤鬖罺좴",cr=function(n){return A.isString(n)&&0===n.indexOf(or)},fr=F(t),ar=A.inherit(function(n){this[or+n]=this[or]=A.freeze([new t(n)]),A.freeze(this)},Object,A.assocPartialU(M,function(){return this[or][M]()})),vr=F(ar),sr=[],lr=function(n){return null==n||"object"!=typeof n},dr=function(n){return void 0===n||A.isArray(n)},yr=function(n){return void 0===n||F(Object)},pr=function(n,r,t){void 0!==t&&(n[r]=t)},hr=function(n,r){void 0!==r&&n.push(r)},gr=function(t,u,e){return function(n){var r=Array(t);if(u(r,n))return e(r)}},mr=function(n){return n instanceof Object&&(n=n.length)===n>>0&&0<=n||A.isString(n)},Ar=nn(function(n,r){return void 0!==n?n:r}),br=N(function(n){switch(typeof n){case"string":return yn(n);case"number":return gn(n);case"object":return a(0,n);default:return 4===n.length?n:(e=n,P(function(n,r,t,u){return t.map(A.always(n),u(e(n,r),r))}))}var e}),jr=A.curry(function(n,r,t){return bn([n,Yt(r)],r,t)}),xr=A.curry(An),Or=A.curry(jn),Ir=A.curry(xn),wr=A.curry(function(n,r){return bn(n,void 0,r)}),Sr=A.curry(bn),Ur=A.curry(en),Fr=Yn(Vn),kr=function(e){return P(function(n,r,t,u){return br(e(n,r))(n,r,t,u)})},Er=N(function(){for(var n=arguments.length,r=Zn;n--;){var t=arguments[n];r=t.length<2?br(t[0]):Qn(br(t[1]),r)(t[0])}return r}),qr=N(function(i){i=br(i);var o=arguments.length-1;if(!o)return Zn;var n=arguments[o];n=1===n.length?(--o,br(n[0])):Zn;for(var c=Array(o),f=Array(o+1),r=0;r<o;++r){var t=arguments[r+1];c[r]=t[0],f[r]=br(t[1])}return f[o]=n,function(n,r,t,u){var e=o;return i(n,r,Ar,function(n,r){for(var t=0;t<e;++t)if(c[t](n,r)){if(0===(e=t))return 0;break}}),f[e](n,r,t,u)}}),Mr=A.curry(function(n,r,t){return Qn(br(r),br(t))(n)}),zr=A.curry(Vn),Nr=A.curry(function(t,n){return[n,kr(function(n,r){return void 0!==n?t(n,r):Zn})]}),Rr=Qn(Zn,Mn),Pr=Qn(Mn,Zn),Cr=Pr(A.isDefined),Dr=A.curry(function(e,i){return i=br(i),P(function(n,t,r,u){return i(n,t,r,function(n,r){return u(n,e(r,t))})})}),Lr=R(Dr(function(n,r){return void 0!==r?void 0!==n?[r,n]:r:n})),Tr=R(Dr(A.sndU)),Wr=A.curry(function(n,r){return jn(n,N,r)}),$r=A.curry(function(n,r){return xn(n,N,r)}),_r=N(function(){var n=arguments.length,r=Zn;if(n)for(r=br(arguments[--n]);n;)r=rr(br(arguments[--n]),r);return r}),Br=function(e){return function(n,r,t,u){return t.of(e)}},Jr=Br(),Gr=N(A.curryN(2,function(r){return r=br(r),function(n){return function n(r,t){var u=A.create(null);for(var e in t){var i=t[e];u[e]=A.isObject(i)?n(r,i):br(i)}return Rn(r,u)}(r,n)}})),Hr=Gr(Zn),Kr=R(br([_n,f])),Qr=R(br([_n,f,0])),Vr=A.curry(Gn),Xr=Vr(0),Yr=A.curry(function(n,r){return Gn(n,void 0,r)}),Zr=R(Rn(Mn,E)),nt=function(i){return function(n,r,u,e){return function n(r,t){return i(r,t)?e(r,t):v(r,t,u,n)}(n,r)}},rt=nt(function(n){return void 0!==n&&!A.isArray(n)&&!A.isObject(n)}),tt=A.curry(function(t,n,r){return!On(function(n,r){if(!t(n,r))return!0},n,r)}),ut=tt(N),et=A.curry(function(t,n,r){var u=!1;return On(function(n,r){if(!t(n,r))return u=!1;u=!0},n,r),u}),it=et(N),ot=A.curry(function(t,n,r){return!!On(function(n,r){if(t(n,r))return!0},n,r)}),ct=(0,A.curry)(function(u,n,r){var e=[];return On(function(n,r){var t=u(n,r);void 0!==t&&e.push(t)},n,r),e}),ft=ct(N),at=(0,A.curry)(function(t,n,r){var u=[];return On(function(n,r){u.push(t(n,r))},n,r),u}),vt=at(N),st=on(N,rn),lt=st(N),dt=A.curry(function(t,n,r){return en(tn,function(n,r){return t(n,r)?1:0},n,r)}),yt=dt(A.isDefined),pt=A.curry(function(e,n,r){var i=new Map;return On(function(n,r){var t=e(n,r),u=i.get(t);i.set(t,void 0!==u?u+1:1)},n,r),i}),ht=pt(N),gt=A.curry(function(t,u,n,r){return On(function(n,r){u=t(u,n,r)},n,r),u}),mt=A.curry(function(n,r,t,u){var e=[],i=[];On(function(n,r){i.push(n),e.push(r)},t,u);for(var o=i.length-1;0<=o;--o)r=n(r,i[o],e[o]);return r}),At=A.curry(function(t,n,r){return On(function(n,r){t(n,r)},n,r)}),bt=A.curry(function(n,t,r,u){var e=n();return On(function(n,r){t(e,n,r)},r,u),e}),jt=A.curry(On),xt=A.curry(function(n,r){return void 0!==On(N,n,r)}),Ot=A.curry(function(n,r){return!On(B,n,r)}),It=on(L,N(function(t){return nn(function(n,r){return void 0!==n?void 0!==r?n+t+r:n:r})})),wt=It(N),St=un(U),Ut=St(N),Ft=A.curry(function(u,n,r){var e=0,i=0;return On(function(n,r){var t=u(n,r);void 0!==t&&(i+=1,e+=t)},n,r),e/i}),kt=Ft(N),Et=un(S),qt=Et(N),Mt=A.curry(function(t,n,r){return!On(function(n,r){if(t(n,r))return!0},n,r)}),zt=ot(N),Nt=Ur(nn(j,1)),Rt=Nt($(1)),Pt=l,Ct=jt,Dt=Ur(tn),Lt=Dt(_),Tt=A.curry(function(n,r){return wn(n(r),Sr(r))}),Wt=A.curry(wn),$t=Wt(N),_t=function(e){return function(n,r,t,u){return u(void 0!==n?e(n,r):n,r)}},Bt=function(e){return function(n,r,t,u){return t.map(function(n){return void 0!==n?e(n,r):n},u(n,r))}},Jt=R(ir(Jr)),Gt=N(function(o){return function(n,r,t,u){var e=void 0,i=A.array0;return mr(n)&&Cn(o,n,e=[],i=[]),t.map(function(n){var r=n?n.length:0,t=i.length,u=r+t;return u===t?i:Z(Z(Array(u),0,n,0,r),r,i,0,t)},u(e,r))}}),Ht=N,Kt=kr(function(n){return mr(n)&&n.length?n.length-1:0}),Qt=(0,A.curry)(function(f,a){return function(u,n,r,t){var e=mr(u),i=e&&u.length,o=T(0,i,0,f),c=T(o,i,i,a);return r.map(function(n){var r=n?n.length:0,t=o+r;return Z(Z(Z(Array(i-c+t),0,u,0,o),o,n,0,r),t,u,c,i)},t(e?Z(Array(Math.max(0,c-o)),0,u,o,c):void 0,n))}}),Vt=function(n){return A.isObject(n)?Zt(Or(Zr,tr,n)):n},Xt=N,Yt=function(n){return h.apply(null,A.keys(n))},Zt=N(function(e){return function(r,n,t,u){return t.map(function(n){return En(e,n,r)},u(kn(e,r),n))}}),nu=A.curry(function(e,i){function o(n){return Pn(i,e,n)}return function(n,r,t,u){return t.map(o,u(Pn(e,i,n),r))}}),ru=A.curry(Sn),tu=new ar(-1),uu=Yn(Xn),eu=A.curry(function(n,r){return Sn(Or(n,l(r)),Or(n,g(r)))}),iu=A.curry(function(n,r){return[n,r,ou(n)]}),ou=function(e){return function(n,r,t,u){return t.map(function(n){return On(N,e,n)},u(bn(e,n,void 0),r))}},cu=A.curry(Xn),fu=Sn(J,J),au=function(n){var r=g(n),e=l(n),i=function(n){return Y(r,n)};return function(n,r,t,u){return t.map(i,u(Y(e,n),r))}},vu=Sn(G(mr,N(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u)t[u]=[u,n[u]];return t})),G(A.isArray,N(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u){var e=n[u];2===e.length&&(t[e[0]]=e[1])}r=t.length;for(var i=0,o=0;o<r;++o){var c=t[o];void 0!==c&&(o!==i&&(t[i]=c),++i)}return t.length=i,t}))),su=Sn(V,V),lu=m(function(n){return[[n],n]}),du=function(i){return function(n,r,t,u){var e=Jn(i);return t.map(e,u(Bn(i,n),r))}},yu=Sn(G(F(Object),N(function(n){n=qn(n);var r=[];for(var t in n){var u=n[t];if(A.isArray(u))for(var e=0,i=u.length;e<i;++e)r.push([t,u[e]]);else r.push([t,u])}return r})),G(A.isArray,N(function(n){for(var r=A.create(null),t=0,u=n.length;t<u;++t){var e=n[t];if(2===e.length){var i=e[0],o=e[1],c=r[i];void 0===c?r[i]=o:A.isArray(c)?c.push(o):r[i]=[c,o]}}return A.assign({},r)}))),pu=N(function(n){var r=n||A.object0,t=r.reviver,u=r.replacer,e=r.space;return Sn(G(A.isString,D(function(n){return JSON.parse(n,t)})),G(A.isDefined,function(n){return JSON.stringify(n,u,e)}))}),hu=Un(D(decodeURI),encodeURI),gu=Sn(G(A.isString,D(decodeURIComponent)),G(r,encodeURIComponent)),mu=A.curry(function(n,r){return Un(q(C(n,"g"),r),q(C(r,"g"),n))}),Au=N(function(r){var t=1<arguments.length?arguments[1]:r;return Sn(G(A.isString,function(n){return n.split(t)}),G(A.isArray,function(n){return n.join(r)}))}),bu=N(function(u){var t=C(1<arguments.length?arguments[1]:u,"");return Sn(G(A.isString,function(n){var r=t.exec(n);return r?[n.slice(0,Ln(r)),n.slice(Tn(r))]:[n,""]}),function(n){if(A.isArray(n)&&2===n.length){var r=n[0],t=n[1];return t?r+u+t:r}})}),ju=br([_t(function(n){return A.isString(n)?n.replace(/\+/g,"%20"):n}),Au("&"),au([bu("="),au(gu)]),ou(yu)]),xu=Fn(w,w);n.Identity=A.Identity,n.IdentityAsync=A.IdentityAsync,n.FantasyFunctor=A.FantasyFunctor,n.fromFantasy=A.fromFantasy,n.fromFantasyApplicative=A.fromFantasyApplicative,n.fromFantasyMonad=A.fromFantasyMonad,n.seemsArrayLike=mr,n.Select=Ar,n.toFunction=br,n.assign=jr,n.disperse=xr,n.modify=Or,n.modifyAsync=Ir,n.remove=wr,n.set=Sr,n.traverse=Ur,n.compose=function(){var n=arguments.length;if(n<2)return n?arguments[0]:Mn;for(var r=Array(n);n--;)r[n]=arguments[n];return r},n.flat=function(){for(var n=[s],r=0,t=arguments.length;r<t;++r)n.push(arguments[r],s);return n},n.lazy=function(e){function i(n,r,t,u){return o(n,r,t,u)}var o=function(n,r,t,u){return(o=br(e(i)))(n,r,t,u)};return i},n.choices=Fr,n.choose=kr,n.cond=Er,n.condOf=qr,n.ifElse=Mr,n.orElse=zr,n.chain=Nr,n.choice=function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduceRight(Vn,Zn)},n.unless=Rr,n.when=Pr,n.optional=Cr,n.zero=Zn,n.mapIx=function(e){return function(n,r,t,u){return u(n,e(r,n))}},n.setIx=function(e){return function(n,r,t,u){return u(n,e)}},n.tieIx=Dr,n.joinIx=Lr,n.reIx=function(i){return i=br(i),P(function(n,r,t,u){var e=0;return i(n,r,t,function(n){return u(n,e++)})})},n.skipIx=Tr,n.getLog=function(n,r){var t=en(vn,function(n){return{p:[n,cn],x:n,c:n}},n,r),u=t.p,e=t.c;u=fn(u,["%O"]);for(var i=2;i<u.length;++i)u[0]+=" <= %O";return console.log.apply(console,u),e},n.log=function(){var n=A.curry(function(n,r){return console.log.apply(console,Z([],0,arguments,0,arguments.length).concat([n,r])),r});return Sn(n("get"),n("set"))},n.transform=Wr,n.transformAsync=$r,n.seq=_r,n.assignOp=function(n){return[Yt(n),Br(n)]},n.modifyOp=function(e){return function(n,r,t,u){return t.of(e(n,r))}},n.setOp=Br,n.removeOp=Jr,n.branchOr=Gr,n.branch=Hr,n.branches=function(){for(var n=arguments.length,r={},t=0;t<n;++t)r[arguments[t]]=Mn;return Hr(r)},n.elems=f,n.elemsTotal=function(n,r,t,u){return mr(n)?t===A.Identity?X(u,n,X):t===Ar?e(u,n):i(t,u,n,i):t.of(n)},n.entries=Kr,n.keys=Qr,n.subseq=Vr,n.limit=Xr,n.offset=Yr,n.matches=function(f){return function(r,n,t,u){if(A.isString(r)){var e=t.map;if(f.global){var i=[""];return i.input=r,i.index=0,Ar===t?function(n,r,t){for(;t=Wn(t,r);){var u=n(Dn(t),Ln(t));if(void 0!==u)return u}}(u,f,i):e((c=r,function(n){for(var r="",t=0,u=function(n){for(var r=[];$n!==n;)r.push(n[0],n[1]),n=n[2];return r}(n),e=u.length-2;-2!==e;e+=-2){var i=u[e];r+=c.slice(t,Ln(i));var o=u[e+1];void 0!==o&&(r+=o),t=Tn(i)}return r+c.slice(t)}),function(n,r,t,u,e,i){for(var o=t($n);i=Wn(i,e);)o=r(r(n($n,t(i)),o),u(Dn(i),Ln(i)));return o}(e,t.ap,t.of,u,f,i))}var o=r.match(f);if(o)return e(function(n){return r.replace(f,void 0!==n?n:"")},u(o[0],Ln(o)))}var c;return t.of(r)}},n.values=Zr,n.children=v,n.flatten=s,n.query=function(){for(var n=[],r=0,t=arguments.length;r<t;++r){var u=br(arguments[r]);n.push(nt(Kn(u)),u)}return n},n.satisfying=nt,n.leafs=rt,n.all=tt,n.and=ut,n.all1=et,n.and1=it,n.any=ot,n.collectAs=ct,n.collect=ft,n.collectTotalAs=at,n.collectTotal=vt,n.concatAs=st,n.concat=lt,n.countIf=dt,n.count=yt,n.countsAs=pt,n.counts=ht,n.foldl=gt,n.foldr=mt,n.forEach=At,n.forEachWith=bt,n.get=l,n.getAs=jt,n.isDefined=xt,n.isEmpty=Ot,n.joinAs=It,n.join=wt,n.maximumBy=St,n.maximum=Ut,n.meanAs=Ft,n.mean=kt,n.minimumBy=Et,n.minimum=qt,n.none=Mt,n.or=zt,n.productAs=Nt,n.product=Rt,n.select=Pt,n.selectAs=Ct,n.sumAs=Dt,n.sum=Lt,n.foldTraversalLens=Tt,n.getter=function(e){return function(n,r,t,u){return u(e(n,r),r)}},n.lens=Wt,n.partsOf=function(e){return function(r,n,t,u){return t.map(function(n){return An(e,n,r)},u(vt(e,r),n))}},n.setter=$t,n.defaults=function(e){function i(n){return Pn(e,void 0,n)}return function(n,r,t,u){return t.map(i,u(void 0!==n?n:e,r))}},n.define=function(e){var i=$(e);return function(n,r,t,u){return t.map(i,u(void 0!==n?n:e,r))}},n.normalize=function(n){return[_t(n),Bt(n)]},n.required=function(n){return nu(n,void 0)},n.reread=_t,n.rewrite=Bt,n.append=d,n.cross=Jt,n.filter=Gt,n.find=p,n.findWith=function(n){var r=br(n),t=Kn(r);return[1<arguments.length?p(t,arguments[1]):p(t),r]},n.first=0,n.index=Ht,n.last=Kt,n.prefix=function(n){return Qt(0,n)},n.slice=Qt,n.suffix=function(n){return Qt(0===n?1/0:n?-n:0,void 0)},n.pickIn=Vt,n.prop=Xt,n.props=h,n.propsExcept=function(){for(var r=A.create(null),n=0,t=arguments.length;n<t;++n)r[arguments[n]]="d";return[du(function(n){return r[n]||"t"}),"t"]},n.propsOf=Yt,n.removable=function(){function e(n){if(!(n instanceof Object))return n;for(var r=0,t=u.length;r<t;++r)if(A.hasU(u[r],n))return n}for(var n=arguments.length,u=Array(n),r=0;r<n;r++)u[r]=arguments[r];return function(n,r,t,u){return t.map(e,u(n,r))}},n.valueOr=function(e){return function(n,r,t,u){return u(null!=n?n:e,r)}},n.pick=Zt,n.replace=nu,n.getInverse=g,n.iso=ru,n._=tu,n.mapping=m,n.mappings=function(n){return A.isFunction(n)&&(n=n.apply(null,o(n.length))),uu.apply(null,n.map(m))},n.alternatives=uu,n.applyAt=eu,n.conjugate=iu,n.inverse=ou,n.iterate=function(n){return Sn(ur(l(n)),ur(g(n)))},n.orAlternatively=cu,n.complement=fu,n.identity=Mn,n.is=function(r){return Sn(function(n){return A.acyclicEqualsU(r,n)},function(n){return!0===n?r:void 0})},n.subset=function(n){var r,t=(r=n,function(n){return r(n)?n:void 0});return Sn(t,t)},n.array=au,n.indexed=vu,n.reverse=su,n.singleton=lu,n.disjoint=du,n.keyed=_n,n.multikeyed=yu,n.json=pu,n.uri=hu,n.uriComponent=gu,n.dropPrefix=function(r){return Un(function(n){return n.startsWith(r)?n.slice(r.length):void 0},function(n){return r+n})},n.dropSuffix=function(r){return Un(function(n){return n.endsWith(r)?n.slice(0,n.length-r.length):void 0},function(n){return n+r})},n.replaces=mu,n.split=Au,n.uncouple=bu,n.querystring=ju,n.add=function(n){return Fn(x(n),x(-n))},n.divide=function(n){return Fn(I(n),O(n))},n.multiply=function(n){return Fn(O(n),I(n))},n.negate=xu,n.subtract=function(n){return Fn(x(-n),x(n))},n.pointer=function(n){"#"===n[0]&&(n=decodeURIComponent(n));for(var r=n.split("/"),t=r.length,u=1;u<t;++u){var e=r[u];r[u-1]=/^(0|[1-9]\d*)$/.test(e)?Mr(Q,Number(e),e):"-"===e?Mr(Q,d,e):e.replace("~1","/").replace("~0","~")}return r.length=t-1,r},Object.defineProperty(n,"__esModule",{value:!0})});
!function(r,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("infestines")):"function"==typeof define&&define.amd?define(["exports","infestines"],n):n(r.L={},r.I)}(this,function(r,b){"use strict";function n(r){switch(typeof r){case"boolean":case"number":case"string":return!0;default:return!1}}function i(r,n){for(var t=0,u=n[g];t<u;++t){var i=r(n[t],t);if(void 0!==i)return i}}function e(r,n,t,u){var i=r.map,e=r.ap,o=r.of(or),c=t[g];if(i===b.sndU){for(var f=0;f<c;++f)o=e(o,n(t[f],f));return o}for(var a=or(u),v=0;v<c;++v)o=e(i(a,o),n(t[v],v));return i(fr,o)}function a(r,n){var t=n[g]-r;if(t<2)return t?gn(n[r]):qr;for(var i=gn(n[r+--t]),e=function(t,u){return function(r,n){return i(r,n,t,u)}};--t;)e=hr(gn(n[r+t]),e);var o=gn(n[r]);return function(r,n,t,u){return o(r,n,t,e(t,u))}}function u(r,n,t,u){for(var i,e,o=r[g],c=Array(o),f=0;f<o;++f)switch(c[f]=t,typeof(i=r[f])){case"string":t=sr(i,t);break;case"number":t=pr(i,t);break;default:t=a(f,r)(t,r[f-1],b.Identity,n||b.always(u)),o=f}for(o===r[g]&&(t=n?n(t,r[o-1]):u);0<=--o;)t=b.isString(e=r[o])?dr(e,t,c[o]):lr(e,t,c[o]);return t}function t(r){this[on]=r,b.freeze(this)}function o(r){for(;sn[g]<r;)sn.push(new an(sn[g]));return sn}function p(r,n,t,u){if(void 0!==u){if(n in t)return b.acyclicEqualsU(t[n],u);t[n]=u;var i=r[n];return!i||i(u)}}function c(e,r){if(!cn(r)){if(it(dn,nt,e))return b.always(e);if(vn(e)){var n=e[on][0][on];return function(r){return r[n]}}if(b.isArray(e)){for(var a=[],v=[],s=void 0,t=e[g],u=0;u<t;++u){var i=e[u];fn(i)?s=i[on]:(void 0!==s?v:a).push(c(i))}return K(function(r){for(var n=[],t=0,u=a[g];t<u;++t)mn(n,a[t](r));if(0<=s){var i=r[s];if(i)for(var e=0,o=i[g];e<o;++e)mn(n,i[e])}for(var c=0,f=v[g];c<f;++c)mn(n,v[c](r));return n})}var o=e[on];return o&&(o=o[0][on]),e=xn(Zn,c,e),K(function(r){var n={};for(var t in e)ln(n,t,e[t](r));if(0<=o){var u=r[o];if(u)for(var i in u)ln(n,i,u[i])}return n})}}function f(r,n,t,u){return An(r)?Zr(r,0,t,u):t.of(r)}function v(r,n,t,u){return b.isArray(r)?Zr(r,0,t,u):b.isObject(r)?Zn(r,n,t,u):t.of(r)}function s(r,n,u,i){return function r(n,t){return b.isArray(n)?Zr(n,0,u,r):void 0!==n?i(n,t):u.of(n)}(r,n)}function d(n,r){return 1<arguments[g]?Or(N,n,r):function(r){return Or(N,n,r)}}function y(n,r,t,u){var i=An(n)?n[g]:0;return t.map(function(r){return lr(i,r,n)},u(void 0,i))}function l(o){var c=1<arguments[g]?arguments[1]:{hint:0};return function(r,n,t,u){var i=An(r)?r:"",e=c.hint=function(r,n,t){var u=r.hint,i=t[g];i<=u&&(u=i-1),u<0&&(u=0);for(var e=u-1;0<=e&&u<i;++u,--e){if(n(t[u],u,r))return u;if(n(t[e],e,r))return e}for(;u<i;++u)if(n(t[u],u,r))return u;for(;0<=e;--e)if(n(t[e],e,r))return e;return i}(c,o,i);return t.map(function(r){return lr(e,r,i)},u(i[e],e))}}function m(){for(var r,n=arguments[g],t={},u=0;u<n;++u)t[r=arguments[u]]=r;return Zt(t)}function h(n,r){return 1<arguments[g]?br(n,r,void 0):function(r){return br(n,r,void 0)}}function A(r){var n=0;b.isFunction(r)&&(r=r.apply(null,o(n=r[g])));var t=Array(n),u=r.map(function(r){return function t(c,o){if(it(dn,nt,o))return function(r,n){return b.acyclicEqualsU(o,n)};if(vn(o)){var u=o[on][0][on];return u<0?N:function(r,n){return p(c,u,r,n)}}if(b.isArray(o)){for(var f=[],a=[],v=void 0,s=o[g],r=0;r<s;++r){var n=o[r];fn(n)?c[v=n[on]]=yn:(void 0!==v?a:f).push(t(c,n))}return function(r,n){if(An(n)){var t=n[g];if(!(void 0!==v?t<s-1:t!==s)){for(var u=f[g],i=0;i<u;++i)if(!f[i](r,n[i]))return;var e=a[g];t-=e;for(var o=0;o<e;++o)if(!a[o](r,n[t+o]))return;return!(0<=v)||p(c,v,r,Z(Array(t-u),0,n,u,t))}}}}var d=o[on];d&&(c[d=d[0][on]]=pn),o=xn(Zn,function(r,n){return cn(n)?void 0:t(c,r)},o);var y=pt(Zn,o);return function(r,n){if(!dn(n)&&!b.isArray(n)){n=Er(n);var t=0<=d&&{},u=0;for(var i in n){var e=o[i];if(e){if(!e(r,n[i]))return;u++}else{if(void 0===d)return;t&&(t[i]=n[i])}}return u===y&&(!t||p(c,d,r,H(t)))}}}(t,r)}),i=r.map(c);return wr(hn(n,u[0],i[1]),hn(n,u[1],i[0]))}var g="length",j=function(r,n){return r+n},O=function(r,n){return r*n},x=b.curry(j),I=b.curry(O),w=b.curry(function(r,n){return n/r}),S=function(r){return-r},U=function(r,n){return r<n},F=function(r,n){return n<r},k=b.curry(b.isInstanceOfU),E=function(r){return b.assign(b.create(null),r)},q=b.freeze(E(b.object0)),M=b.curry(function(r,n,t){return t.replace(r,n)}),z=Symbol.iterator,N=function(r){return r},R=function(r){return r},P=function(r){return r},C=function(r,n){return b.isString(r)?new RegExp(M(/[|\\{}()[\]^$+*?.]/g,"\\$&",r),n):r},D=function(n){return P(function(r){try{return n(r)}catch(r){return r}})},L=function(r){return void 0!==r?String(r):""},T=function(r,n,t,u){return void 0!==u?Math.min(Math.max(r,u<0?n+u:u),n):t},W=function(n){return function(r){return[r,n]}},$=function(n){return function(r){return void 0!==r?r:n}},_=$(0),B=b.always(!0),J=function(r){return void 0!==r?!r:r},G=function(n,t){return P(function(r){return n(r)?t(r):void 0})},H=N,K=N,Q=function(r){return!(r instanceof Object)||b.isArray(r)},V=N(function(r){if(An(r)){for(var n=r[g],t=Array(n),u=0;n;)t[u++]=r[--n];return t}}),X=N(function(r,n,t){for(var u=n[g],i=Array(u),e=0,o=!0,c=0;c<u;++c){var f=n[c],a=r(f,c);t!==a&&(i[e++]=a,o&&(o=f===a&&(0!==f||1/f==1/a)||f!=f&&a!=a))}return e!==u?(i[g]=e,i):o?n:i}),Y=function(r,n){return An(n)?X(r,n,void 0):void 0},Z=N(function(r,n,t,u,i){for(;u<i;)r[n++]=t[u++];return r}),rr=function(r,n){return b.Applicative(b.sndU,b.always(n),r)},nr=function(r){return rr(r.concat,(0,r.empty)())},tr=rr(j,0),ur=function(o){return b.curry(function(u,r,n){var i=void 0,e=void 0;return Or(function(r,n){var t=u(r,n);void 0===t||void 0!==e&&!o(t,e)||(i=r,e=t)},r,n),i})},ir=function(r,n,t,u){return gn(t)(u,void 0,r,n)},er=function(i,r){return b.curryN(4,P(function(t,u){return u=r(u),function(r,n){return i(ir(u,t,r,n))}}))},or=function(t){return function(n){return function(r){return t!==r?[r,n]:n}}},cr=function(r,n){for(;or!==r;)n.push(r[0]),r=r[1];return n},fr=N(function(r){return cr(r,[]).reverse()}),ar=b.Applicative(function(r,n){var t=n.p,u=n.x,i=n.c;return u=r(u),b.isFunction(u)||(t=[u,t]),{p:t,x:u,c:i}},function(r){return{p:[],x:r,c:void 0}},function(r,n){var t=void 0!==r.c?r:n;return{p:t.p,x:r.x(n.x),c:t.c}}),vr=function(e,o){return function(i){return function(n,r,t,u){return t.map(function(r){return o(i,r,n)},u(e(i,n),i))}}},sr=function(r,n){return n instanceof Object?n[r]:void 0},dr=N(function(r,n,t){return void 0!==n?b.assocPartialU(r,n,t):b.dissocPartialU(r,t)||b.object0}),yr=vr(sr,dr),pr=function(r,n){return An(n)?n[r]:void 0},lr=N(function(r,n,t){An(t)||(t="");var u=t[g];if(void 0!==n){for(var i=Math.max(r+1,u),e=Array(i),o=0;o<i;++o)e[o]=t[o];return e[r]=n,e}if(u<=r)return Z(Array(u),0,t,0,u);for(var c=Array(u-1),f=0;f<r;++f)c[f]=t[f];for(var a=r+1;a<u;++a)c[a-1]=t[a];return c}),mr=vr(pr,lr),hr=function(i,r){return function(t,u){return u=r(t,u),function(r,n){return i(r,n,t,u)}}},Ar=function(r,n,t){An(n)||(n="");var u=0;return gr(r,function(){return n[u++]},t)},br=N(function(r,n,t){switch(typeof r){case"string":return dr(r,n,t);case"number":return lr(r,n,t);case"object":return u(r,0,t,n);default:return 4===r[g]?r(t,void 0,b.Identity,b.always(n)):t}}),gr=N(function(r,n,t){switch(typeof r){case"string":return dr(r,n(sr(r,t),r),t);case"number":return lr(r,n(pr(r,t),r),t);case"object":return u(r,n,t);default:return 4===r[g]?r(t,void 0,b.Identity,n):(n(r(t,void 0),void 0),t)}}),jr=function(r,n,t){return b.resolve(gn(r)(t,void 0,b.IdentityAsync,n))},Or=N(function(r,n,t){switch(typeof n){case"string":return r(sr(n,t),n);case"number":return r(pr(n,t),n);case"object":for(var u,i=n[g],e=0;e<i;++e)switch(typeof(u=n[e])){case"string":t=sr(u,t);break;case"number":t=pr(u,t);break;default:return a(e,n)(t,n[e-1],bn,r)}return r(t,n[i-1]);default:return r!==N&&4!==n[g]?r(n(t,void 0),void 0):n(t,void 0,bn,r)}}),xr=function(r,n){return Or(N,r,n)},Ir=function(i,e){return P(function(n,t,r,u){return r.map(function(r){return e(r,n,t)},u(i(n,t),t))})},wr=function(i,e){return P(function(r,n,t,u){return t.map(e,u(i(r),n))})},Sr=function(r,n){return wr(G(b.isString,r),G(b.isString,n))},Ur=function(r,n){return wr(G(b.isNumber,r),G(b.isNumber,n))},Fr=N(function(r,n){var t=void 0;for(var u in r){var i=r[u],e=b.isObject(i)?Fr(i,n):Or(N,i,n);void 0!==e&&(t||(t={}),t[u]=e)}return t}),kr=N(function(r,n,t){for(var u in r){var i=n&&n[u],e=r[u];t=b.isObject(e)?kr(e,i,t):br(e,i,t)}return t}),Er=function(r){return b.constructorOf(r)!==Object?b.toObject(r):r},qr=function(r,n,t,u){return u(r,n)},Mr=N(function(i){return function(r){for(var n={},t=i[g];t--;){var u=r[0];void 0!==u&&(n[i[t]]=u),r=r[1]}return n}}),zr=N(function(r,n,t,u,i,e){var o=void 0,c=!0,f={};for(var a in n){o=1;var v=t[a],s=n[a](v,a,i,e);void 0!==s?(f[a]=s,c&&(c=v===s&&(0!==v||1/v==1/s)||v!=v&&s!=s)):c=!1}var d=o;for(var y in t)if(void 0===(d&&n[y])){o=1;var p=t[y],l=r(p,y,i,e);void 0!==l?(f[y]=l,c&&(c=p===l&&(0!==p||1/p==1/l)||p!=p&&l!=l)):c=!1}return o?c&&t===u?u:f:u}),Nr=function(h,A){return function(r,n,t,u){var i=r instanceof Object?Er(r):b.object0;if(b.Identity===t)return zr(h,A,i,r,t,u);if(bn!==t){var e=t.map,o=t.ap,c=t.of,f=c(W),a=[];for(var v in A)a.push(v),f=o(e(W,f),A[v](i[v],v,t,u));var s=!!a[g]||void 0;for(var d in i)void 0===(s&&A[d])&&(a.push(d),f=o(e(W,f),h(i[d],d,t,u)));return a[g]?e(Mr(a),f):c(r)}for(var y in A){var p=A[y](i[y],y,t,u);if(void 0!==p)return p}for(var l in i)if(void 0===A[l]){var m=h(i[l],l,t,u);if(void 0!==m)return m}}},Rr=function(r,n,t){return b.acyclicEqualsU(t,r)?n:t},Pr=N(function(r,n,t,u){for(var i,e=0,o=n[g];e<o;++e)(r(i=n[e],e)?t:u).push(i)}),Cr="lastIndex",Dr="index",Lr=function(r){return r[Dr]+r[0][g]},Tr=N(function(r,n){var t=n[Cr];n[Cr]=Lr(r);var u=n.exec(r.input);return n[Cr]=t,u&&u[0]&&u}),Wr=function(t){return function(n){return function(r){return[t,r,n]}}},$r=wr(G(k(Object),N(function(r){r=Er(r);var n=[];for(var t in r)n.push([t,r[t]]);return n})),G(b.isArray,N(function(r){for(var n={},t=0,u=r[g];t<u;++t){var i=r[t];2===i[g]&&(n[i[0]]=i[1])}return n}))),_r=N(function(r,n){if(n instanceof Object){var t={};for(var u in n=Er(n)){var i=r(u),e=t[i];void 0===e&&(t[i]=e={}),e[u]=n[u]}return t}}),Br=N(function(e){return function(r){if(r instanceof Object){var n={};for(var t in r=Er(r)){var u=r[t];if(u instanceof Object)for(var i in u=Er(u))e(i)===t&&(n[i]=u[i])}return n}}}),Jr=function(e,o,c){return c=gn(c),P(function(r,n,t,u){var i=-1;return c(r,n,t,function(r,n){return e<=++i&&!(o<=i)?u(r,n):t.of(r)})})},Gr=function(r,n,t){return void 0!==r(n,t,bn,N)},Hr=function(t){return function(r,n){return Gr(t,r,n)}},Kr=function(e,o){return function(i){return function(r,n,t,u){return(i(r,n)?e:o)(r,n,t,u)}}},Qr=function(i,e){return e=gn(e),i=gn(i),function(r,n,t,u){return(Gr(e,r,n)?e:i)(r,n,t,u)}},Vr=function(e,o){o=gn(o),e=gn(e);var c=function(r){r=b.always(r);var n=o(void 0,void 0,b.Identity,r);return void 0===n?e(void 0,void 0,b.Identity,r):n};return function(r,n,t,u){var i=o(r,n,bn,N);return t.map(c,u(void 0===i?e(r,n,bn,N):i,n))}},Xr=function(u){return P(function(r){for(var n=arguments[g],t=arguments[--n];n;)t=u(t,arguments[--n]);return t})},Yr=function(r,n,t,u){return t.of(r)},Zr=function(r,n,t,u){return t===b.Identity?X(u,r,void 0):t===bn?i(u,r):e(t,u,r,void 0)},rn=function(i,e){return function(r,n,t,u){return t.chain(function(r){return e(r,n,t,u)},i(r,n,t,u))}},nn=function(r,n){return[n,Vt(r)]},tn=function(t){return function(r){for(var n=r;void 0!==r;)r=t(n=r);return n}},un=function(o,c,f){return function(r,n){var t=c[g];if(An(r)){An(n)||(n="");for(var u=Math.max(t,r[g],n[g]),i=Array(u),e=0;e<u;++e)if(void 0===(i[e]=o(e<t?c[e]:f,r[e],n[e])))return;return i}}},en=(0,b.curry)(function(r,n){return Ir(un(xr,n,r),un(br,n,r))}),on="珳襱댎纚䤤鬖罺좴",cn=function(r){return b.isString(r)&&0===r.indexOf(on)},fn=k(t),an=b.inherit(function(r){this[on+r]=this[on]=b.freeze([new t(r)]),b.freeze(this)},Object,b.assocPartialU(z,function(){return this[on][z]()})),vn=k(an),sn=[],dn=function(r){return null==r||"object"!=typeof r},yn=function(r){return void 0===r||b.isArray(r)},pn=function(r){return void 0===r||k(Object)},ln=function(r,n,t){void 0!==t&&(r[n]=t)},mn=function(r,n){void 0!==n&&r.push(n)},hn=function(t,u,i){return function(r){var n=Array(t);if(u(n,r))return i(n)}},An=function(r){return r instanceof Object&&(r=r[g])===r>>0&&0<=r||b.isString(r)},bn=rr(function(r,n){return void 0!==r?r:n}),gn=N(function(r){switch(typeof r){case"string":return yr(r);case"number":return mr(r);case"object":return a(0,r);default:return 4===r[g]?r:(i=r,P(function(r,n,t,u){return t.map(b.always(r),u(i(r,n),n))}))}var i}),jn=b.curry(function(r,n,t){return br([r,Yt(n)],n,t)}),On=b.curry(Ar),xn=b.curry(gr),In=b.curry(jr),wn=b.curry(function(r,n){return br(r,void 0,n)}),Sn=b.curry(br),Un=b.curry(ir),Fn=Xr(Qr),kn=function(i){return P(function(r,n,t,u){return gn(i(r,n))(r,n,t,u)})},En=N(function(){for(var r=arguments[g],n=Yr;r--;){var t=arguments[r];n=t[g]<2?gn(t[0]):Kr(gn(t[1]),n)(t[0])}return n}),qn=N(function(e){e=gn(e);var o=arguments[g]-1;if(!o)return Yr;var r=arguments[o];r=1===r[g]?(--o,gn(r[0])):Yr;for(var c=Array(o),f=Array(o+1),n=0;n<o;++n){var t=arguments[n+1];c[n]=t[0],f[n]=gn(t[1])}return f[o]=r,function(r,n,t,u){var i=o;return e(r,n,bn,function(r,n){for(var t=0;t<i;++t)if(c[t](r,n)){if(0===(i=t))return 0;break}}),f[i](r,n,t,u)}}),Mn=b.curry(function(r,n,t){return Kr(gn(n),gn(t))(r)}),zn=b.curry(Qr),Nn=b.curry(function(t,r){return[r,kn(function(r,n){return void 0!==r?t(r,n):Yr})]}),Rn=Kr(Yr,qr),Pn=Kr(qr,Yr),Cn=Pn(b.isDefined),Dn=b.curry(function(i,e){return e=gn(e),P(function(r,t,n,u){return e(r,t,n,function(r,n){return u(r,i(n,t))})})}),Ln=R(Dn(function(r,n){return void 0!==n?void 0!==r?[n,r]:n:r})),Tn=R(Dn(b.sndU)),Wn=b.curry(function(r,n){return gr(r,N,n)}),$n=b.curry(function(r,n){return jr(r,N,n)}),_n=N(function(){var r=arguments[g],n=Yr;if(r)for(n=gn(arguments[--r]);r;)n=rn(gn(arguments[--r]),n);return n}),Bn=function(i){return function(r,n,t,u){return t.of(i)}},Jn=Bn(),Gn=N(b.curryN(2,function(n){return n=gn(n),function(r){return function r(n,t){var u=b.create(null);for(var i in t){var e=t[i];u[i]=b.isObject(e)?r(n,e):gn(e)}return Nr(n,u)}(n,r)}})),Hn=Gn(Yr),Kn=R(gn([$r,f])),Qn=R(gn([$r,f,0])),Vn=b.curry(Jr),Xn=Vn(0),Yn=b.curry(function(r,n){return Jr(r,void 0,n)}),Zn=R(Nr(qr,q)),rt=function(e){return function(r,n,u,i){return function r(n,t){return e(n,t)?i(n,t):v(n,t,u,r)}(r,n)}},nt=rt(function(r){return void 0!==r&&!b.isArray(r)&&!b.isObject(r)}),tt=b.curry(function(t,r,n){return!Or(function(r,n){if(!t(r,n))return!0},r,n)}),ut=tt(N),it=b.curry(function(t,r,n){var u=!1;return Or(function(r,n){if(!t(r,n))return u=!1;u=!0},r,n),u}),et=it(N),ot=b.curry(function(t,r,n){return!!Or(function(r,n){if(t(r,n))return!0},r,n)}),ct=(0,b.curry)(function(u,r,n){var i=[];return Or(function(r,n){var t=u(r,n);void 0!==t&&i.push(t)},r,n),i}),ft=ct(N),at=(0,b.curry)(function(t,r,n){var u=[];return Or(function(r,n){u.push(t(r,n))},r,n),u}),vt=at(N),st=er(N,nr),dt=st(N),yt=b.curry(function(t,r,n){return ir(tr,function(r,n){return t(r,n)?1:0},r,n)}),pt=yt(b.isDefined),lt=b.curry(function(i,r,n){var e=new Map;return Or(function(r,n){var t=i(r,n),u=e.get(t);e.set(t,void 0!==u?u+1:1)},r,n),e}),mt=lt(N),ht=b.curry(function(t,u,r,n){return Or(function(r,n){u=t(u,r,n)},r,n),u}),At=b.curry(function(r,n,t,u){var i=[],e=[];Or(function(r,n){e.push(r),i.push(n)},t,u);for(var o=e[g]-1;0<=o;--o)n=r(n,e[o],i[o]);return n}),bt=b.curry(function(t,r,n){return Or(function(r,n){t(r,n)},r,n)}),gt=b.curry(function(r,t,n,u){var i=r();return Or(function(r,n){t(i,r,n)},n,u),i}),jt=b.curry(Or),Ot=b.curry(function(r,n){return void 0!==Or(N,r,n)}),xt=b.curry(function(r,n){return!Or(B,r,n)}),It=er(L,N(function(t){return rr(function(r,n){return void 0!==r?void 0!==n?r+t+n:r:n})})),wt=It(N),St=ur(F),Ut=St(N),Ft=b.curry(function(u,r,n){var i=0,e=0;return Or(function(r,n){var t=u(r,n);void 0!==t&&(e+=1,i+=t)},r,n),i/e}),kt=Ft(N),Et=ur(U),qt=Et(N),Mt=b.curry(function(t,r,n){return!Or(function(r,n){if(t(r,n))return!0},r,n)}),zt=ot(N),Nt=Un(rr(O,1)),Rt=Nt($(1)),Pt=d,Ct=jt,Dt=Un(tr),Lt=Dt(_),Tt=b.curry(function(r,n){return Ir(r(n),Sn(n))}),Wt=b.curry(Ir),$t=Wt(N),_t=function(i){return function(r,n,t,u){return u(void 0!==r?i(r,n):r,n)}},Bt=function(i){return function(r,n,t,u){return t.map(function(r){return void 0!==r?i(r,n):r},u(r,n))}},Jt=R(en(Jn)),Gt=N(function(o){return function(r,n,t,u){var i=void 0,e=b.array0;return An(r)&&Pr(o,r,i=[],e=[]),t.map(function(r){var n=r?r[g]:0,t=e[g],u=n+t;return u===t?e:Z(Z(Array(u),0,r,0,n),n,e,0,t)},u(i,n))}}),Ht=N,Kt=kn(function(r){return An(r)&&r[g]?r[g]-1:0}),Qt=(0,b.curry)(function(f,a){return function(u,r,n,t){var i=An(u),e=i&&u[g],o=T(0,e,0,f),c=T(o,e,e,a);return n.map(function(r){var n=r?r[g]:0,t=o+n;return Z(Z(Z(Array(e-c+t),0,u,0,o),o,r,0,n),t,u,c,e)},t(i?Z(Array(Math.max(0,c-o)),0,u,o,c):void 0,r))}}),Vt=function(r){return b.isObject(r)?Zt(xn(Zn,nn,r)):r},Xt=N,Yt=function(r){return m.apply(null,b.keys(r))},Zt=N(function(i){return function(n,r,t,u){return t.map(function(r){return kr(i,r,n)},u(Fr(i,n),r))}}),ru=b.curry(function(i,e){function o(r){return Rr(e,i,r)}return function(r,n,t,u){return t.map(o,u(Rr(i,e,r),n))}}),nu=b.curry(wr),tu=new an(-1),uu=Xr(Vr),iu=b.curry(function(r,n){return wr(xn(r,d(n)),xn(r,h(n)))}),eu=b.curry(function(r,n){return[r,n,ou(r)]}),ou=function(i){return function(r,n,t,u){return t.map(function(r){return Or(N,i,r)},u(br(i,r,void 0),n))}},cu=b.curry(Vr),fu=wr(J,J),au=function(r){var n=h(r),i=d(r),e=function(r){return Y(n,r)};return function(r,n,t,u){return t.map(e,u(Y(i,r),n))}},vu=wr(G(An,N(function(r){for(var n=r[g],t=Array(n),u=0;u<n;++u)t[u]=[u,r[u]];return t})),G(b.isArray,N(function(r){for(var n=r[g],t=Array(n),u=0;u<n;++u){var i=r[u];2===i[g]&&(t[i[0]]=i[1])}n=t[g];for(var e=0,o=0;o<n;++o){var c=t[o];void 0!==c&&(o!==e&&(t[e]=c),++e)}return t[g]=e,t}))),su=wr(V,V),du=A(function(r){return[[r],r]}),yu=function(e){return function(r,n,t,u){var i=Br(e);return t.map(i,u(_r(e,r),n))}},pu=wr(G(k(Object),N(function(r){r=Er(r);var n=[];for(var t in r){var u=r[t];if(b.isArray(u))for(var i=0,e=u[g];i<e;++i)n.push([t,u[i]]);else n.push([t,u])}return n})),G(b.isArray,N(function(r){for(var n=b.create(null),t=0,u=r[g];t<u;++t){var i=r[t];if(2===i[g]){var e=i[0],o=i[1],c=n[e];void 0===c?n[e]=o:b.isArray(c)?c.push(o):n[e]=[c,o]}}return b.assign({},n)}))),lu=N(function(r){var n=r||b.object0,t=n.reviver,u=n.replacer,i=n.space;return wr(G(b.isString,D(function(r){return JSON.parse(r,t)})),G(b.isDefined,function(r){return JSON.stringify(r,u,i)}))}),mu=Sr(D(decodeURI),encodeURI),hu=wr(G(b.isString,D(decodeURIComponent)),G(n,encodeURIComponent)),Au=b.curry(function(r,n){return Sr(M(C(r,"g"),n),M(C(n,"g"),r))}),bu=N(function(n){var t=1<arguments[g]?arguments[1]:n;return wr(G(b.isString,function(r){return r.split(t)}),G(b.isArray,function(r){return r.join(n)}))}),gu=N(function(u){var t=C(1<arguments[g]?arguments[1]:u,"");return wr(G(b.isString,function(r){var n=t.exec(r);return n?[r.slice(0,n[Dr]),r.slice(Lr(n))]:[r,""]}),function(r){if(b.isArray(r)&&2===r[g]){var n=r[0],t=r[1];return t?n+u+t:n}})}),ju=gn([_t(function(r){return b.isString(r)?r.replace(/\+/g,"%20"):r}),bu("&"),au([gu("="),au(hu)]),ou(pu)]),Ou=Ur(S,S);r.Identity=b.Identity,r.IdentityAsync=b.IdentityAsync,r.FantasyFunctor=b.FantasyFunctor,r.fromFantasy=b.fromFantasy,r.fromFantasyApplicative=b.fromFantasyApplicative,r.fromFantasyMonad=b.fromFantasyMonad,r.seemsArrayLike=An,r.Select=bn,r.toFunction=gn,r.assign=jn,r.disperse=On,r.modify=xn,r.modifyAsync=In,r.remove=wn,r.set=Sn,r.traverse=Un,r.compose=function(){var r=arguments[g];if(r<2)return r?arguments[0]:qr;for(var n=Array(r);r--;)n[r]=arguments[r];return n},r.flat=function(){for(var r=[s],n=0,t=arguments[g];n<t;++n)r.push(arguments[n],s);return r},r.lazy=function(i){function e(r,n,t,u){return o(r,n,t,u)}var o=function(r,n,t,u){return(o=gn(i(e)))(r,n,t,u)};return e},r.choices=Fn,r.choose=kn,r.cond=En,r.condOf=qn,r.ifElse=Mn,r.orElse=zn,r.chain=Nn,r.choice=function(){for(var r=arguments.length,n=Array(r),t=0;t<r;t++)n[t]=arguments[t];return n.reduceRight(Qr,Yr)},r.unless=Rn,r.when=Pn,r.optional=Cn,r.zero=Yr,r.mapIx=function(i){return function(r,n,t,u){return u(r,i(n,r))}},r.setIx=function(i){return function(r,n,t,u){return u(r,i)}},r.tieIx=Dn,r.joinIx=Ln,r.reIx=function(e){return e=gn(e),P(function(r,n,t,u){var i=0;return e(r,n,t,function(r){return u(r,i++)})})},r.skipIx=Tn,r.getLog=function(r,n){var t=ir(ar,function(r){return{p:[r,or],x:r,c:r}},r,n),u=t.p,i=t.c;u=cr(u,["%O"]);for(var e=2;e<u[g];++e)u[0]+=" <= %O";return console.log.apply(console,u),i},r.log=function(){var r=b.curry(function(r,n){return console.log.apply(console,Z([],0,arguments,0,arguments[g]).concat([r,n])),n});return wr(r("get"),r("set"))},r.transform=Wn,r.transformAsync=$n,r.seq=_n,r.assignOp=function(r){return[Yt(r),Bn(r)]},r.modifyOp=function(i){return function(r,n,t,u){return t.of(i(r,n))}},r.setOp=Bn,r.removeOp=Jn,r.branchOr=Gn,r.branch=Hn,r.branches=function(){for(var r=arguments[g],n={},t=0;t<r;++t)n[arguments[t]]=qr;return Hn(n)},r.elems=f,r.elemsTotal=function(r,n,t,u){return An(r)?t===b.Identity?X(u,r,X):t===bn?i(u,r):e(t,u,r,e):t.of(r)},r.entries=Kn,r.keys=Qn,r.subseq=Vn,r.limit=Xn,r.offset=Yn,r.matches=function(f){return function(n,r,t,u){if(b.isString(n)){var i=t.map;if(f.global){var e=[""];return e.input=n,e[Dr]=0,bn===t?function(r,n,t){for(;t=Tr(t,n);){var u=r(t[0],t[Dr]);if(void 0!==u)return u}}(u,f,e):i((c=n,function(r){for(var n="",t=0,u=function(r){for(var n=[];Wr!==r;)n.push(r[0],r[1]),r=r[2];return n}(r),i=u[g]-2;-2!==i;i+=-2){var e=u[i];n+=c.slice(t,e[Dr]);var o=u[i+1];void 0!==o&&(n+=o),t=Lr(e)}return n+c.slice(t)}),function(r,n,t,u,i,e){for(var o=t(Wr);e=Tr(e,i);)o=n(n(r(Wr,t(e)),o),u(e[0],e[Dr]));return o}(i,t.ap,t.of,u,f,e))}var o=n.match(f);if(o)return i(function(r){return n.replace(f,void 0!==r?r:"")},u(o[0],o[Dr]))}var c;return t.of(n)}},r.values=Zn,r.children=v,r.flatten=s,r.query=function(){for(var r=[],n=0,t=arguments[g];n<t;++n){var u=gn(arguments[n]);r.push(rt(Hr(u)),u)}return r},r.satisfying=rt,r.leafs=nt,r.all=tt,r.and=ut,r.all1=it,r.and1=et,r.any=ot,r.collectAs=ct,r.collect=ft,r.collectTotalAs=at,r.collectTotal=vt,r.concatAs=st,r.concat=dt,r.countIf=yt,r.count=pt,r.countsAs=lt,r.counts=mt,r.foldl=ht,r.foldr=At,r.forEach=bt,r.forEachWith=gt,r.get=d,r.getAs=jt,r.isDefined=Ot,r.isEmpty=xt,r.joinAs=It,r.join=wt,r.maximumBy=St,r.maximum=Ut,r.meanAs=Ft,r.mean=kt,r.minimumBy=Et,r.minimum=qt,r.none=Mt,r.or=zt,r.productAs=Nt,r.product=Rt,r.select=Pt,r.selectAs=Ct,r.sumAs=Dt,r.sum=Lt,r.foldTraversalLens=Tt,r.getter=function(i){return function(r,n,t,u){return u(i(r,n),n)}},r.lens=Wt,r.partsOf=function(i){return function(n,r,t,u){return t.map(function(r){return Ar(i,r,n)},u(vt(i,n),r))}},r.setter=$t,r.defaults=function(i){function e(r){return Rr(i,void 0,r)}return function(r,n,t,u){return t.map(e,u(void 0!==r?r:i,n))}},r.define=function(i){var e=$(i);return function(r,n,t,u){return t.map(e,u(void 0!==r?r:i,n))}},r.normalize=function(r){return[_t(r),Bt(r)]},r.required=function(r){return ru(r,void 0)},r.reread=_t,r.rewrite=Bt,r.append=y,r.cross=Jt,r.filter=Gt,r.find=l,r.findWith=function(r){var n=gn(r),t=Hr(n);return[1<arguments[g]?l(t,arguments[1]):l(t),n]},r.first=0,r.index=Ht,r.last=Kt,r.prefix=function(r){return Qt(0,r)},r.slice=Qt,r.suffix=function(r){return Qt(0===r?1/0:r?-r:0,void 0)},r.pickIn=Vt,r.prop=Xt,r.props=m,r.propsExcept=function(){for(var n=b.create(null),r=0,t=arguments[g];r<t;++r)n[arguments[r]]="d";return[yu(function(r){return n[r]||"t"}),"t"]},r.propsOf=Yt,r.removable=function(){function i(r){if(!(r instanceof Object))return r;for(var n=0,t=u[g];n<t;++n)if(b.hasU(u[n],r))return r}for(var r=arguments.length,u=Array(r),n=0;n<r;n++)u[n]=arguments[n];return function(r,n,t,u){return t.map(i,u(r,n))}},r.valueOr=function(i){return function(r,n,t,u){return u(null!=r?r:i,n)}},r.pick=Zt,r.replace=ru,r.getInverse=h,r.iso=nu,r._=tu,r.mapping=A,r.mappings=function(r){return b.isFunction(r)&&(r=r.apply(null,o(r[g]))),uu.apply(null,r.map(A))},r.alternatives=uu,r.applyAt=iu,r.conjugate=eu,r.inverse=ou,r.iterate=function(r){return wr(tn(d(r)),tn(h(r)))},r.orAlternatively=cu,r.complement=fu,r.identity=qr,r.is=function(n){return wr(function(r){return b.acyclicEqualsU(n,r)},function(r){return!0===r?n:void 0})},r.subset=function(r){var n,t=(n=r,function(r){return void 0!==r&&n(r)?r:void 0});return wr(t,t)},r.array=au,r.indexed=vu,r.reverse=su,r.singleton=du,r.disjoint=yu,r.keyed=$r,r.multikeyed=pu,r.json=lu,r.uri=mu,r.uriComponent=hu,r.dropPrefix=function(n){return Sr(function(r){return r.startsWith(n)?r.slice(n[g]):void 0},function(r){return n+r})},r.dropSuffix=function(n){return Sr(function(r){return r.endsWith(n)?r.slice(0,r[g]-n[g]):void 0},function(r){return r+n})},r.replaces=Au,r.split=bu,r.uncouple=gu,r.querystring=ju,r.add=function(r){return Ur(x(r),x(-r))},r.divide=function(r){return Ur(w(r),I(r))},r.multiply=function(r){return Ur(I(r),w(r))},r.negate=Ou,r.subtract=function(r){return Ur(x(-r),x(r))},r.pointer=function(r){"#"===r[0]&&(r=decodeURIComponent(r));for(var n=r.split("/"),t=n[g],u=1;u<t;++u){var i=n[u];n[u-1]=/^(0|[1-9]\d*)$/.test(i)?Mn(Q,Number(i),i):"-"===i?Mn(Q,y,i):i.replace("~1","/").replace("~0","~")}return n[g]=t-1,n},Object.defineProperty(r,"__esModule",{value:!0})});
{
"name": "partial.lenses",
"version": "14.11.0",
"version": "14.11.1",
"description": "Partial lenses is a comprehensive, high-performance optics library for JavaScript",

@@ -73,7 +73,7 @@ "module": "dist/partial.lenses.es.js",

"concurrently": "^4.0.1",
"eslint": "^5.6.1",
"eslint": "^5.7.0",
"klipse-github-docs-generator": "^0.3.7",
"livereload": "^0.7.0",
"mocha": "^5.2.0",
"nyc": "^13.0.1",
"nyc": "^13.1.0",
"ramda": "^0.25.0",

@@ -80,0 +80,0 @@ "rollup": "^0.66.6",

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

import * as I from 'infestines'
import * as I from './ext/infestines'
export const dep = xs2xsyC => xsy =>
I.arityN(
xsy.length,
xsy[I.LENGTH],
I.defineNameU((...xs) => xs2xsyC(...xs)(xsy)(...xs), xsy.name)

@@ -11,3 +11,3 @@ )

I.arityN(
xsy.length,
xsy[I.LENGTH],
I.defineNameU((...xs) => yC(xsy.apply(null, xsC(xs))), xsy.name)

@@ -29,3 +29,3 @@ )

export const and = (...xCs) => x => {
for (let i = 0, n = xCs.length; i < n; ++i) x = xCs[i](x)
for (let i = 0, n = xCs[I.LENGTH]; i < n; ++i) x = xCs[i](x)
return x

@@ -36,3 +36,3 @@ }

let es = null
for (let i = 0, n = xCs.length; i < n; ++i) {
for (let i = 0, n = xCs[I.LENGTH]; i < n; ++i) {
try {

@@ -54,5 +54,5 @@ return xCs[i](x)

export const tup = (...xCs) => xs => {
if (xs.length !== xCs.length)
if (xs[I.LENGTH] !== xCs[I.LENGTH])
throw Error(
`Expected array of ${xCs.length} elements, but got ${xs.length}`
`Expected array of ${xCs[I.LENGTH]} elements, but got ${xs[I.LENGTH]}`
)

@@ -59,0 +59,0 @@ return and.apply(null, xCs.map((xC, i) => nth(i, xC)))(xs)

@@ -5,2 +5,4 @@ import * as I from 'infestines'

export const LENGTH = 'length'
export const addU = (x, y) => x + y

@@ -38,3 +40,1 @@ export const multiplyU = (x, y) => x * y

export const iterator = Symbol.iterator
export const length = x => x.length

@@ -81,3 +81,3 @@ import * as I from './ext/infestines'

if (seemsArrayLike(xs)) {
let n = xs.length
let n = xs[I.LENGTH]
const ys = Array(n)

@@ -100,3 +100,3 @@ let i = 0

})((xi2y, xs, skip) => {
const n = xs.length
const n = xs[I.LENGTH]
const ys = Array(n)

@@ -115,3 +115,3 @@ let j = 0

if (j !== n) {
ys.length = j
ys[I.LENGTH] = j
return ys

@@ -131,3 +131,3 @@ } else if (same) {

: fn => (ys, k, xs, i, j) =>
ys.length === k + j - i
ys[I.LENGTH] === k + j - i
? I.freeze(fn(ys, k, xs, i, j))

@@ -142,3 +142,3 @@ : fn(ys, k, xs, i, j))((ys, k, xs, i, j) => {

function selectInArrayLike(xi2v, xs) {
for (let i = 0, n = xs.length; i < n; ++i) {
for (let i = 0, n = xs[I.LENGTH]; i < n; ++i) {
const v = xi2v(xs[i], i)

@@ -213,3 +213,3 @@ if (void 0 !== v) return v

function reqFunction(o) {
if (!(I.isFunction(o) && (o.length === 4 || o.length <= 2)))
if (!(I.isFunction(o) && (o[I.LENGTH] === 4 || o[I.LENGTH] <= 2)))
errorGiven(expectedOptic, o, opticIsEither)

@@ -235,3 +235,3 @@ }

reqArray(o)
for (let i = 0, n = o.length; i < n; ++i) reqOptic(o[i])
for (let i = 0, n = o[I.LENGTH]; i < n; ++i) reqOptic(o[i])
break

@@ -295,3 +295,3 @@ default:

let xsA = A.of(consExcept)
const n = xs.length
const n = xs[I.LENGTH]
if (map === I.sndU) {

@@ -348,3 +348,3 @@ for (let i = 0; i < n; ++i) xsA = ap(xsA, xi2yA(xs[i], i))

if (!seemsArrayLike(xs)) xs = ''
const n = xs.length
const n = xs[I.LENGTH]
if (void 0 !== x) {

@@ -374,3 +374,3 @@ const m = Math.max(i + 1, n)

function composed(oi0, os) {
let n = os.length - oi0
let n = os[I.LENGTH] - oi0
if (n < 2) {

@@ -404,3 +404,3 @@ return n ? toFunction(os[oi0]) : identity

default:
return o.length === 4 ? o(s, void 0, I.Identity, I.always(x)) : s
return o[I.LENGTH] === 4 ? o(s, void 0, I.Identity, I.always(x)) : s
}

@@ -420,3 +420,3 @@ })

default:
return o.length === 4
return o[I.LENGTH] === 4
? o(s, void 0, I.Identity, xi2x)

@@ -439,3 +439,3 @@ : (xi2x(o(s, void 0), void 0), s)

case 'object': {
const n = l.length
const n = l[I.LENGTH]
for (let i = 0, o; i < n; ++i)

@@ -455,3 +455,3 @@ switch (typeof (o = l[i])) {

default:
return xi2y !== id && l.length !== 4
return xi2y !== id && l[I.LENGTH] !== 4
? xi2y(l(s, void 0), void 0)

@@ -465,3 +465,3 @@ : l(s, void 0, Select, xi2y)

function modifyComposed(os, xi2y, x, y) {
let n = os.length
let n = os[I.LENGTH]
const xs = Array(n)

@@ -483,3 +483,3 @@ for (let i = 0, o; i < n; ++i) {

}
if (n === os.length) x = xi2y ? xi2y(x, os[n - 1]) : y
if (n === os[I.LENGTH]) x = xi2y ? xi2y(x, os[n - 1]) : y
for (let o; 0 <= --n; )

@@ -563,3 +563,3 @@ x = I.isString((o = os[n])) ? setProp(o, x, xs[n]) : setIndex(o, x, xs[n])

const r = {}
let i = ks.length
let i = ks[I.LENGTH]
while (i--) {

@@ -640,3 +640,3 @@ const v = xs[0]

}
const t = ks.length ? true : void 0
const t = ks[I.LENGTH] ? true : void 0
for (const k in xO) {

@@ -648,3 +648,3 @@ if (void 0 === (t && k2o[k])) {

}
return ks.length ? map(branchAssemble(ks), xsA) : of(x)
return ks[I.LENGTH] ? map(branchAssemble(ks), xsA) : of(x)
}

@@ -666,3 +666,3 @@ }

let u = hint.hint
const n = xs.length
const n = xs[I.LENGTH]
if (n <= u) u = n - 1

@@ -690,3 +690,3 @@ if (u < 0) u = 0

))((xi2b, xs, ts, fs) => {
for (let i = 0, n = xs.length, x; i < n; ++i)
for (let i = 0, n = xs[I.LENGTH], x; i < n; ++i)
(xi2b((x = xs[i]), i) ? ts : fs).push(x)

@@ -700,6 +700,8 @@ })

const reValue = m => m[0]
const reIndex = m => m.index
const reLastIndex = m => reIndex(m) + m[0].length
const LAST_INDEX = 'lastIndex'
const INDEX = 'index'
const RE_VALUE = 0
const reLastIndex = m => m[INDEX] + m[0][I.LENGTH]
const reNext = (process.env.NODE_ENV === 'production'

@@ -716,6 +718,6 @@ ? id

})((m, re) => {
const lastIndex = re.lastIndex
re.lastIndex = reLastIndex(m)
const lastIndex = re[LAST_INDEX]
re[LAST_INDEX] = reLastIndex(m)
const n = re.exec(m.input)
re.lastIndex = lastIndex
re[LAST_INDEX] = lastIndex
return n && n[0] && n

@@ -739,3 +741,3 @@ })

while ((s = reNext(s, t))) {
const y = xi2y(reValue(s), reIndex(s))
const y = xi2y(s[RE_VALUE], s[INDEX])
if (void 0 !== y) return y

@@ -748,3 +750,3 @@ }

while ((s = reNext(s, t)))
r = ap(ap(map(iterCollect, of(s)), r), xi2yA(reValue(s), reIndex(s)))
r = ap(ap(map(iterCollect, of(s)), r), xi2yA(s[RE_VALUE], s[INDEX]))
return r

@@ -771,5 +773,5 @@ }

const o = {}
for (let i = 0, n = es.length; i < n; ++i) {
for (let i = 0, n = es[I.LENGTH]; i < n; ++i) {
const entry = es[i]
if (entry.length === 2) o[entry[0]] = entry[1]
if (entry[I.LENGTH] === 2) o[entry[0]] = entry[1]
}

@@ -787,6 +789,6 @@ return o

const matches = iterToArray(matchesIn)
const n = matches.length
const n = matches[I.LENGTH]
for (let j = n - 2; j !== -2; j += -2) {
const m = matches[j]
result += input.slice(lastIndex, reIndex(m))
result += input.slice(lastIndex, m[INDEX])
const s = matches[j + 1]

@@ -892,3 +894,3 @@ if (void 0 !== s) result += s

copyName(function(_) {
let n = arguments.length
let n = arguments[I.LENGTH]
let r = arguments[--n]

@@ -936,6 +938,6 @@ while (n) {

const crossPartial = (op, ls, or) => (xs, ss) => {
const n = ls.length
const n = ls[I.LENGTH]
if (!seemsArrayLike(xs)) return
if (!seemsArrayLike(ss)) ss = ''
const m = Math.max(n, xs.length, ss.length)
const m = Math.max(n, xs[I.LENGTH], ss[I.LENGTH])
const ys = Array(m)

@@ -958,3 +960,3 @@ for (let i = 0; i < m; ++i)

function subset(x) {
return p(x) ? x : undefined
return void 0 !== x && p(x) ? x : void 0
}

@@ -989,3 +991,3 @@

function nVars(n) {
while (I.length(vars) < n) vars.push(new Variable(I.length(vars)))
while (vars[I.LENGTH] < n) vars.push(new Variable(vars[I.LENGTH]))
return vars

@@ -1026,3 +1028,3 @@ }

let nSpread = 0
for (let i = 0, n = I.length(p); i < n; ++i) {
for (let i = 0, n = p[I.LENGTH]; i < n; ++i) {
const pi = p[i]

@@ -1085,3 +1087,3 @@ if (isSpread(pi)) {

let spread = void 0
const n = I.length(p)
const n = p[I.LENGTH]
for (let i = 0; i < n; ++i) {

@@ -1099,7 +1101,7 @@ const x = p[i]

if (!seemsArrayLike(x)) return
let l = x.length
let l = x[I.LENGTH]
if (void 0 !== spread ? l < n - 1 : l !== n) return
const j = init.length
const j = init[I.LENGTH]
for (let i = 0; i < j; ++i) if (!init[i](e, x[i])) return
const k = rest.length
const k = rest[I.LENGTH]
l -= k

@@ -1153,3 +1155,3 @@ for (let i = 0; i < k; ++i) if (!rest[i](e, x[l + i])) return

let spread = void 0
const n = I.length(p)
const n = p[I.LENGTH]
for (let i = 0; i < n; ++i) {

@@ -1166,8 +1168,9 @@ const x = p[i]

const r = []
for (let i = 0, n = init.length; i < n; ++i) pushDefined(r, init[i](e))
for (let i = 0, n = init[I.LENGTH]; i < n; ++i) pushDefined(r, init[i](e))
if (0 <= spread) {
const xs = e[spread]
if (xs) for (let i = 0, n = xs.length; i < n; ++i) pushDefined(r, xs[i])
if (xs)
for (let i = 0, n = xs[I.LENGTH]; i < n; ++i) pushDefined(r, xs[i])
}
for (let i = 0, n = rest.length; i < n; ++i) pushDefined(r, rest[i](e))
for (let i = 0, n = rest[I.LENGTH]; i < n; ++i) pushDefined(r, rest[i](e))
return r

@@ -1199,3 +1202,3 @@ })

export const seemsArrayLike = x =>
(x instanceof Object && ((x = x.length), x === x >> 0 && 0 <= x)) ||
(x instanceof Object && ((x = x[I.LENGTH]), x === x >> 0 && 0 <= x)) ||
I.isString(x)

@@ -1220,3 +1223,3 @@

default:
return o.length === 4 ? o : fromReader(o)
return o[I.LENGTH] === 4 ? o : fromReader(o)
}

@@ -1248,3 +1251,3 @@ })

export function compose() {
let n = arguments.length
let n = arguments[I.LENGTH]
if (n < 2) {

@@ -1261,3 +1264,3 @@ return n ? arguments[0] : identity

const r = [flatten]
for (let i = 0, n = arguments.length; i < n; ++i)
for (let i = 0, n = arguments[I.LENGTH]; i < n; ++i)
r.push(arguments[i], flatten)

@@ -1293,7 +1296,7 @@ return r

})(function cond() {
let n = arguments.length
let n = arguments[I.LENGTH]
let r = zero
while (n--) {
const c = arguments[n]
r = c.length < 2 ? toFunction(c[0]) : eitherU(toFunction(c[1]), r)(c[0])
r = c[I.LENGTH] < 2 ? toFunction(c[0]) : eitherU(toFunction(c[1]), r)(c[0])
}

@@ -1314,7 +1317,7 @@ return r

let n = arguments.length - 1
let n = arguments[I.LENGTH] - 1
if (!n) return zero
let def = arguments[n]
if (def.length === 1) {
if (def[I.LENGTH] === 1) {
--n

@@ -1412,3 +1415,3 @@ def = toFunction(def[0])

p = pushTo(p, ['%O'])
for (let i = 2; i < p.length; ++i) p[0] += ' <= %O'
for (let i = 2; i < p[I.LENGTH]; ++i) p[0] += ' <= %O'
console.log.apply(console, p)

@@ -1422,3 +1425,3 @@ return c

console,
copyToFrom([], 0, arguments, 0, arguments.length).concat([dir, x])
copyToFrom([], 0, arguments, 0, arguments[I.LENGTH]).concat([dir, x])
)

@@ -1448,3 +1451,3 @@ return x

})(function seq() {
let n = arguments.length
let n = arguments[I.LENGTH]
let r = zero

@@ -1490,3 +1493,3 @@ if (n) {

export function branches() {
const n = arguments.length
const n = arguments[I.LENGTH]
const template = {}

@@ -1531,3 +1534,3 @@ for (let i = 0; i < n; ++i) template[arguments[i]] = identity

m0.input = x
m0.index = 0
m0[INDEX] = 0
if (Select === C) {

@@ -1544,3 +1547,3 @@ return iterSelect(xi2yC, re, m0)

y => x.replace(re, void 0 !== y ? y : ''),
xi2yC(m[0], reIndex(m))
xi2yC(m[0], m[INDEX])
)

@@ -1571,3 +1574,3 @@ }

const r = []
for (let i = 0, n = arguments.length; i < n; ++i) {
for (let i = 0, n = arguments[I.LENGTH]; i < n; ++i) {
const o = toFunction(arguments[i])

@@ -1709,3 +1712,3 @@ r.push(satisfying(isDefinedAt(o)), o)

)
for (let i = xs.length - 1; 0 <= i; --i) r = f(r, xs[i], is[i])
for (let i = xs[I.LENGTH] - 1; 0 <= i; --i) r = f(r, xs[i], is[i])
return r

@@ -1737,3 +1740,3 @@ })

export function get(l, s) {
return 1 < arguments.length ? getAsU(id, l, s) : s => getAsU(id, l, s)
return 1 < arguments[I.LENGTH] ? getAsU(id, l, s) : s => getAsU(id, l, s)
}

@@ -1887,3 +1890,3 @@

export function append(xs, _, F, xi2yF) {
const i = seemsArrayLike(xs) ? xs.length : 0
const i = seemsArrayLike(xs) ? xs[I.LENGTH] : 0
return F.map(x => setIndex(i, x, xs), xi2yF(void 0, i))

@@ -1914,4 +1917,4 @@ }

return F.map(ts => {
const tsN = ts ? ts.length : 0
const fsN = fs.length
const tsN = ts ? ts[I.LENGTH] : 0
const fsN = fs[I.LENGTH]
const n = tsN + fsN

@@ -1926,3 +1929,3 @@ return n === fsN

export function find(xih2b) {
const hint = arguments.length > 1 ? arguments[1] : {hint: 0}
const hint = arguments[I.LENGTH] > 1 ? arguments[1] : {hint: 0}
return function find(xs, _i, F, xi2yF) {

@@ -1938,3 +1941,3 @@ const ys = seemsArrayLike(xs) ? xs : ''

const p = isDefinedAt(oo)
return [arguments.length > 1 ? find(p, arguments[1]) : find(p), oo]
return [arguments[I.LENGTH] > 1 ? find(p, arguments[1]) : find(p), oo]
}

@@ -1947,4 +1950,4 @@

export const last = choose(function last(maybeArray) {
return seemsArrayLike(maybeArray) && maybeArray.length
? maybeArray.length - 1
return seemsArrayLike(maybeArray) && maybeArray[I.LENGTH]
? maybeArray[I.LENGTH] - 1
: 0

@@ -1972,7 +1975,7 @@ })

const seems = seemsArrayLike(xs)
const xsN = seems && xs.length
const xsN = seems && xs[I.LENGTH]
const b = sliceIndex(0, xsN, 0, begin)
const e = sliceIndex(b, xsN, xsN, end)
return F.map(zs => {
const zsN = zs ? zs.length : 0
const zsN = zs ? zs[I.LENGTH] : 0
const bPzsN = b + zsN

@@ -2007,3 +2010,3 @@ const n = xsN - e + bPzsN

export function props() {
const n = arguments.length
const n = arguments[I.LENGTH]
const template = {}

@@ -2016,3 +2019,4 @@ for (let i = 0, k; i < n; ++i) template[(k = arguments[i])] = k

const setish = I.create(null)
for (let i = 0, n = arguments.length; i < n; ++i) setish[arguments[i]] = 'd'
for (let i = 0, n = arguments[I.LENGTH]; i < n; ++i)
setish[arguments[i]] = 'd'
return [disjoint(k => setish[k] || 't'), 't']

@@ -2026,3 +2030,3 @@ }

if (!(y instanceof Object)) return y
for (let i = 0, n = ps.length; i < n; ++i) if (I.hasU(ps[i], y)) return y
for (let i = 0, n = ps[I.LENGTH]; i < n; ++i) if (I.hasU(ps[i], y)) return y
}

@@ -2057,3 +2061,3 @@ return (x, i, F, xi2yF) => F.map(drop, xi2yF(x, i))

export function getInverse(o, s) {
return 1 < arguments.length ? setU(o, s, void 0) : s => setU(o, s, void 0)
return 1 < arguments[I.LENGTH] ? setU(o, s, void 0) : s => setU(o, s, void 0)
}

@@ -2069,3 +2073,3 @@

let n = 0
if (I.isFunction(ps)) ps = ps.apply(null, nVars((n = ps.length)))
if (I.isFunction(ps)) ps = ps.apply(null, nVars((n = ps[I.LENGTH])))
checkPatternPairInDev(ps)

@@ -2079,3 +2083,3 @@ const kinds = Array(n)

export function mappings(ps) {
if (I.isFunction(ps)) ps = ps.apply(null, nVars(ps.length))
if (I.isFunction(ps)) ps = ps.apply(null, nVars(ps[I.LENGTH]))
return alternatives.apply(null, ps.map(mapping))

@@ -2140,3 +2144,3 @@ }

function indexed(xs) {
const n = xs.length
const n = xs[I.LENGTH]
const xis = Array(n)

@@ -2151,9 +2155,9 @@ for (let i = 0; i < n; ++i) xis[i] = [i, xs[i]]

(process.env.NODE_ENV === 'production' ? id : C.res(I.freeze))(xis => {
let n = xis.length
let n = xis[I.LENGTH]
let xs = Array(n)
for (let i = 0; i < n; ++i) {
const xi = xis[i]
if (xi.length === 2) xs[xi[0]] = xi[1]
if (xi[I.LENGTH] === 2) xs[xi[0]] = xi[1]
}
n = xs.length
n = xs[I.LENGTH]
let j = 0

@@ -2167,3 +2171,3 @@ for (let i = 0; i < n; ++i) {

}
xs.length = j
xs[I.LENGTH] = j
return xs

@@ -2198,3 +2202,3 @@ })

if (I.isArray(v))
for (let i = 0, n = v.length; i < n; ++i) ps.push([k, v[i]])
for (let i = 0, n = v[I.LENGTH]; i < n; ++i) ps.push([k, v[i]])
else ps.push([k, v])

@@ -2211,5 +2215,5 @@ }

const o = I.create(null)
for (let i = 0, n = ps.length; i < n; ++i) {
for (let i = 0, n = ps[I.LENGTH]; i < n; ++i) {
const entry = ps[i]
if (entry.length === 2) {
if (entry[I.LENGTH] === 2) {
const k = entry[0]

@@ -2260,3 +2264,3 @@ const v = entry[1]

function dropPrefix(x) {
return x.startsWith(pfx) ? x.slice(pfx.length) : undefined
return x.startsWith(pfx) ? x.slice(pfx[I.LENGTH]) : undefined
},

@@ -2269,3 +2273,5 @@ x => pfx + x

function dropSuffix(x) {
return x.endsWith(sfx) ? x.slice(0, x.length - sfx.length) : undefined
return x.endsWith(sfx)
? x.slice(0, x[I.LENGTH] - sfx[I.LENGTH])
: undefined
},

@@ -2288,3 +2294,3 @@ x => x + sfx

})(function split(sep) {
const re = arguments.length > 1 ? arguments[1] : sep
const re = arguments[I.LENGTH] > 1 ? arguments[1] : sep
return isoU(

@@ -2302,10 +2308,10 @@ expect(I.isString, x => x.split(re)),

})(function uncouple(sep) {
const re = toRegExpU(arguments.length > 1 ? arguments[1] : sep, '')
const re = toRegExpU(arguments[I.LENGTH] > 1 ? arguments[1] : sep, '')
return isoU(
expect(I.isString, x => {
const m = re.exec(x)
return m ? [x.slice(0, reIndex(m)), x.slice(reLastIndex(m))] : [x, '']
return m ? [x.slice(0, m[INDEX]), x.slice(reLastIndex(m))] : [x, '']
}),
kv => {
if (I.isArray(kv) && kv.length === 2) {
if (I.isArray(kv) && kv[I.LENGTH] === 2) {
const k = kv[0]

@@ -2348,3 +2354,3 @@ const v = kv[1]

const ts = s.split('/')
const n = ts.length
const n = ts[I.LENGTH]
for (let i = 1; i < n; ++i) {

@@ -2358,4 +2364,4 @@ const t = ts[i]

}
ts.length = n - 1
ts[I.LENGTH] = n - 1
return ts
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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