Files
add-and-commit/lib/index.js
2020-08-21 11:33:27 +00:00

1 line
43 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(131)}return startup()}({26:function(e,t,r){"use strict";var n=r(369);e.exports=function createError(e,t,r,o,s){var i=new Error(e);return n(i,t,r,o,s)}},35:function(e,t,r){"use strict";var n=r(727);var o=Object.prototype.toString;function isArray(e){return o.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return o.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isDate(e){return o.call(e)==="[object Date]"}function isFile(e){return o.call(e)==="[object File]"}function isBlob(e){return o.call(e)==="[object Blob]"}function isFunction(e){return o.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var r=0,n=e.length;r<n;r++){t.call(null,e[r],r,e)}}else{for(var o in e){if(Object.prototype.hasOwnProperty.call(e,o)){t.call(null,e[o],o,e)}}}}function merge(){var e={};function assignValue(t,r){if(typeof e[r]==="object"&&typeof t==="object"){e[r]=merge(e[r],t)}else{e[r]=t}}for(var t=0,r=arguments.length;t<r;t++){forEach(arguments[t],assignValue)}return e}function deepMerge(){var e={};function assignValue(t,r){if(typeof e[r]==="object"&&typeof t==="object"){e[r]=deepMerge(e[r],t)}else if(typeof t==="object"){e[r]=deepMerge({},t)}else{e[r]=t}}for(var t=0,r=arguments.length;t<r;t++){forEach(arguments[t],assignValue)}return e}function extend(e,t,r){forEach(t,function assignValue(t,o){if(r&&typeof t==="function"){e[o]=n(t,r)}else{e[o]=t}});return e}e.exports={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,deepMerge:deepMerge,extend:extend,trim:trim}},53:function(e,t,r){e.exports=r(352)},72:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"){e.exports=r(235)}else{e.exports=r(317)}},87:function(e){e.exports=require("os")},129:function(e){e.exports=require("child_process")},131:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=r(470);const i=r(129);const a=o(r(622));const u=o(r(53));checkInputs().then(()=>{var e,t;const r=i.execFile(a.default.join(__dirname,"entrypoint.sh"),[],{shell:true});(e=r.stdout)===null||e===void 0?void 0:e.pipe(process.stdout);(t=r.stderr)===null||t===void 0?void 0:t.pipe(process.stderr)}).catch(e=>{console.error(e);s.setFailed(e instanceof Error?e.message:e)});function checkInputs(){var e,t,r,o,i,a,c,f,l;return n(this,void 0,void 0,function*(){const n=process.env.GITHUB_EVENT_PATH,p=n&&require(n),d=process.env.GITHUB_TOKEN,h=(e=process.env.GITHUB_EVENT_NAME)===null||e===void 0?void 0:e.includes("pull_request"),m=((r=(t=p===null||p===void 0?void 0:p.pull_request)===null||t===void 0?void 0:t.head)===null||r===void 0?void 0:r.sha)||process.env.GITHUB_SHA,v=h?(i=(o=p===null||p===void 0?void 0:p.pull_request)===null||o===void 0?void 0:o.head)===null||i===void 0?void 0:i.ref:(a=process.env.GITHUB_REF)===null||a===void 0?void 0:a.substring(11);if(!d)s.warning("The GITHUB_TOKEN env variable is missing: the action may not work as expected.");const g=setDefault("ref",v||"");let C=(c=p===null||p===void 0?void 0:p.head_commit)===null||c===void 0?void 0:c.author;if(m&&!C){s.info("Unable to get commit from workflow event: trying with the GitHub API...");const e=`https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/commits/${m}`,t=d?{Authorization:`Bearer ${d}`}:undefined,r=(f=yield u.default.get(e,{headers:t}).catch(t=>{s.info("::group::Request error:");s.info(`Request URL: ${e}`);s.info(t);s.info("::endgroup::");return undefined}))===null||f===void 0?void 0:f.data;C=(l=r===null||r===void 0?void 0:r.commit)===null||l===void 0?void 0:l.author}if(C){setDefault("author_name",C.name);setDefault("author_email",C.email)}if(!s.getInput("author_name")||!s.getInput("author_email")){const e=!n?"event path":h?m?"fetch commit":"find commit sha":!(p===null||p===void 0?void 0:p.head_commit)?"find commit":"find commit author";s.warning(`Unable to fetch author info: couldn't ${e}.`);setDefault("author_name","Add & Commit Action");setDefault("author_email","actions@github.com")}s.info(`Using '${s.getInput("author_name")} <${s.getInput("author_email")}>' as author.`);if(h)s.info(`Running for a PR, the action will use '${g}' as ref.`)})}function setDefault(e,t){const r="INPUT_"+e.toUpperCase();if(!process.env[r])process.env[r]=t;return process.env[r]}},133:function(e,t,r){"use strict";var n=r(35);function encode(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t){return e}var o;if(r){o=r(t)}else if(n.isURLSearchParams(t)){o=t.toString()}else{var s=[];n.forEach(t,function serialize(e,t){if(e===null||typeof e==="undefined"){return}if(n.isArray(e)){t=t+"[]"}else{e=[e]}n.forEach(e,function parseValue(e){if(n.isDate(e)){e=e.toISOString()}else if(n.isObject(e)){e=JSON.stringify(e)}s.push(encode(t)+"="+encode(e))})});o=s.join("&")}if(o){var i=e.indexOf("#");if(i!==-1){e=e.slice(0,i)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}},137:function(e,t,r){"use strict";var n=r(826);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise(function promiseExecutor(e){t=e});var r=this;e(function cancel(e){if(r.reason){return}r.reason=new n(e);t(r.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var t=new CancelToken(function executor(t){e=t});return{token:t,cancel:e}};e.exports=CancelToken},138:function(e,t,r){t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(632);t.instances=[];t.names=[];t.skips=[];t.formatters={};function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){var r;function debug(){if(!debug.enabled)return;var e=debug;var n=+new Date;var o=n-(r||n);e.diff=o;e.prev=r;e.curr=n;r=n;var s=new Array(arguments.length);for(var i=0;i<s.length;i++){s[i]=arguments[i]}s[0]=t.coerce(s[0]);if("string"!==typeof s[0]){s.unshift("%O")}var a=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(r,n){if(r==="%%")return r;a++;var o=t.formatters[n];if("function"===typeof o){var i=s[a];r=o.call(e,i);s.splice(a,1);a--}return r});t.formatArgs.call(e,s);var u=debug.log||t.log||console.log.bind(console);u.apply(e,s)}debug.namespace=e;debug.enabled=t.enabled(e);debug.useColors=t.useColors();debug.color=selectColor(e);debug.destroy=destroy;if("function"===typeof t.init){t.init(debug)}t.instances.push(debug);return debug}function destroy(){var e=t.instances.indexOf(this);if(e!==-1){t.instances.splice(e,1);return true}else{return false}}function enable(e){t.save(e);t.names=[];t.skips=[];var r;var n=(typeof e==="string"?e:"").split(/[\s,]+/);var o=n.length;for(r=0;r<o;r++){if(!n[r])continue;e=n[r].replace(/\*/g,".*?");if(e[0]==="-"){t.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{t.names.push(new RegExp("^"+e+"$"))}}for(r=0;r<t.instances.length;r++){var s=t.instances[r];s.enabled=t.enabled(s.namespace)}}function disable(){t.enable("")}function enabled(e){if(e[e.length-1]==="*"){return true}var r,n;for(r=0,n=t.skips.length;r<n;r++){if(t.skips[r].test(e)){return false}}for(r=0,n=t.names.length;r<n;r++){if(t.names[r].test(e)){return true}}return false}function coerce(e){if(e instanceof Error)return e.stack||e.message;return e}},211:function(e){e.exports=require("https")},219:function(e,t,r){"use strict";var n=r(35);var o=r(564);var s=r(133);var i=r(960);var a=r(631);var u=r(688);var c=r(26);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,f){var l=e.data;var p=e.headers;if(n.isFormData(l)){delete p["Content-Type"]}var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"";var m=e.auth.password||"";p.Authorization="Basic "+btoa(h+":"+m)}var v=i(e.baseURL,e.url);d.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),true);d.timeout=e.timeout;d.onreadystatechange=function handleLoad(){if(!d||d.readyState!==4){return}if(d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)){return}var r="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null;var n=!e.responseType||e.responseType==="text"?d.responseText:d.response;var s={data:n,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};o(t,f,s);d=null};d.onabort=function handleAbort(){if(!d){return}f(c("Request aborted",e,"ECONNABORTED",d));d=null};d.onerror=function handleError(){f(c("Network Error",e,null,d));d=null};d.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){t=e.timeoutErrorMessage}f(c(t,e,"ECONNABORTED",d));d=null};if(n.isStandardBrowserEnv()){var g=r(864);var C=(e.withCredentials||u(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):undefined;if(C){p[e.xsrfHeaderName]=C}}if("setRequestHeader"in d){n.forEach(p,function setRequestHeader(e,t){if(typeof l==="undefined"&&t.toLowerCase()==="content-type"){delete p[t]}else{d.setRequestHeader(t,e)}})}if(!n.isUndefined(e.withCredentials)){d.withCredentials=!!e.withCredentials}if(e.responseType){try{d.responseType=e.responseType}catch(t){if(e.responseType!=="json"){throw t}}}if(typeof e.onDownloadProgress==="function"){d.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&d.upload){d.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!d){return}d.abort();f(e);d=null})}if(l===undefined){l=null}d.send(l)})}},235:function(e,t,r){t=e.exports=r(138);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0;var s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;o++;if("%c"===e){s=o}});e.splice(s,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},247:function(e,t,r){"use strict";const n=r(87);const o=r(364);const s=process.env;let i;if(o("no-color")||o("no-colors")||o("color=false")){i=false}else if(o("color")||o("colors")||o("color=true")||o("color=always")){i=true}if("FORCE_COLOR"in s){i=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(i===false){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!e.isTTY&&i!==true){return 0}const t=i?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},283:function(e,t,r){"use strict";var n=r(35);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){this.handlers.push({fulfilled:e,rejected:t});return this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){if(this.handlers[e]){this.handlers[e]=null}};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,function forEachHandler(t){if(t!==null){e(t)}})};e.exports=InterceptorManager},317:function(e,t,r){var n=r(867);var o=r(669);t=e.exports=r(138);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{var s=r(247);if(s&&s.level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var o=this.color;var s="[3"+(o<8?o:"8;5;"+o);var i=" "+s+";1m"+r+" "+"";e[0]=i+e[0].split("\n").join("\n"+i);e.push(s+"m+"+t.humanize(this.diff)+"")}else{e[0]=getDate()+r+" "+e[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}else{return(new Date).toISOString()+" "}}function log(){return process.stderr.write(o.format.apply(o,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}t.enable(load())},352:function(e,t,r){"use strict";var n=r(35);var o=r(727);var s=r(779);var i=r(825);var a=r(529);function createInstance(e){var t=new s(e);var r=o(s.prototype.request,t);n.extend(r,s.prototype,t);n.extend(r,t);return r}var u=createInstance(a);u.Axios=s;u.create=function create(e){return createInstance(i(u.defaults,e))};u.Cancel=r(826);u.CancelToken=r(137);u.isCancel=r(732);u.all=function all(e){return Promise.all(e)};u.spread=r(879);e.exports=u;e.exports.default=u},357:function(e){e.exports=require("assert")},361:function(e){e.exports={_args:[["axios@0.19.2","/home/runner/work/add-and-commit/add-and-commit"]],_from:"axios@0.19.2",_id:"axios@0.19.2",_inBundle:false,_integrity:"sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==",_location:"/axios",_phantomChildren:{},_requested:{type:"version",registry:true,raw:"axios@0.19.2",name:"axios",escapedName:"axios",rawSpec:"0.19.2",saveSpec:null,fetchSpec:"0.19.2"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/axios/-/axios-0.19.2.tgz",_spec:"0.19.2",_where:"/home/runner/work/add-and-commit/add-and-commit",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"1.5.10"},description:"Promise based HTTP client for the browser and node.js",devDependencies:{bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},homepage:"https://github.com/axios/axios",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test && bundlesize",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",version:"0.19.2"}},364:function(e){"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const o=t.indexOf("--");return n!==-1&&(o===-1?true:n<o)})},369:function(e){"use strict";e.exports=function enhanceError(e,t,r,n,o){e.config=t;if(r){e.code=r}e.request=n;e.response=o;e.isAxiosError=true;e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}};return e}},411:function(e,t,r){"use strict";var n=r(35);e.exports=function normalizeHeaderName(e,t){n.forEach(e,function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}})}},413:function(e){e.exports=require("stream")},431:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(r(87));function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},470:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(431);const i=o(r(87));const a=o(r(622));var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){process.env[e]=t;s.issueCommand("set-env",{name:e},t)}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){s.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${a.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e)}t.error=error;function warning(e){s.issue("warning",e)}t.warning=warning;function info(e){process.stdout.write(e+i.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},529:function(e,t,r){"use strict";var n=r(35);var o=r(411);var s={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=r(219)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=r(670)}return e}var i={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,t){o(t,"Accept");o(t,"Content-Type");if(n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)){return e}if(n.isArrayBufferView(e)){return e.buffer}if(n.isURLSearchParams(e)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(n.isObject(e)){setContentTypeIfUnset(t,"application/json;charset=utf-8");return JSON.stringify(e)}return e}],transformResponse:[function transformResponse(e){if(typeof e==="string"){try{e=JSON.parse(e)}catch(e){}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};i.headers={common:{Accept:"application/json, text/plain, */*"}};n.forEach(["delete","get","head"],function forEachMethodNoData(e){i.headers[e]={}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){i.headers[e]=n.merge(s)});e.exports=i},549:function(e,t,r){var n=r(835);var o=r(605);var s=r(211);var i=r(357);var a=r(413).Writable;var u=r(72)("follow-redirects");var c={GET:true,HEAD:true,OPTIONS:true,TRACE:true};var f=Object.create(null);["abort","aborted","error","socket","timeout"].forEach(function(e){f[e]=function(t){this._redirectable.emit(e,t)}});function RedirectableRequest(e,t){a.call(this);e.headers=e.headers||{};this._options=e;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(t){this.on("response",t)}var r=this;this._onNativeResponse=function(e){r._processResponse(e)};if(!e.pathname&&e.path){var n=e.path.indexOf("?");if(n<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,n);e.search=e.path.substring(n)}}this._performRequest()}RedirectableRequest.prototype=Object.create(a.prototype);RedirectableRequest.prototype.write=function(e,t,r){if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new Error("data should be a string, Buffer or Uint8Array")}if(typeof t==="function"){r=t;t=null}if(e.length===0){if(r){r()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:t});this._currentRequest.write(e,t,r)}else{this.emit("error",new Error("Request body larger than maxBodyLength limit"));this.abort()}};RedirectableRequest.prototype.end=function(e,t,r){if(typeof e==="function"){r=e;e=t=null}else if(typeof t==="function"){r=t;t=null}var n=this._currentRequest;this.write(e||"",t,function(){n.end(null,null,r)})};RedirectableRequest.prototype.setHeader=function(e,t){this._options.headers[e]=t;this._currentRequest.setHeader(e,t)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive","setTimeout"].forEach(function(e){RedirectableRequest.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var t=this._options.nativeProtocols[e];if(!t){this.emit("error",new Error("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var o=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=n.format(this._options);o._redirectable=this;for(var s in f){if(s){o.on(s,f[s])}}if(this._isRedirect){var i=0;var a=this._requestBodyBuffers;(function writeNext(){if(i<a.length){var e=a[i++];o.write(e.data,e.encoding,writeNext)}else{o.end()}})()}};RedirectableRequest.prototype._processResponse=function(e){if(this._options.trackRedirects){this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:e.statusCode})}var t=e.headers.location;if(t&&this._options.followRedirects!==false&&e.statusCode>=300&&e.statusCode<400){if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new Error("Max redirects exceeded."));return}var r;var o=this._options.headers;if(e.statusCode!==307&&!(this._options.method in c)){this._options.method="GET";this._requestBodyBuffers=[];for(r in o){if(/^content-/i.test(r)){delete o[r]}}}if(!this._isRedirect){for(r in o){if(/^host$/i.test(r)){delete o[r]}}}var s=n.resolve(this._currentUrl,t);u("redirecting to",s);Object.assign(this._options,n.parse(s));this._isRedirect=true;this._performRequest();e.destroy()}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024};var r={};Object.keys(e).forEach(function(o){var s=o+":";var a=r[s]=e[o];var c=t[o]=Object.create(a);c.request=function(e,o){if(typeof e==="string"){e=n.parse(e);e.maxRedirects=t.maxRedirects}else{e=Object.assign({protocol:s,maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e)}e.nativeProtocols=r;i.equal(e.protocol,s,"protocol mismatch");u("options",e);return new RedirectableRequest(e,o)};c.get=function(e,t){var r=c.request(e,t);r.end();return r}});return t}e.exports=wrap({http:o,https:s});e.exports.wrap=wrap},564:function(e,t,r){"use strict";var n=r(26);e.exports=function settle(e,t,r){var o=r.config.validateStatus;if(!o||o(r.status)){e(r)}else{t(n("Request failed with status code "+r.status,r.config,null,r.request,r))}}},589:function(e,t,r){"use strict";var n=r(35);e.exports=function transformData(e,t,r){n.forEach(r,function transform(r){e=r(e,t)});return e}},590:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},605:function(e){e.exports=require("http")},622:function(e){e.exports=require("path")},631:function(e,t,r){"use strict";var n=r(35);var o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t={};var r;var s;var i;if(!e){return t}n.forEach(e.split("\n"),function parser(e){i=e.indexOf(":");r=n.trim(e.substr(0,i)).toLowerCase();s=n.trim(e.substr(i+1));if(r){if(t[r]&&o.indexOf(r)>=0){return}if(r==="set-cookie"){t[r]=(t[r]?t[r]:[]).concat([s])}else{t[r]=t[r]?t[r]+", "+s:s}}});return t}},632:function(e){var t=1e3;var r=t*60;var n=r*60;var o=n*24;var s=o*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i){return}var a=parseFloat(i[1]);var u=(i[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=o){return Math.round(e/o)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,o,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e<t){return}if(e<t*1.5){return Math.floor(e/t)+" "+r}return Math.ceil(e/t)+" "+r+"s"}},669:function(e){e.exports=require("util")},670:function(e,t,r){"use strict";var n=r(35);var o=r(564);var s=r(960);var i=r(133);var a=r(605);var u=r(211);var c=r(549).http;var f=r(549).https;var l=r(835);var p=r(761);var d=r(361);var h=r(26);var m=r(369);var v=/https:?/;e.exports=function httpAdapter(e){return new Promise(function dispatchHttpRequest(t,r){var g=function resolve(e){t(e)};var C=function reject(e){r(e)};var y=e.data;var b=e.headers;if(!b["User-Agent"]&&!b["user-agent"]){b["User-Agent"]="axios/"+d.version}if(y&&!n.isStream(y)){if(Buffer.isBuffer(y)){}else if(n.isArrayBuffer(y)){y=Buffer.from(new Uint8Array(y))}else if(n.isString(y)){y=Buffer.from(y,"utf-8")}else{return C(h("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}b["Content-Length"]=y.length}var x=undefined;if(e.auth){var w=e.auth.username||"";var _=e.auth.password||"";x=w+":"+_}var R=s(e.baseURL,e.url);var E=l.parse(R);var A=E.protocol||"http:";if(!x&&E.auth){var O=E.auth.split(":");var F=O[0]||"";var S=O[1]||"";x=F+":"+S}if(x){delete b.Authorization}var q=v.test(A);var T=q?e.httpsAgent:e.httpAgent;var B={path:i(E.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:b,agent:T,agents:{http:e.httpAgent,https:e.httpsAgent},auth:x};if(e.socketPath){B.socketPath=e.socketPath}else{B.hostname=E.hostname;B.port=E.port}var j=e.proxy;if(!j&&j!==false){var k=A.slice(0,-1)+"_proxy";var U=process.env[k]||process.env[k.toUpperCase()];if(U){var L=l.parse(U);var N=process.env.no_proxy||process.env.NO_PROXY;var I=true;if(N){var D=N.split(",").map(function trim(e){return e.trim()});I=!D.some(function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&E.hostname.substr(E.hostname.length-e.length)===e){return true}return E.hostname===e})}if(I){j={host:L.hostname,port:L.port};if(L.auth){var P=L.auth.split(":");j.auth={username:P[0],password:P[1]}}}}}if(j){B.hostname=j.host;B.host=j.host;B.headers.host=E.hostname+(E.port?":"+E.port:"");B.port=j.port;B.path=A+"//"+E.hostname+(E.port?":"+E.port:"")+B.path;if(j.auth){var M=Buffer.from(j.auth.username+":"+j.auth.password,"utf8").toString("base64");B.headers["Proxy-Authorization"]="Basic "+M}}var H;var G=q&&(j?v.test(j.protocol):true);if(e.transport){H=e.transport}else if(e.maxRedirects===0){H=G?u:a}else{if(e.maxRedirects){B.maxRedirects=e.maxRedirects}H=G?f:c}if(e.maxContentLength&&e.maxContentLength>-1){B.maxBodyLength=e.maxContentLength}var $=H.request(B,function handleResponse(t){if($.aborted)return;var r=t;switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=t.statusCode===204?r:r.pipe(p.createUnzip());delete t.headers["content-encoding"];break}var n=t.req||$;var s={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:n};if(e.responseType==="stream"){s.data=r;o(g,C,s)}else{var i=[];r.on("data",function handleStreamData(t){i.push(t);if(e.maxContentLength>-1&&Buffer.concat(i).length>e.maxContentLength){r.destroy();C(h("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,n))}});r.on("error",function handleStreamError(t){if($.aborted)return;C(m(t,e,null,n))});r.on("end",function handleStreamEnd(){var t=Buffer.concat(i);if(e.responseType!=="arraybuffer"){t=t.toString(e.responseEncoding)}s.data=t;o(g,C,s)})}});$.on("error",function handleRequestError(t){if($.aborted)return;C(m(t,e,null,$))});if(e.timeout){$.setTimeout(e.timeout,function handleRequestTimeout(){$.abort();C(h("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",$))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if($.aborted)return;$.abort();C(e)})}if(n.isStream(y)){y.on("error",function handleStreamError(t){C(m(t,e,null,$))}).pipe($)}else{$.end(y)}})}},688:function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var r;function resolveURL(r){var n=r;if(e){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}r=resolveURL(window.location.href);return function isURLSameOrigin(e){var t=n.isString(e)?resolveURL(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},727:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){var r=new Array(arguments.length);for(var n=0;n<r.length;n++){r[n]=arguments[n]}return e.apply(t,r)}}},732:function(e){"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},761:function(e){e.exports=require("zlib")},779:function(e,t,r){"use strict";var n=r(35);var o=r(133);var s=r(283);var i=r(946);var a=r(825);function Axios(e){this.defaults=e;this.interceptors={request:new s,response:new s}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=a(this.defaults,e);if(e.method){e.method=e.method.toLowerCase()}else if(this.defaults.method){e.method=this.defaults.method.toLowerCase()}else{e.method="get"}var t=[i,undefined];var r=Promise.resolve(e);this.interceptors.request.forEach(function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)});this.interceptors.response.forEach(function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)});while(t.length){r=r.then(t.shift(),t.shift())}return r};Axios.prototype.getUri=function getUri(e){e=a(this.defaults,e);return o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};n.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(n.merge(r||{},{method:e,url:t}))}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(t,r,o){return this.request(n.merge(o||{},{method:e,url:t,data:r}))}});e.exports=Axios},825:function(e,t,r){"use strict";var n=r(35);e.exports=function mergeConfig(e,t){t=t||{};var r={};var o=["url","method","params","data"];var s=["headers","auth","proxy"];var i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(o,function valueFromConfig2(e){if(typeof t[e]!=="undefined"){r[e]=t[e]}});n.forEach(s,function mergeDeepProperties(o){if(n.isObject(t[o])){r[o]=n.deepMerge(e[o],t[o])}else if(typeof t[o]!=="undefined"){r[o]=t[o]}else if(n.isObject(e[o])){r[o]=n.deepMerge(e[o])}else if(typeof e[o]!=="undefined"){r[o]=e[o]}});n.forEach(i,function defaultToConfig2(n){if(typeof t[n]!=="undefined"){r[n]=t[n]}else if(typeof e[n]!=="undefined"){r[n]=e[n]}});var a=o.concat(s).concat(i);var u=Object.keys(t).filter(function filterAxiosKeys(e){return a.indexOf(e)===-1});n.forEach(u,function otherKeysDefaultToConfig2(n){if(typeof t[n]!=="undefined"){r[n]=t[n]}else if(typeof e[n]!=="undefined"){r[n]=e[n]}});return r}},826:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;e.exports=Cancel},835:function(e){e.exports=require("url")},864:function(e,t,r){"use strict";var n=r(35);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,o,s,i){var a=[];a.push(e+"="+encodeURIComponent(t));if(n.isNumber(r)){a.push("expires="+new Date(r).toGMTString())}if(n.isString(o)){a.push("path="+o)}if(n.isString(s)){a.push("domain="+s)}if(i===true){a.push("secure")}document.cookie=a.join("; ")},read:function read(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},867:function(e){e.exports=require("tty")},879:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},887:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},946:function(e,t,r){"use strict";var n=r(35);var o=r(589);var s=r(732);var i=r(529);function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}}e.exports=function dispatchRequest(e){throwIfCancellationRequested(e);e.headers=e.headers||{};e.data=o(e.data,e.headers,e.transformRequest);e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);n.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(t){delete e.headers[t]});var t=e.adapter||i.adapter;return t(e).then(function onAdapterResolution(t){throwIfCancellationRequested(e);t.data=o(t.data,t.headers,e.transformResponse);return t},function onAdapterRejection(t){if(!s(t)){throwIfCancellationRequested(e);if(t&&t.response){t.response.data=o(t.response.data,t.response.headers,e.transformResponse)}}return Promise.reject(t)})}},960:function(e,t,r){"use strict";var n=r(590);var o=r(887);e.exports=function buildFullPath(e,t){if(e&&!n(t)){return o(e,t)}return t}}});