Comparing version 1.2.0 to 1.2.1
@@ -1,2 +0,2 @@ | ||
function n(r,t){return void 0===t?function(t){return n(r,t)}:r+t}function r(n){return function(r){for(var t=[],u=arguments.length-1;u-- >0;)t[u]=arguments[u+1];var i=0;return n.apply(null,[function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.apply(null,n.concat([i++]))}].concat(t))}}function t(n,r,u){return void 0===r?function(r,u){return t(n,r,u)}:void 0===u?function(u){return t(n,r,u)}:u.concat().map(function(t,i){return i===r?n(u[r]):t})}function u(n,r){if(void 0===r)return function(r){return u(n,r)};if(void 0===r.length)return function(n,r){var t={};for(var u in r)n(r[u],u)&&(t[u]=r[u]);return t}(n,r);for(var t=-1,i=0,o=r.length,e=[];++t<o;){var f=r[t];n(f)&&(e[i++]=f)}return e}function i(n,r){return void 0===r?function(r){return i(n,r)}:u(n,r).length===r.length}function o(n,r){if(void 0===r)return function(r){return o(n,r)};for(var t=0;t<r.length;){if(n(r[t]))return!0;t++}return!1}function e(n,r){return 1===arguments.length?function(r){return e(n,r)}:!o(function(n){return!n(r)},n)}function f(n){return function(){return n}}function c(n,r){return 1===arguments.length?function(r){return c(n,r)}:o(function(n){return n(r)})(n)}function v(n,r){if(void 0===r)return function(r){return v(n,r)};if("string"==typeof r)return""+r+n;var t=r.concat();return t.push(n),t}function l(n,r){return void 0===r?function(r){return l(n,r)}:function(t){return n(t)&&r(t)}}function a(n){return function(r){return!n(r)}}function d(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];var u=n.slice();if(u.length>0){for(var i=u.pop().apply(void 0,r);u.length>0;)i=u.pop()(i);return i}}}function g(n,r){return void 0===r?function(r){return g(n,r)}:"string"==typeof n?""+n+r:n.concat(r)}function h(n){var r=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===r)return"Boolean";if("number"===r)return"Number";if("string"===r)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var t=n.toString();return t.startsWith("async")?"Async":"[object Promise]"===t?"Promise":t.includes("function")||t.includes("=>")?"Function":"Object"}function s(n,r){if(1===arguments.length)return function(r){return s(n,r)};if(n===r)return!0;var t=h(n);if(t!==h(r))return!1;if("Array"===t){var u=Array.from(n),i=Array.from(r);if(u.toString()!==i.toString())return!1;var o=!0;return u.forEach(function(n,r){o&&(n===i[r]||s(n,i[r])||(o=!1))}),o}if("Object"===t){var e=Object.keys(n);if(e.length!==Object.keys(r).length)return!1;var f=!0;return e.forEach(function(t){if(f){var u=n[t],i=r[t];u===i||s(u,i)||(f=!1)}}),f}return!1}function p(n,r){if(void 0===r)return function(r){return p(n,r)};for(var t=-1,u=!1;++t<r.length&&!u;)s(r[t],n)&&(u=!0);return u}function y(n,r){return void 0===r&&(r=[]),function(){for(var t,u=[],i=arguments.length;i--;)u[i]=arguments[i];return(t=r.concat(u)).length>=n.length?n.apply(void 0,t):y(n,t)}}function b(n){return n-1}function A(n,r){return 1===arguments.length?function(r){return A(n,r)}:void 0===r||null===r||!0===Number.isNaN(r)?n:r}function m(n,r){if(1===arguments.length)return function(r){return m(n,r)};if(null!==r&&void 0!==r){var t="string"==typeof n?n=n.split(","):n,u={};for(var i in r)t.includes(i)||(u[i]=r[i]);return u}}function j(n,r){if(1===arguments.length)return function(r){return j(n,r)};if(null!==r&&void 0!==r){var t={};for(var u in r)u!==""+n&&(t[u]=r[u]);return t}}function O(n,r){return void 0===r?function(r){return O(n,r)}:n/r}function S(n,r){return void 0===r?function(r){return S(n,r)}:r.slice(n)}function N(n,r){return void 0===r?function(r){return N(n,r)}:r.slice(0,-n)}function E(n,r){return void 0===r?function(r){return E(n,r)}:function(t){return n(t)||r(t)}}function P(n,r){return void 0===r?function(r){return P(n,r)}:r.endsWith(n)}function k(){return!1}function x(n,r){return void 0===r?function(r){return x(n,r)}:r.find(n)}function W(n,r){if(void 0===r)return function(r){return W(n,r)};for(var t=r.length,u=-1;++u<t;)if(n(r[u]))return u;return-1}function w(n,r){r=void 0===r?[]:r;for(var t=0;t<n.length;t++)Array.isArray(n[t])?w(n[t],r):r.push(n[t]);return r}function C(n){for(var r=[],t=arguments.length-1;t-- >0;)r[t]=arguments[t+1];return function(n){return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 1===r.length?function(t){return n(t,r[0])}:2===r.length?n(r[1],r[0]):void 0}}(n)}function R(n,r){if(void 0===r)return function(r){return R(n,r)};if(void 0===r.length)return function(n,r){var t={};for(var u in r)t[u]=n(r[u],u);return t}(n,r);for(var t=-1,u=r.length,i=Array(u);++t<u;)i[t]=n(r[t]);return i}function U(n,r){return void 0===r?function(r){return U(n,r)}:(R(n,r),r)}function B(n,r){if(void 0===r)return function(r){return B(n,r)};for(var t={},u=0;u<r.length;u++){var i=r[u],o=n(i);t[o]||(t[o]=[]),t[o].push(i)}return t}function F(n,r){return void 0===r?function(r){return F(n,r)}:void 0!==r[n]}function L(n){return"string"==typeof n?n[0]||"":n[0]}function q(n){return n}function z(n,r,t){return void 0===r?function(r,t){return z(n,r,t)}:void 0===t?function(t){return z(n,r,t)}:function(u){return!0===("boolean"==typeof n?n:n(u))?r(u):t(u)}}function D(n){return n+1}function G(n,r){return void 0===r?function(r){return G(n,r)}:r.includes(n)}function H(n,r){if(void 0===r)return function(r){return H(n,r)};for(var t={},u=0;u<r.length;u++){var i=r[u];t[n(i)]=i}return t}function I(n,r){if(void 0===r)return function(r){return I(n,r)};for(var t=-1,u=r.length;++t<u;)if(r[t]===n)return t;return-1}function J(n,r,t){var u=-1,i=n.length;(t=t>i?i:t)<0&&(t+=i),i=r>t?0:t-r>>>0,r>>>=0;for(var o=Array(i);++u<i;)o[u]=n[u+r];return o}function K(n){return"string"==typeof n?n.slice(0,-1):n.length?J(n,0,-1):[]}function M(n,r){return 1===arguments.length?function(r){return M(n,r)}:null!=r&&r.constructor===n||r instanceof n}function Q(n){return void 0===n||null===n}function T(n,r){return void 0===r?function(r){return T(n,r)}:r.join(n)}function V(n){return Object.keys(n)}function X(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1]}function Y(n,r){if(void 0===r)return function(r){return Y(n,r)};var t=-1;return r.map(function(r,u){s(r,n)&&(t=u)}),t}function Z(n){return n.length}function $(n,r){if(void 0===r)return function(r){return $(n,r)};var t=r.match(n);return null===t?[]:t}function _(n,r){return void 0===r?function(r){return _(n,r)}:Object.assign({},n,r)}function nn(n,r){return 1===arguments.length?function(r){return nn(n,r)}:r>n?r:n}function rn(n,r,t){return 2===arguments.length?function(t){return rn(n,r,t)}:1===arguments.length?function(r,t){return rn(n,r,t)}:n(t)>n(r)?t:r}function tn(n,r){return 1===arguments.length?function(r){return tn(n,r)}:r<n?r:n}function un(n,r,t){return 2===arguments.length?function(t){return un(n,r,t)}:1===arguments.length?function(r,t){return un(n,r,t)}:n(t)<n(r)?t:r}function on(n,r){return void 0===r?function(r){return on(n,r)}:n%r}function en(n,r){return void 0===r?function(r){return en(n,r)}:n*r}function fn(n,r){return void 0===r?function(r){return fn(n,r)}:0===r.filter(n).length}function cn(n){return!n}function vn(n,r){if(void 0===r)return function(r){return vn(n,r)};var t=n<0?r.length+n:n;return"[object String]"===Object.prototype.toString.call(r)?r.charAt(t):r[t]}function ln(n,r){return void 0===r&&(r={}),function(t){return"Async"===h(n)||"Promise"===h(n)?new Promise(function(u,i){n(_(t,r)).then(u).catch(i)}):n(_(t,r))}}function an(n,r){if(1===arguments.length)return function(r){return an(n,r)};if(null!==r&&void 0!==r){for(var t=r,u=0,i="string"==typeof n?n.split("."):n;u<i.length;){if(null===t||void 0===t)return;t=t[i[u]],u++}return t}}var dn=y(function(n,r,t){return A(n,an(r,t))});function gn(n,r){if(1===arguments.length)return function(r){return gn(n,r)};if(null!==r&&void 0!==r){for(var t="string"==typeof n?n.split(","):n,u={},i=0;i<t.length;)t[i]in r&&(u[t[i]]=r[t[i]]),i++;return u}}function hn(n,r){if(1===arguments.length)return function(r){return hn(n,r)};if(null!==r&&void 0!==r){for(var t="string"==typeof n?n.split(","):n,u={},i=0;i<t.length;)u[t[i]]=t[i]in r?r[t[i]]:void 0,i++;return u}}function sn(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return d.apply(void 0,n.reverse())}function pn(n,r){if(void 0===r)return function(r){return pn(n,r)};var t=[];return R(function(r){void 0!==r[n]&&t.push(r[n])},r),t}function yn(n,r){if(void 0===r)return function(r){return yn(n,r)};if("string"==typeof r)return""+n+r;var t=r.concat();return t.unshift(n),t}function bn(n,r){return void 0===r?function(r){return bn(n,r)}:r[n]}function An(n,r,t){return void 0===r?function(r,t){return An(n,r,t)}:void 0===t?function(t){return An(n,r,t)}:t[n]===r}function mn(n,r){if(void 0===r)return function(r){return mn(n,r)};for(var t=[],u=n;u<r;u++)t.push(u);return t}function jn(n,r,t){return void 0===r?function(r,t){return jn(n,r,t)}:void 0===t?function(t){return jn(n,r,t)}:t.reduce(n,r)}function On(n,r){return void 0===r?function(r){return On(n,r)}:u(function(r){return!n(r)},r)}function Sn(n,r){return void 0===r?function(r){return Sn(n,r)}:Array(r).fill(n)}function Nn(n,r,t){return void 0===r?function(r,t){return Nn(n,r,t)}:void 0===t?function(t){return Nn(n,r,t)}:t.replace(n,r)}function En(n){return n.concat().reverse()}function Pn(n,r){return void 0===r?function(r){return Pn(n,r)}:r.concat().sort(n)}function kn(n,r){return void 0===r?function(r){return kn(n,r)}:r.concat().sort(function(r,t){var u=n(r),i=n(t);return u<i?-1:u>i?1:0})}function xn(n,r){return void 0===r?function(r){return xn(n,r)}:r.split(n)}function Wn(n,r){if(void 0===r)return function(r){return Wn(n,r)};for(var t=n>1?n:1,u=[],i=0;i<r.length;)u.push(r.slice(i,i+=t));return u}function wn(n,r){return void 0===r?function(r){return wn(n,r)}:r.startsWith(n)}function Cn(n,r){return void 0===r?function(r){return Cn(n,r)}:n-r}function Rn(){return!0}function Un(n){return S(1,n)}function Bn(n,r){return void 0===r?function(r){return Bn(n,r)}:"string"==typeof r?r.slice(0,n):J(r,0,n)}function Fn(n,r){if(void 0===r)return function(r){return Fn(n,r)};var t=r.length,u=n>t?t:n;return"string"==typeof r?r.slice(t-u):J(r,u=t-u,t)}function Ln(n,r){return void 0===r?function(r){return Ln(n,r)}:(n(r),r)}function qn(n,r){return void 0===r?function(r){return qn(n,r)}:-1!==r.search(n)}function zn(n,r){return void 0===r?function(r){return zn(n,r)}:R(n,mn(0,r))}function Dn(n){return n.toLowerCase()}function Gn(n){return n.toString()}function Hn(n){return n.toUpperCase()}function In(n){return n.trim()}function Jn(n){for(var r=-1,t=[];++r<n.length;){var u=n[r];p(u,t)||t.push(u)}return t}function Kn(n,r){if(1===arguments.length)return function(r){return Kn(n,r)};for(var t=-1,u=[],i=function(){var i=r[t];o(function(r){return n(i,r)},u)||u.push(i)};++t<r.length;)i();return u}function Mn(n,r,t){return void 0===r?function(r,t){return Mn(n,r,t)}:void 0===t?function(t){return Mn(n,r,t)}:t.concat().fill(r,n,n+1)}function Qn(n){var r=[];for(var t in n)r.push(n[t]);return r}function Tn(n,r){return jn(function(r,t){return p(t,n)?r:r.concat(t)},[],r)}function Vn(n,t){return void 0===t?function(r){return Vn(n,r)}:r(jn)(function(n,r,u){return t[u]?n.concat([[r,t[u]]]):n},[],n)}function Xn(n,r){return void 0===r?function(r){return Xn(n,r)}:n.reduce(function(n,t,u){return n[t]=r[u],n},{})}export{n as add,r as addIndex,t as adjust,i as all,e as allPass,f as always,o as any,c as anyPass,v as append,l as both,a as complement,d as compose,g as concat,p as contains,y as curry,b as dec,A as defaultTo,j as dissoc,O as divide,S as drop,N as dropLast,E as either,P as endsWith,s as equals,k as F,u as filter,x as find,W as findIndex,w as flatten,C as flip,U as forEach,B as groupBy,F as has,L as head,q as identity,z as ifElse,D as inc,G as includes,H as indexBy,I as indexOf,K as init,M as is,Q as isNil,T as join,V as keys,X as last,Y as lastIndexOf,Z as length,R as map,$ as match,_ as merge,nn as max,rn as maxBy,tn as min,un as minBy,on as modulo,en as multiply,fn as none,cn as not,vn as nth,m as omit,ln as partialCurry,an as path,dn as pathOr,gn as pick,hn as pickAll,sn as pipe,pn as pluck,yn as prepend,bn as prop,An as propEq,mn as range,jn as reduce,On as reject,Sn as repeat,Nn as replace,En as reverse,Pn as sort,kn as sortBy,xn as split,Wn as splitEvery,wn as startsWith,Cn as subtract,Rn as T,Un as tail,Bn as take,Fn as takeLast,Ln as tap,qn as test,zn as times,Dn as toLower,Gn as toString,Hn as toUpper,In as trim,h as type,Jn as uniq,Kn as uniqWith,Mn as update,Qn as values,Tn as without,Vn as zip,Xn as zipObj}; | ||
function n(r,t){return void 0===t?function(t){return n(r,t)}:r+t}function r(n){return function(r){for(var t=[],u=arguments.length-1;u-- >0;)t[u]=arguments[u+1];var i=0;return n.apply(null,[function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.apply(null,n.concat([i++]))}].concat(t))}}function t(n,r,u){return void 0===r?function(r,u){return t(n,r,u)}:void 0===u?function(u){return t(n,r,u)}:u.concat().map(function(t,i){return i===r?n(u[r]):t})}function u(n,r){if(void 0===r)return function(r){return u(n,r)};if(void 0===r.length)return function(n,r){var t={};for(var u in r)n(r[u],u)&&(t[u]=r[u]);return t}(n,r);for(var t=-1,i=0,e=r.length,o=[];++t<e;){var f=r[t];n(f)&&(o[i++]=f)}return o}function i(n,r){return void 0===r?function(r){return i(n,r)}:u(n,r).length===r.length}function e(n,r){if(void 0===r)return function(r){return e(n,r)};for(var t=0;t<r.length;){if(n(r[t]))return!0;t++}return!1}function o(n,r){return 1===arguments.length?function(r){return o(n,r)}:!e(function(n){return!n(r)},n)}function f(n){return function(){return n}}function c(n,r){return 1===arguments.length?function(r){return c(n,r)}:e(function(n){return n(r)})(n)}function v(n,r){if(void 0===r)return function(r){return v(n,r)};if("string"==typeof r)return""+r+n;var t=r.concat();return t.push(n),t}function l(n,r){return void 0===r&&(r=[]),function(){for(var t,u=[],i=arguments.length;i--;)u[i]=arguments[i];return(t=r.concat(u)).length>=n.length?n.apply(void 0,t):l(n,t)}}var a=l(function(n,r,t){var u;return Object.assign({},t,((u={})[n]=r,u))});function d(n,r){return void 0===r?function(r){return d(n,r)}:function(t){return n(t)&&r(t)}}function g(n){return function(r){return!n(r)}}function h(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];var u=n.slice();if(u.length>0){for(var i=u.pop().apply(void 0,r);u.length>0;)i=u.pop()(i);return i}}}function s(n,r){return void 0===r?function(r){return s(n,r)}:"string"==typeof n?""+n+r:n.concat(r)}function p(n){var r=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===r)return"Boolean";if("number"===r)return"Number";if("string"===r)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var t=n.toString();return t.startsWith("async")?"Async":"[object Promise]"===t?"Promise":t.includes("function")||t.includes("=>")?"Function":"Object"}function y(n,r){if(1===arguments.length)return function(r){return y(n,r)};if(n===r)return!0;var t=p(n);if(t!==p(r))return!1;if("Array"===t){var u=Array.from(n),i=Array.from(r);if(u.toString()!==i.toString())return!1;var e=!0;return u.forEach(function(n,r){e&&(n===i[r]||y(n,i[r])||(e=!1))}),e}if("Object"===t){var o=Object.keys(n);if(o.length!==Object.keys(r).length)return!1;var f=!0;return o.forEach(function(t){if(f){var u=n[t],i=r[t];u===i||y(u,i)||(f=!1)}}),f}return!1}function b(n,r){if(void 0===r)return function(r){return b(n,r)};for(var t=-1,u=!1;++t<r.length&&!u;)y(r[t],n)&&(u=!0);return u}function A(n){return n-1}function m(n,r){return 1===arguments.length?function(r){return m(n,r)}:void 0===r||null===r||!0===Number.isNaN(r)?n:r}function j(n,r){if(1===arguments.length)return function(r){return j(n,r)};if(null===r||void 0===r)return{};var t={};for(var u in r)t[u]=r[u];return delete t[n],t}function O(n,r){return void 0===r?function(r){return O(n,r)}:n/r}function S(n,r){return void 0===r?function(r){return S(n,r)}:r.slice(n)}function N(n,r){return void 0===r?function(r){return N(n,r)}:r.slice(0,-n)}function E(n,r){return void 0===r?function(r){return E(n,r)}:function(t){return n(t)||r(t)}}function P(n,r,t){var u=-1,i=n.length;(t=t>i?i:t)<0&&(t+=i),i=r>t?0:t-r>>>0,r>>>=0;for(var e=Array(i);++u<i;)e[u]=n[u+r];return e}function k(n,r){if(void 0===r)return function(r){return k(n,r)};var t=r.length,u=n>t?t:n;return"string"==typeof r?r.slice(t-u):P(r,u=t-u,t)}function x(n,r){return 1===arguments.length?function(r){return x(n,r)}:y(n,k(n.length,r))}function w(){return!1}function C(n,r){return void 0===r?function(r){return C(n,r)}:r.find(n)}function R(n,r){if(void 0===r)return function(r){return R(n,r)};for(var t=r.length,u=-1;++u<t;)if(n(r[u]))return u;return-1}function U(n,r){r=void 0===r?[]:r;for(var t=0;t<n.length;t++)Array.isArray(n[t])?U(n[t],r):r.push(n[t]);return r}function W(n){for(var r=[],t=arguments.length-1;t-- >0;)r[t]=arguments[t+1];return function(n){return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 1===r.length?function(t){return n(t,r[0])}:2===r.length?n(r[1],r[0]):void 0}}(n)}function B(n,r){if(1===arguments.length)return function(r){return B(n,r)};if(void 0===r)return[];if(void 0===r.length)return function(n,r){var t={};for(var u in r)t[u]=n(r[u],u);return t}(n,r);for(var t=-1,u=r.length,i=Array(u);++t<u;)i[t]=n(r[t]);return i}function F(n,r){return void 0===r?function(r){return F(n,r)}:(B(n,r),r)}function L(n,r){if(void 0===r)return function(r){return L(n,r)};for(var t={},u=0;u<r.length;u++){var i=r[u],e=n(i);t[e]||(t[e]=[]),t[e].push(i)}return t}function q(n,r){return void 0===r?function(r){return q(n,r)}:void 0!==r[n]}function z(n){return"string"==typeof n?n[0]||"":n[0]}function D(n){return n}function G(n,r,t){return void 0===r?function(r,t){return G(n,r,t)}:void 0===t?function(t){return G(n,r,t)}:function(u){return!0===("boolean"==typeof n?n:n(u))?r(u):t(u)}}function H(n){return n+1}function I(n,r){return void 0===r?function(r){return I(n,r)}:r.includes(n)}function J(n,r){if(void 0===r)return function(r){return J(n,r)};for(var t={},u=0;u<r.length;u++){var i=r[u];t[n(i)]=i}return t}function K(n,r){if(void 0===r)return function(r){return K(n,r)};for(var t=-1,u=r.length;++t<u;)if(r[t]===n)return t;return-1}function M(n){return"string"==typeof n?n.slice(0,-1):n.length?P(n,0,-1):[]}function Q(n,r){return 1===arguments.length?function(r){return Q(n,r)}:null!=r&&r.constructor===n||r instanceof n}function T(n){return void 0===n||null===n}function V(n,r){return void 0===r?function(r){return V(n,r)}:r.join(n)}function X(n){return Object.keys(n)}function Y(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1]}function Z(n,r){if(void 0===r)return function(r){return Z(n,r)};var t=-1;return r.map(function(r,u){y(r,n)&&(t=u)}),t}function $(n){return n.length}function _(n,r){if(void 0===r)return function(r){return _(n,r)};var t=r.match(n);return null===t?[]:t}function nn(n,r){return 1===arguments.length?function(r){return nn(n,r)}:Object.assign({},n||{},r||{})}function rn(n,r){return 1===arguments.length?function(r){return rn(n,r)}:r>n?r:n}function tn(n,r,t){return 2===arguments.length?function(t){return tn(n,r,t)}:1===arguments.length?function(r,t){return tn(n,r,t)}:n(t)>n(r)?t:r}function un(n,r){return 1===arguments.length?function(r){return un(n,r)}:r<n?r:n}function en(n,r,t){return 2===arguments.length?function(t){return en(n,r,t)}:1===arguments.length?function(r,t){return en(n,r,t)}:n(t)<n(r)?t:r}function on(n,r){return void 0===r?function(r){return on(n,r)}:n%r}function fn(n,r){return void 0===r?function(r){return fn(n,r)}:n*r}function cn(n,r){return void 0===r?function(r){return cn(n,r)}:0===r.filter(n).length}function vn(n){return!n}function ln(n,r){if(void 0===r)return function(r){return ln(n,r)};var t=n<0?r.length+n:n;return"[object String]"===Object.prototype.toString.call(r)?r.charAt(t):r[t]}function an(n,r){if(1===arguments.length)return function(r){return an(n,r)};if(null!==r&&void 0!==r){var t="string"==typeof n?n=n.split(","):n,u={};for(var i in r)t.includes(i)||(u[i]=r[i]);return u}}function dn(n,r){return void 0===r&&(r={}),function(t){return"Async"===p(n)||"Promise"===p(n)?new Promise(function(u,i){n(nn(t,r)).then(u).catch(i)}):n(nn(t,r))}}function gn(n,r){if(1===arguments.length)return function(r){return gn(n,r)};if(null!==r&&void 0!==r){for(var t=r,u=0,i="string"==typeof n?n.split("."):n;u<i.length;){if(null===t||void 0===t)return;t=t[i[u]],u++}return t}}var hn=l(function(n,r,t){return m(n,gn(r,t))});function sn(n,r){if(1===arguments.length)return function(r){return sn(n,r)};if(null!==r&&void 0!==r){for(var t="string"==typeof n?n.split(","):n,u={},i=0;i<t.length;)t[i]in r&&(u[t[i]]=r[t[i]]),i++;return u}}function pn(n,r){if(1===arguments.length)return function(r){return pn(n,r)};if(null!==r&&void 0!==r){for(var t="string"==typeof n?n.split(","):n,u={},i=0;i<t.length;)u[t[i]]=t[i]in r?r[t[i]]:void 0,i++;return u}}function yn(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return h.apply(void 0,n.reverse())}function bn(n,r){if(void 0===r)return function(r){return bn(n,r)};var t=[];return B(function(r){void 0!==r[n]&&t.push(r[n])},r),t}function An(n,r){if(void 0===r)return function(r){return An(n,r)};if("string"==typeof r)return""+n+r;var t=r.concat();return t.unshift(n),t}function mn(n,r){return void 0===r?function(r){return mn(n,r)}:r[n]}function jn(n,r,t){return void 0===r?function(r,t){return jn(n,r,t)}:void 0===t?function(t){return jn(n,r,t)}:t[n]===r}function On(n,r){if(void 0===r)return function(r){return On(n,r)};for(var t=[],u=n;u<r;u++)t.push(u);return t}function Sn(n,r,t){return void 0===r?function(r,t){return Sn(n,r,t)}:void 0===t?function(t){return Sn(n,r,t)}:t.reduce(n,r)}function Nn(n,r){return void 0===r?function(r){return Nn(n,r)}:u(function(r){return!n(r)},r)}function En(n,r){return void 0===r?function(r){return En(n,r)}:Array(r).fill(n)}function Pn(n,r,t){return void 0===r?function(r,t){return Pn(n,r,t)}:void 0===t?function(t){return Pn(n,r,t)}:t.replace(n,r)}function kn(n){return n.concat().reverse()}function xn(n,r){return void 0===r?function(r){return xn(n,r)}:r.concat().sort(n)}function wn(n,r){return void 0===r?function(r){return wn(n,r)}:r.concat().sort(function(r,t){var u=n(r),i=n(t);return u<i?-1:u>i?1:0})}function Cn(n,r){return void 0===r?function(r){return Cn(n,r)}:r.split(n)}function Rn(n,r){if(void 0===r)return function(r){return Rn(n,r)};for(var t=n>1?n:1,u=[],i=0;i<r.length;)u.push(r.slice(i,i+=t));return u}function Un(n,r){return void 0===r?function(r){return Un(n,r)}:r.startsWith(n)}function Wn(n,r){return void 0===r?function(r){return Wn(n,r)}:n-r}function Bn(){return!0}function Fn(n){return S(1,n)}function Ln(n,r){return void 0===r?function(r){return Ln(n,r)}:"string"==typeof r?r.slice(0,n):P(r,0,n)}function qn(n,r){return void 0===r?function(r){return qn(n,r)}:(n(r),r)}function zn(n,r){return void 0===r?function(r){return zn(n,r)}:-1!==r.search(n)}function Dn(n,r){return void 0===r?function(r){return Dn(n,r)}:B(n,On(0,r))}function Gn(n){return n.toLowerCase()}function Hn(n){return n.toString()}function In(n){return n.toUpperCase()}function Jn(n){return n.trim()}function Kn(n){for(var r=-1,t=[];++r<n.length;){var u=n[r];b(u,t)||t.push(u)}return t}function Mn(n,r){if(1===arguments.length)return function(r){return Mn(n,r)};for(var t=-1,u=[],i=function(){var i=r[t];e(function(r){return n(i,r)},u)||u.push(i)};++t<r.length;)i();return u}function Qn(n,r,t){return void 0===r?function(r,t){return Qn(n,r,t)}:void 0===t?function(t){return Qn(n,r,t)}:t.concat().fill(r,n,n+1)}function Tn(n){var r=[];for(var t in n)r.push(n[t]);return r}function Vn(n,r){return Sn(function(r,t){return b(t,n)?r:r.concat(t)},[],r)}function Xn(n,t){return void 0===t?function(r){return Xn(n,r)}:r(Sn)(function(n,r,u){return t[u]?n.concat([[r,t[u]]]):n},[],n)}function Yn(n,r){return void 0===r?function(r){return Yn(n,r)}:n.reduce(function(n,t,u){return n[t]=r[u],n},{})}export{n as add,r as addIndex,t as adjust,i as all,o as allPass,f as always,e as any,c as anyPass,v as append,a as assoc,d as both,g as complement,h as compose,s as concat,b as contains,l as curry,A as dec,m as defaultTo,j as dissoc,O as divide,S as drop,N as dropLast,E as either,x as endsWith,y as equals,w as F,u as filter,C as find,R as findIndex,U as flatten,W as flip,F as forEach,L as groupBy,q as has,z as head,D as identity,G as ifElse,H as inc,I as includes,J as indexBy,K as indexOf,M as init,Q as is,T as isNil,V as join,X as keys,Y as last,Z as lastIndexOf,$ as length,B as map,_ as match,nn as merge,rn as max,tn as maxBy,un as min,en as minBy,on as modulo,fn as multiply,cn as none,vn as not,ln as nth,an as omit,dn as partialCurry,gn as path,hn as pathOr,sn as pick,pn as pickAll,yn as pipe,bn as pluck,An as prepend,mn as prop,jn as propEq,On as range,Sn as reduce,Nn as reject,En as repeat,Pn as replace,kn as reverse,xn as sort,wn as sortBy,Cn as split,Rn as splitEvery,Un as startsWith,Wn as subtract,Bn as T,Fn as tail,Ln as take,k as takeLast,qn as tap,zn as test,Dn as times,Gn as toLower,Hn as toString,In as toUpper,Jn as trim,p as type,Kn as uniq,Mn as uniqWith,Qn as update,Tn as values,Vn as without,Xn as zip,Yn as zipObj}; | ||
//# sourceMappingURL=rambda.esm.js.map |
@@ -1,2 +0,2 @@ | ||
function n(n){return function(r){for(var t=[],e=arguments.length-1;e-- >0;)t[e]=arguments[e+1];var o=0;return n.apply(null,[function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.apply(null,n.concat([o++]))}].concat(t))}}function r(n,t){if(void 0===t)return function(t){return r(n,t)};if(void 0===t.length)return function(n,r){var t={};for(var e in r)n(r[e],e)&&(t[e]=r[e]);return t}(n,t);for(var e=-1,o=0,u=t.length,i=[];++e<u;){var f=t[e];n(f)&&(i[o++]=f)}return i}function t(n,r){if(void 0===r)return function(r){return t(n,r)};for(var e=0;e<r.length;){if(n(r[e]))return!0;e++}return!1}function e(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];var e=n.slice();if(e.length>0){for(var o=e.pop().apply(void 0,r);e.length>0;)o=e.pop()(o);return o}}}function o(n){var r=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===r)return"Boolean";if("number"===r)return"Number";if("string"===r)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var t=n.toString();return t.startsWith("async")?"Async":"[object Promise]"===t?"Promise":t.includes("function")||t.includes("=>")?"Function":"Object"}function u(n,r){if(1===arguments.length)return function(r){return u(n,r)};if(n===r)return!0;var t=o(n);if(t!==o(r))return!1;if("Array"===t){var e=Array.from(n),i=Array.from(r);if(e.toString()!==i.toString())return!1;var f=!0;return e.forEach(function(n,r){f&&(n===i[r]||u(n,i[r])||(f=!1))}),f}if("Object"===t){var c=Object.keys(n);if(c.length!==Object.keys(r).length)return!1;var s=!0;return c.forEach(function(t){if(s){var e=n[t],o=r[t];e===o||u(e,o)||(s=!1)}}),s}return!1}function i(n,r){if(void 0===r)return function(r){return i(n,r)};for(var t=-1,e=!1;++t<r.length&&!e;)u(r[t],n)&&(e=!0);return e}function f(n,r){return void 0===r&&(r=[]),function(){for(var t,e=[],o=arguments.length;o--;)e[o]=arguments[o];return(t=r.concat(e)).length>=n.length?n.apply(void 0,t):f(n,t)}}function c(n,r){return 1===arguments.length?function(r){return c(n,r)}:void 0===r||null===r||!0===Number.isNaN(r)?n:r}function s(n,r){return void 0===r?function(r){return s(n,r)}:r.slice(n)}function p(n,r){if(void 0===r)return function(r){return p(n,r)};if(void 0===r.length)return function(n,r){var t={};for(var e in r)t[e]=n(r[e],e);return t}(n,r);for(var t=-1,e=r.length,o=Array(e);++t<e;)o[t]=n(r[t]);return o}function a(n,r,t){var e=-1,o=n.length;(t=t>o?o:t)<0&&(t+=o),o=r>t?0:t-r>>>0,r>>>=0;for(var u=Array(o);++e<o;)u[e]=n[e+r];return u}function l(n,r){return void 0===r?function(r){return l(n,r)}:Object.assign({},n,r)}function v(n,r){if(1===arguments.length)return function(r){return v(n,r)};if(null!==r&&void 0!==r){for(var t=r,e=0,o="string"==typeof n?n.split("."):n;e<o.length;){if(null===t||void 0===t)return;t=t[o[e]],e++}return t}}var d=f(function(n,r,t){return c(n,v(r,t))});function x(n,r){if(void 0===r)return function(r){return x(n,r)};for(var t=[],e=n;e<r;e++)t.push(e);return t}function h(n,r,t){return void 0===r?function(r,t){return h(n,r,t)}:void 0===t?function(t){return h(n,r,t)}:t.reduce(n,r)}exports.add=function n(r,t){return void 0===t?function(t){return n(r,t)}:r+t},exports.addIndex=n,exports.adjust=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:e.concat().map(function(n,o){return o===t?r(e[t]):n})},exports.all=function n(t,e){return void 0===e?function(r){return n(t,r)}:r(t,e).length===e.length},exports.allPass=function n(r,e){return 1===arguments.length?function(t){return n(r,t)}:!t(function(n){return!n(e)},r)},exports.always=function(n){return function(){return n}},exports.any=t,exports.anyPass=function n(r,e){return 1===arguments.length?function(t){return n(r,t)}:t(function(n){return n(e)})(r)},exports.append=function n(r,t){if(void 0===t)return function(t){return n(r,t)};if("string"==typeof t)return""+t+r;var e=t.concat();return e.push(r),e},exports.both=function n(r,t){return void 0===t?function(t){return n(r,t)}:function(n){return r(n)&&t(n)}},exports.complement=function(n){return function(r){return!n(r)}},exports.compose=e,exports.concat=function n(r,t){return void 0===t?function(t){return n(r,t)}:"string"==typeof r?""+r+t:r.concat(t)},exports.contains=i,exports.curry=f,exports.dec=function(n){return n-1},exports.defaultTo=c,exports.dissoc=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){var e={};for(var o in t)o!==""+r&&(e[o]=t[o]);return e}},exports.divide=function n(r,t){return void 0===t?function(t){return n(r,t)}:r/t},exports.drop=s,exports.dropLast=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.slice(0,-r)},exports.either=function n(r,t){return void 0===t?function(t){return n(r,t)}:function(n){return r(n)||t(n)}},exports.endsWith=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.endsWith(r)},exports.equals=u,exports.F=function(){return!1},exports.filter=r,exports.find=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.find(r)},exports.findIndex=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e=t.length,o=-1;++o<e;)if(r(t[o]))return o;return-1},exports.flatten=function n(r,t){t=void 0===t?[]:t;for(var e=0;e<r.length;e++)Array.isArray(r[e])?n(r[e],t):t.push(r[e]);return t},exports.flip=function(n){for(var r=[],t=arguments.length-1;t-- >0;)r[t]=arguments[t+1];return function(n){return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 1===r.length?function(t){return n(t,r[0])}:2===r.length?n(r[1],r[0]):void 0}}(n)},exports.forEach=function n(r,t){return void 0===t?function(t){return n(r,t)}:(p(r,t),t)},exports.groupBy=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e={},o=0;o<t.length;o++){var u=t[o],i=r(u);e[i]||(e[i]=[]),e[i].push(u)}return e},exports.has=function n(r,t){return void 0===t?function(t){return n(r,t)}:void 0!==t[r]},exports.head=function(n){return"string"==typeof n?n[0]||"":n[0]},exports.identity=function(n){return n},exports.ifElse=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:function(n){return!0===("boolean"==typeof r?r:r(n))?t(n):e(n)}},exports.inc=function(n){return n+1},exports.includes=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.includes(r)},exports.indexBy=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e={},o=0;o<t.length;o++){var u=t[o];e[r(u)]=u}return e},exports.indexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e=-1,o=t.length;++e<o;)if(t[e]===r)return e;return-1},exports.init=function(n){return"string"==typeof n?n.slice(0,-1):n.length?a(n,0,-1):[]},exports.is=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:null!=t&&t.constructor===r||t instanceof r},exports.isNil=function(n){return void 0===n||null===n},exports.join=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.join(r)},exports.keys=function(n){return Object.keys(n)},exports.last=function(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1]},exports.lastIndexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var e=-1;return t.map(function(n,t){u(n,r)&&(e=t)}),e},exports.length=function(n){return n.length},exports.map=p,exports.match=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var e=t.match(r);return null===e?[]:e},exports.merge=l,exports.max=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:t>r?t:r},exports.maxBy=function n(r,t,e){return 2===arguments.length?function(e){return n(r,t,e)}:1===arguments.length?function(t,e){return n(r,t,e)}:r(e)>r(t)?e:t},exports.min=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:t<r?t:r},exports.minBy=function n(r,t,e){return 2===arguments.length?function(e){return n(r,t,e)}:1===arguments.length?function(t,e){return n(r,t,e)}:r(e)<r(t)?e:t},exports.modulo=function n(r,t){return void 0===t?function(t){return n(r,t)}:r%t},exports.multiply=function n(r,t){return void 0===t?function(t){return n(r,t)}:r*t},exports.none=function n(r,t){return void 0===t?function(t){return n(r,t)}:0===t.filter(r).length},exports.not=function(n){return!n},exports.nth=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var e=r<0?t.length+r:r;return"[object String]"===Object.prototype.toString.call(t)?t.charAt(e):t[e]},exports.omit=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){var e="string"==typeof r?r=r.split(","):r,o={};for(var u in t)e.includes(u)||(o[u]=t[u]);return o}},exports.partialCurry=function(n,r){return void 0===r&&(r={}),function(t){return"Async"===o(n)||"Promise"===o(n)?new Promise(function(e,o){n(l(t,r)).then(e).catch(o)}):n(l(t,r))}},exports.path=v,exports.pathOr=d,exports.pick=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){for(var e="string"==typeof r?r.split(","):r,o={},u=0;u<e.length;)e[u]in t&&(o[e[u]]=t[e[u]]),u++;return o}},exports.pickAll=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){for(var e="string"==typeof r?r.split(","):r,o={},u=0;u<e.length;)o[e[u]]=e[u]in t?t[e[u]]:void 0,u++;return o}},exports.pipe=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return e.apply(void 0,n.reverse())},exports.pluck=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var e=[];return p(function(n){void 0!==n[r]&&e.push(n[r])},t),e},exports.prepend=function n(r,t){if(void 0===t)return function(t){return n(r,t)};if("string"==typeof t)return""+r+t;var e=t.concat();return e.unshift(r),e},exports.prop=function n(r,t){return void 0===t?function(t){return n(r,t)}:t[r]},exports.propEq=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:e[r]===t},exports.range=x,exports.reduce=h,exports.reject=function n(t,e){return void 0===e?function(r){return n(t,r)}:r(function(n){return!t(n)},e)},exports.repeat=function n(r,t){return void 0===t?function(t){return n(r,t)}:Array(t).fill(r)},exports.replace=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:e.replace(r,t)},exports.reverse=function(n){return n.concat().reverse()},exports.sort=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.concat().sort(r)},exports.sortBy=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.concat().sort(function(n,t){var e=r(n),o=r(t);return e<o?-1:e>o?1:0})},exports.split=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.split(r)},exports.splitEvery=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e=r>1?r:1,o=[],u=0;u<t.length;)o.push(t.slice(u,u+=e));return o},exports.startsWith=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.startsWith(r)},exports.subtract=function n(r,t){return void 0===t?function(t){return n(r,t)}:r-t},exports.T=function(){return!0},exports.tail=function(n){return s(1,n)},exports.take=function n(r,t){return void 0===t?function(t){return n(r,t)}:"string"==typeof t?t.slice(0,r):a(t,0,r)},exports.takeLast=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var e=t.length,o=r>e?e:r;return"string"==typeof t?t.slice(e-o):a(t,o=e-o,e)},exports.tap=function n(r,t){return void 0===t?function(t){return n(r,t)}:(r(t),t)},exports.test=function n(r,t){return void 0===t?function(t){return n(r,t)}:-1!==t.search(r)},exports.times=function n(r,t){return void 0===t?function(t){return n(r,t)}:p(r,x(0,t))},exports.toLower=function(n){return n.toLowerCase()},exports.toString=function(n){return n.toString()},exports.toUpper=function(n){return n.toUpperCase()},exports.trim=function(n){return n.trim()},exports.type=o,exports.uniq=function(n){for(var r=-1,t=[];++r<n.length;){var e=n[r];i(e,t)||t.push(e)}return t},exports.uniqWith=function n(r,e){if(1===arguments.length)return function(t){return n(r,t)};for(var o=-1,u=[],i=function(){var n=e[o];t(function(t){return r(n,t)},u)||u.push(n)};++o<e.length;)i();return u},exports.update=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:e.concat().fill(t,r,r+1)},exports.values=function(n){var r=[];for(var t in n)r.push(n[t]);return r},exports.without=function(n,r){return h(function(r,t){return i(t,n)?r:r.concat(t)},[],r)},exports.zip=function r(t,e){return void 0===e?function(n){return r(t,n)}:n(h)(function(n,r,t){return e[t]?n.concat([[r,e[t]]]):n},[],t)},exports.zipObj=function n(r,t){return void 0===t?function(t){return n(r,t)}:r.reduce(function(n,r,e){return n[r]=t[e],n},{})}; | ||
function n(n){return function(r){for(var t=[],e=arguments.length-1;e-- >0;)t[e]=arguments[e+1];var o=0;return n.apply(null,[function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.apply(null,n.concat([o++]))}].concat(t))}}function r(n,t){if(void 0===t)return function(t){return r(n,t)};if(void 0===t.length)return function(n,r){var t={};for(var e in r)n(r[e],e)&&(t[e]=r[e]);return t}(n,t);for(var e=-1,o=0,u=t.length,i=[];++e<u;){var f=t[e];n(f)&&(i[o++]=f)}return i}function t(n,r){if(void 0===r)return function(r){return t(n,r)};for(var e=0;e<r.length;){if(n(r[e]))return!0;e++}return!1}function e(n,r){return void 0===r&&(r=[]),function(){for(var t,o=[],u=arguments.length;u--;)o[u]=arguments[u];return(t=r.concat(o)).length>=n.length?n.apply(void 0,t):e(n,t)}}var o=e(function(n,r,t){var e;return Object.assign({},t,((e={})[n]=r,e))});function u(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];var e=n.slice();if(e.length>0){for(var o=e.pop().apply(void 0,r);e.length>0;)o=e.pop()(o);return o}}}function i(n){var r=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===r)return"Boolean";if("number"===r)return"Number";if("string"===r)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var t=n.toString();return t.startsWith("async")?"Async":"[object Promise]"===t?"Promise":t.includes("function")||t.includes("=>")?"Function":"Object"}function f(n,r){if(1===arguments.length)return function(r){return f(n,r)};if(n===r)return!0;var t=i(n);if(t!==i(r))return!1;if("Array"===t){var e=Array.from(n),o=Array.from(r);if(e.toString()!==o.toString())return!1;var u=!0;return e.forEach(function(n,r){u&&(n===o[r]||f(n,o[r])||(u=!1))}),u}if("Object"===t){var c=Object.keys(n);if(c.length!==Object.keys(r).length)return!1;var s=!0;return c.forEach(function(t){if(s){var e=n[t],o=r[t];e===o||f(e,o)||(s=!1)}}),s}return!1}function c(n,r){if(void 0===r)return function(r){return c(n,r)};for(var t=-1,e=!1;++t<r.length&&!e;)f(r[t],n)&&(e=!0);return e}function s(n,r){return 1===arguments.length?function(r){return s(n,r)}:void 0===r||null===r||!0===Number.isNaN(r)?n:r}function p(n,r){return void 0===r?function(r){return p(n,r)}:r.slice(n)}function a(n,r,t){var e=-1,o=n.length;(t=t>o?o:t)<0&&(t+=o),o=r>t?0:t-r>>>0,r>>>=0;for(var u=Array(o);++e<o;)u[e]=n[e+r];return u}function l(n,r){if(void 0===r)return function(r){return l(n,r)};var t=r.length,e=n>t?t:n;return"string"==typeof r?r.slice(t-e):a(r,e=t-e,t)}function v(n,r){if(1===arguments.length)return function(r){return v(n,r)};if(void 0===r)return[];if(void 0===r.length)return function(n,r){var t={};for(var e in r)t[e]=n(r[e],e);return t}(n,r);for(var t=-1,e=r.length,o=Array(e);++t<e;)o[t]=n(r[t]);return o}function d(n,r){return 1===arguments.length?function(r){return d(n,r)}:Object.assign({},n||{},r||{})}function x(n,r){if(1===arguments.length)return function(r){return x(n,r)};if(null!==r&&void 0!==r){for(var t=r,e=0,o="string"==typeof n?n.split("."):n;e<o.length;){if(null===t||void 0===t)return;t=t[o[e]],e++}return t}}var h=e(function(n,r,t){return s(n,x(r,t))});function g(n,r){if(void 0===r)return function(r){return g(n,r)};for(var t=[],e=n;e<r;e++)t.push(e);return t}function y(n,r,t){return void 0===r?function(r,t){return y(n,r,t)}:void 0===t?function(t){return y(n,r,t)}:t.reduce(n,r)}exports.add=function n(r,t){return void 0===t?function(t){return n(r,t)}:r+t},exports.addIndex=n,exports.adjust=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:e.concat().map(function(n,o){return o===t?r(e[t]):n})},exports.all=function n(t,e){return void 0===e?function(r){return n(t,r)}:r(t,e).length===e.length},exports.allPass=function n(r,e){return 1===arguments.length?function(t){return n(r,t)}:!t(function(n){return!n(e)},r)},exports.always=function(n){return function(){return n}},exports.any=t,exports.anyPass=function n(r,e){return 1===arguments.length?function(t){return n(r,t)}:t(function(n){return n(e)})(r)},exports.append=function n(r,t){if(void 0===t)return function(t){return n(r,t)};if("string"==typeof t)return""+t+r;var e=t.concat();return e.push(r),e},exports.assoc=o,exports.both=function n(r,t){return void 0===t?function(t){return n(r,t)}:function(n){return r(n)&&t(n)}},exports.complement=function(n){return function(r){return!n(r)}},exports.compose=u,exports.concat=function n(r,t){return void 0===t?function(t){return n(r,t)}:"string"==typeof r?""+r+t:r.concat(t)},exports.contains=c,exports.curry=e,exports.dec=function(n){return n-1},exports.defaultTo=s,exports.dissoc=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null===t||void 0===t)return{};var e={};for(var o in t)e[o]=t[o];return delete e[r],e},exports.divide=function n(r,t){return void 0===t?function(t){return n(r,t)}:r/t},exports.drop=p,exports.dropLast=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.slice(0,-r)},exports.either=function n(r,t){return void 0===t?function(t){return n(r,t)}:function(n){return r(n)||t(n)}},exports.endsWith=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:f(r,l(r.length,t))},exports.equals=f,exports.F=function(){return!1},exports.filter=r,exports.find=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.find(r)},exports.findIndex=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e=t.length,o=-1;++o<e;)if(r(t[o]))return o;return-1},exports.flatten=function n(r,t){t=void 0===t?[]:t;for(var e=0;e<r.length;e++)Array.isArray(r[e])?n(r[e],t):t.push(r[e]);return t},exports.flip=function(n){for(var r=[],t=arguments.length-1;t-- >0;)r[t]=arguments[t+1];return function(n){return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 1===r.length?function(t){return n(t,r[0])}:2===r.length?n(r[1],r[0]):void 0}}(n)},exports.forEach=function n(r,t){return void 0===t?function(t){return n(r,t)}:(v(r,t),t)},exports.groupBy=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e={},o=0;o<t.length;o++){var u=t[o],i=r(u);e[i]||(e[i]=[]),e[i].push(u)}return e},exports.has=function n(r,t){return void 0===t?function(t){return n(r,t)}:void 0!==t[r]},exports.head=function(n){return"string"==typeof n?n[0]||"":n[0]},exports.identity=function(n){return n},exports.ifElse=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:function(n){return!0===("boolean"==typeof r?r:r(n))?t(n):e(n)}},exports.inc=function(n){return n+1},exports.includes=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.includes(r)},exports.indexBy=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e={},o=0;o<t.length;o++){var u=t[o];e[r(u)]=u}return e},exports.indexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e=-1,o=t.length;++e<o;)if(t[e]===r)return e;return-1},exports.init=function(n){return"string"==typeof n?n.slice(0,-1):n.length?a(n,0,-1):[]},exports.is=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:null!=t&&t.constructor===r||t instanceof r},exports.isNil=function(n){return void 0===n||null===n},exports.join=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.join(r)},exports.keys=function(n){return Object.keys(n)},exports.last=function(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1]},exports.lastIndexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var e=-1;return t.map(function(n,t){f(n,r)&&(e=t)}),e},exports.length=function(n){return n.length},exports.map=v,exports.match=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var e=t.match(r);return null===e?[]:e},exports.merge=d,exports.max=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:t>r?t:r},exports.maxBy=function n(r,t,e){return 2===arguments.length?function(e){return n(r,t,e)}:1===arguments.length?function(t,e){return n(r,t,e)}:r(e)>r(t)?e:t},exports.min=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:t<r?t:r},exports.minBy=function n(r,t,e){return 2===arguments.length?function(e){return n(r,t,e)}:1===arguments.length?function(t,e){return n(r,t,e)}:r(e)<r(t)?e:t},exports.modulo=function n(r,t){return void 0===t?function(t){return n(r,t)}:r%t},exports.multiply=function n(r,t){return void 0===t?function(t){return n(r,t)}:r*t},exports.none=function n(r,t){return void 0===t?function(t){return n(r,t)}:0===t.filter(r).length},exports.not=function(n){return!n},exports.nth=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var e=r<0?t.length+r:r;return"[object String]"===Object.prototype.toString.call(t)?t.charAt(e):t[e]},exports.omit=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){var e="string"==typeof r?r=r.split(","):r,o={};for(var u in t)e.includes(u)||(o[u]=t[u]);return o}},exports.partialCurry=function(n,r){return void 0===r&&(r={}),function(t){return"Async"===i(n)||"Promise"===i(n)?new Promise(function(e,o){n(d(t,r)).then(e).catch(o)}):n(d(t,r))}},exports.path=x,exports.pathOr=h,exports.pick=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){for(var e="string"==typeof r?r.split(","):r,o={},u=0;u<e.length;)e[u]in t&&(o[e[u]]=t[e[u]]),u++;return o}},exports.pickAll=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){for(var e="string"==typeof r?r.split(","):r,o={},u=0;u<e.length;)o[e[u]]=e[u]in t?t[e[u]]:void 0,u++;return o}},exports.pipe=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return u.apply(void 0,n.reverse())},exports.pluck=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var e=[];return v(function(n){void 0!==n[r]&&e.push(n[r])},t),e},exports.prepend=function n(r,t){if(void 0===t)return function(t){return n(r,t)};if("string"==typeof t)return""+r+t;var e=t.concat();return e.unshift(r),e},exports.prop=function n(r,t){return void 0===t?function(t){return n(r,t)}:t[r]},exports.propEq=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:e[r]===t},exports.range=g,exports.reduce=y,exports.reject=function n(t,e){return void 0===e?function(r){return n(t,r)}:r(function(n){return!t(n)},e)},exports.repeat=function n(r,t){return void 0===t?function(t){return n(r,t)}:Array(t).fill(r)},exports.replace=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:e.replace(r,t)},exports.reverse=function(n){return n.concat().reverse()},exports.sort=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.concat().sort(r)},exports.sortBy=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.concat().sort(function(n,t){var e=r(n),o=r(t);return e<o?-1:e>o?1:0})},exports.split=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.split(r)},exports.splitEvery=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var e=r>1?r:1,o=[],u=0;u<t.length;)o.push(t.slice(u,u+=e));return o},exports.startsWith=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.startsWith(r)},exports.subtract=function n(r,t){return void 0===t?function(t){return n(r,t)}:r-t},exports.T=function(){return!0},exports.tail=function(n){return p(1,n)},exports.take=function n(r,t){return void 0===t?function(t){return n(r,t)}:"string"==typeof t?t.slice(0,r):a(t,0,r)},exports.takeLast=l,exports.tap=function n(r,t){return void 0===t?function(t){return n(r,t)}:(r(t),t)},exports.test=function n(r,t){return void 0===t?function(t){return n(r,t)}:-1!==t.search(r)},exports.times=function n(r,t){return void 0===t?function(t){return n(r,t)}:v(r,g(0,t))},exports.toLower=function(n){return n.toLowerCase()},exports.toString=function(n){return n.toString()},exports.toUpper=function(n){return n.toUpperCase()},exports.trim=function(n){return n.trim()},exports.type=i,exports.uniq=function(n){for(var r=-1,t=[];++r<n.length;){var e=n[r];c(e,t)||t.push(e)}return t},exports.uniqWith=function n(r,e){if(1===arguments.length)return function(t){return n(r,t)};for(var o=-1,u=[],i=function(){var n=e[o];t(function(t){return r(n,t)},u)||u.push(n)};++o<e.length;)i();return u},exports.update=function n(r,t,e){return void 0===t?function(t,e){return n(r,t,e)}:void 0===e?function(e){return n(r,t,e)}:e.concat().fill(t,r,r+1)},exports.values=function(n){var r=[];for(var t in n)r.push(n[t]);return r},exports.without=function(n,r){return y(function(r,t){return c(t,n)?r:r.concat(t)},[],r)},exports.zip=function r(t,e){return void 0===e?function(n){return r(t,n)}:n(y)(function(n,r,t){return e[t]?n.concat([[r,e[t]]]):n},[],t)},exports.zipObj=function n(r,t){return void 0===t?function(t){return n(r,t)}:r.reduce(function(n,r,e){return n[r]=t[e],n},{})}; | ||
//# sourceMappingURL=rambda.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.rambda={})}(this,function(n){function r(n){return function(r){for(var t=[],u=arguments.length-1;u-- >0;)t[u]=arguments[u+1];var i=0;return n.apply(null,[function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.apply(null,n.concat([i++]))}].concat(t))}}function t(n,r){if(void 0===r)return function(r){return t(n,r)};if(void 0===r.length)return function(n,r){var t={};for(var u in r)n(r[u],u)&&(t[u]=r[u]);return t}(n,r);for(var u=-1,i=0,e=r.length,o=[];++u<e;){var f=r[u];n(f)&&(o[i++]=f)}return o}function u(n,r){if(void 0===r)return function(r){return u(n,r)};for(var t=0;t<r.length;){if(n(r[t]))return!0;t++}return!1}function i(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];var u=n.slice();if(u.length>0){for(var i=u.pop().apply(void 0,r);u.length>0;)i=u.pop()(i);return i}}}function e(n){var r=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===r)return"Boolean";if("number"===r)return"Number";if("string"===r)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var t=n.toString();return t.startsWith("async")?"Async":"[object Promise]"===t?"Promise":t.includes("function")||t.includes("=>")?"Function":"Object"}function o(n,r){if(1===arguments.length)return function(r){return o(n,r)};if(n===r)return!0;var t=e(n);if(t!==e(r))return!1;if("Array"===t){var u=Array.from(n),i=Array.from(r);if(u.toString()!==i.toString())return!1;var f=!0;return u.forEach(function(n,r){f&&(n===i[r]||o(n,i[r])||(f=!1))}),f}if("Object"===t){var c=Object.keys(n);if(c.length!==Object.keys(r).length)return!1;var a=!0;return c.forEach(function(t){if(a){var u=n[t],i=r[t];u===i||o(u,i)||(a=!1)}}),a}return!1}function f(n,r){if(void 0===r)return function(r){return f(n,r)};for(var t=-1,u=!1;++t<r.length&&!u;)o(r[t],n)&&(u=!0);return u}function c(n,r){return void 0===r&&(r=[]),function(){for(var t,u=[],i=arguments.length;i--;)u[i]=arguments[i];return(t=r.concat(u)).length>=n.length?n.apply(void 0,t):c(n,t)}}function a(n,r){return 1===arguments.length?function(r){return a(n,r)}:void 0===r||null===r||!0===Number.isNaN(r)?n:r}function l(n,r){return void 0===r?function(r){return l(n,r)}:r.slice(n)}function v(n,r){if(void 0===r)return function(r){return v(n,r)};if(void 0===r.length)return function(n,r){var t={};for(var u in r)t[u]=n(r[u],u);return t}(n,r);for(var t=-1,u=r.length,i=Array(u);++t<u;)i[t]=n(r[t]);return i}function d(n,r,t){var u=-1,i=n.length;(t=t>i?i:t)<0&&(t+=i),i=r>t?0:t-r>>>0,r>>>=0;for(var e=Array(i);++u<i;)e[u]=n[u+r];return e}function s(n,r){return void 0===r?function(r){return s(n,r)}:Object.assign({},n,r)}function h(n,r){if(1===arguments.length)return function(r){return h(n,r)};if(null!==r&&void 0!==r){for(var t=r,u=0,i="string"==typeof n?n.split("."):n;u<i.length;){if(null===t||void 0===t)return;t=t[i[u]],u++}return t}}var p=c(function(n,r,t){return a(n,h(r,t))});function g(n,r){if(void 0===r)return function(r){return g(n,r)};for(var t=[],u=n;u<r;u++)t.push(u);return t}function y(n,r,t){return void 0===r?function(r,t){return y(n,r,t)}:void 0===t?function(t){return y(n,r,t)}:t.reduce(n,r)}n.add=function n(r,t){return void 0===t?function(t){return n(r,t)}:r+t},n.addIndex=r,n.adjust=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:u.concat().map(function(n,i){return i===t?r(u[t]):n})},n.all=function n(r,u){return void 0===u?function(t){return n(r,t)}:t(r,u).length===u.length},n.allPass=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:!u(function(n){return!n(t)},r)},n.always=function(n){return function(){return n}},n.any=u,n.anyPass=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:u(function(n){return n(t)})(r)},n.append=function n(r,t){if(void 0===t)return function(t){return n(r,t)};if("string"==typeof t)return""+t+r;var u=t.concat();return u.push(r),u},n.both=function n(r,t){return void 0===t?function(t){return n(r,t)}:function(n){return r(n)&&t(n)}},n.complement=function(n){return function(r){return!n(r)}},n.compose=i,n.concat=function n(r,t){return void 0===t?function(t){return n(r,t)}:"string"==typeof r?""+r+t:r.concat(t)},n.contains=f,n.curry=c,n.dec=function(n){return n-1},n.defaultTo=a,n.dissoc=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){var u={};for(var i in t)i!==""+r&&(u[i]=t[i]);return u}},n.divide=function n(r,t){return void 0===t?function(t){return n(r,t)}:r/t},n.drop=l,n.dropLast=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.slice(0,-r)},n.either=function n(r,t){return void 0===t?function(t){return n(r,t)}:function(n){return r(n)||t(n)}},n.endsWith=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.endsWith(r)},n.equals=o,n.F=function(){return!1},n.filter=t,n.find=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.find(r)},n.findIndex=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u=t.length,i=-1;++i<u;)if(r(t[i]))return i;return-1},n.flatten=function n(r,t){t=void 0===t?[]:t;for(var u=0;u<r.length;u++)Array.isArray(r[u])?n(r[u],t):t.push(r[u]);return t},n.flip=function(n){for(var r=[],t=arguments.length-1;t-- >0;)r[t]=arguments[t+1];return function(n){return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 1===r.length?function(t){return n(t,r[0])}:2===r.length?n(r[1],r[0]):void 0}}(n)},n.forEach=function n(r,t){return void 0===t?function(t){return n(r,t)}:(v(r,t),t)},n.groupBy=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u={},i=0;i<t.length;i++){var e=t[i],o=r(e);u[o]||(u[o]=[]),u[o].push(e)}return u},n.has=function n(r,t){return void 0===t?function(t){return n(r,t)}:void 0!==t[r]},n.head=function(n){return"string"==typeof n?n[0]||"":n[0]},n.identity=function(n){return n},n.ifElse=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:function(n){return!0===("boolean"==typeof r?r:r(n))?t(n):u(n)}},n.inc=function(n){return n+1},n.includes=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.includes(r)},n.indexBy=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u={},i=0;i<t.length;i++){var e=t[i];u[r(e)]=e}return u},n.indexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u=-1,i=t.length;++u<i;)if(t[u]===r)return u;return-1},n.init=function(n){return"string"==typeof n?n.slice(0,-1):n.length?d(n,0,-1):[]},n.is=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:null!=t&&t.constructor===r||t instanceof r},n.isNil=function(n){return void 0===n||null===n},n.join=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.join(r)},n.keys=function(n){return Object.keys(n)},n.last=function(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1]},n.lastIndexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var u=-1;return t.map(function(n,t){o(n,r)&&(u=t)}),u},n.length=function(n){return n.length},n.map=v,n.match=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var u=t.match(r);return null===u?[]:u},n.merge=s,n.max=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:t>r?t:r},n.maxBy=function n(r,t,u){return 2===arguments.length?function(u){return n(r,t,u)}:1===arguments.length?function(t,u){return n(r,t,u)}:r(u)>r(t)?u:t},n.min=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:t<r?t:r},n.minBy=function n(r,t,u){return 2===arguments.length?function(u){return n(r,t,u)}:1===arguments.length?function(t,u){return n(r,t,u)}:r(u)<r(t)?u:t},n.modulo=function n(r,t){return void 0===t?function(t){return n(r,t)}:r%t},n.multiply=function n(r,t){return void 0===t?function(t){return n(r,t)}:r*t},n.none=function n(r,t){return void 0===t?function(t){return n(r,t)}:0===t.filter(r).length},n.not=function(n){return!n},n.nth=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var u=r<0?t.length+r:r;return"[object String]"===Object.prototype.toString.call(t)?t.charAt(u):t[u]},n.omit=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){var u="string"==typeof r?r=r.split(","):r,i={};for(var e in t)u.includes(e)||(i[e]=t[e]);return i}},n.partialCurry=function(n,r){return void 0===r&&(r={}),function(t){return"Async"===e(n)||"Promise"===e(n)?new Promise(function(u,i){n(s(t,r)).then(u).catch(i)}):n(s(t,r))}},n.path=h,n.pathOr=p,n.pick=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){for(var u="string"==typeof r?r.split(","):r,i={},e=0;e<u.length;)u[e]in t&&(i[u[e]]=t[u[e]]),e++;return i}},n.pickAll=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){for(var u="string"==typeof r?r.split(","):r,i={},e=0;e<u.length;)i[u[e]]=u[e]in t?t[u[e]]:void 0,e++;return i}},n.pipe=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return i.apply(void 0,n.reverse())},n.pluck=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var u=[];return v(function(n){void 0!==n[r]&&u.push(n[r])},t),u},n.prepend=function n(r,t){if(void 0===t)return function(t){return n(r,t)};if("string"==typeof t)return""+r+t;var u=t.concat();return u.unshift(r),u},n.prop=function n(r,t){return void 0===t?function(t){return n(r,t)}:t[r]},n.propEq=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:u[r]===t},n.range=g,n.reduce=y,n.reject=function n(r,u){return void 0===u?function(t){return n(r,t)}:t(function(n){return!r(n)},u)},n.repeat=function n(r,t){return void 0===t?function(t){return n(r,t)}:Array(t).fill(r)},n.replace=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:u.replace(r,t)},n.reverse=function(n){return n.concat().reverse()},n.sort=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.concat().sort(r)},n.sortBy=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.concat().sort(function(n,t){var u=r(n),i=r(t);return u<i?-1:u>i?1:0})},n.split=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.split(r)},n.splitEvery=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u=r>1?r:1,i=[],e=0;e<t.length;)i.push(t.slice(e,e+=u));return i},n.startsWith=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.startsWith(r)},n.subtract=function n(r,t){return void 0===t?function(t){return n(r,t)}:r-t},n.T=function(){return!0},n.tail=function(n){return l(1,n)},n.take=function n(r,t){return void 0===t?function(t){return n(r,t)}:"string"==typeof t?t.slice(0,r):d(t,0,r)},n.takeLast=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var u=t.length,i=r>u?u:r;return"string"==typeof t?t.slice(u-i):d(t,i=u-i,u)},n.tap=function n(r,t){return void 0===t?function(t){return n(r,t)}:(r(t),t)},n.test=function n(r,t){return void 0===t?function(t){return n(r,t)}:-1!==t.search(r)},n.times=function n(r,t){return void 0===t?function(t){return n(r,t)}:v(r,g(0,t))},n.toLower=function(n){return n.toLowerCase()},n.toString=function(n){return n.toString()},n.toUpper=function(n){return n.toUpperCase()},n.trim=function(n){return n.trim()},n.type=e,n.uniq=function(n){for(var r=-1,t=[];++r<n.length;){var u=n[r];f(u,t)||t.push(u)}return t},n.uniqWith=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};for(var i=-1,e=[],o=function(){var n=t[i];u(function(t){return r(n,t)},e)||e.push(n)};++i<t.length;)o();return e},n.update=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:u.concat().fill(t,r,r+1)},n.values=function(n){var r=[];for(var t in n)r.push(n[t]);return r},n.without=function(n,r){return y(function(r,t){return f(t,n)?r:r.concat(t)},[],r)},n.zip=function n(t,u){return void 0===u?function(r){return n(t,r)}:r(y)(function(n,r,t){return u[t]?n.concat([[r,u[t]]]):n},[],t)},n.zipObj=function n(r,t){return void 0===t?function(t){return n(r,t)}:r.reduce(function(n,r,u){return n[r]=t[u],n},{})}}); | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.rambda={})}(this,function(n){function r(n){return function(r){for(var t=[],u=arguments.length-1;u-- >0;)t[u]=arguments[u+1];var e=0;return n.apply(null,[function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.apply(null,n.concat([e++]))}].concat(t))}}function t(n,r){if(void 0===r)return function(r){return t(n,r)};if(void 0===r.length)return function(n,r){var t={};for(var u in r)n(r[u],u)&&(t[u]=r[u]);return t}(n,r);for(var u=-1,e=0,i=r.length,o=[];++u<i;){var f=r[u];n(f)&&(o[e++]=f)}return o}function u(n,r){if(void 0===r)return function(r){return u(n,r)};for(var t=0;t<r.length;){if(n(r[t]))return!0;t++}return!1}function e(n,r){return void 0===r&&(r=[]),function(){for(var t,u=[],i=arguments.length;i--;)u[i]=arguments[i];return(t=r.concat(u)).length>=n.length?n.apply(void 0,t):e(n,t)}}var i=e(function(n,r,t){var u;return Object.assign({},t,((u={})[n]=r,u))});function o(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];var u=n.slice();if(u.length>0){for(var e=u.pop().apply(void 0,r);u.length>0;)e=u.pop()(e);return e}}}function f(n){var r=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===r)return"Boolean";if("number"===r)return"Number";if("string"===r)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var t=n.toString();return t.startsWith("async")?"Async":"[object Promise]"===t?"Promise":t.includes("function")||t.includes("=>")?"Function":"Object"}function c(n,r){if(1===arguments.length)return function(r){return c(n,r)};if(n===r)return!0;var t=f(n);if(t!==f(r))return!1;if("Array"===t){var u=Array.from(n),e=Array.from(r);if(u.toString()!==e.toString())return!1;var i=!0;return u.forEach(function(n,r){i&&(n===e[r]||c(n,e[r])||(i=!1))}),i}if("Object"===t){var o=Object.keys(n);if(o.length!==Object.keys(r).length)return!1;var a=!0;return o.forEach(function(t){if(a){var u=n[t],e=r[t];u===e||c(u,e)||(a=!1)}}),a}return!1}function a(n,r){if(void 0===r)return function(r){return a(n,r)};for(var t=-1,u=!1;++t<r.length&&!u;)c(r[t],n)&&(u=!0);return u}function l(n,r){return 1===arguments.length?function(r){return l(n,r)}:void 0===r||null===r||!0===Number.isNaN(r)?n:r}function v(n,r){return void 0===r?function(r){return v(n,r)}:r.slice(n)}function d(n,r,t){var u=-1,e=n.length;(t=t>e?e:t)<0&&(t+=e),e=r>t?0:t-r>>>0,r>>>=0;for(var i=Array(e);++u<e;)i[u]=n[u+r];return i}function s(n,r){if(void 0===r)return function(r){return s(n,r)};var t=r.length,u=n>t?t:n;return"string"==typeof r?r.slice(t-u):d(r,u=t-u,t)}function h(n,r){if(1===arguments.length)return function(r){return h(n,r)};if(void 0===r)return[];if(void 0===r.length)return function(n,r){var t={};for(var u in r)t[u]=n(r[u],u);return t}(n,r);for(var t=-1,u=r.length,e=Array(u);++t<u;)e[t]=n(r[t]);return e}function g(n,r){return 1===arguments.length?function(r){return g(n,r)}:Object.assign({},n||{},r||{})}function p(n,r){if(1===arguments.length)return function(r){return p(n,r)};if(null!==r&&void 0!==r){for(var t=r,u=0,e="string"==typeof n?n.split("."):n;u<e.length;){if(null===t||void 0===t)return;t=t[e[u]],u++}return t}}var y=e(function(n,r,t){return l(n,p(r,t))});function m(n,r){if(void 0===r)return function(r){return m(n,r)};for(var t=[],u=n;u<r;u++)t.push(u);return t}function b(n,r,t){return void 0===r?function(r,t){return b(n,r,t)}:void 0===t?function(t){return b(n,r,t)}:t.reduce(n,r)}n.add=function n(r,t){return void 0===t?function(t){return n(r,t)}:r+t},n.addIndex=r,n.adjust=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:u.concat().map(function(n,e){return e===t?r(u[t]):n})},n.all=function n(r,u){return void 0===u?function(t){return n(r,t)}:t(r,u).length===u.length},n.allPass=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:!u(function(n){return!n(t)},r)},n.always=function(n){return function(){return n}},n.any=u,n.anyPass=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:u(function(n){return n(t)})(r)},n.append=function n(r,t){if(void 0===t)return function(t){return n(r,t)};if("string"==typeof t)return""+t+r;var u=t.concat();return u.push(r),u},n.assoc=i,n.both=function n(r,t){return void 0===t?function(t){return n(r,t)}:function(n){return r(n)&&t(n)}},n.complement=function(n){return function(r){return!n(r)}},n.compose=o,n.concat=function n(r,t){return void 0===t?function(t){return n(r,t)}:"string"==typeof r?""+r+t:r.concat(t)},n.contains=a,n.curry=e,n.dec=function(n){return n-1},n.defaultTo=l,n.dissoc=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null===t||void 0===t)return{};var u={};for(var e in t)u[e]=t[e];return delete u[r],u},n.divide=function n(r,t){return void 0===t?function(t){return n(r,t)}:r/t},n.drop=v,n.dropLast=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.slice(0,-r)},n.either=function n(r,t){return void 0===t?function(t){return n(r,t)}:function(n){return r(n)||t(n)}},n.endsWith=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:c(r,s(r.length,t))},n.equals=c,n.F=function(){return!1},n.filter=t,n.find=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.find(r)},n.findIndex=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u=t.length,e=-1;++e<u;)if(r(t[e]))return e;return-1},n.flatten=function n(r,t){t=void 0===t?[]:t;for(var u=0;u<r.length;u++)Array.isArray(r[u])?n(r[u],t):t.push(r[u]);return t},n.flip=function(n){for(var r=[],t=arguments.length-1;t-- >0;)r[t]=arguments[t+1];return function(n){return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 1===r.length?function(t){return n(t,r[0])}:2===r.length?n(r[1],r[0]):void 0}}(n)},n.forEach=function n(r,t){return void 0===t?function(t){return n(r,t)}:(h(r,t),t)},n.groupBy=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u={},e=0;e<t.length;e++){var i=t[e],o=r(i);u[o]||(u[o]=[]),u[o].push(i)}return u},n.has=function n(r,t){return void 0===t?function(t){return n(r,t)}:void 0!==t[r]},n.head=function(n){return"string"==typeof n?n[0]||"":n[0]},n.identity=function(n){return n},n.ifElse=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:function(n){return!0===("boolean"==typeof r?r:r(n))?t(n):u(n)}},n.inc=function(n){return n+1},n.includes=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.includes(r)},n.indexBy=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u={},e=0;e<t.length;e++){var i=t[e];u[r(i)]=i}return u},n.indexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u=-1,e=t.length;++u<e;)if(t[u]===r)return u;return-1},n.init=function(n){return"string"==typeof n?n.slice(0,-1):n.length?d(n,0,-1):[]},n.is=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:null!=t&&t.constructor===r||t instanceof r},n.isNil=function(n){return void 0===n||null===n},n.join=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.join(r)},n.keys=function(n){return Object.keys(n)},n.last=function(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1]},n.lastIndexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var u=-1;return t.map(function(n,t){c(n,r)&&(u=t)}),u},n.length=function(n){return n.length},n.map=h,n.match=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var u=t.match(r);return null===u?[]:u},n.merge=g,n.max=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:t>r?t:r},n.maxBy=function n(r,t,u){return 2===arguments.length?function(u){return n(r,t,u)}:1===arguments.length?function(t,u){return n(r,t,u)}:r(u)>r(t)?u:t},n.min=function n(r,t){return 1===arguments.length?function(t){return n(r,t)}:t<r?t:r},n.minBy=function n(r,t,u){return 2===arguments.length?function(u){return n(r,t,u)}:1===arguments.length?function(t,u){return n(r,t,u)}:r(u)<r(t)?u:t},n.modulo=function n(r,t){return void 0===t?function(t){return n(r,t)}:r%t},n.multiply=function n(r,t){return void 0===t?function(t){return n(r,t)}:r*t},n.none=function n(r,t){return void 0===t?function(t){return n(r,t)}:0===t.filter(r).length},n.not=function(n){return!n},n.nth=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var u=r<0?t.length+r:r;return"[object String]"===Object.prototype.toString.call(t)?t.charAt(u):t[u]},n.omit=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){var u="string"==typeof r?r=r.split(","):r,e={};for(var i in t)u.includes(i)||(e[i]=t[i]);return e}},n.partialCurry=function(n,r){return void 0===r&&(r={}),function(t){return"Async"===f(n)||"Promise"===f(n)?new Promise(function(u,e){n(g(t,r)).then(u).catch(e)}):n(g(t,r))}},n.path=p,n.pathOr=y,n.pick=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){for(var u="string"==typeof r?r.split(","):r,e={},i=0;i<u.length;)u[i]in t&&(e[u[i]]=t[u[i]]),i++;return e}},n.pickAll=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};if(null!==t&&void 0!==t){for(var u="string"==typeof r?r.split(","):r,e={},i=0;i<u.length;)e[u[i]]=u[i]in t?t[u[i]]:void 0,i++;return e}},n.pipe=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return o.apply(void 0,n.reverse())},n.pluck=function n(r,t){if(void 0===t)return function(t){return n(r,t)};var u=[];return h(function(n){void 0!==n[r]&&u.push(n[r])},t),u},n.prepend=function n(r,t){if(void 0===t)return function(t){return n(r,t)};if("string"==typeof t)return""+r+t;var u=t.concat();return u.unshift(r),u},n.prop=function n(r,t){return void 0===t?function(t){return n(r,t)}:t[r]},n.propEq=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:u[r]===t},n.range=m,n.reduce=b,n.reject=function n(r,u){return void 0===u?function(t){return n(r,t)}:t(function(n){return!r(n)},u)},n.repeat=function n(r,t){return void 0===t?function(t){return n(r,t)}:Array(t).fill(r)},n.replace=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:u.replace(r,t)},n.reverse=function(n){return n.concat().reverse()},n.sort=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.concat().sort(r)},n.sortBy=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.concat().sort(function(n,t){var u=r(n),e=r(t);return u<e?-1:u>e?1:0})},n.split=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.split(r)},n.splitEvery=function n(r,t){if(void 0===t)return function(t){return n(r,t)};for(var u=r>1?r:1,e=[],i=0;i<t.length;)e.push(t.slice(i,i+=u));return e},n.startsWith=function n(r,t){return void 0===t?function(t){return n(r,t)}:t.startsWith(r)},n.subtract=function n(r,t){return void 0===t?function(t){return n(r,t)}:r-t},n.T=function(){return!0},n.tail=function(n){return v(1,n)},n.take=function n(r,t){return void 0===t?function(t){return n(r,t)}:"string"==typeof t?t.slice(0,r):d(t,0,r)},n.takeLast=s,n.tap=function n(r,t){return void 0===t?function(t){return n(r,t)}:(r(t),t)},n.test=function n(r,t){return void 0===t?function(t){return n(r,t)}:-1!==t.search(r)},n.times=function n(r,t){return void 0===t?function(t){return n(r,t)}:h(r,m(0,t))},n.toLower=function(n){return n.toLowerCase()},n.toString=function(n){return n.toString()},n.toUpper=function(n){return n.toUpperCase()},n.trim=function(n){return n.trim()},n.type=f,n.uniq=function(n){for(var r=-1,t=[];++r<n.length;){var u=n[r];a(u,t)||t.push(u)}return t},n.uniqWith=function n(r,t){if(1===arguments.length)return function(t){return n(r,t)};for(var e=-1,i=[],o=function(){var n=t[e];u(function(t){return r(n,t)},i)||i.push(n)};++e<t.length;)o();return i},n.update=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u)}:void 0===u?function(u){return n(r,t,u)}:u.concat().fill(t,r,r+1)},n.values=function(n){var r=[];for(var t in n)r.push(n[t]);return r},n.without=function(n,r){return b(function(r,t){return a(t,n)?r:r.concat(t)},[],r)},n.zip=function n(t,u){return void 0===u?function(r){return n(t,r)}:r(b)(function(n,r,t){return u[t]?n.concat([[r,u[t]]]):n},[],t)},n.zipObj=function n(r,t){return void 0===t?function(t){return n(r,t)}:r.reduce(function(n,r,u){return n[r]=t[u],n},{})}}); | ||
//# sourceMappingURL=rambda.umd.js.map |
@@ -152,2 +152,6 @@ declare let R: R.Static | ||
assoc<T, U, K extends string>(prop: K, val: T, obj: U): Record<K, T> & U; | ||
assoc<K extends string>(prop: K): <T, U>(val: T, obj: U) => Record<K, T> & U; | ||
assoc<T, K extends string>(prop: K, val: T): <U>(obj: U) => Record<K, T> & U; | ||
both(pred1: Pred, pred2: Pred): Pred | ||
@@ -154,0 +158,0 @@ both(pred1: Pred): (pred2: Pred) => Pred |
@@ -1,2 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
@@ -7,9 +7,2 @@ Object.defineProperty(exports, "__esModule", { | ||
exports.default = dissoc; | ||
var _omit = require('./omit'); | ||
var _omit2 = _interopRequireDefault(_omit); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function dissoc(prop, obj) { | ||
@@ -22,14 +15,14 @@ if (arguments.length === 1) { | ||
} | ||
if (obj === null || obj === undefined) { | ||
return undefined; | ||
return {}; | ||
} | ||
var willReturn = {}; | ||
for (var key in obj) { | ||
if (key !== '' + prop) { | ||
willReturn[key] = obj[key]; | ||
} | ||
for (var p in obj) { | ||
willReturn[p] = obj[p]; | ||
} | ||
delete willReturn[prop]; | ||
return willReturn; | ||
} |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -7,10 +7,21 @@ Object.defineProperty(exports, "__esModule", { | ||
exports.default = endsWith; | ||
function endsWith(x, y) { | ||
if (y === undefined) { | ||
return function (yHolder) { | ||
return endsWith(x, yHolder); | ||
var _equals = require('./equals'); | ||
var _equals2 = _interopRequireDefault(_equals); | ||
var _takeLast = require('./takeLast'); | ||
var _takeLast2 = _interopRequireDefault(_takeLast); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function endsWith(suffix, list) { | ||
if (arguments.length === 1) { | ||
return function (listHolder) { | ||
return endsWith(suffix, listHolder); | ||
}; | ||
} | ||
return y.endsWith(x); | ||
return (0, _equals2.default)(suffix, (0, _takeLast2.default)(suffix.length, list)); | ||
} |
@@ -18,10 +18,10 @@ "use strict"; | ||
function map(fn, arr) { | ||
if (arr === undefined) { | ||
return function (arrHolder) { | ||
return map(fn, arrHolder); | ||
}; | ||
} | ||
if (arr.length === undefined) { | ||
return mapObject(fn, arr); | ||
} | ||
if (arguments.length === 1) return function (arrHolder) { | ||
return map(fn, arrHolder); | ||
}; | ||
if (arr === undefined) return []; | ||
if (arr.length === undefined) return mapObject(fn, arr); | ||
var index = -1; | ||
@@ -28,0 +28,0 @@ var len = arr.length; |
@@ -8,3 +8,3 @@ "use strict"; | ||
function merge(obj, newProps) { | ||
if (newProps === undefined) { | ||
if (arguments.length === 1) { | ||
return function (newPropsHolder) { | ||
@@ -15,3 +15,3 @@ return merge(obj, newPropsHolder); | ||
return Object.assign({}, obj, newProps); | ||
return Object.assign({}, obj || {}, newProps || {}); | ||
} |
{ | ||
"name": "rambda", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Lightweight alternative to Ramda", | ||
@@ -72,3 +72,4 @@ "main": "./dist/rambda.js", | ||
"docs", | ||
"build" | ||
"build", | ||
"prepublish" | ||
], | ||
@@ -75,0 +76,0 @@ "feature": [ |
@@ -70,3 +70,3 @@ [![CircleCI](https://circleci.com/gh/selfrefactor/rambda/tree/master.svg?style=svg)](https://circleci.com/gh/selfrefactor/rambda/tree/master) | ||
``` | ||
https://cdnjs.cloudflare.com/ajax/libs/rambda/1.1.3/webVersion.js | ||
https://cdnjs.cloudflare.com/ajax/libs/rambda/1.2.1/webVersion.js | ||
``` | ||
@@ -248,2 +248,17 @@ | ||
--- | ||
#### assoc | ||
> assoc(prop: any, value: any, obj: object): object | ||
Makes a shallow clone of `obj`, setting or overriding the property `prop` with | ||
the value `value`. Note that this copies and flattens prototype properties | ||
onto the new object as well. All non-primitive properties are copied by | ||
reference. | ||
``` | ||
R.assoc('c', 3, {a: 1, b: 2}) | ||
//=> {a: 1, b: 2, c: 3} | ||
``` | ||
--- | ||
#### both | ||
@@ -1696,2 +1711,4 @@ | ||
- 1.2.1 Add `R.assoc` | fix passing `undefined` to `R.map` and `R.merge` [issue #77](https://github.com/selfrefactor/rambda/issues/77) | ||
- 1.2.0 Add `R.min`, `R.minBy`, `R.max`, `R.maxBy`, `R.nth` and `R.keys` | ||
- 1.1.5 Close [issue #74](https://github.com/selfrefactor/rambda/issues/74) `R.zipObj` | ||
@@ -2076,2 +2093,3 @@ - 1.1.4 Close [issue #71](https://github.com/selfrefactor/rambda/issues/71) CRA fail to build `rambda` | ||
- [Interview with Dejan Totef at SurviveJS blog](https://survivejs.com/blog/rambda-interview/) | ||
- [Argumentation of Rambda's curry method](https://selfrefactor.gitbooks.io/blog/content/argumenting-rambdas-curry.html) |
@@ -1,1 +0,1 @@ | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.rambda={});}(this,function(n){function r(n){return function(r){for(var t=[],u=arguments.length-1;u-->0;)t[u]=arguments[u+1];var i=0;return n.apply(null,[function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.apply(null,n.concat([i++]));}].concat(t));};}function t(n,r){if(void 0===r)return function(r){return t(n,r);};if(void 0===r.length)return function(n,r){var t={};for(var u in r)n(r[u],u)&&(t[u]=r[u]);return t;}(n,r);for(var u=-1,i=0,e=r.length,o=[],f;++u<e;){f=r[u];n(f)&&(o[i++]=f);}return o;}function u(n,r){if(void 0===r)return function(r){return u(n,r);};for(var t=0;t<r.length;){if(n(r[t]))return!0;t++;}return!1;}function i(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];var u=n.slice();if(u.length>0){for(var i=u.pop().apply(void 0,r);u.length>0;)i=u.pop()(i);return i;}};}function e(n){var r=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===r)return"Boolean";if("number"===r)return"Number";if("string"===r)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var t=n.toString();return t.startsWith("async")?"Async":"[object Promise]"===t?"Promise":t.includes("function")||t.includes("=>")?"Function":"Object";}function o(n,r){if(1===arguments.length)return function(r){return o(n,r);};if(n===r)return!0;var t=e(n);if(t!==e(r))return!1;if("Array"===t){var u=Array.from(n),i=Array.from(r);if(u.toString()!==i.toString())return!1;var f=!0;return u.forEach(function(n,r){f&&(n===i[r]||o(n,i[r])||(f=!1));}),f;}if("Object"===t){var c=Object.keys(n);if(c.length!==Object.keys(r).length)return!1;var a=!0;return c.forEach(function(t){if(a){var u=n[t],i=r[t];u===i||o(u,i)||(a=!1);}}),a;}return!1;}function f(n,r){if(void 0===r)return function(r){return f(n,r);};for(var t=-1,u=!1;++t<r.length&&!u;)o(r[t],n)&&(u=!0);return u;}function c(n,r){return void 0===r&&(r=[]),function(){for(var t,u=[],i=arguments.length;i--;)u[i]=arguments[i];return(t=r.concat(u)).length>=n.length?n.apply(void 0,t):c(n,t);};}function a(n,r){return 1===arguments.length?function(r){return a(n,r);}:void 0===r||null===r||!0===Number.isNaN(r)?n:r;}function l(n,r){return void 0===r?function(r){return l(n,r);}:r.slice(n);}function v(n,r){if(void 0===r)return function(r){return v(n,r);};if(void 0===r.length)return function(n,r){var t={};for(var u in r)t[u]=n(r[u],u);return t;}(n,r);for(var t=-1,u=r.length,i=Array(u);++t<u;)i[t]=n(r[t]);return i;}function d(n,r,t){var u=-1,i=n.length;(t=t>i?i:t)<0&&(t+=i),i=r>t?0:t-r>>>0,r>>>=0;for(var e=Array(i);++u<i;)e[u]=n[u+r];return e;}function s(n,r){return void 0===r?function(r){return s(n,r);}:Object.assign({},n,r);}function h(n,r){if(1===arguments.length)return function(r){return h(n,r);};if(null!==r&&void 0!==r){for(var t=r,u=0,i="string"==typeof n?n.split("."):n;u<i.length;){if(null===t||void 0===t)return;t=t[i[u]],u++;}return t;}}var p=c(function(n,r,t){return a(n,h(r,t));});function g(n,r){if(void 0===r)return function(r){return g(n,r);};for(var t=[],u=n;u<r;u++)t.push(u);return t;}function y(n,r,t){return void 0===r?function(r,t){return y(n,r,t);}:void 0===t?function(t){return y(n,r,t);}:t.reduce(n,r);}n.add=function n(r,t){return void 0===t?function(t){return n(r,t);}:r+t;},n.addIndex=r,n.adjust=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:u.concat().map(function(n,i){return i===t?r(u[t]):n;});},n.all=function n(r,u){return void 0===u?function(t){return n(r,t);}:t(r,u).length===u.length;},n.allPass=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:!u(function(n){return!n(t);},r);},n.always=function(n){return function(){return n;};},n.any=u,n.anyPass=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:u(function(n){return n(t);})(r);},n.append=function n(r,t){if(void 0===t)return function(t){return n(r,t);};if("string"==typeof t)return""+t+r;var u=t.concat();return u.push(r),u;},n.both=function n(r,t){return void 0===t?function(t){return n(r,t);}:function(n){return r(n)&&t(n);};},n.complement=function(n){return function(r){return!n(r);};},n.compose=i,n.concat=function n(r,t){return void 0===t?function(t){return n(r,t);}:"string"==typeof r?""+r+t:r.concat(t);},n.contains=f,n.curry=c,n.dec=function(n){return n-1;},n.defaultTo=a,n.dissoc=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};if(null!==t&&void 0!==t){var u={};for(var i in t)i!==""+r&&(u[i]=t[i]);return u;}},n.divide=function n(r,t){return void 0===t?function(t){return n(r,t);}:r/t;},n.drop=l,n.dropLast=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.slice(0,-r);},n.either=function n(r,t){return void 0===t?function(t){return n(r,t);}:function(n){return r(n)||t(n);};},n.endsWith=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.endsWith(r);},n.equals=o,n.F=function(){return!1;},n.filter=t,n.find=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.find(r);},n.findIndex=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u=t.length,i=-1;++i<u;)if(r(t[i]))return i;return-1;},n.flatten=function n(r,t){t=void 0===t?[]:t;for(var u=0;u<r.length;u++)Array.isArray(r[u])?n(r[u],t):t.push(r[u]);return t;},n.flip=function(n){for(var r=[],t=arguments.length-1;t-->0;)r[t]=arguments[t+1];return function(n){return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 1===r.length?function(t){return n(t,r[0]);}:2===r.length?n(r[1],r[0]):void 0;};}(n);},n.forEach=function n(r,t){return void 0===t?function(t){return n(r,t);}:(v(r,t),t);},n.groupBy=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u={},i=0;i<t.length;i++){var e=t[i],o=r(e);u[o]||(u[o]=[]),u[o].push(e);}return u;},n.has=function n(r,t){return void 0===t?function(t){return n(r,t);}:void 0!==t[r];},n.head=function(n){return"string"==typeof n?n[0]||"":n[0];},n.identity=function(n){return n;},n.ifElse=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:function(n){return!0===("boolean"==typeof r?r:r(n))?t(n):u(n);};},n.inc=function(n){return n+1;},n.includes=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.includes(r);},n.indexBy=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u={},i=0,e;i<t.length;i++){e=t[i];u[r(e)]=e;}return u;},n.indexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u=-1,i=t.length;++u<i;)if(t[u]===r)return u;return-1;},n.init=function(n){return"string"==typeof n?n.slice(0,-1):n.length?d(n,0,-1):[];},n.is=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:null!=t&&t.constructor===r||t instanceof r;},n.isNil=function(n){return void 0===n||null===n;},n.join=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.join(r);},n.keys=function(n){return Object.keys(n);},n.last=function(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1];},n.lastIndexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t);};var u=-1;return t.map(function(n,t){o(n,r)&&(u=t);}),u;},n.length=function(n){return n.length;},n.map=v,n.match=function n(r,t){if(void 0===t)return function(t){return n(r,t);};var u=t.match(r);return null===u?[]:u;},n.merge=s,n.max=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:t>r?t:r;},n.maxBy=function n(r,t,u){return 2===arguments.length?function(u){return n(r,t,u);}:1===arguments.length?function(t,u){return n(r,t,u);}:r(u)>r(t)?u:t;},n.min=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:t<r?t:r;},n.minBy=function n(r,t,u){return 2===arguments.length?function(u){return n(r,t,u);}:1===arguments.length?function(t,u){return n(r,t,u);}:r(u)<r(t)?u:t;},n.modulo=function n(r,t){return void 0===t?function(t){return n(r,t);}:r%t;},n.multiply=function n(r,t){return void 0===t?function(t){return n(r,t);}:r*t;},n.none=function n(r,t){return void 0===t?function(t){return n(r,t);}:0===t.filter(r).length;},n.not=function(n){return!n;},n.nth=function n(r,t){if(void 0===t)return function(t){return n(r,t);};var u=r<0?t.length+r:r;return"[object String]"===Object.prototype.toString.call(t)?t.charAt(u):t[u];},n.omit=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};if(null!==t&&void 0!==t){var u="string"==typeof r?r=r.split(","):r,i={};for(var e in t)u.includes(e)||(i[e]=t[e]);return i;}},n.partialCurry=function(n,r){return void 0===r&&(r={}),function(t){return"Async"===e(n)||"Promise"===e(n)?new Promise(function(u,i){n(s(t,r)).then(u).catch(i);}):n(s(t,r));};},n.path=h,n.pathOr=p,n.pick=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};if(null!==t&&void 0!==t){for(var u="string"==typeof r?r.split(","):r,i={},e=0;e<u.length;)u[e]in t&&(i[u[e]]=t[u[e]]),e++;return i;}},n.pickAll=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};if(null!==t&&void 0!==t){for(var u="string"==typeof r?r.split(","):r,i={},e=0;e<u.length;)i[u[e]]=u[e]in t?t[u[e]]:void 0,e++;return i;}},n.pipe=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return i.apply(void 0,n.reverse());},n.pluck=function n(r,t){if(void 0===t)return function(t){return n(r,t);};var u=[];return v(function(n){void 0!==n[r]&&u.push(n[r]);},t),u;},n.prepend=function n(r,t){if(void 0===t)return function(t){return n(r,t);};if("string"==typeof t)return""+r+t;var u=t.concat();return u.unshift(r),u;},n.prop=function n(r,t){return void 0===t?function(t){return n(r,t);}:t[r];},n.propEq=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:u[r]===t;},n.range=g,n.reduce=y,n.reject=function n(r,u){return void 0===u?function(t){return n(r,t);}:t(function(n){return!r(n);},u);},n.repeat=function n(r,t){return void 0===t?function(t){return n(r,t);}:Array(t).fill(r);},n.replace=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:u.replace(r,t);},n.reverse=function(n){return n.concat().reverse();},n.sort=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.concat().sort(r);},n.sortBy=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.concat().sort(function(n,t){var u=r(n),i=r(t);return u<i?-1:u>i?1:0;});},n.split=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.split(r);},n.splitEvery=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u=r>1?r:1,i=[],e=0;e<t.length;)i.push(t.slice(e,e+=u));return i;},n.startsWith=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.startsWith(r);},n.subtract=function n(r,t){return void 0===t?function(t){return n(r,t);}:r-t;},n.T=function(){return!0;},n.tail=function(n){return l(1,n);},n.take=function n(r,t){return void 0===t?function(t){return n(r,t);}:"string"==typeof t?t.slice(0,r):d(t,0,r);},n.takeLast=function n(r,t){if(void 0===t)return function(t){return n(r,t);};var u=t.length,i=r>u?u:r;return"string"==typeof t?t.slice(u-i):d(t,i=u-i,u);},n.tap=function n(r,t){return void 0===t?function(t){return n(r,t);}:(r(t),t);},n.test=function n(r,t){return void 0===t?function(t){return n(r,t);}:-1!==t.search(r);},n.times=function n(r,t){return void 0===t?function(t){return n(r,t);}:v(r,g(0,t));},n.toLower=function(n){return n.toLowerCase();},n.toString=function(n){return n.toString();},n.toUpper=function(n){return n.toUpperCase();},n.trim=function(n){return n.trim();},n.type=e,n.uniq=function(n){for(var r=-1,t=[],u;++r<n.length;){u=n[r];f(u,t)||t.push(u);}return t;},n.uniqWith=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};for(var i=-1,e=[],o=function(){var n=t[i];u(function(t){return r(n,t);},e)||e.push(n);};++i<t.length;)o();return e;},n.update=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:u.concat().fill(t,r,r+1);},n.values=function(n){var r=[];for(var t in n)r.push(n[t]);return r;},n.without=function(n,r){return y(function(r,t){return f(t,n)?r:r.concat(t);},[],r);},n.zip=function n(t,u){return void 0===u?function(r){return n(t,r);}:r(y)(function(n,r,t){return u[t]?n.concat([[r,u[t]]]):n;},[],t);},n.zipObj=function n(r,t){return void 0===t?function(t){return n(r,t);}:r.reduce(function(n,r,u){return n[r]=t[u],n;},{});};}); | ||
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.rambda={});}(this,function(n){function r(n){return function(r){for(var t=[],u=arguments.length-1;u-->0;)t[u]=arguments[u+1];var e=0;return n.apply(null,[function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return r.apply(null,n.concat([e++]));}].concat(t));};}function t(n,r){if(void 0===r)return function(r){return t(n,r);};if(void 0===r.length)return function(n,r){var t={};for(var u in r)n(r[u],u)&&(t[u]=r[u]);return t;}(n,r);for(var u=-1,e=0,i=r.length,o=[],f;++u<i;){f=r[u];n(f)&&(o[e++]=f);}return o;}function u(n,r){if(void 0===r)return function(r){return u(n,r);};for(var t=0;t<r.length;){if(n(r[t]))return!0;t++;}return!1;}function e(n,r){return void 0===r&&(r=[]),function(){for(var t,u=[],i=arguments.length;i--;)u[i]=arguments[i];return(t=r.concat(u)).length>=n.length?n.apply(void 0,t):e(n,t);};}var i=e(function(n,r,t){var u;return Object.assign({},t,((u={})[n]=r,u));});function o(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];var u=n.slice();if(u.length>0){for(var e=u.pop().apply(void 0,r);u.length>0;)e=u.pop()(e);return e;}};}function f(n){var r=typeof n;if(null===n)return"Null";if(void 0===n)return"Undefined";if("boolean"===r)return"Boolean";if("number"===r)return"Number";if("string"===r)return"String";if(Array.isArray(n))return"Array";if(n instanceof RegExp)return"RegExp";var t=n.toString();return t.startsWith("async")?"Async":"[object Promise]"===t?"Promise":t.includes("function")||t.includes("=>")?"Function":"Object";}function c(n,r){if(1===arguments.length)return function(r){return c(n,r);};if(n===r)return!0;var t=f(n);if(t!==f(r))return!1;if("Array"===t){var u=Array.from(n),e=Array.from(r);if(u.toString()!==e.toString())return!1;var i=!0;return u.forEach(function(n,r){i&&(n===e[r]||c(n,e[r])||(i=!1));}),i;}if("Object"===t){var o=Object.keys(n);if(o.length!==Object.keys(r).length)return!1;var a=!0;return o.forEach(function(t){if(a){var u=n[t],e=r[t];u===e||c(u,e)||(a=!1);}}),a;}return!1;}function a(n,r){if(void 0===r)return function(r){return a(n,r);};for(var t=-1,u=!1;++t<r.length&&!u;)c(r[t],n)&&(u=!0);return u;}function l(n,r){return 1===arguments.length?function(r){return l(n,r);}:void 0===r||null===r||!0===Number.isNaN(r)?n:r;}function v(n,r){return void 0===r?function(r){return v(n,r);}:r.slice(n);}function d(n,r,t){var u=-1,e=n.length;(t=t>e?e:t)<0&&(t+=e),e=r>t?0:t-r>>>0,r>>>=0;for(var i=Array(e);++u<e;)i[u]=n[u+r];return i;}function s(n,r){if(void 0===r)return function(r){return s(n,r);};var t=r.length,u=n>t?t:n;return"string"==typeof r?r.slice(t-u):d(r,u=t-u,t);}function h(n,r){if(1===arguments.length)return function(r){return h(n,r);};if(void 0===r)return[];if(void 0===r.length)return function(n,r){var t={};for(var u in r)t[u]=n(r[u],u);return t;}(n,r);for(var t=-1,u=r.length,e=Array(u);++t<u;)e[t]=n(r[t]);return e;}function g(n,r){return 1===arguments.length?function(r){return g(n,r);}:Object.assign({},n||{},r||{});}function p(n,r){if(1===arguments.length)return function(r){return p(n,r);};if(null!==r&&void 0!==r){for(var t=r,u=0,e="string"==typeof n?n.split("."):n;u<e.length;){if(null===t||void 0===t)return;t=t[e[u]],u++;}return t;}}var y=e(function(n,r,t){return l(n,p(r,t));});function m(n,r){if(void 0===r)return function(r){return m(n,r);};for(var t=[],u=n;u<r;u++)t.push(u);return t;}function b(n,r,t){return void 0===r?function(r,t){return b(n,r,t);}:void 0===t?function(t){return b(n,r,t);}:t.reduce(n,r);}n.add=function n(r,t){return void 0===t?function(t){return n(r,t);}:r+t;},n.addIndex=r,n.adjust=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:u.concat().map(function(n,e){return e===t?r(u[t]):n;});},n.all=function n(r,u){return void 0===u?function(t){return n(r,t);}:t(r,u).length===u.length;},n.allPass=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:!u(function(n){return!n(t);},r);},n.always=function(n){return function(){return n;};},n.any=u,n.anyPass=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:u(function(n){return n(t);})(r);},n.append=function n(r,t){if(void 0===t)return function(t){return n(r,t);};if("string"==typeof t)return""+t+r;var u=t.concat();return u.push(r),u;},n.assoc=i,n.both=function n(r,t){return void 0===t?function(t){return n(r,t);}:function(n){return r(n)&&t(n);};},n.complement=function(n){return function(r){return!n(r);};},n.compose=o,n.concat=function n(r,t){return void 0===t?function(t){return n(r,t);}:"string"==typeof r?""+r+t:r.concat(t);},n.contains=a,n.curry=e,n.dec=function(n){return n-1;},n.defaultTo=l,n.dissoc=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};if(null===t||void 0===t)return{};var u={};for(var e in t)u[e]=t[e];return delete u[r],u;},n.divide=function n(r,t){return void 0===t?function(t){return n(r,t);}:r/t;},n.drop=v,n.dropLast=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.slice(0,-r);},n.either=function n(r,t){return void 0===t?function(t){return n(r,t);}:function(n){return r(n)||t(n);};},n.endsWith=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:c(r,s(r.length,t));},n.equals=c,n.F=function(){return!1;},n.filter=t,n.find=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.find(r);},n.findIndex=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u=t.length,e=-1;++e<u;)if(r(t[e]))return e;return-1;},n.flatten=function n(r,t){t=void 0===t?[]:t;for(var u=0;u<r.length;u++)Array.isArray(r[u])?n(r[u],t):t.push(r[u]);return t;},n.flip=function(n){for(var r=[],t=arguments.length-1;t-->0;)r[t]=arguments[t+1];return function(n){return function(){for(var r=[],t=arguments.length;t--;)r[t]=arguments[t];return 1===r.length?function(t){return n(t,r[0]);}:2===r.length?n(r[1],r[0]):void 0;};}(n);},n.forEach=function n(r,t){return void 0===t?function(t){return n(r,t);}:(h(r,t),t);},n.groupBy=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u={},e=0;e<t.length;e++){var i=t[e],o=r(i);u[o]||(u[o]=[]),u[o].push(i);}return u;},n.has=function n(r,t){return void 0===t?function(t){return n(r,t);}:void 0!==t[r];},n.head=function(n){return"string"==typeof n?n[0]||"":n[0];},n.identity=function(n){return n;},n.ifElse=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:function(n){return!0===("boolean"==typeof r?r:r(n))?t(n):u(n);};},n.inc=function(n){return n+1;},n.includes=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.includes(r);},n.indexBy=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u={},e=0,i;e<t.length;e++){i=t[e];u[r(i)]=i;}return u;},n.indexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u=-1,e=t.length;++u<e;)if(t[u]===r)return u;return-1;},n.init=function(n){return"string"==typeof n?n.slice(0,-1):n.length?d(n,0,-1):[];},n.is=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:null!=t&&t.constructor===r||t instanceof r;},n.isNil=function(n){return void 0===n||null===n;},n.join=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.join(r);},n.keys=function(n){return Object.keys(n);},n.last=function(n){return"string"==typeof n?n[n.length-1]||"":n[n.length-1];},n.lastIndexOf=function n(r,t){if(void 0===t)return function(t){return n(r,t);};var u=-1;return t.map(function(n,t){c(n,r)&&(u=t);}),u;},n.length=function(n){return n.length;},n.map=h,n.match=function n(r,t){if(void 0===t)return function(t){return n(r,t);};var u=t.match(r);return null===u?[]:u;},n.merge=g,n.max=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:t>r?t:r;},n.maxBy=function n(r,t,u){return 2===arguments.length?function(u){return n(r,t,u);}:1===arguments.length?function(t,u){return n(r,t,u);}:r(u)>r(t)?u:t;},n.min=function n(r,t){return 1===arguments.length?function(t){return n(r,t);}:t<r?t:r;},n.minBy=function n(r,t,u){return 2===arguments.length?function(u){return n(r,t,u);}:1===arguments.length?function(t,u){return n(r,t,u);}:r(u)<r(t)?u:t;},n.modulo=function n(r,t){return void 0===t?function(t){return n(r,t);}:r%t;},n.multiply=function n(r,t){return void 0===t?function(t){return n(r,t);}:r*t;},n.none=function n(r,t){return void 0===t?function(t){return n(r,t);}:0===t.filter(r).length;},n.not=function(n){return!n;},n.nth=function n(r,t){if(void 0===t)return function(t){return n(r,t);};var u=r<0?t.length+r:r;return"[object String]"===Object.prototype.toString.call(t)?t.charAt(u):t[u];},n.omit=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};if(null!==t&&void 0!==t){var u="string"==typeof r?r=r.split(","):r,e={};for(var i in t)u.includes(i)||(e[i]=t[i]);return e;}},n.partialCurry=function(n,r){return void 0===r&&(r={}),function(t){return"Async"===f(n)||"Promise"===f(n)?new Promise(function(u,e){n(g(t,r)).then(u).catch(e);}):n(g(t,r));};},n.path=p,n.pathOr=y,n.pick=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};if(null!==t&&void 0!==t){for(var u="string"==typeof r?r.split(","):r,e={},i=0;i<u.length;)u[i]in t&&(e[u[i]]=t[u[i]]),i++;return e;}},n.pickAll=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};if(null!==t&&void 0!==t){for(var u="string"==typeof r?r.split(","):r,e={},i=0;i<u.length;)e[u[i]]=u[i]in t?t[u[i]]:void 0,i++;return e;}},n.pipe=function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return o.apply(void 0,n.reverse());},n.pluck=function n(r,t){if(void 0===t)return function(t){return n(r,t);};var u=[];return h(function(n){void 0!==n[r]&&u.push(n[r]);},t),u;},n.prepend=function n(r,t){if(void 0===t)return function(t){return n(r,t);};if("string"==typeof t)return""+r+t;var u=t.concat();return u.unshift(r),u;},n.prop=function n(r,t){return void 0===t?function(t){return n(r,t);}:t[r];},n.propEq=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:u[r]===t;},n.range=m,n.reduce=b,n.reject=function n(r,u){return void 0===u?function(t){return n(r,t);}:t(function(n){return!r(n);},u);},n.repeat=function n(r,t){return void 0===t?function(t){return n(r,t);}:Array(t).fill(r);},n.replace=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:u.replace(r,t);},n.reverse=function(n){return n.concat().reverse();},n.sort=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.concat().sort(r);},n.sortBy=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.concat().sort(function(n,t){var u=r(n),e=r(t);return u<e?-1:u>e?1:0;});},n.split=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.split(r);},n.splitEvery=function n(r,t){if(void 0===t)return function(t){return n(r,t);};for(var u=r>1?r:1,e=[],i=0;i<t.length;)e.push(t.slice(i,i+=u));return e;},n.startsWith=function n(r,t){return void 0===t?function(t){return n(r,t);}:t.startsWith(r);},n.subtract=function n(r,t){return void 0===t?function(t){return n(r,t);}:r-t;},n.T=function(){return!0;},n.tail=function(n){return v(1,n);},n.take=function n(r,t){return void 0===t?function(t){return n(r,t);}:"string"==typeof t?t.slice(0,r):d(t,0,r);},n.takeLast=s,n.tap=function n(r,t){return void 0===t?function(t){return n(r,t);}:(r(t),t);},n.test=function n(r,t){return void 0===t?function(t){return n(r,t);}:-1!==t.search(r);},n.times=function n(r,t){return void 0===t?function(t){return n(r,t);}:h(r,m(0,t));},n.toLower=function(n){return n.toLowerCase();},n.toString=function(n){return n.toString();},n.toUpper=function(n){return n.toUpperCase();},n.trim=function(n){return n.trim();},n.type=f,n.uniq=function(n){for(var r=-1,t=[],u;++r<n.length;){u=n[r];a(u,t)||t.push(u);}return t;},n.uniqWith=function n(r,t){if(1===arguments.length)return function(t){return n(r,t);};for(var e=-1,i=[],o=function(){var n=t[e];u(function(t){return r(n,t);},i)||i.push(n);};++e<t.length;)o();return i;},n.update=function n(r,t,u){return void 0===t?function(t,u){return n(r,t,u);}:void 0===u?function(u){return n(r,t,u);}:u.concat().fill(t,r,r+1);},n.values=function(n){var r=[];for(var t in n)r.push(n[t]);return r;},n.without=function(n,r){return b(function(r,t){return a(t,n)?r:r.concat(t);},[],r);},n.zip=function n(t,u){return void 0===u?function(r){return n(t,r);}:r(b)(function(n,r,t){return u[t]?n.concat([[r,u[t]]]):n;},[],t);},n.zipObj=function n(r,t){return void 0===t?function(t){return n(r,t);}:r.reduce(function(n,r,u){return n[r]=t[u],n;},{});};}); |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
309510
116
2144
2091
0