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

rambda

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rambda - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

__tests__/array/forEach.js

84

dist/rambda.cjs.js

@@ -651,2 +651,42 @@ 'use strict';

function tap(fn, input) {
fn(input);
return input;
}
var tap$1 = curry(tap);
function mapObject(fn, obj) {
var willReturn = {};
for (var prop in obj) {
willReturn[prop] = fn(obj[prop]);
}
return willReturn;
}
function map(fn, arr) {
if (arr.length === undefined) {
return mapObject(fn, arr);
}
var index = -1;
var length = arr.length;
var willReturn = Array(length);
while (++index < length) {
willReturn[index] = fn(arr[index]);
}
return willReturn;
}
var map$1 = curry(map);
function forEach(fn, arr) {
return map$1(tap$1(fn), arr);
}
var forEach$1 = curry(forEach);
function has(prop, obj) {

@@ -679,3 +719,3 @@ return obj[prop] !== undefined;

function isNil(x) {
return x === undefined || x === null;
return x === undefined || x === null;
}

@@ -733,28 +773,2 @@

function mapObject(fn, obj) {
var willReturn = {};
for (var prop in obj) {
willReturn[prop] = fn(obj[prop]);
}
return willReturn;
}
function map(fn, arr) {
if (arr.length === undefined) {
return mapObject(fn, arr);
}
var index = -1;
var length = arr.length;
var willReturn = Array(length);
while (++index < length) {
willReturn[index] = fn(arr[index]);
}
return willReturn;
}
var map$1 = curry(map);
function match(regex, str) {

@@ -986,10 +1000,2 @@ var willReturn = str.match(regex);

function tap(fn, input) {
fn(input);
return input;
}
var tap$1 = curry(tap);
function tail(arr) {

@@ -1029,2 +1035,8 @@ return drop$1(1, arr);

function times(fn, n) {
return map$1(fn, range(0, n));
}
var times$1 = curry(times);
function typedDefaultTo(defaultArgument, inputArgument) {

@@ -1166,2 +1178,3 @@ if (arguments.length === 1) {

exports.flip = flip;
exports.forEach = forEach$1;
exports.has = has$1;

@@ -1200,2 +1213,3 @@ exports.head = head;

exports.test = test$1;
exports.times = times$1;
exports.type = type;

@@ -1202,0 +1216,0 @@ exports.typedPathOr = typedPathOr$1;

@@ -647,2 +647,42 @@ function helper(method, x, y) {

function tap(fn, input) {
fn(input);
return input;
}
var tap$1 = curry(tap);
function mapObject(fn, obj) {
var willReturn = {};
for (var prop in obj) {
willReturn[prop] = fn(obj[prop]);
}
return willReturn;
}
function map(fn, arr) {
if (arr.length === undefined) {
return mapObject(fn, arr);
}
var index = -1;
var length = arr.length;
var willReturn = Array(length);
while (++index < length) {
willReturn[index] = fn(arr[index]);
}
return willReturn;
}
var map$1 = curry(map);
function forEach(fn, arr) {
return map$1(tap$1(fn), arr);
}
var forEach$1 = curry(forEach);
function has(prop, obj) {

@@ -675,3 +715,3 @@ return obj[prop] !== undefined;

function isNil(x) {
return x === undefined || x === null;
return x === undefined || x === null;
}

@@ -729,28 +769,2 @@

function mapObject(fn, obj) {
var willReturn = {};
for (var prop in obj) {
willReturn[prop] = fn(obj[prop]);
}
return willReturn;
}
function map(fn, arr) {
if (arr.length === undefined) {
return mapObject(fn, arr);
}
var index = -1;
var length = arr.length;
var willReturn = Array(length);
while (++index < length) {
willReturn[index] = fn(arr[index]);
}
return willReturn;
}
var map$1 = curry(map);
function match(regex, str) {

@@ -982,10 +996,2 @@ var willReturn = str.match(regex);

function tap(fn, input) {
fn(input);
return input;
}
var tap$1 = curry(tap);
function tail(arr) {

@@ -1025,2 +1031,8 @@ return drop$1(1, arr);

function times(fn, n) {
return map$1(fn, range(0, n));
}
var times$1 = curry(times);
function typedDefaultTo(defaultArgument, inputArgument) {

@@ -1114,3 +1126,3 @@ if (arguments.length === 1) {

export { add, always, complement, concat, divide, endsWith, F, identity, includes, join, lastIndexOf, length, modulo, multiply, not, padEnd, padStart, reverse, startsWith, subtract, T, toLower, toString, toUpper, trim, addIndex, adjust$1 as adjust, all$1 as all, allPass, anyPass, any$1 as any, append$1 as append, both$1 as both, compose, contains$1 as contains, curry$1 as curry, dec, defaultTo, drop$1 as drop, dropLast$1 as dropLast, either$1 as either, inc, equals, filter$1 as filter, find$1 as find, findIndex$1 as findIndex, flatten, flip, has$1 as has, head, ifElse$1 as ifElse, isNil, indexOf$1 as indexOf, init, last, map$1 as map, match$1 as match, merge$1 as merge, omit, partialCurry, path, pathOr$1 as pathOr, pick, pipe, pluck$1 as pluck, prepend$1 as prepend, prop$1 as prop, propEq$1 as propEq, range, reduce$1 as reduce, repeat$1 as repeat, replace$1 as replace, sort$1 as sort, sortBy$1 as sortBy, split$1 as split, splitEvery$1 as splitEvery, tap$1 as tap, tail, take$1 as take, takeLast$1 as takeLast, test$1 as test, type, typedPathOr$1 as typedPathOr, typedDefaultTo, uniq, update$1 as update, values };
export { add, always, complement, concat, divide, endsWith, F, identity, includes, join, lastIndexOf, length, modulo, multiply, not, padEnd, padStart, reverse, startsWith, subtract, T, toLower, toString, toUpper, trim, addIndex, adjust$1 as adjust, all$1 as all, allPass, anyPass, any$1 as any, append$1 as append, both$1 as both, compose, contains$1 as contains, curry$1 as curry, dec, defaultTo, drop$1 as drop, dropLast$1 as dropLast, either$1 as either, inc, equals, filter$1 as filter, find$1 as find, findIndex$1 as findIndex, flatten, flip, forEach$1 as forEach, has$1 as has, head, ifElse$1 as ifElse, isNil, indexOf$1 as indexOf, init, last, map$1 as map, match$1 as match, merge$1 as merge, omit, partialCurry, path, pathOr$1 as pathOr, pick, pipe, pluck$1 as pluck, prepend$1 as prepend, prop$1 as prop, propEq$1 as propEq, range, reduce$1 as reduce, repeat$1 as repeat, replace$1 as replace, sort$1 as sort, sortBy$1 as sortBy, split$1 as split, splitEvery$1 as splitEvery, tap$1 as tap, tail, take$1 as take, takeLast$1 as takeLast, test$1 as test, times$1 as times, type, typedPathOr$1 as typedPathOr, typedDefaultTo, uniq, update$1 as update, values };
//# sourceMappingURL=rambda.esm.js.map

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

(function(c,d){typeof exports==='object'&&typeof module!=='undefined'?d(exports):typeof define==='function'&&define.amd?define(['exports'],d):d(c.R={});})(this,function(e){'use strict';function helper(g,x,y){if(x===void 0){return function(h,j){return helper(g,h,j);};}else if(y===void 0){return function(k){return helper(g,x,k);};}if(y[g]!==void 0){return y[g](x);}}function curry(l){return function(x,y){if(y===void 0){return function(m){return l(x,m);};}return l(x,y);};}function curryThree(n){return function(x,y,z){if(y===void 0){var helper=function helper(q,r){return n(x,q,r);};return curry(helper);}else if(z===void 0){return function(s){return n(x,y,s);};}return n(x,y,z);};}function mathHelper(t,x,y){switch(t){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}var u=curryThree(mathHelper);function oppositeHelper(v,x,y){if(x===void 0){return function(w,A){return oppositeHelper(v,w,A);};}else if(y===void 0){return function(B){return oppositeHelper(v,x,B);};}if(x[v]!==void 0){return x[v](y);}}function propHelper(C,x){if(x===void 0){return function(D){return propHelper(C,D);};}return x[C];}function simpleHelper(E,x){if(x===void 0){return function(G){return simpleHelper(E,G);};}if(x[E]!==void 0){return x[E]();}}function addIndex(H){return function(I){for(var J=0,newFn=function newFn(){for(var K=arguments.length,L=Array(K),M=0;M<K;M++){L[M]=arguments[M];}return I.apply(null,[].concat(L,[J++]));},N=arguments.length,O=Array(N>1?N-1:0),P=1;P<N;P++){O[P-1]=arguments[P];}return H.apply(null,[newFn].concat(O));};}function adjust(Q,R,S){var U=S.concat();return U.map(function(V,W){if(W===R){return Q(S[R]);}return V;});}var X=curryThree(adjust);function filterObject(Y,Z){var a1={};for(var b1 in Z){if(Y(Z[b1])){a1[b1]=Z[b1];}}return a1;}function filter(fn,d1){if(d1.length===void 0){return filterObject(fn,d1);}var e1=-1,f1=0,g1=d1.length,h1=[];while(++e1<g1){var i1=d1[e1];if(fn(i1)){h1[f1++]=i1;}}return h1;}var j1=curry(filter);function all(k1,l1){return j1(k1,l1).length===l1.length;}var m1=curry(all);function any(fn,o1){var p1=0;while(p1<o1.length){if(fn(o1[p1])){return!0;}p1++;}return!1;}var q1=curry(any);function allPass(r1,x){if(arguments.length===1){return function(s1){return allPass(r1,s1);};}return!q1(function(t1){return!t1(x);},r1);}function anyPass(u1,x){if(arguments.length===1){return function(v1){return anyPass(u1,v1);};}return q1(function(w1){return w1(x);})(u1);}function append(x1,y1){if(typeof y1==='string'){return''+y1+x1;}var z1=y1.concat();z1.push(x1);return z1;}var A1=curry(append);function both(x,y){return function(B1){return x(B1)&&y(B1);};}var C1=curry(both);function compose(){for(var D1=arguments.length,E1=Array(D1),F1=0;F1<D1;F1++){E1[F1]=arguments[F1];}return function(G1){var H1=E1.slice();while(H1.length>0){G1=H1.pop()(G1);}return G1;};}var I1={},J1=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(K1){return typeof K1;}:function(L1){return L1&&typeof Symbol==="function"&&L1.constructor===Symbol&&L1!==Symbol.prototype?"symbol":typeof L1;},M1=function(){function AwaitValue(N1){this.value=N1;}function AsyncGenerator(O1){var P1,Q1;function send(R1,S1){return new Promise(function(T1,U1){var V1={key:R1,arg:S1,resolve:T1,reject:U1,next:null};if(Q1){Q1=Q1.next=V1;}else{P1=Q1=V1;resume(R1,S1);}});}function resume(W1,X1){try{var Y1=O1[W1](X1),Z1=Y1.value;if(Z1 instanceof AwaitValue){Promise.resolve(Z1.value).then(function(a2){resume("next",a2);},function(b2){resume("throw",b2);});}else{settle(Y1.done?"return":"normal",Y1.value);}}catch(err){settle("throw",err);}}function settle(c2,d2){switch(c2){case"return":P1.resolve({value:d2,done:!0});break;case"throw":P1.reject(d2);break;default:P1.resolve({value:d2,done:!1});break;}P1=P1.next;if(P1){resume(P1.key,P1.arg);}else{Q1=null;}}this._invoke=send;if(typeof O1.return!=="function"){this.return=void 0;}}if(typeof Symbol==="function"&&Symbol.asyncIterator){AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this;};}AsyncGenerator.prototype.next=function(e2){return this._invoke("next",e2);};AsyncGenerator.prototype.throw=function(f2){return this._invoke("throw",f2);};AsyncGenerator.prototype.return=function(g2){return this._invoke("return",g2);};return{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments));};},await:function(i2){return new AwaitValue(i2);}};}(),toConsumableArray=function(j2){if(Array.isArray(j2)){for(var i=0,k2=Array(j2.length);i<j2.length;i++)k2[i]=j2[i];return k2;}else{return Array.from(j2);}};I1;function type(a){var l2=typeof a==='undefined'?'undefined':J1(a);if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(l2==='boolean'){return'Boolean';}else if(l2==='number'){return'Number';}else if(l2==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}var m2=a.toString();if(m2.startsWith('async')){return'Async';}else if(m2==='[object Promise]'){return'Promise';}else if(m2.includes('function')||m2.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return function(n2){return equals(a,n2);};}if(a===b){return!0;}var o2=type(a);if(o2!==type(b)){return!1;}if(o2==='Array'){var p2=Array.from(a),q2=Array.from(b);return p2.sort().toString()===q2.sort().toString();}if(o2==='Object'){var r2=Object.keys(a);if(r2.length===Object.keys(b).length){if(r2.length===0){return!0;}var s2=!0;r2.map(function(t2){if(s2){var u2=type(a[t2]),v2=type(b[t2]);if(u2===v2){if(u2==='Object'){if(Object.keys(a[t2]).length===Object.keys(b[t2]).length){if(Object.keys(a[t2]).length!==0){if(!equals(a[t2],b[t2])){s2=!1;}}}else{s2=!1;}}else if(!equals(a[t2],b[t2])){s2=!1;}}else{s2=!1;}}});return s2;}}return!1;}function contains(w2,x2){var y2=-1,z2=!1;while(++y2<x2.length&&!z2){if(equals(x2[y2],w2)){z2=!0;}}return z2;}var A2=curry(contains);function curry$1(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var B2=arguments.length,p=Array(B2),C2=0;C2<B2;C2++){p[C2]=arguments[C2];}return function(o){return o.length>=f.length?f.apply(void 0,toConsumableArray(o)):curry$1(f,o);}([].concat(toConsumableArray(a),p));};}var dec=function(x){return x-1;};function defaultTo(D2,E2){if(arguments.length===1){return function(F2){return defaultTo(D2,F2);};}return E2===void 0||E2===null||Number.isNaN(E2)===!0?D2:E2;}function drop(G2,a){return a.slice(G2);}var H2=curry(drop);function dropLast(I2,a){return a.slice(0,-I2);}var J2=curry(dropLast);function either(x,y){return function(K2){return x(K2)||y(K2);};}var L2=curry(either),inc=function(x){return x+1;};function find(fn,N2){return N2.find(fn);}var O2=curry(find);function findIndex(fn,Q2){var R2=Q2.length,S2=-1;while(++S2<R2){if(fn(Q2[S2])){return S2;}}return-1;}var T2=curry(findIndex);function flatten(U2,V2){V2=V2===void 0?[]:V2;for(var i=0;i<U2.length;i++){if(Array.isArray(U2[i])){flatten(U2[i],V2);}else{V2.push(U2[i]);}}return V2;}function flipExport(fn){return function(){for(var X2=arguments.length,Y2=Array(X2),Z2=0;Z2<X2;Z2++){Y2[Z2]=arguments[Z2];}if(Y2.length===1){return function(a3){return fn(a3,Y2[0]);};}else if(Y2.length===2){return fn(Y2[1],Y2[0]);}return void 0;};}function flip(fn){return flipExport(fn);}function has(c3,d3){return d3[c3]!==void 0;}var e3=curry(has);function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function ifElse(f3,g3,h3){return function(i3){if(f3(i3)===!0){return g3(i3);}return h3(i3);};}var j3=curryThree(ifElse);function isNil(x){return x===void 0||x===null;}function indexOf(x,k3){var l3=-1,m3=k3.length;while(++l3<m3){if(k3[l3]===x){return l3;}}return-1;}var n3=curry(indexOf);function baseSlice(o3,p3,q3){var r3=-1,s3=o3.length;q3=q3>s3?s3:q3;if(q3<0){q3+=s3;}s3=p3>q3?0:q3-p3>>>0;p3>>>=0;var t3=Array(s3);while(++r3<s3){t3[r3]=o3[r3+p3];}return t3;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function mapObject(fn,v3){var w3={};for(var x3 in v3){w3[x3]=fn(v3[x3]);}return w3;}function map(fn,z3){if(z3.length===void 0){return mapObject(fn,z3);}var A3=-1,B3=z3.length,C3=Array(B3);while(++A3<B3){C3[A3]=fn(z3[A3]);}return C3;}var D3=curry(map);function match(E3,F3){var G3=F3.match(E3);return G3===null?[]:G3;}var H3=curry(match);function merge(I3,J3){return Object.assign({},I3,J3);}var K3=curry(merge);function omit(L3,M3){if(arguments.length===1){return function(N3){return omit(L3,N3);};}if(M3===void 0||M3===null){return void 0;}if(typeof L3==='string'){L3=L3.split(',').map(function(x){return x.trim();});}var O3={};for(var P3 in M3){if(!L3.includes(P3)){O3[P3]=M3[P3];}}return O3;}function partialCurry(fn){var R3=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(S3){if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise(function(T3,U3){fn(K3(S3,R3)).then(T3).catch(U3);});}return fn(K3(S3,R3));};}function path(V3,W3){if(arguments.length===1){return function(X3){return path(V3,X3);};}if(W3===null||W3===void 0){return void 0;}var Y3=W3,Z3=0;if(typeof V3==='string'){V3=V3.split('.');}while(Z3<V3.length){if(Y3===null||Y3===void 0){return void 0;}Y3=Y3[V3[Z3]];Z3++;}return Y3;}function pathOr(a4,b4,c4){return defaultTo(a4,path(b4,c4));}var d4=curry$1(pathOr);function pick(e4,f4){if(arguments.length===1){return function(g4){return pick(e4,g4);};}if(!(type(f4)==='Object')){return void 0;}if(type(e4)==='String'){e4=e4.split(',').map(function(x){return x.trim();});}var h4={},i4=0;while(i4<e4.length){if(e4[i4]in f4){h4[e4[i4]]=f4[e4[i4]];}i4++;}return h4;}function pipe(){for(var j4=arguments.length,k4=Array(j4),l4=0;l4<j4;l4++){k4[l4]=arguments[l4];}return compose.apply(void 0,toConsumableArray(k4.reverse()));}function pluck(m4,n4){var o4=[];D3(function(p4){if(!(p4[m4]===void 0)){o4.push(p4[m4]);}},n4);return o4;}var q4=curry(pluck);function prepend(r4,s4){if(typeof s4==='string'){return''+r4+s4;}var t4=s4.concat();t4.unshift(r4);return t4;}var u4=curry(prepend);function prop(v4,w4){return w4[v4];}var x4=curry(prop);function propEq(y4,z4,A4){return A4[y4]===z4;}var B4=curryThree(propEq);function range(C4,D4){for(var E4=[],i=C4;i<D4;i++){E4.push(i);}return E4;}function reduce(fn,G4,H4){return H4.reduce(fn,G4);}var I4=curryThree(reduce);function repeat(a,J4){var K4=Array(J4);return K4.fill(a);}var L4=curry(repeat);function replace(M4,N4,O4){return O4.replace(M4,N4);}var P4=curryThree(replace);function sort(fn,R4){var S4=R4.concat();return S4.sort(fn);}var T4=curry(sort);function sortBy(fn,V4){var W4=V4.concat();return W4.sort(function(a,b){var X4=fn(a),Y4=fn(b);return X4<Y4?-1:X4>Y4?1:0;});}var Z4=curry(sortBy);function split(a5,b5){return b5.split(a5);}var c5=curry(split);function splitEvery(d5,a){d5=d5>1?d5:1;var e5=[],f5=0;while(f5<a.length){e5.push(a.slice(f5,f5+=d5));}return e5;}var g5=curry(splitEvery);function tap(fn,i5){fn(i5);return i5;}var j5=curry(tap);function tail(k5){return H2(1,k5);}function take(l5,a){if(typeof a==='string'){return a.slice(0,l5);}return baseSlice(a,0,l5);}var m5=curry(take);function takeLast(n5,a){var o5=a.length;n5=n5>o5?o5:n5;if(typeof a==='string'){return a.slice(o5-n5);}n5=o5-n5;return baseSlice(a,n5,o5);}var p5=curry(takeLast);function test(q5,r5){return r5.search(q5)!==-1;}var s5=curry(test);function typedDefaultTo(t5,u5){if(arguments.length===1){return function(v5){return typedDefaultTo(t5,v5);};}return type(u5)!==type(t5)?t5:u5;}function typedPathOr(w5,x5,y5){return typedDefaultTo(w5,path(x5,y5));}var z5=curry$1(typedPathOr);function uniq(A5){var B5=-1,C5=[];while(++B5<A5.length){var D5=A5[B5];if(!A2(D5,C5)){C5.push(D5);}}return C5;}function update(E5,F5,G5){var H5=G5.concat();return H5.fill(F5,E5,E5+1);}var I5=curryThree(update);function values(J5){var K5=[];for(var L5 in J5){K5.push(J5[L5]);}return K5;}var M5=u('+'),always=function always(x){return function(){return x;};},complement=function complement(fn){return function(O5){return!fn(O5);};},P5=oppositeHelper('concat'),Q5=u('/'),R5=helper('endsWith'),F=function F(){return!1;},identity=function identity(x){return x;},S5=helper('includes'),T5=helper('join'),U5=helper('lastIndexOf'),V5=propHelper('length'),W5=u('%'),X5=u('*'),not=function not(x){return!x;},Y5=helper('padEnd'),Z5=helper('padStart'),a6=simpleHelper('reverse'),b6=helper('startsWith'),c6=u('-'),T=function T(){return!0;},d6=simpleHelper('toLowerCase'),e6=simpleHelper('toString'),f6=simpleHelper('toUpperCase'),g6=simpleHelper('trim');e.add=M5;e.always=always;e.complement=complement;e.concat=P5;e.divide=Q5;e.endsWith=R5;e.F=F;e.identity=identity;e.includes=S5;e.join=T5;e.lastIndexOf=U5;e.length=V5;e.modulo=W5;e.multiply=X5;e.not=not;e.padEnd=Y5;e.padStart=Z5;e.reverse=a6;e.startsWith=b6;e.subtract=c6;e.T=T;e.toLower=d6;e.toString=e6;e.toUpper=f6;e.trim=g6;e.addIndex=addIndex;e.adjust=X;e.all=m1;e.allPass=allPass;e.anyPass=anyPass;e.any=q1;e.append=A1;e.both=C1;e.compose=compose;e.contains=A2;e.curry=curry$1;e.dec=dec;e.defaultTo=defaultTo;e.drop=H2;e.dropLast=J2;e.either=L2;e.inc=inc;e.equals=equals;e.filter=j1;e.find=O2;e.findIndex=T2;e.flatten=flatten;e.flip=flip;e.has=e3;e.head=head;e.ifElse=j3;e.isNil=isNil;e.indexOf=n3;e.init=init;e.last=last;e.map=D3;e.match=H3;e.merge=K3;e.omit=omit;e.partialCurry=partialCurry;e.path=path;e.pathOr=d4;e.pick=pick;e.pipe=pipe;e.pluck=q4;e.prepend=u4;e.prop=x4;e.propEq=B4;e.range=range;e.reduce=I4;e.repeat=L4;e.replace=P4;e.sort=T4;e.sortBy=Z4;e.split=c5;e.splitEvery=g5;e.tap=j5;e.tail=tail;e.take=m5;e.takeLast=p5;e.test=s5;e.type=type;e.typedPathOr=z5;e.typedDefaultTo=typedDefaultTo;e.uniq=uniq;e.update=I5;e.values=values;Object.defineProperty(e,'__esModule',{value:!0});});
(function(c,d){typeof exports==='object'&&typeof module!=='undefined'?d(exports):typeof define==='function'&&define.amd?define(['exports'],d):d(c.R={});})(this,function(e){'use strict';function helper(g,x,y){if(x===void 0){return function(h,j){return helper(g,h,j);};}else if(y===void 0){return function(k){return helper(g,x,k);};}if(y[g]!==void 0){return y[g](x);}}function curry(l){return function(x,y){if(y===void 0){return function(m){return l(x,m);};}return l(x,y);};}function curryThree(q){return function(x,y,z){if(y===void 0){var helper=function helper(r,s){return q(x,r,s);};return curry(helper);}else if(z===void 0){return function(t){return q(x,y,t);};}return q(x,y,z);};}function mathHelper(u,x,y){switch(u){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}var v=curryThree(mathHelper);function oppositeHelper(w,x,y){if(x===void 0){return function(A,B){return oppositeHelper(w,A,B);};}else if(y===void 0){return function(C){return oppositeHelper(w,x,C);};}if(x[w]!==void 0){return x[w](y);}}function propHelper(D,x){if(x===void 0){return function(E){return propHelper(D,E);};}return x[D];}function simpleHelper(G,x){if(x===void 0){return function(H){return simpleHelper(G,H);};}if(x[G]!==void 0){return x[G]();}}function addIndex(I){return function(J){for(var K=0,newFn=function newFn(){for(var L=arguments.length,M=Array(L),N=0;N<L;N++){M[N]=arguments[N];}return J.apply(null,[].concat(M,[K++]));},O=arguments.length,P=Array(O>1?O-1:0),Q=1;Q<O;Q++){P[Q-1]=arguments[Q];}return I.apply(null,[newFn].concat(P));};}function adjust(R,S,U){var V=U.concat();return V.map(function(W,X){if(X===S){return R(U[S]);}return W;});}var Y=curryThree(adjust);function filterObject(Z,a1){var b1={};for(var c1 in a1){if(Z(a1[c1])){b1[c1]=a1[c1];}}return b1;}function filter(fn,e1){if(e1.length===void 0){return filterObject(fn,e1);}var f1=-1,g1=0,h1=e1.length,i1=[];while(++f1<h1){var j1=e1[f1];if(fn(j1)){i1[g1++]=j1;}}return i1;}var k1=curry(filter);function all(l1,m1){return k1(l1,m1).length===m1.length;}var n1=curry(all);function any(fn,p1){var q1=0;while(q1<p1.length){if(fn(p1[q1])){return!0;}q1++;}return!1;}var r1=curry(any);function allPass(s1,x){if(arguments.length===1){return function(t1){return allPass(s1,t1);};}return!r1(function(u1){return!u1(x);},s1);}function anyPass(v1,x){if(arguments.length===1){return function(w1){return anyPass(v1,w1);};}return r1(function(x1){return x1(x);})(v1);}function append(y1,z1){if(typeof z1==='string'){return''+z1+y1;}var A1=z1.concat();A1.push(y1);return A1;}var B1=curry(append);function both(x,y){return function(C1){return x(C1)&&y(C1);};}var D1=curry(both);function compose(){for(var E1=arguments.length,F1=Array(E1),G1=0;G1<E1;G1++){F1[G1]=arguments[G1];}return function(H1){var I1=F1.slice();while(I1.length>0){H1=I1.pop()(H1);}return H1;};}var J1={},K1=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(L1){return typeof L1;}:function(M1){return M1&&typeof Symbol==="function"&&M1.constructor===Symbol&&M1!==Symbol.prototype?"symbol":typeof M1;},N1=function(){function AwaitValue(O1){this.value=O1;}function AsyncGenerator(P1){var Q1,R1;function send(S1,T1){return new Promise(function(U1,V1){var W1={key:S1,arg:T1,resolve:U1,reject:V1,next:null};if(R1){R1=R1.next=W1;}else{Q1=R1=W1;resume(S1,T1);}});}function resume(X1,Y1){try{var Z1=P1[X1](Y1),a2=Z1.value;if(a2 instanceof AwaitValue){Promise.resolve(a2.value).then(function(b2){resume("next",b2);},function(c2){resume("throw",c2);});}else{settle(Z1.done?"return":"normal",Z1.value);}}catch(err){settle("throw",err);}}function settle(d2,e2){switch(d2){case"return":Q1.resolve({value:e2,done:!0});break;case"throw":Q1.reject(e2);break;default:Q1.resolve({value:e2,done:!1});break;}Q1=Q1.next;if(Q1){resume(Q1.key,Q1.arg);}else{R1=null;}}this._invoke=send;if(typeof P1.return!=="function"){this.return=void 0;}}if(typeof Symbol==="function"&&Symbol.asyncIterator){AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this;};}AsyncGenerator.prototype.next=function(f2){return this._invoke("next",f2);};AsyncGenerator.prototype.throw=function(g2){return this._invoke("throw",g2);};AsyncGenerator.prototype.return=function(h2){return this._invoke("return",h2);};return{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments));};},await:function(j2){return new AwaitValue(j2);}};}(),toConsumableArray=function(k2){if(Array.isArray(k2)){for(var i=0,l2=Array(k2.length);i<k2.length;i++)l2[i]=k2[i];return l2;}else{return Array.from(k2);}};J1;function type(a){var m2=typeof a==='undefined'?'undefined':K1(a);if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(m2==='boolean'){return'Boolean';}else if(m2==='number'){return'Number';}else if(m2==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}var n2=a.toString();if(n2.startsWith('async')){return'Async';}else if(n2==='[object Promise]'){return'Promise';}else if(n2.includes('function')||n2.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return function(o2){return equals(a,o2);};}if(a===b){return!0;}var p2=type(a);if(p2!==type(b)){return!1;}if(p2==='Array'){var q2=Array.from(a),r2=Array.from(b);return q2.sort().toString()===r2.sort().toString();}if(p2==='Object'){var s2=Object.keys(a);if(s2.length===Object.keys(b).length){if(s2.length===0){return!0;}var t2=!0;s2.map(function(u2){if(t2){var v2=type(a[u2]),w2=type(b[u2]);if(v2===w2){if(v2==='Object'){if(Object.keys(a[u2]).length===Object.keys(b[u2]).length){if(Object.keys(a[u2]).length!==0){if(!equals(a[u2],b[u2])){t2=!1;}}}else{t2=!1;}}else if(!equals(a[u2],b[u2])){t2=!1;}}else{t2=!1;}}});return t2;}}return!1;}function contains(x2,y2){var z2=-1,A2=!1;while(++z2<y2.length&&!A2){if(equals(y2[z2],x2)){A2=!0;}}return A2;}var B2=curry(contains);function curry$1(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var C2=arguments.length,p=Array(C2),D2=0;D2<C2;D2++){p[D2]=arguments[D2];}return function(o){return o.length>=f.length?f.apply(void 0,toConsumableArray(o)):curry$1(f,o);}([].concat(toConsumableArray(a),p));};}var dec=function(x){return x-1;};function defaultTo(E2,F2){if(arguments.length===1){return function(G2){return defaultTo(E2,G2);};}return F2===void 0||F2===null||Number.isNaN(F2)===!0?E2:F2;}function drop(H2,a){return a.slice(H2);}var I2=curry(drop);function dropLast(J2,a){return a.slice(0,-J2);}var K2=curry(dropLast);function either(x,y){return function(L2){return x(L2)||y(L2);};}var M2=curry(either),inc=function(x){return x+1;};function find(fn,O2){return O2.find(fn);}var P2=curry(find);function findIndex(fn,R2){var S2=R2.length,T2=-1;while(++T2<S2){if(fn(R2[T2])){return T2;}}return-1;}var U2=curry(findIndex);function flatten(V2,W2){W2=W2===void 0?[]:W2;for(var i=0;i<V2.length;i++){if(Array.isArray(V2[i])){flatten(V2[i],W2);}else{W2.push(V2[i]);}}return W2;}function flipExport(fn){return function(){for(var Y2=arguments.length,Z2=Array(Y2),a3=0;a3<Y2;a3++){Z2[a3]=arguments[a3];}if(Z2.length===1){return function(b3){return fn(b3,Z2[0]);};}else if(Z2.length===2){return fn(Z2[1],Z2[0]);}return void 0;};}function flip(fn){return flipExport(fn);}function tap(fn,e3){fn(e3);return e3;}var f3=curry(tap);function mapObject(fn,h3){var i3={};for(var j3 in h3){i3[j3]=fn(h3[j3]);}return i3;}function map(fn,l3){if(l3.length===void 0){return mapObject(fn,l3);}var m3=-1,n3=l3.length,o3=Array(n3);while(++m3<n3){o3[m3]=fn(l3[m3]);}return o3;}var p3=curry(map);function forEach(fn,r3){return p3(f3(fn),r3);}var s3=curry(forEach);function has(t3,u3){return u3[t3]!==void 0;}var v3=curry(has);function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function ifElse(w3,x3,y3){return function(z3){if(w3(z3)===!0){return x3(z3);}return y3(z3);};}var A3=curryThree(ifElse);function isNil(x){return x===void 0||x===null;}function indexOf(x,B3){var C3=-1,D3=B3.length;while(++C3<D3){if(B3[C3]===x){return C3;}}return-1;}var E3=curry(indexOf);function baseSlice(F3,G3,H3){var I3=-1,J3=F3.length;H3=H3>J3?J3:H3;if(H3<0){H3+=J3;}J3=G3>H3?0:H3-G3>>>0;G3>>>=0;var K3=Array(J3);while(++I3<J3){K3[I3]=F3[I3+G3];}return K3;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function match(L3,M3){var N3=M3.match(L3);return N3===null?[]:N3;}var O3=curry(match);function merge(P3,Q3){return Object.assign({},P3,Q3);}var R3=curry(merge);function omit(S3,T3){if(arguments.length===1){return function(U3){return omit(S3,U3);};}if(T3===void 0||T3===null){return void 0;}if(typeof S3==='string'){S3=S3.split(',').map(function(x){return x.trim();});}var V3={};for(var W3 in T3){if(!S3.includes(W3)){V3[W3]=T3[W3];}}return V3;}function partialCurry(fn){var Y3=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(Z3){if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise(function(a4,b4){fn(R3(Z3,Y3)).then(a4).catch(b4);});}return fn(R3(Z3,Y3));};}function path(c4,d4){if(arguments.length===1){return function(e4){return path(c4,e4);};}if(d4===null||d4===void 0){return void 0;}var f4=d4,g4=0;if(typeof c4==='string'){c4=c4.split('.');}while(g4<c4.length){if(f4===null||f4===void 0){return void 0;}f4=f4[c4[g4]];g4++;}return f4;}function pathOr(h4,i4,j4){return defaultTo(h4,path(i4,j4));}var k4=curry$1(pathOr);function pick(l4,m4){if(arguments.length===1){return function(n4){return pick(l4,n4);};}if(!(type(m4)==='Object')){return void 0;}if(type(l4)==='String'){l4=l4.split(',').map(function(x){return x.trim();});}var o4={},p4=0;while(p4<l4.length){if(l4[p4]in m4){o4[l4[p4]]=m4[l4[p4]];}p4++;}return o4;}function pipe(){for(var q4=arguments.length,r4=Array(q4),s4=0;s4<q4;s4++){r4[s4]=arguments[s4];}return compose.apply(void 0,toConsumableArray(r4.reverse()));}function pluck(t4,u4){var v4=[];p3(function(w4){if(!(w4[t4]===void 0)){v4.push(w4[t4]);}},u4);return v4;}var x4=curry(pluck);function prepend(y4,z4){if(typeof z4==='string'){return''+y4+z4;}var A4=z4.concat();A4.unshift(y4);return A4;}var B4=curry(prepend);function prop(C4,D4){return D4[C4];}var E4=curry(prop);function propEq(F4,G4,H4){return H4[F4]===G4;}var I4=curryThree(propEq);function range(J4,K4){for(var L4=[],i=J4;i<K4;i++){L4.push(i);}return L4;}function reduce(fn,N4,O4){return O4.reduce(fn,N4);}var P4=curryThree(reduce);function repeat(a,Q4){var R4=Array(Q4);return R4.fill(a);}var S4=curry(repeat);function replace(T4,U4,V4){return V4.replace(T4,U4);}var W4=curryThree(replace);function sort(fn,Y4){var Z4=Y4.concat();return Z4.sort(fn);}var a5=curry(sort);function sortBy(fn,c5){var d5=c5.concat();return d5.sort(function(a,b){var e5=fn(a),f5=fn(b);return e5<f5?-1:e5>f5?1:0;});}var g5=curry(sortBy);function split(h5,i5){return i5.split(h5);}var j5=curry(split);function splitEvery(k5,a){k5=k5>1?k5:1;var l5=[],m5=0;while(m5<a.length){l5.push(a.slice(m5,m5+=k5));}return l5;}var n5=curry(splitEvery);function tail(o5){return I2(1,o5);}function take(p5,a){if(typeof a==='string'){return a.slice(0,p5);}return baseSlice(a,0,p5);}var q5=curry(take);function takeLast(r5,a){var s5=a.length;r5=r5>s5?s5:r5;if(typeof a==='string'){return a.slice(s5-r5);}r5=s5-r5;return baseSlice(a,r5,s5);}var t5=curry(takeLast);function test(u5,v5){return v5.search(u5)!==-1;}var w5=curry(test);function times(fn,n){return p3(fn,range(0,n));}var y5=curry(times);function typedDefaultTo(z5,A5){if(arguments.length===1){return function(B5){return typedDefaultTo(z5,B5);};}return type(A5)!==type(z5)?z5:A5;}function typedPathOr(C5,D5,E5){return typedDefaultTo(C5,path(D5,E5));}var F5=curry$1(typedPathOr);function uniq(G5){var H5=-1,I5=[];while(++H5<G5.length){var J5=G5[H5];if(!B2(J5,I5)){I5.push(J5);}}return I5;}function update(K5,L5,M5){var N5=M5.concat();return N5.fill(L5,K5,K5+1);}var O5=curryThree(update);function values(P5){var Q5=[];for(var R5 in P5){Q5.push(P5[R5]);}return Q5;}var S5=v('+'),always=function always(x){return function(){return x;};},complement=function complement(fn){return function(U5){return!fn(U5);};},V5=oppositeHelper('concat'),W5=v('/'),X5=helper('endsWith'),F=function F(){return!1;},identity=function identity(x){return x;},Y5=helper('includes'),Z5=helper('join'),a6=helper('lastIndexOf'),b6=propHelper('length'),c6=v('%'),d6=v('*'),not=function not(x){return!x;},e6=helper('padEnd'),f6=helper('padStart'),g6=simpleHelper('reverse'),h6=helper('startsWith'),i6=v('-'),T=function T(){return!0;},j6=simpleHelper('toLowerCase'),k6=simpleHelper('toString'),l6=simpleHelper('toUpperCase'),m6=simpleHelper('trim');e.add=S5;e.always=always;e.complement=complement;e.concat=V5;e.divide=W5;e.endsWith=X5;e.F=F;e.identity=identity;e.includes=Y5;e.join=Z5;e.lastIndexOf=a6;e.length=b6;e.modulo=c6;e.multiply=d6;e.not=not;e.padEnd=e6;e.padStart=f6;e.reverse=g6;e.startsWith=h6;e.subtract=i6;e.T=T;e.toLower=j6;e.toString=k6;e.toUpper=l6;e.trim=m6;e.addIndex=addIndex;e.adjust=Y;e.all=n1;e.allPass=allPass;e.anyPass=anyPass;e.any=r1;e.append=B1;e.both=D1;e.compose=compose;e.contains=B2;e.curry=curry$1;e.dec=dec;e.defaultTo=defaultTo;e.drop=I2;e.dropLast=K2;e.either=M2;e.inc=inc;e.equals=equals;e.filter=k1;e.find=P2;e.findIndex=U2;e.flatten=flatten;e.flip=flip;e.forEach=s3;e.has=v3;e.head=head;e.ifElse=A3;e.isNil=isNil;e.indexOf=E3;e.init=init;e.last=last;e.map=p3;e.match=O3;e.merge=R3;e.omit=omit;e.partialCurry=partialCurry;e.path=path;e.pathOr=k4;e.pick=pick;e.pipe=pipe;e.pluck=x4;e.prepend=B4;e.prop=E4;e.propEq=I4;e.range=range;e.reduce=P4;e.repeat=S4;e.replace=W4;e.sort=a5;e.sortBy=g5;e.split=j5;e.splitEvery=n5;e.tap=f3;e.tail=tail;e.take=q5;e.takeLast=t5;e.test=w5;e.times=y5;e.type=type;e.typedPathOr=F5;e.typedDefaultTo=typedDefaultTo;e.uniq=uniq;e.update=O5;e.values=values;Object.defineProperty(e,'__esModule',{value:!0});});

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

