Socket
Socket
Sign inDemoInstall

ramda

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.14.0 to 0.15.0

.jshintignore

6

dist/ramda.min.js

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

// Ramda v0.14.0
// Ramda v0.15.0
// https://github.com/ramda/ramda

@@ -6,3 +6,3 @@ // (c) 2013-2015 Scott Sauyet, Michael Hurley, and David Chambers

(function(){"use strict";var n={ramda:"placeholder"},t=function(n,t){return n+t},r=function(n,t){for(var r=-1;++r<t.length;)if(!n(t[r]))return!1;return!0},e=function(n,t){for(var r=-1;++r<t.length;)if(n(t[r]))return!0;return!1},u=function(n,t,r){var e={};for(var u in r)e[u]=r[u];return e[n]=t,e},i=function(n){return new RegExp(n.source,(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":""))},o=function(n){return function(){return!n.apply(this,arguments)}},c=function(n,t){return function(){return n.call(this,t.apply(this,arguments))}},f=function(n,t){n=n||[],t=t||[];var r,e=n.length,u=t.length,i=[];for(r=-1;++r<e;)i[i.length]=n[r];for(r=-1;++r<u;)i[i.length]=t[r];return i},a=function(n,t,r){for(var e=-1,u=r.length;++e<u;)if(n(t,r[e]))return!0;return!1},s=function(n,t){var r={};return r[n]=t,r},l=function(n){return function(t,r){if(r&&r.length>0){for(var e,u=0,i=r[u],o=t(i);++u<r.length;)e=t(r[u]),n(e,o)&&(o=e,i=r[u]);return i}}},p=function(t){return function r(e){return 0===arguments.length?r:e===n?r:t(e)}},h=function(t){return function r(e,u){var i=arguments.length;return 0===i?r:1===i&&e===n?r:1===i?p(function(n){return t(e,n)}):2===i&&e===n&&u===n?r:2===i&&e===n?p(function(n){return t(n,u)}):2===i&&u===n?p(function(n){return t(e,n)}):t(e,u)}},g=function(t){return function r(e,u,i){var o=arguments.length;return 0===o?r:1===o&&e===n?r:1===o?h(function(n,r){return t(e,n,r)}):2===o&&e===n&&u===n?r:2===o&&e===n?h(function(n,r){return t(n,u,r)}):2===o&&u===n?h(function(n,r){return t(e,n,r)}):2===o?p(function(n){return t(e,u,n)}):3===o&&e===n&&u===n&&i===n?r:3===o&&e===n&&u===n?h(function(n,r){return t(n,r,i)}):3===o&&e===n&&i===n?h(function(n,r){return t(n,u,r)}):3===o&&u===n&&i===n?h(function(n,r){return t(e,n,r)}):3===o&&e===n?p(function(n){return t(n,u,i)}):3===o&&u===n?p(function(n){return t(e,n,i)}):3===o&&i===n?p(function(n){return t(e,u,n)}):t(e,u,i)}},d=function(n,t){var r={};for(var e in t)e!==n&&(r[e]=t[e]);return r},y=function(n,t){return 0===n?1/n===1/t:n===t||n!==n&&t!==t},m=function(n,t){for(var r=-1,e=t.length,u=[];++r<e;)n(t[r])&&(u[u.length]=t[r]);return u},v=function(n,t){for(var r=-1,e=t.length,u=[];++r<e;)n(t[r],r,t)&&(u[u.length]=t[r]);return u},x=function(n,t){for(var r=-1,e=t.length;++r<e;)n(t[r]);return t},w=function(n){return function(t){return m(function(n){return"function"==typeof t[n]},n(t))}},b=function(n,t){return n>t},j=function(n,t){return Object.prototype.hasOwnProperty.call(t,n)},O=function(n){return n},I=function(n,t,r){var e=0,u=n.length;for("number"==typeof r&&(e=0>r?Math.max(0,u+r):r);u>e;){if(y(n[e],t))return e;++e}return-1},S=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)},E=Number.isInteger||function(n){return n<<0===n},N=function(n){return null!=n&&n===Object(n)&&"function"==typeof n.then},k=function(n){return"function"==typeof n["@@transducer/step"]},A=function(n,t,r){var e=n.length;for("number"==typeof r&&(e=0>r?e+r+1:Math.min(e,r+1));--e>=0;)if(y(n[e],t))return e;return-1},C=function(n,t){return t>n},M=function(n,t){for(var r=-1,e=t.length,u=[];++r<e;)u[r]=n(t[r]);return u},P=function(n,t){return n*t},T=function(n,t){return 0>n?t[t.length+n]:t[n]},R=function(n,t){if(null!=t){for(var r=t,e=0,u=n.length;u>e&&null!=r;e+=1)r=r[n[e]];return r}},W=function(n,t){return f([n],t)},L=function(n){return'"'+n.replace(/"/g,'\\"')+'"'},U=function(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}},B=function ku(n,t,r){switch(arguments.length){case 1:return ku(n,0,n.length);case 2:return ku(n,t,n.length);default:for(var e=[],u=-1,i=Math.max(0,Math.min(n.length,r)-t);++u<i;)e[u]=n[t+u];return e}},F=function(){var n=function(n){return(10>n?"0":"")+n};return"function"==typeof Date.prototype.toISOString?function(n){return n.toISOString()}:function(t){return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}(),q=function(){function n(n,t){this.xf=t,this.pred=n,this.lastValue=void 0,this.seenFirstValue=!1}return n.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/init"]()},n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(r=!0):this.seenFirstValue=!0,this.lastValue=t,r?n:this.xf["@@transducer/step"](n,t)},h(function(t,r){return new n(t,r)})}(),D={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}},V=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=D.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},h(function(t,r){return new n(t,r)})}(),z=function(){function n(n,t){this.xf=t,this.f=n,this.found=!1}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,void 0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.found=!0,n=U(this.xf["@@transducer/step"](n,t))),n},h(function(t,r){return new n(t,r)})}(),_=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,-1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.found=!0,n=U(this.xf["@@transducer/step"](n,this.idx))),n},h(function(t,r){return new n(t,r)})}(),H=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.last))},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.last=t),n},h(function(t,r){return new n(t,r)})}(),X=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.lastIdx))},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),n},h(function(t,r){return new n(t,r)})}(),Y=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=D.result,n.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},h(function(t,r){return new n(t,r)})}(),Z=function(){function n(n,t){this.xf=t,this.n=n}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=D.result,n.prototype["@@transducer/step"]=function(n,t){return this.n-=1,0===this.n?U(this.xf["@@transducer/step"](n,t)):this.xf["@@transducer/step"](n,t)},h(function(t,r){return new n(t,r)})}(),$=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=D.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):U(n)},h(function(t,r){return new n(t,r)})}(),G=function(){function n(n){this.f=n}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(n){return n},n.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},function(t){return new n(t)}}(),J=h(t),K=g(function(n,t,r){if(t>=r.length||t<-r.length)return r;var e=0>t?r.length:0,u=e+t,i=f(r);return i[u]=n(r[u]),i}),Q=p(function(n){return function(){return n}}),nn=h(function(n,t){for(var r=-1,e=t.length-(n-1),u=new Array(e>=0?e:0);++r<e;)u[r]=B(t,r,r+n);return u}),tn=h(function(n,t){return n.apply(this,t)}),rn=h(function(n,t){switch(n){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,e){return t.apply(this,arguments)};case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,i){return t.apply(this,arguments)};case 6:return function(n,r,e,u,i,o){return t.apply(this,arguments)};case 7:return function(n,r,e,u,i,o,c){return t.apply(this,arguments)};case 8:return function(n,r,e,u,i,o,c,f){return t.apply(this,arguments)};case 9:return function(n,r,e,u,i,o,c,f,a){return t.apply(this,arguments)};case 10:return function(n,r,e,u,i,o,c,f,a,s){return t.apply(this,arguments)};default:throw new Error("First argument to arity must be a non-negative integer no greater than ten")}}),en=g(u),un=h(function(n,t){return rn(n.length,function(){return n.apply(t,arguments)})}),on=h(function(n,t){return function(){return n.apply(this,arguments)&&t.apply(this,arguments)}}),cn=p(function(n){return function(t,r){return n(t,r)?-1:n(r,t)?1:0}}),fn=p(o),an=function(){var n=arguments;return function(){for(var t=-1;++t<n.length;)if(n[t][0].apply(this,arguments))return n[t][1].apply(this,arguments)}},sn=g(a),ln=h(function(n,t){for(var r={},e=t.length,u=-1;++u<e;){var i=n(t[u]);r[i]=(j(i,r)?r[i]:0)+1}return r}),pn=h(s),hn=h(function Au(t,r){return rn(t,function(){for(var e=arguments.length,u=t-e,i=e;--i>=0;)arguments[i]===n&&(u+=1);if(0>=u)return r.apply(this,arguments);var o=B(arguments);return Au(u,function(){for(var t=B(arguments),u=[],i=-1;++i<e;){var c=o[i];u[i]=c===n?t.shift():c}return r.apply(this,u.concat(t))})})}),gn=J(-1),dn=h(function(n,t){return null==t?n:t}),yn=g(function(n,t,r){for(var e=[],u=-1,i=t.length,o=sn(n);++u<i;)o(t[u],r)||o(t[u],e)||(e[e.length]=t[u]);return e}),mn=h(d),vn=h(function(n,t){return n/t}),xn=h(function(n,t){return function(){return n.apply(this,arguments)||t.apply(this,arguments)}}),wn=h(y),bn=g(function(n,t,r){return y(t[n],r[n])}),jn=h(v),On=h(x),In=h(function(n,t){for(var r=-1,e=t.length;++r<e;)n(t[r],r,t);return t}),Sn=p(function(n){for(var t=-1,r=n.length,e={};++t<r;)S(n[t])&&n[t].length&&(e[n[t][0]]=n[t][1]);return e}),En=h(b),Nn=h(function(n,t){return n>=t}),kn=h(j),An=h(function(n,t){return n in t}),Cn=p(O),Mn=g(function(n,t,r){return hn(Math.max(n.length,t.length,r.length),function(){return n.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})}),Pn=J(1),Tn=h(function(n,t){return I(t,n)}),Rn=g(function(n,t,r){return n=n<r.length&&n>=0?n:r.length,f(f(B(r,0,n),t),B(r,n))}),Wn=h(function(n,t){return null!=t&&t.constructor===n||t instanceof n}),Ln=p(function(n){return S(n)?!0:n?"object"!=typeof n?!1:n instanceof String?!1:1===n.nodeType?!!n.length:0===n.length?!0:n.length>0?n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1):!1:!1}),Un=p(function(n){return 0===Object(n).length}),Bn=p(function(n){return"number"==typeof n&&n!==n}),Fn=p(function(n){return null==n}),qn=p(function(n){for(var t=n.length,r=-1;++r<t;)if(I(n,n[r],r+1)>=0)return!1;return!0}),Dn=p(function(n){var t,r=[];for(t in n)r[r.length]=t;return r}),Vn=h(function(n,t){return A(t,n)}),zn=p(function(n){return null!=n&&Wn(Number,n.length)?n.length:NaN}),_n=h(function(n,t){var r=function(t){return n(t)};return r.set=h(t),r.map=h(function(r,e){return t(r(n(e)),e)}),r}),Hn=g(function(n,t,r){var e=function(){return n(r)};return e.set=t,e.map=function(e){return t(e(n(r)))},e}),Xn=h(C),Yn=h(function(n,t){return t>=n}),Zn=g(function(n,t,r){for(var e=-1,u=r.length,i=[],o=[t];++e<u;)o=n(o[0],r[e]),i[e]=o[1];return[o[0],i]}),$n=g(function(n,t,r){for(var e=r.length,u=[],i=[t];--e>=0;)i=n(i[0],r[e]),u[e]=i[1];return[i[0],u]}),Gn=h(function(n,t){for(var r=-1,e=t.length,u=[];++r<e;)u[r]=n(t[r],r,t);return u}),Jn=h(function(n,t){return E(n)?!E(t)||1>t?NaN:(n%t+t)%t:NaN}),Kn=h(l(b)),Qn=h(l(C)),nt=h(function(n,t){return n%t}),tt=h(P),rt=h(function(n,t){switch(n){case 0:return function(){return t.call(this)};case 1:return function(n){return t.call(this,n)};case 2:return function(n,r){return t.call(this,n,r)};case 3:return function(n,r,e){return t.call(this,n,r,e)};case 4:return function(n,r,e,u){return t.call(this,n,r,e,u)};case 5:return function(n,r,e,u,i){return t.call(this,n,r,e,u,i)};case 6:return function(n,r,e,u,i,o){return t.call(this,n,r,e,u,i,o)};case 7:return function(n,r,e,u,i,o,c){return t.call(this,n,r,e,u,i,o,c)};case 8:return function(n,r,e,u,i,o,c,f){return t.call(this,n,r,e,u,i,o,c,f)};case 9:return function(n,r,e,u,i,o,c,f,a){return t.call(this,n,r,e,u,i,o,c,f,a)};case 10:return function(n,r,e,u,i,o,c,f,a,s){return t.call(this,n,r,e,u,i,o,c,f,a,s)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),et=p(function(n){return-n}),ut=p(function(n){return!n}),it=h(T),ot=p(function(n){return function(){return T(n,arguments)}}),ct=h(function(n,t){return t.charAt(0>n?t.length+n:n)}),ft=h(function(n,t){return t.charCodeAt(0>n?t.length+n:n)}),at=p(function(n){return[n]}),st=h(function(n,t){var r={};for(var e in t)I(n,e)<0&&(r[e]=t[e]);return r}),lt=p(function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments))}}),pt=h(R),ht=g(function(n,t,r){return y(R(n,r),t)}),gt=h(function(n,t){var r={};for(var e in t)I(n,e)>=0&&(r[e]=t[e]);return r}),dt=h(function(n,t){for(var r={},e=-1,u=n.length;++e<u;){var i=n[e];r[i]=t[i]}return r}),yt=h(function(n,t){var r={};for(var e in t)n(t[e],e,t)&&(r[e]=t[e]);return r}),mt=h(W),vt=h(function(n,t){return t[n]}),xt=g(function(n,t,r){return y(r[n],t)}),wt=g(function(n,t,r){return j(t,r)?r[t]:n}),bt=h(function(n,t){for(var r=n.length,e=[],u=-1;++u<r;)e[u]=t[n[u]];return e}),jt=h(function(n,t){for(var r=[],e=n;t>e;)r[r.length]=e,e+=1;return r}),Ot=g(function(n,t,r){for(var e=-1,u=r.length;++e<u;)t=n(t,r[e],e,r);return t}),It=g(function(n,t,r){for(var e=r.length;--e>=0;)t=n(t,r[e]);return t}),St=g(function(n,t,r){for(var e=r.length;--e>=0;)t=n(t,r[e],e,r);return t}),Et=h(function(n,t){return v(o(n),t)}),Nt=g(function(n,t,r){return f(B(r,0,Math.min(n,r.length)),B(r,Math.min(r.length,n+t)))}),kt=g(function(n,t,r){return r.replace(n,t)}),At=p(function(n){return B(n).reverse()}),Ct=g(function(n,t,r){for(var e=0,u=r.length+1,i=[t];++e<u;)t=n(t,r[e-1]),i[e]=t;return i}),Mt=h(function(n,t){return B(t).sort(n)}),Pt=h(function(n,t){return B(t).sort(function(t,r){var e=n(t),u=n(r);return u>e?-1:e>u?1:0})}),Tt=h(function(n,t){return t.indexOf(n)}),Rt=h(function(n,t){return t.lastIndexOf(n)}),Wt=h(function(n,t){return n-t}),Lt=h(function(n,t){return n(t),t}),Ut=h(function(n,t){return i(n).test(t)}),Bt=h(function(n,t){for(var r=Number(t),e=new Array(r),u=0;r>u;)e[u]=n(u),u+=1;return e}),Ft=p(function(n){var t=[];for(var r in n)j(r,n)&&(t[t.length]=[r,n[r]]);return t}),qt=p(function(n){var t=[];for(var r in n)t[t.length]=[r,n[r]];return t}),Dt=function(){var n=" \n \f\r   ᠎              \u2028\u2029\ufeff",t="​",r="function"==typeof String.prototype.trim;return p(r&&!n.trim()&&t.trim()?function(n){return n.trim()}:function(t){var r=new RegExp("^["+n+"]["+n+"]*"),e=new RegExp("["+n+"]["+n+"]*$");return t.replace(r,"").replace(e,"")})}(),Vt=p(function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)}),zt=p(function(n){return function(){return n(B(arguments))}}),_t=p(function(n){return rt(1,n)}),Ht=h(function(n,t){return hn(n,function(){for(var r,e=1,u=t,i=0;n>=e&&"function"==typeof u;)r=e===n?arguments.length:i+u.length,u=u.apply(this,B(arguments,i,r)),e+=1,i=r;return u})}),Xt=h(function(n,t){for(var r=n(t),e=[];r&&r.length;)e[e.length]=r[0],r=n(r[1]);return e}),Yt=h(function(n,t){for(var r,e=-1,u=t.length,i=[];++e<u;)r=t[e],a(n,r,i)||(i[i.length]=r);return i}),Zt=g(function(n,t,r){return K(Q(t),n,r)}),$t=p(function(n){var t,r=[];for(t in n)r[r.length]=n[t];return r}),Gt=h(function(n,t){for(var r in n)if(j(r,n)&&!n[r](t[r]))return!1;return!0}),Jt=h(function(n,t){return hn(n.length,function(){return t.apply(this,f([n],arguments))})}),Kt=h(function(n,t){for(var r,e=-1,u=n.length,i=t.length,o=[];++e<u;)for(r=-1;++r<i;)o[o.length]=[n[e],t[r]];return o}),Qt=h(function(n,t){for(var r=[],e=-1,u=Math.min(n.length,t.length);++e<u;)r[e]=[n[e],t[e]];return r}),nr=h(function(n,t){for(var r=-1,e=n.length,u={};++r<e;)u[n[r]]=t[r];return u}),tr=g(function(n,t,r){for(var e=[],u=-1,i=Math.min(t.length,r.length);++u<i;)e[u]=n(t[u],r[u]);return e}),rr=Q(!1),er=Q(!0),ur=function(n,t){return f(t,[n])},ir=function Cu(n,t,r){switch(n.length){case 0:return r;case 1:return u(n[0],t,r);default:return u(n[0],Cu(B(n,1),t,Object(r[n[0]])),r)}},or=function Mu(n,t,r){var e=function(e){for(var u=t.length,i=-1;++i<u;)if(n===t[i])return r[i];t[i+1]=n,r[i+1]=e;for(var o in n)e[o]=Mu(n[o],t,r);return e};switch(Vt(n)){case"Object":return e({});case"Array":return e([]);case"Date":return new Date(n);case"RegExp":return i(n);default:return n}},cr=function(n,t){return function(){var r=arguments.length;if(0===r)return t();var e=arguments[r-1];return S(e)||"function"!=typeof e[n]?t.apply(this,arguments):e[n].apply(e,B(arguments,0,r-1))}},fr=function(n,t){return _n(c(n,t),function(r,e){var u=n.set(r,t(e));return t.set(u,e)})},ar=function(n,t){return function(){var r=this,e=t.apply(this,arguments);return N(e)?e.then(function(t){return n.call(r,t)}):n.call(this,e)}},sr=function(n,t){return I(t,n)>=0},lr=function(n){return function(){for(var t=arguments.length-1,r=arguments[t],e=r.length;--t>=0;)r=n(arguments[t],r);return rn(e,r)}},pr=function(n,t){return p(function(r){for(var e,u=-1,i=t;++u<r.length;)e=+r[u],n(e,i)&&(i=e);return i})},hr=function(n){return function(t){var r=B(arguments,1);return rn(Math.max(0,t.length-r.length),function(){return t.apply(this,n(r,arguments))})}},gr=function(n,t,r){return function(){var e=arguments.length;if(0===e)return r();var u=arguments[e-1];if(!S(u)){var i=B(arguments,0,e-1);if("function"==typeof u[n])return u[n].apply(u,i);if(k(u)){var o=t.apply(null,i);return o(u)}}return r.apply(this,arguments)}},dr=function Pu(n,t){switch(n.length){case 0:return t;case 1:return d(n[0],t);default:var r=n[0],e=B(n,1);return null==t[r]?t:u(r,Pu(e,t[r]),t)}},yr=function(n,t){return null!=t&&!S(t)&&"function"==typeof t[n]},mr=function(n){return function t(r){for(var e,u,i,o=[],c=-1,f=r.length;++c<f;)if(Ln(r[c]))for(e=n?t(r[c]):r[c],u=-1,i=e.length;++u<i;)o[o.length]=e[u];else o[o.length]=r[c];return o}},vr=function(){function n(n,t,r){for(var e=-1,u=r.length;++e<u;)if(t=n["@@transducer/step"](t,r[e]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}return n["@@transducer/result"](t)}function t(n,t,r){for(var e=r.next();!e.done;){if(t=n["@@transducer/step"](t,e.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e=r.next()}return n["@@transducer/result"](t)}function r(n,t,r){return n["@@transducer/result"](r.reduce(un(n["@@transducer/step"],n),t))}var e="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(u,i,o){if("function"==typeof u&&(u=G(u)),Ln(o))return n(u,i,o);if("function"==typeof o.reduce)return r(u,i,o);if(null!=o[e])return t(u,i,o[e]());if("function"==typeof o.next)return t(u,i,o);throw new TypeError("reduce: list must be array or iterable")}}(),xr=function(){function n(n,t){this.xf=t,this.f=n,this.all=!0}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=function(n){return this.all&&(n=this.xf["@@transducer/step"](n,!0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)||(this.all=!1,n=U(this.xf["@@transducer/step"](n,!1))),n},h(function(t,r){return new n(t,r)})}(),wr=function(){function n(n,t){this.xf=t,this.f=n,this.any=!1}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=function(n){return this.any||(n=this.xf["@@transducer/step"](n,!1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.any=!0,n=U(this.xf["@@transducer/step"](n,!0))),n},h(function(t,r){return new n(t,r)})}(),br=function(){function n(n,t){this.xf=t,this.n=n}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=D.result,n.prototype.step=function(n,t){return this.n>0?(this.n-=1,n):this.xf["@@transducer/step"](n,t)},h(function(t,r){return new n(t,r)})}(),jr=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=D.result,n.prototype["@@transducer/step"]=function(n,t){if(this.f){if(this.f(t))return n;this.f=null}return this.xf["@@transducer/step"](n,t)},h(function(t,r){return new n(t,r)})}(),Or=function(){function n(n,t){this.xf=t,this.f=n,this.inputs={}}return n.prototype["@@transducer/init"]=D.init,n.prototype["@@transducer/result"]=function(n){var t;for(t in this.inputs)if(j(t,this.inputs)&&(n=this.xf["@@transducer/step"](n,this.inputs[t]),n["@@transducer/reduced"])){n=n["@@transducer/value"];break}return this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){var r=this.f(t);return this.inputs[r]=this.inputs[r]||[r,[]],this.inputs[r][1]=ur(t,this.inputs[r][1]),n},h(function(t,r){return new n(t,r)})}(),Ir=h(gr("all",xr,r)),Sr=h(function(n,t){return yr("and",n)?n.and(t):n&&t}),Er=h(gr("any",wr,e)),Nr=h(ur),kr=g(ir),Ar=p(function(n){return rt(2,n)}),Cr=p(function(n){return or(n,[],[])}),Mr=lr(c),Pr=function(){for(var n=arguments.length-1,t=arguments[n];--n>=0;)t=fr(arguments[n],t);return t},Tr=lr(ar),Rr=h(function(n,t){if(S(t))return f(n,t);if(yr("concat",n))return n.concat(t);throw new TypeError("can't concat "+typeof n)}),Wr=h(sr),Lr=p(function(n){return hn(n.length,n)}),Ur=h(function(n,t){for(var r=[],e=-1,u=n.length;++e<u;)sr(n[e],t)||sr(n[e],r)||(r[r.length]=n[e]);return r}),Br=h(dr),Fr=h(gr("drop",br,function(n,t){return 0>=n?t:B(t,n)})),qr=h(gr("dropWhile",jr,function(n,t){for(var r=-1,e=t.length;++r<e&&n(t[r]););return B(t,r)})),Dr=p(function(n){return yr("empty",n)?n.empty():[]}),Vr=h(gr("filter",V,m)),zr=h(gr("find",z,function(n,t){for(var r=-1,e=t.length;++r<e;)if(n(t[r]))return t[r]})),_r=h(gr("findIndex",_,function(n,t){for(var r=-1,e=t.length;++r<e;)if(n(t[r]))return r;return-1})),Hr=h(gr("findLast",H,function(n,t){for(var r=t.length;--r>=0;)if(n(t[r]))return t[r]})),Xr=h(gr("findLastIndex",X,function(n,t){for(var r=t.length;--r>=0;)if(n(t[r]))return r;return-1})),Yr=p(mr(!0)),Zr=p(function(n){return Lr(function(t,r){var e=B(arguments);return e[0]=r,e[1]=t,n.apply(this,e)})}),$r=p(w(Dn)),Gr=h(gr("groupBy",Or,function(n,t){return vr(function(t,r){var e=n(r);return t[e]=ur(r,t[e]||(t[e]=[])),t},{},t)})),Jr=it(0),Kr=g(function(n,t,r){return n=n<r.length&&n>=0?n:r.length,f(ur(t,B(r,0,n)),B(r,n))}),Qr=g(function(n,t,r){for(var e=[],u=-1;++u<t.length;)a(n,t[u],r)&&(e[e.length]=t[u]);return Yt(n,e)}),ne=h(cr("intersperse",function(n,t){for(var r=[],e=-1,u=t.length;++e<u;)e===u-1?r.push(t[e]):r.push(t[e],n);return r})),te=Lr(function(n,t,r){return r[n].apply(r,t)}),re=Lr(function(n,t){var r=B(arguments,2),e=n-r.length;return hn(e+1,function(){var n=arguments[e],u=r.concat(B(arguments,0,e));return n[t].apply(n,u)})}),ee=re(1,"join"),ue=function(){var n=!{toString:null}.propertyIsEnumerable("toString"),t=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];return p(function(r){if(Object(r)!==r)return[];if(Object.keys)return Object.keys(r);var e,u,i=[];for(e in r)j(e,r)&&(i[i.length]=e);if(n)for(u=t.length;--u>=0;)e=t[u],j(e,r)&&!sr(e,i)&&(i[i.length]=e);return i})}(),ie=it(-1),oe=function(n){return _n(it(n),function(t,r){return B(r,0,n).concat([t],B(r,n+1))})},ce=function(n){return _n(vt(n),en(n))},fe=h(gr("map",Y,M)),ae=h(function(n,t){return vr(function(r,e){return r[e]=n(t[e]),r},{},ue(t))}),se=h(function(n,t){return vr(function(r,e){return r[e]=n(t[e],e,t),r},{},ue(t))}),le=re(1,"match"),pe=pr(b,-(1/0)),he=pr(C,1/0),ge=h(o(gr("any",wr,e))),de=h(function(n,t){return yr("or",n)?n.or(t):n||t}),ye=Lr(hr(f)),me=Lr(hr(Zr(f))),ve=h(function(n,t){return vr(function(t,r){var e=t[n(r)?0:1];return e[e.length]=r,t},[[],[]],t)}),xe=function(){return Mr.apply(this,At(arguments))},we=Mr(tn(Pr),zt(At)),be=function(){return Tr.apply(this,At(arguments))},je=g(vr),Oe=h(function(n,t){return Vr(o(n),t)}),Ie=h(function(n,t){return Bt(Q(n),t)}),Se=g(cr("slice",function(n,t,r){return Array.prototype.slice.call(r,n,t)})),Ee=re(1,"split"),Ne=Se,ke=Ne(n,1/0),Ae=Ne(0),Ce=je(t,0),Me=cr("tail",function(n){return B(n,1)}),Pe=h(gr("take",Z,function(n,t){return B(t,0,n)})),Te=h(gr("takeWhile",$,function(n,t){for(var r=-1,e=t.length;++r<e&&n(t[r]););return B(t,0,r)})),Re=re(0,"toLowerCase"),We=re(0,"toUpperCase"),Le=hn(4,function(n,t,r,e){return vr(n("function"==typeof t?G(t):t),r,e)}),Ue=g(function(n,t,r){return Yt(n,f(t,r))}),Be=Yt(wn),Fe=p(mr(!1)),qe=Lr(function(n){var t=B(arguments,1),r=t.length;return Lr(rn(r,function(){for(var e=[],u=-1;++u<r;)e[u]=t[u](arguments[u]);return n.apply(this,e.concat(B(arguments,r)))}))}),De=p(function(n){for(var t=ue(n),r=t.length,e=[],u=-1;++u<r;)e[u]=n[t[u]];return e}),Ve=h(function(n,t){return Gt(ae(wn,n),t)}),ze=function Tu(n,t,r,e){var u=Vt(n);if(u!==Vt(t))return!1;if(wn(n,t))return!0;if("RegExp"==u)return n.source===t.source&&n.global===t.global&&n.ignoreCase===t.ignoreCase&&n.multiline===t.multiline&&n.sticky===t.sticky&&n.unicode===t.unicode;if(Object(n)===n){if("Date"===u&&n.getTime()!=t.getTime())return!1;var i=ue(n);if(i.length!==ue(t).length)return!1;for(var o=r.length;--o>=0;)if(r[o]===n)return e[o]===t;for(r[r.length]=n,e[e.length]=t,o=i.length;--o>=0;){var c=i[o];if(!j(c,t)||!Tu(t[c],n[c],r,e))return!1}return r.pop(),e.pop(),!0}return!1},_e=function(n,t){for(var r=ue(t),e=-1,u=r.length;++e<u;)n[r[e]]=t[r[e]];return n},He=function(n,t){return fe(vt(n),t)},Xe=function(n){return function(t){var r=function(){var r=arguments;return n(function(n){return n.apply(null,r)},t)};return arguments.length>1?r.apply(null,B(arguments,1)):rn(pe(He("length",t)),r)}},Ye=function Ru(n,t){var r=function(r){var e=t.concat([n]);return I(e,r)>=0?"<Circular>":Ru(r,e)};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+M(r,n).join(", ")+"))";case"[object Array]":return"["+M(r,n).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+r(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+L(F(n))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+r(n.valueOf())+")":1/n===-(1/0)?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+r(n.valueOf())+")":L(n);case"[object Undefined]":return"undefined";default:return"function"==typeof n.constructor&&"Object"!==n.constructor.name&&"function"==typeof n.toString&&"[object Object]"!==n.toString()?n.toString():"{"+M(function(t){return L(t)+": "+r(n[t])},ue(n).sort()).join(", ")+"}"}},Ze=Lr(Xe(r)),$e=Lr(Xe(e)),Ge=h(function(n,t){return yr("ap",n)?n.ap(t):vr(function(n,r){return f(n,fe(r,t))},[],n)}),Je=Lr(function(n){return n.apply(this,B(arguments,1))}),Ke=h(cr("chain",function(n,t){return Fe(M(n,t))})),Qe=g(function(n,t,r){function e(t,r){return Ge(fe(Nr,n(r)),t)}return vr(e,t([]),r)}),nu=h(function(n,t){if(n>10)throw new Error("Constructor with greater than ten arguments");return 0===n?function(){return new t}:Lr(rt(n,function(n,r,e,u,i,o,c,f,a,s){switch(arguments.length){case 1:return new t(n);case 2:return new t(n,r);case 3:return new t(n,r,e);case 4:return new t(n,r,e,u);case 5:return new t(n,r,e,u,i);case 6:return new t(n,r,e,u,i,o);case 7:return new t(n,r,e,u,i,o,c);case 8:return new t(n,r,e,u,i,o,c,f);case 9:return new t(n,r,e,u,i,o,c,f,a);case 10:return new t(n,r,e,u,i,o,c,f,a,s)}}))}),tu=h(gr("dropRepeatsWith",q,function(n,t){var r=[],e=0,u=t.length;if(0!==u)for(r[0]=t[0];++e<u;)n(ie(r),t[e])||(r[r.length]=t[e]);return r})),ru=h(function(n,t){return ze(n,t,[],[])}),eu=h(function(n,t){return _e(_e({},t),se(function(n,r){return n(t[r])},n))}),uu=p(w(ue)),iu=Se(0,-1),ou=h(function(n,t){return Be(m(Zr(sr)(n),t))}),cu=p(function(n){for(var t=ue(n),r=t.length,e=-1,u={};++e<r;){var i=t[e],o=n[i],c=j(o,u)?u[o]:u[o]=[];c[c.length]=i}return u}),fu=p(function(n){for(var t=ue(n),r=t.length,e=-1,u={};++e<r;){var i=t[e];u[n[i]]=i}return u}),au=h(function(n,t){var r=hn(n,t);return hn(n,function(){return vr(Ge,fe(r,arguments[0]),B(arguments,1))})}),su=p(function(n){return Ce(n)/n.length}),lu=p(function(n){var t=n.length;if(0===t)return NaN;var r=2-t%2,e=(t-r)/2;return su(B(n).sort(function(n,t){return t>n?-1:n>t?1:0}).slice(e,e+r))}),pu=h(function(n,t){return _e(_e({},n),t)}),hu=p(function(n){return je(pu,{},n)}),gu=h(He),du=je(P,1),yu=qe(M,dt,Cn),mu=p(function(n){return Ye(n,[])}),vu=h(Mr(Be,f)),xu=function(){var n={"@@transducer/init":Array,"@@transducer/step":function(n,t){return f(n,[t])},"@@transducer/result":O},r={"@@transducer/init":String,"@@transducer/step":t,"@@transducer/result":O},e={"@@transducer/init":Object,"@@transducer/step":function(n,t){return pu(n,Ln(t)?s(t[0],t[1]):t)},"@@transducer/result":O};return function(t){if(k(t))return t;if(Ln(t))return n;if("string"==typeof t)return r;if("object"==typeof t)return e;throw new Error("Cannot create transformer for "+t)}}(),wu=Qe(fe(Cn)),bu=p(function(n){return nu(n.length,n)}),ju=hn(3,function(n){var t=B(arguments,1);return hn(pe(gu("length",t)),function(){var r=arguments,e=this;return n.apply(e,M(function(n){return n.apply(e,r)},t))})}),Ou=p(gr("dropRepeats",q(y),tu(y))),Iu=g(function(n,t,r){return k(n)?vr(t(n),n["@@transducer/init"](),r):vr(t(xu(n)),n,r)}),Su=p(function(n){return au(n.length,n)}),Eu=p(function(n){var t={};return function(){var r=mu(arguments);return j(r,t)||(t[r]=n.apply(this,arguments)),t[r]}}),Nu={F:rr,T:er,__:n,add:J,adjust:K,all:Ir,allPass:Ze,always:Q,and:Sr,any:Er,anyPass:$e,ap:Ge,aperture:nn,append:Nr,apply:tn,arity:rn,assoc:en,assocPath:kr,binary:Ar,bind:un,both:on,call:Je,chain:Ke,clone:Cr,commute:wu,commuteMap:Qe,comparator:cn,complement:fn,compose:Mr,composeL:Pr,composeP:Tr,concat:Rr,cond:an,construct:bu,constructN:nu,contains:Wr,containsWith:sn,converge:ju,countBy:ln,createMapEntry:pn,curry:Lr,curryN:hn,dec:gn,defaultTo:dn,difference:Ur,differenceWith:yn,dissoc:mn,dissocPath:Br,divide:vn,drop:Fr,dropRepeats:Ou,dropRepeatsWith:tu,dropWhile:qr,either:xn,empty:Dr,eq:wn,eqDeep:ru,eqProps:bn,evolve:eu,filter:Vr,filterIndexed:jn,find:zr,findIndex:_r,findLast:Hr,findLastIndex:Xr,flatten:Yr,flip:Zr,forEach:On,forEachIndexed:In,fromPairs:Sn,functions:uu,functionsIn:$r,groupBy:Gr,gt:En,gte:Nn,has:kn,hasIn:An,head:Jr,identity:Cn,ifElse:Mn,inc:Pn,indexOf:Tn,init:iu,insert:Kr,insertAll:Rn,intersection:ou,intersectionWith:Qr,intersperse:ne,into:Iu,invert:cu,invertObj:fu,invoke:te,invoker:re,is:Wn,isArrayLike:Ln,isEmpty:Un,isNaN:Bn,isNil:Fn,isSet:qn,join:ee,keys:ue,keysIn:Dn,last:ie,lastIndexOf:Vn,length:zn,lens:_n,lensIndex:oe,lensOn:Hn,lensProp:ce,lift:Su,liftN:au,lt:Xn,lte:Yn,map:fe,mapAccum:Zn,mapAccumRight:$n,mapIndexed:Gn,mapObj:ae,mapObjIndexed:se,match:le,mathMod:Jn,max:pe,maxBy:Kn,mean:su,median:lu,memoize:Eu,merge:pu,mergeAll:hu,min:he,minBy:Qn,modulo:nt,multiply:tt,nAry:rt,negate:et,none:ge,not:ut,nth:it,nthArg:ot,nthChar:ct,nthCharCode:ft,of:at,omit:st,once:lt,or:de,partial:ye,partialRight:me,partition:ve,path:pt,pathEq:ht,pick:gt,pickAll:dt,pickBy:yt,pipe:xe,pipeL:we,pipeP:be,pluck:gu,prepend:mt,product:du,project:yu,prop:vt,propEq:xt,propOr:wt,props:bt,range:jt,reduce:je,reduceIndexed:Ot,reduceRight:It,reduceRightIndexed:St,reject:Oe,rejectIndexed:Et,remove:Nt,repeat:Ie,replace:kt,reverse:At,scan:Ct,slice:Se,sort:Mt,sortBy:Pt,split:Ee,strIndexOf:Tt,strLastIndexOf:Rt,substring:Ne,substringFrom:ke,substringTo:Ae,subtract:Wt,sum:Ce,tail:Me,take:Pe,takeWhile:Te,tap:Lt,test:Ut,times:Bt,toLower:Re,toPairs:Ft,toPairsIn:qt,toString:mu,
toUpper:We,transduce:Le,trim:Dt,type:Vt,unapply:zt,unary:_t,uncurryN:Ht,unfold:Xt,union:vu,unionWith:Ue,uniq:Be,uniqWith:Yt,unnest:Fe,update:Zt,useWith:qe,values:De,valuesIn:$t,where:Gt,whereEq:Ve,wrap:Jt,xprod:Kt,zip:Qt,zipObj:nr,zipWith:tr};"object"==typeof exports?module.exports=Nu:"function"==typeof define&&define.amd?define(function(){return Nu}):this.R=Nu}).call(this);
(function(){"use strict";var n={"@@functional/placeholder":!0},t=function(n,t){return n+t},r=function(n,t){for(var r=0;r<t.length;){if(!n(t[r]))return!1;r+=1}return!0},e=function(n,t){for(var r=0;r<t.length;){if(n(t[r]))return!0;r+=1}return!1},u=function(n,t,r){var e={};for(var u in r)e[u]=r[u];return e[n]=t,e},i=function(n){return new RegExp(n.source,(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":""))},o=function(n){return function(){return!n.apply(this,arguments)}},c=function(n,t){return function(){return n.call(this,t.apply(this,arguments))}},f=function(n,t){n=n||[],t=t||[];var r,e=[];for(r=0;r<n.length;)e[e.length]=n[r],r+=1;for(r=0;r<t.length;)e[e.length]=t[r],r+=1;return e},a=function(n,t,r){for(var e=0;e<r.length;){if(n(t,r[e]))return!0;e+=1}return!1},s=function(n,t){var r={};return r[n]=t,r},l=function(n){return function(t,r){if(r&&r.length>0){for(var e,u=1,i=r[u],o=t(i);u<r.length;)e=t(r[u]),n(e,o)&&(o=e,i=r[u]),u+=1;return i}}},h=function(n){return function t(r){return 0===arguments.length?t:null!=r&&r["@@functional/placeholder"]===!0?t:n(r)}},p=function(n){return function t(r,e){var u=arguments.length;return 0===u?t:1===u&&null!=r&&r["@@functional/placeholder"]===!0?t:1===u?h(function(t){return n(r,t)}):2===u&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?t:2===u&&null!=r&&r["@@functional/placeholder"]===!0?h(function(t){return n(t,e)}):2===u&&null!=e&&e["@@functional/placeholder"]===!0?h(function(t){return n(r,t)}):n(r,e)}},g=function(n){return function t(r,e,u){var i=arguments.length;return 0===i?t:1===i&&null!=r&&r["@@functional/placeholder"]===!0?t:1===i?p(function(t,e){return n(r,t,e)}):2===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?t:2===i&&null!=r&&r["@@functional/placeholder"]===!0?p(function(t,r){return n(t,e,r)}):2===i&&null!=e&&e["@@functional/placeholder"]===!0?p(function(t,e){return n(r,t,e)}):2===i?h(function(t){return n(r,e,t)}):3===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0&&null!=u&&u["@@functional/placeholder"]===!0?t:3===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=e&&e["@@functional/placeholder"]===!0?p(function(t,r){return n(t,r,u)}):3===i&&null!=r&&r["@@functional/placeholder"]===!0&&null!=u&&u["@@functional/placeholder"]===!0?p(function(t,r){return n(t,e,r)}):3===i&&null!=e&&e["@@functional/placeholder"]===!0&&null!=u&&u["@@functional/placeholder"]===!0?p(function(t,e){return n(r,t,e)}):3===i&&null!=r&&r["@@functional/placeholder"]===!0?h(function(t){return n(t,e,u)}):3===i&&null!=e&&e["@@functional/placeholder"]===!0?h(function(t){return n(r,t,u)}):3===i&&null!=u&&u["@@functional/placeholder"]===!0?h(function(t){return n(r,e,t)}):n(r,e,u)}},d=function(n,t){var r={};for(var e in t)e!==n&&(r[e]=t[e]);return r},y=function(n,t){for(var r=0,e=[];r<t.length;)n(t[r])&&(e[e.length]=t[r]),r+=1;return e},m=function(n,t){for(var r=0,e=[];r<t.length;)n(t[r],r,t)&&(e[e.length]=t[r]),r+=1;return e},v=function(n,t){for(var r=0;r<t.length;)n(t[r]),r+=1;return t},x=function(n){return{"@@transducer/value":n,"@@transducer/reduced":!0}},w=function(n){return function(t){return y(function(n){return"function"==typeof t[n]},n(t))}},b=function(n,t){return n>t},j=function(n,t){return Object.prototype.hasOwnProperty.call(t,n)},O=function(n){return n},I=Array.isArray||function(n){return null!=n&&n.length>=0&&"[object Array]"===Object.prototype.toString.call(n)},S=Number.isInteger||function(n){return n<<0===n},E=function(n){return null!=n&&n===Object(n)&&"function"==typeof n.then},k=function(n){return"function"==typeof n["@@transducer/step"]},A=function(n,t){return t>n},N=function(n,t){for(var r=0,e=[];r<t.length;)e[r]=n(t[r]),r+=1;return e},C=function(n,t){return n*t},M=function(n,t){return 0>n?t[t.length+n]:t[n]},P=function(n,t){if(null!=t){for(var r=t,e=0;e<n.length&&null!=r;e+=1)r=r[n[e]];return r}},T=function(n,t){return f([n],t)},R=function(n){return'"'+n.replace(/"/g,'\\"')+'"'},W=function(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}},q=function Tu(n,t,r){switch(arguments.length){case 1:return Tu(n,0,n.length);case 2:return Tu(n,t,n.length);default:for(var e=[],u=0,i=Math.max(0,Math.min(n.length,r)-t);i>u;)e[u]=n[t+u],u+=1;return e}},L=function(){var n=function(n){return(10>n?"0":"")+n};return"function"==typeof Date.prototype.toISOString?function(n){return n.toISOString()}:function(t){return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}(),U=function(){function n(n,t){this.xf=t,this.pred=n,this.lastValue=void 0,this.seenFirstValue=!1}return n.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/init"]()},n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(r=!0):this.seenFirstValue=!0,this.lastValue=t,r?n:this.xf["@@transducer/step"](n,t)},p(function(t,r){return new n(t,r)})}(),B={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}},F=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=B.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):n},p(function(t,r){return new n(t,r)})}(),D=function(){function n(n,t){this.xf=t,this.f=n,this.found=!1}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,void 0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.found=!0,n=W(this.xf["@@transducer/step"](n,t))),n},p(function(t,r){return new n(t,r)})}(),z=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=function(n){return this.found||(n=this.xf["@@transducer/step"](n,-1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.found=!0,n=W(this.xf["@@transducer/step"](n,this.idx))),n},p(function(t,r){return new n(t,r)})}(),V=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.last))},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.last=t),n},p(function(t,r){return new n(t,r)})}(),_=function(){function n(n,t){this.xf=t,this.f=n,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=function(n){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](n,this.lastIdx))},n.prototype["@@transducer/step"]=function(n,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),n},p(function(t,r){return new n(t,r)})}(),H=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=B.result,n.prototype["@@transducer/step"]=function(n,t){return this.xf["@@transducer/step"](n,this.f(t))},p(function(t,r){return new n(t,r)})}(),X=function(){function n(n,t){this.xf=t,this.n=n}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=B.result,n.prototype["@@transducer/step"]=function(n,t){return this.n-=1,0===this.n?W(this.xf["@@transducer/step"](n,t)):this.xf["@@transducer/step"](n,t)},p(function(t,r){return new n(t,r)})}(),Y=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=B.result,n.prototype["@@transducer/step"]=function(n,t){return this.f(t)?this.xf["@@transducer/step"](n,t):W(n)},p(function(t,r){return new n(t,r)})}(),Z=function(){function n(n){this.f=n}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(n){return n},n.prototype["@@transducer/step"]=function(n,t){return this.f(n,t)},function(t){return new n(t)}}(),$=p(t),G=g(function(n,t,r){if(t>=r.length||t<-r.length)return r;var e=0>t?r.length:0,u=e+t,i=f(r);return i[u]=n(r[u]),i}),J=h(function(n){return function(){return n}}),K=p(function(n,t){for(var r=0,e=t.length-(n-1),u=new Array(e>=0?e:0);e>r;)u[r]=q(t,r,r+n),r+=1;return u}),Q=p(function(n,t){return n.apply(this,t)}),nn=p(function(n,t){switch(n){case 0:return function(){return t.apply(this,arguments)};case 1:return function(n){return t.apply(this,arguments)};case 2:return function(n,r){return t.apply(this,arguments)};case 3:return function(n,r,e){return t.apply(this,arguments)};case 4:return function(n,r,e,u){return t.apply(this,arguments)};case 5:return function(n,r,e,u,i){return t.apply(this,arguments)};case 6:return function(n,r,e,u,i,o){return t.apply(this,arguments)};case 7:return function(n,r,e,u,i,o,c){return t.apply(this,arguments)};case 8:return function(n,r,e,u,i,o,c,f){return t.apply(this,arguments)};case 9:return function(n,r,e,u,i,o,c,f,a){return t.apply(this,arguments)};case 10:return function(n,r,e,u,i,o,c,f,a,s){return t.apply(this,arguments)};default:throw new Error("First argument to arity must be a non-negative integer no greater than ten")}}),tn=g(u),rn=p(function(n,t){return nn(n.length,function(){return n.apply(t,arguments)})}),en=p(function(n,t){return function(){return n.apply(this,arguments)&&t.apply(this,arguments)}}),un=h(function(n){return function(t,r){return n(t,r)?-1:n(r,t)?1:0}}),on=h(o),cn=function(){var n=arguments;return function(){for(var t=0;t<n.length;){if(n[t][0].apply(this,arguments))return n[t][1].apply(this,arguments);t+=1}}},fn=g(a),an=p(function(n,t){for(var r={},e=0;e<t.length;){var u=n(t[e]);r[u]=(j(u,r)?r[u]:0)+1,e+=1}return r}),sn=p(s),ln=$(-1),hn=p(function(n,t){return null==t?n:t}),pn=g(function(n,t,r){for(var e=[],u=0,i=fn(n);u<t.length;)i(t[u],r)||i(t[u],e)||(e[e.length]=t[u]),u+=1;return e}),gn=p(d),dn=p(function(n,t){return n/t}),yn=p(function(n,t){return function(){return n.apply(this,arguments)||t.apply(this,arguments)}}),mn=p(function Ru(n,t){var r,e,u,i={};for(e in t)r=n[e],u=typeof r,i[e]="function"===u?r(t[e]):"object"===u?Ru(n[e],t[e]):t[e];return i}),vn=p(m),xn=p(function(n,t){for(var r=0;r<t.length;)n(t[r],r,t),r+=1;return t}),wn=h(function(n){for(var t=0,r={};t<n.length;)I(n[t])&&n[t].length&&(r[n[t][0]]=n[t][1]),t+=1;return r}),bn=p(b),jn=p(function(n,t){return n>=t}),On=p(j),In=p(function(n,t){return n in t}),Sn=p(function(n,t){return n===t?0!==n||1/n===1/t:n!==n&&t!==t}),En=h(O),kn=$(1),An=g(function(n,t,r){return n=n<r.length&&n>=0?n:r.length,f(f(q(r,0,n),t),q(r,n))}),Nn=p(function(n,t){return null!=t&&t.constructor===n||t instanceof n}),Cn=h(function(n){return I(n)?!0:n?"object"!=typeof n?!1:n instanceof String?!1:1===n.nodeType?!!n.length:0===n.length?!0:n.length>0?n.hasOwnProperty(0)&&n.hasOwnProperty(n.length-1):!1:!1}),Mn=h(function(n){return 0===Object(n).length}),Pn=h(function(n){return null==n}),Tn=function(){var n=!{toString:null}.propertyIsEnumerable("toString"),t=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],r=function(n,t){for(var r=0;r<n.length;){if(n[r]===t)return!0;r+=1}return!1};return h("function"==typeof Object.keys?function(n){return Object(n)!==n?[]:Object.keys(n)}:function(e){if(Object(e)!==e)return[];var u,i,o=[];for(u in e)j(u,e)&&(o[o.length]=u);if(n)for(i=t.length-1;i>=0;)u=t[i],j(u,e)&&!r(o,u)&&(o[o.length]=u),i-=1;return o})}(),Rn=h(function(n){var t,r=[];for(t in n)r[r.length]=t;return r}),Wn=h(function(n){return null!=n&&Nn(Number,n.length)?n.length:NaN}),qn=p(function(n,t){var r=function(t){return n(t)};return r.set=p(t),r.map=p(function(r,e){return t(r(n(e)),e)}),r}),Ln=g(function(n,t,r){var e=function(){return n(r)};return e.set=t,e.map=function(e){return t(e(n(r)))},e}),Un=p(A),Bn=p(function(n,t){return t>=n}),Fn=g(function(n,t,r){for(var e=0,u=[],i=[t];e<r.length;)i=n(i[0],r[e]),u[e]=i[1],e+=1;return[i[0],u]}),Dn=g(function(n,t,r){for(var e=r.length-1,u=[],i=[t];e>=0;)i=n(i[0],r[e]),u[e]=i[1],e-=1;return[i[0],u]}),zn=p(function(n,t){for(var r=0,e=[];r<t.length;)e[r]=n(t[r],r,t),r+=1;return e}),Vn=p(function(n,t){return S(n)?!S(t)||1>t?NaN:(n%t+t)%t:NaN}),_n=p(l(b)),Hn=p(l(A)),Xn=p(function(n,t){return n%t}),Yn=p(C),Zn=p(function(n,t){switch(n){case 0:return function(){return t.call(this)};case 1:return function(n){return t.call(this,n)};case 2:return function(n,r){return t.call(this,n,r)};case 3:return function(n,r,e){return t.call(this,n,r,e)};case 4:return function(n,r,e,u){return t.call(this,n,r,e,u)};case 5:return function(n,r,e,u,i){return t.call(this,n,r,e,u,i)};case 6:return function(n,r,e,u,i,o){return t.call(this,n,r,e,u,i,o)};case 7:return function(n,r,e,u,i,o,c){return t.call(this,n,r,e,u,i,o,c)};case 8:return function(n,r,e,u,i,o,c,f){return t.call(this,n,r,e,u,i,o,c,f)};case 9:return function(n,r,e,u,i,o,c,f,a){return t.call(this,n,r,e,u,i,o,c,f,a)};case 10:return function(n,r,e,u,i,o,c,f,a,s){return t.call(this,n,r,e,u,i,o,c,f,a,s)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),$n=h(function(n){return-n}),Gn=h(function(n){return!n}),Jn=p(M),Kn=h(function(n){return function(){return M(n,arguments)}}),Qn=p(function(n,t){return t.charAt(0>n?t.length+n:n)}),nt=p(function(n,t){return t.charCodeAt(0>n?t.length+n:n)}),tt=h(function(n){return[n]}),rt=h(function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments))}}),et=p(P),ut=p(function(n,t){for(var r={},e=0;e<n.length;)n[e]in t&&(r[n[e]]=t[n[e]]),e+=1;return r}),it=p(function(n,t){for(var r={},e=0;e<n.length;){var u=n[e];r[u]=t[u],e+=1}return r}),ot=p(function(n,t){var r={};for(var e in t)n(t[e],e,t)&&(r[e]=t[e]);return r}),ct=p(T),ft=p(function(n,t){return t[n]}),at=g(function(n,t,r){return null!=r&&j(t,r)?r[t]:n}),st=p(function(n,t){for(var r=[],e=0;e<n.length;)r[e]=t[n[e]],e+=1;return r}),lt=p(function(n,t){for(var r=[],e=n;t>e;)r[r.length]=e,e+=1;return r}),ht=g(function(n,t,r){for(var e=0;e<r.length;)t=n(t,r[e],e,r),e+=1;return t}),pt=g(function(n,t,r){for(var e=r.length-1;e>=0;)t=n(t,r[e]),e-=1;return t}),gt=g(function(n,t,r){for(var e=r.length-1;e>=0;)t=n(t,r[e],e,r),e-=1;return t}),dt=h(W),yt=p(function(n,t){return m(o(n),t)}),mt=g(function(n,t,r){return f(q(r,0,Math.min(n,r.length)),q(r,Math.min(r.length,n+t)))}),vt=g(function(n,t,r){return r.replace(n,t)}),xt=h(function(n){return q(n).reverse()}),wt=g(function(n,t,r){for(var e=0,u=[t];e<r.length;)t=n(t,r[e]),u[e+1]=t,e+=1;return u}),bt=p(function(n,t){return q(t).sort(n)}),jt=p(function(n,t){return q(t).sort(function(t,r){var e=n(t),u=n(r);return u>e?-1:e>u?1:0})}),Ot=p(function(n,t){return t.indexOf(n)}),It=p(function(n,t){return t.lastIndexOf(n)}),St=p(function(n,t){return n-t}),Et=p(function(n,t){return n(t),t}),kt=p(function(n,t){return i(n).test(t)}),At=p(function(n,t){for(var r=Number(t),e=new Array(r),u=0;r>u;)e[u]=n(u),u+=1;return e}),Nt=h(function(n){var t=[];for(var r in n)j(r,n)&&(t[t.length]=[r,n[r]]);return t}),Ct=h(function(n){var t=[];for(var r in n)t[t.length]=[r,n[r]];return t}),Mt=function(){var n=" \n \f\r   ᠎              \u2028\u2029\ufeff",t="​",r="function"==typeof String.prototype.trim;return h(r&&!n.trim()&&t.trim()?function(n){return n.trim()}:function(t){var r=new RegExp("^["+n+"]["+n+"]*"),e=new RegExp("["+n+"]["+n+"]*$");return t.replace(r,"").replace(e,"")})}(),Pt=h(function(n){return null===n?"Null":void 0===n?"Undefined":Object.prototype.toString.call(n).slice(8,-1)}),Tt=h(function(n){return function(){return n(q(arguments))}}),Rt=h(function(n){return Zn(1,n)}),Wt=p(function(n,t){for(var r=n(t),e=[];r&&r.length;)e[e.length]=r[0],r=n(r[1]);return e}),qt=p(function(n,t){for(var r,e=0,u=[];e<t.length;)r=t[e],a(n,r,u)||(u[u.length]=r),e+=1;return u}),Lt=g(function(n,t,r){return G(J(t),n,r)}),Ut=h(function(n){for(var t=Tn(n),r=[],e=0;e<t.length;)r[e]=n[t[e]],e+=1;return r}),Bt=h(function(n){var t,r=[];for(t in n)r[r.length]=n[t];return r}),Ft=p(function(n,t){for(var r in n)if(j(r,n)&&!n[r](t[r]))return!1;return!0}),Dt=p(function(n,t){for(var r,e=0,u=[];e<n.length;){for(r=0;r<t.length;)u[u.length]=[n[e],t[r]],r+=1;e+=1}return u}),zt=p(function(n,t){for(var r=[],e=0,u=Math.min(n.length,t.length);u>e;)r[e]=[n[e],t[e]],e+=1;return r}),Vt=p(function(n,t){for(var r=0,e={};r<n.length;)e[n[r]]=t[r],r+=1;return e}),_t=g(function(n,t,r){for(var e=[],u=0,i=Math.min(t.length,r.length);i>u;)e[u]=n(t[u],r[u]),u+=1;return e}),Ht=J(!1),Xt=J(!0),Yt=function(n,t){return f(t,[n])},Zt=function Wu(n,t,r){switch(n.length){case 0:return r;case 1:return u(n[0],t,r);default:return u(n[0],Wu(q(n,1),t,Object(r[n[0]])),r)}},$t=function qu(n,t,r){var e=function(e){for(var u=0;u<t.length;){if(n===t[u])return r[u];u+=1}t[u+1]=n,r[u+1]=e;for(var i in n)e[i]=qu(n[i],t,r);return e};switch(Pt(n)){case"Object":return e({});case"Array":return e([]);case"Date":return new Date(n);case"RegExp":return i(n);default:return n}},Gt=function(n,t){return function(){if(0===arguments.length)return t();var r=arguments[arguments.length-1];return I(r)||"function"!=typeof r[n]?t.apply(this,arguments):r[n].apply(r,q(arguments,0,arguments.length-1))}},Jt=function(n,t){return qn(c(n,t),function(r,e){var u=n.set(r,t(e));return t.set(u,e)})},Kt=function(n,t){return function(){var r=this,e=t.apply(this,arguments);return E(e)?e.then(function(t){return n.call(r,t)}):n.call(this,e)}},Qt=function(n){return function(){for(var t=arguments[arguments.length-1],r=t.length,e=arguments.length-2;e>=0;)t=n(arguments[e],t),e-=1;return nn(r,t)}},nr=function(n,t){return h(function(r){for(var e,u=0,i=t;u<r.length;)e=+r[u],n(e,i)&&(i=e),u+=1;return i})},tr=function(n){return function(t){var r=q(arguments,1);return nn(Math.max(0,t.length-r.length),function(){return t.apply(this,n(r,arguments))})}},rr=function Lu(n,t,r){return function(){for(var e=[],u=0,i=n,o=0;o<t.length||u<arguments.length;){var c;o<t.length&&(null==t[o]||t[o]["@@functional/placeholder"]!==!0||u>=arguments.length)?c=t[o]:(c=arguments[u],u+=1),e[o]=c,(null==c||c["@@functional/placeholder"]!==!0)&&(i-=1),o+=1}return 0>=i?r.apply(this,e):nn(i,Lu(n,e,r))}},er=function(n,t,r){return function(){if(0===arguments.length)return r();var e=arguments[arguments.length-1];if(!I(e)){var u=q(arguments,0,arguments.length-1);if("function"==typeof e[n])return e[n].apply(e,u);if(k(e)){var i=t.apply(null,u);return i(e)}}return r.apply(this,arguments)}},ur=function Uu(n,t){switch(n.length){case 0:return t;case 1:return d(n[0],t);default:var r=n[0],e=q(n,1);return null==t[r]?t:u(r,Uu(e,t[r]),t)}},ir=function Bu(n,t,r,e){var u=Pt(n);if(u!==Pt(t))return!1;if("Boolean"===u||"Number"===u||"String"===u)return"object"==typeof n?"object"==typeof t&&Sn(n.valueOf(),t.valueOf()):Sn(n,t);if(Sn(n,t))return!0;if("RegExp"===u)return n.source===t.source&&n.global===t.global&&n.ignoreCase===t.ignoreCase&&n.multiline===t.multiline&&n.sticky===t.sticky&&n.unicode===t.unicode;if(Object(n)===n){if("Date"===u&&n.getTime()!==t.getTime())return!1;var i=Tn(n);if(i.length!==Tn(t).length)return!1;for(var o=r.length-1;o>=0;){if(r[o]===n)return e[o]===t;o-=1}for(r[r.length]=n,e[e.length]=t,o=i.length-1;o>=0;){var c=i[o];if(!j(c,t)||!Bu(t[c],n[c],r,e))return!1;o-=1}return r.pop(),e.pop(),!0}return!1},or=function(n,t){for(var r=Tn(t),e=0;e<r.length;)n[r[e]]=t[r[e]],e+=1;return n},cr=function(n,t){return null!=t&&!I(t)&&"function"==typeof t[n]},fr=function(n){return function t(r){for(var e,u,i=[],o=0;o<r.length;){if(Cn(r[o]))for(e=n?t(r[o]):r[o],u=0;u<e.length;)i[i.length]=e[u],u+=1;else i[i.length]=r[o];o+=1}return i}},ar=function(){function n(n,t,r){for(var e=0;e<r.length;){if(t=n["@@transducer/step"](t,r[e]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e+=1}return n["@@transducer/result"](t)}function t(n,t,r){for(var e=r.next();!e.done;){if(t=n["@@transducer/step"](t,e.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}e=r.next()}return n["@@transducer/result"](t)}function r(n,t,r){return n["@@transducer/result"](r.reduce(rn(n["@@transducer/step"],n),t))}var e="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(u,i,o){if("function"==typeof u&&(u=Z(u)),Cn(o))return n(u,i,o);if("function"==typeof o.reduce)return r(u,i,o);if(null!=o[e])return t(u,i,o[e]());if("function"==typeof o.next)return t(u,i,o);throw new TypeError("reduce: list must be array or iterable")}}(),sr=function(){function n(n,t){this.xf=t,this.f=n,this.all=!0}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=function(n){return this.all&&(n=this.xf["@@transducer/step"](n,!0)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)||(this.all=!1,n=W(this.xf["@@transducer/step"](n,!1))),n},p(function(t,r){return new n(t,r)})}(),lr=function(){function n(n,t){this.xf=t,this.f=n,this.any=!1}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=function(n){return this.any||(n=this.xf["@@transducer/step"](n,!1)),this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){return this.f(t)&&(this.any=!0,n=W(this.xf["@@transducer/step"](n,!0))),n},p(function(t,r){return new n(t,r)})}(),hr=function(){function n(n,t){this.xf=t,this.n=n}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=B.result,n.prototype.step=function(n,t){return this.n>0?(this.n-=1,n):this.xf["@@transducer/step"](n,t)},p(function(t,r){return new n(t,r)})}(),pr=function(){function n(n,t){this.xf=t,this.f=n}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=B.result,n.prototype["@@transducer/step"]=function(n,t){if(this.f){if(this.f(t))return n;this.f=null}return this.xf["@@transducer/step"](n,t)},p(function(t,r){return new n(t,r)})}(),gr=function(){function n(n,t){this.xf=t,this.f=n,this.inputs={}}return n.prototype["@@transducer/init"]=B.init,n.prototype["@@transducer/result"]=function(n){var t;for(t in this.inputs)if(j(t,this.inputs)&&(n=this.xf["@@transducer/step"](n,this.inputs[t]),n["@@transducer/reduced"])){n=n["@@transducer/value"];break}return this.xf["@@transducer/result"](n)},n.prototype["@@transducer/step"]=function(n,t){var r=this.f(t);return this.inputs[r]=this.inputs[r]||[r,[]],this.inputs[r][1]=Yt(t,this.inputs[r][1]),n},p(function(t,r){return new n(t,r)})}(),dr=p(er("all",sr,r)),yr=p(function(n,t){return cr("and",n)?n.and(t):n&&t}),mr=p(er("any",lr,e)),vr=p(Yt),xr=g(Zt),wr=h(function(n){return Zn(2,n)}),br=h(function(n){return $t(n,[],[])}),jr=Qt(c),Or=function(){for(var n=arguments[arguments.length-1],t=arguments.length-2;t>=0;)n=Jt(arguments[t],n),t-=1;return n},Ir=Qt(Kt),Sr=p(function(n,t){if(I(t))return f(n,t);if(cr("concat",n))return n.concat(t);throw new TypeError("can't concat "+typeof n)}),Er=p(function(n,t){return nn(n,rr(n,[],t))}),kr=p(ur),Ar=p(er("dropWhile",pr,function(n,t){for(var r=0;r<t.length&&n(t[r]);)r+=1;return q(t,r)})),Nr=h(function(n){return cr("empty",n)?n.empty():[]}),Cr=p(function(n,t){return cr("equals",n)?n.equals(t):cr("equals",t)?t.equals(n):ir(n,t,[],[])}),Mr=p(er("filter",F,y)),Pr=p(er("find",D,function(n,t){for(var r=0;r<t.length;){if(n(t[r]))return t[r];r+=1}})),Tr=p(er("findIndex",z,function(n,t){for(var r=0;r<t.length;){if(n(t[r]))return r;r+=1}return-1})),Rr=p(er("findLast",V,function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return t[r];r-=1}})),Wr=p(er("findLastIndex",_,function(n,t){for(var r=t.length-1;r>=0;){if(n(t[r]))return r;r-=1}return-1})),qr=h(fr(!0)),Lr=p(function(n,t){return cr("forEach",t)?t.forEach(n):v(n,t)}),Ur=h(w(Tn)),Br=h(w(Rn)),Fr=p(er("groupBy",gr,function(n,t){return ar(function(t,r){var e=n(r);return t[e]=Yt(r,t[e]||(t[e]=[])),t},{},t)})),Dr=Jn(0),zr=g(function(n,t,r){return Er(Math.max(n.length,t.length,r.length),function(){return n.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})}),Vr=g(function(n,t,r){return n=n<r.length&&n>=0?n:r.length,f(Yt(t,q(r,0,n)),q(r,n))}),_r=g(function(n,t,r){for(var e=[],u=0;u<t.length;)a(n,t[u],r)&&(e[e.length]=t[u]),u+=1;return qt(n,e)}),Hr=p(Gt("intersperse",function(n,t){for(var r=[],e=0;e<t.length;)e===t.length-1?r.push(t[e]):r.push(t[e],n),e+=1;return r})),Xr=h(function(n){for(var t=Tn(n),r=0,e={};r<t.length;){var u=t[r],i=n[u],o=j(i,e)?e[i]:e[i]=[];o[o.length]=u,r+=1}return e}),Yr=h(function(n){for(var t=Tn(n),r=0,e={};r<t.length;){var u=t[r];e[n[u]]=u,r+=1}return e}),Zr=p(function(n,t){return Er(n+1,function(){var r=arguments[n];return r[t].apply(r,q(arguments,0,n))})}),$r=Zr(1,"join"),Gr=Jn(-1),Jr=function(n){return qn(Jn(n),function(t,r){return q(r,0,n).concat([t],q(r,n+1))})},Kr=function(n){return qn(ft(n),tn(n))},Qr=p(er("map",H,N)),ne=p(function(n,t){return ar(function(r,e){return r[e]=n(t[e]),r},{},Tn(t))}),te=p(function(n,t){return ar(function(r,e){return r[e]=n(t[e],e,t),r},{},Tn(t))}),re=Zr(1,"match"),ee=nr(b,-(1/0)),ue=p(function(n,t){return or(or({},n),t)}),ie=nr(A,1/0),oe=p(o(er("any",lr,e))),ce=p(function(n,t){return cr("or",n)?n.or(t):n||t}),fe=p(function(n,t){return ar(function(t,r){var e=t[n(r)?0:1];return e[e.length]=r,t},[[],[]],t)}),ae=g(function(n,t,r){return Cr(P(n,r),t)}),se=function(){return jr.apply(this,xt(arguments))},le=jr(Q(Or),Tt(xt)),he=function(){return Ir.apply(this,xt(arguments))},pe=g(function(n,t,r){return Cr(r[n],t)}),ge=g(ar),de=p(function(n,t){return Mr(o(n),t)}),ye=p(function(n,t){return At(J(n),t)}),me=g(Gt("slice",function(n,t,r){return Array.prototype.slice.call(r,n,t)})),ve=Zr(1,"split"),xe=me,we=xe(n,1/0),be=xe(0),je=ge(t,0),Oe=Gt("tail",function(n){return q(n,1)}),Ie=p(er("take",X,function(n,t){return me(0,0>n?1/0:n,t)})),Se=p(er("takeWhile",Y,function(n,t){for(var r=0;r<t.length&&n(t[r]);)r+=1;return q(t,0,r)})),Ee=Zr(0,"toLowerCase"),ke=Zr(0,"toUpperCase"),Ae=Er(4,function(n,t,r,e){return ar(n("function"==typeof t?Z(t):t),r,e)}),Ne=p(function(n,t){return Er(n,function(){for(var r,e=1,u=t,i=0;n>=e&&"function"==typeof u;)r=e===n?arguments.length:i+u.length,u=u.apply(this,q(arguments,i,r)),e+=1,i=r;return u})}),Ce=g(function(n,t,r){return qt(n,f(t,r))}),Me=h(fr(!1)),Pe=p(function(n,t){return Ft(ne(Cr,n),t)}),Te=p(function(n,t){return Er(n.length,function(){return t.apply(this,f([n],arguments))})}),Re=p(function(n,t){return Me(Qr(n,t))}),We=function(){var n=function(n){return{"@@transducer/init":B.init,"@@transducer/result":function(t){return n["@@transducer/result"](t)},"@@transducer/step":function(t,r){var e=n["@@transducer/step"](t,r);return e["@@transducer/reduced"]?x(e):e}}};return function(t){var r=n(t);return{"@@transducer/init":B.init,"@@transducer/result":function(n){return r["@@transducer/result"](n)},"@@transducer/step":function(n,t){return Cn(t)?ar(r,n,t):ar(r,n,[t])}}}}(),qe=function(n,t,r){var e=0;for("number"==typeof r&&(e=0>r?Math.max(0,n.length+r):r);e<n.length;){if(Cr(n[e],t))return e;e+=1}return-1},Le=function(n,t,r){var e;for(e="number"==typeof r?0>r?n.length+r:Math.min(n.length-1,r):n.length-1;e>=0;){if(Cr(n[e],t))return e;e-=1}return-1},Ue=function(n,t){return Qr(ft(n),t)},Be=function(n){return function(t){var r=function(){var r=arguments;return n(function(n){return n.apply(null,r)},t)};return arguments.length>1?r.apply(null,q(arguments,1)):nn(ee(Ue("length",t)),r)}},Fe=function(){var n={"@@transducer/init":Array,"@@transducer/step":function(n,t){return f(n,[t])},"@@transducer/result":O},r={"@@transducer/init":String,"@@transducer/step":t,"@@transducer/result":O},e={"@@transducer/init":Object,"@@transducer/step":function(n,t){return ue(n,Cn(t)?s(t[0],t[1]):t)},"@@transducer/result":O};return function(t){if(k(t))return t;if(Cn(t))return n;if("string"==typeof t)return r;if("object"==typeof t)return e;throw new Error("Cannot create transformer for "+t)}}(),De=function Fu(n,t){var r=function(r){var e=t.concat([n]);return qe(e,r)>=0?"<Circular>":Fu(r,e)};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+N(r,n).join(", ")+"))";case"[object Array]":return"["+N(r,n).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+r(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+R(L(n))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+r(n.valueOf())+")":1/n===-(1/0)?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+r(n.valueOf())+")":R(n);case"[object Undefined]":return"undefined";default:return"function"==typeof n.constructor&&"Object"!==n.constructor.name&&"function"==typeof n.toString&&"[object Object]"!==n.toString()?n.toString():"{"+N(function(t){return R(t)+": "+r(n[t])},Tn(n).sort()).join(", ")+"}"}},ze=p(function(n,t){return Qr(n,We(t))}),Ve=h(function(n){return Er(n.length,function(){var t=0,r=arguments[0],e=arguments[arguments.length-1],u=function(){var n=r.apply(this,f(arguments,[t,e]));return t+=1,n};return n.apply(this,T(u,q(arguments,1)))})}),_e=p(function(n,t){return cr("ap",n)?n.ap(t):ar(function(n,r){return f(n,Qr(r,t))},[],n)}),He=p(er("chain",ze,Re)),Xe=g(function(n,t,r){function e(t,r){return _e(Qr(vr,n(r)),t)}return ar(e,t([]),r)}),Ye=h(function(n){return Er(n.length,n)}),Ze=p(er("drop",hr,function(n,t){return me(Math.max(0,n),1/0,t)})),$e=p(er("dropRepeatsWith",U,function(n,t){var r=[],e=1;if(t.length>0)for(r[0]=t[0];e<t.length;)n(Gr(r),t[e])||(r[r.length]=t[e]),e+=1;return r})),Ge=g(function(n,t,r){return Cr(t[n],r[n])}),Je=h(function(n){return Ye(function(t,r){var e=q(arguments);return e[0]=r,e[1]=t,n.apply(this,e)})}),Ke=p(function(n,t){return cr("indexOf",t)?t.indexOf(n):qe(t,n)}),Qe=me(0,-1),nu=g(function(n,t,r){return k(n)?ar(t(n),n["@@transducer/init"](),r):ar(t(Fe(n)),n,r)}),tu=Ye(function(n,t,r){return r[n].apply(r,t)}),ru=h(function(n){for(var t=0;t<n.length;){if(qe(n,n[t],t+1)>=0)return!1;t+=1}return!0}),eu=p(function(n,t){return cr("lastIndexOf",t)?t.lastIndexOf(n):Le(t,n)}),uu=p(function(n,t){var r=Er(n,t);return Er(n,function(){return ar(_e,Qr(r,arguments[0]),q(arguments,1))})}),iu=h(function(n){return je(n)/n.length}),ou=h(function(n){if(0===n.length)return NaN;var t=2-n.length%2,r=(n.length-t)/2;return iu(q(n).sort(function(n,t){return t>n?-1:n>t?1:0}).slice(r,r+t))}),cu=h(function(n){return ge(ue,{},n)}),fu=p(function(n,t){var r={};for(var e in t)qe(n,e)<0&&(r[e]=t[e]);return r}),au=Ye(tr(f)),su=Ye(tr(Je(f))),lu=p(Ue),hu=ge(C,1),pu=h(function(n){return De(n,[])}),gu=Ye(function(n){var t=q(arguments,1);return Ye(nn(t.length,function(){for(var r=[],e=0;e<t.length;)r[e]=t[e](arguments[e]),e+=1;return n.apply(this,r.concat(q(arguments,t.length)))}))}),du=function(n,t){return qe(t,n)>=0},yu=Ye(Be(r)),mu=Ye(Be(e)),vu=Ye(function(n){return n.apply(this,q(arguments,1))}),xu=Xe(Qr(En)),wu=p(function(n,t){if(n>10)throw new Error("Constructor with greater than ten arguments");return 0===n?function(){return new t}:Ye(Zn(n,function(n,r,e,u,i,o,c,f,a,s){switch(arguments.length){case 1:return new t(n);case 2:return new t(n,r);case 3:return new t(n,r,e);case 4:return new t(n,r,e,u);case 5:return new t(n,r,e,u,i);case 6:return new t(n,r,e,u,i,o);case 7:return new t(n,r,e,u,i,o,c);case 8:return new t(n,r,e,u,i,o,c,f);case 9:return new t(n,r,e,u,i,o,c,f,a);case 10:return new t(n,r,e,u,i,o,c,f,a,s)}}))}),bu=p(du),ju=Er(3,function(n){var t=q(arguments,1);return Er(ee(lu("length",t)),function(){var r=arguments,e=this;return n.apply(e,N(function(n){return n.apply(e,r)},t))})}),Ou=p(function(n,t){for(var r=[],e=0;e<n.length;)du(n[e],t)||du(n[e],r)||(r[r.length]=n[e]),e+=1;return r}),Iu=h(er("dropRepeats",U(Cr),$e(Cr))),Su=h(function(n){return uu(n.length,n)}),Eu=h(function(n){
var t={};return function(){var r=pu(arguments);return j(r,t)||(t[r]=n.apply(this,arguments)),t[r]}}),ku=gu(N,it,En),Au=function(){function n(n){for(var t,r=new Set,e=0,u=n.length,i=[],o=[];u>e;)t=n[e],0===t||null!=t&&"function"==typeof t.equals?du(t,i)||(i.push(t),o.push(t)):r.size!==r.add(t).size&&o.push(t),e+=1;return o}return"function"!=typeof Set?qt(Cr):h(n)}(),Nu=h(function(n){return wu(n.length,n)}),Cu=p(function(n,t){return Au(y(Je(du)(n),t))}),Mu=p(jr(Au,f)),Pu={F:Ht,T:Xt,__:n,add:$,addIndex:Ve,adjust:G,all:dr,allPass:yu,always:J,and:yr,any:mr,anyPass:mu,ap:_e,aperture:K,append:vr,apply:Q,arity:nn,assoc:tn,assocPath:xr,binary:wr,bind:rn,both:en,call:vu,chain:He,clone:br,commute:xu,commuteMap:Xe,comparator:un,complement:on,compose:jr,composeL:Or,composeP:Ir,concat:Sr,cond:cn,construct:Nu,constructN:wu,contains:bu,containsWith:fn,converge:ju,countBy:an,createMapEntry:sn,curry:Ye,curryN:Er,dec:ln,defaultTo:hn,difference:Ou,differenceWith:pn,dissoc:gn,dissocPath:kr,divide:dn,drop:Ze,dropRepeats:Iu,dropRepeatsWith:$e,dropWhile:Ar,either:yn,empty:Nr,eqProps:Ge,equals:Cr,evolve:mn,filter:Mr,filterIndexed:vn,find:Pr,findIndex:Tr,findLast:Rr,findLastIndex:Wr,flatten:qr,flip:Je,forEach:Lr,forEachIndexed:xn,fromPairs:wn,functions:Ur,functionsIn:Br,groupBy:Fr,gt:bn,gte:jn,has:On,hasIn:In,head:Dr,identical:Sn,identity:En,ifElse:zr,inc:kn,indexOf:Ke,init:Qe,insert:Vr,insertAll:An,intersection:Cu,intersectionWith:_r,intersperse:Hr,into:nu,invert:Xr,invertObj:Yr,invoke:tu,invoker:Zr,is:Nn,isArrayLike:Cn,isEmpty:Mn,isNil:Pn,isSet:ru,join:$r,keys:Tn,keysIn:Rn,last:Gr,lastIndexOf:eu,length:Wn,lens:qn,lensIndex:Jr,lensOn:Ln,lensProp:Kr,lift:Su,liftN:uu,lt:Un,lte:Bn,map:Qr,mapAccum:Fn,mapAccumRight:Dn,mapIndexed:zn,mapObj:ne,mapObjIndexed:te,match:re,mathMod:Vn,max:ee,maxBy:_n,mean:iu,median:ou,memoize:Eu,merge:ue,mergeAll:cu,min:ie,minBy:Hn,modulo:Xn,multiply:Yn,nAry:Zn,negate:$n,none:oe,not:Gn,nth:Jn,nthArg:Kn,nthChar:Qn,nthCharCode:nt,of:tt,omit:fu,once:rt,or:ce,partial:au,partialRight:su,partition:fe,path:et,pathEq:ae,pick:ut,pickAll:it,pickBy:ot,pipe:se,pipeL:le,pipeP:he,pluck:lu,prepend:ct,product:hu,project:ku,prop:ft,propEq:pe,propOr:at,props:st,range:lt,reduce:ge,reduceIndexed:ht,reduceRight:pt,reduceRightIndexed:gt,reduced:dt,reject:de,rejectIndexed:yt,remove:mt,repeat:ye,replace:vt,reverse:xt,scan:wt,slice:me,sort:bt,sortBy:jt,split:ve,strIndexOf:Ot,strLastIndexOf:It,substring:xe,substringFrom:we,substringTo:be,subtract:St,sum:je,tail:Oe,take:Ie,takeWhile:Se,tap:Et,test:kt,times:At,toLower:Ee,toPairs:Nt,toPairsIn:Ct,toString:pu,toUpper:ke,transduce:Ae,trim:Mt,type:Pt,unapply:Tt,unary:Rt,uncurryN:Ne,unfold:Wt,union:Mu,unionWith:Ce,uniq:Au,uniqWith:qt,unnest:Me,update:Lt,useWith:gu,values:Ut,valuesIn:Bt,where:Ft,whereEq:Pe,wrap:Te,xprod:Dt,zip:zt,zipObj:Vt,zipWith:_t};"object"==typeof exports?module.exports=Pu:"function"==typeof define&&define.amd?define(function(){return Pu}):this.R=Pu}).call(this);

@@ -27,3 +27,3 @@ {

"description": "A practical functional library for JavaScript programmers.",
"version": "0.14.0",
"version": "0.15.0",
"homepage": "https://www.github.com/ramda/ramda",

@@ -37,4 +37,12 @@ "license": "MIT",

"scripts": {
"jshint": "grunt jshint",
"test": "grunt jshint && grunt jscs && grunt browserify:client && grunt mochaTest:unit"
"bench": "scripts/benchRunner",
"browserify": "node_modules/browserify/bin/cmd.js test/*.js --outfile lib/test/bundle.js",
"bookmarklet": "scripts/bookmarklet",
"build": "make && make dist/ramda.min.js",
"clean": "rimraf dist/*",
"jscs": "jscs scripts/bookmarklet scripts/build **/*.js **/**/*.js",
"jshint": "jshint scripts/bookmarklet scripts/build **/*.js **/**/*.js",
"pretest": "npm run jshint && npm run jscs && npm run clean && npm run build",
"test": "node scripts/testfiles | node_modules/.bin/mocha --reporter spec",
"posttest": "git checkout -- dist"
},

@@ -45,2 +53,4 @@ "dependencies": {},

"benchmark": "~1.0.0",
"browserify": "10.x.x",
"cli-table": "0.3.x",
"commander": "2.5.x",

@@ -50,30 +60,11 @@ "dox": "latest",

"escodegen": "1.4.x",
"gh-pages": "^0.2.0",
"grunt": "~0.4.5",
"grunt-benchmark": "https://github.com/buzzdecafe/grunt-benchmark/archive/09999a8c3fbfff04a1695846c1ccd0bd8a0ef5ab.tar.gz",
"grunt-browserify": "3.2.1",
"grunt-cli": "~0.1.13",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-connect": "^0.8.0",
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-less": "^1.0.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-docco": "latest",
"grunt-express": "^1.4.1",
"grunt-jscs": "1.5.x",
"grunt-jsdoc": "^0.6.1",
"grunt-mocha": "~0.4.11",
"grunt-mocha-test": "~0.11.0",
"grunt-open": "^0.2.3",
"grunt-saucelabs": "^8.3.1",
"handlebars": "^2.0.0",
"highlight.js": "^8.4.0",
"handlebars": "3.0.x",
"js-yaml": "^3.2.5",
"jscs": "1.13.x",
"jshint": "2.7.x",
"lodash": "latest",
"marked": "^0.3.2",
"mocha": "2.x.x",
"orchestrate": "~0.3.4",
"q": "^1.1.1",
"ramda": "0.13.0",
"rimraf": "~2.3.2",
"testem": "^0.6.18",

@@ -80,0 +71,0 @@ "uglify-js": "2.4.x",

@@ -96,3 +96,3 @@ Ramda

```html
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.14.0/ramda.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.15.0/ramda.min.js"></script>
```

@@ -103,4 +103,4 @@

```html
<script src="//cdn.jsdelivr.net/ramda/0.14.0/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/ramda/0.14/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/ramda/0.15.0/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/ramda/0.15/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/ramda/latest/ramda.min.js"></script>

@@ -113,10 +113,11 @@ ```

Or you can inject ramda into virtually any unsuspecting web site using this bookmarklet:
Or you can inject ramda into virtually any unsuspecting website using [the bookmarklet](BOOKMARKLET.md).
```javascript
javascript:(function(){var el=document.createElement('div'),b=document.getElementsByTagName('body')[0];msg='';el.style.position='fixed';el.style.height='32px';el.style.width='220px';el.style.marginLeft='-110px';el.style.top='0';el.style.left='50%';el.style.padding='5px 10px';el.style.zIndex=1001;el.style.fontSize='12px';el.style.color='#222';el.style.backgroundColor='#f99';if(typeof ramda!='undefined'){msg='This page already using ramda v'+ramda.version;return showMsg()}function getScript(url,success){var script=document.createElement('script');script.src=url;var head=document.getElementsByTagName('head')[0],done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=='loaded'||this.readyState=='complete')){done=true;success();script.onload=script.onreadystatechange=null;head.removeChild(script)}};head.appendChild(script)}getScript('http://cdn.jsdelivr.net/ramda/latest/ramda.min.js',function(){if(typeof ramda=='undefined'){msg='Sorry, but Ramda wasn\'t able to load'}else{msg='This page is now Ramda-fied with v'+ramda.version}return showMsg()});function showMsg(){el.innerHTML=msg;b.appendChild(el);window.setTimeout(function(){if(typeof jQuery=='undefined'){b.removeChild(el)}else{jQuery(el).fadeOut('slow',function(){jQuery(this).remove()})}},2500)}})();
```
### Build
### Partial Builds
* on Unix-based platforms, `npm run build` updates __dist/ramda.js__ and __dist/ramda.min.js__
* on Windows, write the output of `scripts/build --complete` to a temporary file, then rename the temporary file __dist/ramda.js__.
#### Partial Builds
It is possible to build Ramda with a subset of the functionality to reduce its file size. Ramda's build system supports this with command line flags. For example if you're using `R.compose`, `R.reduce`, and `R.filter` you can create a partial build with:

@@ -123,0 +124,0 @@

@@ -25,2 +25,2 @@ /**

*/
module.exports = {ramda: 'placeholder'};
module.exports = {'@@functional/placeholder': true};

@@ -8,2 +8,3 @@ var _concat = require('./internal/_concat');

* index replaced with the result of the function application.
* @see R.update
*

@@ -10,0 +11,0 @@ * @func

@@ -22,9 +22,10 @@ var _curry2 = require('./internal/_curry2');

module.exports = _curry2(function aperture(n, list) {
var idx = -1;
var idx = 0;
var limit = list.length - (n - 1);
var acc = new Array(limit >= 0 ? limit : 0);
while (++idx < limit) {
while (idx < limit) {
acc[idx] = _slice(list, idx, idx + n);
idx += 1;
}
return acc;
});

@@ -17,2 +17,3 @@ var _curry2 = require('./internal/_curry2');

* guaranteed to be of arity `n`.
* @deprecated since v0.15.0
* @example

@@ -32,16 +33,17 @@ *

module.exports = _curry2(function(n, fn) {
// jshint unused:vars
switch (n) {
case 0: return function() {return fn.apply(this, arguments);};
case 1: return function(a0) {void a0; return fn.apply(this, arguments);};
case 2: return function(a0, a1) {void a1; return fn.apply(this, arguments);};
case 3: return function(a0, a1, a2) {void a2; return fn.apply(this, arguments);};
case 4: return function(a0, a1, a2, a3) {void a3; return fn.apply(this, arguments);};
case 5: return function(a0, a1, a2, a3, a4) {void a4; return fn.apply(this, arguments);};
case 6: return function(a0, a1, a2, a3, a4, a5) {void a5; return fn.apply(this, arguments);};
case 7: return function(a0, a1, a2, a3, a4, a5, a6) {void a6; return fn.apply(this, arguments);};
case 8: return function(a0, a1, a2, a3, a4, a5, a6, a7) {void a7; return fn.apply(this, arguments);};
case 9: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) {void a8; return fn.apply(this, arguments);};
case 10: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {void a9; return fn.apply(this, arguments);};
case 1: return function(a0) {return fn.apply(this, arguments);};
case 2: return function(a0, a1) {return fn.apply(this, arguments);};
case 3: return function(a0, a1, a2) {return fn.apply(this, arguments);};
case 4: return function(a0, a1, a2, a3) {return fn.apply(this, arguments);};
case 5: return function(a0, a1, a2, a3, a4) {return fn.apply(this, arguments);};
case 6: return function(a0, a1, a2, a3, a4, a5) {return fn.apply(this, arguments);};
case 7: return function(a0, a1, a2, a3, a4, a5, a6) {return fn.apply(this, arguments);};
case 8: return function(a0, a1, a2, a3, a4, a5, a6, a7) {return fn.apply(this, arguments);};
case 9: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) {return fn.apply(this, arguments);};
case 10: return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {return fn.apply(this, arguments);};
default: throw new Error('First argument to arity must be a non-negative integer no greater than ten');
}
});

