New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

get-it

Package Overview
Dependencies
Maintainers
5
Versions
162
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 5.1.0-fetch to 5.1.0

3

lib-node/index.js

@@ -7,3 +7,3 @@ 'use strict';

const validateOptions = require('./middleware/defaultOptionsValidator');
const httpRequest = require('./request'); // node-request in node, browser-request in browsers
const httpRequester = require('./request'); // node-request in node, browser-request in browsers

@@ -15,2 +15,3 @@ const channelNames = ['request', 'response', 'progress', 'error', 'abort'];

let initMiddleware = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
let httpRequest = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : httpRequester;

@@ -17,0 +18,0 @@ const loadedMiddleware = [];

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

const headers = options.headers;
const delays = options.timeout;

@@ -117,3 +118,2 @@ // Request state

// Figure out which timeouts to use (if any)
const delays = options.timeout;
if (delays) {

@@ -120,0 +120,0 @@ timers.connect = setTimeout(() => timeoutRequest('ETIMEDOUT'), delays.connect);

@@ -25,4 +25,4 @@ 'use strict';

FetchXhr.prototype.setRequestHeader = function (key, value) {
this._headers = this._headers || new Headers();
this._headers.append(key, value);
this._headers = this._headers || {};
this._headers[key] = value;
};

@@ -32,3 +32,3 @@ FetchXhr.prototype.send = function (body) {

const ctrl = this._controller = typeof AbortController === 'function' && new AbortController();
const textBody = this.responseType !== 'arrayBuffer';
const textBody = this.responseType !== 'arraybuffer';
const options = {

@@ -54,9 +54,8 @@ method: this._method,

this.readyState = 3; // Loading
this.onreadystatechange();
return textBody ? res.text() : res.arrayBuffer();
}).then(resBody => {
if (textBody) {
this.responseText = resBody;
} else {
this.response = resBody;
} else {
this.responseType = resBody;
}

@@ -63,0 +62,0 @@ this.readyState = 4; // Done

@@ -7,3 +7,3 @@ 'use strict';

var validateOptions = require('./middleware/defaultOptionsValidator');
var httpRequest = require('./request'); // node-request in node, browser-request in browsers
var httpRequester = require('./request'); // node-request in node, browser-request in browsers

@@ -15,2 +15,3 @@ var channelNames = ['request', 'response', 'progress', 'error', 'abort'];

var initMiddleware = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var httpRequest = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : httpRequester;

@@ -17,0 +18,0 @@ var loadedMiddleware = [];

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

var headers = options.headers;
var delays = options.timeout;

@@ -119,3 +120,2 @@ // Request state

// Figure out which timeouts to use (if any)
var delays = options.timeout;
if (delays) {

@@ -122,0 +122,0 @@ timers.connect = setTimeout(function () {

@@ -25,4 +25,4 @@ 'use strict';

FetchXhr.prototype.setRequestHeader = function (key, value) {
this._headers = this._headers || new Headers();
this._headers.append(key, value);
this._headers = this._headers || {};
this._headers[key] = value;
};

@@ -34,3 +34,3 @@ FetchXhr.prototype.send = function (body) {

var ctrl = this._controller = typeof AbortController === 'function' && new AbortController();
var textBody = this.responseType !== 'arrayBuffer';
var textBody = this.responseType !== 'arraybuffer';
var options = {

@@ -56,9 +56,8 @@ method: this._method,

_this.readyState = 3; // Loading
_this.onreadystatechange();
return textBody ? res.text() : res.arrayBuffer();
}).then(function (resBody) {
if (textBody) {
_this.responseText = resBody;
} else {
_this.response = resBody;
} else {
_this.responseType = resBody;
}

@@ -65,0 +64,0 @@ _this.readyState = 4; // Done

{
"name": "get-it",
"version": "5.1.0-fetch",
"version": "5.1.0",
"description": "Generic HTTP request library for node and browsers",

@@ -101,2 +101,3 @@ "main": "index.js",

"mocha": "^3.4.2",
"node-fetch": "^2.0.0",
"nyc": "^11.0.3",

@@ -103,0 +104,0 @@ "prettier": "^1.15.2",

(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","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];module.exports=function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=middlehooks.reduce(function(e,r){return e[r]=e[r]||[],e},{processOptions:[processOptions],validateOptions:[validateOptions]});function o(e){var r=channelNames.reduce(function(e,r){return e[r]=pubsub(),e},{}),t=middlewareReducer(n),o=t("processOptions",e);t("validateOptions",o);var s={options:o,channels:r,applyMiddleware:t},i=null,u=r.request.subscribe(function(e){i=httpRequest(e,function(n,o){return function(e,n,o){var s=e,i=n;if(!s)try{i=t("onResponse",n,o)}catch(e){i=null,s=e}(s=s&&t("onError",s,o))?r.error.publish(s):i&&r.response.publish(i)}(n,o,e)})});r.abort.subscribe(function(){u(),i&&i.abort()});var a=t("onReturn",r,s);return a===r&&r.request.publish(s),a}return o.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])}),t.push(e),o},o.clone=function(){return e(t)},r.forEach(o.use),o};
"use strict";var pubsub=require("nano-pubsub"),middlewareReducer=require("./util/middlewareReducer"),processOptions=require("./middleware/defaultOptionsProcessor"),validateOptions=require("./middleware/defaultOptionsValidator"),httpRequester=require("./request"),channelNames=["request","response","progress","error","abort"],middlehooks=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];module.exports=function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:httpRequester,n=[],o=middlehooks.reduce(function(e,r){return e[r]=e[r]||[],e},{processOptions:[processOptions],validateOptions:[validateOptions]});function s(e){var r=channelNames.reduce(function(e,r){return e[r]=pubsub(),e},{}),n=middlewareReducer(o),s=n("processOptions",e);n("validateOptions",s);var i={options:s,channels:r,applyMiddleware:n},u=null,a=r.request.subscribe(function(e){u=t(e,function(t,o){return function(e,t,o){var s=e,i=t;if(!s)try{i=n("onResponse",t,o)}catch(e){i=null,s=e}(s=s&&n("onError",s,o))?r.error.publish(s):i&&r.response.publish(i)}(t,o,e)})});r.abort.subscribe(function(){a(),u&&u.abort()});var d=n("onReturn",r,i);return d===r&&r.request.publish(i),d}return s.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])}),n.push(e),s},s.clone=function(){return e(n)},r.forEach(s.use),s};

@@ -11,6 +11,6 @@ },{"./middleware/defaultOptionsProcessor":2,"./middleware/defaultOptionsValidator":3,"./request":6,"./util/middlewareReducer":7,"nano-pubsub":23}],2:[function(require,module,exports){

},{}],4:[function(require,module,exports){
"use strict";var sameOrigin=require("same-origin"),parseHeaders=require("parse-headers"),FetchXhr=require("./browser/fetchXhr"),noop=function(){},win="undefined"==typeof window?void 0:window,adapter=win?"xhr":"fetch",XmlHttpRequest="function"==typeof XMLHttpRequest?XMLHttpRequest:noop,hasXhr2="withCredentials"in new XmlHttpRequest,XDR="undefined"==typeof XDomainRequest?void 0:XDomainRequest,CrossDomainRequest=hasXhr2?XmlHttpRequest:XDR;win||(XmlHttpRequest=FetchXhr,CrossDomainRequest=FetchXhr),module.exports=function(e,t){var r=e.options,n=e.applyMiddleware("finalizeOptions",r),o={},s=win&&win.location&&!sameOrigin(win.location.href,n.url),i=e.applyMiddleware("interceptRequest",void 0,{adapter:adapter,context:e});if(i){var a=setTimeout(t,0,null,i);return{abort:function(){return clearTimeout(a)}}}var u=s?new CrossDomainRequest:new XmlHttpRequest,c=win&&win.XDomainRequest&&u instanceof win.XDomainRequest,d=n.headers,l=!1,p=!1,f=!1;if(u.onerror=R,u.ontimeout=R,u.onabort=function(){l=!0},u.onprogress=function(){},u[c?"onload":"onreadystatechange"]=function(){!function(){if(!h)return;q(),o.socket=setTimeout(function(){return m("ESOCKETTIMEDOUT")},h.socket)}(),l||4!==u.readyState&&!c||0!==u.status&&function(){if(l||p||f)return;if(0===u.status)return void R(new Error("Unknown XHR error"));q(),p=!0,t(null,function(){var e=u.status,t=u.statusText;if(c&&void 0===e)e=200;else{if(e>12e3&&e<12156)return R();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:c?{}:parseHeaders(u.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())}()},u.open(n.method,n.url,!0),u.withCredentials=!!n.withCredentials,d&&u.setRequestHeader)for(var w in d)d.hasOwnProperty(w)&&u.setRequestHeader(w,d[w]);else if(d&&c)throw new Error("Headers cannot be set on an XDomainRequest object");n.rawBody&&(u.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:adapter,request:u,context:e}),u.send(n.body||null);var h=n.timeout;return h&&(o.connect=setTimeout(function(){return m("ETIMEDOUT")},h.connect)),{abort:function(){l=!0,u&&u.abort()}};function m(t){f=!0,u.abort();var r=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+n.url:"Connection timed out on request to "+n.url);r.code=t,e.channels.error.publish(r)}function q(){(l||u.readyState>=2&&o.connect)&&clearTimeout(o.connect),o.socket&&clearTimeout(o.socket)}function R(e){if(!p){q(),p=!0,u=null;var r=e||new Error("Network error while attempting to reach "+n.url);r.isNetworkError=!0,r.request=n,t(r)}}};
"use strict";var sameOrigin=require("same-origin"),parseHeaders=require("parse-headers"),FetchXhr=require("./browser/fetchXhr"),noop=function(){},win="undefined"==typeof window?void 0:window,adapter=win?"xhr":"fetch",XmlHttpRequest="function"==typeof XMLHttpRequest?XMLHttpRequest:noop,hasXhr2="withCredentials"in new XmlHttpRequest,XDR="undefined"==typeof XDomainRequest?void 0:XDomainRequest,CrossDomainRequest=hasXhr2?XmlHttpRequest:XDR;win||(XmlHttpRequest=FetchXhr,CrossDomainRequest=FetchXhr),module.exports=function(e,t){var r=e.options,n=e.applyMiddleware("finalizeOptions",r),o={},s=win&&win.location&&!sameOrigin(win.location.href,n.url),i=e.applyMiddleware("interceptRequest",void 0,{adapter:adapter,context:e});if(i){var a=setTimeout(t,0,null,i);return{abort:function(){return clearTimeout(a)}}}var u=s?new CrossDomainRequest:new XmlHttpRequest,c=win&&win.XDomainRequest&&u instanceof win.XDomainRequest,d=n.headers,l=n.timeout,p=!1,f=!1,w=!1;if(u.onerror=R,u.ontimeout=R,u.onabort=function(){p=!0},u.onprogress=function(){},u[c?"onload":"onreadystatechange"]=function(){!function(){if(!l)return;q(),o.socket=setTimeout(function(){return m("ESOCKETTIMEDOUT")},l.socket)}(),p||4!==u.readyState&&!c||0!==u.status&&function(){if(p||f||w)return;if(0===u.status)return void R(new Error("Unknown XHR error"));q(),f=!0,t(null,function(){var e=u.status,t=u.statusText;if(c&&void 0===e)e=200;else{if(e>12e3&&e<12156)return R();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:c?{}:parseHeaders(u.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())}()},u.open(n.method,n.url,!0),u.withCredentials=!!n.withCredentials,d&&u.setRequestHeader)for(var h in d)d.hasOwnProperty(h)&&u.setRequestHeader(h,d[h]);else if(d&&c)throw new Error("Headers cannot be set on an XDomainRequest object");return n.rawBody&&(u.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:adapter,request:u,context:e}),u.send(n.body||null),l&&(o.connect=setTimeout(function(){return m("ETIMEDOUT")},l.connect)),{abort:function(){p=!0,u&&u.abort()}};function m(t){w=!0,u.abort();var r=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+n.url:"Connection timed out on request to "+n.url);r.code=t,e.channels.error.publish(r)}function q(){(p||u.readyState>=2&&o.connect)&&clearTimeout(o.connect),o.socket&&clearTimeout(o.socket)}function R(e){if(!f){q(),f=!0,u=null;var r=e||new Error("Network error while attempting to reach "+n.url);r.isNetworkError=!0,r.request=n,t(r)}}};
},{"./browser/fetchXhr":5,"parse-headers":28,"same-origin":31}],5:[function(require,module,exports){
"use strict";function FetchXhr(){this.readyState=0}FetchXhr.prototype.open=function(e,t){this._method=e,this._url=t,this._resHeaders="",this.readyState=1,this.onreadystatechange()},FetchXhr.prototype.abort=function(){this._controller&&this._controller.abort()},FetchXhr.prototype.getAllResponseHeaders=function(){return this._resHeaders},FetchXhr.prototype.setRequestHeader=function(e,t){this._headers=this._headers||new Headers,this._headers.append(e,t)},FetchXhr.prototype.send=function(e){var t=this,r=this._controller="function"==typeof AbortController&&new AbortController,s="arrayBuffer"!==this.responseType,o={method:this._method,headers:this._headers,signal:r&&r.signal,body:e};"undefined"!=typeof window&&(o.credentials=this.withCredentials?"include":"omit"),fetch(this._url,o).then(function(e){return e.headers.forEach(function(e,r){t._resHeaders+=r+": "+e+"\r\n"}),t.status=e.status,t.statusText=e.statusText,t.readyState=3,t.onreadystatechange(),s?e.text():e.arrayBuffer()}).then(function(e){s?t.response=e:t.responseType=e,t.readyState=4,t.onreadystatechange()}).catch(function(e){"AbortError"!==e.name?t.onerror(e):t.onabort()})},module.exports=FetchXhr;
"use strict";function FetchXhr(){this.readyState=0}FetchXhr.prototype.open=function(t,e){this._method=t,this._url=e,this._resHeaders="",this.readyState=1,this.onreadystatechange()},FetchXhr.prototype.abort=function(){this._controller&&this._controller.abort()},FetchXhr.prototype.getAllResponseHeaders=function(){return this._resHeaders},FetchXhr.prototype.setRequestHeader=function(t,e){this._headers=this._headers||{},this._headers[t]=e},FetchXhr.prototype.send=function(t){var e=this,r=this._controller="function"==typeof AbortController&&new AbortController,s="arraybuffer"!==this.responseType,o={method:this._method,headers:this._headers,signal:r&&r.signal,body:t};"undefined"!=typeof window&&(o.credentials=this.withCredentials?"include":"omit"),fetch(this._url,o).then(function(t){return t.headers.forEach(function(t,r){e._resHeaders+=r+": "+t+"\r\n"}),e.status=t.status,e.statusText=t.statusText,e.readyState=3,s?t.text():t.arrayBuffer()}).then(function(t){s?e.responseText=t:e.response=t,e.readyState=4,e.onreadystatechange()}).catch(function(t){"AbortError"!==t.name?e.onerror(t):e.onabort()})},module.exports=FetchXhr;

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

@@ -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 i(a,u,s){function p(t,e){if(!u[t]){if(!a[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var n=u[t]={exports:{}};a[t][0].call(n.exports,function(e){return p(a[t][1][e]||e)},n,n.exports,i,a,u,s)}return u[t].exports}for(var c="function"==typeof require&&require,e=0;e<s.length;e++)p(s[e]);return p}({1:[function(e,t,r){"use strict";var p=e("nano-pubsub"),c=e("./util/middlewareReducer"),i=e("./middleware/defaultOptionsProcessor"),a=e("./middleware/defaultOptionsValidator"),l=e("./request"),f=["request","response","progress","error","abort"],u=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function e(t){var r=0<arguments.length&&void 0!==t?t:[],o=[],s=u.reduce(function(e,t){return e[t]=e[t]||[],e},{processOptions:[i],validateOptions:[a]});function n(e){var a=f.reduce(function(e,t){return e[t]=p(),e},{}),u=c(s),t=u("processOptions",e);u("validateOptions",t);var r={options:t,channels:a,applyMiddleware:u},o=null,n=a.request.subscribe(function(t){o=l(t,function(i,e){return function(e,t,r){var o=i,n=t;if(!o)try{n=u("onResponse",t,r)}catch(e){n=null,o=e}(o=o&&u("onError",o,r))?a.error.publish(o):n&&a.response.publish(n)}(0,e,t)})});a.abort.subscribe(function(){n(),o&&o.abort()});var i=u("onReturn",a,r);return i===a&&a.request.publish(r),i}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<s.onReturn.length)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return u.forEach(function(e){t[e]&&s[e].push(t[e])}),o.push(t),n},n.clone=function(){return e(o)},r.forEach(n.use),n}},{"./middleware/defaultOptionsProcessor":2,"./middleware/defaultOptionsValidator":3,"./request":6,"./util/middlewareReducer":7,"nano-pubsub":23}],2:[function(e,t,r){"use strict";var o=e("object-assign"),n=e("url-parse"),i="undefined"!=typeof navigator&&"ReactNative"===navigator.product,a=Object.prototype.hasOwnProperty,u={timeout:i?6e4:12e4};function s(e){var r=[];for(var t in e)a.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},u):o({},u,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(u.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(s),t}},{"object-assign":24,"url-parse":37}],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 g=e("same-origin"),w=e("parse-headers"),o=e("./browser/fetchXhr"),$="undefined"==typeof window?void 0:window,A=$?"xhr":"fetch",S="function"==typeof XMLHttpRequest?XMLHttpRequest:function(){},n="withCredentials"in new S,i="undefined"==typeof XDomainRequest?void 0:XDomainRequest,P=n?S:i;$||(P=S=o),t.exports=function(r,o){var e=r.options,n=r.applyMiddleware("finalizeOptions",e),t={},i=$&&$.location&&!g($.location.href,n.url),a=r.applyMiddleware("interceptRequest",void 0,{adapter:A,context:r});if(a){var u=setTimeout(o,0,null,a);return{abort:function(){return clearTimeout(u)}}}var s=i?new P:new S,p=$&&$.XDomainRequest&&s instanceof $.XDomainRequest,c=n.headers,l=!1,f=!1,y=!1;if(s.onerror=v,s.ontimeout=v,s.onabort=function(){l=!0},s.onprogress=function(){},s[p?"onload":"onreadystatechange"]=function(){h&&(m(),t.socket=setTimeout(function(){return b("ESOCKETTIMEDOUT")},h.socket)),l||4!==s.readyState&&!p||0!==s.status&&(l||f||y||(0!==s.status?(m(),f=!0,o(null,function(){var e=s.status,t=s.statusText;if(p&&void 0===e)e=200;else{if(12e3<e&&e<12156)return v();e=1223===s.status?204:s.status,t=1223===s.status?"No Content":t}return{body:s.response||s.responseText,url:n.url,method:n.method,headers:p?{}:w(s.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())):v(new Error("Unknown XHR error"))))},s.open(n.method,n.url,!0),s.withCredentials=!!n.withCredentials,c&&s.setRequestHeader)for(var d in c)c.hasOwnProperty(d)&&s.setRequestHeader(d,c[d]);else if(c&&p)throw new Error("Headers cannot be set on an XDomainRequest object");n.rawBody&&(s.responseType="arraybuffer"),r.applyMiddleware("onRequest",{options:n,adapter:A,request:s,context:r}),s.send(n.body||null);var h=n.timeout;return h&&(t.connect=setTimeout(function(){return b("ETIMEDOUT")},h.connect)),{abort:function(){l=!0,s&&s.abort()}};function b(e){y=!0,s.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 m(){(l||2<=s.readyState&&t.connect)&&clearTimeout(t.connect),t.socket&&clearTimeout(t.socket)}function v(e){if(!f){m(),f=!0,s=null;var t=e||new Error("Network error while attempting to reach "+n.url);t.isNetworkError=!0,t.request=n,o(t)}}}},{"./browser/fetchXhr":5,"parse-headers":28,"same-origin":31}],5:[function(e,t,r){"use strict";function o(){this.readyState=0}o.prototype.open=function(e,t){this._method=e,this._url=t,this._resHeaders="",this.readyState=1,this.onreadystatechange()},o.prototype.abort=function(){this._controller&&this._controller.abort()},o.prototype.getAllResponseHeaders=function(){return this._resHeaders},o.prototype.setRequestHeader=function(e,t){this._headers=this._headers||new Headers,this._headers.append(e,t)},o.prototype.send=function(e){var r=this,t=this._controller="function"==typeof AbortController&&new AbortController,o="arrayBuffer"!==this.responseType,n={method:this._method,headers:this._headers,signal:t&&t.signal,body:e};"undefined"!=typeof window&&(n.credentials=this.withCredentials?"include":"omit"),fetch(this._url,n).then(function(e){return e.headers.forEach(function(e,t){r._resHeaders+=t+": "+e+"\r\n"}),r.status=e.status,r.statusText=e.statusText,r.readyState=3,r.onreadystatechange(),o?e.text():e.arrayBuffer()}).then(function(e){o?r.response=e:r.responseType=e,r.readyState=4,r.onreadystatechange()}).catch(function(e){"AbortError"!==e.name?r.onerror(e):r.onabort()})},t.exports=o},{}],6:[function(e,t,r){"use strict";t.exports=e("./node-request")},{"./node-request":4}],7:[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];for(var i="onError"===e,a=t,u=0;u<s[e].length&&(a=s[e][u].apply(void 0,[a].concat(o)),!i||a);u++);return a}}},{}],8:[function(e,t,r){"use strict";function i(e,t,r,o){t in e&&(!function(e){return"function"==typeof e&&"[object Function]"===n.call(e)}(o)||!o())||(c?p(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)}function o(e,t){var r=2<arguments.length?arguments[2]:{},o=a(t);u&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var n=0;n<o.length;n+=1)i(e,o[n],t[o[n]],r[o[n]])}var a=e("object-keys"),u="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),n=Object.prototype.toString,s=Array.prototype.concat,p=Object.defineProperty,c=p&&function(){var e={};try{for(var t in p(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}();o.supportsDescriptors=!!c,t.exports=o},{"object-keys":26}],9:[function(e,t,r){"use strict";var o,n=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=Object.getPrototypeOf||function(e){return e.__proto__},u=o,s=o,p=o,c=o,l="undefined"==typeof Uint8Array?o:a(Uint8Array),f={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":i?a([][Symbol.iterator]()):o,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":o,"$ %AsyncFunction%":s,"$ %AsyncFunctionPrototype%":o,"$ %AsyncGenerator%":o,"$ %AsyncGeneratorFunction%":p,"$ %AsyncGeneratorPrototype%":o,"$ %AsyncIteratorPrototype%":c&&i&&Symbol.asyncIterator?c[Symbol.asyncIterator]():o,"$ %Atomics%":"undefined"==typeof Atomics?o:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?o:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?o:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?o:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?o:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":o,"$ %GeneratorFunction%":u,"$ %GeneratorPrototype%":o,"$ %Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?o:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?o:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?o:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":i?a(a([][Symbol.iterator]())):o,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?o:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&i?a((new Map)[Symbol.iterator]()):o,"$ %MapPrototype%":"undefined"==typeof Map?o:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?o:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?o:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?o:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?o:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?o:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?o:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?o:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?o:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?o:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&i?a((new Set)[Symbol.iterator]()):o,"$ %SetPrototype%":"undefined"==typeof Set?o:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":i?a(""[Symbol.iterator]()):o,"$ %StringPrototype%":String.prototype,"$ %Symbol%":i?Symbol:o,"$ %SymbolPrototype%":i?Symbol.prototype:o,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":n,"$ %TypedArray%":l,"$ %TypedArrayPrototype%":l?l.prototype:o,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?o:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?o:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?o:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?o:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?o:WeakSet.prototype};t.exports=function(e,t){if(1<arguments.length&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var r="$ "+e;if(!(r in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[r]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[r]}},{}],10:[function(e,t,r){"use strict";var o=e("./GetIntrinsic"),n=o("%Object%"),i=o("%TypeError%"),a=o("%String%"),u=e("./helpers/assertRecord"),s=e("./helpers/isNaN"),p=e("./helpers/isFinite"),c=e("./helpers/sign"),l=e("./helpers/mod"),f=e("is-callable"),y=e("es-to-primitive/es5"),d=e("has"),h={ToPrimitive:y,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return s(t)?0:0!==t&&p(t)?c(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(s(t)||0===t||!p(t))return 0;var r=c(t)*Math.floor(Math.abs(t));return l(r,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),n(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:f,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:s(e)&&s(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(d(e,r)&&!t[r])return!1;var o=d(e,"[[Value]]"),n=d(e,"[[Get]]")||d(e,"[[Set]]");if(o&&n)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(u(this,"Property Descriptor","Desc",e),!(!d(e,"[[Get]]")&&!d(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(u(this,"Property Descriptor","Desc",e),!(!d(e,"[[Value]]")&&!d(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(u(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(u(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(d(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),d(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),d(e,"value")&&(t["[[Value]]"]=e.value),d(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),d(e,"get")){var r=e.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(d(e,"set")){var o=e.set;if(void 0!==o&&!this.IsCallable(o))throw new i("setter must be a function");t["[[Set]]"]=o}if((d(t,"[[Get]]")||d(t,"[[Set]]"))&&(d(t,"[[Value]]")||d(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};t.exports=h},{"./GetIntrinsic":9,"./helpers/assertRecord":11,"./helpers/isFinite":12,"./helpers/isNaN":13,"./helpers/mod":14,"./helpers/sign":15,"es-to-primitive/es5":16,has:21,"is-callable":22}],11:[function(e,t,r){"use strict";var o=e("../GetIntrinsic"),a=o("%TypeError%"),i=o("%SyntaxError%"),u=e("has"),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var o in t)if(u(t,o)&&!r[o])return!1;var n=u(t,"[[Value]]"),i=u(t,"[[Get]]")||u(t,"[[Set]]");if(n&&i)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0}};t.exports=function(e,t,r,o){var n=s[t];if("function"!=typeof n)throw new i("unknown record type: "+t);if(!n(e,o))throw new a(r+" must be a "+t);console.log(n(e,o),o)}},{"../GetIntrinsic":9,has:21}],12:[function(e,t,r){var o=Number.isNaN||function(e){return e!=e};t.exports=Number.isFinite||function(e){return"number"==typeof e&&!o(e)&&e!==1/0&&e!==-1/0}},{}],13:[function(e,t,r){t.exports=Number.isNaN||function(e){return e!=e}},{}],14:[function(e,t,r){t.exports=function(e,t){var r=e%t;return Math.floor(0<=r?r:r+t)}},{}],15:[function(e,t,r){t.exports=function(e){return 0<=e?1:-1}},{}],16:[function(e,t,r){"use strict";var i=Object.prototype.toString,a=e("./helpers/isPrimitive"),u=e("is-callable"),o=function(e){var t;if((t=1<arguments.length?arguments[1]:"[object Date]"===i.call(e)?String:Number)!==String&&t!==Number)throw new TypeError("invalid [[DefaultValue]] hint supplied");var r,o,n=t===String?["toString","valueOf"]:["valueOf","toString"];for(o=0;o<n.length;++o)if(u(e[n[o]])&&(r=e[n[o]](),a(r)))return r;throw new TypeError("No default value")};t.exports=function(e){return a(e)?e:1<arguments.length?o(e,arguments[1]):o(e)}},{"./helpers/isPrimitive":17,"is-callable":22}],17:[function(e,t,r){t.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},{}],18:[function(e,t,r){"use strict";var n=e("is-callable"),i=Object.prototype.toString,a=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]"===i.call(e)?function(e,t,r){for(var o=0,n=e.length;o<n;o++)a.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)a.call(e,o)&&(null==r?t(e[o],o,e):t.call(r,e[o],o,e))}(e,t,o)}},{"is-callable":22}],19:[function(e,t,r){"use strict";var s=Array.prototype.slice,p=Object.prototype.toString;t.exports=function(t){var r=this;if("function"!=typeof r||"[object Function]"!==p.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,n=s.call(arguments,1),e=Math.max(0,r.length-n.length),i=[],a=0;a<e;a++)i.push("$"+a);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=r.apply(this,n.concat(s.call(arguments)));return Object(e)===e?e:this}return r.apply(t,n.concat(s.call(arguments)))}),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}},{}],20:[function(e,t,r){"use strict";var o=e("./implementation");t.exports=Function.prototype.bind||o},{"./implementation":19}],21:[function(e,t,r){"use strict";var o=e("function-bind");t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":20}],22:[function(e,t,r){"use strict";function o(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}}var n=Function.prototype.toString,i=/^\s*class\b/,a=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!o(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(o(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},{}],23:[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)}}}},{}],24:[function(e,t,r){"use strict";var s=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,c=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),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))p.call(r,a)&&(n[a]=r[a]);if(s){o=s(r);for(var u=0;u<o.length;u++)c.call(r,o[u])&&(n[o[u]]=r[o[u]])}}return n}},{}],25:[function(e,t,r){"use strict";var o;if(!Object.keys){var f=Object.prototype.hasOwnProperty,y=Object.prototype.toString,d=e("./isArguments"),n=Object.prototype.propertyIsEnumerable,h=!n.call({toString:null},"toString"),b=n.call(function(){},"prototype"),m=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],v=function(e){var t=e.constructor;return t&&t.prototype===e},i={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!i["$"+e]&&f.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{v(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();o=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===y.call(e),o=d(e),n=t&&"[object String]"===y.call(e),i=[];if(!t&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var a=b&&r;if(n&&0<e.length&&!f.call(e,0))for(var u=0;u<e.length;++u)i.push(String(u));if(o&&0<e.length)for(var s=0;s<e.length;++s)i.push(String(s));else for(var p in e)a&&"prototype"===p||!f.call(e,p)||i.push(String(p));if(h)for(var c=function(e){if("undefined"==typeof window||!g)return v(e);try{return v(e)}catch(e){return!1}}(e),l=0;l<m.length;++l)c&&"constructor"===m[l]||!f.call(e,m[l])||i.push(m[l]);return i}}t.exports=o},{"./isArguments":27}],26:[function(e,t,r){"use strict";var o=Array.prototype.slice,n=e("./isArguments"),i=Object.keys,a=i?function(e){return i(e)}:e("./implementation"),u=Object.keys;a.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return n(e)?u(o.call(e)):u(e)}):Object.keys=a,Object.keys||a},t.exports=a},{"./implementation":25,"./isArguments":27}],27:[function(e,t,r){"use strict";var o=Object.prototype.toString;t.exports=function(e){var t=o.call(e),r="[object Arguments]"===t;return r=r||"[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===o.call(e.callee)}},{}],28:[function(e,t,r){var i=e("string.prototype.trim"),o=e("for-each");t.exports=function(e){if(!e)return{};var n={};return o(i(e).split("\n"),function(e){var t=e.indexOf(":"),r=i(e.slice(0,t)).toLowerCase(),o=i(e.slice(t+1));void 0===n[r]?n[r]=o:function(e){return"[object Array]"===Object.prototype.toString.call(e)}(n[r])?n[r].push(o):n[r]=[n[r],o]}),n}},{"for-each":18,"string.prototype.trim":34}],29:[function(e,t,r){"use strict";var i=Object.prototype.hasOwnProperty;function a(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}r.stringify=function(e,t){t=t||"";var r,o,n=[];for(o in"string"!=typeof t&&(t="?"),e)if(i.call(e,o)){if((r=e[o])||null!=r&&!isNaN(r)||(r=""),o=encodeURIComponent(o),r=encodeURIComponent(r),null===o||null===r)continue;n.push(o+"="+r)}return n.length?t+n.join("&"):""},r.parse=function(e){for(var t,r=/([^=?&]+)=?([^&]*)/g,o={};t=r.exec(e);){var n=a(t[1]),i=a(t[2]);null===n||null===i||n in o||(o[n]=i)}return o}},{}],30:[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}},{}],31:[function(e,t,r){"use strict";var s=e("url");t.exports=function(e,t,r){if(e===t)return!0;var o=s.parse(e,!1,!0),n=s.parse(t,!1,!0),i=0|o.port||("https"===o.protocol?443:80),a=0|n.port||("https"===n.protocol?443:80),u={proto:o.protocol===n.protocol,hostname:o.hostname===n.hostname,port:i===a};return u.proto&&u.hostname&&(u.port||r)}},{url:32}],32:[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}:{}}}},{}],33:[function(e,t,r){"use strict";var o=e("function-bind"),n=e("es-abstract/es5"),i=o.call(Function.call,String.prototype.replace),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;t.exports=function(){var e=n.ToString(n.CheckObjectCoercible(this));return i(i(e,a,""),u,"")}},{"es-abstract/es5":10,"function-bind":20}],34:[function(e,t,r){"use strict";var o=e("function-bind"),n=e("define-properties"),i=e("./implementation"),a=e("./polyfill"),u=e("./shim"),s=o.call(Function.call,a());n(s,{getPolyfill:a,implementation:i,shim:u}),t.exports=s},{"./implementation":33,"./polyfill":35,"./shim":36,"define-properties":8,"function-bind":20}],35:[function(e,t,r){"use strict";var o=e("./implementation");t.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:o}},{"./implementation":33}],36:[function(e,t,r){"use strict";var o=e("define-properties"),n=e("./polyfill");t.exports=function(){var e=n();return o(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},{"./polyfill":35,"define-properties":8}],37:[function(e,o,t){(function(i){"use strict";var y=e("requires-port"),d=e("querystringify"),a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,r=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,t=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function h(e){return(e||"").toString().replace(t,"")}var b=[["#","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 m(e){var t,r=("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{}).location||{},o={},n=typeof(e=e||r);if("blob:"===e.protocol)o=new g(unescape(e.pathname),{});else if("string"==n)for(t in o=new g(e,{}),u)delete o[t];else if("object"==n){for(t in e)t in u||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=a.test(e.href))}return o}function v(e){e=h(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(e=h(e),!(this instanceof g))return new g(e,t,r);var o,n,i,a,u,s,p=b.slice(),c=typeof t,l=this,f=0;for("object"!=c&&"string"!=c&&(r=t,t=null),r&&"function"!=typeof r&&(r=d.parse),t=m(t),o=!(n=v(e||"")).protocol&&!n.slashes,l.slashes=n.slashes||o&&t.slashes,l.protocol=n.protocol||t.protocol||"",e=n.rest,n.slashes||(p[3]=[/(.*)/,"pathname"]);f<p.length;f++)"function"!=typeof(a=p[f])?(i=a[0],s=a[1],i!=i?l[s]=e:"string"==typeof i?~(u=e.indexOf(i))&&(e="number"==typeof a[2]?(l[s]=e.slice(0,u),e.slice(u+a[2])):(l[s]=e.slice(u),e.slice(0,u))):(u=i.exec(e))&&(l[s]=u[1],e=e.slice(0,u.index)),l[s]=l[s]||o&&a[3]&&t[s]||"",a[4]&&(l[s]=l[s].toLowerCase())):e=a(e);r&&(l.query=r(l.query)),o&&t.slashes&&"/"!==l.pathname.charAt(0)&&(""!==l.pathname||""!==t.pathname)&&(l.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),o=r.length,n=r[o-1],i=!1,a=0;o--;)"."===r[o]?r.splice(o,1):".."===r[o]?(r.splice(o,1),a++):a&&(0===o&&(i=!0),r.splice(o,1),a--);return i&&r.unshift(""),"."!==n&&".."!==n||r.push(""),r.join("/")}(l.pathname,t.pathname)),y(l.port,l.protocol)||(l.host=l.hostname,l.port=""),l.username=l.password="",l.auth&&(a=l.auth.split(":"),l.username=a[0]||"",l.password=a[1]||""),l.origin=l.protocol&&l.host&&"file:"!==l.protocol?l.protocol+"//"+l.host:"null",l.href=l.toString()}g.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,y(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 i=0;i<b.length;i++){var a=b[i];a[4]&&(o[a[1]]=o[a[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}},g.extractProtocol=v,g.location=m,g.trimLeft=h,g.qs=d,o.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{querystringify:29,"requires-port":30}]},{},[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 i(a,u,s){function p(t,e){if(!u[t]){if(!a[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(c)return c(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var n=u[t]={exports:{}};a[t][0].call(n.exports,function(e){return p(a[t][1][e]||e)},n,n.exports,i,a,u,s)}return u[t].exports}for(var c="function"==typeof require&&require,e=0;e<s.length;e++)p(s[e]);return p}({1:[function(e,t,r){"use strict";var c=e("nano-pubsub"),l=e("./util/middlewareReducer"),a=e("./middleware/defaultOptionsProcessor"),u=e("./middleware/defaultOptionsValidator"),f=e("./request"),y=["request","response","progress","error","abort"],d=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function e(t,r){var o=0<arguments.length&&void 0!==t?t:[],s=1<arguments.length&&void 0!==r?r:f,n=[],p=d.reduce(function(e,t){return e[t]=e[t]||[],e},{processOptions:[a],validateOptions:[u]});function i(e){var a=y.reduce(function(e,t){return e[t]=c(),e},{}),u=l(p),t=u("processOptions",e);u("validateOptions",t);var r={options:t,channels:a,applyMiddleware:u},o=null,n=a.request.subscribe(function(t){o=s(t,function(i,e){return function(e,t,r){var o=i,n=t;if(!o)try{n=u("onResponse",t,r)}catch(e){n=null,o=e}(o=o&&u("onError",o,r))?a.error.publish(o):n&&a.response.publish(n)}(0,e,t)})});a.abort.subscribe(function(){n(),o&&o.abort()});var i=u("onReturn",a,r);return i===a&&a.request.publish(r),i}return i.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<p.onReturn.length)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return d.forEach(function(e){t[e]&&p[e].push(t[e])}),n.push(t),i},i.clone=function(){return e(n)},o.forEach(i.use),i}},{"./middleware/defaultOptionsProcessor":2,"./middleware/defaultOptionsValidator":3,"./request":6,"./util/middlewareReducer":7,"nano-pubsub":23}],2:[function(e,t,r){"use strict";var o=e("object-assign"),n=e("url-parse"),i="undefined"!=typeof navigator&&"ReactNative"===navigator.product,a=Object.prototype.hasOwnProperty,u={timeout:i?6e4:12e4};function s(e){var r=[];for(var t in e)a.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},u):o({},u,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(u.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(s),t}},{"object-assign":24,"url-parse":37}],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 g=e("same-origin"),w=e("parse-headers"),o=e("./browser/fetchXhr"),$="undefined"==typeof window?void 0:window,A=$?"xhr":"fetch",S="function"==typeof XMLHttpRequest?XMLHttpRequest:function(){},n="withCredentials"in new S,i="undefined"==typeof XDomainRequest?void 0:XDomainRequest,P=n?S:i;$||(P=S=o),t.exports=function(r,o){var e=r.options,n=r.applyMiddleware("finalizeOptions",e),t={},i=$&&$.location&&!g($.location.href,n.url),a=r.applyMiddleware("interceptRequest",void 0,{adapter:A,context:r});if(a){var u=setTimeout(o,0,null,a);return{abort:function(){return clearTimeout(u)}}}var s=i?new P:new S,p=$&&$.XDomainRequest&&s instanceof $.XDomainRequest,c=n.headers,l=n.timeout,f=!1,y=!1,d=!1;if(s.onerror=v,s.ontimeout=v,s.onabort=function(){f=!0},s.onprogress=function(){},s[p?"onload":"onreadystatechange"]=function(){l&&(m(),t.socket=setTimeout(function(){return b("ESOCKETTIMEDOUT")},l.socket)),f||4!==s.readyState&&!p||0!==s.status&&(f||y||d||(0!==s.status?(m(),y=!0,o(null,function(){var e=s.status,t=s.statusText;if(p&&void 0===e)e=200;else{if(12e3<e&&e<12156)return v();e=1223===s.status?204:s.status,t=1223===s.status?"No Content":t}return{body:s.response||s.responseText,url:n.url,method:n.method,headers:p?{}:w(s.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())):v(new Error("Unknown XHR error"))))},s.open(n.method,n.url,!0),s.withCredentials=!!n.withCredentials,c&&s.setRequestHeader)for(var h in c)c.hasOwnProperty(h)&&s.setRequestHeader(h,c[h]);else if(c&&p)throw new Error("Headers cannot be set on an XDomainRequest object");return n.rawBody&&(s.responseType="arraybuffer"),r.applyMiddleware("onRequest",{options:n,adapter:A,request:s,context:r}),s.send(n.body||null),l&&(t.connect=setTimeout(function(){return b("ETIMEDOUT")},l.connect)),{abort:function(){f=!0,s&&s.abort()}};function b(e){d=!0,s.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 m(){(f||2<=s.readyState&&t.connect)&&clearTimeout(t.connect),t.socket&&clearTimeout(t.socket)}function v(e){if(!y){m(),y=!0,s=null;var t=e||new Error("Network error while attempting to reach "+n.url);t.isNetworkError=!0,t.request=n,o(t)}}}},{"./browser/fetchXhr":5,"parse-headers":28,"same-origin":31}],5:[function(e,t,r){"use strict";function o(){this.readyState=0}o.prototype.open=function(e,t){this._method=e,this._url=t,this._resHeaders="",this.readyState=1,this.onreadystatechange()},o.prototype.abort=function(){this._controller&&this._controller.abort()},o.prototype.getAllResponseHeaders=function(){return this._resHeaders},o.prototype.setRequestHeader=function(e,t){this._headers=this._headers||{},this._headers[e]=t},o.prototype.send=function(e){var r=this,t=this._controller="function"==typeof AbortController&&new AbortController,o="arraybuffer"!==this.responseType,n={method:this._method,headers:this._headers,signal:t&&t.signal,body:e};"undefined"!=typeof window&&(n.credentials=this.withCredentials?"include":"omit"),fetch(this._url,n).then(function(e){return e.headers.forEach(function(e,t){r._resHeaders+=t+": "+e+"\r\n"}),r.status=e.status,r.statusText=e.statusText,r.readyState=3,o?e.text():e.arrayBuffer()}).then(function(e){o?r.responseText=e:r.response=e,r.readyState=4,r.onreadystatechange()}).catch(function(e){"AbortError"!==e.name?r.onerror(e):r.onabort()})},t.exports=o},{}],6:[function(e,t,r){"use strict";t.exports=e("./node-request")},{"./node-request":4}],7:[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];for(var i="onError"===e,a=t,u=0;u<s[e].length&&(a=s[e][u].apply(void 0,[a].concat(o)),!i||a);u++);return a}}},{}],8:[function(e,t,r){"use strict";function i(e,t,r,o){t in e&&(!function(e){return"function"==typeof e&&"[object Function]"===n.call(e)}(o)||!o())||(c?p(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)}function o(e,t){var r=2<arguments.length?arguments[2]:{},o=a(t);u&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var n=0;n<o.length;n+=1)i(e,o[n],t[o[n]],r[o[n]])}var a=e("object-keys"),u="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),n=Object.prototype.toString,s=Array.prototype.concat,p=Object.defineProperty,c=p&&function(){var e={};try{for(var t in p(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}();o.supportsDescriptors=!!c,t.exports=o},{"object-keys":26}],9:[function(e,t,r){"use strict";var o,n=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=Object.getPrototypeOf||function(e){return e.__proto__},u=o,s=o,p=o,c=o,l="undefined"==typeof Uint8Array?o:a(Uint8Array),f={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":i?a([][Symbol.iterator]()):o,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":o,"$ %AsyncFunction%":s,"$ %AsyncFunctionPrototype%":o,"$ %AsyncGenerator%":o,"$ %AsyncGeneratorFunction%":p,"$ %AsyncGeneratorPrototype%":o,"$ %AsyncIteratorPrototype%":c&&i&&Symbol.asyncIterator?c[Symbol.asyncIterator]():o,"$ %Atomics%":"undefined"==typeof Atomics?o:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?o:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?o:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?o:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?o:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":o,"$ %GeneratorFunction%":u,"$ %GeneratorPrototype%":o,"$ %Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?o:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?o:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?o:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":i?a(a([][Symbol.iterator]())):o,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?o:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&i?a((new Map)[Symbol.iterator]()):o,"$ %MapPrototype%":"undefined"==typeof Map?o:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?o:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?o:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?o:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?o:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?o:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?o:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?o:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?o:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?o:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&i?a((new Set)[Symbol.iterator]()):o,"$ %SetPrototype%":"undefined"==typeof Set?o:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":i?a(""[Symbol.iterator]()):o,"$ %StringPrototype%":String.prototype,"$ %Symbol%":i?Symbol:o,"$ %SymbolPrototype%":i?Symbol.prototype:o,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":n,"$ %TypedArray%":l,"$ %TypedArrayPrototype%":l?l.prototype:o,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?o:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?o:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?o:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?o:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?o:WeakSet.prototype};t.exports=function(e,t){if(1<arguments.length&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var r="$ "+e;if(!(r in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[r]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[r]}},{}],10:[function(e,t,r){"use strict";var o=e("./GetIntrinsic"),n=o("%Object%"),i=o("%TypeError%"),a=o("%String%"),u=e("./helpers/assertRecord"),s=e("./helpers/isNaN"),p=e("./helpers/isFinite"),c=e("./helpers/sign"),l=e("./helpers/mod"),f=e("is-callable"),y=e("es-to-primitive/es5"),d=e("has"),h={ToPrimitive:y,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return s(t)?0:0!==t&&p(t)?c(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(s(t)||0===t||!p(t))return 0;var r=c(t)*Math.floor(Math.abs(t));return l(r,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),n(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:f,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:s(e)&&s(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(d(e,r)&&!t[r])return!1;var o=d(e,"[[Value]]"),n=d(e,"[[Get]]")||d(e,"[[Set]]");if(o&&n)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(u(this,"Property Descriptor","Desc",e),!(!d(e,"[[Get]]")&&!d(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(u(this,"Property Descriptor","Desc",e),!(!d(e,"[[Value]]")&&!d(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(u(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(u(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(d(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),d(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),d(e,"value")&&(t["[[Value]]"]=e.value),d(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),d(e,"get")){var r=e.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(d(e,"set")){var o=e.set;if(void 0!==o&&!this.IsCallable(o))throw new i("setter must be a function");t["[[Set]]"]=o}if((d(t,"[[Get]]")||d(t,"[[Set]]"))&&(d(t,"[[Value]]")||d(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};t.exports=h},{"./GetIntrinsic":9,"./helpers/assertRecord":11,"./helpers/isFinite":12,"./helpers/isNaN":13,"./helpers/mod":14,"./helpers/sign":15,"es-to-primitive/es5":16,has:21,"is-callable":22}],11:[function(e,t,r){"use strict";var o=e("../GetIntrinsic"),a=o("%TypeError%"),i=o("%SyntaxError%"),u=e("has"),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var o in t)if(u(t,o)&&!r[o])return!1;var n=u(t,"[[Value]]"),i=u(t,"[[Get]]")||u(t,"[[Set]]");if(n&&i)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0}};t.exports=function(e,t,r,o){var n=s[t];if("function"!=typeof n)throw new i("unknown record type: "+t);if(!n(e,o))throw new a(r+" must be a "+t);console.log(n(e,o),o)}},{"../GetIntrinsic":9,has:21}],12:[function(e,t,r){var o=Number.isNaN||function(e){return e!=e};t.exports=Number.isFinite||function(e){return"number"==typeof e&&!o(e)&&e!==1/0&&e!==-1/0}},{}],13:[function(e,t,r){t.exports=Number.isNaN||function(e){return e!=e}},{}],14:[function(e,t,r){t.exports=function(e,t){var r=e%t;return Math.floor(0<=r?r:r+t)}},{}],15:[function(e,t,r){t.exports=function(e){return 0<=e?1:-1}},{}],16:[function(e,t,r){"use strict";var i=Object.prototype.toString,a=e("./helpers/isPrimitive"),u=e("is-callable"),o=function(e){var t;if((t=1<arguments.length?arguments[1]:"[object Date]"===i.call(e)?String:Number)!==String&&t!==Number)throw new TypeError("invalid [[DefaultValue]] hint supplied");var r,o,n=t===String?["toString","valueOf"]:["valueOf","toString"];for(o=0;o<n.length;++o)if(u(e[n[o]])&&(r=e[n[o]](),a(r)))return r;throw new TypeError("No default value")};t.exports=function(e){return a(e)?e:1<arguments.length?o(e,arguments[1]):o(e)}},{"./helpers/isPrimitive":17,"is-callable":22}],17:[function(e,t,r){t.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},{}],18:[function(e,t,r){"use strict";var n=e("is-callable"),i=Object.prototype.toString,a=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]"===i.call(e)?function(e,t,r){for(var o=0,n=e.length;o<n;o++)a.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)a.call(e,o)&&(null==r?t(e[o],o,e):t.call(r,e[o],o,e))}(e,t,o)}},{"is-callable":22}],19:[function(e,t,r){"use strict";var s=Array.prototype.slice,p=Object.prototype.toString;t.exports=function(t){var r=this;if("function"!=typeof r||"[object Function]"!==p.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,n=s.call(arguments,1),e=Math.max(0,r.length-n.length),i=[],a=0;a<e;a++)i.push("$"+a);if(o=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=r.apply(this,n.concat(s.call(arguments)));return Object(e)===e?e:this}return r.apply(t,n.concat(s.call(arguments)))}),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}},{}],20:[function(e,t,r){"use strict";var o=e("./implementation");t.exports=Function.prototype.bind||o},{"./implementation":19}],21:[function(e,t,r){"use strict";var o=e("function-bind");t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":20}],22:[function(e,t,r){"use strict";function o(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}}var n=Function.prototype.toString,i=/^\s*class\b/,a=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!o(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(o(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},{}],23:[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)}}}},{}],24:[function(e,t,r){"use strict";var s=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,c=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),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))p.call(r,a)&&(n[a]=r[a]);if(s){o=s(r);for(var u=0;u<o.length;u++)c.call(r,o[u])&&(n[o[u]]=r[o[u]])}}return n}},{}],25:[function(e,t,r){"use strict";var o;if(!Object.keys){var f=Object.prototype.hasOwnProperty,y=Object.prototype.toString,d=e("./isArguments"),n=Object.prototype.propertyIsEnumerable,h=!n.call({toString:null},"toString"),b=n.call(function(){},"prototype"),m=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],v=function(e){var t=e.constructor;return t&&t.prototype===e},i={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!i["$"+e]&&f.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{v(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();o=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===y.call(e),o=d(e),n=t&&"[object String]"===y.call(e),i=[];if(!t&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var a=b&&r;if(n&&0<e.length&&!f.call(e,0))for(var u=0;u<e.length;++u)i.push(String(u));if(o&&0<e.length)for(var s=0;s<e.length;++s)i.push(String(s));else for(var p in e)a&&"prototype"===p||!f.call(e,p)||i.push(String(p));if(h)for(var c=function(e){if("undefined"==typeof window||!g)return v(e);try{return v(e)}catch(e){return!1}}(e),l=0;l<m.length;++l)c&&"constructor"===m[l]||!f.call(e,m[l])||i.push(m[l]);return i}}t.exports=o},{"./isArguments":27}],26:[function(e,t,r){"use strict";var o=Array.prototype.slice,n=e("./isArguments"),i=Object.keys,a=i?function(e){return i(e)}:e("./implementation"),u=Object.keys;a.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return n(e)?u(o.call(e)):u(e)}):Object.keys=a,Object.keys||a},t.exports=a},{"./implementation":25,"./isArguments":27}],27:[function(e,t,r){"use strict";var o=Object.prototype.toString;t.exports=function(e){var t=o.call(e),r="[object Arguments]"===t;return r=r||"[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===o.call(e.callee)}},{}],28:[function(e,t,r){var i=e("string.prototype.trim"),o=e("for-each");t.exports=function(e){if(!e)return{};var n={};return o(i(e).split("\n"),function(e){var t=e.indexOf(":"),r=i(e.slice(0,t)).toLowerCase(),o=i(e.slice(t+1));void 0===n[r]?n[r]=o:function(e){return"[object Array]"===Object.prototype.toString.call(e)}(n[r])?n[r].push(o):n[r]=[n[r],o]}),n}},{"for-each":18,"string.prototype.trim":34}],29:[function(e,t,r){"use strict";var i=Object.prototype.hasOwnProperty;function a(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}r.stringify=function(e,t){t=t||"";var r,o,n=[];for(o in"string"!=typeof t&&(t="?"),e)if(i.call(e,o)){if((r=e[o])||null!=r&&!isNaN(r)||(r=""),o=encodeURIComponent(o),r=encodeURIComponent(r),null===o||null===r)continue;n.push(o+"="+r)}return n.length?t+n.join("&"):""},r.parse=function(e){for(var t,r=/([^=?&]+)=?([^&]*)/g,o={};t=r.exec(e);){var n=a(t[1]),i=a(t[2]);null===n||null===i||n in o||(o[n]=i)}return o}},{}],30:[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}},{}],31:[function(e,t,r){"use strict";var s=e("url");t.exports=function(e,t,r){if(e===t)return!0;var o=s.parse(e,!1,!0),n=s.parse(t,!1,!0),i=0|o.port||("https"===o.protocol?443:80),a=0|n.port||("https"===n.protocol?443:80),u={proto:o.protocol===n.protocol,hostname:o.hostname===n.hostname,port:i===a};return u.proto&&u.hostname&&(u.port||r)}},{url:32}],32:[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}:{}}}},{}],33:[function(e,t,r){"use strict";var o=e("function-bind"),n=e("es-abstract/es5"),i=o.call(Function.call,String.prototype.replace),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;t.exports=function(){var e=n.ToString(n.CheckObjectCoercible(this));return i(i(e,a,""),u,"")}},{"es-abstract/es5":10,"function-bind":20}],34:[function(e,t,r){"use strict";var o=e("function-bind"),n=e("define-properties"),i=e("./implementation"),a=e("./polyfill"),u=e("./shim"),s=o.call(Function.call,a());n(s,{getPolyfill:a,implementation:i,shim:u}),t.exports=s},{"./implementation":33,"./polyfill":35,"./shim":36,"define-properties":8,"function-bind":20}],35:[function(e,t,r){"use strict";var o=e("./implementation");t.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:o}},{"./implementation":33}],36:[function(e,t,r){"use strict";var o=e("define-properties"),n=e("./polyfill");t.exports=function(){var e=n();return o(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},{"./polyfill":35,"define-properties":8}],37:[function(e,o,t){(function(i){"use strict";var y=e("requires-port"),d=e("querystringify"),a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,r=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,t=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function h(e){return(e||"").toString().replace(t,"")}var b=[["#","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 m(e){var t,r=("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{}).location||{},o={},n=typeof(e=e||r);if("blob:"===e.protocol)o=new g(unescape(e.pathname),{});else if("string"==n)for(t in o=new g(e,{}),u)delete o[t];else if("object"==n){for(t in e)t in u||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=a.test(e.href))}return o}function v(e){e=h(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(e=h(e),!(this instanceof g))return new g(e,t,r);var o,n,i,a,u,s,p=b.slice(),c=typeof t,l=this,f=0;for("object"!=c&&"string"!=c&&(r=t,t=null),r&&"function"!=typeof r&&(r=d.parse),t=m(t),o=!(n=v(e||"")).protocol&&!n.slashes,l.slashes=n.slashes||o&&t.slashes,l.protocol=n.protocol||t.protocol||"",e=n.rest,n.slashes||(p[3]=[/(.*)/,"pathname"]);f<p.length;f++)"function"!=typeof(a=p[f])?(i=a[0],s=a[1],i!=i?l[s]=e:"string"==typeof i?~(u=e.indexOf(i))&&(e="number"==typeof a[2]?(l[s]=e.slice(0,u),e.slice(u+a[2])):(l[s]=e.slice(u),e.slice(0,u))):(u=i.exec(e))&&(l[s]=u[1],e=e.slice(0,u.index)),l[s]=l[s]||o&&a[3]&&t[s]||"",a[4]&&(l[s]=l[s].toLowerCase())):e=a(e);r&&(l.query=r(l.query)),o&&t.slashes&&"/"!==l.pathname.charAt(0)&&(""!==l.pathname||""!==t.pathname)&&(l.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),o=r.length,n=r[o-1],i=!1,a=0;o--;)"."===r[o]?r.splice(o,1):".."===r[o]?(r.splice(o,1),a++):a&&(0===o&&(i=!0),r.splice(o,1),a--);return i&&r.unshift(""),"."!==n&&".."!==n||r.push(""),r.join("/")}(l.pathname,t.pathname)),y(l.port,l.protocol)||(l.host=l.hostname,l.port=""),l.username=l.password="",l.auth&&(a=l.auth.split(":"),l.username=a[0]||"",l.password=a[1]||""),l.origin=l.protocol&&l.host&&"file:"!==l.protocol?l.protocol+"//"+l.host:"null",l.href=l.toString()}g.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,y(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 i=0;i<b.length;i++){var a=b[i];a[4]&&(o[a[1]]=o[a[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}},g.extractProtocol=v,g.location=m,g.trimLeft=h,g.qs=d,o.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{querystringify:29,"requires-port":30}]},{},[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

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc