Comparing version 5.0.5 to 5.0.6-fetch.0
{ | ||
"name": "get-it", | ||
"version": "5.0.5", | ||
"version": "5.0.6-fetch.0", | ||
"description": "Generic HTTP request library for node and browsers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -108,3 +108,3 @@ (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){ | ||
(function (global){ | ||
"use strict";var required=require("requires-port"),qs=require("querystringify"),slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/,whitespace="[\\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]",left=new RegExp("^"+whitespace+"+");function trimLeft(e){return(e||"").toString().replace(left,"")}var rules=[["#","hash"],["?","query"],function(e,t){return isSpecial(t.protocol)?e.replace(/\\/g,"/"):e},["/","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 t,o=("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).location||{},r={},s=typeof(e=e||o);if("blob:"===e.protocol)r=new Url(unescape(e.pathname),{});else if("string"===s)for(t in r=new Url(e,{}),ignore)delete r[t];else if("object"===s){for(t in e)t in ignore||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=slashes.test(e.href))}return r}function isSpecial(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function extractProtocol(e,t){e=trimLeft(e),t=t||{};var o,r=protocolre.exec(e),s=r[1]?r[1].toLowerCase():"",a=!!r[2],l=!!r[3],i=0;return a?l?(o=r[2]+r[3]+r[4],i=r[2].length+r[3].length):(o=r[2]+r[4],i=r[2].length):l?(o=r[3]+r[4],i=r[3].length):o=r[4],"file:"===s?i>=2&&(o=o.slice(2)):isSpecial(s)?o=r[4]:s?a&&(o=o.slice(2)):i>=2&&isSpecial(t.protocol)&&(o=r[4]),{protocol:s,slashes:a||isSpecial(s),slashesCount:i,rest:o}}function resolve(e,t){if(""===e)return t;for(var o=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=o.length,s=o[r-1],a=!1,l=0;r--;)"."===o[r]?o.splice(r,1):".."===o[r]?(o.splice(r,1),l++):l&&(0===r&&(a=!0),o.splice(r,1),l--);return a&&o.unshift(""),"."!==s&&".."!==s||o.push(""),o.join("/")}function Url(e,t,o){if(e=trimLeft(e),!(this instanceof Url))return new Url(e,t,o);var r,s,a,l,i,n,c=rules.slice(),p=typeof t,h=this,u=0;for("object"!==p&&"string"!==p&&(o=t,t=null),o&&"function"!=typeof o&&(o=qs.parse),t=lolcation(t),r=!(s=extractProtocol(e||"",t)).protocol&&!s.slashes,h.slashes=s.slashes||r&&t.slashes,h.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||windowsDriveLetter.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!isSpecial(h.protocol)))&&(c[3]=[/(.*)/,"pathname"]);u<c.length;u++)"function"!=typeof(l=c[u])?(a=l[0],n=l[1],a!=a?h[n]=e:"string"==typeof a?~(i=e.indexOf(a))&&("number"==typeof l[2]?(h[n]=e.slice(0,i),e=e.slice(i+l[2])):(h[n]=e.slice(i),e=e.slice(0,i))):(i=a.exec(e))&&(h[n]=i[1],e=e.slice(0,i.index)),h[n]=h[n]||r&&l[3]&&t[n]||"",l[4]&&(h[n]=h[n].toLowerCase())):e=l(e,h);o&&(h.query=o(h.query)),r&&t.slashes&&"/"!==h.pathname.charAt(0)&&(""!==h.pathname||""!==t.pathname)&&(h.pathname=resolve(h.pathname,t.pathname)),"/"!==h.pathname.charAt(0)&&isSpecial(h.protocol)&&(h.pathname="/"+h.pathname),required(h.port,h.protocol)||(h.host=h.hostname,h.port=""),h.username=h.password="",h.auth&&(l=h.auth.split(":"),h.username=l[0]||"",h.password=l[1]||""),h.origin="file:"!==h.protocol&&isSpecial(h.protocol)&&h.host?h.protocol+"//"+h.host:"null",h.href=h.toString()}function set(e,t,o){var r=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(o||qs.parse)(t)),r[e]=t;break;case"port":r[e]=t,required(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,/:\d+$/.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!o;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";r[e]=t.charAt(0)!==s?s+t:t}else r[e]=t;break;default:r[e]=t}for(var a=0;a<rules.length;a++){var l=rules[a];l[4]&&(r[l[1]]=r[l[1]].toLowerCase())}return r.origin="file:"!==r.protocol&&isSpecial(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function toString(e){e&&"function"==typeof e||(e=qs.stringify);var t,o=this,r=o.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var s=r+(o.slashes||isSpecial(o.protocol)?"//":"");return o.username&&(s+=o.username,o.password&&(s+=":"+o.password),s+="@"),s+=o.host+o.pathname,(t="object"==typeof o.query?e(o.query):o.query)&&(s+="?"!==t.charAt(0)?"?"+t:t),o.hash&&(s+=o.hash),s}Url.prototype={set:set,toString:toString},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.trimLeft=trimLeft,Url.qs=qs,module.exports=Url; | ||
"use strict";var required=require("requires-port"),qs=require("querystringify"),slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,whitespace="[\\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]",left=new RegExp("^"+whitespace+"+");function trimLeft(e){return(e||"").toString().replace(left,"")}var 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 t,o=("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).location||{},r={},s=typeof(e=e||o);if("blob:"===e.protocol)r=new Url(unescape(e.pathname),{});else if("string"===s)for(t in r=new Url(e,{}),ignore)delete r[t];else if("object"===s){for(t in e)t in ignore||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=slashes.test(e.href))}return r}function extractProtocol(e){e=trimLeft(e);var t=protocolre.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function resolve(e,t){if(""===e)return t;for(var o=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=o.length,s=o[r-1],a=!1,n=0;r--;)"."===o[r]?o.splice(r,1):".."===o[r]?(o.splice(r,1),n++):n&&(0===r&&(a=!0),o.splice(r,1),n--);return a&&o.unshift(""),"."!==s&&".."!==s||o.push(""),o.join("/")}function Url(e,t,o){if(e=trimLeft(e),!(this instanceof Url))return new Url(e,t,o);var r,s,a,n,l,i,c=rules.slice(),u=typeof t,h=this,p=0;for("object"!==u&&"string"!==u&&(o=t,t=null),o&&"function"!=typeof o&&(o=qs.parse),t=lolcation(t),r=!(s=extractProtocol(e||"")).protocol&&!s.slashes,h.slashes=s.slashes||r&&t.slashes,h.protocol=s.protocol||t.protocol||"",e=s.rest,s.slashes||(c[3]=[/(.*)/,"pathname"]);p<c.length;p++)"function"!=typeof(n=c[p])?(a=n[0],i=n[1],a!=a?h[i]=e:"string"==typeof a?~(l=e.indexOf(a))&&("number"==typeof n[2]?(h[i]=e.slice(0,l),e=e.slice(l+n[2])):(h[i]=e.slice(l),e=e.slice(0,l))):(l=a.exec(e))&&(h[i]=l[1],e=e.slice(0,l.index)),h[i]=h[i]||r&&n[3]&&t[i]||"",n[4]&&(h[i]=h[i].toLowerCase())):e=n(e);o&&(h.query=o(h.query)),r&&t.slashes&&"/"!==h.pathname.charAt(0)&&(""!==h.pathname||""!==t.pathname)&&(h.pathname=resolve(h.pathname,t.pathname)),required(h.port,h.protocol)||(h.host=h.hostname,h.port=""),h.username=h.password="",h.auth&&(n=h.auth.split(":"),h.username=n[0]||"",h.password=n[1]||""),h.origin=h.protocol&&h.host&&"file:"!==h.protocol?h.protocol+"//"+h.host:"null",h.href=h.toString()}function set(e,t,o){var r=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(o||qs.parse)(t)),r[e]=t;break;case"port":r[e]=t,required(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,/:\d+$/.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!o;break;case"pathname":case"hash":if(t){var s="pathname"===e?"/":"#";r[e]=t.charAt(0)!==s?s+t:t}else r[e]=t;break;default:r[e]=t}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 t,o=this,r=o.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var s=r+(o.slashes?"//":"");return o.username&&(s+=o.username,o.password&&(s+=":"+o.password),s+="@"),s+=o.host+o.pathname,(t="object"==typeof o.query?e(o.query):o.query)&&(s+="?"!==t.charAt(0)?"?"+t:t),o.hash&&(s+=o.hash),s}Url.prototype={set:set,toString:toString},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.trimLeft=trimLeft,Url.qs=qs,module.exports=Url; | ||
@@ -111,0 +111,0 @@ }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) |
@@ -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":5,"./util/middlewareReducer":6,"nano-pubsub":22}],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":23,"url-parse":36}],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"),$=window,A=$.XMLHttpRequest||function(){},S="withCredentials"in new A?A:$.XDomainRequest;t.exports=function(r,t){var e=r.options,o=r.applyMiddleware("finalizeOptions",e),n={},i=$&&$.location&&!g($.location.href,o.url),a=r.applyMiddleware("interceptRequest",void 0,{adapter:"xhr",context:r});if(a){var u=setTimeout(t,0,null,a);return{abort:function(){return clearTimeout(u)}}}var s=i?new S:new A,p=$.XDomainRequest&&s instanceof $.XDomainRequest,c=o.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(),n.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,t(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:o.url,method:o.method,headers:p?{}:w(s.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())):v(new Error("Unknown XHR error"))))},s.open(o.method,o.url,!0),s.withCredentials=!!o.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");o.rawBody&&(s.responseType="arraybuffer"),r.applyMiddleware("onRequest",{options:o,adapter:"xhr",request:s,context:r}),s.send(o.body||null);var h=o.timeout;return h&&(n.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 "+o.url:"Connection timed out on request to "+o.url);t.code=e,r.channels.error.publish(t)}function m(){(l||2<=s.readyState&&n.connect)&&clearTimeout(n.connect),n.socket&&clearTimeout(n.socket)}function v(){if(!f){m(),f=!0,s=null;var e=new Error("Network error while attempting to reach "+o.url);e.isNetworkError=!0,e.request=o,t(e)}}}},{"parse-headers":27,"same-origin":30}],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];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}}},{}],7:[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":25}],8:[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]}},{}],9:[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":8,"./helpers/assertRecord":10,"./helpers/isFinite":11,"./helpers/isNaN":12,"./helpers/mod":13,"./helpers/sign":14,"es-to-primitive/es5":15,has:20,"is-callable":21}],10:[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":8,has:20}],11:[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}},{}],12:[function(e,t,r){t.exports=Number.isNaN||function(e){return e!=e}},{}],13:[function(e,t,r){t.exports=function(e,t){var r=e%t;return Math.floor(0<=r?r:r+t)}},{}],14:[function(e,t,r){t.exports=function(e){return 0<=e?1:-1}},{}],15:[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":16,"is-callable":21}],16:[function(e,t,r){t.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},{}],17:[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":21}],18:[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}},{}],19:[function(e,t,r){"use strict";var o=e("./implementation");t.exports=Function.prototype.bind||o},{"./implementation":18}],20:[function(e,t,r){"use strict";var o=e("function-bind");t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":19}],21:[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}},{}],22:[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)}}}},{}],23:[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}},{}],24:[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":26}],25:[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":24,"./isArguments":26}],26:[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)}},{}],27:[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":17,"string.prototype.trim":33}],28:[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}},{}],29:[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}},{}],30:[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:31}],31:[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}:{}}}},{}],32:[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":9,"function-bind":19}],33:[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":32,"./polyfill":34,"./shim":35,"define-properties":7,"function-bind":19}],34:[function(e,t,r){"use strict";var o=e("./implementation");t.exports=function(){return String.prototype.trim&&""==="".trim()?String.prototype.trim:o}},{"./implementation":32}],35:[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":34,"define-properties":7}],36:[function(e,r,t){(function(i){"use strict";var y=e("requires-port"),d=e("querystringify"),a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,h=/^[a-zA-Z]:/,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 b(e){return(e||"").toString().replace(t,"")}var m=[["#","hash"],["?","query"],function(e,t){return g(t.protocol)?e.replace(/\\/g,"/"):e},["/","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 v(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 $(unescape(e.pathname),{});else if("string"==n)for(t in o=new $(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 g(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function w(e,t){e=b(e),t=t||{};var r,o=s.exec(e),n=o[1]?o[1].toLowerCase():"",i=!!o[2],a=!!o[3],u=0;return i?u=a?(r=o[2]+o[3]+o[4],o[2].length+o[3].length):(r=o[2]+o[4],o[2].length):a?(r=o[3]+o[4],u=o[3].length):r=o[4],"file:"===n?2<=u&&(r=r.slice(2)):g(n)?r=o[4]:n?i&&(r=r.slice(2)):2<=u&&g(t.protocol)&&(r=o[4]),{protocol:n,slashes:i||g(n),slashesCount:u,rest:r}}function $(e,t,r){if(e=b(e),!(this instanceof $))return new $(e,t,r);var o,n,i,a,u,s,p=m.slice(),c=typeof t,l=this,f=0;for("object"!=c&&"string"!=c&&(r=t,t=null),r&&"function"!=typeof r&&(r=d.parse),o=!(n=w(e||"",t=v(t))).protocol&&!n.slashes,l.slashes=n.slashes||o&&t.slashes,l.protocol=n.protocol||t.protocol||"",e=n.rest,("file:"===n.protocol&&(2!==n.slashesCount||h.test(e))||!n.slashes&&(n.protocol||n.slashesCount<2||!g(l.protocol)))&&(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,l);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)),"/"!==l.pathname.charAt(0)&&g(l.protocol)&&(l.pathname="/"+l.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="file:"!==l.protocol&&g(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}$.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<m.length;i++){var a=m[i];a[4]&&(o[a[1]]=o[a[1]].toLowerCase())}return o.origin="file:"!==o.protocol&&g(o.protocol)&&o.host?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||g(r.protocol)?"//":"");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}},$.extractProtocol=w,$.location=v,$.trimLeft=b,$.qs=d,r.exports=$}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{querystringify:28,"requires-port":29}]},{},[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 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":5,"./util/middlewareReducer":6,"nano-pubsub":22}],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":23,"url-parse":36}],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"),$=window,A=$.XMLHttpRequest||function(){},S="withCredentials"in new A?A:$.XDomainRequest;t.exports=function(r,t){var e=r.options,o=r.applyMiddleware("finalizeOptions",e),n={},i=$&&$.location&&!g($.location.href,o.url),a=r.applyMiddleware("interceptRequest",void 0,{adapter:"xhr",context:r});if(a){var u=setTimeout(t,0,null,a);return{abort:function(){return clearTimeout(u)}}}var s=i?new S:new A,p=$.XDomainRequest&&s instanceof $.XDomainRequest,c=o.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(),n.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,t(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:o.url,method:o.method,headers:p?{}:w(s.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())):v(new Error("Unknown XHR error"))))},s.open(o.method,o.url,!0),s.withCredentials=!!o.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");o.rawBody&&(s.responseType="arraybuffer"),r.applyMiddleware("onRequest",{options:o,adapter:"xhr",request:s,context:r}),s.send(o.body||null);var h=o.timeout;return h&&(n.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 "+o.url:"Connection timed out on request to "+o.url);t.code=e,r.channels.error.publish(t)}function m(){(l||2<=s.readyState&&n.connect)&&clearTimeout(n.connect),n.socket&&clearTimeout(n.socket)}function v(){if(!f){m(),f=!0,s=null;var e=new Error("Network error while attempting to reach "+o.url);e.isNetworkError=!0,e.request=o,t(e)}}}},{"parse-headers":27,"same-origin":30}],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];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}}},{}],7:[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":25}],8:[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]}},{}],9:[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":8,"./helpers/assertRecord":10,"./helpers/isFinite":11,"./helpers/isNaN":12,"./helpers/mod":13,"./helpers/sign":14,"es-to-primitive/es5":15,has:20,"is-callable":21}],10:[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":8,has:20}],11:[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}},{}],12:[function(e,t,r){t.exports=Number.isNaN||function(e){return e!=e}},{}],13:[function(e,t,r){t.exports=function(e,t){var r=e%t;return Math.floor(0<=r?r:r+t)}},{}],14:[function(e,t,r){t.exports=function(e){return 0<=e?1:-1}},{}],15:[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":16,"is-callable":21}],16:[function(e,t,r){t.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},{}],17:[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":21}],18:[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}},{}],19:[function(e,t,r){"use strict";var o=e("./implementation");t.exports=Function.prototype.bind||o},{"./implementation":18}],20:[function(e,t,r){"use strict";var o=e("function-bind");t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":19}],21:[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}},{}],22:[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)}}}},{}],23:[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}},{}],24:[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":26}],25:[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":24,"./isArguments":26}],26:[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)}},{}],27:[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":17,"string.prototype.trim":33}],28:[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}},{}],29:[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}},{}],30:[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:31}],31:[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}:{}}}},{}],32:[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":9,"function-bind":19}],33:[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":32,"./polyfill":34,"./shim":35,"define-properties":7,"function-bind":19}],34:[function(e,t,r){"use strict";var o=e("./implementation");t.exports=function(){return String.prototype.trim&&""==="".trim()?String.prototype.trim:o}},{"./implementation":32}],35:[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":34,"define-properties":7}],36:[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:28,"requires-port":29}]},{},[1])(1)}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
691673
4373
5
21