@@ -1,7 +0,6 @@

var _checkForMethod = require('./internal/_checkForMethod');
var _chain = require('./internal/_chain');
var _curry2 = require('./internal/_curry2');
var _map = require('./internal/_map');
var unnest = require('./unnest');
var _dispatchable = require('./internal/_dispatchable');
var _xchain = require('./internal/_xchain');
/**

@@ -27,4 +26,2 @@ * `chain` maps a function over a list and concatenates the results.

*/
module.exports = _curry2(_checkForMethod('chain', function chain(f, list) {
return unnest(_map(f, list));
}));
module.exports = _curry2(_dispatchable('chain', _xchain, _chain));

@@ -31,8 +31,9 @@ var _composeL = require('./internal/_composeL');

module.exports = function() {
var idx = arguments.length - 1;
var fn = arguments[idx];
while (--idx >= 0) {
var fn = arguments[arguments.length - 1];
var idx = arguments.length - 2;
while (idx >= 0) {
fn = _composeL(arguments[idx], fn);
idx -= 1;
}
return fn;
};

@@ -18,5 +18,5 @@ /**

* var fn = R.cond(
* [R.eq(0), R.always('water freezes at 0°C')],
* [R.eq(100), R.always('water boils at 100°C')],
* [R.T, function(temp) { return 'nothing special happens at ' + temp + '°C'; }]
* [R.equals(0), R.always('water freezes at 0°C')],
* [R.equals(100), R.always('water boils at 100°C')],
* [R.T, function(temp) { return 'nothing special happens at ' + temp + '°C'; }]
* );

@@ -30,9 +30,10 @@ * fn(0); //=> 'water freezes at 0°C'

return function() {
var idx = -1;
while (++idx < pairs.length) {
var idx = 0;
while (idx < pairs.length) {
if (pairs[idx][0].apply(this, arguments)) {
return pairs[idx][1].apply(this, arguments);
}
idx += 1;
}
};
};

@@ -24,5 +24,5 @@ var _curry1 = require('./internal/_curry1');

* };
* var allConfigs = {
* var allConfigs = [
* // ...
* };
* ];
* R.map(R.construct(Widget), allConfigs); // a list of Widgets

@@ -29,0 +29,0 @@ */

@@ -28,5 +28,5 @@ var _curry2 = require('./internal/_curry2');

* };
* var allConfigs = {
* var allConfigs = [
* // ...
* };
* ];
* R.map(R.constructN(1, Widget), allConfigs); // a list of Widgets