- For browser usage include in your HTML
- For UMD usage either use `./dist/rambda.umd.js` or the CDN link at
```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.9.2/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.9.3/webVersion.js
```

@@ -69,2 +69,4 @@

[Source](https://github.com/selfrefactor/rambda/blob/master/modules/add.js)
#### addIndex

@@ -82,2 +84,4 @@

[Source](https://github.com/selfrefactor/rambda/blob/master/modules/addIndex.js)
#### adjust

@@ -377,4 +381,20 @@

Note that it works only for functions that expects two arguments. If third argument is passed, then `undefined` is returned.
#### forEach
> forEach(fn: Function, arr: Array): Array
It applies function `fn` over all members of array `arr` and returns `arr`.
```javascript
const sideEffect = {}
const result = R.forEach(
x => sideEffect[`foo${x}`] = x
)([1, 2])
console.log(sideEffect) //=> {foo1 : 1, foo2 : 2}
console.log(result) //=> [1, 2]
```
Note, that unlike `Ramda`'s **forEach**, Rambda's one doesn't dispatch to `forEach` method of `arr`.
#### has

@@ -868,2 +888,13 @@

#### times
> times(fn: Function, n: Number): Array
It returns the result of applying function `fn` over members of range array.
The range array includes numbers between `0` and `n`(exclusive).
```javascript
R.times(R.identity, 5); //=> [0, 1, 2, 3, 4]
```
#### toLower

@@ -1039,2 +1070,3 @@

- 0.9.3 Add `R.forEach` and `R.times`
- 0.9.2 Add `Typescript` definitions

@@ -1041,0 +1073,0 @@ - 0.9.1 Close issue [#36](https://github.com/selfrefactor/rambda/issues/36) - move current behaviour of `defaultTo` to a new method `typedDefaultTo`; make `defaultTo` follow Ramda spec; add `pathOr`; add `typedPathOr`.

@@ -229,2 +229,5 @@ declare let R: R.Static;

forEach<T>(fn: (x: T) => void, list: T[]): T[];
forEach<T>(fn: (x: T) => void): (list: T[]) => T[];
has<T>(s: string, obj: T): boolean;

@@ -356,2 +359,5 @@ has(s: string): <T>(obj: T) => boolean;

times<T>(fn: (i: number) => T, n: number): T[];
times<T>(fn: (i: number) => T): (n: number) => T[];
toLower(str: string): string;

@@ -358,0 +364,0 @@

{
"name": "rambda",
"version": "0.9.2",
"version": "0.9.3",
"description": "Lightweight alternative to Ramda",

@@ -8,2 +8,3 @@ "main": "dist/rambda.cjs.js",

"browser": "dist/rambda.umd.js",
"typings": "./index.d.ts",
"scripts": {

@@ -10,0 +11,0 @@ "build": "run-s all-build browser-minify",

@@ -37,2 +37,3 @@ import helper from './modules/internal/helper'

export { default as flip } from './modules/flip'
export { default as forEach } from './modules/forEach'
export { default as has } from './modules/has'

@@ -85,2 +86,3 @@ export { default as head } from './modules/head'

export { default as test } from './modules/test'
export { default as times } from './modules/times'
export const toLower = simpleHelper('toLowerCase')

@@ -87,0 +89,0 @@ export const toString = simpleHelper('toString')

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

- For browser usage include in your HTML
- For UMD usage either use `./dist/rambda.umd.js` or the CDN link at
```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.9.2/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.9.3/webVersion.js
```

@@ -69,2 +69,4 @@

[Source](https://github.com/selfrefactor/rambda/blob/master/modules/add.js)
#### addIndex

@@ -82,2 +84,4 @@

[Source](https://github.com/selfrefactor/rambda/blob/master/modules/addIndex.js)
#### adjust

@@ -377,4 +381,20 @@

Note that it works only for functions that expects two arguments. If third argument is passed, then `undefined` is returned.
#### forEach
> forEach(fn: Function, arr: Array): Array
It applies function `fn` over all members of array `arr` and returns `arr`.
```javascript
const sideEffect = {}
const result = R.forEach(
x => sideEffect[`foo${x}`] = x
)([1, 2])
console.log(sideEffect) //=> {foo1 : 1, foo2 : 2}
console.log(result) //=> [1, 2]
```
Note, that unlike `Ramda`'s **forEach**, Rambda's one doesn't dispatch to `forEach` method of `arr`.
#### has

@@ -868,2 +888,13 @@

#### times
> times(fn: Function, n: Number): Array
It returns the result of applying function `fn` over members of range array.
The range array includes numbers between `0` and `n`(exclusive).
```javascript
R.times(R.identity, 5); //=> [0, 1, 2, 3, 4]
```
#### toLower

@@ -1039,2 +1070,3 @@

- 0.9.3 Add `R.forEach` and `R.times`
- 0.9.2 Add `Typescript` definitions

@@ -1041,0 +1073,0 @@ - 0.9.1 Close issue [#36](https://github.com/selfrefactor/rambda/issues/36) - move current behaviour of `defaultTo` to a new method `typedDefaultTo`; make `defaultTo` follow Ramda spec; add `pathOr`; add `typedPathOr`.

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

(function(c,d){typeof exports==='object'&&typeof module!=='undefined'?d(exports):typeof define==='function'&&define.amd?define(['exports'],d):d(c.R={});})(this,function(e){'use strict';function helper(g,x,y){if(x===void 0){return function(h,j){return helper(g,h,j);};}else if(y===void 0){return function(k){return helper(g,x,k);};}if(y[g]!==void 0){return y[g](x);}}function curry(l){return function(x,y){if(y===void 0){return function(m){return l(x,m);};}return l(x,y);};}function curryThree(n){return function(x,y,z){if(y===void 0){var helper=function helper(q,r){return n(x,q,r);};return curry(helper);}else if(z===void 0){return function(s){return n(x,y,s);};}return n(x,y,z);};}function mathHelper(t,x,y){switch(t){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}var u=curryThree(mathHelper);function oppositeHelper(v,x,y){if(x===void 0){return function(w,A){return oppositeHelper(v,w,A);};}else if(y===void 0){return function(B){return oppositeHelper(v,x,B);};}if(x[v]!==void 0){return x[v](y);}}function propHelper(C,x){if(x===void 0){return function(D){return propHelper(C,D);};}return x[C];}function simpleHelper(E,x){if(x===void 0){return function(G){return simpleHelper(E,G);};}if(x[E]!==void 0){return x[E]();}}function addIndex(H){return function(I){for(var J=0,newFn=function newFn(){for(var K=arguments.length,L=Array(K),M=0;M<K;M++){L[M]=arguments[M];}return I.apply(null,[].concat(L,[J++]));},N=arguments.length,O=Array(N>1?N-1:0),P=1;P<N;P++){O[P-1]=arguments[P];}return H.apply(null,[newFn].concat(O));};}function adjust(Q,R,S){var U=S.concat();return U.map(function(V,W){if(W===R){return Q(S[R]);}return V;});}var X=curryThree(adjust);function filterObject(Y,Z){var a1={};for(var b1 in Z){if(Y(Z[b1])){a1[b1]=Z[b1];}}return a1;}function filter(fn,d1){if(d1.length===void 0){return filterObject(fn,d1);}var e1=-1,f1=0,g1=d1.length,h1=[];while(++e1<g1){var i1=d1[e1];if(fn(i1)){h1[f1++]=i1;}}return h1;}var j1=curry(filter);function all(k1,l1){if(arguments.length===1){return function(m1){return all(k1,m1);};}return j1(k1,l1).length===l1.length;}function any(fn,o1){var p1=0;while(p1<o1.length){if(fn(o1[p1])){return!0;}p1++;}return!1;}var q1=curry(any);function allPass(r1,x){if(arguments.length===1){return function(s1){return allPass(r1,s1);};}return!q1(function(t1){return!t1(x);})(r1);}function anyPass(u1,x){if(arguments.length===1){return function(v1){return anyPass(u1,v1);};}return q1(function(w1){return w1(x);})(u1);}function append(x1,y1){if(typeof y1==='string'){return''+y1+x1;}var z1=y1.concat();z1.push(x1);return z1;}var A1=curry(append);function both(x,y){return function(B1){return x(B1)&&y(B1);};}var C1=curry(both);function compose(){for(var D1=arguments.length,E1=Array(D1),F1=0;F1<D1;F1++){E1[F1]=arguments[F1];}return function(G1){var H1=E1.slice();while(H1.length>0){G1=H1.pop()(G1);}return G1;};}var I1={},J1=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(K1){return typeof K1;}:function(L1){return L1&&typeof Symbol==="function"&&L1.constructor===Symbol&&L1!==Symbol.prototype?"symbol":typeof L1;},M1=function(){function AwaitValue(N1){this.value=N1;}function AsyncGenerator(O1){var P1,Q1;function send(R1,S1){return new Promise(function(T1,U1){var V1={key:R1,arg:S1,resolve:T1,reject:U1,next:null};if(Q1){Q1=Q1.next=V1;}else{P1=Q1=V1;resume(R1,S1);}});}function resume(W1,X1){try{var Y1=O1[W1](X1),Z1=Y1.value;if(Z1 instanceof AwaitValue){Promise.resolve(Z1.value).then(function(a2){resume("next",a2);},function(b2){resume("throw",b2);});}else{settle(Y1.done?"return":"normal",Y1.value);}}catch(err){settle("throw",err);}}function settle(c2,d2){switch(c2){case"return":P1.resolve({value:d2,done:!0});break;case"throw":P1.reject(d2);break;default:P1.resolve({value:d2,done:!1});break;}P1=P1.next;if(P1){resume(P1.key,P1.arg);}else{Q1=null;}}this._invoke=send;if(typeof O1.return!=="function"){this.return=void 0;}}if(typeof Symbol==="function"&&Symbol.asyncIterator){AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this;};}AsyncGenerator.prototype.next=function(e2){return this._invoke("next",e2);};AsyncGenerator.prototype.throw=function(f2){return this._invoke("throw",f2);};AsyncGenerator.prototype.return=function(g2){return this._invoke("return",g2);};return{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments));};},await:function(i2){return new AwaitValue(i2);}};}(),toConsumableArray=function(j2){if(Array.isArray(j2)){for(var i=0,k2=Array(j2.length);i<j2.length;i++)k2[i]=j2[i];return k2;}else{return Array.from(j2);}};I1;function type(a){var l2=typeof a==='undefined'?'undefined':J1(a);if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(l2==='boolean'){return'Boolean';}else if(l2==='number'){return'Number';}else if(l2==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}var m2=a.toString();if(m2.startsWith('async')){return'Async';}else if(m2==='[object Promise]'){return'Promise';}else if(m2.includes('function')||m2.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(a===b){return!0;}var n2=type(a);if(n2!==type(b)){return!1;}if(n2==='Array'){var o2=Array.from(a),p2=Array.from(b);return o2.sort().toString()===p2.sort().toString();}if(n2==='Object'){var q2=Object.keys(a);if(q2.length===Object.keys(b).length){if(q2.length===0){return!0;}var r2=!0;q2.map(function(s2){if(r2){var t2=type(a[s2]),u2=type(b[s2]);if(t2===u2){if(t2==='Object'){if(Object.keys(a[s2]).length===Object.keys(b[s2]).length){if(Object.keys(a[s2]).length!==0){if(!equals(a[s2],b[s2])){r2=!1;}}}else{r2=!1;}}else if(!equals(a[s2],b[s2])){r2=!1;}}else{r2=!1;}}});return r2;}}return!1;}var v2=curry(equals);function contains(w2,x2){var y2=-1,z2=!1;while(++y2<x2.length&&!z2){if(v2(x2[y2],w2)){z2=!0;}}return z2;}var A2=curry(contains);function curry$1(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var B2=arguments.length,p=Array(B2),C2=0;C2<B2;C2++){p[C2]=arguments[C2];}return function(o){return o.length>=f.length?f.apply(void 0,toConsumableArray(o)):curry$1(f,o);}([].concat(toConsumableArray(a),p));};}var dec=function(x){return x-1;};function defaultTo(D2,E2){if(arguments.length===1){return function(F2){return defaultTo(D2,F2);};}return E2===void 0||E2===null||Number.isNaN(E2)===!0?D2:E2;}function drop(G2,a){return a.slice(G2);}var H2=curry(drop);function dropLast(I2,a){return a.slice(0,-I2);}var J2=curry(dropLast);function either(x,y){return function(K2){return x(K2)||y(K2);};}var L2=curry(either),inc=function(x){return x+1;};function find(fn,N2){return N2.find(fn);}var O2=curry(find);function findIndex(fn,Q2){var R2=Q2.length,S2=-1;while(++S2<R2){if(fn(Q2[S2])){return S2;}}return-1;}var T2=curry(findIndex);function flatten(U2,V2){V2=V2===void 0?[]:V2;for(var i=0;i<U2.length;i++){if(Array.isArray(U2[i])){flatten(U2[i],V2);}else{V2.push(U2[i]);}}return V2;}function flipExport(fn){return function(){for(var X2=arguments.length,Y2=Array(X2),Z2=0;Z2<X2;Z2++){Y2[Z2]=arguments[Z2];}if(Y2.length===1){return function(a3){return fn(a3,Y2[0]);};}else if(Y2.length===2){return fn(Y2[1],Y2[0]);}return void 0;};}function flip(fn){return flipExport(fn);}function has(c3,d3){return d3[c3]!==void 0;}var e3=curry(has);function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function ifElse(f3,g3,h3){return function(i3){if(f3(i3)===!0){return g3(i3);}return h3(i3);};}var j3=curryThree(ifElse);function isNil(x){return x===void 0||x===null;}function indexOf(x,k3){var l3=-1,m3=k3.length;while(++l3<m3){if(k3[l3]===x){return l3;}}return-1;}var n3=curry(indexOf);function baseSlice(o3,p3,q3){var r3=-1,s3=o3.length;q3=q3>s3?s3:q3;if(q3<0){q3+=s3;}s3=p3>q3?0:q3-p3>>>0;p3>>>=0;var t3=Array(s3);while(++r3<s3){t3[r3]=o3[r3+p3];}return t3;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function mapObject(fn,v3){var w3={};for(var x3 in v3){w3[x3]=fn(v3[x3]);}return w3;}function map(fn,z3){if(z3.length===void 0){return mapObject(fn,z3);}var A3=-1,B3=z3.length,C3=Array(B3);while(++A3<B3){C3[A3]=fn(z3[A3]);}return C3;}var D3=curry(map);function match(E3,F3){var G3=F3.match(E3);return G3===null?[]:G3;}var H3=curry(match);function merge(I3,J3){return Object.assign({},I3,J3);}var K3=curry(merge);function omit(L3,M3){if(arguments.length===1){return function(N3){return omit(L3,N3);};}if(M3===void 0||M3===null){return void 0;}if(typeof L3==='string'){L3=L3.split(',').map(function(x){return x.trim();});}var O3={};for(var P3 in M3){if(!L3.includes(P3)){O3[P3]=M3[P3];}}return O3;}function partialCurry(fn){var R3=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(S3){if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise(function(T3,U3){fn(K3(S3,R3)).then(T3).catch(U3);});}return fn(K3(S3,R3));};}function path(V3,W3){if(arguments.length===1){return function(X3){return path(V3,X3);};}if(W3===null||W3===void 0){return void 0;}var Y3=W3,Z3=0;if(typeof V3==='string'){V3=V3.split('.');}while(Z3<V3.length){if(Y3===null||Y3===void 0){return void 0;}Y3=Y3[V3[Z3]];Z3++;}return Y3;}function pathOr(a4,b4,c4){return defaultTo(a4,path(b4,c4));}var d4=curry$1(pathOr);function pick(e4,f4){if(arguments.length===1){return function(g4){return pick(e4,g4);};}if(!(type(f4)==='Object')){return void 0;}if(type(e4)==='String'){e4=e4.split(',').map(function(x){return x.trim();});}var h4={},i4=0;while(i4<e4.length){if(e4[i4]in f4){h4[e4[i4]]=f4[e4[i4]];}i4++;}return h4;}function pipe(){for(var j4=arguments.length,k4=Array(j4),l4=0;l4<j4;l4++){k4[l4]=arguments[l4];}return compose.apply(void 0,toConsumableArray(k4.reverse()));}function pluck(m4,n4){var o4=[];D3(function(p4){if(!(p4[m4]===void 0)){o4.push(p4[m4]);}},n4);return o4;}var q4=curry(pluck);function prepend(r4,s4){if(typeof s4==='string'){return''+r4+s4;}var t4=s4.concat();t4.unshift(r4);return t4;}var u4=curry(prepend);function prop(v4,w4){return w4[v4];}var x4=curry(prop);function propEq(y4,z4,A4){return A4[y4]===z4;}var B4=curryThree(propEq);function range(C4,D4){for(var E4=[],i=C4;i<D4;i++){E4.push(i);}return E4;}function reduce(fn,G4,H4){return H4.reduce(fn,G4);}var I4=curryThree(reduce);function repeat(a,J4){var K4=Array(J4);return K4.fill(a);}var L4=curry(repeat);function replace(M4,N4,O4){return O4.replace(M4,N4);}var P4=curryThree(replace);function sort(fn,R4){var S4=R4.concat();return S4.sort(fn);}var T4=curry(sort);function sortBy(fn,V4){var W4=V4.concat();return W4.sort(function(a,b){var X4=fn(a),Y4=fn(b);return X4<Y4?-1:X4>Y4?1:0;});}var Z4=curry(sortBy);function split(a5,b5){return b5.split(a5);}var c5=curry(split);function splitEvery(d5,a){d5=d5>1?d5:1;var e5=[],f5=0;while(f5<a.length){e5.push(a.slice(f5,f5+=d5));}return e5;}var g5=curry(splitEvery);function tap(fn,i5){fn(i5);return i5;}var j5=curry(tap);function tail(k5){return H2(1,k5);}function take(l5,a){if(typeof a==='string'){return a.slice(0,l5);}return baseSlice(a,0,l5);}var m5=curry(take);function takeLast(n5,a){var o5=a.length;n5=n5>o5?o5:n5;if(typeof a==='string'){return a.slice(o5-n5);}n5=o5-n5;return baseSlice(a,n5,o5);}var p5=curry(takeLast);function test(q5,r5){return r5.search(q5)!==-1;}var s5=curry(test);function typedDefaultTo(t5,u5){if(arguments.length===1){return function(v5){return typedDefaultTo(t5,v5);};}return!(type(u5)===type(t5))?t5:u5;}function typedPathOr(w5,x5,y5){return typedDefaultTo(w5,path(x5,y5));}var z5=curry$1(typedPathOr);function uniq(A5){var B5=-1,C5=[];while(++B5<A5.length){var D5=A5[B5];if(!A2(D5,C5)){C5.push(D5);}}return C5;}function update(E5,F5,G5){var H5=G5.concat();return H5.fill(F5,E5,E5+1);}var I5=curryThree(update);function values(J5){var K5=[];for(var L5 in J5){K5.push(J5[L5]);}return K5;}var M5=u('+'),always=function always(x){return function(){return x;};},complement=function complement(fn){return function(O5){return!fn(O5);};},P5=oppositeHelper('concat'),Q5=u('/'),R5=helper('endsWith'),F=function F(){return!1;},identity=function identity(x){return x;},S5=helper('includes'),T5=helper('join'),U5=helper('lastIndexOf'),V5=propHelper('length'),W5=u('%'),X5=u('*'),not=function not(x){return!x;},Y5=helper('padEnd'),Z5=helper('padStart'),a6=simpleHelper('reverse'),b6=helper('startsWith'),c6=u('-'),T=function T(){return!0;},d6=simpleHelper('toLowerCase'),e6=simpleHelper('toString'),f6=simpleHelper('toUpperCase'),g6=simpleHelper('trim');e.add=M5;e.always=always;e.complement=complement;e.concat=P5;e.divide=Q5;e.endsWith=R5;e.F=F;e.identity=identity;e.includes=S5;e.join=T5;e.lastIndexOf=U5;e.length=V5;e.modulo=W5;e.multiply=X5;e.not=not;e.padEnd=Y5;e.padStart=Z5;e.reverse=a6;e.startsWith=b6;e.subtract=c6;e.T=T;e.toLower=d6;e.toString=e6;e.toUpper=f6;e.trim=g6;e.addIndex=addIndex;e.adjust=X;e.all=all;e.allPass=allPass;e.anyPass=anyPass;e.any=q1;e.append=A1;e.both=C1;e.compose=compose;e.contains=A2;e.curry=curry$1;e.dec=dec;e.defaultTo=defaultTo;e.drop=H2;e.dropLast=J2;e.either=L2;e.inc=inc;e.equals=v2;e.filter=j1;e.find=O2;e.findIndex=T2;e.flatten=flatten;e.flip=flip;e.has=e3;e.head=head;e.ifElse=j3;e.isNil=isNil;e.indexOf=n3;e.init=init;e.last=last;e.map=D3;e.match=H3;e.merge=K3;e.omit=omit;e.partialCurry=partialCurry;e.path=path;e.pathOr=d4;e.pick=pick;e.pipe=pipe;e.pluck=q4;e.prepend=u4;e.prop=x4;e.propEq=B4;e.range=range;e.reduce=I4;e.repeat=L4;e.replace=P4;e.sort=T4;e.sortBy=Z4;e.split=c5;e.splitEvery=g5;e.tap=j5;e.tail=tail;e.take=m5;e.takeLast=p5;e.test=s5;e.type=type;e.typedPathOr=z5;e.typedDefaultTo=typedDefaultTo;e.uniq=uniq;e.update=I5;e.values=values;Object.defineProperty(e,'__esModule',{value:!0});});
(function(c,d){typeof exports==='object'&&typeof module!=='undefined'?d(exports):typeof define==='function'&&define.amd?define(['exports'],d):d(c.R={});})(this,function(e){'use strict';function helper(g,x,y){if(x===void 0){return function(h,j){return helper(g,h,j);};}else if(y===void 0){return function(k){return helper(g,x,k);};}if(y[g]!==void 0){return y[g](x);}}function curry(l){return function(x,y){if(y===void 0){return function(m){return l(x,m);};}return l(x,y);};}function curryThree(q){return function(x,y,z){if(y===void 0){var helper=function helper(r,s){return q(x,r,s);};return curry(helper);}else if(z===void 0){return function(t){return q(x,y,t);};}return q(x,y,z);};}function mathHelper(u,x,y){switch(u){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}var v=curryThree(mathHelper);function oppositeHelper(w,x,y){if(x===void 0){return function(A,B){return oppositeHelper(w,A,B);};}else if(y===void 0){return function(C){return oppositeHelper(w,x,C);};}if(x[w]!==void 0){return x[w](y);}}function propHelper(D,x){if(x===void 0){return function(E){return propHelper(D,E);};}return x[D];}function simpleHelper(G,x){if(x===void 0){return function(H){return simpleHelper(G,H);};}if(x[G]!==void 0){return x[G]();}}function addIndex(I){return function(J){for(var K=0,newFn=function newFn(){for(var L=arguments.length,M=Array(L),N=0;N<L;N++){M[N]=arguments[N];}return J.apply(null,[].concat(M,[K++]));},O=arguments.length,P=Array(O>1?O-1:0),Q=1;Q<O;Q++){P[Q-1]=arguments[Q];}return I.apply(null,[newFn].concat(P));};}function adjust(R,S,U){var V=U.concat();return V.map(function(W,X){if(X===S){return R(U[S]);}return W;});}var Y=curryThree(adjust);function filterObject(Z,a1){var b1={};for(var c1 in a1){if(Z(a1[c1])){b1[c1]=a1[c1];}}return b1;}function filter(fn,e1){if(e1.length===void 0){return filterObject(fn,e1);}var f1=-1,g1=0,h1=e1.length,i1=[];while(++f1<h1){var j1=e1[f1];if(fn(j1)){i1[g1++]=j1;}}return i1;}var k1=curry(filter);function all(l1,m1){return k1(l1,m1).length===m1.length;}var n1=curry(all);function any(fn,p1){var q1=0;while(q1<p1.length){if(fn(p1[q1])){return!0;}q1++;}return!1;}var r1=curry(any);function allPass(s1,x){if(arguments.length===1){return function(t1){return allPass(s1,t1);};}return!r1(function(u1){return!u1(x);},s1);}function anyPass(v1,x){if(arguments.length===1){return function(w1){return anyPass(v1,w1);};}return r1(function(x1){return x1(x);})(v1);}function append(y1,z1){if(typeof z1==='string'){return''+z1+y1;}var A1=z1.concat();A1.push(y1);return A1;}var B1=curry(append);function both(x,y){return function(C1){return x(C1)&&y(C1);};}var D1=curry(both);function compose(){for(var E1=arguments.length,F1=Array(E1),G1=0;G1<E1;G1++){F1[G1]=arguments[G1];}return function(H1){var I1=F1.slice();while(I1.length>0){H1=I1.pop()(H1);}return H1;};}var J1={},K1=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(L1){return typeof L1;}:function(M1){return M1&&typeof Symbol==="function"&&M1.constructor===Symbol&&M1!==Symbol.prototype?"symbol":typeof M1;},N1=function(){function AwaitValue(O1){this.value=O1;}function AsyncGenerator(P1){var Q1,R1;function send(S1,T1){return new Promise(function(U1,V1){var W1={key:S1,arg:T1,resolve:U1,reject:V1,next:null};if(R1){R1=R1.next=W1;}else{Q1=R1=W1;resume(S1,T1);}});}function resume(X1,Y1){try{var Z1=P1[X1](Y1),a2=Z1.value;if(a2 instanceof AwaitValue){Promise.resolve(a2.value).then(function(b2){resume("next",b2);},function(c2){resume("throw",c2);});}else{settle(Z1.done?"return":"normal",Z1.value);}}catch(err){settle("throw",err);}}function settle(d2,e2){switch(d2){case"return":Q1.resolve({value:e2,done:!0});break;case"throw":Q1.reject(e2);break;default:Q1.resolve({value:e2,done:!1});break;}Q1=Q1.next;if(Q1){resume(Q1.key,Q1.arg);}else{R1=null;}}this._invoke=send;if(typeof P1.return!=="function"){this.return=void 0;}}if(typeof Symbol==="function"&&Symbol.asyncIterator){AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this;};}AsyncGenerator.prototype.next=function(f2){return this._invoke("next",f2);};AsyncGenerator.prototype.throw=function(g2){return this._invoke("throw",g2);};AsyncGenerator.prototype.return=function(h2){return this._invoke("return",h2);};return{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments));};},await:function(j2){return new AwaitValue(j2);}};}(),toConsumableArray=function(k2){if(Array.isArray(k2)){for(var i=0,l2=Array(k2.length);i<k2.length;i++)l2[i]=k2[i];return l2;}else{return Array.from(k2);}};J1;function type(a){var m2=typeof a==='undefined'?'undefined':K1(a);if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(m2==='boolean'){return'Boolean';}else if(m2==='number'){return'Number';}else if(m2==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}var n2=a.toString();if(n2.startsWith('async')){return'Async';}else if(n2==='[object Promise]'){return'Promise';}else if(n2.includes('function')||n2.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return function(o2){return equals(a,o2);};}if(a===b){return!0;}var p2=type(a);if(p2!==type(b)){return!1;}if(p2==='Array'){var q2=Array.from(a),r2=Array.from(b);return q2.sort().toString()===r2.sort().toString();}if(p2==='Object'){var s2=Object.keys(a);if(s2.length===Object.keys(b).length){if(s2.length===0){return!0;}var t2=!0;s2.map(function(u2){if(t2){var v2=type(a[u2]),w2=type(b[u2]);if(v2===w2){if(v2==='Object'){if(Object.keys(a[u2]).length===Object.keys(b[u2]).length){if(Object.keys(a[u2]).length!==0){if(!equals(a[u2],b[u2])){t2=!1;}}}else{t2=!1;}}else if(!equals(a[u2],b[u2])){t2=!1;}}else{t2=!1;}}});return t2;}}return!1;}function contains(x2,y2){var z2=-1,A2=!1;while(++z2<y2.length&&!A2){if(equals(y2[z2],x2)){A2=!0;}}return A2;}var B2=curry(contains);function curry$1(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var C2=arguments.length,p=Array(C2),D2=0;D2<C2;D2++){p[D2]=arguments[D2];}return function(o){return o.length>=f.length?f.apply(void 0,toConsumableArray(o)):curry$1(f,o);}([].concat(toConsumableArray(a),p));};}var dec=function(x){return x-1;};function defaultTo(E2,F2){if(arguments.length===1){return function(G2){return defaultTo(E2,G2);};}return F2===void 0||F2===null||Number.isNaN(F2)===!0?E2:F2;}function drop(H2,a){return a.slice(H2);}var I2=curry(drop);function dropLast(J2,a){return a.slice(0,-J2);}var K2=curry(dropLast);function either(x,y){return function(L2){return x(L2)||y(L2);};}var M2=curry(either),inc=function(x){return x+1;};function find(fn,O2){return O2.find(fn);}var P2=curry(find);function findIndex(fn,R2){var S2=R2.length,T2=-1;while(++T2<S2){if(fn(R2[T2])){return T2;}}return-1;}var U2=curry(findIndex);function flatten(V2,W2){W2=W2===void 0?[]:W2;for(var i=0;i<V2.length;i++){if(Array.isArray(V2[i])){flatten(V2[i],W2);}else{W2.push(V2[i]);}}return W2;}function flipExport(fn){return function(){for(var Y2=arguments.length,Z2=Array(Y2),a3=0;a3<Y2;a3++){Z2[a3]=arguments[a3];}if(Z2.length===1){return function(b3){return fn(b3,Z2[0]);};}else if(Z2.length===2){return fn(Z2[1],Z2[0]);}return void 0;};}function flip(fn){return flipExport(fn);}function tap(fn,e3){fn(e3);return e3;}var f3=curry(tap);function mapObject(fn,h3){var i3={};for(var j3 in h3){i3[j3]=fn(h3[j3]);}return i3;}function map(fn,l3){if(l3.length===void 0){return mapObject(fn,l3);}var m3=-1,n3=l3.length,o3=Array(n3);while(++m3<n3){o3[m3]=fn(l3[m3]);}return o3;}var p3=curry(map);function forEach(fn,r3){return p3(f3(fn),r3);}var s3=curry(forEach);function has(t3,u3){return u3[t3]!==void 0;}var v3=curry(has);function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function ifElse(w3,x3,y3){return function(z3){if(w3(z3)===!0){return x3(z3);}return y3(z3);};}var A3=curryThree(ifElse);function isNil(x){return x===void 0||x===null;}function indexOf(x,B3){var C3=-1,D3=B3.length;while(++C3<D3){if(B3[C3]===x){return C3;}}return-1;}var E3=curry(indexOf);function baseSlice(F3,G3,H3){var I3=-1,J3=F3.length;H3=H3>J3?J3:H3;if(H3<0){H3+=J3;}J3=G3>H3?0:H3-G3>>>0;G3>>>=0;var K3=Array(J3);while(++I3<J3){K3[I3]=F3[I3+G3];}return K3;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function match(L3,M3){var N3=M3.match(L3);return N3===null?[]:N3;}var O3=curry(match);function merge(P3,Q3){return Object.assign({},P3,Q3);}var R3=curry(merge);function omit(S3,T3){if(arguments.length===1){return function(U3){return omit(S3,U3);};}if(T3===void 0||T3===null){return void 0;}if(typeof S3==='string'){S3=S3.split(',').map(function(x){return x.trim();});}var V3={};for(var W3 in T3){if(!S3.includes(W3)){V3[W3]=T3[W3];}}return V3;}function partialCurry(fn){var Y3=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(Z3){if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise(function(a4,b4){fn(R3(Z3,Y3)).then(a4).catch(b4);});}return fn(R3(Z3,Y3));};}function path(c4,d4){if(arguments.length===1){return function(e4){return path(c4,e4);};}if(d4===null||d4===void 0){return void 0;}var f4=d4,g4=0;if(typeof c4==='string'){c4=c4.split('.');}while(g4<c4.length){if(f4===null||f4===void 0){return void 0;}f4=f4[c4[g4]];g4++;}return f4;}function pathOr(h4,i4,j4){return defaultTo(h4,path(i4,j4));}var k4=curry$1(pathOr);function pick(l4,m4){if(arguments.length===1){return function(n4){return pick(l4,n4);};}if(!(type(m4)==='Object')){return void 0;}if(type(l4)==='String'){l4=l4.split(',').map(function(x){return x.trim();});}var o4={},p4=0;while(p4<l4.length){if(l4[p4]in m4){o4[l4[p4]]=m4[l4[p4]];}p4++;}return o4;}function pipe(){for(var q4=arguments.length,r4=Array(q4),s4=0;s4<q4;s4++){r4[s4]=arguments[s4];}return compose.apply(void 0,toConsumableArray(r4.reverse()));}function pluck(t4,u4){var v4=[];p3(function(w4){if(!(w4[t4]===void 0)){v4.push(w4[t4]);}},u4);return v4;}var x4=curry(pluck);function prepend(y4,z4){if(typeof z4==='string'){return''+y4+z4;}var A4=z4.concat();A4.unshift(y4);return A4;}var B4=curry(prepend);function prop(C4,D4){return D4[C4];}var E4=curry(prop);function propEq(F4,G4,H4){return H4[F4]===G4;}var I4=curryThree(propEq);function range(J4,K4){for(var L4=[],i=J4;i<K4;i++){L4.push(i);}return L4;}function reduce(fn,N4,O4){return O4.reduce(fn,N4);}var P4=curryThree(reduce);function repeat(a,Q4){var R4=Array(Q4);return R4.fill(a);}var S4=curry(repeat);function replace(T4,U4,V4){return V4.replace(T4,U4);}var W4=curryThree(replace);function sort(fn,Y4){var Z4=Y4.concat();return Z4.sort(fn);}var a5=curry(sort);function sortBy(fn,c5){var d5=c5.concat();return d5.sort(function(a,b){var e5=fn(a),f5=fn(b);return e5<f5?-1:e5>f5?1:0;});}var g5=curry(sortBy);function split(h5,i5){return i5.split(h5);}var j5=curry(split);function splitEvery(k5,a){k5=k5>1?k5:1;var l5=[],m5=0;while(m5<a.length){l5.push(a.slice(m5,m5+=k5));}return l5;}var n5=curry(splitEvery);function tail(o5){return I2(1,o5);}function take(p5,a){if(typeof a==='string'){return a.slice(0,p5);}return baseSlice(a,0,p5);}var q5=curry(take);function takeLast(r5,a){var s5=a.length;r5=r5>s5?s5:r5;if(typeof a==='string'){return a.slice(s5-r5);}r5=s5-r5;return baseSlice(a,r5,s5);}var t5=curry(takeLast);function test(u5,v5){return v5.search(u5)!==-1;}var w5=curry(test);function times(fn,n){return p3(fn,range(0,n));}var y5=curry(times);function typedDefaultTo(z5,A5){if(arguments.length===1){return function(B5){return typedDefaultTo(z5,B5);};}return type(A5)!==type(z5)?z5:A5;}function typedPathOr(C5,D5,E5){return typedDefaultTo(C5,path(D5,E5));}var F5=curry$1(typedPathOr);function uniq(G5){var H5=-1,I5=[];while(++H5<G5.length){var J5=G5[H5];if(!B2(J5,I5)){I5.push(J5);}}return I5;}function update(K5,L5,M5){var N5=M5.concat();return N5.fill(L5,K5,K5+1);}var O5=curryThree(update);function values(P5){var Q5=[];for(var R5 in P5){Q5.push(P5[R5]);}return Q5;}var S5=v('+'),always=function always(x){return function(){return x;};},complement=function complement(fn){return function(U5){return!fn(U5);};},V5=oppositeHelper('concat'),W5=v('/'),X5=helper('endsWith'),F=function F(){return!1;},identity=function identity(x){return x;},Y5=helper('includes'),Z5=helper('join'),a6=helper('lastIndexOf'),b6=propHelper('length'),c6=v('%'),d6=v('*'),not=function not(x){return!x;},e6=helper('padEnd'),f6=helper('padStart'),g6=simpleHelper('reverse'),h6=helper('startsWith'),i6=v('-'),T=function T(){return!0;},j6=simpleHelper('toLowerCase'),k6=simpleHelper('toString'),l6=simpleHelper('toUpperCase'),m6=simpleHelper('trim');e.add=S5;e.always=always;e.complement=complement;e.concat=V5;e.divide=W5;e.endsWith=X5;e.F=F;e.identity=identity;e.includes=Y5;e.join=Z5;e.lastIndexOf=a6;e.length=b6;e.modulo=c6;e.multiply=d6;e.not=not;e.padEnd=e6;e.padStart=f6;e.reverse=g6;e.startsWith=h6;e.subtract=i6;e.T=T;e.toLower=j6;e.toString=k6;e.toUpper=l6;e.trim=m6;e.addIndex=addIndex;e.adjust=Y;e.all=n1;e.allPass=allPass;e.anyPass=anyPass;e.any=r1;e.append=B1;e.both=D1;e.compose=compose;e.contains=B2;e.curry=curry$1;e.dec=dec;e.defaultTo=defaultTo;e.drop=I2;e.dropLast=K2;e.either=M2;e.inc=inc;e.equals=equals;e.filter=k1;e.find=P2;e.findIndex=U2;e.flatten=flatten;e.flip=flip;e.forEach=s3;e.has=v3;e.head=head;e.ifElse=A3;e.isNil=isNil;e.indexOf=E3;e.init=init;e.last=last;e.map=p3;e.match=O3;e.merge=R3;e.omit=omit;e.partialCurry=partialCurry;e.path=path;e.pathOr=k4;e.pick=pick;e.pipe=pipe;e.pluck=x4;e.prepend=B4;e.prop=E4;e.propEq=I4;e.range=range;e.reduce=P4;e.repeat=S4;e.replace=W4;e.sort=a5;e.sortBy=g5;e.split=j5;e.splitEvery=n5;e.tap=f3;e.tail=tail;e.take=q5;e.takeLast=t5;e.test=w5;e.times=y5;e.type=type;e.typedPathOr=F5;e.typedDefaultTo=typedDefaultTo;e.uniq=uniq;e.update=O5;e.values=values;Object.defineProperty(e,'__esModule',{value:!0});});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc