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