@@ -33,0 +33,0 @@ */

@@ -6,8 +6,5 @@ var _contains = require('./internal/_contains');

/**
* Returns `true` if the specified item is somewhere in the list, `false` otherwise.
* Equivalent to `indexOf(a, list) >= 0`.
* Returns `true` if the specified value is equal, in `R.equals` terms,
* to at least one element of the given list; `false` otherwise.
*
* Has `Object.is` semantics: `NaN` is considered equal to `NaN`; `0` and `-0`
* are not considered equal.
*
* @func

@@ -23,8 +20,6 @@ * @memberOf R

*
* R.contains(3)([1, 2, 3]); //=> true
* R.contains(4)([1, 2, 3]); //=> false
* R.contains({})([{}, {}]); //=> false
* var obj = {};
* R.contains(obj)([{}, obj, {}]); //=> true
* R.contains(3, [1, 2, 3]); //=> true
* R.contains(4, [1, 2, 3]); //=> false
* R.contains([42], [[42]]); //=> true
*/
module.exports = _curry2(_contains);

@@ -28,9 +28,9 @@ var _curry2 = require('./internal/_curry2');

var counts = {};
var len = list.length;
var idx = -1;
while (++idx < len) {
var idx = 0;
while (idx < list.length) {
var key = fn(list[idx]);
counts[key] = (_has(key, counts) ? counts[key] : 0) + 1;
idx += 1;
}
return counts;
});

