!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("npmProfileAggregator",[],e):"object"==typeof exports?exports.npmProfileAggregator=e():t.npmProfileAggregator=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function u(){y&&h&&(y=!1,h.length?d=h.concat(d):m=-1,d.length&&s())}function s(){if(!y){var t=o(u);y=!0;for(var e=d.length;e;){for(h=d,d=[];++m1)for(var n=1;n=0;f--){var l=i[f],p=l.downloads;f>=a&&(c.lastDay+=p),f>=s&&(c.lastWeek+=p),f&&f<=u&&(c.lastMonth+=p)}if(!c.lastDay){var h=i[i.length-2];h&&(c.lastDay=h.downloads)}e(null,c)})}function y(t){return w+"/~"+t}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"fetch",function(){return T});var m=n(4),v=(n.n(m),n(8)),b=n.n(v),g=n(9),w=(n.n(g),"https://www.npmjs.com"),_="https://registry.cnpmjs.org",T=function(t,e){if(!t)return e(new Error("username is required"));Object(m.auto)({moduleList:function(e){return u(t,e)},downloads:["moduleList",function(t,e){return h(t.moduleList,e)}],modules:["moduleList",function(t,e){return c(t.moduleList,e)}]},function(n,r){if(n)return e(n);var i=o(t,r);e(null,i)})},j=function(t,e){Object(g.get)(t).timeout({response:5e3}).set("accept","json").end(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.body,o=void 0===r?{}:r,i=Object.keys(o).length?o:n.text||"";e(t,i)})},x={byUser:_+"/-/by-user",byModule:""+_,downloads:function(t,e,n){return"https://api.npmjs.org/downloads/range/"+t+":"+e+"/"+n}}},function(t,e,n){(function(t,n,r,o){!function(t,n){n(e)}(0,function(e){"use strict";function i(t,e){e|=0;for(var n=Math.max(t.length-e,0),r=Array(n),o=0;o-1&&t%1==0&&t<=Le}function w(t){return null!=t&&g(t.length)&&!b(t)}function _(){}function T(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}function j(t,e){for(var n=-1,r=Array(t);++n-1&&t%1==0&&to?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r=r?t:tt(t,e,n)}function nt(t,e){for(var n=t.length;n--&&J(e,t[n],0)>-1;);return n}function rt(t,e){for(var n=-1,r=t.length;++n-1;);return n}function ot(t){return t.split("")}function it(t){return _n.test(t)}function ut(t){return t.match(An)||[]}function st(t){return it(t)?ut(t):ot(t)}function at(t){return null==t?"":Z(t)}function ct(t,e,n){if((t=at(t))&&(n||void 0===e))return t.replace(Pn,"");if(!t||!(e=Z(e)))return t;var r=st(t),o=st(e);return et(r,rt(r,o),nt(r,o)+1).join("")}function ft(t){return t=t.toString().replace(In,""),t=t.match(Cn)[2].replace(" ",""),t=t?t.split(Dn):[],t=t.map(function(t){return ct(t.replace(Rn,""))})}function lt(t,e){var n={};Q(t,function(t,e){function r(e,n){var r=K(o,function(t){return e[t]});r.push(n),h(t).apply(null,r)}var o,i=p(t),u=!i&&1===t.length||i&&0===t.length;if(He(t))o=t.slice(0,-1),t=t[t.length-1],n[e]=o.concat(o.length>0?r:t);else if(u)n[e]=t;else{if(o=ft(t),0===t.length&&!i&&0===o.length)throw new Error("autoInject task functions require explicit parameters.");i||o.pop(),n[e]=o.concat(r)}}),mn(n,e)}function pt(){this.head=this.tail=null,this.length=0}function ht(t,e){t.length=1,t.head=t.tail=e}function dt(t,e,n){function r(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(f.started=!0,He(t)||(t=[t]),0===t.length&&f.idle())return fe(function(){f.drain()});for(var r=0,o=t.length;r0&&s.splice(i,1),o.callback.apply(o,arguments),null!=e&&f.error(e,o.data)}u<=f.concurrency-f.buffer&&f.unsaturated(),f.idle()&&f.drain(),f.process()}}if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var i=h(t),u=0,s=[],a=!1,c=!1,f={_tasks:new pt,concurrency:e,payload:n,saturated:_,unsaturated:_,buffer:e/4,empty:_,drain:_,error:_,started:!1,paused:!1,push:function(t,e){r(t,!1,e)},kill:function(){f.drain=_,f._tasks.empty()},unshift:function(t,e){r(t,!0,e)},remove:function(t){f._tasks.remove(t)},process:function(){if(!c){for(c=!0;!f.paused&&u2&&(o=i(arguments,1)),r[e]=o,n(t)})},function(t){n(t,r)})}function Ut(t,e){Ft(cn,t,e)}function Bt(t,e,n){Ft(H(e),t,n)}function zt(t,e){if(e=T(e||_),!He(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var n=0,r=t.length;nr?1:0}var o=h(e);fn(t,function(t,e){o(t,function(n,r){if(n)return e(n);e(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,K(e.sort(r),Pt("value")))})}function Kt(t,e,n){var r=h(t);return se(function(o,i){function u(){var e=t.name||"anonymous",r=new Error('Callback function "'+e+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),a=!0,i(r)}var s,a=!1;o.push(function(){a||(i.apply(null,arguments),clearTimeout(s))}),s=setTimeout(u,e),r.apply(null,o)})}function Yt(t,e,n,r){for(var o=-1,i=br(vr((e-t)/(n||1)),0),u=Array(i);i--;)u[r?i:++o]=t,t+=n;return u}function Zt(t,e,n,r){var o=h(n);pn(Yt(0,t,1),e,o,r)}function te(t,e,n,r){arguments.length<=3&&(r=n,n=e,e=He(t)?[]:{}),r=T(r||_);var o=h(n);cn(t,function(t,n,r){o(e,t,n,r)},function(t){r(t,e)})}function ee(t,e){var n,r=null;e=e||_,Wn(t,function(t,e){h(t)(function(t,o){n=arguments.length>2?i(arguments,1):o,r=t,e(!t)})},function(){e(r,n)})}function ne(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function re(t,e,n){n=q(n||_);var r=h(e);if(!t())return n(null);var o=function(e){if(e)return n(e);if(t())return r(o);var u=i(arguments,1);n.apply(null,[null].concat(u))};r(o)}function oe(t,e,n){re(function(){return!t.apply(this,arguments)},e,n)}var ie,ue=function(t){var e=i(arguments,1);return function(){var n=i(arguments);return t.apply(null,e.concat(n))}},se=function(t){return function(){var e=i(arguments),n=e.pop();t.call(this,e,n)}},ae="function"==typeof t&&t,ce="object"==typeof n&&"function"==typeof n.nextTick;ie=ae?t:ce?n.nextTick:s;var fe=a(ie),le="function"==typeof Symbol,pe="object"==typeof r&&r&&r.Object===Object&&r,he="object"==typeof self&&self&&self.Object===Object&&self,de=pe||he||Function("return this")(),ye=de.Symbol,me=Object.prototype,ve=me.hasOwnProperty,be=me.toString,ge=ye?ye.toStringTag:void 0,we=Object.prototype,_e=we.toString,Te="[object Null]",je="[object Undefined]",xe=ye?ye.toStringTag:void 0,ke="[object AsyncFunction]",Ee="[object Function]",Oe="[object GeneratorFunction]",Se="[object Proxy]",Le=9007199254740991,Ae={},Pe="function"==typeof Symbol&&Symbol.iterator,Ce=function(t){return Pe&&t[Pe]&&t[Pe]()},De="[object Arguments]",Re=Object.prototype,Ie=Re.hasOwnProperty,Me=Re.propertyIsEnumerable,qe=k(function(){return arguments}())?k:function(t){return x(t)&&Ie.call(t,"callee")&&!Me.call(t,"callee")},He=Array.isArray,Fe="object"==typeof e&&e&&!e.nodeType&&e,Ue=Fe&&"object"==typeof o&&o&&!o.nodeType&&o,Be=Ue&&Ue.exports===Fe,ze=Be?de.Buffer:void 0,Ne=ze?ze.isBuffer:void 0,Xe=Ne||E,$e=9007199254740991,Qe=/^(?:0|[1-9]\d*)$/,Ve={};Ve["[object Float32Array]"]=Ve["[object Float64Array]"]=Ve["[object Int8Array]"]=Ve["[object Int16Array]"]=Ve["[object Int32Array]"]=Ve["[object Uint8Array]"]=Ve["[object Uint8ClampedArray]"]=Ve["[object Uint16Array]"]=Ve["[object Uint32Array]"]=!0,Ve["[object Arguments]"]=Ve["[object Array]"]=Ve["[object ArrayBuffer]"]=Ve["[object Boolean]"]=Ve["[object DataView]"]=Ve["[object Date]"]=Ve["[object Error]"]=Ve["[object Function]"]=Ve["[object Map]"]=Ve["[object Number]"]=Ve["[object Object]"]=Ve["[object RegExp]"]=Ve["[object Set]"]=Ve["[object String]"]=Ve["[object WeakMap]"]=!1;var We="object"==typeof e&&e&&!e.nodeType&&e,Ge=We&&"object"==typeof o&&o&&!o.nodeType&&o,Je=Ge&&Ge.exports===We,Ke=Je&&pe.process,Ye=function(){try{return Ke&&Ke.binding&&Ke.binding("util")}catch(t){}}(),Ze=Ye&&Ye.isTypedArray,tn=Ze?function(t){return function(e){return t(e)}}(Ze):S,en=Object.prototype,nn=en.hasOwnProperty,rn=Object.prototype,on=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),un=Object.prototype,sn=un.hasOwnProperty,an=U(F,1/0),cn=function(t,e,n){(w(t)?B:an)(t,h(e),n)},fn=z(N),ln=d(fn),pn=X(N),hn=U(pn,1),dn=d(hn),yn=function(t){return function(e,n,r){for(var o=-1,i=Object(e),u=r(e),s=u.length;s--;){var a=u[t?s:++o];if(!1===n(i[a],a,i))break}return e}}(),mn=function(t,e,n){function r(t,e){v.push(function(){a(t,e)})}function o(){if(0===v.length&&0===d)return n(null,p);for(;v.length&&d2&&(r=i(arguments,1)),e){var o={};Q(p,function(t,e){o[e]=t}),o[t]=r,y=!0,m=Object.create(null),n(e,o)}else p[t]=r,s(t)});d++;var o=h(e[e.length-1]);e.length>1?o(p,r):o(r)}}function c(e){var n=[];return Q(t,function(t,r){He(t)&&J(t,e,0)>=0&&n.push(r)}),n}"function"==typeof e&&(n=e,e=null),n=T(n||_);var f=C(t),l=f.length;if(!l)return n(null);e||(e=l);var p={},d=0,y=!1,m=Object.create(null),v=[],b=[],g={};Q(t,function(e,n){if(!He(e))return r(n,[e]),void b.push(n);var o=e.slice(0,e.length-1),i=o.length;if(0===i)return r(n,e),void b.push(n);g[n]=i,$(o,function(s){if(!t[s])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+s+"` in "+o.join(", "));u(s,function(){0===--i&&r(n,e)})})}),function(){for(var t,e=0;b.length;)t=b.pop(),e++,$(c(t),function(t){0==--g[t]&&b.push(t)});if(e!==l)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),o()},vn="[object Symbol]",bn=1/0,gn=ye?ye.prototype:void 0,wn=gn?gn.toString:void 0,_n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Tn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",jn="\\ud83c[\\udffb-\\udfff]",xn="(?:\\ud83c[\\udde6-\\uddff]){2}",kn="[\\ud800-\\udbff][\\udc00-\\udfff]",En="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",On="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",xn,kn].join("|")+")[\\ufe0e\\ufe0f]?"+En+")*",Sn="[\\ufe0e\\ufe0f]?"+En+On,Ln="(?:"+["[^\\ud800-\\udfff]"+Tn+"?",Tn,xn,kn,"[\\ud800-\\udfff]"].join("|")+")",An=RegExp(jn+"(?="+jn+")|"+Ln+Sn,"g"),Pn=/^\s+|\s+$/g,Cn=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Dn=/,/,Rn=/(=.+)?(\s*)$/,In=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;pt.prototype.removeLink=function(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t},pt.prototype.empty=function(){for(;this.head;)this.shift();return this},pt.prototype.insertAfter=function(t,e){e.prev=t,e.next=t.next,t.next?t.next.prev=e:this.tail=e,t.next=e,this.length+=1},pt.prototype.insertBefore=function(t,e){e.prev=t.prev,e.next=t,t.prev?t.prev.next=e:this.head=e,t.prev=e,this.length+=1},pt.prototype.unshift=function(t){this.head?this.insertBefore(this.head,t):ht(this,t)},pt.prototype.push=function(t){this.tail?this.insertAfter(this.tail,t):ht(this,t)},pt.prototype.shift=function(){return this.head&&this.removeLink(this.head)},pt.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},pt.prototype.toArray=function(){for(var t=Array(this.length),e=this.head,n=0;n=o.priority;)o=o.next;for(var i=0,u=t.length;i=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(6),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.onprogress=r.bind(null,"download"),e.upload&&(e.upload.onprogress=r.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||b.serialize[o?o.split(";")[0]:""];!i&&a(o)&&(i=b.serialize["application/json"]),i&&(n=i(n))}for(var u in this.header)null!=this.header[u]&&this.header.hasOwnProperty(u)&&e.setRequestHeader(u,this.header[u]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==n?n:null),this},b.agent=function(){return new v},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){v.prototype[t.toLowerCase()]=function(e,n){var r=new b.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}}),v.prototype.del=v.prototype.delete,b.get=function(t,e,n){var r=b("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},b.head=function(t,e,n){var r=b("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},b.options=function(t,e,n){var r=b("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},b.del=l,b.delete=l,b.patch=function(t,e,n){var r=b("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},b.post=function(t,e,n){var r=b("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},b.put=function(t,e,n){var r=b("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},function(t,e,n){function r(t){if(t)return o(t)}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,o=0;o=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~u.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},r.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},r.prototype.then=function(t,e){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){n.end(function(n,r){n?e(n):t(r)})})}return this._fullfilledPromise.then(t,e)},r.prototype.catch=function(t){return this.then(void 0,t)},r.prototype.use=function(t){return t(this),this},r.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},r.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},r.prototype.get=function(t){return this._header[t.toLowerCase()]},r.prototype.getHeader=r.prototype.get,r.prototype.set=function(t,e){if(i(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},r.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},r.prototype.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),i(t)){for(var n in t)this.field(n,t[n]);return this}if(Array.isArray(e)){for(var r in e)this.field(t,e[r]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},r.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},r.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},r.prototype.withCredentials=function(t){return void 0==t&&(t=!0),this._withCredentials=t,this},r.prototype.redirects=function(t){return this._maxRedirects=t,this},r.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(t){var e=i(t),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&i(this._data))for(var r in t)this._data[r]=t[r];else"string"==typeof t?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(n||this.type("json"),this)},r.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},r.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var n=this.url.substring(e+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,e)+"?"+n.join("&")}}},r.prototype._appendQueryString=function(){console.trace("Unsupported")},r.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error(t+e+"ms exceeded");r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},r.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(t,e,n){"use strict";function r(t){if(t)return o(t)}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}var i=n(13);t.exports=r,r.prototype.get=function(t){return this.header[t.toLowerCase()]},r.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=i.type(e);var n=i.params(e);for(var r in n)this[r]=n[r];this.links={};try{t.link&&(this.links=i.parseLinks(t.link))}catch(t){}},r.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t}},function(t,e,n){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce(function(t,e){var n=e.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(t[r]=o),t},{})},e.parseLinks=function(t){return t.split(/ *, */).reduce(function(t,e){var n=e.split(/ *; */),r=n[0].slice(1,-1);return t[n[1].split(/ *= */)[1].slice(1,-1)]=r,t},{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(t){n.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}}),n.prototype._setDefaults=function(t){this._defaults.forEach(function(e){t[e.fn].apply(t,e.arguments)})},t.exports=n}])}); //# sourceMappingURL=npmProfileAggregator.min.js.map