Comparing version 0.15.1 to 0.16.0
@@ -0,1 +1,11 @@ | ||
## v0.16.0 | ||
### Features | ||
* Added `F`. | ||
* Added `T`. | ||
* Added `partition`. | ||
### Deprecations | ||
* `mapIndexed` is now `mapi`. | ||
## v0.15.1 | ||
@@ -2,0 +12,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.fp=t()}(this,function(){"use strict";function n(n){return function t(r){return arguments.length?n(r):t}}function t(t){return function r(e,u){switch(arguments.length){case 0:return r;case 1:return n(function(n){return t(e,n)});default:return t(e,u)}}}function r(n){return function(){return n}}function e(r){return function e(u,o,i){switch(arguments.length){case 0:return e;case 1:return t(function(n,t){return r(u,n,t)});case 2:return n(function(n){return r(u,o,n)});default:return r(u,o,i)}}}function u(n){return null==n?"Nil":un.call(n).slice(8,-1)}function o(n){for(var t=[],r=t.length,e=n.next();!e.done;)t[r++]=e,e=n.next();return e}function i(n,t){var r,e,u;if(r=Object.keys(n),r.length!==Object.keys(t).length)return!1;for(e=r.length-1;e>=0;){if(!on.call(t,r[e]))return!1;e-=1}for(e=r.length-1;e>=0;){if(u=r[e],!f(n[u],t[u]))return!1;e-=1}return!0}function f(n,t){var r,e;if(n===t)return!0;if(u(n)!==u(t))return!1;if(!n||!t||"object"!=typeof n)return!1;switch(u(n)){case"Array":return n.length===t.length&&i(n,t);case"Date":return n.valueOf()===t.valueOf();case"Promise":return n===t;case"Map":case"Set":return r=o(n.entries()),e=o(t.entries()),r.length===e.length&&f(r,e);default:return i(n,t)}}function c(n,t){for(var r=t.length-1;r>=0;)if(f(n,t[r--]))return!0;return!1}function a(n){for(var t=0,r=n.length,e=[];t<r;t++)n[t]&&(e[e.length]=n[t]);return e}function l(n,t){switch(n){case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,o){return t.apply(this,arguments)};case 6:return function(n,r,e,u,o,i){return t.apply(this,arguments)};default:throw new Error("Arity must be less than or equal to 6.")}}function s(n){return ln(n.length,function(){return!n.apply(null,arguments)})}function h(){for(var n=arguments,t=0;t<n.length;t++)if(!hn("function",n[t]))throw new TypeError("Invalid argument supplied to `pipe`. The argument at index ["+t+"] was not a function; what was received was of type: "+u(n[t])+".");return ln(n[0].length,function(){for(var t=0,r=n.length,e=n[t++].apply(null,arguments);t<r;t++)e=n[t](e);return e})}function p(){for(var n=0;n<arguments.length;n++)if(!hn("function",arguments[n]))throw new TypeError("Invalid argument supplied to `compose`. The argument at index ["+n+"] was not a function; what was received was of type: "+u(arguments[n])+".");return h.apply(null,sn.call(arguments))}function g(n){return ln(n.length,n)}function v(n){return n-1}function d(n){if(null!=n){if("function"==typeof n.empty)return n.empty();if(n.constructor&&"function"==typeof n.constructor.empty)return n.constructor.empty();switch(u(n)){case"Array":return[];case"String":return"";case"Object":return{};default:return}}}function y(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(r=0,e=t.length;r<e;r++)u.push(t[r]);else u.push(t);return u}function m(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(t=m(t),r=0,e=t.length;r<e;r++)u[u.length]=t[r];else u[u.length]=t;return u}function w(n){return ln(n.length,function(){return n.apply(null,sn.call(arguments))})}function b(n){for(var t=0,r=n.length,e={};t<r;t++)e[n[t][0]]=n[t][1];return e}function j(n){return n[0]}function E(n){return n}function O(n){return n+1}function A(n){return null!=n&&f(n,d(n))}function k(n){return!isNaN(n)&&isFinite(n)&&n%2===0}function T(n){return null==n}function x(n){return!isNaN(n)&&isFinite(n)&&!!n&&n===Math.floor(n)&&n%2!==0}function N(n){return function(){var t=cn.call(arguments);return Pn(function(n){return n.apply(null,t)},n)}}function C(n){return Object.keys(n)}function L(n){return n[n.length-1]}function M(n){return n.length}function B(n){return Rn(zn(n),nn(n))}function P(n,t,r){for(var e=0,u=r.length;e<u;e++)t=n(t,r[e]);return t}function R(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]>r&&(r=n[t]),t--;return r}function z(n){for(var t=0,r=n.length,e=0;t<r;t++)e+=n[t];return e}function I(n){if(!n.length)throw new Error("Cannot calculate the mean of an empty list.");return z(n)/n.length}function S(n,t){for(var r in t)on.call(t,r)&&n(r,t[r])}function q(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]<r&&(r=n[t]),t--;return r}function U(n){return[n]}function D(n){return sn.call(cn.call(n,0))}function F(n){return cn.call(n,1)}function W(n){return n.toLowerCase()}function K(n){return n.toUpperCase()}function V(n){return function(t){return n(t),t}}function G(n){var t=[];return S(function(n,r){t.push([n,r])},n),t}function H(n){return n.trim()}function J(n){for(var t=Object.keys(n),r=0,e=t.length,u=new Array(t.length);r<e;)u[r]=n[t[r]],r+=1;return u}function Q(n){for(var t,r=Object.keys(vt),e=r.length,u=0;u<e;)t=r[u],n[t]=vt[t],u+=1}var X=t(function(n,t){return n+t}),Y=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return!1;return!0}),Z=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return!0;return!1}),$=[].concat,_=t(function(n,t){return"string"==typeof t?t+n:$.call(t,[n])}),nn=e(function(n,t,r){var e,u={};for(e in r)u[e]=r[e];return u[n]=t,u}),tn=t(function(n,t){for(var r,e,u=0,o=t.length,i=[];u<o;u++)if(e=n(t[u]),Array.isArray(e))for(r=0;r<e.length;r++)i.push(e[r]);else i.push(e);return i}),rn=t(function(n,t){return $.call(n,t)}),en=t(function(n,t){for(var r=0,e=n.length;r<e;r++)if(n[r][0](t))return n[r][1](t)}),un=Object.prototype.toString,on=Object.prototype.hasOwnProperty,fn=t(c),cn=[].slice,an=function n(t,r,e){return l(t,function(){var u,o=r;if(arguments.length)for(o=cn.call(r),u=0;u<arguments.length;u++)o.push(arguments[u]);return o.length>=t?e.apply(null,o):n(t,o,e)})},ln=t(function(r,u){switch(r){case 0:return u;case 1:return n(u);case 2:return t(u);case 3:return e(u);default:return an(r,[],u)}}),sn=[].reverse,hn=t(function(n,t){return"undefined"==typeof n?"undefined"==typeof t:null==n?null==t&&"undefined"!=typeof t:"string"==typeof n?u(t).toLowerCase()===n.toLowerCase():t instanceof n||t.constructor===n}),pn=t(function(n,t){var r,e={};for(r in t)r!==n&&(e[r]=t[r]);return e}),gn=t(function(n,t){if(!n)throw new Error("Cannot divide by 0.");return t/n}),vn=t(function(n,t){return cn.call(t,n)}),dn=t(function(n,t){for(var r=0,e=t.length;r<e&&!n(t[r]);)r+=1;return cn.call(t,r)}),yn=t(function(n,t){for(var r=0,e=t.length;r<e&&n(t[r]);)r+=1;return cn.call(t,r)}),mn=t(f),wn=t(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)&&(o[o.length]=r);return o}),bn=t(function(n,t){for(var r,e=0,u=t.length;e<u;e++)if(r=t[e],n(r))return r}),jn=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return r;return-1}),En=t(function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r--}}),On=t(function(n,t){if(t.fmap)return t.fmap(n);if(t.map)return t.map(n);throw new Error("The functor provided to fmap does not implement `map`.")}),An=t(function(n,t){for(var r=0,e=t.length;r<e;r++)n(t[r])}),kn=t(function(n,t){return t>n}),Tn=t(function(n,t){return t>=n}),xn=t(function(n,t){return on.call(t,n)}),Nn=t(function(n,t){return n===t}),Cn=e(function(n,t,r){return function(e){return n(e)?t(e):r(e)}}),Ln=[].push,Mn=e(function(n,t,r){var e=cn.call(r,0,n);return e[e.length]=t,Ln.apply(e,cn.call(r,n)),e}),Bn=t(function(n,t){return t.join(n)}),Pn=t(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e]);return r}),Rn=t(function(n,t){return{get:n,set:t,toString:function(){return"Lens"}}}),zn=t(function(n,t){return t[n]}),In=t(function(n,t){return t<n}),Sn=t(function(n,t){return t<=n}),qn=t(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e],e);return r}),Un=t(function(n,t){return P(function(r,e){return r[n(e)]=t[e],r},{},Object.keys(t))}),Dn=t(function(n,t){return P(function(r,e){return r[e]=n(t[e]),r},{},Object.keys(t))}),Fn=t(function(n,t){var r={},e=function(n,t){r[n]=t};return S(e,n),S(e,t),r}),Wn=t(function(n,t){return n*t}),Kn=t(function(n,t){var r,e,u,o={};for(r in t){for(e=!1,u=0;u<n.length;u++)if(n[u]===r){e=!0;break}e||(o[r]=t[r])}return o}),Vn=e(function(n,t,r){return n.set(t,r)}),Gn=e(function(n,t,r){return Vn(n,t(n.get(r)),r)}),Hn=t(function(n,t){return[n,t]}),Jn=t(function(n,t){for(var r=0,e=n.length,u={};r<e;)u[n[r]]=t[n[r]],r++;return u}),Qn=t(function(n,t){return"string"==typeof t?n+t:$.call([n],t)}),Xn=e(function(n,t,r){return f(r[n],t)}),Yn=e(function(n,t,r){var e,u,o=[];if(0===n)throw new Error("The `increment` value provided to `rangeBy` must be a non-zero number.");if(t===r)throw new Error("The `start` value provided to `rangeBy` must be greater than or less than the `end` value. Received the same value for both: "+t+".");if(n>0&&t>r)throw new Error("The `increment` value provided to `rangeBy` must be negative when the start value ("+t+") is greater than the end value ("+r+"). Received: "+n+".");if(n<0&&t<r)throw new Error("The `increment` value provided to `rangeBy` must be positive when the start value ("+t+") is less than the end value ("+r+"). Received: "+n+".");for(e=Math.abs(Math.ceil((r-t)/n)),u=0;u<e;u++)o.push(t+n*u);return o}),Zn=t(function(n,t){if(n<t)return Yn(1,n,t);if(n>t)return Yn(-1,n,t);throw new Error("The `start` value provided to `range` must be greater than or less than the `end` value. Received the same value for both: "+n+".")}),$n=e(P),_n=e(function(n,t,r){return P(n,t,sn.call(r))}),nt=t(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)||(o[o.length]=r);return o}),tt=e(function(n,t,r){for(var e=0,u=r.length,o=[t];e<u;e++)t=n(t,r[e]),o[o.length]=t;return o}),rt=t(function(n,t){return t.split(n)}),et=t(function(n,t){return t-n}),ut=t(function(n,t){return cn.call(t,0,n)}),ot=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return cn.call(t,0,r);return cn.call(t)}),it=t(function(n,t){return n.test(t)}),ft=t(function(n,t){for(var r=0,e=[];r<t;r++)e.push(n(r));return e}),ct=t(function(n,t){return function(r){return n(r)?t(r):r}}),at=t(function(n,t){return ct(s(n),t)}),lt=t(function(n,t){return n.get(t)}),st=t(function(n,t){var r;for(r in n)if(on.call(n,r)&&!n[r](t[r]))return!1;return!0}),ht=t(function(n,t){for(var r=0,e=t.length,u=[];r<e;)c(t[r],n)||(u[u.length]=t[r]),r++;return u}),pt=t(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u=new Array(e);r<e;r++)u[r]=[n[r],t[r]];return u}),gt=t(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u={};r<e;r++)u[n[r]]=t[r];return u}),vt=Object.freeze({add:X,all:Y,always:r,any:Z,append:_,assoc:nn,chain:tn,concat:rn,cond:en,contains:fn,compact:a,complement:s,compose:p,curry:g,curryN:ln,dec:v,dissoc:pn,divide:gn,drop:vn,dropUntil:dn,dropWhile:yn,empty:d,equals:mn,filter:wn,find:bn,findIndex:jn,findLast:En,flatten:y,flattenDeep:m,flip:w,fmap:On,forEach:An,fromPairs:b,gt:kn,gte:Tn,has:xn,head:j,identical:Nn,identity:E,ifElse:Cn,inc:O,insert:Mn,isEmpty:A,isEven:k,isNil:T,isOdd:x,isType:hn,join:Bn,juxt:N,keys:C,last:L,length:M,lens:Rn,lensProp:B,lt:In,lte:Sn,map:Pn,mapIndexed:qn,mapKeys:Un,mapValues:Dn,max:R,mean:I,merge:Fn,min:q,multiply:Wn,of:U,omit:Kn,over:Gn,pair:Hn,pick:Jn,pipe:h,prepend:Qn,prop:zn,propEq:Xn,range:Zn,rangeBy:Yn,reduce:$n,foldl:$n,reduceRight:_n,foldr:_n,reject:nt,reverse:D,scan:tt,set:Vn,split:rt,subtract:et,sum:z,tail:F,take:ut,takeWhile:ot,test:it,times:ft,toLower:W,toUpper:K,tap:V,toPairs:G,trim:H,type:u,unless:at,values:J,view:lt,when:ct,where:st,without:ht,zip:pt,zipObj:gt});return Q}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.fp=t()}(this,function(){"use strict";function n(n){return function t(r){return arguments.length?n(r):t}}function t(t){return function r(e,u){switch(arguments.length){case 0:return r;case 1:return n(function(n){return t(e,n)});default:return t(e,u)}}}function r(n){return function(){return n}}function e(r){return function e(u,o,i){switch(arguments.length){case 0:return e;case 1:return t(function(n,t){return r(u,n,t)});case 2:return n(function(n){return r(u,o,n)});default:return r(u,o,i)}}}function u(n){return null==n?"Nil":fn.call(n).slice(8,-1)}function o(n){for(var t=[],r=t.length,e=n.next();!e.done;)t[r++]=e,e=n.next();return e}function i(n,t){var r,e,u;if(r=Object.keys(n),r.length!==Object.keys(t).length)return!1;for(e=r.length-1;e>=0;){if(!cn.call(t,r[e]))return!1;e-=1}for(e=r.length-1;e>=0;){if(u=r[e],!f(n[u],t[u]))return!1;e-=1}return!0}function f(n,t){var r,e;if(n===t)return!0;if(u(n)!==u(t))return!1;if(!n||!t||"object"!=typeof n)return!1;switch(u(n)){case"Array":return n.length===t.length&&i(n,t);case"Date":return n.valueOf()===t.valueOf();case"Promise":return n===t;case"Map":case"Set":return r=o(n.entries()),e=o(t.entries()),r.length===e.length&&f(r,e);default:return i(n,t)}}function c(n,t){for(var r=t.length-1;r>=0;)if(f(n,t[r--]))return!0;return!1}function a(n){for(var t=0,r=n.length,e=[];t<r;t++)n[t]&&(e[e.length]=n[t]);return e}function l(n,t){switch(n){case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,o){return t.apply(this,arguments)};case 6:return function(n,r,e,u,o,i){return t.apply(this,arguments)};default:throw new Error("Arity must be less than or equal to 6.")}}function s(n){return hn(n.length,function(){return!n.apply(null,arguments)})}function h(){for(var n=arguments,t=0;t<n.length;t++)if(!gn("function",n[t]))throw new TypeError("Invalid argument supplied to `pipe`. The argument at index ["+t+"] was not a function; what was received was of type: "+u(n[t])+".");return hn(n[0].length,function(){for(var t=0,r=n.length,e=n[t++].apply(null,arguments);t<r;t++)e=n[t](e);return e})}function p(){for(var n=0;n<arguments.length;n++)if(!gn("function",arguments[n]))throw new TypeError("Invalid argument supplied to `compose`. The argument at index ["+n+"] was not a function; what was received was of type: "+u(arguments[n])+".");return h.apply(null,pn.call(arguments))}function g(n){return hn(n.length,n)}function v(n){return n-1}function d(n){if(null!=n){if("function"==typeof n.empty)return n.empty();if(n.constructor&&"function"==typeof n.constructor.empty)return n.constructor.empty();switch(u(n)){case"Array":return[];case"String":return"";case"Object":return{};default:return}}}function y(){return!1}function m(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(r=0,e=t.length;r<e;r++)u.push(t[r]);else u.push(t);return u}function w(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(t=w(t),r=0,e=t.length;r<e;r++)u[u.length]=t[r];else u[u.length]=t;return u}function b(n){return hn(n.length,function(){return n.apply(null,pn.call(arguments))})}function j(n){for(var t=0,r=n.length,e={};t<r;t++)e[n[t][0]]=n[t][1];return e}function E(n){return n[0]}function O(n){return n}function A(n){return n+1}function k(n){return null!=n&&f(n,d(n))}function T(n){return!isNaN(n)&&isFinite(n)&&n%2===0}function x(n){return null==n}function N(n){return!isNaN(n)&&isFinite(n)&&!!n&&n===Math.floor(n)&&n%2!==0}function C(n){return function(){var t=ln.call(arguments);return zn(function(n){return n.apply(null,t)},n)}}function L(n){return Object.keys(n)}function M(n){return n[n.length-1]}function B(n){return n.length}function P(n){return Sn(qn(n),rn(n))}function R(n,t,r){for(var e=0,u=r.length;e<u;e++)t=n(t,r[e]);return t}function z(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]>r&&(r=n[t]),t--;return r}function S(n){for(var t=0,r=n.length,e=0;t<r;t++)e+=n[t];return e}function q(n){if(!n.length)throw new Error("Cannot calculate the mean of an empty list.");return S(n)/n.length}function F(n,t){for(var r in t)cn.call(t,r)&&n(r,t[r])}function I(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]<r&&(r=n[t]),t--;return r}function U(n){return[n]}function D(n){return pn.call(ln.call(n,0))}function W(){return!0}function K(n){return ln.call(n,1)}function V(n){return n.toLowerCase()}function G(n){return n.toUpperCase()}function H(n){return function(t){return n(t),t}}function J(n){var t=[];return F(function(n,r){t.push([n,r])},n),t}function Q(n){return n.trim()}function X(n){for(var t=Object.keys(n),r=0,e=t.length,u=new Array(t.length);r<e;)u[r]=n[t[r]],r+=1;return u}function Y(n){for(var t,r=Object.keys(mt),e=r.length,u=0;u<e;)t=r[u],n[t]=mt[t],u+=1}var Z=t(function(n,t){return n+t}),$=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return!1;return!0}),_=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return!0;return!1}),nn=[].concat,tn=t(function(n,t){return"string"==typeof t?t+n:nn.call(t,[n])}),rn=e(function(n,t,r){var e,u={};for(e in r)u[e]=r[e];return u[n]=t,u}),en=t(function(n,t){for(var r,e,u=0,o=t.length,i=[];u<o;u++)if(e=n(t[u]),Array.isArray(e))for(r=0;r<e.length;r++)i.push(e[r]);else i.push(e);return i}),un=t(function(n,t){return nn.call(n,t)}),on=t(function(n,t){for(var r=0,e=n.length;r<e;r++)if(n[r][0](t))return n[r][1](t)}),fn=Object.prototype.toString,cn=Object.prototype.hasOwnProperty,an=t(c),ln=[].slice,sn=function n(t,r,e){return l(t,function(){var u,o=r;if(arguments.length)for(o=ln.call(r),u=0;u<arguments.length;u++)o.push(arguments[u]);return o.length>=t?e.apply(null,o):n(t,o,e)})},hn=t(function(r,u){switch(r){case 0:return u;case 1:return n(u);case 2:return t(u);case 3:return e(u);default:return sn(r,[],u)}}),pn=[].reverse,gn=t(function(n,t){return"undefined"==typeof n?"undefined"==typeof t:null==n?null==t&&"undefined"!=typeof t:"string"==typeof n?u(t).toLowerCase()===n.toLowerCase():t instanceof n||t.constructor===n}),vn=t(function(n,t){var r,e={};for(r in t)r!==n&&(e[r]=t[r]);return e}),dn=t(function(n,t){if(!n)throw new Error("Cannot divide by 0.");return t/n}),yn=t(function(n,t){return ln.call(t,n)}),mn=t(function(n,t){for(var r=0,e=t.length;r<e&&!n(t[r]);)r+=1;return ln.call(t,r)}),wn=t(function(n,t){for(var r=0,e=t.length;r<e&&n(t[r]);)r+=1;return ln.call(t,r)}),bn=t(f),jn=t(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)&&(o[o.length]=r);return o}),En=t(function(n,t){for(var r,e=0,u=t.length;e<u;e++)if(r=t[e],n(r))return r}),On=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return r;return-1}),An=t(function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r--}}),kn=t(function(n,t){if(t.fmap)return t.fmap(n);if(t.map)return t.map(n);throw new Error("The functor provided to fmap does not implement `map`.")}),Tn=t(function(n,t){for(var r=0,e=t.length;r<e;r++)n(t[r])}),xn=t(function(n,t){return t>n}),Nn=t(function(n,t){return t>=n}),Cn=t(function(n,t){return cn.call(t,n)}),Ln=t(function(n,t){return n===t}),Mn=e(function(n,t,r){return function(e){return n(e)?t(e):r(e)}}),Bn=[].push,Pn=e(function(n,t,r){var e=ln.call(r,0,n);return e[e.length]=t,Bn.apply(e,ln.call(r,n)),e}),Rn=t(function(n,t){return t.join(n)}),zn=t(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e]);return r}),Sn=t(function(n,t){return{get:n,set:t,toString:function(){return"Lens"}}}),qn=t(function(n,t){return t[n]}),Fn=t(function(n,t){return t<n}),In=t(function(n,t){return t<=n}),Un=t(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e],e);return r}),Dn=t(function(n,t){return R(function(r,e){return r[n(e)]=t[e],r},{},Object.keys(t))}),Wn=t(function(n,t){return R(function(r,e){return r[e]=n(t[e]),r},{},Object.keys(t))}),Kn=t(function(n,t){var r={},e=function(n,t){r[n]=t};return F(e,n),F(e,t),r}),Vn=t(function(n,t){return n*t}),Gn=t(function(n,t){var r,e,u,o={};for(r in t){for(e=!1,u=0;u<n.length;u++)if(n[u]===r){e=!0;break}e||(o[r]=t[r])}return o}),Hn=e(function(n,t,r){return n.set(t,r)}),Jn=e(function(n,t,r){return Hn(n,t(n.get(r)),r)}),Qn=t(function(n,t){return[n,t]}),Xn=t(function(n,t){for(var r=[],e=[],u=t.length,o=0;o<u;o++)n(t[o])?r[r.length]=t[o]:e[e.length]=t[o];return[r,e]}),Yn=t(function(n,t){for(var r=0,e=n.length,u={};r<e;)u[n[r]]=t[n[r]],r++;return u}),Zn=t(function(n,t){return"string"==typeof t?n+t:nn.call([n],t)}),$n=e(function(n,t,r){return f(r[n],t)}),_n=e(function(n,t,r){var e,u,o=[];if(0===n)throw new Error("The `increment` value provided to `rangeBy` must be a non-zero number.");if(t===r)throw new Error("The `start` value provided to `rangeBy` must be greater than or less than the `end` value. Received the same value for both: "+t+".");if(n>0&&t>r)throw new Error("The `increment` value provided to `rangeBy` must be negative when the start value ("+t+") is greater than the end value ("+r+"). Received: "+n+".");if(n<0&&t<r)throw new Error("The `increment` value provided to `rangeBy` must be positive when the start value ("+t+") is less than the end value ("+r+"). Received: "+n+".");for(e=Math.abs(Math.ceil((r-t)/n)),u=0;u<e;u++)o.push(t+n*u);return o}),nt=t(function(n,t){if(n<t)return _n(1,n,t);if(n>t)return _n(-1,n,t);throw new Error("The `start` value provided to `range` must be greater than or less than the `end` value. Received the same value for both: "+n+".")}),tt=e(R),rt=e(function(n,t,r){return R(n,t,pn.call(r))}),et=t(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)||(o[o.length]=r);return o}),ut=e(function(n,t,r){for(var e=0,u=r.length,o=[t];e<u;e++)t=n(t,r[e]),o[o.length]=t;return o}),ot=t(function(n,t){return t.split(n)}),it=t(function(n,t){return t-n}),ft=t(function(n,t){return ln.call(t,0,n)}),ct=t(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return ln.call(t,0,r);return ln.call(t)}),at=t(function(n,t){return n.test(t)}),lt=t(function(n,t){for(var r=0,e=[];r<t;r++)e.push(n(r));return e}),st=t(function(n,t){return function(r){return n(r)?t(r):r}}),ht=t(function(n,t){return st(s(n),t)}),pt=t(function(n,t){return n.get(t)}),gt=t(function(n,t){var r;for(r in n)if(cn.call(n,r)&&!n[r](t[r]))return!1;return!0}),vt=t(function(n,t){for(var r=0,e=t.length,u=[];r<e;)c(t[r],n)||(u[u.length]=t[r]),r++;return u}),dt=t(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u=new Array(e);r<e;r++)u[r]=[n[r],t[r]];return u}),yt=t(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u={};r<e;r++)u[n[r]]=t[r];return u}),mt=Object.freeze({add:Z,all:$,always:r,any:_,append:tn,assoc:rn,chain:en,concat:un,cond:on,contains:an,compact:a,complement:s,compose:p,curry:g,curryN:hn,dec:v,dissoc:vn,divide:dn,drop:yn,dropUntil:mn,dropWhile:wn,empty:d,equals:bn,F:y,filter:jn,find:En,findIndex:On,findLast:An,flatten:m,flattenDeep:w,flip:b,fmap:kn,forEach:Tn,fromPairs:j,gt:xn,gte:Nn,has:Cn,head:E,identical:Ln,identity:O,ifElse:Mn,inc:A,insert:Pn,isEmpty:k,isEven:T,isNil:x,isOdd:N,isType:gn,join:Rn,juxt:C,keys:L,last:M,length:B,lens:Sn,lensProp:P,lt:Fn,lte:In,map:zn,mapi:Un,mapKeys:Dn,mapValues:Wn,max:z,mean:q,merge:Kn,min:I,multiply:Vn,of:U,omit:Gn,over:Jn,pair:Qn,partition:Xn,pick:Yn,pipe:h,prepend:Zn,prop:qn,propEq:$n,range:nt,rangeBy:_n,reduce:tt,foldl:tt,reduceRight:rt,foldr:rt,reject:et,reverse:D,scan:ut,set:Hn,split:ot,subtract:it,sum:S,T:W,tail:K,take:ft,takeWhile:ct,test:at,times:lt,toLower:V,toUpper:G,tap:H,toPairs:J,trim:Q,type:u,unless:ht,values:X,view:pt,when:st,where:gt,without:vt,zip:dt,zipObj:yt});return Y}); |
{ | ||
"name": "redash", | ||
"version": "0.15.1", | ||
"version": "0.16.0", | ||
"description": "A better Standard Library for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "redash.js", |
@@ -1,1 +0,1 @@ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.fp={})}(this,function(n){"use strict";function t(n){return function t(r){return arguments.length?n(r):t}}function r(n){return function r(e,u){switch(arguments.length){case 0:return r;case 1:return t(function(t){return n(e,t)});default:return n(e,u)}}}function e(n){return function(){return n}}function u(n){return function e(u,o,i){switch(arguments.length){case 0:return e;case 1:return r(function(t,r){return n(u,t,r)});case 2:return t(function(t){return n(u,o,t)});default:return n(u,o,i)}}}function o(n){return null==n?"Nil":un.call(n).slice(8,-1)}function i(n){for(var t=[],r=t.length,e=n.next();!e.done;)t[r++]=e,e=n.next();return e}function f(n,t){var r,e,u;if(r=Object.keys(n),r.length!==Object.keys(t).length)return!1;for(e=r.length-1;e>=0;){if(!on.call(t,r[e]))return!1;e-=1}for(e=r.length-1;e>=0;){if(u=r[e],!c(n[u],t[u]))return!1;e-=1}return!0}function c(n,t){var r,e;if(n===t)return!0;if(o(n)!==o(t))return!1;if(!n||!t||"object"!=typeof n)return!1;switch(o(n)){case"Array":return n.length===t.length&&f(n,t);case"Date":return n.valueOf()===t.valueOf();case"Promise":return n===t;case"Map":case"Set":return r=i(n.entries()),e=i(t.entries()),r.length===e.length&&c(r,e);default:return f(n,t)}}function a(n,t){for(var r=t.length-1;r>=0;)if(c(n,t[r--]))return!0;return!1}function l(n){for(var t=0,r=n.length,e=[];t<r;t++)n[t]&&(e[e.length]=n[t]);return e}function s(n,t){switch(n){case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,o){return t.apply(this,arguments)};case 6:return function(n,r,e,u,o,i){return t.apply(this,arguments)};default:throw new Error("Arity must be less than or equal to 6.")}}function h(n){return ln(n.length,function(){return!n.apply(null,arguments)})}function p(){for(var n=arguments,t=0;t<n.length;t++)if(!hn("function",n[t]))throw new TypeError("Invalid argument supplied to `pipe`. The argument at index ["+t+"] was not a function; what was received was of type: "+o(n[t])+".");return ln(n[0].length,function(){for(var t=0,r=n.length,e=n[t++].apply(null,arguments);t<r;t++)e=n[t](e);return e})}function g(){for(var n=0;n<arguments.length;n++)if(!hn("function",arguments[n]))throw new TypeError("Invalid argument supplied to `compose`. The argument at index ["+n+"] was not a function; what was received was of type: "+o(arguments[n])+".");return p.apply(null,sn.call(arguments))}function v(n){return ln(n.length,n)}function d(n){return n-1}function y(n){if(null!=n){if("function"==typeof n.empty)return n.empty();if(n.constructor&&"function"==typeof n.constructor.empty)return n.constructor.empty();switch(o(n)){case"Array":return[];case"String":return"";case"Object":return{};default:return}}}function m(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(r=0,e=t.length;r<e;r++)u.push(t[r]);else u.push(t);return u}function w(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(t=w(t),r=0,e=t.length;r<e;r++)u[u.length]=t[r];else u[u.length]=t;return u}function b(n){return ln(n.length,function(){return n.apply(null,sn.call(arguments))})}function j(n){for(var t=0,r=n.length,e={};t<r;t++)e[n[t][0]]=n[t][1];return e}function E(n){return n[0]}function O(n){return n}function A(n){return n+1}function k(n){return null!=n&&c(n,y(n))}function x(n){return!isNaN(n)&&isFinite(n)&&n%2===0}function T(n){return null==n}function N(n){return!isNaN(n)&&isFinite(n)&&!!n&&n===Math.floor(n)&&n%2!==0}function C(n){return function(){var t=cn.call(arguments);return Pn(function(n){return n.apply(null,t)},n)}}function L(n){return Object.keys(n)}function M(n){return n[n.length-1]}function B(n){return n.length}function P(n){return Rn(In(n),nn(n))}function R(n,t,r){for(var e=0,u=r.length;e<u;e++)t=n(t,r[e]);return t}function I(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]>r&&(r=n[t]),t--;return r}function S(n){for(var t=0,r=n.length,e=0;t<r;t++)e+=n[t];return e}function q(n){if(!n.length)throw new Error("Cannot calculate the mean of an empty list.");return S(n)/n.length}function z(n,t){for(var r in t)on.call(t,r)&&n(r,t[r])}function U(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]<r&&(r=n[t]),t--;return r}function D(n){return[n]}function F(n){return sn.call(cn.call(n,0))}function W(n){return cn.call(n,1)}function K(n){return n.toLowerCase()}function V(n){return n.toUpperCase()}function G(n){return function(t){return n(t),t}}function H(n){var t=[];return z(function(n,r){t.push([n,r])},n),t}function J(n){return n.trim()}function Q(n){for(var t=Object.keys(n),r=0,e=t.length,u=new Array(t.length);r<e;)u[r]=n[t[r]],r+=1;return u}var X=r(function(n,t){return n+t}),Y=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return!1;return!0}),Z=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return!0;return!1}),$=[].concat,_=r(function(n,t){return"string"==typeof t?t+n:$.call(t,[n])}),nn=u(function(n,t,r){var e,u={};for(e in r)u[e]=r[e];return u[n]=t,u}),tn=r(function(n,t){for(var r,e,u=0,o=t.length,i=[];u<o;u++)if(e=n(t[u]),Array.isArray(e))for(r=0;r<e.length;r++)i.push(e[r]);else i.push(e);return i}),rn=r(function(n,t){return $.call(n,t)}),en=r(function(n,t){for(var r=0,e=n.length;r<e;r++)if(n[r][0](t))return n[r][1](t)}),un=Object.prototype.toString,on=Object.prototype.hasOwnProperty,fn=r(a),cn=[].slice,an=function n(t,r,e){return s(t,function(){var u,o=r;if(arguments.length)for(o=cn.call(r),u=0;u<arguments.length;u++)o.push(arguments[u]);return o.length>=t?e.apply(null,o):n(t,o,e)})},ln=r(function(n,e){switch(n){case 0:return e;case 1:return t(e);case 2:return r(e);case 3:return u(e);default:return an(n,[],e)}}),sn=[].reverse,hn=r(function(n,t){return"undefined"==typeof n?"undefined"==typeof t:null==n?null==t&&"undefined"!=typeof t:"string"==typeof n?o(t).toLowerCase()===n.toLowerCase():t instanceof n||t.constructor===n}),pn=r(function(n,t){var r,e={};for(r in t)r!==n&&(e[r]=t[r]);return e}),gn=r(function(n,t){if(!n)throw new Error("Cannot divide by 0.");return t/n}),vn=r(function(n,t){return cn.call(t,n)}),dn=r(function(n,t){for(var r=0,e=t.length;r<e&&!n(t[r]);)r+=1;return cn.call(t,r)}),yn=r(function(n,t){for(var r=0,e=t.length;r<e&&n(t[r]);)r+=1;return cn.call(t,r)}),mn=r(c),wn=r(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)&&(o[o.length]=r);return o}),bn=r(function(n,t){for(var r,e=0,u=t.length;e<u;e++)if(r=t[e],n(r))return r}),jn=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return r;return-1}),En=r(function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r--}}),On=r(function(n,t){if(t.fmap)return t.fmap(n);if(t.map)return t.map(n);throw new Error("The functor provided to fmap does not implement `map`.")}),An=r(function(n,t){for(var r=0,e=t.length;r<e;r++)n(t[r])}),kn=r(function(n,t){return t>n}),xn=r(function(n,t){return t>=n}),Tn=r(function(n,t){return on.call(t,n)}),Nn=r(function(n,t){return n===t}),Cn=u(function(n,t,r){return function(e){return n(e)?t(e):r(e)}}),Ln=[].push,Mn=u(function(n,t,r){var e=cn.call(r,0,n);return e[e.length]=t,Ln.apply(e,cn.call(r,n)),e}),Bn=r(function(n,t){return t.join(n)}),Pn=r(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e]);return r}),Rn=r(function(n,t){return{get:n,set:t,toString:function(){return"Lens"}}}),In=r(function(n,t){return t[n]}),Sn=r(function(n,t){return t<n}),qn=r(function(n,t){return t<=n}),zn=r(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e],e);return r}),Un=r(function(n,t){return R(function(r,e){return r[n(e)]=t[e],r},{},Object.keys(t))}),Dn=r(function(n,t){return R(function(r,e){return r[e]=n(t[e]),r},{},Object.keys(t))}),Fn=r(function(n,t){var r={},e=function(n,t){r[n]=t};return z(e,n),z(e,t),r}),Wn=r(function(n,t){return n*t}),Kn=r(function(n,t){var r,e,u,o={};for(r in t){for(e=!1,u=0;u<n.length;u++)if(n[u]===r){e=!0;break}e||(o[r]=t[r])}return o}),Vn=u(function(n,t,r){return n.set(t,r)}),Gn=u(function(n,t,r){return Vn(n,t(n.get(r)),r)}),Hn=r(function(n,t){return[n,t]}),Jn=r(function(n,t){for(var r=0,e=n.length,u={};r<e;)u[n[r]]=t[n[r]],r++;return u}),Qn=r(function(n,t){return"string"==typeof t?n+t:$.call([n],t)}),Xn=u(function(n,t,r){return c(r[n],t)}),Yn=u(function(n,t,r){var e,u,o=[];if(0===n)throw new Error("The `increment` value provided to `rangeBy` must be a non-zero number.");if(t===r)throw new Error("The `start` value provided to `rangeBy` must be greater than or less than the `end` value. Received the same value for both: "+t+".");if(n>0&&t>r)throw new Error("The `increment` value provided to `rangeBy` must be negative when the start value ("+t+") is greater than the end value ("+r+"). Received: "+n+".");if(n<0&&t<r)throw new Error("The `increment` value provided to `rangeBy` must be positive when the start value ("+t+") is less than the end value ("+r+"). Received: "+n+".");for(e=Math.abs(Math.ceil((r-t)/n)),u=0;u<e;u++)o.push(t+n*u);return o}),Zn=r(function(n,t){if(n<t)return Yn(1,n,t);if(n>t)return Yn(-1,n,t);throw new Error("The `start` value provided to `range` must be greater than or less than the `end` value. Received the same value for both: "+n+".")}),$n=u(R),_n=u(function(n,t,r){return R(n,t,sn.call(r))}),nt=r(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)||(o[o.length]=r);return o}),tt=u(function(n,t,r){for(var e=0,u=r.length,o=[t];e<u;e++)t=n(t,r[e]),o[o.length]=t;return o}),rt=r(function(n,t){return t.split(n)}),et=r(function(n,t){return t-n}),ut=r(function(n,t){return cn.call(t,0,n)}),ot=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return cn.call(t,0,r);return cn.call(t)}),it=r(function(n,t){return n.test(t)}),ft=r(function(n,t){for(var r=0,e=[];r<t;r++)e.push(n(r));return e}),ct=r(function(n,t){return function(r){return n(r)?t(r):r}}),at=r(function(n,t){return ct(h(n),t)}),lt=r(function(n,t){return n.get(t)}),st=r(function(n,t){var r;for(r in n)if(on.call(n,r)&&!n[r](t[r]))return!1;return!0}),ht=r(function(n,t){for(var r=0,e=t.length,u=[];r<e;)a(t[r],n)||(u[u.length]=t[r]),r++;return u}),pt=r(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u=new Array(e);r<e;r++)u[r]=[n[r],t[r]];return u}),gt=r(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u={};r<e;r++)u[n[r]]=t[r];return u});n.add=X,n.all=Y,n.always=e,n.any=Z,n.append=_,n.assoc=nn,n.chain=tn,n.concat=rn,n.cond=en,n.contains=fn,n.compact=l,n.complement=h,n.compose=g,n.curry=v,n.curryN=ln,n.dec=d,n.dissoc=pn,n.divide=gn,n.drop=vn,n.dropUntil=dn,n.dropWhile=yn,n.empty=y,n.equals=mn,n.filter=wn,n.find=bn,n.findIndex=jn,n.findLast=En,n.flatten=m,n.flattenDeep=w,n.flip=b,n.fmap=On,n.forEach=An,n.fromPairs=j,n.gt=kn,n.gte=xn,n.has=Tn,n.head=E,n.identical=Nn,n.identity=O,n.ifElse=Cn,n.inc=A,n.insert=Mn,n.isEmpty=k,n.isEven=x,n.isNil=T,n.isOdd=N,n.isType=hn,n.join=Bn,n.juxt=C,n.keys=L,n.last=M,n.length=B,n.lens=Rn,n.lensProp=P,n.lt=Sn,n.lte=qn,n.map=Pn,n.mapIndexed=zn,n.mapKeys=Un,n.mapValues=Dn,n.max=I,n.mean=q,n.merge=Fn,n.min=U,n.multiply=Wn,n.of=D,n.omit=Kn,n.over=Gn,n.pair=Hn,n.pick=Jn,n.pipe=p,n.prepend=Qn,n.prop=In,n.propEq=Xn,n.range=Zn,n.rangeBy=Yn,n.reduce=$n,n.foldl=$n,n.reduceRight=_n,n.foldr=_n,n.reject=nt,n.reverse=F,n.scan=tt,n.set=Vn,n.split=rt,n.subtract=et,n.sum=S,n.tail=W,n.take=ut,n.takeWhile=ot,n.test=it,n.times=ft,n.toLower=K,n.toUpper=V,n.tap=G,n.toPairs=H,n.trim=J,n.type=o,n.unless=at,n.values=Q,n.view=lt,n.when=ct,n.where=st,n.without=ht,n.zip=pt,n.zipObj=gt}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.fp={})}(this,function(n){"use strict";function t(n){return function t(r){return arguments.length?n(r):t}}function r(n){return function r(e,u){switch(arguments.length){case 0:return r;case 1:return t(function(t){return n(e,t)});default:return n(e,u)}}}function e(n){return function(){return n}}function u(n){return function e(u,o,i){switch(arguments.length){case 0:return e;case 1:return r(function(t,r){return n(u,t,r)});case 2:return t(function(t){return n(u,o,t)});default:return n(u,o,i)}}}function o(n){return null==n?"Nil":fn.call(n).slice(8,-1)}function i(n){for(var t=[],r=t.length,e=n.next();!e.done;)t[r++]=e,e=n.next();return e}function f(n,t){var r,e,u;if(r=Object.keys(n),r.length!==Object.keys(t).length)return!1;for(e=r.length-1;e>=0;){if(!cn.call(t,r[e]))return!1;e-=1}for(e=r.length-1;e>=0;){if(u=r[e],!c(n[u],t[u]))return!1;e-=1}return!0}function c(n,t){var r,e;if(n===t)return!0;if(o(n)!==o(t))return!1;if(!n||!t||"object"!=typeof n)return!1;switch(o(n)){case"Array":return n.length===t.length&&f(n,t);case"Date":return n.valueOf()===t.valueOf();case"Promise":return n===t;case"Map":case"Set":return r=i(n.entries()),e=i(t.entries()),r.length===e.length&&c(r,e);default:return f(n,t)}}function a(n,t){for(var r=t.length-1;r>=0;)if(c(n,t[r--]))return!0;return!1}function l(n){for(var t=0,r=n.length,e=[];t<r;t++)n[t]&&(e[e.length]=n[t]);return e}function s(n,t){switch(n){case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,o){return t.apply(this,arguments)};case 6:return function(n,r,e,u,o,i){return t.apply(this,arguments)};default:throw new Error("Arity must be less than or equal to 6.")}}function h(n){return hn(n.length,function(){return!n.apply(null,arguments)})}function p(){for(var n=arguments,t=0;t<n.length;t++)if(!gn("function",n[t]))throw new TypeError("Invalid argument supplied to `pipe`. The argument at index ["+t+"] was not a function; what was received was of type: "+o(n[t])+".");return hn(n[0].length,function(){for(var t=0,r=n.length,e=n[t++].apply(null,arguments);t<r;t++)e=n[t](e);return e})}function g(){for(var n=0;n<arguments.length;n++)if(!gn("function",arguments[n]))throw new TypeError("Invalid argument supplied to `compose`. The argument at index ["+n+"] was not a function; what was received was of type: "+o(arguments[n])+".");return p.apply(null,pn.call(arguments))}function v(n){return hn(n.length,n)}function d(n){return n-1}function y(n){if(null!=n){if("function"==typeof n.empty)return n.empty();if(n.constructor&&"function"==typeof n.constructor.empty)return n.constructor.empty();switch(o(n)){case"Array":return[];case"String":return"";case"Object":return{};default:return}}}function m(){return!1}function w(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(r=0,e=t.length;r<e;r++)u.push(t[r]);else u.push(t);return u}function b(n){for(var t,r,e,u=[],o=0,i=n.length;o<i;o++)if(t=n[o],Array.isArray(t))for(t=b(t),r=0,e=t.length;r<e;r++)u[u.length]=t[r];else u[u.length]=t;return u}function j(n){return hn(n.length,function(){return n.apply(null,pn.call(arguments))})}function E(n){for(var t=0,r=n.length,e={};t<r;t++)e[n[t][0]]=n[t][1];return e}function O(n){return n[0]}function A(n){return n}function T(n){return n+1}function k(n){return null!=n&&c(n,y(n))}function x(n){return!isNaN(n)&&isFinite(n)&&n%2===0}function N(n){return null==n}function C(n){return!isNaN(n)&&isFinite(n)&&!!n&&n===Math.floor(n)&&n%2!==0}function L(n){return function(){var t=ln.call(arguments);return Sn(function(n){return n.apply(null,t)},n)}}function M(n){return Object.keys(n)}function B(n){return n[n.length-1]}function P(n){return n.length}function R(n){return qn(zn(n),rn(n))}function S(n,t,r){for(var e=0,u=r.length;e<u;e++)t=n(t,r[e]);return t}function q(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]>r&&(r=n[t]),t--;return r}function z(n){for(var t=0,r=n.length,e=0;t<r;t++)e+=n[t];return e}function F(n){if(!n.length)throw new Error("Cannot calculate the mean of an empty list.");return z(n)/n.length}function I(n,t){for(var r in t)cn.call(t,r)&&n(r,t[r])}function U(n){for(var t=n.length-1,r=n[t--];t>=0;)n[t]<r&&(r=n[t]),t--;return r}function D(n){return[n]}function W(n){return pn.call(ln.call(n,0))}function K(){return!0}function V(n){return ln.call(n,1)}function G(n){return n.toLowerCase()}function H(n){return n.toUpperCase()}function J(n){return function(t){return n(t),t}}function Q(n){var t=[];return I(function(n,r){t.push([n,r])},n),t}function X(n){return n.trim()}function Y(n){for(var t=Object.keys(n),r=0,e=t.length,u=new Array(t.length);r<e;)u[r]=n[t[r]],r+=1;return u}var Z=r(function(n,t){return n+t}),$=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return!1;return!0}),_=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return!0;return!1}),nn=[].concat,tn=r(function(n,t){return"string"==typeof t?t+n:nn.call(t,[n])}),rn=u(function(n,t,r){var e,u={};for(e in r)u[e]=r[e];return u[n]=t,u}),en=r(function(n,t){for(var r,e,u=0,o=t.length,i=[];u<o;u++)if(e=n(t[u]),Array.isArray(e))for(r=0;r<e.length;r++)i.push(e[r]);else i.push(e);return i}),un=r(function(n,t){return nn.call(n,t)}),on=r(function(n,t){for(var r=0,e=n.length;r<e;r++)if(n[r][0](t))return n[r][1](t)}),fn=Object.prototype.toString,cn=Object.prototype.hasOwnProperty,an=r(a),ln=[].slice,sn=function n(t,r,e){return s(t,function(){var u,o=r;if(arguments.length)for(o=ln.call(r),u=0;u<arguments.length;u++)o.push(arguments[u]);return o.length>=t?e.apply(null,o):n(t,o,e)})},hn=r(function(n,e){switch(n){case 0:return e;case 1:return t(e);case 2:return r(e);case 3:return u(e);default:return sn(n,[],e)}}),pn=[].reverse,gn=r(function(n,t){return"undefined"==typeof n?"undefined"==typeof t:null==n?null==t&&"undefined"!=typeof t:"string"==typeof n?o(t).toLowerCase()===n.toLowerCase():t instanceof n||t.constructor===n}),vn=r(function(n,t){var r,e={};for(r in t)r!==n&&(e[r]=t[r]);return e}),dn=r(function(n,t){if(!n)throw new Error("Cannot divide by 0.");return t/n}),yn=r(function(n,t){return ln.call(t,n)}),mn=r(function(n,t){for(var r=0,e=t.length;r<e&&!n(t[r]);)r+=1;return ln.call(t,r)}),wn=r(function(n,t){for(var r=0,e=t.length;r<e&&n(t[r]);)r+=1;return ln.call(t,r)}),bn=r(c),jn=r(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)&&(o[o.length]=r);return o}),En=r(function(n,t){for(var r,e=0,u=t.length;e<u;e++)if(r=t[e],n(r))return r}),On=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(n(t[r]))return r;return-1}),An=r(function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r--}}),Tn=r(function(n,t){if(t.fmap)return t.fmap(n);if(t.map)return t.map(n);throw new Error("The functor provided to fmap does not implement `map`.")}),kn=r(function(n,t){for(var r=0,e=t.length;r<e;r++)n(t[r])}),xn=r(function(n,t){return t>n}),Nn=r(function(n,t){return t>=n}),Cn=r(function(n,t){return cn.call(t,n)}),Ln=r(function(n,t){return n===t}),Mn=u(function(n,t,r){return function(e){return n(e)?t(e):r(e)}}),Bn=[].push,Pn=u(function(n,t,r){var e=ln.call(r,0,n);return e[e.length]=t,Bn.apply(e,ln.call(r,n)),e}),Rn=r(function(n,t){return t.join(n)}),Sn=r(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e]);return r}),qn=r(function(n,t){return{get:n,set:t,toString:function(){return"Lens"}}}),zn=r(function(n,t){return t[n]}),Fn=r(function(n,t){return t<n}),In=r(function(n,t){return t<=n}),Un=r(function(n,t){for(var r=new Array(t.length),e=0,u=t.length;e<u;e++)r[e]=n(t[e],e);return r}),Dn=r(function(n,t){return S(function(r,e){return r[n(e)]=t[e],r},{},Object.keys(t))}),Wn=r(function(n,t){return S(function(r,e){return r[e]=n(t[e]),r},{},Object.keys(t))}),Kn=r(function(n,t){var r={},e=function(n,t){r[n]=t};return I(e,n),I(e,t),r}),Vn=r(function(n,t){return n*t}),Gn=r(function(n,t){var r,e,u,o={};for(r in t){for(e=!1,u=0;u<n.length;u++)if(n[u]===r){e=!0;break}e||(o[r]=t[r])}return o}),Hn=u(function(n,t,r){return n.set(t,r)}),Jn=u(function(n,t,r){return Hn(n,t(n.get(r)),r)}),Qn=r(function(n,t){return[n,t]}),Xn=r(function(n,t){for(var r=[],e=[],u=t.length,o=0;o<u;o++)n(t[o])?r[r.length]=t[o]:e[e.length]=t[o];return[r,e]}),Yn=r(function(n,t){for(var r=0,e=n.length,u={};r<e;)u[n[r]]=t[n[r]],r++;return u}),Zn=r(function(n,t){return"string"==typeof t?n+t:nn.call([n],t)}),$n=u(function(n,t,r){return c(r[n],t)}),_n=u(function(n,t,r){var e,u,o=[];if(0===n)throw new Error("The `increment` value provided to `rangeBy` must be a non-zero number.");if(t===r)throw new Error("The `start` value provided to `rangeBy` must be greater than or less than the `end` value. Received the same value for both: "+t+".");if(n>0&&t>r)throw new Error("The `increment` value provided to `rangeBy` must be negative when the start value ("+t+") is greater than the end value ("+r+"). Received: "+n+".");if(n<0&&t<r)throw new Error("The `increment` value provided to `rangeBy` must be positive when the start value ("+t+") is less than the end value ("+r+"). Received: "+n+".");for(e=Math.abs(Math.ceil((r-t)/n)),u=0;u<e;u++)o.push(t+n*u);return o}),nt=r(function(n,t){if(n<t)return _n(1,n,t);if(n>t)return _n(-1,n,t);throw new Error("The `start` value provided to `range` must be greater than or less than the `end` value. Received the same value for both: "+n+".")}),tt=u(S),rt=u(function(n,t,r){return S(n,t,pn.call(r))}),et=r(function(n,t){for(var r,e=0,u=t.length,o=[];e<u;)r=t[e++],n(r)||(o[o.length]=r);return o}),ut=u(function(n,t,r){for(var e=0,u=r.length,o=[t];e<u;e++)t=n(t,r[e]),o[o.length]=t;return o}),ot=r(function(n,t){return t.split(n)}),it=r(function(n,t){return t-n}),ft=r(function(n,t){return ln.call(t,0,n)}),ct=r(function(n,t){for(var r=0,e=t.length;r<e;r++)if(!n(t[r]))return ln.call(t,0,r);return ln.call(t)}),at=r(function(n,t){return n.test(t)}),lt=r(function(n,t){for(var r=0,e=[];r<t;r++)e.push(n(r));return e}),st=r(function(n,t){return function(r){return n(r)?t(r):r}}),ht=r(function(n,t){return st(h(n),t)}),pt=r(function(n,t){return n.get(t)}),gt=r(function(n,t){var r;for(r in n)if(cn.call(n,r)&&!n[r](t[r]))return!1;return!0}),vt=r(function(n,t){for(var r=0,e=t.length,u=[];r<e;)a(t[r],n)||(u[u.length]=t[r]),r++;return u}),dt=r(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u=new Array(e);r<e;r++)u[r]=[n[r],t[r]];return u}),yt=r(function(n,t){for(var r=0,e=Math.min(n.length,t.length),u={};r<e;r++)u[n[r]]=t[r];return u});n.add=Z,n.all=$,n.always=e,n.any=_,n.append=tn,n.assoc=rn,n.chain=en,n.concat=un,n.cond=on,n.contains=an,n.compact=l,n.complement=h,n.compose=g,n.curry=v,n.curryN=hn,n.dec=d,n.dissoc=vn,n.divide=dn,n.drop=yn,n.dropUntil=mn,n.dropWhile=wn,n.empty=y,n.equals=bn,n.F=m,n.filter=jn,n.find=En,n.findIndex=On,n.findLast=An,n.flatten=w,n.flattenDeep=b,n.flip=j,n.fmap=Tn,n.forEach=kn,n.fromPairs=E,n.gt=xn,n.gte=Nn,n.has=Cn,n.head=O,n.identical=Ln,n.identity=A,n.ifElse=Mn,n.inc=T,n.insert=Pn,n.isEmpty=k,n.isEven=x,n.isNil=N,n.isOdd=C,n.isType=gn,n.join=Rn,n.juxt=L,n.keys=M,n.last=B,n.length=P,n.lens=qn,n.lensProp=R,n.lt=Fn,n.lte=In,n.map=Sn,n.mapi=Un,n.mapKeys=Dn,n.mapValues=Wn,n.max=q,n.mean=F,n.merge=Kn,n.min=U,n.multiply=Vn,n.of=D,n.omit=Gn,n.over=Jn,n.pair=Qn,n.partition=Xn,n.pick=Yn,n.pipe=p,n.prepend=Zn,n.prop=zn,n.propEq=$n,n.range=nt,n.rangeBy=_n,n.reduce=tt,n.foldl=tt,n.reduceRight=rt,n.foldr=rt,n.reject=et,n.reverse=W,n.scan=ut,n.set=Hn,n.split=ot,n.subtract=it,n.sum=z,n.T=K,n.tail=V,n.take=ft,n.takeWhile=ct,n.test=at,n.times=lt,n.toLower=G,n.toUpper=H,n.tap=J,n.toPairs=Q,n.trim=X,n.type=o,n.unless=ht,n.values=Y,n.view=pt,n.when=st,n.where=gt,n.without=vt,n.zip=dt,n.zipObj=yt}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
240579
7598
28