diff --git a/README.md b/README.md new file mode 100644 index 0000000..13e921c --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# GitHub Action - Synchronize Branches + +This GitHub Action (written in JavaScript) checks out a branch with the same name as the context (`github.ref`) branch in each repository in a directory. This helps synchronize multi-repo builds when working on related feature branches in different repositories. + +## Usage + +### Inputs + +- `path`: Directory containing the repositories to synchronize. Defaults to the workspace working directory. diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..3806014 --- /dev/null +++ b/action.yml @@ -0,0 +1,13 @@ +name: Synchronize Branches +description: Synchronize branches in a multi-repo build +inputs: + path: + description: The directory containing the repositories to synchronize + required: true + default: '.' +runs: + using: node12 + main: dist/index.js +branding: + icon: git-branch + color: green diff --git a/dist/index.js b/dist/index.js index 2e3888b..85b8df9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(31)}return startup()}({0:function(e,t,r){const{requestLog:n}=r(916);const{restEndpointMethods:i}=r(842);const s=r(529);const o=[r(190),r(19),n,r(148),i,r(430),r(850)];const a=s.plugin(o);function DeprecatedOctokit(e){const t=e&&e.log&&e.log.warn?e.log.warn:console.warn;t('[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead');return new a(e)}const u=Object.assign(DeprecatedOctokit,{Octokit:a});Object.keys(a).forEach(e=>{if(a.hasOwnProperty(e)){u[e]=a[e]}});e.exports=u},2:function(e,t,r){"use strict";const n=r(87);const i=r(118);const s=r(49);const o=(e,t)=>{if(!e&&t){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||n.platform();let r;if(e==="darwin"){if(!t&&n.platform()==="darwin"){t=n.release()}const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";r=t?i(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&n.platform()==="linux"){t=n.release()}r=t?t.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&n.platform()==="win32"){t=n.release()}r=t?s(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=o},9:function(e,t,r){var n=r(969);var i=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=n(r||i);var u=e._writableState;var p=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var d=t.writable||t.writable!==false&&e.writable;var l=false;var g=function(){if(!e.writable)m()};var m=function(){d=false;if(!c)r.call(e)};var h=function(){c=false;if(!d)r.call(e)};var y=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var f=function(t){r.call(e,t)};var b=function(){process.nextTick(_)};var _=function(){if(l)return;if(c&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(d&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"))};var q=function(){e.req.on("finish",m)};if(s(e)){e.on("complete",m);e.on("abort",b);if(e.req)q();else e.on("request",q)}else if(d&&!u){e.on("end",g);e.on("close",g)}if(o(e))e.on("exit",y);e.on("end",h);e.on("finish",m);if(t.error!==false)e.on("error",f);e.on("close",b);return function(){l=true;e.removeListener("complete",m);e.removeListener("abort",b);e.removeListener("request",q);if(e.req)e.req.removeListener("finish",m);e.removeListener("end",g);e.removeListener("close",g);e.removeListener("finish",m);e.removeListener("exit",y);e.removeListener("end",h);e.removeListener("error",f);e.removeListener("close",b)}};e.exports=a},11:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;re.warn(t));const o=r(674);const a=r(471);const u=r(349);function authenticationPlugin(e,t){if(t.auth){e.authenticate=(()=>{s(e.log,new n('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});return}const r={octokit:e,auth:false};e.authenticate=o.bind(null,r);e.hook.before("request",a.bind(null,r));e.hook.error("request",u.bind(null,r))}},20:function(e,t,r){"use strict";const n=r(129);const i=r(568);const s=r(881);function spawn(e,t,r){const o=i(e,t,r);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=i(e,t,r);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},25:function(e){e.exports=function deferred(){var e={};e.promise=new Promise(function(t,r){e.resolve=t;e.reject=r});return e}},31:function(__unusedmodule,__unusedexports,__webpack_require__){const core=__webpack_require__(470);const{synchronizeBranches:synchronizeBranches}=__webpack_require__(381);async function main(){try{await synchronizeBranches()}catch(e){core.setFailed(e.message)}}if(require.main===require.cache[eval("__filename")])main()},34:function(e){e.exports=require("https")},39:function(e){"use strict";e.exports=(e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},47:function(e,t,r){e.exports=factory;const n=r(402);const i=r(855);function factory(e){const t=n.bind(null,e||[]);t.plugin=i.bind(null,e||[]);return t}},48:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var u=0;var p=u++;a[p]="0|[1-9]\\d*";var c=u++;a[c]="[0-9]+";var d=u++;a[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=u++;a[l]="("+a[p]+")\\."+"("+a[p]+")\\."+"("+a[p]+")";var g=u++;a[g]="("+a[c]+")\\."+"("+a[c]+")\\."+"("+a[c]+")";var m=u++;a[m]="(?:"+a[p]+"|"+a[d]+")";var h=u++;a[h]="(?:"+a[c]+"|"+a[d]+")";var y=u++;a[y]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var f=u++;a[f]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var b=u++;a[b]="[0-9A-Za-z-]+";var _=u++;a[_]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var q=u++;var w="v?"+a[l]+a[y]+"?"+a[_]+"?";a[q]="^"+w+"$";var v="[v=\\s]*"+a[g]+a[f]+"?"+a[_]+"?";var E=u++;a[E]="^"+v+"$";var T=u++;a[T]="((?:<|>)?=?)";var S=u++;a[S]=a[c]+"|x|X|\\*";var k=u++;a[k]=a[p]+"|x|X|\\*";var C=u++;a[C]="[v=\\s]*("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:"+a[y]+")?"+a[_]+"?"+")?)?";var O=u++;a[O]="[v=\\s]*("+a[S]+")"+"(?:\\.("+a[S]+")"+"(?:\\.("+a[S]+")"+"(?:"+a[f]+")?"+a[_]+"?"+")?)?";var j=u++;a[j]="^"+a[T]+"\\s*"+a[C]+"$";var G=u++;a[G]="^"+a[T]+"\\s*"+a[O]+"$";var P=u++;a[P]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var A=u++;a[A]="(?:~>?)";var x=u++;a[x]="(\\s*)"+a[A]+"\\s+";o[x]=new RegExp(a[x],"g");var R="$1~";var D=u++;a[D]="^"+a[A]+a[C]+"$";var L=u++;a[L]="^"+a[A]+a[O]+"$";var F=u++;a[F]="(?:\\^)";var U=u++;a[U]="(\\s*)"+a[F]+"\\s+";o[U]=new RegExp(a[U],"g");var H="$1^";var I=u++;a[I]="^"+a[F]+a[C]+"$";var B=u++;a[B]="^"+a[F]+a[O]+"$";var $=u++;a[$]="^"+a[T]+"\\s*("+v+")$|^$";var N=u++;a[N]="^"+a[T]+"\\s*("+w+")$|^$";var z=u++;a[z]="(\\s*)"+a[T]+"\\s*("+v+"|"+a[C]+")";o[z]=new RegExp(a[z],"g");var V="$1$2$3";var M=u++;a[M]="^\\s*("+a[C]+")"+"\\s+-\\s+"+"("+a[C]+")"+"\\s*$";var W=u++;a[W]="^\\s*("+a[O]+")"+"\\s+-\\s+"+"("+a[O]+")"+"\\s*$";var K=u++;a[K]="(<|>)?=?\\s*\\*";for(var X=0;Xn){return null}var r=t.loose?o[E]:o[q];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[E]:o[q]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var J=/^[0-9]+$/;function compareIdentifiers(e,t){var r=J.test(e);var n=J.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===Y){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Y={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[$]:o[N];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=Y}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===Y){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[W]:o[M];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[z],V);r("comparator trim",e,o[z]);e=e.replace(o[x],R);e=e.replace(o[U],H);e=e.split(/\s+/).join(" ");var i=t?o[$]:o[N];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[L]:o[D];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[B]:o[I];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[G]:o[j];return e.replace(n,function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var u=isX(i);var p=u||isX(s);var c=p||isX(o);var d=c;if(n==="="&&d){n=""}if(u){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&d){if(p){s=0}o=0;if(n===">"){n=">=";if(p){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(p){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(p){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(c){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[K],"")}function hyphenReplace(e,t,r,n,i,s,o,a,u,p,c,d,l){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(u)){a=""}else if(isX(p)){a="<"+(+u+1)+".0.0"}else if(isX(c)){a="<"+u+"."+(+p+1)+".0"}else if(d){a="<="+u+"."+p+"."+c+"-"+d}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,u;switch(r){case">":i=gt;s=lte;o=lt;a=">";u=">=";break;case"<":i=lt;s=gte;o=gt;a="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var p=0;p=0.0.0")}d=d||e;l=l||e;if(i(e.semver,d.semver,n)){d=e}else if(o(e.semver,l.semver,n)){l=e}});if(d.operator===a||d.operator===u){return false}if((!l.operator||l.operator===a)&&s(e,l.semver)){return false}else if(l.operator===u&&o(e,l.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[P]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},49:function(e,t,r){"use strict";const n=r(87);const i=r(955);const s=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);const o=e=>{const t=/\d+\.\d/.exec(e||n.release());if(e&&!t){throw new Error("`release` argument doesn't match `n.n`")}const r=(t||[])[0];if((!e||e===n.release())&&["6.1","6.2","6.3","10.0"].includes(r)){let e;try{e=i.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}catch(t){e=i.sync("wmic",["os","get","Caption"]).stdout||""}const t=(e.match(/2008|2012|2016|2019/)||[])[0];if(t){return`Server ${t}`}}return s.get(r)};e.exports=o},57:function(e,t,r){if(typeof Promise==="undefined"){throw new ReferenceError("Promise wrappers must be enabled to use the promise API")}function isAsyncCall(e){return/^[^)]+then\s*\)/.test(e)||/\._run\(/.test(e)}e.exports=function(e){var t=r(71);var n=r(964);var i;var s=Promise.resolve();try{i=n(e)}catch(e){s=Promise.reject(e)}return Object.keys(t.prototype).reduce(function(e,r){if(/^_|then/.test(r)){return e}if(isAsyncCall(t.prototype[r])){e[r]=i?asyncWrapper(r,i):function(){return s}}else{e[r]=i?syncWrapper(r,i,e):function(){return e}}return e},{});function asyncWrapper(e,t){return function(){var r=[].slice.call(arguments);if(typeof r[r.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return s.then(function(){return new Promise(function(n,i){r.push(function(e,t){if(e){return i(toError(e))}n(t)});t[e].apply(t,r)})})}}function syncWrapper(e,t,r){return function(){t[e].apply(t,arguments);return r}}};function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return Object.create(new Error(e),{git:{value:e}})}},71:function(e,t,r){(function(){"use strict";var t=r(784)("simple-git");var n=r(25);var i=r(726);var s=function(){};var o=r(820);function Git(e,t,r){this._baseDir=e;this._runCache=[];this.ChildProcess=t;this.Buffer=r}Git.prototype._command="git";Git.prototype._env=null;Git.prototype._outputHandler=null;Git.prototype._silentLogging=/prod/.test(process.env.NODE_ENV);Git.prototype.customBinary=function(e){this._command=e;return this};Git.prototype.env=function(e,t){if(arguments.length===1&&typeof e==="object"){this._env=e}else{(this._env=this._env||{})[e]=t}return this};Git.prototype.cwd=function(e,t){var r=this;var n=Git.trailingFunctionArgument(arguments);return this.exec(function(){r._baseDir=e;if(!i(e,i.FOLDER)){Git.exception(r,'Git.cwd: cannot change to non-directory "'+e+'"',n)}else{n&&n(null,e)}})};Git.prototype.outputHandler=function(e){this._outputHandler=e;return this};Git.prototype.init=function(e,t){var r=["init"];var n=Git.trailingFunctionArgument(arguments);if(e===true){r.push("--bare")}return this._run(r,function(e){n&&n(e)})};Git.prototype.status=function(e){return this._run(["status","--porcelain","-b","-u"],Git._responseHandler(e,"StatusSummary"))};Git.prototype.stashList=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=(r===t?e:null)||{};var i=n.splitter||requireResponseHandler("ListLogSummary").SPLITTER;var s=["stash","list","--pretty=format:"+requireResponseHandler("ListLogSummary").START_BOUNDARY+"%H %ai %s%d %aN %ae".replace(/\s+/g,i)+requireResponseHandler("ListLogSummary").COMMIT_BOUNDARY];if(Array.isArray(n)){s=s.concat(n)}return this._run(s,Git._responseHandler(r,"ListLogSummary",i))};Git.prototype.stash=function(e,t){var r=["stash"];Git._appendOptions(r,Git.trailingOptionsArgument(arguments));r.push.apply(r,Git.trailingArrayArgument(arguments));return this._run(r,Git._responseHandler(Git.trailingFunctionArgument(arguments)))};Git.prototype.clone=function(e,t,r,n){var i=Git.trailingFunctionArgument(arguments);var s=["clone"].concat(Git.trailingArrayArgument(arguments));for(var o=0,a=arguments.length;o1){r(t)}return r};Git.prototype.pull=function(e,t,r,n){var i=["pull"];var s=Git.trailingFunctionArgument(arguments);if(typeof e==="string"&&typeof t==="string"){i.push(e,t)}Git._appendOptions(i,Git.trailingOptionsArgument(arguments));return this._run(i,Git._responseHandler(s,"PullSummary"))};Git.prototype.fetch=function(e,t,r){var n=["fetch"];var i=Git.trailingFunctionArgument(arguments);Git._appendOptions(n,Git.trailingOptionsArgument(arguments));if(typeof e==="string"&&typeof t==="string"){n.push(e,t)}if(Array.isArray(e)){n=n.concat(e)}return this._run(n,Git._responseHandler(i,"FetchSummary"),{concatStdErr:true})};Git.prototype.silent=function(e){this._silentLogging=!!e;return this};Git.prototype.tags=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=["-l"];Git._appendOptions(n,Git.trailingOptionsArgument(arguments));var i=n.some(function(e){return/^--sort=/.test(e)});return this.tag(n,Git._responseHandler(r,"TagList",[i]))};Git.prototype.rebase=function(e,t){var r=["rebase"];Git._appendOptions(r,Git.trailingOptionsArgument(arguments));r.push.apply(r,Git.trailingArrayArgument(arguments));return this._run(r,Git._responseHandler(Git.trailingFunctionArgument(arguments)))};Git.prototype.reset=function(e,t){var r=["reset"];var n=Git.trailingFunctionArgument(arguments);if(n===e||typeof e==="string"||!e){var i=["mixed","soft","hard"].includes(e)?e:"soft";r.push("--"+i)}else if(Array.isArray(e)){r.push.apply(r,e)}return this._run(r,function(e){n&&n(e||null)})};Git.prototype.revert=function(e,t,r){var n=Git.trailingFunctionArgument(arguments);var i=["revert"];Git._appendOptions(i,Git.trailingOptionsArgument(arguments));if(typeof e!=="string"){return this.exec(function(){n&&n(new TypeError("Commit must be a string"))})}i.push(e);return this._run(i,function(e){n&&n(e||null)})};Git.prototype.addTag=function(e,t){if(typeof e!=="string"){return this.exec(function(){t&&t(new TypeError("Git.addTag requires a tag name"))})}var r=[e];return t?this.tag(r,t):this.tag(r)};Git.prototype.addAnnotatedTag=function(e,t,r){return this.tag(["-a","-m",t,e],function(e){r&&r(e)})};Git.prototype.checkout=function(e,t){var r=["checkout"];r=r.concat(e);return this._run(r,function(e,r){t&&t(e,!e&&this._parseCheckout(r))})};Git.prototype.checkoutBranch=function(e,t,r){return this.checkout(["-b",e,t],r)};Git.prototype.checkoutLocalBranch=function(e,t){return this.checkout(["-b",e],t)};Git.prototype.deleteLocalBranch=function(e,t){return this.branch(["-d",e],t)};Git.prototype.branch=function(e,t){var r,n;var i=Git.trailingFunctionArgument(arguments);var s=["branch"];s.push.apply(s,Git.trailingArrayArgument(arguments));Git._appendOptions(s,Git.trailingOptionsArgument(arguments));if(!arguments.length||i===e){s.push("-a")}r=["-d","-D","--delete"].reduce(function(e,t){return e||s.indexOf(t)>0},false);if(s.indexOf("-v")<0){s.splice(1,0,"-v")}n=r?Git._responseHandler(i,"BranchDeleteSummary",false):Git._responseHandler(i,"BranchSummary");return this._run(s,n)};Git.prototype.branchLocal=function(e){return this.branch(["-v"],e)};Git.prototype.addConfig=function(e,t,r){return this._run(["config","--local",e,t],function(e,t){r&&r(e,!e&&t)})};Git.prototype.raw=function(e,t){var r=[];if(Array.isArray(e)){r=e.slice(0)}else{Git._appendOptions(r,Git.trailingOptionsArgument(arguments))}var n=Git.trailingFunctionArgument(arguments);if(!r.length){return this.exec(function(){n&&n(new Error("Raw: must supply one or more command to execute"),null)})}return this._run(r,function(e,t){n&&n(e,!e&&t||null)})};Git.prototype.submoduleAdd=function(e,t,r){return this._run(["submodule","add",e,t],function(e){r&&r(e)})};Git.prototype.submoduleUpdate=function(e,t){if(typeof e==="string"){this._getLog("warn","Git#submoduleUpdate: args should be supplied as an array of individual arguments")}var r=Git.trailingFunctionArgument(arguments);var n=e!==r?e:[];return this.subModule(["update"].concat(n),function(e,t){r&&r(e,t)})};Git.prototype.submoduleInit=function(e,t){if(typeof e==="string"){this._getLog("warn","Git#submoduleInit: args should be supplied as an array of individual arguments")}var r=Git.trailingFunctionArgument(arguments);var n=e!==r?e:[];return this.subModule(["init"].concat(n),function(e,t){r&&r(e,t)})};Git.prototype.subModule=function(e,t){if(!Array.isArray(e)){return this.exec(function(){t&&t(new TypeError("Git.subModule requires an array of arguments"))})}if(e[0]!=="submodule"){e.unshift("submodule")}return this._run(e,function(e,r){t&&t(e||null,e?null:r)})};Git.prototype.listRemote=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=r===e||e===undefined?[]:e;if(typeof n==="string"){this._getLog("warn","Git#listRemote: args should be supplied as an array of individual arguments")}return this._run(["ls-remote"].concat(n),function(e,t){r&&r(e,t)})};Git.prototype.addRemote=function(e,t,r){return this._run(["remote","add",e,t],function(e){r&&r(e)})};Git.prototype.removeRemote=function(e,t){return this._run(["remote","remove",e],function(e){t&&t(e)})};Git.prototype.getRemotes=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=e===true?["-v"]:[];return this.remote(n,function(e,t){r&&r(e,!e&&function(){return t.trim().split("\n").filter(Boolean).reduce(function(e,t){var r=t.trim().split(/\s+/);var n=r.shift();if(!e[n]){e[n]=e[e.length]={name:n,refs:{}}}if(r.length){e[n].refs[r.pop().replace(/[^a-z]/g,"")]=r.pop()}return e},[]).slice(0)}())})};Git.prototype.remote=function(e,t){if(!Array.isArray(e)){return this.exec(function(){t&&t(new TypeError("Git.remote requires an array of arguments"))})}if(e[0]!=="remote"){e.unshift("remote")}return this._run(e,function(e,r){t&&t(e||null,e?null:r)})};Git.prototype.mergeFromTo=function(e,t,r,n){var i=[e,t];var s=Git.trailingFunctionArgument(arguments);if(Array.isArray(r)){i=i.concat(r)}return this.merge(i,s)};Git.prototype.merge=function(e,t){var r=this;var n=Git.trailingFunctionArgument(arguments)||s;var i=function(e,t){if(!e&&t.failed){return Git.fail(r,t,n)}n(e,t)};var o=[];Git._appendOptions(o,Git.trailingOptionsArgument(arguments));o.push.apply(o,Git.trailingArrayArgument(arguments));if(o[0]!=="merge"){o.unshift("merge")}if(o.length===1){return this.exec(function(){t&&t(new TypeError("Git.merge requires at least one option"))})}return this._run(o,Git._responseHandler(i,"MergeSummary"),{concatStdErr:true})};Git.prototype.tag=function(e,t){var r=[];Git._appendOptions(r,Git.trailingOptionsArgument(arguments));r.push.apply(r,Git.trailingArrayArgument(arguments));if(r[0]!=="tag"){r.unshift("tag")}return this._run(r,Git._responseHandler(Git.trailingFunctionArgument(arguments)))};Git.prototype.updateServerInfo=function(e){return this._run(["update-server-info"],function(t,r){e&&e(t,!t&&r)})};Git.prototype.push=function(e,t,r){var n=[];var i=Git.trailingFunctionArgument(arguments);if(typeof e==="string"&&typeof t==="string"){n.push(e,t)}if(Array.isArray(e)){n=n.concat(e)}Git._appendOptions(n,Git.trailingOptionsArgument(arguments));if(n[0]!=="push"){n.unshift("push")}return this._run(n,function(e,t){i&&i(e,!e&&t)})};Git.prototype.pushTags=function(e,t){var r=["push"];if(typeof e==="string"){r.push(e)}r.push("--tags");t=typeof arguments[arguments.length-1]==="function"?arguments[arguments.length-1]:null;return this._run(r,function(e,r){t&&t(e,!e&&r)})};Git.prototype.rm=function(e,t){return this._rm(e,"-f",t)};Git.prototype.rmKeepLocal=function(e,t){return this._rm(e,"--cached",t)};Git.prototype.catFile=function(e,t){return this._catFile("utf-8",arguments)};Git.prototype.binaryCatFile=function(e,t){return this._catFile("buffer",arguments)};Git.prototype._catFile=function(e,t){var r=Git.trailingFunctionArgument(t);var n=["cat-file"];var i=t[0];if(typeof i==="string"){throw new TypeError("Git#catFile: options must be supplied as an array of strings")}else if(Array.isArray(i)){n.push.apply(n,i)}return this._run(n,function(e,t){r&&r(e,t)},{format:e})};Git.prototype.diff=function(e,t){var r=["diff"];if(typeof e==="string"){r[0]+=" "+e;this._getLog("warn","Git#diff: supplying options as a single string is now deprecated, switch to an array of strings")}else if(Array.isArray(e)){r.push.apply(r,e)}if(typeof arguments[arguments.length-1]==="function"){t=arguments[arguments.length-1]}return this._run(r,function(e,r){t&&t(e,r)})};Git.prototype.diffSummary=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=["--stat=4096"];if(e&&e!==r){n.push.apply(n,[].concat(e))}return this.diff(n,Git._responseHandler(r,"DiffSummary"))};Git.prototype.revparse=function(e,t){var r=["rev-parse"];if(typeof e==="string"){r=r+" "+e;this._getLog("warn","Git#revparse: supplying options as a single string is now deprecated, switch to an array of strings")}else if(Array.isArray(e)){r.push.apply(r,e)}if(typeof arguments[arguments.length-1]==="function"){t=arguments[arguments.length-1]}return this._run(r,function(e,r){t&&t(e,e?null:String(r).trim())})};Git.prototype.show=function(e,t){var r=[].slice.call(arguments,0);var n=typeof r[r.length-1]==="function"?r.pop():null;var i=["show"];if(typeof e==="string"){i=i+" "+e;this._getLog("warn","Git#show: supplying options as a single string is now deprecated, switch to an array of strings")}else if(Array.isArray(e)){i.push.apply(i,e)}return this._run(i,function(e,t){n&&n(e,!e&&t)})};Git.prototype.clean=function(e,t,r){var n=Git.trailingFunctionArgument(arguments);if(typeof e!=="string"||!/[nf]/.test(e)){return this.exec(function(){n&&n(new TypeError('Git clean mode parameter ("n" or "f") is required'))})}if(/[^dfinqxX]/.test(e)){return this.exec(function(){n&&n(new TypeError("Git clean unknown option found in "+JSON.stringify(e)))})}var i=["clean","-"+e];if(Array.isArray(t)){i=i.concat(t)}if(i.some(interactiveMode)){return this.exec(function(){n&&n(new TypeError("Git clean interactive mode is not supported"))})}return this._run(i,function(e,t){n&&n(e,!e&&t)});function interactiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}};Git.prototype.exec=function(e){this._run([],function(){typeof e==="function"&&e()});return this};Git.prototype.then=function(e){this._getLog("error",`\nGit#then is deprecated after version 1.72 and will be removed in version 2.x\nTo use promises switch to importing 'simple-git/promise'.`);return this.exec(e)};Git.prototype.log=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=(r===t?e:null)||{};var i=n.splitter||requireResponseHandler("ListLogSummary").SPLITTER;var s=n.format||{hash:"%H",date:"%ai",message:"%s",refs:"%D",body:n.multiLine?"%B":"%b",author_name:"%aN",author_email:"%ae"};var o=n.symmetric!==false?"...":"..";var a=Object.keys(s);var u=a.map(function(e){return s[e]}).join(i);var p=[];var c=["log","--pretty=format:"+requireResponseHandler("ListLogSummary").START_BOUNDARY+u+requireResponseHandler("ListLogSummary").COMMIT_BOUNDARY];if(Array.isArray(n)){c=c.concat(n);n={}}else if(typeof arguments[0]==="string"||typeof arguments[1]==="string"){this._getLog("warn","Git#log: supplying to or from as strings is now deprecated, switch to an options configuration object");n={from:arguments[0],to:arguments[1]}}if(n.n||n["max-count"]){c.push("--max-count="+(n.n||n["max-count"]))}if(n.from&&n.to){c.push(n.from+o+n.to)}if(n.file){p.push("--follow",e.file)}"splitter n max-count file from to --pretty format symmetric multiLine".split(" ").forEach(function(e){delete n[e]});Git._appendOptions(c,n);return this._run(c.concat(p),Git._responseHandler(r,"ListLogSummary",[i,a]))};Git.prototype.clearQueue=function(){this._runCache.length=0;return this};Git.prototype.checkIgnore=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=["check-ignore"];if(r!==e){n=n.concat(e)}return this._run(n,function(e,t){r&&r(e,!e&&this._parseCheckIgnore(t))})};Git.prototype.checkIsRepo=function(e){function onError(e,t,r,n){if(e===128&&/(Not a git repository|Kein Git-Repository)/i.test(t)){return r(false)}n(t)}function handler(t,r){e&&e(t,String(r).trim()==="true")}return this._run(["rev-parse","--is-inside-work-tree"],handler,{onError:onError})};Git.prototype._rm=function(e,t,r){var n=[].concat(e);var i=["rm",t];i.push.apply(i,n);return this._run(i,function(e){r&&r(e)})};Git.prototype._parseCheckout=function(e){};Git.prototype._parseCheckIgnore=function(e){return e.split(/\n/g).filter(Boolean).map(function(e){return e.trim()})};Git.prototype._run=function(e,t,r){if(typeof e==="string"){e=e.split(" ")}this._runCache.push([e,t,r||{}]);this._schedule();return this};Git.prototype._schedule=function(){if(!this._childProcess&&this._runCache.length){var e=this;var r=e.Buffer;var i=e._runCache.shift();var s=i[0];var o=i[1];var a=i[2];t(s);var u=n();var p=false;var c=function attemptClose(e){if(p||l.length||d.length){u.resolve(e);p=true}if(!p){p=true;setTimeout(attemptClose.bind(this,e),50)}};var d=[];var l=[];var g=e.ChildProcess.spawn(e._command,s.slice(0),{cwd:e._baseDir,env:e._env,windowsHide:true});g.stdout.on("data",function(e){d.push(e)});g.stderr.on("data",function(e){l.push(e)});g.on("error",function(e){l.push(r.from(e.stack,"ascii"))});g.on("close",c);g.on("exit",c);u.promise.then(function(t){function done(t){o.call(e,null,t)}function fail(t){Git.fail(e,t,o)}delete e._childProcess;if(t&&l.length&&a.onError){a.onError(t,r.concat(l).toString("utf-8"),done,fail)}else if(t&&l.length){fail(r.concat(l).toString("utf-8"))}else{if(a.concatStdErr){[].push.apply(d,l)}var n=r.concat(d);if(a.format!=="buffer"){n=n.toString(a.format||"utf-8")}done(n)}process.nextTick(e._schedule.bind(e))});e._childProcess=g;if(e._outputHandler){e._outputHandler(s[0],e._childProcess.stdout,e._childProcess.stderr)}}};Git.fail=function(e,t,r){e._getLog("error",t);e._runCache.length=0;if(typeof r==="function"){r.call(e,t,null)}};Git.trailingFunctionArgument=function(e){var t=e[e.length-1];return typeof t==="function"?t:null};Git.trailingOptionsArgument=function(e){var t=e[e.length-(Git.trailingFunctionArgument(e)?2:1)];return Object.prototype.toString.call(t)==="[object Object]"?t:null};Git.trailingArrayArgument=function(e){var t=e[e.length-(Git.trailingFunctionArgument(e)?2:1)];return Object.prototype.toString.call(t)==="[object Array]"?t:[]};Git._appendOptions=function(e,t){if(t===null){return}Object.keys(t).forEach(function(r){var n=t[r];if(typeof n==="string"){e.push(r+"="+n)}else{e.push(r)}})};Git._responseHandler=function(e,t,r){return function(n,i){if(typeof e!=="function"){return}if(n){return e(n,null)}if(!t){return e(null,i)}var s=requireResponseHandler(t);var o=s.parse.apply(s,[i].concat(r===undefined?[]:r));e(null,o)}};Git.exception=function(e,t,r){e._runCache.length=0;if(typeof r==="function"){r(t instanceof Error?t:new Error(t))}e._getLog("error",t)};e.exports=Git;function requireResponseHandler(e){return o[e]}})()},81:function(e,t,r){const n=r(867);const i=r(669);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(247);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=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return 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 i="[3"+(n<8?n:"8;5;"+n);const s=` ${i};1m${r} `;t[0]=s+t[0].split("\n").join("\n"+s);t.push(i+"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(i.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{e=Number((e||n.release()).split(".")[0]);return{name:i.get(e),version:"10."+(e-4)}};e.exports=s;e.exports.default=s},126:function(e){var t=200;var r="__lodash_hash_undefined__";var n=1/0;var i="[object Function]",s="[object GeneratorFunction]";var o=/[\\^$.*+?()[\]{}|]/g;var a=/^\[object .+?Constructor\]$/;var u=typeof global=="object"&&global&&global.Object===Object&&global;var p=typeof self=="object"&&self&&self.Object===Object&&self;var c=u||p||Function("return this")();function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var n=-1,i=e?e.length:0;while(++n-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t=t){var c=r?null:T(e);if(c){return setToArray(c)}a=false;s=cacheHas;p=new SetCache}else{p=r?[]:u}e:while(++i=this.maxSockets){i.requests.push(s);return}i.createSocket(s,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,s)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}c("making CONNECT request");var s=r.request(i);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,o,a){s.removeAllListeners();o.removeAllListeners();if(i.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",i.statusCode);o.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}if(a.length>0){c("got illegal response body from proxy");o.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}c("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){s.removeAllListeners();c("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{const u=e=>{if(e){e.bufferedData=s.getBufferedValue()}a(e)};s=n(e,i(t),e=>{if(e){u(e);return}o()});s.on("data",()=>{if(s.getBufferedLength()>r){u(new MaxBufferError)}})}).then(()=>s.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},148:function(e,t,r){e.exports=paginatePlugin;const{paginateRest:n}=r(299);function paginatePlugin(e){Object.assign(e,n(e))}},168:function(e){"use strict";const t=["stdin","stdout","stderr"];const r=e=>t.some(t=>Boolean(e[t]));e.exports=(e=>{if(!e){return null}if(e.stdio&&r(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(e=>`\`${e}\``).join(", ")}`)}if(typeof e.stdio==="string"){return e.stdio}const n=e.stdio||[];if(!Array.isArray(n)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n}\``)}const i=[];const s=Math.max(n.length,t.length);for(let r=0;re.warn(t));const d=s((e,t)=>e.warn(t));function authenticationPlugin(e,t){if(t.authStrategy){const r=t.authStrategy(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}if(!t.auth){e.auth=(()=>Promise.resolve({type:"unauthenticated"}));return}const r=typeof t.auth==="string"&&/^basic/.test(p(t.auth));if(typeof t.auth==="string"&&!r){const r=n(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}const[s,l]=r?[c,'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)']:[d,'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'];s(e.log,new i("[@octokit/rest] "+l));e.auth=(()=>Promise.resolve({type:"deprecated",message:l}));u(t.auth);const g={octokit:e,auth:t.auth};e.hook.before("request",o.bind(null,g));e.hook.error("request",a.bind(null,g))}},197:function(e,t,r){e.exports=isexe;isexe.sync=sync;var n=r(747);function isexe(e,t,r){n.stat(e,function(e,n){r(e,e?false:checkStat(n,t))})}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var i=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var u=parseInt("010",8);var p=parseInt("001",8);var c=a|u;var d=r&p||r&u&&i===o||r&a&&n===s||r&c&&s===0;return d}},211:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}return""}}t.getUserAgent=getUserAgent},215:function(e){e.exports={_from:"@octokit/rest@^16.43.1",_id:"@octokit/rest@16.43.1",_inBundle:false,_integrity:"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==",_location:"/@octokit/rest",_phantomChildren:{"@octokit/types":"2.10.0",deprecation:"2.3.1",once:"1.4.0"},_requested:{type:"range",registry:true,raw:"@octokit/rest@^16.43.1",name:"@octokit/rest",escapedName:"@octokit%2frest",scope:"@octokit",rawSpec:"^16.43.1",saveSpec:null,fetchSpec:"^16.43.1"},_requiredBy:["/@actions/github"],_resolved:"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz",_shasum:"3b11e7d1b1ac2bbeeb23b08a17df0b20947eda6b",_spec:"@octokit/rest@^16.43.1",_where:"C:\\Work\\action-synchronize-branches\\node_modules\\@actions\\github",author:{name:"Gregor Martynus",url:"https://github.com/gr2m"},bugs:{url:"https://github.com/octokit/rest.js/issues"},bundleDependencies:false,bundlesize:[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],contributors:[{name:"Mike de Boer",email:"info@mikedeboer.nl"},{name:"Fabian Jakobs",email:"fabian@c9.io"},{name:"Joe Gallo",email:"joe@brassafrax.com"},{name:"Gregor Martynus",url:"https://github.com/gr2m"}],dependencies:{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0",deprecation:"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0",once:"^1.4.0","universal-user-agent":"^4.0.0"},deprecated:false,description:"GitHub REST API client for Node.js",devDependencies:{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0",bundlesize:"^0.18.0",chai:"^4.1.2","compression-webpack-plugin":"^3.1.0",cypress:"^3.0.0",glob:"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1",lolex:"^5.1.2",mkdirp:"^1.0.0",mocha:"^7.0.1",mustache:"^4.0.0",nock:"^11.3.3","npm-run-all":"^4.1.2",nyc:"^15.0.0",prettier:"^1.14.2",proxy:"^1.0.0","semantic-release":"^17.0.0",sinon:"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0",typescript:"^3.3.1",webpack:"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},files:["index.js","index.d.ts","lib","plugins"],homepage:"https://github.com/octokit/rest.js#readme",keywords:["octokit","github","rest","api-client"],license:"MIT",name:"@octokit/rest",nyc:{ignore:["test"]},publishConfig:{access:"public"},release:{publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},repository:{type:"git",url:"git+https://github.com/octokit/rest.js.git"},scripts:{build:"npm-run-all build:*","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript",coverage:"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",lint:"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/",pretest:"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},types:"index.d.ts",version:"16.43.1"}},231:function(e){e.exports=PullSummary;function PullSummary(){this.files=[];this.insertions={};this.deletions={};this.summary={changes:0,insertions:0,deletions:0};this.created=[];this.deleted=[]}PullSummary.prototype.created=null;PullSummary.prototype.deleted=null;PullSummary.prototype.files=null;PullSummary.prototype.insertions=null;PullSummary.prototype.deletions=null;PullSummary.prototype.summary=null;PullSummary.FILE_UPDATE_REGEX=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;PullSummary.SUMMARY_REGEX=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;PullSummary.ACTION_REGEX=/(create|delete) mode \d+ (.+)/;PullSummary.parse=function(e){var t=new PullSummary;var r=e.split("\n");while(r.length){var n=r.shift().trim();if(!n){continue}update(t,n)||summary(t,n)||action(t,n)}return t};function update(e,t){var r=PullSummary.FILE_UPDATE_REGEX.exec(t);if(!r){return false}e.files.push(r[1]);var n=r[2].length;if(n){e.insertions[r[1]]=n}var i=r[3].length;if(i){e.deletions[r[1]]=i}return true}function summary(e,t){if(!e.files.length){return false}var r=PullSummary.SUMMARY_REGEX.exec(t);if(!r||r[3]===undefined&&r[5]===undefined){return false}e.summary.changes=+r[1]||0;e.summary.insertions=+r[3]||0;e.summary.deletions=+r[5]||0;return true}function action(e,t){var r=PullSummary.ACTION_REGEX.exec(t);if(!r){return false}var n=r[2];if(e.files.indexOf(n)<0){e.files.push(n)}var i=r[1]==="create"?e.created:e.deleted;i.push(n);return true}},247:function(e,t,r){"use strict";const n=r(87);const i=r(364);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},260:function(e,t,r){var n=r(357);var i=r(654);var s=/^win/i.test(process.platform);var o=r(614);if(typeof o!=="function"){o=o.EventEmitter}var a;if(process.__signal_exit_emitter__){a=process.__signal_exit_emitter__}else{a=process.__signal_exit_emitter__=new o;a.count=0;a.emitted={}}if(!a.infinite){a.setMaxListeners(Infinity);a.infinite=true}e.exports=function(e,t){n.equal(typeof e,"function","a callback must be provided for exit handler");if(p===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var i=function(){a.removeListener(r,e);if(a.listeners("exit").length===0&&a.listeners("afterexit").length===0){unload()}};a.on(r,e);return i};e.exports.unload=unload;function unload(){if(!p){return}p=false;i.forEach(function(e){try{process.removeListener(e,u[e])}catch(e){}});process.emit=d;process.reallyExit=c;a.count-=1}function emit(e,t,r){if(a.emitted[e]){return}a.emitted[e]=true;a.emit(e,t,r)}var u={};i.forEach(function(e){u[e]=function listener(){var t=process.listeners(e);if(t.length===a.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(s&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}});e.exports.signals=function(){return i};e.exports.load=load;var p=false;function load(){if(p){return}p=true;a.count+=1;i=i.filter(function(e){try{process.on(e,u[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var c=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);c.call(process,process.exitCode)}var d=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=d.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return d.apply(this,arguments)}}},262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(747);const i=r(87);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${i.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},265:function(e,t,r){e.exports=getPage;const n=r(370);const i=r(577);const s=r(297);function getPage(e,t,r,o){n(`octokit.get${r.charAt(0).toUpperCase()+r.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);const a=i(t)[r];if(!a){const e=new s(`No ${r} page found`,404);return Promise.reject(e)}const u={url:a,headers:applyAcceptHeader(t,o)};const p=e.request(u);return p}function applyAcceptHeader(e,t){const r=e.headers&&e.headers["x-github-media-type"];if(!r||t&&t.accept){return t}t=t||{};t.accept="application/vnd."+r.replace("; param=",".").replace("; format=","+");return t}},280:function(e){e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(function(t,r){return register.bind(null,e,r,t,n)},r)()}return Promise.resolve().then(function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce(function(e,t){return t.hook.bind(null,e,n)},r)()})}},293:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:n}=r(497);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!i){throw t}if(t.status===401&&i&&t.request&&t.request.headers["x-github-otp"]){if(e.otp){delete e.otp}else{throw new n("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}}if(typeof e.auth.on2fa!=="function"){throw new n("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const n=Object.assign(r,{headers:Object.assign(r.headers,{"x-github-otp":t})});return e.octokit.request(n).then(r=>{e.otp=t;return r})})}},294:function(e,t,r){e.exports=parseOptions;const{Deprecation:n}=r(692);const{getUserAgent:i}=r(796);const s=r(969);const o=r(215);const a=s((e,t)=>e.warn(t));const u=s((e,t)=>e.warn(t));const p=s((e,t)=>e.warn(t));function parseOptions(e,t,r){if(e.headers){e.headers=Object.keys(e.headers).reduce((t,r)=>{t[r.toLowerCase()]=e.headers[r];return t},{})}const s={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};if(e.baseUrl){s.baseUrl=e.baseUrl}if(e.userAgent){s.headers["user-agent"]=e.userAgent}if(e.previews){s.mediaType.previews=e.previews}if(e.timeZone){s.headers["time-zone"]=e.timeZone}if(e.timeout){a(t,new n("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"));s.request.timeout=e.timeout}if(e.agent){u(t,new n("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"));s.request.agent=e.agent}if(e.headers){p(t,new n("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"))}const c=s.headers["user-agent"];const d=`octokit.js/${o.version} ${i()}`;s.headers["user-agent"]=[c,d].filter(Boolean).join(" ");s.request.hook=r.bind(null,"request");return s}},297:function(e){e.exports=class HttpError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.code=t;this.headers=r}}},299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.1.2";const n=[/^\/search\//,/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/,/^\/installation\/repositories([^/]|$)/,/^\/user\/installations([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];function normalizePaginatedListResponse(e,t,r){const i=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");const s=n.find(e=>e.test(i));if(!s)return;const o=r.data.incomplete_results;const a=r.data.repository_selection;const u=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const p=Object.keys(r.data)[0];const c=r.data[p];r.data=c;if(typeof o!=="undefined"){r.data.incomplete_results=o}if(typeof a!=="undefined"){r.data.repository_selection=a}r.data.total_count=u;Object.defineProperty(r.data,p,{get(){e.log.warn(`[@octokit/paginate-rest] "response.data.${p}" is deprecated for "GET ${i}". Get the results directly from "response.data"`);return Array.from(c)}})}function iterator(e,t,r){const n=e.request.endpoint(t,r);const i=n.method;const s=n.headers;let o=n.url;return{[Symbol.asyncIterator]:()=>({next(){if(!o){return Promise.resolve({done:true})}return e.request({method:i,url:o,headers:s}).then(t=>{normalizePaginatedListResponse(e,o,t);o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}})}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then(i=>{if(i.done){return t}let s=false;function done(){s=true}t=t.concat(n?n(i.value,done):i.value.data);if(s){return t}return gather(e,t,r,n)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.paginateRest=paginateRest},306:function(e){e.exports=TagList;function TagList(e,t){this.latest=t;this.all=e}TagList.parse=function(e,t){var r=function(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0};var n=e.trim().split("\n").map(function(e){return e.trim()}).filter(Boolean);if(!t){n.sort(function(e,t){var n=e.split(".");var i=t.split(".");if(n.length===1||i.length===1){return e-t>0?1:-1}for(var s=0,o=Math.max(n.length,i.length);s0?1:-1}}return 0})}var i=t?n[0]:n.filter(function(e){return e.indexOf(".")>=0}).pop();return new TagList(n,i)}},317:function(e){var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*7;var o=i*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 p=(a[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*i;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 s=Math.abs(e);if(s>=i){return Math.round(e/i)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=r){return Math.round(e/r)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=i){return plural(e,s,i,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=r){return plural(e,s,r,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},323:function(e){"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},336:function(e,t,r){e.exports=hasLastPage;const n=r(370);const i=r(577);function hasLastPage(e){n(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).last}},348:function(e,t,r){"use strict";e.exports=validate;const{RequestError:n}=r(497);const i=r(854);const s=r(883);function validate(e,t){if(!t.request.validate){return}const{validate:r}=t.request;Object.keys(r).forEach(e=>{const o=i(r,e);const a=o.type;let u;let p;let c=true;let d=false;if(/\./.test(e)){u=e.replace(/\.[^.]+$/,"");d=u.slice(-2)==="[]";if(d){u=u.slice(0,-2)}p=i(t,u);c=u==="headers"||typeof p==="object"&&p!==null}const l=d?(i(t,u)||[]).map(t=>t[e.split(/\./).pop()]):[i(t,e)];l.forEach((r,i)=>{const u=typeof r!=="undefined";const p=r===null;const l=d?e.replace(/\[\]/,`[${i}]`):e;if(!o.required&&!u){return}if(!c){return}if(o.allowNull&&p){return}if(!o.allowNull&&p){throw new n(`'${l}' cannot be null`,400,{request:t})}if(o.required&&!u){throw new n(`Empty value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(a==="integer"){const e=r;r=parseInt(r,10);if(isNaN(r)){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(e)} is NaN`,400,{request:t})}}if(o.enum&&o.enum.indexOf(String(r))===-1){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(o.validation){const e=new RegExp(o.validation);if(!e.test(r)){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}if(a==="object"&&typeof r==="string"){try{r=JSON.parse(r)}catch(e){throw new n(`JSON parse error of value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}s(t,o.mapTo||l,r)})});return t}},349:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:n}=r(497);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!i){throw t}if(t.status===401&&i&&t.request&&t.request.headers["x-github-otp"]){throw new n("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}if(typeof e.auth.on2fa!=="function"){throw new n("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const n=Object.assign(r,{headers:Object.assign({"x-github-otp":t},r.headers)});return e.octokit.request(n)})}},357:function(e){e.exports=require("assert")},364:function(e){"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:na(e)!==i.repo.repo);for(let r=0;r{n.info(`Checking out ${s} ${e}`);u.checkout(["--force","-B",e,"FETCH_HEAD"])},e=>{if(e.message&&e.message.includes("couldn't find remote ref")){const t=e.message.trim().split(/(?:[\r\n]+|\s*:\s*)/).pop();n.info(`Not synchronized in ${s}: ${t}`)}else{throw e}})}}e.exports={getChildRepositories:getChildRepositories,synchronizeBranches:synchronizeBranches}},385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(626));var i=r(562);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((t,r)=>{t[r.toLowerCase()]=e[r];return t},{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach(i=>{if(n(t[i])){if(!(i in e))Object.assign(r,{[i]:t[i]});else r[i]=mergeDeep(e[i],t[i])}else{Object.assign(r,{[i]:t[i]})}});return r}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);const n=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)}n.mediaType.previews=n.mediaType.previews.map(e=>e.replace(/-preview/,""));return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map(e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`}).join("&")}const s=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(s);if(!t){return[]}return t.map(removeNonChars).reduce((e,t)=>e.concat(t),[])}function omit(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>{t[r]=e[r];return t},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var i=e[r],s=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(n&&n!=="*"){i=i.substring(0,parseInt(n,10))}s.push(encodeValue(t,i,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach(function(e){s.push(encodeValue(t,e,isKeyOperator(t)?r:""))})}else{Object.keys(i).forEach(function(e){if(isDefined(i[e])){s.push(encodeValue(t,i[e],e))}})}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach(function(r){e.push(encodeValue(t,r))})}else{Object.keys(i).forEach(function(r){if(isDefined(i[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,i[r].toString()))}})}if(isKeyOperator(t)){s.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){s.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){s.push(encodeUnreserved(r))}}else if(i===""&&(t==="&"||t==="?")){s.push(encodeUnreserved(r)+"=")}else if(i===""){s.push("")}}return s}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,n,i){if(n){let e="";const i=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach(function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);i.push(getValues(t,e,n[1],n[2]||n[3]))});if(e&&e!=="+"){var s=",";if(e==="?"){s="&"}else if(e!=="#"){s=e}return(i.length!==0?e:"")+i.join(s)}else{return i.join(",")}}else{return encodeReserved(i)}})}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}");let n=Object.assign({},e.headers);let i;let s=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const o=extractUrlVariableNames(r);r=parseUrl(r).expand(s);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter(e=>o.includes(e)).concat("baseUrl");const u=omit(s,a);const p=/application\/octet-stream/i.test(n.accept);if(!p){if(e.mediaType.format){n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`}).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,u)}else{if("data"in u){i=u.data}else{if(Object.keys(u).length){i=u}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof i!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:r,headers:n},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const o="6.0.0";const a=`octokit-endpoint.js/${o} ${i.getUserAgent()}`;const u={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const p=withDefaults(null,u);t.endpoint=p},389:function(e,t,r){"use strict";const n=r(747);const i=r(866);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,r,0,t,0);n.closeSync(s)}catch(e){}return i(r.toString())}e.exports=readShebang},402:function(e,t,r){e.exports=Octokit;const{request:n}=r(753);const i=r(523);const s=r(294);function Octokit(e,t){t=t||{};const r=new i.Collection;const o=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log);const a={hook:r,log:o,request:n.defaults(s(t,o,r))};e.forEach(e=>e(a,t));return a}},407:function(e){e.exports=require("buffer")},413:function(e){e.exports=require("stream")},427:function(e,t,r){"use strict";const n=r(669);let i;if(typeof n.getSystemErrorName==="function"){e.exports=n.getSystemErrorName}else{try{i=process.binding("uv");if(typeof i.errname!=="function"){throw new TypeError("uv.errname is not a function")}}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e);i=null}e.exports=(e=>errname(i,e))}e.exports.__test__=errname;function errname(e,t){if(e){return e.errname(t)}if(!(t<0)){throw new Error("err >= 0")}return`Unknown system error ${t}`}},430:function(e,t,r){e.exports=octokitValidate;const n=r(348);function octokitValidate(e){e.hook.before("request",n.bind(null,e))}},431:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(87));function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},440:function(e){e.exports=BranchDeletion;function BranchDeletion(e,t){this.branch=e;this.hash=t;this.success=t!==null}BranchDeletion.deleteSuccessRegex=/(\S+)\s+\(\S+\s([^\)]+)\)/;BranchDeletion.deleteErrorRegex=/^error[^']+'([^']+)'/;BranchDeletion.parse=function(e,t){var r;var n=e.trim().split("\n").map(function(e){if(r=BranchDeletion.deleteSuccessRegex.exec(e)){return new BranchDeletion(r[1],r[2])}else if(r=BranchDeletion.deleteErrorRegex.exec(e)){return new BranchDeletion(r[1],null)}}).filter(Boolean);return t?n:n.pop()}},453:function(e,t,r){var n=r(969);var i=r(9);var s=r(747);var o=function(){};var a=/^v?\.0/.test(process.version);var u=function(e){return typeof e==="function"};var p=function(e){if(!a)return false;if(!s)return false;return(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&u(e.close)};var c=function(e){return e.setHeader&&u(e.abort)};var d=function(e,t,r,s){s=n(s);var a=false;e.on("close",function(){a=true});i(e,{readable:t,writable:r},function(e){if(e)return s(e);a=true;s()});var d=false;return function(t){if(a)return;if(d)return;d=true;if(p(e))return e.close(o);if(c(e))return e.abort();if(u(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var l=function(e){e()};var g=function(e,t){return e.pipe(t)};var m=function(){var e=Array.prototype.slice.call(arguments);var t=u(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map(function(i,s){var o=s0;return d(i,o,a,function(e){if(!r)r=e;if(e)n.forEach(l);if(o)return;n.forEach(l);t(r)})});return e.reduce(g)};e.exports=m},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(413));var i=_interopDefault(r(605));var s=_interopDefault(r(835));var o=_interopDefault(r(34));var a=_interopDefault(r(761));const u=n.Readable;const p=Symbol("buffer");const c=Symbol("type");class Blob{constructor(){this[c]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let s=i===undefined?0:i;var o=r.timeout;let a=o===undefined?0:o;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n) ;else{e=Buffer.from(String(e))}this[l]={body:e,disturbed:false,error:null};this.size=s;this.timeout=a;if(e instanceof n){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[l].error=r})}}Body.prototype={get body(){return this[l].body},get bodyUsed(){return this[l].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[p]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[l].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[l].disturbed=true;if(this[l].error){return Body.Promise.reject(this[l].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let i=0;let s=false;return new Body.Promise(function(n,o){let a;if(e.timeout){a=setTimeout(function(){s=true;o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){s=true;o(t)}else{o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(s||t===null){return}if(e.size&&i+t.length>e.size){s=true;o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;r.push(t)});t.on("end",function(){if(s){return}clearTimeout(a);try{n(Buffer.concat(r,i))}catch(t){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let i,s;if(r){i=/charset=([^;]*)/i.exec(r)}s=e.slice(0,1024).toString();if(!i&&s){i=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[y]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[y],e);if(t===undefined){return null}return this[y][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[y]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[y][t].join(", ")}:function(t){return[t.toLowerCase(),e[y][t].join(", ")]})}const f=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(b);r[f]={target:e,kind:t,index:0};return r}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[f];const t=e.target,r=e.kind,n=e.index;const i=getHeaders(t,r);const s=i.length;if(n>=s){return{value:undefined,done:true}}this[f].index=n+1;return{value:i[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[y]);const r=find(e[y],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(h.test(n)){continue}if(t[y][r]===undefined){t[y][r]=[n]}else{t[y][r].push(n)}}}else if(!h.test(e[r])){t[y][r]=[e[r]]}}return t}const _=Symbol("Response internals");const q=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[_]={url:t.url,status:r,statusText:t.statusText||q[r],headers:n,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const w=Symbol("Request internals");const v=s.parse;const E=s.format;const T="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[w]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=v(e.href)}else{r=v(`${e}`)}e={}}else{r=v(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const s=new Headers(t.headers||e.headers||{});if(i!=null&&!s.has("Content-Type")){const e=extractContentType(i);if(e){s.append("Content-Type",e)}}let o=isRequest(e)?e.signal:null;if("signal"in t)o=t.signal;if(o!=null&&!isAbortSignal(o)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[w]={method:n,redirect:t.redirect||e.redirect||"follow",headers:s,parsedURL:r,signal:o};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[w].method}get url(){return E(this[w].parsedURL)}get headers(){return this[w].headers}get redirect(){return this[w].redirect}get signal(){return this[w].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[w].parsedURL;const r=new Headers(e[w].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!T){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){r.set("Content-Length",i)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let s=e.agent;if(typeof s==="function"){s=s(t)}if(!r.has("Connection")&&!s){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:s})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const S=n.PassThrough;const k=s.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(r,s){const u=new Request(e,t);const p=getNodeRequestOptions(u);const c=(p.protocol==="https:"?o:i).request;const d=u.signal;let l=null;const g=function abort(){let e=new AbortError("The user aborted a request.");s(e);if(u.body&&u.body instanceof n.Readable){u.body.destroy(e)}if(!l||!l.body)return;l.body.emit("error",e)};if(d&&d.aborted){g();return}const m=function abortAndFinalize(){g();finalize()};const h=c(p);let y;if(d){d.addEventListener("abort",m)}function finalize(){h.abort();if(d)d.removeEventListener("abort",m);clearTimeout(y)}if(u.timeout){h.once("socket",function(e){y=setTimeout(function(){s(new FetchError(`network timeout at: ${u.url}`,"request-timeout"));finalize()},u.timeout)})}h.on("error",function(e){s(new FetchError(`request to ${u.url} failed, reason: ${e.message}`,"system",e));finalize()});h.on("response",function(e){clearTimeout(y);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const i=n===null?null:k(u.url,n);switch(u.redirect){case"error":s(new FetchError(`redirect mode is set to error: ${u.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){s(e)}}break;case"follow":if(i===null){break}if(u.counter>=u.follow){s(new FetchError(`maximum redirect reached at: ${u.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout};if(e.statusCode!==303&&u.body&&getTotalBytes(u)===null){s(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&u.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(i,n)));finalize();return}}e.once("end",function(){if(d)d.removeEventListener("abort",m)});let n=e.pipe(new S);const i={url:u.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:u.size,timeout:u.timeout,counter:u.counter};const o=t.get("Content-Encoding");if(!u.compress||u.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){l=new Response(n,i);r(l);return}const p={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(o=="gzip"||o=="x-gzip"){n=n.pipe(a.createGunzip(p));l=new Response(n,i);r(l);return}if(o=="deflate"||o=="x-deflate"){const t=e.pipe(new S);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}l=new Response(n,i);r(l)});return}if(o=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());l=new Response(n,i);r(l);return}l=new Response(n,i);r(l)});writeToStream(h,u)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},462:function(e){"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(692);var i=_interopDefault(r(969));const s=i(e=>console.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){s(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const i=Object.assign({},r.request);if(r.request.headers.authorization){i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}t.RequestError=RequestError},466:function(e){e.exports=MoveSummary;function MoveSummary(){this.moves=[];this.sources={}}MoveSummary.SUMMARY_REGEX=/^Renaming (.+) to (.+)$/;MoveSummary.parse=function(e){var t=e.split("\n");var r=new MoveSummary;for(var n=0,i=t.length,s;n{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}s++;const i=createDebug.formatters[n];if(typeof i==="function"){const n=e[s];t=i.call(r,n);e.splice(s,1);s--}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;tconsole.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){s(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const i=Object.assign({},r.request);if(r.request.headers.authorization){i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}t.RequestError=RequestError},510:function(e){e.exports=addHook;function addHook(e,t,r,n){var i=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){r=e;return i(r,t)}).then(function(){return r})}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}}e.registry[r].push({hook:n,orig:i})}},523:function(e,t,r){var n=r(280);var i=r(510);var s=r(763);var o=Function.bind;var a=o.bind(o);function bindApi(e,t,r){var n=a(s,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach(function(n){var s=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(i,null).apply(null,s)})}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var u=false;function Hook(){if(!u){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');u=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},529:function(e,t,r){const n=r(47);e.exports=n()},533:function(e){e.exports=CommitSummary;function CommitSummary(){this.branch="";this.commit="";this.summary={changes:0,insertions:0,deletions:0};this.author=null}var t=/\[([^\s]+) ([^\]]+)/;var r=/\s*Author:\s(.+)/i;function setBranchFromCommit(e,t){if(t){e.branch=t[1];e.commit=t[2]}}function setSummaryFromCommit(e,t){if(e.branch&&t){e.summary.changes=t[1]||0;e.summary.insertions=t[2]||0;e.summary.deletions=t[3]||0}}function setAuthorFromCommit(e,t){var r=t[1].split("<");var n=r.pop();if(n.indexOf("@")<=0){return}e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}}CommitSummary.parse=function(e){var n=e.trim().split("\n");var i=new CommitSummary;setBranchFromCommit(i,t.exec(n.shift()));if(r.test(n[0])){setAuthorFromCommit(i,r.exec(n.shift()))}setSummaryFromCommit(i,/(\d+)[^,]*(?:,\s*(\d+)[^,]*)?(?:,\s*(\d+))?/g.exec(n.shift()));return i}},536:function(e,t,r){e.exports=hasFirstPage;const n=r(370);const i=r(577);function hasFirstPage(e){n(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).first}},539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);const i=r(605);const s=r(34);const o=r(950);let a;var u;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(u=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(n.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const m=10;const h=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=n.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=n.parse(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&g.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let c;while(p0){const a=c.message.headers["location"];if(!a){break}let u=n.parse(a);if(s.protocol=="https:"&&s.protocol!=u.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await c.readBody();o=this._prepareRequest(e,u,i);c=await this.requestRaw(o,r);t--}if(l.indexOf(c.message.statusCode)==-1){return c}p+=1;if(p{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let s=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});o.on("socket",e=>{n=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=n.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o=n.parsedUrl.protocol==="https:";n.httpModule=o?s:i;const a=o?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let n=o.getProxyUrl(e);let u=n&&n.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const p=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(u){if(!a){a=r(856)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.auth,host:n.hostname,port:n.port}};let i;const s=n.protocol==="https:";if(p){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=p?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=p?s.globalAgent:i.globalAgent}if(p&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(m,e);const t=h*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const s={statusCode:i,result:null,headers:{}};if(i==u.NotFound){r(s)}let o;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(a)}s.result=o}s.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(s.result){t["result"]=s.result}n(t)}else{r(s)}})}}t.HttpClient=HttpClient},548:function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},550:function(e,t,r){e.exports=getNextPage;const n=r(265);function getNextPage(e,t,r){return n(e,t,"next",r)}},558:function(e,t,r){e.exports=hasPreviousPage;const n=r(370);const i=r(577);function hasPreviousPage(e){n(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).prev}},562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}return""}}t.getUserAgent=getUserAgent},563:function(e,t,r){e.exports=getPreviousPage;const n=r(265);function getPreviousPage(e,t,r){return n(e,t,"prev",r)}},568:function(e,t,r){"use strict";const n=r(622);const i=r(948);const s=r(489);const o=r(462);const a=r(389);const u=r(48);const p=process.platform==="win32";const c=/\.(?:com|exe)$/i;const d=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const l=i(()=>u.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!p){return e}const t=detectShebang(e);const r=!c.test(t);if(e.options.forceShell||r){const r=d.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map(e=>o.argument(e,r));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(l){return e}const t=[e.command].concat(e.args).join(" ");if(p){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(n):parseNonShell(n)}e.exports=parse},569:function(e,t,r){var n=r(932);e.exports=StatusSummary;function StatusSummary(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[]}StatusSummary.prototype.ahead=0;StatusSummary.prototype.behind=0;StatusSummary.prototype.current=null;StatusSummary.prototype.tracking=null;StatusSummary.prototype.files=null;StatusSummary.prototype.isClean=function(){return 0===Object.keys(this).filter(function(e){return Array.isArray(this[e])&&this[e].length},this).length};StatusSummary.parsers={"##":function(e,t){var r=/ahead (\d+)/;var n=/behind (\d+)/;var i=/^(.+?(?=(?:\.{3}|\s|$)))/;var s=/\.{3}(\S*)/;var o;o=r.exec(e);t.ahead=o&&+o[1]||0;o=n.exec(e);t.behind=o&&+o[1]||0;o=i.exec(e);t.current=o&&o[1];o=s.exec(e);t.tracking=o&&o[1]},"??":function(e,t){t.not_added.push(e)},A:function(e,t){t.created.push(e)},AM:function(e,t){t.created.push(e)},D:function(e,t){t.deleted.push(e)},M:function(e,t,r){t.modified.push(e);if(r==="M"){t.staged.push(e)}},R:function(e,t){var r=/^(.+) -> (.+)$/.exec(e)||[null,e,e];t.renamed.push({from:r[1],to:r[2]})},UU:function(e,t){t.conflicted.push(e)}};StatusSummary.parsers.MM=StatusSummary.parsers.M;StatusSummary.parsers.AA=StatusSummary.parsers.UU;StatusSummary.parsers.UD=StatusSummary.parsers.UU;StatusSummary.parsers.DU=StatusSummary.parsers.UU;StatusSummary.parsers.DD=StatusSummary.parsers.UU;StatusSummary.parsers.AU=StatusSummary.parsers.UU;StatusSummary.parsers.UA=StatusSummary.parsers.UU;StatusSummary.parse=function(e){var t;var r=e.trim().split("\n");var i=new StatusSummary;for(var s=0,o=r.length;s1){r+=" "}if(r.length===1&&t[2].length===1){r=" "+r}return{raw:r,code:r.trim(),index:r.charAt(0),workingDir:r.charAt(1),handler:StatusSummary.parsers[r.trim()],path:t[3]}}},577:function(e){e.exports=getPageLinks;function getPageLinks(e){e=e.link||e.headers.link||"";const t={};e.replace(/<([^>]*)>;\s*rel="([\w]*)"/g,(e,r,n)=>{t[n]=r});return t}},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},621:function(e,t,r){"use strict";const n=r(622);const i=r(39);e.exports=(e=>{e=Object.assign({cwd:process.cwd(),path:process.env[i()]},e);let t;let r=n.resolve(e.cwd);const s=[];while(t!==r){s.push(n.join(r,"node_modules/.bin"));t=r;r=n.resolve(r,"..")}s.push(n.dirname(process.execPath));return s.concat(e.path).join(n.delimiter)});e.exports.env=(t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env);const n=i({env:r});t.path=r[n];r[n]=e.exports(t);return r})},622:function(e){e.exports=require("path")},626:function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},628:function(e){e.exports=DiffSummary;function DiffSummary(){this.files=[];this.insertions=0;this.deletions=0;this.changed=0}DiffSummary.prototype.insertions=0;DiffSummary.prototype.deletions=0;DiffSummary.prototype.changed=0;DiffSummary.parse=function(e){var t,r;var n=e.trim().split("\n");var i=new DiffSummary;var s=n.pop();if(s){s.trim().split(", ").forEach(function(e){var t=/(\d+)\s([a-z]+)/.exec(e);if(!t){return}if(/files?/.test(t[2])){i.changed=parseInt(t[1],10)}else{i[t[2].replace(/s$/,"")+"s"]=parseInt(t[1],10)}})}while(t=n.shift()){textFileChange(t,i.files)||binaryFileChange(t,i.files)}return i};function textFileChange(e,t){e=e.trim().match(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/);if(e){var r=(e[3]||"").trim();t.push({file:e[1].trim(),changes:parseInt(e[2],10),insertions:r.replace(/-/g,"").length,deletions:r.replace(/\+/g,"").length,binary:false});return true}}function binaryFileChange(e,t){e=e.match(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)$/);if(e){t.push({file:e[1].trim(),before:+e[2],after:+e[3],binary:true});return true}}},631:function(e){e.exports=require("net")},649:function(e,t,r){e.exports=getLastPage;const n=r(265);function getLastPage(e,t,r){return n(e,t,"last",r)}},654:function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},656:function(e,t,r){e.exports=MergeSummary;e.exports.MergeConflict=MergeConflict;var n=r(231);function MergeConflict(e,t,r){this.reason=e;this.file=t;if(r){this.meta=r}}MergeConflict.prototype.meta=null;MergeConflict.prototype.toString=function(){return this.file+":"+this.reason};function MergeSummary(){n.call(this);this.conflicts=[];this.merges=[]}MergeSummary.prototype=Object.create(n.prototype);MergeSummary.prototype.result="success";MergeSummary.prototype.toString=function(){if(this.conflicts.length){return"CONFLICTS: "+this.conflicts.join(", ")}return"OK"};Object.defineProperty(MergeSummary.prototype,"failed",{get:function(){return this.conflicts.length>0}});MergeSummary.parsers=[{test:/^Auto-merging\s+(.+)$/,handle:function(e,t){t.merges.push(e[1])}},{test:/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,handle:function(e,t){t.conflicts.push(new MergeConflict(e[1],e[2]))}},{test:/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,handle:function(e,t){t.conflicts.push(new MergeConflict(e[1],e[2],{deleteRef:e[3]}))}},{test:/^CONFLICT\s+\((.+)\):/,handle:function(e,t){t.conflicts.push(new MergeConflict(e[1],null))}},{test:/^Automatic merge failed;\s+(.+)$/,handle:function(e,t){t.reason=t.result=e[1]}}];MergeSummary.parse=function(e){let t=new MergeSummary;e.trim().split("\n").forEach(function(e){for(var r=0,n=MergeSummary.parsers.length;r (.+)$/,function(e,t){e.branches.push({name:t[0],tracking:t[1]})}],[/\* \[new tag\]\s+(\S+)\s*\-> (.+)$/,function(e,t){e.tags.push({name:t[0],tracking:t[1]})}]];FetchSummary.parse=function(e){var t=new FetchSummary(e);String(e).trim().split("\n").forEach(function(e){var r=e.trim();FetchSummary.parsers.some(function(e){var n=e[0].exec(r);if(n){e[1](t,n.slice(1));return true}})});return t};e.exports=FetchSummary},669:function(e){e.exports=require("util")},674:function(e,t,r){e.exports=authenticate;const{Deprecation:n}=r(692);const i=r(969);const s=i((e,t)=>e.warn(t));function authenticate(e,t){s(e.octokit.log,new n('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'));if(!t){e.auth=false;return}switch(t.type){case"basic":if(!t.username||!t.password){throw new Error("Basic authentication requires both a username and password to be set")}break;case"oauth":if(!t.token&&!(t.key&&t.secret)){throw new Error("OAuth2 authentication requires a token or key & secret to be set")}break;case"token":case"app":if(!t.token){throw new Error("Token authentication requires a token to be set")}break;default:throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'")}e.auth=t}},675:function(e){e.exports=function btoa(e){return new Buffer(e).toString("base64")}},692:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},697:function(e){"use strict";e.exports=((e,t)=>{t=t||(()=>{});return e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))})},713:function(e,t,r){e.exports=ListLogSummary;var n=r(628);function ListLogSummary(e){this.all=e;this.latest=e.length&&e[0]||null;this.total=e.length}ListLogSummary.prototype.all=null;ListLogSummary.prototype.latest=null;ListLogSummary.prototype.total=0;function ListLogLine(e,t){for(var r=0;r1&&!!i[1].trim()){s.diff=n.parse(i[1])}return s}))}},726:function(e,t,r){var n=r(747);function exists(e,t,r){try{var i=false;var s=n.statSync(e);i=i||t&&s.isFile();i=i||r&&s.isDirectory();return i}catch(e){if(e.code==="ENOENT"){return false}throw e}}e.exports=function(e,t){if(!t){return exists(e,true,true)}return exists(e,t&1,t&2)};e.exports.FILE=1;e.exports.FOLDER=2},742:function(e,t,r){var n=r(747);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(818)}else{i=r(197)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(r,n){isexe(e,t||{},function(e,t){if(e){n(e)}else{r(t)}})})}i(e,t||{},function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)})}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},747:function(e){e.exports=require("fs")},753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(385);var i=r(211);var s=_interopDefault(r(548));var o=_interopDefault(r(454));var a=r(463);const u="5.4.0";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(s(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let n;const i=e.request&&e.request.fetch||o;return i(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(i=>{n=i.url;r=i.status;for(const e of i.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new a.RequestError(i.statusText,r,{headers:t,request:e})}if(r===304){throw new a.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return i.text().then(n=>{const i=new a.RequestError(n,r,{headers:t,request:e});try{let e=JSON.parse(i.message);Object.assign(i,e);let t=e.errors;i.message=i.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw i})}const s=i.headers.get("content-type");if(/application\/json/.test(s)){return i.json()}if(!s||/^text\/|charset=utf-8$/.test(s)){return i.text()}return getBufferResponse(i)}).then(e=>{return{status:r,url:n,headers:t,data:e}}).catch(r=>{if(r instanceof a.RequestError){throw r}throw new a.RequestError(r.message,500,{headers:t,request:e})})}function withDefaults(e,t){const r=e.defaults(t);const n=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const i=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(i,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(i,n)};return Object.assign(n,{endpoint:r,defaults:withDefaults.bind(null,r)})}const p=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${u} ${i.getUserAgent()}`}});t.request=p},761:function(e){e.exports=require("zlib")},763:function(e){e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map(function(e){return e.orig}).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},768:function(e){"use strict";e.exports=function(e){var t=typeof e==="string"?"\n":"\n".charCodeAt();var r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},777:function(e,t,r){e.exports=getFirstPage;const n=r(265);function getFirstPage(e,t,r){return n(e,t,"first",r)}},784:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(794)}else{e.exports=r(81)}},794:function(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 i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}n++;if(e==="%c"){i=n}});t.splice(i,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(486)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}throw e}}t.getUserAgent=getUserAgent},813:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const i=t.endpoint.merge(r,n);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},814:function(e,t,r){e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=r(622);var s=n?";":":";var o=r(742);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var i=t.path||process.env.PATH||"";var o=[""];i=i.split(r);var a="";if(n){i.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var s=n.env;var a=n.ext;var u=n.extExe;var p=[];(function F(n,c){if(n===c){if(t.all&&p.length)return r(null,p);else return r(getNotFoundError(e))}var d=s[n];if(d.charAt(0)==='"'&&d.slice(-1)==='"')d=d.slice(1,-1);var l=i.join(d,e);if(!d&&/^\.[\\\/]/.test(e)){l=e.slice(0,2)+l}(function E(e,i){if(e===i)return F(n+1,c);var s=a[e];o(l+s,{pathExt:u},function(n,o){if(!n&&o){if(t.all)p.push(l+s);else return r(null,l+s)}return E(e+1,i)})})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var s=r.ext;var a=r.extExe;var u=[];for(var p=0,c=n.length;p{if(!e[r]){e[r]={}}Object.keys(t[r]).forEach(i=>{const s=t[r][i];const o=["method","url","headers"].reduce((e,t)=>{if(typeof s[t]!=="undefined"){e[t]=s[t]}return e},{});o.request={validate:s.params};let a=e.request.defaults(o);const u=Object.keys(s.params||{}).find(e=>s.params[e].deprecated);if(u){const t=patchForDeprecation.bind(null,e,s);a=t(e.request.defaults(o),`.${r}.${i}()`);a.endpoint=t(a.endpoint,`.${r}.${i}.endpoint()`);a.endpoint.merge=t(a.endpoint.merge,`.${r}.${i}.endpoint.merge()`)}if(s.deprecated){e[r][i]=Object.assign(function deprecatedEndpointMethod(){e.log.warn(new n.Deprecation(`[@octokit/rest] ${s.deprecated}`));e[r][i]=a;return a.apply(null,arguments)},a);return}e[r][i]=a})})}function patchForDeprecation(e,t,r,i){const s=s=>{s=Object.assign({},s);Object.keys(s).forEach(r=>{if(t.params[r]&&t.params[r].deprecated){const o=t.params[r].alias;e.log.warn(new n.Deprecation(`[@octokit/rest] "${r}" parameter is deprecated for "${i}". Use "${o}" instead`));if(!(o in s)){s[o]=s[r]}delete s[r]}});return r(s)};Object.keys(r).forEach(e=>{s[e]=r[e]});return s}function restEndpointMethods(e){e.registerEndpoints=registerEndpoints.bind(null,e);registerEndpoints(e,i);[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(([t,r])=>{Object.defineProperty(e,t,{get(){e.log.warn(new n.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${t}.*" methods are deprecated, use "octokit.${r}.*" instead`));return e[r]}})});return{}}restEndpointMethods.VERSION=s;t.restEndpointMethods=restEndpointMethods},850:function(e,t,r){e.exports=paginationMethodsPlugin;function paginationMethodsPlugin(e){e.getFirstPage=r(777).bind(null,e);e.getLastPage=r(649).bind(null,e);e.getNextPage=r(550).bind(null,e);e.getPreviousPage=r(563).bind(null,e);e.hasFirstPage=r(536);e.hasLastPage=r(336);e.hasNextPage=r(929);e.hasPreviousPage=r(558)}},854:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var n=1/0;var i="[object Function]",s="[object GeneratorFunction]",o="[object Symbol]";var a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,p=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var d=/[\\^$.*+?()[\]{}|]/g;var l=/\\(\\)?/g;var g=/^\[object .+?Constructor\]$/;var m=typeof global=="object"&&global&&global.Object===Object&&global;var h=typeof self=="object"&&self&&self.Object===Object&&self;var y=m||h||Function("return this")();function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var f=Array.prototype,b=Function.prototype,_=Object.prototype;var q=y["__core-js_shared__"];var w=function(){var e=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var v=b.toString;var E=_.hasOwnProperty;var T=_.toString;var S=RegExp("^"+v.call(E).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var k=y.Symbol,C=f.splice;var O=getNative(y,"Map"),j=getNative(Object,"create");var G=k?k.prototype:undefined,P=G?G.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t{return e.auth()}).then(e=>{t.headers.authorization=i(e)})}},866:function(e,t,r){"use strict";var n=r(816);e.exports=function(e){var t=e.match(n);if(!t){return null}var r=t[0].replace(/#! ?/,"").split(" ");var i=r[0].split("/").pop();var s=r[1];return i==="env"?s:i+(s?" "+s:"")}},867:function(e){e.exports=require("tty")},881:function(e){"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r,"spawn");if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},883:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var n=1/0,i=9007199254740991;var s="[object Function]",o="[object GeneratorFunction]",a="[object Symbol]";var u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/,c=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var l=/[\\^$.*+?()[\]{}|]/g;var g=/\\(\\)?/g;var m=/^\[object .+?Constructor\]$/;var h=/^(?:0|[1-9]\d*)$/;var y=typeof global=="object"&&global&&global.Object===Object&&global;var f=typeof self=="object"&&self&&self.Object===Object&&self;var b=y||f||Function("return this")();function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var _=Array.prototype,q=Function.prototype,w=Object.prototype;var v=b["__core-js_shared__"];var E=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var T=q.toString;var S=w.hasOwnProperty;var k=w.toString;var C=RegExp("^"+T.call(S).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var O=b.Symbol,j=_.splice;var G=getNative(b,"Map"),P=getNative(Object,"create");var A=O?O.prototype:undefined,x=A?A.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1&&e%1==0&&e{if(o.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});return e(n).then(e=>{if(e.data.errors){throw new GraphqlError(n,{data:e.data})}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const i=(e,t)=>{return graphql(r,e,t)};return Object.assign(i,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const a=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${s} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=a;t.withCustomRequest=withCustomRequest},916:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.0.0";function requestLog(e){e.hook.wrap("request",(t,r)=>{e.log.debug("request",r);const n=Date.now();const i=e.request.endpoint.parse(r);const s=i.url.replace(r.baseUrl,"");return t(r).then(t=>{e.log.info(`${i.method} ${s} - ${t.status} in ${Date.now()-n}ms`);return t}).catch(t=>{e.log.info(`${i.method} ${s} - ${t.status} in ${Date.now()-n}ms`);throw t})})}requestLog.VERSION=r;t.requestLog=requestLog},929:function(e,t,r){e.exports=hasNextPage;const n=r(370);const i=r(577);function hasNextPage(e){n(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).next}},932:function(e){"use strict";function FileStatusSummary(e,t,r){this.path=e;this.index=t;this.working_dir=r;if("R"===t+r){var n=FileStatusSummary.fromPathRegex.exec(e)||[null,e,e];this.from=n[1];this.path=n[2]}}FileStatusSummary.fromPathRegex=/^(.+) -> (.+)$/;FileStatusSummary.prototype={path:"",from:""};e.exports=FileStatusSummary},948:function(e){"use strict";e.exports=function(e){try{return e()}catch(e){}}},950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=n.parse(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},954:function(e){e.exports=validateAuth;function validateAuth(e){if(typeof e==="string"){return}if(typeof e==="function"){return}if(e.username&&e.password){return}if(e.clientId&&e.clientSecret){return}throw new Error(`Invalid "auth" option: ${JSON.stringify(e)}`)}},955:function(e,t,r){"use strict";const n=r(622);const i=r(129);const s=r(20);const o=r(768);const a=r(621);const u=r(323);const p=r(145);const c=r(697);const d=r(260);const l=r(427);const g=r(168);const m=1e3*1e3*10;function handleArgs(e,t,r){let i;r=Object.assign({extendEnv:true,env:{}},r);if(r.extendEnv){r.env=Object.assign({},process.env,r.env)}if(r.__winShell===true){delete r.__winShell;i={command:e,args:t,options:r,file:e,original:{cmd:e,args:t}}}else{i=s._parse(e,t,r)}r=Object.assign({maxBuffer:m,buffer:true,stripEof:true,preferLocal:true,localDir:i.options.cwd||process.cwd(),encoding:"utf8",reject:true,cleanup:true},i.options);r.stdio=g(r);if(r.preferLocal){r.env=a.env(Object.assign({},r,{cwd:r.localDir}))}if(r.detached){r.cleanup=false}if(process.platform==="win32"&&n.basename(i.command)==="cmd.exe"){i.args.unshift("/q")}return{cmd:i.command,args:i.args,opts:r,parsed:i}}function handleInput(e,t){if(t===null||t===undefined){return}if(u(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}}function handleOutput(e,t){if(t&&e.stripEof){t=o(t)}return t}function handleShell(e,t,r){let n="/bin/sh";let i=["-c",t];r=Object.assign({},r);if(process.platform==="win32"){r.__winShell=true;n=process.env.comspec||"cmd.exe";i=["/s","/c",`"${t}"`];r.windowsVerbatimArguments=true}if(r.shell){n=r.shell;delete r.shell}return e(n,i,r)}function getStream(e,t,{encoding:r,buffer:n,maxBuffer:i}){if(!e[t]){return null}let s;if(!n){s=new Promise((r,n)=>{e[t].once("end",r).once("error",n)})}else if(r){s=p(e[t],{encoding:r,maxBuffer:i})}else{s=p.buffer(e[t],{maxBuffer:i})}return s.catch(e=>{e.stream=t;e.message=`${t} ${e.message}`;throw e})}function makeError(e,t){const{stdout:r,stderr:n}=e;let i=e.error;const{code:s,signal:o}=e;const{parsed:a,joinedCmd:u}=t;const p=t.timedOut||false;if(!i){let e="";if(Array.isArray(a.opts.stdio)){if(a.opts.stdio[2]!=="inherit"){e+=e.length>0?n:`\n${n}`}if(a.opts.stdio[1]!=="inherit"){e+=`\n${r}`}}else if(a.opts.stdio!=="inherit"){e=`\n${n}${r}`}i=new Error(`Command failed: ${u}${e}`);i.code=s<0?l(s):s}i.stdout=r;i.stderr=n;i.failed=true;i.signal=o||null;i.cmd=u;i.timedOut=p;return i}function joinCmd(e,t){let r=e;if(Array.isArray(t)&&t.length>0){r+=" "+t.join(" ")}return r}e.exports=((e,t,r)=>{const n=handleArgs(e,t,r);const{encoding:o,buffer:a,maxBuffer:u}=n.opts;const p=joinCmd(e,t);let l;try{l=i.spawn(n.cmd,n.args,n.opts)}catch(e){return Promise.reject(e)}let g;if(n.opts.cleanup){g=d(()=>{l.kill()})}let m=null;let h=false;const y=()=>{if(m){clearTimeout(m);m=null}if(g){g()}};if(n.opts.timeout>0){m=setTimeout(()=>{m=null;h=true;l.kill(n.opts.killSignal)},n.opts.timeout)}const f=new Promise(e=>{l.on("exit",(t,r)=>{y();e({code:t,signal:r})});l.on("error",t=>{y();e({error:t})});if(l.stdin){l.stdin.on("error",t=>{y();e({error:t})})}});function destroy(){if(l.stdout){l.stdout.destroy()}if(l.stderr){l.stderr.destroy()}}const b=()=>c(Promise.all([f,getStream(l,"stdout",{encoding:o,buffer:a,maxBuffer:u}),getStream(l,"stderr",{encoding:o,buffer:a,maxBuffer:u})]).then(e=>{const t=e[0];t.stdout=e[1];t.stderr=e[2];if(t.error||t.code!==0||t.signal!==null){const e=makeError(t,{joinedCmd:p,parsed:n,timedOut:h});e.killed=e.killed||l.killed;if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,t.stdout),stderr:handleOutput(n.opts,t.stderr),code:0,failed:false,killed:false,signal:null,cmd:p,timedOut:false}}),destroy);s._enoent.hookChildProcess(l,n.parsed);handleInput(l,n.opts.input);l.then=((e,t)=>b().then(e,t));l.catch=(e=>b().catch(e));return l});e.exports.stdout=((...t)=>e.exports(...t).then(e=>e.stdout));e.exports.stderr=((...t)=>e.exports(...t).then(e=>e.stderr));e.exports.shell=((t,r)=>handleShell(e.exports,t,r));e.exports.sync=((e,t,r)=>{const n=handleArgs(e,t,r);const s=joinCmd(e,t);if(u(n.opts.input)){throw new TypeError("The `input` option cannot be a stream in sync mode")}const o=i.spawnSync(n.cmd,n.args,n.opts);o.code=o.status;if(o.error||o.status!==0||o.signal!==null){const e=makeError(o,{joinedCmd:s,parsed:n});if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,o.stdout),stderr:handleOutput(n.opts,o.stderr),code:0,failed:false,signal:null,cmd:s,timedOut:false}});e.exports.shellSync=((t,r)=>handleShell(e.exports.sync,t,r))},964:function(e,t,r){var n=r(71);e.exports=function(e){var t=r(970);if(e&&!t.exists(e,t.exists.FOLDER)){throw new Error("Cannot use simple-git on a directory that does not exist.")}return new n(e||process.cwd(),t.childProcess(),t.buffer())}},966:function(e,t,r){"use strict";const{PassThrough:n}=r(413);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let s=false;if(t){s=!(r||i)}else{r=r||"utf8"}if(i){r=null}let o=0;const a=[];const u=new n({objectMode:s});if(r){u.setEncoding(r)}u.on("data",e=>{a.push(e);if(s){o=a.length}else{o+=e.length}});u.getBufferedValue=(()=>{if(t){return a}return i?Buffer.concat(a,o):a.join("")});u.getBufferedLength=(()=>o);return u})},969:function(e,t,r){var n=r(11);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},970:function(e,t,r){e.exports={buffer:function(){return r(407).Buffer},childProcess:function(){return r(129)},exists:r(726)}}}); \ No newline at end of file +module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(31)}return startup()}({0:function(e,t,r){const{requestLog:n}=r(916);const{restEndpointMethods:i}=r(842);const s=r(529);const o=[r(190),r(19),n,r(148),i,r(430),r(850)];const a=s.plugin(o);function DeprecatedOctokit(e){const t=e&&e.log&&e.log.warn?e.log.warn:console.warn;t('[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead');return new a(e)}const u=Object.assign(DeprecatedOctokit,{Octokit:a});Object.keys(a).forEach(e=>{if(a.hasOwnProperty(e)){u[e]=a[e]}});e.exports=u},2:function(e,t,r){"use strict";const n=r(87);const i=r(118);const s=r(49);const o=(e,t)=>{if(!e&&t){throw new Error("You can't specify a `release` without specifying `platform`")}e=e||n.platform();let r;if(e==="darwin"){if(!t&&n.platform()==="darwin"){t=n.release()}const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";r=t?i(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&n.platform()==="linux"){t=n.release()}r=t?t.replace(/^(\d+\.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&n.platform()==="win32"){t=n.release()}r=t?s(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=o},9:function(e,t,r){var n=r(969);var i=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=n(r||i);var u=e._writableState;var p=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var d=t.writable||t.writable!==false&&e.writable;var l=false;var g=function(){if(!e.writable)m()};var m=function(){d=false;if(!c)r.call(e)};var h=function(){c=false;if(!d)r.call(e)};var y=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var f=function(t){r.call(e,t)};var b=function(){process.nextTick(_)};var _=function(){if(l)return;if(c&&!(p&&(p.ended&&!p.destroyed)))return r.call(e,new Error("premature close"));if(d&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"))};var q=function(){e.req.on("finish",m)};if(s(e)){e.on("complete",m);e.on("abort",b);if(e.req)q();else e.on("request",q)}else if(d&&!u){e.on("end",g);e.on("close",g)}if(o(e))e.on("exit",y);e.on("end",h);e.on("finish",m);if(t.error!==false)e.on("error",f);e.on("close",b);return function(){l=true;e.removeListener("complete",m);e.removeListener("abort",b);e.removeListener("request",q);if(e.req)e.req.removeListener("finish",m);e.removeListener("end",g);e.removeListener("close",g);e.removeListener("finish",m);e.removeListener("exit",y);e.removeListener("end",h);e.removeListener("error",f);e.removeListener("close",b)}};e.exports=a},11:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;re.warn(t));const o=r(674);const a=r(471);const u=r(349);function authenticationPlugin(e,t){if(t.auth){e.authenticate=(()=>{s(e.log,new n('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});return}const r={octokit:e,auth:false};e.authenticate=o.bind(null,r);e.hook.before("request",a.bind(null,r));e.hook.error("request",u.bind(null,r))}},20:function(e,t,r){"use strict";const n=r(129);const i=r(568);const s=r(881);function spawn(e,t,r){const o=i(e,t,r);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=i(e,t,r);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},25:function(e){e.exports=function deferred(){var e={};e.promise=new Promise(function(t,r){e.resolve=t;e.reject=r});return e}},31:function(__unusedmodule,__unusedexports,__webpack_require__){const core=__webpack_require__(470);const{synchronizeBranches:synchronizeBranches}=__webpack_require__(381);async function main(){try{const e=core.getInput("path",{required:true});await synchronizeBranches(e)}catch(e){core.setFailed(e.message)}}if(require.main===require.cache[eval("__filename")])main()},34:function(e){e.exports=require("https")},39:function(e){"use strict";e.exports=(e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},47:function(e,t,r){e.exports=factory;const n=r(402);const i=r(855);function factory(e){const t=n.bind(null,e||[]);t.plugin=i.bind(null,e||[]);return t}},48:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var u=0;var p=u++;a[p]="0|[1-9]\\d*";var c=u++;a[c]="[0-9]+";var d=u++;a[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=u++;a[l]="("+a[p]+")\\."+"("+a[p]+")\\."+"("+a[p]+")";var g=u++;a[g]="("+a[c]+")\\."+"("+a[c]+")\\."+"("+a[c]+")";var m=u++;a[m]="(?:"+a[p]+"|"+a[d]+")";var h=u++;a[h]="(?:"+a[c]+"|"+a[d]+")";var y=u++;a[y]="(?:-("+a[m]+"(?:\\."+a[m]+")*))";var f=u++;a[f]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var b=u++;a[b]="[0-9A-Za-z-]+";var _=u++;a[_]="(?:\\+("+a[b]+"(?:\\."+a[b]+")*))";var q=u++;var w="v?"+a[l]+a[y]+"?"+a[_]+"?";a[q]="^"+w+"$";var v="[v=\\s]*"+a[g]+a[f]+"?"+a[_]+"?";var E=u++;a[E]="^"+v+"$";var T=u++;a[T]="((?:<|>)?=?)";var S=u++;a[S]=a[c]+"|x|X|\\*";var k=u++;a[k]=a[p]+"|x|X|\\*";var C=u++;a[C]="[v=\\s]*("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:"+a[y]+")?"+a[_]+"?"+")?)?";var O=u++;a[O]="[v=\\s]*("+a[S]+")"+"(?:\\.("+a[S]+")"+"(?:\\.("+a[S]+")"+"(?:"+a[f]+")?"+a[_]+"?"+")?)?";var j=u++;a[j]="^"+a[T]+"\\s*"+a[C]+"$";var G=u++;a[G]="^"+a[T]+"\\s*"+a[O]+"$";var P=u++;a[P]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var A=u++;a[A]="(?:~>?)";var x=u++;a[x]="(\\s*)"+a[A]+"\\s+";o[x]=new RegExp(a[x],"g");var R="$1~";var D=u++;a[D]="^"+a[A]+a[C]+"$";var L=u++;a[L]="^"+a[A]+a[O]+"$";var F=u++;a[F]="(?:\\^)";var U=u++;a[U]="(\\s*)"+a[F]+"\\s+";o[U]=new RegExp(a[U],"g");var H="$1^";var I=u++;a[I]="^"+a[F]+a[C]+"$";var B=u++;a[B]="^"+a[F]+a[O]+"$";var $=u++;a[$]="^"+a[T]+"\\s*("+v+")$|^$";var N=u++;a[N]="^"+a[T]+"\\s*("+w+")$|^$";var z=u++;a[z]="(\\s*)"+a[T]+"\\s*("+v+"|"+a[C]+")";o[z]=new RegExp(a[z],"g");var V="$1$2$3";var M=u++;a[M]="^\\s*("+a[C]+")"+"\\s+-\\s+"+"("+a[C]+")"+"\\s*$";var W=u++;a[W]="^\\s*("+a[O]+")"+"\\s+-\\s+"+"("+a[O]+")"+"\\s*$";var K=u++;a[K]="(<|>)?=?\\s*\\*";for(var X=0;Xn){return null}var r=t.loose?o[E]:o[q];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[E]:o[q]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var J=/^[0-9]+$/;function compareIdentifiers(e,t){var r=J.test(e);var n=J.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===Y){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var Y={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[$]:o[N];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=Y}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===Y){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[W]:o[M];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[z],V);r("comparator trim",e,o[z]);e=e.replace(o[x],R);e=e.replace(o[U],H);e=e.split(/\s+/).join(" ");var i=t?o[$]:o[N];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[L]:o[D];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[B]:o[I];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[G]:o[j];return e.replace(n,function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var u=isX(i);var p=u||isX(s);var c=p||isX(o);var d=c;if(n==="="&&d){n=""}if(u){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&d){if(p){s=0}o=0;if(n===">"){n=">=";if(p){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(p){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(p){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(c){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[K],"")}function hyphenReplace(e,t,r,n,i,s,o,a,u,p,c,d,l){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(u)){a=""}else if(isX(p)){a="<"+(+u+1)+".0.0"}else if(isX(c)){a="<"+u+"."+(+p+1)+".0"}else if(d){a="<="+u+"."+p+"."+c+"-"+d}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,u;switch(r){case">":i=gt;s=lte;o=lt;a=">";u=">=";break;case"<":i=lt;s=gte;o=gt;a="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var p=0;p=0.0.0")}d=d||e;l=l||e;if(i(e.semver,d.semver,n)){d=e}else if(o(e.semver,l.semver,n)){l=e}});if(d.operator===a||d.operator===u){return false}if((!l.operator||l.operator===a)&&s(e,l.semver)){return false}else if(l.operator===u&&o(e,l.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[P]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},49:function(e,t,r){"use strict";const n=r(87);const i=r(955);const s=new Map([["10.0","10"],["6.3","8.1"],["6.2","8"],["6.1","7"],["6.0","Vista"],["5.2","Server 2003"],["5.1","XP"],["5.0","2000"],["4.9","ME"],["4.1","98"],["4.0","95"]]);const o=e=>{const t=/\d+\.\d/.exec(e||n.release());if(e&&!t){throw new Error("`release` argument doesn't match `n.n`")}const r=(t||[])[0];if((!e||e===n.release())&&["6.1","6.2","6.3","10.0"].includes(r)){let e;try{e=i.sync("powershell",["(Get-CimInstance -ClassName Win32_OperatingSystem).caption"]).stdout||""}catch(t){e=i.sync("wmic",["os","get","Caption"]).stdout||""}const t=(e.match(/2008|2012|2016|2019/)||[])[0];if(t){return`Server ${t}`}}return s.get(r)};e.exports=o},57:function(e,t,r){if(typeof Promise==="undefined"){throw new ReferenceError("Promise wrappers must be enabled to use the promise API")}function isAsyncCall(e){return/^[^)]+then\s*\)/.test(e)||/\._run\(/.test(e)}e.exports=function(e){var t=r(71);var n=r(964);var i;var s=Promise.resolve();try{i=n(e)}catch(e){s=Promise.reject(e)}return Object.keys(t.prototype).reduce(function(e,r){if(/^_|then/.test(r)){return e}if(isAsyncCall(t.prototype[r])){e[r]=i?asyncWrapper(r,i):function(){return s}}else{e[r]=i?syncWrapper(r,i,e):function(){return e}}return e},{});function asyncWrapper(e,t){return function(){var r=[].slice.call(arguments);if(typeof r[r.length]==="function"){throw new TypeError("Promise interface requires that handlers are not supplied inline, "+"trailing function not allowed in call to "+e)}return s.then(function(){return new Promise(function(n,i){r.push(function(e,t){if(e){return i(toError(e))}n(t)});t[e].apply(t,r)})})}}function syncWrapper(e,t,r){return function(){t[e].apply(t,arguments);return r}}};function toError(e){if(e instanceof Error){return e}if(typeof e==="string"){return new Error(e)}return Object.create(new Error(e),{git:{value:e}})}},71:function(e,t,r){(function(){"use strict";var t=r(784)("simple-git");var n=r(25);var i=r(726);var s=function(){};var o=r(820);function Git(e,t,r){this._baseDir=e;this._runCache=[];this.ChildProcess=t;this.Buffer=r}Git.prototype._command="git";Git.prototype._env=null;Git.prototype._outputHandler=null;Git.prototype._silentLogging=/prod/.test(process.env.NODE_ENV);Git.prototype.customBinary=function(e){this._command=e;return this};Git.prototype.env=function(e,t){if(arguments.length===1&&typeof e==="object"){this._env=e}else{(this._env=this._env||{})[e]=t}return this};Git.prototype.cwd=function(e,t){var r=this;var n=Git.trailingFunctionArgument(arguments);return this.exec(function(){r._baseDir=e;if(!i(e,i.FOLDER)){Git.exception(r,'Git.cwd: cannot change to non-directory "'+e+'"',n)}else{n&&n(null,e)}})};Git.prototype.outputHandler=function(e){this._outputHandler=e;return this};Git.prototype.init=function(e,t){var r=["init"];var n=Git.trailingFunctionArgument(arguments);if(e===true){r.push("--bare")}return this._run(r,function(e){n&&n(e)})};Git.prototype.status=function(e){return this._run(["status","--porcelain","-b","-u"],Git._responseHandler(e,"StatusSummary"))};Git.prototype.stashList=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=(r===t?e:null)||{};var i=n.splitter||requireResponseHandler("ListLogSummary").SPLITTER;var s=["stash","list","--pretty=format:"+requireResponseHandler("ListLogSummary").START_BOUNDARY+"%H %ai %s%d %aN %ae".replace(/\s+/g,i)+requireResponseHandler("ListLogSummary").COMMIT_BOUNDARY];if(Array.isArray(n)){s=s.concat(n)}return this._run(s,Git._responseHandler(r,"ListLogSummary",i))};Git.prototype.stash=function(e,t){var r=["stash"];Git._appendOptions(r,Git.trailingOptionsArgument(arguments));r.push.apply(r,Git.trailingArrayArgument(arguments));return this._run(r,Git._responseHandler(Git.trailingFunctionArgument(arguments)))};Git.prototype.clone=function(e,t,r,n){var i=Git.trailingFunctionArgument(arguments);var s=["clone"].concat(Git.trailingArrayArgument(arguments));for(var o=0,a=arguments.length;o1){r(t)}return r};Git.prototype.pull=function(e,t,r,n){var i=["pull"];var s=Git.trailingFunctionArgument(arguments);if(typeof e==="string"&&typeof t==="string"){i.push(e,t)}Git._appendOptions(i,Git.trailingOptionsArgument(arguments));return this._run(i,Git._responseHandler(s,"PullSummary"))};Git.prototype.fetch=function(e,t,r){var n=["fetch"];var i=Git.trailingFunctionArgument(arguments);Git._appendOptions(n,Git.trailingOptionsArgument(arguments));if(typeof e==="string"&&typeof t==="string"){n.push(e,t)}if(Array.isArray(e)){n=n.concat(e)}return this._run(n,Git._responseHandler(i,"FetchSummary"),{concatStdErr:true})};Git.prototype.silent=function(e){this._silentLogging=!!e;return this};Git.prototype.tags=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=["-l"];Git._appendOptions(n,Git.trailingOptionsArgument(arguments));var i=n.some(function(e){return/^--sort=/.test(e)});return this.tag(n,Git._responseHandler(r,"TagList",[i]))};Git.prototype.rebase=function(e,t){var r=["rebase"];Git._appendOptions(r,Git.trailingOptionsArgument(arguments));r.push.apply(r,Git.trailingArrayArgument(arguments));return this._run(r,Git._responseHandler(Git.trailingFunctionArgument(arguments)))};Git.prototype.reset=function(e,t){var r=["reset"];var n=Git.trailingFunctionArgument(arguments);if(n===e||typeof e==="string"||!e){var i=["mixed","soft","hard"].includes(e)?e:"soft";r.push("--"+i)}else if(Array.isArray(e)){r.push.apply(r,e)}return this._run(r,function(e){n&&n(e||null)})};Git.prototype.revert=function(e,t,r){var n=Git.trailingFunctionArgument(arguments);var i=["revert"];Git._appendOptions(i,Git.trailingOptionsArgument(arguments));if(typeof e!=="string"){return this.exec(function(){n&&n(new TypeError("Commit must be a string"))})}i.push(e);return this._run(i,function(e){n&&n(e||null)})};Git.prototype.addTag=function(e,t){if(typeof e!=="string"){return this.exec(function(){t&&t(new TypeError("Git.addTag requires a tag name"))})}var r=[e];return t?this.tag(r,t):this.tag(r)};Git.prototype.addAnnotatedTag=function(e,t,r){return this.tag(["-a","-m",t,e],function(e){r&&r(e)})};Git.prototype.checkout=function(e,t){var r=["checkout"];r=r.concat(e);return this._run(r,function(e,r){t&&t(e,!e&&this._parseCheckout(r))})};Git.prototype.checkoutBranch=function(e,t,r){return this.checkout(["-b",e,t],r)};Git.prototype.checkoutLocalBranch=function(e,t){return this.checkout(["-b",e],t)};Git.prototype.deleteLocalBranch=function(e,t){return this.branch(["-d",e],t)};Git.prototype.branch=function(e,t){var r,n;var i=Git.trailingFunctionArgument(arguments);var s=["branch"];s.push.apply(s,Git.trailingArrayArgument(arguments));Git._appendOptions(s,Git.trailingOptionsArgument(arguments));if(!arguments.length||i===e){s.push("-a")}r=["-d","-D","--delete"].reduce(function(e,t){return e||s.indexOf(t)>0},false);if(s.indexOf("-v")<0){s.splice(1,0,"-v")}n=r?Git._responseHandler(i,"BranchDeleteSummary",false):Git._responseHandler(i,"BranchSummary");return this._run(s,n)};Git.prototype.branchLocal=function(e){return this.branch(["-v"],e)};Git.prototype.addConfig=function(e,t,r){return this._run(["config","--local",e,t],function(e,t){r&&r(e,!e&&t)})};Git.prototype.raw=function(e,t){var r=[];if(Array.isArray(e)){r=e.slice(0)}else{Git._appendOptions(r,Git.trailingOptionsArgument(arguments))}var n=Git.trailingFunctionArgument(arguments);if(!r.length){return this.exec(function(){n&&n(new Error("Raw: must supply one or more command to execute"),null)})}return this._run(r,function(e,t){n&&n(e,!e&&t||null)})};Git.prototype.submoduleAdd=function(e,t,r){return this._run(["submodule","add",e,t],function(e){r&&r(e)})};Git.prototype.submoduleUpdate=function(e,t){if(typeof e==="string"){this._getLog("warn","Git#submoduleUpdate: args should be supplied as an array of individual arguments")}var r=Git.trailingFunctionArgument(arguments);var n=e!==r?e:[];return this.subModule(["update"].concat(n),function(e,t){r&&r(e,t)})};Git.prototype.submoduleInit=function(e,t){if(typeof e==="string"){this._getLog("warn","Git#submoduleInit: args should be supplied as an array of individual arguments")}var r=Git.trailingFunctionArgument(arguments);var n=e!==r?e:[];return this.subModule(["init"].concat(n),function(e,t){r&&r(e,t)})};Git.prototype.subModule=function(e,t){if(!Array.isArray(e)){return this.exec(function(){t&&t(new TypeError("Git.subModule requires an array of arguments"))})}if(e[0]!=="submodule"){e.unshift("submodule")}return this._run(e,function(e,r){t&&t(e||null,e?null:r)})};Git.prototype.listRemote=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=r===e||e===undefined?[]:e;if(typeof n==="string"){this._getLog("warn","Git#listRemote: args should be supplied as an array of individual arguments")}return this._run(["ls-remote"].concat(n),function(e,t){r&&r(e,t)})};Git.prototype.addRemote=function(e,t,r){return this._run(["remote","add",e,t],function(e){r&&r(e)})};Git.prototype.removeRemote=function(e,t){return this._run(["remote","remove",e],function(e){t&&t(e)})};Git.prototype.getRemotes=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=e===true?["-v"]:[];return this.remote(n,function(e,t){r&&r(e,!e&&function(){return t.trim().split("\n").filter(Boolean).reduce(function(e,t){var r=t.trim().split(/\s+/);var n=r.shift();if(!e[n]){e[n]=e[e.length]={name:n,refs:{}}}if(r.length){e[n].refs[r.pop().replace(/[^a-z]/g,"")]=r.pop()}return e},[]).slice(0)}())})};Git.prototype.remote=function(e,t){if(!Array.isArray(e)){return this.exec(function(){t&&t(new TypeError("Git.remote requires an array of arguments"))})}if(e[0]!=="remote"){e.unshift("remote")}return this._run(e,function(e,r){t&&t(e||null,e?null:r)})};Git.prototype.mergeFromTo=function(e,t,r,n){var i=[e,t];var s=Git.trailingFunctionArgument(arguments);if(Array.isArray(r)){i=i.concat(r)}return this.merge(i,s)};Git.prototype.merge=function(e,t){var r=this;var n=Git.trailingFunctionArgument(arguments)||s;var i=function(e,t){if(!e&&t.failed){return Git.fail(r,t,n)}n(e,t)};var o=[];Git._appendOptions(o,Git.trailingOptionsArgument(arguments));o.push.apply(o,Git.trailingArrayArgument(arguments));if(o[0]!=="merge"){o.unshift("merge")}if(o.length===1){return this.exec(function(){t&&t(new TypeError("Git.merge requires at least one option"))})}return this._run(o,Git._responseHandler(i,"MergeSummary"),{concatStdErr:true})};Git.prototype.tag=function(e,t){var r=[];Git._appendOptions(r,Git.trailingOptionsArgument(arguments));r.push.apply(r,Git.trailingArrayArgument(arguments));if(r[0]!=="tag"){r.unshift("tag")}return this._run(r,Git._responseHandler(Git.trailingFunctionArgument(arguments)))};Git.prototype.updateServerInfo=function(e){return this._run(["update-server-info"],function(t,r){e&&e(t,!t&&r)})};Git.prototype.push=function(e,t,r){var n=[];var i=Git.trailingFunctionArgument(arguments);if(typeof e==="string"&&typeof t==="string"){n.push(e,t)}if(Array.isArray(e)){n=n.concat(e)}Git._appendOptions(n,Git.trailingOptionsArgument(arguments));if(n[0]!=="push"){n.unshift("push")}return this._run(n,function(e,t){i&&i(e,!e&&t)})};Git.prototype.pushTags=function(e,t){var r=["push"];if(typeof e==="string"){r.push(e)}r.push("--tags");t=typeof arguments[arguments.length-1]==="function"?arguments[arguments.length-1]:null;return this._run(r,function(e,r){t&&t(e,!e&&r)})};Git.prototype.rm=function(e,t){return this._rm(e,"-f",t)};Git.prototype.rmKeepLocal=function(e,t){return this._rm(e,"--cached",t)};Git.prototype.catFile=function(e,t){return this._catFile("utf-8",arguments)};Git.prototype.binaryCatFile=function(e,t){return this._catFile("buffer",arguments)};Git.prototype._catFile=function(e,t){var r=Git.trailingFunctionArgument(t);var n=["cat-file"];var i=t[0];if(typeof i==="string"){throw new TypeError("Git#catFile: options must be supplied as an array of strings")}else if(Array.isArray(i)){n.push.apply(n,i)}return this._run(n,function(e,t){r&&r(e,t)},{format:e})};Git.prototype.diff=function(e,t){var r=["diff"];if(typeof e==="string"){r[0]+=" "+e;this._getLog("warn","Git#diff: supplying options as a single string is now deprecated, switch to an array of strings")}else if(Array.isArray(e)){r.push.apply(r,e)}if(typeof arguments[arguments.length-1]==="function"){t=arguments[arguments.length-1]}return this._run(r,function(e,r){t&&t(e,r)})};Git.prototype.diffSummary=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=["--stat=4096"];if(e&&e!==r){n.push.apply(n,[].concat(e))}return this.diff(n,Git._responseHandler(r,"DiffSummary"))};Git.prototype.revparse=function(e,t){var r=["rev-parse"];if(typeof e==="string"){r=r+" "+e;this._getLog("warn","Git#revparse: supplying options as a single string is now deprecated, switch to an array of strings")}else if(Array.isArray(e)){r.push.apply(r,e)}if(typeof arguments[arguments.length-1]==="function"){t=arguments[arguments.length-1]}return this._run(r,function(e,r){t&&t(e,e?null:String(r).trim())})};Git.prototype.show=function(e,t){var r=[].slice.call(arguments,0);var n=typeof r[r.length-1]==="function"?r.pop():null;var i=["show"];if(typeof e==="string"){i=i+" "+e;this._getLog("warn","Git#show: supplying options as a single string is now deprecated, switch to an array of strings")}else if(Array.isArray(e)){i.push.apply(i,e)}return this._run(i,function(e,t){n&&n(e,!e&&t)})};Git.prototype.clean=function(e,t,r){var n=Git.trailingFunctionArgument(arguments);if(typeof e!=="string"||!/[nf]/.test(e)){return this.exec(function(){n&&n(new TypeError('Git clean mode parameter ("n" or "f") is required'))})}if(/[^dfinqxX]/.test(e)){return this.exec(function(){n&&n(new TypeError("Git clean unknown option found in "+JSON.stringify(e)))})}var i=["clean","-"+e];if(Array.isArray(t)){i=i.concat(t)}if(i.some(interactiveMode)){return this.exec(function(){n&&n(new TypeError("Git clean interactive mode is not supported"))})}return this._run(i,function(e,t){n&&n(e,!e&&t)});function interactiveMode(e){if(/^-[^\-]/.test(e)){return e.indexOf("i")>0}return e==="--interactive"}};Git.prototype.exec=function(e){this._run([],function(){typeof e==="function"&&e()});return this};Git.prototype.then=function(e){this._getLog("error",`\nGit#then is deprecated after version 1.72 and will be removed in version 2.x\nTo use promises switch to importing 'simple-git/promise'.`);return this.exec(e)};Git.prototype.log=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=(r===t?e:null)||{};var i=n.splitter||requireResponseHandler("ListLogSummary").SPLITTER;var s=n.format||{hash:"%H",date:"%ai",message:"%s",refs:"%D",body:n.multiLine?"%B":"%b",author_name:"%aN",author_email:"%ae"};var o=n.symmetric!==false?"...":"..";var a=Object.keys(s);var u=a.map(function(e){return s[e]}).join(i);var p=[];var c=["log","--pretty=format:"+requireResponseHandler("ListLogSummary").START_BOUNDARY+u+requireResponseHandler("ListLogSummary").COMMIT_BOUNDARY];if(Array.isArray(n)){c=c.concat(n);n={}}else if(typeof arguments[0]==="string"||typeof arguments[1]==="string"){this._getLog("warn","Git#log: supplying to or from as strings is now deprecated, switch to an options configuration object");n={from:arguments[0],to:arguments[1]}}if(n.n||n["max-count"]){c.push("--max-count="+(n.n||n["max-count"]))}if(n.from&&n.to){c.push(n.from+o+n.to)}if(n.file){p.push("--follow",e.file)}"splitter n max-count file from to --pretty format symmetric multiLine".split(" ").forEach(function(e){delete n[e]});Git._appendOptions(c,n);return this._run(c.concat(p),Git._responseHandler(r,"ListLogSummary",[i,a]))};Git.prototype.clearQueue=function(){this._runCache.length=0;return this};Git.prototype.checkIgnore=function(e,t){var r=Git.trailingFunctionArgument(arguments);var n=["check-ignore"];if(r!==e){n=n.concat(e)}return this._run(n,function(e,t){r&&r(e,!e&&this._parseCheckIgnore(t))})};Git.prototype.checkIsRepo=function(e){function onError(e,t,r,n){if(e===128&&/(Not a git repository|Kein Git-Repository)/i.test(t)){return r(false)}n(t)}function handler(t,r){e&&e(t,String(r).trim()==="true")}return this._run(["rev-parse","--is-inside-work-tree"],handler,{onError:onError})};Git.prototype._rm=function(e,t,r){var n=[].concat(e);var i=["rm",t];i.push.apply(i,n);return this._run(i,function(e){r&&r(e)})};Git.prototype._parseCheckout=function(e){};Git.prototype._parseCheckIgnore=function(e){return e.split(/\n/g).filter(Boolean).map(function(e){return e.trim()})};Git.prototype._run=function(e,t,r){if(typeof e==="string"){e=e.split(" ")}this._runCache.push([e,t,r||{}]);this._schedule();return this};Git.prototype._schedule=function(){if(!this._childProcess&&this._runCache.length){var e=this;var r=e.Buffer;var i=e._runCache.shift();var s=i[0];var o=i[1];var a=i[2];t(s);var u=n();var p=false;var c=function attemptClose(e){if(p||l.length||d.length){u.resolve(e);p=true}if(!p){p=true;setTimeout(attemptClose.bind(this,e),50)}};var d=[];var l=[];var g=e.ChildProcess.spawn(e._command,s.slice(0),{cwd:e._baseDir,env:e._env,windowsHide:true});g.stdout.on("data",function(e){d.push(e)});g.stderr.on("data",function(e){l.push(e)});g.on("error",function(e){l.push(r.from(e.stack,"ascii"))});g.on("close",c);g.on("exit",c);u.promise.then(function(t){function done(t){o.call(e,null,t)}function fail(t){Git.fail(e,t,o)}delete e._childProcess;if(t&&l.length&&a.onError){a.onError(t,r.concat(l).toString("utf-8"),done,fail)}else if(t&&l.length){fail(r.concat(l).toString("utf-8"))}else{if(a.concatStdErr){[].push.apply(d,l)}var n=r.concat(d);if(a.format!=="buffer"){n=n.toString(a.format||"utf-8")}done(n)}process.nextTick(e._schedule.bind(e))});e._childProcess=g;if(e._outputHandler){e._outputHandler(s[0],e._childProcess.stdout,e._childProcess.stderr)}}};Git.fail=function(e,t,r){e._getLog("error",t);e._runCache.length=0;if(typeof r==="function"){r.call(e,t,null)}};Git.trailingFunctionArgument=function(e){var t=e[e.length-1];return typeof t==="function"?t:null};Git.trailingOptionsArgument=function(e){var t=e[e.length-(Git.trailingFunctionArgument(e)?2:1)];return Object.prototype.toString.call(t)==="[object Object]"?t:null};Git.trailingArrayArgument=function(e){var t=e[e.length-(Git.trailingFunctionArgument(e)?2:1)];return Object.prototype.toString.call(t)==="[object Array]"?t:[]};Git._appendOptions=function(e,t){if(t===null){return}Object.keys(t).forEach(function(r){var n=t[r];if(typeof n==="string"){e.push(r+"="+n)}else{e.push(r)}})};Git._responseHandler=function(e,t,r){return function(n,i){if(typeof e!=="function"){return}if(n){return e(n,null)}if(!t){return e(null,i)}var s=requireResponseHandler(t);var o=s.parse.apply(s,[i].concat(r===undefined?[]:r));e(null,o)}};Git.exception=function(e,t,r){e._runCache.length=0;if(typeof r==="function"){r(t instanceof Error?t:new Error(t))}e._getLog("error",t)};e.exports=Git;function requireResponseHandler(e){return o[e]}})()},81:function(e,t,r){const n=r(867);const i=r(669);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(247);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=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return 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 i="[3"+(n<8?n:"8;5;"+n);const s=` ${i};1m${r} `;t[0]=s+t[0].split("\n").join("\n"+s);t.push(i+"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(i.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{e=Number((e||n.release()).split(".")[0]);return{name:i.get(e),version:"10."+(e-4)}};e.exports=s;e.exports.default=s},126:function(e){var t=200;var r="__lodash_hash_undefined__";var n=1/0;var i="[object Function]",s="[object GeneratorFunction]";var o=/[\\^$.*+?()[\]{}|]/g;var a=/^\[object .+?Constructor\]$/;var u=typeof global=="object"&&global&&global.Object===Object&&global;var p=typeof self=="object"&&self&&self.Object===Object&&self;var c=u||p||Function("return this")();function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var n=-1,i=e?e.length:0;while(++n-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t=t){var c=r?null:T(e);if(c){return setToArray(c)}a=false;s=cacheHas;p=new SetCache}else{p=r?[]:u}e:while(++i=this.maxSockets){i.requests.push(s);return}i.createSocket(s,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,s)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}c("making CONNECT request");var s=r.request(i);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,o,a){s.removeAllListeners();o.removeAllListeners();if(i.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",i.statusCode);o.destroy();var u=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}if(a.length>0){c("got illegal response body from proxy");o.destroy();var u=new Error("got illegal response body from proxy");u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(n);return}c("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){s.removeAllListeners();c("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{const u=e=>{if(e){e.bufferedData=s.getBufferedValue()}a(e)};s=n(e,i(t),e=>{if(e){u(e);return}o()});s.on("data",()=>{if(s.getBufferedLength()>r){u(new MaxBufferError)}})}).then(()=>s.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},148:function(e,t,r){e.exports=paginatePlugin;const{paginateRest:n}=r(299);function paginatePlugin(e){Object.assign(e,n(e))}},168:function(e){"use strict";const t=["stdin","stdout","stderr"];const r=e=>t.some(t=>Boolean(e[t]));e.exports=(e=>{if(!e){return null}if(e.stdio&&r(e)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(e=>`\`${e}\``).join(", ")}`)}if(typeof e.stdio==="string"){return e.stdio}const n=e.stdio||[];if(!Array.isArray(n)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n}\``)}const i=[];const s=Math.max(n.length,t.length);for(let r=0;re.warn(t));const d=s((e,t)=>e.warn(t));function authenticationPlugin(e,t){if(t.authStrategy){const r=t.authStrategy(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}if(!t.auth){e.auth=(()=>Promise.resolve({type:"unauthenticated"}));return}const r=typeof t.auth==="string"&&/^basic/.test(p(t.auth));if(typeof t.auth==="string"&&!r){const r=n(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}const[s,l]=r?[c,'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)']:[d,'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'];s(e.log,new i("[@octokit/rest] "+l));e.auth=(()=>Promise.resolve({type:"deprecated",message:l}));u(t.auth);const g={octokit:e,auth:t.auth};e.hook.before("request",o.bind(null,g));e.hook.error("request",a.bind(null,g))}},197:function(e,t,r){e.exports=isexe;isexe.sync=sync;var n=r(747);function isexe(e,t,r){n.stat(e,function(e,n){r(e,e?false:checkStat(n,t))})}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var i=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var u=parseInt("010",8);var p=parseInt("001",8);var c=a|u;var d=r&p||r&u&&i===o||r&a&&n===s||r&c&&s===0;return d}},211:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}return""}}t.getUserAgent=getUserAgent},215:function(e){e.exports={_from:"@octokit/rest@^16.43.1",_id:"@octokit/rest@16.43.1",_inBundle:false,_integrity:"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==",_location:"/@octokit/rest",_phantomChildren:{"@octokit/types":"2.10.0",deprecation:"2.3.1",once:"1.4.0"},_requested:{type:"range",registry:true,raw:"@octokit/rest@^16.43.1",name:"@octokit/rest",escapedName:"@octokit%2frest",scope:"@octokit",rawSpec:"^16.43.1",saveSpec:null,fetchSpec:"^16.43.1"},_requiredBy:["/@actions/github"],_resolved:"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz",_shasum:"3b11e7d1b1ac2bbeeb23b08a17df0b20947eda6b",_spec:"@octokit/rest@^16.43.1",_where:"C:\\Work\\action-synchronize-branches\\node_modules\\@actions\\github",author:{name:"Gregor Martynus",url:"https://github.com/gr2m"},bugs:{url:"https://github.com/octokit/rest.js/issues"},bundleDependencies:false,bundlesize:[{path:"./dist/octokit-rest.min.js.gz",maxSize:"33 kB"}],contributors:[{name:"Mike de Boer",email:"info@mikedeboer.nl"},{name:"Fabian Jakobs",email:"fabian@c9.io"},{name:"Joe Gallo",email:"joe@brassafrax.com"},{name:"Gregor Martynus",url:"https://github.com/gr2m"}],dependencies:{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0",deprecation:"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0",once:"^1.4.0","universal-user-agent":"^4.0.0"},deprecated:false,description:"GitHub REST API client for Node.js",devDependencies:{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0",bundlesize:"^0.18.0",chai:"^4.1.2","compression-webpack-plugin":"^3.1.0",cypress:"^3.0.0",glob:"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1",lolex:"^5.1.2",mkdirp:"^1.0.0",mocha:"^7.0.1",mustache:"^4.0.0",nock:"^11.3.3","npm-run-all":"^4.1.2",nyc:"^15.0.0",prettier:"^1.14.2",proxy:"^1.0.0","semantic-release":"^17.0.0",sinon:"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0",typescript:"^3.3.1",webpack:"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},files:["index.js","index.d.ts","lib","plugins"],homepage:"https://github.com/octokit/rest.js#readme",keywords:["octokit","github","rest","api-client"],license:"MIT",name:"@octokit/rest",nyc:{ignore:["test"]},publishConfig:{access:"public"},release:{publish:["@semantic-release/npm",{path:"@semantic-release/github",assets:["dist/*","!dist/*.map.gz"]}]},repository:{type:"git",url:"git+https://github.com/octokit/rest.js.git"},scripts:{build:"npm-run-all build:*","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript",coverage:"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",lint:"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/",pretest:"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server",test:'nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"',"test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},types:"index.d.ts",version:"16.43.1"}},231:function(e){e.exports=PullSummary;function PullSummary(){this.files=[];this.insertions={};this.deletions={};this.summary={changes:0,insertions:0,deletions:0};this.created=[];this.deleted=[]}PullSummary.prototype.created=null;PullSummary.prototype.deleted=null;PullSummary.prototype.files=null;PullSummary.prototype.insertions=null;PullSummary.prototype.deletions=null;PullSummary.prototype.summary=null;PullSummary.FILE_UPDATE_REGEX=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/;PullSummary.SUMMARY_REGEX=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/;PullSummary.ACTION_REGEX=/(create|delete) mode \d+ (.+)/;PullSummary.parse=function(e){var t=new PullSummary;var r=e.split("\n");while(r.length){var n=r.shift().trim();if(!n){continue}update(t,n)||summary(t,n)||action(t,n)}return t};function update(e,t){var r=PullSummary.FILE_UPDATE_REGEX.exec(t);if(!r){return false}e.files.push(r[1]);var n=r[2].length;if(n){e.insertions[r[1]]=n}var i=r[3].length;if(i){e.deletions[r[1]]=i}return true}function summary(e,t){if(!e.files.length){return false}var r=PullSummary.SUMMARY_REGEX.exec(t);if(!r||r[3]===undefined&&r[5]===undefined){return false}e.summary.changes=+r[1]||0;e.summary.insertions=+r[3]||0;e.summary.deletions=+r[5]||0;return true}function action(e,t){var r=PullSummary.ACTION_REGEX.exec(t);if(!r){return false}var n=r[2];if(e.files.indexOf(n)<0){e.files.push(n)}var i=r[1]==="create"?e.created:e.deleted;i.push(n);return true}},247:function(e,t,r){"use strict";const n=r(87);const i=r(364);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},260:function(e,t,r){var n=r(357);var i=r(654);var s=/^win/i.test(process.platform);var o=r(614);if(typeof o!=="function"){o=o.EventEmitter}var a;if(process.__signal_exit_emitter__){a=process.__signal_exit_emitter__}else{a=process.__signal_exit_emitter__=new o;a.count=0;a.emitted={}}if(!a.infinite){a.setMaxListeners(Infinity);a.infinite=true}e.exports=function(e,t){n.equal(typeof e,"function","a callback must be provided for exit handler");if(p===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var i=function(){a.removeListener(r,e);if(a.listeners("exit").length===0&&a.listeners("afterexit").length===0){unload()}};a.on(r,e);return i};e.exports.unload=unload;function unload(){if(!p){return}p=false;i.forEach(function(e){try{process.removeListener(e,u[e])}catch(e){}});process.emit=d;process.reallyExit=c;a.count-=1}function emit(e,t,r){if(a.emitted[e]){return}a.emitted[e]=true;a.emit(e,t,r)}var u={};i.forEach(function(e){u[e]=function listener(){var t=process.listeners(e);if(t.length===a.count){unload();emit("exit",null,e);emit("afterexit",null,e);if(s&&e==="SIGHUP"){e="SIGINT"}process.kill(process.pid,e)}}});e.exports.signals=function(){return i};e.exports.load=load;var p=false;function load(){if(p){return}p=true;a.count+=1;i=i.filter(function(e){try{process.on(e,u[e]);return true}catch(e){return false}});process.emit=processEmit;process.reallyExit=processReallyExit}var c=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);c.call(process,process.exitCode)}var d=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=d.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return d.apply(this,arguments)}}},262:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(747);const i=r(87);class Context{constructor(){this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${i.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},265:function(e,t,r){e.exports=getPage;const n=r(370);const i=r(577);const s=r(297);function getPage(e,t,r,o){n(`octokit.get${r.charAt(0).toUpperCase()+r.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);const a=i(t)[r];if(!a){const e=new s(`No ${r} page found`,404);return Promise.reject(e)}const u={url:a,headers:applyAcceptHeader(t,o)};const p=e.request(u);return p}function applyAcceptHeader(e,t){const r=e.headers&&e.headers["x-github-media-type"];if(!r||t&&t.accept){return t}t=t||{};t.accept="application/vnd."+r.replace("; param=",".").replace("; format=","+");return t}},280:function(e){e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce(function(t,r){return register.bind(null,e,r,t,n)},r)()}return Promise.resolve().then(function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce(function(e,t){return t.hook.bind(null,e,n)},r)()})}},293:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:n}=r(497);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!i){throw t}if(t.status===401&&i&&t.request&&t.request.headers["x-github-otp"]){if(e.otp){delete e.otp}else{throw new n("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}}if(typeof e.auth.on2fa!=="function"){throw new n("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const n=Object.assign(r,{headers:Object.assign(r.headers,{"x-github-otp":t})});return e.octokit.request(n).then(r=>{e.otp=t;return r})})}},294:function(e,t,r){e.exports=parseOptions;const{Deprecation:n}=r(692);const{getUserAgent:i}=r(796);const s=r(969);const o=r(215);const a=s((e,t)=>e.warn(t));const u=s((e,t)=>e.warn(t));const p=s((e,t)=>e.warn(t));function parseOptions(e,t,r){if(e.headers){e.headers=Object.keys(e.headers).reduce((t,r)=>{t[r.toLowerCase()]=e.headers[r];return t},{})}const s={headers:e.headers||{},request:e.request||{},mediaType:{previews:[],format:""}};if(e.baseUrl){s.baseUrl=e.baseUrl}if(e.userAgent){s.headers["user-agent"]=e.userAgent}if(e.previews){s.mediaType.previews=e.previews}if(e.timeZone){s.headers["time-zone"]=e.timeZone}if(e.timeout){a(t,new n("[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request"));s.request.timeout=e.timeout}if(e.agent){u(t,new n("[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request"));s.request.agent=e.agent}if(e.headers){p(t,new n("[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request"))}const c=s.headers["user-agent"];const d=`octokit.js/${o.version} ${i()}`;s.headers["user-agent"]=[c,d].filter(Boolean).join(" ");s.request.hook=r.bind(null,"request");return s}},297:function(e){e.exports=class HttpError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.code=t;this.headers=r}}},299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.1.2";const n=[/^\/search\//,/^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/,/^\/installation\/repositories([^/]|$)/,/^\/user\/installations([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/,/^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];function normalizePaginatedListResponse(e,t,r){const i=t.replace(e.request.endpoint.DEFAULTS.baseUrl,"");const s=n.find(e=>e.test(i));if(!s)return;const o=r.data.incomplete_results;const a=r.data.repository_selection;const u=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const p=Object.keys(r.data)[0];const c=r.data[p];r.data=c;if(typeof o!=="undefined"){r.data.incomplete_results=o}if(typeof a!=="undefined"){r.data.repository_selection=a}r.data.total_count=u;Object.defineProperty(r.data,p,{get(){e.log.warn(`[@octokit/paginate-rest] "response.data.${p}" is deprecated for "GET ${i}". Get the results directly from "response.data"`);return Array.from(c)}})}function iterator(e,t,r){const n=e.request.endpoint(t,r);const i=n.method;const s=n.headers;let o=n.url;return{[Symbol.asyncIterator]:()=>({next(){if(!o){return Promise.resolve({done:true})}return e.request({method:i,url:o,headers:s}).then(t=>{normalizePaginatedListResponse(e,o,t);o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}})}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then(i=>{if(i.done){return t}let s=false;function done(){s=true}t=t.concat(n?n(i.value,done):i.value.data);if(s){return t}return gather(e,t,r,n)})}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.paginateRest=paginateRest},306:function(e){e.exports=TagList;function TagList(e,t){this.latest=t;this.all=e}TagList.parse=function(e,t){var r=function(e){if(typeof e==="string"){return parseInt(e.replace(/^\D+/g,""),10)||0}return 0};var n=e.trim().split("\n").map(function(e){return e.trim()}).filter(Boolean);if(!t){n.sort(function(e,t){var n=e.split(".");var i=t.split(".");if(n.length===1||i.length===1){return e-t>0?1:-1}for(var s=0,o=Math.max(n.length,i.length);s0?1:-1}}return 0})}var i=t?n[0]:n.filter(function(e){return e.indexOf(".")>=0}).pop();return new TagList(n,i)}},317:function(e){var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*7;var o=i*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 p=(a[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*s;case"days":case"day":case"d":return u*i;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 s=Math.abs(e);if(s>=i){return Math.round(e/i)+"d"}if(s>=n){return Math.round(e/n)+"h"}if(s>=r){return Math.round(e/r)+"m"}if(s>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var s=Math.abs(e);if(s>=i){return plural(e,s,i,"day")}if(s>=n){return plural(e,s,n,"hour")}if(s>=r){return plural(e,s,r,"minute")}if(s>=t){return plural(e,s,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},323:function(e){"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},336:function(e,t,r){e.exports=hasLastPage;const n=r(370);const i=r(577);function hasLastPage(e){n(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).last}},348:function(e,t,r){"use strict";e.exports=validate;const{RequestError:n}=r(497);const i=r(854);const s=r(883);function validate(e,t){if(!t.request.validate){return}const{validate:r}=t.request;Object.keys(r).forEach(e=>{const o=i(r,e);const a=o.type;let u;let p;let c=true;let d=false;if(/\./.test(e)){u=e.replace(/\.[^.]+$/,"");d=u.slice(-2)==="[]";if(d){u=u.slice(0,-2)}p=i(t,u);c=u==="headers"||typeof p==="object"&&p!==null}const l=d?(i(t,u)||[]).map(t=>t[e.split(/\./).pop()]):[i(t,e)];l.forEach((r,i)=>{const u=typeof r!=="undefined";const p=r===null;const l=d?e.replace(/\[\]/,`[${i}]`):e;if(!o.required&&!u){return}if(!c){return}if(o.allowNull&&p){return}if(!o.allowNull&&p){throw new n(`'${l}' cannot be null`,400,{request:t})}if(o.required&&!u){throw new n(`Empty value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(a==="integer"){const e=r;r=parseInt(r,10);if(isNaN(r)){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(e)} is NaN`,400,{request:t})}}if(o.enum&&o.enum.indexOf(String(r))===-1){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}if(o.validation){const e=new RegExp(o.validation);if(!e.test(r)){throw new n(`Invalid value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}if(a==="object"&&typeof r==="string"){try{r=JSON.parse(r)}catch(e){throw new n(`JSON parse error of value for parameter '${l}': ${JSON.stringify(r)}`,400,{request:t})}}s(t,o.mapTo||l,r)})});return t}},349:function(e,t,r){e.exports=authenticationRequestError;const{RequestError:n}=r(497);function authenticationRequestError(e,t,r){if(!t.headers)throw t;const i=/required/.test(t.headers["x-github-otp"]||"");if(t.status!==401||!i){throw t}if(t.status===401&&i&&t.request&&t.request.headers["x-github-otp"]){throw new n("Invalid one-time password for two-factor authentication",401,{headers:t.headers,request:r})}if(typeof e.auth.on2fa!=="function"){throw new n("2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication",401,{headers:t.headers,request:r})}return Promise.resolve().then(()=>{return e.auth.on2fa()}).then(t=>{const n=Object.assign(r,{headers:Object.assign({"x-github-otp":t},r.headers)});return e.octokit.request(n)})}},357:function(e){e.exports=require("assert")},364:function(e){"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:na(e)!==i.repo.repo);for(let e=0;e{n.info(`Checking out ${s} ${t}`);u.checkout(["--force","-B",t,"FETCH_HEAD"])},e=>{if(e.message&&e.message.includes("couldn't find remote ref")){const t=e.message.trim().split(/(?:[\r\n]+|\s*:\s*)/).pop();n.info(`Not synchronized in ${s}: ${t}`)}else{throw e}})}}e.exports={getChildRepositories:getChildRepositories,synchronizeBranches:synchronizeBranches}},385:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(626));var i=r(562);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce((t,r)=>{t[r.toLowerCase()]=e[r];return t},{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach(i=>{if(n(t[i])){if(!(i in e))Object.assign(r,{[i]:t[i]});else r[i]=mergeDeep(e[i],t[i])}else{Object.assign(r,{[i]:t[i]})}});return r}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);const n=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){n.mediaType.previews=e.mediaType.previews.filter(e=>!n.mediaType.previews.includes(e)).concat(n.mediaType.previews)}n.mediaType.previews=n.mediaType.previews.map(e=>e.replace(/-preview/,""));return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map(e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`}).join("&")}const s=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(s);if(!t){return[]}return t.map(removeNonChars).reduce((e,t)=>e.concat(t),[])}function omit(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>{t[r]=e[r];return t},{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var i=e[r],s=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(n&&n!=="*"){i=i.substring(0,parseInt(n,10))}s.push(encodeValue(t,i,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach(function(e){s.push(encodeValue(t,e,isKeyOperator(t)?r:""))})}else{Object.keys(i).forEach(function(e){if(isDefined(i[e])){s.push(encodeValue(t,i[e],e))}})}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach(function(r){e.push(encodeValue(t,r))})}else{Object.keys(i).forEach(function(r){if(isDefined(i[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,i[r].toString()))}})}if(isKeyOperator(t)){s.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){s.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){s.push(encodeUnreserved(r))}}else if(i===""&&(t==="&"||t==="?")){s.push(encodeUnreserved(r)+"=")}else if(i===""){s.push("")}}return s}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,n,i){if(n){let e="";const i=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach(function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);i.push(getValues(t,e,n[1],n[2]||n[3]))});if(e&&e!=="+"){var s=",";if(e==="?"){s="&"}else if(e!=="#"){s=e}return(i.length!==0?e:"")+i.join(s)}else{return i.join(",")}}else{return encodeReserved(i)}})}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{+$1}");let n=Object.assign({},e.headers);let i;let s=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const o=extractUrlVariableNames(r);r=parseUrl(r).expand(s);if(!/^http/.test(r)){r=e.baseUrl+r}const a=Object.keys(e).filter(e=>o.includes(e)).concat("baseUrl");const u=omit(s,a);const p=/application\/octet-stream/i.test(n.accept);if(!p){if(e.mediaType.format){n.accept=n.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")}if(e.mediaType.previews.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map(t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`}).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,u)}else{if("data"in u){i=u.data}else{if(Object.keys(u).length){i=u}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof i!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:r,headers:n},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const o="6.0.0";const a=`octokit-endpoint.js/${o} ${i.getUserAgent()}`;const u={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":a},mediaType:{format:"",previews:[]}};const p=withDefaults(null,u);t.endpoint=p},389:function(e,t,r){"use strict";const n=r(747);const i=r(866);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,r,0,t,0);n.closeSync(s)}catch(e){}return i(r.toString())}e.exports=readShebang},402:function(e,t,r){e.exports=Octokit;const{request:n}=r(753);const i=r(523);const s=r(294);function Octokit(e,t){t=t||{};const r=new i.Collection;const o=Object.assign({debug:()=>{},info:()=>{},warn:console.warn,error:console.error},t&&t.log);const a={hook:r,log:o,request:n.defaults(s(t,o,r))};e.forEach(e=>e(a,t));return a}},407:function(e){e.exports=require("buffer")},413:function(e){e.exports=require("stream")},427:function(e,t,r){"use strict";const n=r(669);let i;if(typeof n.getSystemErrorName==="function"){e.exports=n.getSystemErrorName}else{try{i=process.binding("uv");if(typeof i.errname!=="function"){throw new TypeError("uv.errname is not a function")}}catch(e){console.error("execa/lib/errname: unable to establish process.binding('uv')",e);i=null}e.exports=(e=>errname(i,e))}e.exports.__test__=errname;function errname(e,t){if(e){return e.errname(t)}if(!(t<0)){throw new Error("err >= 0")}return`Unknown system error ${t}`}},430:function(e,t,r){e.exports=octokitValidate;const n=r(348);function octokitValidate(e){e.hook.before("request",n.bind(null,e))}},431:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(87));function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const s="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},440:function(e){e.exports=BranchDeletion;function BranchDeletion(e,t){this.branch=e;this.hash=t;this.success=t!==null}BranchDeletion.deleteSuccessRegex=/(\S+)\s+\(\S+\s([^\)]+)\)/;BranchDeletion.deleteErrorRegex=/^error[^']+'([^']+)'/;BranchDeletion.parse=function(e,t){var r;var n=e.trim().split("\n").map(function(e){if(r=BranchDeletion.deleteSuccessRegex.exec(e)){return new BranchDeletion(r[1],r[2])}else if(r=BranchDeletion.deleteErrorRegex.exec(e)){return new BranchDeletion(r[1],null)}}).filter(Boolean);return t?n:n.pop()}},453:function(e,t,r){var n=r(969);var i=r(9);var s=r(747);var o=function(){};var a=/^v?\.0/.test(process.version);var u=function(e){return typeof e==="function"};var p=function(e){if(!a)return false;if(!s)return false;return(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&u(e.close)};var c=function(e){return e.setHeader&&u(e.abort)};var d=function(e,t,r,s){s=n(s);var a=false;e.on("close",function(){a=true});i(e,{readable:t,writable:r},function(e){if(e)return s(e);a=true;s()});var d=false;return function(t){if(a)return;if(d)return;d=true;if(p(e))return e.close(o);if(c(e))return e.abort();if(u(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var l=function(e){e()};var g=function(e,t){return e.pipe(t)};var m=function(){var e=Array.prototype.slice.call(arguments);var t=u(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map(function(i,s){var o=s0;return d(i,o,a,function(e){if(!r)r=e;if(e)n.forEach(l);if(o)return;n.forEach(l);t(r)})});return e.reduce(g)};e.exports=m},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(413));var i=_interopDefault(r(605));var s=_interopDefault(r(835));var o=_interopDefault(r(34));var a=_interopDefault(r(761));const u=n.Readable;const p=Symbol("buffer");const c=Symbol("type");class Blob{constructor(){this[c]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let s=i===undefined?0:i;var o=r.timeout;let a=o===undefined?0:o;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n) ;else{e=Buffer.from(String(e))}this[l]={body:e,disturbed:false,error:null};this.size=s;this.timeout=a;if(e instanceof n){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[l].error=r})}}Body.prototype={get body(){return this[l].body},get bodyUsed(){return this[l].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[p]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[l].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[l].disturbed=true;if(this[l].error){return Body.Promise.reject(this[l].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let i=0;let s=false;return new Body.Promise(function(n,o){let a;if(e.timeout){a=setTimeout(function(){s=true;o(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){s=true;o(t)}else{o(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(s||t===null){return}if(e.size&&i+t.length>e.size){s=true;o(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;r.push(t)});t.on("end",function(){if(s){return}clearTimeout(a);try{n(Buffer.concat(r,i))}catch(t){o(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let i,s;if(r){i=/charset=([^;]*)/i.exec(r)}s=e.slice(0,1024).toString();if(!i&&s){i=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[y]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[y],e);if(t===undefined){return null}return this[y][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[y]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[y][t].join(", ")}:function(t){return[t.toLowerCase(),e[y][t].join(", ")]})}const f=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(b);r[f]={target:e,kind:t,index:0};return r}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[f];const t=e.target,r=e.kind,n=e.index;const i=getHeaders(t,r);const s=i.length;if(n>=s){return{value:undefined,done:true}}this[f].index=n+1;return{value:i[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[y]);const r=find(e[y],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(m.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(h.test(n)){continue}if(t[y][r]===undefined){t[y][r]=[n]}else{t[y][r].push(n)}}}else if(!h.test(e[r])){t[y][r]=[e[r]]}}return t}const _=Symbol("Response internals");const q=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[_]={url:t.url,status:r,statusText:t.statusText||q[r],headers:n,counter:t.counter}}get url(){return this[_].url||""}get status(){return this[_].status}get ok(){return this[_].status>=200&&this[_].status<300}get redirected(){return this[_].counter>0}get statusText(){return this[_].statusText}get headers(){return this[_].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const w=Symbol("Request internals");const v=s.parse;const E=s.format;const T="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[w]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=v(e.href)}else{r=v(`${e}`)}e={}}else{r=v(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const s=new Headers(t.headers||e.headers||{});if(i!=null&&!s.has("Content-Type")){const e=extractContentType(i);if(e){s.append("Content-Type",e)}}let o=isRequest(e)?e.signal:null;if("signal"in t)o=t.signal;if(o!=null&&!isAbortSignal(o)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[w]={method:n,redirect:t.redirect||e.redirect||"follow",headers:s,parsedURL:r,signal:o};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[w].method}get url(){return E(this[w].parsedURL)}get headers(){return this[w].headers}get redirect(){return this[w].redirect}get signal(){return this[w].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[w].parsedURL;const r=new Headers(e[w].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!T){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){r.set("Content-Length",i)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let s=e.agent;if(typeof s==="function"){s=s(t)}if(!r.has("Connection")&&!s){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:s})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const S=n.PassThrough;const k=s.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(r,s){const u=new Request(e,t);const p=getNodeRequestOptions(u);const c=(p.protocol==="https:"?o:i).request;const d=u.signal;let l=null;const g=function abort(){let e=new AbortError("The user aborted a request.");s(e);if(u.body&&u.body instanceof n.Readable){u.body.destroy(e)}if(!l||!l.body)return;l.body.emit("error",e)};if(d&&d.aborted){g();return}const m=function abortAndFinalize(){g();finalize()};const h=c(p);let y;if(d){d.addEventListener("abort",m)}function finalize(){h.abort();if(d)d.removeEventListener("abort",m);clearTimeout(y)}if(u.timeout){h.once("socket",function(e){y=setTimeout(function(){s(new FetchError(`network timeout at: ${u.url}`,"request-timeout"));finalize()},u.timeout)})}h.on("error",function(e){s(new FetchError(`request to ${u.url} failed, reason: ${e.message}`,"system",e));finalize()});h.on("response",function(e){clearTimeout(y);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const i=n===null?null:k(u.url,n);switch(u.redirect){case"error":s(new FetchError(`redirect mode is set to error: ${u.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){s(e)}}break;case"follow":if(i===null){break}if(u.counter>=u.follow){s(new FetchError(`maximum redirect reached at: ${u.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout};if(e.statusCode!==303&&u.body&&getTotalBytes(u)===null){s(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&u.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(i,n)));finalize();return}}e.once("end",function(){if(d)d.removeEventListener("abort",m)});let n=e.pipe(new S);const i={url:u.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:u.size,timeout:u.timeout,counter:u.counter};const o=t.get("Content-Encoding");if(!u.compress||u.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){l=new Response(n,i);r(l);return}const p={flush:a.Z_SYNC_FLUSH,finishFlush:a.Z_SYNC_FLUSH};if(o=="gzip"||o=="x-gzip"){n=n.pipe(a.createGunzip(p));l=new Response(n,i);r(l);return}if(o=="deflate"||o=="x-deflate"){const t=e.pipe(new S);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(a.createInflate())}else{n=n.pipe(a.createInflateRaw())}l=new Response(n,i);r(l)});return}if(o=="br"&&typeof a.createBrotliDecompress==="function"){n=n.pipe(a.createBrotliDecompress());l=new Response(n,i);r(l);return}l=new Response(n,i);r(l)});writeToStream(h,u)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},462:function(e){"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},463:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(692);var i=_interopDefault(r(969));const s=i(e=>console.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){s(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const i=Object.assign({},r.request);if(r.request.headers.authorization){i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}t.RequestError=RequestError},466:function(e){e.exports=MoveSummary;function MoveSummary(){this.moves=[];this.sources={}}MoveSummary.SUMMARY_REGEX=/^Renaming (.+) to (.+)$/;MoveSummary.parse=function(e){var t=e.split("\n");var r=new MoveSummary;for(var n=0,i=t.length,s;n{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}s++;const i=createDebug.formatters[n];if(typeof i==="function"){const n=e[s];t=i.call(r,n);e.splice(s,1);s--}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;tconsole.warn(e));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;Object.defineProperty(this,"code",{get(){s(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});this.headers=r.headers||{};const i=Object.assign({},r.request);if(r.request.headers.authorization){i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=i}}t.RequestError=RequestError},510:function(e){e.exports=addHook;function addHook(e,t,r,n){var i=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){r=e;return i(r,t)}).then(function(){return r})}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}}e.registry[r].push({hook:n,orig:i})}},523:function(e,t,r){var n=r(280);var i=r(510);var s=r(763);var o=Function.bind;var a=o.bind(o);function bindApi(e,t,r){var n=a(s,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach(function(n){var s=r?[t,n,r]:[t,n];e[n]=e.api[n]=a(i,null).apply(null,s)})}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var u=false;function Hook(){if(!u){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');u=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},529:function(e,t,r){const n=r(47);e.exports=n()},533:function(e){e.exports=CommitSummary;function CommitSummary(){this.branch="";this.commit="";this.summary={changes:0,insertions:0,deletions:0};this.author=null}var t=/\[([^\s]+) ([^\]]+)/;var r=/\s*Author:\s(.+)/i;function setBranchFromCommit(e,t){if(t){e.branch=t[1];e.commit=t[2]}}function setSummaryFromCommit(e,t){if(e.branch&&t){e.summary.changes=t[1]||0;e.summary.insertions=t[2]||0;e.summary.deletions=t[3]||0}}function setAuthorFromCommit(e,t){var r=t[1].split("<");var n=r.pop();if(n.indexOf("@")<=0){return}e.author={email:n.substr(0,n.length-1),name:r.join("<").trim()}}CommitSummary.parse=function(e){var n=e.trim().split("\n");var i=new CommitSummary;setBranchFromCommit(i,t.exec(n.shift()));if(r.test(n[0])){setAuthorFromCommit(i,r.exec(n.shift()))}setSummaryFromCommit(i,/(\d+)[^,]*(?:,\s*(\d+)[^,]*)?(?:,\s*(\d+))?/g.exec(n.shift()));return i}},536:function(e,t,r){e.exports=hasFirstPage;const n=r(370);const i=r(577);function hasFirstPage(e){n(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).first}},539:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);const i=r(605);const s=r(34);const o=r(950);let a;var u;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(u=t.HttpCodes||(t.HttpCodes={}));var p;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(p=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(n.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const d=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect];const l=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const m=10;const h=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=n.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,c.ApplicationJson);r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,c.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=n.parse(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&g.indexOf(e)!=-1?this._maxRetries+1:1;let p=0;let c;while(p0){const a=c.message.headers["location"];if(!a){break}let u=n.parse(a);if(s.protocol=="https:"&&s.protocol!=u.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}await c.readBody();o=this._prepareRequest(e,u,i);c=await this.requestRaw(o,r);t--}if(l.indexOf(c.message.statusCode)==-1){return c}p+=1;if(p{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let s=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});o.on("socket",e=>{n=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=n.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o=n.parsedUrl.protocol==="https:";n.httpModule=o?s:i;const a=o?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let n=o.getProxyUrl(e);let u=n&&n.hostname;if(this._keepAlive&&u){t=this._proxyAgent}if(this._keepAlive&&!u){t=this._agent}if(!!t){return t}const p=e.protocol==="https:";let c=100;if(!!this.requestOptions){c=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(u){if(!a){a=r(856)}const e={maxSockets:c,keepAlive:this._keepAlive,proxy:{proxyAuth:n.auth,host:n.hostname,port:n.port}};let i;const s=n.protocol==="https:";if(p){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:c};t=p?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=p?s.globalAgent:i.globalAgent}if(p&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(m,e);const t=h*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const s={statusCode:i,result:null,headers:{}};if(i==u.NotFound){r(s)}let o;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(a)}s.result=o}s.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(s.result){t["result"]=s.result}n(t)}else{r(s)}})}}t.HttpClient=HttpClient},548:function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},550:function(e,t,r){e.exports=getNextPage;const n=r(265);function getNextPage(e,t,r){return n(e,t,"next",r)}},558:function(e,t,r){e.exports=hasPreviousPage;const n=r(370);const i=r(577);function hasPreviousPage(e){n(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).prev}},562:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}return""}}t.getUserAgent=getUserAgent},563:function(e,t,r){e.exports=getPreviousPage;const n=r(265);function getPreviousPage(e,t,r){return n(e,t,"prev",r)}},568:function(e,t,r){"use strict";const n=r(622);const i=r(948);const s=r(489);const o=r(462);const a=r(389);const u=r(48);const p=process.platform==="win32";const c=/\.(?:com|exe)$/i;const d=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const l=i(()=>u.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!p){return e}const t=detectShebang(e);const r=!c.test(t);if(e.options.forceShell||r){const r=d.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map(e=>o.argument(e,r));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(l){return e}const t=[e.command].concat(e.args).join(" ");if(p){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(n):parseNonShell(n)}e.exports=parse},569:function(e,t,r){var n=r(932);e.exports=StatusSummary;function StatusSummary(){this.not_added=[];this.conflicted=[];this.created=[];this.deleted=[];this.modified=[];this.renamed=[];this.files=[];this.staged=[]}StatusSummary.prototype.ahead=0;StatusSummary.prototype.behind=0;StatusSummary.prototype.current=null;StatusSummary.prototype.tracking=null;StatusSummary.prototype.files=null;StatusSummary.prototype.isClean=function(){return 0===Object.keys(this).filter(function(e){return Array.isArray(this[e])&&this[e].length},this).length};StatusSummary.parsers={"##":function(e,t){var r=/ahead (\d+)/;var n=/behind (\d+)/;var i=/^(.+?(?=(?:\.{3}|\s|$)))/;var s=/\.{3}(\S*)/;var o;o=r.exec(e);t.ahead=o&&+o[1]||0;o=n.exec(e);t.behind=o&&+o[1]||0;o=i.exec(e);t.current=o&&o[1];o=s.exec(e);t.tracking=o&&o[1]},"??":function(e,t){t.not_added.push(e)},A:function(e,t){t.created.push(e)},AM:function(e,t){t.created.push(e)},D:function(e,t){t.deleted.push(e)},M:function(e,t,r){t.modified.push(e);if(r==="M"){t.staged.push(e)}},R:function(e,t){var r=/^(.+) -> (.+)$/.exec(e)||[null,e,e];t.renamed.push({from:r[1],to:r[2]})},UU:function(e,t){t.conflicted.push(e)}};StatusSummary.parsers.MM=StatusSummary.parsers.M;StatusSummary.parsers.AA=StatusSummary.parsers.UU;StatusSummary.parsers.UD=StatusSummary.parsers.UU;StatusSummary.parsers.DU=StatusSummary.parsers.UU;StatusSummary.parsers.DD=StatusSummary.parsers.UU;StatusSummary.parsers.AU=StatusSummary.parsers.UU;StatusSummary.parsers.UA=StatusSummary.parsers.UU;StatusSummary.parse=function(e){var t;var r=e.trim().split("\n");var i=new StatusSummary;for(var s=0,o=r.length;s1){r+=" "}if(r.length===1&&t[2].length===1){r=" "+r}return{raw:r,code:r.trim(),index:r.charAt(0),workingDir:r.charAt(1),handler:StatusSummary.parsers[r.trim()],path:t[3]}}},577:function(e){e.exports=getPageLinks;function getPageLinks(e){e=e.link||e.headers.link||"";const t={};e.replace(/<([^>]*)>;\s*rel="([\w]*)"/g,(e,r,n)=>{t[n]=r});return t}},605:function(e){e.exports=require("http")},614:function(e){e.exports=require("events")},621:function(e,t,r){"use strict";const n=r(622);const i=r(39);e.exports=(e=>{e=Object.assign({cwd:process.cwd(),path:process.env[i()]},e);let t;let r=n.resolve(e.cwd);const s=[];while(t!==r){s.push(n.join(r,"node_modules/.bin"));t=r;r=n.resolve(r,"..")}s.push(n.dirname(process.execPath));return s.concat(e.path).join(n.delimiter)});e.exports.env=(t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env);const n=i({env:r});t.path=r[n];r[n]=e.exports(t);return r})},622:function(e){e.exports=require("path")},626:function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},628:function(e){e.exports=DiffSummary;function DiffSummary(){this.files=[];this.insertions=0;this.deletions=0;this.changed=0}DiffSummary.prototype.insertions=0;DiffSummary.prototype.deletions=0;DiffSummary.prototype.changed=0;DiffSummary.parse=function(e){var t,r;var n=e.trim().split("\n");var i=new DiffSummary;var s=n.pop();if(s){s.trim().split(", ").forEach(function(e){var t=/(\d+)\s([a-z]+)/.exec(e);if(!t){return}if(/files?/.test(t[2])){i.changed=parseInt(t[1],10)}else{i[t[2].replace(/s$/,"")+"s"]=parseInt(t[1],10)}})}while(t=n.shift()){textFileChange(t,i.files)||binaryFileChange(t,i.files)}return i};function textFileChange(e,t){e=e.trim().match(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/);if(e){var r=(e[3]||"").trim();t.push({file:e[1].trim(),changes:parseInt(e[2],10),insertions:r.replace(/-/g,"").length,deletions:r.replace(/\+/g,"").length,binary:false});return true}}function binaryFileChange(e,t){e=e.match(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)$/);if(e){t.push({file:e[1].trim(),before:+e[2],after:+e[3],binary:true});return true}}},631:function(e){e.exports=require("net")},649:function(e,t,r){e.exports=getLastPage;const n=r(265);function getLastPage(e,t,r){return n(e,t,"last",r)}},654:function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},656:function(e,t,r){e.exports=MergeSummary;e.exports.MergeConflict=MergeConflict;var n=r(231);function MergeConflict(e,t,r){this.reason=e;this.file=t;if(r){this.meta=r}}MergeConflict.prototype.meta=null;MergeConflict.prototype.toString=function(){return this.file+":"+this.reason};function MergeSummary(){n.call(this);this.conflicts=[];this.merges=[]}MergeSummary.prototype=Object.create(n.prototype);MergeSummary.prototype.result="success";MergeSummary.prototype.toString=function(){if(this.conflicts.length){return"CONFLICTS: "+this.conflicts.join(", ")}return"OK"};Object.defineProperty(MergeSummary.prototype,"failed",{get:function(){return this.conflicts.length>0}});MergeSummary.parsers=[{test:/^Auto-merging\s+(.+)$/,handle:function(e,t){t.merges.push(e[1])}},{test:/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,handle:function(e,t){t.conflicts.push(new MergeConflict(e[1],e[2]))}},{test:/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,handle:function(e,t){t.conflicts.push(new MergeConflict(e[1],e[2],{deleteRef:e[3]}))}},{test:/^CONFLICT\s+\((.+)\):/,handle:function(e,t){t.conflicts.push(new MergeConflict(e[1],null))}},{test:/^Automatic merge failed;\s+(.+)$/,handle:function(e,t){t.reason=t.result=e[1]}}];MergeSummary.parse=function(e){let t=new MergeSummary;e.trim().split("\n").forEach(function(e){for(var r=0,n=MergeSummary.parsers.length;r (.+)$/,function(e,t){e.branches.push({name:t[0],tracking:t[1]})}],[/\* \[new tag\]\s+(\S+)\s*\-> (.+)$/,function(e,t){e.tags.push({name:t[0],tracking:t[1]})}]];FetchSummary.parse=function(e){var t=new FetchSummary(e);String(e).trim().split("\n").forEach(function(e){var r=e.trim();FetchSummary.parsers.some(function(e){var n=e[0].exec(r);if(n){e[1](t,n.slice(1));return true}})});return t};e.exports=FetchSummary},669:function(e){e.exports=require("util")},674:function(e,t,r){e.exports=authenticate;const{Deprecation:n}=r(692);const i=r(969);const s=i((e,t)=>e.warn(t));function authenticate(e,t){s(e.octokit.log,new n('[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'));if(!t){e.auth=false;return}switch(t.type){case"basic":if(!t.username||!t.password){throw new Error("Basic authentication requires both a username and password to be set")}break;case"oauth":if(!t.token&&!(t.key&&t.secret)){throw new Error("OAuth2 authentication requires a token or key & secret to be set")}break;case"token":case"app":if(!t.token){throw new Error("Token authentication requires a token to be set")}break;default:throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'")}e.auth=t}},675:function(e){e.exports=function btoa(e){return new Buffer(e).toString("base64")}},692:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},697:function(e){"use strict";e.exports=((e,t)=>{t=t||(()=>{});return e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))})},713:function(e,t,r){e.exports=ListLogSummary;var n=r(628);function ListLogSummary(e){this.all=e;this.latest=e.length&&e[0]||null;this.total=e.length}ListLogSummary.prototype.all=null;ListLogSummary.prototype.latest=null;ListLogSummary.prototype.total=0;function ListLogLine(e,t){for(var r=0;r1&&!!i[1].trim()){s.diff=n.parse(i[1])}return s}))}},726:function(e,t,r){var n=r(747);function exists(e,t,r){try{var i=false;var s=n.statSync(e);i=i||t&&s.isFile();i=i||r&&s.isDirectory();return i}catch(e){if(e.code==="ENOENT"){return false}throw e}}e.exports=function(e,t){if(!t){return exists(e,true,true)}return exists(e,t&1,t&2)};e.exports.FILE=1;e.exports.FOLDER=2},742:function(e,t,r){var n=r(747);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(818)}else{i=r(197)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(r,n){isexe(e,t||{},function(e,t){if(e){n(e)}else{r(t)}})})}i(e,t||{},function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)})}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},747:function(e){e.exports=require("fs")},753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(385);var i=r(211);var s=_interopDefault(r(548));var o=_interopDefault(r(454));var a=r(463);const u="5.4.0";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){if(s(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let t={};let r;let n;const i=e.request&&e.request.fetch||o;return i(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(i=>{n=i.url;r=i.status;for(const e of i.headers){t[e[0]]=e[1]}if(r===204||r===205){return}if(e.method==="HEAD"){if(r<400){return}throw new a.RequestError(i.statusText,r,{headers:t,request:e})}if(r===304){throw new a.RequestError("Not modified",r,{headers:t,request:e})}if(r>=400){return i.text().then(n=>{const i=new a.RequestError(n,r,{headers:t,request:e});try{let e=JSON.parse(i.message);Object.assign(i,e);let t=e.errors;i.message=i.message+": "+t.map(JSON.stringify).join(", ")}catch(e){}throw i})}const s=i.headers.get("content-type");if(/application\/json/.test(s)){return i.json()}if(!s||/^text\/|charset=utf-8$/.test(s)){return i.text()}return getBufferResponse(i)}).then(e=>{return{status:r,url:n,headers:t,data:e}}).catch(r=>{if(r instanceof a.RequestError){throw r}throw new a.RequestError(r.message,500,{headers:t,request:e})})}function withDefaults(e,t){const r=e.defaults(t);const n=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const i=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(i,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(i,n)};return Object.assign(n,{endpoint:r,defaults:withDefaults.bind(null,r)})}const p=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${u} ${i.getUserAgent()}`}});t.request=p},761:function(e){e.exports=require("zlib")},763:function(e){e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map(function(e){return e.orig}).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},768:function(e){"use strict";e.exports=function(e){var t=typeof e==="string"?"\n":"\n".charCodeAt();var r=typeof e==="string"?"\r":"\r".charCodeAt();if(e[e.length-1]===t){e=e.slice(0,e.length-1)}if(e[e.length-1]===r){e=e.slice(0,e.length-1)}return e}},777:function(e,t,r){e.exports=getFirstPage;const n=r(265);function getFirstPage(e,t,r){return n(e,t,"first",r)}},784:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(794)}else{e.exports=r(81)}},794:function(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 i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}n++;if(e==="%c"){i=n}});t.splice(i,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(486)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2));function getUserAgent(){try{return`Node.js/${process.version.substr(1)} (${n()}; ${process.arch})`}catch(e){if(/wmic os get Caption/.test(e.message)){return"Windows "}throw e}}t.getUserAgent=getUserAgent},813:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});async function auth(e){const t=e.split(/\./).length===3?"app":/^v\d+\./.test(e)?"installation":"oauth";return{type:"token",token:e,tokenType:t}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const i=t.endpoint.merge(r,n);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}const r=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=r},814:function(e,t,r){e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=r(622);var s=n?";":":";var o=r(742);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var i=t.path||process.env.PATH||"";var o=[""];i=i.split(r);var a="";if(n){i.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var s=n.env;var a=n.ext;var u=n.extExe;var p=[];(function F(n,c){if(n===c){if(t.all&&p.length)return r(null,p);else return r(getNotFoundError(e))}var d=s[n];if(d.charAt(0)==='"'&&d.slice(-1)==='"')d=d.slice(1,-1);var l=i.join(d,e);if(!d&&/^\.[\\\/]/.test(e)){l=e.slice(0,2)+l}(function E(e,i){if(e===i)return F(n+1,c);var s=a[e];o(l+s,{pathExt:u},function(n,o){if(!n&&o){if(t.all)p.push(l+s);else return r(null,l+s)}return E(e+1,i)})})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var s=r.ext;var a=r.extExe;var u=[];for(var p=0,c=n.length;p{if(!e[r]){e[r]={}}Object.keys(t[r]).forEach(i=>{const s=t[r][i];const o=["method","url","headers"].reduce((e,t)=>{if(typeof s[t]!=="undefined"){e[t]=s[t]}return e},{});o.request={validate:s.params};let a=e.request.defaults(o);const u=Object.keys(s.params||{}).find(e=>s.params[e].deprecated);if(u){const t=patchForDeprecation.bind(null,e,s);a=t(e.request.defaults(o),`.${r}.${i}()`);a.endpoint=t(a.endpoint,`.${r}.${i}.endpoint()`);a.endpoint.merge=t(a.endpoint.merge,`.${r}.${i}.endpoint.merge()`)}if(s.deprecated){e[r][i]=Object.assign(function deprecatedEndpointMethod(){e.log.warn(new n.Deprecation(`[@octokit/rest] ${s.deprecated}`));e[r][i]=a;return a.apply(null,arguments)},a);return}e[r][i]=a})})}function patchForDeprecation(e,t,r,i){const s=s=>{s=Object.assign({},s);Object.keys(s).forEach(r=>{if(t.params[r]&&t.params[r].deprecated){const o=t.params[r].alias;e.log.warn(new n.Deprecation(`[@octokit/rest] "${r}" parameter is deprecated for "${i}". Use "${o}" instead`));if(!(o in s)){s[o]=s[r]}delete s[r]}});return r(s)};Object.keys(r).forEach(e=>{s[e]=r[e]});return s}function restEndpointMethods(e){e.registerEndpoints=registerEndpoints.bind(null,e);registerEndpoints(e,i);[["gitdata","git"],["authorization","oauthAuthorizations"],["pullRequests","pulls"]].forEach(([t,r])=>{Object.defineProperty(e,t,{get(){e.log.warn(new n.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${t}.*" methods are deprecated, use "octokit.${r}.*" instead`));return e[r]}})});return{}}restEndpointMethods.VERSION=s;t.restEndpointMethods=restEndpointMethods},850:function(e,t,r){e.exports=paginationMethodsPlugin;function paginationMethodsPlugin(e){e.getFirstPage=r(777).bind(null,e);e.getLastPage=r(649).bind(null,e);e.getNextPage=r(550).bind(null,e);e.getPreviousPage=r(563).bind(null,e);e.hasFirstPage=r(536);e.hasLastPage=r(336);e.hasNextPage=r(929);e.hasPreviousPage=r(558)}},854:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var n=1/0;var i="[object Function]",s="[object GeneratorFunction]",o="[object Symbol]";var a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,p=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var d=/[\\^$.*+?()[\]{}|]/g;var l=/\\(\\)?/g;var g=/^\[object .+?Constructor\]$/;var m=typeof global=="object"&&global&&global.Object===Object&&global;var h=typeof self=="object"&&self&&self.Object===Object&&self;var y=m||h||Function("return this")();function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var f=Array.prototype,b=Function.prototype,_=Object.prototype;var q=y["__core-js_shared__"];var w=function(){var e=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var v=b.toString;var E=_.hasOwnProperty;var T=_.toString;var S=RegExp("^"+v.call(E).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var k=y.Symbol,C=f.splice;var O=getNative(y,"Map"),j=getNative(Object,"create");var G=k?k.prototype:undefined,P=G?G.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t{return e.auth()}).then(e=>{t.headers.authorization=i(e)})}},866:function(e,t,r){"use strict";var n=r(816);e.exports=function(e){var t=e.match(n);if(!t){return null}var r=t[0].replace(/#! ?/,"").split(" ");var i=r[0].split("/").pop();var s=r[1];return i==="env"?s:i+(s?" "+s:"")}},867:function(e){e.exports=require("tty")},881:function(e){"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r,"spawn");if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},883:function(e){var t="Expected a function";var r="__lodash_hash_undefined__";var n=1/0,i=9007199254740991;var s="[object Function]",o="[object GeneratorFunction]",a="[object Symbol]";var u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/,c=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var l=/[\\^$.*+?()[\]{}|]/g;var g=/\\(\\)?/g;var m=/^\[object .+?Constructor\]$/;var h=/^(?:0|[1-9]\d*)$/;var y=typeof global=="object"&&global&&global.Object===Object&&global;var f=typeof self=="object"&&self&&self.Object===Object&&self;var b=y||f||Function("return this")();function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}var _=Array.prototype,q=Function.prototype,w=Object.prototype;var v=b["__core-js_shared__"];var E=function(){var e=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var T=q.toString;var S=w.hasOwnProperty;var k=w.toString;var C=RegExp("^"+T.call(S).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var O=b.Symbol,j=_.splice;var G=getNative(b,"Map"),P=getNative(Object,"create");var A=O?O.prototype:undefined,x=A?A.toString:undefined;function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t-1&&e%1==0&&e{if(o.includes(t)){e[t]=r[t];return e}if(!e.variables){e.variables={}}e.variables[t]=r[t];return e},{});return e(n).then(e=>{if(e.data.errors){throw new GraphqlError(n,{data:e.data})}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const i=(e,t)=>{return graphql(r,e,t)};return Object.assign(i,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const a=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${s} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.graphql=a;t.withCustomRequest=withCustomRequest},916:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="1.0.0";function requestLog(e){e.hook.wrap("request",(t,r)=>{e.log.debug("request",r);const n=Date.now();const i=e.request.endpoint.parse(r);const s=i.url.replace(r.baseUrl,"");return t(r).then(t=>{e.log.info(`${i.method} ${s} - ${t.status} in ${Date.now()-n}ms`);return t}).catch(t=>{e.log.info(`${i.method} ${s} - ${t.status} in ${Date.now()-n}ms`);throw t})})}requestLog.VERSION=r;t.requestLog=requestLog},929:function(e,t,r){e.exports=hasNextPage;const n=r(370);const i=r(577);function hasNextPage(e){n(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`);return i(e).next}},932:function(e){"use strict";function FileStatusSummary(e,t,r){this.path=e;this.index=t;this.working_dir=r;if("R"===t+r){var n=FileStatusSummary.fromPathRegex.exec(e)||[null,e,e];this.from=n[1];this.path=n[2]}}FileStatusSummary.fromPathRegex=/^(.+) -> (.+)$/;FileStatusSummary.prototype={path:"",from:""};e.exports=FileStatusSummary},948:function(e){"use strict";e.exports=function(e){try{return e()}catch(e){}}},950:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=n.parse(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},954:function(e){e.exports=validateAuth;function validateAuth(e){if(typeof e==="string"){return}if(typeof e==="function"){return}if(e.username&&e.password){return}if(e.clientId&&e.clientSecret){return}throw new Error(`Invalid "auth" option: ${JSON.stringify(e)}`)}},955:function(e,t,r){"use strict";const n=r(622);const i=r(129);const s=r(20);const o=r(768);const a=r(621);const u=r(323);const p=r(145);const c=r(697);const d=r(260);const l=r(427);const g=r(168);const m=1e3*1e3*10;function handleArgs(e,t,r){let i;r=Object.assign({extendEnv:true,env:{}},r);if(r.extendEnv){r.env=Object.assign({},process.env,r.env)}if(r.__winShell===true){delete r.__winShell;i={command:e,args:t,options:r,file:e,original:{cmd:e,args:t}}}else{i=s._parse(e,t,r)}r=Object.assign({maxBuffer:m,buffer:true,stripEof:true,preferLocal:true,localDir:i.options.cwd||process.cwd(),encoding:"utf8",reject:true,cleanup:true},i.options);r.stdio=g(r);if(r.preferLocal){r.env=a.env(Object.assign({},r,{cwd:r.localDir}))}if(r.detached){r.cleanup=false}if(process.platform==="win32"&&n.basename(i.command)==="cmd.exe"){i.args.unshift("/q")}return{cmd:i.command,args:i.args,opts:r,parsed:i}}function handleInput(e,t){if(t===null||t===undefined){return}if(u(t)){t.pipe(e.stdin)}else{e.stdin.end(t)}}function handleOutput(e,t){if(t&&e.stripEof){t=o(t)}return t}function handleShell(e,t,r){let n="/bin/sh";let i=["-c",t];r=Object.assign({},r);if(process.platform==="win32"){r.__winShell=true;n=process.env.comspec||"cmd.exe";i=["/s","/c",`"${t}"`];r.windowsVerbatimArguments=true}if(r.shell){n=r.shell;delete r.shell}return e(n,i,r)}function getStream(e,t,{encoding:r,buffer:n,maxBuffer:i}){if(!e[t]){return null}let s;if(!n){s=new Promise((r,n)=>{e[t].once("end",r).once("error",n)})}else if(r){s=p(e[t],{encoding:r,maxBuffer:i})}else{s=p.buffer(e[t],{maxBuffer:i})}return s.catch(e=>{e.stream=t;e.message=`${t} ${e.message}`;throw e})}function makeError(e,t){const{stdout:r,stderr:n}=e;let i=e.error;const{code:s,signal:o}=e;const{parsed:a,joinedCmd:u}=t;const p=t.timedOut||false;if(!i){let e="";if(Array.isArray(a.opts.stdio)){if(a.opts.stdio[2]!=="inherit"){e+=e.length>0?n:`\n${n}`}if(a.opts.stdio[1]!=="inherit"){e+=`\n${r}`}}else if(a.opts.stdio!=="inherit"){e=`\n${n}${r}`}i=new Error(`Command failed: ${u}${e}`);i.code=s<0?l(s):s}i.stdout=r;i.stderr=n;i.failed=true;i.signal=o||null;i.cmd=u;i.timedOut=p;return i}function joinCmd(e,t){let r=e;if(Array.isArray(t)&&t.length>0){r+=" "+t.join(" ")}return r}e.exports=((e,t,r)=>{const n=handleArgs(e,t,r);const{encoding:o,buffer:a,maxBuffer:u}=n.opts;const p=joinCmd(e,t);let l;try{l=i.spawn(n.cmd,n.args,n.opts)}catch(e){return Promise.reject(e)}let g;if(n.opts.cleanup){g=d(()=>{l.kill()})}let m=null;let h=false;const y=()=>{if(m){clearTimeout(m);m=null}if(g){g()}};if(n.opts.timeout>0){m=setTimeout(()=>{m=null;h=true;l.kill(n.opts.killSignal)},n.opts.timeout)}const f=new Promise(e=>{l.on("exit",(t,r)=>{y();e({code:t,signal:r})});l.on("error",t=>{y();e({error:t})});if(l.stdin){l.stdin.on("error",t=>{y();e({error:t})})}});function destroy(){if(l.stdout){l.stdout.destroy()}if(l.stderr){l.stderr.destroy()}}const b=()=>c(Promise.all([f,getStream(l,"stdout",{encoding:o,buffer:a,maxBuffer:u}),getStream(l,"stderr",{encoding:o,buffer:a,maxBuffer:u})]).then(e=>{const t=e[0];t.stdout=e[1];t.stderr=e[2];if(t.error||t.code!==0||t.signal!==null){const e=makeError(t,{joinedCmd:p,parsed:n,timedOut:h});e.killed=e.killed||l.killed;if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,t.stdout),stderr:handleOutput(n.opts,t.stderr),code:0,failed:false,killed:false,signal:null,cmd:p,timedOut:false}}),destroy);s._enoent.hookChildProcess(l,n.parsed);handleInput(l,n.opts.input);l.then=((e,t)=>b().then(e,t));l.catch=(e=>b().catch(e));return l});e.exports.stdout=((...t)=>e.exports(...t).then(e=>e.stdout));e.exports.stderr=((...t)=>e.exports(...t).then(e=>e.stderr));e.exports.shell=((t,r)=>handleShell(e.exports,t,r));e.exports.sync=((e,t,r)=>{const n=handleArgs(e,t,r);const s=joinCmd(e,t);if(u(n.opts.input)){throw new TypeError("The `input` option cannot be a stream in sync mode")}const o=i.spawnSync(n.cmd,n.args,n.opts);o.code=o.status;if(o.error||o.status!==0||o.signal!==null){const e=makeError(o,{joinedCmd:s,parsed:n});if(!n.opts.reject){return e}throw e}return{stdout:handleOutput(n.opts,o.stdout),stderr:handleOutput(n.opts,o.stderr),code:0,failed:false,signal:null,cmd:s,timedOut:false}});e.exports.shellSync=((t,r)=>handleShell(e.exports.sync,t,r))},964:function(e,t,r){var n=r(71);e.exports=function(e){var t=r(970);if(e&&!t.exists(e,t.exists.FOLDER)){throw new Error("Cannot use simple-git on a directory that does not exist.")}return new n(e||process.cwd(),t.childProcess(),t.buffer())}},966:function(e,t,r){"use strict";const{PassThrough:n}=r(413);e.exports=(e=>{e=Object.assign({},e);const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let s=false;if(t){s=!(r||i)}else{r=r||"utf8"}if(i){r=null}let o=0;const a=[];const u=new n({objectMode:s});if(r){u.setEncoding(r)}u.on("data",e=>{a.push(e);if(s){o=a.length}else{o+=e.length}});u.getBufferedValue=(()=>{if(t){return a}return i?Buffer.concat(a,o):a.join("")});u.getBufferedLength=(()=>o);return u})},969:function(e,t,r){var n=r(11);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},970:function(e,t,r){e.exports={buffer:function(){return r(407).Buffer},childProcess:function(){return r(129)},exists:r(726)}}}); \ No newline at end of file diff --git a/package.json b/package.json index dea01e2..a1bb81d 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "clean": "shx rm -rf dist/*", "debug": "node --inspect-brk -r dotenv/config src/main.js", "lint": "eslint . --cache --fix", + "start": "node -r dotenv/config src/main.js", "test": "jest" }, "dependencies": { diff --git a/src/main.js b/src/main.js index 7f9fd59..445b22a 100644 --- a/src/main.js +++ b/src/main.js @@ -3,7 +3,8 @@ const { synchronizeBranches } = require("./synchronize"); async function main() { try { - await synchronizeBranches(); + const path = core.getInput("path", { required: true }); + await synchronizeBranches(path); } catch (e) { core.setFailed(e.message); } diff --git a/src/synchronize.js b/src/synchronize.js index 3ab8a13..184c593 100644 --- a/src/synchronize.js +++ b/src/synchronize.js @@ -27,23 +27,24 @@ async function getChildRepositories(path) { } /** - * Attempt to fetch a matching branch in every git repository in the current directory. + * Attempt to fetch a matching branch in every git repository in a directory + * @param {string} path the directory containing the repositories to synchronize */ -async function synchronizeBranches() { +async function synchronizeBranches(path) { if (context.ref === "refs/heads/master" || context.ref.startsWith("refs/tags/")) { core.info(`Skipping synchronize for ${context.ref}`); return; } const branch = basename(context.ref); - const children = (await getChildRepositories(".")).filter( - (path) => basename(path) !== context.repo.repo + const children = (await getChildRepositories(path)).filter( + (child) => basename(child) !== context.repo.repo ); for (let i = 0; i < children.length; ++i) { - const path = children[i]; - const name = basename(path); - const git = simpleGit(path); + const child = children[i]; + const name = basename(child); + const git = simpleGit(child); // try to fetch a branch with the same name // eslint-disable-next-line no-await-in-loop