From 7bdc8af1b2e315e6362ae17ea6ae16326a3a33f5 Mon Sep 17 00:00:00 2001 From: Federico Grandi Date: Tue, 22 Dec 2020 19:32:08 +0000 Subject: [PATCH] [auto] build: update compiled version --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 4240f34e..0ca4ca06 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1 +1 @@ -module.exports=(()=>{var __webpack_modules__={7351:function(e,r,n){"use strict";var t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const o=t(n(2087));const i=n(5278);function issueCommand(e,r,n){const t=new Command(e,r,n);process.stdout.write(t.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const s="::";class Command{constructor(e,r,n){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=n}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const t=this.properties[n];if(t){if(r){r=false}else{e+=","}e+=`${n}=${escapeProperty(t)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const i=n(7351);const s=n(717);const u=n(5278);const a=o(n(2087));const c=o(n(5622));var f;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(f=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const n=u.toCommandValue(r);process.env[e]=n;const t=process.env["GITHUB_ENV"]||"";if(t){const r="_GitHubActionsFileCommandDelimeter_";const t=`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`;s.issueCommand("ENV",t)}else{i.issueCommand("set-env",{name:e},n)}}r.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){s.issueCommand("PATH",e)}else{i.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}return n.trim()}r.getInput=getInput;function setOutput(e,r){i.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){i.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){i.issueCommand("debug",{},e)}r.debug=debug;function error(e){i.issue("error",e instanceof Error?e.toString():e)}r.error=error;function warning(e){i.issue("warning",e instanceof Error?e.toString():e)}r.warning=warning;function info(e){process.stdout.write(e+a.EOL)}r.info=info;function startGroup(e){i.issue("group",e)}r.startGroup=startGroup;function endGroup(){i.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return t(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield r()}finally{endGroup()}return n})}r.group=group;function saveState(e,r){i.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState},717:function(e,r,n){"use strict";var t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const o=t(n(5747));const i=t(n(2087));const s=n(5278);function issueCommand(e,r){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}o.appendFileSync(n,`${s.toCommandValue(r)}${i.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue},4751:(e,r,n)=>{"use strict";function __export(e){for(var n in e)if(!r.hasOwnProperty(n))r[n]=e[n]}Object.defineProperty(r,"__esModule",{value:true});__export(n(2825))},2825:function(e,r,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const o=n(5747);const i=t(n(8237));const s=i.default("@kwsites/file-exists");function check(e,r,n){s(`checking %s`,e);try{const t=o.statSync(e);if(t.isFile()&&r){s(`[OK] path represents a file`);return true}if(t.isDirectory()&&n){s(`[OK] path represents a directory`);return true}s(`[FAIL] path represents something other than a file or directory`);return false}catch(e){if(e.code==="ENOENT"){s(`[FAIL] path is not accessible: %o`,e);return false}s(`[FATAL] %o`,e);throw e}}function exists(e,n=r.READABLE){return check(e,(n&r.FILE)>0,(n&r.FOLDER)>0)}r.exists=exists;r.FILE=1;r.FOLDER=2;r.READABLE=r.FILE+r.FOLDER},9819:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createDeferred=r.deferred=void 0;function deferred(){let e;let r;let n="pending";const t=new Promise((n,t)=>{e=n;r=t});return{promise:t,done(r){if(n==="pending"){n="resolved";e(r)}},fail(e){if(n==="pending"){n="rejected";r(e)}},get fulfilled(){return n!=="pending"},get status(){return n}}}r.deferred=deferred;r.createDeferred=deferred;r.default=deferred},6545:(e,r,n)=>{e.exports=n(2618)},8104:(e,r,n)=>{"use strict";var t=n(328);var o=n(3211);var i=n(1934);var s=n(646);var u=n(8605);var a=n(7211);var c=n(7707).http;var f=n(7707).https;var l=n(8835);var p=n(8761);var h=n(696);var d=n(5226);var m=n(1516);var g=/https:?/;e.exports=function httpAdapter(e){return new Promise(function dispatchHttpRequest(r,n){var v=function resolve(e){r(e)};var b=function reject(e){n(e)};var C=e.data;var O=e.headers;if(!O["User-Agent"]&&!O["user-agent"]){O["User-Agent"]="axios/"+h.version}if(C&&!t.isStream(C)){if(Buffer.isBuffer(C)){}else if(t.isArrayBuffer(C)){C=Buffer.from(new Uint8Array(C))}else if(t.isString(C)){C=Buffer.from(C,"utf-8")}else{return b(d("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}O["Content-Length"]=C.length}var w=undefined;if(e.auth){var S=e.auth.username||"";var y=e.auth.password||"";w=S+":"+y}var A=i(e.baseURL,e.url);var E=l.parse(A);var T=E.protocol||"http:";if(!w&&E.auth){var R=E.auth.split(":");var F=R[0]||"";var k=R[1]||"";w=F+":"+k}if(w){delete O.Authorization}var D=g.test(T);var j=D?e.httpsAgent:e.httpAgent;var P={path:s(E.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:O,agent:j,agents:{http:e.httpAgent,https:e.httpsAgent},auth:w};if(e.socketPath){P.socketPath=e.socketPath}else{P.hostname=E.hostname;P.port=E.port}var M=e.proxy;if(!M&&M!==false){var x=T.slice(0,-1)+"_proxy";var L=process.env[x]||process.env[x.toUpperCase()];if(L){var B=l.parse(L);var I=process.env.no_proxy||process.env.NO_PROXY;var G=true;if(I){var _=I.split(",").map(function trim(e){return e.trim()});G=!_.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(G){M={host:B.hostname,port:B.port};if(B.auth){var U=B.auth.split(":");M.auth={username:U[0],password:U[1]}}}}}if(M){P.hostname=M.host;P.host=M.host;P.headers.host=E.hostname+(E.port?":"+E.port:"");P.port=M.port;P.path=T+"//"+E.hostname+(E.port?":"+E.port:"")+P.path;if(M.auth){var $=Buffer.from(M.auth.username+":"+M.auth.password,"utf8").toString("base64");P.headers["Proxy-Authorization"]="Basic "+$}}var q;var Y=D&&(M?g.test(M.protocol):true);if(e.transport){q=e.transport}else if(e.maxRedirects===0){q=Y?a:u}else{if(e.maxRedirects){P.maxRedirects=e.maxRedirects}q=Y?f:c}if(e.maxBodyLength>-1){P.maxBodyLength=e.maxBodyLength}var W=q.request(P,function handleResponse(r){if(W.aborted)return;var n=r;var i=r.req||W;if(r.statusCode!==204&&i.method!=="HEAD"&&e.decompress!==false){switch(r.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(p.createUnzip());delete r.headers["content-encoding"];break}}var s={status:r.statusCode,statusText:r.statusMessage,headers:r.headers,config:e,request:i};if(e.responseType==="stream"){s.data=n;o(v,b,s)}else{var u=[];n.on("data",function handleStreamData(r){u.push(r);if(e.maxContentLength>-1&&Buffer.concat(u).length>e.maxContentLength){n.destroy();b(d("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i))}});n.on("error",function handleStreamError(r){if(W.aborted)return;b(m(r,e,null,i))});n.on("end",function handleStreamEnd(){var r=Buffer.concat(u);if(e.responseType!=="arraybuffer"){r=r.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){r=t.stripBOM(r)}}s.data=r;o(v,b,s)})}});W.on("error",function handleRequestError(r){if(W.aborted&&r.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;b(m(r,e,null,W))});if(e.timeout){W.setTimeout(e.timeout,function handleRequestTimeout(){W.abort();b(d("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",W))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(W.aborted)return;W.abort();b(e)})}if(t.isStream(C)){C.on("error",function handleStreamError(r){b(m(r,e,null,W))}).pipe(W)}else{W.end(C)}})}},3454:(e,r,n)=>{"use strict";var t=n(328);var o=n(3211);var i=n(1545);var s=n(646);var u=n(1934);var a=n(6455);var c=n(3608);var f=n(5226);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(r,n){var l=e.data;var p=e.headers;if(t.isFormData(l)){delete p["Content-Type"]}var h=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"";var m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(d+":"+m)}var g=u(e.baseURL,e.url);h.open(e.method.toUpperCase(),s(g,e.params,e.paramsSerializer),true);h.timeout=e.timeout;h.onreadystatechange=function handleLoad(){if(!h||h.readyState!==4){return}if(h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)){return}var t="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null;var i=!e.responseType||e.responseType==="text"?h.responseText:h.response;var s={data:i,status:h.status,statusText:h.statusText,headers:t,config:e,request:h};o(r,n,s);h=null};h.onabort=function handleAbort(){if(!h){return}n(f("Request aborted",e,"ECONNABORTED",h));h=null};h.onerror=function handleError(){n(f("Network Error",e,null,h));h=null};h.ontimeout=function handleTimeout(){var r="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){r=e.timeoutErrorMessage}n(f(r,e,"ECONNABORTED",h));h=null};if(t.isStandardBrowserEnv()){var v=(e.withCredentials||c(g))&&e.xsrfCookieName?i.read(e.xsrfCookieName):undefined;if(v){p[e.xsrfHeaderName]=v}}if("setRequestHeader"in h){t.forEach(p,function setRequestHeader(e,r){if(typeof l==="undefined"&&r.toLowerCase()==="content-type"){delete p[r]}else{h.setRequestHeader(r,e)}})}if(!t.isUndefined(e.withCredentials)){h.withCredentials=!!e.withCredentials}if(e.responseType){try{h.responseType=e.responseType}catch(r){if(e.responseType!=="json"){throw r}}}if(typeof e.onDownloadProgress==="function"){h.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&h.upload){h.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!h){return}h.abort();n(e);h=null})}if(!l){l=null}h.send(l)})}},2618:(e,r,n)=>{"use strict";var t=n(328);var o=n(7065);var i=n(8178);var s=n(4831);var u=n(8190);function createInstance(e){var r=new i(e);var n=o(i.prototype.request,r);t.extend(n,i.prototype,r);t.extend(n,r);return n}var a=createInstance(u);a.Axios=i;a.create=function create(e){return createInstance(s(a.defaults,e))};a.Cancel=n(8875);a.CancelToken=n(1587);a.isCancel=n(4057);a.all=function all(e){return Promise.all(e)};a.spread=n(4850);e.exports=a;e.exports.default=a},8875: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},1587:(e,r,n)=>{"use strict";var t=n(8875);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var r;this.promise=new Promise(function promiseExecutor(e){r=e});var n=this;e(function cancel(e){if(n.reason){return}n.reason=new t(e);r(n.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var r=new CancelToken(function executor(r){e=r});return{token:r,cancel:e}};e.exports=CancelToken},4057:e=>{"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},8178:(e,r,n)=>{"use strict";var t=n(328);var o=n(646);var i=n(3214);var s=n(5062);var u=n(4831);function Axios(e){this.defaults=e;this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=u(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 r=[s,undefined];var n=Promise.resolve(e);this.interceptors.request.forEach(function unshiftRequestInterceptors(e){r.unshift(e.fulfilled,e.rejected)});this.interceptors.response.forEach(function pushResponseInterceptors(e){r.push(e.fulfilled,e.rejected)});while(r.length){n=n.then(r.shift(),r.shift())}return n};Axios.prototype.getUri=function getUri(e){e=u(this.defaults,e);return o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};t.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(r,n){return this.request(u(n||{},{method:e,url:r,data:(n||{}).data}))}});t.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(r,n,t){return this.request(u(t||{},{method:e,url:r,data:n}))}});e.exports=Axios},3214:(e,r,n)=>{"use strict";var t=n(328);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,r){this.handlers.push({fulfilled:e,rejected:r});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){t.forEach(this.handlers,function forEachHandler(r){if(r!==null){e(r)}})};e.exports=InterceptorManager},1934:(e,r,n)=>{"use strict";var t=n(1301);var o=n(7189);e.exports=function buildFullPath(e,r){if(e&&!t(r)){return o(e,r)}return r}},5226:(e,r,n)=>{"use strict";var t=n(1516);e.exports=function createError(e,r,n,o,i){var s=new Error(e);return t(s,r,n,o,i)}},5062:(e,r,n)=>{"use strict";var t=n(328);var o=n(9812);var i=n(4057);var s=n(8190);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=t.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);t.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(r){delete e.headers[r]});var r=e.adapter||s.adapter;return r(e).then(function onAdapterResolution(r){throwIfCancellationRequested(e);r.data=o(r.data,r.headers,e.transformResponse);return r},function onAdapterRejection(r){if(!i(r)){throwIfCancellationRequested(e);if(r&&r.response){r.response.data=o(r.response.data,r.response.headers,e.transformResponse)}}return Promise.reject(r)})}},1516:e=>{"use strict";e.exports=function enhanceError(e,r,n,t,o){e.config=r;if(n){e.code=n}e.request=t;e.response=o;e.isAxiosError=true;e.toJSON=function toJSON(){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}},4831:(e,r,n)=>{"use strict";var t=n(328);e.exports=function mergeConfig(e,r){r=r||{};var n={};var o=["url","method","data"];var i=["headers","auth","proxy","params"];var s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var u=["validateStatus"];function getMergedValue(e,r){if(t.isPlainObject(e)&&t.isPlainObject(r)){return t.merge(e,r)}else if(t.isPlainObject(r)){return t.merge({},r)}else if(t.isArray(r)){return r.slice()}return r}function mergeDeepProperties(o){if(!t.isUndefined(r[o])){n[o]=getMergedValue(e[o],r[o])}else if(!t.isUndefined(e[o])){n[o]=getMergedValue(undefined,e[o])}}t.forEach(o,function valueFromConfig2(e){if(!t.isUndefined(r[e])){n[e]=getMergedValue(undefined,r[e])}});t.forEach(i,mergeDeepProperties);t.forEach(s,function defaultToConfig2(o){if(!t.isUndefined(r[o])){n[o]=getMergedValue(undefined,r[o])}else if(!t.isUndefined(e[o])){n[o]=getMergedValue(undefined,e[o])}});t.forEach(u,function merge(t){if(t in r){n[t]=getMergedValue(e[t],r[t])}else if(t in e){n[t]=getMergedValue(undefined,e[t])}});var a=o.concat(i).concat(s).concat(u);var c=Object.keys(e).concat(Object.keys(r)).filter(function filterAxiosKeys(e){return a.indexOf(e)===-1});t.forEach(c,mergeDeepProperties);return n}},3211:(e,r,n)=>{"use strict";var t=n(5226);e.exports=function settle(e,r,n){var o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{r(t("Request failed with status code "+n.status,n.config,null,n.request,n))}}},9812:(e,r,n)=>{"use strict";var t=n(328);e.exports=function transformData(e,r,n){t.forEach(n,function transform(n){e=n(e,r)});return e}},8190:(e,r,n)=>{"use strict";var t=n(328);var o=n(6240);var i={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,r){if(!t.isUndefined(e)&&t.isUndefined(e["Content-Type"])){e["Content-Type"]=r}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=n(3454)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=n(8104)}return e}var s={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,r){o(r,"Accept");o(r,"Content-Type");if(t.isFormData(e)||t.isArrayBuffer(e)||t.isBuffer(e)||t.isStream(e)||t.isFile(e)||t.isBlob(e)){return e}if(t.isArrayBufferView(e)){return e.buffer}if(t.isURLSearchParams(e)){setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(t.isObject(e)){setContentTypeIfUnset(r,"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,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}};t.forEach(["delete","get","head"],function forEachMethodNoData(e){s.headers[e]={}});t.forEach(["post","put","patch"],function forEachMethodWithData(e){s.headers[e]=t.merge(i)});e.exports=s},7065:e=>{"use strict";e.exports=function bind(e,r){return function wrap(){var n=new Array(arguments.length);for(var t=0;t{"use strict";var t=n(328);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,r,n){if(!r){return e}var o;if(n){o=n(r)}else if(t.isURLSearchParams(r)){o=r.toString()}else{var i=[];t.forEach(r,function serialize(e,r){if(e===null||typeof e==="undefined"){return}if(t.isArray(e)){r=r+"[]"}else{e=[e]}t.forEach(e,function parseValue(e){if(t.isDate(e)){e=e.toISOString()}else if(t.isObject(e)){e=JSON.stringify(e)}i.push(encode(r)+"="+encode(e))})});o=i.join("&")}if(o){var s=e.indexOf("#");if(s!==-1){e=e.slice(0,s)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}},7189:e=>{"use strict";e.exports=function combineURLs(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}},1545:(e,r,n)=>{"use strict";var t=n(328);e.exports=t.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,r,n,o,i,s){var u=[];u.push(e+"="+encodeURIComponent(r));if(t.isNumber(n)){u.push("expires="+new Date(n).toGMTString())}if(t.isString(o)){u.push("path="+o)}if(t.isString(i)){u.push("domain="+i)}if(s===true){u.push("secure")}document.cookie=u.join("; ")},read:function read(e){var r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[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(){}}}()},1301:e=>{"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},3608:(e,r,n)=>{"use strict";var t=n(328);e.exports=t.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var r=document.createElement("a");var n;function resolveURL(n){var t=n;if(e){r.setAttribute("href",t);t=r.href}r.setAttribute("href",t);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}n=resolveURL(window.location.href);return function isURLSameOrigin(e){var r=t.isString(e)?resolveURL(e):e;return r.protocol===n.protocol&&r.host===n.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},6240:(e,r,n)=>{"use strict";var t=n(328);e.exports=function normalizeHeaderName(e,r){t.forEach(e,function processHeader(n,t){if(t!==r&&t.toUpperCase()===r.toUpperCase()){e[r]=n;delete e[t]}})}},6455:(e,r,n)=>{"use strict";var t=n(328);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 r={};var n;var i;var s;if(!e){return r}t.forEach(e.split("\n"),function parser(e){s=e.indexOf(":");n=t.trim(e.substr(0,s)).toLowerCase();i=t.trim(e.substr(s+1));if(n){if(r[n]&&o.indexOf(n)>=0){return}if(n==="set-cookie"){r[n]=(r[n]?r[n]:[]).concat([i])}else{r[n]=r[n]?r[n]+", "+i:i}}});return r}},4850:e=>{"use strict";e.exports=function spread(e){return function wrap(r){return e.apply(null,r)}}},328:(e,r,n)=>{"use strict";var t=n(7065);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 r;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){r=ArrayBuffer.isView(e)}else{r=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return r}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(o.call(e)!=="[object Object]"){return false}var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}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,r){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var n=0,t=e.length;n{r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.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"||window.process.__nwjs)){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+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;r.splice(1,0,n,"color: inherit");let t=0;let o=0;r[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}t++;if(e==="%c"){o=t}});r.splice(o,0,n)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(6243)(r);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,r,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(900);Object.keys(e).forEach(r=>{createDebug[r]=e[r]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let n=0;n{if(r==="%%"){return r}i++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[i];r=o.call(n,t);e.splice(i,1);i--}return r});createDebug.formatArgs.call(n,e);const s=n.log||createDebug.log;s.apply(n,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,r){const n=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let r;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const t=n.length;for(r=0;r"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let n;for(r=0,n=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(8222)}else{e.exports=n(5332)}},5332:(e,r,n)=>{const t=n(3867);const o=n(1669);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.colors=[6,2,3,4,5,1];try{const e=n(9318);if(e&&(e.stderr||e).level>=2){r.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){}r.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,r)=>{const n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(e,r)=>{return r.toUpperCase()});let t=process.env[r];if(/^(yes|on|true|enabled)$/i.test(t)){t=true}else if(/^(no|off|false|disabled)$/i.test(t)){t=false}else if(t==="null"){t=null}else{t=Number(t)}e[n]=t;return e},{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):t.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:n,useColors:t}=this;if(t){const t=this.color;const o="[3"+(t<8?t:"8;5;"+t);const i=` ${o};1m${n} `;r[0]=i+r[0].split("\n").join("\n"+i);r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+n+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(r.inspectOpts);for(let t=0;t{var t;try{t=n(8237)("follow-redirects")}catch(e){t=function(){}}e.exports=t},7707:(e,r,n)=>{var t=n(8835);var o=t.URL;var i=n(8605);var s=n(7211);var u=n(2413).Writable;var a=n(2357);var c=n(1133);var f=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach(function(e){f[e]=function(r,n,t){this._redirectable.emit(e,r,n,t)}});var l=createErrorType("ERR_FR_REDIRECTION_FAILURE","");var p=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var h=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var d=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,r){u.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(r){this.on("response",r)}var n=this;this._onNativeResponse=function(e){n._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(u.prototype);RedirectableRequest.prototype.write=function(e,r,n){if(this._ending){throw new d}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof r==="function"){n=r;r=null}if(e.length===0){if(n){n()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:r});this._currentRequest.write(e,r,n)}else{this.emit("error",new h);this.abort()}};RedirectableRequest.prototype.end=function(e,r,n){if(typeof e==="function"){n=e;e=r=null}else if(typeof r==="function"){n=r;r=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,n)}else{var t=this;var o=this._currentRequest;this.write(e,r,function(){t._ended=true;o.end(null,null,n)});this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,r){this._options.headers[e]=r;this._currentRequest.setHeader(e,r)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,r){if(r){this.once("timeout",r)}if(this.socket){startTimer(this,e)}else{var n=this;this._currentRequest.once("socket",function(){startTimer(n,e)})}this.once("response",clearTimer);this.once("error",clearTimer);return this};function startTimer(e,r){clearTimeout(e._timeout);e._timeout=setTimeout(function(){e.emit("timeout")},r)}function clearTimer(){clearTimeout(this._timeout)}["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(r,n){return this._currentRequest[e](r,n)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var r=e.path.indexOf("?");if(r<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,r);e.search=e.path.substring(r)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var r=this._options.nativeProtocols[e];if(!r){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var o=this._currentRequest=r.request(this._options,this._onNativeResponse);this._currentUrl=t.format(this._options);o._redirectable=this;for(var i in f){if(i){o.on(i,f[i])}}if(this._isRedirect){var s=0;var u=this;var a=this._requestBodyBuffers;(function writeNext(e){if(o===u._currentRequest){if(e){u.emit("error",e)}else if(s=300&&r<400){this._currentRequest.removeAllListeners();this._currentRequest.on("error",noop);this._currentRequest.abort();e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new p);return}if((r===301||r===302)&&this._options.method==="POST"||r===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var o=removeMatchingHeaders(/^host$/i,this._options.headers)||t.parse(this._currentUrl).hostname;var i=t.resolve(this._currentUrl,n);c("redirecting to",i);this._isRedirect=true;var s=t.parse(i);Object.assign(this._options,s);if(s.hostname!==o){removeMatchingHeaders(/^authorization$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var u={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var a=new l("Redirected request failed: "+e.message);a.cause=e;this.emit("error",a)}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var r={maxRedirects:21,maxBodyLength:10*1024*1024};var n={};Object.keys(e).forEach(function(i){var s=i+":";var u=n[s]=e[i];var f=r[i]=Object.create(u);f.request=function(e,i,u){if(typeof e==="string"){var f=e;try{e=urlToOptions(new o(f))}catch(r){e=t.parse(f)}}else if(o&&e instanceof o){e=urlToOptions(e)}else{u=i;i=e;e={protocol:s}}if(typeof i==="function"){u=i;i=null}i=Object.assign({maxRedirects:r.maxRedirects,maxBodyLength:r.maxBodyLength},e,i);i.nativeProtocols=n;a.equal(i.protocol,s,"protocol mismatch");c("options",i);return new RedirectableRequest(i,u)};f.get=function(e,r,n){var t=f.request(e,r,n);t.end();return t}});return r}function noop(){}function urlToOptions(e){var r={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){r.port=Number(e.port)}return r}function removeMatchingHeaders(e,r){var n;for(var t in r){if(e.test(t)){n=r[t];delete r[t]}}return n}function createErrorType(e,r){function CustomError(e){Error.captureStackTrace(this,this.constructor);this.message=e||r}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}e.exports=wrap({http:i,https:s});e.exports.wrap=wrap},1621:e=>{"use strict";e.exports=((e,r)=>{r=r||process.argv;const n=e.startsWith("-")?"":e.length===1?"-":"--";const t=r.indexOf(n+e);const o=r.indexOf("--");return t!==-1&&(o===-1?true:t{"use strict";var t=n(916);e.exports=t},916:(e,r,n)=>{"use strict";var t=n(5190);var o=n(3034);function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(967);e.exports.Schema=n(6514);e.exports.FAILSAFE_SCHEMA=n(6037);e.exports.JSON_SCHEMA=n(1571);e.exports.CORE_SCHEMA=n(2183);e.exports.DEFAULT_SAFE_SCHEMA=n(8949);e.exports.DEFAULT_FULL_SCHEMA=n(6874);e.exports.load=t.load;e.exports.loadAll=t.loadAll;e.exports.safeLoad=t.safeLoad;e.exports.safeLoadAll=t.safeLoadAll;e.exports.dump=o.dump;e.exports.safeDump=o.safeDump;e.exports.YAMLException=n(5199);e.exports.MINIMAL_SCHEMA=n(6037);e.exports.SAFE_SCHEMA=n(8949);e.exports.DEFAULT_SCHEMA=n(6874);e.exports.scan=deprecated("scan");e.exports.parse=deprecated("parse");e.exports.compose=deprecated("compose");e.exports.addConstructor=deprecated("addConstructor")},9136:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,r){var n,t,o,i;if(r){i=Object.keys(r);for(n=0,t=i.length;n{"use strict";var t=n(9136);var o=n(5199);var i=n(6874);var s=n(8949);var u=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var c=9;var f=10;var l=13;var p=32;var h=33;var d=34;var m=35;var g=37;var v=38;var b=39;var C=42;var O=44;var w=45;var S=58;var y=61;var A=62;var E=63;var T=64;var R=91;var F=93;var k=96;var D=123;var j=124;var P=125;var M={};M[0]="\\0";M[7]="\\a";M[8]="\\b";M[9]="\\t";M[10]="\\n";M[11]="\\v";M[12]="\\f";M[13]="\\r";M[27]="\\e";M[34]='\\"';M[92]="\\\\";M[133]="\\N";M[160]="\\_";M[8232]="\\L";M[8233]="\\P";var x=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(e,r){var n,t,o,i,s,u,c;if(r===null)return{};n={};t=Object.keys(r);for(o=0,i=t.length;o0?e.charCodeAt(i-1):null;h=h&&isPlainSafe(s,u)}}else{for(i=0;it&&e[p+1]!==" ";p=i}}else if(!isPrintable(s)){return _}u=i>0?e.charCodeAt(i-1):null;h=h&&isPlainSafe(s,u)}c=c||l&&(i-p-1>t&&e[p+1]!==" ")}if(!a&&!c){return h&&!o(e)?L:B}if(n>9&&needIndentIndicator(e)){return _}return c?G:I}function writeScalar(e,r,n,t){e.dump=function(){if(r.length===0){return"''"}if(!e.noCompatMode&&x.indexOf(r)!==-1){return"'"+r+"'"}var i=e.indent*Math.max(1,n);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var u=t||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,u,e.indent,s,testAmbiguity)){case L:return r;case B:return"'"+r.replace(/'/g,"''")+"'";case I:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,i));case G:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,s),i));case _:return'"'+escapeString(r,s)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var n=needIndentIndicator(e)?String(r):"";var t=e[e.length-1]==="\n";var o=t&&(e[e.length-2]==="\n"||e==="\n");var i=o?"+":t?"":"-";return n+i+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var n=/(\n+)([^\n]*)/g;var t=function(){var t=e.indexOf("\n");t=t!==-1?t:e.length;n.lastIndex=t;return foldLine(e.slice(0,t),r)}();var o=e[0]==="\n"||e[0]===" ";var i;var s;while(s=n.exec(e)){var u=s[1],a=s[2];i=a[0]===" ";t+=u+(!o&&!i&&a!==""?"\n":"")+foldLine(a,r);o=i}return t}function foldLine(e,r){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var t;var o=0,i,s=0,u=0;var a="";while(t=n.exec(e)){u=t.index;if(u-o>r){i=s>o?s:u;a+="\n"+e.slice(o,i);o=i+1}s=u}a+="\n";if(e.length-o>r&&s>o){a+=e.slice(o,s)+"\n"+e.slice(s+1)}else{a+=e.slice(o)}return a.slice(1)}function escapeString(e){var r="";var n,t;var o;for(var i=0;i=55296&&n<=56319){t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){r+=encodeHex((n-55296)*1024+t-56320+65536);i++;continue}}o=M[n];r+=!o&&isPrintable(n)?e[i]:o||encodeHex(n)}return r}function writeFlowSequence(e,r,n){var t="",o=e.tag,i,s;for(i=0,s=n.length;i1024)f+="? ";f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,c,false,false)){continue}f+=e.dump;t+=f}e.tag=o;e.dump="{"+t+"}"}function writeBlockMapping(e,r,n,t){var i="",s=e.tag,u=Object.keys(n),a,c,l,p,h,d;if(e.sortKeys===true){u.sort()}else if(typeof e.sortKeys==="function"){u.sort(e.sortKeys)}else if(e.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(a=0,c=u.length;a1024;if(h){if(e.dump&&f===e.dump.charCodeAt(0)){d+="?"}else{d+="? "}}d+=e.dump;if(h){d+=generateNextLine(e,r)}if(!writeNode(e,r+1,p,true,h)){continue}if(e.dump&&f===e.dump.charCodeAt(0)){d+=":"}else{d+=": "}d+=e.dump;i+=d}e.tag=s;e.dump=i||"{}"}function detectType(e,r,n){var t,i,s,c,f,l;i=n?e.explicitTypes:e.implicitTypes;for(s=0,c=i.length;s tag resolver accepts not "'+l+'" style')}e.dump=t}return true}}return false}function writeNode(e,r,n,t,i,s){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var a=u.call(e.dump);if(t){t=e.flowLevel<0||e.flowLevel>r}var c=a==="[object Object]"||a==="[object Array]",f,l;if(c){f=e.duplicates.indexOf(n);l=f!==-1}if(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&r>0){i=false}if(l&&e.usedDuplicates[f]){e.dump="*ref_"+f}else{if(c&&l&&!e.usedDuplicates[f]){e.usedDuplicates[f]=true}if(a==="[object Object]"){if(t&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,i);if(l){e.dump="&ref_"+f+e.dump}}else{writeFlowMapping(e,r,e.dump);if(l){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object Array]"){var p=e.noArrayIndent&&r>0?r-1:r;if(t&&e.dump.length!==0){writeBlockSequence(e,p,e.dump,i);if(l){e.dump="&ref_"+f+e.dump}}else{writeFlowSequence(e,p,e.dump);if(l){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,s)}}else{if(e.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+e.dump}}return true}function getDuplicateReferences(e,r){var n=[],t=[],o,i;inspectNode(e,n,t);for(o=0,i=t.length;o{"use strict";function YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){var r=this.name+": ";r+=this.reason||"(unknown reason)";if(!e&&this.mark){r+=" "+this.mark.toString()}return r};e.exports=YAMLException},5190:(e,r,n)=>{"use strict";var t=n(9136);var o=n(5199);var i=n(5426);var s=n(8949);var u=n(6874);var a=Object.prototype.hasOwnProperty;var c=1;var f=2;var l=3;var p=4;var h=1;var d=2;var m=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var v=/[\x85\u2028\u2029]/;var b=/[,\[\]\{\}]/;var C=/^(?:!|!!|![a-z\-]+!)$/i;var O=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var r;if(48<=e&&e<=57){return e-48}r=e|32;if(97<=r&&r<=102){return r-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var w=new Array(256);var S=new Array(256);for(var y=0;y<256;y++){w[y]=simpleEscapeSequence(y)?1:0;S[y]=simpleEscapeSequence(y)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||u;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(e,r){return new o(r,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var A={YAML:function handleYamlDirective(e,r,n){var t,o,i;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}t=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(t===null){throwError(e,"ill-formed argument of the YAML directive")}o=parseInt(t[1],10);i=parseInt(t[2],10);if(o!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=i<2;if(i!==1&&i!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,n){var t,o;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}t=n[0];o=n[1];if(!C.test(t)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,t)){throwError(e,'there is a previously declared suffix for "'+t+'" tag handle')}if(!O.test(o)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}e.tagMap[t]=o}};function captureSegment(e,r,n,t){var o,i,s,u;if(r1){e.result+=t.repeat("\n",r-1)}}function readPlainScalar(e,r,n){var t,o,i,s,u,a,c,f,l=e.kind,p=e.result,h;h=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)){return false}}e.kind="scalar";e.result="";i=s=e.position;u=false;while(h!==0){if(h===58){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)){break}}else if(h===35){t=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(t)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){a=e.line;c=e.lineStart;f=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){u=true;h=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=a;e.lineStart=c;e.lineIndent=f;break}}if(u){captureSegment(e,i,s,false);writeFoldedLines(e,e.line-a);i=s=e.position;u=false}if(!is_WHITE_SPACE(h)){s=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,i,s,false);if(e.result){return true}e.kind=l;e.result=p;return false}function readSingleQuotedScalar(e,r){var n,t,o;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;t=o=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,t,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){t=e.position;e.position++;o=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,t,o,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));t=o=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;o=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var n,t,o,i,s,u;u=e.input.charCodeAt(e.position);if(u!==34){return false}e.kind="scalar";e.result="";e.position++;n=t=e.position;while((u=e.input.charCodeAt(e.position))!==0){if(u===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(u===92){captureSegment(e,n,e.position,true);u=e.input.charCodeAt(++e.position);if(is_EOL(u)){skipSeparationSpace(e,false,r)}else if(u<256&&w[u]){e.result+=S[u];e.position++}else if((s=escapedHexLen(u))>0){o=s;i=0;for(;o>0;o--){u=e.input.charCodeAt(++e.position);if((s=fromHexCode(u))>=0){i=(i<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(i);e.position++}else{throwError(e,"unknown escape sequence")}n=t=e.position}else if(is_EOL(u)){captureSegment(e,n,t,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));n=t=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;t=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var n=true,t,o=e.tag,i,s=e.anchor,u,a,f,l,p,h={},d,m,g,v;v=e.input.charCodeAt(e.position);if(v===91){a=93;p=false;i=[]}else if(v===123){a=125;p=true;i={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=i}v=e.input.charCodeAt(++e.position);while(v!==0){skipSeparationSpace(e,true,r);v=e.input.charCodeAt(e.position);if(v===a){e.position++;e.tag=o;e.anchor=s;e.kind=p?"mapping":"sequence";e.result=i;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}m=d=g=null;f=l=false;if(v===63){u=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(u)){f=l=true;e.position++;skipSeparationSpace(e,true,r)}}t=e.line;composeNode(e,r,c,false,true);m=e.tag;d=e.result;skipSeparationSpace(e,true,r);v=e.input.charCodeAt(e.position);if((l||e.line===t)&&v===58){f=true;v=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,c,false,true);g=e.result}if(p){storeMappingPair(e,i,h,m,d,g)}else if(f){i.push(storeMappingPair(e,null,h,m,d,g))}else{i.push(d)}skipSeparationSpace(e,true,r);v=e.input.charCodeAt(e.position);if(v===44){n=true;v=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var n,o,i=h,s=false,u=false,a=r,c=0,f=false,l,p;p=e.input.charCodeAt(e.position);if(p===124){o=false}else if(p===62){o=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(h===i){i=p===43?m:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(p))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!u){a=r+l-1;u=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(p)){do{p=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!u||e.lineIndenta){a=e.lineIndent}if(is_EOL(p)){c++;continue}if(e.lineIndentr)&&a!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(composeNode(e,r,p,true,o)){if(g){d=e.result}else{m=e.result}}if(!g){storeMappingPair(e,c,l,h,d,m,i,s);h=d=m=null}skipSeparationSpace(e,true,-1);b=e.input.charCodeAt(e.position)}if(e.lineIndent>r&&b!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(g=0,v=e.implicitTypes.length;g tag; it should be "'+b.kind+'", not "'+e.kind+'"')}if(!b.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=b.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var r=e.position,n,t,o,i=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}i=true;s=e.input.charCodeAt(++e.position);n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}t=e.input.slice(n,e.position);o=[];if(t.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}o.push(e.input.slice(n,e.position))}if(s!==0)readLineBreak(e);if(a.call(A,t)){A[t](e,t,o)}else{throwWarning(e,'unknown document directive "'+t+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(i){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&v.test(e.input.slice(r,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var t=n(9136);function Mark(e,r,n,t,o){this.name=e;this.buffer=r;this.position=n;this.line=t;this.column=o}Mark.prototype.getSnippet=function getSnippet(e,r){var n,o,i,s,u;if(!this.buffer)return null;e=e||4;r=r||75;n="";o=this.position;while(o>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>r/2-1){n=" ... ";o+=5;break}}i="";s=this.position;while(sr/2-1){i=" ... ";s-=5;break}}u=this.buffer.slice(o,s);return t.repeat(" ",e)+n+u+i+"\n"+t.repeat(" ",e+this.position-o+n.length)+"^"};Mark.prototype.toString=function toString(e){var r,n="";if(this.name){n+='in "'+this.name+'" '}n+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){r=this.getSnippet();if(r){n+=":\n"+r}}return n};e.exports=Mark},6514:(e,r,n)=>{"use strict";var t=n(9136);var o=n(5199);var i=n(967);function compileList(e,r,n){var t=[];e.include.forEach(function(e){n=compileList(e,r,n)});e[r].forEach(function(e){n.forEach(function(r,n){if(r.tag===e.tag&&r.kind===e.kind){t.push(n)}});n.push(e)});return n.filter(function(e,r){return t.indexOf(r)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},r,n;function collectType(r){e[r.kind][r.tag]=e["fallback"][r.tag]=r}for(r=0,n=arguments.length;r{"use strict";var t=n(6514);e.exports=new t({include:[n(1571)]})},6874:(e,r,n)=>{"use strict";var t=n(6514);e.exports=t.DEFAULT=new t({include:[n(8949)],explicit:[n(5914),n(9242),n(7278)]})},8949:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({include:[n(2183)],implicit:[n(3714),n(1393)],explicit:[n(2551),n(6668),n(6039),n(9237)]})},6037:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({explicit:[n(2672),n(5490),n(1173)]})},1571:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({include:[n(6037)],implicit:[n(2671),n(4675),n(9963),n(5564)]})},967:(e,r,n)=>{"use strict";var t=n(5199);var o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var i=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach(function(n){e[n].forEach(function(e){r[String(e)]=n})})}return r}function Type(e,r){r=r||{};Object.keys(r).forEach(function(r){if(o.indexOf(r)===-1){throw new t('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(e){return e};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.defaultStyle=r["defaultStyle"]||null;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(i.indexOf(this.kind)===-1){throw new t('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},2551:(e,r,n)=>{"use strict";var t;try{var o=require;t=o("buffer").Buffer}catch(e){}var i=n(967);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,n,t=0,o=e.length,i=s;for(n=0;n64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){var r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,u=s,a=0,c=[];for(r=0;r>16&255);c.push(a>>8&255);c.push(a&255)}a=a<<6|u.indexOf(o.charAt(r))}n=i%4*6;if(n===0){c.push(a>>16&255);c.push(a>>8&255);c.push(a&255)}else if(n===18){c.push(a>>10&255);c.push(a>>2&255)}else if(n===12){c.push(a>>4&255)}if(t){return t.from?t.from(c):new t(c)}return c}function representYamlBinary(e){var r="",n=0,t,o,i=e.length,u=s;for(t=0;t>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}n=(n<<8)+e[t]}o=i%3;if(o===0){r+=u[n>>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}else if(o===2){r+=u[n>>10&63];r+=u[n>>4&63];r+=u[n<<2&63];r+=u[64]}else if(o===1){r+=u[n>>2&63];r+=u[n<<4&63];r+=u[64];r+=u[64]}return r}function isBinary(e){return t&&t.isBuffer(e)}e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4675:(e,r,n)=>{"use strict";var t=n(967);function resolveYamlBoolean(e){if(e===null)return false;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},5564:(e,r,n)=>{"use strict";var t=n(9136);var o=n(967);var i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!i.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,n,t,o;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;o=[];if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}else if(r.indexOf(":")>=0){r.split(":").forEach(function(e){o.unshift(parseFloat(e,10))});r=0;t=1;o.forEach(function(e){r+=e*t;t*=60});return n*r}return n*parseFloat(r,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var n;if(isNaN(e)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(t.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||t.isNegativeZero(e))}e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},9963:(e,r,n)=>{"use strict";var t=n(9136);var o=n(967);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var r=e.length,n=0,t=false,o;if(!r)return false;o=e[n];if(o==="-"||o==="+"){o=e[++n]}if(o==="0"){if(n+1===r)return true;o=e[++n];if(o==="b"){n++;for(;n=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},7278:(e,r,n)=>{"use strict";var t;try{var o=require;t=o("esprima")}catch(e){if(typeof window!=="undefined")t=window.esprima}var i=n(967);function resolveJavascriptFunction(e){if(e===null)return false;try{var r="("+e+")",n=t.parse(r,{range:true});if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(e){return false}}function constructJavascriptFunction(e){var r="("+e+")",n=t.parse(r,{range:true}),o=[],i;if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}n.body[0].expression.params.forEach(function(e){o.push(e.name)});i=n.body[0].expression.body.range;if(n.body[0].expression.body.type==="BlockStatement"){return new Function(o,r.slice(i[0]+1,i[1]-1))}return new Function(o,"return "+r.slice(i[0],i[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},9242:(e,r,n)=>{"use strict";var t=n(967);function resolveJavascriptRegExp(e){if(e===null)return false;if(e.length===0)return false;var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];if(t.length>3)return false;if(r[r.length-t.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];r=r.slice(1,r.length-t.length-1)}return new RegExp(r,t)}function representJavascriptRegExp(e){var r="/"+e.source+"/";if(e.global)r+="g";if(e.multiline)r+="m";if(e.ignoreCase)r+="i";return r}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new t("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},5914:(e,r,n)=>{"use strict";var t=n(967);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(e){return typeof e==="undefined"}e.exports=new t("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},1173:(e,r,n)=>{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},1393:(e,r,n)=>{"use strict";var t=n(967);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},2671:(e,r,n)=>{"use strict";var t=n(967);function resolveYamlNull(e){if(e===null)return true;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},6668:(e,r,n)=>{"use strict";var t=n(967);var o=Object.prototype.hasOwnProperty;var i=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],n,t,s,u,a,c=e;for(n=0,t=c.length;n{"use strict";var t=n(967);var o=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,n,t,i,s,u=e;s=new Array(u.length);for(r=0,n=u.length;r{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9237:(e,r,n)=>{"use strict";var t=n(967);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var r,n=e;for(r in n){if(o.call(n,r)){if(n[r]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},2672:(e,r,n)=>{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},3714:(e,r,n)=>{"use strict";var t=n(967);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(o.exec(e)!==null)return true;if(i.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,n,t,s,u,a,c,f=0,l=null,p,h,d;r=o.exec(e);if(r===null)r=i.exec(e);if(r===null)throw new Error("Date resolve error");n=+r[1];t=+r[2]-1;s=+r[3];if(!r[4]){return new Date(Date.UTC(n,t,s))}u=+r[4];a=+r[5];c=+r[6];if(r[7]){f=r[7].slice(0,3);while(f.length<3){f+="0"}f=+f}if(r[9]){p=+r[10];h=+(r[11]||0);l=(p*60+h)*6e4;if(r[9]==="-")l=-l}d=new Date(Date.UTC(n,t,s,u,a,c,f));if(l)d.setTime(d.getTime()-l);return d}function representYamlTimestamp(e){return e.toISOString()}e.exports=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},900:e=>{var r=1e3;var n=r*60;var t=n*60;var o=t*24;var i=o*7;var s=o*365.25;e.exports=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return r.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 u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!u){return}var a=parseFloat(u[1]);var c=(u[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*t;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){var i=Math.abs(e);if(i>=o){return Math.round(e/o)+"d"}if(i>=t){return Math.round(e/t)+"h"}if(i>=n){return Math.round(e/n)+"m"}if(i>=r){return Math.round(e/r)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=o){return plural(e,i,o,"day")}if(i>=t){return plural(e,i,t,"hour")}if(i>=n){return plural(e,i,n,"minute")}if(i>=r){return plural(e,i,r,"second")}return e+" ms"}function plural(e,r,n,t){var o=r>=n*1.5;return Math.round(e/n)+" "+t+(o?"s":"")}},254:(e,r,n)=>{r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();r.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"||window.process.__nwjs)){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+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;r.splice(1,0,n,"color: inherit");let t=0;let o=0;r[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}t++;if(e==="%c"){o=t}});r.splice(o,0,n)}r.log=console.debug||console.log||(()=>{});function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(8867)(r);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8867:(e,r,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(900);createDebug.destroy=destroy;Object.keys(e).forEach(r=>{createDebug[r]=e[r]});createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let n=0;n{if(r==="%%"){return"%"}i++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[i];r=o.call(n,t);e.splice(i,1);i--}return r});createDebug.formatArgs.call(n,e);const s=n.log||createDebug.log;s.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>n===null?createDebug.enabled(e):n,set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,r){const n=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let r;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const t=n.length;for(r=0;r"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let n;for(r=0,n=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(254)}else{e.exports=n(675)}},675:(e,r,n)=>{const t=n(3867);const o=n(1669);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.destroy=o.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");r.colors=[6,2,3,4,5,1];try{const e=n(9318);if(e&&(e.stderr||e).level>=2){r.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){}r.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,r)=>{const n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(e,r)=>{return r.toUpperCase()});let t=process.env[r];if(/^(yes|on|true|enabled)$/i.test(t)){t=true}else if(/^(no|off|false|disabled)$/i.test(t)){t=false}else if(t==="null"){t=null}else{t=Number(t)}e[n]=t;return e},{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):t.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:n,useColors:t}=this;if(t){const t=this.color;const o="[3"+(t<8?t:"8;5;"+t);const i=` ${o};1m${n} `;r[0]=i+r[0].split("\n").join("\n"+i);r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+n+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(r.inspectOpts);for(let t=0;te.trim()).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},1949:(e,r,n)=>{const t=n(4966);const{GitConstructError:o}=n(4732);const{createInstanceConfig:i,folderExists:s}=n(847);const u=Object.create(null);for(let e=n(4732),r=Object.keys(e),t=0;t{const t=n(3766);const{GitExecutor:o}=n(4701);const{Scheduler:i}=n(3421);const{GitLogger:s}=n(7178);const{adhocExecTask:u,configurationErrorTask:a}=n(2815);const{NOOP:c,appendTaskOptions:f,asArray:l,filterArray:p,filterPrimitives:h,filterString:d,filterType:m,folderExists:g,getTrailingOptions:v,trailingFunctionArgument:b,trailingOptionsArgument:C}=n(847);const{branchTask:O,branchLocalTask:w,deleteBranchesTask:S,deleteBranchTask:y}=n(17);const{taskCallback:A}=n(8850);const{checkIsRepoTask:E}=n(221);const{cloneTask:T,cloneMirrorTask:R}=n(3173);const{addConfigTask:F,listConfigTask:k}=n(7597);const{cleanWithOptionsTask:D,isCleanOptionsArray:j}=n(4386);const{initTask:P}=n(6016);const{hashObjectTask:M}=n(8199);const{mergeTask:x}=n(8829);const{moveTask:L}=n(6520);const{pullTask:B}=n(4636);const{pushTagsTask:I,pushTask:G}=n(1435);const{addRemoteTask:_,getRemotesTask:U,listRemotesTask:$,remoteTask:q,removeRemoteTask:Y}=n(9866);const{getResetMode:W,resetTask:N}=n(2377);const{statusTask:H}=n(9197);const{addSubModuleTask:z,initSubModuleTask:V,subModuleTask:J,updateSubModuleTask:Z}=n(8772);const{addAnnotatedTagTask:Q,addTagTask:X,tagListTask:K}=n(8540);const{straightThroughStringTask:ee}=n(2815);const{parseCheckIgnore:re}=n(9926);const ne=Symbol("ChainedExecutor");function Git(e){this._executor=new o(e.binary,e.baseDir,new i(e.maxConcurrentProcesses));this._logger=new s}Git.prototype._executor=null;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,r){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=r}return this};Git.prototype.cwd=function(e,r){const n=typeof e!=="string"?a("Git.cwd: workingDirectory must be supplied as a string"):u(()=>{if(!g(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e});return this._runTask(n,b(arguments)||c)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,r){return this._runTask(P(e===true,this._executor.cwd,v(arguments)),b(arguments))};Git.prototype.status=function(){return this._runTask(H(v(arguments)),b(arguments))};Git.prototype.stashList=function(e,r){var n=b(arguments);var t=(n===r?e:null)||{};var o=t.splitter||requireResponseHandler("ListLogSummary").SPLITTER;var i=["stash","list","--pretty=format:"+requireResponseHandler("ListLogSummary").START_BOUNDARY+"%H %ai %s%d %aN %ae".replace(/\s+/g,o)+requireResponseHandler("ListLogSummary").COMMIT_BOUNDARY];if(Array.isArray(t)){i=i.concat(t)}return this._run(i,n,{parser:Git.responseParser("ListLogSummary",o)})};Git.prototype.stash=function(e,r){return this._run(["stash"].concat(v(arguments)),b(arguments))};function createCloneTask(e,r,n,t){if(typeof n!=="string"){return a(`git.${e}() requires a string 'repoPath'`)}return r(n,m(t,d),v(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",T,...arguments),b(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",R,...arguments),b(arguments))};Git.prototype.mv=function(e,r){return this._runTask(L(e,r),b(arguments))};Git.prototype.checkoutLatestTag=function(e){var r=this;return this.pull(function(){r.tags(function(n,t){r.checkout(t.latest,e)})})};Git.prototype.add=function(e){return this._run(["add"].concat(e),b(arguments))};Git.prototype.commit=function(e,r,n,t){var o=["commit"];l(e).forEach(function(e){o.push("-m",e)});l(typeof r==="string"||Array.isArray(r)?r:[]).forEach(e=>o.push(e));o.push(...v(arguments,0,true));return this._run(o,b(arguments),{parser:Git.responseParser("CommitSummary")})};Git.prototype.pull=function(e,r,n,t){return this._runTask(B(m(e,d),m(r,d),v(arguments)),b(arguments))};Git.prototype.fetch=function(e,r,n){const t=["fetch"].concat(v(arguments));if(typeof e==="string"&&typeof r==="string"){t.push(e,r)}return this._run(t,b(arguments),{concatStdErr:true,parser:Git.responseParser("FetchSummary")})};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,r){return this._runTask(K(v(arguments)),b(arguments))};Git.prototype.rebase=function(e,r){return this._run(["rebase"].concat(v(arguments)),b(arguments))};Git.prototype.reset=function(e,r){return this._runTask(N(W(e),v(arguments)),b(arguments))};Git.prototype.revert=function(e,r,n){const t=b(arguments);if(typeof e!=="string"){return this._runTask(a("Commit must be a string"),t)}return this._run(["revert",...v(arguments,0,true),e],t)};Git.prototype.addTag=function(e,r){const n=typeof e==="string"?X(e):a("Git.addTag requires a tag name");return this._runTask(n,b(arguments))};Git.prototype.addAnnotatedTag=function(e,r,n){return this._runTask(Q(e,r),b(arguments))};Git.prototype.checkout=function(e,r){const n=["checkout",...v(arguments,true)];return this._runTask(ee(n),b(arguments))};Git.prototype.checkoutBranch=function(e,r,n){return this.checkout(["-b",e,r],b(arguments))};Git.prototype.checkoutLocalBranch=function(e,r){return this.checkout(["-b",e],b(arguments))};Git.prototype.deleteLocalBranch=function(e,r,n){return this._runTask(y(e,typeof r==="boolean"?r:false),b(arguments))};Git.prototype.deleteLocalBranches=function(e,r,n){return this._runTask(S(e,typeof r==="boolean"?r:false),b(arguments))};Git.prototype.branch=function(e,r){return this._runTask(O(v(arguments)),b(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(w(),b(arguments))};Git.prototype.addConfig=function(e,r,n,t){return this._runTask(F(e,r,typeof n==="boolean"?n:false),b(arguments))};Git.prototype.listConfig=function(){return this._runTask(k(),b(arguments))};Git.prototype.raw=function(e){const r=!Array.isArray(e);const n=[].slice.call(r?arguments:e,0);for(let e=0;e{const{gitP:t}=n(941);const{esModuleFactory:o,gitInstanceFactory:i,gitExportFactory:s}=n(1949);e.exports=o(s(i,{gitP:t}))},4732:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var t=n(4386);r.CleanOptions=t.CleanOptions;var o=n(221);r.CheckRepoActions=o.CheckRepoActions;var i=n(2377);r.ResetMode=i.ResetMode;var s=n(1876);r.GitConstructError=s.GitConstructError;var u=n(5757);r.GitError=u.GitError;var a=n(5131);r.GitResponseError=a.GitResponseError;var c=n(740);r.TaskConfigurationError=c.TaskConfigurationError},1876:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(5757);class GitConstructError extends t.GitError{constructor(e,r){super(undefined,r);this.config=e}}r.GitConstructError=GitConstructError},5757:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class GitError extends Error{constructor(e,r){super(r);this.task=e;Object.setPrototypeOf(this,new.target.prototype)}}r.GitError=GitError},5131:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(5757);class GitResponseError extends t.GitError{constructor(e,r){super(undefined,r||String(e));this.git=e}}r.GitResponseError=GitResponseError},740:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(5757);class TaskConfigurationError extends t.GitError{constructor(e){super(undefined,e)}}r.TaskConfigurationError=TaskConfigurationError},7178:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(2179);const o=n(847);t.default.formatters.L=(e=>String(o.filterHasLength(e)?e.length:"-"));t.default.formatters.B=(e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return o.objectToString(e)});r.log=t.default("simple-git");function prefixedLogger(e,r,n){if(!r||!String(r).replace(/\s*/,"")){return!n?e:(r,...t)=>{e(r,...t);n(r,...t)}}return(t,...o)=>{e(`%s ${t}`,r,...o);if(n){n(t,...o)}}}function childLoggerName(e,r,{namespace:n}){if(typeof e==="string"){return e}const t=r&&r.namespace||"";if(t.startsWith(n)){return t.substr(n.length+1)}return t||n}function createLogger(e,n,t,i=r.log){const s=e&&`[${e}]`||"";const u=[];const a=typeof n==="string"?i.extend(n):n;const c=childLoggerName(o.filterType(n,o.filterString),a,i);return step(t);function destroy(){u.forEach(e=>e.destroy());u.length=0}function child(r){return o.append(u,createLogger(e,a&&a.extend(r)||r))}function sibling(r,n){return o.append(u,createLogger(e,c.replace(/^[^:]+/,r),n,i))}function step(r){const n=r&&`[${r}]`||"";const t=a&&prefixedLogger(a,n)||o.NOOP;const u=prefixedLogger(i,`${s} ${n}`,t);return Object.assign(a?t:u,{key:c,label:e,child:child,sibling:sibling,debug:t,info:u,step:step,destroy:destroy})}}r.createLogger=createLogger;class GitLogger{constructor(e=r.log){this._out=e;this.error=prefixedLogger(e,"[ERROR]");this.warn=prefixedLogger(e,"[WARN]")}silent(e=false){if(e!==this._out.enabled){return}const{namespace:r}=this._out;const n=(process.env.DEBUG||"").split(",").filter(e=>!!e);const i=n.includes(r);const s=n.includes(`-${r}`);if(!e){if(s){o.remove(n,`-${r}`)}else{n.push(r)}}else{if(i){o.remove(n,r)}else{n.push(`-${r}`)}}t.default.enable(n.join(","))}}r.GitLogger=GitLogger},6086:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(3755);const o=n(847);const i=/(\S+)\s+\(\S+\s([^)]+)\)/;const s=/^error[^']+'([^']+)'/m;const u=[new o.LineParser(i,(e,[r,n])=>{const o=t.branchDeletionSuccess(r,n);e.all.push(o);e.branches[r]=o}),new o.LineParser(s,(e,[r])=>{const n=t.branchDeletionFailure(r);e.errors.push(n);e.all.push(n);e.branches[r]=n})];r.parseBranchDeletions=(e=>{return o.parseStringResponse(new t.BranchDeletionBatch,u,e)});function hasBranchDeletionError(e,r){return r===o.ExitCodes.ERROR&&s.test(e)}r.hasBranchDeletionError=hasBranchDeletionError},9264:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(4446);const o=n(847);const i=[new o.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[r,n,t,o])=>{e.push(!!r,true,n,t,o)}),new o.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/,(e,[r,n,t,o])=>{e.push(!!r,false,n,t,o)})];r.parseBranchSummary=function(e){return o.parseStringResponse(new t.BranchSummaryResult,i,e)}},6412:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(1651);const o=n(847);const i=n(5658);const s=[new o.LineParser(/^Auto-merging\s+(.+)$/,(e,[r])=>{e.merges.push(r)}),new o.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[r,n])=>{e.conflicts.push(new t.MergeSummaryConflict(r,n))}),new o.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[r,n,o])=>{e.conflicts.push(new t.MergeSummaryConflict(r,n,{deleteRef:o}))}),new o.LineParser(/^CONFLICT\s+\((.+)\):/,(e,[r])=>{e.conflicts.push(new t.MergeSummaryConflict(r,null))}),new o.LineParser(/^Automatic merge failed;\s+(.+)$/,(e,[r])=>{e.result=r})];r.parseMergeResult=((e,n)=>{return Object.assign(r.parseMergeDetail(e,n),i.parsePullResult(e,n))});r.parseMergeDetail=(e=>{return o.parseStringResponse(new t.MergeSummaryDetail,s,e)})},7444:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(847);const o=[new t.LineParser(/^Renaming (.+) to (.+)$/,(e,[r,n])=>{e.moves.push({from:r,to:n})})];r.parseMoveResult=function(e){return t.parseStringResponse({moves:[]},o,e)}},5658:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(3567);const o=n(847);const i=n(2661);const s=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const u=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const a=/^(create|delete) mode \d+ (.+)/;const c=[new o.LineParser(s,(e,[r,n,t])=>{e.files.push(r);if(n){e.insertions[r]=n.length}if(t){e.deletions[r]=t.length}}),new o.LineParser(u,(e,[r,,n,,t])=>{if(n!==undefined||t!==undefined){e.summary.changes=+r||0;e.summary.insertions=+n||0;e.summary.deletions=+t||0;return true}return false}),new o.LineParser(a,(e,[r,n])=>{o.append(e.files,n);o.append(r==="create"?e.created:e.deleted,n)})];r.parsePullDetail=((e,r)=>{return o.parseStringResponse(new t.PullSummary,c,`${e}\n${r}`)});r.parsePullResult=((e,n)=>{return Object.assign(new t.PullSummary,r.parsePullDetail(e,n),i.parseRemoteMessages(e,n))})},8530:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(847);const o=n(2661);function pushResultPushedItem(e,r,n){const t=n.includes("deleted");const o=n.includes("tag")||/^refs\/tags/.test(e);const i=!n.includes("new");return{deleted:t,tag:o,branch:!o,new:!i,alreadyUpdated:i,local:e,remote:r}}const i=[new t.LineParser(/^Pushing to (.+)$/,(e,[r])=>{e.repo=r}),new t.LineParser(/^updating local tracking ref '(.+)'/,(e,[r])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:r})}),new t.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[r,n,t])=>{e.pushed.push(pushResultPushedItem(r,n,t))}),new t.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[r,n,t])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:r,remote:n,remoteName:t})}),new t.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[r,n,t,o])=>{e.update={head:{local:r,remote:n},hash:{from:t,to:o}}})];r.parsePushResult=((e,n)=>{const t=r.parsePushDetail(e,n);const i=o.parseRemoteMessages(e,n);return Object.assign(Object.assign({},t),i)});r.parsePushDetail=((e,r)=>{return t.parseStringResponse({pushed:[]},i,`${e}\n${r}`)})},2661:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(847);const o=n(3565);const i=[new t.RemoteLineParser(/^remote:\s*(.+)$/,(e,[r])=>{e.remoteMessages.all.push(r.trim());return false}),...o.remoteMessagesObjectParsers,new t.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[r])=>{e.remoteMessages.pullRequestUrl=r}),new t.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[r,n,o])=>{e.remoteMessages.vulnerabilities={count:t.asNumber(r),summary:n,url:o}})];function parseRemoteMessages(e,r){return t.parseStringResponse({remoteMessages:new RemoteMessageSummary},i,r)}r.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}r.RemoteMessageSummary=RemoteMessageSummary},3565:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(847);function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const r=/^\s*(\d+)/.exec(e);const n=/delta (\d+)/i.exec(e);return{count:t.asNumber(r&&r[1]||"0"),delta:t.asNumber(n&&n[1]||"0")}}r.remoteMessagesObjectParsers=[new t.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[r,n])=>{const o=r.toLowerCase();const i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[o]:t.asNumber(n)})}),new t.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[r,n])=>{const o=r.toLowerCase();const i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[o]:t.asNumber(n)})}),new t.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[r,n,o])=>{const i=objectEnumerationResult(e.remoteMessages);i.total=asObjectCount(r);i.reused=asObjectCount(n);i.packReused=t.asNumber(o)})]},3755:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}r.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,r){return{branch:e,hash:r,success:true}}r.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}r.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}r.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,r,n,t,o){if(e){this.detached=r;this.current=n}this.all.push(n);this.branches[n]={current:e,name:n,commit:t,label:o}}}r.BranchSummaryResult=BranchSummaryResult},9926:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseCheckIgnore=(e=>{return e.split(/\n/g).map(e=>e.trim()).filter(e=>!!e)})},5689:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}r.CleanResponse=CleanResponse;const o=/^[a-z]+\s*/i;const i=/^[a-z]+\s+[a-z]+\s*/i;const s=/\/$/;function cleanSummaryParser(e,r){const n=new CleanResponse(e);const u=e?i:o;t.toLinesWithContent(r).forEach(e=>{const r=e.replace(u,"");n.paths.push(r);(s.test(r)?n.folders:n.files).push(r)});return n}r.cleanSummaryParser=cleanSummaryParser},7219:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce((e,r)=>{return Object.assign(e,this.values[r])},{})}return this._all}addFile(e){if(!(e in this.values)){const r=t.last(this.files);this.values[e]=r?Object.create(this.values[r]):{};this.files.push(e)}return this.values[e]}addValue(e,r,n){const t=this.addFile(e);if(!t.hasOwnProperty(r)){t[r]=n}else if(Array.isArray(t[r])){t[r].push(n)}else{t[r]=[t[r],n]}this._all=undefined}}r.ConfigList=ConfigList;function configListParser(e){const r=new ConfigList;const n=e.split("\0");for(let e=0,o=n.length-1;e{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,n,t){this.path=e;this.index=n;this.working_dir=t;if("R"===n+t){const n=r.fromPathRegex.exec(e)||[null,e,e];this.from=n[1]||"";this.path=n[2]||""}}}r.FileStatusSummary=FileStatusSummary},9999:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(847);function parseGetRemotes(e){const r={};forEach(e,([e])=>r[e]={name:e});return Object.values(r)}r.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const r={};forEach(e,([e,n,t])=>{if(!r.hasOwnProperty(e)){r[e]={name:e,refs:{fetch:"",push:""}}}if(t&&n){r[e].refs[t.replace(/[^a-z]/g,"")]=n}});return Object.values(r)}r.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,r){t.forEachLineWithContent(e,e=>r(e.split(/\s+/)))}},8690:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class InitSummary{constructor(e,r,n,t){this.bare=e;this.path=r;this.existing=n;this.gitDir=t}}r.InitSummary=InitSummary;const n=/^Init.+ repository in (.+)$/;const t=/^Rein.+ in (.+)$/;function parseInit(e,r,o){const i=String(o).trim();let s;if(s=n.exec(i)){return new InitSummary(e,r,false,s[1])}if(s=t.exec(i)){return new InitSummary(e,r,true,s[1])}let u="";const a=i.split(" ");while(a.length){const e=a.shift();if(e==="in"){u=a.join(" ");break}}return new InitSummary(e,r,/^re/i.test(i),u)}r.parseInit=parseInit},1651:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class MergeSummaryConflict{constructor(e,r=null,n){this.reason=e;this.file=r;this.meta=n}toString(){return`${this.file}:${this.reason}`}}r.MergeSummaryConflict=MergeSummaryConflict;class MergeSummaryDetail{constructor(){this.conflicts=[];this.merges=[];this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){if(this.conflicts.length){return`CONFLICTS: ${this.conflicts.join(", ")}`}return"OK"}}r.MergeSummaryDetail=MergeSummaryDetail},3567:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class PullSummary{constructor(){this.remoteMessages={all:[]};this.created=[];this.deleted=[];this.files=[];this.deletions={};this.insertions={};this.summary={changes:0,deletions:0,insertions:0}}}r.PullSummary=PullSummary},6790:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(860);class StatusSummary{constructor(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[];this.ahead=0;this.behind=0;this.current=null;this.tracking=null}isClean(){return!this.files.length}}r.StatusSummary=StatusSummary;r.StatusSummaryParsers={"##":function(e,r){const n=/ahead (\d+)/;const t=/behind (\d+)/;const o=/^(.+?(?=(?:\.{3}|\s|$)))/;const i=/\.{3}(\S*)/;const s=/\son\s([\S]+)$/;let u;u=n.exec(e);r.ahead=u&&+u[1]||0;u=t.exec(e);r.behind=u&&+u[1]||0;u=o.exec(e);r.current=u&&u[1];u=i.exec(e);r.tracking=u&&u[1];u=s.exec(e);r.current=u&&u[1]||r.current},"??":function(e,r){r.not_added.push(e)},A:function(e,r){r.created.push(e)},AM:function(e,r){r.created.push(e)},D:function(e,r){r.deleted.push(e)},M:function(e,r,n){r.modified.push(e);if(n==="M"){r.staged.push(e)}},R:function(e,r){const n=/^(.+) -> (.+)$/.exec(e)||[null,e,e];r.renamed.push({from:String(n[1]),to:String(n[2])})},UU:function(e,r){r.conflicted.push(e)}};r.StatusSummaryParsers.MM=r.StatusSummaryParsers.M;r.StatusSummaryParsers.AA=r.StatusSummaryParsers.UU;r.StatusSummaryParsers.UD=r.StatusSummaryParsers.UU;r.StatusSummaryParsers.DU=r.StatusSummaryParsers.UU;r.StatusSummaryParsers.DD=r.StatusSummaryParsers.UU;r.StatusSummaryParsers.AU=r.StatusSummaryParsers.UU;r.StatusSummaryParsers.UA=r.StatusSummaryParsers.UU;r.parseStatusSummary=function(e){let r;const n=e.trim().split("\n");const o=new StatusSummary;for(let e=0,i=n.length;e1){t+=" "}if(t.length===1&&n[2].length===1){t=" "+t}return{raw:t,code:t.trim(),index:t.charAt(0),workingDir:t.charAt(1),handler:r.StatusSummaryParsers[t.trim()],path:n[3]}}},4539:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class TagList{constructor(e,r){this.all=e;this.latest=r}}r.TagList=TagList;r.parseTagList=function(e,r=false){const n=e.split("\n").map(trimmed).filter(Boolean);if(!r){n.sort(function(e,r){const n=e.split(".");const t=r.split(".");if(n.length===1||t.length===1){return singleSorted(toNumber(n[0]),toNumber(t[0]))}for(let e=0,r=Math.max(n.length,t.length);ee.indexOf(".")>=0);return new TagList(n,t)};function singleSorted(e,r){const n=isNaN(e);const t=isNaN(r);if(n!==t){return n?1:-1}return n?sorted(e,r):0}function sorted(e,r){return e===r?0:e>r?1:-1}function trimmed(e){return e.trim()}function toNumber(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0}},8543:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});const o=n(3129);const i=n(4732);const s=n(2815);const u=n(6676);const a=n(847);class GitExecutorChain{constructor(e,r){this._executor=e;this._scheduler=r;this._chain=Promise.resolve();this._queue=new u.TasksPendingQueue}get binary(){return this._executor.binary}get outputHandler(){return this._executor.outputHandler}get cwd(){return this._executor.cwd}get env(){return this._executor.env}push(e){this._queue.push(e);return this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return t(this,void 0,void 0,function*(){const r=yield this._scheduler.next();const n=()=>this._queue.complete(e);try{const{logger:t}=this._queue.attempt(e);return yield s.isEmptyTask(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t)}catch(r){throw this.onFatalException(e,r)}finally{n();r()}})}onFatalException(e,r){const n=r instanceof i.GitError?Object.assign(r,{task:e}):new i.GitError(e,r&&String(r));this._chain=Promise.resolve();this._queue.fatal(n);return n}attemptRemoteTask(e,r){return t(this,void 0,void 0,function*(){const n=yield this.gitResponse(this.binary,e.commands,this.outputHandler,r.step("SPAWN"));const t=yield this.handleTaskData(e,n,r.step("HANDLE"));r(`passing response to task's parser as a %s`,e.format);if(s.isBufferTask(e)){return a.callTaskParser(e.parser,t)}return a.callTaskParser(e.parser,t.asStrings())})}attemptEmptyTask(e,r){return t(this,void 0,void 0,function*(){r(`empty task bypassing child process to call to task's parser`);return e.parser()})}handleTaskData({onError:e,concatStdErr:r},{exitCode:n,stdOut:t,stdErr:o},i){return new Promise((s,u)=>{i(`Preparing to handle process response exitCode=%d stdOut=`,n);if(n&&o.length&&e){i.info(`exitCode=%s handling with custom error handler`);i(`concatenate stdErr to stdOut: %j`,r);return e(n,Buffer.concat([...r?t:[],...o]).toString("utf-8"),e=>{i.info(`custom error handler treated as success`);i(`custom error returned a %s`,a.objectToString(e));s(new a.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(o)))},u)}if(n&&o.length){i.info(`exitCode=%s treated as error when then child process has written to stdErr`);return u(Buffer.concat(o).toString("utf-8"))}if(r){i(`concatenating stdErr onto stdOut before processing`);i(`stdErr: $O`,o);t.push(...o)}i.info(`retrieving task output complete`);s(new a.GitOutputStreams(Buffer.concat(t),Buffer.concat(o)))})}gitResponse(e,r,n,i){return t(this,void 0,void 0,function*(){const t=i.sibling("output");const s={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise(u=>{const a=[];const c=[];let f=false;function attemptClose(e,r="retry"){if(f||c.length||a.length){i.info(`exitCode=%s event=%s`,e,r);u({stdOut:a,stdErr:c,exitCode:e});f=true;t.destroy()}if(!f){f=true;setTimeout(()=>attemptClose(e,"deferred"),50);i("received %s event before content on stdOut/stdErr",r)}}i.info(`%s %o`,e,r);i("%O",s);const l=o.spawn(e,r,s);l.stdout.on("data",onDataReceived(a,"stdOut",i,t.step("stdOut")));l.stderr.on("data",onDataReceived(c,"stdErr",i,t.step("stdErr")));l.on("error",onErrorReceived(c,i));l.on("close",e=>attemptClose(e,"close"));l.on("exit",e=>attemptClose(e,"exit"));if(n){i(`Passing child process stdOut/stdErr to custom outputHandler`);n(e,l.stdout,l.stderr,[...r])}})})}}r.GitExecutorChain=GitExecutorChain;function onErrorReceived(e,r){return n=>{r(`[ERROR] child process exception %o`,n);e.push(Buffer.from(String(n.stack),"ascii"))}}function onDataReceived(e,r,n,t){return o=>{n(`%s received %L bytes`,r,o);t(`%B`,o);e.push(o)}}},4701:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(8543);class GitExecutor{constructor(e="git",r,n){this.binary=e;this.cwd=r;this._scheduler=n;this._chain=new t.GitExecutorChain(this,this._scheduler)}chain(){return new t.GitExecutorChain(this,this._scheduler)}push(e){return this._chain.push(e)}}r.GitExecutor=GitExecutor},941:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(5131);const o=["customBinary","env","outputHandler","silent"];const i=["add","addAnnotatedTag","addConfig","addRemote","addTag","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];const{gitInstanceFactory:s}=n(1949);function gitP(...e){let r;let n=Promise.resolve();try{r=s(...e)}catch(e){n=Promise.reject(e)}function builderReturn(){return t}function chainReturn(){return n}const t=[...o,...i].reduce((e,n)=>{const t=i.includes(n);const o=t?asyncWrapper(n,r):syncWrapper(n,r,e);const s=t?chainReturn:builderReturn;Object.defineProperty(e,n,{enumerable:false,configurable:false,value:r?o:s});return e},{});return t;function asyncWrapper(e,r){return function(...t){if(typeof t[t.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return n.then(function(){return new Promise(function(n,o){const i=(e,r)=>{if(e){return o(toError(e))}n(r)};t.push(i);r[e].apply(r,t)})})}}function syncWrapper(e,r,n){return(...t)=>{r[e](...t);return n}}}r.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new t.GitResponseError(e)}},3421:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(847);const o=n(9819);const i=n(7178);const s=i.createLogger("","scheduler");const u=(()=>{let e=0;return()=>{e++;const{promise:r,done:n}=o.createDeferred();return{promise:r,done:n,id:e}}})();class Scheduler{constructor(e=2){this.concurrency=e;this.pending=[];this.running=[];s(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){s(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const e=t.append(this.running,this.pending.shift());s(`Attempting id=%s`,e.id);e.done(()=>{s(`Completing id=`,e.id);t.remove(this.running,e);this.schedule()})}next(){const{promise:e,id:r}=t.append(this.pending,u());s(`Scheduling id=%s`,r);this.schedule();return e}}r.Scheduler=Scheduler},6676:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(7178);const o=n(4732);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const r=TasksPendingQueue.getName(e.commands[0]);const n=t.createLogger(this.logLabel,r);return{task:e,logger:n,name:r}}push(e){const r=this.createProgress(e);r.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,r);return r}fatal(e){for(const[r,{logger:n}]of Array.from(this._queue.entries())){if(r===e.task){n.info(`Failed %o`,e);n(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{n.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message)}this.complete(r)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const r=this.withProgress(e);if(r){r.logger.destroy();this._queue.delete(e)}}attempt(e){const r=this.withProgress(e);if(!r){throw new o.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}r.logger("Starting task");return r}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}r.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},8850:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(4732);const o=n(847);function taskCallback(e,r,n=o.NOOP){const i=e=>{n(null,e)};const s=r=>{if((r===null||r===void 0?void 0:r.task)===e){if(r instanceof t.GitResponseError){return n(addDeprecationNoticeToError(r))}n(r)}};r.then(i,s)}r.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let r=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}`);r=o.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(n,t){if(t in e){return n}n[t]={enumerable:false,configurable:false,get(){r(t);return e.git[t]}};return n}}},17:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(5131);const o=n(6086);const i=n(9264);function containsDeleteBranchCommand(e){const r=["-d","-D","--delete"];return e.some(e=>r.includes(e))}r.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const r=containsDeleteBranchCommand(e);const n=["branch",...e];if(n.length===1){n.push("-a")}if(!n.includes("-v")){n.splice(1,0,"-v")}return{format:"utf-8",commands:n,parser(e,n){if(r){return o.parseBranchDeletions(e,n).all[0]}return i.parseBranchSummary(e,n)}}}r.branchTask=branchTask;function branchLocalTask(){return{format:"utf-8",commands:["branch","-v"],parser(e,r){return i.parseBranchSummary(e,r)}}}r.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,r=false){return{format:"utf-8",commands:["branch","-v",r?"-D":"-d",...e],parser(e,r){return o.parseBranchDeletions(e,r)},onError(e,r,n,t){if(!o.hasBranchDeletionError(r,e)){return t(r)}n(r)},concatStdErr:true}}r.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,r=false){const n={format:"utf-8",commands:["branch","-v",r?"-D":"-d",e],parser(r,n){return o.parseBranchDeletions(r,n).branches[e]},onError(e,r,i,s){if(!o.hasBranchDeletionError(r,e)){return s(r)}throw new t.GitResponseError(n.parser(r,""),r)},concatStdErr:true};return n}r.deleteBranchTask=deleteBranchTask},221:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(847);var o;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(o=r.CheckRepoActions||(r.CheckRepoActions={}));const i=(e,r,n,o)=>{if(e===t.ExitCodes.UNCLEAN&&isNotRepoMessage(r)){return n("false")}o(r)};const s=e=>{return e.trim()==="true"};function checkIsRepoTask(e){switch(e){case o.BARE:return checkIsBareRepoTask();case o.IS_REPO_ROOT:return checkIsRepoRootTask()}const r=["rev-parse","--is-inside-work-tree"];return{commands:r,format:"utf-8",onError:i,parser:s}}r.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:i,parser(e){return/^\.(git)?$/.test(e.trim())}}}r.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:i,parser:s}}r.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(5689);const o=n(847);const i=n(2815);r.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";r.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';r.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var s;(function(e){e["DRY_RUN"]="n";e["FORCE"]="f";e["IGNORED_INCLUDED"]="x";e["IGNORED_ONLY"]="X";e["EXCLUDING"]="e";e["QUIET"]="q";e["RECURSIVE"]="d"})(s=r.CleanOptions||(r.CleanOptions={}));const u=new Set(["i",...o.asStringArray(Object.values(s))]);function cleanWithOptionsTask(e,n){const{cleanMode:t,options:o,valid:s}=getCleanOptions(e);if(!t){return i.configurationErrorTask(r.CONFIG_ERROR_MODE_REQUIRED)}if(!s.options){return i.configurationErrorTask(r.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}o.push(...n);if(o.some(isInteractiveMode)){return i.configurationErrorTask(r.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(t,o)}r.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,r){const n=["clean",`-${e}`,...r];return{commands:n,format:"utf-8",parser(r){return t.cleanSummaryParser(e===s.DRY_RUN,r)}}}r.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every(e=>u.has(e))}r.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let r;let n=[];let t={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach(e=>{if(isCleanMode(e)){r=e;t.cleanMode=true}else{t.options=t.options&&isKnownOption(n[n.length]=`-${e}`)}});return{cleanMode:r,options:n,valid:t}}function isCleanMode(e){return e===s.FORCE||e===s.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&u.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(2815);const o=n(847);function cloneTask(e,r,n){const o=["clone",...n];if(typeof e==="string"){o.push(e)}if(typeof r==="string"){o.push(r)}return t.straightThroughStringTask(o)}r.cloneTask=cloneTask;function cloneMirrorTask(e,r,n){o.append(n,"--mirror");return cloneTask(e,r,n)}r.cloneMirrorTask=cloneMirrorTask},7597:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(7219);function addConfigTask(e,r,n=false){const t=["config","--local"];if(n){t.push("--add")}t.push(e,r);return{commands:t,format:"utf-8",parser(e){return e}}}r.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return t.configListParser(e)}}}r.listConfigTask=listConfigTask},8199:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(2815);function hashObjectTask(e,r){const n=["hash-object",e];if(r){n.push("-w")}return t.straightThroughStringTask(n,true)}r.hashObjectTask=hashObjectTask},6016:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(8690);const o="--bare";function hasBareCommand(e){return e.includes(o)}function initTask(e=false,r,n){const i=["init",...n];if(e&&!hasBareCommand(i)){i.splice(1,0,o)}return{commands:i,concatStdErr:false,format:"utf-8",parser(e){return t.parseInit(i.includes("--bare"),r,e)}}}r.initTask=initTask},8829:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(4732);const o=n(6412);const i=n(2815);function mergeTask(e){if(!e.length){return i.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,r){const n=o.parseMergeResult(e,r);if(n.failed){throw new t.GitResponseError(n)}return n}}}r.mergeTask=mergeTask},6520:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(7444);const o=n(847);function moveTask(e,r){return{commands:["mv","-v",...o.asArray(e),r],format:"utf-8",parser(e,r){return t.parseMoveResult(e,r)}}}r.moveTask=moveTask},4636:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(5658);function pullTask(e,r,n){const o=["pull",...n];if(e&&r){o.splice(1,0,e,r)}return{commands:o,format:"utf-8",parser(e,r){return t.parsePullResult(e,r)}}}r.pullTask=pullTask},1435:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(8530);const o=n(847);function pushTagsTask(e={},r){o.append(r,"--tags");return pushTask(e,r)}r.pushTagsTask=pushTagsTask;function pushTask(e={},r){const n=["push",...r];if(e.branch){n.splice(1,0,e.branch)}if(e.remote){n.splice(1,0,e.remote)}o.remove(n,"-v");o.append(n,"--verbose");o.append(n,"--porcelain");return{commands:n,format:"utf-8",parser:t.parsePushResult}}r.pushTask=pushTask},9866:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(2815);const o=n(9999);function addRemoteTask(e,r,n=[]){return t.straightThroughStringTask(["remote","add",...n,e,r])}r.addRemoteTask=addRemoteTask;function getRemotesTask(e){const r=["remote"];if(e){r.push("-v")}return{commands:r,format:"utf-8",parser:e?o.parseGetRemotesVerbose:o.parseGetRemotes}}r.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const r=[...e];if(r[0]!=="ls-remote"){r.unshift("ls-remote")}return t.straightThroughStringTask(r)}r.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const r=[...e];if(r[0]!=="remote"){r.unshift("remote")}return t.straightThroughStringTask(r)}r.remoteTask=remoteTask;function removeRemoteTask(e){return t.straightThroughStringTask(["remote","remove",e])}r.removeRemoteTask=removeRemoteTask},2377:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(2815);var o;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(o=r.ResetMode||(r.ResetMode={}));const i=Array.from(Object.values(o));function resetTask(e,r){const n=["reset"];if(isValidResetMode(e)){n.push(`--${e}`)}n.push(...r);return t.straightThroughStringTask(n)}r.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return o.SOFT}return}r.getResetMode=getResetMode;function isValidResetMode(e){return i.includes(e)}},9197:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return t.parseStatusSummary(e)}}}r.statusTask=statusTask},8772:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(2815);function addSubModuleTask(e,r){return subModuleTask(["add",e,r])}r.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}r.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const r=[...e];if(r[0]!=="submodule"){r.unshift("submodule")}return t.straightThroughStringTask(r)}r.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}r.updateSubModuleTask=updateSubModuleTask},8540:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(4539);function tagListTask(e=[]){const r=e.some(e=>/^--sort=/.test(e));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return t.parseTagList(e,r)}}}r.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}r.addTagTask=addTagTask;function addAnnotatedTagTask(e,r){return{format:"utf-8",commands:["tag","-a","-m",r,e],parser(){return{name:e}}}}r.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(740);r.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:r.EMPTY_COMMANDS,format:"utf-8",parser:e}}r.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:r.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new t.TaskConfigurationError(e):e}}}r.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,r=false){return{commands:e,format:"utf-8",parser(e){return r?String(e).trim():e}}}r.straightThroughStringTask=straightThroughStringTask;function isBufferTask(e){return e.format==="buffer"}r.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}r.isEmptyTask=isEmptyTask},7366:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(3518);function filterType(e,r,n){if(r(e)){return e}return arguments.length>2?n:undefined}r.filterType=filterType;r.filterArray=(e=>{return Array.isArray(e)});function filterPrimitives(e,r){return/number|string|boolean/.test(typeof e)&&(!r||!r.includes(typeof e))}r.filterPrimitives=filterPrimitives;r.filterString=(e=>{return typeof e==="string"});function filterPlainObject(e){return!!e&&t.objectToString(e)==="[object Object]"}r.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}r.filterFunction=filterFunction;r.filterHasLength=(e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"})},2185:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var n;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(n=r.ExitCodes||(r.ExitCodes={}))},6578:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class GitOutputStreams{constructor(e,r){this.stdOut=e;this.stdErr=r}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}r.GitOutputStreams=GitOutputStreams},847:(e,r,n)=>{"use strict";function __export(e){for(var n in e)if(!r.hasOwnProperty(n))r[n]=e[n]}Object.defineProperty(r,"__esModule",{value:true});__export(n(7366));__export(n(2185));__export(n(6578));__export(n(9536));__export(n(5218));__export(n(3546));__export(n(1351));__export(n(3518))},9536:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class LineParser{constructor(e,r){this.matches=[];this.parse=((e,r)=>{this.resetMatches();if(!this._regExp.every((r,n)=>this.addMatch(r,n,e(n)))){return false}return this.useMatches(r,this.prepareMatches())!==false});this._regExp=Array.isArray(e)?e:[e];if(r){this.useMatches=r}}useMatches(e,r){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,r,n){const t=n&&e.exec(n);if(t){this.pushMatch(r,t)}return!!t}pushMatch(e,r){this.matches.push(...r.slice(1))}}r.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,r,n){return/^remote:\s/.test(String(n))&&super.addMatch(e,r,n)}pushMatch(e,r){if(e>0||r.length>1){super.pushMatch(e,r)}}}r.RemoteLineParser=RemoteLineParser},5218:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const n={binary:"git",maxConcurrentProcesses:5};function createInstanceConfig(...e){const r=process.cwd();const t=Object.assign(Object.assign({baseDir:r},n),...e.filter(e=>typeof e==="object"&&e));t.baseDir=t.baseDir||r;return t}r.createInstanceConfig=createInstanceConfig},3546:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(7366);const o=n(3518);function appendTaskOptions(e,r=[]){if(!t.filterPlainObject(e)){return r}return Object.keys(e).reduce((r,n)=>{const o=e[n];if(t.filterPrimitives(o,["boolean"])){r.push(n+"="+o)}else{r.push(n)}return r},r)}r.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,r=0,n=false){const t=[];for(let n=0,o=r<0?e.length:r;n{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(3518);function callTaskParser(e,r){return e(r.stdOut,r.stdErr)}r.callTaskParser=callTaskParser;function parseStringResponse(e,r,n){for(let o=t.toLinesWithContent(n),i=0,s=o.length;i{if(i+e>=s){return}return o[i+e]};r.some(({parse:r})=>r(n,e))}return e}r.parseStringResponse=parseStringResponse},3518:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const t=n(4751);r.NOOP=(()=>{});function asFunction(e){return typeof e==="function"?e:r.NOOP}r.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==r.NOOP}r.isUserFunction=isUserFunction;function splitOn(e,r){const n=e.indexOf(r);if(n<=0){return[e,""]}return[e.substr(0,n),e.substr(n+1)]}r.splitOn=splitOn;function first(e,r=0){return isArrayLike(e)&&e.length>r?e[r]:undefined}r.first=first;function last(e,r=0){if(isArrayLike(e)&&e.length>r){return e[e.length-1-r]}}r.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,r=true){return e.split("\n").reduce((e,n)=>{const t=r?n.trim():n;if(t){e.push(t)}return e},[])}r.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,r){return toLinesWithContent(e,true).map(e=>r(e))}r.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return t.exists(e,t.FOLDER)}r.folderExists=folderExists;function append(e,r){if(Array.isArray(e)){if(!e.includes(r)){e.push(r)}}else{e.add(r)}return r}r.append=append;function remove(e,r){if(Array.isArray(e)){const n=e.indexOf(r);if(n>=0){e.splice(n,1)}}else{e.delete(r)}return r}r.remove=remove;r.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}r.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}r.asStringArray=asStringArray;function asNumber(e,r=0){if(e==null){return r}const n=parseInt(e,10);return isNaN(n)?r:n}r.asNumber=asNumber},9318:(e,r,n)=>{"use strict";const t=n(2087);const o=n(1621);const i=process.env;let s;if(o("no-color")||o("no-colors")||o("color=false")){s=false}else if(o("color")||o("colors")||o("color=true")||o("color=always")){s=true}if("FORCE_COLOR"in i){s=i.FORCE_COLOR.length===0||parseInt(i.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(s===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&&s!==true){return 0}const r=s?1:0;if(process.platform==="win32"){const e=t.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 i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in i)||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}if(i.TERM==="dumb"){return r}return r}function getSupportLevel(e){const r=supportsColor(e);return translateLevel(r)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},399:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const i=n(2186);const s=o(n(6545));const u=o(n(5622));const a=o(n(1477));const c=o(n(1917));const f=n(2629);const l=u.default.join(process.cwd(),f.getInput("cwd")||"");const p=a.default({baseDir:l});console.log(`Running in ${l}`);(()=>t(void 0,void 0,void 0,function*(){yield checkInputs().catch(i.setFailed);i.startGroup("Internal logs");i.info("> Staging files...");if(f.getInput("add")){i.info("> Adding files...");yield add()}else i.info("> No files to add.");if(f.getInput("remove")){i.info("> Removing files...");yield remove()}else i.info("> No files to remove.");i.info("> Checking for uncommitted changes in the git working tree...");const e=(yield p.diffSummary(["--cached"])).files.length;if(e>0){i.info(`> Found ${e} changed files.`);yield p.addConfig("user.email",f.getInput("author_email"),undefined,f.log).addConfig("user.name",f.getInput("author_name"),undefined,f.log);i.debug("> Current git config\n"+JSON.stringify((yield p.listConfig()).all,null,2));yield p.fetch(["--tags","--force"],f.log);i.info("> Switching/creating branch...");yield p.checkout(f.getInput("branch"),undefined,f.log).catch(()=>p.checkoutLocalBranch(f.getInput("branch"),f.log));i.info("> Pulling from remote...");yield p.fetch(undefined,f.log).pull(undefined,undefined,{[f.getInput("pull_strategy")]:null},f.log);i.info("> Re-staging files...");if(f.getInput("add"))yield add({ignoreErrors:true});if(f.getInput("remove"))yield remove({ignoreErrors:true});i.info("> Creating commit...");yield p.commit(f.getInput("message"),undefined,Object.assign({"--author":`"${f.getInput("author_name")} <${f.getInput("author_email")}>"`},f.getInput("signoff")?{"--signoff":null}:{}),(e,r)=>{if(r)f.setOutput("committed","true");return f.log(e,r)});if(f.getInput("tag")){i.info("> Tagging commit...");yield p.tag(f.getInput("tag").split(" "),(e,r)=>{if(r)f.setOutput("tagged","true");return f.log(e,r)}).then(e=>{f.setOutput("tagged","true");return f.log(null,e)}).catch(e=>i.setFailed(e))}else i.info("> No tag info provided.");if(f.getInput("push")){i.info("> Pushing commit to repo...");yield p.push("origin",f.getInput("branch"),{"--set-upstream":null},(e,r)=>{if(r)f.setOutput("pushed","true");return f.log(e,r)});if(f.getInput("tag")){i.info("> Pushing tags to repo...");yield p.pushTags("origin",undefined,(e,r)=>f.log(undefined,e||r)).catch(()=>{i.info("> Tag push failed: deleting remote tag and re-pushing...");return p.push(undefined,undefined,{"--delete":null,origin:null,[f.getInput("tag").split(" ").filter(e=>!e.startsWith("-"))[0]]:null},f.log).pushTags("origin",undefined,f.log)})}else i.info("> No tags to push.")}else i.info("> Not pushing anything.");i.endGroup();i.info("> Task completed.")}else{i.endGroup();i.info("> Working tree clean. Nothing to commit.")}}))().then(logOutputs).catch(e=>{i.endGroup();logOutputs();i.setFailed(e)});function checkInputs(){var e,r,n,o,u,a,c,l,p;return t(this,void 0,void 0,function*(){function setInput(e,r){if(r)return process.env[`INPUT_${e.toUpperCase()}`]=r;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,r){if(!f.getInput(e))setInput(e,r);return f.getInput(e)}const t=process.env.GITHUB_EVENT_PATH,h=t&&require(t),d=(e=process.env.GITHUB_EVENT_NAME)===null||e===void 0?void 0:e.includes("pull_request"),m=((n=(r=h===null||h===void 0?void 0:h.pull_request)===null||r===void 0?void 0:r.head)===null||n===void 0?void 0:n.sha)||process.env.GITHUB_SHA,g=d?(u=(o=h===null||h===void 0?void 0:h.pull_request)===null||o===void 0?void 0:o.head)===null||u===void 0?void 0:u.ref:(a=process.env.GITHUB_REF)===null||a===void 0?void 0:a.substring(11);let v=process.env.GITHUB_TOKEN;if(v){i.debug("Using token from GITHUB_TOKEN env variable.");i.warning("The GITHUB_TOKEN env variable is deprecated and will not be supported in the next major release. Use the 'token' input, "+"which defaults to 'secrets.GITHUB_TOKEN'.")}else{i.debug("Using token from token input.");v=f.getInput("token")}if(!f.getInput("add")&&!f.getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(f.getInput("add")){const e=parseInputArray(f.getInput("add"));if(e.length==1)i.info("Add input parsed as single string, running 1 git add command.");else if(e.length>1)i.info(`Add input parsed as string array, running ${e.length} git add commands.`);else i.setFailed("Add input: array length < 1")}if(f.getInput("remove")){const e=parseInputArray(f.getInput("remove"));if(e.length==1)i.info("Remove input parsed as single string, running 1 git rm command.");else if(e.length>1)i.info(`Remove input parsed as string array, running ${e.length} git rm commands.`);else i.setFailed("Remove input: array length < 1")}let b=(c=h===null||h===void 0?void 0:h.head_commit)===null||c===void 0?void 0:c.author;if(m&&!b){i.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}`,r=v?{Authorization:`Bearer ${v}`}:undefined,n=(l=yield s.default.get(e,{headers:r}).catch(r=>{i.startGroup("Request error:");i.info(`> Request URL: ${e}\b${r}`);i.endGroup();return undefined}))===null||l===void 0?void 0:l.data;b=(p=n===null||n===void 0?void 0:n.commit)===null||p===void 0?void 0:p.author}if(b){setDefault("author_name",b.name);setDefault("author_email",b.email)}if(!f.getInput("author_name")||!f.getInput("author_email")){const e=!t?"event path":d?m?"fetch commit":"find commit sha":!(h===null||h===void 0?void 0:h.head_commit)?"find commit":"find commit author";i.warning(`Unable to fetch author info: couldn't ${e}.`);setDefault("author_name","Add & Commit Action");setDefault("author_email","actions@github.com")}i.info(`> Using '${f.getInput("author_name")} <${f.getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);i.info(`> Using "${f.getInput("message")}" as commit message.`);const C=setDefault("branch",g||"");if(d)i.info(`> Running for a PR, the action will use '${C}' as ref.`);if(f.getInput("signoff")){const e=f.parseBool(f.getInput("signoff"));if(e===undefined)throw new Error(`"${f.getInput("signoff")}" is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`);if(!e)setInput("signoff",undefined);i.debug(`Current signoff option: ${f.getInput("signoff")} (${typeof f.getInput("signoff")})`)}setDefault("push","true");if(f.getInput("push")){const e=f.parseBool(f.getInput("push"));if(e===undefined)throw new Error(`"${f.getInput("push")}" is not a valid value for the 'push' input: only "true" and "false" are allowed.`);if(!e)setInput("push",undefined);i.debug(`Current push option: ${f.getInput("push")} (${typeof f.getInput("push")})`)}})}function add({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=f.getInput("add");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield p.add(n.split(" "),(e,n)=>f.log(r?null:e,n)).catch(t=>{if(r)return;if(t.message.includes("fatal: pathspec")&&t.message.includes("did not match any files")&&e)i.warning(`Add command did not match any file:\n git add ${n}`);else throw t}))}return o})}function remove({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=f.getInput("remove");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield p.rm(n.split(" "),(e,n)=>f.log(r?null:e,n)).catch(t=>{if(r)return;if(t.message.includes("fatal: pathspec")&&t.message.includes("did not match any files"))e&&i.warning(`Remove command did not match any file:\n git rm ${n}`);else throw t}))}return o})}function parseInputArray(e){try{const r=JSON.parse(e);if(r&&Array.isArray(r)&&r.every(e=>typeof e=="string")){i.debug(`Input parsed as JSON array of length ${r.length}`);return r}}catch(e){}try{const r=c.default.safeLoad(e);if(r&&Array.isArray(r)&&r.every(e=>typeof e=="string")){i.debug(`Input parsed as YAML array of length ${r.length}`);return r}}catch(e){}i.debug("Input parsed as single string");return[e]}function logOutputs(){i.startGroup("Outputs");for(const e in f.outputs){i.info(`${e}: ${f.outputs[e]}`)}i.endGroup()}},2629:function(e,r,n){"use strict";var t=this&&this.__createBinding||(Object.create?function(e,r,n,t){if(t===undefined)t=n;Object.defineProperty(e,t,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,t){if(t===undefined)t=n;e[t]=r[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))t(r,e,n);o(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.setOutput=r.parseBool=r.log=r.getInput=r.outputs=void 0;const s=i(n(2186));r.outputs={committed:"false",pushed:"false",tagged:"false"};function getInput(e){return s.getInput(e)}r.getInput=getInput;function log(e,r){if(r)console.log(r);if(e)s.error(e)}r.log=log;function parseBool(e){try{const r=JSON.parse(e);if(typeof r=="boolean")return r}catch(e){}}r.parseBool=parseBool;function setOutput(e,n){s.debug(`Setting output: ${e}=${n}`);r.outputs[e]=n;return s.setOutput(e,n)}r.setOutput=setOutput;for(const e in r.outputs)setOutput(e,r.outputs[e])},3766:module=>{module.exports=eval("require")("./responses")},696:e=>{"use strict";e.exports=JSON.parse('{"_args":[["axios@0.21.0","C:\\\\GitHub\\\\add-and-commit"]],"_from":"axios@0.21.0","_id":"axios@0.21.0","_inBundle":false,"_integrity":"sha512-fmkJBknJKoZwem3/IKSSLpkdNXZeBu5Q7GA/aRsr2btgrptmSCxi2oFjZHqGdK9DoTil9PIHlPIZw2EcRJXRvw==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.0","name":"axios","escapedName":"axios","rawSpec":"0.21.0","saveSpec":null,"fetchSpec":"0.21.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.0.tgz","_spec":"0.21.0","_where":"C:\\\\GitHub\\\\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.10.0"},"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","jsdelivr":"dist/axios.min.js","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","unpkg":"dist/axios.min.js","version":"0.21.0"}')},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var __webpack_module_cache__={};function __webpack_require__(e){if(__webpack_module_cache__[e]){return __webpack_module_cache__[e].exports}var r=__webpack_module_cache__[e]={exports:{}};var n=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}return r.exports}__webpack_require__.ab=__dirname+"/";return __webpack_require__(399)})(); \ No newline at end of file +module.exports=(()=>{var e={7351:function(e,r,n){"use strict";var t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const o=t(n(2087));const i=n(5278);function issueCommand(e,r,n){const t=new Command(e,r,n);process.stdout.write(t.toString()+o.EOL)}r.issueCommand=issueCommand;function issue(e,r=""){issueCommand(e,{},r)}r.issue=issue;const s="::";class Command{constructor(e,r,n){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=n}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const t=this.properties[n];if(t){if(r){r=false}else{e+=","}e+=`${n}=${escapeProperty(t)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const i=n(7351);const s=n(717);const u=n(5278);const a=o(n(2087));const c=o(n(5622));var f;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(f=r.ExitCode||(r.ExitCode={}));function exportVariable(e,r){const n=u.toCommandValue(r);process.env[e]=n;const t=process.env["GITHUB_ENV"]||"";if(t){const r="_GitHubActionsFileCommandDelimeter_";const t=`${e}<<${r}${a.EOL}${n}${a.EOL}${r}`;s.issueCommand("ENV",t)}else{i.issueCommand("set-env",{name:e},n)}}r.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){s.issueCommand("PATH",e)}else{i.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}r.addPath=addPath;function getInput(e,r){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(r&&r.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}return n.trim()}r.getInput=getInput;function setOutput(e,r){i.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){i.issue("echo",e?"on":"off")}r.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=f.Failure;error(e)}r.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}r.isDebug=isDebug;function debug(e){i.issueCommand("debug",{},e)}r.debug=debug;function error(e){i.issue("error",e instanceof Error?e.toString():e)}r.error=error;function warning(e){i.issue("warning",e instanceof Error?e.toString():e)}r.warning=warning;function info(e){process.stdout.write(e+a.EOL)}r.info=info;function startGroup(e){i.issue("group",e)}r.startGroup=startGroup;function endGroup(){i.issue("endgroup")}r.endGroup=endGroup;function group(e,r){return t(this,void 0,void 0,function*(){startGroup(e);let n;try{n=yield r()}finally{endGroup()}return n})}r.group=group;function saveState(e,r){i.issueCommand("save-state",{name:e},r)}r.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}r.getState=getState},717:function(e,r,n){"use strict";var t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(Object.hasOwnProperty.call(e,n))r[n]=e[n];r["default"]=e;return r};Object.defineProperty(r,"__esModule",{value:true});const o=t(n(5747));const i=t(n(2087));const s=n(5278);function issueCommand(e,r){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!o.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}o.appendFileSync(n,`${s.toCommandValue(r)}${i.EOL}`,{encoding:"utf8"})}r.issueCommand=issueCommand},5278:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue},4751:(e,r,n)=>{"use strict";function __export(e){for(var n in e)if(!r.hasOwnProperty(n))r[n]=e[n]}Object.defineProperty(r,"__esModule",{value:true});__export(n(2825))},2825:function(e,r,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const o=n(5747);const i=t(n(8237));const s=i.default("@kwsites/file-exists");function check(e,r,n){s(`checking %s`,e);try{const t=o.statSync(e);if(t.isFile()&&r){s(`[OK] path represents a file`);return true}if(t.isDirectory()&&n){s(`[OK] path represents a directory`);return true}s(`[FAIL] path represents something other than a file or directory`);return false}catch(e){if(e.code==="ENOENT"){s(`[FAIL] path is not accessible: %o`,e);return false}s(`[FATAL] %o`,e);throw e}}function exists(e,n=r.READABLE){return check(e,(n&r.FILE)>0,(n&r.FOLDER)>0)}r.exists=exists;r.FILE=1;r.FOLDER=2;r.READABLE=r.FILE+r.FOLDER},9819:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createDeferred=r.deferred=void 0;function deferred(){let e;let r;let n="pending";const t=new Promise((n,t)=>{e=n;r=t});return{promise:t,done(r){if(n==="pending"){n="resolved";e(r)}},fail(e){if(n==="pending"){n="rejected";r(e)}},get fulfilled(){return n!=="pending"},get status(){return n}}}r.deferred=deferred;r.createDeferred=deferred;r.default=deferred},6545:(e,r,n)=>{e.exports=n(2618)},8104:(e,r,n)=>{"use strict";var t=n(328);var o=n(3211);var i=n(1934);var s=n(646);var u=n(8605);var a=n(7211);var c=n(7707).http;var f=n(7707).https;var l=n(8835);var p=n(8761);var h=n(696);var d=n(5226);var m=n(1516);var g=/https:?/;e.exports=function httpAdapter(e){return new Promise(function dispatchHttpRequest(r,n){var v=function resolve(e){r(e)};var b=function reject(e){n(e)};var O=e.data;var C=e.headers;if(!C["User-Agent"]&&!C["user-agent"]){C["User-Agent"]="axios/"+h.version}if(O&&!t.isStream(O)){if(Buffer.isBuffer(O)){}else if(t.isArrayBuffer(O)){O=Buffer.from(new Uint8Array(O))}else if(t.isString(O)){O=Buffer.from(O,"utf-8")}else{return b(d("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e))}C["Content-Length"]=O.length}var E=undefined;if(e.auth){var y=e.auth.username||"";var S=e.auth.password||"";E=y+":"+S}var T=i(e.baseURL,e.url);var w=l.parse(T);var A=w.protocol||"http:";if(!E&&w.auth){var R=w.auth.split(":");var k=R[0]||"";var D=R[1]||"";E=k+":"+D}if(E){delete C.Authorization}var F=g.test(A);var M=F?e.httpsAgent:e.httpAgent;var P={path:s(w.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:C,agent:M,agents:{http:e.httpAgent,https:e.httpsAgent},auth:E};if(e.socketPath){P.socketPath=e.socketPath}else{P.hostname=w.hostname;P.port=w.port}var j=e.proxy;if(!j&&j!==false){var L=A.slice(0,-1)+"_proxy";var x=process.env[L]||process.env[L.toUpperCase()];if(x){var I=l.parse(x);var B=process.env.no_proxy||process.env.NO_PROXY;var G=true;if(B){var _=B.split(",").map(function trim(e){return e.trim()});G=!_.some(function proxyMatch(e){if(!e){return false}if(e==="*"){return true}if(e[0]==="."&&w.hostname.substr(w.hostname.length-e.length)===e){return true}return w.hostname===e})}if(G){j={host:I.hostname,port:I.port};if(I.auth){var U=I.auth.split(":");j.auth={username:U[0],password:U[1]}}}}}if(j){P.hostname=j.host;P.host=j.host;P.headers.host=w.hostname+(w.port?":"+w.port:"");P.port=j.port;P.path=A+"//"+w.hostname+(w.port?":"+w.port:"")+P.path;if(j.auth){var $=Buffer.from(j.auth.username+":"+j.auth.password,"utf8").toString("base64");P.headers["Proxy-Authorization"]="Basic "+$}}var q;var N=F&&(j?g.test(j.protocol):true);if(e.transport){q=e.transport}else if(e.maxRedirects===0){q=N?a:u}else{if(e.maxRedirects){P.maxRedirects=e.maxRedirects}q=N?f:c}if(e.maxBodyLength>-1){P.maxBodyLength=e.maxBodyLength}var Y=q.request(P,function handleResponse(r){if(Y.aborted)return;var n=r;var i=r.req||Y;if(r.statusCode!==204&&i.method!=="HEAD"&&e.decompress!==false){switch(r.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(p.createUnzip());delete r.headers["content-encoding"];break}}var s={status:r.statusCode,statusText:r.statusMessage,headers:r.headers,config:e,request:i};if(e.responseType==="stream"){s.data=n;o(v,b,s)}else{var u=[];n.on("data",function handleStreamData(r){u.push(r);if(e.maxContentLength>-1&&Buffer.concat(u).length>e.maxContentLength){n.destroy();b(d("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i))}});n.on("error",function handleStreamError(r){if(Y.aborted)return;b(m(r,e,null,i))});n.on("end",function handleStreamEnd(){var r=Buffer.concat(u);if(e.responseType!=="arraybuffer"){r=r.toString(e.responseEncoding);if(!e.responseEncoding||e.responseEncoding==="utf8"){r=t.stripBOM(r)}}s.data=r;o(v,b,s)})}});Y.on("error",function handleRequestError(r){if(Y.aborted&&r.code!=="ERR_FR_TOO_MANY_REDIRECTS")return;b(m(r,e,null,Y))});if(e.timeout){Y.setTimeout(e.timeout,function handleRequestTimeout(){Y.abort();b(d("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",Y))})}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(Y.aborted)return;Y.abort();b(e)})}if(t.isStream(O)){O.on("error",function handleStreamError(r){b(m(r,e,null,Y))}).pipe(Y)}else{Y.end(O)}})}},3454:(e,r,n)=>{"use strict";var t=n(328);var o=n(3211);var i=n(1545);var s=n(646);var u=n(1934);var a=n(6455);var c=n(3608);var f=n(5226);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(r,n){var l=e.data;var p=e.headers;if(t.isFormData(l)){delete p["Content-Type"]}var h=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"";var m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(d+":"+m)}var g=u(e.baseURL,e.url);h.open(e.method.toUpperCase(),s(g,e.params,e.paramsSerializer),true);h.timeout=e.timeout;h.onreadystatechange=function handleLoad(){if(!h||h.readyState!==4){return}if(h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)){return}var t="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null;var i=!e.responseType||e.responseType==="text"?h.responseText:h.response;var s={data:i,status:h.status,statusText:h.statusText,headers:t,config:e,request:h};o(r,n,s);h=null};h.onabort=function handleAbort(){if(!h){return}n(f("Request aborted",e,"ECONNABORTED",h));h=null};h.onerror=function handleError(){n(f("Network Error",e,null,h));h=null};h.ontimeout=function handleTimeout(){var r="timeout of "+e.timeout+"ms exceeded";if(e.timeoutErrorMessage){r=e.timeoutErrorMessage}n(f(r,e,"ECONNABORTED",h));h=null};if(t.isStandardBrowserEnv()){var v=(e.withCredentials||c(g))&&e.xsrfCookieName?i.read(e.xsrfCookieName):undefined;if(v){p[e.xsrfHeaderName]=v}}if("setRequestHeader"in h){t.forEach(p,function setRequestHeader(e,r){if(typeof l==="undefined"&&r.toLowerCase()==="content-type"){delete p[r]}else{h.setRequestHeader(r,e)}})}if(!t.isUndefined(e.withCredentials)){h.withCredentials=!!e.withCredentials}if(e.responseType){try{h.responseType=e.responseType}catch(r){if(e.responseType!=="json"){throw r}}}if(typeof e.onDownloadProgress==="function"){h.addEventListener("progress",e.onDownloadProgress)}if(typeof e.onUploadProgress==="function"&&h.upload){h.upload.addEventListener("progress",e.onUploadProgress)}if(e.cancelToken){e.cancelToken.promise.then(function onCanceled(e){if(!h){return}h.abort();n(e);h=null})}if(!l){l=null}h.send(l)})}},2618:(e,r,n)=>{"use strict";var t=n(328);var o=n(7065);var i=n(8178);var s=n(4831);var u=n(8190);function createInstance(e){var r=new i(e);var n=o(i.prototype.request,r);t.extend(n,i.prototype,r);t.extend(n,r);return n}var a=createInstance(u);a.Axios=i;a.create=function create(e){return createInstance(s(a.defaults,e))};a.Cancel=n(8875);a.CancelToken=n(1587);a.isCancel=n(4057);a.all=function all(e){return Promise.all(e)};a.spread=n(4850);e.exports=a;e.exports.default=a},8875: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},1587:(e,r,n)=>{"use strict";var t=n(8875);function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var r;this.promise=new Promise(function promiseExecutor(e){r=e});var n=this;e(function cancel(e){if(n.reason){return}n.reason=new t(e);r(n.reason)})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason){throw this.reason}};CancelToken.source=function source(){var e;var r=new CancelToken(function executor(r){e=r});return{token:r,cancel:e}};e.exports=CancelToken},4057:e=>{"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},8178:(e,r,n)=>{"use strict";var t=n(328);var o=n(646);var i=n(3214);var s=n(5062);var u=n(4831);function Axios(e){this.defaults=e;this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e){if(typeof e==="string"){e=arguments[1]||{};e.url=arguments[0]}else{e=e||{}}e=u(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 r=[s,undefined];var n=Promise.resolve(e);this.interceptors.request.forEach(function unshiftRequestInterceptors(e){r.unshift(e.fulfilled,e.rejected)});this.interceptors.response.forEach(function pushResponseInterceptors(e){r.push(e.fulfilled,e.rejected)});while(r.length){n=n.then(r.shift(),r.shift())}return n};Axios.prototype.getUri=function getUri(e){e=u(this.defaults,e);return o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};t.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(r,n){return this.request(u(n||{},{method:e,url:r,data:(n||{}).data}))}});t.forEach(["post","put","patch"],function forEachMethodWithData(e){Axios.prototype[e]=function(r,n,t){return this.request(u(t||{},{method:e,url:r,data:n}))}});e.exports=Axios},3214:(e,r,n)=>{"use strict";var t=n(328);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,r){this.handlers.push({fulfilled:e,rejected:r});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){t.forEach(this.handlers,function forEachHandler(r){if(r!==null){e(r)}})};e.exports=InterceptorManager},1934:(e,r,n)=>{"use strict";var t=n(1301);var o=n(7189);e.exports=function buildFullPath(e,r){if(e&&!t(r)){return o(e,r)}return r}},5226:(e,r,n)=>{"use strict";var t=n(1516);e.exports=function createError(e,r,n,o,i){var s=new Error(e);return t(s,r,n,o,i)}},5062:(e,r,n)=>{"use strict";var t=n(328);var o=n(9812);var i=n(4057);var s=n(8190);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=t.merge(e.headers.common||{},e.headers[e.method]||{},e.headers);t.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(r){delete e.headers[r]});var r=e.adapter||s.adapter;return r(e).then(function onAdapterResolution(r){throwIfCancellationRequested(e);r.data=o(r.data,r.headers,e.transformResponse);return r},function onAdapterRejection(r){if(!i(r)){throwIfCancellationRequested(e);if(r&&r.response){r.response.data=o(r.response.data,r.response.headers,e.transformResponse)}}return Promise.reject(r)})}},1516:e=>{"use strict";e.exports=function enhanceError(e,r,n,t,o){e.config=r;if(n){e.code=n}e.request=t;e.response=o;e.isAxiosError=true;e.toJSON=function toJSON(){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}},4831:(e,r,n)=>{"use strict";var t=n(328);e.exports=function mergeConfig(e,r){r=r||{};var n={};var o=["url","method","data"];var i=["headers","auth","proxy","params"];var s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var u=["validateStatus"];function getMergedValue(e,r){if(t.isPlainObject(e)&&t.isPlainObject(r)){return t.merge(e,r)}else if(t.isPlainObject(r)){return t.merge({},r)}else if(t.isArray(r)){return r.slice()}return r}function mergeDeepProperties(o){if(!t.isUndefined(r[o])){n[o]=getMergedValue(e[o],r[o])}else if(!t.isUndefined(e[o])){n[o]=getMergedValue(undefined,e[o])}}t.forEach(o,function valueFromConfig2(e){if(!t.isUndefined(r[e])){n[e]=getMergedValue(undefined,r[e])}});t.forEach(i,mergeDeepProperties);t.forEach(s,function defaultToConfig2(o){if(!t.isUndefined(r[o])){n[o]=getMergedValue(undefined,r[o])}else if(!t.isUndefined(e[o])){n[o]=getMergedValue(undefined,e[o])}});t.forEach(u,function merge(t){if(t in r){n[t]=getMergedValue(e[t],r[t])}else if(t in e){n[t]=getMergedValue(undefined,e[t])}});var a=o.concat(i).concat(s).concat(u);var c=Object.keys(e).concat(Object.keys(r)).filter(function filterAxiosKeys(e){return a.indexOf(e)===-1});t.forEach(c,mergeDeepProperties);return n}},3211:(e,r,n)=>{"use strict";var t=n(5226);e.exports=function settle(e,r,n){var o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{r(t("Request failed with status code "+n.status,n.config,null,n.request,n))}}},9812:(e,r,n)=>{"use strict";var t=n(328);e.exports=function transformData(e,r,n){t.forEach(n,function transform(n){e=n(e,r)});return e}},8190:(e,r,n)=>{"use strict";var t=n(328);var o=n(6240);var i={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,r){if(!t.isUndefined(e)&&t.isUndefined(e["Content-Type"])){e["Content-Type"]=r}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=n(3454)}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=n(8104)}return e}var s={adapter:getDefaultAdapter(),transformRequest:[function transformRequest(e,r){o(r,"Accept");o(r,"Content-Type");if(t.isFormData(e)||t.isArrayBuffer(e)||t.isBuffer(e)||t.isStream(e)||t.isFile(e)||t.isBlob(e)){return e}if(t.isArrayBufferView(e)){return e.buffer}if(t.isURLSearchParams(e)){setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8");return e.toString()}if(t.isObject(e)){setContentTypeIfUnset(r,"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,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}};t.forEach(["delete","get","head"],function forEachMethodNoData(e){s.headers[e]={}});t.forEach(["post","put","patch"],function forEachMethodWithData(e){s.headers[e]=t.merge(i)});e.exports=s},7065:e=>{"use strict";e.exports=function bind(e,r){return function wrap(){var n=new Array(arguments.length);for(var t=0;t{"use strict";var t=n(328);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,r,n){if(!r){return e}var o;if(n){o=n(r)}else if(t.isURLSearchParams(r)){o=r.toString()}else{var i=[];t.forEach(r,function serialize(e,r){if(e===null||typeof e==="undefined"){return}if(t.isArray(e)){r=r+"[]"}else{e=[e]}t.forEach(e,function parseValue(e){if(t.isDate(e)){e=e.toISOString()}else if(t.isObject(e)){e=JSON.stringify(e)}i.push(encode(r)+"="+encode(e))})});o=i.join("&")}if(o){var s=e.indexOf("#");if(s!==-1){e=e.slice(0,s)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}},7189:e=>{"use strict";e.exports=function combineURLs(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}},1545:(e,r,n)=>{"use strict";var t=n(328);e.exports=t.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,r,n,o,i,s){var u=[];u.push(e+"="+encodeURIComponent(r));if(t.isNumber(n)){u.push("expires="+new Date(n).toGMTString())}if(t.isString(o)){u.push("path="+o)}if(t.isString(i)){u.push("domain="+i)}if(s===true){u.push("secure")}document.cookie=u.join("; ")},read:function read(e){var r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[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(){}}}()},1301:e=>{"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},3608:(e,r,n)=>{"use strict";var t=n(328);e.exports=t.isStandardBrowserEnv()?function standardBrowserEnv(){var e=/(msie|trident)/i.test(navigator.userAgent);var r=document.createElement("a");var n;function resolveURL(n){var t=n;if(e){r.setAttribute("href",t);t=r.href}r.setAttribute("href",t);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}n=resolveURL(window.location.href);return function isURLSameOrigin(e){var r=t.isString(e)?resolveURL(e):e;return r.protocol===n.protocol&&r.host===n.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true}}()},6240:(e,r,n)=>{"use strict";var t=n(328);e.exports=function normalizeHeaderName(e,r){t.forEach(e,function processHeader(n,t){if(t!==r&&t.toUpperCase()===r.toUpperCase()){e[r]=n;delete e[t]}})}},6455:(e,r,n)=>{"use strict";var t=n(328);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 r={};var n;var i;var s;if(!e){return r}t.forEach(e.split("\n"),function parser(e){s=e.indexOf(":");n=t.trim(e.substr(0,s)).toLowerCase();i=t.trim(e.substr(s+1));if(n){if(r[n]&&o.indexOf(n)>=0){return}if(n==="set-cookie"){r[n]=(r[n]?r[n]:[]).concat([i])}else{r[n]=r[n]?r[n]+", "+i:i}}});return r}},4850:e=>{"use strict";e.exports=function spread(e){return function wrap(r){return e.apply(null,r)}}},328:(e,r,n)=>{"use strict";var t=n(7065);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 r;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){r=ArrayBuffer.isView(e)}else{r=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return r}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(o.call(e)!=="[object Object]"){return false}var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}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,r){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var n=0,t=e.length;n{r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.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"||window.process.__nwjs)){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+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;r.splice(1,0,n,"color: inherit");let t=0;let o=0;r[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}t++;if(e==="%c"){o=t}});r.splice(o,0,n)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(6243)(r);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,r,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(900);Object.keys(e).forEach(r=>{createDebug[r]=e[r]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let n=0;n{if(r==="%%"){return r}i++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[i];r=o.call(n,t);e.splice(i,1);i--}return r});createDebug.formatArgs.call(n,e);const s=n.log||createDebug.log;s.apply(n,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,r){const n=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let r;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const t=n.length;for(r=0;r"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let n;for(r=0,n=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(8222)}else{e.exports=n(5332)}},5332:(e,r,n)=>{const t=n(3867);const o=n(1669);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.colors=[6,2,3,4,5,1];try{const e=n(9318);if(e&&(e.stderr||e).level>=2){r.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){}r.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,r)=>{const n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(e,r)=>{return r.toUpperCase()});let t=process.env[r];if(/^(yes|on|true|enabled)$/i.test(t)){t=true}else if(/^(no|off|false|disabled)$/i.test(t)){t=false}else if(t==="null"){t=null}else{t=Number(t)}e[n]=t;return e},{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):t.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:n,useColors:t}=this;if(t){const t=this.color;const o="[3"+(t<8?t:"8;5;"+t);const i=` ${o};1m${n} `;r[0]=i+r[0].split("\n").join("\n"+i);r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+n+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(r.inspectOpts);for(let t=0;t{var t;try{t=n(8237)("follow-redirects")}catch(e){t=function(){}}e.exports=t},7707:(e,r,n)=>{var t=n(8835);var o=t.URL;var i=n(8605);var s=n(7211);var u=n(2413).Writable;var a=n(2357);var c=n(1133);var f=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach(function(e){f[e]=function(r,n,t){this._redirectable.emit(e,r,n,t)}});var l=createErrorType("ERR_FR_REDIRECTION_FAILURE","");var p=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var h=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var d=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");function RedirectableRequest(e,r){u.call(this);this._sanitizeOptions(e);this._options=e;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];if(r){this.on("response",r)}var n=this;this._onNativeResponse=function(e){n._processResponse(e)};this._performRequest()}RedirectableRequest.prototype=Object.create(u.prototype);RedirectableRequest.prototype.write=function(e,r,n){if(this._ending){throw new d}if(!(typeof e==="string"||typeof e==="object"&&"length"in e)){throw new TypeError("data should be a string, Buffer or Uint8Array")}if(typeof r==="function"){n=r;r=null}if(e.length===0){if(n){n()}return}if(this._requestBodyLength+e.length<=this._options.maxBodyLength){this._requestBodyLength+=e.length;this._requestBodyBuffers.push({data:e,encoding:r});this._currentRequest.write(e,r,n)}else{this.emit("error",new h);this.abort()}};RedirectableRequest.prototype.end=function(e,r,n){if(typeof e==="function"){n=e;e=r=null}else if(typeof r==="function"){n=r;r=null}if(!e){this._ended=this._ending=true;this._currentRequest.end(null,null,n)}else{var t=this;var o=this._currentRequest;this.write(e,r,function(){t._ended=true;o.end(null,null,n)});this._ending=true}};RedirectableRequest.prototype.setHeader=function(e,r){this._options.headers[e]=r;this._currentRequest.setHeader(e,r)};RedirectableRequest.prototype.removeHeader=function(e){delete this._options.headers[e];this._currentRequest.removeHeader(e)};RedirectableRequest.prototype.setTimeout=function(e,r){if(r){this.once("timeout",r)}if(this.socket){startTimer(this,e)}else{var n=this;this._currentRequest.once("socket",function(){startTimer(n,e)})}this.once("response",clearTimer);this.once("error",clearTimer);return this};function startTimer(e,r){clearTimeout(e._timeout);e._timeout=setTimeout(function(){e.emit("timeout")},r)}function clearTimer(){clearTimeout(this._timeout)}["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){RedirectableRequest.prototype[e]=function(r,n){return this._currentRequest[e](r,n)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(RedirectableRequest.prototype,e,{get:function(){return this._currentRequest[e]}})});RedirectableRequest.prototype._sanitizeOptions=function(e){if(!e.headers){e.headers={}}if(e.host){if(!e.hostname){e.hostname=e.host}delete e.host}if(!e.pathname&&e.path){var r=e.path.indexOf("?");if(r<0){e.pathname=e.path}else{e.pathname=e.path.substring(0,r);e.search=e.path.substring(r)}}};RedirectableRequest.prototype._performRequest=function(){var e=this._options.protocol;var r=this._options.nativeProtocols[e];if(!r){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var o=this._currentRequest=r.request(this._options,this._onNativeResponse);this._currentUrl=t.format(this._options);o._redirectable=this;for(var i in f){if(i){o.on(i,f[i])}}if(this._isRedirect){var s=0;var u=this;var a=this._requestBodyBuffers;(function writeNext(e){if(o===u._currentRequest){if(e){u.emit("error",e)}else if(s=300&&r<400){this._currentRequest.removeAllListeners();this._currentRequest.on("error",noop);this._currentRequest.abort();e.destroy();if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new p);return}if((r===301||r===302)&&this._options.method==="POST"||r===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers)}var o=removeMatchingHeaders(/^host$/i,this._options.headers)||t.parse(this._currentUrl).hostname;var i=t.resolve(this._currentUrl,n);c("redirecting to",i);this._isRedirect=true;var s=t.parse(i);Object.assign(this._options,s);if(s.hostname!==o){removeMatchingHeaders(/^authorization$/i,this._options.headers)}if(typeof this._options.beforeRedirect==="function"){var u={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,u)}catch(e){this.emit("error",e);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var a=new l("Redirected request failed: "+e.message);a.cause=e;this.emit("error",a)}}else{e.responseUrl=this._currentUrl;e.redirects=this._redirects;this.emit("response",e);this._requestBodyBuffers=[]}};function wrap(e){var r={maxRedirects:21,maxBodyLength:10*1024*1024};var n={};Object.keys(e).forEach(function(i){var s=i+":";var u=n[s]=e[i];var f=r[i]=Object.create(u);f.request=function(e,i,u){if(typeof e==="string"){var f=e;try{e=urlToOptions(new o(f))}catch(r){e=t.parse(f)}}else if(o&&e instanceof o){e=urlToOptions(e)}else{u=i;i=e;e={protocol:s}}if(typeof i==="function"){u=i;i=null}i=Object.assign({maxRedirects:r.maxRedirects,maxBodyLength:r.maxBodyLength},e,i);i.nativeProtocols=n;a.equal(i.protocol,s,"protocol mismatch");c("options",i);return new RedirectableRequest(i,u)};f.get=function(e,r,n){var t=f.request(e,r,n);t.end();return t}});return r}function noop(){}function urlToOptions(e){var r={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};if(e.port!==""){r.port=Number(e.port)}return r}function removeMatchingHeaders(e,r){var n;for(var t in r){if(e.test(t)){n=r[t];delete r[t]}}return n}function createErrorType(e,r){function CustomError(e){Error.captureStackTrace(this,this.constructor);this.message=e||r}CustomError.prototype=new Error;CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+e+"]";CustomError.prototype.code=e;return CustomError}e.exports=wrap({http:i,https:s});e.exports.wrap=wrap},1621:e=>{"use strict";e.exports=((e,r)=>{r=r||process.argv;const n=e.startsWith("-")?"":e.length===1?"-":"--";const t=r.indexOf(n+e);const o=r.indexOf("--");return t!==-1&&(o===-1?true:t{"use strict";var t=n(916);e.exports=t},916:(e,r,n)=>{"use strict";var t=n(5190);var o=n(3034);function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(967);e.exports.Schema=n(6514);e.exports.FAILSAFE_SCHEMA=n(6037);e.exports.JSON_SCHEMA=n(1571);e.exports.CORE_SCHEMA=n(2183);e.exports.DEFAULT_SAFE_SCHEMA=n(8949);e.exports.DEFAULT_FULL_SCHEMA=n(6874);e.exports.load=t.load;e.exports.loadAll=t.loadAll;e.exports.safeLoad=t.safeLoad;e.exports.safeLoadAll=t.safeLoadAll;e.exports.dump=o.dump;e.exports.safeDump=o.safeDump;e.exports.YAMLException=n(5199);e.exports.MINIMAL_SCHEMA=n(6037);e.exports.SAFE_SCHEMA=n(8949);e.exports.DEFAULT_SCHEMA=n(6874);e.exports.scan=deprecated("scan");e.exports.parse=deprecated("parse");e.exports.compose=deprecated("compose");e.exports.addConstructor=deprecated("addConstructor")},9136:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,r){var n,t,o,i;if(r){i=Object.keys(r);for(n=0,t=i.length;n{"use strict";var t=n(9136);var o=n(5199);var i=n(6874);var s=n(8949);var u=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var c=9;var f=10;var l=13;var p=32;var h=33;var d=34;var m=35;var g=37;var v=38;var b=39;var O=42;var C=44;var E=45;var y=58;var S=61;var T=62;var w=63;var A=64;var R=91;var k=93;var D=96;var F=123;var M=124;var P=125;var j={};j[0]="\\0";j[7]="\\a";j[8]="\\b";j[9]="\\t";j[10]="\\n";j[11]="\\v";j[12]="\\f";j[13]="\\r";j[27]="\\e";j[34]='\\"';j[92]="\\\\";j[133]="\\N";j[160]="\\_";j[8232]="\\L";j[8233]="\\P";var L=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(e,r){var n,t,o,i,s,u,c;if(r===null)return{};n={};t=Object.keys(r);for(o=0,i=t.length;o0?e.charCodeAt(i-1):null;h=h&&isPlainSafe(s,u)}}else{for(i=0;it&&e[p+1]!==" ";p=i}}else if(!isPrintable(s)){return _}u=i>0?e.charCodeAt(i-1):null;h=h&&isPlainSafe(s,u)}c=c||l&&(i-p-1>t&&e[p+1]!==" ")}if(!a&&!c){return h&&!o(e)?x:I}if(n>9&&needIndentIndicator(e)){return _}return c?G:B}function writeScalar(e,r,n,t){e.dump=function(){if(r.length===0){return"''"}if(!e.noCompatMode&&L.indexOf(r)!==-1){return"'"+r+"'"}var i=e.indent*Math.max(1,n);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var u=t||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,u,e.indent,s,testAmbiguity)){case x:return r;case I:return"'"+r.replace(/'/g,"''")+"'";case B:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,i));case G:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,s),i));case _:return'"'+escapeString(r,s)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var n=needIndentIndicator(e)?String(r):"";var t=e[e.length-1]==="\n";var o=t&&(e[e.length-2]==="\n"||e==="\n");var i=o?"+":t?"":"-";return n+i+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var n=/(\n+)([^\n]*)/g;var t=function(){var t=e.indexOf("\n");t=t!==-1?t:e.length;n.lastIndex=t;return foldLine(e.slice(0,t),r)}();var o=e[0]==="\n"||e[0]===" ";var i;var s;while(s=n.exec(e)){var u=s[1],a=s[2];i=a[0]===" ";t+=u+(!o&&!i&&a!==""?"\n":"")+foldLine(a,r);o=i}return t}function foldLine(e,r){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var t;var o=0,i,s=0,u=0;var a="";while(t=n.exec(e)){u=t.index;if(u-o>r){i=s>o?s:u;a+="\n"+e.slice(o,i);o=i+1}s=u}a+="\n";if(e.length-o>r&&s>o){a+=e.slice(o,s)+"\n"+e.slice(s+1)}else{a+=e.slice(o)}return a.slice(1)}function escapeString(e){var r="";var n,t;var o;for(var i=0;i=55296&&n<=56319){t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){r+=encodeHex((n-55296)*1024+t-56320+65536);i++;continue}}o=j[n];r+=!o&&isPrintable(n)?e[i]:o||encodeHex(n)}return r}function writeFlowSequence(e,r,n){var t="",o=e.tag,i,s;for(i=0,s=n.length;i1024)f+="? ";f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,c,false,false)){continue}f+=e.dump;t+=f}e.tag=o;e.dump="{"+t+"}"}function writeBlockMapping(e,r,n,t){var i="",s=e.tag,u=Object.keys(n),a,c,l,p,h,d;if(e.sortKeys===true){u.sort()}else if(typeof e.sortKeys==="function"){u.sort(e.sortKeys)}else if(e.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(a=0,c=u.length;a1024;if(h){if(e.dump&&f===e.dump.charCodeAt(0)){d+="?"}else{d+="? "}}d+=e.dump;if(h){d+=generateNextLine(e,r)}if(!writeNode(e,r+1,p,true,h)){continue}if(e.dump&&f===e.dump.charCodeAt(0)){d+=":"}else{d+=": "}d+=e.dump;i+=d}e.tag=s;e.dump=i||"{}"}function detectType(e,r,n){var t,i,s,c,f,l;i=n?e.explicitTypes:e.implicitTypes;for(s=0,c=i.length;s tag resolver accepts not "'+l+'" style')}e.dump=t}return true}}return false}function writeNode(e,r,n,t,i,s){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var a=u.call(e.dump);if(t){t=e.flowLevel<0||e.flowLevel>r}var c=a==="[object Object]"||a==="[object Array]",f,l;if(c){f=e.duplicates.indexOf(n);l=f!==-1}if(e.tag!==null&&e.tag!=="?"||l||e.indent!==2&&r>0){i=false}if(l&&e.usedDuplicates[f]){e.dump="*ref_"+f}else{if(c&&l&&!e.usedDuplicates[f]){e.usedDuplicates[f]=true}if(a==="[object Object]"){if(t&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,i);if(l){e.dump="&ref_"+f+e.dump}}else{writeFlowMapping(e,r,e.dump);if(l){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object Array]"){var p=e.noArrayIndent&&r>0?r-1:r;if(t&&e.dump.length!==0){writeBlockSequence(e,p,e.dump,i);if(l){e.dump="&ref_"+f+e.dump}}else{writeFlowSequence(e,p,e.dump);if(l){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,s)}}else{if(e.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+e.dump}}return true}function getDuplicateReferences(e,r){var n=[],t=[],o,i;inspectNode(e,n,t);for(o=0,i=t.length;o{"use strict";function YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){var r=this.name+": ";r+=this.reason||"(unknown reason)";if(!e&&this.mark){r+=" "+this.mark.toString()}return r};e.exports=YAMLException},5190:(e,r,n)=>{"use strict";var t=n(9136);var o=n(5199);var i=n(5426);var s=n(8949);var u=n(6874);var a=Object.prototype.hasOwnProperty;var c=1;var f=2;var l=3;var p=4;var h=1;var d=2;var m=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var v=/[\x85\u2028\u2029]/;var b=/[,\[\]\{\}]/;var O=/^(?:!|!!|![a-z\-]+!)$/i;var C=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var r;if(48<=e&&e<=57){return e-48}r=e|32;if(97<=r&&r<=102){return r-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var E=new Array(256);var y=new Array(256);for(var S=0;S<256;S++){E[S]=simpleEscapeSequence(S)?1:0;y[S]=simpleEscapeSequence(S)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||u;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(e,r){return new o(r,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var T={YAML:function handleYamlDirective(e,r,n){var t,o,i;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}t=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(t===null){throwError(e,"ill-formed argument of the YAML directive")}o=parseInt(t[1],10);i=parseInt(t[2],10);if(o!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=i<2;if(i!==1&&i!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,n){var t,o;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}t=n[0];o=n[1];if(!O.test(t)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,t)){throwError(e,'there is a previously declared suffix for "'+t+'" tag handle')}if(!C.test(o)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}e.tagMap[t]=o}};function captureSegment(e,r,n,t){var o,i,s,u;if(r1){e.result+=t.repeat("\n",r-1)}}function readPlainScalar(e,r,n){var t,o,i,s,u,a,c,f,l=e.kind,p=e.result,h;h=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)){return false}}e.kind="scalar";e.result="";i=s=e.position;u=false;while(h!==0){if(h===58){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)){break}}else if(h===35){t=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(t)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){a=e.line;c=e.lineStart;f=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){u=true;h=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=a;e.lineStart=c;e.lineIndent=f;break}}if(u){captureSegment(e,i,s,false);writeFoldedLines(e,e.line-a);i=s=e.position;u=false}if(!is_WHITE_SPACE(h)){s=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,i,s,false);if(e.result){return true}e.kind=l;e.result=p;return false}function readSingleQuotedScalar(e,r){var n,t,o;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;t=o=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,t,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){t=e.position;e.position++;o=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,t,o,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));t=o=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;o=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var n,t,o,i,s,u;u=e.input.charCodeAt(e.position);if(u!==34){return false}e.kind="scalar";e.result="";e.position++;n=t=e.position;while((u=e.input.charCodeAt(e.position))!==0){if(u===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(u===92){captureSegment(e,n,e.position,true);u=e.input.charCodeAt(++e.position);if(is_EOL(u)){skipSeparationSpace(e,false,r)}else if(u<256&&E[u]){e.result+=y[u];e.position++}else if((s=escapedHexLen(u))>0){o=s;i=0;for(;o>0;o--){u=e.input.charCodeAt(++e.position);if((s=fromHexCode(u))>=0){i=(i<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(i);e.position++}else{throwError(e,"unknown escape sequence")}n=t=e.position}else if(is_EOL(u)){captureSegment(e,n,t,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));n=t=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;t=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var n=true,t,o=e.tag,i,s=e.anchor,u,a,f,l,p,h={},d,m,g,v;v=e.input.charCodeAt(e.position);if(v===91){a=93;p=false;i=[]}else if(v===123){a=125;p=true;i={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=i}v=e.input.charCodeAt(++e.position);while(v!==0){skipSeparationSpace(e,true,r);v=e.input.charCodeAt(e.position);if(v===a){e.position++;e.tag=o;e.anchor=s;e.kind=p?"mapping":"sequence";e.result=i;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}m=d=g=null;f=l=false;if(v===63){u=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(u)){f=l=true;e.position++;skipSeparationSpace(e,true,r)}}t=e.line;composeNode(e,r,c,false,true);m=e.tag;d=e.result;skipSeparationSpace(e,true,r);v=e.input.charCodeAt(e.position);if((l||e.line===t)&&v===58){f=true;v=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,c,false,true);g=e.result}if(p){storeMappingPair(e,i,h,m,d,g)}else if(f){i.push(storeMappingPair(e,null,h,m,d,g))}else{i.push(d)}skipSeparationSpace(e,true,r);v=e.input.charCodeAt(e.position);if(v===44){n=true;v=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var n,o,i=h,s=false,u=false,a=r,c=0,f=false,l,p;p=e.input.charCodeAt(e.position);if(p===124){o=false}else if(p===62){o=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(h===i){i=p===43?m:d}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(p))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!u){a=r+l-1;u=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(p)){do{p=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!u||e.lineIndenta){a=e.lineIndent}if(is_EOL(p)){c++;continue}if(e.lineIndentr)&&a!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(composeNode(e,r,p,true,o)){if(g){d=e.result}else{m=e.result}}if(!g){storeMappingPair(e,c,l,h,d,m,i,s);h=d=m=null}skipSeparationSpace(e,true,-1);b=e.input.charCodeAt(e.position)}if(e.lineIndent>r&&b!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(g=0,v=e.implicitTypes.length;g tag; it should be "'+b.kind+'", not "'+e.kind+'"')}if(!b.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=b.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var r=e.position,n,t,o,i=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}i=true;s=e.input.charCodeAt(++e.position);n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}t=e.input.slice(n,e.position);o=[];if(t.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}o.push(e.input.slice(n,e.position))}if(s!==0)readLineBreak(e);if(a.call(T,t)){T[t](e,t,o)}else{throwWarning(e,'unknown document directive "'+t+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(i){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&v.test(e.input.slice(r,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{"use strict";var t=n(9136);function Mark(e,r,n,t,o){this.name=e;this.buffer=r;this.position=n;this.line=t;this.column=o}Mark.prototype.getSnippet=function getSnippet(e,r){var n,o,i,s,u;if(!this.buffer)return null;e=e||4;r=r||75;n="";o=this.position;while(o>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>r/2-1){n=" ... ";o+=5;break}}i="";s=this.position;while(sr/2-1){i=" ... ";s-=5;break}}u=this.buffer.slice(o,s);return t.repeat(" ",e)+n+u+i+"\n"+t.repeat(" ",e+this.position-o+n.length)+"^"};Mark.prototype.toString=function toString(e){var r,n="";if(this.name){n+='in "'+this.name+'" '}n+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){r=this.getSnippet();if(r){n+=":\n"+r}}return n};e.exports=Mark},6514:(e,r,n)=>{"use strict";var t=n(9136);var o=n(5199);var i=n(967);function compileList(e,r,n){var t=[];e.include.forEach(function(e){n=compileList(e,r,n)});e[r].forEach(function(e){n.forEach(function(r,n){if(r.tag===e.tag&&r.kind===e.kind){t.push(n)}});n.push(e)});return n.filter(function(e,r){return t.indexOf(r)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},r,n;function collectType(r){e[r.kind][r.tag]=e["fallback"][r.tag]=r}for(r=0,n=arguments.length;r{"use strict";var t=n(6514);e.exports=new t({include:[n(1571)]})},6874:(e,r,n)=>{"use strict";var t=n(6514);e.exports=t.DEFAULT=new t({include:[n(8949)],explicit:[n(5914),n(9242),n(7278)]})},8949:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({include:[n(2183)],implicit:[n(3714),n(1393)],explicit:[n(2551),n(6668),n(6039),n(9237)]})},6037:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({explicit:[n(2672),n(5490),n(1173)]})},1571:(e,r,n)=>{"use strict";var t=n(6514);e.exports=new t({include:[n(6037)],implicit:[n(2671),n(4675),n(9963),n(5564)]})},967:(e,r,n)=>{"use strict";var t=n(5199);var o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var i=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach(function(n){e[n].forEach(function(e){r[String(e)]=n})})}return r}function Type(e,r){r=r||{};Object.keys(r).forEach(function(r){if(o.indexOf(r)===-1){throw new t('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(e){return e};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.defaultStyle=r["defaultStyle"]||null;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(i.indexOf(this.kind)===-1){throw new t('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},2551:(e,r,n)=>{"use strict";var t;try{var o=require;t=o("buffer").Buffer}catch(e){}var i=n(967);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,n,t=0,o=e.length,i=s;for(n=0;n64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){var r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,u=s,a=0,c=[];for(r=0;r>16&255);c.push(a>>8&255);c.push(a&255)}a=a<<6|u.indexOf(o.charAt(r))}n=i%4*6;if(n===0){c.push(a>>16&255);c.push(a>>8&255);c.push(a&255)}else if(n===18){c.push(a>>10&255);c.push(a>>2&255)}else if(n===12){c.push(a>>4&255)}if(t){return t.from?t.from(c):new t(c)}return c}function representYamlBinary(e){var r="",n=0,t,o,i=e.length,u=s;for(t=0;t>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}n=(n<<8)+e[t]}o=i%3;if(o===0){r+=u[n>>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}else if(o===2){r+=u[n>>10&63];r+=u[n>>4&63];r+=u[n<<2&63];r+=u[64]}else if(o===1){r+=u[n>>2&63];r+=u[n<<4&63];r+=u[64];r+=u[64]}return r}function isBinary(e){return t&&t.isBuffer(e)}e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4675:(e,r,n)=>{"use strict";var t=n(967);function resolveYamlBoolean(e){if(e===null)return false;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},5564:(e,r,n)=>{"use strict";var t=n(9136);var o=n(967);var i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!i.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,n,t,o;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;o=[];if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}else if(r.indexOf(":")>=0){r.split(":").forEach(function(e){o.unshift(parseFloat(e,10))});r=0;t=1;o.forEach(function(e){r+=e*t;t*=60});return n*r}return n*parseFloat(r,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var n;if(isNaN(e)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(t.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||t.isNegativeZero(e))}e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},9963:(e,r,n)=>{"use strict";var t=n(9136);var o=n(967);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var r=e.length,n=0,t=false,o;if(!r)return false;o=e[n];if(o==="-"||o==="+"){o=e[++n]}if(o==="0"){if(n+1===r)return true;o=e[++n];if(o==="b"){n++;for(;n=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},7278:(e,r,n)=>{"use strict";var t;try{var o=require;t=o("esprima")}catch(e){if(typeof window!=="undefined")t=window.esprima}var i=n(967);function resolveJavascriptFunction(e){if(e===null)return false;try{var r="("+e+")",n=t.parse(r,{range:true});if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(e){return false}}function constructJavascriptFunction(e){var r="("+e+")",n=t.parse(r,{range:true}),o=[],i;if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}n.body[0].expression.params.forEach(function(e){o.push(e.name)});i=n.body[0].expression.body.range;if(n.body[0].expression.body.type==="BlockStatement"){return new Function(o,r.slice(i[0]+1,i[1]-1))}return new Function(o,"return "+r.slice(i[0],i[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},9242:(e,r,n)=>{"use strict";var t=n(967);function resolveJavascriptRegExp(e){if(e===null)return false;if(e.length===0)return false;var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];if(t.length>3)return false;if(r[r.length-t.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];r=r.slice(1,r.length-t.length-1)}return new RegExp(r,t)}function representJavascriptRegExp(e){var r="/"+e.source+"/";if(e.global)r+="g";if(e.multiline)r+="m";if(e.ignoreCase)r+="i";return r}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new t("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},5914:(e,r,n)=>{"use strict";var t=n(967);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(e){return typeof e==="undefined"}e.exports=new t("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},1173:(e,r,n)=>{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},1393:(e,r,n)=>{"use strict";var t=n(967);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},2671:(e,r,n)=>{"use strict";var t=n(967);function resolveYamlNull(e){if(e===null)return true;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},6668:(e,r,n)=>{"use strict";var t=n(967);var o=Object.prototype.hasOwnProperty;var i=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],n,t,s,u,a,c=e;for(n=0,t=c.length;n{"use strict";var t=n(967);var o=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,n,t,i,s,u=e;s=new Array(u.length);for(r=0,n=u.length;r{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9237:(e,r,n)=>{"use strict";var t=n(967);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var r,n=e;for(r in n){if(o.call(n,r)){if(n[r]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},2672:(e,r,n)=>{"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},3714:(e,r,n)=>{"use strict";var t=n(967);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(o.exec(e)!==null)return true;if(i.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,n,t,s,u,a,c,f=0,l=null,p,h,d;r=o.exec(e);if(r===null)r=i.exec(e);if(r===null)throw new Error("Date resolve error");n=+r[1];t=+r[2]-1;s=+r[3];if(!r[4]){return new Date(Date.UTC(n,t,s))}u=+r[4];a=+r[5];c=+r[6];if(r[7]){f=r[7].slice(0,3);while(f.length<3){f+="0"}f=+f}if(r[9]){p=+r[10];h=+(r[11]||0);l=(p*60+h)*6e4;if(r[9]==="-")l=-l}d=new Date(Date.UTC(n,t,s,u,a,c,f));if(l)d.setTime(d.getTime()-l);return d}function representYamlTimestamp(e){return e.toISOString()}e.exports=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},900:e=>{var r=1e3;var n=r*60;var t=n*60;var o=t*24;var i=o*7;var s=o*365.25;e.exports=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return r.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 u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!u){return}var a=parseFloat(u[1]);var c=(u[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*t;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){var i=Math.abs(e);if(i>=o){return Math.round(e/o)+"d"}if(i>=t){return Math.round(e/t)+"h"}if(i>=n){return Math.round(e/n)+"m"}if(i>=r){return Math.round(e/r)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=o){return plural(e,i,o,"day")}if(i>=t){return plural(e,i,t,"hour")}if(i>=n){return plural(e,i,n,"minute")}if(i>=r){return plural(e,i,r,"second")}return e+" ms"}function plural(e,r,n,t){var o=r>=n*1.5;return Math.round(e/n)+" "+t+(o?"s":"")}},254:(e,r,n)=>{r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();r.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"||window.process.__nwjs)){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+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;r.splice(1,0,n,"color: inherit");let t=0;let o=0;r[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}t++;if(e==="%c"){o=t}});r.splice(o,0,n)}r.log=console.debug||console.log||(()=>{});function save(e){try{if(e){r.storage.setItem("debug",e)}else{r.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=r.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(8867)(r);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8867:(e,r,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(900);createDebug.destroy=destroy;Object.keys(e).forEach(r=>{createDebug[r]=e[r]});createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let r=0;for(let n=0;n{if(r==="%%"){return"%"}i++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[i];r=o.call(n,t);e.splice(i,1);i--}return r});createDebug.formatArgs.call(n,e);const s=n.log||createDebug.log;s.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>n===null?createDebug.enabled(e):n,set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,r){const n=createDebug(this.namespace+(typeof r==="undefined"?":":r)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let r;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const t=n.length;for(r=0;r"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let r;let n;for(r=0,n=createDebug.skips.length;r{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(254)}else{e.exports=n(675)}},675:(e,r,n)=>{const t=n(3867);const o=n(1669);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.destroy=o.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");r.colors=[6,2,3,4,5,1];try{const e=n(9318);if(e&&(e.stderr||e).level>=2){r.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){}r.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,r)=>{const n=r.substring(6).toLowerCase().replace(/_([a-z])/g,(e,r)=>{return r.toUpperCase()});let t=process.env[r];if(/^(yes|on|true|enabled)$/i.test(t)){t=true}else if(/^(no|off|false|disabled)$/i.test(t)){t=false}else if(t==="null"){t=null}else{t=Number(t)}e[n]=t;return e},{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):t.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:n,useColors:t}=this;if(t){const t=this.color;const o="[3"+(t<8?t:"8;5;"+t);const i=` ${o};1m${n} `;r[0]=i+r[0].split("\n").join("\n"+i);r.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{r[0]=getDate()+n+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(r.inspectOpts);for(let t=0;te.trim()).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return o.inspect(e,this.inspectOpts)}},1949:(e,r,n)=>{const t=n(4966);const{GitConstructError:o}=n(4732);const{createInstanceConfig:i,folderExists:s}=n(847);const u=Object.create(null);for(let e=n(4732),r=Object.keys(e),t=0;t{const{GitExecutor:t}=n(4701);const{Scheduler:o}=n(3421);const{GitLogger:i}=n(7178);const{adhocExecTask:s,configurationErrorTask:u}=n(2815);const{NOOP:a,appendTaskOptions:c,asArray:f,filterArray:l,filterPrimitives:p,filterString:h,filterStringOrStringArray:d,filterType:m,folderExists:g,getTrailingOptions:v,trailingFunctionArgument:b,trailingOptionsArgument:O}=n(847);const{branchTask:C,branchLocalTask:E,deleteBranchesTask:y,deleteBranchTask:S}=n(17);const{taskCallback:T}=n(8850);const{checkIsRepoTask:w}=n(221);const{cloneTask:A,cloneMirrorTask:R}=n(3173);const{addConfigTask:k,listConfigTask:D}=n(7597);const{cleanWithOptionsTask:F,isCleanOptionsArray:M}=n(4386);const{commitTask:P}=n(5494);const{diffSummaryTask:j}=n(9241);const{fetchTask:L}=n(8823);const{hashObjectTask:x}=n(8199);const{initTask:I}=n(6016);const{logTask:B,parseLogOptions:G}=n(8627);const{mergeTask:_}=n(8829);const{moveTask:U}=n(6520);const{pullTask:$}=n(4636);const{pushTagsTask:q,pushTask:N}=n(1435);const{addRemoteTask:Y,getRemotesTask:W,listRemotesTask:H,remoteTask:z,removeRemoteTask:V}=n(9866);const{getResetMode:J,resetTask:Z}=n(2377);const{stashListTask:Q}=n(810);const{statusTask:X}=n(9197);const{addSubModuleTask:K,initSubModuleTask:ee,subModuleTask:re,updateSubModuleTask:ne}=n(8772);const{addAnnotatedTagTask:te,addTagTask:oe,tagListTask:ie}=n(8540);const{straightThroughStringTask:se}=n(2815);const{parseCheckIgnore:ue}=n(9926);const ae=Symbol("ChainedExecutor");function Git(e){this._executor=new t(e.binary,e.baseDir,new o(e.maxConcurrentProcesses));this._logger=new i}Git.prototype._executor=null;Git.prototype._logger=null;Git.prototype.customBinary=function(e){this._executor.binary=e;return this};Git.prototype.env=function(e,r){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=r}return this};Git.prototype.cwd=function(e){const r=typeof e!=="string"?u("Git.cwd: workingDirectory must be supplied as a string"):s(()=>{if(!g(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e});return this._runTask(r,b(arguments)||a)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,r){return this._runTask(I(e===true,this._executor.cwd,v(arguments)),b(arguments))};Git.prototype.status=function(){return this._runTask(X(v(arguments)),b(arguments))};Git.prototype.stashList=function(e){return this._runTask(Q(O(arguments)||{},l(e)&&e||[]),b(arguments))};Git.prototype.stash=function(e,r){return this._runTask(se(["stash",...v(arguments)]),b(arguments))};function createCloneTask(e,r,n,t){if(typeof n!=="string"){return u(`git.${e}() requires a string 'repoPath'`)}return r(n,m(t,h),v(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",A,...arguments),b(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",R,...arguments),b(arguments))};Git.prototype.mv=function(e,r){return this._runTask(U(e,r),b(arguments))};Git.prototype.checkoutLatestTag=function(e){var r=this;return this.pull(function(){r.tags(function(n,t){r.checkout(t.latest,e)})})};Git.prototype.add=function(e){return this._run(["add"].concat(e),b(arguments))};Git.prototype.commit=function(e,r,n,t){const o=b(arguments);const i=[];if(d(e)){i.push(...f(e))}else{console.warn("simple-git deprecation notice: git.commit: requires the commit message to be supplied as a string/string[], this will be an error in version 3")}return this._runTask(P(i,f(m(r,d,[])),[...m(n,l,[]),...v(arguments,0,true)]),o)};Git.prototype.pull=function(e,r,n,t){return this._runTask($(m(e,h),m(r,h),v(arguments)),b(arguments))};Git.prototype.fetch=function(e,r){return this._runTask(L(m(e,h),m(r,h),v(arguments)),b(arguments))};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,r){return this._runTask(ie(v(arguments)),b(arguments))};Git.prototype.rebase=function(){return this._run(["rebase"].concat(v(arguments)),b(arguments))};Git.prototype.reset=function(e,r){return this._runTask(Z(J(e),v(arguments)),b(arguments))};Git.prototype.revert=function(e){const r=b(arguments);if(typeof e!=="string"){return this._runTask(u("Commit must be a string"),r)}return this._run(["revert",...v(arguments,0,true),e],r)};Git.prototype.addTag=function(e,r){const n=typeof e==="string"?oe(e):u("Git.addTag requires a tag name");return this._runTask(n,b(arguments))};Git.prototype.addAnnotatedTag=function(e,r,n){return this._runTask(te(e,r),b(arguments))};Git.prototype.checkout=function(e,r){const n=["checkout",...v(arguments,true)];return this._runTask(se(n),b(arguments))};Git.prototype.checkoutBranch=function(e,r,n){return this.checkout(["-b",e,r],b(arguments))};Git.prototype.checkoutLocalBranch=function(e,r){return this.checkout(["-b",e],b(arguments))};Git.prototype.deleteLocalBranch=function(e,r,n){return this._runTask(S(e,typeof r==="boolean"?r:false),b(arguments))};Git.prototype.deleteLocalBranches=function(e,r,n){return this._runTask(y(e,typeof r==="boolean"?r:false),b(arguments))};Git.prototype.branch=function(e,r){return this._runTask(C(v(arguments)),b(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(E(),b(arguments))};Git.prototype.addConfig=function(e,r,n,t){return this._runTask(k(e,r,typeof n==="boolean"?n:false),b(arguments))};Git.prototype.listConfig=function(){return this._runTask(D(),b(arguments))};Git.prototype.raw=function(e){const r=!Array.isArray(e);const n=[].slice.call(r?arguments:e,0);for(let e=0;e{const{gitP:t}=n(941);const{esModuleFactory:o,gitInstanceFactory:i,gitExportFactory:s}=n(1949);e.exports=o(s(i,{gitP:t}))},4732:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.TaskConfigurationError=r.GitResponseError=r.GitError=r.GitConstructError=r.ResetMode=r.CheckRepoActions=r.CleanOptions=void 0;var t=n(4386);Object.defineProperty(r,"CleanOptions",{enumerable:true,get:function(){return t.CleanOptions}});var o=n(221);Object.defineProperty(r,"CheckRepoActions",{enumerable:true,get:function(){return o.CheckRepoActions}});var i=n(2377);Object.defineProperty(r,"ResetMode",{enumerable:true,get:function(){return i.ResetMode}});var s=n(1876);Object.defineProperty(r,"GitConstructError",{enumerable:true,get:function(){return s.GitConstructError}});var u=n(5757);Object.defineProperty(r,"GitError",{enumerable:true,get:function(){return u.GitError}});var a=n(5131);Object.defineProperty(r,"GitResponseError",{enumerable:true,get:function(){return a.GitResponseError}});var c=n(740);Object.defineProperty(r,"TaskConfigurationError",{enumerable:true,get:function(){return c.TaskConfigurationError}})},1876:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitConstructError=void 0;const t=n(5757);class GitConstructError extends t.GitError{constructor(e,r){super(undefined,r);this.config=e}}r.GitConstructError=GitConstructError},5757:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitError=void 0;class GitError extends Error{constructor(e,r){super(r);this.task=e;Object.setPrototypeOf(this,new.target.prototype)}}r.GitError=GitError},5131:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitResponseError=void 0;const t=n(5757);class GitResponseError extends t.GitError{constructor(e,r){super(undefined,r||String(e));this.git=e}}r.GitResponseError=GitResponseError},740:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.TaskConfigurationError=void 0;const t=n(5757);class TaskConfigurationError extends t.GitError{constructor(e){super(undefined,e)}}r.TaskConfigurationError=TaskConfigurationError},7178:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitLogger=r.createLogger=r.log=void 0;const t=n(2179);const o=n(847);t.default.formatters.L=(e=>String(o.filterHasLength(e)?e.length:"-"));t.default.formatters.B=(e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return o.objectToString(e)});r.log=t.default("simple-git");function prefixedLogger(e,r,n){if(!r||!String(r).replace(/\s*/,"")){return!n?e:(r,...t)=>{e(r,...t);n(r,...t)}}return(t,...o)=>{e(`%s ${t}`,r,...o);if(n){n(t,...o)}}}function childLoggerName(e,r,{namespace:n}){if(typeof e==="string"){return e}const t=r&&r.namespace||"";if(t.startsWith(n)){return t.substr(n.length+1)}return t||n}function createLogger(e,n,t,i=r.log){const s=e&&`[${e}]`||"";const u=[];const a=typeof n==="string"?i.extend(n):n;const c=childLoggerName(o.filterType(n,o.filterString),a,i);return step(t);function destroy(){u.forEach(e=>e.destroy());u.length=0}function child(r){return o.append(u,createLogger(e,a&&a.extend(r)||r))}function sibling(r,n){return o.append(u,createLogger(e,c.replace(/^[^:]+/,r),n,i))}function step(r){const n=r&&`[${r}]`||"";const t=a&&prefixedLogger(a,n)||o.NOOP;const u=prefixedLogger(i,`${s} ${n}`,t);return Object.assign(a?t:u,{key:c,label:e,child:child,sibling:sibling,debug:t,info:u,step:step,destroy:destroy})}}r.createLogger=createLogger;class GitLogger{constructor(e=r.log){this._out=e;this.error=prefixedLogger(e,"[ERROR]");this.warn=prefixedLogger(e,"[WARN]")}silent(e=false){if(e!==this._out.enabled){return}const{namespace:r}=this._out;const n=(process.env.DEBUG||"").split(",").filter(e=>!!e);const i=n.includes(r);const s=n.includes(`-${r}`);if(!e){if(s){o.remove(n,`-${r}`)}else{n.push(r)}}else{if(i){o.remove(n,r)}else{n.push(`-${r}`)}}t.default.enable(n.join(","))}}r.GitLogger=GitLogger},6086:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.hasBranchDeletionError=r.parseBranchDeletions=void 0;const t=n(3755);const o=n(847);const i=/(\S+)\s+\(\S+\s([^)]+)\)/;const s=/^error[^']+'([^']+)'/m;const u=[new o.LineParser(i,(e,[r,n])=>{const o=t.branchDeletionSuccess(r,n);e.all.push(o);e.branches[r]=o}),new o.LineParser(s,(e,[r])=>{const n=t.branchDeletionFailure(r);e.errors.push(n);e.all.push(n);e.branches[r]=n})];const a=e=>{return o.parseStringResponse(new t.BranchDeletionBatch,u,e)};r.parseBranchDeletions=a;function hasBranchDeletionError(e,r){return r===o.ExitCodes.ERROR&&s.test(e)}r.hasBranchDeletionError=hasBranchDeletionError},9264:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseBranchSummary=void 0;const t=n(4446);const o=n(847);const i=[new o.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[r,n,t,o])=>{e.push(!!r,true,n,t,o)}),new o.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/,(e,[r,n,t,o])=>{e.push(!!r,false,n,t,o)})];function parseBranchSummary(e){return o.parseStringResponse(new t.BranchSummaryResult,i,e)}r.parseBranchSummary=parseBranchSummary},3026:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseCommitResult=void 0;const t=n(847);const o=[new t.LineParser(/\[([^\s]+) ([^\]]+)/,(e,[r,n])=>{e.branch=r;e.commit=n}),new t.LineParser(/\s*Author:\s(.+)/i,(e,[r])=>{const n=r.split("<");const t=n.pop();if(!t||!t.includes("@")){return}e.author={email:t.substr(0,t.length-1),name:n.join("<").trim()}}),new t.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[r,n,t])=>{e.summary.changes=parseInt(r,10)||0;e.summary.insertions=parseInt(n,10)||0;e.summary.deletions=parseInt(t,10)||0}),new t.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[r,n,t])=>{e.summary.changes=parseInt(r,10)||0;const o=parseInt(n,10)||0;if(t==="-"){e.summary.deletions=o}else if(t==="+"){e.summary.insertions=o}})];function parseCommitResult(e){const r={author:null,branch:"",commit:"",summary:{changes:0,insertions:0,deletions:0}};return t.parseStringResponse(r,o,e)}r.parseCommitResult=parseCommitResult},2024:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseDiffResult=void 0;const t=n(4781);function parseDiffResult(e){const r=e.trim().split("\n");const n=new t.DiffSummary;readSummaryLine(n,r.pop());for(let e=0,t=r.length;e ([0-9.]+) ([a-z]+)$/);if(n){r.push({file:n[1].trim(),before:+n[2],after:+n[3],binary:true});return true}return false}},6254:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseFetchResult=void 0;const t=n(847);const o=[new t.LineParser(/From (.+)$/,(e,[r])=>{e.remote=r}),new t.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[r,n])=>{e.branches.push({name:r,tracking:n})}),new t.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[r,n])=>{e.tags.push({name:r,tracking:n})})];function parseFetchResult(e,r){const n={raw:e,remote:null,branches:[],tags:[]};return t.parseStringResponse(n,o,e,r)}r.parseFetchResult=parseFetchResult},9729:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createListLogSummaryParser=r.SPLITTER=r.COMMIT_BOUNDARY=r.START_BOUNDARY=void 0;const t=n(847);const o=n(2024);r.START_BOUNDARY="òòòòòò ";r.COMMIT_BOUNDARY=" òò";r.SPLITTER=" ò ";const i=["hash","date","message","refs","author_name","author_email"];function lineBuilder(e,r){return r.reduce((r,n,t)=>{r[n]=e[t]||"";return r},Object.create({diff:null}))}function createListLogSummaryParser(e=r.SPLITTER,n=i){return function(i){const s=t.toLinesWithContent(i,true,r.START_BOUNDARY).map(function(t){const i=t.trim().split(r.COMMIT_BOUNDARY);const s=lineBuilder(i[0].trim().split(e),n);if(i.length>1&&!!i[1].trim()){s.diff=o.parseDiffResult(i[1])}return s});return{all:s,latest:s.length&&s[0]||null,total:s.length}}}r.createListLogSummaryParser=createListLogSummaryParser},6412:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseMergeDetail=r.parseMergeResult=void 0;const t=n(1651);const o=n(847);const i=n(5658);const s=[new o.LineParser(/^Auto-merging\s+(.+)$/,(e,[r])=>{e.merges.push(r)}),new o.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[r,n])=>{e.conflicts.push(new t.MergeSummaryConflict(r,n))}),new o.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[r,n,o])=>{e.conflicts.push(new t.MergeSummaryConflict(r,n,{deleteRef:o}))}),new o.LineParser(/^CONFLICT\s+\((.+)\):/,(e,[r])=>{e.conflicts.push(new t.MergeSummaryConflict(r,null))}),new o.LineParser(/^Automatic merge failed;\s+(.+)$/,(e,[r])=>{e.result=r})];const u=(e,n)=>{return Object.assign(r.parseMergeDetail(e,n),i.parsePullResult(e,n))};r.parseMergeResult=u;const a=e=>{return o.parseStringResponse(new t.MergeSummaryDetail,s,e)};r.parseMergeDetail=a},7444:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseMoveResult=void 0;const t=n(847);const o=[new t.LineParser(/^Renaming (.+) to (.+)$/,(e,[r,n])=>{e.moves.push({from:r,to:n})})];function parseMoveResult(e){return t.parseStringResponse({moves:[]},o,e)}r.parseMoveResult=parseMoveResult},5658:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parsePullResult=r.parsePullDetail=void 0;const t=n(3567);const o=n(847);const i=n(2661);const s=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const u=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const a=/^(create|delete) mode \d+ (.+)/;const c=[new o.LineParser(s,(e,[r,n,t])=>{e.files.push(r);if(n){e.insertions[r]=n.length}if(t){e.deletions[r]=t.length}}),new o.LineParser(u,(e,[r,,n,,t])=>{if(n!==undefined||t!==undefined){e.summary.changes=+r||0;e.summary.insertions=+n||0;e.summary.deletions=+t||0;return true}return false}),new o.LineParser(a,(e,[r,n])=>{o.append(e.files,n);o.append(r==="create"?e.created:e.deleted,n)})];const f=(e,r)=>{return o.parseStringResponse(new t.PullSummary,c,e,r)};r.parsePullDetail=f;const l=(e,n)=>{return Object.assign(new t.PullSummary,r.parsePullDetail(e,n),i.parseRemoteMessages(e,n))};r.parsePullResult=l},8530:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parsePushDetail=r.parsePushResult=void 0;const t=n(847);const o=n(2661);function pushResultPushedItem(e,r,n){const t=n.includes("deleted");const o=n.includes("tag")||/^refs\/tags/.test(e);const i=!n.includes("new");return{deleted:t,tag:o,branch:!o,new:!i,alreadyUpdated:i,local:e,remote:r}}const i=[new t.LineParser(/^Pushing to (.+)$/,(e,[r])=>{e.repo=r}),new t.LineParser(/^updating local tracking ref '(.+)'/,(e,[r])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:r})}),new t.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[r,n,t])=>{e.pushed.push(pushResultPushedItem(r,n,t))}),new t.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[r,n,t])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:r,remote:n,remoteName:t})}),new t.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[r,n,t,o])=>{e.update={head:{local:r,remote:n},hash:{from:t,to:o}}})];const s=(e,n)=>{const t=r.parsePushDetail(e,n);const i=o.parseRemoteMessages(e,n);return Object.assign(Object.assign({},t),i)};r.parsePushResult=s;const u=(e,r)=>{return t.parseStringResponse({pushed:[]},i,e,r)};r.parsePushDetail=u},2661:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.RemoteMessageSummary=r.parseRemoteMessages=void 0;const t=n(847);const o=n(3565);const i=[new t.RemoteLineParser(/^remote:\s*(.+)$/,(e,[r])=>{e.remoteMessages.all.push(r.trim());return false}),...o.remoteMessagesObjectParsers,new t.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[r])=>{e.remoteMessages.pullRequestUrl=r}),new t.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[r,n,o])=>{e.remoteMessages.vulnerabilities={count:t.asNumber(r),summary:n,url:o}})];function parseRemoteMessages(e,r){return t.parseStringResponse({remoteMessages:new RemoteMessageSummary},i,r)}r.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}r.RemoteMessageSummary=RemoteMessageSummary},3565:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.remoteMessagesObjectParsers=void 0;const t=n(847);function objectEnumerationResult(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function asObjectCount(e){const r=/^\s*(\d+)/.exec(e);const n=/delta (\d+)/i.exec(e);return{count:t.asNumber(r&&r[1]||"0"),delta:t.asNumber(n&&n[1]||"0")}}r.remoteMessagesObjectParsers=[new t.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[r,n])=>{const o=r.toLowerCase();const i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[o]:t.asNumber(n)})}),new t.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[r,n])=>{const o=r.toLowerCase();const i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[o]:t.asNumber(n)})}),new t.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[r,n,o])=>{const i=objectEnumerationResult(e.remoteMessages);i.total=asObjectCount(r);i.reused=asObjectCount(n);i.packReused=t.asNumber(o)})]},3755:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isSingleBranchDeleteFailure=r.branchDeletionFailure=r.branchDeletionSuccess=r.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}r.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,r){return{branch:e,hash:r,success:true}}r.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}r.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}r.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,r,n,t,o){if(e){this.detached=r;this.current=n}this.all.push(n);this.branches[n]={current:e,name:n,commit:t,label:o}}}r.BranchSummaryResult=BranchSummaryResult},9926:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseCheckIgnore=void 0;const n=e=>{return e.split(/\n/g).map(e=>e.trim()).filter(e=>!!e)};r.parseCheckIgnore=n},5689:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.cleanSummaryParser=r.CleanResponse=void 0;const t=n(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}r.CleanResponse=CleanResponse;const o=/^[a-z]+\s*/i;const i=/^[a-z]+\s+[a-z]+\s*/i;const s=/\/$/;function cleanSummaryParser(e,r){const n=new CleanResponse(e);const u=e?i:o;t.toLinesWithContent(r).forEach(e=>{const r=e.replace(u,"");n.paths.push(r);(s.test(r)?n.folders:n.files).push(r)});return n}r.cleanSummaryParser=cleanSummaryParser},7219:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.configListParser=r.ConfigList=void 0;const t=n(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce((e,r)=>{return Object.assign(e,this.values[r])},{})}return this._all}addFile(e){if(!(e in this.values)){const r=t.last(this.files);this.values[e]=r?Object.create(this.values[r]):{};this.files.push(e)}return this.values[e]}addValue(e,r,n){const t=this.addFile(e);if(!t.hasOwnProperty(r)){t[r]=n}else if(Array.isArray(t[r])){t[r].push(n)}else{t[r]=[t[r],n]}this._all=undefined}}r.ConfigList=ConfigList;function configListParser(e){const r=new ConfigList;const n=e.split("\0");for(let e=0,o=n.length-1;e{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}r.DiffSummary=DiffSummary},860:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.FileStatusSummary=r.fromPathRegex=void 0;r.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,n,t){this.path=e;this.index=n;this.working_dir=t;if("R"===n+t){const n=r.fromPathRegex.exec(e)||[null,e,e];this.from=n[1]||"";this.path=n[2]||""}}}r.FileStatusSummary=FileStatusSummary},9999:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseGetRemotesVerbose=r.parseGetRemotes=void 0;const t=n(847);function parseGetRemotes(e){const r={};forEach(e,([e])=>r[e]={name:e});return Object.values(r)}r.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const r={};forEach(e,([e,n,t])=>{if(!r.hasOwnProperty(e)){r[e]={name:e,refs:{fetch:"",push:""}}}if(t&&n){r[e].refs[t.replace(/[^a-z]/g,"")]=n}});return Object.values(r)}r.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,r){t.forEachLineWithContent(e,e=>r(e.split(/\s+/)))}},8690:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseInit=r.InitSummary=void 0;class InitSummary{constructor(e,r,n,t){this.bare=e;this.path=r;this.existing=n;this.gitDir=t}}r.InitSummary=InitSummary;const n=/^Init.+ repository in (.+)$/;const t=/^Rein.+ in (.+)$/;function parseInit(e,r,o){const i=String(o).trim();let s;if(s=n.exec(i)){return new InitSummary(e,r,false,s[1])}if(s=t.exec(i)){return new InitSummary(e,r,true,s[1])}let u="";const a=i.split(" ");while(a.length){const e=a.shift();if(e==="in"){u=a.join(" ");break}}return new InitSummary(e,r,/^re/i.test(i),u)}r.parseInit=parseInit},1651:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.MergeSummaryDetail=r.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(e,r=null,n){this.reason=e;this.file=r;this.meta=n}toString(){return`${this.file}:${this.reason}`}}r.MergeSummaryConflict=MergeSummaryConflict;class MergeSummaryDetail{constructor(){this.conflicts=[];this.merges=[];this.result="success"}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){if(this.conflicts.length){return`CONFLICTS: ${this.conflicts.join(", ")}`}return"OK"}}r.MergeSummaryDetail=MergeSummaryDetail},3567:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.PullSummary=void 0;class PullSummary{constructor(){this.remoteMessages={all:[]};this.created=[];this.deleted=[];this.files=[];this.deletions={};this.insertions={};this.summary={changes:0,deletions:0,insertions:0}}}r.PullSummary=PullSummary},6790:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseStatusSummary=r.StatusSummary=void 0;const t=n(847);const o=n(860);class StatusSummary{constructor(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[];this.ahead=0;this.behind=0;this.current=null;this.tracking=null}isClean(){return!this.files.length}}r.StatusSummary=StatusSummary;var i;(function(e){e["ADDED"]="A";e["DELETED"]="D";e["MODIFIED"]="M";e["RENAMED"]="R";e["COPIED"]="C";e["UNMERGED"]="U";e["UNTRACKED"]="?";e["IGNORED"]="!";e["NONE"]=" "})(i||(i={}));function renamedFile(e){const r=/^(.+) -> (.+)$/.exec(e);if(!r){return{from:e,to:e}}return{from:String(r[1]),to:String(r[2])}}function parser(e,r,n){return[`${e}${r}`,n]}function conflicts(e,...r){return r.map(r=>parser(e,r,(e,r)=>t.append(e.conflicted,r)))}const s=new Map([parser(i.NONE,i.ADDED,(e,r)=>t.append(e.created,r)),parser(i.NONE,i.DELETED,(e,r)=>t.append(e.deleted,r)),parser(i.NONE,i.MODIFIED,(e,r)=>t.append(e.modified,r)),parser(i.ADDED,i.NONE,(e,r)=>t.append(e.created,r)&&t.append(e.staged,r)),parser(i.ADDED,i.MODIFIED,(e,r)=>t.append(e.created,r)&&t.append(e.staged,r)&&t.append(e.modified,r)),parser(i.DELETED,i.NONE,(e,r)=>t.append(e.deleted,r)&&t.append(e.staged,r)),parser(i.MODIFIED,i.NONE,(e,r)=>t.append(e.modified,r)&&t.append(e.staged,r)),parser(i.MODIFIED,i.MODIFIED,(e,r)=>t.append(e.modified,r)&&t.append(e.staged,r)),parser(i.RENAMED,i.NONE,(e,r)=>{t.append(e.renamed,renamedFile(r))}),parser(i.RENAMED,i.MODIFIED,(e,r)=>{const n=renamedFile(r);t.append(e.renamed,n);t.append(e.modified,n.to)}),parser(i.UNTRACKED,i.UNTRACKED,(e,r)=>t.append(e.not_added,r)),...conflicts(i.ADDED,i.ADDED,i.UNMERGED),...conflicts(i.DELETED,i.DELETED,i.UNMERGED),...conflicts(i.UNMERGED,i.ADDED,i.DELETED,i.UNMERGED),["##",(e,r)=>{const n=/ahead (\d+)/;const t=/behind (\d+)/;const o=/^(.+?(?=(?:\.{3}|\s|$)))/;const i=/\.{3}(\S*)/;const s=/\son\s([\S]+)$/;let u;u=n.exec(r);e.ahead=u&&+u[1]||0;u=t.exec(r);e.behind=u&&+u[1]||0;u=o.exec(r);e.current=u&&u[1];u=i.exec(r);e.tracking=u&&u[1];u=s.exec(r);e.current=u&&u[1]||e.current}]]);const u=function(e){const r=e.trim().split("\n");const n=new StatusSummary;for(let e=0,t=r.length;e{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseTagList=r.TagList=void 0;class TagList{constructor(e,r){this.all=e;this.latest=r}}r.TagList=TagList;const n=function(e,r=false){const n=e.split("\n").map(trimmed).filter(Boolean);if(!r){n.sort(function(e,r){const n=e.split(".");const t=r.split(".");if(n.length===1||t.length===1){return singleSorted(toNumber(n[0]),toNumber(t[0]))}for(let e=0,r=Math.max(n.length,t.length);ee.indexOf(".")>=0);return new TagList(n,t)};r.parseTagList=n;function singleSorted(e,r){const n=isNaN(e);const t=isNaN(r);if(n!==t){return n?1:-1}return n?sorted(e,r):0}function sorted(e,r){return e===r?0:e>r?1:-1}function trimmed(e){return e.trim()}function toNumber(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0}},8543:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};Object.defineProperty(r,"__esModule",{value:true});r.GitExecutorChain=void 0;const o=n(3129);const i=n(4732);const s=n(2815);const u=n(6676);const a=n(847);class GitExecutorChain{constructor(e,r){this._executor=e;this._scheduler=r;this._chain=Promise.resolve();this._queue=new u.TasksPendingQueue}get binary(){return this._executor.binary}get outputHandler(){return this._executor.outputHandler}get cwd(){return this._executor.cwd}get env(){return this._executor.env}push(e){this._queue.push(e);return this._chain=this._chain.then(()=>this.attemptTask(e))}attemptTask(e){return t(this,void 0,void 0,function*(){const r=yield this._scheduler.next();const n=()=>this._queue.complete(e);try{const{logger:t}=this._queue.attempt(e);return yield s.isEmptyTask(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t)}catch(r){throw this.onFatalException(e,r)}finally{n();r()}})}onFatalException(e,r){const n=r instanceof i.GitError?Object.assign(r,{task:e}):new i.GitError(e,r&&String(r));this._chain=Promise.resolve();this._queue.fatal(n);return n}attemptRemoteTask(e,r){return t(this,void 0,void 0,function*(){const n=yield this.gitResponse(this.binary,e.commands,this.outputHandler,r.step("SPAWN"));const t=yield this.handleTaskData(e,n,r.step("HANDLE"));r(`passing response to task's parser as a %s`,e.format);if(s.isBufferTask(e)){return a.callTaskParser(e.parser,t)}return a.callTaskParser(e.parser,t.asStrings())})}attemptEmptyTask(e,r){return t(this,void 0,void 0,function*(){r(`empty task bypassing child process to call to task's parser`);return e.parser()})}handleTaskData({onError:e,concatStdErr:r},{exitCode:n,stdOut:t,stdErr:o},i){return new Promise((s,u)=>{i(`Preparing to handle process response exitCode=%d stdOut=`,n);if(n&&o.length&&e){i.info(`exitCode=%s handling with custom error handler`);i(`concatenate stdErr to stdOut: %j`,r);return e(n,Buffer.concat([...r?t:[],...o]).toString("utf-8"),e=>{i.info(`custom error handler treated as success`);i(`custom error returned a %s`,a.objectToString(e));s(new a.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(o)))},u)}if(n&&o.length){i.info(`exitCode=%s treated as error when then child process has written to stdErr`);return u(Buffer.concat(o).toString("utf-8"))}if(r){i(`concatenating stdErr onto stdOut before processing`);i(`stdErr: $O`,o);t.push(...o)}i.info(`retrieving task output complete`);s(new a.GitOutputStreams(Buffer.concat(t),Buffer.concat(o)))})}gitResponse(e,r,n,i){return t(this,void 0,void 0,function*(){const t=i.sibling("output");const s={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise(u=>{const a=[];const c=[];let f=false;function attemptClose(e,r="retry"){if(f||c.length||a.length){i.info(`exitCode=%s event=%s`,e,r);u({stdOut:a,stdErr:c,exitCode:e});f=true;t.destroy()}if(!f){f=true;setTimeout(()=>attemptClose(e,"deferred"),50);i("received %s event before content on stdOut/stdErr",r)}}i.info(`%s %o`,e,r);i("%O",s);const l=o.spawn(e,r,s);l.stdout.on("data",onDataReceived(a,"stdOut",i,t.step("stdOut")));l.stderr.on("data",onDataReceived(c,"stdErr",i,t.step("stdErr")));l.on("error",onErrorReceived(c,i));l.on("close",e=>attemptClose(e,"close"));l.on("exit",e=>attemptClose(e,"exit"));if(n){i(`Passing child process stdOut/stdErr to custom outputHandler`);n(e,l.stdout,l.stderr,[...r])}})})}}r.GitExecutorChain=GitExecutorChain;function onErrorReceived(e,r){return n=>{r(`[ERROR] child process exception %o`,n);e.push(Buffer.from(String(n.stack),"ascii"))}}function onDataReceived(e,r,n,t){return o=>{n(`%s received %L bytes`,r,o);t(`%B`,o);e.push(o)}}},4701:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitExecutor=void 0;const t=n(8543);class GitExecutor{constructor(e="git",r,n){this.binary=e;this.cwd=r;this._scheduler=n;this._chain=new t.GitExecutorChain(this,this._scheduler)}chain(){return new t.GitExecutorChain(this,this._scheduler)}push(e){return this._chain.push(e)}}r.GitExecutor=GitExecutor},941:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.gitP=void 0;const t=n(5131);const o=["customBinary","env","outputHandler","silent"];const i=["add","addAnnotatedTag","addConfig","addRemote","addTag","binaryCatFile","branch","branchLocal","catFile","checkIgnore","checkIsRepo","checkout","checkoutBranch","checkoutLatestTag","checkoutLocalBranch","clean","clone","commit","cwd","deleteLocalBranch","deleteLocalBranches","diff","diffSummary","exec","fetch","getRemotes","init","listConfig","listRemote","log","merge","mergeFromTo","mirror","mv","pull","push","pushTags","raw","rebase","remote","removeRemote","reset","revert","revparse","rm","rmKeepLocal","show","stash","stashList","status","subModule","submoduleAdd","submoduleInit","submoduleUpdate","tag","tags","updateServerInfo"];const{gitInstanceFactory:s}=n(1949);function gitP(...e){let r;let n=Promise.resolve();try{r=s(...e)}catch(e){n=Promise.reject(e)}function builderReturn(){return t}function chainReturn(){return n}const t=[...o,...i].reduce((e,n)=>{const t=i.includes(n);const o=t?asyncWrapper(n,r):syncWrapper(n,r,e);const s=t?chainReturn:builderReturn;Object.defineProperty(e,n,{enumerable:false,configurable:false,value:r?o:s});return e},{});return t;function asyncWrapper(e,r){return function(...t){if(typeof t[t.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return n.then(function(){return new Promise(function(n,o){const i=(e,r)=>{if(e){return o(toError(e))}n(r)};t.push(i);r[e].apply(r,t)})})}}function syncWrapper(e,r,n){return(...t)=>{r[e](...t);return n}}}r.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new t.GitResponseError(e)}},3421:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Scheduler=void 0;const t=n(847);const o=n(9819);const i=n(7178);const s=i.createLogger("","scheduler");const u=(()=>{let e=0;return()=>{e++;const{promise:r,done:n}=o.createDeferred();return{promise:r,done:n,id:e}}})();class Scheduler{constructor(e=2){this.concurrency=e;this.pending=[];this.running=[];s(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){s(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const e=t.append(this.running,this.pending.shift());s(`Attempting id=%s`,e.id);e.done(()=>{s(`Completing id=`,e.id);t.remove(this.running,e);this.schedule()})}next(){const{promise:e,id:r}=t.append(this.pending,u());s(`Scheduling id=%s`,r);this.schedule();return e}}r.Scheduler=Scheduler},6676:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.TasksPendingQueue=void 0;const t=n(7178);const o=n(4732);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const r=TasksPendingQueue.getName(e.commands[0]);const n=t.createLogger(this.logLabel,r);return{task:e,logger:n,name:r}}push(e){const r=this.createProgress(e);r.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,r);return r}fatal(e){for(const[r,{logger:n}]of Array.from(this._queue.entries())){if(r===e.task){n.info(`Failed %o`,e);n(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{n.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message)}this.complete(r)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const r=this.withProgress(e);if(r){r.logger.destroy();this._queue.delete(e)}}attempt(e){const r=this.withProgress(e);if(!r){throw new o.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}r.logger("Starting task");return r}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}r.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},8850:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.taskCallback=void 0;const t=n(4732);const o=n(847);function taskCallback(e,r,n=o.NOOP){const i=e=>{n(null,e)};const s=r=>{if((r===null||r===void 0?void 0:r.task)===e){if(r instanceof t.GitResponseError){return n(addDeprecationNoticeToError(r))}n(r)}};r.then(i,s)}r.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let r=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`);r=o.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(n,t){if(t in e){return n}n[t]={enumerable:false,configurable:false,get(){r(t);return e.git[t]}};return n}}},17:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.deleteBranchTask=r.deleteBranchesTask=r.branchLocalTask=r.branchTask=r.containsDeleteBranchCommand=void 0;const t=n(5131);const o=n(6086);const i=n(9264);function containsDeleteBranchCommand(e){const r=["-d","-D","--delete"];return e.some(e=>r.includes(e))}r.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const r=containsDeleteBranchCommand(e);const n=["branch",...e];if(n.length===1){n.push("-a")}if(!n.includes("-v")){n.splice(1,0,"-v")}return{format:"utf-8",commands:n,parser(e,n){if(r){return o.parseBranchDeletions(e,n).all[0]}return i.parseBranchSummary(e)}}}r.branchTask=branchTask;function branchLocalTask(){const e=i.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:e}}r.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,r=false){return{format:"utf-8",commands:["branch","-v",r?"-D":"-d",...e],parser(e,r){return o.parseBranchDeletions(e,r)},onError(e,r,n,t){if(!o.hasBranchDeletionError(r,e)){return t(r)}n(r)},concatStdErr:true}}r.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,r=false){const n={format:"utf-8",commands:["branch","-v",r?"-D":"-d",e],parser(r,n){return o.parseBranchDeletions(r,n).branches[e]},onError(e,r,i,s){if(!o.hasBranchDeletionError(r,e)){return s(r)}throw new t.GitResponseError(n.parser(r,""),r)},concatStdErr:true};return n}r.deleteBranchTask=deleteBranchTask},221:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.checkIsBareRepoTask=r.checkIsRepoRootTask=r.checkIsRepoTask=r.CheckRepoActions=void 0;const t=n(847);var o;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(o=r.CheckRepoActions||(r.CheckRepoActions={}));const i=(e,r,n,o)=>{if(e===t.ExitCodes.UNCLEAN&&isNotRepoMessage(r)){return n("false")}o(r)};const s=e=>{return e.trim()==="true"};function checkIsRepoTask(e){switch(e){case o.BARE:return checkIsBareRepoTask();case o.IS_REPO_ROOT:return checkIsRepoRootTask()}const r=["rev-parse","--is-inside-work-tree"];return{commands:r,format:"utf-8",onError:i,parser:s}}r.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:i,parser(e){return/^\.(git)?$/.test(e.trim())}}}r.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:i,parser:s}}r.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isCleanOptionsArray=r.cleanTask=r.cleanWithOptionsTask=r.CleanOptions=r.CONFIG_ERROR_UNKNOWN_OPTION=r.CONFIG_ERROR_MODE_REQUIRED=r.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const t=n(5689);const o=n(847);const i=n(2815);r.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";r.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';r.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var s;(function(e){e["DRY_RUN"]="n";e["FORCE"]="f";e["IGNORED_INCLUDED"]="x";e["IGNORED_ONLY"]="X";e["EXCLUDING"]="e";e["QUIET"]="q";e["RECURSIVE"]="d"})(s=r.CleanOptions||(r.CleanOptions={}));const u=new Set(["i",...o.asStringArray(Object.values(s))]);function cleanWithOptionsTask(e,n){const{cleanMode:t,options:o,valid:s}=getCleanOptions(e);if(!t){return i.configurationErrorTask(r.CONFIG_ERROR_MODE_REQUIRED)}if(!s.options){return i.configurationErrorTask(r.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}o.push(...n);if(o.some(isInteractiveMode)){return i.configurationErrorTask(r.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(t,o)}r.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,r){const n=["clean",`-${e}`,...r];return{commands:n,format:"utf-8",parser(r){return t.cleanSummaryParser(e===s.DRY_RUN,r)}}}r.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every(e=>u.has(e))}r.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let r;let n=[];let t={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach(e=>{if(isCleanMode(e)){r=e;t.cleanMode=true}else{t.options=t.options&&isKnownOption(n[n.length]=`-${e}`)}});return{cleanMode:r,options:n,valid:t}}function isCleanMode(e){return e===s.FORCE||e===s.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&u.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.cloneMirrorTask=r.cloneTask=void 0;const t=n(2815);const o=n(847);function cloneTask(e,r,n){const o=["clone",...n];if(typeof e==="string"){o.push(e)}if(typeof r==="string"){o.push(r)}return t.straightThroughStringTask(o)}r.cloneTask=cloneTask;function cloneMirrorTask(e,r,n){o.append(n,"--mirror");return cloneTask(e,r,n)}r.cloneMirrorTask=cloneMirrorTask},5494:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.commitTask=void 0;const t=n(3026);function commitTask(e,r,n){const o=["commit",...e.flatMap(e=>["-m",e]),...r,...n];return{commands:o,format:"utf-8",parser:t.parseCommitResult}}r.commitTask=commitTask},7597:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.listConfigTask=r.addConfigTask=void 0;const t=n(7219);function addConfigTask(e,r,n=false){const t=["config","--local"];if(n){t.push("--add")}t.push(e,r);return{commands:t,format:"utf-8",parser(e){return e}}}r.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return t.configListParser(e)}}}r.listConfigTask=listConfigTask},9241:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.diffSummaryTask=void 0;const t=n(2024);function diffSummaryTask(e){return{commands:["diff","--stat=4096",...e],format:"utf-8",parser(e){return t.parseDiffResult(e)}}}r.diffSummaryTask=diffSummaryTask},8823:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fetchTask=void 0;const t=n(6254);function fetchTask(e,r,n){const o=["fetch",...n];if(e&&r){o.push(e,r)}return{commands:o,format:"utf-8",parser:t.parseFetchResult}}r.fetchTask=fetchTask},8199:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.hashObjectTask=void 0;const t=n(2815);function hashObjectTask(e,r){const n=["hash-object",e];if(r){n.push("-w")}return t.straightThroughStringTask(n,true)}r.hashObjectTask=hashObjectTask},6016:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.initTask=void 0;const t=n(8690);const o="--bare";function hasBareCommand(e){return e.includes(o)}function initTask(e=false,r,n){const i=["init",...n];if(e&&!hasBareCommand(i)){i.splice(1,0,o)}return{commands:i,concatStdErr:false,format:"utf-8",parser(e){return t.parseInit(i.includes("--bare"),r,e)}}}r.initTask=initTask},8627:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.logTask=r.parseLogOptions=void 0;const t=n(9729);const o=n(847);const i=new Set(["--pretty","max-count","maxCount","n","file","format","from","to","splitter","symmetric","multiLine","strictDate"]);function prettyFormat(e,r){const n=[];const t=[];Object.entries(e).forEach(([e,r])=>{n.push(e);t.push(r)});return[n,t.join(r)]}function userOptions(e){return Object.fromEntries(Object.entries(e).filter(([e])=>!i.has(e)))}function parseLogOptions(e={},r=[]){const n=e.splitter||t.SPLITTER;const i=e.format||{hash:"%H",date:e.strictDate===false?"%ai":"%aI",message:"%s",refs:"%D",body:e.multiLine?"%B":"%b",author_name:"%aN",author_email:"%ae"};const[s,u]=prettyFormat(i,n);const a=[];const c=[`--pretty=format:${t.START_BOUNDARY}${u}${t.COMMIT_BOUNDARY}`,...r];const f=e.n||e["max-count"]||e.maxCount;if(f){c.push(`--max-count=${f}`)}if(e.from&&e.to){const r=e.symmetric!==false?"...":"..";a.push(`${e.from}${r}${e.to}`)}if(e.file){a.push("--follow",e.file)}o.appendTaskOptions(userOptions(e),c);return{fields:s,splitter:n,commands:[...c,...a]}}r.parseLogOptions=parseLogOptions;function logTask(e,r,n){return{commands:["log",...n],format:"utf-8",parser:t.createListLogSummaryParser(e,r)}}r.logTask=logTask},8829:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.mergeTask=void 0;const t=n(4732);const o=n(6412);const i=n(2815);function mergeTask(e){if(!e.length){return i.configurationErrorTask("Git.merge requires at least one option")}return{commands:["merge",...e],format:"utf-8",parser(e,r){const n=o.parseMergeResult(e,r);if(n.failed){throw new t.GitResponseError(n)}return n}}}r.mergeTask=mergeTask},6520:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.moveTask=void 0;const t=n(7444);const o=n(847);function moveTask(e,r){return{commands:["mv","-v",...o.asArray(e),r],format:"utf-8",parser:t.parseMoveResult}}r.moveTask=moveTask},4636:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pullTask=void 0;const t=n(5658);function pullTask(e,r,n){const o=["pull",...n];if(e&&r){o.splice(1,0,e,r)}return{commands:o,format:"utf-8",parser(e,r){return t.parsePullResult(e,r)}}}r.pullTask=pullTask},1435:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pushTask=r.pushTagsTask=void 0;const t=n(8530);const o=n(847);function pushTagsTask(e={},r){o.append(r,"--tags");return pushTask(e,r)}r.pushTagsTask=pushTagsTask;function pushTask(e={},r){const n=["push",...r];if(e.branch){n.splice(1,0,e.branch)}if(e.remote){n.splice(1,0,e.remote)}o.remove(n,"-v");o.append(n,"--verbose");o.append(n,"--porcelain");return{commands:n,format:"utf-8",parser:t.parsePushResult}}r.pushTask=pushTask},9866:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.removeRemoteTask=r.remoteTask=r.listRemotesTask=r.getRemotesTask=r.addRemoteTask=void 0;const t=n(9999);const o=n(2815);function addRemoteTask(e,r,n=[]){return o.straightThroughStringTask(["remote","add",...n,e,r])}r.addRemoteTask=addRemoteTask;function getRemotesTask(e){const r=["remote"];if(e){r.push("-v")}return{commands:r,format:"utf-8",parser:e?t.parseGetRemotesVerbose:t.parseGetRemotes}}r.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const r=[...e];if(r[0]!=="ls-remote"){r.unshift("ls-remote")}return o.straightThroughStringTask(r)}r.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const r=[...e];if(r[0]!=="remote"){r.unshift("remote")}return o.straightThroughStringTask(r)}r.remoteTask=remoteTask;function removeRemoteTask(e){return o.straightThroughStringTask(["remote","remove",e])}r.removeRemoteTask=removeRemoteTask},2377:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getResetMode=r.resetTask=r.ResetMode=void 0;const t=n(2815);var o;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(o=r.ResetMode||(r.ResetMode={}));const i=Array.from(Object.values(o));function resetTask(e,r){const n=["reset"];if(isValidResetMode(e)){n.push(`--${e}`)}n.push(...r);return t.straightThroughStringTask(n)}r.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return o.SOFT}return}r.getResetMode=getResetMode;function isValidResetMode(e){return i.includes(e)}},810:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.stashListTask=void 0;const t=n(9729);const o=n(8627);function stashListTask(e={},r){const n=o.parseLogOptions(e);const i=t.createListLogSummaryParser(n.splitter,n.fields);return{commands:["stash","list",...n.commands,...r],format:"utf-8",parser:i}}r.stashListTask=stashListTask},9197:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.statusTask=void 0;const t=n(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return t.parseStatusSummary(e)}}}r.statusTask=statusTask},8772:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.updateSubModuleTask=r.subModuleTask=r.initSubModuleTask=r.addSubModuleTask=void 0;const t=n(2815);function addSubModuleTask(e,r){return subModuleTask(["add",e,r])}r.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}r.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const r=[...e];if(r[0]!=="submodule"){r.unshift("submodule")}return t.straightThroughStringTask(r)}r.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}r.updateSubModuleTask=updateSubModuleTask},8540:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.addAnnotatedTagTask=r.addTagTask=r.tagListTask=void 0;const t=n(4539);function tagListTask(e=[]){const r=e.some(e=>/^--sort=/.test(e));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return t.parseTagList(e,r)}}}r.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}r.addTagTask=addTagTask;function addAnnotatedTagTask(e,r){return{format:"utf-8",commands:["tag","-a","-m",r,e],parser(){return{name:e}}}}r.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isEmptyTask=r.isBufferTask=r.straightThroughStringTask=r.configurationErrorTask=r.adhocExecTask=r.EMPTY_COMMANDS=void 0;const t=n(740);r.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:r.EMPTY_COMMANDS,format:"utf-8",parser:e}}r.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:r.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new t.TaskConfigurationError(e):e}}}r.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,r=false){return{commands:e,format:"utf-8",parser(e){return r?String(e).trim():e}}}r.straightThroughStringTask=straightThroughStringTask;function isBufferTask(e){return e.format==="buffer"}r.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}r.isEmptyTask=isEmptyTask},7366:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.filterHasLength=r.filterFunction=r.filterPlainObject=r.filterStringOrStringArray=r.filterStringArray=r.filterString=r.filterPrimitives=r.filterArray=r.filterType=void 0;const t=n(3518);function filterType(e,r,n){if(r(e)){return e}return arguments.length>2?n:undefined}r.filterType=filterType;const o=e=>{return Array.isArray(e)};r.filterArray=o;function filterPrimitives(e,r){return/number|string|boolean/.test(typeof e)&&(!r||!r.includes(typeof e))}r.filterPrimitives=filterPrimitives;const i=e=>{return typeof e==="string"};r.filterString=i;const s=e=>{return Array.isArray(e)&&e.every(r.filterString)};r.filterStringArray=s;const u=e=>{return r.filterString(e)||Array.isArray(e)&&e.every(r.filterString)};r.filterStringOrStringArray=u;function filterPlainObject(e){return!!e&&t.objectToString(e)==="[object Object]"}r.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}r.filterFunction=filterFunction;const a=e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"};r.filterHasLength=a},2185:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitCodes=void 0;var n;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(n=r.ExitCodes||(r.ExitCodes={}))},6578:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GitOutputStreams=void 0;class GitOutputStreams{constructor(e,r){this.stdOut=e;this.stdErr=r}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}r.GitOutputStreams=GitOutputStreams},847:function(e,r,n){"use strict";var t=this&&this.__createBinding||(Object.create?function(e,r,n,t){if(t===undefined)t=n;Object.defineProperty(e,t,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,t){if(t===undefined)t=n;e[t]=r[n]});var o=this&&this.__exportStar||function(e,r){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n))t(r,e,n)};Object.defineProperty(r,"__esModule",{value:true});o(n(7366),r);o(n(2185),r);o(n(6578),r);o(n(9536),r);o(n(5218),r);o(n(3546),r);o(n(1351),r);o(n(3518),r)},9536:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.RemoteLineParser=r.LineParser=void 0;class LineParser{constructor(e,r){this.matches=[];this.parse=((e,r)=>{this.resetMatches();if(!this._regExp.every((r,n)=>this.addMatch(r,n,e(n)))){return false}return this.useMatches(r,this.prepareMatches())!==false});this._regExp=Array.isArray(e)?e:[e];if(r){this.useMatches=r}}useMatches(e,r){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,r,n){const t=n&&e.exec(n);if(t){this.pushMatch(r,t)}return!!t}pushMatch(e,r){this.matches.push(...r.slice(1))}}r.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,r,n){return/^remote:\s/.test(String(n))&&super.addMatch(e,r,n)}pushMatch(e,r){if(e>0||r.length>1){super.pushMatch(e,r)}}}r.RemoteLineParser=RemoteLineParser},5218:(e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createInstanceConfig=void 0;const n={binary:"git",maxConcurrentProcesses:5};function createInstanceConfig(...e){const r=process.cwd();const t=Object.assign(Object.assign({baseDir:r},n),...e.filter(e=>typeof e==="object"&&e));t.baseDir=t.baseDir||r;return t}r.createInstanceConfig=createInstanceConfig},3546:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.trailingFunctionArgument=r.trailingOptionsArgument=r.getTrailingOptions=r.appendTaskOptions=void 0;const t=n(7366);const o=n(3518);function appendTaskOptions(e,r=[]){if(!t.filterPlainObject(e)){return r}return Object.keys(e).reduce((r,n)=>{const o=e[n];if(t.filterPrimitives(o,["boolean"])){r.push(n+"="+o)}else{r.push(n)}return r},r)}r.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,r=0,n=false){const t=[];for(let n=0,o=r<0?e.length:r;n{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseStringResponse=r.callTaskParser=void 0;const t=n(3518);function callTaskParser(e,r){return e(r.stdOut,r.stdErr)}r.callTaskParser=callTaskParser;function parseStringResponse(e,r,...n){n.forEach(n=>{for(let o=t.toLinesWithContent(n),i=0,s=o.length;i{if(i+e>=s){return}return o[i+e]};r.some(({parse:r})=>r(n,e))}});return e}r.parseStringResponse=parseStringResponse},3518:(e,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.asNumber=r.asStringArray=r.asArray=r.objectToString=r.remove=r.append=r.folderExists=r.forEachLineWithContent=r.toLinesWithContent=r.last=r.first=r.splitOn=r.isUserFunction=r.asFunction=r.NOOP=void 0;const t=n(4751);const o=()=>{};r.NOOP=o;function asFunction(e){return typeof e==="function"?e:r.NOOP}r.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==r.NOOP}r.isUserFunction=isUserFunction;function splitOn(e,r){const n=e.indexOf(r);if(n<=0){return[e,""]}return[e.substr(0,n),e.substr(n+1)]}r.splitOn=splitOn;function first(e,r=0){return isArrayLike(e)&&e.length>r?e[r]:undefined}r.first=first;function last(e,r=0){if(isArrayLike(e)&&e.length>r){return e[e.length-1-r]}}r.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,r=true,n="\n"){return e.split(n).reduce((e,n)=>{const t=r?n.trim():n;if(t){e.push(t)}return e},[])}r.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,r){return toLinesWithContent(e,true).map(e=>r(e))}r.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return t.exists(e,t.FOLDER)}r.folderExists=folderExists;function append(e,r){if(Array.isArray(e)){if(!e.includes(r)){e.push(r)}}else{e.add(r)}return r}r.append=append;function remove(e,r){if(Array.isArray(e)){const n=e.indexOf(r);if(n>=0){e.splice(n,1)}}else{e.delete(r)}return r}r.remove=remove;r.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}r.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}r.asStringArray=asStringArray;function asNumber(e,r=0){if(e==null){return r}const n=parseInt(e,10);return isNaN(n)?r:n}r.asNumber=asNumber},9318:(e,r,n)=>{"use strict";const t=n(2087);const o=n(1621);const i=process.env;let s;if(o("no-color")||o("no-colors")||o("color=false")){s=false}else if(o("color")||o("colors")||o("color=true")||o("color=always")){s=true}if("FORCE_COLOR"in i){s=i.FORCE_COLOR.length===0||parseInt(i.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(s===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&&s!==true){return 0}const r=s?1:0;if(process.platform==="win32"){const e=t.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 i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in i)||i.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}if(i.TERM==="dumb"){return r}return r}function getSupportLevel(e){const r=supportsColor(e);return translateLevel(r)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},399:function(e,r,n){"use strict";var t=this&&this.__awaiter||function(e,r,n,t){function adopt(e){return e instanceof n?e:new n(function(r){r(e)})}return new(n||(n=Promise))(function(n,o){function fulfilled(e){try{step(t.next(e))}catch(e){o(e)}}function rejected(e){try{step(t["throw"](e))}catch(e){o(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((t=t.apply(e,r||[])).next())})};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});const i=n(2186);const s=o(n(6545));const u=o(n(5622));const a=o(n(1477));const c=o(n(1917));const f=n(2629);const l=u.default.join(process.cwd(),f.getInput("cwd")||"");const p=a.default({baseDir:l});console.log(`Running in ${l}`);(()=>t(void 0,void 0,void 0,function*(){yield checkInputs().catch(i.setFailed);i.startGroup("Internal logs");i.info("> Staging files...");if(f.getInput("add")){i.info("> Adding files...");yield add()}else i.info("> No files to add.");if(f.getInput("remove")){i.info("> Removing files...");yield remove()}else i.info("> No files to remove.");i.info("> Checking for uncommitted changes in the git working tree...");const e=(yield p.diffSummary(["--cached"])).files.length;if(e>0){i.info(`> Found ${e} changed files.`);yield p.addConfig("user.email",f.getInput("author_email"),undefined,f.log).addConfig("user.name",f.getInput("author_name"),undefined,f.log);i.debug("> Current git config\n"+JSON.stringify((yield p.listConfig()).all,null,2));yield p.fetch(["--tags","--force"],f.log);i.info("> Switching/creating branch...");yield p.checkout(f.getInput("branch"),undefined,f.log).catch(()=>p.checkoutLocalBranch(f.getInput("branch"),f.log));i.info("> Pulling from remote...");yield p.fetch(undefined,f.log).pull(undefined,undefined,{[f.getInput("pull_strategy")]:null},f.log);i.info("> Re-staging files...");if(f.getInput("add"))yield add({ignoreErrors:true});if(f.getInput("remove"))yield remove({ignoreErrors:true});i.info("> Creating commit...");yield p.commit(f.getInput("message"),undefined,Object.assign({"--author":`"${f.getInput("author_name")} <${f.getInput("author_email")}>"`},f.getInput("signoff")?{"--signoff":null}:{}),(e,r)=>{if(r)f.setOutput("committed","true");return f.log(e,r)});if(f.getInput("tag")){i.info("> Tagging commit...");yield p.tag(f.getInput("tag").split(" "),(e,r)=>{if(r)f.setOutput("tagged","true");return f.log(e,r)}).then(e=>{f.setOutput("tagged","true");return f.log(null,e)}).catch(e=>i.setFailed(e))}else i.info("> No tag info provided.");if(f.getInput("push")){i.info("> Pushing commit to repo...");yield p.push("origin",f.getInput("branch"),{"--set-upstream":null},(e,r)=>{if(r)f.setOutput("pushed","true");return f.log(e,r)});if(f.getInput("tag")){i.info("> Pushing tags to repo...");yield p.pushTags("origin",undefined,(e,r)=>f.log(undefined,e||r)).catch(()=>{i.info("> Tag push failed: deleting remote tag and re-pushing...");return p.push(undefined,undefined,{"--delete":null,origin:null,[f.getInput("tag").split(" ").filter(e=>!e.startsWith("-"))[0]]:null},f.log).pushTags("origin",undefined,f.log)})}else i.info("> No tags to push.")}else i.info("> Not pushing anything.");i.endGroup();i.info("> Task completed.")}else{i.endGroup();i.info("> Working tree clean. Nothing to commit.")}}))().then(logOutputs).catch(e=>{i.endGroup();logOutputs();i.setFailed(e)});function checkInputs(){var e,r,n,o,u,a,c,l,p;return t(this,void 0,void 0,function*(){function setInput(e,r){if(r)return process.env[`INPUT_${e.toUpperCase()}`]=r;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,r){if(!f.getInput(e))setInput(e,r);return f.getInput(e)}const t=process.env.GITHUB_EVENT_PATH,h=t&&require(t),d=(e=process.env.GITHUB_EVENT_NAME)===null||e===void 0?void 0:e.includes("pull_request"),m=((n=(r=h===null||h===void 0?void 0:h.pull_request)===null||r===void 0?void 0:r.head)===null||n===void 0?void 0:n.sha)||process.env.GITHUB_SHA,g=d?(u=(o=h===null||h===void 0?void 0:h.pull_request)===null||o===void 0?void 0:o.head)===null||u===void 0?void 0:u.ref:(a=process.env.GITHUB_REF)===null||a===void 0?void 0:a.substring(11);let v=process.env.GITHUB_TOKEN;if(v){i.debug("Using token from GITHUB_TOKEN env variable.");i.warning("The GITHUB_TOKEN env variable is deprecated and will not be supported in the next major release. Use the 'token' input, "+"which defaults to 'secrets.GITHUB_TOKEN'.")}else{i.debug("Using token from token input.");v=f.getInput("token")}if(!f.getInput("add")&&!f.getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(f.getInput("add")){const e=parseInputArray(f.getInput("add"));if(e.length==1)i.info("Add input parsed as single string, running 1 git add command.");else if(e.length>1)i.info(`Add input parsed as string array, running ${e.length} git add commands.`);else i.setFailed("Add input: array length < 1")}if(f.getInput("remove")){const e=parseInputArray(f.getInput("remove"));if(e.length==1)i.info("Remove input parsed as single string, running 1 git rm command.");else if(e.length>1)i.info(`Remove input parsed as string array, running ${e.length} git rm commands.`);else i.setFailed("Remove input: array length < 1")}let b=(c=h===null||h===void 0?void 0:h.head_commit)===null||c===void 0?void 0:c.author;if(m&&!b){i.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}`,r=v?{Authorization:`Bearer ${v}`}:undefined,n=(l=yield s.default.get(e,{headers:r}).catch(r=>{i.startGroup("Request error:");i.info(`> Request URL: ${e}\b${r}`);i.endGroup();return undefined}))===null||l===void 0?void 0:l.data;b=(p=n===null||n===void 0?void 0:n.commit)===null||p===void 0?void 0:p.author}if(b){setDefault("author_name",b.name);setDefault("author_email",b.email)}if(!f.getInput("author_name")||!f.getInput("author_email")){const e=!t?"event path":d?m?"fetch commit":"find commit sha":!(h===null||h===void 0?void 0:h.head_commit)?"find commit":"find commit author";i.warning(`Unable to fetch author info: couldn't ${e}.`);setDefault("author_name","Add & Commit Action");setDefault("author_email","actions@github.com")}i.info(`> Using '${f.getInput("author_name")} <${f.getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);i.info(`> Using "${f.getInput("message")}" as commit message.`);const O=setDefault("branch",g||"");if(d)i.info(`> Running for a PR, the action will use '${O}' as ref.`);if(f.getInput("signoff")){const e=f.parseBool(f.getInput("signoff"));if(e===undefined)throw new Error(`"${f.getInput("signoff")}" is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`);if(!e)setInput("signoff",undefined);i.debug(`Current signoff option: ${f.getInput("signoff")} (${typeof f.getInput("signoff")})`)}setDefault("push","true");if(f.getInput("push")){const e=f.parseBool(f.getInput("push"));if(e===undefined)throw new Error(`"${f.getInput("push")}" is not a valid value for the 'push' input: only "true" and "false" are allowed.`);if(!e)setInput("push",undefined);i.debug(`Current push option: ${f.getInput("push")} (${typeof f.getInput("push")})`)}})}function add({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=f.getInput("add");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield p.add(n.split(" "),(e,n)=>f.log(r?null:e,n)).catch(t=>{if(r)return;if(t.message.includes("fatal: pathspec")&&t.message.includes("did not match any files")&&e)i.warning(`Add command did not match any file:\n git add ${n}`);else throw t}))}return o})}function remove({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=f.getInput("remove");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield p.rm(n.split(" "),(e,n)=>f.log(r?null:e,n)).catch(t=>{if(r)return;if(t.message.includes("fatal: pathspec")&&t.message.includes("did not match any files"))e&&i.warning(`Remove command did not match any file:\n git rm ${n}`);else throw t}))}return o})}function parseInputArray(e){try{const r=JSON.parse(e);if(r&&Array.isArray(r)&&r.every(e=>typeof e=="string")){i.debug(`Input parsed as JSON array of length ${r.length}`);return r}}catch(e){}try{const r=c.default.safeLoad(e);if(r&&Array.isArray(r)&&r.every(e=>typeof e=="string")){i.debug(`Input parsed as YAML array of length ${r.length}`);return r}}catch(e){}i.debug("Input parsed as single string");return[e]}function logOutputs(){i.startGroup("Outputs");for(const e in f.outputs){i.info(`${e}: ${f.outputs[e]}`)}i.endGroup()}},2629:function(e,r,n){"use strict";var t=this&&this.__createBinding||(Object.create?function(e,r,n,t){if(t===undefined)t=n;Object.defineProperty(e,t,{enumerable:true,get:function(){return r[n]}})}:function(e,r,n,t){if(t===undefined)t=n;e[t]=r[n]});var o=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:true,value:r})}:function(e,r){e["default"]=r});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))t(r,e,n);o(r,e);return r};Object.defineProperty(r,"__esModule",{value:true});r.setOutput=r.parseBool=r.log=r.getInput=r.outputs=void 0;const s=i(n(2186));r.outputs={committed:"false",pushed:"false",tagged:"false"};function getInput(e){return s.getInput(e)}r.getInput=getInput;function log(e,r){if(r)console.log(r);if(e)s.error(e)}r.log=log;function parseBool(e){try{const r=JSON.parse(e);if(typeof r=="boolean")return r}catch(e){}}r.parseBool=parseBool;function setOutput(e,n){s.debug(`Setting output: ${e}=${n}`);r.outputs[e]=n;return s.setOutput(e,n)}r.setOutput=setOutput;for(const e in r.outputs)setOutput(e,r.outputs[e])},696:e=>{"use strict";e.exports=JSON.parse('{"_args":[["axios@0.21.0","/home/runner/work/add-and-commit/add-and-commit"]],"_from":"axios@0.21.0","_id":"axios@0.21.0","_inBundle":false,"_integrity":"sha512-fmkJBknJKoZwem3/IKSSLpkdNXZeBu5Q7GA/aRsr2btgrptmSCxi2oFjZHqGdK9DoTil9PIHlPIZw2EcRJXRvw==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.0","name":"axios","escapedName":"axios","rawSpec":"0.21.0","saveSpec":null,"fetchSpec":"0.21.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.0.tgz","_spec":"0.21.0","_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.10.0"},"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","jsdelivr":"dist/axios.min.js","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","unpkg":"dist/axios.min.js","version":"0.21.0"}')},2357:e=>{"use strict";e.exports=require("assert")},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},2413:e=>{"use strict";e.exports=require("stream")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var r={};function __webpack_require__(n){if(r[n]){return r[n].exports}var t=r[n]={exports:{}};var o=true;try{e[n].call(t.exports,t,t.exports,__webpack_require__);o=false}finally{if(o)delete r[n]}return t.exports}__webpack_require__.ab=__dirname+"/";return __webpack_require__(399)})(); \ No newline at end of file