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

neo-async

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neo-async - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

32

CHANGELOG.md

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

<a name"v1.6.0"></a>
## v1.6.0 (2015-10-22)
#### Features
* **omit:** add feature of `omit` ([bc4376be](https://github.com/suguru03/neo-async/commit/bc4376be))
#### Other Changes
* **README:** add `omit` to feature ([f80767e5](https://github.com/suguru03/neo-async/commit/f80767e5))
<a name"v1.5.1"></a>
### v1.5.1 (2015-10-15)
#### Features
* **mapvalues:** fix to use common function with `map` ([8ffa0448](https://github.com/suguru03/neo-async/commit/8ffa0448))
#### Other Changes
* **CHANGELOG:** v1.5.0 [ci skip] ([becacf81](https://github.com/suguru03/neo-async/commit/becacf81))
* **async:** rename `length` to `size` ([623044db](https://github.com/suguru03/neo-async/commit/623044db))
* **every:** add test case ([7440e354](https://github.com/suguru03/neo-async/commit/7440e354))
* **test:** modify to use `mocha.parallel` ([10af3dbb](https://github.com/suguru03/neo-async/commit/10af3dbb))
* **times:** fix test case ([b016ea6f](https://github.com/suguru03/neo-async/commit/b016ea6f))
<a name"v1.5.0"></a>

@@ -771,3 +801,3 @@ ## v1.5.0 (2015-09-10)

<a name"v0.4.5"></a>
### v0.4.5 (2015-09-10)
### v0.4.5 (2015-10-23)

@@ -774,0 +804,0 @@

152

dist/async.min.js

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

(function(){function F(b){for(var d=-1,c=b.length,a=Array(c);++d<c;)a[d]=b[d];return a}function I(b,d){var c=-1,a=b.length-d;if(0>=a)return[];for(var e=Array(a);++c<a;)e[c]=b[c+d];return e}function Q(b){for(var d=-1,c=b.length,a=[];++d<c;){var e=b[d];e&&(a[a.length]=e)}return a}function Ra(b){for(var d=-1,c=b.length,a=Array(c),e=c;++d<c;)a[--e]=b[d];return a}function ja(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,E(c));else for(;++a<e;)d(b[a],E(c))}function ka(b,d,c,a){var e,f=
-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,E(c));else for(;++f<g;)d(b[a[f]],E(c))}function la(b,d,c){b=b[z]();var a;if(3===d.length)for(;!1===(a=b.next()).done;)d(a.value[1],a.value[0],c);else for(;!1===(a=b.next()).done;)d(a.value[1],c)}function ma(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,c(a));else for(;++a<e;)d(b[a],c(a))}function Y(b,d,c){var a,e=-1,f=b.length;if(3===d.length)for(;++e<f;)a=b[e],d(a,e,c(a));else for(;++e<f;)a=b[e],d(a,c(a))}function Z(b,d,
c,a){var e,f,g=-1,k=a.length;if(3===d.length)for(;++g<k;)e=a[g],f=b[e],d(f,e,c(f));else for(;++g<k;)f=b[a[g]],d(f,c(f))}function aa(b,d,c){var a,e=b[z]();if(3===d.length)for(;!1===(a=e.next()).done;)b=a.value[1],d(b,a.value[0],c(b));else for(;!1===(a=e.next()).done;)b=a.value[1],d(b,c(b))}function ba(b,d,c){var a,e=-1,f=b.length;if(3===d.length)for(;++e<f;)a=b[e],d(a,e,c(e,a));else for(;++e<f;)a=b[e],d(a,c(e,a))}function na(b,d,c,a){var e,f,g=-1,k=a.length;if(3===d.length)for(;++g<k;)e=a[g],f=b[e],
d(f,e,c(g,f));else for(;++g<k;)f=b[a[g]],d(f,c(g,f))}function oa(b,d,c){var a,e=-1,f=b[z]();if(3===d.length)for(;!1===(a=f.next()).done;)b=a.value[0],a=a.value[1],d(a,b,c(++e,a));else for(;!1===(a=f.next()).done;)a=a.value[1],d(a,c(++e,a))}function L(b,d){for(var c=-1,a=b.length;++c<a;)d(b[c],c);return b}function ca(b,d){for(var c=b.length;c--;)d(b[c],c);return b}function N(b,d,c){c=c||Object.keys(b);for(var a=-1,e=c.length;++a<e;){var f=c[a];d(b[f],f)}return b}function J(b,d){for(var c=-1;++c<b;)d(c)}
function Sa(b,d){for(var c=b.length,a=-1;++a<c;)if(!d(b[a]))return!1;return!0}function O(b){for(var d=b.length,c=-1,a=Array(d);++c<d;)a[c]=b[c];return a}function M(b){for(var d=Object.keys(b),c=d.length,a=-1,e={};++a<c;){var f=d[a];e[f]=b[f]}return e}function T(b,d){for(var c=-1,a=b.length,e=Array(a);++c<a;)e[c]=(b[c]||{})[d];return e}function da(b,d){return b.criteria-d.criteria}function E(b){return function(d,c){null===b&&B();b(d,c);b=null}}function pa(){function b(b,c){var d=a.test(c)?0:e.test(c)?
2:1,f=b.length;g[c]=function(){var a=F(arguments),c=a[d];switch(c.length){case 1:a[d]=function(a){C.safeNextTick(function(){c(a)})};break;case 2:a[d]=function(a,b){C.safeNextTick(function(){c(a,b)})};break;case 3:a[d]=function(a,b,d){C.safeNextTick(function(){c(a,b,d)})};break;case 4:a[d]=function(a,b,d,e){C.safeNextTick(function(){c(a,b,d,e)})};break;default:a[d]=function(){var a=F(arguments);C.safeNextTick(function(){c.apply(null,a)})}}switch(f){case 2:return b(a[0],a[1]);case 3:return b(a[0],a[1],
a[2]);case 4:return b(a[0],a[1],a[2],a[3]);case 5:return b(a[0],a[1],a[2],a[3],a[4])}}}function d(a,b){function c(){function b(a){return"function"!==typeof a?a:function(){var b=F(arguments);C.safeNextTick(function(){a.apply(null,b)})}}var e=F(arguments),f=e[0];Array.isArray(f)?L(f,function(a,c){f[c]=b(a)}):f&&"object"===typeof f&&N(f,function(a,c){f[c]=b(a)});switch(d){case 2:a(e[0],e[1]);break;case 3:a(e[0],e[1],e[2])}}if(/^waterfall$/.test(b))g[b]=Ta;else{var d=a.length;g[b]=c}}var c=/^(each|foreach|map|filter|select|reject|detect|pick|reduce|inject|fold|transform|sortby|some|any|every|all|concat|times)|(whilst|until|during)$|^forever$/,
a=new RegExp(/^do|^forever$/),e=new RegExp(/^reduce|Limit$/),f=new RegExp(/^parallel|^(series|waterfall|auto)$/),g={};N(C,function(a,e){if("function"===typeof a){if(f.test(e))return d(a,e);if(c.test(e.toLowerCase()))return b(a,e)}g[e]=a});g.safe=pa;return g}function qa(b,d,c,a){var e,f;a?(e=Array,f=O):(e=function(){return{}},f=M);return function(a,k,r){function q(a){return function(b,c){null===a&&B();h[a]=c;a=null;b?(r(b,f(h)),r=y):++n===m&&r(void 0,h)}}r=r||y;var m,l,h,n=0;Array.isArray(a)?(m=a.length,
h=e(m),b(a,k,q)):a&&(z&&a[z]?(m=a.size,h=e(m),c(a,k,q)):"object"===typeof a&&(l=Object.keys(a),m=l.length,h=e(m),d(a,k,q,l)));m||r(void 0,e())}}function ra(b,d,c,a){return function(e,f,g){function k(b,c){return function(d){null===b&&B();!!d===a&&(l[b]=c);b=null;++h===q&&g(Q(l))}}function r(b,c){return function(d,e){null===b&&B();d?(g(d,Q(l)),g=y,b=null):(!!e===a&&(l[b]=c),b=null,++h===q&&g(void 0,Q(l)))}}g=g||y;var q,m,l,h=0,n=2===g.length,p=n?r:k;Array.isArray(e)?(q=e.length,l=Array(q),b(e,f,p)):
e&&(z&&e[z]?(q=e.size,l=Array(q),c(e,f,p)):"object"===typeof e&&(m=Object.keys(e),q=m.length,l=Array(q),d(e,f,p,m)));if(!q)return n?g(void 0,[]):g([])}}function sa(b){return function(d,c,a){function e(){p=d[A];c(p,H)}function f(){p=d[A];c(p,A,H)}function g(){p=t.next().value[1];c(p,H)}function k(){u=t.next().value;p=u[1];c(p,u[0],H)}function r(){n=x[A];p=d[n];c(p,H)}function q(){n=x[A];p=d[n];c(p,n,H)}function m(c){!!c===b&&(D[D.length]=p);++A>=h?(a(D),a=B):w?C.nextTick(v):v()}function l(c,d){c?(a(c,
D),a=B):(!!d===b&&(D[D.length]=p),++A>=h?(a(void 0,D),a=B):w?C.nextTick(v):v())}a=a||y;var h,n,p,x,t,u,v,w=!0,A=0,D=[],K=2===a.length,H=K?l:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?k:g):"object"===typeof d&&(x=Object.keys(d),h=x.length,v=3===c.length?q:r));if(!h)return K?a(void 0,[]):a([]);v();w=!1}}function ta(b){return function(d,c,a,e){function f(){p=H++;p<n&&(t=d[p],a(t,F(t,p)))}function g(){p=H++;p<n&&(t=d[p],a(t,p,F(t,p)))}function k(){!1===
(w=v.next()).done&&(t=w.value[1],a(t,F(t,++H)))}function r(){!1===(w=v.next()).done&&(t=w.value[1],a(t,w.value[0],F(t,++H)))}function q(){p=H++;p<n&&(t=d[u[p]],a(t,F(t,p)))}function m(){p=H++;p<n&&(x=u[p],t=d[x],a(t,x,F(t,p)))}function l(a,c){return function(d){null===c&&B();!!d===b&&(D[c]=a);c=null;++E>=n?(e(Q(D)),e=B):K?C.nextTick(A):A()}}function h(a,c){return function(d,f){null===c&&B();d?(e(d,Q(D)),A=e=y,c=null):(!!f===b&&(D[c]=a),c=null,++E===n?(e(void 0,Q(D)),e=B):K?C.nextTick(A):A())}}e=e||
y;var n,p,x,t,u,v,w,A,D,K=!0,H=0,E=0,G=2===e.length,F=G?h:l;Array.isArray(d)?(n=d.length,A=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),A=3===a.length?r:k):"object"===typeof d&&(u=Object.keys(d),n=u.length,A=3===a.length?m:q));if(!n||isNaN(c)||1>c)return G?e(void 0,[]):e([]);D=Array(n);J(c>n?n:c,A);K=!1}}function R(b,d,c){function a(){d(b[u],q)}function e(){d(b[u],u,q)}function f(){d(n.next().value[1],q)}function g(){p=n.next().value;d(p[1],p[0],q)}function k(){d(b[h[u]],q)}function r(){l=h[u];
d(b[l],l,q)}function q(a,b){a?c(a):++u>=m?(c(),c=B):!1===b?c():t?C.nextTick(x):(t=!0,x());t=!1}c=c||y;var m,l,h,n,p,x,t=!0,u=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:k));if(!m)return c();x();t=!1}function U(b,d,c,a){function e(){w<l&&c(b[w++],m)}function f(){h=w++;h<l&&c(b[h],h,m)}function g(){!1===(t=x.next()).done&&c(t.value[1],m)}function k(){!1===(t=x.next()).done&&c(t.value[1],
t.value[0],m)}function r(){w<l&&c(b[p[w++]],m)}function q(){h=w++;h<l&&(n=p[h],c(b[n],n,m))}function m(b,c){b?(a(b),u=a=y):++A>=l?(a(),a=B):!1===c?(a(),a=y):v?C.nextTick(u):(v=!0,u());v=!1}a=a||y;var l,h,n,p,x,t,u,v=!1,w=0,A=0;if(Array.isArray(b))l=b.length,u=3===c.length?f:e;else if(b)if(z&&b[z])l=b.size,x=b[z](),u=3===c.length?k:g;else if("object"===typeof b)p=Object.keys(b),l=p.length,u=3===c.length?q:r;else return a();if(!l||isNaN(d)||1>d)return a();J(d>l?l:d,u);v=!0}function ua(b,d,c,a){return function(e,
f,g){function k(b){var c=!1;return function(d){c&&B();c=!0;!!d===a?(g(b),g=y):++l===q&&(g(),g=B)}}function r(b){var c=!1;return function(d,e){c&&B();c=!0;d?(g(d),g=y):!!e===a?(g(void 0,b),g=y):++l===q&&(g(),g=B)}}g=g||y;var q,m,l=0,h=2===g.length?r:k;Array.isArray(e)?(q=e.length,b(e,f,h)):e&&(z&&e[z]?(q=e.size,c(e,f,h)):"object"===typeof e&&(m=Object.keys(e),q=m.length,d(e,f,h,m)));q||g()}}function va(b){return function(d,c,a){function e(){p=d[A];c(p,D)}function f(){p=d[A];c(p,A,D)}function g(){p=
t.next().value[1];c(p,D)}function k(){u=t.next().value;p=u[1];c(p,u[0],D)}function r(){p=d[x[A]];c(p,D)}function q(){n=x[A];p=d[n];c(p,n,D)}function m(c){!!c===b?(a(p),a=B):++A>=h?(a(),a=B):w?C.nextTick(v):(w=!0,v());w=!1}function l(c,d){c?(a(c),a=B):!!d===b?(a(void 0,p),a=B):++A>=h?(a(),a=B):w?C.nextTick(v):(w=!0,v());w=!1}a=a||y;var h,n,p,x,t,u,v,w=!0,A=0,D=2===a.length?l:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?k:g):"object"===typeof d&&(x=
Object.keys(d),h=x.length,v=3===c.length?q:r));if(!h)return a();v();w=!1}}function wa(b){return function(d,c,a,e){function f(){p=K++;p<n&&(t=d[p],a(t,E(t)))}function g(){p=K++;p<n&&(t=d[p],a(t,p,E(t)))}function k(){!1===(w=v.next()).done&&(t=w.value[1],a(t,E(t)))}function r(){!1===(w=v.next()).done&&(t=w.value[1],a(t,w.value[0],E(t)))}function q(){p=K++;p<n&&(t=d[u[p]],a(t,E(t)))}function m(){K<n&&(x=u[K++],t=d[x],a(t,x,E(t)))}function l(a){var c=!1;return function(d){c&&B();c=!0;!!d===b?(e(a),A=
e=y):++H>=n?(e(),e=B):D?C.nextTick(A):(D=!0,A());D=!1}}function h(a){var c=!1;return function(d,f){c&&B();c=!0;d?(e(d),A=e=y):!!f===b?(e(void 0,a),e=y):++H>=n?(e(),e=B):D?C.nextTick(A):(D=!0,A());D=!1}}e=e||y;var n,p,x,t,u,v,w,A,D=!0,K=0,H=0,E=2===e.length?h:l;Array.isArray(d)?(n=d.length,A=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),A=3===a.length?r:k):"object"===typeof d&&(u=Object.keys(d),n=u.length,A=3===a.length?m:q));if(!n||isNaN(c)||1>c)return e();J(c>n?n:c,A);D=!1}}function V(b,d,c,a){function e(a){n=
b[w];c(a,n,m)}function f(a){n=b[w];c(a,n,w,m)}function g(){c(d,x.next().value[1],m)}function k(){t=x.next().value;c(d,t[1],t[0],m)}function r(a){h=p[w];n=b[h];c(a,n,m)}function q(a){h=p[w];n=b[h];c(a,n,h,m)}function m(b,c){b?(a(b,c),a=B):++w>=l?(a(void 0,c),a=B):v?C.nextTick(function(){u(c)}):(v=!0,u(c));v=!1}a=a||y;var l,h,n,p,x,t,u,v=!0,w=0;Array.isArray(b)?(l=b.length,u=4===c.length?f:e):b&&(z&&b[z]?(l=b.size,x=b[z](),u=4===c.length?k:g):"object"===typeof b&&(p=Object.keys(b),l=p.length,u=4===
c.length?q:r));if(!l)return a(void 0,d);u(d);v=!1}function xa(b,d,c,a){function e(a){h=b[--q];c(a,h,r)}function f(a){m=--q;h=b[m];c(a,h,m,r)}function g(a){l=n[--q];h=b[l];c(a,h,r)}function k(a){l=n[--q];h=b[l];c(a,h,l,r)}function r(b,c){b?(a(b,c),a=B):0>=q?(a(void 0,c),a=B):v?C.nextTick(function(){u(c)}):(v=!0,u(c));v=!1}a=a||y;var q,m,l,h,n,p,x,t,u,v=!0;if(Array.isArray(b))q=b.length,u=4===c.length?f:e;else if(b)if(z&&b[z]){q=b.size;n=Array(q);p=b[z]();m=-1;for(t={};!1===(x=p.next()).done;)l=x.value[0],
t[l]=x.value[1],n[++m]=l;b=t;u=4===c.length?k:g}else"object"===typeof b&&(n=Object.keys(b),q=n.length,u=4===c.length?k:g);if(!q)return a(void 0,d);u(d);v=!1}function ya(b,d,c){function a(a){c(!!a)}function e(a,b){c(a,!!b)}c=c||y;za(b,d,2===c.length?e:a)}function Aa(b,d){function c(){g=l;b[l](e)}function a(){g=k[l];b[g](e)}function e(a,b){a?(d(a,r),q=d=B):(r[g]=2>=arguments.length?b:I(arguments,1),++l>=f?(d(void 0,r),d=B):m?C.nextTick(q):(m=!0,q()),m=!1)}d=d||y;var f,g,k,r,q,m=!0,l=0;if(Array.isArray(b))f=
b.length,r=Array(f),q=c;else if(b&&"object"===typeof b)k=Object.keys(b),f=k.length,r={},q=a;else return d();if(!f)return d(void 0,r);q();m=!1}function ea(b,d,c){function a(){k=n++;if(k<g)b[k](f(k))}function e(){n<g&&(r=q[n++],b[r](f(r)))}function f(a){return function(b,d){null===a&&B();b?(c(b,m),c=y,a=null):(m[a]=2>=arguments.length?d:I(arguments,1),a=null,++p>=g?c(void 0,m):h?C.nextTick(l):(h=!0,l()),h=!1)}}c=c||y;var g,k,r,q,m,l,h=!0,n=0,p=0;Array.isArray(b)?(g=b.length,m=Array(g),l=a):b&&"object"===
typeof b&&(q=Object.keys(b),g=q.length,m={},l=e);if(!g||isNaN(d)||1>d)return c(void 0,m);J(d>g?g:d,l);h=!1}function fa(b,d){return Array.isArray(b)?0===b.length?(d(),!1):!0:(d(Error("First argument to waterfall must be an array of functions")),!1)}function Ta(b,d){function c(g){function k(b){a&&B();a=!0;if(b)d(b);else if(++g>=e)d.apply(null,F(arguments));else{f=arguments;C.safeNextTick(function(){c(g)});return}d=c=B}a=!1;var r=b[g];switch(f.length){case 0:case 1:return r(k);case 2:return r(f[1],k);
case 3:return r(f[1],f[2],k);case 4:return r(f[1],f[2],f[3],k);case 5:return r(f[1],f[2],f[3],f[4],k);case 6:return r(f[1],f[2],f[3],f[4],f[5],k);default:return f=I(f,1),f.push(k),r.apply(null,f)}}d=d||y;if(fa(b,d)){var a,e=b.length,f=[];c(0)}}function Ba(b,d){function c(){switch(k.length){case 0:try{a(null,k())}catch(b){a(b)}break;case 1:return k(a);case 2:return k(r[1],a);case 3:return k(r[1],r[2],a);case 4:return k(r[1],r[2],r[3],a);case 5:return k(r[1],r[2],r[3],r[4],a);default:return r=I(r,1),
r[k.length-1]=a,k.apply(null,r)}}function a(a){a?(d(a),d=B):++e>=g?(d.apply(null,F(arguments)),d=B):(k=b[e],r=arguments,f?C.nextTick(c):(f=!0,c()),f=!1)}d=d||y;if(fa(b,d)){var e=0,f=!0,g=b.length,k=b[e],r=[];c();f=!1}}function Ca(){var b=F(arguments);return function(){var d=this,c=F(arguments),a=c.pop();V(b,c,function(a,b,c){a.push(function(a){var b=I(arguments,1);c(a,b)});b.apply(d,a)},function(b,c){c=Array.isArray(c)?c:[c];c.unshift(b);a.apply(d,c)})}}function Da(b){return function(d){var c=function(){var a=
this,c=F(arguments),g=c.pop()||y;return b(d,function(b,d){b.apply(a,c.concat([d]))},g)};if(1<arguments.length){var a=I(arguments,1);return c.apply(this,a)}return c}}function Ea(b,d){function c(a,b,c){function d(a){var b=e.tasks,c=b.length;if(!c)return 0;for(var f=-1;++f<c&&!(a<b[f].priority););return f}e.started=!0;var q=Array.isArray(a)?a:[a];if(void 0!==a&&q.length){c="function"===typeof c?c:y;var m=d(b);L(q,function(a){a={task:a,priority:b,callback:c};e.tasks.splice(m++,0,a);"function"===typeof e.saturated&&
e.length()===e.concurrency&&e.saturated();C.nextTick(e.process)})}else e.idle()&&C.nextTick(function(){"function"===typeof e.drain&&e.drain()})}if(void 0===d)d=1;else if(isNaN(d)||1>d)throw Error("concurrency must be more than 1");var a=0,e={tasks:[],concurrency:d,saturated:y,empty:y,drain:y,started:!1,paused:!1,push:function(a,b,d){c(a,b,d)},kill:function(){e.drain=y;e.tasks=[]},process:function(){function b(){a--;c.callback&&c.callback.apply(c,F(arguments));"function"===typeof e.drain&&e.idle()&&
e.drain();e.process()}if(!(e.paused||a>=e.concurrency)&&e.length()){var c=e.tasks.shift();"function"!==typeof e.empty||e.length()||e.empty();a++;e._worker(c.task,E(b))}},length:function(){return e.tasks.length},running:function(){return a},idle:function(){return 0===e.length()+a},pause:function(){e.paused=!0},resume:function(){!1!==e.paused&&(e.paused=!1,J(e.concurrency,function(){C.setImmediate(e.process)}))},_worker:b};return e}function Fa(b,d,c){function a(){d(k,e)}function e(d,e){f[k]=e;d?(c(d),
c=B):++k>=b?(c(void 0,f),c=B):g?C.nextTick(a):(g=!0,a());g=!1}c=c||y;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var f=Array(b),g=!0,k=0;a();g=!1}function Ga(b){return function(){var d=F(arguments),c=d.pop(),a;try{a=b.apply(this,d)}catch(e){return c(e)}if("object"===typeof a&&"function"===typeof a.then)a.then(function(a){c(null,a)})["catch"](c);else c(null,a)}}function ga(b){function d(c){if(W[typeof console])if(c)console.error&&console.error(c);else if(console[b]){var a=I(arguments,1);L(a,function(a){console[b](a)})}}
return function(b){var a=I(arguments,1);a.push(d);b.apply(null,a)}}function G(b,d){this._emitter=b||Aa;this._limit=d||4;this._events={};this._runing={};this._queue={}}function Ha(b){b=b||y;if(b.ONCE===ha)return b;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;return d}function Ia(b){b=b||y;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;d.ONCE=ha;return d}var P=this,Ua=P&&P.async,y=function(){},B=function(){throw Error("Callback was already called.");},W={"function":!0,object:!0},
z="function"===typeof Symbol&&Symbol.iterator,Ja,ia,X;(function(){var b=function(b){setTimeout(b,0)};X="function"===typeof setImmediate?setImmediate:b;Ja="object"===typeof process&&"function"===typeof process.nextTick?ia=/^v0.10/.test(process.version)?X:process.nextTick:ia=X})();var S=function(b,d,c){return function(a,e,f){function g(a,b){a?(f(a),f=y):++q===k?f():!1===b&&(f(),f=y)}f=f||y;var k,r,q=0;Array.isArray(a)?(k=a.length,b(a,e,g)):a&&(z&&a[z]?(k=a.size,c(a,e,g)):"object"===typeof a&&(r=Object.keys(a),
k=r.length,d(a,e,g,r)));k||f()}}(ja,ka,la),Va=qa(ma,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(f));else for(;++f<g;)d(b[a[f]],c(f))},function(b,d,c){var a=-1,e=b.size,f=b[z]();if(3===d.length)for(;++a<e;)b=f.next().value,d(b[1],b[0],c(a));else for(;++a<e;)d(f.next().value[1],c(a))},!0),Wa=qa(ma,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(e));else for(;++f<g;)e=a[f],d(b[e],c(e))},function(b,d,c){var a,e=b[z]();if(3===
d.length)for(;!1===(b=e.next()).done;)a=b.value[0],d(b.value[1],a,c(a));else for(;!1===(b=e.next()).done;)d(b.value[1],c(b.value[0]))},!1),Ka=ra(ba,na,oa,!0),La=sa(!0),Ma=ta(!0),Xa=ra(ba,na,oa,!1),Ya=sa(!1),Za=ta(!1),za=ua(Y,Z,aa,!0),Na=va(!0),Oa=wa(!0),Pa=function(b,d,c){var a=ua(b,d,c,!1);return function(b,c,d){function k(a){d(!a)}function r(a,b){d(a,!b)}d=d||y;a(b,c,2===d.length?r:k)}}(Y,Z,aa),$a=function(){var b=va(!1);return function(d,c,a){function e(b){a(!b)}function f(b,c){a(b,!c)}a=a||y;
b(d,c,2===a.length?f:e)}}(),ab=function(){var b=wa(!1);return function(d,c,a,e){function f(a){e(!a)}function g(a,b){e(a,!b)}e=e||y;b(d,c,a,2===e.length?g:f)}}(),bb=function(b,d,c){return function(a,e,f){function g(a,b){return function(c){null===a&&B();c&&(l[a]=b);a=null;++m===r&&f(l)}}function k(a,b){return function(c,d){null===a&&B();c?(f(c,M(l)),f=y,a=null):(d&&(l[a]=b),a=null,++m===r&&(f(void 0,l),f=B))}}f=f||y;var r,q,m=0,l={},h=2===f.length,n=h?k:g;Array.isArray(a)?(r=a.length,b(a,e,n)):a&&(z&&
a[z]?(r=a.size,c(a,e,n)):"object"===typeof a&&(q=Object.keys(a),r=q.length,d(a,e,n,q)));if(!r)return h?f(void 0,{}):f({})}}(ba,function(b,d,c,a){var e,f,g=-1,k=a.length;if(3===d.length)for(;++g<k;)e=a[g],f=b[e],d(f,e,c(e,f));else for(;++g<k;)e=a[g],f=b[e],d(f,c(e,f))},function(b,d,c){var a,e,f=b[z]();if(3===d.length)for(;!1===(e=f.next()).done;)b=e.value[0],a=e.value[1],d(a,b,c(b,a));else for(;!1===(e=f.next()).done;)a=e.value[1],d(a,c(e.value[0],a))}),cb=function(b,d,c){return function(a,e,f,g){function k(a,
b){a?(f(a,Array.isArray(m)?O(m):M(m)),f=y):++l===r?f(void 0,m):!1===b&&(f(void 0,Array.isArray(m)?O(m):M(m)),f=y)}f=f||y;var r,q,m,l=0;Array.isArray(a)?(r=a.length,m=void 0!==g?g:[],b(a,m,e,k)):a&&(z&&a[z]?(r=a.size,m=void 0!==g?g:{},c(a,m,e,k)):"object"===typeof a&&(q=Object.keys(a),r=q.length,m=void 0!==g?g:{},d(a,m,e,k,q)));r||f(void 0,void 0!==g?g:m||{})}}(function(b,d,c,a){var e=-1,f=b.length;if(4===c.length)for(;++e<f;)c(d,b[e],e,E(a));else for(;++e<f;)c(d,b[e],E(a))},function(b,d,c,a,e){var f,
g=-1,k=e.length;if(4===c.length)for(;++g<k;)f=e[g],c(d,b[f],f,E(a));else for(;++g<k;)c(d,b[e[g]],E(a))},function(b,d,c,a){var e=b[z]();if(4===c.length)for(;!1===(b=e.next()).done;)c(d,b.value[1],b.value[0],E(a));else for(;!1===(b=e.next()).done;)c(d,b.value[1],E(a))}),db=function(b,d,c){return function(a,e,f){function g(a){var b=!1;return function(c,d){b&&B();b=!0;r[q]={value:a,criteria:d};c?(f(c),f=y):++q===k&&(r.sort(da),f(void 0,T(r,"value")),f=B)}}f=f||y;var k,r,q=0;if(Array.isArray(a))k=a.length,
r=Array(k),b(a,e,g);else if(a)if(z&&a[z])k=a.size,r=Array(k),c(a,e,g);else if("object"===typeof a){var m=Object.keys(a);k=m.length;r=Array(k);d(a,e,g,m)}k||f(void 0,[])}}(Y,Z,aa),eb=function(b,d,c){return function(a,e,f){function g(a,b){b&&Array.prototype.push.apply(q,Array.isArray(b)?b:[b]);a?(f(a,O(q)),f=y):++r===k&&f(void 0,q)}f=f||y;var k,r=0,q=[];if(Array.isArray(a))k=a.length,b(a,e,g);else if(a)if(z&&a[z])k=a.size,c(a,e,g);else if("object"===typeof a){var m=Object.keys(a);k=m.length;d(a,e,g,
m)}k||f(void 0,q)}}(ja,ka,la),Qa=function(b,d){return function(c,a){function e(b){return function(c,d){null===b&&B();c?(a(c,k),a=y,b=null):(k[b]=2>=arguments.length?d:I(arguments,1),b=null,++r===f&&(a(void 0,k),a=B))}}a=a||y;var f,g,k,r=0;Array.isArray(c)?(f=c.length,k=Array(f),b(c,e)):c&&"object"===typeof c&&(g=Object.keys(c),f=g.length,k={},d(c,e,g));f||a(void 0,k)}}(function(b,d){for(var c=-1,a=b.length;++c<a;)b[c](d(c))},function(b,d,c){for(var a,e=-1,f=c.length;++e<f;)a=c[e],b[a](d(a))}),C={VERSION:"1.5.1",
each:S,eachSeries:R,eachLimit:U,forEach:S,forEachSeries:R,forEachLimit:U,eachOf:S,eachOfSeries:R,eachOfLimit:U,forEachOf:S,forEachOfSeries:R,forEachOfLimit:U,map:Va,mapSeries:function(b,d,c){function a(){d(b[v],q)}function e(){d(b[v],v,q)}function f(){d(n.next().value[1],q)}function g(){p=n.next().value;d(p[1],p[0],q)}function k(){d(b[h[v]],q)}function r(){l=h[v];d(b[l],l,q)}function q(a,b){x[v]=b;a?(c(a,O(x)),c=B):++v>=m?(c(void 0,x),c=B):u?C.nextTick(t):(u=!0,t());u=!1}c=c||y;var m,l,h,n,p,x,t,
u=!0,v=0;Array.isArray(b)?(m=b.length,t=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),t=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,t=3===d.length?r:k));if(!m)return c(void 0,[]);x=Array(m);t();u=!1},mapLimit:function(b,d,c,a){function e(){h=A++;h<l&&c(b[h],m(h))}function f(){h=A++;h<l&&c(b[h],h,m(h))}function g(){!1===(t=x.next()).done&&c(t.value[1],m(A++))}function k(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],m(A++))}function r(){h=A++;h<l&&c(b[p[h]],m(h))}function q(){h=
A++;h<l&&(n=p[h],c(b[n],n,m(h)))}function m(b){return function(c,d){null===b&&B();u[b]=d;b=null;c?(a(c,O(u)),v=a=y):++D>=l?(a(void 0,u),a=B):w?C.nextTick(v):(w=!0,v());w=!1}}a=a||y;var l,h,n,p,x,t,u,v,w=!0,A=0,D=0;Array.isArray(b)?(l=b.length,v=3===c.length?f:e):b&&(z&&b[z]?(l=b.size,x=b[z](),v=3===c.length?k:g):"object"===typeof b&&(p=Object.keys(b),l=p.length,v=3===c.length?q:r));if(!l||isNaN(d)||1>d)return a(void 0,[]);u=Array(l);J(d>l?l:d,v);w=!1},mapValues:Wa,mapValuesSeries:function(b,d,c){function a(){l=
v;d(b[v],q)}function e(){l=v;d(b[v],v,q)}function f(){p=n.next().value;l=p[0];d(p[1],q)}function g(){p=n.next().value;l=p[0];d(p[1],l,q)}function k(){l=h[v];d(b[l],q)}function r(){l=h[v];d(b[l],l,q)}function q(a,b){u[l]=b;a?(c(a,M(u)),c=B):++v>=m?(c(void 0,u),c=B):t?C.nextTick(x):(t=!0,x());t=!1}c=c||y;var m,l,h,n,p,x,t=!0,u={},v=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:
k));if(!m)return c(void 0,u);x();t=!1},mapValuesLimit:function(b,d,c,a){function e(){h=A++;h<l&&c(b[h],m(h))}function f(){h=A++;h<l&&c(b[h],h,m(h))}function g(){!1===(t=x.next()).done&&c(t.value[1],m(t.value[0]))}function k(){!1===(t=x.next()).done&&(n=t.value[0],c(t.value[1],n,m(n)))}function r(){h=A++;h<l&&(n=p[h],c(b[n],m(n)))}function q(){h=A++;h<l&&(n=p[h],c(b[n],n,m(n)))}function m(b){return function(c,d){null===b&&B();w[b]=d;b=null;c?(a(c,M(w)),u=a=y):++D>=l?(a(void 0,w),a=B):v?C.nextTick(u):
(v=!0,u());v=!1}}a=a||y;var l,h,n,p,x,t,u,v=!0,w={},A=0,D=0;Array.isArray(b)?(l=b.length,u=3===c.length?f:e):b&&(z&&b[z]?(l=b.size,x=b[z](),u=3===c.length?k:g):"object"===typeof b&&(p=Object.keys(b),l=p.length,u=3===c.length?q:r));if(!l||isNaN(d)||1>d)return a(void 0,w);J(d>l?l:d,u);v=!1},filter:Ka,filterSeries:La,filterLimit:Ma,select:Ka,selectSeries:La,selectLimit:Ma,reject:Xa,rejectSeries:Ya,rejectLimit:Za,detect:za,detectSeries:Na,detectLimit:Oa,pick:bb,pickSeries:function(b,d,c){function a(){h=
A;n=b[A];d(n,E)}function e(){h=A;n=b[A];d(n,A,E)}function f(){t=x.next().value;h=t[0];n=t[1];d(n,E)}function g(){t=x.next().value;h=t[0];n=t[1];d(n,h,E)}function k(){h=p[A];n=b[h];d(n,E)}function r(){h=p[A];n=b[h];d(n,h,E)}function q(a){a&&(w[h]=n);++A>=l?(c(w),c=B):v?C.nextTick(u):(v=!0,u());v=!1}function m(a,b){a?(c(a,w),c=B):(b&&(w[h]=n),++A>=l?(c(void 0,w),c=B):v?C.nextTick(u):(v=!0,u()),v=!1)}c=c||y;var l,h,n,p,x,t,u,v=!0,w={},A=0,D=2===c.length,E=D?m:q;Array.isArray(b)?(l=b.length,u=3===d.length?
e:a):b&&(z&&b[z]?(l=b.size,x=b[z](),u=3===d.length?g:f):"object"===typeof b&&(p=Object.keys(b),l=p.length,u=3===d.length?r:k));if(!l)return D?c(void 0,{}):c({});u();v=!1},pickLimit:function(b,d,c,a){function e(){n=E++;n<h&&(x=b[n],c(x,F(x,n)))}function f(){n=E++;n<h&&(x=b[n],c(x,n,F(x,n)))}function g(){!1===(v=u.next()).done&&(x=v.value[1],c(x,F(x,v.value[0])))}function k(){!1===(v=u.next()).done&&(p=v.value[0],x=v.value[1],c(x,p,F(x,p)))}function r(){E<h&&(p=t[E++],x=b[p],c(x,F(x,p)))}function q(){E<
h&&(p=t[E++],x=b[p],c(x,p,F(x,p)))}function m(b,c){return function(d){null===c&&B();d&&(D[c]=b);c=null;++H>=h?(a(D),a=B):A?C.nextTick(w):(A=!0,w());A=!1}}function l(b,c){return function(d,e){null===c&&B();d?(a(d,M(D)),w=a=y,c=null):(e&&(D[c]=b),c=null,++H>=h?(a(void 0,D),a=B):A?C.nextTick(w):(A=!0,w()),A=!1)}}a=a||y;var h,n,p,x,t,u,v,w,A=!0,D={},E=0,H=0,G=2===a.length,F=G?l:m;Array.isArray(b)?(h=b.length,w=3===c.length?f:e):b&&(z&&b[z]?(h=b.size,u=b[z](),w=3===c.length?k:g):"object"===typeof b&&(t=
Object.keys(b),h=t.length,w=3===c.length?q:r));if(!h||isNaN(d)||1>d)return G?a(void 0,{}):a({});J(d>h?h:d,w);A=!1},reduce:V,inject:V,foldl:V,reduceRight:xa,foldr:xa,transform:cb,transformSeries:function(b,d,c,a){function e(){d(u,b[w],m)}function f(){d(u,b[w],w,m)}function g(){d(u,p.next().value[1],m)}function k(){x=p.next().value;d(u,x[1],x[0],m)}function r(){d(u,b[n[w]],m)}function q(){h=n[w];d(u,b[h],h,m)}function m(a,b){a?(c(a,u),c=B):++w>=l?(c(void 0,u),c=B):!1===b?(c(void 0,u),c=B):v?C.nextTick(t):
(v=!0,t());v=!1}c=c||y;var l,h,n,p,x,t,u,v=!0,w=0;Array.isArray(b)?(l=b.length,u=void 0!==a?a:[],t=4===d.length?f:e):b&&(z&&b[z]?(l=b.size,p=b[z](),u=void 0!==a?a:{},t=4===d.length?k:g):"object"===typeof b&&(n=Object.keys(b),l=n.length,u=void 0!==a?a:{},t=4===d.length?q:r));if(!l)return c(void 0,void 0!==a?a:u||{});t();v=!1},transformLimit:function(b,d,c,a,e){function f(){n=D++;n<h&&c(w,b[n],E(l))}function g(){n=D++;n<h&&c(w,b[n],n,E(l))}function k(){!1===(u=t.next()).done&&c(w,u.value[1],E(l))}function r(){!1===
(u=t.next()).done&&c(w,u.value[1],u.value[0],E(l))}function q(){n=D++;n<h&&c(w,b[x[n]],E(l))}function m(){n=D++;n<h&&(p=x[n],c(w,b[p],p,E(l)))}function l(b,c){b?(a(b,Array.isArray(w)?O(w):M(w)),v=a=y):++F>=h?(a(void 0,w),a=B):!1===c?(a(void 0,Array.isArray(w)?O(w):M(w)),v=a=y):A?C.nextTick(v):(A=!0,v());A=!1}a=a||y;var h,n,p,x,t,u,v,w,A=!0,D=0,F=0;Array.isArray(b)?(h=b.length,w=void 0!==e?e:[],v=4===c.length?g:f):b&&(z&&b[z]?(h=b.size,t=b[z](),w=void 0!==e?e:{},v=4===c.length?r:k):"object"===typeof b&&
(x=Object.keys(b),h=x.length,w=void 0!==e?e:{},v=4===c.length?m:q));if(!h||isNaN(d)||1>d)return a(void 0,void 0!==e?e:w||{});J(d>h?h:d,v);A=!1},sortBy:db,sortBySeries:function(b,d,c){function a(){h=b[w];d(h,q)}function e(){h=b[w];d(h,w,q)}function f(){h=p.next().value[1];d(h,q)}function g(){x=p.next().value;h=x[1];d(h,x[0],q)}function k(){h=b[n[w]];d(h,q)}function r(){l=n[w];h=b[l];d(h,l,q)}function q(a,b){t[w]={value:h,criteria:b};a?(c(a),c=B):++w>=m?(t.sort(da),c(void 0,T(t,"value")),c=B):v?C.nextTick(u):
(v=!0,u());v=!1}c=c||y;var m,l,h,n,p,x,t,u,v=!0,w=0;Array.isArray(b)?(m=b.length,u=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,p=b[z](),u=3===d.length?g:f):"object"===typeof b&&(n=Object.keys(b),m=n.length,u=3===d.length?r:k));if(!m)return c(void 0,[]);t=Array(m);u();v=!1},sortByLimit:function(b,d,c,a){function e(){D<l&&(p=b[D++],c(p,m(p)))}function f(){h=D++;h<l&&(p=b[h],c(p,h,m(p)))}function g(){!1===(u=t.next()).done&&(p=u.value[1],c(p,m(p)))}function k(){!1===(u=t.next()).done&&(p=u.value[1],c(p,
u.value[0],m(p)))}function r(){D<l&&(p=b[x[D++]],c(p,m(p)))}function q(){D<l&&(n=x[D++],p=b[n],c(p,n,m(p)))}function m(b){var c=!1;return function(d,e){c&&B();c=!0;v[E]={value:b,criteria:e};d?(a(d),w=a=y):++E>=l?(v.sort(da),a(void 0,T(v,"value")),a=B):A?C.nextTick(w):(A=!0,w());A=!1}}a=a||y;var l,h,n,p,x,t,u,v,w,A=!1,D=0,E=0;Array.isArray(b)?(l=b.length,w=3===c.length?f:e):b&&(z&&b[z]?(l=b.size,t=b[z](),w=3===c.length?k:g):"object"===typeof b&&(x=Object.keys(b),l=x.length,w=3===c.length?q:r));if(!l||
isNaN(d)||1>d)return a(void 0,[]);v=Array(l);J(d>l?l:d,w)},some:ya,someSeries:function(b,d,c){function a(a){c(!!a)}function e(a,b){c(a,!!b)}c=c||y;Na(b,d,2===c.length?e:a)},someLimit:function(b,d,c,a){function e(b){a(!!b)}function f(b,c){a(b,!!c)}a=a||y;Oa(b,d,c,2===a.length?f:e)},any:ya,every:Pa,all:Pa,everySeries:$a,everyLimit:ab,concat:eb,concatSeries:function(b,d,c){function a(){d(b[v],q)}function e(){d(b[v],v,q)}function f(){d(n.next().value[1],q)}function g(){p=n.next().value;d(p[1],p[0],q)}
function k(){d(b[h[v]],q)}function r(){l=h[v];d(b[l],l,q)}function q(a,b){b&&Array.prototype.push.apply(u,Array.isArray(b)?b:[b]);a?(c(a,u),c=B):++v>=m?(c(void 0,u),c=B):t?C.nextTick(x):(t=!0,x());t=!1}c=c||y;var m,l,h,n,p,x,t=!0,u=[],v=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:k));if(!m)return c(void 0,u);x();t=!1},concatLimit:function(b,d,c,a){function e(){w<h&&c(b[w++],
E(m))}function f(){n=w++;n<h&&c(b[n],n,E(m))}function g(){!1===(t=x.next()).done&&c(t.value[1],E(m))}function k(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],E(m))}function r(){w<h&&c(b[D[w++]],E(m))}function q(){w<h&&(p=D[w++],c(b[p],p,E(m)))}function m(b,c){c&&Array.prototype.push.apply(l,Array.isArray(c)?c:[c]);b?(a(b,l),a=y):++A>=h?(a(void 0,l),a=B):v?C.nextTick(u):(v=!0,u());v=!1}a=a||y;var l=[],h,n,p,x,t,u,v=!0,w=0,A=0;if(Array.isArray(b))h=b.length,u=3===c.length?f:e;else if(b)if(z&&b[z])h=
b.size,x=b[z](),u=3===c.length?k:g;else if("object"===typeof b){var D=Object.keys(b);h=D.length;u=3===c.length?q:r}if(!h||isNaN(d)||1>d)return a(void 0,l);J(d>h?h:d,u);v=!1},parallel:Qa,series:Aa,parallelLimit:ea,waterfall:function(b,d){function c(){f=!1;switch(q.length){case 0:case 1:return r(a);case 2:return r(q[1],a);case 3:return r(q[1],q[2],a);case 4:return r(q[1],q[2],q[3],a);case 5:return r(q[1],q[2],q[3],q[4],a);case 6:return r(q[1],q[2],q[3],q[4],q[5],a);default:return q=I(q,1),q.push(a),
r.apply(null,q)}}function a(a){f&&B();a?(d(a),d=B):(f=!0,++e>=k?(d.apply(null,F(arguments)),d=B):(r=b[e],q=arguments,g?C.nextTick(c):(g=!0,c()),g=!1))}d=d||y;if(fa(b,d)){var e=0,f=!1,g=!0,k=b.length,r=b[e],q=[];c();g=!1}},angelFall:Ba,angelfall:Ba,whilst:function(b,d,c){function a(){b()?d(function(b){if(b)return c(b);e?C.nextTick(a):(e=!0,a());e=!1}):c()}c=c||y;var e=!0;a();e=!1},doWhilst:function(b,d,c){function a(){b(function(b,g){if(b)return c(b);(2>=arguments.length?d(g):d.apply(null,I(arguments,
1)))?(e?C.nextTick(a):(e=!0,a()),e=!1):c()})}c=c||y;var e=!0;a();e=!1},until:function(b,d,c){function a(){b()?c():d(function(b){if(b)return c(b);e?C.nextTick(a):(e=!0,a());e=!1})}c=c||y;var e=!0;a();e=!1},doUntil:function(b,d,c){function a(){b(function(b,g){if(b)return c(b);(2>=arguments.length?d(g):d.apply(null,I(arguments,1)))?c():(e?C.nextTick(a):(e=!0,a()),e=!1)})}c=c||y;var e=!0;a();e=!1},during:function(b,d,c){function a(a,b){if(a)return c(a);b?d(e):c()}function e(d){if(d)return c(d);b(a)}c=
c||y;b(a)},doDuring:function(b,d,c){function a(a,d){if(a)return c(a);d?b(e):c()}function e(b,e){if(b)return c(b);switch(arguments.length){case 0:case 1:d(a);break;case 2:d(e,a);break;default:var k=I(arguments,1);k.push(a);d.apply(null,k)}}c=c||y;a(null,!0)},forever:function(b,d){function c(){b(a)}function a(a){if(a){if(d)return d(a);throw a;}e?C.nextTick(c):(e=!0,c());e=!1}var e=!0;c();e=!1},compose:function(){return Ca.apply(null,Ra(arguments))},seq:Ca,applyEach:Da(S),applyEachSeries:Da(R),queue:function(b,
d){function c(b,c,d){a.started=!0;var k=Array.isArray(b)?b:[b];void 0!==b&&k.length?(c="function"===typeof c?c:null,L(k,function(b){b={task:b,callback:c};d?a.tasks.unshift(b):a.tasks.push(b);"function"===typeof a.saturated&&a.length()===a.concurrency&&a.saturated();C.nextTick(a.process)})):a.idle()&&C.nextTick(function(){"function"===typeof a.drain&&a.drain()})}var a=Ea(b,d);a.unshift=function(a,b){c(a,b,!0)};a.push=function(a,b){c(a,b)};return a},priorityQueue:Ea,cargo:function(b,d){var c=!1,a={tasks:[],
payload:d,saturated:y,empty:y,drain:y,drained:!0,push:function(b,c){b=Array.isArray(b)?b:[b];c="function"===typeof c?c:y;L(b,function(b){a.tasks.push({data:b,callback:c});a.drained=!1;"function"===typeof a.saturated&&a.length()===a.payload&&a.saturated()});C.nextTick(a.process)},process:function(){if(!c)if(a.length()){var e="number"===typeof a.payload?a.tasks.splice(0,d):a.tasks,f=T(e,"data");a.length()||"function"!==typeof a.empty||a.empty();c=!0;b(f,function(){c=!1;var b=F(arguments);L(e,function(a){a.callback&&
a.callback.apply(null,b)});a.process()})}else"function"!==typeof a.drain||a.drained||a.drain(),a.drained=!0},length:function(){return a.tasks.length},running:function(){return c}};return a},auto:function(b,d){function c(a){g.unshift(a)}function a(){f--;L(g.slice(0),function(a){a()})}d=d?E(d):y;var e=Object.keys(b),f=e.length;if(!f)return d();var g=[],k={};c(function(){f||d(void 0,k)});N(b,function(b,e){function f(b){var c=I(arguments,1);1>=c.length&&(c=c[0]);if(b){var g=M(k);g[e]=c;d(b,g);d=y}else k[e]=
c,C.nextTick(a)}function l(){return!k.hasOwnProperty(e)&&Sa(p,function(b){return k.hasOwnProperty(b)})}function h(){if(l()){var b;a:{b=-1;for(var a=g.length;++b<a;)if(g[b]===h)break a;b=void 0}0<=b&&g.splice(b,1);x(f,k)}}b=Array.isArray(b)?b:[b];var n=b.length,p=b.slice(0,n-1),x=b[n-1];if(l())return x(f,k);c(h)},e)},retry:function(b,d,c){function a(a,f){c=a||c||y;var g,k;Fa(b,function(a,c){d(function(d,e){g=d;k=e;if(!d)return c(!0);c(d&&a===b-1)},f)},function(){c(g,k)})}"function"===typeof b&&(c=
d,d=b,b=5);b=parseInt(b,10)||5;return"function"===typeof c?a():a},iterator:function(b){function d(e){var f=function(){c&&b[a[e]||e].apply(null,F(arguments));return f.next()};f.next=function(){return e<c-1?d(e+1):null};return f}var c=0,a=[];Array.isArray(b)?c=b.length:(a=Object.keys(b),c=a.length);return d(0)},apply:function(b){switch(arguments.length){case 0:case 1:return b;case 2:return b.bind(null,arguments[1]);case 3:return b.bind(null,arguments[1],arguments[2]);case 4:return b.bind(null,arguments[1],
arguments[2],arguments[3]);case 5:return b.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var d=arguments.length,c=0,a=Array(d);for(a[c]=null;++c<d;)a[c]=arguments[c];return b.bind.apply(b,a)}},nextTick:Ja,safeNextTick:ia,setImmediate:X,times:function(b,d,c){function a(a){return function(d,k){null===a&&B();e[a]=k;a=null;d?(c(d),c=y):0===--b&&c(void 0,e)}}c=c||y;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var e=Array(b);J(b,function(b){d(b,a(b))})},timesSeries:Fa,timesLimit:function(b,
d,c,a){function e(){var a=r++;a<b&&c(a,f(a))}function f(c){return function(d,f){null===c&&B();g[c]=f;c=null;d?(a(d),a=y):++q>=b?(a(void 0,g),a=B):k?C.nextTick(e):(k=!0,e());k=!1}}a=a||y;b=+b;if(isNaN(b)||1>b||isNaN(d)||1>d)return a(void 0,[]);var g=Array(b),k=!0,r=0,q=0;J(d>b?b:d,e);k=!1},memoize:function(b,d){d=d||function(a){return a};var c={},a={},e=function(){function e(){var b=F(arguments);c[r]=b;var d=a[r];delete a[r];for(var f=-1,g=d.length;++f<g;)d[f].apply(null,b)}var g=F(arguments),k=g.pop(),
r=d.apply(null,g);if(c.hasOwnProperty(r))C.nextTick(function(){k.apply(null,c[r])});else{if(a.hasOwnProperty(r))return a[r].push(k);a[r]=[k];g.push(e);b.apply(null,g)}};e.memo=c;e.unmemoized=b;return e},unmemoize:function(b){return function(){return(b.unmemoized||b).apply(null,arguments)}},ensureAsync:function(b){return function(){var d=!0,c=F(arguments),a=c.pop();c.push(function(){var b=arguments;d?C.safeNextTick(function(){a.apply(null,b)}):a.apply(null,b)});b.apply(this,c);d=!1}},constant:function(){var b=
[null].concat(F(arguments));return function(d){d.apply(this,b)}},asyncify:Ga,wrapSync:Ga,log:ga("log"),dir:ga("dir"),createLogger:ga,noConflict:function(){P.async=Ua;return C},eventEmitter:function(b){b=b||{};var d=b.limit;return b.parallel&&!d?new G(Qa):b.parallel||b.parallelLimit?new G(ea,d):new G(b.emitter)},EventEmitter:G,safe:void 0};C.safe=pa();W[typeof define]&&define&&define.amd?define([],function(){return C}):W[typeof module]&&module&&module.exports?module.exports=C:P&&W[typeof P.async]?
P.neo_async=C:P.async=C;var ha={__ONCE__:!0};G.prototype.getListeners=function(b){function d(b){b=b||[];var a=Array(b.length);L(b,function(b,c){a[c]=b.func});return a}var c=this._events;if(b)return d(c[b]);var a={};N(c,function(b,c){a[c]=d(b)});return a};G.prototype.addListener=function d(c,a){var e=this;if("object"===typeof c)return N(c,function(a,c){d.call(e,c,a)}),e;if(e.running(c))return e.queue(c,"addListener",a);e._events[c]=e._events[c]||[];Array.isArray(a)?L(a,function(a){e._events[c].push(Ha(a))}):
e._events[c].push(Ha(a));return e};G.prototype.addOnceListener=function c(a,e){var f=this;if("object"===typeof a)return N(a,function(a,e){c.call(f,e,a)}),f;Array.isArray(e)?L(e,function(a,c){e[c]=Ia(a)}):e=Ia(e);return f.addListener(a,e)};G.prototype.removeListener=function a(e,f){var g=this;if("object"===typeof e)return N(e,function(e,f){a.call(g,f,e)}),g;if(g.running(e))return g.queue(e,"removeListener",f);var k=g._events[e]||[];if(!k.length)return g;if(Array.isArray(f))return ca(f,function(f){a.call(g,
f,e)}),g;ca(k,function(a,e){a.func===f&&k.splice(e,1)});return g};G.prototype.removeEvent=function e(f){var g=this;if(!f)return N(g._events,function(f,r){e.call(g,r)}),g;(g._events[f]||[]).length&&delete g._events[f];return g};G.prototype.running=function(e){return this._runing[e]};G.prototype.queue=function(e,f,g,k){this._queue[e]=this._queue[e]||[];this._queue[e].push([f,g,k]);return this};G.prototype.resolve=function(e){if(this._runing[e])return this;var f=this._queue[e]||[];if(!f.length)return this;
f=f.shift();this[f[0]](e,f[1],f[2]);return this.resolve(e)};G.prototype.emit=function(e,f,g){function k(g,h){g?f(g):(ca(q,function(e,f){e.ONCE===ha&&q.splice(f,1)}),f(void 0,h));r._runing[e]=!1;r.resolve(e)}f=f||y;var r=this;if(r.running(e))return r.queue(e,"emit",f,g);var q=r._events[e]||[];if(!q.length)return f(),r;r._runing[e]=!0;var m=r._emitter,m=g?m.bind(g):m;m===ea?m(q,r._limit,k):m(q,k);return r};G.prototype.on=G.prototype.addListener;G.prototype.once=G.prototype.addOnceListener;G.prototype.off=
G.prototype.removeListener;G.prototype.removeAllListener=G.prototype.removeEvent;G.prototype.trigger=G.prototype.emit}).call(this);
(function(){function H(b){for(var d=-1,c=b.length,a=Array(c);++d<c;)a[d]=b[d];return a}function I(b,d){var c=-1,a=b.length-d;if(0>=a)return[];for(var e=Array(a);++c<a;)e[c]=b[c+d];return e}function Q(b){for(var d=-1,c=b.length,a=[];++d<c;){var e=b[d];e&&(a[a.length]=e)}return a}function Xa(b){for(var d=-1,c=b.length,a=Array(c),e=c;++d<c;)a[--e]=b[d];return a}function ja(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,F(c));else for(;++a<e;)d(b[a],F(c))}function ka(b,d,c,a){var e,f=
-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,F(c));else for(;++f<g;)d(b[a[f]],F(c))}function la(b,d,c){b=b[z]();var a;if(3===d.length)for(;!1===(a=b.next()).done;)d(a.value[1],a.value[0],c);else for(;!1===(a=b.next()).done;)d(a.value[1],c)}function ma(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,c(a));else for(;++a<e;)d(b[a],c(a))}function Z(b,d,c){var a,e=-1,f=b.length;if(3===d.length)for(;++e<f;)a=b[e],d(a,e,c(a));else for(;++e<f;)a=b[e],d(a,c(a))}function aa(b,d,
c,a){var e,f,g=-1,l=a.length;if(3===d.length)for(;++g<l;)e=a[g],f=b[e],d(f,e,c(f));else for(;++g<l;)f=b[a[g]],d(f,c(f))}function ba(b,d,c){var a,e=b[z]();if(3===d.length)for(;!1===(a=e.next()).done;)b=a.value[1],d(b,a.value[0],c(b));else for(;!1===(a=e.next()).done;)b=a.value[1],d(b,c(b))}function T(b,d,c){var a,e=-1,f=b.length;if(3===d.length)for(;++e<f;)a=b[e],d(a,e,c(e,a));else for(;++e<f;)a=b[e],d(a,c(e,a))}function na(b,d,c,a){var e,f,g=-1,l=a.length;if(3===d.length)for(;++g<l;)e=a[g],f=b[e],
d(f,e,c(g,f));else for(;++g<l;)f=b[a[g]],d(f,c(g,f))}function oa(b,d,c){var a,e=-1,f=b[z]();if(3===d.length)for(;!1===(a=f.next()).done;)b=a.value[0],a=a.value[1],d(a,b,c(++e,a));else for(;!1===(a=f.next()).done;)a=a.value[1],d(a,c(++e,a))}function pa(b,d,c,a){var e,f,g=-1,l=a.length;if(3===d.length)for(;++g<l;)e=a[g],f=b[e],d(f,e,c(e,f));else for(;++g<l;)e=a[g],f=b[e],d(f,c(e,f))}function qa(b,d,c){var a,e,f=b[z]();if(3===d.length)for(;!1===(e=f.next()).done;)b=e.value[0],a=e.value[1],d(a,b,c(b,
a));else for(;!1===(e=f.next()).done;)a=e.value[1],d(a,c(e.value[0],a))}function L(b,d){for(var c=-1,a=b.length;++c<a;)d(b[c],c);return b}function ca(b,d){for(var c=b.length;c--;)d(b[c],c);return b}function N(b,d,c){c=c||Object.keys(b);for(var a=-1,e=c.length;++a<e;){var f=c[a];d(b[f],f)}return b}function J(b,d){for(var c=-1;++c<b;)d(c)}function Ya(b,d){for(var c=b.length,a=-1;++a<c;)if(!d(b[a]))return!1;return!0}function O(b){for(var d=b.length,c=-1,a=Array(d);++c<d;)a[c]=b[c];return a}function M(b){for(var d=
Object.keys(b),c=d.length,a=-1,e={};++a<c;){var f=d[a];e[f]=b[f]}return e}function U(b,d){for(var c=-1,a=b.length,e=Array(a);++c<a;)e[c]=(b[c]||{})[d];return e}function da(b,d){return b.criteria-d.criteria}function F(b){return function(d,c){null===b&&A();b(d,c);b=null}}function ra(){function b(b,c){var d=a.test(c)?0:e.test(c)?2:1,f=b.length;g[c]=function(){var a=H(arguments),c=a[d];switch(c.length){case 1:a[d]=function(a){D.safeNextTick(function(){c(a)})};break;case 2:a[d]=function(a,b){D.safeNextTick(function(){c(a,
b)})};break;case 3:a[d]=function(a,b,d){D.safeNextTick(function(){c(a,b,d)})};break;case 4:a[d]=function(a,b,d,e){D.safeNextTick(function(){c(a,b,d,e)})};break;default:a[d]=function(){var a=H(arguments);D.safeNextTick(function(){c.apply(null,a)})}}switch(f){case 2:return b(a[0],a[1]);case 3:return b(a[0],a[1],a[2]);case 4:return b(a[0],a[1],a[2],a[3]);case 5:return b(a[0],a[1],a[2],a[3],a[4])}}}function d(a,b){function c(){function b(a){return"function"!==typeof a?a:function(){var b=H(arguments);
D.safeNextTick(function(){a.apply(null,b)})}}var e=H(arguments),f=e[0];Array.isArray(f)?L(f,function(a,c){f[c]=b(a)}):f&&"object"===typeof f&&N(f,function(a,c){f[c]=b(a)});switch(d){case 2:a(e[0],e[1]);break;case 3:a(e[0],e[1],e[2])}}if(/^waterfall$/.test(b))g[b]=Za;else{var d=a.length;g[b]=c}}var c=/^(each|foreach|map|filter|select|reject|detect|pick|reduce|inject|fold|transform|sortby|some|any|every|all|concat|times)|(whilst|until|during)$|^forever$/,a=new RegExp(/^do|^forever$/),e=new RegExp(/^reduce|Limit$/),
f=new RegExp(/^parallel|^(series|waterfall|auto)$/),g={};N(D,function(a,e){if("function"===typeof a){if(f.test(e))return d(a,e);if(c.test(e.toLowerCase()))return b(a,e)}g[e]=a});g.safe=ra;return g}function sa(b,d,c,a){var e,f;a?(e=Array,f=O):(e=function(){return{}},f=M);return function(a,l,r){function p(a){return function(b,c){null===a&&A();h[a]=c;a=null;b?(r(b,f(h)),r=y):++n===m&&r(void 0,h)}}r=r||y;var m,q,h,n=0;Array.isArray(a)?(m=a.length,h=e(m),b(a,l,p)):a&&(z&&a[z]?(m=a.size,h=e(m),c(a,l,p)):
"object"===typeof a&&(q=Object.keys(a),m=q.length,h=e(m),d(a,l,p,q)));m||r(void 0,e())}}function ta(b,d,c,a){return function(e,f,g){function l(b,c){return function(d){null===b&&A();!!d===a&&(q[b]=c);b=null;++h===p&&g(Q(q))}}function r(b,c){return function(d,e){null===b&&A();d?(g(d,Q(q)),g=y,b=null):(!!e===a&&(q[b]=c),b=null,++h===p&&g(void 0,Q(q)))}}g=g||y;var p,m,q,h=0,n=2===g.length,k=n?r:l;Array.isArray(e)?(p=e.length,q=Array(p),b(e,f,k)):e&&(z&&e[z]?(p=e.size,q=Array(p),c(e,f,k)):"object"===typeof e&&
(m=Object.keys(e),p=m.length,q=Array(p),d(e,f,k,m)));if(!p)return n?g(void 0,[]):g([])}}function ua(b){return function(d,c,a){function e(){k=d[B];c(k,G)}function f(){k=d[B];c(k,B,G)}function g(){k=t.next().value[1];c(k,G)}function l(){u=t.next().value;k=u[1];c(k,u[0],G)}function r(){n=x[B];k=d[n];c(k,G)}function p(){n=x[B];k=d[n];c(k,n,G)}function m(c){!!c===b&&(C[C.length]=k);++B>=h?(a(C),a=A):w?D.nextTick(v):v()}function q(c,d){c?(a(c,C),a=A):(!!d===b&&(C[C.length]=k),++B>=h?(a(void 0,C),a=A):w?
D.nextTick(v):v())}a=a||y;var h,n,k,x,t,u,v,w=!0,B=0,C=[],K=2===a.length,G=K?q:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?l:g):"object"===typeof d&&(x=Object.keys(d),h=x.length,v=3===c.length?p:r));if(!h)return K?a(void 0,[]):a([]);v();w=!1}}function wa(b){return function(d,c,a,e){function f(){k=G++;k<n&&(t=d[k],a(t,E(t,k)))}function g(){k=G++;k<n&&(t=d[k],a(t,k,E(t,k)))}function l(){!1===(w=v.next()).done&&(t=w.value[1],a(t,E(t,++G)))}function r(){!1===
(w=v.next()).done&&(t=w.value[1],a(t,w.value[0],E(t,++G)))}function p(){k=G++;k<n&&(t=d[u[k]],a(t,E(t,k)))}function m(){k=G++;k<n&&(x=u[k],t=d[x],a(t,x,E(t,k)))}function q(a,c){return function(d){null===c&&A();!!d===b&&(C[c]=a);c=null;++va>=n?(e(Q(C)),e=A):K?D.nextTick(B):B()}}function h(a,c){return function(d,f){null===c&&A();d?(e(d,Q(C)),B=e=y,c=null):(!!f===b&&(C[c]=a),c=null,++va===n?(e(void 0,Q(C)),e=A):K?D.nextTick(B):B())}}e=e||y;var n,k,x,t,u,v,w,B,C,K=!0,G=0,va=0,F=2===e.length,E=F?h:q;Array.isArray(d)?
(n=d.length,B=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),B=3===a.length?r:l):"object"===typeof d&&(u=Object.keys(d),n=u.length,B=3===a.length?m:p));if(!n||isNaN(c)||1>c)return F?e(void 0,[]):e([]);C=Array(n);J(c>n?n:c,B);K=!1}}function R(b,d,c){function a(){d(b[u],p)}function e(){d(b[u],u,p)}function f(){d(n.next().value[1],p)}function g(){k=n.next().value;d(k[1],k[0],p)}function l(){d(b[h[u]],p)}function r(){q=h[u];d(b[q],q,p)}function p(a,b){a?c(a):++u>=m?(c(),c=A):!1===b?c():t?D.nextTick(x):
(t=!0,x());t=!1}c=c||y;var m,q,h,n,k,x,t=!0,u=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:l));if(!m)return c();x();t=!1}function V(b,d,c,a){function e(){w<q&&c(b[w++],m)}function f(){h=w++;h<q&&c(b[h],h,m)}function g(){!1===(t=x.next()).done&&c(t.value[1],m)}function l(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],m)}function r(){w<q&&c(b[k[w++]],m)}function p(){h=w++;h<
q&&(n=k[h],c(b[n],n,m))}function m(b,c){b?(a(b),u=a=y):++B>=q?(a(),a=A):!1===c?(a(),a=y):v?D.nextTick(u):(v=!0,u());v=!1}a=a||y;var q,h,n,k,x,t,u,v=!1,w=0,B=0;if(Array.isArray(b))q=b.length,u=3===c.length?f:e;else if(b)if(z&&b[z])q=b.size,x=b[z](),u=3===c.length?l:g;else if("object"===typeof b)k=Object.keys(b),q=k.length,u=3===c.length?p:r;else return a();if(!q||isNaN(d)||1>d)return a();J(d>q?q:d,u);v=!0}function xa(b,d,c,a){return function(e,f,g){function l(b){var c=!1;return function(d){c&&A();
c=!0;!!d===a?(g(b),g=y):++q===p&&(g(),g=A)}}function r(b){var c=!1;return function(d,e){c&&A();c=!0;d?(g(d),g=y):!!e===a?(g(void 0,b),g=y):++q===p&&(g(),g=A)}}g=g||y;var p,m,q=0,h=2===g.length?r:l;Array.isArray(e)?(p=e.length,b(e,f,h)):e&&(z&&e[z]?(p=e.size,c(e,f,h)):"object"===typeof e&&(m=Object.keys(e),p=m.length,d(e,f,h,m)));p||g()}}function ya(b){return function(d,c,a){function e(){k=d[B];c(k,C)}function f(){k=d[B];c(k,B,C)}function g(){k=t.next().value[1];c(k,C)}function l(){u=t.next().value;
k=u[1];c(k,u[0],C)}function r(){k=d[x[B]];c(k,C)}function p(){n=x[B];k=d[n];c(k,n,C)}function m(c){!!c===b?(a(k),a=A):++B>=h?(a(),a=A):w?D.nextTick(v):(w=!0,v());w=!1}function q(c,d){c?(a(c),a=A):!!d===b?(a(void 0,k),a=A):++B>=h?(a(),a=A):w?D.nextTick(v):(w=!0,v());w=!1}a=a||y;var h,n,k,x,t,u,v,w=!0,B=0,C=2===a.length?q:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?l:g):"object"===typeof d&&(x=Object.keys(d),h=x.length,v=3===c.length?p:r));if(!h)return a();
v();w=!1}}function za(b){return function(d,c,a,e){function f(){k=K++;k<n&&(t=d[k],a(t,E(t)))}function g(){k=K++;k<n&&(t=d[k],a(t,k,E(t)))}function l(){!1===(w=v.next()).done&&(t=w.value[1],a(t,E(t)))}function r(){!1===(w=v.next()).done&&(t=w.value[1],a(t,w.value[0],E(t)))}function p(){k=K++;k<n&&(t=d[u[k]],a(t,E(t)))}function m(){K<n&&(x=u[K++],t=d[x],a(t,x,E(t)))}function q(a){var c=!1;return function(d){c&&A();c=!0;!!d===b?(e(a),B=e=y):++G>=n?(e(),e=A):C?D.nextTick(B):(C=!0,B());C=!1}}function h(a){var c=
!1;return function(d,f){c&&A();c=!0;d?(e(d),B=e=y):!!f===b?(e(void 0,a),e=y):++G>=n?(e(),e=A):C?D.nextTick(B):(C=!0,B());C=!1}}e=e||y;var n,k,x,t,u,v,w,B,C=!0,K=0,G=0,E=2===e.length?h:q;Array.isArray(d)?(n=d.length,B=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),B=3===a.length?r:l):"object"===typeof d&&(u=Object.keys(d),n=u.length,B=3===a.length?m:p));if(!n||isNaN(c)||1>c)return e();J(c>n?n:c,B);C=!1}}function Aa(b,d,c,a){return function(e,f,g){function l(b,c){return function(d){null===b&&A();
!!d===a&&(h[b]=c);b=null;++q===p&&g(h)}}function r(b,c){return function(d,e){null===b&&A();d?(g(d,M(h)),g=y,b=null):(!!e===a&&(h[b]=c),b=null,++q===p&&(g(void 0,h),g=A))}}g=g||y;var p,m,q=0,h={},n=2===g.length,k=n?r:l;Array.isArray(e)?(p=e.length,b(e,f,k)):e&&(z&&e[z]?(p=e.size,c(e,f,k)):"object"===typeof e&&(m=Object.keys(e),p=m.length,d(e,f,k,m)));if(!p)return n?g(void 0,{}):g({})}}function Ba(b){return function(d,c,a){function e(){n=C;k=d[C];c(k,G)}function f(){n=C;k=d[C];c(k,C,G)}function g(){u=
t.next().value;n=u[0];k=u[1];c(k,G)}function l(){u=t.next().value;n=u[0];k=u[1];c(k,n,G)}function r(){n=x[C];k=d[n];c(k,G)}function p(){n=x[C];k=d[n];c(k,n,G)}function m(c){!!c===b&&(B[n]=k);++C>=h?(a(B),a=A):w?D.nextTick(v):(w=!0,v());w=!1}function q(c,d){c?(a(c,B),a=A):(!!d===b&&(B[n]=k),++C>=h?(a(void 0,B),a=A):w?D.nextTick(v):(w=!0,v()),w=!1)}a=a||y;var h,n,k,x,t,u,v,w=!0,B={},C=0,E=2===a.length,G=E?q:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?
l:g):"object"===typeof d&&(x=Object.keys(d),h=x.length,v=3===c.length?p:r));if(!h)return E?a(void 0,{}):a({});v();w=!1}}function Ca(b){return function(d,c,a,e){function f(){k=G++;k<n&&(t=d[k],a(t,I(t,k)))}function g(){k=G++;k<n&&(t=d[k],a(t,k,I(t,k)))}function l(){!1===(w=v.next()).done&&(t=w.value[1],a(t,I(t,w.value[0])))}function r(){!1===(w=v.next()).done&&(x=w.value[0],t=w.value[1],a(t,x,I(t,x)))}function p(){G<n&&(x=u[G++],t=d[x],a(t,I(t,x)))}function m(){G<n&&(x=u[G++],t=d[x],a(t,x,I(t,x)))}
function q(a,c){return function(d){null===c&&A();!!d===b&&(E[c]=a);c=null;++F>=n?(e(E),e=A):C?D.nextTick(B):(C=!0,B());C=!1}}function h(a,c){return function(d,f){null===c&&A();d?(e(d,M(E)),B=e=y,c=null):(!!f===b&&(E[c]=a),c=null,++F>=n?(e(void 0,E),e=A):C?D.nextTick(B):(C=!0,B()),C=!1)}}e=e||y;var n,k,x,t,u,v,w,B,C=!0,E={},G=0,F=0,H=2===e.length,I=H?h:q;Array.isArray(d)?(n=d.length,B=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),B=3===a.length?r:l):"object"===typeof d&&(u=Object.keys(d),n=u.length,
B=3===a.length?m:p));if(!n||isNaN(c)||1>c)return H?e(void 0,{}):e({});J(c>n?n:c,B);C=!1}}function W(b,d,c,a){function e(a){n=b[w];c(a,n,m)}function f(a){n=b[w];c(a,n,w,m)}function g(){c(d,x.next().value[1],m)}function l(){t=x.next().value;c(d,t[1],t[0],m)}function r(a){h=k[w];n=b[h];c(a,n,m)}function p(a){h=k[w];n=b[h];c(a,n,h,m)}function m(b,c){b?(a(b,c),a=A):++w>=q?(a(void 0,c),a=A):v?D.nextTick(function(){u(c)}):(v=!0,u(c));v=!1}a=a||y;var q,h,n,k,x,t,u,v=!0,w=0;Array.isArray(b)?(q=b.length,u=
4===c.length?f:e):b&&(z&&b[z]?(q=b.size,x=b[z](),u=4===c.length?l:g):"object"===typeof b&&(k=Object.keys(b),q=k.length,u=4===c.length?p:r));if(!q)return a(void 0,d);u(d);v=!1}function Da(b,d,c,a){function e(a){h=b[--p];c(a,h,r)}function f(a){m=--p;h=b[m];c(a,h,m,r)}function g(a){q=n[--p];h=b[q];c(a,h,r)}function l(a){q=n[--p];h=b[q];c(a,h,q,r)}function r(b,c){b?(a(b,c),a=A):0>=p?(a(void 0,c),a=A):v?D.nextTick(function(){u(c)}):(v=!0,u(c));v=!1}a=a||y;var p,m,q,h,n,k,x,t,u,v=!0;if(Array.isArray(b))p=
b.length,u=4===c.length?f:e;else if(b)if(z&&b[z]){p=b.size;n=Array(p);k=b[z]();m=-1;for(t={};!1===(x=k.next()).done;)q=x.value[0],t[q]=x.value[1],n[++m]=q;b=t;u=4===c.length?l:g}else"object"===typeof b&&(n=Object.keys(b),p=n.length,u=4===c.length?l:g);if(!p)return a(void 0,d);u(d);v=!1}function Ea(b,d,c){function a(a){c(!!a)}function e(a,b){c(a,!!b)}c=c||y;Fa(b,d,2===c.length?e:a)}function Ga(b,d){function c(){g=q;b[q](e)}function a(){g=l[q];b[g](e)}function e(a,b){a?(d(a,r),p=d=A):(r[g]=2>=arguments.length?
b:I(arguments,1),++q>=f?(d(void 0,r),d=A):m?D.nextTick(p):(m=!0,p()),m=!1)}d=d||y;var f,g,l,r,p,m=!0,q=0;if(Array.isArray(b))f=b.length,r=Array(f),p=c;else if(b&&"object"===typeof b)l=Object.keys(b),f=l.length,r={},p=a;else return d();if(!f)return d(void 0,r);p();m=!1}function ea(b,d,c){function a(){l=n++;if(l<g)b[l](f(l))}function e(){n<g&&(r=p[n++],b[r](f(r)))}function f(a){return function(b,d){null===a&&A();b?(c(b,m),c=y,a=null):(m[a]=2>=arguments.length?d:I(arguments,1),a=null,++k>=g?c(void 0,
m):h?D.nextTick(q):(h=!0,q()),h=!1)}}c=c||y;var g,l,r,p,m,q,h=!0,n=0,k=0;Array.isArray(b)?(g=b.length,m=Array(g),q=a):b&&"object"===typeof b&&(p=Object.keys(b),g=p.length,m={},q=e);if(!g||isNaN(d)||1>d)return c(void 0,m);J(d>g?g:d,q);h=!1}function fa(b,d){return Array.isArray(b)?0===b.length?(d(),!1):!0:(d(Error("First argument to waterfall must be an array of functions")),!1)}function Za(b,d){function c(g){function l(b){a&&A();a=!0;if(b)d(b);else if(++g>=e)d.apply(null,H(arguments));else{f=arguments;
D.safeNextTick(function(){c(g)});return}d=c=A}a=!1;var r=b[g];switch(f.length){case 0:case 1:return r(l);case 2:return r(f[1],l);case 3:return r(f[1],f[2],l);case 4:return r(f[1],f[2],f[3],l);case 5:return r(f[1],f[2],f[3],f[4],l);case 6:return r(f[1],f[2],f[3],f[4],f[5],l);default:return f=I(f,1),f.push(l),r.apply(null,f)}}d=d||y;if(fa(b,d)){var a,e=b.length,f=[];c(0)}}function Ha(b,d){function c(){switch(l.length){case 0:try{a(null,l())}catch(b){a(b)}break;case 1:return l(a);case 2:return l(r[1],
a);case 3:return l(r[1],r[2],a);case 4:return l(r[1],r[2],r[3],a);case 5:return l(r[1],r[2],r[3],r[4],a);default:return r=I(r,1),r[l.length-1]=a,l.apply(null,r)}}function a(a){a?(d(a),d=A):++e>=g?(d.apply(null,H(arguments)),d=A):(l=b[e],r=arguments,f?D.nextTick(c):(f=!0,c()),f=!1)}d=d||y;if(fa(b,d)){var e=0,f=!0,g=b.length,l=b[e],r=[];c();f=!1}}function Ia(){var b=H(arguments);return function(){var d=this,c=H(arguments),a=c.pop();W(b,c,function(a,b,c){a.push(function(a){var b=I(arguments,1);c(a,b)});
b.apply(d,a)},function(b,c){c=Array.isArray(c)?c:[c];c.unshift(b);a.apply(d,c)})}}function Ja(b){return function(d){var c=function(){var a=this,c=H(arguments),g=c.pop()||y;return b(d,function(b,d){b.apply(a,c.concat([d]))},g)};if(1<arguments.length){var a=I(arguments,1);return c.apply(this,a)}return c}}function Ka(b,d){function c(a,b,c){function d(a){var b=e.tasks,c=b.length;if(!c)return 0;for(var f=-1;++f<c&&!(a<b[f].priority););return f}e.started=!0;var p=Array.isArray(a)?a:[a];if(void 0!==a&&p.length){c=
"function"===typeof c?c:y;var m=d(b);L(p,function(a){a={task:a,priority:b,callback:c};e.tasks.splice(m++,0,a);"function"===typeof e.saturated&&e.length()===e.concurrency&&e.saturated();D.nextTick(e.process)})}else e.idle()&&D.nextTick(function(){"function"===typeof e.drain&&e.drain()})}if(void 0===d)d=1;else if(isNaN(d)||1>d)throw Error("concurrency must be more than 1");var a=0,e={tasks:[],concurrency:d,saturated:y,empty:y,drain:y,started:!1,paused:!1,push:function(a,b,d){c(a,b,d)},kill:function(){e.drain=
y;e.tasks=[]},process:function(){function b(){a--;c.callback&&c.callback.apply(c,H(arguments));"function"===typeof e.drain&&e.idle()&&e.drain();e.process()}if(!(e.paused||a>=e.concurrency)&&e.length()){var c=e.tasks.shift();"function"!==typeof e.empty||e.length()||e.empty();a++;e._worker(c.task,F(b))}},length:function(){return e.tasks.length},running:function(){return a},idle:function(){return 0===e.length()+a},pause:function(){e.paused=!0},resume:function(){!1!==e.paused&&(e.paused=!1,J(e.concurrency,
function(){D.setImmediate(e.process)}))},_worker:b};return e}function La(b,d,c){function a(){d(l,e)}function e(d,e){f[l]=e;d?(c(d),c=A):++l>=b?(c(void 0,f),c=A):g?D.nextTick(a):(g=!0,a());g=!1}c=c||y;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var f=Array(b),g=!0,l=0;a();g=!1}function Ma(b){return function(){var d=H(arguments),c=d.pop(),a;try{a=b.apply(this,d)}catch(e){return c(e)}if("object"===typeof a&&"function"===typeof a.then)a.then(function(a){c(null,a)})["catch"](c);else c(null,a)}}function ga(b){function d(c){if(X[typeof console])if(c)console.error&&
console.error(c);else if(console[b]){var a=I(arguments,1);L(a,function(a){console[b](a)})}}return function(b){var a=I(arguments,1);a.push(d);b.apply(null,a)}}function E(b,d){this._emitter=b||Ga;this._limit=d||4;this._events={};this._runing={};this._queue={}}function Na(b){b=b||y;if(b.ONCE===ha)return b;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;return d}function Oa(b){b=b||y;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;d.ONCE=ha;return d}var P=this,$a=P&&P.async,y=
function(){},A=function(){throw Error("Callback was already called.");},X={"function":!0,object:!0},z="function"===typeof Symbol&&Symbol.iterator,Pa,ia,Y;(function(){var b=function(b){setTimeout(b,0)};Y="function"===typeof setImmediate?setImmediate:b;Pa="object"===typeof process&&"function"===typeof process.nextTick?ia=/^v0.10/.test(process.version)?Y:process.nextTick:ia=Y})();var S=function(b,d,c){return function(a,e,f){function g(a,b){a?(f(a),f=y):++p===l?f():!1===b&&(f(),f=y)}f=f||y;var l,r,p=
0;Array.isArray(a)?(l=a.length,b(a,e,g)):a&&(z&&a[z]?(l=a.size,c(a,e,g)):"object"===typeof a&&(r=Object.keys(a),l=r.length,d(a,e,g,r)));l||f()}}(ja,ka,la),ab=sa(ma,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(f));else for(;++f<g;)d(b[a[f]],c(f))},function(b,d,c){var a=-1,e=b.size,f=b[z]();if(3===d.length)for(;++a<e;)b=f.next().value,d(b[1],b[0],c(a));else for(;++a<e;)d(f.next().value[1],c(a))},!0),bb=sa(ma,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<
g;)e=a[f],d(b[e],e,c(e));else for(;++f<g;)e=a[f],d(b[e],c(e))},function(b,d,c){var a,e=b[z]();if(3===d.length)for(;!1===(b=e.next()).done;)a=b.value[0],d(b.value[1],a,c(a));else for(;!1===(b=e.next()).done;)d(b.value[1],c(b.value[0]))},!1),Qa=ta(T,na,oa,!0),Ra=ua(!0),Sa=wa(!0),cb=ta(T,na,oa,!1),db=ua(!1),eb=wa(!1),Fa=xa(Z,aa,ba,!0),Ta=ya(!0),Ua=za(!0),Va=function(b,d,c){var a=xa(b,d,c,!1);return function(b,c,d){function l(a){d(!a)}function r(a,b){d(a,!b)}d=d||y;a(b,c,2===d.length?r:l)}}(Z,aa,ba),
fb=function(){var b=ya(!1);return function(d,c,a){function e(b){a(!b)}function f(b,c){a(b,!c)}a=a||y;b(d,c,2===a.length?f:e)}}(),gb=function(){var b=za(!1);return function(d,c,a,e){function f(a){e(!a)}function g(a,b){e(a,!b)}e=e||y;b(d,c,a,2===e.length?g:f)}}(),hb=Aa(T,pa,qa,!0),ib=Ba(!0),jb=Ca(!0),kb=Aa(T,pa,qa,!1),lb=Ba(!1),mb=Ca(!1),nb=function(b,d,c){return function(a,e,f,g){function l(a,b){a?(f(a,Array.isArray(m)?O(m):M(m)),f=y):++q===r?f(void 0,m):!1===b&&(f(void 0,Array.isArray(m)?O(m):M(m)),
f=y)}f=f||y;var r,p,m,q=0;Array.isArray(a)?(r=a.length,m=void 0!==g?g:[],b(a,m,e,l)):a&&(z&&a[z]?(r=a.size,m=void 0!==g?g:{},c(a,m,e,l)):"object"===typeof a&&(p=Object.keys(a),r=p.length,m=void 0!==g?g:{},d(a,m,e,l,p)));r||f(void 0,void 0!==g?g:m||{})}}(function(b,d,c,a){var e=-1,f=b.length;if(4===c.length)for(;++e<f;)c(d,b[e],e,F(a));else for(;++e<f;)c(d,b[e],F(a))},function(b,d,c,a,e){var f,g=-1,l=e.length;if(4===c.length)for(;++g<l;)f=e[g],c(d,b[f],f,F(a));else for(;++g<l;)c(d,b[e[g]],F(a))},function(b,
d,c,a){var e=b[z]();if(4===c.length)for(;!1===(b=e.next()).done;)c(d,b.value[1],b.value[0],F(a));else for(;!1===(b=e.next()).done;)c(d,b.value[1],F(a))}),ob=function(b,d,c){return function(a,e,f){function g(a){var b=!1;return function(c,d){b&&A();b=!0;r[p]={value:a,criteria:d};c?(f(c),f=y):++p===l&&(r.sort(da),f(void 0,U(r,"value")),f=A)}}f=f||y;var l,r,p=0;if(Array.isArray(a))l=a.length,r=Array(l),b(a,e,g);else if(a)if(z&&a[z])l=a.size,r=Array(l),c(a,e,g);else if("object"===typeof a){var m=Object.keys(a);
l=m.length;r=Array(l);d(a,e,g,m)}l||f(void 0,[])}}(Z,aa,ba),pb=function(b,d,c){return function(a,e,f){function g(a,b){b&&Array.prototype.push.apply(p,Array.isArray(b)?b:[b]);a?(f(a,O(p)),f=y):++r===l&&f(void 0,p)}f=f||y;var l,r=0,p=[];if(Array.isArray(a))l=a.length,b(a,e,g);else if(a)if(z&&a[z])l=a.size,c(a,e,g);else if("object"===typeof a){var m=Object.keys(a);l=m.length;d(a,e,g,m)}l||f(void 0,p)}}(ja,ka,la),Wa=function(b,d){return function(c,a){function e(b){return function(c,d){null===b&&A();c?
(a(c,l),a=y,b=null):(l[b]=2>=arguments.length?d:I(arguments,1),b=null,++r===f&&(a(void 0,l),a=A))}}a=a||y;var f,g,l,r=0;Array.isArray(c)?(f=c.length,l=Array(f),b(c,e)):c&&"object"===typeof c&&(g=Object.keys(c),f=g.length,l={},d(c,e,g));f||a(void 0,l)}}(function(b,d){for(var c=-1,a=b.length;++c<a;)b[c](d(c))},function(b,d,c){for(var a,e=-1,f=c.length;++e<f;)a=c[e],b[a](d(a))}),D={VERSION:"1.6.0",each:S,eachSeries:R,eachLimit:V,forEach:S,forEachSeries:R,forEachLimit:V,eachOf:S,eachOfSeries:R,eachOfLimit:V,
forEachOf:S,forEachOfSeries:R,forEachOfLimit:V,map:ab,mapSeries:function(b,d,c){function a(){d(b[v],p)}function e(){d(b[v],v,p)}function f(){d(n.next().value[1],p)}function g(){k=n.next().value;d(k[1],k[0],p)}function l(){d(b[h[v]],p)}function r(){q=h[v];d(b[q],q,p)}function p(a,b){x[v]=b;a?(c(a,O(x)),c=A):++v>=m?(c(void 0,x),c=A):u?D.nextTick(t):(u=!0,t());u=!1}c=c||y;var m,q,h,n,k,x,t,u=!0,v=0;Array.isArray(b)?(m=b.length,t=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),t=3===d.length?g:f):"object"===
typeof b&&(h=Object.keys(b),m=h.length,t=3===d.length?r:l));if(!m)return c(void 0,[]);x=Array(m);t();u=!1},mapLimit:function(b,d,c,a){function e(){h=B++;h<q&&c(b[h],m(h))}function f(){h=B++;h<q&&c(b[h],h,m(h))}function g(){!1===(t=x.next()).done&&c(t.value[1],m(B++))}function l(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],m(B++))}function r(){h=B++;h<q&&c(b[k[h]],m(h))}function p(){h=B++;h<q&&(n=k[h],c(b[n],n,m(h)))}function m(b){return function(c,d){null===b&&A();u[b]=d;b=null;c?(a(c,O(u)),
v=a=y):++C>=q?(a(void 0,u),a=A):w?D.nextTick(v):(w=!0,v());w=!1}}a=a||y;var q,h,n,k,x,t,u,v,w=!0,B=0,C=0;Array.isArray(b)?(q=b.length,v=3===c.length?f:e):b&&(z&&b[z]?(q=b.size,x=b[z](),v=3===c.length?l:g):"object"===typeof b&&(k=Object.keys(b),q=k.length,v=3===c.length?p:r));if(!q||isNaN(d)||1>d)return a(void 0,[]);u=Array(q);J(d>q?q:d,v);w=!1},mapValues:bb,mapValuesSeries:function(b,d,c){function a(){q=v;d(b[v],p)}function e(){q=v;d(b[v],v,p)}function f(){k=n.next().value;q=k[0];d(k[1],p)}function g(){k=
n.next().value;q=k[0];d(k[1],q,p)}function l(){q=h[v];d(b[q],p)}function r(){q=h[v];d(b[q],q,p)}function p(a,b){u[q]=b;a?(c(a,M(u)),c=A):++v>=m?(c(void 0,u),c=A):t?D.nextTick(x):(t=!0,x());t=!1}c=c||y;var m,q,h,n,k,x,t=!0,u={},v=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:l));if(!m)return c(void 0,u);x();t=!1},mapValuesLimit:function(b,d,c,a){function e(){h=B++;h<q&&c(b[h],
m(h))}function f(){h=B++;h<q&&c(b[h],h,m(h))}function g(){!1===(t=x.next()).done&&c(t.value[1],m(t.value[0]))}function l(){!1===(t=x.next()).done&&(n=t.value[0],c(t.value[1],n,m(n)))}function r(){h=B++;h<q&&(n=k[h],c(b[n],m(n)))}function p(){h=B++;h<q&&(n=k[h],c(b[n],n,m(n)))}function m(b){return function(c,d){null===b&&A();w[b]=d;b=null;c?(a(c,M(w)),u=a=y):++C>=q?(a(void 0,w),a=A):v?D.nextTick(u):(v=!0,u());v=!1}}a=a||y;var q,h,n,k,x,t,u,v=!0,w={},B=0,C=0;Array.isArray(b)?(q=b.length,u=3===c.length?
f:e):b&&(z&&b[z]?(q=b.size,x=b[z](),u=3===c.length?l:g):"object"===typeof b&&(k=Object.keys(b),q=k.length,u=3===c.length?p:r));if(!q||isNaN(d)||1>d)return a(void 0,w);J(d>q?q:d,u);v=!1},filter:Qa,filterSeries:Ra,filterLimit:Sa,select:Qa,selectSeries:Ra,selectLimit:Sa,reject:cb,rejectSeries:db,rejectLimit:eb,detect:Fa,detectSeries:Ta,detectLimit:Ua,pick:hb,pickSeries:ib,pickLimit:jb,omit:kb,omitSeries:lb,omitLimit:mb,reduce:W,inject:W,foldl:W,reduceRight:Da,foldr:Da,transform:nb,transformSeries:function(b,
d,c,a){function e(){d(u,b[w],m)}function f(){d(u,b[w],w,m)}function g(){d(u,k.next().value[1],m)}function l(){x=k.next().value;d(u,x[1],x[0],m)}function r(){d(u,b[n[w]],m)}function p(){h=n[w];d(u,b[h],h,m)}function m(a,b){a?(c(a,u),c=A):++w>=q?(c(void 0,u),c=A):!1===b?(c(void 0,u),c=A):v?D.nextTick(t):(v=!0,t());v=!1}c=c||y;var q,h,n,k,x,t,u,v=!0,w=0;Array.isArray(b)?(q=b.length,u=void 0!==a?a:[],t=4===d.length?f:e):b&&(z&&b[z]?(q=b.size,k=b[z](),u=void 0!==a?a:{},t=4===d.length?l:g):"object"===typeof b&&
(n=Object.keys(b),q=n.length,u=void 0!==a?a:{},t=4===d.length?p:r));if(!q)return c(void 0,void 0!==a?a:u||{});t();v=!1},transformLimit:function(b,d,c,a,e){function f(){n=C++;n<h&&c(w,b[n],F(q))}function g(){n=C++;n<h&&c(w,b[n],n,F(q))}function l(){!1===(u=t.next()).done&&c(w,u.value[1],F(q))}function r(){!1===(u=t.next()).done&&c(w,u.value[1],u.value[0],F(q))}function p(){n=C++;n<h&&c(w,b[x[n]],F(q))}function m(){n=C++;n<h&&(k=x[n],c(w,b[k],k,F(q)))}function q(b,c){b?(a(b,Array.isArray(w)?O(w):M(w)),
v=a=y):++E>=h?(a(void 0,w),a=A):!1===c?(a(void 0,Array.isArray(w)?O(w):M(w)),v=a=y):B?D.nextTick(v):(B=!0,v());B=!1}a=a||y;var h,n,k,x,t,u,v,w,B=!0,C=0,E=0;Array.isArray(b)?(h=b.length,w=void 0!==e?e:[],v=4===c.length?g:f):b&&(z&&b[z]?(h=b.size,t=b[z](),w=void 0!==e?e:{},v=4===c.length?r:l):"object"===typeof b&&(x=Object.keys(b),h=x.length,w=void 0!==e?e:{},v=4===c.length?m:p));if(!h||isNaN(d)||1>d)return a(void 0,void 0!==e?e:w||{});J(d>h?h:d,v);B=!1},sortBy:ob,sortBySeries:function(b,d,c){function a(){h=
b[w];d(h,p)}function e(){h=b[w];d(h,w,p)}function f(){h=k.next().value[1];d(h,p)}function g(){x=k.next().value;h=x[1];d(h,x[0],p)}function l(){h=b[n[w]];d(h,p)}function r(){q=n[w];h=b[q];d(h,q,p)}function p(a,b){t[w]={value:h,criteria:b};a?(c(a),c=A):++w>=m?(t.sort(da),c(void 0,U(t,"value")),c=A):v?D.nextTick(u):(v=!0,u());v=!1}c=c||y;var m,q,h,n,k,x,t,u,v=!0,w=0;Array.isArray(b)?(m=b.length,u=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,k=b[z](),u=3===d.length?g:f):"object"===typeof b&&(n=Object.keys(b),
m=n.length,u=3===d.length?r:l));if(!m)return c(void 0,[]);t=Array(m);u();v=!1},sortByLimit:function(b,d,c,a){function e(){C<q&&(k=b[C++],c(k,m(k)))}function f(){h=C++;h<q&&(k=b[h],c(k,h,m(k)))}function g(){!1===(u=t.next()).done&&(k=u.value[1],c(k,m(k)))}function l(){!1===(u=t.next()).done&&(k=u.value[1],c(k,u.value[0],m(k)))}function r(){C<q&&(k=b[x[C++]],c(k,m(k)))}function p(){C<q&&(n=x[C++],k=b[n],c(k,n,m(k)))}function m(b){var c=!1;return function(d,e){c&&A();c=!0;v[E]={value:b,criteria:e};d?
(a(d),w=a=y):++E>=q?(v.sort(da),a(void 0,U(v,"value")),a=A):B?D.nextTick(w):(B=!0,w());B=!1}}a=a||y;var q,h,n,k,x,t,u,v,w,B=!1,C=0,E=0;Array.isArray(b)?(q=b.length,w=3===c.length?f:e):b&&(z&&b[z]?(q=b.size,t=b[z](),w=3===c.length?l:g):"object"===typeof b&&(x=Object.keys(b),q=x.length,w=3===c.length?p:r));if(!q||isNaN(d)||1>d)return a(void 0,[]);v=Array(q);J(d>q?q:d,w)},some:Ea,someSeries:function(b,d,c){function a(a){c(!!a)}function e(a,b){c(a,!!b)}c=c||y;Ta(b,d,2===c.length?e:a)},someLimit:function(b,
d,c,a){function e(b){a(!!b)}function f(b,c){a(b,!!c)}a=a||y;Ua(b,d,c,2===a.length?f:e)},any:Ea,every:Va,all:Va,everySeries:fb,everyLimit:gb,concat:pb,concatSeries:function(b,d,c){function a(){d(b[v],p)}function e(){d(b[v],v,p)}function f(){d(n.next().value[1],p)}function g(){k=n.next().value;d(k[1],k[0],p)}function l(){d(b[h[v]],p)}function r(){q=h[v];d(b[q],q,p)}function p(a,b){b&&Array.prototype.push.apply(u,Array.isArray(b)?b:[b]);a?(c(a,u),c=A):++v>=m?(c(void 0,u),c=A):t?D.nextTick(x):(t=!0,x());
t=!1}c=c||y;var m,q,h,n,k,x,t=!0,u=[],v=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:l));if(!m)return c(void 0,u);x();t=!1},concatLimit:function(b,d,c,a){function e(){w<h&&c(b[w++],F(m))}function f(){n=w++;n<h&&c(b[n],n,F(m))}function g(){!1===(t=x.next()).done&&c(t.value[1],F(m))}function l(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],F(m))}function r(){w<h&&c(b[C[w++]],
F(m))}function p(){w<h&&(k=C[w++],c(b[k],k,F(m)))}function m(b,c){c&&Array.prototype.push.apply(q,Array.isArray(c)?c:[c]);b?(a(b,q),a=y):++B>=h?(a(void 0,q),a=A):v?D.nextTick(u):(v=!0,u());v=!1}a=a||y;var q=[],h,n,k,x,t,u,v=!0,w=0,B=0;if(Array.isArray(b))h=b.length,u=3===c.length?f:e;else if(b)if(z&&b[z])h=b.size,x=b[z](),u=3===c.length?l:g;else if("object"===typeof b){var C=Object.keys(b);h=C.length;u=3===c.length?p:r}if(!h||isNaN(d)||1>d)return a(void 0,q);J(d>h?h:d,u);v=!1},parallel:Wa,series:Ga,
parallelLimit:ea,waterfall:function(b,d){function c(){f=!1;switch(p.length){case 0:case 1:return r(a);case 2:return r(p[1],a);case 3:return r(p[1],p[2],a);case 4:return r(p[1],p[2],p[3],a);case 5:return r(p[1],p[2],p[3],p[4],a);case 6:return r(p[1],p[2],p[3],p[4],p[5],a);default:return p=I(p,1),p.push(a),r.apply(null,p)}}function a(a){f&&A();a?(d(a),d=A):(f=!0,++e>=l?(d.apply(null,H(arguments)),d=A):(r=b[e],p=arguments,g?D.nextTick(c):(g=!0,c()),g=!1))}d=d||y;if(fa(b,d)){var e=0,f=!1,g=!0,l=b.length,
r=b[e],p=[];c();g=!1}},angelFall:Ha,angelfall:Ha,whilst:function(b,d,c){function a(){b()?d(function(b){if(b)return c(b);e?D.nextTick(a):(e=!0,a());e=!1}):c()}c=c||y;var e=!0;a();e=!1},doWhilst:function(b,d,c){function a(){b(function(b,g){if(b)return c(b);(2>=arguments.length?d(g):d.apply(null,I(arguments,1)))?(e?D.nextTick(a):(e=!0,a()),e=!1):c()})}c=c||y;var e=!0;a();e=!1},until:function(b,d,c){function a(){b()?c():d(function(b){if(b)return c(b);e?D.nextTick(a):(e=!0,a());e=!1})}c=c||y;var e=!0;
a();e=!1},doUntil:function(b,d,c){function a(){b(function(b,g){if(b)return c(b);(2>=arguments.length?d(g):d.apply(null,I(arguments,1)))?c():(e?D.nextTick(a):(e=!0,a()),e=!1)})}c=c||y;var e=!0;a();e=!1},during:function(b,d,c){function a(a,b){if(a)return c(a);b?d(e):c()}function e(d){if(d)return c(d);b(a)}c=c||y;b(a)},doDuring:function(b,d,c){function a(a,d){if(a)return c(a);d?b(e):c()}function e(b,e){if(b)return c(b);switch(arguments.length){case 0:case 1:d(a);break;case 2:d(e,a);break;default:var l=
I(arguments,1);l.push(a);d.apply(null,l)}}c=c||y;a(null,!0)},forever:function(b,d){function c(){b(a)}function a(a){if(a){if(d)return d(a);throw a;}e?D.nextTick(c):(e=!0,c());e=!1}var e=!0;c();e=!1},compose:function(){return Ia.apply(null,Xa(arguments))},seq:Ia,applyEach:Ja(S),applyEachSeries:Ja(R),queue:function(b,d){function c(b,c,d){a.started=!0;var l=Array.isArray(b)?b:[b];void 0!==b&&l.length?(c="function"===typeof c?c:null,L(l,function(b){b={task:b,callback:c};d?a.tasks.unshift(b):a.tasks.push(b);
"function"===typeof a.saturated&&a.length()===a.concurrency&&a.saturated();D.nextTick(a.process)})):a.idle()&&D.nextTick(function(){"function"===typeof a.drain&&a.drain()})}var a=Ka(b,d);a.unshift=function(a,b){c(a,b,!0)};a.push=function(a,b){c(a,b)};return a},priorityQueue:Ka,cargo:function(b,d){var c=!1,a={tasks:[],payload:d,saturated:y,empty:y,drain:y,drained:!0,push:function(b,c){b=Array.isArray(b)?b:[b];c="function"===typeof c?c:y;L(b,function(b){a.tasks.push({data:b,callback:c});a.drained=!1;
"function"===typeof a.saturated&&a.length()===a.payload&&a.saturated()});D.nextTick(a.process)},process:function(){if(!c)if(a.length()){var e="number"===typeof a.payload?a.tasks.splice(0,d):a.tasks,f=U(e,"data");a.length()||"function"!==typeof a.empty||a.empty();c=!0;b(f,function(){c=!1;var b=H(arguments);L(e,function(a){a.callback&&a.callback.apply(null,b)});a.process()})}else"function"!==typeof a.drain||a.drained||a.drain(),a.drained=!0},length:function(){return a.tasks.length},running:function(){return c}};
return a},auto:function(b,d){function c(a){g.unshift(a)}function a(){f--;L(g.slice(0),function(a){a()})}d=d?F(d):y;var e=Object.keys(b),f=e.length;if(!f)return d();var g=[],l={};c(function(){f||d(void 0,l)});N(b,function(b,e){function f(b){var c=I(arguments,1);1>=c.length&&(c=c[0]);if(b){var g=M(l);g[e]=c;d(b,g);d=y}else l[e]=c,D.nextTick(a)}function q(){return!l.hasOwnProperty(e)&&Ya(k,function(a){return l.hasOwnProperty(a)})}function h(){if(q()){var a;a:{a=-1;for(var b=g.length;++a<b;)if(g[a]===
h)break a;a=void 0}0<=a&&g.splice(a,1);x(f,l)}}b=Array.isArray(b)?b:[b];var n=b.length,k=b.slice(0,n-1),x=b[n-1];if(q())return x(f,l);c(h)},e)},retry:function(b,d,c){function a(a,f){c=a||c||y;var g,l;La(b,function(a,c){d(function(d,e){g=d;l=e;if(!d)return c(!0);c(d&&a===b-1)},f)},function(){c(g,l)})}"function"===typeof b&&(c=d,d=b,b=5);b=parseInt(b,10)||5;return"function"===typeof c?a():a},iterator:function(b){function d(e){var f=function(){c&&b[a[e]||e].apply(null,H(arguments));return f.next()};
f.next=function(){return e<c-1?d(e+1):null};return f}var c=0,a=[];Array.isArray(b)?c=b.length:(a=Object.keys(b),c=a.length);return d(0)},apply:function(b){switch(arguments.length){case 0:case 1:return b;case 2:return b.bind(null,arguments[1]);case 3:return b.bind(null,arguments[1],arguments[2]);case 4:return b.bind(null,arguments[1],arguments[2],arguments[3]);case 5:return b.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var d=arguments.length,c=0,a=Array(d);for(a[c]=null;++c<
d;)a[c]=arguments[c];return b.bind.apply(b,a)}},nextTick:Pa,safeNextTick:ia,setImmediate:Y,times:function(b,d,c){function a(a){return function(d,l){null===a&&A();e[a]=l;a=null;d?(c(d),c=y):0===--b&&c(void 0,e)}}c=c||y;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var e=Array(b);J(b,function(b){d(b,a(b))})},timesSeries:La,timesLimit:function(b,d,c,a){function e(){var a=r++;a<b&&c(a,f(a))}function f(c){return function(d,f){null===c&&A();g[c]=f;c=null;d?(a(d),a=y):++p>=b?(a(void 0,g),a=A):l?D.nextTick(e):
(l=!0,e());l=!1}}a=a||y;b=+b;if(isNaN(b)||1>b||isNaN(d)||1>d)return a(void 0,[]);var g=Array(b),l=!0,r=0,p=0;J(d>b?b:d,e);l=!1},memoize:function(b,d){d=d||function(a){return a};var c={},a={},e=function(){function e(){var b=H(arguments);c[r]=b;var d=a[r];delete a[r];for(var f=-1,g=d.length;++f<g;)d[f].apply(null,b)}var g=H(arguments),l=g.pop(),r=d.apply(null,g);if(c.hasOwnProperty(r))D.nextTick(function(){l.apply(null,c[r])});else{if(a.hasOwnProperty(r))return a[r].push(l);a[r]=[l];g.push(e);b.apply(null,
g)}};e.memo=c;e.unmemoized=b;return e},unmemoize:function(b){return function(){return(b.unmemoized||b).apply(null,arguments)}},ensureAsync:function(b){return function(){var d=!0,c=H(arguments),a=c.pop();c.push(function(){var b=arguments;d?D.safeNextTick(function(){a.apply(null,b)}):a.apply(null,b)});b.apply(this,c);d=!1}},constant:function(){var b=[null].concat(H(arguments));return function(d){d.apply(this,b)}},asyncify:Ma,wrapSync:Ma,log:ga("log"),dir:ga("dir"),createLogger:ga,noConflict:function(){P.async=
$a;return D},eventEmitter:function(b){b=b||{};var d=b.limit;return b.parallel&&!d?new E(Wa):b.parallel||b.parallelLimit?new E(ea,d):new E(b.emitter)},EventEmitter:E,safe:void 0};D.safe=ra();X[typeof define]&&define&&define.amd?define([],function(){return D}):X[typeof module]&&module&&module.exports?module.exports=D:P&&X[typeof P.async]?P.neo_async=D:P.async=D;var ha={__ONCE__:!0};E.prototype.getListeners=function(b){function d(a){a=a||[];var b=Array(a.length);L(a,function(a,c){b[c]=a.func});return b}
var c=this._events;if(b)return d(c[b]);var a={};N(c,function(b,c){a[c]=d(b)});return a};E.prototype.addListener=function d(c,a){var e=this;if("object"===typeof c)return N(c,function(a,c){d.call(e,c,a)}),e;if(e.running(c))return e.queue(c,"addListener",a);e._events[c]=e._events[c]||[];Array.isArray(a)?L(a,function(a){e._events[c].push(Na(a))}):e._events[c].push(Na(a));return e};E.prototype.addOnceListener=function c(a,e){var f=this;if("object"===typeof a)return N(a,function(a,e){c.call(f,e,a)}),f;
Array.isArray(e)?L(e,function(a,c){e[c]=Oa(a)}):e=Oa(e);return f.addListener(a,e)};E.prototype.removeListener=function a(e,f){var g=this;if("object"===typeof e)return N(e,function(e,f){a.call(g,f,e)}),g;if(g.running(e))return g.queue(e,"removeListener",f);var l=g._events[e]||[];if(!l.length)return g;if(Array.isArray(f))return ca(f,function(f){a.call(g,f,e)}),g;ca(l,function(a,e){a.func===f&&l.splice(e,1)});return g};E.prototype.removeEvent=function e(f){var g=this;if(!f)return N(g._events,function(f,
r){e.call(g,r)}),g;(g._events[f]||[]).length&&delete g._events[f];return g};E.prototype.running=function(e){return this._runing[e]};E.prototype.queue=function(e,f,g,l){this._queue[e]=this._queue[e]||[];this._queue[e].push([f,g,l]);return this};E.prototype.resolve=function(e){if(this._runing[e])return this;var f=this._queue[e]||[];if(!f.length)return this;f=f.shift();this[f[0]](e,f[1],f[2]);return this.resolve(e)};E.prototype.emit=function(e,f,g){function l(g,h){g?f(g):(ca(p,function(e,f){e.ONCE===
ha&&p.splice(f,1)}),f(void 0,h));r._runing[e]=!1;r.resolve(e)}f=f||y;var r=this;if(r.running(e))return r.queue(e,"emit",f,g);var p=r._events[e]||[];if(!p.length)return f(),r;r._runing[e]=!0;var m=r._emitter,m=g?m.bind(g):m;m===ea?m(p,r._limit,l):m(p,l);return r};E.prototype.on=E.prototype.addListener;E.prototype.once=E.prototype.addOnceListener;E.prototype.off=E.prototype.removeListener;E.prototype.removeAllListener=E.prototype.removeEvent;E.prototype.trigger=E.prototype.emit}).call(this);

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

(function(){function F(b){for(var d=-1,c=b.length,a=Array(c);++d<c;)a[d]=b[d];return a}function I(b,d){var c=-1,a=b.length-d;if(0>=a)return[];for(var e=Array(a);++c<a;)e[c]=b[c+d];return e}function Q(b){for(var d=-1,c=b.length,a=[];++d<c;){var e=b[d];e&&(a[a.length]=e)}return a}function Ra(b){for(var d=-1,c=b.length,a=Array(c),e=c;++d<c;)a[--e]=b[d];return a}function ja(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,E(c));else for(;++a<e;)d(b[a],E(c))}function ka(b,d,c,a){var e,f=
-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,E(c));else for(;++f<g;)d(b[a[f]],E(c))}function la(b,d,c){b=b[z]();var a;if(3===d.length)for(;!1===(a=b.next()).done;)d(a.value[1],a.value[0],c);else for(;!1===(a=b.next()).done;)d(a.value[1],c)}function ma(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,c(a));else for(;++a<e;)d(b[a],c(a))}function Y(b,d,c){var a,e=-1,f=b.length;if(3===d.length)for(;++e<f;)a=b[e],d(a,e,c(a));else for(;++e<f;)a=b[e],d(a,c(a))}function Z(b,d,
c,a){var e,f,g=-1,k=a.length;if(3===d.length)for(;++g<k;)e=a[g],f=b[e],d(f,e,c(f));else for(;++g<k;)f=b[a[g]],d(f,c(f))}function aa(b,d,c){var a,e=b[z]();if(3===d.length)for(;!1===(a=e.next()).done;)b=a.value[1],d(b,a.value[0],c(b));else for(;!1===(a=e.next()).done;)b=a.value[1],d(b,c(b))}function ba(b,d,c){var a,e=-1,f=b.length;if(3===d.length)for(;++e<f;)a=b[e],d(a,e,c(e,a));else for(;++e<f;)a=b[e],d(a,c(e,a))}function na(b,d,c,a){var e,f,g=-1,k=a.length;if(3===d.length)for(;++g<k;)e=a[g],f=b[e],
d(f,e,c(g,f));else for(;++g<k;)f=b[a[g]],d(f,c(g,f))}function oa(b,d,c){var a,e=-1,f=b[z]();if(3===d.length)for(;!1===(a=f.next()).done;)b=a.value[0],a=a.value[1],d(a,b,c(++e,a));else for(;!1===(a=f.next()).done;)a=a.value[1],d(a,c(++e,a))}function L(b,d){for(var c=-1,a=b.length;++c<a;)d(b[c],c);return b}function ca(b,d){for(var c=b.length;c--;)d(b[c],c);return b}function N(b,d,c){c=c||Object.keys(b);for(var a=-1,e=c.length;++a<e;){var f=c[a];d(b[f],f)}return b}function J(b,d){for(var c=-1;++c<b;)d(c)}
function Sa(b,d){for(var c=b.length,a=-1;++a<c;)if(!d(b[a]))return!1;return!0}function O(b){for(var d=b.length,c=-1,a=Array(d);++c<d;)a[c]=b[c];return a}function M(b){for(var d=Object.keys(b),c=d.length,a=-1,e={};++a<c;){var f=d[a];e[f]=b[f]}return e}function T(b,d){for(var c=-1,a=b.length,e=Array(a);++c<a;)e[c]=(b[c]||{})[d];return e}function da(b,d){return b.criteria-d.criteria}function E(b){return function(d,c){null===b&&B();b(d,c);b=null}}function pa(){function b(b,c){var d=a.test(c)?0:e.test(c)?
2:1,f=b.length;g[c]=function(){var a=F(arguments),c=a[d];switch(c.length){case 1:a[d]=function(a){C.safeNextTick(function(){c(a)})};break;case 2:a[d]=function(a,b){C.safeNextTick(function(){c(a,b)})};break;case 3:a[d]=function(a,b,d){C.safeNextTick(function(){c(a,b,d)})};break;case 4:a[d]=function(a,b,d,e){C.safeNextTick(function(){c(a,b,d,e)})};break;default:a[d]=function(){var a=F(arguments);C.safeNextTick(function(){c.apply(null,a)})}}switch(f){case 2:return b(a[0],a[1]);case 3:return b(a[0],a[1],
a[2]);case 4:return b(a[0],a[1],a[2],a[3]);case 5:return b(a[0],a[1],a[2],a[3],a[4])}}}function d(a,b){function c(){function b(a){return"function"!==typeof a?a:function(){var b=F(arguments);C.safeNextTick(function(){a.apply(null,b)})}}var e=F(arguments),f=e[0];Array.isArray(f)?L(f,function(a,c){f[c]=b(a)}):f&&"object"===typeof f&&N(f,function(a,c){f[c]=b(a)});switch(d){case 2:a(e[0],e[1]);break;case 3:a(e[0],e[1],e[2])}}if(/^waterfall$/.test(b))g[b]=Ta;else{var d=a.length;g[b]=c}}var c=/^(each|foreach|map|filter|select|reject|detect|pick|reduce|inject|fold|transform|sortby|some|any|every|all|concat|times)|(whilst|until|during)$|^forever$/,
a=new RegExp(/^do|^forever$/),e=new RegExp(/^reduce|Limit$/),f=new RegExp(/^parallel|^(series|waterfall|auto)$/),g={};N(C,function(a,e){if("function"===typeof a){if(f.test(e))return d(a,e);if(c.test(e.toLowerCase()))return b(a,e)}g[e]=a});g.safe=pa;return g}function qa(b,d,c,a){var e,f;a?(e=Array,f=O):(e=function(){return{}},f=M);return function(a,k,r){function q(a){return function(b,c){null===a&&B();h[a]=c;a=null;b?(r(b,f(h)),r=y):++n===m&&r(void 0,h)}}r=r||y;var m,l,h,n=0;Array.isArray(a)?(m=a.length,
h=e(m),b(a,k,q)):a&&(z&&a[z]?(m=a.size,h=e(m),c(a,k,q)):"object"===typeof a&&(l=Object.keys(a),m=l.length,h=e(m),d(a,k,q,l)));m||r(void 0,e())}}function ra(b,d,c,a){return function(e,f,g){function k(b,c){return function(d){null===b&&B();!!d===a&&(l[b]=c);b=null;++h===q&&g(Q(l))}}function r(b,c){return function(d,e){null===b&&B();d?(g(d,Q(l)),g=y,b=null):(!!e===a&&(l[b]=c),b=null,++h===q&&g(void 0,Q(l)))}}g=g||y;var q,m,l,h=0,n=2===g.length,p=n?r:k;Array.isArray(e)?(q=e.length,l=Array(q),b(e,f,p)):
e&&(z&&e[z]?(q=e.size,l=Array(q),c(e,f,p)):"object"===typeof e&&(m=Object.keys(e),q=m.length,l=Array(q),d(e,f,p,m)));if(!q)return n?g(void 0,[]):g([])}}function sa(b){return function(d,c,a){function e(){p=d[A];c(p,H)}function f(){p=d[A];c(p,A,H)}function g(){p=t.next().value[1];c(p,H)}function k(){u=t.next().value;p=u[1];c(p,u[0],H)}function r(){n=x[A];p=d[n];c(p,H)}function q(){n=x[A];p=d[n];c(p,n,H)}function m(c){!!c===b&&(D[D.length]=p);++A>=h?(a(D),a=B):w?C.nextTick(v):v()}function l(c,d){c?(a(c,
D),a=B):(!!d===b&&(D[D.length]=p),++A>=h?(a(void 0,D),a=B):w?C.nextTick(v):v())}a=a||y;var h,n,p,x,t,u,v,w=!0,A=0,D=[],K=2===a.length,H=K?l:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?k:g):"object"===typeof d&&(x=Object.keys(d),h=x.length,v=3===c.length?q:r));if(!h)return K?a(void 0,[]):a([]);v();w=!1}}function ta(b){return function(d,c,a,e){function f(){p=H++;p<n&&(t=d[p],a(t,F(t,p)))}function g(){p=H++;p<n&&(t=d[p],a(t,p,F(t,p)))}function k(){!1===
(w=v.next()).done&&(t=w.value[1],a(t,F(t,++H)))}function r(){!1===(w=v.next()).done&&(t=w.value[1],a(t,w.value[0],F(t,++H)))}function q(){p=H++;p<n&&(t=d[u[p]],a(t,F(t,p)))}function m(){p=H++;p<n&&(x=u[p],t=d[x],a(t,x,F(t,p)))}function l(a,c){return function(d){null===c&&B();!!d===b&&(D[c]=a);c=null;++E>=n?(e(Q(D)),e=B):K?C.nextTick(A):A()}}function h(a,c){return function(d,f){null===c&&B();d?(e(d,Q(D)),A=e=y,c=null):(!!f===b&&(D[c]=a),c=null,++E===n?(e(void 0,Q(D)),e=B):K?C.nextTick(A):A())}}e=e||
y;var n,p,x,t,u,v,w,A,D,K=!0,H=0,E=0,G=2===e.length,F=G?h:l;Array.isArray(d)?(n=d.length,A=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),A=3===a.length?r:k):"object"===typeof d&&(u=Object.keys(d),n=u.length,A=3===a.length?m:q));if(!n||isNaN(c)||1>c)return G?e(void 0,[]):e([]);D=Array(n);J(c>n?n:c,A);K=!1}}function R(b,d,c){function a(){d(b[u],q)}function e(){d(b[u],u,q)}function f(){d(n.next().value[1],q)}function g(){p=n.next().value;d(p[1],p[0],q)}function k(){d(b[h[u]],q)}function r(){l=h[u];
d(b[l],l,q)}function q(a,b){a?c(a):++u>=m?(c(),c=B):!1===b?c():t?C.nextTick(x):(t=!0,x());t=!1}c=c||y;var m,l,h,n,p,x,t=!0,u=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:k));if(!m)return c();x();t=!1}function U(b,d,c,a){function e(){w<l&&c(b[w++],m)}function f(){h=w++;h<l&&c(b[h],h,m)}function g(){!1===(t=x.next()).done&&c(t.value[1],m)}function k(){!1===(t=x.next()).done&&c(t.value[1],
t.value[0],m)}function r(){w<l&&c(b[p[w++]],m)}function q(){h=w++;h<l&&(n=p[h],c(b[n],n,m))}function m(b,c){b?(a(b),u=a=y):++A>=l?(a(),a=B):!1===c?(a(),a=y):v?C.nextTick(u):(v=!0,u());v=!1}a=a||y;var l,h,n,p,x,t,u,v=!1,w=0,A=0;if(Array.isArray(b))l=b.length,u=3===c.length?f:e;else if(b)if(z&&b[z])l=b.size,x=b[z](),u=3===c.length?k:g;else if("object"===typeof b)p=Object.keys(b),l=p.length,u=3===c.length?q:r;else return a();if(!l||isNaN(d)||1>d)return a();J(d>l?l:d,u);v=!0}function ua(b,d,c,a){return function(e,
f,g){function k(b){var c=!1;return function(d){c&&B();c=!0;!!d===a?(g(b),g=y):++l===q&&(g(),g=B)}}function r(b){var c=!1;return function(d,e){c&&B();c=!0;d?(g(d),g=y):!!e===a?(g(void 0,b),g=y):++l===q&&(g(),g=B)}}g=g||y;var q,m,l=0,h=2===g.length?r:k;Array.isArray(e)?(q=e.length,b(e,f,h)):e&&(z&&e[z]?(q=e.size,c(e,f,h)):"object"===typeof e&&(m=Object.keys(e),q=m.length,d(e,f,h,m)));q||g()}}function va(b){return function(d,c,a){function e(){p=d[A];c(p,D)}function f(){p=d[A];c(p,A,D)}function g(){p=
t.next().value[1];c(p,D)}function k(){u=t.next().value;p=u[1];c(p,u[0],D)}function r(){p=d[x[A]];c(p,D)}function q(){n=x[A];p=d[n];c(p,n,D)}function m(c){!!c===b?(a(p),a=B):++A>=h?(a(),a=B):w?C.nextTick(v):(w=!0,v());w=!1}function l(c,d){c?(a(c),a=B):!!d===b?(a(void 0,p),a=B):++A>=h?(a(),a=B):w?C.nextTick(v):(w=!0,v());w=!1}a=a||y;var h,n,p,x,t,u,v,w=!0,A=0,D=2===a.length?l:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?k:g):"object"===typeof d&&(x=
Object.keys(d),h=x.length,v=3===c.length?q:r));if(!h)return a();v();w=!1}}function wa(b){return function(d,c,a,e){function f(){p=K++;p<n&&(t=d[p],a(t,E(t)))}function g(){p=K++;p<n&&(t=d[p],a(t,p,E(t)))}function k(){!1===(w=v.next()).done&&(t=w.value[1],a(t,E(t)))}function r(){!1===(w=v.next()).done&&(t=w.value[1],a(t,w.value[0],E(t)))}function q(){p=K++;p<n&&(t=d[u[p]],a(t,E(t)))}function m(){K<n&&(x=u[K++],t=d[x],a(t,x,E(t)))}function l(a){var c=!1;return function(d){c&&B();c=!0;!!d===b?(e(a),A=
e=y):++H>=n?(e(),e=B):D?C.nextTick(A):(D=!0,A());D=!1}}function h(a){var c=!1;return function(d,f){c&&B();c=!0;d?(e(d),A=e=y):!!f===b?(e(void 0,a),e=y):++H>=n?(e(),e=B):D?C.nextTick(A):(D=!0,A());D=!1}}e=e||y;var n,p,x,t,u,v,w,A,D=!0,K=0,H=0,E=2===e.length?h:l;Array.isArray(d)?(n=d.length,A=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),A=3===a.length?r:k):"object"===typeof d&&(u=Object.keys(d),n=u.length,A=3===a.length?m:q));if(!n||isNaN(c)||1>c)return e();J(c>n?n:c,A);D=!1}}function V(b,d,c,a){function e(a){n=
b[w];c(a,n,m)}function f(a){n=b[w];c(a,n,w,m)}function g(){c(d,x.next().value[1],m)}function k(){t=x.next().value;c(d,t[1],t[0],m)}function r(a){h=p[w];n=b[h];c(a,n,m)}function q(a){h=p[w];n=b[h];c(a,n,h,m)}function m(b,c){b?(a(b,c),a=B):++w>=l?(a(void 0,c),a=B):v?C.nextTick(function(){u(c)}):(v=!0,u(c));v=!1}a=a||y;var l,h,n,p,x,t,u,v=!0,w=0;Array.isArray(b)?(l=b.length,u=4===c.length?f:e):b&&(z&&b[z]?(l=b.size,x=b[z](),u=4===c.length?k:g):"object"===typeof b&&(p=Object.keys(b),l=p.length,u=4===
c.length?q:r));if(!l)return a(void 0,d);u(d);v=!1}function xa(b,d,c,a){function e(a){h=b[--q];c(a,h,r)}function f(a){m=--q;h=b[m];c(a,h,m,r)}function g(a){l=n[--q];h=b[l];c(a,h,r)}function k(a){l=n[--q];h=b[l];c(a,h,l,r)}function r(b,c){b?(a(b,c),a=B):0>=q?(a(void 0,c),a=B):v?C.nextTick(function(){u(c)}):(v=!0,u(c));v=!1}a=a||y;var q,m,l,h,n,p,x,t,u,v=!0;if(Array.isArray(b))q=b.length,u=4===c.length?f:e;else if(b)if(z&&b[z]){q=b.size;n=Array(q);p=b[z]();m=-1;for(t={};!1===(x=p.next()).done;)l=x.value[0],
t[l]=x.value[1],n[++m]=l;b=t;u=4===c.length?k:g}else"object"===typeof b&&(n=Object.keys(b),q=n.length,u=4===c.length?k:g);if(!q)return a(void 0,d);u(d);v=!1}function ya(b,d,c){function a(a){c(!!a)}function e(a,b){c(a,!!b)}c=c||y;za(b,d,2===c.length?e:a)}function Aa(b,d){function c(){g=l;b[l](e)}function a(){g=k[l];b[g](e)}function e(a,b){a?(d(a,r),q=d=B):(r[g]=2>=arguments.length?b:I(arguments,1),++l>=f?(d(void 0,r),d=B):m?C.nextTick(q):(m=!0,q()),m=!1)}d=d||y;var f,g,k,r,q,m=!0,l=0;if(Array.isArray(b))f=
b.length,r=Array(f),q=c;else if(b&&"object"===typeof b)k=Object.keys(b),f=k.length,r={},q=a;else return d();if(!f)return d(void 0,r);q();m=!1}function ea(b,d,c){function a(){k=n++;if(k<g)b[k](f(k))}function e(){n<g&&(r=q[n++],b[r](f(r)))}function f(a){return function(b,d){null===a&&B();b?(c(b,m),c=y,a=null):(m[a]=2>=arguments.length?d:I(arguments,1),a=null,++p>=g?c(void 0,m):h?C.nextTick(l):(h=!0,l()),h=!1)}}c=c||y;var g,k,r,q,m,l,h=!0,n=0,p=0;Array.isArray(b)?(g=b.length,m=Array(g),l=a):b&&"object"===
typeof b&&(q=Object.keys(b),g=q.length,m={},l=e);if(!g||isNaN(d)||1>d)return c(void 0,m);J(d>g?g:d,l);h=!1}function fa(b,d){return Array.isArray(b)?0===b.length?(d(),!1):!0:(d(Error("First argument to waterfall must be an array of functions")),!1)}function Ta(b,d){function c(g){function k(b){a&&B();a=!0;if(b)d(b);else if(++g>=e)d.apply(null,F(arguments));else{f=arguments;C.safeNextTick(function(){c(g)});return}d=c=B}a=!1;var r=b[g];switch(f.length){case 0:case 1:return r(k);case 2:return r(f[1],k);
case 3:return r(f[1],f[2],k);case 4:return r(f[1],f[2],f[3],k);case 5:return r(f[1],f[2],f[3],f[4],k);case 6:return r(f[1],f[2],f[3],f[4],f[5],k);default:return f=I(f,1),f.push(k),r.apply(null,f)}}d=d||y;if(fa(b,d)){var a,e=b.length,f=[];c(0)}}function Ba(b,d){function c(){switch(k.length){case 0:try{a(null,k())}catch(b){a(b)}break;case 1:return k(a);case 2:return k(r[1],a);case 3:return k(r[1],r[2],a);case 4:return k(r[1],r[2],r[3],a);case 5:return k(r[1],r[2],r[3],r[4],a);default:return r=I(r,1),
r[k.length-1]=a,k.apply(null,r)}}function a(a){a?(d(a),d=B):++e>=g?(d.apply(null,F(arguments)),d=B):(k=b[e],r=arguments,f?C.nextTick(c):(f=!0,c()),f=!1)}d=d||y;if(fa(b,d)){var e=0,f=!0,g=b.length,k=b[e],r=[];c();f=!1}}function Ca(){var b=F(arguments);return function(){var d=this,c=F(arguments),a=c.pop();V(b,c,function(a,b,c){a.push(function(a){var b=I(arguments,1);c(a,b)});b.apply(d,a)},function(b,c){c=Array.isArray(c)?c:[c];c.unshift(b);a.apply(d,c)})}}function Da(b){return function(d){var c=function(){var a=
this,c=F(arguments),g=c.pop()||y;return b(d,function(b,d){b.apply(a,c.concat([d]))},g)};if(1<arguments.length){var a=I(arguments,1);return c.apply(this,a)}return c}}function Ea(b,d){function c(a,b,c){function d(a){var b=e.tasks,c=b.length;if(!c)return 0;for(var f=-1;++f<c&&!(a<b[f].priority););return f}e.started=!0;var q=Array.isArray(a)?a:[a];if(void 0!==a&&q.length){c="function"===typeof c?c:y;var m=d(b);L(q,function(a){a={task:a,priority:b,callback:c};e.tasks.splice(m++,0,a);"function"===typeof e.saturated&&
e.length()===e.concurrency&&e.saturated();C.nextTick(e.process)})}else e.idle()&&C.nextTick(function(){"function"===typeof e.drain&&e.drain()})}if(void 0===d)d=1;else if(isNaN(d)||1>d)throw Error("concurrency must be more than 1");var a=0,e={tasks:[],concurrency:d,saturated:y,empty:y,drain:y,started:!1,paused:!1,push:function(a,b,d){c(a,b,d)},kill:function(){e.drain=y;e.tasks=[]},process:function(){function b(){a--;c.callback&&c.callback.apply(c,F(arguments));"function"===typeof e.drain&&e.idle()&&
e.drain();e.process()}if(!(e.paused||a>=e.concurrency)&&e.length()){var c=e.tasks.shift();"function"!==typeof e.empty||e.length()||e.empty();a++;e._worker(c.task,E(b))}},length:function(){return e.tasks.length},running:function(){return a},idle:function(){return 0===e.length()+a},pause:function(){e.paused=!0},resume:function(){!1!==e.paused&&(e.paused=!1,J(e.concurrency,function(){C.setImmediate(e.process)}))},_worker:b};return e}function Fa(b,d,c){function a(){d(k,e)}function e(d,e){f[k]=e;d?(c(d),
c=B):++k>=b?(c(void 0,f),c=B):g?C.nextTick(a):(g=!0,a());g=!1}c=c||y;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var f=Array(b),g=!0,k=0;a();g=!1}function Ga(b){return function(){var d=F(arguments),c=d.pop(),a;try{a=b.apply(this,d)}catch(e){return c(e)}if("object"===typeof a&&"function"===typeof a.then)a.then(function(a){c(null,a)})["catch"](c);else c(null,a)}}function ga(b){function d(c){if(W[typeof console])if(c)console.error&&console.error(c);else if(console[b]){var a=I(arguments,1);L(a,function(a){console[b](a)})}}
return function(b){var a=I(arguments,1);a.push(d);b.apply(null,a)}}function G(b,d){this._emitter=b||Aa;this._limit=d||4;this._events={};this._runing={};this._queue={}}function Ha(b){b=b||y;if(b.ONCE===ha)return b;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;return d}function Ia(b){b=b||y;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;d.ONCE=ha;return d}var P=this,Ua=P&&P.async,y=function(){},B=function(){throw Error("Callback was already called.");},W={"function":!0,object:!0},
z="function"===typeof Symbol&&Symbol.iterator,Ja,ia,X;(function(){var b=function(b){setTimeout(b,0)};X="function"===typeof setImmediate?setImmediate:b;Ja="object"===typeof process&&"function"===typeof process.nextTick?ia=/^v0.10/.test(process.version)?X:process.nextTick:ia=X})();var S=function(b,d,c){return function(a,e,f){function g(a,b){a?(f(a),f=y):++q===k?f():!1===b&&(f(),f=y)}f=f||y;var k,r,q=0;Array.isArray(a)?(k=a.length,b(a,e,g)):a&&(z&&a[z]?(k=a.size,c(a,e,g)):"object"===typeof a&&(r=Object.keys(a),
k=r.length,d(a,e,g,r)));k||f()}}(ja,ka,la),Va=qa(ma,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(f));else for(;++f<g;)d(b[a[f]],c(f))},function(b,d,c){var a=-1,e=b.size,f=b[z]();if(3===d.length)for(;++a<e;)b=f.next().value,d(b[1],b[0],c(a));else for(;++a<e;)d(f.next().value[1],c(a))},!0),Wa=qa(ma,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(e));else for(;++f<g;)e=a[f],d(b[e],c(e))},function(b,d,c){var a,e=b[z]();if(3===
d.length)for(;!1===(b=e.next()).done;)a=b.value[0],d(b.value[1],a,c(a));else for(;!1===(b=e.next()).done;)d(b.value[1],c(b.value[0]))},!1),Ka=ra(ba,na,oa,!0),La=sa(!0),Ma=ta(!0),Xa=ra(ba,na,oa,!1),Ya=sa(!1),Za=ta(!1),za=ua(Y,Z,aa,!0),Na=va(!0),Oa=wa(!0),Pa=function(b,d,c){var a=ua(b,d,c,!1);return function(b,c,d){function k(a){d(!a)}function r(a,b){d(a,!b)}d=d||y;a(b,c,2===d.length?r:k)}}(Y,Z,aa),$a=function(){var b=va(!1);return function(d,c,a){function e(b){a(!b)}function f(b,c){a(b,!c)}a=a||y;
b(d,c,2===a.length?f:e)}}(),ab=function(){var b=wa(!1);return function(d,c,a,e){function f(a){e(!a)}function g(a,b){e(a,!b)}e=e||y;b(d,c,a,2===e.length?g:f)}}(),bb=function(b,d,c){return function(a,e,f){function g(a,b){return function(c){null===a&&B();c&&(l[a]=b);a=null;++m===r&&f(l)}}function k(a,b){return function(c,d){null===a&&B();c?(f(c,M(l)),f=y,a=null):(d&&(l[a]=b),a=null,++m===r&&(f(void 0,l),f=B))}}f=f||y;var r,q,m=0,l={},h=2===f.length,n=h?k:g;Array.isArray(a)?(r=a.length,b(a,e,n)):a&&(z&&
a[z]?(r=a.size,c(a,e,n)):"object"===typeof a&&(q=Object.keys(a),r=q.length,d(a,e,n,q)));if(!r)return h?f(void 0,{}):f({})}}(ba,function(b,d,c,a){var e,f,g=-1,k=a.length;if(3===d.length)for(;++g<k;)e=a[g],f=b[e],d(f,e,c(e,f));else for(;++g<k;)e=a[g],f=b[e],d(f,c(e,f))},function(b,d,c){var a,e,f=b[z]();if(3===d.length)for(;!1===(e=f.next()).done;)b=e.value[0],a=e.value[1],d(a,b,c(b,a));else for(;!1===(e=f.next()).done;)a=e.value[1],d(a,c(e.value[0],a))}),cb=function(b,d,c){return function(a,e,f,g){function k(a,
b){a?(f(a,Array.isArray(m)?O(m):M(m)),f=y):++l===r?f(void 0,m):!1===b&&(f(void 0,Array.isArray(m)?O(m):M(m)),f=y)}f=f||y;var r,q,m,l=0;Array.isArray(a)?(r=a.length,m=void 0!==g?g:[],b(a,m,e,k)):a&&(z&&a[z]?(r=a.size,m=void 0!==g?g:{},c(a,m,e,k)):"object"===typeof a&&(q=Object.keys(a),r=q.length,m=void 0!==g?g:{},d(a,m,e,k,q)));r||f(void 0,void 0!==g?g:m||{})}}(function(b,d,c,a){var e=-1,f=b.length;if(4===c.length)for(;++e<f;)c(d,b[e],e,E(a));else for(;++e<f;)c(d,b[e],E(a))},function(b,d,c,a,e){var f,
g=-1,k=e.length;if(4===c.length)for(;++g<k;)f=e[g],c(d,b[f],f,E(a));else for(;++g<k;)c(d,b[e[g]],E(a))},function(b,d,c,a){var e=b[z]();if(4===c.length)for(;!1===(b=e.next()).done;)c(d,b.value[1],b.value[0],E(a));else for(;!1===(b=e.next()).done;)c(d,b.value[1],E(a))}),db=function(b,d,c){return function(a,e,f){function g(a){var b=!1;return function(c,d){b&&B();b=!0;r[q]={value:a,criteria:d};c?(f(c),f=y):++q===k&&(r.sort(da),f(void 0,T(r,"value")),f=B)}}f=f||y;var k,r,q=0;if(Array.isArray(a))k=a.length,
r=Array(k),b(a,e,g);else if(a)if(z&&a[z])k=a.size,r=Array(k),c(a,e,g);else if("object"===typeof a){var m=Object.keys(a);k=m.length;r=Array(k);d(a,e,g,m)}k||f(void 0,[])}}(Y,Z,aa),eb=function(b,d,c){return function(a,e,f){function g(a,b){b&&Array.prototype.push.apply(q,Array.isArray(b)?b:[b]);a?(f(a,O(q)),f=y):++r===k&&f(void 0,q)}f=f||y;var k,r=0,q=[];if(Array.isArray(a))k=a.length,b(a,e,g);else if(a)if(z&&a[z])k=a.size,c(a,e,g);else if("object"===typeof a){var m=Object.keys(a);k=m.length;d(a,e,g,
m)}k||f(void 0,q)}}(ja,ka,la),Qa=function(b,d){return function(c,a){function e(b){return function(c,d){null===b&&B();c?(a(c,k),a=y,b=null):(k[b]=2>=arguments.length?d:I(arguments,1),b=null,++r===f&&(a(void 0,k),a=B))}}a=a||y;var f,g,k,r=0;Array.isArray(c)?(f=c.length,k=Array(f),b(c,e)):c&&"object"===typeof c&&(g=Object.keys(c),f=g.length,k={},d(c,e,g));f||a(void 0,k)}}(function(b,d){for(var c=-1,a=b.length;++c<a;)b[c](d(c))},function(b,d,c){for(var a,e=-1,f=c.length;++e<f;)a=c[e],b[a](d(a))}),C={VERSION:"1.5.1",
each:S,eachSeries:R,eachLimit:U,forEach:S,forEachSeries:R,forEachLimit:U,eachOf:S,eachOfSeries:R,eachOfLimit:U,forEachOf:S,forEachOfSeries:R,forEachOfLimit:U,map:Va,mapSeries:function(b,d,c){function a(){d(b[v],q)}function e(){d(b[v],v,q)}function f(){d(n.next().value[1],q)}function g(){p=n.next().value;d(p[1],p[0],q)}function k(){d(b[h[v]],q)}function r(){l=h[v];d(b[l],l,q)}function q(a,b){x[v]=b;a?(c(a,O(x)),c=B):++v>=m?(c(void 0,x),c=B):u?C.nextTick(t):(u=!0,t());u=!1}c=c||y;var m,l,h,n,p,x,t,
u=!0,v=0;Array.isArray(b)?(m=b.length,t=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),t=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,t=3===d.length?r:k));if(!m)return c(void 0,[]);x=Array(m);t();u=!1},mapLimit:function(b,d,c,a){function e(){h=A++;h<l&&c(b[h],m(h))}function f(){h=A++;h<l&&c(b[h],h,m(h))}function g(){!1===(t=x.next()).done&&c(t.value[1],m(A++))}function k(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],m(A++))}function r(){h=A++;h<l&&c(b[p[h]],m(h))}function q(){h=
A++;h<l&&(n=p[h],c(b[n],n,m(h)))}function m(b){return function(c,d){null===b&&B();u[b]=d;b=null;c?(a(c,O(u)),v=a=y):++D>=l?(a(void 0,u),a=B):w?C.nextTick(v):(w=!0,v());w=!1}}a=a||y;var l,h,n,p,x,t,u,v,w=!0,A=0,D=0;Array.isArray(b)?(l=b.length,v=3===c.length?f:e):b&&(z&&b[z]?(l=b.size,x=b[z](),v=3===c.length?k:g):"object"===typeof b&&(p=Object.keys(b),l=p.length,v=3===c.length?q:r));if(!l||isNaN(d)||1>d)return a(void 0,[]);u=Array(l);J(d>l?l:d,v);w=!1},mapValues:Wa,mapValuesSeries:function(b,d,c){function a(){l=
v;d(b[v],q)}function e(){l=v;d(b[v],v,q)}function f(){p=n.next().value;l=p[0];d(p[1],q)}function g(){p=n.next().value;l=p[0];d(p[1],l,q)}function k(){l=h[v];d(b[l],q)}function r(){l=h[v];d(b[l],l,q)}function q(a,b){u[l]=b;a?(c(a,M(u)),c=B):++v>=m?(c(void 0,u),c=B):t?C.nextTick(x):(t=!0,x());t=!1}c=c||y;var m,l,h,n,p,x,t=!0,u={},v=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:
k));if(!m)return c(void 0,u);x();t=!1},mapValuesLimit:function(b,d,c,a){function e(){h=A++;h<l&&c(b[h],m(h))}function f(){h=A++;h<l&&c(b[h],h,m(h))}function g(){!1===(t=x.next()).done&&c(t.value[1],m(t.value[0]))}function k(){!1===(t=x.next()).done&&(n=t.value[0],c(t.value[1],n,m(n)))}function r(){h=A++;h<l&&(n=p[h],c(b[n],m(n)))}function q(){h=A++;h<l&&(n=p[h],c(b[n],n,m(n)))}function m(b){return function(c,d){null===b&&B();w[b]=d;b=null;c?(a(c,M(w)),u=a=y):++D>=l?(a(void 0,w),a=B):v?C.nextTick(u):
(v=!0,u());v=!1}}a=a||y;var l,h,n,p,x,t,u,v=!0,w={},A=0,D=0;Array.isArray(b)?(l=b.length,u=3===c.length?f:e):b&&(z&&b[z]?(l=b.size,x=b[z](),u=3===c.length?k:g):"object"===typeof b&&(p=Object.keys(b),l=p.length,u=3===c.length?q:r));if(!l||isNaN(d)||1>d)return a(void 0,w);J(d>l?l:d,u);v=!1},filter:Ka,filterSeries:La,filterLimit:Ma,select:Ka,selectSeries:La,selectLimit:Ma,reject:Xa,rejectSeries:Ya,rejectLimit:Za,detect:za,detectSeries:Na,detectLimit:Oa,pick:bb,pickSeries:function(b,d,c){function a(){h=
A;n=b[A];d(n,E)}function e(){h=A;n=b[A];d(n,A,E)}function f(){t=x.next().value;h=t[0];n=t[1];d(n,E)}function g(){t=x.next().value;h=t[0];n=t[1];d(n,h,E)}function k(){h=p[A];n=b[h];d(n,E)}function r(){h=p[A];n=b[h];d(n,h,E)}function q(a){a&&(w[h]=n);++A>=l?(c(w),c=B):v?C.nextTick(u):(v=!0,u());v=!1}function m(a,b){a?(c(a,w),c=B):(b&&(w[h]=n),++A>=l?(c(void 0,w),c=B):v?C.nextTick(u):(v=!0,u()),v=!1)}c=c||y;var l,h,n,p,x,t,u,v=!0,w={},A=0,D=2===c.length,E=D?m:q;Array.isArray(b)?(l=b.length,u=3===d.length?
e:a):b&&(z&&b[z]?(l=b.size,x=b[z](),u=3===d.length?g:f):"object"===typeof b&&(p=Object.keys(b),l=p.length,u=3===d.length?r:k));if(!l)return D?c(void 0,{}):c({});u();v=!1},pickLimit:function(b,d,c,a){function e(){n=E++;n<h&&(x=b[n],c(x,F(x,n)))}function f(){n=E++;n<h&&(x=b[n],c(x,n,F(x,n)))}function g(){!1===(v=u.next()).done&&(x=v.value[1],c(x,F(x,v.value[0])))}function k(){!1===(v=u.next()).done&&(p=v.value[0],x=v.value[1],c(x,p,F(x,p)))}function r(){E<h&&(p=t[E++],x=b[p],c(x,F(x,p)))}function q(){E<
h&&(p=t[E++],x=b[p],c(x,p,F(x,p)))}function m(b,c){return function(d){null===c&&B();d&&(D[c]=b);c=null;++H>=h?(a(D),a=B):A?C.nextTick(w):(A=!0,w());A=!1}}function l(b,c){return function(d,e){null===c&&B();d?(a(d,M(D)),w=a=y,c=null):(e&&(D[c]=b),c=null,++H>=h?(a(void 0,D),a=B):A?C.nextTick(w):(A=!0,w()),A=!1)}}a=a||y;var h,n,p,x,t,u,v,w,A=!0,D={},E=0,H=0,G=2===a.length,F=G?l:m;Array.isArray(b)?(h=b.length,w=3===c.length?f:e):b&&(z&&b[z]?(h=b.size,u=b[z](),w=3===c.length?k:g):"object"===typeof b&&(t=
Object.keys(b),h=t.length,w=3===c.length?q:r));if(!h||isNaN(d)||1>d)return G?a(void 0,{}):a({});J(d>h?h:d,w);A=!1},reduce:V,inject:V,foldl:V,reduceRight:xa,foldr:xa,transform:cb,transformSeries:function(b,d,c,a){function e(){d(u,b[w],m)}function f(){d(u,b[w],w,m)}function g(){d(u,p.next().value[1],m)}function k(){x=p.next().value;d(u,x[1],x[0],m)}function r(){d(u,b[n[w]],m)}function q(){h=n[w];d(u,b[h],h,m)}function m(a,b){a?(c(a,u),c=B):++w>=l?(c(void 0,u),c=B):!1===b?(c(void 0,u),c=B):v?C.nextTick(t):
(v=!0,t());v=!1}c=c||y;var l,h,n,p,x,t,u,v=!0,w=0;Array.isArray(b)?(l=b.length,u=void 0!==a?a:[],t=4===d.length?f:e):b&&(z&&b[z]?(l=b.size,p=b[z](),u=void 0!==a?a:{},t=4===d.length?k:g):"object"===typeof b&&(n=Object.keys(b),l=n.length,u=void 0!==a?a:{},t=4===d.length?q:r));if(!l)return c(void 0,void 0!==a?a:u||{});t();v=!1},transformLimit:function(b,d,c,a,e){function f(){n=D++;n<h&&c(w,b[n],E(l))}function g(){n=D++;n<h&&c(w,b[n],n,E(l))}function k(){!1===(u=t.next()).done&&c(w,u.value[1],E(l))}function r(){!1===
(u=t.next()).done&&c(w,u.value[1],u.value[0],E(l))}function q(){n=D++;n<h&&c(w,b[x[n]],E(l))}function m(){n=D++;n<h&&(p=x[n],c(w,b[p],p,E(l)))}function l(b,c){b?(a(b,Array.isArray(w)?O(w):M(w)),v=a=y):++F>=h?(a(void 0,w),a=B):!1===c?(a(void 0,Array.isArray(w)?O(w):M(w)),v=a=y):A?C.nextTick(v):(A=!0,v());A=!1}a=a||y;var h,n,p,x,t,u,v,w,A=!0,D=0,F=0;Array.isArray(b)?(h=b.length,w=void 0!==e?e:[],v=4===c.length?g:f):b&&(z&&b[z]?(h=b.size,t=b[z](),w=void 0!==e?e:{},v=4===c.length?r:k):"object"===typeof b&&
(x=Object.keys(b),h=x.length,w=void 0!==e?e:{},v=4===c.length?m:q));if(!h||isNaN(d)||1>d)return a(void 0,void 0!==e?e:w||{});J(d>h?h:d,v);A=!1},sortBy:db,sortBySeries:function(b,d,c){function a(){h=b[w];d(h,q)}function e(){h=b[w];d(h,w,q)}function f(){h=p.next().value[1];d(h,q)}function g(){x=p.next().value;h=x[1];d(h,x[0],q)}function k(){h=b[n[w]];d(h,q)}function r(){l=n[w];h=b[l];d(h,l,q)}function q(a,b){t[w]={value:h,criteria:b};a?(c(a),c=B):++w>=m?(t.sort(da),c(void 0,T(t,"value")),c=B):v?C.nextTick(u):
(v=!0,u());v=!1}c=c||y;var m,l,h,n,p,x,t,u,v=!0,w=0;Array.isArray(b)?(m=b.length,u=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,p=b[z](),u=3===d.length?g:f):"object"===typeof b&&(n=Object.keys(b),m=n.length,u=3===d.length?r:k));if(!m)return c(void 0,[]);t=Array(m);u();v=!1},sortByLimit:function(b,d,c,a){function e(){D<l&&(p=b[D++],c(p,m(p)))}function f(){h=D++;h<l&&(p=b[h],c(p,h,m(p)))}function g(){!1===(u=t.next()).done&&(p=u.value[1],c(p,m(p)))}function k(){!1===(u=t.next()).done&&(p=u.value[1],c(p,
u.value[0],m(p)))}function r(){D<l&&(p=b[x[D++]],c(p,m(p)))}function q(){D<l&&(n=x[D++],p=b[n],c(p,n,m(p)))}function m(b){var c=!1;return function(d,e){c&&B();c=!0;v[E]={value:b,criteria:e};d?(a(d),w=a=y):++E>=l?(v.sort(da),a(void 0,T(v,"value")),a=B):A?C.nextTick(w):(A=!0,w());A=!1}}a=a||y;var l,h,n,p,x,t,u,v,w,A=!1,D=0,E=0;Array.isArray(b)?(l=b.length,w=3===c.length?f:e):b&&(z&&b[z]?(l=b.size,t=b[z](),w=3===c.length?k:g):"object"===typeof b&&(x=Object.keys(b),l=x.length,w=3===c.length?q:r));if(!l||
isNaN(d)||1>d)return a(void 0,[]);v=Array(l);J(d>l?l:d,w)},some:ya,someSeries:function(b,d,c){function a(a){c(!!a)}function e(a,b){c(a,!!b)}c=c||y;Na(b,d,2===c.length?e:a)},someLimit:function(b,d,c,a){function e(b){a(!!b)}function f(b,c){a(b,!!c)}a=a||y;Oa(b,d,c,2===a.length?f:e)},any:ya,every:Pa,all:Pa,everySeries:$a,everyLimit:ab,concat:eb,concatSeries:function(b,d,c){function a(){d(b[v],q)}function e(){d(b[v],v,q)}function f(){d(n.next().value[1],q)}function g(){p=n.next().value;d(p[1],p[0],q)}
function k(){d(b[h[v]],q)}function r(){l=h[v];d(b[l],l,q)}function q(a,b){b&&Array.prototype.push.apply(u,Array.isArray(b)?b:[b]);a?(c(a,u),c=B):++v>=m?(c(void 0,u),c=B):t?C.nextTick(x):(t=!0,x());t=!1}c=c||y;var m,l,h,n,p,x,t=!0,u=[],v=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:k));if(!m)return c(void 0,u);x();t=!1},concatLimit:function(b,d,c,a){function e(){w<h&&c(b[w++],
E(m))}function f(){n=w++;n<h&&c(b[n],n,E(m))}function g(){!1===(t=x.next()).done&&c(t.value[1],E(m))}function k(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],E(m))}function r(){w<h&&c(b[D[w++]],E(m))}function q(){w<h&&(p=D[w++],c(b[p],p,E(m)))}function m(b,c){c&&Array.prototype.push.apply(l,Array.isArray(c)?c:[c]);b?(a(b,l),a=y):++A>=h?(a(void 0,l),a=B):v?C.nextTick(u):(v=!0,u());v=!1}a=a||y;var l=[],h,n,p,x,t,u,v=!0,w=0,A=0;if(Array.isArray(b))h=b.length,u=3===c.length?f:e;else if(b)if(z&&b[z])h=
b.size,x=b[z](),u=3===c.length?k:g;else if("object"===typeof b){var D=Object.keys(b);h=D.length;u=3===c.length?q:r}if(!h||isNaN(d)||1>d)return a(void 0,l);J(d>h?h:d,u);v=!1},parallel:Qa,series:Aa,parallelLimit:ea,waterfall:function(b,d){function c(){f=!1;switch(q.length){case 0:case 1:return r(a);case 2:return r(q[1],a);case 3:return r(q[1],q[2],a);case 4:return r(q[1],q[2],q[3],a);case 5:return r(q[1],q[2],q[3],q[4],a);case 6:return r(q[1],q[2],q[3],q[4],q[5],a);default:return q=I(q,1),q.push(a),
r.apply(null,q)}}function a(a){f&&B();a?(d(a),d=B):(f=!0,++e>=k?(d.apply(null,F(arguments)),d=B):(r=b[e],q=arguments,g?C.nextTick(c):(g=!0,c()),g=!1))}d=d||y;if(fa(b,d)){var e=0,f=!1,g=!0,k=b.length,r=b[e],q=[];c();g=!1}},angelFall:Ba,angelfall:Ba,whilst:function(b,d,c){function a(){b()?d(function(b){if(b)return c(b);e?C.nextTick(a):(e=!0,a());e=!1}):c()}c=c||y;var e=!0;a();e=!1},doWhilst:function(b,d,c){function a(){b(function(b,g){if(b)return c(b);(2>=arguments.length?d(g):d.apply(null,I(arguments,
1)))?(e?C.nextTick(a):(e=!0,a()),e=!1):c()})}c=c||y;var e=!0;a();e=!1},until:function(b,d,c){function a(){b()?c():d(function(b){if(b)return c(b);e?C.nextTick(a):(e=!0,a());e=!1})}c=c||y;var e=!0;a();e=!1},doUntil:function(b,d,c){function a(){b(function(b,g){if(b)return c(b);(2>=arguments.length?d(g):d.apply(null,I(arguments,1)))?c():(e?C.nextTick(a):(e=!0,a()),e=!1)})}c=c||y;var e=!0;a();e=!1},during:function(b,d,c){function a(a,b){if(a)return c(a);b?d(e):c()}function e(d){if(d)return c(d);b(a)}c=
c||y;b(a)},doDuring:function(b,d,c){function a(a,d){if(a)return c(a);d?b(e):c()}function e(b,e){if(b)return c(b);switch(arguments.length){case 0:case 1:d(a);break;case 2:d(e,a);break;default:var k=I(arguments,1);k.push(a);d.apply(null,k)}}c=c||y;a(null,!0)},forever:function(b,d){function c(){b(a)}function a(a){if(a){if(d)return d(a);throw a;}e?C.nextTick(c):(e=!0,c());e=!1}var e=!0;c();e=!1},compose:function(){return Ca.apply(null,Ra(arguments))},seq:Ca,applyEach:Da(S),applyEachSeries:Da(R),queue:function(b,
d){function c(b,c,d){a.started=!0;var k=Array.isArray(b)?b:[b];void 0!==b&&k.length?(c="function"===typeof c?c:null,L(k,function(b){b={task:b,callback:c};d?a.tasks.unshift(b):a.tasks.push(b);"function"===typeof a.saturated&&a.length()===a.concurrency&&a.saturated();C.nextTick(a.process)})):a.idle()&&C.nextTick(function(){"function"===typeof a.drain&&a.drain()})}var a=Ea(b,d);a.unshift=function(a,b){c(a,b,!0)};a.push=function(a,b){c(a,b)};return a},priorityQueue:Ea,cargo:function(b,d){var c=!1,a={tasks:[],
payload:d,saturated:y,empty:y,drain:y,drained:!0,push:function(b,c){b=Array.isArray(b)?b:[b];c="function"===typeof c?c:y;L(b,function(b){a.tasks.push({data:b,callback:c});a.drained=!1;"function"===typeof a.saturated&&a.length()===a.payload&&a.saturated()});C.nextTick(a.process)},process:function(){if(!c)if(a.length()){var e="number"===typeof a.payload?a.tasks.splice(0,d):a.tasks,f=T(e,"data");a.length()||"function"!==typeof a.empty||a.empty();c=!0;b(f,function(){c=!1;var b=F(arguments);L(e,function(a){a.callback&&
a.callback.apply(null,b)});a.process()})}else"function"!==typeof a.drain||a.drained||a.drain(),a.drained=!0},length:function(){return a.tasks.length},running:function(){return c}};return a},auto:function(b,d){function c(a){g.unshift(a)}function a(){f--;L(g.slice(0),function(a){a()})}d=d?E(d):y;var e=Object.keys(b),f=e.length;if(!f)return d();var g=[],k={};c(function(){f||d(void 0,k)});N(b,function(b,e){function f(b){var c=I(arguments,1);1>=c.length&&(c=c[0]);if(b){var g=M(k);g[e]=c;d(b,g);d=y}else k[e]=
c,C.nextTick(a)}function l(){return!k.hasOwnProperty(e)&&Sa(p,function(b){return k.hasOwnProperty(b)})}function h(){if(l()){var b;a:{b=-1;for(var a=g.length;++b<a;)if(g[b]===h)break a;b=void 0}0<=b&&g.splice(b,1);x(f,k)}}b=Array.isArray(b)?b:[b];var n=b.length,p=b.slice(0,n-1),x=b[n-1];if(l())return x(f,k);c(h)},e)},retry:function(b,d,c){function a(a,f){c=a||c||y;var g,k;Fa(b,function(a,c){d(function(d,e){g=d;k=e;if(!d)return c(!0);c(d&&a===b-1)},f)},function(){c(g,k)})}"function"===typeof b&&(c=
d,d=b,b=5);b=parseInt(b,10)||5;return"function"===typeof c?a():a},iterator:function(b){function d(e){var f=function(){c&&b[a[e]||e].apply(null,F(arguments));return f.next()};f.next=function(){return e<c-1?d(e+1):null};return f}var c=0,a=[];Array.isArray(b)?c=b.length:(a=Object.keys(b),c=a.length);return d(0)},apply:function(b){switch(arguments.length){case 0:case 1:return b;case 2:return b.bind(null,arguments[1]);case 3:return b.bind(null,arguments[1],arguments[2]);case 4:return b.bind(null,arguments[1],
arguments[2],arguments[3]);case 5:return b.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var d=arguments.length,c=0,a=Array(d);for(a[c]=null;++c<d;)a[c]=arguments[c];return b.bind.apply(b,a)}},nextTick:Ja,safeNextTick:ia,setImmediate:X,times:function(b,d,c){function a(a){return function(d,k){null===a&&B();e[a]=k;a=null;d?(c(d),c=y):0===--b&&c(void 0,e)}}c=c||y;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var e=Array(b);J(b,function(b){d(b,a(b))})},timesSeries:Fa,timesLimit:function(b,
d,c,a){function e(){var a=r++;a<b&&c(a,f(a))}function f(c){return function(d,f){null===c&&B();g[c]=f;c=null;d?(a(d),a=y):++q>=b?(a(void 0,g),a=B):k?C.nextTick(e):(k=!0,e());k=!1}}a=a||y;b=+b;if(isNaN(b)||1>b||isNaN(d)||1>d)return a(void 0,[]);var g=Array(b),k=!0,r=0,q=0;J(d>b?b:d,e);k=!1},memoize:function(b,d){d=d||function(a){return a};var c={},a={},e=function(){function e(){var b=F(arguments);c[r]=b;var d=a[r];delete a[r];for(var f=-1,g=d.length;++f<g;)d[f].apply(null,b)}var g=F(arguments),k=g.pop(),
r=d.apply(null,g);if(c.hasOwnProperty(r))C.nextTick(function(){k.apply(null,c[r])});else{if(a.hasOwnProperty(r))return a[r].push(k);a[r]=[k];g.push(e);b.apply(null,g)}};e.memo=c;e.unmemoized=b;return e},unmemoize:function(b){return function(){return(b.unmemoized||b).apply(null,arguments)}},ensureAsync:function(b){return function(){var d=!0,c=F(arguments),a=c.pop();c.push(function(){var b=arguments;d?C.safeNextTick(function(){a.apply(null,b)}):a.apply(null,b)});b.apply(this,c);d=!1}},constant:function(){var b=
[null].concat(F(arguments));return function(d){d.apply(this,b)}},asyncify:Ga,wrapSync:Ga,log:ga("log"),dir:ga("dir"),createLogger:ga,noConflict:function(){P.async=Ua;return C},eventEmitter:function(b){b=b||{};var d=b.limit;return b.parallel&&!d?new G(Qa):b.parallel||b.parallelLimit?new G(ea,d):new G(b.emitter)},EventEmitter:G,safe:void 0};C.safe=pa();W[typeof define]&&define&&define.amd?define([],function(){return C}):W[typeof module]&&module&&module.exports?module.exports=C:P&&W[typeof P.async]?
P.neo_async=C:P.async=C;var ha={__ONCE__:!0};G.prototype.getListeners=function(b){function d(b){b=b||[];var a=Array(b.length);L(b,function(b,c){a[c]=b.func});return a}var c=this._events;if(b)return d(c[b]);var a={};N(c,function(b,c){a[c]=d(b)});return a};G.prototype.addListener=function d(c,a){var e=this;if("object"===typeof c)return N(c,function(a,c){d.call(e,c,a)}),e;if(e.running(c))return e.queue(c,"addListener",a);e._events[c]=e._events[c]||[];Array.isArray(a)?L(a,function(a){e._events[c].push(Ha(a))}):
e._events[c].push(Ha(a));return e};G.prototype.addOnceListener=function c(a,e){var f=this;if("object"===typeof a)return N(a,function(a,e){c.call(f,e,a)}),f;Array.isArray(e)?L(e,function(a,c){e[c]=Ia(a)}):e=Ia(e);return f.addListener(a,e)};G.prototype.removeListener=function a(e,f){var g=this;if("object"===typeof e)return N(e,function(e,f){a.call(g,f,e)}),g;if(g.running(e))return g.queue(e,"removeListener",f);var k=g._events[e]||[];if(!k.length)return g;if(Array.isArray(f))return ca(f,function(f){a.call(g,
f,e)}),g;ca(k,function(a,e){a.func===f&&k.splice(e,1)});return g};G.prototype.removeEvent=function e(f){var g=this;if(!f)return N(g._events,function(f,r){e.call(g,r)}),g;(g._events[f]||[]).length&&delete g._events[f];return g};G.prototype.running=function(e){return this._runing[e]};G.prototype.queue=function(e,f,g,k){this._queue[e]=this._queue[e]||[];this._queue[e].push([f,g,k]);return this};G.prototype.resolve=function(e){if(this._runing[e])return this;var f=this._queue[e]||[];if(!f.length)return this;
f=f.shift();this[f[0]](e,f[1],f[2]);return this.resolve(e)};G.prototype.emit=function(e,f,g){function k(g,h){g?f(g):(ca(q,function(e,f){e.ONCE===ha&&q.splice(f,1)}),f(void 0,h));r._runing[e]=!1;r.resolve(e)}f=f||y;var r=this;if(r.running(e))return r.queue(e,"emit",f,g);var q=r._events[e]||[];if(!q.length)return f(),r;r._runing[e]=!0;var m=r._emitter,m=g?m.bind(g):m;m===ea?m(q,r._limit,k):m(q,k);return r};G.prototype.on=G.prototype.addListener;G.prototype.once=G.prototype.addOnceListener;G.prototype.off=
G.prototype.removeListener;G.prototype.removeAllListener=G.prototype.removeEvent;G.prototype.trigger=G.prototype.emit}).call(this);
(function(){function H(b){for(var d=-1,c=b.length,a=Array(c);++d<c;)a[d]=b[d];return a}function I(b,d){var c=-1,a=b.length-d;if(0>=a)return[];for(var e=Array(a);++c<a;)e[c]=b[c+d];return e}function Q(b){for(var d=-1,c=b.length,a=[];++d<c;){var e=b[d];e&&(a[a.length]=e)}return a}function Xa(b){for(var d=-1,c=b.length,a=Array(c),e=c;++d<c;)a[--e]=b[d];return a}function ja(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,F(c));else for(;++a<e;)d(b[a],F(c))}function ka(b,d,c,a){var e,f=
-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,F(c));else for(;++f<g;)d(b[a[f]],F(c))}function la(b,d,c){b=b[z]();var a;if(3===d.length)for(;!1===(a=b.next()).done;)d(a.value[1],a.value[0],c);else for(;!1===(a=b.next()).done;)d(a.value[1],c)}function ma(b,d,c){var a=-1,e=b.length;if(3===d.length)for(;++a<e;)d(b[a],a,c(a));else for(;++a<e;)d(b[a],c(a))}function Z(b,d,c){var a,e=-1,f=b.length;if(3===d.length)for(;++e<f;)a=b[e],d(a,e,c(a));else for(;++e<f;)a=b[e],d(a,c(a))}function aa(b,d,
c,a){var e,f,g=-1,l=a.length;if(3===d.length)for(;++g<l;)e=a[g],f=b[e],d(f,e,c(f));else for(;++g<l;)f=b[a[g]],d(f,c(f))}function ba(b,d,c){var a,e=b[z]();if(3===d.length)for(;!1===(a=e.next()).done;)b=a.value[1],d(b,a.value[0],c(b));else for(;!1===(a=e.next()).done;)b=a.value[1],d(b,c(b))}function T(b,d,c){var a,e=-1,f=b.length;if(3===d.length)for(;++e<f;)a=b[e],d(a,e,c(e,a));else for(;++e<f;)a=b[e],d(a,c(e,a))}function na(b,d,c,a){var e,f,g=-1,l=a.length;if(3===d.length)for(;++g<l;)e=a[g],f=b[e],
d(f,e,c(g,f));else for(;++g<l;)f=b[a[g]],d(f,c(g,f))}function oa(b,d,c){var a,e=-1,f=b[z]();if(3===d.length)for(;!1===(a=f.next()).done;)b=a.value[0],a=a.value[1],d(a,b,c(++e,a));else for(;!1===(a=f.next()).done;)a=a.value[1],d(a,c(++e,a))}function pa(b,d,c,a){var e,f,g=-1,l=a.length;if(3===d.length)for(;++g<l;)e=a[g],f=b[e],d(f,e,c(e,f));else for(;++g<l;)e=a[g],f=b[e],d(f,c(e,f))}function qa(b,d,c){var a,e,f=b[z]();if(3===d.length)for(;!1===(e=f.next()).done;)b=e.value[0],a=e.value[1],d(a,b,c(b,
a));else for(;!1===(e=f.next()).done;)a=e.value[1],d(a,c(e.value[0],a))}function L(b,d){for(var c=-1,a=b.length;++c<a;)d(b[c],c);return b}function ca(b,d){for(var c=b.length;c--;)d(b[c],c);return b}function N(b,d,c){c=c||Object.keys(b);for(var a=-1,e=c.length;++a<e;){var f=c[a];d(b[f],f)}return b}function J(b,d){for(var c=-1;++c<b;)d(c)}function Ya(b,d){for(var c=b.length,a=-1;++a<c;)if(!d(b[a]))return!1;return!0}function O(b){for(var d=b.length,c=-1,a=Array(d);++c<d;)a[c]=b[c];return a}function M(b){for(var d=
Object.keys(b),c=d.length,a=-1,e={};++a<c;){var f=d[a];e[f]=b[f]}return e}function U(b,d){for(var c=-1,a=b.length,e=Array(a);++c<a;)e[c]=(b[c]||{})[d];return e}function da(b,d){return b.criteria-d.criteria}function F(b){return function(d,c){null===b&&A();b(d,c);b=null}}function ra(){function b(b,c){var d=a.test(c)?0:e.test(c)?2:1,f=b.length;g[c]=function(){var a=H(arguments),c=a[d];switch(c.length){case 1:a[d]=function(a){D.safeNextTick(function(){c(a)})};break;case 2:a[d]=function(a,b){D.safeNextTick(function(){c(a,
b)})};break;case 3:a[d]=function(a,b,d){D.safeNextTick(function(){c(a,b,d)})};break;case 4:a[d]=function(a,b,d,e){D.safeNextTick(function(){c(a,b,d,e)})};break;default:a[d]=function(){var a=H(arguments);D.safeNextTick(function(){c.apply(null,a)})}}switch(f){case 2:return b(a[0],a[1]);case 3:return b(a[0],a[1],a[2]);case 4:return b(a[0],a[1],a[2],a[3]);case 5:return b(a[0],a[1],a[2],a[3],a[4])}}}function d(a,b){function c(){function b(a){return"function"!==typeof a?a:function(){var b=H(arguments);
D.safeNextTick(function(){a.apply(null,b)})}}var e=H(arguments),f=e[0];Array.isArray(f)?L(f,function(a,c){f[c]=b(a)}):f&&"object"===typeof f&&N(f,function(a,c){f[c]=b(a)});switch(d){case 2:a(e[0],e[1]);break;case 3:a(e[0],e[1],e[2])}}if(/^waterfall$/.test(b))g[b]=Za;else{var d=a.length;g[b]=c}}var c=/^(each|foreach|map|filter|select|reject|detect|pick|reduce|inject|fold|transform|sortby|some|any|every|all|concat|times)|(whilst|until|during)$|^forever$/,a=new RegExp(/^do|^forever$/),e=new RegExp(/^reduce|Limit$/),
f=new RegExp(/^parallel|^(series|waterfall|auto)$/),g={};N(D,function(a,e){if("function"===typeof a){if(f.test(e))return d(a,e);if(c.test(e.toLowerCase()))return b(a,e)}g[e]=a});g.safe=ra;return g}function sa(b,d,c,a){var e,f;a?(e=Array,f=O):(e=function(){return{}},f=M);return function(a,l,r){function p(a){return function(b,c){null===a&&A();h[a]=c;a=null;b?(r(b,f(h)),r=y):++n===m&&r(void 0,h)}}r=r||y;var m,q,h,n=0;Array.isArray(a)?(m=a.length,h=e(m),b(a,l,p)):a&&(z&&a[z]?(m=a.size,h=e(m),c(a,l,p)):
"object"===typeof a&&(q=Object.keys(a),m=q.length,h=e(m),d(a,l,p,q)));m||r(void 0,e())}}function ta(b,d,c,a){return function(e,f,g){function l(b,c){return function(d){null===b&&A();!!d===a&&(q[b]=c);b=null;++h===p&&g(Q(q))}}function r(b,c){return function(d,e){null===b&&A();d?(g(d,Q(q)),g=y,b=null):(!!e===a&&(q[b]=c),b=null,++h===p&&g(void 0,Q(q)))}}g=g||y;var p,m,q,h=0,n=2===g.length,k=n?r:l;Array.isArray(e)?(p=e.length,q=Array(p),b(e,f,k)):e&&(z&&e[z]?(p=e.size,q=Array(p),c(e,f,k)):"object"===typeof e&&
(m=Object.keys(e),p=m.length,q=Array(p),d(e,f,k,m)));if(!p)return n?g(void 0,[]):g([])}}function ua(b){return function(d,c,a){function e(){k=d[B];c(k,G)}function f(){k=d[B];c(k,B,G)}function g(){k=t.next().value[1];c(k,G)}function l(){u=t.next().value;k=u[1];c(k,u[0],G)}function r(){n=x[B];k=d[n];c(k,G)}function p(){n=x[B];k=d[n];c(k,n,G)}function m(c){!!c===b&&(C[C.length]=k);++B>=h?(a(C),a=A):w?D.nextTick(v):v()}function q(c,d){c?(a(c,C),a=A):(!!d===b&&(C[C.length]=k),++B>=h?(a(void 0,C),a=A):w?
D.nextTick(v):v())}a=a||y;var h,n,k,x,t,u,v,w=!0,B=0,C=[],K=2===a.length,G=K?q:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?l:g):"object"===typeof d&&(x=Object.keys(d),h=x.length,v=3===c.length?p:r));if(!h)return K?a(void 0,[]):a([]);v();w=!1}}function wa(b){return function(d,c,a,e){function f(){k=G++;k<n&&(t=d[k],a(t,E(t,k)))}function g(){k=G++;k<n&&(t=d[k],a(t,k,E(t,k)))}function l(){!1===(w=v.next()).done&&(t=w.value[1],a(t,E(t,++G)))}function r(){!1===
(w=v.next()).done&&(t=w.value[1],a(t,w.value[0],E(t,++G)))}function p(){k=G++;k<n&&(t=d[u[k]],a(t,E(t,k)))}function m(){k=G++;k<n&&(x=u[k],t=d[x],a(t,x,E(t,k)))}function q(a,c){return function(d){null===c&&A();!!d===b&&(C[c]=a);c=null;++va>=n?(e(Q(C)),e=A):K?D.nextTick(B):B()}}function h(a,c){return function(d,f){null===c&&A();d?(e(d,Q(C)),B=e=y,c=null):(!!f===b&&(C[c]=a),c=null,++va===n?(e(void 0,Q(C)),e=A):K?D.nextTick(B):B())}}e=e||y;var n,k,x,t,u,v,w,B,C,K=!0,G=0,va=0,F=2===e.length,E=F?h:q;Array.isArray(d)?
(n=d.length,B=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),B=3===a.length?r:l):"object"===typeof d&&(u=Object.keys(d),n=u.length,B=3===a.length?m:p));if(!n||isNaN(c)||1>c)return F?e(void 0,[]):e([]);C=Array(n);J(c>n?n:c,B);K=!1}}function R(b,d,c){function a(){d(b[u],p)}function e(){d(b[u],u,p)}function f(){d(n.next().value[1],p)}function g(){k=n.next().value;d(k[1],k[0],p)}function l(){d(b[h[u]],p)}function r(){q=h[u];d(b[q],q,p)}function p(a,b){a?c(a):++u>=m?(c(),c=A):!1===b?c():t?D.nextTick(x):
(t=!0,x());t=!1}c=c||y;var m,q,h,n,k,x,t=!0,u=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:l));if(!m)return c();x();t=!1}function V(b,d,c,a){function e(){w<q&&c(b[w++],m)}function f(){h=w++;h<q&&c(b[h],h,m)}function g(){!1===(t=x.next()).done&&c(t.value[1],m)}function l(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],m)}function r(){w<q&&c(b[k[w++]],m)}function p(){h=w++;h<
q&&(n=k[h],c(b[n],n,m))}function m(b,c){b?(a(b),u=a=y):++B>=q?(a(),a=A):!1===c?(a(),a=y):v?D.nextTick(u):(v=!0,u());v=!1}a=a||y;var q,h,n,k,x,t,u,v=!1,w=0,B=0;if(Array.isArray(b))q=b.length,u=3===c.length?f:e;else if(b)if(z&&b[z])q=b.size,x=b[z](),u=3===c.length?l:g;else if("object"===typeof b)k=Object.keys(b),q=k.length,u=3===c.length?p:r;else return a();if(!q||isNaN(d)||1>d)return a();J(d>q?q:d,u);v=!0}function xa(b,d,c,a){return function(e,f,g){function l(b){var c=!1;return function(d){c&&A();
c=!0;!!d===a?(g(b),g=y):++q===p&&(g(),g=A)}}function r(b){var c=!1;return function(d,e){c&&A();c=!0;d?(g(d),g=y):!!e===a?(g(void 0,b),g=y):++q===p&&(g(),g=A)}}g=g||y;var p,m,q=0,h=2===g.length?r:l;Array.isArray(e)?(p=e.length,b(e,f,h)):e&&(z&&e[z]?(p=e.size,c(e,f,h)):"object"===typeof e&&(m=Object.keys(e),p=m.length,d(e,f,h,m)));p||g()}}function ya(b){return function(d,c,a){function e(){k=d[B];c(k,C)}function f(){k=d[B];c(k,B,C)}function g(){k=t.next().value[1];c(k,C)}function l(){u=t.next().value;
k=u[1];c(k,u[0],C)}function r(){k=d[x[B]];c(k,C)}function p(){n=x[B];k=d[n];c(k,n,C)}function m(c){!!c===b?(a(k),a=A):++B>=h?(a(),a=A):w?D.nextTick(v):(w=!0,v());w=!1}function q(c,d){c?(a(c),a=A):!!d===b?(a(void 0,k),a=A):++B>=h?(a(),a=A):w?D.nextTick(v):(w=!0,v());w=!1}a=a||y;var h,n,k,x,t,u,v,w=!0,B=0,C=2===a.length?q:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?l:g):"object"===typeof d&&(x=Object.keys(d),h=x.length,v=3===c.length?p:r));if(!h)return a();
v();w=!1}}function za(b){return function(d,c,a,e){function f(){k=K++;k<n&&(t=d[k],a(t,E(t)))}function g(){k=K++;k<n&&(t=d[k],a(t,k,E(t)))}function l(){!1===(w=v.next()).done&&(t=w.value[1],a(t,E(t)))}function r(){!1===(w=v.next()).done&&(t=w.value[1],a(t,w.value[0],E(t)))}function p(){k=K++;k<n&&(t=d[u[k]],a(t,E(t)))}function m(){K<n&&(x=u[K++],t=d[x],a(t,x,E(t)))}function q(a){var c=!1;return function(d){c&&A();c=!0;!!d===b?(e(a),B=e=y):++G>=n?(e(),e=A):C?D.nextTick(B):(C=!0,B());C=!1}}function h(a){var c=
!1;return function(d,f){c&&A();c=!0;d?(e(d),B=e=y):!!f===b?(e(void 0,a),e=y):++G>=n?(e(),e=A):C?D.nextTick(B):(C=!0,B());C=!1}}e=e||y;var n,k,x,t,u,v,w,B,C=!0,K=0,G=0,E=2===e.length?h:q;Array.isArray(d)?(n=d.length,B=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),B=3===a.length?r:l):"object"===typeof d&&(u=Object.keys(d),n=u.length,B=3===a.length?m:p));if(!n||isNaN(c)||1>c)return e();J(c>n?n:c,B);C=!1}}function Aa(b,d,c,a){return function(e,f,g){function l(b,c){return function(d){null===b&&A();
!!d===a&&(h[b]=c);b=null;++q===p&&g(h)}}function r(b,c){return function(d,e){null===b&&A();d?(g(d,M(h)),g=y,b=null):(!!e===a&&(h[b]=c),b=null,++q===p&&(g(void 0,h),g=A))}}g=g||y;var p,m,q=0,h={},n=2===g.length,k=n?r:l;Array.isArray(e)?(p=e.length,b(e,f,k)):e&&(z&&e[z]?(p=e.size,c(e,f,k)):"object"===typeof e&&(m=Object.keys(e),p=m.length,d(e,f,k,m)));if(!p)return n?g(void 0,{}):g({})}}function Ba(b){return function(d,c,a){function e(){n=C;k=d[C];c(k,G)}function f(){n=C;k=d[C];c(k,C,G)}function g(){u=
t.next().value;n=u[0];k=u[1];c(k,G)}function l(){u=t.next().value;n=u[0];k=u[1];c(k,n,G)}function r(){n=x[C];k=d[n];c(k,G)}function p(){n=x[C];k=d[n];c(k,n,G)}function m(c){!!c===b&&(B[n]=k);++C>=h?(a(B),a=A):w?D.nextTick(v):(w=!0,v());w=!1}function q(c,d){c?(a(c,B),a=A):(!!d===b&&(B[n]=k),++C>=h?(a(void 0,B),a=A):w?D.nextTick(v):(w=!0,v()),w=!1)}a=a||y;var h,n,k,x,t,u,v,w=!0,B={},C=0,E=2===a.length,G=E?q:m;Array.isArray(d)?(h=d.length,v=3===c.length?f:e):d&&(z&&d[z]?(h=d.size,t=d[z](),v=3===c.length?
l:g):"object"===typeof d&&(x=Object.keys(d),h=x.length,v=3===c.length?p:r));if(!h)return E?a(void 0,{}):a({});v();w=!1}}function Ca(b){return function(d,c,a,e){function f(){k=G++;k<n&&(t=d[k],a(t,I(t,k)))}function g(){k=G++;k<n&&(t=d[k],a(t,k,I(t,k)))}function l(){!1===(w=v.next()).done&&(t=w.value[1],a(t,I(t,w.value[0])))}function r(){!1===(w=v.next()).done&&(x=w.value[0],t=w.value[1],a(t,x,I(t,x)))}function p(){G<n&&(x=u[G++],t=d[x],a(t,I(t,x)))}function m(){G<n&&(x=u[G++],t=d[x],a(t,x,I(t,x)))}
function q(a,c){return function(d){null===c&&A();!!d===b&&(E[c]=a);c=null;++F>=n?(e(E),e=A):C?D.nextTick(B):(C=!0,B());C=!1}}function h(a,c){return function(d,f){null===c&&A();d?(e(d,M(E)),B=e=y,c=null):(!!f===b&&(E[c]=a),c=null,++F>=n?(e(void 0,E),e=A):C?D.nextTick(B):(C=!0,B()),C=!1)}}e=e||y;var n,k,x,t,u,v,w,B,C=!0,E={},G=0,F=0,H=2===e.length,I=H?h:q;Array.isArray(d)?(n=d.length,B=3===a.length?g:f):d&&(z&&d[z]?(n=d.size,v=d[z](),B=3===a.length?r:l):"object"===typeof d&&(u=Object.keys(d),n=u.length,
B=3===a.length?m:p));if(!n||isNaN(c)||1>c)return H?e(void 0,{}):e({});J(c>n?n:c,B);C=!1}}function W(b,d,c,a){function e(a){n=b[w];c(a,n,m)}function f(a){n=b[w];c(a,n,w,m)}function g(){c(d,x.next().value[1],m)}function l(){t=x.next().value;c(d,t[1],t[0],m)}function r(a){h=k[w];n=b[h];c(a,n,m)}function p(a){h=k[w];n=b[h];c(a,n,h,m)}function m(b,c){b?(a(b,c),a=A):++w>=q?(a(void 0,c),a=A):v?D.nextTick(function(){u(c)}):(v=!0,u(c));v=!1}a=a||y;var q,h,n,k,x,t,u,v=!0,w=0;Array.isArray(b)?(q=b.length,u=
4===c.length?f:e):b&&(z&&b[z]?(q=b.size,x=b[z](),u=4===c.length?l:g):"object"===typeof b&&(k=Object.keys(b),q=k.length,u=4===c.length?p:r));if(!q)return a(void 0,d);u(d);v=!1}function Da(b,d,c,a){function e(a){h=b[--p];c(a,h,r)}function f(a){m=--p;h=b[m];c(a,h,m,r)}function g(a){q=n[--p];h=b[q];c(a,h,r)}function l(a){q=n[--p];h=b[q];c(a,h,q,r)}function r(b,c){b?(a(b,c),a=A):0>=p?(a(void 0,c),a=A):v?D.nextTick(function(){u(c)}):(v=!0,u(c));v=!1}a=a||y;var p,m,q,h,n,k,x,t,u,v=!0;if(Array.isArray(b))p=
b.length,u=4===c.length?f:e;else if(b)if(z&&b[z]){p=b.size;n=Array(p);k=b[z]();m=-1;for(t={};!1===(x=k.next()).done;)q=x.value[0],t[q]=x.value[1],n[++m]=q;b=t;u=4===c.length?l:g}else"object"===typeof b&&(n=Object.keys(b),p=n.length,u=4===c.length?l:g);if(!p)return a(void 0,d);u(d);v=!1}function Ea(b,d,c){function a(a){c(!!a)}function e(a,b){c(a,!!b)}c=c||y;Fa(b,d,2===c.length?e:a)}function Ga(b,d){function c(){g=q;b[q](e)}function a(){g=l[q];b[g](e)}function e(a,b){a?(d(a,r),p=d=A):(r[g]=2>=arguments.length?
b:I(arguments,1),++q>=f?(d(void 0,r),d=A):m?D.nextTick(p):(m=!0,p()),m=!1)}d=d||y;var f,g,l,r,p,m=!0,q=0;if(Array.isArray(b))f=b.length,r=Array(f),p=c;else if(b&&"object"===typeof b)l=Object.keys(b),f=l.length,r={},p=a;else return d();if(!f)return d(void 0,r);p();m=!1}function ea(b,d,c){function a(){l=n++;if(l<g)b[l](f(l))}function e(){n<g&&(r=p[n++],b[r](f(r)))}function f(a){return function(b,d){null===a&&A();b?(c(b,m),c=y,a=null):(m[a]=2>=arguments.length?d:I(arguments,1),a=null,++k>=g?c(void 0,
m):h?D.nextTick(q):(h=!0,q()),h=!1)}}c=c||y;var g,l,r,p,m,q,h=!0,n=0,k=0;Array.isArray(b)?(g=b.length,m=Array(g),q=a):b&&"object"===typeof b&&(p=Object.keys(b),g=p.length,m={},q=e);if(!g||isNaN(d)||1>d)return c(void 0,m);J(d>g?g:d,q);h=!1}function fa(b,d){return Array.isArray(b)?0===b.length?(d(),!1):!0:(d(Error("First argument to waterfall must be an array of functions")),!1)}function Za(b,d){function c(g){function l(b){a&&A();a=!0;if(b)d(b);else if(++g>=e)d.apply(null,H(arguments));else{f=arguments;
D.safeNextTick(function(){c(g)});return}d=c=A}a=!1;var r=b[g];switch(f.length){case 0:case 1:return r(l);case 2:return r(f[1],l);case 3:return r(f[1],f[2],l);case 4:return r(f[1],f[2],f[3],l);case 5:return r(f[1],f[2],f[3],f[4],l);case 6:return r(f[1],f[2],f[3],f[4],f[5],l);default:return f=I(f,1),f.push(l),r.apply(null,f)}}d=d||y;if(fa(b,d)){var a,e=b.length,f=[];c(0)}}function Ha(b,d){function c(){switch(l.length){case 0:try{a(null,l())}catch(b){a(b)}break;case 1:return l(a);case 2:return l(r[1],
a);case 3:return l(r[1],r[2],a);case 4:return l(r[1],r[2],r[3],a);case 5:return l(r[1],r[2],r[3],r[4],a);default:return r=I(r,1),r[l.length-1]=a,l.apply(null,r)}}function a(a){a?(d(a),d=A):++e>=g?(d.apply(null,H(arguments)),d=A):(l=b[e],r=arguments,f?D.nextTick(c):(f=!0,c()),f=!1)}d=d||y;if(fa(b,d)){var e=0,f=!0,g=b.length,l=b[e],r=[];c();f=!1}}function Ia(){var b=H(arguments);return function(){var d=this,c=H(arguments),a=c.pop();W(b,c,function(a,b,c){a.push(function(a){var b=I(arguments,1);c(a,b)});
b.apply(d,a)},function(b,c){c=Array.isArray(c)?c:[c];c.unshift(b);a.apply(d,c)})}}function Ja(b){return function(d){var c=function(){var a=this,c=H(arguments),g=c.pop()||y;return b(d,function(b,d){b.apply(a,c.concat([d]))},g)};if(1<arguments.length){var a=I(arguments,1);return c.apply(this,a)}return c}}function Ka(b,d){function c(a,b,c){function d(a){var b=e.tasks,c=b.length;if(!c)return 0;for(var f=-1;++f<c&&!(a<b[f].priority););return f}e.started=!0;var p=Array.isArray(a)?a:[a];if(void 0!==a&&p.length){c=
"function"===typeof c?c:y;var m=d(b);L(p,function(a){a={task:a,priority:b,callback:c};e.tasks.splice(m++,0,a);"function"===typeof e.saturated&&e.length()===e.concurrency&&e.saturated();D.nextTick(e.process)})}else e.idle()&&D.nextTick(function(){"function"===typeof e.drain&&e.drain()})}if(void 0===d)d=1;else if(isNaN(d)||1>d)throw Error("concurrency must be more than 1");var a=0,e={tasks:[],concurrency:d,saturated:y,empty:y,drain:y,started:!1,paused:!1,push:function(a,b,d){c(a,b,d)},kill:function(){e.drain=
y;e.tasks=[]},process:function(){function b(){a--;c.callback&&c.callback.apply(c,H(arguments));"function"===typeof e.drain&&e.idle()&&e.drain();e.process()}if(!(e.paused||a>=e.concurrency)&&e.length()){var c=e.tasks.shift();"function"!==typeof e.empty||e.length()||e.empty();a++;e._worker(c.task,F(b))}},length:function(){return e.tasks.length},running:function(){return a},idle:function(){return 0===e.length()+a},pause:function(){e.paused=!0},resume:function(){!1!==e.paused&&(e.paused=!1,J(e.concurrency,
function(){D.setImmediate(e.process)}))},_worker:b};return e}function La(b,d,c){function a(){d(l,e)}function e(d,e){f[l]=e;d?(c(d),c=A):++l>=b?(c(void 0,f),c=A):g?D.nextTick(a):(g=!0,a());g=!1}c=c||y;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var f=Array(b),g=!0,l=0;a();g=!1}function Ma(b){return function(){var d=H(arguments),c=d.pop(),a;try{a=b.apply(this,d)}catch(e){return c(e)}if("object"===typeof a&&"function"===typeof a.then)a.then(function(a){c(null,a)})["catch"](c);else c(null,a)}}function ga(b){function d(c){if(X[typeof console])if(c)console.error&&
console.error(c);else if(console[b]){var a=I(arguments,1);L(a,function(a){console[b](a)})}}return function(b){var a=I(arguments,1);a.push(d);b.apply(null,a)}}function E(b,d){this._emitter=b||Ga;this._limit=d||4;this._events={};this._runing={};this._queue={}}function Na(b){b=b||y;if(b.ONCE===ha)return b;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;return d}function Oa(b){b=b||y;var d=function(c){if(b.length)return b(c);b();c()};d.func=b;d.ONCE=ha;return d}var P=this,$a=P&&P.async,y=
function(){},A=function(){throw Error("Callback was already called.");},X={"function":!0,object:!0},z="function"===typeof Symbol&&Symbol.iterator,Pa,ia,Y;(function(){var b=function(b){setTimeout(b,0)};Y="function"===typeof setImmediate?setImmediate:b;Pa="object"===typeof process&&"function"===typeof process.nextTick?ia=/^v0.10/.test(process.version)?Y:process.nextTick:ia=Y})();var S=function(b,d,c){return function(a,e,f){function g(a,b){a?(f(a),f=y):++p===l?f():!1===b&&(f(),f=y)}f=f||y;var l,r,p=
0;Array.isArray(a)?(l=a.length,b(a,e,g)):a&&(z&&a[z]?(l=a.size,c(a,e,g)):"object"===typeof a&&(r=Object.keys(a),l=r.length,d(a,e,g,r)));l||f()}}(ja,ka,la),ab=sa(ma,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<g;)e=a[f],d(b[e],e,c(f));else for(;++f<g;)d(b[a[f]],c(f))},function(b,d,c){var a=-1,e=b.size,f=b[z]();if(3===d.length)for(;++a<e;)b=f.next().value,d(b[1],b[0],c(a));else for(;++a<e;)d(f.next().value[1],c(a))},!0),bb=sa(ma,function(b,d,c,a){var e,f=-1,g=a.length;if(3===d.length)for(;++f<
g;)e=a[f],d(b[e],e,c(e));else for(;++f<g;)e=a[f],d(b[e],c(e))},function(b,d,c){var a,e=b[z]();if(3===d.length)for(;!1===(b=e.next()).done;)a=b.value[0],d(b.value[1],a,c(a));else for(;!1===(b=e.next()).done;)d(b.value[1],c(b.value[0]))},!1),Qa=ta(T,na,oa,!0),Ra=ua(!0),Sa=wa(!0),cb=ta(T,na,oa,!1),db=ua(!1),eb=wa(!1),Fa=xa(Z,aa,ba,!0),Ta=ya(!0),Ua=za(!0),Va=function(b,d,c){var a=xa(b,d,c,!1);return function(b,c,d){function l(a){d(!a)}function r(a,b){d(a,!b)}d=d||y;a(b,c,2===d.length?r:l)}}(Z,aa,ba),
fb=function(){var b=ya(!1);return function(d,c,a){function e(b){a(!b)}function f(b,c){a(b,!c)}a=a||y;b(d,c,2===a.length?f:e)}}(),gb=function(){var b=za(!1);return function(d,c,a,e){function f(a){e(!a)}function g(a,b){e(a,!b)}e=e||y;b(d,c,a,2===e.length?g:f)}}(),hb=Aa(T,pa,qa,!0),ib=Ba(!0),jb=Ca(!0),kb=Aa(T,pa,qa,!1),lb=Ba(!1),mb=Ca(!1),nb=function(b,d,c){return function(a,e,f,g){function l(a,b){a?(f(a,Array.isArray(m)?O(m):M(m)),f=y):++q===r?f(void 0,m):!1===b&&(f(void 0,Array.isArray(m)?O(m):M(m)),
f=y)}f=f||y;var r,p,m,q=0;Array.isArray(a)?(r=a.length,m=void 0!==g?g:[],b(a,m,e,l)):a&&(z&&a[z]?(r=a.size,m=void 0!==g?g:{},c(a,m,e,l)):"object"===typeof a&&(p=Object.keys(a),r=p.length,m=void 0!==g?g:{},d(a,m,e,l,p)));r||f(void 0,void 0!==g?g:m||{})}}(function(b,d,c,a){var e=-1,f=b.length;if(4===c.length)for(;++e<f;)c(d,b[e],e,F(a));else for(;++e<f;)c(d,b[e],F(a))},function(b,d,c,a,e){var f,g=-1,l=e.length;if(4===c.length)for(;++g<l;)f=e[g],c(d,b[f],f,F(a));else for(;++g<l;)c(d,b[e[g]],F(a))},function(b,
d,c,a){var e=b[z]();if(4===c.length)for(;!1===(b=e.next()).done;)c(d,b.value[1],b.value[0],F(a));else for(;!1===(b=e.next()).done;)c(d,b.value[1],F(a))}),ob=function(b,d,c){return function(a,e,f){function g(a){var b=!1;return function(c,d){b&&A();b=!0;r[p]={value:a,criteria:d};c?(f(c),f=y):++p===l&&(r.sort(da),f(void 0,U(r,"value")),f=A)}}f=f||y;var l,r,p=0;if(Array.isArray(a))l=a.length,r=Array(l),b(a,e,g);else if(a)if(z&&a[z])l=a.size,r=Array(l),c(a,e,g);else if("object"===typeof a){var m=Object.keys(a);
l=m.length;r=Array(l);d(a,e,g,m)}l||f(void 0,[])}}(Z,aa,ba),pb=function(b,d,c){return function(a,e,f){function g(a,b){b&&Array.prototype.push.apply(p,Array.isArray(b)?b:[b]);a?(f(a,O(p)),f=y):++r===l&&f(void 0,p)}f=f||y;var l,r=0,p=[];if(Array.isArray(a))l=a.length,b(a,e,g);else if(a)if(z&&a[z])l=a.size,c(a,e,g);else if("object"===typeof a){var m=Object.keys(a);l=m.length;d(a,e,g,m)}l||f(void 0,p)}}(ja,ka,la),Wa=function(b,d){return function(c,a){function e(b){return function(c,d){null===b&&A();c?
(a(c,l),a=y,b=null):(l[b]=2>=arguments.length?d:I(arguments,1),b=null,++r===f&&(a(void 0,l),a=A))}}a=a||y;var f,g,l,r=0;Array.isArray(c)?(f=c.length,l=Array(f),b(c,e)):c&&"object"===typeof c&&(g=Object.keys(c),f=g.length,l={},d(c,e,g));f||a(void 0,l)}}(function(b,d){for(var c=-1,a=b.length;++c<a;)b[c](d(c))},function(b,d,c){for(var a,e=-1,f=c.length;++e<f;)a=c[e],b[a](d(a))}),D={VERSION:"1.6.0",each:S,eachSeries:R,eachLimit:V,forEach:S,forEachSeries:R,forEachLimit:V,eachOf:S,eachOfSeries:R,eachOfLimit:V,
forEachOf:S,forEachOfSeries:R,forEachOfLimit:V,map:ab,mapSeries:function(b,d,c){function a(){d(b[v],p)}function e(){d(b[v],v,p)}function f(){d(n.next().value[1],p)}function g(){k=n.next().value;d(k[1],k[0],p)}function l(){d(b[h[v]],p)}function r(){q=h[v];d(b[q],q,p)}function p(a,b){x[v]=b;a?(c(a,O(x)),c=A):++v>=m?(c(void 0,x),c=A):u?D.nextTick(t):(u=!0,t());u=!1}c=c||y;var m,q,h,n,k,x,t,u=!0,v=0;Array.isArray(b)?(m=b.length,t=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),t=3===d.length?g:f):"object"===
typeof b&&(h=Object.keys(b),m=h.length,t=3===d.length?r:l));if(!m)return c(void 0,[]);x=Array(m);t();u=!1},mapLimit:function(b,d,c,a){function e(){h=B++;h<q&&c(b[h],m(h))}function f(){h=B++;h<q&&c(b[h],h,m(h))}function g(){!1===(t=x.next()).done&&c(t.value[1],m(B++))}function l(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],m(B++))}function r(){h=B++;h<q&&c(b[k[h]],m(h))}function p(){h=B++;h<q&&(n=k[h],c(b[n],n,m(h)))}function m(b){return function(c,d){null===b&&A();u[b]=d;b=null;c?(a(c,O(u)),
v=a=y):++C>=q?(a(void 0,u),a=A):w?D.nextTick(v):(w=!0,v());w=!1}}a=a||y;var q,h,n,k,x,t,u,v,w=!0,B=0,C=0;Array.isArray(b)?(q=b.length,v=3===c.length?f:e):b&&(z&&b[z]?(q=b.size,x=b[z](),v=3===c.length?l:g):"object"===typeof b&&(k=Object.keys(b),q=k.length,v=3===c.length?p:r));if(!q||isNaN(d)||1>d)return a(void 0,[]);u=Array(q);J(d>q?q:d,v);w=!1},mapValues:bb,mapValuesSeries:function(b,d,c){function a(){q=v;d(b[v],p)}function e(){q=v;d(b[v],v,p)}function f(){k=n.next().value;q=k[0];d(k[1],p)}function g(){k=
n.next().value;q=k[0];d(k[1],q,p)}function l(){q=h[v];d(b[q],p)}function r(){q=h[v];d(b[q],q,p)}function p(a,b){u[q]=b;a?(c(a,M(u)),c=A):++v>=m?(c(void 0,u),c=A):t?D.nextTick(x):(t=!0,x());t=!1}c=c||y;var m,q,h,n,k,x,t=!0,u={},v=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:l));if(!m)return c(void 0,u);x();t=!1},mapValuesLimit:function(b,d,c,a){function e(){h=B++;h<q&&c(b[h],
m(h))}function f(){h=B++;h<q&&c(b[h],h,m(h))}function g(){!1===(t=x.next()).done&&c(t.value[1],m(t.value[0]))}function l(){!1===(t=x.next()).done&&(n=t.value[0],c(t.value[1],n,m(n)))}function r(){h=B++;h<q&&(n=k[h],c(b[n],m(n)))}function p(){h=B++;h<q&&(n=k[h],c(b[n],n,m(n)))}function m(b){return function(c,d){null===b&&A();w[b]=d;b=null;c?(a(c,M(w)),u=a=y):++C>=q?(a(void 0,w),a=A):v?D.nextTick(u):(v=!0,u());v=!1}}a=a||y;var q,h,n,k,x,t,u,v=!0,w={},B=0,C=0;Array.isArray(b)?(q=b.length,u=3===c.length?
f:e):b&&(z&&b[z]?(q=b.size,x=b[z](),u=3===c.length?l:g):"object"===typeof b&&(k=Object.keys(b),q=k.length,u=3===c.length?p:r));if(!q||isNaN(d)||1>d)return a(void 0,w);J(d>q?q:d,u);v=!1},filter:Qa,filterSeries:Ra,filterLimit:Sa,select:Qa,selectSeries:Ra,selectLimit:Sa,reject:cb,rejectSeries:db,rejectLimit:eb,detect:Fa,detectSeries:Ta,detectLimit:Ua,pick:hb,pickSeries:ib,pickLimit:jb,omit:kb,omitSeries:lb,omitLimit:mb,reduce:W,inject:W,foldl:W,reduceRight:Da,foldr:Da,transform:nb,transformSeries:function(b,
d,c,a){function e(){d(u,b[w],m)}function f(){d(u,b[w],w,m)}function g(){d(u,k.next().value[1],m)}function l(){x=k.next().value;d(u,x[1],x[0],m)}function r(){d(u,b[n[w]],m)}function p(){h=n[w];d(u,b[h],h,m)}function m(a,b){a?(c(a,u),c=A):++w>=q?(c(void 0,u),c=A):!1===b?(c(void 0,u),c=A):v?D.nextTick(t):(v=!0,t());v=!1}c=c||y;var q,h,n,k,x,t,u,v=!0,w=0;Array.isArray(b)?(q=b.length,u=void 0!==a?a:[],t=4===d.length?f:e):b&&(z&&b[z]?(q=b.size,k=b[z](),u=void 0!==a?a:{},t=4===d.length?l:g):"object"===typeof b&&
(n=Object.keys(b),q=n.length,u=void 0!==a?a:{},t=4===d.length?p:r));if(!q)return c(void 0,void 0!==a?a:u||{});t();v=!1},transformLimit:function(b,d,c,a,e){function f(){n=C++;n<h&&c(w,b[n],F(q))}function g(){n=C++;n<h&&c(w,b[n],n,F(q))}function l(){!1===(u=t.next()).done&&c(w,u.value[1],F(q))}function r(){!1===(u=t.next()).done&&c(w,u.value[1],u.value[0],F(q))}function p(){n=C++;n<h&&c(w,b[x[n]],F(q))}function m(){n=C++;n<h&&(k=x[n],c(w,b[k],k,F(q)))}function q(b,c){b?(a(b,Array.isArray(w)?O(w):M(w)),
v=a=y):++E>=h?(a(void 0,w),a=A):!1===c?(a(void 0,Array.isArray(w)?O(w):M(w)),v=a=y):B?D.nextTick(v):(B=!0,v());B=!1}a=a||y;var h,n,k,x,t,u,v,w,B=!0,C=0,E=0;Array.isArray(b)?(h=b.length,w=void 0!==e?e:[],v=4===c.length?g:f):b&&(z&&b[z]?(h=b.size,t=b[z](),w=void 0!==e?e:{},v=4===c.length?r:l):"object"===typeof b&&(x=Object.keys(b),h=x.length,w=void 0!==e?e:{},v=4===c.length?m:p));if(!h||isNaN(d)||1>d)return a(void 0,void 0!==e?e:w||{});J(d>h?h:d,v);B=!1},sortBy:ob,sortBySeries:function(b,d,c){function a(){h=
b[w];d(h,p)}function e(){h=b[w];d(h,w,p)}function f(){h=k.next().value[1];d(h,p)}function g(){x=k.next().value;h=x[1];d(h,x[0],p)}function l(){h=b[n[w]];d(h,p)}function r(){q=n[w];h=b[q];d(h,q,p)}function p(a,b){t[w]={value:h,criteria:b};a?(c(a),c=A):++w>=m?(t.sort(da),c(void 0,U(t,"value")),c=A):v?D.nextTick(u):(v=!0,u());v=!1}c=c||y;var m,q,h,n,k,x,t,u,v=!0,w=0;Array.isArray(b)?(m=b.length,u=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,k=b[z](),u=3===d.length?g:f):"object"===typeof b&&(n=Object.keys(b),
m=n.length,u=3===d.length?r:l));if(!m)return c(void 0,[]);t=Array(m);u();v=!1},sortByLimit:function(b,d,c,a){function e(){C<q&&(k=b[C++],c(k,m(k)))}function f(){h=C++;h<q&&(k=b[h],c(k,h,m(k)))}function g(){!1===(u=t.next()).done&&(k=u.value[1],c(k,m(k)))}function l(){!1===(u=t.next()).done&&(k=u.value[1],c(k,u.value[0],m(k)))}function r(){C<q&&(k=b[x[C++]],c(k,m(k)))}function p(){C<q&&(n=x[C++],k=b[n],c(k,n,m(k)))}function m(b){var c=!1;return function(d,e){c&&A();c=!0;v[E]={value:b,criteria:e};d?
(a(d),w=a=y):++E>=q?(v.sort(da),a(void 0,U(v,"value")),a=A):B?D.nextTick(w):(B=!0,w());B=!1}}a=a||y;var q,h,n,k,x,t,u,v,w,B=!1,C=0,E=0;Array.isArray(b)?(q=b.length,w=3===c.length?f:e):b&&(z&&b[z]?(q=b.size,t=b[z](),w=3===c.length?l:g):"object"===typeof b&&(x=Object.keys(b),q=x.length,w=3===c.length?p:r));if(!q||isNaN(d)||1>d)return a(void 0,[]);v=Array(q);J(d>q?q:d,w)},some:Ea,someSeries:function(b,d,c){function a(a){c(!!a)}function e(a,b){c(a,!!b)}c=c||y;Ta(b,d,2===c.length?e:a)},someLimit:function(b,
d,c,a){function e(b){a(!!b)}function f(b,c){a(b,!!c)}a=a||y;Ua(b,d,c,2===a.length?f:e)},any:Ea,every:Va,all:Va,everySeries:fb,everyLimit:gb,concat:pb,concatSeries:function(b,d,c){function a(){d(b[v],p)}function e(){d(b[v],v,p)}function f(){d(n.next().value[1],p)}function g(){k=n.next().value;d(k[1],k[0],p)}function l(){d(b[h[v]],p)}function r(){q=h[v];d(b[q],q,p)}function p(a,b){b&&Array.prototype.push.apply(u,Array.isArray(b)?b:[b]);a?(c(a,u),c=A):++v>=m?(c(void 0,u),c=A):t?D.nextTick(x):(t=!0,x());
t=!1}c=c||y;var m,q,h,n,k,x,t=!0,u=[],v=0;Array.isArray(b)?(m=b.length,x=3===d.length?e:a):b&&(z&&b[z]?(m=b.size,n=b[z](),x=3===d.length?g:f):"object"===typeof b&&(h=Object.keys(b),m=h.length,x=3===d.length?r:l));if(!m)return c(void 0,u);x();t=!1},concatLimit:function(b,d,c,a){function e(){w<h&&c(b[w++],F(m))}function f(){n=w++;n<h&&c(b[n],n,F(m))}function g(){!1===(t=x.next()).done&&c(t.value[1],F(m))}function l(){!1===(t=x.next()).done&&c(t.value[1],t.value[0],F(m))}function r(){w<h&&c(b[C[w++]],
F(m))}function p(){w<h&&(k=C[w++],c(b[k],k,F(m)))}function m(b,c){c&&Array.prototype.push.apply(q,Array.isArray(c)?c:[c]);b?(a(b,q),a=y):++B>=h?(a(void 0,q),a=A):v?D.nextTick(u):(v=!0,u());v=!1}a=a||y;var q=[],h,n,k,x,t,u,v=!0,w=0,B=0;if(Array.isArray(b))h=b.length,u=3===c.length?f:e;else if(b)if(z&&b[z])h=b.size,x=b[z](),u=3===c.length?l:g;else if("object"===typeof b){var C=Object.keys(b);h=C.length;u=3===c.length?p:r}if(!h||isNaN(d)||1>d)return a(void 0,q);J(d>h?h:d,u);v=!1},parallel:Wa,series:Ga,
parallelLimit:ea,waterfall:function(b,d){function c(){f=!1;switch(p.length){case 0:case 1:return r(a);case 2:return r(p[1],a);case 3:return r(p[1],p[2],a);case 4:return r(p[1],p[2],p[3],a);case 5:return r(p[1],p[2],p[3],p[4],a);case 6:return r(p[1],p[2],p[3],p[4],p[5],a);default:return p=I(p,1),p.push(a),r.apply(null,p)}}function a(a){f&&A();a?(d(a),d=A):(f=!0,++e>=l?(d.apply(null,H(arguments)),d=A):(r=b[e],p=arguments,g?D.nextTick(c):(g=!0,c()),g=!1))}d=d||y;if(fa(b,d)){var e=0,f=!1,g=!0,l=b.length,
r=b[e],p=[];c();g=!1}},angelFall:Ha,angelfall:Ha,whilst:function(b,d,c){function a(){b()?d(function(b){if(b)return c(b);e?D.nextTick(a):(e=!0,a());e=!1}):c()}c=c||y;var e=!0;a();e=!1},doWhilst:function(b,d,c){function a(){b(function(b,g){if(b)return c(b);(2>=arguments.length?d(g):d.apply(null,I(arguments,1)))?(e?D.nextTick(a):(e=!0,a()),e=!1):c()})}c=c||y;var e=!0;a();e=!1},until:function(b,d,c){function a(){b()?c():d(function(b){if(b)return c(b);e?D.nextTick(a):(e=!0,a());e=!1})}c=c||y;var e=!0;
a();e=!1},doUntil:function(b,d,c){function a(){b(function(b,g){if(b)return c(b);(2>=arguments.length?d(g):d.apply(null,I(arguments,1)))?c():(e?D.nextTick(a):(e=!0,a()),e=!1)})}c=c||y;var e=!0;a();e=!1},during:function(b,d,c){function a(a,b){if(a)return c(a);b?d(e):c()}function e(d){if(d)return c(d);b(a)}c=c||y;b(a)},doDuring:function(b,d,c){function a(a,d){if(a)return c(a);d?b(e):c()}function e(b,e){if(b)return c(b);switch(arguments.length){case 0:case 1:d(a);break;case 2:d(e,a);break;default:var l=
I(arguments,1);l.push(a);d.apply(null,l)}}c=c||y;a(null,!0)},forever:function(b,d){function c(){b(a)}function a(a){if(a){if(d)return d(a);throw a;}e?D.nextTick(c):(e=!0,c());e=!1}var e=!0;c();e=!1},compose:function(){return Ia.apply(null,Xa(arguments))},seq:Ia,applyEach:Ja(S),applyEachSeries:Ja(R),queue:function(b,d){function c(b,c,d){a.started=!0;var l=Array.isArray(b)?b:[b];void 0!==b&&l.length?(c="function"===typeof c?c:null,L(l,function(b){b={task:b,callback:c};d?a.tasks.unshift(b):a.tasks.push(b);
"function"===typeof a.saturated&&a.length()===a.concurrency&&a.saturated();D.nextTick(a.process)})):a.idle()&&D.nextTick(function(){"function"===typeof a.drain&&a.drain()})}var a=Ka(b,d);a.unshift=function(a,b){c(a,b,!0)};a.push=function(a,b){c(a,b)};return a},priorityQueue:Ka,cargo:function(b,d){var c=!1,a={tasks:[],payload:d,saturated:y,empty:y,drain:y,drained:!0,push:function(b,c){b=Array.isArray(b)?b:[b];c="function"===typeof c?c:y;L(b,function(b){a.tasks.push({data:b,callback:c});a.drained=!1;
"function"===typeof a.saturated&&a.length()===a.payload&&a.saturated()});D.nextTick(a.process)},process:function(){if(!c)if(a.length()){var e="number"===typeof a.payload?a.tasks.splice(0,d):a.tasks,f=U(e,"data");a.length()||"function"!==typeof a.empty||a.empty();c=!0;b(f,function(){c=!1;var b=H(arguments);L(e,function(a){a.callback&&a.callback.apply(null,b)});a.process()})}else"function"!==typeof a.drain||a.drained||a.drain(),a.drained=!0},length:function(){return a.tasks.length},running:function(){return c}};
return a},auto:function(b,d){function c(a){g.unshift(a)}function a(){f--;L(g.slice(0),function(a){a()})}d=d?F(d):y;var e=Object.keys(b),f=e.length;if(!f)return d();var g=[],l={};c(function(){f||d(void 0,l)});N(b,function(b,e){function f(b){var c=I(arguments,1);1>=c.length&&(c=c[0]);if(b){var g=M(l);g[e]=c;d(b,g);d=y}else l[e]=c,D.nextTick(a)}function q(){return!l.hasOwnProperty(e)&&Ya(k,function(a){return l.hasOwnProperty(a)})}function h(){if(q()){var a;a:{a=-1;for(var b=g.length;++a<b;)if(g[a]===
h)break a;a=void 0}0<=a&&g.splice(a,1);x(f,l)}}b=Array.isArray(b)?b:[b];var n=b.length,k=b.slice(0,n-1),x=b[n-1];if(q())return x(f,l);c(h)},e)},retry:function(b,d,c){function a(a,f){c=a||c||y;var g,l;La(b,function(a,c){d(function(d,e){g=d;l=e;if(!d)return c(!0);c(d&&a===b-1)},f)},function(){c(g,l)})}"function"===typeof b&&(c=d,d=b,b=5);b=parseInt(b,10)||5;return"function"===typeof c?a():a},iterator:function(b){function d(e){var f=function(){c&&b[a[e]||e].apply(null,H(arguments));return f.next()};
f.next=function(){return e<c-1?d(e+1):null};return f}var c=0,a=[];Array.isArray(b)?c=b.length:(a=Object.keys(b),c=a.length);return d(0)},apply:function(b){switch(arguments.length){case 0:case 1:return b;case 2:return b.bind(null,arguments[1]);case 3:return b.bind(null,arguments[1],arguments[2]);case 4:return b.bind(null,arguments[1],arguments[2],arguments[3]);case 5:return b.bind(null,arguments[1],arguments[2],arguments[3],arguments[4]);default:var d=arguments.length,c=0,a=Array(d);for(a[c]=null;++c<
d;)a[c]=arguments[c];return b.bind.apply(b,a)}},nextTick:Pa,safeNextTick:ia,setImmediate:Y,times:function(b,d,c){function a(a){return function(d,l){null===a&&A();e[a]=l;a=null;d?(c(d),c=y):0===--b&&c(void 0,e)}}c=c||y;b=+b;if(isNaN(b)||1>b)return c(void 0,[]);var e=Array(b);J(b,function(b){d(b,a(b))})},timesSeries:La,timesLimit:function(b,d,c,a){function e(){var a=r++;a<b&&c(a,f(a))}function f(c){return function(d,f){null===c&&A();g[c]=f;c=null;d?(a(d),a=y):++p>=b?(a(void 0,g),a=A):l?D.nextTick(e):
(l=!0,e());l=!1}}a=a||y;b=+b;if(isNaN(b)||1>b||isNaN(d)||1>d)return a(void 0,[]);var g=Array(b),l=!0,r=0,p=0;J(d>b?b:d,e);l=!1},memoize:function(b,d){d=d||function(a){return a};var c={},a={},e=function(){function e(){var b=H(arguments);c[r]=b;var d=a[r];delete a[r];for(var f=-1,g=d.length;++f<g;)d[f].apply(null,b)}var g=H(arguments),l=g.pop(),r=d.apply(null,g);if(c.hasOwnProperty(r))D.nextTick(function(){l.apply(null,c[r])});else{if(a.hasOwnProperty(r))return a[r].push(l);a[r]=[l];g.push(e);b.apply(null,
g)}};e.memo=c;e.unmemoized=b;return e},unmemoize:function(b){return function(){return(b.unmemoized||b).apply(null,arguments)}},ensureAsync:function(b){return function(){var d=!0,c=H(arguments),a=c.pop();c.push(function(){var b=arguments;d?D.safeNextTick(function(){a.apply(null,b)}):a.apply(null,b)});b.apply(this,c);d=!1}},constant:function(){var b=[null].concat(H(arguments));return function(d){d.apply(this,b)}},asyncify:Ma,wrapSync:Ma,log:ga("log"),dir:ga("dir"),createLogger:ga,noConflict:function(){P.async=
$a;return D},eventEmitter:function(b){b=b||{};var d=b.limit;return b.parallel&&!d?new E(Wa):b.parallel||b.parallelLimit?new E(ea,d):new E(b.emitter)},EventEmitter:E,safe:void 0};D.safe=ra();X[typeof define]&&define&&define.amd?define([],function(){return D}):X[typeof module]&&module&&module.exports?module.exports=D:P&&X[typeof P.async]?P.neo_async=D:P.async=D;var ha={__ONCE__:!0};E.prototype.getListeners=function(b){function d(a){a=a||[];var b=Array(a.length);L(a,function(a,c){b[c]=a.func});return b}
var c=this._events;if(b)return d(c[b]);var a={};N(c,function(b,c){a[c]=d(b)});return a};E.prototype.addListener=function d(c,a){var e=this;if("object"===typeof c)return N(c,function(a,c){d.call(e,c,a)}),e;if(e.running(c))return e.queue(c,"addListener",a);e._events[c]=e._events[c]||[];Array.isArray(a)?L(a,function(a){e._events[c].push(Na(a))}):e._events[c].push(Na(a));return e};E.prototype.addOnceListener=function c(a,e){var f=this;if("object"===typeof a)return N(a,function(a,e){c.call(f,e,a)}),f;
Array.isArray(e)?L(e,function(a,c){e[c]=Oa(a)}):e=Oa(e);return f.addListener(a,e)};E.prototype.removeListener=function a(e,f){var g=this;if("object"===typeof e)return N(e,function(e,f){a.call(g,f,e)}),g;if(g.running(e))return g.queue(e,"removeListener",f);var l=g._events[e]||[];if(!l.length)return g;if(Array.isArray(f))return ca(f,function(f){a.call(g,f,e)}),g;ca(l,function(a,e){a.func===f&&l.splice(e,1)});return g};E.prototype.removeEvent=function e(f){var g=this;if(!f)return N(g._events,function(f,
r){e.call(g,r)}),g;(g._events[f]||[]).length&&delete g._events[f];return g};E.prototype.running=function(e){return this._runing[e]};E.prototype.queue=function(e,f,g,l){this._queue[e]=this._queue[e]||[];this._queue[e].push([f,g,l]);return this};E.prototype.resolve=function(e){if(this._runing[e])return this;var f=this._queue[e]||[];if(!f.length)return this;f=f.shift();this[f[0]](e,f[1],f[2]);return this.resolve(e)};E.prototype.emit=function(e,f,g){function l(g,h){g?f(g):(ca(p,function(e,f){e.ONCE===
ha&&p.splice(f,1)}),f(void 0,h));r._runing[e]=!1;r.resolve(e)}f=f||y;var r=this;if(r.running(e))return r.queue(e,"emit",f,g);var p=r._events[e]||[];if(!p.length)return f(),r;r._runing[e]=!0;var m=r._emitter,m=g?m.bind(g):m;m===ea?m(p,r._limit,l):m(p,l);return r};E.prototype.on=E.prototype.addListener;E.prototype.once=E.prototype.addOnceListener;E.prototype.off=E.prototype.removeListener;E.prototype.removeAllListener=E.prototype.removeEvent;E.prototype.trigger=E.prototype.emit}).call(this);
{
"name": "neo-async",
"version": "1.5.1",
"version": "1.6.0",
"description": "Neo-Async is thought to be used as a drop-in replacement for Async, it almost fully covers its functionality and runs faster ",

@@ -5,0 +5,0 @@ "main": "index.js",

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

# Neo-Async v1.5.1
# Neo-Async v1.6.0

@@ -100,2 +100,5 @@ [![npm](https://img.shields.io/npm/v/neo-async.svg)](https://www.npmjs.com/package/neo-async)

- [`pickLimit`](http://suguru03.github.io/neo-async/doc/async.pickLimit.html) *
- [`omit`](http://suguru03.github.io/neo-async/doc/async.omit.html) *
- [`omitSeries`](http://suguru03.github.io/neo-async/doc/async.omitSeries.html) *
- [`omitLimit`](http://suguru03.github.io/neo-async/doc/async.omitLimit.html) *
- [`reduce`](http://suguru03.github.io/neo-async/doc/async.reduce.html)

@@ -102,0 +105,0 @@ - [`inject`](http://suguru03.github.io/neo-async/doc/async.reduce.html) -> [`reduce`](http://suguru03.github.io/neo-async/doc/async.reduce.html)

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

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc