dweb-transports/dist/dweb-transports-bundle.js

409 lines
1.7 MiB
JavaScript
Raw Permalink Normal View History

!function(e){var n={};function t(l){if(n[l])return n[l].exports;var r=n[l]={i:l,l:!1,exports:{}};return e[l].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,l){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:l})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(t.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(l,r,function(n){return e[n]}.bind(null,r));return l},t.n=function(e){var n=e&&e.__esModule?function n(){return e.default}:function n(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=149)}([function(e,n){var t=e.exports={},l,r;function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===a||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(n){try{return l.call(null,e,0)}catch(n){return l.call(this,e,0)}}}function s(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(n){try{return r.call(null,e)}catch(n){return r.call(this,e)}}}!function(){try{l="function"==typeof setTimeout?setTimeout:a}catch(e){l=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var u=[],c=!1,p,h=-1;function f(){c&&p&&(c=!1,p.length?u=p.concat(u):h=-1,u.length&&d())}function d(){if(!c){var e=o(f);c=!0;for(var n=u.length;n;){for(p=u,u=[];++h<n;)p&&p[h].run();h=-1,n=u.length}p=null,c=!1,s(e)}}function m(e,n){this.fun=e,this.array=n}function g(){}t.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];u.push(new m(e,n)),1!==u.length||c||o(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=g,t.addListener=g,t.once=g,t.off=g,t.removeListener=g,t.removeAllListeners=g,t.emit=g,t.prependListener=g,t.prependOnceListener=g,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(e,n){},function(e,n,t){(function(n,l){var r=t(21),a=t(26).Stream,i=t(3),o=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e,n,t,l,a){throw new r.AssertionError({message:i.format("%s (%s) is required",e,n),actual:void 0===a?typeof l:a(l),expected:n,operator:t||"===",stackStartFunction:u.caller})}function c(e){return Object.prototype.toString.call(e).slice(8,-1)}function p(){}var h={bool:{check:function(e){return"boolean"==typeof e}},func:{check:function(e){return"function"==typeof e}},string:{check:function(e){return"string"==typeof e}},object:{check:function(e){return"object"==typeof e&&null!==e}},number:{check:function(e){return"number"==typeof e&&!isNaN(e)}},finite:{check:function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return n.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof a},operator:"instanceof",actual:c},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:c},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:c},uuid:{check:function(e){return"string"==typeof e&&o.test(e)},operator:"isUUID"}};function f(e){var n=Object.keys(h),t;return t=l.env.NODE_NDEBUG?p:function(e,n){e||u(n,"true",e)},n.forEach(function(n){if(e)t[n]=p;else{var l=h[n];t[n]=f
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var l=t(155),r=t(156),a=t(59);function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,n){if(o()<n)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(n),e.__proto__=u.prototype):(null===e&&(e=new u(n)),e.length=n),e}function u(e,n,t){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,n,t);if("number"==typeof e){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,n,t)}function c(e,n,t,l){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?g(e,n,t,l):"string"==typeof n?d(e,n,t):v(e,n)}function p(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,n,t,l){return p(n),n<=0?s(e,n):void 0!==t?"string"==typeof l?s(e,n).fill(t,l):s(e,n).fill(t):s(e,n)}function f(e,n){if(p(n),e=s(e,n<0?0:0|y(n)),!u.TYPED_ARRAY_SUPPORT)for(var t=0;t<n;++t)e[t]=0;return e}function d(e,n,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var l=0|w(n,t);e=s(e,l);var r=e.write(n,t);return r!==l&&(e=e.slice(0,r)),e}function m(e,n){var t=n.length<0?0:0|y(n.length);e=s(e,t);for(var l=0;l<t;l+=1)e[l]=255&n[l];return e}function g(e,n,t,l){if(n.byteLength,t<0||n.byteLength<t)throw new RangeError("'offset' is out of bounds");if(n.byteLength<t+(l||0))throw new RangeError("'length' is out of bounds");return n=void 0===t&&void 0===l?new Uint8Array(n):void 0===l?new Uint8Array(n,t):new Uint8Array(n,t,l),u.TYPED_ARRAY_SUPPORT?(e=n,e.__proto__=u.prototype):e=m(e,n),e}function v(e,n){if(u.isBuffer(n)){var t=0|y(n.length);return e=s(e,t),0===e.length?e:(n.copy(e,0,0,t),e)}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||ne(n.length)?s(e,0):m(e,n);if("Buffer"===n.type&&a(n.data))return m(e,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),u.alloc(+e)}function w(e,n){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var t=e.length;if(0===t)return 0;for(var l=!1;;)switch(n){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return X(e).length;default:if(l)return J(e).length;n=(""+n).toLowerCase(),l=!0}}function k(e,n,t){var l=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if(t>>>=0,n>>>=0,t<=n)return"";for(e||(e="utf8");;)switch(e){case"hex":return B(this,n,t);case"utf8":case"utf-8":return O(this,n,t);case"ascii":return D(this,n,t);case"latin1":case"binary":return I(this,n,t);case"base64":return C(this,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,n,t);default:if(l)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function x(e,n,t){var l=e[n];e[n]=e[t],e[t]=l}function _(e,n,t,l,r){if(0===e.length)return-1;if("string"==typeof t?(l=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=r?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(r)return-1;t=e.length-1}else if(t<0){if(!r)return-1;t=0}if("string"==typeof n&&(n=u.from(n,l)),u.isBuffer(n))return 0===n.length?-1:j(e,n,t,l,
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/function r(e,n){if(e===n)return 0;for(var t=e.length,l=n.length,r=0,a=Math.min(t,l);r<a;++r)if(e[r]!==n[r]){t=e[r],l=n[r];break}return t<l?-1:l<t?1:0}function a(e){return n.Buffer&&"function"==typeof n.Buffer.isBuffer?n.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var i=t(3),o=Object.prototype.hasOwnProperty,s=Array.prototype.slice,u="foo"===function e(){}.name;function c(e){return Object.prototype.toString.call(e)}function p(e){return!a(e)&&("function"==typeof n.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var h=e.exports=b,f=/\s*function\s+([^\(\s]*)\s*/;function d(e){if(i.isFunction(e)){if(u)return e.name;var n=e.toString(),t=n.match(f);return t&&t[1]}}function m(e,n){return"string"==typeof e?e.length<n?e:e.slice(0,n):e}function g(e){if(u||!i.isFunction(e))return i.inspect(e);var n=d(e),t=n?": "+n:"";return"[Function"+t+"]"}function v(e){return m(g(e.actual),128)+" "+e.operator+" "+m(g(e.expected),128)}function y(e,n,t,l,r){throw new h.AssertionError({message:t,actual:e,expected:n,operator:l,stackStartFunction:r})}function b(e,n){e||y(e,!0,n,"==",h.ok)}function w(e,n,t,l){if(e===n)return!0;if(a(e)&&a(n))return 0===r(e,n);if(i.isDate(e)&&i.isDate(n))return e.getTime()===n.getTime();if(i.isRegExp(e)&&i.isRegExp(n))return e.source===n.source&&e.global===n.global&&e.multiline===n.multiline&&e.lastIndex===n.lastIndex&&e.ignoreCase===n.ignoreCase;if(null!==e&&"object"==typeof e||null!==n&&"object"==typeof n){if(p(e)&&p(n)&&c(e)===c(n)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(n.buffer));if(a(e)!==a(n))return!1;l=l||{actual:[],expected:[]};var o=l.actual.indexOf(e);return-1!==o&&o===l.expected.indexOf(n)||(l.actual.push(e),l.expected.push(n),x(e,n,t,l))}return t?e===n:e==n}function k(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(e,n,t,l){if(null===e||void 0===e||null===n||void 0===n)return!1;if(i.isPrimitive(e)||i.isPrimitive(n))return e===n;if(t&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(n))return!1;var r=k(e),a=k(n);if(r&&!a||!r&&a)return!1;if(r)return e=s.call(e),n=s.call(n),w(e,n,t);var o=T(e),u=T(n),c,p;if(o.length!==u.length)return!1;for(o.sort(),u.sort(),p=o.length-1;p>=0;p--)if(o[p]!==u[p])return!1;for(p=o.length-1;p>=0;p--)if(c=o[p],!w(e[c],n[c],t,l))return!1;return!0}function _(e,n,t){w(e,n,!0)&&y(e,n,t,"notDeepStrictEqual",_)}function j(e,n){if(!e||!n)return!1;if("[object RegExp]"==Object.prototype.toString.call(n))return n.test(e);try{if(e instanceof n)return!0}catch(e){}return!Error.isPrototypeOf(n)&&!0===n.call({},e)}function S(e){var n;try{e()}catch(e){n=e}return n}function E(e,n,t,l){var r;if("function"!=typeof n)throw new TypeError('"block" argument must be a function');"string"==typeof t&&(l=t,t=null),r=S(n),l=(t&&t.name?" ("+t.name+").":".")+(l?" "+l:"."),e&&!r&&y(r,t,"Missing expected exception"+l);var a="string"==typeof l,o=!e&&i.isError(r),s=!e&&r&&!t;if((o&&a&&j(r,t)||s)&&y(r,t,"Got unwanted exception"+l),e&&r&&t&&!j(r,t)||!e&&r)throw r}function A(e,n){e||y(e,!0,n,"==",A)}h.AssertionError=function e(n){this.name="AssertionError",this.actual=n.actual,this.expected=n.expected,this.operator=n.operator,n.message?(this.message=n.message,this.generatedMessage=!1):(this.message=v(this),this.generatedMessage=!0);var t=n.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var l=new Error;if(l.stack){var r=l.stack,a=d(t),i=r.indexOf("\n"+a);if(i>=0){var o=r.indexOf("\n",i+1);r=r.substring(o+1)}this.stack=r}}},i.inherits(h.AssertionError,Error),h.fail=y,h.ok=b,h.equal=function e(n,t,l){n!=t&&y(n,t,l,"==",h.equal)},h.notEqual=function e(n,t,l){n==t&&y(n,t,l,"!=",h.notEqual)},h.deepEqual=function e(n,t,l){w(n,t,!1)||y(n,t,l,"deepEqual",h.deepEqual)},h.deepStrictEqual=function e(n,t,l){w(n,t,!0)||y(n,t,l,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function e(n,t,l){w(n,t,!1)&&y(n,t,l,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=_,h.strictEqual=function e(
/*!
* Copyright (c) 2018, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/var l=t(107);function r(e){return l.get(e)}n.getPublicSuffix=r},function(e,n,t){"use strict";var l=t(46),r={};r.rules=t(213).map(function(e){return{rule:e,suffix:e.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:"*"===e.charAt(0),exception:"!"===e.charAt(0)}}),r.endsWith=function(e,n){return-1!==e.indexOf(n,e.length-n.length)},r.findRule=function(e){var n=l.toASCII(e);return r.rules.reduce(function(e,t){return-1===t.punySuffix&&(t.punySuffix=l.toASCII(t.suffix)),r.endsWith(n,"."+t.punySuffix)||n===t.punySuffix?t:e},null)},n.errorCodes={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."},r.validate=function(e){var n=l.toASCII(e);if(n.length<1)return"DOMAIN_TOO_SHORT";if(n.length>255)return"DOMAIN_TOO_LONG";for(var t=n.split("."),r,a=0;a<t.length;++a){if(r=t[a],!r.length)return"LABEL_TOO_SHORT";if(r.length>63)return"LABEL_TOO_LONG";if("-"===r.charAt(0))return"LABEL_STARTS_WITH_DASH";if("-"===r.charAt(r.length-1))return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-]+$/.test(r))return"LABEL_INVALID_CHARS"}},n.parse=function(e){if("string"!=typeof e)throw new TypeError("Domain name must be a string.");var t=e.slice(0).toLowerCase();"."===t.charAt(t.length-1)&&(t=t.slice(0,t.length-1));var a=r.validate(t);if(a)return{input:e,error:{message:n.errorCodes[a],code:a}};var i={input:e,tld:null,sld:null,domain:null,subdomain:null,listed:!1},o=t.split(".");if("local"===o[o.length-1])return i;var s=function(){return/xn--/.test(t)?(i.domain&&(i.domain=l.toASCII(i.domain)),i.subdomain&&(i.subdomain=l.toASCII(i.subdomain)),i):i},u=r.findRule(t);if(!u)return o.length<2?i:(i.tld=o.pop(),i.sld=o.pop(),i.domain=[i.sld,i.tld].join("."),o.length&&(i.subdomain=o.pop()),s());i.listed=!0;var c=u.suffix.split("."),p=o.slice(0,o.length-c.length);return u.exception&&p.push(c.shift()),i.tld=c.join("."),p.length?(u.wildcard&&(c.unshift(p.pop()),i.tld=c.join(".")),p.length?(i.sld=p.pop(),i.domain=[i.sld,i.tld].join("."),p.length&&(i.subdomain=p.join(".")),s()):s()):s()},n.get=function(e){return e&&n.parse(e).domain||null},n.isValid=function(e){var t=n.parse(e);return Boolean(t.domain&&t.listed)}},function(e,n,t){"use strict";
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/function l(){}n.Store=l,l.prototype.synchronous=!1,l.prototype.findCookie=function(e,n,t,l){throw new Error("findCookie is not implemented")},l.prototype.findCookies=function(e,n,t){throw new Error("findCookies is not implemented")},l.prototype.putCookie=function(e,n){throw new Error("putCookie is not implemented")},l.prototype.updateCookie=function(e,n,t){throw new Error("updateCookie is not implemented")},l.prototype.removeCookie=function(e,n,t,l){throw new Error("removeCookie is not implemented")},l.prototype.removeCookies=function(e,n,t){throw new Error("removeCookies is not implemented")},l.prototype.getAllCookies=function(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}},function(e,n,t){"use strict";
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/var l=t(106);function r(e){var n=l.getPublicSuffix(e);if(!n)return null;if(n==e)return[e];for(var t=e.slice(0,-(n.length+1)),r=t.split(".").reverse(),a=n,i=[a];r.length;)a=r.shift()+"."+a,i.push(a);return i}n.permuteDomain=r},function(e,n,t){"use strict";
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/function l(e,n){if(n===e)return!0;var t=e.indexOf(n);if(0===t){if("/"===n.substr(-1))return!0;if("/"===e.substr(n.length,1))return!0}return!1}n.pathMatch=l},function(e,n,t){(function(e){n.fetch=o(e.fetch)&&o(e.ReadableStream),n.writableStream=o(e.WritableStream),n.abortController=o(e.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(e){}var t;function l(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function r(e){var n=l();if(!n)return!1;try{return n.responseType=e,n.responseType===e}catch(e){}return!1}var a=void 0!==e.ArrayBuffer,i=a&&o(e.ArrayBuffer.prototype.slice);function o(e){return"function"==typeof e}n.arraybuffer=n.fetch||a&&r("arraybuffer"),n.msstream=!n.fetch&&i&&r("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&a&&r("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!l()&&o(l().overrideMimeType),n.vbArray=o(e.VBArray),t=null}).call(this,t(9))},function(e,n){"function"==typeof Object.create?e.exports=function e(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function e(n,t){if(t){n.super_=t;var l=function(){};l.prototype=t.prototype,n.prototype=new l,n.prototype.constructor=n}}},function(e,n,t){(function(e,l,r){var a=t(111),i=t(112),o=t(114),s=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=n.IncomingMessage=function(n,t,i,s){var u=this;if(o.Readable.call(u),u._mode=i,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){e.nextTick(function(){u.emit("close")})}),"fetch"===i){if(u._fetchResponse=t,u.url=t.url,u.statusCode=t.status,u.statusMessage=t.statusText,t.headers.forEach(function(e,n){u.headers[n.toLowerCase()]=e,u.rawHeaders.push(n,e)}),a.writableStream){var c=new WritableStream({write:function(e){return new Promise(function(n,t){u._destroyed?t():u.push(new l(e))?n():u._resumeFetch=n})},close:function(){r.clearTimeout(s),u._destroyed||u.push(null)},abort:function(e){u._destroyed||u.emit("error",e)}});try{return void t.body.pipeTo(c).catch(function(e){r.clearTimeout(s),u._destroyed||u.emit("error",e)})}catch(e){}}var p=t.body.getReader();function h(){p.read().then(function(e){if(!u._destroyed){if(e.done)return r.clearTimeout(s),void u.push(null);u.push(new l(e.value)),h()}}).catch(function(e){r.clearTimeout(s),u._destroyed||u.emit("error",e)})}h()}else{u._xhr=n,u._pos=0,u.url=n.responseURL,u.statusCode=n.status,u.statusMessage=n.statusText;var f=n.getAllResponseHeaders().split(/\r?\n/);if(f.forEach(function(e){var n=e.match(/^([^:]+):\s*(.*)/);if(n){var t=n[1].toLowerCase();"set-cookie"===t?(void 0===u.headers[t]&&(u.headers[t]=[]),u.headers[t].push(n[2])):void 0!==u.headers[t]?u.headers[t]+=", "+n[2]:u.headers[t]=n[2],u.rawHeaders.push(n[1],n[2])}}),u._charset="x-user-defined",!a.overrideMimeType){var d=u.rawHeaders["mime-type"];if(d){var m=d.match(/;\s*charset=([^;])(;|$)/);m&&(u._charset=m[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};i(u,o.Readable),u.prototype._read=function(){var e=this,n=this._resumeFetch;n&&(this._resumeFetch=null,n())},u.prototype._onXHRProgress=function(){var e=this,n=e._xhr,t=null;switch(e._mode){case"text:vbarray":if(n.readyState!==s.DONE)break;try{t=new r.VBArray(n.responseBody).toArray()}catch(e){}if(null!==t){e.push(new l(t));break}case"text":try{t=n.responseText}catch(n){e._mode="text:vbarray";break}if(t.length>e._pos){var a=t.substr(e._pos);if("x-user-defined"===e._charset){for(var i=new l(a.length),o=0;o<a.length;o++)i[o]=255&a.charCodeAt(o);e.push(i)}else e.push(a,e._charset);e._pos=t.length}break;case"arraybuffer":if(n.readyState!==s.DONE||!n.response)break;t=n.response,e.push(new l(new Uint8Array(t)));break;case"moz-chunked-arraybuffer":if(t=n.response,n.readyState!==s.LOADING||!t)break;e.push(new l(new Uint8Array(t)));break;case"ms-stream":if(t=n.response,n.readyState!==s.LOADING)break;var u=new r.MSStreamReader;u.onprogress=function(){u.result.
/*!
* Copyright (c) 2018, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/var l=t(107);function r(e){return l.get(e)}n.getPublicSuffix=r},function(e,n,t){"use strict";
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/function l(){}n.Store=l,l.prototype.synchronous=!1,l.prototype.findCookie=function(e,n,t,l){throw new Error("findCookie is not implemented")},l.prototype.findCookies=function(e,n,t){throw new Error("findCookies is not implemented")},l.prototype.putCookie=function(e,n){throw new Error("putCookie is not implemented")},l.prototype.updateCookie=function(e,n,t){throw new Error("updateCookie is not implemented")},l.prototype.removeCookie=function(e,n,t,l){throw new Error("removeCookie is not implemented")},l.prototype.removeCookies=function(e,n,t){throw new Error("removeCookies is not implemented")},l.prototype.removeAllCookies=function(e){throw new Error("removeAllCookies is not implemented")},l.prototype.getAllCookies=function(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}},function(e,n,t){"use strict";
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/var l=t(145);function r(e){var n=l.getPublicSuffix(e);if(!n)return null;if(n==e)return[e];for(var t=e.slice(0,-(n.length+1)),r=t.split(".").reverse(),a=n,i=[a];r.length;)a=r.shift()+"."+a,i.push(a);return i}n.permuteDomain=r},function(e,n,t){"use strict";
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/function l(e,n){if(n===e)return!0;var t=e.indexOf(n);if(0===t){if("/"===n.substr(-1))return!0;if("/"===e.substr(n.length,1))return!0}return!1}n.pathMatch=l},function(e,n,t){const l=t(24);t(197),t(205),t(206),t(207),t(208),t(387),"undefined"!=typeof window&&(window.DwebTransports=l),n=e.exports=l},function(e,n,t){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,n,t){"use strict";function l(e,n){return Object.prototype.hasOwnProperty.call(e,n)}e.exports=function(e,n,t,a){n=n||"&",t=t||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(n);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var p=e[c].replace(o,"%20"),h=p.indexOf(t),f,d,m,g;h>=0?(f=p.substr(0,h),d=p.substr(h+1)):(f=p,d=""),m=decodeURIComponent(f),g=decodeURIComponent(d),l(i,m)?r(i[m])?i[m].push(g):i[m]=[i[m],g]:i[m]=g}return i};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,n,t){"use strict";var l=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,t,o){return n=n||"&",t=t||"=",null===e&&(e=void 0),"object"==typeof e?a(i(e),function(i){var o=encodeURIComponent(l(i))+t;return r(e[i])?a(e[i],function(e){return o+encodeURIComponent(l(e))}).join(n):o+encodeURIComponent(l(e[i]))}).join(n):o?encodeURIComponent(l(o))+t+encodeURIComponent(l(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,n){if(e.map)return e.map(n);for(var t=[],l=0;l<e.length;l++)t.push(n(e[l],l));return t}var i=Object.keys||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}},function(e,n,t){function l(e){function n(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return l.colors[Math.abs(n)%l.colors.length]}function l(e){let t;function i(...e){if(!i.enabled)return;const n=i,r=Number(new Date),a=r-(t||r);n.diff=a,n.prev=t,n.curr=r,t=r,e[0]=l.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,r)=>{if("%%"===t)return t;o++;const a=l.formatters[r];if("function"==typeof a){const l=e[o];t=a.call(n,l),e.splice(o,1),o--}return t}),l.formatArgs.call(n,e);const s=n.log||l.log;s.apply(n,e)}return i.namespace=e,i.enabled=l.enabled(e),i.useColors=l.useColors(),i.color=n(e),i.destroy=r,i.extend=a,"function"==typeof l.init&&l.init(i),l.instances.push(i),i}function r(){const e=l.instances.indexOf(this);return-1!==e&&(l.instances.splice(e,1),!0)}function a(e,n){const t=l(this.namespace+(void 0===n?":":n)+e);return t.log=this.log,t}function i(e){let n;l.save(e),l.names=[],l.skips=[];const t=("string"==typeof e?e:"").split(/[\s,]+/),r=t.length;for(n=0;n<r;n++)t[n]&&(e=t[n].replace(/\*/g,".*?"),"-"===e[0]?l.skips.push(new RegExp("^"+e.substr(1)+"$")):l.names.push(new RegExp("^"+e+"$")));for(n=0;n<l.instances.length;n++){const e=l.instances[n];e.enabled=l.enabled(e.namespace)}}function o(){const e=[...l.names.map(u),...l.skips.map(u).map(e=>"-"+e)].join(",");return l.enable(""),e}function s(e){if("*"===e[e.length-1])return!0;let n,t;for(n=0,t=l.skips.length;n<t;n++)if(l.skips[n].test(e))return!1;for(n=0,t=l.names.length;n<t;n++)if(l.names[n].test(e))return!0;return!1}function u(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function c(e){return e instanceof Error?e.stack||e.message:e}return l.debug=l,l.default=l,l.coerce=c,l.disable=o,l.enable=i,l.enabled=s,l.humanize=t(154),Object.keys(e).forEach(n=>{l[n]=e[n]}),l.instances=[],l.names=[],l.skips=[],l.formatters={},l.selectColor=n,l.enable(l.load()),l}e.exports=l},function(e,n){var t=1e3,l=60*t,r=60*l,a=24*r,i=7*a,o=365.25*a;function s(e){if(e=String(e),!(e.length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/var l=t(1),r=t(6).parse,a=t(3),i=t(106),o=t(108).Store,s=t(214).MemoryCookieStore,u=t(110).pathMatch,c=t(215).version,p;try{p=t(46)}catch(e){console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization")}var h=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/,f=/[\x00-\x1F]/,d=["\n","\r","\0"],m=/[\x20-\x3A\x3C-\x7E]+/,g=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,v={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],w=2147483647e3,k=0;function x(e,n,t,l){for(var r=0;r<e.length;){var a=e.charCodeAt(r);if(a<=47||a>=58)break;r++}return r<n||r>t?null:l||r==e.length?parseInt(e.substr(0,r),10):null}function _(e){var n=e.split(":"),t=[0,0,0];if(3!==n.length)return null;for(var l=0;l<3;l++){var r=2==l,a=x(n[l],1,2,r);if(null===a)return null;t[l]=a}return t}function j(e){e=String(e).substr(0,3).toLowerCase();var n=v[e];return n>=0?n:null}function S(e){if(e){var n=e.split(g);if(n){for(var t=null,l=null,r=null,a=null,i=null,o=null,s=0;s<n.length;s++){var u=n[s].trim(),c;if(u.length)null===r&&(c=_(u),c)?(t=c[0],l=c[1],r=c[2]):null!==a||(c=x(u,1,2,!0),null===c)?null!==i||(c=j(u),null===c)?null===o&&(c=x(u,2,4,!0),null!==c&&(o=c,o>=70&&o<=99?o+=1900:o>=0&&o<=69&&(o+=2e3))):i=c:a=c}if(!(null===a||null===i||null===o||null===r||a<1||a>31||o<1601||t>23||l>59||r>59))return new Date(Date.UTC(o,i,a,t,l,r))}}}function E(e){var n=e.getUTCDate();n=n>=10?n:"0"+n;var t=e.getUTCHours();t=t>=10?t:"0"+t;var l=e.getUTCMinutes();l=l>=10?l:"0"+l;var r=e.getUTCSeconds();return r=r>=10?r:"0"+r,b[e.getUTCDay()]+", "+n+" "+y[e.getUTCMonth()]+" "+e.getUTCFullYear()+" "+t+":"+l+":"+r+" GMT"}function A(e){return null==e?null:(e=e.trim().replace(/^\./,""),p&&/[^\u0001-\u007f]/.test(e)&&(e=p.toASCII(e)),e.toLowerCase())}function T(e,n,t){if(null==e||null==n)return null;if(!1!==t&&(e=A(e),n=A(n)),e==n)return!0;if(l.isIP(e))return!1;var r=e.indexOf(n);return!(r<=0)&&(e.length===n.length+r&&"."===e.substr(r-1,1))}function F(e){if(!e||"/"!==e.substr(0,1))return"/";if("/"===e)return e;var n=e.lastIndexOf("/");return 0===n?"/":e.slice(0,n)}function P(e){for(var n=0;n<d.length;n++){var t=e.indexOf(d[n]);-1!==t&&(e=e.substr(0,t))}return e}function C(e,n){e=P(e);var t=e.indexOf("="),l,r;if(n)0===t&&(e=e.substr(1),t=e.indexOf("="));else if(t<=0)return;if(t<=0?(l="",r=e.trim()):(l=e.substr(0,t).trim(),r=e.substr(t+1).trim()),!f.test(l)&&!f.test(r)){var a=new q;return a.key=l,a.value=r,a}}function O(e,n){n&&"object"==typeof n||(n={}),e=e.trim();var t=e.indexOf(";"),l=-1===t?e:e.substr(0,t),r=C(l,!!n.loose);if(r){if(-1===t)return r;var a=e.slice(t+1).trim();if(0===a.length)return r;for(var i=a.split(";");i.length;){var o=i.shift().trim();if(0!==o.length){var s=o.indexOf("="),u,c;switch(-1===s?(u=o,c=null):(u=o.substr(0,s),c=o.substr(s+1)),u=u.trim().toLowerCase(),c&&(c=c.trim()),u){case"expires":if(c){var p=S(c);p&&(r.expires=p)}break;case"max-age":if(c&&/^-?[0-9]+$/.test(c)){var h=parseInt(c,10);r.setMaxAge(h)}break;case"domain":if(c){var f=c.trim().replace(/^\./,"");f&&(r.domain=f.toLowerCase())}break;case"path":r.path=c&&"/"===c[0]?c:null;break;case"secure":r.secure=!0;break;case"httponly":r.httpOnly=!0;break;default:r.extensions=r.extensions||[],r.extensions.push(o)}}}return r}}function R(e){var n;try{n=JSON.parse(e)}catch(e){return e}return n}function z(e){if(!e)return null;var n;if("string"==typeof e){if(n=R(e),n instanceof Error)return null}else n=e;for(var t=new q,l=0;l<q.serializableProperties.length;l++){var r=q.serializableProperties[l];void 0!==n[r]&&n[r]!==q.prototype[r]&&("expires"===r||"creation"===r||"lastAccessed"===r?null===n[r]?t[r]=null:t[r]="Infinity"==n[r]?"Infinity":new Date(n[r]):t[r]=n[r])}return t}function D(e,n){var t=0,l=e.path?e.path.length:0,r=n.path?n.path.length:0;if(t=r-l,0!==t)return t;var a=e.creation?e.creation.getTime():w,i=n.creation?n.creation.getTime():w;return t=a-i,0!==t?t:(t=e.creationIndex-n.creationIndex,t)}function I(e){if("/"===e)return["/"];e.lastI
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/var l=t(108).Store,r=t(109).permuteDomain,a=t(110).pathMatch,i=t(3);function o(){l.call(this),this.idx={}}i.inherits(o,l),n.MemoryCookieStore=o,o.prototype.idx=null,o.prototype.synchronous=!0,o.prototype.inspect=function(){return"{ idx: "+i.inspect(this.idx,!1,2)+" }"},i.inspect.custom&&(o.prototype[i.inspect.custom]=o.prototype.inspect),o.prototype.findCookie=function(e,n,t,l){return this.idx[e]&&this.idx[e][n]?l(null,this.idx[e][n][t]||null):l(null,void 0)},o.prototype.findCookies=function(e,n,t){var l=[],i;if(!e)return t(null,[]);i=n?function e(t){Object.keys(t).forEach(function(e){if(a(n,e)){var r=t[e];for(var i in r)l.push(r[i])}})}:function e(n){for(var t in n){var r=n[t];for(var a in r)l.push(r[a])}};var o=r(e)||[e],s=this.idx;o.forEach(function(e){var n=s[e];n&&i(n)}),t(null,l)},o.prototype.putCookie=function(e,n){this.idx[e.domain]||(this.idx[e.domain]={}),this.idx[e.domain][e.path]||(this.idx[e.domain][e.path]={}),this.idx[e.domain][e.path][e.key]=e,n(null)},o.prototype.updateCookie=function(e,n,t){this.putCookie(n,t)},o.prototype.removeCookie=function(e,n,t,l){this.idx[e]&&this.idx[e][n]&&this.idx[e][n][t]&&delete this.idx[e][n][t],l(null)},o.prototype.removeCookies=function(e,n,t){return this.idx[e]&&(n?delete this.idx[e][n]:delete this.idx[e]),t(null)},o.prototype.getAllCookies=function(e){var n=[],t=this.idx,l=Object.keys(t);l.forEach(function(e){var l=Object.keys(t[e]);l.forEach(function(l){var r=Object.keys(t[e][l]);r.forEach(function(r){null!==r&&n.push(t[e][l][r])})})}),n.sort(function(e,n){return(e.creationIndex||0)-(n.creationIndex||0)}),e(null,n)}},function(e){e.exports=JSON.parse('{"author":{"name":"Jeremy Stashewsky","email":"jstash@gmail.com","website":"https://github.com/stash"},"contributors":[{"name":"Alexander Savin","website":"https://github.com/apsavin"},{"name":"Ian Livingstone","website":"https://github.com/ianlivingstone"},{"name":"Ivan Nikulin","website":"https://github.com/inikulin"},{"name":"Lalit Kapoor","website":"https://github.com/lalitkapoor"},{"name":"Sam Thompson","website":"https://github.com/sambthompson"},{"name":"Sebastian Mayr","website":"https://github.com/Sebmaster"}],"license":"BSD-3-Clause","name":"tough-cookie","description":"RFC6265 Cookies and Cookie Jar for node.js","keywords":["HTTP","cookie","cookies","set-cookie","cookiejar","jar","RFC6265","RFC2965"],"version":"2.4.3","homepage":"https://github.com/salesforce/tough-cookie","repository":{"type":"git","url":"git://github.com/salesforce/tough-cookie.git"},"bugs":{"url":"https://github.com/salesforce/tough-cookie/issues"},"main":"./lib/cookie","files":["lib"],"scripts":{"test":"vows test/*_test.js","cover":"nyc --reporter=lcov --reporter=html vows test/*_test.js"},"engines":{"node":">=0.8"},"devDependencies":{"async":"^1.4.2","nyc":"^11.6.0","string.prototype.repeat":"^0.2.0","vows":"^0.8.1"},"dependencies":{"psl":"^1.1.24","punycode":"^1.4.1"}}')},function(e,n){function t(e,n,t,r){return JSON.stringify(e,l(n,r),t)}function l(e,n){var t=[],l=[];return null==n&&(n=function(e,n){return t[0]===n?"[Circular ~]":"[Circular ~."+l.slice(0,t.indexOf(n)).join(".")+"]"}),function(r,a){if(t.length>0){var i=t.indexOf(this);~i?t.splice(i+1):t.push(this),~i?l.splice(i,1/0,r):l.push(r),~t.indexOf(a)&&(a=n.call(this,r,a))}else t.push(a);return null==e?a:e.call(this,r,a)}}n=e.exports=t,n.getSerialize=l},function(e,n,t){"use strict";(function(n){var l=t(37),r=t(70),a=t(6),i=t(3),o=t(26),s=t(234),u=t(245),c=t(246),p=t(248),h=t(265),f=t(80),d=t(268),m=t(269),g=t(67),v=t(132),y=t(270).strict,b=t(68),w=t(105),k=t(271),x=t(272).Querystring,_=t(275).Har,j=t(332).Auth,S=t(335).OAuth,E=t(337),A=t(338).Multipart,T=t(341).Redirect,F=t(342).Tunnel,P=t(344),C=t(33).Buffer,O=b.safeStringify,R=b.isReadStream,z=b.toBase64,D=b.defer,I=b.copy,B=b.version,q=w.jar(),L={};function N(e,n){var t={};for(var l in n){var r=-1===e.indexOf(l);r&&(t[l]=n[l])}return t}function U(e,n){var t={};for(var l in n){var r=!(-1===e.indexOf(l)),a="function"==typeof n[l];r&&a||(t[l]=n[l])}return t}function M(){var e=this;return{uri:this.uri,method:this.method,headers:t
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var l=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;var l=Object.getOwnPropertyNames(n).map(function(e){return n[e]});if("0123456789"!==l.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}e.exports=o()?Object.assign:function(e,n){for(var t,o=i(e),s,u=1;u<arguments.length;u++){for(var c in t=Object(arguments[u]),t)r.call(t,c)&&(o[c]=t[c]);if(l){s=l(t);for(var p=0;p<s.length;p++)a.call(t,s[p])&&(o[s[p]]=t[s[p]])}}return o}},function(e,n,t){"use strict";function l(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=l},function(e,n,t){"use strict";var l=t(53),r=t(239),a=t(124),i=t(125),o=t(240),s=0,u=1,c=3,p=4,h=5,f=0,d=1,m=-2,g=-3,v=-5,y=-1,b=1,w=2,k=3,x=4,_=0,j=2,S=8,E=9,A=15,T=8,F=29,P=256,C=286,O=30,R=19,z=2*C+1,D=15,I=3,B=258,q=B+I+1,L=32,N=42,U=69,M=73,H=91,K=103,$=113,V=666,W=1,G=2,Z=3,J=4,Q=3,Y;function X(e,n){return e.msg=o[n],n}function ee(e){return(e<<1)-(e>4?9:0)}function ne(e){for(var n=e.length;--n>=0;)e[n]=0}function te(e){var n=e.state,t=n.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(l.arraySet(e.output,n.pending_buf,n.pending_out,t,e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,0===n.pending&&(n.pending_out=0))}function le(e,n){r._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,te(e.strm)}function re(e,n){e.pending_buf[e.pending++]=n}function ae(e,n){e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=255&n}function ie(e,n,t,r){var o=e.avail_in;return o>r&&(o=r),0===o?0:(e.avail_in-=o,l.arraySet(n,e.input,e.next_in,o,t),1===e.state.wrap?e.adler=a(e.adler,n,o,t):2===e.state.wrap&&(e.adler=i(e.adler,n,o,t)),e.next_in+=o,e.total_in+=o,o)}function oe(e,n){var t=e.max_chain_length,l=e.strstart,r,a,i=e.prev_length,o=e.nice_match,s=e.strstart>e.w_size-q?e.strstart-(e.w_size-q):0,u=e.window,c=e.w_mask,p=e.prev,h=e.strstart+B,f=u[l+i-1],d=u[l+i];e.prev_length>=e.good_match&&(t>>=2),o>e.lookahead&&(o=e.lookahead);do{if(r=n,u[r+i]===d&&u[r+i-1]===f&&u[r]===u[l]&&u[++r]===u[l+1]){l+=2,r++;do{}while(u[++l]===u[++r]&&u[++l]===u[++r]&&u[++l]===u[++r]&&u[++l]===u[++r]&&u[++l]===u[++r]&&u[++l]===u[++r]&&u[++l]===u[++r]&&u[++l]===u[++r]&&l<h);if(a=B-(h-l),l=h-B,a>i){if(e.match_start=n,i=a,a>=o)break;f=u[l+i-1],d=u[l+i]}}}while((n=p[n&c])>s&&0!=--t);return i<=e.lookahead?i:e.lookahead}function se(e){var n=e.w_size,t,r,a,i,o;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-q)){l.arraySet(e.window,e.window,n,n,0),e.match_start-=n,e.strstart-=n,e.block_start-=n,r=e.hash_size,t=r;do{a=e.head[--t],e.head[t]=a>=n?a-n:0}while(--r);r=n,t=r;do{a=e.prev[--t],e.prev[t]=a>=n?a-n:0}while(--r);i+=n}if(0===e.strm.avail_in)break;if(r=ie(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=r,e.lookahead+e.insert>=I)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+I-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<I)););}while(e.lookahead<q&&0!==e.strm.avail_in)}function ue(e,n){var t=65535;for(t>e.pending_buf_size-5&&(t=e.pending_buf_size-5);;){if(e.lookahead<=1){if(se(e),0===e.lookahead&&n===s)return W;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var l=e.block_start+t;if((0===e.strstart||e.strstart>=l)&&(e.lookahead=e.strstart-l,e.strstart=l,le(e,!1),0===e.strm.avail_out))return W;if(e.strstart-
/*!
* Copyright 2010 LearnBoost <dev@learnboost.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var l=t(1),r=t(6).parse,a=["acl","location","logging","notification","partNumber","policy","requestPayment","torrent","uploadId","uploads","versionId","versioning","versions","website"];function i(e){return"AWS "+e.key+":"+s(e)}function o(e){return l.createHmac("sha1",e.secret).update(e.message).digest("base64")}function s(e){return e.message=c(e),o(e)}function u(e){return e.message=p(e),o(e)}function c(e){var n=e.amazonHeaders||"";n&&(n+="\n");var t=[e.verb,e.md5,e.contentType,e.date?e.date.toUTCString():"",n+e.resource];return t.join("\n")}function p(e){return"GET\n\n\n"+e.date+"\n"+e.resource}function h(e){for(var n=[],t=Object.keys(e),l=0,r=t.length;l<r;++l){var a=t[l],i=e[a],a=a.toLowerCase();0===a.indexOf("x-amz")&&n.push(a+":"+i)}return n.sort().join("\n")}function f(e){var n=r(e,!0),t=n.pathname,l=[];return Object.keys(n.query).forEach(function(e){if(~a.indexOf(e)){var t=""==n.query[e]?"":"="+encodeURIComponent(n.query[e]);l.push(e+t)}}),t+(l.length?"?"+l.sort().join("&"):"")}e.exports=i,e.exports.authorization=i,e.exports.hmacSha1=o,e.exports.sign=s,e.exports.signQuery=u,e.exports.stringToSign=c,e.exports.queryStringToSign=p,e.exports.canonicalizeHeaders=h,e.exports.canonicalizeResource=f},function(e,n,t){(function(e){var l=n,r=t(6),a=t(48),i=t(1),o=t(247),s=o(1e3);function u(e,n,t){return i.createHmac("sha256",e).update(n,"utf8").digest(t)}function c(e,n){return i.createHash("sha256").update(e,"utf8").digest(n)}function p(e){return e.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function h(e,n){"string"==typeof e&&(e=r.parse(e));var t=e.headers=e.headers||{},l=this.matchHost(e.hostname||e.host||t.Host||t.host);this.request=e,this.credentials=n||this.defaultCredentials(),this.service=e.service||l[0]||"",this.region=e.region||l[1]||"us-east-1","email"===this.service&&(this.service="ses"),!e.method&&e.body&&(e.method="POST"),t.Host||t.host||(t.Host=e.hostname||e.host||this.createHost(),e.port&&(t.Host+=":"+e.port)),e.hostname||e.host||(e.hostname=t.Host||t.host),this.isCodeCommitGit="codecommit"===this.service&&"GIT"===e.method}h.prototype.matchHost=function(e){var n=(e||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/),t=(n||[]).slice(1,3);return"es"===t[1]&&(t=t.reverse()),t},h.prototype.isSingleRegion=function(){return["s3","sdb"].indexOf(this.service)>=0&&"us-east-1"===this.region||["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0},h.prototype.createHost=function(){var e=this.isSingleRegion()?"":("s3"===this.service&&"us-east-1"!==this.region?"-":".")+this.region,n="ses"===this.service?"email":this.service;return n+e+".amazonaws.com"},h.prototype.prepareRequest=function(){this.parsePath();var n=this.request,t=n.headers,l;n.signQuery?(this.parsedPath.query=l=this.parsedPath.query||{},this.credentials.sessionToken&&(l["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||l["X-Amz-Expires"]||(l["X-Amz-Expires"]=86400),l["X-Amz-Date"]?this.datetime=l["X-Amz-Date"]:l["X-Amz-Date"]=this.getDateTime(),l["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",l["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString(),l["X-Amz-SignedHeaders"]=this.signedHeaders()):(n.doNotModifyHeaders||this.isCodeCommitGit||(!n.body||t["Content-Type"]||t["content-type"]||(t["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8"),!n.body||t["Content-Length"]||t["content-length"]||(t["Content-Length"]=e.byteLength(n.body)),!this.credentials.sessionToken||t["X-Amz-Security-Token"]||t["x-amz-security-token"]||(t["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||t["X-Amz-Content-Sha256"]||t["x-amz-content-sha256"]||(t["X-Amz-Content-Sha256"]=c(this.request.body||"","hex")),t["X-Amz-Date"]||t["x-amz-date"]?this.datetime=t["X-Amz-Date"]||t["x-amz-date"]:t["X-Amz-Date"]=this.getDateTime()),delete t.Authorization,delete t.authorization)},h.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["X-Amz-Signature"]=this.signature():this.reque
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/var l=t(266),r=t(66).extname,a=/^\s*([^;\s]*)(?:;|\s|$)/,i=/^text\//i;function o(e){if(!e||"string"!=typeof e)return!1;var n=a.exec(e),t=n&&l[n[1].toLowerCase()];return t&&t.charset?t.charset:!(!n||!i.test(n[1]))&&"UTF-8"}function s(e){if(!e||"string"!=typeof e)return!1;var t=-1===e.indexOf("/")?n.lookup(e):e;if(!t)return!1;if(-1===t.indexOf("charset")){var l=n.charset(t);l&&(t+="; charset="+l.toLowerCase())}return t}function u(e){if(!e||"string"!=typeof e)return!1;var t=a.exec(e),l=t&&n.extensions[t[1].toLowerCase()];return!(!l||!l.length)&&l[0]}function c(e){if(!e||"string"!=typeof e)return!1;var t=r("x."+e).toLowerCase().substr(1);return t&&n.types[t]||!1}function p(e,n){var t=["nginx","apache",void 0,"iana"];Object.keys(l).forEach(function r(a){var i=l[a],o=i.extensions;if(o&&o.length){e[a]=o;for(var s=0;s<o.length;s++){var u=o[s];if(n[u]){var c=t.indexOf(l[n[u]].source),p=t.indexOf(i.source);if("application/octet-stream"!==n[u]&&(c>p||c===p&&"application/"===n[u].substr(0,12)))continue}n[u]=a}}})}n.charset=o,n.charsets={lookup:o},n.contentType=s,n.extension=u,n.extensions=Object.create(null),n.lookup=c,n.types=Object.create(null),p(n.extensions,n.types)},function(e,n,t){
/*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* MIT Licensed
*/
e.exports=t(267)},function(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true},"application/atsc-held+xml":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/cbor":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":tr
/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */var l,r;l=this,r=function(e){"use strict";function n(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];if(n.length>1){n[0]=n[0].slice(0,-1);for(var l=n.length-1,r=1;r<l;++r)n[r]=n[r].slice(1,-1);return n[l]=n[l].slice(1),n.join("")}return n[0]}function t(e){return"(?:"+e+")"}function l(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function r(e){return e.toUpperCase()}function a(e){return void 0!==e&&null!==e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,n){var t=e;if(n)for(var l in n)t[l]=n[l];return t}function o(e){var l="[A-Za-z]",r="[\\x0D]",a="[0-9]",i="[\\x22]",o=n("[0-9]","[A-Fa-f]"),s="[\\x0A]",u="[\\x20]",c=t(t("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+t("%[89A-Fa-f]"+o+"%"+o+o)+"|"+t("%"+o+o)),p="[\\:\\/\\?\\#\\[\\]\\@]",h="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",f=n(p,h),d=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",m=e?"[\\uE000-\\uF8FF]":"[]",g=n(l,"[0-9]","[\\-\\.\\_\\~]",d),v=t(l+n(l,"[0-9]","[\\+\\-\\.]")+"*"),y=t(t(c+"|"+n(g,h,"[\\:]"))+"*"),b=t(t("25[0-5]")+"|"+t("2[0-4][0-9]")+"|"+t("1[0-9][0-9]")+"|"+t("[1-9][0-9]")+"|[0-9]"),w=t(t("25[0-5]")+"|"+t("2[0-4][0-9]")+"|"+t("1[0-9][0-9]")+"|"+t("0?[1-9][0-9]")+"|0?0?[0-9]"),k=t(w+"\\."+w+"\\."+w+"\\."+w),x=t(o+"{1,4}"),_=t(t(x+"\\:"+x)+"|"+k),j=t(t(x+"\\:")+"{6}"+_),S=t("\\:\\:"+t(x+"\\:")+"{5}"+_),E=t(t(x)+"?\\:\\:"+t(x+"\\:")+"{4}"+_),A=t(t(t(x+"\\:")+"{0,1}"+x)+"?\\:\\:"+t(x+"\\:")+"{3}"+_),T=t(t(t(x+"\\:")+"{0,2}"+x)+"?\\:\\:"+t(x+"\\:")+"{2}"+_),F=t(t(t(x+"\\:")+"{0,3}"+x)+"?\\:\\:"+x+"\\:"+_),P=t(t(t(x+"\\:")+"{0,4}"+x)+"?\\:\\:"+_),C=t(t(t(x+"\\:")+"{0,5}"+x)+"?\\:\\:"+x),O=t(t(t(x+"\\:")+"{0,6}"+x)+"?\\:\\:"),R=t([j,S,E,A,T,F,P,C,O].join("|")),z=t(t(g+"|"+c)+"+"),D=t(R+"\\%25"+z),I=t(R+t("\\%25|\\%(?!"+o+"{2})")+z),B=t("[vV]"+o+"+\\."+n(g,h,"[\\:]")+"+"),q=t("\\["+t(I+"|"+R+"|"+B)+"\\]"),L=t(t(c+"|"+n(g,h))+"*"),N=t(q+"|"+k+"(?!"+L+")|"+L),U=t("[0-9]*"),M=t(t(y+"@")+"?"+N+t("\\:"+U)+"?"),H=t(c+"|"+n(g,h,"[\\:\\@]")),K=t(H+"*"),$=t(H+"+"),V=t(t(c+"|"+n(g,h,"[\\@]"))+"+"),W=t(t("\\/"+K)+"*"),G=t("\\/"+t($+W)+"?"),Z=t(V+W),J=t($+W),Q="(?!"+H+")",Y=t(W+"|"+G+"|"+Z+"|"+J+"|"+Q),X=t(t(H+"|"+n("[\\/\\?]",m))+"*"),ee=t(t(H+"|[\\/\\?]")+"*"),ne=t(t("\\/\\/"+M+W)+"|"+G+"|"+J+"|"+Q),te=t(v+"\\:"+ne+t("\\?"+X)+"?"+t("\\#"+ee)+"?"),le=t(t("\\/\\/"+M+W)+"|"+G+"|"+Z+"|"+Q),re=t(le+t("\\?"+X)+"?"+t("\\#"+ee)+"?"),ae=t(te+"|"+re),ie=t(v+"\\:"+ne+t("\\?"+X)+"?"),oe="^("+v+")\\:"+t(t("\\/\\/("+t("("+y+")@")+"?("+N+")"+t("\\:("+U+")")+"?)")+"?("+W+"|"+G+"|"+J+"|"+Q+")")+t("\\?("+X+")")+"?"+t("\\#("+ee+")")+"?$",se="^(){0}"+t(t("\\/\\/("+t("("+y+")@")+"?("+N+")"+t("\\:("+U+")")+"?)")+"?("+W+"|"+G+"|"+Z+"|"+Q+")")+t("\\?("+X+")")+"?"+t("\\#("+ee+")")+"?$",ue="^("+v+")\\:"+t(t("\\/\\/("+t("("+y+")@")+"?("+N+")"+t("\\:("+U+")")+"?)")+"?("+W+"|"+G+"|"+J+"|"+Q+")")+t("\\?("+X+")")+"?$",ce="^"+t("\\#("+ee+")")+"?$",pe="^"+t("("+y+")@")+"?("+N+")"+t("\\:("+U+")")+"?$";return{NOT_SCHEME:new RegExp(n("[^]",l,"[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",g,h),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",g,h),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",g,h),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",g,h),"g"),NOT_QUERY:new RegExp(n("[^\\%]",g,h,"[\\:\\@\\/\\?]",m),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",g,h,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",g,h),"g"),UNRESERVED:new RegExp(g,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",g,f),"g"),PCT_ENCODED:new RegExp(c,"g"),IPV4ADDRESS:new RegExp("^("+k+")$"),IPV6ADDRESS:new RegExp("^\\[?("+R+")"+t(t("\\%25|\\%(?!"+o+"{2})")+"("+z+")")+"?\\]?$")}}var s=o(!1),u=o(!0),c=function(){function e(e,n){var t=[],l=!0,r=!1,a=void 0;try{for(var i=e[Symbol.iterator](),o;!(l=(o=i.next()).done)&&(t.push(o.value),!n||t.length!==n);l=!0);}catch(e){r=!0,a=e}finally{try{!l&&i.return&&i.return()}finally{if(r)throw a}}ret
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/var l=t(1),r=t(6).parse,a=t(3),i=t(145),o=t(146).Store,s=t(353).MemoryCookieStore,u=t(148).pathMatch,c=t(354),p;try{p=t(46)}catch(e){console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization")}var h=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/,f=/[\x00-\x1F]/,d=["\n","\r","\0"],m=/[\x20-\x3A\x3C-\x7E]+/,g=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,v={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],w=2147483647e3,k=0;function x(e,n,t,l){for(var r=0;r<e.length;){var a=e.charCodeAt(r);if(a<=47||a>=58)break;r++}return r<n||r>t?null:l||r==e.length?parseInt(e.substr(0,r),10):null}function _(e){var n=e.split(":"),t=[0,0,0];if(3!==n.length)return null;for(var l=0;l<3;l++){var r=2==l,a=x(n[l],1,2,r);if(null===a)return null;t[l]=a}return t}function j(e){e=String(e).substr(0,3).toLowerCase();var n=v[e];return n>=0?n:null}function S(e){if(e){var n=e.split(g);if(n){for(var t=null,l=null,r=null,a=null,i=null,o=null,s=0;s<n.length;s++){var u=n[s].trim(),c;if(u.length)null===r&&(c=_(u),c)?(t=c[0],l=c[1],r=c[2]):null!==a||(c=x(u,1,2,!0),null===c)?null!==i||(c=j(u),null===c)?null===o&&(c=x(u,2,4,!0),null!==c&&(o=c,o>=70&&o<=99?o+=1900:o>=0&&o<=69&&(o+=2e3))):i=c:a=c}if(!(null===a||null===i||null===o||null===r||a<1||a>31||o<1601||t>23||l>59||r>59))return new Date(Date.UTC(o,i,a,t,l,r))}}}function E(e){var n=e.getUTCDate();n=n>=10?n:"0"+n;var t=e.getUTCHours();t=t>=10?t:"0"+t;var l=e.getUTCMinutes();l=l>=10?l:"0"+l;var r=e.getUTCSeconds();return r=r>=10?r:"0"+r,b[e.getUTCDay()]+", "+n+" "+y[e.getUTCMonth()]+" "+e.getUTCFullYear()+" "+t+":"+l+":"+r+" GMT"}function A(e){return null==e?null:(e=e.trim().replace(/^\./,""),p&&/[^\u0001-\u007f]/.test(e)&&(e=p.toASCII(e)),e.toLowerCase())}function T(e,n,t){if(null==e||null==n)return null;if(!1!==t&&(e=A(e),n=A(n)),e==n)return!0;if(l.isIP(e))return!1;var r=e.indexOf(n);return!(r<=0)&&(e.length===n.length+r&&"."===e.substr(r-1,1))}function F(e){if(!e||"/"!==e.substr(0,1))return"/";if("/"===e)return e;var n=e.lastIndexOf("/");return 0===n?"/":e.slice(0,n)}function P(e){for(var n=0;n<d.length;n++){var t=e.indexOf(d[n]);-1!==t&&(e=e.substr(0,t))}return e}function C(e,n){e=P(e);var t=e.indexOf("="),l,r;if(n)0===t&&(e=e.substr(1),t=e.indexOf("="));else if(t<=0)return;if(t<=0?(l="",r=e.trim()):(l=e.substr(0,t).trim(),r=e.substr(t+1).trim()),!f.test(l)&&!f.test(r)){var a=new q;return a.key=l,a.value=r,a}}function O(e,n){n&&"object"==typeof n||(n={}),e=e.trim();var t=e.indexOf(";"),l=-1===t?e:e.substr(0,t),r=C(l,!!n.loose);if(r){if(-1===t)return r;var a=e.slice(t+1).trim();if(0===a.length)return r;for(var i=a.split(";");i.length;){var o=i.shift().trim();if(0!==o.length){var s=o.indexOf("="),u,c;switch(-1===s?(u=o,c=null):(u=o.substr(0,s),c=o.substr(s+1)),u=u.trim().toLowerCase(),c&&(c=c.trim()),u){case"expires":if(c){var p=S(c);p&&(r.expires=p)}break;case"max-age":if(c&&/^-?[0-9]+$/.test(c)){var h=parseInt(c,10);r.setMaxAge(h)}break;case"domain":if(c){var f=c.trim().replace(/^\./,"");f&&(r.domain=f.toLowerCase())}break;case"path":r.path=c&&"/"===c[0]?c:null;break;case"secure":r.secure=!0;break;case"httponly":r.httpOnly=!0;break;default:r.extensions=r.extensions||[],r.extensions.push(o)}}}return r}}function R(e){var n;try{n=JSON.parse(e)}catch(e){return e}return n}function z(e){if(!e)return null;var n;if("string"==typeof e){if(n=R(e),n instanceof Error)return null}else n=e;for(var t=new q,l=0;l<q.serializableProperties.length;l++){var r=q.serializableProperties[l];void 0!==n[r]&&n[r]!==q.prototype[r]&&("expires"===r||"creation"===r||"lastAccessed"===r?null===n[r]?t[r]=null:t[r]="Infinity"==n[r]?"Infinity":new Date(n[r]):t[r]=n[r])}return t}function D(e,n){var t=0,l=e.path?e.path.length:0,r=n.path?n.path.length:0;if(t=r-l,0!==t)return t;var a=e.creation?e.creation.getTime():w,i=n.creation?n.creation.getTime():w;return t=a-i,0!==t?t:(t=e.creationIndex-n.creationIndex,t)}function I(e){if("/"===e)return["/"];e.lastIndexOf("
/*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/var l=t(146).Store,r=t(147).permuteDomain,a=t(148).pathMatch,i=t(3);function o(){l.call(this),this.idx={}}i.inherits(o,l),n.MemoryCookieStore=o,o.prototype.idx=null,o.prototype.synchronous=!0,o.prototype.inspect=function(){return"{ idx: "+i.inspect(this.idx,!1,2)+" }"},i.inspect.custom&&(o.prototype[i.inspect.custom]=o.prototype.inspect),o.prototype.findCookie=function(e,n,t,l){return this.idx[e]&&this.idx[e][n]?l(null,this.idx[e][n][t]||null):l(null,void 0)},o.prototype.findCookies=function(e,n,t){var l=[],i;if(!e)return t(null,[]);i=n?function e(t){Object.keys(t).forEach(function(e){if(a(n,e)){var r=t[e];for(var i in r)l.push(r[i])}})}:function e(n){for(var t in n){var r=n[t];for(var a in r)l.push(r[a])}};var o=r(e)||[e],s=this.idx;o.forEach(function(e){var n=s[e];n&&i(n)}),t(null,l)},o.prototype.putCookie=function(e,n){this.idx[e.domain]||(this.idx[e.domain]={}),this.idx[e.domain][e.path]||(this.idx[e.domain][e.path]={}),this.idx[e.domain][e.path][e.key]=e,n(null)},o.prototype.updateCookie=function(e,n,t){this.putCookie(n,t)},o.prototype.removeCookie=function(e,n,t,l){this.idx[e]&&this.idx[e][n]&&this.idx[e][n][t]&&delete this.idx[e][n][t],l(null)},o.prototype.removeCookies=function(e,n,t){return this.idx[e]&&(n?delete this.idx[e][n]:delete this.idx[e]),t(null)},o.prototype.removeAllCookies=function(e){return this.idx={},e(null)},o.prototype.getAllCookies=function(e){var n=[],t=this.idx,l=Object.keys(t);l.forEach(function(e){var l=Object.keys(t[e]);l.forEach(function(l){var r=Object.keys(t[e][l]);r.forEach(function(r){null!==r&&n.push(t[e][l][r])})})}),n.sort(function(e,n){return(e.creationIndex||0)-(n.creationIndex||0)}),e(null,n)}},function(e,n){e.exports="2.5.0"},function(e,n){n.endianness=function(){return"LE"},n.hostname=function(){return"undefined"!=typeof location?location.hostname:""},n.loadavg=function(){return[]},n.uptime=function(){return 0},n.freemem=function(){return Number.MAX_VALUE},n.totalmem=function(){return Number.MAX_VALUE},n.cpus=function(){return[]},n.type=function(){return"Browser"},n.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},n.networkInterfaces=n.getNetworkInterfaces=function(){return{}},n.arch=function(){return"javascript"},n.platform=function(){return"browser"},n.tmpdir=n.tmpDir=function(){return"/tmp"},n.EOL="\n",n.homedir=function(){return"/"}},function(e,n,t){"use strict";e.exports=t(357)},function(e,n,t){"use strict";e.exports=t(144)},function(e,n,t){const l=t(359);e.exports=new l},function(e,n,t){const l=t(1),r=t(360),{QuotaExceededError:a,TypeMismatchError:i}=t(57),o=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array],s={Int8Array:"getInt8",Uint8Array:"getUint8",Int16Array:"getInt16",Uint16Array:"getUint16",Int32Array:"getInt32",Uint32Array:"getUint32"};class u{getRandomValues(e){if(!o.some(n=>e instanceof n))throw new i;let n=e.byteLength;if(n>65536)throw new a;let t=e.constructor,r=s[t.name],u=n*e.length,c=l.randomBytes(u),p=new Uint8Array(c),h=new DataView(p.buffer);for(let t=0;t<u;t+=n){let l=h[r](t),a=t/n;e[a]=l}return e}get subtle(){return new r}}e.exports=u},function(e,n,t){const l=t(361),r=t(362),a=t(363),i=t(364),o=t(365),{InvalidAccessError:s,NotSupportedError:u}=t(57),{TextEncoder:c,TextDecoder:p}=t(378);class h{encrypt(e,n,t){t=t.slice();let l=o.normalize("encrypt",e);return l instanceof Error?Promise.reject(l):new Promise((r,a)=>{if(l.name!==n.algorithm.name)throw new s("Algorithm does not match key");if(!n.usages.includes("encrypt"))throw new s('Key usages must include "encrypt"');let i=l.encrypt(e,n,t);r(i)})}decrypt(e,n,t){let l=o.normalize("decrypt",e);return l instanceof Error?Promise.reject(l):(t=t.slice(),new Promise((r,a)=>{if(l.name!==n.algorithm.name)throw new s("Algorithm does not match key");if(!n.usages.includes("decrypt"))throw new s('Key usages must include "decrypt"');let i=l.decrypt(e,n,t);r(i)}))}sign(e,n,t){t=t.slice();let l=o.normalize("sign",e);return l instanceof Error?Promise.reject(l):new Promise((e,r)=>{if(l.name!==n.algorithm.name)throw new s("Algorithm does not match key");if(!n.usages.inc
//# sourceMappingURL=dweb-transports-bundle.js.map