@@ -1,4 +0,3 @@

var __ = require('./__');
var _curry2 = require('./internal/_curry2');
var _slice = require('./internal/_slice');
var _curryN = require('./internal/_curryN');
var arity = require('./arity');

@@ -51,27 +50,3 @@

module.exports = _curry2(function curryN(length, fn) {
return arity(length, function() {
var n = arguments.length;
var shortfall = length - n;
var idx = n;
while (--idx >= 0) {
if (arguments[idx] === __) {
shortfall += 1;
}
}
if (shortfall <= 0) {
return fn.apply(this, arguments);
} else {
var initialArgs = _slice(arguments);
return curryN(shortfall, function() {
var currentArgs = _slice(arguments);
var combinedArgs = [];
var idx = -1;
while (++idx < n) {
var val = initialArgs[idx];
combinedArgs[idx] = (val === __ ? currentArgs.shift() : val);
}
return fn.apply(this, combinedArgs.concat(currentArgs));
});
}
});
return arity(length, _curryN(length, [], fn));
});

@@ -23,10 +23,10 @@ var _contains = require('./internal/_contains');

var out = [];
var idx = -1;
var firstLen = first.length;
while (++idx < firstLen) {
var idx = 0;
while (idx < first.length) {
if (!_contains(first[idx], second) && !_contains(first[idx], out)) {
out[out.length] = first[idx];
}
idx += 1;
}
return out;
});

