New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 13.12.0 to 13.13.0

75

dist/partial.lenses.cjs.js

@@ -212,2 +212,8 @@ 'use strict';

function freezeObjectOfObjects(xs) {
if (xs) for (var k in xs) {
I.freeze(xs[k]);
}return I.freeze(xs);
}
var isArrayOrPrimitive = function isArrayOrPrimitive(x) {

@@ -961,2 +967,39 @@ return !(x instanceof Object) || I.isArray(x);

var disjointBwd = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? I.id : res(freezeObjectOfObjects))(function (groupOf, x) {
if (x instanceof Object) {
var y = {};
x = toObject(x);
for (var key in x) {
var group = groupOf(key);
var g = y[group];
if (undefined === g) y[group] = g = {};
g[key] = x[key];
}
return y;
}
});
var disjointFwd = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? I.id : res(res(I.freeze)))(function (groupOf) {
return function (y) {
if (y instanceof Object) {
var x = {};
y = toObject(y);
for (var group in y) {
var g = y[group];
if (g instanceof Object) {
g = toObject(g);
for (var key in g) {
if (groupOf(key) === group) {
x[key] = g[key];
}
}
}
}
return x;
}
};
});
//
var eitherU = function eitherU(t, e) {

@@ -1759,2 +1802,12 @@ return function (c) {

var is = function is(v) {
return isoU(function (x) {
return I.acyclicEqualsU(v, x);
}, function (b) {
return true === b ? v : void 0;
});
};
// Array isomorphisms
var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? I.id : res(freezeArrayOfObjects))(function (xs) {

@@ -1786,10 +1839,2 @@ var n = xs.length;

var is = function is(v) {
return isoU(function (x) {
return I.acyclicEqualsU(v, x);
}, function (b) {
return true === b ? v : void 0;
});
};
var reverse = /*#__PURE__*/isoU(rev, rev);

@@ -1803,2 +1848,11 @@

// Object isomorphisms
var disjoint = function disjoint(groupOf) {
return function (x, i, F, xi2yF) {
var fwd = disjointFwd(groupOf);
return F.map(fwd, xi2yF(disjointBwd(groupOf, x), i));
};
};
// Standard isomorphisms

@@ -2024,7 +2078,8 @@

exports.identity = identity;
exports.is = is;
exports.indexed = indexed;
exports.is = is;
exports.keyed = keyed;
exports.reverse = reverse;
exports.singleton = singleton;
exports.disjoint = disjoint;
exports.keyed = keyed;
exports.uri = uri;

@@ -2031,0 +2086,0 @@ exports.uriComponent = uriComponent;

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

import { isString, isFunction, isArray, freeze, isObject, id, acyclicEqualsU, array0, object0, sndU, always, curry, curryN, arityN, assocPartialU, dissocPartialU, isNumber, constructorOf, toObject, applyU, isDefined, keys, hasU, assign } from 'infestines';
import { isString, curry, isFunction, isArray, freeze, isObject, id, acyclicEqualsU, array0, object0, sndU, always, curryN, arityN, assocPartialU, dissocPartialU, isNumber, constructorOf, toObject, applyU, isDefined, keys, hasU, assign } from 'infestines';

@@ -208,2 +208,8 @@ var addU = function addU(x, y) {

function freezeObjectOfObjects(xs) {
if (xs) for (var k in xs) {
freeze(xs[k]);
}return freeze(xs);
}
var isArrayOrPrimitive = function isArrayOrPrimitive(x) {

@@ -957,2 +963,39 @@ return !(x instanceof Object) || isArray(x);

var disjointBwd = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(freezeObjectOfObjects))(function (groupOf, x) {
if (x instanceof Object) {
var y = {};
x = toObject$1(x);
for (var key in x) {
var group = groupOf(key);
var g = y[group];
if (undefined === g) y[group] = g = {};
g[key] = x[key];
}
return y;
}
});
var disjointFwd = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(res(freeze)))(function (groupOf) {
return function (y) {
if (y instanceof Object) {
var x = {};
y = toObject$1(y);
for (var group in y) {
var g = y[group];
if (g instanceof Object) {
g = toObject$1(g);
for (var key in g) {
if (groupOf(key) === group) {
x[key] = g[key];
}
}
}
}
return x;
}
};
});
//
var eitherU = function eitherU(t, e) {

@@ -1755,2 +1798,12 @@ return function (c) {

var is = function is(v) {
return isoU(function (x) {
return acyclicEqualsU(v, x);
}, function (b) {
return true === b ? v : void 0;
});
};
// Array isomorphisms
var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(freezeArrayOfObjects))(function (xs) {

@@ -1782,10 +1835,2 @@ var n = xs.length;

var is = function is(v) {
return isoU(function (x) {
return acyclicEqualsU(v, x);
}, function (b) {
return true === b ? v : void 0;
});
};
var reverse = /*#__PURE__*/isoU(rev, rev);

@@ -1799,2 +1844,11 @@

// Object isomorphisms
var disjoint = function disjoint(groupOf) {
return function (x, i, F, xi2yF) {
var fwd = disjointFwd(groupOf);
return F.map(fwd, xi2yF(disjointBwd(groupOf, x), i));
};
};
// Standard isomorphisms

@@ -1904,2 +1958,2 @@

export { seemsArrayLike, Identity, IdentityAsync, Constant, toFunction, assign$1 as assign, modify, modifyAsync, remove, set, transform, transformAsync, traverse, compose, flat, lazy, choices, choose, cond, condOf, ifElse, iftes, orElse, chain, choice, unless, when, optional, zero, assignOp, modifyOp, setOp, removeOp, log, seq, branchOr, branch, branches, elems, elemsTotal, entries, keys$1 as keys, matches, values, children, flatten, query, satisfying, leafs, all, and$1 as and, any, collectAs, collect, concatAs, concat, countIf, count, countsAs, counts, foldl, foldr, forEach, forEachWith, isDefined$1 as isDefined, isEmpty, joinAs, join, maximumBy, maximum, meanAs, mean, minimumBy, minimum, none, or$1 as or, productAs, product, selectAs, select, sumAs, sum, get, lens, setter, foldTraversalLens, defaults, define, normalize, required, reread, rewrite, append, filter, find, findWith, first, index, last, prefix, slice, suffix, pickIn, prop, props, propsOf, removable, valueOr, pick, replace$1 as replace, getInverse, iso, array, inverse, complement, identity, indexed, is, keyed, reverse, singleton, uri, uriComponent, json, dropPrefix, dropSuffix, replaces, split, uncouple, add$1 as add, divide, multiply$1 as multiply, negate$1 as negate, subtract, pointer };
export { seemsArrayLike, Identity, IdentityAsync, Constant, toFunction, assign$1 as assign, modify, modifyAsync, remove, set, transform, transformAsync, traverse, compose, flat, lazy, choices, choose, cond, condOf, ifElse, iftes, orElse, chain, choice, unless, when, optional, zero, assignOp, modifyOp, setOp, removeOp, log, seq, branchOr, branch, branches, elems, elemsTotal, entries, keys$1 as keys, matches, values, children, flatten, query, satisfying, leafs, all, and$1 as and, any, collectAs, collect, concatAs, concat, countIf, count, countsAs, counts, foldl, foldr, forEach, forEachWith, isDefined$1 as isDefined, isEmpty, joinAs, join, maximumBy, maximum, meanAs, mean, minimumBy, minimum, none, or$1 as or, productAs, product, selectAs, select, sumAs, sum, get, lens, setter, foldTraversalLens, defaults, define, normalize, required, reread, rewrite, append, filter, find, findWith, first, index, last, prefix, slice, suffix, pickIn, prop, props, propsOf, removable, valueOr, pick, replace$1 as replace, getInverse, iso, array, inverse, complement, identity, is, indexed, reverse, singleton, disjoint, keyed, uri, uriComponent, json, dropPrefix, dropSuffix, replaces, split, uncouple, add$1 as add, divide, multiply$1 as multiply, negate$1 as negate, subtract, pointer };

@@ -212,2 +212,8 @@ (function (global, factory) {

function freezeObjectOfObjects(xs) {
if (xs) for (var k in xs) {
I.freeze(xs[k]);
}return I.freeze(xs);
}
var isArrayOrPrimitive = function isArrayOrPrimitive(x) {

@@ -961,2 +967,39 @@ return !(x instanceof Object) || I.isArray(x);

var disjointBwd = /*#__PURE__*/(res(freezeObjectOfObjects))(function (groupOf, x) {
if (x instanceof Object) {
var y = {};
x = toObject(x);
for (var key in x) {
var group = groupOf(key);
var g = y[group];
if (undefined === g) y[group] = g = {};
g[key] = x[key];
}
return y;
}
});
var disjointFwd = /*#__PURE__*/(res(res(I.freeze)))(function (groupOf) {
return function (y) {
if (y instanceof Object) {
var x = {};
y = toObject(y);
for (var group in y) {
var g = y[group];
if (g instanceof Object) {
g = toObject(g);
for (var key in g) {
if (groupOf(key) === group) {
x[key] = g[key];
}
}
}
}
return x;
}
};
});
//
var eitherU = function eitherU(t, e) {

@@ -1759,2 +1802,12 @@ return function (c) {

var is = function is(v) {
return isoU(function (x) {
return I.acyclicEqualsU(v, x);
}, function (b) {
return true === b ? v : void 0;
});
};
// Array isomorphisms
var indexed = /*#__PURE__*/isoU( /*#__PURE__*/expect(seemsArrayLike, /*#__PURE__*/(res(freezeArrayOfObjects))(function (xs) {

@@ -1786,10 +1839,2 @@ var n = xs.length;

var is = function is(v) {
return isoU(function (x) {
return I.acyclicEqualsU(v, x);
}, function (b) {
return true === b ? v : void 0;
});
};
var reverse = /*#__PURE__*/isoU(rev, rev);

@@ -1803,2 +1848,11 @@

// Object isomorphisms
var disjoint = function disjoint(groupOf) {
return function (x, i, F, xi2yF) {
var fwd = disjointFwd(groupOf);
return F.map(fwd, xi2yF(disjointBwd(groupOf, x), i));
};
};
// Standard isomorphisms

@@ -2024,7 +2078,8 @@

exports.identity = identity;
exports.is = is;
exports.indexed = indexed;
exports.is = is;
exports.keyed = keyed;
exports.reverse = reverse;
exports.singleton = singleton;
exports.disjoint = disjoint;
exports.keyed = keyed;
exports.uri = uri;

@@ -2031,0 +2086,0 @@ exports.uriComponent = uriComponent;

2

dist/partial.lenses.min.js

@@ -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,r){"use strict";function t(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 u(n,t,u,e){var i=n.map,o=n.ap,c=n.of(T),f=u.length;if(i===r.sndU){for(var a=0;a<f;++a)c=o(c,t(u[a],a));return c}for(var v=T(e),s=0;s<f;++s)c=o(i(v,c),t(u[s],s));return i(_,c)}function e(n,r){var t=r.length-n;if(t<2)return t?Pn(r[n]):dn;for(var u=Pn(r[n+--t]),e=function(n,r){return function(t,e){return u(t,e,n,r)}};--t;)e=Z(Pn(r[n+t]),e);var i=Pn(r[n]);return function(n,r,t,u){return i(n,r,t,e(t,u))}}function i(n){var r=function n(r,t){return n.v=t,r};return r.v=n,r}function o(n,r,t,u){for(var e,i=n.length;t<i;++t)switch(typeof(e=n[t])){case"string":r=H(u.v=e,r);break;case"number":r=V(u.v=e,r);break;case"object":r=o(e,r,0,u);break;default:r=e(r,u.v,Cn,u)}return r}function c(n,t,u,i){for(var o,c,f=n.length,a=Array(f),v=0;v<f;++v)switch(a[v]=u,typeof(o=n[v])){case"string":u=H(o,u);break;case"number":u=V(o,u);break;default:u=e(v,n)(u,n[v-1],qn,t||r.always(i)),f=v}for(f===n.length&&(u=t?t(u,n[f-1]):i);0<=--f;)u=r.isString(c=n[f])?K(c,u,a[f]):X(c,u,a[f]);return u}function f(n,t,u,e,i){var o=u.of;return o?o(n):u.map(r.always(n),e(i,t))}function a(n,r){return 1<arguments.length?un(n,r):function(r){return un(n,r)}}function v(n,r,t,u){var e=Nn(n)?n.length:0;return t.map(function(r){return X(e,r,n)},u(void 0,e))}function s(n){var r=arguments.length>1?arguments[1]:{hint:0};return function(t,u,e,i){var o=Nn(t)?t:"",c=r.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}(r,n,o);return e.map(function(n){return X(c,n,o)},i(o[c],c))}}function d(){for(var n,r=arguments.length,t={},u=0;u<r;++u)t[n=arguments[u]]=n;return ft(t)}function l(n,r){return 1<arguments.length?nn(n,r,void 0):function(r){return nn(n,r,void 0)}}var h=function(n,r){return n+r},p=function(n,r){return n*r},y=r.curry(h),g=r.curry(p),m=r.curry(function(n,r){return r/n}),b=function(n){return-n},A=r.curry(function(n,r){return r instanceof n}),j=Object.create,O=r.freeze(function(n){return r.assign(j(null),n)}(r.object0)),x=r.curry(function(n,r,t){return t.replace(n,r)}),w=function(n,t){return r.isString(n)?new RegExp(x(/[|\\{}()[\]^$+*?.]/g,"\\$&",n),t):n},U=function(n,t){return null!=t&&r.isFunction(t.then)?t.then(n):n(t)},I=function(n,r,t,u){return void 0!==u?Math.min(Math.max(n,u<0?r+u:u),r):t},S=function(n){return function(r){return[r,n]}},k=function(n){return function(r){return void 0!==r?r:n}},E=k(0),R=function(n){return void 0!==n?!n:n},N=function(n){return void 0!==n?[n]:n},q=function(n,r){return function(t){return n(t)?r(t):void 0}},M=function(n){return!(n instanceof Object)||r.isArray(n)},C=(0,r.id)(function(n){if(Nn(n)){for(var r=n.length,t=Array(r),u=0;r;)t[u++]=n[--r];return t}}),P=(0,r.id)(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}),z=function(n,r){return Nn(r)?P(n,r,void 0):void 0},D=(0,r.id)(function(n,r,t,u,e){for(;u<e;)n[r++]=t[u++];return n}),W={map:r.sndU,of:function(){},ap:function(n,r){return void 0!==n?n:r}},L=function(n,t){return{map:r.sndU,ap:n,of:r.always(t)}},$=L(h,0),B=function(n){return r.curry(function(r,t,u){var e=void 0,i=void 0;return F(W,function(t,u){var o=r(t,u);void 0===o||void 0!==i&&!n(o,i)||(e=t,i=o)},t,u),e})},F=function(n,r,t,u){return Pn(t)(u,void 0,n,r)},J=function(n,t){return r.curryN(4,function(r,u){return u=t(u),function(t,e){return n(F(u,r,t,e))}})},T=function(n){return function(r){return function(t){return n!==t?[t,r]:r}}},_=(0,r.id)(function(n){for(var r=[];T!==n;)r.push(n[0]),n=n[1];return r.reverse()}),G=function(n,r){return function(t){return function(u,e,i,o){return i.map(function(n){return r(t,n,u)},o(n(t,u),t))}}},H=function(n,r){return r instanceof Object?r[n]:void 0},K=(0,r.id)(function(n,t,u){return void 0!==t?r.assocPartialU(n,t,u):r.dissocPartialU(n,u)||r.object0}),Q=G(H,K),V=function(n,r){return Nn(r)?r[n]:void 0},X=(0,r.id)(function(n,r,t){Nn(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 D(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}),Y=G(V,X),Z=function(n,r){return function(t,u){return u=r(t,u),function(r,e){return n(r,e,t,u)}}},nn=(0,r.id)(function(n,t,u){switch(typeof n){case"string":return K(n,t,u);case"number":return X(n,t,u);case"object":return c(n,0,u,t);default:return 4===n.length?n(u,void 0,qn,r.always(t)):u}}),rn=(0,r.id)(function(n,r,t){switch(typeof n){case"string":return K(n,r(H(n,t),n),t);case"number":return X(n,r(V(n,t),n),t);case"object":return c(n,r,t);default:return 4===n.length?n(t,void 0,qn,r):(r(n(t,void 0),void 0),t)}}),tn=function(n,r,t){return u=Pn(n)(t,void 0,Mn,r),Promise.resolve(u);var u},un=(0,r.id)(function(n,t){switch(typeof n){case"string":return H(n,t);case"number":return V(n,t);case"object":for(var u,e=0,c=n.length;e<c;++e)switch(typeof(u=n[e])){case"string":t=H(u,t);break;case"number":t=V(u,t);break;default:return o(n,t,e,i(n[e-1]))}return t;default:return n(t,void 0,Cn,r.id)}}),en=function(n,r){return function(t,u,e,i){return e.map(function(n){return r(n,t,u)},i(n(t,u),u))}},on=function(n,r){return function(t,u,e,i){return e.map(r,i(n(t),u))}},cn=function(n,t){return on(q(r.isString,n),q(r.isString,t))},fn=function(n,t){return on(q(r.isNumber,n),q(r.isNumber,t))},an=(0,r.id)(function(n,t){var u=void 0;for(var e in n){var i=n[e],o=r.isObject(i)?an(i,t):un(i,t);void 0!==o&&(u||(u={}),u[e]=o)}return u}),vn=(0,r.id)(function(n,t,u){for(var e in n){var i=t&&t[e],o=n[e];u=r.isObject(o)?vn(o,i,u):nn(o,i,u)}return u}),sn=function(n){return r.constructorOf(n)!==Object?r.toObject(n):n},dn=function(n,r,t,u){return u(n,r)},ln=(0,r.id)(function(n){return function(r){for(var t={},u=n.length;u--;){var e=r[0];void 0!==e&&(t[n[u]]=e),r=r[1]}return t}}),hn=(0,r.id)(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 d=o;for(var l in t)if(void 0===(d&&r[l])){o=1;var h=t[l],p=n(h,l,e,i);void 0!==p?(f[l]=p,c&&(c=h===p&&(0!==h||1/h==1/p)||h!=h&&p!=p)):c=!1}return o?c&&t===u?u:f:u}),pn=function(n,t){return function(u,e,i,o){var c=u instanceof Object?sn(u):r.object0;if(qn===i)return hn(n,t,c,u,i,o);if(W!==i){var f=i.map,a=i.ap,v=i.of,s=v(S),d=[];for(var l in t)d.push(l),s=a(f(S,s),t[l](c[l],l,i,o));var h=!!d.length||void 0;for(var p in c)void 0===(h&&t[p])&&(d.push(p),s=a(f(S,s),n(c[p],p,i,o)));return d.length?f(ln(d),s):v(u)}for(var y in t){var g=t[y](c[y],y,i,o);if(void 0!==g)return g}for(var m in c)if(void 0===t[m]){var b=n(c[m],m,i,o);if(void 0!==b)return b}}},yn=function(n,t,u){return r.acyclicEqualsU(u,n)?t:u},gn=(0,r.id)(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)}),mn=function(n){return n[0]},bn=function(n){return n.index},An=function(n){return bn(n)+n[0].length},jn=(0,r.id)(function(n,r){var t=r.lastIndex;r.lastIndex=An(n);var u=r.exec(n.input);return r.lastIndex=t,u&&u[0]&&u}),On=function(n){return function(r){return function(t){return[n,t,r]}}},xn=on(q(A(Object),(0,r.id)(function(n){n=sn(n);var r=[];for(var t in n)r.push([t,n[t]]);return r})),q(r.isArray,(0,r.id)(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}))),wn=function(n,r){return function(t){return function(u,e,i,o){return(t(u,e)?n:r)(u,e,i,o)}}},Un=function(n,r){return r=Pn(r),n=Pn(n),function(t,u,e,i){return(Rr(r,t)?r:n)(t,u,e,i)}},In=function(n,r,e,i){return e===qn?P(i,n,void 0):e===W?t(i,n):u(e,i,n,void 0)},Sn=function(n,r){return function(t,u,e,i){return e.chain(function(n){return r(n,u,e,i)},n(t,u,e,i))}},kn=function(n,r){return[r,it(n)]},En=r.always(f),Rn=function(n,r,t){return function(u,e){return n(u,e)?r:t(u,e)}},Nn=function(n){return n instanceof Object&&(n=n.length)===n>>0&&0<=n||r.isString(n)},qn=(0,r.id)({map:r.applyU,of:r.id,ap:r.applyU,chain:r.applyU}),Mn=(0,r.id)({map:U,ap:function(n,r){return U(function(r){return U(function(n){return n(r)},n)},r)},of:r.id,chain:U}),Cn=(0,r.id)({map:r.sndU}),Pn=(0,r.id)(function(n){switch(typeof n){case"string":return Q(n);case"number":return Y(n);case"object":return e(0,n);default:return 4===n.length?n:(t=n,function(n,u,e,i){return e.map(r.always(n),i(t(n,u),u))})}var t}),zn=r.curry(function(n,r,t){return nn([n,ct(r)],r,t)}),Dn=r.curry(rn),Wn=r.curry(tn),Ln=r.curry(function(n,r){return nn(n,void 0,r)}),$n=r.curry(nn),Bn=r.curry(function(n,t){return rn(n,r.id,t)}),Fn=r.curry(function(n,t){return tn(n,r.id,t)}),Jn=r.curry(F),Tn=function(n){return function(r,t,u,e){return Pn(n(r,t))(r,t,u,e)}},_n=(0,r.id)(function(){for(var n=arguments.length,r=nr;n--;){var t=arguments[n];r=t.length<2?Pn(t[0]):wn(Pn(t[1]),r)(t[0])}return r}),Gn=(0,r.id)(function(n){n=Pn(n);for(var t=En,u=arguments.length;--u;){var e=arguments[u];t=1===e.length?r.always(Pn(e[0])):Rn(e[0],Pn(e[1]),t)}return function(r,u,e,i){return n(r,u,Cn,t)(r,u,e,i)}}),Hn=r.curry(function(n,r,t){return wn(Pn(r),Pn(t))(n)}),Kn=(0,r.id)(function(n,r){for(var t=arguments.length,u=1&t?Pn(arguments[--t]):nr;0<=(t-=2);)u=wn(Pn(arguments[t+1]),u)(arguments[t]);return u}),Qn=r.curry(Un),Vn=r.curry(function(n,r){return[r,Tn(function(r,t){return void 0!==r?n(r,t):nr})]}),Xn=wn(f,dn),Yn=wn(dn,f),Zn=Yn(r.isDefined),nr=function(n,r,t,u){return f(n,r,t,u)},rr=function(n){return function(r,t,u,e){return f(n,t,u,e,n)}},tr=rr(),ur=(0,r.id)(function(){var n=arguments.length,r=nr;if(n)for(r=Pn(arguments[--n]);n;)r=Sn(Pn(arguments[--n]),r);return r}),er=(0,r.id)(r.curryN(2,function(n){return n=Pn(n),function(t){return function n(t,u){var e=j(null);for(var i in u){var o=u[i];e[i]=r.isObject(o)?n(t,o):Pn(o)}return pn(t,e)}(n,t)}})),ir=er(nr),or=(0,r.id)(function(n,r,t,u){return Nn(n)?In(n,0,t,u):t.of(n)}),cr=Pn([xn,or]),fr=Pn([xn,or,0]),ar=(0,r.id)(function(n){return function(t,u,e,i){if(r.isString(t)){var o=e.map;if(n.global){var c=[""];return c.input=t,c.index=0,W===e?function(n,r,t){for(;t=jn(t,r);){var u=n(mn(t),bn(t));if(void 0!==u)return u}}(i,n,c):o((v=t,function(n){for(var r="",t=0,u=function(n){for(var r=[];On!==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+=v.slice(t,bn(i));var o=u[e+1];void 0!==o&&(r+=o),t=An(i)}return r+v.slice(t)}),function(n,r,t,u,e,i){for(var o=t(On);i=jn(i,e);)o=r(r(n(On,t(i)),o),u(mn(i),bn(i)));return o}(o,e.ap,e.of,i,n,c))}var a=t.match(n);if(a)return o(function(r){return t.replace(n,void 0!==r?r:"")},i(a[0],bn(a)))}var v;return f(t,void 0,e,i)}}),vr=(0,r.id)(pn(dn,O)),sr=(0,r.id)(function(n,t,u,e){return r.isArray(n)?In(n,0,u,e):r.isObject(n)?vr(n,t,u,e):u.of(n)}),dr=(0,r.id)(function(n,t,u,e){return function n(t,i){return r.isArray(t)?In(t,0,u,n):void 0!==t?e(t,i):u.of(t)}(n,t)}),lr=function(n){return function(r,t,u,e){return function r(t,i){return n(t,i)?e(t,i):sr(t,i,u,r)}(r,t)}},hr=lr(function(n){return void 0!==n&&!r.isArray(n)&&!r.isObject(n)}),pr=r.curry(function(n,r,t){return!F(W,function(r,t){if(!n(r,t))return!0},r,t)}),yr=pr(r.id),gr=r.curry(function(n,r,t){return!!F(W,function(r,t){if(n(r,t))return!0},r,t)}),mr=(0,r.curry)(function(n,r,t){var u=[];return F(W,function(r,t){var e=n(r,t);void 0!==e&&u.push(e)},r,t),u}),br=mr(r.id),Ar=J(r.id,function(n){return L(n.concat,n.empty())}),jr=Ar(r.id),Or=r.curry(function(n,r,t){return F($,function(r,t){return n(r,t)?1:0},r,t)}),xr=Or(r.isDefined),wr=r.curry(function(n,r,t){var u=new Map;return F(W,function(r,t){var e=n(r,t),i=u.get(e);u.set(e,void 0!==i?i+1:1)},r,t),u}),Ur=wr(r.id),Ir=r.curry(function(n,r,t,u){return F(W,function(t,u){r=n(r,t,u)},t,u),r}),Sr=r.curry(function(n,r,t,u){var e=[],i=[];F(W,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}),kr=r.curry(function(n,r,t){return F(W,function(r,t){n(r,t)},r,t)}),Er=r.curry(function(n,r,t,u){var e=n();return F(W,function(n,t){r(e,n,t)},t,u),e}),Rr=r.curry(function(n,t){return void 0!==F(W,r.id,n,t)}),Nr=r.curry(function(n,t){return!F(W,r.always(!0),n,t)}),qr=J(function(n){return void 0!==n?String(n):""},(0,r.id)(function(n){return L(function(r,t){return void 0!==r?void 0!==t?r+n+t:r:t})})),Mr=qr(r.id),Cr=B(function(n,r){return n>r}),Pr=Cr(r.id),zr=r.curry(function(n,r,t){var u=0,e=0;return F(W,function(r,t){var i=n(r,t);void 0!==i&&(e+=1,u+=i)},r,t),u/e}),Dr=zr(r.id),Wr=B(function(n,r){return n<r}),Lr=Wr(r.id),$r=r.curry(function(n,r,t){return!F(W,function(r,t){if(n(r,t))return!0},r,t)}),Br=gr(r.id),Fr=Jn(L(p,1)),Jr=Fr(k(1)),Tr=Jn(W),_r=Tr(r.id),Gr=Jn($),Hr=Gr(E),Kr=r.curry(en),Qr=Kr(r.id),Vr=r.curry(function(n,r){return en(n(r),$n(r))}),Xr=(0,r.id)(function(n){var r=k(n);return function(t,u,e,i){return e.map(r,i(void 0!==t?t:n,u))}}),Yr=(0,r.id)(function(n){return at(n,void 0)}),Zr=function(n){return function(r,t,u,e){return e(void 0!==r?n(r,t):r,t)}},nt=function(n){return function(r,t,u,e){return u.map(function(r){return void 0!==r?n(r,t):r},e(r,t))}},rt=(0,r.id)(function(n){return function(t,u,e,i){var o=void 0,c=r.array0;return Nn(t)&&gn(n,t,o=[],c=[]),e.map(function(n){var r=n?n.length:0,t=c.length,u=r+t;return u===t?c:D(D(Array(u),0,n,0,r),r,c,0,t)},i(o,u))}}),tt=r.id,ut=Tn(function(n){return Nn(n)&&n.length?n.length-1:0}),et=(0,r.curry)(function(n,r){return function(t,u,e,i){var o=Nn(t),c=o&&t.length,f=I(0,c,0,n),a=I(f,c,c,r);return e.map(function(n){var r=n?n.length:0,u=f+r;return D(D(D(Array(c-a+u),0,t,0,f),f,n,0,r),u,t,a,c)},i(o?D(Array(Math.max(0,a-f)),0,t,f,a):void 0,u))}}),it=function(n){return r.isObject(n)?ft(Dn(vr,kn,n)):n},ot=r.id,ct=function(n){return d.apply(null,r.keys(n))},ft=(0,r.id)(function(n){return function(r,t,u,e){return u.map(function(t){return vn(n,t,r)},e(an(n,r),t))}}),at=r.curry(function(n,r){function t(t){return yn(r,n,t)}return function(u,e,i,o){return i.map(t,o(yn(n,r,u),e))}}),vt=r.curry(on),st=on(R,R),dt=on(q(Nn,(0,r.id)(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u)t[u]=[u,n[u]];return t})),q(r.isArray,(0,r.id)(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}))),lt=on(C,C),ht=(0,r.id)(function(n,t,u,e){return u.map(N,e((n instanceof Object||r.isString(n))&&1===n.length?n[0]:void 0,t))}),pt=cn(decodeURI,encodeURI),yt=cn(decodeURIComponent,encodeURIComponent),gt=(0,r.id)(function(n){var t=n||r.object0,u=t.reviver,e=t.replacer,i=t.space;return on(q(r.isString,function(n){return JSON.parse(n,u)}),q(r.isDefined,function(n){return JSON.stringify(n,e,i)}))}),mt=r.curry(function(n,r){return cn(x(w(n,"g"),r),x(w(r,"g"),n))}),bt=(0,r.id)(function(n){var t=arguments.length>1?arguments[1]:n;return on(q(r.isString,function(n){return n.split(t)}),q(r.isArray,function(r){return r.join(n)}))}),At=(0,r.id)(function(n){var t=w(arguments.length>1?arguments[1]:n,"");return on(q(r.isString,function(n){var r=t.exec(n);return r?[n.slice(0,bn(r)),n.slice(An(r))]:[n,""]}),function(t){if(r.isArray(t)&&2===t.length){var u=t[0],e=t[1];return e?u+n+e:u}})}),jt=fn(b,b);n.seemsArrayLike=Nn,n.Identity=qn,n.IdentityAsync=Mn,n.Constant=Cn,n.toFunction=Pn,n.assign=zn,n.modify=Dn,n.modifyAsync=Wn,n.remove=Ln,n.set=$n,n.transform=Bn,n.transformAsync=Fn,n.traverse=Jn,n.compose=function(){var n=arguments.length;if(n<2)return n?arguments[0]:dn;for(var r=Array(n);n--;)r[n]=arguments[n];return r},n.flat=function(){for(var n=[dr],r=0,t=arguments.length;r<t;++r)n.push(arguments[r],dr);return n},n.lazy=function(n){function r(n,r,u,e){return t(n,r,u,e)}var t=function(u,e,i,o){return(t=Pn(n(r)))(u,e,i,o)};return r},n.choices=function(n){for(var r=arguments.length,t=Array(r>1?r-1:0),u=1;u<r;u++)t[u-1]=arguments[u];return t.length?Un(t.reduceRight(Un),n):n},n.choose=Tn,n.cond=_n,n.condOf=Gn,n.ifElse=Hn,n.iftes=Kn,n.orElse=Qn,n.chain=Vn,n.choice=function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduceRight(Un,nr)},n.unless=Xn,n.when=Yn,n.optional=Zn,n.zero=nr,n.assignOp=function(n){return[ct(n),rr(n)]},n.modifyOp=function(n){return function(r,t,u,e){return f(r=n(r,t),t,u,e,r)}},n.setOp=rr,n.removeOp=tr,n.log=function(){var n=arguments,t=r.curry(function(r,t){return console.log.apply(console,D([],0,n,0,n.length).concat([r,t])),t});return on(t("get"),t("set"))},n.seq=ur,n.branchOr=er,n.branch=ir,n.branches=function(){for(var n=arguments.length,r={},t=0;t<n;++t)r[arguments[t]]=dn;return ir(r)},n.elems=or,n.elemsTotal=function(n,r,e,i){return Nn(n)?e===qn?P(i,n,P):e===W?t(i,n):u(e,i,n,u):e.of(n)},n.entries=cr,n.keys=fr,n.matches=ar,n.values=vr,n.children=sr,n.flatten=dr,n.query=function(){for(var n=[],r=0,t=arguments.length;r<t;++r){var u=Pn(arguments[r]);n.push(lr(Rr(u)),u)}return n},n.satisfying=lr,n.leafs=hr,n.all=pr,n.and=yr,n.any=gr,n.collectAs=mr,n.collect=br,n.concatAs=Ar,n.concat=jr,n.countIf=Or,n.count=xr,n.countsAs=wr,n.counts=Ur,n.foldl=Ir,n.foldr=Sr,n.forEach=kr,n.forEachWith=Er,n.isDefined=Rr,n.isEmpty=Nr,n.joinAs=qr,n.join=Mr,n.maximumBy=Cr,n.maximum=Pr,n.meanAs=zr,n.mean=Dr,n.minimumBy=Wr,n.minimum=Lr,n.none=$r,n.or=Br,n.productAs=Fr,n.product=Jr,n.selectAs=Tr,n.select=_r,n.sumAs=Gr,n.sum=Hr,n.get=a,n.lens=Kr,n.setter=Qr,n.foldTraversalLens=Vr,n.defaults=function(n){function r(r){return yn(n,void 0,r)}return function(t,u,e,i){return e.map(r,i(void 0!==t?t:n,u))}},n.define=Xr,n.normalize=function(n){return[Zr(n),nt(n)]},n.required=Yr,n.reread=Zr,n.rewrite=nt,n.append=v,n.filter=rt,n.find=s,n.findWith=function(n){var r=Pn(n),t=Rr(r);return[arguments.length>1?s(t,arguments[1]):s(t),r]},n.first=0,n.index=tt,n.last=ut,n.prefix=function(n){return et(0,n)},n.slice=et,n.suffix=function(n){return et(0===n?1/0:n?-n:0,void 0)},n.pickIn=it,n.prop=ot,n.props=d,n.propsOf=ct,n.removable=function(){function n(n){if(!(n instanceof Object))return n;for(var t=0,e=u.length;t<e;++t)if(r.hasU(u[t],n))return n}for(var t=arguments.length,u=Array(t),e=0;e<t;e++)u[e]=arguments[e];return function(r,t,u,e){return u.map(n,e(r,t))}},n.valueOr=function(n){return function(r,t,u,e){return e(null!=r?r:n,t)}},n.pick=ft,n.replace=at,n.getInverse=l,n.iso=vt,n.array=function(n){var r=l(n),t=a(n),u=function(n){return z(r,n)};return function(n,r,e,i){return e.map(u,i(z(t,n),r))}},n.inverse=function(n){return function(r,t,u,e){return u.map(function(r){return un(n,r)},e(nn(n,r,void 0),t))}},n.complement=st,n.identity=dn,n.indexed=dt,n.is=function(n){return on(function(t){return r.acyclicEqualsU(n,t)},function(r){return!0===r?n:void 0})},n.keyed=xn,n.reverse=lt,n.singleton=ht,n.uri=pt,n.uriComponent=yt,n.json=gt,n.dropPrefix=function(n){return cn(function(r){return r.startsWith(n)?r.slice(n.length):void 0},function(r){return n+r})},n.dropSuffix=function(n){return cn(function(r){return r.endsWith(n)?r.slice(0,r.length-n.length):void 0},function(r){return r+n})},n.replaces=mt,n.split=bt,n.uncouple=At,n.add=function(n){return fn(y(n),y(-n))},n.divide=function(n){return fn(m(n),g(n))},n.multiply=function(n){return fn(g(n),m(n))},n.negate=jt,n.subtract=function(n){return fn(y(-n),y(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)?Hn(M,Number(e),e):"-"===e?Hn(M,v,e):e.replace("~1","/").replace("~0","~")}return r.length=t-1,r},Object.defineProperty(n,"__esModule",{value:!0})});
!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,b){"use strict";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(H),c=t.length;if(e===b.sndU){for(var f=0;f<c;++f)o=i(o,r(t[f],f));return o}for(var a=H(u),v=0;v<c;++v)o=i(e(a,o),r(t[v],v));return e(K,o)}function a(n,r){var t=r.length-n;if(t<2)return t?$n(r[n]):pn;for(var e=$n(r[n+--t]),i=function(t,u){return function(n,r){return e(n,r,t,u)}};--t;)i=tn($n(r[n+t]),i);var o=$n(r[n]);return function(n,r,t,u){return o(n,r,t,i(t,u))}}function o(n,r,t,u){for(var e,i=n.length;t<i;++t)switch(typeof(e=n[t])){case"string":r=V(u.v=e,r);break;case"number":r=Z(u.v=e,r);break;case"object":r=o(e,r,0,u);break;default:r=e(r,u.v,Ln,u)}return r}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=V(e,t);break;case"number":t=Z(e,t);break;default:t=a(f,n)(t,n[f-1],Dn,r||b.always(u)),o=f}for(o===n.length&&(t=r?r(t,n[o-1]):u);0<=--o;)t=b.isString(i=n[o])?X(i,t,c[o]):nn(i,t,c[o]);return t}function v(n,r,t,u,e){var i=t.of;return i?i(n):t.map(b.always(n),u(e,r))}function t(r,n){return 1<arguments.length?cn(r,n):function(n){return cn(r,n)}}function c(r,n,t,u){var e=zn(r)?r.length:0;return t.map(function(n){return nn(e,n,r)},u(void 0,e))}function f(o){var c=1<arguments.length?arguments[1]:{hint:0};return function(n,r,t,u){var e=zn(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 nn(i,n,e)},u(e[i],i))}}function r(){for(var n,r=arguments.length,t={},u=0;u<r;++u)t[n=arguments[u]]=n;return lt(t)}function s(r,n){return 1<arguments.length?un(r,n,void 0):function(n){return un(r,n,void 0)}}var d=function(n,r){return n+r},l=function(n,r){return n*r},h=b.curry(d),p=b.curry(l),y=b.curry(function(n,r){return r/n}),g=function(n){return-n},m=function(n,r){return n<r},j=function(n,r){return r<n},A=b.curry(function(n,r){return r instanceof n}),O=Object.create,x=function(n){return b.assign(O(null),n)},w=b.freeze(x(b.object0)),U=b.curry(function(n,r,t){return t.replace(n,r)}),I=function(n,r){return b.isString(n)?new RegExp(U(/[|\\{}()[\]^$+*?.]/g,"\\$&",n),r):n},S=function(n,r){return null!=r&&b.isFunction(r.then)?r.then(n):n(r)},k=function(n){return void 0!==n?String(n):""},E=function(n,r,t,u){return void 0!==u?Math.min(Math.max(n,u<0?r+u:u),r):t},R=function(r){return function(n){return[n,r]}},N=function(r){return function(n){return void 0!==n?n:r}},q=N(0),M=function(n){return void 0!==n?!n:n},C=function(n){return void 0!==n?[n]:n},P=function(r,t){return function(n){return r(n)?t(n):void 0}},z=function(n){return!(n instanceof Object)||b.isArray(n)},D=(0,b.id)(function(n){if(zn(n)){for(var r=n.length,t=Array(r),u=0;r;)t[u++]=n[--r];return t}}),W=(0,b.id)(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}),L=function(n,r){return zn(r)?W(n,r,void 0):void 0},$=(0,b.id)(function(n,r,t,u,e){for(;u<e;)n[r++]=t[u++];return n}),B={map:b.sndU,of:function(){},ap:function(n,r){return void 0!==n?n:r}},F=function(n,r){return{map:b.sndU,ap:n,of:b.always(r)}},J=F(d,0),T=function(o){return b.curry(function(u,n,r){var e=void 0,i=void 0;return _(B,function(n,r){var t=u(n,r);void 0===t||void 0!==i&&!o(t,i)||(e=n,i=t)},n,r),e})},_=function(n,r,t,u){return $n(t)(u,void 0,n,r)},G=function(e,n){return b.curryN(4,function(t,u){return u=n(u),function(n,r){return e(_(u,t,n,r))}})},H=function(t){return function(r){return function(n){return t!==n?[n,r]:r}}},K=(0,b.id)(function(n){for(var r=[];H!==n;)r.push(n[0]),n=n[1];return r.reverse()}),Q=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))}}},V=function(n,r){return r instanceof Object?r[n]:void 0},X=(0,b.id)(function(n,r,t){return void 0!==r?b.assocPartialU(n,r,t):b.dissocPartialU(n,t)||b.object0}),Y=Q(V,X),Z=function(n,r){return zn(r)?r[n]:void 0},nn=(0,b.id)(function(n,r,t){zn(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 $(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}),rn=Q(Z,nn),tn=function(e,n){return function(t,u){return u=n(t,u),function(n,r){return e(n,r,t,u)}}},un=(0,b.id)(function(n,r,t){switch(typeof n){case"string":return X(n,r,t);case"number":return nn(n,r,t);case"object":return u(n,0,t,r);default:return 4===n.length?n(t,void 0,Dn,b.always(r)):t}}),en=(0,b.id)(function(n,r,t){switch(typeof n){case"string":return X(n,r(V(n,t),n),t);case"number":return nn(n,r(Z(n,t),n),t);case"object":return u(n,r,t);default:return 4===n.length?n(t,void 0,Dn,r):(r(n(t,void 0),void 0),t)}}),on=function(n,r,t){return u=$n(n)(t,void 0,Wn,r),Promise.resolve(u);var u},cn=(0,b.id)(function(n,r){switch(typeof n){case"string":return V(n,r);case"number":return Z(n,r);case"object":for(var t,u=0,e=n.length;u<e;++u)switch(typeof(t=n[u])){case"string":r=V(t,r);break;case"number":r=Z(t,r);break;default:return o(n,r,u,((i=function n(r,t){return n.v=t,r}).v=n[u-1],i))}return r;default:return n(r,void 0,Ln,b.id)}var i}),fn=function(e,i){return function(r,t,n,u){return n.map(function(n){return i(n,r,t)},u(e(r,t),t))}},an=function(e,i){return function(n,r,t,u){return t.map(i,u(e(n),r))}},vn=function(n,r){return an(P(b.isString,n),P(b.isString,r))},sn=function(n,r){return an(P(b.isNumber,n),P(b.isNumber,r))},dn=(0,b.id)(function(n,r){var t=void 0;for(var u in n){var e=n[u],i=b.isObject(e)?dn(e,r):cn(e,r);void 0!==i&&(t||(t={}),t[u]=i)}return t}),ln=(0,b.id)(function(n,r,t){for(var u in n){var e=r&&r[u],i=n[u];t=b.isObject(i)?ln(i,e,t):un(i,e,t)}return t}),hn=function(n){return b.constructorOf(n)!==Object?b.toObject(n):n},pn=function(n,r,t,u){return u(n,r)},yn=(0,b.id)(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}}),gn=(0,b.id)(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 d=o;for(var l in t)if(void 0===(d&&r[l])){o=1;var h=t[l],p=n(h,l,e,i);void 0!==p?(f[l]=p,c&&(c=h===p&&(0!==h||1/h==1/p)||h!=h&&p!=p)):c=!1}return o?c&&t===u?u:f:u}),mn=function(g,m){return function(n,r,t,u){var e=n instanceof Object?hn(n):b.object0;if(Dn===t)return gn(g,m,e,n,t,u);if(B!==t){var i=t.map,o=t.ap,c=t.of,f=c(R),a=[];for(var v in m)a.push(v),f=o(i(R,f),m[v](e[v],v,t,u));var s=!!a.length||void 0;for(var d in e)void 0===(s&&m[d])&&(a.push(d),f=o(i(R,f),g(e[d],d,t,u)));return a.length?i(yn(a),f):c(n)}for(var l in m){var h=m[l](e[l],l,t,u);if(void 0!==h)return h}for(var p in e)if(void 0===m[p]){var y=g(e[p],p,t,u);if(void 0!==y)return y}}},bn=function(n,r,t){return b.acyclicEqualsU(t,n)?r:t},jn=(0,b.id)(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)}),An=function(n){return n[0]},On=function(n){return n.index},xn=function(n){return On(n)+n[0].length},wn=(0,b.id)(function(n,r){var t=r.lastIndex;r.lastIndex=xn(n);var u=r.exec(n.input);return r.lastIndex=t,u&&u[0]&&u}),Un=function(t){return function(r){return function(n){return[t,n,r]}}},In=an(P(A(Object),(0,b.id)(function(n){n=hn(n);var r=[];for(var t in n)r.push([t,n[t]]);return r})),P(b.isArray,(0,b.id)(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}))),Sn=(0,b.id)(function(n,r){if(r instanceof Object){var t={};for(var u in r=hn(r)){var e=n(u),i=t[e];void 0===i&&(t[e]=i={}),i[u]=r[u]}return t}}),kn=(0,b.id)(function(i){return function(n){if(n instanceof Object){var r={};for(var t in n=hn(n)){var u=n[t];if(u instanceof Object)for(var e in u=hn(u))i(e)===t&&(r[e]=u[e])}return r}}}),En=function(i,o){return function(e){return function(n,r,t,u){return(e(n,r)?i:o)(n,r,t,u)}}},Rn=function(e,i){return i=$n(i),e=$n(e),function(n,r,t,u){return(Pr(i,n)?i:e)(n,r,t,u)}},Nn=function(n,r,t,u){return t===Dn?W(u,n,void 0):t===B?e(u,n):i(t,u,n,void 0)},qn=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))}},Mn=function(n,r){return[r,vt(n)]},Cn=b.always(v),Pn=function(t,u,e){return function(n,r){return t(n,r)?u:e(n,r)}},zn=function(n){return n instanceof Object&&(n=n.length)===n>>0&&0<=n||b.isString(n)},Dn=(0,b.id)({map:b.applyU,of:b.id,ap:b.applyU,chain:b.applyU}),Wn=(0,b.id)({map:S,ap:function(n,r){return S(function(r){return S(function(n){return n(r)},n)},r)},of:b.id,chain:S}),Ln=(0,b.id)({map:b.sndU}),$n=(0,b.id)(function(n){switch(typeof n){case"string":return Y(n);case"number":return rn(n);case"object":return a(0,n);default:return 4===n.length?n:(e=n,function(n,r,t,u){return t.map(b.always(n),u(e(n,r),r))})}var e}),Bn=b.curry(function(n,r,t){return un([n,dt(r)],r,t)}),Fn=b.curry(en),Jn=b.curry(on),Tn=b.curry(function(n,r){return un(n,void 0,r)}),_n=b.curry(un),Gn=b.curry(function(n,r){return en(n,b.id,r)}),Hn=b.curry(function(n,r){return on(n,b.id,r)}),Kn=b.curry(_),Qn=function(e){return function(n,r,t,u){return $n(e(n,r))(n,r,t,u)}},Vn=(0,b.id)(function(){for(var n=arguments.length,r=ir;n--;){var t=arguments[n];r=t.length<2?$n(t[0]):En($n(t[1]),r)(t[0])}return r}),Xn=(0,b.id)(function(e){e=$n(e);for(var i=Cn,n=arguments.length;--n;){var r=arguments[n];i=1===r.length?b.always($n(r[0])):Pn(r[0],$n(r[1]),i)}return function(n,r,t,u){return e(n,r,Ln,i)(n,r,t,u)}}),Yn=b.curry(function(n,r,t){return En($n(r),$n(t))(n)}),Zn=(0,b.id)(function(n,r){for(var t=arguments.length,u=1&t?$n(arguments[--t]):ir;0<=(t-=2);)u=En($n(arguments[t+1]),u)(arguments[t]);return u}),nr=b.curry(Rn),rr=b.curry(function(t,n){return[n,Qn(function(n,r){return void 0!==n?t(n,r):ir})]}),tr=En(v,pn),ur=En(pn,v),er=ur(b.isDefined),ir=function(n,r,t,u){return v(n,r,t,u)},or=function(e){return function(n,r,t,u){return v(e,r,t,u,e)}},cr=or(),fr=(0,b.id)(function(){var n=arguments.length,r=ir;if(n)for(r=$n(arguments[--n]);n;)r=qn($n(arguments[--n]),r);return r}),ar=(0,b.id)(b.curryN(2,function(r){return r=$n(r),function(n){return function n(r,t){var u=O(null);for(var e in t){var i=t[e];u[e]=b.isObject(i)?n(r,i):$n(i)}return mn(r,u)}(r,n)}})),vr=ar(ir),sr=(0,b.id)(function(n,r,t,u){return zn(n)?Nn(n,0,t,u):t.of(n)}),dr=$n([In,sr]),lr=$n([In,sr,0]),hr=(0,b.id)(function(f){return function(r,n,t,u){if(b.isString(r)){var e=t.map;if(f.global){var i=[""];return i.input=r,i.index=0,B===t?function(n,r,t){for(;t=wn(t,r);){var u=n(An(t),On(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=[];Un!==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,On(i));var o=u[e+1];void 0!==o&&(r+=o),t=xn(i)}return r+c.slice(t)}),function(n,r,t,u,e,i){for(var o=t(Un);i=wn(i,e);)o=r(r(n(Un,t(i)),o),u(An(i),On(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],On(o)))}var c;return v(r,void 0,t,u)}}),pr=(0,b.id)(mn(pn,w)),yr=(0,b.id)(function(n,r,t,u){return b.isArray(n)?Nn(n,0,t,u):b.isObject(n)?pr(n,r,t,u):t.of(n)}),gr=(0,b.id)(function(n,r,u,e){return function n(r,t){return b.isArray(r)?Nn(r,0,u,n):void 0!==r?e(r,t):u.of(r)}(n,r)}),mr=function(i){return function(n,r,u,e){return function n(r,t){return i(r,t)?e(r,t):yr(r,t,u,n)}(n,r)}},br=mr(function(n){return void 0!==n&&!b.isArray(n)&&!b.isObject(n)}),jr=b.curry(function(t,n,r){return!_(B,function(n,r){if(!t(n,r))return!0},n,r)}),Ar=jr(b.id),Or=b.curry(function(t,n,r){return!!_(B,function(n,r){if(t(n,r))return!0},n,r)}),xr=(0,b.curry)(function(u,n,r){var e=[];return _(B,function(n,r){var t=u(n,r);void 0!==t&&e.push(t)},n,r),e}),wr=xr(b.id),Ur=G(b.id,function(n){return F(n.concat,n.empty())}),Ir=Ur(b.id),Sr=b.curry(function(t,n,r){return _(J,function(n,r){return t(n,r)?1:0},n,r)}),kr=Sr(b.isDefined),Er=b.curry(function(e,n,r){var i=new Map;return _(B,function(n,r){var t=e(n,r),u=i.get(t);i.set(t,void 0!==u?u+1:1)},n,r),i}),Rr=Er(b.id),Nr=b.curry(function(t,u,n,r){return _(B,function(n,r){u=t(u,n,r)},n,r),u}),qr=b.curry(function(n,r,t,u){var e=[],i=[];_(B,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}),Mr=b.curry(function(t,n,r){return _(B,function(n,r){t(n,r)},n,r)}),Cr=b.curry(function(n,t,r,u){var e=n();return _(B,function(n,r){t(e,n,r)},r,u),e}),Pr=b.curry(function(n,r){return void 0!==_(B,b.id,n,r)}),zr=b.curry(function(n,r){return!_(B,b.always(!0),n,r)}),Dr=G(k,(0,b.id)(function(t){return F(function(n,r){return void 0!==n?void 0!==r?n+t+r:n:r})})),Wr=Dr(b.id),Lr=T(j),$r=Lr(b.id),Br=b.curry(function(u,n,r){var e=0,i=0;return _(B,function(n,r){var t=u(n,r);void 0!==t&&(i+=1,e+=t)},n,r),e/i}),Fr=Br(b.id),Jr=T(m),Tr=Jr(b.id),_r=b.curry(function(t,n,r){return!_(B,function(n,r){if(t(n,r))return!0},n,r)}),Gr=Or(b.id),Hr=Kn(F(l,1)),Kr=Hr(N(1)),Qr=Kn(B),Vr=Qr(b.id),Xr=Kn(J),Yr=Xr(q),Zr=b.curry(fn),nt=Zr(b.id),rt=b.curry(function(n,r){return fn(n(r),_n(r))}),tt=(0,b.id)(function(e){var i=N(e);return function(n,r,t,u){return t.map(i,u(void 0!==n?n:e,r))}}),ut=(0,b.id)(function(n){return ht(n,void 0)}),et=function(e){return function(n,r,t,u){return u(void 0!==n?e(n,r):n,r)}},it=function(e){return function(n,r,t,u){return t.map(function(n){return void 0!==n?e(n,r):n},u(n,r))}},ot=(0,b.id)(function(o){return function(n,r,t,u){var e=void 0,i=b.array0;return zn(n)&&jn(o,n,e=[],i=[]),t.map(function(n){var r=n?n.length:0,t=i.length,u=r+t;return u===t?i:$($(Array(u),0,n,0,r),r,i,0,t)},u(e,r))}}),ct=b.id,ft=Qn(function(n){return zn(n)&&n.length?n.length-1:0}),at=(0,b.curry)(function(f,a){return function(u,n,r,t){var e=zn(u),i=e&&u.length,o=E(0,i,0,f),c=E(o,i,i,a);return r.map(function(n){var r=n?n.length:0,t=o+r;return $($($(Array(i-c+t),0,u,0,o),o,n,0,r),t,u,c,i)},t(e?$(Array(Math.max(0,c-o)),0,u,o,c):void 0,n))}}),vt=function(n){return b.isObject(n)?lt(Fn(pr,Mn,n)):n},st=b.id,dt=function(n){return r.apply(null,b.keys(n))},lt=(0,b.id)(function(e){return function(r,n,t,u){return t.map(function(n){return ln(e,n,r)},u(dn(e,r),n))}}),ht=b.curry(function(e,i){function o(n){return bn(i,e,n)}return function(n,r,t,u){return t.map(o,u(bn(e,i,n),r))}}),pt=b.curry(an),yt=an(M,M),gt=an(P(zn,(0,b.id)(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u)t[u]=[u,n[u]];return t})),P(b.isArray,(0,b.id)(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}))),mt=an(D,D),bt=(0,b.id)(function(n,r,t,u){return t.map(C,u((n instanceof Object||b.isString(n))&&1===n.length?n[0]:void 0,r))}),jt=vn(decodeURI,encodeURI),At=vn(decodeURIComponent,encodeURIComponent),Ot=(0,b.id)(function(n){var r=n||b.object0,t=r.reviver,u=r.replacer,e=r.space;return an(P(b.isString,function(n){return JSON.parse(n,t)}),P(b.isDefined,function(n){return JSON.stringify(n,u,e)}))}),xt=b.curry(function(n,r){return vn(U(I(n,"g"),r),U(I(r,"g"),n))}),wt=(0,b.id)(function(r){var t=1<arguments.length?arguments[1]:r;return an(P(b.isString,function(n){return n.split(t)}),P(b.isArray,function(n){return n.join(r)}))}),Ut=(0,b.id)(function(u){var t=I(1<arguments.length?arguments[1]:u,"");return an(P(b.isString,function(n){var r=t.exec(n);return r?[n.slice(0,On(r)),n.slice(xn(r))]:[n,""]}),function(n){if(b.isArray(n)&&2===n.length){var r=n[0],t=n[1];return t?r+u+t:r}})}),It=sn(g,g);n.seemsArrayLike=zn,n.Identity=Dn,n.IdentityAsync=Wn,n.Constant=Ln,n.toFunction=$n,n.assign=Bn,n.modify=Fn,n.modifyAsync=Jn,n.remove=Tn,n.set=_n,n.transform=Gn,n.transformAsync=Hn,n.traverse=Kn,n.compose=function(){var n=arguments.length;if(n<2)return n?arguments[0]:pn;for(var r=Array(n);n--;)r[n]=arguments[n];return r},n.flat=function(){for(var n=[gr],r=0,t=arguments.length;r<t;++r)n.push(arguments[r],gr);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=$n(e(i)))(n,r,t,u)};return i},n.choices=function(n){for(var r=arguments.length,t=Array(1<r?r-1:0),u=1;u<r;u++)t[u-1]=arguments[u];return t.length?Rn(t.reduceRight(Rn),n):n},n.choose=Qn,n.cond=Vn,n.condOf=Xn,n.ifElse=Yn,n.iftes=Zn,n.orElse=nr,n.chain=rr,n.choice=function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduceRight(Rn,ir)},n.unless=tr,n.when=ur,n.optional=er,n.zero=ir,n.assignOp=function(n){return[dt(n),or(n)]},n.modifyOp=function(e){return function(n,r,t,u){return v(n=e(n,r),r,t,u,n)}},n.setOp=or,n.removeOp=cr,n.log=function(){var t=arguments,n=b.curry(function(n,r){return console.log.apply(console,$([],0,t,0,t.length).concat([n,r])),r});return an(n("get"),n("set"))},n.seq=fr,n.branchOr=ar,n.branch=vr,n.branches=function(){for(var n=arguments.length,r={},t=0;t<n;++t)r[arguments[t]]=pn;return vr(r)},n.elems=sr,n.elemsTotal=function(n,r,t,u){return zn(n)?t===Dn?W(u,n,W):t===B?e(u,n):i(t,u,n,i):t.of(n)},n.entries=dr,n.keys=lr,n.matches=hr,n.values=pr,n.children=yr,n.flatten=gr,n.query=function(){for(var n=[],r=0,t=arguments.length;r<t;++r){var u=$n(arguments[r]);n.push(mr(Pr(u)),u)}return n},n.satisfying=mr,n.leafs=br,n.all=jr,n.and=Ar,n.any=Or,n.collectAs=xr,n.collect=wr,n.concatAs=Ur,n.concat=Ir,n.countIf=Sr,n.count=kr,n.countsAs=Er,n.counts=Rr,n.foldl=Nr,n.foldr=qr,n.forEach=Mr,n.forEachWith=Cr,n.isDefined=Pr,n.isEmpty=zr,n.joinAs=Dr,n.join=Wr,n.maximumBy=Lr,n.maximum=$r,n.meanAs=Br,n.mean=Fr,n.minimumBy=Jr,n.minimum=Tr,n.none=_r,n.or=Gr,n.productAs=Hr,n.product=Kr,n.selectAs=Qr,n.select=Vr,n.sumAs=Xr,n.sum=Yr,n.get=t,n.lens=Zr,n.setter=nt,n.foldTraversalLens=rt,n.defaults=function(e){function i(n){return bn(e,void 0,n)}return function(n,r,t,u){return t.map(i,u(void 0!==n?n:e,r))}},n.define=tt,n.normalize=function(n){return[et(n),it(n)]},n.required=ut,n.reread=et,n.rewrite=it,n.append=c,n.filter=ot,n.find=f,n.findWith=function(n){var r=$n(n),t=Pr(r);return[1<arguments.length?f(t,arguments[1]):f(t),r]},n.first=0,n.index=ct,n.last=ft,n.prefix=function(n){return at(0,n)},n.slice=at,n.suffix=function(n){return at(0===n?1/0:n?-n:0,void 0)},n.pickIn=vt,n.prop=st,n.props=r,n.propsOf=dt,n.removable=function(){function e(n){if(!(n instanceof Object))return n;for(var r=0,t=u.length;r<t;++r)if(b.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=lt,n.replace=ht,n.getInverse=s,n.iso=pt,n.array=function(n){var r=s(n),e=t(n),i=function(n){return L(r,n)};return function(n,r,t,u){return t.map(i,u(L(e,n),r))}},n.inverse=function(e){return function(n,r,t,u){return t.map(function(n){return cn(e,n)},u(un(e,n,void 0),r))}},n.complement=yt,n.identity=pn,n.is=function(r){return an(function(n){return b.acyclicEqualsU(r,n)},function(n){return!0===n?r:void 0})},n.indexed=gt,n.reverse=mt,n.singleton=bt,n.disjoint=function(i){return function(n,r,t,u){var e=kn(i);return t.map(e,u(Sn(i,n),r))}},n.keyed=In,n.uri=jt,n.uriComponent=At,n.json=Ot,n.dropPrefix=function(r){return vn(function(n){return n.startsWith(r)?n.slice(r.length):void 0},function(n){return r+n})},n.dropSuffix=function(r){return vn(function(n){return n.endsWith(r)?n.slice(0,n.length-r.length):void 0},function(n){return n+r})},n.replaces=xt,n.split=wt,n.uncouple=Ut,n.add=function(n){return sn(h(n),h(-n))},n.divide=function(n){return sn(y(n),p(n))},n.multiply=function(n){return sn(p(n),y(n))},n.negate=It,n.subtract=function(n){return sn(h(-n),h(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)?Yn(z,Number(e),e):"-"===e?Yn(z,c,e):e.replace("~1","/").replace("~0","~")}return r.length=t-1,r},Object.defineProperty(n,"__esModule",{value:!0})});
{
"name": "partial.lenses",
"version": "13.12.0",
"version": "13.13.0",
"description": "Partial lenses is a comprehensive, high-performance optics library for JavaScript",

@@ -75,14 +75,13 @@ "module": "dist/partial.lenses.es.js",

"livereload": "^0.7.0",
"mocha": "^5.1.1",
"nyc": "^11.8.0",
"mocha": "^5.2.0",
"nyc": "^12.0.1",
"ramda": "^0.25.0",
"rollup": "^0.59.1",
"rollup": "^0.59.4",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-uglify": "^3.0.0",
"rollup-plugin-uglify": "^4.0.0",
"sprintf-js": "^1.1.1",
"uglify-js": "^3.3.25",
"watch-run": "^1.2.5"
}
}
import babel from 'rollup-plugin-babel'
import nodeResolve from 'rollup-plugin-node-resolve'
import replace from 'rollup-plugin-replace'
import uglify from 'rollup-plugin-uglify'
import {uglify} from 'rollup-plugin-uglify'

