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

get-it

Package Overview
Dependencies
Maintainers
1
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-it - npm Package Compare versions

Comparing version 4.0.4 to 4.1.0

.npmignore

1

lib-node/middleware/index.js

@@ -15,2 +15,3 @@ 'use strict';

exports.urlEncoded = require('./urlEncoded');
exports.proxy = require('./proxy');
//# sourceMappingURL=index.js.map
'use strict';
/* eslint-disable no-process-env */
const url = require('url');

@@ -54,3 +55,4 @@ const http = require('http');

method: options.method,
headers: objectAssign({}, options.headers, lengthHeader)
headers: objectAssign({}, options.headers, lengthHeader),
maxRedirects: options.maxRedirects
});

@@ -72,11 +74,38 @@

let protocol = uri.protocol === 'https:' ? https : http;
// Check for configured proxy
const proxy = getProxyConfig(options, uri);
if (proxy) {
const port = uri.port ? `:${uri.port}` : '';
reqOpts.hostname = proxy.host;
reqOpts.host = proxy.host;
reqOpts.headers.host = uri.hostname + port;
reqOpts.port = proxy.port;
reqOpts.path = `${uri.protocol}//${uri.hostname}${port}${uri.path}`;
// Basic proxy authorization
if (proxy.auth) {
const auth = Buffer.from(`${proxy.auth.username}:${proxy.auth.password}`, 'utf8');
const authBase64 = auth.toString('base64');
reqOpts.headers['Proxy-Authorization'] = `Basic ${authBase64}`;
}
}
const isHttpsRequest = uri.protocol === 'https:';
// We're using the follow-redirects module to transparently follow redirects
if (options.maxRedirects !== 0) {
protocol = uri.protocol === 'https:' ? follow.https : follow.http;
reqOpts.maxRedirects = options.maxRedirects || 5;
}
const request = protocol.request(reqOpts, response => {
const transports = reqOpts.maxRedirects === 0 ? { http, https } : { http: follow.http, https: follow.https };
let transport;
if (proxy) {
const isHttpsProxy = isHttpsRequest && /^https:?/.test(proxy.protocol);
transport = isHttpsProxy ? transports.https : transports.http;
} else {
transport = isHttpsRequest ? transports.https : transports.http;
}
const request = transport.request(reqOpts, response => {
// See if we should try to decompress the response

@@ -149,2 +178,54 @@ const tryDecompress = reqOpts.method !== 'HEAD';

}
function getProxyConfig(options, uri) {
let proxy = options.proxy;
if (proxy || proxy === false) {
return proxy;
}
const proxyEnv = `${uri.protocol.slice(0, -1)}_proxy`;
const proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];
if (!proxyUrl) {
return proxy;
}
const parsedProxyUrl = url.parse(proxyUrl);
const noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;
let shouldProxy = true;
if (noProxyEnv) {
const noProxy = noProxyEnv.split(',').map(s => s.trim());
shouldProxy = !noProxy.some(proxyElement => {
if (!proxyElement) {
return false;
}
if (proxyElement === '*') {
return true;
}
if (proxyElement[0] === '.' && uri.hostname.substr(uri.hostname.length - proxyElement.length) === proxyElement && proxyElement.match(/\./g).length === uri.hostname.match(/\./g).length) {
return true;
}
return uri.hostname === proxyElement;
});
}
if (shouldProxy) {
proxy = {
host: parsedProxyUrl.hostname,
port: parsedProxyUrl.port
};
if (parsedProxyUrl.auth) {
const proxyUrlAuth = parsedProxyUrl.auth.split(':');
proxy.auth = {
username: proxyUrlAuth[0],
password: proxyUrlAuth[1]
};
}
}
return proxy;
}
//# sourceMappingURL=node-request.js.map

@@ -15,2 +15,3 @@ 'use strict';

exports.urlEncoded = require('./urlEncoded');
exports.proxy = require('./proxy');
//# sourceMappingURL=index.js.map

@@ -5,2 +5,3 @@ 'use strict';

/* eslint-disable no-process-env */
var url = require('url');

@@ -61,3 +62,4 @@ var http = require('http');

method: options.method,
headers: objectAssign({}, options.headers, lengthHeader)
headers: objectAssign({}, options.headers, lengthHeader),
maxRedirects: options.maxRedirects
});

@@ -81,11 +83,38 @@

var protocol = uri.protocol === 'https:' ? https : http;
// Check for configured proxy
var proxy = getProxyConfig(options, uri);
if (proxy) {
var port = uri.port ? ':' + uri.port : '';
reqOpts.hostname = proxy.host;
reqOpts.host = proxy.host;
reqOpts.headers.host = uri.hostname + port;
reqOpts.port = proxy.port;
reqOpts.path = uri.protocol + '//' + uri.hostname + port + uri.path;
// Basic proxy authorization
if (proxy.auth) {
var auth = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8');
var authBase64 = auth.toString('base64');
reqOpts.headers['Proxy-Authorization'] = 'Basic ' + authBase64;
}
}
var isHttpsRequest = uri.protocol === 'https:';
// We're using the follow-redirects module to transparently follow redirects
if (options.maxRedirects !== 0) {
protocol = uri.protocol === 'https:' ? follow.https : follow.http;
reqOpts.maxRedirects = options.maxRedirects || 5;
}
var request = protocol.request(reqOpts, function (response) {
var transports = reqOpts.maxRedirects === 0 ? { http: http, https: https } : { http: follow.http, https: follow.https };
var transport = void 0;
if (proxy) {
var isHttpsProxy = isHttpsRequest && /^https:?/.test(proxy.protocol);
transport = isHttpsProxy ? transports.https : transports.http;
} else {
transport = isHttpsRequest ? transports.https : transports.http;
}
var request = transport.request(reqOpts, function (response) {
// See if we should try to decompress the response

@@ -160,2 +189,56 @@ var tryDecompress = reqOpts.method !== 'HEAD';

}
function getProxyConfig(options, uri) {
var proxy = options.proxy;
if (proxy || proxy === false) {
return proxy;
}
var proxyEnv = uri.protocol.slice(0, -1) + '_proxy';
var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];
if (!proxyUrl) {
return proxy;
}
var parsedProxyUrl = url.parse(proxyUrl);
var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;
var shouldProxy = true;
if (noProxyEnv) {
var noProxy = noProxyEnv.split(',').map(function (s) {
return s.trim();
});
shouldProxy = !noProxy.some(function (proxyElement) {
if (!proxyElement) {
return false;
}
if (proxyElement === '*') {
return true;
}
if (proxyElement[0] === '.' && uri.hostname.substr(uri.hostname.length - proxyElement.length) === proxyElement && proxyElement.match(/\./g).length === uri.hostname.match(/\./g).length) {
return true;
}
return uri.hostname === proxyElement;
});
}
if (shouldProxy) {
proxy = {
host: parsedProxyUrl.hostname,
port: parsedProxyUrl.port
};
if (parsedProxyUrl.auth) {
var proxyUrlAuth = parsedProxyUrl.auth.split(':');
proxy.auth = {
username: proxyUrlAuth[0],
password: proxyUrlAuth[1]
};
}
}
return proxy;
}
//# sourceMappingURL=node-request.js.map

6

package.json
{
"name": "get-it",
"version": "4.0.4",
"version": "4.1.0",
"description": "Generic HTTP request library for node and browsers",

@@ -86,3 +86,4 @@ "main": "index.js",

"eslint": "^4.3.0",
"eslint-config-sanity": "^2.1.4",
"eslint-config-prettier": "^3.3.0",
"eslint-config-sanity": "^0.140.0",
"get-uri": "^2.0.1",

@@ -101,2 +102,3 @@ "gzip-size": "^3.0.0",

"nyc": "^11.0.3",
"prettier": "^1.15.2",
"pretty-bytes": "^4.0.2",

@@ -103,0 +105,0 @@ "rimraf": "^2.6.1",

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

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.getIt = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.getIt = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";var getIt=require("./index");getIt.middleware=require("./middleware"),module.exports=getIt;
},{"./index":2,"./middleware":12}],2:[function(require,module,exports){
"use strict";var pubsub=require("nano-pubsub"),middlewareReducer=require("./util/middlewareReducer"),processOptions=require("./middleware/defaultOptionsProcessor"),validateOptions=require("./middleware/defaultOptionsValidator"),httpRequest=require("./request"),channelNames=["request","response","progress","error","abort"],middlehooks=["processOptions","validateOptions","interceptRequest","onRequest","onResponse","onError","onReturn","onHeaders"];module.exports=function e(){function r(e){function r(e,r,n){var s=e,i=r;if(!s)try{i=o("onResponse",r,n)}catch(e){i=null,s=e}(s=s&&o("onError",s,n))?t.error.publish(s):i&&t.response.publish(i)}var t=channelNames.reduce(function(e,r){return e[r]=pubsub(),e},{}),o=middlewareReducer(n),s=o("processOptions",e);o("validateOptions",s);var i={options:s,channels:t,applyMiddleware:o},u=null,a=t.request.subscribe(function(e){u=httpRequest(e,function(t,o){return r(t,o,e)})});t.abort.subscribe(function(){a(),u&&u.abort()});var d=o("onReturn",t,i);return d===t&&t.request.publish(i),d}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=[],n=middlehooks.reduce(function(e,r){return e[r]=e[r]||[],e},{processOptions:[processOptions],validateOptions:[validateOptions]});return r.use=function(e){if(!e)throw new Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&n.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return middlehooks.forEach(function(r){e[r]&&n[r].push(e[r])}),o.push(e),r},r.clone=function(){return e(o)},t.forEach(r.use),r};
"use strict";var pubsub=require("nano-pubsub"),middlewareReducer=require("./util/middlewareReducer"),processOptions=require("./middleware/defaultOptionsProcessor"),validateOptions=require("./middleware/defaultOptionsValidator"),httpRequest=require("./request"),channelNames=["request","response","progress","error","abort"],middlehooks=["processOptions","validateOptions","interceptRequest","onRequest","onResponse","onError","onReturn","onHeaders"];module.exports=function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],o=middlehooks.reduce(function(e,r){return e[r]=e[r]||[],e},{processOptions:[processOptions],validateOptions:[validateOptions]});function n(e){var r=channelNames.reduce(function(e,r){return e[r]=pubsub(),e},{}),t=middlewareReducer(o),n=t("processOptions",e);t("validateOptions",n);var s={options:n,channels:r,applyMiddleware:t},i=null,u=r.request.subscribe(function(e){i=httpRequest(e,function(o,n){return function(e,o,n){var s=e,i=o;if(!s)try{i=t("onResponse",o,n)}catch(e){i=null,s=e}(s=s&&t("onError",s,n))?r.error.publish(s):i&&r.response.publish(i)}(o,n,e)})});r.abort.subscribe(function(){u(),i&&i.abort()});var a=t("onReturn",r,s);return a===r&&r.request.publish(s),a}return n.use=function(e){if(!e)throw new Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&o.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return middlehooks.forEach(function(r){e[r]&&o[r].push(e[r])}),t.push(e),n},n.clone=function(){return e(t)},r.forEach(n.use),n};
},{"./middleware/defaultOptionsProcessor":8,"./middleware/defaultOptionsValidator":9,"./request":23,"./util/middlewareReducer":26,"nano-pubsub":37}],3:[function(require,module,exports){
},{"./middleware/defaultOptionsProcessor":8,"./middleware/defaultOptionsValidator":9,"./request":24,"./util/middlewareReducer":27,"nano-pubsub":38}],3:[function(require,module,exports){
"use strict";var objectAssign=require("object-assign"),leadingSlash=/^\//,trailingSlash=/\/$/;module.exports=function(r){var e=r.replace(trailingSlash,"");return{processOptions:function(r){if(/^https?:\/\//i.test(r.url))return r;var s=[e,r.url.replace(leadingSlash,"")].join("/");return objectAssign({},r,{url:s})}}};
},{"object-assign":38}],4:[function(require,module,exports){
},{"object-assign":39}],4:[function(require,module,exports){
"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,module.exports=Cancel;
},{}],5:[function(require,module,exports){
"use strict";function CancelToken(n){var e=this;if("function"!=typeof n)throw new TypeError("executor must be a function.");var o=null;this.promise=new Promise(function(n){o=n}),n(function(n){e.reason||(e.reason=new Cancel(n),o(e.reason))})}var Cancel=require("./Cancel");CancelToken.source=function(){var n=void 0;return{token:new CancelToken(function(e){n=e}),cancel:n}},module.exports=CancelToken;
"use strict";var Cancel=require("./Cancel");function CancelToken(n){var e=this;if("function"!=typeof n)throw new TypeError("executor must be a function.");var o=null;this.promise=new Promise(function(n){o=n}),n(function(n){e.reason||(e.reason=new Cancel(n),o(e.reason))})}CancelToken.source=function(){var n=void 0;return{token:new CancelToken(function(e){n=e}),cancel:n}},module.exports=CancelToken;

@@ -20,8 +20,8 @@ },{"./Cancel":4}],6:[function(require,module,exports){

},{}],7:[function(require,module,exports){
"use strict";function stringifyBody(e){return-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?tryFormat(e.body):e.body}function tryFormat(e){try{var r="string"==typeof e?JSON.parse(e):e;return JSON.stringify(r,null,2)}catch(r){return e}}var debugIt=require("debug"),SENSITIVE_HEADERS=["Cookie","Authorization"],hasOwn=Object.prototype.hasOwnProperty,redactKeys=function(e,r){var t={};for(var s in e)hasOwn.call(e,s)&&(t[s]=r.indexOf(s)>-1?"<redacted>":e[s]);return t};module.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.verbose,t=e.namespace||"get-it",s=debugIt(t),n=e.log||s,o=n===s&&!debugIt.enabled(t),d=0;return{processOptions:function(e){return e.requestId=e.requestId||++d,e},onRequest:function(t){if(o||!t)return t;var s=t.options;if(n("[%s] HTTP %s %s",s.requestId,s.method,s.url),r&&s.body&&"string"==typeof s.body&&n("[%s] Request body: %s",s.requestId,s.body),r&&s.headers){var d=!1===e.redactSensitiveHeaders?s.headers:redactKeys(s.headers,SENSITIVE_HEADERS);n("[%s] Request headers: %s",s.requestId,JSON.stringify(d,null,2))}return t},onResponse:function(e,t){if(o||!e)return e;var s=t.options.requestId;return n("[%s] Response code: %s %s",s,e.statusCode,e.statusMessage),r&&e.body&&n("[%s] Response body: %s",s,stringifyBody(e)),e},onError:function(e,r){var t=r.options.requestId;return e?(n("[%s] ERROR: %s",t,e.message),e):(n("[%s] Error encountered, but handled by an earlier middleware",t),e)}}};
"use strict";var debugIt=require("debug"),SENSITIVE_HEADERS=["Cookie","Authorization"],hasOwn=Object.prototype.hasOwnProperty,redactKeys=function(e,r){var t={};for(var s in e)hasOwn.call(e,s)&&(t[s]=r.indexOf(s)>-1?"<redacted>":e[s]);return t};function stringifyBody(e){return-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?tryFormat(e.body):e.body}function tryFormat(e){try{var r="string"==typeof e?JSON.parse(e):e;return JSON.stringify(r,null,2)}catch(r){return e}}module.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.verbose,t=e.namespace||"get-it",s=debugIt(t),n=e.log||s,o=n===s&&!debugIt.enabled(t),d=0;return{processOptions:function(e){return e.requestId=e.requestId||++d,e},onRequest:function(t){if(o||!t)return t;var s=t.options;if(n("[%s] HTTP %s %s",s.requestId,s.method,s.url),r&&s.body&&"string"==typeof s.body&&n("[%s] Request body: %s",s.requestId,s.body),r&&s.headers){var d=!1===e.redactSensitiveHeaders?s.headers:redactKeys(s.headers,SENSITIVE_HEADERS);n("[%s] Request headers: %s",s.requestId,JSON.stringify(d,null,2))}return t},onResponse:function(e,t){if(o||!e)return e;var s=t.options.requestId;return n("[%s] Response code: %s %s",s,e.statusCode,e.statusMessage),r&&e.body&&n("[%s] Response body: %s",s,stringifyBody(e)),e},onError:function(e,r){var t=r.options.requestId;return e?(n("[%s] ERROR: %s",t,e.message),e):(n("[%s] Error encountered, but handled by an earlier middleware",t),e)}}};
},{"debug":30}],8:[function(require,module,exports){
"use strict";function stringifyQueryString(e){function t(e,n){Array.isArray(n)?n.forEach(function(r){return t(e,r)}):r.push([e,n].map(encodeURIComponent).join("="))}var r=[];for(var n in e)has.call(e,n)&&t(n,e[n]);return r.length?r.join("&"):""}function normalizeTimeout(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;var t=Number(e);return isNaN(t)?normalizeTimeout(defaultOptions.timeout):{connect:t,socket:t}}function removeUndefined(e){var t={};for(var r in e)void 0!==e[r]&&(t[r]=e[r]);return t}var objectAssign=require("object-assign"),urlParse=require("url-parse"),isReactNative="undefined"!=typeof navigator&&"ReactNative"===navigator.product,has=Object.prototype.hasOwnProperty,defaultOptions={timeout:isReactNative?6e4:12e4};module.exports=function(e){var t="string"==typeof e?objectAssign({url:e},defaultOptions):objectAssign({},defaultOptions,e),r=urlParse(t.url,{},!0);return t.timeout=normalizeTimeout(t.timeout),t.query&&(r.query=objectAssign({},r.query,removeUndefined(t.query))),t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t.url=r.toString(stringifyQueryString),t};
"use strict";var objectAssign=require("object-assign"),urlParse=require("url-parse"),isReactNative="undefined"!=typeof navigator&&"ReactNative"===navigator.product,has=Object.prototype.hasOwnProperty,defaultOptions={timeout:isReactNative?6e4:12e4};function stringifyQueryString(e){var t=[];for(var r in e)has.call(e,r)&&n(r,e[r]);return t.length?t.join("&"):"";function n(e,r){Array.isArray(r)?r.forEach(function(t){return n(e,t)}):t.push([e,r].map(encodeURIComponent).join("="))}}function normalizeTimeout(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;var t=Number(e);return isNaN(t)?normalizeTimeout(defaultOptions.timeout):{connect:t,socket:t}}function removeUndefined(e){var t={};for(var r in e)void 0!==e[r]&&(t[r]=e[r]);return t}module.exports=function(e){var t="string"==typeof e?objectAssign({url:e},defaultOptions):objectAssign({},defaultOptions,e),r=urlParse(t.url,{},!0);return t.timeout=normalizeTimeout(t.timeout),t.query&&(r.query=objectAssign({},r.query,removeUndefined(t.query))),t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t.url=r.toString(stringifyQueryString),t};
},{"object-assign":38,"url-parse":46}],9:[function(require,module,exports){
},{"object-assign":39,"url-parse":47}],9:[function(require,module,exports){
"use strict";var validUrl=/^https?:\/\//i;module.exports=function(r){if(!validUrl.test(r.url))throw new Error('"'+r.url+'" is not a valid URL')};

@@ -32,22 +32,22 @@

},{"object-assign":38}],11:[function(require,module,exports){
},{"object-assign":39}],11:[function(require,module,exports){
"use strict";var createErrorClass=require("create-error-class"),HttpError=createErrorClass("HttpError",function(r,t){this.message=(r.method+"-request to "+r.url+" resulted in HTTP "+r.statusCode+" "+r.statusMessage).trim(),this.response=r,this.request=t.options});module.exports=function(){return{onResponse:function(r,t){if(!(r.statusCode>=400))return r;throw new HttpError(r,t)}}};
},{"create-error-class":28}],12:[function(require,module,exports){
"use strict";exports.base=require("./base"),exports.debug=require("./debug"),exports.jsonRequest=require("./jsonRequest"),exports.jsonResponse=require("./jsonResponse"),exports.httpErrors=require("./httpErrors"),exports.retry=require("./retry"),exports.promise=require("./promise"),exports.observable=require("./observable"),exports.progress=require("./progress"),exports.headers=require("./headers"),exports.injectResponse=require("./injectResponse"),exports.urlEncoded=require("./urlEncoded");
},{"create-error-class":29}],12:[function(require,module,exports){
"use strict";exports.base=require("./base"),exports.debug=require("./debug"),exports.jsonRequest=require("./jsonRequest"),exports.jsonResponse=require("./jsonResponse"),exports.httpErrors=require("./httpErrors"),exports.retry=require("./retry"),exports.promise=require("./promise"),exports.observable=require("./observable"),exports.progress=require("./progress"),exports.headers=require("./headers"),exports.injectResponse=require("./injectResponse"),exports.urlEncoded=require("./urlEncoded"),exports.proxy=require("./proxy");
},{"./base":3,"./debug":7,"./headers":10,"./httpErrors":11,"./injectResponse":13,"./jsonRequest":14,"./jsonResponse":15,"./observable":16,"./progress":18,"./promise":19,"./retry":20,"./urlEncoded":21}],13:[function(require,module,exports){
},{"./base":3,"./debug":7,"./headers":10,"./httpErrors":11,"./injectResponse":13,"./jsonRequest":14,"./jsonResponse":15,"./observable":16,"./progress":18,"./promise":19,"./proxy":20,"./retry":21,"./urlEncoded":22}],13:[function(require,module,exports){
"use strict";var objectAssign=require("object-assign");module.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("function"!=typeof e.inject)throw new Error("`injectResponse` middleware requires a `inject` function");return{interceptRequest:function(t,r){var n=e.inject(r,t);if(!n)return t;var o=r.context.options;return objectAssign({},{body:"",url:o.url,method:o.method,headers:{},statusCode:200,statusMessage:"OK"},n)}}};
},{"object-assign":38}],14:[function(require,module,exports){
},{"object-assign":39}],14:[function(require,module,exports){
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},objectAssign=require("object-assign"),isPlainObject=require("is-plain-object"),serializeTypes=["boolean","string","number"],isBuffer=function(o){return!!o.constructor&&"function"==typeof o.constructor.isBuffer&&o.constructor.isBuffer(o)};module.exports=function(){return{processOptions:function(o){var e=o.body;return e&&!("function"==typeof e.pipe)&&!isBuffer(e)&&(-1!==serializeTypes.indexOf(void 0===e?"undefined":_typeof(e))||Array.isArray(e)||isPlainObject(e))?objectAssign({},o,{body:JSON.stringify(o.body),headers:objectAssign({},o.headers,{"Content-Type":"application/json"})}):o}}};
},{"is-plain-object":35,"object-assign":38}],15:[function(require,module,exports){
"use strict";function tryParse(e){try{return JSON.parse(e)}catch(e){throw e.message="Failed to parsed response body as JSON: "+e.message,e}}var objectAssign=require("object-assign");module.exports=function(e){return{onResponse:function(s){var t=s.headers["content-type"]||"",n=e&&e.force||-1!==t.indexOf("application/json");return s.body&&t&&n?objectAssign({},s,{body:tryParse(s.body)}):s},processOptions:function(e){return objectAssign({},e,{headers:objectAssign({Accept:"application/json"},e.headers)})}}};
},{"is-plain-object":35,"object-assign":39}],15:[function(require,module,exports){
"use strict";var objectAssign=require("object-assign");function tryParse(e){try{return JSON.parse(e)}catch(e){throw e.message="Failed to parsed response body as JSON: "+e.message,e}}module.exports=function(e){return{onResponse:function(s){var t=s.headers["content-type"]||"",n=e&&e.force||-1!==t.indexOf("application/json");return s.body&&t&&n?objectAssign({},s,{body:tryParse(s.body)}):s},processOptions:function(e){return objectAssign({},e,{headers:objectAssign({Accept:"application/json"},e.headers)})}}};
},{"object-assign":38}],16:[function(require,module,exports){
},{"object-assign":39}],16:[function(require,module,exports){
"use strict";var global=require("../util/global"),objectAssign=require("object-assign");module.exports=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).implementation||global.Observable;if(!e)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(r,n){return new e(function(e){return r.error.subscribe(function(r){return e.error(r)}),r.progress.subscribe(function(r){return e.next(objectAssign({type:"progress"},r))}),r.response.subscribe(function(r){e.next(objectAssign({type:"response"},r)),e.complete()}),r.request.publish(n),function(){return r.abort.publish()}})}}};
},{"../util/global":25,"object-assign":38}],17:[function(require,module,exports){
"use strict";module.exports=function(){return{onRequest:function(o){function e(o){return function(e){var t=e.lengthComputable?e.loaded/e.total*100:-1;n.channels.progress.publish({stage:o,percent:t,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}if("xhr"===o.adapter){var t=o.request,n=o.context;"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=e("upload")),"onprogress"in t&&(t.onprogress=e("download"))}}}};
},{"../util/global":26,"object-assign":39}],17:[function(require,module,exports){
"use strict";module.exports=function(){return{onRequest:function(o){if("xhr"===o.adapter){var e=o.request,t=o.context;"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}function n(o){return function(e){var n=e.lengthComputable?e.loaded/e.total*100:-1;t.channels.progress.publish({stage:o,percent:n,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}}}};

@@ -60,18 +60,21 @@ },{}],18:[function(require,module,exports){

},{"../util/global":25,"./cancel/Cancel":4,"./cancel/CancelToken":5,"./cancel/isCancel":6}],20:[function(require,module,exports){
"use strict";function getRetryDelay(t){return 100*Math.pow(2,t)+100*Math.random()}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},objectAssign=require("object-assign"),defaultShouldRetry=require("../util/node-shouldRetry"),isStream=function(t){return null!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&"function"==typeof t.pipe},retry=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.maxRetries||5,r=t.retryDelay||getRetryDelay,o=t.shouldRetry||defaultShouldRetry;return{onError:function(t,n){var u=n.options,i=u.maxRetries||e,y=u.shouldRetry||o,l=u.attemptNumber||0;if(isStream(u.body))return t;if(!y(t,l,u)||l>=i)return t;var s=objectAssign({},n,{options:objectAssign({},u,{attemptNumber:l+1})});return setTimeout(function(){return n.channels.request.publish(s)},r(l)),null}}};retry.shouldRetry=defaultShouldRetry,module.exports=retry;
},{"../util/global":26,"./cancel/Cancel":4,"./cancel/CancelToken":5,"./cancel/isCancel":6}],20:[function(require,module,exports){
"use strict";var objectAssign=require("object-assign");module.exports=function(r){if(!(!1===r||r&&r.host))throw new Error("Proxy middleware takes an object of host, port and auth properties");return{processOptions:function(o){return objectAssign({proxy:r},o)}}};
},{"../util/node-shouldRetry":24,"object-assign":38}],21:[function(require,module,exports){
},{"object-assign":39}],21:[function(require,module,exports){
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},objectAssign=require("object-assign"),defaultShouldRetry=require("../util/node-shouldRetry"),isStream=function(t){return null!==t&&"object"===(void 0===t?"undefined":_typeof(t))&&"function"==typeof t.pipe},retry=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.maxRetries||5,r=t.retryDelay||getRetryDelay,o=t.shouldRetry||defaultShouldRetry;return{onError:function(t,n){var u=n.options,i=u.maxRetries||e,y=u.shouldRetry||o,l=u.attemptNumber||0;if(isStream(u.body))return t;if(!y(t,l,u)||l>=i)return t;var s=objectAssign({},n,{options:objectAssign({},u,{attemptNumber:l+1})});return setTimeout(function(){return n.channels.request.publish(s)},r(l)),null}}};function getRetryDelay(t){return 100*Math.pow(2,t)+100*Math.random()}retry.shouldRetry=defaultShouldRetry,module.exports=retry;
},{"../util/node-shouldRetry":25,"object-assign":39}],22:[function(require,module,exports){
"use strict";var objectAssign=require("object-assign"),isPlainObject=require("is-plain-object"),urlEncode=require("form-urlencoded"),encode=urlEncode.default||urlEncode,isBuffer=function(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)};module.exports=function(){return{processOptions:function(e){var o=e.body;return o&&!("function"==typeof o.pipe)&&!isBuffer(o)&&isPlainObject(o)?objectAssign({},e,{body:encode(e.body),headers:objectAssign({},e.headers,{"Content-Type":"application/x-www-form-urlencoded"})}):e}}};
},{"form-urlencoded":33,"is-plain-object":35,"object-assign":38}],22:[function(require,module,exports){
"use strict";var sameOrigin=require("same-origin"),parseHeaders=require("parse-headers"),noop=function(){},win=window,XmlHttpRequest=win.XMLHttpRequest||noop,hasXhr2="withCredentials"in new XmlHttpRequest,XDomainRequest=hasXhr2?XmlHttpRequest:win.XDomainRequest,adapter="xhr";module.exports=function(e,t){function r(t){R=!0,w.abort();var r=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+u.url:"Connection timed out on request to "+u.url);r.code=t,e.channels.error.publish(r)}function n(){X&&(o(),c.socket=setTimeout(function(){return r("ESOCKETTIMEDOUT")},X.socket))}function o(){(h||w.readyState>=2&&c.connect)&&clearTimeout(c.connect),c.socket&&clearTimeout(c.socket)}function s(){if(!q){o(),q=!0,w=null;var e=new Error("Network error while attempting to reach "+u.url);e.isNetworkError=!0,e.request=u,t(e)}}function a(){var e=w.status,t=w.statusText;if(m&&void 0===e)e=200;else{if(e>12e3&&e<12156)return s();e=1223===w.status?204:w.status,t=1223===w.status?"No Content":t}return{body:w.response||w.responseText,url:u.url,method:u.method,headers:m?{}:parseHeaders(w.getAllResponseHeaders()),statusCode:e,statusMessage:t}}function i(){h||q||R||(0!==w.status?(o(),q=!0,t(null,a())):s(new Error("Unknown XHR error")))}var u=e.options,c={},d=win&&win.location&&!sameOrigin(win.location.href,u.url),l=e.applyMiddleware("interceptRequest",void 0,{adapter:adapter,context:e});if(l){var p=setTimeout(t,0,null,l);return{abort:function(){return clearTimeout(p)}}}var w=d?new XDomainRequest:new XmlHttpRequest,m=win.XDomainRequest&&w instanceof win.XDomainRequest,f=u.headers,h=!1,q=!1,R=!1;if(w.onerror=s,w.ontimeout=s,w.onabort=function(){h=!0},w.onprogress=function(){},w[m?"onload":"onreadystatechange"]=function(){n(),h||4!==w.readyState&&!m||0!==w.status&&i()},w.open(u.method,u.url,!0),w.withCredentials=!!u.withCredentials,f&&w.setRequestHeader)for(var T in f)f.hasOwnProperty(T)&&w.setRequestHeader(T,f[T]);else if(f&&m)throw new Error("Headers cannot be set on an XDomainRequest object");u.rawBody&&(w.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:u,adapter:adapter,request:w,context:e}),w.send(u.body||null);var X=u.timeout;return X&&(c.connect=setTimeout(function(){return r("ETIMEDOUT")},X.connect)),{abort:function(){h=!0,w&&w.abort()}}};
},{"form-urlencoded":33,"is-plain-object":35,"object-assign":39}],23:[function(require,module,exports){
"use strict";var sameOrigin=require("same-origin"),parseHeaders=require("parse-headers"),noop=function(){},win=window,XmlHttpRequest=win.XMLHttpRequest||noop,hasXhr2="withCredentials"in new XmlHttpRequest,XDomainRequest=hasXhr2?XmlHttpRequest:win.XDomainRequest,adapter="xhr";module.exports=function(e,t){var r=e.options,n={},o=win&&win.location&&!sameOrigin(win.location.href,r.url),s=e.applyMiddleware("interceptRequest",void 0,{adapter:adapter,context:e});if(s){var a=setTimeout(t,0,null,s);return{abort:function(){return clearTimeout(a)}}}var i=o?new XDomainRequest:new XmlHttpRequest,u=win.XDomainRequest&&i instanceof win.XDomainRequest,c=r.headers,d=!1,l=!1,p=!1;if(i.onerror=q,i.ontimeout=q,i.onabort=function(){d=!0},i.onprogress=function(){},i[u?"onload":"onreadystatechange"]=function(){!function(){if(!w)return;h(),n.socket=setTimeout(function(){return m("ESOCKETTIMEDOUT")},w.socket)}(),d||4!==i.readyState&&!u||0!==i.status&&function(){if(d||l||p)return;if(0===i.status)return void q(new Error("Unknown XHR error"));h(),l=!0,t(null,function(){var e=i.status,t=i.statusText;if(u&&void 0===e)e=200;else{if(e>12e3&&e<12156)return q();e=1223===i.status?204:i.status,t=1223===i.status?"No Content":t}return{body:i.response||i.responseText,url:r.url,method:r.method,headers:u?{}:parseHeaders(i.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())}()},i.open(r.method,r.url,!0),i.withCredentials=!!r.withCredentials,c&&i.setRequestHeader)for(var f in c)c.hasOwnProperty(f)&&i.setRequestHeader(f,c[f]);else if(c&&u)throw new Error("Headers cannot be set on an XDomainRequest object");r.rawBody&&(i.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:r,adapter:adapter,request:i,context:e}),i.send(r.body||null);var w=r.timeout;return w&&(n.connect=setTimeout(function(){return m("ETIMEDOUT")},w.connect)),{abort:function(){d=!0,i&&i.abort()}};function m(t){p=!0,i.abort();var n=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+r.url:"Connection timed out on request to "+r.url);n.code=t,e.channels.error.publish(n)}function h(){(d||i.readyState>=2&&n.connect)&&clearTimeout(n.connect),n.socket&&clearTimeout(n.socket)}function q(){if(!l){h(),l=!0,i=null;var e=new Error("Network error while attempting to reach "+r.url);e.isNetworkError=!0,e.request=r,t(e)}}};
},{"parse-headers":39,"same-origin":43}],23:[function(require,module,exports){
},{"parse-headers":40,"same-origin":44}],24:[function(require,module,exports){
"use strict";module.exports=require("./node-request");
},{"./node-request":22}],24:[function(require,module,exports){
},{"./node-request":23}],25:[function(require,module,exports){
"use strict";module.exports=function(r,t,e){return("GET"===e.method||"HEAD"===e.method)&&(r.isNetworkError||!1)};
},{}],25:[function(require,module,exports){
},{}],26:[function(require,module,exports){
(function (global){

@@ -81,33 +84,30 @@ "use strict";"undefined"!=typeof window?module.exports=window:"undefined"!=typeof global?module.exports=global:"undefined"!=typeof self?module.exports=self:module.exports={};

}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}],26:[function(require,module,exports){
},{}],27:[function(require,module,exports){
"use strict";module.exports=function(r){return function(n,t){for(var e=arguments.length,u=Array(e>2?e-2:0),o=2;o<e;o++)u[o-2]=arguments[o];return r[n].reduce(function(r,n){return n.apply(void 0,[r].concat(u))},t)}};
},{}],27:[function(require,module,exports){
},{}],28:[function(require,module,exports){
"use strict";module.exports=Error.captureStackTrace||function(r){var e=new Error;Object.defineProperty(r,"stack",{configurable:!0,get:function(){var r=e.stack;return Object.defineProperty(this,"stack",{value:r}),r}})};
},{}],28:[function(require,module,exports){
"use strict";function inherits(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}var captureStackTrace=require("capture-stack-trace");module.exports=function(e,t){if("string"!=typeof e)throw new TypeError("Expected className to be a string");if(/[^0-9a-zA-Z_$]/.test(e))throw new Error("className contains invalid characters");t=t||function(e){this.message=e};var r=function(){Object.defineProperty(this,"name",{configurable:!0,value:e,writable:!0}),captureStackTrace(this,this.constructor),t.apply(this,arguments)};return inherits(r,Error),r};
},{}],29:[function(require,module,exports){
"use strict";var captureStackTrace=require("capture-stack-trace");function inherits(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}module.exports=function(e,t){if("string"!=typeof e)throw new TypeError("Expected className to be a string");if(/[^0-9a-zA-Z_$]/.test(e))throw new Error("className contains invalid characters");t=t||function(e){this.message=e};var r=function(){Object.defineProperty(this,"name",{configurable:!0,value:e,writable:!0}),captureStackTrace(this,this.constructor),t.apply(this,arguments)};return inherits(r,Error),r};
},{"capture-stack-trace":27}],29:[function(require,module,exports){
function parse(e){if(!((e=String(e)).length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var a=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*y;case"days":case"day":case"d":return a*d;case"hours":case"hour":case"hrs":case"hr":case"h":return a*h;case"minutes":case"minute":case"mins":case"min":case"m":return a*m;case"seconds":case"second":case"secs":case"sec":case"s":return a*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function fmtShort(e){return e>=d?Math.round(e/d)+"d":e>=h?Math.round(e/h)+"h":e>=m?Math.round(e/m)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function fmtLong(e){return plural(e,d,"day")||plural(e,h,"hour")||plural(e,m,"minute")||plural(e,s,"second")||e+" ms"}function plural(s,e,r){if(!(s<e))return s<1.5*e?Math.floor(s/e)+" "+r:Math.ceil(s/e)+" "+r+"s"}var s=1e3,m=60*s,h=60*m,d=24*h,y=365.25*d;module.exports=function(s,e){e=e||{};var r=typeof s;if("string"===r&&s.length>0)return parse(s);if("number"===r&&!1===isNaN(s))return e.long?fmtLong(s):fmtShort(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};
},{}],30:[function(require,module,exports){
},{"capture-stack-trace":28}],30:[function(require,module,exports){
(function (process){
function useColors(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function formatArgs(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+exports.humanize(this.diff),o){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var t=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(t++,"%c"===e&&(n=t))}),e.splice(n,0,r)}}function log(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{null==e?exports.storage.removeItem("debug"):exports.storage.debug=e}catch(e){}}function load(){var e;try{e=exports.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}function localstorage(){try{return window.localStorage}catch(e){}}exports=module.exports=require("./debug"),exports.log=log,exports.formatArgs=formatArgs,exports.save=save,exports.load=load,exports.useColors=useColors,exports.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:localstorage(),exports.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},exports.enable(load());
function useColors(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function formatArgs(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+exports.humanize(this.diff),o){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var t=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(n=++t)}),e.splice(n,0,r)}}function log(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{null==e?exports.storage.removeItem("debug"):exports.storage.debug=e}catch(e){}}function load(){var e;try{e=exports.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}function localstorage(){try{return window.localStorage}catch(e){}}exports=module.exports=require("./debug"),exports.log=log,exports.formatArgs=formatArgs,exports.save=save,exports.load=load,exports.useColors=useColors,exports.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:localstorage(),exports.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},exports.enable(load());
}).call(this,require('_process'))
},{"./debug":31,"_process":40}],31:[function(require,module,exports){
function selectColor(e){var r,t=0;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return exports.colors[Math.abs(t)%exports.colors.length]}function createDebug(e){function r(){if(r.enabled){var e=r,t=+new Date,o=t-(prevTime||t);e.diff=o,e.prev=prevTime,e.curr=t,prevTime=t;for(var s=new Array(arguments.length),n=0;n<s.length;n++)s[n]=arguments[n];s[0]=exports.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var p=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(r,t){if("%%"===r)return r;p++;var o=exports.formatters[t];if("function"==typeof o){var n=s[p];r=o.call(e,n),s.splice(p,1),p--}return r}),exports.formatArgs.call(e,s),(r.log||exports.log||console.log.bind(console)).apply(e,s)}}return r.namespace=e,r.enabled=exports.enabled(e),r.useColors=exports.useColors(),r.color=selectColor(e),"function"==typeof exports.init&&exports.init(r),r}function enable(e){exports.save(e),exports.names=[],exports.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),t=r.length,o=0;o<t;o++)r[o]&&("-"===(e=r[o].replace(/\*/g,".*?"))[0]?exports.skips.push(new RegExp("^"+e.substr(1)+"$")):exports.names.push(new RegExp("^"+e+"$")))}function disable(){exports.enable("")}function enabled(e){var r,t;for(r=0,t=exports.skips.length;r<t;r++)if(exports.skips[r].test(e))return!1;for(r=0,t=exports.names.length;r<t;r++)if(exports.names[r].test(e))return!0;return!1}function coerce(e){return e instanceof Error?e.stack||e.message:e}exports=module.exports=createDebug.debug=createDebug.default=createDebug,exports.coerce=coerce,exports.disable=disable,exports.enable=enable,exports.enabled=enabled,exports.humanize=require("ms"),exports.names=[],exports.skips=[],exports.formatters={};var prevTime;
},{"./debug":31,"_process":41}],31:[function(require,module,exports){
var prevTime;function selectColor(e){var r,t=0;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return exports.colors[Math.abs(t)%exports.colors.length]}function createDebug(e){function r(){if(r.enabled){var e=r,t=+new Date,o=t-(prevTime||t);e.diff=o,e.prev=prevTime,e.curr=t,prevTime=t;for(var s=new Array(arguments.length),n=0;n<s.length;n++)s[n]=arguments[n];s[0]=exports.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var p=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(r,t){if("%%"===r)return r;p++;var o=exports.formatters[t];if("function"==typeof o){var n=s[p];r=o.call(e,n),s.splice(p,1),p--}return r}),exports.formatArgs.call(e,s),(r.log||exports.log||console.log.bind(console)).apply(e,s)}}return r.namespace=e,r.enabled=exports.enabled(e),r.useColors=exports.useColors(),r.color=selectColor(e),"function"==typeof exports.init&&exports.init(r),r}function enable(e){exports.save(e),exports.names=[],exports.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),t=r.length,o=0;o<t;o++)r[o]&&("-"===(e=r[o].replace(/\*/g,".*?"))[0]?exports.skips.push(new RegExp("^"+e.substr(1)+"$")):exports.names.push(new RegExp("^"+e+"$")))}function disable(){exports.enable("")}function enabled(e){var r,t;for(r=0,t=exports.skips.length;r<t;r++)if(exports.skips[r].test(e))return!1;for(r=0,t=exports.names.length;r<t;r++)if(exports.names[r].test(e))return!0;return!1}function coerce(e){return e instanceof Error?e.stack||e.message:e}exports=module.exports=createDebug.debug=createDebug.default=createDebug,exports.coerce=coerce,exports.disable=disable,exports.enable=enable,exports.enabled=enabled,exports.humanize=require("ms"),exports.names=[],exports.skips=[],exports.formatters={};
},{"ms":29}],32:[function(require,module,exports){
function forEach(r,t,o){if(!isFunction(t))throw new TypeError("iterator must be a function");arguments.length<3&&(o=this),"[object Array]"===toString.call(r)?forEachArray(r,t,o):"string"==typeof r?forEachString(r,t,o):forEachObject(r,t,o)}function forEachArray(r,t,o){for(var n=0,a=r.length;n<a;n++)hasOwnProperty.call(r,n)&&t.call(o,r[n],n,r)}function forEachString(r,t,o){for(var n=0,a=r.length;n<a;n++)t.call(o,r.charAt(n),n,r)}function forEachObject(r,t,o){for(var n in r)hasOwnProperty.call(r,n)&&t.call(o,r[n],n,r)}var isFunction=require("is-function");module.exports=forEach;var toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty;
},{"ms":37}],32:[function(require,module,exports){
"use strict";var isCallable=require("is-callable"),toStr=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,forEachArray=function(r,t,a){for(var o=0,l=r.length;o<l;o++)hasOwnProperty.call(r,o)&&(null==a?t(r[o],o,r):t.call(a,r[o],o,r))},forEachString=function(r,t,a){for(var o=0,l=r.length;o<l;o++)null==a?t(r.charAt(o),o,r):t.call(a,r.charAt(o),o,r)},forEachObject=function(r,t,a){for(var o in r)hasOwnProperty.call(r,o)&&(null==a?t(r[o],o,r):t.call(a,r[o],o,r))},forEach=function(r,t,a){if(!isCallable(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=a),"[object Array]"===toStr.call(r)?forEachArray(r,t,o):"string"==typeof r?forEachString(r,t,o):forEachObject(r,t,o)};module.exports=forEach;
},{"is-function":34}],33:[function(require,module,exports){
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};exports.default=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=Boolean(t.sorted),o=Boolean(t.skipIndex),r=Boolean(t.ignorenull),u=function(n){return String(n).replace(/(?:[\0-\x1F"-&\+-\}\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,encodeURIComponent).replace(/ /g,"+").replace(/[!'()~\*]/g,function(n){return"%"+n.charCodeAt().toString(16).slice(-2).toUpperCase()})},i=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(n);return e?t.sort():t},c=function(n){return n.filter(function(n){return n}).join("&")},l=function(n,t){return c(i(t).map(function(e){return F(n+"["+e+"]",t[e])}))},f=function(n,t){return t.length?c(t.map(function(t,e){return o?F(n+"[]",t):F(n+"["+e+"]",t)})):u(n+"[]")},F=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0===t?"undefined":_typeof(t),o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t===o?o=r?o:u(n)+"="+o:/string|number|boolean/.test(e)?o=u(n)+"="+u(t):Array.isArray(t)?o=f(n,t):"object"===e&&(o=l(n,t)),o};return n&&c(i(n).map(function(t){return F(t,n[t])}))};
},{"is-callable":34}],33:[function(require,module,exports){
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};module.exports=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Boolean(t.sorted),e=Boolean(t.skipIndex),r=Boolean(t.ignorenull),u=function(n){return String(n).replace(/(?:[\0-\x1F"-&\+-\}\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,encodeURIComponent).replace(/ /g,"+").replace(/[!'()~\*]/g,function(n){return"%"+n.charCodeAt().toString(16).slice(-2).toUpperCase()})},i=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(n);return o?t.sort():t},c=function(n){return n.filter(function(n){return n}).join("&")},l=function(n,t){return c(i(t).map(function(o){return F(n+"["+o+"]",t[o])}))},f=function(n,t){return t.length?c(t.map(function(t,o){return F(e?n+"[]":n+"["+o+"]",t)})):u(n+"[]")},F=function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0===t?"undefined":_typeof(t),e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t===e?e=r?e:u(n)+"="+e:/string|number|boolean/.test(o)?e=u(n)+"="+u(t):Array.isArray(t)?e=f(n,t):"object"===o&&(e=l(n,t)),e};return n&&c(i(n).map(function(t){return F(t,n[t])}))};
},{}],34:[function(require,module,exports){
function isFunction(o){var t=toString.call(o);return"[object Function]"===t||"function"==typeof o&&"[object RegExp]"!==t||"undefined"!=typeof window&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}module.exports=isFunction;var toString=Object.prototype.toString;
"use strict";var fnToStr=Function.prototype.toString,constructorRegex=/^\s*class\b/,isES6ClassFn=function(t){try{var n=fnToStr.call(t);return constructorRegex.test(n)}catch(t){return!1}},tryFunctionObject=function(t){try{return!isES6ClassFn(t)&&(fnToStr.call(t),!0)}catch(t){return!1}},toStr=Object.prototype.toString,fnClass="[object Function]",genClass="[object GeneratorFunction]",hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(hasToStringTag)return tryFunctionObject(t);if(isES6ClassFn(t))return!1;var n=toStr.call(t);return n===fnClass||n===genClass};
},{}],35:[function(require,module,exports){
"use strict";function isObjectObject(t){return!0===isObject(t)&&"[object Object]"===Object.prototype.toString.call(t)}var isObject=require("isobject");module.exports=function(t){var e,c;return!1!==isObjectObject(t)&&("function"==typeof(e=t.constructor)&&(c=e.prototype,!1!==isObjectObject(c)&&!1!==c.hasOwnProperty("isPrototypeOf")))};
"use strict";var isObject=require("isobject");function isObjectObject(t){return!0===isObject(t)&&"[object Object]"===Object.prototype.toString.call(t)}module.exports=function(t){var e,c;return!1!==isObjectObject(t)&&("function"==typeof(e=t.constructor)&&(!1!==isObjectObject(c=e.prototype)&&!1!==c.hasOwnProperty("isPrototypeOf")))};

@@ -118,34 +118,37 @@ },{"isobject":36}],36:[function(require,module,exports){

},{}],37:[function(require,module,exports){
module.exports=function(){var n=[];return{subscribe:function(u){return n.push(u),function(){var r=n.indexOf(u);r>-1&&n.splice(r,1)}},publish:function(){for(var u=0;u<n.length;u++)n[u].apply(null,arguments)}}};
var s=1e3,m=60*s,h=60*m,d=24*h,y=365.25*d;function parse(e){if(!((e=String(e)).length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var a=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*y;case"days":case"day":case"d":return a*d;case"hours":case"hour":case"hrs":case"hr":case"h":return a*h;case"minutes":case"minute":case"mins":case"min":case"m":return a*m;case"seconds":case"second":case"secs":case"sec":case"s":return a*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function fmtShort(e){return e>=d?Math.round(e/d)+"d":e>=h?Math.round(e/h)+"h":e>=m?Math.round(e/m)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function fmtLong(e){return plural(e,d,"day")||plural(e,h,"hour")||plural(e,m,"minute")||plural(e,s,"second")||e+" ms"}function plural(s,e,r){if(!(s<e))return s<1.5*e?Math.floor(s/e)+" "+r:Math.ceil(s/e)+" "+r+"s"}module.exports=function(s,e){e=e||{};var r=typeof s;if("string"===r&&s.length>0)return parse(s);if("number"===r&&!1===isNaN(s))return e.long?fmtLong(s):fmtShort(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};
},{}],38:[function(require,module,exports){
"use strict";function toObject(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=shouldUseNative()?Object.assign:function(e,r){for(var t,n,o=toObject(e),a=1;a<arguments.length;a++){t=Object(arguments[a]);for(var s in t)hasOwnProperty.call(t,s)&&(o[s]=t[s]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(t);for(var c=0;c<n.length;c++)propIsEnumerable.call(t,n[c])&&(o[n[c]]=t[n[c]])}}return o};
module.exports=function(){var n=[];return{subscribe:function(u){return n.push(u),function(){var r=n.indexOf(u);r>-1&&n.splice(r,1)}},publish:function(){for(var u=0;u<n.length;u++)n[u].apply(null,arguments)}}};
},{}],39:[function(require,module,exports){
"use strict";var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}module.exports=shouldUseNative()?Object.assign:function(e,r){for(var t,n,o=toObject(e),a=1;a<arguments.length;a++){for(var s in t=Object(arguments[a]))hasOwnProperty.call(t,s)&&(o[s]=t[s]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(t);for(var c=0;c<n.length;c++)propIsEnumerable.call(t,n[c])&&(o[n[c]]=t[n[c]])}}return o};
},{}],40:[function(require,module,exports){
var trim=require("trim"),forEach=require("for-each"),isArray=function(r){return"[object Array]"===Object.prototype.toString.call(r)};module.exports=function(r){if(!r)return{};var t={};return forEach(trim(r).split("\n"),function(r){var i=r.indexOf(":"),e=trim(r.slice(0,i)).toLowerCase(),o=trim(r.slice(i+1));void 0===t[e]?t[e]=o:isArray(t[e])?t[e].push(o):t[e]=[t[e],o]}),t};
},{"for-each":32,"trim":45}],40:[function(require,module,exports){
function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex<t;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,t=queue.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}var process=module.exports={},cachedSetTimeout,cachedClearTimeout;!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var queue=[],draining=!1,currentQueue,queueIndex=-1;process.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)t[u-1]=arguments[u];queue.push(new Item(e,t)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};
},{"for-each":32,"trim":46}],41:[function(require,module,exports){
var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex<t;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,t=queue.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}process.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];queue.push(new Item(e,t)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(e){return[]},process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};
},{}],41:[function(require,module,exports){
"use strict";function decode(e){return decodeURIComponent(e.replace(/\+/g," "))}function querystring(e){for(var r,n=/([^=?&]+)=?([^&]*)/g,t={};r=n.exec(e);t[decode(r[1])]=decode(r[2]));return t}function querystringify(e,r){var n=[];"string"!=typeof(r=r||"")&&(r="?");for(var t in e)has.call(e,t)&&n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return n.length?r+n.join("&"):""}var has=Object.prototype.hasOwnProperty;exports.stringify=querystringify,exports.parse=querystring;
},{}],42:[function(require,module,exports){
"use strict";var undef,has=Object.prototype.hasOwnProperty;function decode(e){return decodeURIComponent(e.replace(/\+/g," "))}function querystring(e){for(var n,r=/([^=?&]+)=?([^&]*)/g,t={};n=r.exec(e);){var o=decode(n[1]),i=decode(n[2]);o in t||(t[o]=i)}return t}function querystringify(e,n){n=n||"";var r,t,o=[];for(t in"string"!=typeof n&&(n="?"),e)has.call(e,t)&&((r=e[t])||null!==r&&r!==undef&&!isNaN(r)||(r=""),o.push(encodeURIComponent(t)+"="+encodeURIComponent(r)));return o.length?n+o.join("&"):""}exports.stringify=querystringify,exports.parse=querystring;
},{}],42:[function(require,module,exports){
},{}],43:[function(require,module,exports){
"use strict";module.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e};
},{}],43:[function(require,module,exports){
},{}],44:[function(require,module,exports){
"use strict";var url=require("url");module.exports=function(o,r,t){if(o===r)return!0;var p=url.parse(o,!1,!0),e=url.parse(r,!1,!0),s=0|p.port||("https"===p.protocol?443:80),u=0|e.port||("https"===e.protocol?443:80),l={proto:p.protocol===e.protocol,hostname:p.hostname===e.hostname,port:s===u};return l.proto&&l.hostname&&(l.port||t)};
},{"url":44}],44:[function(require,module,exports){
},{"url":45}],45:[function(require,module,exports){
"use strict";var regex=/^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;module.exports={regex:regex,parse:function(e){var o=regex.exec(e);return o?{protocol:(o[1]||"").toLowerCase()||void 0,hostname:(o[5]||"").toLowerCase()||void 0,port:o[6]||void 0}:{}}};
},{}],45:[function(require,module,exports){
},{}],46:[function(require,module,exports){
function trim(r){return r.replace(/^\s*|\s*$/g,"")}exports=module.exports=trim,exports.left=function(r){return r.replace(/^\s*/,"")},exports.right=function(r){return r.replace(/\s*$/,"")};
},{}],46:[function(require,module,exports){
},{}],47:[function(require,module,exports){
(function (global){
"use strict";function lolcation(e){var o,t={},r=typeof(e=e||global.location||{});if("blob:"===e.protocol)t=new URL(unescape(e.pathname),{});else if("string"===r){t=new URL(e,{});for(o in ignore)delete t[o]}else if("object"===r){for(o in e)o in ignore||(t[o]=e[o]);void 0===t.slashes&&(t.slashes=slashes.test(e.href))}return t}function extractProtocol(e){var o=protocolre.exec(e);return{protocol:o[1]?o[1].toLowerCase():"",slashes:!!o[2],rest:o[3]}}function resolve(e,o){for(var t=(o||"/").split("/").slice(0,-1).concat(e.split("/")),r=t.length,s=t[r-1],a=!1,n=0;r--;)"."===t[r]?t.splice(r,1):".."===t[r]?(t.splice(r,1),n++):n&&(0===r&&(a=!0),t.splice(r,1),n--);return a&&t.unshift(""),"."!==s&&".."!==s||t.push(""),t.join("/")}function URL(e,o,t){if(!(this instanceof URL))return new URL(e,o,t);var r,s,a,n,l,i,h=rules.slice(),c=typeof o,p=this,u=0;for("object"!==c&&"string"!==c&&(t=o,o=null),t&&"function"!=typeof t&&(t=qs.parse),o=lolcation(o),r=!(s=extractProtocol(e||"")).protocol&&!s.slashes,p.slashes=s.slashes||r&&o.slashes,p.protocol=s.protocol||o.protocol||"",e=s.rest,s.slashes||(h[2]=[/(.*)/,"pathname"]);u<h.length;u++)a=(n=h[u])[0],i=n[1],a!==a?p[i]=e:"string"==typeof a?~(l=e.indexOf(a))&&("number"==typeof n[2]?(p[i]=e.slice(0,l),e=e.slice(l+n[2])):(p[i]=e.slice(l),e=e.slice(0,l))):(l=a.exec(e))&&(p[i]=l[1],e=e.slice(0,l.index)),p[i]=p[i]||(r&&n[3]?o[i]||"":""),n[4]&&(p[i]=p[i].toLowerCase());t&&(p.query=t(p.query)),r&&o.slashes&&"/"!==p.pathname.charAt(0)&&(""!==p.pathname||""!==o.pathname)&&(p.pathname=resolve(p.pathname,o.pathname)),required(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(n=p.auth.split(":"),p.username=n[0]||"",p.password=n[1]||""),p.origin=p.protocol&&p.host&&"file:"!==p.protocol?p.protocol+"//"+p.host:"null",p.href=p.toString()}function set(e,o,t){var r=this;switch(e){case"query":"string"==typeof o&&o.length&&(o=(t||qs.parse)(o)),r[e]=o;break;case"port":r[e]=o,required(o,r.protocol)?o&&(r.host=r.hostname+":"+o):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=o,r.port&&(o+=":"+r.port),r.host=o;break;case"host":r[e]=o,/:\d+$/.test(o)?(o=o.split(":"),r.port=o.pop(),r.hostname=o.join(":")):(r.hostname=o,r.port="");break;case"protocol":r.protocol=o.toLowerCase(),r.slashes=!t;break;case"pathname":r.pathname=o.length&&"/"!==o.charAt(0)?"/"+o:o;break;default:r[e]=o}for(var s=0;s<rules.length;s++){var a=rules[s];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function toString(e){e&&"function"==typeof e||(e=qs.stringify);var o,t=this,r=t.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var s=r+(t.slashes?"//":"");return t.username&&(s+=t.username,t.password&&(s+=":"+t.password),s+="@"),s+=t.host+t.pathname,(o="object"==typeof t.query?e(t.query):t.query)&&(s+="?"!==o.charAt(0)?"?"+o:o),t.hash&&(s+=t.hash),s}var required=require("requires-port"),qs=require("querystringify"),protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,rules=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};URL.prototype={set:set,toString:toString},URL.extractProtocol=extractProtocol,URL.location=lolcation,URL.qs=qs,module.exports=URL;
"use strict";var required=require("requires-port"),qs=require("querystringify"),protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,rules=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(e){var o,t=("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).location||{},r={},s=typeof(e=e||t);if("blob:"===e.protocol)r=new Url(unescape(e.pathname),{});else if("string"===s)for(o in r=new Url(e,{}),ignore)delete r[o];else if("object"===s){for(o in e)o in ignore||(r[o]=e[o]);void 0===r.slashes&&(r.slashes=slashes.test(e.href))}return r}function extractProtocol(e){var o=protocolre.exec(e);return{protocol:o[1]?o[1].toLowerCase():"",slashes:!!o[2],rest:o[3]}}function resolve(e,o){for(var t=(o||"/").split("/").slice(0,-1).concat(e.split("/")),r=t.length,s=t[r-1],a=!1,n=0;r--;)"."===t[r]?t.splice(r,1):".."===t[r]?(t.splice(r,1),n++):n&&(0===r&&(a=!0),t.splice(r,1),n--);return a&&t.unshift(""),"."!==s&&".."!==s||t.push(""),t.join("/")}function Url(e,o,t){if(!(this instanceof Url))return new Url(e,o,t);var r,s,a,n,l,i,c=rules.slice(),h=typeof o,p=this,u=0;for("object"!==h&&"string"!==h&&(t=o,o=null),t&&"function"!=typeof t&&(t=qs.parse),o=lolcation(o),r=!(s=extractProtocol(e||"")).protocol&&!s.slashes,p.slashes=s.slashes||r&&o.slashes,p.protocol=s.protocol||o.protocol||"",e=s.rest,s.slashes||(c[3]=[/(.*)/,"pathname"]);u<c.length;u++)"function"!=typeof(n=c[u])?(a=n[0],i=n[1],a!=a?p[i]=e:"string"==typeof a?~(l=e.indexOf(a))&&("number"==typeof n[2]?(p[i]=e.slice(0,l),e=e.slice(l+n[2])):(p[i]=e.slice(l),e=e.slice(0,l))):(l=a.exec(e))&&(p[i]=l[1],e=e.slice(0,l.index)),p[i]=p[i]||r&&n[3]&&o[i]||"",n[4]&&(p[i]=p[i].toLowerCase())):e=n(e);t&&(p.query=t(p.query)),r&&o.slashes&&"/"!==p.pathname.charAt(0)&&(""!==p.pathname||""!==o.pathname)&&(p.pathname=resolve(p.pathname,o.pathname)),required(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(n=p.auth.split(":"),p.username=n[0]||"",p.password=n[1]||""),p.origin=p.protocol&&p.host&&"file:"!==p.protocol?p.protocol+"//"+p.host:"null",p.href=p.toString()}function set(e,o,t){var r=this;switch(e){case"query":"string"==typeof o&&o.length&&(o=(t||qs.parse)(o)),r[e]=o;break;case"port":r[e]=o,required(o,r.protocol)?o&&(r.host=r.hostname+":"+o):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=o,r.port&&(o+=":"+r.port),r.host=o;break;case"host":r[e]=o,/:\d+$/.test(o)?(o=o.split(":"),r.port=o.pop(),r.hostname=o.join(":")):(r.hostname=o,r.port="");break;case"protocol":r.protocol=o.toLowerCase(),r.slashes=!t;break;case"pathname":case"hash":if(o){var s="pathname"===e?"/":"#";r[e]=o.charAt(0)!==s?s+o:o}else r[e]=o;break;default:r[e]=o}for(var a=0;a<rules.length;a++){var n=rules[a];n[4]&&(r[n[1]]=r[n[1]].toLowerCase())}return r.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function toString(e){e&&"function"==typeof e||(e=qs.stringify);var o,t=this,r=t.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var s=r+(t.slashes?"//":"");return t.username&&(s+=t.username,t.password&&(s+=":"+t.password),s+="@"),s+=t.host+t.pathname,(o="object"==typeof t.query?e(t.query):t.query)&&(s+="?"!==o.charAt(0)?"?"+o:o),t.hash&&(s+=t.hash),s}Url.prototype={set:set,toString:toString},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.qs=qs,module.exports=Url;
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"querystringify":41,"requires-port":42}]},{},[1])(1)
});
},{"querystringify":42,"requires-port":43}]},{},[1])(1)
});

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

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).getIt=e()}}(function(){return function e(t,r,n){function o(i,u){if(!r[i]){if(!t[i]){var a="function"==typeof require&&require;if(!u&&a)return a(i,!0);if(s)return s(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[i]={exports:{}};t[i][0].call(l.exports,function(e){var r=t[i][1][e];return o(r||e)},l,l.exports,e,t,r,n)}return r[i].exports}for(var s="function"==typeof require&&require,i=0;i<n.length;i++)o(n[i]);return o}({1:[function(e,t,r){"use strict";var n=e("./index");n.middleware=e("./middleware"),t.exports=n},{"./index":2,"./middleware":12}],2:[function(e,t,r){"use strict";var n=e("nano-pubsub"),o=e("./util/middlewareReducer"),s=e("./middleware/defaultOptionsProcessor"),i=e("./middleware/defaultOptionsValidator"),u=e("./request"),a=["request","response","progress","error","abort"],c=["processOptions","validateOptions","interceptRequest","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function e(){function t(e){function t(e,t,n){var o=e,i=t;if(!o)try{i=s("onResponse",t,n)}catch(e){i=null,o=e}(o=o&&s("onError",o,n))?r.error.publish(o):i&&r.response.publish(i)}var r=a.reduce(function(e,t){return e[t]=n(),e},{}),s=o(f),i=s("processOptions",e);s("validateOptions",i);var c={options:i,channels:r,applyMiddleware:s},l=null,p=r.request.subscribe(function(e){l=u(e,function(r,n){return t(r,n,e)})});r.abort.subscribe(function(){p(),l&&l.abort()});var d=s("onReturn",r,c);return d===r&&r.request.publish(c),d}var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=[],f=c.reduce(function(e,t){return e[t]=e[t]||[],e},{processOptions:[s],validateOptions:[i]});return t.use=function(e){if(!e)throw new Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&f.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return c.forEach(function(t){e[t]&&f[t].push(e[t])}),l.push(e),t},t.clone=function(){return e(l)},r.forEach(t.use),t}},{"./middleware/defaultOptionsProcessor":8,"./middleware/defaultOptionsValidator":9,"./request":23,"./util/middlewareReducer":26,"nano-pubsub":37}],3:[function(e,t,r){"use strict";var n=e("object-assign"),o=/^\//,s=/\/$/;t.exports=function(e){var t=e.replace(s,"");return{processOptions:function(e){if(/^https?:\/\//i.test(e.url))return e;var r=[t,e.url.replace(o,"")].join("/");return n({},e,{url:r})}}}},{"object-assign":38}],4:[function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},{}],5:[function(e,t,r){"use strict";function n(e){var t=this;if("function"!=typeof e)throw new TypeError("executor must be a function.");var r=null;this.promise=new Promise(function(e){r=e}),e(function(e){t.reason||(t.reason=new o(e),r(t.reason))})}var o=e("./Cancel");n.source=function(){var e=void 0;return{token:new n(function(t){e=t}),cancel:e}},t.exports=n},{"./Cancel":4}],6:[function(e,t,r){"use strict";t.exports=function(e){return!(!e||!e.__CANCEL__)}},{}],7:[function(e,t,r){"use strict";function n(e){return-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?o(e.body):e.body}function o(e){try{var t="string"==typeof e?JSON.parse(e):e;return JSON.stringify(t,null,2)}catch(t){return e}}var s=e("debug"),i=["Cookie","Authorization"],u=Object.prototype.hasOwnProperty,a=function(e,t){var r={};for(var n in e)u.call(e,n)&&(r[n]=t.indexOf(n)>-1?"<redacted>":e[n]);return r};t.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.verbose,r=e.namespace||"get-it",o=s(r),u=e.log||o,c=u===o&&!s.enabled(r),l=0;return{processOptions:function(e){return e.requestId=e.requestId||++l,e},onRequest:function(r){if(c||!r)return r;var n=r.options;if(u("[%s] HTTP %s %s",n.requestId,n.method,n.url),t&&n.body&&"string"==typeof n.body&&u("[%s] Request body: %s",n.requestId,n.body),t&&n.headers){var o=!1===e.redactSensitiveHeaders?n.headers:a(n.headers,i);u("[%s] Request headers: %s",n.requestId,JSON.stringify(o,null,2))}return r},onResponse:function(e,r){if(c||!e)return e;var o=r.options.requestId;return u("[%s] Response code: %s %s",o,e.statusCode,e.statusMessage),t&&e.body&&u("[%s] Response body: %s",o,n(e)),e},onError:function(e,t){var r=t.options.requestId;return e?(u("[%s] ERROR: %s",r,e.message),e):(u("[%s] Error encountered, but handled by an earlier middleware",r),e)}}}},{debug:30}],8:[function(e,t,r){"use strict";function n(e){function t(e,n){Array.isArray(n)?n.forEach(function(r){return t(e,r)}):r.push([e,n].map(encodeURIComponent).join("="))}var r=[];for(var n in e)c.call(e,n)&&t(n,e[n]);return r.length?r.join("&"):""}function o(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;var t=Number(e);return isNaN(t)?o(l.timeout):{connect:t,socket:t}}function s(e){var t={};for(var r in e)void 0!==e[r]&&(t[r]=e[r]);return t}var i=e("object-assign"),u=e("url-parse"),a="undefined"!=typeof navigator&&"ReactNative"===navigator.product,c=Object.prototype.hasOwnProperty,l={timeout:a?6e4:12e4};t.exports=function(e){var t="string"==typeof e?i({url:e},l):i({},l,e),r=u(t.url,{},!0);return t.timeout=o(t.timeout),t.query&&(r.query=i({},r.query,s(t.query))),t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t.url=r.toString(n),t}},{"object-assign":38,"url-parse":46}],9:[function(e,t,r){"use strict";var n=/^https?:\/\//i;t.exports=function(e){if(!n.test(e.url))throw new Error('"'+e.url+'" is not a valid URL')}},{}],10:[function(e,t,r){"use strict";var n=e("object-assign");t.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{processOptions:function(r){var o=r.headers||{};return r.headers=t.override?n({},o,e):n({},e,o),r}}}},{"object-assign":38}],11:[function(e,t,r){"use strict";var n=e("create-error-class")("HttpError",function(e,t){this.message=(e.method+"-request to "+e.url+" resulted in HTTP "+e.statusCode+" "+e.statusMessage).trim(),this.response=e,this.request=t.options});t.exports=function(){return{onResponse:function(e,t){if(!(e.statusCode>=400))return e;throw new n(e,t)}}}},{"create-error-class":28}],12:[function(e,t,r){"use strict";r.base=e("./base"),r.debug=e("./debug"),r.jsonRequest=e("./jsonRequest"),r.jsonResponse=e("./jsonResponse"),r.httpErrors=e("./httpErrors"),r.retry=e("./retry"),r.promise=e("./promise"),r.observable=e("./observable"),r.progress=e("./progress"),r.headers=e("./headers"),r.injectResponse=e("./injectResponse"),r.urlEncoded=e("./urlEncoded")},{"./base":3,"./debug":7,"./headers":10,"./httpErrors":11,"./injectResponse":13,"./jsonRequest":14,"./jsonResponse":15,"./observable":16,"./progress":18,"./promise":19,"./retry":20,"./urlEncoded":21}],13:[function(e,t,r){"use strict";var n=e("object-assign");t.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("function"!=typeof e.inject)throw new Error("`injectResponse` middleware requires a `inject` function");return{interceptRequest:function(t,r){var o=e.inject(r,t);if(!o)return t;var s=r.context.options;return n({},{body:"",url:s.url,method:s.method,headers:{},statusCode:200,statusMessage:"OK"},o)}}}},{"object-assign":38}],14:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=e("object-assign"),s=e("is-plain-object"),i=["boolean","string","number"],u=function(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)};t.exports=function(){return{processOptions:function(e){var t=e.body;return t&&"function"!=typeof t.pipe&&!u(t)&&(-1!==i.indexOf(void 0===t?"undefined":n(t))||Array.isArray(t)||s(t))?o({},e,{body:JSON.stringify(e.body),headers:o({},e.headers,{"Content-Type":"application/json"})}):e}}}},{"is-plain-object":35,"object-assign":38}],15:[function(e,t,r){"use strict";function n(e){try{return JSON.parse(e)}catch(e){throw e.message="Failed to parsed response body as JSON: "+e.message,e}}var o=e("object-assign");t.exports=function(e){return{onResponse:function(t){var r=t.headers["content-type"]||"",s=e&&e.force||-1!==r.indexOf("application/json");return t.body&&r&&s?o({},t,{body:n(t.body)}):t},processOptions:function(e){return o({},e,{headers:o({Accept:"application/json"},e.headers)})}}}},{"object-assign":38}],16:[function(e,t,r){"use strict";var n=e("../util/global"),o=e("object-assign");t.exports=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).implementation||n.Observable;if(!e)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(t,r){return new e(function(e){return t.error.subscribe(function(t){return e.error(t)}),t.progress.subscribe(function(t){return e.next(o({type:"progress"},t))}),t.response.subscribe(function(t){e.next(o({type:"response"},t)),e.complete()}),t.request.publish(r),function(){return t.abort.publish()}})}}}},{"../util/global":25,"object-assign":38}],17:[function(e,t,r){"use strict";t.exports=function(){return{onRequest:function(e){function t(e){return function(t){var r=t.lengthComputable?t.loaded/t.total*100:-1;n.channels.progress.publish({stage:e,percent:r,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}if("xhr"===e.adapter){var r=e.request,n=e.context;"upload"in r&&"onprogress"in r.upload&&(r.upload.onprogress=t("upload")),"onprogress"in r&&(r.onprogress=t("download"))}}}}},{}],18:[function(e,t,r){"use strict";t.exports=e("./node-progress")},{"./node-progress":17}],19:[function(e,t,r){"use strict";var n=e("../util/global"),o=e("./cancel/Cancel"),s=e("./cancel/CancelToken"),i=e("./cancel/isCancel"),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.implementation||n.Promise;if(!t)throw new Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:function(r,n){return new t(function(t,o){var s=n.options.cancelToken;s&&s.promise.then(function(e){r.abort.publish(e),o(e)}),r.error.subscribe(o),r.response.subscribe(function(r){t(e.onlyBody?r.body:r)}),setTimeout(function(){return r.request.publish(n)},0)})}}};u.Cancel=o,u.CancelToken=s,u.isCancel=i,t.exports=u},{"../util/global":25,"./cancel/Cancel":4,"./cancel/CancelToken":5,"./cancel/isCancel":6}],20:[function(e,t,r){"use strict";function n(e){return 100*Math.pow(2,e)+100*Math.random()}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=e("object-assign"),i=e("../util/node-shouldRetry"),u=function(e){return null!==e&&"object"===(void 0===e?"undefined":o(e))&&"function"==typeof e.pipe},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.maxRetries||5,r=e.retryDelay||n,o=e.shouldRetry||i;return{onError:function(e,n){var i=n.options,a=i.maxRetries||t,c=i.shouldRetry||o,l=i.attemptNumber||0;if(u(i.body))return e;if(!c(e,l,i)||l>=a)return e;var f=s({},n,{options:s({},i,{attemptNumber:l+1})});return setTimeout(function(){return n.channels.request.publish(f)},r(l)),null}}};a.shouldRetry=i,t.exports=a},{"../util/node-shouldRetry":24,"object-assign":38}],21:[function(e,t,r){"use strict";var n=e("object-assign"),o=e("is-plain-object"),s=e("form-urlencoded"),i=s.default||s,u=function(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)};t.exports=function(){return{processOptions:function(e){var t=e.body;return t&&"function"!=typeof t.pipe&&!u(t)&&o(t)?n({},e,{body:i(e.body),headers:n({},e.headers,{"Content-Type":"application/x-www-form-urlencoded"})}):e}}}},{"form-urlencoded":33,"is-plain-object":35,"object-assign":38}],22:[function(e,t,r){"use strict";var n=e("same-origin"),o=e("parse-headers"),s=window,i=s.XMLHttpRequest||function(){},u="withCredentials"in new i?i:s.XDomainRequest;t.exports=function(e,t){function r(t){O=!0,g.abort();var r=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+d.url:"Connection timed out on request to "+d.url);r.code=t,e.channels.error.publish(r)}function a(){q&&(c(),h.socket=setTimeout(function(){return r("ESOCKETTIMEDOUT")},q.socket))}function c(){(x||g.readyState>=2&&h.connect)&&clearTimeout(h.connect),h.socket&&clearTimeout(h.socket)}function l(){if(!j){c(),j=!0,g=null;var e=new Error("Network error while attempting to reach "+d.url);e.isNetworkError=!0,e.request=d,t(e)}}function f(){var e=g.status,t=g.statusText;if(v&&void 0===e)e=200;else{if(e>12e3&&e<12156)return l();e=1223===g.status?204:g.status,t=1223===g.status?"No Content":t}return{body:g.response||g.responseText,url:d.url,method:d.method,headers:v?{}:o(g.getAllResponseHeaders()),statusCode:e,statusMessage:t}}function p(){x||j||O||(0!==g.status?(c(),j=!0,t(null,f())):l(new Error("Unknown XHR error")))}var d=e.options,h={},y=s&&s.location&&!n(s.location.href,d.url),b=e.applyMiddleware("interceptRequest",void 0,{adapter:"xhr",context:e});if(b){var m=setTimeout(t,0,null,b);return{abort:function(){return clearTimeout(m)}}}var g=y?new u:new i,v=s.XDomainRequest&&g instanceof s.XDomainRequest,w=d.headers,x=!1,j=!1,O=!1;if(g.onerror=l,g.ontimeout=l,g.onabort=function(){x=!0},g.onprogress=function(){},g[v?"onload":"onreadystatechange"]=function(){a(),x||4!==g.readyState&&!v||0!==g.status&&p()},g.open(d.method,d.url,!0),g.withCredentials=!!d.withCredentials,w&&g.setRequestHeader)for(var E in w)w.hasOwnProperty(E)&&g.setRequestHeader(E,w[E]);else if(w&&v)throw new Error("Headers cannot be set on an XDomainRequest object");d.rawBody&&(g.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:d,adapter:"xhr",request:g,context:e}),g.send(d.body||null);var q=d.timeout;return q&&(h.connect=setTimeout(function(){return r("ETIMEDOUT")},q.connect)),{abort:function(){x=!0,g&&g.abort()}}}},{"parse-headers":39,"same-origin":43}],23:[function(e,t,r){"use strict";t.exports=e("./node-request")},{"./node-request":22}],24:[function(e,t,r){"use strict";t.exports=function(e,t,r){return("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1)}},{}],25:[function(e,t,r){(function(e){"use strict";"undefined"!=typeof window?t.exports=window:void 0!==e?t.exports=e:"undefined"!=typeof self?t.exports=self:t.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],26:[function(e,t,r){"use strict";t.exports=function(e){return function(t,r){for(var n=arguments.length,o=Array(n>2?n-2:0),s=2;s<n;s++)o[s-2]=arguments[s];return e[t].reduce(function(e,t){return t.apply(void 0,[e].concat(o))},r)}}},{}],27:[function(e,t,r){"use strict";t.exports=Error.captureStackTrace||function(e){var t=new Error;Object.defineProperty(e,"stack",{configurable:!0,get:function(){var e=t.stack;return Object.defineProperty(this,"stack",{value:e}),e}})}},{}],28:[function(e,t,r){"use strict";function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}var o=e("capture-stack-trace");t.exports=function(e,t){if("string"!=typeof e)throw new TypeError("Expected className to be a string");if(/[^0-9a-zA-Z_$]/.test(e))throw new Error("className contains invalid characters");t=t||function(e){this.message=e};var r=function(){Object.defineProperty(this,"name",{configurable:!0,value:e,writable:!0}),o(this,this.constructor),t.apply(this,arguments)};return n(r,Error),r}},{"capture-stack-trace":27}],29:[function(e,t,r){function n(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*f;case"days":case"day":case"d":return r*l;case"hours":case"hour":case"hrs":case"hr":case"h":return r*c;case"minutes":case"minute":case"mins":case"min":case"m":return r*a;case"seconds":case"second":case"secs":case"sec":case"s":return r*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function o(e){return e>=l?Math.round(e/l)+"d":e>=c?Math.round(e/c)+"h":e>=a?Math.round(e/a)+"m":e>=u?Math.round(e/u)+"s":e+"ms"}function s(e){return i(e,l,"day")||i(e,c,"hour")||i(e,a,"minute")||i(e,u,"second")||e+" ms"}function i(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var u=1e3,a=60*u,c=60*a,l=24*c,f=365.25*l;t.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return n(e);if("number"===r&&!1===isNaN(e))return t.long?s(e):o(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],30:[function(e,t,r){(function(n){function o(){var e;try{e=r.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}(r=t.exports=e("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(s=o))}),e.splice(s,0,n)}},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(e){}},r.load=o,r.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(o())}).call(this,e("_process"))},{"./debug":31,_process:40}],31:[function(e,t,r){function n(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return r.colors[Math.abs(n)%r.colors.length]}function o(e){function t(){if(t.enabled){var e=t,n=+new Date,o=n-(s||n);e.diff=o,e.prev=s,e.curr=n,s=n;for(var i=new Array(arguments.length),u=0;u<i.length;u++)i[u]=arguments[u];i[0]=r.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,n){if("%%"===t)return t;a++;var o=r.formatters[n];if("function"==typeof o){var s=i[a];t=o.call(e,s),i.splice(a,1),a--}return t}),r.formatArgs.call(e,i),(t.log||r.log||console.log.bind(console)).apply(e,i)}}return t.namespace=e,t.enabled=r.enabled(e),t.useColors=r.useColors(),t.color=n(e),"function"==typeof r.init&&r.init(t),t}(r=t.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){r.enable("")},r.enable=function(e){r.save(e),r.names=[],r.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),n=t.length,o=0;o<n;o++)t[o]&&("-"===(e=t[o].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")))},r.enabled=function(e){var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=e("ms"),r.names=[],r.skips=[],r.formatters={};var s},{ms:29}],32:[function(e,t,r){function n(e,t,r){for(var n=0,o=e.length;n<o;n++)a.call(e,n)&&t.call(r,e[n],n,e)}function o(e,t,r){for(var n=0,o=e.length;n<o;n++)t.call(r,e.charAt(n),n,e)}function s(e,t,r){for(var n in e)a.call(e,n)&&t.call(r,e[n],n,e)}var i=e("is-function");t.exports=function(e,t,r){if(!i(t))throw new TypeError("iterator must be a function");arguments.length<3&&(r=this),"[object Array]"===u.call(e)?n(e,t,r):"string"==typeof e?o(e,t,r):s(e,t,r)};var u=Object.prototype.toString,a=Object.prototype.hasOwnProperty},{"is-function":34}],33:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Boolean(t.sorted),o=Boolean(t.skipIndex),s=Boolean(t.ignorenull),i=function(e){return String(e).replace(/(?:[\0-\x1F"-&\+-\}\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,encodeURIComponent).replace(/ /g,"+").replace(/[!'()~\*]/g,function(e){return"%"+e.charCodeAt().toString(16).slice(-2).toUpperCase()})},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(e);return r?t.sort():t},a=function(e){return e.filter(function(e){return e}).join("&")},c=function(e,t){return a(u(t).map(function(r){return f(e+"["+r+"]",t[r])}))},l=function(e,t){return t.length?a(t.map(function(t,r){return o?f(e+"[]",t):f(e+"["+r+"]",t)})):i(e+"[]")},f=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0===t?"undefined":n(t),o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return t===o?o=s?o:i(e)+"="+o:/string|number|boolean/.test(r)?o=i(e)+"="+i(t):Array.isArray(t)?o=l(e,t):"object"===r&&(o=c(e,t)),o};return e&&a(u(e).map(function(t){return f(t,e[t])}))}},{}],34:[function(e,t,r){t.exports=function(e){var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},{}],35:[function(e,t,r){"use strict";function n(e){return!0===o(e)&&"[object Object]"===Object.prototype.toString.call(e)}var o=e("isobject");t.exports=function(e){var t,r;return!1!==n(e)&&"function"==typeof(t=e.constructor)&&(r=t.prototype,!1!==n(r)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},{isobject:36}],36:[function(e,t,r){"use strict";t.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},{}],37:[function(e,t,r){t.exports=function(){var e=[];return{subscribe:function(t){return e.push(t),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}},publish:function(){for(var t=0;t<e.length;t++)e[t].apply(null,arguments)}}}},{}],38:[function(e,t,r){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,u,a=n(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var l in r)s.call(r,l)&&(a[l]=r[l]);if(o){u=o(r);for(var f=0;f<u.length;f++)i.call(r,u[f])&&(a[u[f]]=r[u[f]])}}return a}},{}],39:[function(e,t,r){var n=e("trim"),o=e("for-each"),s=function(e){return"[object Array]"===Object.prototype.toString.call(e)};t.exports=function(e){if(!e)return{};var t={};return o(n(e).split("\n"),function(e){var r=e.indexOf(":"),o=n(e.slice(0,r)).toLowerCase(),i=n(e.slice(r+1));void 0===t[o]?t[o]=i:s(t[o])?t[o].push(i):t[o]=[t[o],i]}),t}},{"for-each":32,trim:45}],40:[function(e,t,r){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function u(){b&&h&&(b=!1,h.length?y=h.concat(y):m=-1,y.length&&a())}function a(){if(!b){var e=s(u);b=!0;for(var t=y.length;t;){for(h=y,y=[];++m<t;)h&&h[m].run();m=-1,t=y.length}h=null,b=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var f,p,d=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=n}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(e){p=o}}();var h,y=[],b=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];y.push(new c(e,t)),1!==y.length||b||s(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],41:[function(e,t,r){"use strict";function n(e){return decodeURIComponent(e.replace(/\+/g," "))}var o=Object.prototype.hasOwnProperty;r.stringify=function(e,t){var r=[];"string"!=typeof(t=t||"")&&(t="?");for(var n in e)o.call(e,n)&&r.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return r.length?t+r.join("&"):""},r.parse=function(e){for(var t,r=/([^=?&]+)=?([^&]*)/g,o={};t=r.exec(e);o[n(t[1])]=n(t[2]));return o}},{}],42:[function(e,t,r){"use strict";t.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},{}],43:[function(e,t,r){"use strict";var n=e("url");t.exports=function(e,t,r){if(e===t)return!0;var o=n.parse(e,!1,!0),s=n.parse(t,!1,!0),i=0|o.port||("https"===o.protocol?443:80),u=0|s.port||("https"===s.protocol?443:80),a={proto:o.protocol===s.protocol,hostname:o.hostname===s.hostname,port:i===u};return a.proto&&a.hostname&&(a.port||r)}},{url:44}],44:[function(e,t,r){"use strict";var n=/^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;t.exports={regex:n,parse:function(e){var t=n.exec(e);return t?{protocol:(t[1]||"").toLowerCase()||void 0,hostname:(t[5]||"").toLowerCase()||void 0,port:t[6]||void 0}:{}}}},{}],45:[function(e,t,r){(r=t.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},r.right=function(e){return e.replace(/\s*$/,"")}},{}],46:[function(e,t,r){(function(r){"use strict";function n(e){var t,n={},o=typeof(e=e||r.location||{});if("blob:"===e.protocol)n=new i(unescape(e.pathname),{});else if("string"===o){n=new i(e,{});for(t in p)delete n[t]}else if("object"===o){for(t in e)t in p||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=l.test(e.href))}return n}function o(e){var t=c.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function s(e,t){for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],s=!1,i=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),i++):i&&(0===n&&(s=!0),r.splice(n,1),i--);return s&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);var c,l,p,d,h,y,b=f.slice(),m=typeof t,g=this,v=0;for("object"!==m&&"string"!==m&&(r=t,t=null),r&&"function"!=typeof r&&(r=a.parse),t=n(t),c=!(l=o(e||"")).protocol&&!l.slashes,g.slashes=l.slashes||c&&t.slashes,g.protocol=l.protocol||t.protocol||"",e=l.rest,l.slashes||(b[2]=[/(.*)/,"pathname"]);v<b.length;v++)p=(d=b[v])[0],y=d[1],p!==p?g[y]=e:"string"==typeof p?~(h=e.indexOf(p))&&("number"==typeof d[2]?(g[y]=e.slice(0,h),e=e.slice(h+d[2])):(g[y]=e.slice(h),e=e.slice(0,h))):(h=p.exec(e))&&(g[y]=h[1],e=e.slice(0,h.index)),g[y]=g[y]||(c&&d[3]?t[y]||"":""),d[4]&&(g[y]=g[y].toLowerCase());r&&(g.query=r(g.query)),c&&t.slashes&&"/"!==g.pathname.charAt(0)&&(""!==g.pathname||""!==t.pathname)&&(g.pathname=s(g.pathname,t.pathname)),u(g.port,g.protocol)||(g.host=g.hostname,g.port=""),g.username=g.password="",g.auth&&(d=g.auth.split(":"),g.username=d[0]||"",g.password=d[1]||""),g.origin=g.protocol&&g.host&&"file:"!==g.protocol?g.protocol+"//"+g.host:"null",g.href=g.toString()}var u=e("requires-port"),a=e("querystringify"),c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,l=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,f=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};i.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||a.parse)(t)),n[e]=t;break;case"port":n[e]=t,u(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,/:\d+$/.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":n.pathname=t.length&&"/"!==t.charAt(0)?"/"+t:t;break;default:n[e]=t}for(var o=0;o<f.length;o++){var s=f[o];s[4]&&(n[s[1]]=n[s[1]].toLowerCase())}return n.origin=n.protocol&&n.host&&"file:"!==n.protocol?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=a.stringify);var t,r=this,n=r.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var o=n+(r.slashes?"//":"");return r.username&&(o+=r.username,r.password&&(o+=":"+r.password),o+="@"),o+=r.host+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(o+=r.hash),o}},i.extractProtocol=o,i.location=n,i.qs=a,t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{querystringify:41,"requires-port":42}]},{},[1])(1)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).getIt=e()}}(function(){return function s(i,u,a){function c(t,e){if(!u[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var o=u[t]={exports:{}};i[t][0].call(o.exports,function(e){return c(i[t][1][e]||e)},o,o.exports,s,i,u,a)}return u[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)c(a[e]);return c}({1:[function(e,t,r){"use strict";var n=e("./index");n.middleware=e("./middleware"),t.exports=n},{"./index":2,"./middleware":12}],2:[function(e,t,r){"use strict";var c=e("nano-pubsub"),l=e("./util/middlewareReducer"),o=e("./middleware/defaultOptionsProcessor"),s=e("./middleware/defaultOptionsValidator"),f=e("./request"),p=["request","response","progress","error","abort"],i=["processOptions","validateOptions","interceptRequest","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],r=[],a=i.reduce(function(e,t){return e[t]=e[t]||[],e},{processOptions:[o],validateOptions:[s]});function n(e){var i=p.reduce(function(e,t){return e[t]=c(),e},{}),u=l(a),t=u("processOptions",e);u("validateOptions",t);var r={options:t,channels:i,applyMiddleware:u},n=null,o=i.request.subscribe(function(t){n=f(t,function(s,e){return function(e,t,r){var n=s,o=t;if(!n)try{o=u("onResponse",t,r)}catch(e){o=null,n=e}(n=n&&u("onError",n,r))?i.error.publish(n):o&&i.response.publish(o)}(0,e,t)})});i.abort.subscribe(function(){o(),n&&n.abort()});var s=u("onReturn",i,r);return s===i&&i.request.publish(r),s}return n.use=function(t){if(!t)throw new Error("Tried to add middleware that resolved to falsey value");if("function"==typeof t)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&0<a.onReturn.length)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return i.forEach(function(e){t[e]&&a[e].push(t[e])}),r.push(t),n},n.clone=function(){return e(r)},t.forEach(n.use),n}},{"./middleware/defaultOptionsProcessor":8,"./middleware/defaultOptionsValidator":9,"./request":24,"./util/middlewareReducer":27,"nano-pubsub":38}],3:[function(e,t,r){"use strict";var n=e("object-assign"),o=/^\//,s=/\/$/;t.exports=function(e){var r=e.replace(s,"");return{processOptions:function(e){if(/^https?:\/\//i.test(e.url))return e;var t=[r,e.url.replace(o,"")].join("/");return n({},e,{url:t})}}}},{"object-assign":39}],4:[function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},{}],5:[function(e,t,r){"use strict";var n=e("./Cancel");function o(e){var t=this;if("function"!=typeof e)throw new TypeError("executor must be a function.");var r=null;this.promise=new Promise(function(e){r=e}),e(function(e){t.reason||(t.reason=new n(e),r(t.reason))})}o.source=function(){var t=void 0;return{token:new o(function(e){t=e}),cancel:t}},t.exports=o},{"./Cancel":4}],6:[function(e,t,r){"use strict";t.exports=function(e){return!(!e||!e.__CANCEL__)}},{}],7:[function(e,t,r){"use strict";var u=e("debug"),a=["Cookie","Authorization"],c=Object.prototype.hasOwnProperty;function l(e){return-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?function(e){try{var t="string"==typeof e?JSON.parse(e):e;return JSON.stringify(t,null,2)}catch(t){return e}}(e.body):e.body}t.exports=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o=n.verbose,e=n.namespace||"get-it",t=u(e),s=n.log||t,i=s===t&&!u.enabled(e),r=0;return{processOptions:function(e){return e.requestId=e.requestId||++r,e},onRequest:function(e){if(i||!e)return e;var t=e.options;if(s("[%s] HTTP %s %s",t.requestId,t.method,t.url),o&&t.body&&"string"==typeof t.body&&s("[%s] Request body: %s",t.requestId,t.body),o&&t.headers){var r=!1===n.redactSensitiveHeaders?t.headers:function(e,t){var r={};for(var n in e)c.call(e,n)&&(r[n]=-1<t.indexOf(n)?"<redacted>":e[n]);return r}(t.headers,a);s("[%s] Request headers: %s",t.requestId,JSON.stringify(r,null,2))}return e},onResponse:function(e,t){if(i||!e)return e;var r=t.options.requestId;return s("[%s] Response code: %s %s",r,e.statusCode,e.statusMessage),o&&e.body&&s("[%s] Response body: %s",r,l(e)),e},onError:function(e,t){var r=t.options.requestId;return e?s("[%s] ERROR: %s",r,e.message):s("[%s] Error encountered, but handled by an earlier middleware",r),e}}}},{debug:30}],8:[function(e,t,r){"use strict";var n=e("object-assign"),o=e("url-parse"),s="undefined"!=typeof navigator&&"ReactNative"===navigator.product,i=Object.prototype.hasOwnProperty,u={timeout:s?6e4:12e4};function a(e){var r=[];for(var t in e)i.call(e,t)&&n(t,e[t]);return r.length?r.join("&"):"";function n(t,e){Array.isArray(e)?e.forEach(function(e){return n(t,e)}):r.push([t,e].map(encodeURIComponent).join("="))}}t.exports=function(e){var t="string"==typeof e?n({url:e},u):n({},u,e),r=o(t.url,{},!0);return t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;var r=Number(t);return isNaN(r)?e(u.timeout):{connect:r,socket:r}}(t.timeout),t.query&&(r.query=n({},r.query,function(e){var t={};for(var r in e)void 0!==e[r]&&(t[r]=e[r]);return t}(t.query))),t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t.url=r.toString(a),t}},{"object-assign":39,"url-parse":47}],9:[function(e,t,r){"use strict";var n=/^https?:\/\//i;t.exports=function(e){if(!n.test(e.url))throw new Error('"'+e.url+'" is not a valid URL')}},{}],10:[function(e,t,r){"use strict";var o=e("object-assign");t.exports=function(r){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return{processOptions:function(e){var t=e.headers||{};return e.headers=n.override?o({},t,r):o({},r,t),e}}}},{"object-assign":39}],11:[function(e,t,r){"use strict";var n=e("create-error-class")("HttpError",function(e,t){this.message=(e.method+"-request to "+e.url+" resulted in HTTP "+e.statusCode+" "+e.statusMessage).trim(),this.response=e,this.request=t.options});t.exports=function(){return{onResponse:function(e,t){if(!(400<=e.statusCode))return e;throw new n(e,t)}}}},{"create-error-class":29}],12:[function(e,t,r){"use strict";r.base=e("./base"),r.debug=e("./debug"),r.jsonRequest=e("./jsonRequest"),r.jsonResponse=e("./jsonResponse"),r.httpErrors=e("./httpErrors"),r.retry=e("./retry"),r.promise=e("./promise"),r.observable=e("./observable"),r.progress=e("./progress"),r.headers=e("./headers"),r.injectResponse=e("./injectResponse"),r.urlEncoded=e("./urlEncoded"),r.proxy=e("./proxy")},{"./base":3,"./debug":7,"./headers":10,"./httpErrors":11,"./injectResponse":13,"./jsonRequest":14,"./jsonResponse":15,"./observable":16,"./progress":18,"./promise":19,"./proxy":20,"./retry":21,"./urlEncoded":22}],13:[function(e,t,r){"use strict";var s=e("object-assign");t.exports=function(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if("function"!=typeof o.inject)throw new Error("`injectResponse` middleware requires a `inject` function");return{interceptRequest:function(e,t){var r=o.inject(t,e);if(!r)return e;var n=t.context.options;return s({},{body:"",url:n.url,method:n.method,headers:{},statusCode:200,statusMessage:"OK"},r)}}}},{"object-assign":39}],14:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=e("object-assign"),s=e("is-plain-object"),i=["boolean","string","number"];t.exports=function(){return{processOptions:function(e){var t,r=e.body;return!r||"function"==typeof r.pipe||(t=r).constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)||-1===i.indexOf(void 0===r?"undefined":n(r))&&!Array.isArray(r)&&!s(r)?e:o({},e,{body:JSON.stringify(e.body),headers:o({},e.headers,{"Content-Type":"application/json"})})}}}},{"is-plain-object":35,"object-assign":39}],15:[function(e,t,r){"use strict";var o=e("object-assign");t.exports=function(n){return{onResponse:function(e){var t=e.headers["content-type"]||"",r=n&&n.force||-1!==t.indexOf("application/json");return e.body&&t&&r?o({},e,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message="Failed to parsed response body as JSON: "+e.message,e}}(e.body)}):e},processOptions:function(e){return o({},e,{headers:o({Accept:"application/json"},e.headers)})}}}},{"object-assign":39}],16:[function(e,t,r){"use strict";var n=e("../util/global"),o=e("object-assign");t.exports=function(){var t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).implementation||n.Observable;if(!t)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(e,r){return new t(function(t){return e.error.subscribe(function(e){return t.error(e)}),e.progress.subscribe(function(e){return t.next(o({type:"progress"},e))}),e.response.subscribe(function(e){t.next(o({type:"response"},e)),t.complete()}),e.request.publish(r),function(){return e.abort.publish()}})}}}},{"../util/global":26,"object-assign":39}],17:[function(e,t,r){"use strict";t.exports=function(){return{onRequest:function(e){if("xhr"===e.adapter){var t=e.request,n=e.context;"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=r("upload")),"onprogress"in t&&(t.onprogress=r("download"))}function r(r){return function(e){var t=e.lengthComputable?e.loaded/e.total*100:-1;n.channels.progress.publish({stage:r,percent:t,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}}}}},{}],18:[function(e,t,r){"use strict";t.exports=e("./node-progress")},{"./node-progress":17}],19:[function(e,t,r){"use strict";var n=e("../util/global"),o=e("./cancel/Cancel"),s=e("./cancel/CancelToken"),i=e("./cancel/isCancel"),u=function(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=s.implementation||n.Promise;if(!e)throw new Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:function(n,o){return new e(function(t,r){var e=o.options.cancelToken;e&&e.promise.then(function(e){n.abort.publish(e),r(e)}),n.error.subscribe(r),n.response.subscribe(function(e){t(s.onlyBody?e.body:e)}),setTimeout(function(){return n.request.publish(o)},0)})}}};u.Cancel=o,u.CancelToken=s,u.isCancel=i,t.exports=u},{"../util/global":26,"./cancel/Cancel":4,"./cancel/CancelToken":5,"./cancel/isCancel":6}],20:[function(e,t,r){"use strict";var n=e("object-assign");t.exports=function(t){if(!(!1===t||t&&t.host))throw new Error("Proxy middleware takes an object of host, port and auth properties");return{processOptions:function(e){return n({proxy:t},e)}}}},{"object-assign":39}],21:[function(e,t,r){"use strict";var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=e("object-assign"),n=e("../util/node-shouldRetry"),o=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},a=e.maxRetries||5,c=e.retryDelay||s,l=e.shouldRetry||n;return{onError:function(e,t){var r,n=t.options,o=n.maxRetries||a,s=n.shouldRetry||l,i=n.attemptNumber||0;if(null!==(r=n.body)&&"object"===(void 0===r?"undefined":f(r))&&"function"==typeof r.pipe)return e;if(!s(e,i,n)||o<=i)return e;var u=p({},t,{options:p({},n,{attemptNumber:i+1})});return setTimeout(function(){return t.channels.request.publish(u)},c(i)),null}}};function s(e){return 100*Math.pow(2,e)+100*Math.random()}o.shouldRetry=n,t.exports=o},{"../util/node-shouldRetry":25,"object-assign":39}],22:[function(e,t,r){"use strict";var n=e("object-assign"),o=e("is-plain-object"),s=e("form-urlencoded"),i=s.default||s;t.exports=function(){return{processOptions:function(e){var t,r=e.body;return r&&"function"!=typeof r.pipe&&(!(t=r).constructor||"function"!=typeof t.constructor.isBuffer||!t.constructor.isBuffer(t))&&o(r)?n({},e,{body:i(e.body),headers:n({},e.headers,{"Content-Type":"application/x-www-form-urlencoded"})}):e}}}},{"form-urlencoded":33,"is-plain-object":35,"object-assign":39}],23:[function(e,t,r){"use strict";var g=e("same-origin"),v=e("parse-headers"),w=window,x=w.XMLHttpRequest||function(){},j="withCredentials"in new x?x:w.XDomainRequest;t.exports=function(r,t){var n=r.options,e={},o=w&&w.location&&!g(w.location.href,n.url),s=r.applyMiddleware("interceptRequest",void 0,{adapter:"xhr",context:r});if(s){var i=setTimeout(t,0,null,s);return{abort:function(){return clearTimeout(i)}}}var u=o?new j:new x,a=w.XDomainRequest&&u instanceof w.XDomainRequest,c=n.headers,l=!1,f=!1,p=!1;if(u.onerror=m,u.ontimeout=m,u.onabort=function(){l=!0},u.onprogress=function(){},u[a?"onload":"onreadystatechange"]=function(){h&&(b(),e.socket=setTimeout(function(){return y("ESOCKETTIMEDOUT")},h.socket)),l||4!==u.readyState&&!a||0!==u.status&&(l||f||p||(0!==u.status?(b(),f=!0,t(null,function(){var e=u.status,t=u.statusText;if(a&&void 0===e)e=200;else{if(12e3<e&&e<12156)return m();e=1223===u.status?204:u.status,t=1223===u.status?"No Content":t}return{body:u.response||u.responseText,url:n.url,method:n.method,headers:a?{}:v(u.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())):m(new Error("Unknown XHR error"))))},u.open(n.method,n.url,!0),u.withCredentials=!!n.withCredentials,c&&u.setRequestHeader)for(var d in c)c.hasOwnProperty(d)&&u.setRequestHeader(d,c[d]);else if(c&&a)throw new Error("Headers cannot be set on an XDomainRequest object");n.rawBody&&(u.responseType="arraybuffer"),r.applyMiddleware("onRequest",{options:n,adapter:"xhr",request:u,context:r}),u.send(n.body||null);var h=n.timeout;return h&&(e.connect=setTimeout(function(){return y("ETIMEDOUT")},h.connect)),{abort:function(){l=!0,u&&u.abort()}};function y(e){p=!0,u.abort();var t=new Error("ESOCKETTIMEDOUT"===e?"Socket timed out on request to "+n.url:"Connection timed out on request to "+n.url);t.code=e,r.channels.error.publish(t)}function b(){(l||2<=u.readyState&&e.connect)&&clearTimeout(e.connect),e.socket&&clearTimeout(e.socket)}function m(){if(!f){b(),f=!0,u=null;var e=new Error("Network error while attempting to reach "+n.url);e.isNetworkError=!0,e.request=n,t(e)}}}},{"parse-headers":40,"same-origin":44}],24:[function(e,t,r){"use strict";t.exports=e("./node-request")},{"./node-request":23}],25:[function(e,t,r){"use strict";t.exports=function(e,t,r){return("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1)}},{}],26:[function(e,t,r){(function(e){"use strict";"undefined"!=typeof window?t.exports=window:void 0!==e?t.exports=e:"undefined"!=typeof self?t.exports=self:t.exports={}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],27:[function(e,t,r){"use strict";t.exports=function(s){return function(e,t){for(var r=arguments.length,n=Array(2<r?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return s[e].reduce(function(e,t){return t.apply(void 0,[e].concat(n))},t)}}},{}],28:[function(e,t,r){"use strict";t.exports=Error.captureStackTrace||function(e){var t=new Error;Object.defineProperty(e,"stack",{configurable:!0,get:function(){var e=t.stack;return Object.defineProperty(this,"stack",{value:e}),e}})}},{}],29:[function(e,t,r){"use strict";var s=e("capture-stack-trace");t.exports=function(e,t){if("string"!=typeof e)throw new TypeError("Expected className to be a string");if(/[^0-9a-zA-Z_$]/.test(e))throw new Error("className contains invalid characters");t=t||function(e){this.message=e};var r,n,o=function(){Object.defineProperty(this,"name",{configurable:!0,value:e,writable:!0}),s(this,this.constructor),t.apply(this,arguments)};return r=o,n=Error,r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o}},{"capture-stack-trace":28}],30:[function(r,n,s){(function(t){function e(){var e;try{e=s.storage.debug}catch(e){}return!e&&void 0!==t&&"env"in t&&(e=t.env.DEBUG),e}(s=n.exports=r("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},s.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+s.humanize(this.diff),t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(o=++n)}),e.splice(o,0,r)}},s.save=function(e){try{null==e?s.storage.removeItem("debug"):s.storage.debug=e}catch(e){}},s.load=e,s.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},s.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),s.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],s.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},s.enable(e())}).call(this,r("_process"))},{"./debug":31,_process:41}],31:[function(e,t,u){var a;function r(e){function n(){if(n.enabled){var o=n,e=+new Date,t=e-(a||e);o.diff=t,o.prev=a,o.curr=e,a=e;for(var s=new Array(arguments.length),r=0;r<s.length;r++)s[r]=arguments[r];s[0]=u.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var i=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(e,t){if("%%"===e)return e;i++;var r=u.formatters[t];if("function"==typeof r){var n=s[i];e=r.call(o,n),s.splice(i,1),i--}return e}),u.formatArgs.call(o,s),(n.log||u.log||console.log.bind(console)).apply(o,s)}}return n.namespace=e,n.enabled=u.enabled(e),n.useColors=u.useColors(),n.color=function(e){var t,r=0;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return u.colors[Math.abs(r)%u.colors.length]}(e),"function"==typeof u.init&&u.init(n),n}(u=t.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},u.disable=function(){u.enable("")},u.enable=function(e){u.save(e),u.names=[],u.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),r=t.length,n=0;n<r;n++)t[n]&&("-"===(e=t[n].replace(/\*/g,".*?"))[0]?u.skips.push(new RegExp("^"+e.substr(1)+"$")):u.names.push(new RegExp("^"+e+"$")))},u.enabled=function(e){var t,r;for(t=0,r=u.skips.length;t<r;t++)if(u.skips[t].test(e))return!1;for(t=0,r=u.names.length;t<r;t++)if(u.names[t].test(e))return!0;return!1},u.humanize=e("ms"),u.names=[],u.skips=[],u.formatters={}},{ms:37}],32:[function(e,t,r){"use strict";var o=e("is-callable"),s=Object.prototype.toString,i=Object.prototype.hasOwnProperty;t.exports=function(e,t,r){if(!o(t))throw new TypeError("iterator must be a function");var n;3<=arguments.length&&(n=r),"[object Array]"===s.call(e)?function(e,t,r){for(var n=0,o=e.length;n<o;n++)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,n):"string"==typeof e?function(e,t,r){for(var n=0,o=e.length;n<o;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,n):function(e,t,r){for(var n in e)i.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,n)}},{"is-callable":34}],33:[function(e,t,r){"use strict";var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.exports=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=Boolean(e.sorted),a=Boolean(e.skipIndex),c=Boolean(e.ignorenull),l=function(e){return String(e).replace(/(?:[\0-\x1F"-&\+-\}\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,encodeURIComponent).replace(/ /g,"+").replace(/[!'()~\*]/g,function(e){return"%"+e.charCodeAt().toString(16).slice(-2).toUpperCase()})},f=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Object.keys(e);return r?t.sort():t},p=function(e){return e.filter(function(e){return e}).join("&")},d=function(e,t){var r,n,o,s,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0===t?"undefined":h(t),u=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return t===u?u=c?u:l(e)+"="+u:/string|number|boolean/.test(i)?u=l(e)+"="+l(t):Array.isArray(t)?(o=e,u=(s=t).length?p(s.map(function(e,t){return d(a?o+"[]":o+"["+t+"]",e)})):l(o+"[]")):"object"===i&&(r=e,u=p(f(n=t).map(function(e){return d(r+"["+e+"]",n[e])}))),u};return t&&p(f(t).map(function(e){return d(e,t[e])}))}},{}],34:[function(e,t,r){"use strict";var n=Function.prototype.toString,o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},i=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(u)return function(e){try{return!s(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=i.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},{}],35:[function(e,t,r){"use strict";var n=e("isobject");function o(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}t.exports=function(e){var t,r;return!1!==o(e)&&"function"==typeof(t=e.constructor)&&!1!==o(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")}},{isobject:36}],36:[function(e,t,r){"use strict";t.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},{}],37:[function(e,t,r){var s=36e5,i=864e5;function u(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}t.exports=function(e,t){t=t||{};var r,n,o=typeof e;if("string"===o&&0<e.length)return function(e){if(!(100<(e=String(e)).length)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return r*i;case"hours":case"hour":case"hrs":case"hr":case"h":return r*s;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===o&&!1===isNaN(e))return t.long?u(n=e,i,"day")||u(n,s,"hour")||u(n,6e4,"minute")||u(n,1e3,"second")||n+" ms":i<=(r=e)?Math.round(r/i)+"d":s<=r?Math.round(r/s)+"h":6e4<=r?Math.round(r/6e4)+"m":1e3<=r?Math.round(r/1e3)+"s":r+"ms";throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],38:[function(e,t,r){t.exports=function(){var r=[];return{subscribe:function(t){return r.push(t),function(){var e=r.indexOf(t);-1<e&&r.splice(e,1)}},publish:function(){for(var e=0;e<r.length;e++)r[e].apply(null,arguments)}}}},{}],39:[function(e,t,r){"use strict";var a=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var i in r=Object(arguments[s]))c.call(r,i)&&(o[i]=r[i]);if(a){n=a(r);for(var u=0;u<n.length;u++)l.call(r,n[u])&&(o[n[u]]=r[n[u]])}}return o}},{}],40:[function(e,t,r){var i=e("trim"),n=e("for-each");t.exports=function(e){if(!e)return{};var s={};return n(i(e).split("\n"),function(e){var t,r=e.indexOf(":"),n=i(e.slice(0,r)).toLowerCase(),o=i(e.slice(r+1));void 0===s[n]?s[n]=o:(t=s[n],"[object Array]"===Object.prototype.toString.call(t)?s[n].push(o):s[n]=[s[n],o])}),s}},{"for-each":32,trim:46}],41:[function(e,t,r){var n,o,s=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(e){o=u}}();var c,l=[],f=!1,p=-1;function d(){f&&c&&(f=!1,c.length?l=c.concat(l):p=-1,l.length&&h())}function h(){if(!f){var e=a(d);f=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,f=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function b(){}s.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new y(e,t)),1!==l.length||f||a(h)},y.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=b,s.addListener=b,s.once=b,s.off=b,s.removeListener=b,s.removeAllListeners=b,s.emit=b,s.prependListener=b,s.prependOnceListener=b,s.listeners=function(e){return[]},s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],42:[function(e,t,r){"use strict";var s=Object.prototype.hasOwnProperty;function i(e){return decodeURIComponent(e.replace(/\+/g," "))}r.stringify=function(e,t){t=t||"";var r,n,o=[];for(n in"string"!=typeof t&&(t="?"),e)s.call(e,n)&&((r=e[n])||null!=r&&!isNaN(r)||(r=""),o.push(encodeURIComponent(n)+"="+encodeURIComponent(r)));return o.length?t+o.join("&"):""},r.parse=function(e){for(var t,r=/([^=?&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=i(t[1]),s=i(t[2]);o in n||(n[o]=s)}return n}},{}],43:[function(e,t,r){"use strict";t.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},{}],44:[function(e,t,r){"use strict";var a=e("url");t.exports=function(e,t,r){if(e===t)return!0;var n=a.parse(e,!1,!0),o=a.parse(t,!1,!0),s=0|n.port||("https"===n.protocol?443:80),i=0|o.port||("https"===o.protocol?443:80),u={proto:n.protocol===o.protocol,hostname:n.hostname===o.hostname,port:s===i};return u.proto&&u.hostname&&(u.port||r)}},{url:45}],45:[function(e,t,r){"use strict";var n=/^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;t.exports={regex:n,parse:function(e){var t=n.exec(e);return t?{protocol:(t[1]||"").toLowerCase()||void 0,hostname:(t[5]||"").toLowerCase()||void 0,port:t[6]||void 0}:{}}}},{}],46:[function(e,t,r){(r=t.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},r.right=function(e){return e.replace(/\s*$/,"")}},{}],47:[function(e,t,r){(function(s){"use strict";var d=e("requires-port"),h=e("querystringify"),r=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],u={hash:1,query:1};function b(e){var t,r=("undefined"!=typeof window?window:void 0!==s?s:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||r);if("blob:"===e.protocol)n=new g(unescape(e.pathname),{});else if("string"===o)for(t in n=new g(e,{}),u)delete n[t];else if("object"===o){for(t in e)t in u||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=i.test(e.href))}return n}function m(e){var t=r.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function g(e,t,r){if(!(this instanceof g))return new g(e,t,r);var n,o,s,i,u,a,c=y.slice(),l=typeof t,f=this,p=0;for("object"!==l&&"string"!==l&&(r=t,t=null),r&&"function"!=typeof r&&(r=h.parse),t=b(t),n=!(o=m(e||"")).protocol&&!o.slashes,f.slashes=o.slashes||n&&t.slashes,f.protocol=o.protocol||t.protocol||"",e=o.rest,o.slashes||(c[3]=[/(.*)/,"pathname"]);p<c.length;p++)"function"!=typeof(i=c[p])?(s=i[0],a=i[1],s!=s?f[a]=e:"string"==typeof s?~(u=e.indexOf(s))&&(e="number"==typeof i[2]?(f[a]=e.slice(0,u),e.slice(u+i[2])):(f[a]=e.slice(u),e.slice(0,u))):(u=s.exec(e))&&(f[a]=u[1],e=e.slice(0,u.index)),f[a]=f[a]||n&&i[3]&&t[a]||"",i[4]&&(f[a]=f[a].toLowerCase())):e=i(e);r&&(f.query=r(f.query)),n&&t.slashes&&"/"!==f.pathname.charAt(0)&&(""!==f.pathname||""!==t.pathname)&&(f.pathname=function(e,t){for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],s=!1,i=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),i++):i&&(0===n&&(s=!0),r.splice(n,1),i--);return s&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(f.pathname,t.pathname)),d(f.port,f.protocol)||(f.host=f.hostname,f.port=""),f.username=f.password="",f.auth&&(i=f.auth.split(":"),f.username=i[0]||"",f.password=i[1]||""),f.origin=f.protocol&&f.host&&"file:"!==f.protocol?f.protocol+"//"+f.host:"null",f.href=f.toString()}g.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||h.parse)(t)),n[e]=t;break;case"port":n[e]=t,d(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,/:\d+$/.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";n[e]=t.charAt(0)!==o?o+t:t}else n[e]=t;break;default:n[e]=t}for(var s=0;s<y.length;s++){var i=y[s];i[4]&&(n[i[1]]=n[i[1]].toLowerCase())}return n.origin=n.protocol&&n.host&&"file:"!==n.protocol?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=h.stringify);var t,r=this,n=r.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var o=n+(r.slashes?"//":"");return r.username&&(o+=r.username,r.password&&(o+=":"+r.password),o+="@"),o+=r.host+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(o+=r.hash),o}},g.extractProtocol=m,g.location=b,g.qs=h,t.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{querystringify:42,"requires-port":43}]},{},[1])(1)});

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

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.getIt = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";var pubsub=require("nano-pubsub"),middlewareReducer=require("./util/middlewareReducer"),processOptions=require("./middleware/defaultOptionsProcessor"),validateOptions=require("./middleware/defaultOptionsValidator"),httpRequest=require("./request"),channelNames=["request","response","progress","error","abort"],middlehooks=["processOptions","validateOptions","interceptRequest","onRequest","onResponse","onError","onReturn","onHeaders"];module.exports=function e(){function r(e){function r(e,r,n){var s=e,i=r;if(!s)try{i=o("onResponse",r,n)}catch(e){i=null,s=e}(s=s&&o("onError",s,n))?t.error.publish(s):i&&t.response.publish(i)}var t=channelNames.reduce(function(e,r){return e[r]=pubsub(),e},{}),o=middlewareReducer(n),s=o("processOptions",e);o("validateOptions",s);var i={options:s,channels:t,applyMiddleware:o},u=null,a=t.request.subscribe(function(e){u=httpRequest(e,function(t,o){return r(t,o,e)})});t.abort.subscribe(function(){a(),u&&u.abort()});var d=o("onReturn",t,i);return d===t&&t.request.publish(i),d}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=[],n=middlehooks.reduce(function(e,r){return e[r]=e[r]||[],e},{processOptions:[processOptions],validateOptions:[validateOptions]});return r.use=function(e){if(!e)throw new Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&n.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return middlehooks.forEach(function(r){e[r]&&n[r].push(e[r])}),o.push(e),r},r.clone=function(){return e(o)},t.forEach(r.use),r};
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.getIt = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";var pubsub=require("nano-pubsub"),middlewareReducer=require("./util/middlewareReducer"),processOptions=require("./middleware/defaultOptionsProcessor"),validateOptions=require("./middleware/defaultOptionsValidator"),httpRequest=require("./request"),channelNames=["request","response","progress","error","abort"],middlehooks=["processOptions","validateOptions","interceptRequest","onRequest","onResponse","onError","onReturn","onHeaders"];module.exports=function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],o=middlehooks.reduce(function(e,r){return e[r]=e[r]||[],e},{processOptions:[processOptions],validateOptions:[validateOptions]});function n(e){var r=channelNames.reduce(function(e,r){return e[r]=pubsub(),e},{}),t=middlewareReducer(o),n=t("processOptions",e);t("validateOptions",n);var s={options:n,channels:r,applyMiddleware:t},i=null,u=r.request.subscribe(function(e){i=httpRequest(e,function(o,n){return function(e,o,n){var s=e,i=o;if(!s)try{i=t("onResponse",o,n)}catch(e){i=null,s=e}(s=s&&t("onError",s,n))?r.error.publish(s):i&&r.response.publish(i)}(o,n,e)})});r.abort.subscribe(function(){u(),i&&i.abort()});var a=t("onReturn",r,s);return a===r&&r.request.publish(s),a}return n.use=function(e){if(!e)throw new Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&o.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return middlehooks.forEach(function(r){e[r]&&o[r].push(e[r])}),t.push(e),n},n.clone=function(){return e(t)},r.forEach(n.use),n};
},{"./middleware/defaultOptionsProcessor":2,"./middleware/defaultOptionsValidator":3,"./request":5,"./util/middlewareReducer":6,"nano-pubsub":9}],2:[function(require,module,exports){
"use strict";function stringifyQueryString(e){function t(e,n){Array.isArray(n)?n.forEach(function(r){return t(e,r)}):r.push([e,n].map(encodeURIComponent).join("="))}var r=[];for(var n in e)has.call(e,n)&&t(n,e[n]);return r.length?r.join("&"):""}function normalizeTimeout(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;var t=Number(e);return isNaN(t)?normalizeTimeout(defaultOptions.timeout):{connect:t,socket:t}}function removeUndefined(e){var t={};for(var r in e)void 0!==e[r]&&(t[r]=e[r]);return t}var objectAssign=require("object-assign"),urlParse=require("url-parse"),isReactNative="undefined"!=typeof navigator&&"ReactNative"===navigator.product,has=Object.prototype.hasOwnProperty,defaultOptions={timeout:isReactNative?6e4:12e4};module.exports=function(e){var t="string"==typeof e?objectAssign({url:e},defaultOptions):objectAssign({},defaultOptions,e),r=urlParse(t.url,{},!0);return t.timeout=normalizeTimeout(t.timeout),t.query&&(r.query=objectAssign({},r.query,removeUndefined(t.query))),t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t.url=r.toString(stringifyQueryString),t};
"use strict";var objectAssign=require("object-assign"),urlParse=require("url-parse"),isReactNative="undefined"!=typeof navigator&&"ReactNative"===navigator.product,has=Object.prototype.hasOwnProperty,defaultOptions={timeout:isReactNative?6e4:12e4};function stringifyQueryString(e){var t=[];for(var r in e)has.call(e,r)&&n(r,e[r]);return t.length?t.join("&"):"";function n(e,r){Array.isArray(r)?r.forEach(function(t){return n(e,t)}):t.push([e,r].map(encodeURIComponent).join("="))}}function normalizeTimeout(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;var t=Number(e);return isNaN(t)?normalizeTimeout(defaultOptions.timeout):{connect:t,socket:t}}function removeUndefined(e){var t={};for(var r in e)void 0!==e[r]&&(t[r]=e[r]);return t}module.exports=function(e){var t="string"==typeof e?objectAssign({url:e},defaultOptions):objectAssign({},defaultOptions,e),r=urlParse(t.url,{},!0);return t.timeout=normalizeTimeout(t.timeout),t.query&&(r.query=objectAssign({},r.query,removeUndefined(t.query))),t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t.url=r.toString(stringifyQueryString),t};

@@ -11,3 +11,3 @@ },{"object-assign":10,"url-parse":17}],3:[function(require,module,exports){

},{}],4:[function(require,module,exports){
"use strict";var sameOrigin=require("same-origin"),parseHeaders=require("parse-headers"),noop=function(){},win=window,XmlHttpRequest=win.XMLHttpRequest||noop,hasXhr2="withCredentials"in new XmlHttpRequest,XDomainRequest=hasXhr2?XmlHttpRequest:win.XDomainRequest,adapter="xhr";module.exports=function(e,t){function r(t){R=!0,w.abort();var r=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+u.url:"Connection timed out on request to "+u.url);r.code=t,e.channels.error.publish(r)}function n(){X&&(o(),c.socket=setTimeout(function(){return r("ESOCKETTIMEDOUT")},X.socket))}function o(){(h||w.readyState>=2&&c.connect)&&clearTimeout(c.connect),c.socket&&clearTimeout(c.socket)}function s(){if(!q){o(),q=!0,w=null;var e=new Error("Network error while attempting to reach "+u.url);e.isNetworkError=!0,e.request=u,t(e)}}function a(){var e=w.status,t=w.statusText;if(m&&void 0===e)e=200;else{if(e>12e3&&e<12156)return s();e=1223===w.status?204:w.status,t=1223===w.status?"No Content":t}return{body:w.response||w.responseText,url:u.url,method:u.method,headers:m?{}:parseHeaders(w.getAllResponseHeaders()),statusCode:e,statusMessage:t}}function i(){h||q||R||(0!==w.status?(o(),q=!0,t(null,a())):s(new Error("Unknown XHR error")))}var u=e.options,c={},d=win&&win.location&&!sameOrigin(win.location.href,u.url),l=e.applyMiddleware("interceptRequest",void 0,{adapter:adapter,context:e});if(l){var p=setTimeout(t,0,null,l);return{abort:function(){return clearTimeout(p)}}}var w=d?new XDomainRequest:new XmlHttpRequest,m=win.XDomainRequest&&w instanceof win.XDomainRequest,f=u.headers,h=!1,q=!1,R=!1;if(w.onerror=s,w.ontimeout=s,w.onabort=function(){h=!0},w.onprogress=function(){},w[m?"onload":"onreadystatechange"]=function(){n(),h||4!==w.readyState&&!m||0!==w.status&&i()},w.open(u.method,u.url,!0),w.withCredentials=!!u.withCredentials,f&&w.setRequestHeader)for(var T in f)f.hasOwnProperty(T)&&w.setRequestHeader(T,f[T]);else if(f&&m)throw new Error("Headers cannot be set on an XDomainRequest object");u.rawBody&&(w.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:u,adapter:adapter,request:w,context:e}),w.send(u.body||null);var X=u.timeout;return X&&(c.connect=setTimeout(function(){return r("ETIMEDOUT")},X.connect)),{abort:function(){h=!0,w&&w.abort()}}};
"use strict";var sameOrigin=require("same-origin"),parseHeaders=require("parse-headers"),noop=function(){},win=window,XmlHttpRequest=win.XMLHttpRequest||noop,hasXhr2="withCredentials"in new XmlHttpRequest,XDomainRequest=hasXhr2?XmlHttpRequest:win.XDomainRequest,adapter="xhr";module.exports=function(e,t){var r=e.options,n={},o=win&&win.location&&!sameOrigin(win.location.href,r.url),s=e.applyMiddleware("interceptRequest",void 0,{adapter:adapter,context:e});if(s){var a=setTimeout(t,0,null,s);return{abort:function(){return clearTimeout(a)}}}var i=o?new XDomainRequest:new XmlHttpRequest,u=win.XDomainRequest&&i instanceof win.XDomainRequest,c=r.headers,d=!1,l=!1,p=!1;if(i.onerror=q,i.ontimeout=q,i.onabort=function(){d=!0},i.onprogress=function(){},i[u?"onload":"onreadystatechange"]=function(){!function(){if(!w)return;h(),n.socket=setTimeout(function(){return m("ESOCKETTIMEDOUT")},w.socket)}(),d||4!==i.readyState&&!u||0!==i.status&&function(){if(d||l||p)return;if(0===i.status)return void q(new Error("Unknown XHR error"));h(),l=!0,t(null,function(){var e=i.status,t=i.statusText;if(u&&void 0===e)e=200;else{if(e>12e3&&e<12156)return q();e=1223===i.status?204:i.status,t=1223===i.status?"No Content":t}return{body:i.response||i.responseText,url:r.url,method:r.method,headers:u?{}:parseHeaders(i.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())}()},i.open(r.method,r.url,!0),i.withCredentials=!!r.withCredentials,c&&i.setRequestHeader)for(var f in c)c.hasOwnProperty(f)&&i.setRequestHeader(f,c[f]);else if(c&&u)throw new Error("Headers cannot be set on an XDomainRequest object");r.rawBody&&(i.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:r,adapter:adapter,request:i,context:e}),i.send(r.body||null);var w=r.timeout;return w&&(n.connect=setTimeout(function(){return m("ETIMEDOUT")},w.connect)),{abort:function(){d=!0,i&&i.abort()}};function m(t){p=!0,i.abort();var n=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+r.url:"Connection timed out on request to "+r.url);n.code=t,e.channels.error.publish(n)}function h(){(d||i.readyState>=2&&n.connect)&&clearTimeout(n.connect),n.socket&&clearTimeout(n.socket)}function q(){if(!l){h(),l=!0,i=null;var e=new Error("Network error while attempting to reach "+r.url);e.isNetworkError=!0,e.request=r,t(e)}}};

@@ -21,6 +21,6 @@ },{"parse-headers":11,"same-origin":14}],5:[function(require,module,exports){

},{}],7:[function(require,module,exports){
function forEach(r,t,o){if(!isFunction(t))throw new TypeError("iterator must be a function");arguments.length<3&&(o=this),"[object Array]"===toString.call(r)?forEachArray(r,t,o):"string"==typeof r?forEachString(r,t,o):forEachObject(r,t,o)}function forEachArray(r,t,o){for(var n=0,a=r.length;n<a;n++)hasOwnProperty.call(r,n)&&t.call(o,r[n],n,r)}function forEachString(r,t,o){for(var n=0,a=r.length;n<a;n++)t.call(o,r.charAt(n),n,r)}function forEachObject(r,t,o){for(var n in r)hasOwnProperty.call(r,n)&&t.call(o,r[n],n,r)}var isFunction=require("is-function");module.exports=forEach;var toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty;
"use strict";var isCallable=require("is-callable"),toStr=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,forEachArray=function(r,t,a){for(var o=0,l=r.length;o<l;o++)hasOwnProperty.call(r,o)&&(null==a?t(r[o],o,r):t.call(a,r[o],o,r))},forEachString=function(r,t,a){for(var o=0,l=r.length;o<l;o++)null==a?t(r.charAt(o),o,r):t.call(a,r.charAt(o),o,r)},forEachObject=function(r,t,a){for(var o in r)hasOwnProperty.call(r,o)&&(null==a?t(r[o],o,r):t.call(a,r[o],o,r))},forEach=function(r,t,a){if(!isCallable(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=a),"[object Array]"===toStr.call(r)?forEachArray(r,t,o):"string"==typeof r?forEachString(r,t,o):forEachObject(r,t,o)};module.exports=forEach;
},{"is-function":8}],8:[function(require,module,exports){
function isFunction(o){var t=toString.call(o);return"[object Function]"===t||"function"==typeof o&&"[object RegExp]"!==t||"undefined"!=typeof window&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}module.exports=isFunction;var toString=Object.prototype.toString;
},{"is-callable":8}],8:[function(require,module,exports){
"use strict";var fnToStr=Function.prototype.toString,constructorRegex=/^\s*class\b/,isES6ClassFn=function(t){try{var n=fnToStr.call(t);return constructorRegex.test(n)}catch(t){return!1}},tryFunctionObject=function(t){try{return!isES6ClassFn(t)&&(fnToStr.call(t),!0)}catch(t){return!1}},toStr=Object.prototype.toString,fnClass="[object Function]",genClass="[object GeneratorFunction]",hasToStringTag="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(hasToStringTag)return tryFunctionObject(t);if(isES6ClassFn(t))return!1;var n=toStr.call(t);return n===fnClass||n===genClass};

@@ -31,3 +31,3 @@ },{}],9:[function(require,module,exports){

},{}],10:[function(require,module,exports){
"use strict";function toObject(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=shouldUseNative()?Object.assign:function(e,r){for(var t,n,o=toObject(e),a=1;a<arguments.length;a++){t=Object(arguments[a]);for(var s in t)hasOwnProperty.call(t,s)&&(o[s]=t[s]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(t);for(var c=0;c<n.length;c++)propIsEnumerable.call(t,n[c])&&(o[n[c]]=t[n[c]])}}return o};
"use strict";var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(e){return r[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}module.exports=shouldUseNative()?Object.assign:function(e,r){for(var t,n,o=toObject(e),a=1;a<arguments.length;a++){for(var s in t=Object(arguments[a]))hasOwnProperty.call(t,s)&&(o[s]=t[s]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(t);for(var c=0;c<n.length;c++)propIsEnumerable.call(t,n[c])&&(o[n[c]]=t[n[c]])}}return o};

@@ -38,3 +38,3 @@ },{}],11:[function(require,module,exports){

},{"for-each":7,"trim":16}],12:[function(require,module,exports){
"use strict";function decode(e){return decodeURIComponent(e.replace(/\+/g," "))}function querystring(e){for(var r,n=/([^=?&]+)=?([^&]*)/g,t={};r=n.exec(e);t[decode(r[1])]=decode(r[2]));return t}function querystringify(e,r){var n=[];"string"!=typeof(r=r||"")&&(r="?");for(var t in e)has.call(e,t)&&n.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return n.length?r+n.join("&"):""}var has=Object.prototype.hasOwnProperty;exports.stringify=querystringify,exports.parse=querystring;
"use strict";var undef,has=Object.prototype.hasOwnProperty;function decode(e){return decodeURIComponent(e.replace(/\+/g," "))}function querystring(e){for(var n,r=/([^=?&]+)=?([^&]*)/g,t={};n=r.exec(e);){var o=decode(n[1]),i=decode(n[2]);o in t||(t[o]=i)}return t}function querystringify(e,n){n=n||"";var r,t,o=[];for(t in"string"!=typeof n&&(n="?"),e)has.call(e,t)&&((r=e[t])||null!==r&&r!==undef&&!isNaN(r)||(r=""),o.push(encodeURIComponent(t)+"="+encodeURIComponent(r)));return o.length?n+o.join("&"):""}exports.stringify=querystringify,exports.parse=querystring;

@@ -55,6 +55,6 @@ },{}],13:[function(require,module,exports){

(function (global){
"use strict";function lolcation(e){var o,t={},r=typeof(e=e||global.location||{});if("blob:"===e.protocol)t=new URL(unescape(e.pathname),{});else if("string"===r){t=new URL(e,{});for(o in ignore)delete t[o]}else if("object"===r){for(o in e)o in ignore||(t[o]=e[o]);void 0===t.slashes&&(t.slashes=slashes.test(e.href))}return t}function extractProtocol(e){var o=protocolre.exec(e);return{protocol:o[1]?o[1].toLowerCase():"",slashes:!!o[2],rest:o[3]}}function resolve(e,o){for(var t=(o||"/").split("/").slice(0,-1).concat(e.split("/")),r=t.length,s=t[r-1],a=!1,n=0;r--;)"."===t[r]?t.splice(r,1):".."===t[r]?(t.splice(r,1),n++):n&&(0===r&&(a=!0),t.splice(r,1),n--);return a&&t.unshift(""),"."!==s&&".."!==s||t.push(""),t.join("/")}function URL(e,o,t){if(!(this instanceof URL))return new URL(e,o,t);var r,s,a,n,l,i,h=rules.slice(),c=typeof o,p=this,u=0;for("object"!==c&&"string"!==c&&(t=o,o=null),t&&"function"!=typeof t&&(t=qs.parse),o=lolcation(o),r=!(s=extractProtocol(e||"")).protocol&&!s.slashes,p.slashes=s.slashes||r&&o.slashes,p.protocol=s.protocol||o.protocol||"",e=s.rest,s.slashes||(h[2]=[/(.*)/,"pathname"]);u<h.length;u++)a=(n=h[u])[0],i=n[1],a!==a?p[i]=e:"string"==typeof a?~(l=e.indexOf(a))&&("number"==typeof n[2]?(p[i]=e.slice(0,l),e=e.slice(l+n[2])):(p[i]=e.slice(l),e=e.slice(0,l))):(l=a.exec(e))&&(p[i]=l[1],e=e.slice(0,l.index)),p[i]=p[i]||(r&&n[3]?o[i]||"":""),n[4]&&(p[i]=p[i].toLowerCase());t&&(p.query=t(p.query)),r&&o.slashes&&"/"!==p.pathname.charAt(0)&&(""!==p.pathname||""!==o.pathname)&&(p.pathname=resolve(p.pathname,o.pathname)),required(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(n=p.auth.split(":"),p.username=n[0]||"",p.password=n[1]||""),p.origin=p.protocol&&p.host&&"file:"!==p.protocol?p.protocol+"//"+p.host:"null",p.href=p.toString()}function set(e,o,t){var r=this;switch(e){case"query":"string"==typeof o&&o.length&&(o=(t||qs.parse)(o)),r[e]=o;break;case"port":r[e]=o,required(o,r.protocol)?o&&(r.host=r.hostname+":"+o):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=o,r.port&&(o+=":"+r.port),r.host=o;break;case"host":r[e]=o,/:\d+$/.test(o)?(o=o.split(":"),r.port=o.pop(),r.hostname=o.join(":")):(r.hostname=o,r.port="");break;case"protocol":r.protocol=o.toLowerCase(),r.slashes=!t;break;case"pathname":r.pathname=o.length&&"/"!==o.charAt(0)?"/"+o:o;break;default:r[e]=o}for(var s=0;s<rules.length;s++){var a=rules[s];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function toString(e){e&&"function"==typeof e||(e=qs.stringify);var o,t=this,r=t.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var s=r+(t.slashes?"//":"");return t.username&&(s+=t.username,t.password&&(s+=":"+t.password),s+="@"),s+=t.host+t.pathname,(o="object"==typeof t.query?e(t.query):t.query)&&(s+="?"!==o.charAt(0)?"?"+o:o),t.hash&&(s+=t.hash),s}var required=require("requires-port"),qs=require("querystringify"),protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,rules=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};URL.prototype={set:set,toString:toString},URL.extractProtocol=extractProtocol,URL.location=lolcation,URL.qs=qs,module.exports=URL;
"use strict";var required=require("requires-port"),qs=require("querystringify"),protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,rules=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore={hash:1,query:1};function lolcation(e){var o,t=("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).location||{},r={},s=typeof(e=e||t);if("blob:"===e.protocol)r=new Url(unescape(e.pathname),{});else if("string"===s)for(o in r=new Url(e,{}),ignore)delete r[o];else if("object"===s){for(o in e)o in ignore||(r[o]=e[o]);void 0===r.slashes&&(r.slashes=slashes.test(e.href))}return r}function extractProtocol(e){var o=protocolre.exec(e);return{protocol:o[1]?o[1].toLowerCase():"",slashes:!!o[2],rest:o[3]}}function resolve(e,o){for(var t=(o||"/").split("/").slice(0,-1).concat(e.split("/")),r=t.length,s=t[r-1],a=!1,n=0;r--;)"."===t[r]?t.splice(r,1):".."===t[r]?(t.splice(r,1),n++):n&&(0===r&&(a=!0),t.splice(r,1),n--);return a&&t.unshift(""),"."!==s&&".."!==s||t.push(""),t.join("/")}function Url(e,o,t){if(!(this instanceof Url))return new Url(e,o,t);var r,s,a,n,l,i,c=rules.slice(),h=typeof o,p=this,u=0;for("object"!==h&&"string"!==h&&(t=o,o=null),t&&"function"!=typeof t&&(t=qs.parse),o=lolcation(o),r=!(s=extractProtocol(e||"")).protocol&&!s.slashes,p.slashes=s.slashes||r&&o.slashes,p.protocol=s.protocol||o.protocol||"",e=s.rest,s.slashes||(c[3]=[/(.*)/,"pathname"]);u<c.length;u++)"function"!=typeof(n=c[u])?(a=n[0],i=n[1],a!=a?p[i]=e:"string"==typeof a?~(l=e.indexOf(a))&&("number"==typeof n[2]?(p[i]=e.slice(0,l),e=e.slice(l+n[2])):(p[i]=e.slice(l),e=e.slice(0,l))):(l=a.exec(e))&&(p[i]=l[1],e=e.slice(0,l.index)),p[i]=p[i]||r&&n[3]&&o[i]||"",n[4]&&(p[i]=p[i].toLowerCase())):e=n(e);t&&(p.query=t(p.query)),r&&o.slashes&&"/"!==p.pathname.charAt(0)&&(""!==p.pathname||""!==o.pathname)&&(p.pathname=resolve(p.pathname,o.pathname)),required(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(n=p.auth.split(":"),p.username=n[0]||"",p.password=n[1]||""),p.origin=p.protocol&&p.host&&"file:"!==p.protocol?p.protocol+"//"+p.host:"null",p.href=p.toString()}function set(e,o,t){var r=this;switch(e){case"query":"string"==typeof o&&o.length&&(o=(t||qs.parse)(o)),r[e]=o;break;case"port":r[e]=o,required(o,r.protocol)?o&&(r.host=r.hostname+":"+o):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=o,r.port&&(o+=":"+r.port),r.host=o;break;case"host":r[e]=o,/:\d+$/.test(o)?(o=o.split(":"),r.port=o.pop(),r.hostname=o.join(":")):(r.hostname=o,r.port="");break;case"protocol":r.protocol=o.toLowerCase(),r.slashes=!t;break;case"pathname":case"hash":if(o){var s="pathname"===e?"/":"#";r[e]=o.charAt(0)!==s?s+o:o}else r[e]=o;break;default:r[e]=o}for(var a=0;a<rules.length;a++){var n=rules[a];n[4]&&(r[n[1]]=r[n[1]].toLowerCase())}return r.origin=r.protocol&&r.host&&"file:"!==r.protocol?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function toString(e){e&&"function"==typeof e||(e=qs.stringify);var o,t=this,r=t.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var s=r+(t.slashes?"//":"");return t.username&&(s+=t.username,t.password&&(s+=":"+t.password),s+="@"),s+=t.host+t.pathname,(o="object"==typeof t.query?e(t.query):t.query)&&(s+="?"!==o.charAt(0)?"?"+o:o),t.hash&&(s+=t.hash),s}Url.prototype={set:set,toString:toString},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.qs=qs,module.exports=Url;
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"querystringify":12,"requires-port":13}]},{},[1])(1)
});
});

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

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).getIt=e()}}(function(){return function e(t,r,o){function n(i,a){if(!r[i]){if(!t[i]){var u="function"==typeof require&&require;if(!a&&u)return u(i,!0);if(s)return s(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){var r=t[i][1][e];return n(r||e)},p,p.exports,e,t,r,o)}return r[i].exports}for(var s="function"==typeof require&&require,i=0;i<o.length;i++)n(o[i]);return n}({1:[function(e,t,r){"use strict";var o=e("nano-pubsub"),n=e("./util/middlewareReducer"),s=e("./middleware/defaultOptionsProcessor"),i=e("./middleware/defaultOptionsValidator"),a=e("./request"),u=["request","response","progress","error","abort"],c=["processOptions","validateOptions","interceptRequest","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function e(){function t(e){function t(e,t,o){var n=e,i=t;if(!n)try{i=s("onResponse",t,o)}catch(e){i=null,n=e}(n=n&&s("onError",n,o))?r.error.publish(n):i&&r.response.publish(i)}var r=u.reduce(function(e,t){return e[t]=o(),e},{}),s=n(l),i=s("processOptions",e);s("validateOptions",i);var c={options:i,channels:r,applyMiddleware:s},p=null,f=r.request.subscribe(function(e){p=a(e,function(r,o){return t(r,o,e)})});r.abort.subscribe(function(){f(),p&&p.abort()});var h=s("onReturn",r,c);return h===r&&r.request.publish(c),h}var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],p=[],l=c.reduce(function(e,t){return e[t]=e[t]||[],e},{processOptions:[s],validateOptions:[i]});return t.use=function(e){if(!e)throw new Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&l.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return c.forEach(function(t){e[t]&&l[t].push(e[t])}),p.push(e),t},t.clone=function(){return e(p)},r.forEach(t.use),t}},{"./middleware/defaultOptionsProcessor":2,"./middleware/defaultOptionsValidator":3,"./request":5,"./util/middlewareReducer":6,"nano-pubsub":9}],2:[function(e,t,r){"use strict";function o(e){function t(e,o){Array.isArray(o)?o.forEach(function(r){return t(e,r)}):r.push([e,o].map(encodeURIComponent).join("="))}var r=[];for(var o in e)c.call(e,o)&&t(o,e[o]);return r.length?r.join("&"):""}function n(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;var t=Number(e);return isNaN(t)?n(p.timeout):{connect:t,socket:t}}function s(e){var t={};for(var r in e)void 0!==e[r]&&(t[r]=e[r]);return t}var i=e("object-assign"),a=e("url-parse"),u="undefined"!=typeof navigator&&"ReactNative"===navigator.product,c=Object.prototype.hasOwnProperty,p={timeout:u?6e4:12e4};t.exports=function(e){var t="string"==typeof e?i({url:e},p):i({},p,e),r=a(t.url,{},!0);return t.timeout=n(t.timeout),t.query&&(r.query=i({},r.query,s(t.query))),t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t.url=r.toString(o),t}},{"object-assign":10,"url-parse":17}],3:[function(e,t,r){"use strict";var o=/^https?:\/\//i;t.exports=function(e){if(!o.test(e.url))throw new Error('"'+e.url+'" is not a valid URL')}},{}],4:[function(e,t,r){"use strict";var o=e("same-origin"),n=e("parse-headers"),s=window,i=s.XMLHttpRequest||function(){},a="withCredentials"in new i?i:s.XDomainRequest;t.exports=function(e,t){function r(t){x=!0,m.abort();var r=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+h.url:"Connection timed out on request to "+h.url);r.code=t,e.channels.error.publish(r)}function u(){E&&(c(),d.socket=setTimeout(function(){return r("ESOCKETTIMEDOUT")},E.socket))}function c(){(O||m.readyState>=2&&d.connect)&&clearTimeout(d.connect),d.socket&&clearTimeout(d.socket)}function p(){if(!q){c(),q=!0,m=null;var e=new Error("Network error while attempting to reach "+h.url);e.isNetworkError=!0,e.request=h,t(e)}}function l(){var e=m.status,t=m.statusText;if(b&&void 0===e)e=200;else{if(e>12e3&&e<12156)return p();e=1223===m.status?204:m.status,t=1223===m.status?"No Content":t}return{body:m.response||m.responseText,url:h.url,method:h.method,headers:b?{}:n(m.getAllResponseHeaders()),statusCode:e,statusMessage:t}}function f(){O||q||x||(0!==m.status?(c(),q=!0,t(null,l())):p(new Error("Unknown XHR error")))}var h=e.options,d={},w=s&&s.location&&!o(s.location.href,h.url),v=e.applyMiddleware("interceptRequest",void 0,{adapter:"xhr",context:e});if(v){var y=setTimeout(t,0,null,v);return{abort:function(){return clearTimeout(y)}}}var m=w?new a:new i,b=s.XDomainRequest&&m instanceof s.XDomainRequest,g=h.headers,O=!1,q=!1,x=!1;if(m.onerror=p,m.ontimeout=p,m.onabort=function(){O=!0},m.onprogress=function(){},m[b?"onload":"onreadystatechange"]=function(){u(),O||4!==m.readyState&&!b||0!==m.status&&f()},m.open(h.method,h.url,!0),m.withCredentials=!!h.withCredentials,g&&m.setRequestHeader)for(var j in g)g.hasOwnProperty(j)&&m.setRequestHeader(j,g[j]);else if(g&&b)throw new Error("Headers cannot be set on an XDomainRequest object");h.rawBody&&(m.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:h,adapter:"xhr",request:m,context:e}),m.send(h.body||null);var E=h.timeout;return E&&(d.connect=setTimeout(function(){return r("ETIMEDOUT")},E.connect)),{abort:function(){O=!0,m&&m.abort()}}}},{"parse-headers":11,"same-origin":14}],5:[function(e,t,r){"use strict";t.exports=e("./node-request")},{"./node-request":4}],6:[function(e,t,r){"use strict";t.exports=function(e){return function(t,r){for(var o=arguments.length,n=Array(o>2?o-2:0),s=2;s<o;s++)n[s-2]=arguments[s];return e[t].reduce(function(e,t){return t.apply(void 0,[e].concat(n))},r)}}},{}],7:[function(e,t,r){function o(e,t,r){for(var o=0,n=e.length;o<n;o++)u.call(e,o)&&t.call(r,e[o],o,e)}function n(e,t,r){for(var o=0,n=e.length;o<n;o++)t.call(r,e.charAt(o),o,e)}function s(e,t,r){for(var o in e)u.call(e,o)&&t.call(r,e[o],o,e)}var i=e("is-function");t.exports=function(e,t,r){if(!i(t))throw new TypeError("iterator must be a function");arguments.length<3&&(r=this),"[object Array]"===a.call(e)?o(e,t,r):"string"==typeof e?n(e,t,r):s(e,t,r)};var a=Object.prototype.toString,u=Object.prototype.hasOwnProperty},{"is-function":8}],8:[function(e,t,r){t.exports=function(e){var t=o.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var o=Object.prototype.toString},{}],9:[function(e,t,r){t.exports=function(){var e=[];return{subscribe:function(t){return e.push(t),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}},publish:function(){for(var t=0;t<e.length;t++)e[t].apply(null,arguments)}}}},{}],10:[function(e,t,r){"use strict";function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,u=o(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var p in r)s.call(r,p)&&(u[p]=r[p]);if(n){a=n(r);for(var l=0;l<a.length;l++)i.call(r,a[l])&&(u[a[l]]=r[a[l]])}}return u}},{}],11:[function(e,t,r){var o=e("trim"),n=e("for-each"),s=function(e){return"[object Array]"===Object.prototype.toString.call(e)};t.exports=function(e){if(!e)return{};var t={};return n(o(e).split("\n"),function(e){var r=e.indexOf(":"),n=o(e.slice(0,r)).toLowerCase(),i=o(e.slice(r+1));void 0===t[n]?t[n]=i:s(t[n])?t[n].push(i):t[n]=[t[n],i]}),t}},{"for-each":7,trim:16}],12:[function(e,t,r){"use strict";function o(e){return decodeURIComponent(e.replace(/\+/g," "))}var n=Object.prototype.hasOwnProperty;r.stringify=function(e,t){var r=[];"string"!=typeof(t=t||"")&&(t="?");for(var o in e)n.call(e,o)&&r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?t+r.join("&"):""},r.parse=function(e){for(var t,r=/([^=?&]+)=?([^&]*)/g,n={};t=r.exec(e);n[o(t[1])]=o(t[2]));return n}},{}],13:[function(e,t,r){"use strict";t.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},{}],14:[function(e,t,r){"use strict";var o=e("url");t.exports=function(e,t,r){if(e===t)return!0;var n=o.parse(e,!1,!0),s=o.parse(t,!1,!0),i=0|n.port||("https"===n.protocol?443:80),a=0|s.port||("https"===s.protocol?443:80),u={proto:n.protocol===s.protocol,hostname:n.hostname===s.hostname,port:i===a};return u.proto&&u.hostname&&(u.port||r)}},{url:15}],15:[function(e,t,r){"use strict";var o=/^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;t.exports={regex:o,parse:function(e){var t=o.exec(e);return t?{protocol:(t[1]||"").toLowerCase()||void 0,hostname:(t[5]||"").toLowerCase()||void 0,port:t[6]||void 0}:{}}}},{}],16:[function(e,t,r){(r=t.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},r.right=function(e){return e.replace(/\s*$/,"")}},{}],17:[function(e,t,r){(function(r){"use strict";function o(e){var t,o={},n=typeof(e=e||r.location||{});if("blob:"===e.protocol)o=new i(unescape(e.pathname),{});else if("string"===n){o=new i(e,{});for(t in f)delete o[t]}else if("object"===n){for(t in e)t in f||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=p.test(e.href))}return o}function n(e){var t=c.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function s(e,t){for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),o=r.length,n=r[o-1],s=!1,i=0;o--;)"."===r[o]?r.splice(o,1):".."===r[o]?(r.splice(o,1),i++):i&&(0===o&&(s=!0),r.splice(o,1),i--);return s&&r.unshift(""),"."!==n&&".."!==n||r.push(""),r.join("/")}function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);var c,p,f,h,d,w,v=l.slice(),y=typeof t,m=this,b=0;for("object"!==y&&"string"!==y&&(r=t,t=null),r&&"function"!=typeof r&&(r=u.parse),t=o(t),c=!(p=n(e||"")).protocol&&!p.slashes,m.slashes=p.slashes||c&&t.slashes,m.protocol=p.protocol||t.protocol||"",e=p.rest,p.slashes||(v[2]=[/(.*)/,"pathname"]);b<v.length;b++)f=(h=v[b])[0],w=h[1],f!==f?m[w]=e:"string"==typeof f?~(d=e.indexOf(f))&&("number"==typeof h[2]?(m[w]=e.slice(0,d),e=e.slice(d+h[2])):(m[w]=e.slice(d),e=e.slice(0,d))):(d=f.exec(e))&&(m[w]=d[1],e=e.slice(0,d.index)),m[w]=m[w]||(c&&h[3]?t[w]||"":""),h[4]&&(m[w]=m[w].toLowerCase());r&&(m.query=r(m.query)),c&&t.slashes&&"/"!==m.pathname.charAt(0)&&(""!==m.pathname||""!==t.pathname)&&(m.pathname=s(m.pathname,t.pathname)),a(m.port,m.protocol)||(m.host=m.hostname,m.port=""),m.username=m.password="",m.auth&&(h=m.auth.split(":"),m.username=h[0]||"",m.password=h[1]||""),m.origin=m.protocol&&m.host&&"file:"!==m.protocol?m.protocol+"//"+m.host:"null",m.href=m.toString()}var a=e("requires-port"),u=e("querystringify"),c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,p=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};i.prototype={set:function(e,t,r){var o=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||u.parse)(t)),o[e]=t;break;case"port":o[e]=t,a(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,/:\d+$/.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!r;break;case"pathname":o.pathname=t.length&&"/"!==t.charAt(0)?"/"+t:t;break;default:o[e]=t}for(var n=0;n<l.length;n++){var s=l[n];s[4]&&(o[s[1]]=o[s[1]].toLowerCase())}return o.origin=o.protocol&&o.host&&"file:"!==o.protocol?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"==typeof e||(e=u.stringify);var t,r=this,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var n=o+(r.slashes?"//":"");return r.username&&(n+=r.username,r.password&&(n+=":"+r.password),n+="@"),n+=r.host+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(n+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(n+=r.hash),n}},i.extractProtocol=n,i.location=o,i.qs=u,t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{querystringify:12,"requires-port":13}]},{},[1])(1)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).getIt=e()}}(function(){return function s(i,a,u){function c(t,e){if(!a[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var n=a[t]={exports:{}};i[t][0].call(n.exports,function(e){return c(i[t][1][e]||e)},n,n.exports,s,i,a,u)}return a[t].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,r){"use strict";var c=e("nano-pubsub"),l=e("./util/middlewareReducer"),n=e("./middleware/defaultOptionsProcessor"),s=e("./middleware/defaultOptionsValidator"),p=e("./request"),f=["request","response","progress","error","abort"],i=["processOptions","validateOptions","interceptRequest","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],r=[],u=i.reduce(function(e,t){return e[t]=e[t]||[],e},{processOptions:[n],validateOptions:[s]});function o(e){var i=f.reduce(function(e,t){return e[t]=c(),e},{}),a=l(u),t=a("processOptions",e);a("validateOptions",t);var r={options:t,channels:i,applyMiddleware:a},o=null,n=i.request.subscribe(function(t){o=p(t,function(s,e){return function(e,t,r){var o=s,n=t;if(!o)try{n=a("onResponse",t,r)}catch(e){n=null,o=e}(o=o&&a("onError",o,r))?i.error.publish(o):n&&i.response.publish(n)}(0,e,t)})});i.abort.subscribe(function(){n(),o&&o.abort()});var s=a("onReturn",i,r);return s===i&&i.request.publish(r),s}return o.use=function(t){if(!t)throw new Error("Tried to add middleware that resolved to falsey value");if("function"==typeof t)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&0<u.onReturn.length)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return i.forEach(function(e){t[e]&&u[e].push(t[e])}),r.push(t),o},o.clone=function(){return e(r)},t.forEach(o.use),o}},{"./middleware/defaultOptionsProcessor":2,"./middleware/defaultOptionsValidator":3,"./request":5,"./util/middlewareReducer":6,"nano-pubsub":9}],2:[function(e,t,r){"use strict";var o=e("object-assign"),n=e("url-parse"),s="undefined"!=typeof navigator&&"ReactNative"===navigator.product,i=Object.prototype.hasOwnProperty,a={timeout:s?6e4:12e4};function u(e){var r=[];for(var t in e)i.call(e,t)&&o(t,e[t]);return r.length?r.join("&"):"";function o(t,e){Array.isArray(e)?e.forEach(function(e){return o(t,e)}):r.push([t,e].map(encodeURIComponent).join("="))}}t.exports=function(e){var t="string"==typeof e?o({url:e},a):o({},a,e),r=n(t.url,{},!0);return t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;var r=Number(t);return isNaN(r)?e(a.timeout):{connect:r,socket:r}}(t.timeout),t.query&&(r.query=o({},r.query,function(e){var t={};for(var r in e)void 0!==e[r]&&(t[r]=e[r]);return t}(t.query))),t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t.url=r.toString(u),t}},{"object-assign":10,"url-parse":17}],3:[function(e,t,r){"use strict";var o=/^https?:\/\//i;t.exports=function(e){if(!o.test(e.url))throw new Error('"'+e.url+'" is not a valid URL')}},{}],4:[function(e,t,r){"use strict";var m=e("same-origin"),w=e("parse-headers"),g=window,O=g.XMLHttpRequest||function(){},q="withCredentials"in new O?O:g.XDomainRequest;t.exports=function(r,t){var o=r.options,e={},n=g&&g.location&&!m(g.location.href,o.url),s=r.applyMiddleware("interceptRequest",void 0,{adapter:"xhr",context:r});if(s){var i=setTimeout(t,0,null,s);return{abort:function(){return clearTimeout(i)}}}var a=n?new q:new O,u=g.XDomainRequest&&a instanceof g.XDomainRequest,c=o.headers,l=!1,p=!1,f=!1;if(a.onerror=b,a.ontimeout=b,a.onabort=function(){l=!0},a.onprogress=function(){},a[u?"onload":"onreadystatechange"]=function(){d&&(v(),e.socket=setTimeout(function(){return y("ESOCKETTIMEDOUT")},d.socket)),l||4!==a.readyState&&!u||0!==a.status&&(l||p||f||(0!==a.status?(v(),p=!0,t(null,function(){var e=a.status,t=a.statusText;if(u&&void 0===e)e=200;else{if(12e3<e&&e<12156)return b();e=1223===a.status?204:a.status,t=1223===a.status?"No Content":t}return{body:a.response||a.responseText,url:o.url,method:o.method,headers:u?{}:w(a.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())):b(new Error("Unknown XHR error"))))},a.open(o.method,o.url,!0),a.withCredentials=!!o.withCredentials,c&&a.setRequestHeader)for(var h in c)c.hasOwnProperty(h)&&a.setRequestHeader(h,c[h]);else if(c&&u)throw new Error("Headers cannot be set on an XDomainRequest object");o.rawBody&&(a.responseType="arraybuffer"),r.applyMiddleware("onRequest",{options:o,adapter:"xhr",request:a,context:r}),a.send(o.body||null);var d=o.timeout;return d&&(e.connect=setTimeout(function(){return y("ETIMEDOUT")},d.connect)),{abort:function(){l=!0,a&&a.abort()}};function y(e){f=!0,a.abort();var t=new Error("ESOCKETTIMEDOUT"===e?"Socket timed out on request to "+o.url:"Connection timed out on request to "+o.url);t.code=e,r.channels.error.publish(t)}function v(){(l||2<=a.readyState&&e.connect)&&clearTimeout(e.connect),e.socket&&clearTimeout(e.socket)}function b(){if(!p){v(),p=!0,a=null;var e=new Error("Network error while attempting to reach "+o.url);e.isNetworkError=!0,e.request=o,t(e)}}}},{"parse-headers":11,"same-origin":14}],5:[function(e,t,r){"use strict";t.exports=e("./node-request")},{"./node-request":4}],6:[function(e,t,r){"use strict";t.exports=function(s){return function(e,t){for(var r=arguments.length,o=Array(2<r?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];return s[e].reduce(function(e,t){return t.apply(void 0,[e].concat(o))},t)}}},{}],7:[function(e,t,r){"use strict";var n=e("is-callable"),s=Object.prototype.toString,i=Object.prototype.hasOwnProperty;t.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var o;3<=arguments.length&&(o=r),"[object Array]"===s.call(e)?function(e,t,r){for(var o=0,n=e.length;o<n;o++)i.call(e,o)&&(null==r?t(e[o],o,e):t.call(r,e[o],o,e))}(e,t,o):"string"==typeof e?function(e,t,r){for(var o=0,n=e.length;o<n;o++)null==r?t(e.charAt(o),o,e):t.call(r,e.charAt(o),o,e)}(e,t,o):function(e,t,r){for(var o in e)i.call(e,o)&&(null==r?t(e[o],o,e):t.call(r,e[o],o,e))}(e,t,o)}},{"is-callable":8}],8:[function(e,t,r){"use strict";var o=Function.prototype.toString,n=/^\s*class\b/,s=function(e){try{var t=o.call(e);return n.test(t)}catch(e){return!1}},i=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(a)return function(e){try{return!s(e)&&(o.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=i.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},{}],9:[function(e,t,r){t.exports=function(){var r=[];return{subscribe:function(t){return r.push(t),function(){var e=r.indexOf(t);-1<e&&r.splice(e,1)}},publish:function(){for(var e=0;e<r.length;e++)r[e].apply(null,arguments)}}}},{}],10:[function(e,t,r){"use strict";var u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,o,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var i in r=Object(arguments[s]))c.call(r,i)&&(n[i]=r[i]);if(u){o=u(r);for(var a=0;a<o.length;a++)l.call(r,o[a])&&(n[o[a]]=r[o[a]])}}return n}},{}],11:[function(e,t,r){var i=e("trim"),o=e("for-each");t.exports=function(e){if(!e)return{};var s={};return o(i(e).split("\n"),function(e){var t,r=e.indexOf(":"),o=i(e.slice(0,r)).toLowerCase(),n=i(e.slice(r+1));void 0===s[o]?s[o]=n:(t=s[o],"[object Array]"===Object.prototype.toString.call(t)?s[o].push(n):s[o]=[s[o],n])}),s}},{"for-each":7,trim:16}],12:[function(e,t,r){"use strict";var s=Object.prototype.hasOwnProperty;function i(e){return decodeURIComponent(e.replace(/\+/g," "))}r.stringify=function(e,t){t=t||"";var r,o,n=[];for(o in"string"!=typeof t&&(t="?"),e)s.call(e,o)&&((r=e[o])||null!=r&&!isNaN(r)||(r=""),n.push(encodeURIComponent(o)+"="+encodeURIComponent(r)));return n.length?t+n.join("&"):""},r.parse=function(e){for(var t,r=/([^=?&]+)=?([^&]*)/g,o={};t=r.exec(e);){var n=i(t[1]),s=i(t[2]);n in o||(o[n]=s)}return o}},{}],13:[function(e,t,r){"use strict";t.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},{}],14:[function(e,t,r){"use strict";var u=e("url");t.exports=function(e,t,r){if(e===t)return!0;var o=u.parse(e,!1,!0),n=u.parse(t,!1,!0),s=0|o.port||("https"===o.protocol?443:80),i=0|n.port||("https"===n.protocol?443:80),a={proto:o.protocol===n.protocol,hostname:o.hostname===n.hostname,port:s===i};return a.proto&&a.hostname&&(a.port||r)}},{url:15}],15:[function(e,t,r){"use strict";var o=/^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;t.exports={regex:o,parse:function(e){var t=o.exec(e);return t?{protocol:(t[1]||"").toLowerCase()||void 0,hostname:(t[5]||"").toLowerCase()||void 0,port:t[6]||void 0}:{}}}},{}],16:[function(e,t,r){(r=t.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},r.right=function(e){return e.replace(/\s*$/,"")}},{}],17:[function(e,t,r){(function(s){"use strict";var h=e("requires-port"),d=e("querystringify"),r=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=[["#","hash"],["?","query"],function(e){return e.replace("\\","/")},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],a={hash:1,query:1};function v(e){var t,r=("undefined"!=typeof window?window:void 0!==s?s:"undefined"!=typeof self?self:{}).location||{},o={},n=typeof(e=e||r);if("blob:"===e.protocol)o=new m(unescape(e.pathname),{});else if("string"===n)for(t in o=new m(e,{}),a)delete o[t];else if("object"===n){for(t in e)t in a||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=i.test(e.href))}return o}function b(e){var t=r.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function m(e,t,r){if(!(this instanceof m))return new m(e,t,r);var o,n,s,i,a,u,c=y.slice(),l=typeof t,p=this,f=0;for("object"!==l&&"string"!==l&&(r=t,t=null),r&&"function"!=typeof r&&(r=d.parse),t=v(t),o=!(n=b(e||"")).protocol&&!n.slashes,p.slashes=n.slashes||o&&t.slashes,p.protocol=n.protocol||t.protocol||"",e=n.rest,n.slashes||(c[3]=[/(.*)/,"pathname"]);f<c.length;f++)"function"!=typeof(i=c[f])?(s=i[0],u=i[1],s!=s?p[u]=e:"string"==typeof s?~(a=e.indexOf(s))&&(e="number"==typeof i[2]?(p[u]=e.slice(0,a),e.slice(a+i[2])):(p[u]=e.slice(a),e.slice(0,a))):(a=s.exec(e))&&(p[u]=a[1],e=e.slice(0,a.index)),p[u]=p[u]||o&&i[3]&&t[u]||"",i[4]&&(p[u]=p[u].toLowerCase())):e=i(e);r&&(p.query=r(p.query)),o&&t.slashes&&"/"!==p.pathname.charAt(0)&&(""!==p.pathname||""!==t.pathname)&&(p.pathname=function(e,t){for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),o=r.length,n=r[o-1],s=!1,i=0;o--;)"."===r[o]?r.splice(o,1):".."===r[o]?(r.splice(o,1),i++):i&&(0===o&&(s=!0),r.splice(o,1),i--);return s&&r.unshift(""),"."!==n&&".."!==n||r.push(""),r.join("/")}(p.pathname,t.pathname)),h(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(i=p.auth.split(":"),p.username=i[0]||"",p.password=i[1]||""),p.origin=p.protocol&&p.host&&"file:"!==p.protocol?p.protocol+"//"+p.host:"null",p.href=p.toString()}m.prototype={set:function(e,t,r){var o=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||d.parse)(t)),o[e]=t;break;case"port":o[e]=t,h(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,/:\d+$/.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!r;break;case"pathname":case"hash":if(t){var n="pathname"===e?"/":"#";o[e]=t.charAt(0)!==n?n+t:t}else o[e]=t;break;default:o[e]=t}for(var s=0;s<y.length;s++){var i=y[s];i[4]&&(o[i[1]]=o[i[1]].toLowerCase())}return o.origin=o.protocol&&o.host&&"file:"!==o.protocol?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){e&&"function"==typeof e||(e=d.stringify);var t,r=this,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var n=o+(r.slashes?"//":"");return r.username&&(n+=r.username,r.password&&(n+=":"+r.password),n+="@"),n+=r.host+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(n+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(n+=r.hash),n}},m.extractProtocol=b,m.location=v,m.qs=d,t.exports=m}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{querystringify:12,"requires-port":13}]},{},[1])(1)});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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