@@ -28,11 +28,11 @@ var _curry3 = require('./internal/_curry3');

var out = [];
var idx = -1;
var firstLen = first.length;
var idx = 0;
var containsPred = containsWith(pred);
while (++idx < firstLen) {
while (idx < first.length) {
if (!containsPred(first[idx], second) && !containsPred(first[idx], out)) {
out[out.length] = first[idx];
}
idx += 1;
}
return out;
});
var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _slice = require('./internal/_slice');
var _xdrop = require('./internal/_xdrop');
var slice = require('./slice');

@@ -17,5 +17,5 @@

* @sig Number -> [a] -> [a]
* @param {Number} n The number of elements of `list` to skip.
* @param {Array} list The array to consider.
* @return {Array} The last `n` elements of `list`.
* @param {Number} n The number of elements of `xs` to skip.
* @param {Array} xs The collection to consider.
* @return {Array}
* @example

@@ -25,4 +25,4 @@ *

*/
module.exports = _curry2(_dispatchable('drop', _xdrop, function drop(n, list) {
return n <= 0 ? list : _slice(list, n);
module.exports = _curry2(_dispatchable('drop', _xdrop, function drop(n, xs) {
return slice(Math.max(0, n), Infinity, xs);
}));
var _curry1 = require('./internal/_curry1');
var _dispatchable = require('./internal/_dispatchable');
var _eq = require('./internal/_eq');
var _xdropRepeatsWith = require('./internal/_xdropRepeatsWith');
var dropRepeatsWith = require('./dropRepeatsWith');
var equals = require('./equals');

@@ -10,2 +10,3 @@

* Returns a new list without any consecutively repeating elements.
* `R.equals` is used to determine equality.
*

@@ -25,2 +26,2 @@ * Acts as a transducer if a transformer is given in list position.

*/
module.exports = _curry1(_dispatchable('dropRepeats', _xdropRepeatsWith(_eq), dropRepeatsWith(_eq)));
module.exports = _curry1(_dispatchable('dropRepeats', _xdropRepeatsWith(equals), dropRepeatsWith(equals)));

@@ -30,10 +30,10 @@ var _curry2 = require('./internal/_curry2');

var result = [];
var idx = 0;
var len = list.length;
if (len !== 0) {
var idx = 1;
if (list.length > 0) {
result[0] = list[0];
while (++idx < len) {
while (idx < list.length) {
if (!pred(last(result), list[idx])) {
result[result.length] = list[idx];
}
idx += 1;
}

@@ -40,0 +40,0 @@ }

@@ -28,8 +28,10 @@ var _curry2 = require('./internal/_curry2');

*
* R.dropWhile(lteTwo, [1, 2, 3, 4]); //=> [3, 4]
* R.dropWhile(lteTwo, [1, 2, 3, 4, 3, 2, 1]); //=> [3, 4, 3, 2, 1]
*/
module.exports = _curry2(_dispatchable('dropWhile', _xdropWhile, function dropWhile(pred, list) {
var idx = -1, len = list.length;
while (++idx < len && pred(list[idx])) {}
var idx = 0;
while (idx < list.length && pred(list[idx])) {
idx += 1;
}
return _slice(list, idx);
}));

@@ -6,4 +6,5 @@ var _curry1 = require('./internal/_curry1');

/**
* `empty` wraps any object in an array. This implementation is compatible with the
* Fantasy-land Monoid spec, and will work with types that implement that spec.
* `empty` returns an empty list for any argument, except when the argument satisfies the
* Fantasy-land Monoid spec. In that case, this function will return the result of invoking
* `empty` on that Monoid.
*

@@ -10,0 +11,0 @@ * @func

var _curry3 = require('./internal/_curry3');
var _eq = require('./internal/_eq');
var equals = require('./equals');
/**
* Reports whether two objects have the same value for the specified property. Useful as a curried predicate.
* Reports whether two objects have the same value, in `R.equals` terms,
* for the specified property. Useful as a curried predicate.
*
* Has `Object.is` semantics: `NaN` is considered equal to `NaN`; `0` and `-0`
* are not considered equal.
*
* @func

@@ -28,3 +26,3 @@ * @memberOf R

module.exports = _curry3(function eqProps(prop, obj1, obj2) {
return _eq(obj1[prop], obj2[prop]);
return equals(obj1[prop], obj2[prop]);
});
var _curry2 = require('./internal/_curry2');
var _extend = require('./internal/_extend');
var mapObjIndexed = require('./mapObjIndexed');
/**
* Creates a new object by evolving a shallow copy of `object`, according to the
* `transformation` functions. All non-primitive properties are copied by reference.
* Creates a new object by recursively evolving a shallow copy of `object`, according to the
* `transformation` functions. All non-primitive properties are copied by reference.
*
* A `tranformation` function will not be invoked if its corresponding key does not exist in
* the evolved object.
*
* @func

@@ -20,8 +21,20 @@ * @memberOf R

*
* R.evolve({ elapsed: R.add(1), remaining: R.add(-1) }, { name: 'Tomato', elapsed: 100, remaining: 1400 }); //=> { name: 'Tomato', elapsed: 101, remaining: 1399 }
* var tomato = {firstName: ' Tomato ', elapsed: 100, remaining: 1400};
* var transformations = {
* firstName: R.trim,
* lastName: R.trim, // Will not get invoked.
* data: {elapsed: R.add(1), remaining: R.add(-1)}
* };
* R.evolve(transformations, tomato); //=> {firstName: 'Tomato', data: {elapsed: 101, remaining: 1399}}
*/
module.exports = _curry2(function evolve(transformations, object) {
return _extend(_extend({}, object), mapObjIndexed(function(fn, key) {
return fn(object[key]);
}, transformations));
var transformation, key, type, result = {};
for (key in object) {
transformation = transformations[key];
type = typeof transformation;
result[key] = type === 'function' ? transformation(object[key])
: type === 'object' ? evolve(transformations[key], object[key])
: object[key];
}
return result;
});

@@ -16,2 +16,4 @@ var _curry2 = require('./internal/_curry2');

* @return {Array} The new filtered array.
* @deprecated since v0.15.0
* @see R.addIndex
* @example

@@ -18,0 +20,0 @@ *

@@ -28,9 +28,9 @@ var _curry2 = require('./internal/_curry2');

module.exports = _curry2(_dispatchable('find', _xfind, function find(fn, list) {
var idx = -1;
var len = list.length;
while (++idx < len) {
var idx = 0;
while (idx < list.length) {
if (fn(list[idx])) {
return list[idx];
}
idx += 1;
}
}));

@@ -28,10 +28,10 @@ var _curry2 = require('./internal/_curry2');

module.exports = _curry2(_dispatchable('findIndex', _xfindIndex, function findIndex(fn, list) {
var idx = -1;
var len = list.length;
while (++idx < len) {
var idx = 0;
while (idx < list.length) {
if (fn(list[idx])) {
return idx;
}
idx += 1;
}
return -1;
}));

@@ -28,8 +28,9 @@ var _curry2 = require('./internal/_curry2');

module.exports = _curry2(_dispatchable('findLast', _xfindLast, function findLast(fn, list) {
var idx = list.length;
while (--idx >= 0) {
var idx = list.length - 1;
while (idx >= 0) {
if (fn(list[idx])) {
return list[idx];
}
idx -= 1;
}
}));

@@ -28,9 +28,10 @@ var _curry2 = require('./internal/_curry2');

module.exports = _curry2(_dispatchable('findLastIndex', _xfindLastIndex, function findLastIndex(fn, list) {
var idx = list.length;
while (--idx >= 0) {
var idx = list.length - 1;
while (idx >= 0) {
if (fn(list[idx])) {
return idx;
}
idx -= 1;
}
return -1;
}));
var _curry2 = require('./internal/_curry2');
var _forEach = require('./internal/_forEach');
var _hasMethod = require('./internal/_hasMethod');

@@ -33,2 +34,4 @@

*/
module.exports = _curry2(_forEach);
module.exports = _curry2(function forEach(fn, list) {
return _hasMethod('forEach', list) ? list.forEach(fn) : _forEach(fn, list);
});

@@ -25,2 +25,4 @@ var _curry2 = require('./internal/_curry2');

* @return {Array} The original list.
* @deprecated since v0.15.0
* @see R.addIndex
* @example

@@ -34,5 +36,6 @@ *

module.exports = _curry2(function forEachIndexed(fn, list) {
var idx = -1, len = list.length;
while (++idx < len) {
var idx = 0;
while (idx < list.length) {
fn(list[idx], idx, list);
idx += 1;
}

@@ -39,0 +42,0 @@ // i can't bear not to return *something*

@@ -19,9 +19,10 @@ var _curry1 = require('./internal/_curry1');

module.exports = _curry1(function fromPairs(pairs) {
var idx = -1, len = pairs.length, out = {};
while (++idx < len) {
var idx = 0, out = {};
while (idx < pairs.length) {
if (_isArray(pairs[idx]) && pairs[idx].length) {
out[pairs[idx][0]] = pairs[idx][1];
}
idx += 1;
}
return out;
});
var _curry2 = require('./internal/_curry2');
var _hasMethod = require('./internal/_hasMethod');
var _indexOf = require('./internal/_indexOf');

@@ -7,7 +8,5 @@

* Returns the position of the first occurrence of an item in an array,
* or -1 if the item is not included in the array.
* or -1 if the item is not included in the array. `R.equals` is used to
* determine equality.
*
* Has `Object.is` semantics: `NaN` is considered equal to `NaN`; `0` and `-0`
* are not considered equal.
*
* @func

@@ -18,3 +17,3 @@ * @memberOf R

* @param {*} target The item to find.
* @param {Array} list The array to search in.
* @param {Array} xs The array to search in.
* @return {Number} the index of the target, or -1 if the target is not found.

@@ -27,4 +26,4 @@ *

*/
module.exports = _curry2(function indexOf(target, list) {
return _indexOf(list, target);
module.exports = _curry2(function indexOf(target, xs) {
return _hasMethod('indexOf', xs) ? xs.indexOf(target) : _indexOf(xs, target);
});
module.exports = function _all(fn, list) {
var idx = -1;
while (++idx < list.length) {
var idx = 0;
while (idx < list.length) {
if (!fn(list[idx])) {
return false;
}
idx += 1;
}
return true;
};
module.exports = function _any(fn, list) {
var idx = -1;
while (++idx < list.length) {
var idx = 0;
while (idx < list.length) {
if (fn(list[idx])) {
return true;
}
idx += 1;
}
return false;
};

@@ -16,8 +16,8 @@ var _cloneRegExp = require('./_cloneRegExp');

var copy = function copy(copiedValue) {
var len = refFrom.length;
var idx = -1;
while (++idx < len) {
var idx = 0;
while (idx < refFrom.length) {
if (value === refFrom[idx]) {
return refTo[idx];
}
idx += 1;
}

@@ -24,0 +24,0 @@ refFrom[idx + 1] = value;

@@ -17,11 +17,10 @@ var _isArray = require('./_isArray');

return function() {
var length = arguments.length;
if (length === 0) {
if (arguments.length === 0) {
return fn();
}
var obj = arguments[length - 1];
var obj = arguments[arguments.length - 1];
return (_isArray(obj) || typeof obj[methodname] !== 'function') ?
fn.apply(this, arguments) :
obj[methodname].apply(obj, _slice(arguments, 0, length - 1));
obj[methodname].apply(obj, _slice(arguments, 0, arguments.length - 1));
};
};

@@ -16,15 +16,15 @@ /**

var idx;
var len1 = set1.length;
var len2 = set2.length;
var result = [];
idx = -1;
while (++idx < len1) {
idx = 0;
while (idx < set1.length) {
result[result.length] = set1[idx];
idx += 1;
}
idx = -1;
while (++idx < len2) {
idx = 0;
while (idx < set2.length) {
result[result.length] = set2[idx];
idx += 1;
}
return result;
};
module.exports = function _containsWith(pred, x, list) {
var idx = -1, len = list.length;
while (++idx < len) {
var idx = 0;
while (idx < list.length) {
if (pred(x, list[idx])) {
return true;
}
idx += 1;
}
return false;
};

@@ -10,7 +10,8 @@ var arity = require('../arity');

return function() {
var idx = arguments.length - 1;
var fn = arguments[idx];
var fn = arguments[arguments.length - 1];
var length = fn.length;
while (--idx >= 0) {
var idx = arguments.length - 2;
while (idx >= 0) {
fn = composeFunction(arguments[idx], fn);
idx -= 1;
}

@@ -17,0 +18,0 @@ return arity(length, fn);

@@ -17,4 +17,4 @@ var _curry1 = require('./_curry1');

return _curry1(function(list) {
var idx = -1, winner = initialVal, computed;
while (++idx < list.length) {
var idx = 0, winner = initialVal, computed;
while (idx < list.length) {
computed = +list[idx];

@@ -24,2 +24,3 @@ if (comparator(computed, winner)) {

}
idx += 1;
}

@@ -26,0 +27,0 @@ return winner;

@@ -16,7 +16,7 @@ /**

}
var idx = 0;
var idx = 1;
var winner = list[idx];
var computedWinner = valueComputer(winner);
var computedCurrent;
while (++idx < list.length) {
while (idx < list.length) {
computedCurrent = valueComputer(list[idx]);

@@ -27,2 +27,3 @@ if (comparator(computedCurrent, computedWinner)) {

}
idx += 1;
}

@@ -29,0 +30,0 @@ return winner;

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

var __ = require('../__');
/**

@@ -16,3 +13,3 @@ * Optimized internal two-arity curry function.

return f1;
} else if (a === __) {
} else if (a != null && a['@@functional/placeholder'] === true) {
return f1;

@@ -19,0 +16,0 @@ } else {

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

var __ = require('../__');
var _curry1 = require('./_curry1');

@@ -18,11 +17,12 @@

return f2;
} else if (n === 1 && a === __) {
} else if (n === 1 && a != null && a['@@functional/placeholder'] === true) {
return f2;
} else if (n === 1) {
return _curry1(function(b) { return fn(a, b); });
} else if (n === 2 && a === __ && b === __) {
} else if (n === 2 && a != null && a['@@functional/placeholder'] === true &&
b != null && b['@@functional/placeholder'] === true) {
return f2;
} else if (n === 2 && a === __) {
} else if (n === 2 && a != null && a['@@functional/placeholder'] === true) {
return _curry1(function(a) { return fn(a, b); });
} else if (n === 2 && b === __) {
} else if (n === 2 && b != null && b['@@functional/placeholder'] === true) {
return _curry1(function(b) { return fn(a, b); });

@@ -29,0 +29,0 @@ } else {

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

var __ = require('../__');
var _curry1 = require('./_curry1');

@@ -19,27 +18,33 @@ var _curry2 = require('./_curry2');

return f3;
} else if (n === 1 && a === __) {
} else if (n === 1 && a != null && a['@@functional/placeholder'] === true) {
return f3;
} else if (n === 1) {
return _curry2(function(b, c) { return fn(a, b, c); });
} else if (n === 2 && a === __ && b === __) {
} else if (n === 2 && a != null && a['@@functional/placeholder'] === true &&
b != null && b['@@functional/placeholder'] === true) {
return f3;
} else if (n === 2 && a === __) {
} else if (n === 2 && a != null && a['@@functional/placeholder'] === true) {
return _curry2(function(a, c) { return fn(a, b, c); });
} else if (n === 2 && b === __) {
} else if (n === 2 && b != null && b['@@functional/placeholder'] === true) {
return _curry2(function(b, c) { return fn(a, b, c); });
} else if (n === 2) {
return _curry1(function(c) { return fn(a, b, c); });
} else if (n === 3 && a === __ && b === __ && c === __) {
} else if (n === 3 && a != null && a['@@functional/placeholder'] === true &&
b != null && b['@@functional/placeholder'] === true &&
c != null && c['@@functional/placeholder'] === true) {
return f3;
} else if (n === 3 && a === __ && b === __) {
} else if (n === 3 && a != null && a['@@functional/placeholder'] === true &&
b != null && b['@@functional/placeholder'] === true) {
return _curry2(function(a, b) { return fn(a, b, c); });
} else if (n === 3 && a === __ && c === __) {
} else if (n === 3 && a != null && a['@@functional/placeholder'] === true &&
c != null && c['@@functional/placeholder'] === true) {
return _curry2(function(a, c) { return fn(a, b, c); });
} else if (n === 3 && b === __ && c === __) {
} else if (n === 3 && b != null && b['@@functional/placeholder'] === true &&
c != null && c['@@functional/placeholder'] === true) {
return _curry2(function(b, c) { return fn(a, b, c); });
} else if (n === 3 && a === __) {
} else if (n === 3 && a != null && a['@@functional/placeholder'] === true) {
return _curry1(function(a) { return fn(a, b, c); });
} else if (n === 3 && b === __) {
} else if (n === 3 && b != null && b['@@functional/placeholder'] === true) {
return _curry1(function(b) { return fn(a, b, c); });
} else if (n === 3 && c === __) {
} else if (n === 3 && c != null && c['@@functional/placeholder'] === true) {
return _curry1(function(c) { return fn(a, b, c); });

@@ -46,0 +51,0 @@ } else {

@@ -22,9 +22,8 @@ var _isArray = require('./_isArray');

return function() {
var length = arguments.length;
if (length === 0) {
if (arguments.length === 0) {
return fn();
}
var obj = arguments[length - 1];
var obj = arguments[arguments.length - 1];
if (!_isArray(obj)) {
var args = _slice(arguments, 0, length - 1);
var args = _slice(arguments, 0, arguments.length - 1);
if (typeof obj[methodname] === 'function') {

@@ -31,0 +30,0 @@ return obj[methodname].apply(obj, args);

@@ -21,7 +21,8 @@ var keys = require('../keys');

var props = keys(other);
var idx = -1, length = props.length;
while (++idx < length) {
var idx = 0;
while (idx < props.length) {
destination[props[idx]] = other[props[idx]];
idx += 1;
}
return destination;
};
module.exports = function _filter(fn, list) {
var idx = -1, len = list.length, result = [];
while (++idx < len) {
var idx = 0, result = [];
while (idx < list.length) {
if (fn(list[idx])) {
result[result.length] = list[idx];
}
idx += 1;
}
return result;
};
module.exports = function _filterIndexed(fn, list) {
var idx = -1, len = list.length, result = [];
while (++idx < len) {
var idx = 0, result = [];
while (idx < list.length) {
if (fn(list[idx], idx, list)) {
result[result.length] = list[idx];
}
idx += 1;
}
return result;
};
module.exports = function _forEach(fn, list) {
var idx = -1, len = list.length;
while (++idx < len) {
var idx = 0;
while (idx < list.length) {
fn(list[idx]);
idx += 1;
}

@@ -6,0 +7,0 @@ // i can't bear not to return *something*

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

var _eq = require('./_eq');
var equals = require('../equals');
module.exports = function _indexOf(list, item, from) {
var idx = 0, len = list.length;
if (typeof from == 'number') {
idx = from < 0 ? Math.max(0, len + from) : from;
var idx = 0;
if (typeof from === 'number') {
idx = from < 0 ? Math.max(0, list.length + from) : from;
}
while (idx < len) {
if (_eq(list[idx], item)) {
while (idx < list.length) {
if (equals(list[idx], item)) {
return idx;
}
++idx;
idx += 1;
}
return -1;
};

@@ -1,15 +0,18 @@

var _eq = require('./_eq');
var equals = require('../equals');
module.exports = function _lastIndexOf(list, item, from) {
var idx = list.length;
if (typeof from == 'number') {
idx = from < 0 ? idx + from + 1 : Math.min(idx, from + 1);
var idx;
if (typeof from === 'number') {
idx = from < 0 ? list.length + from : Math.min(list.length - 1, from);
} else {
idx = list.length - 1;
}
while (--idx >= 0) {
if (_eq(list[idx], item)) {
while (idx >= 0) {
if (equals(list[idx], item)) {
return idx;
}
idx -= 1;
}
return -1;
};

@@ -12,10 +12,10 @@ var isArrayLike = require('../isArrayLike');

return function flatt(list) {
var value, result = [], idx = -1, j, ilen = list.length, jlen;
while (++idx < ilen) {
var value, result = [], idx = 0, j;
while (idx < list.length) {
if (isArrayLike(list[idx])) {
value = recursive ? flatt(list[idx]) : list[idx];
j = -1;
jlen = value.length;
while (++j < jlen) {
j = 0;
while (j < value.length) {
result[result.length] = value[j];
j += 1;
}

@@ -25,2 +25,3 @@ } else {

}
idx += 1;
}

@@ -27,0 +28,0 @@ return result;

module.exports = function _map(fn, list) {
var idx = -1, len = list.length, result = [];
while (++idx < len) {
var idx = 0, result = [];
while (idx < list.length) {
result[idx] = fn(list[idx]);
idx += 1;
}
return result;
};

@@ -21,3 +21,3 @@ /**

var val = obj;
for (var idx = 0, len = paths.length; idx < len && val != null; idx += 1) {
for (var idx = 0; idx < paths.length && val != null; idx += 1) {
val = val[paths[idx]];

@@ -24,0 +24,0 @@ }

@@ -8,4 +8,4 @@ var _xwrap = require('./_xwrap');

function _arrayReduce(xf, acc, list) {
var idx = -1, len = list.length;
while (++idx < len) {
var idx = 0;
while (idx < list.length) {
acc = xf['@@transducer/step'](acc, list[idx]);

@@ -16,2 +16,3 @@ if (acc && acc['@@transducer/reduced']) {

}
idx += 1;
}

@@ -18,0 +19,0 @@ return xf['@@transducer/result'](acc);

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

module.exports = function(x) {
module.exports = function _reduced(x) {
return x && x['@@transducer/reduced'] ? x :

@@ -3,0 +3,0 @@ {

@@ -24,6 +24,7 @@ /**

var list = [];
var idx = -1;
var idx = 0;
var len = Math.max(0, Math.min(args.length, to) - from);
while (++idx < len) {
while (idx < len) {
list[idx] = args[from + idx];
idx += 1;
}

@@ -30,0 +31,0 @@ return list;

@@ -44,9 +44,10 @@ var _containsWith = require('./internal/_containsWith');

module.exports = _curry3(function intersectionWith(pred, list1, list2) {
var results = [], idx = -1;
while (++idx < list1.length) {
var results = [], idx = 0;
while (idx < list1.length) {
if (_containsWith(pred, list1[idx], list2)) {
results[results.length] = list1[idx];
}
idx += 1;
}
return uniqWith(pred, results);
});

@@ -21,6 +21,5 @@ var _checkForMethod = require('./internal/_checkForMethod');

var out = [];
var idx = -1;
var length = list.length;
while (++idx < length) {
if (idx === length - 1) {
var idx = 0;
while (idx < list.length) {
if (idx === list.length - 1) {
out.push(list[idx]);

@@ -30,4 +29,5 @@ } else {

}
idx += 1;
}
return out;
}));

@@ -30,7 +30,6 @@ var _curry1 = require('./internal/_curry1');

var props = keys(obj);
var len = props.length;
var idx = -1;
var idx = 0;
var out = {};
while (++idx < len) {
while (idx < props.length) {
var key = props[idx];

@@ -40,4 +39,5 @@ var val = obj[key];

list[list.length] = key;
idx += 1;
}
return out;
});

@@ -31,11 +31,11 @@ var _curry1 = require('./internal/_curry1');

var props = keys(obj);
var len = props.length;
var idx = -1;
var idx = 0;
var out = {};
while (++idx < len) {
while (idx < props.length) {
var key = props[idx];
out[obj[key]] = key;
idx += 1;
}
return out;
});

@@ -15,2 +15,3 @@ var curry = require('./curry');

* @return {*}
* @deprecated since v0.15.0
* @example

@@ -17,0 +18,0 @@ *

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

var _curry2 = require('./internal/_curry2');
var _slice = require('./internal/_slice');
var curry = require('./curry');
var curryN = require('./curryN');

@@ -10,3 +10,3 @@

*
* The returned function is curried and accepts `len + 1` parameters where
* The returned function is curried and accepts `arity + 1` parameters where
* the final parameter is the target object.

@@ -17,4 +17,4 @@ *

* @category Function
* @sig (Number, String) -> (a... -> c -> b)
* @param {Number} len Number of arguments the returned function should take
* @sig Number -> String -> (a -> b -> ... -> n -> Object -> *)
* @param {Number} arity Number of arguments the returned function should take
* before the target object.

@@ -27,13 +27,10 @@ * @param {Function} method Name of the method to call.

* sliceFrom(6, 'abcdefghijklm'); //=> 'ghijklm'
* var sliceFrom6 = R.invoker(2, 'slice', 6);
* var sliceFrom6 = R.invoker(2, 'slice')(6);
* sliceFrom6(8, 'abcdefghijklm'); //=> 'gh'
*/
module.exports = curry(function invoker(arity, method) {
var initialArgs = _slice(arguments, 2);
var len = arity - initialArgs.length;
return curryN(len + 1, function() {
var target = arguments[len];
var args = initialArgs.concat(_slice(arguments, 0, len));
return target[method].apply(target, args);
module.exports = _curry2(function invoker(arity, method) {
return curryN(arity + 1, function() {
var target = arguments[arity];
return target[method].apply(target, _slice(arguments, 0, arity));
});
});

@@ -6,7 +6,5 @@ var _curry1 = require('./internal/_curry1');

/**
* Returns `true` if all elements are unique, otherwise `false`.
* Returns `true` if all elements are unique, in `R.equals` terms,
* otherwise `false`.
*
* Has `Object.is` semantics: `NaN` is considered equal to `NaN`; `0` and `-0`
* are not considered equal.
*
* @func

@@ -22,13 +20,13 @@ * @memberOf R

* R.isSet([1, 1]); //=> false
* R.isSet([{}, {}]); //=> true
* R.isSet([[42], [42]]); //=> false
*/
module.exports = _curry1(function isSet(list) {
var len = list.length;
var idx = -1;
while (++idx < len) {
var idx = 0;
while (idx < list.length) {
if (_indexOf(list, list[idx], idx + 1) >= 0) {
return false;
}
idx += 1;
}
return true;
});

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

var _contains = require('./internal/_contains');
var _curry1 = require('./internal/_curry1');

@@ -28,26 +27,39 @@ var _has = require('./internal/_has');

return _curry1(function keys(obj) {
if (Object(obj) !== obj) {
return [];
var contains = function contains(list, item) {
var idx = 0;
while (idx < list.length) {
if (list[idx] === item) {
return true;
}
idx += 1;
}
if (Object.keys) {
return Object.keys(obj);
}
var prop, ks = [], nIdx;
for (prop in obj) {
if (_has(prop, obj)) {
ks[ks.length] = prop;
return false;
};
return typeof Object.keys === 'function' ?
_curry1(function keys(obj) {
return Object(obj) !== obj ? [] : Object.keys(obj);
}) :
_curry1(function keys(obj) {
if (Object(obj) !== obj) {
return [];
}
}
if (hasEnumBug) {
nIdx = nonEnumerableProps.length;
while (--nIdx >= 0) {
prop = nonEnumerableProps[nIdx];
if (_has(prop, obj) && !_contains(prop, ks)) {
var prop, ks = [], nIdx;
for (prop in obj) {
if (_has(prop, obj)) {
ks[ks.length] = prop;
}
}
}
return ks;
});
if (hasEnumBug) {
nIdx = nonEnumerableProps.length - 1;
while (nIdx >= 0) {
prop = nonEnumerableProps[nIdx];
if (_has(prop, obj) && !contains(ks, prop)) {
ks[ks.length] = prop;
}
nIdx -= 1;
}
}
return ks;
});
}());
var _curry2 = require('./internal/_curry2');
var _hasMethod = require('./internal/_hasMethod');
var _lastIndexOf = require('./internal/_lastIndexOf');

@@ -8,6 +9,4 @@

* an array, or -1 if the item is not included in the array.
* `R.equals` is used to determine equality.
*
* Has `Object.is` semantics: `NaN` is considered equal to `NaN`; `0` and `-0`
* are not considered equal.
*
* @func

@@ -18,3 +17,3 @@ * @memberOf R

* @param {*} target The item to find.
* @param {Array} list The array to search in.
* @param {Array} xs The array to search in.
* @return {Number} the index of the target, or -1 if the target is not found.

@@ -27,4 +26,4 @@ *

*/
module.exports = _curry2(function lastIndexOf(target, list) {
return _lastIndexOf(list, target);
module.exports = _curry2(function lastIndexOf(target, xs) {
return _hasMethod('lastIndexOf', xs) ? xs.lastIndexOf(target) : _lastIndexOf(xs, target);
});

@@ -30,8 +30,9 @@ var _curry3 = require('./internal/_curry3');

module.exports = _curry3(function mapAccum(fn, acc, list) {
var idx = -1, len = list.length, result = [], tuple = [acc];
while (++idx < len) {
var idx = 0, result = [], tuple = [acc];
while (idx < list.length) {
tuple = fn(tuple[0], list[idx]);
result[idx] = tuple[1];
idx += 1;
}
return [tuple[0], result];
});

@@ -33,8 +33,9 @@ var _curry3 = require('./internal/_curry3');

module.exports = _curry3(function mapAccumRight(fn, acc, list) {
var idx = list.length, result = [], tuple = [acc];
while (--idx >= 0) {
var idx = list.length - 1, result = [], tuple = [acc];
while (idx >= 0) {
tuple = fn(tuple[0], list[idx]);
result[idx] = tuple[1];
idx -= 1;
}
return [tuple[0], result];
});

@@ -19,2 +19,4 @@ var _curry2 = require('./internal/_curry2');

* @return {Array} The new list.
* @deprecated since v0.15.0
* @see R.addIndex
* @example

@@ -32,7 +34,8 @@ *

module.exports = _curry2(function mapIndexed(fn, list) {
var idx = -1, len = list.length, result = [];
while (++idx < len) {
var idx = 0, result = [];
while (idx < list.length) {
result[idx] = fn(list[idx], idx, list);
idx += 1;
}
return result;
});

@@ -22,8 +22,7 @@ var _curry1 = require('./internal/_curry1');

module.exports = _curry1(function median(list) {
var len = list.length;
if (len === 0) {
if (list.length === 0) {
return NaN;
}
var width = 2 - len % 2;
var idx = (len - width) / 2;
var width = 2 - list.length % 2;
var idx = (list.length - width) / 2;
return mean(_slice(list).sort(function(a, b) {

@@ -30,0 +29,0 @@ return a < b ? -1 : a > b ? 1 : 0;

@@ -15,3 +15,3 @@ var _curry1 = require('./internal/_curry1');

* @return {Object} A merged object.
* @see reduce
* @see R.reduce
* @example

@@ -18,0 +18,0 @@ *

@@ -14,3 +14,3 @@ var _curry1 = require('./internal/_curry1');

* @return {Boolean} the logical inverse of passed argument.
* @see complement
* @see R.complement
* @example

@@ -17,0 +17,0 @@ *

var _curry3 = require('./internal/_curry3');
var _eq = require('./internal/_eq');
var _path = require('./internal/_path');
var equals = require('./equals');
/**
* Determines whether a nested path on an object has a specific value.
* Most likely used to filter a list.
* Determines whether a nested path on an object has a specific value,
* in `R.equals` terms. Most likely used to filter a list.
*
* Has `Object.is` semantics: `NaN` is considered equal to `NaN`; `0` and `-0`
* are not considered equal.
*
* @func

@@ -32,3 +29,3 @@ * @memberOf R

module.exports = _curry3(function pathEq(path, val, obj) {
return _eq(_path(path, obj), val);
return equals(_path(path, obj), val);
});
var _curry2 = require('./internal/_curry2');
var _indexOf = require('./internal/_indexOf');

@@ -12,3 +11,3 @@

* @category Object
* @sig [String] -> {String: *} -> {String: *}
* @sig [k] -> {k: v} -> {k: v}
* @param {Array} names an array of String property names to copy onto a new object

@@ -24,8 +23,10 @@ * @param {Object} obj The object to copy from

var result = {};
for (var prop in obj) {
if (_indexOf(names, prop) >= 0) {
result[prop] = obj[prop];
var idx = 0;
while (idx < names.length) {
if (names[idx] in obj) {
result[names[idx]] = obj[names[idx]];
}
idx += 1;
}
return result;
});

@@ -22,9 +22,9 @@ var _curry2 = require('./internal/_curry2');

var result = {};
var idx = -1;
var len = names.length;
while (++idx < len) {
var idx = 0;
while (idx < names.length) {
var name = names[idx];
result[name] = obj[name];
idx += 1;
}
return result;
});

@@ -11,3 +11,3 @@ var _curry2 = require('./internal/_curry2');

* @category List
* @sig String -> {*} -> [*]
* @sig k -> [{k: v}] -> [v]
* @param {Number|String} key The key name to pluck off of each object.

@@ -14,0 +14,0 @@ * @param {Array} list The array to consider.

@@ -14,3 +14,3 @@ var _multiply = require('./internal/_multiply');

* @return {Number} The product of all the numbers in the list.
* @see reduce
* @see R.reduce
* @example

@@ -17,0 +17,0 @@ *

var _curry3 = require('./internal/_curry3');
var _eq = require('./internal/_eq');
var equals = require('./equals');
/**
* Determines whether the given property of an object has a specific value.
* Most likely used to filter a list.
* Determines whether the given property of an object has a specific value,
* in `R.equals` terms. Most likely used to filter a list.
*
* Has `Object.is` semantics: `NaN` is considered equal to `NaN`; `0` and `-0`
* are not considered equal.
*
* @func

@@ -30,3 +27,3 @@ * @memberOf R

module.exports = _curry3(function propEq(name, val, obj) {
return _eq(obj[name], val);
return equals(obj[name], val);
});

@@ -31,3 +31,3 @@ var _curry3 = require('./internal/_curry3');

module.exports = _curry3(function propOr(val, p, obj) {
return _has(p, obj) ? obj[p] : val;
return (obj != null && _has(p, obj)) ? obj[p] : val;
});

@@ -23,8 +23,8 @@ var _curry2 = require('./internal/_curry2');

module.exports = _curry2(function props(ps, obj) {
var len = ps.length;
var out = [];
var idx = -1;
var idx = 0;
while (++idx < len) {
while (idx < ps.length) {
out[idx] = obj[ps[idx]];
idx += 1;
}

@@ -31,0 +31,0 @@

@@ -10,3 +10,4 @@ var _curry3 = require('./internal/_curry3');

*
* The iterator function receives two values: *(acc, value)*
* The iterator function receives two values: *(acc, value)*. It may use `R.reduced` to
* shortcut the iteration.
*

@@ -16,2 +17,3 @@ * Note: `R.reduce` does not skip deleted or unassigned indices (sparse arrays), unlike

* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
* @see R.reduced
*

@@ -18,0 +20,0 @@ * @func

@@ -23,2 +23,4 @@ var _curry3 = require('./internal/_curry3');

* @return {*} The final, accumulated value.
* @deprecated since v0.15.0
* @see R.addIndex
* @example

@@ -35,7 +37,8 @@ *

module.exports = _curry3(function reduceIndexed(fn, acc, list) {
var idx = -1, len = list.length;
while (++idx < len) {
var idx = 0;
while (idx < list.length) {
acc = fn(acc, list[idx], idx, list);
idx += 1;
}
return acc;
});

@@ -36,7 +36,8 @@ var _curry3 = require('./internal/_curry3');

module.exports = _curry3(function reduceRight(fn, acc, list) {
var idx = list.length;
while (--idx >= 0) {
var idx = list.length - 1;
while (idx >= 0) {
acc = fn(acc, list[idx]);
idx -= 1;
}
return acc;
});

@@ -24,2 +24,4 @@ var _curry3 = require('./internal/_curry3');

* @return {*} The final, accumulated value.
* @deprecated since v0.15.0
* @see R.addIndex
* @example

@@ -36,7 +38,8 @@ *

module.exports = _curry3(function reduceRightIndexed(fn, acc, list) {
var idx = list.length;
while (--idx >= 0) {
var idx = list.length - 1;
while (idx >= 0) {
acc = fn(acc, list[idx], idx, list);
idx -= 1;
}
return acc;
});

@@ -17,2 +17,4 @@ var _complement = require('./internal/_complement');

* @return {Array} The new filtered array.
* @deprecated since v0.15.0
* @see R.addIndex
* @example

@@ -19,0 +21,0 @@ *

@@ -22,8 +22,9 @@ var _curry3 = require('./internal/_curry3');

module.exports = _curry3(function scan(fn, acc, list) {
var idx = 0, len = list.length + 1, result = [acc];
while (++idx < len) {
acc = fn(acc, list[idx - 1]);
result[idx] = acc;
var idx = 0, result = [acc];
while (idx < list.length) {
acc = fn(acc, list[idx]);
result[idx + 1] = acc;
idx += 1;
}
return result;
});

@@ -14,2 +14,3 @@ var _curry2 = require('./internal/_curry2');

* @return {Number} The first index of `c` or -1 if not found.
* @deprecated since v0.15.0
* @example

@@ -16,0 +17,0 @@ *

@@ -15,2 +15,3 @@ var _curry2 = require('./internal/_curry2');

* @return {Number} The last index of `c` or -1 if not found.
* @deprecated since v0.15.0
* @example

@@ -17,0 +18,0 @@ *

@@ -17,2 +17,3 @@ var slice = require('./slice');

* @see R.slice
* @deprecated since v0.15.0
* @example

@@ -19,0 +20,0 @@ *

@@ -16,2 +16,3 @@ var __ = require('./__');

* @return {String}
* @deprecated since v0.15.0
* @example

@@ -18,0 +19,0 @@ *

@@ -14,2 +14,3 @@ var substring = require('./substring');

* @return {String}
* @deprecated since v0.15.0
* @example

@@ -16,0 +17,0 @@ *

@@ -14,3 +14,3 @@ var _add = require('./internal/_add');

* @return {Number} The sum of all the numbers in the list.
* @see reduce
* @see R.reduce
* @example

@@ -17,0 +17,0 @@ *

var _curry2 = require('./internal/_curry2');
var _dispatchable = require('./internal/_dispatchable');
var _slice = require('./internal/_slice');
var _xtake = require('./internal/_xtake');
var slice = require('./slice');
/**
* Returns a new list containing the first `n` elements of the given list. If
* `n > * list.length`, returns a list of `list.length` elements.
* Returns a new list containing the first `n` elements of the given list.
* If `n > list.length`, returns a list of `list.length` elements.
*

@@ -19,4 +19,4 @@ * Acts as a transducer if a transformer is given in list position.

* @param {Number} n The number of elements to return.
* @param {Array} list The array to query.
* @return {Array} A new array containing the first elements of `list`.
* @param {Array} xs The collection to consider.
* @return {Array}
* @example

@@ -32,4 +32,4 @@ *

*/
module.exports = _curry2(_dispatchable('take', _xtake, function take(n, list) {
return _slice(list, 0, n);
module.exports = _curry2(_dispatchable('take', _xtake, function take(n, xs) {
return slice(0, n < 0 ? Infinity : n, xs);
}));

@@ -32,5 +32,7 @@ var _curry2 = require('./internal/_curry2');

module.exports = _curry2(_dispatchable('takeWhile', _xtakeWhile, function takeWhile(fn, list) {
var idx = -1, len = list.length;
while (++idx < len && fn(list[idx])) {}
var idx = 0;
while (idx < list.length && fn(list[idx])) {
idx += 1;
}
return _slice(list, 0, idx);
}));

@@ -14,3 +14,4 @@ var _reduce = require('./internal/_reduce');

* transformer to initialize the transducer. A transformer can be passed directly in place
* of an iterator function.
* of an iterator function. In both cases, iteration may be stopped early with the
* `R.reduced` function.
*

@@ -27,2 +28,4 @@ * A transducer is a function that accepts a transformer and returns a transformer and can

* The iteration is performed with R.reduce after initializing the transducer.
* @see R.reduce
* @see R.reduced
*

@@ -29,0 +32,0 @@ * @func

@@ -1,2 +0,4 @@

var eq = require('./eq');
var _contains = require('./internal/_contains');
var _curry1 = require('./internal/_curry1');
var equals = require('./equals');
var uniqWith = require('./uniqWith');

@@ -7,4 +9,3 @@

* Returns a new list containing only one copy of each element in the original list.
* Equality is strict here, meaning reference equality for objects and non-coercing equality
* for primitives.
* `R.equals` is used to determine equality.
*

@@ -20,5 +21,41 @@ * @func

* R.uniq([1, 1, 2, 1]); //=> [1, 2]
* R.uniq([{}, {}]); //=> [{}, {}]
* R.uniq([1, '1']); //=> [1, '1']
* R.uniq([[42], [42]]); //=> [[42]]
*/
module.exports = uniqWith(eq);
module.exports = (function() {
/**
* Uses a native `Set` instance where possible for
* removing duplicate items. Items that implement
* the fantasy-land Setoid spec fallback to using
* `_contains` to support custom equality behaviour.
*/
function uniq(list) {
/* global Set */
var item,
set = new Set(),
idx = 0,
len = list.length,
items = [],
uniqs = [];
while (idx < len) {
item = list[idx];
// `_contains` is also used to differentiate between
// +0 and -0, as the native Set does not.
if (item === 0 || (item != null && typeof item.equals === 'function')) {
if (!_contains(item, items)) {
items.push(item);
uniqs.push(item);
}
} else {
if (set.size !== set.add(item).size) {
uniqs.push(item);
}
}
idx += 1;
}
return uniqs;
}
return typeof Set !== 'function' ? uniqWith(equals) : _curry1(uniq);
})();

@@ -26,5 +26,5 @@ var _containsWith = require('./internal/_containsWith');

module.exports = _curry2(function uniqWith(pred, list) {
var idx = -1, len = list.length;
var idx = 0;
var result = [], item;
while (++idx < len) {
while (idx < list.length) {
item = list[idx];

@@ -34,4 +34,5 @@ if (!_containsWith(pred, item, result)) {

}
idx += 1;
}
return result;
});

@@ -8,2 +8,3 @@ var _curry3 = require('./internal/_curry3');

* provided index replaced with the given value.
* @see R.adjust
*

@@ -10,0 +11,0 @@ * @func

@@ -71,10 +71,10 @@ var _slice = require('./internal/_slice');

var transformers = _slice(arguments, 1);
var tlen = transformers.length;
return curry(arity(tlen, function() {
var args = [], idx = -1;
while (++idx < tlen) {
return curry(arity(transformers.length, function() {
var args = [], idx = 0;
while (idx < transformers.length) {
args[idx] = transformers[idx](arguments[idx]);
idx += 1;
}
return fn.apply(this, args.concat(_slice(arguments, tlen)));
return fn.apply(this, args.concat(_slice(arguments, transformers.length)));
}));
});

@@ -22,9 +22,9 @@ var _curry1 = require('./internal/_curry1');

var props = keys(obj);
var len = props.length;
var vals = [];
var idx = -1;
while (++idx < len) {
var idx = 0;
while (idx < props.length) {
vals[idx] = obj[props[idx]];
idx += 1;
}
return vals;
});

@@ -26,4 +26,4 @@ var _curry2 = require('./internal/_curry2');

* var pred = R.where({
* a: R.eq('foo'),
* b: R.complement(R.eq('bar')),
* a: R.equals('foo'),
* b: R.complement(R.equals('bar')),
* x: R.gt(_, 10),

@@ -30,0 +30,0 @@ * y: R.lt(_, 20)

var _curry2 = require('./internal/_curry2');
var eq = require('./eq');
var equals = require('./equals');
var mapObj = require('./mapObj');

@@ -11,3 +11,3 @@ var where = require('./where');

* spec's own properties, accessing that property of the object gives the same
* value (in `R.eq` terms) as accessing that property of the spec.
* value (in `R.equals` terms) as accessing that property of the spec.
*

@@ -27,3 +27,3 @@ * `whereEq` is a specialization of [`where`](#where).

* // pred :: Object -> Boolean
* var pred = R.where({a: 1, b: 2});
* var pred = R.whereEq({a: 1, b: 2});
*

@@ -36,3 +36,3 @@ * pred({a: 1}); //=> false

module.exports = _curry2(function whereEq(spec, testObj) {
return where(mapObj(eq, spec), testObj);
return where(mapObj(equals, spec), testObj);
});

@@ -21,14 +21,14 @@ var _curry2 = require('./internal/_curry2');

module.exports = _curry2(function xprod(a, b) { // = xprodWith(prepend); (takes about 3 times as long...)
var idx = -1;
var ilen = a.length;
var idx = 0;
var j;
var jlen = b.length;
var result = [];
while (++idx < ilen) {
j = -1;
while (++j < jlen) {
while (idx < a.length) {
j = 0;
while (j < b.length) {
result[result.length] = [a[idx], b[j]];
j += 1;
}
idx += 1;
}
return result;
});

@@ -23,8 +23,9 @@ var _curry2 = require('./internal/_curry2');

var rv = [];
var idx = -1;
var idx = 0;
var len = Math.min(a.length, b.length);
while (++idx < len) {
while (idx < len) {
rv[idx] = [a[idx], b[idx]];
idx += 1;
}
return rv;
});

@@ -19,7 +19,8 @@ var _curry2 = require('./internal/_curry2');

module.exports = _curry2(function zipObj(keys, values) {
var idx = -1, len = keys.length, out = {};
while (++idx < len) {
var idx = 0, out = {};
while (idx < keys.length) {
out[keys[idx]] = values[idx];
idx += 1;
}
return out;
});

@@ -27,7 +27,8 @@ var _curry3 = require('./internal/_curry3');

module.exports = _curry3(function zipWith(fn, a, b) {
var rv = [], idx = -1, len = Math.min(a.length, b.length);
while (++idx < len) {
var rv = [], idx = 0, len = Math.min(a.length, b.length);
while (idx < len) {
rv[idx] = fn(a[idx], b[idx]);
idx += 1;
}
return rv;
});

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc