!function(){functionn(){}functiont(n){returnn}functione(n){return!!n}functionr(n){return!n}functionu(n){returnfunction(){if(null===n)thrownewError("Callback was already called.");n.apply(this,arguments),n=null}}functioni(n){returnfunction(){null!==n&&(n.apply(this,arguments),n=null)}}functiono(n){returnM(n)||"number"==typeofn.length&&n.length>=0&&n.length%1===0}functionc(n,t){for(vare=-1,r=n.length;++e<r;)t(n[e],e,n)}functiona(n,t){for(vare=-1,r=n.length,u=Array(r);++e<r;)u[e]=t(n[e],e,n);returnu}functionf(n){returna(Array(n),function(n,t){returnt})}functionl(n,t,e){returnc(n,function(n,r,u){e=t(e,n,r,u)}),e}functions(n,t){c(W(n),function(e){t(n[e],e)})}functionp(n,t){for(vare=0;e<n.length;e++)if(n[e]===t)returne;return-1}functionh(n){vart,e,r=-1;returno(n)?(t=n.length,function(){returnr++,t>r?r:null}):(e=W(n),t=e.length,function(){returnr++,t>r?e[r]:null})}functionm(n,t){returnt=null==t?n.length-1:+t,function(){for(vare=Math.max(arguments.length-t,0),r=Array(e),u=0;e>u;u++)r[u]=arguments[u+t];switch(t){case0:returnn.call(this,r);case1:returnn.call(this,arguments[0],r)}}}functiony(n){returnfunction(t,e,r){returnn(t,r)}}functionv(t){returnfunction(e,r,o){o=i(o||n),e=e||[];varc=h(e);if(0>=t)returno(null);vara=!1,f=0,l=!1;!functions(){if(a&&0>=f)returno(null);for(;t>f&&!l;){varn=c();if(null===n)returna=!0,void(0>=f&&o(null));f+=1,r(e[n],n,u(function(n){f-=1,n?(o(n),l=!0):s()}))}}()}}functiond(n){returnfunction(t,e,r){returnn(P.eachOf,t,e,r)}}functiong(n){returnfunction(t,e,r,u){returnn(v(e),t,r,u)}}functionk(n){returnfunction(t,e,r){returnn(P.eachOfSeries,t,e,r)}}functionb(t,e,r,u){u=i(u||n),e=e||[];varc=o(e)?[]:{};t(e,function(n,t,e){r(n,function(n,r){c[t]=r,e(n)})},function(n){u(n,c)})}functionw(n,t,e,r){varu=[];n(t,function(n,t,r){e(n,function(e){e&&u.push({index:t,value:n}),r()})},function(){r(a(u.sort(function(n,t){returnn.index-t.index}),function(n){returnn.value}))})}functionO(n,t,e,r){w(n,t,function(n,t){e(n,function(n){t(!n)})},r)}functionS(n,t,e){returnfunction(r,u,i,o){functionc(){o&&o(e(!1,void0))}functiona(n,r,u){returno?voidi(n,function(r){o&&t(r)&&(o(e(!0,n)),o=i=!1),u()}):u()}arguments.length>3?n(r,u,a,c):(o=i,i=u,n(r,a,c))}}functionE(n,t){returnt}functionL(t,e,r){r=r||n;varu=o(e)?[]:{};t(e,function(n,t,e){n(m(function(n,r){r.length<=1&&(r=r[0]),u[t]=r,e(n)}))},function(n){r(n,u)})}functionj(n,t,e,r){varu=[];n(t,function(n,t,r){e(n,function(n,t){u=u.concat(t||[]),r(n)})},function(n){r(n,u)})}functionI(t,e,r){functioni(t,e,r,u){if(null!=u&&"function"!=typeofu)thrownewError("task callback must be a function");returnt.started=!0,M(e)||(e=[e]),0===e.length&&t.idle()?P.setImmediate(function(){t.drain()}):(c(e,function(e){vari={data:e,callback:u||n};r?t.tasks.unshift(i):t.tasks.push(i),t.tasks.length===t.concurrency&&t.saturated()}),voidP.setImmediate(t.process))}functiono(n,t){returnfunction(){f-=1;vare=!1,r=arguments;c(t,function(n){c(l,function(t,r){t!==n||e||(l.splice(r,1),e=!0)}),n.callback.apply(n,r)}),n.tasks.length+f===0&&n.drain(),n.process()}}if(null==e)e=1;elseif(0===e)thrownewError("Concurrency must not be zero");varf=0,l=[],s={tasks:[],concurrency:e,payload:r,saturated:n,empty:n,drain:n,started:!1,paused:!1,push:function(n,t){i(s,n,!1,t)},kill:function(){s.drain=n,s.tasks=[]},unshift:function(n,t){i(s,n,!0,t)},process:function(){for(;!s.paused&&f<s.concurrency&&s.tasks.length;){varn=s.payload?s.tasks.splice(0,s.payload):s.tasks.splice(0,s.tasks.length),e=a(n,function(n){returnn.data});0===s.tasks.length&&s.empty(),f+=1,l.push(n[0]);varr=u(o(s,n));t(e,r)}},length:function(){returns.tasks.length},running:function(){returnf},workersList:function(){returnl},idle:function(){returns.tasks.length+f===0},pause:function(){s.paused=!0},resume:function(){if(s.paused!==!1){s.paused=!1;for(varn=Math.min(s.concurrency,s.tasks.length),t=1;n>=t;t++)P.setImmediate(s.process)}}};returns}functionx(n){returnm(function(t,e){t.apply(null,e.concat([m(function(t,e){"object"==typeofconsole&&(t?console.error&&console.er