diff --git a/lib/index.js b/lib/index.js index 7c1e991..e03b30b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1 +1,3 @@ -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 s=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 i="::";class Command{constructor(e,r,n){if(!e){e="missing.command"}this.command=e;this.properties=r;this.message=n}toString(){let e=i+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+=`${i}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.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 s=n(7351);const i=n(717);const u=n(5278);const c=o(n(2087));const a=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}${c.EOL}${n}${c.EOL}${r}`;i.issueCommand("ENV",t)}else{s.issueCommand("set-env",{name:e},n)}}r.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}r.setSecret=setSecret;function addPath(e){const r=process.env["GITHUB_PATH"]||"";if(r){i.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${a.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){s.issueCommand("set-output",{name:e},r)}r.setOutput=setOutput;function setCommandEcho(e){s.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){s.issueCommand("debug",{},e)}r.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}r.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}r.warning=warning;function info(e){process.stdout.write(e+c.EOL)}r.info=info;function startGroup(e){s.issue("group",e)}r.startGroup=startGroup;function endGroup(){s.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){s.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 s=t(n(2087));const i=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,`${i.toCommandValue(r)}${s.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 s=t(n(8231));const i=s.default("@kwsites/file-exists");function check(e,r,n){i(`checking %s`,e);try{const t=o.statSync(e);if(t.isFile()&&r){i(`[OK] path represents a file`);return true}if(t.isDirectory()&&n){i(`[OK] path represents a directory`);return true}i(`[FAIL] path represents something other than a file or directory`);return false}catch(e){if(e.code==="ENOENT"){i(`[FAIL] path is not accessible: %o`,e);return false}i(`[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},8222:(e,r,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}s++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[s];r=o.call(n,t);e.splice(s,1);s--}return r});createDebug.formatArgs.call(n,e);const i=n.log||createDebug.log;i.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 s=` ${o};1m${n} `;r[0]=s+r[0].split("\n").join("\n"+s);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{"use strict";e.exports=((e,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||t{"use strict";var t=n(1161);var o=n(8866);function renamed(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+r+" instead, which is now safe by default.")}}e.exports.Type=n(6073);e.exports.Schema=n(1082);e.exports.FAILSAFE_SCHEMA=n(8562);e.exports.JSON_SCHEMA=n(1035);e.exports.CORE_SCHEMA=n(2011);e.exports.DEFAULT_SCHEMA=n(8759);e.exports.load=t.load;e.exports.loadAll=t.loadAll;e.exports.dump=o.dump;e.exports.YAMLException=n(8179);e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},6829: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,s;if(r){s=Object.keys(r);for(n=0,t=s.length;n{"use strict";var t=n(6829);var o=n(8179);var s=n(8759);var i=Object.prototype.toString;var u=Object.prototype.hasOwnProperty;var c=65279;var a=9;var f=10;var l=13;var p=32;var h=33;var d=34;var g=35;var m=37;var b=38;var v=39;var C=42;var O=44;var T=45;var y=58;var E=61;var S=62;var k=63;var A=64;var w=91;var D=93;var F=96;var R=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"];var I=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,r){var n,t,o,s,i,c,a;if(r===null)return{};n={};t=Object.keys(r);for(o=0,s=t.length;o=55296&&n<=56319&&r+1=56320&&t<=57343){return(n-55296)*1024+t-56320+65536}}return n}function needIndentIndicator(e){var r=/^\n* /;return r.test(e)}var N=1,$=2,x=3,U=4,Y=5;function chooseScalarStyle(e,r,n,t,o,s,i,u){var c;var a=0;var l=null;var p=false;var h=false;var d=t!==-1;var g=-1;var m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(r||i){for(c=0;c=65536?c+=2:c++){a=codePointAt(e,c);if(!isPrintable(a)){return Y}m=m&&isPlainSafe(a,l,u);l=a}}else{for(c=0;c=65536?c+=2:c++){a=codePointAt(e,c);if(a===f){p=true;if(d){h=h||c-g-1>t&&e[g+1]!==" ";g=c}}else if(!isPrintable(a)){return Y}m=m&&isPlainSafe(a,l,u);l=a}h=h||d&&(c-g-1>t&&e[g+1]!==" ")}if(!p&&!h){if(m&&!i&&!o(e)){return N}return s===B?Y:$}if(n>9&&needIndentIndicator(e)){return Y}if(!i){return h?U:x}return s===B?Y:$}function writeScalar(e,r,n,t,s){e.dump=function(){if(r.length===0){return e.quotingType===B?'""':"''"}if(!e.noCompatMode){if(L.indexOf(r)!==-1||I.test(r)){return e.quotingType===B?'"'+r+'"':"'"+r+"'"}}var i=e.indent*Math.max(1,n);var u=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var c=t||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,c,e.indent,u,testAmbiguity,e.quotingType,e.forceQuotes&&!t,s)){case N:return r;case $:return"'"+r.replace(/'/g,"''")+"'";case x:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,i));case U:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,u),i));case Y:return'"'+escapeString(r,u)+'"';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 s=o?"+":t?"":"-";return n+s+"\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 s;var i;while(i=n.exec(e)){var u=i[1],c=i[2];s=c[0]===" ";t+=u+(!o&&!s&&c!==""?"\n":"")+foldLine(c,r);o=s}return t}function foldLine(e,r){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var t;var o=0,s,i=0,u=0;var c="";while(t=n.exec(e)){u=t.index;if(u-o>r){s=i>o?i:u;c+="\n"+e.slice(o,s);o=s+1}i=u}c+="\n";if(e.length-o>r&&i>o){c+=e.slice(o,i)+"\n"+e.slice(i+1)}else{c+=e.slice(o)}return c.slice(1)}function escapeString(e){var r="";var n=0;var t;for(var o=0;o=65536?o+=2:o++){n=codePointAt(e,o);t=j[n];if(!t&&isPrintable(n)){r+=e[o];if(n>=65536)r+=e[o+1]}else{r+=t||encodeHex(n)}}return r}function writeFlowSequence(e,r,n){var t="",o=e.tag,s,i,u;for(s=0,i=n.length;s1024)f+="? ";f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,a,false,false)){continue}f+=e.dump;t+=f}e.tag=o;e.dump="{"+t+"}"}function writeBlockMapping(e,r,n,t){var s="",i=e.tag,u=Object.keys(n),c,a,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(c=0,a=u.length;c1024;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;s+=d}e.tag=i;e.dump=s||"{}"}function detectType(e,r,n){var t,s,c,a,f,l;s=n?e.explicitTypes:e.implicitTypes;for(c=0,a=s.length;c tag resolver accepts not "'+l+'" style')}e.dump=t}return true}}return false}function writeNode(e,r,n,t,s,u,c){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var a=i.call(e.dump);var f=t;var l;if(t){t=e.flowLevel<0||e.flowLevel>r}var p=a==="[object Object]"||a==="[object Array]",h,d;if(p){h=e.duplicates.indexOf(n);d=h!==-1}if(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&r>0){s=false}if(d&&e.usedDuplicates[h]){e.dump="*ref_"+h}else{if(p&&d&&!e.usedDuplicates[h]){e.usedDuplicates[h]=true}if(a==="[object Object]"){if(t&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,s);if(d){e.dump="&ref_"+h+e.dump}}else{writeFlowMapping(e,r,e.dump);if(d){e.dump="&ref_"+h+" "+e.dump}}}else if(a==="[object Array]"){if(t&&e.dump.length!==0){if(e.noArrayIndent&&!c&&r>0){writeBlockSequence(e,r-1,e.dump,s)}else{writeBlockSequence(e,r,e.dump,s)}if(d){e.dump="&ref_"+h+e.dump}}else{writeFlowSequence(e,r,e.dump);if(d){e.dump="&ref_"+h+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,u,f)}}else if(a==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){l=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){l="!"+l}else if(l.slice(0,18)==="tag:yaml.org,2002:"){l="!!"+l.slice(18)}else{l="!<"+l+">"}e.dump=l+" "+e.dump}}return true}function getDuplicateReferences(e,r){var n=[],t=[],o,s;inspectNode(e,n,t);for(o=0,s=t.length;o{"use strict";function formatError(e,r){var n="",t=e.reason||"(unknown reason)";if(!e.mark)return t;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!r&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return t+" "+n}function YAMLException(e,r){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=r;this.message=formatError(this,false);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){return this.name+": "+formatError(this,e)};e.exports=YAMLException},1161:(e,r,n)=>{"use strict";var t=n(6829);var o=n(8179);var s=n(6975);var i=n(8759);var u=Object.prototype.hasOwnProperty;var c=1;var a=2;var f=3;var l=4;var p=1;var h=2;var d=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var m=/[\x85\u2028\u2029]/;var b=/[,\[\]\{\}]/;var v=/^(?:!|!!|![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 O=new Array(256);var T=new Array(256);for(var y=0;y<256;y++){O[y]=simpleEscapeSequence(y)?1:0;T[y]=simpleEscapeSequence(y)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||i;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.firstTabInLine=-1;this.documents=[]}function generateError(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=s(n);return new o(r,n)}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var E={YAML:function handleYamlDirective(e,r,n){var t,o,s;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);s=parseInt(t[2],10);if(o!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=s<2;if(s!==1&&s!==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(!v.test(t)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(u.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")}try{o=decodeURIComponent(o)}catch(r){throwError(e,"tag prefix is malformed: "+o)}e.tagMap[t]=o}};function captureSegment(e,r,n,t){var o,s,i,u;if(r1){e.result+=t.repeat("\n",r-1)}}function readPlainScalar(e,r,n){var t,o,s,i,u,c,a,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="";s=i=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)){c=e.line;a=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=i;e.line=c;e.lineStart=a;e.lineIndent=f;break}}if(u){captureSegment(e,s,i,false);writeFoldedLines(e,e.line-c);s=i=e.position;u=false}if(!is_WHITE_SPACE(h)){i=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,s,i,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,s,i,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&&O[u]){e.result+=T[u];e.position++}else if((i=escapedHexLen(u))>0){o=i;s=0;for(;o>0;o--){u=e.input.charCodeAt(++e.position);if((i=fromHexCode(u))>=0){s=(s<<4)+i}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(s);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,s,i=e.tag,u,a=e.anchor,f,l,p,h,d,g=Object.create(null),m,b,v,C;C=e.input.charCodeAt(e.position);if(C===91){l=93;d=false;u=[]}else if(C===123){l=125;d=true;u={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=u}C=e.input.charCodeAt(++e.position);while(C!==0){skipSeparationSpace(e,true,r);C=e.input.charCodeAt(e.position);if(C===l){e.position++;e.tag=i;e.anchor=a;e.kind=d?"mapping":"sequence";e.result=u;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(C===44){throwError(e,"expected the node content, but found ','")}b=m=v=null;p=h=false;if(C===63){f=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(f)){p=h=true;e.position++;skipSeparationSpace(e,true,r)}}t=e.line;o=e.lineStart;s=e.position;composeNode(e,r,c,false,true);b=e.tag;m=e.result;skipSeparationSpace(e,true,r);C=e.input.charCodeAt(e.position);if((h||e.line===t)&&C===58){p=true;C=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,c,false,true);v=e.result}if(d){storeMappingPair(e,u,g,b,m,v,t,o,s)}else if(p){u.push(storeMappingPair(e,null,g,b,m,v,t,o,s))}else{u.push(m)}skipSeparationSpace(e,true,r);C=e.input.charCodeAt(e.position);if(C===44){n=true;C=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,s=p,i=false,u=false,c=r,a=0,f=false,l,g;g=e.input.charCodeAt(e.position);if(g===124){o=false}else if(g===62){o=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(p===s){s=g===43?d:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(g))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!u){c=r+l-1;u=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(g)){do{g=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(g));if(g===35){do{g=e.input.charCodeAt(++e.position)}while(!is_EOL(g)&&g!==0)}}while(g!==0){readLineBreak(e);e.lineIndent=0;g=e.input.charCodeAt(e.position);while((!u||e.lineIndentc){c=e.lineIndent}if(is_EOL(g)){a++;continue}if(e.lineIndentr)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(v){i=e.line;u=e.lineStart;c=e.position}if(composeNode(e,r,l,true,o)){if(v){m=e.result}else{b=e.result}}if(!v){storeMappingPair(e,h,d,g,m,b,i,u,c);g=m=b=null}skipSeparationSpace(e,true,-1);O=e.input.charCodeAt(e.position)}if((e.line===s||e.lineIndent>r)&&O!==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(m=0,b=e.implicitTypes.length;m")}if(e.result!==null&&C.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+C.kind+'", not "'+e.kind+'"')}if(!C.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=C.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||g}function readDocument(e){var r=e.position,n,t,o,s=false,i;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((i=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);i=e.input.charCodeAt(e.position);if(e.lineIndent>0||i!==37){break}s=true;i=e.input.charCodeAt(++e.position);n=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=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(i!==0){while(is_WHITE_SPACE(i)){i=e.input.charCodeAt(++e.position)}if(i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==0&&!is_EOL(i));break}if(is_EOL(i))break;n=e.position;while(i!==0&&!is_WS_OR_EOL(i)){i=e.input.charCodeAt(++e.position)}o.push(e.input.slice(n,e.position))}if(i!==0)readLineBreak(e);if(u.call(E,t)){E[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(s){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,l,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.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(8179);var o=n(6073);function compileList(e,r,n){var t=[];e[r].forEach(function(e){n.forEach(function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){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:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function collectType(r){if(r.multi){e.multi[r.kind].push(r);e.multi["fallback"].push(r)}else{e[r.kind][r.tag]=e["fallback"][r.tag]=r}}for(r=0,n=arguments.length;r{"use strict";e.exports=n(1035)},8759:(e,r,n)=>{"use strict";e.exports=n(2011).extend({implicit:[n(9212),n(6104)],explicit:[n(7900),n(9046),n(6860),n(9548)]})},8562:(e,r,n)=>{"use strict";var t=n(1082);e.exports=new t({explicit:[n(3619),n(7283),n(6150)]})},1035:(e,r,n)=>{"use strict";e.exports=n(8562).extend({implicit:[n(721),n(4993),n(1615),n(2705)]})},6975:(e,r,n)=>{"use strict";var t=n(6829);function getLine(e,r,n,t,o){var s="";var i="";var u=Math.floor(o/2)-1;if(t-r>u){s=" ... ";r=t-u+s.length}if(n-t>u){i=" ...";n=t+u-i.length}return{str:s+e.slice(r,n).replace(/\t/g,"→")+i,pos:t-r+s.length}}function padStart(e,r){return t.repeat(" ",r-e.length)+e}function makeSnippet(e,r){r=Object.create(r||null);if(!e.buffer)return null;if(!r.maxLength)r.maxLength=79;if(typeof r.indent!=="number")r.indent=1;if(typeof r.linesBefore!=="number")r.linesBefore=3;if(typeof r.linesAfter!=="number")r.linesAfter=2;var n=/\r?\n|\r|\0/g;var o=[0];var s=[];var i;var u=-1;while(i=n.exec(e.buffer)){s.push(i.index);o.push(i.index+i[0].length);if(e.position<=i.index&&u<0){u=o.length-2}}if(u<0)u=o.length-1;var c="",a,f;var l=Math.min(e.line+r.linesAfter,s.length).toString().length;var p=r.maxLength-(r.indent+l+3);for(a=1;a<=r.linesBefore;a++){if(u-a<0)break;f=getLine(e.buffer,o[u-a],s[u-a],e.position-(o[u]-o[u-a]),p);c=t.repeat(" ",r.indent)+padStart((e.line-a+1).toString(),l)+" | "+f.str+"\n"+c}f=getLine(e.buffer,o[u],s[u],e.position,p);c+=t.repeat(" ",r.indent)+padStart((e.line+1).toString(),l)+" | "+f.str+"\n";c+=t.repeat("-",r.indent+l+3+f.pos)+"^"+"\n";for(a=1;a<=r.linesAfter;a++){if(u+a>=s.length)break;f=getLine(e.buffer,o[u+a],s[u+a],e.position-(o[u]-o[u+a]),p);c+=t.repeat(" ",r.indent)+padStart((e.line+a+1).toString(),l)+" | "+f.str+"\n"}return c.replace(/\n$/,"")}e.exports=makeSnippet},6073:(e,r,n)=>{"use strict";var t=n(8179);var o=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var s=["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.representName=r["representName"]||null;this.defaultStyle=r["defaultStyle"]||null;this.multi=r["multi"]||false;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(s.indexOf(this.kind)===-1){throw new t('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},7900:(e,r,n)=>{"use strict";var t=n(6073);var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var r,n,t=0,s=e.length,i=o;for(n=0;n64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){var r,n,t=e.replace(/[\r\n=]/g,""),s=t.length,i=o,u=0,c=[];for(r=0;r>16&255);c.push(u>>8&255);c.push(u&255)}u=u<<6|i.indexOf(t.charAt(r))}n=s%4*6;if(n===0){c.push(u>>16&255);c.push(u>>8&255);c.push(u&255)}else if(n===18){c.push(u>>10&255);c.push(u>>2&255)}else if(n===12){c.push(u>>4&255)}return new Uint8Array(c)}function representYamlBinary(e){var r="",n=0,t,s,i=e.length,u=o;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]}s=i%3;if(s===0){r+=u[n>>18&63];r+=u[n>>12&63];r+=u[n>>6&63];r+=u[n&63]}else if(s===2){r+=u[n>>10&63];r+=u[n>>4&63];r+=u[n<<2&63];r+=u[64]}else if(s===1){r+=u[n>>2&63];r+=u[n<<4&63];r+=u[64];r+=u[64]}return r}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(e,r,n)=>{"use strict";var t=n(6073);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"})},2705:(e,r,n)=>{"use strict";var t=n(6829);var o=n(6073);var s=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!s.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,n;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;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}return n*parseFloat(r,10)}var i=/^[-+]?[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 i.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"})},1615:(e,r,n)=>{"use strict";var t=n(6829);var o=n(6073);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?"0o"+e.toString(8):"-0o"+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"]}})},6150:(e,r,n)=>{"use strict";var t=n(6073);e.exports=new t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6104:(e,r,n)=>{"use strict";var t=n(6073);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(e,r,n)=>{"use strict";var t=n(6073);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"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(e,r,n)=>{"use strict";var t=n(6073);var o=Object.prototype.hasOwnProperty;var s=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var r=[],n,t,i,u,c,a=e;for(n=0,t=a.length;n{"use strict";var t=n(6073);var o=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,n,t,s,i,u=e;i=new Array(u.length);for(r=0,n=u.length;r{"use strict";var t=n(6073);e.exports=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9548:(e,r,n)=>{"use strict";var t=n(6073);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})},3619:(e,r,n)=>{"use strict";var t=n(6073);e.exports=new t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9212:(e,r,n)=>{"use strict";var t=n(6073);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var s=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(s.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,n,t,i,u,c,a,f=0,l=null,p,h,d;r=o.exec(e);if(r===null)r=s.exec(e);if(r===null)throw new Error("Date resolve error");n=+r[1];t=+r[2]-1;i=+r[3];if(!r[4]){return new Date(Date.UTC(n,t,i))}u=+r[4];c=+r[5];a=+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,i,u,c,a,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 s=o*7;var i=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 c=parseFloat(u[1]);var a=(u[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*t;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var s=Math.abs(e);if(s>=o){return Math.round(e/o)+"d"}if(s>=t){return Math.round(e/t)+"h"}if(s>=n){return Math.round(e/n)+"m"}if(s>=r){return Math.round(e/r)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=o){return plural(e,s,o,"day")}if(s>=t){return plural(e,s,t,"hour")}if(s>=n){return plural(e,s,n,"minute")}if(s>=r){return plural(e,s,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"%"}s++;const o=createDebug.formatters[t];if(typeof o==="function"){const t=e[s];r=o.call(n,t);e.splice(s,1);s--}return r});createDebug.formatArgs.call(n,e);const i=n.log||createDebug.log;i.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 s=` ${o};1m${n} `;r[0]=s+r[0].split("\n").join("\n"+s);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(" ")};s.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:s,folderExists:i}=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:s}=n(7178);const{adhocExecTask:i,configurationErrorTask:u}=n(2815);const{NOOP:c,appendTaskOptions:a,asArray:f,filterArray:l,filterPrimitives:p,filterString:h,filterStringOrStringArray:d,filterType:g,folderExists:m,getTrailingOptions:b,trailingFunctionArgument:v,trailingOptionsArgument:C}=n(847);const{branchTask:O,branchLocalTask:T,deleteBranchesTask:y,deleteBranchTask:E}=n(17);const{taskCallback:S}=n(8850);const{checkIsRepoTask:k}=n(221);const{cloneTask:A,cloneMirrorTask:w}=n(3173);const{addConfigTask:D,listConfigTask:F}=n(7597);const{cleanWithOptionsTask:R,isCleanOptionsArray:M}=n(4386);const{commitTask:P}=n(5494);const{diffSummaryTask:j}=n(9241);const{fetchTask:L}=n(8823);const{hashObjectTask:I}=n(8199);const{initTask:G}=n(6016);const{logTask:B,parseLogOptions:N}=n(8627);const{mergeTask:$}=n(8829);const{moveTask:x}=n(6520);const{pullTask:U}=n(4636);const{pushTagsTask:Y,pushTask:W}=n(1435);const{addRemoteTask:q,getRemotesTask:z,listRemotesTask:V,remoteTask:H,removeRemoteTask:Q}=n(9866);const{getResetMode:J,resetTask:Z}=n(2377);const{stashListTask:X}=n(810);const{statusTask:K}=n(9197);const{addSubModuleTask:_,initSubModuleTask:ee,subModuleTask:re,updateSubModuleTask:ne}=n(8772);const{addAnnotatedTagTask:te,addTagTask:oe,tagListTask:se}=n(8540);const{straightThroughStringTask:ie}=n(2815);const{parseCheckIgnore:ue}=n(9926);const ce=Symbol("ChainedExecutor");function Git(e){this._executor=new t(e.binary,e.baseDir,new o(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){const r=typeof e!=="string"?u("Git.cwd: workingDirectory must be supplied as a string"):i(()=>{if(!m(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e});return this._runTask(r,v(arguments)||c)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,r){return this._runTask(G(e===true,this._executor.cwd,b(arguments)),v(arguments))};Git.prototype.status=function(){return this._runTask(K(b(arguments)),v(arguments))};Git.prototype.stashList=function(e){return this._runTask(X(C(arguments)||{},l(e)&&e||[]),v(arguments))};Git.prototype.stash=function(e,r){return this._runTask(ie(["stash",...b(arguments)]),v(arguments))};function createCloneTask(e,r,n,t){if(typeof n!=="string"){return u(`git.${e}() requires a string 'repoPath'`)}return r(n,g(t,h),b(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",A,...arguments),v(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",w,...arguments),v(arguments))};Git.prototype.mv=function(e,r){return this._runTask(x(e,r),v(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),v(arguments))};Git.prototype.commit=function(e,r,n,t){const o=v(arguments);const s=[];if(d(e)){s.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(s,f(g(r,d,[])),[...g(n,l,[]),...b(arguments,0,true)]),o)};Git.prototype.pull=function(e,r,n,t){return this._runTask(U(g(e,h),g(r,h),b(arguments)),v(arguments))};Git.prototype.fetch=function(e,r){return this._runTask(L(g(e,h),g(r,h),b(arguments)),v(arguments))};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,r){return this._runTask(se(b(arguments)),v(arguments))};Git.prototype.rebase=function(){return this._run(["rebase"].concat(b(arguments)),v(arguments))};Git.prototype.reset=function(e,r){return this._runTask(Z(J(e),b(arguments)),v(arguments))};Git.prototype.revert=function(e){const r=v(arguments);if(typeof e!=="string"){return this._runTask(u("Commit must be a string"),r)}return this._run(["revert",...b(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,v(arguments))};Git.prototype.addAnnotatedTag=function(e,r,n){return this._runTask(te(e,r),v(arguments))};Git.prototype.checkout=function(e,r){const n=["checkout",...b(arguments,true)];return this._runTask(ie(n),v(arguments))};Git.prototype.checkoutBranch=function(e,r,n){return this.checkout(["-b",e,r],v(arguments))};Git.prototype.checkoutLocalBranch=function(e,r){return this.checkout(["-b",e],v(arguments))};Git.prototype.deleteLocalBranch=function(e,r,n){return this._runTask(E(e,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.deleteLocalBranches=function(e,r,n){return this._runTask(y(e,typeof r==="boolean"?r:false),v(arguments))};Git.prototype.branch=function(e,r){return this._runTask(O(b(arguments)),v(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(T(),v(arguments))};Git.prototype.addConfig=function(e,r,n,t){return this._runTask(D(e,r,typeof n==="boolean"?n:false),v(arguments))};Git.prototype.listConfig=function(){return this._runTask(F(),v(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:s,gitExportFactory:i}=n(1949);e.exports=o(i(s,{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 s=n(2377);Object.defineProperty(r,"ResetMode",{enumerable:true,get:function(){return s.ResetMode}});var i=n(1876);Object.defineProperty(r,"GitConstructError",{enumerable:true,get:function(){return i.GitConstructError}});var u=n(5757);Object.defineProperty(r,"GitError",{enumerable:true,get:function(){return u.GitError}});var c=n(5131);Object.defineProperty(r,"GitResponseError",{enumerable:true,get:function(){return c.GitResponseError}});var a=n(740);Object.defineProperty(r,"TaskConfigurationError",{enumerable:true,get:function(){return a.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,s=r.log){const i=e&&`[${e}]`||"";const u=[];const c=typeof n==="string"?s.extend(n):n;const a=childLoggerName(o.filterType(n,o.filterString),c,s);return step(t);function destroy(){u.forEach(e=>e.destroy());u.length=0}function child(r){return o.append(u,createLogger(e,c&&c.extend(r)||r))}function sibling(r,n){return o.append(u,createLogger(e,a.replace(/^[^:]+/,r),n,s))}function step(r){const n=r&&`[${r}]`||"";const t=c&&prefixedLogger(c,n)||o.NOOP;const u=prefixedLogger(s,`${i} ${n}`,t);return Object.assign(c?t:u,{key:a,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 s=n.includes(r);const i=n.includes(`-${r}`);if(!e){if(i){o.remove(n,`-${r}`)}else{n.push(r)}}else{if(s){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 s=/(\S+)\s+\(\S+\s([^)]+)\)/;const i=/^error[^']+'([^']+)'/m;const u=[new o.LineParser(s,(e,[r,n])=>{const o=t.branchDeletionSuccess(r,n);e.all.push(o);e.branches[r]=o}),new o.LineParser(i,(e,[r])=>{const n=t.branchDeletionFailure(r);e.errors.push(n);e.all.push(n);e.branches[r]=n})];const c=e=>{return o.parseStringResponse(new t.BranchDeletionBatch,u,e)};r.parseBranchDeletions=c;function hasBranchDeletionError(e,r){return r===o.ExitCodes.ERROR&&i.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 s=[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,s,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 s=["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=s){return function(s){const i=t.toLinesWithContent(s,true,r.START_BOUNDARY).map(function(t){const s=t.trim().split(r.COMMIT_BOUNDARY);const i=lineBuilder(s[0].trim().split(e),n);if(s.length>1&&!!s[1].trim()){i.diff=o.parseDiffResult(s[1])}return i});return{all:i,latest:i.length&&i[0]||null,total:i.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 s=n(5658);const i=[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),s.parsePullResult(e,n))};r.parseMergeResult=u;const c=e=>{return o.parseStringResponse(new t.MergeSummaryDetail,i,e)};r.parseMergeDetail=c},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 s=n(2661);const i=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const u=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const c=/^(create|delete) mode \d+ (.+)/;const a=[new o.LineParser(i,(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(c,(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,a,e,r)};r.parsePullDetail=f;const l=(e,n)=>{return Object.assign(new t.PullSummary,r.parsePullDetail(e,n),s.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 s=!n.includes("new");return{deleted:t,tag:o,branch:!o,new:!s,alreadyUpdated:s,local:e,remote:r}}const s=[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 i=(e,n)=>{const t=r.parsePushDetail(e,n);const s=o.parseRemoteMessages(e,n);return Object.assign(Object.assign({},t),s)};r.parsePushResult=i;const u=(e,r)=>{return t.parseStringResponse({pushed:[]},s,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 s=[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},s,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 s=objectEnumerationResult(e.remoteMessages);Object.assign(s,{[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 s=objectEnumerationResult(e.remoteMessages);Object.assign(s,{[o]:t.asNumber(n)})}),new t.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[r,n,o])=>{const s=objectEnumerationResult(e.remoteMessages);s.total=asObjectCount(r);s.reused=asObjectCount(n);s.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 s=/^[a-z]+\s+[a-z]+\s*/i;const i=/\/$/;function cleanSummaryParser(e,r){const n=new CleanResponse(e);const u=e?s:o;t.toLinesWithContent(r).forEach(e=>{const r=e.replace(u,"");n.paths.push(r);(i.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 s=String(o).trim();let i;if(i=n.exec(s)){return new InitSummary(e,r,false,i[1])}if(i=t.exec(s)){return new InitSummary(e,r,true,i[1])}let u="";const c=s.split(" ");while(c.length){const e=c.shift();if(e==="in"){u=c.join(" ");break}}return new InitSummary(e,r,/^re/i.test(s),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 s;(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"]=" "})(s||(s={}));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 i=new Map([parser(s.NONE,s.ADDED,(e,r)=>t.append(e.created,r)),parser(s.NONE,s.DELETED,(e,r)=>t.append(e.deleted,r)),parser(s.NONE,s.MODIFIED,(e,r)=>t.append(e.modified,r)),parser(s.ADDED,s.NONE,(e,r)=>t.append(e.created,r)&&t.append(e.staged,r)),parser(s.ADDED,s.MODIFIED,(e,r)=>t.append(e.created,r)&&t.append(e.staged,r)&&t.append(e.modified,r)),parser(s.DELETED,s.NONE,(e,r)=>t.append(e.deleted,r)&&t.append(e.staged,r)),parser(s.MODIFIED,s.NONE,(e,r)=>t.append(e.modified,r)&&t.append(e.staged,r)),parser(s.MODIFIED,s.MODIFIED,(e,r)=>t.append(e.modified,r)&&t.append(e.staged,r)),parser(s.RENAMED,s.NONE,(e,r)=>{t.append(e.renamed,renamedFile(r))}),parser(s.RENAMED,s.MODIFIED,(e,r)=>{const n=renamedFile(r);t.append(e.renamed,n);t.append(e.modified,n.to)}),parser(s.UNTRACKED,s.UNTRACKED,(e,r)=>t.append(e.not_added,r)),...conflicts(s.ADDED,s.ADDED,s.UNMERGED),...conflicts(s.DELETED,s.DELETED,s.UNMERGED),...conflicts(s.UNMERGED,s.ADDED,s.DELETED,s.UNMERGED),["##",(e,r)=>{const n=/ahead (\d+)/;const t=/behind (\d+)/;const o=/^(.+?(?=(?:\.{3}|\s|$)))/;const s=/\.{3}(\S*)/;const i=/\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=s.exec(r);e.tracking=u&&u[1];u=i.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 s=n(4732);const i=n(2815);const u=n(6676);const c=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 i.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 s.GitError?Object.assign(r,{task:e}):new s.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(i.isBufferTask(e)){return c.callTaskParser(e.parser,t)}return c.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},s){return new Promise((i,u)=>{s(`Preparing to handle process response exitCode=%d stdOut=`,n);if(n&&o.length&&e){s.info(`exitCode=%s handling with custom error handler`);s(`concatenate stdErr to stdOut: %j`,r);return e(n,Buffer.concat([...r?t:[],...o]).toString("utf-8"),e=>{s.info(`custom error handler treated as success`);s(`custom error returned a %s`,c.objectToString(e));i(new c.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(o)))},u)}if(n&&o.length){s.info(`exitCode=%s treated as error when then child process has written to stdErr`);return u(Buffer.concat(o).toString("utf-8"))}if(r){s(`concatenating stdErr onto stdOut before processing`);s(`stdErr: $O`,o);t.push(...o)}s.info(`retrieving task output complete`);i(new c.GitOutputStreams(Buffer.concat(t),Buffer.concat(o)))})}gitResponse(e,r,n,s){return t(this,void 0,void 0,function*(){const t=s.sibling("output");const i={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise(u=>{const c=[];const a=[];let f=false;function attemptClose(e,r="retry"){if(f||a.length||c.length){s.info(`exitCode=%s event=%s`,e,r);u({stdOut:c,stdErr:a,exitCode:e});f=true;t.destroy()}if(!f){f=true;setTimeout(()=>attemptClose(e,"deferred"),50);s("received %s event before content on stdOut/stdErr",r)}}s.info(`%s %o`,e,r);s("%O",i);const l=o.spawn(e,r,i);l.stdout.on("data",onDataReceived(c,"stdOut",s,t.step("stdOut")));l.stderr.on("data",onDataReceived(a,"stdErr",s,t.step("stdErr")));l.on("error",onErrorReceived(a,s));l.on("close",e=>attemptClose(e,"close"));l.on("exit",e=>attemptClose(e,"exit"));if(n){s(`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 s=["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:i}=n(1949);function gitP(...e){let r;let n=Promise.resolve();try{r=i(...e)}catch(e){n=Promise.reject(e)}function builderReturn(){return t}function chainReturn(){return n}const t=[...o,...s].reduce((e,n)=>{const t=s.includes(n);const o=t?asyncWrapper(n,r):syncWrapper(n,r,e);const i=t?chainReturn:builderReturn;Object.defineProperty(e,n,{enumerable:false,configurable:false,value:r?o:i});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 s=(e,r)=>{if(e){return o(toError(e))}n(r)};t.push(s);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 s=n(7178);const i=s.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=[];i(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){i(`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());i(`Attempting id=%s`,e.id);e.done(()=>{i(`Completing id=`,e.id);t.remove(this.running,e);this.schedule()})}next(){const{promise:e,id:r}=t.append(this.pending,u());i(`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 s=e=>{n(null,e)};const i=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(s,i)}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 s=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 s.parseBranchSummary(e)}}}r.branchTask=branchTask;function branchLocalTask(){const e=s.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,s,i){if(!o.hasBranchDeletionError(r,e)){return i(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 s=(e,r,n,o)=>{if(e===t.ExitCodes.UNCLEAN&&isNotRepoMessage(r)){return n("false")}o(r)};const i=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:s,parser:i}}r.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:s,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:s,parser:i}}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 s=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 i;(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"})(i=r.CleanOptions||(r.CleanOptions={}));const u=new Set(["i",...o.asStringArray(Object.values(i))]);function cleanWithOptionsTask(e,n){const{cleanMode:t,options:o,valid:i}=getCleanOptions(e);if(!t){return s.configurationErrorTask(r.CONFIG_ERROR_MODE_REQUIRED)}if(!i.options){return s.configurationErrorTask(r.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}o.push(...n);if(o.some(isInteractiveMode)){return s.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===i.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===i.FORCE||e===i.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 s=["init",...n];if(e&&!hasBareCommand(s)){s.splice(1,0,o)}return{commands:s,concatStdErr:false,format:"utf-8",parser(e){return t.parseInit(s.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 s=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])=>!s.has(e)))}function parseLogOptions(e={},r=[]){const n=e.splitter||t.SPLITTER;const s=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[i,u]=prettyFormat(s,n);const c=[];const a=[`--pretty=format:${t.START_BOUNDARY}${u}${t.COMMIT_BOUNDARY}`,...r];const f=e.n||e["max-count"]||e.maxCount;if(f){a.push(`--max-count=${f}`)}if(e.from&&e.to){const r=e.symmetric!==false?"...":"..";c.push(`${e.from}${r}${e.to}`)}if(e.file){c.push("--follow",e.file)}o.appendTaskOptions(userOptions(e),a);return{fields:i,splitter:n,commands:[...a,...c]}}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 s=n(2815);function mergeTask(e){if(!e.length){return s.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 s=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 s.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 s=t.createListLogSummaryParser(n.splitter,n.fields);return{commands:["stash","list",...n.commands,...r],format:"utf-8",parser:s}}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(8237);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 s=e=>{return typeof e==="string"};r.filterString=s;const i=e=>{return Array.isArray(e)&&e.every(r.filterString)};r.filterStringArray=i;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 c=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=c},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(8237),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(8237);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(8237);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),s=0,i=o.length;s{if(s+e>=i){return}return o[s+e]};r.some(({parse:r})=>r(n,e))}});return e}r.parseStringResponse=parseStringResponse},8237:(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(3867);const s=n(1621);const{env:i}=process;let u;if(s("no-color")||s("no-colors")||s("color=false")||s("color=never")){u=0}else if(s("color")||s("colors")||s("color=true")||s("color=always")){u=1}if("FORCE_COLOR"in i){if(i.FORCE_COLOR==="true"){u=1}else if(i.FORCE_COLOR==="false"){u=0}else{u=i.FORCE_COLOR.length===0?1:Math.min(parseInt(i.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,r){if(u===0){return 0}if(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!r&&u===undefined){return 0}const n=u||0;if(i.TERM==="dumb"){return n}if(process.platform==="win32"){const e=t.release().split(".");if(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","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in i)||i.CI_NAME==="codeship"){return 1}return n}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}return n}function getSupportLevel(e){const r=supportsColor(e,e&&e.isTTY);return translateLevel(r)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,o.isatty(1))),stderr:translateLevel(supportsColor(true,o.isatty(2)))}},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 s=n(2186);const i=o(n(5622));const u=o(n(1477));const c=o(n(1917));const a=n(2629);const f=i.default.join(process.cwd(),a.getInput("cwd")||"");const l=u.default({baseDir:f});console.log(`Running in ${f}`);(()=>t(void 0,void 0,void 0,function*(){var e;yield checkInputs().catch(s.setFailed);s.startGroup("Internal logs");s.info("> Staging files...");if(a.getInput("add")){s.info("> Adding files...");yield add()}else s.info("> No files to add.");if(a.getInput("remove")){s.info("> Removing files...");yield remove()}else s.info("> No files to remove.");s.info("> Checking for uncommitted changes in the git working tree...");const r=(yield l.diffSummary(["--cached"])).files.length;if(r>0){s.info(`> Found ${r} changed files.`);yield l.addConfig("user.email",a.getInput("author_email"),undefined,a.log).addConfig("user.name",a.getInput("author_name"),undefined,a.log);s.debug("> Current git config\n"+JSON.stringify((yield l.listConfig()).all,null,2));yield l.fetch(["--tags","--force"],a.log);s.info("> Switching/creating branch...");yield l.checkout(a.getInput("branch"),undefined,a.log).catch(()=>l.checkoutLocalBranch(a.getInput("branch"),a.log));if(a.getInput("pull_strategy")=="NO-PULL")s.info("> Not pulling from repo.");else{s.info("> Pulling from remote...");yield l.fetch(undefined,a.log).pull(undefined,undefined,{[a.getInput("pull_strategy")]:null},a.log)}s.info("> Re-staging files...");if(a.getInput("add"))yield add({ignoreErrors:true});if(a.getInput("remove"))yield remove({ignoreErrors:true});s.info("> Creating commit...");yield l.commit(a.getInput("message"),undefined,Object.assign({"--author":`"${a.getInput("author_name")} <${a.getInput("author_email")}>"`},a.getInput("signoff")?{"--signoff":null}:{}),(e,r)=>{if(r)a.setOutput("committed","true");return a.log(e,r)});if(a.getInput("tag")){s.info("> Tagging commit...");yield l.tag(a.matchGitArgs(a.getInput("tag")),(e,r)=>{if(r)a.setOutput("tagged","true");return a.log(e,r)}).then(e=>{a.setOutput("tagged","true");return a.log(null,e)}).catch(e=>s.setFailed(e))}else s.info("> No tag info provided.");const n=(e=a.parseBool(a.getInput("push")))!==null&&e!==void 0?e:a.getInput("push");if(n){s.info("> Pushing commit to repo...");if(n===true){s.debug(`Running: git push origin ${a.getInput("branch")} --set-upstream`);yield l.push("origin",a.getInput("branch"),{"--set-upstream":null},(e,r)=>{if(r)a.setOutput("pushed","true");return a.log(e,r)})}else{s.debug(`Running: git push ${n}`);yield l.push(undefined,undefined,a.matchGitArgs(n),(e,r)=>{if(r)a.setOutput("pushed","true");return a.log(e,r)})}if(a.getInput("tag")){s.info("> Pushing tags to repo...");yield l.pushTags("origin",undefined,(e,r)=>a.log(undefined,e||r)).catch(()=>{s.info("> Tag push failed: deleting remote tag and re-pushing...");return l.push(undefined,undefined,{"--delete":null,origin:null,[a.matchGitArgs(a.getInput("tag")).filter(e=>!e.startsWith("-"))[0]]:null},a.log).pushTags("origin",undefined,a.log)})}else s.info("> No tags to push.")}else s.info("> Not pushing anything.");s.endGroup();s.info("> Task completed.")}else{s.endGroup();s.info("> Working tree clean. Nothing to commit.")}}))().then(logOutputs).catch(e=>{s.endGroup();logOutputs();s.setFailed(e)});function checkInputs(){var e,r,n,o;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(!a.getInput(e))setInput(e,r);return a.getInput(e)}const t=process.env.GITHUB_EVENT_PATH,i=t&&require(t),u=(e=process.env.GITHUB_EVENT_NAME)===null||e===void 0?void 0:e.includes("pull_request"),c=u?(n=(r=i===null||i===void 0?void 0:i.pull_request)===null||r===void 0?void 0:r.head)===null||n===void 0?void 0:n.ref:(o=process.env.GITHUB_REF)===null||o===void 0?void 0:o.substring(11);if(!a.getInput("add")&&!a.getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(a.getInput("add")){const e=parseInputArray(a.getInput("add"));if(e.length==1)s.info("Add input parsed as single string, running 1 git add command.");else if(e.length>1)s.info(`Add input parsed as string array, running ${e.length} git add commands.`);else s.setFailed("Add input: array length < 1")}if(a.getInput("remove")){const e=parseInputArray(a.getInput("remove"));if(e.length==1)s.info("Remove input parsed as single string, running 1 git rm command.");else if(e.length>1)s.info(`Remove input parsed as string array, running ${e.length} git rm commands.`);else s.setFailed("Remove input: array length < 1")}setDefault("author_name",`${process.env.GITHUB_ACTOR}`);setDefault("author_email",`${process.env.GITHUB_ACTOR}@users.noreply.github.com`);s.info(`> Using '${a.getInput("author_name")} <${a.getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);s.info(`> Using "${a.getInput("message")}" as commit message.`);const f=setDefault("branch",c||"");if(u)s.info(`> Running for a PR, the action will use '${f}' as ref.`);if(a.getInput("signoff")){const e=a.parseBool(a.getInput("signoff"));if(e===undefined)throw new Error(`"${a.getInput("signoff")}" is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`);if(!e)setInput("signoff",undefined);s.debug(`Current signoff option: ${a.getInput("signoff")} (${typeof a.getInput("signoff")})`)}if(a.getInput("pull_strategy")=="NO-PULL")s.debug("NO-PULL found: won't pull from remote.");if(a.getInput("push")){const e=a.parseBool(a.getInput("push"));s.debug(`Current push option: '${a.getInput("push")}' (parsed as ${typeof e})`)}})}function add({logWarning:e=true,ignoreErrors:r=false}={}){return t(this,void 0,void 0,function*(){const n=a.getInput("add");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield l.add(a.matchGitArgs(n),(e,n)=>a.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)s.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=a.getInput("remove");if(!n)return[];const t=parseInputArray(n);const o=[];for(const n of t){o.push(yield l.rm(a.matchGitArgs(n),(e,n)=>a.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&&s.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")){s.debug(`Input parsed as JSON array of length ${r.length}`);return r}}catch(e){}try{const r=c.default.load(e);if(r&&Array.isArray(r)&&r.every(e=>typeof e=="string")){s.debug(`Input parsed as YAML array of length ${r.length}`);return r}}catch(e){}s.debug("Input parsed as single string");return[e]}function logOutputs(){s.startGroup("Outputs");for(const e in a.outputs){s.info(`${e}: ${a.outputs[e]}`)}s.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 s=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.matchGitArgs=r.log=r.getInput=r.outputs=void 0;const i=s(n(2186));r.outputs={committed:"false",pushed:"false",tagged:"false"};function getInput(e){return i.getInput(e)}r.getInput=getInput;function log(e,r){if(r)console.log(r);if(e)i.error(e)}r.log=log;function matchGitArgs(e){return e.match(/(?:[^\s"]+|"[^"]*")+/g)||[]}r.matchGitArgs=matchGitArgs;function parseBool(e){try{const r=JSON.parse(e);if(typeof r=="boolean")return r}catch(e){}}r.parseBool=parseBool;function setOutput(e,n){i.debug(`Setting output: ${e}=${n}`);r.outputs[e]=n;return i.setOutput(e,n)}r.setOutput=setOutput;for(const e in r.outputs)setOutput(e,r.outputs[e])},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},3867:e=>{"use strict";e.exports=require("tty")},1669:e=>{"use strict";e.exports=require("util")}};var r={};function __nccwpck_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,__nccwpck_require__);o=false}finally{if(o)delete r[n]}return t.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(399)})(); \ No newline at end of file +(()=>{var e={7351:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(2087));const i=r(5278);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${o}${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,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=r(7351);const o=r(717);const a=r(5278);const u=s(r(2087));const c=s(r(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;o.issueCommand("ENV",n)}else{i.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){i.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{i.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){i.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){i.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){i.issueCommand("debug",{},e)}t.debug=debug;function error(e){i.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){i.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){i.issue("group",e)}t.startGroup=startGroup;function endGroup(){i.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){i.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},717:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=n(r(5747));const i=n(r(2087));const o=r(5278);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${o.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__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)}t.toCommandValue=toCommandValue},4751:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});__export(r(2825))},2825:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const s=r(5747);const i=n(r(8231));const o=i.default("@kwsites/file-exists");function check(e,t,r){o(`checking %s`,e);try{const n=s.statSync(e);if(n.isFile()&&t){o(`[OK] path represents a file`);return true}if(n.isDirectory()&&r){o(`[OK] path represents a directory`);return true}o(`[FAIL] path represents something other than a file or directory`);return false}catch(e){if(e.code==="ENOENT"){o(`[FAIL] path is not accessible: %o`,e);return false}o(`[FATAL] %o`,e);throw e}}function exists(e,r=t.READABLE){return check(e,(r&t.FILE)>0,(r&t.FOLDER)>0)}t.exists=exists;t.FILE=1;t.FOLDER=2;t.READABLE=t.FILE+t.FOLDER},9819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDeferred=t.deferred=void 0;function deferred(){let e;let t;let r="pending";const n=new Promise(((r,n)=>{e=r;t=n}));return{promise:n,done(t){if(r==="pending"){r="resolved";e(t)}},fail(e){if(r==="pending"){r="rejected";t(e)}},get fulfilled(){return r!=="pending"},get status(){return r}}}t.deferred=deferred;t.createDeferred=deferred;t.default=deferred},8222:(e,t,r)=>{t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||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(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){s=n}}));t.splice(s,0,r)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.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=r(6243)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6243:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return t}i++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=e[i];t=s.call(r,n);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,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,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(8222)}else{e.exports=r(5332)}},5332:(e,t,r)=>{const n=r(3867);const s=r(1669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const i=` ${s};1m${r} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.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 r=Object.keys(t.inspectOpts);for(let n=0;n{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1||n{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var i=s*7;var o=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\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(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*s;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var i=Math.abs(e);if(i>=s){return Math.round(e/s)+"d"}if(i>=n){return Math.round(e/n)+"h"}if(i>=r){return Math.round(e/r)+"m"}if(i>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=s){return plural(e,i,s,"day")}if(i>=n){return plural(e,i,n,"hour")}if(i>=r){return plural(e,i,r,"minute")}if(i>=t){return plural(e,i,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},254:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.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`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||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(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){s=n}}));t.splice(s,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.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=r(8867)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},8867:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(900);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}i++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=e[i];t=s.call(r,n);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,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:()=>r===null?createDebug.enabled(e):r,set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(254)}else{e.exports=r(675)}},675:(e,t,r)=>{const n=r(3867);const s=r(1669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(9318);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const i=` ${s};1m${r} `;t[0]=i+t[0].split("\n").join("\n"+i);t.push(s+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.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 r=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},1949:(e,t,r)=>{const n=r(4966);const{GitConstructError:s}=r(4732);const{createInstanceConfig:i,folderExists:o}=r(847);const a=Object.create(null);for(let e=r(4732),t=Object.keys(e),n=0;n{const{GitExecutor:n}=r(4701);const{Scheduler:s}=r(3421);const{GitLogger:i}=r(7178);const{adhocExecTask:o,configurationErrorTask:a}=r(2815);const{NOOP:u,appendTaskOptions:c,asArray:l,filterArray:f,filterPrimitives:p,filterString:d,filterStringOrStringArray:h,filterType:g,folderExists:m,getTrailingOptions:y,trailingFunctionArgument:b,trailingOptionsArgument:v}=r(847);const{branchTask:C,branchLocalTask:k,deleteBranchesTask:_,deleteBranchTask:O}=r(17);const{taskCallback:T}=r(8850);const{checkIsRepoTask:w}=r(221);const{cloneTask:E,cloneMirrorTask:S}=r(3173);const{addConfigTask:A,listConfigTask:R}=r(7597);const{cleanWithOptionsTask:D,isCleanOptionsArray:I}=r(4386);const{commitTask:F}=r(5494);const{diffSummaryTask:M}=r(9241);const{fetchTask:L}=r(8823);const{hashObjectTask:P}=r(8199);const{initTask:x}=r(6016);const{logTask:N,parseLogOptions:j}=r(8627);const{mergeTask:G}=r(8829);const{moveTask:B}=r(6520);const{pullTask:$}=r(4636);const{pushTagsTask:U,pushTask:Y}=r(1435);const{addRemoteTask:W,getRemotesTask:q,listRemotesTask:H,remoteTask:V,removeRemoteTask:z}=r(9866);const{getResetMode:K,resetTask:Q}=r(2377);const{stashListTask:J}=r(810);const{statusTask:Z}=r(9197);const{addSubModuleTask:X,initSubModuleTask:ee,subModuleTask:te,updateSubModuleTask:re}=r(8772);const{addAnnotatedTagTask:ne,addTagTask:se,tagListTask:ie}=r(8540);const{straightThroughStringTask:oe}=r(2815);const{parseCheckIgnore:ae}=r(9926);const ue=Symbol("ChainedExecutor");function Git(e){this._executor=new n(e.binary,e.baseDir,new s(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,t){if(arguments.length===1&&typeof e==="object"){this._executor.env=e}else{(this._executor.env=this._executor.env||{})[e]=t}return this};Git.prototype.cwd=function(e){const t=typeof e!=="string"?a("Git.cwd: workingDirectory must be supplied as a string"):o((()=>{if(!m(e)){throw new Error(`Git.cwd: cannot change to non-directory "${e}"`)}return this._executor.cwd=e}));return this._runTask(t,b(arguments)||u)};Git.prototype.outputHandler=function(e){this._executor.outputHandler=e;return this};Git.prototype.init=function(e,t){return this._runTask(x(e===true,this._executor.cwd,y(arguments)),b(arguments))};Git.prototype.status=function(){return this._runTask(Z(y(arguments)),b(arguments))};Git.prototype.stashList=function(e){return this._runTask(J(v(arguments)||{},f(e)&&e||[]),b(arguments))};Git.prototype.stash=function(e,t){return this._runTask(oe(["stash",...y(arguments)]),b(arguments))};function createCloneTask(e,t,r,n){if(typeof r!=="string"){return a(`git.${e}() requires a string 'repoPath'`)}return t(r,g(n,d),y(arguments))}Git.prototype.clone=function(){return this._runTask(createCloneTask("clone",E,...arguments),b(arguments))};Git.prototype.mirror=function(){return this._runTask(createCloneTask("mirror",S,...arguments),b(arguments))};Git.prototype.mv=function(e,t){return this._runTask(B(e,t),b(arguments))};Git.prototype.checkoutLatestTag=function(e){var t=this;return this.pull((function(){t.tags((function(r,n){t.checkout(n.latest,e)}))}))};Git.prototype.add=function(e){return this._run(["add"].concat(e),b(arguments))};Git.prototype.commit=function(e,t,r,n){const s=b(arguments);const i=[];if(h(e)){i.push(...l(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(F(i,l(g(t,h,[])),[...g(r,f,[]),...y(arguments,0,true)]),s)};Git.prototype.pull=function(e,t,r,n){return this._runTask($(g(e,d),g(t,d),y(arguments)),b(arguments))};Git.prototype.fetch=function(e,t){return this._runTask(L(g(e,d),g(t,d),y(arguments)),b(arguments))};Git.prototype.silent=function(e){this._logger.silent(!!e);return this};Git.prototype.tags=function(e,t){return this._runTask(ie(y(arguments)),b(arguments))};Git.prototype.rebase=function(){return this._run(["rebase"].concat(y(arguments)),b(arguments))};Git.prototype.reset=function(e,t){return this._runTask(Q(K(e),y(arguments)),b(arguments))};Git.prototype.revert=function(e){const t=b(arguments);if(typeof e!=="string"){return this._runTask(a("Commit must be a string"),t)}return this._run(["revert",...y(arguments,0,true),e],t)};Git.prototype.addTag=function(e,t){const r=typeof e==="string"?se(e):a("Git.addTag requires a tag name");return this._runTask(r,b(arguments))};Git.prototype.addAnnotatedTag=function(e,t,r){return this._runTask(ne(e,t),b(arguments))};Git.prototype.checkout=function(e,t){const r=["checkout",...y(arguments,true)];return this._runTask(oe(r),b(arguments))};Git.prototype.checkoutBranch=function(e,t,r){return this.checkout(["-b",e,t],b(arguments))};Git.prototype.checkoutLocalBranch=function(e,t){return this.checkout(["-b",e],b(arguments))};Git.prototype.deleteLocalBranch=function(e,t,r){return this._runTask(O(e,typeof t==="boolean"?t:false),b(arguments))};Git.prototype.deleteLocalBranches=function(e,t,r){return this._runTask(_(e,typeof t==="boolean"?t:false),b(arguments))};Git.prototype.branch=function(e,t){return this._runTask(C(y(arguments)),b(arguments))};Git.prototype.branchLocal=function(e){return this._runTask(k(),b(arguments))};Git.prototype.addConfig=function(e,t,r,n){return this._runTask(A(e,t,typeof r==="boolean"?r:false),b(arguments))};Git.prototype.listConfig=function(){return this._runTask(R(),b(arguments))};Git.prototype.raw=function(e){const t=!Array.isArray(e);const r=[].slice.call(t?arguments:e,0);for(let e=0;e{const{gitP:n}=r(941);const{esModuleFactory:s,gitInstanceFactory:i,gitExportFactory:o}=r(1949);e.exports=s(o(i,{gitP:n}))},4732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaskConfigurationError=t.GitResponseError=t.GitError=t.GitConstructError=t.ResetMode=t.CheckRepoActions=t.CleanOptions=void 0;var n=r(4386);Object.defineProperty(t,"CleanOptions",{enumerable:true,get:function(){return n.CleanOptions}});var s=r(221);Object.defineProperty(t,"CheckRepoActions",{enumerable:true,get:function(){return s.CheckRepoActions}});var i=r(2377);Object.defineProperty(t,"ResetMode",{enumerable:true,get:function(){return i.ResetMode}});var o=r(1876);Object.defineProperty(t,"GitConstructError",{enumerable:true,get:function(){return o.GitConstructError}});var a=r(5757);Object.defineProperty(t,"GitError",{enumerable:true,get:function(){return a.GitError}});var u=r(5131);Object.defineProperty(t,"GitResponseError",{enumerable:true,get:function(){return u.GitResponseError}});var c=r(740);Object.defineProperty(t,"TaskConfigurationError",{enumerable:true,get:function(){return c.TaskConfigurationError}})},1876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitConstructError=void 0;const n=r(5757);class GitConstructError extends n.GitError{constructor(e,t){super(undefined,t);this.config=e}}t.GitConstructError=GitConstructError},5757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitError=void 0;class GitError extends Error{constructor(e,t){super(t);this.task=e;Object.setPrototypeOf(this,new.target.prototype)}}t.GitError=GitError},5131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitResponseError=void 0;const n=r(5757);class GitResponseError extends n.GitError{constructor(e,t){super(undefined,t||String(e));this.git=e}}t.GitResponseError=GitResponseError},740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaskConfigurationError=void 0;const n=r(5757);class TaskConfigurationError extends n.GitError{constructor(e){super(undefined,e)}}t.TaskConfigurationError=TaskConfigurationError},7178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitLogger=t.createLogger=t.log=void 0;const n=r(2179);const s=r(847);n.default.formatters.L=e=>String(s.filterHasLength(e)?e.length:"-");n.default.formatters.B=e=>{if(Buffer.isBuffer(e)){return e.toString("utf8")}return s.objectToString(e)};t.log=n.default("simple-git");function prefixedLogger(e,t,r){if(!t||!String(t).replace(/\s*/,"")){return!r?e:(t,...n)=>{e(t,...n);r(t,...n)}}return(n,...s)=>{e(`%s ${n}`,t,...s);if(r){r(n,...s)}}}function childLoggerName(e,t,{namespace:r}){if(typeof e==="string"){return e}const n=t&&t.namespace||"";if(n.startsWith(r)){return n.substr(r.length+1)}return n||r}function createLogger(e,r,n,i=t.log){const o=e&&`[${e}]`||"";const a=[];const u=typeof r==="string"?i.extend(r):r;const c=childLoggerName(s.filterType(r,s.filterString),u,i);return step(n);function destroy(){a.forEach((e=>e.destroy()));a.length=0}function child(t){return s.append(a,createLogger(e,u&&u.extend(t)||t))}function sibling(t,r){return s.append(a,createLogger(e,c.replace(/^[^:]+/,t),r,i))}function step(t){const r=t&&`[${t}]`||"";const n=u&&prefixedLogger(u,r)||s.NOOP;const a=prefixedLogger(i,`${o} ${r}`,n);return Object.assign(u?n:a,{key:c,label:e,child:child,sibling:sibling,debug:n,info:a,step:step,destroy:destroy})}}t.createLogger=createLogger;class GitLogger{constructor(e=t.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:t}=this._out;const r=(process.env.DEBUG||"").split(",").filter((e=>!!e));const i=r.includes(t);const o=r.includes(`-${t}`);if(!e){if(o){s.remove(r,`-${t}`)}else{r.push(t)}}else{if(i){s.remove(r,t)}else{r.push(`-${t}`)}}n.default.enable(r.join(","))}}t.GitLogger=GitLogger},6086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasBranchDeletionError=t.parseBranchDeletions=void 0;const n=r(3755);const s=r(847);const i=/(\S+)\s+\(\S+\s([^)]+)\)/;const o=/^error[^']+'([^']+)'/m;const a=[new s.LineParser(i,((e,[t,r])=>{const s=n.branchDeletionSuccess(t,r);e.all.push(s);e.branches[t]=s})),new s.LineParser(o,((e,[t])=>{const r=n.branchDeletionFailure(t);e.errors.push(r);e.all.push(r);e.branches[t]=r}))];const parseBranchDeletions=e=>s.parseStringResponse(new n.BranchDeletionBatch,a,e);t.parseBranchDeletions=parseBranchDeletions;function hasBranchDeletionError(e,t){return t===s.ExitCodes.ERROR&&o.test(e)}t.hasBranchDeletionError=hasBranchDeletionError},9264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseBranchSummary=void 0;const n=r(4446);const s=r(847);const i=[new s.LineParser(/^(\*\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,((e,[t,r,n,s])=>{e.push(!!t,true,r,n,s)})),new s.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/,((e,[t,r,n,s])=>{e.push(!!t,false,r,n,s)}))];function parseBranchSummary(e){return s.parseStringResponse(new n.BranchSummaryResult,i,e)}t.parseBranchSummary=parseBranchSummary},3026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCommitResult=void 0;const n=r(847);const s=[new n.LineParser(/\[([^\s]+) ([^\]]+)/,((e,[t,r])=>{e.branch=t;e.commit=r})),new n.LineParser(/\s*Author:\s(.+)/i,((e,[t])=>{const r=t.split("<");const n=r.pop();if(!n||!n.includes("@")){return}e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}})),new n.LineParser(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,((e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;e.summary.insertions=parseInt(r,10)||0;e.summary.deletions=parseInt(n,10)||0})),new n.LineParser(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,((e,[t,r,n])=>{e.summary.changes=parseInt(t,10)||0;const s=parseInt(r,10)||0;if(n==="-"){e.summary.deletions=s}else if(n==="+"){e.summary.insertions=s}}))];function parseCommitResult(e){const t={author:null,branch:"",commit:"",summary:{changes:0,insertions:0,deletions:0}};return n.parseStringResponse(t,s,e)}t.parseCommitResult=parseCommitResult},2024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseDiffResult=void 0;const n=r(4781);function parseDiffResult(e){const t=e.trim().split("\n");const r=new n.DiffSummary;readSummaryLine(r,t.pop());for(let e=0,n=t.length;e ([0-9.]+) ([a-z]+)$/);if(r){t.push({file:r[1].trim(),before:+r[2],after:+r[3],binary:true});return true}return false}},6254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseFetchResult=void 0;const n=r(847);const s=[new n.LineParser(/From (.+)$/,((e,[t])=>{e.remote=t})),new n.LineParser(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.branches.push({name:t,tracking:r})})),new n.LineParser(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,((e,[t,r])=>{e.tags.push({name:t,tracking:r})}))];function parseFetchResult(e,t){const r={raw:e,remote:null,branches:[],tags:[]};return n.parseStringResponse(r,s,e,t)}t.parseFetchResult=parseFetchResult},9729:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createListLogSummaryParser=t.SPLITTER=t.COMMIT_BOUNDARY=t.START_BOUNDARY=void 0;const n=r(847);const s=r(2024);t.START_BOUNDARY="òòòòòò ";t.COMMIT_BOUNDARY=" òò";t.SPLITTER=" ò ";const i=["hash","date","message","refs","author_name","author_email"];function lineBuilder(e,t){return t.reduce(((t,r,n)=>{t[r]=e[n]||"";return t}),Object.create({diff:null}))}function createListLogSummaryParser(e=t.SPLITTER,r=i){return function(i){const o=n.toLinesWithContent(i,true,t.START_BOUNDARY).map((function(n){const i=n.trim().split(t.COMMIT_BOUNDARY);const o=lineBuilder(i[0].trim().split(e),r);if(i.length>1&&!!i[1].trim()){o.diff=s.parseDiffResult(i[1])}return o}));return{all:o,latest:o.length&&o[0]||null,total:o.length}}}t.createListLogSummaryParser=createListLogSummaryParser},6412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMergeDetail=t.parseMergeResult=void 0;const n=r(1651);const s=r(847);const i=r(5658);const o=[new s.LineParser(/^Auto-merging\s+(.+)$/,((e,[t])=>{e.merges.push(t)})),new s.LineParser(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((e,[t,r])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r))})),new s.LineParser(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((e,[t,r,s])=>{e.conflicts.push(new n.MergeSummaryConflict(t,r,{deleteRef:s}))})),new s.LineParser(/^CONFLICT\s+\((.+)\):/,((e,[t])=>{e.conflicts.push(new n.MergeSummaryConflict(t,null))})),new s.LineParser(/^Automatic merge failed;\s+(.+)$/,((e,[t])=>{e.result=t}))];const parseMergeResult=(e,r)=>Object.assign(t.parseMergeDetail(e,r),i.parsePullResult(e,r));t.parseMergeResult=parseMergeResult;const parseMergeDetail=e=>s.parseStringResponse(new n.MergeSummaryDetail,o,e);t.parseMergeDetail=parseMergeDetail},7444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseMoveResult=void 0;const n=r(847);const s=[new n.LineParser(/^Renaming (.+) to (.+)$/,((e,[t,r])=>{e.moves.push({from:t,to:r})}))];function parseMoveResult(e){return n.parseStringResponse({moves:[]},s,e)}t.parseMoveResult=parseMoveResult},5658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePullResult=t.parsePullDetail=void 0;const n=r(3567);const s=r(847);const i=r(2661);const o=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;const a=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;const u=/^(create|delete) mode \d+ (.+)/;const c=[new s.LineParser(o,((e,[t,r,n])=>{e.files.push(t);if(r){e.insertions[t]=r.length}if(n){e.deletions[t]=n.length}})),new s.LineParser(a,((e,[t,,r,,n])=>{if(r!==undefined||n!==undefined){e.summary.changes=+t||0;e.summary.insertions=+r||0;e.summary.deletions=+n||0;return true}return false})),new s.LineParser(u,((e,[t,r])=>{s.append(e.files,r);s.append(t==="create"?e.created:e.deleted,r)}))];const parsePullDetail=(e,t)=>s.parseStringResponse(new n.PullSummary,c,e,t);t.parsePullDetail=parsePullDetail;const parsePullResult=(e,r)=>Object.assign(new n.PullSummary,t.parsePullDetail(e,r),i.parseRemoteMessages(e,r));t.parsePullResult=parsePullResult},8530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parsePushDetail=t.parsePushResult=void 0;const n=r(847);const s=r(2661);function pushResultPushedItem(e,t,r){const n=r.includes("deleted");const s=r.includes("tag")||/^refs\/tags/.test(e);const i=!r.includes("new");return{deleted:n,tag:s,branch:!s,new:!i,alreadyUpdated:i,local:e,remote:t}}const i=[new n.LineParser(/^Pushing to (.+)$/,((e,[t])=>{e.repo=t})),new n.LineParser(/^updating local tracking ref '(.+)'/,((e,[t])=>{e.ref=Object.assign(Object.assign({},e.ref||{}),{local:t})})),new n.LineParser(/^[*-=]\s+([^:]+):(\S+)\s+\[(.+)]$/,((e,[t,r,n])=>{e.pushed.push(pushResultPushedItem(t,r,n))})),new n.LineParser(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,((e,[t,r,n])=>{e.branch=Object.assign(Object.assign({},e.branch||{}),{local:t,remote:r,remoteName:n})})),new n.LineParser(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,((e,[t,r,n,s])=>{e.update={head:{local:t,remote:r},hash:{from:n,to:s}}}))];const parsePushResult=(e,r)=>{const n=t.parsePushDetail(e,r);const i=s.parseRemoteMessages(e,r);return Object.assign(Object.assign({},n),i)};t.parsePushResult=parsePushResult;const parsePushDetail=(e,t)=>n.parseStringResponse({pushed:[]},i,e,t);t.parsePushDetail=parsePushDetail},2661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteMessageSummary=t.parseRemoteMessages=void 0;const n=r(847);const s=r(3565);const i=[new n.RemoteLineParser(/^remote:\s*(.+)$/,((e,[t])=>{e.remoteMessages.all.push(t.trim());return false})),...s.remoteMessagesObjectParsers,new n.RemoteLineParser([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((e,[t])=>{e.remoteMessages.pullRequestUrl=t})),new n.RemoteLineParser([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((e,[t,r,s])=>{e.remoteMessages.vulnerabilities={count:n.asNumber(t),summary:r,url:s}}))];function parseRemoteMessages(e,t){return n.parseStringResponse({remoteMessages:new RemoteMessageSummary},i,t)}t.parseRemoteMessages=parseRemoteMessages;class RemoteMessageSummary{constructor(){this.all=[]}}t.RemoteMessageSummary=RemoteMessageSummary},3565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remoteMessagesObjectParsers=void 0;const n=r(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 t=/^\s*(\d+)/.exec(e);const r=/delta (\d+)/i.exec(e);return{count:n.asNumber(t&&t[1]||"0"),delta:n.asNumber(r&&r[1]||"0")}}t.remoteMessagesObjectParsers=[new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,((e,[t,r])=>{const s=t.toLowerCase();const i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[s]:n.asNumber(r)})})),new n.RemoteLineParser(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,((e,[t,r])=>{const s=t.toLowerCase();const i=objectEnumerationResult(e.remoteMessages);Object.assign(i,{[s]:n.asNumber(r)})})),new n.RemoteLineParser(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,((e,[t,r,s])=>{const i=objectEnumerationResult(e.remoteMessages);i.total=asObjectCount(t);i.reused=asObjectCount(r);i.packReused=n.asNumber(s)}))]},3755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSingleBranchDeleteFailure=t.branchDeletionFailure=t.branchDeletionSuccess=t.BranchDeletionBatch=void 0;class BranchDeletionBatch{constructor(){this.all=[];this.branches={};this.errors=[]}get success(){return!this.errors.length}}t.BranchDeletionBatch=BranchDeletionBatch;function branchDeletionSuccess(e,t){return{branch:e,hash:t,success:true}}t.branchDeletionSuccess=branchDeletionSuccess;function branchDeletionFailure(e){return{branch:e,hash:null,success:false}}t.branchDeletionFailure=branchDeletionFailure;function isSingleBranchDeleteFailure(e){return e.success}t.isSingleBranchDeleteFailure=isSingleBranchDeleteFailure},4446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BranchSummaryResult=void 0;class BranchSummaryResult{constructor(){this.all=[];this.branches={};this.current="";this.detached=false}push(e,t,r,n,s){if(e){this.detached=t;this.current=r}this.all.push(r);this.branches[r]={current:e,name:r,commit:n,label:s}}}t.BranchSummaryResult=BranchSummaryResult},9926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCheckIgnore=void 0;const parseCheckIgnore=e=>e.split(/\n/g).map((e=>e.trim())).filter((e=>!!e));t.parseCheckIgnore=parseCheckIgnore},5689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cleanSummaryParser=t.CleanResponse=void 0;const n=r(847);class CleanResponse{constructor(e){this.dryRun=e;this.paths=[];this.files=[];this.folders=[]}}t.CleanResponse=CleanResponse;const s=/^[a-z]+\s*/i;const i=/^[a-z]+\s+[a-z]+\s*/i;const o=/\/$/;function cleanSummaryParser(e,t){const r=new CleanResponse(e);const a=e?i:s;n.toLinesWithContent(t).forEach((e=>{const t=e.replace(a,"");r.paths.push(t);(o.test(t)?r.folders:r.files).push(t)}));return r}t.cleanSummaryParser=cleanSummaryParser},7219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.configListParser=t.ConfigList=void 0;const n=r(847);class ConfigList{constructor(){this.files=[];this.values=Object.create(null)}get all(){if(!this._all){this._all=this.files.reduce(((e,t)=>Object.assign(e,this.values[t])),{})}return this._all}addFile(e){if(!(e in this.values)){const t=n.last(this.files);this.values[e]=t?Object.create(this.values[t]):{};this.files.push(e)}return this.values[e]}addValue(e,t,r){const n=this.addFile(e);if(!n.hasOwnProperty(t)){n[t]=r}else if(Array.isArray(n[t])){n[t].push(r)}else{n[t]=[n[t],r]}this._all=undefined}}t.ConfigList=ConfigList;function configListParser(e){const t=new ConfigList;const r=e.split("\0");for(let e=0,s=r.length-1;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiffSummary=void 0;class DiffSummary{constructor(){this.changed=0;this.deletions=0;this.insertions=0;this.files=[]}}t.DiffSummary=DiffSummary},860:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FileStatusSummary=t.fromPathRegex=void 0;t.fromPathRegex=/^(.+) -> (.+)$/;class FileStatusSummary{constructor(e,r,n){this.path=e;this.index=r;this.working_dir=n;if("R"===r+n){const r=t.fromPathRegex.exec(e)||[null,e,e];this.from=r[1]||"";this.path=r[2]||""}}}t.FileStatusSummary=FileStatusSummary},9999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseGetRemotesVerbose=t.parseGetRemotes=void 0;const n=r(847);function parseGetRemotes(e){const t={};forEach(e,(([e])=>t[e]={name:e}));return Object.values(t)}t.parseGetRemotes=parseGetRemotes;function parseGetRemotesVerbose(e){const t={};forEach(e,(([e,r,n])=>{if(!t.hasOwnProperty(e)){t[e]={name:e,refs:{fetch:"",push:""}}}if(n&&r){t[e].refs[n.replace(/[^a-z]/g,"")]=r}}));return Object.values(t)}t.parseGetRemotesVerbose=parseGetRemotesVerbose;function forEach(e,t){n.forEachLineWithContent(e,(e=>t(e.split(/\s+/))))}},8690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseInit=t.InitSummary=void 0;class InitSummary{constructor(e,t,r,n){this.bare=e;this.path=t;this.existing=r;this.gitDir=n}}t.InitSummary=InitSummary;const r=/^Init.+ repository in (.+)$/;const n=/^Rein.+ in (.+)$/;function parseInit(e,t,s){const i=String(s).trim();let o;if(o=r.exec(i)){return new InitSummary(e,t,false,o[1])}if(o=n.exec(i)){return new InitSummary(e,t,true,o[1])}let a="";const u=i.split(" ");while(u.length){const e=u.shift();if(e==="in"){a=u.join(" ");break}}return new InitSummary(e,t,/^re/i.test(i),a)}t.parseInit=parseInit},1651:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MergeSummaryDetail=t.MergeSummaryConflict=void 0;class MergeSummaryConflict{constructor(e,t=null,r){this.reason=e;this.file=t;this.meta=r}toString(){return`${this.file}:${this.reason}`}}t.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"}}t.MergeSummaryDetail=MergeSummaryDetail},3567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.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}}}t.PullSummary=PullSummary},6790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStatusSummary=t.StatusSummary=void 0;const n=r(847);const s=r(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}}t.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 t=/^(.+) -> (.+)$/.exec(e);if(!t){return{from:e,to:e}}return{from:String(t[1]),to:String(t[2])}}function parser(e,t,r){return[`${e}${t}`,r]}function conflicts(e,...t){return t.map((t=>parser(e,t,((e,t)=>n.append(e.conflicted,t)))))}const o=new Map([parser(i.NONE,i.ADDED,((e,t)=>n.append(e.created,t))),parser(i.NONE,i.DELETED,((e,t)=>n.append(e.deleted,t))),parser(i.NONE,i.MODIFIED,((e,t)=>n.append(e.modified,t))),parser(i.ADDED,i.NONE,((e,t)=>n.append(e.created,t)&&n.append(e.staged,t))),parser(i.ADDED,i.MODIFIED,((e,t)=>n.append(e.created,t)&&n.append(e.staged,t)&&n.append(e.modified,t))),parser(i.DELETED,i.NONE,((e,t)=>n.append(e.deleted,t)&&n.append(e.staged,t))),parser(i.MODIFIED,i.NONE,((e,t)=>n.append(e.modified,t)&&n.append(e.staged,t))),parser(i.MODIFIED,i.MODIFIED,((e,t)=>n.append(e.modified,t)&&n.append(e.staged,t))),parser(i.RENAMED,i.NONE,((e,t)=>{n.append(e.renamed,renamedFile(t))})),parser(i.RENAMED,i.MODIFIED,((e,t)=>{const r=renamedFile(t);n.append(e.renamed,r);n.append(e.modified,r.to)})),parser(i.UNTRACKED,i.UNTRACKED,((e,t)=>n.append(e.not_added,t))),...conflicts(i.ADDED,i.ADDED,i.UNMERGED),...conflicts(i.DELETED,i.DELETED,i.UNMERGED),...conflicts(i.UNMERGED,i.ADDED,i.DELETED,i.UNMERGED),["##",(e,t)=>{const r=/ahead (\d+)/;const n=/behind (\d+)/;const s=/^(.+?(?=(?:\.{3}|\s|$)))/;const i=/\.{3}(\S*)/;const o=/\son\s([\S]+)$/;let a;a=r.exec(t);e.ahead=a&&+a[1]||0;a=n.exec(t);e.behind=a&&+a[1]||0;a=s.exec(t);e.current=a&&a[1];a=i.exec(t);e.tracking=a&&a[1];a=o.exec(t);e.current=a&&a[1]||e.current}]]);const parseStatusSummary=function(e){const t=e.trim().split("\n");const r=new StatusSummary;for(let e=0,n=t.length;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseTagList=t.TagList=void 0;class TagList{constructor(e,t){this.all=e;this.latest=t}}t.TagList=TagList;const parseTagList=function(e,t=false){const r=e.split("\n").map(trimmed).filter(Boolean);if(!t){r.sort((function(e,t){const r=e.split(".");const n=t.split(".");if(r.length===1||n.length===1){return singleSorted(toNumber(r[0]),toNumber(n[0]))}for(let e=0,t=Math.max(r.length,n.length);ee.indexOf(".")>=0));return new TagList(r,n)};t.parseTagList=parseTagList;function singleSorted(e,t){const r=isNaN(e);const n=isNaN(t);if(r!==n){return r?1:-1}return r?sorted(e,t):0}function sorted(e,t){return e===t?0:e>t?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,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,s){function fulfilled(e){try{step(n.next(e))}catch(e){s(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){s(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.GitExecutorChain=void 0;const s=r(3129);const i=r(4732);const o=r(2815);const a=r(6676);const u=r(847);class GitExecutorChain{constructor(e,t){this._executor=e;this._scheduler=t;this._chain=Promise.resolve();this._queue=new a.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 n(this,void 0,void 0,(function*(){const t=yield this._scheduler.next();const onQueueComplete=()=>this._queue.complete(e);try{const{logger:r}=this._queue.attempt(e);return yield o.isEmptyTask(e)?this.attemptEmptyTask(e,r):this.attemptRemoteTask(e,r)}catch(t){throw this.onFatalException(e,t)}finally{onQueueComplete();t()}}))}onFatalException(e,t){const r=t instanceof i.GitError?Object.assign(t,{task:e}):new i.GitError(e,t&&String(t));this._chain=Promise.resolve();this._queue.fatal(r);return r}attemptRemoteTask(e,t){return n(this,void 0,void 0,(function*(){const r=yield this.gitResponse(this.binary,e.commands,this.outputHandler,t.step("SPAWN"));const n=yield this.handleTaskData(e,r,t.step("HANDLE"));t(`passing response to task's parser as a %s`,e.format);if(o.isBufferTask(e)){return u.callTaskParser(e.parser,n)}return u.callTaskParser(e.parser,n.asStrings())}))}attemptEmptyTask(e,t){return n(this,void 0,void 0,(function*(){t(`empty task bypassing child process to call to task's parser`);return e.parser()}))}handleTaskData({onError:e,concatStdErr:t},{exitCode:r,stdOut:n,stdErr:s},i){return new Promise(((o,a)=>{i(`Preparing to handle process response exitCode=%d stdOut=`,r);if(r&&s.length&&e){i.info(`exitCode=%s handling with custom error handler`);i(`concatenate stdErr to stdOut: %j`,t);return e(r,Buffer.concat([...t?n:[],...s]).toString("utf-8"),(e=>{i.info(`custom error handler treated as success`);i(`custom error returned a %s`,u.objectToString(e));o(new u.GitOutputStreams(Buffer.isBuffer(e)?e:Buffer.from(String(e)),Buffer.concat(s)))}),a)}if(r&&s.length){i.info(`exitCode=%s treated as error when then child process has written to stdErr`);return a(Buffer.concat(s).toString("utf-8"))}if(t){i(`concatenating stdErr onto stdOut before processing`);i(`stdErr: $O`,s);n.push(...s)}i.info(`retrieving task output complete`);o(new u.GitOutputStreams(Buffer.concat(n),Buffer.concat(s)))}))}gitResponse(e,t,r,i){return n(this,void 0,void 0,(function*(){const n=i.sibling("output");const o={cwd:this.cwd,env:this.env,windowsHide:true};return new Promise((a=>{const u=[];const c=[];let l=false;function attemptClose(e,t="retry"){if(l||c.length||u.length){i.info(`exitCode=%s event=%s`,e,t);a({stdOut:u,stdErr:c,exitCode:e});l=true;n.destroy()}if(!l){l=true;setTimeout((()=>attemptClose(e,"deferred")),50);i("received %s event before content on stdOut/stdErr",t)}}i.info(`%s %o`,e,t);i("%O",o);const f=s.spawn(e,t,o);f.stdout.on("data",onDataReceived(u,"stdOut",i,n.step("stdOut")));f.stderr.on("data",onDataReceived(c,"stdErr",i,n.step("stdErr")));f.on("error",onErrorReceived(c,i));f.on("close",(e=>attemptClose(e,"close")));f.on("exit",(e=>attemptClose(e,"exit")));if(r){i(`Passing child process stdOut/stdErr to custom outputHandler`);r(e,f.stdout,f.stderr,[...t])}}))}))}}t.GitExecutorChain=GitExecutorChain;function onErrorReceived(e,t){return r=>{t(`[ERROR] child process exception %o`,r);e.push(Buffer.from(String(r.stack),"ascii"))}}function onDataReceived(e,t,r,n){return s=>{r(`%s received %L bytes`,t,s);n(`%B`,s);e.push(s)}}},4701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitExecutor=void 0;const n=r(8543);class GitExecutor{constructor(e="git",t,r){this.binary=e;this.cwd=t;this._scheduler=r;this._chain=new n.GitExecutorChain(this,this._scheduler)}chain(){return new n.GitExecutorChain(this,this._scheduler)}push(e){return this._chain.push(e)}}t.GitExecutor=GitExecutor},941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gitP=void 0;const n=r(5131);const s=["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:o}=r(1949);function gitP(...e){let t;let r=Promise.resolve();try{t=o(...e)}catch(e){r=Promise.reject(e)}function builderReturn(){return n}function chainReturn(){return r}const n=[...s,...i].reduce(((e,r)=>{const n=i.includes(r);const s=n?asyncWrapper(r,t):syncWrapper(r,t,e);const o=n?chainReturn:builderReturn;Object.defineProperty(e,r,{enumerable:false,configurable:false,value:t?s:o});return e}),{});return n;function asyncWrapper(e,t){return function(...n){if(typeof n[n.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return r.then((function(){return new Promise((function(r,s){const callback=(e,t)=>{if(e){return s(toError(e))}r(t)};n.push(callback);t[e].apply(t,n)}))}))}}function syncWrapper(e,t,r){return(...n)=>{t[e](...n);return r}}}t.gitP=gitP;function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return new n.GitResponseError(e)}},3421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Scheduler=void 0;const n=r(847);const s=r(9819);const i=r(7178);const o=i.createLogger("","scheduler");const a=(()=>{let e=0;return()=>{e++;const{promise:t,done:r}=s.createDeferred();return{promise:t,done:r,id:e}}})();class Scheduler{constructor(e=2){this.concurrency=e;this.pending=[];this.running=[];o(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){o(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}const e=n.append(this.running,this.pending.shift());o(`Attempting id=%s`,e.id);e.done((()=>{o(`Completing id=`,e.id);n.remove(this.running,e);this.schedule()}))}next(){const{promise:e,id:t}=n.append(this.pending,a());o(`Scheduling id=%s`,t);this.schedule();return e}}t.Scheduler=Scheduler},6676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TasksPendingQueue=void 0;const n=r(7178);const s=r(4732);class TasksPendingQueue{constructor(e="GitExecutor"){this.logLabel=e;this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(e){const t=TasksPendingQueue.getName(e.commands[0]);const r=n.createLogger(this.logLabel,t);return{task:e,logger:r,name:t}}push(e){const t=this.createProgress(e);t.logger("Adding task to the queue, commands = %o",e.commands);this._queue.set(e,t);return t}fatal(e){for(const[t,{logger:r}]of Array.from(this._queue.entries())){if(t===e.task){r.info(`Failed %o`,e);r(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)}else{r.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message)}this.complete(t)}if(this._queue.size!==0){throw new Error(`Queue size should be zero after fatal: ${this._queue.size}`)}}complete(e){const t=this.withProgress(e);if(t){t.logger.destroy();this._queue.delete(e)}}attempt(e){const t=this.withProgress(e);if(!t){throw new s.GitError(undefined,"TasksPendingQueue: attempt called for an unknown task")}t.logger("Starting task");return t}static getName(e="empty"){return`task:${e}:${++TasksPendingQueue.counter}`}}t.TasksPendingQueue=TasksPendingQueue;TasksPendingQueue.counter=0},8850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.taskCallback=void 0;const n=r(4732);const s=r(847);function taskCallback(e,t,r=s.NOOP){const onSuccess=e=>{r(null,e)};const onError=t=>{if((t===null||t===void 0?void 0:t.task)===e){if(t instanceof n.GitResponseError){return r(addDeprecationNoticeToError(t))}r(t)}};t.then(onSuccess,onError)}t.taskCallback=taskCallback;function addDeprecationNoticeToError(e){let log=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`);log=s.NOOP};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(descriptorReducer,{}));function descriptorReducer(t,r){if(r in e){return t}t[r]={enumerable:false,configurable:false,get(){log(r);return e.git[r]}};return t}}},17:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deleteBranchTask=t.deleteBranchesTask=t.branchLocalTask=t.branchTask=t.containsDeleteBranchCommand=void 0;const n=r(5131);const s=r(6086);const i=r(9264);function containsDeleteBranchCommand(e){const t=["-d","-D","--delete"];return e.some((e=>t.includes(e)))}t.containsDeleteBranchCommand=containsDeleteBranchCommand;function branchTask(e){const t=containsDeleteBranchCommand(e);const r=["branch",...e];if(r.length===1){r.push("-a")}if(!r.includes("-v")){r.splice(1,0,"-v")}return{format:"utf-8",commands:r,parser(e,r){if(t){return s.parseBranchDeletions(e,r).all[0]}return i.parseBranchSummary(e)}}}t.branchTask=branchTask;function branchLocalTask(){const e=i.parseBranchSummary;return{format:"utf-8",commands:["branch","-v"],parser:e}}t.branchLocalTask=branchLocalTask;function deleteBranchesTask(e,t=false){return{format:"utf-8",commands:["branch","-v",t?"-D":"-d",...e],parser(e,t){return s.parseBranchDeletions(e,t)},onError(e,t,r,n){if(!s.hasBranchDeletionError(t,e)){return n(t)}r(t)},concatStdErr:true}}t.deleteBranchesTask=deleteBranchesTask;function deleteBranchTask(e,t=false){const r={format:"utf-8",commands:["branch","-v",t?"-D":"-d",e],parser(t,r){return s.parseBranchDeletions(t,r).branches[e]},onError(e,t,i,o){if(!s.hasBranchDeletionError(t,e)){return o(t)}throw new n.GitResponseError(r.parser(t,""),t)},concatStdErr:true};return r}t.deleteBranchTask=deleteBranchTask},221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkIsBareRepoTask=t.checkIsRepoRootTask=t.checkIsRepoTask=t.CheckRepoActions=void 0;const n=r(847);var s;(function(e){e["BARE"]="bare";e["IN_TREE"]="tree";e["IS_REPO_ROOT"]="root"})(s=t.CheckRepoActions||(t.CheckRepoActions={}));const onError=(e,t,r,s)=>{if(e===n.ExitCodes.UNCLEAN&&isNotRepoMessage(t)){return r("false")}s(t)};const parser=e=>e.trim()==="true";function checkIsRepoTask(e){switch(e){case s.BARE:return checkIsBareRepoTask();case s.IS_REPO_ROOT:return checkIsRepoRootTask()}const t=["rev-parse","--is-inside-work-tree"];return{commands:t,format:"utf-8",onError:onError,parser:parser}}t.checkIsRepoTask=checkIsRepoTask;function checkIsRepoRootTask(){const e=["rev-parse","--git-dir"];return{commands:e,format:"utf-8",onError:onError,parser(e){return/^\.(git)?$/.test(e.trim())}}}t.checkIsRepoRootTask=checkIsRepoRootTask;function checkIsBareRepoTask(){const e=["rev-parse","--is-bare-repository"];return{commands:e,format:"utf-8",onError:onError,parser:parser}}t.checkIsBareRepoTask=checkIsBareRepoTask;function isNotRepoMessage(e){return/(Not a git repository|Kein Git-Repository)/i.test(e)}},4386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCleanOptionsArray=t.cleanTask=t.cleanWithOptionsTask=t.CleanOptions=t.CONFIG_ERROR_UNKNOWN_OPTION=t.CONFIG_ERROR_MODE_REQUIRED=t.CONFIG_ERROR_INTERACTIVE_MODE=void 0;const n=r(5689);const s=r(847);const i=r(2815);t.CONFIG_ERROR_INTERACTIVE_MODE="Git clean interactive mode is not supported";t.CONFIG_ERROR_MODE_REQUIRED='Git clean mode parameter ("n" or "f") is required';t.CONFIG_ERROR_UNKNOWN_OPTION="Git clean unknown option found in: ";var o;(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"})(o=t.CleanOptions||(t.CleanOptions={}));const a=new Set(["i",...s.asStringArray(Object.values(o))]);function cleanWithOptionsTask(e,r){const{cleanMode:n,options:s,valid:o}=getCleanOptions(e);if(!n){return i.configurationErrorTask(t.CONFIG_ERROR_MODE_REQUIRED)}if(!o.options){return i.configurationErrorTask(t.CONFIG_ERROR_UNKNOWN_OPTION+JSON.stringify(e))}s.push(...r);if(s.some(isInteractiveMode)){return i.configurationErrorTask(t.CONFIG_ERROR_INTERACTIVE_MODE)}return cleanTask(n,s)}t.cleanWithOptionsTask=cleanWithOptionsTask;function cleanTask(e,t){const r=["clean",`-${e}`,...t];return{commands:r,format:"utf-8",parser(t){return n.cleanSummaryParser(e===o.DRY_RUN,t)}}}t.cleanTask=cleanTask;function isCleanOptionsArray(e){return Array.isArray(e)&&e.every((e=>a.has(e)))}t.isCleanOptionsArray=isCleanOptionsArray;function getCleanOptions(e){let t;let r=[];let n={cleanMode:false,options:true};e.replace(/[^a-z]i/g,"").split("").forEach((e=>{if(isCleanMode(e)){t=e;n.cleanMode=true}else{n.options=n.options&&isKnownOption(r[r.length]=`-${e}`)}}));return{cleanMode:t,options:r,valid:n}}function isCleanMode(e){return e===o.FORCE||e===o.DRY_RUN}function isKnownOption(e){return/^-[a-z]$/i.test(e)&&a.has(e.charAt(1))}function isInteractiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}},3173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloneMirrorTask=t.cloneTask=void 0;const n=r(2815);const s=r(847);function cloneTask(e,t,r){const s=["clone",...r];if(typeof e==="string"){s.push(e)}if(typeof t==="string"){s.push(t)}return n.straightThroughStringTask(s)}t.cloneTask=cloneTask;function cloneMirrorTask(e,t,r){s.append(r,"--mirror");return cloneTask(e,t,r)}t.cloneMirrorTask=cloneMirrorTask},5494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.commitTask=void 0;const n=r(3026);function commitTask(e,t,r){const s=["commit",...e.flatMap((e=>["-m",e])),...t,...r];return{commands:s,format:"utf-8",parser:n.parseCommitResult}}t.commitTask=commitTask},7597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.listConfigTask=t.addConfigTask=void 0;const n=r(7219);function addConfigTask(e,t,r=false){const n=["config","--local"];if(r){n.push("--add")}n.push(e,t);return{commands:n,format:"utf-8",parser(e){return e}}}t.addConfigTask=addConfigTask;function listConfigTask(){return{commands:["config","--list","--show-origin","--null"],format:"utf-8",parser(e){return n.configListParser(e)}}}t.listConfigTask=listConfigTask},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.diffSummaryTask=void 0;const n=r(2024);function diffSummaryTask(e){return{commands:["diff","--stat=4096",...e],format:"utf-8",parser(e){return n.parseDiffResult(e)}}}t.diffSummaryTask=diffSummaryTask},8823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fetchTask=void 0;const n=r(6254);function fetchTask(e,t,r){const s=["fetch",...r];if(e&&t){s.push(e,t)}return{commands:s,format:"utf-8",parser:n.parseFetchResult}}t.fetchTask=fetchTask},8199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hashObjectTask=void 0;const n=r(2815);function hashObjectTask(e,t){const r=["hash-object",e];if(t){r.push("-w")}return n.straightThroughStringTask(r,true)}t.hashObjectTask=hashObjectTask},6016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.initTask=void 0;const n=r(8690);const s="--bare";function hasBareCommand(e){return e.includes(s)}function initTask(e=false,t,r){const i=["init",...r];if(e&&!hasBareCommand(i)){i.splice(1,0,s)}return{commands:i,concatStdErr:false,format:"utf-8",parser(e){return n.parseInit(i.includes("--bare"),t,e)}}}t.initTask=initTask},8627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.logTask=t.parseLogOptions=void 0;const n=r(9729);const s=r(847);const i=new Set(["--pretty","max-count","maxCount","n","file","format","from","to","splitter","symmetric","multiLine","strictDate"]);function prettyFormat(e,t){const r=[];const n=[];Object.entries(e).forEach((([e,t])=>{r.push(e);n.push(t)}));return[r,n.join(t)]}function userOptions(e){return Object.fromEntries(Object.entries(e).filter((([e])=>!i.has(e))))}function parseLogOptions(e={},t=[]){const r=e.splitter||n.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[o,a]=prettyFormat(i,r);const u=[];const c=[`--pretty=format:${n.START_BOUNDARY}${a}${n.COMMIT_BOUNDARY}`,...t];const l=e.n||e["max-count"]||e.maxCount;if(l){c.push(`--max-count=${l}`)}if(e.from&&e.to){const t=e.symmetric!==false?"...":"..";u.push(`${e.from}${t}${e.to}`)}if(e.file){u.push("--follow",e.file)}s.appendTaskOptions(userOptions(e),c);return{fields:o,splitter:r,commands:[...c,...u]}}t.parseLogOptions=parseLogOptions;function logTask(e,t,r){return{commands:["log",...r],format:"utf-8",parser:n.createListLogSummaryParser(e,t)}}t.logTask=logTask},8829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeTask=void 0;const n=r(4732);const s=r(6412);const i=r(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,t){const r=s.parseMergeResult(e,t);if(r.failed){throw new n.GitResponseError(r)}return r}}}t.mergeTask=mergeTask},6520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moveTask=void 0;const n=r(7444);const s=r(847);function moveTask(e,t){return{commands:["mv","-v",...s.asArray(e),t],format:"utf-8",parser:n.parseMoveResult}}t.moveTask=moveTask},4636:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pullTask=void 0;const n=r(5658);function pullTask(e,t,r){const s=["pull",...r];if(e&&t){s.splice(1,0,e,t)}return{commands:s,format:"utf-8",parser(e,t){return n.parsePullResult(e,t)}}}t.pullTask=pullTask},1435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pushTask=t.pushTagsTask=void 0;const n=r(8530);const s=r(847);function pushTagsTask(e={},t){s.append(t,"--tags");return pushTask(e,t)}t.pushTagsTask=pushTagsTask;function pushTask(e={},t){const r=["push",...t];if(e.branch){r.splice(1,0,e.branch)}if(e.remote){r.splice(1,0,e.remote)}s.remove(r,"-v");s.append(r,"--verbose");s.append(r,"--porcelain");return{commands:r,format:"utf-8",parser:n.parsePushResult}}t.pushTask=pushTask},9866:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeRemoteTask=t.remoteTask=t.listRemotesTask=t.getRemotesTask=t.addRemoteTask=void 0;const n=r(9999);const s=r(2815);function addRemoteTask(e,t,r=[]){return s.straightThroughStringTask(["remote","add",...r,e,t])}t.addRemoteTask=addRemoteTask;function getRemotesTask(e){const t=["remote"];if(e){t.push("-v")}return{commands:t,format:"utf-8",parser:e?n.parseGetRemotesVerbose:n.parseGetRemotes}}t.getRemotesTask=getRemotesTask;function listRemotesTask(e=[]){const t=[...e];if(t[0]!=="ls-remote"){t.unshift("ls-remote")}return s.straightThroughStringTask(t)}t.listRemotesTask=listRemotesTask;function remoteTask(e=[]){const t=[...e];if(t[0]!=="remote"){t.unshift("remote")}return s.straightThroughStringTask(t)}t.remoteTask=remoteTask;function removeRemoteTask(e){return s.straightThroughStringTask(["remote","remove",e])}t.removeRemoteTask=removeRemoteTask},2377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getResetMode=t.resetTask=t.ResetMode=void 0;const n=r(2815);var s;(function(e){e["MIXED"]="mixed";e["SOFT"]="soft";e["HARD"]="hard";e["MERGE"]="merge";e["KEEP"]="keep"})(s=t.ResetMode||(t.ResetMode={}));const i=Array.from(Object.values(s));function resetTask(e,t){const r=["reset"];if(isValidResetMode(e)){r.push(`--${e}`)}r.push(...t);return n.straightThroughStringTask(r)}t.resetTask=resetTask;function getResetMode(e){if(isValidResetMode(e)){return e}switch(typeof e){case"string":case"undefined":return s.SOFT}return}t.getResetMode=getResetMode;function isValidResetMode(e){return i.includes(e)}},810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stashListTask=void 0;const n=r(9729);const s=r(8627);function stashListTask(e={},t){const r=s.parseLogOptions(e);const i=n.createListLogSummaryParser(r.splitter,r.fields);return{commands:["stash","list",...r.commands,...t],format:"utf-8",parser:i}}t.stashListTask=stashListTask},9197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statusTask=void 0;const n=r(6790);function statusTask(e){return{format:"utf-8",commands:["status","--porcelain","-b","-u",...e],parser(e){return n.parseStatusSummary(e)}}}t.statusTask=statusTask},8772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.updateSubModuleTask=t.subModuleTask=t.initSubModuleTask=t.addSubModuleTask=void 0;const n=r(2815);function addSubModuleTask(e,t){return subModuleTask(["add",e,t])}t.addSubModuleTask=addSubModuleTask;function initSubModuleTask(e){return subModuleTask(["init",...e])}t.initSubModuleTask=initSubModuleTask;function subModuleTask(e){const t=[...e];if(t[0]!=="submodule"){t.unshift("submodule")}return n.straightThroughStringTask(t)}t.subModuleTask=subModuleTask;function updateSubModuleTask(e){return subModuleTask(["update",...e])}t.updateSubModuleTask=updateSubModuleTask},8540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addAnnotatedTagTask=t.addTagTask=t.tagListTask=void 0;const n=r(4539);function tagListTask(e=[]){const t=e.some((e=>/^--sort=/.test(e)));return{format:"utf-8",commands:["tag","-l",...e],parser(e){return n.parseTagList(e,t)}}}t.tagListTask=tagListTask;function addTagTask(e){return{format:"utf-8",commands:["tag",e],parser(){return{name:e}}}}t.addTagTask=addTagTask;function addAnnotatedTagTask(e,t){return{format:"utf-8",commands:["tag","-a","-m",t,e],parser(){return{name:e}}}}t.addAnnotatedTagTask=addAnnotatedTagTask},2815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmptyTask=t.isBufferTask=t.straightThroughStringTask=t.configurationErrorTask=t.adhocExecTask=t.EMPTY_COMMANDS=void 0;const n=r(740);t.EMPTY_COMMANDS=[];function adhocExecTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser:e}}t.adhocExecTask=adhocExecTask;function configurationErrorTask(e){return{commands:t.EMPTY_COMMANDS,format:"utf-8",parser(){throw typeof e==="string"?new n.TaskConfigurationError(e):e}}}t.configurationErrorTask=configurationErrorTask;function straightThroughStringTask(e,t=false){return{commands:e,format:"utf-8",parser(e){return t?String(e).trim():e}}}t.straightThroughStringTask=straightThroughStringTask;function isBufferTask(e){return e.format==="buffer"}t.isBufferTask=isBufferTask;function isEmptyTask(e){return!e.commands.length}t.isEmptyTask=isEmptyTask},7366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.filterHasLength=t.filterFunction=t.filterPlainObject=t.filterStringOrStringArray=t.filterStringArray=t.filterString=t.filterPrimitives=t.filterArray=t.filterType=void 0;const n=r(8237);function filterType(e,t,r){if(t(e)){return e}return arguments.length>2?r:undefined}t.filterType=filterType;const filterArray=e=>Array.isArray(e);t.filterArray=filterArray;function filterPrimitives(e,t){return/number|string|boolean/.test(typeof e)&&(!t||!t.includes(typeof e))}t.filterPrimitives=filterPrimitives;const filterString=e=>typeof e==="string";t.filterString=filterString;const filterStringArray=e=>Array.isArray(e)&&e.every(t.filterString);t.filterStringArray=filterStringArray;const filterStringOrStringArray=e=>t.filterString(e)||Array.isArray(e)&&e.every(t.filterString);t.filterStringOrStringArray=filterStringOrStringArray;function filterPlainObject(e){return!!e&&n.objectToString(e)==="[object Object]"}t.filterPlainObject=filterPlainObject;function filterFunction(e){return typeof e==="function"}t.filterFunction=filterFunction;const filterHasLength=e=>{if(e==null||"number|boolean|function".includes(typeof e)){return false}return Array.isArray(e)||typeof e==="string"||typeof e.length==="number"};t.filterHasLength=filterHasLength},2185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExitCodes=void 0;var r;(function(e){e[e["SUCCESS"]=0]="SUCCESS";e[e["ERROR"]=1]="ERROR";e[e["UNCLEAN"]=128]="UNCLEAN"})(r=t.ExitCodes||(t.ExitCodes={}))},6578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GitOutputStreams=void 0;class GitOutputStreams{constructor(e,t){this.stdOut=e;this.stdErr=t}asStrings(){return new GitOutputStreams(this.stdOut.toString("utf8"),this.stdErr.toString("utf8"))}}t.GitOutputStreams=GitOutputStreams},847:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});s(r(7366),t);s(r(2185),t);s(r(6578),t);s(r(9536),t);s(r(5218),t);s(r(3546),t);s(r(1351),t);s(r(8237),t)},9536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RemoteLineParser=t.LineParser=void 0;class LineParser{constructor(e,t){this.matches=[];this.parse=(e,t)=>{this.resetMatches();if(!this._regExp.every(((t,r)=>this.addMatch(t,r,e(r))))){return false}return this.useMatches(t,this.prepareMatches())!==false};this._regExp=Array.isArray(e)?e:[e];if(t){this.useMatches=t}}useMatches(e,t){throw new Error(`LineParser:useMatches not implemented`)}resetMatches(){this.matches.length=0}prepareMatches(){return this.matches}addMatch(e,t,r){const n=r&&e.exec(r);if(n){this.pushMatch(t,n)}return!!n}pushMatch(e,t){this.matches.push(...t.slice(1))}}t.LineParser=LineParser;class RemoteLineParser extends LineParser{addMatch(e,t,r){return/^remote:\s/.test(String(r))&&super.addMatch(e,t,r)}pushMatch(e,t){if(e>0||t.length>1){super.pushMatch(e,t)}}}t.RemoteLineParser=RemoteLineParser},5218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createInstanceConfig=void 0;const r={binary:"git",maxConcurrentProcesses:5};function createInstanceConfig(...e){const t=process.cwd();const n=Object.assign(Object.assign({baseDir:t},r),...e.filter((e=>typeof e==="object"&&e)));n.baseDir=n.baseDir||t;return n}t.createInstanceConfig=createInstanceConfig},3546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.trailingFunctionArgument=t.trailingOptionsArgument=t.getTrailingOptions=t.appendTaskOptions=void 0;const n=r(7366);const s=r(8237);function appendTaskOptions(e,t=[]){if(!n.filterPlainObject(e)){return t}return Object.keys(e).reduce(((t,r)=>{const s=e[r];if(n.filterPrimitives(s,["boolean"])){t.push(r+"="+s)}else{t.push(r)}return t}),t)}t.appendTaskOptions=appendTaskOptions;function getTrailingOptions(e,t=0,r=false){const n=[];for(let r=0,s=t<0?e.length:t;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseStringResponse=t.callTaskParser=void 0;const n=r(8237);function callTaskParser(e,t){return e(t.stdOut,t.stdErr)}t.callTaskParser=callTaskParser;function parseStringResponse(e,t,...r){r.forEach((r=>{for(let s=n.toLinesWithContent(r),i=0,o=s.length;i{if(i+e>=o){return}return s[i+e]};t.some((({parse:t})=>t(line,e)))}}));return e}t.parseStringResponse=parseStringResponse},8237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.asNumber=t.asStringArray=t.asArray=t.objectToString=t.remove=t.append=t.folderExists=t.forEachLineWithContent=t.toLinesWithContent=t.last=t.first=t.splitOn=t.isUserFunction=t.asFunction=t.NOOP=void 0;const n=r(4751);const NOOP=()=>{};t.NOOP=NOOP;function asFunction(e){return typeof e==="function"?e:t.NOOP}t.asFunction=asFunction;function isUserFunction(e){return typeof e==="function"&&e!==t.NOOP}t.isUserFunction=isUserFunction;function splitOn(e,t){const r=e.indexOf(t);if(r<=0){return[e,""]}return[e.substr(0,r),e.substr(r+1)]}t.splitOn=splitOn;function first(e,t=0){return isArrayLike(e)&&e.length>t?e[t]:undefined}t.first=first;function last(e,t=0){if(isArrayLike(e)&&e.length>t){return e[e.length-1-t]}}t.last=last;function isArrayLike(e){return!!(e&&typeof e.length==="number")}function toLinesWithContent(e,t=true,r="\n"){return e.split(r).reduce(((e,r)=>{const n=t?r.trim():r;if(n){e.push(n)}return e}),[])}t.toLinesWithContent=toLinesWithContent;function forEachLineWithContent(e,t){return toLinesWithContent(e,true).map((e=>t(e)))}t.forEachLineWithContent=forEachLineWithContent;function folderExists(e){return n.exists(e,n.FOLDER)}t.folderExists=folderExists;function append(e,t){if(Array.isArray(e)){if(!e.includes(t)){e.push(t)}}else{e.add(t)}return t}t.append=append;function remove(e,t){if(Array.isArray(e)){const r=e.indexOf(t);if(r>=0){e.splice(r,1)}}else{e.delete(t)}return t}t.remove=remove;t.objectToString=Object.prototype.toString.call.bind(Object.prototype.toString);function asArray(e){return Array.isArray(e)?e:[e]}t.asArray=asArray;function asStringArray(e){return asArray(e).map(String)}t.asStringArray=asStringArray;function asNumber(e,t=0){if(e==null){return t}const r=parseInt(e,10);return isNaN(r)?t:r}t.asNumber=asNumber},9318:(e,t,r)=>{"use strict";const n=r(2087);const s=r(3867);const i=r(1621);const{env:o}=process;let a;if(i("no-color")||i("no-colors")||i("color=false")||i("color=never")){a=0}else if(i("color")||i("colors")||i("color=true")||i("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(o.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},875:e=>{function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=875;e.exports=webpackEmptyContext},3129:e=>{"use strict";e.exports=require("child_process")},5747:e=>{"use strict";e.exports=require("fs")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},3867:e=>{"use strict";e.exports=require("tty")},1669:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={exports:{}};var i=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return s.exports}(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};(()=>{"use strict";__nccwpck_require__.r(r);var e=__nccwpck_require__(2186);var t=__nccwpck_require__(5622);var n=__nccwpck_require__.n(t);var s=__nccwpck_require__(1477);var i=__nccwpck_require__.n(s); +/*! js-yaml 4.0.0 https://github.com/nodeca/js-yaml @license MIT */ +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,t){var r,n,s,i;if(t){i=Object.keys(t);for(r=0,n=i.length;ra){i=" ... ";t=n-a+i.length}if(r-n>a){o=" ...";r=n+a-o.length}return{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function padStart(e,t){return p.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var n=[0];var s=[];var i;var o=-1;while(i=r.exec(e.buffer)){s.push(i.index);n.push(i.index+i[0].length);if(e.position<=i.index&&o<0){o=n.length-2}}if(o<0)o=n.length-1;var a="",u,c;var l=Math.min(e.line+t.linesAfter,s.length).toString().length;var f=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore;u++){if(o-u<0)break;c=getLine(e.buffer,n[o-u],s[o-u],e.position-(n[o]-n[o-u]),f);a=p.repeat(" ",t.indent)+padStart((e.line-u+1).toString(),l)+" | "+c.str+"\n"+a}c=getLine(e.buffer,n[o],s[o],e.position,f);a+=p.repeat(" ",t.indent)+padStart((e.line+1).toString(),l)+" | "+c.str+"\n";a+=p.repeat("-",t.indent+l+3+c.pos)+"^"+"\n";for(u=1;u<=t.linesAfter;u++){if(o+u>=s.length)break;c=getLine(e.buffer,n[o+u],s[o+u],e.position-(n[o]-n[o+u]),f);a+=p.repeat(" ",t.indent)+padStart((e.line+u+1).toString(),l)+" | "+c.str+"\n"}return a.replace(/\n$/,"")}var h=makeSnippet;var g=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var m=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(g.indexOf(t)===-1){throw new d('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(m.indexOf(this.kind)===-1){throw new d('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var y=Type;function compileList(e,t,r){var n=[];e[t].forEach((function(e){r.forEach((function(t,r){if(t.tag===e.tag&&t.kind===e.kind&&t.multi===e.multi){n.push(r)}}));r.push(e)}));return r.filter((function(e,t){return n.indexOf(t)===-1}))}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+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"]}});var E=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!E.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var S=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(p.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return S.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||p.isNegativeZero(e))}var A=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"});var R=_.extend({implicit:[O,T,w,A]});var D=R;var I=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var F=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(I.exec(e)!==null)return true;if(F.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,s,i,o,a,u=0,c=null,l,f,p;t=I.exec(e);if(t===null)t=F.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,s))}i=+t[4];o=+t[5];a=+t[6];if(t[7]){u=t[7].slice(0,3);while(u.length<3){u+="0"}u=+u}if(t[9]){l=+t[10];f=+(t[11]||0);c=(l*60+f)*6e4;if(t[9]==="-")c=-c}p=new Date(Date.UTC(r,n,s,i,o,a,u));if(c)p.setTime(p.getTime()-c);return p}function representYamlTimestamp(e){return e.toISOString()}var M=new y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(e){return e==="<<"||e===null}var L=new y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge});var P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,s=e.length,i=P;for(r=0;r64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,n=e.replace(/[\r\n=]/g,""),s=n.length,i=P,o=0,a=[];for(t=0;t>16&255);a.push(o>>8&255);a.push(o&255)}o=o<<6|i.indexOf(n.charAt(t))}r=s%4*6;if(r===0){a.push(o>>16&255);a.push(o>>8&255);a.push(o&255)}else if(r===18){a.push(o>>10&255);a.push(o>>2&255)}else if(r===12){a.push(o>>4&255)}return new Uint8Array(a)}function representYamlBinary(e){var t="",r=0,n,s,i=e.length,o=P;for(n=0;n>18&63];t+=o[r>>12&63];t+=o[r>>6&63];t+=o[r&63]}r=(r<<8)+e[n]}s=i%3;if(s===0){t+=o[r>>18&63];t+=o[r>>12&63];t+=o[r>>6&63];t+=o[r&63]}else if(s===2){t+=o[r>>10&63];t+=o[r>>4&63];t+=o[r<<2&63];t+=o[64]}else if(s===1){t+=o[r>>2&63];t+=o[r<<4&63];t+=o[64];t+=o[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var x=new y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary});var N=Object.prototype.hasOwnProperty;var j=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,s,i,o,a=e;for(r=0,n=a.length;r>10)+55296,(e-65536&1023)+56320)}var se=new Array(256);var ie=new Array(256);for(var oe=0;oe<256;oe++){se[oe]=simpleEscapeSequence(oe)?1:0;ie[oe]=simpleEscapeSequence(oe)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||W;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["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.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=h(r);return new d(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var ae={YAML:function handleYamlDirective(e,t,r){var n,s,i;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}s=parseInt(n[1],10);i=parseInt(n[2],10);if(s!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=i<2;if(i!==1&&i!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,s;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];s=r[1];if(!re.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(q.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!ne.test(s)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{s=decodeURIComponent(s)}catch(t){throwError(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function captureSegment(e,t,r,n){var s,i,o,a;if(t1){e.result+=p.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,s,i,o,a,u,c,l,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(d)||is_FLOW_INDICATOR(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){return false}}e.kind="scalar";e.result="";i=o=e.position;a=false;while(d!==0){if(d===58){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){break}}else if(d===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(d)){break}else if(is_EOL(d)){u=e.line;c=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;d=e.input.charCodeAt(e.position);continue}else{e.position=o;e.line=u;e.lineStart=c;e.lineIndent=l;break}}if(a){captureSegment(e,i,o,false);writeFoldedLines(e,e.line-u);i=o=e.position;a=false}if(!is_WHITE_SPACE(d)){o=e.position+1}d=e.input.charCodeAt(++e.position)}captureSegment(e,i,o,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var r,n,s;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=s=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;s=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,s,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=s=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++;s=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,s,i,o,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,r,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&se[a]){e.result+=ie[a];e.position++}else if((o=escapedHexLen(a))>0){s=o;i=0;for(;s>0;s--){a=e.input.charCodeAt(++e.position);if((o=fromHexCode(a))>=0){i=(i<<4)+o}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(i);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(a)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=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++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,s,i,o=e.tag,a,u=e.anchor,c,l,f,p,d,h=Object.create(null),g,m,y,b;b=e.input.charCodeAt(e.position);if(b===91){l=93;d=false;a=[]}else if(b===123){l=125;d=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}b=e.input.charCodeAt(++e.position);while(b!==0){skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===l){e.position++;e.tag=o;e.anchor=u;e.kind=d?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(b===44){throwError(e,"expected the node content, but found ','")}m=g=y=null;f=p=false;if(b===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){f=p=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;s=e.lineStart;i=e.position;composeNode(e,t,H,false,true);m=e.tag;g=e.result;skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if((p||e.line===n)&&b===58){f=true;b=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,H,false,true);y=e.result}if(d){storeMappingPair(e,a,h,m,g,y,n,s,i)}else if(f){a.push(storeMappingPair(e,null,h,m,g,y,n,s,i))}else{a.push(g)}skipSeparationSpace(e,true,t);b=e.input.charCodeAt(e.position);if(b===44){r=true;b=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,n,s=Q,i=false,o=false,a=t,u=0,c=false,l,f;f=e.input.charCodeAt(e.position);if(f===124){n=false}else if(f===62){n=true}else{return false}e.kind="scalar";e.result="";while(f!==0){f=e.input.charCodeAt(++e.position);if(f===43||f===45){if(Q===s){s=f===43?Z:J}else{throwError(e,"repeat of a chomping mode identifier")}}else if((l=fromDecimalCode(f))>=0){if(l===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){a=t+l-1;o=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(f)){do{f=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(f));if(f===35){do{f=e.input.charCodeAt(++e.position)}while(!is_EOL(f)&&f!==0)}}while(f!==0){readLineBreak(e);e.lineIndent=0;f=e.input.charCodeAt(e.position);while((!o||e.lineIndenta){a=e.lineIndent}if(is_EOL(f)){u++;continue}if(e.lineIndentt)&&u!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(m){o=e.line;a=e.lineStart;u=e.position}if(composeNode(e,t,K,true,s)){if(m){h=e.result}else{g=e.result}}if(!m){storeMappingPair(e,f,p,d,h,g,o,a,u);d=h=g=null}skipSeparationSpace(e,true,-1);b=e.input.charCodeAt(e.position)}if((e.line===i||e.lineIndent>t)&&b!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){u=1}else if(e.lineIndent===t){u=0}else if(e.lineIndentt){u=1}else if(e.lineIndent===t){u=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(f=0,p=e.implicitTypes.length;f")}if(e.result!==null&&h.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"')}if(!h.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=h.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||l}function readDocument(e){var t=e.position,r,n,s,i=false,o;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((o=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);o=e.input.charCodeAt(e.position);if(e.lineIndent>0||o!==37){break}i=true;o=e.input.charCodeAt(++e.position);r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);s=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(o!==0){while(is_WHITE_SPACE(o)){o=e.input.charCodeAt(++e.position)}if(o===35){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&!is_EOL(o));break}if(is_EOL(o))break;r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}s.push(e.input.slice(r,e.position))}if(o!==0)readLineBreak(e);if(q.call(ae,n)){ae[n](e,n,s)}else{throwWarning(e,'unknown document directive "'+n+'"')}}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,K,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&ee.test(e.input.slice(t,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=55296&&r<=56319&&t+1=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var Ye=1,We=2,qe=3,He=4,Ve=5;function chooseScalarStyle(e,t,r,n,s,i,o,a){var u;var c=0;var l=null;var f=false;var p=false;var d=n!==-1;var h=-1;var g=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||o){for(u=0;u=65536?u+=2:u++){c=codePointAt(e,u);if(!isPrintable(c)){return Ve}g=g&&isPlainSafe(c,l,a);l=c}}else{for(u=0;u=65536?u+=2:u++){c=codePointAt(e,u);if(c===ge){f=true;if(d){p=p||u-h-1>n&&e[h+1]!==" ";h=u}}else if(!isPrintable(c)){return Ve}g=g&&isPlainSafe(c,l,a);l=c}p=p||d&&(u-h-1>n&&e[h+1]!==" ")}if(!f&&!p){if(g&&!o&&!s(e)){return Ye}return i===Ue?Ve:We}if(r>9&&needIndentIndicator(e)){return Ve}if(!o){return p?He:qe}return i===Ue?Ve:We}function writeScalar(e,t,r,n,s){e.dump=function(){if(t.length===0){return e.quotingType===Ue?'""':"''"}if(!e.noCompatMode){if(Ge.indexOf(t)!==-1||Be.test(t)){return e.quotingType===Ue?'"'+t+'"':"'"+t+"'"}}var i=e.indent*Math.max(1,r);var o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var a=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,a,e.indent,o,testAmbiguity,e.quotingType,e.forceQuotes&&!n,s)){case Ye:return t;case We:return"'"+t.replace(/'/g,"''")+"'";case qe:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,i));case He:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,o),i));case Ve:return'"'+escapeString(t)+'"';default:throw new d("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var s=n&&(e[e.length-2]==="\n"||e==="\n");var i=s?"+":n?"":"-";return r+i+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var s=e[0]==="\n"||e[0]===" ";var i;var o;while(o=r.exec(e)){var a=o[1],u=o[2];i=u[0]===" ";n+=a+(!s&&!i&&u!==""?"\n":"")+foldLine(u,t);s=i}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var s=0,i,o=0,a=0;var u="";while(n=r.exec(e)){a=n.index;if(a-s>t){i=o>s?o:a;u+="\n"+e.slice(s,i);s=i+1}o=a}u+="\n";if(e.length-s>t&&o>s){u+=e.slice(s,o)+"\n"+e.slice(o+1)}else{u+=e.slice(s)}return u.slice(1)}function escapeString(e){var t="";var r=0;var n;for(var s=0;s=65536?s+=2:s++){r=codePointAt(e,s);n=je[r];if(!n&&isPrintable(r)){t+=e[s];if(r>=65536)t+=e[s+1]}else{t+=n||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var n="",s=e.tag,i,o,a;for(i=0,o=r.length;i1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,c,false,false)){continue}l+=e.dump;n+=l}e.tag=s;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var s="",i=e.tag,o=Object.keys(r),a,u,c,l,f,p;if(e.sortKeys===true){o.sort()}else if(typeof e.sortKeys==="function"){o.sort(e.sortKeys)}else if(e.sortKeys){throw new d("sortKeys must be a boolean or a function")}for(a=0,u=o.length;a1024;if(f){if(e.dump&&ge===e.dump.charCodeAt(0)){p+="?"}else{p+="? "}}p+=e.dump;if(f){p+=generateNextLine(e,t)}if(!writeNode(e,t+1,l,true,f)){continue}if(e.dump&&ge===e.dump.charCodeAt(0)){p+=":"}else{p+=": "}p+=e.dump;s+=p}e.tag=i;e.dump=s||"{}"}function detectType(e,t,r){var n,s,i,o,a,u;s=r?e.explicitTypes:e.implicitTypes;for(i=0,o=s.length;i tag resolver accepts not "'+u+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,s,i,o){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var a=fe.call(e.dump);var u=n;var c;if(n){n=e.flowLevel<0||e.flowLevel>t}var l=a==="[object Object]"||a==="[object Array]",f,p;if(l){f=e.duplicates.indexOf(r);p=f!==-1}if(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0){s=false}if(p&&e.usedDuplicates[f]){e.dump="*ref_"+f}else{if(l&&p&&!e.usedDuplicates[f]){e.usedDuplicates[f]=true}if(a==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,s);if(p){e.dump="&ref_"+f+e.dump}}else{writeFlowMapping(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!o&&t>0){writeBlockSequence(e,t-1,e.dump,s)}else{writeBlockSequence(e,t,e.dump,s)}if(p){e.dump="&ref_"+f+e.dump}}else{writeFlowSequence(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(a==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,i,u)}}else if(a==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new d("unacceptable kind of an object to dump "+a)}if(e.tag!==null&&e.tag!=="?"){c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){c="!"+c}else if(c.slice(0,18)==="tag:yaml.org,2002:"){c="!!"+c.slice(18)}else{c="!<"+c+">"}e.dump=c+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],s,i;inspectNode(e,r,n);for(s=0,i=n.length;spt(void 0,void 0,void 0,(function*(){var t;yield checkInputs().catch(e.setFailed);(0,e.startGroup)("Internal logs");(0,e.info)("> Staging files...");if(getInput("add")){(0,e.info)("> Adding files...");yield add()}else(0,e.info)("> No files to add.");if(getInput("remove")){(0,e.info)("> Removing files...");yield remove()}else(0,e.info)("> No files to remove.");(0,e.info)("> Checking for uncommitted changes in the git working tree...");const r=(yield ht.diffSummary(["--cached"])).files.length;if(r>0){(0,e.info)(`> Found ${r} changed files.`);yield ht.addConfig("user.email",getInput("author_email"),undefined,log).addConfig("user.name",getInput("author_name"),undefined,log);(0,e.debug)("> Current git config\n"+JSON.stringify((yield ht.listConfig()).all,null,2));yield ht.fetch(["--tags","--force"],log);(0,e.info)("> Switching/creating branch...");yield ht.checkout(getInput("branch"),undefined,log).catch((()=>ht.checkoutLocalBranch(getInput("branch"),log)));if(getInput("pull_strategy")=="NO-PULL")(0,e.info)("> Not pulling from repo.");else{(0,e.info)("> Pulling from remote...");yield ht.fetch(undefined,log).pull(undefined,undefined,{[getInput("pull_strategy")]:null},log)}(0,e.info)("> Re-staging files...");if(getInput("add"))yield add({ignoreErrors:true});if(getInput("remove"))yield remove({ignoreErrors:true});(0,e.info)("> Creating commit...");yield ht.commit(getInput("message"),undefined,Object.assign({"--author":`"${getInput("author_name")} <${getInput("author_email")}>"`},getInput("signoff")?{"--signoff":null}:{}),((e,t)=>{if(t)setOutput("committed","true");return log(e,t)}));if(getInput("tag")){(0,e.info)("> Tagging commit...");yield ht.tag(matchGitArgs(getInput("tag")),((e,t)=>{if(t)setOutput("tagged","true");return log(e,t)})).then((e=>{setOutput("tagged","true");return log(null,e)})).catch((t=>(0,e.setFailed)(t)))}else(0,e.info)("> No tag info provided.");const n=(t=parseBool(getInput("push")))!==null&&t!==void 0?t:getInput("push");if(n){(0,e.info)("> Pushing commit to repo...");if(n===true){(0,e.debug)(`Running: git push origin ${getInput("branch")} --set-upstream`);yield ht.push("origin",getInput("branch"),{"--set-upstream":null},((e,t)=>{if(t)setOutput("pushed","true");return log(e,t)}))}else{(0,e.debug)(`Running: git push ${n}`);yield ht.push(undefined,undefined,matchGitArgs(n),((e,t)=>{if(t)setOutput("pushed","true");return log(e,t)}))}if(getInput("tag")){(0,e.info)("> Pushing tags to repo...");yield ht.pushTags("origin",undefined,((e,t)=>log(undefined,e||t))).catch((()=>{(0,e.info)("> Tag push failed: deleting remote tag and re-pushing...");return ht.push(undefined,undefined,{"--delete":null,origin:null,[matchGitArgs(getInput("tag")).filter((e=>!e.startsWith("-")))[0]]:null},log).pushTags("origin",undefined,log)}))}else(0,e.info)("> No tags to push.")}else(0,e.info)("> Not pushing anything.");(0,e.endGroup)();(0,e.info)("> Task completed.")}else{(0,e.endGroup)();(0,e.info)("> Working tree clean. Nothing to commit.")}})))().then(logOutputs).catch((t=>{(0,e.endGroup)();logOutputs();(0,e.setFailed)(t)}));function checkInputs(){var t,r,n,s;return pt(this,void 0,void 0,(function*(){function setInput(e,t){if(t)return process.env[`INPUT_${e.toUpperCase()}`]=t;else return delete process.env[`INPUT_${e.toUpperCase()}`]}function setDefault(e,t){if(!getInput(e))setInput(e,t);return getInput(e)}const i=process.env.GITHUB_EVENT_PATH,o=i&&__nccwpck_require__(875)(i),a=(t=process.env.GITHUB_EVENT_NAME)===null||t===void 0?void 0:t.includes("pull_request"),u=a?(n=(r=o===null||o===void 0?void 0:o.pull_request)===null||r===void 0?void 0:r.head)===null||n===void 0?void 0:n.ref:(s=process.env.GITHUB_REF)===null||s===void 0?void 0:s.substring(11);if(!getInput("add")&&!getInput("remove"))throw new Error("Both 'add' and 'remove' are empty, the action has nothing to do.");if(getInput("add")){const t=parseInputArray(getInput("add"));if(t.length==1)(0,e.info)("Add input parsed as single string, running 1 git add command.");else if(t.length>1)(0,e.info)(`Add input parsed as string array, running ${t.length} git add commands.`);else(0,e.setFailed)("Add input: array length < 1")}if(getInput("remove")){const t=parseInputArray(getInput("remove"));if(t.length==1)(0,e.info)("Remove input parsed as single string, running 1 git rm command.");else if(t.length>1)(0,e.info)(`Remove input parsed as string array, running ${t.length} git rm commands.`);else(0,e.setFailed)("Remove input: array length < 1")}setDefault("author_name",`${process.env.GITHUB_ACTOR}`);setDefault("author_email",`${process.env.GITHUB_ACTOR}@users.noreply.github.com`);(0,e.info)(`> Using '${getInput("author_name")} <${getInput("author_email")}>' as author.`);setDefault("message",`Commit from GitHub Actions (${process.env.GITHUB_WORKFLOW})`);(0,e.info)(`> Using "${getInput("message")}" as commit message.`);const c=setDefault("branch",u||"");if(a)(0,e.info)(`> Running for a PR, the action will use '${c}' as ref.`);if(getInput("signoff")){const t=parseBool(getInput("signoff"));if(t===undefined)throw new Error(`"${getInput("signoff")}" is not a valid value for the 'signoff' input: only "true" and "false" are allowed.`);if(!t)setInput("signoff",undefined);(0,e.debug)(`Current signoff option: ${getInput("signoff")} (${typeof getInput("signoff")})`)}if(getInput("pull_strategy")=="NO-PULL")(0,e.debug)("NO-PULL found: won't pull from remote.");if(getInput("push")){const t=parseBool(getInput("push"));(0,e.debug)(`Current push option: '${getInput("push")}' (parsed as ${typeof t})`)}}))}function add({logWarning:t=true,ignoreErrors:r=false}={}){return pt(this,void 0,void 0,(function*(){const n=getInput("add");if(!n)return[];const s=parseInputArray(n);const i=[];for(const n of s){i.push(yield ht.add(matchGitArgs(n),((e,t)=>log(r?null:e,t))).catch((s=>{if(r)return;if(s.message.includes("fatal: pathspec")&&s.message.includes("did not match any files")&&t)(0,e.warning)(`Add command did not match any file:\n git add ${n}`);else throw s})))}return i}))}function remove({logWarning:t=true,ignoreErrors:r=false}={}){return pt(this,void 0,void 0,(function*(){const n=getInput("remove");if(!n)return[];const s=parseInputArray(n);const i=[];for(const n of s){i.push(yield ht.rm(matchGitArgs(n),((e,t)=>log(r?null:e,t))).catch((s=>{if(r)return;if(s.message.includes("fatal: pathspec")&&s.message.includes("did not match any files"))t&&(0,e.warning)(`Remove command did not match any file:\n git rm ${n}`);else throw s})))}return i}))}function parseInputArray(t){try{const r=JSON.parse(t);if(r&&Array.isArray(r)&&r.every((e=>typeof e=="string"))){(0,e.debug)(`Input parsed as JSON array of length ${r.length}`);return r}}catch(e){}try{const r=lt.load(t);if(r&&Array.isArray(r)&&r.every((e=>typeof e=="string"))){(0,e.debug)(`Input parsed as YAML array of length ${r.length}`);return r}}catch(e){}(0,e.debug)("Input parsed as single string");return[t]}function logOutputs(){(0,e.startGroup)("Outputs");for(const t in ft){(0,e.info)(`${t}: ${ft[t]}`)}(0,e.endGroup)()}})();module.exports=r})(); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f5ff2f1..8a3484e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@types/node": "^12.12.54", "@typescript-eslint/eslint-plugin": "^4.20.0", "@typescript-eslint/parser": "^4.21.0", - "@vercel/ncc": "^0.27.0", + "@vercel/ncc": "^0.28.2", "all-contributors-cli": "^6.20.0", "eslint": "^7.23.0", "eslint-config-prettier": "^6.15.0", @@ -504,9 +504,9 @@ } }, "node_modules/@vercel/ncc": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.27.0.tgz", - "integrity": "sha512-DllIJQapnU2YwewIhh/4dYesmMQw3h2cFtabECc/zSJHqUbNa0eJuEkRa6DXbZvh1YPWBtYQoPV17NlDpBw1Vw==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.28.2.tgz", + "integrity": "sha512-2ZBPviK9nFHzymu9POKGz50BRGGBIw7a8VcjgH73Xu2H4IvZx3KS0Qk/SS7S/N6iAalAGGxLSwFM1obeBGWXGg==", "dev": true, "bin": { "ncc": "dist/ncc/cli.js" @@ -2980,9 +2980,9 @@ } }, "@vercel/ncc": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.27.0.tgz", - "integrity": "sha512-DllIJQapnU2YwewIhh/4dYesmMQw3h2cFtabECc/zSJHqUbNa0eJuEkRa6DXbZvh1YPWBtYQoPV17NlDpBw1Vw==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.28.2.tgz", + "integrity": "sha512-2ZBPviK9nFHzymu9POKGz50BRGGBIw7a8VcjgH73Xu2H4IvZx3KS0Qk/SS7S/N6iAalAGGxLSwFM1obeBGWXGg==", "dev": true }, "acorn": { diff --git a/package.json b/package.json index ae88efc..3263cb7 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@types/node": "^12.12.54", "@typescript-eslint/eslint-plugin": "^4.20.0", "@typescript-eslint/parser": "^4.21.0", - "@vercel/ncc": "^0.27.0", + "@vercel/ncc": "^0.28.2", "all-contributors-cli": "^6.20.0", "eslint": "^7.23.0", "eslint-config-prettier": "^6.15.0", diff --git a/tsconfig.json b/tsconfig.json index 15a5f0c..01252ad 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -35,7 +35,7 @@ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ /* Module Resolution Options */ - // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ + "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */