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.13.2 to 13.14.0

43

dist/partial.lenses.cjs.js

@@ -455,4 +455,4 @@ 'use strict';

};
var consTo = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(I.freeze))(function (n) {
var xs = [];
var pushTo = function pushTo(n, xs) {
while (consExcept !== n) {

@@ -462,3 +462,7 @@ xs.push(n[0]);

}
return xs.reverse();
return xs;
};
var consTo = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id : res(I.freeze))(function (n) {
return pushTo(n, []).reverse();
});

@@ -486,2 +490,16 @@

var ConstantLog = {
map: function map(f, _ref) {
var m = _ref.m,
p = _ref.p,
c = _ref.c;
return { m: '%O <= ' + m, p: [f(p[0]), p], c: c };
}
};
var getLogFn = function getLogFn(x) {
return { m: '%O', p: [x, consExcept], c: x };
};
//
var lensFrom = function lensFrom(get, set) {

@@ -1316,2 +1334,12 @@ return function (i) {

var getLog = /*#__PURE__*/I.curry(function getLog(l, s) {
var _traverseU = traverseU(ConstantLog, getLogFn, l, s),
m = _traverseU.m,
p = _traverseU.p,
c = _traverseU.c;
console.log.apply(console, pushTo(p, [m]));
return c;
});
// Sequencing

@@ -1886,6 +1914,6 @@

}))(function json(options) {
var _ref = options || I.object0,
reviver = _ref.reviver,
replacer = _ref.replacer,
space = _ref.space;
var _ref2 = options || I.object0,
reviver = _ref2.reviver,
replacer = _ref2.replacer,
space = _ref2.space;

@@ -2016,2 +2044,3 @@ return isoU(expect(I.isString, function (text) {

exports.log = log;
exports.getLog = getLog;
exports.seq = seq;

@@ -2018,0 +2047,0 @@ exports.branchOr = branchOr;

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

};
var consTo = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freeze))(function (n) {
var xs = [];
var pushTo = function pushTo(n, xs) {
while (consExcept !== n) {

@@ -458,3 +458,7 @@ xs.push(n[0]);

}
return xs.reverse();
return xs;
};
var consTo = /*#__PURE__*/(process.env.NODE_ENV === 'production' ? id$1 : res(freeze))(function (n) {
return pushTo(n, []).reverse();
});

@@ -482,2 +486,16 @@

var ConstantLog = {
map: function map(f, _ref) {
var m = _ref.m,
p = _ref.p,
c = _ref.c;
return { m: '%O <= ' + m, p: [f(p[0]), p], c: c };
}
};
var getLogFn = function getLogFn(x) {
return { m: '%O', p: [x, consExcept], c: x };
};
//
var lensFrom = function lensFrom(get, set) {

@@ -1312,2 +1330,12 @@ return function (i) {

var getLog = /*#__PURE__*/curry(function getLog(l, s) {
var _traverseU = traverseU(ConstantLog, getLogFn, l, s),
m = _traverseU.m,
p = _traverseU.p,
c = _traverseU.c;
console.log.apply(console, pushTo(p, [m]));
return c;
});
// Sequencing

@@ -1882,6 +1910,6 @@

}))(function json(options) {
var _ref = options || object0,
reviver = _ref.reviver,
replacer = _ref.replacer,
space = _ref.space;
var _ref2 = options || object0,
reviver = _ref2.reviver,
replacer = _ref2.replacer,
space = _ref2.space;

@@ -1978,2 +2006,2 @@ return isoU(expect(isString, function (text) {

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 };
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, getLog, 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 };

@@ -451,4 +451,4 @@ (function (global, factory) {

};
var consTo = /*#__PURE__*/(res(I.freeze))(function (n) {
var xs = [];
var pushTo = function pushTo(n, xs) {
while (consExcept !== n) {

@@ -458,3 +458,7 @@ xs.push(n[0]);

}
return xs.reverse();
return xs;
};
var consTo = /*#__PURE__*/(res(I.freeze))(function (n) {
return pushTo(n, []).reverse();
});

@@ -482,2 +486,16 @@

var ConstantLog = {
map: function map(f, _ref) {
var m = _ref.m,
p = _ref.p,
c = _ref.c;
return { m: '%O <= ' + m, p: [f(p[0]), p], c: c };
}
};
var getLogFn = function getLogFn(x) {
return { m: '%O', p: [x, consExcept], c: x };
};
//
var lensFrom = function lensFrom(get, set) {

@@ -1312,2 +1330,12 @@ return function (i) {

var getLog = /*#__PURE__*/I.curry(function getLog(l, s) {
var _traverseU = traverseU(ConstantLog, getLogFn, l, s),
m = _traverseU.m,
p = _traverseU.p,
c = _traverseU.c;
console.log.apply(console, pushTo(p, [m]));
return c;
});
// Sequencing

@@ -1882,6 +1910,6 @@

}))(function json(options) {
var _ref = options || I.object0,
reviver = _ref.reviver,
replacer = _ref.replacer,
space = _ref.space;
var _ref2 = options || I.object0,
reviver = _ref2.reviver,
replacer = _ref2.replacer,
space = _ref2.space;

@@ -2012,2 +2040,3 @@ return isoU(expect(I.isString, function (text) {

exports.log = log;
exports.getLog = getLog;
exports.seq = seq;

@@ -2014,0 +2043,0 @@ exports.branchOr = branchOr;

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

@@ -19,4 +19,4 @@ "module": "dist/partial.lenses.es.js",

"watch:dist": "watch-run -d 50 -i -p 'src/**/*.js' npm run dist",
"watch:docs": "watch-run -d 50 -i -p '*.md' npm run docs & livereload docs & wait",
"watch:test": "watch-run -d 50 -p 'dist/partial.lenses.cjs.js,test/**/*.js' npm run test"
"watch:docs": "concurrently \"watch-run -d 50 -i -p '*.md' npm run docs\" \"livereload docs\"",
"watch:test": "watch-run -d 50 -p 'dist/partial.lenses.cjs.js,test/**/*.js' npm run test"
},

@@ -46,3 +46,3 @@ "repository": {

"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.3",
"babel-eslint": "^8.2.5",
"babel-plugin-annotate-pure-calls": "^0.3.0",

@@ -73,4 +73,4 @@ "babel-plugin-check-es2015-constants": "^6.22.0",

"codecov": "^3.0.2",
"concurrently": "^3.5.1",
"eslint": "^4.19.1",
"concurrently": "^3.6.0",
"eslint": "^5.0.1",
"klipse-github-docs-generator": "^0.3.5",

@@ -81,4 +81,4 @@ "livereload": "^0.7.0",

"ramda": "^0.25.0",
"rollup": "^0.60.7",
"rollup-plugin-babel": "^3.0.4",
"rollup": "^0.62.0",
"rollup-plugin-babel": "^3.0.7",
"rollup-plugin-node-resolve": "^3.3.0",

@@ -85,0 +85,0 @@ "rollup-plugin-replace": "^2.0.0",

@@ -297,11 +297,13 @@ import * as I from './ext/infestines'

const consExcept = skip => t => h => (skip !== h ? [h, t] : t)
const pushTo = (n, xs) => {
while (consExcept !== n) {
xs.push(n[0])
n = n[1]
}
return xs
}
const consTo = (process.env.NODE_ENV === 'production' ? id : C.res(I.freeze))(
n => {
const xs = []
while (consExcept !== n) {
xs.push(n[0])
n = n[1]
}
return xs.reverse()
}
n => pushTo(n, []).reverse()
)

@@ -325,2 +327,9 @@

const ConstantLog = {
map: (f, {m, p, c}) => ({m: `%O <= ${m}`, p: [f(p[0]), p], c})
}
const getLogFn = x => ({m: '%O', p: [x, consExcept], c: x})
//
const lensFrom = (get, set) => i => (x, _i, F, xi2yF) =>

@@ -1101,2 +1110,8 @@ F.map(v => set(i, v, x), xi2yF(get(i, x), i))

export const getLog = I.curry(function getLog(l, s) {
const {m, p, c} = traverseU(ConstantLog, getLogFn, l, s)
console.log.apply(console, pushTo(p, [m]))
return c
})
// Sequencing

@@ -1103,0 +1118,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