@@ -6,0 +6,0 @@ const globals = {infestines: 'I'}

@@ -53,2 +53,7 @@ import * as I from './ext/infestines'

function freezeObjectOfObjects(xs) {
if (xs) for (const k in xs) I.freeze(xs[k])
return I.freeze(xs)
}
const isArrayOrPrimitive = x => !(x instanceof Object) || I.isArray(x)

@@ -769,2 +774,41 @@

const disjointBwd = (process.env.NODE_ENV === 'production'
? I.id
: C.res(freezeObjectOfObjects))((groupOf, x) => {
if (x instanceof Object) {
const y = {}
x = toObject(x)
for (const key in x) {
const group = groupOf(key)
let g = y[group]
if (undefined === g) y[group] = g = {}
g[key] = x[key]
}
return y
}
})
const disjointFwd = (process.env.NODE_ENV === 'production'
? I.id
: C.res(C.res(I.freeze)))(groupOf => y => {
if (y instanceof Object) {
const x = {}
y = toObject(y)
for (const group in y) {
let g = y[group]
if (g instanceof Object) {
g = toObject(g)
for (const key in g) {
if (groupOf(key) === group) {
x[key] = g[key]
}
}
}
}
return x
}
})
//
const eitherU = (t, e) => c => (x, i, C, xi2yC) =>

@@ -1584,2 +1628,7 @@ (c(x, i) ? t : e)(x, i, C, xi2yC)

export const is = v =>
isoU(x => I.acyclicEqualsU(v, x), b => (true === b ? v : void 0))
// Array isomorphisms
export const indexed = isoU(

@@ -1621,7 +1670,2 @@ expect(

export const is = v =>
isoU(x => I.acyclicEqualsU(v, x), b => (true === b ? v : void 0))
export {keyed}
export const reverse = isoU(rev, rev)

@@ -1641,2 +1685,11 @@

// Object isomorphisms
export const disjoint = groupOf => (x, i, F, xi2yF) => {
const fwd = disjointFwd(groupOf)
return F.map(fwd, xi2yF(disjointBwd(groupOf, x), i))
}
export {keyed}
// Standard isomorphisms

@@ -1643,0 +1696,0 @@

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